hexsha stringlengths 40 40 | size int64 5 2.06M | ext stringclasses 11
values | lang stringclasses 1
value | max_stars_repo_path stringlengths 3 251 | max_stars_repo_name stringlengths 4 130 | max_stars_repo_head_hexsha stringlengths 40 78 | max_stars_repo_licenses listlengths 1 10 | max_stars_count int64 1 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 251 | max_issues_repo_name stringlengths 4 130 | max_issues_repo_head_hexsha stringlengths 40 78 | max_issues_repo_licenses listlengths 1 10 | max_issues_count int64 1 116k ⌀ | max_issues_repo_issues_event_min_datetime stringlengths 24 24 ⌀ | max_issues_repo_issues_event_max_datetime stringlengths 24 24 ⌀ | max_forks_repo_path stringlengths 3 251 | max_forks_repo_name stringlengths 4 130 | max_forks_repo_head_hexsha stringlengths 40 78 | max_forks_repo_licenses listlengths 1 10 | max_forks_count int64 1 105k ⌀ | max_forks_repo_forks_event_min_datetime stringlengths 24 24 ⌀ | max_forks_repo_forks_event_max_datetime stringlengths 24 24 ⌀ | content stringlengths 1 1.05M | avg_line_length float64 1 1.02M | max_line_length int64 3 1.04M | alphanum_fraction float64 0 1 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
2acbee4216495a69c5721247c8f787b4e47f69f7 | 26,954 | py | Python | pkgs/core/bdsim/core/components.py | CallumJHays/bdsim.micropython | da2e61496d3ef20c7ac4a65dba0ab18255990bec | [
"MIT"
] | null | null | null | pkgs/core/bdsim/core/components.py | CallumJHays/bdsim.micropython | da2e61496d3ef20c7ac4a65dba0ab18255990bec | [
"MIT"
] | null | null | null | pkgs/core/bdsim/core/components.py | CallumJHays/bdsim.micropython | da2e61496d3ef20c7ac4a65dba0ab18255990bec | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Components of the simulation system, namely blocks, wires and plugs.
"""
from abc import ABC, abstractmethod
from typing import Any, Iterable, List, Optional as Opt, Tuple, Union, TYPE_CHECKING
from typing_extensions import Literal
from bdsim.core import np
if TYPE_CH... | 29.076591 | 106 | 0.563441 |
2accc4316592f369a2446f7d46a9301b4a27b128 | 4,509 | py | Python | code/alg/placement/random.py | S-Lab-System-Group/ChronusArtifact | bc7e15fefd53b80d1897170ab3c1aa7d353c3b79 | [
"MIT"
] | 7 | 2021-11-04T06:31:38.000Z | 2022-02-08T11:46:42.000Z | code/alg/placement/random.py | S-Lab-System-Group/ChronusArtifact | bc7e15fefd53b80d1897170ab3c1aa7d353c3b79 | [
"MIT"
] | null | null | null | code/alg/placement/random.py | S-Lab-System-Group/ChronusArtifact | bc7e15fefd53b80d1897170ab3c1aa7d353c3b79 | [
"MIT"
] | 1 | 2022-01-10T01:42:42.000Z | 2022-01-10T01:42:42.000Z | import os, sys
import math
import random
sys.path.insert(0, os.path.basename(__file__) + os.sep + '..' + os.sep + '..')
from server.switch import _Switch
from server.node import _Node
from utils import util
from alg.utils.topology import Topology
from .base import BasePlaceMent
| 40.621622 | 167 | 0.541583 |
2acdbe48c1a63c18df33e8e3cfb8731347ace259 | 466 | py | Python | fbl_handler/test_message_id_extractor.py | wheekey/fbl-handler | 918e2c7ac50033630eebd5741a7ad3e9c56c3930 | [
"MIT"
] | null | null | null | fbl_handler/test_message_id_extractor.py | wheekey/fbl-handler | 918e2c7ac50033630eebd5741a7ad3e9c56c3930 | [
"MIT"
] | null | null | null | fbl_handler/test_message_id_extractor.py | wheekey/fbl-handler | 918e2c7ac50033630eebd5741a7ad3e9c56c3930 | [
"MIT"
] | null | null | null | from unittest import TestCase
from fbl_handler.message_id_extractor import MessageIdExtractor
| 31.066667 | 109 | 0.751073 |
2ace6c0babd8d4be95c012041013aaf8129f838b | 30,169 | py | Python | evohome_rf/opentherm.py | NotBobTheBuilder/evohome_rf | c3d9c3563d43fbe19a33c0493cde0864c1f4a23a | [
"MIT"
] | null | null | null | evohome_rf/opentherm.py | NotBobTheBuilder/evohome_rf | c3d9c3563d43fbe19a33c0493cde0864c1f4a23a | [
"MIT"
] | null | null | null | evohome_rf/opentherm.py | NotBobTheBuilder/evohome_rf | c3d9c3563d43fbe19a33c0493cde0864c1f4a23a | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
#
"""Evohome RF - Opentherm processor."""
import logging
import struct
from typing import Any
from .const import __dev_mode__
DEV_MODE = __dev_mode__
_LOGGER = logging.getLogger(__name__)
if DEV_MODE:
_LOGGER.setLevel(logging.DEBUG)
# Data structure shamelessy cop... | 31.857445 | 101 | 0.515861 |
2acecaa7265345057c582cd5659c528d1e06424d | 3,030 | py | Python | mut/viz.py | RPGroup-PBoC/mwc_mutants | 35581602c35793fc8ec42c8aff37b8305c5e54e1 | [
"MIT"
] | 3 | 2020-11-11T21:33:26.000Z | 2021-07-14T21:22:43.000Z | mut/viz.py | RPGroup-PBoC/mwc_mutants | 35581602c35793fc8ec42c8aff37b8305c5e54e1 | [
"MIT"
] | null | null | null | mut/viz.py | RPGroup-PBoC/mwc_mutants | 35581602c35793fc8ec42c8aff37b8305c5e54e1 | [
"MIT"
] | 1 | 2021-07-14T21:22:45.000Z | 2021-07-14T21:22:45.000Z | import bokeh.io
import bokeh.plotting
import bokeh.layouts
import bokeh.palettes
import seaborn as sns
import numpy as np
import os
import matplotlib.pyplot as plt
import matplotlib
def plotting_style(grid=True):
"""
Sets the style to the publication style
"""
rc = {'axes.facecolor': '#E3DCD0',
... | 37.407407 | 94 | 0.550825 |
2ad0ac9327d191fb59e48707001f44685e276770 | 992 | py | Python | pipeline/decorator.py | jnis77diver/django-pipeline | 8bac57adae84615d9d79ad19b2b591c2e46879f9 | [
"MIT"
] | null | null | null | pipeline/decorator.py | jnis77diver/django-pipeline | 8bac57adae84615d9d79ad19b2b591c2e46879f9 | [
"MIT"
] | 1 | 2021-09-20T22:02:21.000Z | 2021-09-21T13:55:41.000Z | pipeline/decorator.py | jnis77diver/django-pipeline | 8bac57adae84615d9d79ad19b2b591c2e46879f9 | [
"MIT"
] | 1 | 2021-09-18T01:39:48.000Z | 2021-09-18T01:39:48.000Z | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
"""
This code is a part of django.utils.six on https://github.com/django/django/blob/stable/2.2.x/django/utils/six.py removed form Django 3.0
To keep the backward compatibility between python 2 and 3 the decorator need to be used as well, during ... | 43.130435 | 141 | 0.667339 |
2ad3092df187e4cb74cb88c0ec1606105db4f6cc | 4,206 | py | Python | nowplaying/recognition/theaudiodb.py | whatsnowplaying/whats-now-playing | 45f5eaab5292430f86501e8c4b7cb0b9881436f4 | [
"MIT"
] | 16 | 2021-07-22T21:32:26.000Z | 2022-01-30T05:32:10.000Z | nowplaying/recognition/theaudiodb.py | whatsnowplaying/whats-now-playing | 45f5eaab5292430f86501e8c4b7cb0b9881436f4 | [
"MIT"
] | 175 | 2021-05-31T04:18:31.000Z | 2022-03-29T17:29:26.000Z | nowplaying/recognition/theaudiodb.py | whatsnowplaying/whats-now-playing | 45f5eaab5292430f86501e8c4b7cb0b9881436f4 | [
"MIT"
] | 6 | 2021-07-22T22:02:37.000Z | 2021-12-31T19:36:33.000Z | #!/usr/bin/env python3
''' start of support of theaudiodb '''
from html.parser import HTMLParser
import logging
import logging.config
import logging.handlers
import os
import requests
import requests.utils
import nowplaying.bootstrap
import nowplaying.config
from nowplaying.recognition import RecognitionPlugin
d... | 30.70073 | 78 | 0.628626 |
2ad374aeec5403a30d049d72b93822e349758d54 | 2,237 | py | Python | reno/tests/test_create.py | mail2nsrajesh/reno | 7ab07f1d2677b5c40a29be4010c0729d3a908aab | [
"Apache-2.0"
] | null | null | null | reno/tests/test_create.py | mail2nsrajesh/reno | 7ab07f1d2677b5c40a29be4010c0729d3a908aab | [
"Apache-2.0"
] | null | null | null | reno/tests/test_create.py | mail2nsrajesh/reno | 7ab07f1d2677b5c40a29be4010c0729d3a908aab | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, softw... | 33.893939 | 75 | 0.679928 |
2ad4ce045c7a9b380a36fccf92dd30a4448a06dc | 8,328 | py | Python | maindb/query.py | DesmondYuan/ArtSearch | de0331b04c5b2b6187eae0bf610eb4e44c64eb08 | [
"MIT"
] | null | null | null | maindb/query.py | DesmondYuan/ArtSearch | de0331b04c5b2b6187eae0bf610eb4e44c64eb08 | [
"MIT"
] | null | null | null | maindb/query.py | DesmondYuan/ArtSearch | de0331b04c5b2b6187eae0bf610eb4e44c64eb08 | [
"MIT"
] | null | null | null | import os
import io
import os
import pandas as pd
import numpy as np
from google.cloud import vision
from PIL import Image
from google.cloud import vision
from sklearn.metrics.pairwise import cosine_similarity
from sklearn.metrics import mean_squared_error as MSE
import pickle as pkl
import time
import tqdm
features_... | 30.173913 | 98 | 0.598223 |
2ad5e8acfb1924c4fca0cbad2cf3c61e5ea92167 | 203 | py | Python | tests/common/scripts/cleaning/test_strip.py | arkhn/fhir-river | a12179c34fad131d16dedc20c61297ed83d805e6 | [
"Apache-2.0"
] | 42 | 2020-03-25T16:47:30.000Z | 2022-01-31T21:26:38.000Z | tests/common/scripts/cleaning/test_strip.py | arkhn/fhir-river | a12179c34fad131d16dedc20c61297ed83d805e6 | [
"Apache-2.0"
] | 367 | 2020-04-08T12:46:34.000Z | 2022-02-16T01:15:32.000Z | tests/common/scripts/cleaning/test_strip.py | arkhn/fhir-river | a12179c34fad131d16dedc20c61297ed83d805e6 | [
"Apache-2.0"
] | 3 | 2020-05-14T08:24:46.000Z | 2021-08-04T05:00:16.000Z | from common.scripts.cleaning import strip
| 22.555556 | 41 | 0.674877 |
2ad6982b913eaaeaa3f0f9e019314d56df2662a1 | 2,186 | py | Python | app.py | Munawwar/image-background-remove-tool | 90b348d1a99599992b5ee074aa314d399c9172ed | [
"Apache-2.0"
] | null | null | null | app.py | Munawwar/image-background-remove-tool | 90b348d1a99599992b5ee074aa314d399c9172ed | [
"Apache-2.0"
] | null | null | null | app.py | Munawwar/image-background-remove-tool | 90b348d1a99599992b5ee074aa314d399c9172ed | [
"Apache-2.0"
] | null | null | null | from main import process
import os
import platform
import subprocess
import sys
import threading
import webview
html = getfile('index.html')
window = webview.create_window('Automated BG Removal Tool', html=html)
webview.start(onWindowStart, window) | 32.147059 | 109 | 0.667887 |
2ad7054044b890689ad7e39e0a17d04847e28d9a | 347 | py | Python | grpc_django/models.py | soheltarir/grpc-django | 890038de2d7b7c36e4fd37ef1727d3568b3f68f5 | [
"MIT"
] | 12 | 2018-08-03T08:02:32.000Z | 2020-05-06T03:49:43.000Z | grpc_django/models.py | localhost-sys/grpc-django | 890038de2d7b7c36e4fd37ef1727d3568b3f68f5 | [
"MIT"
] | 7 | 2018-07-18T07:18:44.000Z | 2022-02-10T10:28:42.000Z | grpc_django/models.py | localhost-sys/grpc-django | 890038de2d7b7c36e4fd37ef1727d3568b3f68f5 | [
"MIT"
] | 5 | 2019-10-13T08:22:04.000Z | 2021-06-11T02:25:04.000Z | from django.contrib.auth.models import AbstractUser
# Create your models here.
| 23.133333 | 90 | 0.688761 |
2ad83d1e90396e90bab93b0cb7b84859c83b1c0f | 2,258 | py | Python | models/vgg_cifar_lp.py | mengjian0502/BNFusionTrain | 2cfb4a3dceb4dc468bbee88a1f65a66b29ee4de4 | [
"MIT"
] | null | null | null | models/vgg_cifar_lp.py | mengjian0502/BNFusionTrain | 2cfb4a3dceb4dc468bbee88a1f65a66b29ee4de4 | [
"MIT"
] | null | null | null | models/vgg_cifar_lp.py | mengjian0502/BNFusionTrain | 2cfb4a3dceb4dc468bbee88a1f65a66b29ee4de4 | [
"MIT"
] | null | null | null |
import math
import torch.nn as nn
from .modules import QConv2d, QLinear
cfg = {
7: [128, 128, 'M', 256, 256, 'M', 512, 512, 'M'],
16: [64, 64, 'M', 128, 128, 'M', 256, 256, 256, 'M', 512, 512, 512, 'M', 512, 512, 512, 'M'],
19: [64, 64, 'M', 128, 128, 'M', 256, 256, 256, 256, 'M', 512, 512, 512, 512, 'M',... | 33.205882 | 99 | 0.513286 |
2ad8e8c5d5e6c6097e19695b80c61293811bdb56 | 12,732 | py | Python | library/central_templates.py | ageoffron/aruba-central-ansible-role | 1216b2208689b2eddfb8f93fec3abf46e155198e | [
"MIT"
] | 1 | 2020-09-28T11:18:10.000Z | 2020-09-28T11:18:10.000Z | library/central_templates.py | ageoffron/aruba-central-ansible-role | 1216b2208689b2eddfb8f93fec3abf46e155198e | [
"MIT"
] | null | null | null | library/central_templates.py | ageoffron/aruba-central-ansible-role | 1216b2208689b2eddfb8f93fec3abf46e155198e | [
"MIT"
] | null | null | null | #!/usr/bin/python
'''
Central Templates Ansible Module
'''
# MIT License
#
# Copyright (c) 2020 Aruba, a Hewlett Packard Enterprise company
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software w... | 35.564246 | 92 | 0.613415 |
2ad91fd74a0335e007baaadc3de54f8cc151b31f | 897 | py | Python | habitat/_common/models/date.py | matrach/habitatOS | 1ae2a3caf6f279cf6d6d20bcd81f24d50f61d7d3 | [
"MIT"
] | 1 | 2021-02-01T19:04:39.000Z | 2021-02-01T19:04:39.000Z | habitat/_common/models/date.py | matrach/habitatOS | 1ae2a3caf6f279cf6d6d20bcd81f24d50f61d7d3 | [
"MIT"
] | null | null | null | habitat/_common/models/date.py | matrach/habitatOS | 1ae2a3caf6f279cf6d6d20bcd81f24d50f61d7d3 | [
"MIT"
] | null | null | null | from django.db import models
from django.utils.translation import ugettext_lazy as _
from habitat.timezone import get_timezone
timezone = get_timezone()
| 21.878049 | 66 | 0.703456 |
2adc0ea6b9bb37fa43a06659d0619937d02a6131 | 3,097 | py | Python | tools/view_control_loop.py | gbalke/bldc-controller | 99e4e71d5bdc0c7c7901d886aa7709c66db8b718 | [
"MIT"
] | null | null | null | tools/view_control_loop.py | gbalke/bldc-controller | 99e4e71d5bdc0c7c7901d886aa7709c66db8b718 | [
"MIT"
] | null | null | null | tools/view_control_loop.py | gbalke/bldc-controller | 99e4e71d5bdc0c7c7901d886aa7709c66db8b718 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
from __future__ import print_function
import sys
import serial
import time
from math import sin, cos, pi
import argparse
import ast
from comms import *
from boards import *
from livegraph import livegraph
if __name__ == '__main__':
parser = argparse.ArgumentParser(description='Drive motor m... | 40.75 | 153 | 0.572167 |
2add0268352da063cc8ff52c49d8f25e54f7941d | 1,889 | py | Python | pylot/planning/messages.py | fangedward/pylot | a742b3789ee8e7fa2d692ae22bda1e2960ed9345 | [
"Apache-2.0"
] | null | null | null | pylot/planning/messages.py | fangedward/pylot | a742b3789ee8e7fa2d692ae22bda1e2960ed9345 | [
"Apache-2.0"
] | null | null | null | pylot/planning/messages.py | fangedward/pylot | a742b3789ee8e7fa2d692ae22bda1e2960ed9345 | [
"Apache-2.0"
] | null | null | null | import erdos
| 38.55102 | 79 | 0.640021 |
2add26f359559b67a49ef36a3a8133c20b0cdcba | 1,959 | py | Python | Intro/3_Smooth_Sailing/10_commonCharacterCount.py | RylandGomez/CS-Arcade | 086afa37fdba5bb2ca21fd93ed616bb5aca09d5d | [
"MIT"
] | null | null | null | Intro/3_Smooth_Sailing/10_commonCharacterCount.py | RylandGomez/CS-Arcade | 086afa37fdba5bb2ca21fd93ed616bb5aca09d5d | [
"MIT"
] | null | null | null | Intro/3_Smooth_Sailing/10_commonCharacterCount.py | RylandGomez/CS-Arcade | 086afa37fdba5bb2ca21fd93ed616bb5aca09d5d | [
"MIT"
] | null | null | null | def solution(s1, s2):
'''
EXPLANATION
-------------------------------------------------------------------
I approached this problem by creating two dictionaries, one for
each string. These dictionaries are formatted with characters as
keys, and counts as values. I then iterate over each string,
... | 37.673077 | 71 | 0.552833 |
2add4f7159e9dd3d9ad91008943b222b20c46420 | 295 | py | Python | semlabs/iteralg/sem1.py | Revengerzz/Labs | 07eb514962e203ce5af8e8604ea92cf91fc8f3c4 | [
"MIT"
] | null | null | null | semlabs/iteralg/sem1.py | Revengerzz/Labs | 07eb514962e203ce5af8e8604ea92cf91fc8f3c4 | [
"MIT"
] | null | null | null | semlabs/iteralg/sem1.py | Revengerzz/Labs | 07eb514962e203ce5af8e8604ea92cf91fc8f3c4 | [
"MIT"
] | null | null | null | a = float(input(' : '))
print(' ' + str(a) + ' ' + str(koren(a)))
| 21.071429 | 63 | 0.488136 |
2addab6e6db1d5d6df636a69706b6de36199b161 | 2,350 | py | Python | dataset_tools/dataset_case/base_case.py | jprashant21/ElNeuKGQA | ebafa0a3d3e779e487a665fabc4f9ed50f21f134 | [
"MIT"
] | null | null | null | dataset_tools/dataset_case/base_case.py | jprashant21/ElNeuKGQA | ebafa0a3d3e779e487a665fabc4f9ed50f21f134 | [
"MIT"
] | null | null | null | dataset_tools/dataset_case/base_case.py | jprashant21/ElNeuKGQA | ebafa0a3d3e779e487a665fabc4f9ed50f21f134 | [
"MIT"
] | null | null | null | from typing import Optional
| 25.543478 | 91 | 0.628085 |
2ae05deb85d181924e6db8964898b466526392a4 | 2,151 | py | Python | 06.8_bst_spiral.py | EashanKaushik/Data-Structures | e5bd391e029cb47e650d5665647ff57590b9b343 | [
"MIT"
] | null | null | null | 06.8_bst_spiral.py | EashanKaushik/Data-Structures | e5bd391e029cb47e650d5665647ff57590b9b343 | [
"MIT"
] | null | null | null | 06.8_bst_spiral.py | EashanKaushik/Data-Structures | e5bd391e029cb47e650d5665647ff57590b9b343 | [
"MIT"
] | null | null | null |
if __name__ == '__main__':
tree = Node(1)
tree.left = Node(2)
tree.right = Node(3)
tree.left.left = Node(4)
tree.left.right = Node(5)
tree.right.right = Node(7)
tree.right.left = Node(18)
tree.right.right.right = Node(8)
tree.left.right.left = Node(17)
tree.left.right.right = ... | 20.682692 | 54 | 0.572292 |
2ae0a2bc2853c1126fffc979b1b96432d2186477 | 4,531 | py | Python | app/run.py | Jaghwani/Disaster-Response-Pipeline | 869ff0d150d9b247a6098cf384eff60ccb0f0344 | [
"FTL",
"CNRI-Python",
"blessing"
] | null | null | null | app/run.py | Jaghwani/Disaster-Response-Pipeline | 869ff0d150d9b247a6098cf384eff60ccb0f0344 | [
"FTL",
"CNRI-Python",
"blessing"
] | null | null | null | app/run.py | Jaghwani/Disaster-Response-Pipeline | 869ff0d150d9b247a6098cf384eff60ccb0f0344 | [
"FTL",
"CNRI-Python",
"blessing"
] | null | null | null | import json
import plotly
import pandas as pd
from nltk.stem import WordNetLemmatizer
from nltk.tokenize import word_tokenize
from flask import Flask
from flask import render_template, request, jsonify
from plotly.graph_objs import Bar
from sklearn.externals import joblib
from sqlalchemy import create_engine
app = ... | 28.859873 | 82 | 0.573383 |
2ae152f052fcede641510f72585c3855762a8eb7 | 119 | py | Python | workflow/scripts/data/__init__.py | percyfal/wg-genealogy-smk | f9ed6e5876ca20c6693625237e57b22acd3f4cee | [
"MIT"
] | 1 | 2022-03-21T17:43:08.000Z | 2022-03-21T17:43:08.000Z | workflow/scripts/data/__init__.py | percyfal/wg-genealogy-smk | f9ed6e5876ca20c6693625237e57b22acd3f4cee | [
"MIT"
] | null | null | null | workflow/scripts/data/__init__.py | percyfal/wg-genealogy-smk | f9ed6e5876ca20c6693625237e57b22acd3f4cee | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
__all__ = ("natural_earth",)
from .natural_earth import natural_earth
| 17 | 40 | 0.689076 |
2ae1ab750c7d91fe0b34736e84b79b4270ed4fbb | 355 | py | Python | 1_mundo_exercicios/ex012.py | GuilhermeLima182/CursoDePython | 7e72b117142794c38cbb14284d0fa6e1dbee5bf6 | [
"MIT"
] | null | null | null | 1_mundo_exercicios/ex012.py | GuilhermeLima182/CursoDePython | 7e72b117142794c38cbb14284d0fa6e1dbee5bf6 | [
"MIT"
] | null | null | null | 1_mundo_exercicios/ex012.py | GuilhermeLima182/CursoDePython | 7e72b117142794c38cbb14284d0fa6e1dbee5bf6 | [
"MIT"
] | null | null | null | #Faa um programa que pergunte ao usuario o valor do produto,
#e mostre o valor final com 5% de desconto.
valorProduto = float(input('Qual o valor do produto? R$ '))
desconto = (valorProduto * 5) / 100
vFinal = valorProduto - desconto
print('O valor do produto R${}'.format(valorProduto))
print('O novo valor com o des... | 39.444444 | 62 | 0.721127 |
2ae22ebc1ff5af7ea983e4b1cf1879b8fdb9382c | 9,880 | py | Python | python/plot_meridional_avg_multiple_fields_climo.py | E3SM-Project/a-prime | a8c084ab6f727904a2b38d8a93b9c83e2f978e3f | [
"BSD-3-Clause"
] | 1 | 2017-06-07T13:13:32.000Z | 2017-06-07T13:13:32.000Z | python/plot_meridional_avg_multiple_fields_climo.py | ACME-Climate/a-prime | a8c084ab6f727904a2b38d8a93b9c83e2f978e3f | [
"BSD-3-Clause"
] | 31 | 2017-06-07T00:26:58.000Z | 2018-04-09T17:03:15.000Z | python/plot_meridional_avg_multiple_fields_climo.py | ACME-Climate/a-prime | a8c084ab6f727904a2b38d8a93b9c83e2f978e3f | [
"BSD-3-Clause"
] | 1 | 2018-08-05T23:43:59.000Z | 2018-08-05T23:43:59.000Z | #
# Copyright (c) 2017, UT-BATTELLE, LLC
# All rights reserved.
#
# This software is released under the BSD license detailed
# in the LICENSE file in the top level a-prime directory
#
###Work in Progress: Plot meridional averages for different fields in the same plot.
###07/03/2017
import matplotlib as mpl
#changing t... | 37.003745 | 119 | 0.566093 |
2ae2318f1e53b32601c5c8db2c16277213b2f472 | 1,670 | py | Python | sample/sample.py | dogwood008/python-kabusapi | 7e7a5ac232e037c651b5447b408d8b0b6727c9b0 | [
"MIT"
] | 11 | 2020-10-02T04:27:50.000Z | 2022-01-05T03:41:03.000Z | sample/sample.py | dogwood008/python-kabusapi | 7e7a5ac232e037c651b5447b408d8b0b6727c9b0 | [
"MIT"
] | 1 | 2020-12-15T03:52:45.000Z | 2020-12-15T23:28:04.000Z | sample/sample.py | dogwood008/python-kabusapi | 7e7a5ac232e037c651b5447b408d8b0b6727c9b0 | [
"MIT"
] | 5 | 2021-02-21T16:25:50.000Z | 2022-02-15T08:11:43.000Z | import kabusapi
url = "localhost"
port = "18081" # , 18080
password = "hogehoge"
#
api = kabusapi.Context(url, port, password)
#
print(api.token)
#
api = kabusapi.Context(url, port, token='fugafuga')
# ()
data = {
"Password": "hoge",
"Symbol": 8306, # MUFG
"Exchange": 1,
"SecurityType": 1,
... | 14.396552 | 51 | 0.575449 |
2ae48ee7262087d6a799cdd263fa2699c0692509 | 2,766 | py | Python | tests/runtime/doubling_vector.py | yangdanny97/chocopy-python-compiler | 588cba0cb330bd63f00e06420a32ba47c25c4468 | [
"MIT"
] | 7 | 2021-08-28T18:20:45.000Z | 2022-02-01T07:35:59.000Z | tests/runtime/doubling_vector.py | yangdanny97/chocopy-python-compiler | 588cba0cb330bd63f00e06420a32ba47c25c4468 | [
"MIT"
] | 1 | 2020-05-30T17:57:11.000Z | 2020-05-30T20:44:53.000Z | tests/runtime/doubling_vector.py | yangdanny97/chocopy-python-frontend | d0fb63fc744771640fa4d06076743f42089899c1 | [
"MIT"
] | 2 | 2022-02-05T06:16:16.000Z | 2022-02-24T11:07:09.000Z | # A resizable list of integers
# A faster (but more memory-consuming) implementation of vector
def vrange(i:int, j:int) -> Vector:
v:Vector = None
v = DoublingVector()
while i < j:
v.append(i)
i = i + 1
return v
vec:Vector = None
num:int = 0
# Create a vector and populate... | 24.696429 | 63 | 0.629067 |
2ae50d70a3a83bb9efe62ed2d9ccae0243224d10 | 2,330 | py | Python | refinery/units/blockwise/map.py | bronxc/refinery | 9448facf48a0008f27861dd1a5ee8f5218e6bb86 | [
"BSD-3-Clause"
] | null | null | null | refinery/units/blockwise/map.py | bronxc/refinery | 9448facf48a0008f27861dd1a5ee8f5218e6bb86 | [
"BSD-3-Clause"
] | null | null | null | refinery/units/blockwise/map.py | bronxc/refinery | 9448facf48a0008f27861dd1a5ee8f5218e6bb86 | [
"BSD-3-Clause"
] | null | null | null | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
from typing import Dict, Optional, Sequence
from refinery.units.blockwise import Arg, BlockTransformation
from refinery.lib.tools import isbuffer
| 40.172414 | 99 | 0.621459 |
2ae5dfb215b19942bd9a30e35a3057db94d2a78f | 299 | py | Python | Python-codes-CeV/51-Arithmetic_P.py | engcristian/Python | 726a53e9499fd5d0594572298e59e318f98e2d36 | [
"MIT"
] | 1 | 2021-02-22T03:53:23.000Z | 2021-02-22T03:53:23.000Z | Python-codes-CeV/51-Arithmetic_P.py | engcristian/Python | 726a53e9499fd5d0594572298e59e318f98e2d36 | [
"MIT"
] | null | null | null | Python-codes-CeV/51-Arithmetic_P.py | engcristian/Python | 726a53e9499fd5d0594572298e59e318f98e2d36 | [
"MIT"
] | null | null | null | '''
Arithmetic progression with 10 elements.
'''
first_term = int(input('Type the first term of this A.P: '))
reason = int(input('Type the reason of this A.P: '))
last_term = first_term + (50-1)*reason # A.P formula
for c in range (first_term, last_term + reason , reason):
print(c, end=' ')
| 29.9 | 60 | 0.668896 |
2ae6050a70fc0ee48b50e9bc45933afac8b8ea4a | 11,360 | py | Python | src/cascade_at/executor/dismod_db.py | ihmeuw/cascade-at | a5b1b5da1698163fd3bbafc6288968dd9c398096 | [
"MIT"
] | 1 | 2019-10-14T23:18:04.000Z | 2019-10-14T23:18:04.000Z | src/cascade_at/executor/dismod_db.py | ihmeuw/cascade | a5b1b5da1698163fd3bbafc6288968dd9c398096 | [
"MIT"
] | 35 | 2018-07-17T18:37:33.000Z | 2020-03-06T13:31:35.000Z | src/cascade_at/executor/dismod_db.py | ihmeuw/cascade | a5b1b5da1698163fd3bbafc6288968dd9c398096 | [
"MIT"
] | 4 | 2018-07-13T00:01:35.000Z | 2019-09-02T23:56:11.000Z | #!/usr/bin/env python
import logging
import sys
from pathlib import Path
from typing import Union, List, Dict, Any, Optional, Tuple
import os
import numpy as np
import pandas as pd
from cascade_at.core import CascadeATError
from cascade_at.context.model_context import Context
from cascade_at.core.log import get_logger... | 39.72028 | 106 | 0.678609 |
2ae6eff3bd8be08beceb2b936760471cfdb63209 | 414 | py | Python | astropy/config/__init__.py | xiaomi1122/astropy | 8876e902f5efa02a3fc27d82fe15c16001d4df5e | [
"BSD-3-Clause"
] | null | null | null | astropy/config/__init__.py | xiaomi1122/astropy | 8876e902f5efa02a3fc27d82fe15c16001d4df5e | [
"BSD-3-Clause"
] | null | null | null | astropy/config/__init__.py | xiaomi1122/astropy | 8876e902f5efa02a3fc27d82fe15c16001d4df5e | [
"BSD-3-Clause"
] | null | null | null | # Licensed under a 3-clause BSD style license - see LICENSE.rst
"""
This module contains configuration and setup utilities for the
`astropy` project. This includes all functionality related to the
affiliated package index.
"""
from __future__ import (absolute_import, division, print_function,
u... | 29.571429 | 66 | 0.748792 |
2aea2e195f4a15fce6635cf3266266d6afd53722 | 1,047 | py | Python | ABC169/F.py | shimomura314/AtcoderCodes | db1d62a7715f5f1b3c40eceff8d34f0f34839f41 | [
"MIT"
] | null | null | null | ABC169/F.py | shimomura314/AtcoderCodes | db1d62a7715f5f1b3c40eceff8d34f0f34839f41 | [
"MIT"
] | null | null | null | ABC169/F.py | shimomura314/AtcoderCodes | db1d62a7715f5f1b3c40eceff8d34f0f34839f41 | [
"MIT"
] | null | null | null | import sys
from collections import defaultdict
input = sys.stdin.readline
mod = 998244353
if __name__ == "__main__":
main() | 21.8125 | 54 | 0.424069 |
2aecb72c40fb43c9fc2cbc47d687dce7b40d1d6a | 1,363 | py | Python | ferry/nlp/fetch/fetch_evals.py | coursetable/ferry | f369b9588557c359af8589f2575a03493d6b08b6 | [
"MIT"
] | 4 | 2020-11-12T19:37:06.000Z | 2021-12-14T01:38:39.000Z | ferry/nlp/fetch/fetch_evals.py | coursetable/ferry | f369b9588557c359af8589f2575a03493d6b08b6 | [
"MIT"
] | 96 | 2020-09-08T05:17:17.000Z | 2022-03-31T23:12:51.000Z | ferry/nlp/fetch/fetch_evals.py | coursetable/ferry | f369b9588557c359af8589f2575a03493d6b08b6 | [
"MIT"
] | 2 | 2021-03-03T23:02:40.000Z | 2021-06-17T23:33:05.000Z | # pylint: skip-file
import json
import requests
url = "http://localhost:8085/v1/graphql"
for year in range(2009, 2021):
print(year)
for term in range(1, 4):
fetch_evals(str(year) + "0" + str(term), True)
| 26.211538 | 76 | 0.487894 |
2aece40023ab19be0d9af7b42aedee10e53c55c8 | 1,375 | py | Python | spec/person.py | ace6807/spec-data-validation-pattern | 57c7a757035f16ffa999244175814db0ec3964d9 | [
"MIT"
] | 1 | 2021-07-27T00:55:08.000Z | 2021-07-27T00:55:08.000Z | spec/person.py | ace6807/spec-data-validation-pattern | 57c7a757035f16ffa999244175814db0ec3964d9 | [
"MIT"
] | null | null | null | spec/person.py | ace6807/spec-data-validation-pattern | 57c7a757035f16ffa999244175814db0ec3964d9 | [
"MIT"
] | null | null | null | from dataclasses import dataclass
from . import Spec
from dto.person import PersonDTO
| 22.916667 | 66 | 0.674909 |
2aed7fe6b7fb1f101fb3fe39a4efc26c3e607f45 | 629 | py | Python | src/wattbike_importer.py | sdresearch/what-watt1 | d8765007bf36a1770d8ca390f8bdcf790dc0f9d5 | [
"MIT"
] | null | null | null | src/wattbike_importer.py | sdresearch/what-watt1 | d8765007bf36a1770d8ca390f8bdcf790dc0f9d5 | [
"MIT"
] | null | null | null | src/wattbike_importer.py | sdresearch/what-watt1 | d8765007bf36a1770d8ca390f8bdcf790dc0f9d5 | [
"MIT"
] | null | null | null | import requests
HUB_LOCATION = 'http://hub.wattbike.com/ranking/getSessionRows?sessionId='
| 27.347826 | 74 | 0.693164 |
2aef266ecab631d6845cc494ea93892db8e19c6c | 1,436 | py | Python | main/views.py | ericrobskyhuntley/vialab.mit.edu | 1318d03b8eeb106c1662052e1caa53290e206ae7 | [
"MIT"
] | null | null | null | main/views.py | ericrobskyhuntley/vialab.mit.edu | 1318d03b8eeb106c1662052e1caa53290e206ae7 | [
"MIT"
] | null | null | null | main/views.py | ericrobskyhuntley/vialab.mit.edu | 1318d03b8eeb106c1662052e1caa53290e206ae7 | [
"MIT"
] | null | null | null | from django.shortcuts import get_object_or_404, render
from django.http import Http404
from .models import MainMetadata
from cal.models import Event
from classes.models import ClassInstance
from cal.models import Event
from datetime import date, timedelta
# Create your views here. | 27.615385 | 60 | 0.647632 |
2af0b1d1c701ad3d57e0a7212ef9b12e29d346a9 | 1,761 | py | Python | backend/generate-events.py | daveygit2050/kow-london.co.uk | 1a4321fec1adb42e08b138ee2324e9ce47e89fa5 | [
"MIT"
] | null | null | null | backend/generate-events.py | daveygit2050/kow-london.co.uk | 1a4321fec1adb42e08b138ee2324e9ce47e89fa5 | [
"MIT"
] | null | null | null | backend/generate-events.py | daveygit2050/kow-london.co.uk | 1a4321fec1adb42e08b138ee2324e9ce47e89fa5 | [
"MIT"
] | null | null | null | import json
import requests
import tenacity
from bs4 import BeautifulSoup
from geopy.geocoders import Nominatim
from urllib.parse import parse_qs
from urllib.parse import urlparse
if __name__ == "__main__":
main()
| 45.153846 | 133 | 0.724588 |
2af0d2b145267e888538a0d91226a3622e846c24 | 3,591 | py | Python | src/oci/autoscaling/models/cron_execution_schedule.py | Manny27nyc/oci-python-sdk | de60b04e07a99826254f7255e992f41772902df7 | [
"Apache-2.0",
"BSD-3-Clause"
] | 249 | 2017-09-11T22:06:05.000Z | 2022-03-04T17:09:29.000Z | src/oci/autoscaling/models/cron_execution_schedule.py | Manny27nyc/oci-python-sdk | de60b04e07a99826254f7255e992f41772902df7 | [
"Apache-2.0",
"BSD-3-Clause"
] | 228 | 2017-09-11T23:07:26.000Z | 2022-03-23T10:58:50.000Z | src/oci/autoscaling/models/cron_execution_schedule.py | Manny27nyc/oci-python-sdk | de60b04e07a99826254f7255e992f41772902df7 | [
"Apache-2.0",
"BSD-3-Clause"
] | 224 | 2017-09-27T07:32:43.000Z | 2022-03-25T16:55:42.000Z | # coding: utf-8
# Copyright (c) 2016, 2021, Oracle and/or its affiliates. All rights reserved.
# This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may c... | 34.528846 | 245 | 0.654971 |
2af11eb0b42cbfb5a1efbef4325e698fa799a2e8 | 5,631 | py | Python | roadmap_planner_tools/scripts/pi_manager_example.py | JKBehrens/STAAMS-Solver | b6837da69cda574d081ab3dc0b307e3ce40ad6f2 | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 16 | 2018-12-11T13:02:58.000Z | 2022-02-28T09:05:20.000Z | roadmap_planner_tools/scripts/pi_manager_example.py | stepakar/STAAMS-Solver | b6837da69cda574d081ab3dc0b307e3ce40ad6f2 | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 2 | 2019-11-04T13:16:49.000Z | 2022-02-28T09:17:30.000Z | roadmap_planner_tools/scripts/pi_manager_example.py | stepakar/STAAMS-Solver | b6837da69cda574d081ab3dc0b307e3ce40ad6f2 | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 4 | 2019-02-12T12:41:25.000Z | 2022-02-09T12:55:56.000Z | #!/usr/bin/env python
"""
Copyright (c) 2018 Robert Bosch GmbH
All rights reserved.
This source code is licensed under the BSD-3-Clause license found in the
LICENSE file in the root directory of this source tree.
@author: Jan Behrens
"""
from geometry_msgs.msg import TransformStamped
from roadmap_planner_tools.plann... | 69.518519 | 402 | 0.679098 |
2af153b0166a388f1cbc766d5de69bb0d457571e | 415 | py | Python | Trie/PrintUniqueRows.py | kopok2/DataStructures | d3877b542872c0be0f97306061c6ce0c3d98f1f3 | [
"MIT"
] | null | null | null | Trie/PrintUniqueRows.py | kopok2/DataStructures | d3877b542872c0be0f97306061c6ce0c3d98f1f3 | [
"MIT"
] | null | null | null | Trie/PrintUniqueRows.py | kopok2/DataStructures | d3877b542872c0be0f97306061c6ce0c3d98f1f3 | [
"MIT"
] | null | null | null | # coding=utf-8
"""Print unique rows in table.
Trie data structure Python solution.
"""
from Trie import Trie
if __name__ == "__main__":
table = [
"semir",
"dahak",
"semir",
"semiriana",
"sem"
]
print_unique(table)
| 15.37037 | 36 | 0.53253 |
2af450314f09ee3a74127b6e73b3040d23c048eb | 2,179 | py | Python | telemetry_client_bgp_sessions.py | akshshar/bigmuddy-network-telemetry-proto | 26ea64cf9910e41c62270fea3b0aa318dd1a51db | [
"Apache-2.0"
] | null | null | null | telemetry_client_bgp_sessions.py | akshshar/bigmuddy-network-telemetry-proto | 26ea64cf9910e41c62270fea3b0aa318dd1a51db | [
"Apache-2.0"
] | null | null | null | telemetry_client_bgp_sessions.py | akshshar/bigmuddy-network-telemetry-proto | 26ea64cf9910e41c62270fea3b0aa318dd1a51db | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
# Standard python libs
import os,sys
sys.path.append("./src/genpy")
import ast, pprint
import pdb
import yaml, json
import telemetry_pb2
from mdt_grpc_dialin import mdt_grpc_dialin_pb2
from mdt_grpc_dialin import mdt_grpc_dialin_pb2_grpc
import json_format
import grpc
#
# Get the GRPC Server ... | 30.263889 | 93 | 0.671409 |
2af5ae6a3bb26a288651a381ee3ed2c4e61944eb | 436 | py | Python | Python3-functions/define_custom_exception_class.py | ipetel/code-snippets | e05bb8ef1f5d213aadba501d80b310507a1af117 | [
"MIT"
] | 1 | 2020-08-07T14:57:28.000Z | 2020-08-07T14:57:28.000Z | Python3-functions/define_custom_exception_class.py | ipetel/code-snippets | e05bb8ef1f5d213aadba501d80b310507a1af117 | [
"MIT"
] | null | null | null | Python3-functions/define_custom_exception_class.py | ipetel/code-snippets | e05bb8ef1f5d213aadba501d80b310507a1af117 | [
"MIT"
] | 1 | 2020-12-12T08:29:56.000Z | 2020-12-12T08:29:56.000Z | '''
This code is a simple example how to define custom exception class in Python
'''
# custom exception class
# use it whenever you need in your code as follows:
try:
...
<some code>
...
except Exception as e:
print(f'### [ERROR] - {e}')
raise CustomError('some error message')
| 21.8 | 76 | 0.651376 |
2af5cd50987e2a9a3ac9fee4d70fb52d6229fe2e | 545 | py | Python | 2020/3a.py | combatopera/advent2020 | 6fa54e91ef1a5443dff36c15e65892701293201f | [
"Unlicense"
] | 2 | 2021-12-04T00:02:12.000Z | 2021-12-11T05:38:45.000Z | 2020/3a.py | combatopera/advent2020 | 6fa54e91ef1a5443dff36c15e65892701293201f | [
"Unlicense"
] | null | null | null | 2020/3a.py | combatopera/advent2020 | 6fa54e91ef1a5443dff36c15e65892701293201f | [
"Unlicense"
] | 1 | 2020-12-20T18:50:54.000Z | 2020-12-20T18:50:54.000Z | #!/usr/bin/env python3
from pathlib import Path
slope = 3, 1
if '__main__' == __name__:
main()
| 18.166667 | 56 | 0.500917 |
2af5d8780b22b10bebb1c9796affe8bcbb118caa | 2,092 | py | Python | src/dataProcessing.py | KJithendra/SCALE-Sim | 5df467916306d536bb4f244cf5d4b4f1aaeb89da | [
"MIT"
] | null | null | null | src/dataProcessing.py | KJithendra/SCALE-Sim | 5df467916306d536bb4f244cf5d4b4f1aaeb89da | [
"MIT"
] | null | null | null | src/dataProcessing.py | KJithendra/SCALE-Sim | 5df467916306d536bb4f244cf5d4b4f1aaeb89da | [
"MIT"
] | null | null | null | import numpy as np
import csv
import matplotlib.pyplot as pyplot
from gBarGraph import *
# Conditional Debugging
debug = False
# Inputs
scaleFac = 10**6 # scaling factor
adList = [[128,128], [64,64], [32,32], [16,16], [8,8]] #list of systolic array dimensions
dfList = ["os", "ws", "is"]
nnList = ["AlphaGoZero", "De... | 36.068966 | 137 | 0.714149 |
2af67edc0d8f4da4a1404fc6cd17e17df40ffa60 | 374 | py | Python | src/cn_query/juhe/exceptions.py | winkidney/juhe-sdk | dc92d7421f54b5858c90b32f75297a76e3ecbac5 | [
"MIT"
] | null | null | null | src/cn_query/juhe/exceptions.py | winkidney/juhe-sdk | dc92d7421f54b5858c90b32f75297a76e3ecbac5 | [
"MIT"
] | null | null | null | src/cn_query/juhe/exceptions.py | winkidney/juhe-sdk | dc92d7421f54b5858c90b32f75297a76e3ecbac5 | [
"MIT"
] | null | null | null | from functools import wraps
DEFAULT_CODE = -1
| 17 | 42 | 0.644385 |
2af84b6eb941a6c622177f8b9fa1555a747d75f3 | 2,446 | py | Python | keyboard.py | misterpah/ldtp_adapter | df9cd0186cf51174ea131943f8547a9df079035b | [
"MIT"
] | null | null | null | keyboard.py | misterpah/ldtp_adapter | df9cd0186cf51174ea131943f8547a9df079035b | [
"MIT"
] | null | null | null | keyboard.py | misterpah/ldtp_adapter | df9cd0186cf51174ea131943f8547a9df079035b | [
"MIT"
] | null | null | null | import re
| 27.177778 | 68 | 0.539248 |
2af8911dc224e8f8cbf833e0f7f9e9880ddb3eab | 3,095 | py | Python | dags/crawl.py | a07458666/StockCrawlerSendSlack | 97c4ea3817b81d9acb9216d4a0745fe914f7c8f8 | [
"MIT"
] | null | null | null | dags/crawl.py | a07458666/StockCrawlerSendSlack | 97c4ea3817b81d9acb9216d4a0745fe914f7c8f8 | [
"MIT"
] | null | null | null | dags/crawl.py | a07458666/StockCrawlerSendSlack | 97c4ea3817b81d9acb9216d4a0745fe914f7c8f8 | [
"MIT"
] | null | null | null | #!/usr/bin/python
# -*- coding: utf-8 -*-
import os
import json
import csv
import time
from datetime import date
import requests
def RunCrawl():
print('os.path ', os.getcwd())
targets = [_.strip() for _ in open('stocknumber.csv', 'r')]
controller = CrawlerController(targets)
data = c... | 32.578947 | 82 | 0.515347 |
2afc65a9a228fad0a34b4258aaae1e52ee00b1c9 | 694 | py | Python | supplier_testing/case_05.py | openhealthcare/python-fp17 | 61a665d90b04dc5e94d433dc7fbb16b901c70e7b | [
"BSD-3-Clause"
] | 1 | 2021-02-23T05:48:01.000Z | 2021-02-23T05:48:01.000Z | supplier_testing/case_05.py | openhealthcare/python-fp17 | 61a665d90b04dc5e94d433dc7fbb16b901c70e7b | [
"BSD-3-Clause"
] | 9 | 2018-03-20T15:53:44.000Z | 2018-07-09T10:56:18.000Z | supplier_testing/case_05.py | openhealthcare/python-fp17 | 61a665d90b04dc5e94d433dc7fbb16b901c70e7b | [
"BSD-3-Clause"
] | 2 | 2018-03-22T14:24:41.000Z | 2021-02-23T05:48:02.000Z | import datetime
from fp17 import treatments
| 26.692308 | 61 | 0.707493 |
2aff67cda8054946e671fab749f72b00c6c27c7f | 1,643 | py | Python | mipkit/faces/helpers.py | congvmit/mipkit | d65a5083852dcfc5db766175aa402a5e3a506f21 | [
"MIT"
] | 8 | 2021-06-17T08:13:51.000Z | 2022-02-21T13:31:18.000Z | mipkit/faces/helpers.py | congvmit/mipkit | d65a5083852dcfc5db766175aa402a5e3a506f21 | [
"MIT"
] | null | null | null | mipkit/faces/helpers.py | congvmit/mipkit | d65a5083852dcfc5db766175aa402a5e3a506f21 | [
"MIT"
] | null | null | null | """
The MIT License (MIT)
Copyright (c) 2021 Cong Vo
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge... | 36.511111 | 78 | 0.720024 |
63015142c904ffc67f23900b60665809596a39ad | 465 | py | Python | src/fizz_buzz.py | rckt-cmdr/fizz-buzz | e1ecc9be7a9f1c3067622eba5cc7e35340bef983 | [
"MIT"
] | null | null | null | src/fizz_buzz.py | rckt-cmdr/fizz-buzz | e1ecc9be7a9f1c3067622eba5cc7e35340bef983 | [
"MIT"
] | null | null | null | src/fizz_buzz.py | rckt-cmdr/fizz-buzz | e1ecc9be7a9f1c3067622eba5cc7e35340bef983 | [
"MIT"
] | null | null | null | #!/usr/bin/python3
# File: fizz_buzz.py
# Author: Jonathan Belden
# Description: Fizz-Buzz Coding Challenge
# Reference: https://edabit.com/challenge/WXqH9qvvGkmx4dMvp
| 22.142857 | 59 | 0.627957 |
6301f8566c81a5574264ed3398aba56307ac1ece | 213 | py | Python | Ex.27-Numpy.py | aguinaldolorandi/100-exercicios-Numpy | 276c721bd8b161153223b353168a1c15936edbd1 | [
"MIT"
] | null | null | null | Ex.27-Numpy.py | aguinaldolorandi/100-exercicios-Numpy | 276c721bd8b161153223b353168a1c15936edbd1 | [
"MIT"
] | null | null | null | Ex.27-Numpy.py | aguinaldolorandi/100-exercicios-Numpy | 276c721bd8b161153223b353168a1c15936edbd1 | [
"MIT"
] | null | null | null | # Exerccios Numpy-27
# *******************
import numpy as np
Z=np.arange((10),dtype=int)
print(Z**Z)
print(Z)
print(2<<Z>>2)
print()
print(Z <- Z)
print()
print(1j*Z)
print()
print(Z/1/1)
print()
#print(Z<Z>Z) | 12.529412 | 27 | 0.577465 |
630383ff02afa466d04f39beea1550433314bef9 | 234 | py | Python | project_opensource/nanodet-2020_11_27/nanodet-main/nanodet/data/dataset/__init__.py | yunshangyue71/mycodes | 54b876004c32d38d9c0363fd292d745fee8dff3c | [
"Apache-2.0"
] | null | null | null | project_opensource/nanodet-2020_11_27/nanodet-main/nanodet/data/dataset/__init__.py | yunshangyue71/mycodes | 54b876004c32d38d9c0363fd292d745fee8dff3c | [
"Apache-2.0"
] | null | null | null | project_opensource/nanodet-2020_11_27/nanodet-main/nanodet/data/dataset/__init__.py | yunshangyue71/mycodes | 54b876004c32d38d9c0363fd292d745fee8dff3c | [
"Apache-2.0"
] | null | null | null | import copy
from .coco import CocoDataset
| 23.4 | 52 | 0.679487 |
6304f6f1ec92ec4d1702c41e4ebb9a78aa978644 | 5,387 | py | Python | straintables/Executable/GenomePipeline.py | Gab0/linkageMapper | 549b292e5b6ab22e03373483cd27236aa2f635eb | [
"MIT"
] | null | null | null | straintables/Executable/GenomePipeline.py | Gab0/linkageMapper | 549b292e5b6ab22e03373483cd27236aa2f635eb | [
"MIT"
] | 1 | 2020-05-03T15:13:07.000Z | 2020-05-04T03:01:59.000Z | straintables/Executable/GenomePipeline.py | Gab0/straintables | 549b292e5b6ab22e03373483cd27236aa2f635eb | [
"MIT"
] | null | null | null | #!/bin/python
"""
straintables' main pipeline script;
"""
import os
import argparse
import shutil
import straintables
import subprocess
from Bio.Align.Applications import ClustalOmegaCommandline
from straintables.logo import logo
from straintables.Executable import primerFinder, detectMutations,\
compareHea... | 25.29108 | 75 | 0.656952 |
6306e2b42d2b769e50bc98e817a532f98f68ffd4 | 1,881 | py | Python | venv/lib/python3.8/site-packages/vsts/test/v4_1/models/test_failures_analysis.py | amcclead7336/Enterprise_Data_Science_Final | ccdc0aa08d4726bf82d71c11a1cc0c63eb301a28 | [
"Unlicense",
"MIT"
] | null | null | null | venv/lib/python3.8/site-packages/vsts/test/v4_1/models/test_failures_analysis.py | amcclead7336/Enterprise_Data_Science_Final | ccdc0aa08d4726bf82d71c11a1cc0c63eb301a28 | [
"Unlicense",
"MIT"
] | null | null | null | venv/lib/python3.8/site-packages/vsts/test/v4_1/models/test_failures_analysis.py | amcclead7336/Enterprise_Data_Science_Final | ccdc0aa08d4726bf82d71c11a1cc0c63eb301a28 | [
"Unlicense",
"MIT"
] | 2 | 2021-05-23T16:46:31.000Z | 2021-05-26T23:51:09.000Z | # --------------------------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# -----------------------------------------------------------------... | 49.5 | 108 | 0.604997 |
6308a827909b901b26c90ab14b8e55036177fe0f | 1,634 | py | Python | health.py | adil-zhang/healthy_auto | ca42cafacd1d5120274048f42dc99b83b8c08970 | [
"Apache-2.0"
] | 4 | 2021-02-24T06:48:18.000Z | 2021-03-22T09:46:28.000Z | health.py | adil-zhang/healthy_auto | ca42cafacd1d5120274048f42dc99b83b8c08970 | [
"Apache-2.0"
] | null | null | null | health.py | adil-zhang/healthy_auto | ca42cafacd1d5120274048f42dc99b83b8c08970 | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
# coding=utf-8
import json
import random
import requests
import argparse
import time
# json
#
# GitHubSecurts
if __name__ == '__main__':
people = getarg()
value = getval()
head = gethead()
# (actions)
sl_s = random.randint(1, 2)
time.sleep(sl_s)
sl_m = int(s... | 28.666667 | 255 | 0.573439 |
63092478a708b5cc4e0a97fbe0778f3cdbd516d2 | 7,848 | py | Python | thirdparty/his_evaluators/his_evaluators/utils/video.py | tj-eey/impersonator | 3ed69b3db7e5369a39a9de5d97e965ed9172eff6 | [
"MIT"
] | 1,717 | 2019-09-27T00:44:11.000Z | 2022-03-29T11:38:21.000Z | thirdparty/his_evaluators/his_evaluators/utils/video.py | tj-eey/impersonator | 3ed69b3db7e5369a39a9de5d97e965ed9172eff6 | [
"MIT"
] | 81 | 2019-09-27T11:52:05.000Z | 2022-03-12T00:00:31.000Z | thirdparty/his_evaluators/his_evaluators/utils/video.py | tj-eey/impersonator | 3ed69b3db7e5369a39a9de5d97e965ed9172eff6 | [
"MIT"
] | 337 | 2019-09-27T02:46:06.000Z | 2022-03-14T22:00:02.000Z | # -*- coding: utf-8 -*-
# @Time : 2019-08-02 18:31
# @Author : Wen Liu
# @Email : liuwen@shanghaitech.edu.cn
import os
import cv2
import glob
import shutil
from multiprocessing import Pool
from concurrent.futures import ProcessPoolExecutor
from functools import partial
from tqdm import tqdm
import numpy as np
im... | 30.776471 | 119 | 0.658894 |
630b1968948a312327fd4f74f6cc73dcebabe1eb | 10,346 | py | Python | podcats/__init__.py | moritzj29/podcats | fc2bf1656eba5e6cc5062fe2b55717ef9b24dd5b | [
"BSD-3-Clause"
] | null | null | null | podcats/__init__.py | moritzj29/podcats | fc2bf1656eba5e6cc5062fe2b55717ef9b24dd5b | [
"BSD-3-Clause"
] | null | null | null | podcats/__init__.py | moritzj29/podcats | fc2bf1656eba5e6cc5062fe2b55717ef9b24dd5b | [
"BSD-3-Clause"
] | null | null | null | """
Podcats is a podcast feed generator and a server.
It generates RSS feeds for podcast episodes from local audio files and,
optionally, exposes the feed and as well as the episode file via
a built-in web server so that they can be imported into iTunes
or another podcast client.
"""
import os
import re
import time
i... | 29.988406 | 128 | 0.593853 |
630b761bbb89cc51497f1ffa2e537867746f74b6 | 3,254 | py | Python | Machine learning/ML/ARIMA/DS1_ar_model_2.py | warpalatino/public | f04ce183799bcdd2fb8dc376d41d286314c19460 | [
"MIT"
] | 1 | 2021-01-04T10:37:16.000Z | 2021-01-04T10:37:16.000Z | Machine learning/ML/ARIMA/DS1_ar_model_2.py | warpalatino/public | f04ce183799bcdd2fb8dc376d41d286314c19460 | [
"MIT"
] | null | null | null | Machine learning/ML/ARIMA/DS1_ar_model_2.py | warpalatino/public | f04ce183799bcdd2fb8dc376d41d286314c19460 | [
"MIT"
] | null | null | null | import pandas as pd
import numpy as np
import matplotlib.pyplot as plt
import statsmodels.graphics.tsaplots as sgt
from statsmodels.tsa.arima_model import ARMA
from scipy.stats.distributions import chi2
import statsmodels.tsa.stattools as sts
# ------------------------
# load data
# ----------
raw_csv_data = pd.rea... | 29.853211 | 134 | 0.690227 |
630d031d30f4b3afe57f014af81f537273595260 | 2,861 | py | Python | cytoskeleton_analyser/database/sqlite_alchemy_orm/containers/cell_elements.py | vsukhor/cytoskeleton-analyser | 681a1f6ba1381a5fb293f2310fce5e97d400cfcb | [
"BSD-3-Clause"
] | null | null | null | cytoskeleton_analyser/database/sqlite_alchemy_orm/containers/cell_elements.py | vsukhor/cytoskeleton-analyser | 681a1f6ba1381a5fb293f2310fce5e97d400cfcb | [
"BSD-3-Clause"
] | null | null | null | cytoskeleton_analyser/database/sqlite_alchemy_orm/containers/cell_elements.py | vsukhor/cytoskeleton-analyser | 681a1f6ba1381a5fb293f2310fce5e97d400cfcb | [
"BSD-3-Clause"
] | null | null | null | # Copyright (c) 2021 Valerii Sukhorukov. All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
# 1. Redistributions of source code must retain the above copyright
# notice, this list of conditions and ... | 35.320988 | 79 | 0.739602 |
630e334606bd98d4e81def6c3b2ffa679f3a7e67 | 948 | py | Python | snow/views.py | cdmaok/web-sentiment | 15fbe33327f9272035393d8c9991c06933163cc2 | [
"Apache-2.0"
] | null | null | null | snow/views.py | cdmaok/web-sentiment | 15fbe33327f9272035393d8c9991c06933163cc2 | [
"Apache-2.0"
] | null | null | null | snow/views.py | cdmaok/web-sentiment | 15fbe33327f9272035393d8c9991c06933163cc2 | [
"Apache-2.0"
] | null | null | null | from django.shortcuts import render
from django.http import HttpResponse
from django.views.decorators.csrf import csrf_exempt
import json
from snownlp import SnowNLP
# Create your views here.
| 23.7 | 62 | 0.709916 |
630eeba371e059df6ca1c18dab67c68b23c5a057 | 10,677 | py | Python | Products/CMFCore/FSPageTemplate.py | fulv/Products.CMFCore | 1d6ce101b10aaefba8aa917b6aa404e6c49e254d | [
"ZPL-2.1"
] | null | null | null | Products/CMFCore/FSPageTemplate.py | fulv/Products.CMFCore | 1d6ce101b10aaefba8aa917b6aa404e6c49e254d | [
"ZPL-2.1"
] | null | null | null | Products/CMFCore/FSPageTemplate.py | fulv/Products.CMFCore | 1d6ce101b10aaefba8aa917b6aa404e6c49e254d | [
"ZPL-2.1"
] | null | null | null | ##############################################################################
#
# Copyright (c) 2001 Zope Foundation and Contributors.
#
# This software is subject to the provisions of the Zope Public License,
# Version 2.1 (ZPL). A copy of the ZPL should accompany this distribution.
# THIS SOFTWARE IS PROVIDED "AS I... | 36.565068 | 78 | 0.60429 |
630fea4816a8abd9eaf09ba98c364ef95304a04e | 7,559 | py | Python | branches/g3d-8.0-64ffmpeg-win/bin/ice/doxygen.py | brown-ccv/VRG3D | 0854348453ac150b27a8ae89024ef57360f15d45 | [
"BSD-3-Clause"
] | null | null | null | branches/g3d-8.0-64ffmpeg-win/bin/ice/doxygen.py | brown-ccv/VRG3D | 0854348453ac150b27a8ae89024ef57360f15d45 | [
"BSD-3-Clause"
] | null | null | null | branches/g3d-8.0-64ffmpeg-win/bin/ice/doxygen.py | brown-ccv/VRG3D | 0854348453ac150b27a8ae89024ef57360f15d45 | [
"BSD-3-Clause"
] | null | null | null | # doxygen.py
#
# Doxygen Management
from utils import *
import glob
##############################################################################
# Doxygen Management #
##############################################################################
"""
Called ... | 40.207447 | 155 | 0.557878 |
631067d54a45a87c1899e57d958a0bc4823a517a | 3,074 | py | Python | models/LASSO.py | MattAHarrington/crypto-comovement | 3812f7cd5ba61e704041acc3e272840f2a5a9cc2 | [
"MIT"
] | 1 | 2021-04-15T21:40:39.000Z | 2021-04-15T21:40:39.000Z | models/LASSO.py | MattAHarrington/crypto-comovement | 3812f7cd5ba61e704041acc3e272840f2a5a9cc2 | [
"MIT"
] | null | null | null | models/LASSO.py | MattAHarrington/crypto-comovement | 3812f7cd5ba61e704041acc3e272840f2a5a9cc2 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# Standard imports
import pandas as pd
import numpy as np
# Pytorch
import torch
from torch import nn
# Using sklearn's LASSO implementation
from sklearn.linear_model import Lasso
# Local Files
from models.model_interface import CryptoModel
| 29.27619 | 96 | 0.612882 |
6310d4042eb7ef64a2b5785735563119f99531f8 | 719 | py | Python | Test_Beat_Detector.py | filipmazurek/Heart-Rate-Monitor | eef5bed63357442dde3746e0443671a947f0ec3d | [
"MIT"
] | null | null | null | Test_Beat_Detector.py | filipmazurek/Heart-Rate-Monitor | eef5bed63357442dde3746e0443671a947f0ec3d | [
"MIT"
] | null | null | null | Test_Beat_Detector.py | filipmazurek/Heart-Rate-Monitor | eef5bed63357442dde3746e0443671a947f0ec3d | [
"MIT"
] | null | null | null | from Beat_Detector import BeatDetector
from SignalChoice import *
update_time_seconds = 20
update_time_easy = 2 # means enough data for 2 seconds.
array_easy = [0, 2, 5, 10, 5, 2, 0, 2, 5, 10, 5]
| 32.681818 | 95 | 0.769124 |
6310fb525d8e21534dcc57582305f77d4f195a47 | 1,806 | py | Python | test_ocr.py | lanstonpeng/NightOwlServer | 1810c631c44d53f885e79164c48a7cca61441cce | [
"MIT"
] | null | null | null | test_ocr.py | lanstonpeng/NightOwlServer | 1810c631c44d53f885e79164c48a7cca61441cce | [
"MIT"
] | null | null | null | test_ocr.py | lanstonpeng/NightOwlServer | 1810c631c44d53f885e79164c48a7cca61441cce | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# encoding: utf-8
import urllib, urllib2
import tempfile
import base64
from PIL import Image
import os
#
API_URL = 'http://apis.baidu.com/apistore/idlocr/ocr'
API_KEY = "0c69d1b8ec1c96561cb9ca3c037d7225"
if __name__ == "__main__":
print get_image_text("http://www.liantu.com/tiaoma/eantitl... | 26.173913 | 136 | 0.692137 |
6311a426d4eeb126a9bc59367b5a6f277acb2a51 | 2,381 | py | Python | token_importance_utils.py | keyurfaldu/token_importance | 38099bcd0f145d4559075e79c8cbc2fb240a72be | [
"MIT"
] | null | null | null | token_importance_utils.py | keyurfaldu/token_importance | 38099bcd0f145d4559075e79c8cbc2fb240a72be | [
"MIT"
] | null | null | null | token_importance_utils.py | keyurfaldu/token_importance | 38099bcd0f145d4559075e79c8cbc2fb240a72be | [
"MIT"
] | 1 | 2021-01-14T07:28:33.000Z | 2021-01-14T07:28:33.000Z | import torch
| 40.355932 | 107 | 0.553129 |
6312dcb5c362d8fae0652ab1d6808d9dcaa3d504 | 3,704 | py | Python | python/2020/day11.py | SylvainDe/aoc | b8a4609327831685ef94c9960350ff7bb5ace1a5 | [
"MIT"
] | null | null | null | python/2020/day11.py | SylvainDe/aoc | b8a4609327831685ef94c9960350ff7bb5ace1a5 | [
"MIT"
] | null | null | null | python/2020/day11.py | SylvainDe/aoc | b8a4609327831685ef94c9960350ff7bb5ace1a5 | [
"MIT"
] | null | null | null | # vi: set shiftwidth=4 tabstop=4 expandtab:
import datetime
import itertools
import collections
RUN_LONG_TESTS = False
directions = [pos for pos in itertools.product((-1, 0, +1), repeat=2) if pos != (0, 0)]
if __name__ == "__main__":
RUN_LONG_TESTS = True
begin = datetime.datetime.now()
run_t... | 23.295597 | 88 | 0.584503 |
6315ca182a138a7397f2bdcc32da39042e1ae1a2 | 3,356 | py | Python | gestor_usuarios/apps/app_gestor_usuarios/forms.py | Enrialonso/LP-Manage-Contacts | fdee309442b44efee5f7aa67612738b1655197c9 | [
"Unlicense"
] | null | null | null | gestor_usuarios/apps/app_gestor_usuarios/forms.py | Enrialonso/LP-Manage-Contacts | fdee309442b44efee5f7aa67612738b1655197c9 | [
"Unlicense"
] | null | null | null | gestor_usuarios/apps/app_gestor_usuarios/forms.py | Enrialonso/LP-Manage-Contacts | fdee309442b44efee5f7aa67612738b1655197c9 | [
"Unlicense"
] | null | null | null | from django import forms
from apps.app_gestor_usuarios.models import db_usuarios, db_manage_contacts | 32.901961 | 107 | 0.502384 |
631620859e8efb33b69f79589785ecbf70b6297e | 1,613 | py | Python | service/routes/greet.py | illuscio-dev/isleservice-py | e7be171b08cf4ef43b1e569d163390d851ca8601 | [
"MIT"
] | null | null | null | service/routes/greet.py | illuscio-dev/isleservice-py | e7be171b08cf4ef43b1e569d163390d851ca8601 | [
"MIT"
] | null | null | null | service/routes/greet.py | illuscio-dev/isleservice-py | e7be171b08cf4ef43b1e569d163390d851ca8601 | [
"MIT"
] | null | null | null | from spanserver import (
SpanRoute,
Request,
Response,
MimeType,
RecordType,
DocInfo,
DocRespInfo,
)
from isleservice_objects import models, errors, schemas
from service.api import api
| 27.338983 | 82 | 0.620583 |
6317df6d3d996ef9dd1c80a21ebe80c0b3ce61e6 | 948 | py | Python | openregister/record.py | psd/openregister | 7aa831464f2917c5be7a5ae34ff4c0de96451811 | [
"MIT"
] | null | null | null | openregister/record.py | psd/openregister | 7aa831464f2917c5be7a5ae34ff4c0de96451811 | [
"MIT"
] | null | null | null | openregister/record.py | psd/openregister | 7aa831464f2917c5be7a5ae34ff4c0de96451811 | [
"MIT"
] | null | null | null | from .item import Item
from .entry import Entry
from copy import copy
| 24.947368 | 62 | 0.632911 |
63181b955335972638426181671ca5d3dffa487d | 385 | py | Python | pyexcel_matplotlib/__init__.py | pyexcel/pyexcel-matplotlib | 8771fcf3cc82164b50dc7ec0314838bf3de63e3b | [
"BSD-3-Clause"
] | null | null | null | pyexcel_matplotlib/__init__.py | pyexcel/pyexcel-matplotlib | 8771fcf3cc82164b50dc7ec0314838bf3de63e3b | [
"BSD-3-Clause"
] | null | null | null | pyexcel_matplotlib/__init__.py | pyexcel/pyexcel-matplotlib | 8771fcf3cc82164b50dc7ec0314838bf3de63e3b | [
"BSD-3-Clause"
] | null | null | null | """
pyexcel_matplotlib
~~~~~~~~~~~~~~~~~~~
chart drawing plugin for pyexcel
:copyright: (c) 2016-2017 by Onni Software Ltd.
:license: New BSD License, see LICENSE for further details
"""
from pyexcel.plugins import PyexcelPluginChain
PyexcelPluginChain(__name__).add_a_renderer(
relative_plug... | 22.647059 | 62 | 0.690909 |
63188b300be0d3bc46d1755aa736cffb77943a19 | 199 | py | Python | content/Coverage Criteria/code-snippets-2-fytd/test_impl_with_properties.py | rvprasad/software-testing-course | 3803851dcf9f7bbd0f0b89fca6c9c5e3a48f22e0 | [
"CC-BY-4.0"
] | 11 | 2018-02-08T05:23:28.000Z | 2021-05-24T13:23:56.000Z | content/Coverage Criteria/code-snippets-2-fytd/test_impl_with_properties.py | rvprasad/software-testing-course | 3803851dcf9f7bbd0f0b89fca6c9c5e3a48f22e0 | [
"CC-BY-4.0"
] | null | null | null | content/Coverage Criteria/code-snippets-2-fytd/test_impl_with_properties.py | rvprasad/software-testing-course | 3803851dcf9f7bbd0f0b89fca6c9c5e3a48f22e0 | [
"CC-BY-4.0"
] | 2 | 2020-09-15T08:51:22.000Z | 2021-01-26T12:07:18.000Z | #py.test --cov-report=term --cov=. --cov-config=coverage.rc --cov-fail-under=100
from impl import PhysicalInfo
import pytest
import hypothesis.strategies as st
from hypothesis import given, assume
| 24.875 | 80 | 0.778894 |
6318c5a3cbb9f437c2f48b78416a895e4ca8d74b | 7,025 | py | Python | homepage/views.py | gwillig/octocat | 4a9f79782a0da656d61450552ce27a49047abe53 | [
"MIT"
] | null | null | null | homepage/views.py | gwillig/octocat | 4a9f79782a0da656d61450552ce27a49047abe53 | [
"MIT"
] | 5 | 2020-06-09T13:02:15.000Z | 2021-06-10T18:47:45.000Z | homepage/views.py | gwillig/octocat | 4a9f79782a0da656d61450552ce27a49047abe53 | [
"MIT"
] | null | null | null | from django.http import Http404, JsonResponse
from django.shortcuts import render
from chatbot.chatbot import create_chatbot
import threading
import pickle
import collections
from io import BytesIO
import numpy as np
import urllib.request
import json
import wave
import librosa
import pandas as pd
from homepage.models i... | 33.774038 | 134 | 0.701495 |
63194ee4c304415890bdeb1468d2982220dc84d9 | 5,749 | py | Python | settings/base.py | ankit-ak/django-ecommerce-1 | 248127526c03c7c0f25a2df84365a0d0199b9693 | [
"MIT"
] | 4 | 2021-04-06T16:50:57.000Z | 2022-03-02T00:50:44.000Z | settings/base.py | ankit-ak/django-ecommerce-1 | 248127526c03c7c0f25a2df84365a0d0199b9693 | [
"MIT"
] | null | null | null | settings/base.py | ankit-ak/django-ecommerce-1 | 248127526c03c7c0f25a2df84365a0d0199b9693 | [
"MIT"
] | 7 | 2021-02-22T08:07:20.000Z | 2022-03-06T10:17:28.000Z | """
Django settings for petstore project.
Generated by 'django-admin startproject' using Django 2.2.10.
For more information on this file, see
https://docs.djangoproject.com/en/2.2/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/2.2/ref/settings/
"""
import os
... | 28.043902 | 91 | 0.728996 |
631ba99c9d1ddbfd1ea38d627f51de23ced2b917 | 440 | py | Python | day-01/part-2/jon.py | evqna/adventofcode-2020 | 526bb9c87057d02bda4de9647932a0e25bdb3a5b | [
"MIT"
] | 12 | 2020-11-30T19:22:18.000Z | 2021-06-21T05:55:58.000Z | day-01/part-2/jon.py | evqna/adventofcode-2020 | 526bb9c87057d02bda4de9647932a0e25bdb3a5b | [
"MIT"
] | 13 | 2020-11-30T17:27:22.000Z | 2020-12-22T17:43:13.000Z | day-01/part-2/jon.py | evqna/adventofcode-2020 | 526bb9c87057d02bda4de9647932a0e25bdb3a5b | [
"MIT"
] | 3 | 2020-12-01T08:49:40.000Z | 2022-03-26T21:47:38.000Z | from tool.runners.python import SubmissionPy
| 25.882353 | 54 | 0.427273 |
631bccc0853eef2e7f3442d8f5f162deb98c59c4 | 1,919 | py | Python | threading/recon-ng_threadpool.py | all3g/pieces | bc378fd22ddc700891fe7f34ab0d5b341141e434 | [
"CNRI-Python"
] | 34 | 2016-10-31T02:05:24.000Z | 2018-11-08T14:33:13.000Z | threading/recon-ng_threadpool.py | join-us/python-programming | bc378fd22ddc700891fe7f34ab0d5b341141e434 | [
"CNRI-Python"
] | 2 | 2017-05-11T03:00:31.000Z | 2017-11-01T23:37:37.000Z | threading/recon-ng_threadpool.py | join-us/python-programming | bc378fd22ddc700891fe7f34ab0d5b341141e434 | [
"CNRI-Python"
] | 21 | 2016-08-19T09:05:45.000Z | 2018-11-08T14:33:16.000Z | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# From /opt/recon-ng/recon/mixins/threads.py
from Queue import Queue, Empty
import threading
import time
import logging
logging.basicConfig(level=logging.INFO, format="[+] %(message)s")
logger = logging.getLogger("mutilthreads")
if __name__ == '__main__':
# defin... | 23.9875 | 72 | 0.560188 |
631c035d110528366d1acb4c246097b03b5fc1bd | 2,184 | py | Python | abstracts_mutual_PCAscore.py | diegovalenzuelaiturra/EasyPatents | 6e922e8b749b5baeaef9fcaabfdd789dfa9191a7 | [
"MIT"
] | 2 | 2019-11-20T04:29:56.000Z | 2021-06-09T22:09:32.000Z | abstracts_mutual_PCAscore.py | diegovalenzuelaiturra/EasyPatents | 6e922e8b749b5baeaef9fcaabfdd789dfa9191a7 | [
"MIT"
] | 15 | 2020-01-28T21:33:32.000Z | 2022-01-13T00:33:02.000Z | abstracts_mutual_PCAscore.py | diegovalenzuelaiturra/EasyPatents | 6e922e8b749b5baeaef9fcaabfdd789dfa9191a7 | [
"MIT"
] | 2 | 2017-12-31T08:53:04.000Z | 2021-06-09T22:09:34.000Z | from BusquedasSem import *
import seaborn as sns
if __name__ == '__main__':
main()
| 25.103448 | 99 | 0.604396 |
631cd2a6dbe8d5531dc2796c165be89911afb6ea | 864 | py | Python | .workloads/hash-crack/hash-crack.py | lolenseu/Projects | 34c2eef473697b092e13743f28d575cf0fb08324 | [
"MIT"
] | 5 | 2022-01-31T14:44:24.000Z | 2022-03-26T14:02:35.000Z | .workloads/hash-crack/hash-crack.py | lolenseu/Projects | 34c2eef473697b092e13743f28d575cf0fb08324 | [
"MIT"
] | null | null | null | .workloads/hash-crack/hash-crack.py | lolenseu/Projects | 34c2eef473697b092e13743f28d575cf0fb08324 | [
"MIT"
] | null | null | null | import os
import sys
import time
import hashlib
target_hash = input("Input a target hash: ")
numbers = '1234567890'
uptext = 'qwertyuiopasdfghjklzxcvbnm'
lotext = 'QWERTYUIOPASDFGHJKLZXCVBNM'
steach = uptext + lotext
lash_ash = open('log', 'w')
found_hash = open('saved', 'w')
counter = 0
found = False
while not fo... | 20.093023 | 69 | 0.706019 |
631d80f3701744174c3da072f2943d2b83e7badc | 11,100 | py | Python | scripts/bert_system/voter.py | GKingA/tuw-inf-hasoc2021 | d04b816db2e2b1b2a5a6d455596ed369f8d1da14 | [
"MIT"
] | null | null | null | scripts/bert_system/voter.py | GKingA/tuw-inf-hasoc2021 | d04b816db2e2b1b2a5a6d455596ed369f8d1da14 | [
"MIT"
] | null | null | null | scripts/bert_system/voter.py | GKingA/tuw-inf-hasoc2021 | d04b816db2e2b1b2a5a6d455596ed369f8d1da14 | [
"MIT"
] | null | null | null | import pandas as pd
from sklearn.metrics import classification_report, confusion_matrix
from argparse import ArgumentParser
from read_data import read_csv
if __name__ == '__main__':
argparser = ArgumentParser()
argparser.add_argument('--toxic_category', choices=["toxic", "engaging", "fact", "none"], de... | 54.411765 | 119 | 0.623063 |
631e5480b8873184d63c0836ee3dfc256b04bd00 | 157 | py | Python | cap8/ex2.py | felipesch92/livroPython | 061b1c095c3ec2d25fb1d5fdfbf9e9dbe10b3307 | [
"MIT"
] | null | null | null | cap8/ex2.py | felipesch92/livroPython | 061b1c095c3ec2d25fb1d5fdfbf9e9dbe10b3307 | [
"MIT"
] | null | null | null | cap8/ex2.py | felipesch92/livroPython | 061b1c095c3ec2d25fb1d5fdfbf9e9dbe10b3307 | [
"MIT"
] | null | null | null | print(multiplo(2, 1))
print(multiplo(9, 5))
print(multiplo(81, 9))
| 17.444444 | 22 | 0.566879 |
63220bdf987500349f76e2f5fb63d85c0d153e06 | 1,165 | py | Python | parsifal/apps/reviews/migrations/0020_searchresult.py | ShivamPytho/parsifal | 9386a0fb328d4880d052c94e9224ce50a9b2f6a6 | [
"MIT"
] | 342 | 2015-01-14T17:25:35.000Z | 2022-02-26T11:59:09.000Z | parsifal/apps/reviews/migrations/0020_searchresult.py | ShivamPytho/parsifal | 9386a0fb328d4880d052c94e9224ce50a9b2f6a6 | [
"MIT"
] | 56 | 2015-01-23T12:57:59.000Z | 2022-03-12T01:01:38.000Z | parsifal/apps/reviews/migrations/0020_searchresult.py | ShivamPytho/parsifal | 9386a0fb328d4880d052c94e9224ce50a9b2f6a6 | [
"MIT"
] | 200 | 2015-01-22T21:50:41.000Z | 2021-12-28T13:42:57.000Z | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
import parsifal.apps.reviews.models
import django.db.models.deletion
| 40.172414 | 138 | 0.654077 |
6322146c8d971464c6f726ebdba3a3d7a2540028 | 6,518 | py | Python | mastiff/plugins/analysis/EXE/EXE-singlestring.py | tt1379/mastiff | 04d569e4fa59513572e77c74b049cad82f9b0310 | [
"Apache-2.0"
] | 164 | 2015-02-09T18:19:26.000Z | 2022-02-23T09:49:18.000Z | mastiff/plugins/analysis/EXE/EXE-singlestring.py | ashishhmittal/mastiff | 04d569e4fa59513572e77c74b049cad82f9b0310 | [
"Apache-2.0"
] | 1 | 2016-05-20T16:21:33.000Z | 2016-05-20T16:21:33.000Z | mastiff/plugins/analysis/EXE/EXE-singlestring.py | ashishhmittal/mastiff | 04d569e4fa59513572e77c74b049cad82f9b0310 | [
"Apache-2.0"
] | 43 | 2015-03-03T11:15:58.000Z | 2021-10-02T02:14:57.000Z | #!/usr/bin/env python
"""
Copyright 2012-2013 The MASTIFF Project, All Rights Reserved.
This software, having been partly or wholly developed and/or
sponsored by KoreLogic, Inc., is hereby released under the terms
and conditions set forth in the project's "README.LICENSE" file.
For a list of all contributors... | 31.640777 | 109 | 0.544799 |
6322cf5faf1311f6d38c18bbb9cc68ac52d6e045 | 2,874 | py | Python | Libs/Scene Recognition/SceneRecognitionCNN.py | vpulab/Semantic-Guided-Scene-Attribution | 1e247e48b549eb648d833050fb150f041948422d | [
"MIT"
] | 3 | 2021-03-03T09:07:53.000Z | 2021-07-19T10:44:32.000Z | Libs/Scene Recognition/SceneRecognitionCNN.py | vpulab/Semantic-Guided-Scene-Attribution | 1e247e48b549eb648d833050fb150f041948422d | [
"MIT"
] | null | null | null | Libs/Scene Recognition/SceneRecognitionCNN.py | vpulab/Semantic-Guided-Scene-Attribution | 1e247e48b549eb648d833050fb150f041948422d | [
"MIT"
] | 1 | 2021-03-11T09:17:04.000Z | 2021-03-11T09:17:04.000Z | import torch.nn as nn
from torchvision.models import resnet
| 30.903226 | 81 | 0.451983 |
63243b0ed7269143b65e929fe80aa6f12a71bb2a | 1,309 | py | Python | raduga/aws/ec2.py | tuxpiper/raduga | e63bdd8f9d4154c0ac0a72a1182da5d137e38514 | [
"MIT"
] | null | null | null | raduga/aws/ec2.py | tuxpiper/raduga | e63bdd8f9d4154c0ac0a72a1182da5d137e38514 | [
"MIT"
] | null | null | null | raduga/aws/ec2.py | tuxpiper/raduga | e63bdd8f9d4154c0ac0a72a1182da5d137e38514 | [
"MIT"
] | null | null | null | from time import sleep
| 35.378378 | 88 | 0.638655 |
6324fc38f5d2e0297dfed36c24f30bc5c9a5e87b | 3,786 | py | Python | sails/commands.py | metrasynth/solar-sails | 3a10774dad29d85834d3acb38171741b3a11ef91 | [
"MIT"
] | 6 | 2016-11-22T14:32:55.000Z | 2021-08-15T01:35:33.000Z | sails/commands.py | metrasynth/s4ils | efc061993d15ebe662b72ab8b3127f7f7ce2f66b | [
"MIT"
] | 2 | 2022-03-18T16:47:43.000Z | 2022-03-18T16:47:44.000Z | sails/commands.py | metrasynth/s4ils | efc061993d15ebe662b72ab8b3127f7f7ce2f66b | [
"MIT"
] | 2 | 2019-07-09T23:44:08.000Z | 2021-08-15T01:35:37.000Z | import rv.api
| 23.811321 | 66 | 0.542789 |
6326017b69b64c91b9adacf50eeea018744aa2c3 | 22,527 | py | Python | rfcc/model.py | IngoMarquart/rfcc | 0e2467610edbe61287fb5f8693e50225327d791f | [
"MIT"
] | null | null | null | rfcc/model.py | IngoMarquart/rfcc | 0e2467610edbe61287fb5f8693e50225327d791f | [
"MIT"
] | 1 | 2021-04-01T10:05:57.000Z | 2021-04-01T11:46:14.000Z | rfcc/model.py | IngoMarquart/rfcc | 0e2467610edbe61287fb5f8693e50225327d791f | [
"MIT"
] | null | null | null | from sklearn.ensemble import RandomForestClassifier, RandomForestRegressor
from scipy.spatial.distance import squareform, pdist
from rfcc.data_ops import ordinal_encode
import pandas as pd
import numpy as np
from typing import Union, Optional
from scipy.cluster.hierarchy import linkage, fcluster
from rfcc.path_o... | 39.800353 | 263 | 0.550317 |
632674ddcc745dd77d3ba6cadd61eccacbe5de74 | 4,632 | py | Python | zoloto/cameras/camera.py | RealOrangeOne/yuri | 6ed55bdf97c6add22cd6c71c39ca30e2229337cb | [
"BSD-3-Clause"
] | null | null | null | zoloto/cameras/camera.py | RealOrangeOne/yuri | 6ed55bdf97c6add22cd6c71c39ca30e2229337cb | [
"BSD-3-Clause"
] | null | null | null | zoloto/cameras/camera.py | RealOrangeOne/yuri | 6ed55bdf97c6add22cd6c71c39ca30e2229337cb | [
"BSD-3-Clause"
] | null | null | null | from pathlib import Path
from typing import Any, Generator, Optional, Tuple
from cv2 import CAP_PROP_BUFFERSIZE, VideoCapture
from numpy import ndarray
from zoloto.marker_type import MarkerType
from .base import BaseCamera
from .mixins import IterableCameraMixin, VideoCaptureMixin, ViewableCameraMixin
from .utils im... | 31.726027 | 92 | 0.649827 |
6326a7cc80d3d1603f92a048b09d9d4066064738 | 448 | py | Python | .config/vim/python3/tex.py | psvenk/dotfiles | 2c07e97b5087a224e5df3060405f8bbfac28866e | [
"0BSD"
] | null | null | null | .config/vim/python3/tex.py | psvenk/dotfiles | 2c07e97b5087a224e5df3060405f8bbfac28866e | [
"0BSD"
] | null | null | null | .config/vim/python3/tex.py | psvenk/dotfiles | 2c07e97b5087a224e5df3060405f8bbfac28866e | [
"0BSD"
] | null | null | null | import vim
from datetime import datetime
from os import path
from subprocess import run, DEVNULL
| 34.461538 | 74 | 0.703125 |
6327c56d9c670d44daabc2e832ec49f09adf169e | 433 | py | Python | tests/ext/test_ext_plugin.py | tomekr/cement | fece8629c48bcd598fd61d8aa7457a5df4c4f831 | [
"BSD-3-Clause"
] | 826 | 2015-01-09T13:23:35.000Z | 2022-03-18T01:19:40.000Z | tests/ext/test_ext_plugin.py | tomekr/cement | fece8629c48bcd598fd61d8aa7457a5df4c4f831 | [
"BSD-3-Clause"
] | 316 | 2015-01-14T10:35:22.000Z | 2022-03-08T17:18:10.000Z | tests/ext/test_ext_plugin.py | tomekr/cement | fece8629c48bcd598fd61d8aa7457a5df4c4f831 | [
"BSD-3-Clause"
] | 112 | 2015-01-10T15:04:26.000Z | 2022-03-16T08:11:58.000Z |
from cement.ext.ext_plugin import CementPluginHandler
# module tests
# app functionality and coverage tests
| 22.789474 | 53 | 0.681293 |
6327d98e619405f59bb76b328007d961e5267f30 | 655 | py | Python | wofry/beamline/optical_elements/ideal_elements/screen.py | PaNOSC-ViNYL/wofry | 779b5a738ee7738e959a58aafe01e7e49b03894a | [
"MIT"
] | null | null | null | wofry/beamline/optical_elements/ideal_elements/screen.py | PaNOSC-ViNYL/wofry | 779b5a738ee7738e959a58aafe01e7e49b03894a | [
"MIT"
] | null | null | null | wofry/beamline/optical_elements/ideal_elements/screen.py | PaNOSC-ViNYL/wofry | 779b5a738ee7738e959a58aafe01e7e49b03894a | [
"MIT"
] | null | null | null | """
Represents an ideal lens.
"""
from syned.beamline.optical_elements.ideal_elements.screen import Screen
from wofry.beamline.decorators import OpticalElementDecorator
| 32.75 | 82 | 0.760305 |
6329f54bdc4ccb92a6490bc61cacdf57859127e4 | 1,799 | py | Python | scripts/sample_imgnet.py | duanzhiihao/mycv | 184b52f7a5c1b6f603122d4f4050952b65ba0ead | [
"MIT"
] | null | null | null | scripts/sample_imgnet.py | duanzhiihao/mycv | 184b52f7a5c1b6f603122d4f4050952b65ba0ead | [
"MIT"
] | null | null | null | scripts/sample_imgnet.py | duanzhiihao/mycv | 184b52f7a5c1b6f603122d4f4050952b65ba0ead | [
"MIT"
] | null | null | null | import os
from tqdm import tqdm
from pathlib import Path
import random
from mycv.paths import IMAGENET_DIR
from mycv.datasets.imagenet import WNIDS, WNID_TO_IDX
if __name__ == "__main__":
main()
| 34.596154 | 82 | 0.659811 |
632d57e33c16941deaf1e4e00a7a754b488df9c5 | 702 | py | Python | test/test_document.py | hibtc/madseq | 1e218726a01a1817464f84f0ce887be3186f2c08 | [
"MIT"
] | null | null | null | test/test_document.py | hibtc/madseq | 1e218726a01a1817464f84f0ce887be3186f2c08 | [
"MIT"
] | 2 | 2015-05-25T00:42:49.000Z | 2015-05-25T00:43:19.000Z | test/test_document.py | hibtc/madseq | 1e218726a01a1817464f84f0ce887be3186f2c08 | [
"MIT"
] | null | null | null | # test utilities
import unittest
from decimal import Decimal
# tested module
import madseq
if __name__ == '__main__':
unittest.main()
| 22.645161 | 74 | 0.497151 |
632f191e3e228f8b92b0a400fa3722a5c25e9f21 | 5,307 | py | Python | Assignment3/src/main/bkool/utils/Visitor.py | ntnguyen648936/PPL-BKOOOL | 458f54683da01d2105cf3cffc8ecbc2aeb796df8 | [
"Apache-2.0"
] | null | null | null | Assignment3/src/main/bkool/utils/Visitor.py | ntnguyen648936/PPL-BKOOOL | 458f54683da01d2105cf3cffc8ecbc2aeb796df8 | [
"Apache-2.0"
] | null | null | null | Assignment3/src/main/bkool/utils/Visitor.py | ntnguyen648936/PPL-BKOOOL | 458f54683da01d2105cf3cffc8ecbc2aeb796df8 | [
"Apache-2.0"
] | 1 | 2022-01-27T15:38:22.000Z | 2022-01-27T15:38:22.000Z | from abc import ABC, abstractmethod, ABCMeta
| 23.174672 | 46 | 0.603919 |
633116f53d75e450606cb590875b6e5bf2ea6638 | 4,917 | py | Python | opensanctions/crawlers/eu_fsf.py | quantumchips/opensanctions | 56f19dcfea704480e56a311d2a807c8446237457 | [
"MIT"
] | 102 | 2018-03-22T16:33:17.000Z | 2021-01-20T07:39:43.000Z | opensanctions/crawlers/eu_fsf.py | quantumchips/opensanctions | 56f19dcfea704480e56a311d2a807c8446237457 | [
"MIT"
] | 101 | 2021-02-12T18:26:16.000Z | 2022-01-27T14:01:53.000Z | opensanctions/crawlers/eu_fsf.py | quantumchips/opensanctions | 56f19dcfea704480e56a311d2a807c8446237457 | [
"MIT"
] | 50 | 2018-05-11T18:00:49.000Z | 2021-01-26T12:11:20.000Z | from prefixdate import parse_parts
from opensanctions import helpers as h
from opensanctions.util import remove_namespace
| 40.636364 | 77 | 0.630466 |
63319d40cb5498bfc7c0d34898459019f0749096 | 1,031 | py | Python | lre/nlp/__init__.py | ovixiao/lre | e60de7b4457efd5a85165e89a4477c14f52c471b | [
"Apache-2.0"
] | null | null | null | lre/nlp/__init__.py | ovixiao/lre | e60de7b4457efd5a85165e89a4477c14f52c471b | [
"Apache-2.0"
] | null | null | null | lre/nlp/__init__.py | ovixiao/lre | e60de7b4457efd5a85165e89a4477c14f52c471b | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
"""
"""
from __future__ import unicode_literals
from .nlp_zh import NlpZh
| 24.547619 | 66 | 0.591659 |
633225f23e4a4bf2dbb424fc735d054300fb8162 | 730 | py | Python | scripts/vertical/scr_process_stats.py | juhi24/radcomp | ccb727e4fa516ae708362ed1b05335de92f8c7fd | [
"MIT"
] | 1 | 2019-06-18T01:54:00.000Z | 2019-06-18T01:54:00.000Z | scripts/vertical/scr_process_stats.py | juhi24/radcomp | ccb727e4fa516ae708362ed1b05335de92f8c7fd | [
"MIT"
] | null | null | null | scripts/vertical/scr_process_stats.py | juhi24/radcomp | ccb727e4fa516ae708362ed1b05335de92f8c7fd | [
"MIT"
] | 1 | 2020-05-27T10:13:49.000Z | 2020-05-27T10:13:49.000Z | # coding: utf-8
import matplotlib.pyplot as plt
from scr_class_stats import init_rain, cl_frac_in_case, frac_in_case_hist
def proc_frac(cases, lcl, frac=True):
"""fraction or sum of process occurrences per case"""
cl_sum = cases.case.apply(lambda x: 0)
for cl in lcl:
cl_sum += cases.case.apply(la... | 24.333333 | 80 | 0.669863 |
2d47ab385e2aad6d3b4b15b6488db399d09b39ca | 3,784 | py | Python | scripts/supervised/exam_real_robot_data/analysis_icm_model_real_bot.py | fredshentu/public_model_based_controller | 9301699bc56aa49ba5c699f7d5be299046a8aa0c | [
"MIT"
] | null | null | null | scripts/supervised/exam_real_robot_data/analysis_icm_model_real_bot.py | fredshentu/public_model_based_controller | 9301699bc56aa49ba5c699f7d5be299046a8aa0c | [
"MIT"
] | null | null | null | scripts/supervised/exam_real_robot_data/analysis_icm_model_real_bot.py | fredshentu/public_model_based_controller | 9301699bc56aa49ba5c699f7d5be299046a8aa0c | [
"MIT"
] | null | null | null | """
Since the size of real robot data is huge, we first go though all data then save loss array,
then sort loss array. Finally we use the indexes to find the corresponding graphs
"""
import time
from rllab.core.serializable import Serializable
from numpy.linalg import norm
from numpy import mean
from numpy import std
i... | 32.067797 | 92 | 0.700317 |
2d4823293bcf928bc47dd1c13d4ff3d6fb02d8f4 | 12,225 | py | Python | data_preprocess/build_data_to_tfrecord.py | YuxianMeng/CorefQA-pytorch | 0017e85dc09075c640c5fe91673230f505e825f2 | [
"Apache-2.0"
] | 6 | 2021-06-30T03:08:27.000Z | 2021-12-23T07:15:03.000Z | data_preprocess/build_data_to_tfrecord.py | YuxianMeng/CorefQA-pytorch | 0017e85dc09075c640c5fe91673230f505e825f2 | [
"Apache-2.0"
] | null | null | null | data_preprocess/build_data_to_tfrecord.py | YuxianMeng/CorefQA-pytorch | 0017e85dc09075c640c5fe91673230f505e825f2 | [
"Apache-2.0"
] | 2 | 2020-10-20T20:20:54.000Z | 2021-01-27T08:15:53.000Z | #!/usr/bin/env python
# -*- coding:utf-8 -*-
"""
@author: Wei Wu
@license: Apache Licence
@file: prepare_training_data.py
@time: 2019/12/19
@contact: wu.wei@pku.edu.cn
conllv4_gold_conlljsonlines
"""
import argparse
import json
import logging
import os
import re
import sys
from collections import defaultdict
from typ... | 41.866438 | 129 | 0.669857 |
2d485dc621723bda46a0ef23e63d9f2aea8f60fb | 8,611 | py | Python | pulseplot/pulseplot.py | kaustubhmote/pulseplot | 9003ab0784666cd34023e29a5f97acb9861f3567 | [
"BSD-3-Clause"
] | 2 | 2022-02-23T11:23:53.000Z | 2022-03-12T06:39:54.000Z | pulseplot/pulseplot.py | kaustubhmote/pulseplot | 9003ab0784666cd34023e29a5f97acb9861f3567 | [
"BSD-3-Clause"
] | null | null | null | pulseplot/pulseplot.py | kaustubhmote/pulseplot | 9003ab0784666cd34023e29a5f97acb9861f3567 | [
"BSD-3-Clause"
] | null | null | null | """
Utilities for making plots
"""
from warnings import warn
import matplotlib.pyplot as plt
from matplotlib.projections import register_projection
from matplotlib.animation import ArtistAnimation
from .parse import Delay, Pulse, PulseSeq
def subplots(*args, **kwargs):
"""
Wrapper around matplotlib.pyplot.s... | 26.495385 | 107 | 0.541517 |
2d487db3bf1f6d954a1dfa7aa6ad6f0c54cdd16d | 1,835 | py | Python | test/test_immutable_maps.py | zuoralabs/autolisp | ed5d37f36914e25a2ab3196eb5985c7fff8fd00b | [
"BSD-2-Clause"
] | null | null | null | test/test_immutable_maps.py | zuoralabs/autolisp | ed5d37f36914e25a2ab3196eb5985c7fff8fd00b | [
"BSD-2-Clause"
] | null | null | null | test/test_immutable_maps.py | zuoralabs/autolisp | ed5d37f36914e25a2ab3196eb5985c7fff8fd00b | [
"BSD-2-Clause"
] | 1 | 2020-10-03T12:23:46.000Z | 2020-10-03T12:23:46.000Z | from genlisp.immutables import _ImmutableMap as ImmutableMap
import random
test_dicts = [{1: 2},
{1: 3},
{1: 2, 3: 4},
dict(a=1, b=2, c=3, d=4, e=5),
dict(a=3, b=1, c=3, d=4, e=5),
{ii: random.randint(0, 10000) for ii in range(20000)},
... | 25.136986 | 68 | 0.520981 |