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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
b4e91187d37ef6e21662f4c943b982a9d88a8734 | 4,927 | py | Python | LeetCode-All-Solution/Python3/LC-0393-UTF-8-Validation.py | YuweiYin/Algorithm_YuweiYin | 28648fac59c5a4e3c907978cbd1b3e662ba18fd5 | [
"MIT"
] | null | null | null | LeetCode-All-Solution/Python3/LC-0393-UTF-8-Validation.py | YuweiYin/Algorithm_YuweiYin | 28648fac59c5a4e3c907978cbd1b3e662ba18fd5 | [
"MIT"
] | null | null | null | LeetCode-All-Solution/Python3/LC-0393-UTF-8-Validation.py | YuweiYin/Algorithm_YuweiYin | 28648fac59c5a4e3c907978cbd1b3e662ba18fd5 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# -*- coding:utf-8 -*-
"""=================================================================
@Project : Algorithm_YuweiYin/LeetCode-All-Solution/Python3
@File : LC-0393-UTF-8-Validation.py
@Author : [YuweiYin](https://github.com/YuweiYin)
@Date : 2022-03-13
==================================... | 37.045113 | 101 | 0.53907 | #!/usr/bin/env python
# -*- coding:utf-8 -*-
"""=================================================================
@Project : Algorithm_YuweiYin/LeetCode-All-Solution/Python3
@File : LC-0393-UTF-8-Validation.py
@Author : [YuweiYin](https://github.com/YuweiYin)
@Date : 2022-03-13
==================================... | 0 | 0 | 0 | 2,090 | 0 | 412 | 0 | -8 | 90 |
3a4761f7016b47a7fac76178d26be88cac43393c | 544 | py | Python | __getCopyOfOwnSourceCode.py | simdevex/01.Basics | cf4f372384e66f4b26e4887d2f5d815a1f8e929c | [
"MIT"
] | null | null | null | __getCopyOfOwnSourceCode.py | simdevex/01.Basics | cf4f372384e66f4b26e4887d2f5d815a1f8e929c | [
"MIT"
] | null | null | null | __getCopyOfOwnSourceCode.py | simdevex/01.Basics | cf4f372384e66f4b26e4887d2f5d815a1f8e929c | [
"MIT"
] | null | null | null | '''
Python program to create a copy of its own source code
'''
main () | 25.904762 | 56 | 0.617647 | '''
Python program to create a copy of its own source code
'''
def file_copy(src, dest):
with open(src) as f, open(dest, 'w') as d:
d.write(f.read())
def main ():
scrFile = str (input ("Select source file\n"))
destFile = str (input ("Select destination file\n"))
# copy source file to destinat... | 0 | 0 | 0 | 0 | 0 | 422 | 0 | 0 | 46 |
4aa890cef6878311bafec7312bc4e8a654893f1b | 598 | py | Python | examples/pipeline/detect.py | jaib1/yass | 9899c7d63c522a26b160ac7a223c794dfd3e23c6 | [
"Apache-2.0"
] | 59 | 2017-10-29T02:21:17.000Z | 2022-03-23T01:12:27.000Z | examples/pipeline/detect.py | jaib1/yass | 9899c7d63c522a26b160ac7a223c794dfd3e23c6 | [
"Apache-2.0"
] | 257 | 2017-10-25T17:11:36.000Z | 2021-10-21T19:12:00.000Z | examples/pipeline/detect.py | jaib1/yass | 9899c7d63c522a26b160ac7a223c794dfd3e23c6 | [
"Apache-2.0"
] | 24 | 2017-10-28T19:59:44.000Z | 2021-07-14T09:56:45.000Z | """
Detecting spikes
"""
import logging
import yass
from yass import preprocess
from yass import detect
# configure logging module to get useful information
logging.basicConfig(level=logging.INFO)
# set yass configuration parameters
yass.set_config('config.yaml', 'example-detect')
# run preprocessor
standardized_pa... | 24.916667 | 72 | 0.687291 | """
Detecting spikes
"""
import logging
import yass
from yass import preprocess
from yass import detect
# configure logging module to get useful information
logging.basicConfig(level=logging.INFO)
# set yass configuration parameters
yass.set_config('config.yaml', 'example-detect')
# run preprocessor
standardized_pa... | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
d256ccdbcb2e1cf18ccd4e854139bf9f38a8d3e3 | 202 | py | Python | front/front/__main__.py | VladimirSiv/semantic-search-system | 96b6581f191aacb1157b1408b2726e317ddc2c49 | [
"MIT"
] | 1 | 2021-07-01T08:53:46.000Z | 2021-07-01T08:53:46.000Z | front/front/__main__.py | VladimirSiv/semantic-search-system | 96b6581f191aacb1157b1408b2726e317ddc2c49 | [
"MIT"
] | null | null | null | front/front/__main__.py | VladimirSiv/semantic-search-system | 96b6581f191aacb1157b1408b2726e317ddc2c49 | [
"MIT"
] | 1 | 2021-12-29T01:18:38.000Z | 2021-12-29T01:18:38.000Z | import os
from front.logging import logger_setup
from front.server import app
if __name__ == "__main__":
logger_setup()
app.run(
debug=True,
port=os.getenv("FRONT_PORT"),
)
| 18.363636 | 38 | 0.658416 | import os
from front.logging import logger_setup
from front.server import app
if __name__ == "__main__":
logger_setup()
app.run(
debug=True,
port=os.getenv("FRONT_PORT"),
)
| 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
9deaa5a057beaf48cfaa48f503b007ccb6aed823 | 161 | py | Python | keras_gym/caching/__init__.py | axb2035/keras-gym | 076ebbca022f4dbdcae2a14967f824652fe473c3 | [
"MIT"
] | 16 | 2019-07-01T10:56:26.000Z | 2021-01-31T18:56:56.000Z | keras_gym/caching/__init__.py | axb2035/keras-gym | 076ebbca022f4dbdcae2a14967f824652fe473c3 | [
"MIT"
] | 10 | 2019-03-10T21:56:10.000Z | 2020-09-06T21:49:55.000Z | keras_gym/caching/__init__.py | axb2035/keras-gym | 076ebbca022f4dbdcae2a14967f824652fe473c3 | [
"MIT"
] | 5 | 2019-08-02T22:11:19.000Z | 2020-04-19T20:18:38.000Z | # flake8: noqa
__all__ = (
'ExperienceReplayBuffer',
'MonteCarloCache',
'NStepCache',
)
| 14.636364 | 32 | 0.689441 | # flake8: noqa
from .short_term import *
from .experience_replay import *
__all__ = (
'ExperienceReplayBuffer',
'MonteCarloCache',
'NStepCache',
)
| 0 | 0 | 0 | 0 | 0 | 0 | 0 | 15 | 44 |
1acc8f06713fe4097f76d6d7ca013f8c15c51ee7 | 2,126 | py | Python | WebCrawlers/amazon_bestsellerscraper.py | jameskomo/web-scraper | e4c32c93591e7a6109123b078f543612e6ccea0e | [
"MIT"
] | null | null | null | WebCrawlers/amazon_bestsellerscraper.py | jameskomo/web-scraper | e4c32c93591e7a6109123b078f543612e6ccea0e | [
"MIT"
] | null | null | null | WebCrawlers/amazon_bestsellerscraper.py | jameskomo/web-scraper | e4c32c93591e7a6109123b078f543612e6ccea0e | [
"MIT"
] | null | null | null | import csv
from bs4 import BeautifulSoup
from requests import get
with open('in_book.csv', 'w') as myFile:
writer = csv.writer(myFile, delimiter=";", quoting=csv.QUOTE_MINIMAL)
writer.writerow(["NAME", "URL", "Author", "Price",
"Number of Ratings", "Average Rating"])
for page in range... | 39.37037 | 78 | 0.52587 | import csv
from bs4 import BeautifulSoup
from requests import get
import lxml
with open('in_book.csv', 'w') as myFile:
writer = csv.writer(myFile, delimiter=";", quoting=csv.QUOTE_MINIMAL)
writer.writerow(["NAME", "URL", "Author", "Price",
"Number of Ratings", "Average Rating"])
for p... | 3 | 0 | 0 | 0 | 0 | 0 | 0 | -10 | 22 |
0b5d341d32d808bd2c274082dae2238c726bbfc2 | 258 | py | Python | output/models/nist_data/list_pkg/duration/schema_instance/nistschema_sv_iv_list_duration_max_length_4_xsd/__init__.py | tefra/xsdata-w3c-tests | b6b6a4ac4e0ab610e4b50d868510a8b7105b1a5f | [
"MIT"
] | 1 | 2021-08-14T17:59:21.000Z | 2021-08-14T17:59:21.000Z | output/models/nist_data/list_pkg/duration/schema_instance/nistschema_sv_iv_list_duration_max_length_4_xsd/__init__.py | tefra/xsdata-w3c-tests | b6b6a4ac4e0ab610e4b50d868510a8b7105b1a5f | [
"MIT"
] | 4 | 2020-02-12T21:30:44.000Z | 2020-04-15T20:06:46.000Z | output/models/nist_data/list_pkg/duration/schema_instance/nistschema_sv_iv_list_duration_max_length_4_xsd/__init__.py | tefra/xsdata-w3c-tests | b6b6a4ac4e0ab610e4b50d868510a8b7105b1a5f | [
"MIT"
] | null | null | null | from output.models.nist_data.list_pkg.duration.schema_instance.nistschema_sv_iv_list_duration_max_length_4_xsd.nistschema_sv_iv_list_duration_max_length_4 import NistschemaSvIvListDurationMaxLength4
__all__ = [
"NistschemaSvIvListDurationMaxLength4",
]
| 43 | 198 | 0.895349 | from output.models.nist_data.list_pkg.duration.schema_instance.nistschema_sv_iv_list_duration_max_length_4_xsd.nistschema_sv_iv_list_duration_max_length_4 import NistschemaSvIvListDurationMaxLength4
__all__ = [
"NistschemaSvIvListDurationMaxLength4",
]
| 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
c0a372e9e87cd526e31e34b865238c2436435c5a | 2,211 | py | Python | tests/demo-tests/test1.py | adhuliya/SLANG | ee3545e5436a7f21c87369665ee3761b45b0dc14 | [
"MIT"
] | 1 | 2020-06-16T13:50:50.000Z | 2020-06-16T13:50:50.000Z | tests/demo-tests/test1.py | adhuliya/SLANG | ee3545e5436a7f21c87369665ee3761b45b0dc14 | [
"MIT"
] | null | null | null | tests/demo-tests/test1.py | adhuliya/SLANG | ee3545e5436a7f21c87369665ee3761b45b0dc14 | [
"MIT"
] | 3 | 2019-03-04T10:33:43.000Z | 2019-10-03T18:46:21.000Z | #!/usr/bin/env python3
# MIT License.
# Copyright (c) 2019 The SLANG Authors.
"""
A sample analysis unit.
Every translation unit or program, has to be correctly converted
into an equivalent analysis unit (a python module).
Use this module as a target template.
"""
from typing import Dict
import span.ir.types as ty... | 26.963415 | 87 | 0.663048 | #!/usr/bin/env python3
# MIT License.
# Copyright (c) 2019 The SLANG Authors.
"""
A sample analysis unit.
Every translation unit or program, has to be correctly converted
into an equivalent analysis unit (a python module).
Use this module as a target template.
"""
from typing import Dict
import span.ir.types as ty... | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
39a0dacefb4c6ebebf35407a45ad3295ef3f9a17 | 771 | py | Python | blog_app/urls.py | oratosquilla-oratoria/django-blog | a821530ecabb3ab16d770d04c32c97db9d279177 | [
"MIT"
] | null | null | null | blog_app/urls.py | oratosquilla-oratoria/django-blog | a821530ecabb3ab16d770d04c32c97db9d279177 | [
"MIT"
] | null | null | null | blog_app/urls.py | oratosquilla-oratoria/django-blog | a821530ecabb3ab16d770d04c32c97db9d279177 | [
"MIT"
] | null | null | null | from django.urls import include, path
from . import views
urlpatterns = [
path('', views.home, name='home'),
path('page/<int:page>/', views.PostListView.as_view(), name='page'),
path('post/<int:pk>/', views.PostView.as_view(), name='post'),
path(
'search/',
include([
path(... | 30.84 | 75 | 0.565499 | from django.urls import include, path
from . import views
urlpatterns = [
path('', views.home, name='home'),
path('page/<int:page>/', views.PostListView.as_view(), name='page'),
path('post/<int:pk>/', views.PostView.as_view(), name='post'),
path(
'search/',
include([
path(... | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
351a7f4c76ce5d96fcf263fa7b8ef6c3b8093b4b | 3,187 | py | Python | src/kerod/layers/post_processing/post_processing_detr.py | LSanselme/kerod | cb52775ed501cbe4bd5fc0f22ec0359ca1d5f902 | [
"MIT"
] | 35 | 2020-06-14T11:20:54.000Z | 2022-03-02T14:42:25.000Z | src/kerod/layers/post_processing/post_processing_detr.py | LSanselme/kerod | cb52775ed501cbe4bd5fc0f22ec0359ca1d5f902 | [
"MIT"
] | 9 | 2021-02-03T15:01:39.000Z | 2022-03-16T01:46:38.000Z | src/kerod/layers/post_processing/post_processing_detr.py | LSanselme/kerod | cb52775ed501cbe4bd5fc0f22ec0359ca1d5f902 | [
"MIT"
] | 11 | 2021-02-02T09:41:16.000Z | 2022-03-01T15:43:31.000Z | import tensorflow as tf
from kerod.core.standard_fields import BoxField
from kerod.utils.ops import get_full_indices
from kerod.core.box_ops import convert_to_xyxy_coordinates
def post_processing(boxes: tf.Tensor,
logits: tf.Tensor,
image_information: tf.Tensor,
... | 48.287879 | 121 | 0.709131 | import tensorflow as tf
from kerod.core.standard_fields import BoxField
from kerod.utils.ops import get_full_indices
from kerod.core.box_ops import convert_to_xyxy_coordinates
def post_processing(boxes: tf.Tensor,
logits: tf.Tensor,
image_information: tf.Tensor,
... | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
16119b8bbc803a7b8359827fd20d947818c5fa1c | 629 | py | Python | docs/components_page/components/__tests__/wrappers.py | jouvin/dash-bootstrap-components | 79c0f19e139f48862fcc6e84ec9c6c14c343fbe4 | [
"Apache-2.0"
] | null | null | null | docs/components_page/components/__tests__/wrappers.py | jouvin/dash-bootstrap-components | 79c0f19e139f48862fcc6e84ec9c6c14c343fbe4 | [
"Apache-2.0"
] | null | null | null | docs/components_page/components/__tests__/wrappers.py | jouvin/dash-bootstrap-components | 79c0f19e139f48862fcc6e84ec9c6c14c343fbe4 | [
"Apache-2.0"
] | null | null | null | PY_WRAPPER = """
import dash
import dash_bootstrap_components as dbc
app = dash.Dash(external_stylesheets=[dbc.themes.BOOTSTRAP])
{snippet}
app.layout = html.Div([{components}])
"""
R_WRAPPER = """
library(dash)
library(dashBootstrapComponents)
library(dashHtmlComponents)
app <- Dash$new(external_stylesheets = dbc... | 17.971429 | 60 | 0.737679 | PY_WRAPPER = """
import dash
import dash_bootstrap_components as dbc
app = dash.Dash(external_stylesheets=[dbc.themes.BOOTSTRAP])
{snippet}
app.layout = html.Div([{components}])
"""
R_WRAPPER = """
library(dash)
library(dashBootstrapComponents)
library(dashHtmlComponents)
app <- Dash$new(external_stylesheets = dbc... | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
84eade5f0e8086909c09847c1e2ba4194fc5f5e5 | 18,595 | py | Python | test/test_md041.py | scop/pymarkdown | 562ba8f7857d99ba09e86e42de5a37ec6d9b2c30 | [
"MIT"
] | null | null | null | test/test_md041.py | scop/pymarkdown | 562ba8f7857d99ba09e86e42de5a37ec6d9b2c30 | [
"MIT"
] | null | null | null | test/test_md041.py | scop/pymarkdown | 562ba8f7857d99ba09e86e42de5a37ec6d9b2c30 | [
"MIT"
] | null | null | null | """
Module to provide tests related to the MD026 rule.
"""
| 27.630015 | 124 | 0.685668 | """
Module to provide tests related to the MD026 rule.
"""
from test.markdown_scanner import MarkdownScanner
import pytest
@pytest.mark.rules
def test_md041_bad_configuration_level():
"""
Test to make sure we get the expected behavior after scanning a good file from the
test/resources/rules/md004 directo... | 0 | 17,991 | 0 | 0 | 0 | 0 | 0 | 20 | 505 |
37c719002c25e2363eb7b735edaa65e509db4d43 | 114,171 | py | Python | centos7-hardening.py | yaroslav-gwit/server-hardening | 9a6ff74624fa93c0f85d97f12f051476fa10147d | [
"BSD-2-Clause"
] | null | null | null | centos7-hardening.py | yaroslav-gwit/server-hardening | 9a6ff74624fa93c0f85d97f12f051476fa10147d | [
"BSD-2-Clause"
] | null | null | null | centos7-hardening.py | yaroslav-gwit/server-hardening | 9a6ff74624fa93c0f85d97f12f051476fa10147d | [
"BSD-2-Clause"
] | null | null | null | #!/usr/bin/env python3
# native imports
from asyncio.subprocess import DEVNULL
import subprocess
import re
from os.path import exists
# 3rd party imports
from colorama import Fore
from tabulate import tabulate
# Bold table headers
bolded_string_Task = "\033[1m" + "Task name" + "\033[0m"
bolded_string_Status = "\033[1... | 39.933893 | 518 | 0.760517 | #!/usr/bin/env python3
# native imports
from asyncio.subprocess import DEVNULL
import subprocess
import argparse
import re
from os.path import exists
# 3rd party imports
from colorama import Fore, Back, Style
from tabulate import tabulate
# Bold table headers
bolded_string_Task = "\033[1m" + "Task name" + "\033[0m"
b... | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 | 22 |
b478d6418ee5dad6dcd91955bc4caf75cc98855b | 1,231 | py | Python | src/fdk_organization_bff/sparql/dataservice_queries.py | Informasjonsforvaltning/organization-page-bffe | 473dc9606649f864618f4f8bfc4a6a2a035f06d7 | [
"Apache-2.0"
] | null | null | null | src/fdk_organization_bff/sparql/dataservice_queries.py | Informasjonsforvaltning/organization-page-bffe | 473dc9606649f864618f4f8bfc4a6a2a035f06d7 | [
"Apache-2.0"
] | null | null | null | src/fdk_organization_bff/sparql/dataservice_queries.py | Informasjonsforvaltning/organization-page-bffe | 473dc9606649f864618f4f8bfc4a6a2a035f06d7 | [
"Apache-2.0"
] | null | null | null | """Module for DataService SPARQL-queries."""
from string import Template
def build_dataservices_by_publisher_query() -> str:
"""Build query to count dataservices grouped by publisher."""
return """
PREFIX dct: <http://purl.org/dc/terms/>
PREFIX dcat: <http://www.w3.org/ns/dcat#>
SELECT ?organizationNumber (CO... | 30.775 | 65 | 0.714866 | """Module for DataService SPARQL-queries."""
from string import Template
def build_dataservices_by_publisher_query() -> str:
"""Build query to count dataservices grouped by publisher."""
return """
PREFIX dct: <http://purl.org/dc/terms/>
PREFIX dcat: <http://www.w3.org/ns/dcat#>
SELECT ?organizationNumber (CO... | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
a2d97926bfad16c5952ea118e201772488f9416d | 5,345 | py | Python | v1/scripts/expand_and_split_fasta.py | blobtoolkit/pipeline | 9b9c3b1f07a8b97ce52a063a5af56a6ca336d7d8 | [
"MIT"
] | 4 | 2021-06-30T08:25:17.000Z | 2022-03-11T22:56:49.000Z | v1/scripts/expand_and_split_fasta.py | blobtoolkit/pipeline | 9b9c3b1f07a8b97ce52a063a5af56a6ca336d7d8 | [
"MIT"
] | 13 | 2021-05-20T13:31:56.000Z | 2022-01-26T09:20:29.000Z | v1/scripts/expand_and_split_fasta.py | blobtoolkit/pipeline | 9b9c3b1f07a8b97ce52a063a5af56a6ca336d7d8 | [
"MIT"
] | 3 | 2019-10-09T14:39:56.000Z | 2020-09-23T21:11:40.000Z | #!/usr/bin/env python3
import os
import shutil
import sys
from subprocess import Popen, call, PIPE
from multiprocessing import Pool
import timeit
# set variables from snakemake params, wildcards, input and threads
CHUNK = snakemake.params.chunk
NAME = snakemake.wildcards.name
TMPDIR = snakemake.params.tmpdir
THREADS ... | 35.397351 | 102 | 0.617025 | #!/usr/bin/env python3
import os
import shutil
import gzip
import sys
import re
from itertools import groupby
from collections import defaultdict
from subprocess import Popen, call, PIPE
from multiprocessing import Pool
import timeit
# set variables from snakemake params, wildcards, input and threads
CHUNK = snakemak... | 0 | 0 | 0 | 0 | 1,049 | 48 | 0 | 0 | 134 |
ef8f114a8b83dda5c9d924e8b5bce5b09ee290b5 | 852 | py | Python | Sim_bottom_basal_membrane.py | alexalemi/cancersim | c7dea3ebc2f09e450ddd79c2d253a054e561c7e8 | [
"MIT"
] | 2 | 2021-01-14T09:00:16.000Z | 2021-01-14T09:01:11.000Z | Sim_bottom_basal_membrane.py | MurphYZY/cancersim | c7dea3ebc2f09e450ddd79c2d253a054e561c7e8 | [
"MIT"
] | null | null | null | Sim_bottom_basal_membrane.py | MurphYZY/cancersim | c7dea3ebc2f09e450ddd79c2d253a054e561c7e8 | [
"MIT"
] | 1 | 2021-01-14T08:58:04.000Z | 2021-01-14T08:58:04.000Z | from code import cancer
import pylab as py
from config import config
XSIZE = config['XSIZE']
YSIZE = config['YSIZE']
config['first_cancer_cell_xoffset']=-1.0*config['XSIZE']/(3.0*config['basal_wavenumber'])
config['pressure_filename']= 'pressure/bottom_basal_membrane_pressure.dat'
config['cancer_evolution_filename']=... | 21.846154 | 91 | 0.705399 | from code import cancer
import pylab as py
from config import config
XSIZE = config['XSIZE']
YSIZE = config['YSIZE']
config['first_cancer_cell_xoffset']=-1.0*config['XSIZE']/(3.0*config['basal_wavenumber'])
config['pressure_filename']= 'pressure/bottom_basal_membrane_pressure.dat'
config['cancer_evolution_filename']=... | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
88fcf0105105db32a6fb7858bcd1c0a4ff9d7443 | 948 | py | Python | mtcnn/modules/pnet.py | galbiati/mtcnn | 6caa8e47ee6c7a01f6f990193129964a2d7e4b52 | [
"MIT"
] | null | null | null | mtcnn/modules/pnet.py | galbiati/mtcnn | 6caa8e47ee6c7a01f6f990193129964a2d7e4b52 | [
"MIT"
] | 5 | 2020-01-11T02:29:22.000Z | 2020-09-16T21:44:57.000Z | mtcnn/modules/pnet.py | galbiati/mtcnn | 6caa8e47ee6c7a01f6f990193129964a2d7e4b52 | [
"MIT"
] | 1 | 2020-07-29T13:58:50.000Z | 2020-07-29T13:58:50.000Z | #!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# By: Gianni Galbiati
# Standard libraries
# External libraries
import torch.nn as nn
# Internal libraries
| 22.571429 | 58 | 0.528481 | #!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# By: Gianni Galbiati
# Standard libraries
from collections import OrderedDict
# External libraries
import torch.nn as nn
# Internal libraries
class PNet(nn.Module):
def __init__(self):
super().__init__()
self.features = nn.Sequential(OrderedDict... | 0 | 0 | 0 | 730 | 0 | 0 | 0 | 14 | 45 |
90f19fbaa0a0a3004ebd5606679e3444d988618d | 11,487 | py | Python | fmriprep/interfaces/cifti.py | hstojic/fmriprep | c92bf833fecf645a2fbf3943486c665a9ebc54f7 | [
"BSD-3-Clause"
] | null | null | null | fmriprep/interfaces/cifti.py | hstojic/fmriprep | c92bf833fecf645a2fbf3943486c665a9ebc54f7 | [
"BSD-3-Clause"
] | null | null | null | fmriprep/interfaces/cifti.py | hstojic/fmriprep | c92bf833fecf645a2fbf3943486c665a9ebc54f7 | [
"BSD-3-Clause"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# emacs: -*- mode: python; py-indent-offset: 4; indent-tabs-mode: nil -*-
# vi: set ft=python sts=4 ts=4 sw=4 et:
"""
Handling connectivity
~~~~~~~~~~~~~~~~~~~~~
Combines FreeSurfer surfaces with subcortical volumes
"""
# CITFI structures with corresponding FS labels
CIFT... | 40.879004 | 96 | 0.592931 | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# emacs: -*- mode: python; py-indent-offset: 4; indent-tabs-mode: nil -*-
# vi: set ft=python sts=4 ts=4 sw=4 et:
"""
Handling connectivity
~~~~~~~~~~~~~~~~~~~~~
Combines FreeSurfer surfaces with subcortical volumes
"""
import os
from glob import glob
import json
import n... | 0 | 5,152 | 0 | 4,500 | 0 | 0 | 0 | 151 | 360 |
13c77ccf52fdf5ead461823b9338062e5ac8dbd9 | 1,872 | py | Python | libraries/esp8266wifi/examples/BearSSL_CertStore/certs-from-mozilla.py | pi2-fga/201901-MaquinaSabao-Forno | 4900e79440af8386b0dc0b51678e87e7121d784a | [
"MIT"
] | null | null | null | libraries/esp8266wifi/examples/BearSSL_CertStore/certs-from-mozilla.py | pi2-fga/201901-MaquinaSabao-Forno | 4900e79440af8386b0dc0b51678e87e7121d784a | [
"MIT"
] | null | null | null | libraries/esp8266wifi/examples/BearSSL_CertStore/certs-from-mozilla.py | pi2-fga/201901-MaquinaSabao-Forno | 4900e79440af8386b0dc0b51678e87e7121d784a | [
"MIT"
] | null | null | null | #!/usr/bin/python
# This script pulls the list of Mozilla trusted certificate authorities
# from the web at the "mozurl" below, parses the file to grab the PEM
# for each cert, and then generates DER files in a new ./data directory
# Upload these to a SPIFFS filesystem and use the CertManager to parse
# and use them f... | 27.940299 | 114 | 0.678953 | #!/usr/bin/python
# This script pulls the list of Mozilla trusted certificate authorities
# from the web at the "mozurl" below, parses the file to grab the PEM
# for each cert, and then generates DER files in a new ./data directory
# Upload these to a SPIFFS filesystem and use the CertManager to parse
# and use them f... | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
e423b0ac65968ec7365f6adc0f3af37e926e0388 | 1,653 | py | Python | tests/testapp/models/zoo.py | BBooijLiewes/django-binder | b5bf0aad14657fd57d575f9a0ef21468533f64a7 | [
"MIT"
] | null | null | null | tests/testapp/models/zoo.py | BBooijLiewes/django-binder | b5bf0aad14657fd57d575f9a0ef21468533f64a7 | [
"MIT"
] | null | null | null | tests/testapp/models/zoo.py | BBooijLiewes/django-binder | b5bf0aad14657fd57d575f9a0ef21468533f64a7 | [
"MIT"
] | null | null | null | from django.db.models.signals import post_delete
# From the api docs: a zoo with a name. It also has a founding date,
# which is nullable (representing "unknown").
post_delete.connect(delete_files, sender=Zoo)
| 31.188679 | 95 | 0.736842 | import os
import datetime
from django.core.exceptions import ValidationError
from django.db import models
from django.db.models.signals import post_delete
from binder.models import BinderModel
def delete_files(sender, instance=None, **kwargs):
for field in sender._meta.fields:
if isinstance(field, models.fields.fil... | 0 | 43 | 0 | 962 | 0 | 245 | 0 | 34 | 155 |
483bceb988f53572747ad9f1ed33ab2374d46602 | 8,157 | py | Python | scripts/build/tools/ebs_snapshot.py | BreakerOfThings/o3de | f4c59f868c726470ec910623facd836047d059c3 | [
"Apache-2.0",
"MIT"
] | 1 | 2022-03-28T08:06:58.000Z | 2022-03-28T08:06:58.000Z | scripts/build/tools/ebs_snapshot.py | BreakerOfThings/o3de | f4c59f868c726470ec910623facd836047d059c3 | [
"Apache-2.0",
"MIT"
] | null | null | null | scripts/build/tools/ebs_snapshot.py | BreakerOfThings/o3de | f4c59f868c726470ec910623facd836047d059c3 | [
"Apache-2.0",
"MIT"
] | null | null | null | #
# Copyright (c) Contributors to the Open 3D Engine Project.
# For complete copyright and license terms please see the LICENSE at the root of this distribution.
#
# SPDX-License-Identifier: Apache-2.0 OR MIT
#
#
import boto3
import logging
import sys
from botocore.config import Config
log = logging.getLogger(__name__... | 41.406091 | 238 | 0.686159 | #
# Copyright (c) Contributors to the Open 3D Engine Project.
# For complete copyright and license terms please see the LICENSE at the root of this distribution.
#
# SPDX-License-Identifier: Apache-2.0 OR MIT
#
#
import argparse
import boto3
import logging
import sys
from botocore.config import Config
log = logging.g... | 0 | 0 | 0 | 0 | 0 | 1,668 | 0 | -6 | 69 |
c575b6e9a0c7a9025c25edb3f8942fdf76ed3aab | 2,321 | py | Python | tests/test_symbolic.py | hsadeghidw/dimod | c6b4adc18c22f39fd5a79e6775bbcab84b1a5489 | [
"Apache-2.0"
] | 101 | 2017-08-30T20:08:46.000Z | 2022-03-23T23:40:32.000Z | tests/test_symbolic.py | hsadeghidw/dimod | c6b4adc18c22f39fd5a79e6775bbcab84b1a5489 | [
"Apache-2.0"
] | 862 | 2017-09-27T19:56:43.000Z | 2022-03-30T18:00:43.000Z | tests/test_symbolic.py | hsadeghidw/dimod | c6b4adc18c22f39fd5a79e6775bbcab84b1a5489 | [
"Apache-2.0"
] | 78 | 2017-09-13T23:01:10.000Z | 2022-02-22T02:40:40.000Z | # Copyright 2021 D-Wave Systems Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or... | 27.963855 | 77 | 0.573891 | # Copyright 2021 D-Wave Systems Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or... | 0 | 0 | 0 | 1,578 | 0 | 0 | 0 | 17 | 114 |
d80abd758e35101e6ca45fb9f30ce6260becd136 | 97 | py | Python | Chapter03/Exercise37/today.py | eugeniousone/The-Python-Workshop | 7f861dfa3c3b43894619056e49ab8304cb3240ce | [
"MIT"
] | 238 | 2019-12-13T15:44:34.000Z | 2022-03-21T05:38:21.000Z | Chapter03/Exercise37/today.py | eugeniousone/The-Python-Workshop | 7f861dfa3c3b43894619056e49ab8304cb3240ce | [
"MIT"
] | 8 | 2020-05-04T03:33:29.000Z | 2022-03-12T00:47:26.000Z | Chapter03/Exercise37/today.py | eugeniousone/The-Python-Workshop | 7f861dfa3c3b43894619056e49ab8304cb3240ce | [
"MIT"
] | 345 | 2019-10-08T09:15:11.000Z | 2022-03-31T18:28:03.000Z | """
This script prints the current system date.
"""
import datetime
print(datetime.date.today()) | 19.4 | 43 | 0.742268 | """
This script prints the current system date.
"""
import datetime
print(datetime.date.today()) | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
b837c5d84ff4a585915867b301709a8bf9764f83 | 3,000 | py | Python | lib/galaxy/web/framework/helpers/tags.py | rikeshi/galaxy | c536a877e4a9b3d12aa0d00fd4d5e705109a0d0a | [
"CC-BY-3.0"
] | 4 | 2015-05-12T20:36:41.000Z | 2017-06-26T15:34:02.000Z | lib/galaxy/web/framework/helpers/tags.py | rikeshi/galaxy | c536a877e4a9b3d12aa0d00fd4d5e705109a0d0a | [
"CC-BY-3.0"
] | 72 | 2019-06-06T18:52:41.000Z | 2022-02-17T02:53:18.000Z | lib/galaxy/web/framework/helpers/tags.py | rikeshi/galaxy | c536a877e4a9b3d12aa0d00fd4d5e705109a0d0a | [
"CC-BY-3.0"
] | 1 | 2016-03-21T12:54:06.000Z | 2016-03-21T12:54:06.000Z | """
Code derived from WebHelpers: https://bitbucket.org/bbangert/webhelpers
Licensed under the MIT license: https://bitbucket.org/bbangert/webhelpers/src/tip/LICENSE
"""
from markupsafe import escape_silent
def format_attrs(**attrs):
"""Format HTML attributes into a string of ' key="value"' pairs which
can ... | 32.967033 | 94 | 0.627667 | """
Code derived from WebHelpers: https://bitbucket.org/bbangert/webhelpers
Licensed under the MIT license: https://bitbucket.org/bbangert/webhelpers/src/tip/LICENSE
"""
from markupsafe import escape_silent
def format_attrs(**attrs):
"""Format HTML attributes into a string of ' key="value"' pairs which
can ... | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
d69edd54e23c1c62d67f6d75469fcb9dad1a95b5 | 242 | py | Python | infection-model/person_agent.py | samgdotson/agent-based-modeling | 4f02fedaea4ced851278c70cdfdf7ed4d84bf645 | [
"BSD-3-Clause"
] | null | null | null | infection-model/person_agent.py | samgdotson/agent-based-modeling | 4f02fedaea4ced851278c70cdfdf7ed4d84bf645 | [
"BSD-3-Clause"
] | null | null | null | infection-model/person_agent.py | samgdotson/agent-based-modeling | 4f02fedaea4ced851278c70cdfdf7ed4d84bf645 | [
"BSD-3-Clause"
] | null | null | null | # This class describes a person agent
| 24.2 | 46 | 0.710744 | # This class describes a person agent
class person(object):
"""An individual person"""
def __init__(self, age, healthy, max_range,):
super(person, self).__init__()
self.age = age
self.healthy = healthy
self.max_range = max_range
| 0 | 0 | 0 | 179 | 0 | 0 | 0 | 0 | 23 |
ec1f4e77e17af6161224d77f41774111f3841394 | 7,717 | py | Python | callyzer_integration/callyzer_integration_hook.py | ashish-greycube/callyzer_integration | b538fcc27d96e52d262d07fd0943f0296551d460 | [
"MIT"
] | null | null | null | callyzer_integration/callyzer_integration_hook.py | ashish-greycube/callyzer_integration | b538fcc27d96e52d262d07fd0943f0296551d460 | [
"MIT"
] | null | null | null | callyzer_integration/callyzer_integration_hook.py | ashish-greycube/callyzer_integration | b538fcc27d96e52d262d07fd0943f0296551d460 | [
"MIT"
] | null | null | null | from __future__ import unicode_literals
# TIMEDIFF(DATE_FORMAT(min(addtime(call_log.date, call_log.time)) ,"%Y-%m-%d %H:%i"),DATE_FORMAT(lead.creation ,"%Y-%m-%d %H:%i")) as `first_call_response_time`, | 44.606936 | 194 | 0.757419 | from __future__ import unicode_literals
import frappe
from frappe import _
from frappe.integrations.utils import create_request_log,make_post_request
from frappe.utils import get_datetime,now_datetime,format_datetime,format_date,format_time,getdate, duration_to_seconds,format_duration
from datetime import timedelta
imp... | 0 | 337 | 0 | 0 | 0 | 6,613 | 0 | 201 | 362 |
d270456c863d9db0ae1573ff9883ac762665b5ad | 795 | py | Python | src/test/tmpbfextract/testExtractBlackfriday.py | ThomasMPorter/BlackFridayExtractor | a3f4d9eb853b11e8bf74a358f5d2a78665a9b38d | [
"Unlicense"
] | 1 | 2020-01-30T13:48:37.000Z | 2020-01-30T13:48:37.000Z | src/test/tmpbfextract/testExtractBlackfriday.py | ThomasMPorter/BlackFridayExtractor | a3f4d9eb853b11e8bf74a358f5d2a78665a9b38d | [
"Unlicense"
] | null | null | null | src/test/tmpbfextract/testExtractBlackfriday.py | ThomasMPorter/BlackFridayExtractor | a3f4d9eb853b11e8bf74a358f5d2a78665a9b38d | [
"Unlicense"
] | null | null | null | import configparser
import unittest
#----------------------------
# Set to your cfg file
cfg_file = 'src/local.cfg'
#----------------------------
config = configparser.ConfigParser()
config.read(cfg_file)
if __name__ == '__main__':
unittest.main()
| 20.384615 | 68 | 0.637736 | import configparser
import unittest
import tmpbfextract
#----------------------------
# Set to your cfg file
cfg_file = 'src/local.cfg'
#----------------------------
class testExtractBlackfriday(unittest.TestCase):
def test_get_image_url_list(self):
# Arrange
extract = get_test_extract()
... | 0 | 0 | 0 | 305 | 0 | 164 | 0 | -2 | 69 |
897e8dd58b1a8af0f7152420760b3c3987765ff5 | 389 | py | Python | setup.py | nicolastolosa/AirBnbModel | be865804bfbf5a5a67e134db9f87c682af8dbc69 | [
"MIT"
] | null | null | null | setup.py | nicolastolosa/AirBnbModel | be865804bfbf5a5a67e134db9f87c682af8dbc69 | [
"MIT"
] | null | null | null | setup.py | nicolastolosa/AirBnbModel | be865804bfbf5a5a67e134db9f87c682af8dbc69 | [
"MIT"
] | null | null | null | from setuptools import setup
with open("README.md", encoding="utf-8") as f:
long_description = f.read()
with open("requirements.txt") as f:
required = f.read().splitlines()
setup(
name="AirBnbModel",
version="1.0.0",
packages=["AirBnbModel"],
long_description=long_description,
long_descri... | 22.882353 | 50 | 0.699229 | from setuptools import setup
with open("README.md", encoding="utf-8") as f:
long_description = f.read()
with open("requirements.txt") as f:
required = f.read().splitlines()
setup(
name="AirBnbModel",
version="1.0.0",
packages=["AirBnbModel"],
long_description=long_description,
long_descri... | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
7c1808cf998e84c22c46df68ef07259c1a021c19 | 2,615 | py | Python | python/paddle/fluid/tests/unittests/test_iou_similarity_op.py | ysh329/Paddle | 50ad9046c9a440564d104eaa354eb9df83a35678 | [
"Apache-2.0"
] | 9 | 2017-12-04T02:58:01.000Z | 2020-12-03T14:46:30.000Z | python/paddle/fluid/tests/unittests/test_iou_similarity_op.py | ysh329/Paddle | 50ad9046c9a440564d104eaa354eb9df83a35678 | [
"Apache-2.0"
] | 7 | 2017-12-05T20:29:08.000Z | 2018-10-15T08:57:40.000Z | python/paddle/fluid/tests/unittests/test_iou_similarity_op.py | ysh329/Paddle | 50ad9046c9a440564d104eaa354eb9df83a35678 | [
"Apache-2.0"
] | 6 | 2018-03-19T22:38:46.000Z | 2019-11-01T22:28:27.000Z | # Copyright (c) 2018 PaddlePaddle Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by app... | 36.319444 | 77 | 0.63174 | # Copyright (c) 2018 PaddlePaddle Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by app... | 0 | 0 | 0 | 1,751 | 0 | 0 | 0 | -19 | 134 |
da06ad575b000323eb0384c2b388194e38246735 | 1,417 | py | Python | src/biome/text/modules/heads/__init__.py | javispp/biome-text | d4f49fde92c5f5efec51e2a285bb243bf7b25c0f | [
"Apache-2.0"
] | 62 | 2019-04-09T02:20:57.000Z | 2022-02-19T12:29:27.000Z | src/biome/text/modules/heads/__init__.py | javispp/biome-text | d4f49fde92c5f5efec51e2a285bb243bf7b25c0f | [
"Apache-2.0"
] | 213 | 2019-03-20T15:40:47.000Z | 2021-07-05T16:00:02.000Z | src/biome/text/modules/heads/__init__.py | javispp/biome-text | d4f49fde92c5f5efec51e2a285bb243bf7b25c0f | [
"Apache-2.0"
] | 8 | 2020-09-03T18:16:16.000Z | 2021-08-13T08:38:24.000Z | from .classification.doc_classification import DocumentClassification
from .classification.record_classification import RecordClassification
from .classification.record_pair_classification import RecordPairClassification
from .classification.relation_classification import RelationClassification
from .classification.tex... | 44.28125 | 87 | 0.880734 | from .classification.doc_classification import DocumentClassification
from .classification.doc_classification import DocumentClassificationConfiguration
from .classification.record_classification import RecordClassification
from .classification.record_classification import RecordClassificationConfiguration
from .classi... | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 472 | 242 |
f8ff272843ef4bdf7de483fe75ab9f2ab3fc34c0 | 1,474 | py | Python | metaball.py | Akalay27/PythonProjects | fe1a2e82d346c8d439ec10cd4dfbc94c0b491b59 | [
"MIT"
] | null | null | null | metaball.py | Akalay27/PythonProjects | fe1a2e82d346c8d439ec10cd4dfbc94c0b491b59 | [
"MIT"
] | null | null | null | metaball.py | Akalay27/PythonProjects | fe1a2e82d346c8d439ec10cd4dfbc94c0b491b59 | [
"MIT"
] | null | null | null | import pygame
import sys
from pygame import surfarray
import random
pygame.init()
size = width,height = (1200,1200)
actualRes = (100,100)
screen = pygame.display.set_mode(size)
scr = pygame.Surface(actualRes)
balls = []
for b in range(5):
balls.append(ball(random.randint(0,actualRes[0]),random.randint... | 21.057143 | 83 | 0.59905 | import pygame
import sys
from pygame import draw, surfarray
import numpy
import random
pygame.init()
size = width,height = (1200,1200)
actualRes = (100,100)
screen = pygame.display.set_mode(size)
scr = pygame.Surface(actualRes)
def constrain(val, min_val, max_val):
return min(max_val, max(min_val, val))
... | 0 | 0 | 0 | 415 | 0 | 108 | 0 | -3 | 96 |
d2305ae2172171dd4c9f4c195d99d810fba080a8 | 32,438 | py | Python | adhoc/adhoc.py | igoumiri/pyMST | 79825c6fbf521b3ec8931114d0d3d36b548cf75b | [
"MIT"
] | null | null | null | adhoc/adhoc.py | igoumiri/pyMST | 79825c6fbf521b3ec8931114d0d3d36b548cf75b | [
"MIT"
] | null | null | null | adhoc/adhoc.py | igoumiri/pyMST | 79825c6fbf521b3ec8931114d0d3d36b548cf75b | [
"MIT"
] | null | null | null | def pars_to_eq(pars, ip,
lmodel='alpha', pmodel='quadratic', beta=0.0, n=101, ret='all',
corr='cyl', d=0.01, a=0.52, Ra=1.50):
"""Input lambda model
pars=parameters, ip=ip in A, lmodel=lambda-model type,
ret=what to return, pmodel=pressure-model type, beta=beta_poloidal,
and n=number of radial p... | 35.646154 | 85 | 0.543714 | def pars_to_eq(pars, ip,
lmodel='alpha', pmodel='quadratic', beta=0.0, n=101, ret='all',
corr='cyl', d=0.01, a=0.52, Ra=1.50):
"""Input lambda model
pars=parameters, ip=ip in A, lmodel=lambda-model type,
ret=what to return, pmodel=pressure-model type, beta=beta_poloidal,
and n=number of radial p... | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
534e91562203eb7e49f65f5f81b772e91158b6d5 | 2,034 | py | Python | ChatBotModel.py | acao2002/An-chatbot | 5c576bca0e9bbe1471f2ce493cc79a759dbadba6 | [
"MIT"
] | 1 | 2020-06-30T13:32:52.000Z | 2020-06-30T13:32:52.000Z | ChatBotModel.py | acao2002/An-chatbot | 5c576bca0e9bbe1471f2ce493cc79a759dbadba6 | [
"MIT"
] | null | null | null | ChatBotModel.py | acao2002/An-chatbot | 5c576bca0e9bbe1471f2ce493cc79a759dbadba6 | [
"MIT"
] | null | null | null | import json
import tensorflow as tf
import numpy as np
from tensorflow.keras.preprocessing.text import Tokenizer
from tensorflow.keras.preprocessing.sequence import pad_sequences
with open("AnQnA.json", 'r') as f:
datastore = json.load(f)
questions = []
intentions = []
for item in datastore:
... | 29.057143 | 111 | 0.674533 | import json
import tensorflow as tf
import numpy as np
from tensorflow.keras.preprocessing.text import Tokenizer
from tensorflow.keras.preprocessing.sequence import pad_sequences
with open("AnQnA.json", 'r') as f:
datastore = json.load(f)
questions = []
intentions = []
for item in datastore:
... | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
36f3cb0fb387bc84da5a7c6dd8e65a0d4d0913e1 | 1,598 | py | Python | confusion_matrix.py | dengbuqi/lie_detection | a90070511e779c2ec765b34ec68bac806053bf9d | [
"MIT"
] | 1 | 2022-01-23T17:21:20.000Z | 2022-01-23T17:21:20.000Z | confusion_matrix.py | dengbuqi/lie_detection | a90070511e779c2ec765b34ec68bac806053bf9d | [
"MIT"
] | null | null | null | confusion_matrix.py | dengbuqi/lie_detection | a90070511e779c2ec765b34ec68bac806053bf9d | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# -*- coding:utf-8 -*-
# @FileName : confusion_matrix.py
# @Time : 2020/10/2 15:29
# @Author :
# @Demand :
| 31.333333 | 98 | 0.690864 | #!/usr/bin/env python
# -*- coding:utf-8 -*-
# @FileName : confusion_matrix.py
# @Time : 2020/10/2 15:29
# @Author : 陈嘉昕
# @Demand : 混淆矩阵
import build_network
from sklearn.metrics import confusion_matrix
import itertools
import numpy as np
import matplotlib.pyplot as plt
def plot_confusion_matrix(cm, cl... | 57 | 0 | 0 | 0 | 0 | 1,225 | 0 | 24 | 180 |
172bf0b33b1a049601f4c2ddbc59bfc8a3a538e8 | 4,832 | py | Python | utils_jzzheng.py | RansML/SpaTUn | ee1a9e0cfd9b4a96ecc9bd0292136661d38786be | [
"MIT"
] | null | null | null | utils_jzzheng.py | RansML/SpaTUn | ee1a9e0cfd9b4a96ecc9bd0292136661d38786be | [
"MIT"
] | null | null | null | utils_jzzheng.py | RansML/SpaTUn | ee1a9e0cfd9b4a96ecc9bd0292136661d38786be | [
"MIT"
] | null | null | null | #
# Jason Zheng (jzzheng)
# 10/23/19
#
import argparse
import numpy as np
import os
import pandas as pd
import plotly.graph_objects as go
AIRSIM_DATASET = 'datasets/airsim/depth_data.csv' # this only contains one time frame
CARLA_DATASET = 'datasets/carla/carla_3d_town1.npz'
# ======================================... | 36.885496 | 109 | 0.618377 | #
# Jason Zheng (jzzheng)
# 10/23/19
#
import argparse
import numpy as np
import sys
import os
import pandas as pd
import plotly.graph_objects as go
from plotly.offline import plot
import plotly.graph_objs as go
AIRSIM_DATASET = 'datasets/airsim/depth_data.csv' # this only contains one time frame
CARLA_DATASET = 'da... | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 8 | 66 |
6b0543a7aff4c6ab6b022a2d8e6d154ed4873777 | 1,528 | py | Python | trabantsim/prototypes/space_invaders.py | highfestiva/life | b05b592502d72980ab55e13e84330b74a966f377 | [
"BSD-3-Clause"
] | 9 | 2019-09-03T18:33:31.000Z | 2022-02-04T04:00:02.000Z | trabantsim/prototypes/space_invaders.py | highfestiva/life | b05b592502d72980ab55e13e84330b74a966f377 | [
"BSD-3-Clause"
] | null | null | null | trabantsim/prototypes/space_invaders.py | highfestiva/life | b05b592502d72980ab55e13e84330b74a966f377 | [
"BSD-3-Clause"
] | null | null | null | #!/usr/bin/env python3
# Space Invadersishkebab.
# ASCII geometries.
shipascii = r'''
/\
/XXXXXXXX\
v v
'''
invader = r'''
/XXXXXX\
/XXXXXXXX\
XXXXXXXXXX
XX XX XX
\XXXXXXXX/
/XX XX\
/X/ \/ \X\
X/ \X
'''
cam(distance=250)
gravity((0,0,0))
ship = create_ascii_object(shipascii, pos=(0,0,-10... | 24.645161 | 112 | 0.581806 | #!/usr/bin/env python3
# Space Invadersishkebab.
from trabant import *
# ASCII geometries.
shipascii = r'''
/\
/XXXXXXXX\
v v
'''
invader = r'''
/XXXXXX\
/XXXXXXXX\
XXXXXXXXXX
XX XX XX
\XXXXXXXX/
/XX XX\
/X/ \/ \X\
X/ \X
'''
cam(distance=250)
gravity((0,0,0))
ship = create_ascii_object(... | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 23 |
fa91a9c4e00558999a91313c7926de17104b8f1d | 17,960 | py | Python | tests/test_abspath.py | ENCODE-DCC/autouri | 178f6098360de919a3603cff58335abf513eb6c4 | [
"MIT"
] | null | null | null | tests/test_abspath.py | ENCODE-DCC/autouri | 178f6098360de919a3603cff58335abf513eb6c4 | [
"MIT"
] | 2 | 2020-03-14T03:24:00.000Z | 2021-04-02T21:00:14.000Z | tests/test_abspath.py | ENCODE-DCC/autouri | 178f6098360de919a3603cff58335abf513eb6c4 | [
"MIT"
] | 1 | 2022-03-11T21:43:10.000Z | 2022-03-11T21:43:10.000Z | import os
import time
from typing import Tuple
import pytest
from autouri.abspath import AbsPath
from autouri.autouri import AutoURI, URIBase
from autouri.httpurl import ReadOnlyStorageError
from .files import (make_files_in_dir, recurse_raise_if_uri_not_exist)
def test_abspath_cp_url(local_v6_txt,... | 34.472169 | 105 | 0.693597 | import os
import time
from typing import Any, Tuple
import pytest
from autouri.abspath import AbsPath
from autouri.autouri import AutoURI, URIBase
from autouri.httpurl import ReadOnlyStorageError
from .files import (
common_paths,
make_files_in_dir,
recurse_raise_if_uri_not_exist,
v6_txt_contents,
)
... | 0 | 1,713 | 0 | 0 | 0 | 5,222 | 0 | 55 | 664 |
fbdf0ba578811e76b4cfc16c23f7b54f6dbc4403 | 282 | py | Python | examples/test_context_manager.py | smilelight/lightDict | bd21afd90777489b6a62b9f6954f0d24c3f772d1 | [
"Apache-2.0"
] | 4 | 2020-01-15T09:54:40.000Z | 2020-12-13T09:10:25.000Z | examples/test_context_manager.py | smilelight/lightDict | bd21afd90777489b6a62b9f6954f0d24c3f772d1 | [
"Apache-2.0"
] | null | null | null | examples/test_context_manager.py | smilelight/lightDict | bd21afd90777489b6a62b9f6954f0d24c3f772d1 | [
"Apache-2.0"
] | 1 | 2021-05-28T09:40:14.000Z | 2021-05-28T09:40:14.000Z | from lightdict import WordDict, HanziDict
hanzi_dic = HanziDict(r'D:\Data\NLP\corpus\words\hanzi.csv', keep=False)
word_dict = WordDict(r'D:\Data\NLP\corpus\words\words.csv', keep=False)
with hanzi_dic:
print('' in hanzi_dic)
with word_dict:
print('' in word_dict)
| 23.5 | 72 | 0.737589 | from lightdict import WordDict, HanziDict
hanzi_dic = HanziDict(r'D:\Data\NLP\corpus\words\hanzi.csv', keep=False)
word_dict = WordDict(r'D:\Data\NLP\corpus\words\words.csv', keep=False)
with hanzi_dic:
print('和' in hanzi_dic)
with word_dict:
print('开云见日' in word_dict)
| 15 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
39b65187017725b2a6de9db29c081c58737c163f | 1,708 | py | Python | tests/test_discover.py | polishmatt/sputr | 7611d40090c8115dff69912725efc506414ac47a | [
"MIT"
] | 1 | 2017-02-13T23:09:18.000Z | 2017-02-13T23:09:18.000Z | tests/test_discover.py | polishmatt/sputr | 7611d40090c8115dff69912725efc506414ac47a | [
"MIT"
] | 6 | 2017-02-18T20:14:32.000Z | 2017-09-27T19:07:06.000Z | tests/test_discover.py | polishmatt/sputr | 7611d40090c8115dff69912725efc506414ac47a | [
"MIT"
] | null | null | null | import os
start_dir = os.path.join(os.path.dirname(__file__), 'fixtures', 'discover')
| 28.949153 | 75 | 0.56733 | import os
from tests import SputrTest
start_dir = os.path.join(os.path.dirname(__file__), 'fixtures', 'discover')
class DiscoverTest(SputrTest):
def assert_suite_matches_pattern(self, pattern, tests):
suite = self.sputr.discover(start_dir=start_dir, pattern=pattern)
unexpected = []
for te... | 0 | 0 | 0 | 1,569 | 0 | 0 | 0 | 6 | 45 |
6499c22a7a3d9955cb477b9229327c5932394094 | 1,006 | py | Python | proud-puffins/djangoProject/earlydating/urls.py | Vthechamp22/summer-code-jam-2021 | 0a8bf1f22f6c73300891fd779da36efd8e1304c1 | [
"MIT"
] | 40 | 2020-08-02T07:38:22.000Z | 2021-07-26T01:46:50.000Z | proud-puffins/djangoProject/earlydating/urls.py | Vthechamp22/summer-code-jam-2021 | 0a8bf1f22f6c73300891fd779da36efd8e1304c1 | [
"MIT"
] | 134 | 2020-07-31T12:15:45.000Z | 2020-12-13T04:42:19.000Z | proud-puffins/djangoProject/earlydating/urls.py | Vthechamp22/summer-code-jam-2021 | 0a8bf1f22f6c73300891fd779da36efd8e1304c1 | [
"MIT"
] | 101 | 2020-07-31T12:00:47.000Z | 2021-11-01T09:06:58.000Z | from django.urls import path
from django.conf import settings
from django.conf.urls.static import static
from . import views
urlpatterns = [
path('', views.home, name='earlydating-home'),
path('about/', views.about, name='earlydating-about'),
path('login/', views.login_page, name='earlydating-login'),
... | 41.916667 | 80 | 0.727634 | from django.urls import path
from django.conf import settings
from django.conf.urls.static import static
from . import views
urlpatterns = [
path('', views.home, name='earlydating-home'),
path('about/', views.about, name='earlydating-about'),
path('login/', views.login_page, name='earlydating-login'),
... | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
03a306d41c2e826252f2ca4b99c183a1b4ba8911 | 550 | py | Python | setup.py | flaxandteal/azure_jwt_validation | 9c7ba6b9b9f9ae7ae24324467df363b85219ada4 | [
"MIT"
] | 2 | 2020-01-15T03:02:47.000Z | 2021-09-27T02:43:32.000Z | setup.py | flaxandteal/azure_jwt_validation | 9c7ba6b9b9f9ae7ae24324467df363b85219ada4 | [
"MIT"
] | 1 | 2021-06-01T23:35:25.000Z | 2021-06-01T23:35:25.000Z | setup.py | flaxandteal/azure_jwt_validation | 9c7ba6b9b9f9ae7ae24324467df363b85219ada4 | [
"MIT"
] | 1 | 2020-07-23T19:00:24.000Z | 2020-07-23T19:00:24.000Z | from setuptools import setup
setup(
name='azure_jwt_validation',
version='0.1',
description='Helper to validate jwt tokens signed by Azure AD.',
url='https://github.com/JonnyWaffles/azure_jwt_validation',
author='Jonny Fuller',
author_email='jfuller@markelcorp.com',
packages=[
'azu... | 22.916667 | 68 | 0.636364 | from setuptools import setup
setup(
name='azure_jwt_validation',
version='0.1',
description='Helper to validate jwt tokens signed by Azure AD.',
url='https://github.com/JonnyWaffles/azure_jwt_validation',
author='Jonny Fuller',
author_email='jfuller@markelcorp.com',
packages=[
'azu... | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
06a66b7e5401ebfb78a85d968ac09a0c55cc0e07 | 342 | py | Python | pyrpzirsensor/config.py | osoken/pyrpzirsensor | 5e221348705856ec274b965bda5eb05626456a7c | [
"MIT"
] | null | null | null | pyrpzirsensor/config.py | osoken/pyrpzirsensor | 5e221348705856ec274b965bda5eb05626456a7c | [
"MIT"
] | 1 | 2019-12-08T05:54:54.000Z | 2019-12-08T09:04:19.000Z | pyrpzirsensor/config.py | osoken/pyrpzirsensor | 5e221348705856ec274b965bda5eb05626456a7c | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
DEBUG = False
HOST = '0.0.0.0'
BME280_ADDRESS = 0x77
ILLUMINANCE_SENSOR_ADDRESS = 0x39 # 0x29 for TSL2561
BME280_MODE = 'normal'
BME280_FILTER = 16
BME280_HUMIDITY_OVERSAMPLING = 1
BME280_PRESSURE_OVERSAMPLING = 16
BME280_TEMPERATURE_OVERSAMPLING = 2
BME280_INACTIVE_DURATION = 1000
ILLUMINAN... | 20.117647 | 52 | 0.777778 | # -*- coding: utf-8 -*-
DEBUG = False
HOST = '0.0.0.0'
BME280_ADDRESS = 0x77
ILLUMINANCE_SENSOR_ADDRESS = 0x39 # 0x29 for TSL2561
BME280_MODE = 'normal'
BME280_FILTER = 16
BME280_HUMIDITY_OVERSAMPLING = 1
BME280_PRESSURE_OVERSAMPLING = 16
BME280_TEMPERATURE_OVERSAMPLING = 2
BME280_INACTIVE_DURATION = 1000
ILLUMINAN... | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
2c93a66bb575abd07f0e901bd2e639bb0b038dde | 1,081 | py | Python | examples/hello_world.py | KColdrick/pvtrace | b4b99905fae0f8b16358ca4e229379b6566f6020 | [
"BSD-3-Clause"
] | 58 | 2015-01-12T22:26:14.000Z | 2022-03-09T03:31:47.000Z | examples/hello_world.py | KColdrick/pvtrace | b4b99905fae0f8b16358ca4e229379b6566f6020 | [
"BSD-3-Clause"
] | 47 | 2016-03-20T17:41:58.000Z | 2021-06-09T08:06:19.000Z | examples/hello_world.py | KColdrick/pvtrace | b4b99905fae0f8b16358ca4e229379b6566f6020 | [
"BSD-3-Clause"
] | 58 | 2015-01-14T13:20:05.000Z | 2022-03-24T15:17:36.000Z | import time
import sys
import functools
import numpy as np
world = Node(
name="world (air)",
geometry=Sphere(
radius=10.0,
material=Material(refractive_index=1.0),
),
)
sphere = Node(
name="sphere (glass)",
geometry=Sphere(
radius=1.0,
material=Material(refractive_i... | 21.62 | 69 | 0.657724 | import time
import sys
import functools
import numpy as np
from pvtrace import *
world = Node(
name="world (air)",
geometry=Sphere(
radius=10.0,
material=Material(refractive_index=1.0),
),
)
sphere = Node(
name="sphere (glass)",
geometry=Sphere(
radius=1.0,
material... | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 22 |
b30e4b09fd5d8f2573fb54400c83e7a112c25e2f | 1,212 | py | Python | setup.py | janakj/bch-firmware-tool | 7d325d8e9ffdbafe88235027612344bf11e9fb0d | [
"MIT"
] | 7 | 2017-11-03T13:55:08.000Z | 2020-06-08T00:48:36.000Z | setup.py | janakj/bch-firmware-tool | 7d325d8e9ffdbafe88235027612344bf11e9fb0d | [
"MIT"
] | 3 | 2020-10-15T09:13:56.000Z | 2021-09-01T11:13:55.000Z | setup.py | janakj/bch-firmware-tool | 7d325d8e9ffdbafe88235027612344bf11e9fb0d | [
"MIT"
] | 3 | 2020-10-15T06:53:52.000Z | 2021-08-25T02:56:01.000Z | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from setuptools import setup, find_packages
with open('README.md', encoding='utf-8') as f:
long_description = f.read()
with open('requirements.txt', 'r') as f:
requirements = f.read()
setup(
name='bcf',
packages=find_packages(),
version='@@VERSION@@'... | 28.857143 | 60 | 0.631188 | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from setuptools import setup, find_packages
with open('README.md', encoding='utf-8') as f:
long_description = f.read()
with open('requirements.txt', 'r') as f:
requirements = f.read()
setup(
name='bcf',
packages=find_packages(),
version='@@VERSION@@'... | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
26a99a58fb22429235d533357b3e979df5a04faf | 71,095 | py | Python | AE_DS_train.py | damon-demon/Black-Box-Defense | d810a694862e83b899ef6207713b2a8071c79c04 | [
"MIT"
] | 2 | 2022-02-26T22:14:01.000Z | 2022-03-04T20:46:27.000Z | AE_DS_train.py | OTML-Group/Black-Box-Defense | b4e1b9e6e1703a8d1ba7535d531647abb9705fe9 | [
"MIT"
] | null | null | null | AE_DS_train.py | OTML-Group/Black-Box-Defense | b4e1b9e6e1703a8d1ba7535d531647abb9705fe9 | [
"MIT"
] | 1 | 2022-03-15T00:10:33.000Z | 2022-03-15T00:10:33.000Z | from architectures import DENOISERS_ARCHITECTURES, AUTOENCODER_ARCHITECTURES
from datasets import DATASETS
from torch.optim import Optimizer
from torch.utils.data import DataLoader
from torchvision.transforms import ToPILImage
from train_utils import AverageMeter, accuracy, measurement
import argparse
import os
import... | 45.808634 | 283 | 0.566791 | from architectures import DENOISERS_ARCHITECTURES, get_architecture, IMAGENET_CLASSIFIERS, AUTOENCODER_ARCHITECTURES
from datasets import get_dataset, DATASETS
from torch.nn import MSELoss, CrossEntropyLoss
from torch.optim import SGD, Optimizer, Adam
from torch.optim.lr_scheduler import StepLR, MultiStepLR
from torch.... | 0 | 0 | 0 | 0 | 0 | 11,332 | 0 | 272 | 201 |
94329d5573ef2c8d02798c7a9df659cc3c74c0e0 | 7,905 | py | Python | dashboard/dashboard/add_histograms_queue.py | tdresser/catapult-csm | 8f69b07e80198c1af0d5bd368d8ad8ced968884a | [
"BSD-3-Clause"
] | 4 | 2017-12-29T03:17:40.000Z | 2021-07-04T03:28:11.000Z | dashboard/dashboard/add_histograms_queue.py | tdresser/catapult-csm | 8f69b07e80198c1af0d5bd368d8ad8ced968884a | [
"BSD-3-Clause"
] | 1 | 2021-08-13T18:39:43.000Z | 2021-08-13T18:39:43.000Z | dashboard/dashboard/add_histograms_queue.py | tdresser/catapult-csm | 8f69b07e80198c1af0d5bd368d8ad8ced968884a | [
"BSD-3-Clause"
] | 6 | 2017-12-05T07:15:08.000Z | 2021-07-04T03:28:13.000Z | # Copyright 2017 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.
"""URL endpoint to add new histograms to the datastore."""
# TODO(eakuefner): Move these helpers so we don't have to import add_point or
# add_point_queue d... | 39.328358 | 80 | 0.737761 | # Copyright 2017 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.
"""URL endpoint to add new histograms to the datastore."""
import json
import sys
# TODO(eakuefner): Move these helpers so we don't have to import add_poin... | 0 | 0 | 0 | 3,547 | 0 | 2,640 | 0 | 233 | 492 |
78c84b7ee56515dc3bead9bcf1c8ad88c6452973 | 444 | py | Python | ABC/175/C.py | yu9824/AtCoder | 50a209059c005efadc1c912e443ec41365381c16 | [
"MIT"
] | null | null | null | ABC/175/C.py | yu9824/AtCoder | 50a209059c005efadc1c912e443ec41365381c16 | [
"MIT"
] | null | null | null | ABC/175/C.py | yu9824/AtCoder | 50a209059c005efadc1c912e443ec41365381c16 | [
"MIT"
] | null | null | null | # list(map(int, input().split()))
# int(input())
if __name__ == '__main__':
X, K, D = list(map(int, input().split()))
main(X, K, D)
| 18.5 | 45 | 0.416667 | # list(map(int, input().split()))
# int(input())
def main(X, K, D):
x = abs(X)
k = K
shou, amari = x // D, x % D
if shou >= k: # 0付近までたどり着かないとき
x -= k * D
k = 0
else:
k -= (shou + 1)
x -= (shou + 1) * D
if k % 2: # 奇数のとき
print(abs(x + D))
else:... | 66 | 0 | 0 | 0 | 0 | 258 | 0 | 0 | 23 |
8a8c8da7707307b84830b760237592ab16932227 | 29,920 | py | Python | error_correction/origami_aster.py | BoiseState/NAM | ba47a02487555ee2d6340900b9b4a1dbe14d88fd | [
"MIT"
] | 1 | 2021-04-08T14:41:51.000Z | 2021-04-08T14:41:51.000Z | error_correction/origami_aster.py | gmortuza/dnam | 816b5d7e4d1adfd95a56f6494a12856f08a38bee | [
"MIT"
] | null | null | null | error_correction/origami_aster.py | gmortuza/dnam | 816b5d7e4d1adfd95a56f6494a12856f08a38bee | [
"MIT"
] | 1 | 2022-02-06T22:32:48.000Z | 2022-02-06T22:32:48.000Z | import logging
logging.basicConfig(format='%(levelname)s:%(message)s', level=logging.DEBUG)
if __name__ == "__main__":
bin_stream = "1111100000000010"
origami_object = Origami(False)
encoded_file = origami_object.data_stream_to_matrix(origami_object._encode(bin_stream, 0, 16))
print(encoded_file)
... | 49.129721 | 139 | 0.611063 | import numpy as np
from functools import reduce
from collections import Counter
from itertools import combinations
import threading
import os
import copy
import logging
import math
logging.basicConfig(format='%(levelname)s:%(message)s', level=logging.DEBUG)
class Origami:
"""
"""
def __init__(self, ve... | 0 | 1,788 | 0 | 26,464 | 0 | 0 | 0 | -10 | 199 |
e65e9033e0eca79465b4b4c96829bd682869a564 | 18,271 | py | Python | cdips/utils/gaiaqueries.py | lgbouma/cdips | 187e15e620cd44160372dbfa9da989d38722c3e5 | [
"MIT"
] | 1 | 2019-10-04T02:03:25.000Z | 2019-10-04T02:03:25.000Z | cdips/utils/gaiaqueries.py | lgbouma/cdips | 187e15e620cd44160372dbfa9da989d38722c3e5 | [
"MIT"
] | 3 | 2019-08-17T20:33:23.000Z | 2021-08-18T17:55:10.000Z | cdips/utils/gaiaqueries.py | lgbouma/cdips | 187e15e620cd44160372dbfa9da989d38722c3e5 | [
"MIT"
] | null | null | null | """
Contents:
make_votable_given_source_ids
given_votable_get_df
given_source_ids_get_gaia_data
query_neighborhood
given_dr2_sourceids_get_edr3_xmatch
edr3_propermotion_to_ICRF
parallax_to_distance_highsn
"""
###########
# imports #
###########
import os
import numpy as np
from astropy.c... | 32.223986 | 139 | 0.599967 | """
Contents:
make_votable_given_source_ids
given_votable_get_df
given_source_ids_get_gaia_data
query_neighborhood
given_dr2_sourceids_get_edr3_xmatch
edr3_propermotion_to_ICRF
parallax_to_distance_highsn
"""
###########
# imports #
###########
import os
import numpy as np, matplotlib.py... | 6 | 0 | 0 | 0 | 0 | 531 | 0 | 114 | 189 |
6dc6296424a7fabdb0eaf00004a1ad6dda082c9e | 5,490 | py | Python | strategies/ppb.py | davzarov/shiny-barnacle | 0a94104325566238150927d242ed6fc82d62c27e | [
"MIT"
] | null | null | null | strategies/ppb.py | davzarov/shiny-barnacle | 0a94104325566238150927d242ed6fc82d62c27e | [
"MIT"
] | null | null | null | strategies/ppb.py | davzarov/shiny-barnacle | 0a94104325566238150927d242ed6fc82d62c27e | [
"MIT"
] | null | null | null | from pathlib import Path
from typing import Any, Dict, List, Union
import pandas as pd
from settings.conf import assets_cols, liabilities_cols, loss_cols, profit_cols
from utils import amounts_to_int, get_date, is_digit, list_to_df
assets_liabs_idxs = [[25, 33],
[36, 45],
[53... | 31.918605 | 101 | 0.525319 | from pathlib import Path
from typing import Any, Dict, List, Tuple, Union
import pandas as pd
import pdfplumber as pdf
from pdfplumber.page import Page
from settings.conf import assets_cols, liabilities_cols, loss_cols, profit_cols
from utils import amounts_to_int, get_date, is_digit, list_to_df
assets_liabs_idxs = [... | 0 | 0 | 0 | 0 | 0 | 2,362 | 0 | 21 | 136 |
6ada2c10ab578671cccee707965b3bcb25d3e921 | 646 | py | Python | idigbio_media_appliance/alembic/versions/c434a5920104_add_metadata_to_media.py | gauravyeole/iDigBio-appliance | 4fae0ef1e7cffc13c523a3a837b1b48da71b79b9 | [
"MIT"
] | 3 | 2016-11-15T21:09:09.000Z | 2020-04-14T15:17:16.000Z | idigbio_media_appliance/alembic/versions/c434a5920104_add_metadata_to_media.py | gauravyeole/iDigBio-appliance | 4fae0ef1e7cffc13c523a3a837b1b48da71b79b9 | [
"MIT"
] | 17 | 2016-11-21T21:02:22.000Z | 2020-03-25T18:54:53.000Z | idigbio_media_appliance/alembic/versions/c434a5920104_add_metadata_to_media.py | gauravyeole/iDigBio-appliance | 4fae0ef1e7cffc13c523a3a837b1b48da71b79b9 | [
"MIT"
] | 2 | 2017-06-09T17:30:37.000Z | 2019-04-09T22:09:54.000Z | """Add metadata to media.
Revision ID: c434a5920104
Revises: 02bc5fd54e77
Create Date: 2016-03-25 11:14:59.791090
"""
# revision identifiers, used by Alembic.
revision = 'c434a5920104'
down_revision = '02bc5fd54e77'
branch_labels = None
depends_on = None
| 22.275862 | 72 | 0.695046 | """Add metadata to media.
Revision ID: c434a5920104
Revises: 02bc5fd54e77
Create Date: 2016-03-25 11:14:59.791090
"""
# revision identifiers, used by Alembic.
revision = 'c434a5920104'
down_revision = '02bc5fd54e77'
branch_labels = None
depends_on = None
from alembic import op
import sqlalchemy as sa
def upgrade(... | 0 | 0 | 0 | 0 | 0 | 292 | 0 | 3 | 91 |
e3a8c11feec341a1413885256a020a2284e9d9af | 67 | py | Python | learn_dash_1.py | rblcoder/Learn_dash | e8b6bebceafae7fc325b091c6e5e8b5db9e16abd | [
"Apache-2.0"
] | null | null | null | learn_dash_1.py | rblcoder/Learn_dash | e8b6bebceafae7fc325b091c6e5e8b5db9e16abd | [
"Apache-2.0"
] | null | null | null | learn_dash_1.py | rblcoder/Learn_dash | e8b6bebceafae7fc325b091c6e5e8b5db9e16abd | [
"Apache-2.0"
] | null | null | null | import dash_core_components
print(dash_core_components.__version__) | 33.5 | 39 | 0.925373 | import dash_core_components
print(dash_core_components.__version__) | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
1d9174fb7a356ca17b72a59b6e50649db4b8d645 | 618 | py | Python | simple.py | punch2475-cmis/punch2475-cmis-cs2 | bdb19df81897d1a2ae24d409e4d49eebea91b792 | [
"CC0-1.0"
] | null | null | null | simple.py | punch2475-cmis/punch2475-cmis-cs2 | bdb19df81897d1a2ae24d409e4d49eebea91b792 | [
"CC0-1.0"
] | null | null | null | simple.py | punch2475-cmis/punch2475-cmis-cs2 | bdb19df81897d1a2ae24d409e4d49eebea91b792 | [
"CC0-1.0"
] | null | null | null | #pythagorean theorem
#a**2+b**2=c**2
main()
| 18.176471 | 81 | 0.695793 | import math
#pythagorean theorem
#a**2+b**2=c**2
def cal(legA, legB):
return math.sqrt((legA)**2+(legB)**2)
def output(Name,legA,legB,legC):
out = """
Hello {}, This program will help you solve triangle by using pythagorean theorem.
Shortest length of your triangle is{}
Second longest length of your triangle is ... | 0 | 0 | 0 | 0 | 0 | 483 | 0 | -10 | 92 |
31d868918c4cbe1284f18b898c17fd6ed5ae0938 | 2,219 | py | Python | pyclaragenomics/claragenomics/io/utils.py | billchenxi/ClaraGenomicsAnalysis | 544effc5881560de6d316f39c47c87014da14d70 | [
"Apache-2.0"
] | 1 | 2020-01-21T09:07:02.000Z | 2020-01-21T09:07:02.000Z | pyclaragenomics/claragenomics/io/utils.py | billchenxi/ClaraGenomicsAnalysis | 544effc5881560de6d316f39c47c87014da14d70 | [
"Apache-2.0"
] | null | null | null | pyclaragenomics/claragenomics/io/utils.py | billchenxi/ClaraGenomicsAnalysis | 544effc5881560de6d316f39c47c87014da14d70 | [
"Apache-2.0"
] | null | null | null | #
# Copyright (c) 2019, NVIDIA CORPORATION. All rights reserved.
#
# NVIDIA CORPORATION and its licensors retain all intellectual property
# and proprietary rights in and to this software, related documentation
# and any modifications thereto. Any use, reproduction, disclosure or
# distribution of this software and r... | 34.138462 | 76 | 0.591708 | #
# Copyright (c) 2019, NVIDIA CORPORATION. All rights reserved.
#
# NVIDIA CORPORATION and its licensors retain all intellectual property
# and proprietary rights in and to this software, related documentation
# and any modifications thereto. Any use, reproduction, disclosure or
# distribution of this software and r... | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
9f1f7452a3728ed3b06a906c71647ea89fdbb9a5 | 8,537 | py | Python | keystone/contrib/roles/migrate_repo/versions/007_support_postgresql.py | TampereTC/tre-smartcity-keystone | e2d0adc25165eef102c87d7991fb1a595680fda6 | [
"Apache-2.0"
] | null | null | null | keystone/contrib/roles/migrate_repo/versions/007_support_postgresql.py | TampereTC/tre-smartcity-keystone | e2d0adc25165eef102c87d7991fb1a595680fda6 | [
"Apache-2.0"
] | null | null | null | keystone/contrib/roles/migrate_repo/versions/007_support_postgresql.py | TampereTC/tre-smartcity-keystone | e2d0adc25165eef102c87d7991fb1a595680fda6 | [
"Apache-2.0"
] | null | null | null | # Copyright (C) 2016 Universidad Politecnica de Madrid
#
# 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 la... | 38.628959 | 88 | 0.715474 | # Copyright (C) 2016 Universidad Politecnica de Madrid
#
# 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 la... | 0 | 0 | 0 | 0 | 0 | 7,259 | 0 | 43 | 275 |
d32d0ffee155e29aa46a3ac45a40e983e25c66e2 | 845 | py | Python | exercicios-python/ex068.py | anavesilva/python-introduction | d85fb9381e348262584fd2942e4818ee822adbe5 | [
"MIT"
] | null | null | null | exercicios-python/ex068.py | anavesilva/python-introduction | d85fb9381e348262584fd2942e4818ee822adbe5 | [
"MIT"
] | null | null | null | exercicios-python/ex068.py | anavesilva/python-introduction | d85fb9381e348262584fd2942e4818ee822adbe5 | [
"MIT"
] | null | null | null | import random
print('-=' * 15)
print(' VAMOS JOGAR PAR OU MPAR?!')
print('-=' * 15)
lista = range(1, 11)
computador = random.choice(lista)
result = ''
x = ''
cont = 0
while x == result:
v = int(input('Digite um valor: '))
x = str(input('Par ou mpar? [P/I] ')).upper().strip()
soma = v + computador
if so... | 26.40625 | 108 | 0.530178 | import random
print('-=' * 15)
print(' VAMOS JOGAR PAR OU ÍMPAR?!')
print('-=' * 15)
lista = range(1, 11)
computador = random.choice(lista)
result = ''
x = ''
cont = 0
while x == result:
v = int(input('Digite um valor: '))
x = str(input('Par ou Ímpar? [P/I] ')).upper().strip()
soma = v + computador
if ... | 16 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
e8d1f7dffc7247bd9fddcf91afa3a7a30cceb4d5 | 3,198 | py | Python | packages/offcampus/food_recommendations.py | thecolumbialion/lionbot | fbe33f154f8ae71b86ae8c37a66890106c669d81 | [
"MIT"
] | 3 | 2018-01-10T22:28:07.000Z | 2019-11-18T10:36:52.000Z | packages/offcampus/food_recommendations.py | thecolumbialion/lionbot | fbe33f154f8ae71b86ae8c37a66890106c669d81 | [
"MIT"
] | 30 | 2018-01-09T04:45:16.000Z | 2021-04-30T20:41:52.000Z | packages/offcampus/food_recommendations.py | thecolumbialion/lionbot | fbe33f154f8ae71b86ae8c37a66890106c669d81 | [
"MIT"
] | 4 | 2018-01-20T21:05:46.000Z | 2020-09-03T17:36:06.000Z | from fbmq import Template
"""
Returns a Template.List which is essentially just a wrapper for a
python list of Template.Elements.
The list is the 'elements' field of the payload paramter (which is a
dictionary)
"""
def offcampus_dining_request_msg(
result,
latitude=40.806209,
longitude=-73.961... | 35.142857 | 77 | 0.628205 | import os
import requests
from fbmq import Template
"""
Returns a Template.List which is essentially just a wrapper for a
python list of Template.Elements.
The list is the 'elements' field of the payload paramter (which is a
dictionary)
"""
def offcampus_dining_request_msg(
result,
latitude=40.806209,... | 0 | 0 | 0 | 0 | 0 | 2,243 | 0 | -18 | 110 |
47f91d58fb88dcd94ee26fdb27dd705fd998fd67 | 2,368 | py | Python | updaters/gamedataupdater.py | BurraAbhishek/Python-Hand-Cricket | 36fc6fe65faa7cf9e6afe9a1102b1aa38aafd2e1 | [
"MIT"
] | 1 | 2022-03-04T09:59:15.000Z | 2022-03-04T09:59:15.000Z | updaters/gamedataupdater.py | YusiferZendric/Python-Hand-Cricket | 36fc6fe65faa7cf9e6afe9a1102b1aa38aafd2e1 | [
"MIT"
] | 2 | 2021-03-27T11:30:21.000Z | 2021-04-13T17:41:32.000Z | updaters/gamedataupdater.py | YusiferZendric/Python-Hand-Cricket | 36fc6fe65faa7cf9e6afe9a1102b1aa38aafd2e1 | [
"MIT"
] | 1 | 2021-09-29T12:51:10.000Z | 2021-09-29T12:51:10.000Z | import json
import ast
import hashlib
def team_setup_convert():
""" Update the game data from plaintext format to JSON format """
print("This module converts the old team plaintext data to JSON data")
teamname = input("Team name: ")
# Name of the text file where the team data will be saved.
input... | 37 | 74 | 0.58826 | import json
import ast
import hashlib
def team_setup_convert():
""" Update the game data from plaintext format to JSON format """
print("This module converts the old team plaintext data to JSON data")
teamname = input("Team name: ")
# Name of the text file where the team data will be saved.
input... | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
2ed02d046af1fdeae9dab0aab6c12abda97b4f04 | 10,780 | py | Python | lightweight/server.py | mdrachuk/lightspeed | ff4dc0531adfc483a0ec84a98ea308efbae6beda | [
"MIT"
] | 4 | 2019-08-27T19:17:44.000Z | 2020-04-24T04:49:30.000Z | lightweight/server.py | mdrachuk/lightspeed | ff4dc0531adfc483a0ec84a98ea308efbae6beda | [
"MIT"
] | 16 | 2019-08-22T14:44:10.000Z | 2020-06-29T15:07:24.000Z | lightweight/server.py | mdrachuk/lightspeed | ff4dc0531adfc483a0ec84a98ea308efbae6beda | [
"MIT"
] | null | null | null | """
Dev HTTP server serving static files using asyncio.
Highlights:
- Allows to drop ".html" in URLs
- which corresponds to nginx `try_files $uri $uri.html $uri/index.html =404;`
- Can inject live-reload JS to HTML.
Mostly stolen from picoweb -- web pico-framework for Pycopy 2019 MIT
"""
from __future__ import an... | 30.625 | 112 | 0.587384 | """
Dev HTTP server serving static files using asyncio.
Highlights:
- Allows to drop ".html" in URLs
- which corresponds to nginx `try_files $uri $uri.html $uri/index.html =404;`
- Can inject live-reload JS to HTML.
Mostly stolen from picoweb -- web pico-framework for Pycopy 2019 MIT
"""
from __future__ import an... | 0 | 1,761 | 1,767 | 5,049 | 0 | 293 | 0 | 122 | 333 |
3657717588007da92d7519be7d5d0fbf649e2182 | 2,038 | py | Python | GmailWrapper_JE/venv/Lib/site-packages/pyasn1_modules/rfc3114.py | JE-Chen/je_old_repo | a8b2f1ac2eec25758bd15b71c64b59b27e0bcda5 | [
"MIT"
] | null | null | null | GmailWrapper_JE/venv/Lib/site-packages/pyasn1_modules/rfc3114.py | JE-Chen/je_old_repo | a8b2f1ac2eec25758bd15b71c64b59b27e0bcda5 | [
"MIT"
] | null | null | null | GmailWrapper_JE/venv/Lib/site-packages/pyasn1_modules/rfc3114.py | JE-Chen/je_old_repo | a8b2f1ac2eec25758bd15b71c64b59b27e0bcda5 | [
"MIT"
] | null | null | null | #
# This file is part of pyasn1-modules software.
#
# Created by Russ Housley with assistance from asn1ate v.0.6.0.
#
# Copyright (c) 2019, Vigil Security, LLC
# License: http://snmplabs.com/pyasn1/license.html
#
# TEST Company Classification Policies
#
# ASN.1 source from:
# https://www.rfc-editor.org/rfc/r... | 26.128205 | 69 | 0.691855 | #
# This file is part of pyasn1-modules software.
#
# Created by Russ Housley with assistance from asn1ate v.0.6.0.
#
# Copyright (c) 2019, Vigil Security, LLC
# License: http://snmplabs.com/pyasn1/license.html
#
# TEST Company Classification Policies
#
# ASN.1 source from:
# https://www.rfc-editor.org/rfc/r... | 0 | 0 | 0 | 659 | 0 | 0 | 0 | 18 | 148 |
770bac784213d13856f1a37d2bca391c58fc9574 | 7,127 | py | Python | data/get_data.py | innerfirexy/cognition2017 | 98ab93e520d991991dbb24d527c742bb768b559a | [
"MIT"
] | null | null | null | data/get_data.py | innerfirexy/cognition2017 | 98ab93e520d991991dbb24d527c742bb768b559a | [
"MIT"
] | null | null | null | data/get_data.py | innerfirexy/cognition2017 | 98ab93e520d991991dbb24d527c742bb768b559a | [
"MIT"
] | null | null | null | #!/usr/local/bin/python3
# Get data from database
# Yang Xu
# 2/22/2017
# get db connection
##
# select Switchboard entropy data
##
# select Switchboard text from db
##
# Select BNC entropy data
# The `entropy_DEM100` table contains 2398 rows where `topicID` and `inTopicID` columns are NULL
# which are perhaps due ... | 35.282178 | 132 | 0.573032 | #!/usr/local/bin/python3
# Get data from database
# Yang Xu
# 2/22/2017
import MySQLdb
import csv
import sys
import string
# get db connection
def db_conn(db_name):
# db init: ssh yvx5085@brain.ist.psu.edu -i ~/.ssh/id_rsa -L 1234:localhost:3306
conn = MySQLdb.connect(host = "127.0.0.1",
u... | 0 | 0 | 0 | 0 | 0 | 5,817 | 0 | -37 | 287 |
bc444c9710c8c99e42d8f1dbc397910c5dad7a27 | 302,736 | py | Python | quantipy/core/dataset.py | encount/quantipy3 | 01fe350b79594ba162cd48ce91f6e547e74265fe | [
"MIT"
] | null | null | null | quantipy/core/dataset.py | encount/quantipy3 | 01fe350b79594ba162cd48ce91f6e547e74265fe | [
"MIT"
] | null | null | null | quantipy/core/dataset.py | encount/quantipy3 | 01fe350b79594ba162cd48ce91f6e547e74265fe | [
"MIT"
] | null | null | null | #!/usr/bin/python
# -*- coding: utf-8 -*-
VALID_TKS = [
'en-GB', 'da-DK', 'fi-FI', 'nb-NO', 'sv-SE', 'de-DE', 'fr-FR', 'ar-AR',
'es-ES', 'it-IT', 'pl-PL', 'en']
VAR_SUFFIXES = [
'_rc', '_net', ' (categories', ' (NET', '_rec']
BLACKLIST_VARIABLES = [
'batches', 'columns', 'info', 'items', 'lib', 'mask... | 40.044444 | 118 | 0.536781 | #!/usr/bin/python
# -*- coding: utf-8 -*-
import numpy as np
import pandas as pd
import quantipy as qp
from quantipy.core.tools.dp.io import (
read_quantipy as r_quantipy,
read_dimensions as r_dimensions,
read_decipher as r_decipher,
read_spss as r_spss,
read_ascribe as r_ascribe,
read_confirmi... | 8 | 181,614 | 0 | 119,429 | 0 | 0 | 0 | 803 | 471 |
8313ad7b478aa1c435e2f5e98a470104c9f8b1aa | 2,058 | py | Python | GUI/Cocoa/Numerical.py | gcewing/PyGUI | 58c6c38ccb8e66acdf98dea6b24bef1d9a03147c | [
"MIT"
] | 9 | 2019-07-15T19:03:27.000Z | 2021-11-24T19:50:02.000Z | GUI/Cocoa/Numerical.py | mnabeelp/PyGUI | 58c6c38ccb8e66acdf98dea6b24bef1d9a03147c | [
"MIT"
] | 3 | 2019-09-11T13:22:10.000Z | 2020-08-19T20:13:00.000Z | GUI/Cocoa/Numerical.py | mnabeelp/PyGUI | 58c6c38ccb8e66acdf98dea6b24bef1d9a03147c | [
"MIT"
] | 4 | 2020-02-23T16:50:06.000Z | 2022-02-10T07:15:35.000Z | #--------------------------------------------------------------
#
# PyGUI - NumPy interface - Cocoa
#
#--------------------------------------------------------------
from AppKit import NSBitmapImageRep, NSAlphaNonpremultipliedBitmapFormat, NSCalibratedRGBColorSpace
from GUI import Image
# HACK! PyObjC 2.3 incorrect... | 40.352941 | 232 | 0.734208 | #--------------------------------------------------------------
#
# PyGUI - NumPy interface - Cocoa
#
#--------------------------------------------------------------
from AppKit import NSBitmapImageRep, \
NSAlphaNonpremultipliedBitmapFormat, NSCalibratedRGBColorSpace
from GUI import Image
# HACK! PyObjC 2.3 incorr... | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 | 0 |
0d83145cebe806336723f6dbcfb1244ca09a98f4 | 1,716 | py | Python | py/hashtag_generator/test_hashtag_generator.py | kkamara/playground | 78c8f8b87091af28ed31ccf0429019e3cfd5af04 | [
"BSD-3-Clause"
] | null | null | null | py/hashtag_generator/test_hashtag_generator.py | kkamara/playground | 78c8f8b87091af28ed31ccf0429019e3cfd5af04 | [
"BSD-3-Clause"
] | null | null | null | py/hashtag_generator/test_hashtag_generator.py | kkamara/playground | 78c8f8b87091af28ed31ccf0429019e3cfd5af04 | [
"BSD-3-Clause"
] | null | null | null | #!/usr/bin/env python3
import unittest
if __name__ == '__main__':
unittest.main()
| 68.64 | 183 | 0.738345 | #!/usr/bin/env python3
import unittest
import main as hashtag_generator
class TestHashtagGenerator(unittest.TestCase):
def test_return_value(self):
self.assertEqual(False, hashtag_generator.execute(''), 'Expected an empty string to return False')
self.assertEqual('#DoWeHaveAHashtag', hashtag_genera... | 0 | 0 | 0 | 1,571 | 0 | 0 | 0 | 11 | 45 |
92123cebc452d27d99e5237b838430909909855c | 416 | py | Python | test_func_defaults.py | lyqgenius/openstack-test-script | b3234001e531dbaeddfab8be1b439b7e06f519d1 | [
"Apache-2.0"
] | null | null | null | test_func_defaults.py | lyqgenius/openstack-test-script | b3234001e531dbaeddfab8be1b439b7e06f519d1 | [
"Apache-2.0"
] | null | null | null | test_func_defaults.py | lyqgenius/openstack-test-script | b3234001e531dbaeddfab8be1b439b7e06f519d1 | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
import nova.conf
from nova import config
from nova import utils
utils.period_heartbeat_file.func_defaults
CONF = nova.conf.CONF
argv = []
default_config_files = ['/etc/ironic-nova-compute/ironic-nova-compute.conf']
config.parse_args(argv, default_config_files=default_config_files)
utils.period... | 26 | 76 | 0.8125 | # -*- coding: utf-8 -*-
import nova.conf
from nova import config
from nova import utils
utils.period_heartbeat_file.func_defaults
CONF = nova.conf.CONF
argv = []
default_config_files = ['/etc/ironic-nova-compute/ironic-nova-compute.conf']
config.parse_args(argv, default_config_files=default_config_files)
utils.period... | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
b0d962eca073df3afe9ab4a05d864e50b83a7f94 | 46,396 | py | Python | rpython/flowspace/flowcontext.py | kantai/passe-pypy-taint-tracking | b60a3663f8fe89892dc182c8497aab97e2e75d69 | [
"MIT"
] | 2 | 2016-07-06T23:30:20.000Z | 2017-05-30T15:59:31.000Z | rpython/flowspace/flowcontext.py | kantai/passe-pypy-taint-tracking | b60a3663f8fe89892dc182c8497aab97e2e75d69 | [
"MIT"
] | null | null | null | rpython/flowspace/flowcontext.py | kantai/passe-pypy-taint-tracking | b60a3663f8fe89892dc182c8497aab97e2e75d69 | [
"MIT"
] | 2 | 2020-07-09T08:14:22.000Z | 2021-01-15T18:01:25.000Z | """Implements the core parts of flow graph creation, in tandem
with rpython.flowspace.objspace.
"""
# ____________________________________________________________
# ____________________________________________________________
_unary_ops = [('UNARY_POSITIVE', "pos"),
('UNARY_NEGATIVE', "neg"),
('UNARY_NOT',... | 34.727545 | 86 | 0.62708 | """Implements the core parts of flow graph creation, in tandem
with rpython.flowspace.objspace.
"""
import sys
import collections
from rpython.tool.error import source_lines
from rpython.tool.stdlib_opcode import host_bytecode_spec
from rpython.flowspace.argument import ArgumentsForTranslation
from rpython.flowspace.... | 0 | 358 | 0 | 40,775 | 0 | 1,938 | 0 | 328 | 779 |
cbab6b7b82328c1848df47f225a1a8123d5f932d | 1,078 | py | Python | tests/test___init__.py | JGoutin/compilertools | f4375238937384a0400cfc618d3b18fc6e7233a9 | [
"BSD-2-Clause"
] | 10 | 2017-09-07T18:53:26.000Z | 2021-02-22T22:05:30.000Z | tests/test___init__.py | JGoutin/compilertools | f4375238937384a0400cfc618d3b18fc6e7233a9 | [
"BSD-2-Clause"
] | 2 | 2018-08-16T08:42:09.000Z | 2019-01-11T20:20:21.000Z | tests/test___init__.py | JGoutin/compilertools | f4375238937384a0400cfc618d3b18fc6e7233a9 | [
"BSD-2-Clause"
] | 2 | 2018-05-11T07:44:56.000Z | 2018-05-28T13:08:41.000Z | """Test module import"""
def tests_init():
"""Test __version__ presence and format"""
from pytest import raises
from collections import namedtuple
import sys
sys_version_info = sys.version_info
version_info = namedtuple(
"Version_Info", ["major", "minor", "micro", "releaselevel", "ser... | 24.5 | 79 | 0.678108 | """Test module import"""
def tests_init():
"""Test __version__ presence and format"""
from pytest import raises
from collections import namedtuple
import sys
sys_version_info = sys.version_info
version_info = namedtuple(
"Version_Info", ["major", "minor", "micro", "releaselevel", "ser... | 0 | 0 | 0 | 0 | 0 | 0 | 0 | -1 | 48 |
6a038d181c1811fba3e62b922b489264cff20b06 | 1,970 | py | Python | main.py | XMLPro/brain-py | a9aa0faf7fbfb188efe990bcbc85dfecd13eaf58 | [
"MIT"
] | null | null | null | main.py | XMLPro/brain-py | a9aa0faf7fbfb188efe990bcbc85dfecd13eaf58 | [
"MIT"
] | null | null | null | main.py | XMLPro/brain-py | a9aa0faf7fbfb188efe990bcbc85dfecd13eaf58 | [
"MIT"
] | null | null | null | import sys
if __name__ == '__main__':
fname = sys.argv[1]
interpreter = BrainFuck(fname)
interpreter.run()
| 25.921053 | 63 | 0.407614 | import sys
class BrainFuck:
def __init__(self, fname):
with open(fname, 'r') as f:
self.source = f.read()
self.l = [0 for i in range(10000)]
self.index = 0
self.bracket_start = -1
def run(self):
for i, char in enumerate(self.source):
if char == '... | 0 | 0 | 0 | 1,827 | 0 | 0 | 0 | 0 | 23 |
7fe6a4efd421c91892892b97ca16d5c1d171aa5e | 206 | py | Python | output_files/read_priors_parameters.py | Basdorsman/kilonova-bayesian-analysis | 73b11ac8d8bfe5b10d11acc8d161bb5e4153fa30 | [
"Apache-2.0"
] | null | null | null | output_files/read_priors_parameters.py | Basdorsman/kilonova-bayesian-analysis | 73b11ac8d8bfe5b10d11acc8d161bb5e4153fa30 | [
"Apache-2.0"
] | null | null | null | output_files/read_priors_parameters.py | Basdorsman/kilonova-bayesian-analysis | 73b11ac8d8bfe5b10d11acc8d161bb5e4153fa30 | [
"Apache-2.0"
] | null | null | null | import pickle
#date = '22-02-08 1051'
file = f'results/kilonova_uvboostmodel_shockdata_0h_delay/40Mpc_no_opticalband_NUV_Dband_parameters'
with open(file,'rb') as data:
information=pickle.load(data)
| 22.888889 | 100 | 0.796117 | import pickle
#date = '22-02-08 1051'
file = f'results/kilonova_uvboostmodel_shockdata_0h_delay/40Mpc_no_opticalband_NUV_Dband_parameters'
with open(file,'rb') as data:
information=pickle.load(data)
| 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
655990799f8eb3d4455fa7f2dbfe8adc4e132035 | 3,759 | py | Python | python/v1/buyers/creatives/create_video_creatives.py | islue/authorized-buyers-rtb-api-samples | 0d10fcd5fbf516b32efac23e1e9313252170eafc | [
"Apache-2.0"
] | 4 | 2021-01-21T04:17:50.000Z | 2021-12-26T19:34:18.000Z | python/v1/buyers/creatives/create_video_creatives.py | islue/authorized-buyers-rtb-api-samples | 0d10fcd5fbf516b32efac23e1e9313252170eafc | [
"Apache-2.0"
] | 2 | 2021-03-04T09:19:23.000Z | 2021-06-02T21:20:02.000Z | python/v1/buyers/creatives/create_video_creatives.py | islue/authorized-buyers-rtb-api-samples | 0d10fcd5fbf516b32efac23e1e9313252170eafc | [
"Apache-2.0"
] | 5 | 2020-12-24T10:53:04.000Z | 2021-12-08T08:27:49.000Z | #!/usr/bin/python
#
# Copyright 2020 Google Inc. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required b... | 32.973684 | 79 | 0.69593 | #!/usr/bin/python
#
# Copyright 2020 Google Inc. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required b... | 0 | 0 | 0 | 0 | 0 | 792 | 0 | 9 | 90 |
cefd4e1c9799792011806e30da8d3dece14e0a4f | 1,298 | py | Python | cms/cache/permissions.py | s-a-s-forks/django-cms | 697a0b01eb5f931b9026d6f7c00d5608cc23f2c8 | [
"BSD-3-Clause"
] | 1 | 2015-11-23T02:33:07.000Z | 2015-11-23T02:33:07.000Z | xue/cms/cache/permissions.py | team-xue/xue | e6bd9539803a2bf902f48b65a9df86356b5d46b2 | [
"BSD-3-Clause"
] | null | null | null | xue/cms/cache/permissions.py | team-xue/xue | e6bd9539803a2bf902f48b65a9df86356b5d46b2 | [
"BSD-3-Clause"
] | 1 | 2019-02-13T06:24:02.000Z | 2019-02-13T06:24:02.000Z | # -*- coding: utf-8 -*-
from django.core.cache import cache
# Time to live for cache entry 10 minutes, so it gets cleaned if we don't catch
# something - don't make higher; groups may be problematic because of no signals
# when adding / removing from group
TTL = 600
permission_cache_keys = []
all_keys = []
get_c... | 31.658537 | 84 | 0.695686 | # -*- coding: utf-8 -*-
from django.core.cache import cache
# Time to live for cache entry 10 minutes, so it gets cleaned if we don't catch
# something - don't make higher; groups may be problematic because of no signals
# when adding / removing from group
TTL = 600
permission_cache_keys = []
all_keys = []
get_c... | 0 | 0 | 0 | 0 | 0 | 59 | 0 | 0 | 23 |
2f070008f374ea075a76d182585cb00a867ea61f | 9,562 | py | Python | write_azure.py | LLNL/ferdinand | af47b415ea1e9cb21a45b20d1f3854bc7f3a4d70 | [
"Apache-2.0"
] | null | null | null | write_azure.py | LLNL/ferdinand | af47b415ea1e9cb21a45b20d1f3854bc7f3a4d70 | [
"Apache-2.0"
] | null | null | null | write_azure.py | LLNL/ferdinand | af47b415ea1e9cb21a45b20d1f3854bc7f3a4d70 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python3
##############################################
# #
# Ferdinand 0.40, Ian Thompson, LLNL #
# #
# gnd,endf,fresco,azure,hyrma #
# #
##############... | 50.326316 | 283 | 0.510144 | #!/usr/bin/env python3
##############################################
# #
# Ferdinand 0.40, Ian Thompson, LLNL #
# #
# gnd,endf,fresco,azure,hyrma #
# #
##############... | 0 | 0 | 0 | 0 | 0 | 8,916 | 0 | 44 | 112 |
da095213d2d916be088ee30dbc0322212dce881b | 1,710 | py | Python | test/node103.py | aguegu/lonworks-demo | 4fa9b1476490c45f4cf6bcce962a8fcce75b7707 | [
"MIT"
] | 5 | 2016-11-22T06:32:18.000Z | 2020-09-11T09:47:42.000Z | test/node103.py | aguegu/lonworks-demo | 4fa9b1476490c45f4cf6bcce962a8fcce75b7707 | [
"MIT"
] | null | null | null | test/node103.py | aguegu/lonworks-demo | 4fa9b1476490c45f4cf6bcce962a8fcce75b7707 | [
"MIT"
] | 2 | 2016-05-17T16:07:51.000Z | 2020-05-15T13:09:29.000Z | #!/usr/bin/env python
| 21.923077 | 117 | 0.671345 | #!/usr/bin/env python
import unittest
import serial
import datetime
import re
import time
class Node:
def __init__(self, serialport, address):
self.sp = serialport
self.address = address
def frame10(self, function):
s = bytearray()
s.append(0x10)
s.append(function)
s.append(self.address)
s.append(func... | 0 | 59 | 0 | 1,538 | 0 | 0 | 0 | -42 | 133 |
46c0c7f27cf41f903ba1ec112231babaacd165c4 | 1,029 | py | Python | scripts/consts.py | jupyter-resources/notebook-research | 2a81d2853ceeb57b8d9db22ca6cb12f01d84bd50 | [
"BSD-3-Clause"
] | 18 | 2019-08-13T23:36:58.000Z | 2022-02-09T01:11:22.000Z | scripts/consts.py | jennalandy/notebook-research | d81987e91546f96a7e97746b89ae5c31bdcc6349 | [
"BSD-3-Clause"
] | 1 | 2019-07-29T22:21:33.000Z | 2019-07-29T22:21:33.000Z | scripts/consts.py | jennalandy/notebook-research | d81987e91546f96a7e97746b89ae5c31bdcc6349 | [
"BSD-3-Clause"
] | 7 | 2019-07-18T17:11:28.000Z | 2021-02-23T17:03:23.000Z | import subprocess
import boto3
# GitHub tokens and http request authentication.
ENV_VARS = subprocess.check_output("printenv", shell=True).decode().split("\n")
# Finds all GitHub tokens stored as environment variables.
# GitHub token variables must be prefixed with 'GITHUB_TOKEN'
# (e.g. export GITHUB_TOKEN1="...")
... | 22.369565 | 79 | 0.691934 | import subprocess
import boto3
# GitHub tokens and http request authentication.
ENV_VARS = subprocess.check_output("printenv", shell=True).decode().split("\n")
# Finds all GitHub tokens stored as environment variables.
# GitHub token variables must be prefixed with 'GITHUB_TOKEN'
# (e.g. export GITHUB_TOKEN1="...")
... | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
8e118d7cd0dbed6f9c4d0b84dfa0e9cc5d778b6c | 1,608 | py | Python | enzynet/volume_test.py | gdarkwah/enzynet | 7367635ae73595822133577054743a4c4c327cf3 | [
"MIT"
] | 189 | 2017-07-20T22:16:22.000Z | 2022-02-21T17:57:41.000Z | enzynet/volume_test.py | gdarkwah/enzynet | 7367635ae73595822133577054743a4c4c327cf3 | [
"MIT"
] | 16 | 2019-05-09T14:47:44.000Z | 2021-09-19T00:25:59.000Z | enzynet/volume_test.py | gdarkwah/enzynet | 7367635ae73595822133577054743a4c4c327cf3 | [
"MIT"
] | 93 | 2017-07-20T22:55:41.000Z | 2022-03-12T19:42:14.000Z | """Testing file for volume.py."""
# Authors: Afshine Amidi <lastname@mit.edu>
# Shervine Amidi <firstname@stanford.edu>
# MIT License
import unittest
_N_DIMENSIONS = 3
if __name__ == '__main__':
unittest.main()
| 29.236364 | 80 | 0.594527 | """Testing file for volume.py."""
# Authors: Afshine Amidi <lastname@mit.edu>
# Shervine Amidi <firstname@stanford.edu>
# MIT License
from typing import Text
import unittest
import numpy as np
from enzynet import volume
from parameterized import parameterized
_N_DIMENSIONS = 3
class RemoveNoiseTest(un... | 0 | 1,167 | 0 | 20 | 0 | 0 | 0 | 22 | 168 |
e3ac81954d471a8aef6e8455f2d2db46b44a1109 | 16,256 | py | Python | Gds/src/fprime_gds/wxgui/src/GDSLogEventPanelImpl.py | chrisdonlan/fprime | 0cab90e238cff1b50c20f1e148a44cf8827a5bf8 | [
"Apache-2.0"
] | 5 | 2019-10-22T03:41:02.000Z | 2022-01-16T12:48:31.000Z | Gds/src/fprime_gds/wxgui/src/GDSLogEventPanelImpl.py | chrisdonlan/fprime | 0cab90e238cff1b50c20f1e148a44cf8827a5bf8 | [
"Apache-2.0"
] | 27 | 2019-02-07T17:58:58.000Z | 2019-08-13T00:46:24.000Z | Gds/src/fprime_gds/wxgui/src/GDSLogEventPanelImpl.py | chrisdonlan/fprime | 0cab90e238cff1b50c20f1e148a44cf8827a5bf8 | [
"Apache-2.0"
] | 3 | 2019-01-01T18:44:37.000Z | 2019-08-01T01:19:39.000Z | # TODO Documentation
from __future__ import absolute_import
###########################################################################
## Class LogEventsImpl
###########################################################################
| 35.33913 | 127 | 0.605192 | # TODO Documentation
from __future__ import absolute_import
import wx
from . import GDSLogEventPanelGUI
from fprime_gds.common.data_types.event_data import EventData
from fprime_gds.common.utils.event_severity import EventSeverity
from fprime_gds.common.utils.config_manager import ConfigManager
######################... | 0 | 0 | 0 | 15,734 | 0 | 0 | 0 | 126 | 157 |
afd24fd8b4ee7394673d435f6212f15560258846 | 220 | py | Python | tweets.py | guzey/save_tweets | 3b8c03a60f848fc4219cfd92a50e136dc32f4979 | [
"MIT"
] | 2 | 2017-12-06T13:46:10.000Z | 2020-02-10T00:30:38.000Z | tweets.py | guzey/save_tweets | 3b8c03a60f848fc4219cfd92a50e136dc32f4979 | [
"MIT"
] | null | null | null | tweets.py | guzey/save_tweets | 3b8c03a60f848fc4219cfd92a50e136dc32f4979 | [
"MIT"
] | null | null | null | tweets = ["https://twitter.com/GateOfHeavens/status/246739124193751041",
"https://twitter.com/abigailb/status/360482662491754496",
"https://twitter.com/suleimenov/status/366952592200314880"
] | 55 | 72 | 0.7 | tweets = ["https://twitter.com/GateOfHeavens/status/246739124193751041",
"https://twitter.com/abigailb/status/360482662491754496",
"https://twitter.com/suleimenov/status/366952592200314880"
] | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
0e21b67fb62eef22ad894f646895dbd3f12acb3f | 259 | py | Python | clickuz/status.py | aziz837/ClickUz | 75fcb43f025ad994dad1df6b628a284a1a710954 | [
"MIT"
] | 39 | 2020-05-02T13:39:25.000Z | 2022-03-30T10:12:54.000Z | clickuz/status.py | aziz837/ClickUz | 75fcb43f025ad994dad1df6b628a284a1a710954 | [
"MIT"
] | null | null | null | clickuz/status.py | aziz837/ClickUz | 75fcb43f025ad994dad1df6b628a284a1a710954 | [
"MIT"
] | 9 | 2020-05-02T19:41:24.000Z | 2022-03-14T08:11:11.000Z | INVALID_AMOUNT = -2
INVALID_ACTION = -4
TRANSACTION_NOT_FOUND = -6
ORDER_NOT_FOUND = -5
PREPARE = '0'
COMPLETE = '1'
A_LACK_OF_MONEY = '-5017'
A_LACK_OF_MONEY_CODE = -9
AUTHORIZATION_FAIL = 'AUTHORIZATION_FAIL'
AUTHORIZATION_FAIL_CODE = -1
ORDER_FOUND = True
| 21.583333 | 41 | 0.772201 | INVALID_AMOUNT = -2
INVALID_ACTION = -4
TRANSACTION_NOT_FOUND = -6
ORDER_NOT_FOUND = -5
PREPARE = '0'
COMPLETE = '1'
A_LACK_OF_MONEY = '-5017'
A_LACK_OF_MONEY_CODE = -9
AUTHORIZATION_FAIL = 'AUTHORIZATION_FAIL'
AUTHORIZATION_FAIL_CODE = -1
ORDER_FOUND = True
| 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
dd75c82bf77455bdac4f18a996d4c5c514c014a3 | 12,114 | py | Python | lfdw_spenden_app.py | dorsax/betterplace_fetch | 5fdbfa6c8315aa59cd601f0969f67851735f4854 | [
"MIT"
] | 2 | 2021-07-17T18:21:41.000Z | 2021-09-07T12:26:39.000Z | lfdw_spenden_app.py | dorsax/betterplace_fetch | 5fdbfa6c8315aa59cd601f0969f67851735f4854 | [
"MIT"
] | 1 | 2021-10-13T13:23:55.000Z | 2021-10-13T13:23:55.000Z | lfdw_spenden_app.py | dorsax/betterplace_fetch | 5fdbfa6c8315aa59cd601f0969f67851735f4854 | [
"MIT"
] | null | null | null | import dash
import yaml
import os
from dash import dash_table
from dash import dcc
from dash import html
from pandas import Timestamp as ts
from dash.dash_table.Format import Format, Symbol
from dash import dash_table
from flask_caching import Cache
import dash_daq as daq
config_filename = 'config.yml'
configstream = ... | 37.388889 | 217 | 0.63472 | import dash
import yaml
import os
import setup
from dash import dash_table
from dash import dcc
from dash import html
from pandas import Timestamp as ts
from dash.dependencies import Input, Output
from datetime import timedelta
import plotly.express as px
import pandas as pd
import plotly.graph_objects as go
from plotl... | 32 | 5,088 | 0 | 0 | 0 | 2,886 | 0 | 101 | 245 |
8345ea05071436f455b662fc6c20e50707e7e1e4 | 1,062 | py | Python | _scripts/tests/data/three_girls/tests/q_2_three_of_five.py | pxr687/cfd2021 | e4583e0b163817ddf360f35687d7939b06427868 | [
"CC-BY-4.0"
] | 1 | 2021-09-16T10:11:02.000Z | 2021-09-16T10:11:02.000Z | _scripts/tests/data/three_girls/tests/q_2_three_of_five.py | pxr687/cfd2021 | e4583e0b163817ddf360f35687d7939b06427868 | [
"CC-BY-4.0"
] | 10 | 2020-10-30T15:24:02.000Z | 2021-08-30T12:16:31.000Z | _scripts/tests/data/three_girls/tests/q_2_three_of_five.py | pxr687/cfd2021 | e4583e0b163817ddf360f35687d7939b06427868 | [
"CC-BY-4.0"
] | 5 | 2019-12-03T00:54:39.000Z | 2020-09-21T14:30:43.000Z | test = {
'name': 'Question no_girls',
'points': 10,
'suites': [
{
'cases': [
{
'code': r"""
>>> # You need to set the value for 'p_3_of_5'
>>> 'p_3_of_5' in vars()
True
""",
'hidden': False,
'locked': False
},
... | 23.086957 | 77 | 0.376648 | test = {
'name': 'Question no_girls',
'points': 10,
'suites': [
{
'cases': [
{
'code': r"""
>>> # You need to set the value for 'p_3_of_5'
>>> 'p_3_of_5' in vars()
True
""",
'hidden': False,
'locked': False
},
... | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
3bb58d302a092c33c5451e87d29fffc3f6bcc952 | 1,449 | py | Python | HL7py/test_messages.py | norlowski/HL7py | f0fc7e1a79538099816058f48b43f9036ecd3f82 | [
"MIT"
] | 7 | 2015-02-16T13:38:00.000Z | 2021-01-09T16:28:30.000Z | HL7py/test_messages.py | norlowski/HL7py | f0fc7e1a79538099816058f48b43f9036ecd3f82 | [
"MIT"
] | null | null | null | HL7py/test_messages.py | norlowski/HL7py | f0fc7e1a79538099816058f48b43f9036ecd3f82 | [
"MIT"
] | 5 | 2016-03-07T13:47:52.000Z | 2021-08-09T17:19:25.000Z | """
The real newline and carriage return characters in these strings will be replaced by the
reverse_rep_ch. Keep in mind that messages in this format are for DEBUG PURPOSES ONLY.
"""
DATA = '''
MSH|^~\&|1100|BN|OPTX|BN002234|201210180743||ORU^R01|0417|P|2.3<CR>
PID|1|123456789|112233|1234567|Test^Patient||19820620|F|... | 69 | 151 | 0.73706 | """
The real newline and carriage return characters in these strings will be replaced by the
reverse_rep_ch. Keep in mind that messages in this format are for DEBUG PURPOSES ONLY.
"""
DATA = '''
MSH|^~\&|1100|BN|OPTX|BN002234|201210180743||ORU^R01|0417|P|2.3<CR>
PID|1|123456789|112233|1234567|Test^Patient||19820620|F|... | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
0b264950d93185a298f0a453c803801ebf31977b | 9,360 | py | Python | agile_blinkt.py | butako/agile_blinkt | 90d7d5afae65739daa28d64881e9d1762122e6a8 | [
"Apache-2.0"
] | 1 | 2021-03-06T20:18:27.000Z | 2021-03-06T20:18:27.000Z | agile_blinkt.py | butako/agile_blinkt | 90d7d5afae65739daa28d64881e9d1762122e6a8 | [
"Apache-2.0"
] | 1 | 2021-03-06T20:20:14.000Z | 2021-03-06T20:20:14.000Z | agile_blinkt.py | butako/agile_blinkt | 90d7d5afae65739daa28d64881e9d1762122e6a8 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python3
"""
AGILE BLINKT!
An Octopus Agile and Energy Consumption Visualizer.
This script is written to be used with the Pimoroni Blinkt LED board,
Octopus Energy Agile price tariff, and a live power consumption/export
feed (e.g. from Open Emon CMS). Of course, you could use other ... | 34.285714 | 172 | 0.641239 | #!/usr/bin/env python3
"""
AGILE BLINKT!
An Octopus Agile and Energy Consumption Visualizer.
This script is written to be used with the Pimoroni Blinkt LED board,
Octopus Energy Agile price tariff, and a live power consumption/export
feed (e.g. from Open Emon CMS). Of course, you could use other ... | 0 | 0 | 0 | 0 | 0 | 0 | 0 | -1 | 23 |
7c931fb4a555b330421f0d501772487c7a583659 | 4,879 | py | Python | src/python/pants/ivy/ivy_subsystem.py | revl/pants | 8ad83e4ca80c095d44efceafd8b41e575da39c65 | [
"Apache-2.0"
] | 1 | 2021-05-05T18:58:28.000Z | 2021-05-05T18:58:28.000Z | src/python/pants/ivy/ivy_subsystem.py | revl/pants | 8ad83e4ca80c095d44efceafd8b41e575da39c65 | [
"Apache-2.0"
] | null | null | null | src/python/pants/ivy/ivy_subsystem.py | revl/pants | 8ad83e4ca80c095d44efceafd8b41e575da39c65 | [
"Apache-2.0"
] | 3 | 2020-06-30T08:28:13.000Z | 2021-07-28T09:35:57.000Z | # Copyright 2015 Pants project contributors (see CONTRIBUTORS.md).
# Licensed under the Apache License, Version 2.0 (see LICENSE).
| 35.613139 | 130 | 0.628203 | # Copyright 2015 Pants project contributors (see CONTRIBUTORS.md).
# Licensed under the Apache License, Version 2.0 (see LICENSE).
import os
import urllib
from pants.binaries.binary_tool import Script
from pants.binaries.binary_util import BinaryToolUrlGenerator
from pants.java.distribution.distribution import Distri... | 0 | 1,775 | 0 | 2,722 | 0 | 0 | 0 | 91 | 158 |
c97650dc8e3f9a73142a4709b183c8d02f5a5a11 | 140 | py | Python | tests/agentgroups_test.py | MathildeBadoual/caribou | a5faf1633525781e2edd346d1e83f3f1b3c36a94 | [
"MIT"
] | 7 | 2018-01-09T01:55:36.000Z | 2020-04-26T06:06:21.000Z | tests/agentgroups_test.py | MathildeBadoual/caribou | a5faf1633525781e2edd346d1e83f3f1b3c36a94 | [
"MIT"
] | null | null | null | tests/agentgroups_test.py | MathildeBadoual/caribou | a5faf1633525781e2edd346d1e83f3f1b3c36a94 | [
"MIT"
] | 4 | 2017-12-29T19:00:27.000Z | 2019-07-01T07:41:50.000Z | import caribou.agentgroups as agentgroups
import caribou.agents as agents
import unittest
if __name__ == '__main__':
unittest.main()
| 15.555556 | 41 | 0.771429 | import caribou.agentgroups as agentgroups
import caribou.agents as agents
import unittest
if __name__ == '__main__':
unittest.main()
| 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
0ad158aa31fabbb3ca70e32964b94b72a9a5d421 | 331 | py | Python | user/controles/http/documentation.py | ZerpaTechnology/occoa | a8c0bd2657bc058801a883109c0ec0d608d04ccc | [
"Apache-2.0"
] | null | null | null | user/controles/http/documentation.py | ZerpaTechnology/occoa | a8c0bd2657bc058801a883109c0ec0d608d04ccc | [
"Apache-2.0"
] | null | null | null | user/controles/http/documentation.py | ZerpaTechnology/occoa | a8c0bd2657bc058801a883109c0ec0d608d04ccc | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
if "action" in p:
if p["action"]=="crearLibro":
main_model.crearLibro("AsenZor - Guia del desarrollador",["Jess Zerpa"])
if p["action"]=="guardarTema":
introduccion="""
"""
main_model.guardarTema("AsenZor - default","AsenZor - Guia del desarrollador","intro... | 27.583333 | 96 | 0.65861 | #!/usr/bin/env python
# -*- coding: utf-8 -*-
if "action" in p:
if p["action"]=="crearLibro":
main_model.crearLibro("AsenZor - Guia del desarrollador",["Jesús Zerpa"])
if p["action"]=="guardarTema":
introduccion="""
"""
main_model.guardarTema("AsenZor - default","AsenZor - Guia del desarrollador","intr... | 4 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
7dd888e47a3d2153c3061c0431273e9899b552d0 | 4,713 | py | Python | tests/test_event.py | acetylen/asyncev | 4c02a7bc9ca393de5b5dd93dbf995c6a1a925262 | [
"MIT"
] | null | null | null | tests/test_event.py | acetylen/asyncev | 4c02a7bc9ca393de5b5dd93dbf995c6a1a925262 | [
"MIT"
] | null | null | null | tests/test_event.py | acetylen/asyncev | 4c02a7bc9ca393de5b5dd93dbf995c6a1a925262 | [
"MIT"
] | null | null | null | import logging
try:
from unittest import IsolatedAsyncioTestCase
except ImportError: # python 3.7 or lower
yield_for = 0.01 # how long to allow the event handler to run after setup
log = logging.getLogger(__name__)
| 29.641509 | 80 | 0.645873 | from dataclasses import dataclass
from weakref import ref, WeakMethod
import asyncio
import logging
import asyncev
try:
from unittest import IsolatedAsyncioTestCase
except ImportError: # python 3.7 or lower
from aiounittest import AsyncTestCase as IsolatedAsyncioTestCase
yield_for = 0.01 # how long to allow... | 0 | 41 | 3,677 | 556 | 0 | 0 | 0 | 55 | 160 |
57faf147e07e35e1817a6e916357ab1aa3a46fdc | 9,283 | py | Python | src/sample_size/sample_size_pca_data_rvm_analysis.py | MathieuVReine/Brain-age-prediction | 91afccf9e96187b51fdc0c710e40d9c393a2ceee | [
"MIT"
] | 8 | 2021-03-19T12:05:34.000Z | 2021-07-08T11:33:44.000Z | src/sample_size/sample_size_pca_data_rvm_analysis.py | MathieuVReine/Brain-age-prediction | 91afccf9e96187b51fdc0c710e40d9c393a2ceee | [
"MIT"
] | null | null | null | src/sample_size/sample_size_pca_data_rvm_analysis.py | MathieuVReine/Brain-age-prediction | 91afccf9e96187b51fdc0c710e40d9c393a2ceee | [
"MIT"
] | 3 | 2021-11-30T11:40:04.000Z | 2022-02-22T10:16:15.000Z | #!/usr/bin/env python3
"""Script to perform the sample size analysis using Relevant Vector Machine on PCA data"""
import argparse
import warnings
from pathlib import Path
PROJECT_ROOT = Path.cwd()
warnings.filterwarnings('ignore')
parser = argparse.ArgumentParser()
parser.add_argument('-E', '--experiment_name',
... | 39.502128 | 124 | 0.629538 | #!/usr/bin/env python3
"""Script to perform the sample size analysis using Relevant Vector Machine on PCA data"""
import argparse
import random
import warnings
from math import sqrt
from pathlib import Path
import gc
import nibabel as nib
import numpy as np
from nilearn.masking import apply_mask
from scipy import stat... | 0 | 0 | 0 | 0 | 0 | 7,075 | 0 | 131 | 356 |
cbc1a92dd68f94b27e651b787dac0708a803ab77 | 1,831 | py | Python | Extractor/cite-classifications-wiki/scripts/get_data.py | opencitations/wcw | 9d4776c1aa68dedbe9b6a42702fe9a36306035db | [
"0BSD"
] | 8 | 2021-04-29T16:49:45.000Z | 2021-08-09T18:56:35.000Z | Extractor/cite-classifications-wiki/scripts/get_data.py | opencitations/wcw | 9d4776c1aa68dedbe9b6a42702fe9a36306035db | [
"0BSD"
] | null | null | null | Extractor/cite-classifications-wiki/scripts/get_data.py | opencitations/wcw | 9d4776c1aa68dedbe9b6a42702fe9a36306035db | [
"0BSD"
] | 1 | 2021-06-01T08:54:03.000Z | 2021-06-01T08:54:03.000Z | from pyspark.sql import Row
from helpers import get_citations
from pyspark import SparkContext, SQLContext
from pyspark.sql.functions import explode, col, split, trim, lower, regexp_replace
INPUT_DATA = 'hdfs:///user/harshdee/enwiki-latest-pages-articles-multistream.xml.bz2'
OUTPUT_DATA = 'hdfs:///user/harshdee/citat... | 44.658537 | 140 | 0.72911 | from pyspark.sql.types import *
from pyspark.sql import Row
from helpers import get_citations
from pyspark import SparkContext, SQLContext
from pyspark.sql.functions import explode, col, split, trim, udf, lower, regexp_replace
INPUT_DATA = 'hdfs:///user/harshdee/enwiki-latest-pages-articles-multistream.xml.bz2'
OUTPU... | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 15 | 22 |
f8ed3f8c0078df7286b9ece7df8855b29abaebe7 | 22,955 | py | Python | codes/Version 7.2 - DFS/main.py | junohpark221/BSc_individual_project | 44f49d3cbb93298880f046551056185b72324d17 | [
"MIT"
] | 1 | 2021-07-04T15:38:52.000Z | 2021-07-04T15:38:52.000Z | codes/Version 7.2 - DFS/main.py | junohpark221/BSc_individual_project | 44f49d3cbb93298880f046551056185b72324d17 | [
"MIT"
] | null | null | null | codes/Version 7.2 - DFS/main.py | junohpark221/BSc_individual_project | 44f49d3cbb93298880f046551056185b72324d17 | [
"MIT"
] | null | null | null | import matplotlib
import cascade as cas
import time
import csv
matplotlib.use('TkAgg')
nodes = 500
layers = 3
intra_thres = 0.2
inter_thres = 0.2
attack_size = 10
attack_point = (0.5, 0.5)
attack_type = "spatial_number" # choose one of the "normal", "spatial_number", "spatial_range"
support_type = "random_l... | 45.187008 | 300 | 0.626966 | import networkx as nx
from pymnet import *
import random
import matplotlib
import cascade as cas
import statistics
import math
import time
import csv
matplotlib.use('TkAgg')
nodes = 500
layers = 3
intra_thres = 0.2
inter_thres = 0.2
attack_size = 10
attack_point = (0.5, 0.5)
attack_type = "spatial_number" #... | 0 | 0 | 0 | 0 | 0 | 14,405 | 0 | -23 | 409 |
6cc97753e31dbc5898b0f4e2ebf9b09287838d06 | 5,398 | py | Python | Skoarcery/dragonsets.py | sofakid/Skoarcery | e4fece84792e1979bdac8abaeb76a117ad8f3965 | [
"Artistic-2.0"
] | 343 | 2015-02-23T23:14:27.000Z | 2021-09-07T04:33:01.000Z | Skoarcery/dragonsets.py | sofakid/Skoarcery | e4fece84792e1979bdac8abaeb76a117ad8f3965 | [
"Artistic-2.0"
] | 25 | 2015-02-16T05:13:23.000Z | 2016-06-26T14:14:51.000Z | Skoarcery/dragonsets.py | sofakid/Skoarcery | e4fece84792e1979bdac8abaeb76a117ad8f3965 | [
"Artistic-2.0"
] | 7 | 2015-09-07T15:09:28.000Z | 2019-02-24T11:11:55.000Z | # ==========================================
# FIRST and FOLLOW sets from the dragon book
# ==========================================
FIRST = None
FOLLOW = None
#noinspection PyPep8Naming
#noinspection PyPep8Naming
| 22.032653 | 104 | 0.468507 | # ==========================================
# FIRST and FOLLOW sets from the dragon book
# ==========================================
from Skoarcery.langoids import Nonterminal, Production, Langoid
FIRST = None
FOLLOW = None
def init(compute=True):
global FIRST, FOLLOW
FIRST = DragonSet("FIRST")
FOLLOW... | 0 | 0 | 0 | 1,297 | 0 | 3,650 | 0 | 42 | 181 |
a6b6373c6fa400a23fb8d400e240b48c2cf9f546 | 5,218 | py | Python | postmark_inbound/tests/tests.py | skulegirl/django-postmark-inbound | e60e88ca4adbf733cf60b5ebee1183904cdd3054 | [
"MIT"
] | null | null | null | postmark_inbound/tests/tests.py | skulegirl/django-postmark-inbound | e60e88ca4adbf733cf60b5ebee1183904cdd3054 | [
"MIT"
] | null | null | null | postmark_inbound/tests/tests.py | skulegirl/django-postmark-inbound | e60e88ca4adbf733cf60b5ebee1183904cdd3054 | [
"MIT"
] | 1 | 2022-01-10T20:09:22.000Z | 2022-01-10T20:09:22.000Z | from django.utils import timezone
from .. models import InboundMailAttachment, InboundMailHeader
| 41.412698 | 107 | 0.662706 | from base64 import b64encode
import os
import datetime
import json
from django.test import TestCase
from django.utils import timezone
from django.core.files.base import ContentFile
from django.utils.six import text_type, BytesIO
from django.utils import timezone
from rest_framework import serializers
from .. models ... | 0 | 0 | 0 | 4,653 | 0 | 0 | 0 | 151 | 313 |
ec7d6bd125a7cc736f5e1e931cb91ea1f1dfea9c | 2,467 | py | Python | hl/db.py | DmitryOlshansky/hl | 5f652ee16dbd3813ad997d860b2a0a60869d5d30 | [
"MIT"
] | null | null | null | hl/db.py | DmitryOlshansky/hl | 5f652ee16dbd3813ad997d860b2a0a60869d5d30 | [
"MIT"
] | null | null | null | hl/db.py | DmitryOlshansky/hl | 5f652ee16dbd3813ad997d860b2a0a60869d5d30 | [
"MIT"
] | null | null | null |
#TODO: write files in $TEMP, then atomically update
#TODO: checkpoint every .save() as git commit
#skeleton for HL DB
| 28.034091 | 93 | 0.469801 | import os
import sys
import json
from hl import search
from hl import hlist
from hl import repo
#TODO: write files in $TEMP, then atomically update
#TODO: checkpoint every .save() as git commit
#skeleton for HL DB
def skeleton():
return {
'ssh.json' :
"""
{
"single" : ... | 0 | 0 | 0 | 1,516 | 0 | 667 | 0 | -36 | 200 |
cf33ff0a3a45498f76f9440422661a85ec0437d7 | 3,767 | py | Python | nbody-3D/nbody-64-256.py | nperraud/3DcosmoGAN | 0d566bca495f764c1287c5e216e20601fa975cda | [
"MIT"
] | 10 | 2019-08-17T10:07:23.000Z | 2022-03-14T16:36:58.000Z | nbody-3D/nbody-64-256.py | nperraud/3DcosmoGAN | 0d566bca495f764c1287c5e216e20601fa975cda | [
"MIT"
] | null | null | null | nbody-3D/nbody-64-256.py | nperraud/3DcosmoGAN | 0d566bca495f764c1287c5e216e20601fa975cda | [
"MIT"
] | 1 | 2019-08-17T21:17:44.000Z | 2019-08-17T21:17:44.000Z | import sys
sys.path.insert(0, '../')
import os
import tensorflow as tf
from gantools import utils
from cosmotools.data import load
from cosmotools.data import fmap
from cosmotools.gansystem import CosmoUpscaleGANsystem as UpscaleGANsystem
from functools import partial
shift = 1
c = 20000
forward = partial(fmap.stat_f... | 32.756522 | 113 | 0.726573 | import sys
sys.path.insert(0, '../')
import os
import tensorflow as tf
from gantools import utils
from cosmotools.data import load
from cosmotools.data import fmap
from gantools.model import UpscalePatchWGAN
from cosmotools.model import CosmoWGAN
from gantools.gansystem import GANsystem
from cosmotools.gansystem impor... | 0 | 0 | 0 | 45 | 0 | 0 | 0 | 58 | 89 |
41e5c285d868ae963fa1ecc3482ca195330dd62a | 7,045 | py | Python | 15/part1/main.py | orrinjelo/AdventOfCode2018 | 7455737bebfb56d7912c8f8760a55ea0a5b240a3 | [
"MIT"
] | 1 | 2020-12-14T21:05:28.000Z | 2020-12-14T21:05:28.000Z | 15/part1/main.py | orrinjelo/AdventOfCode2018 | 7455737bebfb56d7912c8f8760a55ea0a5b240a3 | [
"MIT"
] | null | null | null | 15/part1/main.py | orrinjelo/AdventOfCode2018 | 7455737bebfb56d7912c8f8760a55ea0a5b240a3 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
import os, sys
sys.path.append(os.path.join(os.path.dirname(os.path.realpath(__file__)), '..', '..'))
if __name__ == '__main__':
# Parse args, parse number list
if len(sys.argv) <= 1:
sys.exit('No entries given. Answer: unknown')
if len(sys.argv) == 2:
with open(s... | 30.899123 | 96 | 0.469837 | #!/usr/bin/env python3
import os, sys
import numpy as np
from pprint import pprint
import time
from operator import itemgetter
sys.path.append(os.path.join(os.path.dirname(os.path.realpath(__file__)), '..', '..'))
from utils.timeit import timeit
class Elf:
def __init__(self, x, y, hp=200, attack=3):
sel... | 0 | 520 | 0 | 5,718 | 0 | 0 | 0 | 11 | 181 |
ed7efd8f2145747fbc9894e42e210838d6745222 | 1,781 | py | Python | Ex/Ex5/ex5-sol/ex5a.py | nadavWeisler/PythonThePracticalAspect | 7ffd52fc95d0f692f48390cb02eb5d93931577bb | [
"MIT"
] | null | null | null | Ex/Ex5/ex5-sol/ex5a.py | nadavWeisler/PythonThePracticalAspect | 7ffd52fc95d0f692f48390cb02eb5d93931577bb | [
"MIT"
] | null | null | null | Ex/Ex5/ex5-sol/ex5a.py | nadavWeisler/PythonThePracticalAspect | 7ffd52fc95d0f692f48390cb02eb5d93931577bb | [
"MIT"
] | null | null | null | # 316493758
# 4
import pandas as pd
SPECIAL_WORD = "huji"
def filter_numeric_column(df, col_name, num1, num2):
"""
Filter dataframe by the value of col_name (between num1, num2)
:param df: Dataframe
:param col_name: Column name
:param num1: Number
:... | 28.269841 | 88 | 0.604716 | # 316493758
# 4
import pandas as pd
SPECIAL_WORD = "huji"
def filter_numeric_column(df, col_name, num1, num2):
"""
Filter dataframe by the value of col_name (between num1, num2)
:param df: Dataframe
:param col_name: Column name
:param num1: Number
:... | 0 | 0 | 0 | 0 | 0 | 100 | 0 | 0 | 27 |
3ea863b90f1b8bb69910f473b0eae7f2df8eea03 | 1,921 | py | Python | googlemessage.py | heykush/Google-Message-Bot | 7cc46de8278072f9c28f50b79643ceaf76123dc9 | [
"Apache-2.0"
] | null | null | null | googlemessage.py | heykush/Google-Message-Bot | 7cc46de8278072f9c28f50b79643ceaf76123dc9 | [
"Apache-2.0"
] | null | null | null | googlemessage.py | heykush/Google-Message-Bot | 7cc46de8278072f9c28f50b79643ceaf76123dc9 | [
"Apache-2.0"
] | null | null | null | from selenium import webdriver
import platform
from selenium.webdriver.chrome.options import Options
options = Options()
options.add_argument(" --incognito --start-maximized ")
if platform.system() == "Linux": # get the driver for individual ... | 36.942308 | 104 | 0.522124 | from selenium import webdriver
from time import sleep
import platform
from selenium.webdriver.chrome.options import Options
options = Options()
options.add_argument(" --incognito --start-maximized ")
if platform.system() == "Linux": # get th... | 0 | 0 | 0 | 0 | 0 | 671 | 0 | 1 | 48 |
214388c6a5bd4e9495055975610b3c380d4e8bb3 | 3,130 | py | Python | architecture/ConvResBlock.py | BethanyL/PDEKoopman2 | 0006a312c3dae21e50aa55c7a0b2855b399eb66a | [
"MIT"
] | 10 | 2020-11-03T18:40:18.000Z | 2022-03-14T20:16:08.000Z | architecture/ConvResBlock.py | BethanyL/PDEKoopman2 | 0006a312c3dae21e50aa55c7a0b2855b399eb66a | [
"MIT"
] | null | null | null | architecture/ConvResBlock.py | BethanyL/PDEKoopman2 | 0006a312c3dae21e50aa55c7a0b2855b399eb66a | [
"MIT"
] | 4 | 2021-05-27T16:30:23.000Z | 2022-03-14T20:16:09.000Z | """Creates a residual block with convolutional layers."""
| 45.362319 | 78 | 0.546965 | """Creates a residual block with convolutional layers."""
import tensorflow as tf
from tensorflow import keras
class ConvResBlock(keras.layers.Layer):
"""Subclass the Keras Layer class."""
def __init__(self,
n_inputs=128,
num_filters=[8, 16, 32, 64],
convlay... | 0 | 0 | 0 | 2,995 | 0 | 0 | 0 | 9 | 67 |
838dd933383afda2f83dc55223a3d3205da4b930 | 1,400 | py | Python | SingleCellAnalysis/h5tomatrix.py | VisuMap/OpenVisuMap | f3e60ba2dd17cbde30204bc82f37db9bde0bd1b2 | [
"MIT"
] | 1 | 2021-11-19T17:22:07.000Z | 2021-11-19T17:22:07.000Z | SingleCellAnalysis/h5tomatrix.py | VisuMap/OpenVisuMap | f3e60ba2dd17cbde30204bc82f37db9bde0bd1b2 | [
"MIT"
] | null | null | null | SingleCellAnalysis/h5tomatrix.py | VisuMap/OpenVisuMap | f3e60ba2dd17cbde30204bc82f37db9bde0bd1b2 | [
"MIT"
] | 2 | 2021-07-23T01:21:52.000Z | 2021-11-09T05:42:27.000Z | import collections
import sys
CountMatrix = collections.namedtuple('CountMatrix', ['feature_ref', 'barcodes', 'matrix'])
h5FileName = sys.argv[1]
ret = get_matrix_from_h5(h5FileName)
print(ret)
| 38.888889 | 90 | 0.652143 | import collections
import scipy.sparse as sp_sparse
import tables
import sys
CountMatrix = collections.namedtuple('CountMatrix', ['feature_ref', 'barcodes', 'matrix'])
def get_matrix_from_h5(filename):
with tables.open_file(filename, 'r') as f:
mat_group = f.get_node(f.root, 'matrix')
barcodes =... | 0 | 0 | 0 | 0 | 0 | 1,131 | 0 | 3 | 68 |
6a1a155f0d46a63208be7dc98ffeebb83d5c494d | 6,890 | py | Python | src/config/api-server/vnc_cfg_api_server/resources/fabric_namespace.py | jnpr-pranav/contrail-controller | 428eee37c28c31830fd764315794e1a6e52720c1 | [
"Apache-2.0"
] | 37 | 2020-09-21T10:42:26.000Z | 2022-01-09T10:16:40.000Z | src/config/api-server/vnc_cfg_api_server/resources/fabric_namespace.py | jnpr-pranav/contrail-controller | 428eee37c28c31830fd764315794e1a6e52720c1 | [
"Apache-2.0"
] | null | null | null | src/config/api-server/vnc_cfg_api_server/resources/fabric_namespace.py | jnpr-pranav/contrail-controller | 428eee37c28c31830fd764315794e1a6e52720c1 | [
"Apache-2.0"
] | 21 | 2020-08-25T12:48:42.000Z | 2022-03-22T04:32:18.000Z | #
# Copyright (c) 2020 Juniper Networks, Inc. All rights reserved.
#
# Class to handle Fabric Namespace objects
| 40.529412 | 77 | 0.582148 | #
# Copyright (c) 2020 Juniper Networks, Inc. All rights reserved.
#
import json
from cfgm_common import _obj_serializer_all
from cfgm_common import OVERLAY_LOOPBACK_FQ_PREFIX
from cfgm_common.exceptions import HttpError
from vnc_api.gen.resource_common import FabricNamespace
from vnc_api.gen.resource_common import N... | 0 | 5,514 | 0 | 39 | 0 | 265 | 0 | 420 | 536 |
b3acffd668d268a2275d9d260701869afde74856 | 1,009 | py | Python | setup.py | SectorLabs/zerobounce-python-api-v2 | 3daea04d8d55744c72099124bf3614498fb4cc9e | [
"MIT"
] | null | null | null | setup.py | SectorLabs/zerobounce-python-api-v2 | 3daea04d8d55744c72099124bf3614498fb4cc9e | [
"MIT"
] | null | null | null | setup.py | SectorLabs/zerobounce-python-api-v2 | 3daea04d8d55744c72099124bf3614498fb4cc9e | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from setuptools import find_packages, setup
with open('README.md', 'r') as fp:
README = fp.read()
setup(
name='zerobounce',
version='0.1.4',
description='ZeroBounce Python API - https://www.zerobounce.net.',
author='Tudor Aursulesei',
author_email... | 31.53125 | 124 | 0.65114 | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from setuptools import find_packages, setup
with open('README.md', 'r') as fp:
README = fp.read()
setup(
name='zerobounce',
version='0.1.4',
description='ZeroBounce Python API - https://www.zerobounce.net.',
author='Tudor Aursulesei',
author_email... | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |