hexsha
stringlengths
40
40
size
int64
4
1.02M
ext
stringclasses
8 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
4
209
max_stars_repo_name
stringlengths
5
121
max_stars_repo_head_hexsha
stringlengths
40
40
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
191k
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
max_issues_repo_path
stringlengths
4
209
max_issues_repo_name
stringlengths
5
121
max_issues_repo_head_hexsha
stringlengths
40
40
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
67k
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
max_forks_repo_path
stringlengths
4
209
max_forks_repo_name
stringlengths
5
121
max_forks_repo_head_hexsha
stringlengths
40
40
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
105k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
4
1.02M
avg_line_length
float64
1.07
66.1k
max_line_length
int64
4
266k
alphanum_fraction
float64
0.01
1
032423a3d6e9252ae1671d3898e1361d5312f858
2,372
py
Python
api_yamdb/reviews/management/commands/upload.py
LHLHLHE/api_yamdb
bda83815a47f3fda03d54220dfe41e9263ff1b05
[ "MIT" ]
null
null
null
api_yamdb/reviews/management/commands/upload.py
LHLHLHE/api_yamdb
bda83815a47f3fda03d54220dfe41e9263ff1b05
[ "MIT" ]
null
null
null
api_yamdb/reviews/management/commands/upload.py
LHLHLHE/api_yamdb
bda83815a47f3fda03d54220dfe41e9263ff1b05
[ "MIT" ]
null
null
null
import csv import os from django.core.management.base import BaseCommand from django.conf import settings from django.contrib.auth import get_user_model from reviews.models import (Category, Genre, GenreTitle, Title, ...
21.178571
77
0.539629
921db5c105a197aa9f0c54f3e39924f3e2b8194b
3,081
py
Python
iiits/migrations/0001_initial.py
IIITS/iiits.ac.in
fd1bcd656a2f1a038d331b005224c546998a23a6
[ "MIT" ]
6
2016-02-27T04:35:28.000Z
2020-06-09T04:18:38.000Z
iiits/migrations/0001_initial.py
IIITS/iiits.ac.in
fd1bcd656a2f1a038d331b005224c546998a23a6
[ "MIT" ]
null
null
null
iiits/migrations/0001_initial.py
IIITS/iiits.ac.in
fd1bcd656a2f1a038d331b005224c546998a23a6
[ "MIT" ]
5
2016-03-01T07:28:20.000Z
2021-01-19T10:51:58.000Z
# -*- coding: utf-8 -*- # Generated by Django 1.9 on 2016-02-25 12:09 from __future__ import unicode_literals from django.conf import settings from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): initial = True dependencies = [ migrations....
39.5
118
0.567348
ece310756eed5930ce2e94a2b46036b3d8f605b3
3,041
py
Python
sitator/landmark/pointmerge.py
ahzeeshan/sitator
bb00d87177b1a1b087ccc645b3e8c48de62f46c3
[ "MIT" ]
null
null
null
sitator/landmark/pointmerge.py
ahzeeshan/sitator
bb00d87177b1a1b087ccc645b3e8c48de62f46c3
[ "MIT" ]
null
null
null
sitator/landmark/pointmerge.py
ahzeeshan/sitator
bb00d87177b1a1b087ccc645b3e8c48de62f46c3
[ "MIT" ]
null
null
null
import numpy as np # From https://github.com/tqdm/tqdm/issues/506#issuecomment-373126698 import sys try: ipy_str = str(type(get_ipython())) if 'zmqshell' in ipy_str: from tqdm import tqdm_notebook as tqdm if 'terminal' in ipy_str: from tqdm import tqdm except: if sys.stderr.isatty(): ...
34.954023
95
0.545215
275dbfd088652abedbf062ef99521261510141b4
1,286
py
Python
Lib/email/mime/message.py
Hadron/python
73137f499ed658169f49273eee46845e3b53e800
[ "PSF-2.0" ]
6,989
2017-07-18T06:23:18.000Z
2022-03-31T15:58:36.000Z
build/cmd/win32/Python27/Lib/email/mime/message.py
IamBaoMouMou/AliOS-Things
195a9160b871b3d78de6f8cf6c2ab09a71977527
[ "Apache-2.0" ]
1,978
2017-07-18T09:17:58.000Z
2022-03-31T14:28:43.000Z
build/cmd/win32/Python27/Lib/email/mime/message.py
IamBaoMouMou/AliOS-Things
195a9160b871b3d78de6f8cf6c2ab09a71977527
[ "Apache-2.0" ]
1,228
2017-07-18T09:03:13.000Z
2022-03-29T05:57:40.000Z
# Copyright (C) 2001-2006 Python Software Foundation # Author: Barry Warsaw # Contact: email-sig@python.org """Class representing message/* MIME documents.""" __all__ = ['MIMEMessage'] from email import message from email.mime.nonmultipart import MIMENonMultipart class MIMEMessage(MIMENonMultipart): """Class...
36.742857
78
0.691291
1d228001014660c25265964d2767df63d23705b7
998
py
Python
ampel/model/time/QueryTimeModel.py
AmpelProject/Ampel-core
dcbfbe38ba400b7f8e44e641b90217ca1bed4f8f
[ "BSD-3-Clause" ]
5
2021-04-15T07:43:26.000Z
2022-03-04T09:25:09.000Z
ampel/model/time/QueryTimeModel.py
AmpelProject/Ampel-core
dcbfbe38ba400b7f8e44e641b90217ca1bed4f8f
[ "BSD-3-Clause" ]
67
2021-02-23T21:43:20.000Z
2021-12-15T23:28:32.000Z
ampel/model/time/QueryTimeModel.py
AmpelProject/Ampel-core
dcbfbe38ba400b7f8e44e641b90217ca1bed4f8f
[ "BSD-3-Clause" ]
1
2021-04-26T07:52:19.000Z
2021-04-26T07:52:19.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- # File : Ampel-core/ampel/model/time/QueryTimeModel.py # License : BSD-3-Clause # Author : vb <vbrinnel@physik.hu-berlin.de> # Date : 10.12.2019 # Last Modified Date: 06.06.2020 # Last Modified By : vb <vbrinnel@physik.hu-berl...
27.722222
70
0.650301
417cfe27daf0b4f331e341160644850b90424f3b
3,950
py
Python
app/lib/Blockextraction/blockextractor.py
nkcr/WebIndex
40390e0b3603286709da2a55f7cfd2c07f781182
[ "MIT" ]
null
null
null
app/lib/Blockextraction/blockextractor.py
nkcr/WebIndex
40390e0b3603286709da2a55f7cfd2c07f781182
[ "MIT" ]
null
null
null
app/lib/Blockextraction/blockextractor.py
nkcr/WebIndex
40390e0b3603286709da2a55f7cfd2c07f781182
[ "MIT" ]
null
null
null
'''Tokenize a block of content. This module maily proovides the callback method needed for the HTMLextraction module. It also holds the inverted index. Author: Noémien Kocher Licence: MIT Date: july 2016 ''' from collections import defaultdict import os import re import uuid import codecs import json # from nltk.ste...
33.474576
84
0.539747
53429eb4b31ec94d26917551e9c274c0483d2a7f
5,834
py
Python
embiggen/embedders/karateclub_embedders/role2vec.py
monarch-initiative/N2V
8ae02ca125f1d24ca158c2849f2d9bb1711920b9
[ "BSD-3-Clause" ]
2
2020-01-30T11:57:37.000Z
2020-05-02T00:05:49.000Z
embiggen/embedders/karateclub_embedders/role2vec.py
monarch-initiative/N2V
8ae02ca125f1d24ca158c2849f2d9bb1711920b9
[ "BSD-3-Clause" ]
93
2020-01-26T00:43:51.000Z
2020-05-10T03:29:54.000Z
embiggen/embedders/karateclub_embedders/role2vec.py
monarch-initiative/N2V
8ae02ca125f1d24ca158c2849f2d9bb1711920b9
[ "BSD-3-Clause" ]
5
2020-02-13T07:18:11.000Z
2020-03-19T08:03:34.000Z
"""Wrapper for Role2Vec model provided from the Karate Club package.""" from typing import Dict, Any from karateclub.node_embedding import Role2Vec from multiprocessing import cpu_count from embiggen.embedders.karateclub_embedders.abstract_karateclub_embedder import AbstractKarateClubEmbedder class Role2VecKarateClub...
34.116959
107
0.631471
6aef541299df0abb7912c5240f5e2f64f9924719
3,221
py
Python
api/migrations/0001_initial.py
Ponsen/spleeter-web
ad0394c2ba97859864903693773008ab2bc82168
[ "MIT" ]
4
2020-10-07T19:25:41.000Z
2021-08-13T10:23:29.000Z
api/migrations/0001_initial.py
Ponsen/spleeter-web
ad0394c2ba97859864903693773008ab2bc82168
[ "MIT" ]
null
null
null
api/migrations/0001_initial.py
Ponsen/spleeter-web
ad0394c2ba97859864903693773008ab2bc82168
[ "MIT" ]
1
2020-06-22T16:21:51.000Z
2020-06-22T16:21:51.000Z
# Generated by Django 3.0.6 on 2020-06-01 01:31 import api.models import api.validators from django.db import migrations, models import django.db.models.deletion import uuid class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( ...
46.681159
200
0.5905
55f164c2ff63eaaf6a650d79a5dceee34f94e930
3,413
py
Python
evaluation/evaluate_text_generation.py
ns-moosavi/NL-Augmenter
1275179e3746e55cc1915f12de00eb140103f981
[ "MIT" ]
1
2021-08-12T21:23:39.000Z
2021-08-12T21:23:39.000Z
evaluation/evaluate_text_generation.py
ns-moosavi/NL-Augmenter
1275179e3746e55cc1915f12de00eb140103f981
[ "MIT" ]
1
2021-08-19T10:02:22.000Z
2021-08-19T10:02:22.000Z
evaluation/evaluate_text_generation.py
ns-moosavi/NL-Augmenter
1275179e3746e55cc1915f12de00eb140103f981
[ "MIT" ]
1
2021-07-01T06:48:41.000Z
2021-07-01T06:48:41.000Z
import numpy as np from datasets import load_dataset from sacrebleu import corpus_bleu from transformers import pipeline from dataset import KeyValueDataset from tasks.TaskTypes import TaskType def sacrebleu_score(hypotheses, references): return corpus_bleu(hypotheses, [references]).score def evaluate( ope...
31.311927
111
0.699385
333c0284d8a872d2930c808fc4196d658cb671b6
488
py
Python
DIMCREATOR/wsgi.py
MINT1TINM/DIM-CREATOR
ca46043fc9279070f07ad5e934e95bc6ace0580a
[ "Apache-2.0" ]
null
null
null
DIMCREATOR/wsgi.py
MINT1TINM/DIM-CREATOR
ca46043fc9279070f07ad5e934e95bc6ace0580a
[ "Apache-2.0" ]
null
null
null
DIMCREATOR/wsgi.py
MINT1TINM/DIM-CREATOR
ca46043fc9279070f07ad5e934e95bc6ace0580a
[ "Apache-2.0" ]
null
null
null
""" WSGI config for DIMCREATOR 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 import sys from django.core.wsgi import get_wsgi_application os.environ.setdefault...
22.181818
78
0.786885
1f1b8046dcfe5d30c86c4fcac1d2c182063a04fe
289
py
Python
src/btt/wsgi.py
kevinkissi/basic-tech-tips-webapp
ea6443df772ca1c766ab42ab799e958b3e1d2ded
[ "MIT" ]
null
null
null
src/btt/wsgi.py
kevinkissi/basic-tech-tips-webapp
ea6443df772ca1c766ab42ab799e958b3e1d2ded
[ "MIT" ]
null
null
null
src/btt/wsgi.py
kevinkissi/basic-tech-tips-webapp
ea6443df772ca1c766ab42ab799e958b3e1d2ded
[ "MIT" ]
null
null
null
import os os.environ.setdefault("DJANGO_SETTINGS_MODULE", "btt.settings") from django.core.wsgi import get_wsgi_application from dj_static import Cling from whitenoise.django import DjangoWhiteNoise application = Cling(get_wsgi_application()) application = DjangoWhiteNoise(application)
28.9
63
0.844291
21d9fbb8caabc9071172514517fe2593589234e6
13,633
py
Python
examples/one-shot-seg/res101.slim.2branch.speedup.image321.py
MarcWong/tensorpack
51ab279480dc1e3ffdc07884a9e8149dea9651e9
[ "Apache-2.0" ]
5
2018-05-04T02:04:15.000Z
2020-04-02T05:38:48.000Z
examples/one-shot-seg/res101.slim.2branch.speedup.image321.py
MarcWong/tensorpack
51ab279480dc1e3ffdc07884a9e8149dea9651e9
[ "Apache-2.0" ]
null
null
null
examples/one-shot-seg/res101.slim.2branch.speedup.image321.py
MarcWong/tensorpack
51ab279480dc1e3ffdc07884a9e8149dea9651e9
[ "Apache-2.0" ]
2
2018-04-23T13:43:10.000Z
2019-10-30T09:56:54.000Z
#!/usr/bin/env python # -*- coding: UTF-8 -*- # File: vgg16.py import argparse import os,cv2 import numpy as np from tqdm import tqdm from tensorpack import * from tensorpack.tfutils import argscope, get_model_loader from tensorpack.utils.segmentation.segmentation import predict_slider, visualize_label, predict_scale...
39.862573
242
0.657596
9de7e4298cbd3289a96e73aef18915d9cec0257b
7,455
py
Python
algos/tf2algos/ma_ddpg.py
czh513/RLs-for-TF2.0-Gym-Unity
a2b0ecb7ae4006bb3a6895207fc6a3c77a511317
[ "Apache-2.0" ]
1
2021-01-24T13:29:10.000Z
2021-01-24T13:29:10.000Z
algos/tf2algos/ma_ddpg.py
H0wardx/RLs
cdf4ddcb1559996a5740197bfc2ebb2f8c678871
[ "Apache-2.0" ]
null
null
null
algos/tf2algos/ma_ddpg.py
H0wardx/RLs
cdf4ddcb1559996a5740197bfc2ebb2f8c678871
[ "Apache-2.0" ]
1
2021-01-24T13:29:16.000Z
2021-01-24T13:29:16.000Z
import numpy as np import tensorflow as tf import rls from algos.tf2algos.base.policy import Policy class MADDPG(Policy): ''' Multi-Agent Deep Deterministic Policy Gradient, https://arxiv.org/abs/1706.02275 ''' def __init__(self, s_dim, a_dim, is_con...
43.852941
118
0.548089
634aa78a21b93a88b0edffcef7fbd206c8177ee7
12,012
py
Python
frontend/tests/compile_blocks.py
timmyjose-projects/learn
57ef1d9282a367a35de67a951d6c7a7d91ee9a6a
[ "CC-BY-4.0" ]
null
null
null
frontend/tests/compile_blocks.py
timmyjose-projects/learn
57ef1d9282a367a35de67a951d6c7a7d91ee9a6a
[ "CC-BY-4.0" ]
null
null
null
frontend/tests/compile_blocks.py
timmyjose-projects/learn
57ef1d9282a367a35de67a951d6c7a7d91ee9a6a
[ "CC-BY-4.0" ]
null
null
null
#! /usr/bin/env python3 """ This program will extract every Ada code block in an Ada source file, and try to compile and execute them. The default behavior is to: - Split the block with ``gnatchop`` - If the user indicated that the example should be ran (more on that later): a. Run gnatmake on the unit named 'main'...
30.879177
79
0.547869
f087ea602d3cf56f2a6fc76efd74791a3354251b
6,010
py
Python
partials.py
dpwe/alles
c0dbffa4d4c429e165a5c7ba4dbc01db0e33dc30
[ "MIT" ]
null
null
null
partials.py
dpwe/alles
c0dbffa4d4c429e165a5c7ba4dbc01db0e33dc30
[ "MIT" ]
null
null
null
partials.py
dpwe/alles
c0dbffa4d4c429e165a5c7ba4dbc01db0e33dc30
[ "MIT" ]
null
null
null
import alles, sys # Sorry I have to add this. getting loris to compile cleanly was a PITA. looking for a better one sys.path.append('/usr/local/lib/python3.8/site-packages') import pydub import loris import time import numpy as np from math import pi import queue def partial_scheduler(filename, len_s = 10, noise_ra...
45.877863
181
0.615141
f629c8f04213aeec8469cb2336112e541570844e
19,367
py
Python
cutadapt/adapters.py
davidroberson/cutadapt
c15054978d35a14a9587caca81c204dc37663eb9
[ "MIT" ]
1
2018-12-12T10:31:51.000Z
2018-12-12T10:31:51.000Z
cutadapt/adapters.py
davidroberson/cutadapt
c15054978d35a14a9587caca81c204dc37663eb9
[ "MIT" ]
null
null
null
cutadapt/adapters.py
davidroberson/cutadapt
c15054978d35a14a9587caca81c204dc37663eb9
[ "MIT" ]
null
null
null
# coding: utf-8 """ Adapters """ from __future__ import print_function, division, absolute_import import sys import re from collections import defaultdict from cutadapt import align, colorspace from cutadapt.seqio import ColorspaceSequence, FastaReader # Constants for the find_best_alignment function. # The function i...
33.977193
110
0.71374
773fbe7af6751e8ffd8393588306fa1501072a38
883
py
Python
agent/monthly.py
cccfr/pretix-mete
37cfbaa184382a1868a2617bec55261c1c8cec22
[ "Apache-2.0" ]
null
null
null
agent/monthly.py
cccfr/pretix-mete
37cfbaa184382a1868a2617bec55261c1c8cec22
[ "Apache-2.0" ]
null
null
null
agent/monthly.py
cccfr/pretix-mete
37cfbaa184382a1868a2617bec55261c1c8cec22
[ "Apache-2.0" ]
null
null
null
import requests #meteserver = "http://172.16.0.69:3000" meteserver = "http://mete.cloud.cccfr" username = "schwarzelunge@cccfr.de" userid = 0 monthly_term = 10 def get_items(category): items = requests.get("%s/api/v1/%s" %(meteserver, category)).json() return items def get_userid(): users = get_items("us...
25.228571
108
0.634202
f2d39c291db95bdbee8101cf2d575826b7644c2e
2,288
py
Python
source/Mlos.Python/mlos/Grpc/OptimizerMonitoringServiceEncoderDecoder.py
amueller/MLOS
8f79bfa27a6fd09c3e00187bae8d7177eaf55247
[ "MIT" ]
3
2020-12-19T17:16:43.000Z
2021-11-14T19:41:49.000Z
source/Mlos.Python/mlos/Grpc/OptimizerMonitoringServiceEncoderDecoder.py
amueller/MLOS
8f79bfa27a6fd09c3e00187bae8d7177eaf55247
[ "MIT" ]
1
2020-11-05T20:17:10.000Z
2020-11-06T03:10:02.000Z
source/Mlos.Python/mlos/Grpc/OptimizerMonitoringServiceEncoderDecoder.py
amueller/MLOS
8f79bfa27a6fd09c3e00187bae8d7177eaf55247
[ "MIT" ]
1
2021-10-30T12:24:52.000Z
2021-10-30T12:24:52.000Z
# # Copyright (c) Microsoft Corporation. # Licensed under the MIT License. # import json from mlos.Grpc.OptimizerMonitoringService_pb2 import Hypergrid, OptimizationProblem as OptimizationProblem_pb2, Objective as Objective_pb2 from mlos.Optimizers.OptimizationProblem import Objective, OptimizationProblem from...
53.209302
139
0.770979
e3e78116cff4b3affad9b5a5a274fedcb4143c4f
13,833
py
Python
oauthenticator/globus.py
Wykiki/oauthenticator
3bcb7a7293ba99bae16eddb37e3177082a54234c
[ "BSD-3-Clause" ]
null
null
null
oauthenticator/globus.py
Wykiki/oauthenticator
3bcb7a7293ba99bae16eddb37e3177082a54234c
[ "BSD-3-Clause" ]
null
null
null
oauthenticator/globus.py
Wykiki/oauthenticator
3bcb7a7293ba99bae16eddb37e3177082a54234c
[ "BSD-3-Clause" ]
null
null
null
""" Custom Authenticator to use Globus OAuth2 with JupyterHub """ import base64 import os import pickle import urllib from jupyterhub.auth import LocalAuthenticator from tornado.httpclient import HTTPRequest from tornado.web import HTTPError from traitlets import Bool from traitlets import default from traitlets impor...
40.212209
115
0.642666
4859d0104affa4b6dd6b0fce96b9ba9b9e823508
1,406
py
Python
pymodbus/framer/__init__.py
vmacari/pymodbus
ec97e2f2b50c6db0a932f44e550a5dee60bf0970
[ "BSD-3-Clause" ]
1,125
2017-05-11T06:11:36.000Z
2022-03-31T02:59:45.000Z
pymodbus/framer/__init__.py
vmacari/pymodbus
ec97e2f2b50c6db0a932f44e550a5dee60bf0970
[ "BSD-3-Clause" ]
575
2017-05-12T02:46:55.000Z
2022-03-31T16:00:33.000Z
pymodbus/framer/__init__.py
vmacari/pymodbus
ec97e2f2b50c6db0a932f44e550a5dee60bf0970
[ "BSD-3-Clause" ]
516
2017-05-19T14:06:06.000Z
2022-03-31T06:10:13.000Z
from pymodbus.interfaces import IModbusFramer import struct # Unit ID, Function Code BYTE_ORDER = '>' FRAME_HEADER = 'BB' # Transaction Id, Protocol ID, Length, Unit ID, Function Code SOCKET_FRAME_HEADER = BYTE_ORDER + 'HHH' + FRAME_HEADER # Function Code TLS_FRAME_HEADER = BYTE_ORDER + 'B' class ModbusFramer(IModb...
28.12
72
0.610242
e4f09e7ae613787d0fb11746986a18da8530fa5b
626
py
Python
tests/const.py
suecharo/cwl-inputs-parser
6f89471aa2e7d33c56903f8f9d8c0681fc5f7229
[ "Apache-2.0" ]
null
null
null
tests/const.py
suecharo/cwl-inputs-parser
6f89471aa2e7d33c56903f8f9d8c0681fc5f7229
[ "Apache-2.0" ]
null
null
null
tests/const.py
suecharo/cwl-inputs-parser
6f89471aa2e7d33c56903f8f9d8c0681fc5f7229
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 # coding: utf-8 from pathlib import Path from cwl_inputs_parser.utils import Workflow from cwl_utils.parser.cwl_v1_2 import WorkflowInputParameter CONFORMANCE_TEST_PATH = Path(__file__).parent.joinpath("cwl_conformance_test/conformance_test_v1.2_fixed.yaml") # noqa: E501 CWL_UTILS_OBJ_TEMPLATE...
27.217391
125
0.667732
e06a74f8314c10651caca5568dfe412ee514e111
54,513
py
Python
telethon/utils.py
Mdnoor786/Telethon
3131e9f5d3bdabfcbe175b2b1f29f1c2445ef58b
[ "MIT" ]
null
null
null
telethon/utils.py
Mdnoor786/Telethon
3131e9f5d3bdabfcbe175b2b1f29f1c2445ef58b
[ "MIT" ]
null
null
null
telethon/utils.py
Mdnoor786/Telethon
3131e9f5d3bdabfcbe175b2b1f29f1c2445ef58b
[ "MIT" ]
null
null
null
""" Utilities for working with the Telegram API itself (such as handy methods to convert between an entity like a User, Chat, etc. into its Input version) """ import base64 import binascii import imghdr import inspect import io import itertools import logging import math import mimetypes import os import pathlib import...
35.260673
2,019
0.633977
ec0395ae732fed1a0d5f2d39ef3c1d48bcf62158
5,310
py
Python
jtracker/cli/exec/commands.py
jthub/jt-cli
dff134b8ce7102bc11c0bb64e4a2cb510ebaedd0
[ "Apache-2.0" ]
2
2018-12-13T01:09:34.000Z
2020-02-04T13:31:34.000Z
jtracker/cli/exec/commands.py
jtracker-io/jt-cli
dff134b8ce7102bc11c0bb64e4a2cb510ebaedd0
[ "Apache-2.0" ]
36
2018-04-20T20:50:03.000Z
2019-02-27T04:39:03.000Z
jtracker/cli/exec/commands.py
jthub/jt-cli
dff134b8ce7102bc11c0bb64e4a2cb510ebaedd0
[ "Apache-2.0" ]
1
2018-09-24T18:50:38.000Z
2018-09-24T18:50:38.000Z
import click import json import requests from jtracker.execution import Executor @click.command() @click.option('-q', '--queue-id', help='Job queue ID') @click.option('-k', '--parallel-workers', type=int, default=2, help='Max number of parallel workers') @click.option('-p', '--parallel-jobs', type=int, default=1, hel...
45.384615
123
0.565725
b6ce1f33b1cb01ef19cf613b550c797a5a203a85
15,455
py
Python
demisto_sdk/commands/doc_reviewer/doc_reviewer.py
sturmianseq/demisto-sdk
67ce7ee70ccd557d661e03a60469301c5cbcb9c0
[ "MIT" ]
42
2019-11-07T13:02:00.000Z
2022-03-29T03:39:04.000Z
demisto_sdk/commands/doc_reviewer/doc_reviewer.py
sturmianseq/demisto-sdk
67ce7ee70ccd557d661e03a60469301c5cbcb9c0
[ "MIT" ]
1,437
2019-11-07T13:02:25.000Z
2022-03-31T12:48:11.000Z
demisto_sdk/commands/doc_reviewer/doc_reviewer.py
sturmianseq/demisto-sdk
67ce7ee70ccd557d661e03a60469301c5cbcb9c0
[ "MIT" ]
46
2019-12-09T21:44:30.000Z
2022-03-24T17:36:45.000Z
import os import re import ssl import string import sys from typing import Dict, Set import click import nltk from nltk.corpus import brown, webtext from spellchecker import SpellChecker from demisto_sdk.commands.common.constants import FileType from demisto_sdk.commands.common.content import (Integration, Playbook, ...
41.545699
131
0.623552
cb6fe9583ee641e4034ab95ceb0fbe08aaf7bc9d
651
py
Python
setup.py
julien-h/is-wsl
ce66db56abc38215d3a942035fcb48577d2ba2d1
[ "MIT" ]
6
2019-04-21T15:22:59.000Z
2021-04-01T23:20:10.000Z
setup.py
julien-h/is-wsl
ce66db56abc38215d3a942035fcb48577d2ba2d1
[ "MIT" ]
null
null
null
setup.py
julien-h/is-wsl
ce66db56abc38215d3a942035fcb48577d2ba2d1
[ "MIT" ]
null
null
null
from setuptools import setup # read the contents of your README file from os import path this_directory = path.abspath(path.dirname(__file__)) with open(path.join(this_directory, 'README.md'), encoding='utf-8') as f: long_description = f.read() setup( name='iswsl', version='1.0.1', packages=['isws...
31
95
0.714286
f952148b6e1c28fd9e1eab1a28030357292b2d05
3,696
py
Python
stai/consensus/default_constants.py
STATION-I/staicoin-blockchain
b8686c75dd5fe7883115d9613858c9c8cadfc4a7
[ "Apache-2.0" ]
10
2021-10-02T18:33:56.000Z
2021-11-14T17:10:48.000Z
stai/consensus/default_constants.py
STATION-I/staicoin-blockchain
b8686c75dd5fe7883115d9613858c9c8cadfc4a7
[ "Apache-2.0" ]
14
2021-10-07T22:10:15.000Z
2021-12-21T09:13:49.000Z
stai/consensus/default_constants.py
STATION-I/staicoin-blockchain
b8686c75dd5fe7883115d9613858c9c8cadfc4a7
[ "Apache-2.0" ]
6
2021-10-29T19:36:59.000Z
2021-12-19T19:52:57.000Z
from stai.util.ints import uint64 from .constants import ConsensusConstants testnet_kwargs = { "SLOT_BLOCKS_TARGET": 32, "MIN_BLOCKS_PER_CHALLENGE_BLOCK": 16, # Must be less than half of SLOT_BLOCKS_TARGET "MAX_SUB_SLOT_BLOCKS": 128, # Must be less than half of SUB_EPOCH_BLOCKS "NUM_SPS_SUB_SLOT": 6...
57.75
118
0.744318
9b55d53acfbe926c302b1f70f84f81c51d842c1c
962
py
Python
sciencerunaway/users/migrations/0012_auto_20170307_1623.py
bhanduroshan/science-runway
0927a435e29b34c279f9654ef5e36541859ea66d
[ "MIT" ]
1
2019-10-10T08:16:33.000Z
2019-10-10T08:16:33.000Z
sciencerunaway/users/migrations/0012_auto_20170307_1623.py
bhanduroshan/python-django-personality-matching-application
0927a435e29b34c279f9654ef5e36541859ea66d
[ "MIT" ]
null
null
null
sciencerunaway/users/migrations/0012_auto_20170307_1623.py
bhanduroshan/python-django-personality-matching-application
0927a435e29b34c279f9654ef5e36541859ea66d
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by Django 1.10.5 on 2017-03-07 10:38 from __future__ import unicode_literals import django.contrib.auth.validators from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('users', '0011_merge_20170303_1939'), ] operat...
35.62963
317
0.658004
ff1bfd7dbb66795dca3f2909ffebfd5ef3955e3e
347
py
Python
Decorators/Exercises/01. logged.py
geodimitrov/PythonOOP_SoftUni
f1c6718c878b618b3ab3f174cd4d187bd178940b
[ "MIT" ]
1
2021-06-30T11:53:44.000Z
2021-06-30T11:53:44.000Z
Decorators/Exercises/01. logged.py
geodimitrov/PythonOOP_SoftUni
f1c6718c878b618b3ab3f174cd4d187bd178940b
[ "MIT" ]
null
null
null
Decorators/Exercises/01. logged.py
geodimitrov/PythonOOP_SoftUni
f1c6718c878b618b3ab3f174cd4d187bd178940b
[ "MIT" ]
null
null
null
from functools import wraps def logged(func): @wraps(func) def wrapper(*args, **kwargs): return f"you called {func.__name__}{args}\nit returned {func(*args, **kwargs)}" return wrapper @logged def func(*args): return 3 + len(args) print(func(4, 4, 4)) @logged def sum_func(a, b): return ...
17.35
87
0.636888
1d7153b4502990c3ba9c51734b1194d3f4cd5db3
393
py
Python
setup.py
zhiyue/bypy
921fd61d42cd3625472316d2a428a1e53765a4e8
[ "MIT" ]
null
null
null
setup.py
zhiyue/bypy
921fd61d42cd3625472316d2a428a1e53765a4e8
[ "MIT" ]
null
null
null
setup.py
zhiyue/bypy
921fd61d42cd3625472316d2a428a1e53765a4e8
[ "MIT" ]
null
null
null
#!/usr/bin/env python # coding=utf-8 from setuptools import setup,find_packages import bypy setup( name='bypy', version=bypy.__version__, description='Python client for Baidu Yun (Personal Cloud Storage) 百度云/百度网盘 Python 客户端', author='Hou Tianze', url='https://github.com/houtianze/bypy', packages=find_packages(...
20.684211
88
0.735369
54de5f6fa7e804100301a28373534a4385761317
5,854
py
Python
xos/tests/ui-e2e/xos-e2e-test.py
pan2za/xos
c2a4da2ccaa12360b2718be303b247866aefdfe6
[ "Apache-2.0" ]
null
null
null
xos/tests/ui-e2e/xos-e2e-test.py
pan2za/xos
c2a4da2ccaa12360b2718be303b247866aefdfe6
[ "Apache-2.0" ]
5
2020-06-05T17:47:15.000Z
2021-09-23T23:21:27.000Z
xos/tests/ui-e2e/xos-e2e-test.py
pan2za/xos
c2a4da2ccaa12360b2718be303b247866aefdfe6
[ "Apache-2.0" ]
null
null
null
import unittest from selenium import webdriver from selenium.webdriver.common.keys import Keys from selenium.webdriver.common.by import By from selenium.webdriver.support.ui import WebDriverWait from selenium.webdriver.support import expected_conditions as EC import sys import time class XosUI(unittest.TestCase): ...
36.5875
103
0.660916
1acdc867f275dafa24d05bfc3dc58efcb5a0fb87
1,781
py
Python
module2-consuming-data-from-an-api/Twitoff/twitoff/app.py
ianforrest11/DS-Unit-3-Sprint-3-Productization-and-Cloud
8f85547b9543641635eac533ad168fcc18131c1e
[ "MIT" ]
null
null
null
module2-consuming-data-from-an-api/Twitoff/twitoff/app.py
ianforrest11/DS-Unit-3-Sprint-3-Productization-and-Cloud
8f85547b9543641635eac533ad168fcc18131c1e
[ "MIT" ]
null
null
null
module2-consuming-data-from-an-api/Twitoff/twitoff/app.py
ianforrest11/DS-Unit-3-Sprint-3-Productization-and-Cloud
8f85547b9543641635eac533ad168fcc18131c1e
[ "MIT" ]
null
null
null
""" main application and routing logic for twitoff """ # import flask, 'DB' from .models folder from flask import Flask, render_template, request from .models import DB, User # import config from decouple, allows us to change URI to DATABASE_URL from .env from decouple import config def create_app(): """Create...
33.603774
102
0.667041
42e5c566b1711f89be3e2d2c582672695bb13311
9,739
py
Python
rcnn/roi_helpers.py
npetrenko/recurrent_frcnn
9fb948a9f6ee87e8f6d48d65c8ad2e957f7ab7ee
[ "Apache-2.0" ]
1
2017-10-20T22:47:40.000Z
2017-10-20T22:47:40.000Z
rcnn/roi_helpers.py
npetrenko/recurrent_frcnn
9fb948a9f6ee87e8f6d48d65c8ad2e957f7ab7ee
[ "Apache-2.0" ]
null
null
null
rcnn/roi_helpers.py
npetrenko/recurrent_frcnn
9fb948a9f6ee87e8f6d48d65c8ad2e957f7ab7ee
[ "Apache-2.0" ]
null
null
null
import numpy as np import pdb import math from . import data_generators import copy def calc_iou(R, img_data, C, class_mapping): bboxes = img_data['bboxes'] (width, height) = (img_data['width'], img_data['height']) # get image dimensions for resizing (resized_width, resized_height) = data_generators....
33.238908
134
0.546873
75982e499af3017dbd9e8aad3c2e1370d63a9686
18,149
py
Python
test/functional/test_framework/comptool.py
N8VCoin/nativecoin
ecbaee2810a94e814808df59033083426f2fa92d
[ "MIT" ]
6
2019-06-28T00:32:13.000Z
2020-06-05T02:26:35.000Z
test/functional/test_framework/comptool.py
N8VCoin/nativecoin
ecbaee2810a94e814808df59033083426f2fa92d
[ "MIT" ]
2
2019-12-09T14:09:13.000Z
2021-03-30T15:24:45.000Z
test/functional/test_framework/comptool.py
N8VCoin/nativecoin
ecbaee2810a94e814808df59033083426f2fa92d
[ "MIT" ]
3
2019-06-12T13:10:36.000Z
2020-02-27T05:48:32.000Z
#!/usr/bin/env python3 # Copyright (c) 2015-2016 The Bitcoin Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. """Compare two or more nativecoinds to each other. To use, create a class that implements get_tests(), an...
45.600503
146
0.60367
680ff8d4545331abba2d9f83b2f03516e0ed0dc1
4,356
py
Python
punch_card.py
jiaxin-scu/attendance_system
11400013707644fb9dec7e1790a92e32be8a55b5
[ "MIT" ]
null
null
null
punch_card.py
jiaxin-scu/attendance_system
11400013707644fb9dec7e1790a92e32be8a55b5
[ "MIT" ]
2
2021-04-16T03:40:01.000Z
2022-03-09T10:46:43.000Z
punch_card.py
jiaxin-scu/attendance_system
11400013707644fb9dec7e1790a92e32be8a55b5
[ "MIT" ]
null
null
null
import ui.punch_card_ui as clock_in import cv2 import datetime from PySide2 import QtCore, QtGui, QtWidgets from PySide2.QtWidgets import * from PySide2.QtCore import * from PySide2.QtGui import QPalette, QBrush, QPixmap, QIcon import main import sys import face_recognize import requests class WinCheck(QMainWindow, c...
39.963303
158
0.617309
8f96fe63fdc28e31832f81cbb6c1632cd9c56907
3,266
py
Python
python-package/insightface/utils/download.py
Vivek-23-Titan/insightface
4b9b72aa6153ff0ca33b35799e8731b575b3b614
[ "MIT" ]
269
2019-08-20T09:39:44.000Z
2022-03-12T09:45:29.000Z
python-package/insightface/utils/download.py
charmere/insightface
60bb5829b1d76bfcec7930ce61c41dde26413279
[ "MIT" ]
74
2020-02-17T12:44:14.000Z
2022-03-29T15:45:16.000Z
python-package/insightface/utils/download.py
charmere/insightface
60bb5829b1d76bfcec7930ce61c41dde26413279
[ "MIT" ]
64
2019-08-22T08:39:27.000Z
2022-03-28T14:02:46.000Z
""" This code file mainly comes from https://github.com/dmlc/gluon-cv/blob/master/gluoncv/utils/download.py """ import os import hashlib import requests from tqdm import tqdm def check_sha1(filename, sha1_hash): """Check whether the sha1 hash of the file content matches the expected hash. Parameters ------...
35.89011
103
0.581751
27ba68230dc78d0643ca503df5217fbbe1e3c5a1
119
py
Python
my_packages/Transformers/StringTransformer.py
Elseidy83/Creation_packages
9e9fb48139defa83af798265bd932d80d359798a
[ "MIT" ]
null
null
null
my_packages/Transformers/StringTransformer.py
Elseidy83/Creation_packages
9e9fb48139defa83af798265bd932d80d359798a
[ "MIT" ]
null
null
null
my_packages/Transformers/StringTransformer.py
Elseidy83/Creation_packages
9e9fb48139defa83af798265bd932d80d359798a
[ "MIT" ]
null
null
null
def reverse_string(p_string): return [p_string[::-1]] def cap_string(p_string): return p_string.capitalize()
19.833333
33
0.714286
0dc161fb0c0b2b612fd2f768a239b32c264e5c91
1,931
py
Python
tests/components/camera/test_recorder.py
liangleslie/core
cc807b4d597daaaadc92df4a93c6e30da4f570c6
[ "Apache-2.0" ]
3
2019-10-02T04:40:26.000Z
2020-02-16T13:19:08.000Z
tests/components/camera/test_recorder.py
liangleslie/core
cc807b4d597daaaadc92df4a93c6e30da4f570c6
[ "Apache-2.0" ]
1,016
2019-06-18T21:27:47.000Z
2020-03-06T11:09:58.000Z
tests/components/camera/test_recorder.py
liangleslie/core
cc807b4d597daaaadc92df4a93c6e30da4f570c6
[ "Apache-2.0" ]
null
null
null
"""The tests for camera recorder.""" from __future__ import annotations from datetime import timedelta from homeassistant.components import camera from homeassistant.components.recorder.models import StateAttributes, States from homeassistant.components.recorder.util import session_scope from homeassistant.const impo...
38.62
88
0.751424
16e0973df3accc1d3d922da3f405fe8fe4d420c8
1,979
py
Python
tirukurral/tirukurral/spiders/getKural.py
raknas999/scrapy-Demos
64a69f62c7c83d21ed38349549f6b1d2d07707ff
[ "MIT" ]
2
2016-10-17T18:23:07.000Z
2018-07-12T01:04:39.000Z
tirukurral/tirukurral/spiders/getKural.py
raknas999/scrapy-Demos
64a69f62c7c83d21ed38349549f6b1d2d07707ff
[ "MIT" ]
1
2016-11-04T17:17:30.000Z
2016-11-04T17:17:30.000Z
tirukurral/tirukurral/spiders/getKural.py
miztiik/scrapy-Demos
64a69f62c7c83d21ed38349549f6b1d2d07707ff
[ "MIT" ]
4
2016-12-29T08:27:50.000Z
2022-02-24T23:45:36.000Z
# -*- coding: utf-8 -*- import scrapy import json class kuralItem(scrapy.Item): KuralPaal = scrapy.Field() Athigaram = scrapy.Field() KuralNo = scrapy.Field() Kural = scrapy.Field() KuralExpln1 = scrapy.Field() KuralExpln2 = scrapy.Field() class getKuralSp...
48.268293
150
0.560384
8360c04fd1945ea1dc92da3b46750a0e5777c649
5,523
py
Python
11 2018-11-1/11 2018-11-1.py
thetime50/Tkinter-practice-1
1f2fd542ad191e3727855714cc4219ec079cb30c
[ "MIT" ]
null
null
null
11 2018-11-1/11 2018-11-1.py
thetime50/Tkinter-practice-1
1f2fd542ad191e3727855714cc4219ec079cb30c
[ "MIT" ]
1
2018-09-17T01:17:46.000Z
2018-09-17T01:17:46.000Z
11 2018-11-1/11 2018-11-1.py
thetime50/Tkinter-practice
1f2fd542ad191e3727855714cc4219ec079cb30c
[ "MIT" ]
null
null
null
#-*- coding: utf-8 -*- import tkinter import time import math class WindClass: def __init__(self,x,y,w,h): self.x=x self.y=y self.w=w self.h=h Win_interval=4 cv0_w=WindClass(Win_interval,Win_interval,600,20) cv1_w=WindClass(Win_interval,2*Win_interval+cv0_w.h,600,500) Wind_w=610 Wind_h=550 class OneDimens...
26.941463
129
0.691834
e4b6172b863871cc5e988017894ac3c405e7b52e
8,669
py
Python
montreal_forced_aligner/command_line/train_ivector_extractor.py
gan-studio/Montreal-Forced-Aligner
d0e0377e89c276a89280f5a8a5e9e3aff3adbcc8
[ "MIT" ]
null
null
null
montreal_forced_aligner/command_line/train_ivector_extractor.py
gan-studio/Montreal-Forced-Aligner
d0e0377e89c276a89280f5a8a5e9e3aff3adbcc8
[ "MIT" ]
null
null
null
montreal_forced_aligner/command_line/train_ivector_extractor.py
gan-studio/Montreal-Forced-Aligner
d0e0377e89c276a89280f5a8a5e9e3aff3adbcc8
[ "MIT" ]
null
null
null
import shutil import os import multiprocessing as mp import yaml import time from montreal_forced_aligner import __version__ from montreal_forced_aligner.corpus import AlignableCorpus from montreal_forced_aligner.dictionary import Dictionary from montreal_forced_aligner.aligner import PretrainedAligner from montreal_f...
49.255682
122
0.685315
79ad9d08e51d999d6061f790ec9e587a309dc999
1,762
py
Python
tests/integration/test_connection.py
gnuoy/python-libjuju
668945a53cdf696bb2d6d8da518a07094b22c7c7
[ "Apache-2.0" ]
null
null
null
tests/integration/test_connection.py
gnuoy/python-libjuju
668945a53cdf696bb2d6d8da518a07094b22c7c7
[ "Apache-2.0" ]
null
null
null
tests/integration/test_connection.py
gnuoy/python-libjuju
668945a53cdf696bb2d6d8da518a07094b22c7c7
[ "Apache-2.0" ]
null
null
null
import asyncio from juju.client import client from juju.client.connection import Connection import pytest from .. import base @base.bootstrapped @pytest.mark.asyncio async def test_monitor(event_loop): async with base.CleanModel() as model: conn = model.connection() assert conn.monitor.status ...
25.171429
68
0.632236
3a28928621245c871ecb68062015490f9bbb193c
165,802
py
Python
tensorflow/python/ops/math_ops.py
SinestroEdmonce/tensorflow
74ecf6b4b6fb87f13050ec79e58802b7e866fe3e
[ "Apache-2.0" ]
1
2020-02-07T02:38:42.000Z
2020-02-07T02:38:42.000Z
tensorflow/python/ops/math_ops.py
radiopartizan/tensorflow
00befcdeb87f1fc490d247d127ee438f63fe3666
[ "Apache-2.0" ]
null
null
null
tensorflow/python/ops/math_ops.py
radiopartizan/tensorflow
00befcdeb87f1fc490d247d127ee438f63fe3666
[ "Apache-2.0" ]
null
null
null
# Copyright 2015 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.595105
121
0.662206
13f10e13ca54072d6d9ec1bc447baa3eed0e72bf
183
py
Python
tests/fixtures/__init__.py
elisoncrum/is-it-down
204cc5a2c2a715544a252cb469fa065c5b66577d
[ "MIT" ]
9
2022-01-30T03:59:38.000Z
2022-02-08T18:14:32.000Z
tests/fixtures/__init__.py
elisoncrum/is-it-down
204cc5a2c2a715544a252cb469fa065c5b66577d
[ "MIT" ]
3
2022-01-30T22:58:13.000Z
2022-02-01T17:03:20.000Z
tests/fixtures/__init__.py
elisoncrum/is-it-down
204cc5a2c2a715544a252cb469fa065c5b66577d
[ "MIT" ]
null
null
null
import os import tempfile import pytest from main import create_app @pytest.fixture def client(): app = create_app() with app.test_client() as client: yield client
14.076923
37
0.710383
b7e9f79c1dd3054078d2c60b1553e76ab6e1a23e
587
py
Python
api/subs.py
TClaypool00/ExpenseTrackerClient-Python
44f45e7e7b7434d19a20a0d1b565592a157bed88
[ "MIT" ]
null
null
null
api/subs.py
TClaypool00/ExpenseTrackerClient-Python
44f45e7e7b7434d19a20a0d1b565592a157bed88
[ "MIT" ]
null
null
null
api/subs.py
TClaypool00/ExpenseTrackerClient-Python
44f45e7e7b7434d19a20a0d1b565592a157bed88
[ "MIT" ]
null
null
null
from urllib import request from .api import base_url import json from api.api import Api sub_url = base_url + 'subs/' class SubsApi(Api): def create_sub(self, due_date, amt_due, store_id, sub_name, user_id): url = sub_url + 'create.php' data = {'dueDate' : due_date, 'amountDue' : str(amt_due), 's...
32.611111
133
0.640545
0af32b69ed6e4b4a658a2480c6a6f6f1e2e180cc
969
py
Python
ex3/predict.py
cyberbaker/CSML
c2adad5e796fa12b5afcfafd5fd1b51f642ce730
[ "MIT" ]
null
null
null
ex3/predict.py
cyberbaker/CSML
c2adad5e796fa12b5afcfafd5fd1b51f642ce730
[ "MIT" ]
null
null
null
ex3/predict.py
cyberbaker/CSML
c2adad5e796fa12b5afcfafd5fd1b51f642ce730
[ "MIT" ]
null
null
null
import numpy as np from ex2.sigmoid import sigmoid def predict(Theta1, Theta2, X): """ outputs the predicted label of X given the trained weights of a neural network (Theta1, Theta2) """ # Useful values m, _ = X.shape num_labels, _ = Theta2.shape # ====================== YOUR CODE HERE =========...
33.413793
75
0.584107
6a8b11c2400eb5d22a2c33cb8f514d775bfb64d6
453
py
Python
agent/alembic/versions/87dc1408358b_add_schema_column_to_pipelines.py
eacherkan-aternity/daria
7c77a2f52c09c852017b16949a848fa51f0fb579
[ "Apache-2.0" ]
16
2019-04-03T08:31:54.000Z
2021-01-24T17:12:04.000Z
agent/alembic/versions/87dc1408358b_add_schema_column_to_pipelines.py
eacherkan-aternity/daria
7c77a2f52c09c852017b16949a848fa51f0fb579
[ "Apache-2.0" ]
10
2020-01-20T14:59:06.000Z
2022-01-21T10:19:16.000Z
agent/alembic/versions/87dc1408358b_add_schema_column_to_pipelines.py
eacherkan-aternity/daria
7c77a2f52c09c852017b16949a848fa51f0fb579
[ "Apache-2.0" ]
5
2021-01-08T19:23:03.000Z
2021-11-09T14:15:49.000Z
"""add_schema_column_to_pipelines Revision ID: 87dc1408358b Revises: 9d3d42cad294 Create Date: 2020-11-25 15:34:32.641791 """ from alembic import op import sqlalchemy as sa # revision identifiers, used by Alembic. revision = '87dc1408358b' down_revision = '9d3d42cad294' branch_labels = None depends_on = None def ...
18.12
60
0.748344
2026526a126d1b7b4c878b12281e8e8833be9c3d
841
py
Python
Server1/accounts/admin.py
BUYA-GH/madcamp2
bfeddb8885dac7ce5ff7b776b8654e048a49dd0d
[ "Apache-2.0" ]
null
null
null
Server1/accounts/admin.py
BUYA-GH/madcamp2
bfeddb8885dac7ce5ff7b776b8654e048a49dd0d
[ "Apache-2.0" ]
null
null
null
Server1/accounts/admin.py
BUYA-GH/madcamp2
bfeddb8885dac7ce5ff7b776b8654e048a49dd0d
[ "Apache-2.0" ]
null
null
null
from django.contrib import admin from django.contrib.auth.models import Group from django.contrib.auth.admin import UserAdmin as BaseUserAdmin from .forms import UserCreationForm, UserChangeForm from .models import User class UserAdmin(BaseUserAdmin): form = UserChangeForm add_form = UserCreationForm lis...
28.033333
69
0.642093
48605d7c22b73b8e8d165500f6e51375dc8c8d6e
13,629
py
Python
src/robotide/publish/messages.py
chenyifen/RIDE
a0ba1ddcbda5cb18fc715cdb1792fd9ad7d15e1a
[ "ECL-2.0", "Apache-2.0" ]
1
2020-09-01T06:50:17.000Z
2020-09-01T06:50:17.000Z
src/robotide/publish/messages.py
chenyifen/RIDE
a0ba1ddcbda5cb18fc715cdb1792fd9ad7d15e1a
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
src/robotide/publish/messages.py
chenyifen/RIDE
a0ba1ddcbda5cb18fc715cdb1792fd9ad7d15e1a
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
# Copyright 2008-2015 Nokia Networks # Copyright 2016- Robot Framework Foundation # # 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 ...
29.309677
81
0.678993
052d3747743dd5690eef13f6f3e93630bb940201
9,654
py
Python
flexx/react/__init__.py
abhishekgahlot/flexx
27a995603b5e9d758f9d38eababcc626aa661299
[ "BSD-2-Clause" ]
1
2015-11-05T19:17:37.000Z
2015-11-05T19:17:37.000Z
flexx/react/__init__.py
abhishekgahlot/flexx
27a995603b5e9d758f9d38eababcc626aa661299
[ "BSD-2-Clause" ]
null
null
null
flexx/react/__init__.py
abhishekgahlot/flexx
27a995603b5e9d758f9d38eababcc626aa661299
[ "BSD-2-Clause" ]
null
null
null
""" The react module provides functionality for Reactive Programming (RP) and Functional Reactive Programming (FRP). It is a bit difficult to explain what FRP really is. This is because every implementation has its own take on it, and because it requires a bit of a paradigm shift compared to classic event-driven progr...
30.454259
78
0.688316
ea948c3fd2fab1bcca15c62364dadbf933fa32cf
3,255
py
Python
python/fundamentals/2.2.dictionary.py
enesonmez/data-science-tutorial-turkish
755c539f44b9f5571cd3efc3e0358f14f96bc096
[ "CC0-1.0" ]
1
2022-02-02T08:41:23.000Z
2022-02-02T08:41:23.000Z
python/fundamentals/2.2.dictionary.py
enesonmez/data-science-tutorial-turkish
755c539f44b9f5571cd3efc3e0358f14f96bc096
[ "CC0-1.0" ]
null
null
null
python/fundamentals/2.2.dictionary.py
enesonmez/data-science-tutorial-turkish
755c539f44b9f5571cd3efc3e0358f14f96bc096
[ "CC0-1.0" ]
null
null
null
""" Python dilindeki kolekisyon veri tiplerinden biri olan sözlük (dictioanry) veri tipi, anahtar (key) - değer (value) çiftlerini tutar. Gündelik hayatta kullandığımız ingilizce-türkçe sözlük mantığıyla aynıdır. İngilizce kelimeler key (anahtar) türkçe karşılığı ise value (değer) olarak sözlük v...
34.62766
153
0.738249
a43c70d986f6ff8f5b76af1e58349e9a564dc611
4,202
py
Python
venusclient/v1/basemodels.py
openstack/python-venusclient
205416069ec36c13a66c642221c2eb4a1f611dbd
[ "Apache-2.0" ]
null
null
null
venusclient/v1/basemodels.py
openstack/python-venusclient
205416069ec36c13a66c642221c2eb4a1f611dbd
[ "Apache-2.0" ]
null
null
null
venusclient/v1/basemodels.py
openstack/python-venusclient
205416069ec36c13a66c642221c2eb4a1f611dbd
[ "Apache-2.0" ]
null
null
null
# Copyright 2020 Inspur # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, soft...
35.610169
79
0.586387
b21e223d18a5d1d58576d07c68e1e8ee9007cbab
31,905
py
Python
venv/lib/python2.7/site-packages/psycopg2/extras.py
infomaven/wufoo_scoring
c316b2ae77c2be724a82725a57aa6f3b2b296e02
[ "Unlicense" ]
1
2019-07-29T02:53:51.000Z
2019-07-29T02:53:51.000Z
venv/lib/python2.7/site-packages/psycopg2/extras.py
infomaven/wufoo_scoring
c316b2ae77c2be724a82725a57aa6f3b2b296e02
[ "Unlicense" ]
4
2017-10-24T22:44:01.000Z
2017-10-24T22:44:19.000Z
psycopg2/extras.py
beyang/psycopg2
62dfd8e9841616b4b7eea12fc923b3ee57fc5cc4
[ "OpenSSL" ]
2
2016-12-19T02:27:46.000Z
2019-07-29T02:53:54.000Z
"""Miscellaneous goodies for psycopg2 This module is a generic place used to hold little helper functions and classes until a better place in the distribution is found. """ # psycopg/extras.py - miscellaneous extra goodies for psycopg # # Copyright (C) 2003-2010 Federico Di Gregorio <fog@debian.org> # # psycopg2 is f...
32.723077
90
0.625827
a2c90e6af392358b4c569d9923fe6b17a44daa04
1,805
py
Python
examples/ex03_inferences_bash.py
hoefer-lab/memocell
5dc08d121e64fbde1ccdce86f0f1390e6918d255
[ "MIT" ]
null
null
null
examples/ex03_inferences_bash.py
hoefer-lab/memocell
5dc08d121e64fbde1ccdce86f0f1390e6918d255
[ "MIT" ]
null
null
null
examples/ex03_inferences_bash.py
hoefer-lab/memocell
5dc08d121e64fbde1ccdce86f0f1390e6918d255
[ "MIT" ]
1
2021-05-25T12:54:51.000Z
2021-05-25T12:54:51.000Z
### a sample script to run memocell estimations ### in the terminal/bash/shell etc. ### run this via 'python ex03_inferences_bash.py' ### for explanations/info, see jupyter notebook ex03_inferences.ipynb import memocell as me import numpy as np import pickle from multiprocessing import freeze_support if __name__ == ...
35.392157
79
0.6
ee108da8fbdc3d9d29e724f731c8b58e6f82b98f
251
py
Python
clientum/manage.py
noslenfa/ubiwhere_challenge
6dc9f8971dab4ac0307df44ebd44853d059b2969
[ "Apache-2.0" ]
null
null
null
clientum/manage.py
noslenfa/ubiwhere_challenge
6dc9f8971dab4ac0307df44ebd44853d059b2969
[ "Apache-2.0" ]
null
null
null
clientum/manage.py
noslenfa/ubiwhere_challenge
6dc9f8971dab4ac0307df44ebd44853d059b2969
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python import os import sys if __name__ == "__main__": os.environ.setdefault("DJANGO_SETTINGS_MODULE", "clientum.settings") from django.core.management import execute_from_command_line execute_from_command_line(sys.argv)
22.818182
72
0.772908
2149e2b4e7d900d4035301b61aa5e27e48b85e84
414
py
Python
openbox/artifact/artifact/test_task_done.py
Dee-Why/lite-bo
804e93b950148fb98b7e52bd56c713edacdb9b6c
[ "BSD-3-Clause" ]
184
2021-06-02T06:35:25.000Z
2022-03-31T10:33:11.000Z
openbox/artifact/artifact/test_task_done.py
ZongWei-HUST/open-box
011791aba4e44b20a6544020c73601638886d143
[ "MIT" ]
16
2021-11-15T11:13:57.000Z
2022-03-24T12:51:17.000Z
openbox/artifact/artifact/test_task_done.py
ZongWei-HUST/open-box
011791aba4e44b20a6544020c73601638886d143
[ "MIT" ]
24
2021-06-18T04:52:57.000Z
2022-03-30T11:14:03.000Z
# License: MIT import json import random import requests from ConfigSpace.read_and_write import json as config_json from ConfigSpace.hyperparameters import UniformFloatHyperparameter from openbox.config_space import ConfigurationSpace from openbox.config_space.util import convert_configurations_to_array user_id = 18 ...
29.571429
92
0.833333
5179816eb3578aa0961c1bcb27c62f26f2ca1fcc
6,637
py
Python
homeassistant/components/sensor/neato.py
EmitKiwi/home-assistant
0999e2ddc476f4bddf710005168b082f03a7cdc0
[ "Apache-2.0" ]
4
2019-05-14T20:33:43.000Z
2021-09-25T14:56:08.000Z
homeassistant/components/sensor/neato.py
EmitKiwi/home-assistant
0999e2ddc476f4bddf710005168b082f03a7cdc0
[ "Apache-2.0" ]
null
null
null
homeassistant/components/sensor/neato.py
EmitKiwi/home-assistant
0999e2ddc476f4bddf710005168b082f03a7cdc0
[ "Apache-2.0" ]
1
2019-09-15T04:45:12.000Z
2019-09-15T04:45:12.000Z
""" Support for Neato Connected Vaccums sensors. For more details about this platform, please refer to the documentation at https://home-assistant.io/components/sensor.neato/ """ import logging import requests from homeassistant.helpers.entity import Entity from homeassistant.components.neato import ( NEATO_ROBOTS...
37.925714
79
0.611421
644e5778be207f49fce250a145f628fd4580008f
8,929
py
Python
print.py
NuTTeR/terminfo-front
3e62c456b431c2d826a27679d6e0c1e2df55a41d
[ "MIT" ]
null
null
null
print.py
NuTTeR/terminfo-front
3e62c456b431c2d826a27679d6e0c1e2df55a41d
[ "MIT" ]
5
2021-06-02T02:31:09.000Z
2022-03-12T00:41:09.000Z
print.py
NuTTeR/terminfo-front
3e62c456b431c2d826a27679d6e0c1e2df55a41d
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import six import fitz import tempfile import os from escpos import * from PIL import Image, ImageQt class PrintHandler: # Работа с печатью def __init__(self, pdf_data=None): self._data = None if pdf_data: self._data = fitz.open("pdf", pdf_data) if ...
43.34466
167
0.572964
8089042693a6fcbbba4125755ff83cf41564a8ee
513
py
Python
mytorch/losses.py
rasbt/mytorch
772823eb7f68cc6decc4f0beae15c85d8ba802c1
[ "MIT" ]
29
2018-08-10T06:08:40.000Z
2021-10-04T18:42:51.000Z
mytorch/losses.py
rasbt/mytorch
772823eb7f68cc6decc4f0beae15c85d8ba802c1
[ "MIT" ]
null
null
null
mytorch/losses.py
rasbt/mytorch
772823eb7f68cc6decc4f0beae15c85d8ba802c1
[ "MIT" ]
2
2018-10-19T00:53:34.000Z
2019-02-24T04:43:41.000Z
# Sebastian Raschka 2018 # mytorch # Author: Sebastian Raschka <sebastianraschka.com> # # License: MIT import torch def continuous_jaccard(x, y): """ Implementation of the continuous version of the Jaccard distance: 1 - [sum_i min(x_i, y_i)] / [sum_i max(x_i, y_i)] """ c = torch.cat((x.view(...
22.304348
76
0.649123
e1e3ef78c3ce88f7ce8e84ade5e3948a515e8e1a
3,880
py
Python
test/model/profiles/plotters/test_profile_plotters.py
AshKelly/PyAutoLens
043795966338a655339e61782253ad67cc3c14e6
[ "MIT" ]
null
null
null
test/model/profiles/plotters/test_profile_plotters.py
AshKelly/PyAutoLens
043795966338a655339e61782253ad67cc3c14e6
[ "MIT" ]
null
null
null
test/model/profiles/plotters/test_profile_plotters.py
AshKelly/PyAutoLens
043795966338a655339e61782253ad67cc3c14e6
[ "MIT" ]
null
null
null
from autolens.data.array import grids, mask as msk from autolens.model.profiles import light_profiles as lp, mass_profiles as mp from autolens.model.profiles.plotters import profile_plotters from test.fixtures import * import numpy as np @pytest.fixture(name='profile_plotter_path') def make_profile_plotter_setup(): ...
47.901235
116
0.679639
31ea294a9adbd23d3be4aebad0559e0e4e7de436
7,737
py
Python
pghoard/gnutaremu.py
st3fan/sphinx-automation-experiment
c92c8400770c6c604e2451e4f1e71957fc4c5ef8
[ "Apache-2.0" ]
731
2018-06-01T21:48:43.000Z
2022-03-29T08:21:42.000Z
pghoard/gnutaremu.py
st3fan/sphinx-automation-experiment
c92c8400770c6c604e2451e4f1e71957fc4c5ef8
[ "Apache-2.0" ]
124
2018-06-19T05:59:50.000Z
2022-03-31T18:17:59.000Z
pghoard/gnutaremu.py
st3fan/sphinx-automation-experiment
c92c8400770c6c604e2451e4f1e71957fc4c5ef8
[ "Apache-2.0" ]
64
2018-06-26T14:12:53.000Z
2022-03-20T07:33:33.000Z
#!/usr/bin/python3 import argparse import fnmatch import os import re import sys import tarfile class GnuTarEmulator: """Provides minimal set of tar processing functionality with interface identical to that of GNU tar. Only parameters that are required by PGHoard are supported.""" def __init__(self): ...
37.741463
120
0.558744
b9121245d2e3ec7dc3eca3e3bb524002d5cb7a4d
7,228
py
Python
test/performance/link_prediction/dgl/base.py
dedsec-9/AutoGL
487f2b2f798b9b1363ad5dc100fb410b12222e06
[ "MIT" ]
null
null
null
test/performance/link_prediction/dgl/base.py
dedsec-9/AutoGL
487f2b2f798b9b1363ad5dc100fb410b12222e06
[ "MIT" ]
null
null
null
test/performance/link_prediction/dgl/base.py
dedsec-9/AutoGL
487f2b2f798b9b1363ad5dc100fb410b12222e06
[ "MIT" ]
null
null
null
""" Baseline that use early stopping """ import pickle import dgl import torch import torch.nn as nn import torch.nn.functional as F import numpy as np import scipy.sparse as sp import random from dgl.data import CoraGraphDataset, PubmedGraphDataset, CiteseerGraphDataset import dgl.data from argparse import ArgumentPa...
33.934272
127
0.666436
336762cc918b3f2838bc12893f62043327109591
6,469
py
Python
Lib/bsddb/test/test_misc.py
underrun/pybsddb
c9595d77af49a7107f0646e63682995e3f1d65a8
[ "BSD-3-Clause" ]
3
2016-08-25T15:37:55.000Z
2018-06-26T02:15:24.000Z
Lib/bsddb/test/test_misc.py
underrun/pybsddb
c9595d77af49a7107f0646e63682995e3f1d65a8
[ "BSD-3-Clause" ]
null
null
null
Lib/bsddb/test/test_misc.py
underrun/pybsddb
c9595d77af49a7107f0646e63682995e3f1d65a8
[ "BSD-3-Clause" ]
null
null
null
""" Copyright (c) 2008-2014, Jesus Cea Avion <jcea@jcea.es> All rights reserved. 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, this list of...
36.965714
106
0.600866
aaba1ad0591763825dd3b847148ee9cbe8c2e5ec
9,649
py
Python
src/the_tale/the_tale/accounts/tests/test_change_credentials.py
devapromix/the-tale
2a10efd3270734f8cf482b4cfbc5353ef8f0494c
[ "BSD-3-Clause" ]
1
2020-04-02T11:51:20.000Z
2020-04-02T11:51:20.000Z
src/the_tale/the_tale/accounts/tests/test_change_credentials.py
devapromix/the-tale
2a10efd3270734f8cf482b4cfbc5353ef8f0494c
[ "BSD-3-Clause" ]
null
null
null
src/the_tale/the_tale/accounts/tests/test_change_credentials.py
devapromix/the-tale
2a10efd3270734f8cf482b4cfbc5353ef8f0494c
[ "BSD-3-Clause" ]
null
null
null
import smart_imports smart_imports.all() def raise_exception(*argv, **kwargs): raise Exception('unknown error') class TestChangeCredentialsTask(utils_testcase.TestCase): def setUp(self): super(TestChangeCredentialsTask, self).setUp() game_logic.create_test_map() self.test_account...
56.758824
200
0.767852
6d80732d40cc35e23c6d55f339a06a82215c13e8
798
py
Python
bench/__init__.py
manishnish138/rjsmin
4e6b13750559734d9ea890133504132761950c7d
[ "Apache-2.0" ]
null
null
null
bench/__init__.py
manishnish138/rjsmin
4e6b13750559734d9ea890133504132761950c7d
[ "Apache-2.0" ]
null
null
null
bench/__init__.py
manishnish138/rjsmin
4e6b13750559734d9ea890133504132761950c7d
[ "Apache-2.0" ]
null
null
null
# -*- coding: ascii -*- u""" ================================= Benchmark jsmin implementations ================================= Benchmark jsmin implementations. :Copyright: Copyright 2011 - 2019 Andr\xe9 Malo or his licensors, as applicable :License: Licensed under the Apache License, Version 2.0 (the "Licens...
27.517241
73
0.696742
cb2c91988ff0295a4b6bbcf64a89495820338c2a
2,428
py
Python
tests/probe_tests/test_models.py
Zhicheng-Liu/mykrobe
9cfe80d9cb6424f3fbdef2434388a13bf9ee8edb
[ "MIT" ]
1
2020-08-08T01:08:01.000Z
2020-08-08T01:08:01.000Z
tests/probe_tests/test_models.py
martinghunt/mykrobe
6a7e7f69a56a05cce225889958a6ac8496a8f7cd
[ "MIT" ]
null
null
null
tests/probe_tests/test_models.py
martinghunt/mykrobe
6a7e7f69a56a05cce225889958a6ac8496a8f7cd
[ "MIT" ]
null
null
null
import sys import json import os sys.path.append(".") from mykrobe.probes.models import Mutation from mykrobe.annotation.genes import GeneAminoAcidChangeToDNAVariants DATA_DIR = os.path.join("tests", "ref_data") class TestMutation(): def setup(self): self.reference_filepath = f"{DATA_DIR}/NC_000962.3.fa...
40.466667
163
0.61285
2a02dd69457a86e98e41a7c55dd69e6074783d1a
1,694
py
Python
shelf/context_response_mapper.py
not-nexus/shelf
ea59703082402ad3b6454482f0487418295fbd19
[ "MIT" ]
4
2016-11-07T13:02:18.000Z
2019-09-03T02:04:05.000Z
shelf/context_response_mapper.py
not-nexus/shelf
ea59703082402ad3b6454482f0487418295fbd19
[ "MIT" ]
21
2016-11-30T20:44:52.000Z
2017-05-02T15:38:56.000Z
shelf/context_response_mapper.py
not-nexus/shelf
ea59703082402ad3b6454482f0487418295fbd19
[ "MIT" ]
2
2017-01-24T14:36:04.000Z
2020-01-13T16:10:05.000Z
from flask import Response import json from shelf.cloud.stream_iterator import StreamIterator class ContextResponseMapper(object): def __init__(self, link_mapper, context): self.link_mapper = link_mapper self.context = context def to_response(self, body=None, status_code=None): respon...
32.576923
72
0.626919
b81de49b31e9228833ce15cee429fad490c680fc
2,893
py
Python
scrapers/Spacebattles/Spacebattles/spiders/scrape_archive.py
NovelTorpedo/noveltorpedo
5440b3a67b9f3bbaf61d019644286d152ba96d4f
[ "MIT" ]
2
2017-01-28T00:34:27.000Z
2017-09-08T22:03:38.000Z
scrapers/Spacebattles/Spacebattles/spiders/scrape_archive.py
NovelTorpedo/noveltorpedo
5440b3a67b9f3bbaf61d019644286d152ba96d4f
[ "MIT" ]
1
2020-06-05T17:40:13.000Z
2020-06-05T17:40:13.000Z
scrapers/Spacebattles/Spacebattles/spiders/scrape_archive.py
NovelTorpedo/noveltorpedo
5440b3a67b9f3bbaf61d019644286d152ba96d4f
[ "MIT" ]
null
null
null
# Copyright 2017 Brook Boese, Finn Ellis, Jacob Martin, Matthew Popescu, Rubin Stricklin, and Sage Callon # 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 ...
41.927536
115
0.703076
0df8d3b49663fab0c52ee4ce787f8bdec4ba17a1
6,964
py
Python
test/test_peripheral.py
ElTentakel/bricknil
a908b98938ee1028373186e31cb2d43c68f54b76
[ "Apache-2.0" ]
103
2019-03-31T17:47:00.000Z
2022-03-10T09:30:32.000Z
test/test_peripheral.py
ElTentakel/bricknil
a908b98938ee1028373186e31cb2d43c68f54b76
[ "Apache-2.0" ]
25
2019-04-02T19:42:21.000Z
2021-12-27T13:04:46.000Z
test/test_peripheral.py
ElTentakel/bricknil
a908b98938ee1028373186e31cb2d43c68f54b76
[ "Apache-2.0" ]
39
2019-03-31T18:30:52.000Z
2022-03-27T13:29:41.000Z
import pytest import os, struct, copy import logging from asyncio import coroutine from curio import kernel, sleep from mock import Mock from mock import patch, call from mock import MagicMock from mock import PropertyMock from hypothesis import given, example, settings from hypothesis import strategies as st from b...
32.849057
118
0.616169
a9ef2276090439307ede07374efb39856376026d
81
py
Python
autokick/__init__.py
majordookie/paste-cogs
b4e9fd919a8c5dde020b6aabac000c27648b835a
[ "Apache-2.0" ]
1
2019-07-01T20:19:59.000Z
2019-07-01T20:19:59.000Z
autokick/__init__.py
majordookie/paste-cogs
b4e9fd919a8c5dde020b6aabac000c27648b835a
[ "Apache-2.0" ]
null
null
null
autokick/__init__.py
majordookie/paste-cogs
b4e9fd919a8c5dde020b6aabac000c27648b835a
[ "Apache-2.0" ]
3
2020-10-20T15:02:13.000Z
2020-10-28T17:22:41.000Z
from .autokick import AutoKick def setup(bot): bot.add_cog(AutoKick(bot))
20.25
31
0.716049
99b834649e54b140a7bd0ac37ae88aaedd9557b5
522
py
Python
test/dynamics/signals/__init__.py
dekelmeirom/qiskit-dynamics
9ed616c0715d1ba6189ea2bc57330cecb21ef181
[ "Apache-2.0" ]
32
2021-06-15T17:59:35.000Z
2022-03-16T09:43:50.000Z
test/dynamics/signals/__init__.py
dekelmeirom/qiskit-dynamics
9ed616c0715d1ba6189ea2bc57330cecb21ef181
[ "Apache-2.0" ]
46
2021-07-22T10:58:49.000Z
2022-03-15T13:04:29.000Z
test/dynamics/signals/__init__.py
dekelmeirom/qiskit-dynamics
9ed616c0715d1ba6189ea2bc57330cecb21ef181
[ "Apache-2.0" ]
19
2021-06-21T12:23:28.000Z
2022-02-11T21:32:47.000Z
# This code is part of Qiskit. # # (C) Copyright IBM 2018, 2019, 2020. # # This code is licensed under the Apache License, Version 2.0. You may # obtain a copy of this license in the LICENSE.txt file in the root directory # of this source tree or at http://www.apache.org/licenses/LICENSE-2.0. # # Any modifications or d...
32.625
77
0.747126
87fbd8250cd841a46ab4208c42fcc8130bb9dc80
362
py
Python
imblearn/ensemble/base.py
bharlow058/Imbalance-Library
d85c17a3c07358de01101806f6ae38bf3ba0f394
[ "MIT" ]
25
2016-10-08T10:19:35.000Z
2021-11-10T09:52:11.000Z
imblearn/ensemble/base.py
eavgerinos/pkg-imbalanced-learn
3e875838cb602865d8b9786fbe940d0704771fca
[ "MIT" ]
2
2016-07-31T22:12:23.000Z
2017-05-22T12:41:38.000Z
imblearn/ensemble/base.py
eavgerinos/pkg-imbalanced-learn
3e875838cb602865d8b9786fbe940d0704771fca
[ "MIT" ]
13
2017-02-17T00:58:22.000Z
2020-12-28T02:50:45.000Z
""" Base class for the ensemble method. """ # Authors: Guillaume Lemaitre <g.lemaitre58@gmail.com> # License: MIT from ..base import BaseSampler class BaseEnsembleSampler(BaseSampler): """Base class for ensemble algorithms. Warning: This class should not be used directly. Use the derive classes instead....
20.111111
75
0.71547
34e8a056201a9ab8416a8578cfded3dd307f7dc2
994
py
Python
utils.py
kostyantynHrytsyuk/py-garch
f6df46aa01b4f7b190b51e44ea577ba4bdb3b888
[ "MIT" ]
null
null
null
utils.py
kostyantynHrytsyuk/py-garch
f6df46aa01b4f7b190b51e44ea577ba4bdb3b888
[ "MIT" ]
1
2020-06-03T19:44:22.000Z
2020-06-03T19:44:22.000Z
utils.py
kostyantynHrytsyuk/py-garch
f6df46aa01b4f7b190b51e44ea577ba4bdb3b888
[ "MIT" ]
null
null
null
import datetime class Utils: @staticmethod def check_empty(d, key_name): r = d.get(key_name) if r: return r else: raise KeyError('Empty field' + key_name) @staticmethod def convert_timestamps_to_date(ts): date_stamps = [] for stamp in Ut...
30.121212
78
0.594567
c0c2be528a4e727d2ec2ea4938c2f77e50995829
31,707
py
Python
evo/models/sssc.py
tvlearn/evo
772a9493ae805831f6730654708a26d8db560707
[ "AFL-3.0" ]
1
2022-03-24T13:44:29.000Z
2022-03-24T13:44:29.000Z
evo/models/sssc.py
tvlearn/evo
772a9493ae805831f6730654708a26d8db560707
[ "AFL-3.0" ]
null
null
null
evo/models/sssc.py
tvlearn/evo
772a9493ae805831f6730654708a26d8db560707
[ "AFL-3.0" ]
null
null
null
# -*- coding: utf-8 -*- # Copyright (C) 2017 Machine Learning Group of the University of Oldenburg. # Licensed under the Academic Free License version 3.0 from __future__ import division import numpy as np from mpi4py import MPI from scipy.special import logsumexp import evo.utils.parallel as parallel import evo.util...
37.567536
99
0.554357
722824670a7dddb87c44b0734c0687b012fc9395
34,071
py
Python
colcon_hardware_acceleration/subverb/__init__.py
ros-acceleration/colcon-hardware-acceleration
dd3369d2821f90c8c5be37229167e5bb676fe70c
[ "Apache-2.0" ]
null
null
null
colcon_hardware_acceleration/subverb/__init__.py
ros-acceleration/colcon-hardware-acceleration
dd3369d2821f90c8c5be37229167e5bb676fe70c
[ "Apache-2.0" ]
3
2022-03-29T11:14:18.000Z
2022-03-30T09:58:30.000Z
colcon_hardware_acceleration/subverb/__init__.py
ros-acceleration/colcon-hardware-acceleration
dd3369d2821f90c8c5be37229167e5bb676fe70c
[ "Apache-2.0" ]
null
null
null
# Copyright 2022 Víctor Mayoral-Vilches # Licensed under the Apache License, Version 2.0 import os import subprocess import sys from colcon_core.logging import colcon_logger from colcon_core.plugin_system import instantiate_extensions from colcon_core.plugin_system import order_extensions_by_name from colcon_hardware...
30.474955
144
0.616947
8a97e91210a6cbfe0e235cae74ae1f4eefa80640
18,307
py
Python
opac/webapp/utils/utils.py
gustavofonseca/opac
55bf5a97846aa6415fdd41d26472110c91fde753
[ "BSD-2-Clause" ]
1
2019-10-07T00:25:39.000Z
2019-10-07T00:25:39.000Z
opac/webapp/utils/utils.py
gustavofonseca/opac
55bf5a97846aa6415fdd41d26472110c91fde753
[ "BSD-2-Clause" ]
null
null
null
opac/webapp/utils/utils.py
gustavofonseca/opac
55bf5a97846aa6415fdd41d26472110c91fde753
[ "BSD-2-Clause" ]
null
null
null
# coding: utf-8 import os import re import pytz import shutil import logging from uuid import uuid4 from datetime import datetime, timedelta from werkzeug import secure_filename from itsdangerous import URLSafeTimedSerializer from flask_mail import Message from flask import current_app, render_template import webapp ...
33.529304
141
0.663954
df49efbbe765e0998795ee2769674b18d047ab70
6,855
py
Python
uhd_restpy/testplatform/sessions/ixnetwork/topology/vpnparameter_399bfde0d4939f8b431c339b39bb4720.py
Vibaswan/ixnetwork_restpy
239fedc7050890746cbabd71ea1e91c68d9e5cad
[ "MIT" ]
null
null
null
uhd_restpy/testplatform/sessions/ixnetwork/topology/vpnparameter_399bfde0d4939f8b431c339b39bb4720.py
Vibaswan/ixnetwork_restpy
239fedc7050890746cbabd71ea1e91c68d9e5cad
[ "MIT" ]
null
null
null
uhd_restpy/testplatform/sessions/ixnetwork/topology/vpnparameter_399bfde0d4939f8b431c339b39bb4720.py
Vibaswan/ixnetwork_restpy
239fedc7050890746cbabd71ea1e91c68d9e5cad
[ "MIT" ]
null
null
null
# MIT LICENSE # # Copyright 1997 - 2020 by IXIA Keysight # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), # to deal in the Software without restriction, including without limitation # the rights to use, copy, modify,...
38.728814
174
0.677316
d6014416a80baa3c1ed5676e6f2145afe29683c0
5,988
py
Python
cms/cms_plugins.py
petrklus/django-cms
5094a01afd82e59496e2b09f06e63c4c3147e342
[ "BSD-3-Clause" ]
1
2020-04-09T19:53:43.000Z
2020-04-09T19:53:43.000Z
cms/cms_plugins.py
petrklus/django-cms
5094a01afd82e59496e2b09f06e63c4c3147e342
[ "BSD-3-Clause" ]
1
2019-04-19T13:16:41.000Z
2019-04-19T13:16:41.000Z
cms/cms_plugins.py
petrklus/django-cms
5094a01afd82e59496e2b09f06e63c4c3147e342
[ "BSD-3-Clause" ]
1
2017-10-17T08:20:32.000Z
2017-10-17T08:20:32.000Z
# -*- coding: utf-8 -*- from cms.models import CMSPlugin, Placeholder from cms.models.aliaspluginmodel import AliasPluginModel from cms.models.placeholderpluginmodel import PlaceholderReference from cms.plugin_base import CMSPluginBase, PluginMenuItem from cms.plugin_pool import plugin_pool from cms.utils.urlutils impo...
37.898734
109
0.653808
71f788f23823c285b749036f2a8b36bce2e20def
10,790
py
Python
interaction_manager/view/ui_spotify_dialog.py
ES-TUDelft/interaction-design-tool-ir
d6fffa8d76c9e3df4ed1f505ee9427e5af5b8082
[ "MIT" ]
1
2021-03-07T12:36:13.000Z
2021-03-07T12:36:13.000Z
interaction_manager/view/ui_spotify_dialog.py
ES-TUDelft/interaction-design-tool-ir
d6fffa8d76c9e3df4ed1f505ee9427e5af5b8082
[ "MIT" ]
null
null
null
interaction_manager/view/ui_spotify_dialog.py
ES-TUDelft/interaction-design-tool-ir
d6fffa8d76c9e3df4ed1f505ee9427e5af5b8082
[ "MIT" ]
1
2021-02-20T15:10:37.000Z
2021-02-20T15:10:37.000Z
# -*- coding: utf-8 -*- # Form implementation generated from reading ui file 'interaction_manager/ui/spotifydialog.ui' # # Created by: PyQt5 UI code generator 5.12.2 # # WARNING! All changes made in this file will be lost! from es_common.utils.qt import QtCore, QtGui, QtWidgets class Ui_SpotifyDialog(object): d...
57.393617
114
0.732808
857206c6d9c8909bc1c471a451049454092696f2
5,609
py
Python
web/write_dokuwiki_table.py
ondrejtichacek/cluster-reporting
5a0e90143f52a30582dfcb382264f7eb4070f444
[ "MIT" ]
null
null
null
web/write_dokuwiki_table.py
ondrejtichacek/cluster-reporting
5a0e90143f52a30582dfcb382264f7eb4070f444
[ "MIT" ]
1
2016-10-16T11:29:25.000Z
2016-10-16T11:32:57.000Z
web/write_dokuwiki_table.py
ondrejtichacek/cluster-reporting
5a0e90143f52a30582dfcb382264f7eb4070f444
[ "MIT" ]
null
null
null
import os import re import time from configparser import ConfigParser import mysql.connector from mysql.connector import MySQLConnection, Error lightgreen = ["#A6FFD0", "#C5FFED", "#E4FFFF"] lightpink = ["#FFB4EB", "#FFD2FF", "#FFF0FF"] def read_config(section, filename='config.ini'): """ Read configuration f...
30.650273
102
0.547869
8e6daec3ac845f68ad81e8c37945765ebacfcd32
2,567
py
Python
courses/models.py
innovistar/newbackend
9548c6851bb779fc72ad171f2a33265963753ad5
[ "MIT" ]
null
null
null
courses/models.py
innovistar/newbackend
9548c6851bb779fc72ad171f2a33265963753ad5
[ "MIT" ]
null
null
null
courses/models.py
innovistar/newbackend
9548c6851bb779fc72ad171f2a33265963753ad5
[ "MIT" ]
null
null
null
from django.db import models #from embed_video.fields import EmbedVideoField #from django.contrib.auth.models import User #from users.models import Account # Create your models here. class Course(models.Model): #user = models.ForeignKey(Account, on_delete=models.CASCADE, null=True, blank=True) ...
26.463918
88
0.65446
7f8a9cc1a677505ba5739ce811973b5250a37361
153
py
Python
growler_vhost/__init__.py
pyGrowler/growler-vhost
244c4ceaa3f1163fd375c519afc2e29457c9ed28
[ "Apache-2.0" ]
null
null
null
growler_vhost/__init__.py
pyGrowler/growler-vhost
244c4ceaa3f1163fd375c519afc2e29457c9ed28
[ "Apache-2.0" ]
null
null
null
growler_vhost/__init__.py
pyGrowler/growler-vhost
244c4ceaa3f1163fd375c519afc2e29457c9ed28
[ "Apache-2.0" ]
null
null
null
# # growler_vhost/__init__.py # __version__ = '0.0.0' __author__ = 'Andrew Kubera' __contact__ = 'andrew.kubera@gmail.com' __license__ = 'Apache v2.0'
17
39
0.718954
392a2c68876f992534a2e6aae270900de162d29e
929
py
Python
setup.py
shivambehl/PyTopsis
a3d979be0270a42c0a47220296458050a8866e70
[ "MIT" ]
null
null
null
setup.py
shivambehl/PyTopsis
a3d979be0270a42c0a47220296458050a8866e70
[ "MIT" ]
null
null
null
setup.py
shivambehl/PyTopsis
a3d979be0270a42c0a47220296458050a8866e70
[ "MIT" ]
null
null
null
import setuptools from distutils.core import setup setup( name='PyTopsis', packages=['PyTopsis'], version='0.1', license='MIT', description='This is a Python Package implementing Topsis meathod used for multi-criteria decision analysis method', author='Shivam Behl', author_email='shivambehl1...
37.16
120
0.636168
e6640be9238a58a92f5d5299f66919722fc5c981
16,498
py
Python
src/meshio/mdpa/_mdpa.py
wiggin15/meshio
fd12359fb86e52a8c8d5afb1472a7e1dce589e16
[ "MIT" ]
1
2022-03-04T16:50:02.000Z
2022-03-04T16:50:02.000Z
src/meshio/mdpa/_mdpa.py
wiggin15/meshio
fd12359fb86e52a8c8d5afb1472a7e1dce589e16
[ "MIT" ]
null
null
null
src/meshio/mdpa/_mdpa.py
wiggin15/meshio
fd12359fb86e52a8c8d5afb1472a7e1dce589e16
[ "MIT" ]
null
null
null
""" I/O for KratosMultiphysics's mdpa format, cf. <https://github.com/KratosMultiphysics/Kratos/wiki/Input-data>. The MDPA format is unsuitable for fast consumption, this is why: <https://github.com/KratosMultiphysics/Kratos/issues/5365>. """ import numpy as np from .._common import num_nodes_per_cell, raw_from_cell_...
31.424762
88
0.56819
5e5564d306a61b936afe0e941292ebca1056c4dd
4,277
py
Python
closed/LTechKorea/calibration_triton_cpu/OpenVINO/3d-unet/ov_calibrate.py
ctuning/inference_results_v1.1
d9176eca28fcf6d7a05ccb97994362a76a1eb5ab
[ "Apache-2.0" ]
19
2020-10-26T17:37:22.000Z
2022-01-20T09:32:38.000Z
closed/LTechKorea/calibration_triton_cpu/OpenVINO/3d-unet/ov_calibrate.py
ctuning/inference_results_v1.1
d9176eca28fcf6d7a05ccb97994362a76a1eb5ab
[ "Apache-2.0" ]
24
2021-07-19T01:09:35.000Z
2022-03-17T11:44:02.000Z
closed/LTechKorea/calibration_triton_cpu/OpenVINO/3d-unet/ov_calibrate.py
ctuning/inference_results_v1.1
d9176eca28fcf6d7a05ccb97994362a76a1eb5ab
[ "Apache-2.0" ]
19
2020-10-21T19:15:17.000Z
2022-01-04T08:32:08.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- # # Copyright (c) 2020 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 # # Un...
28.704698
126
0.710545
5e196e123d149412ca34258ec0899a1f48904e7e
2,370
py
Python
dsgcn/get_cluster_det.py
daip13/LPC_train
d7c84da653dca1dc46623f3098dd2a71a4d6d4da
[ "Apache-2.0" ]
3
2021-03-19T07:12:20.000Z
2021-06-15T15:52:01.000Z
dsgcn/get_cluster_det.py
daip13/LPC_train
d7c84da653dca1dc46623f3098dd2a71a4d6d4da
[ "Apache-2.0" ]
null
null
null
dsgcn/get_cluster_det.py
daip13/LPC_train
d7c84da653dca1dc46623f3098dd2a71a4d6d4da
[ "Apache-2.0" ]
1
2021-11-22T05:29:28.000Z
2021-11-22T05:29:28.000Z
from __future__ import division import matplotlib matplotlib.use('Agg') import matplotlib.pyplot as plt import json import os import torch import numpy as np from mmcv.runner import load_checkpoint from mmcv.parallel import MMDataParallel from dsgcn.datasets import build_dataset, build_processor, build_dataloader ...
30.779221
95
0.613924
ebda960c4bccbd8eded7cd00b6651dc34243e06e
1,295
py
Python
src/cli_rack/__version__.py
corvis/cli-rack
f04ac4065d93cff59f7ba4c08671b2766c341244
[ "MIT" ]
null
null
null
src/cli_rack/__version__.py
corvis/cli-rack
f04ac4065d93cff59f7ba4c08671b2766c341244
[ "MIT" ]
null
null
null
src/cli_rack/__version__.py
corvis/cli-rack
f04ac4065d93cff59f7ba4c08671b2766c341244
[ "MIT" ]
null
null
null
# CLI Rack - Lightweight set of tools for building pretty-looking CLI applications in Python # Copyright (C) 2021 Dmitry Berezovsky # The MIT License (MIT) # # Permission is hereby granted, free of charge, to any person obtaining # a copy of this software and associated documentation files # (the "Sof...
51.8
95
0.742085
4aeafa6d0dde458148ced747e37ef88c31495e39
2,369
py
Python
application/visits/forms.py
Jhoneagle/TilastointiOhjelma
283178202fb1ddfe6d3875417274171b2a10c723
[ "Apache-2.0" ]
null
null
null
application/visits/forms.py
Jhoneagle/TilastointiOhjelma
283178202fb1ddfe6d3875417274171b2a10c723
[ "Apache-2.0" ]
2
2018-04-27T17:43:39.000Z
2018-12-10T09:31:35.000Z
application/visits/forms.py
Jhoneagle/TilastointiOhjelma
283178202fb1ddfe6d3875417274171b2a10c723
[ "Apache-2.0" ]
null
null
null
from flask_wtf import FlaskForm from wtforms import TextField, IntegerField, SelectField, SubmitField from wtforms import validators, ValidationError class VisitForm(FlaskForm): website = TextField("Nettisivun osoite",[validators.length(1, 1000, "Lisää osoite")]) websiteGroup = TextField("Nettisivun ryhmän nim...
84.607143
170
0.548333
33cf11bc3abf61ec9f52b442145908f56a6abc00
1,856
py
Python
api.py
joelsen/openweatherapi
91852364730ca864e5e60fdc5d7c3da4481c8c53
[ "MIT" ]
2
2022-02-08T06:26:45.000Z
2022-02-24T13:40:43.000Z
api.py
joelsen/weatherstats
91852364730ca864e5e60fdc5d7c3da4481c8c53
[ "MIT" ]
null
null
null
api.py
joelsen/weatherstats
91852364730ca864e5e60fdc5d7c3da4481c8c53
[ "MIT" ]
null
null
null
from board import SCL, SDA import busio from PIL import Image, ImageDraw, ImageFont import adafruit_ssd1306 import RPi.GPIO as GPIO import requests import pprint import time #insert your unique api key below response=requests.get("insert api key here") print("status code:",response.status_code) print() weather=respon...
23.2
81
0.695582
66585915d86cacd247c830c5014ca44c05da4593
40,291
py
Python
tests/test_edgeql_introspection.py
jankeromnes/edgedb
40ea3317fe5bfec76d7b46f7b706a4cb8a0d9f94
[ "Apache-2.0" ]
null
null
null
tests/test_edgeql_introspection.py
jankeromnes/edgedb
40ea3317fe5bfec76d7b46f7b706a4cb8a0d9f94
[ "Apache-2.0" ]
null
null
null
tests/test_edgeql_introspection.py
jankeromnes/edgedb
40ea3317fe5bfec76d7b46f7b706a4cb8a0d9f94
[ "Apache-2.0" ]
null
null
null
# # This source file is part of the EdgeDB open source project. # # Copyright 2016-present MagicStack Inc. and the EdgeDB 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...
31.976984
79
0.363903
1d4ad9dfa8912010848df6100e747e158faad803
554
py
Python
setup.py
Dominic-Stafford/mplhep
f0fe134142796f38bd5117762084c94d866314bf
[ "MIT" ]
null
null
null
setup.py
Dominic-Stafford/mplhep
f0fe134142796f38bd5117762084c94d866314bf
[ "MIT" ]
null
null
null
setup.py
Dominic-Stafford/mplhep
f0fe134142796f38bd5117762084c94d866314bf
[ "MIT" ]
null
null
null
from setuptools import setup extras_require = { "test": [ "pytest", "pytest-mpl", "papermill~=1.0", "nteract-scrapbook~=0.3", "uproot", "uproot4", "boost_histogram", "scikit-hep-testdata", ], "dev": ["flake8", "jupyter", "bumpvers...
21.307692
81
0.550542
fe61a047480f893a8d5374387c07f8af5494b096
4,544
py
Python
tools/demo.py
Sanjoykundu/Faster-RCNN_TF
b3a3b68f855dfedf21962dda72fe7016ffc974e9
[ "MIT" ]
null
null
null
tools/demo.py
Sanjoykundu/Faster-RCNN_TF
b3a3b68f855dfedf21962dda72fe7016ffc974e9
[ "MIT" ]
null
null
null
tools/demo.py
Sanjoykundu/Faster-RCNN_TF
b3a3b68f855dfedf21962dda72fe7016ffc974e9
[ "MIT" ]
null
null
null
import _init_paths import tensorflow as tf from fast_rcnn.config import cfg from fast_rcnn.test import im_detect from fast_rcnn.nms_wrapper import nms from utils.timer import Timer import matplotlib.pyplot as plt import numpy as np import os, sys, cv2 import argparse from networks.factory import get_network CLASSES =...
32.457143
95
0.570863
c0c39143df76fcaa5d8ddacc62c05b4dd0bca791
7,974
py
Python
msl/qt/notes_history.py
rebeccahawke/msl-qt
753ea28aa385a39a33827de2c229e9944a3b1cf3
[ "MIT" ]
null
null
null
msl/qt/notes_history.py
rebeccahawke/msl-qt
753ea28aa385a39a33827de2c229e9944a3b1cf3
[ "MIT" ]
null
null
null
msl/qt/notes_history.py
rebeccahawke/msl-qt
753ea28aa385a39a33827de2c229e9944a3b1cf3
[ "MIT" ]
null
null
null
""" A :class:`QtWidgets.QDialog` to prompt the user to enter notes. """ import os import json from datetime import datetime from . import application, QtWidgets, QtCore, QtGui from . import prompt, Button from .constants import HOME_DIR class NotesHistory(QtWidgets.QDialog): def __init__(self, parent, json_path...
37.613208
117
0.636569
dec2db1e5a5971b5159d6f652d626395f5e2f5ee
2,666
py
Python
blog/migrations/0010_auto_20200728_0540.py
tbrlpld/wagtail-gatsby-blog-backend
f68f1d9e2577d5271960f142bf37dcbcdac6767a
[ "MIT" ]
null
null
null
blog/migrations/0010_auto_20200728_0540.py
tbrlpld/wagtail-gatsby-blog-backend
f68f1d9e2577d5271960f142bf37dcbcdac6767a
[ "MIT" ]
null
null
null
blog/migrations/0010_auto_20200728_0540.py
tbrlpld/wagtail-gatsby-blog-backend
f68f1d9e2577d5271960f142bf37dcbcdac6767a
[ "MIT" ]
null
null
null
# Generated by Django 2.2.13 on 2020-07-28 05:40 from django.db import migrations import wagtail.core.blocks import wagtail.core.blocks.static_block import wagtail.core.fields import wagtail.documents.blocks import wagtail.embeds.blocks import wagtail.images.blocks class Migration(migrations.Migration): depende...
106.64
2,148
0.724306
0984e6cc82ad7f4c816741923fdfef2586325148
788
py
Python
ast/letstar.py
choleraehyq/yuujins
dff6f7def0081f24afac30a7c1e3ca6755a5ea3f
[ "MIT" ]
null
null
null
ast/letstar.py
choleraehyq/yuujins
dff6f7def0081f24afac30a7c1e3ca6755a5ea3f
[ "MIT" ]
null
null
null
ast/letstar.py
choleraehyq/yuujins
dff6f7def0081f24afac30a7c1e3ca6755a5ea3f
[ "MIT" ]
null
null
null
from typing import List from ast import Node, Name from scope import Scope from value import Value import binder class LetStar(Node): def __init__(self, patterns: List[Name], exprs: List[Node], body: Node) -> None: self.patterns: List[Name] = patterns self.exprs: List[Node] = exprs self.b...
32.833333
120
0.611675
c7e7de9628ddca40a8ddad64c971d7f030ada526
358
py
Python
Video Super Resolution/AddAudioToFinalVideoFile.py
siddharthksah/Computer-Vision
05471bf28e8b16fe6ba66939d399173df8f4f96c
[ "MIT" ]
null
null
null
Video Super Resolution/AddAudioToFinalVideoFile.py
siddharthksah/Computer-Vision
05471bf28e8b16fe6ba66939d399173df8f4f96c
[ "MIT" ]
null
null
null
Video Super Resolution/AddAudioToFinalVideoFile.py
siddharthksah/Computer-Vision
05471bf28e8b16fe6ba66939d399173df8f4f96c
[ "MIT" ]
null
null
null
def combine_audio(vidname, audname, outname, fps=30): import moviepy.editor as mpe my_clip = mpe.VideoFileClip(vidname) audio_background = mpe.AudioFileClip(audname) final_clip = my_clip.set_audio(audio_background) final_clip.write_videofile(outname,fps=fps) combine_audio("video_without_audio.mp4",...
39.777778
77
0.773743
a9008f8235d55a2043d47f7295077e64ffa75435
1,557
py
Python
venv/Lib/site-packages/wcwidth/__init__.py
gilbertekalea/booking.com_crawler
71e52c87cd72a77f80a3e5fc0af0e1a68a5712ae
[ "MIT" ]
6,989
2017-07-18T06:23:18.000Z
2022-03-31T15:58:36.000Z
venv/Lib/site-packages/wcwidth/__init__.py
gilbertekalea/booking.com_crawler
71e52c87cd72a77f80a3e5fc0af0e1a68a5712ae
[ "MIT" ]
1,978
2017-07-18T09:17:58.000Z
2022-03-31T14:28:43.000Z
venv/Lib/site-packages/wcwidth/__init__.py
gilbertekalea/booking.com_crawler
71e52c87cd72a77f80a3e5fc0af0e1a68a5712ae
[ "MIT" ]
1,228
2017-07-18T09:03:13.000Z
2022-03-29T05:57:40.000Z
""" wcwidth module. https://github.com/jquast/wcwidth """ # re-export all functions & definitions, even private ones, from top-level # module path, to allow for 'from wcwidth import _private_func'. Of course, # user beware that any _private function may disappear or change signature at # any future version. # local ...
40.973684
80
0.696853
f61ca0f7045ebfaa4bc938ec621876e6c855851b
336
py
Python
src/lib/reportlab/lib/__init__.py
tschalch/pyTray
ab26c7d4618c16f1ef6df45f7c8bae81f08f855b
[ "BSD-3-Clause" ]
1
2018-06-15T09:42:22.000Z
2018-06-15T09:42:22.000Z
src/lib/reportlab/lib/__init__.py
tschalch/pyTray
ab26c7d4618c16f1ef6df45f7c8bae81f08f855b
[ "BSD-3-Clause" ]
null
null
null
src/lib/reportlab/lib/__init__.py
tschalch/pyTray
ab26c7d4618c16f1ef6df45f7c8bae81f08f855b
[ "BSD-3-Clause" ]
null
null
null
#!/bin/env python #Copyright ReportLab Europe Ltd. 2000-2004 #see license.txt for license details #history http://www.reportlab.co.uk/cgi-bin/viewcvs.cgi/public/reportlab/trunk/reportlab/lib/__init__.py __version__=''' $Id: __init__.py,v 1.1 2006/05/26 19:19:43 thomas Exp $ ''' import os RL_DEBUG = os.environ.has...
48
105
0.747024
97acb7d83564a12881ff3045a98777e059bf67f7
4,276
py
Python
seqlabel/serializers.py
yasufumy/seqlabel
6189d849a55980d99df436a88ce7a1a5fcb74671
[ "MIT" ]
4
2021-10-04T12:59:41.000Z
2022-03-31T07:03:09.000Z
seqlabel/serializers.py
yasufumy/seqlabel
6189d849a55980d99df436a88ce7a1a5fcb74671
[ "MIT" ]
null
null
null
seqlabel/serializers.py
yasufumy/seqlabel
6189d849a55980d99df436a88ce7a1a5fcb74671
[ "MIT" ]
null
null
null
import json from abc import abstractmethod from typing import List from .core import Entity, StringSequence class Serializer: """Base class of all serializers.""" @abstractmethod def save(self, text: StringSequence, entities: List[Entity]) -> str: pass class JSONLSerializer(Serializer): ""...
30.112676
104
0.546071
d20f9bdb7bcfc473e1c38a42d4d3351c20dd73cc
24,840
py
Python
core/process.py
jyn514/oil
42adba6a1668ff30c6312a6ce3c3d1f1acd529ec
[ "Apache-2.0" ]
null
null
null
core/process.py
jyn514/oil
42adba6a1668ff30c6312a6ce3c3d1f1acd529ec
[ "Apache-2.0" ]
null
null
null
core/process.py
jyn514/oil
42adba6a1668ff30c6312a6ce3c3d1f1acd529ec
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # Copyright 2016 Andy Chu. 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 """ process.py - Launch pr...
28.650519
105
0.627093
9e7f5f6749fb23c29b390155e7a81f9b6396cb28
6,795
py
Python
transformerlm/trainer.py
hongyuanmei/transformer-lm
66e3e9e4a2fee7d2caa32e445f7652519a17a310
[ "MIT" ]
null
null
null
transformerlm/trainer.py
hongyuanmei/transformer-lm
66e3e9e4a2fee7d2caa32e445f7652519a17a310
[ "MIT" ]
null
null
null
transformerlm/trainer.py
hongyuanmei/transformer-lm
66e3e9e4a2fee7d2caa32e445f7652519a17a310
[ "MIT" ]
null
null
null
import os import copy import pickle from tqdm import tqdm, trange from collections import defaultdict, OrderedDict import numpy as np import torch from utils import data_cuda import gc class Trainer: def __init__(self, *, args=None, logger=None, logfolder=None, model=None, loss=None, optimizer=None, ...
37.75
106
0.49713