hexsha stringlengths 40 40 | size int64 5 2.06M | ext stringclasses 10
values | lang stringclasses 1
value | max_stars_repo_path stringlengths 3 248 | max_stars_repo_name stringlengths 5 125 | max_stars_repo_head_hexsha stringlengths 40 78 | max_stars_repo_licenses listlengths 1 10 | max_stars_count int64 1 191k ⌀ | max_stars_repo_stars_event_min_datetime stringlengths 24 24 ⌀ | max_stars_repo_stars_event_max_datetime stringlengths 24 24 ⌀ | max_issues_repo_path stringlengths 3 248 | max_issues_repo_name stringlengths 5 125 | max_issues_repo_head_hexsha stringlengths 40 78 | max_issues_repo_licenses listlengths 1 10 | max_issues_count int64 1 67k ⌀ | max_issues_repo_issues_event_min_datetime stringlengths 24 24 ⌀ | max_issues_repo_issues_event_max_datetime stringlengths 24 24 ⌀ | max_forks_repo_path stringlengths 3 248 | max_forks_repo_name stringlengths 5 125 | 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 5 2.06M | avg_line_length float64 1 1.02M | max_line_length int64 3 1.03M | alphanum_fraction float64 0 1 | count_classes int64 0 1.6M | score_classes float64 0 1 | count_generators int64 0 651k | score_generators float64 0 1 | count_decorators int64 0 990k | score_decorators float64 0 1 | count_async_functions int64 0 235k | score_async_functions float64 0 1 | count_documentation int64 0 1.04M | score_documentation float64 0 1 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
dc077fe63cc4f8d54762c53d45a473600de38902 | 3,843 | py | Python | instagram/models.py | kilonzijnr/instagram-clone | 1fa662248d70a64356ef3d48d52c7e38dea95aff | [
"MIT"
] | null | null | null | instagram/models.py | kilonzijnr/instagram-clone | 1fa662248d70a64356ef3d48d52c7e38dea95aff | [
"MIT"
] | null | null | null | instagram/models.py | kilonzijnr/instagram-clone | 1fa662248d70a64356ef3d48d52c7e38dea95aff | [
"MIT"
] | null | null | null | from django.db import models
from django.db.models.deletion import CASCADE
from django.contrib.auth.models import User
from cloudinary.models import CloudinaryField
# Create your models here.
class Profile(models.Model):
"""Model for handling User Profile"""
user = models.OneToOneField(User, on_delete= models.... | 30.991935 | 83 | 0.650273 | 3,643 | 0.947957 | 0 | 0 | 817 | 0.212594 | 0 | 0 | 886 | 0.230549 |
dc0981553f7be2b377b0b4a03e7bcb8ef94d1db4 | 846 | py | Python | addons/purchase_request/migrations/13.0.4.0.0/post-migration.py | jerryxu4j/odoo-docker-build | 339a3229192582c289c19e276347af1326ce683f | [
"CC-BY-3.0"
] | null | null | null | addons/purchase_request/migrations/13.0.4.0.0/post-migration.py | jerryxu4j/odoo-docker-build | 339a3229192582c289c19e276347af1326ce683f | [
"CC-BY-3.0"
] | null | null | null | addons/purchase_request/migrations/13.0.4.0.0/post-migration.py | jerryxu4j/odoo-docker-build | 339a3229192582c289c19e276347af1326ce683f | [
"CC-BY-3.0"
] | null | null | null | from odoo import SUPERUSER_ID, api
from odoo.tools.sql import column_exists
def migrate(cr, version=None):
env = api.Environment(cr, SUPERUSER_ID, {})
if column_exists(cr, "product_template", "purchase_request"):
_migrate_purchase_request_to_property(env)
def _migrate_purchase_request_to_property(en... | 42.3 | 88 | 0.734043 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 300 | 0.35461 |
dc0a134e4c11e64835152cefa26ff2db3778cd60 | 13,678 | py | Python | cfy/server.py | buhanec/cloudify-flexiant-plugin | da0c42a4330c9e5ffd55d9f5024a9a36f052af16 | [
"Apache-2.0"
] | null | null | null | cfy/server.py | buhanec/cloudify-flexiant-plugin | da0c42a4330c9e5ffd55d9f5024a9a36f052af16 | [
"Apache-2.0"
] | null | null | null | cfy/server.py | buhanec/cloudify-flexiant-plugin | da0c42a4330c9e5ffd55d9f5024a9a36f052af16 | [
"Apache-2.0"
] | null | null | null | # coding=UTF-8
"""Server stuff."""
from __future__ import print_function
from cfy import (create_server,
create_ssh_key,
attach_ssh_key,
wait_for_state,
wait_for_cond,
create_nic,
attach_nic,
get_res... | 36.281167 | 79 | 0.615222 | 0 | 0 | 0 | 0 | 12,294 | 0.898816 | 0 | 0 | 4,192 | 0.306478 |
dc0ae53c3bb6f54a76cfb756f32ba1e86d22317c | 7,317 | py | Python | markdown2dita.py | mattcarabine/markdown2dita | f4a02c3e9514d33eb3cea9c9b5d3c44817afad97 | [
"BSD-3-Clause"
] | 6 | 2019-06-28T12:47:01.000Z | 2022-02-14T18:18:53.000Z | markdown2dita.py | mattcarabine/markdown2dita | f4a02c3e9514d33eb3cea9c9b5d3c44817afad97 | [
"BSD-3-Clause"
] | null | null | null | markdown2dita.py | mattcarabine/markdown2dita | f4a02c3e9514d33eb3cea9c9b5d3c44817afad97 | [
"BSD-3-Clause"
] | 2 | 2018-02-09T22:17:48.000Z | 2020-02-20T13:59:30.000Z | # coding: utf-8
"""
markdown2dita
~~~~~~~~~~~~~
A markdown to dita-ot conversion tool written in pure python.
Uses mistune to parse the markdown.
"""
from __future__ import print_function
import argparse
import sys
import mistune
__version__ = '0.3'
__author__ = 'Matt Carabine <matt.carabine@gmail.c... | 31.403433 | 83 | 0.577012 | 5,403 | 0.738417 | 0 | 0 | 0 | 0 | 0 | 0 | 2,009 | 0.274566 |
dc0c391d6f0cc20589629aa4ecb77f77c49b34a1 | 2,957 | py | Python | tests/integration/test_reload_certificate/test.py | roanhe-ts/ClickHouse | 22de534fdcd3f05e27423d13f5875f97c3ba5f10 | [
"Apache-2.0"
] | 1 | 2022-02-08T03:09:51.000Z | 2022-02-08T03:09:51.000Z | tests/integration/test_reload_certificate/test.py | roanhe-ts/ClickHouse | 22de534fdcd3f05e27423d13f5875f97c3ba5f10 | [
"Apache-2.0"
] | 1 | 2022-03-21T07:27:34.000Z | 2022-03-21T07:27:34.000Z | tests/integration/test_reload_certificate/test.py | roanhe-ts/ClickHouse | 22de534fdcd3f05e27423d13f5875f97c3ba5f10 | [
"Apache-2.0"
] | null | null | null | import pytest
import os
from helpers.cluster import ClickHouseCluster
SCRIPT_DIR = os.path.dirname(os.path.realpath(__file__))
cluster = ClickHouseCluster(__file__)
node = cluster.add_instance('node', main_configs=["configs/first.crt", "configs/first.key",
"configs/sec... | 38.907895 | 142 | 0.622929 | 0 | 0 | 117 | 0.039567 | 163 | 0.055123 | 0 | 0 | 1,723 | 0.582685 |
dc0d2dd1628c5437389a9030a61c8c8847b09265 | 1,331 | py | Python | examples/python/fling.py | arminfriedl/fling | 909606a9960fede8951436748c20a9600819b93a | [
"MIT"
] | null | null | null | examples/python/fling.py | arminfriedl/fling | 909606a9960fede8951436748c20a9600819b93a | [
"MIT"
] | null | null | null | examples/python/fling.py | arminfriedl/fling | 909606a9960fede8951436748c20a9600819b93a | [
"MIT"
] | null | null | null | import flingclient as fc
from flingclient.rest import ApiException
from datetime import datetime
# Per default the dockerized fling service runs on localhost:3000 In case you
# run your own instance, change the base url
configuration = fc.Configuration(host="http://localhost:3000")
# Every call, with the exception of... | 40.333333 | 86 | 0.75432 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 515 | 0.386927 |
dc0d3f00ae59f64419ff5f7a5aba262466241f01 | 1,811 | py | Python | pretraining/python/download_tensorboard_logs.py | dl4nlp-rg/PTT5 | cee2d996ba7eac80d7764072eef01a7f9c38836c | [
"MIT"
] | 51 | 2020-08-11T13:34:07.000Z | 2022-01-20T23:09:32.000Z | pretraining/python/download_tensorboard_logs.py | dl4nlp-rg/PTT5 | cee2d996ba7eac80d7764072eef01a7f9c38836c | [
"MIT"
] | 4 | 2020-09-28T20:33:31.000Z | 2022-03-12T00:46:13.000Z | pretraining/python/download_tensorboard_logs.py | unicamp-dl/PTT5 | aee3e0d0b6ad1bb6f8c2d9afd1d2e89679301f6f | [
"MIT"
] | 6 | 2021-01-25T07:47:40.000Z | 2022-02-23T20:06:03.000Z | import tensorflow.compat.v1 as tf
import os
import tqdm
GCS_BUCKET = 'gs://ptt5-1'
TENSORBOARD_LOGS_LOCAL = '../logs_tensorboard'
os.makedirs(TENSORBOARD_LOGS_LOCAL, exist_ok=True)
# where to look for events files - experiment names
base_paths = [
# Main initial experiments - all weights are updated
'small_s... | 38.531915 | 77 | 0.699613 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 929 | 0.512976 |
dc0e5e9f0de144528e9e2fd2507b7d3b024c5594 | 1,408 | py | Python | tests/TestPythonLibDir/RemotePkcs1Signer/__init__.py | q351941406/isign-1 | c24ce94fa88f15ebc6cc2dbda6852c6d17094fc6 | [
"Apache-2.0"
] | 83 | 2019-08-20T09:34:27.000Z | 2022-03-24T13:42:36.000Z | tests/TestPythonLibDir/RemotePkcs1Signer/__init__.py | q351941406/isign-1 | c24ce94fa88f15ebc6cc2dbda6852c6d17094fc6 | [
"Apache-2.0"
] | 15 | 2019-08-20T06:34:16.000Z | 2020-05-17T21:22:52.000Z | tests/TestPythonLibDir/RemotePkcs1Signer/__init__.py | q351941406/isign-1 | c24ce94fa88f15ebc6cc2dbda6852c6d17094fc6 | [
"Apache-2.0"
] | 6 | 2020-02-09T09:35:17.000Z | 2022-03-19T18:43:17.000Z | import base64
import requests
class RemotePkcs1Signer(object):
""" Client-side Signer subclass, that calls the Signing Service over HTTP to sign things """
# standard headers for request
headers = {
'Content-Type': 'application/json',
'Accept': 'application/json'
}
def __init__(s... | 32.744186 | 106 | 0.599432 | 1,375 | 0.976563 | 0 | 0 | 0 | 0 | 0 | 0 | 572 | 0.40625 |
dc0f94e928edc42769b1d0d49b60f125df3ce1e6 | 4,497 | py | Python | architecture_tool_django/nodes/tasks.py | goldginkgo/architecture_tool_django | e4229c5938a4dd01d0877afa7b93daf68e09283b | [
"MIT"
] | 1 | 2021-08-13T01:37:29.000Z | 2021-08-13T01:37:29.000Z | architecture_tool_django/nodes/tasks.py | goldginkgo/architecture_tool_django | e4229c5938a4dd01d0877afa7b93daf68e09283b | [
"MIT"
] | null | null | null | architecture_tool_django/nodes/tasks.py | goldginkgo/architecture_tool_django | e4229c5938a4dd01d0877afa7b93daf68e09283b | [
"MIT"
] | 1 | 2021-07-19T07:57:54.000Z | 2021-07-19T07:57:54.000Z | import logging
import re
from celery import shared_task
from django.conf import settings
from django.db.models import Q
from django.shortcuts import get_object_or_404
from django.template.loader import get_template
from django.urls import reverse
from django.utils import timezone
from architecture_tool_django.utils.c... | 32.824818 | 99 | 0.683344 | 0 | 0 | 0 | 0 | 467 | 0.103847 | 0 | 0 | 957 | 0.212809 |
dc107c520e6be07939c0ec67b42b5fccd394dfb1 | 3,195 | py | Python | crosswalk/views/alias_or_create.py | cofin/django-crosswalk | 349ebbd5676d3ef3ccf889ec3849b2f1cff4be32 | [
"MIT"
] | 4 | 2019-04-08T23:24:30.000Z | 2021-12-22T16:42:12.000Z | crosswalk/views/alias_or_create.py | cofin/django-crosswalk | 349ebbd5676d3ef3ccf889ec3849b2f1cff4be32 | [
"MIT"
] | 12 | 2017-12-18T04:27:14.000Z | 2021-06-10T18:05:46.000Z | crosswalk/views/alias_or_create.py | cofin/django-crosswalk | 349ebbd5676d3ef3ccf889ec3849b2f1cff4be32 | [
"MIT"
] | 3 | 2019-08-12T14:36:04.000Z | 2020-10-17T20:54:09.000Z | from crosswalk.authentication import AuthenticatedView
from crosswalk.models import Domain, Entity
from crosswalk.serializers import EntitySerializer
from crosswalk.utils import import_class
from django.core.exceptions import ObjectDoesNotExist
from rest_framework import status
from rest_framework.response import Respo... | 32.272727 | 78 | 0.571831 | 2,868 | 0.897653 | 0 | 0 | 0 | 0 | 0 | 0 | 465 | 0.14554 |
dc10e734b445882a7de1ca38ba65c2b849b9fe68 | 3,629 | py | Python | hoist/fastapi_wrapper.py | ZeroIntensity/Hoist | 08388af0328f225fc3066cf09b8043c30cb900e3 | [
"MIT"
] | null | null | null | hoist/fastapi_wrapper.py | ZeroIntensity/Hoist | 08388af0328f225fc3066cf09b8043c30cb900e3 | [
"MIT"
] | null | null | null | hoist/fastapi_wrapper.py | ZeroIntensity/Hoist | 08388af0328f225fc3066cf09b8043c30cb900e3 | [
"MIT"
] | 2 | 2021-07-26T17:10:19.000Z | 2021-09-02T00:13:17.000Z | from fastapi import FastAPI, Response, WebSocket, WebSocketDisconnect
from threading import Thread
from .server import Server
from .errors import HoistExistsError
from .error import Error
from .version import __version__
from .flask_wrapper import HTML
import uvicorn
from typing import List, Callable
from fastapi.respo... | 34.894231 | 124 | 0.58005 | 3,268 | 0.900524 | 0 | 0 | 1,612 | 0.4442 | 589 | 0.162304 | 487 | 0.134197 |
dc110c5732b9e3f42c8a0c8715b260a938e9705c | 4,874 | py | Python | network/mqtt_client/main_mqtt_publisher.py | flashypepo/myMicropython-Examples | b2b63df865b5ad471b351ca5f279135025859f5d | [
"MIT"
] | 3 | 2017-09-03T17:17:44.000Z | 2017-12-10T12:26:46.000Z | network/mqtt_client/main_mqtt_publisher.py | flashypepo/myMicropython-Examples | b2b63df865b5ad471b351ca5f279135025859f5d | [
"MIT"
] | null | null | null | network/mqtt_client/main_mqtt_publisher.py | flashypepo/myMicropython-Examples | b2b63df865b5ad471b351ca5f279135025859f5d | [
"MIT"
] | 2 | 2017-10-01T01:10:55.000Z | 2018-07-15T19:49:29.000Z | # This file is executed on every boot (including wake-boot from deepsleep)
# 2017-1210 PePo send timestamp and temperature (Celsius) to MQTT-server on BBB
# 2017-1105 PePo add _isLocal: sensor data to serial port (False) of stored in file (True)
# 2017-0819 PePo add sensor, led and print to serial port
# 2017-0811 ... | 33.383562 | 164 | 0.622897 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2,581 | 0.529545 |
dc11cc17aee754089dc4fb18a3e6534b5f45cf92 | 1,724 | py | Python | 2015/07.py | Valokoodari/advent-of-code | c664987f739e0b07ddad34bad87d56768556a5a5 | [
"MIT"
] | 2 | 2021-12-27T18:59:11.000Z | 2022-01-10T02:31:36.000Z | 2015/07.py | Valokoodari/advent-of-code-2019 | c664987f739e0b07ddad34bad87d56768556a5a5 | [
"MIT"
] | null | null | null | 2015/07.py | Valokoodari/advent-of-code-2019 | c664987f739e0b07ddad34bad87d56768556a5a5 | [
"MIT"
] | 2 | 2021-12-23T17:29:10.000Z | 2021-12-24T03:21:49.000Z | #!/usr/bin/python3
lines = open("inputs/07.in", "r").readlines()
for i,line in enumerate(lines):
lines[i] = line.split("\n")[0]
l = lines.copy();
wires = {}
def func_set(p, i):
if p[0].isdigit():
wires[p[2]] = int(p[0])
lines.pop(i)
elif p[0] in wires.keys():
wires[p[2]] = wires[p... | 23.297297 | 53 | 0.487239 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 104 | 0.060325 |
dc1360cdb290733689a5e8387a3d39ce467c6a9c | 1,659 | py | Python | soccer_embedded/Development/Ethernet/lwip-rtos-config/test_udp_echo.py | ghsecuritylab/soccer_ws | 60600fb826c06362182ebff00f3031e87ac45f7c | [
"BSD-3-Clause"
] | 56 | 2016-12-25T22:29:00.000Z | 2022-01-06T04:42:00.000Z | soccer_embedded/Development/Ethernet/lwip-rtos-config/test_udp_echo.py | ghsecuritylab/soccer_ws | 60600fb826c06362182ebff00f3031e87ac45f7c | [
"BSD-3-Clause"
] | 244 | 2021-04-05T03:22:25.000Z | 2022-03-31T16:47:36.000Z | soccer_embedded/Development/Ethernet/lwip-rtos-config/test_udp_echo.py | ghsecuritylab/soccer_ws | 60600fb826c06362182ebff00f3031e87ac45f7c | [
"BSD-3-Clause"
] | 7 | 2017-01-24T23:38:07.000Z | 2022-01-19T16:58:08.000Z | import socket
import time
import numpy
# This script sends a message to the board, at IP address and port given by
# server_address, using User Datagram Protocol (UDP). The board should be
# programmed to echo back UDP packets sent to it. The time taken for num_samples
# echoes is measured.
# Create a UDP socket
sock... | 27.65 | 110 | 0.650995 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 654 | 0.394213 |
dc140fb927ee173544f8803200f7806b0546c054 | 16,058 | py | Python | test.py | keke185321/emotions | f7cef86c20880b99469c9a35b071d6062e56ac40 | [
"MIT"
] | 58 | 2017-04-04T18:59:36.000Z | 2022-02-16T14:54:09.000Z | test.py | keke185321/emotions | f7cef86c20880b99469c9a35b071d6062e56ac40 | [
"MIT"
] | 4 | 2017-06-28T13:56:04.000Z | 2021-07-02T03:42:21.000Z | test.py | keke185321/emotions | f7cef86c20880b99469c9a35b071d6062e56ac40 | [
"MIT"
] | 26 | 2017-08-22T14:41:28.000Z | 2022-03-08T05:41:03.000Z | #!/usr/bin/env python
#
# This file is part of the Emotions project. The complete source code is
# available at https://github.com/luigivieira/emotions.
#
# Copyright (c) 2016-2017, Luiz Carlos Vieira (http://www.luiz.vieira.nom.br)
#
# MIT License
#
# Permission is hereby granted, free of charge, to any person obtaini... | 31.924453 | 80 | 0.5482 | 4,629 | 0.288268 | 0 | 0 | 0 | 0 | 0 | 0 | 6,586 | 0.410138 |
dc1410a8579c40952f7be96924032fe936ce5616 | 56 | py | Python | konform/cmd.py | openanalytics/konform | 8691575ec94e753987bf4748ac279b1510b6e04a | [
"Apache-2.0"
] | 7 | 2021-02-23T12:08:01.000Z | 2022-03-12T01:52:35.000Z | konform/cmd.py | openanalytics/konform | 8691575ec94e753987bf4748ac279b1510b6e04a | [
"Apache-2.0"
] | 1 | 2022-03-11T21:53:18.000Z | 2022-03-11T21:53:18.000Z | konform/cmd.py | openanalytics/konform | 8691575ec94e753987bf4748ac279b1510b6e04a | [
"Apache-2.0"
] | 1 | 2021-05-07T20:13:30.000Z | 2021-05-07T20:13:30.000Z | from . import Konform
def main():
Konform().run()
| 9.333333 | 21 | 0.607143 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
dc1615d2555d04af3309f9652b1529186785aefa | 1,711 | py | Python | ichnaea/taskapp/app.py | mikiec84/ichnaea | ec223cefb788bb921c0e7f5f51bd3b20eae29edd | [
"Apache-2.0"
] | 348 | 2015-01-13T11:48:07.000Z | 2022-03-31T08:33:07.000Z | ichnaea/taskapp/app.py | mikiec84/ichnaea | ec223cefb788bb921c0e7f5f51bd3b20eae29edd | [
"Apache-2.0"
] | 1,274 | 2015-01-02T18:15:56.000Z | 2022-03-23T15:29:08.000Z | ichnaea/taskapp/app.py | mikiec84/ichnaea | ec223cefb788bb921c0e7f5f51bd3b20eae29edd | [
"Apache-2.0"
] | 149 | 2015-01-04T21:15:07.000Z | 2021-12-10T06:05:09.000Z | """
Holds global celery application state and startup / shutdown handlers.
"""
from celery import Celery
from celery.app import app_or_default
from celery.signals import (
beat_init,
worker_process_init,
worker_process_shutdown,
setup_logging,
)
from ichnaea.log import configure_logging
from ichnaea.ta... | 24.442857 | 74 | 0.733489 | 0 | 0 | 0 | 0 | 1,205 | 0.704267 | 0 | 0 | 742 | 0.433665 |
dc16a13d387c0b0bc002823fb7755299735633f4 | 1,771 | py | Python | gmqtt/storage.py | sabuhish/gmqtt | b88aaaaa88b0d8eb1e2757a327060298524a976a | [
"MIT"
] | null | null | null | gmqtt/storage.py | sabuhish/gmqtt | b88aaaaa88b0d8eb1e2757a327060298524a976a | [
"MIT"
] | null | null | null | gmqtt/storage.py | sabuhish/gmqtt | b88aaaaa88b0d8eb1e2757a327060298524a976a | [
"MIT"
] | null | null | null | import asyncio
from typing import Tuple
import heapq
class BasePersistentStorage(object):
async def push_message(self, mid, raw_package):
raise NotImplementedError
def push_message_nowait(self, mid, raw_package) -> asyncio.Future:
try:
asyncio.get_event_loop()
except Runt... | 29.032787 | 73 | 0.648786 | 1,711 | 0.966121 | 0 | 0 | 157 | 0.08865 | 1,059 | 0.597967 | 42 | 0.023715 |
dc16d9cdd8796257d1bb841212fc202433a9eade | 10,638 | py | Python | test/testframework/runner.py | 5GExchange/escape | eb35d460597a0386b18dd5b6a5f62a3f30eed5fa | [
"Apache-2.0"
] | 10 | 2016-11-16T16:26:16.000Z | 2021-04-26T17:20:28.000Z | test/testframework/runner.py | 5GExchange/escape | eb35d460597a0386b18dd5b6a5f62a3f30eed5fa | [
"Apache-2.0"
] | 3 | 2017-04-20T11:29:17.000Z | 2017-11-06T17:12:12.000Z | test/testframework/runner.py | 5GExchange/escape | eb35d460597a0386b18dd5b6a5f62a3f30eed5fa | [
"Apache-2.0"
] | 10 | 2017-03-27T13:58:52.000Z | 2020-06-24T22:42:51.000Z | # Copyright 2017 Lajos Gerecs, Janos Czentye
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at:
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to... | 28.142857 | 80 | 0.650498 | 9,832 | 0.924234 | 0 | 0 | 1,457 | 0.136962 | 0 | 0 | 3,448 | 0.324121 |
dc1774c173332a4ec6c00f25e59d94cce3123021 | 868 | py | Python | Calliope/13 Clock/Clock.py | frankyhub/Python | 323ef1399efcbc24ddc66ad069ff99b4999fff38 | [
"MIT"
] | null | null | null | Calliope/13 Clock/Clock.py | frankyhub/Python | 323ef1399efcbc24ddc66ad069ff99b4999fff38 | [
"MIT"
] | null | null | null | Calliope/13 Clock/Clock.py | frankyhub/Python | 323ef1399efcbc24ddc66ad069ff99b4999fff38 | [
"MIT"
] | null | null | null | from microbit import *
hands = Image.ALL_CLOCKS
#A centre dot of brightness 2.
ticker_image = Image("2\n").crop(-2,-2,5,5)
#Adjust these to taste
MINUTE_BRIGHT = 0.1111
HOUR_BRIGHT = 0.55555
#Generate hands for 5 minute intervals
def fiveticks():
fivemins = 0
hours = 0
while True:
yield hands[f... | 24.8 | 71 | 0.624424 | 0 | 0 | 442 | 0.509217 | 0 | 0 | 0 | 0 | 223 | 0.256912 |
dc18cde3ecea098343bc73407dcfa2ce64cc68f5 | 528 | py | Python | home/kakadu31/sabertooth.py | rv8flyboy/pyrobotlab | 4e04fb751614a5cb6044ea15dcfcf885db8be65a | [
"Apache-2.0"
] | 63 | 2015-02-03T18:49:43.000Z | 2022-03-29T03:52:24.000Z | home/kakadu31/sabertooth.py | hirwaHenryChristian/pyrobotlab | 2debb381fc2db4be1e7ea6e5252a50ae0de6f4a9 | [
"Apache-2.0"
] | 16 | 2016-01-26T19:13:29.000Z | 2018-11-25T21:20:51.000Z | home/kakadu31/sabertooth.py | hirwaHenryChristian/pyrobotlab | 2debb381fc2db4be1e7ea6e5252a50ae0de6f4a9 | [
"Apache-2.0"
] | 151 | 2015-01-03T18:55:54.000Z | 2022-03-04T07:04:23.000Z | #Variables
#Working with build 2234
saberPort = "/dev/ttyUSB0"
#Initializing Motorcontroller
saber = Runtime.start("saber", "Sabertooth")
saber.connect(saberPort)
sleep(1)
#Initializing Joystick
joystick = Runtime.start("joystick","Joystick")
print(joystick.getControllers())
python.subscribe("joystick","publishJoysti... | 21.12 | 51 | 0.751894 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 184 | 0.348485 |
dc19222afbe13a4d5207f36ba7d56c249b5d6019 | 4,542 | py | Python | Dangerous/Weevely/core/backdoor.py | JeyZeta/Dangerous- | 824ea6b571eda98bb855f176361e9b35dfda578e | [
"MIT"
] | null | null | null | Dangerous/Weevely/core/backdoor.py | JeyZeta/Dangerous- | 824ea6b571eda98bb855f176361e9b35dfda578e | [
"MIT"
] | null | null | null | Dangerous/Weevely/core/backdoor.py | JeyZeta/Dangerous- | 824ea6b571eda98bb855f176361e9b35dfda578e | [
"MIT"
] | 1 | 2018-07-04T18:35:16.000Z | 2018-07-04T18:35:16.000Z | # -*- coding: utf-8 -*-
# This file is part of Weevely NG.
#
# Copyright(c) 2011-2012 Weevely Developers
# http://code.google.com/p/weevely/
#
# This file may be licensed under the terms of of the
# GNU General Public License Version 2 (the ``GPL'').
#
# Software distributed under the License is distributed
# on an ``A... | 34.409091 | 137 | 0.674373 | 3,361 | 0.739982 | 0 | 0 | 0 | 0 | 0 | 0 | 1,536 | 0.338177 |
dc19c0faf717f2a11500ab0d47cd0b71aa1f7557 | 4,638 | py | Python | musicscore/musicxml/types/complextypes/notations.py | alexgorji/music_score | b4176da52295361f3436826903485c5cb8054c5e | [
"MIT"
] | 2 | 2020-06-22T13:33:28.000Z | 2020-12-30T15:09:00.000Z | musicscore/musicxml/types/complextypes/notations.py | alexgorji/music_score | b4176da52295361f3436826903485c5cb8054c5e | [
"MIT"
] | 37 | 2020-02-18T12:15:00.000Z | 2021-12-13T20:01:14.000Z | musicscore/musicxml/types/complextypes/notations.py | alexgorji/music_score | b4176da52295361f3436826903485c5cb8054c5e | [
"MIT"
] | null | null | null | from musicscore.dtd.dtd import Sequence, GroupReference, Choice, Element
from musicscore.musicxml.attributes.optional_unique_id import OptionalUniqueId
from musicscore.musicxml.attributes.printobject import PrintObject
from musicscore.musicxml.groups.common import Editorial
from musicscore.musicxml.elements.xml_element... | 30.715232 | 118 | 0.684994 | 3,403 | 0.733721 | 0 | 0 | 0 | 0 | 0 | 0 | 557 | 0.120095 |
904fd225f8fe0b9727c74b7b31cf0eb0c1430fbd | 794 | py | Python | src/constants.py | MitraSeifari/pystackoverflow | 70da1c6a8407df34496fe9843e8ae7f4c15aac0e | [
"MIT"
] | null | null | null | src/constants.py | MitraSeifari/pystackoverflow | 70da1c6a8407df34496fe9843e8ae7f4c15aac0e | [
"MIT"
] | null | null | null | src/constants.py | MitraSeifari/pystackoverflow | 70da1c6a8407df34496fe9843e8ae7f4c15aac0e | [
"MIT"
] | null | null | null | from types import SimpleNamespace
from src.utils.keyboard import create_keyboard
keys = SimpleNamespace(
settings=':gear: Settings',
cancel=':cross_mark: Cancel',
back=':arrow_left: Back',
next=':arrow_right: Next',
add=':heavy_plus_sign: Add',
edit=':pencil: Edit',
save=':check_mark_butt... | 26.466667 | 66 | 0.715365 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 314 | 0.395466 |
9051a1c1088095b37931ffbb5f87a6219186207b | 456 | py | Python | iirsBenchmark/exceptions.py | gAldeia/iirsBenchmark | 2211b4755405eb32178a09f1a01143d53dc6516d | [
"BSD-3-Clause"
] | null | null | null | iirsBenchmark/exceptions.py | gAldeia/iirsBenchmark | 2211b4755405eb32178a09f1a01143d53dc6516d | [
"BSD-3-Clause"
] | null | null | null | iirsBenchmark/exceptions.py | gAldeia/iirsBenchmark | 2211b4755405eb32178a09f1a01143d53dc6516d | [
"BSD-3-Clause"
] | null | null | null | # Author: Guilherme Aldeia
# Contact: guilherme.aldeia@ufabc.edu.br
# Version: 1.0.0
# Last modified: 08-20-2021 by Guilherme Aldeia
"""
Simple exception that is raised by explainers when they don't support local
or global explanations, or when they are not model agnostic. This should be
catched and handled i... | 32.571429 | 76 | 0.730263 | 109 | 0.239035 | 0 | 0 | 0 | 0 | 0 | 0 | 339 | 0.743421 |
90534359708ff8911197cad1bfec21d46c458905 | 1,302 | py | Python | covid_data_tracker/util.py | granularai/gh5050_covid_data_tracker | 7af3013ad9142a20cf42963e39c8968081cec7db | [
"MIT"
] | null | null | null | covid_data_tracker/util.py | granularai/gh5050_covid_data_tracker | 7af3013ad9142a20cf42963e39c8968081cec7db | [
"MIT"
] | 51 | 2020-05-31T17:36:37.000Z | 2020-06-24T05:23:19.000Z | covid_data_tracker/util.py | granularai/gh5050_covid_data_tracker | 7af3013ad9142a20cf42963e39c8968081cec7db | [
"MIT"
] | 1 | 2020-06-11T19:35:41.000Z | 2020-06-11T19:35:41.000Z | import click
from covid_data_tracker.registry import PluginRegistry
def plugin_selector(selected_country: str):
"""plugin selector uses COUNTRY_MAP to find the appropriate plugin
for a given country.
Parameters
----------
selected_country : str
specify the country of interest.
Ret... | 25.529412 | 70 | 0.675115 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 731 | 0.561444 |
90541de92a1d97d772f070e495cb4dccfca0eef7 | 1,416 | py | Python | dev/libs.py | karimwitani/webscraping | 58d4b2587d039fcea567db2caf86bbddb4e0b96f | [
"MIT"
] | null | null | null | dev/libs.py | karimwitani/webscraping | 58d4b2587d039fcea567db2caf86bbddb4e0b96f | [
"MIT"
] | null | null | null | dev/libs.py | karimwitani/webscraping | 58d4b2587d039fcea567db2caf86bbddb4e0b96f | [
"MIT"
] | null | null | null | import selenium
from selenium import webdriver
from selenium.webdriver.common.by import By
from selenium.webdriver.support.ui import WebDriverWait
from selenium.webdriver.support import expected_conditions as EC
from selenium.common.exceptions import TimeoutException
def browser_init():
option = webdriver.Chro... | 40.457143 | 136 | 0.738701 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 348 | 0.245763 |
905515ca4421e0d997a1e7e93a11455f5f918cff | 380 | py | Python | setup.py | dwastberg/osmuf | 0cef4e87401b3fc2d344d7e067b4d9ada25848a4 | [
"MIT"
] | null | null | null | setup.py | dwastberg/osmuf | 0cef4e87401b3fc2d344d7e067b4d9ada25848a4 | [
"MIT"
] | null | null | null | setup.py | dwastberg/osmuf | 0cef4e87401b3fc2d344d7e067b4d9ada25848a4 | [
"MIT"
] | null | null | null | from setuptools import setup
setup(name='osmuf',
version='0.1',
install_requires=[
"seaborn",
],
description='Urban Form analysis from OpenStreetMap',
url='http://github.com/atelierlibre/osmuf',
author='AtelierLibre',
author_email='mail@atelierlibre.org',
lic... | 25.333333 | 59 | 0.615789 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 148 | 0.389474 |
905714b59b0d263f8c19b411a33bd80163e9bbb7 | 1,813 | py | Python | tests/test_model.py | artemudovyk/django-updown | 0353cf8ec5c50b4ffd869a56f51ede65b6368ef8 | [
"BSD-2-Clause"
] | 41 | 2015-01-07T07:43:33.000Z | 2020-09-23T04:35:09.000Z | tests/test_model.py | artemudovyk/django-updown | 0353cf8ec5c50b4ffd869a56f51ede65b6368ef8 | [
"BSD-2-Clause"
] | 20 | 2015-01-28T21:02:56.000Z | 2018-08-14T13:39:31.000Z | tests/test_model.py | artemudovyk/django-updown | 0353cf8ec5c50b4ffd869a56f51ede65b6368ef8 | [
"BSD-2-Clause"
] | 19 | 2015-01-06T12:50:05.000Z | 2022-01-21T17:01:56.000Z | # -*- coding: utf-8 -*-
"""
tests.test_model
~~~~~~~~~~~~~~~~
Tests the models provided by the updown rating app
:copyright: 2016, weluse (https://weluse.de)
:author: 2016, Daniel Banck <dbanck@weluse.de>
:license: BSD, see LICENSE for more details.
"""
from __future__ import unicode_literals
import random
from djan... | 31.258621 | 75 | 0.629344 | 1,294 | 0.713734 | 0 | 0 | 0 | 0 | 0 | 0 | 421 | 0.232212 |
90571fc1423b9d2a5a71dbb91569f10170f5532e | 5,179 | py | Python | nlptk/ratings/rake/rake.py | GarryGaller/nlp_toolkit | df98ee25f8a1f4379e751fdd4fd9f5389ffbfd1b | [
"MIT"
] | null | null | null | nlptk/ratings/rake/rake.py | GarryGaller/nlp_toolkit | df98ee25f8a1f4379e751fdd4fd9f5389ffbfd1b | [
"MIT"
] | null | null | null | nlptk/ratings/rake/rake.py | GarryGaller/nlp_toolkit | df98ee25f8a1f4379e751fdd4fd9f5389ffbfd1b | [
"MIT"
] | null | null | null | import sys,os
from typing import List
from collections import defaultdict, Counter
from itertools import groupby, chain, product
import heapq
from pprint import pprint
import string
class Rake():
def __init__(
self,
text:List[List[str]],
stopwords=[],
max_words=100... | 30.827381 | 85 | 0.519598 | 5,255 | 0.96087 | 0 | 0 | 0 | 0 | 0 | 0 | 1,196 | 0.218687 |
90572919b03e5c9195f95e3b9733b72ece7106bb | 5,623 | py | Python | depimpact/tests/test_functions.py | NazBen/dep-impact | 284e72bccfb6309110df5191dfae3c0a93ce813b | [
"MIT"
] | null | null | null | depimpact/tests/test_functions.py | NazBen/dep-impact | 284e72bccfb6309110df5191dfae3c0a93ce813b | [
"MIT"
] | null | null | null | depimpact/tests/test_functions.py | NazBen/dep-impact | 284e72bccfb6309110df5191dfae3c0a93ce813b | [
"MIT"
] | null | null | null | import numpy as np
import openturns as ot
def func_overflow(X, model=1, h_power=0.6):
"""Overflow model function.
Parameters
----------
X : np.ndarray, shape : N x 8
Input variables
- x1 : Flow,
- x2 : Krisler Coefficient,
- x3 : Zv, etc...
model : bool, option... | 24.554585 | 123 | 0.486395 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1,793 | 0.318756 |
9059540a6a1df436a316a8b4d0bf19c43271fcb4 | 1,699 | py | Python | app/main/forms.py | ingabire1/blog | 5fcee6027cee9fbdcd94057123862bd146a16e98 | [
"Unlicense"
] | null | null | null | app/main/forms.py | ingabire1/blog | 5fcee6027cee9fbdcd94057123862bd146a16e98 | [
"Unlicense"
] | null | null | null | app/main/forms.py | ingabire1/blog | 5fcee6027cee9fbdcd94057123862bd146a16e98 | [
"Unlicense"
] | null | null | null |
from flask_wtf import FlaskForm
from wtforms import StringField,TextAreaField,SubmitField
from wtforms.validators import Required
class ReviewForm(FlaskForm):
title = StringField('Review title',validators=[Required()])
review = TextAreaField('Movie review', validators=[Required()])
submit = SubmitField('... | 42.475 | 94 | 0.712772 | 1,294 | 0.761624 | 0 | 0 | 0 | 0 | 0 | 0 | 652 | 0.383755 |
9059c31682941520b3a9802d364d8232668dc8f3 | 3,228 | py | Python | SEPHIRA/FastAPI/main.py | dman926/Flask-API | 49e052159a3915ec25305141ecdd6cdeb1d7a25c | [
"MIT"
] | 4 | 2021-04-23T16:51:57.000Z | 2021-06-06T20:28:08.000Z | SEPHIRA/FastAPI/main.py | dman926/Flask-API | 49e052159a3915ec25305141ecdd6cdeb1d7a25c | [
"MIT"
] | 15 | 2021-10-22T01:55:53.000Z | 2022-01-15T11:40:48.000Z | SEPHIRA/FastAPI/main.py | dman926/Flask-API | 49e052159a3915ec25305141ecdd6cdeb1d7a25c | [
"MIT"
] | 3 | 2021-03-21T22:29:05.000Z | 2021-06-06T20:30:18.000Z | from fastapi import FastAPI
from fastapi.middleware.cors import CORSMiddleware
from starlette import status
from starlette.middleware.base import BaseHTTPMiddleware, RequestResponseEndpoint
from starlette.requests import Request
from starlette.responses import Response
from starlette.types import ASGIApp
from config ... | 32.606061 | 160 | 0.763011 | 636 | 0.197026 | 0 | 0 | 1,426 | 0.44176 | 1,821 | 0.564126 | 731 | 0.226456 |
905b8e431341e337a25074cf4f7919a71c8959b2 | 94,831 | py | Python | bio_rtd/uo/sc_uo.py | open-biotech/bio-rtd | c3e2cf4d7d646bda719e5fc6f694a1cae0e412c0 | [
"MIT"
] | 5 | 2020-03-30T13:26:12.000Z | 2021-04-02T07:10:49.000Z | bio_rtd/uo/sc_uo.py | open-biotech/bio-rtd | c3e2cf4d7d646bda719e5fc6f694a1cae0e412c0 | [
"MIT"
] | null | null | null | bio_rtd/uo/sc_uo.py | open-biotech/bio-rtd | c3e2cf4d7d646bda719e5fc6f694a1cae0e412c0 | [
"MIT"
] | 1 | 2020-06-03T07:50:56.000Z | 2020-06-03T07:50:56.000Z | """Semi continuous unit operations.
Unit operations that accept constant or box-shaped flow rate profile
and provide periodic flow rate profile.
"""
__all__ = ['AlternatingChromatography', 'ACC', 'PCC', 'PCCWithWashDesorption']
__version__ = '0.7.1'
__author__ = 'Jure Sencar'
import typing as _typing
import numpy as... | 39.595407 | 79 | 0.571891 | 94,315 | 0.994559 | 0 | 0 | 706 | 0.007445 | 0 | 0 | 45,172 | 0.476342 |
905ba6022a4c26013aa2a89c33571a5f24d93f3a | 1,640 | py | Python | src/tools/create_graphs_log.py | KatiaJDL/CenterPoly | 42811d9f5f85d9fef91a03275fe6ad113ccb163c | [
"MIT"
] | null | null | null | src/tools/create_graphs_log.py | KatiaJDL/CenterPoly | 42811d9f5f85d9fef91a03275fe6ad113ccb163c | [
"MIT"
] | null | null | null | src/tools/create_graphs_log.py | KatiaJDL/CenterPoly | 42811d9f5f85d9fef91a03275fe6ad113ccb163c | [
"MIT"
] | null | null | null | import matplotlib.pyplot as plt
def main():
with open('log.txt') as f:
lines = f.readlines()
glob_loss = []
hm_l = []
off_l = []
poly_l = []
depth_l = []
glob_loss_val = []
hm_l_val = []
off_l_val = []
poly_l_val = []
depth_l_val = []
for epoch in lines:
m = epoch.split("|")
if ... | 24.848485 | 50 | 0.585366 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 167 | 0.101829 |
905cb03976073d3a05d5e9b6aad19e20554ed770 | 551 | py | Python | fluree/query-generate.py | ivankoster/aioflureedb | d421391a7db1d2acaf8d39f6dfe2997e8097ade8 | [
"BSD-3-Clause"
] | 4 | 2020-09-09T14:58:10.000Z | 2021-12-04T14:11:44.000Z | fluree/query-generate.py | ivankoster/aioflureedb | d421391a7db1d2acaf8d39f6dfe2997e8097ade8 | [
"BSD-3-Clause"
] | 10 | 2020-09-15T14:05:32.000Z | 2022-01-20T11:46:07.000Z | fluree/query-generate.py | ivankoster/aioflureedb | d421391a7db1d2acaf8d39f6dfe2997e8097ade8 | [
"BSD-3-Clause"
] | 1 | 2020-12-01T10:10:00.000Z | 2020-12-01T10:10:00.000Z | #!/usr/bin/python3
import json
from aioflureedb.signing import DbSigner
def free_test(signer):
data = {"foo": 42, "bar": "appelvlaai"}
body, headers, uri = signer.sign_query(data)
rval = dict()
rval["body"] = body
rval["headers"] = headers
rval["uri"] = uri
rval = json.dumps(rval, indent=4,... | 27.55 | 76 | 0.716878 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 178 | 0.323049 |
905d2dacd283245c26f6f827ba4beeef737df514 | 3,447 | py | Python | actions/delete_bridge_domain.py | StackStorm-Exchange/network_essentials | 99cb5a966812fb503d340c6689390dfb08c4e374 | [
"Apache-2.0"
] | 5 | 2017-02-27T23:48:10.000Z | 2020-11-12T18:55:28.000Z | actions/delete_bridge_domain.py | StackStorm-Exchange/network_essentials | 99cb5a966812fb503d340c6689390dfb08c4e374 | [
"Apache-2.0"
] | 5 | 2017-03-07T01:19:21.000Z | 2020-09-16T18:22:05.000Z | actions/delete_bridge_domain.py | StackStorm-Exchange/network_essentials | 99cb5a966812fb503d340c6689390dfb08c4e374 | [
"Apache-2.0"
] | 2 | 2017-06-20T00:52:58.000Z | 2021-01-28T17:45:48.000Z | # Copyright 2016 Brocade Communications 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 ... | 41.53012 | 100 | 0.607775 | 2,746 | 0.796635 | 0 | 0 | 1,311 | 0.380331 | 0 | 0 | 1,190 | 0.345228 |
905dd4ceac49c186f37f935a9aa23bbcc3c6c3d1 | 1,182 | py | Python | python/signature.py | IUIDSL/kgap_lincs-idg | 1f781e5f34cc5d006a22b8357100dc01845a0690 | [
"CC0-1.0"
] | 4 | 2021-01-14T14:01:06.000Z | 2021-06-21T12:41:32.000Z | python/signature.py | IUIDSL/kgap_lincs-idg | 1f781e5f34cc5d006a22b8357100dc01845a0690 | [
"CC0-1.0"
] | null | null | null | python/signature.py | IUIDSL/kgap_lincs-idg | 1f781e5f34cc5d006a22b8357100dc01845a0690 | [
"CC0-1.0"
] | 1 | 2020-09-01T09:56:58.000Z | 2020-09-01T09:56:58.000Z | #!/usr/bin/env python3
###
# Based on signature.R
###
import sys,os,logging
import numpy as np
import pandas as pd
if __name__=="__main__":
logging.basicConfig(format='%(levelname)s:%(message)s', level=logging.DEBUG)
if (len(sys.argv) < 3):
logging.error("3 file args required, LINCS sig info for GSE70138 and... | 35.818182 | 104 | 0.678511 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 531 | 0.449239 |
905ec305866e4908924c5460c3c40007ef7a2438 | 8,289 | py | Python | HW3 - Contest Data Base/main.py | 916-Maria-Popescu/Fundamental-of-Programming | 6ddf951622bd6cfde16ede5ab6ee966cff657db2 | [
"MIT"
] | null | null | null | HW3 - Contest Data Base/main.py | 916-Maria-Popescu/Fundamental-of-Programming | 6ddf951622bd6cfde16ede5ab6ee966cff657db2 | [
"MIT"
] | null | null | null | HW3 - Contest Data Base/main.py | 916-Maria-Popescu/Fundamental-of-Programming | 6ddf951622bd6cfde16ede5ab6ee966cff657db2 | [
"MIT"
] | null | null | null | # ASSIGNMENT 3
"""
During a programming contest, each contestant had to solve 3 problems (named P1, P2 and P3).
Afterwards, an evaluation committee graded the solutions to each of the problems using integers between 0 and 10.
The committee needs a program that will allow managing the list of scores and esta... | 37.849315 | 120 | 0.583183 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4,626 | 0.558089 |
905fb1174dc9f76a043ce3432db2989539fb3eae | 1,212 | py | Python | surface/ex_surface02.py | orbingol/NURBS-Python_Examples | c99d8cd3d20e7523694ce62f72760b260582fa11 | [
"MIT"
] | 48 | 2017-12-14T09:54:48.000Z | 2020-03-30T13:34:44.000Z | surface/ex_surface02.py | GabrielJie/NURBS-Python_Examples | c99d8cd3d20e7523694ce62f72760b260582fa11 | [
"MIT"
] | 7 | 2020-05-27T04:27:24.000Z | 2021-05-25T16:11:39.000Z | surface/ex_surface02.py | GabrielJie/NURBS-Python_Examples | c99d8cd3d20e7523694ce62f72760b260582fa11 | [
"MIT"
] | 37 | 2017-10-14T08:11:11.000Z | 2020-05-04T02:51:58.000Z | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
Examples for the NURBS-Python Package
Released under MIT License
Developed by Onur Rauf Bingol (c) 2016-2017
"""
import os
from geomdl import BSpline
from geomdl import utilities
from geomdl import exchange
from geomdl import operations
from geomdl.visuali... | 22.867925 | 80 | 0.763201 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 493 | 0.406766 |
90600f2b374617aa571df4d29f498ce0b363ef8b | 1,380 | bzl | Python | dev/bazel/deps/micromkl.bzl | cmsxbc/oneDAL | eeb8523285907dc359c84ca4894579d5d1d9f57e | [
"Apache-2.0"
] | 169 | 2020-03-30T09:13:05.000Z | 2022-03-15T11:12:36.000Z | dev/bazel/deps/micromkl.bzl | cmsxbc/oneDAL | eeb8523285907dc359c84ca4894579d5d1d9f57e | [
"Apache-2.0"
] | 1,198 | 2020-03-24T17:26:18.000Z | 2022-03-31T08:06:15.000Z | dev/bazel/deps/micromkl.bzl | cmsxbc/oneDAL | eeb8523285907dc359c84ca4894579d5d1d9f57e | [
"Apache-2.0"
] | 75 | 2020-03-30T11:39:58.000Z | 2022-03-26T05:16:20.000Z | #===============================================================================
# Copyright 2020-2021 Intel Corporation
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apa... | 33.658537 | 80 | 0.603623 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1,047 | 0.758696 |
9061aefc06f55a6c43c18d036ea605173b84260a | 3,580 | py | Python | opennsa/protocols/nsi2/bindings/p2pservices.py | jmacauley/opennsa | 853c0fc8e065e74815cbc3f769939f64ac6aadeb | [
"BSD-3-Clause"
] | null | null | null | opennsa/protocols/nsi2/bindings/p2pservices.py | jmacauley/opennsa | 853c0fc8e065e74815cbc3f769939f64ac6aadeb | [
"BSD-3-Clause"
] | null | null | null | opennsa/protocols/nsi2/bindings/p2pservices.py | jmacauley/opennsa | 853c0fc8e065e74815cbc3f769939f64ac6aadeb | [
"BSD-3-Clause"
] | null | null | null | ## Generated by pyxsdgen
from xml.etree import ElementTree as ET
# types
class OrderedStpType(object):
def __init__(self, order, stp):
self.order = order # int
self.stp = stp # StpIdType -> string
@classmethod
def build(self, element):
return OrderedStpType(
ele... | 33.773585 | 134 | 0.613966 | 2,872 | 0.802235 | 0 | 0 | 998 | 0.278771 | 0 | 0 | 553 | 0.154469 |
90633c1edf956b4cbfebb1310e68eb561ac6fc3b | 87 | py | Python | Scripts/PyLecTest.py | DVecchione/DVEC | 8788310acefe948c1c40b2ecfd781b0af7027993 | [
"MIT"
] | null | null | null | Scripts/PyLecTest.py | DVecchione/DVEC | 8788310acefe948c1c40b2ecfd781b0af7027993 | [
"MIT"
] | null | null | null | Scripts/PyLecTest.py | DVecchione/DVEC | 8788310acefe948c1c40b2ecfd781b0af7027993 | [
"MIT"
] | null | null | null | import matplotlib.pyplot as plt
import numpy as np
x=20
y=1
plt.plot(x,y)
plt.show()
| 9.666667 | 31 | 0.724138 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
90667496af942d519fbd83a19bb664048a86c4ea | 3,708 | py | Python | examples/nested/mog4_fast.py | ivandebono/nnest | 490b0797312c22a1019f5f400db684b1be5e8fe5 | [
"MIT"
] | null | null | null | examples/nested/mog4_fast.py | ivandebono/nnest | 490b0797312c22a1019f5f400db684b1be5e8fe5 | [
"MIT"
] | null | null | null | examples/nested/mog4_fast.py | ivandebono/nnest | 490b0797312c22a1019f5f400db684b1be5e8fe5 | [
"MIT"
] | null | null | null | import os
import sys
import argparse
import copy
import numpy as np
import scipy.special
sys.path.append(os.getcwd())
def log_gaussian_pdf(theta, sigma=1, mu=0, ndim=None):
if ndim is None:
try:
ndim = len(theta)
except TypeError:
assert isinstance(theta, (float, int)), t... | 34.654206 | 135 | 0.618932 | 1,399 | 0.377292 | 0 | 0 | 0 | 0 | 0 | 0 | 351 | 0.09466 |
9066a9157ffc22c0ce94777109f0d24999e2d0dd | 3,060 | py | Python | sendria/message.py | scottcove/sendria | 26e7581cc8d7673887ac8018d8d32ff4ad23cfbd | [
"MIT"
] | 85 | 2020-10-03T22:11:55.000Z | 2022-03-25T12:49:44.000Z | sendria/message.py | scottcove/sendria | 26e7581cc8d7673887ac8018d8d32ff4ad23cfbd | [
"MIT"
] | 13 | 2020-10-05T10:59:34.000Z | 2022-03-26T08:16:24.000Z | sendria/message.py | scottcove/sendria | 26e7581cc8d7673887ac8018d8d32ff4ad23cfbd | [
"MIT"
] | 13 | 2020-10-15T13:32:40.000Z | 2022-03-28T01:46:58.000Z | __all__ = ['Message']
import uuid
from email.header import decode_header as _decode_header
from email.message import Message as EmailMessage
from email.utils import getaddresses
from typing import Union, List, Dict, Any
class Message:
__slots__ = (
'id',
'sender_envelope', 'sender_message',
... | 34.382022 | 113 | 0.56732 | 2,836 | 0.926797 | 276 | 0.090196 | 2,074 | 0.677778 | 0 | 0 | 418 | 0.136601 |
9066b9980c0b3869cc716e1c22a3fe141c968868 | 1,705 | py | Python | myApps/test_web.py | Rocket-hodgepodge/NewsWeb | 7835b6ae4e754eb96f3f0d5983b2421c9464fee3 | [
"BSD-3-Clause"
] | null | null | null | myApps/test_web.py | Rocket-hodgepodge/NewsWeb | 7835b6ae4e754eb96f3f0d5983b2421c9464fee3 | [
"BSD-3-Clause"
] | null | null | null | myApps/test_web.py | Rocket-hodgepodge/NewsWeb | 7835b6ae4e754eb96f3f0d5983b2421c9464fee3 | [
"BSD-3-Clause"
] | 2 | 2018-07-04T01:43:36.000Z | 2018-07-04T06:12:47.000Z | from selenium import webdriver
from selenium.webdriver.common.by import By
from selenium.webdriver.support.ui import WebDriverWait
from selenium.webdriver.support import expected_conditions as EC
import unittest
class NewVisitorTest(unittest.TestCase):
def setUp(self):
self.timeout = 40
self.browser = webdriv... | 31.574074 | 89 | 0.775367 | 1,444 | 0.839047 | 0 | 0 | 0 | 0 | 0 | 0 | 346 | 0.201046 |
9067bc1c116c9890747e5871781d17c6c8744561 | 30,017 | py | Python | nce_glue/run_glue.py | salesforce/ebm_calibration_nlu | e0598923551c4587e0ea8c4feb001cb9cc736103 | [
"BSD-3-Clause"
] | 7 | 2021-04-22T09:56:54.000Z | 2022-03-20T14:44:02.000Z | nce_glue/run_glue.py | salesforce/ebm_calibration_nlu | e0598923551c4587e0ea8c4feb001cb9cc736103 | [
"BSD-3-Clause"
] | 1 | 2022-02-22T04:41:44.000Z | 2022-02-22T18:21:23.000Z | nce_glue/run_glue.py | salesforce/ebm_calibration_nlu | e0598923551c4587e0ea8c4feb001cb9cc736103 | [
"BSD-3-Clause"
] | 1 | 2021-06-21T09:06:24.000Z | 2021-06-21T09:06:24.000Z | # coding=utf-8
# Copyright 2018 The Google AI Language Team Authors and The HuggingFace Inc. team.
# Copyright (c) 2018, NVIDIA CORPORATION. All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a cop... | 50.279732 | 467 | 0.667922 | 2,286 | 0.076157 | 0 | 0 | 2,308 | 0.07689 | 0 | 0 | 8,802 | 0.293234 |
9068b9974dcf2fb879760cc992a13d9cece6f426 | 43 | py | Python | tools/python/myriad/__init__.py | TU-Berlin-DIMA/myriad-toolkit | 5f7610e10b11e05591d6e2dc030c3ca5dc2a90b4 | [
"BSL-1.0"
] | 15 | 2015-01-18T18:02:16.000Z | 2021-08-02T09:20:35.000Z | tools/python/myriad/__init__.py | TU-Berlin-DIMA/myriad-toolkit | 5f7610e10b11e05591d6e2dc030c3ca5dc2a90b4 | [
"BSL-1.0"
] | null | null | null | tools/python/myriad/__init__.py | TU-Berlin-DIMA/myriad-toolkit | 5f7610e10b11e05591d6e2dc030c3ca5dc2a90b4 | [
"BSL-1.0"
] | 5 | 2015-08-10T21:50:39.000Z | 2018-03-14T15:31:28.000Z | __all__ = [ "assistant", "event", "error" ] | 43 | 43 | 0.604651 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 25 | 0.581395 |
9068dd91546f900a5c60936212742aac5fb95fd0 | 577 | py | Python | Python/Advanced/Tuples And Sets/Lab/SoftUni Party.py | EduardV777/Softuni-Python-Exercises | 79db667028aea7dfecb3dbbd834c752180c50f44 | [
"Unlicense"
] | null | null | null | Python/Advanced/Tuples And Sets/Lab/SoftUni Party.py | EduardV777/Softuni-Python-Exercises | 79db667028aea7dfecb3dbbd834c752180c50f44 | [
"Unlicense"
] | null | null | null | Python/Advanced/Tuples And Sets/Lab/SoftUni Party.py | EduardV777/Softuni-Python-Exercises | 79db667028aea7dfecb3dbbd834c752180c50f44 | [
"Unlicense"
] | null | null | null | guests=int(input())
reservations=set([])
while guests!=0:
reservationCode=input()
reservations.add(reservationCode)
guests-=1
while True:
r=input()
if r!="END":
reservations.discard(r)
else:
print(len(reservations))
VIPS=[]; Regulars=[]
for e in reservations:
... | 22.192308 | 37 | 0.514731 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 5 | 0.008666 |
9068dfa377a4e3878aa69220570645e9c12f27ec | 404 | py | Python | locale/pot/api/plotting/_autosummary/pyvista-Plotter-remove_all_lights-1.py | tkoyama010/pyvista-doc-translations | 23bb813387b7f8bfe17e86c2244d5dd2243990db | [
"MIT"
] | 4 | 2020-08-07T08:19:19.000Z | 2020-12-04T09:51:11.000Z | locale/pot/api/plotting/_autosummary/pyvista-Plotter-remove_all_lights-1.py | tkoyama010/pyvista-doc-translations | 23bb813387b7f8bfe17e86c2244d5dd2243990db | [
"MIT"
] | 19 | 2020-08-06T00:24:30.000Z | 2022-03-30T19:22:24.000Z | locale/pot/api/plotting/_autosummary/pyvista-Plotter-remove_all_lights-1.py | tkoyama010/pyvista-doc-translations | 23bb813387b7f8bfe17e86c2244d5dd2243990db | [
"MIT"
] | 1 | 2021-03-09T07:50:40.000Z | 2021-03-09T07:50:40.000Z | # Create a plotter and remove all lights after initialization.
# Note how the mesh rendered is completely flat
#
import pyvista as pv
plotter = pv.Plotter()
plotter.remove_all_lights()
plotter.renderer.lights
# Expected:
## []
_ = plotter.add_mesh(pv.Sphere(), show_edges=True)
plotter.show()
#
# Note how this differs f... | 25.25 | 62 | 0.762376 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 185 | 0.457921 |
906c0d695c5d23512c396e22821fa9b115229101 | 880 | py | Python | einsum.py | odiak/einsum | c7c71f8daefcf33b4743cc8dca588577d03bdde6 | [
"MIT"
] | null | null | null | einsum.py | odiak/einsum | c7c71f8daefcf33b4743cc8dca588577d03bdde6 | [
"MIT"
] | null | null | null | einsum.py | odiak/einsum | c7c71f8daefcf33b4743cc8dca588577d03bdde6 | [
"MIT"
] | null | null | null | from typing import Dict, Tuple
import numpy as np
def einsum(expr: str, *args: Tuple[np.ndarray, ...], **kwargs) -> np.ndarray:
(a, b) = map(str.strip, expr.split("->"))
a_ = list(
map(lambda s: list(map(str.strip, s.split(","))), map(str.strip, a.split(";")))
)
b_ = list(map(str.strip, b.spli... | 29.333333 | 87 | 0.494318 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 52 | 0.059091 |
906c820368e4e2bf91a72f86c8e3c46b23314109 | 4,201 | py | Python | aarhus/get_roots.py | mikedelong/aarhus | 0c0e94fadd65be8428fe3bd2c92928e1b23fc2a1 | [
"Apache-2.0"
] | null | null | null | aarhus/get_roots.py | mikedelong/aarhus | 0c0e94fadd65be8428fe3bd2c92928e1b23fc2a1 | [
"Apache-2.0"
] | 7 | 2017-01-13T19:04:57.000Z | 2017-01-23T14:10:53.000Z | aarhus/get_roots.py | mikedelong/aarhus | 0c0e94fadd65be8428fe3bd2c92928e1b23fc2a1 | [
"Apache-2.0"
] | null | null | null | import json
import logging
import os
import pickle
import sys
import time
import pyzmail
# http://mypy.pythonblogs.com/12_mypy/archive/1253_workaround_for_python_bug_ascii_codec_cant_encode_character_uxa0_in_position_111_ordinal_not_in_range128.html
reload(sys)
sys.setdefaultencoding("utf8")
logging.basicConfig(form... | 40.394231 | 160 | 0.650321 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 914 | 0.217567 |
906d400738f33dc206c78e71d946859aba32483a | 97 | py | Python | python/760.find-anagram-mappings.py | stavanmehta/leetcode | 1224e43ce29430c840e65daae3b343182e24709c | [
"Apache-2.0"
] | null | null | null | python/760.find-anagram-mappings.py | stavanmehta/leetcode | 1224e43ce29430c840e65daae3b343182e24709c | [
"Apache-2.0"
] | null | null | null | python/760.find-anagram-mappings.py | stavanmehta/leetcode | 1224e43ce29430c840e65daae3b343182e24709c | [
"Apache-2.0"
] | null | null | null | class Solution:
def anagramMappings(self, A: List[int], B: List[int]) -> List[int]:
| 24.25 | 71 | 0.597938 | 87 | 0.896907 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
906d8e08da166b6c85abfbc022b056f7f3eb7ea0 | 1,547 | py | Python | src/jdk.internal.vm.compiler/.mx.graal/mx_graal.py | siweilxy/openjdkstudy | 8597674ec1d6809faf55cbee1f45f4e9149d670d | [
"Apache-2.0"
] | 2 | 2018-06-19T05:43:32.000Z | 2018-06-23T10:04:56.000Z | src/jdk.internal.vm.compiler/.mx.graal/mx_graal.py | siweilxy/openjdkstudy | 8597674ec1d6809faf55cbee1f45f4e9149d670d | [
"Apache-2.0"
] | null | null | null | src/jdk.internal.vm.compiler/.mx.graal/mx_graal.py | siweilxy/openjdkstudy | 8597674ec1d6809faf55cbee1f45f4e9149d670d | [
"Apache-2.0"
] | null | null | null | #
# ----------------------------------------------------------------------------------------------------
#
# Copyright (c) 2007, 2015, Oracle and/or its affiliates. All rights reserved.
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
#
# This code is free software; you can redistribute it and/or modify ... | 45.5 | 109 | 0.66128 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1,329 | 0.859082 |
906df45a0cbaf0b269d84eb1b51d8ce436ca4a79 | 4,621 | py | Python | linear_regression.py | wail007/ml_playground | 5a8cd1fc57d3ba32a255e665fc3480f58eb9c3c2 | [
"Apache-2.0"
] | null | null | null | linear_regression.py | wail007/ml_playground | 5a8cd1fc57d3ba32a255e665fc3480f58eb9c3c2 | [
"Apache-2.0"
] | null | null | null | linear_regression.py | wail007/ml_playground | 5a8cd1fc57d3ba32a255e665fc3480f58eb9c3c2 | [
"Apache-2.0"
] | null | null | null | import pandas as pd
import numpy as np
import matplotlib.pyplot as plt
from scipy.stats import multivariate_normal
class _LinearModel(object):
def __init__(self):
self.w = None
def fit(self, x, y):
pass
def predict(self, x):
return np.dot(x, self.w)
def cost(self, x... | 29.062893 | 119 | 0.554425 | 4,486 | 0.970786 | 0 | 0 | 0 | 0 | 0 | 0 | 101 | 0.021857 |
906e0d5d4effa98640d75d6a7be5cc83893d3c38 | 84 | py | Python | pygments_lexer_solidity/__init__.py | veox/pygments-lexer-solidity | e99ccf980337ceaad4fbc7ee11795e91d7fab0ae | [
"BSD-2-Clause"
] | 2 | 2018-05-24T14:36:59.000Z | 2019-06-29T23:50:08.000Z | pygments_lexer_solidity/__init__.py | veox/pygments-lexer-solidity | e99ccf980337ceaad4fbc7ee11795e91d7fab0ae | [
"BSD-2-Clause"
] | null | null | null | pygments_lexer_solidity/__init__.py | veox/pygments-lexer-solidity | e99ccf980337ceaad4fbc7ee11795e91d7fab0ae | [
"BSD-2-Clause"
] | 1 | 2019-11-11T23:24:17.000Z | 2019-11-11T23:24:17.000Z | from .lexer import SolidityLexer, YulLexer
__all__ = ['SolidityLexer', 'YulLexer']
| 21 | 42 | 0.761905 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 25 | 0.297619 |
906e5ccc6b995d3e3569837e29fff36deedc118c | 1,174 | py | Python | optimal_buy_gdax/history.py | coulterj/optimal-buy-gdax | cdebd2af2cf54bdef34c0ff64a4a731e540bdcdb | [
"Unlicense"
] | null | null | null | optimal_buy_gdax/history.py | coulterj/optimal-buy-gdax | cdebd2af2cf54bdef34c0ff64a4a731e540bdcdb | [
"Unlicense"
] | null | null | null | optimal_buy_gdax/history.py | coulterj/optimal-buy-gdax | cdebd2af2cf54bdef34c0ff64a4a731e540bdcdb | [
"Unlicense"
] | null | null | null | #!/usr/bin/env python3
from sqlalchemy.ext.declarative import declarative_base
from sqlalchemy import Column, String, Float, DateTime, Integer
from sqlalchemy import create_engine
from sqlalchemy.orm import sessionmaker
Base = declarative_base()
class Order(Base):
__tablename__ = 'orders'
id = Column(Intege... | 24.458333 | 63 | 0.721465 | 736 | 0.626917 | 0 | 0 | 0 | 0 | 0 | 0 | 53 | 0.045145 |
906f41f56725ceef73c59638d0fd312fa10a88f9 | 6,689 | py | Python | vmtkScripts/vmtkmeshboundaryinspector.py | ramtingh/vmtk | 4d6f58ce65d73628353ba2b110cbc29a2e7aa7b3 | [
"Apache-2.0"
] | null | null | null | vmtkScripts/vmtkmeshboundaryinspector.py | ramtingh/vmtk | 4d6f58ce65d73628353ba2b110cbc29a2e7aa7b3 | [
"Apache-2.0"
] | null | null | null | vmtkScripts/vmtkmeshboundaryinspector.py | ramtingh/vmtk | 4d6f58ce65d73628353ba2b110cbc29a2e7aa7b3 | [
"Apache-2.0"
] | 1 | 2019-06-18T23:41:11.000Z | 2019-06-18T23:41:11.000Z | #!/usr/bin/env python
## Program: VMTK
## Module: $RCSfile: vmtkmeshboundaryinspector.py,v $
## Language: Python
## Date: $Date: 2006/05/26 12:35:13 $
## Version: $Revision: 1.3 $
## Copyright (c) Luca Antiga, David Steinman. All rights reserved.
## See LICENSE file for details.
## This softwar... | 39.579882 | 132 | 0.697264 | 5,861 | 0.876215 | 0 | 0 | 0 | 0 | 0 | 0 | 1,290 | 0.192854 |
906fc90146a02fc91c29a4ca6a8d89955a76d227 | 1,542 | py | Python | setup.py | sriz1/mudslide | 78aa8a1bda4080eacd777da7ff6bcbfd9afe129c | [
"MIT"
] | 4 | 2020-09-05T00:17:27.000Z | 2022-01-25T19:44:32.000Z | setup.py | sriz1/mudslide | 78aa8a1bda4080eacd777da7ff6bcbfd9afe129c | [
"MIT"
] | null | null | null | setup.py | sriz1/mudslide | 78aa8a1bda4080eacd777da7ff6bcbfd9afe129c | [
"MIT"
] | 6 | 2020-11-20T15:42:03.000Z | 2022-02-10T02:43:29.000Z | from setuptools import setup
from distutils.util import convert_path
main_ns = {}
ver_path = convert_path('mudslide/version.py')
with open(ver_path) as ver_file:
exec(ver_file.read(), main_ns)
def readme():
with open("README.md") as f:
return f.read()
setup(
name='mudslide',
packages=['mudsli... | 30.84 | 95 | 0.624514 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 833 | 0.540208 |
906fe64b74d7a1e64be5829e3ead36fd43b1f23d | 1,361 | py | Python | src/sklearn/sklearn_random_forest_test.py | monkeychen/python-tutorial | a24785da6b4d857200b819ad4d960885b1ef7a20 | [
"Apache-2.0"
] | null | null | null | src/sklearn/sklearn_random_forest_test.py | monkeychen/python-tutorial | a24785da6b4d857200b819ad4d960885b1ef7a20 | [
"Apache-2.0"
] | null | null | null | src/sklearn/sklearn_random_forest_test.py | monkeychen/python-tutorial | a24785da6b4d857200b819ad4d960885b1ef7a20 | [
"Apache-2.0"
] | null | null | null | import csv
import joblib
from sklearn.metrics import accuracy_score
data = []
features = []
targets = []
feature_names = []
users = []
with open('satisfaction_feature_names.csv') as name_file:
column_name_file = csv.reader(name_file)
feature_names = next(column_name_file)[2:394]
with open('cza_satisfaction_tr... | 27.22 | 68 | 0.648788 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 110 | 0.080823 |
9070d5bf65f2cf491385a39c1e6e52e356fd0952 | 573 | py | Python | py/test.py | BEARUBC/grasp-kernel | ea2c9b698a2c457e798eff909941dc6e7c852bb2 | [
"Apache-2.0"
] | 1 | 2021-05-31T22:05:10.000Z | 2021-05-31T22:05:10.000Z | py/test.py | BEARUBC/grasp-kernel-wrapper | ea2c9b698a2c457e798eff909941dc6e7c852bb2 | [
"Apache-2.0"
] | null | null | null | py/test.py | BEARUBC/grasp-kernel-wrapper | ea2c9b698a2c457e798eff909941dc6e7c852bb2 | [
"Apache-2.0"
] | 1 | 2021-05-31T18:54:55.000Z | 2021-05-31T18:54:55.000Z | class TestClass:
def __init__(self, list, name):
self.list = list
self.name = name
def func1():
print("func1 print something")
def func2():
print("func2 print something")
integer = 8
return integer
def func3():
print("func3 print something")
s = "func3"
return s
def f... | 18.483871 | 39 | 0.612565 | 102 | 0.17801 | 0 | 0 | 0 | 0 | 0 | 0 | 170 | 0.296684 |
9070ee6ae571936274c18044e8321cc9866dd425 | 2,836 | py | Python | tests/utils/_process_nonwin.py | chrahunt/quicken | 2dd00a5f024d7b114b211aad8a2618ec8f101956 | [
"MIT"
] | 3 | 2019-11-12T17:56:08.000Z | 2022-03-12T03:43:10.000Z | tests/utils/_process_nonwin.py | chrahunt/quicken | 2dd00a5f024d7b114b211aad8a2618ec8f101956 | [
"MIT"
] | 47 | 2018-12-10T04:08:58.000Z | 2022-03-20T14:54:36.000Z | tests/utils/_process_nonwin.py | chrahunt/quicken | 2dd00a5f024d7b114b211aad8a2618ec8f101956 | [
"MIT"
] | 1 | 2019-11-12T17:55:17.000Z | 2019-11-12T17:55:17.000Z | """Utilities for managing child processes within a scope - this ensures
tests run cleanly even on failure and also gives us a mechanism to
get debug info for our children.
"""
import logging
import os
import sys
from contextlib import contextmanager
from typing import ContextManager, List
import psutil
import process... | 26.504673 | 80 | 0.665374 | 0 | 0 | 841 | 0.296544 | 857 | 0.302186 | 0 | 0 | 1,157 | 0.407969 |
9071096add8b5a4db338073c96e92750aa128c1f | 2,516 | py | Python | data/meneame/parse_meneame.py | segurac/DeepQA | b7f95e6e14ba9469f17a2a43df87f2a69e431eeb | [
"Apache-2.0"
] | null | null | null | data/meneame/parse_meneame.py | segurac/DeepQA | b7f95e6e14ba9469f17a2a43df87f2a69e431eeb | [
"Apache-2.0"
] | null | null | null | data/meneame/parse_meneame.py | segurac/DeepQA | b7f95e6e14ba9469f17a2a43df87f2a69e431eeb | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
#
# Copyright 2016 Carlos Segura. 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/LI... | 27.955556 | 79 | 0.534181 | 72 | 0.028617 | 0 | 0 | 0 | 0 | 0 | 0 | 860 | 0.341812 |
90740254e2ea619dbf9f847e862986ac065aaf0a | 4,087 | py | Python | dfstools/tests/test_relationship_tools.py | orekunrin/comp410_summer2020 | ab69d578a981ad0262f76baeccb5d16e8d2e182a | [
"Apache-2.0"
] | null | null | null | dfstools/tests/test_relationship_tools.py | orekunrin/comp410_summer2020 | ab69d578a981ad0262f76baeccb5d16e8d2e182a | [
"Apache-2.0"
] | null | null | null | dfstools/tests/test_relationship_tools.py | orekunrin/comp410_summer2020 | ab69d578a981ad0262f76baeccb5d16e8d2e182a | [
"Apache-2.0"
] | null | null | null | import unittest
import pandas as pd
import git
import os
from dfstools import get_dataset_dtypes
from dfstools import find_related_cols_by_name
from dfstools import find_related_cols_by_content
from dfstools import find_parent_child_relationships
from dfstools import pecan_cookies_load_data
class RelationshipTools(un... | 49.841463 | 111 | 0.477857 | 3,743 | 0.915831 | 0 | 0 | 0 | 0 | 0 | 0 | 1,447 | 0.354049 |
907488d52d48e24b4d69fb2af57f6618dc2c3ce3 | 2,836 | py | Python | Calculator.py | KunalKatiyar/Calculator | 74044d32b08738ef288ccfae6bb322e6ab05f608 | [
"MIT"
] | null | null | null | Calculator.py | KunalKatiyar/Calculator | 74044d32b08738ef288ccfae6bb322e6ab05f608 | [
"MIT"
] | null | null | null | Calculator.py | KunalKatiyar/Calculator | 74044d32b08738ef288ccfae6bb322e6ab05f608 | [
"MIT"
] | null | null | null | import sys
from PyQt5.QtWidgets import QApplication, QWidget, QPushButton, QHBoxLayout, QGroupBox, QDialog, QVBoxLayout, QGridLayout,QMainWindow, QApplication, QWidget, QPushButton, QAction, QLineEdit, QMessageBox
from PyQt5.QtGui import QIcon
from PyQt5.QtCore import pyqtSlot
class App(QDialog):
def __ini... | 35.45 | 203 | 0.605783 | 2,441 | 0.860719 | 0 | 0 | 231 | 0.081453 | 0 | 0 | 561 | 0.197814 |
9074ea5b2e3ca5610b7441955b3420b7ffce9518 | 1,446 | py | Python | analysis/src/util/_concepts.py | Domiii/code-dbgs | afe4d500273570e0b141ca0384cda3b52a191417 | [
"Apache-2.0"
] | 95 | 2020-01-20T08:51:20.000Z | 2022-03-31T23:27:28.000Z | analysis/src/util/_concepts.py | Domiii/code-dbgs | afe4d500273570e0b141ca0384cda3b52a191417 | [
"Apache-2.0"
] | 274 | 2020-07-11T11:10:10.000Z | 2022-03-31T14:03:39.000Z | analysis/src/util/_concepts.py | Domiii/code-dbgs | afe4d500273570e0b141ca0384cda3b52a191417 | [
"Apache-2.0"
] | 9 | 2020-07-15T07:04:20.000Z | 2022-03-27T17:11:58.000Z | # // ###########################################################################
# // Queries
# // ###########################################################################
# -> get a single cell of a df (use `iloc` with `row` + `col` as arguments)
df.iloc[0]['staticContextId']
# -> get one column as a list
allFunc... | 34.428571 | 106 | 0.540111 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 996 | 0.688797 |
907638a652d8418902c98ee951701aa5ff8b7dc1 | 2,279 | py | Python | src/py/proto/v3/diff/UniversalDiff_pb2.py | zifter/conf_protobuf | 1a8639d6f2a2535ece30dde840c99ba8261b5d7d | [
"MIT"
] | null | null | null | src/py/proto/v3/diff/UniversalDiff_pb2.py | zifter/conf_protobuf | 1a8639d6f2a2535ece30dde840c99ba8261b5d7d | [
"MIT"
] | null | null | null | src/py/proto/v3/diff/UniversalDiff_pb2.py | zifter/conf_protobuf | 1a8639d6f2a2535ece30dde840c99ba8261b5d7d | [
"MIT"
] | null | null | null | # Generated by the protocol buffer compiler. DO NOT EDIT!
# source: v3/diff/UniversalDiff.proto
import sys
_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1'))
from google.protobuf import descriptor as _descriptor
from google.protobuf import message as _message
from google.protobuf import reflec... | 31.219178 | 203 | 0.777095 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 635 | 0.278631 |
9076fc2a93a37415e1783c15ba456852ac6cdab0 | 4,549 | py | Python | src/onevision/data/augment/image_box_augment.py | phlong3105/onevision | 90552b64df7213e7fbe23c80ffd8a89583289433 | [
"MIT"
] | 2 | 2022-03-28T09:46:38.000Z | 2022-03-28T14:12:32.000Z | src/onevision/data/augment/image_box_augment.py | phlong3105/onevision | 90552b64df7213e7fbe23c80ffd8a89583289433 | [
"MIT"
] | null | null | null | src/onevision/data/augment/image_box_augment.py | phlong3105/onevision | 90552b64df7213e7fbe23c80ffd8a89583289433 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
"""
from __future__ import annotations
import numpy as np
import torch
from torch import Tensor
from onevision.data.augment.base import BaseAugment
from onevision.data.augment.utils import apply_transform_op
from onevision.data.data_class import ObjectAnnotation
fro... | 32.726619 | 94 | 0.473071 | 4,088 | 0.898659 | 0 | 0 | 4,133 | 0.908551 | 0 | 0 | 1,770 | 0.389097 |
907746020f32a1228d26593b0db9dbd5b8907c24 | 2,087 | py | Python | dataviz/euvotes.py | Udzu/pudzu | 5a0302830b052fc54feba891eb7bf634957a9d90 | [
"MIT"
] | 119 | 2017-07-22T15:02:30.000Z | 2021-08-02T10:42:59.000Z | dataviz/euvotes.py | Udzu/pudzu | 5a0302830b052fc54feba891eb7bf634957a9d90 | [
"MIT"
] | null | null | null | dataviz/euvotes.py | Udzu/pudzu | 5a0302830b052fc54feba891eb7bf634957a9d90 | [
"MIT"
] | 28 | 2017-08-04T14:28:41.000Z | 2019-11-27T23:46:14.000Z | from pudzu.charts import *
from pudzu.sandbox.bamboo import *
import seaborn as sns
# generate map
df = pd.read_csv("datasets/euvotes.csv").set_index('country')
palette = tmap(RGBA, sns.cubehelix_palette(11, start=0.2, rot=-0.75))
ranges = [20000000,10000000,5000000,2000000,1000000,500000,200000,100000,0]
def voteco... | 44.404255 | 148 | 0.684236 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 438 | 0.209871 |
9078e83afbdbc37dbf8bc13a26fcecb893de7fcb | 6,264 | py | Python | WarmUpSTE.py | jrolf/jse-api | 72cf6ce9f5fb54564872795f058cb06afe34ca75 | [
"MIT"
] | 1 | 2019-09-19T23:20:57.000Z | 2019-09-19T23:20:57.000Z | WarmUpSTE.py | jrolf/jse-api | 72cf6ce9f5fb54564872795f058cb06afe34ca75 | [
"MIT"
] | 1 | 2019-09-19T23:24:38.000Z | 2019-09-19T23:24:38.000Z | WarmUpSTE.py | jrolf/jse-api | 72cf6ce9f5fb54564872795f058cb06afe34ca75 | [
"MIT"
] | 1 | 2019-09-19T20:12:10.000Z | 2019-09-19T20:12:10.000Z |
import pandas as pd
import numpy as np
from copy import *
from bisect import *
from scipy.optimize import curve_fit
from sklearn.metrics import *
from collections import defaultdict as defd
import datetime,pickle
from DemandHelper import *
import warnings
warnings.filterwarnings("ignore")
####################... | 25.463415 | 81 | 0.543423 | 987 | 0.157567 | 0 | 0 | 0 | 0 | 0 | 0 | 2,071 | 0.330619 |
907a8e9bf17e1ccce65533dabf9db7c106ceba56 | 1,088 | py | Python | Section 3/cnn3.py | PacktPublishing/Python-Deep-Learning-for-Beginners- | 90f110158cbf0ce02fd4d5d09e3b2034428d9992 | [
"MIT"
] | 7 | 2019-02-16T02:52:12.000Z | 2021-11-08T13:10:46.000Z | Section 3/cnn3.py | PacktPublishing/Python-Deep-Learning-for-Beginners- | 90f110158cbf0ce02fd4d5d09e3b2034428d9992 | [
"MIT"
] | null | null | null | Section 3/cnn3.py | PacktPublishing/Python-Deep-Learning-for-Beginners- | 90f110158cbf0ce02fd4d5d09e3b2034428d9992 | [
"MIT"
] | 14 | 2018-11-18T04:33:38.000Z | 2021-08-14T03:29:18.000Z | import keras
from keras.datasets import mnist
from keras.models import Sequential
from keras.layers import Dense, Flatten
from keras.layers import Conv2D, MaxPooling2D
model = Sequential()
model.add(Conv2D(32, kernel_size=(3, 3),
activation='relu',
input_shape=(128, 128, 1)))
model.ad... | 31.085714 | 51 | 0.669118 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 88 | 0.080882 |
907b2f51dc7dc8191cd5bf95004855d172a84d81 | 15,373 | py | Python | k1lib/selector.py | 157239n/k1lib | 285520b8364ad5b21cb736b44471aa939e692e9b | [
"MIT"
] | 1 | 2021-08-11T19:10:08.000Z | 2021-08-11T19:10:08.000Z | k1lib/selector.py | 157239n/k1lib | 285520b8364ad5b21cb736b44471aa939e692e9b | [
"MIT"
] | null | null | null | k1lib/selector.py | 157239n/k1lib | 285520b8364ad5b21cb736b44471aa939e692e9b | [
"MIT"
] | null | null | null | # AUTOGENERATED FILE! PLEASE DON'T EDIT
"""
This module is for selecting a subnetwork using CSS so that you can do special
things to them. Checkout the tutorial section for a walkthrough. This is exposed
automatically with::
from k1lib.imports import *
selector.select # exposed
"""
from torch import nn; import k... | 43.426554 | 280 | 0.656866 | 2,541 | 0.16529 | 3,431 | 0.223184 | 11,183 | 0.727444 | 0 | 0 | 6,935 | 0.451116 |
907cab399c56f59d773c9098dcb9ad23a5c47d44 | 3,482 | py | Python | plugins/General/wxRaven_WebBrowser.py | sLiinuX/wxRaven | a513a029fa1ff2059ee262c524b4b2b45111f1a6 | [
"MIT"
] | 11 | 2021-12-20T15:32:17.000Z | 2022-03-16T03:54:02.000Z | plugins/General/wxRaven_WebBrowser.py | sLiinuX/wxRaven | a513a029fa1ff2059ee262c524b4b2b45111f1a6 | [
"MIT"
] | 156 | 2021-12-31T21:01:31.000Z | 2022-03-20T21:57:31.000Z | plugins/General/wxRaven_WebBrowser.py | sLiinuX/wxRaven | a513a029fa1ff2059ee262c524b4b2b45111f1a6 | [
"MIT"
] | 3 | 2022-01-21T14:52:43.000Z | 2022-02-12T05:32:19.000Z | '''
Created on 22 févr. 2022
@author: slinux
'''
from .wxRavenGeneralDesign import wxRavenWebBrowser
from wxRavenGUI.application.wxcustom.CustomLoading import *
from wxRavenGUI.application.wxcustom import *
import wx.html2 as webview
import sys
import logging
from wxRavenGUI.application.wxcustom.CustomUserIO import ... | 30.017241 | 269 | 0.601091 | 3,118 | 0.895205 | 0 | 0 | 0 | 0 | 0 | 0 | 1,408 | 0.404249 |
907d53bdf5f863a5b666758a3f35cfee8a3a43e9 | 4,097 | py | Python | backend/pollr-eb2/lib/python3.5/site-packages/ebcli/operations/upgradeops.py | saarthak24/Pollr | 9fbdd19f48ed873899093c7d034ed4e0d017c19d | [
"MIT"
] | 2 | 2017-11-16T15:02:43.000Z | 2017-11-20T17:41:16.000Z | backend/pollr-eb2/lib/python3.5/site-packages/ebcli/operations/upgradeops.py | saarthak24/Pollr | 9fbdd19f48ed873899093c7d034ed4e0d017c19d | [
"MIT"
] | 10 | 2020-01-28T22:12:06.000Z | 2022-03-11T23:16:53.000Z | backend/pollr-eb2/lib/python3.5/site-packages/ebcli/operations/upgradeops.py | saarthak24/Pollr | 9fbdd19f48ed873899093c7d034ed4e0d017c19d | [
"MIT"
] | 2 | 2017-11-16T14:59:03.000Z | 2017-11-16T23:52:13.000Z | # Copyright 2017 Amazon.com, Inc. or its affiliates. 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. A copy of
# the License is located at
#
# http://aws.amazon.com/apache2.0/
#
# or in the "license" file accompa... | 35.626087 | 78 | 0.661948 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 887 | 0.2165 |
907e1b4a54a9e37e87ee07e0eb6f6b12a199f562 | 2,719 | py | Python | src/perimeterator/enumerator/elb.py | vvondra/perimeterator | 6f750b5c8e6ff151472911bb45c6f11c0a6cd8ff | [
"MIT"
] | null | null | null | src/perimeterator/enumerator/elb.py | vvondra/perimeterator | 6f750b5c8e6ff151472911bb45c6f11c0a6cd8ff | [
"MIT"
] | null | null | null | src/perimeterator/enumerator/elb.py | vvondra/perimeterator | 6f750b5c8e6ff151472911bb45c6f11c0a6cd8ff | [
"MIT"
] | null | null | null | ''' Perimeterator - Enumerator for AWS ELBs (Public IPs). '''
import logging
import boto3
from perimeterator.helper import aws_elb_arn
from perimeterator.helper import dns_lookup
class Enumerator(object):
''' Perimeterator - Enumerator for AWS ELBs (Public IPs). '''
# Required for Boto and reporting.
SE... | 37.246575 | 77 | 0.543582 | 2,535 | 0.932328 | 0 | 0 | 0 | 0 | 0 | 0 | 1,108 | 0.407503 |
907f3c024ac75afd4ff1f45c65ec5e6e22c38567 | 1,685 | py | Python | binarycheck.py | pnordin/trimeol | 2f58db29df9b28f249c1b9fa851f04119158bbd5 | [
"MIT"
] | null | null | null | binarycheck.py | pnordin/trimeol | 2f58db29df9b28f249c1b9fa851f04119158bbd5 | [
"MIT"
] | null | null | null | binarycheck.py | pnordin/trimeol | 2f58db29df9b28f249c1b9fa851f04119158bbd5 | [
"MIT"
] | null | null | null | """Module to help guess whether a file is binary or text.
Requirements:
Python 2.7+
Recommended:
Python 3
"""
def is_binary_file(fname):
"""Attempt to guess if 'fname' is a binary file heuristically.
This algorithm has many flaws. Use with caution.
It assumes that if a part of the file has NUL b... | 25.923077 | 66 | 0.626113 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 955 | 0.566766 |
9080c3b939a2c1af97171c5d7d2b2932cf209fec | 8,329 | py | Python | spiketoolkit/validation/quality_metric_classes/snr.py | seankmartin/spiketoolkit | 38261d95045b1cd689363579c10ab3aa0a1ab7c0 | [
"MIT"
] | null | null | null | spiketoolkit/validation/quality_metric_classes/snr.py | seankmartin/spiketoolkit | 38261d95045b1cd689363579c10ab3aa0a1ab7c0 | [
"MIT"
] | null | null | null | spiketoolkit/validation/quality_metric_classes/snr.py | seankmartin/spiketoolkit | 38261d95045b1cd689363579c10ab3aa0a1ab7c0 | [
"MIT"
] | null | null | null | import numpy as np
import spikemetrics.metrics as metrics
from .utils.thresholdcurator import ThresholdCurator
from .quality_metric import QualityMetric
import spiketoolkit as st
from spikemetrics.utils import Epoch, printProgressBar
from collections import OrderedDict
from .parameter_dictionaries import get_recording_... | 46.792135 | 231 | 0.623724 | 3,900 | 0.468243 | 0 | 0 | 0 | 0 | 0 | 0 | 2,152 | 0.258374 |
90818fc965fccbf18cf4f96b17fab97a599e1aaa | 824 | py | Python | parser/fase2/team16/main.py | webdev188/tytus | 847071edb17b218f51bb969d335a8ec093d13f94 | [
"MIT"
] | null | null | null | parser/fase2/team16/main.py | webdev188/tytus | 847071edb17b218f51bb969d335a8ec093d13f94 | [
"MIT"
] | null | null | null | parser/fase2/team16/main.py | webdev188/tytus | 847071edb17b218f51bb969d335a8ec093d13f94 | [
"MIT"
] | 4 | 2020-12-19T17:12:13.000Z | 2021-01-07T20:29:53.000Z | # This is a sample Python script.
# Press Mayús+F10 to execute it or replace it with your code.
# Press Double Shift to search everywhere for classes, files, tool windows, actions, and settings.
import Gramatica as g
import interprete as Inter
import ts as TS
import jsonMode as JSON_INGE
import jsonMode as json
impor... | 18.311111 | 98 | 0.694175 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 380 | 0.460606 |
90825885fb1011eb6a66d72e387d9a860b8e8b3f | 19,132 | py | Python | stsynphot/tests/test_parser.py | tddesjardins/stsynphot_refactor | d7c6cdd006a2173fe0ee367a3a9f10f72acafe38 | [
"MIT",
"BSD-3-Clause"
] | 5 | 2017-07-18T20:02:34.000Z | 2022-03-10T06:46:22.000Z | stsynphot/tests/test_parser.py | tddesjardins/stsynphot_refactor | d7c6cdd006a2173fe0ee367a3a9f10f72acafe38 | [
"MIT",
"BSD-3-Clause"
] | 103 | 2016-05-26T03:40:24.000Z | 2021-12-29T23:03:13.000Z | stsynphot/tests/test_parser.py | tddesjardins/stsynphot_refactor | d7c6cdd006a2173fe0ee367a3a9f10f72acafe38 | [
"MIT",
"BSD-3-Clause"
] | 9 | 2016-12-14T12:56:18.000Z | 2021-09-11T22:50:01.000Z | # Licensed under a 3-clause BSD style license - see LICENSE.rst
"""Test spparser.py module, which uses spark.py.
.. note::
Only testing to see if the parser makes the right kind of
objects. Quality of the data is tested in other modules.
"""
# STDLIB
import os
# THIRD-PARTY
import pytest
from astropy impor... | 33.447552 | 79 | 0.559011 | 9,145 | 0.477995 | 0 | 0 | 14,317 | 0.748327 | 0 | 0 | 6,032 | 0.315283 |
9082f22e3410593d0f53f454a62bd2d756d1a9be | 554 | py | Python | rsbroker/urls.py | land-pack/RsBroker | d556fda09582e0540cac0eabc163a984e8fc1c44 | [
"Apache-2.0"
] | null | null | null | rsbroker/urls.py | land-pack/RsBroker | d556fda09582e0540cac0eabc163a984e8fc1c44 | [
"Apache-2.0"
] | null | null | null | rsbroker/urls.py | land-pack/RsBroker | d556fda09582e0540cac0eabc163a984e8fc1c44 | [
"Apache-2.0"
] | null | null | null | from __future__ import absolute_import
import os
from tornado.web import StaticFileHandler
from rsbroker.views import websocket
from rsbroker.views.error import NotFoundErrorHandler
settings = dict(
template_path=os.path.join(os.path.dirname(__file__), "templates"),
static_path=os.path.join(os.path.dirname(... | 20.518519 | 71 | 0.714801 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 96 | 0.173285 |
9083f275a59b9bf245934e27e32ceb9469c2cb0d | 6,465 | py | Python | tests/pheweb/load/command_flags_test.py | stellakeppo/pheweb | 10ea317dbe9419fa77f99e6b735fa9a3290ccd5e | [
"MIT"
] | 4 | 2018-11-03T13:58:52.000Z | 2020-03-06T09:19:03.000Z | tests/pheweb/load/command_flags_test.py | stellakeppo/pheweb | 10ea317dbe9419fa77f99e6b735fa9a3290ccd5e | [
"MIT"
] | 92 | 2018-05-17T18:07:01.000Z | 2022-03-29T00:37:30.000Z | tests/pheweb/load/command_flags_test.py | stellakeppo/pheweb | 10ea317dbe9419fa77f99e6b735fa9a3290ccd5e | [
"MIT"
] | 4 | 2020-07-01T12:20:55.000Z | 2022-01-24T20:09:15.000Z | # -*- coding: utf-8 -*-
"""
Unit testing for command flags.
This tests the various command flags
and there helper methods.
"""
import argparse
import typing
import uuid
import pytest
from pheweb.load.command_flags import (
FLAG_CHROMOSOME,
add_chromosome_flag,
OUTPUT_COLUMN_CHROMOSOME,
FLAG_POSITION... | 26.174089 | 88 | 0.692653 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1,454 | 0.224903 |
9085232046fc5765251336d07c6534499f1401bb | 4,388 | py | Python | sandbox/error-correct-pass2.py | sadeepdarshana/khmer | bee54c4f579611d970c59367323d31d3545cafa6 | [
"CNRI-Python"
] | 558 | 2015-05-22T15:03:21.000Z | 2022-03-23T04:49:17.000Z | sandbox/error-correct-pass2.py | sadeepdarshana/khmer | bee54c4f579611d970c59367323d31d3545cafa6 | [
"CNRI-Python"
] | 1,057 | 2015-05-14T20:27:04.000Z | 2022-03-08T09:29:36.000Z | sandbox/error-correct-pass2.py | sadeepdarshana/khmer | bee54c4f579611d970c59367323d31d3545cafa6 | [
"CNRI-Python"
] | 193 | 2015-05-18T10:13:34.000Z | 2021-12-10T11:58:01.000Z | #! /usr/bin/env python
# This file is part of khmer, https://github.com/dib-lab/khmer/, and is
# Copyright (C) 2011-2015, Michigan State University.
# Copyright (C) 2015, The Regents of the University of California.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted pro... | 35.104 | 78 | 0.66773 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2,381 | 0.542616 |
908535dac0f891e497250dce7197eb9409ed8be9 | 7,745 | py | Python | metadata-ingestion/tests/integration/azure_ad/test_azure_ad.py | zhoxie-cisco/datahub | 254a73e6ca9b1ec6002fcf013ed42cb6a754d1ad | [
"Apache-2.0"
] | 1 | 2021-11-16T03:45:33.000Z | 2021-11-16T03:45:33.000Z | metadata-ingestion/tests/integration/azure_ad/test_azure_ad.py | zhoxie-cisco/datahub | 254a73e6ca9b1ec6002fcf013ed42cb6a754d1ad | [
"Apache-2.0"
] | 4 | 2022-03-02T03:01:24.000Z | 2022-03-23T00:57:33.000Z | metadata-ingestion/tests/integration/azure_ad/test_azure_ad.py | zhoxie-cisco/datahub | 254a73e6ca9b1ec6002fcf013ed42cb6a754d1ad | [
"Apache-2.0"
] | 5 | 2021-07-26T08:37:42.000Z | 2021-11-16T05:41:02.000Z | import json
import pathlib
from unittest.mock import patch
from freezegun import freeze_time
from datahub.ingestion.run.pipeline import Pipeline
from datahub.ingestion.source.identity.azure_ad import AzureADConfig
from tests.test_helpers import mce_helpers
FROZEN_TIME = "2021-08-24 09:00:00"
def test_azure_ad_conf... | 39.314721 | 123 | 0.629438 | 0 | 0 | 0 | 0 | 4,756 | 0.614074 | 0 | 0 | 3,193 | 0.412266 |
9085eea801b451acd44298bd5d756b5655efe26d | 138 | py | Python | edit/core/optimizer/__init__.py | tpoisonooo/basicVSR_mge | 53df836a7dcc075083ef7c9ff7cabea69fec3192 | [
"Apache-2.0"
] | 28 | 2021-03-23T09:00:33.000Z | 2022-03-10T03:55:00.000Z | edit/core/optimizer/__init__.py | tpoisonooo/basicVSR_mge | 53df836a7dcc075083ef7c9ff7cabea69fec3192 | [
"Apache-2.0"
] | 2 | 2021-04-17T20:08:55.000Z | 2022-02-01T17:48:55.000Z | edit/core/optimizer/__init__.py | tpoisonooo/basicVSR_mge | 53df836a7dcc075083ef7c9ff7cabea69fec3192 | [
"Apache-2.0"
] | 5 | 2021-05-19T07:35:56.000Z | 2022-01-13T02:11:50.000Z | from .builder import build_optimizers, MGE_OPTIMIZERS, build_gradmanagers
from .default_constructor import DefaultOptimizerConstructor
| 23 | 73 | 0.876812 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
90861fa0047d98bc9b632e22782ae0a512bc70e6 | 561 | py | Python | hackerrank/medium/Climbing_the_Leaderboard.py | HoussemBousmaha/Competitive-Programming | c4530fc01d8933bdfefec7fb6d31cd648e760334 | [
"MIT"
] | 6 | 2022-03-02T23:08:00.000Z | 2022-03-07T07:26:48.000Z | hackerrank/medium/Climbing_the_Leaderboard.py | HoussemBousmaha/Competitive-Programming | c4530fc01d8933bdfefec7fb6d31cd648e760334 | [
"MIT"
] | null | null | null | hackerrank/medium/Climbing_the_Leaderboard.py | HoussemBousmaha/Competitive-Programming | c4530fc01d8933bdfefec7fb6d31cd648e760334 | [
"MIT"
] | null | null | null | def climbingLeaderboard(ranked, player):
ranked = sorted(list(set(ranked)), reverse=True)
ranks = []
# print(ranked)
for i in range(len(player)):
bi = 0
bs = len(ranked) - 1
index = 0
while (bi <= bs):
mid = (bi+bs) // 2
if (ranked[mid] > player... | 20.035714 | 52 | 0.43672 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 15 | 0.026738 |
908733eb70f6006bbe7cab4fd64970e3aec01842 | 8,352 | py | Python | src/python/config/parser/test_parsing.py | ncsa/NCSA-Genomics_MGC_GenomeGPS_CromwelWDL | 4611896ea1bb50df50120752712e8d4b32a6d023 | [
"MIT"
] | null | null | null | src/python/config/parser/test_parsing.py | ncsa/NCSA-Genomics_MGC_GenomeGPS_CromwelWDL | 4611896ea1bb50df50120752712e8d4b32a6d023 | [
"MIT"
] | null | null | null | src/python/config/parser/test_parsing.py | ncsa/NCSA-Genomics_MGC_GenomeGPS_CromwelWDL | 4611896ea1bb50df50120752712e8d4b32a6d023 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
import unittest
from config.parser.parsing import Parser
class TestParser(unittest.TestCase):
# Create an instance of the Parser class
parser_inst = Parser(job_id="NA")
# Turn the project logger off during UnitTesting, so the end user is not confused by error messages
# (So... | 53.538462 | 120 | 0.578544 | 8,265 | 0.989583 | 0 | 0 | 0 | 0 | 0 | 0 | 2,640 | 0.316092 |
9088061118cf617385915ed728847f4d1b206103 | 862 | py | Python | scripts/aggregate_membership.py | LibrariesHacked/wuthering-hacks | c8e87dda86b05aaf9c23a5606472dc72c0aff603 | [
"CC0-1.0",
"MIT"
] | 5 | 2016-10-02T13:49:29.000Z | 2020-02-12T00:09:14.000Z | scripts/aggregate_membership.py | LibrariesHacked/wuthering-hacks | c8e87dda86b05aaf9c23a5606472dc72c0aff603 | [
"CC0-1.0",
"MIT"
] | null | null | null | scripts/aggregate_membership.py | LibrariesHacked/wuthering-hacks | c8e87dda86b05aaf9c23a5606472dc72c0aff603 | [
"CC0-1.0",
"MIT"
] | null | null | null | ## Requires Python v3 and pandas (pip install pandas)
## This script takes the newcastle membership csv and attempts
## to reduce the file size as much as possible through aggregation and lookups
## Two lookup files to provide library names and dates are also created.
import csv
import os
import re
from datetime impor... | 30.785714 | 100 | 0.732019 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 368 | 0.426914 |
9088b5572da41984c1697dbaf7d670a85f1c124c | 10,535 | py | Python | mdl/contracts/contract.py | fafhrd91/mdl | daada030649305df02f65b77ebdf41cf976a870e | [
"Apache-2.0"
] | 3 | 2016-12-28T09:31:27.000Z | 2017-01-09T18:38:46.000Z | mdl/contracts/contract.py | fafhrd91/mdl | daada030649305df02f65b77ebdf41cf976a870e | [
"Apache-2.0"
] | 1 | 2019-05-04T18:14:24.000Z | 2019-05-04T18:14:24.000Z | mdl/contracts/contract.py | fafhrd91/mdl | daada030649305df02f65b77ebdf41cf976a870e | [
"Apache-2.0"
] | null | null | null | """Interface contract object"""
from __future__ import absolute_import
import six
import sys
import logging
from contracts.interface import ContractException, ContractNotRespected
from .extension import ID
from ..declarations import implementer
from ..verify import verifyObject
from ..interface import InterfaceClass
... | 31.541916 | 79 | 0.57608 | 9,394 | 0.891694 | 0 | 0 | 0 | 0 | 0 | 0 | 1,191 | 0.113052 |
908923bb1a1d3dddbedc40a59f1c9790842c688e | 3,979 | py | Python | hourglass/train.py | ziqi123/AutoParking | bc2c86fe93892c0502cc7cf689d8ec072d2974d1 | [
"Apache-2.0"
] | null | null | null | hourglass/train.py | ziqi123/AutoParking | bc2c86fe93892c0502cc7cf689d8ec072d2974d1 | [
"Apache-2.0"
] | null | null | null | hourglass/train.py | ziqi123/AutoParking | bc2c86fe93892c0502cc7cf689d8ec072d2974d1 | [
"Apache-2.0"
] | null | null | null | import numpy as np
import torch
import torchvision.transforms as transforms
from dataloader.dataloader_hourglass import heatmap_Dataloader
import os
from network import KFSGNet
import torchvision.transforms as transforms
os.environ['CUDA_VISIBLE_DEVICES'] = '2'
# Device configuration
device = torch.device('cuda' if t... | 27.631944 | 133 | 0.619754 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1,853 | 0.442138 |
9089cafc79c7a1e8e0abc38c3cabc190f618f305 | 1,648 | py | Python | wpa-psk/wpa-psk.py | ranisalt/rsaur | 8b8e8f596a35e8aff53ccff0fc941deacdc885a4 | [
"MIT"
] | null | null | null | wpa-psk/wpa-psk.py | ranisalt/rsaur | 8b8e8f596a35e8aff53ccff0fc941deacdc885a4 | [
"MIT"
] | null | null | null | wpa-psk/wpa-psk.py | ranisalt/rsaur | 8b8e8f596a35e8aff53ccff0fc941deacdc885a4 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
import sys
from argparse import ArgumentParser
from getpass import getpass
from hashlib import pbkdf2_hmac
from signal import signal, SIGINT
def die(*_, **__):
sys.exit()
signal = signal(SIGINT, die)
iwd = """[Security]
PreSharedKey={psk}"""
supplicant = """network={{
ssid={ssid}
... | 28.912281 | 182 | 0.703277 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 667 | 0.404733 |
908ab1d5d4950850ce0d224a0c7fe40fe59aa364 | 2,406 | py | Python | cms/management/commands/subcommands/copy_lang.py | mightyiam/django-cms | 09bf76d2f3d81fdaebcfb7e9ed4ecd4769fa8c25 | [
"BSD-3-Clause"
] | 2 | 2018-05-17T02:49:49.000Z | 2019-08-20T02:07:44.000Z | cms/management/commands/subcommands/copy_lang.py | mightyiam/django-cms | 09bf76d2f3d81fdaebcfb7e9ed4ecd4769fa8c25 | [
"BSD-3-Clause"
] | 2 | 2019-02-13T07:58:23.000Z | 2019-02-13T07:58:27.000Z | cms/management/commands/subcommands/copy_lang.py | mightyiam/django-cms | 09bf76d2f3d81fdaebcfb7e9ed4ecd4769fa8c25 | [
"BSD-3-Clause"
] | null | null | null | # -*- coding: utf-8 -*-
from optparse import make_option
from django.conf import settings
from django.core.management.base import BaseCommand, CommandError
from cms.api import copy_plugins_to_language
from cms.models import Title, Page
from cms.utils.i18n import get_language_list
class CopyLangCommand(BaseCommand)... | 37.59375 | 119 | 0.588944 | 2,119 | 0.880715 | 0 | 0 | 0 | 0 | 0 | 0 | 515 | 0.214048 |
908b0f1eabec4449e380288689a4979deb9e601d | 424 | py | Python | easyml/mainsite/migrations/0015_auto_20181014_1837.py | evancasey1/EasyML | 69f0c246cb7e1d6f7167eb504c30693088e703fd | [
"MIT"
] | null | null | null | easyml/mainsite/migrations/0015_auto_20181014_1837.py | evancasey1/EasyML | 69f0c246cb7e1d6f7167eb504c30693088e703fd | [
"MIT"
] | null | null | null | easyml/mainsite/migrations/0015_auto_20181014_1837.py | evancasey1/EasyML | 69f0c246cb7e1d6f7167eb504c30693088e703fd | [
"MIT"
] | 1 | 2020-10-25T08:14:33.000Z | 2020-10-25T08:14:33.000Z | # Generated by Django 2.1.2 on 2018-10-14 18:37
from django.db import migrations
import picklefield.fields
class Migration(migrations.Migration):
dependencies = [
('mainsite', '0014_mlmodel_type_num'),
]
operations = [
migrations.AlterField(
model_name='mlmodel',
... | 21.2 | 72 | 0.629717 | 313 | 0.738208 | 0 | 0 | 0 | 0 | 0 | 0 | 95 | 0.224057 |
908bf756c481540c4c44d86144640fa2370be038 | 1,563 | py | Python | adsrefpipe/refparsers/handler.py | golnazads/ADSReferencePipeline | 802f26a9e085e6ff5de43f3b5642b2d9fad52cbb | [
"MIT"
] | null | null | null | adsrefpipe/refparsers/handler.py | golnazads/ADSReferencePipeline | 802f26a9e085e6ff5de43f3b5642b2d9fad52cbb | [
"MIT"
] | null | null | null | adsrefpipe/refparsers/handler.py | golnazads/ADSReferencePipeline | 802f26a9e085e6ff5de43f3b5642b2d9fad52cbb | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
from adsrefpipe.refparsers.CrossRefXML import CrossReftoREFs
from adsrefpipe.refparsers.ElsevierXML import ELSEVIERtoREFs
from adsrefpipe.refparsers.JATSxml import JATStoREFs
from adsrefpipe.refparsers.IOPxml import IOPtoREFs
from adsrefpipe.refparsers.SpringerXML import SPRINGERtoREFs
from ads... | 32.5625 | 67 | 0.723608 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 238 | 0.152271 |
908cafca02ccd9dbc79045504cbba8cbd1494065 | 12,221 | py | Python | src/onegov/translator_directory/layout.py | politbuero-kampagnen/onegov-cloud | 20148bf321b71f617b64376fe7249b2b9b9c4aa9 | [
"MIT"
] | null | null | null | src/onegov/translator_directory/layout.py | politbuero-kampagnen/onegov-cloud | 20148bf321b71f617b64376fe7249b2b9b9c4aa9 | [
"MIT"
] | null | null | null | src/onegov/translator_directory/layout.py | politbuero-kampagnen/onegov-cloud | 20148bf321b71f617b64376fe7249b2b9b9c4aa9 | [
"MIT"
] | null | null | null | from cached_property import cached_property
from purl import URL
from onegov.translator_directory import _
from onegov.core.elements import Block, Link, LinkGroup, Confirm, Intercooler
from onegov.core.utils import linkify
from onegov.org.layout import DefaultLayout as BaseLayout
from onegov.translator_directory.colle... | 31.17602 | 79 | 0.469274 | 11,487 | 0.939939 | 0 | 0 | 9,633 | 0.788233 | 0 | 0 | 1,356 | 0.110957 |
908cc9c6b5ff8ca35a1dc06753afe50c50104b9d | 1,169 | py | Python | src/dsanalizer/informations.py | perqu/Dataset-Analizer | c12ca74bd4f1e5969f0d90d6115a87ff3afd7f59 | [
"MIT"
] | null | null | null | src/dsanalizer/informations.py | perqu/Dataset-Analizer | c12ca74bd4f1e5969f0d90d6115a87ff3afd7f59 | [
"MIT"
] | null | null | null | src/dsanalizer/informations.py | perqu/Dataset-Analizer | c12ca74bd4f1e5969f0d90d6115a87ff3afd7f59 | [
"MIT"
] | null | null | null | import pandas as pd
import numpy as np
import io
def info(df):
print("------------DIMENSIONS------------")
print("Rows:", df.shape[0])
print("Columns:", df.shape[1])
print("--------------DTYPES--------------")
columns = df.columns.tolist()
integers = df.select_dtypes("integer").columns.tolist(... | 33.4 | 100 | 0.544055 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 278 | 0.23781 |
908ec7d6f30da870417cfcc9194599857d219fff | 5,861 | py | Python | src/packagedcode/cargo.py | Siddhant-K-code/scancode-toolkit | d1e725d3603a8f96c25f7e3f7595c68999b92a67 | [
"Apache-2.0",
"CC-BY-4.0"
] | 1,511 | 2015-07-01T15:29:03.000Z | 2022-03-30T13:40:05.000Z | src/packagedcode/cargo.py | Siddhant-K-code/scancode-toolkit | d1e725d3603a8f96c25f7e3f7595c68999b92a67 | [
"Apache-2.0",
"CC-BY-4.0"
] | 2,695 | 2015-07-01T16:01:35.000Z | 2022-03-31T19:17:44.000Z | src/packagedcode/cargo.py | Siddhant-K-code/scancode-toolkit | d1e725d3603a8f96c25f7e3f7595c68999b92a67 | [
"Apache-2.0",
"CC-BY-4.0"
] | 540 | 2015-07-01T15:08:19.000Z | 2022-03-31T12:13:11.000Z |
# Copyright (c) nexB Inc. and others. All rights reserved.
# ScanCode is a trademark of nexB Inc.
# SPDX-License-Identifier: Apache-2.0
# See http://www.apache.org/licenses/LICENSE-2.0 for the license text.
# See https://github.com/nexB/scancode-toolkit for support or download.
# See https://aboutcode.org for more inf... | 28.590244 | 99 | 0.61696 | 3,604 | 0.614912 | 2,304 | 0.393107 | 3,634 | 0.620031 | 0 | 0 | 1,992 | 0.339874 |
90918aea55bbacc028653f4732ff48d1cf1a76ea | 10,268 | py | Python | tests/testing/units.py | mandaltj/gem5_chips | b9c0c602241ffda7851c1afb32fa01f295bb98fd | [
"BSD-3-Clause"
] | 135 | 2016-10-21T03:31:49.000Z | 2022-03-25T01:22:20.000Z | tests/testing/units.py | mandaltj/gem5_chips | b9c0c602241ffda7851c1afb32fa01f295bb98fd | [
"BSD-3-Clause"
] | 35 | 2017-03-10T17:57:46.000Z | 2022-02-18T17:34:16.000Z | tests/testing/units.py | mandaltj/gem5_chips | b9c0c602241ffda7851c1afb32fa01f295bb98fd | [
"BSD-3-Clause"
] | 48 | 2016-12-08T12:03:13.000Z | 2022-02-16T09:16:13.000Z | #!/usr/bin/env python2.7
#
# Copyright (c) 2016 ARM Limited
# All rights reserved
#
# The license below extends only to copyright in the software and shall
# not be construed as granting a license to any other intellectual
# property including but not limited to intellectual property relating
# to a hardware implementa... | 34.689189 | 79 | 0.602357 | 7,852 | 0.764706 | 312 | 0.030386 | 48 | 0.004675 | 0 | 0 | 4,017 | 0.391215 |
9091ee961b1819c72143e6265ce0d0dcec7d5ad2 | 19,042 | py | Python | mythic-docker/app/routes/routes.py | rmusser01/Mythic | 48d3f6b0b1bbb4858e5f43a5c6528644b0751bc9 | [
"BSD-3-Clause"
] | 934 | 2020-08-13T15:32:30.000Z | 2022-03-31T20:41:21.000Z | mythic-docker/app/routes/routes.py | rmusser01/Mythic | 48d3f6b0b1bbb4858e5f43a5c6528644b0751bc9 | [
"BSD-3-Clause"
] | 88 | 2020-08-13T18:59:11.000Z | 2022-03-31T23:48:18.000Z | mythic-docker/app/routes/routes.py | rmusser01/Mythic | 48d3f6b0b1bbb4858e5f43a5c6528644b0751bc9 | [
"BSD-3-Clause"
] | 161 | 2020-08-13T17:28:03.000Z | 2022-03-19T14:56:34.000Z | from app import (
mythic,
links,
nginx_port,
listen_port,
mythic_admin_password,
mythic_admin_user,
default_operation_name,
mythic_db
)
import app
import asyncpg
import redis
from peewee_async import Manager
from sanic.response import json
from sanic import response
from ... | 41.21645 | 173 | 0.589014 | 8,237 | 0.43257 | 0 | 0 | 4,549 | 0.238893 | 16,022 | 0.841403 | 3,940 | 0.206911 |
9092b9fc5566c9c58a04dd93c04224cbbceb0b64 | 1,911 | py | Python | sdl2/blendmode.py | namelivia/py-sdl2 | c1bdf43501224d5f0a125dbce70198100ec7be82 | [
"CC0-1.0"
] | 222 | 2017-08-19T00:51:59.000Z | 2022-02-05T19:39:33.000Z | sdl2/blendmode.py | namelivia/py-sdl2 | c1bdf43501224d5f0a125dbce70198100ec7be82 | [
"CC0-1.0"
] | 103 | 2017-08-20T17:13:05.000Z | 2022-02-05T20:20:01.000Z | sdl2/blendmode.py | namelivia/py-sdl2 | c1bdf43501224d5f0a125dbce70198100ec7be82 | [
"CC0-1.0"
] | 54 | 2017-08-20T17:13:00.000Z | 2022-01-14T23:51:13.000Z | from ctypes import c_int
from .dll import _bind
__all__ = [
# Enums
"SDL_BlendMode",
"SDL_BLENDMODE_NONE", "SDL_BLENDMODE_BLEND", "SDL_BLENDMODE_ADD",
"SDL_BLENDMODE_MOD", "SDL_BLENDMODE_MUL", "SDL_BLENDMODE_INVALID",
"SDL_BlendOperation",
"SDL_BLENDOPERATION_ADD", "SDL_BLENDOPERATION_SUBTRACT... | 31.327869 | 204 | 0.791209 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 695 | 0.363684 |
9093d4d8bd3bc3c9e386b961c6079deedbc45036 | 204 | py | Python | python_code/cutils/viz/__init__.py | IBM/oct-glaucoma-vf-estimate | ea79352547f33fe05ee532ab9faad6a5e4811a76 | [
"Apache-2.0"
] | null | null | null | python_code/cutils/viz/__init__.py | IBM/oct-glaucoma-vf-estimate | ea79352547f33fe05ee532ab9faad6a5e4811a76 | [
"Apache-2.0"
] | null | null | null | python_code/cutils/viz/__init__.py | IBM/oct-glaucoma-vf-estimate | ea79352547f33fe05ee532ab9faad6a5e4811a76 | [
"Apache-2.0"
] | null | null | null | from .vizutils import viz_overlaymask, display_side2side, display_side2sidev1, stack_patches, figure2image, get_heatmap, visualize_probmaps
from .vizutils import get_heatmap_multiple, figure2image_save | 68 | 140 | 0.872549 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |