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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
8e8b09c131ac6da52f50590d3b1d0a6f68847c9b | 636 | py | Python | libotp/__init__.py | SuperM0use24/TT-CL-Edition | fdad8394f0656ae122b687d603f72afafd220c65 | [
"MIT"
] | null | null | null | libotp/__init__.py | SuperM0use24/TT-CL-Edition | fdad8394f0656ae122b687d603f72afafd220c65 | [
"MIT"
] | 1 | 2021-06-08T17:16:48.000Z | 2021-06-08T17:16:48.000Z | libotp/__init__.py | SuperM0use24/TT-CL-Edition | fdad8394f0656ae122b687d603f72afafd220c65 | [
"MIT"
] | 3 | 2021-06-03T05:36:36.000Z | 2021-06-22T15:07:31.000Z | from movement.CImpulse import CImpulse
from movement.CMover import CMover
from nametag import NametagGlobals
from nametag.ChatBalloon import ChatBalloon
from nametag.ClickablePopup import ClickablePopup
from nametag.MarginManager import MarginManager
from nametag.MarginPopup import MarginPopup
from nametag.Nametag impo... | 39.75 | 49 | 0.882075 |
8e8b9d129f916946481bd39278edb777b5b2cfcd | 338 | py | Python | SoloLearnPython3/Part_2/sketch_4b.py | mahmoudmheisen91/Python_EDU | 3ca08f65bb219335502159a6d13617b9a73c3b7e | [
"MIT"
] | null | null | null | SoloLearnPython3/Part_2/sketch_4b.py | mahmoudmheisen91/Python_EDU | 3ca08f65bb219335502159a6d13617b9a73c3b7e | [
"MIT"
] | null | null | null | SoloLearnPython3/Part_2/sketch_4b.py | mahmoudmheisen91/Python_EDU | 3ca08f65bb219335502159a6d13617b9a73c3b7e | [
"MIT"
] | null | null | null | # Files:
import os
try:
f = open(os.getcwd()+"\\text_file_1.txt", "r+")
#print(f.read())
#print(f.read(16))
#print(f.readlines())
#for line in f:
# print(line)
a = f.write("testing...")
print(a)
#print(f.read())
finally:
f.close()
# With - auto close:
with open(os.getcwd()+"\\text_file_1.txt", "r+") as f:
... | 15.363636 | 54 | 0.591716 |
8e8bec9a8d86171e5745684d049ed6fa94f340f4 | 442 | py | Python | src/minerva_db/sql/serializers/fileset.py | labsyspharm/minerva-db | 49c205fc5d9bcc513b4eb21b6493c928ea711fce | [
"MIT"
] | null | null | null | src/minerva_db/sql/serializers/fileset.py | labsyspharm/minerva-db | 49c205fc5d9bcc513b4eb21b6493c928ea711fce | [
"MIT"
] | 2 | 2018-06-06T13:29:23.000Z | 2018-07-25T00:36:38.000Z | src/minerva_db/sql/serializers/fileset.py | sorgerlab/minerva-db | 49c205fc5d9bcc513b4eb21b6493c928ea711fce | [
"MIT"
] | 1 | 2020-03-06T23:53:42.000Z | 2020-03-06T23:53:42.000Z | from marshmallow_sqlalchemy import ModelSchema
from ..models import Fileset
fileset_schema = FilesetSchema()
filesets_schema = FilesetSchema(many=True)
| 27.625 | 78 | 0.662896 |
8e8d184961edd6c1dfb170d828dad00771f70762 | 1,369 | py | Python | jina/executors/indexers/cache.py | sdsd0101/jina | 1a835d9015c627a2cbcdc58ee3d127962ada1bc9 | [
"Apache-2.0"
] | null | null | null | jina/executors/indexers/cache.py | sdsd0101/jina | 1a835d9015c627a2cbcdc58ee3d127962ada1bc9 | [
"Apache-2.0"
] | null | null | null | jina/executors/indexers/cache.py | sdsd0101/jina | 1a835d9015c627a2cbcdc58ee3d127962ada1bc9 | [
"Apache-2.0"
] | null | null | null | from typing import Optional
import numpy as np
from . import BaseKVIndexer
from ...proto import uid
| 29.12766 | 114 | 0.620161 |
8e9035aefdb19c5d43ee4d673e5805bea3b082d6 | 1,005 | py | Python | setup.py | PracticalCleanArchitecture/fledgling | ec2fdd8446c0ecb94bdd8f8cfaec4c264b546683 | [
"MIT"
] | null | null | null | setup.py | PracticalCleanArchitecture/fledgling | ec2fdd8446c0ecb94bdd8f8cfaec4c264b546683 | [
"MIT"
] | null | null | null | setup.py | PracticalCleanArchitecture/fledgling | ec2fdd8446c0ecb94bdd8f8cfaec4c264b546683 | [
"MIT"
] | null | null | null | # -*- coding: utf8 -*-
import setuptools
with open("README.md", "r", encoding="utf-8") as fh:
long_description = fh.read()
setuptools.setup(
name="fledgling",
version="0.0.1",
author="Liutos",
author_email="mat.liutos@gmail.com",
description="Client of nest",
long_description=long_descript... | 25.125 | 68 | 0.597015 |
8e90797c1a396d8d5df4b10107f151b6eb6a4b1d | 445 | py | Python | Symbol Patterns/symbolpattern143.py | vaidehisinha1/Python-PatternHouse | 49f71bcc5319a838592e69b0e49ef1edba32bf7c | [
"MIT"
] | null | null | null | Symbol Patterns/symbolpattern143.py | vaidehisinha1/Python-PatternHouse | 49f71bcc5319a838592e69b0e49ef1edba32bf7c | [
"MIT"
] | 471 | 2022-01-15T07:07:18.000Z | 2022-02-28T16:01:42.000Z | Symbol Patterns/symbolpattern143.py | vaidehisinha1/Python-PatternHouse | 49f71bcc5319a838592e69b0e49ef1edba32bf7c | [
"MIT"
] | 2 | 2022-01-17T09:43:16.000Z | 2022-01-29T15:15:47.000Z | height = int(input())
for i in range(1,height+1):
for j in range(1, height+1):
if(i == height//2 or i == height or j == 1 or j == height and i >= height//2 or (j%2==1 and i<= height//2)):
print("*",end=" ")
else:
print(end=" ")
print()
# Sample Input :- 7
#... | 18.541667 | 116 | 0.346067 |
8e948dd6b36b98377cd26d3e42151c11724995ee | 1,630 | py | Python | auto_script.py | UrWorstNytmare/SEVA---Sparrow-an-Essential-Voice-Assistant | 37c009aaf7e28663681b8bfb217859a4b2f7fccc | [
"MIT"
] | null | null | null | auto_script.py | UrWorstNytmare/SEVA---Sparrow-an-Essential-Voice-Assistant | 37c009aaf7e28663681b8bfb217859a4b2f7fccc | [
"MIT"
] | null | null | null | auto_script.py | UrWorstNytmare/SEVA---Sparrow-an-Essential-Voice-Assistant | 37c009aaf7e28663681b8bfb217859a4b2f7fccc | [
"MIT"
] | null | null | null | import pyautogui
import time
| 20.897436 | 38 | 0.60184 |
8e99999de5094fce0ec82d779540a74213bbb477 | 985 | py | Python | python/test/datetime/test_sec2str.py | takashiharano/util | 0f730475386a77415545de3f9763e5bdeaab0e94 | [
"MIT"
] | null | null | null | python/test/datetime/test_sec2str.py | takashiharano/util | 0f730475386a77415545de3f9763e5bdeaab0e94 | [
"MIT"
] | null | null | null | python/test/datetime/test_sec2str.py | takashiharano/util | 0f730475386a77415545de3f9763e5bdeaab0e94 | [
"MIT"
] | null | null | null | #!python
import os
import sys
sys.path.append(os.path.join(os.path.dirname(__file__), '../..'))
import util
main()
| 23.452381 | 65 | 0.684264 |
8e9a24be54fa83ecc2a85a73f853297e027edb0d | 4,001 | py | Python | ejercicios/alarma.py | proto-tools-docs/Soluciones | 7a619e00572a3496cb08a90702f152f52c6d5e56 | [
"MIT"
] | null | null | null | ejercicios/alarma.py | proto-tools-docs/Soluciones | 7a619e00572a3496cb08a90702f152f52c6d5e56 | [
"MIT"
] | null | null | null | ejercicios/alarma.py | proto-tools-docs/Soluciones | 7a619e00572a3496cb08a90702f152f52c6d5e56 | [
"MIT"
] | null | null | null | """AyudaEnPython: https://www.facebook.com/groups/ayudapython
Crear una aplicacin de consola que permita al usuario programar alarmas
de tiempo. Para realizar esta aplicacin deber presentarle al usuario
las siguientes opciones: ver alarmas activas, agregar nueva alarma,
agregar nueva alarma con tiempo aleatorio, edita... | 31.015504 | 75 | 0.610847 |
8e9b66493877ca1835035aebdc75c1dc4077387b | 1,864 | py | Python | 01-Apprenez/4.06b.py | gruiick/openclassrooms-py | add4b28eab8b311dea7c1d3915a22061f54326a9 | [
"BSD-2-Clause"
] | null | null | null | 01-Apprenez/4.06b.py | gruiick/openclassrooms-py | add4b28eab8b311dea7c1d3915a22061f54326a9 | [
"BSD-2-Clause"
] | null | null | null | 01-Apprenez/4.06b.py | gruiick/openclassrooms-py | add4b28eab8b311dea7c1d3915a22061f54326a9 | [
"BSD-2-Clause"
] | null | null | null | #!/usr/bin/env python3
# coding: utf-8
# $Id: 4.06b.py 1.2 $
# SPDX-License-Identifier: BSD-2-Clause
""" Rseau (TCP) """
import socket
import select
hote = ''
port = 12800
connexion_principale = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
connexion_principale.bind((hote, port))
connexion_principale.listen(5... | 29.587302 | 92 | 0.675429 |
8e9b9be70724f891d736e64f0a11285b0a0b69c5 | 523 | py | Python | mechlib/amech_io/writer/mess.py | kevinmooreiii/mechdriver | c301be9b04755b2ceaed2d749d546e768621f61d | [
"Apache-2.0"
] | 1 | 2022-03-22T20:47:04.000Z | 2022-03-22T20:47:04.000Z | mechlib/amech_io/writer/mess.py | kevinmooreiii/mechdriver | c301be9b04755b2ceaed2d749d546e768621f61d | [
"Apache-2.0"
] | 1 | 2021-02-12T21:11:16.000Z | 2021-12-07T21:32:14.000Z | mechlib/amech_io/writer/mess.py | kevinmooreiii/mechdriver | c301be9b04755b2ceaed2d749d546e768621f61d | [
"Apache-2.0"
] | 4 | 2020-12-12T18:44:53.000Z | 2022-02-02T04:59:15.000Z | """
Run MESS calculations
"""
import os
import mess_io
from mechlib.amech_io import printer as ioprinter
def output(formulastr, final_pf, mess_path, filename='pf.dat'):
""" Write a mess output file for a pf file
"""
mess_out_str = mess_io.writer.pf_output(formulastr, *final_pf)
ioprinter.messpf... | 24.904762 | 67 | 0.703633 |
8e9c5a5f580743470028916ac01c27e2fac8992d | 262 | py | Python | wgpu/backends/vk.py | Correct-Syntax/wgpu-py | de57c89183b2092ff73e584fed3494a59d396269 | [
"BSD-2-Clause"
] | 74 | 2020-07-07T06:27:55.000Z | 2022-03-21T10:50:00.000Z | wgpu/backends/vk.py | Correct-Syntax/wgpu-py | de57c89183b2092ff73e584fed3494a59d396269 | [
"BSD-2-Clause"
] | 98 | 2020-06-16T12:20:27.000Z | 2022-03-23T17:35:44.000Z | wgpu/backends/vk.py | Correct-Syntax/wgpu-py | de57c89183b2092ff73e584fed3494a59d396269 | [
"BSD-2-Clause"
] | 11 | 2020-06-16T11:57:01.000Z | 2021-10-05T13:55:07.000Z | """
We *could* implement our own Vulkan backend, so we would not need the wgpu lib.
It would be a lot of work to build and maintain though, so unless the
Rust wgpu project is abandoned or something, this is probably a bad idea.
"""
raise NotImplementedError()
| 29.111111 | 79 | 0.755725 |
8e9d557fa903c33e0f3cd6a6a9aab428ca2638d3 | 1,717 | py | Python | test_implicit.py | laincloud/sso | 01681b26d00d974d6821abfb7e9fb55b76dd0a73 | [
"MIT"
] | 27 | 2016-05-16T12:54:28.000Z | 2020-10-16T13:43:49.000Z | test_implicit.py | laincloud/sso | 01681b26d00d974d6821abfb7e9fb55b76dd0a73 | [
"MIT"
] | 6 | 2016-05-19T02:41:54.000Z | 2018-01-31T09:51:15.000Z | test_implicit.py | laincloud/sso | 01681b26d00d974d6821abfb7e9fb55b76dd0a73 | [
"MIT"
] | 15 | 2016-05-04T08:15:01.000Z | 2020-05-31T14:25:02.000Z | #!/usr/bin/env python
import json
import codecs
from subprocess import Popen, PIPE
from urllib.parse import urlparse, urlencode, parse_qs
from urllib.request import urlopen, Request
serveraddr = 'localhost:8011'
authorization_endpoint = 'http://'+serveraddr+'/oauth2/auth'
token_endpoint = 'http://'+serveraddr+'/oaut... | 27.253968 | 77 | 0.694817 |
8e9d82a4e05b9da4170cbe9911065b74ac889a13 | 2,976 | py | Python | climops/calculate_statistics.py | YakelynRJ/climops | 79384df69a499784e9b4be6ed4f81c1866e1b29d | [
"MIT"
] | null | null | null | climops/calculate_statistics.py | YakelynRJ/climops | 79384df69a499784e9b4be6ed4f81c1866e1b29d | [
"MIT"
] | 8 | 2018-12-06T22:30:26.000Z | 2018-12-12T02:32:12.000Z | climops/calculate_statistics.py | HamidPahlavan/project | 79384df69a499784e9b4be6ed4f81c1866e1b29d | [
"MIT"
] | null | null | null | """
This module is used to generate correlation (R) and regression (b)
coefficients for relationships between the 2015 Census,
2018 Yale Climate Opinion Maps (YCOM) and land area datasets,
as well as p values for these relationships.
"""
import numpy as np
import pandas as pd
from scipy.stats import linregress
def ca... | 39.68 | 97 | 0.713374 |
8e9dcbc8e5b65bb12dd6691d988f8f04cfc8ae26 | 275 | py | Python | vFXT/version.py | ekpgh/AvereSDK-1 | 1e3584f08d2fb519ea3870e7e440cded9aacacd2 | [
"MIT"
] | null | null | null | vFXT/version.py | ekpgh/AvereSDK-1 | 1e3584f08d2fb519ea3870e7e440cded9aacacd2 | [
"MIT"
] | 2 | 2019-03-07T23:59:08.000Z | 2019-03-20T21:47:25.000Z | vFXT/version.py | ekpgh/AvereSDK-1 | 1e3584f08d2fb519ea3870e7e440cded9aacacd2 | [
"MIT"
] | null | null | null | # Copyright (c) 2015-2020 Avere Systems, Inc. All Rights Reserved.
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See LICENSE in the project root for license information.
__version__ = "0.5.4.3"
__version_info__ = (0, 5, 4, 3)
| 45.833333 | 90 | 0.745455 |
8e9e02c3bc1d4b0140e3657d408a5fa53b3dac1b | 14,557 | py | Python | src/python/dart/auth/rmn_required_roles_impl.py | RetailMeNotSandbox/dart | 58a05f56c04fadd6741501262d92aeb143cd2f2e | [
"MIT"
] | 18 | 2016-03-03T19:10:21.000Z | 2021-07-14T22:37:35.000Z | src/python/dart/auth/rmn_required_roles_impl.py | RetailMeNotSandbox/dart | 58a05f56c04fadd6741501262d92aeb143cd2f2e | [
"MIT"
] | 62 | 2016-04-11T15:17:23.000Z | 2017-09-08T17:18:53.000Z | src/python/dart/auth/rmn_required_roles_impl.py | RetailMeNotSandbox/dart | 58a05f56c04fadd6741501262d92aeb143cd2f2e | [
"MIT"
] | 15 | 2016-03-03T15:38:34.000Z | 2019-03-27T19:33:08.000Z | """ The decorator to decide if an dart api can be executed by user.
Assumptions: Roles are either of type Member_of (e.g. datascience or ba)
or action role (e.g. create, edit, run, delete)
and such roles exist in permission service.
E.g. Is_Member_Of_DataScience, Can_Edit ...
... | 53.914815 | 144 | 0.695748 |
8e9e302f177c972e4caf914f4f0b636eed885e2d | 251 | py | Python | exercises/solution_F4.py | dataXcode/IPP | c9b94ad2d7dc14b01e6657a4fa555507bbc7e93b | [
"MIT"
] | null | null | null | exercises/solution_F4.py | dataXcode/IPP | c9b94ad2d7dc14b01e6657a4fa555507bbc7e93b | [
"MIT"
] | null | null | null | exercises/solution_F4.py | dataXcode/IPP | c9b94ad2d7dc14b01e6657a4fa555507bbc7e93b | [
"MIT"
] | null | null | null | house = [ ['hallway', 14.35],
['kitchen', 15.0],
['living room', 19.0],
['bedroom', 12.5],
['bathroom', 8.75] ]
# Code the for loop
for x in house:
print(str(x[0]) + ' area is ' + str(x[1]) + 'm')
| 25.1 | 50 | 0.426295 |
8e9f859f349e9a6f8d472919cfc87db94e9b5f17 | 5,539 | py | Python | user/models.py | isakcodes/website | a781f4c90c609461a64340a904d577014f5690ae | [
"MIT"
] | null | null | null | user/models.py | isakcodes/website | a781f4c90c609461a64340a904d577014f5690ae | [
"MIT"
] | null | null | null | user/models.py | isakcodes/website | a781f4c90c609461a64340a904d577014f5690ae | [
"MIT"
] | null | null | null | import uuid
from django.contrib.auth.base_user import AbstractBaseUser, BaseUserManager
from django.core.exceptions import ValidationError
from django.db import models
from django.utils import timezone
from versatileimagefield.fields import VersatileImageField
from app.utils import is_email_organiser
from user.enums ... | 31.117978 | 98 | 0.642535 |
8ea325c280946ba76ac671f37f4c3a8ab1966647 | 4,114 | py | Python | level_3/module/dragon_module.py | yogeshwari-vs/2D-Paramotoring-Pygame | 82fb2ab81a8d2fb91e3afa27566262c7d80a8cbc | [
"MIT"
] | 2 | 2021-07-12T14:39:36.000Z | 2021-10-01T14:49:34.000Z | level_3/module/dragon_module.py | yogeshwari-vs/2D-Paramotoring-Pygame | 82fb2ab81a8d2fb91e3afa27566262c7d80a8cbc | [
"MIT"
] | 4 | 2021-05-06T10:58:54.000Z | 2021-06-15T14:59:01.000Z | level_3/module/dragon_module.py | yogeshwari-vs/2D-Paramotoring-Pygame | 82fb2ab81a8d2fb91e3afa27566262c7d80a8cbc | [
"MIT"
] | 3 | 2021-07-19T12:02:25.000Z | 2021-07-19T15:58:46.000Z | import math
import os
import pygame
import random
from level_3.module import background_module
from level_3.module import foreground_module
from level_3.module import player_module
def create_dragon():
"""
Creates a dragon in the free space.
"""
x = random.randint(50,400) # choose random y value in upper half o... | 35.773913 | 161 | 0.740642 |
8ea5ce27eec57df1a7b622e17bd1173417039fe5 | 717 | py | Python | alembic/versions/9e04ca8f19e8_removed_wishlist_item_unique_name_.py | kirill-kundik/py-Junction-Backend | 760ca1dc1f2d6ee0cce4c2cd69f346f1c484520a | [
"MIT"
] | null | null | null | alembic/versions/9e04ca8f19e8_removed_wishlist_item_unique_name_.py | kirill-kundik/py-Junction-Backend | 760ca1dc1f2d6ee0cce4c2cd69f346f1c484520a | [
"MIT"
] | null | null | null | alembic/versions/9e04ca8f19e8_removed_wishlist_item_unique_name_.py | kirill-kundik/py-Junction-Backend | 760ca1dc1f2d6ee0cce4c2cd69f346f1c484520a | [
"MIT"
] | null | null | null | """removed wishlist item unique name constraint
Revision ID: 9e04ca8f19e8
Revises: 80f80413d24c
Create Date: 2019-11-16 16:50:49.691635
"""
from alembic import op
import sqlalchemy as sa
# revision identifiers, used by Alembic.
revision = '9e04ca8f19e8'
down_revision = '80f80413d24c'
branch_labels = None
depends_on... | 24.724138 | 76 | 0.712692 |
8ea84126a676cf780c8a6c973d5cde593f7efdb3 | 2,373 | py | Python | pyramid_debugtoolbar/tests/test_init.py | rollbar/pyramid_debugtoolbar | dab4278eb68b801b1d3e9679cf1308096c3f849f | [
"Apache-2.0"
] | null | null | null | pyramid_debugtoolbar/tests/test_init.py | rollbar/pyramid_debugtoolbar | dab4278eb68b801b1d3e9679cf1308096c3f849f | [
"Apache-2.0"
] | null | null | null | pyramid_debugtoolbar/tests/test_init.py | rollbar/pyramid_debugtoolbar | dab4278eb68b801b1d3e9679cf1308096c3f849f | [
"Apache-2.0"
] | 1 | 2021-02-21T12:18:04.000Z | 2021-02-21T12:18:04.000Z | import unittest
from pyramid import testing
| 42.375 | 81 | 0.575643 |
8ea85f1616980155994334884130735f6c0a2d5c | 200 | py | Python | Server/manage.py | lanlian7/MyServer | aa91adb219cb2d0ee0aead05eb2b140e873a7441 | [
"Apache-2.0"
] | null | null | null | Server/manage.py | lanlian7/MyServer | aa91adb219cb2d0ee0aead05eb2b140e873a7441 | [
"Apache-2.0"
] | null | null | null | Server/manage.py | lanlian7/MyServer | aa91adb219cb2d0ee0aead05eb2b140e873a7441 | [
"Apache-2.0"
] | null | null | null | #-*- coding:utf-8-*-
from app import app
__author__='Doris'
__date__='2017.4.16'
__version__='1.0'
"""
call function run to start web test
"""
if __name__ == '__main__':
app.run(debug=True)
| 12.5 | 36 | 0.655 |
8eaa9e9b44dd4cdbcc7d177b9fd352b66bc449f6 | 1,050 | py | Python | vuln_server/vulnerabilities/subprocess_vuln.py | denny00786/CASoftwareDevelopment | d03c82b6bb033a39b4270115ec464eca773e0814 | [
"Apache-2.0"
] | 1 | 2020-04-02T00:29:16.000Z | 2020-04-02T00:29:16.000Z | vuln_server/vulnerabilities/subprocess_vuln.py | denny00786/CASoftwareDevelopment | d03c82b6bb033a39b4270115ec464eca773e0814 | [
"Apache-2.0"
] | null | null | null | vuln_server/vulnerabilities/subprocess_vuln.py | denny00786/CASoftwareDevelopment | d03c82b6bb033a39b4270115ec464eca773e0814 | [
"Apache-2.0"
] | 4 | 2021-04-01T21:31:01.000Z | 2022-03-23T08:22:44.000Z | import subprocess
from vuln_server.outputgrabber import OutputGrabber
from flask import request, redirect, render_template
| 38.888889 | 79 | 0.552381 |
8eab0af3b0aca18605cc36d406b8f68048ee7f83 | 2,050 | py | Python | tests/test_resource.py | luhn/pyramid-resource | 7de2f4d136ef39f8b223ef675def6a04d71311ae | [
"MIT"
] | 1 | 2019-02-05T03:06:24.000Z | 2019-02-05T03:06:24.000Z | tests/test_resource.py | luhn/pyramid-resource | 7de2f4d136ef39f8b223ef675def6a04d71311ae | [
"MIT"
] | null | null | null | tests/test_resource.py | luhn/pyramid-resource | 7de2f4d136ef39f8b223ef675def6a04d71311ae | [
"MIT"
] | null | null | null | import pytest
from pyramid_resource import Resource
| 24.117647 | 60 | 0.621463 |
8eabcd29eac8ebc369884046556e09048773ff02 | 1,865 | py | Python | setup.py | not-raspberry/planningpoker | 75113821d479f9973b41c39ad77940801c5e9525 | [
"MIT"
] | null | null | null | setup.py | not-raspberry/planningpoker | 75113821d479f9973b41c39ad77940801c5e9525 | [
"MIT"
] | null | null | null | setup.py | not-raspberry/planningpoker | 75113821d479f9973b41c39ad77940801c5e9525 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
"""Planningpoker project setup."""
import os
from setuptools import setup, find_packages
here = os.path.abspath(os.path.dirname(__file__))
with open(os.path.join(here, 'README.rst')) as f:
README = f.read()
# Requirements specified up to the minor version to allow bugfixes to be automatic... | 31.610169 | 97 | 0.656836 |
8eaece1eb32abdc455db7d5a4c88320431dcd8e6 | 47,345 | py | Python | news_cqu.py | Tiangewang0524/cqu_spider | 60899b8ca6b6cf7fa24a8b346cd1461481017129 | [
"Apache-2.0"
] | null | null | null | news_cqu.py | Tiangewang0524/cqu_spider | 60899b8ca6b6cf7fa24a8b346cd1461481017129 | [
"Apache-2.0"
] | 1 | 2020-11-21T08:09:17.000Z | 2020-12-03T13:14:52.000Z | news_cqu.py | Tiangewang0524/cqu_spider | 60899b8ca6b6cf7fa24a8b346cd1461481017129 | [
"Apache-2.0"
] | null | null | null | """
html
"""
import pymysql
import datetime
import requests
from lxml import etree
import pdfkit
import os
import time
import json
import re
# AC
import Ac_auto
# id
task_id = 2
#
spider_url = 'https://news.cqu.edu.cn/newsv2/'
spider_name = ''
#
spider_month = [1, 7]
spider_day = [1]
#
sleep_time = 0.1
# mysql... | 34.940959 | 148 | 0.527638 |
8eb0e701eee4e1e663a1c6a92637e792430b6078 | 462 | py | Python | simple_mean_calculator.py | MumuNiMochii/Dumb_Dump | ee431c934a591bc0868792601f5844615f869af1 | [
"MIT"
] | 1 | 2020-09-21T01:56:41.000Z | 2020-09-21T01:56:41.000Z | simple_mean_calculator.py | MumuNiMochii/Dumb_Dump | ee431c934a591bc0868792601f5844615f869af1 | [
"MIT"
] | null | null | null | simple_mean_calculator.py | MumuNiMochii/Dumb_Dump | ee431c934a591bc0868792601f5844615f869af1 | [
"MIT"
] | 1 | 2020-10-09T01:09:20.000Z | 2020-10-09T01:09:20.000Z | lst = []
num = int(input("Input the number of items: "))
for n in range(num):
# Arguments for Ordinal Numbers in a Set
ord = str(n+1)
if n == 0:
ord += "st"
elif n == 1:
ord += "nd"
elif n == 2:
ord += "rd"
else:
ord += "th"
numbers = int(input("Enter the "+ o... | 25.666667 | 55 | 0.521645 |
8eb13f2dfad3401e94526fe155f73336752b7feb | 2,550 | py | Python | update_description.py | ronioncloud/zimatise | cd8415a9559fb3acd9542ca4a50872a06e178823 | [
"MIT"
] | 5 | 2020-09-11T14:34:47.000Z | 2022-02-15T16:29:48.000Z | update_description.py | ronioncloud/zimatise | cd8415a9559fb3acd9542ca4a50872a06e178823 | [
"MIT"
] | null | null | null | update_description.py | ronioncloud/zimatise | cd8415a9559fb3acd9542ca4a50872a06e178823 | [
"MIT"
] | 5 | 2020-12-23T18:33:35.000Z | 2022-01-20T12:39:45.000Z | import pandas as pd
import os
import shutil
| 32.692308 | 79 | 0.655686 |
8eb2b601fdc2c3d0c7c565e6a7177f4f981f1ffd | 1,057 | py | Python | tests/cases/doc/test_parametrize_alt.py | broglep-work/python-pytest-cases | 4976c0073a2fad5fbe5de34a5d1199efda0b7da9 | [
"BSD-3-Clause"
] | 213 | 2018-07-05T21:21:21.000Z | 2022-03-22T04:54:53.000Z | tests/cases/doc/test_parametrize_alt.py | broglep-work/python-pytest-cases | 4976c0073a2fad5fbe5de34a5d1199efda0b7da9 | [
"BSD-3-Clause"
] | 259 | 2018-06-22T16:46:33.000Z | 2022-03-23T19:39:15.000Z | tests/cases/doc/test_parametrize_alt.py | broglep-work/python-pytest-cases | 4976c0073a2fad5fbe5de34a5d1199efda0b7da9 | [
"BSD-3-Clause"
] | 27 | 2019-03-26T12:46:49.000Z | 2022-02-21T16:56:23.000Z | # Authors: Sylvain MARIE <sylvain.marie@se.com>
# + All contributors to <https://github.com/smarie/python-pytest-cases>
#
# License: 3-clause BSD, <https://github.com/smarie/python-pytest-cases/blob/master/LICENSE>
import pytest
from pytest_cases import parametrize_with_cases
def test_argnames_from_inval... | 27.102564 | 92 | 0.661306 |
8eb2c87afcc1f14248599512c688b1c338373529 | 4,635 | py | Python | botutils/adds.py | Xinverse/BOTC-Bot | 1932c649c81a5a1eab735d7abdee0761c2853940 | [
"MIT"
] | 1 | 2020-06-21T17:20:17.000Z | 2020-06-21T17:20:17.000Z | botutils/adds.py | BlueLenz/Blood-on-the-Clocktower-Storyteller-Discord-Bot | 1932c649c81a5a1eab735d7abdee0761c2853940 | [
"MIT"
] | 1 | 2020-07-07T03:47:44.000Z | 2020-07-07T03:47:44.000Z | botutils/adds.py | BlueLenz/Blood-on-the-Clocktower-Storyteller-Discord-Bot | 1932c649c81a5a1eab735d7abdee0761c2853940 | [
"MIT"
] | 1 | 2022-02-18T00:42:19.000Z | 2022-02-18T00:42:19.000Z | """Contains functions to handle roles and permissions"""
import ast
import configparser
import globvars
Config = configparser.ConfigParser()
Config.read("config.INI")
LOBBY_CHANNEL_ID = Config["user"]["LOBBY_CHANNEL_ID"]
SERVER_ID = Config["user"]["SERVER_ID"]
ALIVE_ROLE_ID = Config["user"]["ALIVE_ROLE_ID"]
DEAD_ROL... | 37.08 | 97 | 0.73247 |
8eb32cf9189677d098fbecdb64b72367e3b2def9 | 21,404 | py | Python | __main__.py | glofflive/podpiska | b0d134a7f7a9847e3ba0d3d202f022cdb54a1e69 | [
"Apache-2.0"
] | null | null | null | __main__.py | glofflive/podpiska | b0d134a7f7a9847e3ba0d3d202f022cdb54a1e69 | [
"Apache-2.0"
] | null | null | null | __main__.py | glofflive/podpiska | b0d134a7f7a9847e3ba0d3d202f022cdb54a1e69 | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
from settings import *
from messages import *
from functions import *
import time
import random
import sqlite3
from aiogram import asyncio
from aiogram import Bot, types
from aiogram.dispatcher import Dispatcher
from aiogram.utils import executor
from aiogram.utils.helper import Helper, HelperMo... | 46.938596 | 219 | 0.629415 |
8eb3f4fe1d6060306373f2cc69bdd9f6752bdb10 | 3,660 | py | Python | src/sensationdriver/message.py | sebastianludwig/SensationDriver | 8787afa8fb55a43af69d83192a4f09a4279b5c00 | [
"MIT"
] | null | null | null | src/sensationdriver/message.py | sebastianludwig/SensationDriver | 8787afa8fb55a43af69d83192a4f09a4279b5c00 | [
"MIT"
] | null | null | null | src/sensationdriver/message.py | sebastianludwig/SensationDriver | 8787afa8fb55a43af69d83192a4f09a4279b5c00 | [
"MIT"
] | null | null | null | import asyncio
import time
import itertools
from . import pipeline
from . import protocol
| 32.105263 | 108 | 0.637978 |
8eb5408797a9adfef2dd2e703600111076f8e969 | 500 | py | Python | chatServer/chatServerConstants.py | odeke-em/restAssured | 72d5c3a3fe9fd090f067a4332f2a1df15370b1bb | [
"MIT"
] | 1 | 2016-11-20T17:54:02.000Z | 2016-11-20T17:54:02.000Z | chatServer/chatServerConstants.py | odeke-em/restAssured | 72d5c3a3fe9fd090f067a4332f2a1df15370b1bb | [
"MIT"
] | null | null | null | chatServer/chatServerConstants.py | odeke-em/restAssured | 72d5c3a3fe9fd090f067a4332f2a1df15370b1bb | [
"MIT"
] | null | null | null | # Author: Konrad Lindenbach <klindenb@ualberta.ca>,
# Emmanuel Odeke <odeke@ualberta.ca>
# Copyright (c) 2014
# Table name strings
MESSAGE_TABLE_KEY = "Message"
RECEIPIENT_TABLE_KEY = "Receipient"
MESSAGE_MARKER_TABLE_KEY = "MessageMarker"
MAX_NAME_LENGTH = 60 # Arbitrary value
MAX_BODY_LENGTH = 200 # Arbitr... | 29.411765 | 51 | 0.78 |
8eb56169ef9950001169d01a8eed1270d358937a | 151 | py | Python | pytest-verbose-parametrize/tests/integration/parametrize_ids/tests/unit/test_duplicates.py | RaiVaibhav/pytest-plugins | b21eef7fb2d876b3910f4a476875f9f157275b49 | [
"MIT"
] | 282 | 2015-12-01T12:40:31.000Z | 2019-10-30T23:30:54.000Z | pytest-verbose-parametrize/tests/integration/parametrize_ids/tests/unit/test_duplicates.py | RaiVaibhav/pytest-plugins | b21eef7fb2d876b3910f4a476875f9f157275b49 | [
"MIT"
] | 126 | 2015-09-02T14:31:02.000Z | 2019-10-21T20:32:18.000Z | pytest-verbose-parametrize/tests/integration/parametrize_ids/tests/unit/test_duplicates.py | RaiVaibhav/pytest-plugins | b21eef7fb2d876b3910f4a476875f9f157275b49 | [
"MIT"
] | 55 | 2015-09-21T09:11:05.000Z | 2019-10-27T00:44:32.000Z | import pytest
| 21.571429 | 80 | 0.496689 |
8eb6074f9fc3aef8e1c32c3caf18d82951fb4fdd | 2,224 | py | Python | tests/ut/python/parallel/test_auto_parallel_two_bn.py | tjulitianyi1997/mindspore | c802a8c31fe2b51530d932fdd364824e45264b12 | [
"Apache-2.0"
] | 2 | 2020-04-28T03:49:10.000Z | 2020-04-28T03:49:13.000Z | tests/ut/python/parallel/test_auto_parallel_two_bn.py | tjulitianyi1997/mindspore | c802a8c31fe2b51530d932fdd364824e45264b12 | [
"Apache-2.0"
] | null | null | null | tests/ut/python/parallel/test_auto_parallel_two_bn.py | tjulitianyi1997/mindspore | c802a8c31fe2b51530d932fdd364824e45264b12 | [
"Apache-2.0"
] | null | null | null | import numpy as np
from mindspore import context
import mindspore as ms
import mindspore.nn as nn
from mindspore.ops import operations as P
from mindspore import Tensor
from mindspore.common.api import _executor
from tests.ut.python.ops.test_math_ops import VirtualLoss
from mindspore.parallel import set_algo_parameters... | 31.323944 | 68 | 0.629946 |
8eb7d1f96a999d00b78e6d413d5f7e9bee3008ad | 111 | py | Python | modules/web_caller.py | tkh/test-examples | 39c6fd0f35b6cc1a36a4d1dc8ba1a32ea4c1552c | [
"MIT"
] | 2 | 2016-12-28T09:15:47.000Z | 2016-12-30T19:04:03.000Z | modules/web_caller.py | tkh/test-examples | 39c6fd0f35b6cc1a36a4d1dc8ba1a32ea4c1552c | [
"MIT"
] | null | null | null | modules/web_caller.py | tkh/test-examples | 39c6fd0f35b6cc1a36a4d1dc8ba1a32ea4c1552c | [
"MIT"
] | 1 | 2018-04-28T17:54:59.000Z | 2018-04-28T17:54:59.000Z | import requests
GOOGLE_URL = 'http://www.google.com'
| 12.333333 | 36 | 0.720721 |
8eb81ba39f3308e9b42a06538ae183526a109547 | 22,105 | py | Python | laygo/generators/serdes/ser_2to1_halfrate_layout_generator_woM5.py | tinapiao/Software-IC-Automation | 74b23cd94aa6e4658b110e93b5deb635e014f3a6 | [
"BSD-3-Clause"
] | 26 | 2017-07-07T08:06:31.000Z | 2021-11-25T06:41:24.000Z | laygo/generators/serdes/ser_2to1_halfrate_layout_generator_woM5.py | tinapiao/Software-IC-Automation | 74b23cd94aa6e4658b110e93b5deb635e014f3a6 | [
"BSD-3-Clause"
] | 9 | 2016-12-28T03:08:29.000Z | 2019-01-30T16:00:28.000Z | laygo/generators/serdes/ser_2to1_halfrate_layout_generator_woM5.py | tinapiao/Software-IC-Automation | 74b23cd94aa6e4658b110e93b5deb635e014f3a6 | [
"BSD-3-Clause"
] | 10 | 2018-07-14T01:31:28.000Z | 2021-08-21T10:18:30.000Z | #!/usr/bin/python
########################################################################################################################
#
# Copyright (c) 2014, Regents of the University of California
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without modification, are permi... | 60.231608 | 178 | 0.61796 |
8eb957a2a53df1c654647771e4169777cc775e3d | 1,222 | py | Python | pile.py | yehudareisler/risky-game | ea919bd07a2acf75dfd184b5c59ad80d41f47428 | [
"MIT"
] | 3 | 2021-01-21T02:06:12.000Z | 2022-03-14T10:26:43.000Z | pile.py | yehudareisler/risky-game | ea919bd07a2acf75dfd184b5c59ad80d41f47428 | [
"MIT"
] | null | null | null | pile.py | yehudareisler/risky-game | ea919bd07a2acf75dfd184b5c59ad80d41f47428 | [
"MIT"
] | 1 | 2021-08-29T07:47:12.000Z | 2021-08-29T07:47:12.000Z | import random
from card import Card, CardType
| 24.44 | 70 | 0.594926 |
8eb9bd371fda6fc68c3a96c38334ef02f4d24d7e | 3,948 | py | Python | custom_components/home_connect_neo/sensor.py | FlavorFx/bsh_home_connect | 6950e1fa78ba11aa933eae256d3bbe55174ec1af | [
"MIT"
] | null | null | null | custom_components/home_connect_neo/sensor.py | FlavorFx/bsh_home_connect | 6950e1fa78ba11aa933eae256d3bbe55174ec1af | [
"MIT"
] | null | null | null | custom_components/home_connect_neo/sensor.py | FlavorFx/bsh_home_connect | 6950e1fa78ba11aa933eae256d3bbe55174ec1af | [
"MIT"
] | null | null | null | """Sensor for Home Connect"""
import logging
from homeassistant.helpers.entity import Entity # pylint: disable=import-error, no-name-in-module
from .const import DOMAIN
from .entity import HomeConnectEntity
_LOGGER = logging.getLogger(__name__)
| 38.705882 | 120 | 0.637285 |
8eb9e76c6c18c87348331dd958b2d6152d1a141f | 2,049 | py | Python | www/cgi-bin/udpipe.py | alvelvis/Interrogat-rio | 1d899c3876194098b92b76ddb172cbe9abdaaeab | [
"MIT"
] | null | null | null | www/cgi-bin/udpipe.py | alvelvis/Interrogat-rio | 1d899c3876194098b92b76ddb172cbe9abdaaeab | [
"MIT"
] | null | null | null | www/cgi-bin/udpipe.py | alvelvis/Interrogat-rio | 1d899c3876194098b92b76ddb172cbe9abdaaeab | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
print('Content-type:text/html\n\n')
import os
import cgi, cgitb
cgitb.enable()
import estrutura_dados
import functions
modelo = functions.modelo
udpipe = functions.udpipe
html = '<html><head><script src=\"../interrogar-ud/jquery-latest.js\"></script><script src=\"../interrogar-ud/resultados.js... | 39.403846 | 341 | 0.648609 |
8ebc0a6c65ad600577cb9ece01e067e35c86155e | 156 | py | Python | app/__init__.py | paulmunyao/Daily-Dossier-News | 84deac7e58148dc2a2e539ccf670d945b34c6d6b | [
"Unlicense"
] | null | null | null | app/__init__.py | paulmunyao/Daily-Dossier-News | 84deac7e58148dc2a2e539ccf670d945b34c6d6b | [
"Unlicense"
] | null | null | null | app/__init__.py | paulmunyao/Daily-Dossier-News | 84deac7e58148dc2a2e539ccf670d945b34c6d6b | [
"Unlicense"
] | null | null | null | from flask import Flask
from config import DevelopmentConfig
app = Flask(__name__)
app.config.from_object(DevelopmentConfig)
from app import routes,errors | 22.285714 | 41 | 0.839744 |
8ebd609953c64800b73f49105643c8624c7a932c | 1,413 | py | Python | tensorflow-keras-lab/99. lecture_code/classificationEx.py | hojeong3709/RL | a1c6eab8c3e7f2487e527fe68658d13eea5334af | [
"MIT"
] | null | null | null | tensorflow-keras-lab/99. lecture_code/classificationEx.py | hojeong3709/RL | a1c6eab8c3e7f2487e527fe68658d13eea5334af | [
"MIT"
] | null | null | null | tensorflow-keras-lab/99. lecture_code/classificationEx.py | hojeong3709/RL | a1c6eab8c3e7f2487e527fe68658d13eea5334af | [
"MIT"
] | null | null | null | import tensorflow as tf
import numpy as np
tf.set_random_seed(777)
data = np.loadtxt('data-04-zoo.csv', delimiter=',', dtype=np.float32)
x_data = data[:, 0:-1]
y_data = data[:, [-1]]
x = tf.placeholder(dtype=tf.float32, shape=[None, 16])
y = tf.placeholder(dtype=tf.int32, shape=[None, 1])
y_ont_hot = tf.one_hot(y, 7)... | 37.184211 | 104 | 0.68719 |
8ebeb0063c47f548a57a92ab02436d6711d535b1 | 528 | py | Python | baekjoon/python/findPrimeNumberInRange.py | yskang/AlgorithmPractice | 31b76e38b4c2f1e3e29fb029587662a745437912 | [
"MIT"
] | null | null | null | baekjoon/python/findPrimeNumberInRange.py | yskang/AlgorithmPractice | 31b76e38b4c2f1e3e29fb029587662a745437912 | [
"MIT"
] | 1 | 2019-11-04T06:44:04.000Z | 2019-11-04T06:46:55.000Z | baekjoon/python/findPrimeNumberInRange.py | yskang/AlgorithmPractice | 31b76e38b4c2f1e3e29fb029587662a745437912 | [
"MIT"
] | null | null | null | # Prime Number
# https://www.acmicpc.net/problem/2581
import sys
rl = lambda:sys.stdin.readline()
start = int(rl())
end = int(rl())
if start == 1:
start = 2
target = list(range(2, end+1))
s = 2
while True:
target = list(filter(lambda x: x % s != 0, target))
if target == []:
break
... | 14.666667 | 55 | 0.532197 |
8ec1378df33e3b31242eb7ff6ee75d8d9ed6b4ff | 1,803 | py | Python | dlib_face_detector.py | IS2AI/thermal-facial-landmarks-detection | 4a2c2c1a9718c4a5c5c81975198655a9efb4663b | [
"MIT"
] | 4 | 2021-11-02T07:41:32.000Z | 2022-03-24T02:04:35.000Z | dlib_face_detector.py | IS2AI/thermal-facial-landmarks-detection | 4a2c2c1a9718c4a5c5c81975198655a9efb4663b | [
"MIT"
] | null | null | null | dlib_face_detector.py | IS2AI/thermal-facial-landmarks-detection | 4a2c2c1a9718c4a5c5c81975198655a9efb4663b | [
"MIT"
] | 1 | 2021-09-22T03:55:16.000Z | 2021-09-22T03:55:16.000Z | # USAGE
# python dlib_face_detector.py --images dataset/gray/test/images --detector models/dlib_face_detector.svm
# import the necessary packages
from imutils import face_utils
from imutils import paths
import numpy as np
import imutils
import argparse
import imutils
import time
import dlib
import cv2
import os
# c... | 27.738462 | 105 | 0.722684 |
8ec16f21a9eff84bf3ac8ee732375633fe9285b8 | 2,101 | py | Python | ObejctDetection.py | siddharthSharma102/YOLOv3 | 3545f1ddb121e363678b332cfe2f0a958e208eae | [
"MIT"
] | null | null | null | ObejctDetection.py | siddharthSharma102/YOLOv3 | 3545f1ddb121e363678b332cfe2f0a958e208eae | [
"MIT"
] | null | null | null | ObejctDetection.py | siddharthSharma102/YOLOv3 | 3545f1ddb121e363678b332cfe2f0a958e208eae | [
"MIT"
] | null | null | null | # Before giving the image to the YOLO we need to create a blob, which is a way of extracting features.
import cv2
import numpy as np
# Load YOLO Algorithm.
net = cv2.dnn.readNet("D:/PYTHON/Resume Proj/YOLO/yolov3.weights",
"D:/PYTHON/Resume Proj/YOLO/yolov3.cfg")
classes = []
with ope... | 31.358209 | 103 | 0.604474 |
8ec1d62c46ef65968c93eb4ca09ed46bd63264e6 | 17,950 | py | Python | parse_genbank_file_data.py | tmavrich/mavrich_hatfull_nature_micro_2017 | a845a7ccde347921dbc9631f71df621f82796c84 | [
"MIT"
] | 1 | 2019-05-17T06:35:04.000Z | 2019-05-17T06:35:04.000Z | parse_genbank_file_data.py | tmavrich/mavrich_hatfull_nature_micro_2017 | a845a7ccde347921dbc9631f71df621f82796c84 | [
"MIT"
] | null | null | null | parse_genbank_file_data.py | tmavrich/mavrich_hatfull_nature_micro_2017 | a845a7ccde347921dbc9631f71df621f82796c84 | [
"MIT"
] | null | null | null | #To extract all features and/or header information in a genbank file
#Travis Mavrich
#Import modules
import os, sys, time, csv
from Bio import SeqIO
from Bio.Alphabet import IUPAC
from ete3 import NCBITaxa
# Verify the correct arguments are provided, otherwise print description of the script and its required argum... | 29.669421 | 129 | 0.640111 |
8ec23c3a9e3c52ff1bcf08e33f1a9c1fcf6ee883 | 417 | py | Python | test_func.py | indofanat/inliner | 1dc0cb3da313fc694cf0f09150c488b51d991bd6 | [
"MIT"
] | 72 | 2015-01-10T14:35:24.000Z | 2022-03-22T14:00:51.000Z | test_func.py | indofanat/inliner | 1dc0cb3da313fc694cf0f09150c488b51d991bd6 | [
"MIT"
] | 2 | 2015-06-16T20:05:21.000Z | 2021-06-16T22:47:26.000Z | test_func.py | indofanat/inliner | 1dc0cb3da313fc694cf0f09150c488b51d991bd6 | [
"MIT"
] | 13 | 2015-06-08T01:25:50.000Z | 2021-11-25T16:02:15.000Z | from inliner import inline
def add_lots_of_numbers():
for i in xrange(10):
add_stuff(i, i+1)
import dis
dis.dis(add_lots_of_numbers) | 16.68 | 32 | 0.640288 |
8ec4f92ad525a1e0a0e927beede3a7d2e3eeecf4 | 1,520 | py | Python | src/asphalt/serialization/marshalling.py | Asphalt-framework/asphalt-serialization | 07fbf1e2295e6e27c9b396f2b88943166759cf32 | [
"Apache-2.0"
] | null | null | null | src/asphalt/serialization/marshalling.py | Asphalt-framework/asphalt-serialization | 07fbf1e2295e6e27c9b396f2b88943166759cf32 | [
"Apache-2.0"
] | null | null | null | src/asphalt/serialization/marshalling.py | Asphalt-framework/asphalt-serialization | 07fbf1e2295e6e27c9b396f2b88943166759cf32 | [
"Apache-2.0"
] | null | null | null | from __future__ import annotations
from typing import Any
from asphalt.core import qualified_name
def default_marshaller(obj: Any) -> Any:
"""
Retrieve the state of the given object.
Calls the ``__getstate__()`` method of the object if available, otherwise returns
the ``__dict__`` of the object.
... | 28.679245 | 88 | 0.651974 |
8ec5afe38f450a3141bfbff480fcf42b5f9225ea | 5,235 | py | Python | tests/test_store_creation.py | bjoernmeier/storefact | 4bf91863a38b3ddba80f8656199955b455682b6c | [
"BSD-3-Clause"
] | 16 | 2017-08-11T13:00:43.000Z | 2019-10-22T09:44:44.000Z | tests/test_store_creation.py | bjoernmeier/storefact | 4bf91863a38b3ddba80f8656199955b455682b6c | [
"BSD-3-Clause"
] | 17 | 2017-08-10T16:02:23.000Z | 2019-10-25T07:14:13.000Z | tests/test_store_creation.py | bjoernmeier/storefact | 4bf91863a38b3ddba80f8656199955b455682b6c | [
"BSD-3-Clause"
] | 5 | 2019-11-20T22:14:16.000Z | 2021-04-20T11:25:07.000Z | from storefact._store_creation import create_store
import pytest
| 28.606557 | 91 | 0.601337 |
8ec6a49c43f0dfa005b4b57585655882de2d95f4 | 2,735 | py | Python | app/views/users.py | MatheusMullerGit/api-rest-flask-jwt-authentication | 85ff7e8ed9f5472d3dad097c057b10ac88607d89 | [
"MIT"
] | null | null | null | app/views/users.py | MatheusMullerGit/api-rest-flask-jwt-authentication | 85ff7e8ed9f5472d3dad097c057b10ac88607d89 | [
"MIT"
] | null | null | null | app/views/users.py | MatheusMullerGit/api-rest-flask-jwt-authentication | 85ff7e8ed9f5472d3dad097c057b10ac88607d89 | [
"MIT"
] | 1 | 2021-02-10T23:42:05.000Z | 2021-02-10T23:42:05.000Z | from werkzeug.security import generate_password_hash
from app import db
from flask import request, jsonify
from ..models.users import Users, user_schema, users_schema
| 30.388889 | 84 | 0.597806 |
8ec6cda60ee40e66597ad4638752b05c97175f8e | 628 | py | Python | recipes/Python/580741_ctypes_CDLL_automatic_errno/recipe-580741.py | tdiprima/code | 61a74f5f93da087d27c70b2efe779ac6bd2a3b4f | [
"MIT"
] | 2,023 | 2017-07-29T09:34:46.000Z | 2022-03-24T08:00:45.000Z | recipes/Python/580741_ctypes_CDLL_automatic_errno/recipe-580741.py | unhacker/code | 73b09edc1b9850c557a79296655f140ce5e853db | [
"MIT"
] | 32 | 2017-09-02T17:20:08.000Z | 2022-02-11T17:49:37.000Z | recipes/Python/580741_ctypes_CDLL_automatic_errno/recipe-580741.py | unhacker/code | 73b09edc1b9850c557a79296655f140ce5e853db | [
"MIT"
] | 780 | 2017-07-28T19:23:28.000Z | 2022-03-25T20:39:41.000Z | import ctypes
| 28.545455 | 69 | 0.558917 |
8ec74f7148172e1125c6011ff0477dea31725ff0 | 1,038 | py | Python | CH02/2.5.py | MonoHaru/Deep-Learning-from-Scratch_2 | e7dd6e7c82a34fadfa17331c2934f5f9ae2c3ec3 | [
"MIT"
] | null | null | null | CH02/2.5.py | MonoHaru/Deep-Learning-from-Scratch_2 | e7dd6e7c82a34fadfa17331c2934f5f9ae2c3ec3 | [
"MIT"
] | null | null | null | CH02/2.5.py | MonoHaru/Deep-Learning-from-Scratch_2 | e7dd6e7c82a34fadfa17331c2934f5f9ae2c3ec3 | [
"MIT"
] | null | null | null | # 2.5
# ,
# ' '
#
'''
.
( ) .
'''
#
'''
, .
1. .
2. PPMI .
3. SVD , .
4. ( ) .
'''
#
'''
cos_similarity():
most_similar():
'''
#
'''
1. WordNet .
... | 28.833333 | 78 | 0.60501 |
8ec7a763353c8546423b17b99e8982534029f416 | 861 | py | Python | encrypt.py | mtlynch/simple-encrypt | f22efacf0215dd79b2f3de0550460ef98cb44995 | [
"MIT"
] | null | null | null | encrypt.py | mtlynch/simple-encrypt | f22efacf0215dd79b2f3de0550460ef98cb44995 | [
"MIT"
] | null | null | null | encrypt.py | mtlynch/simple-encrypt | f22efacf0215dd79b2f3de0550460ef98cb44995 | [
"MIT"
] | null | null | null | #!/usr/bin/python3
import argparse
import base64
from cryptography import fernet
from cryptography.hazmat import backends
from cryptography.hazmat.primitives import hashes
from cryptography.hazmat.primitives.kdf import pbkdf2
import getpass
import secrets
import sys
if __name__ == '__main__':
message = sys.std... | 27.774194 | 66 | 0.746806 |
8ec8a36cecf73c19167da37cfcc1d72654b4be42 | 289 | py | Python | mixly_arduino/sample/mixpy/人工智能Py/09词法分析-2.py | wecake/Mixly_Arduino | d3c48962ff3b71ab962ad32a042c28d4722ce9fc | [
"Apache-2.0"
] | 118 | 2019-03-27T02:15:59.000Z | 2022-03-18T16:42:42.000Z | mixly_arduino/sample/mixpy/人工智能Py/09词法分析-2.py | xbed/mixly_arduino | d3c48962ff3b71ab962ad32a042c28d4722ce9fc | [
"Apache-2.0"
] | 26 | 2019-04-17T16:39:30.000Z | 2021-11-06T11:55:42.000Z | mixly_arduino/sample/mixpy/人工智能Py/09词法分析-2.py | xbed/mixly_arduino | d3c48962ff3b71ab962ad32a042c28d4722ce9fc | [
"Apache-2.0"
] | 58 | 2019-04-16T06:52:45.000Z | 2022-03-08T01:57:08.000Z | import aip
client = aip.AipNlp("Enter Your APP_ID", "Enter Your API_KEY", "Enter Your SECRET_KEY")
word= {"r":"", "v":"", "nr":""}
s = ""
for i in client.lexer("", options={})["items"]:
s = s + i["item"]
s = s + ""
s = s + word[i["pos"]]
s = s + ""
print(s)
| 22.230769 | 87 | 0.519031 |
8ec961b5f85b2ba9abdf326cc8c19f1f87a1f7f1 | 1,105 | py | Python | gen_page.py | gerardrbentley/knowledge-graph | 1cd9672830abf0348f4aa62178293c75ff0afd65 | [
"MIT"
] | 1 | 2021-03-08T02:03:16.000Z | 2021-03-08T02:03:16.000Z | gen_page.py | gerardrbentley/knowledge-graph | 1cd9672830abf0348f4aa62178293c75ff0afd65 | [
"MIT"
] | null | null | null | gen_page.py | gerardrbentley/knowledge-graph | 1cd9672830abf0348f4aa62178293c75ff0afd65 | [
"MIT"
] | null | null | null | import argparse
import os
from datetime import datetime
if __name__ == "__main__":
main()
| 25.113636 | 82 | 0.628054 |
8ec9ae5eb84134dd4b6da886d611145b976df4ec | 1,774 | py | Python | tests/test_signature_handler.py | dmuhs/web3data-py | c91cc2e02481df144220e8e7e17e07fd6ceb660c | [
"MIT"
] | 8 | 2020-03-16T01:46:01.000Z | 2021-08-04T19:54:25.000Z | tests/test_signature_handler.py | dmuhs/web3data-py | c91cc2e02481df144220e8e7e17e07fd6ceb660c | [
"MIT"
] | 21 | 2020-03-15T12:14:32.000Z | 2022-03-01T20:37:13.000Z | tests/test_signature_handler.py | dmuhs/web3data-py | c91cc2e02481df144220e8e7e17e07fd6ceb660c | [
"MIT"
] | 3 | 2020-05-21T17:42:28.000Z | 2020-12-17T23:00:54.000Z | from itertools import product
import pytest
import requests_mock
from web3data.chains import Chains
from web3data.exceptions import APIError
from web3data.handlers.token import TokenHandler
from . import API_PREFIX, CHAINS, HEADERS, RESPONSE
LIMITED_CHAINS = (
Chains.BCH,
Chains.BSV,
Chains.BTC,
Cha... | 32.851852 | 79 | 0.683202 |
8eca58ddc6a8a4fc980e7ffec65c56c6b1e8dc5f | 343 | py | Python | data/bug_dataset.py | happygirlzt/soft_alignment_model_bug_deduplication | 9c529542749a52e377baeb99d1782920bc72df49 | [
"Unlicense"
] | 2 | 2020-11-11T00:26:25.000Z | 2020-12-21T16:17:28.000Z | data/bug_dataset.py | happygirlzt/soft_alignment_model_bug_deduplication | 9c529542749a52e377baeb99d1782920bc72df49 | [
"Unlicense"
] | 5 | 2020-12-22T10:59:38.000Z | 2021-07-13T15:00:46.000Z | data/bug_dataset.py | irving-muller/soft_alignment_model_bug_deduplication | abf786a17f526d965f1b6c303b06f26662d22f32 | [
"Unlicense"
] | 6 | 2020-09-25T01:01:37.000Z | 2022-02-20T19:29:31.000Z | """
Each dataset has bug report ids and the ids of duplicate bug reports.
"""
| 28.583333 | 71 | 0.612245 |
8eca5e2a175ef4b1ea3f4ed24d6fd9463dbced1b | 517 | py | Python | orm_sqlfan/libreria/migrations/0004_auto_20191125_0518.py | rulotr/djangorm_sqlfan | 4bcadd1459e5a39584bb5ad8bafaaf3993324f6a | [
"MIT"
] | 2 | 2021-09-29T01:08:56.000Z | 2022-02-14T03:34:37.000Z | orm_sqlfan/libreria/migrations/0004_auto_20191125_0518.py | rulotr/djangorm_sqlfan | 4bcadd1459e5a39584bb5ad8bafaaf3993324f6a | [
"MIT"
] | 4 | 2020-02-12T02:52:19.000Z | 2021-04-08T20:46:05.000Z | orm_sqlfan/libreria/migrations/0004_auto_20191125_0518.py | rulotr/djangorm_sqlfan | 4bcadd1459e5a39584bb5ad8bafaaf3993324f6a | [
"MIT"
] | null | null | null | # Generated by Django 2.2.7 on 2019-11-25 05:18
from django.db import migrations, models
| 22.478261 | 85 | 0.580271 |
8ecafed46d7ebece9dba7387c2186748b4c285c9 | 4,392 | py | Python | specs/test_blocks.py | geyang/gym-sawyer | c6e81ab4faefafcfa3886d74672976cc16452747 | [
"MIT"
] | 4 | 2020-06-02T16:25:31.000Z | 2020-07-28T12:26:26.000Z | specs/test_blocks.py | geyang/gym-sawyer | c6e81ab4faefafcfa3886d74672976cc16452747 | [
"MIT"
] | 1 | 2020-09-30T10:24:04.000Z | 2020-09-30T10:24:04.000Z | specs/test_blocks.py | geyang/gym-sawyer | c6e81ab4faefafcfa3886d74672976cc16452747 | [
"MIT"
] | null | null | null | from cmx import doc
import gym
import numpy as np
from env_wrappers.flat_env import FlatGoalEnv
from sawyer.misc import space2dict, obs2dict
# def test_fetch():
# with doc:
# import gym
# env = gym.make("FetchReach-v1")
#
# assert env.compute_reward is not None
| 24.265193 | 76 | 0.57673 |
8ecca2fc25c2fd142d6579fc2086146f186ac53e | 2,895 | py | Python | schedule.py | adelhult/welcome-bot | daaaee44ec1e6b951c1b7f1fb4bfcb210a10a193 | [
"MIT"
] | 1 | 2021-05-08T21:03:12.000Z | 2021-05-08T21:03:12.000Z | schedule.py | adelhult/welcome-bot | daaaee44ec1e6b951c1b7f1fb4bfcb210a10a193 | [
"MIT"
] | null | null | null | schedule.py | adelhult/welcome-bot | daaaee44ec1e6b951c1b7f1fb4bfcb210a10a193 | [
"MIT"
] | null | null | null | from colorhash import ColorHash
from discord import Embed, Colour
from requests import get
from ics import Calendar
import arrow
URL = "https://cloud.timeedit.net/chalmers/web/public/ri6Y73QQZ55Zn6Q14854Q8Z85640y.ics"
def day(offset):
"""Return the schedule for a given day"""
date = arrow.utcnow().shift(days... | 30.15625 | 88 | 0.635579 |
8eccd2379aba9c719b92e8bae5047f3bb4d11d4b | 475 | py | Python | string/1408_string_matching_in_an_array/1408_string_matching_in_an_array.py | zdyxry/LeetCode | 33371285d0f3302158230f46e8b1b63b9f4639c4 | [
"Xnet",
"X11"
] | 6 | 2019-09-16T01:50:44.000Z | 2020-09-17T08:52:25.000Z | string/1408_string_matching_in_an_array/1408_string_matching_in_an_array.py | zdyxry/LeetCode | 33371285d0f3302158230f46e8b1b63b9f4639c4 | [
"Xnet",
"X11"
] | null | null | null | string/1408_string_matching_in_an_array/1408_string_matching_in_an_array.py | zdyxry/LeetCode | 33371285d0f3302158230f46e8b1b63b9f4639c4 | [
"Xnet",
"X11"
] | 4 | 2020-02-07T12:43:16.000Z | 2021-04-11T06:38:55.000Z | from typing import List
words = ["mass","as","hero","superhero"]
res = Solution().stringMatching(words)
print(res) | 26.388889 | 60 | 0.549474 |
8ecdf82b88826a1e74a5fae777d74d80fe90cd3b | 225 | py | Python | CFG.py | abduallahmohamed/Social-Implicit | 229dc11aa767d12de935cb974b20698f4902b733 | [
"MIT"
] | 3 | 2022-03-07T00:37:37.000Z | 2022-03-22T18:28:24.000Z | CFG.py | abduallahmohamed/Social-Implicit | 229dc11aa767d12de935cb974b20698f4902b733 | [
"MIT"
] | null | null | null | CFG.py | abduallahmohamed/Social-Implicit | 229dc11aa767d12de935cb974b20698f4902b733 | [
"MIT"
] | 1 | 2022-03-15T08:48:28.000Z | 2022-03-15T08:48:28.000Z | CFG = {
"spatial_input": 2,
"spatial_output": 2,
"temporal_input": 8,
"temporal_output": 12,
"bins": [0, 0.01, 0.1, 1.2],
"noise_weight": [0.05, 1, 4, 8],
"noise_weight_eth": [0.175, 1.5, 4, 8],
}
| 22.5 | 43 | 0.524444 |
8ece4878dfbf0ffee3c017f8812769aed1333588 | 4,582 | py | Python | tests/h/services/flag_test.py | pombredanne/h | 9c4c2dc0d53ed5bed5183936c24b4c27b23070b4 | [
"BSD-2-Clause"
] | 2,103 | 2015-01-07T12:47:49.000Z | 2022-03-29T02:38:25.000Z | tests/h/services/flag_test.py | pombredanne/h | 9c4c2dc0d53ed5bed5183936c24b4c27b23070b4 | [
"BSD-2-Clause"
] | 4,322 | 2015-01-04T17:18:01.000Z | 2022-03-31T17:06:02.000Z | tests/h/services/flag_test.py | admariner/h | 25ef1b8d94889df86ace5a084f1aa0effd9f4e25 | [
"BSD-2-Clause"
] | 389 | 2015-01-24T04:10:02.000Z | 2022-03-28T08:00:16.000Z | import pytest
from h import models
from h.services import flag
| 31.6 | 86 | 0.685072 |
8ecedf773e526416c24d81a4d07e212903898864 | 18,356 | py | Python | app/backend/gwells/views/bulk.py | bcgov/gwells | 7d69e65e993d37070961e06e6ce9c58a02d79363 | [
"Apache-2.0"
] | 37 | 2017-06-30T18:08:51.000Z | 2022-02-13T18:04:10.000Z | app/backend/gwells/views/bulk.py | bcgov/gwells | 7d69e65e993d37070961e06e6ce9c58a02d79363 | [
"Apache-2.0"
] | 544 | 2017-06-21T00:29:20.000Z | 2022-02-01T21:37:38.000Z | app/backend/gwells/views/bulk.py | bcgov/gwells | 7d69e65e993d37070961e06e6ce9c58a02d79363 | [
"Apache-2.0"
] | 59 | 2017-03-10T17:55:02.000Z | 2021-11-16T19:20:08.000Z | """
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, software
distri... | 42.688372 | 123 | 0.648834 |
8ecf78628c79ddba98096b4ded37329445eee116 | 187 | py | Python | spiel/segmentation/__init__.py | adoxography/SPieL | 1cdb2f54d234526a51e3c1b2783fc8f497709f16 | [
"MIT"
] | 1 | 2021-12-28T03:18:23.000Z | 2021-12-28T03:18:23.000Z | spiel/segmentation/__init__.py | adoxography/SPieL | 1cdb2f54d234526a51e3c1b2783fc8f497709f16 | [
"MIT"
] | null | null | null | spiel/segmentation/__init__.py | adoxography/SPieL | 1cdb2f54d234526a51e3c1b2783fc8f497709f16 | [
"MIT"
] | null | null | null | """
spiel.segmentation
Module for segmenting strings into morphemes
"""
from spiel.segmentation.features import Featurizer
from spiel.segmentation.constraints import ConstraintSegmenter
| 23.375 | 62 | 0.84492 |
8ed07a3409d0e714bb4dfd56e354ff0f6396ac95 | 2,394 | py | Python | Important_data/Thesis figure scripts/arccos.py | haakonvt/LearningTensorFlow | 6988a15af2ac916ae1a5e23b2c5bde9630cc0519 | [
"MIT"
] | 5 | 2018-09-06T12:52:12.000Z | 2020-05-09T01:40:12.000Z | Important_data/Thesis figure scripts/arccos.py | haakonvt/LearningTensorFlow | 6988a15af2ac916ae1a5e23b2c5bde9630cc0519 | [
"MIT"
] | null | null | null | Important_data/Thesis figure scripts/arccos.py | haakonvt/LearningTensorFlow | 6988a15af2ac916ae1a5e23b2c5bde9630cc0519 | [
"MIT"
] | 4 | 2018-02-06T08:42:06.000Z | 2019-04-16T11:23:06.000Z | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from matplotlib import rc
rc('font',**{'family':'sans-serif','sans-serif':['Helvetica']})
rc('text', usetex=True)
rc('lines', linewidth=2)
rc('font', family='serif')
rc('legend',**{'fontsize':14}) # Font size for legend
# rc('text.latex', unicode=True)
im... | 31.090909 | 105 | 0.624478 |
8ed0abcc201759c98415acc5106460c56828f45e | 12,154 | py | Python | build/lib/MICTI/Kmeans.py | insilicolife/micti | 100055316014d86963ec191d30bf3d44310f1254 | [
"MIT"
] | null | null | null | build/lib/MICTI/Kmeans.py | insilicolife/micti | 100055316014d86963ec191d30bf3d44310f1254 | [
"MIT"
] | null | null | null | build/lib/MICTI/Kmeans.py | insilicolife/micti | 100055316014d86963ec191d30bf3d44310f1254 | [
"MIT"
] | null | null | null | import numpy as np
import pandas as pa
import time
from sklearn.metrics import pairwise_distances
from scipy.sparse import csr_matrix
| 44.683824 | 162 | 0.627941 |
8ed0f8f6ac849f4f689b939cad24cf9545498937 | 1,957 | py | Python | src/aws_environments/migrations/0019_environmentvariable.py | chiliseed/hub | 83f29fbdd12e2260397e18e635f508459fa4990e | [
"Apache-2.0"
] | null | null | null | src/aws_environments/migrations/0019_environmentvariable.py | chiliseed/hub | 83f29fbdd12e2260397e18e635f508459fa4990e | [
"Apache-2.0"
] | 4 | 2021-04-08T20:10:15.000Z | 2021-06-10T20:18:17.000Z | src/aws_environments/migrations/0019_environmentvariable.py | chiliseed/hub | 83f29fbdd12e2260397e18e635f508459fa4990e | [
"Apache-2.0"
] | null | null | null | # Generated by Django 3.0.2 on 2020-03-18 18:28
from django.db import migrations, models
import django.db.models.deletion
import fernet_fields.fields
| 34.333333 | 88 | 0.459888 |
8ed1a72472fa3b7c129f65a19d48f668254a66a4 | 3,530 | py | Python | discourse_form/models.py | cinai/teacher_discourse_form | 7d6863dbf8d628011c6b0653ae7ca4e218c2d3bc | [
"MIT"
] | null | null | null | discourse_form/models.py | cinai/teacher_discourse_form | 7d6863dbf8d628011c6b0653ae7ca4e218c2d3bc | [
"MIT"
] | null | null | null | discourse_form/models.py | cinai/teacher_discourse_form | 7d6863dbf8d628011c6b0653ae7ca4e218c2d3bc | [
"MIT"
] | null | null | null | from django.db import models
from sessions_coding.models import Classroom_session,Subject,Axis,Skill,Learning_goal,Copus_code
DIALOGIC_CHOICES = (
('Autoritativo', 'Autoritativo'),
('Dialogico', 'Dialgico'),
('NA', 'NA'),
)
| 39.662921 | 96 | 0.743343 |
8ed205cfecc92c7cf2671e79c6e7ceb9fadd02d1 | 2,890 | py | Python | hw4/sequence_peptide_leaderboard.py | leskin-in/mipt-bioalgo | 3e2c1a320e5ad78c5c0e8bb444019931dbb7592c | [
"MIT"
] | null | null | null | hw4/sequence_peptide_leaderboard.py | leskin-in/mipt-bioalgo | 3e2c1a320e5ad78c5c0e8bb444019931dbb7592c | [
"MIT"
] | null | null | null | hw4/sequence_peptide_leaderboard.py | leskin-in/mipt-bioalgo | 3e2c1a320e5ad78c5c0e8bb444019931dbb7592c | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
AMINO_MASSES = [57, 71, 87, 97, 99, 101, 103, 113, 114, 115, 128, 129, 131, 137, 147, 156, 163, 186]
def _attach_amino_mass(peptide: tuple) -> list:
"""
"Attach" all possible amino acid masses to the given peptide and return the resulting peptides
"""
return [peptide + (mass,... | 27.264151 | 109 | 0.618685 |
8ed34f23fbe9ce6bd24aa540de5a5778018f11cc | 916 | py | Python | src/exploration.py | nikhilnrng/german-credit-risk | da535662f1531a6097696b8367e3d687155f0804 | [
"MIT"
] | 1 | 2020-12-07T10:32:08.000Z | 2020-12-07T10:32:08.000Z | src/exploration.py | nikhilnrng/german-credit-risk | da535662f1531a6097696b8367e3d687155f0804 | [
"MIT"
] | null | null | null | src/exploration.py | nikhilnrng/german-credit-risk | da535662f1531a6097696b8367e3d687155f0804 | [
"MIT"
] | 2 | 2019-05-25T18:35:31.000Z | 2020-03-24T16:20:42.000Z | import pandas
import preprocessing
from defines import Types, Metadata
if __name__ == '__main__':
metadata = Metadata()
data, _ = preprocessing.load(metadata)
print_pivot_tables(data, metadata, numerical=True)
print_statistics(data, metadata)
| 35.230769 | 89 | 0.70524 |
8ed3d0547b0fcd8558d823c51dc271d8f40fd4d8 | 5,440 | py | Python | smores/utils.py | 2087829p/smores | ee3fe29397221d1f59832ffe30a43ae15c12637f | [
"MIT"
] | null | null | null | smores/utils.py | 2087829p/smores | ee3fe29397221d1f59832ffe30a43ae15c12637f | [
"MIT"
] | null | null | null | smores/utils.py | 2087829p/smores | ee3fe29397221d1f59832ffe30a43ae15c12637f | [
"MIT"
] | null | null | null | __author__ = 'tony petrov'
import threading
import numpy as np
from constants import *
import math
import time
import constants as c
def fit_in_range(min, max, x):
"""fits a number(x) within a specified range between min and max"""
return (x - min) / (max - min)
# coverts twitter timestamp to system time in s... | 39.708029 | 116 | 0.580331 |
8ed501444f9851627d8e7d9fa767659afb78f197 | 3,137 | py | Python | src/python/search/search.py | adolphlwq/java-algorithms | 43983a5583479e44e7a9b9d7fbeb495896e8f205 | [
"Apache-2.0"
] | 4 | 2017-07-07T04:38:41.000Z | 2019-02-23T04:48:01.000Z | src/python/search/search.py | adolphlwq/java-algorithms | 43983a5583479e44e7a9b9d7fbeb495896e8f205 | [
"Apache-2.0"
] | 13 | 2017-05-23T15:37:29.000Z | 2020-02-24T14:12:28.000Z | src/python/search/search.py | adolphlwq/algorithms | 43983a5583479e44e7a9b9d7fbeb495896e8f205 | [
"Apache-2.0"
] | null | null | null | import pytest
# slice of list need time
def recursion_binary_search(alist, item):
if len(alist) == 0:
return False
mid = len(alist)//2
if alist[mid] == item:
return True
elif alist[mid] > item:
return recursion_binary_search(alist[:mid], item)
elif alist[mid] < item:
... | 26.361345 | 66 | 0.59643 |
8ed59c5d83f2b5cee099d13f26f97acdad78252a | 5,352 | py | Python | villaProductSdk/products.py | thanakijwanavit/villa-product-sdk | d30074daa08c4f9b0175df7578193bb802bd5dc3 | [
"Apache-2.0"
] | 2 | 2020-10-19T07:58:48.000Z | 2020-10-29T02:30:07.000Z | villaProductSdk/products.py | thanakijwanavit/villa-product-sdk | d30074daa08c4f9b0175df7578193bb802bd5dc3 | [
"Apache-2.0"
] | 1 | 2020-10-22T11:10:14.000Z | 2020-10-22T11:10:14.000Z | villaProductSdk/products.py | thanakijwanavit/villa-product-sdk | d30074daa08c4f9b0175df7578193bb802bd5dc3 | [
"Apache-2.0"
] | null | null | null | # AUTOGENERATED! DO NOT EDIT! File to edit: product-sdk.ipynb (unless otherwise specified).
__all__ = ['FunctionNames', 'ProductSdk', 'querySingleProduct', 'ProductsFromList', 'queryList']
# Cell
from botocore.config import Config
from s3bz.s3bz import S3, Requests
from lambdasdk.lambdasdk import Lambda, InvocationTy... | 34.980392 | 120 | 0.710949 |
8ed811c6a2d536bedc2c7110b1dd87ef9dfa3f9e | 208 | py | Python | PhysicsTools/RecoAlgos/python/allSuperClusterCandidates_cfi.py | ckamtsikis/cmssw | ea19fe642bb7537cbf58451dcf73aa5fd1b66250 | [
"Apache-2.0"
] | 852 | 2015-01-11T21:03:51.000Z | 2022-03-25T21:14:00.000Z | PhysicsTools/RecoAlgos/python/allSuperClusterCandidates_cfi.py | ckamtsikis/cmssw | ea19fe642bb7537cbf58451dcf73aa5fd1b66250 | [
"Apache-2.0"
] | 30,371 | 2015-01-02T00:14:40.000Z | 2022-03-31T23:26:05.000Z | PhysicsTools/RecoAlgos/python/allSuperClusterCandidates_cfi.py | ckamtsikis/cmssw | ea19fe642bb7537cbf58451dcf73aa5fd1b66250 | [
"Apache-2.0"
] | 3,240 | 2015-01-02T05:53:18.000Z | 2022-03-31T17:24:21.000Z | import FWCore.ParameterSet.Config as cms
allSuperClusterCandidates = cms.EDProducer("ConcreteEcalCandidateProducer",
src = cms.InputTag("hybridSuperClusters"),
particleType = cms.string('gamma')
)
| 23.111111 | 75 | 0.774038 |
8ed9386c336ffbcfb551c5c189258e73bea52888 | 1,371 | py | Python | apps/RedSencerCamera/redcenser_camera.py | ucchiemonster/rspi_iot_samples | d41c4708d3697fb93e9588361d6bb3ec7823a1e8 | [
"MIT"
] | 1 | 2017-08-01T14:09:09.000Z | 2017-08-01T14:09:09.000Z | apps/RedSencerCamera/redcenser_camera.py | ucchiemonster/rspi_iot_samples | d41c4708d3697fb93e9588361d6bb3ec7823a1e8 | [
"MIT"
] | null | null | null | apps/RedSencerCamera/redcenser_camera.py | ucchiemonster/rspi_iot_samples | d41c4708d3697fb93e9588361d6bb3ec7823a1e8 | [
"MIT"
] | null | null | null | #!/usr/bin/python
# coding:utf-8
import sys
sys.path.append('./libs')
import RPi.GPIO as GPIO
from time import sleep
#from libs import snapshot as snap
import snapshot as snap
#from libs import aws_iot_pub as iot
import aws_iot_pub as iot
import commands
#import system
#from subprocess import check_call
import Confi... | 21.421875 | 82 | 0.644785 |
8ed9836ae359b2eb9a17640f939c2e067533cf97 | 325 | py | Python | temapi/api/loaders/loader.py | Leviosar/temapi | 4db795d903f3840228e934aa53abecfd6db5f540 | [
"MIT"
] | 9 | 2020-02-01T12:55:41.000Z | 2020-12-02T17:42:22.000Z | temapi/api/loaders/loader.py | Leviosar/temapi | 4db795d903f3840228e934aa53abecfd6db5f540 | [
"MIT"
] | 11 | 2020-01-26T02:38:45.000Z | 2020-01-26T21:07:31.000Z | temapi/api/loaders/loader.py | archipelagolabs/temtemapi | 4db795d903f3840228e934aa53abecfd6db5f540 | [
"MIT"
] | 1 | 2020-01-26T16:43:51.000Z | 2020-01-26T16:43:51.000Z | import json
from temapi.commons.paths import OUTPUTS_DIR
| 15.47619 | 44 | 0.590769 |
8ed9875e81e8d637268c1cd0dee2cbf7907d4dd1 | 1,092 | py | Python | virtual/lib/python3.6/site-packages/djreservation/migrations/0002_auto_20160903_0030.py | igihozo-stella/smart-parking | 92c5dcd3eb08b8fccfddd34bb3291a240c563ec8 | [
"MIT"
] | null | null | null | virtual/lib/python3.6/site-packages/djreservation/migrations/0002_auto_20160903_0030.py | igihozo-stella/smart-parking | 92c5dcd3eb08b8fccfddd34bb3291a240c563ec8 | [
"MIT"
] | null | null | null | virtual/lib/python3.6/site-packages/djreservation/migrations/0002_auto_20160903_0030.py | igihozo-stella/smart-parking | 92c5dcd3eb08b8fccfddd34bb3291a240c563ec8 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# Generated by Django 1.10 on 2016-09-03 06:30
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
| 32.117647 | 164 | 0.589744 |
8edd8e89c6b4da201b77e92d4cc84f20c65dbe0a | 158,107 | py | Python | rmgweb/database/views.py | ReactionMechanismGenerator/RMG-website | 7fe2ef9bdce6256cbc9f2453661cb482b2e97395 | [
"MIT"
] | 10 | 2015-10-02T00:11:02.000Z | 2021-04-04T05:57:10.000Z | rmgweb/database/views.py | ReactionMechanismGenerator/RMG-website | 7fe2ef9bdce6256cbc9f2453661cb482b2e97395 | [
"MIT"
] | 128 | 2015-05-29T18:21:05.000Z | 2022-03-01T21:06:01.000Z | rmgweb/database/views.py | ReactionMechanismGenerator/RMG-website | 7fe2ef9bdce6256cbc9f2453661cb482b2e97395 | [
"MIT"
] | 23 | 2015-07-18T23:40:21.000Z | 2021-04-24T02:58:46.000Z | #!/usr/bin/env python
# -*- coding: utf-8 -*-
###############################################################################
# #
# RMG Website - A Django-powered website for Reaction Mechanism Generator #
# ... | 42.952187 | 294 | 0.602465 |
8eddf6bf734a186f7506d4dcffbdd68420a33313 | 5,633 | py | Python | bluebottle/bb_tasks/views.py | maykinmedia/bluebottle | 355d4729662b5e9a03398efb4fe882e0f8cfa28d | [
"BSD-3-Clause"
] | null | null | null | bluebottle/bb_tasks/views.py | maykinmedia/bluebottle | 355d4729662b5e9a03398efb4fe882e0f8cfa28d | [
"BSD-3-Clause"
] | null | null | null | bluebottle/bb_tasks/views.py | maykinmedia/bluebottle | 355d4729662b5e9a03398efb4fe882e0f8cfa28d | [
"BSD-3-Clause"
] | null | null | null | from django.db.models.query_utils import Q
from rest_framework import generics
from rest_framework.permissions import IsAuthenticatedOrReadOnly
from bluebottle.bluebottle_drf2.permissions import IsAuthorOrReadOnly
from bluebottle.utils.serializers import DefaultSerializerMixin
from bluebottle.bb_projects.permissions i... | 33.730539 | 107 | 0.711699 |
8ee090db50f40f1d36abd60d67541a1d01238621 | 664 | py | Python | schema/Dimension1/Advection/equation_type.py | pylbm/pylbm_ui | 0a7202ee6ee5424486ce6ade1d3b18d8139d4ffb | [
"BSD-3-Clause"
] | 3 | 2021-05-17T20:38:32.000Z | 2021-11-16T17:54:26.000Z | schema/Dimension1/Advection/equation_type.py | pylbm/pylbm_ui | 0a7202ee6ee5424486ce6ade1d3b18d8139d4ffb | [
"BSD-3-Clause"
] | 32 | 2021-04-29T13:27:13.000Z | 2021-07-01T07:22:58.000Z | schema/Dimension1/Advection/equation_type.py | pylbm/pylbm_ui | 0a7202ee6ee5424486ce6ade1d3b18d8139d4ffb | [
"BSD-3-Clause"
] | 1 | 2021-04-30T06:40:21.000Z | 2021-04-30T06:40:21.000Z | # Authors:
# Loic Gouarin <loic.gouarin@polytechnique.edu>
# Benjamin Graille <benjamin.graille@universite-paris-saclay.fr>
# Thibaut Van Hoof <thibaut.vanhoof@cenaero.be>
#
# License: BSD 3 clause
# from pydantic import BaseModel
import sympy as sp
from ...symbol import Symbol
from ...equation_type import... | 23.714286 | 68 | 0.668675 |
8ee21dfaeee39762d5805013e154a52298242afc | 499 | py | Python | setup.py | nkzmsb/logtools | b091fe83eb0ed9010e85c865d23b47e093b12f4d | [
"MIT"
] | null | null | null | setup.py | nkzmsb/logtools | b091fe83eb0ed9010e85c865d23b47e093b12f4d | [
"MIT"
] | 12 | 2022-01-04T12:32:48.000Z | 2022-03-07T10:07:00.000Z | setup.py | nkzmsb/logtools | b091fe83eb0ed9010e85c865d23b47e093b12f4d | [
"MIT"
] | null | null | null | """
To make dist folder
$ python setup.py sdist
"""
from setuptools import setup, find_packages
setup(
name = "logtools"
, version = "0.0.12"
, packages = find_packages()
, zip_safe=False
, author = "nkzmsb"
, url = "https://github.com/nkzmsb/logtools"
, description = "This is a wrapp... | 22.681818 | 65 | 0.629259 |
8ee232c94db862176c056e62d9cd610f03be61cc | 1,899 | py | Python | examples/Cu_MSSPEC/Cu.py | ase2sprkkr/ase2sprkkr | 5e04f54365e4ab65d97bd11d573b078674548a59 | [
"MIT"
] | 1 | 2022-03-14T22:56:11.000Z | 2022-03-14T22:56:11.000Z | examples/Cu_MSSPEC/Cu.py | ase2sprkkr/ase2sprkkr | 5e04f54365e4ab65d97bd11d573b078674548a59 | [
"MIT"
] | 1 | 2022-03-10T09:08:50.000Z | 2022-03-10T09:08:50.000Z | examples/Cu_MSSPEC/Cu.py | ase2sprkkr/ase2sprkkr | 5e04f54365e4ab65d97bd11d573b078674548a59 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
import glob
import logging
import os
import sys
from msspec.calculator import MSSPEC
from msspec.utils import get_atom_index
from msspec.utils import hemispherical_cluster
from msspec.utils import SPRKKRPotential
from ase2sprkkr.sprkkr.calculator import SPRKKR
from ase.build import bulk
loggin... | 27.128571 | 74 | 0.676672 |
8ee249d2ea66f8047c191bcd7dffe1507ab2a2ec | 1,012 | py | Python | src/Classes/Install.py | TheBossProSniper/electric-windows | 0c41bb4c7da614ef193b314a92ed98f9cd893da2 | [
"Apache-2.0"
] | 210 | 2021-03-03T05:26:46.000Z | 2022-02-21T17:25:06.000Z | src/Classes/Install.py | XtremeDevX/Electric-Windows | 48e7015fa41734dfde93e983bec8b2aa94379781 | [
"Apache-2.0"
] | 7 | 2021-03-22T14:25:48.000Z | 2022-03-18T04:29:22.000Z | src/Classes/Install.py | XtremeDevX/Electric-Windows | 48e7015fa41734dfde93e983bec8b2aa94379781 | [
"Apache-2.0"
] | 9 | 2021-03-11T15:46:36.000Z | 2021-09-21T09:13:58.000Z | ######################################################################
# INSTALL #
######################################################################
from Classes.Metadata import Metadata
| 42.166667 | 217 | 0.575099 |
8ee2da1edd216a440e6b5fa1e7e3036311d2b699 | 16,592 | py | Python | lib/subdomains.py | bbhunter/ODIN | 03fb0044fe658df4d67ffbb8223060958537f17e | [
"BSD-3-Clause"
] | 533 | 2018-01-08T07:21:36.000Z | 2022-03-29T19:53:46.000Z | lib/subdomains.py | bbhunter/ODIN | 03fb0044fe658df4d67ffbb8223060958537f17e | [
"BSD-3-Clause"
] | 14 | 2018-02-07T20:57:04.000Z | 2020-10-19T09:32:58.000Z | lib/subdomains.py | bbhunter/ODIN | 03fb0044fe658df4d67ffbb8223060958537f17e | [
"BSD-3-Clause"
] | 119 | 2018-01-11T22:40:55.000Z | 2022-02-19T20:55:17.000Z | #!/usr/bin/python3
# -*- coding: utf-8 -*-
"""
This module contains everything needed to hunt for subdomains, including collecting certificate
data from Censys.io and crt.sh for a given domain name.
The original crt.sh code is from PaulSec's unofficial crt.sh API. That project can be
found here:
https://github.com/P... | 47.405714 | 147 | 0.602399 |
8ee3abb37467d65da279bf5a736b8973df927cbd | 1,550 | py | Python | snmp/datadog_checks/snmp/models.py | 01100010011001010110010101110000/integrations-core | b6216f96c9faa67e9e1e236caa8ddac597f0ef13 | [
"BSD-3-Clause"
] | null | null | null | snmp/datadog_checks/snmp/models.py | 01100010011001010110010101110000/integrations-core | b6216f96c9faa67e9e1e236caa8ddac597f0ef13 | [
"BSD-3-Clause"
] | null | null | null | snmp/datadog_checks/snmp/models.py | 01100010011001010110010101110000/integrations-core | b6216f96c9faa67e9e1e236caa8ddac597f0ef13 | [
"BSD-3-Clause"
] | null | null | null | # (C) Datadog, Inc. 2020-present
# All rights reserved
# Licensed under Simplified BSD License (see LICENSE)
"""
Define our own models and interfaces for dealing with SNMP data.
"""
from typing import Any, Sequence, Tuple, Union
from .exceptions import CouldNotDecodeOID
from .pysnmp_types import ObjectIdentity, Objec... | 29.807692 | 120 | 0.630968 |
8ee526900b022da1921cf12a277cb20d2fc190af | 2,038 | py | Python | telegram_bot.py | decinval/download_youtube | 7b1062067108b814eb9fbacf86cb303aa9280efd | [
"MIT"
] | 1 | 2021-04-28T16:12:45.000Z | 2021-04-28T16:12:45.000Z | telegram_bot.py | decinval/download_youtube | 7b1062067108b814eb9fbacf86cb303aa9280efd | [
"MIT"
] | null | null | null | telegram_bot.py | decinval/download_youtube | 7b1062067108b814eb9fbacf86cb303aa9280efd | [
"MIT"
] | 3 | 2021-04-27T21:47:50.000Z | 2021-08-14T06:06:03.000Z | from token_keys import key_telegram
import telebot
import pytube
import os
bot = telebot.TeleBot(key_telegram)
video = None
bot.polling(none_stop=True, interval=0)
| 32.870968 | 101 | 0.682532 |
8ee6f51ff8df9fc6ca072bcc398bd39e38bcbe1d | 15,316 | py | Python | arkouda/client.py | vasslitvinov/arkouda | 7751a512bd93211c4739d859462a7f1ae9ff8b4a | [
"MIT"
] | null | null | null | arkouda/client.py | vasslitvinov/arkouda | 7751a512bd93211c4739d859462a7f1ae9ff8b4a | [
"MIT"
] | null | null | null | arkouda/client.py | vasslitvinov/arkouda | 7751a512bd93211c4739d859462a7f1ae9ff8b4a | [
"MIT"
] | null | null | null | import zmq, json, os, secrets
from typing import Mapping, Optional, Tuple, Union
import warnings, pkg_resources
from arkouda import security, io_util
__all__ = ["verbose", "pdarrayIterThresh", "maxTransferBytes",
"AllSymbols", "set_defaults", "connect", "disconnect",
"shutdown", "get_config", "ge... | 37.356098 | 98 | 0.667145 |
8ee799fdfce62783830341605039f1e6fa322831 | 301 | py | Python | dd_invitation/admin.py | datadealer/dd_auth | 5a183d64035059e88dd83c1ef5dfaf083faa362c | [
"Artistic-2.0"
] | null | null | null | dd_invitation/admin.py | datadealer/dd_auth | 5a183d64035059e88dd83c1ef5dfaf083faa362c | [
"Artistic-2.0"
] | null | null | null | dd_invitation/admin.py | datadealer/dd_auth | 5a183d64035059e88dd83c1ef5dfaf083faa362c | [
"Artistic-2.0"
] | 1 | 2021-06-06T22:29:12.000Z | 2021-06-06T22:29:12.000Z | # -*- coding: utf-8 -*-
from dd_invitation import models
from django.contrib import admin
admin.site.register(models.Token, TokenAdmin)
| 20.066667 | 49 | 0.694352 |
8ee89bfd4d09cb02af15a2624e9295bef8510e5b | 450 | py | Python | pyti/double_exponential_moving_average.py | dibyajyotidash/https-github.com-kylejusticemagnuson-pyti | 08532970f9d2b163f1223599e3ac80f6c51533e4 | [
"MIT"
] | 635 | 2017-04-04T20:24:47.000Z | 2022-03-28T16:00:23.000Z | pyti/double_exponential_moving_average.py | dibyajyotidash/https-github.com-kylejusticemagnuson-pyti | 08532970f9d2b163f1223599e3ac80f6c51533e4 | [
"MIT"
] | 24 | 2017-10-22T15:01:54.000Z | 2021-01-30T19:51:00.000Z | pyti/double_exponential_moving_average.py | dibyajyotidash/https-github.com-kylejusticemagnuson-pyti | 08532970f9d2b163f1223599e3ac80f6c51533e4 | [
"MIT"
] | 183 | 2017-07-01T16:06:39.000Z | 2022-03-07T23:29:11.000Z | from __future__ import absolute_import
from pyti import catch_errors
from pyti.exponential_moving_average import (
exponential_moving_average as ema
)
def double_exponential_moving_average(data, period):
"""
Double Exponential Moving Average.
Formula:
DEMA = 2*EMA - EMA(EMA)
"""
catch... | 23.684211 | 67 | 0.717778 |
8eebb2f6aba7ad2ba508894d490ad75a068ada61 | 236 | py | Python | 9_functions/9_keywordArguments.py | qaidjohar/PythonCourse | 6c638f8a1e1172eb12459c0fd6dc20e0590825b8 | [
"MIT"
] | null | null | null | 9_functions/9_keywordArguments.py | qaidjohar/PythonCourse | 6c638f8a1e1172eb12459c0fd6dc20e0590825b8 | [
"MIT"
] | null | null | null | 9_functions/9_keywordArguments.py | qaidjohar/PythonCourse | 6c638f8a1e1172eb12459c0fd6dc20e0590825b8 | [
"MIT"
] | null | null | null |
print(fullName(first_name = 'Qaidjohar', last_name = 'Jawadwala'))
# name = fullName('Qaidjohar','Jawadwala')
# print(name) | 39.333333 | 74 | 0.733051 |
8eed0c593cca6b96c5d6fd23e934267ca6b5e910 | 1,495 | py | Python | src/mop/azure/comprehension/resource_management/vnets.py | robertfischer3/python-mop | d81fe43e484f469d91992e471acf059ecfd57dd2 | [
"MIT"
] | 1 | 2020-01-14T21:38:10.000Z | 2020-01-14T21:38:10.000Z | src/mop/azure/comprehension/resource_management/vnets.py | robertfischer3/python-mop | d81fe43e484f469d91992e471acf059ecfd57dd2 | [
"MIT"
] | null | null | null | src/mop/azure/comprehension/resource_management/vnets.py | robertfischer3/python-mop | d81fe43e484f469d91992e471acf059ecfd57dd2 | [
"MIT"
] | 1 | 2020-01-30T03:12:59.000Z | 2020-01-30T03:12:59.000Z | from configparser import ConfigParser
from dotenv import load_dotenv
from mop.azure.utils.create_configuration import (
CONFVARIABLES,
change_dir,
OPERATIONSPATH,
)
from mop.framework.azure_connections import request_authenticated_azure_session
| 34.767442 | 82 | 0.724415 |
8eed262f8e6817fe86434702f7371a15e08779aa | 1,237 | py | Python | core/plugins/PluginLoader.py | smclt30p/PCS | ff18f7b04fa1e31b950e076868a31b6817907eb3 | [
"BSD-2-Clause"
] | null | null | null | core/plugins/PluginLoader.py | smclt30p/PCS | ff18f7b04fa1e31b950e076868a31b6817907eb3 | [
"BSD-2-Clause"
] | null | null | null | core/plugins/PluginLoader.py | smclt30p/PCS | ff18f7b04fa1e31b950e076868a31b6817907eb3 | [
"BSD-2-Clause"
] | null | null | null | import importlib
import os
from PyQt5.QtCore import QSettings
| 24.254902 | 82 | 0.591754 |
8eeddb86f92e0a7a9e6da10f7921a2882199f661 | 2,589 | py | Python | slowfast/models/custom_video_model_builder.py | gabrielsluz/SlowFast | bd06eac47fa236b070fd9a3b39518eea08d02947 | [
"Apache-2.0"
] | null | null | null | slowfast/models/custom_video_model_builder.py | gabrielsluz/SlowFast | bd06eac47fa236b070fd9a3b39518eea08d02947 | [
"Apache-2.0"
] | null | null | null | slowfast/models/custom_video_model_builder.py | gabrielsluz/SlowFast | bd06eac47fa236b070fd9a3b39518eea08d02947 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python3
# Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved.
"""A More Flexible Video models."""
import math
import torch
import torch.nn as nn
from .build import MODEL_REGISTRY
from .monet import Monet
# License: MIT
# Author: Karl Stelzner
from collections import namedtuple
c... | 30.458824 | 103 | 0.627269 |
8eee82d2505a2e4ee34bd5c0db201a387b44f4cc | 967 | py | Python | util/undervolt/setup.py | haller218/MyDotFiles | 81ab1604f97a7aeb38681a4f43ad5a2fed3677bf | [
"MIT"
] | 2 | 2020-07-24T22:04:17.000Z | 2020-08-29T23:46:44.000Z | util/undervolt/setup.py | haller33/MyDotFiles | 81ab1604f97a7aeb38681a4f43ad5a2fed3677bf | [
"MIT"
] | null | null | null | util/undervolt/setup.py | haller33/MyDotFiles | 81ab1604f97a7aeb38681a4f43ad5a2fed3677bf | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from os.path import dirname, join
from setuptools import setup
import doctest
setup(
name='undervolt',
version='0.2.9',
description='Undervolt Intel CPUs under Linux',
long_description=open(
join(dirname(__file__), 'README.rst')).read(),
url='... | 26.135135 | 70 | 0.62151 |
8eee92f6366b1b5c1894109454a732d12596d3d6 | 3,692 | py | Python | tests/test_cli.py | jwilges/monocat | 1f5debe505509f90f3cb948b8324b528614dd7b3 | [
"BSD-3-Clause"
] | 1 | 2020-08-16T00:04:40.000Z | 2020-08-16T00:04:40.000Z | tests/test_cli.py | jwilges/monocat | 1f5debe505509f90f3cb948b8324b528614dd7b3 | [
"BSD-3-Clause"
] | 5 | 2021-09-09T15:11:37.000Z | 2021-09-09T15:11:39.000Z | tests/test_cli.py | jwilges/monocat | 1f5debe505509f90f3cb948b8324b528614dd7b3 | [
"BSD-3-Clause"
] | 1 | 2020-06-17T12:01:01.000Z | 2020-06-17T12:01:01.000Z | import logging
import sys
from contextlib import ExitStack
from unittest import TestCase
from unittest.mock import DEFAULT as DEFAULT_MOCK
from unittest.mock import MagicMock, patch
from monocat import cli
| 42.436782 | 130 | 0.666306 |
8eef8f52a7bd1bd0f3b3b43c392414de5e68f757 | 15,182 | py | Python | src/inference.py | PenelopeCorsica/deep-orientation | f393231e15041fea6582e4273c60a15798563003 | [
"BSD-3-Clause"
] | 8 | 2019-07-23T17:14:53.000Z | 2022-02-07T15:05:43.000Z | src/inference.py | danielS91/deep-orientation | f393231e15041fea6582e4273c60a15798563003 | [
"BSD-3-Clause"
] | 15 | 2020-01-28T22:09:57.000Z | 2022-02-10T00:14:20.000Z | src/inference.py | danielS91/deep-orientation | f393231e15041fea6582e4273c60a15798563003 | [
"BSD-3-Clause"
] | 5 | 2019-07-28T10:21:17.000Z | 2021-04-02T19:12:52.000Z | # -*- coding: utf-8 -*-
"""
.. codeauthor:: Daniel Seichter <daniel.seichter@tu-ilmenau.de>
"""
import argparse as ap
import os
import matplotlib.pyplot as plt
import numpy as np
import seaborn
from scipy.stats import norm
from scipy.stats import circmean, circstd
import tensorflow.keras.backend as K
from deep_orien... | 38.828645 | 86 | 0.52806 |
8ef1cfdccf7bfcef3a4b85a3c395b0248e20afc6 | 716 | py | Python | news_api/app.py | rdoume/News_API | 9c555fdc5e5b717b98bcfec27364b9612b9c4aa1 | [
"MIT"
] | 9 | 2019-07-19T13:19:55.000Z | 2021-07-08T16:25:30.000Z | news_api/app.py | rdoume/News_API | 9c555fdc5e5b717b98bcfec27364b9612b9c4aa1 | [
"MIT"
] | null | null | null | news_api/app.py | rdoume/News_API | 9c555fdc5e5b717b98bcfec27364b9612b9c4aa1 | [
"MIT"
] | 1 | 2021-05-12T01:50:04.000Z | 2021-05-12T01:50:04.000Z | # -*- coding: utf-8 -*-
"""
App runner
"""
# System imports
# Third-party imports
import falcon
# from falcon_cors import CORS
# Local imports
from news_api.endpoints.models import SimpleSearch, TopEntities, TopClusters
from news_api.connectors.postgres import Postgres
# Create resources
db = Postgres()
simplesear... | 21.69697 | 76 | 0.747207 |
8ef41ce2d34c34d3bbd9ffc58cb6674cb89a8143 | 2,768 | py | Python | backslash/lazy_query.py | yotamr/backslash-python | 03bdbcfadad9a7add6ad295ecba8686ab871e03d | [
"BSD-3-Clause"
] | null | null | null | backslash/lazy_query.py | yotamr/backslash-python | 03bdbcfadad9a7add6ad295ecba8686ab871e03d | [
"BSD-3-Clause"
] | null | null | null | backslash/lazy_query.py | yotamr/backslash-python | 03bdbcfadad9a7add6ad295ecba8686ab871e03d | [
"BSD-3-Clause"
] | null | null | null | import collections
import requests
from sentinels import NOTHING
from ._compat import xrange, iteritems
| 35.948052 | 88 | 0.63078 |
8ef46cb4390b436c509425901e0850b4dfacb301 | 1,441 | py | Python | tests/unit/common/etl/transformers/test_specimen_library.py | ambrosejcarr/matrix-service | f61252d79941fa962240e27062682c9676f07e95 | [
"MIT"
] | null | null | null | tests/unit/common/etl/transformers/test_specimen_library.py | ambrosejcarr/matrix-service | f61252d79941fa962240e27062682c9676f07e95 | [
"MIT"
] | null | null | null | tests/unit/common/etl/transformers/test_specimen_library.py | ambrosejcarr/matrix-service | f61252d79941fa962240e27062682c9676f07e95 | [
"MIT"
] | null | null | null | import unittest
from unittest import mock
from matrix.common.aws.redshift_handler import TableName
from matrix.common.etl.transformers.specimen_library import SpecimenLibraryTransformer
| 46.483871 | 111 | 0.724497 |