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
ff0d2fb07b826db96486d6ce43903364c29aff99
1,199
py
Python
examples/run_quil.py
ecpeterson/pyquil
b0548d5c5f4ee75d4bcd301202a872a9152d212a
[ "Apache-2.0" ]
2
2019-08-02T16:10:20.000Z
2019-08-02T16:10:30.000Z
examples/run_quil.py
ecpeterson/pyquil
b0548d5c5f4ee75d4bcd301202a872a9152d212a
[ "Apache-2.0" ]
2
2019-06-02T03:16:24.000Z
2019-06-04T05:16:06.000Z
examples/run_quil.py
ecpeterson/pyquil
b0548d5c5f4ee75d4bcd301202a872a9152d212a
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python """ This module runs basic Quil text files against the Forest QVM API. """ from __future__ import print_function from argparse import ArgumentParser, ArgumentDefaultsHelpFormatter from pyquil import Program, get_qc help_string = "Script takes two arguments. Quil program filename is required as ...
29.975
94
0.665555
ff0d46c2f0b5b3e940a2eb84770701191ad4707c
3,006
py
Python
find_all_m4vs.py
bdbaddog/misc-windows-tools
62fa123442cecb79fe13a582b6f2ef436769f9ee
[ "MIT" ]
null
null
null
find_all_m4vs.py
bdbaddog/misc-windows-tools
62fa123442cecb79fe13a582b6f2ef436769f9ee
[ "MIT" ]
null
null
null
find_all_m4vs.py
bdbaddog/misc-windows-tools
62fa123442cecb79fe13a582b6f2ef436769f9ee
[ "MIT" ]
null
null
null
""" Find all files with .m4v extention in specified directory trees. Then compare same name file's lengths """ import os from os.path import join, getsize import argparse import pprint SF_FILES = {} PLEX_FILES = {} ALL_FILES = {} def process_cmdline(): """ Process command line arguments and return them ""...
29.184466
120
0.5998
ff0d68a794578f08acfcd1edb80f3f7ac0ff18b5
450
py
Python
tests/generic/test_phrase_extractor.py
intellihr/interlagos
f09651b460f7f6030fcb9299be45eb83d199f136
[ "MIT" ]
null
null
null
tests/generic/test_phrase_extractor.py
intellihr/interlagos
f09651b460f7f6030fcb9299be45eb83d199f136
[ "MIT" ]
null
null
null
tests/generic/test_phrase_extractor.py
intellihr/interlagos
f09651b460f7f6030fcb9299be45eb83d199f136
[ "MIT" ]
null
null
null
from interlagos.generic import phrase_extractor TOKENS = [ 'cats', 'are', 'good', 'pets', 'for', 'they', 'are', 'clean', 'and', 'are', 'not', 'noisy' ] def test_extract_n_gram_from(snapshot): n_grams = phrase_extractor.extract_n_gram_from(TOKENS) snapshot.assert_match(n_grams) def test_extract_phr...
23.684211
79
0.717778
ff0d6ada2fcfd187daaac5c0779f6a53ea282da0
249
py
Python
hfpy_code/chapter5/page150.py
leobarros/use_cabeca_python
4e0897a68fb7ef669ec05eab7cba9412baa0e85e
[ "Apache-2.0" ]
1
2016-04-01T04:31:52.000Z
2016-04-01T04:31:52.000Z
hfpython_code/hfpy_code/chapter5/page150.py
tdean1995/HFPythonSandbox
dc72257e4353c5bca7a2c401d18587c6d799f9a1
[ "Apache-2.0" ]
null
null
null
hfpython_code/hfpy_code/chapter5/page150.py
tdean1995/HFPythonSandbox
dc72257e4353c5bca7a2c401d18587c6d799f9a1
[ "Apache-2.0" ]
1
2020-06-02T17:47:22.000Z
2020-06-02T17:47:22.000Z
def sanitize(time_string): if '-' in time_string: splitter = '-' elif ':' in time_string: splitter = ':' else: return(time_string) (mins, secs) = time_string.split(splitter) return(mins + '.' + secs)
22.636364
46
0.550201
ff0d6e5206e7287eca29278a597cc2974824c6fa
7,942
py
Python
docs/conf.py
ashwinjv/osms
9c1f80d771e82342c16fa11de293c4609b7a3984
[ "BSD-3-Clause" ]
null
null
null
docs/conf.py
ashwinjv/osms
9c1f80d771e82342c16fa11de293c4609b7a3984
[ "BSD-3-Clause" ]
null
null
null
docs/conf.py
ashwinjv/osms
9c1f80d771e82342c16fa11de293c4609b7a3984
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- # # Open Source Message Service documentation build configuration file, created by # sphinx-quickstart. # # 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. # # All configu...
32.284553
86
0.709141
ff0d99015730aac48f19e2a53e48ee1f5ad71ff1
746
py
Python
wlmetrics/filter/mahony/__init__.py
hbldh/wlmetrics
3c1580412783c758844a1089da478ed0479af02e
[ "MIT" ]
null
null
null
wlmetrics/filter/mahony/__init__.py
hbldh/wlmetrics
3c1580412783c758844a1089da478ed0479af02e
[ "MIT" ]
null
null
null
wlmetrics/filter/mahony/__init__.py
hbldh/wlmetrics
3c1580412783c758844a1089da478ed0479af02e
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- """ :mod:`madgwick` ================== .. module:: madgwick :platform: Unix, Windows :synopsis: .. moduleauthor:: hbldh <henrik.blidh@nedomkull.com> Created on 2015-06-21, 20:36 """ from __future__ import division from __future__ import print_function from __fut...
19.128205
56
0.676944
ff0dacb8cc2a85048e0d2989782ef952f98d85ff
18,724
py
Python
src/empirical_fire_modelling/data/cv.py
akuhnregnier/empirical-fire-modelling
4187f5bfce0595d98361a9264793c25607043047
[ "MIT" ]
null
null
null
src/empirical_fire_modelling/data/cv.py
akuhnregnier/empirical-fire-modelling
4187f5bfce0595d98361a9264793c25607043047
[ "MIT" ]
null
null
null
src/empirical_fire_modelling/data/cv.py
akuhnregnier/empirical-fire-modelling
4187f5bfce0595d98361a9264793c25607043047
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import logging import math from operator import itemgetter import matplotlib.pyplot as plt import numpy as np import pandas as pd from scipy import ndimage from wildfires.analysis import cube_plotting from ..cache import cache, mark_dependency from ..model import get_model_predict, threading_g...
35.664762
93
0.634266
ff0dc124ce7fbcd2037e59bb37fe02b5c07f9002
12,299
py
Python
hand.py
FlazeNaive/LeapPython
3fb47e8f3e80c13bc24ebb7c74abd75247cad7e5
[ "MIT" ]
1
2021-09-05T13:32:00.000Z
2021-09-05T13:32:00.000Z
hand.py
FlazeNaive/LeapPython
3fb47e8f3e80c13bc24ebb7c74abd75247cad7e5
[ "MIT" ]
null
null
null
hand.py
FlazeNaive/LeapPython
3fb47e8f3e80c13bc24ebb7c74abd75247cad7e5
[ "MIT" ]
3
2021-05-19T07:07:39.000Z
2021-09-05T14:12:11.000Z
# MIT License # # Copyright (c) 2021 dendenxu # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights # to use, copy, modify, m...
38.554859
216
0.624604
ff0dc67c0b544a78f1123d30f5e527362df7fb8b
5,184
py
Python
src/segmentation/data/preprocessing/distance_maps/hover.py
prhuppertz/Burned_Area_Detection
4091e8a5ba22c1db28b4accd71cf2994d544ffab
[ "Apache-2.0" ]
5
2021-03-30T02:22:42.000Z
2022-01-18T20:12:30.000Z
src/segmentation/data/preprocessing/distance_maps/hover.py
prhuppertz/Burned_Area_Detection
4091e8a5ba22c1db28b4accd71cf2994d544ffab
[ "Apache-2.0" ]
null
null
null
src/segmentation/data/preprocessing/distance_maps/hover.py
prhuppertz/Burned_Area_Detection
4091e8a5ba22c1db28b4accd71cf2994d544ffab
[ "Apache-2.0" ]
3
2021-04-26T02:08:05.000Z
2021-08-15T20:12:31.000Z
import numpy as np from typeguard import typechecked from scipy.ndimage import measurements from skimage import morphology as morph def _fix_mirror_padding(ann): """ Deal with duplicated instances due to mirroring in interpolation during shape augmentation (scale, rotation etc.) """ current_max_id...
32.810127
104
0.610918
ff0dd6b67754bdb2ebe4e9fee9cfd2fced7fa372
29,435
py
Python
pandas/tests/groupby/test_transform.py
MaxVanDeursen/pandas
9821b77de692716d7c2b62db1a68cac9ffc456c3
[ "BSD-3-Clause" ]
1
2019-03-25T09:31:34.000Z
2019-03-25T09:31:34.000Z
pandas/tests/groupby/test_transform.py
MaxVanDeursen/pandas
9821b77de692716d7c2b62db1a68cac9ffc456c3
[ "BSD-3-Clause" ]
null
null
null
pandas/tests/groupby/test_transform.py
MaxVanDeursen/pandas
9821b77de692716d7c2b62db1a68cac9ffc456c3
[ "BSD-3-Clause" ]
null
null
null
""" test with the .transform """ import numpy as np import pytest from pandas._libs import groupby from pandas.compat import StringIO from pandas.core.dtypes.common import ensure_platform_int, is_timedelta64_dtype import pandas as pd from pandas import DataFrame, MultiIndex, Series, Timestamp, concat, date_range fr...
34.752066
79
0.576694
ff0de37a23ec379c4a7fad388c75336a23991afd
12,901
py
Python
tools/profile_video.py
regular/pyglet-avbin-optimizations
e93c0508a57c92c24cc22dee12be0a58b1fcf975
[ "BSD-3-Clause" ]
2
2017-05-10T08:27:22.000Z
2019-10-05T14:55:00.000Z
tools/profile_video.py
regular/pyglet-avbin-optimizations
e93c0508a57c92c24cc22dee12be0a58b1fcf975
[ "BSD-3-Clause" ]
null
null
null
tools/profile_video.py
regular/pyglet-avbin-optimizations
e93c0508a57c92c24cc22dee12be0a58b1fcf975
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python # ---------------------------------------------------------------------------- # pyglet # Copyright (c) 2006-2008 Alex Holkner # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are ...
34.220159
117
0.626773
ff0de4fb14162529e121250aaef195f4fd43cd8f
1,015
py
Python
setup.py
ekiro/haps
88d225e0177de0a0373d12d42d1b6a80437b8d5c
[ "MIT" ]
38
2018-06-15T11:32:05.000Z
2020-05-08T17:04:42.000Z
setup.py
ekiro/haps
88d225e0177de0a0373d12d42d1b6a80437b8d5c
[ "MIT" ]
4
2018-07-25T07:12:21.000Z
2019-06-10T09:52:21.000Z
setup.py
ekiro/haps
88d225e0177de0a0373d12d42d1b6a80437b8d5c
[ "MIT" ]
2
2019-05-17T09:58:36.000Z
2019-06-10T08:18:48.000Z
from setuptools import find_packages, setup def readme(): with open('README.md') as f: return f.read() setup( name='haps', version='1.1.3', packages=find_packages(), url='https://github.com/ekiro/haps', license='MIT License', author='Piotr Karkut', author_email='karkucik@gmai...
29.852941
53
0.612808
ff0df5472159068c28aced2b9d99cb29db795784
73
py
Python
apiAWS/twilioAPIAAA/test.py
Shangxz/MHacksDoorBell
556b00a4f133f54bf28bb2b3d4619f0f0298a0ce
[ "MIT" ]
1
2017-09-24T08:55:51.000Z
2017-09-24T08:55:51.000Z
apiAWS/twilioAPIAAA/test.py
Shangxz/MHacksDoorBell
556b00a4f133f54bf28bb2b3d4619f0f0298a0ce
[ "MIT" ]
1
2021-06-01T21:42:47.000Z
2021-06-01T21:42:47.000Z
apiAWS/twilioAPIAAA/test.py
Shangxz/MHacksDoorBell
556b00a4f133f54bf28bb2b3d4619f0f0298a0ce
[ "MIT" ]
3
2017-09-23T21:34:54.000Z
2017-11-19T21:40:51.000Z
event = {"name":"griffin"} text = "{}".format(event['name']) print text
14.6
33
0.60274
ff0e0572ef5793db5e5069a4bd74dfa62f5fde1b
4,967
py
Python
AlgorithmsPractice/python/212_hard_Word Search II.py
YangXiaoo/NoteBook
37056acad7a05b876832f72ac34d3d1a41e0dd22
[ "CNRI-Python", "RSA-MD", "CECILL-B" ]
58
2019-03-03T04:42:23.000Z
2022-01-13T04:36:31.000Z
AlgorithmsPractice/python/212_hard_Word Search II.py
YangXiaoo/NoteBook
37056acad7a05b876832f72ac34d3d1a41e0dd22
[ "CNRI-Python", "RSA-MD", "CECILL-B" ]
null
null
null
AlgorithmsPractice/python/212_hard_Word Search II.py
YangXiaoo/NoteBook
37056acad7a05b876832f72ac34d3d1a41e0dd22
[ "CNRI-Python", "RSA-MD", "CECILL-B" ]
28
2019-08-11T01:25:00.000Z
2021-08-22T06:46:06.000Z
''' Given a 2D board and a list of words from the dictionary, find all words in the board. Each word must be constructed from letters of sequentially adjacent cell, where "adjacent" cells are those horizontally or vertically neighboring. The same letter cell may not be used more than once in a word. Example: Input: ...
34.020548
209
0.45762
ff0e2fed88d930bdca21c011607e1a49ee9b92b8
2,275
py
Python
ekahau_mist_csv.py
Mist-Automation-Programmability/Ekahau-Mist-CSV-Export
481895e8550176a9961c4354076d69d336f87592
[ "MIT" ]
null
null
null
ekahau_mist_csv.py
Mist-Automation-Programmability/Ekahau-Mist-CSV-Export
481895e8550176a9961c4354076d69d336f87592
[ "MIT" ]
null
null
null
ekahau_mist_csv.py
Mist-Automation-Programmability/Ekahau-Mist-CSV-Export
481895e8550176a9961c4354076d69d336f87592
[ "MIT" ]
null
null
null
from csv import DictReader import json import pprint as pp import sys import argparse import logging import zipfile import csv log = logging.getLogger('onboarder') def extract_esx_data(input_file, output_file): project = {} access_points = {} try: with zipfile.ZipFile(input_file, "r") as z: ...
29.934211
86
0.585934
ff0e95f2ca581cef19f5f36fb23b9cddd96bd966
7,938
py
Python
pavement.py
helq/pytropos
497ed5902e6e4912249ca0a46b477f9bfa6ae80a
[ "MIT" ]
4
2019-10-06T18:01:24.000Z
2020-07-03T05:27:35.000Z
pavement.py
helq/pytropos
497ed5902e6e4912249ca0a46b477f9bfa6ae80a
[ "MIT" ]
5
2021-06-07T15:50:04.000Z
2021-06-07T15:50:06.000Z
pavement.py
helq/pytropos
497ed5902e6e4912249ca0a46b477f9bfa6ae80a
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import print_function import os import subprocess import sys import time from typing import List, Any from paver.easy import options, task, needs, consume_args from paver.setuputils import install_distutils_tasks # Import parameters from the setup file. sys.path.append('.') ...
30.18251
79
0.627614
ff0ea4a40ae3d8ddb1c6006ef2fbf4547769a9fc
3,628
py
Python
mmedit/datasets/sr_glean_dataset.py
Serene99-09/mmediting
be49e33650627ac26fdd065fbbaff66f726e3fde
[ "Apache-2.0" ]
null
null
null
mmedit/datasets/sr_glean_dataset.py
Serene99-09/mmediting
be49e33650627ac26fdd065fbbaff66f726e3fde
[ "Apache-2.0" ]
null
null
null
mmedit/datasets/sr_glean_dataset.py
Serene99-09/mmediting
be49e33650627ac26fdd065fbbaff66f726e3fde
[ "Apache-2.0" ]
null
null
null
import copy import numpy as np import os.path as osp import random from .base_sr_dataset import BaseSRDataset from .registry import DATASETS import pdb @DATASETS.register_module() class SRGLEANDataset(BaseSRDataset): def __init__(self, gpen_lq_folder, gpen_gt_folder, ...
31.547826
141
0.60419
ff0eacb46efdcb79b8a1351c5c8c97dc88e12fa4
126
py
Python
ipyhealth/__init__.py
mereldawu/ipyhealth
0f2135e65ea1a0071a1397c88c22bc301584e51a
[ "MIT" ]
5
2020-06-14T07:34:37.000Z
2021-04-15T12:01:19.000Z
ipyhealth/__init__.py
mereldawu/ipyhealth
0f2135e65ea1a0071a1397c88c22bc301584e51a
[ "MIT" ]
2
2020-06-14T09:47:58.000Z
2020-07-24T21:58:56.000Z
ipyhealth/__init__.py
mereldawu/ipyhealth
0f2135e65ea1a0071a1397c88c22bc301584e51a
[ "MIT" ]
null
null
null
"""Top-level package for ipyhealth.""" __author__ = """Merelda Wu""" __email__ = 'merelda@melio.co.za' __version__ = '0.1.0'
21
38
0.674603
ff0ec2739634669756ec71e763cc742469b7242c
3,765
py
Python
kanelbulle/gui/mainwindow.py
bttner/kanelbulle
1246c6d9947609cb6cc151837457d4dbcf70c73a
[ "Apache-2.0" ]
null
null
null
kanelbulle/gui/mainwindow.py
bttner/kanelbulle
1246c6d9947609cb6cc151837457d4dbcf70c73a
[ "Apache-2.0" ]
8
2018-10-25T16:10:54.000Z
2018-10-31T22:36:56.000Z
kanelbulle/gui/mainwindow.py
bttner/kanelbulle
1246c6d9947609cb6cc151837457d4dbcf70c73a
[ "Apache-2.0" ]
null
null
null
"""The main window of kanelbulle.""" from PyQt5.QtGui import QTextCursor from PyQt5.QtWidgets import (QAction, QMainWindow, QStatusBar, QTabWidget, QVBoxLayout, QWidget) from kanelbulle.misc.socket import Server from kanelbulle.utils import log class MainWindow(QMainWindow): """The ...
30.609756
74
0.609296
ff0ec4f1c6ec2636de3ff8eb0ede305505283c30
15,186
py
Python
src/trackanimation/animation_backup2.py
diegopso/YAFS
5e9d22bcea836cb3c8caef1d3f721f889536a54e
[ "MIT" ]
1
2020-03-12T13:16:09.000Z
2020-03-12T13:16:09.000Z
src/trackanimation/animation_backup2.py
mikesneider/YAFS
1b805cb0dc5ceb438ab335c347750e1cb1cdd34a
[ "MIT" ]
null
null
null
src/trackanimation/animation_backup2.py
mikesneider/YAFS
1b805cb0dc5ceb438ab335c347750e1cb1cdd34a
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Copyright 2017 Juan José Martín Miralles # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by appli...
35.731765
118
0.562755
ff0f4314151a1592794563ee7df2a95b8ccc71bf
850
py
Python
tests/test_deprecation.py
ghettorce/pyspnego
5376adb1b3fb7cfccd00be2317e85b7150f177a0
[ "MIT" ]
25
2020-05-23T10:17:46.000Z
2022-02-21T16:52:02.000Z
tests/test_deprecation.py
ghettorce/pyspnego
5376adb1b3fb7cfccd00be2317e85b7150f177a0
[ "MIT" ]
33
2020-07-04T00:05:55.000Z
2022-03-15T23:20:29.000Z
tests/test_deprecation.py
ghettorce/pyspnego
5376adb1b3fb7cfccd00be2317e85b7150f177a0
[ "MIT" ]
7
2020-08-27T03:44:46.000Z
2022-01-21T04:50:05.000Z
# -*- coding: utf-8 -*- # Copyright: (c) 2021, Jordan Borean (@jborean93) <jborean93@gmail.com> # MIT License (see LICENSE or https://opensource.org/licenses/MIT) import pytest def test_gss_import_dep(): with pytest.deprecated_call(match="spnego.gss is deprecated and will be removed in a future release"): ...
32.692308
112
0.74
ff0f7dad8d147e4583a5f2a50653084bac6bf499
21,173
py
Python
tensorflow_examples/lite/model_maker/core/task/model_spec.py
Ir1d/examples-1
f812d2c36469823c8784e387f690f43ad9d17683
[ "Apache-2.0" ]
1
2020-06-23T00:51:29.000Z
2020-06-23T00:51:29.000Z
tensorflow_examples/lite/model_maker/core/task/model_spec.py
Ir1d/examples-1
f812d2c36469823c8784e387f690f43ad9d17683
[ "Apache-2.0" ]
null
null
null
tensorflow_examples/lite/model_maker/core/task/model_spec.py
Ir1d/examples-1
f812d2c36469823c8784e387f690f43ad9d17683
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 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...
35.465662
120
0.708024
ff0faba6456990df9e91ac7cce887992f55040e9
4,752
py
Python
ginga/misc/plugins/Colorbar.py
Cadair/ginga
5afdd8824f27c7ae7d8d82b5013b0ff0068bd8b8
[ "BSD-3-Clause" ]
null
null
null
ginga/misc/plugins/Colorbar.py
Cadair/ginga
5afdd8824f27c7ae7d8d82b5013b0ff0068bd8b8
[ "BSD-3-Clause" ]
null
null
null
ginga/misc/plugins/Colorbar.py
Cadair/ginga
5afdd8824f27c7ae7d8d82b5013b0ff0068bd8b8
[ "BSD-3-Clause" ]
null
null
null
# # Colorbar.py -- Color bar plugin for Ginga viewer # # Eric Jeschke (eric@naoj.org) # # Copyright (c) Eric R. Jeschke. All rights reserved. # This is open-source software licensed under a BSD license. # Please see the file LICENSE.txt for details. # from ginga import GingaPlugin from ginga.misc import Bunch from gin...
32.547945
85
0.616162
ff0fba5c4ca7e7087a9015136781e7fcbea4d750
6,605
py
Python
forest/decider/regex_decider.py
Marghrid/Forest
2f1730fd7cb1e3579fcce222c67b91c5bb1aa5f4
[ "Apache-2.0" ]
7
2020-06-24T12:14:40.000Z
2022-01-19T17:01:02.000Z
forest/decider/regex_decider.py
Marghrid/Forest
2f1730fd7cb1e3579fcce222c67b91c5bb1aa5f4
[ "Apache-2.0" ]
null
null
null
forest/decider/regex_decider.py
Marghrid/Forest
2f1730fd7cb1e3579fcce222c67b91c5bb1aa5f4
[ "Apache-2.0" ]
null
null
null
import re from forest.spec import Predicate from forest.spec.expr import * from .example_decider import Example, ExampleDecider from .result import ok, bad from ..dsl import ApplyNode from ..logger import get_logger from ..visitor import Interpreter logger = get_logger('forest') class RegexDecider(ExampleDecider): ...
43.169935
95
0.562453
ff0fe7972ca7eb5958ad34e94691505f9996953d
989
py
Python
sdk/storage/azure-mgmt-storage/azure/mgmt/storage/v2018_11_01/models/management_policy_snap_shot.py
pjquirk/azure-sdk-for-python
cbf02ec4f177b96eae1dbbba87c34c2c93880150
[ "MIT" ]
1
2021-09-07T18:36:04.000Z
2021-09-07T18:36:04.000Z
sdk/storage/azure-mgmt-storage/azure/mgmt/storage/v2018_11_01/models/management_policy_snap_shot.py
pjquirk/azure-sdk-for-python
cbf02ec4f177b96eae1dbbba87c34c2c93880150
[ "MIT" ]
2
2019-10-02T23:37:38.000Z
2020-10-02T01:17:31.000Z
azure-mgmt-storage/azure/mgmt/storage/v2018_11_01/models/management_policy_snap_shot.py
xiafu-msft/azure-sdk-for-python
4d9560cfd519ee60667f3cc2f5295a58c18625db
[ "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 ...
34.103448
76
0.605662
ff1007de68597e5fdd2c3e7d1719d418c011780c
498
py
Python
ex9.7.py
Dikaeinstein/Think_Python
370cb5af25230ff20994206e2d8023fd1d4c2c74
[ "MIT" ]
null
null
null
ex9.7.py
Dikaeinstein/Think_Python
370cb5af25230ff20994206e2d8023fd1d4c2c74
[ "MIT" ]
null
null
null
ex9.7.py
Dikaeinstein/Think_Python
370cb5af25230ff20994206e2d8023fd1d4c2c74
[ "MIT" ]
null
null
null
def is_double_3consec ( word ): ''' is_double_3consec: traverses given word and returns 'True' if it contains three consecutive double letters. Otherwise return 'False'. ''' count = 0 i = 0 while i < len(word)-1: if word[i] == word[i+1]: count += 1 if count =...
23.714286
78
0.504016
ff10af58888fc058f45554323bcaa30fdc5c0e12
543
py
Python
boiler/__init__.py
projectshift/shift-boiler
5f1d236b97fc814ba72897fa8bc76c7518bd1919
[ "MIT" ]
19
2016-08-06T20:06:21.000Z
2020-10-22T08:31:49.000Z
boiler/__init__.py
projectshift/shift-boiler
5f1d236b97fc814ba72897fa8bc76c7518bd1919
[ "MIT" ]
104
2016-07-31T19:45:00.000Z
2021-09-15T08:13:36.000Z
boiler/__init__.py
projectshift/shift-boiler
5f1d236b97fc814ba72897fa8bc76c7518bd1919
[ "MIT" ]
1
2017-12-30T09:07:38.000Z
2017-12-30T09:07:38.000Z
import os def load_dotenvs(): """ Load dotenvs Loads .env and .flaskenv files from project root directory. :return: """ if not os.getenv('DOTENVS_LOADED'): envs = ['.env', '.flaskenv'] for env in envs: path = os.path.join(os.getcwd(), env) if os.path.isf...
18.724138
63
0.587477
ff10d14fc7dd6f91095de09d296672e32cb7048b
10,787
py
Python
monoport/lib/dataset/ppl_dynamic.py
ArshdeepSahni/MonoPort
a67fdc02b4fb45b3cc187aa4ae34053574d0383c
[ "Unlicense" ]
1
2021-01-15T09:42:29.000Z
2021-01-15T09:42:29.000Z
monoport/lib/dataset/ppl_dynamic.py
ArshdeepSahni/MonoPort
a67fdc02b4fb45b3cc187aa4ae34053574d0383c
[ "Unlicense" ]
null
null
null
monoport/lib/dataset/ppl_dynamic.py
ArshdeepSahni/MonoPort
a67fdc02b4fb45b3cc187aa4ae34053574d0383c
[ "Unlicense" ]
null
null
null
import numpy as np import os import glob import torch import random import tqdm import tinyobjloader from .utils import load_image, projection def load_calib(calib_path, render_size=512): calib_data = np.loadtxt(calib_path, dtype=float) extrinsic = calib_data[:4, :4] intrinsic = calib_data[4:8, :4] ...
35.956667
93
0.56531
ff10ebcc04c7a51468db7c0386d6ca0bb1d3d92f
4,355
py
Python
tests/risk/test_risk_cumulative.py
saeedamen/zipline
f30c249e0e95a3d43f54553f5c15e4508accc64e
[ "Apache-2.0" ]
3
2016-05-30T12:34:07.000Z
2017-10-09T18:33:48.000Z
tests/risk/test_risk_cumulative.py
saeedamen/zipline
f30c249e0e95a3d43f54553f5c15e4508accc64e
[ "Apache-2.0" ]
null
null
null
tests/risk/test_risk_cumulative.py
saeedamen/zipline
f30c249e0e95a3d43f54553f5c15e4508accc64e
[ "Apache-2.0" ]
6
2016-05-30T17:05:51.000Z
2021-01-27T09:42:50.000Z
# # Copyright 2014 Quantopian, 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 wr...
36.291667
78
0.616762
ff10f1693e58a308f404f52fbb28417561033541
22,511
py
Python
modules/templates/DRK/customise/cr.py
nursix/DRKCM
09328289ff721c416494398aa751ff99906327cb
[ "MIT" ]
3
2022-01-26T08:07:54.000Z
2022-03-21T21:53:52.000Z
modules/templates/DRK/customise/cr.py
nursix/eden-asp
e49f46cb6488918f8d5a163dcd5a900cd686978c
[ "MIT" ]
null
null
null
modules/templates/DRK/customise/cr.py
nursix/eden-asp
e49f46cb6488918f8d5a163dcd5a900cd686978c
[ "MIT" ]
null
null
null
""" CR module customisations for DRK License: MIT """ from gluon import current, URL, \ A, DIV, H2, H3, H4, P, TABLE, TR, TD, XML, HR from core import IS_ONE_OF # ------------------------------------------------------------------------- def check_in_status(site, person): """ De...
34.846749
101
0.478921
ff1101c3d10849f3e37916993fc0fdd60d5b2c0a
321
py
Python
re_charactor_class_3.py
godontop/python-work
ea22e0df8b0b17605f5a434e556a388d1f75aa47
[ "MIT" ]
null
null
null
re_charactor_class_3.py
godontop/python-work
ea22e0df8b0b17605f5a434e556a388d1f75aa47
[ "MIT" ]
null
null
null
re_charactor_class_3.py
godontop/python-work
ea22e0df8b0b17605f5a434e556a388d1f75aa47
[ "MIT" ]
null
null
null
import re pattern = r"[^A-Z]" # pattern match any charactor other than [A-Z] if re.search(pattern, "this is all quiet"): print("Match 1") if re.search(pattern, "AbCdEfG123"): print("Match 2") # Output: Match 2 # pattern 匹配除了[A-Z]的任意字符 if re.search(pattern, "THISISALLSHOUTING"): print("Match 3")...
18.882353
46
0.647975
ff11296579870f716f68f52387f1afd3f674ba25
853
py
Python
NavPython/IronPython/Tutorial/debugvbx.py
jstammers/EDMSuite
2841c0edef32a496855ca41deaa0f710b017ae2f
[ "MIT" ]
2
2020-09-27T09:19:57.000Z
2022-03-05T11:08:26.000Z
NavPython/IronPython/Tutorial/debugvbx.py
jstammers/EDMSuite
2841c0edef32a496855ca41deaa0f710b017ae2f
[ "MIT" ]
null
null
null
NavPython/IronPython/Tutorial/debugvbx.py
jstammers/EDMSuite
2841c0edef32a496855ca41deaa0f710b017ae2f
[ "MIT" ]
1
2020-05-11T12:26:46.000Z
2020-05-11T12:26:46.000Z
##################################################################################### # # Copyright (c) Microsoft Corporation. All rights reserved. # # This source code is subject to terms and conditions of the Apache License, Version 2.0. A # copy of the license can be found in the License.html file at the root of t...
37.086957
97
0.589683
ff115d9845b2fd1f7aaa7e66ee3e768a48354ecc
138
py
Python
src/gluonts/model/prophet/__init__.py
lovvge/gluon-ts
284376138f41968bec0a4cb05b274c8ee259493a
[ "Apache-2.0" ]
2
2019-09-05T05:39:03.000Z
2020-11-08T17:07:04.000Z
src/gluonts/model/prophet/__init__.py
lovvge/gluon-ts
284376138f41968bec0a4cb05b274c8ee259493a
[ "Apache-2.0" ]
null
null
null
src/gluonts/model/prophet/__init__.py
lovvge/gluon-ts
284376138f41968bec0a4cb05b274c8ee259493a
[ "Apache-2.0" ]
null
null
null
# Relative imports from ._predictor import ProphetPredictor, PROPHET_IS_INSTALLED __all__ = ["ProphetPredictor", "PROPHET_IS_INSTALLED"]
27.6
62
0.826087
ff116c50150cb528c83bfa6a9c21140b9827ec56
5,641
py
Python
Src/train_gradients.py
sanjeevmk/GLASS
91c0954eab87d25d4866fea5c338f79fbca4f79e
[ "MIT" ]
2
2022-03-22T17:36:14.000Z
2022-03-27T05:03:39.000Z
Src/train_gradients.py
sanjeevmk/glass
91c0954eab87d25d4866fea5c338f79fbca4f79e
[ "MIT" ]
null
null
null
Src/train_gradients.py
sanjeevmk/glass
91c0954eab87d25d4866fea5c338f79fbca4f79e
[ "MIT" ]
null
null
null
import torch torch.manual_seed(10) torch.cuda.manual_seed_all(10) from torch.autograd import Variable from Utils import Pts from datetime import datetime def trainVAE(training_params,data_classes,network_params,losses,misc_variables,rounds,scale): if rounds==0: epochs = training_params.startepochs else...
47.403361
186
0.648821
ff11a7d7dd53adbc7f5927d853da83714b6d4703
1,579
py
Python
oc4idskit/cli/commands/convert_from_ocds.py
open-contracting/oc4idskit
a864c4716c09dfa2141483d602106c147b211063
[ "BSD-3-Clause" ]
null
null
null
oc4idskit/cli/commands/convert_from_ocds.py
open-contracting/oc4idskit
a864c4716c09dfa2141483d602106c147b211063
[ "BSD-3-Clause" ]
16
2021-05-19T23:39:30.000Z
2022-01-13T20:00:16.000Z
oc4idskit/cli/commands/convert_from_ocds.py
open-contracting/oc4idskit
a864c4716c09dfa2141483d602106c147b211063
[ "BSD-3-Clause" ]
null
null
null
import logging from ocdskit.cli.commands.base import OCDSCommand from ocdskit.combine import _package from oc4idskit import transforms logger = logging.getLogger("oc4idskit") class Command(OCDSCommand): name = "convert-from-ocds" help = """reads individual releases or release packages from standard input, ...
30.960784
88
0.615579
ff11c237c5f00968c23a7ecea9f91538022d9fdd
14,879
py
Python
examples/PILCO/double_cartpole_learn.py
tsetimmy/kusanagi
868b301b6064af7d21f0f716aa4390e402f2e2ec
[ "MIT" ]
22
2018-08-04T04:51:27.000Z
2021-11-03T14:22:16.000Z
examples/PILCO/double_cartpole_learn.py
tsetimmy/kusanagi
868b301b6064af7d21f0f716aa4390e402f2e2ec
[ "MIT" ]
1
2021-11-16T12:41:14.000Z
2021-11-16T12:41:14.000Z
examples/PILCO/double_cartpole_learn.py
tsetimmy/kusanagi
868b301b6064af7d21f0f716aa4390e402f2e2ec
[ "MIT" ]
7
2018-08-04T04:51:29.000Z
2021-07-17T07:26:04.000Z
''' Example of how to use the library for learning using the PILCO learner on the double cartpole task ''' # pylint: disable=C0103 import argparse import dill import os import sys import numpy as np import lasagne import theano from functools import partial from kusanagi import utils from kusanagi.ghost import regress...
37.573232
79
0.645137
ff11ebfa085656c11b9c0fa4bf7789e25c8576a2
11,526
py
Python
wk_client/tests/test_logic.py
TuxedoFish/GFBHack-IWOCA
e3197c1f3c100f830e3d2b08b214f9b1a99260c0
[ "MIT" ]
null
null
null
wk_client/tests/test_logic.py
TuxedoFish/GFBHack-IWOCA
e3197c1f3c100f830e3d2b08b214f9b1a99260c0
[ "MIT" ]
null
null
null
wk_client/tests/test_logic.py
TuxedoFish/GFBHack-IWOCA
e3197c1f3c100f830e3d2b08b214f9b1a99260c0
[ "MIT" ]
null
null
null
from datetime import datetime, timedelta, date from wk_client import db from wk_client.logic import UserAccount, Rate from wk_client.models import Loan, CashFlow from wk_client.tests.conftest import AppTestCase from wk_client.tests.factories import UserFactory, LoanFactory, RepaymentFactory, FundingFactory, \ crea...
41.460432
117
0.630227
ff11f750ff5b437714780f6199a35aec926dff08
6,027
py
Python
nomination/feeds.py
unt-libraries/django-nomination
90e42109f8113e411e51e29485e8d1f1e9848373
[ "BSD-3-Clause" ]
2
2016-12-07T09:09:11.000Z
2018-01-31T13:57:04.000Z
nomination/feeds.py
unt-libraries/django-nomination
90e42109f8113e411e51e29485e8d1f1e9848373
[ "BSD-3-Clause" ]
100
2016-01-21T19:52:57.000Z
2021-06-01T20:23:59.000Z
nomination/feeds.py
unt-libraries/django-nomination
90e42109f8113e411e51e29485e8d1f1e9848373
[ "BSD-3-Clause" ]
null
null
null
from django.urls import reverse from django.shortcuts import get_object_or_404 from django.contrib.syndication.views import Feed, FeedDoesNotExist from nomination.models import Project from django.utils.feedgenerator import Atom1Feed class url_feed(Feed): feed_type = Atom1Feed def get_object(self, request, ...
36.08982
95
0.608761
ff11fc4ceeade2a95c2dcac1110d2ed48ad0dbd6
5,241
py
Python
federated_learning/train.py
SabareeshNikhil/244Bananas
723966e66c9823527a9dc8b8d066fa2bcb1de70c
[ "MIT" ]
1
2019-04-17T02:02:55.000Z
2019-04-17T02:02:55.000Z
federated_learning/train.py
SabareeshNikhil/244Bananas
723966e66c9823527a9dc8b8d066fa2bcb1de70c
[ "MIT" ]
null
null
null
federated_learning/train.py
SabareeshNikhil/244Bananas
723966e66c9823527a9dc8b8d066fa2bcb1de70c
[ "MIT" ]
null
null
null
import torch import time import random import numpy as np from collections import deque from agent_nets import Agents from global_net import GlobalNet from mlagents.envs import UnityEnvironment import sys def convert_action(a): if round(a) == 0: converted_action = np.array([[1,0,0,0]]) # forward elif ...
34.480263
114
0.694142
ff1206b81e3581c303983a470834e94c323414a1
960
py
Python
DASH/DASH/DashBoard/Character.py
changsoooo/kisra-1
dce2132df97d2b20d9019fa3421540895a097183
[ "FTL" ]
null
null
null
DASH/DASH/DashBoard/Character.py
changsoooo/kisra-1
dce2132df97d2b20d9019fa3421540895a097183
[ "FTL" ]
null
null
null
DASH/DASH/DashBoard/Character.py
changsoooo/kisra-1
dce2132df97d2b20d9019fa3421540895a097183
[ "FTL" ]
null
null
null
import pandas as pd import os class Character: def __init__(self, characters): self.options = characters self.file_name = 'profiles_m.pkl' self.scoring = { 1: '안정', 2: '안정추구', 3: '위험중립', 4: '적극투자', 5: '공격투자' } def empt...
25.945946
81
0.476042
ff121f06f5885db072ff7756890b2bb3bfd26ac2
18,533
py
Python
capstone/config/settings/settings_base.py
truthiswill/capstone
61b17611ebee17a5f5e4f64ae4ccaa67ac357478
[ "MIT" ]
null
null
null
capstone/config/settings/settings_base.py
truthiswill/capstone
61b17611ebee17a5f5e4f64ae4ccaa67ac357478
[ "MIT" ]
4
2021-09-02T20:54:31.000Z
2022-02-27T14:04:06.000Z
capstone/config/settings/settings_base.py
whitemike889/capstone
61b17611ebee17a5f5e4f64ae4ccaa67ac357478
[ "MIT" ]
null
null
null
import os # Build paths inside the project like this: os.path.join(BASE_DIR, ...) BASE_DIR = os.path.dirname(os.path.dirname(os.path.dirname(os.path.abspath(__file__)))) SERVICES_DIR = os.path.join(os.path.dirname(BASE_DIR), 'services') ALLOWED_HOSTS = ['localhost', '127.0.0.1', '[::1]', '.test'] ADMINS = [('Casela...
28.165653
158
0.596126
ff122770e6c45c3367ff4db309dd9a479375f006
676
py
Python
0x07-python-test_driven_development/5-text_indentation.py
oluwaseun-ebenezer/holbertonschool-higher_level_programming
e830f969d3ca71abf0a2f6d4f7c64a82337eccd7
[ "MIT" ]
null
null
null
0x07-python-test_driven_development/5-text_indentation.py
oluwaseun-ebenezer/holbertonschool-higher_level_programming
e830f969d3ca71abf0a2f6d4f7c64a82337eccd7
[ "MIT" ]
null
null
null
0x07-python-test_driven_development/5-text_indentation.py
oluwaseun-ebenezer/holbertonschool-higher_level_programming
e830f969d3ca71abf0a2f6d4f7c64a82337eccd7
[ "MIT" ]
null
null
null
#!/usr/bin/python3 """ This is the "5-test_indentation" module. The 5-text_indentation module supplies one function, text_indentation(text). """ def text_indentation(text): """splits a text into lines along "?", ":", "." followed by 2 new lines""" if type(text) is not str: raise TypeError("text must b...
26
78
0.463018
ff12289cc9a3d65b2b0f207bfaa667acc09e9e29
4,734
py
Python
test_full_putmany_cleanup.py
splitter-research/splitter
94e5e3073b4f383ba50397168ddb8bcd5fc48da4
[ "MIT" ]
null
null
null
test_full_putmany_cleanup.py
splitter-research/splitter
94e5e3073b4f383ba50397168ddb8bcd5fc48da4
[ "MIT" ]
null
null
null
test_full_putmany_cleanup.py
splitter-research/splitter
94e5e3073b4f383ba50397168ddb8bcd5fc48da4
[ "MIT" ]
null
null
null
import os import shutil import pandas as pd from splitter.dataflow.agg import count, counts from splitter.full_manager.condition import Condition from splitter.full_manager.full_manager import FullStorageManager from splitter.full_manager.full_video_processing import CropSplitter from splitter.constants import * from ...
39.781513
190
0.640051
ff122c504e6082cb552a9b135de2a2815dc3c045
11,594
py
Python
sakt/iter_env_final.py
scaomath/kaggle-riiid-test
6c99deccc33def7e5d0c982b0a9a19612138e893
[ "MIT" ]
null
null
null
sakt/iter_env_final.py
scaomath/kaggle-riiid-test
6c99deccc33def7e5d0c982b0a9a19612138e893
[ "MIT" ]
null
null
null
sakt/iter_env_final.py
scaomath/kaggle-riiid-test
6c99deccc33def7e5d0c982b0a9a19612138e893
[ "MIT" ]
null
null
null
#%% import sys import psutil import pandas as pd import numpy as np from tqdm import tqdm import time from sklearn.metrics import roc_auc_score from sklearn.model_selection import train_test_split import pickle import torch import torch.nn as nn from torch import optim from torch.autograd import Variable from torch.uti...
37.765472
105
0.612127
ff122f5321bd059d7306373d2ec912c978a45e7c
2,856
py
Python
plugins/maya/publish/validate_look_no_initSG.py
davidlatwe/reveries-config
4a282dd64a32a9b87bd1a070759b6425ff785d68
[ "MIT" ]
3
2020-04-01T10:51:17.000Z
2021-08-05T18:35:23.000Z
plugins/maya/publish/validate_look_no_initSG.py
davidlatwe/reveries-config
4a282dd64a32a9b87bd1a070759b6425ff785d68
[ "MIT" ]
null
null
null
plugins/maya/publish/validate_look_no_initSG.py
davidlatwe/reveries-config
4a282dd64a32a9b87bd1a070759b6425ff785d68
[ "MIT" ]
1
2020-07-05T12:06:30.000Z
2020-07-05T12:06:30.000Z
import pyblish.api from reveries import plugins class Disconnect(plugins.RepairInstanceAction): label = "Disconnect default shaders" DEFAULT_SHADERS = ( "initialShadingGroup", "initialParticleSE", ) class ValidateLookNoInitSG(pyblish.api.InstancePlugin): """LookDev should not be using default sh...
30.063158
74
0.5007
ff123f7ecb00fa42378008a5364d9310ce3aa8c3
5,404
py
Python
jang_inverse_example.py
samxu0823/anfis-pytorch
b4ec3f0e8259963800e9e0a2904a580d1e56cc1c
[ "MIT" ]
null
null
null
jang_inverse_example.py
samxu0823/anfis-pytorch
b4ec3f0e8259963800e9e0a2904a580d1e56cc1c
[ "MIT" ]
null
null
null
jang_inverse_example.py
samxu0823/anfis-pytorch
b4ec3f0e8259963800e9e0a2904a580d1e56cc1c
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- ''' ANFIS in torch: Control examples from Jang's book, chapter 17 Section 17.4.2: Inverse control, case study This is supposed to represent a 'plant' whose state is a value (y), and whose physical model is given by an equation (see y_next below). The fu...
32.554217
79
0.626203
ff124e3a379de235ded70415f03fab2201de4874
3,409
py
Python
dj_hetmech_app/models.py
dhimmel/hetmech-backend
28d9626d75c5fa78b03ae0cb18b32f90bcf1fe8f
[ "BSD-3-Clause" ]
4
2020-01-24T16:11:10.000Z
2020-11-19T20:40:53.000Z
dj_hetmech_app/models.py
dhimmel/hetmech-backend
28d9626d75c5fa78b03ae0cb18b32f90bcf1fe8f
[ "BSD-3-Clause" ]
57
2018-10-30T18:29:14.000Z
2019-11-04T15:19:51.000Z
dj_hetmech_app/models.py
dhimmel/hetmech-backend
28d9626d75c5fa78b03ae0cb18b32f90bcf1fe8f
[ "BSD-3-Clause" ]
3
2018-10-30T18:07:19.000Z
2019-06-04T14:50:44.000Z
""" Database schema. References: - https://docs.djangoproject.com/en/2.1/ref/models/fields/ - https://docs.djangoproject.com/en/2.1/ref/models/options/ ## Export schematic Run the following script in the environment to generate figures in model-schema: ```shell bash media/models-schema.sh ``` """ from django.cont...
35.14433
103
0.719859
ff125dedf094d5128637aff232bd4fc333a75936
12,720
py
Python
intersight/models/iam_user_preference.py
gumpcraca/intersight-python
780e6703c739f329084beacbbf2ad7a6a2e59b2b
[ "Apache-2.0" ]
null
null
null
intersight/models/iam_user_preference.py
gumpcraca/intersight-python
780e6703c739f329084beacbbf2ad7a6a2e59b2b
[ "Apache-2.0" ]
null
null
null
intersight/models/iam_user_preference.py
gumpcraca/intersight-python
780e6703c739f329084beacbbf2ad7a6a2e59b2b
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 """ Intersight REST API This is Intersight REST API OpenAPI spec version: 1.0.9-255 Generated by: https://github.com/swagger-api/swagger-codegen.git """ from pprint import pformat from six import iteritems import re class IamUserPreference(object): """ NOTE: This cla...
27.772926
226
0.592531
ff129dddb2a67086d9b0cb6bcaa0f5f157911f15
32,558
py
Python
Skimage_numpy/source/scipy/optimize/_differentialevolution.py
Con-Mi/lambda-packs
b23a8464abdd88050b83310e1d0e99c54dac28ab
[ "MIT" ]
5
2017-03-21T13:04:12.000Z
2021-07-28T12:38:02.000Z
Skimage_numpy/source/scipy/optimize/_differentialevolution.py
Con-Mi/lambda-packs
b23a8464abdd88050b83310e1d0e99c54dac28ab
[ "MIT" ]
1
2021-09-11T14:30:32.000Z
2021-09-11T14:30:32.000Z
Skimage_numpy/source/scipy/optimize/_differentialevolution.py
Con-Mi/lambda-packs
b23a8464abdd88050b83310e1d0e99c54dac28ab
[ "MIT" ]
5
2016-05-18T21:47:17.000Z
2021-08-09T11:48:30.000Z
""" differential_evolution: The differential evolution global optimization algorithm Added by Andrew Nelson 2014 """ from __future__ import division, print_function, absolute_import import numpy as np from scipy.optimize import OptimizeResult, minimize from scipy.optimize.optimize import _status_message import numbers ...
41.212658
81
0.607623
ff12aa0cca829e73a6f0939b54fa6cbbb78ba6bc
2,874
py
Python
ambari-server/src/main/resources/stacks/HDP/1.3.2/services/ZOOKEEPER/package/scripts/zookeeper.py
wbear2/ambari
a1891193984da47015cd5483b5b95e040677d7df
[ "Apache-2.0" ]
5
2018-06-03T05:19:40.000Z
2021-04-16T17:10:49.000Z
ambari-server/src/main/resources/stacks/HDP/1.3.2/services/ZOOKEEPER/package/scripts/zookeeper.py
wbear2/ambari
a1891193984da47015cd5483b5b95e040677d7df
[ "Apache-2.0" ]
null
null
null
ambari-server/src/main/resources/stacks/HDP/1.3.2/services/ZOOKEEPER/package/scripts/zookeeper.py
wbear2/ambari
a1891193984da47015cd5483b5b95e040677d7df
[ "Apache-2.0" ]
6
2019-05-07T13:24:39.000Z
2021-02-15T14:12:37.000Z
""" Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the "License"); you may not use this ...
27.371429
93
0.695198
ff12b343037dbfdd0b072fad33076ebd2c5818e8
6,522
py
Python
mover/_numberbatch.py
StefanJMU/SemEval2022_Task_8
751e4a3573892287c6aac24e4b1bf1b538d9f94f
[ "MIT" ]
null
null
null
mover/_numberbatch.py
StefanJMU/SemEval2022_Task_8
751e4a3573892287c6aac24e4b1bf1b538d9f94f
[ "MIT" ]
null
null
null
mover/_numberbatch.py
StefanJMU/SemEval2022_Task_8
751e4a3573892287c6aac24e4b1bf1b538d9f94f
[ "MIT" ]
null
null
null
import psycopg2 import numpy as np numberbatch_config = { 'user': 'postgres', 'password': 'root', 'host': 'localhost', 'port' : 5432, 'database': 'Numberbatch' } frequency_config = { 'user': 'postgres', 'password': 'root', 'host': 'localhost', 'port' : 5432, 'database': 'Frequency' } #Numberbat...
31.057143
130
0.524379
ff12fc2deb68432ac67c5185268e0b2e16d6e56d
639
py
Python
migration/couch/release_7/3.migration_to_create_feed_entry.py
ICT4H/dcs-web
fb0f53fad4401cfac1c1789ff28b9d5bda40c975
[ "Apache-2.0" ]
1
2015-11-02T09:11:12.000Z
2015-11-02T09:11:12.000Z
migration/couch/release_7/3.migration_to_create_feed_entry.py
ICT4H/dcs-web
fb0f53fad4401cfac1c1789ff28b9d5bda40c975
[ "Apache-2.0" ]
null
null
null
migration/couch/release_7/3.migration_to_create_feed_entry.py
ICT4H/dcs-web
fb0f53fad4401cfac1c1789ff28b9d5bda40c975
[ "Apache-2.0" ]
null
null
null
import sys from datawinners.main.couchdb.utils import all_db_names if __name__ == "__main__" and __package__ is None: sys.path.insert(0, ".") import logging from datawinners.feeds.migrate import FeedBuilder from migration.couch.utils import mark_as_completed, migrate def migrate_survey_response_to_feed(db_name)...
26.625
75
0.746479
ff130f8acffc969fe18a80eb28d0241f6efc7b77
3,297
py
Python
mttransformer/data_utils/__init__.py
sicilyg/ganbert-test
5bb14573a2330573ea9c932827ec1b462842a530
[ "Apache-2.0" ]
2
2021-11-02T22:27:33.000Z
2022-03-27T07:54:35.000Z
mttransformer/data_utils/__init__.py
sicilyg/ganbert-test
5bb14573a2330573ea9c932827ec1b462842a530
[ "Apache-2.0" ]
null
null
null
mttransformer/data_utils/__init__.py
sicilyg/ganbert-test
5bb14573a2330573ea9c932827ec1b462842a530
[ "Apache-2.0" ]
3
2022-02-28T19:49:54.000Z
2022-03-25T11:30:31.000Z
import json import numpy as np from data_utils.task_def import TaskType, DataFormat import tasks def load_data(file_path, task_def): data_format = task_def.data_type task_type = task_def.task_type label_dict = task_def.label_vocab if task_type == TaskType.Ranking: assert data_format == DataFor...
41.2125
114
0.579921
ff134638a4c4dc9b639c3fa6e6a94193d608ed93
1,438
py
Python
test/arguments/with_range_check_code/python/VarUInt32RangeCheckTest.py
PeachOS/zserio
ea01f6906c125a6baab7e8ed865eeb08cd46c37c
[ "BSD-3-Clause" ]
2
2019-02-06T17:50:24.000Z
2019-11-20T16:51:34.000Z
test/arguments/with_range_check_code/python/VarUInt32RangeCheckTest.py
PeachOS/zserio
ea01f6906c125a6baab7e8ed865eeb08cd46c37c
[ "BSD-3-Clause" ]
1
2019-11-25T16:25:51.000Z
2019-11-25T18:09:39.000Z
test/arguments/with_range_check_code/python/VarUInt32RangeCheckTest.py
PeachOS/zserio
ea01f6906c125a6baab7e8ed865eeb08cd46c37c
[ "BSD-3-Clause" ]
null
null
null
import unittest import zserio from testutils import getZserioApi class VarUInt32RangeCheckTest(unittest.TestCase): @classmethod def setUpClass(cls): cls.api = getZserioApi(__file__, "with_range_check_code.zs", extraArgs=["-withRangeCheckCode"]).varuint32_range_check ...
39.944444
97
0.762865
ff1355db478ee25d3029aa00752631a35134cd3f
15,886
py
Python
Sklearn_scipy_numpy/source/sklearn/tree/export.py
Con-Mi/lambda-packs
b23a8464abdd88050b83310e1d0e99c54dac28ab
[ "MIT" ]
4
2018-01-21T21:18:35.000Z
2022-03-23T21:57:56.000Z
Sklearn_scipy_numpy/source/sklearn/tree/export.py
Con-Mi/lambda-packs
b23a8464abdd88050b83310e1d0e99c54dac28ab
[ "MIT" ]
null
null
null
Sklearn_scipy_numpy/source/sklearn/tree/export.py
Con-Mi/lambda-packs
b23a8464abdd88050b83310e1d0e99c54dac28ab
[ "MIT" ]
null
null
null
""" This module defines export functions for decision trees. """ # Authors: Gilles Louppe <g.louppe@gmail.com> # Peter Prettenhofer <peter.prettenhofer@gmail.com> # Brian Holt <bdholt1@gmail.com> # Noel Dawe <noel@dawe.me> # Satrajit Gosh <satrajit.ghosh@gmail.com> # Trevor...
38.279518
79
0.530719
ff135be71bf3565b66737d25201726b5bece7127
5,108
py
Python
datasets/dataset_fewshot.py
genggng/Meta-DETR
45f9dcb4d3402b0e308e06537284fe2c8443b3f6
[ "MIT" ]
184
2021-03-23T03:19:48.000Z
2022-03-31T07:42:03.000Z
datasets/dataset_fewshot.py
genggng/Meta-DETR
45f9dcb4d3402b0e308e06537284fe2c8443b3f6
[ "MIT" ]
24
2021-03-31T19:12:27.000Z
2022-03-20T06:04:22.000Z
datasets/dataset_fewshot.py
genggng/Meta-DETR
45f9dcb4d3402b0e308e06537284fe2c8443b3f6
[ "MIT" ]
36
2021-03-26T15:51:06.000Z
2022-03-31T02:15:23.000Z
from pathlib import Path from datasets.dataset import DetectionDataset import datasets.transforms as T from util.misc import get_local_rank, get_local_size def make_transforms(): """ Transforms for query images during the few-shot fine-tuning stage. """ normalize = T.Compose([ T.ToTensor(), ...
41.528455
93
0.541895
ff13684383add06888abbfe0e42239e9acfeb522
1,591
py
Python
visualization/example_and_references/plot_vector_field.py
Asap7772/railrl_evalsawyer
baba8ce634d32a48c7dfe4dc03b123e18e96e0a3
[ "MIT" ]
1
2020-10-23T14:40:09.000Z
2020-10-23T14:40:09.000Z
visualization/example_and_references/plot_vector_field.py
Asap7772/railrl_evalsawyer
baba8ce634d32a48c7dfe4dc03b123e18e96e0a3
[ "MIT" ]
null
null
null
visualization/example_and_references/plot_vector_field.py
Asap7772/railrl_evalsawyer
baba8ce634d32a48c7dfe4dc03b123e18e96e0a3
[ "MIT" ]
1
2021-05-27T20:38:45.000Z
2021-05-27T20:38:45.000Z
""" Drawing Vector Fields https://stackoverflow.com/questions/25342072/computing-and-drawing-vector-fields Adding colorbar to existing axis https://stackoverflow.com/questions/32462881/add-colorbar-to-existing-axis """ import numpy as np import matplotlib.pyplot as plt from mpl_toolkits.axes_grid1 import make_axes_loc...
25.66129
80
0.670647
ff136b38de4247d71741cca652e1b881f3abe7cc
3,666
py
Python
porters/EMail/email_porter.py
lizard1998myx/MultiBot
314e15122ed8cd99e231b5d9bfbd853f1b0b2272
[ "Apache-2.0" ]
3
2021-08-04T08:51:28.000Z
2022-01-13T01:48:10.000Z
porters/EMail/email_porter.py
lizard1998myx/MultiBot
314e15122ed8cd99e231b5d9bfbd853f1b0b2272
[ "Apache-2.0" ]
null
null
null
porters/EMail/email_porter.py
lizard1998myx/MultiBot
314e15122ed8cd99e231b5d9bfbd853f1b0b2272
[ "Apache-2.0" ]
2
2021-08-04T08:52:15.000Z
2022-01-12T14:20:25.000Z
from ...requests import Request from ...responses import * from ...distributor import Distributor from ...server_config import FLASK_PORTS from ...api_tokens import SENDER import smtplib, flask, threading from email.mime.image import MIMEImage from email.mime.multipart import MIMEMultipart from email.mime.text ...
35.25
111
0.56383
ff13c3b412796007d9119f9c1f24b9c8a8b71f2d
1,398
py
Python
alipay/aop/api/domain/RoleId.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/domain/RoleId.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/domain/RoleId.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.constant.ParamConstants import * class RoleId(object): def __init__(self): self._ccs_instance_id = None self._role_id = None @property def ccs_instance_id(self): return self._ccs_instance_id @ccs_...
24.964286
81
0.592275
ff13cfe9d761bd197baab5704c9086d66a50f6ff
3,952
py
Python
benchmark/framework/func_details.py
valory-xyz/agents-aea
8f38efa96041b0156ed1ae328178e395dbabf2fc
[ "Apache-2.0" ]
126
2019-09-07T09:32:44.000Z
2022-03-29T14:28:41.000Z
benchmark/framework/func_details.py
valory-xyz/agents-aea
8f38efa96041b0156ed1ae328178e395dbabf2fc
[ "Apache-2.0" ]
1,814
2019-08-24T10:08:07.000Z
2022-03-31T14:28:36.000Z
benchmark/framework/func_details.py
valory-xyz/agents-aea
8f38efa96041b0156ed1ae328178e395dbabf2fc
[ "Apache-2.0" ]
46
2019-09-03T22:13:58.000Z
2022-03-22T01:25:16.000Z
# -*- coding: utf-8 -*- # ------------------------------------------------------------------------------ # # Copyright 2018-2019 Fetch.AI Limited # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the ...
29.492537
96
0.59919
ff13e514a6cd2fa5b40129d06983c84fced756c9
995
py
Python
day05/solve.py
ipanin/adventOfCode2021
cdf85fa7e7d26d9c37f9626314dd4c0294b96d9b
[ "Apache-2.0" ]
null
null
null
day05/solve.py
ipanin/adventOfCode2021
cdf85fa7e7d26d9c37f9626314dd4c0294b96d9b
[ "Apache-2.0" ]
null
null
null
day05/solve.py
ipanin/adventOfCode2021
cdf85fa7e7d26d9c37f9626314dd4c0294b96d9b
[ "Apache-2.0" ]
null
null
null
# AoC 2021. Day 5. Hydrothermal Venture # My solution. Is not short, but simple/ import util def draw_vec(field, vec, diag): x1,y1,x2,y2 = vec if x1 == x2: for y in util.my_range(y1, y2): f = field.get((x1,y), 0) field[(x1,y)] = f+1 elif y1 == y2: for x in util.my_...
24.268293
69
0.551759
ff143700ccdcaf7fb2a68d464ba84a06d380b27f
1,727
py
Python
Plug-and-play module/attention/Non-local/nl_map_vis/nl_map_vis.py
riciche/SimpleCVReproduction
4075de39f9c61f1359668a413f6a5d98903fcf97
[ "Apache-2.0" ]
1,512
2017-12-07T07:54:10.000Z
2022-03-31T12:20:25.000Z
Plug-and-play module/attention/Non-local/nl_map_vis/nl_map_vis.py
riciche/SimpleCVReproduction
4075de39f9c61f1359668a413f6a5d98903fcf97
[ "Apache-2.0" ]
45
2018-04-12T12:31:34.000Z
2021-11-10T07:17:38.000Z
Plug-and-play module/attention/Non-local/nl_map_vis/nl_map_vis.py
riciche/SimpleCVReproduction
4075de39f9c61f1359668a413f6a5d98903fcf97
[ "Apache-2.0" ]
314
2018-01-07T03:31:08.000Z
2022-03-11T13:31:49.000Z
""" (tips: if the Non-local type you select is **non_local_concatenation** or **non_local_dot_product** (without Softmax operation), you may need to normalize NL_MAP in the visualize code) """ import numpy as np import cv2 import math import os def vis_nl_map(img_path, nl_map_path, vis_size=(56, 56)): dst_dir = n...
31.981481
93
0.665895
ff145e9337804c45dc70c0f0a9c7f4d721da82fb
2,576
py
Python
app/checkout_backend/api/views.py
jcazallasc/lana-python-challenge
134ef30b6dcc7c323c90df8992b194741f071d95
[ "MIT" ]
null
null
null
app/checkout_backend/api/views.py
jcazallasc/lana-python-challenge
134ef30b6dcc7c323c90df8992b194741f071d95
[ "MIT" ]
null
null
null
app/checkout_backend/api/views.py
jcazallasc/lana-python-challenge
134ef30b6dcc7c323c90df8992b194741f071d95
[ "MIT" ]
null
null
null
from django.core.exceptions import ObjectDoesNotExist, ValidationError from rest_framework import status from rest_framework.response import Response from rest_framework.views import APIView from checkout_backend.api.serializers import CheckoutSerializer from checkout_backend.app import app class CreateCartAPIView(A...
28.307692
76
0.626941
ff149f83d84e1ee51dab8cf2d52a849f36bdc49d
24,270
py
Python
src/facenet.py
ZequnZ/face-verification
99154cd27d11604d1b4702579e8c401e7aa5fde4
[ "Apache-2.0" ]
null
null
null
src/facenet.py
ZequnZ/face-verification
99154cd27d11604d1b4702579e8c401e7aa5fde4
[ "Apache-2.0" ]
6
2020-09-26T01:22:06.000Z
2022-02-10T02:15:00.000Z
src/facenet.py
ZequnZ/face-verification
99154cd27d11604d1b4702579e8c401e7aa5fde4
[ "Apache-2.0" ]
null
null
null
"""Functions for building the face recognition network. https://github.com/davidsandberg/facenet/blob/master/src/facenet.py """ # MIT License # # Copyright (c) 2016 David Sandberg # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the ...
34.770774
108
0.634899
ff14ac8288ef709281ceeebb79383abfc33ebe3d
6,054
py
Python
tests/test_publish_skip.py
Abnormally/DjangoChannelsGraphqlWs
f741c20706901fc37f37fe08f6894c5614d2ab7d
[ "MIT" ]
259
2018-06-27T12:33:54.000Z
2022-03-26T23:09:04.000Z
tests/test_publish_skip.py
Abnormally/DjangoChannelsGraphqlWs
f741c20706901fc37f37fe08f6894c5614d2ab7d
[ "MIT" ]
83
2018-06-27T15:04:25.000Z
2022-03-12T19:05:40.000Z
tests/test_publish_skip.py
Abnormally/DjangoChannelsGraphqlWs
f741c20706901fc37f37fe08f6894c5614d2ab7d
[ "MIT" ]
59
2018-07-02T20:29:07.000Z
2022-03-12T16:10:53.000Z
# Copyright (C) DATADVANCE, 2010-2021 # # Permission is hereby granted, free of charge, to any person obtaining # a copy of this software and associated documentation files (the # "Software"), to deal in the Software without restriction, including # without limitation the rights to use, copy, modify, merge, publish, # ...
33.821229
87
0.648992
ff1528b09694e717c6e16f7dc2da8e324a67a59b
16,083
py
Python
src/command_modules/azure-cli-resource/azure/cli/command_modules/resource/_params.py
v-Ajnava/azure-cli
febec631d79bfca151e84267b5b409594bad598e
[ "MIT" ]
null
null
null
src/command_modules/azure-cli-resource/azure/cli/command_modules/resource/_params.py
v-Ajnava/azure-cli
febec631d79bfca151e84267b5b409594bad598e
[ "MIT" ]
3
2021-03-26T00:48:20.000Z
2022-03-29T22:05:39.000Z
src/command_modules/azure-cli-resource/azure/cli/command_modules/resource/_params.py
v-Ajnava/azure-cli
febec631d79bfca151e84267b5b409594bad598e
[ "MIT" ]
null
null
null
# -------------------------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # --------------------------------------------------------------------...
89.849162
371
0.74557
ff152efaeb1694e21258ef5c5896a45f532bcdab
17,127
py
Python
src/functions.py
CSIRO-enviro-informatics/cosmoz-rest-wrapper
ce4c61522b154f8ecfa64b7476b9539088fe04ee
[ "Apache-2.0" ]
null
null
null
src/functions.py
CSIRO-enviro-informatics/cosmoz-rest-wrapper
ce4c61522b154f8ecfa64b7476b9539088fe04ee
[ "Apache-2.0" ]
null
null
null
src/functions.py
CSIRO-enviro-informatics/cosmoz-rest-wrapper
ce4c61522b154f8ecfa64b7476b9539088fe04ee
[ "Apache-2.0" ]
null
null
null
import asyncio import datetime from collections import OrderedDict import bson from influxdb import InfluxDBClient from motor.motor_asyncio import AsyncIOMotorClient as MotorClient import config from util import datetime_to_iso, datetime_from_iso, datetime_to_date_string persistent_clients = { 'influx_client': No...
39.645833
138
0.609622
ff158a9f91544f588978559a98b7efcd40289553
65,066
py
Python
apollon/chain_storage.py
ApollonChain/ApollonCore
09542dbf304fdbc93a33154c695dc11c239abd51
[ "Apache-2.0" ]
2
2020-10-02T20:29:48.000Z
2021-05-08T10:51:48.000Z
apollon/chain_storage.py
ApollonChain/ApollonCore
09542dbf304fdbc93a33154c695dc11c239abd51
[ "Apache-2.0" ]
null
null
null
apollon/chain_storage.py
ApollonChain/ApollonCore
09542dbf304fdbc93a33154c695dc11c239abd51
[ "Apache-2.0" ]
null
null
null
from threading import Lock from os import path import os.path import sqlite3 import hashlib ## ChainStorage Object ## class ChainStorage(object): # Erstellt ein neues ChainStorage Objekt def __init__(self, MasterObject): self.chain_file = None self.chain_loaded = False se...
62.383509
403
0.612593
ff158c9c8bbcda34ae6cfe9ac7c082d20c31f6bf
129
py
Python
messages/admin.py
AminAliH47/PicoStyle
768daccc6f28f08aa848318d633af1a19544e499
[ "Apache-2.0" ]
19
2022-02-16T20:00:08.000Z
2022-03-08T17:38:59.000Z
messages/admin.py
AminAliH47/PicoStyle
768daccc6f28f08aa848318d633af1a19544e499
[ "Apache-2.0" ]
3
2022-02-16T20:59:11.000Z
2022-02-23T20:40:12.000Z
messages/admin.py
AminAliH47/PicoStyle
768daccc6f28f08aa848318d633af1a19544e499
[ "Apache-2.0" ]
null
null
null
from django.contrib import admin from messages import models # Register your models here. admin.site.register(models.Messages)
18.428571
36
0.813953
ff1611556e00fe367e741121043cfde05f0a9d19
1,188
py
Python
main/model/factories/base_factory.py
wodore/wodore-ng
0f5f1fd720a52a36e8bfe0cc588a81bdf43b0ce5
[ "MIT" ]
null
null
null
main/model/factories/base_factory.py
wodore/wodore-ng
0f5f1fd720a52a36e8bfe0cc588a81bdf43b0ce5
[ "MIT" ]
null
null
null
main/model/factories/base_factory.py
wodore/wodore-ng
0f5f1fd720a52a36e8bfe0cc588a81bdf43b0ce5
[ "MIT" ]
null
null
null
# pylint: disable=no-init, old-style-class """Provides implementation of BaseFactory""" from gaendb.factories import NDBFactory from google.appengine.ext import ndb import factory class BaseFactory(NDBFactory): """Base factory for factory_boy classes, for generating fixtures This class should be extended""" ...
36
113
0.69697
ff1630ab5bb489d2c33676fedad125699538fec6
2,291
py
Python
evaluate.py
Chris10M/Lip2Speech
81a57364054c7fbbede7c6de15861e49d53419d0
[ "MIT" ]
3
2022-01-19T22:14:14.000Z
2022-03-23T04:21:57.000Z
evaluate.py
Chris10M/Lip2Speech
81a57364054c7fbbede7c6de15861e49d53419d0
[ "MIT" ]
1
2021-10-05T18:09:59.000Z
2021-10-05T18:09:59.000Z
evaluate.py
Chris10M/Lip2Speech
81a57364054c7fbbede7c6de15861e49d53419d0
[ "MIT" ]
3
2021-10-16T05:40:45.000Z
2022-03-18T06:05:49.000Z
#!/usr/bin/env python3 import torch import os from datasets import MelSpec2Audio from hparams import create_hparams from torch.utils.data import DataLoader from model import model from datasets.lrw import LRW from datasets.grid import GRID from datasets.avspeech import AVSpeech from datasets.wild import WILD from dat...
26.639535
188
0.745089
ff1630fef708778b950388fbe039b793bd44c90e
7,238
bzl
Python
third_party/rules_boost-789a047e61c0292c3b989514f5ca18a9945b0029/boost/boost.bzl
Vertexwahn/FlatlandRT
37d09fde38b25eff5f802200b43628efbd1e3198
[ "Apache-2.0" ]
62
2021-09-21T18:58:02.000Z
2022-03-07T02:17:43.000Z
third_party/rules_boost-789a047e61c0292c3b989514f5ca18a9945b0029/boost/boost.bzl
Vertexwahn/FlatlandRT
37d09fde38b25eff5f802200b43628efbd1e3198
[ "Apache-2.0" ]
null
null
null
third_party/rules_boost-789a047e61c0292c3b989514f5ca18a9945b0029/boost/boost.bzl
Vertexwahn/FlatlandRT
37d09fde38b25eff5f802200b43628efbd1e3198
[ "Apache-2.0" ]
null
null
null
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive") load("@bazel_tools//tools/build_defs/repo:utils.bzl", "maybe") hdrs_patterns = [ "boost/%s.h", "boost/%s_fwd.h", "boost/%s.hpp", "boost/%s_fwd.hpp", "boost/%s/**/*.hpp", "boost/%s/**/*.ipp", "boost/%s/**/*.h", "libs/%s...
31.606987
163
0.602791
ff163b912f9846fc575016904d08428a0ce6c174
6,457
py
Python
NightlyTests/tensorflow/test_quantize_resnet50_keras.py
lipovsek/aimet
236fb02cc6c45e65c067030416c49a09ace82045
[ "BSD-3-Clause" ]
null
null
null
NightlyTests/tensorflow/test_quantize_resnet50_keras.py
lipovsek/aimet
236fb02cc6c45e65c067030416c49a09ace82045
[ "BSD-3-Clause" ]
null
null
null
NightlyTests/tensorflow/test_quantize_resnet50_keras.py
lipovsek/aimet
236fb02cc6c45e65c067030416c49a09ace82045
[ "BSD-3-Clause" ]
null
null
null
# ============================================================================= # @@-COPYRIGHT-START-@@ # # Copyright (c) 2022, Qualcomm Innovation Center, Inc. All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following condi...
53.808333
118
0.702648
ff16465aa9399ea3452c25791d4430510ef2254f
105
py
Python
ac_flask/hipchat/db.py
olivaq/ac-flask-hipchat
ce820c29ea76f5d184aa71018dd6b3246e127ac4
[ "Apache-2.0" ]
null
null
null
ac_flask/hipchat/db.py
olivaq/ac-flask-hipchat
ce820c29ea76f5d184aa71018dd6b3246e127ac4
[ "Apache-2.0" ]
null
null
null
ac_flask/hipchat/db.py
olivaq/ac-flask-hipchat
ce820c29ea76f5d184aa71018dd6b3246e127ac4
[ "Apache-2.0" ]
null
null
null
from flask_sqlalchemy import SQLAlchemy from flask_cache import Cache db = SQLAlchemy() cache = Cache()
17.5
39
0.8
ff1648d487406107925bb6239905c4159292f1a1
565
py
Python
util/security/crypto.py
jakedt/quay
424c1a19d744be444ed27aa1718fd74af311d863
[ "Apache-2.0" ]
1
2020-10-16T19:30:41.000Z
2020-10-16T19:30:41.000Z
util/security/crypto.py
jakedt/quay
424c1a19d744be444ed27aa1718fd74af311d863
[ "Apache-2.0" ]
15
2020-06-18T15:32:06.000Z
2022-03-03T23:06:24.000Z
util/security/crypto.py
jakedt/quay
424c1a19d744be444ed27aa1718fd74af311d863
[ "Apache-2.0" ]
null
null
null
import base64 from cryptography.fernet import Fernet, InvalidToken def encrypt_string(string, key): """ Encrypts a string with the specified key. The key must be 32 raw bytes. """ f = Fernet(key) return f.encrypt(string) def decrypt_string(string, key, ttl=None): """ Decrypts an en...
19.482759
56
0.644248
ff165ddcafe53cdf3152efd9ea0f00bb2a034e2f
23,129
py
Python
tests/plugins/test_bump_release.py
ben-alkov/atomic-reactor
be6b626b7d822f77999f245193fefcc00c501ca9
[ "BSD-3-Clause" ]
null
null
null
tests/plugins/test_bump_release.py
ben-alkov/atomic-reactor
be6b626b7d822f77999f245193fefcc00c501ca9
[ "BSD-3-Clause" ]
30
2020-06-05T17:35:36.000Z
2022-03-25T19:21:36.000Z
tests/plugins/test_bump_release.py
ben-alkov/atomic-reactor
be6b626b7d822f77999f245193fefcc00c501ca9
[ "BSD-3-Clause" ]
null
null
null
""" Copyright (c) 2015, 2019 Red Hat, Inc All rights reserved. This software may be modified and distributed under the terms of the BSD license. See the LICENSE file for details. """ import koji import os from atomic_reactor.plugins.pre_bump_release import BumpReleasePlugin from atomic_reactor.plugins.pre_fetch_sour...
38.356551
100
0.557309
ff166d2c15ee19d6c391e43b1681caf065ef07b7
3,711
py
Python
tests/tasks_test.py
m4ta1l/reverse-engineering-neural-networks
a2bcf18cb12f6026eb1f07be93a5b4a3dca1c042
[ "Apache-2.0" ]
2
2020-08-29T17:43:26.000Z
2020-09-29T14:34:28.000Z
tests/tasks_test.py
m4ta1l/reverse-engineering-neural-networks
a2bcf18cb12f6026eb1f07be93a5b4a3dca1c042
[ "Apache-2.0" ]
6
2020-08-29T17:43:39.000Z
2020-10-28T11:05:28.000Z
tests/tasks_test.py
Smirenost/reverse-engineering-neural-networks
a2bcf18cb12f6026eb1f07be93a5b4a3dca1c042
[ "Apache-2.0" ]
null
null
null
# Copyright 2020 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, ...
29.688
75
0.662355
ff167f3e77e746e08fc796910604aa8528dc5b28
6,310
py
Python
plugins/cli/osbuild.py
gicmo/osbuild-koji-plugin
ab147208e9af62cbf2dd79fcba63c90c932cffac
[ "Apache-2.0" ]
2
2020-09-04T12:53:31.000Z
2020-09-04T20:42:33.000Z
plugins/cli/osbuild.py
gicmo/osbuild-koji-plugin
ab147208e9af62cbf2dd79fcba63c90c932cffac
[ "Apache-2.0" ]
null
null
null
plugins/cli/osbuild.py
gicmo/osbuild-koji-plugin
ab147208e9af62cbf2dd79fcba63c90c932cffac
[ "Apache-2.0" ]
null
null
null
"""Koji osbuild integration - koji client plugin This koji plugin provides a new 'osbuild-image' command for the koji command line tool. It uses the 'osbuildImage' XMLRPC endpoint, that is provided by the koji osbuild plugin for the koji hub. """ import json import optparse # pylint: disable=deprecated-module from ...
35.055556
95
0.619176
ff172387a2191dd7c21430867518174cab13f852
5,262
py
Python
rigl/experimental/jax/datasets/dataset_base.py
vishalbelsare/rigl
f18abc7d82ae3acc6736068408a0186c9efa575c
[ "Apache-2.0" ]
null
null
null
rigl/experimental/jax/datasets/dataset_base.py
vishalbelsare/rigl
f18abc7d82ae3acc6736068408a0186c9efa575c
[ "Apache-2.0" ]
1
2022-01-16T15:07:03.000Z
2022-01-16T15:07:03.000Z
rigl/experimental/jax/datasets/dataset_base.py
vishalbelsare/rigl
f18abc7d82ae3acc6736068408a0186c9efa575c
[ "Apache-2.0" ]
null
null
null
# coding=utf-8 # Copyright 2021 RigL Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agree...
30.77193
80
0.6832
ff172c0a51b03044d823d12fc6504bba8441efea
123
py
Python
compass/_version.py
YosefLab/Compass
f8ae5b5e0d85693ae27ee834c77ee732c49e04f8
[ "BSD-3-Clause" ]
38
2020-04-22T06:21:18.000Z
2022-03-25T08:38:05.000Z
compass/_version.py
YosefLab/Compass
f8ae5b5e0d85693ae27ee834c77ee732c49e04f8
[ "BSD-3-Clause" ]
47
2020-06-17T08:03:06.000Z
2022-03-25T19:44:27.000Z
compass/_version.py
YosefLab/Compass
f8ae5b5e0d85693ae27ee834c77ee732c49e04f8
[ "BSD-3-Clause" ]
10
2020-06-20T12:13:37.000Z
2022-03-18T06:22:17.000Z
# Store the version here to be imported by both the # setup.py file and the package's init module __version__ = "0.9.9.9"
24.6
51
0.731707
ff17499c27549b76ebc12932a186cfaa1bafffa0
8,241
py
Python
tests/pre_merge/datasets/test_dataset.py
alexriedel1/anomalib
10db405a8f570dbf7b0f337baa6970a150323d8a
[ "Apache-2.0" ]
null
null
null
tests/pre_merge/datasets/test_dataset.py
alexriedel1/anomalib
10db405a8f570dbf7b0f337baa6970a150323d8a
[ "Apache-2.0" ]
null
null
null
tests/pre_merge/datasets/test_dataset.py
alexriedel1/anomalib
10db405a8f570dbf7b0f337baa6970a150323d8a
[ "Apache-2.0" ]
null
null
null
"""Test Dataset.""" import os import numpy as np import pytest from anomalib.config import update_input_size_config from anomalib.data import ( BTechDataModule, FolderDataModule, MVTecDataModule, get_datamodule, ) from anomalib.pre_processing.transforms import Denormalize, ToNumpy from tests.helpers....
38.152778
106
0.680136
ff17716eadd7f68850f952bc7b6f0d5def0f0184
1,622
py
Python
heartFEM/lcleeHeart/vtk_py/readAbaqusDeformationGradients.py
WeiXuanChan/heartFEM
7f26c71434919c3141fac600f08685e5383e7137
[ "MIT" ]
3
2021-04-13T07:05:20.000Z
2021-10-02T13:41:09.000Z
heartFEM/lcleeHeart/vtk_py/readAbaqusDeformationGradients.py
WeiXuanChan/heartFEM
7f26c71434919c3141fac600f08685e5383e7137
[ "MIT" ]
null
null
null
heartFEM/lcleeHeart/vtk_py/readAbaqusDeformationGradients.py
WeiXuanChan/heartFEM
7f26c71434919c3141fac600f08685e5383e7137
[ "MIT" ]
2
2021-09-06T13:13:41.000Z
2022-03-11T18:59:02.000Z
######################################################################## import numpy import vtk from heartFEM.lcleeHeart.vtk_py.createFloatArray import * ######################################################################## def readAbaqusDeformationGradients(data_file_name, ver...
33.791667
158
0.497534
ff177410188403691f863bb92bba161e0159cffc
991
py
Python
models/stylegan2_wavelet_generator.py
MoustafaMeshry/fbias_gan_residual
798a7935d42b9987039ceddb2e415a499a2e18ce
[ "MIT" ]
null
null
null
models/stylegan2_wavelet_generator.py
MoustafaMeshry/fbias_gan_residual
798a7935d42b9987039ceddb2e415a499a2e18ce
[ "MIT" ]
null
null
null
models/stylegan2_wavelet_generator.py
MoustafaMeshry/fbias_gan_residual
798a7935d42b9987039ceddb2e415a499a2e18ce
[ "MIT" ]
null
null
null
import torch from .stylegan3 import SG2WaveletGenerator as GBase import copy class SG2WaveletGenerator(GBase): def __init__(self, resolution, z_dim, divide_channels_by=1, **kwargs): default_kwargs = { 'channel_base': 32768 // divide_channels_by, 'channel_max': 512 // divide_channel...
35.392857
124
0.635721
ff177a3a295b059661ba955fb0bc91649d3c2e2d
16,138
py
Python
botorch/generation/gen.py
LaudateCorpus1/botorch
9af214fa0423a09b0c422613494351173dd63d6e
[ "MIT" ]
null
null
null
botorch/generation/gen.py
LaudateCorpus1/botorch
9af214fa0423a09b0c422613494351173dd63d6e
[ "MIT" ]
null
null
null
botorch/generation/gen.py
LaudateCorpus1/botorch
9af214fa0423a09b0c422613494351173dd63d6e
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # Copyright (c) Meta Platforms, Inc. and affiliates. # # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. r""" Candidate generation utilities. """ from __future__ import annotations import warnings from typing import Any,...
41.592784
88
0.665014
ff178dcfb2e35932bec80b8ea8780cf4c9acb680
45,811
py
Python
synapse/tests/test_telepath.py
kcreyts/synapse
fe740fd1e0febfa32f8d431b32ab48f8a0cf306e
[ "Apache-2.0" ]
1
2021-02-15T22:07:05.000Z
2021-02-15T22:07:05.000Z
synapse/tests/test_telepath.py
kcreyts/synapse
fe740fd1e0febfa32f8d431b32ab48f8a0cf306e
[ "Apache-2.0" ]
null
null
null
synapse/tests/test_telepath.py
kcreyts/synapse
fe740fd1e0febfa32f8d431b32ab48f8a0cf306e
[ "Apache-2.0" ]
null
null
null
import os import ssl import json import socket import asyncio import logging import threading from unittest import mock logger = logging.getLogger(__name__) import synapse.exc as s_exc import synapse.glob as s_glob import synapse.common as s_common import synapse.daemon as s_daemon import synapse.telepath as s_telep...
34.784358
128
0.528454
ff17e8b5d4b438a66fd960bd4ec714c92e12904d
4,410
py
Python
IMLearn/learners/classifiers/linear_discriminant_analysis.py
barnemesh/IML.HUJI
8c5d5c95551373aae932f84cb698aa312a2d92b4
[ "MIT" ]
null
null
null
IMLearn/learners/classifiers/linear_discriminant_analysis.py
barnemesh/IML.HUJI
8c5d5c95551373aae932f84cb698aa312a2d92b4
[ "MIT" ]
null
null
null
IMLearn/learners/classifiers/linear_discriminant_analysis.py
barnemesh/IML.HUJI
8c5d5c95551373aae932f84cb698aa312a2d92b4
[ "MIT" ]
null
null
null
from typing import NoReturn from ...base import BaseEstimator import numpy as np from numpy.linalg import det, inv class LDA(BaseEstimator): """ Linear Discriminant Analysis (LDA) classifier Attributes ---------- self.classes_ : np.ndarray of shape (n_classes,) The different labels classe...
33.664122
99
0.595692
ff180b86e20b66db775b625cd70300ecd64b01be
83
py
Python
setup.py
geozeke/bcsim
cda4c7b458f434033b001c06bc53bc544d703256
[ "MIT" ]
null
null
null
setup.py
geozeke/bcsim
cda4c7b458f434033b001c06bc53bc544d703256
[ "MIT" ]
6
2021-12-23T15:49:33.000Z
2022-01-21T15:47:28.000Z
setup.py
geozeke/bcsim
cda4c7b458f434033b001c06bc53bc544d703256
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 """Setup script.""" from setuptools import setup setup()
10.375
28
0.686747
ff18548ee4ec64cd2ed3a9ce63055072addb14b7
1,963
py
Python
leetcode/684.RedundantConnection/soln.py
saisankargochhayat/algo_quest
a24f9a22c019ab31d56bd5a7ca5ba790d54ce5dc
[ "Apache-2.0" ]
3
2017-02-15T20:55:04.000Z
2018-09-26T18:48:24.000Z
leetcode/684.RedundantConnection/soln.py
saisankargochhayat/algo_quest
a24f9a22c019ab31d56bd5a7ca5ba790d54ce5dc
[ "Apache-2.0" ]
4
2017-10-07T18:59:20.000Z
2019-10-08T05:43:25.000Z
leetcode/684.RedundantConnection/soln.py
saisankargochhayat/algo_quest
a24f9a22c019ab31d56bd5a7ca5ba790d54ce5dc
[ "Apache-2.0" ]
1
2017-10-08T06:52:21.000Z
2017-10-08T06:52:21.000Z
class UnionFind: def __init__(self, n): self.graph = [i for i in range(n+1)] def find(self, x): while x != self.graph[x]: # path compression self.graph[x] = self.graph[self.graph[x]] x = self.graph[x] return x def union(self, x, y): ...
30.2
92
0.490066
ff189cfa3dc4b8f42f5322578b28e1fa9d6abcf8
1,136
py
Python
src/setup.py
spaceone-dev/plugin-googleoauth2-identity-auth
e30e2032aa68a7f3f70fb8afbd1e39aa30d259f9
[ "Apache-2.0" ]
null
null
null
src/setup.py
spaceone-dev/plugin-googleoauth2-identity-auth
e30e2032aa68a7f3f70fb8afbd1e39aa30d259f9
[ "Apache-2.0" ]
null
null
null
src/setup.py
spaceone-dev/plugin-googleoauth2-identity-auth
e30e2032aa68a7f3f70fb8afbd1e39aa30d259f9
[ "Apache-2.0" ]
1
2021-08-19T02:13:02.000Z
2021-08-19T02:13:02.000Z
# # Copyright 2020 The SpaceONE Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law o...
29.128205
76
0.690141
ff18a71cfc3128004575bee63b2b429cd201f781
4,129
py
Python
0x08-python-more_classes/8-rectangle.py
gogomillan/holbertonschool-higher_level_programming
1549ffc4fdc284271684321ff6edd882a314193a
[ "MIT" ]
null
null
null
0x08-python-more_classes/8-rectangle.py
gogomillan/holbertonschool-higher_level_programming
1549ffc4fdc284271684321ff6edd882a314193a
[ "MIT" ]
null
null
null
0x08-python-more_classes/8-rectangle.py
gogomillan/holbertonschool-higher_level_programming
1549ffc4fdc284271684321ff6edd882a314193a
[ "MIT" ]
null
null
null
#!/usr/bin/python3 """Module for a class Rectangle that defines a rectangle by: (based on 7-rectangle.py) """ class Rectangle: """A class that defines a rectangle """ """Public class attribute ``number_of_instances`` - Initialized to 0 - Incremented during each new instance instantiation - D...
27.898649
79
0.58295
ff18a9b534d54e2642d921d2db3165f21774d5ea
2,366
py
Python
src/emitters/pga_emitter.py
icaros-usc/dqd-rl
83e3da62df37b45c4b8fc549c07f566797b5f685
[ "MIT" ]
6
2022-02-09T05:35:37.000Z
2022-03-12T11:54:59.000Z
src/emitters/pga_emitter.py
icaros-usc/dqd-rl
83e3da62df37b45c4b8fc549c07f566797b5f685
[ "MIT" ]
null
null
null
src/emitters/pga_emitter.py
icaros-usc/dqd-rl
83e3da62df37b45c4b8fc549c07f566797b5f685
[ "MIT" ]
null
null
null
"""Provides the PGAEmitter.""" import logging import gin import numpy as np from ribs.emitters import EmitterBase from src.objectives.gym_control.td3 import TD3 logger = logging.getLogger(__name__) @gin.configurable class PGAEmitter(EmitterBase): """Emitter based on the PG variation from PGA-ME.""" def __...
29.949367
80
0.62426
ff18aa0f1d76ef13c354f8a49b5f61f4c4bd3261
1,129
py
Python
projects/04_loading_saving_data/04_loading_saving_data.py
NJannasch/TechLabs-FlaskIntro
24fadedd42ba2bfddbc40b0f939a47dfcf85867f
[ "MIT" ]
null
null
null
projects/04_loading_saving_data/04_loading_saving_data.py
NJannasch/TechLabs-FlaskIntro
24fadedd42ba2bfddbc40b0f939a47dfcf85867f
[ "MIT" ]
null
null
null
projects/04_loading_saving_data/04_loading_saving_data.py
NJannasch/TechLabs-FlaskIntro
24fadedd42ba2bfddbc40b0f939a47dfcf85867f
[ "MIT" ]
null
null
null
from flask import Flask, jsonify, request import typing from database import load_data, save_data app = Flask(__name__) my_persons: typing.List = [] @app.route('/persons', methods=['GET']) def persons(): """ Get all persons """ return jsonify(my_persons) @app.route('/persons', methods=['POST']) def create_...
24.543478
57
0.651904
ff18b1657370012817f73ba509d3d005adc746ab
567
py
Python
oop/oop_composition.py
adisen99/python_programs
a362661f46021845ec1efa5198521f7e1e0d313e
[ "MIT" ]
null
null
null
oop/oop_composition.py
adisen99/python_programs
a362661f46021845ec1efa5198521f7e1e0d313e
[ "MIT" ]
null
null
null
oop/oop_composition.py
adisen99/python_programs
a362661f46021845ec1efa5198521f7e1e0d313e
[ "MIT" ]
null
null
null
# OOP Composition class Salary: def __init__(self, pay, bonus): self.pay = pay self.bonus = bonus def annual_salary(self): return (self.pay * 12) + self.bonus # Instantiating the salary class in the Employee class so # salary class is the content and Employee class is container class Employee: def __init...
21
61
0.717813
ff18f2801d52253370942b87fe191ab19916b46d
25,453
py
Python
src/sage/combinat/crystals/affine.py
saraedum/sage-renamed
d2da67b14da2ad766a5906425d60d43a3b3e1270
[ "BSL-1.0" ]
3
2016-06-19T14:48:31.000Z
2022-01-28T08:46:01.000Z
src/sage/combinat/crystals/affine.py
rwst/sage
a9d274b9338e6ee24bf35ea8d25875507e51e455
[ "BSL-1.0" ]
null
null
null
src/sage/combinat/crystals/affine.py
rwst/sage
a9d274b9338e6ee24bf35ea8d25875507e51e455
[ "BSL-1.0" ]
7
2021-11-08T10:01:59.000Z
2022-03-03T11:25:52.000Z
r""" Affine Crystals """ #***************************************************************************** # Copyright (C) 2008 Brant Jones <brant at math.ucdavis.edu> # Anne Schilling <anne at math.ucdavis.edu> # # Distributed under the terms of the GNU General Public License (GPL) # ...
33.623514
123
0.552155
ff190c3f5da2566d0fd4f9b2ce7eb12360b3ea86
9,294
py
Python
nn_analysis/utils.py
hchau630/nn-analysis
0fbe7ad7b2b4566b9f88d8f21413a6d405f96bdc
[ "MIT" ]
null
null
null
nn_analysis/utils.py
hchau630/nn-analysis
0fbe7ad7b2b4566b9f88d8f21413a6d405f96bdc
[ "MIT" ]
null
null
null
nn_analysis/utils.py
hchau630/nn-analysis
0fbe7ad7b2b4566b9f88d8f21413a6d405f96bdc
[ "MIT" ]
null
null
null
from functools import wraps import contextlib import random import pathlib import pickle import json import os import sys import signal import numpy as np import torch from sklearn.decomposition import PCA from nn_analysis import exceptions from nn_analysis.constants import ARCH_CONFIGS_PATH, MODEL_CONFIGS_PATH ### ...
36.447059
129
0.626533
ff1939b52a7bd3baf18dbe2daf97651b6104235e
1,900
py
Python
marqeta/response_models/digital_wallet_token_wallet_provider.py
marqeta/marqeta-python
66fa690eb910825c510a391720b0fe717fac0234
[ "MIT" ]
21
2019-04-12T09:02:17.000Z
2022-02-18T11:39:06.000Z
marqeta/response_models/digital_wallet_token_wallet_provider.py
marqeta/marqeta-python
66fa690eb910825c510a391720b0fe717fac0234
[ "MIT" ]
1
2020-07-22T21:27:40.000Z
2020-07-23T17:38:43.000Z
marqeta/response_models/digital_wallet_token_wallet_provider.py
marqeta/marqeta-python
66fa690eb910825c510a391720b0fe717fac0234
[ "MIT" ]
10
2019-05-08T14:20:37.000Z
2021-09-20T18:09:26.000Z
from datetime import datetime, date from marqeta.response_models import datetime_object import json import re class DigitalWalletTokenWalletProvider(object): def __init__(self, json_response): self.json_response = json_response def __str__(self): return json.dumps(self.json_response, default=...
29.230769
130
0.749474
ff194396bfbe92eda5012dd5508d0f4323d33118
448
py
Python
tools/dockerize/webportal/usr/lib/python2.7/site-packages/daoliproxy/api/extensions.py
foruy/openflow-multiopenstack
74140b041ac25ed83898ff3998e8dcbed35572bb
[ "Apache-2.0" ]
1
2019-09-11T11:56:19.000Z
2019-09-11T11:56:19.000Z
tools/dockerize/webportal/usr/lib/python2.7/site-packages/daoliproxy/api/extensions.py
foruy/openflow-multiopenstack
74140b041ac25ed83898ff3998e8dcbed35572bb
[ "Apache-2.0" ]
null
null
null
tools/dockerize/webportal/usr/lib/python2.7/site-packages/daoliproxy/api/extensions.py
foruy/openflow-multiopenstack
74140b041ac25ed83898ff3998e8dcbed35572bb
[ "Apache-2.0" ]
null
null
null
from daoliproxy.i18n import _ from daoliproxy.api.openstack import extensions as base_extensions from daoliproxy.openstack.common import log as logging LOG = logging.getLogger(__name__) class ExtensionManager(base_extensions.ExtensionManager): def __init__(self): LOG.audit(_('Initializing extension manage...
32
66
0.729911
ff1946fec2ba95a9b450340080ace23f92006700
2,736
py
Python
venv/Lib/site-packages/pyrogram/raw/types/channel_admin_log_event_action_exported_invite_edit.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/channel_admin_log_event_action_exported_invite_edit.py
hoangkiet1906/Botcie_ver1
c133b915edde06dac690a7dc6ca160f6792fc4c8
[ "MIT" ]
null
null
null
venv/Lib/site-packages/pyrogram/raw/types/channel_admin_log_event_action_exported_invite_edit.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...
36.48
121
0.664108
ff196008a9e4f545e9499d8b3537ec405221356d
7,753
py
Python
detection/utils.py
gardarjuto/deep-sea-organism-detection
068d418362c32ddb40d694a2dfd659af1905f630
[ "MIT" ]
null
null
null
detection/utils.py
gardarjuto/deep-sea-organism-detection
068d418362c32ddb40d694a2dfd659af1905f630
[ "MIT" ]
null
null
null
detection/utils.py
gardarjuto/deep-sea-organism-detection
068d418362c32ddb40d694a2dfd659af1905f630
[ "MIT" ]
null
null
null
import os import logging import sys import random import cv2 import numpy as np import torch import torch.cuda import torch.distributed as dist from matplotlib import pyplot as plt, patches from matplotlib.colors import SymLogNorm from skimage.util import view_as_windows def initialise_distributed(args): """Init...
37.274038
120
0.597833
ff196e9b35b024f1444c8a051385d5d141e2372b
2,272
py
Python
src/rubrix/sdk/models/text2_text_prediction.py
sakares/rubrix
791ffb29815b5d24f2bbbb0fa422f85f8b30098f
[ "Apache-2.0" ]
null
null
null
src/rubrix/sdk/models/text2_text_prediction.py
sakares/rubrix
791ffb29815b5d24f2bbbb0fa422f85f8b30098f
[ "Apache-2.0" ]
null
null
null
src/rubrix/sdk/models/text2_text_prediction.py
sakares/rubrix
791ffb29815b5d24f2bbbb0fa422f85f8b30098f
[ "Apache-2.0" ]
null
null
null
# coding=utf-8 # Copyright 2021-present, the Recognai S.L. team. # # 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 ...
28.759494
77
0.649208