hexsha
stringlengths
40
40
size
int64
5
2.06M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
248
max_stars_repo_name
stringlengths
5
125
max_stars_repo_head_hexsha
stringlengths
40
78
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
191k
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
max_issues_repo_path
stringlengths
3
248
max_issues_repo_name
stringlengths
5
125
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
67k
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
max_forks_repo_path
stringlengths
3
248
max_forks_repo_name
stringlengths
5
125
max_forks_repo_head_hexsha
stringlengths
40
78
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
105k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
5
2.06M
avg_line_length
float64
1
1.02M
max_line_length
int64
3
1.03M
alphanum_fraction
float64
0
1
count_classes
int64
0
1.6M
score_classes
float64
0
1
count_generators
int64
0
651k
score_generators
float64
0
1
count_decorators
int64
0
990k
score_decorators
float64
0
1
count_async_functions
int64
0
235k
score_async_functions
float64
0
1
count_documentation
int64
0
1.04M
score_documentation
float64
0
1
97d3d479f4d7bb607ee11ef3af9de4bcb2b193c7
12,781
py
Python
tests/helpers/test_file.py
Centaurioun/PyFunceble
59b809f3322118f7824195752c6015220738d4a0
[ "Apache-2.0" ]
null
null
null
tests/helpers/test_file.py
Centaurioun/PyFunceble
59b809f3322118f7824195752c6015220738d4a0
[ "Apache-2.0" ]
null
null
null
tests/helpers/test_file.py
Centaurioun/PyFunceble
59b809f3322118f7824195752c6015220738d4a0
[ "Apache-2.0" ]
null
null
null
""" The tool to check the availability or syntax of domain, IP or URL. :: ██████╗ ██╗ ██╗███████╗██╗ ██╗███╗ ██╗ ██████╗███████╗██████╗ ██╗ ███████╗ ██╔══██╗╚██╗ ██╔╝██╔════╝██║ ██║████╗ ██║██╔════╝██╔════╝██╔══██╗██║ ██╔════╝ ██████╔╝ ╚████╔╝ █████╗ ██║ ██║██╔██╗ ██║██║ █████╗ █...
26.627083
88
0.606838
10,905
0.804026
0
0
0
0
0
0
4,333
0.319472
97d574a37c2dcf1ccbae57ff4f4d838393dd694f
1,938
py
Python
malaya_speech/supervised/unet.py
ishine/malaya-speech
fd34afc7107af1656dff4b3201fa51dda54fde18
[ "MIT" ]
111
2020-08-31T04:58:54.000Z
2022-03-29T15:44:18.000Z
malaya_speech/supervised/unet.py
ishine/malaya-speech
fd34afc7107af1656dff4b3201fa51dda54fde18
[ "MIT" ]
14
2020-12-16T07:27:22.000Z
2022-03-15T17:39:01.000Z
malaya_speech/supervised/unet.py
ishine/malaya-speech
fd34afc7107af1656dff4b3201fa51dda54fde18
[ "MIT" ]
29
2021-02-09T08:57:15.000Z
2022-03-12T14:09:19.000Z
from malaya_speech.utils import ( check_file, load_graph, generate_session, nodes_session, ) from malaya_speech.model.tf import UNET, UNETSTFT, UNET1D def load(model, module, quantized=False, **kwargs): path = check_file( file=model, module=module, keys={'model': 'model.pb...
25.168831
69
0.609391
0
0
0
0
0
0
0
0
140
0.072239
97d6b1b1207de186f313949afee6fd694df16691
4,618
py
Python
scripts/GUI_restart.py
zainamir-98/bioradar
b826ed869a58778a321153dae3c93f17f40d2f7a
[ "MIT" ]
null
null
null
scripts/GUI_restart.py
zainamir-98/bioradar
b826ed869a58778a321153dae3c93f17f40d2f7a
[ "MIT" ]
null
null
null
scripts/GUI_restart.py
zainamir-98/bioradar
b826ed869a58778a321153dae3c93f17f40d2f7a
[ "MIT" ]
null
null
null
# Use this command if numpy import fails: sudo apt-get install python-dev libatlas-base-dev # If this doesn't work, uninstall both numpy and scipy. Thonny will keep an older default version of numpy. # Install an older version of scipy that corresponds to the correct version of numpy. from guizero import App, PushButt...
39.470085
154
0.731919
0
0
0
0
0
0
0
0
1,274
0.275817
97da085bfcfa86877a3a5eae743b983ac785a5f4
1,182
py
Python
pyFileFixity/lib/distance/distance/_lcsubstrings.py
hadi-f90/pyFileFixity
2cb3dd6225a6b062a98fa2d61c4a0a29d8010428
[ "MIT" ]
null
null
null
pyFileFixity/lib/distance/distance/_lcsubstrings.py
hadi-f90/pyFileFixity
2cb3dd6225a6b062a98fa2d61c4a0a29d8010428
[ "MIT" ]
1
2022-01-19T13:46:55.000Z
2022-01-19T13:46:55.000Z
pyFileFixity/lib/distance/distance/_lcsubstrings.py
hadi-f90/pyFileFixity
2cb3dd6225a6b062a98fa2d61c4a0a29d8010428
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from array import array def lcsubstrings(seq1, seq2, positions=False): """Find the longest common substring(s) in the sequences `seq1` and `seq2`. If positions evaluates to `True` only their positions will be returned, together with their length, in a tuple: (length, [(start pos in s...
22.730769
76
0.583756
0
0
0
0
0
0
0
0
488
0.41286
97db509debe2b8503920910c68f09fde1efdca62
6,072
py
Python
colour/models/rgb/transfer_functions/tests/test_panasonic_vlog.py
JGoldstone/colour
6829b363d5f0682bff0f4826995e7ceac189ff28
[ "BSD-3-Clause" ]
null
null
null
colour/models/rgb/transfer_functions/tests/test_panasonic_vlog.py
JGoldstone/colour
6829b363d5f0682bff0f4826995e7ceac189ff28
[ "BSD-3-Clause" ]
null
null
null
colour/models/rgb/transfer_functions/tests/test_panasonic_vlog.py
JGoldstone/colour
6829b363d5f0682bff0f4826995e7ceac189ff28
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- """ Defines the unit tests for the :mod:`colour.models.rgb.transfer_functions.\ panasonic_vlog` module. """ import numpy as np import unittest from colour.models.rgb.transfer_functions import ( log_encoding_VLog, log_decoding_VLog, ) from colour.utilities import domain_range_scale, ign...
31.138462
78
0.640316
5,320
0.876153
0
0
568
0.093544
0
0
1,783
0.293643
97db587e34c2af72ba15568d5a03261d228ebb29
3,546
py
Python
test/IECoreRI/All.py
gcodebackups/cortex-vfx
72fa6c6eb3327fce4faf01361c8fcc2e1e892672
[ "BSD-3-Clause" ]
5
2016-07-26T06:09:28.000Z
2022-03-07T03:58:51.000Z
test/IECoreRI/All.py
turbosun/cortex
4bdc01a692652cd562f3bfa85f3dae99d07c0b15
[ "BSD-3-Clause" ]
null
null
null
test/IECoreRI/All.py
turbosun/cortex
4bdc01a692652cd562f3bfa85f3dae99d07c0b15
[ "BSD-3-Clause" ]
3
2015-03-25T18:45:24.000Z
2020-02-15T15:37:18.000Z
########################################################################## # # Copyright (c) 2007-2013, Image Engine Design Inc. All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are # met: # # * Redis...
36.183673
76
0.758037
0
0
0
0
0
0
0
0
1,857
0.523689
97dd0689130d6bd5ed6a18fd645d0dcff177ddd3
2,164
py
Python
molecool/tests/test_measure.py
pavankum/molecool
0aa4fe5423aa91cb59fb603e3293d89741cb87a6
[ "MIT" ]
null
null
null
molecool/tests/test_measure.py
pavankum/molecool
0aa4fe5423aa91cb59fb603e3293d89741cb87a6
[ "MIT" ]
null
null
null
molecool/tests/test_measure.py
pavankum/molecool
0aa4fe5423aa91cb59fb603e3293d89741cb87a6
[ "MIT" ]
null
null
null
""" Unit tests for measure """ # Import package, test suite, and other packages as needed import numpy as np import molecool import pytest def test_calculate_distance(): """Sample test to check calculate_distance is working """ r1 = np.array([1, 0, 0]) r2 = np.array([3, 0, 0]) expected_dist...
30.914286
129
0.652033
0
0
0
0
428
0.197782
0
0
271
0.125231
97dd106f5157a62375f9741a6b7c0edb0c3a8dee
1,240
py
Python
tests/test_util_matrix.py
PeerHerholz/pyrsa
994007086c59de93d86b982f1fff73fe6a8ea929
[ "MIT" ]
4
2015-08-10T18:34:21.000Z
2018-05-15T20:43:15.000Z
tests/test_util_matrix.py
PeerHerholz/pyrsa
994007086c59de93d86b982f1fff73fe6a8ea929
[ "MIT" ]
null
null
null
tests/test_util_matrix.py
PeerHerholz/pyrsa
994007086c59de93d86b982f1fff73fe6a8ea929
[ "MIT" ]
2
2018-03-26T03:02:07.000Z
2021-11-10T21:09:48.000Z
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ test_util_matrix @author: jdiedrichsen """ import unittest import pyrsa.util as rsu import numpy as np class TestIndicator(unittest.TestCase): def test_indicator(self): a = np.array(range(0, 5)) a = np.concatenate((a, a)) X = rsu.matrix...
24.313725
50
0.592742
1,032
0.832258
0
0
0
0
0
0
102
0.082258
97de7958e0a043ea00870086f0a3a9e86192755c
6,999
py
Python
custom_components/smartthinq_washer/wideq/washer.py
Golab/ha-smartthinq-washer
92e4589a9be143f9b167853e2b5a1607631c1c42
[ "Apache-2.0" ]
1
2020-04-13T14:09:28.000Z
2020-04-13T14:09:28.000Z
custom_components/smartthinq_washer/wideq/washer.py
Golab/ha-smartthinq-washer
92e4589a9be143f9b167853e2b5a1607631c1c42
[ "Apache-2.0" ]
null
null
null
custom_components/smartthinq_washer/wideq/washer.py
Golab/ha-smartthinq-washer
92e4589a9be143f9b167853e2b5a1607631c1c42
[ "Apache-2.0" ]
null
null
null
"""------------------for Washer""" import datetime import enum import time import logging from typing import Optional from .device import ( Device, DeviceStatus, STATE_UNKNOWN, STATE_OPTIONITEM_ON, STATE_OPTIONITEM_OFF, ) from .washer_states import ( STATE_WASHER, STATE_WASHER_ERROR, W...
27.555118
84
0.603658
6,538
0.934133
0
0
4,631
0.661666
0
0
1,120
0.160023
97df4a022eaff541facbf55fa41d937b36722e9a
375
py
Python
year2020/day17/reader.py
Sebaestschjin/advent-of-code
5fd708efa355483fc0ccddf7548b62682662bcc8
[ "MIT" ]
null
null
null
year2020/day17/reader.py
Sebaestschjin/advent-of-code
5fd708efa355483fc0ccddf7548b62682662bcc8
[ "MIT" ]
null
null
null
year2020/day17/reader.py
Sebaestschjin/advent-of-code
5fd708efa355483fc0ccddf7548b62682662bcc8
[ "MIT" ]
null
null
null
from pathlib import Path def read(filename='in'): file_path = Path(__file__).parent / filename with file_path.open('r') as file: return read_lines(file.readlines()) def read_lines(lines): cells = {} for y in range(len(lines)): line = lines[y].strip() for x in range(len(line))...
22.058824
48
0.597333
0
0
0
0
0
0
0
0
7
0.018667
97e1339259b947d5c260266bb5a742c74a8323da
4,644
py
Python
squad/base/argument_parser.py
uwnlp/piqa
e18f2189c93965c94655d5cc943dcecdc2c1ea57
[ "Apache-2.0" ]
89
2018-08-25T07:59:07.000Z
2021-05-04T06:37:27.000Z
squad/base/argument_parser.py
seominjoon/piqa
e18f2189c93965c94655d5cc943dcecdc2c1ea57
[ "Apache-2.0" ]
11
2018-09-28T17:33:27.000Z
2019-11-27T23:34:45.000Z
squad/base/argument_parser.py
uwnlp/piqa
e18f2189c93965c94655d5cc943dcecdc2c1ea57
[ "Apache-2.0" ]
10
2018-09-19T06:48:06.000Z
2020-04-14T20:42:06.000Z
import argparse import os class ArgumentParser(argparse.ArgumentParser): def __init__(self, description='base', **kwargs): super(ArgumentParser, self).__init__(description=description) def add_arguments(self): home = os.path.expanduser('~') self.add_argument('model', type=str) ...
50.478261
120
0.644703
4,615
0.993755
0
0
0
0
0
0
1,143
0.246124
97e32ebe567c88c97e005c959868e8ed6406d1eb
2,210
py
Python
getml/loss_functions.py
srnnkls/getml-python-api
032b2fec19a0e0a519eab480ee61e0d422d63993
[ "MIT" ]
null
null
null
getml/loss_functions.py
srnnkls/getml-python-api
032b2fec19a0e0a519eab480ee61e0d422d63993
[ "MIT" ]
null
null
null
getml/loss_functions.py
srnnkls/getml-python-api
032b2fec19a0e0a519eab480ee61e0d422d63993
[ "MIT" ]
null
null
null
# Copyright 2019 The SQLNet Company GmbH # 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, ...
32.985075
80
0.619005
705
0.319005
0
0
0
0
0
0
1,783
0.806787
97e4ff9556a184829362cc46861ffd16d6689ddb
870
py
Python
transit/helpers.py
moredatarequired/python-stitch-client
222ba24e34614d3acecab41cd78a5c78ab8ea782
[ "Apache-2.0" ]
71
2015-01-03T07:55:33.000Z
2021-10-30T16:52:09.000Z
transit/helpers.py
moredatarequired/python-stitch-client
222ba24e34614d3acecab41cd78a5c78ab8ea782
[ "Apache-2.0" ]
27
2015-01-02T06:10:25.000Z
2022-02-20T21:54:13.000Z
transit/helpers.py
moredatarequired/python-stitch-client
222ba24e34614d3acecab41cd78a5c78ab8ea782
[ "Apache-2.0" ]
20
2015-01-05T04:07:52.000Z
2022-02-20T19:08:15.000Z
## Copyright 2014 Cognitect. 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...
27.1875
75
0.725287
0
0
0
0
0
0
0
0
596
0.685057
97e737d9c2d51a5e35ef3bbd28e5bc15aadb06de
1,779
py
Python
part4/matplotlib/seoul_to_cn_gb_kw.py
tls1403/PythonTest
069f23b25ec655aa199d13aef9c14d2e33366861
[ "MIT" ]
null
null
null
part4/matplotlib/seoul_to_cn_gb_kw.py
tls1403/PythonTest
069f23b25ec655aa199d13aef9c14d2e33366861
[ "MIT" ]
null
null
null
part4/matplotlib/seoul_to_cn_gb_kw.py
tls1403/PythonTest
069f23b25ec655aa199d13aef9c14d2e33366861
[ "MIT" ]
null
null
null
import pandas as pd import matplotlib.pyplot as plt #한글 폰트 오류 제거 from matplotlib import font_manager,rc font_path ="D:/5674-833_4th/part4/malgun.ttf" font_name = font_manager.FontProperties(fname=font_path).get_name() rc('font',family = font_name) df = pd.read_excel('D:/5674-833_4th/part4/시도별 전출입 인구수.xlsx',engine = 'o...
30.672414
90
0.675098
0
0
0
0
0
0
0
0
1,060
0.466755
97e73f20826e580f553c50fa8510c0e35ee9a048
365
py
Python
blsqpy/query.py
BLSQ/blsqpy
52fcbd655780e78eccceb2a61280262194c2416c
[ "MIT" ]
null
null
null
blsqpy/query.py
BLSQ/blsqpy
52fcbd655780e78eccceb2a61280262194c2416c
[ "MIT" ]
7
2018-12-18T10:11:34.000Z
2019-03-27T07:09:38.000Z
blsqpy/query.py
BLSQ/blsqpy
52fcbd655780e78eccceb2a61280262194c2416c
[ "MIT" ]
2
2018-12-12T12:31:40.000Z
2019-02-25T12:34:48.000Z
import os from jinja2 import Environment, FileSystemLoader QUERIES_DIR = os.path.dirname(os.path.abspath(__file__)) def get_query(query_name, params): j2_env = Environment(loader=FileSystemLoader(QUERIES_DIR+"/queries"), trim_blocks=True) return j2_env.get_template(query_name+'.sql')....
36.5
94
0.715068
0
0
0
0
0
0
0
0
32
0.087671
97e7b0008c9dde06dac12b270121649a12a1ff61
8,507
py
Python
SINE.py
EduardoMCF/SINE
061960b65164ae612a5cb63c540eb8a488505073
[ "MIT" ]
null
null
null
SINE.py
EduardoMCF/SINE
061960b65164ae612a5cb63c540eb8a488505073
[ "MIT" ]
null
null
null
SINE.py
EduardoMCF/SINE
061960b65164ae612a5cb63c540eb8a488505073
[ "MIT" ]
null
null
null
import matplotlib.pyplot as plt import pyaudio, wave import numpy as np from collections import OrderedDict as OD from struct import pack from math import fmod from os import system def getNoteAndDuration(chord : str, defaultDuration : float): if ',' in chord: note,duration = chord.strip('()').split(',') ...
48.611429
288
0.611379
0
0
122
0.014341
0
0
0
0
1,582
0.185964
97e7c3ef3fb80b92eda0926518e235c327df3ae0
1,603
py
Python
setup.py
lkylych/lagom
64777be7f09136072a671c444b5b3fbbcb1b2f18
[ "MIT" ]
null
null
null
setup.py
lkylych/lagom
64777be7f09136072a671c444b5b3fbbcb1b2f18
[ "MIT" ]
null
null
null
setup.py
lkylych/lagom
64777be7f09136072a671c444b5b3fbbcb1b2f18
[ "MIT" ]
null
null
null
from setuptools import setup from setuptools import find_packages from lagom.version import __version__ # Read content of README.md with open('README.md', 'r') as f: long_description = f.read() setup(name='lagom', version=__version__, author='Xingdong Zuo', author_email='[email protected]...
37.27907
114
0.5733
0
0
0
0
0
0
0
0
773
0.482221
97e804ef9c7c1c0635aab0477304f63f5daafe96
2,046
py
Python
plugins_inactive/plugin_wikipediasearch.py
ademaro/Irene-Voice-Assistant
34a71892258d993dc227e6653281444f091e86ae
[ "MIT" ]
null
null
null
plugins_inactive/plugin_wikipediasearch.py
ademaro/Irene-Voice-Assistant
34a71892258d993dc227e6653281444f091e86ae
[ "MIT" ]
null
null
null
plugins_inactive/plugin_wikipediasearch.py
ademaro/Irene-Voice-Assistant
34a71892258d993dc227e6653281444f091e86ae
[ "MIT" ]
null
null
null
import os import time import pyautogui # from voiceassmain import play_voice_assistant_speech from vacore import VACore # based on EnjiRouz realization https://github.com/EnjiRouz/Voice-Assistant-App/blob/master/app.py # функция на старте def start(core: VACore): manifest = { "name": "Википедия (поиск)"...
33.540984
118
0.655425
0
0
0
0
0
0
0
0
1,598
0.638434
97e922fd511e37dd6ba6caa81bbded4c80d22dc7
316
py
Python
todo/management/urls.py
Sanguet/todo-challenge
8eabc02081e7ce6b33408558d4a4a39edee3944c
[ "MIT" ]
null
null
null
todo/management/urls.py
Sanguet/todo-challenge
8eabc02081e7ce6b33408558d4a4a39edee3944c
[ "MIT" ]
null
null
null
todo/management/urls.py
Sanguet/todo-challenge
8eabc02081e7ce6b33408558d4a4a39edee3944c
[ "MIT" ]
null
null
null
# Django from django.urls import include, path # Django REST Framework from rest_framework.routers import DefaultRouter # Views from .views import tasks as task_views router = DefaultRouter() router.register(r'tasks', task_views.TaskViewSet, basename='task') urlpatterns = [ path('', include(router.urls)) ]
19.75
66
0.762658
0
0
0
0
0
0
0
0
54
0.170886
97e9830408b6514215e19bea044829eb96f15f7c
7,936
py
Python
dnd5e/items.py
MegophrysNasuta/dnd5e
431c0c219052ddf5c62a500bd14f17fab3574648
[ "MIT" ]
null
null
null
dnd5e/items.py
MegophrysNasuta/dnd5e
431c0c219052ddf5c62a500bd14f17fab3574648
[ "MIT" ]
null
null
null
dnd5e/items.py
MegophrysNasuta/dnd5e
431c0c219052ddf5c62a500bd14f17fab3574648
[ "MIT" ]
null
null
null
import enum from typing import Any, List, Optional, Tuple class ArmorType(enum.Enum): LIGHT = enum.auto() MEDIUM = enum.auto() HEAVY = enum.auto() def __repr__(self): return '%s.%s' % (self.__class__.__name__, self.name) class Armor: def __init__(self, name: str, armor_class: int, ...
33.344538
79
0.606981
7,822
0.985635
0
0
2,717
0.342364
0
0
510
0.064264
97eb5eb44132b5d87929c59ff9f174afa27e84b4
7,094
py
Python
dbd/cli/dbdcli.py
AlexRogalskiy/dbd
ac2c6fb673861321b23fbf2a57d9e39fa5cb5352
[ "BSD-3-Clause" ]
33
2022-01-09T09:32:17.000Z
2022-03-05T18:52:11.000Z
dbd/cli/dbdcli.py
zsvoboda/dbd
ac2c6fb673861321b23fbf2a57d9e39fa5cb5352
[ "BSD-3-Clause" ]
2
2022-02-16T19:14:13.000Z
2022-02-16T19:14:34.000Z
dbd/cli/dbdcli.py
zsvoboda/dbd
ac2c6fb673861321b23fbf2a57d9e39fa5cb5352
[ "BSD-3-Clause" ]
null
null
null
import importlib.metadata import logging import os import shutil from typing import Dict, Any, List import click from sqlalchemy import text from dbd.log.dbd_exception import DbdException from dbd.config.dbd_profile import DbdProfile from dbd.config.dbd_project import DbdProject from dbd.executors.model_executor impo...
34.436893
116
0.623203
1,214
0.171131
0
0
4,102
0.578235
0
0
2,532
0.356921
97eb87e8a632182f8518b1d3afd5e6530ac981a5
9,901
py
Python
bestiary/serializers.py
Itori/swarfarm
7192e2d8bca093b4254023bbec42b6a2b1887547
[ "Apache-2.0" ]
66
2017-09-11T04:46:00.000Z
2021-03-13T00:02:42.000Z
bestiary/serializers.py
Itori/swarfarm
7192e2d8bca093b4254023bbec42b6a2b1887547
[ "Apache-2.0" ]
133
2017-09-24T21:28:59.000Z
2021-04-02T10:35:31.000Z
bestiary/serializers.py
Itori/swarfarm
7192e2d8bca093b4254023bbec42b6a2b1887547
[ "Apache-2.0" ]
28
2017-08-30T19:04:32.000Z
2020-11-16T04:09:00.000Z
from rest_framework import serializers from bestiary import models class GameItemSerializer(serializers.ModelSerializer): category = serializers.SerializerMethodField() class Meta: model = models.GameItem fields = [ 'id', 'com2us_id', 'url', 'n...
31.233438
122
0.620644
9,779
0.987678
0
0
0
0
0
0
2,238
0.226038
97ec6821afa2d1990aea0fcfa7884edc560b6cc4
56,761
py
Python
Code/ConvNetAbel.py
abel-gr/AbelNN
e9f54a6a3844a504ff82e4bae97d43064834e90a
[ "MIT" ]
1
2021-11-05T16:01:15.000Z
2021-11-05T16:01:15.000Z
Code/ConvNetAbel.py
abel-gr/AbelNN
e9f54a6a3844a504ff82e4bae97d43064834e90a
[ "MIT" ]
null
null
null
Code/ConvNetAbel.py
abel-gr/AbelNN
e9f54a6a3844a504ff82e4bae97d43064834e90a
[ "MIT" ]
null
null
null
# Copyright Abel Garcia. All Rights Reserved. # https://github.com/abel-gr/AbelNN import numpy as np import copy as copy import random import matplotlib import matplotlib.pyplot as plt import matplotlib.cm as cm from pylab import text import math class ConvNetAbel: version = 1.2 def __init__(self, hidd...
37.590066
233
0.448847
56,511
0.995596
0
0
0
0
0
0
7,020
0.123676
97ef61709a2ecbbabd5edf5fdc1f79875ed56c5b
1,365
py
Python
trading_ig/config.py
schwankner/ig-markets-api-python-library
7a6add860e0abefcc252da232524e8ad0be86692
[ "BSD-3-Clause" ]
1
2021-03-01T09:51:59.000Z
2021-03-01T09:51:59.000Z
trading_ig/config.py
schwankner/ig-markets-api-python-library
7a6add860e0abefcc252da232524e8ad0be86692
[ "BSD-3-Clause" ]
null
null
null
trading_ig/config.py
schwankner/ig-markets-api-python-library
7a6add860e0abefcc252da232524e8ad0be86692
[ "BSD-3-Clause" ]
1
2022-01-04T21:17:10.000Z
2022-01-04T21:17:10.000Z
#!/usr/bin/env python # -*- coding:utf-8 -*- import os import logging ENV_VAR_ROOT = "IG_SERVICE" CONFIG_FILE_NAME = "trading_ig_config.py" logger = logging.getLogger(__name__) class ConfigEnvVar(object): def __init__(self, env_var_base): self.ENV_VAR_BASE = env_var_base def _env_var(self, key): ...
29.673913
78
0.650549
584
0.427839
0
0
0
0
0
0
387
0.283516
97ef67beb062520b730797c508d9465eec545451
6,434
py
Python
train.py
jmlipman/MedicDeepLabv3Plus
4eb5c6c21765db24502d434d01c0ee9b9fd66b27
[ "MIT" ]
1
2021-11-23T16:41:24.000Z
2021-11-23T16:41:24.000Z
train.py
jmlipman/MedicDeepLabv3Plus
4eb5c6c21765db24502d434d01c0ee9b9fd66b27
[ "MIT" ]
null
null
null
train.py
jmlipman/MedicDeepLabv3Plus
4eb5c6c21765db24502d434d01c0ee9b9fd66b27
[ "MIT" ]
1
2021-09-08T02:02:11.000Z
2021-09-08T02:02:11.000Z
# Example usage: # python train.py --device cuda --epochs 10 --input /home/miguelv/data/in/train/ --output /home/miguelv/data/out/delete/test/25/ import os, time, torch, json import numpy as np import nibabel as nib from lib.utils import * from lib.losses import Loss from torch.utils.data import DataLoader from dateti...
38.526946
164
0.63553
0
0
0
0
0
0
0
0
2,249
0.349549
97efd3b3f7f5f7bf285460221c0433426399a499
2,053
py
Python
src/graph_util.py
oonat/inverse-distance-weighted-trust-based-recommender
3f559f3e7dbc565da373f6297362ddf307b2d0ec
[ "BSD-3-Clause" ]
null
null
null
src/graph_util.py
oonat/inverse-distance-weighted-trust-based-recommender
3f559f3e7dbc565da373f6297362ddf307b2d0ec
[ "BSD-3-Clause" ]
null
null
null
src/graph_util.py
oonat/inverse-distance-weighted-trust-based-recommender
3f559f3e7dbc565da373f6297362ddf307b2d0ec
[ "BSD-3-Clause" ]
null
null
null
import numpy as np from toml_parser import Parser from scipy.sparse.csgraph import dijkstra, csgraph_from_dense from sklearn.metrics.pairwise import nan_euclidean_distances from math import sqrt class Graph(object): def __init__(self, transactions, weighted=True): config = Parser("config.toml").load() self._ma...
26.320513
113
0.754506
1,856
0.904043
0
0
0
0
0
0
107
0.052119
97efd442d5baa89669000d346b5c499ecd9f4c0b
203
py
Python
qtapps/skrf_qtwidgets/analyzers/analyzer_rs_zva.py
mike0164/scikit-rf
0af25754b097ee24089ea7e0eacde426a51df563
[ "BSD-3-Clause" ]
379
2015-01-25T12:19:19.000Z
2022-03-29T14:01:07.000Z
qtapps/skrf_qtwidgets/analyzers/analyzer_rs_zva.py
mike0164/scikit-rf
0af25754b097ee24089ea7e0eacde426a51df563
[ "BSD-3-Clause" ]
456
2015-01-06T19:15:55.000Z
2022-03-31T06:42:57.000Z
qtapps/skrf_qtwidgets/analyzers/analyzer_rs_zva.py
mike0164/scikit-rf
0af25754b097ee24089ea7e0eacde426a51df563
[ "BSD-3-Clause" ]
211
2015-01-06T17:14:06.000Z
2022-03-31T01:36:00.000Z
from skrf.vi.vna import rs_zva class Analyzer(rs_zva.ZVA): DEFAULT_VISA_ADDRESS = "GPIB::16::INSTR" NAME = "Rhode & Schwartz ZVA" NPORTS = 4 NCHANNELS = 32 SCPI_VERSION_TESTED = ''
20.3
44
0.665025
169
0.832512
0
0
0
0
0
0
41
0.20197
97efe95631dbd9f43d8fc44a21511eb903a34116
1,507
py
Python
rules/taxonomic_classification/utils.py
dahak-metagenomics/taco-taxonomic-classification
854cae4f1b2427746a1faa6a0e0aefbfb11c5523
[ "BSD-3-Clause" ]
null
null
null
rules/taxonomic_classification/utils.py
dahak-metagenomics/taco-taxonomic-classification
854cae4f1b2427746a1faa6a0e0aefbfb11c5523
[ "BSD-3-Clause" ]
null
null
null
rules/taxonomic_classification/utils.py
dahak-metagenomics/taco-taxonomic-classification
854cae4f1b2427746a1faa6a0e0aefbfb11c5523
[ "BSD-3-Clause" ]
null
null
null
def container_image_is_external(biocontainers, app): """ Return a boolean: is this container going to be run using an external URL (quay.io/biocontainers), or is it going to use a local, named Docker image? """ d = biocontainers[app] if (('use_local' in d) and (d['use_local'] is True)): ...
33.488889
75
0.606503
0
0
0
0
0
0
0
0
756
0.501659
97f060a2b95bbc614a022bf67e45afe532ebb45d
37,531
py
Python
Contents/Libraries/Shared/guessit/rules/properties/episodes.py
slvxstar/Kinopoisk.bundle
dcb96c870c3a96fcf33b8d13d79d47f0a7cbf5fb
[ "MIT" ]
7
2021-02-11T08:03:00.000Z
2022-01-23T22:33:32.000Z
Contents/Libraries/Shared/guessit/rules/properties/episodes.py
slvxstar/Kinopoisk.bundle
dcb96c870c3a96fcf33b8d13d79d47f0a7cbf5fb
[ "MIT" ]
null
null
null
Contents/Libraries/Shared/guessit/rules/properties/episodes.py
slvxstar/Kinopoisk.bundle
dcb96c870c3a96fcf33b8d13d79d47f0a7cbf5fb
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- """ episode, season, disc, episode_count, season_count and episode_details properties """ import copy from collections import defaultdict from rebulk import Rebulk, RemoveMatch, Rule, AppendMatch, RenameMatch from rebulk.match import Match from rebulk.remodule import re fr...
43.640698
119
0.588154
20,727
0.552263
0
0
1,109
0.029549
0
0
8,688
0.231489
97f09a874f39695917154d611858caf14ea0be1a
76,767
py
Python
cwinpy/heterodyne/heterodyne.py
nigeltrc72/cwinpy
f90cf46e20c4d5abd09dc0540d4694ca6d5d9b42
[ "MIT" ]
5
2021-02-25T13:04:43.000Z
2022-01-15T22:37:33.000Z
cwinpy/heterodyne/heterodyne.py
nigeltrc72/cwinpy
f90cf46e20c4d5abd09dc0540d4694ca6d5d9b42
[ "MIT" ]
4
2021-02-24T12:17:50.000Z
2021-12-09T16:41:33.000Z
cwinpy/heterodyne/heterodyne.py
nigeltrc72/cwinpy
f90cf46e20c4d5abd09dc0540d4694ca6d5d9b42
[ "MIT" ]
1
2021-02-24T11:40:32.000Z
2021-02-24T11:40:32.000Z
""" Run heterodyne pre-processing of gravitational-wave data. """ import ast import configparser import copy import os import shutil import signal import sys import tempfile from argparse import ArgumentParser import cwinpy import numpy as np from bilby_pipe.bilbyargparser import BilbyArgParser from bilby_pipe.job_cr...
40.746815
116
0.524809
39,712
0.517306
0
0
0
0
0
0
28,777
0.374862
97f1c05811bbe3176ddd3d2e0d9d3415c269f3fe
5,787
py
Python
timpani/webserver/webhelpers.py
ollien/Timpani
0d1aac467e0bcbe2d1dadb4e6c025315d6be45cb
[ "MIT" ]
3
2015-10-16T11:26:53.000Z
2016-08-28T19:28:52.000Z
timpani/webserver/webhelpers.py
ollien/timpani
0d1aac467e0bcbe2d1dadb4e6c025315d6be45cb
[ "MIT" ]
22
2015-09-14T23:00:07.000Z
2016-07-22T08:39:39.000Z
timpani/webserver/webhelpers.py
ollien/timpani
0d1aac467e0bcbe2d1dadb4e6c025315d6be45cb
[ "MIT" ]
null
null
null
import flask import functools import bs4 import urllib.parse from .. import auth from .. import themes from .. import settings INVALID_PERMISSIONS_FLASH_MESSAGE = "Sorry, you don't have permission to view that page." def checkForSession(): if "uid" in flask.session: session = auth.validateSession(flask.se...
43.511278
140
0.644375
0
0
0
0
0
0
0
0
1,346
0.23259
97f1ce8901d8660f5836035727b480380b3d1fc2
1,542
py
Python
bot/plugins/keyboard/__init__.py
grahamtito/TelegramFiletoCloud
63ac4a173102ee73615aa5bcf996e545746a1c27
[ "Unlicense" ]
null
null
null
bot/plugins/keyboard/__init__.py
grahamtito/TelegramFiletoCloud
63ac4a173102ee73615aa5bcf996e545746a1c27
[ "Unlicense" ]
null
null
null
bot/plugins/keyboard/__init__.py
grahamtito/TelegramFiletoCloud
63ac4a173102ee73615aa5bcf996e545746a1c27
[ "Unlicense" ]
null
null
null
#!/usr/bin/env python3 # This is bot coded by Abhijith N T and used for educational purposes only # https://github.com/AbhijithNT # Copyright ABHIJITH N T # Thank you https://github.com/pyrogram/pyrogram from pyrogram.types import ( InlineKeyboardMarkup, InlineKeyboardButton ) def server_select(): upload...
23.723077
74
0.485084
0
0
0
0
0
0
0
0
389
0.25178
97f1fff136972b7db73eca847e9e3cb4870be823
4,022
py
Python
django_storymarket/forms.py
jacobian/django-storymarket
ec43318ddb9964e67220f6fa9675389b637422ce
[ "BSD-3-Clause" ]
1
2019-01-12T10:05:59.000Z
2019-01-12T10:05:59.000Z
django_storymarket/forms.py
jacobian/django-storymarket
ec43318ddb9964e67220f6fa9675389b637422ce
[ "BSD-3-Clause" ]
null
null
null
django_storymarket/forms.py
jacobian/django-storymarket
ec43318ddb9964e67220f6fa9675389b637422ce
[ "BSD-3-Clause" ]
null
null
null
import logging import operator import storymarket from django import forms from django.core.cache import cache from django.conf import settings from .models import SyncedObject # Timeout for choices cached from Storymarket. 5 minutes. CHOICE_CACHE_TIMEOUT = 600 log = logging.getLogger('django_storymarket') class Sto...
43.717391
96
0.544008
3,701
0.920189
0
0
98
0.024366
0
0
1,061
0.263799
97f201e4bc64fac90fde4b3a05b02b6bc4e482f8
5,773
py
Python
revisum/snippet.py
medariox/revisum
e92afa047ec66ef80bf3f27e6be81b1505f7151e
[ "MIT" ]
null
null
null
revisum/snippet.py
medariox/revisum
e92afa047ec66ef80bf3f27e6be81b1505f7151e
[ "MIT" ]
null
null
null
revisum/snippet.py
medariox/revisum
e92afa047ec66ef80bf3f27e6be81b1505f7151e
[ "MIT" ]
null
null
null
import pickle from collections import OrderedDict from datetime import datetime from .chunk import Chunk from .review import Review from .tokenizer import LineTokenizer from .utils import norm_path from .database.snippet import maybe_init, Snippet as DataSnippet class Snippet(object): def __init__(self, snippet...
29.01005
77
0.580634
5,506
0.95375
960
0.166291
2,761
0.478261
0
0
111
0.019227
97f20ba0590c9d144a0c17683ec4a0a88ea21ea6
46
py
Python
ainnovation_dcim/workflow/__init__.py
ltxwanzl/ainnovation_dcim
b065489e2aa69729c0fd5142cf75d8caa7788b31
[ "Apache-2.0" ]
null
null
null
ainnovation_dcim/workflow/__init__.py
ltxwanzl/ainnovation_dcim
b065489e2aa69729c0fd5142cf75d8caa7788b31
[ "Apache-2.0" ]
null
null
null
ainnovation_dcim/workflow/__init__.py
ltxwanzl/ainnovation_dcim
b065489e2aa69729c0fd5142cf75d8caa7788b31
[ "Apache-2.0" ]
null
null
null
# default_app_config = '.apps.WorkflowConfig'
23
45
0.782609
0
0
0
0
0
0
0
0
45
0.978261
97f2191d807924b9920f7ca4379d337e4f2f9d92
6,361
py
Python
examples/api-samples/inc_samples/sample33.py
groupdocs-legacy-sdk/python
80e5ef5a9a14ac4a7815c6cf933b5b2997381455
[ "Apache-2.0" ]
null
null
null
examples/api-samples/inc_samples/sample33.py
groupdocs-legacy-sdk/python
80e5ef5a9a14ac4a7815c6cf933b5b2997381455
[ "Apache-2.0" ]
null
null
null
examples/api-samples/inc_samples/sample33.py
groupdocs-legacy-sdk/python
80e5ef5a9a14ac4a7815c6cf933b5b2997381455
[ "Apache-2.0" ]
null
null
null
####<i>This sample will show how to convert several HTML documents to PDF and merge them to one document</i> #Import of classes from libraries import base64 import os import shutil import random import time from pyramid.renderers import render_to_response from groupdocs.StorageApi import StorageApi from groupdocs.Asy...
43.868966
111
0.562962
0
0
0
0
0
0
0
0
1,828
0.287376
97f2ebb10db5b5ba4727a38411b745fbfd41201b
2,503
py
Python
silver/api/pagination.py
DocTocToc/silver
f1b4a8871fc4a37c8813d3c010bc70dc59c0a6e5
[ "Apache-2.0" ]
222
2017-01-15T10:30:57.000Z
2022-03-08T20:34:46.000Z
silver/api/pagination.py
DocTocToc/silver
f1b4a8871fc4a37c8813d3c010bc70dc59c0a6e5
[ "Apache-2.0" ]
141
2017-01-11T10:56:49.000Z
2021-10-12T11:51:00.000Z
silver/api/pagination.py
DocTocToc/silver
f1b4a8871fc4a37c8813d3c010bc70dc59c0a6e5
[ "Apache-2.0" ]
76
2017-01-10T13:50:27.000Z
2022-03-25T21:37:00.000Z
# Copyright (c) 2015 Presslabs SRL # # 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 writ...
37.924242
79
0.691171
1,648
0.65841
0
0
0
0
0
0
755
0.301638
97f305739c9556bc7a629078425a1949c86c0361
3,117
py
Python
process_filing_headers.py
jsfenfen/fec2file
541a7dc40eb4ebf51d1c610ee19fdefc030fc7e3
[ "MIT" ]
1
2019-04-24T16:45:07.000Z
2019-04-24T16:45:07.000Z
process_filing_headers.py
jsfenfen/fec2file
541a7dc40eb4ebf51d1c610ee19fdefc030fc7e3
[ "MIT" ]
null
null
null
process_filing_headers.py
jsfenfen/fec2file
541a7dc40eb4ebf51d1c610ee19fdefc030fc7e3
[ "MIT" ]
null
null
null
import os import fecfile import json import csv import sys from settings import RAW_ELECTRONIC_DIR, MASTER_HEADER_ROW, HEADER_DUMP_FILE START_YEAR = 2019 ERROR_HEADERS = ['path', 'error', ] def readfile(filepath, writer): filename = os.path.basename(filepath) filename = filename.replace(".fec", "") f...
33.159574
111
0.62881
0
0
0
0
0
0
0
0
681
0.218479
97f379ae1f9f041646342228c2bcfc62e5962980
331
py
Python
src/python/collector/urls.py
swqqn/django-collector
014e5974c8c6dda38682a7ae7eb1d4f0295679b8
[ "MIT" ]
3
2015-11-05T13:42:15.000Z
2020-01-15T08:00:58.000Z
src/python/collector/urls.py
rentalita/django-collector
8646e514d26820e317b2b59828dc0e506a19c780
[ "MIT" ]
null
null
null
src/python/collector/urls.py
rentalita/django-collector
8646e514d26820e317b2b59828dc0e506a19c780
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from django.conf.urls.defaults import patterns, url urlpatterns = patterns('collector.views', url(r'^blob404/$', 'blob404'), url(r'^deleted/$', 'deleted'), url(r'^$', 'create'), url(r'^(?P<uid>\w+)/$', 'delete'), ) # Local Variables: # indent-tabs-mode: nil # End: # vim: ai et...
20.6875
51
0.586103
0
0
0
0
0
0
0
0
192
0.58006
97f5869664190ff99134b09c60ba7139b7a21527
7,658
py
Python
cdisp/core.py
felippebarbosa/cdisp
d9a612c252495ab017bffccdd7e82bbb555e07dd
[ "BSL-1.0" ]
null
null
null
cdisp/core.py
felippebarbosa/cdisp
d9a612c252495ab017bffccdd7e82bbb555e07dd
[ "BSL-1.0" ]
null
null
null
cdisp/core.py
felippebarbosa/cdisp
d9a612c252495ab017bffccdd7e82bbb555e07dd
[ "BSL-1.0" ]
null
null
null
#-*- coding: utf-8 -*- """ Dispersion calculation functions """ import numpy # module for array manipulation import pandas # module for general data analysis import os # module for general OS manipulation import scipy # module for scientific manipulation and analysis ## def set_transverse_mo...
48.77707
177
0.657482
0
0
0
0
0
0
0
0
2,536
0.331157
97f8adb75c2bfb4df0070282016a4be3b8f42059
1,280
py
Python
appname/predict.py
Lambda-ds-31/build_week_spotify
ba5c77b457f8180f80883c61a5011eb3b38ffc95
[ "MIT" ]
null
null
null
appname/predict.py
Lambda-ds-31/build_week_spotify
ba5c77b457f8180f80883c61a5011eb3b38ffc95
[ "MIT" ]
1
2021-10-20T20:50:04.000Z
2021-10-20T20:50:04.000Z
appname/predict.py
Lambda-ds-31/build_week_spotify
ba5c77b457f8180f80883c61a5011eb3b38ffc95
[ "MIT" ]
1
2022-02-18T13:51:29.000Z
2022-02-18T13:51:29.000Z
import numpy as np from data_prep import data import spotipy from spotipy.oauth2 import SpotifyClientCredentials from os import getenv client_id = getenv('CLIENT_ID') client_id_secret = getenv('CLIENT_ID_SECRET') manager = SpotifyClientCredentials( client_id = client_id, client_secret= client_id_secret) ...
27.826087
71
0.630469
0
0
0
0
0
0
0
0
318
0.248438
97f988da234108443107eea262cb4a176c0459c9
176
py
Python
tests/cpydiff/modules_array_deletion.py
learnforpractice/micropython-cpp
004bc8382f74899e7b876cc29bfa6a9cc976ba10
[ "MIT" ]
692
2016-12-19T23:25:35.000Z
2022-03-31T14:20:48.000Z
tests/cpydiff/modules_array_deletion.py
learnforpractice/micropython-cpp
004bc8382f74899e7b876cc29bfa6a9cc976ba10
[ "MIT" ]
509
2017-03-28T19:37:18.000Z
2022-03-31T20:31:43.000Z
tests/cpydiff/modules_array_deletion.py
learnforpractice/micropython-cpp
004bc8382f74899e7b876cc29bfa6a9cc976ba10
[ "MIT" ]
228
2016-12-19T05:03:30.000Z
2022-03-22T18:13:00.000Z
""" categories: Modules,array description: Array deletion not implemented cause: Unknown workaround: Unknown """ import array a = array.array('b', (1, 2, 3)) del a[1] print(a)
16
43
0.715909
0
0
0
0
0
0
0
0
115
0.653409
97fa4f4535ac67853dbadcc3ffdf0124a1fb7efd
10,001
py
Python
jaysblog/models.py
cRiii/jaysblog
f96ecd82f17750a47147ae3c5e72cf1320be21e5
[ "MIT" ]
5
2019-10-14T01:51:02.000Z
2019-11-07T15:01:14.000Z
jaysblog/models.py
cRiii/jaysblog
f96ecd82f17750a47147ae3c5e72cf1320be21e5
[ "MIT" ]
1
2019-11-07T06:58:26.000Z
2019-11-07T06:58:26.000Z
jaysblog/models.py
cRiii/jaysblog
f96ecd82f17750a47147ae3c5e72cf1320be21e5
[ "MIT" ]
null
null
null
# !/usr/bin/env python3 # -*- coding: utf-8 -*- """ @Time : 2019/9/17 15:07 @Author : Jay Chen @FileName: models.py @GitHub : https://github.com/cRiii """ from datetime import datetime from werkzeug.security import generate_password_hash, check_password_hash from jaysblog.extensions import db from flask_login...
35.97482
107
0.633137
10,450
0.966072
0
0
404
0.037349
0
0
3,054
0.282333
97fa5c7d0604d6e2fc363a4c15650e9b99bf74f3
602
py
Python
112_Path Sum.py
Alvin1994/leetcode-python3-
ba2bde873c925554cc39f2bd13be81967713477d
[ "Apache-2.0" ]
null
null
null
112_Path Sum.py
Alvin1994/leetcode-python3-
ba2bde873c925554cc39f2bd13be81967713477d
[ "Apache-2.0" ]
null
null
null
112_Path Sum.py
Alvin1994/leetcode-python3-
ba2bde873c925554cc39f2bd13be81967713477d
[ "Apache-2.0" ]
null
null
null
# Definition for a binary tree node. # class TreeNode: # def __init__(self, x): # self.val = x # self.left = None # self.right = None class Solution: def hasPathSum(self, root: 'TreeNode', sum: 'int') -> 'bool': if not root: return False def helper(node,val):...
28.666667
68
0.521595
429
0.712625
0
0
0
0
0
0
177
0.29402
97faabe77e17c6e2ce8553519c92f2c578ef3f08
1,509
py
Python
telemanom/_globals.py
tonyzeng2019/telemanom
ee1c9252c6ffc9581995aaf479f0d79cf0a2e914
[ "Apache-2.0" ]
null
null
null
telemanom/_globals.py
tonyzeng2019/telemanom
ee1c9252c6ffc9581995aaf479f0d79cf0a2e914
[ "Apache-2.0" ]
null
null
null
telemanom/_globals.py
tonyzeng2019/telemanom
ee1c9252c6ffc9581995aaf479f0d79cf0a2e914
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # coding: utf-8 import yaml import json import sys import os sys.path.append('../venv/lib/python3.5/site-packages') from elasticsearch import Elasticsearch sys.path.append('../telemanom') class Config: '''Loads parameters from config.yaml into global object''' def __init__(self, path...
27.944444
82
0.561299
1,294
0.857522
0
0
0
0
0
0
210
0.139165
97fbc7c518483b22e3bd3fb0a4313e038f0a4e05
508
py
Python
nanome/_internal/_network/_commands/_serialization/_open_url.py
rramji/nanome-lib
2806598af31cfb4bb6e16366f0b300d2ddcc9c13
[ "MIT" ]
null
null
null
nanome/_internal/_network/_commands/_serialization/_open_url.py
rramji/nanome-lib
2806598af31cfb4bb6e16366f0b300d2ddcc9c13
[ "MIT" ]
null
null
null
nanome/_internal/_network/_commands/_serialization/_open_url.py
rramji/nanome-lib
2806598af31cfb4bb6e16366f0b300d2ddcc9c13
[ "MIT" ]
null
null
null
from nanome._internal._util._serializers import _StringSerializer from nanome._internal._util._serializers import _TypeSerializer class _OpenURL(_TypeSerializer): def __init__(self): self.string = _StringSerializer() def version(self): return 0 def name(self): return "OpenURL" ...
25.4
65
0.720472
375
0.738189
0
0
0
0
0
0
9
0.017717
97fd1501d115786d6770847e5c0def668bf7ecbe
196
py
Python
questoes/questao1.py
raulbarcelos/Lista-de-Exercicios-PO
70933896108b5f9fbdbf541c389ab9354d6ceaf2
[ "MIT" ]
null
null
null
questoes/questao1.py
raulbarcelos/Lista-de-Exercicios-PO
70933896108b5f9fbdbf541c389ab9354d6ceaf2
[ "MIT" ]
null
null
null
questoes/questao1.py
raulbarcelos/Lista-de-Exercicios-PO
70933896108b5f9fbdbf541c389ab9354d6ceaf2
[ "MIT" ]
null
null
null
print("********************************") print("********** QUESTÃO 01 **********") print("********************************") print("******** RAUL BARCELOS *********") print() print("Olá mundo")
24.5
41
0.30102
0
0
0
0
0
0
0
0
149
0.752525
97fdbd42de4debdf4f69ae07026eb489c9f50129
2,772
py
Python
CorpusToolkit/ply_parser/test.py
howl-anderson/tools_for_corpus_of_people_daily
8178d9a62c356f83723d42ced60f8269eed84861
[ "Apache-2.0" ]
243
2018-09-12T01:05:03.000Z
2022-03-30T11:25:59.000Z
CorpusToolkit/ply_parser/test.py
nkkkyyy/tools_for_corpus_of_people_daily
8178d9a62c356f83723d42ced60f8269eed84861
[ "Apache-2.0" ]
3
2018-10-18T10:13:07.000Z
2020-09-10T06:34:40.000Z
CorpusToolkit/ply_parser/test.py
nkkkyyy/tools_for_corpus_of_people_daily
8178d9a62c356f83723d42ced60f8269eed84861
[ "Apache-2.0" ]
56
2018-09-11T12:56:20.000Z
2021-11-09T04:02:00.000Z
import logging from CorpusToolkit.ply_parser import make_parser, lexer logging.basicConfig( level=logging.DEBUG, filename="parselog.txt", filemode="w", format="%(filename)10s:%(lineno)4d:%(message)s" ) log = logging.getLogger() test_data = ( "19980101-01-001-002/m 中共中央/nt 总书记/n 、/wu 国家/n 主席/...
72.947368
1,579
0.533911
0
0
0
0
0
0
0
0
3,224
0.846639
97fdbe6160aa3872cb3be14af73e7667fe00624c
978
py
Python
homeassistant/components/hue/v2/helpers.py
MrDelik/core
93a66cc357b226389967668441000498a10453bb
[ "Apache-2.0" ]
30,023
2016-04-13T10:17:53.000Z
2020-03-02T12:56:31.000Z
homeassistant/components/hue/v2/helpers.py
MrDelik/core
93a66cc357b226389967668441000498a10453bb
[ "Apache-2.0" ]
24,710
2016-04-13T08:27:26.000Z
2020-03-02T12:59:13.000Z
homeassistant/components/hue/v2/helpers.py
MrDelik/core
93a66cc357b226389967668441000498a10453bb
[ "Apache-2.0" ]
11,956
2016-04-13T18:42:31.000Z
2020-03-02T09:32:12.000Z
"""Helper functions for Philips Hue v2.""" from __future__ import annotations def normalize_hue_brightness(brightness: float | None) -> float | None: """Return calculated brightness values.""" if brightness is not None: # Hue uses a range of [0, 100] to control brightness. brightness = float((...
32.6
76
0.682004
0
0
0
0
0
0
0
0
338
0.345603
97fe866f84f325af30eccf7ed7f76920a2b9b84a
186
py
Python
incapsula/__init__.py
zanachka/incapsula-cracker-py3
be1738d0e649e91de75583b694372bc04547fa85
[ "Unlicense" ]
null
null
null
incapsula/__init__.py
zanachka/incapsula-cracker-py3
be1738d0e649e91de75583b694372bc04547fa85
[ "Unlicense" ]
null
null
null
incapsula/__init__.py
zanachka/incapsula-cracker-py3
be1738d0e649e91de75583b694372bc04547fa85
[ "Unlicense" ]
null
null
null
from .errors import IncapBlocked, MaxRetriesExceeded, RecaptchaBlocked from .parsers import ResourceParser, WebsiteResourceParser, IframeResourceParser from .session import IncapSession
46.5
80
0.876344
0
0
0
0
0
0
0
0
0
0
97feddd1f63ca0959b0312d053d59692a6f28e9d
3,646
py
Python
sdk/python/pulumi_civo/get_network.py
dirien/pulumi-civo
f75eb1482bade0d21fb25c9e20e6838791518226
[ "ECL-2.0", "Apache-2.0" ]
3
2020-08-04T12:27:02.000Z
2022-03-14T13:16:43.000Z
sdk/python/pulumi_civo/get_network.py
dirien/pulumi-civo
f75eb1482bade0d21fb25c9e20e6838791518226
[ "ECL-2.0", "Apache-2.0" ]
85
2020-08-17T19:03:57.000Z
2022-03-25T19:17:57.000Z
sdk/python/pulumi_civo/get_network.py
dirien/pulumi-civo
f75eb1482bade0d21fb25c9e20e6838791518226
[ "ECL-2.0", "Apache-2.0" ]
5
2020-08-04T12:27:03.000Z
2022-03-24T00:56:24.000Z
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload from . import ...
31.162393
120
0.620954
2,155
0.591059
242
0.066374
1,836
0.503566
0
0
1,167
0.320077
97ff07ce80697d0e69e6e48e82606287cb5eb7ee
744
py
Python
Hard/longest_valid_parentheses.py
BrynjarGeir/LeetCode
dbd57e645c5398dec538b6466215b61491c8d1d9
[ "MIT" ]
null
null
null
Hard/longest_valid_parentheses.py
BrynjarGeir/LeetCode
dbd57e645c5398dec538b6466215b61491c8d1d9
[ "MIT" ]
null
null
null
Hard/longest_valid_parentheses.py
BrynjarGeir/LeetCode
dbd57e645c5398dec538b6466215b61491c8d1d9
[ "MIT" ]
null
null
null
from collections import deque class Solution: def longestValidParentheses(self, s: str) -> int: if len(s) == 1 or s == '': return 0 opened = deque() for i,p in enumerate(s): if p == '(': opened.append(i) else: if opened: if s[opened...
32.347826
57
0.424731
714
0.959677
0
0
0
0
0
0
8
0.010753
97ff3603368750b9661b92eb04ae9042db5bd4fc
2,358
py
Python
IMFlask/config.py
iml1111/IMFlask
96af28460365c305e92ca2720fe6b015713c578f
[ "MIT" ]
2
2020-09-07T11:33:41.000Z
2020-09-08T14:47:40.000Z
IMFlask/config.py
iml1111/IMFlask
96af28460365c305e92ca2720fe6b015713c578f
[ "MIT" ]
1
2020-09-07T11:29:00.000Z
2022-03-31T10:01:06.000Z
IMFlask/config.py
iml1111/IMFlask
96af28460365c305e92ca2720fe6b015713c578f
[ "MIT" ]
2
2020-10-06T18:25:46.000Z
2021-09-09T16:00:07.000Z
''' Flask Application Config ''' import os from logging.config import dictConfig BASEDIR = os.path.abspath(os.path.dirname(__file__)) class Config: '''공통 Config''' JWT_SECRET_KEY = os.environ.get('FLASK_JWT_SECRET_KEY') # test only TEST_ACCESS_TOKEN = os.environ.get('FLASK_TEST_ACCESS_TOKEN') ADM...
26.2
87
0.54665
2,115
0.876866
0
0
867
0.359453
0
0
855
0.354478
97ff714eac7c0cc920b3005424b8958af7aec6ce
1,066
py
Python
cnn/conv_average_pooling.py
nforesperance/Tensorflow-Keras
12fa74e01c7081b2f5ef899ee9123498ef541483
[ "MIT" ]
1
2021-01-07T11:05:07.000Z
2021-01-07T11:05:07.000Z
cnn/conv_average_pooling.py
nforesperance/Tensorflow-Keras
12fa74e01c7081b2f5ef899ee9123498ef541483
[ "MIT" ]
null
null
null
cnn/conv_average_pooling.py
nforesperance/Tensorflow-Keras
12fa74e01c7081b2f5ef899ee9123498ef541483
[ "MIT" ]
null
null
null
# example of average pooling from numpy import asarray from keras.models import Sequential from keras.layers import Conv2D from keras.layers import AveragePooling2D # define input data data = [[0, 0, 0, 1, 1, 0, 0, 0], [0, 0, 0, 1, 1, 0, 0, 0], [0, 0, 0, 1, 1, 0, 0, 0], [0, 0, 0, 1, 1, 0, 0, 0], [0, 0, 0, 1, 1,...
30.457143
69
0.594747
0
0
0
0
0
0
0
0
223
0.209193
3f000581137f7e8d12b07f946dab58d61d19c246
13,127
py
Python
acquisitions/models.py
18F/acqstackdb
7d939e7deb1cb8749f16fe6b6bc092f5db5c4469
[ "CC0-1.0" ]
2
2016-06-03T16:33:34.000Z
2016-07-22T12:10:31.000Z
acquisitions/models.py
18F/acqstackdb
7d939e7deb1cb8749f16fe6b6bc092f5db5c4469
[ "CC0-1.0" ]
26
2016-06-02T11:21:15.000Z
2016-07-18T14:10:03.000Z
acquisitions/models.py
18F/acqstackdb
7d939e7deb1cb8749f16fe6b6bc092f5db5c4469
[ "CC0-1.0" ]
2
2017-07-14T08:33:32.000Z
2021-02-15T10:16:18.000Z
from django.db import models from django.core.validators import RegexValidator, ValidationError from django.utils.translation import ugettext_lazy as _ from django.contrib.auth.models import User from smart_selects.db_fields import ChainedForeignKey, ChainedManyToManyField from ordered_model.models import OrderedModel ...
37.505714
80
0.63198
12,692
0.966862
0
0
0
0
0
0
5,010
0.381656
3f0006363bb84a90ae81c6bd90ba3b9c73aecdc7
714
py
Python
app/kobo/forms.py
wri/django_kobo
505d52fc0d49d875af068e58ad959b95d1464dd5
[ "MIT" ]
1
2018-12-20T07:59:55.000Z
2018-12-20T07:59:55.000Z
app/kobo/forms.py
wri/django_kobo
505d52fc0d49d875af068e58ad959b95d1464dd5
[ "MIT" ]
9
2018-11-06T01:51:28.000Z
2018-12-21T22:19:42.000Z
app/kobo/forms.py
wri/django_kobo
505d52fc0d49d875af068e58ad959b95d1464dd5
[ "MIT" ]
2
2018-11-21T15:13:32.000Z
2020-02-19T08:39:37.000Z
from django import forms from .models import Connection, KoboUser, KoboData from django.contrib.admin.widgets import FilteredSelectMultiple from django.db.models import Q class ConnectionForm(forms.ModelForm): class Meta: model = Connection exclude = [] widgets = { 'auth_pass':...
31.043478
165
0.644258
537
0.752101
0
0
0
0
0
0
33
0.046218
3f01198a019097c1976dc940001aed540d4f3634
713
py
Python
old/dea/aws/__init__.py
robbibt/odc-tools
e2df2c9ef65dbd5652d97cd88617989b4b724814
[ "Apache-2.0" ]
null
null
null
old/dea/aws/__init__.py
robbibt/odc-tools
e2df2c9ef65dbd5652d97cd88617989b4b724814
[ "Apache-2.0" ]
null
null
null
old/dea/aws/__init__.py
robbibt/odc-tools
e2df2c9ef65dbd5652d97cd88617989b4b724814
[ "Apache-2.0" ]
null
null
null
from odc.aws import ( ec2_metadata, ec2_current_region, botocore_default_region, auto_find_region, make_s3_client, s3_url_parse, s3_fmt_range, s3_ls, s3_ls_dir, s3_find, get_boto_session, get_creds_with_retry, s3_fetch, ) from odc.aws._find import ( s3_file_info,...
16.97619
30
0.647966
0
0
0
0
0
0
0
0
241
0.338008
3f0241d966136442d63f54ae450fa5bbf000c236
883
py
Python
systems/stage.py
will-nickson/starter_system
bce669250fc58c3966c71e84020e078871a79e4f
[ "MIT" ]
null
null
null
systems/stage.py
will-nickson/starter_system
bce669250fc58c3966c71e84020e078871a79e4f
[ "MIT" ]
null
null
null
systems/stage.py
will-nickson/starter_system
bce669250fc58c3966c71e84020e078871a79e4f
[ "MIT" ]
null
null
null
from log.logger import logger class SystemStage(object): """ Default stage object: creates a SystemStage for doing something """ @property def name(self): return "Need to replace name when inheriting" def __repr__(self): return "SystemStage '%s' Try %s.methods()" % ( ...
22.641026
71
0.571914
850
0.962627
0
0
304
0.344281
0
0
221
0.250283
3f02d35a7926f58cae17ffac0f474623fde43a2e
37,840
py
Python
pybind/slxos/v17r_2_00/mpls_state/rsvp/igp_sync/link/lsp/__init__.py
extremenetworks/pybind
44c467e71b2b425be63867aba6e6fa28b2cfe7fb
[ "Apache-2.0" ]
null
null
null
pybind/slxos/v17r_2_00/mpls_state/rsvp/igp_sync/link/lsp/__init__.py
extremenetworks/pybind
44c467e71b2b425be63867aba6e6fa28b2cfe7fb
[ "Apache-2.0" ]
null
null
null
pybind/slxos/v17r_2_00/mpls_state/rsvp/igp_sync/link/lsp/__init__.py
extremenetworks/pybind
44c467e71b2b425be63867aba6e6fa28b2cfe7fb
[ "Apache-2.0" ]
1
2021-11-05T22:15:42.000Z
2021-11-05T22:15:42.000Z
from operator import attrgetter import pyangbind.lib.xpathhelper as xpathhelper from pyangbind.lib.yangtypes import RestrictedPrecisionDecimalType, RestrictedClassType, TypedListType from pyangbind.lib.yangtypes import YANGBool, YANGListType, YANGDynClass, ReferenceType from pyangbind.lib.base import PybindBase from d...
66.737213
754
0.742072
37,434
0.989271
0
0
0
0
0
0
19,551
0.516675
3f042a0420967f88675a79d4f9cf3ecb5cca91b8
1,947
py
Python
vega/trainer/callbacks/horovod.py
zjzh/vega
aa6e7b8c69024262fc483ee06113b4d1bd5156d8
[ "Apache-2.0" ]
null
null
null
vega/trainer/callbacks/horovod.py
zjzh/vega
aa6e7b8c69024262fc483ee06113b4d1bd5156d8
[ "Apache-2.0" ]
null
null
null
vega/trainer/callbacks/horovod.py
zjzh/vega
aa6e7b8c69024262fc483ee06113b4d1bd5156d8
[ "Apache-2.0" ]
null
null
null
# -*- coding:utf-8 -*- # Copyright (C) 2020. Huawei Technologies Co., Ltd. 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...
33.568966
78
0.698511
1,082
0.555727
0
0
1,125
0.577812
0
0
795
0.40832
3f0440a332e725d1be2b9f4d8bf41ca99082b5e6
5,580
py
Python
parse_doc.py
nprapps/idp-georgia
316eba6195b7f410567a7e11eb4811ff7cba54cc
[ "Unlicense" ]
1
2017-04-15T01:48:27.000Z
2017-04-15T01:48:27.000Z
parse_doc.py
nprapps/idp-georgia
316eba6195b7f410567a7e11eb4811ff7cba54cc
[ "Unlicense" ]
153
2017-04-14T18:06:26.000Z
2017-06-02T13:08:09.000Z
parse_doc.py
nprapps/idp-georgia
316eba6195b7f410567a7e11eb4811ff7cba54cc
[ "Unlicense" ]
1
2021-02-18T11:15:52.000Z
2021-02-18T11:15:52.000Z
# _*_ coding:utf-8 _*_ import logging import re import app_config from bs4 import BeautifulSoup from shortcode import process_shortcode logging.basicConfig(format=app_config.LOG_FORMAT) logger = logging.getLogger(__name__) logger.setLevel(app_config.LOG_LEVEL) end_doc_regex = re.compile(ur'^\s*[Ee][Nn][Dd]\s*$', ...
28.040201
78
0.58405
0
0
0
0
0
0
0
0
1,137
0.203763
3f04bc07d2d8f73a71534912779c419ef2aa5148
2,162
py
Python
01_irc_bot/bot.py
pymug/ARJ_SpoonfeedingSockets_APR2021
ba741d4fbde11f8ab4ddda704340ab5892c19478
[ "MIT" ]
null
null
null
01_irc_bot/bot.py
pymug/ARJ_SpoonfeedingSockets_APR2021
ba741d4fbde11f8ab4ddda704340ab5892c19478
[ "MIT" ]
null
null
null
01_irc_bot/bot.py
pymug/ARJ_SpoonfeedingSockets_APR2021
ba741d4fbde11f8ab4ddda704340ab5892c19478
[ "MIT" ]
null
null
null
""" Abdur-Rahmaan Janhangeer Skeleton of https://github.com/pyhoneybot/honeybot/ """ import time import os import socket directory = "irc" if not os.path.exists(directory): os.makedirs(directory) target = open(os.path.join(directory, "log.txt"), "w") def message_checker(msgLine): sendvar = "" global mut...
25.738095
93
0.623497
0
0
0
0
0
0
0
0
717
0.331637
3f05790f911b335d2d94be5f242d22af72e43329
5,494
py
Python
xenia_python_client_library/models/attachments_list.py
DutchAnalytics/xenia-python-client-library
60dc3e21094086124b552ff5bed5895fee826b57
[ "Apache-2.0" ]
null
null
null
xenia_python_client_library/models/attachments_list.py
DutchAnalytics/xenia-python-client-library
60dc3e21094086124b552ff5bed5895fee826b57
[ "Apache-2.0" ]
null
null
null
xenia_python_client_library/models/attachments_list.py
DutchAnalytics/xenia-python-client-library
60dc3e21094086124b552ff5bed5895fee826b57
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 """ Xenia Python Client Library Python Client Library to interact with the Xenia API. # noqa: E501 The version of the OpenAPI document: v2.1 Generated by: https://openapi-generator.tech """ import pprint import re # noqa: F401 import six from xenia_python_client_library.configur...
27.60804
132
0.59028
5,144
0.936294
0
0
2,026
0.368766
0
0
2,472
0.449945
3f05ec3f00a5d7d90f5ef0232521b059bc84d999
672
py
Python
src/AuShadha/registry/icd10/aushadha.py
GosthMan/AuShadha
3ab48825a0dba19bf880b6ac6141ab7a6adf1f3e
[ "PostgreSQL" ]
46
2015-03-04T14:19:47.000Z
2021-12-09T02:58:46.000Z
src/AuShadha/registry/icd10/aushadha.py
aytida23/AuShadha
3ab48825a0dba19bf880b6ac6141ab7a6adf1f3e
[ "PostgreSQL" ]
2
2015-06-05T10:29:04.000Z
2015-12-06T16:54:10.000Z
src/AuShadha/registry/icd10/aushadha.py
aytida23/AuShadha
3ab48825a0dba19bf880b6ac6141ab7a6adf1f3e
[ "PostgreSQL" ]
24
2015-03-23T01:38:11.000Z
2022-01-24T16:23:42.000Z
################################################################################ # Create a Registration with the UI for a Role. # Each module's aushadha.py is screened for this # # Each Class is registered for a Role in UI # These can be used to generate Role based UI elements later. # # As of now string base role...
37.333333
80
0.577381
0
0
0
0
0
0
0
0
504
0.75
3f075c7ec34c5ad02a052b425ce2675ad65347ca
973
py
Python
Etap 2/Logia03/Zad1.py
aszokalski/Logia
5e29745b01623df8a2f162f143656a76056af407
[ "MIT" ]
null
null
null
Etap 2/Logia03/Zad1.py
aszokalski/Logia
5e29745b01623df8a2f162f143656a76056af407
[ "MIT" ]
null
null
null
Etap 2/Logia03/Zad1.py
aszokalski/Logia
5e29745b01623df8a2f162f143656a76056af407
[ "MIT" ]
null
null
null
from turtle import * def rysuj(s): a = 720 / len(s) up = "bdfhklt" down = "gjpqy" numb = "0123456789" samogloski = "aeiouy" pu(); bk(360); pd() for elem in s: if elem in numb: prost(a, "green") elif elem in up: prost(a, "yellow") elif elem in ...
20.702128
45
0.42446
0
0
0
0
0
0
0
0
77
0.079137
3f07c6d2135990949504b1e72bbaec00f43feafb
616
py
Python
server/src/models/movie.py
Rubilmax/netflux
9e79063b81e3dc78055fc683c230de511827f030
[ "MIT" ]
2
2019-06-17T08:28:03.000Z
2019-06-17T08:28:32.000Z
server/src/models/movie.py
Rubilmax/netflux
9e79063b81e3dc78055fc683c230de511827f030
[ "MIT" ]
3
2020-09-05T00:54:20.000Z
2021-05-07T15:34:58.000Z
server/src/models/movie.py
Rubilmax/netflux
9e79063b81e3dc78055fc683c230de511827f030
[ "MIT" ]
null
null
null
""" Define the Movie model """ from . import db from .abc import BaseModel, MetaBaseModel class Movie(db.Model, BaseModel, metaclass=MetaBaseModel): """ The Movie model """ __tablename__ = "movies" movie_id = db.Column(db.String(300), primary_key=True) title = db.Column(db.String(300)) author = ...
25.666667
62
0.657468
523
0.849026
0
0
0
0
0
0
87
0.141234
3f07dc93b37cf1bf8c17deb226c77fdb8cc21bba
17,963
py
Python
wmt-shared-task/segment-level/segment_level_prism.py
chryssa-zrv/UA_COMET
527e7c86bd0a0d8ff90efda58e820108a5666b92
[ "Apache-2.0" ]
null
null
null
wmt-shared-task/segment-level/segment_level_prism.py
chryssa-zrv/UA_COMET
527e7c86bd0a0d8ff90efda58e820108a5666b92
[ "Apache-2.0" ]
null
null
null
wmt-shared-task/segment-level/segment_level_prism.py
chryssa-zrv/UA_COMET
527e7c86bd0a0d8ff90efda58e820108a5666b92
[ "Apache-2.0" ]
null
null
null
f""" Shell script tho reproduce results for BERTScores in data from WMT18/19 Metrics Shared task. """ import argparse import hashlib import logging import os import sys from typing import Any, Dict, Iterator, List import numpy as np import pandas as pd import sentencepiece as spm import torch from tqdm import tqdm fr...
40.006682
137
0.571341
11,857
0.660079
4,235
0.235762
4,256
0.236931
0
0
3,890
0.216556
3f090c825452547dfa25b58d3c0bf2f6280faf90
826
py
Python
source_code/3-2-download.py
VickyMin1994/easy-scraping-tutorial
75b7ffc79da397afa95342022c29cd72520f155f
[ "MIT" ]
708
2017-12-29T05:32:34.000Z
2022-03-25T14:29:05.000Z
source_code/3-2-download.py
VickyMin1994/easy-scraping-tutorial
75b7ffc79da397afa95342022c29cd72520f155f
[ "MIT" ]
6
2018-01-06T07:58:31.000Z
2020-10-26T15:57:46.000Z
source_code/3-2-download.py
VickyMin1994/easy-scraping-tutorial
75b7ffc79da397afa95342022c29cd72520f155f
[ "MIT" ]
609
2017-12-29T10:04:20.000Z
2022-03-23T18:32:37.000Z
import os os.makedirs('./img/', exist_ok=True) IMAGE_URL = "https://mofanpy.com/static/img/description/learning_step_flowchart.png" def urllib_download(): from urllib.request import urlretrieve urlretrieve(IMAGE_URL, './img/image1.png') # whole document def request_download(): import requests ...
23.6
84
0.670702
0
0
0
0
0
0
0
0
241
0.291768
3f09b543086a1b61bb8cf4a38db61dcd67d88667
5,787
py
Python
flare_classifier/cnn.py
Wingham1/hessidf
18e63e25f9989565f1f361458f7ff8e53f4579e9
[ "Unlicense" ]
null
null
null
flare_classifier/cnn.py
Wingham1/hessidf
18e63e25f9989565f1f361458f7ff8e53f4579e9
[ "Unlicense" ]
14
2020-01-28T23:15:48.000Z
2022-03-12T00:12:36.000Z
flare_classifier/cnn.py
Wingham1/hessidf
18e63e25f9989565f1f361458f7ff8e53f4579e9
[ "Unlicense" ]
null
null
null
from tensorflow.keras import Sequential from tensorflow.keras.layers import Conv2D, Flatten, Dense, Dropout import tensorflow.keras as keras import os import cv2 import numpy as np from sklearn.model_selection import train_test_split def data_prep(path, img_rows, img_cols, color): """ A function to preprocess ...
44.515385
155
0.683428
0
0
0
0
0
0
0
0
2,720
0.470019
3f0acb5cf9be9113370cabc267dfa5dafd6e50f5
895
py
Python
survol/sources_types/oracle/library/__init__.py
AugustinMascarelli/survol
7a822900e82d1e6f016dba014af5741558b78f15
[ "BSD-3-Clause" ]
null
null
null
survol/sources_types/oracle/library/__init__.py
AugustinMascarelli/survol
7a822900e82d1e6f016dba014af5741558b78f15
[ "BSD-3-Clause" ]
null
null
null
survol/sources_types/oracle/library/__init__.py
AugustinMascarelli/survol
7a822900e82d1e6f016dba014af5741558b78f15
[ "BSD-3-Clause" ]
null
null
null
""" Oracle library """ import lib_common from lib_properties import pc def Graphic_colorbg(): return "#CC99FF" def EntityOntology(): return ( ["Db", "Schema", "Library"], ) # Ambiguity with tables, oracle or normal users. def MakeUri(dbName,schemaName,libraryName): return lib_common.gUriGen.UriMakeFromDict("ora...
28.870968
128
0.750838
0
0
0
0
0
0
0
0
239
0.267039
3f0adc8f234944eb3b185c95906a510034084c0d
4,104
py
Python
src/train.py
rnagumo/dgm_vae
ea9e1a39f0018c9ed55f13f0b88f4afc4657d7e4
[ "MIT" ]
5
2020-05-27T02:28:32.000Z
2021-03-27T08:07:50.000Z
src/train.py
rnagumo/dgmvae
ea9e1a39f0018c9ed55f13f0b88f4afc4657d7e4
[ "MIT" ]
null
null
null
src/train.py
rnagumo/dgmvae
ea9e1a39f0018c9ed55f13f0b88f4afc4657d7e4
[ "MIT" ]
null
null
null
"""Training method""" import argparse import json import os import pathlib from typing import Union import numpy as np import torch from torch.backends import cudnn import pytorch_lightning as pl import dgmvae.models as dvm from experiment import VAEUpdater def main(): # ------------------------------------...
29.52518
79
0.576754
0
0
0
0
0
0
0
0
1,378
0.33577
3f0db4e9c999e9ae4b627b4d2fef5914dc26a29e
17,193
py
Python
kea/axi_lite_registers/_registers.py
SmartAcoustics/Kea
5790f18dafccfc01fe9dbe98de5bb1a5ce584c56
[ "BSD-3-Clause-Clear", "BSD-3-Clause" ]
3
2020-02-28T13:03:59.000Z
2020-09-20T06:33:04.000Z
kea/axi_lite_registers/_registers.py
SmartAcoustics/Kea
5790f18dafccfc01fe9dbe98de5bb1a5ce584c56
[ "BSD-3-Clause-Clear", "BSD-3-Clause" ]
null
null
null
kea/axi_lite_registers/_registers.py
SmartAcoustics/Kea
5790f18dafccfc01fe9dbe98de5bb1a5ce584c56
[ "BSD-3-Clause-Clear", "BSD-3-Clause" ]
3
2018-12-17T16:33:08.000Z
2020-01-21T14:10:25.000Z
from myhdl import Signal, intbv, block, always_comb, ConcatSignal import myhdl from collections import OrderedDict import keyword def _is_valid_name(ident: str) -> bool: '''Determine if ident is a valid register or bitfield name. ''' if not isinstance(ident, str): raise TypeError("expected str, b...
36.89485
79
0.571163
16,324
0.949456
0
0
1,803
0.104868
0
0
6,839
0.397778
3f0e2d51a2df3a348d377cd1a32d06c17973e189
1,429
py
Python
tools/clear_from_n.py
ubercomrade/MultiDeNA
128f2963cf0a49f94c85744c5eaaf5c41f0e161c
[ "MIT" ]
null
null
null
tools/clear_from_n.py
ubercomrade/MultiDeNA
128f2963cf0a49f94c85744c5eaaf5c41f0e161c
[ "MIT" ]
null
null
null
tools/clear_from_n.py
ubercomrade/MultiDeNA
128f2963cf0a49f94c85744c5eaaf5c41f0e161c
[ "MIT" ]
null
null
null
import random def read_fasta(path_in, path_out): fasta = list() append = fasta.append fasta_in = open(path_in, 'r') fasta_out = open(path_out, 'w') for index, line in enumerate(fasta_in): if not line.startswith('>'): line = line.strip().upper() line = clear_n(line) ...
28.019608
86
0.501749
0
0
0
0
0
0
0
0
38
0.026592
3f109ba5a82b80a619a2cca61182b7519ce6df9d
2,217
py
Python
tensorbank/tf/slices.py
pshved/tensorbank
6a1497b58cfac5e7218ec42c04dd62e17b7bb88c
[ "MIT" ]
1
2020-07-07T09:00:28.000Z
2020-07-07T09:00:28.000Z
tensorbank/tf/slices.py
pshved/tensorbank
6a1497b58cfac5e7218ec42c04dd62e17b7bb88c
[ "MIT" ]
null
null
null
tensorbank/tf/slices.py
pshved/tensorbank
6a1497b58cfac5e7218ec42c04dd62e17b7bb88c
[ "MIT" ]
null
null
null
"""Advanced Tensor slicing ========================== Utilities for advanced tensor slicing and batching operations. Reference --------- """ import tensorflow as tf def slice_within_stride(x, stride, si=0, ei=None, keepdims=True): """Select ``x[..., (i * stride + si):(i * stride + ei)]`` for each i. The te...
31.225352
74
0.592242
0
0
0
0
0
0
0
0
1,721
0.776274
3f1168ed05032f188730bcd06823c66a0ec28d77
5,168
py
Python
testfixtures/tests/test_roundcomparison.py
Alexhuszagh/XLDiscoverer
60937b1f7f2e23af4219eb26519d6b83fb4232d6
[ "Apache-2.0", "MIT" ]
null
null
null
testfixtures/tests/test_roundcomparison.py
Alexhuszagh/XLDiscoverer
60937b1f7f2e23af4219eb26519d6b83fb4232d6
[ "Apache-2.0", "MIT" ]
null
null
null
testfixtures/tests/test_roundcomparison.py
Alexhuszagh/XLDiscoverer
60937b1f7f2e23af4219eb26519d6b83fb4232d6
[ "Apache-2.0", "MIT" ]
null
null
null
# Copyright (c) 2014 Simplistix Ltd # See license.txt for license details. from decimal import Decimal from testfixtures import RoundComparison as R, compare, ShouldRaise from unittest import TestCase from ..compat import PY2, PY3 class Tests(TestCase): def test_equal_yes_rhs(self): self.assertTrue(0.1...
33.128205
79
0.629257
4,932
0.954334
0
0
0
0
0
0
477
0.092299
3f11b3d9455edd6883b563bf0cbd4035db741ccc
23,628
py
Python
config/usb_device_cdc.py
newbs/usb
5aeafc26849673a357a6110713524387f2f5f84d
[ "0BSD" ]
null
null
null
config/usb_device_cdc.py
newbs/usb
5aeafc26849673a357a6110713524387f2f5f84d
[ "0BSD" ]
null
null
null
config/usb_device_cdc.py
newbs/usb
5aeafc26849673a357a6110713524387f2f5f84d
[ "0BSD" ]
null
null
null
"""***************************************************************************** * Copyright (C) 2019 Microchip Technology Inc. and its subsidiaries. * * Subject to your compliance with these terms, you may use Microchip software * and any derivatives exclusively with Microchip products. It is your * responsibility to ...
46.60355
210
0.752878
0
0
0
0
0
0
0
0
10,391
0.439775
3f147cdd3b7dfdb59f469f69eb27289609a80ec7
169
py
Python
quant_test/__init__.py
rgkimball/quant_test
efa74de02f6a65c2d61029d6e8a1c0b5ac34b0c2
[ "Apache-2.0" ]
null
null
null
quant_test/__init__.py
rgkimball/quant_test
efa74de02f6a65c2d61029d6e8a1c0b5ac34b0c2
[ "Apache-2.0" ]
1
2021-02-02T23:10:35.000Z
2021-02-02T23:10:35.000Z
quant_test/__init__.py
rgkimball/quant_test
efa74de02f6a65c2d61029d6e8a1c0b5ac34b0c2
[ "Apache-2.0" ]
null
null
null
""" quant_test ~~~~~~ The quant_test package - a Python package template project that is intended to be used as a cookie-cutter for developing new Python packages. """
21.125
75
0.745562
0
0
0
0
0
0
0
0
168
0.994083
3f14a246aafc9d9fb1bbbb14593c493646a1817d
5,189
py
Python
django_sql_dashboard/extensions/ExtendedParameter.py
ipamo/django-sql-dashboard
c976bb59db70df200bdc44f1598aab31a25d3930
[ "Apache-2.0" ]
null
null
null
django_sql_dashboard/extensions/ExtendedParameter.py
ipamo/django-sql-dashboard
c976bb59db70df200bdc44f1598aab31a25d3930
[ "Apache-2.0" ]
null
null
null
django_sql_dashboard/extensions/ExtendedParameter.py
ipamo/django-sql-dashboard
c976bb59db70df200bdc44f1598aab31a25d3930
[ "Apache-2.0" ]
null
null
null
import re from django.utils.html import escape from django.utils.safestring import mark_safe from ..utils import Parameter class ExtendedParameter(Parameter): extract_re = re.compile(r"\%\(([\w\-]+)(?:\:([\w\-]+))?\)(s|(?:0?\.(\d+))?d|b)") extract_name_re = lambda name: re.compile(rf"\%\({name}(?:\:[\w\-]+)?\...
50.378641
192
0.586626
5,063
0.975718
0
0
1,024
0.197341
0
0
2,331
0.44922
3f159df489050cc9cb8053b59296d74b1792277e
3,644
py
Python
jiotc/models/bilstm_model.py
JHP4911/JioTC
be82159bdb0f2f10b1ac85966659626b5e8a7304
[ "MIT" ]
4
2020-06-17T03:32:23.000Z
2021-07-02T06:46:26.000Z
jiotc/models/bilstm_model.py
dongrixinyu/JioTC
be82159bdb0f2f10b1ac85966659626b5e8a7304
[ "MIT" ]
null
null
null
jiotc/models/bilstm_model.py
dongrixinyu/JioTC
be82159bdb0f2f10b1ac85966659626b5e8a7304
[ "MIT" ]
null
null
null
# -*- coding=utf-8 -*- # author: dongrixinyu # contact: [email protected] # blog: https://github.com/dongrixinyu/ # file: bare_embedding.py # time: 2020-06-12 11:27 import os import pdb import logging from typing import Union, Optional, Dict, Any, Tuple import torch import torch.nn as nn from torch.nn.utils.r...
33.431193
128
0.602634
3,178
0.858919
0
0
412
0.111351
0
0
1,380
0.372973
3f15b4889cdf171226bf2916a6b9994712b58560
56,576
py
Python
tests/learning/test_prediction_error_delta_function.py
mihaic/psyneulink
3d2fc3117c82bccc92fc585add330b0f9b35c830
[ "Apache-2.0" ]
null
null
null
tests/learning/test_prediction_error_delta_function.py
mihaic/psyneulink
3d2fc3117c82bccc92fc585add330b0f9b35c830
[ "Apache-2.0" ]
null
null
null
tests/learning/test_prediction_error_delta_function.py
mihaic/psyneulink
3d2fc3117c82bccc92fc585add330b0f9b35c830
[ "Apache-2.0" ]
null
null
null
import numpy as np from psyneulink import PredictionErrorDeltaFunction np.set_printoptions(suppress=True) def test_prediction_error_delta_first_run(): learning_rate = 0.3 stimulus_onset = 41 sample = np.zeros(60) sample[stimulus_onset:] = 1 reward_onset = 54 target = np.zeros(60) targe...
72.255428
80
0.352128
0
0
0
0
0
0
0
0
90
0.001591
3f18a598378fac5606353de6db627c25234fa321
22,823
py
Python
jts/backend/jobapps/views.py
goupaz/babylon
4e638d02705469061e563fec349676d8faa9f648
[ "MIT" ]
1
2019-08-08T09:03:17.000Z
2019-08-08T09:03:17.000Z
backend/jobapps/views.py
goupaz/website
ce1bc8b6c52ee0815a7b98842ec3bde0c20e0add
[ "Apache-2.0" ]
2
2020-10-09T19:16:09.000Z
2020-10-10T20:40:41.000Z
jts/backend/jobapps/views.py
goupaz/babylon-hackathon
4e638d02705469061e563fec349676d8faa9f648
[ "MIT" ]
1
2019-07-21T01:42:21.000Z
2019-07-21T01:42:21.000Z
from datetime import datetime as dt from django.utils import timezone import uuid from django.contrib.auth import get_user_model from django.http import JsonResponse from django.views.decorators.csrf import csrf_exempt from rest_framework.decorators import api_view from company.utils import get_or_create_company from ...
50.605322
131
0.623056
0
0
0
0
21,781
0.954344
0
0
1,014
0.044429
3f18ab10027c8065766c8a8c8fb7ac830007c2ab
127
py
Python
reassign.py
Ca2Patton/PythonStuff
9d13f340296bcea41dfca87a4b36e445821703de
[ "Apache-2.0" ]
null
null
null
reassign.py
Ca2Patton/PythonStuff
9d13f340296bcea41dfca87a4b36e445821703de
[ "Apache-2.0" ]
null
null
null
reassign.py
Ca2Patton/PythonStuff
9d13f340296bcea41dfca87a4b36e445821703de
[ "Apache-2.0" ]
null
null
null
#!/Library/Frameworks/Python.framework/Versions/2.7/bin/python x=5 print x def reassign(b): x=6 print x reassign(x) print x
12.7
62
0.740157
0
0
0
0
0
0
0
0
62
0.488189
3f1926f6984e1a663e867e004da2e2a9429fe1d9
6,632
py
Python
python_modules/dagster/dagster/core/meta/config_types.py
Ramshackle-Jamathon/dagster
959037ab8d8fb7ed49fbc2daff9fa566f71766f2
[ "Apache-2.0" ]
null
null
null
python_modules/dagster/dagster/core/meta/config_types.py
Ramshackle-Jamathon/dagster
959037ab8d8fb7ed49fbc2daff9fa566f71766f2
[ "Apache-2.0" ]
null
null
null
python_modules/dagster/dagster/core/meta/config_types.py
Ramshackle-Jamathon/dagster
959037ab8d8fb7ed49fbc2daff9fa566f71766f2
[ "Apache-2.0" ]
null
null
null
from collections import namedtuple from dagster import check from dagster.config.config_type import ConfigType, ConfigTypeKind from dagster.config.field import Field from dagster.core.serdes import whitelist_for_serdes @whitelist_for_serdes class NonGenericTypeRefMeta(namedtuple('_NonGenericTypeRefMeta', 'key')): ...
37.258427
99
0.692853
3,204
0.483112
945
0.142491
3,292
0.496381
0
0
1,684
0.25392
3f197e7a784ea8a0684cc88fb9aeb9e0486240f7
624
py
Python
database/migrations/2017_06_14_205530_create_users_table.py
emirbek/cope
be72b71e8045d1fe16d7ac6c680fc9f274af6c50
[ "MIT" ]
2
2017-06-21T09:26:51.000Z
2020-10-15T19:45:20.000Z
database/migrations/2017_06_14_205530_create_users_table.py
emirbek/cope
be72b71e8045d1fe16d7ac6c680fc9f274af6c50
[ "MIT" ]
11
2017-06-18T21:16:58.000Z
2021-06-12T18:34:20.000Z
database/migrations/2017_06_14_205530_create_users_table.py
emirbek/cope
be72b71e8045d1fe16d7ac6c680fc9f274af6c50
[ "MIT" ]
2
2017-10-27T06:53:57.000Z
2021-09-26T10:26:31.000Z
from orator.migrations import Migration class CreateUsersTable(Migration): def up(self): """ Run the migrations. """ with self.schema.create('users') as table: table.integer('id') table.string('name') table.string('gender', 1) table....
24
51
0.525641
581
0.93109
0
0
0
0
0
0
152
0.24359
3f1a06109933032a2467ac3c5a49cf17e45b67a0
387
py
Python
make_json.py
jfalcou/infra
97e05039a3f4f3d69b7c50233aed5e5d60a59605
[ "BSD-2-Clause" ]
135
2017-01-12T04:39:08.000Z
2020-05-08T17:08:52.000Z
make_json.py
jfalcou/infra
97e05039a3f4f3d69b7c50233aed5e5d60a59605
[ "BSD-2-Clause" ]
229
2017-01-23T12:45:44.000Z
2020-05-13T17:36:57.000Z
make_json.py
jfalcou/infra
97e05039a3f4f3d69b7c50233aed5e5d60a59605
[ "BSD-2-Clause" ]
106
2017-04-18T14:42:34.000Z
2020-05-07T14:24:34.000Z
from configparser import ConfigParser import os import json obj = {} config = ConfigParser() config.read(os.path.join(os.getenv("HOME"), ".aws", "credentials")) obj["MY_ACCESS_KEY"] = config.get("default", "aws_access_key_id", fallback="") obj["MY_SECRET_KEY"] = config.get("default", "aws_secret_access_key", fallback=...
29.769231
82
0.710594
0
0
0
0
0
0
0
0
135
0.348837
3f1cf61b4a31d4bea3fa0897656382d3014a7dec
1,051
py
Python
ztest-type1.py
tochiji/ztest-type1
ca141d13a74708846cba414f2051200d162302a0
[ "MIT" ]
null
null
null
ztest-type1.py
tochiji/ztest-type1
ca141d13a74708846cba414f2051200d162302a0
[ "MIT" ]
null
null
null
ztest-type1.py
tochiji/ztest-type1
ca141d13a74708846cba414f2051200d162302a0
[ "MIT" ]
null
null
null
######################################################### # 母比率の差の検定/タイプ1 ######################################################### import sys import math def error_usage(): sys.stderr.write("usage: " + sys.argv[0] + "\n") sys.stderr.write("\tこのプログラムは、4つの引数が必要です。\n\n") sys.stderr.write( "\t1.属性1のn...
24.44186
67
0.488107
0
0
0
0
0
0
0
0
681
0.510112
3f1d2166206051864985cc1f8d2162c4a056737f
13,796
py
Python
flask_demo/main.py
yzj2019/database_learning
a9260799f96010674bb4077180ee45a51481e832
[ "MIT" ]
null
null
null
flask_demo/main.py
yzj2019/database_learning
a9260799f96010674bb4077180ee45a51481e832
[ "MIT" ]
null
null
null
flask_demo/main.py
yzj2019/database_learning
a9260799f96010674bb4077180ee45a51481e832
[ "MIT" ]
null
null
null
# coding=utf-8 import functools from flask import Flask, session from flask import redirect from flask import request, make_response from flask import render_template from flask import url_for from flask_bootstrap import Bootstrap # 数据库处理 from db import * # json import json # 生成一个app app = Flask(__name...
34.318408
101
0.508771
0
0
0
0
14,054
0.938811
0
0
4,392
0.293387
3f1e42b52ec11496ab90f620e8e049e8cb9d426e
1,462
py
Python
tests/test_env.py
dmitrvk/mymusichere-app
02a6d5f60a72197e08c98da59b0ef7e7168dcf4b
[ "MIT" ]
null
null
null
tests/test_env.py
dmitrvk/mymusichere-app
02a6d5f60a72197e08c98da59b0ef7e7168dcf4b
[ "MIT" ]
14
2020-06-06T19:08:03.000Z
2020-12-03T12:07:04.000Z
tests/test_env.py
dmitrvk/mymusichere-app
02a6d5f60a72197e08c98da59b0ef7e7168dcf4b
[ "MIT" ]
null
null
null
# Licensed under the MIT License from mymusichere import env class TestEnv: def test_get_config_from_env(self, monkeypatch): monkeypatch.setenv('CONFIG', 'value') assert env.get_str_config('config') == 'value' def test_get_secret_from_env(self, monkeypatch): monkeypatch.setenv('SECR...
35.658537
76
0.678523
1,397
0.95554
0
0
0
0
0
0
342
0.233926
3f1f9aba8ecf3aa6254017a10062ec1345e2b069
2,943
py
Python
tests/factorys.py
2h4dl/pymilvus
6af6d4922242ae48d90ed5a1afb891d9e4d1540e
[ "Apache-2.0" ]
null
null
null
tests/factorys.py
2h4dl/pymilvus
6af6d4922242ae48d90ed5a1afb891d9e4d1540e
[ "Apache-2.0" ]
null
null
null
tests/factorys.py
2h4dl/pymilvus
6af6d4922242ae48d90ed5a1afb891d9e4d1540e
[ "Apache-2.0" ]
null
null
null
# STL imports import random import logging import string import time import datetime import random import struct import sys from functools import wraps # Third party imports import numpy as np import faker from faker.providers import BaseProvider logging.getLogger('faker').setLevel(logging.ERROR) sys.path.append('.'...
23.357143
115
0.675841
269
0.091403
0
0
228
0.077472
0
0
205
0.069657
3f201da335b43cb8e7b8ff1ba5bda41dec4c38c6
524
py
Python
HACKERRANK_Regrex&Parsing/Matrix_Script.py
StefaniaSferragatta/ADM2020-HW1
8f85ac1c8dd4bff52c5c17987c9e96b209a93830
[ "MIT" ]
null
null
null
HACKERRANK_Regrex&Parsing/Matrix_Script.py
StefaniaSferragatta/ADM2020-HW1
8f85ac1c8dd4bff52c5c17987c9e96b209a93830
[ "MIT" ]
null
null
null
HACKERRANK_Regrex&Parsing/Matrix_Script.py
StefaniaSferragatta/ADM2020-HW1
8f85ac1c8dd4bff52c5c17987c9e96b209a93830
[ "MIT" ]
null
null
null
import math import os import random import re import sys first_multiple_input = input().rstrip().split() n = int(first_multiple_input[0]) m = int(first_multiple_input[1]) matrix = [] if (n>0 and m>0 and n<100 and m< 100): for _ in range(n): matrix_item = input() matrix.append(matrix_item) for...
21.833333
50
0.59542
0
0
0
0
0
0
0
0
22
0.041985
3f203a9e4f2175047e23a90b2ce6f785f3b752e7
4,495
py
Python
smartsheet/models/filter.py
Funtimes-Smarts/Python-import-Smart
ffb99887d03e31d10da553c9ee8c7be1238816fc
[ "Apache-2.0" ]
null
null
null
smartsheet/models/filter.py
Funtimes-Smarts/Python-import-Smart
ffb99887d03e31d10da553c9ee8c7be1238816fc
[ "Apache-2.0" ]
null
null
null
smartsheet/models/filter.py
Funtimes-Smarts/Python-import-Smart
ffb99887d03e31d10da553c9ee8c7be1238816fc
[ "Apache-2.0" ]
null
null
null
# pylint: disable=C0111,R0902,R0904,R0912,R0913,R0915,E1101 # Smartsheet Python SDK. # # Copyright 2016 Smartsheet.com, 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....
30.787671
75
0.588654
3,629
0.807341
0
0
1,797
0.399778
0
0
1,064
0.236707
3f20478583f74a50977bf5b718f080efb96af674
5,524
py
Python
utils/train.py
danilonumeroso/MEG
86f2a664e22082b0ff5d01c8e0ad9618b64e9065
[ "Apache-2.0" ]
6
2020-10-26T13:53:01.000Z
2021-03-12T14:26:43.000Z
utils/train.py
danilonumeroso/Explainer
e133c150738f09998d0350e58dece4824ee58a76
[ "Apache-2.0" ]
null
null
null
utils/train.py
danilonumeroso/Explainer
e133c150738f09998d0350e58dece4824ee58a76
[ "Apache-2.0" ]
1
2021-03-13T01:08:12.000Z
2021-03-13T01:08:12.000Z
import torch import torch.nn.functional as F import os.path as osp import json from torch_geometric.utils import precision, recall from torch_geometric.utils import f1_score, accuracy from torch.utils.tensorboard import SummaryWriter def train_epoch_classifier(model, train_loader, len_train, optimizer, device): m...
33.889571
101
0.589609
0
0
0
0
0
0
0
0
664
0.120203
3f221d9155ff841349fd18bfe1fa0dbaac313b9d
260
py
Python
Algorithms/LCP/29/math1.py
M-Quadra/LeetCode-problems
0cc100aa1e50b02df289f04fe2e0b97239eb9895
[ "MIT" ]
null
null
null
Algorithms/LCP/29/math1.py
M-Quadra/LeetCode-problems
0cc100aa1e50b02df289f04fe2e0b97239eb9895
[ "MIT" ]
null
null
null
Algorithms/LCP/29/math1.py
M-Quadra/LeetCode-problems
0cc100aa1e50b02df289f04fe2e0b97239eb9895
[ "MIT" ]
null
null
null
class Solution: def orchestraLayout(self, num: int, xPos: int, yPos: int) -> int: a, b = (min(xPos, num-1-yPos), 1) if yPos >= xPos else (min(yPos, num-1-xPos), -1) return (4*num*a - 4*a*a - 2*a + b*(xPos+yPos) + (b>>1&1)*4*(num-a-1))%9 + 1
65
90
0.546154
260
1
0
0
0
0
0
0
0
0
3f2291365a0ddde1dace00a736bbde9087e031ac
9,716
py
Python
python-sdk/nuimages/scripts/render_images.py
bjajoh/nuscenes-devkit
5bc5627801c3867de395a500a1905c24171cec7d
[ "Apache-2.0" ]
1,284
2018-09-12T14:08:06.000Z
2022-03-31T08:28:20.000Z
python-sdk/nuimages/scripts/render_images.py
bjajoh/nuscenes-devkit
5bc5627801c3867de395a500a1905c24171cec7d
[ "Apache-2.0" ]
518
2018-10-20T08:34:15.000Z
2022-03-31T08:16:08.000Z
python-sdk/nuimages/scripts/render_images.py
bjajoh/nuscenes-devkit
5bc5627801c3867de395a500a1905c24171cec7d
[ "Apache-2.0" ]
487
2018-09-13T20:03:21.000Z
2022-03-31T04:41:17.000Z
# nuScenes dev-kit. # Code written by Holger Caesar, 2020. import argparse import gc import os import random from typing import List from collections import defaultdict import cv2 import tqdm from nuimages.nuimages import NuImages def render_images(nuim: NuImages, mode: str = 'all', ...
42.614035
120
0.656546
0
0
0
0
0
0
0
0
3,789
0.389975
3f23c6741b5a4eb8f1708037600b9e1ee26ac16e
10,868
py
Python
version_info.py
sairam4123/GodotReleaseScriptPython
2fd2644b0301f20b89b6772a0c93cec6d012f080
[ "MIT" ]
null
null
null
version_info.py
sairam4123/GodotReleaseScriptPython
2fd2644b0301f20b89b6772a0c93cec6d012f080
[ "MIT" ]
null
null
null
version_info.py
sairam4123/GodotReleaseScriptPython
2fd2644b0301f20b89b6772a0c93cec6d012f080
[ "MIT" ]
null
null
null
import re from configparser import ConfigParser from constants import PROJECT_FOLDER, RELEASE_LEVEL_DICT from release_type import ReleaseLevel, ReleaseType, value_from_key class VersionInfo: def __init__( self, major: int = 0, minor: int = 0, bugfix: int = 0, ...
39.234657
118
0.656054
3,929
0.36152
0
0
641
0.05898
0
0
514
0.047295
3f2514948f103576dc7043e1528909e26cdfc7f7
2,302
py
Python
test/test_create_json_items_from_embark_xml.py
ndlib/mellon-search
30f7eb267e35d77ee6d126789866d44d825c3e0c
[ "Apache-2.0" ]
null
null
null
test/test_create_json_items_from_embark_xml.py
ndlib/mellon-search
30f7eb267e35d77ee6d126789866d44d825c3e0c
[ "Apache-2.0" ]
null
null
null
test/test_create_json_items_from_embark_xml.py
ndlib/mellon-search
30f7eb267e35d77ee6d126789866d44d825c3e0c
[ "Apache-2.0" ]
null
null
null
# test_create_json_items_from_embark_xml.py 2/18/19 sm """ test create_json_items_from_embark_xml.py """ import sys import json import unittest import csv from xml.etree.ElementTree import ElementTree, tostring # add parent directory to path import os import inspect CURRENTDIR = os.path.dirname(os.path.abspath(inspec...
36.539683
113
0.682884
1,664
0.72285
0
0
0
0
0
0
631
0.274109
3f272482b04c8aa1d417b0e37326c6eff1cef597
3,000
py
Python
plot/laikago/plot_task.py
MaxxWilson/ASE389Project
13c3c72887e27fbed2eef63c1e27b4a185036a39
[ "MIT" ]
17
2021-05-31T10:55:48.000Z
2022-03-30T10:09:37.000Z
plot/laikago/plot_task.py
MaxxWilson/ASE389Project
13c3c72887e27fbed2eef63c1e27b4a185036a39
[ "MIT" ]
2
2021-10-01T22:11:43.000Z
2021-12-06T02:34:33.000Z
plot/laikago/plot_task.py
MaxxWilson/ASE389Project
13c3c72887e27fbed2eef63c1e27b4a185036a39
[ "MIT" ]
3
2021-08-24T00:53:18.000Z
2022-03-31T17:29:07.000Z
import os import sys cwd = os.getcwd() sys.path.append(cwd) import pickle import numpy as np import matplotlib matplotlib.use('TkAgg') import matplotlib.pyplot as plt from plot.helper import plot_task, plot_weights, plot_rf_z_max, plot_rf_quad, plot_vector_traj tasks = [ 'com_pos', 'com_vel', 'chassis_quat', 'ch...
29.411765
94
0.515333
0
0
0
0
0
0
0
0
1,221
0.407
3f272ad913a6368c2dd0e9360ea0f0c8243524c5
3,504
py
Python
h/views/api/users.py
bibliotechie/h
16e275f79ef7d1086971bd30ef403501c6b93beb
[ "BSD-2-Clause" ]
null
null
null
h/views/api/users.py
bibliotechie/h
16e275f79ef7d1086971bd30ef403501c6b93beb
[ "BSD-2-Clause" ]
null
null
null
h/views/api/users.py
bibliotechie/h
16e275f79ef7d1086971bd30ef403501c6b93beb
[ "BSD-2-Clause" ]
null
null
null
from pyramid.httpexceptions import HTTPConflict from h.auth.util import client_authority from h.presenters import TrustedUserJSONPresenter from h.schemas import ValidationError from h.schemas.api.user import CreateUserAPISchema, UpdateUserAPISchema from h.services.user_unique import DuplicateUserError from h.views.api...
31.567568
81
0.710616
0
0
0
0
2,961
0.845034
0
0
1,420
0.405251
3f2894b54d3e8597c52938f696795d8309755127
239
py
Python
controllers/social_auth/kivyauth/__init__.py
richierh/SalesKivyMD
f445adc701946ff38865b4a1a00a03529142613e
[ "MIT" ]
126
2020-06-12T15:02:19.000Z
2022-03-31T10:13:29.000Z
controllers/social_auth/kivyauth/__init__.py
richierh/SalesKivyMD
f445adc701946ff38865b4a1a00a03529142613e
[ "MIT" ]
13
2020-07-01T01:03:26.000Z
2022-02-21T02:21:24.000Z
controllers/social_auth/kivyauth/__init__.py
richierh/SalesKivyMD
f445adc701946ff38865b4a1a00a03529142613e
[ "MIT" ]
22
2020-06-12T22:24:27.000Z
2022-03-10T13:24:33.000Z
from kivy.logger import Logger from kivy.utils import platform __version__ = "2.3.2" _log_message = "KivyAuth:" + f" {__version__}" + f' (installed at "{__file__}")' __all__ = ("login_providers", "auto_login") Logger.info(_log_message)
23.9
80
0.723849
0
0
0
0
0
0
0
0
95
0.39749
3f28d1e2f76100adc00945a0759d254a0a1638b4
20
py
Python
RDS/circle3_central_services/research_manager/src/api/User/__init__.py
Sciebo-RDS/Sciebo-RDS
d71cf449ed045a2a7a049e2cb77c99fd5a9195bd
[ "MIT" ]
10
2020-06-24T08:22:24.000Z
2022-01-13T16:17:36.000Z
RDS/circle3_central_services/research_manager/src/api/User/__init__.py
Sciebo-RDS/Sciebo-RDS
d71cf449ed045a2a7a049e2cb77c99fd5a9195bd
[ "MIT" ]
78
2020-01-23T14:32:06.000Z
2022-03-07T14:11:16.000Z
RDS/circle3_central_services/research_manager/src/api/User/__init__.py
Sciebo-RDS/Sciebo-RDS
d71cf449ed045a2a7a049e2cb77c99fd5a9195bd
[ "MIT" ]
1
2020-06-24T08:33:48.000Z
2020-06-24T08:33:48.000Z
from .user import *
20
20
0.7
0
0
0
0
0
0
0
0
0
0