hexsha
stringlengths
40
40
size
int64
1
1.03M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
239
max_stars_repo_name
stringlengths
5
130
max_stars_repo_head_hexsha
stringlengths
40
78
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
191k
⌀
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
⌀
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
⌀
max_issues_repo_path
stringlengths
3
239
max_issues_repo_name
stringlengths
5
130
max_issues_repo_head_hexsha
stringlengths
40
78
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
3
239
max_forks_repo_name
stringlengths
5
130
max_forks_repo_head_hexsha
stringlengths
40
78
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
105k
⌀
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
⌀
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
⌀
content
stringlengths
1
1.03M
avg_line_length
float64
1
958k
max_line_length
int64
1
1.03M
alphanum_fraction
float64
0
1
7986514b760d823733c9b75ed23ca785b8ef3e6c
173
py
Python
oadenv/lib/python2.7/site-packages/pip-1.3.1-py2.7.egg/pip/commands/unzip.py
isabernardes/Archaeodatabase
86090e8f840d5d202c15906e614d683f8a12d3bc
[ "MIT" ]
12
2015-01-16T11:20:27.000Z
2022-02-04T04:47:24.000Z
vendor/pip-1.3.1/pip/commands/unzip.py
indykish/heroku-buildpack-python
69bdca063fcef34fbac5daaafd1b52d6ac8e2bba
[ "MIT" ]
3
2016-02-16T20:38:45.000Z
2021-03-09T22:29:29.000Z
vendor/pip-1.3.1/pip/commands/unzip.py
indykish/heroku-buildpack-python
69bdca063fcef34fbac5daaafd1b52d6ac8e2bba
[ "MIT" ]
7
2015-01-05T17:21:32.000Z
2021-02-11T13:49:20.000Z
from pip.commands.zip import ZipCommand class UnzipCommand(ZipCommand): """Unzip individual packages.""" name = 'unzip' summary = 'Unzip individual packages.'
21.625
42
0.710983
79865310c128d2a11d1a09c081a20d1354e34f39
2,022
py
Python
tests/test_news.py
alin23/xonsh
e07f31225795df3d52ea0a2557f7f51d24ae9710
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
tests/test_news.py
alin23/xonsh
e07f31225795df3d52ea0a2557f7f51d24ae9710
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
tests/test_news.py
alin23/xonsh
e07f31225795df3d52ea0a2557f7f51d24ae9710
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
# -*- coding: utf-8 -*- """Testing that news entries are well formed.""" import os import re import pytest from xonsh.platform import scandir NEWSDIR = os.path.join(os.path.dirname(os.path.dirname(__file__)), "news") CATEGORIES = frozenset( ["Added", "Changed", "Deprecated", "Removed", "Fixed", "Security"] ) ...
29.735294
80
0.509891
798653c2e68f151632c7cebe9285cd90335a9432
3,832
py
Python
tests/protocols/mqtt/conftest.py
JKRhb/wot-py
3eaa780189b686c82b7dbdea404fd8077bd3c9f9
[ "MIT" ]
24
2019-02-15T09:00:27.000Z
2021-12-23T05:45:03.000Z
tests/protocols/mqtt/conftest.py
JKRhb/wot-py
3eaa780189b686c82b7dbdea404fd8077bd3c9f9
[ "MIT" ]
20
2020-03-17T09:41:51.000Z
2021-07-14T12:29:02.000Z
tests/protocols/mqtt/conftest.py
JKRhb/wot-py
3eaa780189b686c82b7dbdea404fd8077bd3c9f9
[ "MIT" ]
5
2019-10-10T13:38:20.000Z
2021-12-22T14:22:26.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- import logging import random import uuid import pytest import tornado.gen import tornado.ioloop from faker import Faker from wotpy.support import is_mqtt_supported from wotpy.wot.dictionaries.interaction import ActionFragmentDict, EventFragmentDict, PropertyFragmentDict ...
26.797203
106
0.647182
798656db624642a15f898481d93db4b19f7eaa11
951
py
Python
neovim/util.py
tbodt/python-client
debcde029eceef10c5ece1bc430452d17180e62b
[ "Apache-2.0" ]
849
2017-03-28T14:20:24.000Z
2022-03-29T14:10:37.000Z
neovim/util.py
tbodt/python-client
debcde029eceef10c5ece1bc430452d17180e62b
[ "Apache-2.0" ]
113
2017-03-27T14:13:55.000Z
2020-06-21T00:40:21.000Z
neovim/util.py
tbodt/python-client
debcde029eceef10c5ece1bc430452d17180e62b
[ "Apache-2.0" ]
40
2017-05-29T00:37:03.000Z
2022-02-22T09:11:33.000Z
"""Shared utility functions.""" import sys from traceback import format_exception def format_exc_skip(skip, limit=None): """Like traceback.format_exc but allow skipping the first frames.""" type, val, tb = sys.exc_info() for i in range(skip): tb = tb.tb_next return ('\n'.join(format_exception...
28.818182
72
0.631966
79865754fb850fdea8c3d144f1ba44fa8436fcf6
2,676
py
Python
examples/deprecated/liquid_box/openff_simulation.py
jaimergp/openforcefield
0e8bfd55730f585a5215ef3fb836f023c71ebfb0
[ "MIT" ]
null
null
null
examples/deprecated/liquid_box/openff_simulation.py
jaimergp/openforcefield
0e8bfd55730f585a5215ef3fb836f023c71ebfb0
[ "MIT" ]
null
null
null
examples/deprecated/liquid_box/openff_simulation.py
jaimergp/openforcefield
0e8bfd55730f585a5215ef3fb836f023c71ebfb0
[ "MIT" ]
null
null
null
#!/usr/bin/env python import time # Import OpenMM tools from simtk import openmm, unit from simtk.openmm.app import * # Use MDTraj to write simulation trajectories from mdtraj.reporters import NetCDFReporter # Import the SMIRNOFF forcefield engine and some useful tools from openforcefield.typing.engines.smirnoff im...
36.657534
141
0.812033
79865821fadea9cb85b4bdcdeaa8b8c9a25dfd69
328
py
Python
project_based_programming/ch10/file_reader.py
Fly365/py-learn
a7c747af70ca2d6dcf244dc89344fbd26b125987
[ "Apache-2.0" ]
null
null
null
project_based_programming/ch10/file_reader.py
Fly365/py-learn
a7c747af70ca2d6dcf244dc89344fbd26b125987
[ "Apache-2.0" ]
null
null
null
project_based_programming/ch10/file_reader.py
Fly365/py-learn
a7c747af70ca2d6dcf244dc89344fbd26b125987
[ "Apache-2.0" ]
null
null
null
with open('pi_digits.txt') as file_obj: contents = file_obj.read() print(contents) with open('pi_digits.txt') as file_obj: for line in file_obj: print(line.rstrip()) file_name = 'pi_digits.txt' with open(file_name) as file_obj: lines = file_obj.readlines() for line in lines: print(line.r...
21.866667
39
0.682927
7986584e50e388089fb08b5e56ee276691be3e92
470
py
Python
data/scripts/templates/object/static/structure/general/shared_streetlamp_medium_green_style_02.py
obi-two/GameServer
7d37024e2291a97d49522610cd8f1dbe5666afc2
[ "MIT" ]
20
2015-02-23T15:11:56.000Z
2022-03-18T20:56:48.000Z
data/scripts/templates/object/static/structure/general/shared_streetlamp_medium_green_style_02.py
apathyboy/swganh
665128efe9154611dec4cb5efc61d246dd095984
[ "MIT" ]
null
null
null
data/scripts/templates/object/static/structure/general/shared_streetlamp_medium_green_style_02.py
apathyboy/swganh
665128efe9154611dec4cb5efc61d246dd095984
[ "MIT" ]
20
2015-04-04T16:35:59.000Z
2022-03-24T14:54:37.000Z
#### NOTICE: THIS FILE IS AUTOGENERATED #### MODIFICATIONS MAY BE LOST IF DONE IMPROPERLY #### PLEASE SEE THE ONLINE DOCUMENTATION FOR EXAMPLES from swgpy.object import * def create(kernel): result = Static() result.template = "object/static/structure/general/shared_streetlamp_medium_green_style_02.iff" result.a...
27.647059
96
0.738298
798658fd4af005652805e35d7b8ba32d451194df
6,459
py
Python
ConsistentHashing/RabbitMqSummit/python/client/orders_producer.py
Vanlightly/RabbitMq-PoC-Code
408af79eec81e768840710b47d1eb0a6633819aa
[ "MIT" ]
24
2018-03-23T02:50:52.000Z
2021-08-17T18:50:58.000Z
ConsistentHashing/RabbitMqSummit/python/client/orders_producer.py
avineshwar/RabbitMq-PoC-Code
408af79eec81e768840710b47d1eb0a6633819aa
[ "MIT" ]
3
2018-03-11T17:00:25.000Z
2019-10-07T21:19:43.000Z
ConsistentHashing/RabbitMqSummit/python/client/orders_producer.py
avineshwar/RabbitMq-PoC-Code
408af79eec81e768840710b47d1eb0a6633819aa
[ "MIT" ]
24
2017-10-03T09:45:37.000Z
2022-03-28T12:55:18.000Z
#!/usr/bin/env python import pika from pika import spec import sys import time import subprocess import datetime connect_node = sys.argv[1] node_count = int(sys.argv[2]) count = int(sys.argv[3]) client_count = int(sys.argv[4]) terminate = False exit_triggered = False last_ack_time = datetime.datetime.now() last_ack =...
31.975248
105
0.60257
798659b1a769b9c093004b1a0d9ca8ea8db4980e
1,408
py
Python
tests/test_encrypt.py
ONSdigital/sdx-deliver
fe90cd0ee6fc862f19024e6efda8f136b3ac8b1c
[ "MIT" ]
null
null
null
tests/test_encrypt.py
ONSdigital/sdx-deliver
fe90cd0ee6fc862f19024e6efda8f136b3ac8b1c
[ "MIT" ]
16
2021-05-17T15:09:12.000Z
2021-09-08T10:37:14.000Z
tests/test_encrypt.py
ONSdigital/sdx-deliver
fe90cd0ee6fc862f19024e6efda8f136b3ac8b1c
[ "MIT" ]
1
2021-05-19T17:56:24.000Z
2021-05-19T17:56:24.000Z
import unittest from unittest.mock import patch, Mock, MagicMock from app import gnupg, CONFIG from app.encrypt import encrypt_output class TestInit(unittest.TestCase): def setUp(self): with open('tests/test_key.txt', 'r') as file: test_key = file.read() gpg = gnupg.GPG() gpg...
40.228571
114
0.604403
798659cae9acd8dc1c8b8a907806ad2486af2494
4,972
py
Python
export.py
Sfera-IT/slack-archive-bot
e0c911c65b1d2395c8a84cfe3194f97a60cf9c36
[ "MIT" ]
null
null
null
export.py
Sfera-IT/slack-archive-bot
e0c911c65b1d2395c8a84cfe3194f97a60cf9c36
[ "MIT" ]
null
null
null
export.py
Sfera-IT/slack-archive-bot
e0c911c65b1d2395c8a84cfe3194f97a60cf9c36
[ "MIT" ]
null
null
null
#!/bin/python # Usage: python export.py <path_to_database> <path_for_new_folder> # Output: folder in given directory import argparse import datetime import json import logging import os import sqlite3 import time # Used in conjunction with sqlite3 to generate JSON-like format def dict_factory(cursor, row): d = {...
29.076023
93
0.679807
79865a4408112549941a8a788a7b27b2b1e61f99
986
py
Python
kubernetes/test/test_v2beta2_metric_target.py
iamneha/python
5b208a1a49a8d6f8bbab28bcc226b9ef793bcbd0
[ "Apache-2.0" ]
1
2019-02-17T15:28:39.000Z
2019-02-17T15:28:39.000Z
kubernetes/test/test_v2beta2_metric_target.py
iamneha/python
5b208a1a49a8d6f8bbab28bcc226b9ef793bcbd0
[ "Apache-2.0" ]
null
null
null
kubernetes/test/test_v2beta2_metric_target.py
iamneha/python
5b208a1a49a8d6f8bbab28bcc226b9ef793bcbd0
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 """ Kubernetes No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) OpenAPI spec version: v1.13.4 Generated by: https://github.com/swagger-api/swagger-codegen.git """ from __future__ import absolute_import import os import sys i...
21.911111
105
0.716024
79865b1ba4a18635a07da05cb0a4b1bcb2615b26
1,920
py
Python
tools/c7n_azure/c7n_azure/resources/load_balancer.py
sstarcher/cloud-custodian
fc5b51019e9c15d0582089133d080bceee489a94
[ "Apache-2.0" ]
1
2019-06-11T19:43:28.000Z
2019-06-11T19:43:28.000Z
tools/c7n_azure/c7n_azure/resources/load_balancer.py
sstarcher/cloud-custodian
fc5b51019e9c15d0582089133d080bceee489a94
[ "Apache-2.0" ]
1
2018-06-05T20:40:02.000Z
2018-06-05T21:15:51.000Z
tools/c7n_azure/c7n_azure/resources/load_balancer.py
sstarcher/cloud-custodian
fc5b51019e9c15d0582089133d080bceee489a94
[ "Apache-2.0" ]
1
2019-06-11T19:43:30.000Z
2019-06-11T19:43:30.000Z
# Copyright 2018 Capital One Services, 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...
34.909091
96
0.700521
79865bc5f2d7c91e3608a79d8bbd3bcb153281c6
908
py
Python
generate_gt_from_box.py
Shreeshrii/tesstrain-guj
b2af31b5f1e983c65ec73c10ace4fa49a60bcc77
[ "Apache-2.0" ]
null
null
null
generate_gt_from_box.py
Shreeshrii/tesstrain-guj
b2af31b5f1e983c65ec73c10ace4fa49a60bcc77
[ "Apache-2.0" ]
null
null
null
generate_gt_from_box.py
Shreeshrii/tesstrain-guj
b2af31b5f1e983c65ec73c10ace4fa49a60bcc77
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 import argparse import io import unicodedata # # command line arguments # arg_parser = argparse.ArgumentParser('''Creates groundtruth files from text2image generated box files''') # Text ground truth arg_parser.add_argument('-t', '--txt', nargs='?', metavar='TXT', help='Line text (GT)', requi...
29.290323
123
0.682819
79865d24f57c2bdfe03a7d3218ce53840d91c42a
2,303
py
Python
lists folder/Access List Items.py
master9robot/python_lesson
d50466ebde95529ac2b4011d671b4ccebf121dc3
[ "MIT" ]
null
null
null
lists folder/Access List Items.py
master9robot/python_lesson
d50466ebde95529ac2b4011d671b4ccebf121dc3
[ "MIT" ]
null
null
null
lists folder/Access List Items.py
master9robot/python_lesson
d50466ebde95529ac2b4011d671b4ccebf121dc3
[ "MIT" ]
null
null
null
#ToList items are indexed and you can access them by referring to the index number: #Print the second item of the list: thislist = ["apple", "banana", "cherry"] print(thislist[1]) list = ["one", "two", "three"] print(list[-1]) #Negative indexing means start from the end #-1 refers to the last item, -2 refers to t...
29.909091
92
0.667825
79865e11843e110c0a52dfa65a4f247d40f3d34c
3,389
py
Python
flaskblog/reviews/routes.py
venkatesh-hegade/Movie-Database-Using-Flask
81017616309426f9655b148c35eca1d4ba8fa5d5
[ "Apache-2.0" ]
null
null
null
flaskblog/reviews/routes.py
venkatesh-hegade/Movie-Database-Using-Flask
81017616309426f9655b148c35eca1d4ba8fa5d5
[ "Apache-2.0" ]
null
null
null
flaskblog/reviews/routes.py
venkatesh-hegade/Movie-Database-Using-Flask
81017616309426f9655b148c35eca1d4ba8fa5d5
[ "Apache-2.0" ]
null
null
null
from flask import Blueprint, flash, redirect, url_for, render_template, abort, \ request from flask_login import login_required, current_user from flaskblog import db from flaskblog.models import Review, User,Post from flaskblog.reviews.forms import ReviewForm reviewss = Blueprint('reviews', __name__) @revie...
43.448718
119
0.702272
79865e7e90805adbc56129f1ab6f370e2f99d63d
934
py
Python
migrations/versions/cf43cabe7ac2_add_chart_ssr.py
skielred/osmosis
579047a36557a5a9d9b3fea2868b541638af6604
[ "MIT" ]
2
2021-08-18T04:40:21.000Z
2021-10-07T06:52:13.000Z
migrations/versions/cf43cabe7ac2_add_chart_ssr.py
Tina-otoge/osmosis-server
579047a36557a5a9d9b3fea2868b541638af6604
[ "MIT" ]
3
2019-12-17T23:42:20.000Z
2019-12-17T23:50:13.000Z
migrations/versions/cf43cabe7ac2_add_chart_ssr.py
skielred/osmosis
579047a36557a5a9d9b3fea2868b541638af6604
[ "MIT" ]
null
null
null
"""add chart ssr and fk set_id Revision ID: cf43cabe7ac2 Revises: 0e99fccad3b0 Create Date: 2019-12-18 02:22:50.529129 """ from alembic import op import sqlalchemy as sa # revision identifiers, used by Alembic. revision = 'cf43cabe7ac2' down_revision = '0e99fccad3b0' branch_labels = None depends_on = None def upg...
26.685714
75
0.688437
79865f84eb590e9578b551d3c2f7bf4c170321f3
6,469
py
Python
filebrowser/settings.py
duh386/django-filebrowser
c38e3c787f012f6bfbc56590f02b474c4a89d72b
[ "BSD-3-Clause" ]
null
null
null
filebrowser/settings.py
duh386/django-filebrowser
c38e3c787f012f6bfbc56590f02b474c4a89d72b
[ "BSD-3-Clause" ]
1
2018-01-16T04:58:22.000Z
2018-01-16T04:58:22.000Z
filebrowser/settings.py
duh386/django-filebrowser
c38e3c787f012f6bfbc56590f02b474c4a89d72b
[ "BSD-3-Clause" ]
null
null
null
# coding: utf-8 # imports import os # django imports from django.conf import settings from django.utils.translation import ugettext_lazy as _ # settings for django-tinymce try: import tinymce.settings DEFAULT_URL_TINYMCE = tinymce.settings.JS_BASE_URL + '/' DEFAULT_PATH_TINYMCE = tinymce.settings.JS_ROOT...
51.34127
132
0.747565
7986647aef2d7ec74bfce59d21aff50a54704517
11,943
py
Python
test_autolens/simulate/imaging/makers.py
harshitjindal/PyAutoLens
f1d3f08f12a61f6634e1b7a0ccf8f5cfe0252035
[ "MIT" ]
1
2020-04-06T20:07:56.000Z
2020-04-06T20:07:56.000Z
test_autolens/simulate/imaging/makers.py
harshitjindal/PyAutoLens
f1d3f08f12a61f6634e1b7a0ccf8f5cfe0252035
[ "MIT" ]
null
null
null
test_autolens/simulate/imaging/makers.py
harshitjindal/PyAutoLens
f1d3f08f12a61f6634e1b7a0ccf8f5cfe0252035
[ "MIT" ]
null
null
null
import autofit as af import autolens as al import os def simulator_from_data_resolution(data_resolution, sub_size): """Determine the pixel scale from a data_type resolution type based on real observations. These options are representative of LSST, Euclid, HST, over-sampled HST and Adaptive Optics image. ...
28.234043
109
0.615507
7986656eb2bccea527be0455da60189c51658185
708
py
Python
gui/sum_v1/migrations/0002_auto_20180614_0927.py
time-crunched/nlp-toolbox
b732abd0b2c6b265971efe04a4d70ebe20d2ee8f
[ "MIT" ]
null
null
null
gui/sum_v1/migrations/0002_auto_20180614_0927.py
time-crunched/nlp-toolbox
b732abd0b2c6b265971efe04a4d70ebe20d2ee8f
[ "MIT" ]
3
2020-06-05T18:58:57.000Z
2021-06-10T20:50:13.000Z
gui/sum_v1/migrations/0002_auto_20180614_0927.py
time-crunched/nlp-toolbox
b732abd0b2c6b265971efe04a4d70ebe20d2ee8f
[ "MIT" ]
1
2019-12-01T16:56:41.000Z
2019-12-01T16:56:41.000Z
# Generated by Django 2.0.5 on 2018-06-14 07:27 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('sum_v1', '0001_initial'), ] operations = [ migrations.CreateModel( name='SummaryRes', fields=[ ('id'...
26.222222
114
0.548023
79866962ea08fa279cee9524061df01ecbf51bf5
2,223
py
Python
tensorflow_probability/python/math/psd_kernels/pointwise_exponential_test.py
PavanKishore21/probability
4bad1b796b0e6ed2959205915d42788817620c4c
[ "Apache-2.0" ]
null
null
null
tensorflow_probability/python/math/psd_kernels/pointwise_exponential_test.py
PavanKishore21/probability
4bad1b796b0e6ed2959205915d42788817620c4c
[ "Apache-2.0" ]
null
null
null
tensorflow_probability/python/math/psd_kernels/pointwise_exponential_test.py
PavanKishore21/probability
4bad1b796b0e6ed2959205915d42788817620c4c
[ "Apache-2.0" ]
null
null
null
# Copyright 2021 The TensorFlow Probability Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law o...
37.677966
78
0.723347
7986698884283d24f11be625d88273d6a10da740
608
py
Python
python/core/__init__.py
justusc/Elemental
145ccb28411f3f0c65ca30ecea776df33297e4ff
[ "BSD-3-Clause" ]
1
2015-12-08T22:54:37.000Z
2015-12-08T22:54:37.000Z
python/core/__init__.py
justusc/Elemental
145ccb28411f3f0c65ca30ecea776df33297e4ff
[ "BSD-3-Clause" ]
null
null
null
python/core/__init__.py
justusc/Elemental
145ccb28411f3f0c65ca30ecea776df33297e4ff
[ "BSD-3-Clause" ]
null
null
null
# # Copyright (c) 2009-2015, Jack Poulson # All rights reserved. # # This file is part of Elemental and is under the BSD 2-Clause License, # which can be found in the LICENSE file in the root directory, or at # http://opensource.org/licenses/BSD-2-Clause # from environment import * from imports imp...
28.952381
73
0.659539
79866abae030a4383ea4415a13a18863a6b6d0b1
22
py
Python
adminsortable2/__init__.py
GHPS/django-admin-sortable2
770843e06aebe9e71995f67e85c0c0fdb3b793d8
[ "MIT" ]
136
2015-07-15T12:49:36.000Z
2022-03-24T12:30:25.000Z
adminsortable2/__init__.py
GHPS/django-admin-sortable2
770843e06aebe9e71995f67e85c0c0fdb3b793d8
[ "MIT" ]
59
2015-12-28T21:40:37.000Z
2022-03-31T13:11:50.000Z
adminsortable2/__init__.py
GHPS/django-admin-sortable2
770843e06aebe9e71995f67e85c0c0fdb3b793d8
[ "MIT" ]
33
2015-12-04T08:00:07.000Z
2022-01-28T23:39:25.000Z
__version__ = '0.7.6'
11
21
0.636364
79866b1ac5dab402d00eac15763a718778caca93
581
py
Python
setup.py
PythonCHB/di_refcount
42b663e0f539eb3d2eca8335d8c123a7d719b6af
[ "MIT" ]
1
2019-07-22T06:20:09.000Z
2019-07-22T06:20:09.000Z
setup.py
PythonCHB/di_refcount
42b663e0f539eb3d2eca8335d8c123a7d719b6af
[ "MIT" ]
null
null
null
setup.py
PythonCHB/di_refcount
42b663e0f539eb3d2eca8335d8c123a7d719b6af
[ "MIT" ]
null
null
null
from setuptools import setup from distutils.extension import Extension setup( name='di', version='0.1', description='Turn an id() back into a Python object reference, and get a refcount from an id', long_description='Turn an id() back into a Python object reference. It will also return the reference co...
29.05
176
0.650602
79866b2594bbc13711c5d15028d6d7a390dd9e17
6,225
py
Python
tests/distributions/copulas/test_nataf.py
yuanyuansjtu/chaospy
0b10d5eaa6abb77198e8eb025fea759c4629bca6
[ "MIT" ]
1
2021-02-28T07:53:32.000Z
2021-02-28T07:53:32.000Z
tests/distributions/copulas/test_nataf.py
yuanyuansjtu/chaospy
0b10d5eaa6abb77198e8eb025fea759c4629bca6
[ "MIT" ]
null
null
null
tests/distributions/copulas/test_nataf.py
yuanyuansjtu/chaospy
0b10d5eaa6abb77198e8eb025fea759c4629bca6
[ "MIT" ]
null
null
null
"""Test for Nataf transformations.""" import numpy import pytest import chaospy from chaospy.distributions.copulas.nataf import nataf def test_sampling_statistics(): dists = chaospy.Iid(chaospy.Normal(2, 2), 4) corr = numpy.array([[ 1.0, -0.2, 0.3, -0.1], [-0.2, 1.0, 0.0, -0.2], ...
45.437956
104
0.583454
79866b6e0edf9a2fc08ef6dd42b7bcd3532ace0f
3,853
py
Python
trseeker/tools/ncbi_annotation_tools.py
ad3002/Lyrebird
8c0a186e32d61189f073401152c52a89bfed46ed
[ "MIT" ]
null
null
null
trseeker/tools/ncbi_annotation_tools.py
ad3002/Lyrebird
8c0a186e32d61189f073401152c52a89bfed46ed
[ "MIT" ]
null
null
null
trseeker/tools/ncbi_annotation_tools.py
ad3002/Lyrebird
8c0a186e32d61189f073401152c52a89bfed46ed
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- # #@created: 26.09.2010 #@author: Aleksey Komissarov #@contact: ad3002@gmail.com ''' Readers for various NCBI data. ''' def get_ideogram_dict(idiogram_file, mode="NCBI"): ''' Read ideogram file and return return dict chr -> list: TODO: add model. ...
30.338583
98
0.376071
79866bd8e799674685d17404186ee54c30495a7f
3,859
py
Python
PyVC/app/views.py
GuidoZhang/PyVC
b252c7ae8c00840860e297f7967078614bb6c45e
[ "MIT" ]
null
null
null
PyVC/app/views.py
GuidoZhang/PyVC
b252c7ae8c00840860e297f7967078614bb6c45e
[ "MIT" ]
null
null
null
PyVC/app/views.py
GuidoZhang/PyVC
b252c7ae8c00840860e297f7967078614bb6c45e
[ "MIT" ]
null
null
null
""" Definition of views. """ from django.shortcuts import render from django.http import HttpRequest from django.template import RequestContext from datetime import datetime from django.contrib.auth.decorators import login_required import django.contrib.auth as auth from django.contrib.auth.hashers import make_passwo...
24.737179
78
0.605597
79866d8ab6c8d630ca79b67d2018535b6abb9815
8,554
py
Python
shared/rpc/rpc_producer.py
platform9/pf9-ha
7d64f9fe6b72fb4c1e5ed5d23e372a62c9e218a8
[ "Apache-2.0" ]
11
2016-09-06T09:59:29.000Z
2021-10-02T07:24:07.000Z
shared/rpc/rpc_producer.py
platform9/pf9-ha
7d64f9fe6b72fb4c1e5ed5d23e372a62c9e218a8
[ "Apache-2.0" ]
5
2017-10-16T06:47:14.000Z
2020-07-06T07:20:13.000Z
shared/rpc/rpc_producer.py
platform9/pf9-ha
7d64f9fe6b72fb4c1e5ed5d23e372a62c9e218a8
[ "Apache-2.0" ]
3
2016-09-01T06:20:51.000Z
2017-10-16T02:27:07.000Z
# -*- coding: utf-8 -*- # Copyright (c) 2019 Platform9 Systems 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 a...
43.642857
132
0.548165
79866fe08399f80d39e5c29dd340f702d925953e
18,466
py
Python
python/tvm/micro/model_library_format.py
ymeng-git/tvm
e53cbe48ca307d14a2359c1f6fe15f4ccfa87c8f
[ "Apache-2.0" ]
null
null
null
python/tvm/micro/model_library_format.py
ymeng-git/tvm
e53cbe48ca307d14a2359c1f6fe15f4ccfa87c8f
[ "Apache-2.0" ]
null
null
null
python/tvm/micro/model_library_format.py
ymeng-git/tvm
e53cbe48ca307d14a2359c1f6fe15f4ccfa87c8f
[ "Apache-2.0" ]
null
null
null
# Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may not u...
36.278978
100
0.661269
79866ff4e38c30eb45040ccff98536a3fba38c29
1,100
py
Python
lib/setup.py
jcjs/FPN-Pytorch
423a4499c4e826d17367762e821b51b9b1b0f2f3
[ "MIT" ]
271
2018-11-23T02:13:19.000Z
2021-05-08T08:17:52.000Z
lib/setup.py
jcjs/FPN-Pytorch
423a4499c4e826d17367762e821b51b9b1b0f2f3
[ "MIT" ]
8
2018-11-23T11:40:37.000Z
2021-08-09T13:15:44.000Z
lib/setup.py
jcjs/FPN-Pytorch
423a4499c4e826d17367762e821b51b9b1b0f2f3
[ "MIT" ]
57
2018-11-23T07:00:09.000Z
2021-12-19T03:49:35.000Z
# -------------------------------------------------------- # Fast R-CNN # Copyright (c) 2015 Microsoft # Licensed under The MIT License [see LICENSE for details] # Written by Ross Girshick # -------------------------------------------------------- from __future__ import print_function from Cython.Build impor...
24.444444
79
0.602727
798670c6fb3cc100a9987f20f9e3ff4f82332ce1
7,506
py
Python
scripts/train_classifier.py
afiaka87/Diff-DALLE
649d8a7093b67a23befc79ee4bbdbcc43d373b1a
[ "MIT" ]
2
2021-07-19T17:31:10.000Z
2021-07-19T23:37:15.000Z
scripts/train_classifier.py
afiaka87/Diff-DALLE
649d8a7093b67a23befc79ee4bbdbcc43d373b1a
[ "MIT" ]
null
null
null
scripts/train_classifier.py
afiaka87/Diff-DALLE
649d8a7093b67a23befc79ee4bbdbcc43d373b1a
[ "MIT" ]
null
null
null
""" Train a noised image classifier on ImageNet. """ import argparse import os from time import time import numpy as np import blobfile as bf import torch as th import torch.distributed as dist import torch.nn.functional as F from torch.nn.parallel.distributed import DistributedDataParallel as DDP from torch.optim i...
33.508929
127
0.626565
798672fadecc7c6e58af4951cd9a0568e169924d
49,982
py
Python
pyocd/gdbserver/gdbserver.py
codehelp/pkg-pyocd-dfsg
3a3b417578242454905d4471440ccc16fb19c955
[ "Apache-2.0" ]
null
null
null
pyocd/gdbserver/gdbserver.py
codehelp/pkg-pyocd-dfsg
3a3b417578242454905d4471440ccc16fb19c955
[ "Apache-2.0" ]
1
2018-12-27T03:21:06.000Z
2018-12-27T03:21:06.000Z
pyocd/gdbserver/gdbserver.py
codehelp/pkg-pyocd-dfsg
3a3b417578242454905d4471440ccc16fb19c955
[ "Apache-2.0" ]
null
null
null
""" mbed CMSIS-DAP debugger Copyright (c) 2006-2018 ARM Limited Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable ...
37.637048
126
0.560402
798673a6af465a1faebd18b0174c6e83bd907ca0
2,139
py
Python
paddle_quantum/mbqc/QAOA/example/pubo_main.py
gsq7474741/Quantum
16e7d3bf2dba7e94e6faf5c853faf0e913e1f268
[ "Apache-2.0" ]
1
2020-07-14T14:10:23.000Z
2020-07-14T14:10:23.000Z
paddle_quantum/mbqc/QAOA/example/pubo_main.py
gsq7474741/Quantum
16e7d3bf2dba7e94e6faf5c853faf0e913e1f268
[ "Apache-2.0" ]
null
null
null
paddle_quantum/mbqc/QAOA/example/pubo_main.py
gsq7474741/Quantum
16e7d3bf2dba7e94e6faf5c853faf0e913e1f268
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2021 Institute for Quantum Computing, Baidu Inc. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Un...
34.5
99
0.672277
798673d5f44d21b621e90e3ebc6bc36bba44b207
1,636
py
Python
pyfisheyes/model/fisheyesdb/devicebase.py
tonycai/pyfisheyes
9080c340d6148b4036347edde3e0ece322f7808e
[ "Apache-2.0" ]
3
2017-08-19T08:29:36.000Z
2017-09-19T02:58:49.000Z
pyfisheyes/model/fisheyesdb/devicebase.py
tonycai/pyfisheyes
9080c340d6148b4036347edde3e0ece322f7808e
[ "Apache-2.0" ]
null
null
null
pyfisheyes/model/fisheyesdb/devicebase.py
tonycai/pyfisheyes
9080c340d6148b4036347edde3e0ece322f7808e
[ "Apache-2.0" ]
null
null
null
"""devicebase model""" from sqlalchemy import Column from sqlalchemy.types import Integer, Unicode, Date,Text, DateTime, String, VARCHAR, UnicodeText from pyfisheyes.model.meta import Base class DeviceBase(Base): __tablename__ = "device_base" id = Column(Integer(11), primary_key=True) hostname = Colu...
29.745455
96
0.611247
798673ff4e62455e81267b43d5f48db6731f7aeb
329
py
Python
Classifier/reorganize_dataset.py
li1993qing1993/ARMLC
db1d394379c39970d96b288e72f045fa3e10aaba
[ "Apache-2.0" ]
null
null
null
Classifier/reorganize_dataset.py
li1993qing1993/ARMLC
db1d394379c39970d96b288e72f045fa3e10aaba
[ "Apache-2.0" ]
null
null
null
Classifier/reorganize_dataset.py
li1993qing1993/ARMLC
db1d394379c39970d96b288e72f045fa3e10aaba
[ "Apache-2.0" ]
null
null
null
import os import errno filename = "/foo/bar/baz.txt" if not os.path.exists(os.path.dirname(filename)): try: os.makedirs(os.path.dirname(filename)) except OSError as exc: # Guard against race condition if exc.errno != errno.EEXIST: raise with open(filename, "w") as f: f.write("F...
21.933333
57
0.644377
798674efd37638c4d7ce1560f3cabcfacb0335da
763
py
Python
src/sparseml/pytorch/models/external/__init__.py
clementpoiret/sparseml
8442a6ef8ba11fb02f5e51472dd68b72438539b9
[ "Apache-2.0" ]
922
2021-02-04T17:51:54.000Z
2022-03-31T20:49:26.000Z
src/sparseml/pytorch/models/external/__init__.py
clementpoiret/sparseml
8442a6ef8ba11fb02f5e51472dd68b72438539b9
[ "Apache-2.0" ]
197
2021-02-04T22:17:21.000Z
2022-03-31T13:58:55.000Z
src/sparseml/pytorch/models/external/__init__.py
clementpoiret/sparseml
8442a6ef8ba11fb02f5e51472dd68b72438539b9
[ "Apache-2.0" ]
80
2021-02-04T22:20:14.000Z
2022-03-30T19:36:15.000Z
# Copyright (c) 2021 - present / Neuralmagic, Inc. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required b...
33.173913
76
0.757536
798675ddf383803b63f35f85c390ee769e612159
997
py
Python
tests/server/inference/test_tensorflow_inference.py
shfshf/seq2annotation
d4bf88a869631b43fa2974c2ffa1c5dd6a7623ed
[ "Apache-2.0" ]
90
2018-11-29T07:05:16.000Z
2021-11-22T11:32:58.000Z
tests/server/inference/test_tensorflow_inference.py
shfshf/seq2annotation
d4bf88a869631b43fa2974c2ffa1c5dd6a7623ed
[ "Apache-2.0" ]
50
2019-06-27T07:11:18.000Z
2022-02-10T00:01:02.000Z
tests/server/inference/test_tensorflow_inference.py
lanSeFangZhou/seq2annotation
a824520d46f0b3d70268fae422976a5ce1b3f4ce
[ "Apache-2.0" ]
23
2019-01-03T14:57:15.000Z
2022-03-08T07:50:33.000Z
import os from seq2annotation.server.inference.tensorflow_inference import TensorFlowInference from tokenizer_tools.tagset.offset.sequence import Sequence from tokenizer_tools.tagset.offset.span import Span from tokenizer_tools.tagset.offset.span_set import SpanSet def test_tensorflow_inference(datadir): # TODO(...
27.694444
84
0.623872
7986767362319f2396e3dc7c460c9a0073b80b77
677
py
Python
test_add_two_linked_list_numbers.py
kannanParamasivam/practice
f8f476ba5b97dfbe0b673a200c1668dcd9370b04
[ "Apache-2.0" ]
null
null
null
test_add_two_linked_list_numbers.py
kannanParamasivam/practice
f8f476ba5b97dfbe0b673a200c1668dcd9370b04
[ "Apache-2.0" ]
null
null
null
test_add_two_linked_list_numbers.py
kannanParamasivam/practice
f8f476ba5b97dfbe0b673a200c1668dcd9370b04
[ "Apache-2.0" ]
null
null
null
import unittest from typing import List from add_two_linked_list_numbers import Solution class TestSolution(unittest.TestCase): def setUp(self): pass def tearDown(self): pass def test_addTwoNumbers_when_two_numbers_provided_should_return_sum_in_reverse(self): sol = Solutio...
23.344828
88
0.714919
798679d65a8f23cb8714ceaa6f6abd5d4e09be65
9,074
py
Python
dataset.py
design-cal/preference-learning
e4ae9f1512fbc838b320bde692793f702e84addf
[ "MIT" ]
19
2018-02-22T16:35:51.000Z
2021-12-15T01:30:32.000Z
dataset.py
design-cal/preference-learning
e4ae9f1512fbc838b320bde692793f702e84addf
[ "MIT" ]
null
null
null
dataset.py
design-cal/preference-learning
e4ae9f1512fbc838b320bde692793f702e84addf
[ "MIT" ]
5
2018-07-13T16:05:54.000Z
2021-04-13T14:54:55.000Z
""" @author: Luisa M Zintgraf (2017, Vrije Universiteit Brussel) """ import numpy as np import sys sys.path.insert(0, '..') from gp_utilities import utils_data as utl_data class DatasetPairwise: def __init__(self, num_objectives): """ Initialise an empty dataset for data with the given number of o...
40.690583
119
0.60756
798679fb80ecbca1d1550a9d763427adb9fb99d9
764
py
Python
src/01_base_resource/common/python/logger/json_formatter.py
artilf/artilf-api
9c6fb69f0c2c82e12bc493a2fbc6a22c1383344b
[ "MIT" ]
null
null
null
src/01_base_resource/common/python/logger/json_formatter.py
artilf/artilf-api
9c6fb69f0c2c82e12bc493a2fbc6a22c1383344b
[ "MIT" ]
null
null
null
src/01_base_resource/common/python/logger/json_formatter.py
artilf/artilf-api
9c6fb69f0c2c82e12bc493a2fbc6a22c1383344b
[ "MIT" ]
null
null
null
import json import logging import os class JsonLogFormatter(logging.Formatter): def format(self, record): result = {} for attr, value in record.__dict__.items(): if attr == 'asctime': value = self.formatTime(record) if attr == 'exc_info' and value is not No...
27.285714
73
0.565445
79867a1831c17ec341a4a129e71fe16e0347d678
742
py
Python
regexlib/python_re_test_file/regexlib_7091.py
yetingli/ReDoS-Benchmarks
f5b5094d835649e957bf3fec6b8bd4f6efdb35fc
[ "MIT" ]
1
2022-01-24T14:43:23.000Z
2022-01-24T14:43:23.000Z
regexlib/python_re_test_file/regexlib_7091.py
yetingli/ReDoS-Benchmarks
f5b5094d835649e957bf3fec6b8bd4f6efdb35fc
[ "MIT" ]
null
null
null
regexlib/python_re_test_file/regexlib_7091.py
yetingli/ReDoS-Benchmarks
f5b5094d835649e957bf3fec6b8bd4f6efdb35fc
[ "MIT" ]
null
null
null
# 7091 # ^(([A-Za-z][A-Za-z0-9.+]*?){1,}?)(,\s?([^/\\:*?"<>|]*((,\s?(Version=(\d\.?){1,4}|Culture=(neutral|\w{2}-\w{2})|PublicKeyToken=[a-f0-9]{16})(,\s?)?){3}|))){0,1}$ # EXPONENT # nums:4 # EXPONENT AttackString:""+"A"*32+"!1 _SLQ_2" import re from time import perf_counter regex = """^(([A-Za-z][A-Za-z0-9.+]*?){1,}...
39.052632
174
0.518868
79867bc913b4fd06f8bf5bcc10a113ea89d3ffdc
3,188
py
Python
DjMainApp/forms.py
alehpineda/django-heroku-15
a815ddeae32efff63b93d452e5665f22a0076e86
[ "Apache-2.0" ]
null
null
null
DjMainApp/forms.py
alehpineda/django-heroku-15
a815ddeae32efff63b93d452e5665f22a0076e86
[ "Apache-2.0" ]
null
null
null
DjMainApp/forms.py
alehpineda/django-heroku-15
a815ddeae32efff63b93d452e5665f22a0076e86
[ "Apache-2.0" ]
null
null
null
from django import forms from django.contrib.auth import authenticate from django.contrib.auth.models import User import re class SetNewPassForm(forms.Form): password=forms.CharField(required=True, min_length=4) repassword=forms.CharField(required=True, min_length=4) pass_reset_code=forms.CharField(widget=...
36.643678
102
0.681619
79867c9dcc172feeb3679a4e532c13fd84814240
972
py
Python
goldcoin/wallet/block_record.py
DevMau5x/goldcoin-blockchain-2
ed223dd16fa290ea710db7202d6c52a056242cfa
[ "Apache-2.0" ]
17
2021-09-08T17:07:54.000Z
2022-03-30T04:11:58.000Z
goldcoin/wallet/block_record.py
DevMau5x/goldcoin-blockchain-2
ed223dd16fa290ea710db7202d6c52a056242cfa
[ "Apache-2.0" ]
15
2021-09-28T21:09:49.000Z
2022-03-22T21:13:23.000Z
goldcoin/wallet/block_record.py
Pierre21dd/gold2
4a35f207ed4c8a7745bfbc73fd3c190bd8b60a3f
[ "Apache-2.0" ]
9
2021-09-12T10:03:23.000Z
2022-03-15T08:35:11.000Z
from dataclasses import dataclass from typing import List from goldcoin.types.blockchain_format.coin import Coin from goldcoin.types.header_block import HeaderBlock from goldcoin.util.streamable import Streamable, streamable @dataclass(frozen=True) @streamable class HeaderBlockRecord(Streamable): """ These a...
27
89
0.742798
79867d86941ea2ef3d45a0e670cd78c744e2d555
3,520
py
Python
spatial_biofilm_sorting_package/extract_foreground.py
gatoniel/spatial-biofilm-sorting-package
29804b1023f30c675950d6cb80b27c72b7ec554c
[ "MIT" ]
null
null
null
spatial_biofilm_sorting_package/extract_foreground.py
gatoniel/spatial-biofilm-sorting-package
29804b1023f30c675950d6cb80b27c72b7ec554c
[ "MIT" ]
null
null
null
spatial_biofilm_sorting_package/extract_foreground.py
gatoniel/spatial-biofilm-sorting-package
29804b1023f30c675950d6cb80b27c72b7ec554c
[ "MIT" ]
null
null
null
import numpy as np from skimage.filters import threshold_multiotsu from skimage.measure import label, regionprops from skimage.morphology import binary_dilation, binary_erosion, disk from scipy.ndimage.morphology import binary_fill_holes def get_edge_mask(true_fg, dil_radius, ero_radius): selem_dilation = disk(di...
31.428571
72
0.702841
798680947ed3415b65824d0caf2d761c53c8bed5
443
py
Python
utils/find_corrupt_jpg.py
EnviewFulda/SeagrassExplorer
0f6a0e15d1ffb8220e951c52ec1634e7a0763f4e
[ "BSD-2-Clause" ]
null
null
null
utils/find_corrupt_jpg.py
EnviewFulda/SeagrassExplorer
0f6a0e15d1ffb8220e951c52ec1634e7a0763f4e
[ "BSD-2-Clause" ]
null
null
null
utils/find_corrupt_jpg.py
EnviewFulda/SeagrassExplorer
0f6a0e15d1ffb8220e951c52ec1634e7a0763f4e
[ "BSD-2-Clause" ]
null
null
null
#!/usr/bin/env python import cv2 import os import argparse parser = argparse.ArgumentParser() parser.add_argument("--imgdir", help="Path to folder with images to check") args = parser.parse_args() for root, dirnames, filenames in os.walk(args.imgdir): for filename in filenames: if filename.endswith('.jpg...
26.058824
75
0.674944
7986816fc91ea6ae1ffe0fa7d5f790713f70913e
8,019
py
Python
menu.py
Cieon/Threshold_hologram_sim
f5bae879c71bf08915a4527a53279d0af2c9a36e
[ "BSD-3-Clause" ]
null
null
null
menu.py
Cieon/Threshold_hologram_sim
f5bae879c71bf08915a4527a53279d0af2c9a36e
[ "BSD-3-Clause" ]
null
null
null
menu.py
Cieon/Threshold_hologram_sim
f5bae879c71bf08915a4527a53279d0af2c9a36e
[ "BSD-3-Clause" ]
null
null
null
import easygui # Variable information for help in the menu var_info=[ "Parameter ssampling refers to the amount of pixels oversampling each point of phase which has to be written, ex. ssampling=16 results in a cell of 16x16.", "Wavelength means the wavelength of light used for simulation in nanometers, us...
43.112903
195
0.614291
798681774edfb569a5b33b3909fa161f44364a3d
2,941
py
Python
salt/_modules/pushbullet_chats.py
techhat/salt-pushbullet
249c75598661dbbd6786406921b18047a540088c
[ "Apache-2.0" ]
null
null
null
salt/_modules/pushbullet_chats.py
techhat/salt-pushbullet
249c75598661dbbd6786406921b18047a540088c
[ "Apache-2.0" ]
null
null
null
salt/_modules/pushbullet_chats.py
techhat/salt-pushbullet
249c75598661dbbd6786406921b18047a540088c
[ "Apache-2.0" ]
1
2019-11-21T16:38:20.000Z
2019-11-21T16:38:20.000Z
# -*- coding: utf-8 -*- ''' Salt module for Pushbullet chats ''' # Import python libs from __future__ import absolute_import import json import logging # Import salt libs import salt.utils.http log = logging.getLogger(__name__) __virtualname__ = 'pushbullet_chats' __func_alias__ = { 'list_': 'list' } def __vir...
21.625
92
0.589595
798681e4d7c068e8927e8b1dc0e3f9632efb4731
3,885
py
Python
errata_tool/build.py
rhjostone/errata-tool
7f489343ba2985fe4a42fe1701a3dd5b26c105ec
[ "MIT" ]
19
2017-08-28T17:30:27.000Z
2022-03-10T07:20:17.000Z
errata_tool/build.py
rhjostone/errata-tool
7f489343ba2985fe4a42fe1701a3dd5b26c105ec
[ "MIT" ]
112
2017-08-23T18:02:55.000Z
2021-11-17T02:06:29.000Z
errata_tool/build.py
rhjostone/errata-tool
7f489343ba2985fe4a42fe1701a3dd5b26c105ec
[ "MIT" ]
23
2017-10-04T11:27:10.000Z
2021-05-27T18:20:32.000Z
from errata_tool import ErrataConnector from errata_tool import Erratum class Build(ErrataConnector): """Search ET for Details based on a build""" def __init__(self, nvr): """Find build information and advisories where the build is attached. :param nvr: build NVR (name-version-release) ...
28.777778
79
0.567053
798682441a35bafa52ad911ce513f15eb2bf02a7
6,598
py
Python
test/util/bitcoin-util-test.py
msalazarm/chunguscoin
61183c4f38b5c9b1130fbb6c1031505bad81eae2
[ "MIT" ]
null
null
null
test/util/bitcoin-util-test.py
msalazarm/chunguscoin
61183c4f38b5c9b1130fbb6c1031505bad81eae2
[ "MIT" ]
null
null
null
test/util/bitcoin-util-test.py
msalazarm/chunguscoin
61183c4f38b5c9b1130fbb6c1031505bad81eae2
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # Copyright 2014 BitPay Inc. # Copyright 2016-2017 The Bitcoin Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. """Test framework for chunguscoin utils. Runs automatically during `make check`....
37.488636
125
0.633677
79868338d4e432bb37da805d7cb4a7822090fecd
858
py
Python
main/migrations/0012_auto_20210823_0851.py
Tech-Group-inc/hospitalmanagementsystem
a2ec9e8b3eaf8e8b8f2ad4c32e499e12bc5079f3
[ "MIT" ]
2
2021-08-23T09:21:33.000Z
2021-12-27T15:39:59.000Z
main/migrations/0012_auto_20210823_0851.py
Tech-Group-inc/hospitalmanagementsystem
a2ec9e8b3eaf8e8b8f2ad4c32e499e12bc5079f3
[ "MIT" ]
null
null
null
main/migrations/0012_auto_20210823_0851.py
Tech-Group-inc/hospitalmanagementsystem
a2ec9e8b3eaf8e8b8f2ad4c32e499e12bc5079f3
[ "MIT" ]
null
null
null
# Generated by Django 3.2.6 on 2021-08-23 08:51 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('main', '0011_auto_20201122_0706'), ] operations = [ migrations.AlterField( model_name='bed', name='id', ...
29.586207
111
0.606061
7986846a83826c07e8d17bb4f8a105332eb99ebf
9,064
py
Python
HSTB/kluster/draw_calcs.py
giumas/kluster
40abd266551a56b693132a7cb12471601f5a02b4
[ "CC0-1.0" ]
18
2020-11-01T19:59:33.000Z
2022-03-31T22:46:48.000Z
HSTB/kluster/draw_calcs.py
giumas/kluster
40abd266551a56b693132a7cb12471601f5a02b4
[ "CC0-1.0" ]
46
2020-10-23T13:55:24.000Z
2022-03-31T15:58:26.000Z
HSTB/kluster/draw_calcs.py
giumas/kluster
40abd266551a56b693132a7cb12471601f5a02b4
[ "CC0-1.0" ]
9
2021-03-18T22:28:26.000Z
2022-02-23T21:48:09.000Z
import numpy as np import matplotlib.pyplot as plt from shapely.geometry import LineString from shapely.affinity import rotate # Experimenting with drawing out the beams in relation to the vessel, not currently used in Kluster # - X = + Forward, Y = + Starboard, Z = + Down # - roll = + Port Up, pitch = + Bow Up, gyr...
54.933333
119
0.625772
79868578a958314f1d5a3101c84cd738fc010c17
933
py
Python
lsst_dashboard/utils.py
timothydmorton/lsst_dashboard
126b1c288197579bdbf6e9283c359adecbdd9fda
[ "BSD-3-Clause" ]
1
2020-10-07T23:03:48.000Z
2020-10-07T23:03:48.000Z
lsst_dashboard/utils.py
timothydmorton/lsst_dashboard
126b1c288197579bdbf6e9283c359adecbdd9fda
[ "BSD-3-Clause" ]
null
null
null
lsst_dashboard/utils.py
timothydmorton/lsst_dashboard
126b1c288197579bdbf6e9283c359adecbdd9fda
[ "BSD-3-Clause" ]
null
null
null
"collection of utilities" from pathlib import Path import asyncio import panel as pn import holoviews as hv def set_timeout(seconds, callback): async def schedule(): await asyncio.sleep(seconds) if asyncio.iscoroutinefunction(callback): await callback() else: c...
22.214286
85
0.646302
79868615661f96a22c146f738e7236ab8b371d05
710
py
Python
tools/urls.py
Kromey/akwriters
72812b5f7dca3ad21e6e9d082298872b7fa607b9
[ "MIT" ]
1
2015-11-08T21:04:34.000Z
2015-11-08T21:04:34.000Z
tools/urls.py
Kromey/akwriters
72812b5f7dca3ad21e6e9d082298872b7fa607b9
[ "MIT" ]
22
2016-09-02T01:33:59.000Z
2021-06-10T17:26:20.000Z
tools/urls.py
Kromey/akwriters
72812b5f7dca3ad21e6e9d082298872b7fa607b9
[ "MIT" ]
null
null
null
from django.conf.urls import include, url from . import views app_name = 'tools' urlpatterns = [ # Examples: # url(r'^$', 'akwriters.views.home', name='home'), # url(r'^blog/', include('blog.urls')), url(r'^characters$', views.CharacterListView.as_view(), name='character_list'), url(r'^character...
39.444444
106
0.671831
79868738fa963c76fa55653671ecff90f3310b7d
859
py
Python
bt_utils/config.py
ArPiiX/bundestagsBot
90d37df13e38a698e1206d65ae5f267e85471db2
[ "MIT" ]
null
null
null
bt_utils/config.py
ArPiiX/bundestagsBot
90d37df13e38a698e1206d65ae5f267e85471db2
[ "MIT" ]
null
null
null
bt_utils/config.py
ArPiiX/bundestagsBot
90d37df13e38a698e1206d65ae5f267e85471db2
[ "MIT" ]
null
null
null
from bt_utils import handleJson from bt_utils.console import * BASE_PATH = "config/" PATHS = ["blacklist.json", "main.json", "messages.json", "role_table.json", "tokens.json"] SHL = Console("ConfigLoader") class Config: options = {} def reload(self, debug=False): SHL.output(f"Reloading conf...
27.709677
66
0.542491
79868879c2485d137361e97d4bdf086e95dddef3
7,398
py
Python
optimade/models/utils.py
materialsproject/optimade
638f3fc9b203603141032a814e42bc23bec1bd87
[ "MIT" ]
null
null
null
optimade/models/utils.py
materialsproject/optimade
638f3fc9b203603141032a814e42bc23bec1bd87
[ "MIT" ]
null
null
null
optimade/models/utils.py
materialsproject/optimade
638f3fc9b203603141032a814e42bc23bec1bd87
[ "MIT" ]
null
null
null
import inspect import warnings import re import itertools from enum import Enum from typing import Optional from pydantic import Field _PYDANTIC_FIELD_KWARGS = list(inspect.signature(Field).parameters.keys()) __all__ = ( "CHEMICAL_SYMBOLS", "EXTRA_SYMBOLS", "ATOMIC_NUMBERS", "SemanticVersion", "S...
22.216216
190
0.553122
7986893d25e10cf5e189cb2771cecdd469d62188
4,486
py
Python
run_bert.py
k-suler/NLP-IMapBook
36c6af13716a8e790554bc949ae54a371a5c82b2
[ "MIT" ]
null
null
null
run_bert.py
k-suler/NLP-IMapBook
36c6af13716a8e790554bc949ae54a371a5c82b2
[ "MIT" ]
null
null
null
run_bert.py
k-suler/NLP-IMapBook
36c6af13716a8e790554bc949ae54a371a5c82b2
[ "MIT" ]
null
null
null
import pandas as pd from sklearn import preprocessing from sklearn.model_selection import train_test_split import tensorflow as tf import os from tensorflow import keras from sklearn.preprocessing import LabelEncoder from tensorflow.keras import layers from evaluation import Evaluator print(f"Tensorflow version: {tf._...
30.107383
83
0.716674
7986897855e3673f18878851e3c61707b1ee895c
8,504
py
Python
src/waldur_mastermind/marketplace_flows/serializers.py
ServerAnt/Billing-Backend
3d058d96672bd6c860eb17a195a1eb122dc5dd3e
[ "MIT" ]
26
2017-10-18T13:49:58.000Z
2021-09-19T04:44:09.000Z
src/waldur_mastermind/marketplace_flows/serializers.py
ServerAnt/Billing-Backend
3d058d96672bd6c860eb17a195a1eb122dc5dd3e
[ "MIT" ]
14
2018-12-10T14:14:51.000Z
2021-06-07T10:33:39.000Z
src/waldur_mastermind/marketplace_flows/serializers.py
ServerAnt/Billing-Backend
3d058d96672bd6c860eb17a195a1eb122dc5dd3e
[ "MIT" ]
32
2017-09-24T03:10:45.000Z
2021-10-16T16:41:09.000Z
from django.utils.translation import gettext_lazy as _ from rest_framework import exceptions as rf_exceptions from rest_framework import serializers from waldur_core.structure.models import CUSTOMER_DETAILS_FIELDS from waldur_core.structure.serializers import ( CountrySerializerMixin, ProjectDetailsSerializerM...
34.569106
88
0.617239
798689cc6439108c723989a15ebbe8bc611e1087
8,442
py
Python
scripts/venv/lib/python2.7/site-packages/cogent/app/cmfinder.py
sauloal/cnidaria
fe6f8c8dfed86d39c80f2804a753c05bb2e485b4
[ "MIT" ]
3
2015-11-20T08:44:42.000Z
2016-12-14T01:40:03.000Z
scripts/venv/lib/python2.7/site-packages/cogent/app/cmfinder.py
sauloal/cnidaria
fe6f8c8dfed86d39c80f2804a753c05bb2e485b4
[ "MIT" ]
1
2017-09-04T14:04:32.000Z
2020-05-26T19:04:00.000Z
scripts/venv/lib/python2.7/site-packages/cogent/app/cmfinder.py
sauloal/cnidaria
fe6f8c8dfed86d39c80f2804a753c05bb2e485b4
[ "MIT" ]
null
null
null
#!/usr/bin/env python """Provides application controller for CMfinder v0.2""" import os from cogent.app.util import CommandLineApplication, \ CommandLineAppResult, ResultPath from cogent.app.parameters import Parameter, FlagParameter, ValuedParameter,\ MixedParameter,Parameters from sys import exit from os...
38.372727
80
0.462923
79868a40960db0ba9361cffa567a6bd736919aff
289
py
Python
adventofcode/tests/y2021/test_2021_01.py
andreasbjornstrom/adventofcode-python
71db65568bf0f327dd56e5e1c7488e356a24f403
[ "MIT" ]
null
null
null
adventofcode/tests/y2021/test_2021_01.py
andreasbjornstrom/adventofcode-python
71db65568bf0f327dd56e5e1c7488e356a24f403
[ "MIT" ]
null
null
null
adventofcode/tests/y2021/test_2021_01.py
andreasbjornstrom/adventofcode-python
71db65568bf0f327dd56e5e1c7488e356a24f403
[ "MIT" ]
null
null
null
''' Test for year 2021, day 1 solution. Run tests from project root with `PYTHONPATH=$(pwd) py.test`. ''' from adventofcode.solutions.y2021.d01 import run data = """199 200 208 210 200 207 240 269 260 263 """ def test_run() -> None: # not yet implemented! assert run(data) == (7, 5)
13.136364
61
0.678201
79868a6842637507e1ebea2acbf23121c0a2bb5e
7,784
py
Python
mmocr/datasets/kie_dataset.py
jeffreykuang/mmocr-1
b17304edeb493b0a4d7224c23d23b952350d0db5
[ "Apache-2.0" ]
4
2021-07-18T22:31:57.000Z
2021-07-18T22:36:45.000Z
mmocr/datasets/kie_dataset.py
jeffreykuang/mmocr-1
b17304edeb493b0a4d7224c23d23b952350d0db5
[ "Apache-2.0" ]
null
null
null
mmocr/datasets/kie_dataset.py
jeffreykuang/mmocr-1
b17304edeb493b0a4d7224c23d23b952350d0db5
[ "Apache-2.0" ]
1
2021-04-16T02:01:26.000Z
2021-04-16T02:01:26.000Z
import copy from os import path as osp import numpy as np import torch import mmocr.utils as utils from mmdet.datasets.builder import DATASETS from mmocr.core import compute_f1_score from mmocr.datasets.base_dataset import BaseDataset from mmocr.datasets.pipelines.crop import sort_vertex @DATASETS.register_module()...
35.543379
79
0.562564
79868ad1c6e498a40762b7f4a862fdd7837d1aed
2,378
py
Python
catkin_ws/src/parallel_autonomy/src/annotate_bag_node.py
DiegoOrtegoP/Software
4a07dd2dab29db910ca2e26848fa6b53b7ab00cd
[ "CC-BY-2.0" ]
12
2016-04-14T12:21:46.000Z
2021-06-18T07:51:40.000Z
catkin_ws/src/parallel_autonomy/src/annotate_bag_node.py
DiegoOrtegoP/Software
4a07dd2dab29db910ca2e26848fa6b53b7ab00cd
[ "CC-BY-2.0" ]
14
2017-03-03T23:33:05.000Z
2018-04-03T18:07:53.000Z
catkin_ws/src/parallel_autonomy/src/annotate_bag_node.py
DiegoOrtegoP/Software
4a07dd2dab29db910ca2e26848fa6b53b7ab00cd
[ "CC-BY-2.0" ]
113
2016-05-03T06:11:42.000Z
2019-06-01T14:37:38.000Z
#!/usr/bin/env python import rospy import rosbag from std_msgs.msg import String from os.path import basename class AnnotateBagNode(object): def __init__(self): self.node_name = 'annotate_bag_node' rospy.loginfo("[%s] has started", self.node_name) self.topicin = self.setupParam("~topicin"...
44.037037
86
0.613961
79868b0b76c50477b9bc5fc0775b1aed3dadc623
6,571
py
Python
frappe/tests/ui_test_helpers.py
bahaou/frappe
53d4ddca43b114414f1b81c58944064559a3e823
[ "MIT" ]
1
2021-12-11T04:06:44.000Z
2021-12-11T04:06:44.000Z
frappe/tests/ui_test_helpers.py
bahaou/frappe
53d4ddca43b114414f1b81c58944064559a3e823
[ "MIT" ]
5
2021-09-08T20:31:36.000Z
2021-09-08T20:32:10.000Z
frappe/tests/ui_test_helpers.py
bahaou/frappe
53d4ddca43b114414f1b81c58944064559a3e823
[ "MIT" ]
null
null
null
import frappe from frappe import _ from frappe.utils import add_to_date, now @frappe.whitelist() def create_if_not_exists(doc): '''Create records if they dont exist. Will check for uniqueness by checking if a record exists with these field value pairs :param doc: dict of field value pairs. can be a list of dict fo...
25.468992
92
0.678588
79868b3ceb98c60f290006836c0df3ee44cd4987
14,021
py
Python
test/geometry/test_pinhole.py
jiangwei221/kornia
a211d4952355e440b944b1bda8eed4c2a7457c2d
[ "Apache-2.0" ]
null
null
null
test/geometry/test_pinhole.py
jiangwei221/kornia
a211d4952355e440b944b1bda8eed4c2a7457c2d
[ "Apache-2.0" ]
null
null
null
test/geometry/test_pinhole.py
jiangwei221/kornia
a211d4952355e440b944b1bda8eed4c2a7457c2d
[ "Apache-2.0" ]
null
null
null
import pytest import torch import kornia as kornia from torch.autograd import gradcheck from torch.testing import assert_allclose import utils # test utilities from common import device_type class TestPinholeCamera: def _create_intrinsics(self, batch_size, fx, fy, cx, cy): intrinsics = torch.eye(4).exp...
37.190981
77
0.617074
79868c38bf75e2606a5a7767b785d5d05e6801dc
898
py
Python
tests/integration/simulacron/__init__.py
mbautin/cassandra-python-driver
4a8d18b568780531a06efb6d5acbe65fd2ae2afc
[ "Apache-2.0" ]
null
null
null
tests/integration/simulacron/__init__.py
mbautin/cassandra-python-driver
4a8d18b568780531a06efb6d5acbe65fd2ae2afc
[ "Apache-2.0" ]
1
2018-02-13T14:27:18.000Z
2018-02-13T14:45:22.000Z
tests/integration/simulacron/__init__.py
mbautin/cassandra-python-driver
4a8d18b568780531a06efb6d5acbe65fd2ae2afc
[ "Apache-2.0" ]
null
null
null
# Copyright DataStax, 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 writing, softwa...
29.933333
77
0.757238
79868c7c94be91b9d247bb572fd0fd4ce673dc96
1,919
py
Python
coldtype/pens/drawablepen.py
rohernandezz/coldtype
724234fce454699a469d17b6c78ae50fa8138169
[ "Apache-2.0" ]
142
2020-06-12T17:01:58.000Z
2022-03-16T23:21:37.000Z
coldtype/pens/drawablepen.py
rohernandezz/coldtype
724234fce454699a469d17b6c78ae50fa8138169
[ "Apache-2.0" ]
35
2020-04-15T15:34:54.000Z
2022-03-19T20:26:47.000Z
coldtype/pens/drawablepen.py
rohernandezz/coldtype
724234fce454699a469d17b6c78ae50fa8138169
[ "Apache-2.0" ]
14
2020-06-23T18:56:46.000Z
2022-03-31T15:54:56.000Z
# Mixin for attribute-application from coldtype.pens.draftingpen import DraftingPen from coldtype.color import Gradient, Color class DrawablePenMixin(object): def print(self, *args): for a in args: if callable(a): print(a(self)) else: print(a) ...
32.525424
89
0.53309
79868d4706d878c4ae4f84e8b4d329845a783697
2,630
py
Python
tests/test_vote_ensemble.py
function2-llx/MONAI
4cddaa830b61b88ec78e089bb5f21e05bb1a78f4
[ "Apache-2.0" ]
3
2020-06-22T20:59:14.000Z
2021-04-09T21:24:45.000Z
tests/test_vote_ensemble.py
Borda/MONAI
e0db5a564225a7cb62e7a23df97267019006302f
[ "Apache-2.0" ]
null
null
null
tests/test_vote_ensemble.py
Borda/MONAI
e0db5a564225a7cb62e7a23df97267019006302f
[ "Apache-2.0" ]
1
2020-05-27T12:53:58.000Z
2020-05-27T12:53:58.000Z
# Copyright (c) MONAI Consortium # 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, so...
31.686747
120
0.548289
79868d646c985e54db7d1c631c3c186ef4d7ca20
1,777
py
Python
plots/plot_temporalincoherence_local_flickering.py
HensoldtOptronicsCV/ImageQualityAssessment
7bb3af2cd20a32415966304c8fa3acb77c54f85d
[ "MIT" ]
8
2020-06-12T12:49:19.000Z
2021-04-27T12:10:49.000Z
plots/plot_temporalincoherence_local_flickering.py
HensoldtOptronicsCV/ImageQualityAssessment
7bb3af2cd20a32415966304c8fa3acb77c54f85d
[ "MIT" ]
null
null
null
plots/plot_temporalincoherence_local_flickering.py
HensoldtOptronicsCV/ImageQualityAssessment
7bb3af2cd20a32415966304c8fa3acb77c54f85d
[ "MIT" ]
5
2020-04-18T11:30:47.000Z
2022-03-04T07:05:21.000Z
# MIT License # # Copyright (c) 2020 HENSOLDT # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights # to use, copy, modify, merge, pub...
41.325581
80
0.74395
79868e229302a2e1a4035bc72e2d1b3c3ddac1f3
3,475
py
Python
kiwi/firewall.py
jaywayjayway/kiwi
6f98fb7ee4e8e0b8450f4e826f74ef38e248966d
[ "Apache-2.0" ]
null
null
null
kiwi/firewall.py
jaywayjayway/kiwi
6f98fb7ee4e8e0b8450f4e826f74ef38e248966d
[ "Apache-2.0" ]
null
null
null
kiwi/firewall.py
jaywayjayway/kiwi
6f98fb7ee4e8e0b8450f4e826f74ef38e248966d
[ "Apache-2.0" ]
null
null
null
import logging import subprocess import defaults import iptables from exc import * import utils as logging LOG = logging.getLogger(__name__) class Firewall (object): '''This is a firewall driver for kiwi, the Kubernetes address manager. This driver operates by creating rules in the `mangle` table that wil...
33.413462
85
0.592518
79868ec826a859effbb1a3c43f57ce3db0223993
4,347
py
Python
tests/test_response_multiple.py
Stamper/django-ninja
39479db2937b0a8a918cfe1c0790ad7016db7edc
[ "MIT" ]
1
2021-05-02T13:26:13.000Z
2021-05-02T13:26:13.000Z
tests/test_response_multiple.py
Stamper/django-ninja
39479db2937b0a8a918cfe1c0790ad7016db7edc
[ "MIT" ]
null
null
null
tests/test_response_multiple.py
Stamper/django-ninja
39479db2937b0a8a918cfe1c0790ad7016db7edc
[ "MIT" ]
null
null
null
from ninja.errors import ConfigError import pytest from pydantic import ValidationError, BaseModel from ninja import NinjaAPI from ninja.responses import codes_2xx, codes_3xx from client import NinjaClient from typing import List, Union api = NinjaAPI() @api.get("/check_int", response={200: int}) def check_int(requ...
27.16875
86
0.601564
79868ee2fdd910ee29c7be687c12b7328f5b843a
28,038
py
Python
python_modules/dagster/dagster/core/host_representation/repository_location.py
pcherednichenko/dagster
56ff12be028931ce89a422ea4b388dc0c366469f
[ "Apache-2.0" ]
null
null
null
python_modules/dagster/dagster/core/host_representation/repository_location.py
pcherednichenko/dagster
56ff12be028931ce89a422ea4b388dc0c366469f
[ "Apache-2.0" ]
null
null
null
python_modules/dagster/dagster/core/host_representation/repository_location.py
pcherednichenko/dagster
56ff12be028931ce89a422ea4b388dc0c366469f
[ "Apache-2.0" ]
null
null
null
import datetime import sys import threading from abc import abstractmethod, abstractproperty from contextlib import AbstractContextManager from typing import TYPE_CHECKING, Any, Dict, List, Optional, Union, cast from dagster import check from dagster.api.get_server_id import sync_get_server_id from dagster.api.list_re...
37.787062
112
0.702832
79868eeea4f2bf5661fa5615e2ee93e3c6030987
388
py
Python
super/wsgi.py
KageniJK/supaa
9cc8421429fcf8b5249f6b7aa6a25badbee8a824
[ "MIT" ]
6
2019-05-13T09:11:44.000Z
2020-12-09T08:14:13.000Z
super/wsgi.py
ZHAISHENKING/super
00c28b5ae5e76e20be7d74794cc1f610d2e8626c
[ "Apache-2.0" ]
22
2019-05-08T03:47:39.000Z
2022-01-13T00:47:47.000Z
super/wsgi.py
KageniJK/supaa
9cc8421429fcf8b5249f6b7aa6a25badbee8a824
[ "MIT" ]
7
2019-04-08T05:58:22.000Z
2020-12-30T01:17:52.000Z
""" WSGI config for super project. It exposes the WSGI callable as a module-level variable named ``application``. For more information on this file, see https://docs.djangoproject.com/en/1.11/howto/deployment/wsgi/ """ import os from django.core.wsgi import get_wsgi_application os.environ.setdefault("DJANGO_SETTIN...
22.823529
78
0.783505
79868fc00a1da0aa605a7cca3fe3d775cb6f53b1
6,209
py
Python
training/standard_callbacks.py
chapter09/open_lth
53403fdb3fb82b833e336cf36b0292bfed61820a
[ "MIT" ]
null
null
null
training/standard_callbacks.py
chapter09/open_lth
53403fdb3fb82b833e336cf36b0292bfed61820a
[ "MIT" ]
null
null
null
training/standard_callbacks.py
chapter09/open_lth
53403fdb3fb82b833e336cf36b0292bfed61820a
[ "MIT" ]
null
null
null
# 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. import time import torch from ..datasets.base import DataLoader from ..foundations import hparams from ..foundations.step import Step from ..p...
41.952703
113
0.687711
798690e19985c9565e045a1ed5dc54e93a3faa3c
691
py
Python
run.py
yananren2137/huawei-ai-food-challenge
9e548813278cdbed1432b88d18d144c1bbb1a269
[ "Apache-2.0" ]
13
2020-05-09T03:44:18.000Z
2020-12-16T02:21:38.000Z
run.py
yananren2137/huawei-ai-food-challenge
9e548813278cdbed1432b88d18d144c1bbb1a269
[ "Apache-2.0" ]
3
2020-05-08T05:13:46.000Z
2020-08-06T09:21:15.000Z
run.py
yananren2137/huawei-ai-food-challenge
9e548813278cdbed1432b88d18d144c1bbb1a269
[ "Apache-2.0" ]
5
2020-05-09T07:30:00.000Z
2020-08-02T14:54:40.000Z
import os stage1 = 'python -u ./source_code/train.py' stage2 = "python -u ./source_code/train.py --batch_size=16 --lr=5e-5 --image_size=500\ --weight_decay=1e-4 --resize_scale=0.6 --erasing_prob=0.3 \ --model_path='./source_code/checkpoint/best_model_400.pth'" stage3 = "python -u ./source_code/train.py --batch_si...
27.64
86
0.657019
798690eeea527c3b7c2d4c61c64ec3e679e70aba
604
py
Python
FusionIIIT/Fusion/celery.py
ssaksham9/Fusion
f1e405b457dba399411a2ddb79a9068746c05057
[ "bzip2-1.0.6" ]
29
2019-02-20T15:35:33.000Z
2022-03-22T11:10:57.000Z
FusionIIIT/Fusion/celery.py
ssaksham9/Fusion
f1e405b457dba399411a2ddb79a9068746c05057
[ "bzip2-1.0.6" ]
409
2019-01-17T19:30:51.000Z
2022-03-31T16:28:45.000Z
FusionIIIT/Fusion/celery.py
ssaksham9/Fusion
f1e405b457dba399411a2ddb79a9068746c05057
[ "bzip2-1.0.6" ]
456
2019-01-12T11:01:13.000Z
2022-03-30T17:06:52.000Z
#!/usr/bin/env python from __future__ import absolute_import import os from celery import Celery from django.conf import settings # set the default Django settings module for the 'celery' program. os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'Fusion.settings') app = Celery('Fusion') # Using a string here means t...
27.454545
66
0.778146
798691920643327fc38f9a5828d92f4c1771b330
975
py
Python
Python/QTPlot/mplWidget.py
zxpatric/Sandbox
af8b7b633a097de747243a119882fed4779b7c81
[ "MIT" ]
null
null
null
Python/QTPlot/mplWidget.py
zxpatric/Sandbox
af8b7b633a097de747243a119882fed4779b7c81
[ "MIT" ]
null
null
null
Python/QTPlot/mplWidget.py
zxpatric/Sandbox
af8b7b633a097de747243a119882fed4779b7c81
[ "MIT" ]
null
null
null
# Imports from PyQt5 import QtWidgets from matplotlib.figure import Figure from matplotlib.backends.backend_qt5agg import FigureCanvasQTAgg as Canvas import matplotlib # Ensure using PyQt5 backend matplotlib.use('QT5Agg') # Matplotlib canvas class to create figure class MplCanvas(Canvas): def __init__(self): ...
33.62069
100
0.711795
798691af30d78741af4033cebe05dfd9ac17dbb6
1,859
py
Python
controller/session.py
euxhenh/cellar
679387216043f3d287ea29a15f78868f412d2948
[ "MIT" ]
null
null
null
controller/session.py
euxhenh/cellar
679387216043f3d287ea29a15f78868f412d2948
[ "MIT" ]
null
null
null
controller/session.py
euxhenh/cellar
679387216043f3d287ea29a15f78868f412d2948
[ "MIT" ]
null
null
null
import dash import os from dash import dcc from dash.dependencies import Input, Output, State from dash.exceptions import PreventUpdate from flask import request from app import app, logger, dbroot @app.callback( Output("export-session-d", "data"), Input("export-session-btn", "n_clicks"), State("active-p...
24.786667
76
0.66057
79869210533c1aae7d2b95841d290e2a3389791d
2,253
py
Python
makesense/utils.py
sieben/makesense
485e71903bcc9446482f21bb5d0c7a392ca1efca
[ "Apache-2.0" ]
5
2015-02-03T12:28:55.000Z
2019-03-20T08:11:22.000Z
makesense/utils.py
sieben/makesense
485e71903bcc9446482f21bb5d0c7a392ca1efca
[ "Apache-2.0" ]
4
2016-05-16T07:26:19.000Z
2016-06-23T22:22:10.000Z
makesense/utils.py
sieben/makesense
485e71903bcc9446482f21bb5d0c7a392ca1efca
[ "Apache-2.0" ]
1
2016-05-16T07:28:53.000Z
2016-05-16T07:28:53.000Z
# -*- coding: utf-8 -*- """ Useful functions for testing and sending traffic towards a node """ from contextlib import contextmanager import fnmatch import logging import os import shutil import socket import telnetlib from . import PJ from .settings import EXPERIMENTS_FOLDER, TEMPLATE_ENV @contextmanager def igno...
24.758242
77
0.619618
79869216bcfd6a50fe533f35ae8b357ce3ffcbd4
10,294
py
Python
docs/conf.py
exemplarysoftware/thecut-authorship
9ec67d2aa38b0c1851e754798f5aeca102987215
[ "Apache-2.0" ]
2
2016-08-21T00:11:02.000Z
2016-08-31T05:18:54.000Z
docs/conf.py
exemplarysoftware/thecut-authorship
9ec67d2aa38b0c1851e754798f5aeca102987215
[ "Apache-2.0" ]
null
null
null
docs/conf.py
exemplarysoftware/thecut-authorship
9ec67d2aa38b0c1851e754798f5aeca102987215
[ "Apache-2.0" ]
4
2016-08-17T01:37:15.000Z
2020-12-02T10:41:36.000Z
# -*- coding: utf-8 -*- # # thecut-authorship documentation build configuration file, created by # sphinx-quickstart on Wed Jun 29 10:25:18 2016. # # This file is execfile()d with the current directory set to its # containing dir. # # Note that not all possible configuration values are present in this # autogenerated f...
28.91573
80
0.706722
79869289eb2126eb93ee71192736b4f63e96219e
453
py
Python
test.py
nightinwhite/My_NN
f982ac75fd8029442e156ce65b65df541309c6ff
[ "Apache-2.0" ]
null
null
null
test.py
nightinwhite/My_NN
f982ac75fd8029442e156ce65b65df541309c6ff
[ "Apache-2.0" ]
null
null
null
test.py
nightinwhite/My_NN
f982ac75fd8029442e156ce65b65df541309c6ff
[ "Apache-2.0" ]
null
null
null
import os print ord("a"), ord("A") tmp_line = "" tmp_seq = "" for i in range(10): tmp_line += "\'{0}\':{1},".format(i,i) tmp_seq += "{0}".format(i) for i in range(ord("a"), ord("a")+26): tmp_line += "\'{0}\':{1},".format(chr(i),i-ord("a")+10) tmp_seq += "{0}".format(chr(i)) for i in range(ord("A"),ord("...
30.2
59
0.527594
798693ad5c40862b270b650ca86bbf0d0edc4edc
2,328
py
Python
ecl/image/v2/member.py
keiichi-hikita/eclsdk
c43afb982fd54eb1875cdc22d46044644d804c4a
[ "Apache-2.0" ]
5
2017-04-07T06:23:04.000Z
2019-11-19T00:52:34.000Z
ecl/image/v2/member.py
keiichi-hikita/eclsdk
c43afb982fd54eb1875cdc22d46044644d804c4a
[ "Apache-2.0" ]
16
2018-09-12T11:14:40.000Z
2021-04-19T09:02:44.000Z
ecl/image/v2/member.py
keiichi-hikita/eclsdk
c43afb982fd54eb1875cdc22d46044644d804c4a
[ "Apache-2.0" ]
14
2017-05-11T14:26:26.000Z
2021-07-14T14:00:06.000Z
# Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under t...
36.375
77
0.682131
798695f01dbc57babaeee8e21ca2b5771eacdabf
23,113
py
Python
ai4water/preprocessing/transformations/_main.py
csiro-hydroinformatics/AI4Water
cdb18bd4bf298f77b381f1829045a1e790146985
[ "MIT" ]
12
2020-10-13T08:23:17.000Z
2021-01-22T04:36:21.000Z
ai4water/preprocessing/transformations/_main.py
csiro-hydroinformatics/AI4Water
cdb18bd4bf298f77b381f1829045a1e790146985
[ "MIT" ]
1
2020-10-15T02:42:52.000Z
2020-10-15T02:51:07.000Z
ai4water/preprocessing/transformations/_main.py
csiro-hydroinformatics/AI4Water
cdb18bd4bf298f77b381f1829045a1e790146985
[ "MIT" ]
2
2020-11-23T04:45:38.000Z
2020-11-26T10:12:34.000Z
import warnings from typing import Union import numpy as np import pandas as pd from sklearn.decomposition import PCA, KernelPCA, IncrementalPCA, FastICA, SparsePCA try: from PyEMD import EMD, EEMD except ModuleNotFoundError: EMD, EEMD = None, None from ai4water.utils.utils import dateandtime_now from ._tra...
37.828151
129
0.593389
798696b4b73335423bb28e3d0ea303f50db53c8e
21,486
py
Python
gluon/gluoncv2/models/darts.py
oliviaweng/imgclsmob
80fffbb46f986614b162c725b21f3d208597ac77
[ "MIT" ]
2
2020-11-14T08:40:41.000Z
2021-11-08T09:30:41.000Z
gluon/gluoncv2/models/darts.py
ibrahim85/Sandbox-for-training-convolutional-networks-for-computer-vision
a1f1f52eecbb841fa878bff4d3c311b79864835d
[ "MIT" ]
null
null
null
gluon/gluoncv2/models/darts.py
ibrahim85/Sandbox-for-training-convolutional-networks-for-computer-vision
a1f1f52eecbb841fa878bff4d3c311b79864835d
[ "MIT" ]
2
2020-09-01T12:22:50.000Z
2020-10-24T22:02:35.000Z
""" DARTS for ImageNet-1K, implemented in Gluon. Original paper: 'DARTS: Differentiable Architecture Search,' https://arxiv.org/abs/1806.09055. """ __all__ = ['DARTS', 'darts'] import os from mxnet import cpu from mxnet.gluon import nn, HybridBlock from mxnet.gluon.contrib.nn import Identity from .common impo...
28.956873
115
0.555525
798697007db6f6bd9003512b0533ac38aab3b223
2,168
py
Python
power_ranker/web/power_plot.py
rynemcarbone/power_ranker
7956c660022c5e5c149f7c5e2b55d9cd0356291b
[ "MIT" ]
null
null
null
power_ranker/web/power_plot.py
rynemcarbone/power_ranker
7956c660022c5e5c149f7c5e2b55d9cd0356291b
[ "MIT" ]
null
null
null
power_ranker/web/power_plot.py
rynemcarbone/power_ranker
7956c660022c5e5c149f7c5e2b55d9cd0356291b
[ "MIT" ]
null
null
null
import matplotlib.pyplot as plt import numpy as np #_____________________________________ def make_power_plot(teams, year, week): '''Make plot of power ranking versus average score''' scores = [] owners = [] powers = [] colors = [] # Tier colors c = [(133/255.,205/255.,242/255.), (122/255.,201...
29.297297
99
0.630996
798697352e04f36639d90c64c5993bfedc75c217
14,145
py
Python
tests/test_stdgates.py
go-bears/quantumflow
4e02de5c575d113599aaa787153afd73382228db
[ "Apache-2.0" ]
null
null
null
tests/test_stdgates.py
go-bears/quantumflow
4e02de5c575d113599aaa787153afd73382228db
[ "Apache-2.0" ]
1
2021-06-25T15:18:31.000Z
2021-06-25T15:18:31.000Z
tests/test_stdgates.py
go-bears/quantumflow
4e02de5c575d113599aaa787153afd73382228db
[ "Apache-2.0" ]
null
null
null
# Copyright 2016-2018, Rigetti Computing # # This source code is licensed under the Apache License, Version 2.0 found in # the LICENSE.txt file in the root directory of this source tree. """ Unit tests for quantumflow.stdgates """ import random from math import pi import numpy as np import quantumflow as qf from . ...
27.681018
77
0.587063
798697a675b76135db47e543dd36ff449ea2c667
6,793
py
Python
patterns/ml_gateway/helpers/feature_store.py
pollyrolly/amazon-sagemaker-examples
b1a56b4dc96201b769f7bbc1e207649423874586
[ "Apache-2.0" ]
2,610
2020-10-01T14:14:53.000Z
2022-03-31T18:02:31.000Z
patterns/ml_gateway/helpers/feature_store.py
pollyrolly/amazon-sagemaker-examples
b1a56b4dc96201b769f7bbc1e207649423874586
[ "Apache-2.0" ]
1,959
2020-09-30T20:22:42.000Z
2022-03-31T23:58:37.000Z
patterns/ml_gateway/helpers/feature_store.py
pollyrolly/amazon-sagemaker-examples
b1a56b4dc96201b769f7bbc1e207649423874586
[ "Apache-2.0" ]
2,052
2020-09-30T22:11:46.000Z
2022-03-31T23:02:51.000Z
import sys import time from sagemaker.feature_store.feature_definition import FeatureDefinition from sagemaker.feature_store.feature_group import FeatureGroup class StatusIndicator: def __init__(self): self.previous_status = None self.need_newline = False def update(self, status): if ...
31.742991
94
0.651995
798697e7aa69df27099db73a57313b5ffeb6a15f
29,898
py
Python
parsl/executors/high_throughput/interchange.py
exalearn/parsl
f50a4a10783301f536a5b656483b519d9ad924e4
[ "Apache-2.0" ]
null
null
null
parsl/executors/high_throughput/interchange.py
exalearn/parsl
f50a4a10783301f536a5b656483b519d9ad924e4
[ "Apache-2.0" ]
null
null
null
parsl/executors/high_throughput/interchange.py
exalearn/parsl
f50a4a10783301f536a5b656483b519d9ad924e4
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python import argparse import zmq import os import sys import platform import random import time import datetime import pickle import logging import queue import threading import json from parsl.version import VERSION as PARSL_VERSION from parsl.serialize import ParslSerializer serialize_object = ParslS...
45.715596
155
0.562044
79869a834ece0304e32c15d3942c4cba10a694c3
1,055
py
Python
problems/leetcode.com/two-sum/two-sum-0.py
9oelM/rdsa
939821fbb13229b1ea9c95997654386da7abdbac
[ "MIT" ]
null
null
null
problems/leetcode.com/two-sum/two-sum-0.py
9oelM/rdsa
939821fbb13229b1ea9c95997654386da7abdbac
[ "MIT" ]
null
null
null
problems/leetcode.com/two-sum/two-sum-0.py
9oelM/rdsa
939821fbb13229b1ea9c95997654386da7abdbac
[ "MIT" ]
null
null
null
# https://leetcode.com/problems/two-sum/ # Given an array of integers nums and an integer target, return indices of the two numbers such that they add up to target. # You may assume that each input would have exactly one solution, and you may not use the same element twice. # You can return the answer in any order. f...
42.2
123
0.680569
79869aaa4493125ef52e57aad4bad8cd95e3c37f
8,638
py
Python
synapse/util/retryutils.py
hailzam/synapse
837293c314b47e988fe9532115476a6536cd6406
[ "Apache-2.0" ]
null
null
null
synapse/util/retryutils.py
hailzam/synapse
837293c314b47e988fe9532115476a6536cd6406
[ "Apache-2.0" ]
null
null
null
synapse/util/retryutils.py
hailzam/synapse
837293c314b47e988fe9532115476a6536cd6406
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # Copyright 2015, 2016 OpenMarket Ltd # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
36.757447
87
0.629312
79869b739b749c671d3fb766b971aa55f411f16d
14,817
py
Python
srd20/migrations/0024_auto__add_monsterability.py
machinalis/django-srd20
00c969cbe9353128e681c308bdc6810dfbd46b70
[ "BSD-3-Clause" ]
16
2015-04-12T00:57:49.000Z
2018-07-24T16:06:55.000Z
srd20/migrations/0024_auto__add_monsterability.py
machinalis/django-srd20
00c969cbe9353128e681c308bdc6810dfbd46b70
[ "BSD-3-Clause" ]
null
null
null
srd20/migrations/0024_auto__add_monsterability.py
machinalis/django-srd20
00c969cbe9353128e681c308bdc6810dfbd46b70
[ "BSD-3-Clause" ]
5
2015-07-04T14:39:00.000Z
2018-07-24T16:06:57.000Z
# encoding: utf-8 import datetime from south.db import db from south.v2 import SchemaMigration from django.db import models class Migration(SchemaMigration): def forwards(self, orm): # Adding model 'MonsterAbility' db.create_table('srd20_monsterability', ( ('id', self.gf('djan...
80.091892
126
0.559088
79869be71cd26dc6c494a39c334dc28891966e20
5,393
py
Python
evalml/tests/objective_tests/test_objectives.py
ObinnaObeleagu/evalml
3b5bf62b08a5a5bc6485ba5387a08c32e1857473
[ "BSD-3-Clause" ]
1
2021-07-28T14:20:35.000Z
2021-07-28T14:20:35.000Z
evalml/tests/objective_tests/test_objectives.py
ObinnaObeleagu/evalml
3b5bf62b08a5a5bc6485ba5387a08c32e1857473
[ "BSD-3-Clause" ]
null
null
null
evalml/tests/objective_tests/test_objectives.py
ObinnaObeleagu/evalml
3b5bf62b08a5a5bc6485ba5387a08c32e1857473
[ "BSD-3-Clause" ]
null
null
null
import numpy as np import pandas as pd import pytest from evalml.exceptions import ObjectiveCreationError, ObjectiveNotFoundError from evalml.objectives import ( BinaryClassificationObjective, CostBenefitMatrix, LogLossBinary, MulticlassClassificationObjective, RegressionObjective, get_all_obje...
33.08589
94
0.720935
79869c0bed9cde15c7dd28bdaa297eb2a909ebac
669
py
Python
tests/test_provider_utils.py
ktelegenov/spotify-downloader
8474feed1ab743f1f3fb523ba0fe6af9ea53d978
[ "MIT" ]
4,019
2020-09-30T08:35:29.000Z
2022-03-31T19:14:18.000Z
tests/test_provider_utils.py
ktelegenov/spotify-downloader
8474feed1ab743f1f3fb523ba0fe6af9ea53d978
[ "MIT" ]
669
2020-09-30T07:04:29.000Z
2022-03-31T11:40:24.000Z
tests/test_provider_utils.py
ktelegenov/spotify-downloader
8474feed1ab743f1f3fb523ba0fe6af9ea53d978
[ "MIT" ]
551
2020-09-30T12:10:53.000Z
2022-03-31T00:09:34.000Z
from spotdl.providers.provider_utils import _parse_duration def test_parse_duration(): """ Test the duration parsing """ assert _parse_duration("3:16") == float(196.0) # 3 min song assert _parse_duration("20") == float(20.0) # 20 second song assert _parse_duration("25:59") == float(1559.0) ...
39.352941
74
0.657698
79869dd370836fa464924663854e9d8244be7a63
8,038
py
Python
core/model/metric/adm.py
Aamer98/LibFewShot
b5153d3d64c034a93b130eab3a8d4fa5926a0873
[ "MIT" ]
1
2021-11-07T03:34:41.000Z
2021-11-07T03:34:41.000Z
core/model/metric/adm.py
taylor1355/LibFewShot
c53b4ee3772c5c8033fd54aa73586091eee2d0b0
[ "MIT" ]
null
null
null
core/model/metric/adm.py
taylor1355/LibFewShot
c53b4ee3772c5c8033fd54aa73586091eee2d0b0
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ @inproceedings{DBLP:conf/ijcai/LiWHSGL20, author = {Wenbin Li and Lei Wang and Jing Huo and Yinghuan Shi and Yang Gao and Jiebo Luo}, title = {Asymmetric Distribution Measure for Few-shot Learning}, bookt...
38.830918
114
0.596666
79869de49d5c7bd1b0ca1c7d96e097ec54af5dd2
17,544
py
Python
nemo/collections/tts/models/talknet.py
bugface/NeMo
431c561380a120e9e164a4c9deed8f1ca9acace5
[ "Apache-2.0" ]
null
null
null
nemo/collections/tts/models/talknet.py
bugface/NeMo
431c561380a120e9e164a4c9deed8f1ca9acace5
[ "Apache-2.0" ]
null
null
null
nemo/collections/tts/models/talknet.py
bugface/NeMo
431c561380a120e9e164a4c9deed8f1ca9acace5
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2020, NVIDIA CORPORATION. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by appli...
42.071942
119
0.642898
79869e402bf82f4d9b76dc21bf509a31fd3edfb6
2,395
py
Python
src/core/tensorboard.py
anilyaris/EVE
0253f62bd6cbe88ee77e6ea9e62004c4984e7eae
[ "MIT" ]
59
2020-10-12T00:47:56.000Z
2022-03-20T21:19:40.000Z
src/core/tensorboard.py
Vincen-31/EVE
1b67be5331ffd70a9e4f34762535e443908c537e
[ "MIT" ]
5
2021-02-05T04:00:22.000Z
2021-06-28T07:30:30.000Z
src/core/tensorboard.py
Vincen-31/EVE
1b67be5331ffd70a9e4f34762535e443908c537e
[ "MIT" ]
20
2020-10-24T01:43:30.000Z
2022-03-24T22:34:37.000Z
"""Copyright 2020 ETH Zurich, Seonwook Park 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, publish, distr...
34.710145
78
0.735282
79869e5a7ed1579691a05d1da02d246fe9b2cb69
276
py
Python
comentarios/api/serializers.py
pjelelhml/pontosTuristicosAPI
90cb9fee71ea8858ca225789fa73d5f659618413
[ "MIT" ]
null
null
null
comentarios/api/serializers.py
pjelelhml/pontosTuristicosAPI
90cb9fee71ea8858ca225789fa73d5f659618413
[ "MIT" ]
null
null
null
comentarios/api/serializers.py
pjelelhml/pontosTuristicosAPI
90cb9fee71ea8858ca225789fa73d5f659618413
[ "MIT" ]
null
null
null
from rest_framework.serializers import ModelSerializer from comentarios.models import Comentario class ComentarioSerializer(ModelSerializer): class Meta: model = Comentario fields = [ 'id', 'usuario', 'comentario', 'data', 'aprovado' ]
30.666667
61
0.681159
79869e9df91c638c89da080a26badf8bdb100c1f
15,145
py
Python
PaddleCV/ocr_recognition/attention_model.py
Steffy-zxf/models
d79a28ebf45f30fb5e11cb8f9d9f8e4c8cacc98c
[ "Apache-2.0" ]
3
2019-04-29T09:12:21.000Z
2021-04-30T02:39:02.000Z
PaddleCV/ocr_recognition/attention_model.py
JFTong/models
9952b253645c03709d301788ab91e3c6a2c94670
[ "Apache-2.0" ]
2
2019-06-26T03:21:49.000Z
2019-09-19T09:43:42.000Z
PaddleCV/ocr_recognition/attention_model.py
JFTong/models
9952b253645c03709d301788ab91e3c6a2c94670
[ "Apache-2.0" ]
1
2019-07-25T12:54:05.000Z
2019-07-25T12:54:05.000Z
from __future__ import absolute_import from __future__ import division from __future__ import print_function import paddle.fluid as fluid import six decoder_size = 128 word_vector_dim = 128 max_length = 100 sos = 0 eos = 1 gradient_clip = 10 LR = 1.0 beam_size = 2 learning_rate_decay = None def conv_bn_pool(input, ...
40.603217
90
0.612413
79869ec587028f68429e56908c4a1fe1f3b7efe2
2,457
py
Python
test/test_bobject.py
zero-os/0-metadata
f316c55c7e041b5f37a6ab5791b28ed19bd46b1a
[ "Apache-2.0" ]
null
null
null
test/test_bobject.py
zero-os/0-metadata
f316c55c7e041b5f37a6ab5791b28ed19bd46b1a
[ "Apache-2.0" ]
18
2018-01-26T11:14:27.000Z
2018-02-16T16:15:42.000Z
test/test_bobject.py
zero-os/0-metadata
f316c55c7e041b5f37a6ab5791b28ed19bd46b1a
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python import unittest import random import json import requests from client import Client from client.bobject import bobject as tClass from .test_base import TestBase from .equality import bobjectEqual as equal CLASS='bobject' URLCLASS='/' + CLASS + '/%s' class BobjectTests(TestBase): def test_crea...
31.909091
115
0.614571
79869fb353e94a69af0756f49b00a120a7571c9b
18,978
py
Python
chives/util/file_keyring.py
zcomputerwiz/chives-light-wallet
b5f57f46bf4f804cc06a6e2bdf8cbde41bba2fe0
[ "Apache-2.0" ]
null
null
null
chives/util/file_keyring.py
zcomputerwiz/chives-light-wallet
b5f57f46bf4f804cc06a6e2bdf8cbde41bba2fe0
[ "Apache-2.0" ]
null
null
null
chives/util/file_keyring.py
zcomputerwiz/chives-light-wallet
b5f57f46bf4f804cc06a6e2bdf8cbde41bba2fe0
[ "Apache-2.0" ]
1
2022-03-20T16:19:04.000Z
2022-03-20T16:19:04.000Z
import base64 import fasteners import os import shutil import sys import threading import yaml from chives.util.default_root import DEFAULT_KEYS_ROOT_PATH from contextlib import contextmanager from cryptography.hazmat.primitives.ciphers.aead import ChaCha20Poly1305 # pyright: reportMissingModuleSource=false from func...
39.953684
116
0.668195
7986a062333a0e54b3e28fa22291b954191af4d9
5,010
py
Python
reporter.py
scaralbi/dnaplotlib
a1fdd12ac3f3df1b16a0351402b8fe4f29b388d9
[ "MIT" ]
null
null
null
reporter.py
scaralbi/dnaplotlib
a1fdd12ac3f3df1b16a0351402b8fe4f29b388d9
[ "MIT" ]
null
null
null
reporter.py
scaralbi/dnaplotlib
a1fdd12ac3f3df1b16a0351402b8fe4f29b388d9
[ "MIT" ]
null
null
null
import math import dnaplotlib as dpl import matplotlib.pyplot as plt from matplotlib import gridspec from matplotlib.patches import Polygon, Ellipse, Wedge, Circle, PathPatch from matplotlib.path import Path from matplotlib.lines import Line2D from matplotlib.patheffects import Stroke import matplotlib.patches as patch...
34.081633
167
0.686028
7986a0b57d6b68a883fa25cd7f53061a8dcd2055
2,121
py
Python
insights/parsers/cinder_log.py
mglantz/insights-core
6f20bbbe03f53ee786f483b2a28d256ff1ad0fd4
[ "Apache-2.0" ]
1
2020-02-19T06:36:22.000Z
2020-02-19T06:36:22.000Z
insights/parsers/cinder_log.py
mglantz/insights-core
6f20bbbe03f53ee786f483b2a28d256ff1ad0fd4
[ "Apache-2.0" ]
10
2018-04-16T15:38:04.000Z
2018-05-15T18:43:02.000Z
insights/parsers/cinder_log.py
mglantz/insights-core
6f20bbbe03f53ee786f483b2a28d256ff1ad0fd4
[ "Apache-2.0" ]
null
null
null
""" CinderVolumeLog - file ``/var/log/cinder/volume.log`` ===================================================== This is a standard log parser based on the LogFileOutput class. Sample input:: 2015-06-19 07:31:41.020 7947 DEBUG cinder.openstack.common.periodic_task [-] Running periodic task VolumeManager._publish_...
53.025
247
0.746346
7986a16ab6a15f7f756ceba5c537b884212f6bf8
1,317
py
Python
src/enamlnative/widgets/surface_view.py
codelv/enaml-native
04c3a015bcd649f374c5ecd98fcddba5e4fbdbdc
[ "MIT" ]
237
2017-09-15T19:31:45.000Z
2022-03-17T04:22:20.000Z
src/enamlnative/widgets/surface_view.py
codelv/enaml-native
04c3a015bcd649f374c5ecd98fcddba5e4fbdbdc
[ "MIT" ]
74
2017-09-06T20:16:41.000Z
2022-03-05T13:34:35.000Z
src/enamlnative/widgets/surface_view.py
codelv/enaml-native
04c3a015bcd649f374c5ecd98fcddba5e4fbdbdc
[ "MIT" ]
22
2017-09-15T19:32:11.000Z
2022-03-17T18:33:39.000Z
""" Copyright (c) 2017, Jairus Martin. Distributed under the terms of the MIT License. The full license is in the file LICENSE, distributed with this software. Created on May 9, 2018 @author: jrm """ from atom.api import Typed, ForwardTyped, Bool, observe from .view import View, ProxyView from enaml.core.declarativ...
27.4375
73
0.716021