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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
04bd8ee517fa496914814f08e7ffaa7ca9bd71d8 | 1,296 | py | Python | setup.py | monim67/django-sslcommerz | 097d6946d3b61e76502a94fd73506df2b18b4b81 | [
"MIT"
] | null | null | null | setup.py | monim67/django-sslcommerz | 097d6946d3b61e76502a94fd73506df2b18b4b81 | [
"MIT"
] | null | null | null | setup.py | monim67/django-sslcommerz | 097d6946d3b61e76502a94fd73506df2b18b4b81 | [
"MIT"
] | 1 | 2022-03-05T05:45:50.000Z | 2022-03-05T05:45:50.000Z | import setuptools
setuptools.setup(
name="django-sslcommerz",
version="1.0.0",
description="Sslcommerz for django.",
long_description=get_long_description(),
url="https://github.com/monim67/django-sslcommerz",
author="Munim Munna",
author_email="monim67@yahoo.com",
license="MIT",
... | 32.4 | 67 | 0.625772 |
04be25e16e1aec14eff063f5252fd99b4c45e067 | 3,073 | py | Python | gdsfactory/gdsdiff/gdsdiff.py | tvt173/gdsfactory | 69dcfccff1525722e7029eb8bb8c4c9ddebbac47 | [
"MIT"
] | null | null | null | gdsfactory/gdsdiff/gdsdiff.py | tvt173/gdsfactory | 69dcfccff1525722e7029eb8bb8c4c9ddebbac47 | [
"MIT"
] | null | null | null | gdsfactory/gdsdiff/gdsdiff.py | tvt173/gdsfactory | 69dcfccff1525722e7029eb8bb8c4c9ddebbac47 | [
"MIT"
] | null | null | null | import itertools
import pathlib
from pathlib import Path
from typing import Union
import gdspy
from gdsfactory.component import Component
from gdsfactory.import_gds import import_gds
COUNTER = itertools.count()
def xor_polygons(A: Component, B: Component, hash_geometry: bool = True):
"""Given two devices A and... | 27.936364 | 79 | 0.624146 |
04bfcf34924e2544c7b28a416898f64a8e811397 | 94,348 | py | Python | vos/vos.py | astro-datalab/datalab | a57b680e7753162d476b094f2067f66318577132 | [
"MIT"
] | 13 | 2019-11-18T18:21:14.000Z | 2022-01-28T22:17:06.000Z | vos/vos.py | astro-datalab/datalab | a57b680e7753162d476b094f2067f66318577132 | [
"MIT"
] | 25 | 2019-01-02T03:12:46.000Z | 2022-02-16T17:27:53.000Z | vos/vos.py | astro-datalab/datalab | a57b680e7753162d476b094f2067f66318577132 | [
"MIT"
] | 2 | 2020-01-20T17:46:24.000Z | 2020-02-11T22:07:53.000Z | """A set of Python Classes for connecting to and interacting with a VOSpace
service.
Connections to VOSpace are made using a SSL X509 certificat which is
stored in a .pem file.
"""
#from contextlib import nested
import copy
import errno
import fnmatch
import hashlib
import requests
from requests.exceptions i... | 41.290153 | 122 | 0.564856 |
04c12c9b2b21dff7b4710057db02ed0b2f079d26 | 441 | py | Python | src/init.py | sheepsushis/reddit-karma-farming-bot | 5330f820991adc271ae8dddbe233378f1c52acb4 | [
"MIT"
] | null | null | null | src/init.py | sheepsushis/reddit-karma-farming-bot | 5330f820991adc271ae8dddbe233378f1c52acb4 | [
"MIT"
] | null | null | null | src/init.py | sheepsushis/reddit-karma-farming-bot | 5330f820991adc271ae8dddbe233378f1c52acb4 | [
"MIT"
] | 1 | 2021-12-05T07:23:00.000Z | 2021-12-05T07:23:00.000Z | import sys
from logs.logger import log
from utils import check_internet , get_public_ip
import bot
if __name__ == "__main__":
if check_internet() is True:
try:
log.info(f'Internet connection found : {get_public_ip()}')
bot.run()
except KeyboardInterrupt:
# quit
... | 25.941176 | 70 | 0.591837 |
04c263078f80daca8af3c46c357c9c807f39e600 | 294 | py | Python | python_for_absolute_beginners/20_string_type.py | leonardo-gallegos/Python | 986ba32eb1c5fd9fb829c08b46c7ef6112a6eba2 | [
"MIT"
] | null | null | null | python_for_absolute_beginners/20_string_type.py | leonardo-gallegos/Python | 986ba32eb1c5fd9fb829c08b46c7ef6112a6eba2 | [
"MIT"
] | null | null | null | python_for_absolute_beginners/20_string_type.py | leonardo-gallegos/Python | 986ba32eb1c5fd9fb829c08b46c7ef6112a6eba2 | [
"MIT"
] | null | null | null | float_num = 3.14159265 # float_num is a variable which has been assigned a float
print(type(float_num)) # prints the type of float_num
print(str(float_num) + " is a float") # prints "3.14159265 is a float"
print("\"Hello, I'm Leonardo, nice to meet you!\"")
| 58.8 | 97 | 0.636054 |
04c4b00b21d4ba3408515f6c615dd26873bdbcea | 5,493 | py | Python | model_and_simulate/road_traffic_microscopic/traffic_simulation.py | tomtuamnuq/model_and_simulate | 40a37159ef03ca992558924c5b9cdbbfba9c5a85 | [
"BSD-2-Clause"
] | 1 | 2022-02-27T19:57:46.000Z | 2022-02-27T19:57:46.000Z | model_and_simulate/road_traffic_microscopic/traffic_simulation.py | tomtuamnuq/model_and_simulate | 40a37159ef03ca992558924c5b9cdbbfba9c5a85 | [
"BSD-2-Clause"
] | null | null | null | model_and_simulate/road_traffic_microscopic/traffic_simulation.py | tomtuamnuq/model_and_simulate | 40a37159ef03ca992558924c5b9cdbbfba9c5a85 | [
"BSD-2-Clause"
] | null | null | null | """Module with microscopic traffic simulation class and additional features."""
from dataclasses import dataclass
from typing import Tuple
import random
import math
from .section import Section
from .vehicle import Vehicle
from model_and_simulate.utilities.simulation import Simulation, SimulationParameters
def do... | 42.253846 | 98 | 0.678318 |
04c4c29975b4ac243a47f1f2c78f86b6cd0211c3 | 5,698 | py | Python | make_cubes.py | cebarbosa/splus-fornax | 2f3518329972aee0dc2efc025ba596ba5d48dfd9 | [
"MIT"
] | null | null | null | make_cubes.py | cebarbosa/splus-fornax | 2f3518329972aee0dc2efc025ba596ba5d48dfd9 | [
"MIT"
] | null | null | null | make_cubes.py | cebarbosa/splus-fornax | 2f3518329972aee0dc2efc025ba596ba5d48dfd9 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""
Created on 03/09/2020
Author : Carlos Eduardo Barbosa
"""
from __future__ import print_function, division
import os
import itertools
import warnings
import numpy as np
from astropy.io import fits
from astropy.table import Table
import astropy.units as u
import astropy.constants as const... | 40.126761 | 84 | 0.574763 |
04c4c9b0f246e7f82e06775ed8353c3a210ebce7 | 2,304 | py | Python | docter/server.py | istommao/docter | 8f504203a5cc04e4debd247113a147f9120b3564 | [
"MIT"
] | null | null | null | docter/server.py | istommao/docter | 8f504203a5cc04e4debd247113a147f9120b3564 | [
"MIT"
] | null | null | null | docter/server.py | istommao/docter | 8f504203a5cc04e4debd247113a147f9120b3564 | [
"MIT"
] | null | null | null | """docter server."""
import os
import sys
import mimetypes
from datetime import datetime
from wsgiref import simple_server
import falcon
from jinja2 import Environment, FileSystemLoader
THIS_DIR = os.path.dirname(os.path.abspath(__file__))
BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
... | 22.153846 | 78 | 0.655816 |
04c4e87a0f226df6fc827cafacebd698e1cd1fe9 | 5,661 | py | Python | robotidy/transformers/SplitTooLongLine.py | bollwyvl/robotframework-tidy | f5347c9ec8cfb5e5a1a3d0f8f6c9bf88fc100ac9 | [
"Apache-2.0"
] | null | null | null | robotidy/transformers/SplitTooLongLine.py | bollwyvl/robotframework-tidy | f5347c9ec8cfb5e5a1a3d0f8f6c9bf88fc100ac9 | [
"Apache-2.0"
] | null | null | null | robotidy/transformers/SplitTooLongLine.py | bollwyvl/robotframework-tidy | f5347c9ec8cfb5e5a1a3d0f8f6c9bf88fc100ac9 | [
"Apache-2.0"
] | null | null | null | from robot.api.parsing import ModelTransformer, Token
try:
from robot.api.parsing import InlineIfHeader
except ImportError:
InlineIfHeader = None
from robotidy.disablers import skip_section_if_disabled
from robotidy.utils import ROBOT_VERSION
EOL = Token(Token.EOL)
CONTINUATION = Token(Token.CONTINUATION)
... | 34.10241 | 118 | 0.597068 |
04c5395796841a39bbd4cf9eeaea58269174b934 | 1,174 | py | Python | core/api/mixins/common.py | martbln/django-service-boilerplate | 1e6e584e751a48f460edb6b6db0bb55c53a3c200 | [
"MIT"
] | 18 | 2018-03-07T09:27:38.000Z | 2022-01-06T18:44:29.000Z | core/api/mixins/common.py | martbln/django-service-boilerplate | 1e6e584e751a48f460edb6b6db0bb55c53a3c200 | [
"MIT"
] | 292 | 2018-02-09T12:27:53.000Z | 2022-03-11T23:11:58.000Z | core/api/mixins/common.py | martbln/django-service-boilerplate | 1e6e584e751a48f460edb6b6db0bb55c53a3c200 | [
"MIT"
] | 11 | 2018-01-30T00:01:51.000Z | 2020-12-28T12:07:47.000Z | from rest_framework import status
from rest_framework.mixins import CreateModelMixin
from rest_framework.response import Response
| 30.102564 | 79 | 0.663543 |
04c591476bbf84a67d14d02c82344ef2f9d46d4a | 5,252 | py | Python | prompt_toolkit/contrib/repl.py | mfussenegger/python-prompt-toolkit | 193c1f528ee69f4cdbc2dc710ebbaee8a3655814 | [
"BSD-3-Clause"
] | null | null | null | prompt_toolkit/contrib/repl.py | mfussenegger/python-prompt-toolkit | 193c1f528ee69f4cdbc2dc710ebbaee8a3655814 | [
"BSD-3-Clause"
] | null | null | null | prompt_toolkit/contrib/repl.py | mfussenegger/python-prompt-toolkit | 193c1f528ee69f4cdbc2dc710ebbaee8a3655814 | [
"BSD-3-Clause"
] | null | null | null | """
Utility for creating a Python repl.
::
from prompt_toolkit.contrib.repl import embed
embed(globals(), locals(), vi_mode=False)
"""
# Warning: don't import `print_function` from __future__, otherwise we will
# also get the print_function inside `eval` on Python 2.7.
from __future__ import unicod... | 35.013333 | 121 | 0.598819 |
04c87574ff1abaa698b9057b5f085d8c8fd8c3cf | 1,623 | py | Python | zerorobot/task/utils.py | PeterNashaat/0-robot | 9ddc74354276e30dea4378e5a81814ce63f2120a | [
"Apache-2.0"
] | 3 | 2017-12-27T19:47:25.000Z | 2018-02-07T20:05:08.000Z | zerorobot/task/utils.py | PeterNashaat/0-robot | 9ddc74354276e30dea4378e5a81814ce63f2120a | [
"Apache-2.0"
] | 126 | 2018-03-26T09:53:52.000Z | 2018-07-26T09:11:39.000Z | zerorobot/task/utils.py | Jumpscale/zerorobot | 704d6eb996fae3bee7cfc44d54bf71dff030ea41 | [
"Apache-2.0"
] | 5 | 2018-06-12T05:07:57.000Z | 2019-01-28T20:53:00.000Z | from js9 import j
from . import (PRIORITY_NORMAL, PRIORITY_RECURRING, PRIORITY_SYSTEM,
TASK_STATE_ERROR, TASK_STATE_NEW, TASK_STATE_OK,
TASK_STATE_RUNNING)
from .task import Task
def wait_all(tasks, timeout=60, die=False):
"""
helper method to wait for a list of tasks
:par... | 33.8125 | 92 | 0.662354 |
04c9716dc9f82deec6e9854cb99ed45017c28d26 | 946 | py | Python | features/editops.py | snukky/yarescorer | 34650f744187afc06ce57874aff1089878db6e00 | [
"MIT"
] | null | null | null | features/editops.py | snukky/yarescorer | 34650f744187afc06ce57874aff1089878db6e00 | [
"MIT"
] | null | null | null | features/editops.py | snukky/yarescorer | 34650f744187afc06ce57874aff1089878db6e00 | [
"MIT"
] | null | null | null | from base import FeatureBase
from difflib import SequenceMatcher
| 32.62069 | 65 | 0.570825 |
04ca7fc9a510476b1d685e3729c31e9d90008873 | 17,111 | py | Python | code/improved method/SpatialColumnDetection.py | astrob3rry/spatial-data-profiling | 3de49691d72138e55887be943e2851c1507d8df9 | [
"Apache-2.0"
] | null | null | null | code/improved method/SpatialColumnDetection.py | astrob3rry/spatial-data-profiling | 3de49691d72138e55887be943e2851c1507d8df9 | [
"Apache-2.0"
] | null | null | null | code/improved method/SpatialColumnDetection.py | astrob3rry/spatial-data-profiling | 3de49691d72138e55887be943e2851c1507d8df9 | [
"Apache-2.0"
] | null | null | null | import pandas as pd
import sys, os
import numpy as np
from snapy import MinHash, LSH
from fuzzywuzzy import fuzz
from fuzzywuzzy import process
import random
import re
import Settings as Settings
from pyspark.sql import SparkSession
spark = SparkSession.builder.appName("project-test").config("spark.some.config.option... | 40.935407 | 118 | 0.559172 |
04cb3e926753c621981e5bbb04b3e341b0b61e1e | 806 | py | Python | tenable/cs/containers.py | widnyana/pyTenable | be6194bbf11a2283543a2c355deb37b52cd1a93b | [
"MIT"
] | 1 | 2019-01-25T11:36:07.000Z | 2019-01-25T11:36:07.000Z | tenable/cs/containers.py | borbidgea/pyTenable | e0ef19769c78caca26f59a5b1a78a54d2899c8e9 | [
"MIT"
] | null | null | null | tenable/cs/containers.py | borbidgea/pyTenable | e0ef19769c78caca26f59a5b1a78a54d2899c8e9 | [
"MIT"
] | null | null | null | from .base import CSEndpoint | 33.583333 | 146 | 0.62531 |
04cc1502220917edb931fffbe064578a32dc24fc | 3,253 | py | Python | morpheus_core/tests/test_fits_helper.py | morpheus-project/morpheus-framework | 7aa93f0c14bf33718026eb0a6ea0cfd5dcb8905e | [
"MIT"
] | null | null | null | morpheus_core/tests/test_fits_helper.py | morpheus-project/morpheus-framework | 7aa93f0c14bf33718026eb0a6ea0cfd5dcb8905e | [
"MIT"
] | 2 | 2020-12-12T07:49:18.000Z | 2021-02-19T06:08:46.000Z | morpheus_core/tests/test_fits_helper.py | morpheus-project/morpheus-framework | 7aa93f0c14bf33718026eb0a6ea0cfd5dcb8905e | [
"MIT"
] | null | null | null | # MIT License
# Copyright 2020 Ryan Hausen
#
# 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, publis... | 33.536082 | 80 | 0.739625 |
04ccdd6a663b1684f9e0d8dca1cc15744933bb38 | 6,282 | py | Python | src/eduid_webapp/actions/actions/mfa.py | SUNET/eduid-webapp | 8e531f288d50d18a5c9182003fff2ab6670a44c3 | [
"BSD-3-Clause"
] | null | null | null | src/eduid_webapp/actions/actions/mfa.py | SUNET/eduid-webapp | 8e531f288d50d18a5c9182003fff2ab6670a44c3 | [
"BSD-3-Clause"
] | 161 | 2017-04-13T07:56:38.000Z | 2021-03-12T13:46:38.000Z | src/eduid_webapp/actions/actions/mfa.py | SUNET/eduid-webapp | 8e531f288d50d18a5c9182003fff2ab6670a44c3 | [
"BSD-3-Clause"
] | 3 | 2016-05-16T20:25:49.000Z | 2018-07-27T12:10:58.000Z | #
# Copyright (c) 2017 NORDUnet A/S
# Copyright (c) 2018 SUNET
# 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
# ... | 41.328947 | 117 | 0.678765 |
04cf870dc83cab228f07cd6298f47e221892660f | 6,303 | py | Python | elvis/modeling/models/layers/transformer.py | seo-95/elvis | a89c759acdf6ce64c7e6863aeb68dc0ba3293fed | [
"Apache-2.0"
] | 1 | 2021-08-01T13:55:27.000Z | 2021-08-01T13:55:27.000Z | elvis/modeling/models/layers/transformer.py | seo-95/elvis | a89c759acdf6ce64c7e6863aeb68dc0ba3293fed | [
"Apache-2.0"
] | null | null | null | elvis/modeling/models/layers/transformer.py | seo-95/elvis | a89c759acdf6ce64c7e6863aeb68dc0ba3293fed | [
"Apache-2.0"
] | null | null | null | import math
import pdb
import torch
import torch.nn as nn
from torch.nn import functional as F
from .fully_connected import MLP
| 49.242188 | 135 | 0.597493 |
04d1009a7e3e52cf2dddb7f8977afd8e4d5eaeb6 | 3,396 | py | Python | conceptParser.py | Eyon42/InteractiveConceptMapGenerator | 2a0cfb543b1f2fdcb01d477395ece23fad186273 | [
"MIT"
] | null | null | null | conceptParser.py | Eyon42/InteractiveConceptMapGenerator | 2a0cfb543b1f2fdcb01d477395ece23fad186273 | [
"MIT"
] | null | null | null | conceptParser.py | Eyon42/InteractiveConceptMapGenerator | 2a0cfb543b1f2fdcb01d477395ece23fad186273 | [
"MIT"
] | null | null | null | import networkx as nx
import markdown as md
def parse_concepts(filename):
"""Takes a markdown file with with a certain structure
and parses it to separate the concept and the relations
between the concepts.
Structure:
# [Title]
## [Concept]
[Some text]
[Even Latex math]
### [A... | 28.779661 | 95 | 0.618963 |
04d172b116b50455fa28c12702c21c07b5062290 | 1,393 | py | Python | urls/pdfapi.py | nguyenhuong791123/api | cbefc2f3cb882d5655ed9ebdcfe42be1af69cc89 | [
"MIT"
] | null | null | null | urls/pdfapi.py | nguyenhuong791123/api | cbefc2f3cb882d5655ed9ebdcfe42be1af69cc89 | [
"MIT"
] | 5 | 2019-12-26T00:24:49.000Z | 2022-01-13T01:56:06.000Z | urls/pdfapi.py | nguyenhuong791123/api | cbefc2f3cb882d5655ed9ebdcfe42be1af69cc89 | [
"MIT"
] | null | null | null | # -*- coding: UTF-8 -*-
from flask import Blueprint, Flask, jsonify, request, make_response
import pdfkit
from utils.cm.utils import is_exist
from utils.cm.files import delete_dir
from utils.pdf.pdfkits import *
app = Blueprint('pdfapi', __name__)
# curl -v -H "Content-type: application/json" -X POST http://192.168.1... | 34.825 | 113 | 0.613065 |
04d234c6a1d923e3aa845b6c358f8df54aee2efb | 883 | py | Python | stixy/accounting/migrations/0009_auto_20200513_0905.py | AnthonyKenny98/Stixy | 5d6dd38cc590d28dc98cca2737bbacf4f1ec69ba | [
"MIT"
] | null | null | null | stixy/accounting/migrations/0009_auto_20200513_0905.py | AnthonyKenny98/Stixy | 5d6dd38cc590d28dc98cca2737bbacf4f1ec69ba | [
"MIT"
] | 7 | 2021-03-19T03:10:21.000Z | 2021-09-22T19:00:19.000Z | stixy/accounting/migrations/0009_auto_20200513_0905.py | AnthonyKenny98/Stixy | 5d6dd38cc590d28dc98cca2737bbacf4f1ec69ba | [
"MIT"
] | null | null | null | # Generated by Django 3.0.6 on 2020-05-13 09:05
# flake8: noqa
import accounting.models
from django.db import migrations, models
import django.db.models.deletion
| 33.961538 | 174 | 0.689694 |
04d28a5a1f76c44608d5fef3ad3b9f6620990a82 | 669 | py | Python | renovation_core/install/after_migrate.py | Abadulrehman/renovation_core | 2cb015ec1832ceb6076e20914f504a1049d7a736 | [
"MIT"
] | 18 | 2020-04-12T20:40:41.000Z | 2022-03-09T13:50:59.000Z | renovation_core/install/after_migrate.py | Abadulrehman/renovation_core | 2cb015ec1832ceb6076e20914f504a1049d7a736 | [
"MIT"
] | 28 | 2020-04-21T13:24:28.000Z | 2021-11-03T12:23:01.000Z | renovation_core/install/after_migrate.py | Abadulrehman/renovation_core | 2cb015ec1832ceb6076e20914f504a1049d7a736 | [
"MIT"
] | 16 | 2020-04-12T20:31:50.000Z | 2022-01-30T12:19:45.000Z | import frappe
| 41.8125 | 102 | 0.727952 |
04d422e0ed33ea11793b1e0b3c99514faee79969 | 609 | py | Python | reo/migrations/0116_auto_20210818_2124.py | NREL/REopt_Lite_API | 7cd3afeb135ef89cb65dde1b305e53fe321b2488 | [
"BSD-3-Clause"
] | 41 | 2020-02-21T08:25:17.000Z | 2022-01-14T23:06:42.000Z | reo/migrations/0116_auto_20210818_2124.py | NREL/reopt_api | fbc70f3b0cdeec9ee220266d6b3b0c5d64f257a6 | [
"BSD-3-Clause"
] | 167 | 2020-02-17T17:26:47.000Z | 2022-01-20T20:36:54.000Z | reo/migrations/0116_auto_20210818_2124.py | NREL/REopt_Lite_API | 7cd3afeb135ef89cb65dde1b305e53fe321b2488 | [
"BSD-3-Clause"
] | 31 | 2020-02-20T00:22:51.000Z | 2021-12-10T05:48:08.000Z | # Generated by Django 3.1.12 on 2021-08-18 21:24
from django.db import migrations, models
| 25.375 | 59 | 0.612479 |
04d49580568da4b9856ae2f7b9b3ef7e06b1c51d | 4,344 | py | Python | label_funcs_with_no_xrefs.py | Flygend/IDAPythonEmbeddedToolkit | 25eed67b8a67e18df5fceb362c424174128f48ae | [
"MIT"
] | 4 | 2017-06-20T06:26:57.000Z | 2022-02-12T03:50:16.000Z | label_funcs_with_no_xrefs.py | AGG2017/IDAPythonEmbeddedToolkit | da801888abf5c758bc768f2fa05779a3180a1cd6 | [
"MIT"
] | null | null | null | label_funcs_with_no_xrefs.py | AGG2017/IDAPythonEmbeddedToolkit | da801888abf5c758bc768f2fa05779a3180a1cd6 | [
"MIT"
] | 3 | 2017-07-30T03:23:06.000Z | 2018-04-29T20:05:47.000Z | ##############################################################################################
# Copyright 2017 The Johns Hopkins University Applied Physics Laboratory LLC
# All rights reserved.
# Permission is hereby granted, free of charge, to any person obtaining a copy of this
# software and associated documen... | 54.987342 | 134 | 0.679558 |
04d4d9118ea0e8d98cd4ba6cd174a06a5c614c1a | 833 | py | Python | hknweb/candidate/migrations/0001_initial.py | yuji3w/hknweb | 0df5369da28f46dc9016da97652cb6b8e2b7f3e6 | [
"MIT"
] | 20 | 2018-01-07T02:15:43.000Z | 2021-09-15T04:25:50.000Z | hknweb/candidate/migrations/0001_initial.py | yuji3w/hknweb | 0df5369da28f46dc9016da97652cb6b8e2b7f3e6 | [
"MIT"
] | 292 | 2018-02-01T18:31:18.000Z | 2022-03-30T22:15:08.000Z | hknweb/candidate/migrations/0001_initial.py | yuji3w/hknweb | 0df5369da28f46dc9016da97652cb6b8e2b7f3e6 | [
"MIT"
] | 85 | 2017-11-13T06:33:13.000Z | 2022-03-30T20:32:55.000Z | # Generated by Django 2.1.5 on 2019-02-04 21:30
from django.db import migrations, models
import django.db.models.deletion
| 30.851852 | 113 | 0.595438 |
04d589beef22b81909a9507279a9f0cdaee7f248 | 716 | py | Python | netbox/virtualization/migrations/0009_custom_tag_models.py | BrnoPCmaniak/netbox | 7b517abdb68a6324950dfd0375861163c7bfff00 | [
"Apache-2.0"
] | 6 | 2017-12-01T05:13:39.000Z | 2020-01-23T13:04:43.000Z | netbox/virtualization/migrations/0009_custom_tag_models.py | emersonfelipesp/netbox | fecca5ad83fb6b48a2f15982dfd3242653f105f9 | [
"Apache-2.0"
] | 25 | 2019-09-17T19:40:50.000Z | 2022-03-11T04:01:55.000Z | netbox/virtualization/migrations/0009_custom_tag_models.py | emersonfelipesp/netbox | fecca5ad83fb6b48a2f15982dfd3242653f105f9 | [
"Apache-2.0"
] | 3 | 2017-11-18T01:28:22.000Z | 2018-05-17T14:04:43.000Z | # Generated by Django 2.1.4 on 2019-02-20 06:56
from django.db import migrations
import taggit.managers
| 27.538462 | 96 | 0.624302 |
04d70b2bd7753cf21417e65b6b9cfcbfffde4e0e | 2,644 | py | Python | stats-backend/yapapi/yapapi/executor/utils.py | cryptobench/golem-stats-backend | 567e98873bff6282415ecbdc075c27dab75d805a | [
"MIT"
] | null | null | null | stats-backend/yapapi/yapapi/executor/utils.py | cryptobench/golem-stats-backend | 567e98873bff6282415ecbdc075c27dab75d805a | [
"MIT"
] | 4 | 2021-03-28T16:42:41.000Z | 2022-01-01T14:48:46.000Z | stats-backend/yapapi/yapapi/executor/utils.py | golemfactory/golem-stats-backend | 95467749a13e4496032150cf08a9a3686ef213d3 | [
"MIT"
] | null | null | null | """Utility functions and classes used within the `yapapi.executor` package."""
import asyncio
import logging
from typing import Callable, Optional
logger = logging.getLogger(__name__)
| 37.239437 | 98 | 0.625946 |
04d8816c058198033200e277b7e97cd45ae91b00 | 7,675 | py | Python | artgens/voice2txt.py | mark-nick-o/AIML_SoundArtsProject | be391f0ce8cde322abbfb49015e632a98c7f00c6 | [
"Apache-2.0"
] | null | null | null | artgens/voice2txt.py | mark-nick-o/AIML_SoundArtsProject | be391f0ce8cde322abbfb49015e632a98c7f00c6 | [
"Apache-2.0"
] | null | null | null | artgens/voice2txt.py | mark-nick-o/AIML_SoundArtsProject | be391f0ce8cde322abbfb49015e632a98c7f00c6 | [
"Apache-2.0"
] | null | null | null |
#
# This python takes either a microphone or sound file as an input
# and tries to decipher the vocal message into text
#
#
import os
import sys
# python -m pip install --upgrade pip
# sudo -H pip3 install SpeechRecognition pydub
import speech_recognition as sr
# sudo apt-get install python-pyaudio python3-pyaudio
#... | 58.587786 | 194 | 0.506971 |
04d98f74dadaaad5c0d7e378e0dab8a3d530d233 | 1,075 | py | Python | core/tests/factories.py | TechFrederick/ship | 5af0af05e3f949a529b9eaa84e7a9a24ec410985 | [
"MIT"
] | 14 | 2020-09-09T01:21:34.000Z | 2022-01-09T05:35:19.000Z | core/tests/factories.py | TechFrederick/ship | 5af0af05e3f949a529b9eaa84e7a9a24ec410985 | [
"MIT"
] | null | null | null | core/tests/factories.py | TechFrederick/ship | 5af0af05e3f949a529b9eaa84e7a9a24ec410985 | [
"MIT"
] | 1 | 2021-09-20T09:04:12.000Z | 2021-09-20T09:04:12.000Z | import factory
| 33.59375 | 64 | 0.703256 |
04d9badf0749270529e5708ece88e11b5cce7ca9 | 2,971 | py | Python | key_word/key_w.py | Den613/Vigeneur-encryption | f869edf426ca5b8d4eb766dae5a2d907b473ff9e | [
"Apache-2.0"
] | null | null | null | key_word/key_w.py | Den613/Vigeneur-encryption | f869edf426ca5b8d4eb766dae5a2d907b473ff9e | [
"Apache-2.0"
] | null | null | null | key_word/key_w.py | Den613/Vigeneur-encryption | f869edf426ca5b8d4eb766dae5a2d907b473ff9e | [
"Apache-2.0"
] | null | null | null | import codecs
alphabet = 'AaBbCcDdEeFfGgHhIiJjKkLlMmNnOoPpQqRrSsTtUuVvWwXxYyZz&0123456789!.",/\?%#@^$*+-_ :;[]=|(){}<>\r\n\ufeff\t'
filename = "hello.txt"
file_alphabet = "alphabet.txt"
m = []
word_mass = []
word_size = []
index_word = []
index_key = []
secret = []
secret_word = []
test = []
test2 = []
n... | 27.766355 | 204 | 0.564793 |
04d9db4a9bc6ee01e77a8adb2a5269415427a678 | 289 | py | Python | pingdom.py | SamJC-FG/microblog-ipset-builder-examples | 6850acbbde8f589bb52cdce56bdad4741d8f8345 | [
"MIT"
] | null | null | null | pingdom.py | SamJC-FG/microblog-ipset-builder-examples | 6850acbbde8f589bb52cdce56bdad4741d8f8345 | [
"MIT"
] | null | null | null | pingdom.py | SamJC-FG/microblog-ipset-builder-examples | 6850acbbde8f589bb52cdce56bdad4741d8f8345 | [
"MIT"
] | null | null | null | import urllib.request
IPSET = []
IPLISTLINK = "https://my.pingdom.com/probes/ipv4"
IPLIST = urllib.request.urlopen(IPLISTLINK)
for ADDRESS in IPLIST:
IPSETENTRY = (ADDRESS.decode().rstrip() + '/32') #Tack on a '/32' to the entry, and append it to the list
IPSET.append(IPSETENTRY) | 36.125 | 109 | 0.712803 |
04da2e15a335406e6f4dd700f0737fbc8626cd7a | 215 | py | Python | transformer/archs/constants.py | adriens63/transformer_for_translation | b22294f2d75970921436a63b3f622e418df98cdc | [
"Apache-2.0"
] | null | null | null | transformer/archs/constants.py | adriens63/transformer_for_translation | b22294f2d75970921436a63b3f622e418df98cdc | [
"Apache-2.0"
] | null | null | null | transformer/archs/constants.py | adriens63/transformer_for_translation | b22294f2d75970921436a63b3f622e418df98cdc | [
"Apache-2.0"
] | null | null | null | # Globales
import tensorflow as tf
AUTOTUNE = tf.data.AUTOTUNE
BATCH_SIZE = 32
BUFFER_SIZE = 20000
EMBEDDING_DIM = 512
MAX_SEQ_LENGTH = 200
INPUT_VOCAB_SIZE = 8500
TARGET_VOCAB_SIZE = 8000
EPS_LAYERNORM = 1e-6 | 13.4375 | 27 | 0.781395 |
04da942761809a2a42e2d9b2d3d0dfd06b8ec734 | 155 | py | Python | coursera/a_7_1_reading_file.py | polde-live/learnpython | ff8ec96db1951d99797205d0bd491e542152a36f | [
"Unlicense"
] | null | null | null | coursera/a_7_1_reading_file.py | polde-live/learnpython | ff8ec96db1951d99797205d0bd491e542152a36f | [
"Unlicense"
] | null | null | null | coursera/a_7_1_reading_file.py | polde-live/learnpython | ff8ec96db1951d99797205d0bd491e542152a36f | [
"Unlicense"
] | null | null | null | # Use words.txt as the file name
fname = raw_input("Enter file name: ")
f = open(fname, 'r')
for line in f:
print line.upper().strip()
f.close() | 17.222222 | 38 | 0.625806 |
04dac8a52ec4cb9223eff83bae00cb4a1da30c00 | 416 | py | Python | nxos_config_import/migrations/0010_objectconfigurationstatus_post_url.py | j-sulliman/acici | 25f20bf2cdc1ceb1b4752ef0608e9628035912d3 | [
"BSD-3-Clause"
] | 4 | 2019-07-20T11:37:32.000Z | 2020-02-03T07:09:12.000Z | nxos_config_import/migrations/0010_objectconfigurationstatus_post_url.py | j-sulliman/acici | 25f20bf2cdc1ceb1b4752ef0608e9628035912d3 | [
"BSD-3-Clause"
] | 8 | 2019-12-04T23:46:30.000Z | 2021-06-10T18:30:30.000Z | nxos_config_import/migrations/0010_objectconfigurationstatus_post_url.py | j-sulliman/acici | 25f20bf2cdc1ceb1b4752ef0608e9628035912d3 | [
"BSD-3-Clause"
] | null | null | null | # Generated by Django 2.1.7 on 2019-03-22 01:36
from django.db import migrations, models
| 21.894737 | 58 | 0.622596 |
04dd3b788698077b178ed55a5fd834669dc3492c | 1,480 | py | Python | zadanie1.py | Rostislav9821/Lab_21 | 30e64f81620c3486dae3ff48f10a5731502eb6c3 | [
"MIT"
] | null | null | null | zadanie1.py | Rostislav9821/Lab_21 | 30e64f81620c3486dae3ff48f10a5731502eb6c3 | [
"MIT"
] | null | null | null | zadanie1.py | Rostislav9821/Lab_21 | 30e64f81620c3486dae3ff48f10a5731502eb6c3 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
# -*- config: utf-8 -*-
from tkinter import *
root = Tk()
c = Canvas(width=300, height=300, bg='white')
c.grid(row=0, column=0)
Button(bg='lightgrey', text=' ', command=add).grid(row=2, column=0)
root.mainloop() | 26.428571 | 82 | 0.556757 |
04dde2f85954593106946072815ed92e1a0540c0 | 3,762 | py | Python | test/db_retriable.py | Galeria-Kaufhof/private-postgres-rds | 729e7e4cd44ea7c1f87f0fd52dc16e5562cf06a4 | [
"MIT"
] | 7 | 2017-04-13T07:12:43.000Z | 2019-03-06T21:31:10.000Z | test/db_retriable.py | Galeria-Kaufhof/private-postgres-rds | 729e7e4cd44ea7c1f87f0fd52dc16e5562cf06a4 | [
"MIT"
] | null | null | null | test/db_retriable.py | Galeria-Kaufhof/private-postgres-rds | 729e7e4cd44ea7c1f87f0fd52dc16e5562cf06a4 | [
"MIT"
] | 3 | 2017-04-13T09:38:17.000Z | 2019-08-28T00:43:47.000Z | import logging
import psycopg2
import psycopg2.extras
import socket
import sys
import time
from cluster_under_test import *
| 31.881356 | 103 | 0.586922 |
04e15332165db50ca2595efc1c1405cdaf8f0cf7 | 1,475 | py | Python | confgen/merge_xdconf_ini.py | gaps-closure/HAL | 91eb29f27181589357b76eeb361e23849c70fa62 | [
"BSD-3-Clause"
] | null | null | null | confgen/merge_xdconf_ini.py | gaps-closure/HAL | 91eb29f27181589357b76eeb361e23849c70fa62 | [
"BSD-3-Clause"
] | null | null | null | confgen/merge_xdconf_ini.py | gaps-closure/HAL | 91eb29f27181589357b76eeb361e23849c70fa62 | [
"BSD-3-Clause"
] | null | null | null | #!/usr/bin/python3
import json
from argparse import ArgumentParser
if __name__ == '__main__':
main()
| 30.102041 | 103 | 0.597288 |
04e20b9b8ee4536762c316aa5271c0efd92cc39c | 197 | py | Python | vidaug/augmentors/__init__.py | redzhepdx/vidaug | 47ed8605c8976c7cd46a0bfad187504ee6e99287 | [
"MIT"
] | 1 | 2020-09-14T14:05:24.000Z | 2020-09-14T14:05:24.000Z | vidaug/augmentors/__init__.py | redzhepdx/vidaug | 47ed8605c8976c7cd46a0bfad187504ee6e99287 | [
"MIT"
] | null | null | null | vidaug/augmentors/__init__.py | redzhepdx/vidaug | 47ed8605c8976c7cd46a0bfad187504ee6e99287 | [
"MIT"
] | null | null | null | from __future__ import absolute_import
from .affine import *
from .crop import *
from .flip import *
from .geometric import *
from .group import *
from .intensity import *
from .temporal import *
| 19.7 | 38 | 0.761421 |
04e6812c31bca9e3da8647d5ee1b8ccee0cd0fcf | 1,018 | py | Python | tests/runtime/rpc/device/conftest.py | fixstars/arachne | 03c00fc5105991d0d706b935d77e6f9255bae9e7 | [
"MIT"
] | 3 | 2022-03-29T03:02:20.000Z | 2022-03-29T03:48:38.000Z | tests/runtime/rpc/device/conftest.py | fixstars/arachne | 03c00fc5105991d0d706b935d77e6f9255bae9e7 | [
"MIT"
] | null | null | null | tests/runtime/rpc/device/conftest.py | fixstars/arachne | 03c00fc5105991d0d706b935d77e6f9255bae9e7 | [
"MIT"
] | 1 | 2022-03-29T05:44:12.000Z | 2022-03-29T05:44:12.000Z | import pytest
| 31.8125 | 143 | 0.666012 |
04e8d0e9ff239a8ce726752d726dd36f5030b1dc | 1,875 | py | Python | servers/python/coweb/auth/ini.py | opencoweb/coweb | 7b3a87ee9eda735a859447d404ee16edde1c5671 | [
"AFL-2.1"
] | 83 | 2015-01-05T19:02:57.000Z | 2021-11-19T02:48:09.000Z | servers/python/coweb/auth/ini.py | xuelingxiao/coweb | 7b3a87ee9eda735a859447d404ee16edde1c5671 | [
"AFL-2.1"
] | 3 | 2015-12-16T13:49:33.000Z | 2019-06-17T13:38:50.000Z | servers/python/coweb/auth/ini.py | xuelingxiao/coweb | 7b3a87ee9eda735a859447d404ee16edde1c5671 | [
"AFL-2.1"
] | 14 | 2015-04-29T22:36:53.000Z | 2021-11-18T03:24:29.000Z | '''
Copyright (c) The Dojo Foundation 2011. All Rights Reserved.
Copyright (c) IBM Corporation 2008, 2011. All Rights Reserved.
'''
# std lib
import ConfigParser
# tornado
import tornado.web
from base import AuthBase | 32.327586 | 75 | 0.633067 |
04e8e3089be7716286daa298c66787746a4e98c2 | 1,840 | py | Python | administrator/controller/loginController.py | augustoberwaldt/skin-system | 4ca878d3062abcf3f68c044abaaa631c88f40c5b | [
"MIT"
] | 2 | 2017-08-29T14:17:44.000Z | 2017-08-31T14:40:39.000Z | administrator/controller/loginController.py | augustoberwaldt/diseases-recognition | 4ca878d3062abcf3f68c044abaaa631c88f40c5b | [
"MIT"
] | 2 | 2020-02-11T23:27:55.000Z | 2020-06-05T17:30:29.000Z | administrator/controller/loginController.py | augustoberwaldt/diseases-recognition | 4ca878d3062abcf3f68c044abaaa631c88f40c5b | [
"MIT"
] | null | null | null | from django.shortcuts import render, redirect
from django.contrib.auth import authenticate, login, logout
from administrator.formsModel import FormUser
from django.contrib import messages
import json
| 32.857143 | 105 | 0.640761 |
04ebd2c50f2a32da0626defd3cb16a5dc32351f1 | 987 | py | Python | Implementation/between_two_sets.py | osamadel/Hacker-Rank | b8bd64daf1e5deeb89b64b9399c0d14c50fe0719 | [
"MIT"
] | null | null | null | Implementation/between_two_sets.py | osamadel/Hacker-Rank | b8bd64daf1e5deeb89b64b9399c0d14c50fe0719 | [
"MIT"
] | null | null | null | Implementation/between_two_sets.py | osamadel/Hacker-Rank | b8bd64daf1e5deeb89b64b9399c0d14c50fe0719 | [
"MIT"
] | null | null | null | import os
import sys
from math import gcd
from functools import reduce
#
# Complete the getTotalX function below.
#
if __name__ == '__main__':
# f = open(os.environ['OUTPUT_PATH'], 'w')
nm = input().split()
n = int(nm[0])
m = int(nm[1])
a = list(map(int, input().rstrip().split()))
b... | 19.352941 | 48 | 0.553191 |
04eca308eb0d6d73b5d0cadfa2fc74793a222035 | 3,081 | py | Python | contentcuration/contentcuration/viewsets/task.py | rgaudin/studio | f6ce46e012c59bfd8cc38c3610db25829a3628f3 | [
"MIT"
] | 1 | 2019-03-30T18:14:25.000Z | 2019-03-30T18:14:25.000Z | contentcuration/contentcuration/viewsets/task.py | rgaudin/studio | f6ce46e012c59bfd8cc38c3610db25829a3628f3 | [
"MIT"
] | 1 | 2020-07-22T02:39:07.000Z | 2020-07-22T12:30:16.000Z | contentcuration/contentcuration/viewsets/task.py | MisRob/studio | 92a5c780c8952f7d37db38952483ab7a28d3cb9d | [
"MIT"
] | null | null | null | from django.conf import settings
from django_filters.rest_framework import DjangoFilterBackend
from django_filters.rest_framework import UUIDFilter
from rest_framework.permissions import IsAuthenticated
from contentcuration.celery import app
from contentcuration.models import Channel
from contentcuration.models import... | 36.678571 | 112 | 0.618306 |
04edaa5ce92d5bfe8f5eaee459f3772e4b653c53 | 1,460 | py | Python | server_py/flatgov/events/views.py | aih/BillMap | d130b1396cb25b415cd7d9ea7389ad558a34eec1 | [
"CC0-1.0"
] | 2 | 2022-01-18T14:55:52.000Z | 2022-01-31T03:38:39.000Z | server_py/flatgov/events/views.py | aih/FlatGov | 8201ef1813bbc062841421017f492e877f75a5f8 | [
"CC0-1.0"
] | 321 | 2020-09-01T16:20:35.000Z | 2021-07-03T06:42:34.000Z | server_py/flatgov/events/views.py | aih/FlatGov | 8201ef1813bbc062841421017f492e877f75a5f8 | [
"CC0-1.0"
] | 1 | 2022-03-31T15:02:49.000Z | 2022-03-31T15:02:49.000Z | from django.shortcuts import render
from django.http import HttpResponse, JsonResponse
from django.core import serializers
from .models import Event
from .serializers import EventSerializer
from django.db.models import Q
import datetime
| 29.2 | 99 | 0.668493 |
04edbc97eb573dfcb7e904909241b79004e0cf18 | 901 | py | Python | setup.py | vicrsp/rto | e9e0b87533ae6bc5e6ad228bb26172384802f9b7 | [
"MIT"
] | null | null | null | setup.py | vicrsp/rto | e9e0b87533ae6bc5e6ad228bb26172384802f9b7 | [
"MIT"
] | 17 | 2020-10-24T18:03:54.000Z | 2020-11-11T22:25:16.000Z | setup.py | vicrsp/rto | e9e0b87533ae6bc5e6ad228bb26172384802f9b7 | [
"MIT"
] | null | null | null | from setuptools import setup, find_packages
setup(
name='rtotools',
version='0.1.0',
description='Real-Time Optimization Tools',
url='https://github.com/vicrsp/rto',
author='Victor Ruela',
author_email='victorspruela@ufmg.br',
license='MIT',
package_dir={"": "src"},
packages=fin... | 31.068966 | 53 | 0.507214 |
04eddc8bdb6ec2b2c7b89832a4aae4924f428c67 | 1,519 | py | Python | sdk/keyvault/azure-keyvault-certificates/tests/_test_case.py | GoWang/azure-sdk-for-python | f241e3734a50953c2a37c10d2d84eb4c013b3ba0 | [
"MIT"
] | 1 | 2021-09-07T18:35:49.000Z | 2021-09-07T18:35:49.000Z | sdk/keyvault/azure-keyvault-certificates/tests/_test_case.py | GoWang/azure-sdk-for-python | f241e3734a50953c2a37c10d2d84eb4c013b3ba0 | [
"MIT"
] | 1 | 2021-06-23T14:50:11.000Z | 2021-06-24T12:26:05.000Z | sdk/keyvault/azure-keyvault-certificates/tests/_test_case.py | GoWang/azure-sdk-for-python | f241e3734a50953c2a37c10d2d84eb4c013b3ba0 | [
"MIT"
] | null | null | null | # ------------------------------------
# Copyright (c) Microsoft Corporation.
# Licensed under the MIT License.
# ------------------------------------
from azure.keyvault.certificates._shared import HttpChallengeCache
from azure.keyvault.certificates._shared.client_base import DEFAULT_VERSION
from devtools_testutils im... | 42.194444 | 110 | 0.705069 |
04edf2cd7b79a775bc8534aa2e76dacd68eb62e8 | 668 | py | Python | BeamlineStatusLogger/logger.py | DESY-P02-1/BeamlineStatusLogger | 7e95d9216bb25a6c3cc3cf117cb6fe47e754e779 | [
"MIT"
] | null | null | null | BeamlineStatusLogger/logger.py | DESY-P02-1/BeamlineStatusLogger | 7e95d9216bb25a6c3cc3cf117cb6fe47e754e779 | [
"MIT"
] | 5 | 2020-08-26T12:52:56.000Z | 2022-01-05T16:59:39.000Z | BeamlineStatusLogger/logger.py | DESY-P02-1/BeamlineStatusLogger | 7e95d9216bb25a6c3cc3cf117cb6fe47e754e779 | [
"MIT"
] | null | null | null | from collections import Iterable
| 23.034483 | 56 | 0.583832 |
04ef06e5dcbd3424cf55c28bd283b02d45bfdad0 | 195 | py | Python | chapter-04/exercise005.py | krastin/pp-cs3.0 | 502be9aac2d84215db176864e443c219e5e26591 | [
"MIT"
] | null | null | null | chapter-04/exercise005.py | krastin/pp-cs3.0 | 502be9aac2d84215db176864e443c219e5e26591 | [
"MIT"
] | null | null | null | chapter-04/exercise005.py | krastin/pp-cs3.0 | 502be9aac2d84215db176864e443c219e5e26591 | [
"MIT"
] | null | null | null | x = 3
y = 12.5
print('The rabbit is ', x, '.', sep='')
print('The rabbit is', x, 'years old.')
print(y, 'is average.')
print(y, ' * ', x, '.', sep='')
print(y, ' * ', x, ' is ', x*y, '.', sep='') | 27.857143 | 44 | 0.461538 |
04efda0cbdd1c825ae596ff29f999628d80ef0ca | 4,484 | py | Python | tdigest/__init__.py | kpdemetriou/tdigest-cffi | 3bd5e86151a5cc23072d30e42f3392267bfc9067 | [
"BSD-3-Clause"
] | 2 | 2020-01-03T13:41:42.000Z | 2022-02-17T06:26:10.000Z | tdigest/__init__.py | kpdemetriou/tdigest-cffi | 3bd5e86151a5cc23072d30e42f3392267bfc9067 | [
"BSD-3-Clause"
] | 2 | 2020-11-02T03:33:49.000Z | 2020-11-02T04:42:16.000Z | tdigest/__init__.py | kpdemetriou/tdigest-cffi | 3bd5e86151a5cc23072d30e42f3392267bfc9067 | [
"BSD-3-Clause"
] | 1 | 2019-12-14T05:37:29.000Z | 2019-12-14T05:37:29.000Z | from collections import namedtuple
from readerwriterlock.rwlock import RWLockWrite
from ._tdigest import lib as _lib
DEFAULT_COMPRESSION = 400
Centroid = namedtuple("Centroid", ("weight", "mean"))
class TDigest(RawTDigest):
def insert(self, value, weight=1):
with self._lock.gen_wlock():
re... | 27.509202 | 80 | 0.618198 |
04f0deff79f6d3b646d9f8784d7355797524c9c9 | 2,958 | py | Python | Crunchyroll_Keypad/Crunchyroll_Keypad.py | Benjamin-Valderrama/Arduino | 1042fb0ecade26470cefc3bb1f6484492a5844d5 | [
"CC0-1.0"
] | null | null | null | Crunchyroll_Keypad/Crunchyroll_Keypad.py | Benjamin-Valderrama/Arduino | 1042fb0ecade26470cefc3bb1f6484492a5844d5 | [
"CC0-1.0"
] | null | null | null | Crunchyroll_Keypad/Crunchyroll_Keypad.py | Benjamin-Valderrama/Arduino | 1042fb0ecade26470cefc3bb1f6484492a5844d5 | [
"CC0-1.0"
] | null | null | null | #Things to add:
#
#
import pyautogui as pag
import time
import webbrowser as wb
import serial
# Instructions
instructions = ''' Select one of the followings : \n
\t 0 : Lunching the app
\t 1 : Previous Chapter
\t 2 : Next Chapter
\t 3 : Saving the current Chapter
\t 4 : Saving the current Chapter and Exit
\t 9 : Fini... | 26.176991 | 108 | 0.6643 |
04f0f376222a8dd88886d737c5f5530edda3b637 | 185 | py | Python | fishfood/tmp_leds.py | fberlinger/BlueSwarm | cde3de25be68ba728ff31c26a7c7fbe3ff1aa6d8 | [
"MIT"
] | 1 | 2021-10-04T20:44:01.000Z | 2021-10-04T20:44:01.000Z | fishfood/tmp_leds.py | fberlinger/BlueSwarm | cde3de25be68ba728ff31c26a7c7fbe3ff1aa6d8 | [
"MIT"
] | null | null | null | fishfood/tmp_leds.py | fberlinger/BlueSwarm | cde3de25be68ba728ff31c26a7c7fbe3ff1aa6d8 | [
"MIT"
] | null | null | null | import RPi.GPIO as GPIO
GPIO.setwarnings(False)
GPIO.setmode(GPIO.BCM)
import time
from lib_utils import *
from lib_leds import LEDS
leds = LEDS()
leds.on()
time.sleep(30)
leds.off() | 14.230769 | 25 | 0.756757 |
04f126ef11ca209de47f9c77862b5d9280f3cd2d | 550 | py | Python | fitness-backend/tests/test_instructors.py | cuappdev/archives | 061d0f9cccf278363ffaeb27fc655743b1052ae5 | [
"MIT"
] | null | null | null | fitness-backend/tests/test_instructors.py | cuappdev/archives | 061d0f9cccf278363ffaeb27fc655743b1052ae5 | [
"MIT"
] | null | null | null | fitness-backend/tests/test_instructors.py | cuappdev/archives | 061d0f9cccf278363ffaeb27fc655743b1052ae5 | [
"MIT"
] | null | null | null | from tests.test_case import *
from app.dao import instructors_dao as insd
| 39.285714 | 76 | 0.763636 |
04f131de95e2f0a74879bf5f24033c5a85265efa | 154 | py | Python | ConsulClient/__init__.py | miguel-callejas-coderoad-com/consul-client | df65358c0c27d8154e4994b9b089f19b7224987e | [
"MIT"
] | null | null | null | ConsulClient/__init__.py | miguel-callejas-coderoad-com/consul-client | df65358c0c27d8154e4994b9b089f19b7224987e | [
"MIT"
] | 1 | 2021-02-02T22:48:09.000Z | 2021-02-02T22:48:09.000Z | ConsulClient/__init__.py | miguel-callejas-coderoad-com/consul-client | df65358c0c27d8154e4994b9b089f19b7224987e | [
"MIT"
] | 1 | 2021-07-27T16:47:43.000Z | 2021-07-27T16:47:43.000Z | name = 'ConsulClient'
__author__ = 'Rodrigo Alejandro Loza Lucero / lozuwaucb@gmail.com'
__version__ = '0.1.0'
__log__ = 'Consul api client for python'
| 22 | 66 | 0.74026 |
04f232e1f5eb82157f04a3e5fa13b052e8286151 | 963 | py | Python | Manager/modules/ud.py | lakshaysharmadehi/Manager | d13ea365fd2193af739ac941d3cfeaaea338fb46 | [
"MIT"
] | 17 | 2020-08-08T18:12:55.000Z | 2021-09-29T16:37:18.000Z | Manager/modules/ud.py | lakshaysharmadehi/Manager | d13ea365fd2193af739ac941d3cfeaaea338fb46 | [
"MIT"
] | 3 | 2020-12-29T03:48:57.000Z | 2020-12-29T03:59:31.000Z | Manager/modules/ud.py | lakshaysharmadehi/Manager | d13ea365fd2193af739ac941d3cfeaaea338fb46 | [
"MIT"
] | 79 | 2020-07-19T14:43:26.000Z | 2022-02-28T23:23:22.000Z | import requests
from telegram import Update, Bot, ParseMode
from telegram.ext import run_async
from Manager import dispatcher
from Manager.modules.disable import DisableAbleCommandHandler
__help__ = """
`/ud <word>`*:* Type the word or expression you want to search use.
`/urban <word>`*:* Same as `/ud`
"""
UD_... | 29.181818 | 107 | 0.703011 |
04f2a0495b108a61505d38568ea3bf1b921fa496 | 999 | py | Python | tetris/utils.py | janmaltel/pytetris | a60475c89ed0fd9666c6e0f1df42c63f62a5b2aa | [
"MIT"
] | 2 | 2019-11-19T12:54:17.000Z | 2020-08-19T13:25:35.000Z | tetris/utils.py | janmaltel/pytetris | a60475c89ed0fd9666c6e0f1df42c63f62a5b2aa | [
"MIT"
] | null | null | null | tetris/utils.py | janmaltel/pytetris | a60475c89ed0fd9666c6e0f1df42c63f62a5b2aa | [
"MIT"
] | null | null | null | from numba import njit
| 19.588235 | 55 | 0.473473 |
04f33a4db6a3d77dadc337f038d05a2584b99585 | 817 | py | Python | main/migrations/0017_auto_20200608_1908.py | eugenek45/project-review | 7fadba65968f5c4f0d4e9c75aaadb63a3c918a2b | [
"MIT",
"Unlicense"
] | null | null | null | main/migrations/0017_auto_20200608_1908.py | eugenek45/project-review | 7fadba65968f5c4f0d4e9c75aaadb63a3c918a2b | [
"MIT",
"Unlicense"
] | 7 | 2021-03-30T14:10:00.000Z | 2022-01-13T03:04:50.000Z | main/migrations/0017_auto_20200608_1908.py | NgugiMuthoni/django3 | 81569804f3f008f7a0430ecf00186e7097aca64c | [
"Unlicense"
] | null | null | null | # -*- coding: utf-8 -*-
# Generated by Django 1.11 on 2020-06-08 16:08
from __future__ import unicode_literals
import datetime
from django.db import migrations, models
import django.utils.timezone
from django.utils.timezone import utc
| 27.233333 | 109 | 0.632803 |
04f3513114aad771b5cf30187c4d53ff25f870c9 | 688 | py | Python | tests/test_ClusterItemService.py | xclemence/pykube-switch | 4b7ac4565cc15469c2109e1a400d78e1d2b14404 | [
"MIT"
] | null | null | null | tests/test_ClusterItemService.py | xclemence/pykube-switch | 4b7ac4565cc15469c2109e1a400d78e1d2b14404 | [
"MIT"
] | 1 | 2020-10-11T23:25:14.000Z | 2020-10-11T23:25:14.000Z | tests/test_ClusterItemService.py | xclemence/pykube-switch | 4b7ac4565cc15469c2109e1a400d78e1d2b14404 | [
"MIT"
] | null | null | null | from pathlib import Path
from unittest import mock
from Services.ClusterItemService import ClusterItemService
from DataModels.Cluster import Cluster
| 28.666667 | 83 | 0.718023 |
04f63ab779e75495927235f6d53b49ce6e5663cb | 243 | py | Python | selftest/dir2/skipsome.py | depp/idiotest | 44c4c647b340625634931e4222482052343b369a | [
"BSD-2-Clause"
] | 1 | 2016-11-28T02:01:31.000Z | 2016-11-28T02:01:31.000Z | selftest/dir2/skipsome.py | depp/idiotest | 44c4c647b340625634931e4222482052343b369a | [
"BSD-2-Clause"
] | null | null | null | selftest/dir2/skipsome.py | depp/idiotest | 44c4c647b340625634931e4222482052343b369a | [
"BSD-2-Clause"
] | null | null | null | # Copyright 2012 Dietrich Epp <depp@zdome.net>
# See LICENSE.txt for details.
| 12.789474 | 46 | 0.662551 |
04f6a64d3c381809f0c0f17895926f4d6a5c7017 | 1,080 | py | Python | pyramid_rest_route/view.py | rickmak/pyramid_resources | b497704e23916989ef690cfb1c729fa94bd2266d | [
"MIT"
] | null | null | null | pyramid_rest_route/view.py | rickmak/pyramid_resources | b497704e23916989ef690cfb1c729fa94bd2266d | [
"MIT"
] | null | null | null | pyramid_rest_route/view.py | rickmak/pyramid_resources | b497704e23916989ef690cfb1c729fa94bd2266d | [
"MIT"
] | 2 | 2015-07-14T06:59:53.000Z | 2019-05-28T08:50:35.000Z | import logging
from pyramid.httpexceptions import HTTPNotImplemented
from pyramid.renderers import render, render_to_response
log = logging.getLogger(__name__)
| 22.978723 | 56 | 0.65 |
04f742bc66ccc10d92da681d0aa450761302098d | 5,536 | py | Python | tpDcc/libs/qt/widgets/lightbox.py | tpDcc/tpQtLib | 26b6e893395633a1b189a1b73654891b7688648d | [
"MIT"
] | 3 | 2019-08-26T05:56:12.000Z | 2019-10-03T11:35:53.000Z | tpDcc/libs/qt/widgets/lightbox.py | tpDcc/tpQtLib | 26b6e893395633a1b189a1b73654891b7688648d | [
"MIT"
] | null | null | null | tpDcc/libs/qt/widgets/lightbox.py | tpDcc/tpQtLib | 26b6e893395633a1b189a1b73654891b7688648d | [
"MIT"
] | 1 | 2019-11-10T20:45:07.000Z | 2019-11-10T20:45:07.000Z | #! /usr/bin/env python
# -*- coding: utf-8 -*-
"""
Module that contains lightbox widets
"""
from __future__ import print_function, division, absolute_import
from Qt.QtCore import Signal, QEvent
from Qt.QtWidgets import QWidget, QFrame
from tpDcc.libs.qt.core import animation
from tpDcc.libs.qt.widgets import layout... | 27.405941 | 79 | 0.600614 |
04f7aa61b6e08ff8640b93f52c8fec939d235137 | 75,909 | py | Python | backend/web_app/tests/snapshots/snap_test_statistics_report.py | jsc-masshtab/vdi-server | 3de49dec986ab26ffc6c073873fb9de5943809f9 | [
"MIT"
] | 2 | 2021-12-03T10:04:25.000Z | 2022-01-12T06:26:39.000Z | backend/web_app/tests/snapshots/snap_test_statistics_report.py | jsc-masshtab/vdi-server | 3de49dec986ab26ffc6c073873fb9de5943809f9 | [
"MIT"
] | null | null | null | backend/web_app/tests/snapshots/snap_test_statistics_report.py | jsc-masshtab/vdi-server | 3de49dec986ab26ffc6c073873fb9de5943809f9 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# snapshottest: v1 - https://goo.gl/zC4yUc
from __future__ import unicode_literals
from snapshottest import Snapshot
snapshots = Snapshot()
snapshots['test_web_statistics_report 1'] = {
'web_statistics_report': '''<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www... | 119.166405 | 618 | 0.665125 |
04f986f5d2bc2636d712aaba1ae7b62c5ec73400 | 922 | py | Python | gen_histograms.py | tobycmurray/wordle-fun | 4d71f57fc02c10ebfbeb3ceb4fb7c5744078e258 | [
"MIT"
] | null | null | null | gen_histograms.py | tobycmurray/wordle-fun | 4d71f57fc02c10ebfbeb3ceb4fb7c5744078e258 | [
"MIT"
] | null | null | null | gen_histograms.py | tobycmurray/wordle-fun | 4d71f57fc02c10ebfbeb3ceb4fb7c5744078e258 | [
"MIT"
] | null | null | null | import sys
# buckets[0] reserved for '0'
# buckets[i] for i > 0 is for values in range (i-1)*binsize+1 .. i*binsize
buckets={}
binsize=1000
maxbucket=0
for line in sys.stdin.readlines():
sp=line.split(",")
if len(sp) > 1:
word=sp[0].strip()
freq=int(sp[1].strip())
add_to_bucket(freq)
... | 22.487805 | 91 | 0.606291 |
04fa836452df3c0db70217f179586214f7ccfcb9 | 823 | py | Python | bts/utilities/dbMaker_fixedLoc.py | ellisgeek/Burn-the-Subs | c30c41b6bdba573f906c36d367547c7305017b4f | [
"MIT"
] | 10 | 2018-09-25T18:05:41.000Z | 2020-05-05T21:12:22.000Z | bts/utilities/dbMaker_fixedLoc.py | ellisgeek/Burn-the-Subs | c30c41b6bdba573f906c36d367547c7305017b4f | [
"MIT"
] | 1 | 2018-12-29T19:36:21.000Z | 2018-12-29T19:36:21.000Z | bts/utilities/dbMaker_fixedLoc.py | ellisgeek/Burn-the-Subs | c30c41b6bdba573f906c36d367547c7305017b4f | [
"MIT"
] | 6 | 2018-12-29T00:59:22.000Z | 2021-09-15T17:12:01.000Z | # Let's make an database
#
# this is like the worst code ever
#
# just to make an test DB for burn the subs
import time
from datetime import datetime
from bts.dataBaseClass import Sub
if __name__ == "__main__":
main() | 21.657895 | 46 | 0.522479 |
04fbf91a6332b5a1b474ed67ff0d7a69f456439d | 154 | py | Python | test/drafts/2016-10-17_1931 Context Integration/a01 first rough draft.py | friedrichromstedt/upy | 4b6b890259fb34bc69265fc400881587157b03a3 | [
"MIT"
] | 3 | 2015-06-01T23:09:38.000Z | 2015-10-06T13:14:23.000Z | test/drafts/2016-10-17_1931 Context Integration/a01 first rough draft.py | friedrichromstedt/upy | 4b6b890259fb34bc69265fc400881587157b03a3 | [
"MIT"
] | null | null | null | test/drafts/2016-10-17_1931 Context Integration/a01 first rough draft.py | friedrichromstedt/upy | 4b6b890259fb34bc69265fc400881587157b03a3 | [
"MIT"
] | null | null | null | import upy2
from upy2.typesetting.scientific import ScientificTypesetter
a = upy2.undarray(10, 2)
with ScientificTypesetter(2, 3):
print a
print a
| 15.4 | 60 | 0.772727 |
04fc6e784420645e1e464f0df9a379265c76388b | 10,867 | py | Python | main.py | schochastics/icwsm2021 | 667b92714f2bc332343a51337c267e58b90b92d5 | [
"MIT"
] | 1 | 2022-02-17T08:58:27.000Z | 2022-02-17T08:58:27.000Z | main.py | schochastics/icwsm2021 | 667b92714f2bc332343a51337c267e58b90b92d5 | [
"MIT"
] | null | null | null | main.py | schochastics/icwsm2021 | 667b92714f2bc332343a51337c267e58b90b92d5 | [
"MIT"
] | null | null | null | # pylint: disable=global-statement,redefined-outer-name
import argparse
import csv
import glob
import json
import os
import yaml
from flask import Flask, jsonify, redirect, render_template, send_from_directory
from flask_frozen import Freezer
from flaskext.markdown import Markdown
# ------------- SERVER CODE --------... | 26.504878 | 116 | 0.580013 |
04fd0ea991a1dee0628e690a3b5815640ac1a955 | 20,263 | py | Python | handler.py | priyank9320/logo_lambda | 0a29bd19fa6f164459049096a48594c16996504e | [
"MIT"
] | 1 | 2021-04-10T18:53:52.000Z | 2021-04-10T18:53:52.000Z | handler.py | priyank9320/logo_lambda | 0a29bd19fa6f164459049096a48594c16996504e | [
"MIT"
] | null | null | null | handler.py | priyank9320/logo_lambda | 0a29bd19fa6f164459049096a48594c16996504e | [
"MIT"
] | null | null | null | import json
#import requests
import boto3
from boto3.dynamodb.conditions import Key
import random
import tldextract
from bs4 import BeautifulSoup
from googlesearch import search
import time
import re
from requests import Session # trying to create a session, might provide some improvement
requests = Session()
headers =... | 36.774955 | 213 | 0.636431 |
04fde6a91399f1b1649e35274fd649d62fdf4bc6 | 846 | py | Python | flatpages/bootstrap.py | amol-/tgapp-flatpages | f75dafbd026a40f14d84b68669b5c2d165f896c8 | [
"MIT"
] | null | null | null | flatpages/bootstrap.py | amol-/tgapp-flatpages | f75dafbd026a40f14d84b68669b5c2d165f896c8 | [
"MIT"
] | null | null | null | flatpages/bootstrap.py | amol-/tgapp-flatpages | f75dafbd026a40f14d84b68669b5c2d165f896c8 | [
"MIT"
] | 1 | 2018-05-02T15:03:06.000Z | 2018-05-02T15:03:06.000Z | # -*- coding: utf-8 -*-
"""Setup the flatpages application"""
from __future__ import print_function
from flatpages import model
from tgext.pluggable import app_model
import logging
log = logging.getLogger(__name__)
| 26.4375 | 94 | 0.685579 |
04fe06c39db4a5cf92120d4e0a842af5e6cad5f2 | 7,964 | py | Python | models/infection/infection_demo/infection_demo.py | mit-quest/COVID19-campus-modeling | 0a45b2c492ea3ec4f301504579c6a23558e6ac65 | [
"BSD-3-Clause"
] | null | null | null | models/infection/infection_demo/infection_demo.py | mit-quest/COVID19-campus-modeling | 0a45b2c492ea3ec4f301504579c6a23558e6ac65 | [
"BSD-3-Clause"
] | null | null | null | models/infection/infection_demo/infection_demo.py | mit-quest/COVID19-campus-modeling | 0a45b2c492ea3ec4f301504579c6a23558e6ac65 | [
"BSD-3-Clause"
] | null | null | null | import os
import json
import random
import numpy as np
import pandas as pd
from pathlib import Path
from datetime import datetime
from models.common.model import Model
| 47.12426 | 150 | 0.589779 |
04fe159d755c988a213e903e5a3f55facc8d1c18 | 141 | py | Python | Olympiad Solutions/DMOJ/boolean.py | p1yush/code-DS-ALGO | f015f766e75cb61ca908e30bb600bdd6d2fb2e82 | [
"MIT"
] | 36 | 2019-12-27T08:23:08.000Z | 2022-01-24T20:35:47.000Z | Olympiad Solutions/DMOJ/boolean.py | p1yush/code-DS-ALGO | f015f766e75cb61ca908e30bb600bdd6d2fb2e82 | [
"MIT"
] | 10 | 2019-11-13T02:55:18.000Z | 2021-10-13T23:28:09.000Z | Olympiad Solutions/DMOJ/boolean.py | p1yush/code-DS-ALGO | f015f766e75cb61ca908e30bb600bdd6d2fb2e82 | [
"MIT"
] | 53 | 2020-08-15T11:08:40.000Z | 2021-10-09T15:51:38.000Z | # Ivan Carvalho
# Solution to https://dmoj.ca/problem/boolean
#!/usr/bin/env python2.7
# -*- coding : utf-8 -*-
a = raw_input()
print eval(a) | 23.5 | 45 | 0.666667 |
04fe4ca75f5e415c6e8ea98e0bd4e96df00c3f89 | 1,803 | py | Python | src/integration/clients.py | syncopated/resum.me | 5e200f675ff1ea6d0ddddfac981e482cfefc64a5 | [
"MIT"
] | 10 | 2018-10-11T06:47:00.000Z | 2020-05-05T06:26:15.000Z | src/integration/clients.py | syncopated/resum.me | 5e200f675ff1ea6d0ddddfac981e482cfefc64a5 | [
"MIT"
] | 22 | 2018-10-15T13:56:30.000Z | 2022-03-11T23:32:48.000Z | src/integration/clients.py | syncopated/resum.me | 5e200f675ff1ea6d0ddddfac981e482cfefc64a5 | [
"MIT"
] | 5 | 2018-10-16T19:12:49.000Z | 2018-10-20T07:46:47.000Z | from .mixins import (IntegrationMixin, JsonResponseIntegrationMixin,
HtmlResponseIntegrationMixin)
| 38.361702 | 75 | 0.638935 |
ca003f0cfcd65963fcb21b56988b2fd045ed4dc6 | 1,657 | py | Python | app/routers/vote.py | SatyamSuraj/fastapi | 87d59491de808e8fa37df20ed1faad8f5b195d7a | [
"MIT"
] | null | null | null | app/routers/vote.py | SatyamSuraj/fastapi | 87d59491de808e8fa37df20ed1faad8f5b195d7a | [
"MIT"
] | null | null | null | app/routers/vote.py | SatyamSuraj/fastapi | 87d59491de808e8fa37df20ed1faad8f5b195d7a | [
"MIT"
] | null | null | null | from fastapi import status, HTTPException, status, HTTPException, APIRouter
from fastapi.param_functions import Depends
from sqlalchemy.orm.session import Session
from ..database import get_db
from .. import models, schemas, oauth2
router = APIRouter(prefix="/vote", tags=["Vote"])
| 34.520833 | 91 | 0.648159 |
ca014c25d096d91028ea9e83c7bd4dbddd8eb75a | 474 | py | Python | blog/migrations/0010_auto_20201206_2106.py | gabrielstonedelza/connectdjango | b1fd2c70695ae71144cf8c473bfa9f5e37f7e9af | [
"MIT"
] | null | null | null | blog/migrations/0010_auto_20201206_2106.py | gabrielstonedelza/connectdjango | b1fd2c70695ae71144cf8c473bfa9f5e37f7e9af | [
"MIT"
] | 1 | 2020-11-04T18:29:10.000Z | 2020-11-04T18:32:44.000Z | blog/migrations/0010_auto_20201206_2106.py | gabrielstonedelza/connectdjango | b1fd2c70695ae71144cf8c473bfa9f5e37f7e9af | [
"MIT"
] | null | null | null | # Generated by Django 3.1.1 on 2020-12-06 21:06
import blog.validator
from django.db import migrations, models
| 23.7 | 107 | 0.647679 |
b6b8e6f29824ae76e1a3ea0be36034c5b768f6ae | 2,058 | py | Python | class7/ex7_nxapi_xml.py | sbyount/pyaut3 | 2fcf19851487db49d76d5b6996ee0f9194d90816 | [
"Apache-2.0"
] | 1 | 2019-04-17T02:49:58.000Z | 2019-04-17T02:49:58.000Z | class7/ex7_nxapi_xml.py | sbyount/pyaut3 | 2fcf19851487db49d76d5b6996ee0f9194d90816 | [
"Apache-2.0"
] | null | null | null | class7/ex7_nxapi_xml.py | sbyount/pyaut3 | 2fcf19851487db49d76d5b6996ee0f9194d90816 | [
"Apache-2.0"
] | null | null | null | from getpass import getpass
from nxapi_plumbing import Device
from lxml import etree
from pprint import pprint as pp
# Disable Self-signed Certificate Warnings
import requests
from requests.packages.urllib3.exceptions import InsecureRequestWarning
requests.packages.urllib3.disable_warnings(InsecureRequestWarning)
'''... | 30.716418 | 84 | 0.751701 |
b6b8f2d08d391a1621662cd793c719c7dcbdce79 | 64 | py | Python | backend/factories/__init__.py | heidal/apollo | 576743e12048985ae8ef127224e1cb8ac49acd28 | [
"MIT"
] | 2 | 2020-02-28T16:24:55.000Z | 2020-03-27T17:12:50.000Z | backend/factories/__init__.py | heidal/apollo | 576743e12048985ae8ef127224e1cb8ac49acd28 | [
"MIT"
] | 51 | 2020-02-12T20:52:08.000Z | 2022-02-27T00:23:20.000Z | backend/factories/__init__.py | heidal/apollo | 576743e12048985ae8ef127224e1cb8ac49acd28 | [
"MIT"
] | null | null | null | from .elections import * # no qa
from .users import * # no qa
| 21.333333 | 33 | 0.65625 |
b6b90e06479763706578fab36f6a27abef53dde3 | 607 | py | Python | migrations/versions/dd503a5987b5_.py | atwh0405/miniblog | 820fc2ec1b38210783a6b340827f6c0213277f3e | [
"MIT"
] | null | null | null | migrations/versions/dd503a5987b5_.py | atwh0405/miniblog | 820fc2ec1b38210783a6b340827f6c0213277f3e | [
"MIT"
] | null | null | null | migrations/versions/dd503a5987b5_.py | atwh0405/miniblog | 820fc2ec1b38210783a6b340827f6c0213277f3e | [
"MIT"
] | null | null | null | """empty message
Revision ID: dd503a5987b5
Revises: b4722c8968df
Create Date: 2016-08-30 16:48:54.954000
"""
# revision identifiers, used by Alembic.
revision = 'dd503a5987b5'
down_revision = 'b4722c8968df'
from alembic import op
import sqlalchemy as sa
| 22.481481 | 82 | 0.691928 |
b6b9913db8898e98ae280c9f805bab61c89f01e7 | 242 | py | Python | sols/1207.py | Paul11100/LeetCode | 9896c579dff1812c0c76964db8d60603ee715e35 | [
"MIT"
] | null | null | null | sols/1207.py | Paul11100/LeetCode | 9896c579dff1812c0c76964db8d60603ee715e35 | [
"MIT"
] | null | null | null | sols/1207.py | Paul11100/LeetCode | 9896c579dff1812c0c76964db8d60603ee715e35 | [
"MIT"
] | null | null | null | from collections import Counter
| 26.888889 | 57 | 0.644628 |
b6b9e50dcc239d248e5f15f0184951362519c58c | 7,604 | py | Python | abstract_rendering/numeric.py | detrout/python-abstract-rendering | 331bc72d83d8429c547ff326a7853debbebaf471 | [
"BSD-3-Clause-Open-MPI"
] | null | null | null | abstract_rendering/numeric.py | detrout/python-abstract-rendering | 331bc72d83d8429c547ff326a7853debbebaf471 | [
"BSD-3-Clause-Open-MPI"
] | null | null | null | abstract_rendering/numeric.py | detrout/python-abstract-rendering | 331bc72d83d8429c547ff326a7853debbebaf471 | [
"BSD-3-Clause-Open-MPI"
] | null | null | null | from __future__ import print_function, division, absolute_import
from six.moves import reduce
import numpy as np
import math
import abstract_rendering.core as core
import abstract_rendering.util as util
# ----------- Aggregators -----------
# -------------- Shaders -----------------
| 30.785425 | 78 | 0.577065 |
b6ba62c3cfefae1fe3bb674ae28fc965cf41c58a | 1,830 | py | Python | docs/server/server.py | p-koscielniak/hexagonjs | 02d54e72d03eb8674a0d55996b057881aa9da93c | [
"Apache-2.0"
] | 61 | 2015-12-04T19:43:20.000Z | 2020-01-10T20:22:20.000Z | docs/server/server.py | p-koscielniak/hexagonjs | 02d54e72d03eb8674a0d55996b057881aa9da93c | [
"Apache-2.0"
] | 546 | 2015-12-04T19:44:34.000Z | 2021-06-15T15:19:45.000Z | docs/server/server.py | p-koscielniak/hexagonjs | 02d54e72d03eb8674a0d55996b057881aa9da93c | [
"Apache-2.0"
] | 25 | 2015-12-05T09:13:01.000Z | 2021-08-13T00:59:51.000Z | import os
import os.path
import webapp2
import logging
from webapp2 import WSGIApplication, Route
from google.appengine.api import users
# hack until we can make this public
cache = dict()
app = WSGIApplication([
Route(r'/<:.*>', handler=Content)
], debug=True)
| 29.047619 | 72 | 0.610383 |
b6bac8756d9b92c61f392defe060acf7353cfe9f | 1,374 | py | Python | lib/crypto/webpay.py | oremj/zamboni | a751dc6d22f7af947da327b0a091cbab0a999f49 | [
"BSD-3-Clause"
] | null | null | null | lib/crypto/webpay.py | oremj/zamboni | a751dc6d22f7af947da327b0a091cbab0a999f49 | [
"BSD-3-Clause"
] | null | null | null | lib/crypto/webpay.py | oremj/zamboni | a751dc6d22f7af947da327b0a091cbab0a999f49 | [
"BSD-3-Clause"
] | null | null | null | import hashlib
import uuid
from django.conf import settings
import commonware.log
from moz_inapp_pay.verify import verify_claims, verify_keys
import jwt
log = commonware.log.getLogger('z.crypto')
secret = settings.APP_PURCHASE_SECRET
| 25.444444 | 72 | 0.664483 |
b6bb0ebad4fee1a380ef6801d334c76f1cac2bbb | 9,684 | py | Python | pipeline_student.py | wmpauli/knowledge_distillation | 7e8a508a656b2e10757bda9366139fd73be89b5b | [
"MIT"
] | 10 | 2019-06-06T20:16:28.000Z | 2020-01-27T01:15:13.000Z | pipeline_student.py | wmpauli/knowledge_distillation | 7e8a508a656b2e10757bda9366139fd73be89b5b | [
"MIT"
] | null | null | null | pipeline_student.py | wmpauli/knowledge_distillation | 7e8a508a656b2e10757bda9366139fd73be89b5b | [
"MIT"
] | 19 | 2019-06-06T20:17:07.000Z | 2019-11-19T00:39:58.000Z | # This file is used to define an AML pipeline for training the teacher on new labeled data
import json
import shutil
import os
from azureml.core import Workspace, Run, Experiment, Datastore
from azureml.data.data_reference import DataReference
from azureml.pipeline.core.schedule import ScheduleRecurrence, Schedule
fr... | 36.961832 | 134 | 0.738744 |
b6bbae04af00bbd61a82163c1307ab044be24aef | 15,620 | py | Python | pymtl3/stdlib/rtl/queues.py | hsqforfun/pymtl3 | 05e06601cf262a663a95d1235cb99056ece84580 | [
"BSD-3-Clause"
] | 1 | 2019-11-12T12:26:01.000Z | 2019-11-12T12:26:01.000Z | pymtl3/stdlib/rtl/queues.py | hsqforfun/pymtl3 | 05e06601cf262a663a95d1235cb99056ece84580 | [
"BSD-3-Clause"
] | null | null | null | pymtl3/stdlib/rtl/queues.py | hsqforfun/pymtl3 | 05e06601cf262a663a95d1235cb99056ece84580 | [
"BSD-3-Clause"
] | null | null | null | """
-------------------------------------------------------------------------
Library of RTL queues
-------------------------------------------------------------------------
Author : Yanghui Ou
Date : Mar 23, 2019
"""
from pymtl3 import *
from pymtl3.stdlib.ifcs import DeqIfcRTL, EnqIfcRTL
from pymtl3.stdlib.rtl i... | 25.648604 | 78 | 0.509219 |
b6bbe0b91723e8e556172a107b92187c12fd2c67 | 33,962 | py | Python | zucker.py | p0sitive/Zucker | 4650b3c592ef97c7e1ba5a48bbdd0a03eee37a0f | [
"Apache-2.0"
] | 79 | 2020-03-19T06:42:18.000Z | 2022-02-25T08:16:45.000Z | zucker.py | p0sitive/Zucker | 4650b3c592ef97c7e1ba5a48bbdd0a03eee37a0f | [
"Apache-2.0"
] | 2 | 2021-02-25T06:12:07.000Z | 2021-06-18T09:26:50.000Z | zucker.py | p0sitive/Zucker | 4650b3c592ef97c7e1ba5a48bbdd0a03eee37a0f | [
"Apache-2.0"
] | 12 | 2020-03-20T03:37:59.000Z | 2022-02-22T07:17:35.000Z | # coding=utf-8
#
# Copyright Zucker
#
# 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 w... | 39.908343 | 119 | 0.523703 |
b6bda7f3a6c152d1c774609be82c07ddb95b60bc | 1,425 | py | Python | fastapi-master-api/app/api/models/machine.py | SionAbes/fullstack-porfolio | 6ca74da425a0f6e2d9b65b2aeb8d5452ff1565a9 | [
"MIT"
] | 1 | 2021-12-25T09:19:25.000Z | 2021-12-25T09:19:25.000Z | fastapi-master-api/app/api/models/machine.py | SionAbes/fullstack-porfolio | 6ca74da425a0f6e2d9b65b2aeb8d5452ff1565a9 | [
"MIT"
] | null | null | null | fastapi-master-api/app/api/models/machine.py | SionAbes/fullstack-porfolio | 6ca74da425a0f6e2d9b65b2aeb8d5452ff1565a9 | [
"MIT"
] | null | null | null | # coding: utf-8
from __future__ import annotations
import re # noqa: F401
from datetime import date, datetime # noqa: F401
from typing import Any, Dict, List, Optional # noqa: F401
from pydantic import AnyUrl, BaseModel, EmailStr, validator # noqa: F401
Machine.update_forward_refs()
| 30.978261 | 96 | 0.691228 |
b6bef46d031d04d1b581fe00f4ca15d66a4b7ad8 | 781 | py | Python | daemon/lib/traceroute.py | shawnduong/CyberTrace | d62e95e36bf7d79fed5f38038e96bb3f7d08117b | [
"MIT"
] | 2 | 2021-11-15T18:42:39.000Z | 2021-12-13T02:09:26.000Z | daemon/lib/traceroute.py | shawnduong/CyberTrace | d62e95e36bf7d79fed5f38038e96bb3f7d08117b | [
"MIT"
] | 4 | 2021-11-23T00:39:50.000Z | 2021-12-11T03:50:48.000Z | daemon/lib/traceroute.py | shawnduong/CyberTrace | d62e95e36bf7d79fed5f38038e96bb3f7d08117b | [
"MIT"
] | null | null | null | import subprocess
def traceroute(dest: str) -> dict:
"""
Trace the route to some destination IP and return a dict of intermediates.
In order to prevent the daemon itself from needing to run with elevated
privileges, this is primarily handled by the system's traceroute utility.
"""
# Sanitize input.
for char in... | 20.025641 | 75 | 0.646607 |
b6bf9073a5e0283bc561b7d307f6b3787db6252b | 2,776 | py | Python | tests/providers/amazon/aws/links/test_base.py | holly-evans/airflow | 865406cbab4defd35c95afbf0a8d5987ff7788b1 | [
"Apache-2.0"
] | 3 | 2017-08-06T23:19:48.000Z | 2018-05-11T05:50:25.000Z | tests/providers/amazon/aws/links/test_base.py | holly-evans/airflow | 865406cbab4defd35c95afbf0a8d5987ff7788b1 | [
"Apache-2.0"
] | 20 | 2016-11-21T22:54:28.000Z | 2018-10-28T20:03:13.000Z | tests/providers/amazon/aws/links/test_base.py | holly-evans/airflow | 865406cbab4defd35c95afbf0a8d5987ff7788b1 | [
"Apache-2.0"
] | 3 | 2016-10-13T09:59:18.000Z | 2017-02-22T11:29:09.000Z | # Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not u... | 33.047619 | 105 | 0.623919 |
b6bfdebde7d1a6fa2a649af7388ae0caea348982 | 5,944 | py | Python | nematus/lm.py | thompsonb/DL4MT | 31da3b5105368c270a4f9ea66b7d134b964082bf | [
"BSD-3-Clause"
] | 22 | 2017-09-29T09:43:59.000Z | 2021-03-31T03:57:52.000Z | nematus/lm.py | thompsonb/DL4MT | 31da3b5105368c270a4f9ea66b7d134b964082bf | [
"BSD-3-Clause"
] | 3 | 2018-04-15T12:57:18.000Z | 2020-02-25T12:43:21.000Z | nematus/lm.py | thompsonb/DL4MT | 31da3b5105368c270a4f9ea66b7d134b964082bf | [
"BSD-3-Clause"
] | 13 | 2017-07-18T03:45:52.000Z | 2019-10-09T05:16:02.000Z | import kenlm
import os
import pickle
import tempfile
import zipfile
from config import KENLM_PATH
from pyro_utils import BGProc
from config import PORT_NUMBER, TEMP_DIR
import time
import subprocess
import shlex
def lm_factory(model_file_name):
"""
Peek inside model and see which language model class... | 33.206704 | 138 | 0.669751 |
b6c00cac69dc1fa9a1b260a01c5bd6487bccf0d5 | 1,224 | py | Python | comments/models.py | ansuleymanova/comment_tree | ae6b222b7380501896fa1de8127afd00a4f33d10 | [
"MIT"
] | null | null | null | comments/models.py | ansuleymanova/comment_tree | ae6b222b7380501896fa1de8127afd00a4f33d10 | [
"MIT"
] | null | null | null | comments/models.py | ansuleymanova/comment_tree | ae6b222b7380501896fa1de8127afd00a4f33d10 | [
"MIT"
] | null | null | null | from django.db import models
from articles.models import Article
from users.models import User
| 36 | 64 | 0.474673 |
b6c07045088570926bc090c285d813df5cfdce80 | 1,954 | py | Python | Dijkstra/Python/Dijkstra.py | DorAzaria/Problems-on-Algorithms-2 | 88b8e93f11bb290114af83e6015e79bf2b2f4a50 | [
"MIT"
] | 7 | 2021-03-18T20:10:15.000Z | 2021-07-01T10:41:21.000Z | Dijkstra/Python/Dijkstra.py | DorAzaria/Problems-on-Algorithms-2 | 88b8e93f11bb290114af83e6015e79bf2b2f4a50 | [
"MIT"
] | null | null | null | Dijkstra/Python/Dijkstra.py | DorAzaria/Problems-on-Algorithms-2 | 88b8e93f11bb290114af83e6015e79bf2b2f4a50 | [
"MIT"
] | 1 | 2021-07-01T15:16:41.000Z | 2021-07-01T15:16:41.000Z | inf = 100000
if __name__ == '__main__':
matrix = [[0, 2, inf, inf, inf, inf, inf],
[2, 0, 2, 5, inf, inf, inf],
[inf, 2, 0, inf, inf, inf, inf],
[inf, 5, inf, 0, 7, 5, inf],
[inf, inf, inf, 7, 0, inf, 2],
[inf, inf, inf, 5, inf, 0, inf],
... | 27.521127 | 84 | 0.564483 |
b6c0ce5348b2544ed4ba06a29d38defa0838c986 | 1,040 | py | Python | tests/test_controls_loki.py | chaostoolkit-incubator/chaostoolkit-grafana | 8888199da589d4debf5659bccd626a9e3dac537b | [
"Apache-2.0"
] | null | null | null | tests/test_controls_loki.py | chaostoolkit-incubator/chaostoolkit-grafana | 8888199da589d4debf5659bccd626a9e3dac537b | [
"Apache-2.0"
] | null | null | null | tests/test_controls_loki.py | chaostoolkit-incubator/chaostoolkit-grafana | 8888199da589d4debf5659bccd626a9e3dac537b | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
import requests_mock
from chaoslib.run import EventHandlerRegistry
from logzero import logger
from chaosgrafana.controls.loki import configure_control
| 31.515152 | 78 | 0.649038 |
b6c12183f18504e95e562202e14874e463998aa1 | 1,292 | py | Python | LianJiaWangModel.py | stonewin540/python-web-spider | 86686dfd3b0c4c5353ec0f47de154b98a64f2439 | [
"MIT"
] | null | null | null | LianJiaWangModel.py | stonewin540/python-web-spider | 86686dfd3b0c4c5353ec0f47de154b98a64f2439 | [
"MIT"
] | null | null | null | LianJiaWangModel.py | stonewin540/python-web-spider | 86686dfd3b0c4c5353ec0f47de154b98a64f2439 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
""""""
__author__ = 'stone'
import re
import LianJiaWangConfig
| 26.916667 | 68 | 0.468266 |
b6c3c9f4d9e476bd33881f7324d3825efb06845a | 1,523 | py | Python | src/mmciad/utils/postprocessing.py | bjtho08/mmciad | e41e44a64b6dcacf63f7372db1bb50f805948e0b | [
"MIT"
] | null | null | null | src/mmciad/utils/postprocessing.py | bjtho08/mmciad | e41e44a64b6dcacf63f7372db1bb50f805948e0b | [
"MIT"
] | null | null | null | src/mmciad/utils/postprocessing.py | bjtho08/mmciad | e41e44a64b6dcacf63f7372db1bb50f805948e0b | [
"MIT"
] | null | null | null | import numpy as np
| 28.203704 | 93 | 0.520683 |
b6c474ae33c97a1dbbfe07fec9eef1d5d852df92 | 1,273 | py | Python | scripts/simRun.py | taoenkh/resilientdb | 1c811604c33bd0b44620345e71f0d15b4ed43dd8 | [
"MIT"
] | null | null | null | scripts/simRun.py | taoenkh/resilientdb | 1c811604c33bd0b44620345e71f0d15b4ed43dd8 | [
"MIT"
] | null | null | null | scripts/simRun.py | taoenkh/resilientdb | 1c811604c33bd0b44620345e71f0d15b4ed43dd8 | [
"MIT"
] | null | null | null | #!/usr/bin/python
#
# Command line arguments:
# [1] -- Number of server nodes
# [2] -- Name of result file
import os,sys,datetime,re
import shlex
import subprocess
import itertools
from sys import argv
from hostnames import *
home_directory="/home/expo"
PATH=os.getcwd()
#result_dir = PATH + "/results/"
result_dir = ho... | 23.145455 | 88 | 0.665357 |
b6c48dbe6fc478495bb15d192e9830131b264b8b | 1,480 | py | Python | lib/cloud/cloudflare.py | GonzaloAlvarez/py-ga-sysadmin | fbbbbcad36df9f1b3e40328ff48c22bad13a56f4 | [
"MIT"
] | 2 | 2018-01-05T15:32:06.000Z | 2021-06-02T13:15:05.000Z | lib/cloud/cloudflare.py | GonzaloAlvarez/devops-tools | fbbbbcad36df9f1b3e40328ff48c22bad13a56f4 | [
"MIT"
] | 67 | 2017-01-09T19:39:19.000Z | 2018-02-28T05:33:40.000Z | lib/cloud/cloudflare.py | GonzaloAlvarez/devops-tools | fbbbbcad36df9f1b3e40328ff48c22bad13a56f4 | [
"MIT"
] | null | null | null | from pyflare import PyflareClient
from lib.exceptions import RemoteOperationExecutionException, UnknownHostException
| 38.947368 | 102 | 0.607432 |
b6c4b85f0791436ed8fbf426f25479eede924057 | 1,942 | py | Python | src/tts_interface.py | yDon96/pepper_assistant | cc079e9c6e93afae513625ee4803e3c5c75ce5b6 | [
"MIT"
] | null | null | null | src/tts_interface.py | yDon96/pepper_assistant | cc079e9c6e93afae513625ee4803e3c5c75ce5b6 | [
"MIT"
] | 4 | 2022-02-01T15:13:13.000Z | 2022-02-07T10:26:12.000Z | src/tts_interface.py | yDon96/pepper_assistant | cc079e9c6e93afae513625ee4803e3c5c75ce5b6 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
from xmlrpc.client import Boolean
from sqlalchemy import false, true
import yaml
import os
import rospy
from ros_pepper_pkg.srv import *
from std_msgs.msg import String
from std_msgs.msg import Bool
def callback(message, tts_service, publisher):
"""
Topic callback.
Parameters
--... | 26.60274 | 105 | 0.683316 |
b6c640e43c4700b7bc015a48fe79d67a2dcc8a5b | 588 | py | Python | images/326_power_of_three.py | FireinDark/leetcode_practice | 6457f5343a90289707d1082211527ec5e6c4674e | [
"MIT"
] | 2 | 2019-04-28T03:06:11.000Z | 2019-04-28T03:06:14.000Z | images/326_power_of_three.py | FireinDark/leetcode_practice | 6457f5343a90289707d1082211527ec5e6c4674e | [
"MIT"
] | null | null | null | images/326_power_of_three.py | FireinDark/leetcode_practice | 6457f5343a90289707d1082211527ec5e6c4674e | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
__author__ = 'yi.liu'
if __name__ == '__main__':
print(Solution().isPowerOfThree(45)) | 22.615385 | 68 | 0.542517 |
b6c67225a12b011d497493519335814098fefea7 | 84,022 | py | Python | climate_categories/data/CRF1999.py | rgieseke/climate_categories | 2734c0a46681db1b58ae42162e631bcceb5d8d14 | [
"Apache-2.0"
] | null | null | null | climate_categories/data/CRF1999.py | rgieseke/climate_categories | 2734c0a46681db1b58ae42162e631bcceb5d8d14 | [
"Apache-2.0"
] | null | null | null | climate_categories/data/CRF1999.py | rgieseke/climate_categories | 2734c0a46681db1b58ae42162e631bcceb5d8d14 | [
"Apache-2.0"
] | null | null | null | # Do not edit this file. It was auto-generated from the
# corresponding YAML file.
spec = {
"name": "CRF1999",
"title": "Common Reporting Format GHG emissions categories (1999)",
"comment": "Classification of green-house gas emissions and removals into categories for use in annual inventories using the Comm... | 51.358191 | 1,285 | 0.50939 |
b6c7eeed110518fc0e71dd6f7d6da7730fabf3a7 | 2,653 | py | Python | enaml_data/qt/qt_abstract_item.py | ulricheck/enaml_data | c6f5e6d45b5686fdceb9316705fee7aec8a6a5e7 | [
"MIT"
] | null | null | null | enaml_data/qt/qt_abstract_item.py | ulricheck/enaml_data | c6f5e6d45b5686fdceb9316705fee7aec8a6a5e7 | [
"MIT"
] | null | null | null | enaml_data/qt/qt_abstract_item.py | ulricheck/enaml_data | c6f5e6d45b5686fdceb9316705fee7aec8a6a5e7 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""
Copyright (c) 2015, Jairus Martin.
Distributed under the terms of the MIT License.
The full license is in the file COPYING.txt, distributed with this software.
Created on Aug 24, 2015
"""
from atom.api import Instance, ForwardInstance, Bool
from enaml.core.pattern import Pattern
from enaml.q... | 26.79798 | 79 | 0.692047 |
b6c87c07f3b3d6f191822064a21095e21cb66cf1 | 198 | py | Python | alpha_amd/distances/__init__.py | Noodles-321/RegistrationEval | 3631d3d5bd65acf980fcfed803fa6125970f3e88 | [
"MIT"
] | 14 | 2019-02-12T20:30:23.000Z | 2021-11-04T01:10:34.000Z | alpha_amd/distances/__init__.py | Noodles-321/RegistrationEval | 3631d3d5bd65acf980fcfed803fa6125970f3e88 | [
"MIT"
] | 2 | 2021-05-12T05:02:59.000Z | 2021-10-11T14:40:10.000Z | alpha_amd/distances/__init__.py | Noodles-321/RegistrationEval | 3631d3d5bd65acf980fcfed803fa6125970f3e88 | [
"MIT"
] | 7 | 2019-02-20T12:19:28.000Z | 2021-02-09T10:12:06.000Z | from distances.q_image import QuantizedImage
from distances.alpha_amd import AlphaAMD
from distances.symmetric_amd_distance import SymmetricAMDDistance
import distances.sdt
import distances.jaccard
| 33 | 65 | 0.893939 |
b6ca139a678c7000c7bdb0593d9843845014384f | 712 | py | Python | pythondata_cpu_blackparrot/system_verilog/black-parrot/external/basejump_stl/testing/bsg_cache/regression_non_blocking/test_block_ld.py | litex-hub/pythondata-cpu-blackparrot | ba50883f12d33e1d834640640c84ddc9329bb68a | [
"BSD-3-Clause"
] | 3 | 2021-05-12T21:57:55.000Z | 2021-07-29T19:56:04.000Z | pythondata_cpu_blackparrot/system_verilog/black-parrot/external/basejump_stl/testing/bsg_cache/regression_non_blocking/test_block_ld.py | litex-hub/litex-data-cpu-blackparrot | ba50883f12d33e1d834640640c84ddc9329bb68a | [
"BSD-3-Clause"
] | 2 | 2020-05-13T06:06:49.000Z | 2020-05-15T10:49:11.000Z | pythondata_cpu_blackparrot/system_verilog/black-parrot/external/basejump_stl/testing/bsg_cache/regression_non_blocking/test_block_ld.py | litex-hub/litex-data-cpu-blackparrot | ba50883f12d33e1d834640640c84ddc9329bb68a | [
"BSD-3-Clause"
] | 2 | 2020-05-01T08:33:19.000Z | 2021-07-29T19:56:12.000Z | import sys
import random
from test_base import *
# main()
if __name__ == "__main__":
t = TestBlockLD()
t.generate()
| 19.777778 | 62 | 0.636236 |
b6cac04d860710d1f200c5fdfd368545e66917d9 | 318 | py | Python | easytoken/blob.py | sayanmondal2098/tokenizer | 145f9ac5404583270fc90bfcc94c586d3b3931f2 | [
"MIT"
] | 3 | 2020-01-17T09:11:13.000Z | 2020-07-29T09:44:43.000Z | easytoken/blob.py | sayanmondal2098/tokenizer | 145f9ac5404583270fc90bfcc94c586d3b3931f2 | [
"MIT"
] | 1 | 2019-12-29T08:39:47.000Z | 2019-12-29T08:39:47.000Z | easytoken/blob.py | sayanmondal2098/tokenizer | 145f9ac5404583270fc90bfcc94c586d3b3931f2 | [
"MIT"
] | 4 | 2019-12-28T20:59:08.000Z | 2020-01-10T11:50:04.000Z | import sys
import json
import nltk
import nltk
from nltk.corpus import stopwords
from nltk.tokenize import word_tokenize, sent_tokenize
| 19.875 | 55 | 0.710692 |