id
int64
0
458k
file_name
stringlengths
4
119
file_path
stringlengths
14
227
content
stringlengths
24
9.96M
size
int64
24
9.96M
language
stringclasses
1 value
extension
stringclasses
14 values
total_lines
int64
1
219k
avg_line_length
float64
2.52
4.63M
max_line_length
int64
5
9.91M
alphanum_fraction
float64
0
1
repo_name
stringlengths
7
101
repo_stars
int64
100
139k
repo_forks
int64
0
26.4k
repo_open_issues
int64
0
2.27k
repo_license
stringclasses
12 values
repo_extraction_date
stringclasses
433 values
2,283,700
__init__.cpython-39.pyc
Leaf-0010_cell_detection/utils/__pycache__/__init__.cpython-39.pyc
a ,ªdEã@sdZddd„ZdS)z utils/initialization Tc Csğtdƒddl}ddl}ddlm}m}m}ddlm}|dƒddl }ddl m }|ƒrh|j ddd �|rÌd } |  ¡j} | d ¡\} } } | ¡d | ¡›d | | d›d| | | d›d | | d›d�...
1,120
Python
.py
11
100.727273
441
0.486486
Leaf-0010/cell_detection
8
0
0
GPL-3.0
9/5/2024, 10:47:27 PM (Europe/Amsterdam)
2,283,701
loss.cpython-37.pyc
Leaf-0010_cell_detection/utils/__pycache__/loss.cpython-37.pyc
B ,Å­b¿&ã@s‚dZddlZddlmZddlmZddlmZddd„ZGdd „d ej ƒZ Gd d „d ej ƒZ Gd d „d ej ƒZ Gdd„dƒZ dS)z Loss functions éN)Úbbox_iou)Ú de_parallelçš™™™™™¹?cCsdd|d|fS)Ngğ?gà?©)Úepsrr...
6,523
Python
.py
50
129.38
637
0.341829
Leaf-0010/cell_detection
8
0
0
GPL-3.0
9/5/2024, 10:47:27 PM (Europe/Amsterdam)
2,283,702
metrics.cpython-39.pyc
Leaf-0010_cell_detection/utils/__pycache__/metrics.cpython-39.pyc
a &ªd8ã@sÆdZddlZddlZddlmZddlmZddlZ ddl Z dd„Z d'dd„Z d(d d„Z dd„ZGdd„dƒZd)dd„Zdd„Zdd„Zd*dd„Zdd„Zedƒd fd d!„Zed"ƒd d#d$fd%d&„ZdS)+z Model validation metrics éN)ÚPathcCs&g...
11,445
Python
.py
162
68.037037
420
0.401631
Leaf-0010/cell_detection
8
0
0
GPL-3.0
9/5/2024, 10:47:27 PM (Europe/Amsterdam)
2,283,703
activations.cpython-37.pyc
Leaf-0010_cell_detection/utils/__pycache__/activations.cpython-37.pyc
B ,Å­by ã@s¬dZddlZddlmZddlmmZGdd„dejƒZGdd„dejƒZ Gdd„dejƒZ Gd d „d ejƒZ Gd d „d ejƒZ Gd d„dejƒZ Gdd„dejƒZdS)z Activation functions éNc@seZdZedd„ƒZdS)ÚSiLUc...
4,628
Python
.py
31
147.483871
385
0.379295
Leaf-0010/cell_detection
8
0
0
GPL-3.0
9/5/2024, 10:47:27 PM (Europe/Amsterdam)
2,283,704
general.cpython-37.pyc
Leaf-0010_cell_detection/utils/__pycache__/general.cpython-37.pyc
B %ªdr£ã@sèdZddlZddlZddlZddlZddlZddlZddlZddlZddl Z ddl Z ddl Z ddl Z ddl Z ddlZddlmZddlmZddlmZddlmZddlmZddlmZdd lmZddlZddlZddlZ ddl!Z"ddl#Z#ddl$Z$ddl%Z%dd l&m'Z'dd l(m)Z)...
35,487
Python
.py
213
165.323944
1,745
0.399234
Leaf-0010/cell_detection
8
0
0
GPL-3.0
9/5/2024, 10:47:27 PM (Europe/Amsterdam)
2,283,705
dataloaders.cpython-37.pyc
Leaf-0010_cell_detection/utils/__pycache__/dataloaders.cpython-37.pyc
B 'ªdCºã @s‚dZddlZddlZddlZddlZddlZddlZddlZddlZddl m Z ddl m Z m Z ddlmZddlmZddlmZddlmZddlZddlZddlmmZddlZdd lmZm Z m!Z!dd l"m#Z#m$Z$m%Z%m&Z&dd l'm'Z'dd l(m)Z)m*Z*m+Z+m,Z,m-Z-m.Z.dd ...
37,439
Python
.py
302
122.456954
1,062
0.40342
Leaf-0010/cell_detection
8
0
0
GPL-3.0
9/5/2024, 10:47:27 PM (Europe/Amsterdam)
2,283,706
torch_utils.cpython-39.pyc
Leaf-0010_cell_detection/utils/__pycache__/torch_utils.cpython-39.pyc
a $ªd•5ã@s„dZddlZddlZddlZddlZddlZddlZddlmZddl m Z ddl m Z ddl Z ddlmZddlmZddlmmZddlmZmZmZz ddlZWneyÀdZYn0ejddd �eed œd d „ƒZd d„Zd6dd„Z dd„Z!d7dd„Z"dd„Z#dd...
12,062
Python
.py
96
124.333333
675
0.432417
Leaf-0010/cell_detection
8
0
0
GPL-3.0
9/5/2024, 10:47:27 PM (Europe/Amsterdam)
2,283,707
autobatch.cpython-37.pyc
Leaf-0010_cell_detection/utils/__pycache__/autobatch.cpython-37.pyc
B ,Å­b( ã@sXdZddlmZddlZddlZddlmZmZm Z ddl m Z ddd „Z dd d „Z dS)z Auto-batch utils é)ÚdeepcopyN)ÚLOGGERÚcolorstrÚemojis)Úprofileé€Tc Cs,tjj |¡�tt|ƒ ¡|ƒSQRXdS)N)ÚtorchÚcudaÚampÚautocastÚ ...
2,295
Python
.py
24
94.375
561
0.43662
Leaf-0010/cell_detection
8
0
0
GPL-3.0
9/5/2024, 10:47:27 PM (Europe/Amsterdam)
2,283,708
dataloaders.cpython-39.pyc
Leaf-0010_cell_detection/utils/__pycache__/dataloaders.cpython-39.pyc
a (ªdCºã @s‚dZddlZddlZddlZddlZddlZddlZddlZddlZddl m Z ddl m Z m Z ddlmZddlmZddlmZddlmZddlZddlZddlmmZddlZdd lmZm Z m!Z!dd l"m#Z#m$Z$m%Z%m&Z&dd l'm'Z'dd l(m)Z)m*Z*m+Z+m,Z,m-Z-m.Z....
37,584
Python
.py
296
125.442568
1,641
0.394727
Leaf-0010/cell_detection
8
0
0
GPL-3.0
9/5/2024, 10:47:27 PM (Europe/Amsterdam)
2,283,709
downloads.cpython-37.pyc
Leaf-0010_cell_detection/utils/__pycache__/downloads.cpython-37.pyc
B &ªdÇã@sšdZddlZddlZddlZddlZddlZddlZddlmZddl m Z ddl Z ddl Z dd„Z ddd „Zdd d „Zddd„Zddd„Zddd„ZdS)z Download utils éN)ÚPath)ÚZipFilecCs6ytj |¡}| ¡dkStjjk r0dSXdS...
4,893
Python
.py
58
83.327586
564
0.476013
Leaf-0010/cell_detection
8
0
0
GPL-3.0
9/5/2024, 10:47:27 PM (Europe/Amsterdam)
2,283,710
augmentations.cpython-39.pyc
Leaf-0010_cell_detection/utils/__pycache__/augmentations.cpython-39.pyc
a *ªd†.ã@s´dZddlZddlZddlZddlZddlmZmZm Z m Z m Z ddl m Z Gdd„dƒZd'dd „Zd(d d „Zdd„Zd)dd„Zd*dd„Zd+dd„Zd,dd„Zd d!„Zd-d%d&„ZdS).z Image augmentation functions éN)ÚLOGGERÚ check_versionÚcolorstrÚresample_segments...
9,190
Python
.py
84
108.309524
908
0.373449
Leaf-0010/cell_detection
8
0
0
GPL-3.0
9/5/2024, 10:47:27 PM (Europe/Amsterdam)
2,283,711
plots.cpython-39.pyc
Leaf-0010_cell_detection/utils/__pycache__/plots.cpython-39.pyc
a $ªdRã@sèdZddlZddlZddlmZddlmZddlmZddlZddl Z ddl m Z ddl ZddlZddlZddlZddlmZmZmZddlmZmZmZmZmZmZmZm Z m!Z!m"Z"m#Z#m$Z$m%Z%ddl&m'Z'e(e )d d ¡ƒZ*e j+dEid d i¤�e  ,d¡Gdd„dƒZ-e-ƒZ....
18,570
Python
.py
153
120.052288
1,010
0.389354
Leaf-0010/cell_detection
8
0
0
GPL-3.0
9/5/2024, 10:47:27 PM (Europe/Amsterdam)
2,283,712
general.cpython-39.pyc
Leaf-0010_cell_detection/utils/__pycache__/general.cpython-39.pyc
a &ªdr£ã@sèdZddlZddlZddlZddlZddlZddlZddlZddlZddl Z ddl Z ddl Z ddl Z ddl Z ddlZddlmZddlmZddlmZddlmZddlmZddlmZdd lmZddlZddlZddlZ ddl!Z"ddl#Z#ddl$Z$ddl%Z%dd l&m'Z'dd l(...
35,383
Python
.py
194
181.092784
1,296
0.392722
Leaf-0010/cell_detection
8
0
0
GPL-3.0
9/5/2024, 10:47:27 PM (Europe/Amsterdam)
2,283,713
plots.cpython-37.pyc
Leaf-0010_cell_detection/utils/__pycache__/plots.cpython-37.pyc
B #ªdRã@sädZddlZddlZddlmZddlmZddlmZddlZddl Z ddl m Z ddl ZddlZddlZddlZddlmZmZmZddlmZmZmZmZmZmZmZm Z m!Z!m"Z"m#Z#m$Z$m%Z%ddl&m'Z'e(e )d d ¡ƒZ*e j+dEd d i�e  ,d¡Gdd„dƒZ-e-ƒZ.edfd...
18,670
Python
.py
163
113.226994
1,014
0.394811
Leaf-0010/cell_detection
8
0
0
GPL-3.0
9/5/2024, 10:47:27 PM (Europe/Amsterdam)
2,283,714
torch_utils.cpython-37.pyc
Leaf-0010_cell_detection/utils/__pycache__/torch_utils.cpython-37.pyc
B #ªd•5ã@s†dZddlZddlZddlZddlZddlZddlZddlmZddl m Z ddl m Z ddl Z ddlmZddlmZddlmmZddlmZmZmZy ddlZWnek rÂdZYnXejddd �eed œd d „ƒZd d„Zd6dd„Z dd„Z!d7dd„Z"dd„Z#dd„...
11,967
Python
.py
100
118.37
610
0.437036
Leaf-0010/cell_detection
8
0
0
GPL-3.0
9/5/2024, 10:47:27 PM (Europe/Amsterdam)
2,283,715
example_request.py
Leaf-0010_cell_detection/utils/flask_rest_api/example_request.py
# YOLOv5 🚀 by Ultralytics, GPL-3.0 license """ Perform test request """ import pprint import requests DETECTION_URL = "http://localhost:5000/v1/object-detection/yolov5s" IMAGE = "zidane.jpg" # Read image with open(IMAGE, "rb") as f: image_data = f.read() response = requests.post(DETECTION_URL, files={"image...
368
Python
.py
13
26.538462
75
0.747851
Leaf-0010/cell_detection
8
0
0
GPL-3.0
9/5/2024, 10:47:27 PM (Europe/Amsterdam)
2,283,716
restapi.py
Leaf-0010_cell_detection/utils/flask_rest_api/restapi.py
# YOLOv5 🚀 by Ultralytics, GPL-3.0 license """ Run a Flask REST API exposing a YOLOv5s model """ import argparse import io import torch from flask import Flask, request from PIL import Image app = Flask(__name__) DETECTION_URL = "/v1/object-detection/yolov5s" @app.route(DETECTION_URL, methods=["POST"]) def pre...
1,410
Python
.py
33
37.818182
117
0.678886
Leaf-0010/cell_detection
8
0
0
GPL-3.0
9/5/2024, 10:47:27 PM (Europe/Amsterdam)
2,283,717
__init__.py
Leaf-0010_cell_detection/utils/loggers/__init__.py
# YOLOv5 🚀 by Ultralytics, GPL-3.0 license """ Logging utils """ import os import warnings import pkg_resources as pkg import torch from torch.utils.tensorboard import SummaryWriter from utils.general import colorstr, cv2, emojis from utils.loggers.wandb.wandb_utils import WandbLogger from utils.plots import plot...
8,095
Python
.py
162
39.12963
121
0.583713
Leaf-0010/cell_detection
8
0
0
GPL-3.0
9/5/2024, 10:47:27 PM (Europe/Amsterdam)
2,283,718
__init__.cpython-37.pyc
Leaf-0010_cell_detection/utils/loggers/__pycache__/__init__.cpython-37.pyc
B ,Å­bŸã @s dZddlZddlZddlZddlZddlmZddlm Z m Z m Z ddl m Z ddlmZmZddlmZdZee d d ¡ƒZynddlZeed ƒs˜t‚e ej¡e d ¡krìed krìyejdd�ZWnejjk râdZYnXesìdZWne efk �r dZYnXGdd„...
7,413
Python
.py
52
141.5
698
0.474056
Leaf-0010/cell_detection
8
0
0
GPL-3.0
9/5/2024, 10:47:27 PM (Europe/Amsterdam)
2,283,719
log_dataset.py
Leaf-0010_cell_detection/utils/loggers/wandb/log_dataset.py
import argparse from wandb_utils import WandbLogger from utils.general import LOGGER WANDB_ARTIFACT_PREFIX = 'wandb-artifact://' def create_dataset_artifact(opt): logger = WandbLogger(opt, None, job_type='Dataset Creation') # TODO: return value unused if not logger.wandb: LOGGER.info("install wand...
1,032
Python
.py
18
52.944444
98
0.715423
Leaf-0010/cell_detection
8
0
0
GPL-3.0
9/5/2024, 10:47:27 PM (Europe/Amsterdam)
2,283,720
wandb_utils.py
Leaf-0010_cell_detection/utils/loggers/wandb/wandb_utils.py
"""Utilities and tools for tracking runs with Weights & Biases.""" import logging import os import sys from contextlib import contextmanager from pathlib import Path from typing import Dict import yaml from tqdm import tqdm FILE = Path(__file__).resolve() ROOT = FILE.parents[3] # YOLOv5 root directory if str(ROOT) ...
27,586
Python
.py
503
41.60835
126
0.585879
Leaf-0010/cell_detection
8
0
0
GPL-3.0
9/5/2024, 10:47:27 PM (Europe/Amsterdam)
2,283,721
sweep.py
Leaf-0010_cell_detection/utils/loggers/wandb/sweep.py
import sys from pathlib import Path import wandb FILE = Path(__file__).resolve() ROOT = FILE.parents[3] # YOLOv5 root directory if str(ROOT) not in sys.path: sys.path.append(str(ROOT)) # add ROOT to PATH from train import parse_opt, train from utils.callbacks import Callbacks from utils.general import incremen...
1,213
Python
.py
32
34.125
105
0.702218
Leaf-0010/cell_detection
8
0
0
GPL-3.0
9/5/2024, 10:47:27 PM (Europe/Amsterdam)
2,283,722
wandb_utils.cpython-37.pyc
Leaf-0010_cell_detection/utils/loggers/wandb/__pycache__/wandb_utils.cpython-37.pyc
B ,Å­bÂkã @sPdZddlZddlZddlZddlmZddlmZddlm Z ddl Z ddl m Z ee ƒ  ¡ZejdZeeƒejkrˆej eeƒ¡ddlmZmZdd lmZmZmZyddlZeed ƒsÄt‚Wneefk râdZYnXee  d d ¡ƒZ!d Z"e"fdd„Z#dd„Z$dd„Z%d...
19,607
Python
.py
224
83.098214
740
0.501704
Leaf-0010/cell_detection
8
0
0
GPL-3.0
9/5/2024, 10:47:27 PM (Europe/Amsterdam)
2,283,723
resume.py
Leaf-0010_cell_detection/utils/aws/resume.py
# Resume all interrupted trainings in yolov5/ dir including DDP trainings # Usage: $ python utils/aws/resume.py import os import sys from pathlib import Path import torch import yaml FILE = Path(__file__).resolve() ROOT = FILE.parents[2] # YOLOv5 root directory if str(ROOT) not in sys.path: sys.path.append(str(...
1,198
Python
.py
32
33.1875
116
0.647668
Leaf-0010/cell_detection
8
0
0
GPL-3.0
9/5/2024, 10:47:27 PM (Europe/Amsterdam)
2,283,724
common.cpython-39.pyc
Leaf-0010_cell_detection/models/__pycache__/common.cpython-39.pyc
a 2ªdŠã@sÊdZddlZddlZddlZddlZddlmZmZddlmZddl m Z ddl Z ddl Z ddlZddlZddlZddlmZddlZddlmZddlmZddlmZmZdd lmZmZmZm Z m!Z!m"Z"m#Z#m$Z$m%Z%m&Z&m'Z'dd l(m)Z)m*Z*m+Z+dd l,m-Z-m.Z.d@d d „Z/...
32,327
Python
.pyt
185
173.691892
2,204
0.362132
Leaf-0010/cell_detection
8
0
0
GPL-3.0
9/5/2024, 10:47:27 PM (Europe/Amsterdam)
2,283,725
tf.cpython-37.pyc
Leaf-0010_cell_detection/models/__pycache__/tf.cpython-37.pyc
B ,Å­b�cã@sàdZddlZddlZddlmZddlmZeeƒ ¡Z e j dZ e e ƒej kr`ej  e e ƒ¡ddlZddlZddlZddlmZddlmZddlmZmZmZmZmZmZmZmZm Z m!Z!m"Z"m#Z#m$Z$ddl%m&Z&m'Z'dd l(m)Z)dd l*m+Z+dd l,m-Z-m.Z.m/Z/Gd d „d ej0...
25,429
Python
.pyt
167
151.11976
1,078
0.378805
Leaf-0010/cell_detection
8
0
0
GPL-3.0
9/5/2024, 10:47:27 PM (Europe/Amsterdam)
2,283,726
yolo.cpython-37.pyc
Leaf-0010_cell_detection/models/__pycache__/yolo.cpython-37.pyc
B .ªdú;ã @sÀdZddlZddlZddlZddlZddlmZddlmZee ƒ  ¡Z e j dZ ee ƒejkrpej ee ƒ¡e ¡dkr’eej e e ¡¡ƒZ ddlTddlTddlmZdd lmZmZmZmZmZdd lmZdd l m!Z!m"Z"m#Z#m$Z$m%Z%m&Z&m'Z'y ddl(Z(Wne)k �r ...
13,058
Python
.pyt
121
106.735537
924
0.395361
Leaf-0010/cell_detection
8
0
0
GPL-3.0
9/5/2024, 10:47:27 PM (Europe/Amsterdam)
2,283,727
common.cpython-37.pyc
Leaf-0010_cell_detection/models/__pycache__/common.cpython-37.pyc
B 0ªdŠã@sÊdZddlZddlZddlZddlZddlmZmZddlmZddl m Z ddl Z ddl Z ddlZddlZddlZddlmZddlZddlmZddlmZddlmZmZdd lmZmZmZm Z m!Z!m"Z"m#Z#m$Z$m%Z%m&Z&m'Z'dd l(m)Z)m*Z*m+Z+dd l,m-Z-m.Z.d@d d „Z/Gd...
33,022
Python
.pyt
187
175.540107
2,462
0.363625
Leaf-0010/cell_detection
8
0
0
GPL-3.0
9/5/2024, 10:47:27 PM (Europe/Amsterdam)
2,283,728
experimental.cpython-37.pyc
Leaf-0010_cell_detection/models/__pycache__/experimental.cpython-37.pyc
B .ªd2ã@s„dZddlZddlZddlZddlmZddlmZddl m Z Gdd„dej ƒZ Gdd„dej ƒZ Gd d „d ejƒZdd d „ZdS)z Experimental modules éN)ÚConv)Úattempt_downloadcs&eZdZd‡fdd„ Zdd„Z‡ZS)ÚSumFc...
4,901
Python
.pyt
35
138.914286
1,200
0.401479
Leaf-0010/cell_detection
8
0
0
GPL-3.0
9/5/2024, 10:47:27 PM (Europe/Amsterdam)
2,283,729
metrics.cpython-37.pyc
Leaf-0010_cell_detection/utils/__pycache__/metrics.cpython-37.pyc
B %ªd8ã@sÆdZddlZddlZddlmZddlmZddlZ ddl Z dd„Z d'dd„Z d(d d„Z dd„ZGdd„dƒZd)dd„Zdd„Zdd„Zd*dd„Zdd„Zedƒd fd d!„Zed"ƒd d#d$fd%d&„ZdS)+z Model validation metrics éN)ÚPathcCs*ddddg...
11,387
Python
.pyt
118
93.288136
496
0.40213
Leaf-0010/cell_detection
8
0
0
GPL-3.0
9/5/2024, 10:47:27 PM (Europe/Amsterdam)
2,283,730
__init__.cpython-37.pyc
Leaf-0010_cell_detection/utils/__pycache__/__init__.cpython-37.pyc
B *ªdEã@sdZddd„ZdS)z utils/initialization Tc Csğtdƒddl}ddl}ddlm}m}m}ddlm}|dƒddl }ddl m }|ƒrh|j ddd �|rÌd } |  ¡j} | d ¡\} } } | ¡d | ¡›d | | d›d| | | d›d | | d›d� }nd}...
1,065
Python
.pyt
11
95.727273
441
0.480569
Leaf-0010/cell_detection
8
0
0
GPL-3.0
9/5/2024, 10:47:27 PM (Europe/Amsterdam)
2,283,731
augmentations.cpython-37.pyc
Leaf-0010_cell_detection/utils/__pycache__/augmentations.cpython-37.pyc
B )ªd†.ã@s´dZddlZddlZddlZddlZddlmZmZm Z m Z m Z ddl m Z Gdd„dƒZd'dd „Zd(d d „Zdd„Zd)dd„Zd*dd„Zd+dd„Zd,dd„Zd d!„Zd-d%d&„ZdS).z Image augmentation functions éN)ÚLOGGERÚ check_versionÚcolorstrÚresample_segmentsÚ se...
9,107
Python
.pyt
91
98.989011
902
0.373184
Leaf-0010/cell_detection
8
0
0
GPL-3.0
9/5/2024, 10:47:27 PM (Europe/Amsterdam)
2,283,732
autoanchor.cpython-37.pyc
Leaf-0010_cell_detection/utils/__pycache__/autoanchor.cpython-37.pyc
B )ªdã@sldZddlZddlZddlZddlZddlmZddlmZm Z m Z e dƒZ dd„Z dd d „Z ddd„ZdS)z AutoAnchor utils éN)Útqdm)ÚLOGGERÚcolorstrÚemojisz AutoAnchor: cCsz|j d¡ d¡ d¡}|d|d}|jd|jd}|rv|...
6,550
Python
.pyt
57
111.578947
612
0.442527
Leaf-0010/cell_detection
8
0
0
GPL-3.0
9/5/2024, 10:47:27 PM (Europe/Amsterdam)
2,283,733
downloads.cpython-39.pyc
Leaf-0010_cell_detection/utils/__pycache__/downloads.cpython-39.pyc
a (ªdÇã@sšdZddlZddlZddlZddlZddlZddlZddlmZddl m Z ddl Z ddl Z dd„Z ddd „Zdd d „Zddd„Zddd„Zddd„ZdS)z Download utils éN)ÚPath)ÚZipFilecCs8ztj |¡}| ¡dkWStjjy2Y...
5,045
Python
.pyt
51
97.882353
562
0.463063
Leaf-0010/cell_detection
8
0
0
GPL-3.0
9/5/2024, 10:47:27 PM (Europe/Amsterdam)
2,283,734
callbacks.cpython-37.pyc
Leaf-0010_cell_detection/utils/__pycache__/callbacks.cpython-37.pyc
B ,Å­bb ã@sdZGdd„dƒZdS)z Callback utils c@s4eZdZdZdd„Zd dd„Zd dd „Zd d „ZdS)Ú Callbacksz<" Handles all registered callbacks for YOLOv5 Hooks cCs8gggggggggggggggggggdœ|_d|_dS)...
2,508
Python
.pyt
31
74.354839
351
0.543469
Leaf-0010/cell_detection
8
0
0
GPL-3.0
9/5/2024, 10:47:27 PM (Europe/Amsterdam)
2,283,735
__init__.cpython-39.pyc
Leaf-0010_cell_detection/utils/__pycache__/__init__.cpython-39.pyc
a ,ªdEã@sdZddd„ZdS)z utils/initialization Tc Csğtdƒddl}ddl}ddlm}m}m}ddlm}|dƒddl }ddl m }|ƒrh|j ddd �|rÌd } |  ¡j} | d ¡\} } } | ¡d | ¡›d | | d›d| | | d›d | | d›d�...
1,120
Python
.pyt
11
100.727273
441
0.486486
Leaf-0010/cell_detection
8
0
0
GPL-3.0
9/5/2024, 10:47:27 PM (Europe/Amsterdam)
2,283,736
loss.cpython-37.pyc
Leaf-0010_cell_detection/utils/__pycache__/loss.cpython-37.pyc
B ,Å­b¿&ã@s‚dZddlZddlmZddlmZddlmZddd„ZGdd „d ej ƒZ Gd d „d ej ƒZ Gd d „d ej ƒZ Gdd„dƒZ dS)z Loss functions éN)Úbbox_iou)Ú de_parallelçš™™™™™¹?cCsdd|d|fS)Ngğ?gà?©)Úepsrr...
6,523
Python
.pyt
50
129.38
637
0.341829
Leaf-0010/cell_detection
8
0
0
GPL-3.0
9/5/2024, 10:47:27 PM (Europe/Amsterdam)
2,283,737
metrics.cpython-39.pyc
Leaf-0010_cell_detection/utils/__pycache__/metrics.cpython-39.pyc
a &ªd8ã@sÆdZddlZddlZddlmZddlmZddlZ ddl Z dd„Z d'dd„Z d(d d„Z dd„ZGdd„dƒZd)dd„Zdd„Zdd„Zd*dd„Zdd„Zedƒd fd d!„Zed"ƒd d#d$fd%d&„ZdS)+z Model validation metrics éN)ÚPathcCs&g...
11,445
Python
.pyt
162
68.037037
420
0.401631
Leaf-0010/cell_detection
8
0
0
GPL-3.0
9/5/2024, 10:47:27 PM (Europe/Amsterdam)
2,283,738
activations.cpython-37.pyc
Leaf-0010_cell_detection/utils/__pycache__/activations.cpython-37.pyc
B ,Å­by ã@s¬dZddlZddlmZddlmmZGdd„dejƒZGdd„dejƒZ Gdd„dejƒZ Gd d „d ejƒZ Gd d „d ejƒZ Gd d„dejƒZ Gdd„dejƒZdS)z Activation functions éNc@seZdZedd„ƒZdS)ÚSiLUc...
4,628
Python
.pyt
31
147.483871
385
0.379295
Leaf-0010/cell_detection
8
0
0
GPL-3.0
9/5/2024, 10:47:27 PM (Europe/Amsterdam)
2,283,739
general.cpython-37.pyc
Leaf-0010_cell_detection/utils/__pycache__/general.cpython-37.pyc
B %ªdr£ã@sèdZddlZddlZddlZddlZddlZddlZddlZddlZddl Z ddl Z ddl Z ddl Z ddl Z ddlZddlmZddlmZddlmZddlmZddlmZddlmZdd lmZddlZddlZddlZ ddl!Z"ddl#Z#ddl$Z$ddl%Z%dd l&m'Z'dd l(m)Z)...
35,487
Python
.pyt
213
165.323944
1,745
0.399234
Leaf-0010/cell_detection
8
0
0
GPL-3.0
9/5/2024, 10:47:27 PM (Europe/Amsterdam)
2,283,740
dataloaders.cpython-37.pyc
Leaf-0010_cell_detection/utils/__pycache__/dataloaders.cpython-37.pyc
B 'ªdCºã @s‚dZddlZddlZddlZddlZddlZddlZddlZddlZddl m Z ddl m Z m Z ddlmZddlmZddlmZddlmZddlZddlZddlmmZddlZdd lmZm Z m!Z!dd l"m#Z#m$Z$m%Z%m&Z&dd l'm'Z'dd l(m)Z)m*Z*m+Z+m,Z,m-Z-m.Z.dd ...
37,439
Python
.pyt
302
122.456954
1,062
0.40342
Leaf-0010/cell_detection
8
0
0
GPL-3.0
9/5/2024, 10:47:27 PM (Europe/Amsterdam)
2,283,741
torch_utils.cpython-39.pyc
Leaf-0010_cell_detection/utils/__pycache__/torch_utils.cpython-39.pyc
a $ªd•5ã@s„dZddlZddlZddlZddlZddlZddlZddlmZddl m Z ddl m Z ddl Z ddlmZddlmZddlmmZddlmZmZmZz ddlZWneyÀdZYn0ejddd �eed œd d „ƒZd d„Zd6dd„Z dd„Z!d7dd„Z"dd„Z#dd...
12,062
Python
.pyt
96
124.333333
675
0.432417
Leaf-0010/cell_detection
8
0
0
GPL-3.0
9/5/2024, 10:47:27 PM (Europe/Amsterdam)
2,283,742
autobatch.cpython-37.pyc
Leaf-0010_cell_detection/utils/__pycache__/autobatch.cpython-37.pyc
B ,Å­b( ã@sXdZddlmZddlZddlZddlmZmZm Z ddl m Z ddd „Z dd d „Z dS)z Auto-batch utils é)ÚdeepcopyN)ÚLOGGERÚcolorstrÚemojis)Úprofileé€Tc Cs,tjj |¡�tt|ƒ ¡|ƒSQRXdS)N)ÚtorchÚcudaÚampÚautocastÚ ...
2,295
Python
.pyt
24
94.375
561
0.43662
Leaf-0010/cell_detection
8
0
0
GPL-3.0
9/5/2024, 10:47:27 PM (Europe/Amsterdam)
2,283,743
dataloaders.cpython-39.pyc
Leaf-0010_cell_detection/utils/__pycache__/dataloaders.cpython-39.pyc
a (ªdCºã @s‚dZddlZddlZddlZddlZddlZddlZddlZddlZddl m Z ddl m Z m Z ddlmZddlmZddlmZddlmZddlZddlZddlmmZddlZdd lmZm Z m!Z!dd l"m#Z#m$Z$m%Z%m&Z&dd l'm'Z'dd l(m)Z)m*Z*m+Z+m,Z,m-Z-m.Z....
37,584
Python
.pyt
296
125.442568
1,641
0.394727
Leaf-0010/cell_detection
8
0
0
GPL-3.0
9/5/2024, 10:47:27 PM (Europe/Amsterdam)
2,283,744
downloads.cpython-37.pyc
Leaf-0010_cell_detection/utils/__pycache__/downloads.cpython-37.pyc
B &ªdÇã@sšdZddlZddlZddlZddlZddlZddlZddlmZddl m Z ddl Z ddl Z dd„Z ddd „Zdd d „Zddd„Zddd„Zddd„ZdS)z Download utils éN)ÚPath)ÚZipFilecCs6ytj |¡}| ¡dkStjjk r0dSXdS...
4,893
Python
.pyt
58
83.327586
564
0.476013
Leaf-0010/cell_detection
8
0
0
GPL-3.0
9/5/2024, 10:47:27 PM (Europe/Amsterdam)
2,283,745
augmentations.cpython-39.pyc
Leaf-0010_cell_detection/utils/__pycache__/augmentations.cpython-39.pyc
a *ªd†.ã@s´dZddlZddlZddlZddlZddlmZmZm Z m Z m Z ddl m Z Gdd„dƒZd'dd „Zd(d d „Zdd„Zd)dd„Zd*dd„Zd+dd„Zd,dd„Zd d!„Zd-d%d&„ZdS).z Image augmentation functions éN)ÚLOGGERÚ check_versionÚcolorstrÚresample_segments...
9,190
Python
.pyt
84
108.309524
908
0.373449
Leaf-0010/cell_detection
8
0
0
GPL-3.0
9/5/2024, 10:47:27 PM (Europe/Amsterdam)
2,283,746
plots.cpython-39.pyc
Leaf-0010_cell_detection/utils/__pycache__/plots.cpython-39.pyc
a $ªdRã@sèdZddlZddlZddlmZddlmZddlmZddlZddl Z ddl m Z ddl ZddlZddlZddlZddlmZmZmZddlmZmZmZmZmZmZmZm Z m!Z!m"Z"m#Z#m$Z$m%Z%ddl&m'Z'e(e )d d ¡ƒZ*e j+dEid d i¤�e  ,d¡Gdd„dƒZ-e-ƒZ....
18,570
Python
.pyt
153
120.052288
1,010
0.389354
Leaf-0010/cell_detection
8
0
0
GPL-3.0
9/5/2024, 10:47:27 PM (Europe/Amsterdam)
2,283,747
general.cpython-39.pyc
Leaf-0010_cell_detection/utils/__pycache__/general.cpython-39.pyc
a &ªdr£ã@sèdZddlZddlZddlZddlZddlZddlZddlZddlZddl Z ddl Z ddl Z ddl Z ddl Z ddlZddlmZddlmZddlmZddlmZddlmZddlmZdd lmZddlZddlZddlZ ddl!Z"ddl#Z#ddl$Z$ddl%Z%dd l&m'Z'dd l(...
35,383
Python
.pyt
194
181.092784
1,296
0.392722
Leaf-0010/cell_detection
8
0
0
GPL-3.0
9/5/2024, 10:47:27 PM (Europe/Amsterdam)
2,283,748
plots.cpython-37.pyc
Leaf-0010_cell_detection/utils/__pycache__/plots.cpython-37.pyc
B #ªdRã@sädZddlZddlZddlmZddlmZddlmZddlZddl Z ddl m Z ddl ZddlZddlZddlZddlmZmZmZddlmZmZmZmZmZmZmZm Z m!Z!m"Z"m#Z#m$Z$m%Z%ddl&m'Z'e(e )d d ¡ƒZ*e j+dEd d i�e  ,d¡Gdd„dƒZ-e-ƒZ.edfd...
18,670
Python
.pyt
163
113.226994
1,014
0.394811
Leaf-0010/cell_detection
8
0
0
GPL-3.0
9/5/2024, 10:47:27 PM (Europe/Amsterdam)
2,283,749
torch_utils.cpython-37.pyc
Leaf-0010_cell_detection/utils/__pycache__/torch_utils.cpython-37.pyc
B #ªd•5ã@s†dZddlZddlZddlZddlZddlZddlZddlmZddl m Z ddl m Z ddl Z ddlmZddlmZddlmmZddlmZmZmZy ddlZWnek rÂdZYnXejddd �eed œd d „ƒZd d„Zd6dd„Z dd„Z!d7dd„Z"dd„Z#dd„...
11,967
Python
.pyt
100
118.37
610
0.437036
Leaf-0010/cell_detection
8
0
0
GPL-3.0
9/5/2024, 10:47:27 PM (Europe/Amsterdam)
2,283,750
__init__.cpython-37.pyc
Leaf-0010_cell_detection/utils/loggers/__pycache__/__init__.cpython-37.pyc
B ,Å­bŸã @s dZddlZddlZddlZddlZddlmZddlm Z m Z m Z ddl m Z ddlmZmZddlmZdZee d d ¡ƒZynddlZeed ƒs˜t‚e ej¡e d ¡krìed krìyejdd�ZWnejjk râdZYnXesìdZWne efk �r dZYnXGdd„...
7,413
Python
.pyt
52
141.5
698
0.474056
Leaf-0010/cell_detection
8
0
0
GPL-3.0
9/5/2024, 10:47:27 PM (Europe/Amsterdam)
2,283,751
wandb_utils.cpython-37.pyc
Leaf-0010_cell_detection/utils/loggers/wandb/__pycache__/wandb_utils.cpython-37.pyc
B ,Å­bÂkã @sPdZddlZddlZddlZddlmZddlmZddlm Z ddl Z ddl m Z ee ƒ  ¡ZejdZeeƒejkrˆej eeƒ¡ddlmZmZdd lmZmZmZyddlZeed ƒsÄt‚Wneefk râdZYnXee  d d ¡ƒZ!d Z"e"fdd„Z#dd„Z$dd„Z%d...
19,607
Python
.pyt
224
83.098214
740
0.501704
Leaf-0010/cell_detection
8
0
0
GPL-3.0
9/5/2024, 10:47:27 PM (Europe/Amsterdam)
2,283,752
try_old_Electrum.py
HomelessPhD_Wealth_in_Poetry/python_script/try_old_Electrum.py
import old_mnemonic from typing import Union import codecs import hashlib import ecdsa import base58 def to_bytes(something, encoding='utf8') -> bytes: """ cast string to bytes() like object, but for python2 support it's bytearray copy """ if isinstance(something, bytes): return something ...
6,068
Python
.py
126
41.81746
103
0.680048
HomelessPhD/Wealth_in_Poetry
8
1
1
GPL-3.0
9/5/2024, 10:47:27 PM (Europe/Amsterdam)
2,283,753
try_BIP39.py
HomelessPhD_Wealth_in_Poetry/python_script/try_BIP39.py
from bip32utils import BIP32Key from bip32utils import BIP32_HARDEN from bip32utils import Base58 import os, bip39 import codecs import hashlib import ecdsa import base58 def pk_to_hash_unc_p2pkh(priv_key): private_key_bytes = codecs.decode(priv_key, 'hex') # Get ECDSA public key (paired to given private...
5,574
Python
.py
116
42.137931
154
0.692551
HomelessPhD/Wealth_in_Poetry
8
1
1
GPL-3.0
9/5/2024, 10:47:27 PM (Europe/Amsterdam)
2,283,754
__init__.py
annadeg_jwst-msafit/msafit/__init__.py
from . import fpa from . import model from . import fitting from . import lsf
78
Python
.py
4
18.5
21
0.783784
annadeg/jwst-msafit
8
1
0
GPL-3.0
9/5/2024, 10:47:27 PM (Europe/Amsterdam)
2,283,755
spectrum.py
annadeg_jwst-msafit/msafit/fpa/spectrum.py
import numpy as np import os from msafit.utils.array_utils import downsample_array,find_pixel from msafit.utils.convolution import convolve_cube_psf from msafit.fpa.detector import DetectorCutout from msafit.fpa.psf import PSFLib from scipy import ndimage from astropy.convolution import convolve as kernel_convolve __a...
8,481
Python
.py
153
41.111111
142
0.562979
annadeg/jwst-msafit
8
1
0
GPL-3.0
9/5/2024, 10:47:27 PM (Europe/Amsterdam)
2,283,756
psf.py
annadeg_jwst-msafit/msafit/fpa/psf.py
import numpy as np import json import os import glob from astropy.io import fits from msafit.utils.array_utils import downsample_array from msafit.utils.convolution import extend_hypercube from scipy.interpolate import interpn __all__ = ["PSFLib"] class PSFLib: def __init__(self,fname=None,fwa='',gw...
5,383
Python
.py
113
36.40708
150
0.595997
annadeg/jwst-msafit
8
1
0
GPL-3.0
9/5/2024, 10:47:27 PM (Europe/Amsterdam)
2,283,757
detector.py
annadeg_jwst-msafit/msafit/fpa/detector.py
import numpy as np import os from astropy.io import fits from scipy.ndimage import zoom from scipy.interpolate import interp1d from copy import copy from ..utils.array_utils import find_pixel, oversample_array # Class to describe the NIRSpec detectors based on latest version of geometric model class Detector: de...
9,493
Python
.py
141
55.283688
137
0.618616
annadeg/jwst-msafit
8
1
0
GPL-3.0
9/5/2024, 10:47:27 PM (Europe/Amsterdam)
2,283,758
fit_func.py
annadeg_jwst-msafit/msafit/lsf/fit_func.py
import numpy as np __all__ = ["gauss_dataset","objective"] def gauss(x, amp, cen, sigma): return amp * np.exp(-(x-cen)**2 / (2.*sigma**2)) def multi_gauss(x,amp_list,cen_list,sigma_list): nlines = len(amp_list) y = np.zeros(x.shape) for i in range(nlines): y += gauss(x,amp_list[i],cen_list...
1,130
Python
.py
25
40.36
90
0.648673
annadeg/jwst-msafit
8
1
0
GPL-3.0
9/5/2024, 10:47:27 PM (Europe/Amsterdam)
2,283,759
lsf.py
annadeg_jwst-msafit/msafit/lsf/lsf.py
import numpy as np from msafit.utils.trace import get_dlambda_dx try: from lmfit import Parameters, minimize except ImportError: print("To fit LSFs using the LSF class requires installation of lmfit") from scipy.interpolate import interp1d from .fit_func import * class LSF: def __init__(s...
3,948
Python
.py
74
40.810811
153
0.576822
annadeg/jwst-msafit
8
1
0
GPL-3.0
9/5/2024, 10:47:27 PM (Europe/Amsterdam)
2,283,760
trace.py
annadeg_jwst-msafit/msafit/utils/trace.py
import numpy as np def get_dlambda_dx(f_trace_x,f_trace_y,wl_range,dlambda=100.): x_fpa, y_fpa = f_trace_x(wl_range), f_trace_y(wl_range) x_fpa_up, y_fpa_up = f_trace_x(wl_range+dlambda), f_trace_y(wl_range+dlambda) x_fpa_low, y_fpa_low = f_trace_x(wl_range-dlambda), f_trace_y(wl_range-dlambda) d1 =...
445
Python
.py
8
51
83
0.662037
annadeg/jwst-msafit
8
1
0
GPL-3.0
9/5/2024, 10:47:27 PM (Europe/Amsterdam)
2,283,761
obs_utils.py
annadeg_jwst-msafit/msafit/utils/obs_utils.py
import numpy as np import glob from msafit.utils.array_utils import find_pixel from astropy.io import fits from msafit.fpa.detector import DetectorCutout from astropy.nddata import bitmask __all__ = ["select_obs"] def retrieve_files(obs_dir,obj_id,filt='',disperser='',gto_convention=False,fits_ext='FFLT_I2D',**kwarg...
12,442
Python
.py
279
36.924731
167
0.628445
annadeg/jwst-msafit
8
1
0
GPL-3.0
9/5/2024, 10:47:27 PM (Europe/Amsterdam)
2,283,762
sampling.py
annadeg_jwst-msafit/msafit/utils/sampling.py
import numpy as np import os import warnings from scipy.interpolate import interp1d from astropy.table import Table from astropy.units import UnitsWarning # some helper functions to compute Nyquist sampling __all__ = ["get_fwhm_spatial","nyquist_spatial","get_fwhm_lambda","nyquist_wave"] _pix_size = 0.1 # a...
1,462
Python
.py
33
37.939394
128
0.693654
annadeg/jwst-msafit
8
1
0
GPL-3.0
9/5/2024, 10:47:27 PM (Europe/Amsterdam)
2,283,763
convolution.py
annadeg_jwst-msafit/msafit/utils/convolution.py
import numpy as np __all__ = ["extend_hypercube","convolve_cube_psf"] def multiply_arrays(cube_arr,psf_arr,out_arr=None): if len(cube_arr.shape)==3: return np.multiply(cube_arr[:,:,:,np.newaxis,np.newaxis], psf_arr,out=out_arr) elif len(cube_arr.shape)==2: return np.multiply(cube_arr[np.newa...
2,164
Python
.py
50
34.62
95
0.63112
annadeg/jwst-msafit
8
1
0
GPL-3.0
9/5/2024, 10:47:27 PM (Europe/Amsterdam)
2,283,764
array_utils.py
annadeg_jwst-msafit/msafit/utils/array_utils.py
import numpy as np from scipy.ndimage import zoom __all__ = ["downsample_array","oversample_array","find_pixel"] def downsample_array(arr,factor,func=np.sum): # reshape and then sum every N pixels along an axis reshaped_arr = arr.reshape((arr.shape[0],arr.shape[1]//factor,factor)) comb_arr = func(reshap...
1,012
Python
.py
22
40.590909
104
0.700309
annadeg/jwst-msafit
8
1
0
GPL-3.0
9/5/2024, 10:47:27 PM (Europe/Amsterdam)
2,283,765
dependencies.py
annadeg_jwst-msafit/msafit/fitting/dependencies.py
import numpy as np __all__ = ["thindisk_inclination","fix_turnover","rturnover_from_reff"] def thindisk_inclination(param_dict,comp_idx=0): return np.arccos(param_dict["morph"][comp_idx]["q"])*180./np.pi def fix_turnover(param_dict,comp_idx=0,fraction=0.25): return fraction*param_dict["mor...
508
Python
.py
8
55.125
93
0.69697
annadeg/jwst-msafit
8
1
0
GPL-3.0
9/5/2024, 10:47:27 PM (Europe/Amsterdam)
2,283,766
priors.py
annadeg_jwst-msafit/msafit/fitting/priors.py
"""This module is adapted from prospector priors.py Source: https://github.com/bd-j/prospector -- copied at commit 7f4fb2d Author: Benjamin D. Johnson Journal reference: ApJS, 254, 22 (2021) priors.py -- this module contains various objects to be used as priors. When called these return the ln-prior-probability, and t...
14,209
Python
.py
395
28.2
106
0.612316
annadeg/jwst-msafit
8
1
0
GPL-3.0
9/5/2024, 10:47:27 PM (Europe/Amsterdam)
2,283,767
fit.py
annadeg_jwst-msafit/msafit/fitting/fit.py
import numpy as np import pickle import sys, os import time import h5py import glob from .likelihood import make_lnprob, chi2, make_chi2, lnprob from scipy import optimize import multiprocessing try: import ultranest except(ImportError): pass try: import emcee from .mcmc import make_init_ball, plot...
7,332
Python
.py
171
34.22807
204
0.634098
annadeg/jwst-msafit
8
1
0
GPL-3.0
9/5/2024, 10:47:27 PM (Europe/Amsterdam)
2,283,768
fit_model.py
annadeg_jwst-msafit/msafit/fitting/fit_model.py
import numpy as np from . import priors from msafit.utils.sampling import nyquist_wave from msafit.fpa import Spec2D from copy import deepcopy # set up parameters for the model that needs to be fit # parameters will need a prior attached to them and/or a fixed value ''' fit parameters need to be of following form spe...
14,432
Python
.py
319
33.557994
132
0.56264
annadeg/jwst-msafit
8
1
0
GPL-3.0
9/5/2024, 10:47:27 PM (Europe/Amsterdam)
2,283,769
mcmc.py
annadeg_jwst-msafit/msafit/fitting/mcmc.py
import numpy as np import matplotlib.pyplot as plt import emcee __all__ = ["make_init_ball","get_scale_estimate","plot_autocorr"] def get_scale_estimate(prior_func): """find a reasonable typical value for the prior distribution. For uniform priors this is somewhere around the middle, for other priors i...
2,799
Python
.py
77
29.688312
152
0.644328
annadeg/jwst-msafit
8
1
0
GPL-3.0
9/5/2024, 10:47:27 PM (Europe/Amsterdam)
2,283,770
likelihood.py
annadeg_jwst-msafit/msafit/fitting/likelihood.py
import numpy as np from .fit_model import FitModel from functools import partial __all__ = ["lnprob","make_lnprob","chi2","make_chi2","compute_lnlike","compute_constant"] def compute_lnlike(model_spec,obs_spec,obs_unc,mask_spec=slice(None),const=None,**kwargs): """compute the log likelihood given the model and ...
5,177
Python
.py
137
31.291971
112
0.671584
annadeg/jwst-msafit
8
1
0
GPL-3.0
9/5/2024, 10:47:27 PM (Europe/Amsterdam)
2,283,771
models.py
annadeg_jwst-msafit/msafit/model/models.py
import numpy as np from .velocity_field import * from .light_profile import * from .cube import Cube from .config import check_input_config __all__ = ["ThinDisk","MorphOnly","Sersic","Point","Gauss","UniformIllum"] class ThinDisk(Cube): """ Class for easy instantiating of a simple thin rotating disk model ...
4,517
Python
.py
92
38.336957
121
0.643895
annadeg/jwst-msafit
8
1
0
GPL-3.0
9/5/2024, 10:47:27 PM (Europe/Amsterdam)
2,283,772
cube.py
annadeg_jwst-msafit/msafit/model/cube.py
import numpy as np from .velocity_field import arctan1D, const_vdisp, VelField2D from .light_profile import sersic2D, gauss2D, LightDist2D from astropy.io import fits __all__ = ["Cube"] _gauss_prefact = np.sqrt(2.*np.pi) _c = 2.998e5 # km/s def convolve_gauss1D(x, flux, x0, sigma): """Function to convolve a 2...
8,255
Python
.py
176
36.676136
167
0.621457
annadeg/jwst-msafit
8
1
0
GPL-3.0
9/5/2024, 10:47:27 PM (Europe/Amsterdam)
2,283,773
config.py
annadeg_jwst-msafit/msafit/model/config.py
import numpy as np def get_default_morph(): p_light = {"profile":"sersic","flux":1.0,"x0":0.,"y0":0.,"x0_sky":None,"y0_sky":None,"r_e":0.3, "n":1., "q":0.6, "PA":90.} return p_light def get_default_vfield(): p_vel = {"r_t":0.2,"v_a":200.,"sigma_0":50.,"PA_vel":90.,"inclination":60.,"x0_vel":0.,"y0_ve...
4,962
Python
.py
75
55.973333
151
0.618928
annadeg/jwst-msafit
8
1
0
GPL-3.0
9/5/2024, 10:47:27 PM (Europe/Amsterdam)
2,283,774
velocity_field.py
annadeg_jwst-msafit/msafit/model/velocity_field.py
import numpy as np from astropy.io import fits __all__ = ["VelField2D","arctan1D","const_vdisp"] class VelField2D: """ Class to construct a 2D velocity field for an infinitely thin disk from arbitrary 1D velocity profiles """ def __init__(self, func_velcurve1D,func_veldisp1D): self.__...
2,707
Python
.py
68
30.911765
127
0.603335
annadeg/jwst-msafit
8
1
0
GPL-3.0
9/5/2024, 10:47:27 PM (Europe/Amsterdam)
2,283,775
light_profile.py
annadeg_jwst-msafit/msafit/model/light_profile.py
import numpy as np from astropy.modeling import models from astropy.io import fits from msafit.utils.array_utils import find_pixel, downsample_array, oversample_array from scipy.special import gamma, gammaincinv, gammainc __all__ = ["LightDist2D","sersic2D","gauss2D","point2D","uniform2D"] _det_pixsize = 0.1 # arcse...
6,271
Python
.py
94
56.978723
133
0.651366
annadeg/jwst-msafit
8
1
0
GPL-3.0
9/5/2024, 10:47:27 PM (Europe/Amsterdam)
2,283,776
example_lsf.ipynb
annadeg_jwst-msafit/examples/example_lsf.ipynb
{ "cells": [ { "cell_type": "markdown", "id": "00fc5d49", "metadata": {}, "source": [ "# Example: measuring a LSF and slit losses\n", "\n", "This notebook demonstrates how to compute and the line spread function for a Sersic profile. We'll also get slit losses for free! \n", "We will ass...
284,260
Python
.py
497
567.269618
128,756
0.945786
annadeg/jwst-msafit
8
1
0
GPL-3.0
9/5/2024, 10:47:27 PM (Europe/Amsterdam)
2,283,777
PyAppleSerialChecker.py
ExtremeXT_PyAppleSerialChecker/PyAppleSerialChecker.py
# Copyright © 2023 ExtremeXT. Licensed under the GNU Affero General Public License v3.0. See LICENSE for details. import base64 import json import requests serial_number = input("Input the serial number: ") # Spoof user agent to Safari browser on macOS 13.5 user_agent = "Mozilla/5.0 (Macintosh; Intel Mac OS X 13_5)...
2,139
Python
.py
49
41.142857
129
0.748077
ExtremeXT/PyAppleSerialChecker
8
0
0
AGPL-3.0
9/5/2024, 10:47:27 PM (Europe/Amsterdam)
2,283,778
demo.py
enginestein_Baker/demo.py
#test-chatbot.py import baker.trainer import baker.bparser import baker.chatbot trainer = baker.trainer.Trainer('data.json') parser = baker.bparser.Parser('data.json') my_chatbot = baker.chatbot.Chatbot("MyChatbot") my_chatbot.session(trainer, parser) #test-functions.py import baker.bparser response...
1,807
Python
.py
50
31.94
65
0.736257
enginestein/Baker
8
0
0
GPL-3.0
9/5/2024, 10:47:27 PM (Europe/Amsterdam)
2,283,779
setup.py
enginestein_Baker/setup.py
#!/usr/bin/env python from setuptools import setup try: long_description = open('README.md', 'r').read() except: long_description = '' setup( name='baker-python', version='2.0', packages=['baker'], url='https://github.com/enginestein/Baker', license='GPL-3.0-only', author='...
1,329
Python
.py
37
29
69
0.613178
enginestein/Baker
8
0
0
GPL-3.0
9/5/2024, 10:47:27 PM (Europe/Amsterdam)
2,283,780
test.py
enginestein_Baker/test.py
import unittest import tests.test_chatbot import tests.test_functions import tests.test_loop_trainer import tests.test_parser import tests.test_trainer if __name__ == "__main__": test_suite = unittest.TestSuite() test_suite.addTest(unittest.makeSuite(tests.test_chatbot.TestChatbot)) #test_suit...
672
Python
.py
14
43.642857
85
0.778287
enginestein/Baker
8
0
0
GPL-3.0
9/5/2024, 10:47:27 PM (Europe/Amsterdam)
2,283,781
__init__.py
enginestein_Baker/__init__.py
from baker import bparser from baker import chatbot from baker import trainer from tests import test_chatbot from tests import test_functions from tests import test_loop_trainer from tests import test_parser from tests import test_trainer
245
Python
.py
8
28.875
36
0.844538
enginestein/Baker
8
0
0
GPL-3.0
9/5/2024, 10:47:27 PM (Europe/Amsterdam)
2,283,782
trainer.py
enginestein_Baker/baker/trainer.py
import os import json import yaml import xml.etree.ElementTree as ET import random class Trainer: def __init__(self, response_file_name): self.file_path = response_file_name self.responses = self.load_responses(self.file_path) def load_responses(self, file_path): _,...
2,911
Python
.py
63
32.079365
89
0.553009
enginestein/Baker
8
0
0
GPL-3.0
9/5/2024, 10:47:27 PM (Europe/Amsterdam)
2,283,783
bparser.py
enginestein_Baker/baker/bparser.py
import json import random import os import yaml import xml.etree.ElementTree as ET class Parser: def __init__(self, response_file_name): self.file_path = response_file_name self.responses = self.load_responses(self.file_path) def load_responses(self, file_path): _, ...
4,176
Python
.py
86
34.372093
87
0.56779
enginestein/Baker
8
0
0
GPL-3.0
9/5/2024, 10:47:27 PM (Europe/Amsterdam)
2,283,784
chatbot.py
enginestein_Baker/baker/chatbot.py
import re import baker.trainer import baker.bparser as bparser class Chatbot: def __init__(self, name): self.name = name def session(self, trainer, parser): print(f"Welcome to {self.name} Chatbot! Type 'exit' to end the session.") while True: user_input =...
558
Python
.py
15
26.933333
82
0.570621
enginestein/Baker
8
0
0
GPL-3.0
9/5/2024, 10:47:27 PM (Europe/Amsterdam)
2,283,785
trainer.cpython-312.pyc
enginestein_Baker/baker/__pycache__/trainer.cpython-312.pyc
Ë £õe_ ãóJ—ddlZddlZddlZddlmcmZddlZGd„d«Zy)éNcó0—eZdZd„Zd„Zd„Zd„Zd„Zd„Zy)ÚTrainercóR—||_|j|j«|_y©N...
4,442
Python
.py
23
192.086957
645
0.322172
enginestein/Baker
8
0
0
GPL-3.0
9/5/2024, 10:47:27 PM (Europe/Amsterdam)
2,283,786
bparser.cpython-312.pyc
enginestein_Baker/baker/__pycache__/bparser.cpython-312.pyc
Ë ¼õePãóJ—ddlZddlZddlZddlZddlmcmZGd„d«Zy)éNcóH—eZdZd„Zd„Zd„Zd„Zd„Zd„Zd„Z d„Z d „Z d „Z y ) ÚParsercóR—||_|j|j«...
6,420
Python
.py
36
177.305556
735
0.294753
enginestein/Baker
8
0
0
GPL-3.0
9/5/2024, 10:47:27 PM (Europe/Amsterdam)
2,283,787
chatbot.cpython-312.pyc
enginestein_Baker/baker/__pycache__/chatbot.cpython-312.pyc
Ë ?ªõe.ãó4—ddlZddlZddlmZGd„d«Zy)éNcó—eZdZd„Zd„Zy)ÚChatbotcó—||_y)N)Úname)Úselfrs ú E:\Python\Baker\baker\chatbot.pyÚ__init__zChatbot.__init__s €Øˆ� ó...
1,107
Python
.py
9
121.888889
704
0.383076
enginestein/Baker
8
0
0
GPL-3.0
9/5/2024, 10:47:27 PM (Europe/Amsterdam)
2,283,788
test_functions.py
enginestein_Baker/tests/test_functions.py
import unittest import baker.bparser class TestFunctions(unittest.TestCase): def test_export_responses(self): response_file_name = "data.json" parser_instance = baker.bparser.Parser(response_file_name) parser_instance.export_responses(export_file_name="data2.json") def test_re...
942
Python
.py
21
36.857143
73
0.677278
enginestein/Baker
8
0
0
GPL-3.0
9/5/2024, 10:47:27 PM (Europe/Amsterdam)
2,283,789
test_loop_trainer.py
enginestein_Baker/tests/test_loop_trainer.py
import unittest import baker.trainer class TestLoopTrainer(unittest.TestCase): def test_loop_training(self): trainer = baker.trainer.Trainer('data.json') trainer.loop_training() if __name__ == '__main__': unittest.main()
257
Python
.py
8
26.625
53
0.677551
enginestein/Baker
8
0
0
GPL-3.0
9/5/2024, 10:47:27 PM (Europe/Amsterdam)
2,283,790
test_parser.py
enginestein_Baker/tests/test_parser.py
import unittest import baker.bparser class TestParser(unittest.TestCase): def test_chatbot(self): def test_chatbot(bot): pass bot = baker.bparser.Parser('data.json') test_chatbot(bot) if __name__ == '__main__': unittest.main()
287
Python
.py
10
21.7
48
0.616236
enginestein/Baker
8
0
0
GPL-3.0
9/5/2024, 10:47:27 PM (Europe/Amsterdam)
2,283,791
test_chatbot.py
enginestein_Baker/tests/test_chatbot.py
import os import unittest import baker.chatbot import baker.trainer import baker.bparser class TestChatbot(unittest.TestCase): def test_chatbot(self): script_dir = os.path.dirname(os.path.abspath(__file__)) data_file = os.path.join(script_dir, 'data.json') traine = baker.trainer...
543
Python
.py
15
30.066667
64
0.67433
enginestein/Baker
8
0
0
GPL-3.0
9/5/2024, 10:47:27 PM (Europe/Amsterdam)
2,283,792
test_trainer.py
enginestein_Baker/tests/test_trainer.py
import unittest import baker.trainer class TestTrainer(unittest.TestCase): def test_trainer(self): bot = baker.trainer.Trainer('data.json') user_input = input("You: ") response = bot.get_response(user_input) self.assertIsNotNone(response) new_response = input("New...
507
Python
.py
13
31.615385
66
0.651639
enginestein/Baker
8
0
0
GPL-3.0
9/5/2024, 10:47:27 PM (Europe/Amsterdam)
2,283,793
test_loop_trainer.cpython-312.pyc
enginestein_Baker/tests/__pycache__/test_loop_trainer.cpython-312.pyc
Ë £¨õeãól—ddlZddlZGd„dej«Zedk(rej «yy)éNcó—eZdZd„Zy)ÚTestLoopTrainercób—tjjd«}|j...
828
Python
.py
4
205.75
579
0.38303
enginestein/Baker
8
0
0
GPL-3.0
9/5/2024, 10:47:27 PM (Europe/Amsterdam)
2,283,794
test_trainer.cpython-312.pyc
enginestein_Baker/tests/__pycache__/test_trainer.cpython-312.pyc
Ë f©õeûãól—ddlZddlZGd„dej«Zedk(rej «yy)éNcó—eZdZd„Zy)Ú TestTrainercó—tjjd«}td«...
1,178
Python
.py
5
234.4
661
0.366269
enginestein/Baker
8
0
0
GPL-3.0
9/5/2024, 10:47:27 PM (Europe/Amsterdam)
2,283,795
test_parser.cpython-312.pyc
enginestein_Baker/tests/__pycache__/test_parser.cpython-312.pyc
Ë e©õeãól—ddlZddlZGd„dej«Zedk(rej «yy)éNcó—eZdZd„Zy)Ú TestParsercóX—d„}tjjd«}||«...
910
Python
.py
7
128.857143
339
0.369469
enginestein/Baker
8
0
0
GPL-3.0
9/5/2024, 10:47:27 PM (Europe/Amsterdam)
2,283,796
test_functions.cpython-312.pyc
enginestein_Baker/tests/__pycache__/test_functions.cpython-312.pyc
Ë Cªõe®ãól—ddlZddlZGd„dej«Zedk(rej «yy)éNcó$—eZdZd„Zd„Zd„Zd„Zy)Ú TestFunctionscój—d}tjj|...
2,087
Python
.py
15
138
433
0.394597
enginestein/Baker
8
0
0
GPL-3.0
9/5/2024, 10:47:27 PM (Europe/Amsterdam)
2,283,797
test_chatbot.cpython-312.pyc
enginestein_Baker/tests/__pycache__/test_chatbot.cpython-312.pyc
Ë ¼õe�ãó„—ddlZddlZddlZddlZddlZGd„dej «Zedk(rej«yy)éNcó—eZdZd„Zy)Ú TestChatbotcó¢—tjjt...
1,420
Python
.py
10
140.9
830
0.350106
enginestein/Baker
8
0
0
GPL-3.0
9/5/2024, 10:47:27 PM (Europe/Amsterdam)
2,283,798
trainer.cpython-312.pyc
enginestein_Baker/baker/__pycache__/trainer.cpython-312.pyc
Ë £õe_ ãóJ—ddlZddlZddlZddlmcmZddlZGd„d«Zy)éNcó0—eZdZd„Zd„Zd„Zd„Zd„Zd„Zy)ÚTrainercóR—||_|j|j«|_y©N...
4,442
Python
.pyt
23
192.086957
645
0.322172
enginestein/Baker
8
0
0
GPL-3.0
9/5/2024, 10:47:27 PM (Europe/Amsterdam)
2,283,799
bparser.cpython-312.pyc
enginestein_Baker/baker/__pycache__/bparser.cpython-312.pyc
Ë ¼õePãóJ—ddlZddlZddlZddlZddlmcmZGd„d«Zy)éNcóH—eZdZd„Zd„Zd„Zd„Zd„Zd„Zd„Z d„Z d „Z d „Z y ) ÚParsercóR—||_|j|j«...
6,420
Python
.pyt
36
177.305556
735
0.294753
enginestein/Baker
8
0
0
GPL-3.0
9/5/2024, 10:47:27 PM (Europe/Amsterdam)