hexsha
stringlengths
40
40
size
int64
4
1.02M
ext
stringclasses
8 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
4
209
max_stars_repo_name
stringlengths
5
121
max_stars_repo_head_hexsha
stringlengths
40
40
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
191k
⌀
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
⌀
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
⌀
max_issues_repo_path
stringlengths
4
209
max_issues_repo_name
stringlengths
5
121
max_issues_repo_head_hexsha
stringlengths
40
40
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
67k
⌀
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
⌀
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
⌀
max_forks_repo_path
stringlengths
4
209
max_forks_repo_name
stringlengths
5
121
max_forks_repo_head_hexsha
stringlengths
40
40
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
105k
⌀
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
⌀
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
⌀
content
stringlengths
4
1.02M
avg_line_length
float64
1.07
66.1k
max_line_length
int64
4
266k
alphanum_fraction
float64
0.01
1
adab2dac2845e04d5eba6f308ca8ebc5f47723d4
3,012
py
Python
cfg.py
danrue/jipdate
016556b30f8668195f5cca153fb948ed928644e5
[ "MIT" ]
1
2018-10-23T01:57:06.000Z
2018-10-23T01:57:06.000Z
cfg.py
andersson/jipdate
d82da97555e20c2563580c5beededa6a9e362a2c
[ "MIT" ]
null
null
null
cfg.py
andersson/jipdate
d82da97555e20c2563580c5beededa6a9e362a2c
[ "MIT" ]
null
null
null
import os import sys import yaml # Local files from helper import vprint, eprint TEST_SERVER = 'https://dev-projects.linaro.org' PRODUCTION_SERVER = 'https://projects.linaro.org' server = PRODUCTION_SERVER args = None # Config file paths and name, basically we allow the user to store the # .config.yml/config.yml in...
28.961538
80
0.666003
eab206581a71fac665f3ab17a5f5185226328fdf
2,012
py
Python
app.py
coelebs/culler
c5fd8aaf525713df07f40355a180ed0e0178c380
[ "MIT" ]
null
null
null
app.py
coelebs/culler
c5fd8aaf525713df07f40355a180ed0e0178c380
[ "MIT" ]
null
null
null
app.py
coelebs/culler
c5fd8aaf525713df07f40355a180ed0e0178c380
[ "MIT" ]
null
null
null
#!/usr/bin/env python import os from images import RawFolder from kivy.app import App from kivy.core.window import Window from kivy.uix.image import Image from kivy.uix.label import Label from kivy.uix.floatlayout import FloatLayout class Photo(FloatLayout): def __init__(self, **kwargs): super(Photo, sel...
32.983607
93
0.625746
4a7b8aed6378287ddc362c4dc25a833a0a58d2f5
4,558
py
Python
src/ot_sparse_projection/sinkhorn.py
arolet/ot-sparse-projection
10952b9d0565a0a2b3476c28f2b8cef196fbc2c3
[ "MIT" ]
null
null
null
src/ot_sparse_projection/sinkhorn.py
arolet/ot-sparse-projection
10952b9d0565a0a2b3476c28f2b8cef196fbc2c3
[ "MIT" ]
null
null
null
src/ot_sparse_projection/sinkhorn.py
arolet/ot-sparse-projection
10952b9d0565a0a2b3476c28f2b8cef196fbc2c3
[ "MIT" ]
1
2021-06-03T16:19:55.000Z
2021-06-03T16:19:55.000Z
import numpy as np import warnings from ot_sparse_projection import log_utils from ot_sparse_projection.histograms import assert_histograms, rescale, log_with_zeros, log_rescaled def divide_with_zeros(x, y): div = (x / y).ravel() zeros = np.where(x.ravel() == 0)[0] if zeros.size > 0: div[zeros] = ...
40.336283
117
0.616279
e60ea7adeda28f1817540f120f00550acaf83a40
6,119
py
Python
astroquery/splatalogue/tests/test_splatalogue.py
hdevillepoix/astroquery
ce8c500c28424fe841e04741d4230b8f695ee194
[ "BSD-3-Clause" ]
1
2019-11-12T22:38:37.000Z
2019-11-12T22:38:37.000Z
astroquery/splatalogue/tests/test_splatalogue.py
hdevillepoix/astroquery
ce8c500c28424fe841e04741d4230b8f695ee194
[ "BSD-3-Clause" ]
2
2020-10-29T19:55:25.000Z
2021-05-14T19:17:44.000Z
astroquery/splatalogue/tests/test_splatalogue.py
hdevillepoix/astroquery
ce8c500c28424fe841e04741d4230b8f695ee194
[ "BSD-3-Clause" ]
1
2018-06-22T12:44:24.000Z
2018-06-22T12:44:24.000Z
# Licensed under a 3-clause BSD style license - see LICENSE.rst import os import pytest import requests from astropy import units as u from astropy.tests.helper import remote_data from ... import splatalogue from ...utils.testing_tools import MockResponse SPLAT_DATA = 'CO_colons.csv' def data_path(filename): ...
36.640719
81
0.592907
fee345c95ea3e7bf68487dfb1d90be4de7a9f5b9
1,998
py
Python
stackoversight/scraping/thread_executioner.py
ashersnavely/stackoversight
d7c145c1cdd81c36cc83a0b9f5edc4bccf4e3783
[ "BSD-2-Clause" ]
null
null
null
stackoversight/scraping/thread_executioner.py
ashersnavely/stackoversight
d7c145c1cdd81c36cc83a0b9f5edc4bccf4e3783
[ "BSD-2-Clause" ]
null
null
null
stackoversight/scraping/thread_executioner.py
ashersnavely/stackoversight
d7c145c1cdd81c36cc83a0b9f5edc4bccf4e3783
[ "BSD-2-Clause" ]
null
null
null
import ctypes import logging import threading from queue import Queue class ThreadExecutioner: @staticmethod def mass_murder(victims: Queue): try: while True: victim = victims.get(block=True) ThreadExecutioner.murder(victim) except SystemExit: ...
33.3
118
0.62963
72713486ab65534ff6edc0ee813ae53003855963
10,436
py
Python
docs/source/conf.py
thrasibule/dask
13e76e33217532d0e28be023aacd0d02188c201f
[ "BSD-3-Clause" ]
null
null
null
docs/source/conf.py
thrasibule/dask
13e76e33217532d0e28be023aacd0d02188c201f
[ "BSD-3-Clause" ]
null
null
null
docs/source/conf.py
thrasibule/dask
13e76e33217532d0e28be023aacd0d02188c201f
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- # # dask documentation build configuration file, created by # sphinx-quickstart on Sun Jan 4 08:58:22 2015. # # This file is execfile()d with the current directory set to its containing dir. # # Note that not all possible configuration values are present in this # autogenerated file. # # All co...
33.130159
93
0.692986
221f8f3d7c1c7374101bb7d55f1a7795bfcf51b6
5,237
py
Python
jumpscale/packages/marketplace/chats/cryptpad.py
threefoldtech/js-sdk
811f783ac34a60225175bab2d806802a87b9d5c7
[ "Apache-2.0" ]
13
2020-09-02T09:05:08.000Z
2022-03-12T02:43:24.000Z
jumpscale/packages/marketplace/chats/cryptpad.py
threefoldtech/js-sdk
811f783ac34a60225175bab2d806802a87b9d5c7
[ "Apache-2.0" ]
1,998
2020-06-15T11:46:10.000Z
2022-03-24T22:12:41.000Z
jumpscale/packages/marketplace/chats/cryptpad.py
threefoldtech/js-sdk
811f783ac34a60225175bab2d806802a87b9d5c7
[ "Apache-2.0" ]
8
2020-09-29T06:50:35.000Z
2021-06-14T03:30:52.000Z
from jumpscale.sals.chatflows.chatflows import chatflow_step from jumpscale.sals.marketplace import MarketPlaceAppsChatflow, deployer from jumpscale.sals.reservation_chatflow import deployment_context, DeploymentFailed class CryptpadDeploy(MarketPlaceAppsChatflow): FLIST_URL = "https://hub.grid.tf/waleedhammam.3b...
39.977099
191
0.601871
a0522eba8ab5941b17ada7f8b06a99cb694bdaf6
194
py
Python
src/ptpip/constants/device/internal_flash_manual.py
DethCount/ptpip-d5300
ed2f8a46600f2bb3330a7e5f4d5d47cf93fc10bd
[ "MIT" ]
null
null
null
src/ptpip/constants/device/internal_flash_manual.py
DethCount/ptpip-d5300
ed2f8a46600f2bb3330a7e5f4d5d47cf93fc10bd
[ "MIT" ]
null
null
null
src/ptpip/constants/device/internal_flash_manual.py
DethCount/ptpip-d5300
ed2f8a46600f2bb3330a7e5f4d5d47cf93fc10bd
[ "MIT" ]
null
null
null
from enum import Enum class InternalFlashManual(Enum): Full = 0x00 Half = 0x01 Quarter = 0x02 OneOver8 = 0x03 OneOver16 = 0x04 OneOver32 = 0x05
19.4
32
0.572165
50ad8017613c144788bdcaed3d855b4a89a41346
1,936
py
Python
mosqito/sound_level_meter/noct_spectrum/_n_oct_time_filter.py
TinaTabo/MoSQITo
7d8e94cca73c703919c4b5163f84db0c82e4aaab
[ "Apache-2.0" ]
1
2022-02-20T15:09:32.000Z
2022-02-20T15:09:32.000Z
mosqito/sound_level_meter/noct_spectrum/_n_oct_time_filter.py
Igarciac117/MoSQITo
a52f9ff120db9f9c46f4309d28d9e1568a5b4120
[ "Apache-2.0" ]
1
2022-02-22T09:13:20.000Z
2022-02-22T09:13:20.000Z
mosqito/sound_level_meter/noct_spectrum/_n_oct_time_filter.py
Igarciac117/MoSQITo
a52f9ff120db9f9c46f4309d28d9e1568a5b4120
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # Standard library imports import numpy as np from scipy.signal import decimate, butter, lfilter def _n_oct_time_filter(sig, fs, fc, alpha, N=3): """Design of a nth octave filter set Designs a digital 1/3-octave filter with center frequency fc for sampling frequency fs. The filte...
25.813333
74
0.598657
dab583c6f0dcdb3cee896d4a4f326e81b03becc7
4,129
py
Python
sim_spawner/sim_spawner/webots_throw_spawner.py
09ubberboy90/lvl4-ros2-sim-comp
c197c76b29a9d864a800b81332bc3a549ecaa7c3
[ "BSD-3-Clause" ]
1
2021-05-03T09:16:11.000Z
2021-05-03T09:16:11.000Z
sim_spawner/sim_spawner/webots_throw_spawner.py
09ubberboy90/lvl4-ros2-sim-comp
c197c76b29a9d864a800b81332bc3a549ecaa7c3
[ "BSD-3-Clause" ]
1
2021-05-03T20:39:31.000Z
2021-11-24T14:57:55.000Z
sim_spawner/sim_spawner/webots_throw_spawner.py
09ubberboy90/lvl4-ros2-sim-comp
c197c76b29a9d864a800b81332bc3a549ecaa7c3
[ "BSD-3-Clause" ]
1
2021-05-03T09:16:21.000Z
2021-05-03T09:16:21.000Z
import rclpy import os import sys from webots_ros2_core.webots_node import WebotsNode from webots_ros2_core.utils import append_webots_python_lib_to_path from webots_ros2_core.trajectory_follower import TrajectoryFollower from sensor_msgs.msg import JointState from ament_index_python.packages import get_package_share_d...
37.198198
118
0.650036
e86be0e73bd675fa564d7d6b0c4946faaf6d2684
3,848
py
Python
delamo/loaders.py
idealab-isu/de-la-mo-v2
344894a409af5bd793ad63178c63e2d696bba4e6
[ "Apache-2.0" ]
3
2019-07-23T12:15:23.000Z
2019-08-19T19:08:56.000Z
delamo/loaders.py
idealab-isu/de-la-mo-v2
344894a409af5bd793ad63178c63e2d696bba4e6
[ "Apache-2.0" ]
null
null
null
delamo/loaders.py
idealab-isu/de-la-mo-v2
344894a409af5bd793ad63178c63e2d696bba4e6
[ "Apache-2.0" ]
3
2019-07-11T22:24:26.000Z
2019-07-15T18:06:44.000Z
# Copyright 2016-2018 Iowa State University Research Foundation, 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 ...
30.299213
74
0.725832
d9b78b841b3c31ea349cfbf4e767328b12f39aa7
1,628
py
Python
ppocr/modeling/heads/cls_head.py
Bourne-M/PaddleOCR
865e737413d430798b8c17525dcc22db4d106752
[ "Apache-2.0" ]
506
2020-10-07T04:06:40.000Z
2022-03-31T20:28:25.000Z
ppocr/modeling/heads/cls_head.py
Bourne-M/PaddleOCR
865e737413d430798b8c17525dcc22db4d106752
[ "Apache-2.0" ]
80
2020-11-19T14:02:56.000Z
2022-03-29T10:56:19.000Z
ppocr/modeling/heads/cls_head.py
Bourne-M/PaddleOCR
865e737413d430798b8c17525dcc22db4d106752
[ "Apache-2.0" ]
98
2020-10-22T06:37:34.000Z
2022-03-31T04:57:22.000Z
# copyright (c) 2020 PaddlePaddle Authors. All Rights Reserve. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
30.716981
74
0.664005
a5a1dff7dbd80a1ca6b08ac538b28477fa0a20e4
313
py
Python
Scripts/002.2-metodos_das_strings.py
HMarcos/Python-CursoEmVideo
9780e907d4507fa7359bad49e01779d36b9cef80
[ "MIT" ]
null
null
null
Scripts/002.2-metodos_das_strings.py
HMarcos/Python-CursoEmVideo
9780e907d4507fa7359bad49e01779d36b9cef80
[ "MIT" ]
null
null
null
Scripts/002.2-metodos_das_strings.py
HMarcos/Python-CursoEmVideo
9780e907d4507fa7359bad49e01779d36b9cef80
[ "MIT" ]
null
null
null
print('PARTE 2') n = input('Digite algo: ') print(n.isnumeric()) # Se pode ser convertido em um número print(n.isalpha()) # Se são apenas letras print(n.isalnum()) # Se são letras ou números print(n.isupper()) # Se todas os caracteres são maiúsculos print(n.islower()) # Se todas os caracteres são minúsculos
44.714286
59
0.715655
dcd8384f8932738a5fd5344dd5b6262f9274536f
5,860
py
Python
stroylux/main/payment/migrations/0001_initial.py
vladkoblynsky/shop
aaf027f4111605772624a868a0243b221b97c857
[ "BSD-3-Clause" ]
null
null
null
stroylux/main/payment/migrations/0001_initial.py
vladkoblynsky/shop
aaf027f4111605772624a868a0243b221b97c857
[ "BSD-3-Clause" ]
7
2020-09-19T16:24:46.000Z
2022-01-13T03:19:46.000Z
stroylux/main/payment/migrations/0001_initial.py
vladkoblynsky/shop
aaf027f4111605772624a868a0243b221b97c857
[ "BSD-3-Clause" ]
null
null
null
# Generated by Django 3.0.5 on 2020-04-29 15:09 from decimal import Decimal import django.contrib.postgres.fields.jsonb import django.core.serializers.json import django.core.validators from django.db import migrations, models import django.db.models.deletion import main.payment class Migration(migrations.Migration)...
71.463415
759
0.643003
04a9efcd24becde731ba88cc71fbb8fb7c31094c
1,462
py
Python
src/Manager.py
SolOasis/SolOasisAPIServer-
0a84cee99cfa91dab06f8a622b6c7ca4ba1c84a6
[ "BSD-3-Clause" ]
null
null
null
src/Manager.py
SolOasis/SolOasisAPIServer-
0a84cee99cfa91dab06f8a622b6c7ca4ba1c84a6
[ "BSD-3-Clause" ]
null
null
null
src/Manager.py
SolOasis/SolOasisAPIServer-
0a84cee99cfa91dab06f8a622b6c7ca4ba1c84a6
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python """ Manager class to access SolOasis sun tracker. """ from loggingConfig import setup_logger, LOG_DIR, log_debug manager_log_file = LOG_DIR + '/manager.log' manager_logger = setup_logger('Manager', manager_log_file, shownInConsole=log_debug) from SolOasisStation imp...
24.366667
67
0.593023
3134004f18b8129e38e6d1f62f9f7d9f8eb89ddf
2,290
py
Python
test/throughput/test_buffer_profile.py
danagi/tianshou
b364f1a26f1b8528b01a445a488160ce2d910a1c
[ "MIT" ]
1
2020-08-25T07:55:52.000Z
2020-08-25T07:55:52.000Z
test/throughput/test_buffer_profile.py
q-learning-trader/tianshou
c97aa4065ee8464bd5897bb86f1f81abd8e2cff9
[ "MIT" ]
null
null
null
test/throughput/test_buffer_profile.py
q-learning-trader/tianshou
c97aa4065ee8464bd5897bb86f1f81abd8e2cff9
[ "MIT" ]
1
2020-04-25T13:05:21.000Z
2020-04-25T13:05:21.000Z
import pytest import numpy as np from tianshou.data import (ListReplayBuffer, PrioritizedReplayBuffer, ReplayBuffer, SegmentTree) @pytest.fixture(scope="module") def data(): np.random.seed(0) obs = {'observable': np.random.rand(100, 100), 'hidden': np.random.randint(1000...
25.444444
71
0.59869
8c541edecc0ef9b238f0b049b49872e28e17a4ca
159
py
Python
ABC114/B.py
shimomura314/AtcoderCodes
db1d62a7715f5f1b3c40eceff8d34f0f34839f41
[ "MIT" ]
null
null
null
ABC114/B.py
shimomura314/AtcoderCodes
db1d62a7715f5f1b3c40eceff8d34f0f34839f41
[ "MIT" ]
null
null
null
ABC114/B.py
shimomura314/AtcoderCodes
db1d62a7715f5f1b3c40eceff8d34f0f34839f41
[ "MIT" ]
null
null
null
s = list(input()) answer = 10000 for i in range(len(s)-2): n = int(''.join(s[i:i+3])) if answer > abs(n-753): answer = abs(n-753) print(answer)
22.714286
30
0.553459
46309a338c85159a7eccef091768e7c210fdf075
11,445
py
Python
sner/agent/core.py
bodik/sner4-web
cb054d79c587b2f8468c73a88754b7c0d5cd5a95
[ "MIT" ]
9
2019-05-15T11:33:43.000Z
2022-02-17T04:05:28.000Z
sner/agent/core.py
bodik/sner4-web
cb054d79c587b2f8468c73a88754b7c0d5cd5a95
[ "MIT" ]
1
2018-10-16T09:58:54.000Z
2018-10-16T09:58:54.000Z
sner/agent/core.py
bodik/sner4-web
cb054d79c587b2f8468c73a88754b7c0d5cd5a95
[ "MIT" ]
3
2020-03-03T21:06:37.000Z
2021-01-11T14:40:56.000Z
# This file is part of sner4 project governed by MIT license, see the LICENSE.txt file. """ sner agent """ import copy import json import logging import os import shutil import signal import sys from abc import ABC, abstractmethod from argparse import ArgumentParser from base64 import b64encode from contextlib import ...
35.433437
149
0.640367
5eecc04257f872484c7524325e5cfdf7cb83c6ff
1,512
py
Python
query_collections/__init__.py
c4wrd/query_collections
18f0368ecf3f487bbdad518bc687a47b94279b1c
[ "MIT" ]
null
null
null
query_collections/__init__.py
c4wrd/query_collections
18f0368ecf3f487bbdad518bc687a47b94279b1c
[ "MIT" ]
4
2016-03-17T21:56:04.000Z
2016-03-17T22:27:53.000Z
query_collections/__init__.py
c4wrd/query_collections
18f0368ecf3f487bbdad518bc687a47b94279b1c
[ "MIT" ]
null
null
null
""" Query Collections The MIT License (MIT) Copyright (c) 2016 Cory Forward 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 limitat...
36.878049
84
0.746693
32f1d35820973b728062c215b9014d341e4635cb
170
py
Python
scripts/item/consume_2435173.py
Snewmy/swordie
ae01ed4ec0eb20a18730e8cd209eea0b84a8dd17
[ "MIT" ]
null
null
null
scripts/item/consume_2435173.py
Snewmy/swordie
ae01ed4ec0eb20a18730e8cd209eea0b84a8dd17
[ "MIT" ]
null
null
null
scripts/item/consume_2435173.py
Snewmy/swordie
ae01ed4ec0eb20a18730e8cd209eea0b84a8dd17
[ "MIT" ]
null
null
null
# Snowflake Damage Skin success = sm.addDamageSkin(2435173) if success: sm.chat("The Snowflake Damage Skin has been added to your account's damage skin collection.")
34
97
0.770588
307b7a6fb869bcafcb01535470f2417070935563
10,919
py
Python
core/src/main/bin/datax.py
shaozhipeng/DataX
3a1a212400f45f6f419b367a690fb4f18d56cdaf
[ "Apache-2.0" ]
null
null
null
core/src/main/bin/datax.py
shaozhipeng/DataX
3a1a212400f45f6f419b367a690fb4f18d56cdaf
[ "Apache-2.0" ]
null
null
null
core/src/main/bin/datax.py
shaozhipeng/DataX
3a1a212400f45f6f419b367a690fb4f18d56cdaf
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # -*- coding:utf-8 -*- import codecs import json import os import platform import re import signal import socket import subprocess import sys import time from optparse import OptionGroup from optparse import OptionParser from string import Template # 判断当前执行datax.py所在的操作系统 def isWindows(): r...
33.804954
213
0.626706
431df170f3f4935370b9fabd12bc679ccf81fc3c
745
py
Python
e2e/pages/credential_store_page.py
04n0/jenkins-configuration
8c79f2eb294b8114da896573762b619509221352
[ "Apache-2.0" ]
177
2017-05-30T20:17:11.000Z
2022-02-28T11:02:23.000Z
e2e/pages/credential_store_page.py
04n0/jenkins-configuration
8c79f2eb294b8114da896573762b619509221352
[ "Apache-2.0" ]
40
2017-06-26T17:50:24.000Z
2022-03-03T19:47:13.000Z
e2e/pages/credential_store_page.py
04n0/jenkins-configuration
8c79f2eb294b8114da896573762b619509221352
[ "Apache-2.0" ]
61
2017-06-28T04:40:15.000Z
2022-02-12T10:33:45.000Z
from __future__ import absolute_import from . import JENKINS_HOST from bok_choy.page_object import PageObject class CredentialStorePage(PageObject): url = "http://{}:8080/credentials/store/system/domain/_/".format(JENKINS_HOST) def is_browser_on_page(self): return "Global credentials (unrestricted)" ...
39.210526
95
0.704698
ba34884c67349e3c89c38c2ead9f91d889546720
3,128
py
Python
mxnet2caffe.py
ewrfcas/MXNet2Caffe
383ed9773f82ef4909f6674ab4b4398f98190f93
[ "MIT" ]
1
2018-03-22T06:34:14.000Z
2018-03-22T06:34:14.000Z
mxnet2caffe.py
ewrfcas/MXNet2Caffe
383ed9773f82ef4909f6674ab4b4398f98190f93
[ "MIT" ]
null
null
null
mxnet2caffe.py
ewrfcas/MXNet2Caffe
383ed9773f82ef4909f6674ab4b4398f98190f93
[ "MIT" ]
null
null
null
import sys, argparse import find_mxnet, find_caffe import mxnet as mx import caffe parser = argparse.ArgumentParser(description='Convert MXNet model to Caffe model') #parser.add_argument('--mx-model', type=str, default='../mx-model/old1/onetnew3') #parser.add_argument('--mx-epoch', type=int, default=52) #parser....
39.594937
95
0.622762
60046b732664b0f362d7de2044314fe1b375f2a8
129
py
Python
pypi_test/module3.py
a524631266/pypi_test
8be0cfe200457c152612a38c3d2ca0167c667fe0
[ "MIT" ]
null
null
null
pypi_test/module3.py
a524631266/pypi_test
8be0cfe200457c152612a38c3d2ca0167c667fe0
[ "MIT" ]
null
null
null
pypi_test/module3.py
a524631266/pypi_test
8be0cfe200457c152612a38c3d2ca0167c667fe0
[ "MIT" ]
null
null
null
from pypi_test.module1 import runcmd def runcmd1(): runcmd() def hello(): print("hello") class module(): name = 2222
16.125
36
0.658915
e86e89025cc9b2701649eb58d3953e135f56ee03
4,864
py
Python
services/deepfakes-faceswap/run_deepfakes_faceswap_service.py
vinthedark/dnn-model-services
a5249dde26fc46ab2808cbe0c503db069d604cdc
[ "MIT" ]
null
null
null
services/deepfakes-faceswap/run_deepfakes_faceswap_service.py
vinthedark/dnn-model-services
a5249dde26fc46ab2808cbe0c503db069d604cdc
[ "MIT" ]
9
2020-02-04T07:41:06.000Z
2020-02-05T12:06:07.000Z
services/deepfakes-faceswap/run_deepfakes_faceswap_service.py
vinthedark/dnn-model-services
a5249dde26fc46ab2808cbe0c503db069d604cdc
[ "MIT" ]
null
null
null
import sys import os import signal import time import subprocess import logging import pathlib import glob import json import argparse from service import registry logging.basicConfig(level=10, format="%(asctime)s - [%(levelname)8s] " "- %(name)s - %(message)s") log = logging.getL...
36.298507
118
0.602796
add6947c83c0e0cfc229e6c8add4656e528819c0
14,345
py
Python
phonopy/interface/wien2k.py
flokno/phonopy
02e31d5998de0a9b664b67968bb511e21c400574
[ "BSD-3-Clause" ]
null
null
null
phonopy/interface/wien2k.py
flokno/phonopy
02e31d5998de0a9b664b67968bb511e21c400574
[ "BSD-3-Clause" ]
null
null
null
phonopy/interface/wien2k.py
flokno/phonopy
02e31d5998de0a9b664b67968bb511e21c400574
[ "BSD-3-Clause" ]
null
null
null
# Copyright (C) 2011 Atsushi Togo # All rights reserved. # # This file is part of phonopy. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # # * Redistributions of source code must retain the above copyright # notic...
32.977011
79
0.561659
98c4874079e3cc390dd168dc3d95ea28da7306b6
1,417
py
Python
src/JackCompiler/VMWriter.py
peterb12/nand2tetris
66e6fc6c8032cb928fd693d8686707d13f88848a
[ "BSD-3-Clause" ]
null
null
null
src/JackCompiler/VMWriter.py
peterb12/nand2tetris
66e6fc6c8032cb928fd693d8686707d13f88848a
[ "BSD-3-Clause" ]
null
null
null
src/JackCompiler/VMWriter.py
peterb12/nand2tetris
66e6fc6c8032cb928fd693d8686707d13f88848a
[ "BSD-3-Clause" ]
null
null
null
from jc_types import Scope class VMWriter: arithmeticOperations = ["add", "sub", "and", "or", "not", "neg", "eq", "gt", "lt"] scopeTable = { Scope.STATIC : "static", Scope.FIELD : "dunno?", Scope.ARG : "argument", Scope.VAR : "local" } def __init__...
27.784314
86
0.55187
ef4b0987d8ad6b7e909a99647ac45c66e3f89948
6,432
py
Python
src/Components/misc/obs_aod/ABC/mcd43c.py
GEOS-ESM/AeroApps
874dad6f34420c014d98eccbe81a061bdc0110cf
[ "NASA-1.3", "ECL-2.0", "Apache-2.0" ]
2
2020-12-02T14:23:30.000Z
2021-12-31T15:39:30.000Z
src/Components/misc/obs_aod/ABC/mcd43c.py
GEOS-ESM/AeroApps
874dad6f34420c014d98eccbe81a061bdc0110cf
[ "NASA-1.3", "ECL-2.0", "Apache-2.0" ]
9
2020-04-15T16:22:14.000Z
2022-03-24T13:59:25.000Z
src/Components/misc/obs_aod/ABC/mcd43c.py
GEOS-ESM/AeroApps
874dad6f34420c014d98eccbe81a061bdc0110cf
[ "NASA-1.3", "ECL-2.0", "Apache-2.0" ]
null
null
null
""" Interpolates MCD43C data to aeronet locations """ import os, sys, subprocess from datetime import date, datetime, timedelta from dateutil.parser import parse from dateutil.relativedelta import relativedelta from pyhdf.SD import SD, HDF4Error import numpy ...
41.766234
124
0.515703
a4a9075b6ba79123697db2a105d80913bcbab446
14,070
py
Python
code/file_manager.py
avexs/knausj_talon
33c0db34ea79670d99778a7c1eaec82b869eb853
[ "MIT" ]
null
null
null
code/file_manager.py
avexs/knausj_talon
33c0db34ea79670d99778a7c1eaec82b869eb853
[ "MIT" ]
null
null
null
code/file_manager.py
avexs/knausj_talon
33c0db34ea79670d99778a7c1eaec82b869eb853
[ "MIT" ]
null
null
null
# from talon import app, Module, Context, actions, ui, imgui, settings, app, registry # from os.path import expanduser # from subprocess import Popen # from pathlib import Path # from typing import List, Union # import os # import math # import re # from itertools import islice # # mod = Module() # ctx = Context() # ...
32.873832
137
0.6086
d1f4bc5f688ee34098173e4f42899bef8b6ffb26
68
py
Python
ivi/stmis/__init__.py
Igelinmist/ivi
686af3348ff5ae1b9da30e4ea9f892288750ead5
[ "BSD-3-Clause" ]
null
null
null
ivi/stmis/__init__.py
Igelinmist/ivi
686af3348ff5ae1b9da30e4ea9f892288750ead5
[ "BSD-3-Clause" ]
null
null
null
ivi/stmis/__init__.py
Igelinmist/ivi
686af3348ff5ae1b9da30e4ea9f892288750ead5
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- """The stmis module.""" from . import views
17
23
0.573529
44443102b7781ac038a10f2b9dc0b4c0579fd1bf
3,348
py
Python
mmrazor/models/mutators/differentiable_mutator.py
hunto/mmrazor
e1483b4f4ca69de98130b01a27a6dd7ed44bda4f
[ "Apache-2.0" ]
553
2021-12-23T11:43:35.000Z
2022-03-31T01:04:20.000Z
mmrazor/models/mutators/differentiable_mutator.py
hunto/mmrazor
e1483b4f4ca69de98130b01a27a6dd7ed44bda4f
[ "Apache-2.0" ]
113
2021-12-23T12:09:06.000Z
2022-03-30T10:13:42.000Z
mmrazor/models/mutators/differentiable_mutator.py
hunto/mmrazor
e1483b4f4ca69de98130b01a27a6dd7ed44bda4f
[ "Apache-2.0" ]
76
2021-12-23T11:48:39.000Z
2022-03-29T11:24:35.000Z
# Copyright (c) OpenMMLab. All rights reserved. from abc import abstractmethod from functools import partial from torch import nn from mmrazor.models.builder import MUTATORS from mmrazor.models.mutables import MutableModule from .base import BaseMutator @MUTATORS.register_module() class DifferentiableMutator(BaseMu...
34.875
79
0.622162
784adc9fa861d735c5995ccd2e4886df9ea62989
169
py
Python
python/rna-transcription/dna.py
stevenandrewcarter/exercism
db02c2f16d9cff878120208beccb3d09305a9df0
[ "MIT" ]
null
null
null
python/rna-transcription/dna.py
stevenandrewcarter/exercism
db02c2f16d9cff878120208beccb3d09305a9df0
[ "MIT" ]
null
null
null
python/rna-transcription/dna.py
stevenandrewcarter/exercism
db02c2f16d9cff878120208beccb3d09305a9df0
[ "MIT" ]
null
null
null
def to_rna(dna): if dna == 'G': return 'C' if dna == 'C': return 'G' if dna == 'T': return 'A' if dna == 'A': return 'U'
16.9
18
0.378698
4150a948f96f871aca4615b46eccfb1b7e143da4
2,876
py
Python
test/functional/feature_logging.py
nagrath/ICS
facf2f3654fdf5e092ff07bd7aeb34d4b89e77b8
[ "MIT" ]
null
null
null
test/functional/feature_logging.py
nagrath/ICS
facf2f3654fdf5e092ff07bd7aeb34d4b89e77b8
[ "MIT" ]
null
null
null
test/functional/feature_logging.py
nagrath/ICS
facf2f3654fdf5e092ff07bd7aeb34d4b89e77b8
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # Copyright (c) 2017 The Bitcoin Core developers # Copyright (c) 2020 The PIVX developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. """Test debug logging.""" import os from test_framework.test_framew...
43.575758
90
0.646732
8bd73f09cf4a1219927fc3a4b2ad17537816703e
19,109
py
Python
core/tests/test_polyaxonfile/test_polyaxonfile_typing.py
admariner/polyaxon
ba355c38166047eb11e60de4cee4d7c3b48db323
[ "Apache-2.0" ]
3,200
2017-05-09T11:35:31.000Z
2022-03-28T05:43:22.000Z
core/tests/test_polyaxonfile/test_polyaxonfile_typing.py
admariner/polyaxon
ba355c38166047eb11e60de4cee4d7c3b48db323
[ "Apache-2.0" ]
1,324
2017-06-29T07:21:27.000Z
2022-03-27T12:41:10.000Z
core/tests/test_polyaxonfile/test_polyaxonfile_typing.py
admariner/polyaxon
ba355c38166047eb11e60de4cee4d7c3b48db323
[ "Apache-2.0" ]
341
2017-01-10T23:06:53.000Z
2022-03-10T08:15:18.000Z
#!/usr/bin/python # # Copyright 2018-2021 Polyaxon, 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 ...
39.727651
97
0.6128
6e89bb3257a044093a4d044a9d0cf973414f9fce
5,304
py
Python
LoveAlbumy/blueprints/auth.py
CattleHome/albumy
e85a0a0b2c8f91dba7f4a4d5b0ad595ce69152c4
[ "MIT" ]
null
null
null
LoveAlbumy/blueprints/auth.py
CattleHome/albumy
e85a0a0b2c8f91dba7f4a4d5b0ad595ce69152c4
[ "MIT" ]
null
null
null
LoveAlbumy/blueprints/auth.py
CattleHome/albumy
e85a0a0b2c8f91dba7f4a4d5b0ad595ce69152c4
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ :author: Grey Li (李辉) :url: http://greyli.com :copyright: © 2018 Grey Li <withlihui@gmail.com> :license: MIT, see LICENSE for more details. """ from flask import render_template, flash, redirect, url_for, Blueprint from flask_login import login_user, logout_user, login_requir...
36.57931
105
0.678733
e3cb9aa4c8ba0990b485ad28c6ad9c3ca309e3c3
11,092
py
Python
tests/components/hunterdouglas_powerview/test_config_flow.py
JeffersonBledsoe/core
3825f80a2dd087ae70654079cd9f3071289b8423
[ "Apache-2.0" ]
7
2019-08-15T13:36:58.000Z
2020-03-18T10:46:29.000Z
tests/components/hunterdouglas_powerview/test_config_flow.py
JeffersonBledsoe/core
3825f80a2dd087ae70654079cd9f3071289b8423
[ "Apache-2.0" ]
87
2020-07-06T22:22:54.000Z
2022-03-31T06:01:46.000Z
tests/components/hunterdouglas_powerview/test_config_flow.py
JeffersonBledsoe/core
3825f80a2dd087ae70654079cd9f3071289b8423
[ "Apache-2.0" ]
7
2018-10-04T10:12:45.000Z
2021-12-29T20:55:40.000Z
"""Test the Logitech Harmony Hub config flow.""" import asyncio import json from unittest.mock import AsyncMock, MagicMock, patch import pytest from homeassistant import config_entries from homeassistant.components.hunterdouglas_powerview.const import DOMAIN from tests.common import MockConfigEntry, load_fixture HO...
33.209581
87
0.678507
22c73a0456fb866c33e71628c51ffa32aca23b3c
30
py
Python
scalpel/pycg/__init__.py
StarWatch27/Scalpel
8853e6e84f318f3cfeda0e03d274748b2fbe30fa
[ "Apache-2.0" ]
1
2022-01-12T06:00:32.000Z
2022-01-12T06:00:32.000Z
scalpel/pycg/__init__.py
StarWatch27/Scalpel
8853e6e84f318f3cfeda0e03d274748b2fbe30fa
[ "Apache-2.0" ]
null
null
null
scalpel/pycg/__init__.py
StarWatch27/Scalpel
8853e6e84f318f3cfeda0e03d274748b2fbe30fa
[ "Apache-2.0" ]
null
null
null
#TODO need a wrapper for pycg
15
29
0.766667
26c9a53d6b57166e7ce3f673e36d21156506f92a
377
py
Python
cat_convertor.py
Amir-Shamsi/cost-prediction-LR
5fa9101d391d6930c684c854209c25c46ddfbd44
[ "MIT" ]
2
2022-02-23T06:57:40.000Z
2022-03-07T17:01:51.000Z
cat_convertor.py
Amir-Shamsi/cost-prediction-LR
5fa9101d391d6930c684c854209c25c46ddfbd44
[ "MIT" ]
null
null
null
cat_convertor.py
Amir-Shamsi/cost-prediction-LR
5fa9101d391d6930c684c854209c25c46ddfbd44
[ "MIT" ]
null
null
null
from typing import Union from pandas import DataFrame from pandas.io.parsers import TextFileReader def convert_to_category(data: Union[TextFileReader, DataFrame], index: str): """ :param data: to convert type to category :param index: index of the data we want to change to category :return: dataframe...
29
76
0.72679
2eb30bdb1e4056dc7b4364eaa712e894e4cef6eb
2,843
py
Python
gryphon/data_service/pollers/orderbook/websocket/websocket_orderbook_poller.py
qiquanzhijia/gryphon
7bb2c646e638212bd1352feb1b5d21536a5b918d
[ "Apache-2.0" ]
1,109
2019-06-20T19:23:27.000Z
2022-03-20T14:03:43.000Z
gryphon/data_service/pollers/orderbook/websocket/websocket_orderbook_poller.py
qiquanzhijia/gryphon
7bb2c646e638212bd1352feb1b5d21536a5b918d
[ "Apache-2.0" ]
63
2019-06-21T05:36:17.000Z
2021-05-26T21:08:15.000Z
gryphon/data_service/pollers/orderbook/websocket/websocket_orderbook_poller.py
qiquanzhijia/gryphon
7bb2c646e638212bd1352feb1b5d21536a5b918d
[ "Apache-2.0" ]
181
2019-06-20T19:42:05.000Z
2022-03-21T13:05:13.000Z
import json from delorean import Delorean from twisted.internet import defer from gryphon.data_service.pollers.orderbook.orderbook_poller import OrderbookPoller from gryphon.lib.logger import get_logger logger = get_logger(__name__) class WebsocketOrderbookPoller(OrderbookPoller): AMQP_PUSH_MAX_FREQUENCY = 1 ...
35.987342
101
0.709814
809e8e01594c1048435177ca1c53f9f051b33d39
5,691
py
Python
scripts/gcloud_adapter.py
vinitamurthi/oppia
16fc2a5253f291ea554c982eacef0cbaf688ce9f
[ "Apache-2.0" ]
1
2019-11-05T09:32:39.000Z
2019-11-05T09:32:39.000Z
scripts/gcloud_adapter.py
vinitamurthi/oppia
16fc2a5253f291ea554c982eacef0cbaf688ce9f
[ "Apache-2.0" ]
13
2019-03-04T18:29:27.000Z
2019-08-24T23:27:36.000Z
scripts/gcloud_adapter.py
vinitamurthi/oppia
16fc2a5253f291ea554c982eacef0cbaf688ce9f
[ "Apache-2.0" ]
1
2020-10-04T06:54:41.000Z
2020-10-04T06:54:41.000Z
# Copyright 2019 The Oppia Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable ...
32.52
80
0.666842
3977eb51b03e4bda88dd907a2e074e64b7247db0
462
py
Python
tinc/variant.py
AlloSphere-Research-Group/tinc-python
4c3390df9911a391833244de1eb1d33a2e19d330
[ "BSD-3-Clause" ]
1
2020-11-23T22:42:50.000Z
2020-11-23T22:42:50.000Z
tinc/variant.py
AlloSphere-Research-Group/tinc-python
4c3390df9911a391833244de1eb1d33a2e19d330
[ "BSD-3-Clause" ]
null
null
null
tinc/variant.py
AlloSphere-Research-Group/tinc-python
4c3390df9911a391833244de1eb1d33a2e19d330
[ "BSD-3-Clause" ]
null
null
null
from enum import IntEnum class VariantType(IntEnum): VARIANT_NONE = 0, VARIANT_INT64 = 10, VARIANT_INT32 = 4, VARIANT_INT16 = 3, VARIANT_INT8 = 1, VARIANT_UINT64 = 11, VARIANT_UINT32 = 9, VARIANT_UINT16 = 8, VARIANT_UINT8 = 7, VARIANT_DOUBLE = 6, VARIANT_FLOAT = 5, VARIANT_STRING = 12, VARIA...
23.1
64
0.714286
c753c8190ddc6c37e6392635cf55bd579b59bfa4
7,277
py
Python
conf.py
absltkaos/indy-sdk
bc14c5b514dc1c76ce62dd7f6bf804120bf69f5e
[ "Apache-2.0" ]
636
2017-05-25T07:45:43.000Z
2022-03-23T22:30:34.000Z
conf.py
Nick-1979/indy-sdk
e5f812e14962f0d51cf96f843033754ff841ce30
[ "Apache-2.0" ]
731
2017-05-29T07:15:08.000Z
2022-03-31T07:55:58.000Z
conf.py
Nick-1979/indy-sdk
e5f812e14962f0d51cf96f843033754ff841ce30
[ "Apache-2.0" ]
904
2017-05-25T07:45:49.000Z
2022-03-31T07:43:31.000Z
# This file is used to build the sphinx documentation for this repository. # -*- coding: utf-8 -*- # # Configuration file for the Sphinx documentation builder. # # This file does only contain a selection of the most common options. For a # full list see the documentation: # http://www.sphinx-doc.org/en/master/config...
30.834746
94
0.66772
8a720c076f350877782fc5b01c13a24a696f8661
14,496
py
Python
uhd_restpy/testplatform/sessions/ixnetwork/topology/isisdcepseudoifaceattpoint1config_dce0066317952a09c055b9f568621953.py
OpenIxia/ixnetwork_restpy
f628db450573a104f327cf3c737ca25586e067ae
[ "MIT" ]
20
2019-05-07T01:59:14.000Z
2022-02-11T05:24:47.000Z
uhd_restpy/testplatform/sessions/ixnetwork/topology/isisdcepseudoifaceattpoint1config_dce0066317952a09c055b9f568621953.py
OpenIxia/ixnetwork_restpy
f628db450573a104f327cf3c737ca25586e067ae
[ "MIT" ]
60
2019-04-03T18:59:35.000Z
2022-02-22T12:05:05.000Z
uhd_restpy/testplatform/sessions/ixnetwork/topology/isisdcepseudoifaceattpoint1config_dce0066317952a09c055b9f568621953.py
OpenIxia/ixnetwork_restpy
f628db450573a104f327cf3c737ca25586e067ae
[ "MIT" ]
13
2019-05-20T10:48:31.000Z
2021-10-06T07:45:44.000Z
# MIT LICENSE # # Copyright 1997 - 2020 by IXIA Keysight # # 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,...
44.603077
216
0.654111
40a0b43c9f03d8b4b976867a56e063c7a8d052ba
1,716
py
Python
pathfinder/plots.py
pf-core/pf-core
0caf8abde968b959be2284518f7dc951ba680202
[ "MIT" ]
null
null
null
pathfinder/plots.py
pf-core/pf-core
0caf8abde968b959be2284518f7dc951ba680202
[ "MIT" ]
null
null
null
pathfinder/plots.py
pf-core/pf-core
0caf8abde968b959be2284518f7dc951ba680202
[ "MIT" ]
null
null
null
""" Pathfinder plotting module, @esteinig Common plotting functions for workflow debugging. Main plots are handled with MongoAPI in Vue. """ import matplotlib.pyplot as plt import numpy as np import pandas from sklearn.linear_model import LinearRegression def plot_date_randomisation( ax: plt.axes, replic...
24.169014
94
0.691142
192f853f849ffbafa546e32eccf15e072366813b
21,177
py
Python
tests/test_acl.py
JiangboHe/sonic-swss
65f63c1647f59b75b3d06b1cb293efbbc5472012
[ "Apache-2.0" ]
null
null
null
tests/test_acl.py
JiangboHe/sonic-swss
65f63c1647f59b75b3d06b1cb293efbbc5472012
[ "Apache-2.0" ]
1
2020-09-29T05:49:34.000Z
2020-09-29T05:49:34.000Z
tests/test_acl.py
JiangboHe/sonic-swss
65f63c1647f59b75b3d06b1cb293efbbc5472012
[ "Apache-2.0" ]
1
2020-10-28T08:09:33.000Z
2020-10-28T08:09:33.000Z
import pytest L3_TABLE_TYPE = "L3" L3_TABLE_NAME = "L3_TEST" L3_BIND_PORTS = ["Ethernet0", "Ethernet4", "Ethernet8", "Ethernet12"] L3_RULE_NAME = "L3_TEST_RULE" L3V6_TABLE_TYPE = "L3V6" L3V6_TABLE_NAME = "L3_V6_TEST" L3V6_BIND_PORTS = ["Ethernet0", "Ethernet4", "Ethernet8"] L3V6_RULE_NAME = "L3V6_TEST_RULE" class T...
42.269461
144
0.647825
4a66bfe4394df41c4db3d59f277421df8cde0da4
4,770
py
Python
models/train_function.py
CAVED123/mol-cycle-gan
feb8d7504d0078798ee70d6d5cda3f37b4f7a903
[ "MIT" ]
60
2019-02-13T21:57:22.000Z
2022-03-27T06:48:27.000Z
models/train_function.py
CAVED123/mol-cycle-gan
feb8d7504d0078798ee70d6d5cda3f37b4f7a903
[ "MIT" ]
2
2019-08-11T12:02:10.000Z
2021-06-20T03:27:35.000Z
models/train_function.py
CAVED123/mol-cycle-gan
feb8d7504d0078798ee70d6d5cda3f37b4f7a903
[ "MIT" ]
32
2019-02-09T08:42:26.000Z
2022-01-31T21:07:08.000Z
from itertools import chain import numpy as np from keras.models import Model from keras.optimizers import Adam from keras.layers import (Input, BatchNormalization, Lambda) from .loss import generator_loss, discriminator_loss def get_train_function(inputs, loss_fu...
40.423729
114
0.588889
d4801898f9843e761eab8087da0daaa65b9b83b9
67
py
Python
was/utils.py
KeserOner/where-artists-share
3dd4acb64bdf48eaf026f0ef4f2fc5083fc94b0a
[ "MIT" ]
2
2015-07-08T12:50:50.000Z
2015-07-20T09:55:11.000Z
was/utils.py
KeserOner/where-artists-share
3dd4acb64bdf48eaf026f0ef4f2fc5083fc94b0a
[ "MIT" ]
49
2015-07-02T17:52:49.000Z
2022-03-11T23:14:52.000Z
was/utils.py
KeserOner/where-artists-share
3dd4acb64bdf48eaf026f0ef4f2fc5083fc94b0a
[ "MIT" ]
null
null
null
def format_error(error_message): return {"err": error_message}
22.333333
33
0.746269
ff3b8ab50cde9b2382ca948e546bab3faf76052c
7,865
py
Python
esp32/lcd_api.py
ituieee/ieee-itu-kapi-kilidi
08c027a0e8d4085392097ad4cd2d8d8732761771
[ "MIT" ]
null
null
null
esp32/lcd_api.py
ituieee/ieee-itu-kapi-kilidi
08c027a0e8d4085392097ad4cd2d8d8732761771
[ "MIT" ]
null
null
null
esp32/lcd_api.py
ituieee/ieee-itu-kapi-kilidi
08c027a0e8d4085392097ad4cd2d8d8732761771
[ "MIT" ]
null
null
null
"""Provides an API for talking to HD44780 compatible character LCDs.""" import time class LcdApi: """Implements the API for talking with HD44780 compatible character LCDs. This class only knows what commands to send to the LCD, and not how to get them to the LCD. It is expected that a derived ...
38.365854
128
0.598729
cac41c2a26341b87612da4e2cd2bf61c6f56b152
3,337
py
Python
huaweicloud-sdk-iec/huaweicloudsdkiec/v1/model/coverage_site.py
wuchen-huawei/huaweicloud-sdk-python-v3
3683d703f4320edb2b8516f36f16d485cff08fc2
[ "Apache-2.0" ]
1
2021-11-03T07:54:50.000Z
2021-11-03T07:54:50.000Z
huaweicloud-sdk-iec/huaweicloudsdkiec/v1/model/coverage_site.py
wuchen-huawei/huaweicloud-sdk-python-v3
3683d703f4320edb2b8516f36f16d485cff08fc2
[ "Apache-2.0" ]
null
null
null
huaweicloud-sdk-iec/huaweicloudsdkiec/v1/model/coverage_site.py
wuchen-huawei/huaweicloud-sdk-python-v3
3683d703f4320edb2b8516f36f16d485cff08fc2
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 import pprint import re import six class CoverageSite: """ Attributes: openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is js...
24.536765
74
0.534013
beb3af951932a8173a562fa3ad8c122acea83985
979
py
Python
Python/water-and-jug-problem.py
xenron/sandbox-dev-leetcode
1aaaa47d75ab69879e7548951bec3480ad22a844
[ "MIT" ]
1
2020-03-13T22:26:56.000Z
2020-03-13T22:26:56.000Z
Python/water-and-jug-problem.py
xenron/sandbox-dev-leetcode
1aaaa47d75ab69879e7548951bec3480ad22a844
[ "MIT" ]
2
2021-12-10T01:43:37.000Z
2021-12-14T21:48:53.000Z
Python/water-and-jug-problem.py
xenron/sandbox-dev-leetcode
1aaaa47d75ab69879e7548951bec3480ad22a844
[ "MIT" ]
1
2019-03-24T13:28:44.000Z
2019-03-24T13:28:44.000Z
# Time: O(logn), n is the max of (x, y) # Space: O(1) # You are given two jugs with capacities x and y litres. # There is an infinite amount of water supply available. # You need to determine whether it is possible to # measure exactly z litres using these two jugs. # # Operations allowed: # # Fill any of the jugs c...
25.102564
66
0.597549
93bbd90cac8f414ee66f83fb822fb1ebf8f69ea0
4,547
py
Python
app/database/schema.py
flych3r/spotify-tracker
306d549da6a57866ea480c85286d870e7653a1eb
[ "MIT" ]
2
2021-06-25T00:24:13.000Z
2021-07-10T13:00:39.000Z
app/database/schema.py
flych3r/spotify-tracker
306d549da6a57866ea480c85286d870e7653a1eb
[ "MIT" ]
null
null
null
app/database/schema.py
flych3r/spotify-tracker
306d549da6a57866ea480c85286d870e7653a1eb
[ "MIT" ]
2
2021-05-16T01:40:39.000Z
2021-07-10T12:59:07.000Z
from datetime import datetime from typing import Optional import ormar from app.database.db import db, metadata class BaseMeta(ormar.ModelMeta): """Base table metadata.""" metadata = metadata database = db class User(ormar.Model): """ `users` table mapping. Attributes ---------- ...
23.559585
65
0.614471
c40f764f1510dc7de6ae7171905fb9db15760643
131
py
Python
python/testData/optimizeImports/joinFromImportsDoesntAffectSingleImports.py
truthiswill/intellij-community
fff88cfb0dc168eea18ecb745d3e5b93f57b0b95
[ "Apache-2.0" ]
2
2019-04-28T07:48:50.000Z
2020-12-11T14:18:08.000Z
python/testData/optimizeImports/joinFromImportsDoesntAffectSingleImports.py
truthiswill/intellij-community
fff88cfb0dc168eea18ecb745d3e5b93f57b0b95
[ "Apache-2.0" ]
173
2018-07-05T13:59:39.000Z
2018-08-09T01:12:03.000Z
python/testData/optimizeImports/joinFromImportsDoesntAffectSingleImports.py
truthiswill/intellij-community
fff88cfb0dc168eea18ecb745d3e5b93f57b0b95
[ "Apache-2.0" ]
2
2020-03-15T08:57:37.000Z
2020-04-07T04:48:14.000Z
# Optimize imports should not reformat unaffected statements from module1 import a, b from module2 import A, B print(A, B, a, b)
18.714286
60
0.755725
e9fd3bef8cd612f3dcf322c126a07166e215bbb6
436
py
Python
kubernetes_typed/client/models/v1beta1_csi_node_driver.py
sobolevn/kubernetes-typed
5f0a770631c73a9831fbeaeebac188e8f4a52c54
[ "Apache-2.0" ]
22
2020-12-10T13:06:02.000Z
2022-02-13T21:58:15.000Z
kubernetes_typed/client/models/v1beta1_csi_node_driver.py
sobolevn/kubernetes-typed
5f0a770631c73a9831fbeaeebac188e8f4a52c54
[ "Apache-2.0" ]
4
2021-03-08T07:06:12.000Z
2022-03-29T23:41:45.000Z
kubernetes_typed/client/models/v1beta1_csi_node_driver.py
sobolevn/kubernetes-typed
5f0a770631c73a9831fbeaeebac188e8f4a52c54
[ "Apache-2.0" ]
2
2021-09-05T19:18:28.000Z
2022-03-14T02:56:17.000Z
# Code generated by `typeddictgen`. DO NOT EDIT. """V1beta1CSINodeDriverDict generated type.""" from typing import TypedDict, List from kubernetes_typed.client import V1beta1VolumeNodeResourcesDict V1beta1CSINodeDriverDict = TypedDict( "V1beta1CSINodeDriverDict", { "allocatable": V1beta1VolumeNodeReso...
25.647059
66
0.704128
28f50cd1d5533d9cb86ae1f4f08c95504b081c31
9,924
py
Python
contrib/spendfrom/spendfrom.py
DancingAxolotl/encocoinplus
b3dcc750c48a4f4e2ffebd104e5426544fe2f6b8
[ "MIT" ]
1
2020-04-07T10:09:00.000Z
2020-04-07T10:09:00.000Z
contrib/spendfrom/spendfrom.py
DancingAxolotl/encocoinplus
b3dcc750c48a4f4e2ffebd104e5426544fe2f6b8
[ "MIT" ]
13
2020-05-08T11:14:37.000Z
2020-05-12T10:03:53.000Z
contrib/spendfrom/spendfrom.py
DancingAxolotl/encocoinplus
b3dcc750c48a4f4e2ffebd104e5426544fe2f6b8
[ "MIT" ]
22
2020-02-10T09:17:20.000Z
2020-07-10T10:33:26.000Z
#!/usr/bin/env python # # Use the raw transactions API to spend EPGs received on particular addresses, # and send any change back to that same address. # # Example usage: # spendfrom.py # Lists available funds # spendfrom.py --from=ADDRESS --to=ADDRESS --amount=11.00 # # Assumes it will talk to a epgcd or epgc-Qt ru...
37.029851
111
0.628476
f03131d13835998178c7387f1b8862b539905b72
1,006
py
Python
comp/microsoft/000_missinteger.py
cc13ny/all-in
bc0b01e44e121ea68724da16f25f7e24386c53de
[ "MIT" ]
1
2015-12-16T04:01:03.000Z
2015-12-16T04:01:03.000Z
comp/microsoft/000_missinteger.py
cc13ny/all-in
bc0b01e44e121ea68724da16f25f7e24386c53de
[ "MIT" ]
1
2016-02-09T06:00:07.000Z
2016-02-09T07:20:13.000Z
comp/microsoft/000_missinteger.py
cc13ny/all-in
bc0b01e44e121ea68724da16f25f7e24386c53de
[ "MIT" ]
2
2019-06-27T09:07:26.000Z
2019-07-01T04:40:13.000Z
''' https://app.codility.com/demo/results/demoHZEZJ5-D8X/ This is a demo task. Write a function: def solution(A) that, given an array A of N integers, returns the smallest positive integer (greater than 0) that does not occur in A. For example, given A = [1, 3, 6, 4, 1, 2], the function should return 5. Give...
21.869565
118
0.626243
9fcbd93f5485553eda52b2bebbd75d3a831ce759
13,237
py
Python
test/kernelspaces/test_equivariance.py
steven-lang/e2cnn
48f49760766ec958b52d0dd7b02483886dfa2096
[ "BSD-3-Clause" ]
356
2019-11-22T10:37:22.000Z
2022-03-25T14:42:45.000Z
test/kernelspaces/test_equivariance.py
steven-lang/e2cnn
48f49760766ec958b52d0dd7b02483886dfa2096
[ "BSD-3-Clause" ]
52
2020-01-20T16:51:36.000Z
2022-03-31T21:40:19.000Z
test/kernelspaces/test_equivariance.py
steven-lang/e2cnn
48f49760766ec958b52d0dd7b02483886dfa2096
[ "BSD-3-Clause" ]
48
2019-12-11T09:29:30.000Z
2022-03-18T17:51:55.000Z
import unittest from unittest import TestCase import numpy as np from e2cnn.group import * from e2cnn.kernels import * class TestSolutionsEquivariance(TestCase): def test_trivial(self): N = 1 group = cyclic_group(N) in_rep = group.regular_representation out_rep = group.regul...
39.395833
135
0.45607
3bf57c568b307a8cfdd08714eba35be8abc12398
405
py
Python
integration_tests/test_gridworkflow.py
Kirill888/datacube-core
996b395e15f975decb77c0ca9fa0555177674b2f
[ "Apache-2.0" ]
2
2019-10-24T15:29:54.000Z
2019-10-24T15:29:58.000Z
integration_tests/test_gridworkflow.py
Kirill888/datacube-core
996b395e15f975decb77c0ca9fa0555177674b2f
[ "Apache-2.0" ]
103
2018-03-21T15:00:05.000Z
2020-06-04T05:40:25.000Z
integration_tests/test_gridworkflow.py
Kirill888/datacube-core
996b395e15f975decb77c0ca9fa0555177674b2f
[ "Apache-2.0" ]
null
null
null
from datacube.api.grid_workflow import GridWorkflow # TODO: do we still need this now that driver manager is gone? def test_create_gridworkflow_with_logging(index): from logging import getLogger, StreamHandler logger = getLogger(__name__) handler = StreamHandler() logger.addHandler(handler) try:...
25.3125
62
0.735802
dc13f9b659da17f148f001e1c1769004f9086e0a
31,838
py
Python
daq/host.py
jcbrough/daq
fde428980a4e15cf35bbac5a802ffec5eac012cd
[ "Apache-2.0" ]
null
null
null
daq/host.py
jcbrough/daq
fde428980a4e15cf35bbac5a802ffec5eac012cd
[ "Apache-2.0" ]
null
null
null
daq/host.py
jcbrough/daq
fde428980a4e15cf35bbac5a802ffec5eac012cd
[ "Apache-2.0" ]
null
null
null
"""Represent a device-under-test""" import functools import os import shutil import time from datetime import timedelta, datetime from clib import tcpdump_helper from report import ResultType, ReportGenerator import configurator import docker_test import gcp import logger LOGGER = logger.get_logger('host') class ...
42.621151
100
0.631824
2523209e4d455f58a8ad4cae00502dc0f3885796
9,541
py
Python
reconcile/utils/vault.py
bhushanthakur93/qontract-reconcile
fd8eea9f92d353224113955d08e3592864e37df8
[ "Apache-2.0" ]
null
null
null
reconcile/utils/vault.py
bhushanthakur93/qontract-reconcile
fd8eea9f92d353224113955d08e3592864e37df8
[ "Apache-2.0" ]
null
null
null
reconcile/utils/vault.py
bhushanthakur93/qontract-reconcile
fd8eea9f92d353224113955d08e3592864e37df8
[ "Apache-2.0" ]
null
null
null
import os import base64 import time import functools import threading import logging import hvac import requests from hvac.exceptions import InvalidPath from requests.adapters import HTTPAdapter from sretoolbox.utils import retry from reconcile.utils.config import get_config LOG = logging.getLogger(__name__) VAULT_...
31.384868
85
0.612934
b459f5264c0a92e7c782746da40b869c56356dd3
13,012
py
Python
models/experimental/show_and_tell/show_and_tell_model.py
iskorini/tpu
e99cbb85d5d43d5d13dad89e4b8ba123fe1ce0e4
[ "Apache-2.0" ]
4
2020-01-23T16:17:37.000Z
2022-01-18T22:02:22.000Z
models/experimental/show_and_tell/show_and_tell_model.py
iskorini/tpu
e99cbb85d5d43d5d13dad89e4b8ba123fe1ce0e4
[ "Apache-2.0" ]
null
null
null
models/experimental/show_and_tell/show_and_tell_model.py
iskorini/tpu
e99cbb85d5d43d5d13dad89e4b8ba123fe1ce0e4
[ "Apache-2.0" ]
1
2020-02-16T12:09:49.000Z
2020-02-16T12:09:49.000Z
# Copyright 2016 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
35.262873
80
0.684906
94ea383bcd80c8cd58e9b6e7ee41473fdfe3030c
1,670
py
Python
utils/generated_times.py
KITMILTU/Adversarial_time-to-event
bbe5766f2e4bfeb5d43932a2cbc189ee5b8656b7
[ "MIT" ]
27
2018-06-18T14:29:25.000Z
2022-03-10T10:41:38.000Z
utils/generated_times.py
KITMILTU/Adversarial_time-to-event
bbe5766f2e4bfeb5d43932a2cbc189ee5b8656b7
[ "MIT" ]
null
null
null
utils/generated_times.py
KITMILTU/Adversarial_time-to-event
bbe5766f2e4bfeb5d43932a2cbc189ee5b8656b7
[ "MIT" ]
9
2018-06-18T19:54:34.000Z
2021-08-28T16:10:47.000Z
import numpy as np from utils.metrics import box_plots, hist_plots seed = 31415 np.random.seed(seed) def plot_predicted_distribution(predicted, empirical, data, time='days', cens=False): predicted_samples = np.transpose(predicted) print("observed_samples:{}, empirical_observed:{}".format(predicted_samples.s...
37.954545
108
0.697006
e0c68e56f634e4ab3125425da98aff4c1fcb04ea
58,338
py
Python
python/cudf/cudf/core/multiindex.py
karthikeyann/cudf
a00466fe30ce6618e8f790ea1337875558867512
[ "Apache-2.0" ]
null
null
null
python/cudf/cudf/core/multiindex.py
karthikeyann/cudf
a00466fe30ce6618e8f790ea1337875558867512
[ "Apache-2.0" ]
null
null
null
python/cudf/cudf/core/multiindex.py
karthikeyann/cudf
a00466fe30ce6618e8f790ea1337875558867512
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2019-2021, NVIDIA CORPORATION. from __future__ import annotations import itertools import numbers import pickle import warnings from collections.abc import Sequence from numbers import Integral from typing import Any, List, MutableMapping, Optional, Tuple, Union import cupy import numpy as np import ...
33.604839
79
0.520536
0aac942a94103333fceba17cd3a31030f73ae846
5,050
py
Python
src/borg/constants.py
phil294/borg
93956af08fb21180ea979bc9a39a98ad733b089e
[ "BSD-3-Clause" ]
8,680
2015-05-13T00:04:35.000Z
2022-03-31T19:17:50.000Z
src/borg/constants.py
phil294/borg
93956af08fb21180ea979bc9a39a98ad733b089e
[ "BSD-3-Clause" ]
5,778
2015-05-13T00:31:46.000Z
2022-03-31T23:20:43.000Z
src/borg/constants.py
phil294/borg
93956af08fb21180ea979bc9a39a98ad733b089e
[ "BSD-3-Clause" ]
904
2015-05-14T10:27:43.000Z
2022-03-30T08:05:44.000Z
# this set must be kept complete, otherwise the RobustUnpacker might malfunction: ITEM_KEYS = frozenset(['path', 'source', 'rdev', 'chunks', 'chunks_healthy', 'hardlink_master', 'mode', 'user', 'group', 'uid', 'gid', 'mtime', 'atime', 'ctime', 'birthtime', 'size', 'xattrs',...
44.298246
116
0.721782
d2f81ff018dc59fa8dff0b14a1a72d965dfa2d4f
440
py
Python
tools/converter.py
SameerBidi/Python-OpenCV-Tools
f22f1ac51f5f55ed295620017d2ca08f9ada1234
[ "MIT" ]
null
null
null
tools/converter.py
SameerBidi/Python-OpenCV-Tools
f22f1ac51f5f55ed295620017d2ca08f9ada1234
[ "MIT" ]
null
null
null
tools/converter.py
SameerBidi/Python-OpenCV-Tools
f22f1ac51f5f55ed295620017d2ca08f9ada1234
[ "MIT" ]
null
null
null
import os import cv2 def convertToGrayscale(): print("") folderPath = input("Enter the folder path where images are stored (Make sure there are only images in that folder): ") print("") for imageName in os.listdir(folderPath): image = cv2.imread(f"{folderPath}/{imageName}", cv2.IMREAD_GRAYSCALE) ...
36.666667
121
0.693182
9845ffd32b2152f348e4ca104a4c924a7f873c14
876
py
Python
debug/ex1a.py
geoffwoollard/pydata-amsterdam2019-numba
a9ff0548c50b9944dfae9121561afc84c21983d1
[ "CC-BY-4.0" ]
142
2021-04-21T02:08:49.000Z
2022-03-23T02:57:38.000Z
debug/ex1a.py
geoffwoollard/pydata-amsterdam2019-numba
a9ff0548c50b9944dfae9121561afc84c21983d1
[ "CC-BY-4.0" ]
4
2021-04-21T07:16:54.000Z
2021-05-18T21:08:05.000Z
debug/ex1a.py
geoffwoollard/pydata-amsterdam2019-numba
a9ff0548c50b9944dfae9121561afc84c21983d1
[ "CC-BY-4.0" ]
24
2021-04-24T05:48:55.000Z
2022-02-23T09:36:18.000Z
import numpy as np from numba import cuda @cuda.jit def histogram(x, xmin, xmax, histogram_out): nbins = histogram_out.shape[0] bin_width = (xmax - xmin) / nbins start = cuda.grid(1) stride = cuda.gridsize(1) for i in range(start, x.shape[0], stride): bin_number = np.int32((x[i] - xmin)/...
28.258065
67
0.643836
76c54e6c2fb8fa27d2f2bb0ee8d5527bcceca876
415
py
Python
estate_app/estate_app/doctype/newsites/newsites.py
khaledasem/estate_app-ver4
6c4097e7627f8bbe87916cd5cdcae8f9c692954c
[ "MIT" ]
null
null
null
estate_app/estate_app/doctype/newsites/newsites.py
khaledasem/estate_app-ver4
6c4097e7627f8bbe87916cd5cdcae8f9c692954c
[ "MIT" ]
null
null
null
estate_app/estate_app/doctype/newsites/newsites.py
khaledasem/estate_app-ver4
6c4097e7627f8bbe87916cd5cdcae8f9c692954c
[ "MIT" ]
null
null
null
# Copyright (c) 2021, khaled and contributors # For license information, please see license.txt import frappe from frappe.model.document import Document class NewSites(Document): def validate(self): try: frappe.db.sql("""Select * FROM tabNewSites; """) except Exception as e: frappe.msgprint(f"An error occ...
27.666667
75
0.727711
a80728273989d4f2216741a38ee56fa67b6d7135
1,620
py
Python
setup.py
4nzor/django-ckeditor
3aa4b7b61c41e254d302d868470edfbcd1e4c6a9
[ "BSD-3-Clause" ]
null
null
null
setup.py
4nzor/django-ckeditor
3aa4b7b61c41e254d302d868470edfbcd1e4c6a9
[ "BSD-3-Clause" ]
null
null
null
setup.py
4nzor/django-ckeditor
3aa4b7b61c41e254d302d868470edfbcd1e4c6a9
[ "BSD-3-Clause" ]
1
2022-03-11T11:10:18.000Z
2022-03-11T11:10:18.000Z
#!/usr/bin/env python import os import sys from setuptools import setup, find_packages version = '5.0.3' if sys.argv[-1] == 'publish': os.system('python setup.py sdist upload') os.system('python setup.py bdist_wheel upload') sys.exit() if sys.argv[-1] == 'tag': os.system("git tag -a %s -m 'version %...
30.566038
119
0.628395
f43866881cabb0a126b4f5df19d796177a39dc73
7,675
py
Python
pytorch_lightning/accelerators/ddp2_accelerator.py
cuent/pytorch-lightning
b50ad528e69618d831aa01ee69f29b4f2a6a3e84
[ "Apache-2.0" ]
null
null
null
pytorch_lightning/accelerators/ddp2_accelerator.py
cuent/pytorch-lightning
b50ad528e69618d831aa01ee69f29b4f2a6a3e84
[ "Apache-2.0" ]
null
null
null
pytorch_lightning/accelerators/ddp2_accelerator.py
cuent/pytorch-lightning
b50ad528e69618d831aa01ee69f29b4f2a6a3e84
[ "Apache-2.0" ]
1
2022-03-21T18:37:54.000Z
2022-03-21T18:37:54.000Z
# Copyright The PyTorch Lightning team. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to i...
34.572072
112
0.678827
846cefa784e8bc7f5917dc3132146050d0f3c93d
3,004
py
Python
tensorflow/data/data.py
Hannes1/punctuation
6eaeeb0859fdb4a4e5f586767c45abb246033b5a
[ "MIT", "BSD-3-Clause" ]
5
2019-11-24T03:22:11.000Z
2020-10-12T10:07:15.000Z
tensorflow/data/data.py
Hannes1/punctuation
6eaeeb0859fdb4a4e5f586767c45abb246033b5a
[ "MIT", "BSD-3-Clause" ]
null
null
null
tensorflow/data/data.py
Hannes1/punctuation
6eaeeb0859fdb4a4e5f586767c45abb246033b5a
[ "MIT", "BSD-3-Clause" ]
3
2020-01-16T01:51:51.000Z
2021-04-23T08:32:00.000Z
import os from collections import namedtuple import numpy as np from tqdm import tqdm from tensorflow import keras #################################################################################### PUNCTUATION_VOCABULARY = ["_SPACE", ",COMMA", ".PERIOD", "?QUESTIONMARK", "!EXCLAMATIONMARK", ":COLON", ";SEMICOLON",...
32.652174
117
0.578895
8e5c3b65a9d33ecc5776b8a72f9808d221259d8b
956
py
Python
geoevents/heartbeat/api.py
ngageoint/geoevents
11d11b97033403f81934270c10d655b8e699c410
[ "MIT" ]
25
2015-01-06T15:37:31.000Z
2020-12-10T19:05:22.000Z
geoevents/heartbeat/api.py
ngageoint/geoevents
11d11b97033403f81934270c10d655b8e699c410
[ "MIT" ]
2
2015-01-31T02:36:58.000Z
2015-02-01T00:11:15.000Z
geoevents/heartbeat/api.py
ngageoint/geoevents
11d11b97033403f81934270c10d655b8e699c410
[ "MIT" ]
5
2016-01-01T15:04:49.000Z
2019-05-30T23:34:30.000Z
# This technical data was produced for the U. S. Government under Contract No. W15P7T-13-C-F600, and # is subject to the Rights in Technical Data-Noncommercial Items clause at DFARS 252.227-7013 (FEB 2012) from tastypie import fields from tastypie.authorization import Authorization from tastypie.resources import Model...
34.142857
104
0.722803
63f5f88c56e1cc0eeb262d5c1ccaa845fc89932a
5,462
py
Python
cmds2/run_DRN.py
tuming1990/tf-pdnn
4fd25bcbc6024a6bf0e0f99b51f579c75a3cfdf1
[ "Apache-2.0" ]
1
2017-03-27T16:05:58.000Z
2017-03-27T16:05:58.000Z
cmds2/run_DRN.py
tuming1990/tf-pdnn
4fd25bcbc6024a6bf0e0f99b51f579c75a3cfdf1
[ "Apache-2.0" ]
null
null
null
cmds2/run_DRN.py
tuming1990/tf-pdnn
4fd25bcbc6024a6bf0e0f99b51f579c75a3cfdf1
[ "Apache-2.0" ]
null
null
null
# Copyright 2014 Yajie Miao Carnegie Mellon University # 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 # # THIS CODE IS PROVIDED *AS IS* B...
43.349206
136
0.705236
863ef6f64f3ce2f7e0735d79841e2fc913c95529
11,511
py
Python
code/python/SecuritizedDerivativesAPIforDigitalPortals/v2/fds/sdk/SecuritizedDerivativesAPIforDigitalPortals/model/inline_response2006_instrument_categorization_ddv_level1.py
factset/enterprise-sdk
3fd4d1360756c515c9737a0c9a992c7451d7de7e
[ "Apache-2.0" ]
6
2022-02-07T16:34:18.000Z
2022-03-30T08:04:57.000Z
code/python/SecuritizedDerivativesAPIforDigitalPortals/v2/fds/sdk/SecuritizedDerivativesAPIforDigitalPortals/model/inline_response2006_instrument_categorization_ddv_level1.py
factset/enterprise-sdk
3fd4d1360756c515c9737a0c9a992c7451d7de7e
[ "Apache-2.0" ]
2
2022-02-07T05:25:57.000Z
2022-03-07T14:18:04.000Z
code/python/SecuritizedDerivativesAPIforDigitalPortals/v2/fds/sdk/SecuritizedDerivativesAPIforDigitalPortals/model/inline_response2006_instrument_categorization_ddv_level1.py
factset/enterprise-sdk
3fd4d1360756c515c9737a0c9a992c7451d7de7e
[ "Apache-2.0" ]
null
null
null
""" Prime Developer Trial No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 The version of the OpenAPI document: v1 Generated by: https://openapi-generator.tech """ import re # noqa: F401 import sys # noqa: F401 from fds.sdk.S...
44.273077
124
0.575797
bcce32000930d012faeddc5dd81a47bbbb816228
1,359
py
Python
arduino_device.py
vprime/twitch_arm
b07466b09130ebce077644998a53c00ca3189881
[ "MIT" ]
4
2017-12-10T07:30:20.000Z
2018-05-25T00:33:04.000Z
arduino_device.py
vprime/twitch_arm
b07466b09130ebce077644998a53c00ca3189881
[ "MIT" ]
1
2017-12-13T02:48:48.000Z
2017-12-13T17:10:27.000Z
arduino_device.py
vprime/twitch_arm
b07466b09130ebce077644998a53c00ca3189881
[ "MIT" ]
1
2018-03-20T15:15:06.000Z
2018-03-20T15:15:06.000Z
#!python3 # Importing our required libaries # Makes serial communication easy import serial import time import json import asyncio from pprint import pprint class message: def __init__(self): self.motors = [] self.leds = [] def add_motor(self, motor_id, speed): self.motors.append({"id": motor_id, "...
21.919355
69
0.646799
6c5812d37ce011656b6bd1e4e16ccbcb9736e62b
4,002
py
Python
ooxmlreplacer/utils.py
capybara-translation/ooxmlreplacer
715f4d49f24c8e6274c0bdccc79f80f2bf8c7937
[ "MIT" ]
null
null
null
ooxmlreplacer/utils.py
capybara-translation/ooxmlreplacer
715f4d49f24c8e6274c0bdccc79f80f2bf8c7937
[ "MIT" ]
null
null
null
ooxmlreplacer/utils.py
capybara-translation/ooxmlreplacer
715f4d49f24c8e6274c0bdccc79f80f2bf8c7937
[ "MIT" ]
1
2019-12-05T01:31:59.000Z
2019-12-05T01:31:59.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- import os.path import uuid import zipfile from lxml import etree W_NS = 'http://schemas.openxmlformats.org/wordprocessingml/2006/main' W = '{%s}' % W_NS A_NS = 'http://schemas.openxmlformats.org/drawingml/2006/main' A = '{%s}' % A_NS S_NS = 'http://schemas.openxmlformat...
33.07438
104
0.63993
da4bc84a09c47e7bd427d567cd352829a1cbab88
6,311
py
Python
venv/Lib/site-packages/zope/interface/common/sequence.py
asanka9/Quession-Discussion-App-Socket.Io-NLP
95a49a8afa572dc3908a0bade45e424c3751f191
[ "Apache-2.0" ]
275
2015-01-29T16:38:19.000Z
2022-03-13T09:22:27.000Z
venv/Lib/site-packages/zope/interface/common/sequence.py
asanka9/Quession-Discussion-App-Socket.Io-NLP
95a49a8afa572dc3908a0bade45e424c3751f191
[ "Apache-2.0" ]
232
2015-01-11T22:36:04.000Z
2022-03-30T15:12:57.000Z
venv/Lib/site-packages/zope/interface/common/sequence.py
asanka9/Quession-Discussion-App-Socket.Io-NLP
95a49a8afa572dc3908a0bade45e424c3751f191
[ "Apache-2.0" ]
66
2015-01-26T16:29:28.000Z
2021-12-20T04:19:07.000Z
############################################################################## # # Copyright (c) 2001, 2002 Zope Foundation and Contributors. # All Rights Reserved. # # This software is subject to the provisions of the Zope Public License, # Version 2.1 (ZPL). A copy of the ZPL should accompany this distribution. # TH...
29.217593
78
0.611947
89ca0990e08183419ff480e44a272085208e3929
31
py
Python
terminfo/a/__init__.py
darkelf44/PyUtils
4072ff31d2b89dd604ef0e09eb90b7f3b5cf23df
[ "MIT" ]
null
null
null
terminfo/a/__init__.py
darkelf44/PyUtils
4072ff31d2b89dd604ef0e09eb90b7f3b5cf23df
[ "MIT" ]
null
null
null
terminfo/a/__init__.py
darkelf44/PyUtils
4072ff31d2b89dd604ef0e09eb90b7f3b5cf23df
[ "MIT" ]
null
null
null
__all__ = ['ansi', 'ansi80x25']
31
31
0.645161
15ca98700772f332e0ab759c8e2fa74b8738888f
26,436
py
Python
tests/components/mqtt/test_sensor.py
nickna/core
c682d5d5e430de52e3da7e06026cd8b4087e864f
[ "Apache-2.0" ]
11
2018-02-16T15:35:47.000Z
2020-01-14T15:20:00.000Z
tests/components/mqtt/test_sensor.py
flexy2dd/core
1019ee22ff13e5f542e868179d791e6a0d87369a
[ "Apache-2.0" ]
77
2020-07-16T16:43:09.000Z
2022-03-31T06:14:37.000Z
tests/components/mqtt/test_sensor.py
Vaarlion/core
f3de8b9f28de01abf72c0f5bb0b457eb1841f201
[ "Apache-2.0" ]
7
2021-03-20T12:34:01.000Z
2021-12-02T10:13:52.000Z
"""The tests for the MQTT sensor platform.""" import copy from datetime import datetime, timedelta import json from unittest.mock import patch import pytest from homeassistant.components.mqtt.sensor import MQTT_SENSOR_ATTRIBUTES_BLOCKED import homeassistant.components.sensor as sensor from homeassistant.const import ...
32.121507
88
0.647186
fb8b93bf9feacd2b03922c3bbde9724b2e043260
3,720
py
Python
alesisvsysex/device/alesis.py
wimcoelus/alesisvsysex
2e6c75acd6082ca592eb405c69dc8e43d14aa2c5
[ "MIT" ]
11
2018-08-09T22:37:36.000Z
2021-08-29T14:09:23.000Z
alesisvsysex/device/alesis.py
wimcoelus/alesisvsysex
2e6c75acd6082ca592eb405c69dc8e43d14aa2c5
[ "MIT" ]
12
2019-04-01T00:36:55.000Z
2021-11-13T20:11:32.000Z
alesisvsysex/device/alesis.py
wimcoelus/alesisvsysex
2e6c75acd6082ca592eb405c69dc8e43d14aa2c5
[ "MIT" ]
2
2020-12-27T22:20:16.000Z
2022-01-10T11:08:55.000Z
import time import mido from alesisvsysex.protocol.sysex import SysexMessage from alesisvsysex.protocol.model import AlesisModel __all__ = ['AlesisMIDIDevice'] class AlesisMIDIDevice (object): def __init__(self, portName, modelClass): self._port = mido.open_ioport(portName) self.modelClass = ...
39.157895
88
0.624194
e6dc82cef7cd08fc669d044abd33d70db4bdc985
1,816
gyp
Python
binding.gyp
kalexey89/node-ps-native
3e68c67171cbe33131f7ecb8ac52c78aa4dc854f
[ "MIT" ]
1
2019-12-31T08:45:34.000Z
2019-12-31T08:45:34.000Z
binding.gyp
kalexey89/node-ps-native
3e68c67171cbe33131f7ecb8ac52c78aa4dc854f
[ "MIT" ]
1
2019-06-03T18:50:55.000Z
2020-04-22T04:45:49.000Z
binding.gyp
kalexey89/node-ps-native
3e68c67171cbe33131f7ecb8ac52c78aa4dc854f
[ "MIT" ]
null
null
null
{ "targets": [ { "target_name": "ps-native", "sources": [ "sources/process.h", "sources/wrapper.h", "sources/wrapper.cc", "sources/binding.cc" ], "cflags_cc!": [ "-f...
26.318841
65
0.234581
fe1b52c4ef3d8cf5525785331e241ed0a0a100bd
12,062
py
Python
setup.py
matthew-brett/statsmodels
915c9dc2d762c5592ac17a7cf5f1cc957fcbde1c
[ "BSD-3-Clause" ]
null
null
null
setup.py
matthew-brett/statsmodels
915c9dc2d762c5592ac17a7cf5f1cc957fcbde1c
[ "BSD-3-Clause" ]
null
null
null
setup.py
matthew-brett/statsmodels
915c9dc2d762c5592ac17a7cf5f1cc957fcbde1c
[ "BSD-3-Clause" ]
null
null
null
""" setuptools must be installed first. If you do not have setuptools installed please download and install it from http://pypi.python.org/pypi/setuptools """ descr = """ Statsmodels is a Python package that provides a complement to scipy for statistical computations including descriptive statistics and estimation of ...
38.414013
89
0.678163
dfc70f928353d17ba696160c44f68dfe58a02de8
2,875
py
Python
custom_components/browser_mod/helpers.py
owen282000/hass-browser_mod
180fad3ea0d22b8cd3d615765b12726102810ec6
[ "MIT" ]
null
null
null
custom_components/browser_mod/helpers.py
owen282000/hass-browser_mod
180fad3ea0d22b8cd3d615765b12726102810ec6
[ "MIT" ]
null
null
null
custom_components/browser_mod/helpers.py
owen282000/hass-browser_mod
180fad3ea0d22b8cd3d615765b12726102810ec6
[ "MIT" ]
null
null
null
import logging from homeassistant.helpers.entity import Entity, async_generate_entity_id from .const import ( DOMAIN, DATA_DEVICES, DATA_ALIASES, DATA_ADDERS, CONFIG_DEVICES, DATA_CONFIG, CONFIG_PREFIX, CONFIG_DISABLE, CONFIG_DISABLE_ALL, DATA_SETUP_COMPLETE, ) _LOGGER = loggi...
25.669643
87
0.648
2dd45c95be726120a925b8bc56c5cd024bd79093
7,182
py
Python
autoplier/model.py
dmontemayor/autoplier
bf0647169913d6f5f57e021cd8ce7ac139bad62b
[ "MIT" ]
1
2021-12-04T18:09:30.000Z
2021-12-04T18:09:30.000Z
autoplier/model.py
dmontemayor/autoplier
bf0647169913d6f5f57e021cd8ce7ac139bad62b
[ "MIT" ]
16
2021-10-14T03:41:12.000Z
2022-01-08T10:56:39.000Z
autoplier/model.py
dmontemayor/autoplier
bf0647169913d6f5f57e021cd8ce7ac139bad62b
[ "MIT" ]
null
null
null
import pandas as pd import numpy as np from tensorflow.random import set_seed from tensorflow.math import reduce_max, reduce_sum, square from tensorflow.keras.layers import Input, Dense, ReLU from tensorflow.keras.optimizers import Adam from tensorflow.keras.initializers import Constant from tensorflow.keras.constrain...
35.91
119
0.656363
b1ffaa13bc757d37312f46c8fcc9e74948e180b2
5,956
py
Python
image_classification/ResT/config.py
RangeKing/PaddleViT
0e25958686e04ed8872cf67fba0dfd6918e9b4dd
[ "Apache-2.0" ]
null
null
null
image_classification/ResT/config.py
RangeKing/PaddleViT
0e25958686e04ed8872cf67fba0dfd6918e9b4dd
[ "Apache-2.0" ]
null
null
null
image_classification/ResT/config.py
RangeKing/PaddleViT
0e25958686e04ed8872cf67fba0dfd6918e9b4dd
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2021 PPViT Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable l...
33.088889
100
0.709704
cd250280df7728069bb97dc981132c5d9fa386c8
3,287
py
Python
cloudmersive_nlp_api_client/models/get_words_response.py
Cloudmersive/Cloudmersive.APIClient.Python.NLP
6548e61749cd1d98ddae3e3d9bd8032217d0a8b5
[ "Apache-2.0" ]
1
2019-04-28T16:55:02.000Z
2019-04-28T16:55:02.000Z
cloudmersive_nlp_api_client/models/get_words_response.py
Cloudmersive/Cloudmersive.APIClient.Python.NLP
6548e61749cd1d98ddae3e3d9bd8032217d0a8b5
[ "Apache-2.0" ]
1
2020-08-16T17:55:35.000Z
2020-08-16T17:55:35.000Z
cloudmersive_nlp_api_client/models/get_words_response.py
Cloudmersive/Cloudmersive.APIClient.Python.NLP
6548e61749cd1d98ddae3e3d9bd8032217d0a8b5
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 """ nlpapiv2 The powerful Natural Language Processing APIs (v2) let you perform part of speech tagging, entity identification, sentence parsing, and much more to help you understand the meaning of unstructured text. # noqa: E501 OpenAPI spec version: v1 Generated by: https://git...
27.855932
220
0.564953
21503b5622087c6a48f43aad67ffa41ffb11fe92
802
py
Python
examples/run_dynpmsde.py
lukapecnik/NiaPy
a40ac08a4c06a13019ec5e39cc137461884928b0
[ "MIT" ]
null
null
null
examples/run_dynpmsde.py
lukapecnik/NiaPy
a40ac08a4c06a13019ec5e39cc137461884928b0
[ "MIT" ]
null
null
null
examples/run_dynpmsde.py
lukapecnik/NiaPy
a40ac08a4c06a13019ec5e39cc137461884928b0
[ "MIT" ]
1
2020-03-25T16:20:36.000Z
2020-03-25T16:20:36.000Z
# encoding=utf8 # This is temporary fix to import module from parent folder # It will be removed when package is published on PyPI import sys sys.path.append('../') # End of fix import random from NiaPy.algorithms.basic import DynNpMultiStrategyDifferentialEvolution from NiaPy.algorithms.basic.de import CrossBest2, Cr...
40.1
122
0.770574
d4c9cac240669d2dfa59acb649ea8237ad22d9b1
338
py
Python
zeropad.py
araadhikari/audioprocessing
1a7ab8dbe06b6fb5d1c7384d9e65dd7e4cd055cb
[ "MIT" ]
null
null
null
zeropad.py
araadhikari/audioprocessing
1a7ab8dbe06b6fb5d1c7384d9e65dd7e4cd055cb
[ "MIT" ]
null
null
null
zeropad.py
araadhikari/audioprocessing
1a7ab8dbe06b6fb5d1c7384d9e65dd7e4cd055cb
[ "MIT" ]
null
null
null
import os path = './' for filename in os.listdir(path): if filename.endswith('.wav'): print(filename) prefix1, prefix2, num = filename[:-4].split('_') num = num.zfill(3) new_filename = prefix1 + "_" + prefix2 + "_" + num + "_conv.wav" os.rename(os.path.join(path, filename), os.path.join(pat...
33.8
78
0.62426
e518eb5c8af0347609633220591c4d6f9f5c5461
1,132
py
Python
readability_transformers/features/FeatureBase.py
OneTheta/readability-transformers
3c122c98a90c67add8eafad16563b269d5e3124a
[ "Apache-2.0" ]
1
2022-01-26T10:55:59.000Z
2022-01-26T10:55:59.000Z
readability_transformers/features/FeatureBase.py
OneTheta/readability-transformers
3c122c98a90c67add8eafad16563b269d5e3124a
[ "Apache-2.0" ]
null
null
null
readability_transformers/features/FeatureBase.py
OneTheta/readability-transformers
3c122c98a90c67add8eafad16563b269d5e3124a
[ "Apache-2.0" ]
2
2021-10-14T22:53:57.000Z
2022-01-26T10:53:32.000Z
# Copyright 2021 One Theta. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or ag...
32.342857
74
0.708481
8256b87b3ef525980a199112c817351e2cfe9a04
1,117
py
Python
Python/surface-area-of-3d-shapes.py
Ravan339/LeetCode
4276e562aa67e4c39cd92be5d2d6700a9465a579
[ "MIT" ]
4
2019-12-09T20:23:17.000Z
2021-11-24T08:59:21.000Z
Python/surface-area-of-3d-shapes.py
Ravan339/LeetCode
4276e562aa67e4c39cd92be5d2d6700a9465a579
[ "MIT" ]
null
null
null
Python/surface-area-of-3d-shapes.py
Ravan339/LeetCode
4276e562aa67e4c39cd92be5d2d6700a9465a579
[ "MIT" ]
9
2020-03-15T23:32:26.000Z
2022-02-25T05:51:26.000Z
# https://leetcode.com/problems/surface-area-of-3d-shapes/ class Solution: def surfaceArea(self, grid): """ :type grid: List[List[int]] :rtype: int """ surface_area = 0 for row in range(len(grid)): for col in range(len(grid[0])): if grid[...
44.68
109
0.513876
07c0789905ee17bc1356db8580755078be504860
318
py
Python
python/bolo/readout.py
PaulKGrimes/bolo-calc
c2882d9b180dffe406db29253beb8307476b8c64
[ "BSD-3-Clause" ]
5
2021-03-12T18:04:12.000Z
2022-03-10T19:32:07.000Z
python/bolo/readout.py
PaulKGrimes/bolo-calc
c2882d9b180dffe406db29253beb8307476b8c64
[ "BSD-3-Clause" ]
12
2021-03-03T23:17:11.000Z
2021-04-02T20:58:49.000Z
python/bolo/readout.py
PaulKGrimes/bolo-calc
c2882d9b180dffe406db29253beb8307476b8c64
[ "BSD-3-Clause" ]
1
2022-02-22T19:50:00.000Z
2022-02-22T19:50:00.000Z
""" Instrument readout model """ from cfgmdl import Model from .cfg import Variable class Readout(Model): """ Instrument readout model """ squid_nei = Variable() read_noise_frac = Variable(default=0.1) dwell_time = Variable() revisit_rate = Variable() nyquist_inductance = Variable()
21.2
43
0.679245
39301e6397aab310da8c09944b7b30f3187fe402
23,022
py
Python
Lib/test/pythoninfo.py
auvipy/cpython
b4e048411f4c62ad7343bca32c307f0bf5ef74b4
[ "0BSD" ]
null
null
null
Lib/test/pythoninfo.py
auvipy/cpython
b4e048411f4c62ad7343bca32c307f0bf5ef74b4
[ "0BSD" ]
4
2021-12-01T11:57:28.000Z
2022-03-01T20:05:21.000Z
Lib/test/pythoninfo.py
christopher-burke/cpython
48ec61a89a959071206549819448405c2cea61b0
[ "0BSD" ]
null
null
null
""" Collect various information about Python to help debugging test failures. """ from __future__ import print_function import errno import re import sys import traceback import unittest import warnings def normalize_text(text): if text is None: return None text = str(text) text = re.sub(r'\s+', '...
26.280822
91
0.582834
17ff9569da7df08f39ab23fd3a93b8ab16b386ea
13,579
py
Python
root.py
Psasanka1729/root
45330fa41e125fe8ca888a370a31728c27d4ae30
[ "MIT" ]
1
2021-07-20T16:59:25.000Z
2021-07-20T16:59:25.000Z
root.py
Psasanka1729/root
45330fa41e125fe8ca888a370a31728c27d4ae30
[ "MIT" ]
null
null
null
root.py
Psasanka1729/root
45330fa41e125fe8ca888a370a31728c27d4ae30
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 import os.path, datetime from os import path import secrets from decimal import Decimal, getcontext import math import datetime import getpass import glob # IMPORTANT : binary_number_length must be greater than or equal to 8. binary_number_length = 100 random_number_length = 100 # string conta...
29.778509
301
0.701893
49d975c37572471ca590164c39be01842bec094a
2,352
py
Python
chat/models.py
johngaitho05/DjChannels
9ae81a4ec5cf2b6bef83b46faa507e270a3cab04
[ "MIT" ]
null
null
null
chat/models.py
johngaitho05/DjChannels
9ae81a4ec5cf2b6bef83b46faa507e270a3cab04
[ "MIT" ]
1
2021-06-10T23:03:50.000Z
2021-06-10T23:03:50.000Z
chat/models.py
johngaitho05/DjChannels
9ae81a4ec5cf2b6bef83b46faa507e270a3cab04
[ "MIT" ]
null
null
null
from django.db import models from django.conf import settings from django.db import models from django.db.models import Q class ThreadManager(models.Manager): def by_user(self, user): qlookup = Q(first=user) | Q(second=user) qlookup2 = Q(first=user) & Q(second=user) qs = self.get_queryset...
37.935484
123
0.633503
2d801b1837f476bfff24156f79fb9e31d0bd5b93
13,990
py
Python
perfkitbenchmarker/resource.py
eliaskousk/PerfKitBenchmarker
198d29f856a34dd0d39358397714af1aa3a97770
[ "Apache-2.0" ]
1
2020-12-16T21:49:28.000Z
2020-12-16T21:49:28.000Z
perfkitbenchmarker/resource.py
2qU24Tlb/PerfKitBenchmarker
3eee16676cc699a232031f168e1214b2c1118a6c
[ "Apache-2.0" ]
null
null
null
perfkitbenchmarker/resource.py
2qU24Tlb/PerfKitBenchmarker
3eee16676cc699a232031f168e1214b2c1118a6c
[ "Apache-2.0" ]
1
2021-07-12T16:09:26.000Z
2021-07-12T16:09:26.000Z
# Copyright 2014 PerfKitBenchmarker Authors. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by appli...
33.4689
80
0.694639
ce9bd81769cb30eb19963167a3f9c4dc74777a05
1,880
py
Python
pyal3dtf/processing.py
petebachant/NACA0020-3D-OpenFOAM
ddb7105d534f859bb19ff1e0bb9be39c3ae7943f
[ "MIT" ]
1
2021-08-16T03:32:48.000Z
2021-08-16T03:32:48.000Z
pyal3dtf/processing.py
petebachant/actuatorLine-3D-turbinesFoam
ddb7105d534f859bb19ff1e0bb9be39c3ae7943f
[ "MIT" ]
2
2015-10-17T01:01:53.000Z
2015-10-17T20:43:29.000Z
pyal3dtf/processing.py
petebachant/NACA0020-3D-OpenFOAM
ddb7105d534f859bb19ff1e0bb9be39c3ae7943f
[ "MIT" ]
null
null
null
""" This module contains processing functions. """ import numpy as np import pandas as pd import os def load_force_coeffs(steady=False): """ Load force coefficients from file. If steady, the file from the `0` directory is used, and the last values are returned. Otherwise, arrays are loaded from the la...
30.322581
78
0.620745
3ac0ec50e2bf0711ff78903c3c294609f19c8b80
3,232
py
Python
static/management/instructions/main.py
AaltoIIC/OSEMA
38740e3dcfeb72a6d87e25190e6a73f6c60b199b
[ "MIT" ]
2
2021-04-03T13:19:32.000Z
2022-01-03T00:38:55.000Z
static/management/instructions/main.py
AaltoIIC/OSEMA
38740e3dcfeb72a6d87e25190e6a73f6c60b199b
[ "MIT" ]
null
null
null
static/management/instructions/main.py
AaltoIIC/OSEMA
38740e3dcfeb72a6d87e25190e6a73f6c60b199b
[ "MIT" ]
null
null
null
import utime import ustruct import machine from network import WLAN import socket INTERVAL = 5 MAXLINE = 1024 PATH = "get_update" SOFTWARE_VERSION = "None" """Fill these. Go to browse sensors and select Info next to the new sensor.""" SENSOR_ID = #Fill this. For example: 45 SENSOR_KEY = #Fill this. For example: "mgpZr...
37.149425
267
0.66677
6cc14b7f661a10efefacc724c3eb99a5118940e5
90,444
py
Python
tencentcloud/ocr/v20181119/ocr_client.py
TencentCloud/tencentcloud-sdk-python
580aff506d325f04a74b37a460ded757812730ed
[ "Apache-2.0" ]
465
2018-04-27T09:54:59.000Z
2022-03-29T02:18:01.000Z
tencentcloud/ocr/v20181119/ocr_client.py
TencentCloud/tencentcloud-sdk-python
580aff506d325f04a74b37a460ded757812730ed
[ "Apache-2.0" ]
91
2018-04-27T09:48:11.000Z
2022-03-12T08:04:04.000Z
tencentcloud/ocr/v20181119/ocr_client.py
TencentCloud/tencentcloud-sdk-python
580aff506d325f04a74b37a460ded757812730ed
[ "Apache-2.0" ]
232
2018-05-02T08:02:46.000Z
2022-03-30T08:02:48.000Z
# -*- coding: utf8 -*- # Copyright (c) 2017-2021 THL A29 Limited, a Tencent company. 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...
41.073569
203
0.576423
0cfef5f5b4435fd20f44e82011dd20dfff835c98
6,515
py
Python
v2.5.7/toontown/parties/DistributedPartyTrampolineActivityAI.py
TTOFFLINE-LEAK/ttoffline
bb0e91704a755d34983e94288d50288e46b68380
[ "MIT" ]
4
2019-07-01T15:46:43.000Z
2021-07-23T16:26:48.000Z
v2.5.7/toontown/parties/DistributedPartyTrampolineActivityAI.py
TTOFFLINE-LEAK/ttoffline
bb0e91704a755d34983e94288d50288e46b68380
[ "MIT" ]
1
2019-06-29T03:40:05.000Z
2021-06-13T01:15:16.000Z
v2.5.7/toontown/parties/DistributedPartyTrampolineActivityAI.py
TTOFFLINE-LEAK/ttoffline
bb0e91704a755d34983e94288d50288e46b68380
[ "MIT" ]
4
2019-07-28T21:18:46.000Z
2021-02-25T06:37:25.000Z
from direct.directnotify import DirectNotifyGlobal from direct.distributed.ClockDelta import * from direct.fsm.FSM import FSM from direct.task import Task from toontown.parties.DistributedPartyActivityAI import DistributedPartyActivityAI from toontown.toonbase import TTLocalizer import PartyGlobals class DistributedPa...
45.880282
146
0.659708
6715c4ba74501edb832b09a2433a728cdc865849
467
py
Python
marcottimls/models/__init__.py
soccermetrics/marcotti-mls
84c6d0d619c1a0c70dc6602074a3c5227959803c
[ "MIT" ]
3
2016-08-04T10:34:01.000Z
2019-03-05T23:22:06.000Z
marcottimls/models/__init__.py
soccermetrics/marcotti-mls
84c6d0d619c1a0c70dc6602074a3c5227959803c
[ "MIT" ]
null
null
null
marcottimls/models/__init__.py
soccermetrics/marcotti-mls
84c6d0d619c1a0c70dc6602074a3c5227959803c
[ "MIT" ]
null
null
null
from common import BaseSchema from enums import (AcquisitionType, ConfederationType, NameOrderType, PositionType) from overview import (Clubs, Competitions, CompetitionSeasons, Countries, DomesticCompetitions, InternationalCompetitions, Persons, Players, Seasons, Years) from financial import (Acq...
58.375
95
0.813704
14e43e9cee21a4971d32bcc0629523227980b820
1,370
py
Python
lang/num/roman.py
kerryeon/relu
f778cca6d973b80c6bb163506db94c5e7d775eae
[ "MIT" ]
3
2018-09-05T14:38:13.000Z
2019-04-01T07:54:55.000Z
lang/num/roman.py
kerryeon/relu
f778cca6d973b80c6bb163506db94c5e7d775eae
[ "MIT" ]
null
null
null
lang/num/roman.py
kerryeon/relu
f778cca6d973b80c6bb163506db94c5e7d775eae
[ "MIT" ]
null
null
null
from lang.num._interface import NumInterface as _Base class Num(_Base): def __init__(self): super(Num, self).__init__() self.m = { 0: '', 1: '-', # not exists 2: '0', # not exists 3: 'I', 4: 'V', 5: 'X', 6: 'L',...
29.782609
113
0.437956
be236727b4a9689254e94863761faec27a2e8a5c
751
py
Python
classwork/classwork/urls.py
cs-fullstack-fall-2018/django-intro3-ccpace1
e8b5c0a5b0b4c87e8fecc22f67e669213b86b236
[ "Apache-2.0" ]
null
null
null
classwork/classwork/urls.py
cs-fullstack-fall-2018/django-intro3-ccpace1
e8b5c0a5b0b4c87e8fecc22f67e669213b86b236
[ "Apache-2.0" ]
null
null
null
classwork/classwork/urls.py
cs-fullstack-fall-2018/django-intro3-ccpace1
e8b5c0a5b0b4c87e8fecc22f67e669213b86b236
[ "Apache-2.0" ]
null
null
null
"""classwork URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/2.0/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: path('', views.home, name='home') Class-bas...
34.136364
77
0.70972