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
7205cdf610d822ff489ee20bd6142881de7bb422
63
py
Python
examples/djangodesktop/gui.py
rafaelalmeida2909/flaskwebgui
9c09a23d18bcf364e382bd9fda0b91cf91d37f8f
[ "MIT" ]
null
null
null
examples/djangodesktop/gui.py
rafaelalmeida2909/flaskwebgui
9c09a23d18bcf364e382bd9fda0b91cf91d37f8f
[ "MIT" ]
null
null
null
examples/djangodesktop/gui.py
rafaelalmeida2909/flaskwebgui
9c09a23d18bcf364e382bd9fda0b91cf91d37f8f
[ "MIT" ]
null
null
null
from flaskwebgui import FlaskUI FlaskUI(server='django').run()
21
31
0.793651
418654f908de94fce36c3993b9e6c282cc674201
933
py
Python
cs3api4lab/exception/exceptions.py
michzimny/cs3api4lab
c2e2516da1e48a865899a7e16944878c8a248936
[ "Apache-2.0" ]
2
2020-08-10T13:12:57.000Z
2020-11-26T15:44:48.000Z
cs3api4lab/exception/exceptions.py
michzimny/cs3api4lab
c2e2516da1e48a865899a7e16944878c8a248936
[ "Apache-2.0" ]
73
2020-06-15T22:58:47.000Z
2022-03-31T08:24:36.000Z
cs3api4lab/exception/exceptions.py
michzimny/cs3api4lab
c2e2516da1e48a865899a7e16944878c8a248936
[ "Apache-2.0" ]
11
2020-06-22T10:10:36.000Z
2022-02-03T14:05:16.000Z
class ShareAlreadyExistsError(Exception): def __init__(self, message): self.message = message super().__init__(self.message) def __str__(self): return self.__class__.__name__ + ": " + self.message class ShareNotExistsError(Exception): def __init__(self, message): self.mess...
27.441176
60
0.653805
9ef497356372493e2d79a8f4c10c5e690172875a
840
py
Python
custom_components/xiaomi_cloud_map_extractor/common/vacuum_v2.py
dmr1987/Home-Assistant-custom-components-Xiaomi-Cloud-Map-Extractor
a1a636db9e3bba2479c3760ec70a3b07dc996e02
[ "MIT" ]
163
2020-08-01T12:19:46.000Z
2022-03-28T09:04:57.000Z
custom_components/xiaomi_cloud_map_extractor/common/vacuum_v2.py
Neonox31/Home-Assistant-custom-components-Xiaomi-Cloud-Map-Extractor
7bc868278f74fdaba475987dd5fdf485e430fe53
[ "MIT" ]
81
2020-08-04T00:28:46.000Z
2022-03-29T15:48:51.000Z
custom_components/xiaomi_cloud_map_extractor/common/vacuum_v2.py
Neonox31/Home-Assistant-custom-components-Xiaomi-Cloud-Map-Extractor
7bc868278f74fdaba475987dd5fdf485e430fe53
[ "MIT" ]
28
2020-08-02T12:02:24.000Z
2022-03-22T00:07:34.000Z
from custom_components.xiaomi_cloud_map_extractor.common.vacuum import XiaomiCloudVacuum class XiaomiCloudVacuumV2(XiaomiCloudVacuum): def __init__(self, connector, country, user_id, device_id, model): super().__init__(connector, country, user_id, device_id, model) def get_map_url(self, map_name): ...
40
103
0.696429
1fc760ded06005df2d9bfddf0a92d762b64c5970
8,045
py
Python
roles/aur/library/aur.py
ljmf00/home-server
e0b92688babfa087b109a3f277baf408cc983101
[ "MIT" ]
1
2021-06-16T14:07:09.000Z
2021-06-16T14:07:09.000Z
roles/aur/library/aur.py
ljmf00/home-infrastructure
e0b92688babfa087b109a3f277baf408cc983101
[ "MIT" ]
5
2020-04-10T17:34:59.000Z
2020-05-17T17:16:32.000Z
roles/aur/library/aur.py
ljmf00/home-server
e0b92688babfa087b109a3f277baf408cc983101
[ "MIT" ]
1
2020-04-16T04:15:48.000Z
2020-04-16T04:15:48.000Z
#!/usr/bin/python # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) from ansible.module_utils.basic import * from ansible.module_utils.urls import open_url import json import tarfile import os import os.path import tempfile import urllib.parse DOCUMENTATION = ''' --- modul...
30.018657
159
0.579366
b3c15672c92377af1a2b79a15bec6f7f095f332c
11,081
py
Python
whatsapp-bot-venv/Lib/site-packages/twilio/rest/pricing/v1/voice/country.py
RedaMastouri/ConversationalPythonicChatBot
f204276d4b80348d42091b17d1a7d9eea33fb4e0
[ "MIT" ]
null
null
null
whatsapp-bot-venv/Lib/site-packages/twilio/rest/pricing/v1/voice/country.py
RedaMastouri/ConversationalPythonicChatBot
f204276d4b80348d42091b17d1a7d9eea33fb4e0
[ "MIT" ]
null
null
null
whatsapp-bot-venv/Lib/site-packages/twilio/rest/pricing/v1/voice/country.py
RedaMastouri/ConversationalPythonicChatBot
f204276d4b80348d42091b17d1a7d9eea33fb4e0
[ "MIT" ]
null
null
null
# coding=utf-8 r""" This code was generated by \ / _ _ _| _ _ | (_)\/(_)(_|\/| |(/_ v1.0.0 / / """ from twilio.base import values from twilio.base.instance_context import InstanceContext from twilio.base.instance_resource import InstanceResource from twilio.base.list_resource import ListResource f...
32.784024
102
0.62359
27ab7a9649a7684ea8f61d604ec9bcd54986e9d2
12,128
py
Python
example_specs/models/unet2d_multi_tensor/multi_tensor_unet.py
bioimage-io/spec-bioimage-io
b534001c67b3903dbd47f80a8b3ff027cd249119
[ "MIT" ]
6
2021-05-10T09:08:12.000Z
2022-03-27T17:44:08.000Z
example_specs/models/unet2d_multi_tensor/multi_tensor_unet.py
bioimage-io/spec-bioimage-io
b534001c67b3903dbd47f80a8b3ff027cd249119
[ "MIT" ]
227
2021-03-16T23:40:13.000Z
2022-03-17T14:30:53.000Z
example_specs/models/unet2d_multi_tensor/multi_tensor_unet.py
bioimage-io/spec-bioimage-io
b534001c67b3903dbd47f80a8b3ff027cd249119
[ "MIT" ]
5
2021-03-26T14:16:49.000Z
2021-11-28T11:24:40.000Z
import torch import torch.nn as nn class UNetBase(nn.Module): """ """ def __init__(self, encoder, base, decoder, out_conv=None, final_activation=None): super().__init__() if len(encoder) != len(decoder): raise ValueError(f"Incompatible depth of encoder (depth={len(encoder)}) and d...
35.461988
120
0.61222
fe87beef40fe004b6da1c4eacbff7e6cb77de080
177
py
Python
prog1/implementacoes/uri/1020.py
gabrielmbs/Tamburetei
b7716d4e7683dc17831a574241bd26c0a67ca929
[ "MIT" ]
209
2018-10-31T02:32:30.000Z
2021-12-18T02:35:07.000Z
prog1/implementacoes/uri/1020.py
gabrielmbs/Tamburetei
b7716d4e7683dc17831a574241bd26c0a67ca929
[ "MIT" ]
304
2018-10-31T02:16:26.000Z
2021-12-20T19:41:27.000Z
prog1/implementacoes/uri/1020.py
gabrielmbs/Tamburetei
b7716d4e7683dc17831a574241bd26c0a67ca929
[ "MIT" ]
205
2018-10-31T02:38:41.000Z
2021-12-17T17:57:35.000Z
n = int(input()) anos = n // 365 meses = (n % 365) // 30 dias = (n % 365)%30 print("{} ano(s)".format(anos)) print("{} mes(es)".format(meses)) print("{} dia(s)".format(dias))
17.7
33
0.548023
dd338d3ece200117940390fed497ffd2a5778d7a
3,579
py
Python
zonemanager/fc_san_lookup_service.py
hybrid-storage-dev/cinder-fs-111t-hybrid-cherry
86eb7e8b71c26bc39164fa18a9faa1065e4c1fc1
[ "Apache-2.0" ]
null
null
null
zonemanager/fc_san_lookup_service.py
hybrid-storage-dev/cinder-fs-111t-hybrid-cherry
86eb7e8b71c26bc39164fa18a9faa1065e4c1fc1
[ "Apache-2.0" ]
null
null
null
zonemanager/fc_san_lookup_service.py
hybrid-storage-dev/cinder-fs-111t-hybrid-cherry
86eb7e8b71c26bc39164fa18a9faa1065e4c1fc1
[ "Apache-2.0" ]
null
null
null
# (c) Copyright 2014 Brocade Communications Systems Inc. # All Rights Reserved. # # Copyright 2014 OpenStack Foundation # # 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 # # ...
37.673684
79
0.678402
df56cfac960bab3f2e5fded1e8496af153d118e1
10
py
Python
tests/test_files/non_callable.py
Procrat/typy
668cedb7f929256a09f565af9ee43c02889bec3f
[ "MIT" ]
3
2016-03-08T09:55:20.000Z
2016-09-09T12:54:12.000Z
tests/test_files/non_callable.py
Procrat/typy
668cedb7f929256a09f565af9ee43c02889bec3f
[ "MIT" ]
null
null
null
tests/test_files/non_callable.py
Procrat/typy
668cedb7f929256a09f565af9ee43c02889bec3f
[ "MIT" ]
null
null
null
a = 5 a()
3.333333
5
0.3
82568f8455c817522855c2e54acb5657cb0925a9
7,452
py
Python
nova/tests/pci/test_pci_request.py
vmthunder/nova
baf05caab705c5778348d9f275dc541747b7c2de
[ "Apache-2.0" ]
null
null
null
nova/tests/pci/test_pci_request.py
vmthunder/nova
baf05caab705c5778348d9f275dc541747b7c2de
[ "Apache-2.0" ]
null
null
null
nova/tests/pci/test_pci_request.py
vmthunder/nova
baf05caab705c5778348d9f275dc541747b7c2de
[ "Apache-2.0" ]
null
null
null
# Copyright 2013 Intel 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 copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless require...
35.485714
78
0.527644
1f085fc27e72eaef3e1e13b5f5e2ab659a78964d
27,668
py
Python
lib/galaxy/model/metadata.py
beatrizserrano/galaxy
e149d9d32e1bca6c07c38b1a9cdabfee60323610
[ "CC-BY-3.0" ]
null
null
null
lib/galaxy/model/metadata.py
beatrizserrano/galaxy
e149d9d32e1bca6c07c38b1a9cdabfee60323610
[ "CC-BY-3.0" ]
2
2017-05-18T16:12:55.000Z
2022-03-08T12:08:43.000Z
lib/galaxy/model/metadata.py
beatrizserrano/galaxy
e149d9d32e1bca6c07c38b1a9cdabfee60323610
[ "CC-BY-3.0" ]
null
null
null
""" Galaxy Metadata """ import copy import json import logging import os import sys import tempfile import weakref from collections import OrderedDict from collections.abc import Mapping from os.path import abspath from typing import ( Any, Iterator, Optional, TYPE_CHECKING, Union, ) from sqlalche...
37.088472
146
0.640704
37664b6492a954b48c08041f22d6d6fd31484c72
4,528
py
Python
7GDL_Blender.py
Lucas-idp/Vibracoes-Python
ad77535a067bc5e080e5a6c7e2b59dc2c521e249
[ "CC0-1.0" ]
1
2021-04-18T15:05:55.000Z
2021-04-18T15:05:55.000Z
7GDL_Blender.py
Lucas-idp/Vibracoes7GDL-Python
ad77535a067bc5e080e5a6c7e2b59dc2c521e249
[ "CC0-1.0" ]
null
null
null
7GDL_Blender.py
Lucas-idp/Vibracoes7GDL-Python
ad77535a067bc5e080e5a6c7e2b59dc2c521e249
[ "CC0-1.0" ]
null
null
null
import bpy import csv import numpy as np import time import math #### Importing CSV files and saving to response vectors, one for each degree of freedom fpath = 'C:/7GDL_RespostaAnim2.csv' csvFile = csv.reader(open(fpath)) data = [row for row in csvFile][0:] data_7gdl = [] response = [] for i in range(le...
56.6
352
0.715769
867cf5cd6a38fdbd42de7965e9b68a208de3c382
4,013
py
Python
hokonui/exchanges/gateio.py
laisee/hoko
657a56ccf3fa0fde783753f669b24086b263c370
[ "MIT" ]
2
2015-11-14T12:22:26.000Z
2019-02-15T09:00:39.000Z
hokonui/exchanges/gateio.py
laisee/hoko
657a56ccf3fa0fde783753f669b24086b263c370
[ "MIT" ]
4
2017-07-28T02:58:12.000Z
2021-08-01T16:17:20.000Z
hokonui/exchanges/gateio.py
laisee/hoko
657a56ccf3fa0fde783753f669b24086b263c370
[ "MIT" ]
1
2021-08-18T14:13:01.000Z
2021-08-18T14:13:01.000Z
''' Module for Exchange base class ''' # pylint: disable=duplicate-code, line-too-long import time from hokonui.exchanges.base import Exchange as Base from hokonui.models.ticker import Ticker from hokonui.utils.helpers import apply_format from hokonui.utils.helpers import apply_format_level from hokonui.utils.helpers ...
35.830357
79
0.628956
27a2d622e6cd3c4ad6bf191b8645c4f193d777f4
3,317
py
Python
radiaTest-server/server/apps/user/routes.py
openeuler-mirror/radiaTest
4a067511d6ab69f76b8dc08667b8a1f8c1c73d23
[ "MulanPSL-1.0" ]
null
null
null
radiaTest-server/server/apps/user/routes.py
openeuler-mirror/radiaTest
4a067511d6ab69f76b8dc08667b8a1f8c1c73d23
[ "MulanPSL-1.0" ]
1
2022-03-23T06:53:25.000Z
2022-03-23T06:53:25.000Z
radiaTest-server/server/apps/user/routes.py
openeuler-mirror/radiaTest
4a067511d6ab69f76b8dc08667b8a1f8c1c73d23
[ "MulanPSL-1.0" ]
null
null
null
from flask import Blueprint from flask_restful import Resource from flask_pydantic import validate from server.utils.db import Select from server.utils.cla_util import ClaSignSchema from server.utils.auth_util import auth from server.utils.response_util import response_collect from server.schema.user import UpdateUserS...
27.87395
116
0.755502
da966e0701960d2493b474cd6f9dbc6c02b4d264
2,612
py
Python
setup.py
123456789hong/Pyhyp
66000ed5ebb36cfbd2fb73945b0ba34d1d418525
[ "BSD-3-Clause" ]
null
null
null
setup.py
123456789hong/Pyhyp
66000ed5ebb36cfbd2fb73945b0ba34d1d418525
[ "BSD-3-Clause" ]
null
null
null
setup.py
123456789hong/Pyhyp
66000ed5ebb36cfbd2fb73945b0ba34d1d418525
[ "BSD-3-Clause" ]
null
null
null
import io import re from setuptools import find_packages from setuptools import setup with io.open("READMEe.rst", "rt", encoding="utf8") as f: readme = f.read() with io.open("src/flask/__init__.py", "rt", encoding="utf8") as f: version = re.search(r'__version__ = "(.*?)"', f.read()).group(1) setup( name...
33.487179
79
0.570827
aef20dfbfecbaa6b317e46e56de6b58bdd059724
2,505
py
Python
qiskit/extensions/qasm_simulator_cpp/snapshot.py
Shark-y/qiskit-sdk-py
c1361b823dc1a3fab76545e62975c2afb02e442d
[ "Apache-2.0" ]
null
null
null
qiskit/extensions/qasm_simulator_cpp/snapshot.py
Shark-y/qiskit-sdk-py
c1361b823dc1a3fab76545e62975c2afb02e442d
[ "Apache-2.0" ]
38
2017-08-04T09:57:36.000Z
2017-08-23T10:35:32.000Z
qiskit/extensions/qasm_simulator_cpp/snapshot.py
Shark-y/qiskit-sdk-py
c1361b823dc1a3fab76545e62975c2afb02e442d
[ "Apache-2.0" ]
1
2017-08-18T08:22:50.000Z
2017-08-18T08:22:50.000Z
# -*- coding: utf-8 -*- # pylint: disable=invalid-name # Copyright 2017 IBM RESEARCH. 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/licen...
30.925926
79
0.623553
5c1ca540141f9012050e57016992edb6225e7655
7,720
py
Python
gen/argo/events/client/models/v1alpha1_sensor.py
argoproj-labs/argo-events-client-python
3d6e3dffca4a12a490c2963f4ac90c8894948bb5
[ "Apache-2.0" ]
null
null
null
gen/argo/events/client/models/v1alpha1_sensor.py
argoproj-labs/argo-events-client-python
3d6e3dffca4a12a490c2963f4ac90c8894948bb5
[ "Apache-2.0" ]
null
null
null
gen/argo/events/client/models/v1alpha1_sensor.py
argoproj-labs/argo-events-client-python
3d6e3dffca4a12a490c2963f4ac90c8894948bb5
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 """ Argo Events No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 The version of the OpenAPI document: v1.0.0 Generated by: https://openapi-generator.tech """ import pprint import re # noqa: F401 import six fr...
33.275862
312
0.623057
03d0784791a801b30a620408aab1619c639ffa0c
2,625
py
Python
Scripts/ga/perc_050/dynamic_resources_exp4.py
radical-experiments/campaign_manager
337660cf07a97933b9b516d6612353bd3f6592a8
[ "MIT" ]
null
null
null
Scripts/ga/perc_050/dynamic_resources_exp4.py
radical-experiments/campaign_manager
337660cf07a97933b9b516d6612353bd3f6592a8
[ "MIT" ]
null
null
null
Scripts/ga/perc_050/dynamic_resources_exp4.py
radical-experiments/campaign_manager
337660cf07a97933b9b516d6612353bd3f6592a8
[ "MIT" ]
null
null
null
from radical.cm.planner import GAPlanner from random import gauss import pandas as pd import numpy as np import sys from time import time def df_to_lists(cmp, size): tmp_workflows = list() tmp_numoper = list() for i in range(size): point = cmp.loc[i] workflow = {'description': None} ...
35
121
0.616
d1ce4d64a1d8c2bf4cdee7e685a19358df002bea
8,939
py
Python
kats/tests/models/test_theta_model.py
prsalm/Kats
786a2d81193fda2ffc6d90d0e8b4d52600ce8ee7
[ "MIT" ]
3,580
2021-06-21T03:55:17.000Z
2022-03-31T20:21:38.000Z
kats/tests/models/test_theta_model.py
leofionn/Kats
4f8599c538a8203358bd987f92ab69c74635fb58
[ "MIT" ]
164
2021-06-22T03:00:32.000Z
2022-03-31T22:08:16.000Z
kats/tests/models/test_theta_model.py
leofionn/Kats
4f8599c538a8203358bd987f92ab69c74635fb58
[ "MIT" ]
350
2021-06-21T19:53:47.000Z
2022-03-30T08:07:03.000Z
# Copyright (c) Facebook, Inc. and its affiliates. # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. # pyre-unsafe import re import unittest from typing import Optional from unittest import TestCase from unittest.mock import patch import numpy...
28.928803
88
0.497035
d7767020504d6b37195782efe6cea9ae2c6870c0
1,302
py
Python
trel/migrations/0002_complaint.py
alsoncahyadi/julid-be
9bb63882cab637329b85d35da874ea1c03180cdd
[ "MIT" ]
null
null
null
trel/migrations/0002_complaint.py
alsoncahyadi/julid-be
9bb63882cab637329b85d35da874ea1c03180cdd
[ "MIT" ]
null
null
null
trel/migrations/0002_complaint.py
alsoncahyadi/julid-be
9bb63882cab637329b85d35da874ea1c03180cdd
[ "MIT" ]
null
null
null
# Generated by Django 2.1.7 on 2019-02-14 09:31 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('trel', '0001_initial'), ] operations = [ migrations.CreateModel( name='Complaint', fields=[ ('id', m...
38.294118
105
0.566052
f13a861be96cbaaf2871c8a8e46cd1a5fde5b80c
10,069
py
Python
scripts/listpages.py
zkhalido/pywikibotGerritMirror
b7775cb150c88e05fbfe66f2a90ace5bd08a7344
[ "MIT" ]
1
2019-10-02T19:25:38.000Z
2019-10-02T19:25:38.000Z
scripts/listpages.py
mridullpandey/pywikibot
6c9280bea615ad457fd79c01bf1d2cab4c6bf220
[ "MIT" ]
2
2019-11-07T13:46:32.000Z
2019-11-07T14:20:53.000Z
scripts/listpages.py
mridullpandey/pywikibot
6c9280bea615ad457fd79c01bf1d2cab4c6bf220
[ "MIT" ]
null
null
null
#!/usr/bin/python # -*- coding: utf-8 -*- r""" Print a list of pages, as defined by page generator parameters. Optionally, it also prints page content to STDOUT or save it to a file in the current directory. These parameters are supported to specify which pages titles to print: -format Defines the output format....
34.961806
79
0.582282
54e8eefedfd020857203a9e58a1318df9611c157
2,216
py
Python
chatbot.py
Soosai007/Python-projects-
3cd61e7019a77ccf46a7805827bef2ac6371af3a
[ "MIT" ]
null
null
null
chatbot.py
Soosai007/Python-projects-
3cd61e7019a77ccf46a7805827bef2ac6371af3a
[ "MIT" ]
null
null
null
chatbot.py
Soosai007/Python-projects-
3cd61e7019a77ccf46a7805827bef2ac6371af3a
[ "MIT" ]
null
null
null
from nltk.chat.util import Chat, reflections pairs = [ [ r"my name is (.*)", ["Hello %1, How are you today ?",] ], [ r"what is your name ?", ["My name is Chatty and I'm a chatbot ?",] ], [ r"how are you ?", ["I'm doing good\nHow about Yo...
26.070588
166
0.449007
87b60e49e93365ad32b68fdf91a2d44478595b14
4,310
py
Python
tests/test_utils.py
EthanCarragher/anesthetic
b577d4ca415292e8875e2afc3a9a97d6b1a4b931
[ "MIT" ]
null
null
null
tests/test_utils.py
EthanCarragher/anesthetic
b577d4ca415292e8875e2afc3a9a97d6b1a4b931
[ "MIT" ]
null
null
null
tests/test_utils.py
EthanCarragher/anesthetic
b577d4ca415292e8875e2afc3a9a97d6b1a4b931
[ "MIT" ]
null
null
null
import warnings import numpy as np from scipy import special as sp from numpy.testing import assert_array_equal from anesthetic import NestedSamples from anesthetic.utils import (nest_level, compute_nlive, unique, is_int, logsumexp, sample_compression_1d, tria...
29.724138
78
0.630626
61690278a2f2153006aa3277c470a065632ba0ea
4,320
py
Python
tests/cupy_tests/statics_tests/test_meanvar.py
keisuke-umezawa/cupy
d4070ad0f5bd830638419e70e3f931e7b7d718f7
[ "BSD-3-Clause" ]
1
2020-11-24T03:44:35.000Z
2020-11-24T03:44:35.000Z
tests/cupy_tests/statics_tests/test_meanvar.py
keisuke-umezawa/cupy
d4070ad0f5bd830638419e70e3f931e7b7d718f7
[ "BSD-3-Clause" ]
null
null
null
tests/cupy_tests/statics_tests/test_meanvar.py
keisuke-umezawa/cupy
d4070ad0f5bd830638419e70e3f931e7b7d718f7
[ "BSD-3-Clause" ]
1
2020-11-24T03:44:35.000Z
2020-11-24T03:44:35.000Z
import unittest from cupy import testing @testing.gpu class TestMeanVar(unittest.TestCase): _multiprocess_can_split_ = True @testing.for_all_dtypes() @testing.numpy_cupy_allclose() def test_mean_all(self, xp, dtype): a = testing.shaped_arange((2, 3), xp, dtype) return a.mean() ...
33.230769
55
0.661343
8911bb3b9cba3d7a49d9ae2bcb14dcaf898ccbf4
503
py
Python
Code/test.py
yash3108/ASL_gest_detect
a6aaf6e2f422d764b096130c242c3e7091b78c3f
[ "MIT" ]
null
null
null
Code/test.py
yash3108/ASL_gest_detect
a6aaf6e2f422d764b096130c242c3e7091b78c3f
[ "MIT" ]
null
null
null
Code/test.py
yash3108/ASL_gest_detect
a6aaf6e2f422d764b096130c242c3e7091b78c3f
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Sun Oct 4 11:50:45 2020 @author: shahy_mxyzd8u """ import urllib.request import cv2 import numpy as np import time url='http://192.168.100.8:8080/shot.jpg' while True: #imgResp=urllib.request.urlopen(url) #imgNp=np.array(bytearray(imgResp.read()),dtype=np.uint8) ...
21.869565
62
0.656064
8cca8cbeed7e2897095d1584a978514ffd02c7a0
3,934
py
Python
mro/stages/vloupe/vloupe_preprocess/__init__.py
qiangli/cellranger
046e24c3275cfbd4516a6ebc064594513a5c45b7
[ "MIT" ]
1
2019-03-29T04:05:58.000Z
2019-03-29T04:05:58.000Z
mro/stages/vloupe/vloupe_preprocess/__init__.py
qiangli/cellranger
046e24c3275cfbd4516a6ebc064594513a5c45b7
[ "MIT" ]
null
null
null
mro/stages/vloupe/vloupe_preprocess/__init__.py
qiangli/cellranger
046e24c3275cfbd4516a6ebc064594513a5c45b7
[ "MIT" ]
null
null
null
#!/usr/bin/env python # # Copyright (c) 2017 10X Genomics, Inc. All rights reserved. # import os.path import martian import subprocess import tenkit.log_subprocess as tk_subproc __MRO__ = """ stage VLOUPE_PREPROCESS( in string pipestance_type, in string sample_id, in string sample_desc, in...
38.950495
89
0.657855
066b160ce80556966eaa6a68ac60db3f69984bb6
14,410
py
Python
ci/ci/ci.py
tpoterba/hail
8b14a519165f39d9ea7cf29545410622b6ae59c9
[ "MIT" ]
1
2022-01-03T13:46:08.000Z
2022-01-03T13:46:08.000Z
ci/ci/ci.py
tpoterba/hail
8b14a519165f39d9ea7cf29545410622b6ae59c9
[ "MIT" ]
2
2016-08-12T18:38:24.000Z
2018-09-05T15:26:35.000Z
ci/ci/ci.py
tpoterba/hail
8b14a519165f39d9ea7cf29545410622b6ae59c9
[ "MIT" ]
null
null
null
import traceback import json import os import logging import asyncio import concurrent.futures import aiohttp from aiohttp import web import aiohttp_session import uvloop from gidgethub import aiohttp as gh_aiohttp, routing as gh_routing, sansio as gh_sansio from hailtop.utils import collect_agen, humanize_timedelta_ms...
35.060827
119
0.671339
1fa8039567ac74bc6b470a1317ab8fdb58346e09
489
py
Python
iosDevCourse/core/management/commands/filldb.py
skylifewww/artdelo
55d235a59d8a3abdf0f904336c1c75a2be903699
[ "MIT" ]
null
null
null
iosDevCourse/core/management/commands/filldb.py
skylifewww/artdelo
55d235a59d8a3abdf0f904336c1c75a2be903699
[ "MIT" ]
null
null
null
iosDevCourse/core/management/commands/filldb.py
skylifewww/artdelo
55d235a59d8a3abdf0f904336c1c75a2be903699
[ "MIT" ]
null
null
null
from django.core.management import call_command from django.core.management.base import NoArgsCommand from iosDevCourse.users.factories import generate_users class Command(NoArgsCommand): help = 'Fill the database with test fixtures' def handle(self, *args, **options): self.stdout.write('Starting fi...
25.736842
55
0.703476
19ad0943251b6d270c1eb010a5d7cd730e149888
476
py
Python
Chapter 8/bag.py
codered-by-ec-council/Micro-Degree-in-Python-Security
cb16ed78ee38dad32e3909371edec8ff3ce6e6a7
[ "MIT" ]
4
2020-09-25T05:57:22.000Z
2021-02-27T14:56:23.000Z
Chapter 8/bag.py
codered-by-ec-council/Micro-Degree-in-Python-Security
cb16ed78ee38dad32e3909371edec8ff3ce6e6a7
[ "MIT" ]
4
2021-06-08T23:01:11.000Z
2022-03-12T00:54:16.000Z
Chapter 8/bag.py
codered-by-ec-council/Micro-Degree-in-Python-Security
cb16ed78ee38dad32e3909371edec8ff3ce6e6a7
[ "MIT" ]
5
2020-10-15T10:22:04.000Z
2021-11-16T22:17:50.000Z
from collections_extended import bag b = bag("bananarama") s = set("bananarama") if __name__ == "__main__": print(b.count("a")) b.remove("a") print(b.count("a")) print("a" in b) print(b.count("r")) b.remove("r") print(b.count("r")) print("r" in b) print("") # print(s.count("a")...
19.833333
36
0.521008
a6450618ca85997a065cd12179d9c2d7b4340cf7
39,445
py
Python
6 - Stitching.py
TAdeJong/LEEM-analysis
efd70a38b138c4bd0b2028cf199a6254366b286c
[ "MIT" ]
8
2019-08-02T16:31:25.000Z
2022-03-22T19:34:44.000Z
6 - Stitching.py
TAdeJong/LEEM-analysis
efd70a38b138c4bd0b2028cf199a6254366b286c
[ "MIT" ]
2
2021-08-04T14:49:44.000Z
2021-12-06T10:01:45.000Z
6 - Stitching.py
TAdeJong/LEEM-analysis
efd70a38b138c4bd0b2028cf199a6254366b286c
[ "MIT" ]
5
2020-10-29T14:38:27.000Z
2022-02-17T16:13:05.000Z
# -*- coding: utf-8 -*- # --- # jupyter: # jupytext: # cell_metadata_json: true # formats: ipynb,py:light # text_representation: # extension: .py # format_name: light # format_version: '1.5' # jupytext_version: 1.5.0 # kernelspec: # display_name: Python [conda env:LEEM-analys...
42.232334
434
0.64183
1fbba980f6325e2d704620cc505fec7050f691ef
4,372
py
Python
aether/sdk/health/tests/test_views.py
eHealthAfrica/aether-django-sdk-library
fc371af89bfed155d465049320f32bf43860d001
[ "Apache-2.0" ]
1
2020-05-04T21:05:11.000Z
2020-05-04T21:05:11.000Z
aether/sdk/health/tests/test_views.py
eHealthAfrica/aether-django-sdk-library
fc371af89bfed155d465049320f32bf43860d001
[ "Apache-2.0" ]
3
2019-09-30T15:45:43.000Z
2020-04-29T08:12:37.000Z
aether/sdk/health/tests/test_views.py
eHealthAfrica/aether-django-sdk-library
fc371af89bfed155d465049320f32bf43860d001
[ "Apache-2.0" ]
null
null
null
# Copyright (C) 2019 by eHealth Africa : http://www.eHealthAfrica.org # # See the NOTICE file distributed with this work for additional information # regarding copyright ownership. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with # the License. Y...
39.387387
90
0.661025
3d4b21294ef25e7a7b3ef2a81f43ed61683d28bc
1,240
py
Python
test/pytest_cases/test_io.py
GuiYuDaniel/CGC_of_Sn
c54e4e65a5ecff09d3e4c5fed76bf30b3804fefa
[ "MIT" ]
null
null
null
test/pytest_cases/test_io.py
GuiYuDaniel/CGC_of_Sn
c54e4e65a5ecff09d3e4c5fed76bf30b3804fefa
[ "MIT" ]
null
null
null
test/pytest_cases/test_io.py
GuiYuDaniel/CGC_of_Sn
c54e4e65a5ecff09d3e4c5fed76bf30b3804fefa
[ "MIT" ]
null
null
null
# -*- coding:utf8 -*- """ 测试src/utils/io功能是否正确执行 """ import os import pickle import pytest from utils.io import Path, Save, Load, Delete class TestSave(object): """ test class Save functions """ def setup_class(self): self.fake_path = Path._get_full_path(relative_path="fake", base_path_type...
28.181818
110
0.633871
bdb1d535f5dc466e546d1688b048ced8b16daf10
7,440
py
Python
src/test/tests/databases/mili.py
cstatz/visit
f352f3984fa77392e81acbaa6943778a779f0435
[ "BSD-3-Clause" ]
null
null
null
src/test/tests/databases/mili.py
cstatz/visit
f352f3984fa77392e81acbaa6943778a779f0435
[ "BSD-3-Clause" ]
null
null
null
src/test/tests/databases/mili.py
cstatz/visit
f352f3984fa77392e81acbaa6943778a779f0435
[ "BSD-3-Clause" ]
null
null
null
# ---------------------------------------------------------------------------- # CLASSES: nightly # # Test Case: mili.py # # Tests: mesh - 3D unstructured, multi-domain # plots - Pseudocolor, material, vector, tensor, label # # # Programmer: Alister Maguire # Date: May 22, 2019 # ...
24.8
78
0.644758
830472e4e7890f8993705e69ff0cfe75d06fd384
34,914
py
Python
Testing/Python/TestCoarsenModel.py
Numerics88/vtkbone
5a6ab2870679e9e7ea51926c34911607b9d85235
[ "MIT" ]
3
2017-04-04T04:59:22.000Z
2022-03-13T11:22:40.000Z
Testing/Python/TestCoarsenModel.py
Numerics88/vtkbone
5a6ab2870679e9e7ea51926c34911607b9d85235
[ "MIT" ]
5
2017-04-06T19:46:39.000Z
2019-12-11T23:41:41.000Z
Testing/Python/TestCoarsenModel.py
Numerics88/vtkbone
5a6ab2870679e9e7ea51926c34911607b9d85235
[ "MIT" ]
2
2017-04-29T20:54:57.000Z
2017-04-29T22:28:10.000Z
from __future__ import division import unittest from numpy.core import * import numpy import vtk from vtk.util.numpy_support import vtk_to_numpy, numpy_to_vtk import vtkbone def stress_strain_isotropic (E, nu): s = nu/(1-nu) t = (1-2*nu)/(2*(1-nu)) D = array ([[ 1, s, s, 0, 0, 0], [ s, 1,...
38.157377
98
0.657473
68c3975d00615d5d0b1714ac7f54931618cce331
4,025
py
Python
plugins/action/external_radius_server_info.py
steinzi/ansible-ise
0add9c8858ed8e0e5e7219fbaf0c936b6d7cc6c0
[ "MIT" ]
null
null
null
plugins/action/external_radius_server_info.py
steinzi/ansible-ise
0add9c8858ed8e0e5e7219fbaf0c936b6d7cc6c0
[ "MIT" ]
null
null
null
plugins/action/external_radius_server_info.py
steinzi/ansible-ise
0add9c8858ed8e0e5e7219fbaf0c936b6d7cc6c0
[ "MIT" ]
null
null
null
from __future__ import (absolute_import, division, print_function) __metaclass__ = type from ansible.plugins.action import ActionBase try: from ansible_collections.ansible.utils.plugins.module_utils.common.argspec_validate import ( AnsibleArgSpecValidator, ) except ImportError: ANSIBLE_UTILS_IS_INST...
35.619469
128
0.624099
bfd4f2a03933d8078f8572ed09878b67d5bc9f6f
5,601
py
Python
coffeecups/models.py
J1bz/ecoloscore
68e3e7975c59dcf2db5f050ccea5f65d6f2d8645
[ "BSD-3-Clause" ]
null
null
null
coffeecups/models.py
J1bz/ecoloscore
68e3e7975c59dcf2db5f050ccea5f65d6f2d8645
[ "BSD-3-Clause" ]
null
null
null
coffeecups/models.py
J1bz/ecoloscore
68e3e7975c59dcf2db5f050ccea5f65d6f2d8645
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- from datetime import datetime, timedelta from django.core.exceptions import ObjectDoesNotExist from django.db.models import (Model, ForeignKey, DateTimeField, CharField, ManyToManyField, IntegerField, TextField) from django.forms import ModelForm, CharField as for...
31.466292
77
0.572041
71d7f89abadcf35a50c0989f4c464b113e80382a
11,569
py
Python
dqns/dqn_interface.py
0xsuu/gym-free-DQN
564b8f1d0e7ec67a9926d9036fb4c0d8b1385420
[ "Apache-2.0" ]
3
2019-03-18T11:21:04.000Z
2021-11-17T11:08:12.000Z
dqns/dqn_interface.py
0xsuu/gym-free-DQN
564b8f1d0e7ec67a9926d9036fb4c0d8b1385420
[ "Apache-2.0" ]
null
null
null
dqns/dqn_interface.py
0xsuu/gym-free-DQN
564b8f1d0e7ec67a9926d9036fb4c0d8b1385420
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 # Copyright 2017 Project Mahjong. 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...
38.822148
96
0.60714
99e6a237c4f3c776e314575141c8735fedf0b86c
3,184
py
Python
go/dlgo/agent/predict.py
huynq55/alpha-zero-general
7c7b8a9a09b79178157ec6b6d379a071c9f0994a
[ "MIT" ]
null
null
null
go/dlgo/agent/predict.py
huynq55/alpha-zero-general
7c7b8a9a09b79178157ec6b6d379a071c9f0994a
[ "MIT" ]
null
null
null
go/dlgo/agent/predict.py
huynq55/alpha-zero-general
7c7b8a9a09b79178157ec6b6d379a071c9f0994a
[ "MIT" ]
1
2020-06-11T21:55:31.000Z
2020-06-11T21:55:31.000Z
# tag::dl_agent_imports[] import numpy as np from dlgo.agent.base import Agent from dlgo.agent.helpers import is_point_an_eye from dlgo import encoders from dlgo import goboard from dlgo import kerasutil # end::dl_agent_imports[] __all__ = [ 'DeepLearningAgent', 'load_prediction_agent', ] # tag::dl_agent_ini...
37.904762
96
0.692525
f5785bbcb1ebba33d5b9163e7a4ee79d62bf4ba1
676
py
Python
neosis_telephone_directory/users/tests/test_urls.py
borkarfaiz/neosis_telephone_directory
d4a0f7197ac15f4993488e21459a744c370fde0f
[ "MIT" ]
null
null
null
neosis_telephone_directory/users/tests/test_urls.py
borkarfaiz/neosis_telephone_directory
d4a0f7197ac15f4993488e21459a744c370fde0f
[ "MIT" ]
null
null
null
neosis_telephone_directory/users/tests/test_urls.py
borkarfaiz/neosis_telephone_directory
d4a0f7197ac15f4993488e21459a744c370fde0f
[ "MIT" ]
null
null
null
import pytest from django.urls import resolve, reverse from neosis_telephone_directory.users.models import User pytestmark = pytest.mark.django_db def test_detail(user: User): assert ( reverse("users:detail", kwargs={"username": user.username}) == f"/users/{user.username}/" ) assert reso...
27.04
74
0.684911
e011e90342089565c46ded215f5ce068dc27b0c7
3,169
py
Python
WebDriverWait_ex.py
mengqhui/mypython
2829bf40684489f220cde0710a585677293f04ae
[ "Apache-2.0" ]
null
null
null
WebDriverWait_ex.py
mengqhui/mypython
2829bf40684489f220cde0710a585677293f04ae
[ "Apache-2.0" ]
null
null
null
WebDriverWait_ex.py
mengqhui/mypython
2829bf40684489f220cde0710a585677293f04ae
[ "Apache-2.0" ]
null
null
null
# coding=utf-8 # python selenium2 中的显示等待WebDriverWait与条件判断expected_conditions举例 from selenium import webdriver from selenium.webdriver.common.by import By from selenium.webdriver.support import expected_conditions as EC from selenium.webdriver.support.wait import WebDriverWait base_url = "http://www.baidu.com" ...
36.848837
114
0.731145
9e06288751332f08fc647feaeaca73f090bc38b8
132
py
Python
newrelic_plugin_agent/constants.py
ambitioninc/django-newrelic-plugin-agent
8ae3029ffd86d6e3c81a59e54b65a3e1f86ba654
[ "MIT" ]
null
null
null
newrelic_plugin_agent/constants.py
ambitioninc/django-newrelic-plugin-agent
8ae3029ffd86d6e3c81a59e54b65a3e1f86ba654
[ "MIT" ]
4
2016-04-15T19:44:03.000Z
2016-11-29T15:01:02.000Z
newrelic_plugin_agent/constants.py
ambitioninc/django-newrelic-plugin-agent
8ae3029ffd86d6e3c81a59e54b65a3e1f86ba654
[ "MIT" ]
2
2016-04-07T19:20:11.000Z
2016-11-29T14:42:22.000Z
# Namespace of agent mutex ID # Always append guid of metric when obtaining a lock AGENT_MUTEX_ID_NAMESPACE = 'NewrelicPluginAgent'
33
52
0.818182
11834f5f189ca9e4b93a600c4dfe0d61b5de4be1
12,276
py
Python
venv/lib/python3.6/site-packages/weasyprint/layout/columns.py
jyoost/saleordjangooriginal
e7d0da1f6f653607580a9cd792acfc4917908649
[ "CC-BY-4.0" ]
2
2019-12-06T15:40:14.000Z
2020-07-29T21:30:35.000Z
venv/lib/python3.6/site-packages/weasyprint/layout/columns.py
jyoost/saleor
e7d0da1f6f653607580a9cd792acfc4917908649
[ "CC-BY-4.0" ]
13
2020-03-24T17:53:51.000Z
2022-02-10T20:01:14.000Z
venv/lib/python3.6/site-packages/weasyprint/layout/columns.py
jyoost/saleor
e7d0da1f6f653607580a9cd792acfc4917908649
[ "CC-BY-4.0" ]
null
null
null
""" weasyprint.layout.columns ------------------------- Layout for columns. :copyright: Copyright 2011-2019 Simon Sapin and contributors, see AUTHORS. :license: BSD, see LICENSE for details. """ from math import floor from .absolute import absolute_layout from .percentages import resolve_percen...
40.649007
79
0.586347
75e228d72a643744244d19709e2c714ed00d868a
25,096
py
Python
cumulusci/tasks/bulkdata.py
1handclapping/CumulusCI
cb7b061d049c5f05503a4ef23ac198342496a949
[ "BSD-3-Clause" ]
null
null
null
cumulusci/tasks/bulkdata.py
1handclapping/CumulusCI
cb7b061d049c5f05503a4ef23ac198342496a949
[ "BSD-3-Clause" ]
null
null
null
cumulusci/tasks/bulkdata.py
1handclapping/CumulusCI
cb7b061d049c5f05503a4ef23ac198342496a949
[ "BSD-3-Clause" ]
null
null
null
from future import standard_library standard_library.install_aliases() from builtins import zip from contextlib import contextmanager import csv import datetime import io import itertools import time import tempfile import xml.etree.ElementTree as ET from salesforce_bulk.util import IteratorBytesIO from sqlalchemy.ex...
37.909366
150
0.593521
ef4efb9145edf1bb71b3e6ae40a2ce3c97e9e35d
4,404
py
Python
profiles_api/views.py
solrakmnk/profiles-rest-api
7496ba93aaf4abeb8a64f2b4b8e356b9c872a61a
[ "MIT" ]
null
null
null
profiles_api/views.py
solrakmnk/profiles-rest-api
7496ba93aaf4abeb8a64f2b4b8e356b9c872a61a
[ "MIT" ]
7
2020-01-08T15:10:40.000Z
2022-02-10T11:59:38.000Z
profiles_api/views.py
solrakmnk/profiles-rest-api
7496ba93aaf4abeb8a64f2b4b8e356b9c872a61a
[ "MIT" ]
null
null
null
from rest_framework.views import APIView from rest_framework.response import Response from rest_framework import status from rest_framework import viewsets from rest_framework.authentication import TokenAuthentication from rest_framework import filters from rest_framework.authtoken.views import ObtainAuthToken from res...
33.618321
77
0.665758
f247e0dd4db4ee188b1daf3e72227ac2057daa44
25,841
py
Python
tests/test_tasks.py
inducer/courseflow
0f9786e3616dbedf08365d81a731f672b97ba9f5
[ "Unlicense" ]
null
null
null
tests/test_tasks.py
inducer/courseflow
0f9786e3616dbedf08365d81a731f672b97ba9f5
[ "Unlicense" ]
null
null
null
tests/test_tasks.py
inducer/courseflow
0f9786e3616dbedf08365d81a731f672b97ba9f5
[ "Unlicense" ]
null
null
null
__copyright__ = "Copyright (C) 2018 Dong Zhuang" __license__ = """ Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify...
38.858647
84
0.641384
e6155a79446590b7d71e84c8e4d7cabd37af6f56
1,187
py
Python
api/src/lib/twitter/users/user_lookup/params.py
kagemeka/twitter-api-python
c78e2b16177126d7808b90d09d6f565bd89dce5b
[ "MIT" ]
null
null
null
api/src/lib/twitter/users/user_lookup/params.py
kagemeka/twitter-api-python
c78e2b16177126d7808b90d09d6f565bd89dce5b
[ "MIT" ]
null
null
null
api/src/lib/twitter/users/user_lookup/params.py
kagemeka/twitter-api-python
c78e2b16177126d7808b90d09d6f565bd89dce5b
[ "MIT" ]
null
null
null
import dataclasses import typing from .. import Expansions from ...fields import TweetFields, UserFields from ... import ConvertParams @dataclasses.dataclass class Params(): expansions: Expansions = Expansions() tweet_fields: TweetFields = TweetFields() user_fields: UserFields = UserFields() def to_dict(se...
17.716418
50
0.660489
adbbb20731e8b671460808372648cbb6abe68e90
194
py
Python
bgpy/__init__.py
munterfinger/background-py
3ebfe95855b6cc1b36f93165ad3ab14bf566a6d7
[ "MIT" ]
null
null
null
bgpy/__init__.py
munterfinger/background-py
3ebfe95855b6cc1b36f93165ad3ab14bf566a6d7
[ "MIT" ]
42
2021-02-08T18:00:48.000Z
2021-10-01T17:17:11.000Z
bgpy/__init__.py
munterfinger/bgpy
3ebfe95855b6cc1b36f93165ad3ab14bf566a6d7
[ "MIT" ]
null
null
null
"""Top-level package for bgpy.""" from .client import Client from .server import Server, respond from .core.token import token_create __all__ = ["Client", "Server", "respond", "token_create"]
24.25
57
0.731959
6edeed24cf9495ea698593379228040d2e39d8c3
6,613
py
Python
kollet/kollet.py
kollet-io/kollet-python-api-wrapper
3064c372ddc1b6391e16b3ffd21890249ca5c6c7
[ "MIT" ]
null
null
null
kollet/kollet.py
kollet-io/kollet-python-api-wrapper
3064c372ddc1b6391e16b3ffd21890249ca5c6c7
[ "MIT" ]
null
null
null
kollet/kollet.py
kollet-io/kollet-python-api-wrapper
3064c372ddc1b6391e16b3ffd21890249ca5c6c7
[ "MIT" ]
null
null
null
""" Kollet Merchant API Wrapper ~~~~~~~~~~~~~~~~~~~~~~~~~~~ Python API wrapper for the Kollet Merchant API :copyright: (c) 2021 by Kollet.io. :license: MIT, see LICENSE for more details. """ __author__ = "Kollet.io" __version__ = "0.0.2" import requests from .errors import KolletErrors class Kollet(object): def...
38.447674
126
0.62861
7889aaa3daa93c9609596e7894d58998fa831b65
1,974
py
Python
nobos_commons/utils/human_surveyor.py
noboevbo/nobos_commons
471e52e10fd2228c106777c72d8439e58b047003
[ "MIT" ]
2
2020-06-03T16:28:44.000Z
2020-10-10T03:07:23.000Z
nobos_commons/utils/human_surveyor.py
noboevbo/nobos_commons
471e52e10fd2228c106777c72d8439e58b047003
[ "MIT" ]
null
null
null
nobos_commons/utils/human_surveyor.py
noboevbo/nobos_commons
471e52e10fd2228c106777c72d8439e58b047003
[ "MIT" ]
4
2020-10-10T03:07:25.000Z
2021-09-30T01:11:02.000Z
from nobos_commons.data_structures.skeletons.limb_2d import Limb2D from nobos_commons.data_structures.skeletons.skeleton_stickman_limbs import SkeletonStickmanLimbs from nobos_commons.utils.limb_helper import get_limb_length class HumanSurveyor(object): def get_human_height(self, limbs: SkeletonStickmanLimbs) -> ...
44.863636
108
0.720871
cef942e7eca1dcc44cb71fd0301284c26b14b06c
2,903
py
Python
data_loader.py
srviest/CharCNN_PyTorch
f269894ad40ef4d716b76b24db20379f102cae37
[ "Apache-2.0" ]
132
2018-05-12T18:04:28.000Z
2022-03-21T13:20:16.000Z
data_loader.py
srviest/CharCNN_pytorch
f269894ad40ef4d716b76b24db20379f102cae37
[ "Apache-2.0" ]
5
2018-10-31T23:19:09.000Z
2020-06-07T18:32:29.000Z
data_loader.py
srviest/CharCNN_pytorch
f269894ad40ef4d716b76b24db20379f102cae37
[ "Apache-2.0" ]
38
2018-05-15T02:48:52.000Z
2021-11-09T22:04:32.000Z
#!/usr/bin/env python3 from torch.utils.data import DataLoader, Dataset import torch.autograd as autograd import torch import json import csv class AGNEWs(Dataset): def __init__(self, label_data_path, alphabet_path, l0 = 1014): """Create AG's News dataset object. Arguments: label_data_...
31.554348
91
0.588012
1f4f5ab9e6b568caa74c1001de9942c7910b7bdb
3,519
py
Python
pet_promotion/projects/settings.py
minsgy/9th_Pet_Promotion_Backend
ecd18cb7bca635492f7bfc4815d43493c32d76d7
[ "MIT" ]
null
null
null
pet_promotion/projects/settings.py
minsgy/9th_Pet_Promotion_Backend
ecd18cb7bca635492f7bfc4815d43493c32d76d7
[ "MIT" ]
null
null
null
pet_promotion/projects/settings.py
minsgy/9th_Pet_Promotion_Backend
ecd18cb7bca635492f7bfc4815d43493c32d76d7
[ "MIT" ]
null
null
null
""" Django settings for projects project. Generated by 'django-admin startproject' using Django 3.1.7. For more information on this file, see https://docs.djangoproject.com/en/3.1/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/3.1/ref/settings/ """ from pathli...
24.4375
91
0.693947
9fbd2fb37571c4349b968ea258da32ba70154d3f
286
py
Python
hseling_api_nauchpop/setup.py
Neundert/hseling-api-nauchpop
01ea3027f072577dbb5243291bf91be5bd059336
[ "MIT" ]
null
null
null
hseling_api_nauchpop/setup.py
Neundert/hseling-api-nauchpop
01ea3027f072577dbb5243291bf91be5bd059336
[ "MIT" ]
1
2018-12-16T17:45:17.000Z
2018-12-16T19:19:03.000Z
hseling_api_nauchpop/setup.py
Neundert/hseling-api-nauchpop
01ea3027f072577dbb5243291bf91be5bd059336
[ "MIT" ]
3
2018-12-08T13:31:56.000Z
2022-01-20T05:52:35.000Z
from setuptools import setup, find_packages setup( name='', version='0.1', description='A description.', packages=find_packages(exclude=['ez_setup', 'tests', 'tests.*']), package_data={'': ['license.txt']}, include_package_data=True, install_requires=[], )
23.833333
69
0.653846
51f84b2cdce0988350db8b2a5f54e7b5ff439dea
6,520
py
Python
tests/modules/users/test_repository.py
jorge4larcon/fastproject
0a091940c22e27d813f38819027081314d334c22
[ "MIT" ]
12
2022-02-11T04:03:17.000Z
2022-02-15T03:34:50.000Z
tests/modules/users/test_repository.py
jorge4larcon/fastproject
0a091940c22e27d813f38819027081314d334c22
[ "MIT" ]
null
null
null
tests/modules/users/test_repository.py
jorge4larcon/fastproject
0a091940c22e27d813f38819027081314d334c22
[ "MIT" ]
1
2022-02-13T02:55:50.000Z
2022-02-13T02:55:50.000Z
"""Tests for module modules.users.password_validators.""" import datetime import uuid import asyncpg import pytest from fastproject.modules.users import exceptions, repository class MockPoolAcquireContext: pass @pytest.mark.asyncio async def test_insert_user(monkeypatch): async def mock_insert_user(conn,...
36.629213
88
0.636196
6150c7ea62b1a183579ea526b889463ecf5173e7
17,475
py
Python
src/prefect/cli/agent.py
zmac12/prefect
7fe55a83f275a01d95268ff9e4bd5f5b349728e1
[ "Apache-2.0" ]
null
null
null
src/prefect/cli/agent.py
zmac12/prefect
7fe55a83f275a01d95268ff9e4bd5f5b349728e1
[ "Apache-2.0" ]
null
null
null
src/prefect/cli/agent.py
zmac12/prefect
7fe55a83f275a01d95268ff9e4bd5f5b349728e1
[ "Apache-2.0" ]
null
null
null
import click from prefect import config from prefect.utilities.configuration import set_temporary_config from prefect.utilities.serialization import from_qualified_name _agents = { "fargate": "prefect.agent.fargate.FargateAgent", "docker": "prefect.agent.docker.DockerAgent", "kubernetes": "prefect.agent.k...
32.847744
99
0.559371
8b523e634dcf4e0452769ab00883b2fd2bac5c29
16,287
py
Python
mmdet3d/datasets/scannet_dataset.py
xiangruhuang/mmdetection3d
e669263a60a361532a077f655721a885f8ac6280
[ "Apache-2.0" ]
29
2021-09-29T13:31:12.000Z
2022-03-15T13:31:25.000Z
mmdet3d/datasets/scannet_dataset.py
xiangruhuang/mmdetection3d
e669263a60a361532a077f655721a885f8ac6280
[ "Apache-2.0" ]
3
2021-12-13T01:21:12.000Z
2022-02-24T01:46:14.000Z
mmdet3d/datasets/scannet_dataset.py
xiangruhuang/mmdetection3d
e669263a60a361532a077f655721a885f8ac6280
[ "Apache-2.0" ]
1
2021-12-03T08:39:18.000Z
2021-12-03T08:39:18.000Z
import numpy as np import tempfile import warnings from os import path as osp from mmdet3d.core import show_result, show_seg_result from mmdet3d.core.bbox import DepthInstance3DBoxes from mmdet.datasets import DATASETS from mmseg.datasets import DATASETS as SEG_DATASETS from .custom_3d import Custom3DDataset from .cus...
38.964115
79
0.583349
7f543ec75b04ad1d3d1f0c61f140ba71ca68b433
1,034
py
Python
expert_python/src/thread_semaphore.py
MaiXiaochai/Droplet
6d7fed9ca76678768a3752fa8df86a021acc3509
[ "MIT" ]
null
null
null
expert_python/src/thread_semaphore.py
MaiXiaochai/Droplet
6d7fed9ca76678768a3752fa8df86a021acc3509
[ "MIT" ]
null
null
null
expert_python/src/thread_semaphore.py
MaiXiaochai/Droplet
6d7fed9ca76678768a3752fa8df86a021acc3509
[ "MIT" ]
null
null
null
#!/usr/bin/python # -*- coding: utf-8 -*- # @File : thread_semaphore.py # @Time : 2019/2/20 23:13 # @Author : MaiXiaochai # @Site : https://github.com/MaiXiaochai # semaphore 信号量 import threading import time class HtmlSpider(threading.Thread): def __init__(self, url, sem): super().__init__() ...
22.478261
80
0.598646
962f0e92a5b4c6111541be21f45fc0413760c2f3
577
py
Python
repos/system_upgrade/common/actors/verifycheckresults/actor.py
sm00th/leapp-repository
1c171ec3a5f9260a3c6f84a9b15cad78a875ac61
[ "Apache-2.0" ]
21
2018-11-20T15:58:39.000Z
2022-03-15T19:57:24.000Z
repos/system_upgrade/common/actors/verifycheckresults/actor.py
sm00th/leapp-repository
1c171ec3a5f9260a3c6f84a9b15cad78a875ac61
[ "Apache-2.0" ]
732
2018-11-21T18:33:26.000Z
2022-03-31T16:16:24.000Z
repos/system_upgrade/common/actors/verifycheckresults/actor.py
sm00th/leapp-repository
1c171ec3a5f9260a3c6f84a9b15cad78a875ac61
[ "Apache-2.0" ]
85
2018-11-20T17:55:00.000Z
2022-03-29T09:40:31.000Z
from leapp.actors import Actor from leapp.reporting import Report from leapp.libraries.actor.verifycheckresults import check from leapp.tags import ReportPhaseTag, IPUWorkflowTag class VerifyCheckResults(Actor): """ Check all generated results messages and notify user about them. A report file containing...
26.227273
97
0.731369
630fb211536c757cf938839d1098e5eab5a376be
49,472
py
Python
wbia/control/controller_inject.py
WildMeOrg/wildbook-ia
a18d57611e5936bea02a964716466e062415aa1a
[ "Apache-2.0" ]
20
2021-01-19T23:17:21.000Z
2022-03-21T10:25:56.000Z
wbia/control/controller_inject.py
solomonkimunyu/wildbook-ia
ac433d4f2a47b1d905c421a36c497f787003afc3
[ "Apache-2.0" ]
16
2021-01-28T23:05:29.000Z
2022-03-31T20:39:36.000Z
wbia/control/controller_inject.py
solomonkimunyu/wildbook-ia
ac433d4f2a47b1d905c421a36c497f787003afc3
[ "Apache-2.0" ]
9
2021-02-13T20:19:46.000Z
2022-03-29T10:47:11.000Z
# -*- coding: utf-8 -*- """ TODO: Move flask registering into another file. Should also make the actual flask registration lazy. It should only be executed if a web instance is being started. python -c "import wbia" """ import logging import utool as ut import sys from wbia import dtool from datetime impo...
36.005822
163
0.555708
fcf54abe5bc88138e33b038b9014b49771c4b130
723
py
Python
src/create_gif.py
skilldisk/Handling-Images-using-Pillow-in-Python
49660b837b640a6f30c966c2b3f073b62d47a475
[ "Apache-2.0" ]
null
null
null
src/create_gif.py
skilldisk/Handling-Images-using-Pillow-in-Python
49660b837b640a6f30c966c2b3f073b62d47a475
[ "Apache-2.0" ]
null
null
null
src/create_gif.py
skilldisk/Handling-Images-using-Pillow-in-Python
49660b837b640a6f30c966c2b3f073b62d47a475
[ "Apache-2.0" ]
1
2021-08-30T13:41:36.000Z
2021-08-30T13:41:36.000Z
from math import sin, pi, cos from PIL import Image, ImageDraw # with Image.open('../static/assets/base.png') as base: images = [] circle_points = [] teta = 0 no_points = 30 delta_teta = 2*pi / no_points for i in range(no_points+1): line_base = Image.new('RGBA', (500,500), '#000000ff') d = ImageDraw.Draw(...
20.657143
57
0.629322
bed8e29b018d4173aaec86b47539f82274e27b0c
4,299
py
Python
ldb_reader.py
JeffpanUK/NuPyTools
4c8180d850fff175e24c302757ae745d62258bc0
[ "MIT" ]
2
2017-08-05T17:27:34.000Z
2017-12-17T03:43:33.000Z
ldb_reader.py
JeffpanUK/NuPyTools
4c8180d850fff175e24c302757ae745d62258bc0
[ "MIT" ]
null
null
null
ldb_reader.py
JeffpanUK/NuPyTools
4c8180d850fff175e24c302757ae745d62258bc0
[ "MIT" ]
1
2019-10-26T00:03:27.000Z
2019-10-26T00:03:27.000Z
import os import time import re import codecs from lxml import etree class LDBReader(object): def __init__(self,logger,puncs): self.logger = logger self.puncs = puncs def processBlk(self,blk): newBlk=[] for line in blk: if "".join(line[:14]) == '<LD_SE_SYNTAX>': ...
30.928058
111
0.457548
0222a959ad5909f26d0020e1376a3d95c6d04135
2,916
py
Python
venv/lib/python2.7/site-packages/github/tests/Issue140.py
sravani-m/Web-Application-Security-Framework
d9f71538f5cba6fe1d8eabcb26c557565472f6a6
[ "MIT" ]
3
2019-04-09T22:59:33.000Z
2019-06-14T09:23:24.000Z
venv/lib/python2.7/site-packages/github/tests/Issue140.py
sravani-m/Web-Application-Security-Framework
d9f71538f5cba6fe1d8eabcb26c557565472f6a6
[ "MIT" ]
null
null
null
venv/lib/python2.7/site-packages/github/tests/Issue140.py
sravani-m/Web-Application-Security-Framework
d9f71538f5cba6fe1d8eabcb26c557565472f6a6
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- ############################ Copyrights and license ############################ # # # Copyright 2013 Vincent Jacques <vincent@vincent-jacques.net> # # ...
54
119
0.502743
079c6119547bc4d86da2c3b98ba4a3066155a93d
182
py
Python
currencies/conf.py
CargobaseDev/django-currencies
ff722618ad5248da3b592c96c186cc93846796dc
[ "BSD-3-Clause" ]
8
2015-06-07T02:25:23.000Z
2020-10-06T05:19:59.000Z
currencies/conf.py
CargobaseDev/django-currencies
ff722618ad5248da3b592c96c186cc93846796dc
[ "BSD-3-Clause" ]
1
2015-04-03T05:40:04.000Z
2015-04-14T10:44:35.000Z
currencies/conf.py
CargobaseDev/django-currencies
ff722618ad5248da3b592c96c186cc93846796dc
[ "BSD-3-Clause" ]
4
2017-09-23T09:02:51.000Z
2021-06-25T05:21:12.000Z
# -*- coding: utf-8 -*- from django.conf import settings SESSION_PREFIX = getattr(settings, 'CURRENCY_SESSION_PREFIX', 'session') SESSION_KEY = '%s:currency_code' % SESSION_PREFIX
26
72
0.747253
cb6db1b3a9b7437fd6be83069a0f639cb8b1a679
64
py
Python
T07-15/program.py
miguelgaoreiss/SSof-Project1920
0bf74c264e06966931d6a2e0b42134dfddc32eb4
[ "MIT" ]
2
2019-11-20T19:26:07.000Z
2019-11-22T00:42:23.000Z
T07-15/program.py
miguelgaoreiss/SSof-Project1920
0bf74c264e06966931d6a2e0b42134dfddc32eb4
[ "MIT" ]
2
2019-11-28T05:21:24.000Z
2019-11-28T05:21:58.000Z
T07-15/program.py
miguelgaoreiss/SSof-Project1920
0bf74c264e06966931d6a2e0b42134dfddc32eb4
[ "MIT" ]
25
2019-11-27T01:40:56.000Z
2019-12-04T23:38:59.000Z
a = source() if True: b = source2() c = a + b sink(c)
8
17
0.453125
84cf9ba064d7f8cd63b7c98552fdbe83a2536203
4,141
py
Python
lenet.py
jonad/TrafficSignDetection
024e063f4b776c2489d2a0f7edcaa092961e8cca
[ "MIT" ]
null
null
null
lenet.py
jonad/TrafficSignDetection
024e063f4b776c2489d2a0f7edcaa092961e8cca
[ "MIT" ]
null
null
null
lenet.py
jonad/TrafficSignDetection
024e063f4b776c2489d2a0f7edcaa092961e8cca
[ "MIT" ]
null
null
null
from utils import * import tensorflow.contrib.slim as slim import tensorflow as tf import numpy as np class LeNet(): def __init__(self,x, mu, sigma, bias_value, conv1_params, conv2_params, p1_params, p2_params, fc1_params, fc2_params, fc3_params, hold_prob): self.mu = mu ...
34.798319
140
0.588264
047778a629f1face6df9f3348a55f3c5790fdb4f
11,036
py
Python
cirq/ops/swap_gates.py
alex-treebeard/Cirq
10594c0edf7a4c26d5d21f985c6dc391197d3075
[ "Apache-2.0" ]
1
2021-03-07T19:34:28.000Z
2021-03-07T19:34:28.000Z
cirq/ops/swap_gates.py
alex-treebeard/Cirq
10594c0edf7a4c26d5d21f985c6dc391197d3075
[ "Apache-2.0" ]
4
2021-01-11T10:35:37.000Z
2021-01-28T19:17:02.000Z
cirq/ops/swap_gates.py
alex-treebeard/Cirq
10594c0edf7a4c26d5d21f985c6dc391197d3075
[ "Apache-2.0" ]
1
2021-12-30T21:50:00.000Z
2021-12-30T21:50:00.000Z
# Copyright 2019 The Cirq Developers # # 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 # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in ...
32.747774
100
0.560167
974e6829ad215986d7398d9c9663e70c20c2669d
13,389
py
Python
mmf/datasets/multi_dataset_loader.py
sisilmehta2000/mmf
ac1bb736f281ffbde367cfe9cf6f4f78fc890fc4
[ "BSD-3-Clause" ]
1,928
2020-05-07T19:00:53.000Z
2022-03-31T17:02:59.000Z
mmf/datasets/multi_dataset_loader.py
sisilmehta2000/mmf
ac1bb736f281ffbde367cfe9cf6f4f78fc890fc4
[ "BSD-3-Clause" ]
914
2020-05-07T18:36:26.000Z
2022-03-31T05:45:26.000Z
mmf/datasets/multi_dataset_loader.py
sisilmehta2000/mmf
ac1bb736f281ffbde367cfe9cf6f4f78fc890fc4
[ "BSD-3-Clause" ]
490
2020-05-07T20:05:10.000Z
2022-03-31T14:17:23.000Z
# Copyright (c) Facebook, Inc. and its affiliates. """ MultiDatasetLoader class is used by DatasetLoader class to load multiple datasets and more granular """ import logging import warnings from typing import Dict, Iterator import torch from mmf.common.sample import SampleList, convert_batch_to_sample_list from mmf.da...
36.284553
88
0.651804
8767a7c21922c77c77faea5f03cdc0e44a174b1c
1,768
py
Python
main.py
ctulhu31/siglev
ff30ae0aa09050cfae480b0a43127b20e500ddfe
[ "MIT" ]
null
null
null
main.py
ctulhu31/siglev
ff30ae0aa09050cfae480b0a43127b20e500ddfe
[ "MIT" ]
null
null
null
main.py
ctulhu31/siglev
ff30ae0aa09050cfae480b0a43127b20e500ddfe
[ "MIT" ]
null
null
null
import math class part: def __init__(self, name): self.__name = name self.__val1 = None self.__val2 = None self.__coefficient = 0.0 def addValue(self, val, diff=1.0): if self.__val1 is None: self.__val1 = val elif self.__val2 is None: sel...
28.063492
88
0.498303
be719e579d4a2da82f4563a0bd373da6b7365bd3
703
py
Python
jesse/indicators/linearreg.py
h0ke/jesse
02dbf2b5df3a970eed18b276d5e3bcf8fb3f9220
[ "MIT" ]
4
2021-02-23T18:23:58.000Z
2021-10-10T07:32:41.000Z
jesse/indicators/linearreg.py
h0ke/jesse
02dbf2b5df3a970eed18b276d5e3bcf8fb3f9220
[ "MIT" ]
1
2021-06-05T19:59:56.000Z
2021-06-05T19:59:56.000Z
jesse/indicators/linearreg.py
h0ke/jesse
02dbf2b5df3a970eed18b276d5e3bcf8fb3f9220
[ "MIT" ]
2
2021-04-30T06:49:26.000Z
2022-01-24T09:24:35.000Z
from typing import Union import numpy as np import talib from jesse.helpers import get_candle_source def linearreg(candles: np.ndarray, period=14, source_type="close", sequential=False) -> Union[float, np.ndarray]: """ LINEARREG - Linear Regression :param candles: np.ndarray :param period: int - de...
26.037037
113
0.698435
a867d5aca4d591c84ebfc2adfb4cbf261a607ebb
20,284
py
Python
jina/peapods/runtimes/zmq/zed.py
vishalbelsare/jina
ae72cc5ce1f7e7f4c662e72e96ea21dddc28bf43
[ "Apache-2.0" ]
3
2021-12-06T08:10:02.000Z
2021-12-06T14:50:11.000Z
jina/peapods/runtimes/zmq/zed.py
manavshah123/jina
f18b04eb82d18a3c554e2892bbae4b95fc0cb13e
[ "Apache-2.0" ]
1
2021-09-16T12:12:29.000Z
2021-09-16T12:12:29.000Z
jina/peapods/runtimes/zmq/zed.py
manavshah123/jina
f18b04eb82d18a3c554e2892bbae4b95fc0cb13e
[ "Apache-2.0" ]
1
2021-11-15T05:51:07.000Z
2021-11-15T05:51:07.000Z
import argparse import time import threading from collections import defaultdict from typing import Dict, List, Optional, Union, TYPE_CHECKING import zmq import signal from .... import __windows__ from ..base import BaseRuntime from ..request_handlers.data_request_handler import DataRequestHandler from ...zmq import ...
38.12782
130
0.623151
0208350d1dd3e15f7436e96d468faddd0c98e1bf
215
py
Python
cms/test_utils/project/placeholderapp/urls_multi.py
stefanfoulis/django-cms
5af564879b4222aa00a8ee27fbb7d1b3ae0cbde5
[ "BSD-3-Clause" ]
1
2019-11-26T04:47:18.000Z
2019-11-26T04:47:18.000Z
cms/test_utils/project/placeholderapp/urls_multi.py
stefanfoulis/django-cms
5af564879b4222aa00a8ee27fbb7d1b3ae0cbde5
[ "BSD-3-Clause" ]
6
2015-12-02T16:10:20.000Z
2016-06-17T14:24:00.000Z
cms/test_utils/project/placeholderapp/urls_multi.py
stefanfoulis/django-cms
5af564879b4222aa00a8ee27fbb7d1b3ae0cbde5
[ "BSD-3-Clause" ]
1
2017-10-17T08:20:32.000Z
2017-10-17T08:20:32.000Z
from django.conf.urls import url from . import views urlpatterns = [ url(r'^detail/(?P<pk>[0-9]+)/$', views.detail_view_multi, name="detail_multi"), url(r'^$', views.list_view_multi, name="list_multi"), ]
23.888889
83
0.669767
3607ffc518d4a3994f32590f52cd4c00189f3a9e
4,153
py
Python
lte/gateway/python/magma/kernsnoopd/snooper.py
electrocucaracha/magma
4beadd7ac75616976443f2f76b573cf2aefd73a9
[ "BSD-3-Clause" ]
2
2020-12-01T02:32:22.000Z
2020-12-27T19:13:48.000Z
lte/gateway/python/magma/kernsnoopd/snooper.py
markjen/magma
c7c7dc2b8714f53b1153e620bbfc002d5009de34
[ "BSD-3-Clause" ]
181
2020-02-03T15:17:12.000Z
2021-10-06T20:13:29.000Z
lte/gateway/python/magma/kernsnoopd/snooper.py
markjen/magma
c7c7dc2b8714f53b1153e620bbfc002d5009de34
[ "BSD-3-Clause" ]
3
2021-11-04T17:33:36.000Z
2021-12-24T06:50:36.000Z
""" Copyright 2020 The Magma Authors. This source code is licensed under the BSD-style license found in the LICENSE file in the root directory of this source tree. Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES O...
33.224
79
0.649892
1d511bd2ae9f829de5c9b30f7a98ead8c6934a86
4,047
py
Python
msgraph-cli-extensions/v1_0/usersfunctions_v1_0/azext_usersfunctions_v1_0/vendored_sdks/usersfunctions/aio/operations/_users_contacts_operations.py
thewahome/msgraph-cli
33127d9efa23a0e5f5303c93242fbdbb73348671
[ "MIT" ]
null
null
null
msgraph-cli-extensions/v1_0/usersfunctions_v1_0/azext_usersfunctions_v1_0/vendored_sdks/usersfunctions/aio/operations/_users_contacts_operations.py
thewahome/msgraph-cli
33127d9efa23a0e5f5303c93242fbdbb73348671
[ "MIT" ]
null
null
null
msgraph-cli-extensions/v1_0/usersfunctions_v1_0/azext_usersfunctions_v1_0/vendored_sdks/usersfunctions/aio/operations/_users_contacts_operations.py
thewahome/msgraph-cli
33127d9efa23a0e5f5303c93242fbdbb73348671
[ "MIT" ]
null
null
null
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may ...
42.15625
133
0.672597
f5f0a1b5af1db0d45701d5cd77f11a53f88e5996
621
py
Python
main.py
CodeWithAgam/Is-it-Leap-Year
fa88c79d16d010e49a9d6db2d0ffbdcd0732b82c
[ "Apache-2.0" ]
null
null
null
main.py
CodeWithAgam/Is-it-Leap-Year
fa88c79d16d010e49a9d6db2d0ffbdcd0732b82c
[ "Apache-2.0" ]
null
null
null
main.py
CodeWithAgam/Is-it-Leap-Year
fa88c79d16d010e49a9d6db2d0ffbdcd0732b82c
[ "Apache-2.0" ]
null
null
null
# Created by Agamdeep Singh / CodeWithAgam # Youtube: CodeWithAgam # Github: CodeWithAgam # Instagram: @coderagam001 / @codewithagam # Twitter: @CoderAgam001 # Linkdin: Agamdeep Singh # Print a welcome message # Get the year from the user year = int(input("Which year do you want to check? ")) # Check for the conditi...
24.84
71
0.636071
2ea4d72a363da00ce175b2807b34d837a5d56d1c
1,595
py
Python
launcher/launch.py
awesome-archive/byteps
8fe4f5e62eaf539f214f3aa68b99cb239eedf66b
[ "Apache-2.0" ]
1
2019-10-28T07:36:52.000Z
2019-10-28T07:36:52.000Z
launcher/launch.py
awesome-archive/byteps
8fe4f5e62eaf539f214f3aa68b99cb239eedf66b
[ "Apache-2.0" ]
null
null
null
launcher/launch.py
awesome-archive/byteps
8fe4f5e62eaf539f214f3aa68b99cb239eedf66b
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python import os import subprocess import threading import sys import time def worker(local_rank, local_size, command): my_env = os.environ.copy() my_env["BYTEPS_LOCAL_RANK"] = str(local_rank) my_env["BYTEPS_LOCAL_SIZE"] = str(local_size) if os.getenv("BYTEPS_ENABLE_GDB", 0): if co...
32.55102
96
0.608777
aa7482f14dc7e8c56bf30d3ea8c3c6b5723a4b16
19,454
py
Python
fastdoc/asciidoc.py
isabella232/fastdoc
424f44491b16e9e701de26570e403333f04960db
[ "Apache-2.0" ]
null
null
null
fastdoc/asciidoc.py
isabella232/fastdoc
424f44491b16e9e701de26570e403333f04960db
[ "Apache-2.0" ]
1
2021-02-23T22:51:48.000Z
2021-02-23T22:51:48.000Z
fastdoc/asciidoc.py
isabella232/fastdoc
424f44491b16e9e701de26570e403333f04960db
[ "Apache-2.0" ]
null
null
null
# AUTOGENERATED! DO NOT EDIT! File to edit: 00_asciidoc.ipynb (unless otherwise specified). __all__ = ['markdown_cell', 'code_cell', 'remove_hidden_cells', 'isolate_adoc_blocks', 'replace_old_jekylls', 'hide_input', 'hide_output', 'extract_html', 'split_max_len', 'deal_error', 'remove_interrupted_pbars', ...
38.220039
132
0.595764
6b5b3cee13ff6babcba101a1f212a4d2a268d965
2,975
py
Python
tests/sentry/mediators/sentry_app_installations/test_destroyer.py
ibm5155/Sentry9.1_StableIthink
e3c6f22805b9aaaaa7ba41003946dd0e5f894340
[ "BSD-3-Clause" ]
null
null
null
tests/sentry/mediators/sentry_app_installations/test_destroyer.py
ibm5155/Sentry9.1_StableIthink
e3c6f22805b9aaaaa7ba41003946dd0e5f894340
[ "BSD-3-Clause" ]
1
2019-03-13T06:05:24.000Z
2019-03-13T06:05:24.000Z
tests/sentry/mediators/sentry_app_installations/test_destroyer.py
emiquelito/sentry
fa310029ec7e21293d632bb672a59877bc2e5531
[ "BSD-3-Clause" ]
null
null
null
from __future__ import absolute_import import responses from django.db import connection from sentry.mediators.sentry_app_installations import Creator, Destroyer from sentry.models import ApiAuthorization, ApiGrant, SentryAppInstallation, ServiceHook from sentry.testutils import TestCase class TestDestroyer(TestCa...
30.670103
88
0.647731
7d36bd5f616b28772e2c25eea81fadfdc8d6afdf
8,220
py
Python
culebratester_client/configuration.py
dtmilano/CulebraTester2-client
21979a851943c9a30c3b5f31eed21c1b1d4894dd
[ "Apache-2.0" ]
7
2020-02-07T14:37:09.000Z
2022-03-11T09:54:47.000Z
culebratester_client/configuration.py
dtmilano/CulebraTester2-client
21979a851943c9a30c3b5f31eed21c1b1d4894dd
[ "Apache-2.0" ]
null
null
null
culebratester_client/configuration.py
dtmilano/CulebraTester2-client
21979a851943c9a30c3b5f31eed21c1b1d4894dd
[ "Apache-2.0" ]
1
2021-09-11T03:18:37.000Z
2021-09-11T03:18:37.000Z
# coding: utf-8 """ CulebraTester ## Snaky Android Test --- If you want to be able to try out the API using the **Execute** or **TRY** button from this page - an android device should be connected using `adb` - the server should have been started using `./culebratester2 start-server` then you will be able to...
33.55102
333
0.620073
aa0eaa9b80d14e62a9fff3dcc195a66cb3d71da8
382
py
Python
empty_config.py
SamCHogg/Ark-Bot
3fe1ea32ebaf26563dca6827807ed534d60676a9
[ "MIT" ]
null
null
null
empty_config.py
SamCHogg/Ark-Bot
3fe1ea32ebaf26563dca6827807ed534d60676a9
[ "MIT" ]
null
null
null
empty_config.py
SamCHogg/Ark-Bot
3fe1ea32ebaf26563dca6827807ed534d60676a9
[ "MIT" ]
null
null
null
# Discord App token bbtoken = "" #REMOVE TOKEN BEFORE SYNC!! logfile = 'discord.log' #Name of the file to log to (eg. 'discord.log') pref = "!" #Command prefix des = "ARK-Bot" #Description shown on using the help command ark_install_dir = # Error messages err_mesg = ":x: **An error occurred!**" err_mesg_permission =...
29.384615
82
0.698953
4dada5a5d45812cc371b2b6a457ae2c72c56b829
12,192
py
Python
Apps/rsp/axiom.py
zhanghongce/ila-mcm-fmcad18
e7045e38e45e758f2b0e0ecc7d4369f5014b8707
[ "MIT" ]
null
null
null
Apps/rsp/axiom.py
zhanghongce/ila-mcm-fmcad18
e7045e38e45e758f2b0e0ecc7d4369f5014b8707
[ "MIT" ]
null
null
null
Apps/rsp/axiom.py
zhanghongce/ila-mcm-fmcad18
e7045e38e45e758f2b0e0ecc7d4369f5014b8707
[ "MIT" ]
null
null
null
import z3 def SameWg(i1,i2): e1 = i1.Eid ; e2 = i2.Eid assert e1.anyd == e2.anyd and e1.anyw == e2.anyw and e1.anyt == e2.anyt retL = True if not e1.anyd: retL = retL and ( e1.d == e2.d ) if not e1.anyw: retL = retL and ( e1.w == e2.w ) return retL def SameDv(i1,i2)...
42.480836
174
0.551263
4e8ddcfb3d47e1f172a8732522d663da3c262399
3,737
py
Python
app.py
dtolb/bandwidth-python-quickstart
405231879bf745b1eacfb3b9ca462036abb1fdf3
[ "MIT" ]
1
2018-07-26T05:50:55.000Z
2018-07-26T05:50:55.000Z
app.py
dtolb/bandwidth-python-quickstart
405231879bf745b1eacfb3b9ca462036abb1fdf3
[ "MIT" ]
2
2021-03-22T17:05:36.000Z
2021-06-01T21:41:33.000Z
app.py
dtolb/bandwidth-python-quickstart
405231879bf745b1eacfb3b9ca462036abb1fdf3
[ "MIT" ]
1
2018-07-26T05:50:56.000Z
2018-07-26T05:50:56.000Z
import os import sys import pprint import json from bw_clients import * from flask import Flask, request, render_template from quick_deploy import * app = Flask(__name__) def po(o): """ Prints things to console much more nicely than the default print """ pp = pprint.PrettyPrinter(indent=4) pp.ppr...
35.932692
92
0.627509
9e32778810f85adaa449543f6adf9510c517102e
684
py
Python
crowdsourcing/migrations/0018_auto_20150709_0208.py
ramcn/sept20
e6f6e238d0561ebf3353158161f1b20052e8b08b
[ "MIT" ]
1
2016-02-29T01:26:42.000Z
2016-02-29T01:26:42.000Z
crowdsourcing/migrations/0018_auto_20150709_0208.py
ramcn/sept20
e6f6e238d0561ebf3353158161f1b20052e8b08b
[ "MIT" ]
16
2015-08-10T18:28:18.000Z
2022-03-11T23:12:48.000Z
crowdsourcing/migrations/0018_auto_20150709_0208.py
Milstein/crowdsource-platform
60427e440373824c26c7daf8cf5f421b9c7ebbb5
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import models, migrations class Migration(migrations.Migration): dependencies = [ ('crowdsourcing', '0017_auto_20150709_0204'), ] operations = [ migrations.RenameField( model_name='conversationrec...
23.586207
53
0.578947
a2f5b333cc331ab01ae86b1646be24525c55bbcf
367
py
Python
lib/JumpScale/core/system/string.py
rudecs/jumpscale_core7
30c03f26f1cdad3edbb9d79d50fbada8acc974f5
[ "Apache-2.0" ]
1
2015-10-26T10:38:13.000Z
2015-10-26T10:38:13.000Z
lib/JumpScale/core/system/string.py
rudecs/jumpscale_core7
30c03f26f1cdad3edbb9d79d50fbada8acc974f5
[ "Apache-2.0" ]
4
2016-08-25T12:08:39.000Z
2018-04-12T12:36:01.000Z
lib/JumpScale/core/system/string.py
rudecs/jumpscale_core7
30c03f26f1cdad3edbb9d79d50fbada8acc974f5
[ "Apache-2.0" ]
3
2016-03-08T07:49:34.000Z
2018-10-19T13:56:43.000Z
import unicodedata class String: #exceptions = Exceptions def decodeUnicode2Asci(self,text): return unicodedata.normalize('NFKD', text.decode("utf-8")).encode('ascii','ignore') def toolStripNonAsciFromText(self,text): return "".join([char for char in str(text) if ((ord(char)...
30.583333
107
0.648501
1f3caa1ed61a010b27bf3acced1c9e863bfb71c4
6,095
py
Python
var/spack/repos/builtin/packages/xrootd/package.py
player1537-forks/spack
822b7632222ec5a91dc7b7cda5fc0e08715bd47c
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
3
2021-09-29T02:14:40.000Z
2022-01-27T20:50:36.000Z
var/spack/repos/builtin/packages/xrootd/package.py
player1537-forks/spack
822b7632222ec5a91dc7b7cda5fc0e08715bd47c
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
8
2022-02-28T11:30:18.000Z
2022-03-23T19:34:56.000Z
var/spack/repos/builtin/packages/xrootd/package.py
player1537-forks/spack
822b7632222ec5a91dc7b7cda5fc0e08715bd47c
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
null
null
null
# Copyright 2013-2022 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 Xrootd(CMakePackage): """The XROOTD project aims at giving high performance, scalable fau...
47.248062
96
0.690074
4df98a48c913340552c73e8f4310391d2608a348
25,235
py
Python
Python/klampt/vis/backends/vis_glut.py
mass2010chromium/Klampt
4a50ac10daf636e4f2d7acb635db2292fc2c72b6
[ "BSD-3-Clause" ]
null
null
null
Python/klampt/vis/backends/vis_glut.py
mass2010chromium/Klampt
4a50ac10daf636e4f2d7acb635db2292fc2c72b6
[ "BSD-3-Clause" ]
null
null
null
Python/klampt/vis/backends/vis_glut.py
mass2010chromium/Klampt
4a50ac10daf636e4f2d7acb635db2292fc2c72b6
[ "BSD-3-Clause" ]
null
null
null
from ..visualization import _WindowManager,_ThreadedWindowManager,_globalLock,VisualizationScene from .vis_gl import GLVisualizationFrontend,GLVisualizationPlugin,WindowInfo from .. import glinit,gldraw,glcommon from ...robotsim import WorldModel,RobotModel import threading if not glinit.available('GLUT'): raise I...
42.989779
141
0.596751
a1cd0030e725be749fe4f824562d7161c89c51d7
5,456
py
Python
skills/grounding_skill/utils.py
stefanrer/commonbsecret
bb527f9b3e460124ccc307c0d39baba9a2490fcd
[ "Apache-2.0" ]
null
null
null
skills/grounding_skill/utils.py
stefanrer/commonbsecret
bb527f9b3e460124ccc307c0d39baba9a2490fcd
[ "Apache-2.0" ]
null
null
null
skills/grounding_skill/utils.py
stefanrer/commonbsecret
bb527f9b3e460124ccc307c0d39baba9a2490fcd
[ "Apache-2.0" ]
null
null
null
import json import random import re from common.grounding import COMPLIMENT_PROPERTIES from common.utils import MIDAS_SEMANTIC_LABELS INTENT_DICT = { "Information_DeliveryIntent": "You just told me about ENTITY_NAME, right?", "Information_RequestIntent": "You've asked me about ENTITY_NAME haven't you?", ...
43.648
97
0.692082
804bbc848254e16c75626fd1b721170f29b2749c
2,538
py
Python
aws_ping_login.py
surfkansas/aws-ping-login
0bc95fff98fba04abcdb3256d56d74dffdb0e36a
[ "MIT" ]
1
2018-06-26T21:06:16.000Z
2018-06-26T21:06:16.000Z
aws_ping_login.py
surfkansas/aws-ping-login
0bc95fff98fba04abcdb3256d56d74dffdb0e36a
[ "MIT" ]
5
2018-06-15T22:27:24.000Z
2020-05-01T20:42:14.000Z
aws_ping_login.py
surfkansas/aws-ping-login
0bc95fff98fba04abcdb3256d56d74dffdb0e36a
[ "MIT" ]
1
2018-06-15T22:29:35.000Z
2018-06-15T22:29:35.000Z
import argparse import os import wx import wx.html2 import boto3 from bs4 import BeautifulSoup class MyBrowser(wx.Frame): def __init__(self, *args, **kwds): wx.Frame.__init__(self, *args, **kwds) sizer = wx.BoxSizer(wx.VERTICAL) self.browser = wx.html2.WebView.New(self) sizer...
33.84
142
0.664303
ea923e73fe59de4025453f6868a8d300d99a0ad6
18,481
py
Python
keystone/common/kvs/core.py
trananhkma/keystone
1d34614121cbe694bfd107f1ce7a9c402d6a30b4
[ "Apache-2.0" ]
null
null
null
keystone/common/kvs/core.py
trananhkma/keystone
1d34614121cbe694bfd107f1ce7a9c402d6a30b4
[ "Apache-2.0" ]
null
null
null
keystone/common/kvs/core.py
trananhkma/keystone
1d34614121cbe694bfd107f1ce7a9c402d6a30b4
[ "Apache-2.0" ]
null
null
null
# Copyright 2013 Metacloud, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writ...
40.263617
79
0.624858
7ce5961a7bf3a4bc4b4d6e2480587b3238d68c96
2,675
py
Python
semantic-conventions/src/opentelemetry/semconv/model/utils.py
m3dbx/build-tools
b21390826c5a59ec10dea2cc68a87252c3638366
[ "Apache-2.0" ]
null
null
null
semantic-conventions/src/opentelemetry/semconv/model/utils.py
m3dbx/build-tools
b21390826c5a59ec10dea2cc68a87252c3638366
[ "Apache-2.0" ]
null
null
null
semantic-conventions/src/opentelemetry/semconv/model/utils.py
m3dbx/build-tools
b21390826c5a59ec10dea2cc68a87252c3638366
[ "Apache-2.0" ]
null
null
null
# Copyright The OpenTelemetry 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 agree...
33.024691
78
0.66243
9321c8a0f7b6c27a126c53eaa217cb2fc8bfcf3f
1,048
py
Python
app/models.py
JB-Tellez/flask-hello-world
7fce8dea357a847c90bce095b2bfc43036903e4d
[ "MIT" ]
null
null
null
app/models.py
JB-Tellez/flask-hello-world
7fce8dea357a847c90bce095b2bfc43036903e4d
[ "MIT" ]
null
null
null
app/models.py
JB-Tellez/flask-hello-world
7fce8dea357a847c90bce095b2bfc43036903e4d
[ "MIT" ]
null
null
null
from sqlalchemy import inspect from app import db class User(db.Model): id = db.Column(db.Integer, primary_key=True) username = db.Column(db.String(64), index=True, unique=True) email = db.Column(db.String(120), index=True, unique=True) password_hash = db.Column(db.String(128)) def __repr__(self):...
28.324324
78
0.65458
eb6ce2e7028560da8e0bc8cb6de0479abe264d6b
511
py
Python
python3/convert_to_base7.py
joshiaj7/CodingChallenges
f95dd79132f07c296e074d675819031912f6a943
[ "MIT" ]
1
2020-10-08T09:17:40.000Z
2020-10-08T09:17:40.000Z
python3/convert_to_base7.py
joshiaj7/CodingChallenges
f95dd79132f07c296e074d675819031912f6a943
[ "MIT" ]
null
null
null
python3/convert_to_base7.py
joshiaj7/CodingChallenges
f95dd79132f07c296e074d675819031912f6a943
[ "MIT" ]
null
null
null
""" Space : O(1) Time : O(n) """ class Solution: def convertToBase7(self, num: int) -> str: ans = '' multi = 1 isNeg = num < 0 num = abs(num) while multi * 7 <= num: multi *= 7 while multi >= 1: ans += str(num // multi) if...
17.033333
46
0.369863
b657ba3d09f7194dcdbae22eb1b695209990959f
3,564
py
Python
tensorflow/basic-rl/tutorial2/mouse.py
gopala-kr/ds-notebooks
bc35430ecdd851f2ceab8f2437eec4d77cb59423
[ "MIT" ]
1
2019-05-10T09:16:23.000Z
2019-05-10T09:16:23.000Z
tensorflow/basic-rl/tutorial2/mouse.py
gopala-kr/ds-notebooks
bc35430ecdd851f2ceab8f2437eec4d77cb59423
[ "MIT" ]
null
null
null
tensorflow/basic-rl/tutorial2/mouse.py
gopala-kr/ds-notebooks
bc35430ecdd851f2ceab8f2437eec4d77cb59423
[ "MIT" ]
1
2019-05-10T09:17:28.000Z
2019-05-10T09:17:28.000Z
import cellular import qlearn import time import random import shelve directions = 8 def pickRandomLocation(): while 1: x = random.randrange(world.width) y = random.randrange(world.height) cell = world.getCell(x, y) if not (cell.wall or len(cell.agents) > 0): ...
25.826087
98
0.549383
54019b648aff6d4cd7e77d3edc8b003b3821971e
72
py
Python
scrmbl/__init__.py
etienne-napoleone/scrmbl
e98fe2bfd378e703cfaaa7f1b9763c85d0b8177d
[ "MIT" ]
95
2018-10-05T19:52:53.000Z
2021-10-04T14:59:55.000Z
scrmbl/__init__.py
etienne-napoleone/scrmbl
e98fe2bfd378e703cfaaa7f1b9763c85d0b8177d
[ "MIT" ]
7
2018-10-05T16:36:43.000Z
2018-10-07T13:41:52.000Z
scrmbl/__init__.py
etienne-napoleone/scrmbl
e98fe2bfd378e703cfaaa7f1b9763c85d0b8177d
[ "MIT" ]
5
2018-10-06T06:50:06.000Z
2018-10-11T16:29:49.000Z
from scrmbl.main import echo __all__ = ['echo'] __version__ = '1.0.0'
12
28
0.680556
d7a9d65acac0e2b4338116ee29adf67e2ed46683
6,188
py
Python
models/controller.py
AlonsoReyes/t-intersection-graph
68bab234cd6e334edcec27bfee3e019f08997945
[ "MIT" ]
null
null
null
models/controller.py
AlonsoReyes/t-intersection-graph
68bab234cd6e334edcec27bfee3e019f08997945
[ "MIT" ]
null
null
null
models/controller.py
AlonsoReyes/t-intersection-graph
68bab234cd6e334edcec27bfee3e019f08997945
[ "MIT" ]
null
null
null
def default_controller(car): car.set_acceleration(0) def accelerating_controller(car): car.set_acceleration(car.maximum_acceleration) # Returns the collision point that is closest to the car that owns the controller, # the data of the car that is closest to that point and the ticks that car takes...
54.280702
127
0.62201
73ef095d29f49f6a97bd70763431b4c5cc223ee4
1,229
py
Python
account/models.py
sajib1066/blog
d53a642cdda8c501d9df85e1cda17362fb098fff
[ "MIT" ]
1
2021-04-29T06:02:18.000Z
2021-04-29T06:02:18.000Z
account/models.py
sajib1066/blog
d53a642cdda8c501d9df85e1cda17362fb098fff
[ "MIT" ]
4
2020-07-14T15:55:31.000Z
2022-01-13T02:42:31.000Z
account/models.py
sajib1066/blog
d53a642cdda8c501d9df85e1cda17362fb098fff
[ "MIT" ]
3
2020-07-27T02:16:40.000Z
2021-06-15T08:56:56.000Z
from django.db import models from django.contrib.auth.models import User from sajibnotes.helper import get_current_user class Profile(models.Model): current_user = get_current_user user = models.OneToOneField(User, on_delete=models.CASCADE, default=current_user) email = models.EmailField(unique=True) ...
35.114286
85
0.714402
38c06040dab0be5b49d30b50476c50de81dbb58a
2,053
py
Python
gemben/utils/evaluation_util.py
Sujit-O/gemben
4577914dbe4b39559093a6e9517c666b8e69c052
[ "BSD-3-Clause" ]
1
2019-09-14T01:58:54.000Z
2019-09-14T01:58:54.000Z
gemben/utils/evaluation_util.py
Sujit-O/gem
4577914dbe4b39559093a6e9517c666b8e69c052
[ "BSD-3-Clause" ]
6
2020-01-28T22:52:02.000Z
2022-02-10T00:25:50.000Z
gemben/utils/evaluation_util.py
Sujit-O/gem
4577914dbe4b39559093a6e9517c666b8e69c052
[ "BSD-3-Clause" ]
1
2021-03-23T04:59:51.000Z
2021-03-23T04:59:51.000Z
import numpy as np from random import randint def getRandomEdgePairs(node_num, sample_ratio=0.01, is_undirected=True): """Function to get random edge pairs.""" num_pairs = int(sample_ratio * node_num * (node_num - 1)) if is_undirected: num_pairs = num_pairs / 2 current_sets = set() ...
35.396552
84
0.575256
23f9353ceaccaff71ff09f50e94cdda4aa10d612
1,706
py
Python
setup.py
JohannesSMHI/ctdpy
cae02aceb2e3b6e52cdb580eb26cc7d0485b40e7
[ "MIT" ]
1
2018-11-16T13:58:29.000Z
2018-11-16T13:58:29.000Z
setup.py
JohannesSMHI/ctdpy
cae02aceb2e3b6e52cdb580eb26cc7d0485b40e7
[ "MIT" ]
null
null
null
setup.py
JohannesSMHI/ctdpy
cae02aceb2e3b6e52cdb580eb26cc7d0485b40e7
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 """ Created on Tue Sep 11 08:05:22 2018 @author: a002028 """ import os import setuptools requirements = [] with open('requirements.txt', 'r') as fh: for line in fh: requirements.append(line.strip()) NAME = 'ctdpy' VERSION = '0.1.7' README = open('READMEpypi.rst', 'r').read() setu...
34.816327
102
0.543962
72390e33af86505d5f9bb1b2481b32bf80d2945e
1,808
py
Python
collections/trie2.py
gongchengshi/python_common
a68ab61e03c433a33f16119910e1e73e848ea824
[ "MIT" ]
null
null
null
collections/trie2.py
gongchengshi/python_common
a68ab61e03c433a33f16119910e1e73e848ea824
[ "MIT" ]
null
null
null
collections/trie2.py
gongchengshi/python_common
a68ab61e03c433a33f16119910e1e73e848ea824
[ "MIT" ]
1
2018-09-19T00:33:35.000Z
2018-09-19T00:33:35.000Z
from collections import defaultdict class Trie: """Taken from http://en.wikipedia.org/wiki/Trie""" def __init__(self): self.root = defaultdict(Trie) self.value = None def add(self, s, value): """Add the string `s` to the `Trie` and map it to the given value.""" hea...
30.133333
73
0.538717
23c40fc67aead9a7b6e929d6ea8dab8e7b99977d
14,249
py
Python
glue/core/component.py
tiagopereira/glue
85bf7ce2d252d7bc405e8160b56fc83d46b9cbe4
[ "BSD-3-Clause" ]
1
2019-12-17T07:58:35.000Z
2019-12-17T07:58:35.000Z
glue/core/component.py
scalet98/glue
ff949ad52e205c20561f48c05f870b2abb39e0b0
[ "BSD-3-Clause" ]
null
null
null
glue/core/component.py
scalet98/glue
ff949ad52e205c20561f48c05f870b2abb39e0b0
[ "BSD-3-Clause" ]
1
2019-08-04T14:10:12.000Z
2019-08-04T14:10:12.000Z
from __future__ import absolute_import, division, print_function import logging import numpy as np import pandas as pd from glue.utils import (shape_to_string, coerce_numeric, broadcast_to, categorical_ndarray) __all__ = ['Component', 'DerivedComponent', 'CategoricalComponent', '...
30.446581
113
0.590498
b64e20e8fb51503aac0fd35869aa3cc2fc86759f
8,366
py
Python
extras/island.py
prideout/clumpy
8c8b33e8834b96cff071ee048d32903917297e64
[ "MIT" ]
36
2018-07-14T16:36:41.000Z
2022-03-16T08:15:28.000Z
extras/island.py
prideout/clumpy
8c8b33e8834b96cff071ee048d32903917297e64
[ "MIT" ]
1
2022-01-13T01:25:24.000Z
2022-01-13T01:25:24.000Z
extras/island.py
prideout/clumpy
8c8b33e8834b96cff071ee048d32903917297e64
[ "MIT" ]
3
2018-12-07T11:31:50.000Z
2021-05-23T21:38:34.000Z
#!/usr/bin/env python3 ''' Creates a movie of infinitely zooming FBM. All coordinates are X,Y floats with values that increase rightward and downward: World Space: [0,0 through 1,1] spans the entire island. Tile Space: [0,0 through 1,1] spans the smallest tile that wholly encompasses the viewport. Viewport...
32.807843
99
0.629931
e604b994ca3498103ac7cd80a4f5fa33b07d7a39
848
py
Python
src/streamlink/__init__.py
Billy2011/streamlink
5f99ec52e0a9c315aeee00b96287edc45adaccd3
[ "BSD-2-Clause" ]
1
2019-09-14T10:19:47.000Z
2019-09-14T10:19:47.000Z
src/streamlink/__init__.py
Billy2011/streamlink
5f99ec52e0a9c315aeee00b96287edc45adaccd3
[ "BSD-2-Clause" ]
1
2018-07-12T18:18:05.000Z
2018-07-12T18:18:05.000Z
src/streamlink/__init__.py
Billy2011/streamlink
5f99ec52e0a9c315aeee00b96287edc45adaccd3
[ "BSD-2-Clause" ]
null
null
null
# -*- coding: utf-8 -*- """Streamlink extracts streams from various services. The main compontent of Streamlink is a command-line utility that launches the streams in a video player. An API is also provided that allows direct access to stream data. Full documentation is available at https://Billy2011.github.io/strea...
35.333333
80
0.757075