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
6e32d6873fc10d3abae751fb17488f24668f4d82
340
py
Python
krankit/interactions/apps.py
ruankranz/blog
d83adc9035bb71f839e8e1c74a036f99be7f9d18
[ "MIT" ]
null
null
null
krankit/interactions/apps.py
ruankranz/blog
d83adc9035bb71f839e8e1c74a036f99be7f9d18
[ "MIT" ]
1
2021-05-11T12:43:52.000Z
2021-05-11T12:43:52.000Z
krankit/interactions/apps.py
ruankranz/blog
d83adc9035bb71f839e8e1c74a036f99be7f9d18
[ "MIT" ]
null
null
null
from django.apps import AppConfig from django.utils.translation import gettext_lazy as _ class InteractionsConfig(AppConfig): name = "krankit.interactions" verbose_name = _("Interactions") def ready(self): try: import krankit.interactions.signals # noqa F401 except ImportErro...
24.285714
60
0.682353
9e024c0ae8b11574a706c0b3a7b78df7509740aa
4,056
py
Python
Social network/SocialNetwork/settings.py
alirezaryahi/Django-Social-Network
c14119762c1075c8efe80f373c763ae3b3a1d726
[ "MIT" ]
null
null
null
Social network/SocialNetwork/settings.py
alirezaryahi/Django-Social-Network
c14119762c1075c8efe80f373c763ae3b3a1d726
[ "MIT" ]
null
null
null
Social network/SocialNetwork/settings.py
alirezaryahi/Django-Social-Network
c14119762c1075c8efe80f373c763ae3b3a1d726
[ "MIT" ]
null
null
null
""" Django settings for SocialNetwork project. Generated by 'django-admin startproject' using Django 3.1.5. 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 p...
26.684211
91
0.698718
187ecdc8dd3af3214a6ccdc6dd29e224ad6c19de
8,365
py
Python
custom/icds/forms.py
satyaakam/commcare-hq
233f255ff20ab3a16013e9fdfdb9c1dcf632e415
[ "BSD-3-Clause" ]
null
null
null
custom/icds/forms.py
satyaakam/commcare-hq
233f255ff20ab3a16013e9fdfdb9c1dcf632e415
[ "BSD-3-Clause" ]
null
null
null
custom/icds/forms.py
satyaakam/commcare-hq
233f255ff20ab3a16013e9fdfdb9c1dcf632e415
[ "BSD-3-Clause" ]
null
null
null
from django import forms from django.core.exceptions import ValidationError from django.forms.widgets import Select from django.utils.translation import ugettext as _ from django.utils.translation import ugettext_lazy from crispy_forms import layout as crispy from crispy_forms.helper import FormHelper from crispy_form...
44.259259
109
0.609085
3e58e53b3b0593da83813cec6a961f905a4998dd
2,804
py
Python
src/ultros/core/storage/config/json.py
UltrosBot/Ultros3K
3aac86beecf94ff1391ca993eafaaf55e513b965
[ "Artistic-2.0" ]
11
2016-06-29T11:54:42.000Z
2020-11-02T00:09:41.000Z
src/ultros/core/storage/config/json.py
UltrosBot/Ultros3K
3aac86beecf94ff1391ca993eafaaf55e513b965
[ "Artistic-2.0" ]
4
2016-06-29T12:11:25.000Z
2017-03-21T15:24:32.000Z
src/ultros/core/storage/config/json.py
UltrosBot/Ultros3K
3aac86beecf94ff1391ca993eafaaf55e513b965
[ "Artistic-2.0" ]
null
null
null
# coding=utf-8 """ Class for JSON-based configurations """ import json from typing import Any, List, Dict from ultros.core.storage import manager as m from ultros.core.storage.base import MutableAbstractItemAccessMixin, MutableAbstractDictFunctionsMixin from ultros.core.storage.config.base import MutableConfigFile ...
22.253968
119
0.598074
96fdc0fd155a8cd4202b4affb07f2cb07211b8d7
36,498
py
Python
python/libsixel/__init__.py
timholy/libsixel
6a5be8b72d84037b83a5ea838e17bcf372ab1d5f
[ "MIT" ]
1,938
2015-01-26T00:59:18.000Z
2022-03-30T18:58:49.000Z
python/libsixel/__init__.py
timholy/libsixel
6a5be8b72d84037b83a5ea838e17bcf372ab1d5f
[ "MIT" ]
134
2015-01-25T10:53:44.000Z
2022-03-19T20:57:11.000Z
python/libsixel/__init__.py
timholy/libsixel
6a5be8b72d84037b83a5ea838e17bcf372ab1d5f
[ "MIT" ]
67
2016-02-27T04:55:42.000Z
2022-02-13T13:29:21.000Z
#!/usr/bin/env python # # Copyright (c) 2014-2020 Hayaki Saito # # 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, m...
49.860656
114
0.59891
3517fc833c56bba9b604293b672b44dd8f40498b
971
py
Python
finding_file.py
Savioor/sprint2
a36b434709af6a1c81d1371f74e6c963f0e9daf4
[ "Apache-2.0" ]
null
null
null
finding_file.py
Savioor/sprint2
a36b434709af6a1c81d1371f74e6c963f0e9daf4
[ "Apache-2.0" ]
null
null
null
finding_file.py
Savioor/sprint2
a36b434709af6a1c81d1371f74e6c963f0e9daf4
[ "Apache-2.0" ]
null
null
null
import os import os.path def _diff(list1, list2): list_difference = [item for item in list1 if item not in list2] return list_difference dl = 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' drives = ['%s:' % d for d in dl if os.path.exists('%s:' % d)] def _check_usb(): global drives while True: uncheckeddriv...
26.972222
78
0.563337
cdd1c47a5dcf0063cd1e32dded82e0a74c7023dd
131,233
py
Python
yandex/cloud/mdb/postgresql/v1/config/postgresql13_pb2.py
ovandriyanov/python-sdk
eec7dc65ef23789388fa46d13087d4a03cdc6e57
[ "MIT" ]
null
null
null
yandex/cloud/mdb/postgresql/v1/config/postgresql13_pb2.py
ovandriyanov/python-sdk
eec7dc65ef23789388fa46d13087d4a03cdc6e57
[ "MIT" ]
null
null
null
yandex/cloud/mdb/postgresql/v1/config/postgresql13_pb2.py
ovandriyanov/python-sdk
eec7dc65ef23789388fa46d13087d4a03cdc6e57
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! # source: yandex/cloud/mdb/postgresql/v1/config/postgresql13.proto """Generated protocol buffer code.""" from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message from google.protobuf import re...
70.028282
18,234
0.799883
b219c7dfd3411460e794d90cd648936a82d18d82
1,868
py
Python
seq2annotation/trainer/cli.py
lanSeFangZhou/seq2annotation
a824520d46f0b3d70268fae422976a5ce1b3f4ce
[ "Apache-2.0" ]
90
2018-11-29T07:05:16.000Z
2021-11-22T11:32:58.000Z
seq2annotation/trainer/cli.py
howl-anderson/seq2annotation
9069614bb9ee0bea2ec2b3e711914b067e9003bb
[ "Apache-2.0" ]
50
2019-06-27T07:11:18.000Z
2022-02-10T00:01:02.000Z
seq2annotation/trainer/cli.py
lanSeFangZhou/seq2annotation
a824520d46f0b3d70268fae422976a5ce1b3f4ce
[ "Apache-2.0" ]
23
2019-01-03T14:57:15.000Z
2022-03-08T07:50:33.000Z
from typing import Any from deliverable_model.request import Request from deliverable_model.response import Response from deliverable_model.utils import create_dir_if_needed from ioflow.configure import read_configure from ioflow.corpus import get_corpus_processor from seq2annotation.input import build_input_func, gen...
32.77193
88
0.784797
bc0e72f2f74e9bc0ffbe33fe08f2d9251d2b1f04
28,501
py
Python
brainfck/brainfck.py
GitAcrown/RedAppsv2
a3a1fb5a5c659ce6e54e62503012a79a71763d47
[ "MIT" ]
1
2022-03-07T01:54:10.000Z
2022-03-07T01:54:10.000Z
brainfck/brainfck.py
GitAcrown/RedAppsv2
a3a1fb5a5c659ce6e54e62503012a79a71763d47
[ "MIT" ]
null
null
null
brainfck/brainfck.py
GitAcrown/RedAppsv2
a3a1fb5a5c659ce6e54e62503012a79a71763d47
[ "MIT" ]
null
null
null
import asyncio import logging import yaml import random import os import string import time from datetime import datetime from fuzzywuzzy import process import discord from redbot.core.data_manager import cog_data_path from redbot.core.utils.menus import start_adding_reactions, menu, DEFAULT_CONTROLS from typing impo...
47.981481
206
0.531315
6ef0453ab1eb43cae0885a7c010bae8ed5a79a56
4,641
py
Python
geoopt/manifolds/siegel/siegel.py
leonMatzner/geoopt
4a7058e43bf78ab5012b862076a74bec175df221
[ "Apache-2.0" ]
438
2019-03-05T11:24:03.000Z
2022-03-31T14:46:42.000Z
geoopt/manifolds/siegel/siegel.py
leonMatzner/geoopt
4a7058e43bf78ab5012b862076a74bec175df221
[ "Apache-2.0" ]
98
2019-03-07T21:38:24.000Z
2022-03-25T10:48:45.000Z
geoopt/manifolds/siegel/siegel.py
leonMatzner/geoopt
4a7058e43bf78ab5012b862076a74bec175df221
[ "Apache-2.0" ]
58
2019-04-13T04:52:16.000Z
2022-03-14T09:26:00.000Z
from abc import ABC from typing import Union, Tuple, Optional import torch from ..base import Manifold from geoopt import linalg as lalg from ..siegel import csym_math as sm from .vvd_metrics import SiegelMetricType, SiegelMetricFactory class SiegelManifold(Manifold, ABC): """Abstract Manifold to work on Siegel s...
33.388489
119
0.605688
4cfa878696398f8647e5278b78520966f030dd4d
1,157
py
Python
neutron/tests/unit/mlnx/test_agent_scheduler.py
petrutlucian94/neutron
44976d12bbe72331e536d92bb46e35a8835a75ce
[ "Apache-2.0" ]
null
null
null
neutron/tests/unit/mlnx/test_agent_scheduler.py
petrutlucian94/neutron
44976d12bbe72331e536d92bb46e35a8835a75ce
[ "Apache-2.0" ]
null
null
null
neutron/tests/unit/mlnx/test_agent_scheduler.py
petrutlucian94/neutron
44976d12bbe72331e536d92bb46e35a8835a75ce
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2013 OpenStack, LLC. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in wr...
33.057143
69
0.793431
04ac537f3752eafe0297c40bdc4328e23236c3ff
3,066
py
Python
tools/low_cpu_check.py
Incubaid/arakoon
43a8d0b26e4876ef91d9657149f105c7e57e0cb0
[ "Apache-2.0" ]
41
2015-02-11T03:23:36.000Z
2020-12-27T12:13:52.000Z
tools/low_cpu_check.py
Incubaid/arakoon
43a8d0b26e4876ef91d9657149f105c7e57e0cb0
[ "Apache-2.0" ]
36
2015-01-04T16:58:51.000Z
2020-11-12T12:05:37.000Z
tools/low_cpu_check.py
Incubaid/arakoon
43a8d0b26e4876ef91d9657149f105c7e57e0cb0
[ "Apache-2.0" ]
7
2015-07-10T08:04:01.000Z
2021-09-28T08:09:23.000Z
import bz2 import struct import binascii import os import time import sys def sn_from(buf, offset): r = struct.unpack_from("q",buf, offset) return r[0], offset + 8 def int32_from(buf, offset): r = struct.unpack_from("I", buf, offset) return r[0], offset + 4 def string_from(buf, offset): size,o2 =...
23.227273
69
0.561644
c7612a0fd660718393bd2e406b13851d8a5120ad
28,858
py
Python
pyvista/utilities/helpers.py
JevinJ/pyvista
c9be18ed209de3f80e1a70ef01eef3355b3616ce
[ "MIT" ]
null
null
null
pyvista/utilities/helpers.py
JevinJ/pyvista
c9be18ed209de3f80e1a70ef01eef3355b3616ce
[ "MIT" ]
null
null
null
pyvista/utilities/helpers.py
JevinJ/pyvista
c9be18ed209de3f80e1a70ef01eef3355b3616ce
[ "MIT" ]
null
null
null
"""Supporting functions for polydata and grid objects.""" import collections.abc import enum import logging import signal import sys import warnings from threading import Thread import threading import traceback import numpy as np import scooby import vtk import vtk.util.numpy_support as nps import pyvista from .fil...
32.243575
110
0.622808
039c0ff62e22ab614c6961d3a82fe1fa46f5e18e
127
py
Python
__init__.py
munasaber/djlib
2066353ff718a6fe30dd8897f635ac0f4616b948
[ "MIT" ]
null
null
null
__init__.py
munasaber/djlib
2066353ff718a6fe30dd8897f635ac0f4616b948
[ "MIT" ]
null
null
null
__init__.py
munasaber/djlib
2066353ff718a6fe30dd8897f635ac0f4616b948
[ "MIT" ]
null
null
null
from . import clex from . import mc from . import casmcalls from . import vasputils from . import voltage from .djlib import *
18.142857
23
0.755906
65c9968621cc82c96799c6059ed2551c70dfc1c5
6,446
py
Python
data_preprocessing.py
hwRG/FastSpeech2-Pytorch-old-man_city
c32ee3a09bf2a53fcd17a2d0b74e8d1c93586573
[ "MIT" ]
null
null
null
data_preprocessing.py
hwRG/FastSpeech2-Pytorch-old-man_city
c32ee3a09bf2a53fcd17a2d0b74e8d1c93586573
[ "MIT" ]
null
null
null
data_preprocessing.py
hwRG/FastSpeech2-Pytorch-old-man_city
c32ee3a09bf2a53fcd17a2d0b74e8d1c93586573
[ "MIT" ]
null
null
null
### Data Preprocessing ## 1. Json to Transcript ## 2. Aligner ## 3. Text Replace from jamo import h2j import json import os, re, tqdm import unicodedata from tqdm import tqdm import hparams as hp name = hp.dataset first_dir = os.getcwd() transcript = name + '_transcript.txt' dict_name = name + '_k...
31.910891
135
0.51691
5e02ae6b1c8cb7febbb96c9e1913b3c3300398b4
257
py
Python
src/main/resources/assets/openpython/opos/v1.1/lib/micropython/gettext.py
fossabot/OpenPython
8fe3f794f2a6c543d96c1ef5c097ffa18f90b680
[ "PSF-2.0", "Apache-2.0", "CC0-1.0", "MIT" ]
1,556
2015-01-18T01:10:21.000Z
2022-03-31T23:27:33.000Z
unix-ffi/gettext/gettext.py
Li-Lian1069/micropython-lib
1dfca5ad343b2841965df6c4e59f92d6d94a24bd
[ "PSF-2.0" ]
414
2015-01-01T09:01:22.000Z
2022-03-31T15:08:24.000Z
unix-ffi/gettext/gettext.py
Li-Lian1069/micropython-lib
1dfca5ad343b2841965df6c4e59f92d6d94a24bd
[ "PSF-2.0" ]
859
2015-02-05T13:23:00.000Z
2022-03-28T02:28:16.000Z
import ffilib libc = ffilib.libc() gettext_ = libc.func("s", "gettext", "s") ngettext_ = libc.func("s", "ngettext", "ssL") def gettext(message): return gettext_(message) def ngettext(singular, plural, n): return ngettext_(singular, plural, n)
17.133333
45
0.677043
b567af380fd6ac6c9951e289cdba0dc6da54a2fb
538
py
Python
python/hail/typecheck/__init__.py
maccum/hail
e9e8a40bb4f0c2337e5088c26186a4da4948bed2
[ "MIT" ]
null
null
null
python/hail/typecheck/__init__.py
maccum/hail
e9e8a40bb4f0c2337e5088c26186a4da4948bed2
[ "MIT" ]
null
null
null
python/hail/typecheck/__init__.py
maccum/hail
e9e8a40bb4f0c2337e5088c26186a4da4948bed2
[ "MIT" ]
null
null
null
from .check import * __all__ = ['TypeChecker', 'typecheck', 'typecheck_method', 'anytype', 'nullable', 'sequenceof', 'tupleof', 'sized_tupleof', 'dictof', 'setof', 'oneof', 'exactly', 'nu...
21.52
30
0.390335
f4b9660567e98f61f12d7c85bdcb71e46cd81e71
1,078
py
Python
bitcoinaddress/key/seed.py
Arsi44/bitcoinaddress
5a87cb81a072a8325d62c26ca109e3eb5f82270f
[ "MIT" ]
null
null
null
bitcoinaddress/key/seed.py
Arsi44/bitcoinaddress
5a87cb81a072a8325d62c26ca109e3eb5f82270f
[ "MIT" ]
null
null
null
bitcoinaddress/key/seed.py
Arsi44/bitcoinaddress
5a87cb81a072a8325d62c26ca109e3eb5f82270f
[ "MIT" ]
null
null
null
# Bitcoin Address v0.1 # Copyright (c) 2020 - https://github.com/fortesp/bitcoinaddress # This software is distributed under the terms of the MIT License. # See the file 'LICENSE' in the root directory of the present distribution, # or http://opensource.org/licenses/MIT. import os import time from random import ...
29.135135
105
0.641002
947b9204f4667c39296401f3df28429eae6e7d8a
1,538
py
Python
http_request_randomizer/requests/parsers/js/UnPacker.py
alsrua7222/HTTP_Request_Randomizer
9ab14148becf58e39292e479629ef08a265bd6a3
[ "MIT" ]
null
null
null
http_request_randomizer/requests/parsers/js/UnPacker.py
alsrua7222/HTTP_Request_Randomizer
9ab14148becf58e39292e479629ef08a265bd6a3
[ "MIT" ]
null
null
null
http_request_randomizer/requests/parsers/js/UnPacker.py
alsrua7222/HTTP_Request_Randomizer
9ab14148becf58e39292e479629ef08a265bd6a3
[ "MIT" ]
null
null
null
import re import requests import logging logger = logging.getLogger(__name__) class JsUnPacker(object): """ It takes the javascript file's url which contains the port numbers for the encrypted strings. The file has to be unpacked to a readable form just like http://matthewfl.com/unPacker.html does. T...
36.619048
122
0.615085
8f37fd30e84d2548d9bed8371f68b035be4433e2
3,387
py
Python
setup.py
JAvito-GC/Linux-Utils
41d8905063380f0e27475063ffaaf1a9edca6867
[ "MIT" ]
4
2018-10-20T15:49:07.000Z
2020-12-03T03:44:52.000Z
setup.py
JAvito-GC/Linux-Utils
41d8905063380f0e27475063ffaaf1a9edca6867
[ "MIT" ]
null
null
null
setup.py
JAvito-GC/Linux-Utils
41d8905063380f0e27475063ffaaf1a9edca6867
[ "MIT" ]
4
2017-10-18T12:49:42.000Z
2022-03-09T16:21:09.000Z
#!/usr/bin/env python # Setup script for the `linux-utils' package. # # Author: Peter Odding <peter@peterodding.com> # Last Change: February 9, 2020 # URL: https://linux-utils.readthedocs.io """ Setup script for the ``linux-utils`` package. **python setup.py install** Install from the working directory into the cu...
34.561224
83
0.638323
124b3e43be7262b0a03a6aae2614a12e0459aff3
295
py
Python
checkout/api/urls.py
shukranjs/E-commerce-project
047a509c78d9dc9ba65910349383df1e3d7228bd
[ "MIT" ]
2
2021-07-07T07:19:44.000Z
2021-08-19T19:20:14.000Z
checkout/api/urls.py
Emrahgs/E-commerce-project
4c0ee3444701c3c1782e6b6cf75b7c63aee32371
[ "MIT" ]
null
null
null
checkout/api/urls.py
Emrahgs/E-commerce-project
4c0ee3444701c3c1782e6b6cf75b7c63aee32371
[ "MIT" ]
null
null
null
from django.urls import path from checkout.api.views import OrderItemAPIView, OrderItemDetailAPIView urlpatterns = [ path('order-item/', OrderItemAPIView.as_view(), name='order_item_api'), path('order-item/<int:pk>', OrderItemDetailAPIView.as_view(), name='order_item_detail_api'), ]
42.142857
96
0.762712
05b5c4ba861d0c860d6013aadae21c8b3f781e5e
2,740
py
Python
0x0C-python-almost_a_circle/tests/test_models/test_base.py
Trice254/alx-higher_level_programming
b49b7adaf2c3faa290b3652ad703914f8013c67c
[ "MIT" ]
null
null
null
0x0C-python-almost_a_circle/tests/test_models/test_base.py
Trice254/alx-higher_level_programming
b49b7adaf2c3faa290b3652ad703914f8013c67c
[ "MIT" ]
null
null
null
0x0C-python-almost_a_circle/tests/test_models/test_base.py
Trice254/alx-higher_level_programming
b49b7adaf2c3faa290b3652ad703914f8013c67c
[ "MIT" ]
null
null
null
#!/usr/bin/python3 """ Contains tests for Base class """ import unittest import json from models import base Base = base.Base class TestBase(unittest.TestCase): """check functionality of Base class""" def _too_many_args(self): """testing too many args to init""" with self.assertRaises(TypeErr...
32.235294
76
0.568613
cfa5f4a105163dec690b3190fab235197e72fb63
19,026
py
Python
geode/exact/test_circle.py
Haider-BA/geode
b9ebbc0c61acd17ceb21200dba0d52546a3dbff2
[ "BSD-3-Clause" ]
1
2021-06-19T13:12:35.000Z
2021-06-19T13:12:35.000Z
geode/exact/test_circle.py
Haider-BA/geode
b9ebbc0c61acd17ceb21200dba0d52546a3dbff2
[ "BSD-3-Clause" ]
null
null
null
geode/exact/test_circle.py
Haider-BA/geode
b9ebbc0c61acd17ceb21200dba0d52546a3dbff2
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python from __future__ import division from geode import * import sys def random_circle_arcs(n,k): '''Generate n random circular arc polygons with k arcs per contour''' arcs = empty((n,k),dtype=CircleArc).view(recarray) arcs.x = random.randn(n,1,2)+.5*random.randn(n,k,2) arcs.q = random.uniform...
72.896552
1,527
0.641648
7083d968b6bb96522f1a98cee725544f9efa5e12
1,203
py
Python
segmentation/libs/utils/metric.py
LvJC/CONTA
5337911a8fb35eadfcedf8ab18b192bff556e626
[ "MIT" ]
121
2020-09-26T00:48:50.000Z
2021-06-24T20:45:22.000Z
segmentation/libs/utils/metric.py
LvJC/CONTA
5337911a8fb35eadfcedf8ab18b192bff556e626
[ "MIT" ]
23
2020-09-28T16:50:13.000Z
2021-04-10T16:40:37.000Z
segmentation/libs/utils/metric.py
LvJC/CONTA
5337911a8fb35eadfcedf8ab18b192bff556e626
[ "MIT" ]
17
2020-09-29T10:22:12.000Z
2021-06-09T09:34:50.000Z
# Originally written by wkentaro # https://github.com/wkentaro/pytorch-fcn/blob/master/torchfcn/utils.py import numpy as np def _fast_hist(label_true, label_pred, n_class): mask = (label_true >= 0) & (label_true < n_class) hist = np.bincount( n_class * label_true[mask].astype(int) + label_pred[mask], ...
35.382353
78
0.625104
8b91c10853089cd8fb7a285d7c3a6ea5010e43b8
13,815
py
Python
tests/contrib/molten/test_molten.py
zhammer/dd-trace-py
4c30f6e36bfa34a63cd9b6884677c977f76d2a01
[ "Apache-2.0", "BSD-3-Clause" ]
1
2021-04-28T21:35:01.000Z
2021-04-28T21:35:01.000Z
tests/contrib/molten/test_molten.py
zhammer/dd-trace-py
4c30f6e36bfa34a63cd9b6884677c977f76d2a01
[ "Apache-2.0", "BSD-3-Clause" ]
null
null
null
tests/contrib/molten/test_molten.py
zhammer/dd-trace-py
4c30f6e36bfa34a63cd9b6884677c977f76d2a01
[ "Apache-2.0", "BSD-3-Clause" ]
null
null
null
import molten from molten.testing import TestClient from ddtrace import Pin from ddtrace.constants import ANALYTICS_SAMPLE_RATE_KEY from ddtrace.ext import errors, http from ddtrace.propagation.http import HTTP_HEADER_TRACE_ID, HTTP_HEADER_PARENT_ID from ddtrace.contrib.molten import patch, unpatch from ddtrace.contri...
43.171875
117
0.646833
d363b1ee09b25b3b6f70f89ed5229b45491692a0
6,619
py
Python
venv/Lib/site-packages/nuitka/utils/ModuleNames.py
patmloi/PalettePal
66c6528a990c8bd6159fad128b2aca559f3ea0a4
[ "MIT" ]
5,421
2018-09-24T08:04:06.000Z
2022-03-31T20:02:37.000Z
venv/Lib/site-packages/nuitka/utils/ModuleNames.py
matthijsvanvliet/raytracing-python
73d692b47330ab94eedde579a51063e3a907e92b
[ "MIT" ]
1,348
2018-09-22T13:41:00.000Z
2022-03-31T22:33:40.000Z
venv/Lib/site-packages/nuitka/utils/ModuleNames.py
matthijsvanvliet/raytracing-python
73d692b47330ab94eedde579a51063e3a907e92b
[ "MIT" ]
396
2018-09-28T15:37:03.000Z
2022-03-29T10:52:09.000Z
# Copyright 2021, Kay Hayen, mailto:kay.hayen@gmail.com # # Part of "Nuitka", an optimizing Python compiler that is compatible and # integrates with CPython, but also works on its own. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in complianc...
31.975845
87
0.618976
e1abf5448da57a663bed5092015fff0940ab95af
41,910
py
Python
larch/wxxas/xasnorm_panel.py
dryabov/xraylarch
0c376a31f057a066ae15976d5f7215e96ac47b91
[ "BSD-2-Clause" ]
1
2019-11-29T20:51:55.000Z
2019-11-29T20:51:55.000Z
larch/wxxas/xasnorm_panel.py
maurov/xraylarch
b76f2ce29b6d183f69a7586ea8daccbe0a89ace3
[ "BSD-2-Clause" ]
null
null
null
larch/wxxas/xasnorm_panel.py
maurov/xraylarch
b76f2ce29b6d183f69a7586ea8daccbe0a89ace3
[ "BSD-2-Clause" ]
null
null
null
#!/usr/bin/env python """ XANES Normalization panel """ import os import time import wx import numpy as np from functools import partial from xraydb import guess_edge, atomic_number from lmfit.printfuncs import gformat from larch.math import index_of from larch.xafs.xafsutils import guess_energy_units from larch.wx...
40.610465
97
0.552732
028786be203cfab487178af46b72361a573dcec0
5,114
py
Python
main.py
sagnik403/Marksheet-Generater-tkinter
a1c999f932060e6f3799c28a271ee9360df5c623
[ "MIT" ]
null
null
null
main.py
sagnik403/Marksheet-Generater-tkinter
a1c999f932060e6f3799c28a271ee9360df5c623
[ "MIT" ]
null
null
null
main.py
sagnik403/Marksheet-Generater-tkinter
a1c999f932060e6f3799c28a271ee9360df5c623
[ "MIT" ]
null
null
null
from tkinter import * from tkinter import messagebox from PIL import Image, ImageDraw, ImageFont import math # ==================================================================================================================== global m global p global c global t global a # functions def calc(): ...
31.9625
120
0.609308
dc7ecb8b63a7e25bfd2378167dcb21e9fe36a327
13,356
py
Python
tests/document/test_dynamic.py
shellcodesniper/mongoengine
d76cb345be98045cde0fa078569cc8021c0d0162
[ "MIT" ]
null
null
null
tests/document/test_dynamic.py
shellcodesniper/mongoengine
d76cb345be98045cde0fa078569cc8021c0d0162
[ "MIT" ]
null
null
null
tests/document/test_dynamic.py
shellcodesniper/mongoengine
d76cb345be98045cde0fa078569cc8021c0d0162
[ "MIT" ]
null
null
null
import unittest import pytest from mongoengine import * from tests.utils import MongoDBTestCase __all__ = ("TestDynamicDocument",) class TestDynamicDocument(MongoDBTestCase): def setUp(self): super(TestDynamicDocument, self).setUp() class Person(DynamicDocument): name = StringField...
30.354545
92
0.572701
230bbdcbefbf4a205a4192753726e17d511107fa
6,080
py
Python
doc/source/conf.py
n-piipel/pygraphviz
37208d1135e69bda35f8d5d9038be24857dd878f
[ "BSD-3-Clause" ]
null
null
null
doc/source/conf.py
n-piipel/pygraphviz
37208d1135e69bda35f8d5d9038be24857dd878f
[ "BSD-3-Clause" ]
null
null
null
doc/source/conf.py
n-piipel/pygraphviz
37208d1135e69bda35f8d5d9038be24857dd878f
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- # # Sphinx documentation build configuration file, created by # sphinx-quickstart.py on Sat Mar 8 21:47:50 2008. # # This file is execfile()d with the current directory set to its containing dir. # # The contents of this file are pickled, so don't put values in the namespace # that aren't pickl...
30.862944
83
0.692763
19ec7da5451ca8cbfb5821f946a1fe7a9acea2b4
1,600
py
Python
setup.py
moh2236945/pytorch_classification
8816f08af327e06208b348a78d9c63c133b6a628
[ "MIT" ]
1
2020-06-22T14:35:28.000Z
2020-06-22T14:35:28.000Z
setup.py
moh2236945/pytorch_classification
8816f08af327e06208b348a78d9c63c133b6a628
[ "MIT" ]
null
null
null
setup.py
moh2236945/pytorch_classification
8816f08af327e06208b348a78d9c63c133b6a628
[ "MIT" ]
null
null
null
from setuptools import setup, find_packages from os import path from io import open here = path.abspath(path.dirname(__file__)) with open(path.join(here, 'README.md'), encoding='utf-8') as f: long_description = f.read() setup( name='pytorch_classification', version='0.0.34', description='Image classif...
44.444444
120
0.703125
6a3a4bc423941f4bf5873c0138c2037bcd00d67b
410
py
Python
collectors/models.py
zxyctn/PhenObs
c5ed2e2fdd6a1bee5085c1336dfba31bf9e6abdf
[ "BSD-3-Clause" ]
null
null
null
collectors/models.py
zxyctn/PhenObs
c5ed2e2fdd6a1bee5085c1336dfba31bf9e6abdf
[ "BSD-3-Clause" ]
44
2021-10-19T15:59:57.000Z
2022-03-23T14:39:30.000Z
collectors/models.py
zxyctn/PhenObs
c5ed2e2fdd6a1bee5085c1336dfba31bf9e6abdf
[ "BSD-3-Clause" ]
null
null
null
from django.conf import settings from django.contrib.postgres.fields import ArrayField from django.db import models from gardens.models import Garden class Collector(models.Model): User = settings.AUTH_USER_MODEL user = models.OneToOneField(User, on_delete=models.CASCADE) gardens = ArrayField(base_field=...
27.333333
76
0.773171
076ac874cba720785900b4bb2b298cab84485004
6,171
py
Python
benchmarks/f3_wrong_hints_permutations/scaling_software_termination/11-2Nested_false-termination_34.py
EnricoMagnago/F3
c863215c318d7d5f258eb9be38c6962cf6863b52
[ "MIT" ]
3
2021-04-23T23:29:26.000Z
2022-03-23T10:00:30.000Z
benchmarks/f3_wrong_hints_permutations/scaling_software_termination/11-2Nested_false-termination_34.py
EnricoMagnago/F3
c863215c318d7d5f258eb9be38c6962cf6863b52
[ "MIT" ]
null
null
null
benchmarks/f3_wrong_hints_permutations/scaling_software_termination/11-2Nested_false-termination_34.py
EnricoMagnago/F3
c863215c318d7d5f258eb9be38c6962cf6863b52
[ "MIT" ]
1
2021-11-17T22:02:56.000Z
2021-11-17T22:02:56.000Z
from typing import Tuple, FrozenSet from pysmt.environment import Environment as PysmtEnv from pysmt.fnode import FNode import pysmt.typing as types from utils import symb_to_next from hint import Hint, Location def transition_system(env: PysmtEnv) -> Tuple[FrozenSet[FNode], FNode, FNode, ...
30.399015
77
0.584022
d670d0130ff4d04f852a5a1b4f394cee750adfde
4,842
py
Python
scripts/inference.py
lsheiba/pixel2style2pixel
a5bb5c2031615e2425b2a93442f7d31e54db1b84
[ "Apache-2.0", "BSD-2-Clause", "MIT" ]
53
2021-01-22T08:52:02.000Z
2022-03-30T13:58:57.000Z
scripts/inference.py
rebotnix/pixel2style2pixel
ffa934820eb7cbd728a520377fca1ab7128a7b27
[ "MIT" ]
7
2021-09-26T16:33:21.000Z
2021-12-13T09:05:19.000Z
scripts/inference.py
rebotnix/pixel2style2pixel
ffa934820eb7cbd728a520377fca1ab7128a7b27
[ "MIT" ]
24
2021-09-12T21:41:26.000Z
2022-02-18T15:48:04.000Z
import os from argparse import Namespace from tqdm import tqdm import time import numpy as np import torch from PIL import Image from torch.utils.data import DataLoader import sys sys.path.append(".") sys.path.append("..") from configs import data_configs from datasets.inference_dataset import Inferen...
36.134328
120
0.678439
6a7cfaa8bca8e600a7ce58afed1ef31234baf327
1,236
py
Python
TextDetect.py
ieee820/text-detection
07c9c63a69bc78a9bd85495512641e15ee1c5423
[ "BSD-3-Clause" ]
null
null
null
TextDetect.py
ieee820/text-detection
07c9c63a69bc78a9bd85495512641e15ee1c5423
[ "BSD-3-Clause" ]
null
null
null
TextDetect.py
ieee820/text-detection
07c9c63a69bc78a9bd85495512641e15ee1c5423
[ "BSD-3-Clause" ]
1
2019-12-02T02:25:47.000Z
2019-12-02T02:25:47.000Z
import os,sys import numpy as np import cv2 # author: qzane@live.com # reference: http://stackoverflow.com/a/23565051 # further reading: http://docs.opencv.org/master/da/d56/group__text__detect.html#gsc.tab=0 def text_detect(img,ele_size=(8,2)): # if len(img.shape)==3: img = cv2.cvtColor(img,cv2.COLOR_BGR2...
38.625
107
0.68123
08c9bf0b77edb866c40c8772bffdad090c73db40
181
py
Python
hospitalmanagement/wsgi.py
Shahriar075/HospitalManagement_Django
687df49dd19323aeb91b2155ac74a5b7bb1eb9cd
[ "MIT" ]
null
null
null
hospitalmanagement/wsgi.py
Shahriar075/HospitalManagement_Django
687df49dd19323aeb91b2155ac74a5b7bb1eb9cd
[ "MIT" ]
null
null
null
hospitalmanagement/wsgi.py
Shahriar075/HospitalManagement_Django
687df49dd19323aeb91b2155ac74a5b7bb1eb9cd
[ "MIT" ]
null
null
null
import os from django.core.wsgi import get_wsgi_application os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'hospitalmanagement.settings') application = get_wsgi_application()
18.1
78
0.828729
b5182750607a4439fef3a4a005399cae07289d60
9,517
py
Python
microservices/http/client.py
viatoriche/microservices
3510563edd15dc6131b8a948d6062856cd904ac7
[ "MIT" ]
18
2016-04-04T03:01:37.000Z
2020-08-18T03:03:40.000Z
microservices/http/client.py
viatoriche/microservices
3510563edd15dc6131b8a948d6062856cd904ac7
[ "MIT" ]
7
2016-05-06T14:23:16.000Z
2019-11-20T11:16:35.000Z
microservices/http/client.py
viatoriche/microservices
3510563edd15dc6131b8a948d6062856cd904ac7
[ "MIT" ]
5
2016-05-06T08:20:40.000Z
2019-07-13T01:34:38.000Z
import requests import six import six.moves.urllib.parse as urlparse from six.moves.urllib.parse import urlencode from microservices.helpers.logs import InstanceLogger from microservices.utils import get_logger @six.python_2_unicode_compatible class ResponseError(Exception): def __init__(self, response, descript...
38.068
146
0.595251
5fa152cfcd4858545a467af278956d8a844f2435
5,756
py
Python
src/zc/monitor/__init__.py
stevepiercy/zc.monitor
e69c32da1c50d055c83ff60e2e4fcb7ca2460ca1
[ "ZPL-2.1" ]
null
null
null
src/zc/monitor/__init__.py
stevepiercy/zc.monitor
e69c32da1c50d055c83ff60e2e4fcb7ca2460ca1
[ "ZPL-2.1" ]
null
null
null
src/zc/monitor/__init__.py
stevepiercy/zc.monitor
e69c32da1c50d055c83ff60e2e4fcb7ca2460ca1
[ "ZPL-2.1" ]
null
null
null
############################################################################## # # Copyright (c) 2005-2008 Zope Foundation and Contributors. # All Rights Reserved. # # This software is subject to the provisions of the Zope Public License, # Version 2.1 (ZPL). A copy of the ZPL should accompany this distribution. # THI...
33.08046
78
0.601633
e170584d863234c8e6b2e7883ae6871893865c83
44,156
py
Python
dmtree/decision_tree.py
jdvelasq/hardDecisions
54f886e82784c4061200d843841ef600b0ac366b
[ "MIT" ]
null
null
null
dmtree/decision_tree.py
jdvelasq/hardDecisions
54f886e82784c4061200d843841ef600b0ac366b
[ "MIT" ]
null
null
null
dmtree/decision_tree.py
jdvelasq/hardDecisions
54f886e82784c4061200d843841ef600b0ac366b
[ "MIT" ]
1
2021-07-17T19:27:54.000Z
2021-07-17T19:27:54.000Z
""" Decision Tree Model ============================================================================== """ # import math from typing import Any, List # import numpy as np class DecisionTree: """Creates and evaluates a decision tree model.""" def __init__(self): """Decision tree constructor.""" ...
40.178344
96
0.416048
f51d71290166cea2ae5aa2963770bfa0c5c6f560
78,746
py
Python
python/ccxt/hbtc.py
EdwinSchrubb/ccxt
b134ce6ffad54c69ceaa872b07c71ca07e7d3a1a
[ "MIT" ]
1
2021-10-16T17:00:03.000Z
2021-10-16T17:00:03.000Z
python/ccxt/hbtc.py
EdwinSchrubb/ccxt
b134ce6ffad54c69ceaa872b07c71ca07e7d3a1a
[ "MIT" ]
2
2020-05-12T12:53:48.000Z
2020-07-05T12:59:52.000Z
python/ccxt/hbtc.py
EdwinSchrubb/ccxt
b134ce6ffad54c69ceaa872b07c71ca07e7d3a1a
[ "MIT" ]
3
2020-04-01T05:56:19.000Z
2020-06-24T10:17:13.000Z
# -*- coding: utf-8 -*- # PLEASE DO NOT EDIT THIS FILE, IT IS GENERATED AND WILL BE OVERWRITTEN: # https://github.com/ccxt/ccxt/blob/master/CONTRIBUTING.md#how-to-contribute-code from ccxt.base.exchange import Exchange import hashlib from ccxt.base.errors import ExchangeError from ccxt.base.errors import Authenticati...
41.5327
484
0.461839
d92c8c64eae36f99ef2a37c65e1c654da24eb270
8,191
py
Python
individual.py
StPluto/Test15
a09731193cbaac255d303c0ba6335dd2034920da
[ "MIT" ]
null
null
null
individual.py
StPluto/Test15
a09731193cbaac255d303c0ba6335dd2034920da
[ "MIT" ]
null
null
null
individual.py
StPluto/Test15
a09731193cbaac255d303c0ba6335dd2034920da
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # Выполнить индивидуальное задание 2 лабораторной работы 9, использовав классы данных, а # также загрузку и сохранение данных в формат XML. from dataclasses import dataclass, field import logging import sys from typing import List import xml.etree.ElementTree as ET # К...
31.625483
88
0.505189
2070af6901a641956694818b34ea94304eb1d8e5
2,472
py
Python
tabla/tabla/tests/test_simulator.py
ziqingzeng/public
4102b3bd42f43b49cf74599492d52d4f755ab7b2
[ "BSD-3-Clause" ]
6
2021-04-20T06:33:25.000Z
2022-02-24T06:46:13.000Z
tabla/tabla/tests/test_simulator.py
ziqingzeng/public
4102b3bd42f43b49cf74599492d52d4f755ab7b2
[ "BSD-3-Clause" ]
3
2021-04-20T04:28:51.000Z
2021-05-24T05:14:31.000Z
tabla/tabla/tests/test_simulator.py
ziqingzeng/public
4102b3bd42f43b49cf74599492d52d4f755ab7b2
[ "BSD-3-Clause" ]
4
2021-04-08T16:38:46.000Z
2021-04-30T05:51:30.000Z
import os, sys try: import simulation except ModuleNotFoundError: sys.path.insert(0, os.path.join(os.path.dirname(__file__), '../../')) import pytest from simulation.simulator import Simulator from simulation.instruction import InstructionLoader from pathlib import Path import argparse BENCH_ROOT = f"{Path(f'{...
36.352941
103
0.649676
5e656272e6300c64758d53545682c93be4e2a7bf
3,298
py
Python
synaptor/io/backends/aws.py
nkemnitz/Synaptor
40618786d5b762eb3877ecac49ff310f3e6f892d
[ "MIT" ]
1
2019-04-08T21:01:59.000Z
2019-04-08T21:01:59.000Z
synaptor/io/backends/aws.py
nkemnitz/Synaptor
40618786d5b762eb3877ecac49ff310f3e6f892d
[ "MIT" ]
null
null
null
synaptor/io/backends/aws.py
nkemnitz/Synaptor
40618786d5b762eb3877ecac49ff310f3e6f892d
[ "MIT" ]
null
null
null
""" AWS IO Functionality """ import os import re import subprocess import cloudvolume # Piggybacking on cloudvolume's secrets import boto3 from . import utils REGEXP = re.compile("s3://") CREDS_FN = cloudvolume.secrets.aws_credentials def pull_file(remote_path): bucket, key = parse_remote_path(remote_path) ...
27.949153
78
0.681928
8aba9fbf2780ef07add8c586ccad77d85ba6461e
4,248
py
Python
models.py
tobiasbartel/servicium-instance_manager
74702ab61481df67c06c6dc7dfd435a4b37126e8
[ "MIT" ]
null
null
null
models.py
tobiasbartel/servicium-instance_manager
74702ab61481df67c06c6dc7dfd435a4b37126e8
[ "MIT" ]
null
null
null
models.py
tobiasbartel/servicium-instance_manager
74702ab61481df67c06c6dc7dfd435a4b37126e8
[ "MIT" ]
null
null
null
from __future__ import unicode_literals from django.template.defaultfilters import slugify from django.db import models from django.core.validators import validate_comma_separated_integer_list from django.db import models from servicecatalog.models import STATE, LIVE, ACCESS_DIRECTION, BOTH, PaymentMethod, Module, Co...
44.25
176
0.717279
e225bf9dcff3f342d7cbe93eb6aef860b0a8b9e1
894
py
Python
examples/undocumented/python_modular/kernel_wave_modular.py
srgnuclear/shogun
33c04f77a642416376521b0cd1eed29b3256ac13
[ "Ruby", "MIT" ]
1
2015-11-05T18:31:14.000Z
2015-11-05T18:31:14.000Z
examples/undocumented/python_modular/kernel_wave_modular.py
waderly/shogun
9288b6fa38e001d63c32188f7f847dadea66e2ae
[ "Ruby", "MIT" ]
null
null
null
examples/undocumented/python_modular/kernel_wave_modular.py
waderly/shogun
9288b6fa38e001d63c32188f7f847dadea66e2ae
[ "Ruby", "MIT" ]
null
null
null
#!/usr/bin/env python from tools.load import LoadMatrix from numpy import where lm=LoadMatrix() traindat = lm.load_numbers('../data/fm_train_real.dat') testdat = lm.load_numbers('../data/fm_test_real.dat') parameter_list=[[traindat,testdat, 1.0],[traindat,testdat, 10.0]] def kernel_wave_modular (fm_train_real=traind...
27.9375
81
0.805369
29afbea73959713b3f7691c13b904ac28b5d9db9
1,252
py
Python
00_Code/01_LeetCode/7_ReverseInteger.py
KartikKannapur/Data_Structures_and_Algorithms_Python
66e3c8112826aeffb78bd74d02be1a8d1e478de8
[ "MIT" ]
1
2017-06-11T04:57:07.000Z
2017-06-11T04:57:07.000Z
00_Code/01_LeetCode/7_ReverseInteger.py
KartikKannapur/Data_Structures_and_Algorithms_Python
66e3c8112826aeffb78bd74d02be1a8d1e478de8
[ "MIT" ]
null
null
null
00_Code/01_LeetCode/7_ReverseInteger.py
KartikKannapur/Data_Structures_and_Algorithms_Python
66e3c8112826aeffb78bd74d02be1a8d1e478de8
[ "MIT" ]
null
null
null
""" Given a 32-bit signed integer, reverse digits of an integer. Example 1: Input: 123 Output: 321 Example 2: Input: -123 Output: -321 Example 3: Input: 120 Output: 21 Note: Assume we are dealing with an environment which could only store integers within the 32-bit signed integer range: [−231, 231 − 1]. For the pu...
23.185185
237
0.580671
f2d55f19e26ab06e271de69d23c5cee26c083ed6
883
py
Python
cutout.py
ra1nty/CIFAR-100-CS543
055164b7ab16b6d13f747d6addf651db60582adb
[ "MIT" ]
2
2019-05-02T08:14:35.000Z
2019-05-02T18:35:14.000Z
cutout.py
ra1nty/CIFAR-100-CS543
055164b7ab16b6d13f747d6addf651db60582adb
[ "MIT" ]
null
null
null
cutout.py
ra1nty/CIFAR-100-CS543
055164b7ab16b6d13f747d6addf651db60582adb
[ "MIT" ]
null
null
null
import numpy as np import torch class CutOut(object): """Cutout an image tensor image with n holes with size length. """ def __init__(self, n, length): self.n = n self.length = length def __call__(self, tensor): _, h, w = tensor.shape mask = np.ones((3, h, w), dtype...
32.703704
90
0.524349
ce2da37e92de1366741e3255011a09cb33c03511
2,764
py
Python
echidna/settings/http_response_message.py
liyao2598330/echidna
145c1345ea8ee25cfcc5d3eff867ae06ddea39e8
[ "MIT" ]
null
null
null
echidna/settings/http_response_message.py
liyao2598330/echidna
145c1345ea8ee25cfcc5d3eff867ae06ddea39e8
[ "MIT" ]
null
null
null
echidna/settings/http_response_message.py
liyao2598330/echidna
145c1345ea8ee25cfcc5d3eff867ae06ddea39e8
[ "MIT" ]
1
2020-10-19T14:13:41.000Z
2020-10-19T14:13:41.000Z
""" @author: liyao @contact: liyao2598330@126.com @time: 2020/8/14 12:02 下午 """ from echidna.settings.mood import MOOD from random import choice __all__ = ['HttpResponseMessage'] class HttpResponseMessage: """ 根据不同的http状态码,设置统一的默认返回信息 https://developer.mozilla.org/zh-CN/docs/Web/HTTP/Status ...
27.366337
104
0.535818
1175938c8b8e99dadc7c478491e9cc23646aa277
3,715
py
Python
scripts/glance/check_glance.py
jaimevalero/openstack-monitoring
234b49aafe4247586cf45346872ff91e125d08ba
[ "Apache-2.0" ]
1
2020-10-01T13:10:45.000Z
2020-10-01T13:10:45.000Z
scripts/glance/check_glance.py
jaimevalero/openstack-monitoring
234b49aafe4247586cf45346872ff91e125d08ba
[ "Apache-2.0" ]
null
null
null
scripts/glance/check_glance.py
jaimevalero/openstack-monitoring
234b49aafe4247586cf45346872ff91e125d08ba
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # -*- encoding: utf-8 -*- # # Keystone monitoring script for Nagios # # Copyright © 2012 eNovance <licensing@enovance.com> # # Author: Florian Lambert <florian.lambert@enovance.com> # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero Gene...
31.218487
97
0.693405
4cc252f38c5fa3fdc6a1da186ec58e0861484522
5,800
py
Python
sdk/lusid/models/get_recipe_response.py
finbourne/lusid-sdk-python-generated-preview
9c36c953e8149443a4390ed7f0c04d01211401b6
[ "MIT" ]
null
null
null
sdk/lusid/models/get_recipe_response.py
finbourne/lusid-sdk-python-generated-preview
9c36c953e8149443a4390ed7f0c04d01211401b6
[ "MIT" ]
null
null
null
sdk/lusid/models/get_recipe_response.py
finbourne/lusid-sdk-python-generated-preview
9c36c953e8149443a4390ed7f0c04d01211401b6
[ "MIT" ]
null
null
null
# coding: utf-8 """ LUSID API FINBOURNE Technology # noqa: E501 The version of the OpenAPI document: 0.11.4425 Contact: info@finbourne.com Generated by: https://openapi-generator.tech """ try: from inspect import getfullargspec except ImportError: from inspect import getargspec as getf...
28.431373
132
0.579655
758ca4c68df95abd76b252c6c9fa73e86cc2b26f
852
py
Python
06.algorithm004-02/week02/06.Tree-BST/leetcode-590.py
custergo/study_algo
fe35f747d396f90a9312e9229cf5ab25234cd4bd
[ "Apache-2.0" ]
1
2020-06-15T02:36:38.000Z
2020-06-15T02:36:38.000Z
06.algorithm004-02/week02/06.Tree-BST/leetcode-590.py
custer-go/study_algo
fe35f747d396f90a9312e9229cf5ab25234cd4bd
[ "Apache-2.0" ]
null
null
null
06.algorithm004-02/week02/06.Tree-BST/leetcode-590.py
custer-go/study_algo
fe35f747d396f90a9312e9229cf5ab25234cd4bd
[ "Apache-2.0" ]
1
2019-10-27T12:27:12.000Z
2019-10-27T12:27:12.000Z
# Definition for a Node. class Node(object): def __init__(self, val, children): self.val = val self.children = children class Solution: def postorder(self, root: 'Node') -> List[int]: if root is None: return [] out = [] stack = [root] ...
37.043478
124
0.525822
34016fa905235d8cb210eb9d7bbcb3c4fd4dd8b6
10,060
py
Python
tests/components/hassio/test_ingress.py
mib1185/core
b17d4ac65cde9a27ff6032d70b148792e5eba8df
[ "Apache-2.0" ]
null
null
null
tests/components/hassio/test_ingress.py
mib1185/core
b17d4ac65cde9a27ff6032d70b148792e5eba8df
[ "Apache-2.0" ]
null
null
null
tests/components/hassio/test_ingress.py
mib1185/core
b17d4ac65cde9a27ff6032d70b148792e5eba8df
[ "Apache-2.0" ]
null
null
null
"""The tests for the hassio component.""" from http import HTTPStatus from unittest.mock import MagicMock, patch from aiohttp.hdrs import X_FORWARDED_FOR, X_FORWARDED_HOST, X_FORWARDED_PROTO import pytest from homeassistant.components.hassio.const import X_AUTH_TOKEN @pytest.mark.parametrize( "build_type", ...
32.662338
83
0.635288
e1987b427e86825b40f7e679371c20a2322f3d18
3,992
py
Python
djangox_project/settings.py
MantasReika/djangox
4b073546f381f97ce9adef3e2b65d5ed4af5981c
[ "MIT" ]
null
null
null
djangox_project/settings.py
MantasReika/djangox
4b073546f381f97ce9adef3e2b65d5ed4af5981c
[ "MIT" ]
2
2020-02-12T00:52:51.000Z
2020-06-05T22:01:57.000Z
djangox_project/settings.py
MantasReika/djangox
4b073546f381f97ce9adef3e2b65d5ed4af5981c
[ "MIT" ]
null
null
null
""" Django settings for djangox_project project. Generated by 'django-admin startproject' using Django 2.1.2. For more information on this file, see https://docs.djangoproject.com/en/2.1/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/2.1/ref/settings/ """ impo...
25.265823
91
0.709419
b480e9d398ba29f95739eb8d497967aca6ec6cb3
3,870
py
Python
scipy/linalg/tests/test_matmul_toeplitz.py
Ennosigaeon/scipy
2d872f7cf2098031b9be863ec25e366a550b229c
[ "BSD-3-Clause" ]
9,095
2015-01-02T18:24:23.000Z
2022-03-31T20:35:31.000Z
scipy/linalg/tests/test_matmul_toeplitz.py
Ennosigaeon/scipy
2d872f7cf2098031b9be863ec25e366a550b229c
[ "BSD-3-Clause" ]
11,500
2015-01-01T01:15:30.000Z
2022-03-31T23:07:35.000Z
scipy/linalg/tests/test_matmul_toeplitz.py
Ennosigaeon/scipy
2d872f7cf2098031b9be863ec25e366a550b229c
[ "BSD-3-Clause" ]
5,838
2015-01-05T11:56:42.000Z
2022-03-31T23:21:19.000Z
"""Test functions for linalg.matmul_toeplitz function """ import numpy as np from scipy.linalg import toeplitz, matmul_toeplitz from pytest import raises as assert_raises from numpy.testing import assert_allclose class TestMatmulToeplitz: def setup_method(self): self.rng = np.random.RandomState(42) ...
30.714286
74
0.535401
111a3fdfaab229053566eb626313c6a482413ddb
248
py
Python
temp.py
suvarnak/Pytorch-Project-DAFSL
8539b693a56a219cdc5f0549c146342880ee2447
[ "MIT" ]
null
null
null
temp.py
suvarnak/Pytorch-Project-DAFSL
8539b693a56a219cdc5f0549c146342880ee2447
[ "MIT" ]
null
null
null
temp.py
suvarnak/Pytorch-Project-DAFSL
8539b693a56a219cdc5f0549c146342880ee2447
[ "MIT" ]
null
null
null
class Palindrome: @staticmethod def is_palindrome(word): reverse = word[::-1] if reverse.upper() == word.upper(): return True else: return False word = input() print(Palindrome.is_palindrome(word))
24.8
42
0.596774
b903c6fbf7ea2ada1d68f54f534d047b5edbc267
5,028
py
Python
tests/packages/test_dependency.py
hroncok/poetry-core
bd3ef48d2873eb8a81600d011712edbbea122e58
[ "MIT" ]
null
null
null
tests/packages/test_dependency.py
hroncok/poetry-core
bd3ef48d2873eb8a81600d011712edbbea122e58
[ "MIT" ]
null
null
null
tests/packages/test_dependency.py
hroncok/poetry-core
bd3ef48d2873eb8a81600d011712edbbea122e58
[ "MIT" ]
null
null
null
import pytest from poetry.core.packages import Dependency from poetry.core.packages import Package def test_accepts(): dependency = Dependency("A", "^1.0") package = Package("A", "1.4") assert dependency.accepts(package) def test_accepts_prerelease(): dependency = Dependency("A", "^1.0", allows_pr...
26.887701
86
0.615553
d0221cdd657afeae4fadb9bc126dfec30845205e
8,671
py
Python
docs/conf.py
petrolpost/dicompyler-core
887d41800630ede8e9118ce873a46130c83a4237
[ "BSD-3-Clause" ]
null
null
null
docs/conf.py
petrolpost/dicompyler-core
887d41800630ede8e9118ce873a46130c83a4237
[ "BSD-3-Clause" ]
null
null
null
docs/conf.py
petrolpost/dicompyler-core
887d41800630ede8e9118ce873a46130c83a4237
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- # # dicompyler-core documentation build configuration file, created by # sphinx-quickstart on Tue Jul 9 22:26:36 2013. # # This file is execfile()d with the current directory set to its # containing dir. # # Note that not all possible configuration values are present in th...
30.857651
76
0.714796
e1d06db681644ce2cb6d8ba7c23283e040156f74
13,786
py
Python
src/python/turicreate/toolkits/activity_classifier/_tf_model_architecture.py
sirahd/turicreate
386efa4eb5033573ee9120704a8c88a9a6151133
[ "BSD-3-Clause" ]
null
null
null
src/python/turicreate/toolkits/activity_classifier/_tf_model_architecture.py
sirahd/turicreate
386efa4eb5033573ee9120704a8c88a9a6151133
[ "BSD-3-Clause" ]
3
2022-02-15T04:42:24.000Z
2022-03-12T01:05:15.000Z
src/python/turicreate/toolkits/activity_classifier/_tf_model_architecture.py
sirahd/turicreate
386efa4eb5033573ee9120704a8c88a9a6151133
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- # Copyright © 2019 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 from __future__ import print_function as _ from __future__ import division as _ from...
45.348684
155
0.638256
bb43f416d8aeeddde09885b0a46ac6bf4e7be1d1
725
py
Python
OneCent/story/views.py
tobias-fyi/challenges
4b4d2a8c5e24a51e33d78ab4191ebb843b788aca
[ "MIT" ]
null
null
null
OneCent/story/views.py
tobias-fyi/challenges
4b4d2a8c5e24a51e33d78ab4191ebb843b788aca
[ "MIT" ]
null
null
null
OneCent/story/views.py
tobias-fyi/challenges
4b4d2a8c5e24a51e33d78ab4191ebb843b788aca
[ "MIT" ]
null
null
null
from django.views.generic import TemplateView, ListView, DetailView from django.core.paginator import Paginator from .models import Story class StoryIndexView(ListView): template_name = "index.html" model = Story context_object_name = "stories" paginate_by = 4 class StoryDetailView(DetailView): ...
25
67
0.695172
d3ace6d4e7b76fdc239e981e61430ce0e2397b57
2,552
py
Python
markSampleLabelFromPhone.py
isoundy000/FGJumperMaster
10063f167fbba7d9e16375965f7320a3966169f6
[ "Apache-2.0" ]
null
null
null
markSampleLabelFromPhone.py
isoundy000/FGJumperMaster
10063f167fbba7d9e16375965f7320a3966169f6
[ "Apache-2.0" ]
null
null
null
markSampleLabelFromPhone.py
isoundy000/FGJumperMaster
10063f167fbba7d9e16375965f7320a3966169f6
[ "Apache-2.0" ]
1
2019-06-23T12:13:01.000Z
2019-06-23T12:13:01.000Z
''' 从USB摄像头中读取图片并标注 保存标注文件 ''' import cv2 import numpy from SampleLabel import SampleLabel # from glob import glob import os from ADBHelper import ADBHelper import math save_path = "./samples/label/" label_filename = "./samples/label/labels.txt" slabel = SampleLabel(save_path, label_filename) adb = ADBHelper(1080,...
21.811966
90
0.525078
ee109e4d2b348c3c6211a94b836eef17969ed5c1
484
py
Python
bkmus_api/bkmus_image.py
mbakija/bkmuseum_xstitch_bot
07de75a23d48fafae34ebda60a82ba9973386be1
[ "MIT" ]
1
2020-11-24T05:47:55.000Z
2020-11-24T05:47:55.000Z
bkmus_api/bkmus_image.py
mbakija/bkmuseum_xstitch_bot
07de75a23d48fafae34ebda60a82ba9973386be1
[ "MIT" ]
null
null
null
bkmus_api/bkmus_image.py
mbakija/bkmuseum_xstitch_bot
07de75a23d48fafae34ebda60a82ba9973386be1
[ "MIT" ]
null
null
null
# print end of URL for image # (some objects do not have an image, those are noted as NONE) # the results are appended to https://d1lfxha3ugu3d4.cloudfront.net/images/opencollection/objects/size4/ # which is the URL for the large-size image the museum makes available to download import json f = open('BKMobjects.json'...
37.230769
114
0.756198
f12a7b471fce43dab6f7226b5ed488a86ddcf65f
18,008
py
Python
Convlab/convlab/modules/e2e/multiwoz/Transformer/util.py
Victorwz/tod_as_nlg
dd23adac15e41d6aeca60b31580d97c358f5fed3
[ "MIT" ]
6
2021-09-07T14:30:22.000Z
2021-12-29T05:54:18.000Z
Convlab/convlab/modules/e2e/multiwoz/Transformer/util.py
Victorwz/tod_as_nlg
dd23adac15e41d6aeca60b31580d97c358f5fed3
[ "MIT" ]
null
null
null
Convlab/convlab/modules/e2e/multiwoz/Transformer/util.py
Victorwz/tod_as_nlg
dd23adac15e41d6aeca60b31580d97c358f5fed3
[ "MIT" ]
1
2021-09-02T15:12:18.000Z
2021-09-02T15:12:18.000Z
# Copyright (c) 2019-present, HuggingFace Inc. # All rights reserved. This source code is licensed under the BSD-style license found in the # LICENSE file in the root directory of this source tree. import json import logging import os import tarfile import tempfile import random import torch import copy import re impor...
43.08134
204
0.46335
0446106613041503146a815385991025df2f4e10
118
py
Python
recipe/test_imports_future.py
cryoem/eman-dependencies-feedstock
74a2cc4d3abcec69dc3fff20761ce0191192eaea
[ "BSD-3-Clause" ]
null
null
null
recipe/test_imports_future.py
cryoem/eman-dependencies-feedstock
74a2cc4d3abcec69dc3fff20761ce0191192eaea
[ "BSD-3-Clause" ]
2
2020-04-28T13:38:02.000Z
2020-09-07T10:57:03.000Z
recipe/test_imports_future.py
cryoem/eman-dependencies-feedstock
74a2cc4d3abcec69dc3fff20761ce0191192eaea
[ "BSD-3-Clause" ]
2
2020-04-28T13:32:13.000Z
2020-09-07T10:44:19.000Z
from __future__ import division from __future__ import print_function from __future__ import print_function, division
29.5
47
0.881356
6f60afa318de36f9992c1a644717c06a0fde9247
5,332
py
Python
tlslite/integration/xmlrpctransport.py
tomato42/tlslite-1
4631799cdfac8f90b567d455e698b05d7a917599
[ "Unlicense" ]
121
2015-05-28T18:14:37.000Z
2020-11-18T11:23:59.000Z
tlslite/integration/xmlrpctransport.py
tomato42/tlslite-1
4631799cdfac8f90b567d455e698b05d7a917599
[ "Unlicense" ]
340
2015-05-28T15:56:11.000Z
2020-11-04T11:40:45.000Z
tlslite/integration/xmlrpctransport.py
tomato42/tlslite-1
4631799cdfac8f90b567d455e698b05d7a917599
[ "Unlicense" ]
60
2015-07-10T20:07:02.000Z
2020-10-22T08:04:20.000Z
# Authors: # Trevor Perrin # Kees Bos - Fixes for compatibility with different Python versions # Martin von Loewis - python 3 port # # See the LICENSE file for legal information regarding use of this file. """TLS Lite + xmlrpclib.""" try: import xmlrpclib import httplib except ImportError: # Pytho...
38.359712
77
0.658477
2c16b061081f69a141cda7bad67ffd9f2ae85deb
65,013
py
Python
chia/full_node/weight_proof.py
keypool-com/chia-blockchain
8c96651a78a0ef6694197c0070f4631fc4b1bf45
[ "Apache-2.0" ]
null
null
null
chia/full_node/weight_proof.py
keypool-com/chia-blockchain
8c96651a78a0ef6694197c0070f4631fc4b1bf45
[ "Apache-2.0" ]
null
null
null
chia/full_node/weight_proof.py
keypool-com/chia-blockchain
8c96651a78a0ef6694197c0070f4631fc4b1bf45
[ "Apache-2.0" ]
null
null
null
import asyncio import dataclasses import logging import math import random from concurrent.futures.process import ProcessPoolExecutor from typing import Dict, List, Optional, Tuple from chia.consensus.block_header_validation import validate_finished_header_block from chia.consensus.block_record import BlockRecord from...
42.243665
120
0.673096
7a06c8456fda45552251d6cd71403fc5fe62f9c3
4,094
py
Python
aws_util.py
jlarrieux/CryptoPriceLambdaCommons
8b0cfb00c596125be49788f2d3567b78c4153dc7
[ "Apache-2.0" ]
null
null
null
aws_util.py
jlarrieux/CryptoPriceLambdaCommons
8b0cfb00c596125be49788f2d3567b78c4153dc7
[ "Apache-2.0" ]
null
null
null
aws_util.py
jlarrieux/CryptoPriceLambdaCommons
8b0cfb00c596125be49788f2d3567b78c4153dc7
[ "Apache-2.0" ]
null
null
null
# Copyright 2020 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in wri...
36.230088
115
0.73107
89dee17c4425d8328fdf12e5bf406a08dc3523df
1,402
py
Python
run.py
dddaga/word-tree
ed6c59c16feee04d5c6003b3f5f4df68e6808e04
[ "MIT" ]
null
null
null
run.py
dddaga/word-tree
ed6c59c16feee04d5c6003b3f5f4df68e6808e04
[ "MIT" ]
null
null
null
run.py
dddaga/word-tree
ed6c59c16feee04d5c6003b3f5f4df68e6808e04
[ "MIT" ]
1
2020-12-02T09:07:06.000Z
2020-12-02T09:07:06.000Z
import threading import queue from src.services.train import train_context from src.services.get_corpus import corpus_generator, get_chunk from config import THREADS, CHUNK_SIZE, CORPUS_PATH import time train_queue = queue.Queue() chuck_count = 0 def train_chunk(): while True: train_context(train_queue.g...
25.490909
68
0.623395
0579f892c43a85c0d462b817e262c875605b6466
766
py
Python
playground/posts/migrations/0001_initial.py
AsheKR/django-quill-editor
3a629d83629c30bccf18065cb207213e14f6d138
[ "MIT" ]
125
2020-03-17T11:41:18.000Z
2022-03-29T15:28:16.000Z
playground/posts/migrations/0001_initial.py
AsheKR/django-quill-editor
3a629d83629c30bccf18065cb207213e14f6d138
[ "MIT" ]
70
2020-03-17T09:39:36.000Z
2022-03-17T21:34:12.000Z
playground/posts/migrations/0001_initial.py
AsheKR/django-quill-editor
3a629d83629c30bccf18065cb207213e14f6d138
[ "MIT" ]
33
2020-04-04T20:49:58.000Z
2022-03-07T23:09:24.000Z
# Generated by Django 3.1.7 on 2021-03-22 03:15 from django.db import migrations, models import django_quill.fields class Migration(migrations.Migration): initial = True dependencies = [] operations = [ migrations.CreateModel( name="QuillPost", fields=[ ...
23.212121
62
0.425587
42e314ab18805175216f81cf9616fe05519be2a9
8,268
py
Python
tests/test_user_model.py
biliGo/flasky
d0de3ed04cd6fc39d5a18db179c16b52c599abdb
[ "MIT" ]
null
null
null
tests/test_user_model.py
biliGo/flasky
d0de3ed04cd6fc39d5a18db179c16b52c599abdb
[ "MIT" ]
3
2020-03-24T15:59:24.000Z
2021-02-02T21:47:42.000Z
tests/test_user_model.py
biliGo/flasky
d0de3ed04cd6fc39d5a18db179c16b52c599abdb
[ "MIT" ]
null
null
null
import unittest import time from datetime import datetime from app import create_app, db from app.models import User, AnonymousUser, Role, Permission, Follow class UserModelTestCase(unittest.TestCase): def setUp(self): self.app = create_app('testing') self.app_context = self.app.app_context() ...
37.076233
75
0.627963
f0438dca3a8b38b1f82e2154b1e3ff3381572211
6,292
py
Python
asset/onboard_VS_optitrack.py
shushuai3/multi-robot-localization
9d7b45979cc21ea11def44e7bc51613e7599a768
[ "MIT" ]
8
2021-08-18T15:03:26.000Z
2022-03-18T20:43:42.000Z
asset/onboard_VS_optitrack.py
shushuai3/multi-robot-localization
9d7b45979cc21ea11def44e7bc51613e7599a768
[ "MIT" ]
null
null
null
asset/onboard_VS_optitrack.py
shushuai3/multi-robot-localization
9d7b45979cc21ea11def44e7bc51613e7599a768
[ "MIT" ]
6
2020-03-26T14:21:39.000Z
2022-01-13T22:14:14.000Z
import logging import time from threading import Timer import cflib.crtp # noqa from cflib.crazyflie import Crazyflie from cflib.crazyflie.log import LogConfig # Only output errors from the logging framework logging.basicConfig(level=logging.ERROR) from NatNetClient import NatNetClient import numpy as np pos2 = np.z...
42.513514
173
0.656866
9df2af6a5f79fa04f0a2edbd5b2d65a3b0277bc3
511
py
Python
Source/Utility/python-twitter/twitter/error.py
guissy/StockRecommendSystem
2e8694d0bb2ceaa42585ee7414564d921cc5a854
[ "MIT" ]
137
2017-06-13T06:54:40.000Z
2022-03-30T22:19:38.000Z
Source/Utility/python-twitter/twitter/error.py
guissy/StockRecommendSystem
2e8694d0bb2ceaa42585ee7414564d921cc5a854
[ "MIT" ]
27
2017-04-01T15:06:36.000Z
2021-02-08T20:19:58.000Z
Source/Utility/python-twitter/twitter/error.py
guissy/StockRecommendSystem
2e8694d0bb2ceaa42585ee7414564d921cc5a854
[ "MIT" ]
61
2017-07-03T01:30:36.000Z
2022-01-11T08:50:44.000Z
#!/usr/bin/env python class TwitterError(Exception): """Base class for Twitter errors""" @property def message(self): '''Returns the first argument used to construct this error.''' return self.args[0] class PythonTwitterDeprecationWarning(DeprecationWarning): """Base class for pytho...
24.333333
74
0.7182
0b0ec302d72b1323ebd0ff65e0e828d957753366
307
py
Python
datatableview/__init__.py
milu-buet/django-datatable-view
adb3e9e437058e51fdb71ce5a9cedf792ca82c53
[ "Apache-2.0" ]
null
null
null
datatableview/__init__.py
milu-buet/django-datatable-view
adb3e9e437058e51fdb71ce5a9cedf792ca82c53
[ "Apache-2.0" ]
null
null
null
datatableview/__init__.py
milu-buet/django-datatable-view
adb3e9e437058e51fdb71ce5a9cedf792ca82c53
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- __name__ = 'datatableview' __author__ = 'Tim Valenta' __version_info__ = (0, 8, 0) __version__ = '.'.join(map(str, __version_info__)) __date__ = '2013/11/14 2:00:00 PM' __credits__ = ['Tim Valenta', 'Steven Klass'] __license__ = 'See the file LICENSE.txt for licensing information.'
34.111111
67
0.703583
2210f27f7b817955a0b4de2d8698fbb20f566838
174
py
Python
accounts/models.py
LokeshBolisetty/Webapp-django
51fd6d3224dfd4295e7688b8fa6c88f1c11dfe9a
[ "MIT" ]
null
null
null
accounts/models.py
LokeshBolisetty/Webapp-django
51fd6d3224dfd4295e7688b8fa6c88f1c11dfe9a
[ "MIT" ]
null
null
null
accounts/models.py
LokeshBolisetty/Webapp-django
51fd6d3224dfd4295e7688b8fa6c88f1c11dfe9a
[ "MIT" ]
null
null
null
from django.db import models #This app uses the django User table itself. If that is not something required then models for accounts can be made here with required fields.
58
142
0.798851
0711f66b783dd09d729edb92b24abf78ea9a2df2
6,560
py
Python
dashboard/utils.py
siqueiralex/SistemaComissaoVoluntario
1a4ba8fd37d5182156e7bb4c4204845df2707fd1
[ "MIT" ]
null
null
null
dashboard/utils.py
siqueiralex/SistemaComissaoVoluntario
1a4ba8fd37d5182156e7bb4c4204845df2707fd1
[ "MIT" ]
null
null
null
dashboard/utils.py
siqueiralex/SistemaComissaoVoluntario
1a4ba8fd37d5182156e7bb4c4204845df2707fd1
[ "MIT" ]
null
null
null
import xlwt from openpyxl import Workbook from django.contrib.auth.decorators import login_required from django.utils.formats import date_format import datetime from .sheet_builder import SheetBuilder, NewSheetBuilder from projetos.models import Atividade, Cronograma, Unidade, Vaga from projetos.decorators import * ...
34.34555
272
0.590396
40e3ebad0df9824ad905e3752dbe6bd465662f4a
1,746
py
Python
scripts/instance_google_sheet.py
rniksch/openshift-on-aws
33663a816c07a9f362a586bc960c7a054df3f1a5
[ "Apache-2.0" ]
null
null
null
scripts/instance_google_sheet.py
rniksch/openshift-on-aws
33663a816c07a9f362a586bc960c7a054df3f1a5
[ "Apache-2.0" ]
null
null
null
scripts/instance_google_sheet.py
rniksch/openshift-on-aws
33663a816c07a9f362a586bc960c7a054df3f1a5
[ "Apache-2.0" ]
5
2018-11-08T00:51:22.000Z
2021-06-08T01:47:02.000Z
#!/usr/bin/python # Used this resources to build this simple script # https://boto3.readthedocs.io/en/latest/guide/ec2-example-managing-instances.html # https://pygsheets.readthedocs.io/en/latest/ # This library below was extremely slow removed for pygsheets # http://gspread.readthedocs.io/en/latest/ # https://www.t...
28.622951
115
0.613402
75bd8d1632bbf85554c0e11be2664d83adb2fbca
3,315
py
Python
src/models/export_model_to_js_h5.py
morpheus-project/morpheus-deblend
a63b9e27de3be22bb732509bbdf6dc84ba066e92
[ "MIT" ]
1
2022-01-14T13:44:27.000Z
2022-01-14T13:44:27.000Z
src/models/export_model_to_js_h5.py
morpheus-project/morpheus-deblend
a63b9e27de3be22bb732509bbdf6dc84ba066e92
[ "MIT" ]
null
null
null
src/models/export_model_to_js_h5.py
morpheus-project/morpheus-deblend
a63b9e27de3be22bb732509bbdf6dc84ba066e92
[ "MIT" ]
null
null
null
# MIT License # Copyright 2020 Ryan Hausen # # Permission is hereby granted, free of charge, to any person obtaining a copy of # this software and associated documentation files (the "Software"), to deal in # the Software without restriction, including without limitation the rights to # use, copy, modify, merge, publis...
30.412844
82
0.720362
b975140a6a8d7165dc725bf77f81ea174cdaa8d0
1,204
py
Python
scanmatcher/launch/mapping_robot.launch.py
jediofgever/lidarslam_ros2
91d4f1049193d98876fbca8bd74c40d20df2d229
[ "BSD-2-Clause" ]
null
null
null
scanmatcher/launch/mapping_robot.launch.py
jediofgever/lidarslam_ros2
91d4f1049193d98876fbca8bd74c40d20df2d229
[ "BSD-2-Clause" ]
null
null
null
scanmatcher/launch/mapping_robot.launch.py
jediofgever/lidarslam_ros2
91d4f1049193d98876fbca8bd74c40d20df2d229
[ "BSD-2-Clause" ]
null
null
null
import os import launch import launch_ros.actions from ament_index_python.packages import get_package_share_directory def generate_launch_description(): mapping_param_dir = launch.substitutions.LaunchConfiguration( 'mapping_param_dir', default=os.path.join( get_package_share_director...
30.871795
78
0.634551
378642773d087d118d3fb9641e2c12e0c6fd0c00
13,722
py
Python
GANs/GAN_v4.3.py
jessvb/3d_world_procedural_generation
44468f4267ccb378de90efb53d6c52a204cd6e25
[ "MIT" ]
7
2019-01-29T21:20:01.000Z
2020-11-23T01:03:04.000Z
GANs/GAN_v4.3.py
jessvb/3d_world_procedural_generation
44468f4267ccb378de90efb53d6c52a204cd6e25
[ "MIT" ]
null
null
null
GANs/GAN_v4.3.py
jessvb/3d_world_procedural_generation
44468f4267ccb378de90efb53d6c52a204cd6e25
[ "MIT" ]
1
2021-07-12T10:43:29.000Z
2021-07-12T10:43:29.000Z
# v4.3 changes all tf.nn.relu activations to tf.nn.leaky_relu # and uses values between 1 and 2 (instead of -1 and 1), two different alphas, image resize upscaling and 256x256px images # and trains forever instead of just for #iterations # TODO: things to try: # - change the "kernel size" of the layers to be the same ...
46.04698
122
0.625929
92800cf0c586918525654efae8c23f5f0308826c
155
py
Python
pylibup/cli/__init__.py
trisongz/pylibup
456c082032cb14e7b2f12f115b4033237a0b1d1f
[ "MIT" ]
null
null
null
pylibup/cli/__init__.py
trisongz/pylibup
456c082032cb14e7b2f12f115b4033237a0b1d1f
[ "MIT" ]
null
null
null
pylibup/cli/__init__.py
trisongz/pylibup
456c082032cb14e7b2f12f115b4033237a0b1d1f
[ "MIT" ]
null
null
null
from . import base from . import app from .base import baseCli from .app import repoCli, stateCli baseCli.add_typer(repoCli) baseCli.add_typer(stateCli)
17.222222
34
0.793548
b0cc334da82a8d8d2afbe100ce002f7948f2cc37
4,938
py
Python
tools/globus/demuxer.py
globusgenomics/galaxy
7caf74d9700057587b3e3434c64e82c5b16540f1
[ "CC-BY-3.0" ]
1
2021-02-05T13:19:58.000Z
2021-02-05T13:19:58.000Z
tools/globus/demuxer.py
globusgenomics/galaxy
7caf74d9700057587b3e3434c64e82c5b16540f1
[ "CC-BY-3.0" ]
null
null
null
tools/globus/demuxer.py
globusgenomics/galaxy
7caf74d9700057587b3e3434c64e82c5b16540f1
[ "CC-BY-3.0" ]
null
null
null
#!/usr/bin/env python """Creates a simple single file dataset from a composite CGA dataset """ import json from optparse import OptionParser import os import re import sys def parse_lane_and_part_numbers(path): # parse lane number and part number out of: # the reads file name reads_GS21910-FS3-L04_004.tsv.b...
37.694656
110
0.59923
cb3e16ea5d83574e2aefa4131e42b9c2ea8b5d9e
314
py
Python
tests/conftest.py
stevenkbennett/stko
b416fccb3ca849151e27846b6b2d5516f5464190
[ "MIT" ]
8
2020-06-09T16:59:20.000Z
2022-03-18T23:05:38.000Z
tests/conftest.py
stevenkbennett/stko
b416fccb3ca849151e27846b6b2d5516f5464190
[ "MIT" ]
60
2020-05-22T13:38:54.000Z
2022-03-25T09:34:22.000Z
tests/conftest.py
stevenkbennett/stko
b416fccb3ca849151e27846b6b2d5516f5464190
[ "MIT" ]
4
2020-12-02T10:39:54.000Z
2021-03-01T18:34:07.000Z
def pytest_addoption(parser): parser.addoption('--macromodel_path', default='') def pytest_generate_tests(metafunc): if 'macromodel_path' in metafunc.fixturenames: macromodel_path = metafunc.config.getoption('macromodel_path') metafunc.parametrize('macromodel_path', [macromodel_path])
28.545455
70
0.748408
a479ce7f4028005a16cb8fc8e8dd376c1ce61fc4
515
py
Python
api/management/commands/drown_negativity.py
eiling/SchoolIdolAPI
a05980fdb33b143dbe2febfc1ad6cf723f025c8d
[ "Apache-2.0" ]
65
2017-12-29T12:28:11.000Z
2022-03-15T06:42:26.000Z
api/management/commands/drown_negativity.py
eiling/SchoolIdolAPI
a05980fdb33b143dbe2febfc1ad6cf723f025c8d
[ "Apache-2.0" ]
31
2017-12-18T02:03:09.000Z
2022-01-13T00:43:35.000Z
api/management/commands/drown_negativity.py
eiling/SchoolIdolAPI
a05980fdb33b143dbe2febfc1ad6cf723f025c8d
[ "Apache-2.0" ]
7
2018-08-27T15:11:01.000Z
2021-08-16T05:15:13.000Z
from django.core.management.base import BaseCommand, CommandError from api import models from django.utils import timezone from dateutil.relativedelta import relativedelta from django.db.models import Q, F class Command(BaseCommand): can_import_settings = True def handle(self, *args, **options): model...
42.916667
207
0.782524
7d0a8a8084b1025ff55186c2725f2130e936659c
3,065
py
Python
files/Snake_game.py
shubham-0927/python-games-with-tutle-library
ca1604eda7a361d0072b8aea4b0f4ad1e350f10c
[ "MIT" ]
2
2022-01-23T13:30:36.000Z
2022-01-26T16:09:53.000Z
files/Snake_game.py
shubham-0927/python-games-with-tutle-library
ca1604eda7a361d0072b8aea4b0f4ad1e350f10c
[ "MIT" ]
null
null
null
files/Snake_game.py
shubham-0927/python-games-with-tutle-library
ca1604eda7a361d0072b8aea4b0f4ad1e350f10c
[ "MIT" ]
null
null
null
import turtle import time import random delay=0.1 scr = turtle.Screen() scr.title("Snake game") scr.bgcolor("black") scr.setup(width=600, height=600) scr.tracer(0) brd=turtle.Turtle() brd.penup() brd.setposition(-300,-300) brd.color("white") brd.pendown() brd.pensize(4) for j in range(4): brd.fo...
22.372263
102
0.543556
e0aefbce6cd56f73683817e10a8bf3f3c7b9eb74
190
py
Python
telegram_bot_calendar/wmonth.py
whitebaronnb/python-telegram-bot-calendar
d6ea017539fa4e4a2710e408d55c48b4b46d0037
[ "MIT" ]
44
2020-08-05T20:19:45.000Z
2022-03-10T22:29:19.000Z
telegram_bot_calendar/wmonth.py
whitebaronnb/python-telegram-bot-calendar
d6ea017539fa4e4a2710e408d55c48b4b46d0037
[ "MIT" ]
6
2021-01-08T16:07:24.000Z
2022-02-15T18:39:51.000Z
telegram_bot_calendar/wmonth.py
whitebaronnb/python-telegram-bot-calendar
d6ea017539fa4e4a2710e408d55c48b4b46d0037
[ "MIT" ]
20
2020-09-08T16:19:22.000Z
2022-03-14T15:39:56.000Z
from telegram_bot_calendar.base import DAY from telegram_bot_calendar.detailed import DetailedTelegramCalendar class WMonthTelegramCalendar(DetailedTelegramCalendar): first_step = DAY
27.142857
67
0.868421
2ba1b48561d3fc6e31ce5c672fae70166670480f
762
py
Python
sig-backend/server.py
antonioalfa22/sig-playas-asturias
3cc087d44a0dc7cdc932adbc9e877a4b53fcff93
[ "MIT" ]
1
2020-12-01T19:53:14.000Z
2020-12-01T19:53:14.000Z
sig-backend/server.py
antonioalfa22/sig-playas-asturias
3cc087d44a0dc7cdc932adbc9e877a4b53fcff93
[ "MIT" ]
null
null
null
sig-backend/server.py
antonioalfa22/sig-playas-asturias
3cc087d44a0dc7cdc932adbc9e877a4b53fcff93
[ "MIT" ]
null
null
null
"""App entry point.""" import unittest import argparse from api import create_app def run(app): app.run(host='0.0.0.0', port=5000) def test(): """Runs the unit tests.""" tests = unittest.TestLoader().discover('./api/test', pattern='test*.py') result = unittest.TextTestRunner(verbosity=2).run(tests)...
19.538462
76
0.628609
0ff2e5a055b2e96b4c7f1ecdd2283cf14b15ba1a
7,756
py
Python
Tests/Methods/Slot/test_HoleM53_meth.py
carbon-drive/pyleecan
e89d4fe97f23f6182c19127d2c6a2133614e169d
[ "Apache-2.0" ]
1
2021-07-08T01:27:24.000Z
2021-07-08T01:27:24.000Z
Tests/Methods/Slot/test_HoleM53_meth.py
ecs-kev/pyleecan
1faedde4b24acc6361fa1fdd4e980eaec4ca3a62
[ "Apache-2.0" ]
null
null
null
Tests/Methods/Slot/test_HoleM53_meth.py
ecs-kev/pyleecan
1faedde4b24acc6361fa1fdd4e980eaec4ca3a62
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- import pytest from pyleecan.Classes.Segment import Segment from pyleecan.Classes.SurfLine import SurfLine from pyleecan.Classes.LamHole import LamHole from pyleecan.Classes.HoleM53 import HoleM53 from pyleecan.Classes.Magnet import Magnet from numpy import exp, arcsin, ndarray, pi from pyleec...
29.716475
88
0.556601
c58bf5d48292c467cb4d7a62696670d744994bde
11,310
py
Python
test/test_languages/testPython.py
Wonshtrum/lizard
c900ecc9b09c0de27e1f15f50ad77115fc0ef0cb
[ "MIT" ]
1,255
2015-01-07T20:24:45.000Z
2022-03-31T02:39:50.000Z
test/test_languages/testPython.py
Wonshtrum/lizard
c900ecc9b09c0de27e1f15f50ad77115fc0ef0cb
[ "MIT" ]
293
2015-01-05T14:31:16.000Z
2022-03-24T18:12:16.000Z
test/test_languages/testPython.py
Wonshtrum/lizard
c900ecc9b09c0de27e1f15f50ad77115fc0ef0cb
[ "MIT" ]
217
2015-01-07T20:24:49.000Z
2022-03-30T19:20:21.000Z
import unittest import inspect from ..testHelpers import get_python_function_list_with_extension from lizard_ext.lizardnd import LizardExtension as NestDepth from lizard_languages.python import PythonReader def get_python_function_list(source_code): return get_python_function_list_with_extension(source_code, Nest...
36.720779
92
0.603271
32f0039d407b46ae4505a7df30595ebca1d257c4
1,896
py
Python
docs/samples/explanation/art/mnist/train_model.py
pydemia/kfserving
a0a52f8e7b97276b89393447524c78f2b702c257
[ "Apache-2.0" ]
null
null
null
docs/samples/explanation/art/mnist/train_model.py
pydemia/kfserving
a0a52f8e7b97276b89393447524c78f2b702c257
[ "Apache-2.0" ]
635
2021-01-29T07:06:06.000Z
2022-03-31T09:09:20.000Z
docs/samples/explanation/art/mnist/train_model.py
pydemia/kfserving
a0a52f8e7b97276b89393447524c78f2b702c257
[ "Apache-2.0" ]
1
2019-05-08T18:03:26.000Z
2019-05-08T18:03:26.000Z
import warnings import matplotlib.pyplot as plt from sklearn.datasets import fetch_openml from sklearn.exceptions import ConvergenceWarning from sklearn.neural_network import MLPClassifier import joblib import numpy as np from aix360.datasets import MNISTDataset data = MNISTDataset() X_train_h, X_test_h = data.test...
32.689655
79
0.727321
3e6b07c8b9a7c28064954490ffd94a7f9f5cd503
2,905
py
Python
src/accounts/models.py
NestorMonroy/GreatKart
c417faed7e1ec430fd676b58f618cb66e7c07785
[ "MIT" ]
null
null
null
src/accounts/models.py
NestorMonroy/GreatKart
c417faed7e1ec430fd676b58f618cb66e7c07785
[ "MIT" ]
null
null
null
src/accounts/models.py
NestorMonroy/GreatKart
c417faed7e1ec430fd676b58f618cb66e7c07785
[ "MIT" ]
null
null
null
from django.db import models from django.contrib.auth.models import AbstractBaseUser, BaseUserManager # Normal user class MyAccountManager(BaseUserManager): def create_user(self, first_name, last_name, username, email, password=None): if not email: raise ValueError("User must have an email add...
32.277778
81
0.68296
16d2fa3474befddfa2ff332c11cd3b8df5835740
752
py
Python
Electron_configuration.py
AndreasFlensmark/Learning-python
7023b787a16869ae6c2a6150987e0433b67b1057
[ "Unlicense" ]
null
null
null
Electron_configuration.py
AndreasFlensmark/Learning-python
7023b787a16869ae6c2a6150987e0433b67b1057
[ "Unlicense" ]
null
null
null
Electron_configuration.py
AndreasFlensmark/Learning-python
7023b787a16869ae6c2a6150987e0433b67b1057
[ "Unlicense" ]
null
null
null
import math # Calculates the electron configuration of atoms Atomic_number =____ # number of electrons o_name = ['s', 'p', 'd', 'f', 'g'] o_value = [2, 6, 10, 14, 18] output_string = "" end_period = 1 while Atomic_number > 0: for i in range(math.floor((end_period-1)/2), -1, -1): if(Atomic_number > o...
30.08
78
0.511968
6ad78620795fd010a1c78cb05caa02b5323d97a0
888
py
Python
Components/student/migrations/0013_welcomepage.py
iamTanTan/E-Learning_Lab_Spring_2021
e426ba982cc5044510eb1d8b80b377cb0bd5407a
[ "MIT" ]
2
2021-01-29T22:35:28.000Z
2021-05-13T23:35:54.000Z
Components/student/migrations/0013_welcomepage.py
iamTanTan/E-Learning_Lab_Spring_2021
e426ba982cc5044510eb1d8b80b377cb0bd5407a
[ "MIT" ]
8
2021-03-19T11:24:23.000Z
2022-03-12T00:57:13.000Z
Components/student/migrations/0013_welcomepage.py
iamTanTan/E-Learning_Lab_Spring_2021
e426ba982cc5044510eb1d8b80b377cb0bd5407a
[ "MIT" ]
1
2021-09-11T15:00:09.000Z
2021-09-11T15:00:09.000Z
# Generated by Django 3.0.5 on 2020-06-12 22:04 import ckeditor_uploader.fields from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('courses', '0005_auto_20200612_1421'), ('student', '0012_auto_20200612_1358'), ] ...
34.153846
162
0.637387
22cce23d3e5a86b5627faec0d82ff7b7d5dfeb0e
1,100
py
Python
portal/trash/migrations/versions/84d75343fc9d_.py
jeremybusk/demoflaskpgsqlnginxdocker
e76a5b4eda7034f60f51277da5bdd18decce740b
[ "MIT" ]
null
null
null
portal/trash/migrations/versions/84d75343fc9d_.py
jeremybusk/demoflaskpgsqlnginxdocker
e76a5b4eda7034f60f51277da5bdd18decce740b
[ "MIT" ]
null
null
null
portal/trash/migrations/versions/84d75343fc9d_.py
jeremybusk/demoflaskpgsqlnginxdocker
e76a5b4eda7034f60f51277da5bdd18decce740b
[ "MIT" ]
null
null
null
"""empty message Revision ID: 84d75343fc9d Revises: a4fe05917039 Create Date: 2019-05-06 20:44:19.545793 """ from alembic import op import sqlalchemy as sa # revision identifiers, used by Alembic. revision = '84d75343fc9d' down_revision = 'a4fe05917039' branch_labels = None depends_on = None def upgrade(): # ...
31.428571
110
0.700909
c61200f2a604dbd945462a54f61f83cec5654874
3,908
py
Python
compressai/utils/update_model/__main__.py
Chrisa142857/CompressAI
75760096b9700a58d346351251d544050f3418fb
[ "Apache-2.0" ]
1
2021-06-17T12:16:59.000Z
2021-06-17T12:16:59.000Z
compressai/utils/update_model/__main__.py
Chrisa142857/CompressAI
75760096b9700a58d346351251d544050f3418fb
[ "Apache-2.0" ]
null
null
null
compressai/utils/update_model/__main__.py
Chrisa142857/CompressAI
75760096b9700a58d346351251d544050f3418fb
[ "Apache-2.0" ]
1
2020-11-30T12:14:49.000Z
2020-11-30T12:14:49.000Z
# Copyright 2020 InterDigital Communications, 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 ...
27.914286
82
0.680655
3b24e1eb2046e49ecb1d8de5b28b92e23158d36f
7,893
py
Python
mantra/util/ranking.py
durandtibo/mantra-python
a35dfd93f92f7f510a212ee5356ae4d776a27849
[ "MIT" ]
1
2019-02-22T09:48:04.000Z
2019-02-22T09:48:04.000Z
mantra/util/ranking.py
durandtibo/mantra-python
a35dfd93f92f7f510a212ee5356ae4d776a27849
[ "MIT" ]
null
null
null
mantra/util/ranking.py
durandtibo/mantra-python
a35dfd93f92f7f510a212ee5356ae4d776a27849
[ "MIT" ]
null
null
null
import numpy as np from mantra.util.data.labeled_object import LabeledObject from mantra.util.ranking_cython import (average_precision_cython, find_optimum_neg_locations_cython, generate_ranking_from_labels_cython) ####################...
31.197628
176
0.642721
3396646c7c18b74c1a4cd4c8496fb45088f31214
432
py
Python
Project-6/CICD all files/mail.py
Vedant-S/DevOps-Assembly_Line-Project
c173cd49f9b1ef1757ab9444b4072ca5b9c6f1f2
[ "MIT" ]
1
2020-08-15T10:01:53.000Z
2020-08-15T10:01:53.000Z
Project-6/CICD all files/mail.py
Vedant-S/DevOps-Assembly_Line-Project
c173cd49f9b1ef1757ab9444b4072ca5b9c6f1f2
[ "MIT" ]
null
null
null
Project-6/CICD all files/mail.py
Vedant-S/DevOps-Assembly_Line-Project
c173cd49f9b1ef1757ab9444b4072ca5b9c6f1f2
[ "MIT" ]
4
2020-07-10T15:12:31.000Z
2022-01-17T14:15:21.000Z
import smtplib sender_email = "vedantshrivastava466@gmail.com" rec_email = "github@gmail.com" password = "********" message = "Hello Developer, your website has some error......plz check the code. and push again" server = smtplib.SMTP('smtp.gmail.com', 587) server.starttls() server.login(sender_email, password) print...
30.857143
96
0.747685
50fc92a07a9a7ed87ccd361b24ffb90d851aa3c5
3,981
py
Python
pubsub/synth.py
erikwebb/google-cloud-python
288a878e9a07239015c78a193eca1cc15e926127
[ "Apache-2.0" ]
1
2019-01-23T21:54:51.000Z
2019-01-23T21:54:51.000Z
pubsub/synth.py
erikwebb/google-cloud-python
288a878e9a07239015c78a193eca1cc15e926127
[ "Apache-2.0" ]
null
null
null
pubsub/synth.py
erikwebb/google-cloud-python
288a878e9a07239015c78a193eca1cc15e926127
[ "Apache-2.0" ]
1
2020-11-15T11:44:36.000Z
2020-11-15T11:44:36.000Z
# Copyright 2018 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, s...
34.318966
89
0.627481
75112067283ed7d80aa72d67da4bd80db5627dcf
281
py
Python
intmcp/tree/__init__.py
RDLLab/i-ntmcp
63deec3d956d41a0ad4b66a707536893859e4e9f
[ "MIT" ]
null
null
null
intmcp/tree/__init__.py
RDLLab/i-ntmcp
63deec3d956d41a0ad4b66a707536893859e4e9f
[ "MIT" ]
null
null
null
intmcp/tree/__init__.py
RDLLab/i-ntmcp
63deec3d956d41a0ad4b66a707536893859e4e9f
[ "MIT" ]
null
null
null
from typing import Dict, Any from .node import Node from .nst import NestedSearchTree, HistoryDist, NestingLevel, NestedBelief SEARCH_TREES: Dict[str, Any] = { 'NST': NestedSearchTree, **{ c.__name__: c for c in [ NestedSearchTree, ] } }
18.733333
74
0.633452
3b6dd2d44d9f5ce06ce94cf3f29819685be3b073
6,060
py
Python
platformio/package/manager/_update.py
World-Enterprise-Collision/platformio-core
c6e0c4d89d8aeaf6e733e3a668cd500fc7078e15
[ "Apache-2.0" ]
null
null
null
platformio/package/manager/_update.py
World-Enterprise-Collision/platformio-core
c6e0c4d89d8aeaf6e733e3a668cd500fc7078e15
[ "Apache-2.0" ]
null
null
null
platformio/package/manager/_update.py
World-Enterprise-Collision/platformio-core
c6e0c4d89d8aeaf6e733e3a668cd500fc7078e15
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2014-present PlatformIO <contact@platformio.org> # # 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 appli...
35.647059
88
0.573102
9d8921bf50e98ca48ad56df39de136113301ef84
967
py
Python
Python/seven_kyu/descending_order.py
Brokenshire/codewars-projects
db9cd09618b8a7085b0d53ad76f73f9e249b9396
[ "Apache-2.0" ]
1
2019-12-20T04:09:56.000Z
2019-12-20T04:09:56.000Z
Python/seven_kyu/descending_order.py
Brokenshire/codewars-projects
db9cd09618b8a7085b0d53ad76f73f9e249b9396
[ "Apache-2.0" ]
null
null
null
Python/seven_kyu/descending_order.py
Brokenshire/codewars-projects
db9cd09618b8a7085b0d53ad76f73f9e249b9396
[ "Apache-2.0" ]
null
null
null
# Python solution for 'Descending Order' codewars question. # Level: 7 kyu # Tags: Fundamentals, Functions, Control Flow, and Basic Language Features. # Author: Jack Brokenshire # Date: 03/03/2020 import unittest def descending_order(num): """ Your task is to make a function that can take any non-negative in...
31.193548
118
0.720786
70345d616c153e04543665337cefdb1d1d639b83
3,998
py
Python
utils/data/camera_data.py
anviv-lab/robotic-grasping
a186b3f15f2fb98e5862448eda6115f6fe16fb89
[ "BSD-3-Clause" ]
null
null
null
utils/data/camera_data.py
anviv-lab/robotic-grasping
a186b3f15f2fb98e5862448eda6115f6fe16fb89
[ "BSD-3-Clause" ]
null
null
null
utils/data/camera_data.py
anviv-lab/robotic-grasping
a186b3f15f2fb98e5862448eda6115f6fe16fb89
[ "BSD-3-Clause" ]
null
null
null
import numpy as np import torch import os import glob from utils.dataset_processing import image, grasp from .grasp_data import GraspDatasetBase class CameraData(GraspDatasetBase): """ Dataset wrapper for the camera data. """ def __init__(self, file_path, ds_rotate=0, width=640, ...
33.041322
79
0.576038