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
996b48a39b54f3b9e694c00e5eb301ec37c4d6f5
3,783
py
Python
lhorizon/tests/test_lhorizon_online.py
arfon/lhorizon
de2fa9c8121b27da87a4e0613a7dd5ec0647d9fb
[ "BSD-3-Clause" ]
1
2021-03-14T16:18:45.000Z
2021-03-14T16:18:45.000Z
lhorizon/tests/test_lhorizon_online.py
arfon/lhorizon
de2fa9c8121b27da87a4e0613a7dd5ec0647d9fb
[ "BSD-3-Clause" ]
22
2021-07-16T12:59:39.000Z
2022-03-04T13:01:44.000Z
lhorizon/tests/test_lhorizon_online.py
arfon/lhorizon
de2fa9c8121b27da87a4e0613a7dd5ec0647d9fb
[ "BSD-3-Clause" ]
4
2021-07-10T06:34:52.000Z
2021-11-01T16:36:07.000Z
""" test LHorizon functionality using data retrieved live from the JPL Horizons CGI endpoint """ # TODO: mark this as slow using pytest.mark, only run if specifically indicated import logging import math import random from itertools import product import pytest from lhorizon.base import LHorizon from lhorizon.lhoriz...
32.895652
79
0.695215
84737b03e7b35cd6b1d469b092db463743660735
20,572
py
Python
dividemix/Train_webvision_parallel.py
Kthyeon/FINE
ae8a24a4a2514feafd9a9ed394af87f397708ccf
[ "MIT" ]
2
2021-12-22T02:25:00.000Z
2022-01-06T09:33:11.000Z
dividemix/Train_webvision_parallel.py
Kthyeon/FINE
ae8a24a4a2514feafd9a9ed394af87f397708ccf
[ "MIT" ]
null
null
null
dividemix/Train_webvision_parallel.py
Kthyeon/FINE
ae8a24a4a2514feafd9a9ed394af87f397708ccf
[ "MIT" ]
2
2021-10-01T14:39:06.000Z
2022-01-06T09:33:12.000Z
from __future__ import print_function import sys import torch import torch.nn as nn import torch.optim as optim import torch.nn.functional as F import torch.backends.cudnn as cudnn import random import os import sys import argparse import numpy as np from InceptionResNetV2 import * from sklearn.mixture import GaussianM...
41.392354
195
0.622059
a10fcfa2754868f95d919d802a839c5779ca8082
802
py
Python
PassManager/src/DBManager.py
SirRoberto/pass_manager
b7c9743808a1740d75509b9e9f1b048a1d7886dd
[ "MIT" ]
null
null
null
PassManager/src/DBManager.py
SirRoberto/pass_manager
b7c9743808a1740d75509b9e9f1b048a1d7886dd
[ "MIT" ]
null
null
null
PassManager/src/DBManager.py
SirRoberto/pass_manager
b7c9743808a1740d75509b9e9f1b048a1d7886dd
[ "MIT" ]
null
null
null
import time import mysql.connector class DBManager: def __init__(self, database='db_main', host="db", user="root", password_file=None): self.db = None self.sql = None pf = open(password_file, 'r') try: self.db = mysql.connector.connect( user=use...
34.869565
99
0.524938
00b3bd3e9ef2b35d382e8a025c18580ab6694f68
8,269
py
Python
ax/modelbridge/tests/test_stratified_standardize_y.py
viotemp1/Ax
87e2f33a02c745b40b2ea1332e649f298347f35d
[ "MIT" ]
1
2021-01-11T18:16:28.000Z
2021-01-11T18:16:28.000Z
ax/modelbridge/tests/test_stratified_standardize_y.py
viotemp1/Ax
87e2f33a02c745b40b2ea1332e649f298347f35d
[ "MIT" ]
1
2021-04-19T09:51:23.000Z
2021-04-19T09:51:23.000Z
ax/modelbridge/tests/test_stratified_standardize_y.py
viotemp1/Ax
87e2f33a02c745b40b2ea1332e649f298347f35d
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # 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. from copy import deepcopy import numpy as np from ax.core.metric import Metric from ax.core.objective import Objective...
37.757991
87
0.522554
6613c3bd24a36b24d61fef41e26574e7589e2470
24,465
py
Python
StochasticHeartbeat.py
dioptra-io/diamond-miner-wrapper
f204f5bebafba611ca9c21e49f8df211de1c7c11
[ "MIT" ]
2
2020-04-22T03:03:46.000Z
2020-10-14T02:53:33.000Z
StochasticHeartbeat.py
dioptra-io/diamond-miner-wrapper
f204f5bebafba611ca9c21e49f8df211de1c7c11
[ "MIT" ]
null
null
null
StochasticHeartbeat.py
dioptra-io/diamond-miner-wrapper
f204f5bebafba611ca9c21e49f8df211de1c7c11
[ "MIT" ]
null
null
null
import copy import getopt import os import json import socket import sys import time from Options import StochasticOptions from Database.Table import create_datebase, create_table, clean_table, dump_table_names from Kubernetes import ( create_pods, # test_ls, get_pods, delete_pods, kube_target_serv...
35.977941
94
0.539505
0f13c9e8b3bf22ac9e5967b31b80eb86cb114adc
84,992
py
Python
pytype/abstract.py
yang/pytype-hack
093d69c9a6f6144f0209cdeb8eed6c7e832bbee0
[ "Apache-2.0" ]
null
null
null
pytype/abstract.py
yang/pytype-hack
093d69c9a6f6144f0209cdeb8eed6c7e832bbee0
[ "Apache-2.0" ]
null
null
null
pytype/abstract.py
yang/pytype-hack
093d69c9a6f6144f0209cdeb8eed6c7e832bbee0
[ "Apache-2.0" ]
null
null
null
"""The abstract values used by typegraphvm. An abstract value in effect represents a type. Groups of types are combined using typegraph and that is what we compute over. """ # Because of false positives: # pylint: disable=unpacking-non-sequence # pylint: disable=abstract-method import collections import hashlib impo...
36.136054
100
0.672734
840f5a4e4c577d83eb89b31baf32992c9135a273
22,060
py
Python
COMMUNICATION/Utils.py
DobermannFW/PyHART
13014e73d53d7edbe34c5cc4c1648087e9309e7f
[ "MIT" ]
8
2020-12-28T15:34:35.000Z
2022-03-26T23:48:15.000Z
COMMUNICATION/Utils.py
DobermannFW/PyHART
13014e73d53d7edbe34c5cc4c1648087e9309e7f
[ "MIT" ]
4
2021-01-27T13:44:01.000Z
2022-03-29T12:37:16.000Z
COMMUNICATION/Utils.py
DobermannFW/PyHART
13014e73d53d7edbe34c5cc4c1648087e9309e7f
[ "MIT" ]
2
2022-02-23T12:16:25.000Z
2022-03-18T19:03:44.000Z
############################################################################### ############################################################################### ## ## PyHART - Master ## ############################################################################### #################################################...
35.695793
277
0.524615
595605e38b11fd2b351eb4c465287a4310159529
139,040
py
Python
nipype/interfaces/afni/preprocess.py
moloney/nipype
a7a9c85c79cb1412ba03406074f83200447ef50b
[ "Apache-2.0" ]
null
null
null
nipype/interfaces/afni/preprocess.py
moloney/nipype
a7a9c85c79cb1412ba03406074f83200447ef50b
[ "Apache-2.0" ]
null
null
null
nipype/interfaces/afni/preprocess.py
moloney/nipype
a7a9c85c79cb1412ba03406074f83200447ef50b
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # emacs: -*- mode: python; py-indent-offset: 4; indent-tabs-mode: nil -*- # vi: set ft=python sts=4 ts=4 sw=4 et: """AFNI preprocessing interfaces """ from __future__ import (print_function, division, unicode_literals, absolute_import) from builtins import open import os...
38.675939
184
0.619894
783baec59a64ae115179b3c39941d417827c68ed
5,425
py
Python
pupa/scrape/event.py
opencivicdata/pupa
8087e221fc527a80262192d22c2f50966c20604d
[ "BSD-3-Clause" ]
62
2015-01-08T05:46:46.000Z
2022-01-31T03:27:14.000Z
pupa/scrape/event.py
opencivicdata/pupa
8087e221fc527a80262192d22c2f50966c20604d
[ "BSD-3-Clause" ]
199
2015-01-10T03:19:37.000Z
2021-05-21T20:34:58.000Z
pupa/scrape/event.py
opencivicdata/pupa
8087e221fc527a80262192d22c2f50966c20604d
[ "BSD-3-Clause" ]
35
2015-03-09T19:41:42.000Z
2021-06-22T20:01:35.000Z
from ..utils import _make_pseudo_id from .base import BaseModel, SourceMixin, AssociatedLinkMixin, LinkMixin from .schemas.event import schema from pupa.exceptions import ScrapeValueError class EventAgendaItem(dict, AssociatedLinkMixin): event = None def __init__(self, description, event): super(Even...
37.673611
96
0.543226
b3621c35e9c2da67c84907d1e231cc799f104645
1,943
py
Python
dali/python/nvidia/dali/backend.py
ancientmooner/DALI
355e8db8130cee0d20e9ae3d698f195278544995
[ "ECL-2.0", "Apache-2.0" ]
11
2021-03-16T05:09:16.000Z
2022-03-29T12:48:44.000Z
dali/python/nvidia/dali/backend.py
ancientmooner/DALI
355e8db8130cee0d20e9ae3d698f195278544995
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
dali/python/nvidia/dali/backend.py
ancientmooner/DALI
355e8db8130cee0d20e9ae3d698f195278544995
[ "ECL-2.0", "Apache-2.0" ]
3
2021-05-08T16:51:55.000Z
2021-07-22T09:02:44.000Z
# Copyright (c) 2017-2018, NVIDIA CORPORATION. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by a...
38.098039
100
0.695317
ca75a48f2a77c6304530284e6cecf1690e996aad
10,858
py
Python
evaluation_hpatch/models/MTLDesc.py
vignywang/MTLDesc
852b43096a9275e6e2ce42381f05f01af8f44d1e
[ "MIT" ]
9
2021-12-07T04:20:22.000Z
2022-03-29T08:07:38.000Z
evaluation_hpatch/models/MTLDesc.py
vignywang/MTLDesc
852b43096a9275e6e2ce42381f05f01af8f44d1e
[ "MIT" ]
1
2022-03-29T02:07:44.000Z
2022-03-29T04:11:39.000Z
evaluation_hpatch/models/MTLDesc.py
vignywang/MTLDesc
852b43096a9275e6e2ce42381f05f01af8f44d1e
[ "MIT" ]
null
null
null
# # Created on 2020/2/25 # import os import sys sys.path.append("..") import cv2 as cv from nets import get_model from nets.network import * class Mtldesc(object): def __init__(self, **config): self.name = 'MTLDesc' self.config = { "detection_threshold": 0.9, "nms_dist": ...
35.139159
141
0.563271
e2d6e9725afb06434cd7f2a2c827e512c5ef2e28
7,048
py
Python
gcloud/tests/taskflow3/test_api.py
manlucas/atom
94963fc6fdfd0568473ee68e9d1631f421265359
[ "Apache-2.0" ]
null
null
null
gcloud/tests/taskflow3/test_api.py
manlucas/atom
94963fc6fdfd0568473ee68e9d1631f421265359
[ "Apache-2.0" ]
8
2020-06-06T00:34:57.000Z
2021-06-10T22:30:24.000Z
gcloud/tests/taskflow3/test_api.py
manlucas/atom
94963fc6fdfd0568473ee68e9d1631f421265359
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- """ Tencent is pleased to support the open source community by making 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available. Copyright (C) 2017-2019 THL A29 Limited, a Tencent company. All rights reserved. Licensed under the MIT License (the "License"); you may not use this file except in co...
35.77665
116
0.517168
8bef4030d290c3f05451cc951ec625239a716761
3,711
py
Python
lesson02/lesson02.py
aole/Neural-Singularity
6a9e73a4ca157a5cbd8ee548d9486c7a3d6950b1
[ "MIT" ]
1
2020-08-18T16:49:57.000Z
2020-08-18T16:49:57.000Z
lesson02/lesson02.py
aole/Neural-Singularity
6a9e73a4ca157a5cbd8ee548d9486c7a3d6950b1
[ "MIT" ]
null
null
null
lesson02/lesson02.py
aole/Neural-Singularity
6a9e73a4ca157a5cbd8ee548d9486c7a3d6950b1
[ "MIT" ]
null
null
null
# Web application framework import streamlit as st # deep learning library import torch # pretrained models from torchvision import models, transforms, datasets # handle image files from PIL import Image # decode json files import json # dealing with arrays? import numpy as np # one of the best libraries for handling d...
34.682243
90
0.725141
1e7f9e0ed013a9d9271b6d48e8fdb64c39c37f1c
1,462
py
Python
yt_dlp/WS_Extractor/yespornplease.py
evolution-ant/local-youtube-dl
e9be36e8cdc585c0e24a18c74d790b62af6e11a7
[ "Unlicense" ]
null
null
null
yt_dlp/WS_Extractor/yespornplease.py
evolution-ant/local-youtube-dl
e9be36e8cdc585c0e24a18c74d790b62af6e11a7
[ "Unlicense" ]
null
null
null
yt_dlp/WS_Extractor/yespornplease.py
evolution-ant/local-youtube-dl
e9be36e8cdc585c0e24a18c74d790b62af6e11a7
[ "Unlicense" ]
null
null
null
# encoding: utf-8 from ..extractor.common import InfoExtractor class YespornpleaseIE(InfoExtractor): _VALID_URL = r'https?://(?:www\.)?yespornplease\.com/view/(?P<id>\d+)' def _real_extract(self, url): # http://yespornplease.com/view/119147578 video_id = self._match_id(url) webpage =...
40.611111
90
0.577291
46b1a1ee0a798f30781c0baa7a2c3f7e47f7cb47
2,456
py
Python
InvenTree/InvenTree/exceptions.py
rkalman/InvenTree
8ceff063f86394cd1be9f5c57e6302b79782a526
[ "MIT" ]
null
null
null
InvenTree/InvenTree/exceptions.py
rkalman/InvenTree
8ceff063f86394cd1be9f5c57e6302b79782a526
[ "MIT" ]
null
null
null
InvenTree/InvenTree/exceptions.py
rkalman/InvenTree
8ceff063f86394cd1be9f5c57e6302b79782a526
[ "MIT" ]
null
null
null
""" Custom exception handling for the DRF API """ # -*- coding: utf-8 -*- from __future__ import unicode_literals import traceback import sys from django.conf import settings from django.core.exceptions import ValidationError as DjangoValidationError from django.utils.translation import gettext_lazy as _ from django...
31.896104
94
0.683632
0884508efc877cdc19e57b48b12d49889c822ed4
116
py
Python
apps/users/apps.py
kk6/sebastian
f01445c74ee621c26593b3806341dbfb62a32ffa
[ "MIT" ]
1
2020-10-21T18:57:04.000Z
2020-10-21T18:57:04.000Z
apps/users/apps.py
kk6/sebastian
f01445c74ee621c26593b3806341dbfb62a32ffa
[ "MIT" ]
null
null
null
apps/users/apps.py
kk6/sebastian
f01445c74ee621c26593b3806341dbfb62a32ffa
[ "MIT" ]
null
null
null
from django.apps import AppConfig class UsersConfig(AppConfig): """Users config class.""" name = "users"
14.5
33
0.681034
d4b101db532153c96680860fe72fa0091e9cff34
2,443
py
Python
crypto_wallet.py
GGCorrochano/Fintech_Finder
d66526d929f964e7cf5bf1701cf14f108aadfcc0
[ "BSD-2-Clause" ]
null
null
null
crypto_wallet.py
GGCorrochano/Fintech_Finder
d66526d929f964e7cf5bf1701cf14f108aadfcc0
[ "BSD-2-Clause" ]
null
null
null
crypto_wallet.py
GGCorrochano/Fintech_Finder
d66526d929f964e7cf5bf1701cf14f108aadfcc0
[ "BSD-2-Clause" ]
null
null
null
##Cryptocurrency Wallet ################################################################################ # This file contains the Ethereum transaction functions that you have created throughout this module’s lessons. By using import statements, you will integrate this `crypto_wallet.py` Python script into the Fintech ...
33.013514
285
0.649611
bc69e35db1f70df2feddb5ff9d44ec2138543c4e
6,891
py
Python
bindings/python/ensmallen_graph/datasets/string/chryseobacteriumoranimense.py
caufieldjh/ensmallen_graph
14e98b1cdbc73193a84a913d7d4f2b2b3eb2c43a
[ "MIT" ]
null
null
null
bindings/python/ensmallen_graph/datasets/string/chryseobacteriumoranimense.py
caufieldjh/ensmallen_graph
14e98b1cdbc73193a84a913d7d4f2b2b3eb2c43a
[ "MIT" ]
null
null
null
bindings/python/ensmallen_graph/datasets/string/chryseobacteriumoranimense.py
caufieldjh/ensmallen_graph
14e98b1cdbc73193a84a913d7d4f2b2b3eb2c43a
[ "MIT" ]
null
null
null
""" This file offers the methods to automatically retrieve the graph Chryseobacterium oranimense. The graph is automatically retrieved from the STRING repository. Report --------------------- At the time of rendering these methods (please see datetime below), the graph had the following characteristics: Datetime:...
36.078534
223
0.712378
1184fbc897e8cbae531a78b169aef4f0824a4aaf
437
py
Python
comments/migrations/0002_auto_20200322_2146.py
ntu-news-media-lab/taptalk
1119825f0a3a2bed3369e312605fa8445d7ea9a2
[ "MIT" ]
null
null
null
comments/migrations/0002_auto_20200322_2146.py
ntu-news-media-lab/taptalk
1119825f0a3a2bed3369e312605fa8445d7ea9a2
[ "MIT" ]
null
null
null
comments/migrations/0002_auto_20200322_2146.py
ntu-news-media-lab/taptalk
1119825f0a3a2bed3369e312605fa8445d7ea9a2
[ "MIT" ]
null
null
null
# Generated by Django 3.0.3 on 2020-03-22 13:46 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('comments', '0001_initial'), ] operations = [ migrations.AlterField( model_name='comment', name='comment_type', ...
23
104
0.581236
72af21d149dedcb8d33046c5bf1eaf6fa7793886
702
py
Python
test_db.py
RKelln/vid2frame
f985e1cfd2ec5c88b58da743995ca8d7f100ba5e
[ "Apache-2.0" ]
1
2022-01-12T18:42:04.000Z
2022-01-12T18:42:04.000Z
test_db.py
RKelln/vid2frame
f985e1cfd2ec5c88b58da743995ca8d7f100ba5e
[ "Apache-2.0" ]
null
null
null
test_db.py
RKelln/vid2frame
f985e1cfd2ec5c88b58da743995ca8d7f100ba5e
[ "Apache-2.0" ]
null
null
null
import argparse import sys import time from io import BytesIO import h5py import lmdb import numpy as np from PIL import Image from storage import STORAGE_TYPES if "__main__" == __name__: parser = argparse.ArgumentParser() parser.add_argument("--db_name", type=str, help="The database to store extracted frame...
24.206897
103
0.665242
e6646eec84d15dd50cf3944e1c0e4b34c334ec6d
5,420
py
Python
analyticsclient/tests/__init__.py
Jawayria/edx-analytics-data-api-client
1ff83fc0ab1f56032826157502d987ecc5ac2e82
[ "Apache-2.0" ]
null
null
null
analyticsclient/tests/__init__.py
Jawayria/edx-analytics-data-api-client
1ff83fc0ab1f56032826157502d987ecc5ac2e82
[ "Apache-2.0" ]
null
null
null
analyticsclient/tests/__init__.py
Jawayria/edx-analytics-data-api-client
1ff83fc0ab1f56032826157502d987ecc5ac2e82
[ "Apache-2.0" ]
1
2021-03-09T03:42:44.000Z
2021-03-09T03:42:44.000Z
from unittest import TestCase import ddt import httpretty from analyticsclient.client import Client class ClientTestCase(TestCase): """Base class for client-related tests.""" def setUp(self): """Configure Client.""" self.api_url = 'http://localhost:9999/api/v1' self.client = Clien...
34.522293
108
0.639299
2a7e4bb973cd39f92d76b6018368febd12e94715
14,937
py
Python
ucsm_apis/admin/auth.py
CiscoUcs/ucsm_apis
2537d0aa300adcfb6ebf8baf29c504ce2abe748c
[ "Apache-2.0" ]
10
2017-03-24T13:49:40.000Z
2021-07-09T15:51:00.000Z
ucsm_apis/admin/auth.py
CiscoUcs/ucsm_apis
2537d0aa300adcfb6ebf8baf29c504ce2abe748c
[ "Apache-2.0" ]
24
2017-03-16T04:49:00.000Z
2018-06-26T03:17:27.000Z
ucsm_apis/admin/auth.py
CiscoUcs/ucsm_apis
2537d0aa300adcfb6ebf8baf29c504ce2abe748c
[ "Apache-2.0" ]
17
2017-03-01T03:56:02.000Z
2019-08-08T12:30:52.000Z
# Copyright 2017 Cisco 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 applicable law or agreed to in writing...
30.925466
79
0.617393
c36b64e22b72d1edff1ca836e2d905ccccf3de5b
5,266
py
Python
macropodus/summarize/topic_base/topic_lda.py
leileixiao/Macropodus
9de38c06d332bd26e704fd4afd8f44678de7f44f
[ "MIT" ]
485
2019-12-31T16:53:28.000Z
2022-03-31T08:01:30.000Z
macropodus/summarize/topic_base/topic_lda.py
Pull-Qutter/Macropodus
eafe3c00e1e4286ee672ccfada54122e9f86b534
[ "MIT" ]
14
2020-03-07T04:17:47.000Z
2022-03-14T01:08:23.000Z
macropodus/summarize/topic_base/topic_lda.py
Pull-Qutter/Macropodus
eafe3c00e1e4286ee672ccfada54122e9f86b534
[ "MIT" ]
85
2020-01-16T05:03:07.000Z
2022-03-03T11:42:07.000Z
# -*- coding: UTF-8 -*- # !/usr/bin/python # @time :2019/11/31 21:33 # @author :Mo # @function :topic model of LDA # @paper :Latent Dirichlet Allocation from macropodus.preprocess.tools_ml import extract_chinese, tfidf_fit from macropodus.data.words_common.stop_words import stop_words from macropodus.preproc...
42.128
112
0.585074
79402d1e3c4809c51b24717a4eae769068710ba9
11,693
py
Python
code/python/FactSetEstimatesReportBuilder/v1/fds/sdk/FactSetEstimatesReportBuilder/model/response.py
factset/enterprise-sdk
3fd4d1360756c515c9737a0c9a992c7451d7de7e
[ "Apache-2.0" ]
6
2022-02-07T16:34:18.000Z
2022-03-30T08:04:57.000Z
code/python/FactSetEstimatesReportBuilder/v1/fds/sdk/FactSetEstimatesReportBuilder/model/response.py
factset/enterprise-sdk
3fd4d1360756c515c9737a0c9a992c7451d7de7e
[ "Apache-2.0" ]
2
2022-02-07T05:25:57.000Z
2022-03-07T14:18:04.000Z
code/python/FactSetEstimatesReportBuilder/v1/fds/sdk/FactSetEstimatesReportBuilder/model/response.py
factset/enterprise-sdk
3fd4d1360756c515c9737a0c9a992c7451d7de7e
[ "Apache-2.0" ]
null
null
null
""" FactSet Estimates Report Builder No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 The version of the OpenAPI document: 1.0.0 Generated by: https://openapi-generator.tech """ import re # noqa: F401 import sys # noqa: F401 ...
43.958647
148
0.573933
b6f8ebc51dfef3fc6304de441560c287c27bcd1e
1,031
py
Python
core/application.py
Korbier/PyWsServer
95510a935c3019ead04d2de71e4344d94b3ac560
[ "MIT" ]
null
null
null
core/application.py
Korbier/PyWsServer
95510a935c3019ead04d2de71e4344d94b3ac560
[ "MIT" ]
null
null
null
core/application.py
Korbier/PyWsServer
95510a935c3019ead04d2de71e4344d94b3ac560
[ "MIT" ]
null
null
null
from core.database.Database import Database from core.websocket.server import WebsocketServer from core.console.console import Console class Application: def __init__( self, database ): self._modules = [] self._database = Database() self._database.connect( database ) def databa...
24.547619
63
0.630456
564abb1acada52a8764b735affe73a0d83abd581
793
py
Python
chapter_15-ContextManagersAndElseBlocks/sample_15_7.py
zixingkong/Fluent-Python
6f05ec5f27a1cf582ddc5a09959f446d455b6c4a
[ "MIT" ]
null
null
null
chapter_15-ContextManagersAndElseBlocks/sample_15_7.py
zixingkong/Fluent-Python
6f05ec5f27a1cf582ddc5a09959f446d455b6c4a
[ "MIT" ]
null
null
null
chapter_15-ContextManagersAndElseBlocks/sample_15_7.py
zixingkong/Fluent-Python
6f05ec5f27a1cf582ddc5a09959f446d455b6c4a
[ "MIT" ]
1
2022-03-14T15:04:58.000Z
2022-03-14T15:04:58.000Z
# -*- coding: utf-8 -*- """ ------------------------------------------------- File Name: sample_15_5 Description : date: 2022/3/3 ------------------------------------------------- """ import contextlib @contextlib.contextmanager def looking_glass(): import sys original_write = sys.stdou...
20.868421
49
0.520807
f258da341dd6d00a27de94bf89bca785d5d8e7b3
5,587
py
Python
spotify_browser_token/__init__.py
raspi-chromecast-box/SpotifyBrowserToken
a2265f71ae81873bcc6fa02fc3aa8634b199cbc8
[ "MIT" ]
2
2020-04-28T13:54:20.000Z
2020-04-28T15:21:06.000Z
spotify_browser_token/__init__.py
raspi-chromecast-box/SpotifyBrowserToken
a2265f71ae81873bcc6fa02fc3aa8634b199cbc8
[ "MIT" ]
1
2020-05-23T13:57:46.000Z
2020-05-23T13:57:46.000Z
spotify_browser_token/__init__.py
raspi-chromecast-box/SpotifyBrowserToken
a2265f71ae81873bcc6fa02fc3aa8634b199cbc8
[ "MIT" ]
1
2020-04-28T15:21:14.000Z
2020-04-28T15:21:14.000Z
import JSONFileOBJDB from pathlib import Path import time import asyncio from pyppeteer import launch class SpotifyBrowserToken: def __init__( self , options={} ): self.options = options if "save_path" in self.options: self.options[ "save_path_posix" ] = Path( self.options[ "save_path" ] ) else: self.i...
35.138365
141
0.676034
c92dd2cbb5ec6a62e9f5edc3d0496da55e46d57a
1,364
py
Python
gmmp/management/commands/sync_users.py
CodeForAfrica/gmmp
d7ffe2dac16bd57e81bb3555ddea9df1fe7e9ebf
[ "Apache-2.0" ]
4
2020-01-05T09:14:19.000Z
2022-02-17T03:22:09.000Z
gmmp/management/commands/sync_users.py
CodeForAfrica/gmmp
d7ffe2dac16bd57e81bb3555ddea9df1fe7e9ebf
[ "Apache-2.0" ]
68
2019-12-23T02:19:55.000Z
2021-04-23T06:13:36.000Z
gmmp/management/commands/sync_users.py
CodeForAfrica/gmmp
d7ffe2dac16bd57e81bb3555ddea9df1fe7e9ebf
[ "Apache-2.0" ]
2
2020-11-07T12:23:21.000Z
2021-11-07T18:21:31.000Z
import os from django.core.management.base import BaseCommand from django.contrib.auth.models import User, Group from django.core.management import call_command from django.conf import settings from gmmp.models import Monitor, CountryUser class Command(BaseCommand): def handle(self, *args, **options): # Re...
38.971429
123
0.66129
f7256edb1cd981f4d5a110f018a377b55aa4f7c7
1,246
py
Python
Model prediction/app.py
choudhury722k/English-to-French-translator
e792ce92adbdd3100d73d9d8aebc109cc7c560d7
[ "MIT" ]
null
null
null
Model prediction/app.py
choudhury722k/English-to-French-translator
e792ce92adbdd3100d73d9d8aebc109cc7c560d7
[ "MIT" ]
null
null
null
Model prediction/app.py
choudhury722k/English-to-French-translator
e792ce92adbdd3100d73d9d8aebc109cc7c560d7
[ "MIT" ]
null
null
null
from re import X from flask import Flask,render_template,url_for,request from tensorflow.keras.preprocessing.text import Tokenizer from tensorflow.keras.preprocessing.sequence import pad_sequences from tensorflow.keras import models import numpy as np import pickle french_tokenizer = pickle.load(open('french_tokenize...
31.948718
81
0.719904
5101e8405bbf7a277859187cecef51fe417ac660
1,945
py
Python
setup.py
standakozak/tk_tools
5b6ad9cef993b86e3854ba0c4cb0bcee34b99c1c
[ "MIT" ]
90
2017-05-25T11:51:33.000Z
2022-03-14T11:21:45.000Z
setup.py
standakozak/tk_tools
5b6ad9cef993b86e3854ba0c4cb0bcee34b99c1c
[ "MIT" ]
45
2017-05-04T11:05:52.000Z
2022-03-27T22:54:02.000Z
setup.py
standakozak/tk_tools
5b6ad9cef993b86e3854ba0c4cb0bcee34b99c1c
[ "MIT" ]
28
2017-10-18T13:09:07.000Z
2021-07-20T15:57:04.000Z
#!/usr/bin/env python from setuptools import setup import os try: from stringify import stringify_py except ImportError: pass requirements = [] with open('requirements.txt', 'r') as f: for line in f.readlines(): requirements.append(line.strip()) # these are generally only used by devs setup_requ...
27.785714
73
0.668895
4c6a581cd1def17ca59a107ae02e4a3511e00114
9,413
py
Python
vortexasdk/endpoints/onshore_inventories_timeseries.py
VorTECHsa/python-sdk
d85aabd8d9843e4d04d857360492bea002c2b24b
[ "Apache-2.0" ]
9
2020-01-22T15:36:16.000Z
2022-03-14T10:05:19.000Z
vortexasdk/endpoints/onshore_inventories_timeseries.py
VorTECHsa/python-sdk
d85aabd8d9843e4d04d857360492bea002c2b24b
[ "Apache-2.0" ]
114
2020-01-08T11:08:24.000Z
2022-03-30T16:42:23.000Z
vortexasdk/endpoints/onshore_inventories_timeseries.py
V0RT3X4/python-sdk
4cffae83b90a58a56f1a534057fa1ca1c8671e05
[ "Apache-2.0" ]
6
2020-05-28T00:09:02.000Z
2022-03-14T03:52:44.000Z
""" Try me out in your browser: [![Binder](https://img.shields.io/badge/try%20me%20out-launch%20notebook-579ACA.svg?logo=data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFkAAABZCAMAAABi1XidAAAB8lBMVEX///9XmsrmZYH1olJXmsr1olJXmsrmZYH1olJXmsr1olJXmsrmZYH1olL1olJXmsr1olJXmsrmZYH1olL1olJXmsrmZYH1olJXmsr1olL1olJXmsrmZYH1olL1...
61.123377
2,590
0.719112
dc17c792f272d773491f4106e26dac212f58e2df
7,419
py
Python
gisutils/gdal_reclassify.py
QingyuFeng/GeoAPEXOL
8faca80b593b9ffabfe8b59bd47da1192429f029
[ "MIT" ]
1
2021-06-13T15:40:19.000Z
2021-06-13T15:40:19.000Z
gisutils/gdal_reclassify.py
QingyuFeng/GeoAPEXOL
8faca80b593b9ffabfe8b59bd47da1192429f029
[ "MIT" ]
null
null
null
gisutils/gdal_reclassify.py
QingyuFeng/GeoAPEXOL
8faca80b593b9ffabfe8b59bd47da1192429f029
[ "MIT" ]
null
null
null
#!/usr/bin/env python import sys import optparse from osgeo import gdal from gdalconst import * import numpy as np import operator gdal.AllRegister() def getIntType(array_of_numbers): low, high = min(array_of_numbers), max(array_of_numbers) int_types = [ (0, 255, np.uint8), (-128, 127, np.int1...
38.242268
137
0.630543
d075a04ca2a49d9b2692490eaf4729da10b0fe0d
18,751
py
Python
tensorflow/python/saved_model/builder_impl.py
AlexChrisF/udacity
b7f85a74058fc63ccb7601c418450ab934ef5953
[ "Apache-2.0" ]
22
2017-06-26T01:27:45.000Z
2021-06-23T10:00:31.000Z
tensorflow/python/saved_model/builder_impl.py
AlexChrisF/udacity
b7f85a74058fc63ccb7601c418450ab934ef5953
[ "Apache-2.0" ]
7
2017-07-13T09:40:59.000Z
2019-04-08T22:46:51.000Z
tensorflow/python/saved_model/builder_impl.py
AlexChrisF/udacity
b7f85a74058fc63ccb7601c418450ab934ef5953
[ "Apache-2.0" ]
38
2017-04-28T04:15:48.000Z
2019-09-28T05:11:46.000Z
# Copyright 2015 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
39.228033
80
0.705029
58e38e96b1fb38d63f373031e6a9536006392534
377
py
Python
__init__.py
yangsec888/f5-admin
4bb73f1c5a88bb39664bf50d3f8b5b8e7014a328
[ "MIT" ]
2
2021-02-13T19:52:01.000Z
2021-03-29T23:05:23.000Z
__init__.py
yangsec888/f5-admin
4bb73f1c5a88bb39664bf50d3f8b5b8e7014a328
[ "MIT" ]
null
null
null
__init__.py
yangsec888/f5-admin
4bb73f1c5a88bb39664bf50d3f8b5b8e7014a328
[ "MIT" ]
1
2020-02-24T06:35:15.000Z
2020-02-24T06:35:15.000Z
# Copyright (C) 2018-2019 Sam Li <yangsec888@gmail.com> # This file is part of f5 secure admin API in Python import sys name = "f5_admin" with open("LICENSE.txt", "r") as fh: lic = fh.read() #from f5.f5_client import ( # F5Client, #) __license__ = lic __author__ = "Sam Li, yangsec888@gmail.com" __version_...
15.708333
56
0.639257
ee2ac320b1538c9ad0c57796740da641f64a225e
23,633
py
Python
salt/cli/daemons.py
ahammond/salt
945b21b70dbe708716d7b009a2005ef0acf76e6b
[ "Apache-2.0" ]
null
null
null
salt/cli/daemons.py
ahammond/salt
945b21b70dbe708716d7b009a2005ef0acf76e6b
[ "Apache-2.0" ]
null
null
null
salt/cli/daemons.py
ahammond/salt
945b21b70dbe708716d7b009a2005ef0acf76e6b
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 -*- ''' Make me some salt! ''' # Import python libs from __future__ import absolute_import import os import warnings from salt.utils.verify import verify_log # All salt related deprecation warnings should be shown once each! warnings.filterwarnings( 'once', # Show once '', ...
37.995177
102
0.554183
fc3a3b80157b31325b2c0dd9b9ca12b98e223a3c
450
py
Python
molsysmt/item/molsysmt_MolecularMechanicsDict/append_structures.py
uibcdf/MolModMTs
4f6b6f671a9fa3e73008d1e9c48686d5f20a6573
[ "MIT" ]
null
null
null
molsysmt/item/molsysmt_MolecularMechanicsDict/append_structures.py
uibcdf/MolModMTs
4f6b6f671a9fa3e73008d1e9c48686d5f20a6573
[ "MIT" ]
null
null
null
molsysmt/item/molsysmt_MolecularMechanicsDict/append_structures.py
uibcdf/MolModMTs
4f6b6f671a9fa3e73008d1e9c48686d5f20a6573
[ "MIT" ]
null
null
null
from molsysmt._private.exceptions import * from molsysmt._private.digestion import * def append_structures(item, step=None, time=None, coordinates=None, box=None, check=True): if check: digest_item(item, 'molsysmt.MolecularMechanicsDict') step = digest_step(step) time = digest_time(time) ...
28.125
90
0.72
8243ca7173c68d44b40450b694eef7daba85f0ed
3,545
py
Python
code/numpy/learn-numpy.py
qiudebo/13learn
32b6ab0c6f6abd5873e3445b31a86f602520d473
[ "MIT" ]
1
2019-03-07T09:02:27.000Z
2019-03-07T09:02:27.000Z
code/numpy/learn-numpy.py
qiudebo/13learn
32b6ab0c6f6abd5873e3445b31a86f602520d473
[ "MIT" ]
null
null
null
code/numpy/learn-numpy.py
qiudebo/13learn
32b6ab0c6f6abd5873e3445b31a86f602520d473
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- ## http://www.scipy-lectures.org/intro/numpy/array_object.html#creating-arrays # 推荐使用如下方式导入NumPy函数库 import numpy as np ## NumPy提供了两种基本对象,ndarray n维数组对象,存储单一数据类型的多维数组,即:数组 ;常用函数 ## 高效的存储 大量数组元素,并提供计算的运算速度 ## ## 数组-包含坐标轴 正数、负数 ## ## ## 创建数组 ### 方式一:定义数组 (手动输入) ####一维...
17.994924
79
0.601128
61bcbdff1c6cedacf3f3817b099cf74edfd09ce0
5,531
py
Python
jax_cfd/base/forcings_test.py
akashdhruv/jax-cfd
a92862fb757d122e7c5eee23a3b783997a2aeafe
[ "Apache-2.0" ]
null
null
null
jax_cfd/base/forcings_test.py
akashdhruv/jax-cfd
a92862fb757d122e7c5eee23a3b783997a2aeafe
[ "Apache-2.0" ]
null
null
null
jax_cfd/base/forcings_test.py
akashdhruv/jax-cfd
a92862fb757d122e7c5eee23a3b783997a2aeafe
[ "Apache-2.0" ]
null
null
null
# Copyright 2021 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, ...
38.678322
79
0.600976
733e6ab60489fd5702b90c2d6418da00d005f9f5
14,388
py
Python
keras_ssd/data_generator/data_augmentation_chain_original_ssd.py
KerasKorea/YOLK_ObjectDetector
78a260746c50508fcdf1d0c56a7d4f5373b1f5bf
[ "MIT" ]
124
2019-09-14T14:52:15.000Z
2021-11-08T09:31:33.000Z
keras_ssd/data_generator/data_augmentation_chain_original_ssd.py
KerasKorea/YOLK_ObjectDetector
78a260746c50508fcdf1d0c56a7d4f5373b1f5bf
[ "MIT" ]
55
2019-09-15T06:50:42.000Z
2020-08-23T17:42:26.000Z
keras_ssd/data_generator/data_augmentation_chain_original_ssd.py
KerasKorea/YOLK_ObjectDetector
78a260746c50508fcdf1d0c56a7d4f5373b1f5bf
[ "MIT" ]
49
2019-09-15T01:24:36.000Z
2022-03-22T04:11:06.000Z
''' The data augmentation operations of the original SSD implementation. Copyright (C) 2018 Pierluigi Ferrari 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/LICE...
51.202847
204
0.571935
c77e30a286b7cff1828fd0ad13e49f5d120cfbbf
10,729
py
Python
hydra/plugins/completion_plugin.py
sara-nl/hydra
8fd0d23d71cf528528ca5eda26e0c1f0c1e973d7
[ "MIT" ]
5,847
2019-10-03T04:20:44.000Z
2022-03-31T17:07:46.000Z
hydra/plugins/completion_plugin.py
sara-nl/hydra
8fd0d23d71cf528528ca5eda26e0c1f0c1e973d7
[ "MIT" ]
1,393
2019-10-04T01:03:38.000Z
2022-03-31T20:29:35.000Z
hydra/plugins/completion_plugin.py
sara-nl/hydra
8fd0d23d71cf528528ca5eda26e0c1f0c1e973d7
[ "MIT" ]
505
2019-10-03T19:41:42.000Z
2022-03-31T11:40:16.000Z
# Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved # TODO: Test with /miniconda3/envs/hydra36/bin/python , seems to be running python for some reason. # TODO: Add tests for completion with +prefix (should suggest config groups that are not listed) # TODO: Test completion when defaults has a missing...
36.617747
112
0.538727
e8186a5021973f7c6b218456ffecddea0263a358
1,308
py
Python
data/steps/remove_stack.py
AdamBanham/ICPM2021
9b50ba0090dd52ea88820d1edf8859a7207a0d56
[ "MIT" ]
1
2021-09-01T09:39:43.000Z
2021-09-01T09:39:43.000Z
data/steps/remove_stack.py
AdamBanham/ICPM2021
9b50ba0090dd52ea88820d1edf8859a7207a0d56
[ "MIT" ]
null
null
null
data/steps/remove_stack.py
AdamBanham/ICPM2021
9b50ba0090dd52ea88820d1edf8859a7207a0d56
[ "MIT" ]
null
null
null
import boto3 from os import path import os import json from time import sleep from ults import check_hash_in_map def stack_exists(name,client): try: data = client.describe_stacks(StackName = name) except client.exceptions.ClientError: return False return True STACK_PARAMS = "./data/out/co...
31.902439
67
0.593272
7e2c25fce95be29276cde88cf3a0abb923a9649b
31,589
py
Python
core/utils_test.py
Yash-g17/oppia
4f3f207ea9ecc0cf787f0d664bedcf62c31937ab
[ "Apache-2.0" ]
null
null
null
core/utils_test.py
Yash-g17/oppia
4f3f207ea9ecc0cf787f0d664bedcf62c31937ab
[ "Apache-2.0" ]
null
null
null
core/utils_test.py
Yash-g17/oppia
4f3f207ea9ecc0cf787f0d664bedcf62c31937ab
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 # # Copyright 2014 The Oppia Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless requi...
40.865459
111
0.638957
be96f5df1ca7f86c58d203cd91e1cb0624769cbf
4,471
py
Python
datasets/esnli/esnli.py
rkc007/datasets
6b2f6cd7e55323898d3562b99bc9ab7244955aa3
[ "Apache-2.0" ]
9
2021-04-26T14:43:52.000Z
2021-11-08T09:47:24.000Z
datasets/esnli/esnli.py
rkc007/datasets
6b2f6cd7e55323898d3562b99bc9ab7244955aa3
[ "Apache-2.0" ]
null
null
null
datasets/esnli/esnli.py
rkc007/datasets
6b2f6cd7e55323898d3562b99bc9ab7244955aa3
[ "Apache-2.0" ]
3
2021-01-03T22:08:20.000Z
2021-08-12T20:09:39.000Z
# coding=utf-8 # Copyright 2020 The TensorFlow Datasets Authors and the HuggingFace Datasets 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/LI...
37.258333
113
0.606799
04ecf6ec4e176f2047a74d29c217a43adb7073df
4,748
py
Python
tests/common/test_io.py
tuantranf/doctr
69f9ced542999ef5fa35f3153d7a06661d3c4d3f
[ "Apache-2.0" ]
628
2021-02-13T21:49:37.000Z
2022-03-31T19:48:57.000Z
tests/common/test_io.py
tuantranf/doctr
69f9ced542999ef5fa35f3153d7a06661d3c4d3f
[ "Apache-2.0" ]
694
2021-02-08T15:23:38.000Z
2022-03-31T07:24:59.000Z
tests/common/test_io.py
tuantranf/doctr
69f9ced542999ef5fa35f3153d7a06661d3c4d3f
[ "Apache-2.0" ]
90
2021-04-28T05:39:02.000Z
2022-03-31T06:48:36.000Z
from io import BytesIO import fitz import numpy as np import pytest import requests from doctr import io def test_convert_page_to_numpy(mock_pdf): pdf = fitz.open(mock_pdf) # Check correct read rgb_page = io.pdf.convert_page_to_numpy(pdf[0], default_scales=(1, 1)) assert isinstance(rgb_page, np.ndar...
32.972222
119
0.69187
62bda287d890efe3786327516c0b68b8718c9e10
577
py
Python
tests/test_organism_class.py
kzfm/pychembldb
0dde6a05b2dc138e0be7f8f27f57b5c2a42e23c7
[ "CC0-1.0" ]
8
2020-01-16T00:43:46.000Z
2021-11-27T18:26:12.000Z
tests/test_organism_class.py
iwatobipen/pychembldb
0dde6a05b2dc138e0be7f8f27f57b5c2a42e23c7
[ "CC0-1.0" ]
null
null
null
tests/test_organism_class.py
iwatobipen/pychembldb
0dde6a05b2dc138e0be7f8f27f57b5c2a42e23c7
[ "CC0-1.0" ]
3
2020-05-31T05:54:33.000Z
2021-11-15T04:31:07.000Z
import unittest from pychembldb import chembldb, OrganismClass class OrganismClassTest(unittest.TestCase): def setUp(self): self.target = chembldb.query(OrganismClass).first() def test_oc_id(self): self.assertEqual(self.target.oc_id, 1) def test_tax_id(self): self.assertEqual(sel...
25.086957
59
0.688042
4aa6d52eeb50bd43c5dd92b72b1aed326219e462
1,028
py
Python
text_ckeditor/text_ckeditor_links/migrations/0001_initial.py
rouxcode/django-text-ckeditor
dd8f86a6ffcbde8d1b85fc6e70d2653dd65b2737
[ "MIT" ]
null
null
null
text_ckeditor/text_ckeditor_links/migrations/0001_initial.py
rouxcode/django-text-ckeditor
dd8f86a6ffcbde8d1b85fc6e70d2653dd65b2737
[ "MIT" ]
null
null
null
text_ckeditor/text_ckeditor_links/migrations/0001_initial.py
rouxcode/django-text-ckeditor
dd8f86a6ffcbde8d1b85fc6e70d2653dd65b2737
[ "MIT" ]
null
null
null
# Generated by Django 2.2.1 on 2019-05-27 12:53 from django.db import migrations, models class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='Link', fields=[ ('id', models.AutoField(aut...
36.714286
174
0.574903
a8e33b04a0e384643729ca5a71cf6218c1cd905b
3,609
py
Python
slickwiki/wikiapp.py
JasonFruit/slickwiki
b2b163240314e67e6a161123b082c7bc61b8ca4f
[ "MIT" ]
null
null
null
slickwiki/wikiapp.py
JasonFruit/slickwiki
b2b163240314e67e6a161123b082c7bc61b8ca4f
[ "MIT" ]
null
null
null
slickwiki/wikiapp.py
JasonFruit/slickwiki
b2b163240314e67e6a161123b082c7bc61b8ca4f
[ "MIT" ]
null
null
null
import os import codecs import cherrypy from markdown import markdown import pystache # from slickwiki.templates import * class WikiApp(object): def __init__(self, path, config, templates): self.init_page_text = config["initPageText"] self.port_n...
30.327731
114
0.541701
48e44e5204c26cdfe917a15eede70679b1219e03
3,475
py
Python
DataAnalysis/HIP11915.py
thiagofst/HIP11915
c48ea397e87de06583080650557219c511830db7
[ "MIT" ]
null
null
null
DataAnalysis/HIP11915.py
thiagofst/HIP11915
c48ea397e87de06583080650557219c511830db7
[ "MIT" ]
null
null
null
DataAnalysis/HIP11915.py
thiagofst/HIP11915
c48ea397e87de06583080650557219c511830db7
[ "MIT" ]
null
null
null
# Keplerian fit configuration file for HIP11915 # 15 Mar 2022 # Packages import pandas as pd import os import numpy as np import radvel import astropy.units as u # Global planetary system and datasets parameters starname = 'HIP11915' nplanets = 2 instnames = ['HARPS-A', 'HARPS-B'] ntels = len(instnames...
39.488636
108
0.70705
7f96200f22ba9104fb7c3d9e06f6ef9ab67c06c4
452
py
Python
Uh-OH/backend/scrape/migrations/0010_auto_20200305_2118.py
SamR71/Office-Hours
912fe67d67a810656d6aeb0c4a363b0473cf76e7
[ "MIT" ]
5
2020-01-25T20:15:08.000Z
2020-01-25T20:39:21.000Z
Uh-OH/backend/scrape/migrations/0010_auto_20200305_2118.py
SamR71/Office-Hours
912fe67d67a810656d6aeb0c4a363b0473cf76e7
[ "MIT" ]
39
2020-02-12T22:29:32.000Z
2022-02-26T23:21:18.000Z
Uh-OH/backend/scrape/migrations/0010_auto_20200305_2118.py
SamR71/Office-Hours
912fe67d67a810656d6aeb0c4a363b0473cf76e7
[ "MIT" ]
null
null
null
# Generated by Django 3.0.3 on 2020-03-06 02:18 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('scrape', '0009_auto_20200305_1814'), ] operations = [ migrations.AlterModelOptions( name='teachingassistantofficehours', opt...
25.111111
129
0.659292
05da6c94ac01ab61e6d124d0d19c9f03739a89f0
6,940
py
Python
venv/lib/python3.7/site-packages/github/ProjectColumn.py
emmetaobrien/dats-validator
fb25f97a32119c2bce4eb50dc080a93d5ee77141
[ "MIT" ]
1
2020-01-09T01:20:10.000Z
2020-01-09T01:20:10.000Z
venv/lib/python3.7/site-packages/github/ProjectColumn.py
emmetaobrien/dats-validator
fb25f97a32119c2bce4eb50dc080a93d5ee77141
[ "MIT" ]
null
null
null
venv/lib/python3.7/site-packages/github/ProjectColumn.py
emmetaobrien/dats-validator
fb25f97a32119c2bce4eb50dc080a93d5ee77141
[ "MIT" ]
1
2019-12-04T04:07:22.000Z
2019-12-04T04:07:22.000Z
# -*- coding: utf-8 -*- ############################ Copyrights and license ############################ # # # Copyright 2018 bbi-yggy <yossarian@blackbirdinteractive.com> # # ...
39.20904
130
0.556484
7ef144300a818fe4980fe554132435325089c012
6,485
py
Python
pystman.py
yashBhosale/pystman
2297f0610d5f80783ab5276f43240b0f501945c0
[ "MIT" ]
1
2020-12-14T00:26:37.000Z
2020-12-14T00:26:37.000Z
pystman.py
yashBhosale/pystman
2297f0610d5f80783ab5276f43240b0f501945c0
[ "MIT" ]
null
null
null
pystman.py
yashBhosale/pystman
2297f0610d5f80783ab5276f43240b0f501945c0
[ "MIT" ]
null
null
null
import asyncio import sys import websockets import base64 from PyQt5.QtCore import QObject, Qt, pyqtSignal, pyqtSlot from PyQt5.QtWidgets import ( QAction, QApplication, QHBoxLayout, QLineEdit, QMainWindow, QMenu, QPushButton, QSplitter, QTextEdit, QToolBar, QToolButton, QVBo...
30.446009
112
0.635158
8840b96ac7d169c069d04182d46b415746be5bd4
8,578
py
Python
extrator/datasources/models.py
MinisterioPublicoRJ/robotj
946e9547eea6f548609f7ccfaf1c6a13fffece65
[ "MIT" ]
3
2018-03-13T12:17:13.000Z
2021-04-18T19:55:04.000Z
extrator/datasources/models.py
MinisterioPublicoRJ/robotj
946e9547eea6f548609f7ccfaf1c6a13fffece65
[ "MIT" ]
1
2018-06-19T13:09:10.000Z
2018-06-19T13:09:10.000Z
extrator/datasources/models.py
MinisterioPublicoRJ/robotj
946e9547eea6f548609f7ccfaf1c6a13fffece65
[ "MIT" ]
1
2021-04-18T19:55:09.000Z
2021-04-18T19:55:09.000Z
import json import cx_Oracle from ..base.utils import conn, session, cxoracle from .tjrj_models import ( TB_PROCESSO, TB_MOVIMENTO_PROCESSO, TB_ITEM_MOVIMENTO, SQ_ITEM_MOVIMENTO, SQ_MOVIMENTO, SQ_PROCESSO ) # from .broker import classificar from .mcpr_models import TB_DOCUMENTO from sqlalchemy.s...
32.127341
79
0.666822
a44d1849a7f675fe3fdea3815959cbc44bae6ae1
6,130
py
Python
stix_shifter/stix_transmission/src/modules/aws_cloud_watch_logs/aws_cloud_watch_logs_results_connector.py
imurphy-ibm/stix-shifter
6e7d184fb1e54490721a890faedfb89ccfac2dd7
[ "Apache-2.0" ]
null
null
null
stix_shifter/stix_transmission/src/modules/aws_cloud_watch_logs/aws_cloud_watch_logs_results_connector.py
imurphy-ibm/stix-shifter
6e7d184fb1e54490721a890faedfb89ccfac2dd7
[ "Apache-2.0" ]
null
null
null
stix_shifter/stix_transmission/src/modules/aws_cloud_watch_logs/aws_cloud_watch_logs_results_connector.py
imurphy-ibm/stix-shifter
6e7d184fb1e54490721a890faedfb89ccfac2dd7
[ "Apache-2.0" ]
1
2020-03-03T16:15:28.000Z
2020-03-03T16:15:28.000Z
from ..base.base_results_connector import BaseResultsConnector import json from flatten_json import flatten import copy from .....utils.error_response import ErrorResponder from os import path class AWSCloudWatchLogsResultsConnector(BaseResultsConnector): def __init__(self, client): self.client = client ...
43.475177
111
0.578467
1c7eee5570382ddebedf75f7187079dd1fc514e6
247
py
Python
denoiseOfColor.py
MayankShrivastava17/opencv-operation-on-image
c5ade8fa527ad05d99b65016678d8d25db201132
[ "MIT" ]
1
2021-03-20T13:02:07.000Z
2021-03-20T13:02:07.000Z
denoiseOfColor.py
MayankShrivastava17/opencv-operation-on-image
c5ade8fa527ad05d99b65016678d8d25db201132
[ "MIT" ]
null
null
null
denoiseOfColor.py
MayankShrivastava17/opencv-operation-on-image
c5ade8fa527ad05d99b65016678d8d25db201132
[ "MIT" ]
null
null
null
import numpy as np import cv2 as cv from matplotlib import pyplot as plt img = cv.imread("dog.jpg") dst = cv.fastNlMeansDenoisingColored(img, None, 10, 10, 7, 15) plt.subplot(121), plt.imshow(img) plt.subplot(122), plt.imshow(dst) plt.show()
19
62
0.724696
fc94b1243b423d3070d17b6e8f601b23815e395b
6,767
py
Python
src/bindings/python/src/compatibility/ngraph/opset8/__init__.py
pfinashx/openvino
1d417e888b508415510fb0a92e4a9264cf8bdef7
[ "Apache-2.0" ]
1
2022-02-26T17:33:44.000Z
2022-02-26T17:33:44.000Z
src/bindings/python/src/compatibility/ngraph/opset8/__init__.py
pfinashx/openvino
1d417e888b508415510fb0a92e4a9264cf8bdef7
[ "Apache-2.0" ]
18
2022-01-21T08:42:58.000Z
2022-03-28T13:21:31.000Z
src/bindings/python/src/compatibility/ngraph/opset8/__init__.py
AlexRogalskiy/openvino
ac2e639ff8f9a607c3c682a4c4e165c238eb817f
[ "Apache-2.0" ]
1
2020-12-13T22:16:54.000Z
2020-12-13T22:16:54.000Z
# Copyright (C) 2018-2022 Intel Corporation # SPDX-License-Identifier: Apache-2.0 from ngraph.opset1.ops import absolute from ngraph.opset1.ops import absolute as abs from ngraph.opset1.ops import acos from ngraph.opset4.ops import acosh from ngraph.opset8.ops import adaptive_avg_pool from ngraph.opset8.ops import ada...
40.279762
61
0.850746
473dc33dce07cf12915ee0a5c53e5590bc6c054f
738
py
Python
BubbleSort.py
prerna250/python-algorithms
ba538770863b6fbcad867e808a17be77a7a75908
[ "MIT" ]
5
2020-08-20T17:06:50.000Z
2020-11-07T09:11:30.000Z
BubbleSort.py
freelancing-solutions/python-algorithms
34bea3245497f3e0586d6dfb43438b6498d7a245
[ "MIT" ]
14
2020-10-16T16:31:33.000Z
2020-11-10T01:54:27.000Z
BubbleSort.py
freelancing-solutions/python-algorithms
34bea3245497f3e0586d6dfb43438b6498d7a245
[ "MIT" ]
17
2020-10-16T17:49:23.000Z
2020-11-03T09:58:27.000Z
# Python program for implementation of Bubble Sort def bubbleSort(arr): n = len(arr) # Traverse through all array elements for i in range(n-1): # range(n) also work but outer loop will repeat one time more than needed. # Last i elements are already in place for j in range...
27.333333
79
0.555556
27a26103b3ed12366b42e01afdb4702607b6982a
42,129
py
Python
test/functional/test_framework/messages.py
noonbi/poscoin
3dbd59a95b9bdf3a217ed054746251d67a8df60c
[ "MIT" ]
null
null
null
test/functional/test_framework/messages.py
noonbi/poscoin
3dbd59a95b9bdf3a217ed054746251d67a8df60c
[ "MIT" ]
null
null
null
test/functional/test_framework/messages.py
noonbi/poscoin
3dbd59a95b9bdf3a217ed054746251d67a8df60c
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # Copyright (c) 2010 ArtForz -- public domain half-a-node # Copyright (c) 2012 Jeff Garzik # Copyright (c) 2010-2018 The Bitcoin Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. """Bitcoin test...
28.756997
262
0.598994
335d3f6d09803150d7800ecb51867a9e9c3e982e
1,396
py
Python
adminmgr/media/code/A3/task1/BD_0064_1387_1416_SXQy98R.py
IamMayankThakur/test-bigdata
cef633eb394419b955bdce479699d0115d8f99c3
[ "Apache-2.0" ]
9
2019-11-08T02:05:27.000Z
2021-12-13T12:06:35.000Z
adminmgr/media/code/A3/task1/BD_0064_1387_1416_QgN8Vv4.py
IamMayankThakur/test-bigdata
cef633eb394419b955bdce479699d0115d8f99c3
[ "Apache-2.0" ]
6
2019-11-27T03:23:16.000Z
2021-06-10T19:15:13.000Z
adminmgr/media/code/A3/task2/BD_0064_1387_1416_9zyx0SL.py
IamMayankThakur/test-bigdata
cef633eb394419b955bdce479699d0115d8f99c3
[ "Apache-2.0" ]
4
2019-11-26T17:04:27.000Z
2021-12-13T11:57:03.000Z
from pyspark.sql import SparkSession from pyspark.sql.types import * from pyspark.conf import SparkConf from pyspark.streaming import StreamingContext from pyspark.sql import Row,SQLContext import csv from pyspark.sql.functions import col,split,explode #from pyspark.sql.GroupedData import max spark = SparkSession.bui...
27.372549
110
0.664756
302dfb904670897bf02046fcbbd1032f0a05f990
1,743
py
Python
scripts/YAPythonLibrary/yapl/utilities/runas.py
shaithal/quickstart-ibm-cloud-private
e2c9012590c058db4a3e91eb9d5760bd282a99b5
[ "Apache-2.0" ]
null
null
null
scripts/YAPythonLibrary/yapl/utilities/runas.py
shaithal/quickstart-ibm-cloud-private
e2c9012590c058db4a3e91eb9d5760bd282a99b5
[ "Apache-2.0" ]
null
null
null
scripts/YAPythonLibrary/yapl/utilities/runas.py
shaithal/quickstart-ibm-cloud-private
e2c9012590c058db4a3e91eb9d5760bd282a99b5
[ "Apache-2.0" ]
null
null
null
''' Created on Dec 7, 2018 @author: petervansickel ''' import os, pwd from yapl.utilities.Trace import Trace,Level TR = Trace(__name__) class runas(object): """ Context manager for changing user (su) Got the ideas for this code from: https://stackoverflow.com/questions/1770209/run-child-processes...
28.57377
114
0.644865
f52e1e381b9d9aa8e6678e125afe9b61061edc07
420
py
Python
pycuda/autoinit.py
dariodsa/pycuda
0fb9477b8b73deb8773ee9007b2ed97720d06552
[ "Apache-2.0" ]
1
2019-06-25T07:56:32.000Z
2019-06-25T07:56:32.000Z
pycuda/autoinit.py
dariodsa/pycuda
0fb9477b8b73deb8773ee9007b2ed97720d06552
[ "Apache-2.0" ]
null
null
null
pycuda/autoinit.py
dariodsa/pycuda
0fb9477b8b73deb8773ee9007b2ed97720d06552
[ "Apache-2.0" ]
1
2020-08-31T08:52:24.000Z
2020-08-31T08:52:24.000Z
from __future__ import absolute_import import pycuda.driver as cuda # Initialize CUDA cuda.init() from pycuda.tools import make_default_context global context context = make_default_context() device = context.get_device() def _finish_up(): global context context.pop() context = None from pycuda.tool...
19.090909
49
0.783333
0c1a7fe5281872aec862d7c55c97530aaffd8e6e
36,925
py
Python
spanner/google/cloud/spanner_admin_database_v1/proto/spanner_database_admin_pb2.py
deryrahman/google-cloud-python
b55058c4b2328fde32f29bfd8ea04708fcc578e0
[ "Apache-2.0" ]
1
2020-10-25T04:39:41.000Z
2020-10-25T04:39:41.000Z
spanner/google/cloud/spanner_admin_database_v1/proto/spanner_database_admin_pb2.py
deryrahman/google-cloud-python
b55058c4b2328fde32f29bfd8ea04708fcc578e0
[ "Apache-2.0" ]
4
2018-11-13T22:15:36.000Z
2018-12-07T18:31:38.000Z
spanner/google/cloud/spanner_admin_database_v1/proto/spanner_database_admin_pb2.py
deryrahman/google-cloud-python
b55058c4b2328fde32f29bfd8ea04708fcc578e0
[ "Apache-2.0" ]
null
null
null
# Generated by the protocol buffer compiler. DO NOT EDIT! # source: google/cloud/spanner/admin/database_v1/proto/spanner_database_admin.proto import sys _b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) from google.protobuf import descriptor as _descriptor from google.protobuf import message ...
43.646572
4,045
0.753121
e35d241294d05842cde31d120056e1beb359fb8d
2,003
py
Python
raspberry-pi/hc-sr04-example.py
makersdigest/T07-HC-SR04-Ultrasonic-Sensor
d1583cc4c0033ce2bf7252173b962d2d856cb1f7
[ "MIT" ]
null
null
null
raspberry-pi/hc-sr04-example.py
makersdigest/T07-HC-SR04-Ultrasonic-Sensor
d1583cc4c0033ce2bf7252173b962d2d856cb1f7
[ "MIT" ]
null
null
null
raspberry-pi/hc-sr04-example.py
makersdigest/T07-HC-SR04-Ultrasonic-Sensor
d1583cc4c0033ce2bf7252173b962d2d856cb1f7
[ "MIT" ]
null
null
null
import RPi.GPIO as GPIO import time import sys triggerPin = 7 echoPin = 11 # Setup GPIO GPIO.setmode(GPIO.BOARD) GPIO.setup(triggerPin, GPIO.OUT) GPIO.setup(echoPin, GPIO.IN) def main(): try: while True: GPIO.output(triggerPin, GPIO.LOW) # Set pin to LOW time.sleep(2) ...
27.438356
103
0.567149
0732ac3f603d023b2374ca17eeefa34f73077642
969
py
Python
pw_rpc/py/pw_rpc/console_tools/__init__.py
curtin-space/pigweed
fe2e1743e03fabd2676f01d9de0ac9d34a426076
[ "Apache-2.0" ]
86
2021-03-09T23:49:40.000Z
2022-03-30T08:14:51.000Z
pw_rpc/py/pw_rpc/console_tools/__init__.py
curtin-space/pigweed
fe2e1743e03fabd2676f01d9de0ac9d34a426076
[ "Apache-2.0" ]
4
2021-07-27T20:32:03.000Z
2022-03-08T10:39:07.000Z
pw_rpc/py/pw_rpc/console_tools/__init__.py
curtin-space/pigweed
fe2e1743e03fabd2676f01d9de0ac9d34a426076
[ "Apache-2.0" ]
22
2021-03-11T15:15:47.000Z
2022-02-09T06:16:36.000Z
# Copyright 2021 The Pigweed 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 # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in ...
46.142857
79
0.726522
62cb3d874f13f87bc697b55629dd1c1ff5770cb0
1,388
py
Python
cut_scene.py
Steven-Wilson/pyweek25
1547919a17973d0b13ed630bdb1d7285f07f2a5e
[ "MIT" ]
null
null
null
cut_scene.py
Steven-Wilson/pyweek25
1547919a17973d0b13ed630bdb1d7285f07f2a5e
[ "MIT" ]
null
null
null
cut_scene.py
Steven-Wilson/pyweek25
1547919a17973d0b13ed630bdb1d7285f07f2a5e
[ "MIT" ]
null
null
null
import model import pyxelen from view import * from sounds import * from utils import * def dialog(state): return state.scene.dialog def current(state): return dialog(state)[0] def speaker(state): return current(state).speaker def lines(state): return current(state).lines def next_scene(state...
23.525424
79
0.641931
8511015d2590818273393c36165a33198f3e3cee
14,927
py
Python
src/oauth2_authcodeflow/views.py
KIT-IAI/django-oauth2-authcodeflow
04967fca6462433a408183ff33fc43ce9ef9d364
[ "MIT" ]
5
2021-06-04T19:08:01.000Z
2022-02-09T12:05:44.000Z
src/oauth2_authcodeflow/views.py
KIT-IAI/django-oauth2-authcodeflow
04967fca6462433a408183ff33fc43ce9ef9d364
[ "MIT" ]
3
2021-03-17T14:45:42.000Z
2021-06-07T09:44:25.000Z
src/oauth2_authcodeflow/views.py
KIT-IAI/django-oauth2-authcodeflow
04967fca6462433a408183ff33fc43ce9ef9d364
[ "MIT" ]
6
2021-02-25T23:05:43.000Z
2022-03-15T20:19:30.000Z
from base64 import urlsafe_b64encode from hashlib import sha256 from importlib import import_module from logging import warning, debug from django.contrib import auth from django.core.exceptions import SuspiciousOperation from django.http import ( HttpResponse, HttpResponseBadRequest, HttpResponseRedirect,...
45.509146
158
0.628392
0a9db06426c545cba7f4eec7d3663fb4a43ff947
551
py
Python
Open-Myo/emg_classification/emgesture/classifier.py
cdignan/sign-language-gesture-recognition
4171af1856471e15b7cbf937c893796fe3992b1a
[ "MIT" ]
1
2019-11-04T12:57:09.000Z
2019-11-04T12:57:09.000Z
Open-Myo/emg_classification/emgesture/classifier.py
cdignan/sign-language-gesture-recognition
4171af1856471e15b7cbf937c893796fe3992b1a
[ "MIT" ]
null
null
null
Open-Myo/emg_classification/emgesture/classifier.py
cdignan/sign-language-gesture-recognition
4171af1856471e15b7cbf937c893796fe3992b1a
[ "MIT" ]
null
null
null
# Copyright 2018 Alvaro Villoslada (Alvipe) # This file is part of Open Myo. # Open Myo is distributed under a GPL 3.0 license from sklearn.svm import SVC from sklearn.externals import joblib def train(feature_matrix, target): classifier = SVC(kernel='rbf',C=100,gamma=1) #C=1e5,gamma=1e-23 classifier.fit(f...
29
67
0.753176
e8b286f626f9c7ad85f148a40ad7fb193a5b7922
8,350
py
Python
tests/test_script_docker_copy_registry.py
crashvb/docker-sign-verify
3c2a968fc1461398c8be04ecaa54c028cca5c0fe
[ "Apache-2.0" ]
4
2019-07-22T02:47:44.000Z
2021-09-16T18:44:39.000Z
tests/test_script_docker_copy_registry.py
crashvb/docker-sign-verify
3c2a968fc1461398c8be04ecaa54c028cca5c0fe
[ "Apache-2.0" ]
20
2019-03-18T22:50:19.000Z
2021-02-26T04:07:34.000Z
tests/test_script_docker_copy_registry.py
crashvb/docker-sign-verify
3c2a968fc1461398c8be04ecaa54c028cca5c0fe
[ "Apache-2.0" ]
6
2019-04-14T01:15:01.000Z
2022-03-04T04:34:15.000Z
#!/usr/bin/env python # pylint: disable=redefined-outer-name,too-many-arguments,unused-import """CLI tests.""" import logging import pytest from _pytest.logging import LogCaptureFixture from docker_registry_client_async import Indices from pytest_docker_registry_fixtures import DockerRegistrySecure from docker_sig...
31.870229
87
0.678563
09814eeccfa7e1f5e8d0514a753b6470d6f8570d
1,010
py
Python
src/bioversions/sources/msigdb.py
egonw/bioversions
879b40fe3998ece884d4ace1fc53eb524b74635b
[ "MIT" ]
7
2020-12-13T13:02:26.000Z
2021-08-29T06:02:30.000Z
src/bioversions/sources/msigdb.py
egonw/bioversions
879b40fe3998ece884d4ace1fc53eb524b74635b
[ "MIT" ]
13
2021-09-21T15:43:04.000Z
2022-02-07T11:52:17.000Z
src/bioversions/sources/msigdb.py
egonw/bioversions
879b40fe3998ece884d4ace1fc53eb524b74635b
[ "MIT" ]
2
2021-02-12T19:55:33.000Z
2021-02-12T20:09:42.000Z
# -*- coding: utf-8 -*- """A getter for MSigDB.""" from typing import Mapping from bioversions.utils import Getter, VersionType, get_soup __all__ = [ "MSigDBGetter", ] URL = "http://www.gsea-msigdb.org/gsea/msigdb/index.jsp" class MSigDBGetter(Getter): """A getter for MSigDB.""" bioregistry_id = "ms...
24.634146
98
0.632673
150cce1a15e0cedfcbb39c81a36a536bd0c6413e
1,066
py
Python
tabular/tests/unittests/features/generators/test_text_special.py
mseeger/autogluon-1
e8d82363ce07fd8e3087bcdd2d71c6f6bd8fd7a0
[ "Apache-2.0" ]
null
null
null
tabular/tests/unittests/features/generators/test_text_special.py
mseeger/autogluon-1
e8d82363ce07fd8e3087bcdd2d71c6f6bd8fd7a0
[ "Apache-2.0" ]
null
null
null
tabular/tests/unittests/features/generators/test_text_special.py
mseeger/autogluon-1
e8d82363ce07fd8e3087bcdd2d71c6f6bd8fd7a0
[ "Apache-2.0" ]
null
null
null
from autogluon.tabular.utils.features import TextSpecialFeatureGenerator def test_text_special_feature_generator(generator_helper, data_helper): # Given input_data = data_helper.generate_multi_feature_full() generator = TextSpecialFeatureGenerator() expected_feature_metadata_in_full = { ('o...
31.352941
96
0.704503
2ef6d381fb8aac8eae535bcaffeb20fa9b5317e6
1,387
py
Python
setup.py
carbonplan/data
9eb84991650ac9a75ae622d3aac754794ada9405
[ "MIT" ]
8
2020-06-29T18:15:00.000Z
2022-02-16T11:10:23.000Z
setup.py
carbonplan/data
9eb84991650ac9a75ae622d3aac754794ada9405
[ "MIT" ]
159
2020-06-05T04:54:16.000Z
2022-03-29T04:09:30.000Z
setup.py
carbonplan/data
9eb84991650ac9a75ae622d3aac754794ada9405
[ "MIT" ]
4
2021-01-26T22:02:07.000Z
2021-11-23T22:26:20.000Z
#!/usr/bin/env python """The setup script.""" from setuptools import find_packages, setup with open("requirements.txt") as f: INSTALL_REQUIRES = f.read().strip().split("\n") with open("README.md") as f: LONG_DESCRIPTION = f.read() PYTHON_REQUIRES = ">=3.7" description = "Preprocessing utilities for Carbon...
29.510638
84
0.688536
52e8f546c98c9bfcfb1ea84af9c17a239daae353
9,641
py
Python
write_ipm_yml.py
minghanz/LaneNet
117428fbe01902551e8c15cbcc5327d17677825d
[ "Apache-2.0" ]
null
null
null
write_ipm_yml.py
minghanz/LaneNet
117428fbe01902551e8c15cbcc5327d17677825d
[ "Apache-2.0" ]
7
2020-01-28T22:11:53.000Z
2022-02-09T23:30:23.000Z
write_ipm_yml.py
minghanz/LaneNet
117428fbe01902551e8c15cbcc5327d17677825d
[ "Apache-2.0" ]
2
2019-06-08T15:46:49.000Z
2020-12-25T03:20:31.000Z
import cv2 import numpy as np import os def R_yaw(a): a = a/180*np.pi mat = np.zeros((3,3)) mat[0,0] = np.cos(a) mat[0,1] = -np.sin(a) mat[1,0] = np.sin(a) mat[1,1] = np.cos(a) mat[2,2] = 1 return mat def R_pitch(a): a = a/180*np.pi mat = np.zeros((3,3)) mat[0,0] = np.cos(a...
34.432143
113
0.602427
47358ca43da46b7eb6a04cd1f7fe284efd7e96f7
4,291
py
Python
tools/train.py
pancho111203/PaddleOCR
68560891d192922291455a439e759fccbba18772
[ "Apache-2.0" ]
15
2021-08-18T01:53:44.000Z
2022-03-28T10:57:05.000Z
tools/train.py
innodatalabs/PaddleOCR
ddab3b9e2108c3d8933b8e36deecb78b285d1276
[ "Apache-2.0" ]
1
2021-05-10T18:13:16.000Z
2021-05-10T18:13:16.000Z
tools/train.py
innodatalabs/PaddleOCR
ddab3b9e2108c3d8933b8e36deecb78b285d1276
[ "Apache-2.0" ]
9
2021-08-12T13:52:07.000Z
2022-03-28T17:58:50.000Z
# Copyright (c) 2020 PaddlePaddle Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by appli...
33.787402
112
0.682591
c96ebcda3d6201abf489188185b4b85c95a35ffa
682
py
Python
bubblesort.py
ankitraja786/SortingAlgorithmVisualizer
2d46f9e56aac653e7b620c849bf40efbc4a37342
[ "MIT" ]
2
2021-08-18T05:04:02.000Z
2021-08-19T16:13:38.000Z
bubblesort.py
ankitraja786/SortingAlgorithmVisualizer
2d46f9e56aac653e7b620c849bf40efbc4a37342
[ "MIT" ]
null
null
null
bubblesort.py
ankitraja786/SortingAlgorithmVisualizer
2d46f9e56aac653e7b620c849bf40efbc4a37342
[ "MIT" ]
null
null
null
import time def bubble_sort(data, drawData, timetick): d=len(data)-1 color=[] for i in range (len(data)): color.append('sky blue') for x in range (len(data)-1): for j in range (len(data)-1): if data[j]>data[j+1]: data[j],data[j+1]=data[j+1],data[j] ...
28.416667
57
0.469208
430126e47211b79f574091173bb89150e1e81242
16,944
py
Python
module/pipeline.py
Goochaozheng/ChunkFusion
7458a8e08886cc76cfeb87881c51e23b1d0674c3
[ "MIT" ]
3
2022-03-15T08:34:15.000Z
2022-03-15T08:40:06.000Z
module/pipeline.py
Goochaozheng/ChunkFusion
7458a8e08886cc76cfeb87881c51e23b1d0674c3
[ "MIT" ]
null
null
null
module/pipeline.py
Goochaozheng/ChunkFusion
7458a8e08886cc76cfeb87881c51e23b1d0674c3
[ "MIT" ]
null
null
null
import os import numpy as np import open3d as o3d import torch import cv2 from glob import glob from os.path import join from scipy.spatial.transform import Rotation from .chunkManager import constructChunksFromVolume from .fusionIntegrator import FusionIntegrator from .tsdfIntegrator import TSDFIntegrator from geomet...
38.162162
125
0.587288
593ac0bdaa4ef567cc495f48d7bf3586991e852e
582
py
Python
myriad/game/shell/service.py
oubiwann/myriad-worlds
bfbbab713e35c5700e37158a892c3a66a8c9f37a
[ "MIT" ]
3
2015-01-29T05:24:32.000Z
2021-05-10T01:47:36.000Z
myriad/game/shell/service.py
oubiwann/myriad-worlds
bfbbab713e35c5700e37158a892c3a66a8c9f37a
[ "MIT" ]
null
null
null
myriad/game/shell/service.py
oubiwann/myriad-worlds
bfbbab713e35c5700e37158a892c3a66a8c9f37a
[ "MIT" ]
null
null
null
from twisted.cred import portal from twisted.conch import manhole_ssh from twisted.conch.checkers import SSHPublicKeyDatabase from carapace.util import ssh as util from myriad.game.shell import servershell def getShellFactory(game, **namespace): realm = servershell.TerminalRealm(game, namespace) sshPortal =...
32.333333
58
0.773196
6348a7caef6ebcc491c784452da4a412cdea236d
3,410
py
Python
research/cv/AVA_cifar/src/loss.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
77
2021-10-15T08:32:37.000Z
2022-03-30T13:09:11.000Z
research/cv/AVA_cifar/src/loss.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
3
2021-10-30T14:44:57.000Z
2022-02-14T06:57:57.000Z
research/cv/AVA_cifar/src/loss.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
24
2021-10-15T08:32:45.000Z
2022-03-24T18:45:20.000Z
# Copyright 2021 Huawei Technologies Co., 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 applicable law or agreed to...
42.625
112
0.642229
84da98bdd19c4f70157839bde71e9af389b3e0eb
210
py
Python
components/exii18n/initialize.py
ateska/striga
451b5d9421e2e5fdf49b94c8f3d76e576abc5923
[ "MIT" ]
null
null
null
components/exii18n/initialize.py
ateska/striga
451b5d9421e2e5fdf49b94c8f3d76e576abc5923
[ "MIT" ]
null
null
null
components/exii18n/initialize.py
ateska/striga
451b5d9421e2e5fdf49b94c8f3d76e576abc5923
[ "MIT" ]
null
null
null
#!/usr/bin/env python # This script should be use to initialize babel locale data import sys, os os.chdir(os.path.dirname(__file__)) os.system('cd babel-0.9.5 && scripts/import_cldr.py ../cldr-1.6.1-core')
21
72
0.719048
b541c1b4bf77319319a95576c20eda12a6f07782
8,136
py
Python
homeassistant/components/powerwall/config_flow.py
liangleslie/core
cc807b4d597daaaadc92df4a93c6e30da4f570c6
[ "Apache-2.0" ]
30,023
2016-04-13T10:17:53.000Z
2020-03-02T12:56:31.000Z
homeassistant/components/powerwall/config_flow.py
liangleslie/core
cc807b4d597daaaadc92df4a93c6e30da4f570c6
[ "Apache-2.0" ]
24,710
2016-04-13T08:27:26.000Z
2020-03-02T12:59:13.000Z
homeassistant/components/powerwall/config_flow.py
liangleslie/core
cc807b4d597daaaadc92df4a93c6e30da4f570c6
[ "Apache-2.0" ]
11,956
2016-04-13T18:42:31.000Z
2020-03-02T09:32:12.000Z
"""Config flow for Tesla Powerwall integration.""" from __future__ import annotations from collections.abc import Mapping import logging from typing import Any from tesla_powerwall import ( AccessDeniedError, MissingAttributeError, Powerwall, PowerwallUnreachableError, SiteInfo, ) import voluptuou...
37.150685
90
0.617871
796608ae27ea758bee5bd92cf698ddc8ed3e8db2
3,931
py
Python
flexget/task_queue.py
signe/Flexget
dfe92d03415aab8254c5cf4827e06ad13da10504
[ "MIT" ]
null
null
null
flexget/task_queue.py
signe/Flexget
dfe92d03415aab8254c5cf4827e06ad13da10504
[ "MIT" ]
null
null
null
flexget/task_queue.py
signe/Flexget
dfe92d03415aab8254c5cf4827e06ad13da10504
[ "MIT" ]
null
null
null
import queue import sys import threading import time from loguru import logger from sqlalchemy.exc import OperationalError, ProgrammingError from flexget.task import TaskAbort logger = logger.bind(name='task_queue') class TaskQueue: """ Task processing thread. Only executes one task at a time, if more ...
34.787611
114
0.596795
a0bdb02506bbff87a24fb33640cb1ab4e77bc258
4,008
py
Python
Exercise/t11.py
Twenkid/Python-Various
cb6d704724d0e0325cf05a2f95b08cc892ff0857
[ "MIT" ]
null
null
null
Exercise/t11.py
Twenkid/Python-Various
cb6d704724d0e0325cf05a2f95b08cc892ff0857
[ "MIT" ]
null
null
null
Exercise/t11.py
Twenkid/Python-Various
cb6d704724d0e0325cf05a2f95b08cc892ff0857
[ "MIT" ]
null
null
null
#t11.py #python 3.3 print('...') #2-6-2014, 9:00 AM #see t15.py #Author: Todor #DrivesUsage, shutil, ..., sys.std.out.write ... #indent: space import sys #I want: to print without new line #test 1. from O'reilly print('aaaaa',) print('bbbbb',) #didn't work #test 2. from http://codingrecipes.com/pr...
24.740741
96
0.521956
2bc1b5c8f3c55c391c0f259a7ca9986d634afd44
31,550
py
Python
git_common.py
azureplus/chrome_depot_tools
dc7b108da629de39f923d510fc76ea2f58efa521
[ "BSD-3-Clause" ]
null
null
null
git_common.py
azureplus/chrome_depot_tools
dc7b108da629de39f923d510fc76ea2f58efa521
[ "BSD-3-Clause" ]
null
null
null
git_common.py
azureplus/chrome_depot_tools
dc7b108da629de39f923d510fc76ea2f58efa521
[ "BSD-3-Clause" ]
null
null
null
# Copyright 2014 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. # Monkeypatch IMapIterator so that Ctrl-C can kill everything properly. # Derived from https://gist.github.com/aljungberg/626518 from __future__ import prin...
28.423423
80
0.664945
e2222189d142f7c27badb94a37124df3f5e08297
664
py
Python
telephus/cassandra/ttypes.py
tweetdeck/Telephus
c5acf498d1169abac108e782c061b78ca81c7cea
[ "MIT" ]
1
2015-12-09T09:24:44.000Z
2015-12-09T09:24:44.000Z
telephus/cassandra/ttypes.py
tweetdeck/Telephus
c5acf498d1169abac108e782c061b78ca81c7cea
[ "MIT" ]
null
null
null
telephus/cassandra/ttypes.py
tweetdeck/Telephus
c5acf498d1169abac108e782c061b78ca81c7cea
[ "MIT" ]
null
null
null
from telephus.cassandra.c08.ttypes import * class KsDef(KsDef): def to07(self): if self.strategy_options and 'replication_factor' in self.strategy_options: if self.replication_factor is None: self.replication_factor = int(self.strategy_options['replication_factor']) ret...
36.888889
90
0.662651
b87e16c754832c2831c19026b8b756a6dda8e612
33,973
py
Python
torchvision/transforms/functional_tensor.py
nikhilkmr300/vision
afc502bd669fe97001a50d0ce2373d13c011ed44
[ "BSD-3-Clause" ]
null
null
null
torchvision/transforms/functional_tensor.py
nikhilkmr300/vision
afc502bd669fe97001a50d0ce2373d13c011ed44
[ "BSD-3-Clause" ]
null
null
null
torchvision/transforms/functional_tensor.py
nikhilkmr300/vision
afc502bd669fe97001a50d0ce2373d13c011ed44
[ "BSD-3-Clause" ]
null
null
null
import warnings import torch from torch import Tensor from torch.nn.functional import grid_sample, conv2d, interpolate, pad as torch_pad from torch.jit.annotations import BroadcastingList2 from typing import Optional, Tuple, List def _is_tensor_a_torch_image(x: Tensor) -> bool: return x.ndim >= 2 def _assert_i...
35.988347
119
0.642334
6187fe225b1595ca7b5fa15f1da4f3b6b34942c6
458
py
Python
exfoliate/__init__.py
brianjpetersen/exfoliate
3a06f5a94a48a260ed4a6baae7802a071c5cd7fa
[ "MIT" ]
1
2017-09-04T19:24:05.000Z
2017-09-04T19:24:05.000Z
exfoliate/__init__.py
brianjpetersen/exfoliate
3a06f5a94a48a260ed4a6baae7802a071c5cd7fa
[ "MIT" ]
null
null
null
exfoliate/__init__.py
brianjpetersen/exfoliate
3a06f5a94a48a260ed4a6baae7802a071c5cd7fa
[ "MIT" ]
null
null
null
import os from . import exfoliate __where__ = os.path.dirname(os.path.abspath(__file__)) with open(os.path.join(__where__, 'VERSION.txt'), 'rb') as f: __version__ = f.read().decode('ascii').strip() TCPConnector = exfoliate.TCPConnector CookieJar = exfoliate.CookieJar DummyCookieJar = exfoliate.DummyCook...
26.941176
61
0.770742
9477b572242bde88724a87177e54218ba88f0ebe
4,981
py
Python
examples/digits_metrics.py
interpretapple-lab/xsvmc-lib
b627701646d839ba46e4887538796dc170502f9e
[ "Apache-2.0" ]
null
null
null
examples/digits_metrics.py
interpretapple-lab/xsvmc-lib
b627701646d839ba46e4887538796dc170502f9e
[ "Apache-2.0" ]
null
null
null
examples/digits_metrics.py
interpretapple-lab/xsvmc-lib
b627701646d839ba46e4887538796dc170502f9e
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # # This example shows how to evaluate the performance of xSVMC while performing contextualized predictions of the # classes of handwritten numbers. # # Keywords: xSVMC, multiclass classification, contextualized classification # import cv2 as cv import numpy as np from matplotlib import pyplot ...
32.135484
115
0.64465
26ea43e83dac5028c144aba19bcf6a42c1df746f
1,146
py
Python
trajectory_code/populate/sophicated_generator.py
saimmehmood/POI_Clustering
ffa4d36c1c288427fa6a37773d81c924c3747bd9
[ "MIT" ]
null
null
null
trajectory_code/populate/sophicated_generator.py
saimmehmood/POI_Clustering
ffa4d36c1c288427fa6a37773d81c924c3747bd9
[ "MIT" ]
null
null
null
trajectory_code/populate/sophicated_generator.py
saimmehmood/POI_Clustering
ffa4d36c1c288427fa6a37773d81c924c3747bd9
[ "MIT" ]
null
null
null
import imp import numpy as np import pandas as pd import random #use one trajectory path and generate many more trajectories path = imp.load_source('path', '../trajectory/route.py') calculation = imp.load_source('calculation', '../distance/calculation.py') # create a list that store the VALID points around a speci...
24.913043
74
0.69808
342a85e5ac495f41902afb4b40a048df6b6bfcae
434
py
Python
home/kwatters/harry/gestures/takeball.py
rv8flyboy/pyrobotlab
4e04fb751614a5cb6044ea15dcfcf885db8be65a
[ "Apache-2.0" ]
63
2015-02-03T18:49:43.000Z
2022-03-29T03:52:24.000Z
home/kwatters/harry/gestures/takeball.py
hirwaHenryChristian/pyrobotlab
2debb381fc2db4be1e7ea6e5252a50ae0de6f4a9
[ "Apache-2.0" ]
16
2016-01-26T19:13:29.000Z
2018-11-25T21:20:51.000Z
home/kwatters/harry/gestures/takeball.py
hirwaHenryChristian/pyrobotlab
2debb381fc2db4be1e7ea6e5252a50ae0de6f4a9
[ "Apache-2.0" ]
151
2015-01-03T18:55:54.000Z
2022-03-04T07:04:23.000Z
def takeball(): rest() i01.disableRobotRandom(30) i01.setHandSpeed("right", 0.65, 0.55, 0.65, 0.75, 0.85, 0.75) i01.setArmSpeed("right", 0.85, 0.85, 0.85, 0.85) i01.setHeadSpeed(0.9, 0.9) i01.setTorsoSpeed(0.75, 0.55, 1.0) i01.moveHead(30,70) i01.moveArm("left",5,84,16,15) i01.moveArm("right",6,73,66,...
31
63
0.64977
9e3b3ebfa4ce1b886828a9343de5dbf7f336c123
623
py
Python
pirssi/consumer.py
wonkybream/pirssi
a859972fe7e01636f43e7bebe87f0fd2b7e22426
[ "MIT" ]
2
2021-10-03T10:01:17.000Z
2021-10-03T10:23:31.000Z
pirssi/consumer.py
wonkybream/pirssi
a859972fe7e01636f43e7bebe87f0fd2b7e22426
[ "MIT" ]
2
2021-11-16T15:57:53.000Z
2022-03-14T21:24:21.000Z
pirssi/consumer.py
wonkybream/pirssi
a859972fe7e01636f43e7bebe87f0fd2b7e22426
[ "MIT" ]
null
null
null
from typing import Callable from pirssi.connection import Connection from pirssi.handler import Handler class Consumer: _connection: Connection _handler = Handler = Handler() def __init__(self, connection: Connection): self._connection = connection def connect(self): self._connecti...
22.25
51
0.685393
b78b0050ee595776ec4233079142b70014c60402
7,815
py
Python
python/drydock_provisioner/drivers/node/maasdriver/models/partition.py
Vjrx/airship-drydock
315fb9864e6d55a66d5266f76c160be55d22c98b
[ "Apache-2.0" ]
14
2018-05-19T11:58:22.000Z
2019-05-10T12:31:36.000Z
python/drydock_provisioner/drivers/node/maasdriver/models/partition.py
Vjrx/airship-drydock
315fb9864e6d55a66d5266f76c160be55d22c98b
[ "Apache-2.0" ]
10
2019-11-12T17:21:16.000Z
2021-11-10T18:16:06.000Z
python/drydock_provisioner/drivers/node/maasdriver/models/partition.py
Vjrx/airship-drydock
315fb9864e6d55a66d5266f76c160be55d22c98b
[ "Apache-2.0" ]
11
2018-06-05T16:21:18.000Z
2019-04-03T11:44:34.000Z
# Copyright 2017 AT&T Intellectual Property. All other 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...
36.013825
87
0.567115
1f8e8e2c47968bec538052897d51358a2fdf1245
5,176
py
Python
ThirdParty/googlebenchmark/tools/gbench/util.py
dr-pain/omniscidb
7bf56492aa7cf83ea0ca190207619bec93aac768
[ "Apache-2.0" ]
5,895
2015-01-01T12:28:18.000Z
2022-03-31T07:50:46.000Z
ThirdParty/googlebenchmark/tools/gbench/util.py
dr-pain/omniscidb
7bf56492aa7cf83ea0ca190207619bec93aac768
[ "Apache-2.0" ]
479
2015-01-01T12:24:31.000Z
2022-03-25T06:15:40.000Z
ThirdParty/googlebenchmark/tools/gbench/util.py
dr-pain/omniscidb
7bf56492aa7cf83ea0ca190207619bec93aac768
[ "Apache-2.0" ]
888
2015-01-01T11:17:44.000Z
2022-03-31T06:44:44.000Z
"""util.py - General utilities for running, loading, and processing benchmarks """ import json import os import tempfile import subprocess import sys # Input file type enumeration IT_Invalid = 0 IT_JSON = 1 IT_Executable = 2 _num_magic_bytes = 2 if sys.platform.startswith('win') else 4 def is_executable_file(filena...
31.369697
91
0.65398
95f27466db29a9f1d36446bc600231bb21419e66
659
py
Python
migrations/versions/2d6a7ad4e1eb_.py
majdal/tasking-manager
eb8851a9095a3eb64c531946fd7ee81cb95ccc8d
[ "BSD-2-Clause" ]
421
2017-02-16T15:02:51.000Z
2022-03-06T07:12:14.000Z
migrations/versions/2d6a7ad4e1eb_.py
majdal/tasking-manager
eb8851a9095a3eb64c531946fd7ee81cb95ccc8d
[ "BSD-2-Clause" ]
3,143
2017-02-14T16:47:25.000Z
2022-03-30T11:25:20.000Z
migrations/versions/2d6a7ad4e1eb_.py
majdal/tasking-manager
eb8851a9095a3eb64c531946fd7ee81cb95ccc8d
[ "BSD-2-Clause" ]
280
2017-04-06T19:51:32.000Z
2022-03-16T09:21:27.000Z
"""empty message Revision ID: 2d6a7ad4e1eb Revises: 14340f1e0d6b Create Date: 2020-03-23 12:10:20.120500 """ from alembic import op # revision identifiers, used by Alembic. revision = "2d6a7ad4e1eb" down_revision = "14340f1e0d6b" branch_labels = None depends_on = None def upgrade(): op.rename_table("users_lic...
23.535714
62
0.75569
eb3d47f9960bdc8936a380c250623f30f66018fd
350
py
Python
sandbox/lib/jumpscale/JumpscaleLibs/clients/ipmi/IpmiFactory.py
threefoldtech/threebot_prebuilt
1f0e1c65c14cef079cd80f73927d7c8318755c48
[ "Apache-2.0" ]
null
null
null
sandbox/lib/jumpscale/JumpscaleLibs/clients/ipmi/IpmiFactory.py
threefoldtech/threebot_prebuilt
1f0e1c65c14cef079cd80f73927d7c8318755c48
[ "Apache-2.0" ]
117
2019-09-01T11:59:19.000Z
2020-07-14T11:10:08.000Z
sandbox/lib/jumpscale/JumpscaleLibs/clients/ipmi/IpmiFactory.py
threefoldtech/threebot_prebuilt
1f0e1c65c14cef079cd80f73927d7c8318755c48
[ "Apache-2.0" ]
2
2020-04-06T15:21:23.000Z
2020-05-07T04:29:53.000Z
from .Ipmi import Ipmi from Jumpscale import j JSConfigBaseFactory = j.baseclasses.object_config_collection class IpmiFactory(JSConfigBaseFactory): """ Ipmi client factory Before using the ipmi client, make sure to install requirements.txt included in this directory """ __jslocation__ = "j.clients...
21.875
98
0.757143
f35470623de7eab634d04e47b192034fe63205a4
1,253
py
Python
src/rubrix/sdk/models/text_classification_bulk_data_tags.py
drahnreb/rubrix
340e545baf4d65a0d94e3c671ad6c93ff1d59700
[ "Apache-2.0" ]
null
null
null
src/rubrix/sdk/models/text_classification_bulk_data_tags.py
drahnreb/rubrix
340e545baf4d65a0d94e3c671ad6c93ff1d59700
[ "Apache-2.0" ]
null
null
null
src/rubrix/sdk/models/text_classification_bulk_data_tags.py
drahnreb/rubrix
340e545baf4d65a0d94e3c671ad6c93ff1d59700
[ "Apache-2.0" ]
null
null
null
from typing import Any, Dict, List, Type, TypeVar import attr T = TypeVar("T", bound="TextClassificationBulkDataTags") @attr.s(auto_attribs=True) class TextClassificationBulkDataTags: """ """ additional_properties: Dict[str, str] = attr.ib(init=False, factory=dict) def to_dict(self) -> Dict[str, Any]...
27.844444
77
0.676776
4a102d71d0b862c8bd7a54f36b0f0722b30a51eb
4,361
py
Python
src/planning/settings/base.py
stuttup/planning
0932a6af171a616ad3de50c343aed417ee25a222
[ "MIT" ]
null
null
null
src/planning/settings/base.py
stuttup/planning
0932a6af171a616ad3de50c343aed417ee25a222
[ "MIT" ]
null
null
null
src/planning/settings/base.py
stuttup/planning
0932a6af171a616ad3de50c343aed417ee25a222
[ "MIT" ]
null
null
null
""" Django settings for planning project. For more information on this file, see https://docs.djangoproject.com/en/dev/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/dev/ref/settings/ """ from django.core.urlresolvers import reverse_lazy from os.path import dirn...
27.601266
74
0.711534
55fa2a0c850f8bba1d8132417124548c9ad57fbe
780
py
Python
setup.py
DaniFdezAlvarez/wikidata_rdf_annotator
bbb291cc55a3337fb6df351dff8f32f543653096
[ "Apache-2.0" ]
3
2021-01-19T17:41:37.000Z
2022-01-09T19:39:06.000Z
setup.py
DaniFdezAlvarez/wikidata_rdf_annotator
bbb291cc55a3337fb6df351dff8f32f543653096
[ "Apache-2.0" ]
8
2021-01-19T20:18:54.000Z
2021-01-24T19:39:30.000Z
setup.py
DaniFdezAlvarez/wikidata_rdf_annotator
bbb291cc55a3337fb6df351dff8f32f543653096
[ "Apache-2.0" ]
null
null
null
from distutils.core import setup setup( name = 'wlighter', packages = ['wlighter'], version = '1.0.1', license='Apache2.0', description = 'library to annotate RDF of ShEx containing wikidata URIs with a readable label', author = 'Daniel Fernandez-Alvarez', author_email = 'danifdezalvarez@g...
37.142857
98
0.628205
5f3350e490da5300bf505f30c348501bd76cf3a3
7,606
py
Python
tests/handlers/test_auth.py
lukaslihotzki/synapse
1dfdc87b9bb07cc3c958dde7f41f2af4322477e5
[ "Apache-2.0" ]
7
2020-07-03T13:51:31.000Z
2022-03-10T01:26:18.000Z
tests/handlers/test_auth.py
lukaslihotzki/synapse
1dfdc87b9bb07cc3c958dde7f41f2af4322477e5
[ "Apache-2.0" ]
69
2019-09-09T13:54:30.000Z
2022-03-23T10:45:15.000Z
tests/handlers/test_auth.py
lukaslihotzki/synapse
1dfdc87b9bb07cc3c958dde7f41f2af4322477e5
[ "Apache-2.0" ]
7
2020-04-24T17:04:40.000Z
2021-07-29T23:06:25.000Z
# 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 applicable law or agreed to in ...
34.730594
88
0.655667
a4bd3e64edc35d3f9c5d64745753458ec1c9d9ed
2,306
py
Python
steam_id_discord_bot/log_conf.py
jim-hart/steam-id-discord-bot
2a7bb91819b3e53df4723f52e8a74ea796f4c30b
[ "Apache-2.0" ]
null
null
null
steam_id_discord_bot/log_conf.py
jim-hart/steam-id-discord-bot
2a7bb91819b3e53df4723f52e8a74ea796f4c30b
[ "Apache-2.0" ]
null
null
null
steam_id_discord_bot/log_conf.py
jim-hart/steam-id-discord-bot
2a7bb91819b3e53df4723f52e8a74ea796f4c30b
[ "Apache-2.0" ]
null
null
null
import json import logging import logging.config import os from pathlib import Path _HERE = Path(__file__).parent.resolve() def _isfile(*parts): return os.path.isfile(os.path.join(*parts)) class _LoggingConfig: _singleton = None def __new__(cls, *args, **kwargs): if cls._singleton is None: ...
29.948052
75
0.613617
d80856ee08ef203ce6accdd360f5996a8c3ff908
272
py
Python
advanced/solutions/iris_classification.py
carlosal1015/ACM-Python-Tutorials-KAUST-2015
688acf1017dba7687254a8c880b7f19c6f939c3f
[ "CC-BY-3.0" ]
5
2019-01-16T14:43:43.000Z
2021-06-29T02:20:47.000Z
advanced/solutions/iris_classification.py
carlosal1015/ACM-Python-Tutorials-KAUST-2015
688acf1017dba7687254a8c880b7f19c6f939c3f
[ "CC-BY-3.0" ]
null
null
null
advanced/solutions/iris_classification.py
carlosal1015/ACM-Python-Tutorials-KAUST-2015
688acf1017dba7687254a8c880b7f19c6f939c3f
[ "CC-BY-3.0" ]
3
2017-02-21T06:19:19.000Z
2021-06-29T02:20:54.000Z
knn = KNeighborsClassifier(n_neighbors=3) knn.fit(X, y) predictions = knn.predict(Xt) Accuracy = sum(predictions == yt) / predictions.shape[0] print "KNN accuracy: %.3f" % Accuracy svc = LinearSVC(loss = 'l2') svc.fit(X, y) print "SVC accuracy: %.3f" % svc.score(Xt, yt)
27.2
56
0.694853
1683233f2a7f5d3301b5c8d85fd9acf3c1ddaed0
214
py
Python
manage.py
jbalmant/python-backend
4d61ca88a4347155d9d77c8bc8ea13c6f7fecb96
[ "MIT" ]
null
null
null
manage.py
jbalmant/python-backend
4d61ca88a4347155d9d77c8bc8ea13c6f7fecb96
[ "MIT" ]
null
null
null
manage.py
jbalmant/python-backend
4d61ca88a4347155d9d77c8bc8ea13c6f7fecb96
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- from flask_script import Manager from python_backend.app import create_app app = create_app() manager = Manager(app) if __name__ == "__main__": manager.run()
14.266667
41
0.696262
dcd8ddb7b1bf27735e470d2e2034c0ddc87f93c5
1,852
py
Python
Data Structures/Linked Lists/detect-whether-a-linked-list-contains-a-cycle.py
Murillo/Hackerrank-Algorithms
98f654f984013140d52b9a344146e9e38e46fb81
[ "MIT" ]
23
2020-02-28T16:18:48.000Z
2021-12-21T11:51:07.000Z
Data Structures/Linked Lists/detect-whether-a-linked-list-contains-a-cycle.py
ramanagali/Hackerrank-Problem-Solving
98f654f984013140d52b9a344146e9e38e46fb81
[ "MIT" ]
null
null
null
Data Structures/Linked Lists/detect-whether-a-linked-list-contains-a-cycle.py
ramanagali/Hackerrank-Problem-Solving
98f654f984013140d52b9a344146e9e38e46fb81
[ "MIT" ]
16
2020-04-08T10:46:39.000Z
2021-11-15T03:46:56.000Z
# Problem: Cycle Detection # Url: https://www.hackerrank.com/challenges/detect-whether-a-linked-list-contains-a-cycle/problem # Level: Medium # Developer: Murillo Grübler # Technique: floyd cycle detection algorithm class SinglyLinkedListNode: def __init__(self, node_data): self.data = node_data se...
24.051948
98
0.564255