hexsha
stringlengths
40
40
size
int64
2
1.05M
ext
stringclasses
9 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
4
193
max_stars_repo_name
stringlengths
6
109
max_stars_repo_head_hexsha
stringlengths
40
78
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
36.6k
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
193
max_issues_repo_name
stringlengths
6
109
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
29.8k
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
193
max_forks_repo_name
stringlengths
6
109
max_forks_repo_head_hexsha
stringlengths
40
78
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
11.2k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
2
1.05M
avg_line_length
float64
1
404k
max_line_length
int64
1
1.03M
alphanum_fraction
float64
0
1
9e6c8d61dcda44c9e302f2fe51ae2f1756567e48
21,177
py
Python
src/fidesops/task/graph_task.py
mohan-pogala/fidesops
5c686362d4fb3b85253dd7e2898be1131a5071ab
[ "Apache-2.0" ]
null
null
null
src/fidesops/task/graph_task.py
mohan-pogala/fidesops
5c686362d4fb3b85253dd7e2898be1131a5071ab
[ "Apache-2.0" ]
null
null
null
src/fidesops/task/graph_task.py
mohan-pogala/fidesops
5c686362d4fb3b85253dd7e2898be1131a5071ab
[ "Apache-2.0" ]
null
null
null
import copy import logging import traceback from abc import ABC from functools import wraps from time import sleep from typing import List, Dict, Any, Tuple, Callable, Optional import dask from dask.threaded import get from fidesops.core.config import config from fidesops.graph.config import ( CollectionAddress...
39.362454
121
0.631345
9e6c9edcb7a09559bce475169f3d87430c9e7256
56,603
py
Python
google-cloud-sdk/.install/.backup/lib/googlecloudsdk/api_lib/compute/base_classes.py
KaranToor/MA450
c98b58aeb0994e011df960163541e9379ae7ea06
[ "Apache-2.0" ]
1
2017-11-29T18:52:27.000Z
2017-11-29T18:52:27.000Z
google-cloud-sdk/.install/.backup/lib/googlecloudsdk/api_lib/compute/base_classes.py
KaranToor/MA450
c98b58aeb0994e011df960163541e9379ae7ea06
[ "Apache-2.0" ]
null
null
null
google-cloud-sdk/.install/.backup/lib/googlecloudsdk/api_lib/compute/base_classes.py
KaranToor/MA450
c98b58aeb0994e011df960163541e9379ae7ea06
[ "Apache-2.0" ]
1
2020-07-25T12:09:01.000Z
2020-07-25T12:09:01.000Z
# Copyright 2014 Google 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 by applicable law or ag...
31.533705
80
0.668021
9e6ca738b0c6862313473acf1404b68feff039fc
37,736
py
Python
habitat_baselines/rl/ppo/ppo_trainer.py
Skylark0924/habitat-lab
31bb5777f73a0540222a6668c57673a07b6f311e
[ "MIT" ]
1
2021-03-18T06:16:51.000Z
2021-03-18T06:16:51.000Z
habitat_baselines/rl/ppo/ppo_trainer.py
Skylark0924/habitat-lab
31bb5777f73a0540222a6668c57673a07b6f311e
[ "MIT" ]
null
null
null
habitat_baselines/rl/ppo/ppo_trainer.py
Skylark0924/habitat-lab
31bb5777f73a0540222a6668c57673a07b6f311e
[ "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. import contextlib import os import random import time from collections import defaultdict, deque from typing import Any,...
34.52516
143
0.556948
9e6ca8e873a3df61b4eea3329c4869ccdb0b94a4
4,871
py
Python
skimage/draw/tests/test_draw.py
jaberg/scikits-image
2ab3e2dfb341189ef2ff9370c6cf3d33ef6ec88d
[ "BSD-3-Clause" ]
2
2019-01-17T22:10:17.000Z
2020-02-22T04:20:38.000Z
skimage/draw/tests/test_draw.py
amueller/scikit-image
a8bfc5c5814a3c7fe363cfcad0c68b935706cd3c
[ "BSD-3-Clause" ]
1
2020-03-30T12:31:55.000Z
2020-03-30T12:31:55.000Z
skimage/draw/tests/test_draw.py
emmanuelle/scikit-image
eccc41907135cf81b99c4be18a480a9bc705485d
[ "BSD-3-Clause" ]
1
2019-12-20T19:19:59.000Z
2019-12-20T19:19:59.000Z
from numpy.testing import assert_array_equal import numpy as np from skimage.draw import line, polygon, circle, ellipse def test_line_horizontal(): img = np.zeros((10, 10)) rr, cc = line(0, 0, 0, 9) img[rr, cc] = 1 img_ = np.zeros((10, 10)) img_[0, :] = 1 assert_array_equal(img, img_) de...
26.617486
71
0.402587
9e6d0232ec8d09d3c9dbcf096abcc005504e0db2
1,849
py
Python
Common/Readers/Engine/YahooFinStockInfo.py
enriqueescobar-askida/Kinito.Finance
5308748b64829ac798a858161f9b4a9e5829db44
[ "MIT" ]
2
2020-03-04T11:18:38.000Z
2020-05-10T15:36:42.000Z
Common/Readers/Engine/YahooFinStockInfo.py
enriqueescobar-askida/Kinito.Finance
5308748b64829ac798a858161f9b4a9e5829db44
[ "MIT" ]
6
2020-03-30T16:42:47.000Z
2021-12-13T20:37:21.000Z
Common/Readers/Engine/YahooFinStockInfo.py
enriqueescobar-askida/Kinito.Finance
5308748b64829ac798a858161f9b4a9e5829db44
[ "MIT" ]
1
2020-04-14T11:26:16.000Z
2020-04-14T11:26:16.000Z
import numpy as np import yahoo_fin.stock_info as si from pandas import DataFrame from Common.Readers.Engine.AbstractEngine import AbstractEngine class YahooFinStockInfo(AbstractEngine): __val: DataFrame = DataFrame() __quote: dict __ticker: str = 'CNI' __pe_ratio: float = np.nan __fpe_ratio: flo...
33.618182
110
0.68199
9e6d0797b61b45b7f5ff41300a27e1965f999678
11,666
py
Python
main.py
Vious/LPG_BBox_Segmentation
bcb4c9e948df16763308087a4986cdb7f1a5896b
[ "MIT" ]
14
2021-03-10T05:41:16.000Z
2022-02-21T11:56:04.000Z
main.py
Vious/LPG_BBox_Segmentation
bcb4c9e948df16763308087a4986cdb7f1a5896b
[ "MIT" ]
null
null
null
main.py
Vious/LPG_BBox_Segmentation
bcb4c9e948df16763308087a4986cdb7f1a5896b
[ "MIT" ]
1
2022-02-21T11:56:06.000Z
2022-02-21T11:56:06.000Z
import os import argparse import torch import torch.nn as nn import torch.nn.functional as F import yaml import numpy as np from addict import Dict from PIL import Image from dataloader.voc import VOCDataset from models.vgg import Deeplab_LargeFOV from models.resnet101 import DeepLabV2_Resnet101 from models.msc import ...
36.570533
123
0.57749
9e6d082f0e0071662b714646ec4f418aacf61c35
10,724
py
Python
content/_build/jupyter_execute/14_pandas/edm_us_adult_census_income/questions.py
aviadr1/learn-python3
e90f05aa026772c6db7fd4f3ccc2518d983ac4fa
[ "MIT" ]
null
null
null
content/_build/jupyter_execute/14_pandas/edm_us_adult_census_income/questions.py
aviadr1/learn-python3
e90f05aa026772c6db7fd4f3ccc2518d983ac4fa
[ "MIT" ]
null
null
null
content/_build/jupyter_execute/14_pandas/edm_us_adult_census_income/questions.py
aviadr1/learn-python3
e90f05aa026772c6db7fd4f3ccc2518d983ac4fa
[ "MIT" ]
null
null
null
#!/usr/bin/env python # coding: utf-8 # # <a href="https://colab.research.google.com/github/aviadr1/learn-advanced-python/blob/master/content/14_pandas/edm_us_adult_census_income/questions.ipynb" target="_blank"> # <img src="https://colab.research.google.com/assets/colab-badge.svg" # title="Open this file in Go...
52.058252
435
0.731816
9e6d1a6dd80ba0841fa38698ed4ec3cc4dcad017
585
py
Python
tests/helpers/test_navigation.py
feiphoon/ner-pipeline
1c343eea458e9c546bb8b53adcd22118d171aa63
[ "MIT" ]
null
null
null
tests/helpers/test_navigation.py
feiphoon/ner-pipeline
1c343eea458e9c546bb8b53adcd22118d171aa63
[ "MIT" ]
null
null
null
tests/helpers/test_navigation.py
feiphoon/ner-pipeline
1c343eea458e9c546bb8b53adcd22118d171aa63
[ "MIT" ]
null
null
null
from src.helpers.navigation import get_directories, get_files class TestGetDirectories: def test_get_directories(self, tmpdir): tmpdir.mkdir("potato") tmpdir.mkdir("banana") p = tmpdir.join("hello.txt") p.write("hi") assert [_.name for _ in get_directories(tmpdir)] == ["pot...
29.25
80
0.625641
9e6d1bdba85795cd1724941944b353cfa953430c
3,668
py
Python
bootcamp/messager/models.py
joygfs/bootcamp
3fe4be11e1d6c6a02830a5c1c720f5e39db1dbf1
[ "MIT" ]
null
null
null
bootcamp/messager/models.py
joygfs/bootcamp
3fe4be11e1d6c6a02830a5c1c720f5e39db1dbf1
[ "MIT" ]
null
null
null
bootcamp/messager/models.py
joygfs/bootcamp
3fe4be11e1d6c6a02830a5c1c720f5e39db1dbf1
[ "MIT" ]
null
null
null
import uuid from django.conf import settings from django.contrib.auth import get_user_model from django.db import models from django.utils.translation import ugettext_lazy as _ from django.db import transaction from asgiref.sync import async_to_sync from channels.layers import get_channel_layer class MessageQueryS...
34.603774
84
0.645583
9e6d2c818b70e1863802406c712f3fca40172e22
3,254
py
Python
sdk/containerregistry/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2019_05_01/models/task_update_parameters.py
pjquirk/azure-sdk-for-python
cbf02ec4f177b96eae1dbbba87c34c2c93880150
[ "MIT" ]
null
null
null
sdk/containerregistry/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2019_05_01/models/task_update_parameters.py
pjquirk/azure-sdk-for-python
cbf02ec4f177b96eae1dbbba87c34c2c93880150
[ "MIT" ]
null
null
null
sdk/containerregistry/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2019_05_01/models/task_update_parameters.py
pjquirk/azure-sdk-for-python
cbf02ec4f177b96eae1dbbba87c34c2c93880150
[ "MIT" ]
null
null
null
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for # license information. # # Code generated by Microsoft (R) AutoRest Code Generator. # Changes ...
45.830986
99
0.660418
9e6d44c6a772dc25218e31e0600fffa3cf9323eb
470
py
Python
panasonic_camera/discover.py
maiermic/robot-cameraman
afe441cf1677322062da77aa782a08f10440fcc7
[ "MIT" ]
7
2019-11-17T13:18:07.000Z
2022-03-13T04:14:15.000Z
panasonic_camera/discover.py
maiermic/robot-cameraman
afe441cf1677322062da77aa782a08f10440fcc7
[ "MIT" ]
14
2021-02-03T16:21:21.000Z
2022-03-11T23:57:48.000Z
panasonic_camera/discover.py
maiermic/robot-cameraman
afe441cf1677322062da77aa782a08f10440fcc7
[ "MIT" ]
2
2021-04-21T21:22:49.000Z
2021-05-28T17:39:13.000Z
from typing import List import upnpclient def is_panasonic_camera(device: upnpclient.Device): return (device.manufacturer == 'Panasonic' and device.model_name in ('LUMIX', 'Video Camera')) def discover_panasonic_camera_devices(timeout=1) -> List[upnpclient.Device]: return list(filter(is_panason...
24.736842
76
0.751064
9e6d4c519daeec34129c9704b8f76eecc4c18463
111
py
Python
bflib/characters/specialabilities/darkvision.py
ChrisLR/BasicDungeonRL
b293d40bd9a0d3b7aec41b5e1d58441165997ff1
[ "MIT" ]
3
2017-10-28T11:28:38.000Z
2018-09-12T09:47:00.000Z
bflib/characters/specialabilities/darkvision.py
ChrisLR/BasicDungeonRL
b293d40bd9a0d3b7aec41b5e1d58441165997ff1
[ "MIT" ]
null
null
null
bflib/characters/specialabilities/darkvision.py
ChrisLR/BasicDungeonRL
b293d40bd9a0d3b7aec41b5e1d58441165997ff1
[ "MIT" ]
null
null
null
from bflib.characters.specialabilities.base import SpecialAbility class Darkvision(SpecialAbility): pass
18.5
65
0.828829
9e6d7a939eedca679a087d46792b241b4b7428db
16,514
py
Python
25dflipper/flipper25d/following.py
STAR-Center/flipperplanning3DTerrain
fcbe076446bbc6cb10da67b81c9a6349b4c51b66
[ "MIT" ]
null
null
null
25dflipper/flipper25d/following.py
STAR-Center/flipperplanning3DTerrain
fcbe076446bbc6cb10da67b81c9a6349b4c51b66
[ "MIT" ]
null
null
null
25dflipper/flipper25d/following.py
STAR-Center/flipperplanning3DTerrain
fcbe076446bbc6cb10da67b81c9a6349b4c51b66
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- #!/usr/bin/env python2 ''' no worry about the delta flipper angle but delta_m might be complicated: from yaw_t-1, 0., 0. to yaw_t, pitch_t, roll_t, delta_m = delta_m_from_yaw_roll_dist + delta_m_from_roll roll will make it a triangular ''' from __future__ i...
43.687831
280
0.607061
9e6dab7a545def65a7275e119586acabec6e2732
9,045
py
Python
scripts/collect_api_version_for_multi_api_sdk/main.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
1
2022-02-01T18:50:12.000Z
2022-02-01T18:50:12.000Z
scripts/collect_api_version_for_multi_api_sdk/main.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
null
null
null
scripts/collect_api_version_for_multi_api_sdk/main.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
null
null
null
import os import re import json import logging import subprocess import yaml from pathlib import Path from typing import Any, Set, Dict from github import Github from tempfile import TemporaryDirectory import importlib.util from github.GithubException import UnknownObjectException _LOG = logging.getLogger() SOURCE_...
44.121951
117
0.655832
9e6daf4fbb0a0e7d1ae25889d200bc88bc4d19ca
6,909
py
Python
sdk/core/azure-core/tests/test_universal_pipeline.py
pjquirk/azure-sdk-for-python
cbf02ec4f177b96eae1dbbba87c34c2c93880150
[ "MIT" ]
1
2021-09-07T18:36:04.000Z
2021-09-07T18:36:04.000Z
sdk/core/azure-core/tests/test_universal_pipeline.py
pjquirk/azure-sdk-for-python
cbf02ec4f177b96eae1dbbba87c34c2c93880150
[ "MIT" ]
2
2019-10-02T23:37:38.000Z
2020-10-02T01:17:31.000Z
sdk/core/azure-core/tests/test_universal_pipeline.py
xiafu-msft/azure-sdk-for-python
4d9560cfd519ee60667f3cc2f5295a58c18625db
[ "MIT" ]
null
null
null
#-------------------------------------------------------------------------- # # Copyright (c) Microsoft Corporation. All rights reserved. # # The MIT License (MIT) # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the ""Software""), t...
39.48
121
0.720509
9e6dc58fbf5cc965918ed2a3ff5bbf2942862fcd
9,507
py
Python
exorad/models/target.py
derikk/ExoRad2-public
034406bfd8237670f0796f9c95ab2fa5d609bc95
[ "BSD-3-Clause" ]
null
null
null
exorad/models/target.py
derikk/ExoRad2-public
034406bfd8237670f0796f9c95ab2fa5d609bc95
[ "BSD-3-Clause" ]
null
null
null
exorad/models/target.py
derikk/ExoRad2-public
034406bfd8237670f0796f9c95ab2fa5d609bc95
[ "BSD-3-Clause" ]
null
null
null
import re import numpy as np import xlrd from astropy import constants as cc from astropy import units as u from astropy.io import ascii from exorad.log.logger import Logger from exorad.models.source import Star, CustomSed compactString = lambda string: string.replace(' ', '').replace('-', '').lower() stripUnitStrin...
29.802508
114
0.563374
9e6dd11f4efea42b7b3cbd4a6df99c95ffd25f1e
1,939
py
Python
write_lidar_packets_bytes.py
NizarTarabay/Extract_packets_os16
94ca8b58f035582b78c15ed105a57140a1eb82b2
[ "MIT" ]
1
2020-01-21T06:45:58.000Z
2020-01-21T06:45:58.000Z
write_lidar_packets_bytes.py
NizarTarabay/Extract_packets_os16
94ca8b58f035582b78c15ed105a57140a1eb82b2
[ "MIT" ]
1
2020-02-11T15:31:55.000Z
2020-02-12T16:30:47.000Z
write_lidar_packets_bytes.py
NizarTarabay/Extract_packets_os16
94ca8b58f035582b78c15ed105a57140a1eb82b2
[ "MIT" ]
null
null
null
import socket import time import struct import keyboard import os import datetime UDP_IP = '10.5.5.1' UDP_port = 7502 sock = socket.socket(socket.AF_INET, socket.SOCK_DGRAM) sock.bind((UDP_IP, UDP_port)) # Create target Directory if don't exist save_directory = "/home/nizar/test_in_the_lab/Bytes/Lidar" if not os.pat...
29.378788
139
0.550284
9e6e07cae8c0efdea19b55712ba5da2258234789
16,335
py
Python
uclahedp/load/lapd.py
uclahedp/uclahedp
122ecb180cc58c3aadb47de016427a46094cc8fa
[ "MIT" ]
2
2019-04-30T22:21:44.000Z
2021-06-09T02:35:37.000Z
uclahedp/load/lapd.py
phyzicist/uclahedp
122ecb180cc58c3aadb47de016427a46094cc8fa
[ "MIT" ]
23
2019-02-11T23:05:02.000Z
2020-09-18T01:17:19.000Z
uclahedp/load/lapd.py
phyzicist/uclahedp
122ecb180cc58c3aadb47de016427a46094cc8fa
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ @author: Peter Heuer lapd.py: LAPD HDF5 analysis programs --> readRunPobe(run, probe, data_dir, dest, verbose=False) Reads LAPD HDF5 dataset into a new HDF5 file w/ metadata, calls lapdReadHDF with options chosen from metadata csvs. """ import n...
39.172662
111
0.53168
9e6e142634f2fe5124255ac3a96ed1f56bff4c57
4,392
py
Python
wunderpy2/wunderapi.py
mcrowson/wunderpy2
a3a959d1a3569ccb0869adba10e671978609a697
[ "MIT" ]
27
2015-08-18T03:30:47.000Z
2019-07-23T06:45:18.000Z
wunderpy2/wunderapi.py
mcrowson/wunderpy2
a3a959d1a3569ccb0869adba10e671978609a697
[ "MIT" ]
10
2015-11-22T08:51:33.000Z
2018-07-30T11:40:21.000Z
wunderpy2/wunderapi.py
mcrowson/wunderpy2
a3a959d1a3569ccb0869adba10e671978609a697
[ "MIT" ]
22
2015-08-18T03:30:50.000Z
2019-09-09T00:36:27.000Z
import requests import json from . import wunderclient from . import exceptions as wp_exceptions ACCESS_TOKEN_URL = 'https://www.wunderlist.com/oauth/access_token' DEFAULT_API_URL = 'https://a.wunderlist.com/api' DEFAULT_API_VERSION='1' class WunderApi: ''' Class to encapsulate all information that could change ...
42.640777
135
0.616803
9e6e2429284faf6231e4881f828835952156a249
1,672
py
Python
phonenumbers/data/region_CI.py
albertpadin/supercode-validate-phone-number
d2cc06091693524da8a08b86f62ad431e8620d0f
[ "MIT" ]
null
null
null
phonenumbers/data/region_CI.py
albertpadin/supercode-validate-phone-number
d2cc06091693524da8a08b86f62ad431e8620d0f
[ "MIT" ]
null
null
null
phonenumbers/data/region_CI.py
albertpadin/supercode-validate-phone-number
d2cc06091693524da8a08b86f62ad431e8620d0f
[ "MIT" ]
null
null
null
"""Auto-generated file, do not edit by hand. CI metadata""" from ..phonemetadata import NumberFormat, PhoneNumberDesc, PhoneMetadata PHONE_METADATA_CI = PhoneMetadata(id='CI', country_code=225, international_prefix='00', general_desc=PhoneNumberDesc(national_number_pattern='[02-8]\\d{7}', possible_number_pattern='...
88
208
0.752392
9e6e248ad396dc178a61ec8b568822a666f08672
883
py
Python
setup.py
jsll/curvox
86cb4dc3a470dfb56ec5c9665a7431b0ed6dd698
[ "MIT" ]
null
null
null
setup.py
jsll/curvox
86cb4dc3a470dfb56ec5c9665a7431b0ed6dd698
[ "MIT" ]
null
null
null
setup.py
jsll/curvox
86cb4dc3a470dfb56ec5c9665a7431b0ed6dd698
[ "MIT" ]
null
null
null
#!/usr/bin/env python from distutils.core import setup setup(name="curvox", version='1.0', description= """ Python library with utilities for converting pointclouds, meshes, and voxel grids between ros messages, files matrices, objects """, author='David Watkins', autho...
31.535714
71
0.602492
9e6e2e6cbb65255d8af55dac65c3979d9f94fbad
6,740
py
Python
flopy/mf6/utils/testutils.py
GWSci/flopy
5a17b879f46610f96a77e3be5da47965295dd20d
[ "BSD-3-Clause" ]
null
null
null
flopy/mf6/utils/testutils.py
GWSci/flopy
5a17b879f46610f96a77e3be5da47965295dd20d
[ "BSD-3-Clause" ]
null
null
null
flopy/mf6/utils/testutils.py
GWSci/flopy
5a17b879f46610f96a77e3be5da47965295dd20d
[ "BSD-3-Clause" ]
null
null
null
from ..data import mfdatautil def make_int_tuple(str_list): int_list = [] for item in str_list: int_list.append(int(item)-1) return tuple(int_list) def read_vertices(vert_file): fd = open(vert_file, 'r') vertrecarray = [] for line in fd: fd_spl = line.strip().sp...
32.560386
80
0.525074
9e6e30aad0b5fbd4534903e7e22ece70fa49a0e1
6,496
py
Python
modeling/backbone/feature_extraction.py
WenmuZhou/crnn.pytorch
bf7a7c62376eee93943ca7c68e88e3d563c09aa8
[ "Apache-2.0" ]
46
2018-05-29T08:01:10.000Z
2022-02-14T21:47:40.000Z
modeling/backbone/feature_extraction.py
WenmuZhou/crnn.pytorch
bf7a7c62376eee93943ca7c68e88e3d563c09aa8
[ "Apache-2.0" ]
null
null
null
modeling/backbone/feature_extraction.py
WenmuZhou/crnn.pytorch
bf7a7c62376eee93943ca7c68e88e3d563c09aa8
[ "Apache-2.0" ]
17
2018-11-14T09:17:00.000Z
2021-08-06T04:05:07.000Z
from modeling.basic import * from torchvision.models.densenet import _DenseBlock class CNN_lite(nn.Module): # a vgg like net def __init__(self, in_channels, **kwargs): super().__init__() channels = [24, 128, 256, 256, 512, 512, 512] self.out_channels = channels[-1] self.cnn = n...
39.852761
118
0.600677
9e6e3783258b2e32d58b947094872268228e8cb1
18,170
py
Python
sog/account.py
jnewblanc/sog
ed1ae5bd409bc3e64f204ed3180a5f06f28db731
[ "CC0-1.0" ]
1
2022-02-03T05:44:57.000Z
2022-02-03T05:44:57.000Z
sog/account.py
jnewblanc/sog
ed1ae5bd409bc3e64f204ed3180a5f06f28db731
[ "CC0-1.0" ]
1
2020-10-17T01:14:33.000Z
2020-10-17T01:14:33.000Z
sog/account.py
jnewblanc/sog
ed1ae5bd409bc3e64f204ed3180a5f06f28db731
[ "CC0-1.0" ]
null
null
null
""" Account class""" from datetime import datetime # import getpass import os import re from character import Character from common.attributes import AttributeHelper from common.editwizard import EditWizard from common.general import getNeverDate, dateStr from common.general import logger from common.storage import ...
34.347826
88
0.543203
9e6e58266ef195c6a41397fdb5cc2e6c2f95a484
20,663
py
Python
geoapps/simpegEM1D/RTEfun_vec.py
RichardScottOZ/geoapps
5b3c1d4fd11add45992e8b2497312ac014272b69
[ "MIT" ]
1
2022-02-18T16:24:53.000Z
2022-02-18T16:24:53.000Z
geoapps/simpegEM1D/RTEfun_vec.py
sebhmg/geoapps
1463ba4ec3c914abdc7403e54eca0ee2bbc3f4f4
[ "MIT" ]
null
null
null
geoapps/simpegEM1D/RTEfun_vec.py
sebhmg/geoapps
1463ba4ec3c914abdc7403e54eca0ee2bbc3f4f4
[ "MIT" ]
null
null
null
import numpy as np from scipy.constants import mu_0 # TODO: make this to take a vector rather than a single frequency def rTEfunfwd(n_layer, f, lamda, sig, chi, depth, HalfSwitch): """ Compute reflection coefficients for Transverse Electric (TE) mode. Only one for loop for multiple layers. ...
34.381032
88
0.471568
9e6e5eabd2bb789ef61e4d82b5d9ff75d522d82c
2,032
py
Python
venv/Lib/site-packages/pyrogram/raw/types/inline_query_peer_type_megagroup.py
D1ne2021/jjhhhjj
a090da30983b3ef276dfe4cef2ded4526f36002a
[ "MIT" ]
2
2021-12-13T07:09:55.000Z
2022-01-12T12:15:20.000Z
venv/Lib/site-packages/pyrogram/raw/types/inline_query_peer_type_megagroup.py
hoangkiet1906/Botcie_ver1
c133b915edde06dac690a7dc6ca160f6792fc4c8
[ "MIT" ]
null
null
null
venv/Lib/site-packages/pyrogram/raw/types/inline_query_peer_type_megagroup.py
hoangkiet1906/Botcie_ver1
c133b915edde06dac690a7dc6ca160f6792fc4c8
[ "MIT" ]
null
null
null
# Pyrogram - Telegram MTProto API Client Library for Python # Copyright (C) 2017-2021 Dan <https://github.com/delivrance> # # This file is part of Pyrogram. # # Pyrogram is free software: you can redistribute it and/or modify # it under the terms of the GNU Lesser General Public License as published # by the Free...
31.75
103
0.640256
9e6ec22f9b7285ac96c40e0318c320da8adb6915
497
py
Python
binarysearch.io/280_minimum_difference.py
mishrakeshav/Competitive-Programming
b25dcfeec0fb9a9c71bf3a05644b619f4ca83dd2
[ "MIT" ]
2
2020-06-25T21:10:32.000Z
2020-12-10T06:53:45.000Z
binarysearch.io/280_minimum_difference.py
mishrakeshav/Competitive-Programming
b25dcfeec0fb9a9c71bf3a05644b619f4ca83dd2
[ "MIT" ]
null
null
null
binarysearch.io/280_minimum_difference.py
mishrakeshav/Competitive-Programming
b25dcfeec0fb9a9c71bf3a05644b619f4ca83dd2
[ "MIT" ]
3
2020-05-15T14:17:09.000Z
2021-07-25T13:18:20.000Z
class Solution: def solve(self, lst1, lst2): lst1.sort() lst2.sort() n = len(lst1)-1 m = len(lst2)-1 i = 0 j = 0 ans = float('inf') while i <= n and j <= m: ans = min(abs(lst1[i]-lst2[j]),ans) if lst1[i] < lst2[j]: ...
22.590909
47
0.338028
9e6ec6f4410b4777d63e4b4ddc24dacca745d3b6
2,108
py
Python
src/fidesops/api/v1/scope_registry.py
mohan-pogala/fidesops
5c686362d4fb3b85253dd7e2898be1131a5071ab
[ "Apache-2.0" ]
null
null
null
src/fidesops/api/v1/scope_registry.py
mohan-pogala/fidesops
5c686362d4fb3b85253dd7e2898be1131a5071ab
[ "Apache-2.0" ]
null
null
null
src/fidesops/api/v1/scope_registry.py
mohan-pogala/fidesops
5c686362d4fb3b85253dd7e2898be1131a5071ab
[ "Apache-2.0" ]
null
null
null
CLIENT_CREATE = "client:create" CLIENT_UPDATE = "client:update" CLIENT_READ = "client:read" CLIENT_DELETE = "client:delete" CONFIG_READ = "config:read" POLICY_CREATE_OR_UPDATE = "policy:create_or_update" POLICY_READ = "policy:read" POLICY_DELETE = "policy:delete" CONNECTION_CREATE_OR_UPDATE = "connection:create_or_u...
25.095238
87
0.776091
9e6ed19d605ff7be8f665ddacadcf7a766747e6f
1,985
py
Python
src/dcos_e2e_cli/dcos_docker/commands/wait.py
cprovencher/dcos-e2e
c54b3d41f246efe3f90dcf225b0bffdc1f615daa
[ "Apache-2.0" ]
null
null
null
src/dcos_e2e_cli/dcos_docker/commands/wait.py
cprovencher/dcos-e2e
c54b3d41f246efe3f90dcf225b0bffdc1f615daa
[ "Apache-2.0" ]
null
null
null
src/dcos_e2e_cli/dcos_docker/commands/wait.py
cprovencher/dcos-e2e
c54b3d41f246efe3f90dcf225b0bffdc1f615daa
[ "Apache-2.0" ]
null
null
null
""" Tools for waiting for a cluster. """ import click from dcos_e2e.node import Transport from dcos_e2e_cli.common.options import ( existing_cluster_id_option, superuser_password_option, superuser_username_option, verbosity_option, ) from dcos_e2e_cli.common.utils import check_cluster_id_exists, set_l...
26.466667
78
0.715869
9e6eea6db366bad2191f21731726ff8757a246a4
15,193
py
Python
src/zenml/pipelines/base_pipeline.py
halvgaard/zenml
7f9a3be90c7e0a94927b599939b5b9c1bc741b0b
[ "Apache-2.0" ]
1
2022-03-11T10:15:22.000Z
2022-03-11T10:15:22.000Z
src/zenml/pipelines/base_pipeline.py
halvgaard/zenml
7f9a3be90c7e0a94927b599939b5b9c1bc741b0b
[ "Apache-2.0" ]
null
null
null
src/zenml/pipelines/base_pipeline.py
halvgaard/zenml
7f9a3be90c7e0a94927b599939b5b9c1bc741b0b
[ "Apache-2.0" ]
null
null
null
# Copyright (c) ZenML GmbH 2021. 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: # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applic...
38.95641
125
0.60337
9e6efdec2448766e6e3788ea6472849ae260009a
5,900
py
Python
attic/tests/resources/test_support/mappings.py
ska-telescope/skampi
cd2f95bd56594888c8d0c3476824b438dfcfcf71
[ "BSD-3-Clause" ]
3
2019-01-10T11:49:36.000Z
2019-07-19T03:32:52.000Z
post-deployment/resources/test_support/mappings.py
ska-telescope/tmc-prototype
4138274e933d4b05f7fe9fc34a11c417b6d0d336
[ "BSD-3-Clause" ]
19
2019-01-07T14:50:26.000Z
2019-10-02T13:25:23.000Z
attic/tests/resources/test_support/mappings.py
ska-telescope/skampi
cd2f95bd56594888c8d0c3476824b438dfcfcf71
[ "BSD-3-Clause" ]
2
2019-11-04T09:59:06.000Z
2020-05-07T11:05:42.000Z
device_to_container = { "mid_csp_cbf/fsp_corr/01": "fsp01", "mid_csp_cbf/fsp_corr/02": "fsp02", "mid_csp_cbf/fsp_corr/03": "fsp03", "mid_csp_cbf/fsp_corr/04": "fsp04", "mid_csp_cbf/fsp_pss/01": "fsp01", "mid_csp_cbf/fsp_pss/02": "fsp02", "mid_csp_cbf/fsp_pss/03": "fsp03", "mid_csp_cbf/fs...
43.382353
70
0.697627
9e6f00c8ee4629639c3c4a97bb9bb71653a8dafd
7,268
py
Python
recipes/lanso/models/CRN_Att2.py
wangwei2009/speechbrain
ebbac4561a9c9101786e0ab0b1105017eb655fc8
[ "Apache-2.0" ]
null
null
null
recipes/lanso/models/CRN_Att2.py
wangwei2009/speechbrain
ebbac4561a9c9101786e0ab0b1105017eb655fc8
[ "Apache-2.0" ]
null
null
null
recipes/lanso/models/CRN_Att2.py
wangwei2009/speechbrain
ebbac4561a9c9101786e0ab0b1105017eb655fc8
[ "Apache-2.0" ]
null
null
null
""" single channel speech enhancement for wind noise reduction. refer to "A Convolutional Recurrent Neural Network for Real-Time Speech Enhancement" . Authors * Wang Wei 2021 """ import torch import torch.nn as nn from attention import Attention class CNN_Block(torch.nn.Module): def __init__(self, i...
31.463203
147
0.583379
9e6f0e11f87193289a20f849befb2ba9782d581f
8,048
py
Python
heat/common/identifier.py
CiscoSystems/heat
1b609f3c0621c44e4988a166a38f36c2b57eb4c6
[ "Apache-2.0" ]
1
2020-08-15T14:29:15.000Z
2020-08-15T14:29:15.000Z
heat/common/identifier.py
CiscoSystems/heat
1b609f3c0621c44e4988a166a38f36c2b57eb4c6
[ "Apache-2.0" ]
null
null
null
heat/common/identifier.py
CiscoSystems/heat
1b609f3c0621c44e4988a166a38f36c2b57eb4c6
[ "Apache-2.0" ]
null
null
null
# vim: tabstop=4 shiftwidth=4 softtabstop=4 # # 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 applicabl...
33.67364
78
0.562003
9e6f236fa3b473c9f659ac4c6e3b6e2c258d28ea
8,456
py
Python
speech_recognizer/utils.py
naderabdalghani/project-rev
3205d42a2220372783ab49ce8c3c70a4c4b9ad7e
[ "Apache-2.0" ]
2
2021-12-13T04:19:30.000Z
2022-02-16T16:27:20.000Z
speech_recognizer/utils.py
MuhanadAtef/project-rev
3205d42a2220372783ab49ce8c3c70a4c4b9ad7e
[ "Apache-2.0" ]
null
null
null
speech_recognizer/utils.py
MuhanadAtef/project-rev
3205d42a2220372783ab49ce8c3c70a4c4b9ad7e
[ "Apache-2.0" ]
2
2021-08-17T06:25:36.000Z
2021-08-17T12:45:33.000Z
import numpy as np import torch from .config import TEXT_TRANSFORMER def average_word_error_rate(word_error_rate_scores, combined_ref_len): """ This function calculates average word error rate of the whole sentence. :param word_error_rate_scores: (float) Word error rate of each word. :param combined_...
41.655172
111
0.683893
9e6f25a424cc246588fdda20f45705ec548979a7
499
py
Python
lib/galaxy/model/migrate/versions/0115_longer_user_password_field.py
tdans1/Use-Galaxy
e9f05cb1b11db20a729ac73520f886ee619c6b90
[ "CC-BY-3.0" ]
4
2018-10-29T18:34:38.000Z
2021-09-29T23:30:42.000Z
lib/galaxy/model/migrate/versions/0115_longer_user_password_field.py
tdans1/Use-Galaxy
e9f05cb1b11db20a729ac73520f886ee619c6b90
[ "CC-BY-3.0" ]
1
2019-02-04T16:21:27.000Z
2019-02-04T16:45:17.000Z
lib/galaxy/model/migrate/versions/0115_longer_user_password_field.py
chambm/galaxy
fd1926767996a161cd2fc8bd184e6835fd688765
[ "CC-BY-3.0" ]
3
2020-02-12T15:22:24.000Z
2021-08-19T10:27:39.000Z
""" Expand the length of the password fields in the galaxy_user table to allow for other hasing schemes """ import logging from sqlalchemy import MetaData, String, Table log = logging.getLogger(__name__) def upgrade(migrate_engine): meta = MetaData(bind=migrate_engine) user = Table('galaxy_user', meta, auto...
22.681818
99
0.725451
9e6f26160ce2b7c4a39653579d055657af1d1d8a
5,313
py
Python
src/berkeleydb/dbrecio.py
eggplants/pybsddb-mirror
692635036ffa70e2562da94ea0a447d15ae57025
[ "BSD-3-Clause" ]
null
null
null
src/berkeleydb/dbrecio.py
eggplants/pybsddb-mirror
692635036ffa70e2562da94ea0a447d15ae57025
[ "BSD-3-Clause" ]
null
null
null
src/berkeleydb/dbrecio.py
eggplants/pybsddb-mirror
692635036ffa70e2562da94ea0a447d15ae57025
[ "BSD-3-Clause" ]
null
null
null
""" File-like objects that read from or write to a berkeleydb record. This implements (nearly) all stdio methods. f = DBRecIO(db, key, txn=None) f.close() # explicitly release resources held flag = f.isatty() # always false pos = f.tell() # get current position f.seek(pos) # set current posi...
27.816754
78
0.55016
9e6f535f84c79f6653d9aaa978247212ccd222e4
4,168
py
Python
kf_d3m_primitives/data_preprocessing/data_cleaning/data_cleaning.py
uncharted-distil/d3m-primitives
e8d37dbe302c0f2bae4e7f7fa241a46faebc9b79
[ "Apache-2.0" ]
null
null
null
kf_d3m_primitives/data_preprocessing/data_cleaning/data_cleaning.py
uncharted-distil/d3m-primitives
e8d37dbe302c0f2bae4e7f7fa241a46faebc9b79
[ "Apache-2.0" ]
null
null
null
kf_d3m_primitives/data_preprocessing/data_cleaning/data_cleaning.py
uncharted-distil/d3m-primitives
e8d37dbe302c0f2bae4e7f7fa241a46faebc9b79
[ "Apache-2.0" ]
null
null
null
import os.path import pandas from punk.preppy import CleanStrings, CleanDates, CleanNumbers from d3m.primitive_interfaces.transformer import TransformerPrimitiveBase from d3m.primitive_interfaces.base import CallResult from d3m import container, utils from d3m.metadata import hyperparams, base as metadata_base __auth...
40.466019
138
0.620202
9e6f6050048dc0d54cfafc0eb4ee571a1ce20331
8,474
py
Python
apps/iiif/canvases/models.py
ecds/readux
4eac8b48efef8126f4f2be28b5eb943c85a89c2e
[ "Apache-2.0" ]
18
2017-06-12T09:58:02.000Z
2021-10-01T11:14:34.000Z
apps/iiif/canvases/models.py
ecds/readux
4eac8b48efef8126f4f2be28b5eb943c85a89c2e
[ "Apache-2.0" ]
276
2019-04-26T20:13:01.000Z
2022-03-31T10:26:28.000Z
apps/iiif/canvases/models.py
ecds/readux
4eac8b48efef8126f4f2be28b5eb943c85a89c2e
[ "Apache-2.0" ]
7
2018-03-13T23:44:26.000Z
2021-09-15T17:54:55.000Z
"""Django models representing IIIF canvases and IIIF image server info.""" from genericpath import exists import os from boto3 import resource from bs4 import BeautifulSoup from urllib.parse import quote import config.settings.local as settings from django.db import models from django.contrib.auth import get_user_model...
34.307692
96
0.620014
9e6f67296dabc29ef6da11e35468a235e24dbbd6
2,012
py
Python
catkin_ws/src/simple_applications/src/straightline_motion_v3.py
a-yildiz/ROS-Simple-Sample-Packages
eb6b18adcd1fe26e2b5e644c42922e8102867cd9
[ "MIT" ]
1
2021-09-19T07:51:23.000Z
2021-09-19T07:51:23.000Z
catkin_ws/src/simple_applications/src/straightline_motion_v3.py
a-yildiz/ROS-Simple-Sample-Packages
eb6b18adcd1fe26e2b5e644c42922e8102867cd9
[ "MIT" ]
null
null
null
catkin_ws/src/simple_applications/src/straightline_motion_v3.py
a-yildiz/ROS-Simple-Sample-Packages
eb6b18adcd1fe26e2b5e644c42922e8102867cd9
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 import rospy from geometry_msgs.msg import Twist from nav_msgs.msg import Odometry from rospy.exceptions import ROSInitException, ROSInterruptException from simple_applications.msg import Distance """ Run this script/node after `roslaunch simple_applications turtlebot3_empty_world.launch`...
35.298246
124
0.658052
9e6f6c12561f7a2e4d7ed8e99a1ca37dd03e7e33
4,052
py
Python
alipay/aop/api/request/AlipayPcreditHuabeiMerchantActivityRefreshRequest.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
213
2018-08-27T16:49:32.000Z
2021-12-29T04:34:12.000Z
alipay/aop/api/request/AlipayPcreditHuabeiMerchantActivityRefreshRequest.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
29
2018-09-29T06:43:00.000Z
2021-09-02T03:27:32.000Z
alipay/aop/api/request/AlipayPcreditHuabeiMerchantActivityRefreshRequest.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
59
2018-08-27T16:59:26.000Z
2022-03-25T10:08:15.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- import json from alipay.aop.api.FileItem import FileItem from alipay.aop.api.constant.ParamConstants import * from alipay.aop.api.domain.AlipayPcreditHuabeiMerchantActivityRefreshModel import AlipayPcreditHuabeiMerchantActivityRefreshModel class AlipayPcreditHuabeiMerc...
27.944828
148
0.65153
9e6f74e54575e8b9298454a12946064fea17ac20
10,329
py
Python
codes_src/preprocess.py
ZhenYangIACAS/WeTS
bba33ad64e10efd7d3d95b5a0b6ad125216542cf
[ "Unlicense" ]
50
2021-11-15T02:34:43.000Z
2021-11-18T07:24:46.000Z
codes_src/preprocess.py
yujun531/WeTS
bba33ad64e10efd7d3d95b5a0b6ad125216542cf
[ "Unlicense" ]
null
null
null
codes_src/preprocess.py
yujun531/WeTS
bba33ad64e10efd7d3d95b5a0b6ad125216542cf
[ "Unlicense" ]
26
2021-11-15T02:35:14.000Z
2021-11-15T08:25:42.000Z
#!/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. """ Data pre-processing: build vocabularies and binarize training data. """ from collections import Counter from iterto...
38.255556
96
0.571014
9e6f7dda87c6c8f8669f478abcbf1234ff7b52b5
74,117
py
Python
google/appengine/api/images/__init__.py
luduvigo/app-blog-code
2de41573955f8dfb5f6d964d3cae2bbee6db2f9a
[ "Apache-2.0" ]
null
null
null
google/appengine/api/images/__init__.py
luduvigo/app-blog-code
2de41573955f8dfb5f6d964d3cae2bbee6db2f9a
[ "Apache-2.0" ]
null
null
null
google/appengine/api/images/__init__.py
luduvigo/app-blog-code
2de41573955f8dfb5f6d964d3cae2bbee6db2f9a
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # # Copyright 2007 Google 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 o...
37.226017
80
0.699772
9e6f830e64ac6f9c5722cdb29becff7a6a7a7fb0
2,302
py
Python
scripts/make-installation.py
tectonic-typesetting/tectonic-texlive-bundles
a0ce167903ef86016fdfd501df1be4d471af61c9
[ "MIT" ]
2
2020-10-11T17:05:36.000Z
2020-12-14T17:11:39.000Z
scripts/make-installation.py
tectonic-typesetting/tectonic-texlive-bundles
a0ce167903ef86016fdfd501df1be4d471af61c9
[ "MIT" ]
5
2020-10-10T21:57:48.000Z
2021-10-20T12:14:39.000Z
scripts/make-installation.py
tectonic-typesetting/tectonic-texlive-bundles
a0ce167903ef86016fdfd501df1be4d471af61c9
[ "MIT" ]
1
2020-10-11T17:04:26.000Z
2020-10-11T17:04:26.000Z
# -*- mode: python; coding: utf-8 -*- # Copyright 2020 the Tectonic Project. # Licensed under the MIT License. """ This script is meant to be run inside the TeXLive bundler Docker container. Create a TeXLive installation from a given bundle specification. """ import argparse import os import subprocess import sys f...
28.775
109
0.601216
9e6f8c0f4f7642d0a994bcef89992c369a1c21c0
1,914
py
Python
mi/dataset/driver/spkir_abj/dcl/spkir_abj_dcl_telemetered_driver.py
rmanoni/mi-dataset
c1012a0cd8f2ea075e008cdd1ab291ed54f44d43
[ "BSD-2-Clause" ]
null
null
null
mi/dataset/driver/spkir_abj/dcl/spkir_abj_dcl_telemetered_driver.py
rmanoni/mi-dataset
c1012a0cd8f2ea075e008cdd1ab291ed54f44d43
[ "BSD-2-Clause" ]
null
null
null
mi/dataset/driver/spkir_abj/dcl/spkir_abj_dcl_telemetered_driver.py
rmanoni/mi-dataset
c1012a0cd8f2ea075e008cdd1ab291ed54f44d43
[ "BSD-2-Clause" ]
null
null
null
# # # OOIPLACEHOLDER # # Copyright 2014 Raytheon Co. ## __author__ = "mworden" import os from mi.core.log import get_logger from mi.logging import config from mi.dataset.parser.spkir_abj_dcl import SpkirAbjDclTelemeteredParser from mi.dataset.dataset_driver import DataSetDriver from mi.dataset.dataset_parser import...
33
97
0.64629
9e6fa21d618bf3e91a3d1b5f001319c2d2eef0a7
994
py
Python
trillian/dict_to_base64_normaliser.py
projectsbyif/trillian-demo-python-api-client
5ab5de705cffe27d4ef0c23b46d0eeb40dac7f46
[ "Apache-2.0" ]
null
null
null
trillian/dict_to_base64_normaliser.py
projectsbyif/trillian-demo-python-api-client
5ab5de705cffe27d4ef0c23b46d0eeb40dac7f46
[ "Apache-2.0" ]
null
null
null
trillian/dict_to_base64_normaliser.py
projectsbyif/trillian-demo-python-api-client
5ab5de705cffe27d4ef0c23b46d0eeb40dac7f46
[ "Apache-2.0" ]
1
2019-04-01T02:15:18.000Z
2019-04-01T02:15:18.000Z
import json from collections import OrderedDict from .helpers import to_b64 class DictToBase64Normaliser(): def __init__(self, dictionary): self.__dictionary = dictionary def normalise(self): """ Normalise a python dictionary, encode it as JSON return it base64 encoded. ...
24.243902
79
0.650905
9e6fb21ef46412fe5ae79794c164fa9798c4aa19
7,875
py
Python
docs/conf.py
matanhofree/bcbio-nextgen
e6938cedb20ff3b7632165105941d71189e46aac
[ "MIT" ]
1
2015-04-08T17:43:39.000Z
2015-04-08T17:43:39.000Z
docs/conf.py
matanhofree/bcbio-nextgen
e6938cedb20ff3b7632165105941d71189e46aac
[ "MIT" ]
null
null
null
docs/conf.py
matanhofree/bcbio-nextgen
e6938cedb20ff3b7632165105941d71189e46aac
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # # bcbio_nextgen documentation build configuration file, created by # sphinx-quickstart on Tue Jan 1 13:33:31 2013. # # This file is execfile()d with the current directory set to its containing dir. # # Note that not all possible configuration values are present in this # autogenerated file. #...
32.27459
80
0.715556
9e6fb5479217e83669d32c5aa16d9875800976e7
2,470
py
Python
venv/Lib/site-packages/pyrogram/raw/types/web_page_pending.py
D1ne2021/jjhhhjj
a090da30983b3ef276dfe4cef2ded4526f36002a
[ "MIT" ]
2
2021-12-13T07:09:55.000Z
2022-01-12T12:15:20.000Z
venv/Lib/site-packages/pyrogram/raw/types/web_page_pending.py
hoangkiet1906/Botcie_ver1
c133b915edde06dac690a7dc6ca160f6792fc4c8
[ "MIT" ]
null
null
null
venv/Lib/site-packages/pyrogram/raw/types/web_page_pending.py
hoangkiet1906/Botcie_ver1
c133b915edde06dac690a7dc6ca160f6792fc4c8
[ "MIT" ]
null
null
null
# Pyrogram - Telegram MTProto API Client Library for Python # Copyright (C) 2017-2021 Dan <https://github.com/delivrance> # # This file is part of Pyrogram. # # Pyrogram is free software: you can redistribute it and/or modify # it under the terms of the GNU Lesser General Public License as published # by the Free...
29.759036
103
0.597976
9e6fc89086f85c3b563e59321264d515310099d4
1,626
py
Python
2021/04/b.py
cj-wong/advent
f6a489773f488f5daf49caa9d652b1886608b928
[ "MIT" ]
null
null
null
2021/04/b.py
cj-wong/advent
f6a489773f488f5daf49caa9d652b1886608b928
[ "MIT" ]
null
null
null
2021/04/b.py
cj-wong/advent
f6a489773f488f5daf49caa9d652b1886608b928
[ "MIT" ]
null
null
null
from typing import List import bingo import config def play_bingo(contents: List[str]) -> int: """Play bingo. Multiply the sum of unmarked numbers of the last winning board with the last number drawn. Args: contents (List[str]): the file contents Returns: int: sum of unmarked n...
24.268657
75
0.595326
9e6ffea6b6a65f3d176f52a68fd79904d8676788
31,410
py
Python
SCRAPE/Lib/site-packages/jupyter_core/paths.py
Chinmoy-Prasad-Dutta/scrapy_scraper
09f6abfc3bcf10ee28f486d83b450c89a07e066e
[ "MIT" ]
2
2022-02-26T11:19:40.000Z
2022-03-28T08:23:25.000Z
SCRAPE/Lib/site-packages/jupyter_core/paths.py
Chinmoy-Prasad-Dutta/scrapy_scraper
09f6abfc3bcf10ee28f486d83b450c89a07e066e
[ "MIT" ]
null
null
null
SCRAPE/Lib/site-packages/jupyter_core/paths.py
Chinmoy-Prasad-Dutta/scrapy_scraper
09f6abfc3bcf10ee28f486d83b450c89a07e066e
[ "MIT" ]
1
2022-03-28T09:19:34.000Z
2022-03-28T09:19:34.000Z
"""Path utility functions.""" # Copyright (c) Jupyter Development Team. # Distributed under the terms of the Modified BSD License. # Derived from IPython.utils.path, which is # Copyright (c) IPython Development Team. # Distributed under the terms of the Modified BSD License. import os import sys import stat import ...
34.030336
123
0.656383
9e704a40c40c9ffe1b4d75e647c918c0d07b653c
7,760
py
Python
vollib/helper/numerical_greeks.py
liujiantong/vollib
feefc40e817add7d1b166cd343c957142858fabf
[ "MIT" ]
200
2015-04-09T15:22:29.000Z
2022-03-17T04:29:50.000Z
vollib/helper/numerical_greeks.py
quantsbin/vollib
1a11f3ce4fecef6f154d38497221d1d6469fdec7
[ "MIT" ]
4
2016-02-28T19:50:48.000Z
2017-04-25T12:35:29.000Z
vollib/helper/numerical_greeks.py
quantsbin/vollib
1a11f3ce4fecef6f154d38497221d1d6469fdec7
[ "MIT" ]
52
2016-01-26T19:33:16.000Z
2021-12-08T21:51:19.000Z
# -*- coding: utf-8 -*- """ vollib.helper.numerical_greeks ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ A library for option pricing, implied volatility, and greek calculation. vollib is based on lets_be_rational, a Python wrapper for LetsBeRational by Peter Jaeckel as described below. ...
34.642857
95
0.505026
9e706c32f80a498fcb0e803bf8eef3d79dd58e75
79,189
py
Python
nova/tests/scheduler/test_host_filters.py
osrg/nova
14b6bc655145c832bd9c822e48f877818e0e53ff
[ "Apache-2.0" ]
null
null
null
nova/tests/scheduler/test_host_filters.py
osrg/nova
14b6bc655145c832bd9c822e48f877818e0e53ff
[ "Apache-2.0" ]
null
null
null
nova/tests/scheduler/test_host_filters.py
osrg/nova
14b6bc655145c832bd9c822e48f877818e0e53ff
[ "Apache-2.0" ]
null
null
null
# Copyright 2011 OpenStack Foundation # 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 req...
44.891723
79
0.585612
9e70864c4f48765ded99c394e1a23269aca7c166
627
py
Python
contrib/__init__.py
eventable/CalendarServer
384444edb1966b530bc391789afbe3fb9cd6fd3e
[ "Apache-2.0" ]
1
2017-02-18T19:22:19.000Z
2017-02-18T19:22:19.000Z
contrib/__init__.py
eventable/CalendarServer
384444edb1966b530bc391789afbe3fb9cd6fd3e
[ "Apache-2.0" ]
null
null
null
contrib/__init__.py
eventable/CalendarServer
384444edb1966b530bc391789afbe3fb9cd6fd3e
[ "Apache-2.0" ]
null
null
null
## # Copyright (c) 2010-2015 Apple 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 by applicable l...
34.833333
74
0.755981
9e7090ed269c9614296e722edaed44a436a3b2a2
10,670
py
Python
clients/hydra/python/ory_hydra_client/model/consent_request.py
kolotaev/sdk
0dda1becd70be8d7b9d678321ebe780c1ba00485
[ "Apache-2.0" ]
null
null
null
clients/hydra/python/ory_hydra_client/model/consent_request.py
kolotaev/sdk
0dda1becd70be8d7b9d678321ebe780c1ba00485
[ "Apache-2.0" ]
null
null
null
clients/hydra/python/ory_hydra_client/model/consent_request.py
kolotaev/sdk
0dda1becd70be8d7b9d678321ebe780c1ba00485
[ "Apache-2.0" ]
null
null
null
""" ORY Hydra Welcome to the ORY Hydra HTTP API documentation. You will find documentation for all HTTP APIs here. # noqa: E501 The version of the OpenAPI document: v1.10.5 Generated by: https://openapi-generator.tech """ import re # noqa: F401 import sys # noqa: F401 from ory_hydra_client.model...
50.330189
518
0.623524
9e70caa61084af1edcc05ab1a19d6c5422e722b0
514
py
Python
phr/ciudadano/migrations/0016_auto_20170217_1524.py
richardqa/django-ex
e5b8585f28a97477150ac5daf5e55c74b70d87da
[ "CC0-1.0" ]
null
null
null
phr/ciudadano/migrations/0016_auto_20170217_1524.py
richardqa/django-ex
e5b8585f28a97477150ac5daf5e55c74b70d87da
[ "CC0-1.0" ]
null
null
null
phr/ciudadano/migrations/0016_auto_20170217_1524.py
richardqa/django-ex
e5b8585f28a97477150ac5daf5e55c74b70d87da
[ "CC0-1.0" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by Django 1.10.5 on 2017-02-17 15:24 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('ciudadano', '0015_merge_20170217_1514'), ] operations = [ migrations.AlterF...
24.47619
108
0.638132
9e70e3874adf9a7bb4b650b69fa6b2057a7497d8
1,606
py
Python
tests/unit/cloud/clouds/openstack_test.py
cbosdo/salt-1
9084d662781f9c0944804ba087e652c2ddb730bf
[ "Apache-2.0" ]
null
null
null
tests/unit/cloud/clouds/openstack_test.py
cbosdo/salt-1
9084d662781f9c0944804ba087e652c2ddb730bf
[ "Apache-2.0" ]
null
null
null
tests/unit/cloud/clouds/openstack_test.py
cbosdo/salt-1
9084d662781f9c0944804ba087e652c2ddb730bf
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- ''' :codeauthor: :email:`Bo Maryniuk <bo@suse.de>` ''' # Import Python libs from __future__ import absolute_import # Import Salt Testing Libs from salttesting import TestCase from salt.cloud.clouds import openstack from salttesting.mock import MagicMock, patch from tests.unit.cloud.clouds ...
36.5
101
0.656289
9e711048ee2ddf01c51b65545e8629f9fa49a490
1,448
py
Python
nettowel/cli/ip.py
InfrastructureAsCode-ch/nettowel
1b14ae7d253d1c9435a3c18a65078122fb4965dd
[ "Apache-2.0" ]
1
2022-02-22T12:05:42.000Z
2022-02-22T12:05:42.000Z
nettowel/cli/ip.py
InfrastructureAsCode-ch/nettowel
1b14ae7d253d1c9435a3c18a65078122fb4965dd
[ "Apache-2.0" ]
null
null
null
nettowel/cli/ip.py
InfrastructureAsCode-ch/nettowel
1b14ae7d253d1c9435a3c18a65078122fb4965dd
[ "Apache-2.0" ]
null
null
null
from typing import Union import typer from rich import inspect as rich_inspect from rich import print_json from nettowel.cli._common import get_members, cleanup_dict, get_typer_app from ipaddress import ip_address, ip_network, IPv4Address, IPv6Address app = get_typer_app(help="IP Address tools") @app.command() de...
24.133333
83
0.634669
9e713ac0af1cb93b815bb1bb56d75e03d34ff580
6,376
py
Python
tensorflow/contrib/tfprof/python/tools/tfprof/model_analyzer_test.py
gnoses/TensorFlow
63a21e054007d86269ed1ad0145ebce04ee57a81
[ "Apache-2.0" ]
1
2020-08-27T08:17:15.000Z
2020-08-27T08:17:15.000Z
tensorflow/contrib/tfprof/python/tools/tfprof/model_analyzer_test.py
gnoses/TensorFlow
63a21e054007d86269ed1ad0145ebce04ee57a81
[ "Apache-2.0" ]
null
null
null
tensorflow/contrib/tfprof/python/tools/tfprof/model_analyzer_test.py
gnoses/TensorFlow
63a21e054007d86269ed1ad0145ebce04ee57a81
[ "Apache-2.0" ]
1
2022-01-22T05:39:49.000Z
2022-01-22T05:39:49.000Z
# Copyright 2016 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
60.72381
2,504
0.692911
9e716d170413d17d33638cb06898567ef18d187d
3,538
py
Python
prov/identifier.py
krischer/prov
26965dcc7147e4b37a5ae4ba327467c6429cb3d3
[ "MIT" ]
null
null
null
prov/identifier.py
krischer/prov
26965dcc7147e4b37a5ae4ba327467c6429cb3d3
[ "MIT" ]
null
null
null
prov/identifier.py
krischer/prov
26965dcc7147e4b37a5ae4ba327467c6429cb3d3
[ "MIT" ]
null
null
null
from __future__ import (absolute_import, division, print_function, unicode_literals) __author__ = 'Trung Dong Huynh' __email__ = 'trungdong@donggiang.com' import six @six.python_2_unicode_compatible class Identifier(object): """Base class for all identifiers and also represents xsd:anyUR...
28.532258
115
0.643301
9e7194b20703715bc2dde7754b52068c031a89cb
16,945
py
Python
classes/controller.py
ShayLn/py-fighter
01ace29afb066e6d5965d1fd460c5939c8b8c81b
[ "MIT" ]
null
null
null
classes/controller.py
ShayLn/py-fighter
01ace29afb066e6d5965d1fd460c5939c8b8c81b
[ "MIT" ]
null
null
null
classes/controller.py
ShayLn/py-fighter
01ace29afb066e6d5965d1fd460c5939c8b8c81b
[ "MIT" ]
2
2020-12-15T11:53:41.000Z
2021-01-07T01:09:33.000Z
''' Controller Class The controller class. This class controls the main game. This file also contains the main game score and level outputs. @author: All - Prototyped by Shaylen, finished collaboratively ''' import pygame import random import json from classes.map import Map from classes.player import Player from ...
34.441057
81
0.591325
9e71b89942fbf4431fb516654df086dcf965999c
5,678
py
Python
sciunit/unit_test/backend_tests.py
scidash/sciun
ffa380b4b486511a008193f24461f12cad40b634
[ "MIT" ]
43
2015-04-20T13:53:13.000Z
2022-03-12T18:27:07.000Z
sciunit/unit_test/backend_tests.py
appukuttan-shailesh/sciunit
c631b2be4aa9a17d737ec460b7d03ac4399e319a
[ "MIT" ]
165
2015-04-20T14:24:16.000Z
2022-03-09T15:37:21.000Z
sciunit/unit_test/backend_tests.py
scidash/sciun
ffa380b4b486511a008193f24461f12cad40b634
[ "MIT" ]
41
2015-05-11T16:16:08.000Z
2022-02-23T17:23:09.000Z
"""Unit tests for backends.""" import unittest from pathlib import Path from sciunit import Model from sciunit.models.backends import Backend from sciunit.utils import NotebookTools class BackendsTestCase(unittest.TestCase, NotebookTools): """Unit tests for the sciunit module""" path = "." def test_bac...
37.853333
92
0.662557
9e71c67dc8ecee5ff67d8f77b1b2af391e2dcaa0
10,942
py
Python
src/olympia/bandwagon/models.py
shashwatsingh/addons-server
8fce98901104349055a828b5a47865f5e8f4120b
[ "BSD-3-Clause" ]
3
2020-03-05T18:17:14.000Z
2020-03-09T01:24:38.000Z
src/olympia/bandwagon/models.py
shashwatsingh/addons-server
8fce98901104349055a828b5a47865f5e8f4120b
[ "BSD-3-Clause" ]
1,398
2020-10-08T06:32:26.000Z
2022-03-31T12:06:24.000Z
src/olympia/bandwagon/models.py
shashwatsingh/addons-server
8fce98901104349055a828b5a47865f5e8f4120b
[ "BSD-3-Clause" ]
1
2021-11-24T07:29:55.000Z
2021-11-24T07:29:55.000Z
import uuid from django.conf import settings from django.db import models from olympia import activity, amo from olympia.access import acl from olympia.addons.models import Addon from olympia.amo.fields import PositiveAutoField from olympia.amo.models import BaseQuerySet, ManagerBase, ModelBase from olympia.amo.templ...
37.993056
79
0.620727
9e71ea6e0406886105cc37516864352246f1b946
2,789
py
Python
ucscsdk/mometa/lsboot/LsbootLocalDiskImage.py
CiscoUcs/ucscsdk
b582df77e3cf8bc4c48347e3d67f8cffa62f78c4
[ "Apache-2.0" ]
9
2016-12-22T08:39:25.000Z
2019-09-10T15:36:19.000Z
ucscsdk/mometa/lsboot/LsbootLocalDiskImage.py
CiscoUcs/ucscsdk
b582df77e3cf8bc4c48347e3d67f8cffa62f78c4
[ "Apache-2.0" ]
10
2017-01-31T06:59:56.000Z
2021-11-09T09:14:37.000Z
ucscsdk/mometa/lsboot/LsbootLocalDiskImage.py
CiscoUcs/ucscsdk
b582df77e3cf8bc4c48347e3d67f8cffa62f78c4
[ "Apache-2.0" ]
13
2016-11-14T07:42:58.000Z
2022-02-10T17:32:05.000Z
"""This module contains the general information for LsbootLocalDiskImage ManagedObject.""" from ...ucscmo import ManagedObject from ...ucsccoremeta import UcscVersion, MoPropertyMeta, MoMeta from ...ucscmeta import VersionMeta class LsbootLocalDiskImageConsts(): TYPE_EMBEDDED_LOCAL_JBOD = "embedded-local-jbod" ...
50.709091
371
0.664754
9e71ee91a0426b2e3695ad8d738faabba1717e1d
3,254
py
Python
utils.py
KimJeongChul/py3iperf3
e8a0bf0e81a172fb818e8d20b15facd3b011a566
[ "MIT" ]
3
2018-10-16T11:58:51.000Z
2019-11-13T14:07:19.000Z
utils.py
KimJeongChul/py3iperf3
e8a0bf0e81a172fb818e8d20b15facd3b011a566
[ "MIT" ]
1
2019-09-19T13:27:44.000Z
2019-09-19T13:27:44.000Z
utils.py
KimJeongChul/py3iperf3
e8a0bf0e81a172fb818e8d20b15facd3b011a566
[ "MIT" ]
6
2019-01-04T07:48:45.000Z
2022-03-01T08:12:03.000Z
""" Various utility functions """ import math import random import string import logging from py3iperf3.iperf3_api import COOKIE_SIZE DEC_BIT = ['bits', 'Kibs', 'Mibs', 'Gibs', 'Tibs', 'Pibs'] DEC_BYTE = ['Byte', 'KiBytes', 'MiBytes', 'GiBytes', 'TiBytes', 'PiBytes'] BIN_BIT = ['bits', 'Kbits', 'Mbits', 'Gbits', 'Tbi...
28.295652
96
0.630608
9e7220b0029a1c766714633641fcddde28e1ed5a
29,250
py
Python
sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_09_30/aio/operations/_gallery_application_versions_operations.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
1
2021-09-07T18:39:05.000Z
2021-09-07T18:39:05.000Z
sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_09_30/aio/operations/_gallery_application_versions_operations.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
null
null
null
sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_09_30/aio/operations/_gallery_application_versions_operations.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
1
2022-03-04T06:21:56.000Z
2022-03-04T06:21:56.000Z
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may ...
49.744898
265
0.693778
9e7229cf6514645e3916a8741076b833646d3e8f
672
py
Python
catags/serializers.py
ankitmlive/prolab-api
8e86e222269b63108cd33f08a90b2d921a1152f6
[ "MIT" ]
null
null
null
catags/serializers.py
ankitmlive/prolab-api
8e86e222269b63108cd33f08a90b2d921a1152f6
[ "MIT" ]
5
2021-03-30T12:47:27.000Z
2021-09-22T18:38:27.000Z
catags/serializers.py
ankitmlive/prolab-api
8e86e222269b63108cd33f08a90b2d921a1152f6
[ "MIT" ]
1
2020-03-16T14:42:31.000Z
2020-03-16T14:42:31.000Z
from rest_framework import serializers from catags.models import CaTag catag_detail_url = serializers.HyperlinkedIdentityField(view_name='catag-detail', lookup_field='catag_slug') class CaTagSerializer(serializers.ModelSerializer): url = catag_detail_url class Meta: model = CaTag fields = ('c...
30.545455
108
0.720238
9e723df2b4628a95ff3339ea3ead354b577dbc47
1,943
py
Python
extract_sdss_qso_spectra.py
yishayv/lyacorr
deed114b4cadd4971caec68e2838a5fac39827b1
[ "MIT" ]
2
2017-03-21T14:18:35.000Z
2020-03-30T20:51:33.000Z
extract_sdss_qso_spectra.py
yishayv/lyacorr
deed114b4cadd4971caec68e2838a5fac39827b1
[ "MIT" ]
null
null
null
extract_sdss_qso_spectra.py
yishayv/lyacorr
deed114b4cadd4971caec68e2838a5fac39827b1
[ "MIT" ]
null
null
null
import cProfile import astropy.table as table import numpy as np import common_settings from data_access import read_spectrum_fits from data_access.hdf5_spectrum_container import Hdf5SpectrumContainer from data_access.qso_data import QSOData from pixel_flags import FlagStats from python_compat import range, map from ...
26.986111
106
0.726711
9e725264c4957088306cfa902d5f989528913b83
5,639
py
Python
srcflib/plumbing/mysql.py
SRCF/SRCFLib
1483dbf2abb8dd36268bd1c49abe5385d7a501aa
[ "MIT" ]
null
null
null
srcflib/plumbing/mysql.py
SRCF/SRCFLib
1483dbf2abb8dd36268bd1c49abe5385d7a501aa
[ "MIT" ]
2
2020-08-23T17:23:44.000Z
2020-12-21T17:05:50.000Z
srcflib/plumbing/mysql.py
SRCF/SRCFLib
1483dbf2abb8dd36268bd1c49abe5385d7a501aa
[ "MIT" ]
null
null
null
""" MySQL user and database management. """ from contextlib import contextmanager import logging import re from typing import Generator, List, Optional, Tuple, Union from pymysql import connect as pymysql_connect from pymysql.connections import Connection from pymysql.cursors import Cursor from .common import Passwo...
32.039773
95
0.635042
9e7261991baa8ac708750e959638810a13aae287
4,321
py
Python
djangae/patches.py
benvand/djangae
7b186fbe6952c5ae0afe5eb8258516c35760f96d
[ "BSD-3-Clause" ]
null
null
null
djangae/patches.py
benvand/djangae
7b186fbe6952c5ae0afe5eb8258516c35760f96d
[ "BSD-3-Clause" ]
null
null
null
djangae/patches.py
benvand/djangae
7b186fbe6952c5ae0afe5eb8258516c35760f96d
[ "BSD-3-Clause" ]
null
null
null
from django.contrib.contenttypes.models import ContentType from django.db import DEFAULT_DB_ALIAS, router from django.db.models import get_model, get_models, UnavailableApp, signals from django.utils.encoding import smart_text from django.utils import six from django.utils.six.moves import input def update_contenttyp...
40.383178
119
0.675769
9e7269b9467e60abcfc7103bdad2438c4ebd4462
662
py
Python
minitorch/__init__.py
chris-tng/minitorch
f5facd366aac6a4d3a437796c43ac02a9b7069ff
[ "MIT" ]
null
null
null
minitorch/__init__.py
chris-tng/minitorch
f5facd366aac6a4d3a437796c43ac02a9b7069ff
[ "MIT" ]
null
null
null
minitorch/__init__.py
chris-tng/minitorch
f5facd366aac6a4d3a437796c43ac02a9b7069ff
[ "MIT" ]
null
null
null
try: from .tensor_data import * # noqa: F401,F403 from .tensor import * # noqa: F401,F403 from .tensor_ops import * # noqa: F401,F403 from .operators import * # noqa: F401,F403 # from .util import * # noqa: F401,F403 # from .scalar import * from .module import * # noqa: F401,F403 f...
34.842105
49
0.635952
9e726ae55fb746a9547f8d661f667d3381aa9954
4,466
py
Python
gibson2/robots/humanoid_robot.py
i-m-vivek/iGibson
c9009a3da4bfe05e8a3c058d83e0a5d3be0cd648
[ "MIT" ]
3
2021-02-07T14:00:38.000Z
2021-07-03T19:40:59.000Z
gibson2/robots/humanoid_robot.py
i-m-vivek/iGibson
c9009a3da4bfe05e8a3c058d83e0a5d3be0cd648
[ "MIT" ]
null
null
null
gibson2/robots/humanoid_robot.py
i-m-vivek/iGibson
c9009a3da4bfe05e8a3c058d83e0a5d3be0cd648
[ "MIT" ]
2
2021-04-01T12:14:59.000Z
2021-06-18T13:04:39.000Z
import os import gym import numpy as np import pybullet as p from gibson2.robots.robot_locomotor import LocomotorRobot class Humanoid(LocomotorRobot): """ OpenAI Humanoid robot Uses joint torque control """ def __init__(self, config): self.config = config self.torque = config.ge...
37.529412
89
0.536498
9e7279c39313a725354096d3f381f1063d59a8e6
6,708
py
Python
goatools/gosubdag/plot/go_node.py
cinaljess/goatools
8cd603df88fcb49da970e37c445cdb1bdd17ee01
[ "BSD-2-Clause" ]
1
2020-03-12T13:53:11.000Z
2020-03-12T13:53:11.000Z
goatools/gosubdag/plot/go_node.py
cinaljess/goatools
8cd603df88fcb49da970e37c445cdb1bdd17ee01
[ "BSD-2-Clause" ]
null
null
null
goatools/gosubdag/plot/go_node.py
cinaljess/goatools
8cd603df88fcb49da970e37c445cdb1bdd17ee01
[ "BSD-2-Clause" ]
1
2022-03-17T03:14:32.000Z
2022-03-17T03:14:32.000Z
"""Create a pydot Node for a GO Term.""" __copyright__ = "Copyright (C) 2016-2018, DV Klopfenstein, H Tang, All rights reserved." __author__ = "DV Klopfenstein" import pydot from goatools.gosubdag.plot.go_name_shorten import ShortenText from goatools.gosubdag.utils import extract_kwargs class GoNodeOpts(object): ...
41.407407
92
0.597794
9e729fc1b63f92533a5325731ced64d460e525e5
7,834
py
Python
city_scrapers/spiders/cook_pubhealth.py
noahkconley/city-scrapers
37420ce3a9295c2aac68c0fb4a957ad41394a801
[ "MIT" ]
null
null
null
city_scrapers/spiders/cook_pubhealth.py
noahkconley/city-scrapers
37420ce3a9295c2aac68c0fb4a957ad41394a801
[ "MIT" ]
null
null
null
city_scrapers/spiders/cook_pubhealth.py
noahkconley/city-scrapers
37420ce3a9295c2aac68c0fb4a957ad41394a801
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ All spiders should yield data shaped according to the Open Civic Data specification (http://docs.opencivicdata.org/en/latest/data/event.html). """ import scrapy import re from datetime import datetime, timedelta import time as Time from city_scrapers.spider import Spider class Cook_pubhe...
35.447964
115
0.573143
9e72a5b714d953b2b935468af5709c871b073688
1,072
py
Python
hyperion/migrations/0002_auto_20190201_2144.py
ExiaSR/hyperion
0b14ef55ed00b964f1966c722f4162c475aa4895
[ "MIT" ]
3
2019-01-30T03:50:04.000Z
2019-02-20T00:33:05.000Z
hyperion/migrations/0002_auto_20190201_2144.py
ExiaSR/hyperion
0b14ef55ed00b964f1966c722f4162c475aa4895
[ "MIT" ]
173
2019-01-30T08:30:54.000Z
2019-04-05T19:43:06.000Z
hyperion/migrations/0002_auto_20190201_2144.py
ExiaSR/hyperion
0b14ef55ed00b964f1966c722f4162c475aa4895
[ "MIT" ]
2
2019-05-06T22:59:56.000Z
2020-09-29T03:13:03.000Z
# Generated by Django 2.1.5 on 2019-02-01 21:44 from django.conf import settings from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('hyperion', '0001_initial'), ] operations = [ migrations.RenameField( ...
29.777778
148
0.597015
9e72f83080aaf9e926584ce3b7ff01b1df33ae91
5,010
py
Python
week04/week04_project_anarita.py
AnaRita93/spiced_projects
64f0caec4008cc9ccb528e71ec16afba78728b8e
[ "MIT" ]
null
null
null
week04/week04_project_anarita.py
AnaRita93/spiced_projects
64f0caec4008cc9ccb528e71ec16afba78728b8e
[ "MIT" ]
null
null
null
week04/week04_project_anarita.py
AnaRita93/spiced_projects
64f0caec4008cc9ccb528e71ec16afba78728b8e
[ "MIT" ]
null
null
null
""" Week 04 Project:Text Classification Goal: the program should run a model that predicts the artist based on a lyric Steps: 1.the program scraps lyrics from the internet and stores it in a file within a directory 2.the lyrics in each file are extracted and stored into a data frame. 3.The data is cleaned up and spl...
37.669173
141
0.720758
9e7311c6d0ee50b0b04e93198e451002f188ef99
3,980
py
Python
src/cross_validate.py
reigHns/RANZCR-CLiP---Catheter-and-Line-Position-Challenge
80d4177bf74f9ffa5f7906687ebe648832ec84e1
[ "Apache-2.0" ]
1
2021-09-16T06:24:39.000Z
2021-09-16T06:24:39.000Z
src/cross_validate.py
reigHns/RANZCR-CLiP---Catheter-and-Line-Position-Challenge
80d4177bf74f9ffa5f7906687ebe648832ec84e1
[ "Apache-2.0" ]
null
null
null
src/cross_validate.py
reigHns/RANZCR-CLiP---Catheter-and-Line-Position-Challenge
80d4177bf74f9ffa5f7906687ebe648832ec84e1
[ "Apache-2.0" ]
null
null
null
import pandas as pd from IPython.display import display from sklearn.model_selection import GroupKFold, StratifiedKFold def make_folds(train_csv: pd.DataFrame, config) -> pd.DataFrame: """Split the given dataframe into training folds.""" # TODO: add options for cv_scheme as it is cumbersome here. if confi...
40.612245
100
0.611307
9e734daaa3d8d0cbe945183443d002eedc0114f3
11,736
py
Python
custom_components/hasl3/__init__.py
jadlers/integration
f8a489ce6febdada9330cf8b319d71d34e8efb89
[ "Apache-2.0" ]
null
null
null
custom_components/hasl3/__init__.py
jadlers/integration
f8a489ce6febdada9330cf8b319d71d34e8efb89
[ "Apache-2.0" ]
null
null
null
custom_components/hasl3/__init__.py
jadlers/integration
f8a489ce6febdada9330cf8b319d71d34e8efb89
[ "Apache-2.0" ]
null
null
null
import logging import jsonpickle import time import asyncio from datetime import datetime from custom_components.hasl3.haslworker import HaslWorker from homeassistant.config_entries import ConfigEntry from homeassistant.core import HomeAssistant, callback from homeassistant.helpers import device_registry as dr from ....
38.228013
153
0.626108
9e7358304061402533bd1f6528df7d9f11140d7b
16,674
py
Python
tofu/tests/tests01_geom/test_04_sampling.py
WinstonLHS/tofu
c95b2eb6aedcf4bac5676752b9635b78f31af6ca
[ "MIT" ]
56
2017-07-09T10:29:45.000Z
2022-03-31T02:44:50.000Z
tofu/tests/tests01_geom/test_04_sampling.py
WinstonLHS/tofu
c95b2eb6aedcf4bac5676752b9635b78f31af6ca
[ "MIT" ]
522
2017-07-02T21:06:07.000Z
2022-03-02T08:07:57.000Z
tofu/tests/tests01_geom/test_04_sampling.py
Didou09/tofu
4a4e1f058bab8e7556ed9d518f90807cec605476
[ "MIT" ]
9
2017-07-02T20:38:53.000Z
2021-12-04T00:12:30.000Z
"""Tests of the functions in `sampling_tools.pxd` or their wrappers found in `tofu.geom`. """ import numpy as np import tofu as tf import tofu.geom._GG as GG from matplotlib.path import Path from .testing_tools import compute_ves_norm from .testing_tools import compute_min_max_r_and_z # Global variables for testing th...
45.186992
79
0.426892
9e7374b7947dc4b4f78b2cd9a03058c5ef732350
1,199
py
Python
scripts/practice/FB-reRun/lookAndSay.py
bhimeshchauhan/competitive_programming
e0777bb0c425ffa03d8173a83e50ca55c4a3fcf5
[ "MIT" ]
null
null
null
scripts/practice/FB-reRun/lookAndSay.py
bhimeshchauhan/competitive_programming
e0777bb0c425ffa03d8173a83e50ca55c4a3fcf5
[ "MIT" ]
8
2020-09-05T16:04:31.000Z
2022-02-27T09:57:51.000Z
scripts/practice/FB-reRun/lookAndSay.py
bhimeshchauhan/competitive_programming
e0777bb0c425ffa03d8173a83e50ca55c4a3fcf5
[ "MIT" ]
null
null
null
""" Look and Say """ # Python 3 program to find # n'th term in look and # say sequence # Returns n'th term in # look-and-say sequence def countnndSay(n): # Base cases if (n == 1): return "1" if (n == 2): return "11" # Find n'th term by generating # all terms from 3 to n-1. # Every term is generated usi...
15.986667
34
0.58799
9e739d718ab82d6cd542cb7e71fd657d2a51dff7
1,023
py
Python
python/gcore/gcore_util_test.py
schwehr/gdal-autotest2
e153b594162f6554280212d919e645b0f01bf7e6
[ "Apache-2.0" ]
null
null
null
python/gcore/gcore_util_test.py
schwehr/gdal-autotest2
e153b594162f6554280212d919e645b0f01bf7e6
[ "Apache-2.0" ]
4
2017-01-25T18:11:31.000Z
2017-04-04T20:51:45.000Z
python/gcore/gcore_util_test.py
schwehr/gdal-autotest2
e153b594162f6554280212d919e645b0f01bf7e6
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # Copyright 2014 Google 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 ...
26.921053
74
0.746823
9e73b1c526838529af116fa9b94bc16f570ede95
1,418
py
Python
friday_rl/training_discrete.py
trungnt13/uef-summerschool2018
8ddf8297ab67bef991468fe40c556c18a2d620bb
[ "MIT" ]
null
null
null
friday_rl/training_discrete.py
trungnt13/uef-summerschool2018
8ddf8297ab67bef991468fe40c556c18a2d620bb
[ "MIT" ]
null
null
null
friday_rl/training_discrete.py
trungnt13/uef-summerschool2018
8ddf8297ab67bef991468fe40c556c18a2d620bb
[ "MIT" ]
1
2018-08-16T11:36:00.000Z
2018-08-16T11:36:00.000Z
#!/usr/bin/env python3 # # gym_discrete.py # Example script of using OpenAI Gym in simple grid-world environment # import gym from learning_agent import LearningAgent from q_agent import QAgent from sarsa_agent import SarsaAgent from gym.envs.toy_text.frozen_lake import FrozenLakeEnv # How long do we play NUM_EPISOD...
28.36
71
0.698166
9e73b76a5d8dbf7af5c6efb68d59ff63745e9bf4
5,345
py
Python
hicpack/scripts/onTarget.py
Naghipourfar/HiC-Pack
8c1f77a124f7ad9cc3a49c72ca501891737f341e
[ "MIT" ]
1
2019-12-03T19:21:21.000Z
2019-12-03T19:21:21.000Z
hicpack/scripts/onTarget.py
Naghipourfar/HiC-Pack
8c1f77a124f7ad9cc3a49c72ca501891737f341e
[ "MIT" ]
null
null
null
hicpack/scripts/onTarget.py
Naghipourfar/HiC-Pack
8c1f77a124f7ad9cc3a49c72ca501891737f341e
[ "MIT" ]
null
null
null
#!/usr/bin/env python ## HiCPack ## Author(s): Mohsen Naghipourfar ## Contact: mn7697np@gmail.com or naghipourfar@ce.sharif.edu ## This software is distributed without any guarantee under the terms of the GNU General ## MIT License """ Script to keep valid 3C products overlapping with Target The list of valid pairs o...
29.530387
143
0.546679
9e73bacce88fa9ba7182d572c69d52d042141b78
1,564
py
Python
iff_dashboard/tech_partner.py
DataKind-BLR/panoptic_flask
bd488ebf56cbf4bb028427f17eb0534536b9d898
[ "MIT" ]
null
null
null
iff_dashboard/tech_partner.py
DataKind-BLR/panoptic_flask
bd488ebf56cbf4bb028427f17eb0534536b9d898
[ "MIT" ]
13
2020-08-03T14:01:03.000Z
2020-10-01T06:01:16.000Z
iff_dashboard/tech_partner.py
DataKind-BLR/panoptic_flask
bd488ebf56cbf4bb028427f17eb0534536b9d898
[ "MIT" ]
1
2020-07-25T06:23:20.000Z
2020-07-25T06:23:20.000Z
from gsheets_utils import random_with_N_digits from config import conn class TechPartner(): ''' The class TechPartner has all the attributes of a tech partner i.e the name, website and roc_details from the spreadsheet. ''' def __init__(self, _id, technology_partner, website, roc_details, upload_s...
39.1
85
0.553069
9e73ceefeeb12b7e2ae68ed60d22fdc196d610c4
2,689
py
Python
train_ee.py
karim174/brain-computer-interface-and-vision-based-autonomous-agent-for-shared-control-over-robotic-arm
d099cad43bfb98261c2571991f4e163d444b62b4
[ "MIT" ]
2
2019-02-28T01:47:23.000Z
2021-04-10T14:37:46.000Z
train_ee.py
karim174/brain-computer-interface-and-vision-based-autonomous-agent-for-shared-control-over-robotic-arm
d099cad43bfb98261c2571991f4e163d444b62b4
[ "MIT" ]
null
null
null
train_ee.py
karim174/brain-computer-interface-and-vision-based-autonomous-agent-for-shared-control-over-robotic-arm
d099cad43bfb98261c2571991f4e163d444b62b4
[ "MIT" ]
null
null
null
##import rospy import atexit import ray #from ray.rllib.agents.ddpg.apex import ApexDDPGTrainer from ray import tune from ray.tune import run_experiments, grid_search import gym num_of_workers = 12 horizon = 40 #ray.init() #ray.init(redis_address="localhost:48842") #ray.init(redis_address="localhost:14458",huge_page...
34.037975
117
0.628115
9e73dbacf12f7e38dd95f0caa32d97483c1d2698
141,326
py
Python
imageai/Detection/__init__.py
stevetao74/ImageAI
d0158613ec0003d63285a02ea6037428f1c8e37a
[ "MIT" ]
6
2019-09-03T01:45:20.000Z
2021-09-08T09:07:49.000Z
imageai/Detection/__init__.py
OrbitShifters2019/ImageAI
99bfea565556ef528be4437098b4c72487ff9b94
[ "MIT" ]
null
null
null
imageai/Detection/__init__.py
OrbitShifters2019/ImageAI
99bfea565556ef528be4437098b4c72487ff9b94
[ "MIT" ]
null
null
null
import cv2 from imageai.Detection.keras_retinanet.models.resnet import resnet50_retinanet from imageai.Detection.keras_retinanet.utils.image import read_image_bgr, read_image_array, read_image_stream, \ preprocess_image, resize_image from imageai.Detection.keras_retinanet.utils.visualization import draw_box, draw_c...
60.473256
352
0.500587
9e7426059484f7b17520210f70fe90111e98c1af
20,388
py
Python
txdav/caldav/datastore/test/test_util.py
eventable/CalendarServer
384444edb1966b530bc391789afbe3fb9cd6fd3e
[ "Apache-2.0" ]
1
2017-02-18T19:22:19.000Z
2017-02-18T19:22:19.000Z
txdav/caldav/datastore/test/test_util.py
eventable/CalendarServer
384444edb1966b530bc391789afbe3fb9cd6fd3e
[ "Apache-2.0" ]
null
null
null
txdav/caldav/datastore/test/test_util.py
eventable/CalendarServer
384444edb1966b530bc391789afbe3fb9cd6fd3e
[ "Apache-2.0" ]
null
null
null
## # Copyright (c) 2010-2015 Apple 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 by applicable l...
33.313725
98
0.651805
9e74282209837ddcec0ede70a691f5075b730231
36
py
Python
src/statick_tooling/plugins/__init__.py
tdenewiler/statick-tooling
0eb856c3f6f7b355bd3d5e91230ed73e14a746e9
[ "CC0-1.0" ]
8
2020-02-07T00:15:00.000Z
2021-12-10T18:14:41.000Z
src/statick_tooling/plugins/__init__.py
tdenewiler/statick-tooling
0eb856c3f6f7b355bd3d5e91230ed73e14a746e9
[ "CC0-1.0" ]
25
2020-02-13T02:01:22.000Z
2022-01-04T19:14:07.000Z
src/statick_tooling/plugins/__init__.py
tdenewiler/statick-tooling
0eb856c3f6f7b355bd3d5e91230ed73e14a746e9
[ "CC0-1.0" ]
4
2020-02-12T16:16:48.000Z
2021-11-13T17:50:49.000Z
"""Markdown plugins for Statick."""
18
35
0.694444
9e743154dc61d863ad94eb464905c20faabf454c
8,336
py
Python
initial_sizing/models.py
geoffreynyaga/ostrich-project
157cd7a3c3d9014e31ef21ca21de43f04d039997
[ "MIT" ]
15
2017-11-08T10:03:26.000Z
2021-12-21T07:02:44.000Z
initial_sizing/models.py
geoffreynyaga/ostrich-project
157cd7a3c3d9014e31ef21ca21de43f04d039997
[ "MIT" ]
9
2020-01-17T15:09:22.000Z
2022-03-25T19:02:05.000Z
initial_sizing/models.py
geoffreynyaga/ostrich-project
157cd7a3c3d9014e31ef21ca21de43f04d039997
[ "MIT" ]
null
null
null
from django.db import models class MTOW_Sizing(models.Model): """Model definition for MTOW_SIZING.""" class Meta: """Meta definition for MTOW_SIZING.""" verbose_name = "MTOW_SIZING" verbose_name_plural = "MTOW_SIZINGs" aircraft = models.ForeignKey("accounts.Aircraft", on_delete=...
33.748988
94
0.695537
9e745c47511fbd08ded8995cc4426777d508b0e1
15,008
py
Python
ml/utils/loading.py
leonoravesterbacka/carl-torch
383ef84c449d654d783b4e8bdbb847ee8cbf24b9
[ "MIT" ]
8
2020-04-17T13:15:12.000Z
2021-07-21T00:30:51.000Z
ml/utils/loading.py
leonoravesterbacka/carl-torch
383ef84c449d654d783b4e8bdbb847ee8cbf24b9
[ "MIT" ]
6
2020-10-27T14:04:33.000Z
2022-03-12T00:47:50.000Z
ml/utils/loading.py
leonoravesterbacka/carl-torch
383ef84c449d654d783b4e8bdbb847ee8cbf24b9
[ "MIT" ]
4
2020-10-06T07:29:59.000Z
2021-03-05T10:03:16.000Z
from __future__ import absolute_import, division, print_function, unicode_literals import os import time import logging import tarfile import torch import pickle import numpy as np import pandas as pd import seaborn as sns from pandas.plotting import scatter_matrix import multiprocessing import matplotlib matplotlib.us...
42.276056
328
0.523254
9e746ce7aa9e1581481c0309683cfe6328cf8641
54,827
py
Python
ThirdParty/Twisted/twisted/web/test/test_static.py
OpenGeoscience/VTK
a373e975b9284a022f43a062ebf5042bb17b4e44
[ "BSD-3-Clause" ]
1
2021-10-13T01:57:14.000Z
2021-10-13T01:57:14.000Z
ThirdParty/Twisted/twisted/web/test/test_static.py
OpenGeoscience/VTK
a373e975b9284a022f43a062ebf5042bb17b4e44
[ "BSD-3-Clause" ]
null
null
null
ThirdParty/Twisted/twisted/web/test/test_static.py
OpenGeoscience/VTK
a373e975b9284a022f43a062ebf5042bb17b4e44
[ "BSD-3-Clause" ]
5
2015-10-09T04:12:29.000Z
2021-12-15T16:57:11.000Z
# Copyright (c) Twisted Matrix Laboratories. # See LICENSE for details. """ Tests for L{twisted.web.static}. """ import os, re, StringIO from zope.interface.verify import verifyObject from twisted.internet import abstract, interfaces from twisted.python.compat import set from twisted.python.runtime import platform ...
36.870881
101
0.619658
9e746fe7b306a7b582693132804de029d770d926
3,852
py
Python
blogger_cli/cli.py
Himanshu-singhal-creator/blogger-cli
ed56d1c8ce54662b244523c4c0d0aa0daac23173
[ "MIT" ]
427
2019-07-24T15:04:40.000Z
2022-01-28T03:28:01.000Z
blogger_cli/cli.py
Himanshu-singhal-creator/blogger-cli
ed56d1c8ce54662b244523c4c0d0aa0daac23173
[ "MIT" ]
32
2019-06-04T05:39:07.000Z
2022-01-06T15:45:59.000Z
blogger_cli/cli.py
Himanshu-singhal-creator/blogger-cli
ed56d1c8ce54662b244523c4c0d0aa0daac23173
[ "MIT" ]
15
2019-07-24T16:48:20.000Z
2020-09-30T15:40:57.000Z
import os import sys import click from blogger_cli import BACKUP_DIR, CONFIG_DIR from blogger_cli.cli_utils.json_writer import Config class Context(object): def __init__(self): self.verbose = False config_path = os.path.join(CONFIG_DIR, "blog_config.cfg") self.config = Config(config_path...
33.206897
86
0.595535
9e7475775c8fd20462389704cdd9d7b50f7f3b09
985
py
Python
scraper/cli.py
Stimson-Center/stimson-web-scraper
c2e6c3ae4abb8e8697b10d844bfb0fa3d305d05f
[ "MIT" ]
1
2020-09-11T01:13:27.000Z
2020-09-11T01:13:27.000Z
scraper/cli.py
Stimson-Center/stimson-web-scraper
c2e6c3ae4abb8e8697b10d844bfb0fa3d305d05f
[ "MIT" ]
15
2020-06-19T01:14:36.000Z
2021-09-08T02:00:20.000Z
scraper/cli.py
Stimson-Center/stimson-web-scraper
c2e6c3ae4abb8e8697b10d844bfb0fa3d305d05f
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 import json import os import sys import click PACKAGE_PARENT = '..' SCRIPT_DIR = os.path.dirname(os.path.realpath(os.path.join(os.getcwd(), os.path.expanduser(__file__)))) sys.path.append(os.path.normpath(os.path.join(SCRIPT_DIR, PACKAGE_PARENT))) # noinspection PyPep8 from scraper import Ar...
27.361111
103
0.694416
9e748cee0a55c30e5801dcc46aa91077a14c70c2
1,613
py
Python
stanCode_Projects/weather_master/hailstone.py
JohnsonWang0319/MystanCodeProjects
9a961761b91ef145847405b0b8c1e958c44e7347
[ "MIT" ]
null
null
null
stanCode_Projects/weather_master/hailstone.py
JohnsonWang0319/MystanCodeProjects
9a961761b91ef145847405b0b8c1e958c44e7347
[ "MIT" ]
null
null
null
stanCode_Projects/weather_master/hailstone.py
JohnsonWang0319/MystanCodeProjects
9a961761b91ef145847405b0b8c1e958c44e7347
[ "MIT" ]
null
null
null
""" File: hailstone.py Name: Johnson ----------------------- This program should implement a console program that simulates the execution of the Hailstone sequence, defined by Douglas Hofstadter. Output format should match what is shown in the sample run in the Assignment 2 Handout. """ def main(): print('This pr...
44.805556
119
0.582145
9e74a79e0af64a24d208f41d46b41cb561e7e67f
483
py
Python
data_model.py
peterger8y/Airbnb-rental-price-predictor
32175783292a044b0cfab1c7274ff15c2eea4fd4
[ "CC-BY-3.0" ]
null
null
null
data_model.py
peterger8y/Airbnb-rental-price-predictor
32175783292a044b0cfab1c7274ff15c2eea4fd4
[ "CC-BY-3.0" ]
null
null
null
data_model.py
peterger8y/Airbnb-rental-price-predictor
32175783292a044b0cfab1c7274ff15c2eea4fd4
[ "CC-BY-3.0" ]
5
2021-06-24T01:14:21.000Z
2021-08-24T02:17:37.000Z
from flask_sqlalchemy import SQLAlchemy from flask_login import UserMixin DB = SQLAlchemy() class User(DB.Model, UserMixin): id = DB.Column(DB.Unicode(1000), primary_key=True) username = DB.Column(DB.String, nullable=False) email = DB.Column(DB.String, nullable=False) password = DB.Column(DB.String,...
25.421053
54
0.679089
9e74b07519a9939b652f42b2387f1750358660cc
5,093
py
Python
azure/multiapi/storage/v2015_04_05/storageclient.py
xolve/azure-multiapi-storage-python
47509479427c879f18c554e451e838453d47c2bd
[ "MIT" ]
3
2019-02-21T20:46:26.000Z
2021-06-22T15:35:52.000Z
azure/multiapi/storage/v2015_04_05/storageclient.py
xolve/azure-multiapi-storage-python
47509479427c879f18c554e451e838453d47c2bd
[ "MIT" ]
11
2017-10-05T18:20:40.000Z
2020-10-10T09:20:19.000Z
azure/multiapi/storage/v2015_04_05/storageclient.py
xolve/azure-multiapi-storage-python
47509479427c879f18c554e451e838453d47c2bd
[ "MIT" ]
15
2017-10-02T18:48:20.000Z
2022-03-03T14:03:49.000Z
#------------------------------------------------------------------------- # Copyright (c) Microsoft. 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.apa...
36.378571
89
0.651679
9e74dbec906f05fa7377273e64759fec25eaa3a3
9,356
py
Python
losses/face_losses.py
pesong/mobilefacenet-tf
dfca29e3bd056c3a5c760cc7d13706ad18985614
[ "Apache-2.0" ]
null
null
null
losses/face_losses.py
pesong/mobilefacenet-tf
dfca29e3bd056c3a5c760cc7d13706ad18985614
[ "Apache-2.0" ]
null
null
null
losses/face_losses.py
pesong/mobilefacenet-tf
dfca29e3bd056c3a5c760cc7d13706ad18985614
[ "Apache-2.0" ]
null
null
null
import tensorflow as tf import math from losses import triplet_losses def insightface_loss(embedding, labels, out_num, w_init=None, s=64., m=0.5): ''' :param embedding: the input embedding vectors :param labels: the input labels, the shape should be eg: (batch_size, 1) :param s: scalar value default ...
43.924883
126
0.646751
9e74f5cd334d27b0b0885ae0cf615a82f7096f96
2,131
py
Python
deep_compression/config/config.py
YodaEmbedding/deep-compression
cc1ea691921fbe2e5cffeb30a02b777dadd08700
[ "MIT" ]
null
null
null
deep_compression/config/config.py
YodaEmbedding/deep-compression
cc1ea691921fbe2e5cffeb30a02b777dadd08700
[ "MIT" ]
null
null
null
deep_compression/config/config.py
YodaEmbedding/deep-compression
cc1ea691921fbe2e5cffeb30a02b777dadd08700
[ "MIT" ]
null
null
null
import os from typing import Any import torch.optim as optim import yaml from aim.sdk.utils import generate_run_hash from deep_compression.losses import ( BatchChannelDecorrelationLoss, RateDistortionLoss, ) def create_criterion(conf): if conf.name == "RateDistortionLoss": return RateDistortionL...
28.039474
78
0.64946
9e74f69b49c28049c560ab4c7aef5fd27996d532
18,294
py
Python
emlp/groups.py
kiranvad/equivariant-MLP
2bc2fa9ab7bdb66f1903eba00b35339c0b4370d7
[ "MIT" ]
179
2021-02-24T22:46:23.000Z
2022-03-21T17:01:06.000Z
emlp/groups.py
kiranvad/equivariant-MLP
2bc2fa9ab7bdb66f1903eba00b35339c0b4370d7
[ "MIT" ]
13
2021-04-22T23:11:56.000Z
2022-03-25T17:37:03.000Z
emlp/groups.py
kiranvad/equivariant-MLP
2bc2fa9ab7bdb66f1903eba00b35339c0b4370d7
[ "MIT" ]
19
2021-03-17T14:41:29.000Z
2022-03-28T08:00:33.000Z
import numpy as np from scipy.linalg import expm from emlp.utils import Named,export import jax import jax.numpy as jnp from emlp.reps.linear_operators import LazyShift,SwapMatrix,Rot90,LazyKron,LazyKronsum,LazyPerm,I from jax import jit,vmap def rel_err(A,B): return jnp.mean(jnp.abs(A-B))/(jnp.mean(jnp.abs(A)) +...
38.192067
151
0.613261
9e74f89e51a48b375ed2f81d1e6e7f23126038fb
16,254
py
Python
repos/spikeextractors/spikeextractors/tools.py
tjd2002/spikeforest2
2e393564b858b2995aa2ccccd9bd73065681b5de
[ "Apache-2.0" ]
null
null
null
repos/spikeextractors/spikeextractors/tools.py
tjd2002/spikeforest2
2e393564b858b2995aa2ccccd9bd73065681b5de
[ "Apache-2.0" ]
null
null
null
repos/spikeextractors/spikeextractors/tools.py
tjd2002/spikeforest2
2e393564b858b2995aa2ccccd9bd73065681b5de
[ "Apache-2.0" ]
null
null
null
import numpy as np from .RecordingExtractor import RecordingExtractor from .SortingExtractor import SortingExtractor from .SubRecordingExtractor import SubRecordingExtractor from .SubSortingExtractor import SubSortingExtractor import csv from pathlib import Path def read_python(path): '''Parses python scripts in ...
42.886544
120
0.560662
9e753149e8f8c3832fa8c1016773f69709741bec
322
py
Python
wizard_builder/tests/test_fields.py
SexualHealthInnovations/django-wizard-builder
f5effe8c462313f16be914b562dbea8ea796b672
[ "BSD-3-Clause" ]
16
2016-06-21T04:05:24.000Z
2017-09-26T15:40:24.000Z
wizard_builder/tests/test_fields.py
SexualHealthInnovations/django-wizard-builder
f5effe8c462313f16be914b562dbea8ea796b672
[ "BSD-3-Clause" ]
141
2016-06-21T20:46:46.000Z
2017-09-28T00:20:49.000Z
wizard_builder/tests/test_fields.py
project-callisto/django-wizard-builder
f5effe8c462313f16be914b562dbea8ea796b672
[ "BSD-3-Clause" ]
7
2017-10-04T22:52:18.000Z
2018-05-31T17:14:39.000Z
from django.test import TestCase from .. import fields class FieldOptionsTest(TestCase): def test_field_options_displayed(self): field_options = fields.get_field_options() for item in ['singlelinetext', 'textarea', 'checkbox', 'radiobutton']: self.assertIn((item, item), field_options...
26.833333
78
0.704969
9e75353e7103f49c62ed0da55a470753e2a08b4f
35,319
py
Python
mmdet3d/core/bbox/box_np_ops.py
rasd3/mmdet3d_actr
d1c86d54f498fca166e957d249b109645ea13627
[ "Apache-2.0" ]
null
null
null
mmdet3d/core/bbox/box_np_ops.py
rasd3/mmdet3d_actr
d1c86d54f498fca166e957d249b109645ea13627
[ "Apache-2.0" ]
null
null
null
mmdet3d/core/bbox/box_np_ops.py
rasd3/mmdet3d_actr
d1c86d54f498fca166e957d249b109645ea13627
[ "Apache-2.0" ]
null
null
null
# Copyright (c) OpenMMLab. All rights reserved. # TODO: clean the functions in this file and move the APIs into box structures # in the future import numba import numpy as np def camera_to_lidar(points, r_rect, velo2cam): """Convert points in camera coordinate to lidar coordinate. Args: points (np.n...
37.295671
83
0.581387