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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
dee0ea830b4e14533eb75ccbf58b75a95766df8d | 3,369 | py | Python | python/soma_workflow/constants.py | denisri/soma-workflow | bc6f2f50d34437e86e850cb0d05ff26b041d560d | [
"CECILL-B"
] | null | null | null | python/soma_workflow/constants.py | denisri/soma-workflow | bc6f2f50d34437e86e850cb0d05ff26b041d560d | [
"CECILL-B"
] | 44 | 2018-10-30T16:57:10.000Z | 2022-03-15T10:54:57.000Z | python/soma_workflow/constants.py | populse/soma-workflow | e6d3e3c33ad41107ee3c959adc4832e6edd047f4 | [
"CECILL-B"
] | null | null | null | # -*- coding: utf-8 -*-
'''
author: Soizic Laguitton
organization: I2BM, Neurospin, Gif-sur-Yvette, France
organization: CATI, France
organization: IFR 49
License: `CeCILL version 2 <http://www.cecill.info/licences/Licence_CeCILL_V2-en.html>`_
'''
#
# Soma-workflow constants #
#
'''
Job status:
'''
NOT_SUBMITTED ... | 28.310924 | 88 | 0.655091 |
dee4241a76fbf19cf565aab66e0521ce2380cc65 | 250 | py | Python | test/tests/global_and_local.py | kevinxucs/pyston | bdb87c1706ac74a0d15d9bc2bae53798678a5f14 | [
"Apache-2.0"
] | 1 | 2015-11-06T03:39:51.000Z | 2015-11-06T03:39:51.000Z | test/tests/global_and_local.py | kevinxucs/pyston | bdb87c1706ac74a0d15d9bc2bae53798678a5f14 | [
"Apache-2.0"
] | null | null | null | test/tests/global_and_local.py | kevinxucs/pyston | bdb87c1706ac74a0d15d9bc2bae53798678a5f14 | [
"Apache-2.0"
] | null | null | null | # expected: fail
# - this particular check isn't implemented yet
# I would have expected this to be valid, but cPython and pypy err out saying "name 'x' is local and global"
print "first"
x = 1
print "calling"
f(2)
print x
| 16.666667 | 108 | 0.696 |
dee46fc1a2825aedf140afa6a83cd03a303bce36 | 1,980 | py | Python | lab4_2/helpers/scanner.py | cinnamonbreakfast/flcd | f9168c1965976e9ae9477ee6b163a026f61acb1b | [
"MIT"
] | null | null | null | lab4_2/helpers/scanner.py | cinnamonbreakfast/flcd | f9168c1965976e9ae9477ee6b163a026f61acb1b | [
"MIT"
] | null | null | null | lab4_2/helpers/scanner.py | cinnamonbreakfast/flcd | f9168c1965976e9ae9477ee6b163a026f61acb1b | [
"MIT"
] | null | null | null |
res_words = []
seps = []
ops = []
| 22.5 | 74 | 0.491414 |
dee4deb771683414d1b0181d259bc1acc86fbf9f | 1,101 | py | Python | fastspider/item/item.py | coco369/fastspider | 464ba47176c005ed97005a79c5c4eee0bf0740b6 | [
"MIT"
] | 6 | 2021-08-09T01:35:44.000Z | 2022-02-15T08:14:29.000Z | fastspider/item/item.py | coco369/fastspider | 464ba47176c005ed97005a79c5c4eee0bf0740b6 | [
"MIT"
] | null | null | null | fastspider/item/item.py | coco369/fastspider | 464ba47176c005ed97005a79c5c4eee0bf0740b6 | [
"MIT"
] | 4 | 2021-08-13T06:41:13.000Z | 2021-12-07T15:53:56.000Z | # encoding=utf-8
"""
Auth: coco369
Email: 779598160@qq.com
CreateTime: 2021/07/30
Desc: fastspider, Item
"""
| 20.018182 | 84 | 0.728429 |
dee8b0a49fcef498a3468a8ea4df153befa037f5 | 26,370 | py | Python | src/third_party/wiredtiger/test/suite/run.py | benety/mongo | 203430ac9559f82ca01e3cbb3b0e09149fec0835 | [
"Apache-2.0"
] | null | null | null | src/third_party/wiredtiger/test/suite/run.py | benety/mongo | 203430ac9559f82ca01e3cbb3b0e09149fec0835 | [
"Apache-2.0"
] | null | null | null | src/third_party/wiredtiger/test/suite/run.py | benety/mongo | 203430ac9559f82ca01e3cbb3b0e09149fec0835 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
#
# Public Domain 2014-present MongoDB, Inc.
# Public Domain 2008-2014 WiredTiger, Inc.
#
# This is free and unencumbered software released into the public domain.
#
# Anyone is free to copy, modify, publish, use, compile, sell, or
# distribute this software, either in source code form or as a com... | 40.631741 | 105 | 0.573834 |
dee9227b4b6629ca39d002a84205390a69b06f7b | 29,997 | py | Python | Code/Minner/SumDialog.py | lizhangjie316/Minner | f6aebd51cef981d726b53db8d62d1b1703fe2649 | [
"MIT"
] | 1 | 2020-11-05T07:11:33.000Z | 2020-11-05T07:11:33.000Z | Code/Minner0827/ui/SumDialog.py | lizhangjie316/Minner | f6aebd51cef981d726b53db8d62d1b1703fe2649 | [
"MIT"
] | null | null | null | Code/Minner0827/ui/SumDialog.py | lizhangjie316/Minner | f6aebd51cef981d726b53db8d62d1b1703fe2649 | [
"MIT"
] | 1 | 2020-11-05T07:19:44.000Z | 2020-11-05T07:19:44.000Z | # -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'SumDialog.ui'
#
# Created by: PyQt5 UI code generator 5.15.0
#
# WARNING: Any manual changes made to this file will be lost when pyuic5 is
# run again. Do not edit this file unless you know what you are doing.
from PyQt5 import QtCore, Qt... | 43.791241 | 116 | 0.657432 |
deeb28c75145a6bebc3771235fab7a32732db4c0 | 684 | py | Python | models/t_complex_gateway.py | THM-MA/XSDATA-waypoint | dd94442f9d6677c525bf3ebb03c15fec52fa1079 | [
"MIT"
] | null | null | null | models/t_complex_gateway.py | THM-MA/XSDATA-waypoint | dd94442f9d6677c525bf3ebb03c15fec52fa1079 | [
"MIT"
] | null | null | null | models/t_complex_gateway.py | THM-MA/XSDATA-waypoint | dd94442f9d6677c525bf3ebb03c15fec52fa1079 | [
"MIT"
] | null | null | null | from dataclasses import dataclass, field
from typing import Optional
from .t_expression import TExpression
from .t_gateway import TGateway
__NAMESPACE__ = "http://www.omg.org/spec/BPMN/20100524/MODEL"
| 24.428571 | 71 | 0.622807 |
deebcfc8092fc857d0a9f335ddd1bffc49d0f520 | 2,371 | py | Python | fixture/orm.py | NovikovMA/python_training_mantis | c8de0ec193e2ec644d8053f8e1b7fc1ee8fb1525 | [
"Apache-2.0"
] | null | null | null | fixture/orm.py | NovikovMA/python_training_mantis | c8de0ec193e2ec644d8053f8e1b7fc1ee8fb1525 | [
"Apache-2.0"
] | null | null | null | fixture/orm.py | NovikovMA/python_training_mantis | c8de0ec193e2ec644d8053f8e1b7fc1ee8fb1525 | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
__author__ = 'M.Novikov'
from model.project import Project # Mantis
from pony.orm import * #
from pymysql.converters import decoders #
| 59.275 | 186 | 0.567693 |
deecfb2ff8809fa583a186388e95973a391ea0c6 | 3,577 | py | Python | volDB/migrations/0001_initial.py | leg2015/CSCapstone19Volunteers | ae0fcf1e8ce4fafe8578edd0a3943574703046fa | [
"MIT"
] | 4 | 2020-01-13T23:30:34.000Z | 2021-03-17T21:23:57.000Z | volDB/migrations/0001_initial.py | leg2015/CSCapstone19Volunteers | ae0fcf1e8ce4fafe8578edd0a3943574703046fa | [
"MIT"
] | 5 | 2020-02-12T03:25:17.000Z | 2021-06-10T22:29:16.000Z | volDB/migrations/0001_initial.py | leg2015/CSCapstone19Volunteers | ae0fcf1e8ce4fafe8578edd0a3943574703046fa | [
"MIT"
] | null | null | null | # Generated by Django 2.1.7 on 2019-02-23 18:47
from django.db import migrations, models
import django.db.models.deletion
| 41.593023 | 137 | 0.574224 |
deedff750596df4bfdfcd2656752ec59911b5e80 | 2,713 | py | Python | crawler/page_fetcher.py | AssisRaphael/PageColector | 6753376996f12ee1cced96b89a3e34d6fdf66529 | [
"MIT"
] | null | null | null | crawler/page_fetcher.py | AssisRaphael/PageColector | 6753376996f12ee1cced96b89a3e34d6fdf66529 | [
"MIT"
] | null | null | null | crawler/page_fetcher.py | AssisRaphael/PageColector | 6753376996f12ee1cced96b89a3e34d6fdf66529 | [
"MIT"
] | null | null | null | from bs4 import BeautifulSoup
from threading import Thread
import requests
from urllib.parse import urlparse,urljoin
from urllib import parse
| 33.085366 | 109 | 0.570586 |
def0c98ea1f503e25e5a4f61d70a095d8ff1d77d | 141 | py | Python | app/celery_worker.py | cjarv/celery_dev | 1c0489ccf456249d5bd8d21da40ebe4572842af6 | [
"MIT"
] | null | null | null | app/celery_worker.py | cjarv/celery_dev | 1c0489ccf456249d5bd8d21da40ebe4572842af6 | [
"MIT"
] | null | null | null | app/celery_worker.py | cjarv/celery_dev | 1c0489ccf456249d5bd8d21da40ebe4572842af6 | [
"MIT"
] | null | null | null | from factories.celery import create_celery
from factories.application import create_application
celery = create_celery(create_application()) | 35.25 | 52 | 0.87234 |
def0d455f3332a2d6ded90d585855fcbfa88a92a | 2,098 | py | Python | simublocks/dialog/importCodeDialog.py | bentoavb/simublocks | 9d4a5600b8aecd2d188e9191d78789a1bd725ab8 | [
"MIT"
] | 2 | 2020-05-14T12:34:43.000Z | 2020-06-11T23:48:09.000Z | simublocks/dialog/importCodeDialog.py | bentoavb/simublocks | 9d4a5600b8aecd2d188e9191d78789a1bd725ab8 | [
"MIT"
] | null | null | null | simublocks/dialog/importCodeDialog.py | bentoavb/simublocks | 9d4a5600b8aecd2d188e9191d78789a1bd725ab8 | [
"MIT"
] | 1 | 2020-05-12T07:01:28.000Z | 2020-05-12T07:01:28.000Z | # MIT License
#
# Copyright (c) 2020 Anderson Vitor Bento
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify... | 38.851852 | 98 | 0.704957 |
def0f90a3cae5abac2b0927d079c001b98668c18 | 1,365 | py | Python | python-socket-mult-thread/server.py | Programmer-Edilson/min-projects | 62dfa55e8875b3d0d3e6cc9cb504c3f3f7da064e | [
"MIT"
] | 1 | 2021-02-28T17:33:59.000Z | 2021-02-28T17:33:59.000Z | python-socket-mult-thread/server.py | Programmer-Edilson/min-projects | 62dfa55e8875b3d0d3e6cc9cb504c3f3f7da064e | [
"MIT"
] | null | null | null | python-socket-mult-thread/server.py | Programmer-Edilson/min-projects | 62dfa55e8875b3d0d3e6cc9cb504c3f3f7da064e | [
"MIT"
] | null | null | null | import socket
import os
from _thread import start_new_thread
ip = "localhost"
port = 1234
global number_of_connections
number_of_connections = 0
server = socket.socket()
server.bind((ip, port))
server.listen(5)
engine()
| 24.375 | 74 | 0.621245 |
def2f40bc3a8f54d1a406e95811076ed0688d708 | 658 | py | Python | delete_unuse_callkit.py | eyolo2021/ios-ui-sdk-set | a8897320c356ddd6dbfe964ef68eb76701759f03 | [
"MIT"
] | 14 | 2021-03-06T08:47:30.000Z | 2022-02-11T09:42:24.000Z | delete_unuse_callkit.py | eyolo2021/ios-ui-sdk-set | a8897320c356ddd6dbfe964ef68eb76701759f03 | [
"MIT"
] | 3 | 2021-03-19T11:12:42.000Z | 2021-11-29T14:56:33.000Z | delete_unuse_callkit.py | Zuzi007/ios-ui-sdk-set | 2e51added5d697b4d1ab1ba2887ad297b408e7b0 | [
"MIT"
] | 12 | 2021-07-02T02:44:52.000Z | 2022-03-01T05:15:22.000Z | #coding=utf-8
import os
delete_files=["RCCall.mm","RCCXCall.m"]
start_key = "RCCallKit_Delete_Start"
end_key = "RCCallKit_Delete_end"
for root,dirs,files in os.walk("./CallKit"):
for file in files:
if file in delete_files:
print("will delete %s" % file)
delete_used(os.path.join(root,file))
| 15.666667 | 44 | 0.674772 |
def6b9e9ff86d2545be01b4fc202577ea606b159 | 525 | py | Python | global_setting.py | aixiwang/mqtt_datajs | 91091d63f73e64916e6ca3fa5e9279dd361d3c86 | [
"BSD-3-Clause"
] | null | null | null | global_setting.py | aixiwang/mqtt_datajs | 91091d63f73e64916e6ca3fa5e9279dd361d3c86 | [
"BSD-3-Clause"
] | null | null | null | global_setting.py | aixiwang/mqtt_datajs | 91091d63f73e64916e6ca3fa5e9279dd361d3c86 | [
"BSD-3-Clause"
] | null | null | null | #!/usr/bin/python
#-*- coding: utf-8 -*-
#---------------------------------------
#
# Copyright(c) Aixi Wang 2014-2015
#---------------------------------------
# v1 -- initial version
#---------------------------------------
#-----------------------
# mail
#-----------------------
global mail_sender,mail_smtpserver,ma... | 23.863636 | 62 | 0.493333 |
def712afd23e0562bd689a7a3ab2431ec0fae53a | 631 | py | Python | Chatbot_Rest/urls.py | chenpocufa/Chatbot_CN | 5e13c129c159143610f4dfc99478d401dd5777e6 | [
"Apache-2.0"
] | 1 | 2019-08-02T06:09:34.000Z | 2019-08-02T06:09:34.000Z | Chatbot_Rest/urls.py | yuxuan2015/Chatbot_CN | 1adf1c01d3eced5f0644102bdec9be22705b6f3f | [
"Apache-2.0"
] | null | null | null | Chatbot_Rest/urls.py | yuxuan2015/Chatbot_CN | 1adf1c01d3eced5f0644102bdec9be22705b6f3f | [
"Apache-2.0"
] | null | null | null | #-*- coding:utf-8 _*-
"""
@author:charlesXu
@file: urls.py
@desc: url
@time: 2019/05/10
"""
# ===============
#
# apis
#
# ===============
from django.urls import path
from intent_rest_controller import intent_controller
from entity_extraction_controller import entity_ext_controller
from bot_controller impo... | 21.033333 | 62 | 0.667195 |
def7709b7d7d970c7608ad7be378d822d2e33518 | 14,334 | py | Python | tests/frameworks/test_wsgi.py | tirkarthi/python-sensor | 9872d146ac00baff2673fde5ba97fdbe596869a4 | [
"MIT"
] | 61 | 2017-09-27T02:50:17.000Z | 2022-03-22T12:13:37.000Z | tests/frameworks/test_wsgi.py | tirkarthi/python-sensor | 9872d146ac00baff2673fde5ba97fdbe596869a4 | [
"MIT"
] | 82 | 2017-07-11T13:47:33.000Z | 2022-03-22T10:10:38.000Z | tests/frameworks/test_wsgi.py | takeaway/python-sensor | 52d6eaa2d6a8e625201bad36ac2448201c4bd63d | [
"MIT"
] | 27 | 2017-09-11T16:22:32.000Z | 2022-03-11T17:21:49.000Z | # (c) Copyright IBM Corp. 2021
# (c) Copyright Instana Inc. 2020
from __future__ import absolute_import
import time
import urllib3
import unittest
import tests.apps.flask_app
from ..helpers import testenv
from instana.singletons import agent, tracer
| 36.943299 | 102 | 0.647133 |
def7ae196a0259e7e64d4dfd6522b1ee72138646 | 16,178 | py | Python | api/yolo_minimal/utils.py | simonsmh/www | 1741545e636540b9eb250840347f091082fe301a | [
"MIT"
] | 5 | 2015-12-19T11:18:54.000Z | 2016-08-27T02:21:59.000Z | api/yolo_minimal/utils.py | simonsmh/www | 1741545e636540b9eb250840347f091082fe301a | [
"MIT"
] | null | null | null | api/yolo_minimal/utils.py | simonsmh/www | 1741545e636540b9eb250840347f091082fe301a | [
"MIT"
] | 1 | 2020-10-30T13:25:33.000Z | 2020-10-30T13:25:33.000Z | import math
import os
import random
import cv2
import numpy as np
import torch
import torch.nn as nn
import torch.nn.functional as F
import torchvision
def box_iou(box1, box2):
# https://github.com/pytorch/vision/blob/master/torchvision/ops/boxes.py
"""
Return intersection-over-union (Jaccard index)... | 34.49467 | 117 | 0.52627 |
def8727d101b934efb5715bc01f3842eeeee3ee3 | 4,934 | py | Python | ec2stack/__init__.py | sureshanaparti/cloudstack-ec2stack | 8e07435d3d04357995f2a5d337adef62ecbfdd8d | [
"Apache-2.0"
] | 13 | 2015-05-06T13:38:13.000Z | 2021-11-09T21:39:01.000Z | ec2stack/__init__.py | sureshanaparti/cloudstack-ec2stack | 8e07435d3d04357995f2a5d337adef62ecbfdd8d | [
"Apache-2.0"
] | 3 | 2015-08-21T17:31:20.000Z | 2021-07-07T08:39:11.000Z | ec2stack/__init__.py | sureshanaparti/cloudstack-ec2stack | 8e07435d3d04357995f2a5d337adef62ecbfdd8d | [
"Apache-2.0"
] | 17 | 2015-07-24T06:00:59.000Z | 2021-11-09T21:38:52.000Z | #!/usr/bin/env python
# encoding: utf-8
#
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache Licens... | 28.356322 | 88 | 0.676125 |
def8fdb574ef8e8309feae4ee72edbfe9a0a3beb | 926 | py | Python | schematics_proto3/unset.py | mlga/schematics-proto3 | 588fe5bc212e203688166638a1c52dfeda931403 | [
"MIT"
] | null | null | null | schematics_proto3/unset.py | mlga/schematics-proto3 | 588fe5bc212e203688166638a1c52dfeda931403 | [
"MIT"
] | 11 | 2020-04-09T13:33:54.000Z | 2020-08-19T17:38:26.000Z | schematics_proto3/unset.py | mlga/schematics-proto3 | 588fe5bc212e203688166638a1c52dfeda931403 | [
"MIT"
] | null | null | null | # -*- coding:utf-8 -*-
"""
Test module docstring.
"""
import threading
from typing import Type
Unset = UnsetType() # pylint: disable=invalid-name
| 17.807692 | 56 | 0.580994 |
def92f706f99835e10af1d0e6310107f2432dbe5 | 193 | py | Python | aws_lambda_powertools/event_handler/__init__.py | nayaverdier/aws-lambda-powertools-python | cd15ee97746356a84c6f196dbd2d26a34ea50411 | [
"Apache-2.0",
"MIT-0"
] | 1,208 | 2020-05-20T19:06:29.000Z | 2022-03-30T14:17:47.000Z | aws_lambda_powertools/event_handler/__init__.py | nayaverdier/aws-lambda-powertools-python | cd15ee97746356a84c6f196dbd2d26a34ea50411 | [
"Apache-2.0",
"MIT-0"
] | 859 | 2020-05-22T09:59:54.000Z | 2022-03-31T08:31:30.000Z | aws_lambda_powertools/event_handler/__init__.py | nayaverdier/aws-lambda-powertools-python | cd15ee97746356a84c6f196dbd2d26a34ea50411 | [
"Apache-2.0",
"MIT-0"
] | 163 | 2020-05-18T21:08:25.000Z | 2022-03-28T12:03:37.000Z | """
Event handler decorators for common Lambda events
"""
from .api_gateway import ApiGatewayResolver
from .appsync import AppSyncResolver
__all__ = ["AppSyncResolver", "ApiGatewayResolver"]
| 21.444444 | 51 | 0.797927 |
def98cf0f4126cdcda2bee2e5c8d96a01bc4937b | 1,351 | py | Python | solutions/5/guillaume/LookAhead.py | larsbratholm/champs_kaggle | fda4f213d02fd5e0138a86c52b4140c9f94fec6e | [
"MIT"
] | 9 | 2020-08-14T23:11:16.000Z | 2021-08-09T16:23:43.000Z | solutions/5/guillaume/LookAhead.py | larsbratholm/champs_kaggle | fda4f213d02fd5e0138a86c52b4140c9f94fec6e | [
"MIT"
] | 1 | 2020-11-19T09:29:14.000Z | 2020-11-19T09:29:14.000Z | solutions/5/guillaume/LookAhead.py | larsbratholm/champs_kaggle | fda4f213d02fd5e0138a86c52b4140c9f94fec6e | [
"MIT"
] | 2 | 2020-09-09T02:53:57.000Z | 2020-12-06T08:20:52.000Z | import itertools as it
from torch.optim import Optimizer
| 37.527778 | 75 | 0.559585 |
defcc91baa71d0c94f476ef6cc3d35765b3516a0 | 2,263 | py | Python | addexp.py | Shajm44n/Expense | db3355d4d81d5dd57ceea81b1170724b8893e523 | [
"MIT"
] | null | null | null | addexp.py | Shajm44n/Expense | db3355d4d81d5dd57ceea81b1170724b8893e523 | [
"MIT"
] | null | null | null | addexp.py | Shajm44n/Expense | db3355d4d81d5dd57ceea81b1170724b8893e523 | [
"MIT"
] | null | null | null | from tkinter import *
# import expdate
import mysql.connector
db_connect=mysql.connector.connect(host="localhost",user="root",password="maan",database="expense")
db_cursor=db_connect.cursor()
| 32.797101 | 236 | 0.643836 |
defd13835bf657af58b23494bf16c9abcbbae2e8 | 1,217 | py | Python | BlackJack/UserInterface/BlackJackUI.py | Kasyx709/BlackJack | a99cd9327e466ed51dadbf4b5407c2370f998b82 | [
"MIT"
] | null | null | null | BlackJack/UserInterface/BlackJackUI.py | Kasyx709/BlackJack | a99cd9327e466ed51dadbf4b5407c2370f998b82 | [
"MIT"
] | null | null | null | BlackJack/UserInterface/BlackJackUI.py | Kasyx709/BlackJack | a99cd9327e466ed51dadbf4b5407c2370f998b82 | [
"MIT"
] | null | null | null | from __future__ import division
from BlackJack.UserInterface import tk
from BlackJack.UserInterface import tkFont
from BlackJack.UserInterface import BlackJackWindows
from BlackJack.UserInterface import SelectGameType
from BlackJack.UserInterface import Helpers
| 40.566667 | 92 | 0.696795 |
defd4d718f41568b76388eb0230161d0d48bb24e | 263 | py | Python | winecasino/core/entities/__init__.py | harlov/winecasino | ae29b2c8f75bfd05ad141fd3b596f1db7c103690 | [
"MIT"
] | null | null | null | winecasino/core/entities/__init__.py | harlov/winecasino | ae29b2c8f75bfd05ad141fd3b596f1db7c103690 | [
"MIT"
] | null | null | null | winecasino/core/entities/__init__.py | harlov/winecasino | ae29b2c8f75bfd05ad141fd3b596f1db7c103690 | [
"MIT"
] | null | null | null | from .country import Country
from .game import Game
from .game import Bid
from .user import User
from .grape import Grape
from .wine import Wine
from .base import new_id
__all__ = [
"new_id",
"Country",
"Game",
"Grape",
"User",
"Wine",
]
| 15.470588 | 28 | 0.653992 |
defdbd583ad5f6b3a08353cba72476c7dbaff00c | 295 | py | Python | download-deveres/para-execicios-curso-em-video/exe019.py | Hugo-Oliveira-RDO11/meus-deveres | b5e41015e2cb95946262678e82197e5f47d56271 | [
"MIT"
] | null | null | null | download-deveres/para-execicios-curso-em-video/exe019.py | Hugo-Oliveira-RDO11/meus-deveres | b5e41015e2cb95946262678e82197e5f47d56271 | [
"MIT"
] | null | null | null | download-deveres/para-execicios-curso-em-video/exe019.py | Hugo-Oliveira-RDO11/meus-deveres | b5e41015e2cb95946262678e82197e5f47d56271 | [
"MIT"
] | null | null | null | import random
p = str(input('digite o nome do primeiro aluno :'))
s = str(input('o nome do segundo aluno :'))
t = str(input('o nome do terceiro aluno :'))
q = str(input('o nome do quato aluno :'))
lista = [p, s, t, q]
aluno = random.choice(lista)
print('o aluno sorteado foi {}'.format(aluno))
| 29.5 | 51 | 0.657627 |
defde4b16a7fe68a1c0b7ba26a303a5bb6a695bc | 12,389 | py | Python | cma-evolve.py | simondlevy/CMA-Gym | ce0056873d42eae2b6769fe22fcf872459694f30 | [
"Apache-2.0"
] | null | null | null | cma-evolve.py | simondlevy/CMA-Gym | ce0056873d42eae2b6769fe22fcf872459694f30 | [
"Apache-2.0"
] | null | null | null | cma-evolve.py | simondlevy/CMA-Gym | ce0056873d42eae2b6769fe22fcf872459694f30 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python3
import gym
import torch
import numpy as np
import multiprocessing as mp
import os
import pickle
import sys
import time
import logging
import cma
import argparse
from torchmodel import StandardFCNet
def fitness_shift(x):
x = np.asarray(x).flatten()
ranks = np.empty(len(x))
ranks[x.ar... | 33.574526 | 123 | 0.600291 |
defec38e9abb5a9b6de6de6949355eb8f83f8c74 | 342 | py | Python | src/arcclimate/temperature.py | youworks/arcclimate | 62a9eece267e42ccddfc5145e8ee50776470f7bf | [
"MIT"
] | null | null | null | src/arcclimate/temperature.py | youworks/arcclimate | 62a9eece267e42ccddfc5145e8ee50776470f7bf | [
"MIT"
] | null | null | null | src/arcclimate/temperature.py | youworks/arcclimate | 62a9eece267e42ccddfc5145e8ee50776470f7bf | [
"MIT"
] | 1 | 2022-03-08T01:04:47.000Z | 2022-03-08T01:04:47.000Z | """
"""
import numpy as np
def get_corrected_TMP(TMP: np.ndarray, ele_gap: float) -> np.ndarray:
"""
Args:
TMP (np.ndarray): []
ele_gap (np.ndarray): [m]
Returns:
np.ndarray: [C]
Notes:
0.0065/m
"""
return TMP + ele_gap * -0.0065
| 15.545455 | 69 | 0.564327 |
defeff29d76d14fa0aceaad7cd54a55164f7136c | 2,386 | py | Python | rastervision/data/label_store/default.py | carderne/raster-vision | 915fbcd3263d8f2193e65c2cd0eb53e050a47a01 | [
"Apache-2.0"
] | 4 | 2019-03-11T12:38:15.000Z | 2021-04-06T14:57:52.000Z | rastervision/data/label_store/default.py | carderne/raster-vision | 915fbcd3263d8f2193e65c2cd0eb53e050a47a01 | [
"Apache-2.0"
] | null | null | null | rastervision/data/label_store/default.py | carderne/raster-vision | 915fbcd3263d8f2193e65c2cd0eb53e050a47a01 | [
"Apache-2.0"
] | 1 | 2019-10-29T09:22:09.000Z | 2019-10-29T09:22:09.000Z | from abc import (ABC, abstractmethod)
import os
import rastervision as rv
| 27.425287 | 86 | 0.65088 |
720247461650041909a7ce79fd85da841234a38b | 6,425 | py | Python | app.py | aniketjana03/TimeSheet | 519b3bdad79dedb7210747906bf4b8e24e64691a | [
"Apache-2.0"
] | null | null | null | app.py | aniketjana03/TimeSheet | 519b3bdad79dedb7210747906bf4b8e24e64691a | [
"Apache-2.0"
] | null | null | null | app.py | aniketjana03/TimeSheet | 519b3bdad79dedb7210747906bf4b8e24e64691a | [
"Apache-2.0"
] | null | null | null | import sys
import os
from flask import Flask, flash, redirect, render_template, request, url_for, session
from flaskext.mysql import MySQL
from flask_login import LoginManager
from flask_bcrypt import Bcrypt
from flask_session import Session
from database import Database
from makedb import MakeDB
from helpers import ge... | 32.125 | 144 | 0.598599 |
7202ced44b536e7785d48d42a3fe09355e98fc12 | 448 | py | Python | guestbook/models.py | Bespolezniy/geek-world | 8fbaf451b4e87e48e73eb289035ec0ea68ea0e68 | [
"MIT"
] | null | null | null | guestbook/models.py | Bespolezniy/geek-world | 8fbaf451b4e87e48e73eb289035ec0ea68ea0e68 | [
"MIT"
] | null | null | null | guestbook/models.py | Bespolezniy/geek-world | 8fbaf451b4e87e48e73eb289035ec0ea68ea0e68 | [
"MIT"
] | null | null | null | from django.db import models
# Create your models here.
| 37.333333 | 92 | 0.694196 |
72043f3633eddba64964dbbdb6f17d84cf1d6267 | 34,859 | py | Python | PA1/PA1_Q2/P21CS007_VGG16.py | aryachiranjeev/Dependable-AI | 750570572c1baaa2590a89c0982e2f71b15b48b9 | [
"MIT"
] | null | null | null | PA1/PA1_Q2/P21CS007_VGG16.py | aryachiranjeev/Dependable-AI | 750570572c1baaa2590a89c0982e2f71b15b48b9 | [
"MIT"
] | null | null | null | PA1/PA1_Q2/P21CS007_VGG16.py | aryachiranjeev/Dependable-AI | 750570572c1baaa2590a89c0982e2f71b15b48b9 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# coding: utf-8
# In[2]:
import numpy as np
import pandas as pd
import random
import tensorflow as tf
import matplotlib.pyplot as plt
from tensorflow.keras.layers import Dense,Flatten,GlobalAveragePooling2D,Input,Lambda
from tensorflow.keras.models import Model,load_model
import tensorflow.kera... | 33.16746 | 235 | 0.685304 |
72045094280bf8b19ef8956f47fe38ea87d738b3 | 1,027 | py | Python | notebooks/general.py | transientlunatic/grasshopper | 1d3822427970d200341ff9d2823949fb4b27e001 | [
"0BSD"
] | 3 | 2020-09-26T01:27:13.000Z | 2020-09-30T05:47:42.000Z | notebooks/general.py | transientlunatic/gravpy | 1d3822427970d200341ff9d2823949fb4b27e001 | [
"0BSD"
] | null | null | null | notebooks/general.py | transientlunatic/gravpy | 1d3822427970d200341ff9d2823949fb4b27e001 | [
"0BSD"
] | null | null | null | import numpy as np
import astropy.units as u
def snr(signal, detector):
"""
Calculate the SNR of a signal in a given detector,
assuming that it has been detected with an optimal filter.
See e.g. arxiv.org/abs/1408.0740
Parameters
----------
signal : Source
A Source object which ... | 30.205882 | 79 | 0.635833 |
72082ffdc0eb8ab81095d7d094328792a40cbcea | 6,898 | py | Python | dlfairness/original_code/FairALM/Experiments-CelebA/results/quantitative_results/plot_celeba.py | lin-tan/fairness-variance | 7f6aee23160707ffe78f429e5d960022ea1c9fe4 | [
"BSD-3-Clause"
] | null | null | null | dlfairness/original_code/FairALM/Experiments-CelebA/results/quantitative_results/plot_celeba.py | lin-tan/fairness-variance | 7f6aee23160707ffe78f429e5d960022ea1c9fe4 | [
"BSD-3-Clause"
] | null | null | null | dlfairness/original_code/FairALM/Experiments-CelebA/results/quantitative_results/plot_celeba.py | lin-tan/fairness-variance | 7f6aee23160707ffe78f429e5d960022ea1c9fe4 | [
"BSD-3-Clause"
] | null | null | null | '''
Script to plot the accuracy and the fairness measures for different algorithms
from the log files
'''
import matplotlib
matplotlib.use('agg')
from matplotlib import pyplot as plt
import os
print(os.getcwd())
import numpy as np
plt.style.use('ggplot')
if __name__ == "__main__":
gen_all_plots()
| 36.691489 | 81 | 0.621919 |
72085eb6f35c638ad1743b5ae7bd6a8de18fc6f3 | 682 | py | Python | conqueror/scraper/base_yandex.py | piotrmaslanka/yandex-conqueror | cd0b50a43e25551f91150e0bee4f9cd307e4adce | [
"MIT"
] | 12 | 2022-03-01T22:45:05.000Z | 2022-03-16T05:46:24.000Z | conqueror/scraper/base_yandex.py | piotrmaslanka/yandex-conqueror | cd0b50a43e25551f91150e0bee4f9cd307e4adce | [
"MIT"
] | 1 | 2022-03-02T10:18:05.000Z | 2022-03-02T11:03:52.000Z | conqueror/scraper/base_yandex.py | piotrmaslanka/yandex-conqueror | cd0b50a43e25551f91150e0bee4f9cd307e4adce | [
"MIT"
] | 1 | 2022-03-02T10:18:35.000Z | 2022-03-02T10:18:35.000Z | import requests
from satella.coding.decorators import retry
| 28.416667 | 64 | 0.692082 |
72097fdf43f5937088d329748fec0dc61447255f | 6,142 | py | Python | engine/azbatchengine.py | asedighi/azure_realtime_batch | c2cf4c8edc2bbded8377842fcad6370fd35af44e | [
"MIT"
] | 3 | 2020-05-08T16:20:07.000Z | 2021-10-06T11:16:10.000Z | engine/azbatchengine.py | asedighi/azure_realtime_batch | c2cf4c8edc2bbded8377842fcad6370fd35af44e | [
"MIT"
] | null | null | null | engine/azbatchengine.py | asedighi/azure_realtime_batch | c2cf4c8edc2bbded8377842fcad6370fd35af44e | [
"MIT"
] | null | null | null | # Copyright (c) Microsoft Corporation
#
# All rights reserved.
#
# MIT License
#
# Permission is hereby granted, free of charge, to any person obtaining a
# copy of this software and associated documentation files (the "Software"),
# to deal in the Software without restriction, including without limitation
# the rights... | 29.38756 | 137 | 0.667209 |
720a41d918f83d5bbf26dfd204b04b9dc1b4ac43 | 1,090 | py | Python | j.py | chirag127/Language-Translator-Using-Tkinter-in-Python | c790a0672c770cf703559d99c74ad581643f4d2f | [
"MIT"
] | null | null | null | j.py | chirag127/Language-Translator-Using-Tkinter-in-Python | c790a0672c770cf703559d99c74ad581643f4d2f | [
"MIT"
] | null | null | null | j.py | chirag127/Language-Translator-Using-Tkinter-in-Python | c790a0672c770cf703559d99c74ad581643f4d2f | [
"MIT"
] | null | null | null | import tkinter as tk
import sys
if __name__ == '__main__':
while True:
try:
print("qiaulfskhdnliukf")
root = tk.Tk()
t = tk.Text()
t.pack()
# create instance of file like object
pl = PrintLogger(t)
# replace sys.stdout ... | 24.772727 | 82 | 0.542202 |
720b01f5be1444386ad583c605e2465546f819c4 | 2,695 | py | Python | byteweiser.py | urbanware-org/byteweiser | fc90d17b51ead44af53401dc9c8ca5f0efc5e72e | [
"MIT"
] | 3 | 2017-11-27T00:35:04.000Z | 2017-12-13T22:41:31.000Z | byteweiser.py | urbanware-org/byteweiser | fc90d17b51ead44af53401dc9c8ca5f0efc5e72e | [
"MIT"
] | 1 | 2017-03-08T19:04:49.000Z | 2017-03-08T19:04:49.000Z | byteweiser.py | urbanware-org/byteweiser | fc90d17b51ead44af53401dc9c8ca5f0efc5e72e | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
# ============================================================================
# ByteWeiser - Byte comparison and replacement tool
# Main script
# Copyright (C) 2021 by Ralf Kilian
# Distributed under the MIT License (https://opensource.org/licenses/MIT)
#
# GitHub: https... | 34.551282 | 78 | 0.562152 |
720b83b3d481df1e875ae4b17eade77f3a7f0679 | 9,798 | py | Python | scripts/st_dashboard.py | rsmith49/simple-budget-pld | 1bee5a26f53aa4a5b0aab49ee4c158b5ecb7c743 | [
"Apache-2.0"
] | 1 | 2022-01-01T14:44:40.000Z | 2022-01-01T14:44:40.000Z | scripts/st_dashboard.py | rsmith49/simple-budget-pld | 1bee5a26f53aa4a5b0aab49ee4c158b5ecb7c743 | [
"Apache-2.0"
] | null | null | null | scripts/st_dashboard.py | rsmith49/simple-budget-pld | 1bee5a26f53aa4a5b0aab49ee4c158b5ecb7c743 | [
"Apache-2.0"
] | null | null | null | import altair as alt
import os
import pandas as pd
import streamlit as st
import sys
from datetime import datetime
from dateutil.relativedelta import relativedelta
from dotenv import load_dotenv
from plaid.api_client import ApiClient
from plaid.exceptions import ApiException
from pathlib import Path
from traceback imp... | 33.101351 | 119 | 0.610431 |
720ee96617fe84100cbf9c9517c56d368835bd2c | 16,818 | py | Python | scripts/devvnet_manager.py | spmckenney/Devv-Core | eb30ae3a092e3fe0f9f756f5f31bdce4f6215b98 | [
"MIT"
] | null | null | null | scripts/devvnet_manager.py | spmckenney/Devv-Core | eb30ae3a092e3fe0f9f756f5f31bdce4f6215b98 | [
"MIT"
] | null | null | null | scripts/devvnet_manager.py | spmckenney/Devv-Core | eb30ae3a092e3fe0f9f756f5f31bdce4f6215b98 | [
"MIT"
] | null | null | null | import yaml
import argparse
import sys
import os
import subprocess
import time
def get_nodes(yml_dict, host_index_map):
nodes = []
shard_index = yml_dict['shard_index']
try:
host_index_map = yml_dict['host_index_map']
print("Using shard's {} for shard {}".format(host_index_map, shard_... | 33.171598 | 276 | 0.576347 |
72103568b2899de2bb48ee1f49834b293ab3bb81 | 5,896 | py | Python | run_qasm.py | t-imamichi/qiskit-utility | 2e71d0457bba0e6eb91daa9dbb32f52d87fe9f0b | [
"Apache-2.0"
] | 6 | 2019-02-27T11:53:18.000Z | 2022-03-02T21:28:05.000Z | run_qasm.py | t-imamichi/qiskit-utility | 2e71d0457bba0e6eb91daa9dbb32f52d87fe9f0b | [
"Apache-2.0"
] | null | null | null | run_qasm.py | t-imamichi/qiskit-utility | 2e71d0457bba0e6eb91daa9dbb32f52d87fe9f0b | [
"Apache-2.0"
] | 2 | 2019-05-03T23:52:03.000Z | 2020-12-22T12:12:38.000Z | #!/usr/bin/env python
# coding: utf-8
# Copyright 2018, IBM.
#
# This source code is licensed under the Apache License, Version 2.0 found in
# the LICENSE.txt file in the root directory of this source tree.
'''
This tool submits a QASM file to any backend and show the result.
It requires 'Qconfig.py' to set a token o... | 39.046358 | 116 | 0.608887 |
72118299f37a0a55a9f0a207024fcdd8ae01fcd7 | 445 | py | Python | alembic/versions/175f5441bd46_adding_usrname_column.py | thiere18/fastapi-boilerplate | 6760e0e49caa915563d44897262d493b012207c0 | [
"MIT"
] | 5 | 2021-12-10T17:35:31.000Z | 2021-12-30T18:36:23.000Z | alembic/versions/175f5441bd46_adding_usrname_column.py | thiere18/fastapi-boilerplate | 6760e0e49caa915563d44897262d493b012207c0 | [
"MIT"
] | 1 | 2021-11-21T13:59:03.000Z | 2021-11-21T13:59:03.000Z | alembic/versions/175f5441bd46_adding_usrname_column.py | thiere18/fastapi-boilerplate | 6760e0e49caa915563d44897262d493b012207c0 | [
"MIT"
] | 1 | 2021-12-07T14:08:12.000Z | 2021-12-07T14:08:12.000Z | """adding usrname column
Revision ID: 175f5441bd46
Revises: 186abcf43cae
Create Date: 2021-11-20 22:54:04.157131
"""
from alembic import op
import sqlalchemy as sa
# revision identifiers, used by Alembic.
revision = '175f5441bd46'
down_revision = '186abcf43cae'
branch_labels = None
depends_on = None
| 16.481481 | 79 | 0.72809 |
7211ad9fb739bb9a8cf35bb0752773293df5ab6b | 2,356 | py | Python | api/teams/models.py | wepickheroes/wepickheroes.github.io | 032c2a75ef058aaceb795ce552c52fbcc4cdbba3 | [
"MIT"
] | 3 | 2018-02-15T20:04:23.000Z | 2018-09-29T18:13:55.000Z | api/teams/models.py | wepickheroes/wepickheroes.github.io | 032c2a75ef058aaceb795ce552c52fbcc4cdbba3 | [
"MIT"
] | 5 | 2018-01-31T02:01:15.000Z | 2018-05-11T04:07:32.000Z | api/teams/models.py | prattl/wepickheroes | 032c2a75ef058aaceb795ce552c52fbcc4cdbba3 | [
"MIT"
] | null | null | null | from django.conf import settings
from django.contrib.auth import get_user_model
from django.db import models
from nucleus.models import (
AbstractBaseModel,
EmailRecord,
TeamMember,
)
User = get_user_model()
INVITE_TEMPLATE = """Hello,
You've been invited to join a team on push.gg. Click the link belo... | 29.45 | 94 | 0.639219 |
7211e7dcde6526670f3ae011a8fd15606f93b81e | 1,826 | py | Python | tables_io/lazy_modules.py | LSSTDESC/tables_io | 1c2f119c928d05d237b1c8509e340d29650ceb8b | [
"MIT"
] | 1 | 2021-08-13T15:41:58.000Z | 2021-08-13T15:41:58.000Z | tables_io/lazy_modules.py | LSSTDESC/tables_io | 1c2f119c928d05d237b1c8509e340d29650ceb8b | [
"MIT"
] | 18 | 2021-08-12T00:09:36.000Z | 2022-02-24T21:11:18.000Z | tables_io/lazy_modules.py | LSSTDESC/tables_io | 1c2f119c928d05d237b1c8509e340d29650ceb8b | [
"MIT"
] | null | null | null | """ Lazy loading modules """
import sys
import importlib.util
def lazyImport(modulename):
""" This will allow us to lazy import various modules
Parameters
----------
modulename : `str`
The name of the module in question
Returns
-------
module : `importlib.LazyModule`
A... | 26.852941 | 82 | 0.645126 |
721392272e51a8013f6d83d05f9c457dc8ce2f53 | 4,811 | py | Python | print_results.py | MicImbriani/Keras-PRBX | ab9dd8196e6f184336f5b30715635670d3586136 | [
"CC0-1.0"
] | 1 | 2021-09-18T12:42:28.000Z | 2021-09-18T12:42:28.000Z | print_results.py | MicImbriani/SkinLesion-Segm-Classif-UNet-FocusNet-ResNet50 | ab9dd8196e6f184336f5b30715635670d3586136 | [
"CC0-1.0"
] | null | null | null | print_results.py | MicImbriani/SkinLesion-Segm-Classif-UNet-FocusNet-ResNet50 | ab9dd8196e6f184336f5b30715635670d3586136 | [
"CC0-1.0"
] | null | null | null | import numpy as np
from keras.optimizers import Adam, SGD
from tensorflow.keras.metrics import AUC
import metrics
from networks.unet_nn import unet
from networks.unet_res_se_nn import unet_res_se
from networks.focus import get_focusnetAlpha
from networks.resnet import get_res
from data_processing.generate_new_dataset... | 29.335366 | 129 | 0.675327 |
72140b20f916fb997edbec8a00bb1402df3614ca | 9,466 | py | Python | game.py | distortedsignal/bohnanza | dfbcfafbdd07cb924cbbc2adc36db7e51673e546 | [
"Apache-2.0"
] | null | null | null | game.py | distortedsignal/bohnanza | dfbcfafbdd07cb924cbbc2adc36db7e51673e546 | [
"Apache-2.0"
] | null | null | null | game.py | distortedsignal/bohnanza | dfbcfafbdd07cb924cbbc2adc36db7e51673e546 | [
"Apache-2.0"
] | null | null | null | """
An implementation of Bohnanza
@author: David Kelley, 2018
"""
import random
from collections import defaultdict
| 34.421818 | 88 | 0.555145 |
72155749ca290c85d0fa365110369fcce2862271 | 1,872 | py | Python | pytype/tests/test_calls.py | JelleZijlstra/pytype | 962a0ebc05bd24dea172381b2bedcc547ba53dd5 | [
"Apache-2.0"
] | 11 | 2017-02-12T12:19:50.000Z | 2022-03-06T08:56:48.000Z | pytype/tests/test_calls.py | JelleZijlstra/pytype | 962a0ebc05bd24dea172381b2bedcc547ba53dd5 | [
"Apache-2.0"
] | null | null | null | pytype/tests/test_calls.py | JelleZijlstra/pytype | 962a0ebc05bd24dea172381b2bedcc547ba53dd5 | [
"Apache-2.0"
] | 2 | 2017-06-27T14:41:57.000Z | 2021-12-05T11:27:33.000Z | """Tests for calling other functions, and the corresponding checks."""
from pytype import utils
from pytype.tests import test_inference
if __name__ == "__main__":
test_inference.main()
| 26.742857 | 73 | 0.553953 |
7216c0aa91d2cb7e990847e2823233ead4e36ab3 | 724 | py | Python | test/test_learning_00.py | autodrive/NAIST_DeepLearning | ac2c0512c43f71ea7df68567c5e24e689ac18aea | [
"Apache-2.0"
] | 1 | 2018-09-26T01:52:35.000Z | 2018-09-26T01:52:35.000Z | test/test_learning_00.py | autodrive/NAIST_DeepLearning | ac2c0512c43f71ea7df68567c5e24e689ac18aea | [
"Apache-2.0"
] | 5 | 2015-12-31T10:56:43.000Z | 2018-11-16T08:57:12.000Z | test/test_learning_00.py | autodrive/NAIST_DeepLearning | ac2c0512c43f71ea7df68567c5e24e689ac18aea | [
"Apache-2.0"
] | 1 | 2018-09-26T01:52:37.000Z | 2018-09-26T01:52:37.000Z | import unittest
import lecture1_code00 as dl
from sklearn.datasets.samples_generator import make_blobs
| 27.846154 | 97 | 0.585635 |
7217f6133fa71477eb286daa69250fadb04142e7 | 2,389 | py | Python | edumediaitem/views_manage.py | shagun30/djambala-2 | 06f14e3dd237d7ebf535c62172cfe238c3934f4d | [
"BSD-3-Clause"
] | null | null | null | edumediaitem/views_manage.py | shagun30/djambala-2 | 06f14e3dd237d7ebf535c62172cfe238c3934f4d | [
"BSD-3-Clause"
] | null | null | null | edumediaitem/views_manage.py | shagun30/djambala-2 | 06f14e3dd237d7ebf535c62172cfe238c3934f4d | [
"BSD-3-Clause"
] | null | null | null | #-*-coding: utf-8 -*-
"""
/dms/edumediaitem/views_manage.py
.. enthaelt den View fuer die Management-Ansicht des Medienpaketes
Django content Management System
Hans Rauch
hans.rauch@gmx.net
Die Programme des dms-Systems koennen frei genutzt und den spezifischen
Beduerfnissen entsprechend angepasst werden.
... | 38.532258 | 95 | 0.577648 |
721813c43ddcb76146e7ed608cacf427665451b5 | 414 | py | Python | crop_yield_prediction/models/deep_gaussian_process/__init__.py | facebookresearch/Context-Aware-Representation-Crop-Yield-Prediction | 9c29459e9521303f40d9d6aaa938da0c23ab4ad8 | [
"MIT"
] | 12 | 2020-09-17T21:55:18.000Z | 2022-01-14T21:05:23.000Z | crop_yield_prediction/models/deep_gaussian_process/__init__.py | hulaba/Context-Aware-Representation-Crop-Yield-Prediction | 9c29459e9521303f40d9d6aaa938da0c23ab4ad8 | [
"MIT"
] | null | null | null | crop_yield_prediction/models/deep_gaussian_process/__init__.py | hulaba/Context-Aware-Representation-Crop-Yield-Prediction | 9c29459e9521303f40d9d6aaa938da0c23ab4ad8 | [
"MIT"
] | 5 | 2020-10-10T10:18:14.000Z | 2021-12-21T07:36:27.000Z | #!/usr/bin/env python3
# Copyright (c) Facebook, Inc. and its affiliates.
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.
from .feature_engineering import get_features_for_deep_gaussian
from .convnet import ConvModel
from .rnn import RNNModel... | 29.571429 | 65 | 0.748792 |
7218bf5a5c0b747c4d1438e666c01d7117d13c58 | 3,546 | py | Python | projector_server/projects/views.py | changyang-liu/Projector | 4924400f54e0ce823fd488f9cfd0f7e52d2df55f | [
"MIT"
] | null | null | null | projector_server/projects/views.py | changyang-liu/Projector | 4924400f54e0ce823fd488f9cfd0f7e52d2df55f | [
"MIT"
] | 2 | 2021-06-10T19:12:07.000Z | 2021-09-22T19:00:50.000Z | projector_server/projects/views.py | CS97-Projector/Projector | 4924400f54e0ce823fd488f9cfd0f7e52d2df55f | [
"MIT"
] | null | null | null | from django.http import HttpResponse, JsonResponse, Http404
from django.core.exceptions import PermissionDenied
from rest_framework.parsers import JSONParser, FormParser, MultiPartParser
from rest_framework.permissions import IsAuthenticatedOrReadOnly
from rest_framework import generics
from rest_framework.response im... | 38.129032 | 86 | 0.683305 |
721a5ce052e7d21ea063652b0a161c21042f7f06 | 1,089 | py | Python | tests/test_muduapiclient.py | hanqingliu/mudu-api-python-client | 92541df27a518dad5312b39749dfbb8bd471a6b8 | [
"Apache-2.0"
] | null | null | null | tests/test_muduapiclient.py | hanqingliu/mudu-api-python-client | 92541df27a518dad5312b39749dfbb8bd471a6b8 | [
"Apache-2.0"
] | null | null | null | tests/test_muduapiclient.py | hanqingliu/mudu-api-python-client | 92541df27a518dad5312b39749dfbb8bd471a6b8 | [
"Apache-2.0"
] | null | null | null | import ddt
import mock
from unittest import TestCase
from muduapiclient.client import MuduApiClient, gen_signed_params
import time
| 33 | 91 | 0.662994 |
721b25bd54ec37339248810e92f0fd66777d24b1 | 586 | py | Python | Projectreview/Projectreview/urls.py | bestgunman/Gitwaxingproduct | 44c5fdd57aaa87765929e12a828d1cd17cfbbc0d | [
"MIT"
] | 1 | 2017-01-30T07:02:51.000Z | 2017-01-30T07:02:51.000Z | Projectreview/Projectreview/urls.py | bestgunman/Gitwaxingproduct | 44c5fdd57aaa87765929e12a828d1cd17cfbbc0d | [
"MIT"
] | null | null | null | Projectreview/Projectreview/urls.py | bestgunman/Gitwaxingproduct | 44c5fdd57aaa87765929e12a828d1cd17cfbbc0d | [
"MIT"
] | null | null | null | from django.conf.urls import url, include
from django.contrib import admin
from django.conf import settings
from django.conf.urls.static import static
from productapp.views import product_list
from reviewapp.views import index
urlpatterns = [
url(r'^$', index, name='index'),
url(r'^admin/', admin.site.urls),
... | 30.842105 | 61 | 0.711604 |
721e9bba1e7ea66054b20c27b7571b65855aeaa1 | 5,970 | py | Python | ttt.py | YukkuriC/PyTicTacToe | c38b330faeb956d82b401e5863c4982f725e5dab | [
"MIT"
] | null | null | null | ttt.py | YukkuriC/PyTicTacToe | c38b330faeb956d82b401e5863c4982f725e5dab | [
"MIT"
] | null | null | null | ttt.py | YukkuriC/PyTicTacToe | c38b330faeb956d82b401e5863c4982f725e5dab | [
"MIT"
] | null | null | null | __doc__ = '''
'''
from threading import Thread
from time import process_time
if 'enums':
OK = 0 #
ENDGAME = 1 #
DRAW = 2 #
INVALID = -1 # /
CONFILCT = -2 #
ERROR = -3 #
TIMEOUT = -4 #
def match(self):
"""
:
"""
self.board = Bo... | 25.512821 | 78 | 0.469514 |
721ec82c86e8517afd6fcd583254496b9ad3500f | 400 | py | Python | cursoemvideo/ex008.py | rafaelsantosmg/cev_python3 | 2fa2561b46409bebbd6a2020c60aa8f946fe6244 | [
"MIT"
] | 1 | 2021-03-22T03:08:41.000Z | 2021-03-22T03:08:41.000Z | cursoemvideo/ex008.py | rafaelsantosmg/cev_python3 | 2fa2561b46409bebbd6a2020c60aa8f946fe6244 | [
"MIT"
] | null | null | null | cursoemvideo/ex008.py | rafaelsantosmg/cev_python3 | 2fa2561b46409bebbd6a2020c60aa8f946fe6244 | [
"MIT"
] | null | null | null | """Escreva um programa que leia o valor em metros e o exiba convertido em centmetros e milmetros"""
from utilidadescev.dado import leia_real
n = leia_real('Digite a metragem: ')
km = n / 1000
hec = n / 100
dam = n / 10
dec = n * 10
cent = n * 100
mil = n * 1000
print(f'{km:.3f}km')
print(f'{hec:.2f}hm')
print(f'{dam:... | 22.222222 | 101 | 0.6525 |
72207e110b7ba0434449b56ad831fee21813b6dc | 1,015 | py | Python | Minor Project/Weather GUI/pyowm_helper.py | ComputerScientist-01/Technocolabs-Internship-Project | 3675cc6b9a40a885a29b105ec9b29945a1e4620c | [
"MIT"
] | 4 | 2020-07-08T11:32:29.000Z | 2021-08-05T02:54:02.000Z | Minor Project/Weather GUI/pyowm_helper.py | ComputerScientist-01/Technocolabs-Internship-Project | 3675cc6b9a40a885a29b105ec9b29945a1e4620c | [
"MIT"
] | null | null | null | Minor Project/Weather GUI/pyowm_helper.py | ComputerScientist-01/Technocolabs-Internship-Project | 3675cc6b9a40a885a29b105ec9b29945a1e4620c | [
"MIT"
] | null | null | null | import os
import pyowm
from datetime import datetime
from timezone_conversion import gmt_to_eastern
#API_KEY = os.environ['API_KEY']
owm=pyowm.OWM('0833f103dc7c2924da06db624f74565c')
mgr=owm.weather_manager()
if __name__ == '__main__':
get_temperature()
| 28.194444 | 63 | 0.639409 |
7221d6876591c7703ef947738f8354cdcf1efa5d | 82,647 | py | Python | MCDR.py | Qltan/MCDR | ad8abfafcbe19dd50f31fc4122faf3eb633be9d5 | [
"MIT"
] | null | null | null | MCDR.py | Qltan/MCDR | ad8abfafcbe19dd50f31fc4122faf3eb633be9d5 | [
"MIT"
] | null | null | null | MCDR.py | Qltan/MCDR | ad8abfafcbe19dd50f31fc4122faf3eb633be9d5 | [
"MIT"
] | null | null | null | import copy
import datetime
import json
import math
import multiprocessing
import numpy as np
import os
import pandas as pd
import pydotplus
import random
import re
import time
from math import *
from sklearn import metrics
_CLUSTER_DATA = './bike_sharing_data/mydata'
RATEDATA = './bike_sharing_data/my... | 42.77795 | 121 | 0.527799 |
7222707469c1717bc369a16b35dc8703f4ba96c7 | 4,692 | py | Python | SUAVE/SUAVE-2.5.0/trunk/SUAVE/Components/Energy/Storages/Batteries/Constant_Mass/Lithium_Ion_LiFePO4_18650.py | Vinicius-Tanigawa/Undergraduate-Research-Project | e92372f07882484b127d7affe305eeec2238b8a9 | [
"MIT"
] | null | null | null | SUAVE/SUAVE-2.5.0/trunk/SUAVE/Components/Energy/Storages/Batteries/Constant_Mass/Lithium_Ion_LiFePO4_18650.py | Vinicius-Tanigawa/Undergraduate-Research-Project | e92372f07882484b127d7affe305eeec2238b8a9 | [
"MIT"
] | null | null | null | SUAVE/SUAVE-2.5.0/trunk/SUAVE/Components/Energy/Storages/Batteries/Constant_Mass/Lithium_Ion_LiFePO4_18650.py | Vinicius-Tanigawa/Undergraduate-Research-Project | e92372f07882484b127d7affe305eeec2238b8a9 | [
"MIT"
] | null | null | null | ## @ingroup Components-Energy-Storages-Batteries-Constant_Mass
# Lithium_Ion_LiFePO4_18650.py
#
# Created: Feb 2020, M. Clarke
# Modified: Sep 2021, R. Erhard
# ----------------------------------------------------------------------
# Imports
# ----------------------------------------------------------------------
... | 53.931034 | 136 | 0.449915 |
7222d418de71e1a6408735de5ac964a29e9e3865 | 83,182 | py | Python | motor/__init__.py | globocom/motor | a1c91ab7b223bb1ada742605e2e8d11a39fe5f1e | [
"Apache-2.0"
] | null | null | null | motor/__init__.py | globocom/motor | a1c91ab7b223bb1ada742605e2e8d11a39fe5f1e | [
"Apache-2.0"
] | null | null | null | motor/__init__.py | globocom/motor | a1c91ab7b223bb1ada742605e2e8d11a39fe5f1e | [
"Apache-2.0"
] | null | null | null | # Copyright 2011-2012 10gen, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing,... | 36.936945 | 118 | 0.608112 |
72230a4712ff2722d5fd895c22c3d235aabfdf44 | 3,544 | py | Python | del_dupli_in_fasta.py | ba1/BioParsing | 8a0257d4765a7bc86fef7688762abbeaaf3cef07 | [
"MIT"
] | 1 | 2017-06-19T15:15:26.000Z | 2017-06-19T15:15:26.000Z | del_dupli_in_fasta.py | ba1/BioParsing | 8a0257d4765a7bc86fef7688762abbeaaf3cef07 | [
"MIT"
] | null | null | null | del_dupli_in_fasta.py | ba1/BioParsing | 8a0257d4765a7bc86fef7688762abbeaaf3cef07 | [
"MIT"
] | null | null | null | '''
Created on Oct 20, 2015
@author: bardya
'''
import os
import argparse
from Bio import SeqIO
if __name__ == '__main__':
args = parse_args()
try:
inputfile = open(args.infilepath.name, 'r')
outputfile = open(args.outfilepath.name, 'w')
# if not os.path.basename(args.outfilepa... | 35.79798 | 165 | 0.615406 |
7224268eb003eeb3fc96967b78416eccf0509110 | 491 | py | Python | lclpy/aidfunc/logging.py | nobody1570/lspy | 1cf6efbafbbf8ddb54ba7a875e82c562f010edd1 | [
"MIT"
] | 3 | 2021-11-27T22:11:38.000Z | 2022-02-10T11:42:06.000Z | lclpy/aidfunc/logging.py | nobody1570/lspy | 1cf6efbafbbf8ddb54ba7a875e82c562f010edd1 | [
"MIT"
] | null | null | null | lclpy/aidfunc/logging.py | nobody1570/lspy | 1cf6efbafbbf8ddb54ba7a875e82c562f010edd1 | [
"MIT"
] | null | null | null |
def log_improvement(value):
"""function to log improvements to the command line.
Parameters
----------
value : int or float
The value for the improvement
"""
print("Improvement : " + str(value))
def log_passed_worse(value):
"""function to log the passing of worse solutions... | 18.185185 | 74 | 0.592668 |
72244921b06692f1b6e6b261aabc73be9e8ccb0e | 897 | py | Python | tests/test_as_class_methods.py | pokidovea/immobilus | 42f115a13b4aa060b7ed186e81fe56e1a07c4b2d | [
"Apache-2.0"
] | 13 | 2016-11-26T16:13:11.000Z | 2021-12-21T11:10:50.000Z | tests/test_as_class_methods.py | pokidovea/immobilus | 42f115a13b4aa060b7ed186e81fe56e1a07c4b2d | [
"Apache-2.0"
] | 20 | 2017-03-06T00:50:22.000Z | 2019-08-26T20:12:39.000Z | tests/test_as_class_methods.py | pokidovea/immobilus | 42f115a13b4aa060b7ed186e81fe56e1a07c4b2d | [
"Apache-2.0"
] | 6 | 2017-08-28T07:23:54.000Z | 2021-12-03T13:03:50.000Z | # https://github.com/pokidovea/immobilus/issues/30
from immobilus import immobilus # noqa
from immobilus.logic import fake_time, fake_localtime, fake_gmtime, fake_strftime, fake_mktime
from datetime import datetime
| 18.6875 | 94 | 0.723523 |
722517ddb7cf57ba0cdaeeaa839501f03c9155b4 | 322 | py | Python | plotter/plotter.py | kalinkinisaac/modular | 301d26ad222a5ef3278aaf251908e0a8537bb58f | [
"MIT"
] | null | null | null | plotter/plotter.py | kalinkinisaac/modular | 301d26ad222a5ef3278aaf251908e0a8537bb58f | [
"MIT"
] | null | null | null | plotter/plotter.py | kalinkinisaac/modular | 301d26ad222a5ef3278aaf251908e0a8537bb58f | [
"MIT"
] | null | null | null | import abc
| 23 | 67 | 0.63354 |
72279efb6ba56531335b2f093691a4196e8f4923 | 2,531 | py | Python | ardupilot/Tools/autotest/param_metadata/wikiemit.py | quadrotor-IITKgp/emulate_GPS | 3c888d5b27b81fb17e74d995370f64bdb110fb65 | [
"MIT"
] | 1 | 2021-07-17T11:37:16.000Z | 2021-07-17T11:37:16.000Z | ardupilot/Tools/autotest/param_metadata/wikiemit.py | arl-kgp/emulate_GPS | 3c888d5b27b81fb17e74d995370f64bdb110fb65 | [
"MIT"
] | null | null | null | ardupilot/Tools/autotest/param_metadata/wikiemit.py | arl-kgp/emulate_GPS | 3c888d5b27b81fb17e74d995370f64bdb110fb65 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
import re
from param import *
from emit import Emit
# Emit docs in a form acceptable to the APM wiki site
| 34.671233 | 121 | 0.468589 |
722ad974ef9283199399d93bbd17a334c7d31249 | 1,038 | py | Python | master.py | iAzurel/thepicturesorter | 21a3aee26adcfca0838db63be1434f7c49cd9548 | [
"MIT"
] | null | null | null | master.py | iAzurel/thepicturesorter | 21a3aee26adcfca0838db63be1434f7c49cd9548 | [
"MIT"
] | null | null | null | master.py | iAzurel/thepicturesorter | 21a3aee26adcfca0838db63be1434f7c49cd9548 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
from PIL import Image
import os, os.path
import cv2
import sys
# Detect faces, then returns number of faces.
# Moves pictures based on detection of faces.
if __name__ == "__main__":
main() | 23.590909 | 76 | 0.716763 |
722c1e45a1768734b80ecc9c4958f9182d017de1 | 1,241 | py | Python | src/si/supervised/Ensemble.py | pg42862/Sistemas_Inteligentes_para_a_MBIONF | 5dd5b487da5b3c6a0989274598c911cc639138a3 | [
"Apache-2.0"
] | null | null | null | src/si/supervised/Ensemble.py | pg42862/Sistemas_Inteligentes_para_a_MBIONF | 5dd5b487da5b3c6a0989274598c911cc639138a3 | [
"Apache-2.0"
] | null | null | null | src/si/supervised/Ensemble.py | pg42862/Sistemas_Inteligentes_para_a_MBIONF | 5dd5b487da5b3c6a0989274598c911cc639138a3 | [
"Apache-2.0"
] | 1 | 2021-11-15T16:15:50.000Z | 2021-11-15T16:15:50.000Z | from.Model import Model
import numpy as np
| 32.657895 | 140 | 0.65834 |
722cd36e985871c8a2f5b1f558365071a7104a73 | 11,915 | py | Python | pygto900.py | marissakotze/timDIMM | dde00a3bb6ca7c3d9b71e24f9363350a0e2a323f | [
"BSD-3-Clause"
] | 1 | 2021-06-06T15:26:36.000Z | 2021-06-06T15:26:36.000Z | pygto900.py | marissakotze/timDIMM | dde00a3bb6ca7c3d9b71e24f9363350a0e2a323f | [
"BSD-3-Clause"
] | null | null | null | pygto900.py | marissakotze/timDIMM | dde00a3bb6ca7c3d9b71e24f9363350a0e2a323f | [
"BSD-3-Clause"
] | 3 | 2015-07-29T15:16:35.000Z | 2017-12-01T13:02:36.000Z | #!/usr/bin/env python
"""pygto900 contains commands to interface with a astro-physics gto900 mount
"""
import serial
import io
import sys
import string
import math
import time
from binutils import *
from datetime import datetime
from astropy.coordinates import Angle
def status(g):
"""Chck the values for the t... | 24.56701 | 130 | 0.544943 |
7230fd2e2774f3460096d023d321613a2a314e63 | 2,850 | py | Python | webscripts/plotlygraphs.py | KathrynDH/DataDashboard | 1bf61497480f778a1c7cc9ce9fc7fb48b3067606 | [
"MIT"
] | null | null | null | webscripts/plotlygraphs.py | KathrynDH/DataDashboard | 1bf61497480f778a1c7cc9ce9fc7fb48b3067606 | [
"MIT"
] | null | null | null | webscripts/plotlygraphs.py | KathrynDH/DataDashboard | 1bf61497480f778a1c7cc9ce9fc7fb48b3067606 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""
Created on Wed Jun 23 15:56:55 2021
@author: Kathryn Haske
Create plotly graphs for webpage
"""
import pandas as pd
import plotly.graph_objs as go
def line_graph(x_list, df, name_col, y_cols, chart_title, x_label, y_label):
"""
Function to create plotly line graph
Args:
... | 27.403846 | 76 | 0.567018 |
72314feeba462045a5c4c66db5b70dc7ce89e3a1 | 2,505 | py | Python | jsl/experimental/seql/agents/bfgs_agent.py | AdrienCorenflos/JSL | 8a3ba27179a2bd90207214fccb81df884b05c3d0 | [
"MIT"
] | null | null | null | jsl/experimental/seql/agents/bfgs_agent.py | AdrienCorenflos/JSL | 8a3ba27179a2bd90207214fccb81df884b05c3d0 | [
"MIT"
] | null | null | null | jsl/experimental/seql/agents/bfgs_agent.py | AdrienCorenflos/JSL | 8a3ba27179a2bd90207214fccb81df884b05c3d0 | [
"MIT"
] | null | null | null | import jax.numpy as jnp
from jax import vmap
from jax.scipy.optimize import minimize
import chex
import typing_extensions
from typing import Any, NamedTuple
import warnings
from jsl.experimental.seql.agents.agent_utils import Memory
from jsl.experimental.seql.agents.base import Agent
from jsl.experimental.seql.util... | 26.09375 | 68 | 0.578842 |
72320fd783db7905693b184e50b586992cf4d02b | 2,379 | py | Python | abusech/urlhaus.py | threatlead/abusech | 6c62f51f773cb17ac6943d87fb697ce1e9dae049 | [
"MIT"
] | null | null | null | abusech/urlhaus.py | threatlead/abusech | 6c62f51f773cb17ac6943d87fb697ce1e9dae049 | [
"MIT"
] | null | null | null | abusech/urlhaus.py | threatlead/abusech | 6c62f51f773cb17ac6943d87fb697ce1e9dae049 | [
"MIT"
] | null | null | null | from .abusech import AbuseCh
from collections import namedtuple
from datetime import datetime
| 43.254545 | 121 | 0.584279 |
7232736c521560e15f88e41ebeb5b1e597203059 | 114 | py | Python | ufmt/tests/__init__.py | pmeier/ufmt | 29385731d3399d065968921b7502d321acf6faef | [
"MIT"
] | null | null | null | ufmt/tests/__init__.py | pmeier/ufmt | 29385731d3399d065968921b7502d321acf6faef | [
"MIT"
] | null | null | null | ufmt/tests/__init__.py | pmeier/ufmt | 29385731d3399d065968921b7502d321acf6faef | [
"MIT"
] | null | null | null | # Copyright 2021 John Reese
# Licensed under the MIT license
from .cli import CliTest
from .core import CoreTest
| 19 | 32 | 0.789474 |
7233257f2eb3efc2be88861adf3e83bb76f78498 | 442 | py | Python | tests/components/eafm/conftest.py | erogleva/core | 994ae09f69afe772150a698953c0d7386a745de2 | [
"Apache-2.0"
] | 2 | 2021-05-19T19:05:08.000Z | 2021-06-06T06:51:05.000Z | tests/components/eafm/conftest.py | erogleva/core | 994ae09f69afe772150a698953c0d7386a745de2 | [
"Apache-2.0"
] | 56 | 2020-08-03T07:30:54.000Z | 2022-03-31T06:02:04.000Z | tests/components/eafm/conftest.py | erogleva/core | 994ae09f69afe772150a698953c0d7386a745de2 | [
"Apache-2.0"
] | 2 | 2020-12-25T16:31:22.000Z | 2020-12-30T20:53:56.000Z | """eafm fixtures."""
import pytest
from tests.async_mock import patch
| 22.1 | 84 | 0.719457 |
7233678cd98a3bf61296f7c1aa2006b01024a6ac | 5,894 | py | Python | thorbanks/checks.py | Jyrno42/django-thorbanks | a8e2daf20b981aecb0c8ee76b0474b6c8e2baad1 | [
"BSD-3-Clause"
] | 6 | 2015-06-15T12:47:05.000Z | 2019-04-24T01:32:12.000Z | thorbanks/checks.py | Jyrno42/django-thorbanks | a8e2daf20b981aecb0c8ee76b0474b6c8e2baad1 | [
"BSD-3-Clause"
] | 13 | 2015-12-23T14:29:26.000Z | 2021-02-18T18:35:56.000Z | thorbanks/checks.py | Jyrno42/django-thorbanks | a8e2daf20b981aecb0c8ee76b0474b6c8e2baad1 | [
"BSD-3-Clause"
] | 3 | 2016-08-08T10:35:39.000Z | 2020-12-29T23:10:55.000Z | import os
from django.conf import settings
from django.core.checks import Error, register
from thorbanks.settings import configure, parse_banklinks
| 35.293413 | 119 | 0.449779 |
72349a7b999fcd7724c457b5d3ee54f95ec82969 | 36,028 | py | Python | otk/trains.py | draustin/otk | c6e91423ec79b85b380ee9385f6d27c91f92503d | [
"MIT"
] | 7 | 2020-05-17T14:26:42.000Z | 2022-02-14T04:52:54.000Z | otk/trains.py | uamhforever/otk | c6e91423ec79b85b380ee9385f6d27c91f92503d | [
"MIT"
] | 17 | 2020-04-10T22:50:00.000Z | 2020-06-18T04:54:19.000Z | otk/trains.py | uamhforever/otk | c6e91423ec79b85b380ee9385f6d27c91f92503d | [
"MIT"
] | 1 | 2022-02-14T04:52:45.000Z | 2022-02-14T04:52:45.000Z | """Defining and analysing axisymmetric optical systems."""
import itertools
from functools import singledispatch
from dataclasses import dataclass
from abc import ABC, abstractmethod
from typing import Sequence, Tuple, Mapping
import numpy as np
import scipy.optimize
from . import abcd, paraxial, functions, ri
from .fu... | 39.634763 | 199 | 0.601865 |
723547959ebc4a91f17440d870c4a23f152e86d1 | 4,705 | py | Python | rm_protection/rm_p.py | https-waldoww90-wadewilson-com/rm-protection | 4dcc678fa687373fb4439c5c4409f7649e653084 | [
"MIT"
] | 490 | 2017-02-03T14:15:50.000Z | 2022-03-31T02:57:20.000Z | rm_protection/rm_p.py | https-waldoww90-wadewilson-com/rm-protection | 4dcc678fa687373fb4439c5c4409f7649e653084 | [
"MIT"
] | 8 | 2017-02-03T16:13:53.000Z | 2017-05-28T05:20:45.000Z | rm_protection/rm_p.py | alanzchen/rm-protection | 4dcc678fa687373fb4439c5c4409f7649e653084 | [
"MIT"
] | 41 | 2017-02-04T15:13:26.000Z | 2021-12-19T08:58:38.000Z | from sys import argv, exit
from os.path import expanduser as expu, expandvars as expv
from os.path import basename, dirname, abspath, isdir, exists
from subprocess import Popen, PIPE
from builtins import input
from rm_protection.config import Config
c = Config()
evaledpaths = []
if __name__ == "__main__":
... | 30.953947 | 120 | 0.530287 |
72381b6de058125b33932e8f4cd988e19b104ff7 | 6,856 | py | Python | src/text_normalizer/tokenization/_tokenize.py | arkataev/text_normalizer | a99326e31012157980d014c9730ac94bd1d18c1d | [
"MIT"
] | null | null | null | src/text_normalizer/tokenization/_tokenize.py | arkataev/text_normalizer | a99326e31012157980d014c9730ac94bd1d18c1d | [
"MIT"
] | null | null | null | src/text_normalizer/tokenization/_tokenize.py | arkataev/text_normalizer | a99326e31012157980d014c9730ac94bd1d18c1d | [
"MIT"
] | null | null | null | """ """
import logging
import re
import string
from enum import IntEnum
from functools import lru_cache
from typing import Tuple, Iterator
from nltk.corpus import stopwords
from nltk.tokenize import ToktokTokenizer
from nltk.tokenize.api import TokenizerI
from ..config import RegexConfigType, PipelineConfigType,... | 27.534137 | 107 | 0.641774 |
723871eadc62b9694db68243f51e537122c22e01 | 299 | py | Python | tests/data/test_to_array.py | maki-nage/rxsci | 64c9956752cbdd4c65aa9f054b6b28318a056625 | [
"MIT"
] | 3 | 2021-05-03T13:40:46.000Z | 2022-03-06T07:59:30.000Z | tests/data/test_to_array.py | maki-nage/rxsci | 64c9956752cbdd4c65aa9f054b6b28318a056625 | [
"MIT"
] | 9 | 2020-10-22T21:08:10.000Z | 2021-08-05T09:01:26.000Z | tests/data/test_to_array.py | maki-nage/rxsci | 64c9956752cbdd4c65aa9f054b6b28318a056625 | [
"MIT"
] | 2 | 2021-01-05T16:48:54.000Z | 2021-08-07T12:51:01.000Z | from array import array
import rx
import rxsci as rs
| 17.588235 | 54 | 0.595318 |
7239365caa1436583482800c75a7cb1d2a4fbe35 | 18,942 | py | Python | pi/los.py | Coding-Badly/Little-Oven | 3d1178f495aea1180e25bddbb4f139d8e37e6a65 | [
"Apache-2.0"
] | null | null | null | pi/los.py | Coding-Badly/Little-Oven | 3d1178f495aea1180e25bddbb4f139d8e37e6a65 | [
"Apache-2.0"
] | null | null | null | pi/los.py | Coding-Badly/Little-Oven | 3d1178f495aea1180e25bddbb4f139d8e37e6a65 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python3
"""=============================================================================
los for Little-Oven. los (Little Oven Setup) prepares a Raspberry Pi for
Little-Oven development. This module does the actual work. los (no
extension) is a bash script that creates a service that runs this... | 50.244032 | 184 | 0.658853 |
72395e4c87b9f1d8044b25a00bbab7ea6fe4633a | 337 | py | Python | tests/graphql/readme_forum/readme_forum_permissions/models.py | karlosss/simple_api | 03f87035c648f161d5e7a59b24f4e04bd34399f1 | [
"MIT"
] | 2 | 2020-11-13T14:00:06.000Z | 2020-12-19T11:50:22.000Z | tests/graphql/readme_forum/readme_forum_permissions/models.py | ladal1/simple_api | 1b5d560476bccad9f68a7331d092dbdb68c48bf7 | [
"MIT"
] | 5 | 2021-02-04T14:27:43.000Z | 2021-06-04T23:22:24.000Z | tests/graphql/readme_forum/readme_forum_permissions/models.py | ladal1/simple_api | 1b5d560476bccad9f68a7331d092dbdb68c48bf7 | [
"MIT"
] | 1 | 2021-01-06T13:54:38.000Z | 2021-01-06T13:54:38.000Z | from django.contrib.auth.models import User
from django.db.models import Model, CharField, TextField, ForeignKey, CASCADE
| 28.083333 | 77 | 0.712166 |
723b9095a8d15e2c9c1b3f5d5be4c81a6f6e858e | 2,304 | py | Python | streamlit_app.py | fhebal/nlp-medical-notes | f1fed9e34ba47da14220b5719f28c1e720302f45 | [
"MIT"
] | null | null | null | streamlit_app.py | fhebal/nlp-medical-notes | f1fed9e34ba47da14220b5719f28c1e720302f45 | [
"MIT"
] | null | null | null | streamlit_app.py | fhebal/nlp-medical-notes | f1fed9e34ba47da14220b5719f28c1e720302f45 | [
"MIT"
] | null | null | null | import streamlit as st
import yaml
from load_css import local_css
import tensorflow as tf
import tensorflow_hub as hub
import tensorflow_text as text
import numpy as np
from random import sample
import os
local_css("style.css")
prediction_key = {
0:'Gastroenterology',
1:'Neurology',
2:'Orthope... | 29.538462 | 126 | 0.647569 |
723d7e8a6d6158d63e1b5536dbcf3fd946d29dec | 2,440 | py | Python | tests/test_functions.py | aerial-defence/pytak | e20c2dedfee88489bf21ad931970c2cb982d72ed | [
"Apache-2.0"
] | null | null | null | tests/test_functions.py | aerial-defence/pytak | e20c2dedfee88489bf21ad931970c2cb982d72ed | [
"Apache-2.0"
] | null | null | null | tests/test_functions.py | aerial-defence/pytak | e20c2dedfee88489bf21ad931970c2cb982d72ed | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""Python Team Awareness Kit (PyTAK) Module Tests."""
import asyncio
import urllib
import pytest
import pytak
__author__ = 'Greg Albrecht W2GMD <oss@undef.net>'
__copyright__ = 'Copyright 2022 Greg Albrecht'
__license__ = 'Apache License, Version 2.0'
| 29.047619 | 73 | 0.702049 |
723d802339794483e5614abac1a27413e8db4aa8 | 1,054 | py | Python | tests/test_aoc_day_02.py | ladokp/AdventOfCode2021 | 03f8b9f8579ae562d5f2784a131370a32ed19f8b | [
"BSD-2-Clause"
] | null | null | null | tests/test_aoc_day_02.py | ladokp/AdventOfCode2021 | 03f8b9f8579ae562d5f2784a131370a32ed19f8b | [
"BSD-2-Clause"
] | null | null | null | tests/test_aoc_day_02.py | ladokp/AdventOfCode2021 | 03f8b9f8579ae562d5f2784a131370a32ed19f8b | [
"BSD-2-Clause"
] | null | null | null | # test_aoc_day_02.py
import pytest
import solution.aoc_day_02 as aoc
def test_parse_test_solution(test_solution):
"""Test that input is parsed properly"""
assert test_solution.data == [
("forward", 5),
("down", 5),
("forward", 8),
("up", 3),
("down", 8),
("fo... | 22.425532 | 52 | 0.683112 |
723e3c60c657572c4703c5d71bdcbccb656fe914 | 18,265 | py | Python | src/elora/elora.py | morelandjs/elora | e902c40d66b0bf95a8d2374afa0cc165b87c9b82 | [
"MIT"
] | 1 | 2021-07-26T20:36:32.000Z | 2021-07-26T20:36:32.000Z | src/elora/elora.py | morelandjs/elora | e902c40d66b0bf95a8d2374afa0cc165b87c9b82 | [
"MIT"
] | null | null | null | src/elora/elora.py | morelandjs/elora | e902c40d66b0bf95a8d2374afa0cc165b87c9b82 | [
"MIT"
] | null | null | null | from operator import add, sub
import numpy as np
from scipy.stats import norm
| 36.750503 | 80 | 0.594854 |
723f049018f7dbaf5f55c465cf88ce5aa8c8ec4d | 48 | py | Python | atcoder/abc179/a.py | sugitanishi/competitive-programming | 51af65fdce514ece12f8afbf142b809d63eefb5d | [
"MIT"
] | null | null | null | atcoder/abc179/a.py | sugitanishi/competitive-programming | 51af65fdce514ece12f8afbf142b809d63eefb5d | [
"MIT"
] | null | null | null | atcoder/abc179/a.py | sugitanishi/competitive-programming | 51af65fdce514ece12f8afbf142b809d63eefb5d | [
"MIT"
] | null | null | null | s=input()
print(s+'s' if s[-1]!='s' else s+'es') | 24 | 38 | 0.520833 |
723fcadfa719088f86b59d8093c6f9655d115794 | 48,147 | py | Python | steady_cell_phenotype/poly.py | knappa/steadycellphenotype | b033f01ebc1fa062d310296f19f2f11b484cb557 | [
"MIT"
] | 1 | 2021-12-13T22:20:19.000Z | 2021-12-13T22:20:19.000Z | steady_cell_phenotype/poly.py | knappa/steadycellphenotype | b033f01ebc1fa062d310296f19f2f11b484cb557 | [
"MIT"
] | 5 | 2021-04-07T01:47:19.000Z | 2021-11-17T01:46:19.000Z | steady_cell_phenotype/poly.py | knappa/steadycellphenotype | b033f01ebc1fa062d310296f19f2f11b484cb557 | [
"MIT"
] | null | null | null | from __future__ import annotations
import operator
from enum import Enum
from itertools import product
from typing import Dict, Union
import numpy as np
####################################################################################################
def h(x, fx):
"""helper function as in the PLoS article,... | 38.985425 | 117 | 0.577897 |
72404631e2e0ae2fb28f9c18c6b107f7f88a83f4 | 23,165 | py | Python | django_tidb/features.py | killuminatixhr/django-tidb | 8de093dd7242fc70a5b9b5240711bef00722ff03 | [
"Apache-2.0"
] | 17 | 2021-07-30T17:02:53.000Z | 2021-12-10T02:28:59.000Z | django_tidb/features.py | killuminatixhr/django-tidb | 8de093dd7242fc70a5b9b5240711bef00722ff03 | [
"Apache-2.0"
] | 7 | 2021-08-02T09:56:27.000Z | 2022-03-23T03:36:07.000Z | django_tidb/features.py | killuminatixhr/django-tidb | 8de093dd7242fc70a5b9b5240711bef00722ff03 | [
"Apache-2.0"
] | 6 | 2021-07-30T10:04:15.000Z | 2022-03-29T05:44:37.000Z | # Copyright 2021 PingCAP, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writin... | 55.286396 | 118 | 0.699763 |
72404d3d39210b175e825c5b94b9e21a7e2698f1 | 421 | py | Python | src/combine_npy.py | hongli-ma/RNANetMotif | 34b4de443ec7edb59f4e4e06b17686543c438366 | [
"MIT"
] | null | null | null | src/combine_npy.py | hongli-ma/RNANetMotif | 34b4de443ec7edb59f4e4e06b17686543c438366 | [
"MIT"
] | null | null | null | src/combine_npy.py | hongli-ma/RNANetMotif | 34b4de443ec7edb59f4e4e06b17686543c438366 | [
"MIT"
] | null | null | null | import numpy as np
import sys
import glob
rbp=sys.argv[1]
kmer=sys.argv[2]
pfile_list=glob.glob("result_VDM3_"+rbp+"_positive_"+kmer+"_*.npy")
pfile1=np.load(pfile_list[0])
psha=np.shape(pfile1)
pmatrix=np.zeros(psha)
for pfile in pfile_list:
file=np.load(pfile)
# file=np.fromfile(pfile,dtype=np.float32)
p... | 23.388889 | 86 | 0.750594 |
7241a2c99b3dfd4732a6af0ad6cf19b2e1c6a517 | 1,238 | py | Python | fgvcdata/__init__.py | catalys1/fgvc-data-pytorch | e2666d011c71308c4975776fbc41e947424f0723 | [
"MIT"
] | 4 | 2020-07-05T10:19:20.000Z | 2021-09-15T08:22:36.000Z | fgvcdata/__init__.py | catalys1/fgvc-data-pytorch | e2666d011c71308c4975776fbc41e947424f0723 | [
"MIT"
] | 1 | 2020-11-13T22:01:47.000Z | 2020-11-13T22:01:47.000Z | fgvcdata/__init__.py | catalys1/fgvc-data-pytorch | e2666d011c71308c4975776fbc41e947424f0723 | [
"MIT"
] | null | null | null | '''A common interface to FGVC datasets.
Currently supported datasets are
- CUB Birds
- CUB Birds with expert labels
- NA Birds
- Stanford Cars
- Stanford Dogs
- Oxford Flowers
- Oxford FGVC Aircraft
- Tsinghua Dogs
Datasets are constructed and used following the pytorch
data.utils.data.Dataset paradigm, and have the ... | 29.47619 | 79 | 0.747981 |
72422e4892bc1b2767ffe8812f2e9e5e44e84b64 | 10,491 | py | Python | app/auth/api.py | Anti-Counter021/Anti-YouTube-back-end | eca9b26b4a1feb7e516c0164e86c5d6444af8db5 | [
"MIT"
] | null | null | null | app/auth/api.py | Anti-Counter021/Anti-YouTube-back-end | eca9b26b4a1feb7e516c0164e86c5d6444af8db5 | [
"MIT"
] | null | null | null | app/auth/api.py | Anti-Counter021/Anti-YouTube-back-end | eca9b26b4a1feb7e516c0164e86c5d6444af8db5 | [
"MIT"
] | null | null | null | from typing import List
from celery.result import AsyncResult
from fastapi import APIRouter, status, Depends, Form, UploadFile, File, Request, WebSocket
from fastapi.responses import RedirectResponse
from app.auth import service
from app.auth.models import User
from app.auth.permission import is_active
from app.auth.... | 29.304469 | 96 | 0.691354 |
7242536c3707c16822eadee50c71c7b05cdd3796 | 7,768 | py | Python | concourse/steps/scan_container_images.py | jia-jerry/cc-utils | 01322d2acb7343c92138dcf0b6ac913b276525bc | [
"Apache-2.0"
] | null | null | null | concourse/steps/scan_container_images.py | jia-jerry/cc-utils | 01322d2acb7343c92138dcf0b6ac913b276525bc | [
"Apache-2.0"
] | null | null | null | concourse/steps/scan_container_images.py | jia-jerry/cc-utils | 01322d2acb7343c92138dcf0b6ac913b276525bc | [
"Apache-2.0"
] | null | null | null | # Copyright (c) 2019 SAP SE or an SAP affiliate company. All rights reserved. This file is licensed
# under the Apache Software License, v. 2 except as noted otherwise in the LICENSE file
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the Licens... | 36.299065 | 99 | 0.660788 |
72430bcb51d12558e07e88c7e1a6d221c05d6f85 | 647 | py | Python | py/cv/video.py | YodaEmbedding/experiments | 567c6a1c18fac2d951fe2af54aaa4917b7d529d2 | [
"MIT"
] | null | null | null | py/cv/video.py | YodaEmbedding/experiments | 567c6a1c18fac2d951fe2af54aaa4917b7d529d2 | [
"MIT"
] | null | null | null | py/cv/video.py | YodaEmbedding/experiments | 567c6a1c18fac2d951fe2af54aaa4917b7d529d2 | [
"MIT"
] | null | null | null | import cv2
import numpy as np
height = 500
width = 700
gray = np.zeros((height, width), dtype=np.uint8)
# fourcc = cv2.VideoWriter_fourcc(*"MJPG")
# filename = "output.avi"
fourcc = cv2.VideoWriter_fourcc(*"MP4V")
filename = "output.mp4"
writer = cv2.VideoWriter(
filename, fourcc, fps=30, frameSize=(width, height... | 24.884615 | 70 | 0.689335 |
72450375a565716f2e2d7e0a06b152a00332048e | 1,062 | py | Python | po/loginpage.py | imzengyang/datadrivertestexample | a37520c2f5f0ae6dfbcaaa371586ba7e98540537 | [
"MIT"
] | 1 | 2018-06-03T05:31:46.000Z | 2018-06-03T05:31:46.000Z | po/loginpage.py | imzengyang/datadrivertestexample | a37520c2f5f0ae6dfbcaaa371586ba7e98540537 | [
"MIT"
] | null | null | null | po/loginpage.py | imzengyang/datadrivertestexample | a37520c2f5f0ae6dfbcaaa371586ba7e98540537 | [
"MIT"
] | null | null | null |
from po.base import BasePage
from po.base import InvalidPageException | 33.1875 | 100 | 0.733522 |
724561c601c848d5d6d0e629507abb99ee03ff0a | 1,329 | py | Python | app.py | jesseokeya/linkedin-scraper | 6b9d5af5167c8c936db63a855a9885728efbfeb5 | [
"MIT"
] | null | null | null | app.py | jesseokeya/linkedin-scraper | 6b9d5af5167c8c936db63a855a9885728efbfeb5 | [
"MIT"
] | 1 | 2020-01-04T19:33:58.000Z | 2021-09-07T15:03:03.000Z | app.py | jesseokeya/linkedin-scraper | 6b9d5af5167c8c936db63a855a9885728efbfeb5 | [
"MIT"
] | 1 | 2021-12-02T06:51:46.000Z | 2021-12-02T06:51:46.000Z | from lib import Scrape
from typing import List
from os import environ
main()
| 27.122449 | 74 | 0.678706 |
724593364a3fe88c699961a3b8ddb8f17f617e15 | 100 | py | Python | Loops/for_in.py | 1302580MK/Udemy_Python | c7aef0645ae15a954c2356ba96288deaa087fb32 | [
"MIT"
] | null | null | null | Loops/for_in.py | 1302580MK/Udemy_Python | c7aef0645ae15a954c2356ba96288deaa087fb32 | [
"MIT"
] | null | null | null | Loops/for_in.py | 1302580MK/Udemy_Python | c7aef0645ae15a954c2356ba96288deaa087fb32 | [
"MIT"
] | null | null | null | var1 = "hello world"
# left what you get from the right
for character in var1:
print(character) | 20 | 34 | 0.72 |
7247650bb946b4cd8155dc4709b0e70976c42ea4 | 546 | py | Python | forum/migrations/0003_auto_20190307_1825.py | AdityaJ42/DJ-Comps-Book-Exchange | 12bba45f016e1b708477c642c2595b7f15e3dcfc | [
"MIT"
] | null | null | null | forum/migrations/0003_auto_20190307_1825.py | AdityaJ42/DJ-Comps-Book-Exchange | 12bba45f016e1b708477c642c2595b7f15e3dcfc | [
"MIT"
] | null | null | null | forum/migrations/0003_auto_20190307_1825.py | AdityaJ42/DJ-Comps-Book-Exchange | 12bba45f016e1b708477c642c2595b7f15e3dcfc | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# Generated by Django 1.11.8 on 2019-03-07 12:55
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
| 24.818182 | 125 | 0.64652 |
724a427f96e1eeeba039df150a14e4acaeb34725 | 495 | py | Python | datahub/event/migrations/0018_move_to_metadata_trade_agreement.py | Staberinde/data-hub-api | 3d0467dbceaf62a47158eea412a3dba827073300 | [
"MIT"
] | 6 | 2019-12-02T16:11:24.000Z | 2022-03-18T10:02:02.000Z | datahub/event/migrations/0018_move_to_metadata_trade_agreement.py | Staberinde/data-hub-api | 3d0467dbceaf62a47158eea412a3dba827073300 | [
"MIT"
] | 1,696 | 2019-10-31T14:08:37.000Z | 2022-03-29T12:35:57.000Z | datahub/event/migrations/0018_move_to_metadata_trade_agreement.py | Staberinde/data-hub-api | 3d0467dbceaf62a47158eea412a3dba827073300 | [
"MIT"
] | 9 | 2019-11-22T12:42:03.000Z | 2021-09-03T14:25:05.000Z | # Generated by Django 3.1.7 on 2021-04-08 11:12
from django.db import migrations, models
| 24.75 | 83 | 0.638384 |
724a51915fb64beb06bbeb6fa5488524f3f99f3f | 16,905 | py | Python | pbs/scripts/update_burn_dataOLD.py | jawaidm/pbs | 87f5c535c976d6a5eccbfbbf2073589b6e366d04 | [
"Apache-2.0"
] | null | null | null | pbs/scripts/update_burn_dataOLD.py | jawaidm/pbs | 87f5c535c976d6a5eccbfbbf2073589b6e366d04 | [
"Apache-2.0"
] | 12 | 2019-10-22T23:16:38.000Z | 2022-03-11T23:17:45.000Z | pbs/scripts/update_burn_dataOLD.py | jawaidm/pbs | 87f5c535c976d6a5eccbfbbf2073589b6e366d04 | [
"Apache-2.0"
] | 5 | 2019-12-19T06:18:42.000Z | 2022-01-07T01:16:18.000Z | ''' ----------------------------------------------------------------------------------------
This script will update the Prescribed Burn System's ePFP data according to txt input
files found in the relevant scripts folder.
It requires user input of the Corporate Executive Approval date, which it will then use
to set PR... | 47.089136 | 125 | 0.644898 |
724b92184d8f2e9819e55008805cce856be796bd | 4,012 | py | Python | learnware/algorithm/anomaly_detect/iforest.py | marvinren/aiops_gaussian_learnware | 47683546d6648a38bb71988c33f959cf7308376f | [
"Apache-2.0"
] | null | null | null | learnware/algorithm/anomaly_detect/iforest.py | marvinren/aiops_gaussian_learnware | 47683546d6648a38bb71988c33f959cf7308376f | [
"Apache-2.0"
] | null | null | null | learnware/algorithm/anomaly_detect/iforest.py | marvinren/aiops_gaussian_learnware | 47683546d6648a38bb71988c33f959cf7308376f | [
"Apache-2.0"
] | null | null | null | import numpy as np
from scipy.stats import binom
from sklearn.ensemble import IsolationForest
from sklearn.preprocessing import MinMaxScaler
from scipy.special import erf
from learnware.algorithm.anomaly_detect.base import BaseAnomalyDetect
| 37.148148 | 79 | 0.598704 |
724cda3b3a14ff18ab5608878c35ee486f9afa69 | 217 | py | Python | noxfile.py | rshnn/Practical-RL | f7688e224a342c7f67478f2c4cd6bb7b1a122205 | [
"MIT"
] | 3 | 2022-02-14T17:59:56.000Z | 2022-02-15T10:08:43.000Z | noxfile.py | rshnn/Practical-RL | f7688e224a342c7f67478f2c4cd6bb7b1a122205 | [
"MIT"
] | 21 | 2021-11-02T21:35:26.000Z | 2022-01-17T18:50:42.000Z | noxfile.py | rshnn/Practical-RL | f7688e224a342c7f67478f2c4cd6bb7b1a122205 | [
"MIT"
] | 2 | 2021-11-24T15:25:17.000Z | 2022-02-14T19:04:56.000Z | from nox import session
| 24.111111 | 74 | 0.686636 |
724da380c925fd0be608bd11f30b6d426eb5746d | 27 | py | Python | megnet/data/__init__.py | abdalazizrashid/megnet | 8ad0fca246465bd57d66392f790c5310c610dfff | [
"BSD-3-Clause"
] | 367 | 2018-12-13T14:49:00.000Z | 2022-03-31T10:17:04.000Z | megnet/data/__init__.py | kdmsit/MEGNet | 4f3c76c6b99edcb41d52ae5e8ae9dc89956d33d1 | [
"MIT"
] | 162 | 2019-02-08T20:38:12.000Z | 2022-03-31T21:13:06.000Z | megnet/data/__init__.py | kdmsit/MEGNet | 4f3c76c6b99edcb41d52ae5e8ae9dc89956d33d1 | [
"MIT"
] | 119 | 2018-12-17T10:16:12.000Z | 2022-03-31T17:26:57.000Z | """
Data manipulations
"""
| 6.75 | 18 | 0.62963 |