hexsha
stringlengths
40
40
size
int64
2
1.02M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
4
245
max_stars_repo_name
stringlengths
6
130
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
245
max_issues_repo_name
stringlengths
6
130
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
245
max_forks_repo_name
stringlengths
6
130
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
2
1.02M
avg_line_length
float64
1
958k
max_line_length
int64
1
987k
alphanum_fraction
float64
0
1
content_no_comment
stringlengths
0
1.01M
is_comment_constant_removed
bool
2 classes
is_sharp_comment_removed
bool
1 class
1c44c2e440428fbf8e99bba9838287b19cd3fed5
195
py
Python
bindsnet_master/bindsnet/pipeline/__init__.py
Singular-Brain/ProjectBrain
2d22d45c13a86825c0dcaf517a59e02f2c4f6164
[ "MIT" ]
6
2021-06-01T03:43:35.000Z
2022-02-11T10:41:06.000Z
bindsnet_master/bindsnet/pipeline/__init__.py
Singular-Brain/ProjectBrain
2d22d45c13a86825c0dcaf517a59e02f2c4f6164
[ "MIT" ]
1
2022-03-31T03:22:14.000Z
2022-03-31T03:22:14.000Z
bindsnet_master/bindsnet/pipeline/__init__.py
Singular-Brain/ProjectBrain
2d22d45c13a86825c0dcaf517a59e02f2c4f6164
[ "MIT" ]
3
2021-10-30T02:30:40.000Z
2021-11-16T04:23:12.000Z
from .environment_pipeline import EnvironmentPipeline from .base_pipeline import BasePipeline from .dataloader_pipeline import DataLoaderPipeline, TorchVisionDatasetPipeline from . import action
39
79
0.887179
from .environment_pipeline import EnvironmentPipeline from .base_pipeline import BasePipeline from .dataloader_pipeline import DataLoaderPipeline, TorchVisionDatasetPipeline from . import action
true
true
1c44c32533d248651d10865ab48ee508be5c4361
9,815
py
Python
reports/configs/only_logs_dmpnn8_1/other_config.py
hengwei-chan/graph_network_demo
542f2a59b1b9708abdc718d77db7111f3ba2df96
[ "MIT" ]
1
2021-10-18T03:44:53.000Z
2021-10-18T03:44:53.000Z
reports/configs/only_logs_dmpnn8_1/other_config.py
hengwei-chan/graph_network_demo
542f2a59b1b9708abdc718d77db7111f3ba2df96
[ "MIT" ]
null
null
null
reports/configs/only_logs_dmpnn8_1/other_config.py
hengwei-chan/graph_network_demo
542f2a59b1b9708abdc718d77db7111f3ba2df96
[ "MIT" ]
1
2022-02-22T08:32:01.000Z
2022-02-22T08:32:01.000Z
from dataclasses import dataclass, field from typing import List import tensorflow as tf from graph_networks.utilities import * import logging import os ATOM_FEATURE_DIM = DGIN8_ATOM_FEATURE_DIM EDGE_FEATURE_DIM = DGIN8_EDGE_FEATURE_DIM @dataclass class BasicModelConfig: """ Config for model1/2/3 run file. ...
44.013453
169
0.669791
from dataclasses import dataclass, field from typing import List import tensorflow as tf from graph_networks.utilities import * import logging import os ATOM_FEATURE_DIM = DGIN8_ATOM_FEATURE_DIM EDGE_FEATURE_DIM = DGIN8_EDGE_FEATURE_DIM @dataclass class BasicModelConfig: model_name: str = 'only_logs_dmpnn8_1' ...
true
true
1c44c3e8a3498b6c6c288f6d9317a51aab17830b
3,422
py
Python
mf_localization_mapping/script/topic_checker.py
CMU-cabot/cabot
b53874abd2804f23f62dcc8ff97a5ee39d3fe48c
[ "MIT" ]
14
2020-12-05T17:15:57.000Z
2022-02-09T05:51:09.000Z
mf_localization_mapping/script/topic_checker.py
CMU-cabot/cabot
b53874abd2804f23f62dcc8ff97a5ee39d3fe48c
[ "MIT" ]
22
2021-02-25T06:56:23.000Z
2022-03-16T13:15:45.000Z
mf_localization_mapping/script/topic_checker.py
CMU-cabot/cabot
b53874abd2804f23f62dcc8ff97a5ee39d3fe48c
[ "MIT" ]
7
2021-01-05T16:07:59.000Z
2022-03-24T02:48:14.000Z
#!/usr/bin/python # -*- coding: utf-8 -*- # Copyright (c) 2021 IBM Corporation # # 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...
35.645833
80
0.633255
import subprocess from timeout_thread import * import argparse import time class TopicChecker: def __init__(self, timeout=3): self.timeout = timeout self.topics = [] self.identifiers = [] self.subps = [] self.threads = [] def add_topic(self, topic...
false
true
1c44c44a7fd2e2d21d12c9a07e5e73afb826cc4f
351
py
Python
app/__init__.py
demuk/Spare-Manager
670cac9a58e66cee58cd2ad3f6062d982c214903
[ "CC0-1.0" ]
1
2021-08-25T12:13:15.000Z
2021-08-25T12:13:15.000Z
app/__init__.py
demuk/Spare-Manager
670cac9a58e66cee58cd2ad3f6062d982c214903
[ "CC0-1.0" ]
null
null
null
app/__init__.py
demuk/Spare-Manager
670cac9a58e66cee58cd2ad3f6062d982c214903
[ "CC0-1.0" ]
null
null
null
from flask import Flask from config import Config from flask_sqlalchemy import SQLAlchemy from flask_migrate import Migrate from flask_login import LoginManager app = Flask(__name__) app.config.from_object(Config) db = SQLAlchemy(app) migrate = Migrate(app, db) login = LoginManager(app) login.login_view = 'login' f...
19.5
39
0.803419
from flask import Flask from config import Config from flask_sqlalchemy import SQLAlchemy from flask_migrate import Migrate from flask_login import LoginManager app = Flask(__name__) app.config.from_object(Config) db = SQLAlchemy(app) migrate = Migrate(app, db) login = LoginManager(app) login.login_view = 'login' f...
true
true
1c44c46aec892b9cb0523ce25ff5abdb3d142a87
256
py
Python
film/urls.py
mamalmaleki/kolbe_cl
0daf1ab55562b1f71a232be76c9e7609e8255e9a
[ "MIT" ]
1
2020-01-02T05:51:11.000Z
2020-01-02T05:51:11.000Z
film/urls.py
mamalmaleki/kolbe
0daf1ab55562b1f71a232be76c9e7609e8255e9a
[ "MIT" ]
2
2021-03-30T12:38:16.000Z
2021-09-22T18:30:59.000Z
film/urls.py
mamalmaleki/kolbe
0daf1ab55562b1f71a232be76c9e7609e8255e9a
[ "MIT" ]
1
2020-12-01T09:47:12.000Z
2020-12-01T09:47:12.000Z
from django.urls import path from film import views app_name = 'front-film' urlpatterns = [ path('call', views.call, name='call'), path('omdbapi-search', views.omdbapi_search, name='omdbapi-search'), path('', views.film_list, name='list'), ]
23.272727
72
0.683594
from django.urls import path from film import views app_name = 'front-film' urlpatterns = [ path('call', views.call, name='call'), path('omdbapi-search', views.omdbapi_search, name='omdbapi-search'), path('', views.film_list, name='list'), ]
true
true
1c44c4774817045f4ce1c5be7b351739522ce15c
12,993
py
Python
metadata-ingestion/src/datahub/cli/docker.py
naboudieng/datahub
1a5121a5aeb3940960e9994362860d4130b840f2
[ "Apache-2.0" ]
null
null
null
metadata-ingestion/src/datahub/cli/docker.py
naboudieng/datahub
1a5121a5aeb3940960e9994362860d4130b840f2
[ "Apache-2.0" ]
null
null
null
metadata-ingestion/src/datahub/cli/docker.py
naboudieng/datahub
1a5121a5aeb3940960e9994362860d4130b840f2
[ "Apache-2.0" ]
null
null
null
import datetime import itertools import logging import os import pathlib import platform import subprocess import sys import tempfile import time from typing import List, NoReturn, Optional import click import requests from datahub.cli.docker_check import ( check_local_docker_containers, get_client_with_error...
32.893671
124
0.633572
import datetime import itertools import logging import os import pathlib import platform import subprocess import sys import tempfile import time from typing import List, NoReturn, Optional import click import requests from datahub.cli.docker_check import ( check_local_docker_containers, get_client_with_error...
true
true
1c44c8b72eadfbead01d993a5e1364203d654373
2,784
py
Python
DisFormers/disformers.py
spacedev-official/disformers
31800466741be5ddcdfb531e021638f6ee112e23
[ "Apache-2.0" ]
null
null
null
DisFormers/disformers.py
spacedev-official/disformers
31800466741be5ddcdfb531e021638f6ee112e23
[ "Apache-2.0" ]
14
2021-11-01T08:23:06.000Z
2022-03-31T08:32:24.000Z
DisFormers/disformers.py
spacedev-official/disformers
31800466741be5ddcdfb531e021638f6ee112e23
[ "Apache-2.0" ]
null
null
null
""" Adapted from: https://www.machinecurve.com/index.php/2021/03/16/easy-chatbot-with-dialogpt-machine-learning-and-huggingface-transformers/ """ import asyncio from typing import Union from transformers import AutoModelForCausalLM, AutoTokenizer import os from discord import ( Message, Client ) from discord.e...
40.941176
123
0.650503
import asyncio from typing import Union from transformers import AutoModelForCausalLM, AutoTokenizer import os from discord import ( Message, Client ) from discord.ext import commands from aioify import aioify class DisFormersBot: def __init__( self, client: Union[commands.Bot,Client], ...
true
true
1c44c9bafb9eb7bf07b6cf5ae9faa8f6dfb48e92
64
py
Python
src/http_server/__meta__.py
explodingnuggets/HTTP-Server
adb829f14ea22f3791e90e093d0b2a1a13e80738
[ "MIT" ]
null
null
null
src/http_server/__meta__.py
explodingnuggets/HTTP-Server
adb829f14ea22f3791e90e093d0b2a1a13e80738
[ "MIT" ]
null
null
null
src/http_server/__meta__.py
explodingnuggets/HTTP-Server
adb829f14ea22f3791e90e093d0b2a1a13e80738
[ "MIT" ]
null
null
null
__author__ = 'Matheus Bortoleto da Silva' __version__ = '0.0.1'
21.333333
41
0.734375
__author__ = 'Matheus Bortoleto da Silva' __version__ = '0.0.1'
true
true
1c44ca6ab4d39dcd1e39ea389b325bfce7fa4529
1,896
py
Python
A1014280203/4/4.py
saurabh896/python-1
f8d3aedf4c0fe6e24dfa3269ea7e642c9f7dd9b7
[ "MIT" ]
3,976
2015-01-01T15:49:39.000Z
2022-03-31T03:47:56.000Z
A1014280203/4/4.py
dwh65416396/python
1a7e3edd1cd3422cc0eaa55471a0b42e004a9a1a
[ "MIT" ]
97
2015-01-11T02:59:46.000Z
2022-03-16T14:01:56.000Z
A1014280203/4/4.py
dwh65416396/python
1a7e3edd1cd3422cc0eaa55471a0b42e004a9a1a
[ "MIT" ]
3,533
2015-01-01T06:19:30.000Z
2022-03-28T13:14:54.000Z
import string # simply extend word like: it's => it is def extend_word(text): if text.find('\'') > 0: old2new = dict() words = text.split() for word in words: if word.find('\'') > 0: parts = word.split('\'') if parts[1] == 'm': ...
32.689655
72
0.456224
import string def extend_word(text): if text.find('\'') > 0: old2new = dict() words = text.split() for word in words: if word.find('\'') > 0: parts = word.split('\'') if parts[1] == 'm': parts[1] = 'am' ...
true
true
1c44cb2358ef226020e523a70bf6b334447775e4
2,162
py
Python
main.py
AntoniosBarotsis/midi2img
848f54c0f3a5175ee636c693b04b6363d00ee9c8
[ "MIT" ]
null
null
null
main.py
AntoniosBarotsis/midi2img
848f54c0f3a5175ee636c693b04b6363d00ee9c8
[ "MIT" ]
null
null
null
main.py
AntoniosBarotsis/midi2img
848f54c0f3a5175ee636c693b04b6363d00ee9c8
[ "MIT" ]
null
null
null
import sys import os import time from midi2img import main_midi from img2midi import main_img from contextlib import contextmanager,redirect_stderr,redirect_stdout from os import devnull from progress.bar import Bar # Clear log file open('out.log', 'w').close() # Suppress warning messages @contextmanager def suppress...
27.025
89
0.651711
import sys import os import time from midi2img import main_midi from img2midi import main_img from contextlib import contextmanager,redirect_stderr,redirect_stdout from os import devnull from progress.bar import Bar open('out.log', 'w').close() @contextmanager def suppress_stdout_stderr(): with open(devnull, 'w...
true
true
1c44ccfcfcc208fed41386c0340da79ce7f18c39
383
py
Python
c3i/c3i/wsgi.py
addinall/python-C3I
be72f026fb7c6b5084404876cd1296d3c3cb9b85
[ "Unlicense" ]
null
null
null
c3i/c3i/wsgi.py
addinall/python-C3I
be72f026fb7c6b5084404876cd1296d3c3cb9b85
[ "Unlicense" ]
null
null
null
c3i/c3i/wsgi.py
addinall/python-C3I
be72f026fb7c6b5084404876cd1296d3c3cb9b85
[ "Unlicense" ]
null
null
null
""" WSGI config for c3i project. It exposes the WSGI callable as a module-level variable named ``application``. For more information on this file, see https://docs.djangoproject.com/en/1.9/howto/deployment/wsgi/ """ import os from django.core.wsgi import get_wsgi_application os.environ.setdefault("DJANGO_SETTINGS_...
22.529412
78
0.780679
import os from django.core.wsgi import get_wsgi_application os.environ.setdefault("DJANGO_SETTINGS_MODULE", "c3i.settings") application = get_wsgi_application()
true
true
1c44cda1f6edfcb14bbbc4e7e639d20c3806e458
79,705
py
Python
main.py
vqour/tricera-backup
b9d88d23d520610e2a713dbdfaddc4d1824cde28
[ "Apache-2.0" ]
null
null
null
main.py
vqour/tricera-backup
b9d88d23d520610e2a713dbdfaddc4d1824cde28
[ "Apache-2.0" ]
null
null
null
main.py
vqour/tricera-backup
b9d88d23d520610e2a713dbdfaddc4d1824cde28
[ "Apache-2.0" ]
null
null
null
import os os.system("python3 webserver.py &") import asyncio import uvloop import sys asyncio.set_event_loop_policy(uvloop.EventLoopPolicy()) try: from typing import Any, Union, Optional import asyncio import datetime import json import functools import random as py_random import subproce...
40.500508
147
0.60818
import os os.system("python3 webserver.py &") import asyncio import uvloop import sys asyncio.set_event_loop_policy(uvloop.EventLoopPolicy()) try: from typing import Any, Union, Optional import asyncio import datetime import json import functools import random as py_random import subproce...
false
true
1c44ce797a5c460258f52bac245631d4c3a93ac6
258
py
Python
tensorflow_tts/configs/__init__.py
ashishpatel26/TensorflowTTS
bd29c3eefa51041b76fd355d94025b4c13084296
[ "Apache-2.0" ]
2
2020-06-01T07:39:25.000Z
2021-11-08T09:31:33.000Z
tensorflow_tts/configs/__init__.py
ashishpatel26/TensorflowTTS
bd29c3eefa51041b76fd355d94025b4c13084296
[ "Apache-2.0" ]
null
null
null
tensorflow_tts/configs/__init__.py
ashishpatel26/TensorflowTTS
bd29c3eefa51041b76fd355d94025b4c13084296
[ "Apache-2.0" ]
1
2020-10-05T06:06:20.000Z
2020-10-05T06:06:20.000Z
from tensorflow_tts.configs.fastspeech import FastSpeechConfig from tensorflow_tts.configs.melgan import MelGANGeneratorConfig from tensorflow_tts.configs.melgan import MelGANDiscriminatorConfig from tensorflow_tts.configs.tacotron2 import Tacotron2Config
36.857143
67
0.899225
from tensorflow_tts.configs.fastspeech import FastSpeechConfig from tensorflow_tts.configs.melgan import MelGANGeneratorConfig from tensorflow_tts.configs.melgan import MelGANDiscriminatorConfig from tensorflow_tts.configs.tacotron2 import Tacotron2Config
true
true
1c44cf402bf3cc203667af282d9dee25fdc98243
313
py
Python
pi_utils.py
georgeblck/creepydoll
7b0a5d811cfbf5bc65c91b25af56702f6077c10c
[ "MIT" ]
null
null
null
pi_utils.py
georgeblck/creepydoll
7b0a5d811cfbf5bc65c91b25af56702f6077c10c
[ "MIT" ]
null
null
null
pi_utils.py
georgeblck/creepydoll
7b0a5d811cfbf5bc65c91b25af56702f6077c10c
[ "MIT" ]
null
null
null
from picamera import PiCamera import os def record_video(destination): filename = os.path.join( destination, datetime.now().strftime('%Y-%m-%d_%H.%M.%S.h264')) camera.start_preview() camera.start_recording(filename) def finish_video(): camera.stop_recording() camera.stop_preview()
22.357143
71
0.702875
from picamera import PiCamera import os def record_video(destination): filename = os.path.join( destination, datetime.now().strftime('%Y-%m-%d_%H.%M.%S.h264')) camera.start_preview() camera.start_recording(filename) def finish_video(): camera.stop_recording() camera.stop_preview()
true
true
1c44cf439ceed23a243d6c564ce0b570a3316160
1,166
py
Python
english/data_processing/lessons/code/sphere.py
hrutkabence/tutorials
bd76294860804aee8ecda5e1445464506bf02ee0
[ "CC0-1.0" ]
null
null
null
english/data_processing/lessons/code/sphere.py
hrutkabence/tutorials
bd76294860804aee8ecda5e1445464506bf02ee0
[ "CC0-1.0" ]
null
null
null
english/data_processing/lessons/code/sphere.py
hrutkabence/tutorials
bd76294860804aee8ecda5e1445464506bf02ee0
[ "CC0-1.0" ]
null
null
null
import numpy as np from math import sqrt from sys import argv def sphere(x_, y_, z_): """ calculate best fitting sphere (LSM) on points :param returns: x0, y0, z0, R """ n_ = x_.shape[0] a = np.c_[x_, y_, z_, np.full(n_, 1, 'float64')] b = -np.square(x_) - np.square(y_) - np.square(...
37.612903
100
0.531732
import numpy as np from math import sqrt from sys import argv def sphere(x_, y_, z_): n_ = x_.shape[0] a = np.c_[x_, y_, z_, np.full(n_, 1, 'float64')] b = -np.square(x_) - np.square(y_) - np.square(z_) res = np.linalg.lstsq(a, b, rcond=None)[0] return -0.5 * res[0], -0.5 * res[1], -0.5 * res[2], \...
true
true
1c44d06afab9a86e82ffdf346b95617bf5c67311
4,277
py
Python
test/functional/rpc_invalidateblock.py
HashUnlimited/chaincoin
9a035680d6d9b9a0524dc7524c55cfedd1a683ca
[ "MIT" ]
null
null
null
test/functional/rpc_invalidateblock.py
HashUnlimited/chaincoin
9a035680d6d9b9a0524dc7524c55cfedd1a683ca
[ "MIT" ]
null
null
null
test/functional/rpc_invalidateblock.py
HashUnlimited/chaincoin
9a035680d6d9b9a0524dc7524c55cfedd1a683ca
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # Copyright (c) 2014-2019 The Bitcoin Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. """Test the invalidateblock RPC.""" from test_framework.test_framework import BitcoinTestFramework from t...
44.552083
100
0.680617
from test_framework.test_framework import BitcoinTestFramework from test_framework.address import ADDRESS_BCRT1_UNSPENDABLE_DESCRIPTOR from test_framework.util import ( assert_equal, connect_nodes, wait_until, ) class InvalidateTest(BitcoinTestFramework): def __init__(self): super().__in...
true
true
1c44d080d6ac7143425405bfa40c81c7ec4e761f
6,068
py
Python
util/metrics/metric_main.py
Barry-Menglong-Yao/pytorch-spectral-normalization-gan
4c669d26360383335642b7f4f43cb50446979a77
[ "MIT" ]
1
2021-12-28T16:28:54.000Z
2021-12-28T16:28:54.000Z
util/metrics/metric_main.py
Barry-Menglong-Yao/pytorch-spectral-normalization-gan
4c669d26360383335642b7f4f43cb50446979a77
[ "MIT" ]
null
null
null
util/metrics/metric_main.py
Barry-Menglong-Yao/pytorch-spectral-normalization-gan
4c669d26360383335642b7f4f43cb50446979a77
[ "MIT" ]
null
null
null
# Copyright (c) 2021, NVIDIA CORPORATION. All rights reserved. # # NVIDIA CORPORATION and its licensors retain all intellectual property # and proprietary rights in and to this software, related documentation # and any modifications thereto. Any use, reproduction, disclosure or # distribution of this software and re...
36.554217
147
0.689684
 import os import time import json import torch from .. import dnnlib from . import metric_utils from . import frechet_inception_distance from . import kernel_inception_distance from . import precision_recall from . import perceptual_path_length from . import inception_score _metric_dict = dict() def regi...
false
true
1c44d1c65c48745bd98f1e4b6e8a7460fd9bcbc8
10,468
py
Python
neural_network.py
marcvergees/rieffel_method
5377284c10010691238f10d5d6f77935c44d8f3d
[ "BSD-3-Clause" ]
null
null
null
neural_network.py
marcvergees/rieffel_method
5377284c10010691238f10d5d6f77935c44d8f3d
[ "BSD-3-Clause" ]
null
null
null
neural_network.py
marcvergees/rieffel_method
5377284c10010691238f10d5d6f77935c44d8f3d
[ "BSD-3-Clause" ]
null
null
null
# Big Data, Xarxes Neuronals i Màrqueting: la clau de l'èxit? # Treball de recerca (TR) # Marc Vergés Santiago - Escola Pia Mataró # # # # Copyright (c) 2021, Marc Vergés Santiago # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provid...
40.731518
131
0.62992
# Treball de recerca (TR) # Marc Vergés Santiago - Escola Pia Mataró # # # # Copyright (c) 2021, Marc Vergés Santiago # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met: # * Redistribut...
true
true
1c44d28b5a3327e8b46e68b17d3f1e122eb9c8c0
140
py
Python
pentagraph/__init__.py
Penta-Game/pentagraph
39a84dc06466bbff0a4f9692a24166ecfb839b84
[ "MIT" ]
1
2020-07-25T10:07:53.000Z
2020-07-25T10:07:53.000Z
pentagraph/__init__.py
Penta-Game/pentagraph
39a84dc06466bbff0a4f9692a24166ecfb839b84
[ "MIT" ]
43
2020-07-31T05:28:08.000Z
2021-07-27T05:11:03.000Z
pentagraph/__init__.py
Penta-Game/pentagraph
39a84dc06466bbff0a4f9692a24166ecfb839b84
[ "MIT" ]
null
null
null
from . import lib __version__ = "0.0.1b5" __author__ = "Cobalt" __doc__ = "Graph representation and tools for programming with pentagame."
23.333333
74
0.757143
from . import lib __version__ = "0.0.1b5" __author__ = "Cobalt" __doc__ = "Graph representation and tools for programming with pentagame."
true
true
1c44d343222bdd8581be68438ee3d2be5a1cb5b4
5,997
py
Python
payments/paymentswobill.py
lkerxhalli/tools
bb9391ab7e1312619e705ca4da4f8cda3c201f99
[ "MIT" ]
null
null
null
payments/paymentswobill.py
lkerxhalli/tools
bb9391ab7e1312619e705ca4da4f8cda3c201f99
[ "MIT" ]
null
null
null
payments/paymentswobill.py
lkerxhalli/tools
bb9391ab7e1312619e705ca4da4f8cda3c201f99
[ "MIT" ]
null
null
null
### Auth: Lorenc Kerxhalli ### Creates a estimated payment schedule per week ### input: ### 1. AP Payment report exported from Netsuite ### 2. Open Bills report exported from Netsuite ### ### output: ### Estimated payment schedule per vendor per week ### import sys import os import csv import datetim...
28.023364
92
0.576121
= p.search(str) if(m): index = m.end() + 1 return str[index:] else: return None def getDate(strDate): lIndex = strDate.rfind('/') + 1 strYear = strDate[lIndex:] if(len(strYear) == 2): return datetime.datetime.strptime(strDate, "%m/%d/%y").date() elif (len(...
true
true
1c44d3ce85fdcbffb545fbcfd8c5b98209705ad1
5,068
py
Python
q2_feature_table/tests/test_merge.py
jairideout/q2-feature-table
494e0b8080799c746c55be2271278891798b8e56
[ "BSD-3-Clause" ]
null
null
null
q2_feature_table/tests/test_merge.py
jairideout/q2-feature-table
494e0b8080799c746c55be2271278891798b8e56
[ "BSD-3-Clause" ]
null
null
null
q2_feature_table/tests/test_merge.py
jairideout/q2-feature-table
494e0b8080799c746c55be2271278891798b8e56
[ "BSD-3-Clause" ]
null
null
null
# ---------------------------------------------------------------------------- # Copyright (c) 2016-2017, QIIME 2 development team. # # Distributed under the terms of the Modified BSD License. # # The full license is in the file LICENSE, distributed with this software. # ------------------------------------------------...
39.286822
78
0.48165
import unittest import skbio import numpy as np from biom.table import Table import pandas as pd import pandas.util.testing as pdt from q2_feature_table import (merge, merge_seq_data, merge_taxa_data) from q2_feature_table._merge import _merge_feature_data class MergeTableTests...
true
true
1c44d430b2eeaaad52c4aa52a38f7b194de4bb78
3,626
py
Python
pyinfra/api/connectors/sshuserclient/client.py
ryanwersal/pyinfra
350c9053953531d1d258512f1e0761879df772fb
[ "MIT" ]
null
null
null
pyinfra/api/connectors/sshuserclient/client.py
ryanwersal/pyinfra
350c9053953531d1d258512f1e0761879df772fb
[ "MIT" ]
null
null
null
pyinfra/api/connectors/sshuserclient/client.py
ryanwersal/pyinfra
350c9053953531d1d258512f1e0761879df772fb
[ "MIT" ]
null
null
null
''' This file as originally part of the "sshuserclient" pypi package. The GitHub source has now vanished (https://github.com/tobald/sshuserclient). ''' from os import path from paramiko import ( AutoAddPolicy, ProxyCommand, SSHClient as ParamikoClient, ) from pyinfra.api.util import memoize from .config...
33.266055
79
0.585769
from os import path from paramiko import ( AutoAddPolicy, ProxyCommand, SSHClient as ParamikoClient, ) from pyinfra.api.util import memoize from .config import SSHConfig @memoize def get_ssh_config(): user_config_file = path.expanduser('~/.ssh/config') if path.exists(user_config_file): ...
true
true
1c44d55c661fe7927d699d360f48b543035456cf
3,552
py
Python
atemplate.py
strickyak/aphid
12469858facdc9d7f110bf6c895e58eae9fb728f
[ "MIT" ]
2
2015-05-25T10:47:30.000Z
2017-12-12T18:15:00.000Z
atemplate.py
strickyak/aphid
12469858facdc9d7f110bf6c895e58eae9fb728f
[ "MIT" ]
null
null
null
atemplate.py
strickyak/aphid
12469858facdc9d7f110bf6c895e58eae9fb728f
[ "MIT" ]
null
null
null
from go import html.template PlainBase = template.New("atemplate.py") def AddContentsFunction(t): "Install a template function 'unrye' that gets the contents from a PGo." "Usage: {{range .Debug | unrye}} <li> {{.}}" native: 't := JContents(a_t).(*i_template.Template)' 'fmap := make(i_template.FuncMap)' ...
25.553957
100
0.531813
from go import html.template PlainBase = template.New("atemplate.py") def AddContentsFunction(t): "Install a template function 'unrye' that gets the contents from a PGo." "Usage: {{range .Debug | unrye}} <li> {{.}}" native: 't := JContents(a_t).(*i_template.Template)' 'fmap := make(i_template.FuncMap)' ...
false
true
1c44d59547bb28cda69dfd6ea00db05d926f2024
3,035
py
Python
test/test_base_processor.py
tienanh-1999/TensorFlowTTS
cd3a5e1f9915fa7dd646771fd50fe6fef94fe9fc
[ "Apache-2.0" ]
1,961
2020-07-31T07:31:27.000Z
2022-03-31T20:39:29.000Z
test/test_base_processor.py
neso613/TensorFlowTTS
978f397c244a4987e2aa11e5db8d1e5902332826
[ "Apache-2.0" ]
587
2020-07-31T03:24:54.000Z
2022-03-29T02:31:50.000Z
test/test_base_processor.py
neso613/TensorFlowTTS
978f397c244a4987e2aa11e5db8d1e5902332826
[ "Apache-2.0" ]
483
2020-07-31T17:48:32.000Z
2022-03-31T13:55:49.000Z
import pytest from tensorflow_tts.processor.base_processor import BaseProcessor, DataProcessorError import string from dataclasses import dataclass from shutil import copyfile @dataclass class LJ(BaseProcessor): def get_one_sample(self, item): sample = { "raw_text": None, "text_ids...
28.101852
85
0.670181
import pytest from tensorflow_tts.processor.base_processor import BaseProcessor, DataProcessorError import string from dataclasses import dataclass from shutil import copyfile @dataclass class LJ(BaseProcessor): def get_one_sample(self, item): sample = { "raw_text": None, "text_ids...
true
true
1c44d6adc5f4ee15843ce36776690e20cbf7f159
1,363
py
Python
meregistro/apps/registro/models/EstablecimientoAutoridad.py
MERegistro/meregistro
6cde3cab2bd1a8e3084fa38147de377d229391e3
[ "BSD-3-Clause" ]
null
null
null
meregistro/apps/registro/models/EstablecimientoAutoridad.py
MERegistro/meregistro
6cde3cab2bd1a8e3084fa38147de377d229391e3
[ "BSD-3-Clause" ]
null
null
null
meregistro/apps/registro/models/EstablecimientoAutoridad.py
MERegistro/meregistro
6cde3cab2bd1a8e3084fa38147de377d229391e3
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- from django.db import models from apps.registro.models.Establecimiento import Establecimiento from apps.seguridad.models.TipoDocumento import TipoDocumento from apps.registro.models.AutoridadCargo import AutoridadCargo from django.core.exceptions import ValidationError class EstablecimientoAut...
45.433333
100
0.752018
from django.db import models from apps.registro.models.Establecimiento import Establecimiento from apps.seguridad.models.TipoDocumento import TipoDocumento from apps.registro.models.AutoridadCargo import AutoridadCargo from django.core.exceptions import ValidationError class EstablecimientoAutoridad(models.Model): ...
true
true
1c44d7fbd04a0e2096ef3888fde21248877de8f1
4,060
py
Python
python/tests/server/test_http_output.py
dashstander/cog
0aee3c9ef50ac346d053010e39c4e7becbbcb70d
[ "Apache-2.0" ]
null
null
null
python/tests/server/test_http_output.py
dashstander/cog
0aee3c9ef50ac346d053010e39c4e7becbbcb70d
[ "Apache-2.0" ]
null
null
null
python/tests/server/test_http_output.py
dashstander/cog
0aee3c9ef50ac346d053010e39c4e7becbbcb70d
[ "Apache-2.0" ]
null
null
null
import base64 import io import os import tempfile import numpy as np from PIL import Image import responses from responses.matchers import multipart_matcher from cog import BaseModel, BasePredictor, Path, File from .test_http import make_client def test_return_wrong_type(): class Predictor(BasePredictor): ...
28.391608
94
0.61133
import base64 import io import os import tempfile import numpy as np from PIL import Image import responses from responses.matchers import multipart_matcher from cog import BaseModel, BasePredictor, Path, File from .test_http import make_client def test_return_wrong_type(): class Predictor(BasePredictor): ...
true
true
1c44d821b673acb2343e06993bdaf8292215ca6a
26,336
py
Python
rnn.py
hamk-uas/HAMK_Smart_City
c9408ea1caac995522489a331207737b37971314
[ "Apache-2.0" ]
1
2021-12-19T09:53:28.000Z
2021-12-19T09:53:28.000Z
rnn.py
hamk-uas/HAMK_Smart_City
c9408ea1caac995522489a331207737b37971314
[ "Apache-2.0" ]
null
null
null
rnn.py
hamk-uas/HAMK_Smart_City
c9408ea1caac995522489a331207737b37971314
[ "Apache-2.0" ]
null
null
null
import pandas as pd import numpy as np from tensorflow import Variable from tensorflow.keras.models import Sequential, load_model from tensorflow.keras.layers import Dense, GRU, LSTM, SimpleRNN, BatchNormalization from tensorflow.keras.optimizers import Adam from tensorflow.keras.callbacks import EarlyStopping from skl...
48.500921
179
0.606508
import pandas as pd import numpy as np from tensorflow import Variable from tensorflow.keras.models import Sequential, load_model from tensorflow.keras.layers import Dense, GRU, LSTM, SimpleRNN, BatchNormalization from tensorflow.keras.optimizers import Adam from tensorflow.keras.callbacks import EarlyStopping from skl...
true
true
1c44d872e71fe39535f712ec003d271474cc86bc
772
py
Python
qcloudsdkds/ContractRecoveryRequest.py
f3n9/qcloudcli
b965a4f0e6cdd79c1245c1d0cd2ca9c460a56f19
[ "Apache-2.0" ]
null
null
null
qcloudsdkds/ContractRecoveryRequest.py
f3n9/qcloudcli
b965a4f0e6cdd79c1245c1d0cd2ca9c460a56f19
[ "Apache-2.0" ]
null
null
null
qcloudsdkds/ContractRecoveryRequest.py
f3n9/qcloudcli
b965a4f0e6cdd79c1245c1d0cd2ca9c460a56f19
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- from qcloudsdkcore.request import Request class ContractRecoveryRequest(Request): def __init__(self): super(ContractRecoveryRequest, self).__init__( 'ds', 'qcloudcliV1', 'ContractRecovery', 'ds.api.qcloud.com') def get_contractResId(self): return self.get_...
27.571429
73
0.676166
from qcloudsdkcore.request import Request class ContractRecoveryRequest(Request): def __init__(self): super(ContractRecoveryRequest, self).__init__( 'ds', 'qcloudcliV1', 'ContractRecovery', 'ds.api.qcloud.com') def get_contractResId(self): return self.get_params().get('contractR...
true
true
1c44d8736d714d113497f524b08d44eb57ca8a35
2,233
py
Python
feedler/feedparser.py
pcoder/public-health-ch
cebc4849653560c54238b67814074353ff7c01f3
[ "MIT" ]
2
2020-10-29T16:27:21.000Z
2021-06-07T12:47:46.000Z
feedler/feedparser.py
pcoder/public-health-ch
cebc4849653560c54238b67814074353ff7c01f3
[ "MIT" ]
11
2017-05-09T10:50:28.000Z
2021-12-15T17:01:23.000Z
feedler/feedparser.py
pcoder/public-health-ch
cebc4849653560c54238b67814074353ff7c01f3
[ "MIT" ]
4
2017-04-24T13:06:55.000Z
2021-06-04T02:18:32.000Z
# -*- coding: utf-8 -*- from datetime import datetime from guess_language import guess_language def parse(obj, raw, stream): """ Parse raw JSON implementation from the Feedly API """ obj.raw = raw obj.stream = stream obj.entry_id = raw['id'] # Date stamp handling ts = raw['published']...
30.589041
58
0.545455
from datetime import datetime from guess_language import guess_language def parse(obj, raw, stream): obj.raw = raw obj.stream = stream obj.entry_id = raw['id'] ts = raw['published'] / 1000 obj.published = datetime.fromtimestamp(ts) obj.title = raw['title'][:250] if 'author' in...
true
true
1c44da8cd8e14680cabbb02c8fd7a7fdb43c144d
393
py
Python
rockwell/rockwell/asgi.py
Xiangyongluo/Hackathon-Project
815eb9b4e1ea9d41d4ddc90e204bbe919b8bc2ba
[ "Apache-2.0" ]
null
null
null
rockwell/rockwell/asgi.py
Xiangyongluo/Hackathon-Project
815eb9b4e1ea9d41d4ddc90e204bbe919b8bc2ba
[ "Apache-2.0" ]
1
2021-12-04T04:35:52.000Z
2021-12-04T04:35:52.000Z
rockwell/rockwell/asgi.py
Xiangyongluo/Hackathon-Project
815eb9b4e1ea9d41d4ddc90e204bbe919b8bc2ba
[ "Apache-2.0" ]
null
null
null
""" ASGI config for rockwell project. It exposes the ASGI callable as a module-level variable named ``application``. For more information on this file, see https://docs.djangoproject.com/en/2.1/howto/deployment/asgi/ """ import os from django.core.asgi import get_asgi_application os.environ.setdefault('DJANGO_SETT...
23.117647
78
0.78626
import os from django.core.asgi import get_asgi_application os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'rockwell.settings') application = get_asgi_application()
true
true
1c44db39a1bbd369f3b8ca3833e06ce7a09f36e3
6,679
py
Python
dm_control/locomotion/walkers/base.py
h8907283/dm_control
fe4449606742a7b8bec81930790b98244cddc538
[ "Apache-2.0" ]
1
2022-03-22T11:53:38.000Z
2022-03-22T11:53:38.000Z
dm_control/locomotion/walkers/base.py
krakhit/dm_control
4e1a35595124742015ae0c7a829e099a5aa100f5
[ "Apache-2.0" ]
null
null
null
dm_control/locomotion/walkers/base.py
krakhit/dm_control
4e1a35595124742015ae0c7a829e099a5aa100f5
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 The dm_control Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to i...
33.562814
80
0.690972
import abc import collections from dm_control import composer from dm_control.composer.observation import observable from dm_env import specs import numpy as np def _make_readonly_float64_copy(value): if np.isscalar(value): return np.float64(value) else: out = np.array(value, dtype=np.fl...
true
true
1c44dce31e003e663b608bdf55046a067adb45b9
6,765
py
Python
fonts/connect3d_infineon_8x16.py
ccccmagicboy/st7735_mpy
b15f1bde69fbe6e0eb4931c57e71c136d8e7f024
[ "MIT" ]
6
2020-07-11T16:59:19.000Z
2021-07-16T19:32:49.000Z
ports/esp32/user_modules/st7735_mpy/fonts/connect3d_infineon_8x16.py
d4niele/micropython
a1f7b37d392bf46b28045ce215ae899fda8d8c38
[ "MIT" ]
1
2020-04-14T03:14:45.000Z
2020-04-14T03:14:45.000Z
fonts/connect3d_infineon_8x16.py
ccccmagicboy/st7735_mpy
b15f1bde69fbe6e0eb4931c57e71c136d8e7f024
[ "MIT" ]
null
null
null
"""converted from ..\fonts\Connect3d_Infineon_8x16.bin """ WIDTH = 8 HEIGHT = 16 FIRST = 0x20 LAST = 0x7f _FONT =\ b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'\ b'\x00\x00\x18\x3c\x3c\x3c\x3c\x18\x18\x00\x18\x18\x00\x00\x00\x00'\ b'\x00\x36\x36\x36\x36\x14\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'...
64.428571
68
0.709978
WIDTH = 8 HEIGHT = 16 FIRST = 0x20 LAST = 0x7f _FONT =\ b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'\ b'\x00\x00\x18\x3c\x3c\x3c\x3c\x18\x18\x00\x18\x18\x00\x00\x00\x00'\ b'\x00\x36\x36\x36\x36\x14\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'\ b'\x00\x00\x6c\x6c\x6c\xfe\x6c\x6c\xfe\x6c\x6c\x6c\x00\x0...
true
true
1c44ddb53005f0348306ada9b2eb5fc4041f1299
6,990
py
Python
src/connectedvmware/azext_connectedvmware/vendored_sdks/models/virtual_machine_template.py
haroonf/azure-cli-extensions
61c044d34c224372f186934fa7c9313f1cd3a525
[ "MIT" ]
207
2017-11-29T06:59:41.000Z
2022-03-31T10:00:53.000Z
src/connectedvmware/azext_connectedvmware/vendored_sdks/models/virtual_machine_template.py
haroonf/azure-cli-extensions
61c044d34c224372f186934fa7c9313f1cd3a525
[ "MIT" ]
4,061
2017-10-27T23:19:56.000Z
2022-03-31T23:18:30.000Z
src/connectedvmware/azext_connectedvmware/vendored_sdks/models/virtual_machine_template.py
haroonf/azure-cli-extensions
61c044d34c224372f186934fa7c9313f1cd3a525
[ "MIT" ]
802
2017-10-11T17:36:26.000Z
2022-03-31T22:24:32.000Z
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for # license information. # # Code generated by Microsoft (R) AutoRest Code Generator. # Changes ...
43.962264
100
0.634621
from msrest.serialization import Model class VirtualMachineTemplate(Model): _validation = { 'uuid': {'readonly': True}, 'mo_name': {'readonly': True}, 'memory_size_mb': {'readonly': True}, 'num_cp_us': {'readonly': True}, 'num_cores_per_socket': {'readonly': Tru...
true
true
1c44ddf468ea1fa13eb77cec4667348d4bc60c09
7,181
py
Python
main.py
zhangchenkai/piwise_segmentation
3dfecaae32cde9097d9c312e3373a834b0884319
[ "BSD-3-Clause" ]
null
null
null
main.py
zhangchenkai/piwise_segmentation
3dfecaae32cde9097d9c312e3373a834b0884319
[ "BSD-3-Clause" ]
null
null
null
main.py
zhangchenkai/piwise_segmentation
3dfecaae32cde9097d9c312e3373a834b0884319
[ "BSD-3-Clause" ]
null
null
null
import sys from argparse import ArgumentParser import numpy as np import pandas as pd import torch from torch.autograd import Variable from torch.optim import Adam from torch.utils.data import DataLoader from torchvision.transforms import Compose, Normalize from torchvision.transforms import ToTensor, ToPILImage, Resi...
35.374384
100
0.604512
import sys from argparse import ArgumentParser import numpy as np import pandas as pd import torch from torch.autograd import Variable from torch.optim import Adam from torch.utils.data import DataLoader from torchvision.transforms import Compose, Normalize from torchvision.transforms import ToTensor, ToPILImage, Resi...
true
true
1c44de44632df44a415f68c307e8e4ac5cfde4f8
183
py
Python
PAT/pythonSrc/PAT-B1011.A+B和C.py
OS-EDU/KO--CSP
615a3a02853be6832f0e958969a2cb26106d3908
[ "Apache-2.0" ]
30
2020-11-07T06:56:26.000Z
2022-02-21T09:12:39.000Z
PAT/pythonSrc/PAT-B1011.A+B和C.py
OS-EDU/KO--CSP
615a3a02853be6832f0e958969a2cb26106d3908
[ "Apache-2.0" ]
166
2020-11-05T07:28:15.000Z
2022-03-28T04:00:08.000Z
PAT/pythonSrc/PAT-B1011.A+B和C.py
OS-EDU/KO--CSP
615a3a02853be6832f0e958969a2cb26106d3908
[ "Apache-2.0" ]
28
2020-11-07T06:56:29.000Z
2021-09-14T11:20:27.000Z
n = int(input()) #测试数据组数 i = 1 #记录循环次数 while i <= n: a, b, c = map(int, input().split()) print("Case #%d: "%i, end="") if a + b > c: print("true") else: print("false") i += 1
18.3
36
0.508197
n = int(input()) i = 1 while i <= n: a, b, c = map(int, input().split()) print("Case #%d: "%i, end="") if a + b > c: print("true") else: print("false") i += 1
true
true
1c44de9cdbe7f0da12017ec35e71d4438341fccc
2,577
py
Python
03_train_model/source_dir/training_debug.py
alar0330/amazon-sagemaker-build-train-deploy
b476c5ba5b3bd55a99709e7788079763fa498682
[ "Apache-2.0" ]
23
2020-03-30T08:02:48.000Z
2022-02-01T16:16:43.000Z
03_train_model/source_dir/training_debug.py
alar0330/amazon-sagemaker-build-train-deploy
b476c5ba5b3bd55a99709e7788079763fa498682
[ "Apache-2.0" ]
null
null
null
03_train_model/source_dir/training_debug.py
alar0330/amazon-sagemaker-build-train-deploy
b476c5ba5b3bd55a99709e7788079763fa498682
[ "Apache-2.0" ]
11
2020-04-04T09:01:27.000Z
2021-06-02T12:10:21.000Z
import argparse import json import os import random import pandas as pd import glob import pickle as pkl import xgboost from smdebug import SaveConfig from smdebug.xgboost import Hook def parse_args(): parser = argparse.ArgumentParser() parser.add_argument("--max_depth", type=int, default=5) parser.add...
29.62069
98
0.684517
import argparse import json import os import random import pandas as pd import glob import pickle as pkl import xgboost from smdebug import SaveConfig from smdebug.xgboost import Hook def parse_args(): parser = argparse.ArgumentParser() parser.add_argument("--max_depth", type=int, default=5) parser.add...
true
true
1c44df28fd3a2056d9abd1da319c0912766c6417
41
py
Python
sksurgerybard/ui/__init__.py
SciKit-Surgery/scikit-surgerybard
4ac2ea28acb150437361c9abd53db3e3bba6d803
[ "BSD-3-Clause" ]
1
2021-06-30T15:55:21.000Z
2021-06-30T15:55:21.000Z
sksurgerybard/ui/__init__.py
UCL/scikit-surgerybard
7ebe4d15d3d3fa67218424c9f737a9e8d93bfbf3
[ "BSD-3-Clause" ]
68
2020-04-30T07:29:33.000Z
2022-01-20T09:47:54.000Z
sksurgerybard/ui/__init__.py
SciKit-Surgery/scikit-surgerybard
4ac2ea28acb150437361c9abd53db3e3bba6d803
[ "BSD-3-Clause" ]
1
2021-06-30T15:55:48.000Z
2021-06-30T15:55:48.000Z
# coding=utf-8 """scikit-surgerybard"""
10.25
24
0.658537
true
true
1c44e010fefb96406841d2144b608e607f89b5a7
7,410
py
Python
apps/tests/test_measurement_on_request1.py
sanchezcarlosjr/PyK-Ar
13ed535b85a9025464ae85feda46d94887d75e3e
[ "Apache-2.0" ]
1
2021-09-24T23:13:22.000Z
2021-09-24T23:13:22.000Z
apps/tests/test_measurement_on_request1.py
sanchezcarlosjr/PyK-Ar
13ed535b85a9025464ae85feda46d94887d75e3e
[ "Apache-2.0" ]
10
2021-09-25T05:15:04.000Z
2021-10-04T20:02:27.000Z
apps/tests/test_measurement_on_request1.py
sanchezcarlosjr/PyK-Ar
13ed535b85a9025464ae85feda46d94887d75e3e
[ "Apache-2.0" ]
null
null
null
import json import sys from datetime import datetime from firebase_admin import initialize_app from domain.Ar36_Ar38_composition_of_atmospheric import Ar36Ar38CompositionOfAtmospheric from domain.Ar36_Ar38_ratio_for_tracer import Ar36Ar38RatioForTracer from domain.Ar40_Ar38_composition_of_atmospheric import Ar40Ar38C...
38
109
0.778812
import json import sys from datetime import datetime from firebase_admin import initialize_app from domain.Ar36_Ar38_composition_of_atmospheric import Ar36Ar38CompositionOfAtmospheric from domain.Ar36_Ar38_ratio_for_tracer import Ar36Ar38RatioForTracer from domain.Ar40_Ar38_composition_of_atmospheric import Ar40Ar38C...
true
true
1c44e1b28f76d59aab7443a816e6b848c0913e2f
3,663
py
Python
tests/lib/test_binary.py
nrrpinto/construct
cfc980c6edfbe33c56015b736f59fb3155b51317
[ "MIT" ]
629
2015-01-06T03:01:56.000Z
2022-03-23T13:13:26.000Z
tests/lib/test_binary.py
nrrpinto/construct
cfc980c6edfbe33c56015b736f59fb3155b51317
[ "MIT" ]
897
2015-02-28T15:46:06.000Z
2022-03-30T08:19:13.000Z
tests/lib/test_binary.py
nrrpinto/construct
cfc980c6edfbe33c56015b736f59fb3155b51317
[ "MIT" ]
151
2015-01-08T16:36:24.000Z
2022-03-10T16:59:49.000Z
from tests.declarativeunittest import * from construct.lib.binary import * def test_integer2bits(): assert integer2bits(0, 0, False) == b"" assert integer2bits(0, 0, True) == b"" assert integer2bits(19, 5) == b"\x01\x00\x00\x01\x01" assert integer2bits(19, 8) == b"\x00\x00\x00\x01\x00\x00\x01\x01" ...
44.670732
99
0.658204
from tests.declarativeunittest import * from construct.lib.binary import * def test_integer2bits(): assert integer2bits(0, 0, False) == b"" assert integer2bits(0, 0, True) == b"" assert integer2bits(19, 5) == b"\x01\x00\x00\x01\x01" assert integer2bits(19, 8) == b"\x00\x00\x00\x01\x00\x00\x01\x01" ...
true
true
1c44e1d0468e64809d81b9a7adc2c74263251bc9
1,943
py
Python
common_config.py
Dervish13/bsidesns-backend
ba8173f2b81210a561b203973eb48d5c124870b1
[ "BSD-2-Clause" ]
null
null
null
common_config.py
Dervish13/bsidesns-backend
ba8173f2b81210a561b203973eb48d5c124870b1
[ "BSD-2-Clause" ]
null
null
null
common_config.py
Dervish13/bsidesns-backend
ba8173f2b81210a561b203973eb48d5c124870b1
[ "BSD-2-Clause" ]
3
2020-01-12T13:34:35.000Z
2021-11-01T17:50:21.000Z
import os from name import app_name # from datetime import timedelta SECRET_KEY = 'iQfPvB6sZaNHqVFI5CJa9rM1xOEVHKIM0LwifT04yLsPlZhSSvaDuZXOgJFSpJVq' PROJECT_ROOT = os.path.dirname(os.path.abspath(__file__)) class Config: NAME = app_name API_TITLE = 'BSidesNS' API_VERSION = '0' PROJECT_ROOT = PROJE...
25.233766
79
0.647967
import os from name import app_name SECRET_KEY = 'iQfPvB6sZaNHqVFI5CJa9rM1xOEVHKIM0LwifT04yLsPlZhSSvaDuZXOgJFSpJVq' PROJECT_ROOT = os.path.dirname(os.path.abspath(__file__)) class Config: NAME = app_name API_TITLE = 'BSidesNS' API_VERSION = '0' PROJECT_ROOT = PROJECT_ROOT DEBUG = False SEC...
true
true
1c44e2dea11c4418697f8702a5ed5c2500dfd3cc
647
py
Python
Dataset/Leetcode/valid/11/682.py
kkcookies99/UAST
fff81885aa07901786141a71e5600a08d7cb4868
[ "MIT" ]
null
null
null
Dataset/Leetcode/valid/11/682.py
kkcookies99/UAST
fff81885aa07901786141a71e5600a08d7cb4868
[ "MIT" ]
null
null
null
Dataset/Leetcode/valid/11/682.py
kkcookies99/UAST
fff81885aa07901786141a71e5600a08d7cb4868
[ "MIT" ]
null
null
null
class Solution: def XXX(self, height: List[int]) -> int: most,hlen = 0,len(height) start,end=0,hlen-1 while start<end: a,b=height[start],height[end] if a<b: ret = (end-start)*a while height[start] <= a: start+=1 ...
28.130435
44
0.372488
class Solution: def XXX(self, height: List[int]) -> int: most,hlen = 0,len(height) start,end=0,hlen-1 while start<end: a,b=height[start],height[end] if a<b: ret = (end-start)*a while height[start] <= a: start+=1 ...
false
true
1c44e2e023ecbefc243eb43627180b2a8fa0dc0c
11,910
py
Python
lib-python/modified-2.4.1/copy.py
camillobruni/pygirl
ddbd442d53061d6ff4af831c1eab153bcc771b5a
[ "MIT" ]
12
2016-01-06T07:10:28.000Z
2021-05-13T23:02:02.000Z
lib-python/modified-2.4.1/copy.py
camillobruni/pygirl
ddbd442d53061d6ff4af831c1eab153bcc771b5a
[ "MIT" ]
null
null
null
lib-python/modified-2.4.1/copy.py
camillobruni/pygirl
ddbd442d53061d6ff4af831c1eab153bcc771b5a
[ "MIT" ]
2
2016-07-29T07:09:50.000Z
2016-10-16T08:50:26.000Z
"""Generic (shallow and deep) copying operations. Interface summary: import copy x = copy.copy(y) # make a shallow copy of y x = copy.deepcopy(y) # make a deep copy of y For module specific errors, copy.Error is raised. The difference between shallow and deep copying is only relev...
26.824324
75
0.579849
"""Generic (shallow and deep) copying operations. Interface summary: import copy x = copy.copy(y) # make a shallow copy of y x = copy.deepcopy(y) # make a deep copy of y For module specific errors, copy.Error is raised. The difference between shallow and deep copying is only relev...
false
true
1c44e32562aa9115a0e38ce8b781e766efe4afaa
4,287
py
Python
pirates/effects/SteamCloud.py
itsyaboyrocket/pirates
6ca1e7d571c670b0d976f65e608235707b5737e3
[ "BSD-3-Clause" ]
3
2021-02-25T06:38:13.000Z
2022-03-22T07:00:15.000Z
pirates/effects/SteamCloud.py
itsyaboyrocket/pirates
6ca1e7d571c670b0d976f65e608235707b5737e3
[ "BSD-3-Clause" ]
null
null
null
pirates/effects/SteamCloud.py
itsyaboyrocket/pirates
6ca1e7d571c670b0d976f65e608235707b5737e3
[ "BSD-3-Clause" ]
1
2021-02-25T06:38:17.000Z
2021-02-25T06:38:17.000Z
# uncompyle6 version 3.2.0 # Python bytecode 2.4 (62061) # Decompiled from: Python 2.7.14 (v2.7.14:84471935ed, Sep 16 2017, 20:19:30) [MSC v.1500 32 bit (Intel)] # Embedded file name: pirates.effects.SteamCloud from pandac.PandaModules import * from direct.interval.IntervalGlobal import * from direct.particles import P...
46.096774
176
0.696991
from pandac.PandaModules import * from direct.interval.IntervalGlobal import * from direct.particles import ParticleEffect from direct.particles import Particles from direct.particles import ForceGroup from pirates.piratesgui.GameOptions import Options from EffectController import EffectController from PooledEffect...
true
true
1c44e3c2f33006b5c3dda27583e1334edfeee1e7
3,581
py
Python
examples_progress_bar.py
ElCap1tan/ProgressPrinter
fd144e94543175b87a4d16234b05220a65c0140b
[ "MIT" ]
null
null
null
examples_progress_bar.py
ElCap1tan/ProgressPrinter
fd144e94543175b87a4d16234b05220a65c0140b
[ "MIT" ]
2
2019-09-10T21:48:21.000Z
2019-09-28T16:28:36.000Z
examples_progress_bar.py
ElCap1tan/ProgressPrinter
fd144e94543175b87a4d16234b05220a65c0140b
[ "MIT" ]
null
null
null
#!/usr/bin/env python from time import sleep from ProgressPrinter import ProgressBar def main(): """ Choose which examples to run in this method """ ex1() ex2() ex3() ex4() ex5() def ex1(): """ **Example 1** :: pb1 = ProgressBar(100, '%', pre='Downloading file'...
27.335878
146
0.527506
from time import sleep from ProgressPrinter import ProgressBar def main(): ex1() ex2() ex3() ex4() ex5() def ex1(): pb1 = ProgressBar(100, '%', pre='Downloading file', post='Download finished', length=25) pb1.print_progress() for mb in range(1, 101): pb1.print_progress...
true
true
1c44e4c3291a1e3a80c99161ea4d923297721848
415
py
Python
grakel/kernels/_isomorphism/__init__.py
vishalbelsare/GraKeL
1330c7ee4e66e6b273bcad83fff5be5df3230128
[ "BSD-3-Clause" ]
null
null
null
grakel/kernels/_isomorphism/__init__.py
vishalbelsare/GraKeL
1330c7ee4e66e6b273bcad83fff5be5df3230128
[ "BSD-3-Clause" ]
null
null
null
grakel/kernels/_isomorphism/__init__.py
vishalbelsare/GraKeL
1330c7ee4e66e6b273bcad83fff5be5df3230128
[ "BSD-3-Clause" ]
null
null
null
"""Init file for the _isomorphism submodule project.""" # Author: Ioannis Siglidis <y.siglidis@gmail.com> # This file is a modification and extension of the [GNU LPGL] licensed # PyBliss which can be found at: http://www.tcs.hut.fi/Software/bliss/ # PyBliss and Bliss are copyright of their respective owners. # License:...
34.583333
70
0.749398
from grakel.kernels._isomorphism.bliss import Graph __all__ = [ "Graph", ]
true
true
1c44e4e779a113971e0da7c7ed64813dda5530f5
11,232
py
Python
custom_components/hacs/hacsbase/hacs.py
Lucstricke/integration
1543686f3d99c8f16ec4fc37b2edd70b2a3e29a5
[ "MIT" ]
1
2021-12-12T18:19:48.000Z
2021-12-12T18:19:48.000Z
custom_components/hacs/hacsbase/hacs.py
Lucstricke/integration
1543686f3d99c8f16ec4fc37b2edd70b2a3e29a5
[ "MIT" ]
null
null
null
custom_components/hacs/hacsbase/hacs.py
Lucstricke/integration
1543686f3d99c8f16ec4fc37b2edd70b2a3e29a5
[ "MIT" ]
null
null
null
"""Initialize the HACS base.""" from datetime import timedelta from aiogithubapi import GitHubException from aiogithubapi.exceptions import GitHubNotModifiedException from custom_components.hacs.helpers import HacsHelpers from custom_components.hacs.helpers.functions.get_list_from_default import ( async_get_list_...
38.597938
105
0.631855
from datetime import timedelta from aiogithubapi import GitHubException from aiogithubapi.exceptions import GitHubNotModifiedException from custom_components.hacs.helpers import HacsHelpers from custom_components.hacs.helpers.functions.get_list_from_default import ( async_get_list_from_default, ) from custom_comp...
true
true
1c44e5497fb4e61b1aa4587e81545dabe660d10a
150
py
Python
sdk/python/feast/pyspark/launchers/standalone/__init__.py
rafalzydowicz/feast
0d5cb8df2b2bd45b6631351c5ec8ba96bfd4d709
[ "Apache-2.0" ]
null
null
null
sdk/python/feast/pyspark/launchers/standalone/__init__.py
rafalzydowicz/feast
0d5cb8df2b2bd45b6631351c5ec8ba96bfd4d709
[ "Apache-2.0" ]
null
null
null
sdk/python/feast/pyspark/launchers/standalone/__init__.py
rafalzydowicz/feast
0d5cb8df2b2bd45b6631351c5ec8ba96bfd4d709
[ "Apache-2.0" ]
null
null
null
from .local import StandaloneClusterLauncher, StandaloneClusterRetrievalJob __all__ = ["StandaloneClusterRetrievalJob", "StandaloneClusterLauncher"]
37.5
75
0.866667
from .local import StandaloneClusterLauncher, StandaloneClusterRetrievalJob __all__ = ["StandaloneClusterRetrievalJob", "StandaloneClusterLauncher"]
true
true
1c44e57f91d648a32e072962c884f38cb5c387d3
1,742
py
Python
aliyun-python-sdk-retailcloud/aliyunsdkretailcloud/request/v20180313/BatchAddServersRequest.py
jia-jerry/aliyun-openapi-python-sdk
e90f3683a250cfec5b681b5f1d73a68f0dc9970d
[ "Apache-2.0" ]
null
null
null
aliyun-python-sdk-retailcloud/aliyunsdkretailcloud/request/v20180313/BatchAddServersRequest.py
jia-jerry/aliyun-openapi-python-sdk
e90f3683a250cfec5b681b5f1d73a68f0dc9970d
[ "Apache-2.0" ]
1
2020-05-31T14:51:47.000Z
2020-05-31T14:51:47.000Z
aliyun-python-sdk-retailcloud/aliyunsdkretailcloud/request/v20180313/BatchAddServersRequest.py
jia-jerry/aliyun-openapi-python-sdk
e90f3683a250cfec5b681b5f1d73a68f0dc9970d
[ "Apache-2.0" ]
null
null
null
# Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may not u...
34.84
90
0.760046
from aliyunsdkcore.request import RpcRequest from aliyunsdkretailcloud.endpoint import endpoint_data class BatchAddServersRequest(RpcRequest): def __init__(self): RpcRequest.__init__(self, 'retailcloud', '2018-03-13', 'BatchAddServers','retailcloud') self.set_method('POST') if hasattr(self,...
true
true
1c44e59d37dfc9d219bf668ad78d0ddb164f0805
5,556
py
Python
yfinance/ticker.py
x1011x/yfinance
87a6dc2e9be7b013a11f956eb4593a5595798e2e
[ "Apache-2.0" ]
null
null
null
yfinance/ticker.py
x1011x/yfinance
87a6dc2e9be7b013a11f956eb4593a5595798e2e
[ "Apache-2.0" ]
null
null
null
yfinance/ticker.py
x1011x/yfinance
87a6dc2e9be7b013a11f956eb4593a5595798e2e
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- # # Yahoo! Finance market data downloader (+fix for Pandas Datareader) # https://github.com/ranaroussi/yfinance # # Copyright 2017-2019 Ran Aroussi # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the ...
27.641791
74
0.608531
from __future__ import print_function import datetime as _datetime import requests as _requests import pandas as _pd from collections import namedtuple as _namedtuple from .base import TickerBase class Ticker(TickerBase): def __repr__(self): return 'yfinance.Ticker object <%s>...
true
true
1c44e70e26e2aae7a184066da9cd3e62efc063db
102
py
Python
src/question_analysis/__init__.py
collab-uniba/qavmentor-service
f3c6f8a02bca3eeb0521ca3ac3b6e97542754c2a
[ "MIT" ]
1
2018-07-23T14:42:22.000Z
2018-07-23T14:42:22.000Z
src/question_analysis/__init__.py
collab-uniba/qavmentor-service
f3c6f8a02bca3eeb0521ca3ac3b6e97542754c2a
[ "MIT" ]
56
2018-05-24T09:40:03.000Z
2022-02-11T03:40:09.000Z
src/question_analysis/__init__.py
collab-uniba/qavmentor
669025a40dd04cd8c9cbd264587918025ef39d20
[ "MIT" ]
1
2018-05-20T09:30:48.000Z
2018-05-20T09:30:48.000Z
from question_analysis.feature_analysis import FeatureAnalysis from question_analysis.post import Post
51
62
0.911765
from question_analysis.feature_analysis import FeatureAnalysis from question_analysis.post import Post
true
true
1c44e7acfddcff965ad8a65694d273cf32dc1d48
513
py
Python
Graphs/Line Graph.py
TausifAnsari/PyHub
f6c949dc6a3974f57d7d146708443d0ceeb4418f
[ "MIT" ]
1
2020-09-30T19:31:20.000Z
2020-09-30T19:31:20.000Z
Graphs/Line Graph.py
TanviSutar/PyHub
6281e9f515674fb51f0d0862c26ec18020fa7d83
[ "MIT" ]
null
null
null
Graphs/Line Graph.py
TanviSutar/PyHub
6281e9f515674fb51f0d0862c26ec18020fa7d83
[ "MIT" ]
null
null
null
# pip install matplotlib import matplotlib.pyplot as graph months = ["Jan","Feb","Mar","Apr","May","Jun","Jul"] scores = [100,130,125,90,20,50,70] graph.plot(months,scores,color=(0/255,0/255,255/255),marker = "+",markersize = 10,markeredgewidth = 2, linewidth = 2,linestyle = "dotted", markeredgecolor = (255/255,0,0))...
39.461538
102
0.707602
import matplotlib.pyplot as graph months = ["Jan","Feb","Mar","Apr","May","Jun","Jul"] scores = [100,130,125,90,20,50,70] graph.plot(months,scores,color=(0/255,0/255,255/255),marker = "+",markersize = 10,markeredgewidth = 2, linewidth = 2,linestyle = "dotted", markeredgecolor = (255/255,0,0)) graph.title("Monthly ...
true
true
1c44e8a498108faa483b7bb06f12f9ac647c973f
6,436
py
Python
ietf/utils/text.py
unofficial-mirror/ietfdb
ce54adb30dc7299c6eb4d42b9aa9d2c2929c1a81
[ "BSD-3-Clause" ]
null
null
null
ietf/utils/text.py
unofficial-mirror/ietfdb
ce54adb30dc7299c6eb4d42b9aa9d2c2929c1a81
[ "BSD-3-Clause" ]
null
null
null
ietf/utils/text.py
unofficial-mirror/ietfdb
ce54adb30dc7299c6eb4d42b9aa9d2c2929c1a81
[ "BSD-3-Clause" ]
null
null
null
# Copyright The IETF Trust 2016-2019, All Rights Reserved # -*- coding: utf-8 -*- from __future__ import absolute_import, print_function, unicode_literals import re import six import textwrap import unicodedata from django.utils.functional import keep_lazy from django.utils.safestring import mark_safe import debug...
32.670051
101
0.588254
from __future__ import absolute_import, print_function, unicode_literals import re import six import textwrap import unicodedata from django.utils.functional import keep_lazy from django.utils.safestring import mark_safe import debug from .texescape import init as texescape_init, tex...
true
true
1c44e8a6132356e9861a86f661b14f607195ba2c
54,029
py
Python
src/sage/calculus/desolvers.py
bopopescu/sage-5
9d85b34956ca2edd55af307f99c5d3859acd30bf
[ "BSL-1.0" ]
5
2015-01-04T07:15:06.000Z
2022-03-04T15:15:18.000Z
src/sage/calculus/desolvers.py
bopopescu/sage-5
9d85b34956ca2edd55af307f99c5d3859acd30bf
[ "BSL-1.0" ]
null
null
null
src/sage/calculus/desolvers.py
bopopescu/sage-5
9d85b34956ca2edd55af307f99c5d3859acd30bf
[ "BSL-1.0" ]
10
2016-09-28T13:12:40.000Z
2022-02-12T09:28:34.000Z
r""" Solving ordinary differential equations This file contains functions useful for solving differential equations which occur commonly in a 1st semester differential equations course. For another numerical solver see :meth:`ode_solver` function and optional package Octave. Commands: - ``desolve`` - Computes the "g...
34.65619
188
0.543986
f str(soln).strip() == 'false': raise NotImplementedError("Maxima was unable to solve this BVP. Remove the initial condition to get the general solution.") soln=soln.sage() if is_SymbolicEquation(soln) and soln.lhs() == dvar: # Remark: Here we do not check that the right hand side does...
true
true
1c44e91630531b387cea6e23a3a75d9cc1102f8c
1,137
py
Python
python_code/vnev/Lib/site-packages/jdcloud_sdk/services/iotlink/models/GprsStatusResp.py
Ureimu/weather-robot
7634195af388538a566ccea9f8a8534c5fb0f4b6
[ "MIT" ]
14
2018-04-19T09:53:56.000Z
2022-01-27T06:05:48.000Z
python_code/vnev/Lib/site-packages/jdcloud_sdk/services/iotlink/models/GprsStatusResp.py
Ureimu/weather-robot
7634195af388538a566ccea9f8a8534c5fb0f4b6
[ "MIT" ]
15
2018-09-11T05:39:54.000Z
2021-07-02T12:38:02.000Z
python_code/vnev/Lib/site-packages/jdcloud_sdk/services/iotlink/models/GprsStatusResp.py
Ureimu/weather-robot
7634195af388538a566ccea9f8a8534c5fb0f4b6
[ "MIT" ]
33
2018-04-20T05:29:16.000Z
2022-02-17T09:10:05.000Z
# coding=utf8 # Copyright 2018 JDCLOUD.COM # # 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 ...
33.441176
80
0.702726
class GprsStatusResp(object): def __init__(self, iccid=None, msisdn=None, imsi=None, onlinestatus=None): self.iccid = iccid self.msisdn = msisdn self.imsi = imsi self.onlinestatus = onlinestatus
true
true
1c44e9532c723c2f96f75d1ac6d79c88a9c36f09
12,528
py
Python
datasets.py
hubertjb/dynamic-spatial-filtering
4580d60c06cd926b34470b8d05d4d72f8e2fd58c
[ "BSD-3-Clause" ]
16
2021-05-28T07:27:57.000Z
2022-03-07T09:00:50.000Z
datasets.py
hubertjb/dynamic-spatial-filtering
4580d60c06cd926b34470b8d05d4d72f8e2fd58c
[ "BSD-3-Clause" ]
null
null
null
datasets.py
hubertjb/dynamic-spatial-filtering
4580d60c06cd926b34470b8d05d4d72f8e2fd58c
[ "BSD-3-Clause" ]
4
2021-07-16T15:53:29.000Z
2022-03-05T14:30:14.000Z
"""Dataset-related functions and classes. Inspired by `mne.datasets.sleep_physionet`. """ import os import os.path as op import mne import wfdb import numpy as np import pandas as pd from mne.datasets.utils import _get_path from mne.datasets.sleep_physionet._utils import _fetch_one from braindecode.datasets import B...
40.282958
79
0.632024
import os import os.path as op import mne import wfdb import numpy as np import pandas as pd from mne.datasets.utils import _get_path from mne.datasets.sleep_physionet._utils import _fetch_one from braindecode.datasets import BaseDataset, BaseConcatDataset from braindecode.datautil.preprocess import _preprocess from ...
true
true
1c44e957950c99df2052672e9ed2657f2a10cc68
1,411
py
Python
SoundSourceLocalization/SSL_Settings.py
zhaocy14/SmartWalker
b025a7b4a2b305838a22fe4e6116ddb951c4d7bf
[ "MIT" ]
2
2021-11-13T14:16:06.000Z
2022-01-12T06:07:32.000Z
SoundSourceLocalization/SSL_Settings.py
zhaocy14/SmartWalker
b025a7b4a2b305838a22fe4e6116ddb951c4d7bf
[ "MIT" ]
null
null
null
SoundSourceLocalization/SSL_Settings.py
zhaocy14/SmartWalker
b025a7b4a2b305838a22fe4e6116ddb951c4d7bf
[ "MIT" ]
3
2021-08-30T04:40:39.000Z
2022-01-09T11:34:04.000Z
import os, sys import pyaudio # sample audio RECORD_DEVICE_NAME = "USB Camera-B4.09.24.1" SAMPLE_RATE = 16000 CHANNELS = 4 RECORD_WIDTH = 2 CHUNK = 1024 CHUNK_SIZE = 16 # 1ms的采样点数,此参数可以使得语音队列中每一个值对应1ms的音频 AUDIO_COMMUNICATION_TOPIC = 'audio' # KeyWord Spotting MAX_COMMAND_SECONDS = 3 CLIP_MS = 1000 KWS_WINDOW_STRIDE_...
26.622642
80
0.787385
import os, sys import pyaudio RECORD_DEVICE_NAME = "USB Camera-B4.09.24.1" SAMPLE_RATE = 16000 CHANNELS = 4 RECORD_WIDTH = 2 CHUNK = 1024 CHUNK_SIZE = 16 AUDIO_COMMUNICATION_TOPIC = 'audio' MAX_COMMAND_SECONDS = 3 CLIP_MS = 1000 KWS_WINDOW_STRIDE_MS = 200 KWS_COMMUNICATION_TOPIC = 'keyword' WORD_QUEUE_CLEAR_COMMU...
true
true
1c44ea76e3eb171a9eabbd38585f4423f5c5f1e6
642
py
Python
tests/display/test_window.py
cmarshall108/panda3d-python3
8bea2c0c120b03ec1c9fd179701fdeb7510bb97b
[ "PHP-3.0", "PHP-3.01" ]
null
null
null
tests/display/test_window.py
cmarshall108/panda3d-python3
8bea2c0c120b03ec1c9fd179701fdeb7510bb97b
[ "PHP-3.0", "PHP-3.01" ]
null
null
null
tests/display/test_window.py
cmarshall108/panda3d-python3
8bea2c0c120b03ec1c9fd179701fdeb7510bb97b
[ "PHP-3.0", "PHP-3.01" ]
null
null
null
def test_window_basic(window): from panda3d.core import WindowProperties assert window is not None current_props = window.get_properties() default_props = WindowProperties.get_default() # Opening the window changes these from the defaults. Note that we have # no guarantee that it opens in the...
37.764706
78
0.766355
def test_window_basic(window): from panda3d.core import WindowProperties assert window is not None current_props = window.get_properties() default_props = WindowProperties.get_default() default_props.set_size(current_props.get_size()) default_props.set_origin(current_props.get_origin...
true
true
1c44eae3c5cfc0326c5ec644aa8f726f42ae47f1
326
py
Python
contest/abc069/C.py
mola1129/atcoder
1d3b18cb92d0ba18c41172f49bfcd0dd8d29f9db
[ "MIT" ]
null
null
null
contest/abc069/C.py
mola1129/atcoder
1d3b18cb92d0ba18c41172f49bfcd0dd8d29f9db
[ "MIT" ]
null
null
null
contest/abc069/C.py
mola1129/atcoder
1d3b18cb92d0ba18c41172f49bfcd0dd8d29f9db
[ "MIT" ]
null
null
null
n = int(input()) a = list(map(int, input().split())) cnt_odd = 0 cnt_4 = 0 for i in range(n): if a[i] % 2 == 1: cnt_odd += 1 elif a[i] % 4 == 0: cnt_4 += 1 if len(a) % 2 == 1 and (cnt_odd - 1) <= cnt_4: print('Yes') elif len(a) % 2 == 0 and cnt_odd <= cnt_4: print('Yes') else: print(...
20.375
46
0.490798
n = int(input()) a = list(map(int, input().split())) cnt_odd = 0 cnt_4 = 0 for i in range(n): if a[i] % 2 == 1: cnt_odd += 1 elif a[i] % 4 == 0: cnt_4 += 1 if len(a) % 2 == 1 and (cnt_odd - 1) <= cnt_4: print('Yes') elif len(a) % 2 == 0 and cnt_odd <= cnt_4: print('Yes') else: print(...
true
true
1c44eaef4f320ce8ec78f27d1e567fc01a6906ee
1,279
py
Python
app/app.py
tahosa/discord-util-bot
2f261c5ae06da8a62e72502b53341720437860f5
[ "MIT" ]
null
null
null
app/app.py
tahosa/discord-util-bot
2f261c5ae06da8a62e72502b53341720437860f5
[ "MIT" ]
null
null
null
app/app.py
tahosa/discord-util-bot
2f261c5ae06da8a62e72502b53341720437860f5
[ "MIT" ]
1
2022-02-09T04:16:54.000Z
2022-02-09T04:16:54.000Z
import os import logging import config import discord from discord.ext.commands import Bot import nest_asyncio import tasks nest_asyncio.apply() _LOG = logging.getLogger('discord-util') _HANDLER = logging.StreamHandler() _HANDLER.addFilter(logging.Filter(name = 'discord-util')) _HANDLER.setFormatter(logging.Formatt...
23.254545
113
0.690383
import os import logging import config import discord from discord.ext.commands import Bot import nest_asyncio import tasks nest_asyncio.apply() _LOG = logging.getLogger('discord-util') _HANDLER = logging.StreamHandler() _HANDLER.addFilter(logging.Filter(name = 'discord-util')) _HANDLER.setFormatter(logging.Formatt...
true
true
1c44ecf70040a369583ea80ca86ad4befece86ed
5,167
py
Python
flexget/plugins/sites/cpasbien.py
tarzasai/Flexget
e5822874b2ee088b508390ff02c4eda9785596bc
[ "MIT" ]
1
2018-05-02T21:14:50.000Z
2018-05-02T21:14:50.000Z
flexget/plugins/sites/cpasbien.py
tarzasai/Flexget
e5822874b2ee088b508390ff02c4eda9785596bc
[ "MIT" ]
null
null
null
flexget/plugins/sites/cpasbien.py
tarzasai/Flexget
e5822874b2ee088b508390ff02c4eda9785596bc
[ "MIT" ]
null
null
null
from __future__ import unicode_literals, division, absolute_import from builtins import * # pylint: disable=unused-import, redefined-builtin from future.moves.urllib.parse import quote_plus import logging import re from flexget import plugin from flexget.entry import Entry from flexget.event import event from flexge...
38.274074
118
0.494484
from __future__ import unicode_literals, division, absolute_import from builtins import * from future.moves.urllib.parse import quote_plus import logging import re from flexget import plugin from flexget.entry import Entry from flexget.event import event from flexget.utils import requests from flexget.utils.soup im...
true
true
1c44ed932e4df18c56a889f9357a0bf15de24d8a
13
py
Python
first.py
mohammad716e/python_training
0654623c603c775ed2cbdc3919dc815891c8fdeb
[ "MIT" ]
null
null
null
first.py
mohammad716e/python_training
0654623c603c775ed2cbdc3919dc815891c8fdeb
[ "MIT" ]
null
null
null
first.py
mohammad716e/python_training
0654623c603c775ed2cbdc3919dc815891c8fdeb
[ "MIT" ]
null
null
null
print ( 'hi')
13
13
0.538462
print ( 'hi')
true
true
1c44edc5b8d1e8fbfa19019187f9a6854e4f69e8
918
py
Python
examples/ether_transfer.py
meetmangukiya/ethereum_kms_signer
bc54aa5e4dfc2406417ed1cce15f52fcc5f97043
[ "MIT" ]
6
2021-09-29T15:07:44.000Z
2022-03-31T22:15:13.000Z
examples/ether_transfer.py
meetmangukiya/ethereum_kms_signer
bc54aa5e4dfc2406417ed1cce15f52fcc5f97043
[ "MIT" ]
2
2021-10-30T07:16:02.000Z
2021-10-30T08:04:51.000Z
examples/ether_transfer.py
meetmangukiya/ethereum_kms_signer
bc54aa5e4dfc2406417ed1cce15f52fcc5f97043
[ "MIT" ]
1
2022-01-25T18:30:17.000Z
2022-01-25T18:30:17.000Z
import fire from web3 import Web3 from ethereum_kms_signer.kms import get_eth_address, sign_transaction def ether_transfer( web3_provider: str, key_id: str, to_address: str, amount: float ) -> None: web3 = Web3(Web3.HTTPProvider(web3_provider)) self_address = web3.toChecksumAddress(get_eth_address(key_id...
26.228571
74
0.685185
import fire from web3 import Web3 from ethereum_kms_signer.kms import get_eth_address, sign_transaction def ether_transfer( web3_provider: str, key_id: str, to_address: str, amount: float ) -> None: web3 = Web3(Web3.HTTPProvider(web3_provider)) self_address = web3.toChecksumAddress(get_eth_address(key_id...
true
true
1c44ee058389f3af01626c5e07bcecdf56660a91
26,104
py
Python
uniter_model/train_vcr.py
intersun/LightningDOT
5f2880f69ba87b8701ab89348d70ebb11432578c
[ "MIT" ]
64
2021-03-17T02:01:34.000Z
2021-12-31T08:05:57.000Z
uniter_model/train_vcr.py
intersun/LightningDOT
5f2880f69ba87b8701ab89348d70ebb11432578c
[ "MIT" ]
9
2021-04-16T07:58:33.000Z
2021-11-09T11:09:58.000Z
uniter_model/train_vcr.py
intersun/LightningDOT
5f2880f69ba87b8701ab89348d70ebb11432578c
[ "MIT" ]
5
2021-03-18T01:21:44.000Z
2022-01-20T13:23:39.000Z
# coding=utf-8 # copied from hugginface github # Copyright 2018 The Google AI Language Team Authors and The HuggingFace Inc. # team. # Copyright (c) 2018, NVIDIA CORPORATION. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with t...
43.147107
79
0.572403
import argparse import json import os from os.path import exists, join import random from time import time import torch from torch.nn import functional as F from torch.nn.utils import clip_grad_norm_ from torch.optim import Adam, Adamax from torch.utils.data import DataLoader, ConcatDataset from apex...
true
true
1c44ee480649d17d538021caa9f3ca7f0b5ab20e
13,669
py
Python
apps/odoo/lib/odoo-10.0.post20170615-py2.7.egg/odoo/addons/hr/models/hr.py
gtfarng/Odoo_migrade
9cc28fae4c379e407645248a29d22139925eafe7
[ "Apache-2.0" ]
1
2019-12-19T01:53:13.000Z
2019-12-19T01:53:13.000Z
apps/odoo/lib/odoo-10.0.post20170615-py2.7.egg/odoo/addons/hr/models/hr.py
gtfarng/Odoo_migrade
9cc28fae4c379e407645248a29d22139925eafe7
[ "Apache-2.0" ]
null
null
null
apps/odoo/lib/odoo-10.0.post20170615-py2.7.egg/odoo/addons/hr/models/hr.py
gtfarng/Odoo_migrade
9cc28fae4c379e407645248a29d22139925eafe7
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. import logging from odoo import api, fields, models from odoo import tools, _ from odoo.exceptions import ValidationError from odoo.modules.module import get_module_resource _logger = logging.getLogger(__name__) cla...
44.093548
196
0.665301
import logging from odoo import api, fields, models from odoo import tools, _ from odoo.exceptions import ValidationError from odoo.modules.module import get_module_resource _logger = logging.getLogger(__name__) class EmployeeCategory(models.Model): _name = "hr.employee.category" _description = "Employ...
true
true
1c44ee6380ee5448632893ca93070185326ad09f
11,616
py
Python
ApplicationPerformance/automationinterface/autoInterface.py
hsy5332/Blog
3c17e097b31dcddfc41896149cc14b69fea1ae14
[ "Apache-2.0" ]
null
null
null
ApplicationPerformance/automationinterface/autoInterface.py
hsy5332/Blog
3c17e097b31dcddfc41896149cc14b69fea1ae14
[ "Apache-2.0" ]
null
null
null
ApplicationPerformance/automationinterface/autoInterface.py
hsy5332/Blog
3c17e097b31dcddfc41896149cc14b69fea1ae14
[ "Apache-2.0" ]
null
null
null
import xlrd import requests import json import openpyxl import time import ApplicationPerformance.applicationperformance.launchTime as launchTime from openpyxl.styles import Font, colors, Alignment, borders # 读取Excel测试用例,并请求接口 def readExcel(): # 创建Excel createdcase = openpyxl.Workbook() sheetform = creat...
61.136842
291
0.546229
import xlrd import requests import json import openpyxl import time import ApplicationPerformance.applicationperformance.launchTime as launchTime from openpyxl.styles import Font, colors, Alignment, borders def readExcel(): createdcase = openpyxl.Workbook() sheetform = createdcase.active sheetfor...
true
true
1c44eec40a52889d5fb14ae7d17436eec46e63e9
2,983
py
Python
tests/unit/test_proxy.py
doytsujin/localstack
46ffd646af553f381cc567e4a7a06f604640c1c7
[ "Apache-2.0" ]
1
2022-03-17T07:22:23.000Z
2022-03-17T07:22:23.000Z
tests/unit/test_proxy.py
doytsujin/localstack
46ffd646af553f381cc567e4a7a06f604640c1c7
[ "Apache-2.0" ]
null
null
null
tests/unit/test_proxy.py
doytsujin/localstack
46ffd646af553f381cc567e4a7a06f604640c1c7
[ "Apache-2.0" ]
null
null
null
import gzip import json import logging import unittest import requests from localstack import config from localstack.constants import HEADER_ACCEPT_ENCODING, LOCALHOST_HOSTNAME from localstack.services.generic_proxy import ProxyListener, start_proxy_server from localstack.services.infra import start_proxy_for_service...
28.961165
83
0.671472
import gzip import json import logging import unittest import requests from localstack import config from localstack.constants import HEADER_ACCEPT_ENCODING, LOCALHOST_HOSTNAME from localstack.services.generic_proxy import ProxyListener, start_proxy_server from localstack.services.infra import start_proxy_for_service...
true
true
1c44eeca9e001981d13a1e1093d34646e8352fa6
6,446
py
Python
EvalScript/evalResult.py
stanleynguyen/m-hmm
5677d7d19f008a19bfa616f2095278e3eadcb85a
[ "MIT" ]
null
null
null
EvalScript/evalResult.py
stanleynguyen/m-hmm
5677d7d19f008a19bfa616f2095278e3eadcb85a
[ "MIT" ]
1
2017-12-06T13:53:10.000Z
2017-12-06T13:53:10.000Z
EvalScript/evalResult.py
stanleynguyen/m-hmm
5677d7d19f008a19bfa616f2095278e3eadcb85a
[ "MIT" ]
null
null
null
import sys import re from copy import copy from collections import defaultdict from optparse import OptionParser # Read entities from predcition def get_predicted(predicted, answers=defaultdict(lambda: defaultdict(defaultdict))): example = 0 word_index = 0 entity = [] last_ne = "O" last_sent = "...
26.746888
115
0.549643
import sys import re from copy import copy from collections import defaultdict from optparse import OptionParser def get_predicted(predicted, answers=defaultdict(lambda: defaultdict(defaultdict))): example = 0 word_index = 0 entity = [] last_ne = "O" last_sent = "" last_entity = [] ans...
true
true
1c44eed02120243fb429c3e2e94c22b73a0e766c
2,588
py
Python
tests/conftest.py
red-coracle/pyintacct
8064134d3e8cfa0e53ef4da1e9f50afb7b829ea7
[ "MIT" ]
7
2019-07-24T01:46:40.000Z
2022-03-08T17:51:39.000Z
tests/conftest.py
red-coracle/pyintacct
8064134d3e8cfa0e53ef4da1e9f50afb7b829ea7
[ "MIT" ]
1
2021-09-22T23:18:21.000Z
2021-09-22T23:18:21.000Z
tests/conftest.py
red-coracle/pyintacct
8064134d3e8cfa0e53ef4da1e9f50afb7b829ea7
[ "MIT" ]
2
2021-04-27T15:13:19.000Z
2022-03-08T18:02:37.000Z
import pytest from .config import config from decimal import Decimal from pyintacct import IntacctAPI from pyintacct.models.base import Date from pyintacct.models.company import Contact, MailAddress from pyintacct.models.purchasing import POTransaction, POTransactionItem, POTransactionItems @pytest.fixture(scope='ses...
35.452055
92
0.56762
import pytest from .config import config from decimal import Decimal from pyintacct import IntacctAPI from pyintacct.models.base import Date from pyintacct.models.company import Contact, MailAddress from pyintacct.models.purchasing import POTransaction, POTransactionItem, POTransactionItems @pytest.fixture(scope='ses...
true
true
1c44efd0b5d5abda9e33514c921d7eb78c13c4bc
859
py
Python
main.py
barrypp/ChangeImgTime
baa56095e7f00651e4ae507892b9594ed0fa5817
[ "MIT" ]
null
null
null
main.py
barrypp/ChangeImgTime
baa56095e7f00651e4ae507892b9594ed0fa5817
[ "MIT" ]
null
null
null
main.py
barrypp/ChangeImgTime
baa56095e7f00651e4ae507892b9594ed0fa5817
[ "MIT" ]
null
null
null
import os import re import time from datetime import datetime, timedelta from pathlib import Path import piexif info = re.compile(r'\(v([0-9]+)\) - p([0-9]+)') #info = re.compile(r' - c([0-9]+).+ - p([0-9]+)') p = Path('data3') count = 0 for x in p.rglob('*.*'): # i = info.search(x.name) ...
27.709677
94
0.561118
import os import re import time from datetime import datetime, timedelta from pathlib import Path import piexif info = re.compile(r'\(v([0-9]+)\) - p([0-9]+)') p = Path('data3') count = 0 for x in p.rglob('*.*'): i = info.search(x.name) hour = int(i.group(1)) num = int(i.group(2)) ...
true
true
1c44f0e1ee44d25710b20fb98f024b9b4d0e5068
15,168
py
Python
tools/accuracy_checker/openvino/tools/accuracy_checker/evaluators/custom_evaluators/custom_text_recognition_evaluator.py
Ohtani-y/open_model_zoo
280b59fc6c00455889a1949c795558252fdad96f
[ "Apache-2.0" ]
2
2019-08-20T15:30:19.000Z
2020-09-01T15:16:33.000Z
tools/accuracy_checker/openvino/tools/accuracy_checker/evaluators/custom_evaluators/custom_text_recognition_evaluator.py
Ohtani-y/open_model_zoo
280b59fc6c00455889a1949c795558252fdad96f
[ "Apache-2.0" ]
null
null
null
tools/accuracy_checker/openvino/tools/accuracy_checker/evaluators/custom_evaluators/custom_text_recognition_evaluator.py
Ohtani-y/open_model_zoo
280b59fc6c00455889a1949c795558252fdad96f
[ "Apache-2.0" ]
2
2021-06-25T06:18:58.000Z
2021-08-04T10:05:32.000Z
""" Copyright (c) 2018-2021 Intel Corporation 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 wri...
48
118
0.642471
from functools import partial import numpy as np from .base_custom_evaluator import BaseCustomEvaluator from .base_models import BaseDLSDKModel, BaseOpenVINOModel, BaseCascadeModel, create_model from ...config import ConfigError from ...utils import contains_all, extract_image_representations, generate_layer_name fro...
true
true
1c44f0fd84aad62f085f8065aec4b09e83ec9f76
20,360
py
Python
QGrain/algorithms.py
erslog/QGrain
9644415c73a929bbdd30d7eb4c3fa861401a5ea4
[ "MIT" ]
1
2020-12-20T13:24:44.000Z
2020-12-20T13:24:44.000Z
QGrain/algorithms.py
erslog/QGrain
9644415c73a929bbdd30d7eb4c3fa861401a5ea4
[ "MIT" ]
null
null
null
QGrain/algorithms.py
erslog/QGrain
9644415c73a929bbdd30d7eb4c3fa861401a5ea4
[ "MIT" ]
null
null
null
import weakref from enum import Enum, unique from threading import Lock from typing import Callable, Dict, Iterable, List, Tuple import numpy as np from scipy.special import gamma INFINITESIMAL = 1e-100 FRACTION_PARAM_NAME = "f" NAME_KEY = "Name" BOUNDS_KEY = "Bounds" DEFAULT_VALUE_KEY = "Default" LOCATION_KEY = "Loc...
39.078695
184
0.677701
import weakref from enum import Enum, unique from threading import Lock from typing import Callable, Dict, Iterable, List, Tuple import numpy as np from scipy.special import gamma INFINITESIMAL = 1e-100 FRACTION_PARAM_NAME = "f" NAME_KEY = "Name" BOUNDS_KEY = "Bounds" DEFAULT_VALUE_KEY = "Default" LOCATION_KEY = "Loc...
true
true
1c44f126bc35348c8eda7a554188d06765c226be
20,944
py
Python
electrum_ltc/gui/kivy/uix/screens.py
LedgerHQ/electrum-ltc
8307e3978b12ae27fc3f750f47cda7f18d5fafe5
[ "MIT" ]
null
null
null
electrum_ltc/gui/kivy/uix/screens.py
LedgerHQ/electrum-ltc
8307e3978b12ae27fc3f750f47cda7f18d5fafe5
[ "MIT" ]
1
2022-03-06T09:22:26.000Z
2022-03-06T09:22:26.000Z
electrum_ltc/gui/kivy/uix/screens.py
isabella232/electrum-ltc
8307e3978b12ae27fc3f750f47cda7f18d5fafe5
[ "MIT" ]
1
2022-03-06T09:16:48.000Z
2022-03-06T09:16:48.000Z
import asyncio from weakref import ref from decimal import Decimal import re import threading import traceback, sys from typing import TYPE_CHECKING, List, Optional, Dict, Any from kivy.app import App from kivy.cache import Cache from kivy.clock import Clock from kivy.compat import string_types from kivy.properties im...
35.259259
130
0.605758
import asyncio from weakref import ref from decimal import Decimal import re import threading import traceback, sys from typing import TYPE_CHECKING, List, Optional, Dict, Any from kivy.app import App from kivy.cache import Cache from kivy.clock import Clock from kivy.compat import string_types from kivy.properties im...
true
true
1c44f21e21408f835a37bf18651cf2816383efc0
27,534
py
Python
torchreid/models/osnet_ain.py
kirillProkofiev/deep-object-reid
2abc96ec49bc0005ed556e203925354fdf12165c
[ "MIT" ]
null
null
null
torchreid/models/osnet_ain.py
kirillProkofiev/deep-object-reid
2abc96ec49bc0005ed556e203925354fdf12165c
[ "MIT" ]
null
null
null
torchreid/models/osnet_ain.py
kirillProkofiev/deep-object-reid
2abc96ec49bc0005ed556e203925354fdf12165c
[ "MIT" ]
null
null
null
from __future__ import division, absolute_import import warnings from collections import OrderedDict import torch import torch.nn as nn import torch.nn.functional as F from torchreid.losses import AngleSimpleLinear from torchreid.ops import Dropout, HSwish, GumbelSigmoid, LocalContrastNormalization __all__ = ['osn...
32.392941
111
0.594138
from __future__ import division, absolute_import import warnings from collections import OrderedDict import torch import torch.nn as nn import torch.nn.functional as F from torchreid.losses import AngleSimpleLinear from torchreid.ops import Dropout, HSwish, GumbelSigmoid, LocalContrastNormalization __all__ = ['osn...
true
true
1c44f2346c4dcf0a488a33568bec5852405a2972
754
py
Python
athp_stock/__manifest__.py
QuanTranDoanAnh/odoo-athp-addons
8a6ce58378b37e96d022ded8d912bb8b88e55b4c
[ "MIT" ]
null
null
null
athp_stock/__manifest__.py
QuanTranDoanAnh/odoo-athp-addons
8a6ce58378b37e96d022ded8d912bb8b88e55b4c
[ "MIT" ]
null
null
null
athp_stock/__manifest__.py
QuanTranDoanAnh/odoo-athp-addons
8a6ce58378b37e96d022ded8d912bb8b88e55b4c
[ "MIT" ]
null
null
null
{ 'name': "An Toan Hoa Phat Stock Management App", 'summary': "Stock Management App customized for An Toan Hoa Phat", 'description': """ Stock Management App customized for An Toan Hoa Phat """, 'author': 'Business Link Development Technologies Co., Ltd.', 'website': 'http://www.bld.c...
31.416667
71
0.572944
{ 'name': "An Toan Hoa Phat Stock Management App", 'summary': "Stock Management App customized for An Toan Hoa Phat", 'description': """ Stock Management App customized for An Toan Hoa Phat """, 'author': 'Business Link Development Technologies Co., Ltd.', 'website': 'http://www.bld.c...
true
true
1c44f390c47285189ba516ba8ac76c57279695a4
12,651
py
Python
Google/benchmarks/gnmt/implementations/gnmt-research-TF-tpu-v4-512/utils/iterator_utils.py
goswamig/training_results_v0.7
4278ce8a0f3d4db6b5e6054277724ca36278d7a3
[ "Apache-2.0" ]
48
2020-07-29T18:09:23.000Z
2021-10-09T01:53:33.000Z
Google/benchmarks/gnmt/implementations/gnmt-research-TF-tpu-v4-512/utils/iterator_utils.py
goswamig/training_results_v0.7
4278ce8a0f3d4db6b5e6054277724ca36278d7a3
[ "Apache-2.0" ]
9
2021-04-02T02:28:07.000Z
2022-03-26T18:23:59.000Z
Google/benchmarks/gnmt/implementations/gnmt-research-TF-tpu-v4-512/utils/iterator_utils.py
lablup/training_results_v0.7
f5bb59aa0f8b18b602763abe47d1d24d0d54b197
[ "Apache-2.0" ]
42
2020-08-01T06:41:24.000Z
2022-01-20T10:33:08.000Z
# Copyright 2017 Google Inc. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or a...
40.548077
86
0.648012
from __future__ import print_function import tensorflow.compat.v1 as tf __all__ = ["get_iterator", "get_infer_iterator"] def get_iterator(src_dataset, tgt_dataset, src_vocab_table, tgt_vocab_table, batch_size, global...
true
true
1c44f449a9db601964d2de365f272f867c90bb7d
2,790
py
Python
metsim/disaggregate.py
jhamman/MetSim
538ebb141414355a5db0eddde6c0d4bec2e56390
[ "MIT" ]
null
null
null
metsim/disaggregate.py
jhamman/MetSim
538ebb141414355a5db0eddde6c0d4bec2e56390
[ "MIT" ]
1
2019-01-17T23:12:30.000Z
2019-01-17T23:12:30.000Z
metsim/disaggregate.py
jhamman/MetSim
538ebb141414355a5db0eddde6c0d4bec2e56390
[ "MIT" ]
1
2019-03-08T15:49:18.000Z
2019-03-08T15:49:18.000Z
""" Disaggregates daily data down to hourly data using some heuristics """ import numpy as np import pandas as pd import metsim from metsim.defaults import PARAMS as params from metsim.defaults import CONSTS as consts tiny_rad_fract = np.zeros(366) #This is updated during the mtclim run def disaggregate(df_daily):...
26.320755
89
0.602151
import numpy as np import pandas as pd import metsim from metsim.defaults import PARAMS as params from metsim.defaults import CONSTS as consts tiny_rad_fract = np.zeros(366) def disaggregate(df_daily): dates_hourly = pd.date_range(metsim.start, metsim.stop, freq='H') df_hourly = pd.DataFrame(index=dates_...
true
true
1c44f55e15605292078d004fd97a46496530c4c8
2,334
py
Python
Tools/MonoGenerator/install_name_tool.py
mortend/fuse-studio
ae299fc6bc04aa3db7b4e66034109ffe96b142b9
[ "MIT" ]
324
2018-05-14T08:17:17.000Z
2022-02-21T14:50:07.000Z
Tools/MonoGenerator/install_name_tool.py
mortend/fuse-studio
ae299fc6bc04aa3db7b4e66034109ffe96b142b9
[ "MIT" ]
27
2018-05-14T15:17:46.000Z
2021-04-20T12:01:38.000Z
Tools/MonoGenerator/install_name_tool.py
mortend/fuse-studio
ae299fc6bc04aa3db7b4e66034109ffe96b142b9
[ "MIT" ]
53
2018-05-14T07:56:17.000Z
2022-01-04T06:33:11.000Z
import subprocess import os import fnmatch from os import path import shutil def glob_recursive(path, f): for root, dirnames, filenames in os.walk(path): for filename in fnmatch.filter(filenames, f): yield root + "/" + filename def otool(s, basepath_filters): o = subprocess.Popen(['/usr/bi...
36.46875
103
0.658098
import subprocess import os import fnmatch from os import path import shutil def glob_recursive(path, f): for root, dirnames, filenames in os.walk(path): for filename in fnmatch.filter(filenames, f): yield root + "/" + filename def otool(s, basepath_filters): o = subprocess.Popen(['/usr/bi...
true
true
1c44f57d976221e4da59508cd5ba0dfcab34b1ad
1,169
py
Python
lintcode/Sort/830. String Sort.py
yanshengjia/algorithm
0608d286be9c93d51768d47f21e569c6b0be9cda
[ "MIT" ]
23
2019-08-02T12:02:47.000Z
2022-03-09T15:24:16.000Z
lintcode/Sort/830. String Sort.py
yanshengjia/algorithm
0608d286be9c93d51768d47f21e569c6b0be9cda
[ "MIT" ]
null
null
null
lintcode/Sort/830. String Sort.py
yanshengjia/algorithm
0608d286be9c93d51768d47f21e569c6b0be9cda
[ "MIT" ]
21
2019-12-22T04:47:32.000Z
2021-09-12T14:29:35.000Z
""" Given a string, sort the string with the first keyword which is the most commonly used characters and the second keyword which is the dictionary order. Example1 Input: str = "bloomberg" Output: "bbooeglmr" Explanation: 'b' and 'o' appear the most frequently, but the dictionary sequence of 'b' is the smaller than...
25.413043
151
0.538067
class Solution: def stringSort(self, str): d = dict() for c in str: d[c] = d.get(c, 0) + 1 def compare(a, b): if d[a] == d[b]: if a < b: return -1 elif a > b: return 1 ...
true
true
1c44f626da1edbfc30140cf9afcc3f8421b5b200
5,414
py
Python
tensorflow/python/data/benchmarks/from_tensor_slices_benchmark.py
anonymous-313/tensorflow
b82785818b6b020d62340eaaece32b9c75858185
[ "Apache-2.0" ]
9
2019-06-05T06:48:07.000Z
2020-09-29T07:08:02.000Z
tensorflow/python/data/benchmarks/from_tensor_slices_benchmark.py
anonymous-313/tensorflow
b82785818b6b020d62340eaaece32b9c75858185
[ "Apache-2.0" ]
2
2021-11-10T20:21:47.000Z
2022-02-10T04:12:28.000Z
tensorflow/python/data/benchmarks/from_tensor_slices_benchmark.py
anonymous-313/tensorflow
b82785818b6b020d62340eaaece32b9c75858185
[ "Apache-2.0" ]
3
2019-06-28T02:28:27.000Z
2021-07-06T08:16:19.000Z
# Copyright 2017 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.618421
103
0.707056
from __future__ import absolute_import from __future__ import division from __future__ import print_function import numpy as np from tensorflow.python.data.benchmarks import benchmark_base from tensorflow.python.data.experimental.ops import get_single_element from tensorflow.python.data.ops import datas...
true
true
1c44f6f093c03a3c1325f256845fa710b31c5dd2
1,262
py
Python
2D_from_3D_nii.py
mksarker/data_preprocessing
dabdb7f3dbf1c4bf5ee49a39aef2cb258539b027
[ "MIT" ]
null
null
null
2D_from_3D_nii.py
mksarker/data_preprocessing
dabdb7f3dbf1c4bf5ee49a39aef2cb258539b027
[ "MIT" ]
null
null
null
2D_from_3D_nii.py
mksarker/data_preprocessing
dabdb7f3dbf1c4bf5ee49a39aef2cb258539b027
[ "MIT" ]
null
null
null
import cv2 import scipy.misc import SimpleITK as sitk #reading MR images import glob readfolderT = glob.glob('path/EADC_HHP/*_MNI.nii.gz') readfolderL = glob.glob('path/*_HHP_EADC.nii.gz') TrainingImagesList = [] TrainingLabelsList = [] for i in range(len(readfolderT)): y_folder = readfolderT[i] yread =...
26.291667
73
0.680666
import cv2 import scipy.misc import SimpleITK as sitk import glob readfolderT = glob.glob('path/EADC_HHP/*_MNI.nii.gz') readfolderL = glob.glob('path/*_HHP_EADC.nii.gz') TrainingImagesList = [] TrainingLabelsList = [] for i in range(len(readfolderT)): y_folder = readfolderT[i] yread = sitk.ReadImage(y_...
true
true
1c44f89d86e4e31b4b6bb6ea684f07345c57a00b
4,184
py
Python
lexer.py
gmCrivelli/Lya-Compiler
f323b6affb39a496155169aa8ce678efb80c2f9b
[ "MIT" ]
null
null
null
lexer.py
gmCrivelli/Lya-Compiler
f323b6affb39a496155169aa8ce678efb80c2f9b
[ "MIT" ]
null
null
null
lexer.py
gmCrivelli/Lya-Compiler
f323b6affb39a496155169aa8ce678efb80c2f9b
[ "MIT" ]
null
null
null
import sys import ply.lex as lex import re class Lexer: def __init__(self): self.build() def build(self): self.lexer = lex.lex(self) def input(self, input): self.lexer.input(input) def token(self): return self.lexer.token() #guardar ultima token? # Reserved ...
21.791667
76
0.44718
import sys import ply.lex as lex import re class Lexer: def __init__(self): self.build() def build(self): self.lexer = lex.lex(self) def input(self, input): self.lexer.input(input) def token(self): return self.lexer.token() reserved = { '...
true
true
1c44f91b81dc8bfac6086652fb149826007d78d1
3,229
py
Python
trac/upgrades/db18.py
rwbaumg/trac
a3b8eb6db4f4999fab421e31615bb8eb8da6fdba
[ "BSD-3-Clause" ]
null
null
null
trac/upgrades/db18.py
rwbaumg/trac
a3b8eb6db4f4999fab421e31615bb8eb8da6fdba
[ "BSD-3-Clause" ]
null
null
null
trac/upgrades/db18.py
rwbaumg/trac
a3b8eb6db4f4999fab421e31615bb8eb8da6fdba
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- # # Copyright (C) 2006-2019 Edgewall Software # All rights reserved. # # This software is licensed as described in the file COPYING, which # you should have received as part of this distribution. The terms # are also available at http://trac.edgewall.com/license.html. # # This software consists ...
41.397436
93
0.612264
from trac.db import Table, Column, Index, DatabaseManager def do_upgrade(env, ver, cursor): cursor.execute("CREATE TEMPORARY TABLE session_old AS SELECT * FROM session") cursor.execute("DROP TABLE session") cursor.execute("CREATE TEMPORARY TABLE ticket_change_old AS SELECT * FROM ticket_change...
true
true
1c44f9a6633a4f9e3a11d3413aa35fee4910ba64
6,115
py
Python
app/main.py
grow/buildbot
31e2bbb2cafb9b472b3c4b98b29b9595b90ba9ee
[ "MIT" ]
null
null
null
app/main.py
grow/buildbot
31e2bbb2cafb9b472b3c4b98b29b9595b90ba9ee
[ "MIT" ]
null
null
null
app/main.py
grow/buildbot
31e2bbb2cafb9b472b3c4b98b29b9595b90ba9ee
[ "MIT" ]
null
null
null
#!/usr/bin/env python from flask import request from functools import wraps from werkzeug.wsgi import DispatcherMiddleware from werkzeug.serving import run_simple import flask import os import mimetypes import urllib2 import restfulgit import repos_service import jobs_service from restfulgit import app_factory as rest...
28.70892
100
0.720196
from flask import request from functools import wraps from werkzeug.wsgi import DispatcherMiddleware from werkzeug.serving import run_simple import flask import os import mimetypes import urllib2 import restfulgit import repos_service import jobs_service from restfulgit import app_factory as restfulgit_app_factory ...
true
true
1c44fad39347b668a6b0cde118732cfb3c342041
428
py
Python
mozillians/funfacts/admin.py
LeoMcA/vouched-mozillians
e0bb3b1628eaae7474e73935f7a7604bfca14da1
[ "BSD-3-Clause" ]
null
null
null
mozillians/funfacts/admin.py
LeoMcA/vouched-mozillians
e0bb3b1628eaae7474e73935f7a7604bfca14da1
[ "BSD-3-Clause" ]
null
null
null
mozillians/funfacts/admin.py
LeoMcA/vouched-mozillians
e0bb3b1628eaae7474e73935f7a7604bfca14da1
[ "BSD-3-Clause" ]
null
null
null
from django.contrib import admin from models import FunFact class FunFactAdmin(admin.ModelAdmin): readonly_fields = ['result', 'created', 'updated'] list_display = ['name', 'created', 'updated', 'result', 'is_published'] def is_published(self, obj): return obj.published is_published.boolean =...
23.777778
75
0.693925
from django.contrib import admin from models import FunFact class FunFactAdmin(admin.ModelAdmin): readonly_fields = ['result', 'created', 'updated'] list_display = ['name', 'created', 'updated', 'result', 'is_published'] def is_published(self, obj): return obj.published is_published.boolean =...
true
true
1c44faf0d31227ad4ca5dc4f15ca05e49951e313
2,311
py
Python
scripts/only_testing.py
hbery/ML_Image_Compression_Ratio_Analysis
16b21091bc4e3ced62f94f0e68ee302c1da5bf1e
[ "MIT" ]
null
null
null
scripts/only_testing.py
hbery/ML_Image_Compression_Ratio_Analysis
16b21091bc4e3ced62f94f0e68ee302c1da5bf1e
[ "MIT" ]
null
null
null
scripts/only_testing.py
hbery/ML_Image_Compression_Ratio_Analysis
16b21091bc4e3ced62f94f0e68ee302c1da5bf1e
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 """Script for testing model :Date: 06.2021 :Author: Adam Twardosz (a.twardosz98@gmail.com, https://github.com/hbery) """ import os, sys os.environ["TF_CPP_MIN_LOG_LEVEL"] = "3" os.environ['CUDA_VISIBLE_DEVICES'] = '-1' import numpy as np from keras.models import load_model, Sequentia...
25.966292
112
0.716573
import os, sys os.environ["TF_CPP_MIN_LOG_LEVEL"] = "3" os.environ['CUDA_VISIBLE_DEVICES'] = '-1' import numpy as np from keras.models import load_model, Sequential from keras.layers import Softmax from utils import banner def main(): if len(sys.argv) < 3: print(f"Usage: {os.path.basename(sys.argv[0])} <fol...
true
true
1c44fb63685476648bd3255a1f3890ca91c4616c
1,161
py
Python
xlsxwriter/test/comparison/test_chart_pie03.py
adgear/XlsxWriter
79bcaad28d57ac29038b1c74bccc6d611b7a385e
[ "BSD-2-Clause-FreeBSD" ]
2
2019-07-25T06:08:09.000Z
2019-11-01T02:33:56.000Z
xlsxwriter/test/comparison/test_chart_pie03.py
adgear/XlsxWriter
79bcaad28d57ac29038b1c74bccc6d611b7a385e
[ "BSD-2-Clause-FreeBSD" ]
13
2019-07-14T00:29:05.000Z
2019-11-26T06:16:46.000Z
xlsxwriter/test/comparison/test_chart_pie03.py
adgear/XlsxWriter
79bcaad28d57ac29038b1c74bccc6d611b7a385e
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
############################################################################### # # Tests for XlsxWriter. # # Copyright (c), 2013-2019, John McNamara, jmcnamara@cpan.org # from ..excel_comparsion_test import ExcelComparisonTest from ...workbook import Workbook class TestCompareXLSXFiles(ExcelComparisonTest): """...
23.22
79
0.552972
true
true
1c44fb8d47ce2162e5654444a77105860b099dee
140
py
Python
facts/html_helpers.py
ilivans/web-scrapers
677c8dc5cd1d1691e45d5b92a1988a23e2288d0b
[ "MIT" ]
null
null
null
facts/html_helpers.py
ilivans/web-scrapers
677c8dc5cd1d1691e45d5b92a1988a23e2288d0b
[ "MIT" ]
null
null
null
facts/html_helpers.py
ilivans/web-scrapers
677c8dc5cd1d1691e45d5b92a1988a23e2288d0b
[ "MIT" ]
null
null
null
import re _tag_re = re.compile("<.*?>") def remove_tags(raw_html): clean_text = re.sub(_tag_re, " ", raw_html) return clean_text
15.555556
47
0.657143
import re _tag_re = re.compile("<.*?>") def remove_tags(raw_html): clean_text = re.sub(_tag_re, " ", raw_html) return clean_text
true
true
1c44fc3b23f0e10433a56e60bc63fd9bd8d6414d
860
py
Python
docs/en/conf.py
alirezah52/esp-faq
070e1f96180df986a89d3313eea12822dda18d30
[ "Apache-2.0" ]
24
2020-06-23T09:05:59.000Z
2022-03-25T20:05:55.000Z
docs/en/conf.py
xuhongv/esp-faq
56e6cb20ed86a10b5ecb3d147f80177fcf016335
[ "Apache-2.0" ]
6
2020-12-07T11:52:12.000Z
2022-03-04T13:08:08.000Z
docs/en/conf.py
xuhongv/esp-faq
56e6cb20ed86a10b5ecb3d147f80177fcf016335
[ "Apache-2.0" ]
15
2020-09-21T11:34:13.000Z
2022-03-20T05:00:28.000Z
# -*- coding: utf-8 -*- # # English Language RTD & Sphinx config file # # Uses ../conf_common.py for most non-language-specific settings. # Importing conf_common adds all the non-language-specific # parts to this conf module import sys, os sys.path.insert(0, os.path.abspath('..')) from conf_common import * # General ...
29.655172
74
0.723256
import sys, os sys.path.insert(0, os.path.abspath('..')) from conf_common import * project = u'ESP-FAQ' copyright = u'2020, Espressif Systems (Shanghai) Co., Ltd.' language = 'en' latex_documents = [ ('index', 'ReadtheDocsTemplate.tex', u'ESP-FAQ', u'2020, Espressif Systems (Shanghai) Co., Ltd.',...
true
true
1c44fd2bcdb1fc734b3a5f7c936bba90459bf43a
61,989
py
Python
salt/states/pkg.py
MrMarvin/salt
34620811f935450baa5d84a5e776c8fac5ba88d4
[ "Apache-2.0" ]
null
null
null
salt/states/pkg.py
MrMarvin/salt
34620811f935450baa5d84a5e776c8fac5ba88d4
[ "Apache-2.0" ]
null
null
null
salt/states/pkg.py
MrMarvin/salt
34620811f935450baa5d84a5e776c8fac5ba88d4
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- ''' Installation of packages using OS package managers such as yum or apt-get ========================================================================= Salt can manage software packages via the pkg state module, packages can be set up to be installed, latest, removed and purged. Package managem...
36.81057
148
0.527384
from __future__ import absolute_import import logging import os import re import salt.utils from salt.output import nested from salt.utils import namespaced_function as _namespaced_function from salt.utils.odict import OrderedDict as _OrderedDict from salt.exceptions import ( CommandExecutionError, MinionErro...
true
true
1c44fd6d83836c8a950ff68c726d4e52c4f08086
12,639
py
Python
eval/libMemo.py
PurdueDualityLab/memoized-regex-engine
e7edcb0033a1eba90589e7831733f6527d9c4909
[ "MIT" ]
5
2020-10-05T14:24:06.000Z
2021-02-27T23:01:00.000Z
eval/libMemo.py
PurdueDualityLab/memoized-regex-engine
e7edcb0033a1eba90589e7831733f6527d9c4909
[ "MIT" ]
2
2020-09-30T16:48:24.000Z
2020-09-30T16:48:52.000Z
eval/libMemo.py
PurdueDualityLab/memoized-regex-engine
e7edcb0033a1eba90589e7831733f6527d9c4909
[ "MIT" ]
1
2021-02-02T05:12:06.000Z
2021-02-02T05:12:06.000Z
"""Memoization: utils associated with memoization experiments """ # Import libLF import os import sys sys.path.append(os.path.join(os.environ['MEMOIZATION_PROJECT_ROOT'], 'eval', 'lib')) import libLF # Other imports import json import re import tempfile import pandas as pd ### # Constants ### class ProtoRegexEngine...
36.008547
203
0.664293
import os import sys sys.path.append(os.path.join(os.environ['MEMOIZATION_PROJECT_ROOT'], 'eval', 'lib')) import libLF import json import re import tempfile import pandas as pd ass ProtoRegexEngine: CLI = os.path.join(os.environ['MEMOIZATION_PROJECT_ROOT'], "src-simple", "re") class SELECTION_SCHEME: ...
true
true
1c44ff9ade270ab368d3086fd8c6ded1212a389e
12,078
py
Python
Ray_ACNet.py
kiototeko/PRIMAL2
331ca7ba11d48483694594a9f2029d76238668bb
[ "MIT" ]
null
null
null
Ray_ACNet.py
kiototeko/PRIMAL2
331ca7ba11d48483694594a9f2029d76238668bb
[ "MIT" ]
null
null
null
Ray_ACNet.py
kiototeko/PRIMAL2
331ca7ba11d48483694594a9f2029d76238668bb
[ "MIT" ]
1
2020-12-10T00:01:44.000Z
2020-12-10T00:01:44.000Z
import tensorflow as tf import tensorflow.contrib.layers as layers import numpy as np # parameters for training GRAD_CLIP = 10.0 KEEP_PROB1 = 1 # was 0.5 KEEP_PROB2 = 1 # was 0.7 RNN_SIZE = 512 GOAL_REPR_SIZE = 12 # Used to initialize weights for policy and value output layers (Do we need to use that? Maybe not no...
50.962025
223
0.621792
import tensorflow as tf import tensorflow.contrib.layers as layers import numpy as np GRAD_CLIP = 10.0 KEEP_PROB1 = 1 KEEP_PROB2 = 1 RNN_SIZE = 512 GOAL_REPR_SIZE = 12 def normalized_columns_initializer(std=1.0): def _initializer(shape, dtype=None, partition_info=None): out = np.random.randn(*shape...
true
true
1c44fff0dab22be13688f184324423bc17c6ff1b
1,546
py
Python
sktimeline/models/user.py
aaronmauro/sktimeline
3a83b8973959c2d6bf49021cd8efb0ead81b9395
[ "MIT" ]
2
2016-06-14T17:02:42.000Z
2016-10-24T14:49:25.000Z
sktimeline/models/user.py
aaronmauro/sktimeline
3a83b8973959c2d6bf49021cd8efb0ead81b9395
[ "MIT" ]
3
2016-06-27T13:20:53.000Z
2017-03-18T14:21:27.000Z
sktimeline/models/user.py
aaronmauro/sktimeline
3a83b8973959c2d6bf49021cd8efb0ead81b9395
[ "MIT" ]
2
2016-06-14T17:03:05.000Z
2016-09-01T14:18:44.000Z
from sktimeline import db from passlib.hash import sha256_crypt class User(db.Model): __tablename__ = 'users' uid = db.Column(db.Integer, primary_key=True) #todo: maybe write migration to rename to id to be consistant username = db.Column(db.String(20), unique=True, default=None) # todo: write migrat...
37.707317
111
0.701811
from sktimeline import db from passlib.hash import sha256_crypt class User(db.Model): __tablename__ = 'users' uid = db.Column(db.Integer, primary_key=True) username = db.Column(db.String(20), unique=True, default=None) passwords = db.Column(db.String(100), default=None) email = db.Column(d...
true
true
1c45000beb56342f4006bcd9799b6608ea26d13c
7,595
py
Python
hsi/gui/widgets/QParamRegionWidget.py
morrocoy/hsi
da6a2923dff831e927aaea04ba657ddcb1b7e4eb
[ "MIT" ]
1
2021-03-29T14:37:03.000Z
2021-03-29T14:37:03.000Z
hsi/gui/widgets/QParamRegionWidget.py
morrocoy/hsi
da6a2923dff831e927aaea04ba657ddcb1b7e4eb
[ "MIT" ]
null
null
null
hsi/gui/widgets/QParamRegionWidget.py
morrocoy/hsi
da6a2923dff831e927aaea04ba657ddcb1b7e4eb
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Fri Feb 12 10:35:08 2021 @author: kpapke """ import numpy as np from ...bindings.Qt import QtWidgets, QtGui, QtCore from ...log import logmanager logger = logmanager.getLogger(__name__) __all__ = ['QParamRegionWidget'] class QParamRegionWidget(QtWidgets.QWidget): """ Con...
31.255144
81
0.596972
import numpy as np from ...bindings.Qt import QtWidgets, QtGui, QtCore from ...log import logmanager logger = logmanager.getLogger(__name__) __all__ = ['QParamRegionWidget'] class QParamRegionWidget(QtWidgets.QWidget): sigValueChanged = QtCore.Signal(str, list) def __init__(self, *args, **kwargs): ...
true
true
1c45008460e21527f50631de2053f1a3242bd3bb
5,711
py
Python
src/main/python/ttconv/scc/codes/preambles_address_codes.py
xchange11/ttconv-1
6e67172af126fa0e90690044848f300c0173715c
[ "BSD-2-Clause" ]
66
2020-09-25T11:38:28.000Z
2022-03-23T15:15:34.000Z
src/main/python/ttconv/scc/codes/preambles_address_codes.py
xchange11/ttconv-1
6e67172af126fa0e90690044848f300c0173715c
[ "BSD-2-Clause" ]
217
2020-09-22T22:45:22.000Z
2022-03-31T23:02:15.000Z
src/main/python/ttconv/scc/codes/preambles_address_codes.py
xchange11/ttconv-1
6e67172af126fa0e90690044848f300c0173715c
[ "BSD-2-Clause" ]
5
2020-09-25T09:24:17.000Z
2021-08-08T20:52:26.000Z
#!/usr/bin/env python # -*- coding: UTF-8 -*- # Copyright (c) 2020, Sandflow Consulting LLC # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met: # # 1. Redistributions of source code must retain the above copyright notice, ...
34.612121
107
0.706181
from __future__ import annotations from typing import Optional from ttconv.scc.codes import SCC_COLOR_MAPPING from ttconv.style_properties import NamedColors, TextDecorationType, \ FontStyleType, ColorType _ROW_MAPPING = { (0x01, 0x40): 1, (0x01, 0x60): 2, (0x02, 0x40): 3, (0x02, ...
true
true
1c45021962b5771701ee306281be1ae1136b0046
612
py
Python
examples/download_video.py
kmpm/py-asyncio-goproapi
61e259052608657f56615e1dfd6c64e8627425dd
[ "MIT" ]
null
null
null
examples/download_video.py
kmpm/py-asyncio-goproapi
61e259052608657f56615e1dfd6c64e8627425dd
[ "MIT" ]
1
2018-11-07T09:29:31.000Z
2018-11-07T12:10:41.000Z
examples/download_video.py
kmpm/py-asyncio-goproapi
61e259052608657f56615e1dfd6c64e8627425dd
[ "MIT" ]
null
null
null
from goprocam import GoProCamera, constants import asyncio gpCam = GoProCamera.GoPro() videos_duration = [10, 30] async def run(): await gpCam.connect() await gpCam.video_settings("720p", "50") await gpCam.gpControlSet(constants.Video.PROTUNE_VIDEO, constants.Video.ProTune.ON) for i in videos_duratio...
29.142857
108
0.720588
from goprocam import GoProCamera, constants import asyncio gpCam = GoProCamera.GoPro() videos_duration = [10, 30] async def run(): await gpCam.connect() await gpCam.video_settings("720p", "50") await gpCam.gpControlSet(constants.Video.PROTUNE_VIDEO, constants.Video.ProTune.ON) for i in videos_duratio...
true
true
1c450455c52286a916d561148f32bebb4a8a514b
3,759
py
Python
revitron/transmissiondata.py
YKato521/revitron-for-RevitPythonShell
031a87997a00902bf16ca9ef6bb05f5cae26e044
[ "MIT" ]
null
null
null
revitron/transmissiondata.py
YKato521/revitron-for-RevitPythonShell
031a87997a00902bf16ca9ef6bb05f5cae26e044
[ "MIT" ]
null
null
null
revitron/transmissiondata.py
YKato521/revitron-for-RevitPythonShell
031a87997a00902bf16ca9ef6bb05f5cae26e044
[ "MIT" ]
null
null
null
""" This submodule contains the ``TransmissionData`` class which allows for editing the paths of linked files without opening a model. """ import re import shutil import os import sys class TransmissionData: """ A transmission data wrapper. """ refs = dict() def __init__(self, h...
31.066116
128
0.514499
import re import shutil import os import sys class TransmissionData: refs = dict() def __init__(self, hostPath): import revitron if revitron.Document.isOpen(hostPath): print('The host model must be closed to edit transmission data!') sys.exit() ...
true
true
1c45046affa5436f6f677300552086a4582337bc
2,492
py
Python
desktop/core/ext-py/jaeger-client-4.0.0/setup.py
e11it/hue-1
436704c40b5fa6ffd30bd972bf50ffeec738d091
[ "Apache-2.0" ]
5,079
2015-01-01T03:39:46.000Z
2022-03-31T07:38:22.000Z
desktop/core/ext-py/jaeger-client-4.0.0/setup.py
e11it/hue-1
436704c40b5fa6ffd30bd972bf50ffeec738d091
[ "Apache-2.0" ]
1,623
2015-01-01T08:06:24.000Z
2022-03-30T19:48:52.000Z
desktop/core/ext-py/jaeger-client-4.0.0/setup.py
e11it/hue-1
436704c40b5fa6ffd30bd972bf50ffeec738d091
[ "Apache-2.0" ]
2,033
2015-01-04T07:18:02.000Z
2022-03-28T19:55:47.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- import re from setuptools import setup, find_packages version = None with open('jaeger_client/__init__.py', 'r') as f: for line in f: m = re.match(r'^__version__\s*=\s*(["\'])([^"\']+)\1', line) if m: version = m.group(2) break ...
33.226667
118
0.573435
import re from setuptools import setup, find_packages version = None with open('jaeger_client/__init__.py', 'r') as f: for line in f: m = re.match(r'^__version__\s*=\s*(["\'])([^"\']+)\1', line) if m: version = m.group(2) break assert version is not None, \ 'Could no...
true
true
1c450494cef97a82cf17c2e517bb7a3972d095f8
1,065
py
Python
plugins/k8s/resoto_plugin_k8s/resources/pod.py
MrMarvin/cloudkeeper
cdca21c1a3b945da6e53a5dbb37a437e1d46f557
[ "Apache-2.0" ]
316
2021-07-08T12:54:19.000Z
2022-01-12T18:50:17.000Z
plugins/k8s/resoto_plugin_k8s/resources/pod.py
MrMarvin/cloudkeeper
cdca21c1a3b945da6e53a5dbb37a437e1d46f557
[ "Apache-2.0" ]
110
2022-01-13T22:27:55.000Z
2022-03-30T22:26:50.000Z
plugins/k8s/resoto_plugin_k8s/resources/pod.py
MrMarvin/cloudkeeper
cdca21c1a3b945da6e53a5dbb37a437e1d46f557
[ "Apache-2.0" ]
14
2021-08-23T08:29:29.000Z
2022-01-08T04:42:28.000Z
from kubernetes import client from .common import KubernetesResource from resotolib.baseresources import ( BaseInstance, InstanceStatus, ) from typing import ClassVar, Dict from dataclasses import dataclass @dataclass(eq=False) class KubernetesPod(KubernetesResource, BaseInstance): kind: ClassVar[str] = "...
30.428571
80
0.73615
from kubernetes import client from .common import KubernetesResource from resotolib.baseresources import ( BaseInstance, InstanceStatus, ) from typing import ClassVar, Dict from dataclasses import dataclass @dataclass(eq=False) class KubernetesPod(KubernetesResource, BaseInstance): kind: ClassVar[str] = "...
true
true
1c450601610f97294ac129d9fba539453ebcde59
3,852
py
Python
utool/util_win32.py
Erotemic/utool
9fbbceefed71ab4b38ab806b998fefc9b873f205
[ "Apache-2.0" ]
8
2017-10-31T03:57:37.000Z
2021-01-15T15:40:23.000Z
utool/util_win32.py
Erotemic/utool
9fbbceefed71ab4b38ab806b998fefc9b873f205
[ "Apache-2.0" ]
6
2016-07-22T21:49:52.000Z
2021-11-08T01:00:40.000Z
utool/util_win32.py
Erotemic/utool
9fbbceefed71ab4b38ab806b998fefc9b873f205
[ "Apache-2.0" ]
6
2016-06-15T23:11:44.000Z
2021-11-07T14:23:42.000Z
# -*- coding: utf-8 -*- from __future__ import absolute_import, division, print_function, unicode_literals import os from os.path import join, normpath, pathsep, dirname # NOQA def get_regstr(regtype, var, val): regtype_map = { 'REG_EXPAND_SZ': 'hex(2):', 'REG_DWORD': 'dword:', 'REG_BINAR...
36.685714
111
0.630322
from __future__ import absolute_import, division, print_function, unicode_literals import os from os.path import join, normpath, pathsep, dirname def get_regstr(regtype, var, val): regtype_map = { 'REG_EXPAND_SZ': 'hex(2):', 'REG_DWORD': 'dword:', 'REG_BINARY': None, 'REG_MULTI_...
true
true
1c4506292da685c618215c514c153bc431358b30
914
py
Python
helpers.py
maxwelldemaio/books
adeeb85cc8bd19198dd0ba430d4fb26b5a96b60e
[ "MIT" ]
null
null
null
helpers.py
maxwelldemaio/books
adeeb85cc8bd19198dd0ba430d4fb26b5a96b60e
[ "MIT" ]
null
null
null
helpers.py
maxwelldemaio/books
adeeb85cc8bd19198dd0ba430d4fb26b5a96b60e
[ "MIT" ]
1
2021-03-01T05:59:33.000Z
2021-03-01T05:59:33.000Z
import json import os import requests from flask import redirect, render_template, session from functools import wraps def login_required(f): """ Decorate routes to require login. http://flask.pocoo.org/docs/1.0/patterns/viewdecorators/ """ @wraps(f) def decorated_function(*args, **kwargs): ...
24.702703
80
0.666302
import json import os import requests from flask import redirect, render_template, session from functools import wraps def login_required(f): @wraps(f) def decorated_function(*args, **kwargs): if session.get("user_id") is None: return render_template("apology.html") return f(*args...
true
true