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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
faf43a4433695f53b0308cbe7ff6a2053f4f2929 | 955 | py | Python | InteractiveBreak_Filtering/showAnswerFiltering.py | JoeGreiner/MorphologicalOperatorsDemo | fd5ba06548887629515964fc30d402d87630d597 | [
"BSD-3-Clause"
] | null | null | null | InteractiveBreak_Filtering/showAnswerFiltering.py | JoeGreiner/MorphologicalOperatorsDemo | fd5ba06548887629515964fc30d402d87630d597 | [
"BSD-3-Clause"
] | null | null | null | InteractiveBreak_Filtering/showAnswerFiltering.py | JoeGreiner/MorphologicalOperatorsDemo | fd5ba06548887629515964fc30d402d87630d597 | [
"BSD-3-Clause"
] | null | null | null | from IPython.display import display
from ipywidgets import widgets
button = widgets.Button(description="Click for answer")
output = widgets.Output()
display(button, output)
already_clicked = False
button.on_click(on_button_clicked) | 39.791667 | 125 | 0.670157 |
faf66d5e9e6ff74d2a82b5b0fd5dc4b83c98d750 | 426 | py | Python | respostas/migrations/0016_resposta_materia.py | Samio-Santos/Sistema_Questoes_Django | 415c28b386ac7848fdd244ba51c20239b730f4ae | [
"MIT"
] | null | null | null | respostas/migrations/0016_resposta_materia.py | Samio-Santos/Sistema_Questoes_Django | 415c28b386ac7848fdd244ba51c20239b730f4ae | [
"MIT"
] | null | null | null | respostas/migrations/0016_resposta_materia.py | Samio-Santos/Sistema_Questoes_Django | 415c28b386ac7848fdd244ba51c20239b730f4ae | [
"MIT"
] | null | null | null | # Generated by Django 3.2 on 2021-07-02 21:43
from django.db import migrations, models
| 22.421053 | 87 | 0.617371 |
faf67b2c9d286ee2d83587f71a298be32213ce3a | 523 | py | Python | libs/menus/menus.py | MilianoJunior/appSalva | d1ad23d06c57aa4b6d380ad637847b6842b68ccd | [
"MIT"
] | null | null | null | libs/menus/menus.py | MilianoJunior/appSalva | d1ad23d06c57aa4b6d380ad637847b6842b68ccd | [
"MIT"
] | null | null | null | libs/menus/menus.py | MilianoJunior/appSalva | d1ad23d06c57aa4b6d380ad637847b6842b68ccd | [
"MIT"
] | null | null | null | from kivymd.uix.boxlayout import MDBoxLayout
from kivymd.uix.toolbar import MDToolbar | 26.15 | 57 | 0.66348 |
faf6934e3cb37291d228f183808eb0c338d26479 | 1,342 | py | Python | setup.py | t-ceccarini/deep-b-spline-approximation | 9e48b593717486bbdac9bf0269a5645830d76082 | [
"MIT"
] | null | null | null | setup.py | t-ceccarini/deep-b-spline-approximation | 9e48b593717486bbdac9bf0269a5645830d76082 | [
"MIT"
] | null | null | null | setup.py | t-ceccarini/deep-b-spline-approximation | 9e48b593717486bbdac9bf0269a5645830d76082 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""
Created on Thu Jan 13 23:29:22 2022
@author: Tommaso
"""
from setuptools import setup
VERSION = '0.2.8'
DESCRIPTION = 'A python package for bspline curve approximation using deep learning'
# Setting up
setup(
name='deep-b-spline-approximation',
packages=['deep_b_spline_approximati... | 35.315789 | 111 | 0.651267 |
faf73cd0b10c574ff66ce3351fe78b6258b32478 | 1,697 | py | Python | source/db_api/crud/crud_documents.py | JungeAlexander/kbase_db_api | f3ec5e8b9ae509f9e8d962183efef21be61ef425 | [
"MIT"
] | 1 | 2021-09-19T14:31:44.000Z | 2021-09-19T14:31:44.000Z | source/db_api/crud/crud_documents.py | JungeAlexander/kbase_db_api | f3ec5e8b9ae509f9e8d962183efef21be61ef425 | [
"MIT"
] | 4 | 2020-10-13T08:41:49.000Z | 2021-04-29T18:05:40.000Z | source/db_api/crud/crud_documents.py | JungeAlexander/kbase_db_api | f3ec5e8b9ae509f9e8d962183efef21be61ef425 | [
"MIT"
] | null | null | null | from datetime import date
from typing import Iterable
from sqlalchemy.orm import Session
from db_api import models, schemas
| 28.762712 | 101 | 0.70772 |
faf7d9ad8af45e7f843f96215575e918e08bca9f | 1,571 | py | Python | displ/wannier/update_dis.py | tflovorn/displ | 094c194c54f02d463353075c6ca82f457f1247fa | [
"MIT"
] | 4 | 2018-04-09T20:39:24.000Z | 2021-06-19T12:21:52.000Z | displ/wannier/update_dis.py | tflovorn/displ | 094c194c54f02d463353075c6ca82f457f1247fa | [
"MIT"
] | null | null | null | displ/wannier/update_dis.py | tflovorn/displ | 094c194c54f02d463353075c6ca82f457f1247fa | [
"MIT"
] | 4 | 2018-04-09T20:39:41.000Z | 2021-06-19T12:21:53.000Z | from argparse import ArgumentParser
import os
from displ.pwscf.parseScf import fermi_from_scf
from displ.wannier.wannier_util import global_config
from displ.wannier.build import Update_Disentanglement
if __name__ == "__main__":
_main()
| 39.275 | 85 | 0.701464 |
faf7efb34d352ee908682f16b6b86e45d3b88d2e | 942 | py | Python | setup.py | maoterodapena/pysouliss | 6dd3022d629505b44e2f7e41c16e4b48a4302c75 | [
"MIT"
] | 9 | 2017-08-03T19:19:55.000Z | 2019-02-13T12:06:42.000Z | setup.py | maoterodapena/pysouliss | 6dd3022d629505b44e2f7e41c16e4b48a4302c75 | [
"MIT"
] | null | null | null | setup.py | maoterodapena/pysouliss | 6dd3022d629505b44e2f7e41c16e4b48a4302c75 | [
"MIT"
] | 4 | 2017-08-15T18:07:53.000Z | 2019-05-22T18:39:13.000Z | """Setup file for souliss package."""
import os
from setuptools import setup, find_packages
if os.path.exists('README.rst'):
README = open('README.rst').read()
else:
README = ''
setup(
name='pysouliss',
version='0.0.5',
description='Python API for talking to a Souliss gateway gateway',
long_de... | 30.387097 | 70 | 0.638004 |
faf8407971775c6567b8c1eefdb799ea80949760 | 3,485 | py | Python | scriptlib/scriptfile.py | Orbtial/scriptlib | 9c3d1754da1eb875ecd89a6b6213457b9aa221d6 | [
"MIT"
] | null | null | null | scriptlib/scriptfile.py | Orbtial/scriptlib | 9c3d1754da1eb875ecd89a6b6213457b9aa221d6 | [
"MIT"
] | null | null | null | scriptlib/scriptfile.py | Orbtial/scriptlib | 9c3d1754da1eb875ecd89a6b6213457b9aa221d6 | [
"MIT"
] | null | null | null | '''
ScriptFile
File Manager for the scriptlib package
Developed by Orbtial
'''
#Custom Imports
from . import scriptui
#Standard Imports
import os
def initPTPDIR(filePathAttr):
"""
Returns a string representation of the path to the file's parent directory.
Should be initialised and stored before using any other fu... | 36.684211 | 122 | 0.760689 |
fafa3983ded0e46039f34e45b4c99afb412de3eb | 6,823 | py | Python | egg5_config.py | eastgenomics/egg5_dias_CEN_config | d59765e44c43f0044417bf66a4d174b41c6a671b | [
"MIT"
] | null | null | null | egg5_config.py | eastgenomics/egg5_dias_CEN_config | d59765e44c43f0044417bf66a4d174b41c6a671b | [
"MIT"
] | 3 | 2021-11-08T13:32:42.000Z | 2022-01-07T09:16:00.000Z | egg5_config.py | eastgenomics/egg5_dias_CEN_config | d59765e44c43f0044417bf66a4d174b41c6a671b | [
"MIT"
] | null | null | null | import sys
sys.path.append("/mnt/storage/apps/software/dias_config")
from dias_dynamic_files import (
genes2transcripts,
bioinformatic_manifest,
genepanels_file,
)
assay_name = "CEN" # Core Endo Neuro
assay_version = "v1.1.4"
ref_project_id = "project-Fkb6Gkj433GVVvj73J7x8KbV"
# Single workflow
ss_wor... | 38.988571 | 100 | 0.716254 |
fafa474f05d327bb0527aea85277fe69e94fc722 | 105 | py | Python | axiom/__init__.py | schehata/axiom-py | a2e34ec54606359a1c06b5ec12b0a4898ade66ee | [
"MIT"
] | 4 | 2021-03-27T12:24:04.000Z | 2021-10-21T07:04:21.000Z | axiom/__init__.py | schehata/axiom-py | a2e34ec54606359a1c06b5ec12b0a4898ade66ee | [
"MIT"
] | 3 | 2021-04-01T21:19:34.000Z | 2022-01-10T13:58:01.000Z | axiom/__init__.py | schehata/axiom-py | a2e34ec54606359a1c06b5ec12b0a4898ade66ee | [
"MIT"
] | 4 | 2021-07-30T12:27:39.000Z | 2022-01-28T23:38:17.000Z | """
Axiom Python Client
"""
__version__ = "0.1.0-beta.2"
from .client import *
from .datasets import *
| 11.666667 | 28 | 0.666667 |
fafb8734f2572ef0c2b5074b37edc6e0b8a53374 | 1,070 | py | Python | test_credentialData.py | mireille1999/Credential-Locker | fc7e8c9035a3d89c889ab7db603eec4ec3d62522 | [
"Unlicense"
] | null | null | null | test_credentialData.py | mireille1999/Credential-Locker | fc7e8c9035a3d89c889ab7db603eec4ec3d62522 | [
"Unlicense"
] | null | null | null | test_credentialData.py | mireille1999/Credential-Locker | fc7e8c9035a3d89c889ab7db603eec4ec3d62522 | [
"Unlicense"
] | null | null | null | import unittest
from credentialData import CredentialData
if __name__ == '__main__':
unittest.main()
| 26.75 | 89 | 0.648598 |
fafbbbaa0af64eaf97c6dbad155b8d4576676728 | 1,130 | py | Python | scripts/study_case/ID_13/torch_geometric/transforms/random_rotate.py | kzbnb/numerical_bugs | bc22e72bcc06df6ce7889a25e0aeed027bde910b | [
"Apache-2.0"
] | 8 | 2021-06-30T06:55:14.000Z | 2022-03-18T01:57:14.000Z | scripts/study_case/ID_13/torch_geometric/transforms/random_rotate.py | kzbnb/numerical_bugs | bc22e72bcc06df6ce7889a25e0aeed027bde910b | [
"Apache-2.0"
] | 1 | 2021-06-30T03:08:15.000Z | 2021-06-30T03:08:15.000Z | scripts/study_case/ID_13/torch_geometric/transforms/random_rotate.py | kzbnb/numerical_bugs | bc22e72bcc06df6ce7889a25e0aeed027bde910b | [
"Apache-2.0"
] | 2 | 2021-11-17T11:19:48.000Z | 2021-11-18T03:05:58.000Z | import numbers
import random
import math
import torch
from scripts.study_case.ID_13.torch_geometric.transforms import LinearTransformation
| 33.235294 | 84 | 0.565487 |
fafc611515c806788d4e3c897fee66ebe01e6548 | 4,606 | py | Python | hsmodels/schemas/base_models.py | hydroshare/hsmodels | ebd834aa9ac82b5775e83378443e86dafa2395f0 | [
"BSD-3-Clause"
] | null | null | null | hsmodels/schemas/base_models.py | hydroshare/hsmodels | ebd834aa9ac82b5775e83378443e86dafa2395f0 | [
"BSD-3-Clause"
] | 7 | 2021-10-15T20:30:49.000Z | 2022-03-07T14:56:39.000Z | hsmodels/schemas/base_models.py | hydroshare/hsmodels | ebd834aa9ac82b5775e83378443e86dafa2395f0 | [
"BSD-3-Clause"
] | 1 | 2021-09-16T17:51:19.000Z | 2021-09-16T17:51:19.000Z | from datetime import datetime
from typing import Any, Callable, Dict, Optional, Union
from pydantic import BaseModel
| 39.706897 | 120 | 0.550803 |
fafd772a07cdd650ed253ad18b37cc59015b77a9 | 594 | py | Python | overlay_camera/Server.py | toakarsky/OverlayCamera | 19ff8b616f38c41c68723f7b6abc1e893f9f2488 | [
"MIT"
] | null | null | null | overlay_camera/Server.py | toakarsky/OverlayCamera | 19ff8b616f38c41c68723f7b6abc1e893f9f2488 | [
"MIT"
] | null | null | null | overlay_camera/Server.py | toakarsky/OverlayCamera | 19ff8b616f38c41c68723f7b6abc1e893f9f2488 | [
"MIT"
] | null | null | null | from flask import Flask, render_template, Response
from .OverlayCamera import OverlayCamera
from .settings import ROUTE
app = Flask(__name__)
| 24.75 | 77 | 0.653199 |
fafec615b08143a3fef967cae3cb798ebe890c40 | 8,098 | py | Python | backend/shrunk/client/search.py | kevinmonisit/shrunk | 55106356735c3491f8c8c0774f5ae500ba1c970a | [
"MIT"
] | 13 | 2015-05-08T00:26:23.000Z | 2021-07-28T15:42:10.000Z | backend/shrunk/client/search.py | kevinmonisit/shrunk | 55106356735c3491f8c8c0774f5ae500ba1c970a | [
"MIT"
] | 68 | 2015-01-12T20:27:44.000Z | 2021-05-17T19:08:05.000Z | backend/shrunk/client/search.py | kevinmonisit/shrunk | 55106356735c3491f8c8c0774f5ae500ba1c970a | [
"MIT"
] | 7 | 2015-08-05T20:31:20.000Z | 2022-01-28T21:14:06.000Z | """Implements the :py:class:`SearchClient` class."""
from typing import Any, List
from datetime import datetime, timezone
from pymongo.collation import Collation
import pymongo
__all__ = ['SearchClient']
| 41.958549 | 115 | 0.470487 |
faff6b99f938954c9a5b7a6e6ff1a0945884e179 | 4,110 | py | Python | tests/test_pinblock.py | adelosa/cardutil | fa31223aaac1f0749d50368bb639a311d98e279a | [
"MIT"
] | null | null | null | tests/test_pinblock.py | adelosa/cardutil | fa31223aaac1f0749d50368bb639a311d98e279a | [
"MIT"
] | 1 | 2022-03-25T20:15:24.000Z | 2022-03-30T09:20:34.000Z | tests/test_pinblock.py | adelosa/cardutil | fa31223aaac1f0749d50368bb639a311d98e279a | [
"MIT"
] | null | null | null | import unittest
from cardutil import pinblock
if __name__ == '__main__':
unittest.main()
| 45.164835 | 120 | 0.662287 |
faff7d52f28537ddf92bfe1718201e8d45c2ed7c | 12,300 | py | Python | tests/test_internal_devices.py | NotBobTheBuilder/gpiozero | aeb9d30056ec97e6bf896152e71a870bd0099b4e | [
"BSD-3-Clause"
] | 1 | 2021-01-27T21:46:52.000Z | 2021-01-27T21:46:52.000Z | tests/test_internal_devices.py | NotBobTheBuilder/gpiozero | aeb9d30056ec97e6bf896152e71a870bd0099b4e | [
"BSD-3-Clause"
] | null | null | null | tests/test_internal_devices.py | NotBobTheBuilder/gpiozero | aeb9d30056ec97e6bf896152e71a870bd0099b4e | [
"BSD-3-Clause"
] | 1 | 2020-09-12T09:21:46.000Z | 2020-09-12T09:21:46.000Z | # GPIO Zero: a library for controlling the Raspberry Pi's GPIO pins
# Copyright (c) 2019 Jeevan M R <14.jeevan@gmail.com>
# Copyright (c) 2019 Dave Jones <dave@waveform.org.uk>
# Copyright (c) 2019 Ben Nuttall <ben@bennuttall.com>
# Copyright (c) 2018 SteveAmor <steveamor@noreply.users.github.com>
#
# Redistribution an... | 42.857143 | 80 | 0.637805 |
faffe937b8eebc8fe07359a13eb9bfdaff6bf554 | 506 | py | Python | ejercicio.py | inacayal/reservas | b74bd26eae3830ebc3329e43e50ebb86ca12ddb7 | [
"MIT"
] | null | null | null | ejercicio.py | inacayal/reservas | b74bd26eae3830ebc3329e43e50ebb86ca12ddb7 | [
"MIT"
] | 7 | 2020-06-12T22:19:36.000Z | 2022-02-26T11:42:58.000Z | ejercicio.py | inacayal/reservas | b74bd26eae3830ebc3329e43e50ebb86ca12ddb7 | [
"MIT"
] | null | null | null |
valido = pedir_entero("Cual es tu numero favorito entre {:d} y {:d}? ",-25,25)
if type(valido)==int:
print("Has introducido un numero valido: {:d}".format(valido))
else :
print(valido) | 36.142857 | 85 | 0.630435 |
4f002ef133ac9afe0b1bdd85f9600fa414911444 | 2,806 | py | Python | src/thirdparty/yaml/utils.py | third-party-dev/yaml | 545d63f350268028b6df2446f8e14284b0119ca3 | [
"MIT"
] | 1 | 2020-12-03T23:11:45.000Z | 2020-12-03T23:11:45.000Z | src/thirdparty/yaml/utils.py | third-party-dev/yaml | 545d63f350268028b6df2446f8e14284b0119ca3 | [
"MIT"
] | null | null | null | src/thirdparty/yaml/utils.py | third-party-dev/yaml | 545d63f350268028b6df2446f8e14284b0119ca3 | [
"MIT"
] | null | null | null | # from collections.abc import MutableMapping, MutableSequence, MutableSet
from collections.abc import Sequence, Container # , Mapping, Set
from collections import OrderedDict
import contextlib
from ruamel.yaml.constructor import ConstructorError
from ruamel.yaml.nodes import MappingNode, SequenceNode
| 28.06 | 74 | 0.665716 |
4f00e3c5d6d2a2a2f904f8badd0a0b8379b14bc2 | 2,482 | py | Python | ooobuild/dyn/rendering/repaint_result.py | Amourspirit/ooo_uno_tmpl | 64e0c86fd68f24794acc22d63d8d32ae05dd12b8 | [
"Apache-2.0"
] | null | null | null | ooobuild/dyn/rendering/repaint_result.py | Amourspirit/ooo_uno_tmpl | 64e0c86fd68f24794acc22d63d8d32ae05dd12b8 | [
"Apache-2.0"
] | null | null | null | ooobuild/dyn/rendering/repaint_result.py | Amourspirit/ooo_uno_tmpl | 64e0c86fd68f24794acc22d63d8d32ae05dd12b8 | [
"Apache-2.0"
] | null | null | null | # coding: utf-8
#
# Copyright 2022 :Barry-Thomas-Paul: Moss
#
# 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 applicab... | 35.971014 | 114 | 0.695407 |
4f0149cb740276e036ceef0f9256600992cdaaba | 338 | py | Python | timetest.py | schaibo/gpio- | 67843aa3869662ad87e9c23914bc0c1ff9f4e2bb | [
"Apache-2.0"
] | null | null | null | timetest.py | schaibo/gpio- | 67843aa3869662ad87e9c23914bc0c1ff9f4e2bb | [
"Apache-2.0"
] | null | null | null | timetest.py | schaibo/gpio- | 67843aa3869662ad87e9c23914bc0c1ff9f4e2bb | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
"""
Created on Sun Jan 26 16:01:59 2014
@author: pi
"""
import time
n=5000
j=0
a=time.time()
i=1
c=time.time()
d=c-a
print d
a=time.time()
for i in range(n):
j+=1
c=time.time()
d=c-a
print d
a=time.time()
delay(n)
c=time.time()
d=c-a
print d
| 9.941176 | 35 | 0.56213 |
4f01cb78d8c650937562fd3ca942f32e2ccc0647 | 1,716 | py | Python | pySIC/reader.py | edoaxyz/image_to_hOCR | 20b96fd758e9994ce94b311fbc69b413d635004e | [
"MIT"
] | null | null | null | pySIC/reader.py | edoaxyz/image_to_hOCR | 20b96fd758e9994ce94b311fbc69b413d635004e | [
"MIT"
] | null | null | null | pySIC/reader.py | edoaxyz/image_to_hOCR | 20b96fd758e9994ce94b311fbc69b413d635004e | [
"MIT"
] | null | null | null | ############################################################
import pytesseract
import os
from reportlab.lib.pagesizes import letter
from reportlab.pdfgen import canvas
from reportlab.pdfbase import pdfmetrics
from reportlab.pdfbase.ttfonts import TTFont
#############################################################
R_... | 49.028571 | 141 | 0.593823 |
4f029f9744d9cffb7aa60df64e098f556aa1867c | 12,921 | py | Python | sciflo/event/pdict.py | hysds/sciflo | f706288405c8eee59a2f883bab3dcb5229615367 | [
"Apache-2.0"
] | null | null | null | sciflo/event/pdict.py | hysds/sciflo | f706288405c8eee59a2f883bab3dcb5229615367 | [
"Apache-2.0"
] | null | null | null | sciflo/event/pdict.py | hysds/sciflo | f706288405c8eee59a2f883bab3dcb5229615367 | [
"Apache-2.0"
] | 1 | 2019-02-07T01:08:34.000Z | 2019-02-07T01:08:34.000Z | """
pdict.py -- Implement a (remote) persistent dictionary that is accessed over
a socket. The backend dictionary could be dbshelve, BSDDB, or
even a relational table of (key, blob).
*** The purpose is to have a bullet-proof, separate-process, persistent dictionary
that is very fast, globa... | 32.711392 | 103 | 0.582153 |
4f03405a3316d902d0f6702b629b6f2aae600c70 | 633 | py | Python | tests/functional_tests.py | Ecotrust/OPCDB | f639408c9cfdfa392a9233042f40e116c703fff1 | [
"MIT"
] | null | null | null | tests/functional_tests.py | Ecotrust/OPCDB | f639408c9cfdfa392a9233042f40e116c703fff1 | [
"MIT"
] | 7 | 2021-03-19T02:36:29.000Z | 2022-01-21T23:51:38.000Z | tests/functional_tests.py | Ecotrust/OPCDB | f639408c9cfdfa392a9233042f40e116c703fff1 | [
"MIT"
] | null | null | null | from selenium import webdriver
import unittest
if __name__ == '__main__':
unittest.main() #call unittest.main(), which launches
# the unittest test runner, which will automatically find test classes and
# methods in the file and run them
| 31.65 | 80 | 0.669826 |
4f0410491333c2d185cc0abeb6504f625457135d | 204 | py | Python | python-stuff/performance_timing.py | mnky9800n/python-data-analysis-tools | 298dc6d9271c72f61285c19ff0112d755fb0c83c | [
"MIT"
] | 2 | 2020-09-11T12:50:15.000Z | 2021-05-12T07:10:04.000Z | python-stuff/performance_timing.py | mnky9800n/python-data-analysis-tools | 298dc6d9271c72f61285c19ff0112d755fb0c83c | [
"MIT"
] | null | null | null | python-stuff/performance_timing.py | mnky9800n/python-data-analysis-tools | 298dc6d9271c72f61285c19ff0112d755fb0c83c | [
"MIT"
] | 3 | 2020-03-06T15:35:46.000Z | 2021-12-11T07:36:08.000Z | import timeit
# bro, probably could just use %timeit if
# you are on ipython. :-P
starttime = timeit.default_timer()
"""
your code here
"""
endtime = timeit.default_timer()
print(endtime - starttime)
| 14.571429 | 41 | 0.715686 |
4f0442ce4e58fffb400b80c3f2ed1670944947b9 | 336 | py | Python | hortiradar/database/restart_workers.py | mctenthij/big-tu-top10 | d551f944aa364728d97bb2b672276a97f8019749 | [
"Apache-2.0",
"BSD-2-Clause"
] | 7 | 2019-04-21T15:25:29.000Z | 2021-11-07T23:20:17.000Z | hortiradar/database/restart_workers.py | mctenthij/big-tu-top10 | d551f944aa364728d97bb2b672276a97f8019749 | [
"Apache-2.0",
"BSD-2-Clause"
] | null | null | null | hortiradar/database/restart_workers.py | mctenthij/big-tu-top10 | d551f944aa364728d97bb2b672276a97f8019749 | [
"Apache-2.0",
"BSD-2-Clause"
] | 2 | 2019-04-21T15:25:30.000Z | 2022-01-01T20:49:36.000Z | import os
import re
from subprocess import call
from time import sleep
supervisor_dir = "/etc/supervisor/conf.d/"
_, _, files = next(os.walk(supervisor_dir))
for f in files:
m = re.match("(hortiradar-worker\d)\.conf", f)
if m:
worker = m.group(1)
call(["supervisorctl", "restart", worker])
... | 19.764706 | 50 | 0.642857 |
4f0474aa94a2859bafafd22b10610ff8ce47631c | 687 | py | Python | service/main.py | release-depot/rtls | e3e8af0a41def60a13e46bef1b276d5bdd215b8d | [
"MIT"
] | null | null | null | service/main.py | release-depot/rtls | e3e8af0a41def60a13e46bef1b276d5bdd215b8d | [
"MIT"
] | 4 | 2020-07-29T13:55:22.000Z | 2021-01-07T14:51:24.000Z | service/main.py | release-depot/rtls | e3e8af0a41def60a13e46bef1b276d5bdd215b8d | [
"MIT"
] | 3 | 2017-11-15T18:51:12.000Z | 2020-12-08T18:37:39.000Z | #!/usr/bin/env python
""" Main runner for the service """
from flask import Flask
from flask_restful import Api
from resources.rtls import Rtls
if __name__ == '__main__':
run_debug()
| 18.567568 | 66 | 0.631732 |
4f0510a9836b3985958ce8cc21d77fb1c29fbe31 | 3,205 | py | Python | ykdl/extractors/mgtv.py | 163ui/ykdl | aea70f47cbe06cc500120c6b89c16cd0905ca19f | [
"MIT"
] | 3 | 2018-09-04T09:33:51.000Z | 2021-11-01T09:03:27.000Z | ykdl/extractors/mgtv.py | 163ui/ykdl | aea70f47cbe06cc500120c6b89c16cd0905ca19f | [
"MIT"
] | null | null | null | ykdl/extractors/mgtv.py | 163ui/ykdl | aea70f47cbe06cc500120c6b89c16cd0905ca19f | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from ykdl.util.html import default_proxy_handler, get_content
from ykdl.util.match import match1, matchall
from ykdl.extractor import VideoExtractor
from ykdl.videoinfo import VideoInfo
from ykdl.compact import install_opener, build_opener, HTTPCookieProcessor
import json... | 36.420455 | 140 | 0.613417 |
4f0516d6a42f51c998184fee233eec9bb65f272a | 427 | py | Python | codewars/7kyu/mohamedashrafamin/Ultimate_Array_Reverser/test_bench.py | mohamedashrafamin/Training_one | 11748fdde85cdc9083e2b0bde7519b51a7acfa62 | [
"MIT"
] | null | null | null | codewars/7kyu/mohamedashrafamin/Ultimate_Array_Reverser/test_bench.py | mohamedashrafamin/Training_one | 11748fdde85cdc9083e2b0bde7519b51a7acfa62 | [
"MIT"
] | 2 | 2019-01-22T10:53:42.000Z | 2019-01-31T08:02:48.000Z | codewars/7kyu/mohamedashrafamin/Ultimate_Array_Reverser/test_bench.py | mohamedashrafamin/Training_one | 11748fdde85cdc9083e2b0bde7519b51a7acfa62 | [
"MIT"
] | 13 | 2019-01-22T10:37:42.000Z | 2019-01-25T13:30:43.000Z | from main import reverse, reverse1
# py.test | 32.846154 | 96 | 0.508197 |
4f0673060aa2a1a406e83c4abf1c5a23f61d0412 | 226 | py | Python | scripts/instagramy.py | lathropd/instanewsroom | 2e78a490f7c37b34d7f3020a6fab2cfcf4ebd46a | [
"Artistic-2.0"
] | null | null | null | scripts/instagramy.py | lathropd/instanewsroom | 2e78a490f7c37b34d7f3020a6fab2cfcf4ebd46a | [
"Artistic-2.0"
] | null | null | null | scripts/instagramy.py | lathropd/instanewsroom | 2e78a490f7c37b34d7f3020a6fab2cfcf4ebd46a | [
"Artistic-2.0"
] | null | null | null | from instagram.client import InstagramAPI
from pprint import pprint
test_access_token = "1890268.7c3f1ab.e1c64ca8df38410099d98bff8a868bb6"
api = InstagramAPI(access_token=test_access_token)
pprint( api.user_recent_media())
| 25.111111 | 70 | 0.849558 |
4f06852d79a4234cb404a8d1df2fcff4ed2b0dcb | 2,356 | py | Python | rodario/registry.py | haliphax/rodario | c31f9a99f80a19cd911edb61e86f4050003dbd90 | [
"MIT"
] | 4 | 2015-08-18T16:54:38.000Z | 2021-02-21T13:07:08.000Z | rodario/registry.py | haliphax/rodario | c31f9a99f80a19cd911edb61e86f4050003dbd90 | [
"MIT"
] | 14 | 2015-08-29T06:04:52.000Z | 2017-04-12T17:58:09.000Z | rodario/registry.py | haliphax/rodario | c31f9a99f80a19cd911edb61e86f4050003dbd90 | [
"MIT"
] | 2 | 2016-10-14T21:27:54.000Z | 2017-05-07T12:59:08.000Z | """ Actor registry for rodario framework """
# local
from rodario import get_redis_connection
from rodario.exceptions import RegistrationException
# pylint: disable=C1001
# pylint: disable=R0903
| 24.28866 | 70 | 0.604414 |
4f080165a526d26946f0e9abfb0e9d778b0984e7 | 1,851 | py | Python | research/recommend/Fat-DeepFFM/eval310.py | leelige/mindspore | 5199e05ba3888963473f2b07da3f7bca5b9ef6dc | [
"Apache-2.0"
] | 77 | 2021-10-15T08:32:37.000Z | 2022-03-30T13:09:11.000Z | research/recommend/Fat-DeepFFM/eval310.py | leelige/mindspore | 5199e05ba3888963473f2b07da3f7bca5b9ef6dc | [
"Apache-2.0"
] | 3 | 2021-10-30T14:44:57.000Z | 2022-02-14T06:57:57.000Z | research/recommend/Fat-DeepFFM/eval310.py | leelige/mindspore | 5199e05ba3888963473f2b07da3f7bca5b9ef6dc | [
"Apache-2.0"
] | 24 | 2021-10-15T08:32:45.000Z | 2022-03-24T18:45:20.000Z | # Copyright 2021 Huawei Technologies Co., Ltd
#
# 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... | 31.913793 | 108 | 0.67477 |
4f0807b07f68c7bfcd9808bf07ec2c1b431bde18 | 2,834 | py | Python | organized/cli.py | lukeplausin/organised | d60e87e3ba94ad5d5673904e75f34eda9b471a43 | [
"MIT"
] | null | null | null | organized/cli.py | lukeplausin/organised | d60e87e3ba94ad5d5673904e75f34eda9b471a43 | [
"MIT"
] | null | null | null | organized/cli.py | lukeplausin/organised | d60e87e3ba94ad5d5673904e75f34eda9b471a43 | [
"MIT"
] | null | null | null | import click
import logging
from . import logger, log_handler
from .organize import main, ORGANIZER_NAMES
from .storage.amazon_s3_storage import AWS_CLI_PARAMETERS
GENERIC_CLI_PARAMETERS = [
click.Option(
['--dry-run/--no-dry-run'], required=False, default=False,
show_default=True,
help='I... | 34.987654 | 94 | 0.711009 |
4f08474d84da7c04739199fefa825d37fe709888 | 5,798 | py | Python | scripts/msresults.py | aw32/sched | b6ef35c5b517875a5954c70e2dc366fab3721a60 | [
"BSD-2-Clause"
] | null | null | null | scripts/msresults.py | aw32/sched | b6ef35c5b517875a5954c70e2dc366fab3721a60 | [
"BSD-2-Clause"
] | null | null | null | scripts/msresults.py | aw32/sched | b6ef35c5b517875a5954c70e2dc366fab3721a60 | [
"BSD-2-Clause"
] | null | null | null | #!/usr/bin/env python3
# Copyright 2019, Alex Wiens <awiens@mail.upb.de>, Achim Lsch <achim.loesch@upb.de>
# SPDX-License-Identifier: BSD-2-Clause
# Reads ms task measurement results from CSV files.
#
# If the path to the results is not given it is read from the following environment variables:
# * SCHED_MSRESULTS
#... | 31.340541 | 126 | 0.666954 |
4f086a50fd782142ca6d65148089e454c15ce8c9 | 931 | py | Python | py_temper_exporter/main.py | srl295/py-temper-exporter | e44249eaac63bae97babbddbe771c38c5bf9b708 | [
"Apache-2.0"
] | null | null | null | py_temper_exporter/main.py | srl295/py-temper-exporter | e44249eaac63bae97babbddbe771c38c5bf9b708 | [
"Apache-2.0"
] | null | null | null | py_temper_exporter/main.py | srl295/py-temper-exporter | e44249eaac63bae97babbddbe771c38c5bf9b708 | [
"Apache-2.0"
] | null | null | null | import time
from prometheus_client import start_http_server, Gauge, Enum
from temper import Temper
| 35.807692 | 91 | 0.625134 |
4f0910b1680523eb838126b34d6516b834cc9d25 | 217 | py | Python | test/test_mssql.py | samirsilwal/pyodbc | 53f6bd17fe52a180729b4f0db2201a569f697582 | [
"MIT"
] | 20 | 2019-11-22T02:47:37.000Z | 2022-03-18T19:25:28.000Z | test/test_mssql.py | samirsilwal/pyodbc | 53f6bd17fe52a180729b4f0db2201a569f697582 | [
"MIT"
] | 29 | 2019-09-09T07:17:19.000Z | 2020-08-06T04:18:13.000Z | test/test_mssql.py | samirsilwal/pyodbc | 53f6bd17fe52a180729b4f0db2201a569f697582 | [
"MIT"
] | 19 | 2019-09-30T18:36:24.000Z | 2022-01-04T16:53:42.000Z | ''' Tests for MSSQL. '''
from util import exec_query, MSSQL
def test_connection():
''' Test connection to MSSQL Server. '''
result = exec_query(MSSQL, "SELECT 'It works!'")
assert result == 'It works!'
| 21.7 | 52 | 0.645161 |
4f0960ee0a22ce87b6a0db2ab3c9c96334279396 | 61,597 | py | Python | fraunhofer/specfit.py | dnidever/fraunhofer | 49d34ff879501ce0e959f06046e2f32b0ee7ca43 | [
"MIT"
] | null | null | null | fraunhofer/specfit.py | dnidever/fraunhofer | 49d34ff879501ce0e959f06046e2f32b0ee7ca43 | [
"MIT"
] | null | null | null | fraunhofer/specfit.py | dnidever/fraunhofer | 49d34ff879501ce0e959f06046e2f32b0ee7ca43 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
"""SPECFIT.PY - Generic stellar abundance determination software
"""
from __future__ import print_function
__authors__ = 'David Nidever <dnidever@montana.edu>'
__version__ = '20200711' # yyyymmdd
import os
import shutil
import contextlib, io, sys
import numpy as np
import warnings
from astro... | 37.720147 | 157 | 0.572674 |
4f09d6a22b4bd4f753a23f83daa8bf2c0724d4b9 | 2,832 | py | Python | src/split_data.py | sunsiche/DSCI522-2020-g22 | bf13a13a47053496fc68a624240b4d81071b60b0 | [
"MIT"
] | null | null | null | src/split_data.py | sunsiche/DSCI522-2020-g22 | bf13a13a47053496fc68a624240b4d81071b60b0 | [
"MIT"
] | 30 | 2020-11-19T00:03:14.000Z | 2020-12-15T07:32:34.000Z | src/split_data.py | sunsiche/DSCI522-2020-g22 | bf13a13a47053496fc68a624240b4d81071b60b0 | [
"MIT"
] | 5 | 2020-11-18T22:21:40.000Z | 2020-11-28T15:13:48.000Z | # author: Kevin Shahnazari
# date: 2020-11-25
"""
This script Splits the raw cleaned data to train and test splits
based on the user input and saves them into two separate csv files
Usage: clean_data.py --input_file_path=<input_file_path> --saving_path_train=<saving_path_train> --saving_path_test=<saving_path_test>... | 31.820225 | 161 | 0.673376 |
4f0a3de229c7c8c0a0849ab5caedb8c1a65f7b3b | 3,607 | py | Python | minerva/controllers/dataset.py | takuseno/minerva | c073cd309e84bf1785de8f5b8b5d46d3599d1010 | [
"MIT"
] | 68 | 2020-09-09T04:22:35.000Z | 2022-03-20T10:15:51.000Z | minerva/controllers/dataset.py | takuseno/minerva | c073cd309e84bf1785de8f5b8b5d46d3599d1010 | [
"MIT"
] | 3 | 2021-05-15T03:15:47.000Z | 2021-07-09T21:35:22.000Z | minerva/controllers/dataset.py | takuseno/minerva | c073cd309e84bf1785de8f5b8b5d46d3599d1010 | [
"MIT"
] | 5 | 2020-09-09T02:35:10.000Z | 2022-03-04T02:23:00.000Z | import base64
import json
import os
import tempfile
import uuid
import zipfile
from io import BytesIO
import werkzeug
from flask import Blueprint, jsonify, request
from ..config import get_config
from ..dataset import convert_ndarray_to_image, import_csv_as_mdp_dataset
from ..models.dataset import Dataset, DatasetSch... | 31.365217 | 78 | 0.667868 |
4f0a4e418f04b1eac7667ced923ca16a38945606 | 234 | py | Python | onos_ric_sdk_py/__init__.py | MatthewWEdwards/onos-ric-sdk-py | 2c38542616b8c0d087315b05f12de6eefb2bb3f3 | [
"Apache-2.0"
] | null | null | null | onos_ric_sdk_py/__init__.py | MatthewWEdwards/onos-ric-sdk-py | 2c38542616b8c0d087315b05f12de6eefb2bb3f3 | [
"Apache-2.0"
] | null | null | null | onos_ric_sdk_py/__init__.py | MatthewWEdwards/onos-ric-sdk-py | 2c38542616b8c0d087315b05f12de6eefb2bb3f3 | [
"Apache-2.0"
] | null | null | null | # SPDX-FileCopyrightText: 2021 Open Networking Foundation <support@opennetworking.org>
# SPDX-License-Identifier: Apache-2.0
from __future__ import absolute_import
from .e2 import E2Client, Subscription
from .sdl import SDLClient
| 29.25 | 88 | 0.816239 |
4f0cae19f8a210a02c51f07cf3ab2e800f500a42 | 11,936 | py | Python | bump_release/__init__.py | frague59/bump-release | e1f0ae5c971075901fa4205dc6e85dfb14e160a2 | [
"MIT"
] | null | null | null | bump_release/__init__.py | frague59/bump-release | e1f0ae5c971075901fa4205dc6e85dfb14e160a2 | [
"MIT"
] | null | null | null | bump_release/__init__.py | frague59/bump-release | e1f0ae5c971075901fa4205dc6e85dfb14e160a2 | [
"MIT"
] | null | null | null | """
Update release numbers in various places, according to a release.ini file places at the project root
"""
import configparser
import logging
import sys
from configparser import ConfigParser
from pathlib import Path
from typing import Optional, Tuple
import click
from bump_release import helpers
from bump_release.h... | 37.652997 | 119 | 0.683311 |
4f0d4ff16fed95ed4b85490e43c5507bd62fbc4e | 1,748 | py | Python | sense/core.py | pygeo/sense | 4610fe5247cfba04124a30a7d3db33ea1feb8c80 | [
"Apache-2.0"
] | 1 | 2020-05-27T07:05:04.000Z | 2020-05-27T07:05:04.000Z | sense/core.py | pygeo/sense | 4610fe5247cfba04124a30a7d3db33ea1feb8c80 | [
"Apache-2.0"
] | 6 | 2017-06-23T18:11:32.000Z | 2017-06-30T04:35:22.000Z | sense/core.py | pygeo/sense | 4610fe5247cfba04124a30a7d3db33ea1feb8c80 | [
"Apache-2.0"
] | 3 | 2017-07-25T11:48:39.000Z | 2020-09-28T05:13:24.000Z | import numpy as np
import matplotlib.pyplot as plt
| 22.701299 | 92 | 0.540618 |
877bfe2267259aa2db8872716813b19fd65e5f86 | 6,319 | py | Python | src/cs_519_files/ML_Project_v1.0.py | CJCascalheira/ml-gender-dysphoria | 2b20c19020342bd5b3c09aa0c107f26770aa541c | [
"MIT"
] | null | null | null | src/cs_519_files/ML_Project_v1.0.py | CJCascalheira/ml-gender-dysphoria | 2b20c19020342bd5b3c09aa0c107f26770aa541c | [
"MIT"
] | null | null | null | src/cs_519_files/ML_Project_v1.0.py | CJCascalheira/ml-gender-dysphoria | 2b20c19020342bd5b3c09aa0c107f26770aa541c | [
"MIT"
] | null | null | null | import numpy as np
import pandas as pd
import nltk
from nltk.corpus import stopwords
from nltk.tokenize import word_tokenize
import matplotlib.pyplot as plt
import contractions # Expanding contractions
from nltk.stem.wordnet import WordNetLemmatizer
from sklearn.model_selection import tr... | 33.08377 | 140 | 0.59424 |
877c2a87452398113982e4fe50b67db15a8d4d93 | 796 | py | Python | applications/startupconfort/templatetags/item_extra.py | guinslym/python-color-palette | 3643e4d1d7d12f9a57b130337f50ee4e072ea08f | [
"MIT"
] | null | null | null | applications/startupconfort/templatetags/item_extra.py | guinslym/python-color-palette | 3643e4d1d7d12f9a57b130337f50ee4e072ea08f | [
"MIT"
] | null | null | null | applications/startupconfort/templatetags/item_extra.py | guinslym/python-color-palette | 3643e4d1d7d12f9a57b130337f50ee4e072ea08f | [
"MIT"
] | null | null | null | from django import template
import datetime
from applications.startupconfort.models import CartItem
#https://github.com/guinslym/mywadiyabi/blob/master/applications/wadiyabi/templatetags/registration.py
register = template.Library()
| 26.533333 | 114 | 0.704774 |
877c7d49d1b9f81b157093af1820422a112322bb | 4,069 | py | Python | main.py | artin222/Password-generator | 7649377b578267b899737b4f7d312bc2b489cc0e | [
"MIT"
] | 1 | 2021-11-20T13:47:27.000Z | 2021-11-20T13:47:27.000Z | main.py | artin222/Password-generator | 7649377b578267b899737b4f7d312bc2b489cc0e | [
"MIT"
] | null | null | null | main.py | artin222/Password-generator | 7649377b578267b899737b4f7d312bc2b489cc0e | [
"MIT"
] | null | null | null | from csv import reader , writer
from random import randrange
#These are lists of characters that program can use to generate password
smlLetters = ["a" , "b" , "c" , "d" , "e" , "f" , "g" , "h" , "i" , "j" ,
"k" , "l" , "m" , "n" , "o" , "p" , "q" , "r" , "s" , "t" , "u" , "v" , "w" ,
"x" , "y" , "z"]
capLetters = [... | 42.831579 | 141 | 0.632834 |
877c8d0d7d7e4e7123818535f0c941d6e42050fa | 328 | py | Python | prefect/token_test.py | kvnkho/demos | c8c33993e00baf6a25d0ffdc44db924b327cbffa | [
"MIT"
] | 13 | 2021-05-13T23:07:17.000Z | 2022-03-19T00:00:41.000Z | prefect/token_test.py | kvnkho/demos | c8c33993e00baf6a25d0ffdc44db924b327cbffa | [
"MIT"
] | null | null | null | prefect/token_test.py | kvnkho/demos | c8c33993e00baf6a25d0ffdc44db924b327cbffa | [
"MIT"
] | 7 | 2021-06-16T18:16:55.000Z | 2022-03-21T03:34:43.000Z | from prefect import task, Flow, Parameter
from prefect.tasks.prefect import StartFlowRun
from prefect.storage import GitHub
with Flow("token-test") as flow:
StartFlowRun(project_name="testing", flow_name="flow_must_fail")()
flow.storage = GitHub(repo="kvnkho/demos", path="/prefect/token_test.py")
flow.register("t... | 36.444444 | 73 | 0.780488 |
877caa671ed5d222230ea90a669e72fef113794e | 792 | py | Python | setup.py | turbolent/spacy-thrift | 9b45caca91ae7ceb1e790c5467f994c6b2d9ecef | [
"MIT"
] | 5 | 2017-06-15T05:19:48.000Z | 2021-11-21T16:17:14.000Z | setup.py | turbolent/spacy-thrift | 9b45caca91ae7ceb1e790c5467f994c6b2d9ecef | [
"MIT"
] | null | null | null | setup.py | turbolent/spacy-thrift | 9b45caca91ae7ceb1e790c5467f994c6b2d9ecef | [
"MIT"
] | 1 | 2020-01-25T21:46:22.000Z | 2020-01-25T21:46:22.000Z | #!/usr/bin/env python
from setuptools import setup
with open('README.md') as f:
long_description = f.read()
setup(name='spacy-thrift',
version='0.5.0',
description='spaCy-as-a-service using Thrift',
long_description=long_description,
long_description_content_type="text/markdown",
ke... | 28.285714 | 54 | 0.602273 |
877cfe2e99691a97f1e6e9c1d95453bf03ed6513 | 471 | py | Python | swexpert/d3/sw_2817_1.py | ruslanlvivsky/python-algorithm | 2b49bed33cd0e95b8a1e758008191f4392b3f667 | [
"MIT"
] | 3 | 2021-07-18T14:40:24.000Z | 2021-08-14T18:08:13.000Z | swexpert/d3/sw_2817_1.py | jinsuSang/python-algorithm | 524849a0a7e71034d329fef63c4f384930334177 | [
"MIT"
] | null | null | null | swexpert/d3/sw_2817_1.py | jinsuSang/python-algorithm | 524849a0a7e71034d329fef63c4f384930334177 | [
"MIT"
] | null | null | null | test_cases = int(input().strip())
for t in range(1, test_cases + 1):
N, K = map(int, input().strip().split())
nums = list(map(int, input().strip().split()))
result = 0
sum_sub_nums(0, 0)
print('#{} {}'.format(t, result))
| 21.409091 | 50 | 0.556263 |
877d10e737235988632bc1400d9926fa9155da16 | 1,463 | py | Python | data_action/data_loader.py | namanshrimali/simplif-ai | d4178bd2d82dd651789904f4889c99f0929c8578 | [
"MIT"
] | null | null | null | data_action/data_loader.py | namanshrimali/simplif-ai | d4178bd2d82dd651789904f4889c99f0929c8578 | [
"MIT"
] | null | null | null | data_action/data_loader.py | namanshrimali/simplif-ai | d4178bd2d82dd651789904f4889c99f0929c8578 | [
"MIT"
] | null | null | null | from data_action.transformations import *
| 40.638889 | 157 | 0.607656 |
877ea49df20cc55a5d0735462644f88406735b14 | 291 | py | Python | src/dots/token.py | Mokin711/dots-python | 6bc0c98daa331302df9c9829a7579be6e1bd828c | [
"MIT"
] | 1 | 2021-06-14T18:43:53.000Z | 2021-06-14T18:43:53.000Z | src/dots/token.py | Mokin711/dots-python | 6bc0c98daa331302df9c9829a7579be6e1bd828c | [
"MIT"
] | 1 | 2021-11-15T21:33:27.000Z | 2021-11-16T19:22:34.000Z | src/dots/token.py | Mokin711/dots-python | 6bc0c98daa331302df9c9829a7579be6e1bd828c | [
"MIT"
] | 1 | 2022-02-09T19:39:15.000Z | 2022-02-09T19:39:15.000Z | import base64
import dots
| 24.25 | 97 | 0.670103 |
877eab8db5158dc55512e44d21ca46730b5e208f | 946 | py | Python | setup.py | ctsit/lineman | d90e876d70fbc3d6ca18425d2748d70eb00ab485 | [
"Apache-2.0"
] | null | null | null | setup.py | ctsit/lineman | d90e876d70fbc3d6ca18425d2748d70eb00ab485 | [
"Apache-2.0"
] | 2 | 2017-05-23T18:45:01.000Z | 2017-09-26T17:02:34.000Z | setup.py | ctsit/lineman | d90e876d70fbc3d6ca18425d2748d70eb00ab485 | [
"Apache-2.0"
] | 3 | 2017-04-28T13:35:34.000Z | 2017-05-16T14:01:13.000Z | from setuptools import setup
#bring in __version__ from sourcecode
#per https://stackoverflow.com/a/17626524
#and https://stackoverflow.com/a/2073599
with open('lineman/version.py') as ver:
exec(ver.read())
setup(name='lineman',
version=__version__,
description='Lineman fixes data problems that will ... | 32.62069 | 97 | 0.598309 |
877f7ac996e50b2661470b15b06e9881cac05a69 | 2,266 | py | Python | main.py | a2824256/pyrealsense_collection | 75e931f1744138b10336a3a62eb569b352ef171d | [
"MIT"
] | null | null | null | main.py | a2824256/pyrealsense_collection | 75e931f1744138b10336a3a62eb569b352ef171d | [
"MIT"
] | null | null | null | main.py | a2824256/pyrealsense_collection | 75e931f1744138b10336a3a62eb569b352ef171d | [
"MIT"
] | null | null | null | import png
import pyrealsense2 as rs
import logging
logging.basicConfig(level=logging.INFO)
import numpy as np
import cv2
import os
if __name__ == "__main__":
make_directories()
pipeline = rs.pipeline()
config = rs.config()
config.enable_stream(rs.stream.depth, 640, 480, rs.format.z16, 30)
config.e... | 30.621622 | 71 | 0.609003 |
877f91e2ba9ede10de324960019c237eee7ed5b7 | 1,711 | py | Python | VoC/Librispeech_enhancement/use_model.py | dugudongfangshuo/DeepLearn | c9689abedd7f6de0efd4effffb204aa32a8e4ef3 | [
"Apache-2.0"
] | 1 | 2021-07-20T06:44:05.000Z | 2021-07-20T06:44:05.000Z | VoC/Librispeech_enhancement/use_model.py | dugudongfangshuo/DeepLearn | c9689abedd7f6de0efd4effffb204aa32a8e4ef3 | [
"Apache-2.0"
] | null | null | null | VoC/Librispeech_enhancement/use_model.py | dugudongfangshuo/DeepLearn | c9689abedd7f6de0efd4effffb204aa32a8e4ef3 | [
"Apache-2.0"
] | null | null | null | import torch
import speechbrain as sb
from hyperpyyaml import load_hyperpyyaml
hparams_file, overrides = 'train.yaml',''
PATH = './results/4234/save/CKPT+2021-04-17+16-05-06+00/model.ckpt'
#
with open(hparams_file) as fin:
hparams = load_hyperpyyaml(fin, overrides)
#
model=hparams["model"]
model=model.eval()
st... | 24.442857 | 77 | 0.725891 |
877f98e93dce8cdcf07b8ca45bcea83be78b902e | 3,737 | py | Python | vit_jax/inference_time.py | fensence/Mixup-VT | 50eebaa04ffc974ecce4fac4a631d75a3f2361cc | [
"Apache-2.0"
] | 4,825 | 2020-10-21T12:35:18.000Z | 2022-03-31T13:35:21.000Z | vit_jax/inference_time.py | fensence/Mixup-VT | 50eebaa04ffc974ecce4fac4a631d75a3f2361cc | [
"Apache-2.0"
] | 154 | 2020-10-23T14:49:48.000Z | 2022-03-21T13:19:01.000Z | vit_jax/inference_time.py | fensence/Mixup-VT | 50eebaa04ffc974ecce4fac4a631d75a3f2361cc | [
"Apache-2.0"
] | 681 | 2020-10-23T01:34:20.000Z | 2022-03-30T05:51:57.000Z | # Copyright 2021 Google LLC.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, ... | 35.932692 | 77 | 0.730265 |
87829589d5f65d2ab2ae28e5f39a9cb66fefb9e4 | 629 | py | Python | PythonExercicios/ex039.py | lordvinick/Python | c03fd08d4c204104bf0196b0bd129427fd2067ae | [
"MIT"
] | null | null | null | PythonExercicios/ex039.py | lordvinick/Python | c03fd08d4c204104bf0196b0bd129427fd2067ae | [
"MIT"
] | null | null | null | PythonExercicios/ex039.py | lordvinick/Python | c03fd08d4c204104bf0196b0bd129427fd2067ae | [
"MIT"
] | null | null | null | print('\033[36m='*12, '\033[32mAlistamento Militar', '\033[36m='*12)
from datetime import date
ano = int(input('Em que ano voc nasceu? '))
atual = date.today().year
idade = atual - ano
print(f'Voc tem \033[32m{idade} \033[36manos em \033[32m{atual}.')
if idade == 18:
print('\033[36mTa na hora de se alistar.')
elif ... | 48.384615 | 144 | 0.682035 |
8783f86fdd42c8b014bb807d8e86e286c8b1658b | 2,548 | py | Python | code/stats/dim_reduction.py | wethepeopleonline/law-net | e8b01136360078c89b666e2b127672644ed0c54b | [
"MIT"
] | 17 | 2016-09-02T19:39:11.000Z | 2021-11-15T21:22:48.000Z | code/stats/dim_reduction.py | wethepeopleonline/law-net | e8b01136360078c89b666e2b127672644ed0c54b | [
"MIT"
] | 7 | 2016-09-04T17:19:13.000Z | 2017-01-19T19:17:10.000Z | code/stats/dim_reduction.py | idc9/law-net | e8b01136360078c89b666e2b127672644ed0c54b | [
"MIT"
] | 8 | 2017-01-19T04:24:09.000Z | 2021-09-13T20:22:58.000Z | import numpy as np
from scipy import stats
import pandas as pd
from sklearn.cross_decomposition import PLSRegression
def standardize_vec(v, center='mean', scale='std'):
""""
Standardizes a vector by centering and scaling it
This function will ignore scaling if the scale value is zero and will
instea... | 25.227723 | 77 | 0.582418 |
8784142013ef93ac4ae61c954de934c0b7a1cd9b | 2,247 | py | Python | cloudmarker/test/test_azwebapphttp20event.py | TinLe/cloudmarker | 29698420457a86d5d8a0bac156bc98bd656198e1 | [
"MIT"
] | 208 | 2019-04-10T05:15:11.000Z | 2022-03-16T17:41:29.000Z | cloudmarker/test/test_azwebapphttp20event.py | TinLe/cloudmarker | 29698420457a86d5d8a0bac156bc98bd656198e1 | [
"MIT"
] | 88 | 2018-12-17T18:24:13.000Z | 2021-05-15T04:19:53.000Z | cloudmarker/test/test_azwebapphttp20event.py | TinLe/cloudmarker | 29698420457a86d5d8a0bac156bc98bd656198e1 | [
"MIT"
] | 15 | 2019-01-03T04:18:33.000Z | 2021-06-03T09:24:31.000Z | """Tests for AzWebAppHttp20Event plugin."""
import copy
import unittest
from cloudmarker.events import azwebapphttp20event
base_record = {
'ext': {
'record_type': 'web_app_config',
'cloud_type': 'azure',
'http20_enabled': True
},
'com': {
'cloud_type': 'azure'
}
}... | 32.565217 | 59 | 0.640854 |
8784b5c8526896e5048632a3a82e5b228aabb640 | 31,270 | gyp | Python | build/pomdog.gyp | bis83/pomdog | 133a9262958d539ae6d93664e6cb2207b5b6c7ff | [
"MIT"
] | null | null | null | build/pomdog.gyp | bis83/pomdog | 133a9262958d539ae6d93664e6cb2207b5b6c7ff | [
"MIT"
] | null | null | null | build/pomdog.gyp | bis83/pomdog | 133a9262958d539ae6d93664e6cb2207b5b6c7ff | [
"MIT"
] | null | null | null | {
'includes': ['common.gypi'],
'conditions': [
['OS == "win"', {
'variables': {
'application_platform%': 'Win32',
'renderers%': ['Direct3D11', 'GL4'],
'audio%': 'XAudio2',
'input_devices%': ['DirectInput'],
},
}],
['OS == "mac"', {
'variables': {
... | 41.362434 | 78 | 0.620979 |
8786ee9f99a430b3faffc52d450268f38a85e338 | 368 | py | Python | pythonforandroid/recipes/android/__init__.py | inclement/p4a-experiment | 4e120e08cc3c33af89948307628c8b28fdf76b87 | [
"MIT"
] | 1 | 2015-06-09T21:12:09.000Z | 2015-06-09T21:12:09.000Z | pythonforandroid/recipes/android/__init__.py | inclement/p4a-experiment | 4e120e08cc3c33af89948307628c8b28fdf76b87 | [
"MIT"
] | null | null | null | pythonforandroid/recipes/android/__init__.py | inclement/p4a-experiment | 4e120e08cc3c33af89948307628c8b28fdf76b87 | [
"MIT"
] | null | null | null |
from pythonforandroid.toolchain import CythonRecipe, shprint, ensure_dir, current_directory, ArchAndroid, IncludedFilesBehaviour
import sh
from os.path import exists, join
recipe = AndroidRecipe()
| 23 | 128 | 0.75 |
878807ddada6f3595dcfacaf864041d2dd562b4d | 2,811 | py | Python | sportcred/backend/resources/userComments.py | aviral25/SportCredAPP | 68c8a81d316b6d949ec065fd9ee8d2d0845b031c | [
"MIT"
] | null | null | null | sportcred/backend/resources/userComments.py | aviral25/SportCredAPP | 68c8a81d316b6d949ec065fd9ee8d2d0845b031c | [
"MIT"
] | null | null | null | sportcred/backend/resources/userComments.py | aviral25/SportCredAPP | 68c8a81d316b6d949ec065fd9ee8d2d0845b031c | [
"MIT"
] | null | null | null | from flask_restful import Resource
from flask import request, Blueprint, jsonify
from models import db, Post, Comment
from datetime import datetime
commentBp = Blueprint('commentBp', __name__) | 34.703704 | 77 | 0.581999 |
8789474f74a671f6ddfeccf4cb104d024e738101 | 32 | py | Python | poetry/console/commands/cache/__init__.py | hongquan/poetry | d12f6421b1c34067e3968ddec2d821ae7f316af7 | [
"MIT"
] | 1 | 2020-12-22T12:51:11.000Z | 2020-12-22T12:51:11.000Z | poetry/console/commands/cache/__init__.py | hongquan/poetry | d12f6421b1c34067e3968ddec2d821ae7f316af7 | [
"MIT"
] | null | null | null | poetry/console/commands/cache/__init__.py | hongquan/poetry | d12f6421b1c34067e3968ddec2d821ae7f316af7 | [
"MIT"
] | null | null | null | from .cache import CacheCommand
| 16 | 31 | 0.84375 |
878978a0b479e9b1eb623ecca1b047a1ad925fe1 | 6,660 | py | Python | aalpy/utils/AutomatonGenerators.py | MDrey101/AALpy | bd8a4994db6c27438db61a3247ae404fc6e4074b | [
"MIT"
] | 61 | 2021-04-01T10:38:52.000Z | 2022-03-28T13:44:23.000Z | aalpy/utils/AutomatonGenerators.py | MDrey101/AALpy | bd8a4994db6c27438db61a3247ae404fc6e4074b | [
"MIT"
] | 16 | 2021-04-03T20:14:08.000Z | 2022-02-16T10:21:48.000Z | aalpy/utils/AutomatonGenerators.py | haubitzer/AALpy | e5b51742d886d5c5c72ab3e9c20eb349c56e2469 | [
"MIT"
] | 9 | 2021-04-05T13:43:17.000Z | 2022-03-09T14:06:17.000Z | import random
from aalpy.automata import Dfa, DfaState, MdpState, Mdp, MealyMachine, MealyState, \
MooreMachine, MooreState, OnfsmState, Onfsm, MarkovChain, McState
from aalpy.utils.HelperFunctions import random_string_generator
def generate_random_mealy_machine(num_states, input_alphabet, output_alphabet, compu... | 30.135747 | 119 | 0.651652 |
878c2f822d6aa9a6f51618cb1ba0c0ab5a958df0 | 4,104 | py | Python | tools/_init.py | zhengshou/AutoLoc | 82c7e51a28eb740a8f002a460ce5c918fc61731b | [
"MIT"
] | 84 | 2018-09-03T02:40:04.000Z | 2022-03-01T15:17:57.000Z | tools/_init.py | zhengshou/AutoLoc | 82c7e51a28eb740a8f002a460ce5c918fc61731b | [
"MIT"
] | 10 | 2018-10-15T22:42:53.000Z | 2020-05-17T01:23:06.000Z | tools/_init.py | zhengshou/AutoLoc | 82c7e51a28eb740a8f002a460ce5c918fc61731b | [
"MIT"
] | 19 | 2018-12-29T01:32:32.000Z | 2022-01-26T16:36:49.000Z | import os
import sys
import os.path as osp
from contextlib import contextmanager
############################################################
# Setup path
curdir = osp.dirname(__file__)
lib_path = osp.join(curdir, '..', 'lib')
add_path(lib_path)
############################################################
# Im... | 31.813953 | 83 | 0.595517 |
878d22338b37587b5be27d20237c97a67a7ed572 | 618 | py | Python | chap4/exchange_keys_and_values.py | marble-git/python-laoqi | 74c4bb5459113e54ce64443e5da5a9c6a3052d6a | [
"MIT"
] | null | null | null | chap4/exchange_keys_and_values.py | marble-git/python-laoqi | 74c4bb5459113e54ce64443e5da5a9c6a3052d6a | [
"MIT"
] | null | null | null | chap4/exchange_keys_and_values.py | marble-git/python-laoqi | 74c4bb5459113e54ce64443e5da5a9c6a3052d6a | [
"MIT"
] | null | null | null | #coding:utf-8
'''
filename:exchange_keys_and_values.py
chap:4
subject:10
conditions:a dict
solution:exchanged keys and values
'''
origin_dict = {'book':['python','djang','data'],'author':'laoqi','publisher':'phei'}
xchange_dict = {}
for key,value in origin_dict.items():
if ishashable(va... | 17.166667 | 84 | 0.619741 |
878d43b49692a27640a8a1fd757b78585e00815a | 760 | py | Python | datadog_checks_dev/tests/test_subprocess.py | seants/integrations-core | 1e5548915fc24f1bbd095e845f0940c22992b09c | [
"BSD-3-Clause"
] | 4 | 2021-06-21T19:21:49.000Z | 2021-06-23T21:21:55.000Z | datadog_checks_dev/tests/test_subprocess.py | seants/integrations-core | 1e5548915fc24f1bbd095e845f0940c22992b09c | [
"BSD-3-Clause"
] | 1 | 2018-08-15T05:50:17.000Z | 2018-08-15T05:50:17.000Z | datadog_checks_dev/tests/test_subprocess.py | seants/integrations-core | 1e5548915fc24f1bbd095e845f0940c22992b09c | [
"BSD-3-Clause"
] | 1 | 2021-06-21T19:21:51.000Z | 2021-06-21T19:21:51.000Z | # (C) Datadog, Inc. 2018
# All rights reserved
# Licensed under a 3-clause BSD style license (see LICENSE)
import os
import sys
from datadog_checks.dev.subprocess import run_command
| 26.206897 | 90 | 0.6 |
878e2e53576e2b93158335b6f62791d259a663a0 | 186 | py | Python | output/models/ms_data/datatypes/facets/any_uri/any_uri_b002_xsd/__init__.py | tefra/xsdata-w3c-tests | b6b6a4ac4e0ab610e4b50d868510a8b7105b1a5f | [
"MIT"
] | 1 | 2021-08-14T17:59:21.000Z | 2021-08-14T17:59:21.000Z | output/models/ms_data/datatypes/facets/any_uri/any_uri_b002_xsd/__init__.py | tefra/xsdata-w3c-tests | b6b6a4ac4e0ab610e4b50d868510a8b7105b1a5f | [
"MIT"
] | 4 | 2020-02-12T21:30:44.000Z | 2020-04-15T20:06:46.000Z | output/models/ms_data/datatypes/facets/any_uri/any_uri_b002_xsd/__init__.py | tefra/xsdata-w3c-tests | b6b6a4ac4e0ab610e4b50d868510a8b7105b1a5f | [
"MIT"
] | null | null | null | from output.models.ms_data.datatypes.facets.any_uri.any_uri_b002_xsd.any_uri_b002 import (
Bar,
Ct,
Root,
St,
)
__all__ = [
"Bar",
"Ct",
"Root",
"St",
]
| 13.285714 | 90 | 0.580645 |
878e9c375065b11c93ecd7ccacefc88bd6387185 | 3,476 | py | Python | tests/fixtures/statement_lists.py | TylerYep/wolfbot | 8d4786ce9542bab344b227e0571bb24bc354298d | [
"MIT"
] | 3 | 2018-06-16T00:03:30.000Z | 2021-12-26T20:48:45.000Z | tests/fixtures/statement_lists.py | TylerYep/wolfbot | 8d4786ce9542bab344b227e0571bb24bc354298d | [
"MIT"
] | null | null | null | tests/fixtures/statement_lists.py | TylerYep/wolfbot | 8d4786ce9542bab344b227e0571bb24bc354298d | [
"MIT"
] | 2 | 2021-03-03T09:31:35.000Z | 2021-03-03T10:02:55.000Z | import pytest
from wolfbot.enums import Role, SwitchPriority
from wolfbot.statements import Statement
| 35.469388 | 75 | 0.52244 |
8791411f9352e21475daedce2828ad0066226068 | 419 | py | Python | ranking/migrations/0056_auto_20201128_2316.py | horacexd/clist | 9759dfea97b86514bec9825d2430abc36decacf0 | [
"Apache-2.0"
] | 166 | 2019-05-16T23:46:08.000Z | 2022-03-31T05:20:23.000Z | ranking/migrations/0056_auto_20201128_2316.py | horacexd/clist | 9759dfea97b86514bec9825d2430abc36decacf0 | [
"Apache-2.0"
] | 92 | 2020-01-18T22:51:53.000Z | 2022-03-12T01:23:57.000Z | ranking/migrations/0056_auto_20201128_2316.py | VadVergasov/clist | 4afcdfe88250d224043b28efa511749347cec71c | [
"Apache-2.0"
] | 23 | 2020-02-09T17:38:43.000Z | 2021-12-09T14:39:07.000Z | # Generated by Django 2.2.13 on 2020-11-28 23:16
from django.db import migrations, models
| 23.277778 | 107 | 0.637232 |
879159c7ecfa20cd2c5df431af5a9c4a1ec6e23d | 489 | py | Python | aioboto3/resources/base.py | dacevedo12/aioboto3 | 289e08d7778dcbfa520c2fdd889206a9e98575be | [
"Apache-2.0"
] | null | null | null | aioboto3/resources/base.py | dacevedo12/aioboto3 | 289e08d7778dcbfa520c2fdd889206a9e98575be | [
"Apache-2.0"
] | null | null | null | aioboto3/resources/base.py | dacevedo12/aioboto3 | 289e08d7778dcbfa520c2fdd889206a9e98575be | [
"Apache-2.0"
] | null | null | null | import logging
import warnings
from boto3.resources.base import ServiceResource
logger = logging.getLogger(__name__)
| 25.736842 | 78 | 0.738241 |
8791725d30f44e82a659356c39e4c7bccfcfd512 | 11,728 | py | Python | AdvBox/examples/utils.py | Tough2011/PaddleSleeve | e654598a370220fbbc96ae527833676183909383 | [
"Apache-2.0"
] | 2 | 2022-02-24T08:47:04.000Z | 2022-02-24T08:47:13.000Z | AdvBox/examples/utils.py | Tough2011/PaddleSleeve | e654598a370220fbbc96ae527833676183909383 | [
"Apache-2.0"
] | null | null | null | AdvBox/examples/utils.py | Tough2011/PaddleSleeve | e654598a370220fbbc96ae527833676183909383 | [
"Apache-2.0"
] | null | null | null | # Copyright (c) 2021 PaddlePaddle Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by appli... | 29.541562 | 126 | 0.612892 |
87930ac2ba2d5084ba1fa7dbb011e1fe84ad4946 | 399 | py | Python | shield.com/metahumans/validators.py | euribates/curso-django | 06f71a7d5b239e294c0cc6b3972861ed8d1c59d0 | [
"CC-BY-4.0"
] | 1 | 2020-04-14T11:08:11.000Z | 2020-04-14T11:08:11.000Z | shield.com/metahumans/validators.py | euribates/curso-django | 06f71a7d5b239e294c0cc6b3972861ed8d1c59d0 | [
"CC-BY-4.0"
] | null | null | null | shield.com/metahumans/validators.py | euribates/curso-django | 06f71a7d5b239e294c0cc6b3972861ed8d1c59d0 | [
"CC-BY-4.0"
] | null | null | null | #!/usr/bin/python
# -*- coding: utf-8 -*-
from __future__ import print_function
from __future__ import absolute_import
from __future__ import division
from __future__ import unicode_literals
from django.core.exceptions import ValidationError
| 26.6 | 78 | 0.774436 |
8793f9ea482d0f9374dda4215d86b8945f6bf480 | 1,709 | py | Python | api/tiposrefeicao.py | Guergeiro/bd2-group2 | 34520e40ef915dc7bb89486ac2322f8994ac9862 | [
"MIT"
] | null | null | null | api/tiposrefeicao.py | Guergeiro/bd2-group2 | 34520e40ef915dc7bb89486ac2322f8994ac9862 | [
"MIT"
] | 12 | 2019-11-17T21:22:49.000Z | 2020-01-19T18:10:00.000Z | api/tiposrefeicao.py | Guergeiro/bd2-group2 | 34520e40ef915dc7bb89486ac2322f8994ac9862 | [
"MIT"
] | 2 | 2019-11-15T16:47:21.000Z | 2019-11-17T13:59:40.000Z | from flask import Blueprint, request
import json
import databaseutils as utils
tiposrefeicao = Blueprint("tiposrefeicao", __name__)
tiposrefeicaoColumns = ["cod_tiporefeicao", "designacao"]
| 37.152174 | 88 | 0.715038 |
87952a504dcf731fe7d1f7b6f19e351c3c8eec5a | 1,464 | py | Python | environment/postgresql_backups/scripts/insert.py | DarkSideMoon/metrics-dotnet-samples | 55fb9969370b500b76c01946039aa06421895f4f | [
"MIT"
] | null | null | null | environment/postgresql_backups/scripts/insert.py | DarkSideMoon/metrics-dotnet-samples | 55fb9969370b500b76c01946039aa06421895f4f | [
"MIT"
] | 8 | 2021-11-28T21:58:19.000Z | 2022-03-01T00:04:06.000Z | environment/postgresql_backups/scripts/insert.py | DarkSideMoon/metrics-dotnet-samples | 55fb9969370b500b76c01946039aa06421895f4f | [
"MIT"
] | null | null | null | #!/usr/bin/env /usr/local/opt/python@3.9/bin/python3.9
import sys
import psycopg2
from faker import Faker
from contextlib import closing
from random import randint
import time
if __name__ == "__main__":
total = 10
batch_size = 1000
if len(sys.argv) > 1:
total = int(sys.argv[1])
if len(sys.... | 32.533333 | 144 | 0.561475 |
87957d42b517250e340c85eabe5b2c0215cd012e | 2,092 | py | Python | DataVis/faradaysky_disp.py | EmmaAlexander/possum-tools | 051ebca682cd97b68fa2a89c9d67e99cf85b09c7 | [
"MIT"
] | 5 | 2021-11-18T13:27:30.000Z | 2021-12-05T00:15:33.000Z | DataVis/faradaysky_disp.py | EmmaAlexander/possum-tools | 051ebca682cd97b68fa2a89c9d67e99cf85b09c7 | [
"MIT"
] | null | null | null | DataVis/faradaysky_disp.py | EmmaAlexander/possum-tools | 051ebca682cd97b68fa2a89c9d67e99cf85b09c7 | [
"MIT"
] | null | null | null | import os
import sys
import matplotlib.pyplot as plt
import numpy as np
import cmasher as cmr
import astropy.units as u
import astropy.coordinates as coord
from astropy.io import ascii
from astropy.io import fits
from astropy.wcs import WCS
from functions import *
plt.rcParams['mathtext.fontset'] = 'cm'
plt.rcParams[... | 30.318841 | 91 | 0.736616 |
8797dc3ef1031456c069cbbb89dbdaafc3b5a76e | 137 | py | Python | ty.py | IsSveshuD/lab_2_12 | e7a276292fed67764526fff4dda582a86f2ddf45 | [
"MIT"
] | null | null | null | ty.py | IsSveshuD/lab_2_12 | e7a276292fed67764526fff4dda582a86f2ddf45 | [
"MIT"
] | null | null | null | ty.py | IsSveshuD/lab_2_12 | e7a276292fed67764526fff4dda582a86f2ddf45 | [
"MIT"
] | null | null | null | import re
a = 'dsf !?#'
c(a)
| 11.416667 | 31 | 0.489051 |
8799ab51d7c6f840177cf89a06ffd228899158aa | 2,859 | py | Python | polyA/fill_confidence_matrix.py | TravisWheelerLab/polyA | cbab7f2416066fd24340913fbf5328fb36432131 | [
"BSD-3-Clause"
] | 3 | 2021-01-15T11:39:30.000Z | 2021-01-26T07:28:32.000Z | polyA/fill_confidence_matrix.py | TravisWheelerLab/polyA | cbab7f2416066fd24340913fbf5328fb36432131 | [
"BSD-3-Clause"
] | 21 | 2020-12-09T23:07:43.000Z | 2021-09-23T03:05:35.000Z | polyA/fill_confidence_matrix.py | TravisWheelerLab/polyA | cbab7f2416066fd24340913fbf5328fb36432131 | [
"BSD-3-Clause"
] | null | null | null | from typing import Dict, List, Tuple
from .confidence_cm import confidence_cm
from .matrices import ConfidenceMatrix
from .performance import timeit
| 33.635294 | 85 | 0.622595 |
8799edb410a9b593ae1ec6c87d90f8b46275cfe2 | 1,005 | py | Python | website/articles.py | ceyeoh/fyp_doppler | 4805378d57870560f8a8b450ec49b6c72a85962a | [
"MIT"
] | null | null | null | website/articles.py | ceyeoh/fyp_doppler | 4805378d57870560f8a8b450ec49b6c72a85962a | [
"MIT"
] | null | null | null | website/articles.py | ceyeoh/fyp_doppler | 4805378d57870560f8a8b450ec49b6c72a85962a | [
"MIT"
] | null | null | null | from flask import Blueprint, render_template
from flask_login import login_required, current_user
articles = Blueprint(
"articles",
__name__,
)
| 22.840909 | 77 | 0.763184 |
879aa68e685cec97b9d594f9347dab0f1569f23f | 6,181 | py | Python | src/main.py | neeraj310/DLfM_BrandManagement | 1df952ed38018391c876b822338f30ff9c9f6568 | [
"Apache-2.0"
] | null | null | null | src/main.py | neeraj310/DLfM_BrandManagement | 1df952ed38018391c876b822338f30ff9c9f6568 | [
"Apache-2.0"
] | null | null | null | src/main.py | neeraj310/DLfM_BrandManagement | 1df952ed38018391c876b822338f30ff9c9f6568 | [
"Apache-2.0"
] | null | null | null | from flask import Flask, render_template, request, redirect, url_for
import tensorflow as tf
from keras.models import load_model
from keras.backend import set_session
from src.utils import image_preprocessing
from src.utils import overall_class_label
from src.utils import infinite_scraper
# sessions and default graphs... | 49.055556 | 138 | 0.761204 |
879ae2125f2be56cca379202ae8598161954d149 | 2,777 | py | Python | rvaconnect/circles/migrations/0001_initial.py | rva-data/rvaconnect | dc7e387dd35971ff5514f2675532e29094843ae2 | [
"BSD-3-Clause"
] | 1 | 2015-01-27T05:24:13.000Z | 2015-01-27T05:24:13.000Z | rvaconnect/circles/migrations/0001_initial.py | rva-data/rvaconnect | dc7e387dd35971ff5514f2675532e29094843ae2 | [
"BSD-3-Clause"
] | null | null | null | rvaconnect/circles/migrations/0001_initial.py | rva-data/rvaconnect | dc7e387dd35971ff5514f2675532e29094843ae2 | [
"BSD-3-Clause"
] | null | null | null | # -*- coding: utf-8 -*-
import datetime
from south.db import db
from south.v2 import SchemaMigration
from django.db import models
| 55.54 | 138 | 0.605329 |
879af2c105954003dfafd0a1947df6869a7f44fa | 512 | py | Python | PythonExercicios/ex017.py | gabjohann/python_3 | 380cb622669ed82d6b22fdd09d41f02f1ad50a73 | [
"MIT"
] | null | null | null | PythonExercicios/ex017.py | gabjohann/python_3 | 380cb622669ed82d6b22fdd09d41f02f1ad50a73 | [
"MIT"
] | null | null | null | PythonExercicios/ex017.py | gabjohann/python_3 | 380cb622669ed82d6b22fdd09d41f02f1ad50a73 | [
"MIT"
] | null | null | null | # Faa um programa que leia o comprimento do cateto oposto e a do cateto adjacente de um tringulo retngulo.
# Calcule e mostre o comprimento da hipotenusa.
from math import hypot
catoposto = float(input('Cateto oposto: '))
catadjacente = float(input('Cateto adjacente: '))
print(hypot(catoposto, catadjacente))
'''
Sol... | 30.117647 | 109 | 0.732422 |
879b31bea6b24323ed8fa97a0bdf6f6174418a2f | 2,837 | py | Python | code/tmp_rtrip/tkinter/messagebox.py | emilyemorehouse/ast-and-me | 3f58117512e125e1ecbe3c72f2f0d26adb80b7b3 | [
"MIT"
] | 24 | 2018-01-23T05:28:40.000Z | 2021-04-13T20:52:59.000Z | code/tmp_rtrip/tkinter/messagebox.py | emilyemorehouse/ast-and-me | 3f58117512e125e1ecbe3c72f2f0d26adb80b7b3 | [
"MIT"
] | 17 | 2017-12-21T18:32:31.000Z | 2018-12-18T17:09:50.000Z | code/tmp_rtrip/tkinter/messagebox.py | emilyemorehouse/ast-and-me | 3f58117512e125e1ecbe3c72f2f0d26adb80b7b3 | [
"MIT"
] | null | null | null | from tkinter.commondialog import Dialog
ERROR = 'error'
INFO = 'info'
QUESTION = 'question'
WARNING = 'warning'
ABORTRETRYIGNORE = 'abortretryignore'
OK = 'ok'
OKCANCEL = 'okcancel'
RETRYCANCEL = 'retrycancel'
YESNO = 'yesno'
YESNOCANCEL = 'yesnocancel'
ABORT = 'abort'
RETRY = 'retry'
IGNORE = 'ignore'
OK = 'ok'
CANCEL... | 28.656566 | 78 | 0.646458 |
879cdfa799a43a3cd06f5d3f201e4e357ab443c1 | 550 | py | Python | models/tree.py | pigaov10/tree_manager | c85aa03d59536ebe6b8fac0407fd285094df3a65 | [
"Apache-2.0"
] | null | null | null | models/tree.py | pigaov10/tree_manager | c85aa03d59536ebe6b8fac0407fd285094df3a65 | [
"Apache-2.0"
] | null | null | null | models/tree.py | pigaov10/tree_manager | c85aa03d59536ebe6b8fac0407fd285094df3a65 | [
"Apache-2.0"
] | null | null | null | from flask_sqlalchemy import SQLAlchemy
db = SQLAlchemy()
| 30.555556 | 85 | 0.656364 |
879f2916cb315017dfa31f66e1aa41f28cecd9f9 | 1,159 | py | Python | plugin.video.youtube/resources/lib/youtube_plugin/kodion/impl/xbmc/xbmc_progress_dialog.py | akuala/REPO.KUALA | ea9a157025530d2ce8fa0d88431c46c5352e89d4 | [
"Apache-2.0"
] | 2 | 2018-11-02T19:55:30.000Z | 2020-08-14T02:22:20.000Z | plugin.video.youtube/resources/lib/youtube_plugin/kodion/impl/xbmc/xbmc_progress_dialog.py | akuala/REPO.KUALA | ea9a157025530d2ce8fa0d88431c46c5352e89d4 | [
"Apache-2.0"
] | null | null | null | plugin.video.youtube/resources/lib/youtube_plugin/kodion/impl/xbmc/xbmc_progress_dialog.py | akuala/REPO.KUALA | ea9a157025530d2ce8fa0d88431c46c5352e89d4 | [
"Apache-2.0"
] | 3 | 2019-12-17T20:47:00.000Z | 2021-02-11T19:03:59.000Z | # -*- coding: utf-8 -*-
"""
Copyright (C) 2014-2016 bromix (plugin.video.youtube)
Copyright (C) 2016-2018 plugin.video.youtube
SPDX-License-Identifier: GPL-2.0-only
See LICENSES/GPL-2.0-only for more information.
"""
from six import string_types
import xbmcgui
from ..abstract_progress_dialog import ... | 26.953488 | 70 | 0.648835 |
87a0c198aaf64fb0040e08381e0e0853c27aa4ce | 1,483 | py | Python | settings.py | vboginskey/cribfinder | fe89717b5ed503a42100069cad966f82b495d7b5 | [
"MIT"
] | null | null | null | settings.py | vboginskey/cribfinder | fe89717b5ed503a42100069cad966f82b495d7b5 | [
"MIT"
] | null | null | null | settings.py | vboginskey/cribfinder | fe89717b5ed503a42100069cad966f82b495d7b5 | [
"MIT"
] | null | null | null | import os
CRAIGSLIST_SITE = 'newjersey'
CRAIGSLIST_CATEGORY = 'apa'
MIN_FT2 = 900
MIN_PRICE = 1500
MAX_PRICE = 3000
MAX_TRANSIT_DISTANCE = 0.75
BOXES = {
"Hoboken": [40.734966101, -74.0439891815, 40.7529789172, -74.0192699432],
"The Heights": [40.7332100782, -74.0573787689, 40.7615609255, -74.0378093719],
... | 34.488372 | 84 | 0.645314 |
87a23d912466c34c97307a017f8d2956a06cdbc3 | 1,729 | py | Python | examples/black_lives/create_progmem.py | fejiso/PxMatrix | fc53edf18af43ab3d0459890c0575243a3592445 | [
"BSD-3-Clause"
] | 599 | 2018-03-31T21:56:45.000Z | 2022-03-26T03:31:30.000Z | examples/black_lives/create_progmem.py | fejiso/PxMatrix | fc53edf18af43ab3d0459890c0575243a3592445 | [
"BSD-3-Clause"
] | 291 | 2018-03-29T11:59:26.000Z | 2022-03-24T19:44:32.000Z | examples/black_lives/create_progmem.py | fejiso/PxMatrix | fc53edf18af43ab3d0459890c0575243a3592445 | [
"BSD-3-Clause"
] | 144 | 2018-03-31T04:45:50.000Z | 2022-03-29T15:00:22.000Z | #!/usr/bin/python
import binascii
import sys
import glob, os
import pdb
file_no=0;
file_names=[];
RGB565=1;
out_string="";
out_string="uint8_t animation_lengths[]={";
for file in glob.glob("*.rgb"):
file_no=file_no+1;
file_names.append(str(file))
size = os.path.getsize(str(file))/64/32/3
out_string+=str(size)+ ","... | 27.444444 | 65 | 0.626952 |
87a2ad1b1b371bea7b87cb1eb38aeedd4b3b8d00 | 210 | py | Python | q5.py | fairoz-ahmed/Python_Practice | e498f81fca02f0773f1c6e9f93e5f1cf1f94eb89 | [
"MIT"
] | null | null | null | q5.py | fairoz-ahmed/Python_Practice | e498f81fca02f0773f1c6e9f93e5f1cf1f94eb89 | [
"MIT"
] | null | null | null | q5.py | fairoz-ahmed/Python_Practice | e498f81fca02f0773f1c6e9f93e5f1cf1f94eb89 | [
"MIT"
] | null | null | null | strobj=Input_data()
strobj.getString()
strobj.printString() | 21 | 24 | 0.67619 |
87a4472be6c42e97657d22b4feb81b29914bd105 | 95 | py | Python | SP/Modul_02/skrypt_01.py | edu-sense-com/OSE-Python-Course | cbf93e18b0cdbcaf54483f6fac5faafd372de068 | [
"MIT"
] | null | null | null | SP/Modul_02/skrypt_01.py | edu-sense-com/OSE-Python-Course | cbf93e18b0cdbcaf54483f6fac5faafd372de068 | [
"MIT"
] | null | null | null | SP/Modul_02/skrypt_01.py | edu-sense-com/OSE-Python-Course | cbf93e18b0cdbcaf54483f6fac5faafd372de068 | [
"MIT"
] | null | null | null | print("To jest pierwsza linia.")
print("To jest druga linia.")
print("To jest trzecia linia.")
| 23.75 | 32 | 0.715789 |
87a487207e754b62b27676fbeca5d8fa0f49a8b7 | 7,340 | py | Python | lisa_flexbe_states_flexbe_behaviors/src/lisa_flexbe_states_flexbe_behaviors/test_multiple_sm.py | lawrence-iviani/lisa-flexbe-states | 5a228b7a9139394c9bd9ea386725226fef7844ac | [
"BSD-3-Clause"
] | null | null | null | lisa_flexbe_states_flexbe_behaviors/src/lisa_flexbe_states_flexbe_behaviors/test_multiple_sm.py | lawrence-iviani/lisa-flexbe-states | 5a228b7a9139394c9bd9ea386725226fef7844ac | [
"BSD-3-Clause"
] | null | null | null | lisa_flexbe_states_flexbe_behaviors/src/lisa_flexbe_states_flexbe_behaviors/test_multiple_sm.py | lawrence-iviani/lisa-flexbe-states | 5a228b7a9139394c9bd9ea386725226fef7844ac | [
"BSD-3-Clause"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
###########################################################
# WARNING: Generated code! #
# ************************** #
# Manual changes may get lost if file is generated again. #
# Only code inside the [MANUAL] ta... | 49.261745 | 198 | 0.700409 |
87a653834398311d35699ada567936f2e6f4ca64 | 410 | py | Python | data_preparation/jobScreening_cvpr17/extract_spectograms.py | segurac/richEmbeddings | 3279714c4b70db09740152822951cd0359fda8c8 | [
"Apache-2.0"
] | null | null | null | data_preparation/jobScreening_cvpr17/extract_spectograms.py | segurac/richEmbeddings | 3279714c4b70db09740152822951cd0359fda8c8 | [
"Apache-2.0"
] | null | null | null | data_preparation/jobScreening_cvpr17/extract_spectograms.py | segurac/richEmbeddings | 3279714c4b70db09740152822951cd0359fda8c8 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
import sys
import pickle
import numpy as np
from scipy.io import wavfile
import python_speech_features as fextract
audio_filename = sys.argv[1]
features_filename = sys.argv[2]
rate, sig = wavfile.read(audio_filename)
fbank_feat = fextract.logfbank(sig,samplerate=r... | 15.769231 | 51 | 0.74878 |
87a6bfa19863925f03157d3ac9abad941247fbad | 2,999 | py | Python | 1.3.BayesianInference/exercises/srcs/5/connected_waxman.py | mihaighidoveanu/machine-learning-examples | e5a7ab71e52ae2809115eb7d7c943b46ebf394f3 | [
"MIT"
] | null | null | null | 1.3.BayesianInference/exercises/srcs/5/connected_waxman.py | mihaighidoveanu/machine-learning-examples | e5a7ab71e52ae2809115eb7d7c943b46ebf394f3 | [
"MIT"
] | null | null | null | 1.3.BayesianInference/exercises/srcs/5/connected_waxman.py | mihaighidoveanu/machine-learning-examples | e5a7ab71e52ae2809115eb7d7c943b46ebf394f3 | [
"MIT"
] | 1 | 2021-05-02T13:12:21.000Z | 2021-05-02T13:12:21.000Z | import numpy as np
import pymc as pm
import networkx as nx
from matplotlib import pyplot as plt
alpha = 0.5
beta = 0.1
L= 9.0
G0 = nx.Graph()
for i in range(1, 10):
for j in range(i + 1, 11):
G0.add_edge(i, j)
#G0.add_path(range(1, 11))
#G0.add_path(range(1, 11))
#G0.remove_edge(2, 3)... | 28.028037 | 85 | 0.598533 |
87a6ec55d7fc458c9d50fc876766d5e4b737fb6f | 452 | py | Python | urls.py | markbate/whiskerboard | fe157c1eff068c089f6948ac5cf21f5a6ff36600 | [
"MIT"
] | 20 | 2015-03-31T09:43:43.000Z | 2021-06-12T23:41:28.000Z | urls.py | ametaireau/whiskerboard | b539337416069e0c794b4c3e4dfdd1afc64562cb | [
"MIT"
] | 5 | 2015-01-19T23:07:52.000Z | 2021-06-10T17:38:37.000Z | urls.py | ametaireau/whiskerboard | b539337416069e0c794b4c3e4dfdd1afc64562cb | [
"MIT"
] | 6 | 2015-05-14T21:05:31.000Z | 2018-04-07T22:40:39.000Z | from django.conf.urls.defaults import patterns, include, url
from django.contrib import admin
from board.feeds import EventFeed
from board.views import IndexView, ServiceView
admin.autodiscover()
urlpatterns = patterns('',
url(r'^$', IndexView.as_view(), name='index'),
url(r'^services/(?P<slug>[-\w]+)$', Serv... | 30.133333 | 79 | 0.692478 |
87a7a5a455773a2830eecd85f18579f1935a4094 | 20,715 | py | Python | antipetros_discordbot/cogs/general_cogs/image_manipulation_cog.py | Giddius/Antipetros_Discord_Bot | 2c139a5c0fc410385e936999989513fc1e7ebc8b | [
"MIT"
] | null | null | null | antipetros_discordbot/cogs/general_cogs/image_manipulation_cog.py | Giddius/Antipetros_Discord_Bot | 2c139a5c0fc410385e936999989513fc1e7ebc8b | [
"MIT"
] | 13 | 2021-02-19T02:22:28.000Z | 2021-02-20T03:19:11.000Z | antipetros_discordbot/cogs/general_cogs/image_manipulation_cog.py | Giddius/Antipetros_Discord_Bot | 2c139a5c0fc410385e936999989513fc1e7ebc8b | [
"MIT"
] | 2 | 2020-11-19T10:21:06.000Z | 2021-12-14T00:27:45.000Z |
# region [Imports]
# * Standard Library Imports ---------------------------------------------------------------------------->
import os
import asyncio
from io import BytesIO
from pathlib import Path
from datetime import datetime
from tempfile import TemporaryDirectory
from textwrap import dedent
# * Third Party Impo... | 50.647922 | 200 | 0.662901 |
87a8759b1ef4d1a86ddceb592ba202006fe0e88e | 75,810 | py | Python | sdk/python/pulumi_gcp/iam/workload_identity_pool_provider.py | sisisin/pulumi-gcp | af6681d70ea457843409110c1324817fe55f68ad | [
"ECL-2.0",
"Apache-2.0"
] | 121 | 2018-06-18T19:16:42.000Z | 2022-03-31T06:06:48.000Z | sdk/python/pulumi_gcp/iam/workload_identity_pool_provider.py | sisisin/pulumi-gcp | af6681d70ea457843409110c1324817fe55f68ad | [
"ECL-2.0",
"Apache-2.0"
] | 492 | 2018-06-22T19:41:03.000Z | 2022-03-31T15:33:53.000Z | sdk/python/pulumi_gcp/iam/workload_identity_pool_provider.py | sisisin/pulumi-gcp | af6681d70ea457843409110c1324817fe55f68ad | [
"ECL-2.0",
"Apache-2.0"
] | 43 | 2018-06-19T01:43:13.000Z | 2022-03-23T22:43:37.000Z | # coding=utf-8
# *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union, overload
from .. import... | 57.042889 | 237 | 0.669371 |
87a8977fe67b0ca481dbef216d59dbccffefcd3d | 694 | py | Python | python/get_pj_urls.py | cookie1986/csa-chat-predict | 76fb07160930b0b824306b410b42c13e24983c19 | [
"MIT"
] | null | null | null | python/get_pj_urls.py | cookie1986/csa-chat-predict | 76fb07160930b0b824306b410b42c13e24983c19 | [
"MIT"
] | null | null | null | python/get_pj_urls.py | cookie1986/csa-chat-predict | 76fb07160930b0b824306b410b42c13e24983c19 | [
"MIT"
] | 1 | 2021-06-08T11:23:34.000Z | 2021-06-08T11:23:34.000Z | import requests
from bs4 import BeautifulSoup as soup
import pandas as pd
# PJ chatlog archive
url_main = 'http://perverted-justice.com/?archive=byName'
# get list of chat URLs
req_main = requests.get(url_main)
main_soup = soup(req_main.text, "html.parser")
# list to store URLs
url_link = []
for link in main_soup.fin... | 34.7 | 120 | 0.75072 |
87a9f6cce805832e964e1ac6f9e5aea510c38d7e | 496 | py | Python | mtpipeline/ephem/mt_logging.py | STScI-Citizen-Science/MTPipeline | 903743afe55592ab67a240237d924c7c7383eec7 | [
"Unlicense"
] | 4 | 2015-10-03T02:30:50.000Z | 2016-04-07T04:07:19.000Z | mtpipeline/ephem/mt_logging.py | STScI-Citizen-Science/MTPipeline | 903743afe55592ab67a240237d924c7c7383eec7 | [
"Unlicense"
] | 3 | 2022-02-10T23:02:22.000Z | 2022-02-10T23:02:51.000Z | mtpipeline/ephem/mt_logging.py | STScI-Citizen-Science/MTPipeline | 903743afe55592ab67a240237d924c7c7383eec7 | [
"Unlicense"
] | null | null | null | """
This module contains the basic logging setup for the project.
"""
import datetime
import logging
import os
def setup_logging(module):
"""Set up the logging."""
log_file = os.path.join('/astro/3/mutchler/mt/logs/', module,
module + '_' + datetime.datetime.now().strftime('%Y-%m-%d-%H-%M') + '.log')... | 31 | 83 | 0.614919 |
87ae65900773758ea1e8c983d49e6f56cd93b9ec | 795 | py | Python | clone/views.py | kurian-thomas/neuralcloning | 1458aeeaef6be32a11079a66d09fb94feeeba8c1 | [
"MIT"
] | 9 | 2018-11-15T16:50:59.000Z | 2021-10-05T09:58:36.000Z | clone/views.py | kurian-thomas/neuralcloning | 1458aeeaef6be32a11079a66d09fb94feeeba8c1 | [
"MIT"
] | null | null | null | clone/views.py | kurian-thomas/neuralcloning | 1458aeeaef6be32a11079a66d09fb94feeeba8c1 | [
"MIT"
] | 6 | 2018-11-26T05:38:34.000Z | 2021-03-30T16:30:21.000Z | from django.shortcuts import render, HttpResponse
from django.views.decorators.csrf import csrf_exempt
import os
import base64
# from .celery_test import test
# from clone_script import clone | 25.645161 | 52 | 0.719497 |
87ae6a9d8005591fc2347c0f2c5ef9bc24403258 | 1,777 | py | Python | wis2box/metadata/base.py | webb-ben/wis2node | e577d2bea5524f74872f47eee9deb35d6c510460 | [
"Apache-2.0"
] | 7 | 2021-10-05T11:48:50.000Z | 2022-02-04T12:47:15.000Z | wis2box/metadata/base.py | webb-ben/wis2node | e577d2bea5524f74872f47eee9deb35d6c510460 | [
"Apache-2.0"
] | 47 | 2022-02-15T18:24:22.000Z | 2022-03-31T11:32:52.000Z | wis2box/metadata/base.py | webb-ben/wis2node | e577d2bea5524f74872f47eee9deb35d6c510460 | [
"Apache-2.0"
] | 3 | 2022-02-16T19:36:36.000Z | 2022-03-14T08:14:20.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 fi... | 30.118644 | 79 | 0.630838 |
87ae933f0ebeb6f0ea11f62d21063be61ac683ec | 3,406 | py | Python | packages/core/minos-microservice-common/minos/common/setup.py | minos-framework/minos-python | 9a6ad6783361f3d8a497a088808b55ea7a938c6c | [
"MIT"
] | 247 | 2022-01-24T14:55:30.000Z | 2022-03-25T12:06:17.000Z | packages/core/minos-microservice-common/minos/common/setup.py | minos-framework/minos-python | 9a6ad6783361f3d8a497a088808b55ea7a938c6c | [
"MIT"
] | 168 | 2022-01-24T14:54:31.000Z | 2022-03-31T09:31:09.000Z | packages/core/minos-microservice-common/minos/common/setup.py | minos-framework/minos-python | 9a6ad6783361f3d8a497a088808b55ea7a938c6c | [
"MIT"
] | 21 | 2022-02-06T17:25:58.000Z | 2022-03-27T04:50:29.000Z | from __future__ import (
annotations,
)
import logging
import warnings
from pathlib import (
Path,
)
from typing import (
TYPE_CHECKING,
Optional,
Type,
TypeVar,
Union,
)
from .object import (
Object,
)
if TYPE_CHECKING:
from .config import (
Config,
)
logger = loggin... | 25.609023 | 111 | 0.591897 |
87afa90fb2718364a61c00608eb9958c15861cad | 6,389 | py | Python | addons/base_address_extended/models/res_partner.py | SHIVJITH/Odoo_Machine_Test | 310497a9872db7844b521e6dab5f7a9f61d365a4 | [
"Apache-2.0"
] | null | null | null | addons/base_address_extended/models/res_partner.py | SHIVJITH/Odoo_Machine_Test | 310497a9872db7844b521e6dab5f7a9f61d365a4 | [
"Apache-2.0"
] | null | null | null | addons/base_address_extended/models/res_partner.py | SHIVJITH/Odoo_Machine_Test | 310497a9872db7844b521e6dab5f7a9f61d365a4 | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
# Part of Odoo. See LICENSE file for full copyright and licensing details.
import re
from odoo import api, fields, models, _
from odoo.exceptions import UserError
| 45.635714 | 98 | 0.594616 |
87afb24e4081ff8ae5ac4df3accb708ca9bd5693 | 10,032 | py | Python | third_party/aten/src/ATen/gen.py | AIHGF/caffe2 | b9e61b72cd460f4c9f644294a7bf0b6306df17fc | [
"Apache-2.0"
] | 58 | 2019-01-03T02:20:41.000Z | 2022-02-25T14:24:13.000Z | third_party/aten/src/ATen/gen.py | AIHGF/caffe2 | b9e61b72cd460f4c9f644294a7bf0b6306df17fc | [
"Apache-2.0"
] | 6 | 2019-02-12T03:52:08.000Z | 2020-12-17T02:40:37.000Z | third_party/aten/src/ATen/gen.py | AIHGF/caffe2 | b9e61b72cd460f4c9f644294a7bf0b6306df17fc | [
"Apache-2.0"
] | 5 | 2019-01-03T06:46:04.000Z | 2019-10-29T07:40:11.000Z | from optparse import OptionParser
import yaml
import cwrap_parser
import nn_parse
import native_parse
import preprocess_declarations
import function_wrapper
import dispatch_macros
import copy_wrapper
from code_template import CodeTemplate
parser = OptionParser()
parser.add_option('-s', '--source-path', help='path t... | 37.856604 | 88 | 0.650817 |