hexsha
stringlengths
40
40
size
int64
6
1.04M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
4
247
max_stars_repo_name
stringlengths
4
130
max_stars_repo_head_hexsha
stringlengths
40
78
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
368k
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
247
max_issues_repo_name
stringlengths
4
130
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
116k
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
247
max_forks_repo_name
stringlengths
4
130
max_forks_repo_head_hexsha
stringlengths
40
78
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
105k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
1
1.04M
avg_line_length
float64
1.53
618k
max_line_length
int64
1
1.02M
alphanum_fraction
float64
0
1
original_content
stringlengths
6
1.04M
filtered:remove_non_ascii
int64
0
538k
filtered:remove_decorators
int64
0
917k
filtered:remove_async
int64
0
722k
filtered:remove_classes
int64
-45
1M
filtered:remove_generators
int64
0
814k
filtered:remove_function_no_docstring
int64
-102
850k
filtered:remove_class_no_docstring
int64
-3
5.46k
filtered:remove_unused_imports
int64
-1,350
52.4k
filtered:remove_delete_markers
int64
0
59.6k
60d2134f1b978a5ccd35690d147a761894f25efe
19,494
py
Python
easyocr/easyocr.py
ghandic/EasyOCR
f96bea526e7208e4630a18698c18d0223e2a1168
[ "Apache-2.0" ]
1
2021-07-19T03:17:50.000Z
2021-07-19T03:17:50.000Z
easyocr/easyocr.py
ghandic/EasyOCR
f96bea526e7208e4630a18698c18d0223e2a1168
[ "Apache-2.0" ]
null
null
null
easyocr/easyocr.py
ghandic/EasyOCR
f96bea526e7208e4630a18698c18d0223e2a1168
[ "Apache-2.0" ]
1
2020-10-24T11:40:29.000Z
2020-10-24T11:40:29.000Z
# -*- coding: utf-8 -*- import sys from logging import getLogger if sys.version_info[0] == 2: from six.moves.urllib.request import urlretrieve from pathlib2 import Path else: LOGGER = getLogger(__name__)
46.194313
123
0.601005
# -*- coding: utf-8 -*- import os import sys from logging import getLogger from typing import Any, List, Tuple import cv2 import numpy as np import torch from bidi.algorithm import get_display from .detection import get_detector, get_textbox from .imgproc import loadImage from .recognition import get_recognizer, get...
1,008
0
0
18,354
0
0
0
158
346
b9ade0befeaaf199c9e1afc1d7f76c7fb111996b
740
py
Python
src/proxies/images.py
otanadzetsotne/nn-image-similarity
8a00c30359e56c4a229942b4b2df6265fa2856a7
[ "MIT" ]
null
null
null
src/proxies/images.py
otanadzetsotne/nn-image-similarity
8a00c30359e56c4a229942b4b2df6265fa2856a7
[ "MIT" ]
null
null
null
src/proxies/images.py
otanadzetsotne/nn-image-similarity
8a00c30359e56c4a229942b4b2df6265fa2856a7
[ "MIT" ]
null
null
null
# local
20.555556
50
0.601351
# local from src.utils.images import ImagesHelper from src.dtypes import ImagesInner class ProxyImages: @staticmethod def filter_correct( images: ImagesInner, ) -> ImagesInner: """ Filter images and return just corrects """ return ImagesHelper.filter_correct(im...
0
554
0
-3
0
0
0
33
147
22afb31fa0ba4539038dbf716afbd984f54b90ca
6,054
py
Python
code/src/main/python/misconceptions/rUtils/functions.py
DynamicCodeSearch/CodeSeer
ee985ece7691691585952eb88565f0e08bdc9113
[ "MIT" ]
5
2020-04-05T18:04:13.000Z
2021-04-13T20:34:19.000Z
code/src/main/python/misconceptions/rUtils/functions.py
DynamicCodeSearch/CodeSeer
ee985ece7691691585952eb88565f0e08bdc9113
[ "MIT" ]
1
2020-04-29T21:42:26.000Z
2020-05-01T23:45:45.000Z
code/src/main/python/misconceptions/rUtils/functions.py
DynamicCodeSearch/CodeSeer
ee985ece7691691585952eb88565f0e08bdc9113
[ "MIT" ]
3
2020-01-27T16:02:14.000Z
2021-02-08T13:25:15.000Z
import sys import os sys.path.append(os.path.abspath(".")) sys.dont_write_bytecode = True __author__ = "bigfatnoob" import rpy2.robjects as robjects from rpy2 import rinterface from rpy2.robjects import pandas2ri pandas2ri.activate() rinterface.set_writeconsole_warnerror(None) rinterface.set_writeconsole_regular(N...
28.422535
107
0.743971
import sys import os sys.path.append(os.path.abspath(".")) sys.dont_write_bytecode = True __author__ = "bigfatnoob" import copy import signal import time import re import rpy2 import rpy2.robjects as robjects from rpy2 import rinterface from rpy2.robjects import pandas2ri from rpy2.robjects.functions import Signatu...
0
0
0
0
0
4,737
0
100
657
a65d3f0e19e9c311490bb7bc77d8eea9559cd262
339
py
Python
bot/plugins/joke.py
Preocts/twitch-chat-bot
50341c30d8eada4b50634c8f25a9eb0eed681735
[ "MIT" ]
62
2019-11-16T22:07:42.000Z
2022-03-08T20:50:01.000Z
bot/plugins/joke.py
Preocts/twitch-chat-bot
50341c30d8eada4b50634c8f25a9eb0eed681735
[ "MIT" ]
30
2019-03-19T15:05:55.000Z
2022-03-24T05:00:53.000Z
bot/plugins/joke.py
Preocts/twitch-chat-bot
50341c30d8eada4b50634c8f25a9eb0eed681735
[ "MIT" ]
56
2019-06-08T20:34:31.000Z
2022-02-21T20:10:38.000Z
from __future__ import annotations
21.1875
61
0.764012
from __future__ import annotations from typing import Match import pyjokes from bot.config import Config from bot.data import command from bot.data import esc from bot.data import format_msg @command('!joke', '!yoke') async def cmd_joke(config: Config, match: Match[str]) -> str: return format_msg(match, esc(py...
0
121
0
0
0
0
0
24
158
b10aa05fe838d0b0b31227f058840a4db0cf7599
11,594
py
Python
ngskit/trim_reads.py
kim-lab/NGSKit
62f609111ba59b9d7d87dc9979a9a2c57959e297
[ "MIT" ]
1
2021-12-10T22:23:50.000Z
2021-12-10T22:23:50.000Z
ngskit/trim_reads.py
kimlaborg/NGSKit
62f609111ba59b9d7d87dc9979a9a2c57959e297
[ "MIT" ]
null
null
null
ngskit/trim_reads.py
kimlaborg/NGSKit
62f609111ba59b9d7d87dc9979a9a2c57959e297
[ "MIT" ]
null
null
null
#!/usr/bin/env python import os import sys import logging import argparse import time import ngskit.barcodes as barcodes from ngskit.utils import fasta_tools, fastq_tools #import barcodes #from utils import fasta_tools, fastq_tools def trimming(demultiplexed_fastq, barcode, quality_threshold, trgt_len, ...
35.894737
163
0.582456
#!/usr/bin/env python import os import sys import logging import argparse import time import ngskit.barcodes as barcodes from ngskit.utils import fasta_tools, fastq_tools #import barcodes #from utils import fasta_tools, fastq_tools def create_folder(output_folder): # Create output folder logger = logging.get...
0
0
0
0
0
592
0
0
46
feade5496f17453a160a194c258f2778a56f8b61
75
py
Python
checkov/yaml_doc/registry.py
pmalkki/checkov
b6cdf386dd976fe27c16fed6d550756a678a5d7b
[ "Apache-2.0" ]
null
null
null
checkov/yaml_doc/registry.py
pmalkki/checkov
b6cdf386dd976fe27c16fed6d550756a678a5d7b
[ "Apache-2.0" ]
null
null
null
checkov/yaml_doc/registry.py
pmalkki/checkov
b6cdf386dd976fe27c16fed6d550756a678a5d7b
[ "Apache-2.0" ]
null
null
null
from checkov.yaml_doc.base_registry import Registry registry = Registry()
18.75
51
0.826667
from checkov.yaml_doc.base_registry import Registry registry = Registry()
0
0
0
0
0
0
0
0
0
223e2dd85d17fc5cef76030696a77e0b1f297257
497
py
Python
api/v1/internal.py
anthill-gaming/game_controller
849ea700263d7724d7a66907e0961956940e6c64
[ "MIT" ]
null
null
null
api/v1/internal.py
anthill-gaming/game_controller
849ea700263d7724d7a66907e0961956940e6c64
[ "MIT" ]
null
null
null
api/v1/internal.py
anthill-gaming/game_controller
849ea700263d7724d7a66907e0961956940e6c64
[ "MIT" ]
null
null
null
""" Internal api methods for current service. Example: from anthill.platform.api.internal import as_internal, InternalAPI @as_internal() async def your_internal_api_method(api: InternalAPI, *params, **options): # current_service = api.service ... """
20.708333
77
0.714286
""" Internal api methods for current service. Example: from anthill.platform.api.internal import as_internal, InternalAPI @as_internal() async def your_internal_api_method(api: InternalAPI, *params, **options): # current_service = api.service ... """ from anthill.platform.api.internal imp...
0
100
0
0
0
0
0
45
68
4842a357559df39c5885b5a0a2d27b724cb94ce7
12,748
py
Python
tf-model-manip.py
PeiqinSun/tf-tutorials
4d3a9560bce018989e62e9146d63e8fe16eaed91
[ "Apache-2.0" ]
184
2019-02-25T09:03:30.000Z
2020-05-20T12:30:00.000Z
tf-model-manip.py
megvii-research/tf-tutorials
4d3a9560bce018989e62e9146d63e8fe16eaed91
[ "Apache-2.0" ]
73
2019-02-28T02:51:14.000Z
2020-04-08T10:48:07.000Z
tf-model-manip.py
PeiqinSun/tf-tutorials
4d3a9560bce018989e62e9146d63e8fe16eaed91
[ "Apache-2.0" ]
103
2019-02-28T09:05:21.000Z
2020-05-18T13:22:10.000Z
#!/usr/bin/env mdl # -*- coding: utf-8 -*- # ======================================= # File Name : # Purpose : # Creation Date : # Last Modified : # Created By : sunpeiqin # ======================================= import os import sys import argparse import magic import keyword import importlib def import_python_sou...
34.361186
122
0.547145
#!/usr/bin/env mdl # -*- coding: utf-8 -*- # ======================================= # File Name : # Purpose : # Creation Date : # Last Modified : # Created By : sunpeiqin # ======================================= import os import sys import argparse import magic import keyword import importlib import collections impo...
0
6,922
0
-4
0
1,792
0
-22
341
d607417a565fc6e36134e72eef7edfbbfe35876d
3,985
py
Python
preprocessing.py
pedrada88/rwe
a3462556a70bd4a51d2978cadc6101e22723356a
[ "BSD-Source-Code" ]
15
2019-06-05T21:24:42.000Z
2021-01-04T00:30:29.000Z
preprocessing.py
pedrada88/rwe
a3462556a70bd4a51d2978cadc6101e22723356a
[ "BSD-Source-Code" ]
null
null
null
preprocessing.py
pedrada88/rwe
a3462556a70bd4a51d2978cadc6101e22723356a
[ "BSD-Source-Code" ]
1
2022-01-29T16:23:03.000Z
2022-01-29T16:23:03.000Z
# -*- coding: utf-8 -*- #Load embedding vocabulary #Load embedding vocabulary #Load embeddings filtered by pre-given vocabulary #Load embedding matrices input/output #Split training and development data
38.68932
108
0.673275
# -*- coding: utf-8 -*- import numpy as np import random #Load embedding vocabulary def load_vocab_embeddings(input_path): first_line=True vocab=set() input_file_relations=open(input_file_relations, 'r', encoding='utf-8') for line in input_file_relations: if first_line==True: first_...
0
0
0
0
0
3,633
0
-11
154
89b0c8a21bc6d8dd82ceda3dad99a30e2b867960
4,219
py
Python
research/carls/candidate_sampling/candidate_sampler_config_builder_test.py
srihari-humbarwadi/neural-structured-learning
345b8d644dd7745179263bf6dc9aeb8a921528f4
[ "Apache-2.0" ]
939
2019-08-28T06:50:30.000Z
2022-03-30T02:37:07.000Z
research/carls/candidate_sampling/candidate_sampler_config_builder_test.py
srihari-humbarwadi/neural-structured-learning
345b8d644dd7745179263bf6dc9aeb8a921528f4
[ "Apache-2.0" ]
80
2019-09-01T19:47:30.000Z
2022-02-02T20:38:38.000Z
research/carls/candidate_sampling/candidate_sampler_config_builder_test.py
srihari-humbarwadi/neural-structured-learning
345b8d644dd7745179263bf6dc9aeb8a921528f4
[ "Apache-2.0" ]
196
2019-09-01T19:38:53.000Z
2022-02-08T01:25:57.000Z
# Copyright 2020 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, ...
34.024194
99
0.71178
# Copyright 2020 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, ...
0
0
0
3,306
0
0
0
148
68
3089c603282eb0dd2e940a59b5b3d380394bef44
4,460
py
Python
experiments/tuning/tune_came.py
antoineBarbez/Project
8fa42b5198d03b5b142f413e218b7d7a2d994fc9
[ "MIT" ]
4
2019-09-30T19:47:42.000Z
2020-02-13T18:46:32.000Z
experiments/tuning/tune_came.py
antoineBarbez/CAME
8fa42b5198d03b5b142f413e218b7d7a2d994fc9
[ "MIT" ]
null
null
null
experiments/tuning/tune_came.py
antoineBarbez/CAME
8fa42b5198d03b5b142f413e218b7d7a2d994fc9
[ "MIT" ]
null
null
null
from context import ROOT_DIR, nnUtils, train_came, came import tensorflow as tf import numpy as np import os import progressbar os.environ['TF_CPP_MIN_LOG_LEVEL']='2' if __name__ == "__main__": args = parse_args() data_x, data_y = train_came.build_dataset(train_came.training_systems, args.antipa...
33.533835
148
0.717937
from context import ROOT_DIR, nnUtils, train_came, came import tensorflow as tf import numpy as np import argparse import os import progressbar import random os.environ['TF_CPP_MIN_LOG_LEVEL']='2' def parse_args(): parser = argparse.ArgumentParser() parser.add_argument("antipattern", help="eithe...
0
0
0
0
0
2,067
0
-14
137
35765a3f52057a1d8c00d42bc632985e8ea22e07
4,364
py
Python
confluent_server/confluent/discovery/handlers/imm.py
brianfinley/confluent
6458eac93b1e3c6d45e26a7ddb434d692b5cdff2
[ "Apache-2.0" ]
27
2015-02-11T13:56:46.000Z
2021-12-28T14:17:20.000Z
confluent_server/confluent/discovery/handlers/imm.py
brianfinley/confluent
6458eac93b1e3c6d45e26a7ddb434d692b5cdff2
[ "Apache-2.0" ]
32
2015-09-23T13:19:04.000Z
2022-03-15T13:50:45.000Z
confluent_server/confluent/discovery/handlers/imm.py
brianfinley/confluent
6458eac93b1e3c6d45e26a7ddb434d692b5cdff2
[ "Apache-2.0" ]
24
2015-07-14T20:41:55.000Z
2021-07-15T04:18:51.000Z
# Copyright 2017 Lenovo # # 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, softw...
38.964286
77
0.552704
# Copyright 2017 Lenovo # # 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, softw...
0
189
0
3,390
0
0
0
50
134
c2c0dc95899f6f8dad0a7096d7c04088b895f8b1
363
py
Python
alembic/versions/0367b739bb81_add_country_code_to_table.py
danieliheonu/bigfastapi
483554776195c9f38bb46ba719b613360eda1028
[ "MIT" ]
1
2022-03-20T21:46:05.000Z
2022-03-20T21:46:05.000Z
alembic/versions/0367b739bb81_add_country_code_to_table.py
danieliheonu/bigfastapi
483554776195c9f38bb46ba719b613360eda1028
[ "MIT" ]
null
null
null
alembic/versions/0367b739bb81_add_country_code_to_table.py
danieliheonu/bigfastapi
483554776195c9f38bb46ba719b613360eda1028
[ "MIT" ]
null
null
null
"""add country code to table Revision ID: 0367b739bb81 Revises: 1e09924c1938 Create Date: 2022-01-27 16:10:57.297020 """ # revision identifiers, used by Alembic. revision = '0367b739bb81' down_revision = '1e09924c1938' branch_labels = None depends_on = None
14.52
40
0.741047
"""add country code to table Revision ID: 0367b739bb81 Revises: 1e09924c1938 Create Date: 2022-01-27 16:10:57.297020 """ from alembic import op import sqlalchemy as sa # revision identifiers, used by Alembic. revision = '0367b739bb81' down_revision = '1e09924c1938' branch_labels = None depends_on = None def upgra...
0
0
0
0
0
6
0
3
90
9c35a421d2475f3566cf629c7b74b3188447fc25
152
py
Python
scripts/visualize_dataset.py
birlrobotics/smach_based_introspection_framework
f16742339cddfc86effba4dbf6e5062304704b89
[ "BSD-3-Clause" ]
7
2018-02-23T13:02:13.000Z
2020-07-28T18:27:47.000Z
scripts/visualize_dataset.py
birlrobotics/smach_based_introspection_framework
f16742339cddfc86effba4dbf6e5062304704b89
[ "BSD-3-Clause" ]
null
null
null
scripts/visualize_dataset.py
birlrobotics/smach_based_introspection_framework
f16742339cddfc86effba4dbf6e5062304704b89
[ "BSD-3-Clause" ]
1
2019-06-24T09:20:06.000Z
2019-06-24T09:20:06.000Z
#!/usr/bin/env python import smach_based_introspection_framework.offline_part.visualize_dataset as m if __name__ == "__main__": m.run()
19
78
0.776316
#!/usr/bin/env python import os import smach_based_introspection_framework.offline_part.visualize_dataset as m if __name__ == "__main__": m.run()
0
0
0
0
0
0
0
-12
23
489726ea2da03626c5a2318798d31acaac09e9b1
12,261
py
Python
packages/weevely/modules/net/proxy.py
ZooAtmosphereGroup/HelloPackages
0ccffd33bf927b13d28c8f715ed35004c33465d9
[ "Apache-2.0" ]
null
null
null
packages/weevely/modules/net/proxy.py
ZooAtmosphereGroup/HelloPackages
0ccffd33bf927b13d28c8f715ed35004c33465d9
[ "Apache-2.0" ]
null
null
null
packages/weevely/modules/net/proxy.py
ZooAtmosphereGroup/HelloPackages
0ccffd33bf927b13d28c8f715ed35004c33465d9
[ "Apache-2.0" ]
null
null
null
from core.config import base_path from http.server import HTTPServer, BaseHTTPRequestHandler from socketserver import ThreadingMixIn import threading import re import os import threading import re from tempfile import mkdtemp re_valid_ip = re.compile( "^(([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\.){3}([0-9]...
32.350923
119
0.575402
from core.loggers import log, dlog from core import messages from core.vectors import ModuleExec from core.module import Module from core.config import base_path from http.server import HTTPServer, BaseHTTPRequestHandler from tempfile import gettempdir from socketserver import ThreadingMixIn from urllib.parse import ur...
0
0
0
9,527
0
1,233
0
123
623
e5d6df24af9bac17d018ee4f885d2b0a7d316e52
4,965
py
Python
course_grader/views/api/submitted_graderoster.py
uw-it-aca/gradepage
7059d715cc112ad0ecb0e5012f716e525ee7b3bc
[ "Apache-2.0" ]
1
2017-01-29T09:52:06.000Z
2017-01-29T09:52:06.000Z
course_grader/views/api/submitted_graderoster.py
uw-it-aca/gradepage
7059d715cc112ad0ecb0e5012f716e525ee7b3bc
[ "Apache-2.0" ]
287
2017-03-09T00:17:20.000Z
2022-01-08T00:36:34.000Z
course_grader/views/api/submitted_graderoster.py
uw-it-aca/gradepage
7059d715cc112ad0ecb0e5012f716e525ee7b3bc
[ "Apache-2.0" ]
null
null
null
# Copyright 2021 UW-IT, University of Washington # SPDX-License-Identifier: Apache-2.0 from logging import getLogger logger = getLogger(__name__)
35.978261
76
0.627593
# Copyright 2021 UW-IT, University of Washington # SPDX-License-Identifier: Apache-2.0 from django.conf import settings from django.http import HttpResponse from django.views.decorators.cache import never_cache from django.utils.decorators import method_decorator from uw_saml.decorators import group_required from cour...
0
4,129
0
0
0
0
0
354
333
72cac8fb30a2e307bde5d70d65c30b41c1787dec
1,235
py
Python
pipeline/boto_helpers.py
DMS-medical-informatics/beiwe-backend
55afe3a16e1c9b34501f3655288b5c19c663a083
[ "BSD-3-Clause" ]
null
null
null
pipeline/boto_helpers.py
DMS-medical-informatics/beiwe-backend
55afe3a16e1c9b34501f3655288b5c19c663a083
[ "BSD-3-Clause" ]
null
null
null
pipeline/boto_helpers.py
DMS-medical-informatics/beiwe-backend
55afe3a16e1c9b34501f3655288b5c19c663a083
[ "BSD-3-Clause" ]
null
null
null
# This is all cribbed from the django branch's cluster_management/deployment_helpers folder # TODO once the branches are merged, use that code and NOT this code
29.404762
99
0.728745
import json import os.path import subprocess import boto3 # This is all cribbed from the django branch's cluster_management/deployment_helpers folder # TODO once the branches are merged, use that code and NOT this code def get_aws_object_names(): configs_folder = get_configs_folder() with open(o...
0
0
0
0
0
871
0
-30
219
e5e52448863aa3d2032ea0acf739006c4aeffca6
1,783
py
Python
WaltzControl/use_cases/tel_controller_boundarys.py
DaneSpaeth/WaltzControl_refactored
80aa3e28f1e0709bc7dd9472bc1d841e9b4da9e7
[ "MIT" ]
null
null
null
WaltzControl/use_cases/tel_controller_boundarys.py
DaneSpaeth/WaltzControl_refactored
80aa3e28f1e0709bc7dd9472bc1d841e9b4da9e7
[ "MIT" ]
null
null
null
WaltzControl/use_cases/tel_controller_boundarys.py
DaneSpaeth/WaltzControl_refactored
80aa3e28f1e0709bc7dd9472bc1d841e9b4da9e7
[ "MIT" ]
null
null
null
"""Boundarys for Responses from TelescopeController (TC) and Requests to TC. Data entry and exit point into use_cases layer. """
28.758065
80
0.574313
"""Boundarys for Responses from TelescopeController (TC) and Requests to TC. Data entry and exit point into use_cases layer. """ class TelescopeControllerResponseBoundary: """Contains Responses from TelescopeController Device. """ def __init__( self, ra_response = None, dec_respo...
0
0
0
1,601
0
0
0
0
50
2992c83e0ce52d8039899799790c8ae2a72523fc
3,505
py
Python
example_group_epochs.py
DraganaMana/mne_microstates
de3dc76e63e49fb4b61810bf737d4d5d11f5b2f0
[ "MIT" ]
1
2021-06-02T09:14:30.000Z
2021-06-02T09:14:30.000Z
example_group_epochs.py
DraganaMana/mne_microstates
de3dc76e63e49fb4b61810bf737d4d5d11f5b2f0
[ "MIT" ]
null
null
null
example_group_epochs.py
DraganaMana/mne_microstates
de3dc76e63e49fb4b61810bf737d4d5d11f5b2f0
[ "MIT" ]
1
2020-06-15T13:59:07.000Z
2020-06-15T13:59:07.000Z
# -*- coding: utf-8 -*- """ Created on Tue Feb 25 18:04:32 2020 @author: Dragana """ import mne import microstates as mst import numpy as np HC_RS_path = 'C:/Users/.../Documents/RS_EEG/' subj_folder = ['subj01', 'subj02', 'subj03', 'subj04', 'subj05'] # Parameteres setting up chan_to_drop = ['E67', 'E73', 'E247'...
36.510417
87
0.628531
# -*- coding: utf-8 -*- """ Created on Tue Feb 25 18:04:32 2020 @author: Dragana """ import mne import microstates as mst import numpy as np HC_RS_path = 'C:/Users/.../Documents/RS_EEG/' subj_folder = ['subj01', 'subj02', 'subj03', 'subj04', 'subj05'] # Parameteres setting up chan_to_drop = ['E67', 'E73', 'E247'...
0
0
0
0
0
0
0
0
0
d0c633f50b464b8e08988638cf34cd0815c70e55
1,142
py
Python
chunkymonkey/lib/base.py
shopzilla/chunky-monkey
2556055e87849e2a873a950a5e52429e516c8304
[ "Apache-2.0" ]
1
2016-10-24T15:16:26.000Z
2016-10-24T15:16:26.000Z
chunkymonkey/lib/base.py
shopzilla/chunky-monkey
2556055e87849e2a873a950a5e52429e516c8304
[ "Apache-2.0" ]
null
null
null
chunkymonkey/lib/base.py
shopzilla/chunky-monkey
2556055e87849e2a873a950a5e52429e516c8304
[ "Apache-2.0" ]
null
null
null
# # Copyright 2011 Shopzilla.com # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this 1 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...
36.83871
74
0.75394
# # Copyright 2011 Shopzilla.com # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this 1 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...
0
0
0
359
0
0
0
54
67
7d5cf31371d57d1d5e01bffec3ad52101c96988a
134,221
py
Python
carculator/inventory.py
SimonVoelker/carculator
e40d664c9b5612250cf9ad2c6fa2a199b0bf88c5
[ "BSD-3-Clause" ]
null
null
null
carculator/inventory.py
SimonVoelker/carculator
e40d664c9b5612250cf9ad2c6fa2a199b0bf88c5
[ "BSD-3-Clause" ]
null
null
null
carculator/inventory.py
SimonVoelker/carculator
e40d664c9b5612250cf9ad2c6fa2a199b0bf88c5
[ "BSD-3-Clause" ]
null
null
null
from . import DATA_DIR REMIND_FILES_DIR = DATA_DIR / "IAM"
36.793037
150
0.42471
from . import DATA_DIR import sys import glob from .background_systems import BackgroundSystemModel from .export import ExportInventory from inspect import currentframe, getframeinfo from pathlib import Path from scipy import sparse import csv import itertools import numexpr as ne import numpy as np import xarray as xr...
0
0
0
133,839
0
0
0
34
287
544162d5b108b9011d584715752e360c5e3a3bf6
4,955
py
Python
project/project/settings.py
gtrafimenkov/example-django-kubernetes
ddcf1d0b06152ca3615230be53cf9a5f837c09d9
[ "BSD-3-Clause" ]
null
null
null
project/project/settings.py
gtrafimenkov/example-django-kubernetes
ddcf1d0b06152ca3615230be53cf9a5f837c09d9
[ "BSD-3-Clause" ]
6
2021-02-02T22:59:52.000Z
2021-06-10T20:35:55.000Z
project/project/settings.py
gtrafimenkov/example-django-kubernetes
ddcf1d0b06152ca3615230be53cf9a5f837c09d9
[ "BSD-3-Clause" ]
null
null
null
# Django settings for gtd project. import os from django.contrib.messages import constants as message_constants DEBUG = get_debug_settings() BASE_DIR = os.path.dirname(os.path.dirname(__file__)) # Local time zone for this installation. Choices can be found here: # http://en.wikipedia.org/wiki/List_of_tz_zones_by_na...
32.81457
101
0.638143
# Django settings for gtd project. import os from django.contrib.messages import constants as message_constants def get_debug_settings(): return os.environ.get("DJANGO_DEBUG", "").lower() in ["true", "1", "yes", "y"] DEBUG = get_debug_settings() BASE_DIR = os.path.dirname(os.path.dirname(__file__)) # Local tim...
0
0
0
0
0
975
0
0
46
1f010d3368e8fe21a4c6b38d8a3a7ce2c8c7822f
964
py
Python
resources/search.py
DanielNery/api-list-mscs-genius
9febbbb4211ca86a210803981cb5968077d7de72
[ "MIT" ]
1
2021-11-20T22:09:23.000Z
2021-11-20T22:09:23.000Z
resources/search.py
DanielNery/api-list-mscs-genius
9febbbb4211ca86a210803981cb5968077d7de72
[ "MIT" ]
null
null
null
resources/search.py
DanielNery/api-list-mscs-genius
9febbbb4211ca86a210803981cb5968077d7de72
[ "MIT" ]
null
null
null
import os HEADER = { 'User-Agent': 'CompuServe Classic/1.22', 'Accept': 'application/json', 'Host': os.getenv("HOST"), 'Authorization': f'Bearer {os.getenv("ACESS_TOKEN")}' }
25.368421
85
0.607884
from flask_restful import Resource import requests import json import os import redis HEADER = { 'User-Agent': 'CompuServe Classic/1.22', 'Accept': 'application/json', 'Host': os.getenv("HOST"), 'Authorization': f'Bearer {os.getenv("ACESS_TOKEN")}' } class Search(Resource): """Recurso responsáve...
4
0
0
670
0
0
0
-12
112
7baca6067411cc1ecfa07468272839cd744972f8
441
py
Python
string/firstUniqueCharacterInAString.py
G-MontaG/leetcode
444e8ee3f395c191a86eae0e42d028060ecd1686
[ "MIT" ]
1
2021-02-10T18:14:55.000Z
2021-02-10T18:14:55.000Z
string/firstUniqueCharacterInAString.py
G-MontaG/leetcode
444e8ee3f395c191a86eae0e42d028060ecd1686
[ "MIT" ]
null
null
null
string/firstUniqueCharacterInAString.py
G-MontaG/leetcode
444e8ee3f395c191a86eae0e42d028060ecd1686
[ "MIT" ]
null
null
null
# https://leetcode.com/problems/first-unique-character-in-a-string/
27.5625
67
0.519274
# https://leetcode.com/problems/first-unique-character-in-a-string/ class Solution: def firstUniqChar(self, s: str) -> int: mapping = {} for index, char in enumerate(s): if char in mapping.keys(): mapping[char] = -1 else: mapping[char] = index ...
0
0
0
351
0
0
0
0
22
0cc5410e4e819af67fb7073f0bb5d856a89be207
453
py
Python
ktapp/migrations/0037_ktuser_fav_period.py
cu2/KT
8a0964b77dce150358637faa679d969a07e42f07
[ "CC-BY-3.0" ]
5
2015-04-13T09:44:31.000Z
2017-10-19T01:07:58.000Z
ktapp/migrations/0037_ktuser_fav_period.py
cu2/KT
8a0964b77dce150358637faa679d969a07e42f07
[ "CC-BY-3.0" ]
49
2015-02-15T07:12:05.000Z
2022-03-11T23:11:43.000Z
ktapp/migrations/0037_ktuser_fav_period.py
cu2/KT
8a0964b77dce150358637faa679d969a07e42f07
[ "CC-BY-3.0" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import unicode_literals
21.571429
74
0.602649
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import models, migrations class Migration(migrations.Migration): dependencies = [ ('ktapp', '0036_ktuser_bio'), ] operations = [ migrations.AddField( model_name='ktuser', name='fav_per...
0
0
0
323
0
0
0
19
46
45ca169aee71ee56ada82a211aa1e50134aad821
2,133
py
Python
mmtrack/datasets/youtube_vis_dataset.py
benxiao/mmtracking
4363a05659d5f26da97b9725075dcbb3b13f775f
[ "Apache-2.0" ]
1
2022-03-12T21:36:42.000Z
2022-03-12T21:36:42.000Z
mmtrack/datasets/youtube_vis_dataset.py
Readpistol/mmtracking
131b8fb7c632324f88c3240229e411e801380f2a
[ "Apache-2.0" ]
null
null
null
mmtrack/datasets/youtube_vis_dataset.py
Readpistol/mmtracking
131b8fb7c632324f88c3240229e411e801380f2a
[ "Apache-2.0" ]
null
null
null
# Copyright (c) OpenMMLab. All rights reserved.
48.477273
79
0.506329
# Copyright (c) OpenMMLab. All rights reserved. from mmdet.datasets import DATASETS from .coco_video_dataset import CocoVideoDataset @DATASETS.register_module() class YouTubeVISDataset(CocoVideoDataset): """YouTube VIS dataset for video instance segmentation.""" CLASSES_2019_version = ('person', 'giant_pand...
0
1,975
0
0
0
0
0
41
68
b26e7b4e1b789021e57269548d99674e7d9e0fb6
2,198
py
Python
easyDiffractionApp/Logic/DisplayModels/StatusModel.py
rozyczko/easyDiffractionApp
6b088e3cb19f943e6eee0e86c3c23515b7c6a084
[ "BSD-3-Clause" ]
1
2021-05-25T15:26:44.000Z
2021-05-25T15:26:44.000Z
easyDiffractionApp/Logic/DisplayModels/StatusModel.py
rozyczko/easyDiffractionApp
6b088e3cb19f943e6eee0e86c3c23515b7c6a084
[ "BSD-3-Clause" ]
138
2021-02-12T07:59:04.000Z
2022-03-26T12:07:19.000Z
easyDiffractionApp/Logic/DisplayModels/StatusModel.py
rozyczko/easyDiffractionApp
6b088e3cb19f943e6eee0e86c3c23515b7c6a084
[ "BSD-3-Clause" ]
3
2021-05-07T07:08:25.000Z
2021-11-02T09:53:26.000Z
# SPDX-FileCopyrightText: 2021 easyDiffraction contributors <support@easydiffraction.org> # SPDX-License-Identifier: BSD-3-Clause # 2021 Contributors to the easyDiffraction project <https://github.com/easyScience/easyDiffractionApp> __author__ = 'github.com/andrewsazonov' __version__ = '0.0.1'
27.475
104
0.641492
# SPDX-FileCopyrightText: 2021 easyDiffraction contributors <support@easydiffraction.org> # SPDX-License-Identifier: BSD-3-Clause # © 2021 Contributors to the easyDiffraction project <https://github.com/easyScience/easyDiffractionApp> __author__ = 'github.com/andrewsazonov' __version__ = '0.0.1' from random import ra...
2
0
0
1,751
0
0
0
33
114
41c794a5523ae6175185d6430eee0502fa65573d
1,349
py
Python
run.py
iustce/cesa-web
8b6b1fd8a66277b7319fdbf327e19948cc56917d
[ "MIT" ]
1
2018-10-13T19:48:05.000Z
2018-10-13T19:48:05.000Z
run.py
iustce/cesa-web
8b6b1fd8a66277b7319fdbf327e19948cc56917d
[ "MIT" ]
null
null
null
run.py
iustce/cesa-web
8b6b1fd8a66277b7319fdbf327e19948cc56917d
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # python imports import os import subprocess import sys, traceback from flask.ext.migrate import MigrateCommand from flask.ext.script import Manager from database import manager as database_manager try: from project import app from project.application import configure_app from proj...
24.981481
111
0.731653
# -*- coding: utf-8 -*- # python imports import os import subprocess import sys, traceback from flask.ext.migrate import MigrateCommand from flask.ext.script import Manager from database import manager as database_manager try: from project import app from project.application import configure_app from proj...
0
454
0
0
0
0
0
0
92
3622ebf53eb605a0ad50e3ba80cbe1fe001d8264
11,174
py
Python
docs/model.py
DLR-SC/gitlab2prov
0a548cf85121faa63ef9abbbf0d43aa4e0bc3d57
[ "MIT" ]
13
2019-10-14T19:28:04.000Z
2022-03-24T09:46:50.000Z
docs/model.py
DLR-SC/gitlab2prov
0a548cf85121faa63ef9abbbf0d43aa4e0bc3d57
[ "MIT" ]
50
2019-10-15T09:05:09.000Z
2022-03-28T10:51:22.000Z
docs/model.py
DLR-SC/gitlab2prov
0a548cf85121faa63ef9abbbf0d43aa4e0bc3d57
[ "MIT" ]
2
2020-05-16T15:40:04.000Z
2021-09-14T12:08:19.000Z
"""PROV model fpr GitLab2PROV.""" __author__ = "Claas de Boer, Andreas Schreiber, Lynn von Kurnatowski" __copyright__ = "Copyright 2020, German Aerospace Center (DLR) and individual contributors" __license__ = "MIT" __version__ = "0.5" __status__ = "Development" from prov.model import ProvDocument from prov.dot impo...
61.060109
264
0.707625
"""PROV model fpr GitLab2PROV.""" __author__ = "Claas de Boer, Andreas Schreiber, Lynn von Kurnatowski" __copyright__ = "Copyright 2020, German Aerospace Center (DLR) and individual contributors" __license__ = "MIT" __version__ = "0.5" __status__ = "Development" from prov.model import ProvDocument from prov.constant...
0
0
0
0
0
0
0
16
22
f495910cbad974850a149f592f1022624205f1c7
9,479
py
Python
scripts/go_stats_utils.py
kltm/go-site
fe6797ed1291bd0d12df83b7c9d670c91a0fb526
[ "BSD-3-Clause" ]
31
2016-11-01T13:11:43.000Z
2022-02-28T05:05:16.000Z
scripts/go_stats_utils.py
kltm/go-site
fe6797ed1291bd0d12df83b7c9d670c91a0fb526
[ "BSD-3-Clause" ]
1,172
2015-01-29T23:47:53.000Z
2022-03-30T05:22:01.000Z
scripts/go_stats_utils.py
kltm/go-site
fe6797ed1291bd0d12df83b7c9d670c91a0fb526
[ "BSD-3-Clause" ]
92
2015-02-11T03:10:55.000Z
2022-03-01T08:16:02.000Z
# This is a hard coded list of evidence, better organized for readability ev_all = ['EXP', 'IDA', 'IMP', 'IGI', 'IPI', 'IEP', 'IGC', 'RCA', 'IBA', 'IKR', 'IC', 'NAS', 'ND', 'TAS', 'HDA', 'HEP', 'HGI', 'HMP', 'ISA', 'ISM', 'ISO', 'ISS', 'IEA'] # This is a hard coded list of reference genomes that should always be pr...
31.387417
169
0.606815
import json import requests from requests.adapters import HTTPAdapter from urllib3.util.retry import Retry from enum import Enum # This is a hard coded list of evidence, better organized for readability ev_all = ['EXP', 'IDA', 'IMP', 'IGI', 'IPI', 'IEP', 'IGC', 'RCA', 'IBA', 'IKR', 'IC', 'NAS', 'ND', 'TAS', 'HDA', 'H...
0
0
0
101
0
5,663
0
19
627
841c91691e5e3f9f8e364f9c80db23924bcbaafd
102
py
Python
notebooks/exercise_solutions/n00_python_intro_data-structures.py
pydy/pydy-tutorial-human-standing
72b1d8513e339e9b10e501bd3490caa3fa997bc4
[ "CC-BY-4.0" ]
134
2015-05-19T15:24:18.000Z
2022-03-12T09:39:03.000Z
notebooks/exercise_solutions/n00_python_intro_data-structures.py
pydy/pydy-tutorial-human-standing
72b1d8513e339e9b10e501bd3490caa3fa997bc4
[ "CC-BY-4.0" ]
46
2015-05-05T18:08:20.000Z
2022-01-28T11:12:42.000Z
notebooks/exercise_solutions/n00_python_intro_data-structures.py
pydy/pydy-tutorial-pycon-2014
72b1d8513e339e9b10e501bd3490caa3fa997bc4
[ "CC-BY-4.0" ]
62
2015-06-16T01:50:51.000Z
2022-02-26T07:39:41.000Z
num_list = [1,2,3,4] months = ['Jan', 'Feb', 'Mar', 'Apr'] months_dict = dict(zip(months, num_list))
20.4
41
0.607843
num_list = [1,2,3,4] months = ['Jan', 'Feb', 'Mar', 'Apr'] months_dict = dict(zip(months, num_list))
0
0
0
0
0
0
0
0
0
fe92b53f5b3777d23e5c45c05e94c9a44f57b7aa
345
py
Python
calingen/interfaces/__init__.py
Mischback/django-calingen
3354c751e29d301609ec44e64d69a8729ec36de4
[ "MIT" ]
null
null
null
calingen/interfaces/__init__.py
Mischback/django-calingen
3354c751e29d301609ec44e64d69a8729ec36de4
[ "MIT" ]
51
2021-11-15T20:44:19.000Z
2022-02-10T08:33:08.000Z
calingen/interfaces/__init__.py
Mischback/django-calingen
3354c751e29d301609ec44e64d69a8729ec36de4
[ "MIT" ]
null
null
null
# SPDX-License-Identifier: MIT """The application's interfaces that are used to connect the different components. Notes ----- This package's code is not really specific to the Django framework. It is an abstraction layer. Primary focus is the provision of a plugin API, that allows the app to be extendable with third...
26.538462
82
0.773913
# SPDX-License-Identifier: MIT """The application's interfaces that are used to connect the different components. Notes ----- This package's code is not really specific to the Django framework. It is an abstraction layer. Primary focus is the provision of a plugin API, that allows the app to be extendable with third...
0
0
0
0
0
0
0
0
0
8b3f5bf2170e6f1f55a1f584308e631727c5174c
1,387
py
Python
Final Project/src/main.py
tig3r66/CMPUT275
dd5b94dcf0436e281f4696959db07b56f5c0b9d8
[ "MIT" ]
1
2022-01-25T05:19:15.000Z
2022-01-25T05:19:15.000Z
Final Project/src/main.py
tig3r66/CMPUT275
dd5b94dcf0436e281f4696959db07b56f5c0b9d8
[ "MIT" ]
null
null
null
Final Project/src/main.py
tig3r66/CMPUT275
dd5b94dcf0436e281f4696959db07b56f5c0b9d8
[ "MIT" ]
null
null
null
# =================================== # Name: Edward (Eddie) Guo # ID: 1576381 # Partner: Jason Kim # CMPUT 275, Fall 2020 # # Final Assignment: EEG Visualizer # =================================== """ Contains the QApplication which holds the PlotWindow QMainWindow object. The controller class is here for c...
26.673077
79
0.651045
# =================================== # Name: Edward (Eddie) Guo # ID: 1576381 # Partner: Jason Kim # CMPUT 275, Fall 2020 # # Final Assignment: EEG Visualizer # =================================== """ Contains the QApplication which holds the PlotWindow QMainWindow object. The controller class is here for c...
0
0
0
741
0
0
0
21
45
9bc6d6d5809746ae0dfad11e6d7e815c885010be
929
py
Python
utilipy/data_utils/tests/test_init.py
nstarman/utilipy
17984942145d31126724df23500bafba18fb7516
[ "BSD-3-Clause" ]
2
2020-11-15T01:48:45.000Z
2020-12-02T20:44:20.000Z
utilipy/data_utils/tests/test_init.py
nstarman/astroPHD
17984942145d31126724df23500bafba18fb7516
[ "BSD-3-Clause" ]
22
2020-09-13T17:58:24.000Z
2022-02-04T19:05:23.000Z
utilipy/data_utils/tests/test_init.py
nstarman/utilipy
17984942145d31126724df23500bafba18fb7516
[ "BSD-3-Clause" ]
1
2020-04-21T22:41:01.000Z
2020-04-21T22:41:01.000Z
# -*- coding: utf-8 -*- """Test Code in __init__.""" __all__ = [ "test_get_path_to_file", ] ############################################################################## # IMPORTS # BUILT-IN # PROJECT-SPECIFIC ############################################################################## # PARAMETERS ####...
21.113636
78
0.339074
# -*- coding: utf-8 -*- """Test Code in __init__.""" __all__ = [ "test_get_path_to_file", ] ############################################################################## # IMPORTS # BUILT-IN import os.path # PROJECT-SPECIFIC from utilipy.data_utils.utils import get_path_to_file #############################...
0
0
0
0
0
187
0
25
67
22e65f52c1dd2e9a786884bce3811c3aa03273e2
2,579
py
Python
eStore/migrations/0005_auto_20210420_2220.py
masrufjaman/gas-n-go
435e574a1b1bbd875a8a7aeade4d4c2dc1636b07
[ "MIT" ]
null
null
null
eStore/migrations/0005_auto_20210420_2220.py
masrufjaman/gas-n-go
435e574a1b1bbd875a8a7aeade4d4c2dc1636b07
[ "MIT" ]
9
2021-03-22T18:36:25.000Z
2021-04-20T17:39:47.000Z
eStore/migrations/0005_auto_20210420_2220.py
masrufjaman/gas-n-go
435e574a1b1bbd875a8a7aeade4d4c2dc1636b07
[ "MIT" ]
2
2021-06-30T14:39:52.000Z
2021-08-12T19:41:11.000Z
# Generated by Django 3.1.7 on 2021-04-20 16:20
40.936508
150
0.598682
# Generated by Django 3.1.7 on 2021-04-20 16:20 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('accounts', '0006_auto_20210406_1400'), ('eStore', '0004_item_discount_price'), ] operations = [ mig...
0
0
0
2,432
0
0
0
30
68
72dfafe3d10bd2db54f014bbf5184b6be818ecf0
9,310
py
Python
sdk/python/kfp/v2/dsl/experimental/for_loop.py
ryansteakley/pipelines
98677b2190fb327be68e4bb0d00c520593707f21
[ "Apache-2.0" ]
1
2021-10-23T00:39:47.000Z
2021-10-23T00:39:47.000Z
sdk/python/kfp/v2/dsl/experimental/for_loop.py
ryansteakley/pipelines
98677b2190fb327be68e4bb0d00c520593707f21
[ "Apache-2.0" ]
null
null
null
sdk/python/kfp/v2/dsl/experimental/for_loop.py
ryansteakley/pipelines
98677b2190fb327be68e4bb0d00c520593707f21
[ "Apache-2.0" ]
null
null
null
# Copyright 2021 The Kubeflow 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 in...
34.868914
81
0.628249
# Copyright 2021 The Kubeflow 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 in...
0
1,202
0
5,925
0
0
0
61
69
e0cb3175c59da0065800bb2675b16b000572cbc4
9,948
py
Python
.github/workflows/templates/generate.py
s0undt3ch/salt-bootstrap
11e5a237a922425c0e11608eec37bb4fde8d4577
[ "Apache-2.0" ]
null
null
null
.github/workflows/templates/generate.py
s0undt3ch/salt-bootstrap
11e5a237a922425c0e11608eec37bb4fde8d4577
[ "Apache-2.0" ]
null
null
null
.github/workflows/templates/generate.py
s0undt3ch/salt-bootstrap
11e5a237a922425c0e11608eec37bb4fde8d4577
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- import os os.chdir(os.path.abspath(os.path.dirname(__file__))) LINUX_DISTROS = [ "almalinux-8", "amazon-2", "arch", "centos-7", "centos-8", "debian-10", "debian-11", "debian-9", "fedora-33", "fedora-34", "fedora-35", "gentoo...
28.918605
157
0.441998
#!/usr/bin/env python # -*- coding: utf-8 -*- import os import datetime os.chdir(os.path.abspath(os.path.dirname(__file__))) LINUX_DISTROS = [ "almalinux-8", "amazon-2", "arch", "centos-7", "centos-8", "debian-10", "debian-11", "debian-9", "fedora-33", "fedora-34", "fedora-...
0
0
0
0
0
6,927
0
-6
45
4c2b178af364b6b782db82646942cb0a6c95a702
17,831
py
Python
qiskit/aqua/algorithms/single_sample/shor/shor.py
Nick-Singstock/qiskit-aqua
8c2bc57b78dec447faec3adbc966471a3206c2ef
[ "Apache-2.0" ]
1
2020-11-06T01:09:28.000Z
2020-11-06T01:09:28.000Z
qiskit/aqua/algorithms/single_sample/shor/shor.py
Nick-Singstock/qiskit-aqua
8c2bc57b78dec447faec3adbc966471a3206c2ef
[ "Apache-2.0" ]
null
null
null
qiskit/aqua/algorithms/single_sample/shor/shor.py
Nick-Singstock/qiskit-aqua
8c2bc57b78dec447faec3adbc966471a3206c2ef
[ "Apache-2.0" ]
1
2020-11-06T01:09:43.000Z
2020-11-06T01:09:43.000Z
# -*- coding: utf-8 -*- # This code is part of Qiskit. # # (C) Copyright IBM Corp. 2017 and later. # # 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....
36.464213
119
0.555213
# -*- coding: utf-8 -*- # This code is part of Qiskit. # # (C) Copyright IBM Corp. 2017 and later. # # 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
460
0
16,237
0
0
0
231
290
14d1776a23dbeff91b7b113a7ec6193886a74ae5
3,802
py
Python
src/game.py
Ale-XYX/Contrast
6daf08e14826fbe382a6a8bbaa53f6c5a0494383
[ "Apache-2.0" ]
null
null
null
src/game.py
Ale-XYX/Contrast
6daf08e14826fbe382a6a8bbaa53f6c5a0494383
[ "Apache-2.0" ]
null
null
null
src/game.py
Ale-XYX/Contrast
6daf08e14826fbe382a6a8bbaa53f6c5a0494383
[ "Apache-2.0" ]
2
2020-02-03T14:04:11.000Z
2020-05-15T16:44:33.000Z
# :^)
25.689189
80
0.583377
import re import bz2 import pygame import public import sprites import functions import dictionaries import random def title(debug): pygame.display.set_caption('Contrast') pygame.display.set_icon(pygame.image.fromstring(bz2.decompress( dictionaries.MEDIA['icon']), (32, 32), 'RGBA')) info_text = p...
0
0
0
0
0
3,608
0
-61
245
2e0aa5f7b3230ca90001a4c7c190460a296a87de
6,243
py
Python
tabledataextractor/input/from_html.py
ELchem/tabledataextractor
9eb38faf57611c26cdcaa8df13fd4e1cf36a4c21
[ "MIT" ]
4
2021-09-01T18:28:10.000Z
2022-03-29T09:43:34.000Z
tabledataextractor/input/from_html.py
ELchem/tabledataextractor
9eb38faf57611c26cdcaa8df13fd4e1cf36a4c21
[ "MIT" ]
3
2021-11-13T21:17:27.000Z
2021-11-15T18:29:14.000Z
tabledataextractor/input/from_html.py
ELchem/tabledataextractor
9eb38faf57611c26cdcaa8df13fd4e1cf36a4c21
[ "MIT" ]
2
2021-10-07T01:20:39.000Z
2021-11-02T17:56:06.000Z
# -*- coding: utf-8 -*- """ Reads an `html` formatted table. """ import numpy as np from bs4 import BeautifulSoup import requests from selenium import webdriver from selenium.webdriver.firefox.options import Options as FirefoxOptions import copy import logging from tabledataextractor.exceptions import InputError log...
33.745946
223
0.606279
# -*- coding: utf-8 -*- """ Reads an `html` formatted table. """ import numpy as np from bs4 import BeautifulSoup import requests from selenium import webdriver from selenium.webdriver.firefox.options import Options as FirefoxOptions from selenium.webdriver.chrome.options import Options as ChromeOptions from selenium...
0
0
0
0
0
0
0
135
66
8a2527c8ebf711cd89d50a2c1b007f80d07a457b
924
py
Python
07/script.py
has-ctrl/advent-of-code-2021
09d309feb5082f108ab690f9e37abf6150b7283d
[ "MIT" ]
null
null
null
07/script.py
has-ctrl/advent-of-code-2021
09d309feb5082f108ab690f9e37abf6150b7283d
[ "MIT" ]
null
null
null
07/script.py
has-ctrl/advent-of-code-2021
09d309feb5082f108ab690f9e37abf6150b7283d
[ "MIT" ]
null
null
null
import numpy as np test_data = np.array([16, 1, 2, 0, 4, 2, 7, 1, 2, 14]) np_data = np.loadtxt("data.txt", delimiter=",", dtype=int) def one(data: np.ndarray) -> int: """ Determine the horizontal position that the crabs can align to using the least fuel possible. How much fuel must they spend to align to...
30.8
120
0.650433
import numpy as np test_data = np.array([16, 1, 2, 0, 4, 2, 7, 1, 2, 14]) np_data = np.loadtxt("data.txt", delimiter=",", dtype=int) def one(data: np.ndarray) -> int: """ Determine the horizontal position that the crabs can align to using the least fuel possible. How much fuel must they spend to align to...
0
0
0
0
0
0
0
0
0
46445e6276cdd339ed1cb28a14605af7c00ee8a9
787
py
Python
docs/src/callbackgen.py
aristanetworks/ctypegen
379f8e5c712c8deb0ed27cbf005d7706fa11e6e8
[ "Apache-2.0" ]
17
2018-06-12T10:07:42.000Z
2022-03-23T14:03:33.000Z
docs/src/callbackgen.py
aristanetworks/ctypegen
379f8e5c712c8deb0ed27cbf005d7706fa11e6e8
[ "Apache-2.0" ]
4
2018-10-29T17:55:34.000Z
2021-10-08T07:19:12.000Z
docs/src/callbackgen.py
aristanetworks/ctypegen
379f8e5c712c8deb0ed27cbf005d7706fa11e6e8
[ "Apache-2.0" ]
7
2018-12-20T19:35:45.000Z
2021-05-18T03:42:17.000Z
# Copyright (c) 2018 Arista Networks, Inc. All rights reserved. # Arista Networks, Inc. Confidential and Proprietary. # # DON'T EDIT THIS FILE. It was generated by # /usr/local/lib/python2.7/dist-packages/CTypeGen.py # Please see AID/3558 for details on the contents of this file # # pylint: disable=unnecessary-pass,pr...
21.861111
64
0.684879
# Copyright (c) 2018 Arista Networks, Inc. All rights reserved. # Arista Networks, Inc. Confidential and Proprietary. # # DON'T EDIT THIS FILE. It was generated by # /usr/local/lib/python2.7/dist-packages/CTypeGen.py # Please see AID/3558 for details on the contents of this file # from ctypes import * # pylint: disabl...
0
0
0
0
0
108
0
3
135
f5ccf91f07f564599f0a2cf7b1cc3268aa005d97
1,296
py
Python
generated-libraries/python/ports.py
radekg/netapp-ontap-lib-get
6445ebb071ec147ea82a486fbe9f094c56c5c40d
[ "MIT" ]
2
2017-03-28T15:31:26.000Z
2018-08-16T22:15:18.000Z
generated-libraries/python/ports.py
radekg/netapp-ontap-lib-get
6445ebb071ec147ea82a486fbe9f094c56c5c40d
[ "MIT" ]
null
null
null
generated-libraries/python/ports.py
radekg/netapp-ontap-lib-get
6445ebb071ec147ea82a486fbe9f094c56c5c40d
[ "MIT" ]
null
null
null
from netapp.connection import NaErrorResponse, NaPagedResponse from netapp.net import NetConnection from netapp.net.net_port_info import NetPortInfo conn = NetConnection("192.168.135.100", "admin", "mehmeh123") print "LISTING ALL PORTS:" print "-----------------------------------------------" query = NetPortInfo(nod...
35.027027
106
0.622685
from netapp.connection import NaErrorResponse, NaPagedResponse from netapp.net import NetConnection from netapp.net.net_port_info import NetPortInfo conn = NetConnection("192.168.135.100", "admin", "mehmeh123") print "LISTING ALL PORTS:" print "-----------------------------------------------" query = NetPortInfo(nod...
0
0
0
0
0
0
0
0
0
4041a20fc51def3b3801556656d9b21062ae0f2d
185
py
Python
torch/fx/experimental/unification/__init__.py
Hacky-DH/pytorch
80dc4be615854570aa39a7e36495897d8a040ecc
[ "Intel" ]
60,067
2017-01-18T17:21:31.000Z
2022-03-31T21:37:45.000Z
torch/fx/experimental/unification/__init__.py
Hacky-DH/pytorch
80dc4be615854570aa39a7e36495897d8a040ecc
[ "Intel" ]
66,955
2017-01-18T17:21:38.000Z
2022-03-31T23:56:11.000Z
torch/fx/experimental/unification/__init__.py
Hacky-DH/pytorch
80dc4be615854570aa39a7e36495897d8a040ecc
[ "Intel" ]
19,210
2017-01-18T17:45:04.000Z
2022-03-31T23:51:56.000Z
# type: ignore[attr-defined]
37
68
0.724324
# type: ignore[attr-defined] from .core import unify, reify # noqa: F403 from .more import unifiable # noqa: F403 from .variable import var, isvar, vars, variables, Var # noqa: F403
0
0
0
0
0
0
0
48
108
3be09ddb058024d53f0d37a425c547e2ad46cc57
2,147
py
Python
psinsights/rules.py
paulcronk/psinsights
cd465f20254fbdb30032ce40b6fe30d32de0d524
[ "Apache-2.0" ]
null
null
null
psinsights/rules.py
paulcronk/psinsights
cd465f20254fbdb30032ce40b6fe30d32de0d524
[ "Apache-2.0" ]
null
null
null
psinsights/rules.py
paulcronk/psinsights
cd465f20254fbdb30032ce40b6fe30d32de0d524
[ "Apache-2.0" ]
null
null
null
############################################################################### # Copyright 2012 FastSoft Inc. # Copyright 2012 Devin Anderson <danderson (at) fastsoft (dot) com> # # Licensed under the Apache License, Version 2.0 (the "License"); you may not # use this file except in compliance with the License. You m...
28.626667
79
0.583605
############################################################################### # Copyright 2012 FastSoft Inc. # Copyright 2012 Devin Anderson <danderson (at) fastsoft (dot) com> # # Licensed under the Apache License, Version 2.0 (the "License"); you may not # use this file except in compliance with the License. You m...
0
0
0
1,274
0
0
0
20
46
662efd1261fb763f2ca5bdab861633e763419ddb
552
py
Python
exercicio-condicional/questao-1.py
maumneto/exercicio-python
bd57cd9f3b48c76ea3f8195544d347bc1b0c943e
[ "MIT" ]
null
null
null
exercicio-condicional/questao-1.py
maumneto/exercicio-python
bd57cd9f3b48c76ea3f8195544d347bc1b0c943e
[ "MIT" ]
null
null
null
exercicio-condicional/questao-1.py
maumneto/exercicio-python
bd57cd9f3b48c76ea3f8195544d347bc1b0c943e
[ "MIT" ]
1
2020-04-27T15:01:10.000Z
2020-04-27T15:01:10.000Z
''' Faa um programa que leia o salrio de um trabalhador e o valor da prestao de um emprstimo. Se a prestao for maior que 20% do salrio imprima: Emprstimo no concedido; caso contrrio imprima: Emprstimo concedido. ''' # entrada de dados salarao = float(input('Digite o valor do salario: ')) prestacao = float(input('Digit...
30.666667
95
0.733696
''' Faça um programa que leia o salário de um trabalhador e o valor da prestação de um empréstimo. Se a prestação for maior que 20% do salário imprima: “Empréstimo não concedido”; caso contrário imprima: “Empréstimo concedido”. ''' # entrada de dados salarao = float(input('Digite o valor do salario: ')) prestacao = fl...
38
0
0
0
0
0
0
0
0
4b998a8b759bc5a4cf2d3b91ee6979cd04cfc889
12,997
py
Python
Firefly/services/firefly_security_and_monitoring/firefly_monitoring.py
Firefly-Automation/Firefly
fccf40b8f6e015ef34c292264184090eb8d860b7
[ "Apache-2.0" ]
20
2017-03-24T08:25:50.000Z
2020-07-07T16:09:34.000Z
Firefly/services/firefly_security_and_monitoring/firefly_monitoring.py
Firefly-Automation/Firefly
fccf40b8f6e015ef34c292264184090eb8d860b7
[ "Apache-2.0" ]
1
2017-11-02T17:46:48.000Z
2017-11-02T17:46:48.000Z
Firefly/services/firefly_security_and_monitoring/firefly_monitoring.py
Firefly-Automation/Firefly
fccf40b8f6e015ef34c292264184090eb8d860b7
[ "Apache-2.0" ]
5
2017-04-11T02:27:38.000Z
2020-12-11T07:44:00.000Z
""" Firefly Security and Monitoring This is the core Firefly Security and Monitoring Service. There should be almost zero config to the user and firefly will monitor the entire house. - Alarm System (Away) - Alarm System (Night) - Vacation Lighting - Battery Monitor - Smoke Alerts - Flooding Alerts """ ALARM_DISARMED...
38.11437
183
0.701239
""" Firefly Security and Monitoring This is the core Firefly Security and Monitoring Service. There should be almost zero config to the user and firefly will monitor the entire house. - Alarm System (Away) - Alarm System (Night) - Vacation Lighting - Battery Monitor - Smoke Alerts - Flooding Alerts """ from Firefly im...
0
43
0
11,293
0
0
0
939
221
0c76885b70fe7b575d9278df97a40daf190c7e04
324
py
Python
optirocket/library/constants.py
Keith-Maxwell/OptiRocket
d99ac8d2b868b60a2bbf32f5a8a31ecdcaeea5b0
[ "MIT" ]
null
null
null
optirocket/library/constants.py
Keith-Maxwell/OptiRocket
d99ac8d2b868b60a2bbf32f5a8a31ecdcaeea5b0
[ "MIT" ]
3
2021-01-14T15:09:51.000Z
2021-02-12T17:05:18.000Z
optirocket/library/constants.py
Keith-Maxwell/OptiRocket
d99ac8d2b868b60a2bbf32f5a8a31ecdcaeea5b0
[ "MIT" ]
1
2021-01-11T02:34:29.000Z
2021-01-11T02:34:29.000Z
# standard gravitational parameter for Earth = G*M EARTH_GRAV_CONST = 3.986005e5 # (km^3/s^2) # Earth Radius EARTH_RADIUS = 6378.137 # (km) # Earth rotation speed (calculated from sideral period) EARTH_ROT_RATE = 6.300387486749 / 86164 # (rad/s) # Earth gravitation at sea leve EARTH_GRAV_SEA_LVL = 9.80665 # (m^2...
27
55
0.725309
# standard gravitational parameter for Earth = G*M EARTH_GRAV_CONST = 3.986005e5 # (km^3/s^2) # Earth Radius EARTH_RADIUS = 6378.137 # (km) # Earth rotation speed (calculated from sideral period) EARTH_ROT_RATE = 6.300387486749 / 86164 # (rad/s) # Earth gravitation at sea leve EARTH_GRAV_SEA_LVL = 9.80665 # (m^2...
0
0
0
0
0
0
0
0
0
42488845e1b00797f2c42f02abc38006597e292a
4,539
py
Python
my_utils/misc.py
Jennifercheukyin/High-Speed-Pedestrian-Crossing-Prediction
09cceb0efaf4d074ee16d11d8f91292ce9dec854
[ "MIT" ]
4
2021-10-22T01:33:16.000Z
2022-03-09T06:39:54.000Z
my_utils/misc.py
Jennifercheukyin/High-Speed-Pedestrian-Crossing-Prediction
09cceb0efaf4d074ee16d11d8f91292ce9dec854
[ "MIT" ]
null
null
null
my_utils/misc.py
Jennifercheukyin/High-Speed-Pedestrian-Crossing-Prediction
09cceb0efaf4d074ee16d11d8f91292ce9dec854
[ "MIT" ]
null
null
null
'''Some helper functions for PyTorch, including: - get_mean_and_std: calculate the mean and std value of dataset. - msr_init: net parameter initialization. - progress_bar: progress bar mimic xlua.progress. ''' import errno import os import torch.nn as nn import torch.nn.init as init import torch __all__ =...
30.463087
118
0.592642
'''Some helper functions for PyTorch, including: - get_mean_and_std: calculate the mean and std value of dataset. - msr_init: net parameter initialization. - progress_bar: progress bar mimic xlua.progress. ''' import errno import os import sys import time import math import torch.nn as nn import torch.nn.i...
0
0
0
2,632
0
0
0
-31
236
ca91f55ea74fe8da53eabdf2dc43a829dbcf7253
1,697
py
Python
gradient_decent_simple_linear_regression.py
eshanmherath/linear-regression
5b473586679a4b4594706faeb2bb7e4922c7ab38
[ "MIT" ]
1
2020-12-09T04:19:46.000Z
2020-12-09T04:19:46.000Z
gradient_decent_simple_linear_regression.py
eshanmherath/linear-regression
5b473586679a4b4594706faeb2bb7e4922c7ab38
[ "MIT" ]
null
null
null
gradient_decent_simple_linear_regression.py
eshanmherath/linear-regression
5b473586679a4b4594706faeb2bb7e4922c7ab38
[ "MIT" ]
null
null
null
import numpy as np np.random.seed(111) ''' The data is generated adding noise to the values from y = 0.8x + 2 equation Therefore the expectation of the auto encoder is to get the values w and b closer to 0.8 and 2 respectively ''' '''generate random x values''' X_train = np.random.random((1, 50))[0] '''get the ref...
28.762712
107
0.625221
import numpy as np np.random.seed(111) ''' The data is generated adding noise to the values from y = 0.8x + 2 equation Therefore the expectation of the auto encoder is to get the values w and b closer to 0.8 and 2 respectively ''' '''generate random x values''' X_train = np.random.random((1, 50))[0] '''get the ref...
0
0
0
0
0
788
0
0
23
b2107b59ecdecdb0d53f298a0ed4ee2762c4cc8c
458
py
Python
1_mundo_exercicios/ex018.py
GuilhermeLima182/CursoDePython
7e72b117142794c38cbb14284d0fa6e1dbee5bf6
[ "MIT" ]
null
null
null
1_mundo_exercicios/ex018.py
GuilhermeLima182/CursoDePython
7e72b117142794c38cbb14284d0fa6e1dbee5bf6
[ "MIT" ]
null
null
null
1_mundo_exercicios/ex018.py
GuilhermeLima182/CursoDePython
7e72b117142794c38cbb14284d0fa6e1dbee5bf6
[ "MIT" ]
null
null
null
#Faa um programa que leia um ngulo qualquer e mostre na tela #o valor do seno,cosseno e tangente desse ngulo. from math import radians, sin, cos, tan angulo = int(input('Digite um ngulo: ')) sen = sin(radians(angulo)) cos = cos(radians(angulo)) tan = tan(radians(angulo)) print('O seno do ngulo {} {:.2f}'.format(angul...
38.166667
62
0.696507
#Faça um programa que leia um ângulo qualquer e mostre na tela #o valor do seno,cosseno e tangente desse ângulo. from math import radians, sin, cos, tan angulo = int(input('Digite um ângulo: ')) sen = sin(radians(angulo)) cos = cos(radians(angulo)) tan = tan(radians(angulo)) print('O seno do ângulo {} é {:.2f}'.format...
20
0
0
0
0
0
0
0
0
624916c3d5ec04f32ee59e6547283d5f7ef4f28e
1,313
py
Python
source/_sample/sympy/stereograph.py
showa-yojyo/notebook
82c15074c24d64a1dfcb70a526bc1deb2ecffe68
[ "MIT" ]
14
2016-04-13T08:10:02.000Z
2021-04-19T09:42:51.000Z
source/_sample/sympy/stereograph.py
showa-yojyo/note
5f262ecda3df132cb66206c465d16e174061d6b9
[ "MIT" ]
88
2017-09-27T15:07:05.000Z
2019-10-02T04:05:03.000Z
source/_sample/sympy/stereograph.py
showa-yojyo/note
5f262ecda3df132cb66206c465d16e174061d6b9
[ "MIT" ]
null
null
null
#!/usr/bin/env python """stereograph.py: Compute length of a geodesic in the unit sphere. """ if __name__ == '__main__': main()
32.825
76
0.581112
#!/usr/bin/env python """stereograph.py: Compute length of a geodesic in the unit sphere. """ from sympy import (symbols, Function, Matrix, factor, simplify, latex, sqrt) from sympy.abc import (t, xi, eta) from sympy.printing import print_latex def main(): u, v, R = symbols('u v R', real=True) xi, eta = symbo...
0
0
0
0
0
1,005
0
85
90
9ee6af17b80095ba1ce3ce97e7b719c8cc0ba35d
357
py
Python
visdialch/decoders/__init__.py
mohitsudhakar/visual-dialog-experiments
77cc65938b0ce99fc52b839b7821f29c7a6b32a0
[ "BSD-3-Clause" ]
1
2020-11-15T07:40:18.000Z
2020-11-15T07:40:18.000Z
visdialch/decoders/__init__.py
mohitsudhakar/visual-dialog-experiments
77cc65938b0ce99fc52b839b7821f29c7a6b32a0
[ "BSD-3-Clause" ]
3
2020-11-13T19:53:06.000Z
2020-11-16T01:23:10.000Z
visdialch/decoders/__init__.py
mohitsudhakar/visual-dialog-experiments
77cc65938b0ce99fc52b839b7821f29c7a6b32a0
[ "BSD-3-Clause" ]
null
null
null
# from visdialch.decoders.gen import GenerativeDecoder #from visdialch.decoders.disc import DiscriminativeDecoder
44.625
76
0.812325
# from visdialch.decoders.gen import GenerativeDecoder #from visdialch.decoders.disc import DiscriminativeDecoder from visdialch.decoders.decoder import DiscriminativeDecoder def Decoder(model_config, *args): name_dec_map = {"disc": DiscriminativeDecoder, "gen": GenerativeDecoder} return name_dec_map[model_con...
0
0
0
0
0
159
0
39
45
3687c80748ad58f744cedde41cab9e69281efc9e
44,472
py
Python
nitorch/io/volumes/mapping.py
balbasty/nitorch
d30c3125a8a66ea1434f2b39ed03338afd9724b4
[ "MIT" ]
46
2020-07-31T10:14:05.000Z
2022-03-24T12:51:46.000Z
nitorch/io/volumes/mapping.py
balbasty/nitorch
d30c3125a8a66ea1434f2b39ed03338afd9724b4
[ "MIT" ]
36
2020-10-06T19:01:38.000Z
2022-02-03T18:07:35.000Z
nitorch/io/volumes/mapping.py
balbasty/nitorch
d30c3125a8a66ea1434f2b39ed03338afd9724b4
[ "MIT" ]
6
2021-01-05T14:59:05.000Z
2021-11-18T18:26:45.000Z
def cat(arrays, dim=0): """Concatenate mapped arrays along a dimension. Parameters ---------- arrays : sequence[MappedArray] Arrays to concatenate. Their shapes should be identical except along dimension `dim`. dim : int, default=0 Dimension along whi...
37.277452
93
0.565727
from copy import copy import torch from nitorch.core.py import make_list from nitorch.core import dtypes from nitorch.spatial import affine_sub, affine_permute, voxel_size as affvx from nitorch.io.utils.indexing import (expand_index, guess_shape, compose_index, neg2pos, is_dropped...
0
2,897
0
39,913
0
0
0
328
222
1a2deaef0215145916e743664ab5b8b9ed9d9543
302
py
Python
blit.py
rwberendsen/blit
f025a286b04774ec6dc6a47823254484d3942b78
[ "MIT" ]
null
null
null
blit.py
rwberendsen/blit
f025a286b04774ec6dc6a47823254484d3942b78
[ "MIT" ]
null
null
null
blit.py
rwberendsen/blit
f025a286b04774ec6dc6a47823254484d3942b78
[ "MIT" ]
null
null
null
""" blit.py Call if you want to run everything """ import sys if __name__ == '__main__': sys.exit(main(sys.argv))
10.785714
39
0.63245
""" blit.py Call if you want to run everything """ import json import os import sys import integrate def main(argv): with open('config.json', 'r') as f: config = json.load(f) integrate.integrate(**config) return 0 if __name__ == '__main__': sys.exit(main(sys.argv))
0
0
0
0
0
112
0
-27
91
33a51d04c0e22dbd80245e03d033a309d7a8fdfd
367
py
Python
pacote dowlond/curso python/exercicio100.py
Kaue-Marin/Curso-Python
45f7920e288a49724a4284f14c7212bb1662ab5b
[ "MIT" ]
null
null
null
pacote dowlond/curso python/exercicio100.py
Kaue-Marin/Curso-Python
45f7920e288a49724a4284f14c7212bb1662ab5b
[ "MIT" ]
null
null
null
pacote dowlond/curso python/exercicio100.py
Kaue-Marin/Curso-Python
45f7920e288a49724a4284f14c7212bb1662ab5b
[ "MIT" ]
null
null
null
numeros = [] # programa principal sorteia() somapar()
22.9375
47
0.577657
from random import randint numeros = [] def sorteia(): for c in range(1, 5): c = randint(1, 9) numeros.append(c) print(f'os valores da lista são {numeros}') def somapar(): spar = 0 for c2 in numeros: if c2 % 2 == 0: spar += c2 print(f'a soma dos numeros pares é {s...
4
0
0
0
0
241
0
5
66
7f79dcf3d85037aa0b27e51ab5ee77202b2f17ac
3,802
py
Python
ch03/pro1.py
Lucid-ak/deeplearnig_practice
e196d733ee9b910a9c7648e61e6934aea9d255b3
[ "MIT" ]
null
null
null
ch03/pro1.py
Lucid-ak/deeplearnig_practice
e196d733ee9b910a9c7648e61e6934aea9d255b3
[ "MIT" ]
null
null
null
ch03/pro1.py
Lucid-ak/deeplearnig_practice
e196d733ee9b910a9c7648e61e6934aea9d255b3
[ "MIT" ]
null
null
null
import numpy as np # import sys, os sys.path.append(os.pardir) def step_function(x): ''' y = x > 0 return y.astype(np.int) #np.int dtype=int . ''' return np.array(x>0, dtype=int) #dtype dtype=int ''' network=init_network() x=np.array([100,40]) y...
22.104651
99
0.584955
import pickle import numpy as np #비선형 퍼셉트론 import matplotlib.pylab as plt import sys, os sys.path.append(os.pardir) from dataset.mnist import load_mnist from PIL import Image def AND(x1, x2): x=np.array([x1,x2]) w=np.array([0.5, 0.5]) b= -0.7 theta = 0 tmp = np.sum(w*x)+b if tmp<=thet...
654
0
0
0
0
2,029
0
16
407
206b2d2a2c251900c661943dfaa5e9366d3668b1
9,055
py
Python
slideatlas/security/blueprint.py
SlideAtlas/SlideAtlas-Server
3b9cbd56eaa29ae08ae521e75616ea230fe26397
[ "Apache-2.0" ]
3
2015-10-10T10:17:26.000Z
2020-12-14T09:42:19.000Z
slideatlas/security/blueprint.py
SlideAtlas/SlideAtlas-Server
3b9cbd56eaa29ae08ae521e75616ea230fe26397
[ "Apache-2.0" ]
41
2015-02-03T19:47:28.000Z
2017-02-06T23:24:26.000Z
slideatlas/security/blueprint.py
SlideAtlas/SlideAtlas-Server
3b9cbd56eaa29ae08ae521e75616ea230fe26397
[ "Apache-2.0" ]
2
2016-04-04T18:23:27.000Z
2017-11-14T22:34:58.000Z
# coding=utf-8 from flask import Markup ################################################################################ __all__ = ('blueprint', 'register_with_app') ################################################################################ ###################################################################...
45.049751
163
0.661182
# coding=utf-8 import copy from flask import Markup, url_for from flask.ext.security import Security, MongoEngineUserDatastore, user_registered from flask.ext.security.core import _SecurityState from flask.ext.security.core import _context_processor as security_default_context_processor from flask.ext.security.views ...
0
0
0
465
0
3,170
0
358
310
6e1958f96728d11d2e7418e4925be857a7286b3c
1,616
py
Python
flight/views.py
NedyalkoKr/airline
d704e8cd98901dc4bb0bf672cc2363432ada3f84
[ "MIT" ]
null
null
null
flight/views.py
NedyalkoKr/airline
d704e8cd98901dc4bb0bf672cc2363432ada3f84
[ "MIT" ]
null
null
null
flight/views.py
NedyalkoKr/airline
d704e8cd98901dc4bb0bf672cc2363432ada3f84
[ "MIT" ]
null
null
null
from django.shortcuts import render from django.http import Http404 from flight.models import Flight, Passenger def index(request): ''' display all flights ''' context = { 'main_header': 'Flights', 'title': 'Flights', 'flights': Flight.objects.all() } return render(request, 'fli...
36.727273
99
0.678218
from django.shortcuts import render from django.urls import reverse from django.http import Http404, HttpResponseRedirect from flight.models import Flight, Passenger def index(request): ''' display all flights ''' context = { 'main_header': 'Flights', 'title': 'Flights', 'flights': Flig...
0
0
0
0
0
651
0
32
45
c2f3cfc4cf7bad08a1bd21dc39bb6765de3670b2
419
py
Python
setup1.py
Alexander437/Learning_repo
4e40ad419f8117d014f789119f4b3583067020bb
[ "CC0-1.0" ]
null
null
null
setup1.py
Alexander437/Learning_repo
4e40ad419f8117d014f789119f4b3583067020bb
[ "CC0-1.0" ]
null
null
null
setup1.py
Alexander437/Learning_repo
4e40ad419f8117d014f789119f4b3583067020bb
[ "CC0-1.0" ]
null
null
null
from setuptools import setup, find_packages from torch.utils import cpp_extension setup( name='my_lib', version='0.0', description='Learning setup', packages=find_packages(), ext_package='trt_pose', ext_modules=[cpp_extension.CppExtension('plugins', [ 'Learn_cpp/learn.cpp', ])], ...
23.277778
57
0.687351
from setuptools import setup, find_packages, Extension from torch.utils import cpp_extension setup( name='my_lib', version='0.0', description='Learning setup', packages=find_packages(), ext_package='trt_pose', ext_modules=[cpp_extension.CppExtension('plugins', [ 'Learn_cpp/learn.cpp', ...
0
0
0
0
0
0
0
11
0
8678ddca56a8e9b76f05e9a0a06fe329c6224b43
8,342
py
Python
bookops_callno/normalizer.py
BookOps-CAT/bookops-callno
a8f1d2744b3b53844dc97a5400ae87a2db92cd4c
[ "MIT" ]
null
null
null
bookops_callno/normalizer.py
BookOps-CAT/bookops-callno
a8f1d2744b3b53844dc97a5400ae87a2db92cd4c
[ "MIT" ]
null
null
null
bookops_callno/normalizer.py
BookOps-CAT/bookops-callno
a8f1d2744b3b53844dc97a5400ae87a2db92cd4c
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from typing import Optional from pymarc import Field from unidecode import unidecode, UnidecodeError from bookops_callno.errors import CallNoConstructorError def remove_trailing_punctuation(value: str) -> str: """ Removes any trailing periods, commas, etc. Args: value:...
23.902579
82
0.593743
# -*- coding: utf-8 -*- from typing import Optional from pymarc import Field from unidecode import unidecode, UnidecodeError from bookops_callno.errors import CallNoConstructorError def remove_trailing_punctuation(value: str) -> str: """ Removes any trailing periods, commas, etc. Args: value:...
0
0
0
0
0
0
0
0
0
b721c28c4d1d01229eaf38efadeba74addb10f97
1,310
py
Python
ex31.py
Lorranysousc/ExerciciosDeRepeticao
4b8ac1c4eb3ac5d2739456a4f967e094fad70256
[ "MIT" ]
null
null
null
ex31.py
Lorranysousc/ExerciciosDeRepeticao
4b8ac1c4eb3ac5d2739456a4f967e094fad70256
[ "MIT" ]
null
null
null
ex31.py
Lorranysousc/ExerciciosDeRepeticao
4b8ac1c4eb3ac5d2739456a4f967e094fad70256
[ "MIT" ]
null
null
null
'''O Sr. Manoel Joaquim expandiu seus negcios para alm dos negcios de 1,99 e agora possui uma loja de convenincias. Faa um programa que implemente uma caixa registradora rudimentar. O programa dever receber um nmero desconhecido de valores referentes aos preos das mercadorias. Um valor zero deve ser informado pelo oper...
65.5
660
0.703817
'''O Sr. Manoel Joaquim expandiu seus negócios para além dos negócios de 1,99 e agora possui uma loja de conveniências. Faça um programa que implemente uma caixa registradora rudimentar. O programa deverá receber um número desconhecido de valores referentes aos preços das mercadorias. Um valor zero deve ser informado p...
32
0
0
0
0
0
0
0
0
c9bdceebaee8f789e4c6a4a1d04b4ef5a1c5d7f9
399
py
Python
tests/unit/dummy/__init__.py
fabiannagel/schnetkit
bf0b9055bdc393d01ac6c3d5f17bb9db13297e32
[ "MIT" ]
1
2021-11-03T15:13:48.000Z
2021-11-03T15:13:48.000Z
tests/unit/dummy/__init__.py
fabiannagel/schnetkit
bf0b9055bdc393d01ac6c3d5f17bb9db13297e32
[ "MIT" ]
null
null
null
tests/unit/dummy/__init__.py
fabiannagel/schnetkit
bf0b9055bdc393d01ac6c3d5f17bb9db13297e32
[ "MIT" ]
1
2022-02-02T17:34:05.000Z
2022-02-02T17:34:05.000Z
models = [Dummy]
15.96
37
0.573935
from schnetkit.engine import Stateful class Dummy(Stateful): def __init__(self, a=2): self.a = a self.state = "great" def get_dict(self): return {"a": self.a} def get_state(self): return {"state": self.state} def restore(self, payload): self.state = payload...
0
0
0
318
0
0
0
16
45
9af2d928d6cc2a53fd788a67b6c0a78899bbda9e
1,106
py
Python
tracks/BamFeatures.py
goeckslab/jbrowse-archive-creator
438557136c9dd4eb0db89835e5d253e44b50a7a3
[ "AFL-3.0" ]
null
null
null
tracks/BamFeatures.py
goeckslab/jbrowse-archive-creator
438557136c9dd4eb0db89835e5d253e44b50a7a3
[ "AFL-3.0" ]
null
null
null
tracks/BamFeatures.py
goeckslab/jbrowse-archive-creator
438557136c9dd4eb0db89835e5d253e44b50a7a3
[ "AFL-3.0" ]
null
null
null
#!/usr/bin/env python2
38.137931
114
0.699819
#!/usr/bin/env python2 import os import json import logging from TrackDb import TrackDb from util import subtools from util import santitizer class BamFeatures(TrackDb): def __init__(self, trackName, trackLabel, trackDataURL, trackType, dataType, extraSettings=None): super(BamFeatures, self).__init__(tra...
0
0
0
934
0
0
0
-13
156
defb13f18fc11dc096d17386bf5d7d31a9e0c762
5,573
py
Python
coolamqp/uplink/handshake.py
smok-serwis/coolamqp
d57ada0d478bd1ca94743ae341f6819ba85ea253
[ "MIT" ]
4
2018-06-20T13:59:35.000Z
2021-08-31T12:03:59.000Z
coolamqp/uplink/handshake.py
piotrmaslanka/coolamqp
d57ada0d478bd1ca94743ae341f6819ba85ea253
[ "MIT" ]
33
2016-06-03T11:41:09.000Z
2020-07-09T17:48:28.000Z
coolamqp/uplink/handshake.py
smok-serwis/coolamqp
d57ada0d478bd1ca94743ae341f6819ba85ea253
[ "MIT" ]
null
null
null
# coding=UTF-8 from __future__ import absolute_import, division, print_function """ Provides reactors that can authenticate an AQMP session """ import logging from coolamqp import __version__ PUBLISHER_CONFIRMS = b'publisher_confirms' CONSUMER_CANCEL_NOTIFY = b'consumer_cancel_notify' CONNECTION_BLOCKED = b'connectio...
39.524823
104
0.624978
# coding=UTF-8 from __future__ import absolute_import, division, print_function """ Provides reactors that can authenticate an AQMP session """ import six import typing as tp import copy import logging from coolamqp.framing.definitions import ConnectionStart, ConnectionStartOk, \ ConnectionTune, ConnectionTuneOk, ...
0
0
0
4,096
0
0
0
197
177
08045555ebdef5af831c50bb02363844d684733e
10,852
py
Python
nodejs-mobile/test/testpy/__init__.py
xuelongqy/cnode
ac256264d329e68b6c5ae3281b0e7bb5a95ae164
[ "MIT" ]
null
null
null
nodejs-mobile/test/testpy/__init__.py
xuelongqy/cnode
ac256264d329e68b6c5ae3281b0e7bb5a95ae164
[ "MIT" ]
4
2020-03-13T14:45:49.000Z
2020-03-15T16:31:22.000Z
nodejs-mobile/test/testpy/__init__.py
xuelongqy/cnode
ac256264d329e68b6c5ae3281b0e7bb5a95ae164
[ "MIT" ]
1
2020-03-15T16:02:18.000Z
2020-03-15T16:02:18.000Z
# Copyright 2008 the V8 project authors. All rights reserved. # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are # met: # # * Redistributions of source code must retain the above copyright # notice, this list of conditi...
39.176895
89
0.646056
# Copyright 2008 the V8 project authors. All rights reserved. # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are # met: # # * Redistributions of source code must retain the above copyright # notice, this list of conditi...
0
0
0
8,858
0
0
0
14
250
3e13d9f04c5b9e380942a3048140fa5f7f9bee3d
919
py
Python
patterns/creational/factory_method.py
zhaijingrong/patterns_in_python
8cb53a58cbb78dc7ed578887a8e7c481cfa72c80
[ "MIT" ]
null
null
null
patterns/creational/factory_method.py
zhaijingrong/patterns_in_python
8cb53a58cbb78dc7ed578887a8e7c481cfa72c80
[ "MIT" ]
null
null
null
patterns/creational/factory_method.py
zhaijingrong/patterns_in_python
8cb53a58cbb78dc7ed578887a8e7c481cfa72c80
[ "MIT" ]
null
null
null
""" -- 1. """ if __name__ == '__main__': cream_cake_factory = CreamCakeFactory() cream_cake = cream_cake_factory.make_cake() print(cream_cake) fruit_cake_factory = FruitCakeFactory() fruit_cake = fruit_cake_factory.make_cake() print(fruit_cake)
19.145833
47
0.671382
""" 抽象工厂方法--对象创建型模式 1. 目标 定义一个用于创建对象的接口, 让子类决定实例化哪一个类, 使一个类的实例化延迟到子类。 """ class CakeFactory(object): def make_cake(self): print('make a cake') class CreamCakeFactory(CakeFactory): def make_cake(self): print('make a cream cake') return CreamCake() class FruitCakeFactory(CakeFactory...
168
0
0
443
0
0
0
0
138
8a8e864f9097a33ac84f3576473fa8671c78d0e2
1,583
py
Python
website/account/models.py
divmoe/DASHBOARD
42927dfca3797e0bde3e59288a156e33aec6790d
[ "MIT" ]
null
null
null
website/account/models.py
divmoe/DASHBOARD
42927dfca3797e0bde3e59288a156e33aec6790d
[ "MIT" ]
null
null
null
website/account/models.py
divmoe/DASHBOARD
42927dfca3797e0bde3e59288a156e33aec6790d
[ "MIT" ]
null
null
null
# Create your models here.
34.413043
77
0.722678
from django.db import models from django.contrib.auth.models import User # Create your models here. class Customer (models.Model): user=models.OneToOneField(User,null=True,on_delete=models.CASCADE) name = models.CharField(max_length=100,null=True) email= models.CharField(max_length=100,null=True) phone=...
0
0
0
1,392
0
0
0
29
134
0ce133badac8ace62355d38651dd265c044af4eb
1,169
py
Python
chromeos/tools/concat_dbus_conf_files.py
zealoussnow/chromium
fd8a8914ca0183f0add65ae55f04e287543c7d4a
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
14,668
2015-01-01T01:57:10.000Z
2022-03-31T23:33:32.000Z
chromeos/tools/concat_dbus_conf_files.py
zealoussnow/chromium
fd8a8914ca0183f0add65ae55f04e287543c7d4a
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
86
2015-10-21T13:02:42.000Z
2022-03-14T07:50:50.000Z
chromeos/tools/concat_dbus_conf_files.py
zealoussnow/chromium
fd8a8914ca0183f0add65ae55f04e287543c7d4a
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
5,941
2015-01-02T11:32:21.000Z
2022-03-31T16:35:46.000Z
#!/usr/bin/env python # Copyright 2019 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. """Concatenates D-Bus busconfig files.""" _BUSCONFIG_FILE_HEADER = b"""<!DOCTYPE busconfig PUBLIC "-//freedesktop//DTD D-Bus Bus Co...
26.568182
72
0.6929
#!/usr/bin/env python # Copyright 2019 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. """Concatenates D-Bus busconfig files.""" import sys import xml.etree.ElementTree _BUSCONFIG_FILE_HEADER = b"""<!DOCTYPE busconfig ...
0
0
0
0
0
657
0
-4
68
02525ed7d476b11f1d77ac07f48e44ec57a3ff58
282
py
Python
rand.py
sriharikapu/RandomSequenceGenerator
7491e43b117be3e24eb5b7d66762699ef4d7593a
[ "CC0-1.0" ]
1
2022-02-08T01:47:03.000Z
2022-02-08T01:47:03.000Z
rand.py
sriharikapu/RandomSequenceGenerator
7491e43b117be3e24eb5b7d66762699ef4d7593a
[ "CC0-1.0" ]
null
null
null
rand.py
sriharikapu/RandomSequenceGenerator
7491e43b117be3e24eb5b7d66762699ef4d7593a
[ "CC0-1.0" ]
null
null
null
import sys; import numpy as np; import pandas as pd; np.set_printoptions(threshold=sys.maxsize) # replace the range, sample size with your custom numbers arr = np.array(np.random.choice(range(10000), 10000, replace=False)) print(arr) DF = pd.DataFrame(arr) DF.to_csv("temp.csv")
25.636364
69
0.755319
import sys; import numpy as np; import pandas as pd; np.set_printoptions(threshold=sys.maxsize) # replace the range, sample size with your custom numbers arr = np.array(np.random.choice(range(10000), 10000, replace=False)) print(arr) DF = pd.DataFrame(arr) DF.to_csv("temp.csv")
0
0
0
0
0
0
0
0
0
029bd971467b50c7eb6bed9f96f5aee865257af7
6,358
py
Python
capresize.py
fictorial/pygame-capresize
4084b05c7646be6d45acaedf7b274d9164bea7bf
[ "MIT" ]
3
2017-01-03T09:21:06.000Z
2017-09-17T02:47:56.000Z
capresize.py
fictorial/pygame-capresize
4084b05c7646be6d45acaedf7b274d9164bea7bf
[ "MIT" ]
null
null
null
capresize.py
fictorial/pygame-capresize
4084b05c7646be6d45acaedf7b274d9164bea7bf
[ "MIT" ]
null
null
null
"""This module creates a Pygame surface from a source surface that has "end caps" on its corners. The caps remain unscaled in the destination surface and the rest is scaled/tiled. This was inspired by Android's NinePatch and iOS' resizableImageWithCapInsets """ import pygame AUTHOR = 'Brian Hammond <brian@fictori...
30.714976
79
0.56134
"""This module creates a Pygame surface from a source surface that has "end caps" on its corners. The caps remain unscaled in the destination surface and the rest is scaled/tiled. This was inspired by Android's NinePatch and iOS' resizableImageWithCapInsets """ import pygame AUTHOR = 'Brian Hammond <brian@fictori...
0
0
0
0
0
462
0
0
62
4e046307ff114abcb6a89f63202cc7a58a62ddb1
2,231
py
Python
Exercises/Exercise_Database-and-SQL/script2.py
npinak/Python-Projects
6e6463f4fde175fde60c9cca045e3c114b854505
[ "MIT" ]
1
2021-10-16T16:22:14.000Z
2021-10-16T16:22:14.000Z
Exercises/Exercise_Database-and-SQL/script2.py
npinak/Python-Projects
6e6463f4fde175fde60c9cca045e3c114b854505
[ "MIT" ]
null
null
null
Exercises/Exercise_Database-and-SQL/script2.py
npinak/Python-Projects
6e6463f4fde175fde60c9cca045e3c114b854505
[ "MIT" ]
null
null
null
#insert("Water Glass", 10, 5) #delete("Wine Glass") #update(12,6,"Water Glass") #print(view()) #create_table() #insert("Orange",10,15) delete("Orange") print(view())
43.745098
207
0.693859
import psycopg2 def create_table(): conn = psycopg2.connect("dbname='database1' user='postgres' password ='naak' host ='localhost' port='5432'") # Create connection to database, if no database then it will be created with this line of code cur = conn.cursor() # Create cursor object cur.execute("CREATE TABL...
0
0
0
0
0
1,930
0
-6
137
5da3320712a6045998829ed16068f41ad2ccdd8a
6,391
py
Python
scripts/nuscenes/eval/common/utils.py
mengmengliu1998/qd-3dt
9fcd1c0b165793e259deb46a64fcbbdc33735f2f
[ "BSD-3-Clause" ]
1
2019-11-28T10:39:36.000Z
2019-11-28T10:39:36.000Z
scripts/nuscenes/eval/common/utils.py
mengmengliu1998/qd-3dt
9fcd1c0b165793e259deb46a64fcbbdc33735f2f
[ "BSD-3-Clause" ]
null
null
null
scripts/nuscenes/eval/common/utils.py
mengmengliu1998/qd-3dt
9fcd1c0b165793e259deb46a64fcbbdc33735f2f
[ "BSD-3-Clause" ]
null
null
null
# nuScenes dev-kit. # Code written by Holger Caesar, 2018. from typing import List, Dict, Any import numpy as np from pyquaternion import Quaternion from nuscenes.eval.common.data_classes import EvalBox from nuscenes.utils.data_classes import Box DetectionBox = Any # Workaround as direct imports lead to cyclic dep...
37.594118
117
0.688625
# nuScenes dev-kit. # Code written by Holger Caesar, 2018. from typing import List, Dict, Any import numpy as np from pyquaternion import Quaternion from nuscenes.eval.common.data_classes import EvalBox from nuscenes.utils.data_classes import Box DetectionBox = Any # Workaround as direct imports lead to cyclic dep...
0
0
0
0
0
0
0
0
0
0a483189639b429b0cd7104b8693e926d0cfbfc5
46,506
py
Python
parsetab.py
XgDuan/gem5-nvp-hw
c25d5511aac1816f3b4e31ced71017504c285e78
[ "BSD-3-Clause" ]
null
null
null
parsetab.py
XgDuan/gem5-nvp-hw
c25d5511aac1816f3b4e31ced71017504c285e78
[ "BSD-3-Clause" ]
null
null
null
parsetab.py
XgDuan/gem5-nvp-hw
c25d5511aac1816f3b4e31ced71017504c285e78
[ "BSD-3-Clause" ]
null
null
null
# parsetab.py # This file is automatically generated. Do not edit. _tabversion = '3.2' _lr_method = 'LALR' _lr_signature = 'l\x16\x9efz%\xc1\x8b\xa8O\x02{\x0b\xd1qJ' _lr_action_items = {'PEEK':([179,247,248,253,293,299,321,345,352,355,366,368,369,370,372,375,376,],[242,242,-95,-80,-79,-86,-94,-87,-92,-96,-88,-9...
275.183432
23,804
0.667505
# parsetab.py # This file is automatically generated. Do not edit. _tabversion = '3.2' _lr_method = 'LALR' _lr_signature = 'l\x16\x9efz%\xc1\x8b\xa8O\x02{\x0b\xd1qJ' _lr_action_items = {'PEEK':([179,247,248,253,293,299,321,345,352,355,366,368,369,370,372,375,376,],[242,242,-95,-80,-79,-86,-94,-87,-92,-96,-88,-9...
0
0
0
0
0
0
0
0
0
be98e688f595d130727ae63ee7025e42be5b6796
7,044
py
Python
src/clean.py
JohnlNguyen/Comment2Code
5875d0ce708f8d4965ef39cdae282f3995cdd7c0
[ "MIT" ]
null
null
null
src/clean.py
JohnlNguyen/Comment2Code
5875d0ce708f8d4965ef39cdae282f3995cdd7c0
[ "MIT" ]
null
null
null
src/clean.py
JohnlNguyen/Comment2Code
5875d0ce708f8d4965ef39cdae282f3995cdd7c0
[ "MIT" ]
null
null
null
# import pygments # from pygments.token import Comment, Text, Keyword, Name # from bpe import Encoder # from nltk import everygrams, ngrams # from nltk.tokenize import word_tokenize # from lexer import build_lexer if __name__ == "__main__": import argparse ap = argparse.ArgumentParser() ...
29.974468
116
0.579784
from pdb import set_trace import json import itertools # import pygments import random import csv # from pygments.token import Comment, Text, Keyword, Name # from bpe import Encoder # from nltk import everygrams, ngrams # from nltk.tokenize import word_tokenize # from lexer import build_lexer def remove_blank(code...
0
0
0
0
0
6,169
0
-30
478
fa54df8ef50460a558172de0f2f2c4bd5f3c25e7
8,100
py
Python
qa/rpc-tests/zmq_test.py
gandrewstone/bitcoin
05de381c02eb4bfca94957733acadfa217527f25
[ "MIT" ]
535
2015-09-04T15:10:08.000Z
2022-03-17T20:51:05.000Z
qa/rpc-tests/zmq_test.py
gandrewstone/bitcoin
05de381c02eb4bfca94957733acadfa217527f25
[ "MIT" ]
1,269
2016-01-31T20:21:24.000Z
2022-03-16T01:20:08.000Z
qa/rpc-tests/zmq_test.py
gandrewstone/bitcoin
05de381c02eb4bfca94957733acadfa217527f25
[ "MIT" ]
295
2015-10-19T16:12:29.000Z
2021-08-02T20:05:17.000Z
#!/usr/bin/env python3 # Copyright (c) 2015 The Bitcoin Core developers # Copyright (c) 2015-2017 The Bitcoin Unlimited developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. # # Test ZMQ interface # if __name__ == '__main...
37.850467
245
0.564691
#!/usr/bin/env python3 # Copyright (c) 2015 The Bitcoin Core developers # Copyright (c) 2015-2017 The Bitcoin Unlimited developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. # # Test ZMQ interface # import time import test_f...
0
0
0
7,130
0
346
0
27
247
083ca184ae9015b2a796f748eed530d0a8d956fc
1,204
py
Python
purifier_reader/hello.py
gittubbs/giuliot
5053d1355f3db8ce184f0e7a890228f261f3a27e
[ "MIT" ]
null
null
null
purifier_reader/hello.py
gittubbs/giuliot
5053d1355f3db8ce184f0e7a890228f261f3a27e
[ "MIT" ]
null
null
null
purifier_reader/hello.py
gittubbs/giuliot
5053d1355f3db8ce184f0e7a890228f261f3a27e
[ "MIT" ]
null
null
null
#!/usr/bin/env pipenv-shebang import csv import time import configReader from datetime import datetime from miio import AirPurifierMiot configFile = "config.yaml" ip = configReader.fetchIpAddress(configFile,"airpurifier") token = configReader.fetchToken(configFile,"airpurifier") air = AirPurifierMiot(ip,token) while...
26.173913
97
0.563123
#!/usr/bin/env pipenv-shebang import csv import time import yaml import configReader from datetime import datetime from miio import AirPurifierMiot configFile = "config.yaml" ip = configReader.fetchIpAddress(configFile,"airpurifier") token = configReader.fetchToken(configFile,"airpurifier") air = AirPurifierMiot(ip,t...
2
0
0
0
0
0
0
-10
22
289ddd19b53f8e810f7c2c16c9a4e2eb67fa678d
767
py
Python
devtools/conda-recipe-dev/manage_local_dev_version.py
uibcdf/NetLabTools
a61732c341fbb700dcacf8a66d3776e6dd7e4fa4
[ "MIT" ]
1
2022-02-22T02:19:15.000Z
2022-02-22T02:19:15.000Z
devtools/conda-recipe-dev/manage_local_dev_version.py
uibcdf/NetLabTools
a61732c341fbb700dcacf8a66d3776e6dd7e4fa4
[ "MIT" ]
null
null
null
devtools/conda-recipe-dev/manage_local_dev_version.py
uibcdf/NetLabTools
a61732c341fbb700dcacf8a66d3776e6dd7e4fa4
[ "MIT" ]
null
null
null
import sys if '--install' in sys.argv[1:]: print('Building and installing local dev version via conda') installing() elif '--remove' in sys.argv[1:]: print('Removing local dev package') remove() elif '--update' in sys.argv[1:]: print('Updating local dev package') update()
25.566667
71
0.681877
import os import sys from numpy.distutils.exec_command import exec_command def installing(): status, output = exec_command('conda build . --no-anaconda-upload') status, output = exec_command('conda build . --output') status, output = exec_command('conda install --use-local '+output) status, output = e...
0
0
0
0
0
336
0
20
113
c03fa08f9a8575bf60141ba2ce0270b9fa23f1bc
911
py
Python
setup.py
awslabs/aws-sdk-api-changes
a3e6cbad729bb69f9d63373dc52c5e53faa349f2
[ "Apache-2.0" ]
11
2020-04-27T22:53:01.000Z
2021-09-09T16:19:09.000Z
setup.py
awslabs/aws-sdk-api-changes
a3e6cbad729bb69f9d63373dc52c5e53faa349f2
[ "Apache-2.0" ]
4
2020-03-05T17:41:25.000Z
2021-06-02T02:39:34.000Z
setup.py
awslabs/aws-sdk-api-changes
a3e6cbad729bb69f9d63373dc52c5e53faa349f2
[ "Apache-2.0" ]
2
2020-03-12T10:23:51.000Z
2021-01-27T10:56:10.000Z
from setuptools import setup, find_packages setup( name="apichanges", version='0.0.1', description="AWS API Changes", long_description=read('readme.md'), long_description_content_type='text/markdown', license="Apache-2.0", packages=find_packages(), entry_points={ 'console_scri...
22.775
55
0.553238
import os from io import open from setuptools import setup, find_packages def read(fname): return open( os.path.join(os.path.dirname(__file__), fname), encoding='utf-8').read() setup( name="apichanges", version='0.0.1', description="AWS API Changes", long_description=read('readme...
0
0
0
0
0
101
0
-14
67
bfffe9a27da276a65e6f804ee59cd334d91df562
19,977
py
Python
core/utils.py
Special-K-s-Flightsim-Bots/DCSServerBot
7913a3ce684817d1033b7f45720d815668f71c34
[ "MIT" ]
12
2021-05-05T05:21:57.000Z
2022-03-15T06:07:28.000Z
core/utils.py
Special-K-s-Flightsim-Bots/DCSServerBot
7913a3ce684817d1033b7f45720d815668f71c34
[ "MIT" ]
5
2021-05-04T21:28:12.000Z
2022-01-11T21:29:59.000Z
core/utils.py
Special-K-s-Flightsim-Bots/DCSServerBot
7913a3ce684817d1033b7f45720d815668f71c34
[ "MIT" ]
3
2021-05-15T17:57:23.000Z
2022-02-20T18:40:32.000Z
# utils.py import os import re from configparser import ConfigParser SAVED_GAMES = os.path.expandvars('%USERPROFILE%\\Saved Games') REGEXP = { 'branch': re.compile(r'"branch": "(?P<branch>.*)"'), 'version': re.compile(r'"version": "(?P<version>.*)"') } PATCHNOTES_URL = 'https://www.digitalcombatsimulator.com/e...
44.892135
330
0.580818
# utils.py import asyncio import aiohttp import discord import math import os import psutil import re import socket import subprocess import psycopg2 import xmltodict from core import const from datetime import datetime, timedelta from configparser import ConfigParser from contextlib import closing, suppress from disco...
90
0
3,680
0
0
15,107
0
-9
745
5f2b905591861c9888da34fd68f816a7a4aefabb
666
py
Python
lab/urls.py
kuipumu/pharma_test_project
52c7604fe0a1e484510a41be9fad3ca39f321c0a
[ "MIT" ]
null
null
null
lab/urls.py
kuipumu/pharma_test_project
52c7604fe0a1e484510a41be9fad3ca39f321c0a
[ "MIT" ]
null
null
null
lab/urls.py
kuipumu/pharma_test_project
52c7604fe0a1e484510a41be9fad3ca39f321c0a
[ "MIT" ]
null
null
null
"""lab app URL configuration""" from django.urls import path from django.utils.translation import gettext_lazy as _ from .views import (SampleCreateView, SampleDeleteView, SampleListView, SampleUpdateView) urlpatterns = [ path( _(''), SampleListView.as_view(), name='sample_list' ), ...
21.483871
71
0.578078
"""lab app URL configuration""" from django.urls import path from django.utils.translation import gettext_lazy as _ from .views import (SampleCreateView, SampleDeleteView, SampleListView, SampleUpdateView) urlpatterns = [ path( _(''), SampleListView.as_view(), name='sa...
0
0
0
0
0
0
0
20
0
a26b8dd049891ebc316fd75851d679a7536ef505
2,614
py
Python
examples/reverse_regex/run.py
PatrikValkovic/grammpy
8308a1fd349bf9ea0d267360cc9a4ab20d1629e8
[ "MIT" ]
1
2021-02-04T12:41:08.000Z
2021-02-04T12:41:08.000Z
examples/reverse_regex/run.py
PatrikValkovic/grammpy
8308a1fd349bf9ea0d267360cc9a4ab20d1629e8
[ "MIT" ]
3
2017-07-08T16:28:52.000Z
2020-04-23T18:06:24.000Z
examples/reverse_regex/run.py
PatrikValkovic/grammpy
8308a1fd349bf9ea0d267360cc9a4ab20d1629e8
[ "MIT" ]
1
2021-02-04T12:41:10.000Z
2021-02-04T12:41:10.000Z
#!/usr/bin/env python """ :Author Patrik Valkovic :Created 19.03.2019 12:21 :Licence MIT Part of grammpy """ from string import ascii_lowercase from grammpy.transforms import ContextFree, InverseContextFree, InverseCommon from grammpy.parsers import cyk g = Grammar(terminals=list(ascii_lowercase + '()*+'), ...
24.429907
113
0.620888
#!/usr/bin/env python """ :Author Patrik Valkovic :Created 19.03.2019 12:21 :Licence MIT Part of grammpy """ from string import ascii_lowercase from grammpy import * from grammpy.transforms import ContextFree, InverseContextFree, InverseCommon from grammpy.parsers import cyk class BaseNonterminal(Nonterminal): @...
0
41
0
1,237
0
0
0
0
344
49f3c7adc5bd9f88344a480098ff3f9f794adb46
5,625
py
Python
rivalcfg/devices/aerox3_wireless_wired.py
Clueninja/rivalcfg
f7e2a3480c5f0b9a0b992ba5af7ff2025b2af346
[ "WTFPL" ]
604
2016-03-31T12:22:26.000Z
2022-03-31T18:51:50.000Z
rivalcfg/devices/aerox3_wireless_wired.py
Clueninja/rivalcfg
f7e2a3480c5f0b9a0b992ba5af7ff2025b2af346
[ "WTFPL" ]
162
2016-04-17T10:58:08.000Z
2022-03-11T18:59:18.000Z
rivalcfg/devices/aerox3_wireless_wired.py
Clueninja/rivalcfg
f7e2a3480c5f0b9a0b992ba5af7ff2025b2af346
[ "WTFPL" ]
89
2016-04-10T08:56:58.000Z
2022-03-18T21:04:10.000Z
from .. import usbhid _BATTERY_CHARGING_FLAG = 0b10000000 profile = { "name": "SteelSeries Aerox 3 Wireless", "models": [ { "name": "SteelSeries Aerox 3 Wireless (wired mode)", "vendor_id": 0x1038, "product_id": 0x183A, "endpoint": 3, }, ],...
38.793103
188
0.487467
from .. import usbhid _BATTERY_CHARGING_FLAG = 0b10000000 profile = { "name": "SteelSeries Aerox 3 Wireless", "models": [ { "name": "SteelSeries Aerox 3 Wireless (wired mode)", "vendor_id": 0x1038, "product_id": 0x183A, "endpoint": 3, }, ],...
0
0
0
0
0
0
0
0
0
ba1e29dc08a0b2d8d84f5c9d56cbf91a9679293a
2,921
py
Python
wtl/wtlib/tests/models.py
elegion/djangodash2013
3814123f9bff213a5d74db05db3caa83caea731c
[ "MIT" ]
null
null
null
wtl/wtlib/tests/models.py
elegion/djangodash2013
3814123f9bff213a5d74db05db3caa83caea731c
[ "MIT" ]
1
2017-09-19T17:06:49.000Z
2017-09-19T17:06:49.000Z
wtl/wtlib/tests/models.py
elegion/djangodash2013
3814123f9bff213a5d74db05db3caa83caea731c
[ "MIT" ]
null
null
null
from __future__ import unicode_literals
38.434211
79
0.690175
from __future__ import unicode_literals from django.test import TestCase from wtl.wtlib.models import Library, LibraryVersion from wtl.wtlib.tests.factories import (LibraryFactory, LibraryVersionFactory, ProjectFactory) class LibraryTestCase(TestCase): def test_str(self): ...
0
0
0
2,588
0
0
0
153
137
2e4bea81e1ee83caa0412c214e95dd141dc84725
795
py
Python
setup.py
muchrooms/esp8266.py
f1a61ffd65b157b392b7e3fba2394db86167e0f6
[ "MIT" ]
2
2017-06-17T13:57:39.000Z
2018-01-05T12:52:35.000Z
setup.py
muchrooms/esp8266.py
f1a61ffd65b157b392b7e3fba2394db86167e0f6
[ "MIT" ]
null
null
null
setup.py
muchrooms/esp8266.py
f1a61ffd65b157b392b7e3fba2394db86167e0f6
[ "MIT" ]
1
2022-01-16T13:32:11.000Z
2022-01-16T13:32:11.000Z
import setuptools with open("README.md", "r") as fh: long_description = fh.read() setuptools.setup( name="esp8266.py", version="0.0.3", author="letli", author_email="letli@74ls74.org", description="ESP8266 python library, a wrapper for AT commands (Hayes command set) using UART serial.", l...
29.444444
107
0.647799
import setuptools with open("README.md", "r") as fh: long_description = fh.read() setuptools.setup( name="esp8266.py", version="0.0.3", author="letli", author_email="letli@74ls74.org", description="ESP8266 python library, a wrapper for AT commands (Hayes command set) using UART serial.", l...
0
0
0
0
0
0
0
0
0
a4230e78f330762f47b06e0b4892c0e8814460aa
443
py
Python
PYTHON-SALA DE AULA/Exercicios condicionais/exercicio-09-2.py
JaumVitor/HOMEWORK-PYTHON
aff564ac61802c7417d7280a73c1ed4a98978ed3
[ "Apache-2.0" ]
null
null
null
PYTHON-SALA DE AULA/Exercicios condicionais/exercicio-09-2.py
JaumVitor/HOMEWORK-PYTHON
aff564ac61802c7417d7280a73c1ed4a98978ed3
[ "Apache-2.0" ]
null
null
null
PYTHON-SALA DE AULA/Exercicios condicionais/exercicio-09-2.py
JaumVitor/HOMEWORK-PYTHON
aff564ac61802c7417d7280a73c1ed4a98978ed3
[ "Apache-2.0" ]
null
null
null
sal = float ( input ('Saldo mdio ? ' )) if (sal <= 200) : nsal1= (sal* 0.90) print ('Valor do crdito 10% > R${}'.format(nsal1)) if (300 >= sal > 200) : nsal2 = (sal* 0.80) print ('Valor do crdito 20% > R${}'.format(nsal2)) if ( 400 >= sal > 300) : nsal3= (sal* 0.85) print ('Valor do crdito 25% ...
31.642857
55
0.534989
sal = float ( input ('Saldo médio ? ' )) if (sal <= 200) : nsal1= (sal* 0.90) print ('Valor do crédito 10% > R${}'.format(nsal1)) if (300 >= sal > 200) : nsal2 = (sal* 0.80) print ('Valor do crédito 20% > R${}'.format(nsal2)) if ( 400 >= sal > 300) : nsal3= (sal* 0.85) print ('Valor do crédito ...
10
0
0
0
0
0
0
0
0
283c050fe512d7f3367c0888bdda57bb2a71a4be
3,438
py
Python
extractors/TFIDF.py
Asichurter/APISeqFewShot
b4b7843da1f53cdc1d1711537c31305e7d5c6555
[ "MIT" ]
8
2020-05-14T19:29:41.000Z
2022-03-09T03:29:51.000Z
extractors/TFIDF.py
Asichurter/APISeqFewShot
b4b7843da1f53cdc1d1711537c31305e7d5c6555
[ "MIT" ]
null
null
null
extractors/TFIDF.py
Asichurter/APISeqFewShot
b4b7843da1f53cdc1d1711537c31305e7d5c6555
[ "MIT" ]
null
null
null
############################################## # (ngram,api) # TF-IDF ############################################## if __name__ == '__main__': calTFIDF(dataset_path='/home/asichurter/datasets/JSONs/virushare-10-3gram/all/', dict_map_path='/home/asichurter/datasets/JSONs/virushare-10-3gram/data/word...
31.254545
106
0.575044
import os import numpy as np from sklearn.feature_extraction.text import TfidfTransformer from tqdm import tqdm from utils.file import loadJson, dumpJson ############################################## # 根据序列数据集(ngram,api),先统计元素的样本内频率, # 然后计算各个特征的TF-IDF值 ############################################## def calTFIDF(dat...
453
0
0
0
0
2,720
0
44
133
55fdabe59356478a8bbb3c2ada5b0253a4277315
4,722
py
Python
pijuice/main.py
hferentschik/balena-strand
09a905110d95e8bab2a65cb94e4a3babc6d2a9d3
[ "MIT" ]
null
null
null
pijuice/main.py
hferentschik/balena-strand
09a905110d95e8bab2a65cb94e4a3babc6d2a9d3
[ "MIT" ]
null
null
null
pijuice/main.py
hferentschik/balena-strand
09a905110d95e8bab2a65cb94e4a3babc6d2a9d3
[ "MIT" ]
null
null
null
import datetime import json import os import time import paho.mqtt.client as mqtt from pijuice import PiJuice from balena import Balena from datetime import datetime, timedelta from dateutil.tz import tzutc from time import sleep from w1thermsensor import W1ThermSensor WAKEALARM = '/sys/class/rtc/rtc0/wakealarm' BR...
31.691275
119
0.653748
import datetime import json import os import time import paho.mqtt.client as mqtt from pijuice import PiJuice from balena import Balena from datetime import datetime, timedelta from dateutil.tz import tzutc from time import sleep from w1thermsensor import W1ThermSensor WAKEALARM = '/sys/class/rtc/rtc0/wakealarm' BR...
0
0
0
0
0
0
0
0
0
a89480e4be4df81910a15ef7357fd7cb7699984d
5,629
py
Python
v2ex_spider/rss_spider.py
yingziwu/v2ex_delete
8f1befcd43bd83c9531bf7180e23bbaf8b12b4ed
[ "Apache-2.0" ]
82
2017-05-20T02:31:51.000Z
2021-12-29T08:08:10.000Z
v2ex_spider/rss_spider.py
yingziwu/v2ex_delete
8f1befcd43bd83c9531bf7180e23bbaf8b12b4ed
[ "Apache-2.0" ]
8
2017-06-13T16:07:33.000Z
2018-04-01T07:35:07.000Z
v2ex_spider/rss_spider.py
yingziwu/v2ex_delete
8f1befcd43bd83c9531bf7180e23bbaf8b12b4ed
[ "Apache-2.0" ]
4
2017-06-14T13:25:16.000Z
2020-12-15T09:52:44.000Z
''' Created on May 9, 2017 @author: yingziwu ''' if __name__ == '__main__': Rss_spider() print('Finish!')
34.746914
122
0.570794
''' Created on May 9, 2017 @author: yingziwu ''' import feedparser import time import re import requests from redis import Redis from rq import Queue import json import os import logging from v2ex_spider import topic_spider from v2ex_base.v2_sql import SQL import settings class Rss_spider(object): ''' A Spi...
0
0
0
5,242
0
0
0
-40
311
06b5e7449239a7083bbc31f928e2608669ee09f3
84
py
Python
alisu/custom_core/bot_raw_custom_methods_core/__init__.py
sh-himanshu/alisurobot
4d315acaf28156feb79864b56b64636c4217b4d4
[ "MIT" ]
9
2021-08-17T18:30:13.000Z
2021-10-02T09:22:34.000Z
alisu/custom_core/bot_raw_custom_methods_core/__init__.py
sh-himanshu/alisurobot
4d315acaf28156feb79864b56b64636c4217b4d4
[ "MIT" ]
1
2021-12-20T19:48:44.000Z
2021-12-20T19:48:44.000Z
alisu/custom_core/bot_raw_custom_methods_core/__init__.py
aksr-aashish/alisurobot
0b0c05ea74ba6126ca9b328de16c808c72be365d
[ "MIT" ]
8
2021-08-17T21:14:13.000Z
2022-01-29T23:34:14.000Z
from typing import List from . import langs __all__: List[str] = [ "langs", ]
10.5
23
0.642857
from typing import List from . import langs __all__: List[str] = [ "langs", ]
0
0
0
0
0
0
0
0
0
6c8d7db68476f02b98f3c577ee4055d5696455d9
2,657
py
Python
lxmls/sequences/extended_feature.py
khui/lxmls-toolkit
f1a2fb9aa46257b509c79e83182d7d5495061398
[ "MIT" ]
null
null
null
lxmls/sequences/extended_feature.py
khui/lxmls-toolkit
f1a2fb9aa46257b509c79e83182d7d5495061398
[ "MIT" ]
null
null
null
lxmls/sequences/extended_feature.py
khui/lxmls-toolkit
f1a2fb9aa46257b509c79e83182d7d5495061398
[ "MIT" ]
1
2020-01-09T17:02:50.000Z
2020-01-09T17:02:50.000Z
# ---------- # Feature Class # Extracts features from a labeled corpus (only supported features are extracted # ----------
33.632911
80
0.517877
from lxmls.sequences.id_feature import IDFeatures # ---------- # Feature Class # Extracts features from a labeled corpus (only supported features are extracted # ---------- class ExtendedFeatures(IDFeatures): def add_emission_features(self, sequence, pos, y, features): x = sequence.x[pos] # Get t...
0
0
0
2,460
0
0
0
28
44
e6c11cff9e76a688302b2d8a124c1cb1d590607b
13,081
py
Python
ml4a/dataset/dataset_utils.py
KushGabani/ml4a-guides
d71b61a99c417b9ace3404420b37d22f6da06153
[ "MIT" ]
1,110
2016-06-02T23:58:41.000Z
2020-11-29T07:24:20.000Z
ml4a/dataset/dataset_utils.py
KushGabani/ml4a-guides
d71b61a99c417b9ace3404420b37d22f6da06153
[ "MIT" ]
49
2016-08-14T22:58:41.000Z
2020-07-17T17:59:56.000Z
ml4a/dataset/dataset_utils.py
KushGabani/ml4a-guides
d71b61a99c417b9ace3404420b37d22f6da06153
[ "MIT" ]
300
2016-06-13T23:06:55.000Z
2020-11-18T22:42:55.000Z
import sys import argparse from PIL import ImageFile ImageFile.LOAD_TRUNCATED_IMAGES = True allowable_actions = ['none', 'quantize', 'trace', 'hed', 'sketch', 'segment', 'simplify', 'face', 'upsample', 'sss'] # input, output parser = argparse.ArgumentParser() parser.add_argument("--input_src", help="input: directory...
45.578397
205
0.655684
import os import sys from random import random, sample import argparse from tqdm import tqdm import matplotlib.pyplot as plt import numpy as np from PIL import Image, ImageDraw, ImageFile from imutils import video import cv2 ImageFile.LOAD_TRUNCATED_IMAGES = True allowable_actions = ['none', 'quantize', 'trace', 'hed'...
0
0
0
0
0
8,306
0
40
421
af4b747e08e26a56b9c717b8ed199674ed5f60b8
480
py
Python
python/coursera_python/SEC/sc.py
SayanGhoshBDA/code-backup
8b6135facc0e598e9686b2e8eb2d69dd68198b80
[ "MIT" ]
16
2018-11-26T08:39:42.000Z
2019-05-08T10:09:52.000Z
python/coursera_python/SEC/sc.py
SayanGhoshBDA/code-backup
8b6135facc0e598e9686b2e8eb2d69dd68198b80
[ "MIT" ]
8
2020-05-04T06:29:26.000Z
2022-02-12T05:33:16.000Z
python/coursera_python/SEC/sc.py
SayanGhoshBDA/code-backup
8b6135facc0e598e9686b2e8eb2d69dd68198b80
[ "MIT" ]
5
2020-02-11T16:02:21.000Z
2021-02-05T07:48:30.000Z
# to decrypt a msg msg = input("Enter the encrypted message :") en_msg = msg.upper() #print(en_msg) key = 1 for i in range(27): str1 = "" #key = 1 for letter in en_msg: l = ord(letter) + key if l > 90: l = l - 90 + 64 str1 = str1 + chr(l) key = key + 1 print(str1) key = 1 '''for i in range(27): str1 =...
12.972973
44
0.5375
# to decrypt a msg msg = input("Enter the encrypted message :") en_msg = msg.upper() #print(en_msg) key = 1 for i in range(27): str1 = "" #key = 1 for letter in en_msg: l = ord(letter) + key if l > 90: l = l - 90 + 64 str1 = str1 + chr(l) key = key + 1 print(str1) key = 1 '''for i in range(27): str1 =...
0
0
0
0
0
0
0
0
0
cb800acabcc465078e1b3bddd2513be5b3b3a472
22,294
py
Python
code/map_graph_Custom.py
thedrdos/covid-map
745b1ea679da52638abd586e5357aec2cda4cb09
[ "MIT" ]
null
null
null
code/map_graph_Custom.py
thedrdos/covid-map
745b1ea679da52638abd586e5357aec2cda4cb09
[ "MIT" ]
null
null
null
code/map_graph_Custom.py
thedrdos/covid-map
745b1ea679da52638abd586e5357aec2cda4cb09
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created Jul 2020 @author: TheDrDOS """ # # Clear the Spyder console and variables # try: # from IPython import get_ipython # get_ipython().magic('clear') # get_ipython().magic('reset -f') # except: # pass from bokeh.io import save, output_file from b...
37.280936
825
0.661344
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created Jul 2020 @author: TheDrDOS """ # # Clear the Spyder console and variables # try: # from IPython import get_ipython # get_ipython().magic('clear') # get_ipython().magic('reset -f') # except: # pass from bokeh.io import show, save, output_file ...
0
0
0
0
0
382
0
223
202
fceabbb74d3274f16916b7935a7ec5684e3f5c21
193
py
Python
blog/urls.py
sz-lhl/myblogtest
21467b36287a7e07e089ec0e8495eb598783e31c
[ "MIT" ]
null
null
null
blog/urls.py
sz-lhl/myblogtest
21467b36287a7e07e089ec0e8495eb598783e31c
[ "MIT" ]
null
null
null
blog/urls.py
sz-lhl/myblogtest
21467b36287a7e07e089ec0e8495eb598783e31c
[ "MIT" ]
null
null
null
from django.conf.urls import url from . import views app_name = 'blog' urlpatterns=[ url(r'^$',views.index,name='index'), url(r'^post/(?P<pk>[0-9]+)/$',views.detail,name='detail'), ]
19.3
62
0.632124
from django.conf.urls import url from . import views app_name = 'blog' urlpatterns=[ url(r'^$',views.index,name='index'), url(r'^post/(?P<pk>[0-9]+)/$',views.detail,name='detail'), ]
0
0
0
0
0
0
0
0
0
275a93d01f327c22e46db6bb02fd9ad490838980
1,033
py
Python
reversi/strategies/coordinator/selector.py
y-tetsu/othello
73eabfe22d6b44bbfa0b436e6287e3e7356620f4
[ "MIT" ]
10
2020-07-24T22:04:51.000Z
2022-03-25T06:09:48.000Z
reversi/strategies/coordinator/selector.py
y-tetsu/othello
73eabfe22d6b44bbfa0b436e6287e3e7356620f4
[ "MIT" ]
12
2021-04-30T09:53:18.000Z
2022-02-25T04:16:02.000Z
reversi/strategies/coordinator/selector.py
y-tetsu/othello
73eabfe22d6b44bbfa0b436e6287e3e7356620f4
[ "MIT" ]
1
2021-11-25T13:12:32.000Z
2021-11-25T13:12:32.000Z
"""Selector """
25.825
86
0.592449
"""Selector """ from reversi.strategies.common import AbstractSelector class Selector(AbstractSelector): """Selector """ def select_moves(self, color, board, moves, scores, depth): """select_moves """ return moves class Selector_W(Selector): """Selector_W ワースト値に基...
165
0
0
858
0
0
0
33
69
de65064f55beb0b25a599d489a5b2d753e5481b3
3,105
py
Python
turnovertools/video/output.py
morganwl/turnovertools
ea911853033ed5087b40852b5adc3b8f5d0a903d
[ "MIT" ]
null
null
null
turnovertools/video/output.py
morganwl/turnovertools
ea911853033ed5087b40852b5adc3b8f5d0a903d
[ "MIT" ]
3
2021-03-22T00:44:24.000Z
2021-06-26T19:32:31.000Z
turnovertools/video/output.py
morganwl/turnovertools
ea911853033ed5087b40852b5adc3b8f5d0a903d
[ "MIT" ]
null
null
null
"""Video output tools for turnovertools."""
34.5
74
0.589372
"""Video output tools for turnovertools.""" import ffmpeg from timecode import Timecode class VideoFile(object): """A videofile which can either be imported or exported from.""" def __init__(self, filepath, **kwargs): self.filepath = filepath self._probe() def _probe(self): probe ...
0
0
0
2,362
0
515
0
0
183
de9ec2fa7a690686c868ff79459cba2ad12aba35
325
py
Python
app/stops/migrations/0005_auto_20190622_2032.py
IvanBodnar/subway-api
36d17533995394fc5a5e6e1707ef312778296869
[ "MIT" ]
null
null
null
app/stops/migrations/0005_auto_20190622_2032.py
IvanBodnar/subway-api
36d17533995394fc5a5e6e1707ef312778296869
[ "MIT" ]
9
2019-12-04T23:23:07.000Z
2022-02-10T08:12:30.000Z
app/stops/migrations/0005_auto_20190622_2032.py
IvanBodnar/subway-api
36d17533995394fc5a5e6e1707ef312778296869
[ "MIT" ]
null
null
null
# Generated by Django 2.2.2 on 2019-06-22 20:32
18.055556
47
0.587692
# Generated by Django 2.2.2 on 2019-06-22 20:32 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('stops', '0004_auto_20190622_1914'), ] operations = [ migrations.RenameModel( old_name='Stops', new_name='Stop', ), ...
0
0
0
219
0
0
0
11
46
6d211e6dff89896320320bc5f8bea4a1d0f85732
544
py
Python
webapp/news/views.py
Varlok009/tabletop-games-bboard
41037d4c1bcbbf563051979b630e104006254c4f
[ "MIT" ]
null
null
null
webapp/news/views.py
Varlok009/tabletop-games-bboard
41037d4c1bcbbf563051979b630e104006254c4f
[ "MIT" ]
1
2022-03-20T07:47:04.000Z
2022-03-20T07:47:04.000Z
webapp/news/views.py
Varlok009/tabletop-games-bboard
41037d4c1bcbbf563051979b630e104006254c4f
[ "MIT" ]
1
2022-03-01T18:09:26.000Z
2022-03-01T18:09:26.000Z
from flask import Blueprint blueprint = Blueprint('news', __name__, url_prefix='/news')
32
78
0.674632
from flask import Blueprint, render_template, request from webapp.methods import get_news blueprint = Blueprint('news', __name__, url_prefix='/news') @blueprint.route('/news', methods=['GET']) @blueprint.route('/news/<int:id>', methods=['GET']) def news(): news_id = request.args['id'] news_data = list(filter...
14
362
0
0
0
0
0
40
45
1c2aebb86482ed8ba85003c7cb15999950ea331e
5,125
py
Python
ape_trezor/client.py
unparalleled-js/ape-trezor
61cf94e3d49089a3c9f753ce18bc9b7323e82e6a
[ "Apache-2.0" ]
null
null
null
ape_trezor/client.py
unparalleled-js/ape-trezor
61cf94e3d49089a3c9f753ce18bc9b7323e82e6a
[ "Apache-2.0" ]
null
null
null
ape_trezor/client.py
unparalleled-js/ape-trezor
61cf94e3d49089a3c9f753ce18bc9b7323e82e6a
[ "Apache-2.0" ]
null
null
null
from typing import Tuple from ape_trezor.exceptions import (TrezorClientError) def extract_signature_vrs_bytes(signature_bytes: bytes) -> Tuple[int, bytes, bytes]: """ Breaks `signature_bytes` into 3 chunks vrs, where `v` is 1 byte, `r` is 32 bytes, and `s` is 32 bytes. """ if signature_bytes is...
34.166667
96
0.636098
from typing import Any, Dict, Tuple from eth_typing.evm import ChecksumAddress from trezorlib import ethereum # type: ignore from trezorlib.client import get_default_client # type: ignore from trezorlib.exceptions import PinException, TrezorFailure # type: ignore from trezorlib.messages import TransactionType # ty...
0
47
0
3,939
0
0
0
288
319