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
888504477ef926e05cac253422a2f5fcc1a109ea
4,031
py
Python
main.py
sun624/Dogecoin_musk
6dc48f03275321d29bb1ab131ecd14626bcc5170
[ "MIT" ]
null
null
null
main.py
sun624/Dogecoin_musk
6dc48f03275321d29bb1ab131ecd14626bcc5170
[ "MIT" ]
null
null
null
main.py
sun624/Dogecoin_musk
6dc48f03275321d29bb1ab131ecd14626bcc5170
[ "MIT" ]
null
null
null
#! usr/bin/env python3 from os import times from bs4 import BeautifulSoup from selenium import webdriver from selenium.webdriver.chrome.options import Options from selenium.webdriver.common.keys import Keys from selenium.webdriver.support.ui import WebDriverWait from selenium.webdriver.common.by import By import numpy...
29.210145
170
0.690896
0
0
0
0
0
0
0
0
1,077
0.267179
88858e6eec8ef3e573592e88fd8baa705aa1f430
1,264
py
Python
064_minimum_path_sum.py
gengwg/leetcode
0af5256ec98149ef5863f3bba78ed1e749650f6e
[ "Apache-2.0" ]
2
2018-04-24T19:17:40.000Z
2018-04-24T19:33:52.000Z
064_minimum_path_sum.py
gengwg/leetcode
0af5256ec98149ef5863f3bba78ed1e749650f6e
[ "Apache-2.0" ]
null
null
null
064_minimum_path_sum.py
gengwg/leetcode
0af5256ec98149ef5863f3bba78ed1e749650f6e
[ "Apache-2.0" ]
3
2020-06-17T05:48:52.000Z
2021-01-02T06:08:25.000Z
""" 64. Minimum Path Sum Given a m x n grid filled with non-negative numbers, find a path from top left to bottom right which minimizes the sum of all numbers along its path. Note: You can only move either down or right at any point in time. http://www.tangjikai.com/algorithms/leetcode-64-minimum-path-sum Dynamic P...
29.395349
75
0.530854
794
0.628165
0
0
0
0
0
0
647
0.511867
8886118689d4c63bf084bbb40abe034f4a2125d5
12,507
py
Python
pants-plugins/structured/subsystems/r_distribution.py
cosmicexplorer/structured
ea452a37e265dd75d4160efa59a4a939bf8c0521
[ "Apache-2.0" ]
null
null
null
pants-plugins/structured/subsystems/r_distribution.py
cosmicexplorer/structured
ea452a37e265dd75d4160efa59a4a939bf8c0521
[ "Apache-2.0" ]
null
null
null
pants-plugins/structured/subsystems/r_distribution.py
cosmicexplorer/structured
ea452a37e265dd75d4160efa59a4a939bf8c0521
[ "Apache-2.0" ]
null
null
null
# coding=utf-8 from __future__ import (absolute_import, division, generators, nested_scopes, print_function, unicode_literals, with_statement) import logging import os import re import subprocess import sys from contextlib import contextmanager from abc import abstractproperty from pants.bin...
33.352
93
0.691773
11,627
0.929639
323
0.025826
4,317
0.345167
0
0
2,169
0.173423
88864f3fa8092982651eaeda9dbe085e135b834a
5,121
py
Python
src/test.py
yliuhz/PMAW
23f4f3ec2ccb381be3d4b2edea0878e4015e1ae4
[ "Apache-2.0" ]
8
2021-12-02T02:25:55.000Z
2022-03-18T23:41:42.000Z
src/test.py
yliuhz/PMAW
23f4f3ec2ccb381be3d4b2edea0878e4015e1ae4
[ "Apache-2.0" ]
null
null
null
src/test.py
yliuhz/PMAW
23f4f3ec2ccb381be3d4b2edea0878e4015e1ae4
[ "Apache-2.0" ]
null
null
null
import torch from torch import nn import numpy as np class convmodel(torch.nn.Module): def __init__(self): super().__init__() self.conv1 = nn.Conv2d(3, 16, 3, 1, padding=1, bias=False) self.conv2 = nn.Conv2d(16, 32, 3, 1, padding=1, bias=False) self.linear = nn.Linear(32*10*10, 1, ...
35.075342
81
0.610037
1,825
0.329839
0
0
0
0
0
0
2,181
0.39418
8887cdf2cc8ae9604a5a9ce44664b255c6cabd67
64
py
Python
hanlp/datasets/ner/__init__.py
v-smwang/HanLP
98db7a649110fca4307acbd6a26f2b5bb1159efc
[ "Apache-2.0" ]
27,208
2015-03-27T10:25:45.000Z
2022-03-31T13:26:32.000Z
hanlp/datasets/ner/__init__.py
hushaoyun/HanLP
967b52404c9d0adbc0cff2699690c127ecfca36e
[ "Apache-2.0" ]
1,674
2015-03-30T06:36:44.000Z
2022-03-16T01:52:56.000Z
hanlp/datasets/ner/__init__.py
hushaoyun/HanLP
967b52404c9d0adbc0cff2699690c127ecfca36e
[ "Apache-2.0" ]
7,710
2015-03-27T08:07:57.000Z
2022-03-31T14:57:23.000Z
# -*- coding:utf-8 -*- # Author: hankcs # Date: 2019-12-06 15:32
21.333333
24
0.59375
0
0
0
0
0
0
0
0
62
0.96875
888a09b848fdd84015221d8d652297a6bccb8e05
563
py
Python
portfolio/2011_krakDK/krak/items.py
0--key/lib
ba7a85dda2b208adc290508ca617bdc55a5ded22
[ "Apache-2.0" ]
null
null
null
portfolio/2011_krakDK/krak/items.py
0--key/lib
ba7a85dda2b208adc290508ca617bdc55a5ded22
[ "Apache-2.0" ]
null
null
null
portfolio/2011_krakDK/krak/items.py
0--key/lib
ba7a85dda2b208adc290508ca617bdc55a5ded22
[ "Apache-2.0" ]
5
2016-03-22T07:40:46.000Z
2021-05-30T16:12:21.000Z
# Define here the models for your scraped items # # See documentation in: # http://doc.scrapy.org/topics/items.html from scrapy.item import Item, Field class KrakItem(Item): # define the fields for your item here like: # name = Field() # pass# company_name = Field() company_site_url = Field() ...
23.458333
48
0.657194
403
0.715808
0
0
0
0
0
0
179
0.31794
888a79727132fd019b0db67bf3741b80a00a7a59
29,630
py
Python
src/mau/parsers/main_parser.py
Project-Mau/mau
193d16633c1573227debf4517ebcaf07add24979
[ "MIT" ]
28
2021-02-22T18:46:52.000Z
2022-02-21T15:14:05.000Z
src/mau/parsers/main_parser.py
Project-Mau/mau
193d16633c1573227debf4517ebcaf07add24979
[ "MIT" ]
5
2021-02-23T09:56:13.000Z
2022-03-13T09:47:42.000Z
src/mau/parsers/main_parser.py
Project-Mau/mau
193d16633c1573227debf4517ebcaf07add24979
[ "MIT" ]
2
2021-02-23T09:11:45.000Z
2021-03-13T11:08:21.000Z
import re import copy from mau.lexers.base_lexer import TokenTypes, Token from mau.lexers.main_lexer import MainLexer from mau.parsers.base_parser import ( BaseParser, TokenError, ConfigurationError, parser, ) from mau.parsers.text_parser import TextParser from mau.parsers.arguments_parser import Argum...
32.136659
104
0.583463
28,408
0.958758
0
0
13,912
0.469524
0
0
10,300
0.347621
888b41cc12274148e790e361bed90e406da76010
3,344
py
Python
stereomag/nets.py
MandyMY/stereo-magnification
c18fa484484597dfa653f317459a503d9bf8d933
[ "Apache-2.0" ]
null
null
null
stereomag/nets.py
MandyMY/stereo-magnification
c18fa484484597dfa653f317459a503d9bf8d933
[ "Apache-2.0" ]
null
null
null
stereomag/nets.py
MandyMY/stereo-magnification
c18fa484484597dfa653f317459a503d9bf8d933
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python # # Copyright 2018 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or ag...
39.809524
78
0.650718
0
0
0
0
0
0
0
0
1,315
0.393242
888c285859f9179b927cbdc06da726b52d44b5cf
3,731
py
Python
tests/test_init.py
ashb/freedesktop-icons
10737b499bff9a22c853aa20822215c8e059a737
[ "MIT" ]
1
2021-06-02T11:11:50.000Z
2021-06-02T11:11:50.000Z
tests/test_init.py
ashb/freedesktop-icons
10737b499bff9a22c853aa20822215c8e059a737
[ "MIT" ]
null
null
null
tests/test_init.py
ashb/freedesktop-icons
10737b499bff9a22c853aa20822215c8e059a737
[ "MIT" ]
null
null
null
from pathlib import Path from unittest import mock import pytest from freedesktop_icons import Icon, Theme, lookup, lookup_fallback, theme_search_dirs @pytest.mark.parametrize( ("env", "expected"), ( ("", [Path.home() / '.icons']), ("/foo:", [Path.home() / '.icons', Path('/foo/icons')]), ...
35.198113
100
0.729027
0
0
0
0
3,474
0.931118
0
0
781
0.209327
888d0174a06f5d771e461f6d3b086646f76a87f5
569
py
Python
src/sweetrpg_library_api/application/__init__.py
paulyhedral/sweetrpg-library-api
0105e963ef4321398aa66d7cb3aa9c2df1c4f375
[ "MIT" ]
null
null
null
src/sweetrpg_library_api/application/__init__.py
paulyhedral/sweetrpg-library-api
0105e963ef4321398aa66d7cb3aa9c2df1c4f375
[ "MIT" ]
33
2021-09-18T23:52:05.000Z
2022-03-30T12:25:49.000Z
src/sweetrpg_library_api/application/__init__.py
sweetrpg/library-api
0105e963ef4321398aa66d7cb3aa9c2df1c4f375
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- __author__ = "Paul Schifferer <[email protected]>" """ """ import os import sentry_sdk from sentry_sdk.integrations.flask import FlaskIntegration from sentry_sdk.integrations.redis import RedisIntegration from sweetrpg_library_api.application import constants sentry_sdk.init(dsn=os.environ[con...
28.45
78
0.680141
0
0
0
0
0
0
0
0
74
0.130053
888eea6317cde6023d0d320a6a78866a20795e44
13,674
py
Python
isochrones_old.py
timothydmorton/fpp-old
6a2175d4bd9648b61c244c7463148632f36de631
[ "MIT" ]
null
null
null
isochrones_old.py
timothydmorton/fpp-old
6a2175d4bd9648b61c244c7463148632f36de631
[ "MIT" ]
null
null
null
isochrones_old.py
timothydmorton/fpp-old
6a2175d4bd9648b61c244c7463148632f36de631
[ "MIT" ]
null
null
null
""" Compiles stellar model isochrones into an easy-to-access format. """ from numpy import * from scipy.interpolate import LinearNDInterpolator as interpnd from consts import * import os,sys,re import scipy.optimize #try: # import pymc as pm #except: # print 'isochrones: pymc not loaded! MCMC will not work' i...
34.270677
152
0.52311
8,369
0.612037
0
0
0
0
0
0
2,365
0.172956
888f394f188ea661c1605445db9b8d21a4a1470e
1,263
py
Python
tests/pterradactyl/util/test_common.py
GiampaoloFalqui/pterradactyl
3d34f8088784c53e3d0871d8ca81f2381f2c2be9
[ "Apache-2.0" ]
2
2022-03-31T09:02:49.000Z
2022-03-31T18:56:52.000Z
tests/pterradactyl/util/test_common.py
GiampaoloFalqui/pterradactyl
3d34f8088784c53e3d0871d8ca81f2381f2c2be9
[ "Apache-2.0" ]
4
2021-12-20T18:31:47.000Z
2022-03-14T16:31:49.000Z
tests/pterradactyl/util/test_common.py
GiampaoloFalqui/pterradactyl
3d34f8088784c53e3d0871d8ca81f2381f2c2be9
[ "Apache-2.0" ]
null
null
null
import unittest from pterradactyl.util import as_list, memoize, merge_dict, lookup class TestCommonUtil(unittest.TestCase): def memoize_func(self, *arg, **kwargs): pass def test_as_list_string(self): elem = "3" r = as_list(elem) self.assertListEqual(r, list(elem)) def te...
28.704545
66
0.588282
1,177
0.931908
0
0
0
0
0
0
140
0.110847
8890ba16069cecd8d4ab8ea601bde0d4759bc1b2
15,223
py
Python
code/functions/et_import.py
behinger/etcomp
f30389da49c3416c7a723d44951d197d6e89d40e
[ "MIT" ]
20
2018-08-08T07:08:46.000Z
2022-03-07T14:49:06.000Z
code/functions/et_import.py
Tsehao/etcomp
69485f751649090f3df589e40fb515e874be207b
[ "MIT" ]
32
2017-12-05T14:05:48.000Z
2020-10-20T10:29:43.000Z
code/functions/et_import.py
Tsehao/etcomp
69485f751649090f3df589e40fb515e874be207b
[ "MIT" ]
7
2018-12-09T22:53:10.000Z
2021-11-10T09:13:04.000Z
#!/usr/bin/env python3 # -*- coding: utf-8 -*- import numpy as np import pandas as pd import os import logging from functions.et_helper import findFile,gaze_to_pandas import functions.et_parse as parse import functions.et_make_df as make_df import functions.et_helper as helper import imp # for edfread reload im...
42.522346
200
0.670564
0
0
0
0
0
0
0
0
6,956
0.45694
889138e8c38a61134d0f1c1dd8b79dfd0eb55e28
768
py
Python
EXPERIMENT_5/loader.py
PRamoneda/RL_PianoFingering
d9a42c3cb0777c54c1b3e2355128479ef97e8e63
[ "MIT" ]
4
2021-09-24T13:44:22.000Z
2022-03-23T14:03:51.000Z
EXPERIMENT_5/loader.py
PRamoneda/RL_PianoFingering
d9a42c3cb0777c54c1b3e2355128479ef97e8e63
[ "MIT" ]
null
null
null
EXPERIMENT_5/loader.py
PRamoneda/RL_PianoFingering
d9a42c3cb0777c54c1b3e2355128479ef97e8e63
[ "MIT" ]
2
2022-02-14T10:01:10.000Z
2022-03-31T15:40:06.000Z
import music21 KEY_TO_SEMITONE = {'c': 0, 'c#': 1, 'db': 1, 'd': 2, 'd#': 3, 'eb': 3, 'e': 4, 'f': 5, 'f#': 6, 'gb': 6, 'g': 7, 'g#': 8, 'ab': 8, 'a': 9, 'a#': 10, 'bb': 10, 'b': 11, 'x': None} def parse_note(note): n = KEY_TO_SEMITONE[note[:-1].lower()] octave = int(no...
21.333333
108
0.492188
0
0
0
0
0
0
0
0
107
0.139323
889140ee18ea1e06b9b18606e947a9585cb410f1
145
py
Python
DSA/Python/src/dsa/lib/math/ds/tests/fixture.py
JackieMa000/problems
c521558830a0bbf67f94109af92d7be4397d0a43
[ "BSD-3-Clause" ]
null
null
null
DSA/Python/src/dsa/lib/math/ds/tests/fixture.py
JackieMa000/problems
c521558830a0bbf67f94109af92d7be4397d0a43
[ "BSD-3-Clause" ]
1
2020-10-23T04:06:56.000Z
2020-10-23T04:06:56.000Z
DSA/Python/src/dsa/lib/math/ds/tests/fixture.py
JackieMa000/problems
c521558830a0bbf67f94109af92d7be4397d0a43
[ "BSD-3-Clause" ]
null
null
null
from dsa.lib.math.tests.fixture import MathTestCase class DsTestCase(MathTestCase): pass class ParenthesesTestCase(DsTestCase): pass
14.5
51
0.77931
87
0.6
0
0
0
0
0
0
0
0
8892e5ee057de88b320831e0b236a98d613b4df9
763
py
Python
pacu/data/roles.py
RyanJarv/Pacu2
27df4bcf296fc8f467d3dc671a47bf9519ce7a24
[ "MIT" ]
1
2022-03-09T14:51:54.000Z
2022-03-09T14:51:54.000Z
pacu/data/roles.py
RyanJarv/Pacu2
27df4bcf296fc8f467d3dc671a47bf9519ce7a24
[ "MIT" ]
null
null
null
pacu/data/roles.py
RyanJarv/Pacu2
27df4bcf296fc8f467d3dc671a47bf9519ce7a24
[ "MIT" ]
null
null
null
# import typing # # import boto3 # import typer # # import pacu.data as p # # # if typing.TYPE_CHECKING: # from mypy_boto3_iam import type_defs as t # from mypy_boto3_iam.client import IAMClient # from mypy_boto3_iam.paginator import ListRolesPaginator # # # def fetch(profile_name: typing.Optional[str] = ty...
29.346154
87
0.709043
0
0
0
0
0
0
0
0
738
0.967235
88940ecc81bb7244f9aadc5c0b28b58ae24e3599
1,698
py
Python
v2ex_daily.py
ZHLHZHU/v2ex
b8458b6834eb22fe337146251f2f1bcd2ecb1a92
[ "MIT" ]
null
null
null
v2ex_daily.py
ZHLHZHU/v2ex
b8458b6834eb22fe337146251f2f1bcd2ecb1a92
[ "MIT" ]
null
null
null
v2ex_daily.py
ZHLHZHU/v2ex
b8458b6834eb22fe337146251f2f1bcd2ecb1a92
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- import sys import re import http.cookiejar import urllib.request # your v2ex cookie value for key [auth] after login # refer README.md if cannot find cookie [auth] V2EX_COOKIE = '' V2EX_DOMAIN = r'v2ex.com' V2EX_URL_START = r'https://' + V2EX_DOMAIN V2EX_MISSION = V2EX_U...
24.257143
92
0.636631
0
0
0
0
0
0
0
0
399
0.234982
8894291bf420c1eeb84dea70fc3a6ddba70429ed
2,309
py
Python
read_env.py
sloria/read_env
90c5a7b38d70f06cd96b5d9a7e68e422bb5bd605
[ "MIT" ]
null
null
null
read_env.py
sloria/read_env
90c5a7b38d70f06cd96b5d9a7e68e422bb5bd605
[ "MIT" ]
1
2017-07-18T20:49:43.000Z
2017-07-20T15:14:10.000Z
read_env.py
sloria/read_env
90c5a7b38d70f06cd96b5d9a7e68e422bb5bd605
[ "MIT" ]
1
2018-04-11T11:55:55.000Z
2018-04-11T11:55:55.000Z
# -*- coding: utf-8 -*- import re import shlex import os import inspect __version__ = '1.1.0' try: FileNotFoundError except NameError: # Python 2 FileNotFoundError = IOError ENV = '.env' def read_env(path=None, environ=None, recurse=True): """Reads a .env file into ``environ`` (which defaults to ``os.e...
30.381579
85
0.603291
0
0
0
0
0
0
0
0
624
0.270247
889bb7e2d51608191ee475ae210800ea251a72c4
2,535
py
Python
trinity/contextgroup.py
g-r-a-n-t/trinity
f108b6cd34ed9aabfcf9e235badd91597650ecd5
[ "MIT" ]
14
2020-08-24T18:23:31.000Z
2021-11-04T14:11:04.000Z
trinity/contextgroup.py
g-r-a-n-t/trinity
f108b6cd34ed9aabfcf9e235badd91597650ecd5
[ "MIT" ]
19
2020-08-25T15:57:05.000Z
2021-07-07T00:49:45.000Z
trinity/contextgroup.py
g-r-a-n-t/trinity
f108b6cd34ed9aabfcf9e235badd91597650ecd5
[ "MIT" ]
7
2020-08-24T22:53:02.000Z
2022-03-28T18:51:48.000Z
import asyncio import sys from types import TracebackType from typing import Any, AsyncContextManager, List, Optional, Sequence, Tuple, Type from trio import MultiError from p2p.asyncio_utils import create_task class AsyncContextGroup: def __init__(self, context_managers: Sequence[AsyncContextManager[Any]]) ->...
40.887097
100
0.613018
2,319
0.914793
0
0
0
0
2,076
0.818935
454
0.179093
889d4cf4c9e065bcd8eb21c034baa0e27279103e
895
py
Python
setup.py
sophilabs/trybox-django
87776a75e995a903d08b06dc47ec54a7ce796400
[ "MIT" ]
null
null
null
setup.py
sophilabs/trybox-django
87776a75e995a903d08b06dc47ec54a7ce796400
[ "MIT" ]
null
null
null
setup.py
sophilabs/trybox-django
87776a75e995a903d08b06dc47ec54a7ce796400
[ "MIT" ]
null
null
null
from setuptools import setup, find_packages VERSION = '0.2' setup( name='trybox-django', version=VERSION, description='TryBox:Django', author='Sophilabs', author_email='[email protected]', url='https://github.com/sophilabs/trybox-django', download_url='http://github.com/sophilabs/trybo...
34.423077
122
0.660335
0
0
0
0
0
0
0
0
512
0.572067
889e2666b623f8c9aac578a42112779d0960a46c
1,152
py
Python
bflib/tables/gemsandjewelry/gemtype.py
ChrisLR/BasicDungeonRL
b293d40bd9a0d3b7aec41b5e1d58441165997ff1
[ "MIT" ]
3
2017-10-28T11:28:38.000Z
2018-09-12T09:47:00.000Z
bflib/tables/gemsandjewelry/gemtype.py
ChrisLR/BasicDungeonRL
b293d40bd9a0d3b7aec41b5e1d58441165997ff1
[ "MIT" ]
null
null
null
bflib/tables/gemsandjewelry/gemtype.py
ChrisLR/BasicDungeonRL
b293d40bd9a0d3b7aec41b5e1d58441165997ff1
[ "MIT" ]
null
null
null
from bflib.items import gems class GemTypeRow(object): __slots__ = ["min_percent", "max_percent", "gem_type"] def __init__(self, min_percent, max_percent, gem_type): self.min_percent = min_percent self.max_percent = max_percent self.gem_type = gem_type class GemTypeTable(object): ...
32
74
0.623264
1,117
0.969618
0
0
162
0.140625
0
0
36
0.03125
889e61707ed575e870d03501921a624e597540da
158
py
Python
RecPatrones/__init__.py
riemannruiz/MediaMovil
282cf498551671f97436bff563c8b1a5c2dbf4ad
[ "MIT" ]
null
null
null
RecPatrones/__init__.py
riemannruiz/MediaMovil
282cf498551671f97436bff563c8b1a5c2dbf4ad
[ "MIT" ]
1
2019-03-21T21:16:00.000Z
2019-03-21T21:16:00.000Z
RecPatrones/__init__.py
riemannruiz/MediaMovil
282cf498551671f97436bff563c8b1a5c2dbf4ad
[ "MIT" ]
3
2019-03-20T22:43:36.000Z
2019-03-27T19:16:38.000Z
from Simulacion import Optimizacion from Simulacion import Graficos from Simulacion import Genetico from Simulacion import Model_close from mylib import mylib
31.6
35
0.879747
0
0
0
0
0
0
0
0
0
0
889eb3167b3872b5371c8a539d4347c8d68744c1
760
py
Python
SBTK_League_Helper/src/tools/exceptions.py
juanchodepisa/sbtk
7cba7748e75a02b491e551d6c1be9bd7987c5051
[ "MIT" ]
null
null
null
SBTK_League_Helper/src/tools/exceptions.py
juanchodepisa/sbtk
7cba7748e75a02b491e551d6c1be9bd7987c5051
[ "MIT" ]
null
null
null
SBTK_League_Helper/src/tools/exceptions.py
juanchodepisa/sbtk
7cba7748e75a02b491e551d6c1be9bd7987c5051
[ "MIT" ]
null
null
null
# This need to be sorted out in a smarter way class InitializationError(Exception): def __init__(self, SomeClass, description): self.value = SomeClass self.description = description.format(SomeClass.__name__) def __str__(self): return self.description class ReservedValueError(Exce...
24.516129
65
0.696053
690
0.907895
0
0
0
0
0
0
45
0.059211
88a1741eae3c2334f95c70dcecbe762feec732c9
1,964
py
Python
tools/python/smessage_encryption.py
radetsky/themis
18ea2e39a7258e23ca9a5bb642691a9431c63d0b
[ "Apache-2.0" ]
1,561
2015-05-20T05:19:29.000Z
2022-03-31T17:32:55.000Z
tools/python/smessage_encryption.py
radetsky/themis
18ea2e39a7258e23ca9a5bb642691a9431c63d0b
[ "Apache-2.0" ]
536
2015-05-20T13:57:08.000Z
2022-03-15T18:02:59.000Z
tools/python/smessage_encryption.py
radetsky/themis
18ea2e39a7258e23ca9a5bb642691a9431c63d0b
[ "Apache-2.0" ]
141
2015-05-20T13:22:45.000Z
2022-03-29T01:29:40.000Z
# # Copyright (c) 2017 Cossack Labs Limited # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to i...
33.288136
109
0.726578
0
0
0
0
0
0
0
0
807
0.410896
88a50848a3ac961cc89962bc6f936cbbfc7cd63c
819
py
Python
tests/apps/test_rpc.py
PyCN/pulsar
fee44e871954aa6ca36d00bb5a3739abfdb89b26
[ "BSD-3-Clause" ]
1,410
2015-01-02T14:55:07.000Z
2022-03-28T17:22:06.000Z
tests/apps/test_rpc.py
PyCN/pulsar
fee44e871954aa6ca36d00bb5a3739abfdb89b26
[ "BSD-3-Clause" ]
194
2015-01-22T06:18:24.000Z
2020-10-20T21:21:58.000Z
tests/apps/test_rpc.py
PyCN/pulsar
fee44e871954aa6ca36d00bb5a3739abfdb89b26
[ "BSD-3-Clause" ]
168
2015-01-31T10:29:55.000Z
2022-03-14T10:22:24.000Z
'''Tests the rpc middleware and utilities. It uses the calculator example.''' import unittest from pulsar.apps import rpc from pulsar.apps.http import HttpWsgiClient class rpcTest(unittest.TestCase): def proxy(self): from examples.calculator.manage import Site http = HttpWsgiClient(Site()) ...
30.333333
79
0.660562
649
0.79243
0
0
0
0
135
0.164835
143
0.174603
88a536261708445fb27628f3196b4050db295eff
22,042
py
Python
BAN_main.py
EMBEDDIA/BAN
5f9cbb383c69f03bf8aa55fc1149f3fb78e1af11
[ "MIT" ]
2
2021-07-01T16:24:45.000Z
2021-12-08T06:59:08.000Z
BAN_main.py
EMBEDDIA/BAN
5f9cbb383c69f03bf8aa55fc1149f3fb78e1af11
[ "MIT" ]
1
2021-12-08T07:01:46.000Z
2021-12-08T07:01:46.000Z
BAN_main.py
KristianMiok/BAN
e8afc73c60152186b073d7dacc04e39888ec67fc
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """EN3-BT MCD Automatically generated by Colaboratory. Original file is located at https://colab.research.google.com/drive/1cnvSgNDexJ0cqrTWGygI_smZ0y8EIWZn """ import torch import numpy as np import tqdm import copy from torch.nn import functional as F from torch.nn.modules.module import...
35.957586
185
0.585881
19,098
0.866437
0
0
0
0
0
0
2,668
0.121042
88a59898c3adf079bc749d806b0bcd5596a4b2d8
16,974
py
Python
src/main/python/ui/jriver.py
bmiller/beqdesigner
36d0c780507a564536038e2c9fc3b03b75dedaf4
[ "MIT" ]
16
2019-04-12T00:04:56.000Z
2022-03-15T14:26:56.000Z
src/main/python/ui/jriver.py
bmiller/beqdesigner
36d0c780507a564536038e2c9fc3b03b75dedaf4
[ "MIT" ]
400
2018-08-27T10:04:00.000Z
2022-03-15T21:32:33.000Z
src/main/python/ui/jriver.py
bmiller/beqdesigner
36d0c780507a564536038e2c9fc3b03b75dedaf4
[ "MIT" ]
6
2018-09-19T21:02:27.000Z
2020-10-18T04:11:01.000Z
# -*- coding: utf-8 -*- # Form implementation generated from reading ui file 'jriver.ui' # # Created by: PyQt5 UI code generator 5.15.2 # # WARNING: Any manual changes made to this file will be lost when pyuic5 is # run again. Do not edit this file unless you know what you are doing. from PyQt5 import QtCore, QtGui...
62.175824
115
0.747143
16,589
0.977318
0
0
0
0
0
0
1,879
0.110699
88a8aa3a3b09f7b8f22914184124db2a1414e747
320
py
Python
src/sensors/__init__.py
ivanbukhtiyarov/elevators
e7ff582bbc9a26d22880bec61bede747427430c2
[ "MIT" ]
2
2021-03-22T16:12:56.000Z
2021-03-22T16:19:09.000Z
src/sensors/__init__.py
ivanbukhtiyarov/elevators
e7ff582bbc9a26d22880bec61bede747427430c2
[ "MIT" ]
46
2021-04-01T10:25:25.000Z
2021-12-26T23:43:46.000Z
src/sensors/__init__.py
ivanbukhtiyarov/elevators
e7ff582bbc9a26d22880bec61bede747427430c2
[ "MIT" ]
4
2021-04-01T10:22:46.000Z
2021-12-26T21:51:10.000Z
from src.sensors.door_block_sensor import DoorBlockSensor from src.sensors.door_state_sensor import DoorStateSensor from src.sensors.light_sensor import LightSensor from src.sensors.movement_sensor import MovementSensor from src.sensors.smoke_sensor import SmokeSensor from src.sensors.weight_sensor import WeightSensor
45.714286
57
0.8875
0
0
0
0
0
0
0
0
0
0
88a9377893db4fc2f5048d2336cea72ff934579e
888
py
Python
code/animation/sine-cosine.py
geo7/scientific-visualization-book
71f6bac4db7ee2f26e88052fe7faa800303d8b00
[ "BSD-2-Clause" ]
2
2021-11-17T15:10:09.000Z
2021-12-24T13:31:10.000Z
code/animation/sine-cosine.py
WuShichao/scientific-visualization-book
389766215aa6b234ed1cf560a3768437d41d1d37
[ "BSD-2-Clause" ]
1
2021-12-12T11:37:48.000Z
2021-12-12T11:39:00.000Z
code/animation/sine-cosine.py
WuShichao/scientific-visualization-book
389766215aa6b234ed1cf560a3768437d41d1d37
[ "BSD-2-Clause" ]
2
2021-12-30T12:20:07.000Z
2022-02-24T06:36:41.000Z
# ---------------------------------------------------------------------------- # Title: Scientific Visualisation - Python & Matplotlib # Author: Nicolas P. Rougier # License: BSD # ---------------------------------------------------------------------------- import numpy as np import matplotlib.pyplot as plt import m...
31.714286
78
0.566441
0
0
0
0
0
0
0
0
317
0.356982
88ab2de7a369fd311ec763905e71a9bc7d4f2e49
2,773
py
Python
main.py
ghostcodekc/leagueoflegends-block-chat
0d68345964344410159d834cba81da4224196f87
[ "MIT" ]
null
null
null
main.py
ghostcodekc/leagueoflegends-block-chat
0d68345964344410159d834cba81da4224196f87
[ "MIT" ]
null
null
null
main.py
ghostcodekc/leagueoflegends-block-chat
0d68345964344410159d834cba81da4224196f87
[ "MIT" ]
null
null
null
import yaml import socket import subprocess, ctypes, os, sys from subprocess import Popen, DEVNULL def read_yaml(file_path): with open(file_path, "r") as f: return yaml.safe_load(f) def check_admin(): """ Force to start application with admin rights """ try: isAdmin = ctypes.windll.shell32...
36.012987
121
0.679769
0
0
0
0
0
0
0
0
887
0.31987
88ac260681c50b787cb8306fb30da9bc778c277f
5,623
py
Python
src/Leorio/tokenization.py
majiajue/Listed-company-news-crawl-and-text-analysis
fd3b23814039cbe8fbb2e25cbadb68238e0d998b
[ "MIT" ]
635
2018-02-25T08:45:06.000Z
2022-03-30T10:05:23.000Z
src/Leorio/tokenization.py
NongMaYiSheng/Listed-company-news-crawl-and-text-analysis
fd3b23814039cbe8fbb2e25cbadb68238e0d998b
[ "MIT" ]
5
2018-10-29T16:21:28.000Z
2022-01-03T12:59:28.000Z
src/Leorio/tokenization.py
NongMaYiSheng/Listed-company-news-crawl-and-text-analysis
fd3b23814039cbe8fbb2e25cbadb68238e0d998b
[ "MIT" ]
216
2018-02-26T09:27:15.000Z
2022-03-30T10:05:26.000Z
import __init__ from Kite.database import Database from Kite import config from Kite import utils import jieba import pkuseg import logging logging.basicConfig(level=logging.INFO, format='%(asctime)s %(filename)s[line:%(lineno)d] %(levelname)s %(message)s', datefmt='%a, %d %b ...
44.626984
112
0.560377
4,651
0.744279
0
0
0
0
0
0
1,793
0.286926
88ade7f8dfd3c3fdb9f4bfa3e09536d509c88764
2,659
py
Python
Server/app/docs/signup.py
Sporrow/Sporrow-Backend
a711f8a25c0b6fdbbeff0a980fbf39a470020e23
[ "Apache-2.0" ]
null
null
null
Server/app/docs/signup.py
Sporrow/Sporrow-Backend
a711f8a25c0b6fdbbeff0a980fbf39a470020e23
[ "Apache-2.0" ]
null
null
null
Server/app/docs/signup.py
Sporrow/Sporrow-Backend
a711f8a25c0b6fdbbeff0a980fbf39a470020e23
[ "Apache-2.0" ]
null
null
null
from app.docs import SAMPLE_OBJECT_IDS ID_DUPLICATION_CHECK_GET = { 'tags': ['회원가입'], 'description': '이메일이 이미 가입되었는지를 체크(중복체크)합니다.', 'parameters': [ { 'name': 'email', 'description': '중복을 체크할 이메일', 'in': 'path', 'type': 'str', 'required': ...
22.158333
100
0.371944
0
0
0
0
0
0
0
0
1,646
0.52337
88afd99ff229803940fa1debc0013f26c15e67cf
366
py
Python
workflow/config/add_path.py
ForestMars/Coda.to
55e99a8fb1867738e0bb2292461fa2bf3a7770f7
[ "DOC", "MIT" ]
null
null
null
workflow/config/add_path.py
ForestMars/Coda.to
55e99a8fb1867738e0bb2292461fa2bf3a7770f7
[ "DOC", "MIT" ]
null
null
null
workflow/config/add_path.py
ForestMars/Coda.to
55e99a8fb1867738e0bb2292461fa2bf3a7770f7
[ "DOC", "MIT" ]
null
null
null
import sys class add_path(): def __init__(self, path): self.path = path def __enter__(self): sys.path.insert(0, self.path) def __exit__(self, exc_type, exc_value, traceback): try: sys.path.remove(self.path) except ValueError: pass """ Remove """ ...
17.428571
55
0.581967
289
0.789617
0
0
0
0
0
0
32
0.087432
88b0a8ec143545a862b4e668eb425512ef141839
295
py
Python
incal_lib/exportres.py
barel-mishal/InCal_lib
3aa63ebccf2ed3277fac55049c88178541cbb94b
[ "MIT" ]
null
null
null
incal_lib/exportres.py
barel-mishal/InCal_lib
3aa63ebccf2ed3277fac55049c88178541cbb94b
[ "MIT" ]
null
null
null
incal_lib/exportres.py
barel-mishal/InCal_lib
3aa63ebccf2ed3277fac55049c88178541cbb94b
[ "MIT" ]
null
null
null
import numpy as np import pandas as pd from collections import OrderedDict, Counter import itertools from typing import * Group = tuple[str, list[int]] Groups = list[Group] def df_groups(groups: Groups) -> pd.DataFrame: return pd.DataFrame(dict_groups.values(), index=dict_groups.keys())
22.692308
71
0.762712
0
0
0
0
0
0
0
0
0
0
88b1ab4a72c456e8f8edbf2cf4dc0a0cd36b09d4
517
py
Python
my_lambdata/my_mod.py
tatianaportsova/Lambdata_12
4cab1dc4f65d479b8f2919155c4bb6b58243d8db
[ "MIT" ]
null
null
null
my_lambdata/my_mod.py
tatianaportsova/Lambdata_12
4cab1dc4f65d479b8f2919155c4bb6b58243d8db
[ "MIT" ]
null
null
null
my_lambdata/my_mod.py
tatianaportsova/Lambdata_12
4cab1dc4f65d479b8f2919155c4bb6b58243d8db
[ "MIT" ]
null
null
null
# my_lambdata/my_mod.py def enlarge(n): """ Param n is a number Function will enlarge the number """ return n * 100 # this code breakes our ability to omport enlarge from other files # print("HELLO") # y = int(input("Please choose a number")) # print(y, enlarge(y)) if __name__ == "__main__": ...
21.541667
67
0.651838
0
0
0
0
0
0
0
0
381
0.736944
88b1b8b8cd2dc825c7e83bc1234dcf21c35cee9e
2,406
py
Python
allhub/users/users.py
srinivasreddy/allhub
ff20858c9984da5c4edd5043c39eed3b6d5d693d
[ "Apache-2.0" ]
2
2019-10-07T15:46:33.000Z
2019-11-26T04:30:39.000Z
allhub/users/users.py
srinivasreddy/allhub
ff20858c9984da5c4edd5043c39eed3b6d5d693d
[ "Apache-2.0" ]
1
2020-03-09T14:44:04.000Z
2020-03-09T14:44:04.000Z
allhub/users/users.py
srinivasreddy/allhub
ff20858c9984da5c4edd5043c39eed3b6d5d693d
[ "Apache-2.0" ]
2
2019-10-08T05:22:37.000Z
2019-10-08T06:20:47.000Z
from allhub.response import Response from enum import Enum class SubjectType(Enum): ORGANIZATION = "organization" REPOSITORY = "repository" ISSUE = "issue" PULL_REQUEST = "pull_request" NONE = None class UsersMixin: def user(self, username): """ Provides publicly available i...
30.846154
86
0.558188
2,340
0.972569
0
0
0
0
0
0
664
0.275977
88b1bbc1e2f422bb622061ec6f6d2f4ceb966b0b
22,360
bzl
Python
third_party/boringssl-with-bazel/BUILD.generated_tests.bzl
miyachu/grpc
a06ea3c3162c10ff90a1578bf82bbbff95dc799d
[ "BSD-3-Clause" ]
91
2018-11-24T05:33:58.000Z
2022-03-16T05:58:05.000Z
third_party/boringssl-with-bazel/BUILD.generated_tests.bzl
miyachu/grpc
a06ea3c3162c10ff90a1578bf82bbbff95dc799d
[ "BSD-3-Clause" ]
11
2019-06-02T23:50:17.000Z
2022-02-04T23:58:56.000Z
third_party/boringssl-with-bazel/BUILD.generated_tests.bzl
miyachu/grpc
a06ea3c3162c10ff90a1578bf82bbbff95dc799d
[ "BSD-3-Clause" ]
18
2018-11-24T10:35:29.000Z
2021-04-22T07:22:10.000Z
# This file is created by generate_build_files.py. Do not edit manually. test_support_sources = [ "src/crypto/aes/internal.h", "src/crypto/asn1/asn1_locl.h", "src/crypto/bio/internal.h", "src/crypto/bn/internal.h", "src/crypto/bn/rsaz_exp.h", "src/crypto/bytestring/internal.h", "src/crypto/...
29.228758
91
0.590474
0
0
0
0
0
0
0
0
10,471
0.468292
88b2a19329a06c11a7f27402a51fc753d23d3562
1,291
py
Python
DB_resource/code/ci.py
DaiShuHeng/shiyizhonghua_resource
6faa284292102ab97438f356cf9bf69d2472335b
[ "Apache-2.0" ]
null
null
null
DB_resource/code/ci.py
DaiShuHeng/shiyizhonghua_resource
6faa284292102ab97438f356cf9bf69d2472335b
[ "Apache-2.0" ]
1
2021-11-29T03:38:21.000Z
2021-11-29T03:38:21.000Z
DB_resource/code/ci.py
DaiShuHeng/shiyizhonghua_resource
6faa284292102ab97438f356cf9bf69d2472335b
[ "Apache-2.0" ]
13
2021-11-06T03:17:45.000Z
2021-12-02T15:12:54.000Z
# -*- coding: utf-8 -*- """ Author:by 王林清 on 2021/11/2 13:02 FileName:ci.py in shiyizhonghua_resource Tools:PyCharm python3.8.4 """ from util import get_time_str, get_json, get_file_path, save_json, \ save_split_json if __name__ == '__main__': dir_name = r'./../data/ci' authors = {} ci_jsons = [] ...
26.346939
68
0.473277
0
0
0
0
0
0
0
0
326
0.250576
88b2a9e556e312a49635b929210b47f14c9cd821
2,307
py
Python
tools/pfif-tools/app/settings.py
priyanshu-kumar02/personfinder
d5390b60709cd0ccaaade9a3b6224a60cd523ed9
[ "Apache-2.0" ]
561
2015-02-16T07:59:42.000Z
2022-03-30T17:31:21.000Z
tools/pfif-tools/app/settings.py
Anthonymcqueen21/personfinder
ee7791fbc434eb4ec5cfad449288a1e884db5b1e
[ "Apache-2.0" ]
591
2015-01-30T05:09:30.000Z
2022-02-26T09:31:25.000Z
tools/pfif-tools/app/settings.py
Anthonymcqueen21/personfinder
ee7791fbc434eb4ec5cfad449288a1e884db5b1e
[ "Apache-2.0" ]
258
2015-01-25T18:35:12.000Z
2021-12-25T01:44:14.000Z
# Copyright 2019 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing,...
26.825581
80
0.706545
0
0
0
0
0
0
0
0
1,683
0.729519
88b4ec64c6302ef8adda35ec81fbd48bb0e0a469
2,379
py
Python
tests/test_types.py
RodrigoDeRosa/related
3799cde862b8c9500931706f5f1ce5576028f642
[ "MIT" ]
190
2017-05-25T11:57:15.000Z
2022-03-17T01:44:53.000Z
tests/test_types.py
RodrigoDeRosa/related
3799cde862b8c9500931706f5f1ce5576028f642
[ "MIT" ]
42
2017-06-11T14:05:11.000Z
2021-12-14T21:12:07.000Z
tests/test_types.py
RodrigoDeRosa/related
3799cde862b8c9500931706f5f1ce5576028f642
[ "MIT" ]
18
2018-01-05T08:47:30.000Z
2022-01-28T06:24:05.000Z
# coding=utf-8 from related.types import TypedSequence, TypedMapping, TypedSet, ImmutableDict from attr.exceptions import FrozenInstanceError from related.converters import str_if_not_none from collections import OrderedDict import pytest def test_immutable_dict(): immutable = ImmutableDict(dict(a=1)) with p...
21.432432
78
0.628415
0
0
0
0
0
0
0
0
105
0.044118
88b6a45922cec7be62ee13004dcced019e40a855
2,203
py
Python
ex115Library/home.py
pepev123/PythonEx
8f39751bf87a9099d7b733aa829988595dab2344
[ "MIT" ]
null
null
null
ex115Library/home.py
pepev123/PythonEx
8f39751bf87a9099d7b733aa829988595dab2344
[ "MIT" ]
null
null
null
ex115Library/home.py
pepev123/PythonEx
8f39751bf87a9099d7b733aa829988595dab2344
[ "MIT" ]
null
null
null
def inicio(): print('\033[33m=' * 60) print('MENU PRINCIPAL'.center(50)) print('=' * 60) print('\033[34m1\033[m - \033[35mCadastrar nova pessoa\033[m') print('\033[34m2\033[m - \033[35mVer pessoas cadastradas\033[m') print('\033[34m3\033[m - \033[35mSair do Sistema\033[m') print('\033[33m=\0...
28.61039
77
0.523831
0
0
0
0
0
0
0
0
744
0.336957
88b820c740bb5a71614b2fa5da303eb9d7016011
1,613
py
Python
tornado-lab/main8.py
zhyq0826/test-lab
b5b4d1372f2201dc5299bbe8983af18e8d4e1a1a
[ "MIT" ]
null
null
null
tornado-lab/main8.py
zhyq0826/test-lab
b5b4d1372f2201dc5299bbe8983af18e8d4e1a1a
[ "MIT" ]
null
null
null
tornado-lab/main8.py
zhyq0826/test-lab
b5b4d1372f2201dc5299bbe8983af18e8d4e1a1a
[ "MIT" ]
null
null
null
import tornado.ioloop import tornado.web import tornado.gen import logging from concurrent.futures import ThreadPoolExecutor logger = logging.getLogger() logger.setLevel(logging.DEBUG) executor = ThreadPoolExecutor(max_workers=2) @tornado.gen.coroutine def callback(): """ when a function decorator with corou...
22.71831
78
0.691878
627
0.388717
0
0
261
0.16181
0
0
347
0.215127
31eefe99531de5ae9af50c89852e0a1767f078c7
12,523
py
Python
dpia/views/threats.py
ait-csr/dpia-tool
458f106e25b1d3bd2f07fd9df18bde880f4edc4a
[ "MIT" ]
4
2018-12-25T05:53:17.000Z
2022-02-07T10:07:06.000Z
dpia/views/threats.py
ait-csr/dpia-tool
458f106e25b1d3bd2f07fd9df18bde880f4edc4a
[ "MIT" ]
9
2020-02-12T00:57:33.000Z
2022-03-11T23:24:13.000Z
dpia/views/threats.py
CSR-AIT/dpia-tool
458f106e25b1d3bd2f07fd9df18bde880f4edc4a
[ "MIT" ]
null
null
null
from dpia.modules import * # @primary_assets_required # @supporting_assets_required @login_required def threat_identification(request, q_id=None): ''' Shows a list of the added supporting assets which are assigned to a primary asset. The user here selects threats from the list of generic threats or adds a ...
45.046763
231
0.649844
0
0
0
0
12,239
0.977322
0
0
4,071
0.325082
31ef1dd8e273d8cef398fef10de951765faeb7fd
10,737
py
Python
ROS/Thymio/controller.py
gyani91/Robotics
124b9df7ae82e8c9b9ad54c74292585e81c7a3bb
[ "MIT" ]
null
null
null
ROS/Thymio/controller.py
gyani91/Robotics
124b9df7ae82e8c9b9ad54c74292585e81c7a3bb
[ "MIT" ]
null
null
null
ROS/Thymio/controller.py
gyani91/Robotics
124b9df7ae82e8c9b9ad54c74292585e81c7a3bb
[ "MIT" ]
null
null
null
#!/usr/bin/env python import rospy import sys import numpy as np from geometry_msgs.msg import Pose, Twist from nav_msgs.msg import Odometry from sensor_msgs.msg import Range from math import cos, sin, asin, tan, atan2 # msgs and srv for working with the set_model_service from gazebo_msgs.msg import ModelState from ga...
37.28125
131
0.644593
9,215
0.858247
0
0
0
0
0
0
2,311
0.215237
31ef8505dceb7b8308004964199bac366c51558c
54
py
Python
src/pkgcore/merge/__init__.py
thesamesam/pkgcore
be2d9264a3fe61a323f0075cbc4838ed6ec5ffcf
[ "BSD-3-Clause" ]
null
null
null
src/pkgcore/merge/__init__.py
thesamesam/pkgcore
be2d9264a3fe61a323f0075cbc4838ed6ec5ffcf
[ "BSD-3-Clause" ]
null
null
null
src/pkgcore/merge/__init__.py
thesamesam/pkgcore
be2d9264a3fe61a323f0075cbc4838ed6ec5ffcf
[ "BSD-3-Clause" ]
null
null
null
""" package related livefs modification subsystem """
13.5
45
0.759259
0
0
0
0
0
0
0
0
53
0.981481
31efc2692f61977bbe23784db9dd5034a2c6c959
1,153
py
Python
Week 2/id_165/LeetCode_105_165.py
larryRishi/algorithm004-05
e60d0b1176acd32a9184b215e36d4122ba0b6263
[ "Apache-2.0" ]
1
2019-10-12T06:48:45.000Z
2019-10-12T06:48:45.000Z
Week 2/id_165/LeetCode_105_165.py
larryRishi/algorithm004-05
e60d0b1176acd32a9184b215e36d4122ba0b6263
[ "Apache-2.0" ]
1
2019-12-01T10:02:03.000Z
2019-12-01T10:02:03.000Z
Week 2/id_165/LeetCode_105_165.py
larryRishi/algorithm004-05
e60d0b1176acd32a9184b215e36d4122ba0b6263
[ "Apache-2.0" ]
null
null
null
# 根据一棵树的前序遍历与中序遍历构造二叉树。 # # 注意: # 你可以假设树中没有重复的元素。 # # 例如,给出 # # 前序遍历 preorder = [3,9,20,15,7] # 中序遍历 inorder = [9,3,15,20,7] # # 返回如下的二叉树: # # 3 # / \ # 9 20 # / \ # 15 7 # Related Topics 树 深度优先搜索 数组 # leetcode submit region begin(Prohibit modification and deletion) # Definition for a binary tree node...
19.542373
90
0.608846
759
0.587461
0
0
0
0
0
0
610
0.472136
31f3b0c501535082c9dc4e17a5fec3613081ac58
1,644
py
Python
GFG/cloud.py
Navya-tec/100daysofDSA
fa3338122099afdcf01b0f1725d7c5613b53bed8
[ "MIT" ]
13
2021-02-27T10:27:22.000Z
2021-10-05T13:56:28.000Z
GFG/cloud.py
Navya-tec/100daysofDSA
fa3338122099afdcf01b0f1725d7c5613b53bed8
[ "MIT" ]
15
2021-03-06T14:23:49.000Z
2022-01-29T07:10:21.000Z
GFG/cloud.py
Navya-tec/100daysofDSA
fa3338122099afdcf01b0f1725d7c5613b53bed8
[ "MIT" ]
24
2021-03-04T06:15:12.000Z
2021-11-14T22:15:13.000Z
# A child is playing a cloud hopping game. In this game, there are sequentially numbered clouds that can be thunderheads or cumulus clouds. The character must jump from cloud to cloud until it reaches the start again. # There is an array of clouds, e and an energy level e=100. The character starts from c[0] and uses 1...
68.5
309
0.695864
0
0
0
0
0
0
0
0
1,446
0.879562
31f50a275cce9e7222985c09de6a704fd2d856df
1,575
py
Python
pyACA/PitchTimeAmdf.py
ruohoruotsi/pyACA
339e9395b65a217aa5965638af941b32d5c95454
[ "MIT" ]
null
null
null
pyACA/PitchTimeAmdf.py
ruohoruotsi/pyACA
339e9395b65a217aa5965638af941b32d5c95454
[ "MIT" ]
null
null
null
pyACA/PitchTimeAmdf.py
ruohoruotsi/pyACA
339e9395b65a217aa5965638af941b32d5c95454
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ computes the lag of the amdf function Args: x: audio signal iBlockLength: block length in samples iHopLength: hop length in samples f_s: sample rate of audio data (unused) Returns: f frequency t time stamp for the frequency value """ import numpy as np impo...
23.161765
97
0.581587
0
0
0
0
0
0
0
0
418
0.265397
31f50c4b34b2287216379f7b02c2f0676d6b7602
636
py
Python
models/edit.py
DOSYCORPS/correct-the-news
92509c1bf8ba88fec273b812142f1b3d73312840
[ "MIT" ]
1
2017-10-16T16:02:33.000Z
2017-10-16T16:02:33.000Z
models/edit.py
dosyago-corp/correct-the-news
92509c1bf8ba88fec273b812142f1b3d73312840
[ "MIT" ]
3
2017-10-19T07:58:42.000Z
2017-10-21T12:01:46.000Z
models/edit.py
DOSYCORPS/correct-the-news
92509c1bf8ba88fec273b812142f1b3d73312840
[ "MIT" ]
null
null
null
from google.appengine.ext import ndb ATTACHMENTS = [ 'beforeBegin', 'afterEnd', 'middle' ] TYPES = [ 'strike', 'insert' ] class Modification(ndb.Model): type = ndb.StringProperty(choices=TYPES) start_index = ndb.IntegerProperty() trigram_at_start = ndb.StringProperty() content = ndb.StringProperty(...
23.555556
69
0.75
498
0.783019
0
0
0
0
0
0
47
0.073899
31f5361ec9609ecfe4d1234a6a87870a550e57fe
316
py
Python
depccg/lang.py
masashi-y/myccg
263fd0afa7a619626fc2d506016625b6068bb27b
[ "MIT" ]
75
2017-05-01T09:32:56.000Z
2022-03-07T02:57:31.000Z
depccg/lang.py
masashi-y/myccg
263fd0afa7a619626fc2d506016625b6068bb27b
[ "MIT" ]
23
2017-05-10T08:28:57.000Z
2022-02-15T05:15:25.000Z
depccg/lang.py
masashi-y/myccg
263fd0afa7a619626fc2d506016625b6068bb27b
[ "MIT" ]
15
2017-05-08T13:02:33.000Z
2022-03-07T01:40:26.000Z
import logging logger = logging.getLogger(__name__) GLOBAL_LANG_NAME = 'en' def set_global_language_to(lang: str) -> None: global GLOBAL_LANG_NAME logger.info('Setting the global language config to: %s', lang) GLOBAL_LANG_NAME = lang def get_global_language() -> str: return GLOBAL_LANG_NAME
17.555556
66
0.737342
0
0
0
0
0
0
0
0
47
0.148734
31f5cac689f164c99d0da2f1eb8dc6d483e34f4e
6,878
py
Python
trainfile/mfeam_shapenet-spix-disc.py
aabbcco/ssn-3d-pytorch
3b5a1bb807ce751b03501772ed9da48ac7f9f30b
[ "MIT" ]
null
null
null
trainfile/mfeam_shapenet-spix-disc.py
aabbcco/ssn-3d-pytorch
3b5a1bb807ce751b03501772ed9da48ac7f9f30b
[ "MIT" ]
null
null
null
trainfile/mfeam_shapenet-spix-disc.py
aabbcco/ssn-3d-pytorch
3b5a1bb807ce751b03501772ed9da48ac7f9f30b
[ "MIT" ]
null
null
null
import os import math import numpy as np import time import torch import torch.optim as optim from torch.utils.data import DataLoader from tensorboardX import SummaryWriter import sys sys.path.append(os.path.dirname("../")) from lib.utils.meter import Meter from models.model_MNFEAM import MFEAM_SSN from lib.dataset.s...
35.453608
112
0.577639
0
0
0
0
1,277
0.185664
0
0
1,766
0.256761
31f5d73f045c9db55e784a4166f4f9708822341f
5,331
py
Python
great_international/migrations/0023_internationaleuexitformpage_internationaleuexitformsuccesspage.py
uktrade/directory-cms
8c8d13ce29ea74ddce7a40f3dd29c8847145d549
[ "MIT" ]
6
2018-03-20T11:19:07.000Z
2021-10-05T07:53:11.000Z
great_international/migrations/0023_internationaleuexitformpage_internationaleuexitformsuccesspage.py
uktrade/directory-cms
8c8d13ce29ea74ddce7a40f3dd29c8847145d549
[ "MIT" ]
802
2018-02-05T14:16:13.000Z
2022-02-10T10:59:21.000Z
great_international/migrations/0023_internationaleuexitformpage_internationaleuexitformsuccesspage.py
uktrade/directory-cms
8c8d13ce29ea74ddce7a40f3dd29c8847145d549
[ "MIT" ]
6
2019-01-22T13:19:37.000Z
2019-07-01T10:35:26.000Z
# -*- coding: utf-8 -*- # Generated by Django 1.11.20 on 2019-05-09 12:19 from __future__ import unicode_literals import core.model_fields import core.models import core.validators import core.wagtail_fields from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migratio...
74.041667
285
0.673982
5,045
0.946352
0
0
0
0
0
0
1,593
0.298818
31f5dfe6cc07ddb8e01d014bf1bbf7cebbdd8060
3,800
py
Python
integrationtest/vm/basic/account/test_multi_users_cli_login.py
sherry546/zstack-woodpecker
54a37459f2d72ce6820974feaa6eb55772c3d2ce
[ "Apache-2.0" ]
1
2021-03-21T12:41:11.000Z
2021-03-21T12:41:11.000Z
integrationtest/vm/basic/account/test_multi_users_cli_login.py
sherry546/zstack-woodpecker
54a37459f2d72ce6820974feaa6eb55772c3d2ce
[ "Apache-2.0" ]
null
null
null
integrationtest/vm/basic/account/test_multi_users_cli_login.py
sherry546/zstack-woodpecker
54a37459f2d72ce6820974feaa6eb55772c3d2ce
[ "Apache-2.0" ]
1
2017-05-19T06:40:40.000Z
2017-05-19T06:40:40.000Z
''' New Integration Test for 2 normal users zstack-cli login @author: MengLai ''' import hashlib import zstackwoodpecker.operations.account_operations as acc_ops import zstackwoodpecker.test_util as test_util import zstackwoodpecker.test_lib as test_lib import zstackwoodpecker.test_state as test_state import...
40.860215
108
0.727105
0
0
0
0
0
0
0
0
915
0.240789
31f62416b0ccc5186e179c986b3ee82c422d3de0
5,226
py
Python
venv/Lib/site-packages/networkx/algorithms/tests/test_structuralholes.py
amelliaaas/tugastkc4
f442382c72379e911f3780543b95345a3b1c9407
[ "Apache-2.0" ]
10,024
2015-01-01T13:06:43.000Z
2022-03-31T12:45:25.000Z
venv/Lib/site-packages/networkx/algorithms/tests/test_structuralholes.py
amelliaaas/tugastkc4
f442382c72379e911f3780543b95345a3b1c9407
[ "Apache-2.0" ]
3,191
2015-01-01T18:13:11.000Z
2022-03-31T22:06:00.000Z
venv/Lib/site-packages/networkx/algorithms/tests/test_structuralholes.py
amelliaaas/tugastkc4
f442382c72379e911f3780543b95345a3b1c9407
[ "Apache-2.0" ]
3,272
2015-01-01T05:04:53.000Z
2022-03-31T17:46:35.000Z
"""Unit tests for the :mod:`networkx.algorithms.structuralholes` module.""" import math import pytest import networkx as nx class TestStructuralHoles: """Unit tests for computing measures of structural holes. The expected values for these functions were originally computed using the proprietary software ...
39
79
0.580559
5,099
0.975698
0
0
0
0
0
0
797
0.152507
31f9305a21377f64bd0e727a4e26ba7424caa0ac
39
py
Python
tests/components/logbook/__init__.py
domwillcode/home-assistant
f170c80bea70c939c098b5c88320a1c789858958
[ "Apache-2.0" ]
30,023
2016-04-13T10:17:53.000Z
2020-03-02T12:56:31.000Z
tests/components/logbook/__init__.py
jagadeeshvenkatesh/core
1bd982668449815fee2105478569f8e4b5670add
[ "Apache-2.0" ]
31,101
2020-03-02T13:00:16.000Z
2022-03-31T23:57:36.000Z
tests/components/logbook/__init__.py
jagadeeshvenkatesh/core
1bd982668449815fee2105478569f8e4b5670add
[ "Apache-2.0" ]
11,956
2016-04-13T18:42:31.000Z
2020-03-02T09:32:12.000Z
"""Tests for the logbook component."""
19.5
38
0.692308
0
0
0
0
0
0
0
0
38
0.974359
31fb74a7001125577af1d8ec0c7f1936437a0db6
19,069
py
Python
AssetAllocation.py
MomsLasanga/AssetAllocation
3729da4f73402d9162c444636002a964f26e40eb
[ "CC0-1.0" ]
null
null
null
AssetAllocation.py
MomsLasanga/AssetAllocation
3729da4f73402d9162c444636002a964f26e40eb
[ "CC0-1.0" ]
null
null
null
AssetAllocation.py
MomsLasanga/AssetAllocation
3729da4f73402d9162c444636002a964f26e40eb
[ "CC0-1.0" ]
null
null
null
""" Asset Allocation By Patrick Murrell Created 6/17/2020 This program that takes a csv positions file from fidelity.com from a Roth IRA account that contains the investments of SPAXX, FXNAX, FZILX, and FZROX. Since SPAXX is a Money Market fund then it is assumed that the money in here is not meant to be calcul...
60.536508
121
0.679637
17,213
0.902669
0
0
0
0
0
0
6,150
0.322513
31fb8c91aed632440a47a6131c0345c5540769ba
919
py
Python
setup.py
matsurih/pyknp
e4d0756868676a0c2058dbc0d8dfa77102fe0ba4
[ "BSD-3-Clause" ]
null
null
null
setup.py
matsurih/pyknp
e4d0756868676a0c2058dbc0d8dfa77102fe0ba4
[ "BSD-3-Clause" ]
null
null
null
setup.py
matsurih/pyknp
e4d0756868676a0c2058dbc0d8dfa77102fe0ba4
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python __author__ = 'Kurohashi-Kawahara Lab, Kyoto Univ.' __email__ = '[email protected]' __copyright__ = '' __license__ = 'See COPYING' import os from setuptools import setup, find_packages about = {} here = os.path.abspath(os.path.dirname(__file__)) exec(open(os.path.join(here, 'pyknp'...
27.029412
71
0.709467
0
0
0
0
0
0
0
0
277
0.301415
31fb8e7e0a458819ec76cfb1aa5beea0df8e62d1
559
py
Python
supriya/ugens/Dreset.py
deeuu/supriya
14fcb5316eccb4dafbe498932ceff56e1abb9d27
[ "MIT" ]
null
null
null
supriya/ugens/Dreset.py
deeuu/supriya
14fcb5316eccb4dafbe498932ceff56e1abb9d27
[ "MIT" ]
null
null
null
supriya/ugens/Dreset.py
deeuu/supriya
14fcb5316eccb4dafbe498932ceff56e1abb9d27
[ "MIT" ]
null
null
null
import collections from supriya import CalculationRate from supriya.ugens.DUGen import DUGen class Dreset(DUGen): """ Resets demand-rate UGens. :: >>> source = supriya.ugens.Dseries(start=0, step=2) >>> dreset = supriya.ugens.Dreset( ... reset=0, ... source=sourc...
19.964286
84
0.581395
462
0.826476
0
0
0
0
0
0
302
0.54025
31fbbf24a86c0801f6f0f2045710204934802521
1,729
py
Python
src/api/store/export.py
gregory-chekler/api
11ecbea945e7eb6fa677a0c0bb32bda51ba15f28
[ "MIT" ]
null
null
null
src/api/store/export.py
gregory-chekler/api
11ecbea945e7eb6fa677a0c0bb32bda51ba15f28
[ "MIT" ]
null
null
null
src/api/store/export.py
gregory-chekler/api
11ecbea945e7eb6fa677a0c0bb32bda51ba15f28
[ "MIT" ]
null
null
null
from database.models import Team, UserProfile from _main_.utils.massenergize_errors import MassEnergizeAPIError, InvalidResourceError, ServerError, CustomMassenergizeError from _main_.utils.massenergize_response import MassenergizeResponse from _main_.utils.context import Context class TeamStore: def __init__(self):...
29.810345
125
0.717178
1,447
0.8369
0
0
0
0
0
0
15
0.008676
31fbec348a03e3f7b7667b0fb7f3d122e939f326
1,125
py
Python
valid_parentheses.py
fossilet/leetcode
4cf787c74fc339dc6aee6a0b633ca15b38ac18a1
[ "MIT" ]
5
2015-12-10T14:19:02.000Z
2021-07-02T01:23:34.000Z
valid_parentheses.py
fossilet/leetcode
4cf787c74fc339dc6aee6a0b633ca15b38ac18a1
[ "MIT" ]
null
null
null
valid_parentheses.py
fossilet/leetcode
4cf787c74fc339dc6aee6a0b633ca15b38ac18a1
[ "MIT" ]
1
2015-10-01T01:43:14.000Z
2015-10-01T01:43:14.000Z
""" https://oj.leetcode.com/problems/valid-parentheses/ Given a string containing just the characters '(', ')', '{', '}', '[' and ']', determine if the input string is valid. The brackets must close in the correct order, "()" and "()[]{}" are all valid but "(]" and "([)]" are not. """ class Solution: # @return ...
30.405405
118
0.441778
575
0.511111
0
0
0
0
0
0
391
0.347556
31fea9ffda59127cd7bda0c20fd0fcfb295048c1
142
py
Python
joga_moeda.py
lucaslk122/Programas-python
816bdaa128f2d279c255c588c1ff61cb4b834ccd
[ "MIT" ]
null
null
null
joga_moeda.py
lucaslk122/Programas-python
816bdaa128f2d279c255c588c1ff61cb4b834ccd
[ "MIT" ]
null
null
null
joga_moeda.py
lucaslk122/Programas-python
816bdaa128f2d279c255c588c1ff61cb4b834ccd
[ "MIT" ]
null
null
null
from random import random def joga_moeda(): if random() > 0.5: return "Coroa" else: return "Cara" print (joga_moeda())
20.285714
25
0.598592
0
0
0
0
0
0
0
0
13
0.091549
31ffce463b8361c5e6ba6697268ac0aace1de85c
483
py
Python
shop/migrations/0006_auto_20171130_1638.py
zahidkizmaz/VehicleShop
5a2dc5cc4eb4c4692db9f19108818069250a950a
[ "MIT" ]
10
2017-11-29T17:41:23.000Z
2020-01-13T14:45:18.000Z
shop/migrations/0006_auto_20171130_1638.py
zahidkizmaz/VehicleShop
5a2dc5cc4eb4c4692db9f19108818069250a950a
[ "MIT" ]
1
2017-12-15T17:24:42.000Z
2017-12-17T00:05:54.000Z
shop/migrations/0006_auto_20171130_1638.py
zahidkizmaz/VehicleShop
5a2dc5cc4eb4c4692db9f19108818069250a950a
[ "MIT" ]
2
2020-03-31T00:01:27.000Z
2022-01-02T05:45:17.000Z
# -*- coding: utf-8 -*- # Generated by Django 1.11.7 on 2017-11-30 16:38 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('shop', '0005_frequentlysearched_latestsearches_soldvehicles_transaction'), ] operat...
23
84
0.641822
325
0.672878
0
0
0
0
0
0
154
0.318841
31ffd8fdd3242dbfb70cd647f01afb511ece19be
315
py
Python
settings/tests/test_global_settings.py
stanwood/traidoo-api
83e8599f2eb54352988bac27e2d4acd30734816d
[ "MIT" ]
3
2020-05-05T12:12:09.000Z
2020-05-08T08:48:16.000Z
settings/tests/test_global_settings.py
stanwood/traidoo-api
83e8599f2eb54352988bac27e2d4acd30734816d
[ "MIT" ]
160
2020-05-19T13:03:43.000Z
2022-03-12T00:35:28.000Z
settings/tests/test_global_settings.py
stanwood/traidoo-api
83e8599f2eb54352988bac27e2d4acd30734816d
[ "MIT" ]
null
null
null
import pytest from model_bakery import baker pytestmark = pytest.mark.django_db def test_get_global_settings(client_anonymous): settings = baker.make_recipe("settings.global_setting") response = client_anonymous.get("/global_settings") assert response.json() == {"productVat": settings.product_vat}
26.25
66
0.780952
0
0
0
0
0
0
0
0
55
0.174603
ee006fceb0659547ddf28bebb8b2d57c2c9c4600
181
py
Python
dotpyle/commands/add/__init__.py
jorgebodega/dotpyle
896bcb2126904b58e70c1c63af21da07438ce7b9
[ "MIT" ]
null
null
null
dotpyle/commands/add/__init__.py
jorgebodega/dotpyle
896bcb2126904b58e70c1c63af21da07438ce7b9
[ "MIT" ]
2
2021-04-15T16:36:58.000Z
2022-01-04T00:03:24.000Z
dotpyle/commands/add/__init__.py
jorgebodega/dotpyle
896bcb2126904b58e70c1c63af21da07438ce7b9
[ "MIT" ]
1
2021-12-21T16:57:21.000Z
2021-12-21T16:57:21.000Z
import click from dotpyle.commands.add.dotfile import dotfile @click.group() def add(): """ This command will take KEY and ... DOTFILE """ add.add_command(dotfile)
12.928571
48
0.674033
0
0
0
0
88
0.486188
0
0
58
0.320442
ee0270408f2e8be9f93c82f2617c2e04aaafceac
646
py
Python
benchmark/legacy/workload.py
zhangjyr/faas
a40ea1848e6b5428177319285097168faf3253de
[ "MIT" ]
null
null
null
benchmark/legacy/workload.py
zhangjyr/faas
a40ea1848e6b5428177319285097168faf3253de
[ "MIT" ]
null
null
null
benchmark/legacy/workload.py
zhangjyr/faas
a40ea1848e6b5428177319285097168faf3253de
[ "MIT" ]
null
null
null
import sys import os from common.invoker import newRequest from common.invoker import request from common.invoker import threadize port = 8080 if len(sys.argv) > 1: port = int(sys.argv[1]) workload = 10000 req = newRequest( "GET", "http://localhost:{0}/".format(port), headers = { "X-FUNCTION...
19.575758
64
0.648607
0
0
0
0
0
0
0
0
82
0.126935
ee02c3e71989e00196fcabde81e3802364cd921e
3,679
py
Python
em_net/util/misc.py
weihuang527/superhuman_network
a89820bda4d0006198bac3bb5922a958ac87f2ae
[ "MIT" ]
null
null
null
em_net/util/misc.py
weihuang527/superhuman_network
a89820bda4d0006198bac3bb5922a958ac87f2ae
[ "MIT" ]
null
null
null
em_net/util/misc.py
weihuang527/superhuman_network
a89820bda4d0006198bac3bb5922a958ac87f2ae
[ "MIT" ]
null
null
null
import sys import numpy as np import h5py import random import os from subprocess import check_output # 1. h5 i/o def readh5(filename, datasetname): data=np.array(h5py.File(filename,'r')[datasetname]) return data def writeh5(filename, datasetname, dtarray): # reduce redundant fid=h5py.File(filename,...
33.144144
131
0.611579
0
0
0
0
0
0
0
0
612
0.16635
ee02e152f754c131475d2144d7eda38e3e662a80
3,277
py
Python
Examples/VisualizationAlgorithms/Python/warpComb.py
satya-arjunan/vtk8
ee7ced57de6d382a2d12693c01e2fcdac350b25f
[ "BSD-3-Clause" ]
3
2015-07-28T18:07:50.000Z
2018-02-28T20:59:58.000Z
Examples/VisualizationAlgorithms/Python/warpComb.py
satya-arjunan/vtk8
ee7ced57de6d382a2d12693c01e2fcdac350b25f
[ "BSD-3-Clause" ]
14
2015-04-25T17:54:13.000Z
2017-01-13T15:30:39.000Z
Examples/VisualizationAlgorithms/Python/warpComb.py
satya-arjunan/vtk8
ee7ced57de6d382a2d12693c01e2fcdac350b25f
[ "BSD-3-Clause" ]
5
2020-10-02T10:14:35.000Z
2022-03-10T07:50:22.000Z
#!/usr/bin/env python # This example demonstrates how to extract "computational planes" from # a structured dataset. Structured data has a natural, logical # coordinate system based on i-j-k indices. Specifying imin,imax, # jmin,jmax, kmin,kmax pairs can indicate a point, line, plane, or # volume of data. # # In this ...
35.236559
70
0.790357
0
0
0
0
0
0
0
0
1,109
0.338419
ee0422fdb0bb9569ffe5bfce8332b0898922c7e6
1,482
py
Python
src/docs/architecture/demo.py
coding-fastandslow/testing-spring-boot-applications-masterclass
7564987d4a54e60bf59c4b0eb48ac3736e136904
[ "MIT" ]
1
2021-06-02T03:46:23.000Z
2021-06-02T03:46:23.000Z
src/docs/architecture/demo.py
coding-fastandslow/testing-spring-boot-applications-masterclass
7564987d4a54e60bf59c4b0eb48ac3736e136904
[ "MIT" ]
30
2021-08-04T02:14:16.000Z
2022-03-28T02:19:17.000Z
src/docs/architecture/demo.py
coding-fastandslow/testing-spring-boot-applications-masterclass
7564987d4a54e60bf59c4b0eb48ac3736e136904
[ "MIT" ]
1
2021-10-08T12:44:38.000Z
2021-10-08T12:44:38.000Z
from diagrams import Cluster, Diagram, Edge from diagrams.aws.compute import EC2 from diagrams.aws.database import RDS from diagrams.aws.integration import SQS from diagrams.aws.network import ELB from diagrams.aws.storage import S3 from diagrams.onprem.ci import Jenkins from diagrams.onprem.client import Client, User,...
33.681818
118
0.711876
0
0
0
0
0
0
0
0
324
0.218623
ee0479dc94dba3bc24c12f4b6da817cfb2faeead
259
py
Python
main/filesAndForms/models.py
nynguyen/sprint_zero_demo
5657ae1dac28a7085dc9cd1bc8d4d706301f5e35
[ "MIT" ]
null
null
null
main/filesAndForms/models.py
nynguyen/sprint_zero_demo
5657ae1dac28a7085dc9cd1bc8d4d706301f5e35
[ "MIT" ]
null
null
null
main/filesAndForms/models.py
nynguyen/sprint_zero_demo
5657ae1dac28a7085dc9cd1bc8d4d706301f5e35
[ "MIT" ]
null
null
null
from django.db import models class InputFile(models.Model): input = models.FileField(upload_to='input/%Y/%m/%d') next_one = models.FileField(upload_to='documents/%Y/%m/%d') name=models.CharField(max_length=100) privacy=models.BooleanField(default=False)
32.375
60
0.76834
228
0.880309
0
0
0
0
0
0
36
0.138996
ee05a479ec4cb10a4599fc18fc14885ce8e8c098
1,751
py
Python
examples/console/a_in.py
Picarro-kskog/mcculw
5a00dfbef2426772f0ec381f7795a2d5fd696a76
[ "MIT" ]
null
null
null
examples/console/a_in.py
Picarro-kskog/mcculw
5a00dfbef2426772f0ec381f7795a2d5fd696a76
[ "MIT" ]
null
null
null
examples/console/a_in.py
Picarro-kskog/mcculw
5a00dfbef2426772f0ec381f7795a2d5fd696a76
[ "MIT" ]
null
null
null
from __future__ import absolute_import, division, print_function from builtins import * # @UnusedWildImport from mcculw import ul from mcculw.ul import ULError from examples.console import util from examples.props.ai import AnalogInputProps use_device_detection = True def run_example(): board_num = 0 if...
29.677966
76
0.65791
0
0
0
0
0
0
0
0
412
0.235294
ee05eaf652dcacea5d625e928ba76476b8f2f36d
721
py
Python
Communication_adaptor/OOCSI/main.py
tahir80/Crowd_of_Oz
a79e1e8a10b99879aeff83b00ef89b480c8d168c
[ "MIT" ]
null
null
null
Communication_adaptor/OOCSI/main.py
tahir80/Crowd_of_Oz
a79e1e8a10b99879aeff83b00ef89b480c8d168c
[ "MIT" ]
3
2021-03-19T03:45:27.000Z
2022-01-13T01:38:22.000Z
Communication_adaptor/OOCSI/main.py
tahir80/Crowd_of_Oz
a79e1e8a10b99879aeff83b00ef89b480c8d168c
[ "MIT" ]
2
2020-02-19T13:58:03.000Z
2022-01-17T19:42:02.000Z
from oocsi import OOCSI from NAO_Speak import NAO_Speak # (file name followed by class name) import unidecode ################################# IP = "IP_OF_PEPPER_ROBOT" text = "" my_nao = NAO_Speak(IP, 9559) ################################## def receiveEvent(sender, recipient, event): print('from ', sender, ' ...
25.75
69
0.599168
0
0
0
0
0
0
0
0
327
0.453537
ee06d5c5bec6e01c97e370a892a4bf6a429c5e09
8,161
py
Python
CS305_Computer-Network/Lab6-cdn-dash/web_file_system_server.py
Eveneko/SUSTech-Courses
0420873110e91e8d13e6e85a974f1856e01d28d6
[ "MIT" ]
4
2020-11-11T11:56:57.000Z
2021-03-11T10:05:09.000Z
CS305_Computer-Network/Lab6-cdn-dash/web_file_system_server.py
Eveneko/SUSTech-Courses
0420873110e91e8d13e6e85a974f1856e01d28d6
[ "MIT" ]
null
null
null
CS305_Computer-Network/Lab6-cdn-dash/web_file_system_server.py
Eveneko/SUSTech-Courses
0420873110e91e8d13e6e85a974f1856e01d28d6
[ "MIT" ]
3
2021-01-07T04:14:11.000Z
2021-04-27T13:41:36.000Z
# encoding:utf-8 import asyncio import os import mimetypes from urllib import parse response = { # 200: [b'HTTP/1.0 200 OK\r\n', # 正常的response # b'Connection: close\r\n', # b'Content-Type:text/html; charset=utf-8\r\n', # b'\r\n'], 404: [b'HTTP/1.0 404 Not Found\r\n', # 请求文件不存在的r...
36.433036
110
0.527754
0
0
0
0
0
0
6,034
0.711641
3,034
0.357825
ee06e35d76242b1961bfd6577cb91d816498e4c1
157
py
Python
template/Test/components/Counter/style.py
Salenia/Orca
1b3381eb22c6c269fa3d6d9c07e997bcc92f1702
[ "MIT" ]
null
null
null
template/Test/components/Counter/style.py
Salenia/Orca
1b3381eb22c6c269fa3d6d9c07e997bcc92f1702
[ "MIT" ]
null
null
null
template/Test/components/Counter/style.py
Salenia/Orca
1b3381eb22c6c269fa3d6d9c07e997bcc92f1702
[ "MIT" ]
null
null
null
from core.object import Object style= Object({ 'btn': { 'bg': '#123321', 'fg': '#dddddd', 'font': ('Ariel', 14, 'bold') } })
17.444444
37
0.452229
0
0
0
0
0
0
0
0
50
0.318471
ee084007853fb17a734c30e770875d1d79a60983
193
py
Python
OOP/ConstructorExample5.py
suprit08/PythonAssignments
6cab78660d8c77cf573cbea82e4dada19b0fc08c
[ "MIT" ]
null
null
null
OOP/ConstructorExample5.py
suprit08/PythonAssignments
6cab78660d8c77cf573cbea82e4dada19b0fc08c
[ "MIT" ]
null
null
null
OOP/ConstructorExample5.py
suprit08/PythonAssignments
6cab78660d8c77cf573cbea82e4dada19b0fc08c
[ "MIT" ]
null
null
null
class Test: def __init__(self): self.a=10 self.b=20 def display(self): print(self.a) print(self.b) t=Test() t.display() print(t.a,t.b)
14.846154
24
0.487047
152
0.787565
0
0
0
0
0
0
0
0
ee0b159a9b052e35cbc0b56e022fa3be6c4dec93
151
py
Python
tests/testing.py
Shlol762/physics
a142e812bac2da8edec36cdd814b49ea765d9cdc
[ "MIT" ]
null
null
null
tests/testing.py
Shlol762/physics
a142e812bac2da8edec36cdd814b49ea765d9cdc
[ "MIT" ]
null
null
null
tests/testing.py
Shlol762/physics
a142e812bac2da8edec36cdd814b49ea765d9cdc
[ "MIT" ]
null
null
null
from physics import * s1, s2 = Speed(9, 3, unit='cm/s', extra_units=['cm/h']), Speed(9, 2, unit='cm/h', extra_units=['cm/h']) print(s2.distance.unit)
30.2
103
0.635762
0
0
0
0
0
0
0
0
24
0.15894
ee0b88c2d64968744709b3b0f62395d7460bc8b4
378
py
Python
Part_3_advanced/m19_concurrency_II/threading_queue/homework_1_solution/book_book/actions.py
Mikma03/InfoShareacademy_Python_Courses
3df1008c8c92831bebf1625f960f25b39d6987e6
[ "MIT" ]
null
null
null
Part_3_advanced/m19_concurrency_II/threading_queue/homework_1_solution/book_book/actions.py
Mikma03/InfoShareacademy_Python_Courses
3df1008c8c92831bebf1625f960f25b39d6987e6
[ "MIT" ]
null
null
null
Part_3_advanced/m19_concurrency_II/threading_queue/homework_1_solution/book_book/actions.py
Mikma03/InfoShareacademy_Python_Courses
3df1008c8c92831bebf1625f960f25b39d6987e6
[ "MIT" ]
null
null
null
import random import time from book_book.books_directory import books_requests_queue from book_book.rental_request import RentalRequest def rent_a_book(author: str, title: str, renter_name: str) -> None: time.sleep(random.randint(0, 1)) rental_request = RentalRequest(author=author, title=title, renter_name=...
29.076923
87
0.801587
0
0
0
0
0
0
0
0
0
0
ee0c3eec70fd399ae7e39453c7ddf4147eae1d8b
19
py
Python
tutorial/2_java/emk_rules.py
awm/emk
ee26ceb47a96e1fae8729dea19c7da4f62f798da
[ "BSD-2-Clause" ]
10
2017-04-02T13:05:55.000Z
2021-10-04T22:06:50.000Z
tutorial/2_java/emk_rules.py
awm/emk
ee26ceb47a96e1fae8729dea19c7da4f62f798da
[ "BSD-2-Clause" ]
null
null
null
tutorial/2_java/emk_rules.py
awm/emk
ee26ceb47a96e1fae8729dea19c7da4f62f798da
[ "BSD-2-Clause" ]
null
null
null
emk.module("java")
9.5
18
0.684211
0
0
0
0
0
0
0
0
6
0.315789
ee0caea10657e730ca0edcf6cea3ad5049994afa
2,111
py
Python
rally/rally-plugins/glance/glance_create_boot_delete.py
jsitnicki/browbeat
f5f9dcef2375a28fed8cc97f973eeecabd2114b7
[ "Apache-2.0" ]
null
null
null
rally/rally-plugins/glance/glance_create_boot_delete.py
jsitnicki/browbeat
f5f9dcef2375a28fed8cc97f973eeecabd2114b7
[ "Apache-2.0" ]
null
null
null
rally/rally-plugins/glance/glance_create_boot_delete.py
jsitnicki/browbeat
f5f9dcef2375a28fed8cc97f973eeecabd2114b7
[ "Apache-2.0" ]
1
2019-12-01T14:35:28.000Z
2019-12-01T14:35:28.000Z
# Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed ...
50.261905
98
0.732828
726
0.343913
0
0
1,209
0.572714
0
0
756
0.358124
ee0cf6c256acb1e19d545ad5310115b214f0b6ae
11,168
py
Python
Evaluation/hbm_axpy_dot_based.py
jnice-81/FpgaHbmForDaCe
b80749524264b4884cbd852d2db825cf8a6007aa
[ "BSD-3-Clause" ]
null
null
null
Evaluation/hbm_axpy_dot_based.py
jnice-81/FpgaHbmForDaCe
b80749524264b4884cbd852d2db825cf8a6007aa
[ "BSD-3-Clause" ]
null
null
null
Evaluation/hbm_axpy_dot_based.py
jnice-81/FpgaHbmForDaCe
b80749524264b4884cbd852d2db825cf8a6007aa
[ "BSD-3-Clause" ]
null
null
null
from typing import List import dace from dace import subsets from dace import memlet from dace import dtypes from dace.sdfg.sdfg import InterstateEdge, SDFG from dace.sdfg.state import SDFGState from dace.transformation.interstate.sdfg_nesting import NestSDFG from dace.transformation.optimizer import Optimizer from dac...
46.92437
115
0.689201
0
0
0
0
391
0.035011
0
0
1,751
0.156787
ee0db8b98c1815168cdf176d5c487ac08d4df051
1,134
py
Python
aiida_vasp/parsers/file_parsers/wavecar.py
muhrin/aiida-vasp
641fdc2ccd40bdd041e59af1fa3e1dcf9b037415
[ "MIT" ]
1
2021-06-13T09:13:01.000Z
2021-06-13T09:13:01.000Z
aiida_vasp/parsers/file_parsers/wavecar.py
muhrin/aiida-vasp
641fdc2ccd40bdd041e59af1fa3e1dcf9b037415
[ "MIT" ]
null
null
null
aiida_vasp/parsers/file_parsers/wavecar.py
muhrin/aiida-vasp
641fdc2ccd40bdd041e59af1fa3e1dcf9b037415
[ "MIT" ]
null
null
null
""" WAVECAR parser. --------------- The file parser that handles the parsing of WAVECAR files. """ from aiida_vasp.parsers.file_parsers.parser import BaseFileParser from aiida_vasp.parsers.node_composer import NodeComposer class WavecarParser(BaseFileParser): """Add WAVECAR as a single file node.""" PARSABL...
25.2
65
0.591711
907
0.799824
0
0
213
0.187831
0
0
262
0.231041
ee0f6bdca365641ee9474e0436ab4c38b5187dad
4,184
py
Python
waflib/package.py
fannymagnet/cwaf
60510f3596f1ee859ea73a50ee56dd636cde14b4
[ "Apache-2.0" ]
null
null
null
waflib/package.py
fannymagnet/cwaf
60510f3596f1ee859ea73a50ee56dd636cde14b4
[ "Apache-2.0" ]
null
null
null
waflib/package.py
fannymagnet/cwaf
60510f3596f1ee859ea73a50ee56dd636cde14b4
[ "Apache-2.0" ]
null
null
null
#! /usr/bin/env python # encoding: utf-8 import re import os import subprocess import json class Package: def __init__(self) -> None: self.manager = "" self.name = "" self.version = "" def toString(self): print('package manager:' + self.manager) print('package name:' ...
28.462585
76
0.546845
4,080
0.975143
0
0
0
0
0
0
443
0.10588
ee0fd6c103aa5c0dda88b9b7d6ada7be67c461d9
16,951
py
Python
excut/embedding/ampligraph_extend/EmbeddingModelContinue.py
mhmgad/ExCut
09e943a23207381de3c3a9e6f70015882b8ec4af
[ "Apache-2.0" ]
5
2020-11-17T19:59:49.000Z
2021-09-23T23:10:39.000Z
excut/embedding/ampligraph_extend/EmbeddingModelContinue.py
mhmgad/ExCut
09e943a23207381de3c3a9e6f70015882b8ec4af
[ "Apache-2.0" ]
null
null
null
excut/embedding/ampligraph_extend/EmbeddingModelContinue.py
mhmgad/ExCut
09e943a23207381de3c3a9e6f70015882b8ec4af
[ "Apache-2.0" ]
null
null
null
from copy import deepcopy import numpy as np import tensorflow as tf from ampligraph.datasets import NumpyDatasetAdapter, AmpligraphDatasetAdapter from ampligraph.latent_features import SGDOptimizer, constants from ampligraph.latent_features.initializers import DEFAULT_XAVIER_IS_UNIFORM from ampligraph.latent_features...
51.21148
128
0.610583
16,411
0.968029
0
0
0
0
0
0
5,743
0.33876
ee1052ee4cf13eb970ced19001be494a24ecb620
1,518
py
Python
projects/Happy Times/num2txt.py
jsportland/jssmith.biz
1184e4c0c011d0b9bfdbe8e813c08c2a9b436fdd
[ "MIT" ]
null
null
null
projects/Happy Times/num2txt.py
jsportland/jssmith.biz
1184e4c0c011d0b9bfdbe8e813c08c2a9b436fdd
[ "MIT" ]
7
2020-06-05T21:15:16.000Z
2021-09-22T18:43:04.000Z
projects/Happy Times/num2txt.py
jsportland/jsportland.github.io
1184e4c0c011d0b9bfdbe8e813c08c2a9b436fdd
[ "MIT" ]
null
null
null
# num2txt.py # Jeff Smith ''' Convert a given number into its text representation. e.g. 67 becomes 'sixty-seven'. Handle numbers from 0-99. ''' # Create dictionaries of number-text key pairs ones = {0: '', 1: 'one', 2: 'two', 3: 'three', 4: 'four', 5: 'five', 6: 'six', 7: 'seven', 8: 'eight', 9: 'nine'} twos...
31.625
103
0.550725
0
0
0
0
0
0
0
0
738
0.486166
ee1117aa879343fdc2d1539ab537208c88466d45
1,811
py
Python
src/pointers/struct.py
ZeroIntensity/pointers.py
c41b0a131d9d538130cf61b19be84c6cdf251cb7
[ "MIT" ]
461
2022-03-10T03:05:30.000Z
2022-03-31T17:53:32.000Z
src/pointers/struct.py
ZeroIntensity/pointers.py
c41b0a131d9d538130cf61b19be84c6cdf251cb7
[ "MIT" ]
7
2022-03-11T03:55:01.000Z
2022-03-23T20:34:21.000Z
src/pointers/struct.py
ZeroIntensity/pointers.py
c41b0a131d9d538130cf61b19be84c6cdf251cb7
[ "MIT" ]
8
2022-03-10T19:30:37.000Z
2022-03-23T20:35:11.000Z
import ctypes from typing import get_type_hints, Any from abc import ABC from .c_pointer import TypedCPointer, attempt_decode from contextlib import suppress class Struct(ABC): """Abstract class representing a struct.""" def __init__(self, *args, **kwargs): hints = get_type_hints(self.__cl...
29.688525
102
0.59746
1,643
0.907234
0
0
283
0.156267
0
0
174
0.09608
ee11a749896f2dac758fc2f13a4c31bc96f85f10
4,852
py
Python
cs15211/KthSmallestNumberinMultiplicationTable.py
JulyKikuAkita/PythonPrac
0ba027d9b8bc7c80bc89ce2da3543ce7a49a403c
[ "Apache-2.0" ]
1
2021-07-05T01:53:30.000Z
2021-07-05T01:53:30.000Z
cs15211/KthSmallestNumberinMultiplicationTable.py
JulyKikuAkita/PythonPrac
0ba027d9b8bc7c80bc89ce2da3543ce7a49a403c
[ "Apache-2.0" ]
null
null
null
cs15211/KthSmallestNumberinMultiplicationTable.py
JulyKikuAkita/PythonPrac
0ba027d9b8bc7c80bc89ce2da3543ce7a49a403c
[ "Apache-2.0" ]
1
2018-01-08T07:14:08.000Z
2018-01-08T07:14:08.000Z
__source__ = 'https://leetcode.com/problems/kth-smallest-number-in-multiplication-table/' # Time: O() # Space: O() # # Description: Leetcode # 668. Kth Smallest Number in Multiplication Table # # Nearly every one have used the Multiplication Table. # But could you find out the k-th smallest number quickly from the mul...
25.671958
103
0.523495
614
0.126546
0
0
0
0
0
0
4,221
0.869951
ee11bc1258b4bdb1e1c427f2c1da2afcdccd329f
1,141
py
Python
examples/python3/force_platform.py
pariterre/ezc3d
53999b44a17819dc86e485f99887cea5ee4b7112
[ "MIT" ]
83
2018-05-26T00:08:14.000Z
2022-03-31T17:08:41.000Z
examples/python3/force_platform.py
pariterre/ezc3d
53999b44a17819dc86e485f99887cea5ee4b7112
[ "MIT" ]
183
2018-05-23T18:09:59.000Z
2022-03-31T18:36:04.000Z
examples/python3/force_platform.py
pariterre/ezc3d
53999b44a17819dc86e485f99887cea5ee4b7112
[ "MIT" ]
37
2018-07-20T14:15:30.000Z
2021-12-09T06:40:26.000Z
import ezc3d # This example reads a file that contains 2 force platforms. It thereafter print some metadata and data for one them c3d = ezc3d.c3d("../c3dFiles/ezc3d-testFiles-master/ezc3d-testFiles-master/Qualisys.c3d", extract_forceplat_data=True) print(f"Number of force platform = {len(c3d['data']['platform'])}") ...
36.806452
118
0.688869
0
0
0
0
0
0
0
0
885
0.775635
ee12205ea3c9735342c4affa7e463d604044c45b
7,062
py
Python
docs/html_docs/get_classes_in_file.py
ACea15/pyNastran
5ffc37d784b52c882ea207f832bceb6b5eb0e6d4
[ "BSD-3-Clause" ]
293
2015-03-22T20:22:01.000Z
2022-03-14T20:28:24.000Z
docs/html_docs/get_classes_in_file.py
ACea15/pyNastran
5ffc37d784b52c882ea207f832bceb6b5eb0e6d4
[ "BSD-3-Clause" ]
512
2015-03-14T18:39:27.000Z
2022-03-31T16:15:43.000Z
docs/html_docs/get_classes_in_file.py
ACea15/pyNastran
5ffc37d784b52c882ea207f832bceb6b5eb0e6d4
[ "BSD-3-Clause" ]
136
2015-03-19T03:26:06.000Z
2022-03-25T22:14:54.000Z
from __future__ import print_function, unicode_literals import os from io import open from pyNastran.utils.log import get_logger2 import shutil IGNORE_DIRS = ['src', 'dmap', 'solver', '__pycache__', 'op4_old', 'calculix', 'bars', 'case_control', 'pch', 'old', 'solver', 'test', 'dev', 'bkp...
35.487437
94
0.585387
0
0
0
0
0
0
0
0
2,381
0.337157
ee139bfd29a89a7a4a5d77d7a8c7900ad5b256b6
4,650
py
Python
tests/utils/postprocess/test_top.py
ToucanToco/toucan-data-sdk
1d82b7112231b65f8a310327b6d6673d137b7378
[ "BSD-3-Clause" ]
9
2017-12-21T23:09:10.000Z
2020-08-20T13:53:24.000Z
tests/utils/postprocess/test_top.py
ToucanToco/toucan-data-sdk
1d82b7112231b65f8a310327b6d6673d137b7378
[ "BSD-3-Clause" ]
144
2017-11-24T17:23:02.000Z
2022-03-28T02:34:15.000Z
tests/utils/postprocess/test_top.py
ToucanToco/toucan-data-sdk
1d82b7112231b65f8a310327b6d6673d137b7378
[ "BSD-3-Clause" ]
5
2018-03-07T13:22:01.000Z
2021-05-31T11:53:07.000Z
import pandas as pd from toucan_data_sdk.utils.postprocess import top, top_group def test_top(): """ It should return result for top """ data = pd.DataFrame( [ {'variable': 'toto', 'Category': 1, 'value': 100}, {'variable': 'toto', 'Category': 1, 'value': 200}, {'v...
33.214286
96
0.476129
0
0
0
0
0
0
0
0
1,969
0.423441
ee13fe06ca5c309a9828923b3634c76483f38157
2,439
py
Python
Main/models.py
semvis123/Project-Webtechnologie
09f56fba96c7352a52a00cf4c3b6e1b83022aa6e
[ "MIT" ]
null
null
null
Main/models.py
semvis123/Project-Webtechnologie
09f56fba96c7352a52a00cf4c3b6e1b83022aa6e
[ "MIT" ]
null
null
null
Main/models.py
semvis123/Project-Webtechnologie
09f56fba96c7352a52a00cf4c3b6e1b83022aa6e
[ "MIT" ]
null
null
null
from Main import db, login_manager from faker import Faker from flask_login import UserMixin from werkzeug.security import generate_password_hash, check_password_hash fake = Faker() @login_manager.user_loader def load_user(user_id): return User.query.get(user_id) class User(db.Model, UserMixin): __tablenam...
30.111111
97
0.671587
2,156
0.883969
0
0
85
0.03485
0
0
218
0.089381
ee14c24926c18fc83e37f709865f20c7c3816477
2,199
py
Python
MoveRestructure.py
bsmarine/dicomConversionToNiftiHCC
ea8d4c922a299a2b9e1936bdb08c22d445e48db7
[ "BSD-3-Clause" ]
1
2021-06-25T17:13:37.000Z
2021-06-25T17:13:37.000Z
MoveRestructure.py
bsmarine/dicomConversionToNiftiHCC
ea8d4c922a299a2b9e1936bdb08c22d445e48db7
[ "BSD-3-Clause" ]
null
null
null
MoveRestructure.py
bsmarine/dicomConversionToNiftiHCC
ea8d4c922a299a2b9e1936bdb08c22d445e48db7
[ "BSD-3-Clause" ]
1
2021-07-08T22:27:57.000Z
2021-07-08T22:27:57.000Z
import sys import os import SimpleITK as sitk import pydicom from slugify import slugify import shutil import argparse def gen_dcm_identifiers(in_dir): ##Get Absolute Path For Every DCM File Recursively dcms_path_list = [os.path.abspath(os.path.join(dire,dcm)) for dire,sub_dir,dcms in os.walk(in_dir) if 'dcm' ...
36.04918
141
0.622556
0
0
0
0
0
0
0
0
322
0.14643
ee1671d5719714f90ce4ce8110a4344a83fa25b3
2,384
py
Python
mesmerize_napari/cnmf_viz_gui.py
nel-lab/mesmerize-napari
24f0c92c0c78eecdd063c82fe6d5ff8f1179fc1b
[ "Apache-2.0" ]
1
2022-01-11T16:18:17.000Z
2022-01-11T16:18:17.000Z
mesmerize_napari/cnmf_viz_gui.py
nel-lab/caiman-napari-prototype
24f0c92c0c78eecdd063c82fe6d5ff8f1179fc1b
[ "Apache-2.0" ]
12
2022-01-11T16:21:01.000Z
2022-02-17T04:43:50.000Z
mesmerize_napari/cnmf_viz_gui.py
nel-lab/mesmerize-napari
24f0c92c0c78eecdd063c82fe6d5ff8f1179fc1b
[ "Apache-2.0" ]
null
null
null
from PyQt5 import QtWidgets from .cnmf_viz_pytemplate import Ui_VizualizationWidget from .evaluate_components import EvalComponentsWidgets from mesmerize_core.utils import * from mesmerize_core import * import caiman as cm class VizWidget(QtWidgets.QDockWidget): def __init__(self, cnmf_viewer, batch_item): ...
38.451613
79
0.693792
2,158
0.905201
0
0
0
0
0
0
120
0.050336
ee1b99ad06589e6918f63fd1de2e355976ecde19
7,459
py
Python
graphics/text/config.py
sergeirocks100/satanicinfestation
3eff98631b71207ffbf5aa9791e194ebf41e2027
[ "CC-BY-4.0" ]
5
2020-04-28T02:59:08.000Z
2022-02-26T20:32:54.000Z
graphics/text/config.py
sergeirocks100/satanicinfestation
3eff98631b71207ffbf5aa9791e194ebf41e2027
[ "CC-BY-4.0" ]
null
null
null
graphics/text/config.py
sergeirocks100/satanicinfestation
3eff98631b71207ffbf5aa9791e194ebf41e2027
[ "CC-BY-4.0" ]
null
null
null
# SPDX-License-Identifier: BSD-3-Clause # # Configuration file for textgen. This file defines the graphic lumps # that are generated, and the text to show in each one. # import re # Adjustments for character position based on character pairs. Some # pairs of characters can fit more snugly together, which looks more #...
28.14717
78
0.553962
0
0
0
0
0
0
0
0
4,818
0.645931
ee1bd9711953e27dca2cb44d9b6e0151df623ebc
1,840
py
Python
generateFuncdb.py
daeken/GrinningSoul
d35ac197dade35d8a831ffb10fffd2ec93a791ea
[ "Apache-2.0" ]
94
2020-11-22T00:35:08.000Z
2022-02-22T15:45:41.000Z
generateFuncdb.py
CrackerCat/GrinningSoul
d35ac197dade35d8a831ffb10fffd2ec93a791ea
[ "Apache-2.0" ]
1
2021-05-14T14:18:23.000Z
2021-05-15T16:03:24.000Z
generateFuncdb.py
CrackerCat/GrinningSoul
d35ac197dade35d8a831ffb10fffd2ec93a791ea
[ "Apache-2.0" ]
8
2020-11-22T10:23:26.000Z
2022-02-22T08:34:46.000Z
import fnmatch, os, subprocess from multiprocessing import Pool import tqdm sdkPath = subprocess.check_output('xcodebuild -version -sdk iphonesimulator Path', shell=True).strip() def parseSymbols(fn): args = [ 'headerparser_output/headerparse', fn, '-ObjC', '-fmodules', '-isysroot', sdkPath, '-I%s/usr/...
27.462687
102
0.658696
0
0
0
0
0
0
0
0
438
0.238043
ee1f75cb3cbebacad1e1938152badf91c6fd14cd
1,331
py
Python
src/cli/dcos_vagrant/commands/wait.py
Fabs/dcos-e2e
8836dfa5b83f9d61e92b8b4bd8b058404a3bdc20
[ "Apache-2.0" ]
null
null
null
src/cli/dcos_vagrant/commands/wait.py
Fabs/dcos-e2e
8836dfa5b83f9d61e92b8b4bd8b058404a3bdc20
[ "Apache-2.0" ]
null
null
null
src/cli/dcos_vagrant/commands/wait.py
Fabs/dcos-e2e
8836dfa5b83f9d61e92b8b4bd8b058404a3bdc20
[ "Apache-2.0" ]
null
null
null
""" Tools for waiting for a cluster. """ import click import click_spinner import urllib3 from cli.common.options import ( superuser_password_option, superuser_username_option, ) from ._common import ClusterVMs from ._options import existing_cluster_id_option @click.command('wait') @existing_cluster_id_opt...
26.62
79
0.689707
0
0
0
0
1,057
0.79414
0
0
315
0.236664
ee203c8c6303ac213b7e84dfaa580b41ed282776
1,922
py
Python
Think Complexity/GraphCode.py
henry-zhuang/reading-lists
128b71b24cd49e346df74bee8126d3d3ef0907df
[ "BSD-2-Clause" ]
3
2017-11-06T06:28:07.000Z
2021-12-28T07:04:57.000Z
Think Complexity/GraphCode.py
henry-zhuang/reading-lists
128b71b24cd49e346df74bee8126d3d3ef0907df
[ "BSD-2-Clause" ]
null
null
null
Think Complexity/GraphCode.py
henry-zhuang/reading-lists
128b71b24cd49e346df74bee8126d3d3ef0907df
[ "BSD-2-Clause" ]
null
null
null
class Graph(dict): """A Graph is a dictionary of dictionaris. The outer dictionary maps from a vertex to an inner dictionary. The inner dictionary maps from other vertices to edges. For vertices a and b, graph([a, b], [ab]) maps to the edge that connects a->b, if it exists.""" def __init__(sel...
25.972973
72
0.565557
1,761
0.916233
0
0
0
0
0
0
992
0.516129
ee2050a50daad419401ba669fc24c584b7a2b6fa
65
py
Python
tests/__init__.py
GraphQL-python-archive/graphql-env
d82c02c4a82486c69a1a2fa9c262d74f335bdf26
[ "MIT" ]
null
null
null
tests/__init__.py
GraphQL-python-archive/graphql-env
d82c02c4a82486c69a1a2fa9c262d74f335bdf26
[ "MIT" ]
3
2019-07-24T21:05:52.000Z
2021-11-15T17:46:27.000Z
tests/__init__.py
GraphQL-python-archive/graphql-env
d82c02c4a82486c69a1a2fa9c262d74f335bdf26
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """Unit test package for graphql_env."""
21.666667
40
0.6
0
0
0
0
0
0
0
0
63
0.969231
ee2135f4afd77e09b1a2e652846d3ab3f3aa9ee1
3,642
py
Python
model/gastric_cancer_ResNet_cnn.py
bd-z/Gastric_Biopsy_Cancer_Detector
fac18b6484ff10b09b50eb6d81af9984f9fe3019
[ "MIT" ]
1
2022-01-08T14:19:31.000Z
2022-01-08T14:19:31.000Z
model/gastric_cancer_ResNet_cnn.py
bd-z/Gastric_Biopsy_Cancer_Detector
fac18b6484ff10b09b50eb6d81af9984f9fe3019
[ "MIT" ]
null
null
null
model/gastric_cancer_ResNet_cnn.py
bd-z/Gastric_Biopsy_Cancer_Detector
fac18b6484ff10b09b50eb6d81af9984f9fe3019
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Fri Sep 3 20:33:21 2021 @author: zhang """ import os import numpy as np import pandas as pd import tensorflow as tf from sklearn.model_selection import train_test_split from sklearn.utils import shuffle import tensorflow.keras as keras from tensorflow.keras.preprocessing import ...
23.197452
124
0.720209
0
0
0
0
0
0
0
0
964
0.26469
ee245853feab4e3b1a6bbf63e986448df5eef06f
2,280
py
Python
esim_torch/test_single_pixel.py
Giamm9998/face_detection_on_sim_events
d0917a3fff9427f3b898834f37f7e5ff03c3c8e0
[ "MIT" ]
null
null
null
esim_torch/test_single_pixel.py
Giamm9998/face_detection_on_sim_events
d0917a3fff9427f3b898834f37f7e5ff03c3c8e0
[ "MIT" ]
null
null
null
esim_torch/test_single_pixel.py
Giamm9998/face_detection_on_sim_events
d0917a3fff9427f3b898834f37f7e5ff03c3c8e0
[ "MIT" ]
null
null
null
import torch import matplotlib.pyplot as plt import numpy as np import glob import cv2 from esim_torch import EventSimulator_torch def increasing_sin_wave(t): return (400 * np.sin((t-t[0])*20*np.pi)*(t-t[0])+150).astype("uint8").reshape((-1,1,1)) if __name__ == "__main__": c = 0.2 refractory_period_ns = ...
33.043478
91
0.638158
0
0
0
0
0
0
0
0
319
0.139912
ee24a1450e91db84cc047da4850276c21c83ee5a
6,642
py
Python
load_csv.py
alexkchew/AppSciTools
7fff312115bd109a5391adff9e0f9cdec8ebbdab
[ "MIT" ]
null
null
null
load_csv.py
alexkchew/AppSciTools
7fff312115bd109a5391adff9e0f9cdec8ebbdab
[ "MIT" ]
null
null
null
load_csv.py
alexkchew/AppSciTools
7fff312115bd109a5391adff9e0f9cdec8ebbdab
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ load_csv.py This script controlls all load csv information. Created on: Fri Jul 16 15:54:43 2021 Author: Alex K. Chew ([email protected]) Copyright Schrodinger, LLC. All rights reserved. """ # Loading modules import os import pandas as pd import numpy as n...
33.545455
117
0.609907
0
0
0
0
0
0
0
0
3,666
0.551942
ee24a2a2d1d21059fb919ebc02526d5846c7d278
303
py
Python
ivory/layers/__init__.py
daizutabi/scratch
4c56fad47da0938eda89f3c2b6cb2f1919bee180
[ "MIT" ]
null
null
null
ivory/layers/__init__.py
daizutabi/scratch
4c56fad47da0938eda89f3c2b6cb2f1919bee180
[ "MIT" ]
null
null
null
ivory/layers/__init__.py
daizutabi/scratch
4c56fad47da0938eda89f3c2b6cb2f1919bee180
[ "MIT" ]
null
null
null
from ivory.layers import (activation, affine, convolution, core, dropout, embedding, loss, normalization, recurrent) __all__ = [ "activation", "affine", "convolution", "core", "dropout", "embedding", "loss", "normalization", "recurrent", ]
20.2
73
0.574257
0
0
0
0
0
0
0
0
91
0.30033