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,288,100
general.py
TheNobody-12_MOT_WITH_YOLOV9_STRONG_SORT/general.py
# YOLOR general utils import glob import logging import math import os import platform import random import re import subprocess import time from pathlib import Path import cv2 import numpy as np import pandas as pd import torch import torchvision import yaml # Settings torch.set_printoptions(linewidth=320, precis...
36,746
Python
.py
717
43.260809
121
0.566903
TheNobody-12/MOT_WITH_YOLOV9_STRONG_SORT
8
1
1
GPL-3.0
9/5/2024, 10:48:26 PM (Europe/Amsterdam)
2,288,101
datasets.py
TheNobody-12_MOT_WITH_YOLOV9_STRONG_SORT/datasets.py
# Dataset utils and dataloaders import glob import logging import math import os import random import shutil import time from itertools import repeat from multiprocessing.pool import ThreadPool from pathlib import Path from threading import Thread import cv2 import numpy as np import torch import torch.nn.functional ...
56,226
Python
.py
1,086
40.577348
139
0.548081
TheNobody-12/MOT_WITH_YOLOV9_STRONG_SORT
8
1
1
GPL-3.0
9/5/2024, 10:48:26 PM (Europe/Amsterdam)
2,288,102
dataloaders.py
TheNobody-12_MOT_WITH_YOLOV9_STRONG_SORT/dataloaders.py
import contextlib import glob import hashlib import json import math import os import random import shutil import time from itertools import repeat from multiprocessing.pool import Pool, ThreadPool from pathlib import Path from threading import Thread from urllib.parse import urlparse import numpy as np import psutil ...
55,616
Python
.py
1,064
39.87594
120
0.547124
TheNobody-12/MOT_WITH_YOLOV9_STRONG_SORT
8
1
1
GPL-3.0
9/5/2024, 10:48:26 PM (Europe/Amsterdam)
2,288,103
Refinement_module.py
TheNobody-12_MOT_WITH_YOLOV9_STRONG_SORT/Refinement_module.py
import argparse import os # limit the number of cpus used by high performance libraries os.environ["OMP_NUM_THREADS"] = "1" os.environ["OPENBLAS_NUM_THREADS"] = "1" os.environ["MKL_NUM_THREADS"] = "1" os.environ["VECLIB_MAXIMUM_THREADS"] = "1" os.environ["NUMEXPR_NUM_THREADS"] = "1" import glob import os import plat...
22,005
Python
.py
398
44.565327
175
0.592033
TheNobody-12/MOT_WITH_YOLOV9_STRONG_SORT
8
1
1
GPL-3.0
9/5/2024, 10:48:26 PM (Europe/Amsterdam)
2,288,104
Refinement_trackv8.py
TheNobody-12_MOT_WITH_YOLOV9_STRONG_SORT/Refinement_trackv8.py
import argparse import os # limit the number of cpus used by high performance libraries os.environ["OMP_NUM_THREADS"] = "1" os.environ["OPENBLAS_NUM_THREADS"] = "1" os.environ["MKL_NUM_THREADS"] = "1" os.environ["VECLIB_MAXIMUM_THREADS"] = "1" os.environ["NUMEXPR_NUM_THREADS"] = "1" import glob import os import plat...
21,579
Python
.py
396
43.714646
154
0.588552
TheNobody-12/MOT_WITH_YOLOV9_STRONG_SORT
8
1
1
GPL-3.0
9/5/2024, 10:48:26 PM (Europe/Amsterdam)
2,288,105
Refinement_trackv9.py
TheNobody-12_MOT_WITH_YOLOV9_STRONG_SORT/Refinement_trackv9.py
import argparse import os # limit the number of cpus used by high performance libraries os.environ["OMP_NUM_THREADS"] = "1" os.environ["OPENBLAS_NUM_THREADS"] = "1" os.environ["MKL_NUM_THREADS"] = "1" os.environ["VECLIB_MAXIMUM_THREADS"] = "1" os.environ["NUMEXPR_NUM_THREADS"] = "1" import platform import sys import n...
21,536
Python
.py
377
45.986737
150
0.581695
TheNobody-12/MOT_WITH_YOLOV9_STRONG_SORT
8
1
1
GPL-3.0
9/5/2024, 10:48:26 PM (Europe/Amsterdam)
2,288,106
trackv9.py
TheNobody-12_MOT_WITH_YOLOV9_STRONG_SORT/trackv9.py
import argparse import os # limit the number of cpus used by high performance libraries os.environ["OMP_NUM_THREADS"] = "1" os.environ["OPENBLAS_NUM_THREADS"] = "1" os.environ["MKL_NUM_THREADS"] = "1" os.environ["VECLIB_MAXIMUM_THREADS"] = "1" os.environ["NUMEXPR_NUM_THREADS"] = "1" import platform import sys import n...
19,587
Python
.py
336
47.229167
150
0.577998
TheNobody-12/MOT_WITH_YOLOV9_STRONG_SORT
8
1
1
GPL-3.0
9/5/2024, 10:48:26 PM (Europe/Amsterdam)
2,288,107
reid_export.py
TheNobody-12_MOT_WITH_YOLOV9_STRONG_SORT/reid_export.py
import torch import argparse import sys import os from pathlib import Path import subprocess FILE = Path(__file__).resolve() ROOT = FILE.parents[0].parents[0] # yolov5 strongsort root directory WEIGHTS = ROOT / 'weights' if str(ROOT) not in sys.path: sys.path.append(str(ROOT)) # add ROOT to PATH if str(ROOT / '...
6,643
Python
.py
158
33.202532
142
0.60234
TheNobody-12/MOT_WITH_YOLOV9_STRONG_SORT
8
1
1
GPL-3.0
9/5/2024, 10:48:26 PM (Europe/Amsterdam)
2,288,108
trackv8.py
TheNobody-12_MOT_WITH_YOLOV9_STRONG_SORT/trackv8.py
import argparse import os # limit the number of cpus used by high performance libraries os.environ["OMP_NUM_THREADS"] = "1" os.environ["OPENBLAS_NUM_THREADS"] = "1" os.environ["MKL_NUM_THREADS"] = "1" os.environ["VECLIB_MAXIMUM_THREADS"] = "1" os.environ["NUMEXPR_NUM_THREADS"] = "1" import glob import os import plat...
21,620
Python
.py
387
44.687339
154
0.572851
TheNobody-12/MOT_WITH_YOLOV9_STRONG_SORT
8
1
1
GPL-3.0
9/5/2024, 10:48:26 PM (Europe/Amsterdam)
2,288,109
reid_multibackend.py
TheNobody-12_MOT_WITH_YOLOV9_STRONG_SORT/strong_sort/reid_multibackend.py
import torch.nn as nn import torch from pathlib import Path import numpy as np import torchvision.transforms as transforms import cv2 import pandas as pd import gdown from os.path import exists as file_exists from .deep.reid_model_factory import show_downloadeable_models, get_model_url, get_model_name from torchreid.r...
8,599
Python
.py
157
42.592357
118
0.59265
TheNobody-12/MOT_WITH_YOLOV9_STRONG_SORT
8
1
1
GPL-3.0
9/5/2024, 10:48:26 PM (Europe/Amsterdam)
2,288,110
__init__.py
TheNobody-12_MOT_WITH_YOLOV9_STRONG_SORT/strong_sort/__init__.py
from .strong_sort import StrongSORT __all__ = ['StrongSORT', 'build_tracker'] def build_tracker(cfg, use_cuda): return StrongSORT(cfg.STRONGSORT.REID_CKPT, max_dist=cfg.STRONGSORT.MAX_DIST, min_confidence=cfg.STRONGSORT.MIN_CONFIDENCE, nms_max_overlap=cfg.STRONGSORT.NMS_MAX_OVE...
510
Python
.py
7
63.428571
132
0.709419
TheNobody-12/MOT_WITH_YOLOV9_STRONG_SORT
8
1
1
GPL-3.0
9/5/2024, 10:48:26 PM (Europe/Amsterdam)
2,288,111
strong_sort.py
TheNobody-12_MOT_WITH_YOLOV9_STRONG_SORT/strong_sort/strong_sort.py
import numpy as np import torch import sys import cv2 import gdown from os.path import exists as file_exists, join import torchvision.transforms as transforms from .sort.nn_matching import NearestNeighborDistanceMetric from .sort.detection import Detection from .sort.tracker import Tracker # from .deep.reid_model_fact...
4,333
Python
.py
113
28.911504
95
0.577191
TheNobody-12/MOT_WITH_YOLOV9_STRONG_SORT
8
1
1
GPL-3.0
9/5/2024, 10:48:26 PM (Europe/Amsterdam)
2,288,112
reid_model_factory.py
TheNobody-12_MOT_WITH_YOLOV9_STRONG_SORT/strong_sort/deep/reid_model_factory.py
__model_types = [ 'resnet50', 'mlfn', 'hacnn', 'mobilenetv2_x1_0', 'mobilenetv2_x1_4', 'osnet_x1_0', 'osnet_x0_75', 'osnet_x0_5', 'osnet_x0_25', 'osnet_ibn_x1_0', 'osnet_ain_x1_0'] __trained_urls = { # market1501 models ######################################################## 'resnet50_market1501....
4,862
Python
.py
103
41.990291
80
0.696855
TheNobody-12/MOT_WITH_YOLOV9_STRONG_SORT
8
1
1
GPL-3.0
9/5/2024, 10:48:26 PM (Europe/Amsterdam)
2,288,113
iou_matching.py
TheNobody-12_MOT_WITH_YOLOV9_STRONG_SORT/strong_sort/sort/iou_matching.py
# vim: expandtab:ts=4:sw=4 from __future__ import absolute_import import numpy as np from . import linear_assignment def iou(bbox, candidates): """Computer intersection over union. Parameters ---------- bbox : ndarray A bounding box in format `(top left x, top left y, width, height)`. can...
2,843
Python
.py
68
34.911765
80
0.635277
TheNobody-12/MOT_WITH_YOLOV9_STRONG_SORT
8
1
1
GPL-3.0
9/5/2024, 10:48:26 PM (Europe/Amsterdam)
2,288,114
track.py
TheNobody-12_MOT_WITH_YOLOV9_STRONG_SORT/strong_sort/sort/track.py
# vim: expandtab:ts=4:sw=4 import cv2 import numpy as np from strong_sort.sort.kalman_filter import KalmanFilter class TrackState: """ Enumeration type for the single target track state. Newly created tracks are classified as `tentative` until enough evidence has been collected. Then, the track state ...
10,631
Python
.py
258
31.44186
122
0.589358
TheNobody-12/MOT_WITH_YOLOV9_STRONG_SORT
8
1
1
GPL-3.0
9/5/2024, 10:48:26 PM (Europe/Amsterdam)
2,288,115
preprocessing.py
TheNobody-12_MOT_WITH_YOLOV9_STRONG_SORT/strong_sort/sort/preprocessing.py
# vim: expandtab:ts=4:sw=4 import numpy as np import cv2 def non_max_suppression(boxes, max_bbox_overlap, scores=None): """Suppress overlapping detections. Original code from [1]_ has been adapted to include confidence score. .. [1] http://www.pyimagesearch.com/2015/02/16/ faster-non-maximum-...
1,914
Python
.py
55
27.672727
80
0.571972
TheNobody-12/MOT_WITH_YOLOV9_STRONG_SORT
8
1
1
GPL-3.0
9/5/2024, 10:48:26 PM (Europe/Amsterdam)
2,288,116
nn_matching.py
TheNobody-12_MOT_WITH_YOLOV9_STRONG_SORT/strong_sort/sort/nn_matching.py
# vim: expandtab:ts=4:sw=4 import numpy as np import sys import torch sys.path.append('strong_sort/deep/reid') from torchreid.reid.metrics.distance import compute_distance_matrix def _pdist(a, b): """Compute pair-wise squared distance between points in `a` and `b`. Parameters ---------- a : array_like...
5,962
Python
.py
151
32.337748
83
0.625625
TheNobody-12/MOT_WITH_YOLOV9_STRONG_SORT
8
1
1
GPL-3.0
9/5/2024, 10:48:26 PM (Europe/Amsterdam)
2,288,117
kalman_filter.py
TheNobody-12_MOT_WITH_YOLOV9_STRONG_SORT/strong_sort/sort/kalman_filter.py
# vim: expandtab:ts=4:sw=4 import numpy as np import scipy.linalg """ Table for the 0.95 quantile of the chi-square distribution with N degrees of freedom (contains values for N=1, ..., 9). Taken from MATLAB/Octave's chi2inv function and used as Mahalanobis gating threshold. """ chi2inv95 = { 1: 3.8415, 2: 5.99...
8,114
Python
.py
192
32.567708
89
0.598832
TheNobody-12/MOT_WITH_YOLOV9_STRONG_SORT
8
1
1
GPL-3.0
9/5/2024, 10:48:26 PM (Europe/Amsterdam)
2,288,118
tracker.py
TheNobody-12_MOT_WITH_YOLOV9_STRONG_SORT/strong_sort/sort/tracker.py
# vim: expandtab:ts=4:sw=4 from __future__ import absolute_import import numpy as np from . import kalman_filter from . import linear_assignment from . import iou_matching from .track import Track class Tracker: """ This is the multi-target tracker. Parameters ---------- metric : nn_matching.Neare...
7,684
Python
.py
155
40.174194
125
0.649527
TheNobody-12/MOT_WITH_YOLOV9_STRONG_SORT
8
1
1
GPL-3.0
9/5/2024, 10:48:26 PM (Europe/Amsterdam)
2,288,119
linear_assignment.py
TheNobody-12_MOT_WITH_YOLOV9_STRONG_SORT/strong_sort/sort/linear_assignment.py
# vim: expandtab:ts=4:sw=4 from __future__ import absolute_import import numpy as np from scipy.optimize import linear_sum_assignment from . import kalman_filter INFTY_COST = 1e+5 def min_cost_matching( distance_metric, max_distance, tracks, detections, track_indices=None, detection_indices=None): ...
7,624
Python
.py
162
39.969136
109
0.684606
TheNobody-12/MOT_WITH_YOLOV9_STRONG_SORT
8
1
1
GPL-3.0
9/5/2024, 10:48:26 PM (Europe/Amsterdam)
2,288,120
detection.py
TheNobody-12_MOT_WITH_YOLOV9_STRONG_SORT/strong_sort/sort/detection.py
# vim: expandtab:ts=4:sw=4 import numpy as np class Detection(object): """ This class represents a bounding box detection in a single image. Parameters ---------- tlwh : array_like Bounding box in format `(x, y, w, h)`. confidence : float Detector confidence score. feature...
1,441
Python
.py
41
28.097561
79
0.602011
TheNobody-12/MOT_WITH_YOLOV9_STRONG_SORT
8
1
1
GPL-3.0
9/5/2024, 10:48:26 PM (Europe/Amsterdam)
2,288,121
json_logger.py
TheNobody-12_MOT_WITH_YOLOV9_STRONG_SORT/strong_sort/utils/json_logger.py
""" References: https://medium.com/analytics-vidhya/creating-a-custom-logging-mechanism-for-real-time-object-detection-using-tdd-4ca2cfcd0a2f """ import json from os import makedirs from os.path import exists, join from datetime import datetime class JsonMeta(object): HOURS = 3 MINUTES = 59 SECONDS = ...
11,762
Python
.py
314
27.347134
129
0.563846
TheNobody-12/MOT_WITH_YOLOV9_STRONG_SORT
8
1
1
GPL-3.0
9/5/2024, 10:48:26 PM (Europe/Amsterdam)
2,288,122
io.py
TheNobody-12_MOT_WITH_YOLOV9_STRONG_SORT/strong_sort/utils/io.py
import os from typing import Dict import numpy as np # from utils.log import get_logger def write_results(filename, results, data_type): if data_type == 'mot': save_format = '{frame},{id},{x1},{y1},{w},{h},-1,-1,-1,-1\n' elif data_type == 'kitti': save_format = '{frame} {id} pedestrian 0 0 -1...
4,357
Python
.py
111
30.423423
121
0.493491
TheNobody-12/MOT_WITH_YOLOV9_STRONG_SORT
8
1
1
GPL-3.0
9/5/2024, 10:48:26 PM (Europe/Amsterdam)
2,288,123
evaluation.py
TheNobody-12_MOT_WITH_YOLOV9_STRONG_SORT/strong_sort/utils/evaluation.py
import os import numpy as np import copy import motmetrics as mm mm.lap.default_solver = 'lap' from utils.io import read_results, unzip_objs class Evaluator(object): def __init__(self, data_root, seq_name, data_type): self.data_root = data_root self.seq_name = seq_name self.data_type = da...
3,532
Python
.py
80
35.1125
112
0.619131
TheNobody-12/MOT_WITH_YOLOV9_STRONG_SORT
8
1
1
GPL-3.0
9/5/2024, 10:48:26 PM (Europe/Amsterdam)
2,288,124
draw.py
TheNobody-12_MOT_WITH_YOLOV9_STRONG_SORT/strong_sort/utils/draw.py
import numpy as np import cv2 palette = (2 ** 11 - 1, 2 ** 15 - 1, 2 ** 20 - 1) def compute_color_for_labels(label): """ Simple function that adds fixed color depending on the class """ color = [int((p * (label ** 2 - label + 1)) % 255) for p in palette] return tuple(color) def draw_boxes(img, ...
1,125
Python
.py
28
33.607143
95
0.577594
TheNobody-12/MOT_WITH_YOLOV9_STRONG_SORT
8
1
1
GPL-3.0
9/5/2024, 10:48:26 PM (Europe/Amsterdam)
2,288,125
asserts.py
TheNobody-12_MOT_WITH_YOLOV9_STRONG_SORT/strong_sort/utils/asserts.py
from os import environ def assert_in(file, files_to_check): if file not in files_to_check: raise AssertionError("{} does not exist in the list".format(str(file))) return True def assert_in_env(check_list: list): for item in check_list: assert_in(item, environ.keys()) return True
316
Python
.py
9
30.111111
79
0.693069
TheNobody-12/MOT_WITH_YOLOV9_STRONG_SORT
8
1
1
GPL-3.0
9/5/2024, 10:48:26 PM (Europe/Amsterdam)
2,288,126
log.py
TheNobody-12_MOT_WITH_YOLOV9_STRONG_SORT/strong_sort/utils/log.py
import logging def get_logger(name='root'): formatter = logging.Formatter( # fmt='%(asctime)s [%(levelname)s]: %(filename)s(%(funcName)s:%(lineno)s) >> %(message)s') fmt='%(asctime)s [%(levelname)s]: %(message)s', datefmt='%Y-%m-%d %H:%M:%S') handler = logging.StreamHandler() handler.setF...
463
Python
.py
11
36.545455
98
0.661435
TheNobody-12/MOT_WITH_YOLOV9_STRONG_SORT
8
1
1
GPL-3.0
9/5/2024, 10:48:26 PM (Europe/Amsterdam)
2,288,127
tools.py
TheNobody-12_MOT_WITH_YOLOV9_STRONG_SORT/strong_sort/utils/tools.py
from functools import wraps from time import time def is_video(ext: str): """ Returns true if ext exists in allowed_exts for video files. Args: ext: Returns: """ allowed_exts = ('.mp4', '.webm', '.ogg', '.avi', '.wmv', '.mkv', '.3gp') return any((ext.endswith(x) for x in al...
734
Python
.py
28
19.821429
90
0.541007
TheNobody-12/MOT_WITH_YOLOV9_STRONG_SORT
8
1
1
GPL-3.0
9/5/2024, 10:48:26 PM (Europe/Amsterdam)
2,288,128
parser.py
TheNobody-12_MOT_WITH_YOLOV9_STRONG_SORT/strong_sort/utils/parser.py
import os import yaml from easydict import EasyDict as edict class YamlParser(edict): """ This is yaml parser based on EasyDict. """ def __init__(self, cfg_dict=None, config_file=None): if cfg_dict is None: cfg_dict = {} if config_file is not None: assert(os.p...
1,078
Python
.py
29
29.689655
68
0.620058
TheNobody-12/MOT_WITH_YOLOV9_STRONG_SORT
8
1
1
GPL-3.0
9/5/2024, 10:48:26 PM (Europe/Amsterdam)
2,288,129
window.py
oyajun_color-code/src/window.py
# window.py # # Copyright 2024 oyajun # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later version. # # This program is distributed ...
6,894
Python
.py
155
35.341935
80
0.599494
oyajun/color-code
8
7
3
GPL-3.0
9/5/2024, 10:48:26 PM (Europe/Amsterdam)
2,288,130
main.py
oyajun_color-code/src/main.py
# main.py # # Copyright 2024 oyajun # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later version. # # This program is distributed in...
3,445
Python
.py
78
33.961538
93
0.612172
oyajun/color-code
8
7
3
GPL-3.0
9/5/2024, 10:48:26 PM (Europe/Amsterdam)
2,288,131
client.py
qaml-ai_qaml-python/qaml/client.py
from appium import webdriver from appium.options.ios import XCUITestOptions from appium.options.android import UiAutomator2Options from appium.webdriver.common.appiumby import AppiumBy import re import time import base64 import subprocess import json from PIL import Image from io import BytesIO import requests import o...
16,834
Python
.py
335
39.256716
294
0.600389
qaml-ai/qaml-python
8
0
1
AGPL-3.0
9/5/2024, 10:48:26 PM (Europe/Amsterdam)
2,288,132
__main__.py
qaml-ai_qaml-python/qaml/__main__.py
import qaml import sys import os import readline def main(): # get api key from environment variable api_key = os.environ.get("QAML_API_KEY") use_mjpeg = os.environ.get("QAML_USE_MJPEG", "true").lower() == "true" if api_key is None: print("Please set the QAML_API_KEY environment variable") ...
948
Python
.py
30
23.7
74
0.567213
qaml-ai/qaml-python
8
0
1
AGPL-3.0
9/5/2024, 10:48:26 PM (Europe/Amsterdam)
2,288,133
cli_agent.py
qaml-ai_qaml-python/qaml/cli_agent.py
import qaml import sys import os import readline def main(): # get api key from environment variable api_key = os.environ.get("QAML_API_KEY") use_mjpeg = os.environ.get("QAML_USE_MJPEG", "true").lower() == "true" if api_key is None: print("Please set the QAML_API_KEY environment variable") ...
981
Python
.py
30
23.9
74
0.559536
qaml-ai/qaml-python
8
0
1
AGPL-3.0
9/5/2024, 10:48:26 PM (Europe/Amsterdam)
2,288,134
conf.py
gerlero_foamlib/docs/conf.py
# Configuration file for the Sphinx documentation builder. # # For the full list of built-in configuration values, see the documentation: # https://www.sphinx-doc.org/en/master/usage/configuration.html # -- Project information ----------------------------------------------------- # https://www.sphinx-doc.org/en/master...
981
Python
.py
18
53.055556
87
0.643979
gerlero/foamlib
8
2
0
GPL-3.0
9/5/2024, 10:48:26 PM (Europe/Amsterdam)
2,288,135
__init__.py
gerlero_foamlib/foamlib/__init__.py
"""A Python interface for interacting with OpenFOAM.""" __version__ = "0.6.10" from ._cases import ( AsyncFoamCase, AsyncSlurmFoamCase, CalledProcessError, FoamCase, FoamCaseBase, FoamCaseRunBase, ) from ._files import FoamFieldFile, FoamFile, FoamFileBase __all__ = [ "AsyncFoamCase", ...
487
Python
.py
22
18.272727
57
0.692641
gerlero/foamlib
8
2
0
GPL-3.0
9/5/2024, 10:48:26 PM (Europe/Amsterdam)
2,288,136
_subprocess.py
gerlero_foamlib/foamlib/_cases/_subprocess.py
import asyncio import subprocess import sys from io import BytesIO from typing import IO, TYPE_CHECKING, Optional, Union if TYPE_CHECKING: import os if sys.version_info >= (3, 9): from collections.abc import Mapping, Sequence else: from typing import Mapping, Sequence CompletedProcess = subprocess.Comple...
3,952
Python
.py
123
24.211382
70
0.599947
gerlero/foamlib
8
2
0
GPL-3.0
9/5/2024, 10:48:26 PM (Europe/Amsterdam)
2,288,137
_run.py
gerlero_foamlib/foamlib/_cases/_run.py
import os import shlex import shutil import sys import tempfile from abc import abstractmethod from contextlib import contextmanager from pathlib import Path from typing import ( IO, Any, Optional, Tuple, Union, ) if sys.version_info >= (3, 9): from collections.abc import ( Callable, ...
14,725
Python
.py
383
26.637076
116
0.525172
gerlero/foamlib
8
2
0
GPL-3.0
9/5/2024, 10:48:26 PM (Europe/Amsterdam)
2,288,138
_util.py
gerlero_foamlib/foamlib/_cases/_util.py
import functools import sys from types import TracebackType from typing import ( Any, AsyncContextManager, Callable, Generic, Optional, Type, TypeVar, ) if sys.version_info >= (3, 9): from collections.abc import Generator else: from typing import Generator Y = TypeVar("Y") S = Typ...
1,493
Python
.py
46
27.326087
73
0.64829
gerlero/foamlib
8
2
0
GPL-3.0
9/5/2024, 10:48:26 PM (Europe/Amsterdam)
2,288,139
__init__.py
gerlero_foamlib/foamlib/_cases/__init__.py
from ._async import AsyncFoamCase from ._base import FoamCaseBase from ._run import FoamCaseRunBase from ._slurm import AsyncSlurmFoamCase from ._subprocess import CalledProcessError from ._sync import FoamCase __all__ = [ "AsyncFoamCase", "FoamCaseBase", "FoamCaseRunBase", "AsyncSlurmFoamCase", "C...
358
Python
.py
14
22.785714
43
0.763848
gerlero/foamlib
8
2
0
GPL-3.0
9/5/2024, 10:48:26 PM (Europe/Amsterdam)
2,288,140
_async.py
gerlero_foamlib/foamlib/_cases/_async.py
import asyncio import multiprocessing import sys from contextlib import asynccontextmanager from typing import TYPE_CHECKING, Any, Callable, Optional, TypeVar, Union, overload if sys.version_info >= (3, 9): from collections.abc import ( AsyncGenerator, Awaitable, Collection, Iterabl...
7,920
Python
.py
192
33.041667
181
0.632148
gerlero/foamlib
8
2
0
GPL-3.0
9/5/2024, 10:48:26 PM (Europe/Amsterdam)
2,288,141
_sync.py
gerlero_foamlib/foamlib/_cases/_sync.py
import shutil import sys from types import TracebackType from typing import TYPE_CHECKING, Any, Callable, Optional, Type, Union, overload if sys.version_info >= (3, 9): from collections.abc import Collection, Sequence else: from typing import Collection, Sequence if sys.version_info >= (3, 11): from typin...
6,049
Python
.py
149
32.724832
181
0.618259
gerlero/foamlib
8
2
0
GPL-3.0
9/5/2024, 10:48:26 PM (Europe/Amsterdam)
2,288,142
_slurm.py
gerlero_foamlib/foamlib/_cases/_slurm.py
import shutil import sys from typing import TYPE_CHECKING, Any, Optional, Union if sys.version_info >= (3, 9): from collections.abc import Sequence else: from typing import Sequence from ._async import AsyncFoamCase from ._subprocess import run_async if TYPE_CHECKING: import os class AsyncSlurmFoamCase...
2,346
Python
.py
59
31.305085
181
0.604396
gerlero/foamlib
8
2
0
GPL-3.0
9/5/2024, 10:48:26 PM (Europe/Amsterdam)
2,288,143
_base.py
gerlero_foamlib/foamlib/_cases/_base.py
import shutil import sys from pathlib import Path from typing import ( TYPE_CHECKING, Optional, Union, overload, ) if sys.version_info >= (3, 9): from collections.abc import ( Iterator, Sequence, Set, ) else: from typing import AbstractSet as Set from typing impo...
6,733
Python
.py
175
29
118
0.576516
gerlero/foamlib
8
2
0
GPL-3.0
9/5/2024, 10:48:26 PM (Europe/Amsterdam)
2,288,144
_parsing.py
gerlero_foamlib/foamlib/_files/_parsing.py
import array import sys from typing import Tuple, Union, cast if sys.version_info >= (3, 9): from collections.abc import Iterator, Mapping, MutableMapping, Sequence else: from typing import Iterator, Mapping, MutableMapping, Sequence if sys.version_info >= (3, 10): from types import EllipsisType else: ...
9,394
Python
.py
272
25.5
87
0.536438
gerlero/foamlib
8
2
0
GPL-3.0
9/5/2024, 10:48:26 PM (Europe/Amsterdam)
2,288,145
_util.py
gerlero_foamlib/foamlib/_files/_util.py
import sys from typing import Any if sys.version_info >= (3, 9): from collections.abc import Sequence else: from typing import Sequence if sys.version_info >= (3, 10): from typing import TypeGuard else: from typing_extensions import TypeGuard def is_sequence( value: Any, ) -> TypeGuard[Sequence[...
397
Python
.py
14
25.357143
69
0.746702
gerlero/foamlib
8
2
0
GPL-3.0
9/5/2024, 10:48:26 PM (Europe/Amsterdam)
2,288,146
__init__.py
gerlero_foamlib/foamlib/_files/__init__.py
from ._base import FoamFileBase from ._files import FoamFieldFile, FoamFile __all__ = [ "FoamFile", "FoamFieldFile", "FoamFileBase", ]
148
Python
.py
7
18.285714
43
0.7
gerlero/foamlib
8
2
0
GPL-3.0
9/5/2024, 10:48:26 PM (Europe/Amsterdam)
2,288,147
_files.py
gerlero_foamlib/foamlib/_files/_files.py
import sys from typing import TYPE_CHECKING, Any, Optional, Tuple, Union, cast if sys.version_info >= (3, 8): from typing import Literal else: from typing_extensions import Literal if sys.version_info >= (3, 9): from collections.abc import Iterator, Mapping, MutableMapping, Sequence else: from typing ...
16,025
Python
.py
394
28.941624
112
0.526597
gerlero/foamlib
8
2
0
GPL-3.0
9/5/2024, 10:48:26 PM (Europe/Amsterdam)
2,288,148
_serialization.py
gerlero_foamlib/foamlib/_files/_serialization.py
import array import itertools import sys from enum import Enum, auto if sys.version_info >= (3, 9): from collections.abc import Mapping else: from typing import Mapping from ._base import FoamFileBase from ._util import is_sequence try: import numpy as np numpy = True except ModuleNotFoundError: ...
3,341
Python
.py
97
25.402062
86
0.546216
gerlero/foamlib
8
2
0
GPL-3.0
9/5/2024, 10:48:26 PM (Europe/Amsterdam)
2,288,149
_io.py
gerlero_foamlib/foamlib/_files/_io.py
import gzip import sys from copy import deepcopy from pathlib import Path from types import TracebackType from typing import ( TYPE_CHECKING, Optional, Tuple, Type, Union, ) if sys.version_info >= (3, 11): from typing import Self else: from typing_extensions import Self from ._parsing impo...
2,467
Python
.py
74
24.391892
73
0.562053
gerlero/foamlib
8
2
0
GPL-3.0
9/5/2024, 10:48:26 PM (Europe/Amsterdam)
2,288,150
_base.py
gerlero_foamlib/foamlib/_files/_base.py
import sys from dataclasses import dataclass from typing import TYPE_CHECKING, Dict, NamedTuple, Optional, Tuple, Union if TYPE_CHECKING: import numpy as np if sys.version_info >= (3, 9): from collections.abc import Mapping, Sequence else: from typing import Mapping, Sequence class FoamFileBase: cla...
1,920
Python
.py
56
26.892857
118
0.59493
gerlero/foamlib
8
2
0
GPL-3.0
9/5/2024, 10:48:26 PM (Europe/Amsterdam)
2,288,151
test_flange_async.py
gerlero_foamlib/tests/test_cases/test_flange_async.py
import os import sys from pathlib import Path if sys.version_info >= (3, 9): from collections.abc import AsyncGenerator else: from typing import AsyncGenerator import pytest import pytest_asyncio from foamlib import AsyncFoamCase, AsyncSlurmFoamCase, CalledProcessError @pytest_asyncio.fixture(params=[AsyncF...
2,869
Python
.py
78
30.358974
88
0.675939
gerlero/foamlib
8
2
0
GPL-3.0
9/5/2024, 10:48:26 PM (Europe/Amsterdam)
2,288,152
test_cavity_async.py
gerlero_foamlib/tests/test_cases/test_cavity_async.py
import os import stat import sys from pathlib import Path from typing import Sequence if sys.version_info >= (3, 9): from collections.abc import AsyncGenerator else: from typing import AsyncGenerator import pytest import pytest_asyncio from foamlib import AsyncFoamCase @pytest_asyncio.fixture(params=[False,...
2,866
Python
.py
68
35.132353
149
0.6548
gerlero/foamlib
8
2
0
GPL-3.0
9/5/2024, 10:48:26 PM (Europe/Amsterdam)
2,288,153
test_flange.py
gerlero_foamlib/tests/test_cases/test_flange.py
import os import sys from pathlib import Path if sys.version_info >= (3, 9): from collections.abc import Generator else: from typing import Generator import pytest from foamlib import CalledProcessError, FoamCase @pytest.fixture def flange() -> Generator[FoamCase, None, None]: tutorials_path = Path(os.e...
1,966
Python
.py
59
26.983051
86
0.64036
gerlero/foamlib
8
2
0
GPL-3.0
9/5/2024, 10:48:26 PM (Europe/Amsterdam)
2,288,154
test_cavity.py
gerlero_foamlib/tests/test_cases/test_cavity.py
import os import stat import sys from pathlib import Path from typing import Sequence if sys.version_info >= (3, 9): from collections.abc import Generator else: from typing import Generator import pytest from foamlib import FoamCase @pytest.fixture(params=[False, True]) def cavity(request: pytest.FixtureReq...
2,055
Python
.py
51
33.607843
149
0.661809
gerlero/foamlib
8
2
0
GPL-3.0
9/5/2024, 10:48:26 PM (Europe/Amsterdam)
2,288,155
test_dumpb.py
gerlero_foamlib/tests/test_files/test_dumpb.py
from foamlib import FoamFile from foamlib._files._serialization import Kind, dumps def test_serialize_data() -> None: assert dumps(1) == b"1" assert dumps(1.0) == b"1.0" assert dumps(1.0e-3) == b"0.001" assert dumps(True) == b"yes" assert dumps(False) == b"no" assert dumps("word") == b"word" ...
3,000
Python
.py
65
39.030769
323
0.543812
gerlero/foamlib
8
2
0
GPL-3.0
9/5/2024, 10:48:26 PM (Europe/Amsterdam)
2,288,156
test_files.py
gerlero_foamlib/tests/test_files/test_files.py
import os import sys from pathlib import Path if sys.version_info >= (3, 9): from collections.abc import Generator, Sequence else: from typing import Generator, Sequence import numpy as np import pytest from foamlib import FoamCase, FoamFieldFile, FoamFile def test_write_read(tmp_path: Path) -> None: pa...
7,232
Python
.py
191
32.544503
88
0.631164
gerlero/foamlib
8
2
0
GPL-3.0
9/5/2024, 10:48:26 PM (Europe/Amsterdam)
2,288,157
test_parsing.py
gerlero_foamlib/tests/test_files/test_parsing.py
from foamlib import FoamFile from foamlib._files._parsing import Parsed def test_parse_value() -> None: assert Parsed(b"1")[()] == 1 assert Parsed(b"1.0")[()] == 1.0 assert Parsed(b"1.0e-3")[()] == 1.0e-3 assert Parsed(b"yes")[()] is True assert Parsed(b"no")[()] is False assert Parsed(b"word"...
3,016
Python
.py
72
35.75
212
0.50068
gerlero/foamlib
8
2
0
GPL-3.0
9/5/2024, 10:48:26 PM (Europe/Amsterdam)
2,288,158
blue_self_organization_imaginary_time.py
qo-eth_TorchGPE/examples/blue_self_organization/imaginary_time/blue_self_organization_imaginary_time.py
from datetime import datetime from torchgpe.bec2D import Gas from torchgpe.bec2D.callbacks import CavityMonitor from torchgpe.bec2D.potentials import Contact, DispersiveCavity, Trap from torchgpe.utils.potentials import linear_ramp from torchgpe.utils import parse_config import numpy as np import torch import matplot...
3,150
Python
.py
53
55.339623
178
0.672318
qo-eth/TorchGPE
8
1
1
GPL-3.0
9/5/2024, 10:48:26 PM (Europe/Amsterdam)
2,288,159
blue_self_organization_real_time.py
qo-eth_TorchGPE/examples/blue_self_organization/real_time/blue_self_organization_real_time.py
from datetime import datetime from torchgpe.bec2D import Gas from torchgpe.bec2D.callbacks import CavityMonitor from torchgpe.bec2D.potentials import Contact, DispersiveCavity, Trap from torchgpe.utils.potentials import linear_ramp from torchgpe.utils import parse_config import numpy as np import torch import matplot...
3,253
Python
.py
55
55.327273
178
0.679621
qo-eth/TorchGPE
8
1
1
GPL-3.0
9/5/2024, 10:48:26 PM (Europe/Amsterdam)
2,288,160
cavity_self_organization_imaginary_time.py
qo-eth_TorchGPE/examples/cavity_self_organization/imaginary_time/cavity_self_organization_imaginary_time.py
from torchgpe.bec2D import Gas from torchgpe.bec2D.callbacks import CavityMonitor from torchgpe.bec2D.potentials import Contact, DispersiveCavity, Trap from torchgpe.utils.potentials import linear_ramp from torchgpe.utils import parse_config import numpy as np import torch import matplotlib.pyplot as plt from matplotl...
3,533
Python
.py
66
47.560606
157
0.643148
qo-eth/TorchGPE
8
1
1
GPL-3.0
9/5/2024, 10:48:26 PM (Europe/Amsterdam)
2,288,161
cavity_self_organization_real_time.py
qo-eth_TorchGPE/examples/cavity_self_organization/real_time/cavity_self_organization_real_time.py
from torchgpe.bec2D import Gas from torchgpe.bec2D.callbacks import CavityMonitor from torchgpe.bec2D.potentials import Contact, DispersiveCavity, Trap from torchgpe.utils.potentials import linear_ramp from torchgpe.utils import parse_config from datetime import datetime import numpy as np import torch import matplotl...
3,487
Python
.py
57
57.368421
186
0.680118
qo-eth/TorchGPE
8
1
1
GPL-3.0
9/5/2024, 10:48:26 PM (Europe/Amsterdam)
2,288,162
raman_nath.py
qo-eth_TorchGPE/examples/raman_nath/raman_nath.py
from datetime import datetime from torchgpe.bec2D import Gas from torchgpe.bec2D.potentials import Contact, Trap, Lattice from torchgpe.utils import parse_config import numpy as np import torch import matplotlib.pyplot as plt from matplotlib import ticker from scipy.constants import hbar, codata from tqdm.auto import...
2,346
Python
.py
48
44.708333
148
0.675557
qo-eth/TorchGPE
8
1
1
GPL-3.0
9/5/2024, 10:48:26 PM (Europe/Amsterdam)
2,288,163
thomas_fermi_profile.py
qo-eth_TorchGPE/examples/thomas_fermi_profile/thomas_fermi_profile.py
from torchgpe.bec2D import Gas from torchgpe.bec2D.potentials import Contact, Trap from torchgpe.utils import parse_config import numpy as np import torch import matplotlib.pyplot as plt from scipy.constants import hbar, physical_constants from datetime import datetime a_bohr = physical_constants["Bohr radius"][0] ...
1,813
Python
.py
30
58.9
155
0.705483
qo-eth/TorchGPE
8
1
1
GPL-3.0
9/5/2024, 10:48:26 PM (Europe/Amsterdam)
2,288,164
conf.py
qo-eth_TorchGPE/docs/source/conf.py
# Configuration file for the Sphinx documentation builder. # # For the full list of built-in configuration values, see the documentation: # https://www.sphinx-doc.org/en/master/usage/configuration.html # -- Project information ----------------------------------------------------- # https://www.sphinx-doc.org/en/master...
2,262
Python
.py
65
30.123077
87
0.605769
qo-eth/TorchGPE
8
1
1
GPL-3.0
9/5/2024, 10:48:26 PM (Europe/Amsterdam)
2,288,165
configuration.py
qo-eth_TorchGPE/torchgpe/utils/configuration.py
import warnings import yaml from math import sqrt import re from scipy. constants import pi, hbar, c from .potentials import linear_ramp, quench, s_ramp # The global variables that are available to the !eval tag __globals = { # Prevents the user from accessing builtins '__builtins__': None, # Allows the us...
2,390
Python
.py
59
35.40678
155
0.640449
qo-eth/TorchGPE
8
1
1
GPL-3.0
9/5/2024, 10:48:26 PM (Europe/Amsterdam)
2,288,166
potentials.py
qo-eth_TorchGPE/torchgpe/utils/potentials.py
from abc import ABCMeta, abstractmethod import torch # --- Time dependent parameters --- def time_dependent_variable(var): """Transform a variable into a function of time Args: var (Union[float, Callable]): The variable to transform. If it is a function, it is returned as is. If it is a constant, i...
6,182
Python
.py
109
49.174312
189
0.658917
qo-eth/TorchGPE
8
1
1
GPL-3.0
9/5/2024, 10:48:26 PM (Europe/Amsterdam)
2,288,167
plotting.py
qo-eth_TorchGPE/torchgpe/utils/plotting.py
import matplotlib.pyplot as plt from mpl_toolkits.axes_grid1.axes_divider import make_axes_locatable import numpy as np def pi_tick_formatter(val, _): """Formats a tick value in multiples of pi. Args: val (float): The tick value. _ (int): The tick position. """ if val == 0: re...
565
Python
.py
14
35.071429
104
0.597806
qo-eth/TorchGPE
8
1
1
GPL-3.0
9/5/2024, 10:48:26 PM (Europe/Amsterdam)
2,288,168
__init__.py
qo-eth_TorchGPE/torchgpe/utils/__init__.py
import torch from .configuration import parse_config import functools import operator def ftn(f): """Performs an n-dimensional Fourier transform. Args: f (torch.Tensor): The function to transform. """ return torch.fft.fftshift(torch.fft.fftn(torch.fft.ifftshift(f), norm="ortho")) def iftn(f...
1,974
Python
.py
50
32.96
173
0.652311
qo-eth/TorchGPE
8
1
1
GPL-3.0
9/5/2024, 10:48:26 PM (Europe/Amsterdam)
2,288,169
elements.py
qo-eth_TorchGPE/torchgpe/utils/elements.py
import scipy.constants as spconsts import numpy as np # A dictionary of elements. #: dict(str, dict(str, float)): The dictionary of implemented elements. The keys are the element symbols, and the values are dictionaries of properties. The currently implemnted elements are ``'87Rb'`` and ``'39K'``, while the available...
701
Python
.py
14
45.357143
306
0.660819
qo-eth/TorchGPE
8
1
1
GPL-3.0
9/5/2024, 10:48:26 PM (Europe/Amsterdam)
2,288,170
callbacks.py
qo-eth_TorchGPE/torchgpe/utils/callbacks.py
import torch from abc import ABCMeta class Callback(metaclass=ABCMeta): """Base class for callbacks. Before a simulation starts, it is provided with the instance of the :class:`gpe.bec2D.gas.Gas` (stored in the :py:attr:`gpe.utils.callbacks.Callback.gas` variable) and with a dictionary of parameters for the...
6,819
Python
.py
145
38.22069
293
0.615036
qo-eth/TorchGPE
8
1
1
GPL-3.0
9/5/2024, 10:48:26 PM (Europe/Amsterdam)
2,288,171
propagation.py
qo-eth_TorchGPE/torchgpe/utils/propagation.py
from .potentials import LinearPotential, NonLinearPotential import torch from tqdm.auto import tqdm, trange def imaginary_time_propagation(gas, potentials, time_step, N_iterations, callbacks, leave_progress_bar=True): """Performs imaginary time propagation of a wave function. Args: gas (Gas): The gas...
7,360
Python
.py
111
58.396396
185
0.723899
qo-eth/TorchGPE
8
1
1
GPL-3.0
9/5/2024, 10:48:26 PM (Europe/Amsterdam)
2,288,172
potentials.py
qo-eth_TorchGPE/torchgpe/bec2D/potentials.py
from __future__ import annotations from typing import Union, Callable import scipy.constants as spconsts import numpy as np import torch from ..utils.potentials import LinearPotential, NonLinearPotential, any_time_dependent_variable, time_dependent_variable # --- Linear potentials --- class Zero(LinearPotential): ...
11,954
Python
.py
215
46.344186
249
0.626435
qo-eth/TorchGPE
8
1
1
GPL-3.0
9/5/2024, 10:48:26 PM (Europe/Amsterdam)
2,288,173
gas.py
qo-eth_TorchGPE/torchgpe/bec2D/gas.py
from typing import List, Union import torch import numpy as np from torch.nn.functional import pad import scipy.constants as spconsts from .potentials import Zero from ..utils import normalize_wavefunction, ftn, iftn from ..utils.elements import elements_dict from ..utils.potentials import Potential from ..utils.propa...
16,750
Python
.py
277
50.638989
197
0.661521
qo-eth/TorchGPE
8
1
1
GPL-3.0
9/5/2024, 10:48:26 PM (Europe/Amsterdam)
2,288,174
callbacks.py
qo-eth_TorchGPE/torchgpe/bec2D/callbacks.py
import torch import numpy as np import fcntl import json import warnings import matplotlib.pyplot as plt import tempfile from os import path import ffmpeg from shutil import rmtree from abc import ABCMeta from matplotlib import ticker from .potentials import DispersiveCavity from ..utils.potentials import LinearPotent...
20,095
Python
.py
356
43.567416
353
0.594431
qo-eth/TorchGPE
8
1
1
GPL-3.0
9/5/2024, 10:48:26 PM (Europe/Amsterdam)
2,288,175
setup.py
geshijoker_easycv/setup.py
from setuptools import setup, find_packages # Read the contents of requirements.txt with open('requirements.txt') as f: required_packages = f.read().splitlines() setup( name='easycv', version='0.0', packages=find_packages(), description='A Python package for easily customize cover letters.', l...
991
Python
.py
26
32.769231
85
0.670124
geshijoker/easycv
8
0
0
GPL-3.0
9/5/2024, 10:48:26 PM (Europe/Amsterdam)
2,288,176
savejob.py
geshijoker_easycv/savejob.py
import argparse parser = argparse.ArgumentParser(description="Take inputs from user to collect job position information") parser.add_argument("--file", "-f", required=True, help="The path to load your pdf resume file") parser.add_argument("--url", "-u", required=True, help="The url to the job page") parser.add_argumen...
4,370
Python
.py
94
44.361702
157
0.778799
geshijoker/easycv
8
0
0
GPL-3.0
9/5/2024, 10:48:26 PM (Europe/Amsterdam)
2,288,177
easycv.py
geshijoker_easycv/easycv.py
import os import sys import getpass import argparse import magic def check_file_type(filename): mime = magic.Magic(mime=True) file_type = mime.from_file(filename) if 'pdf' in file_type.lower(): return 'PDF' elif 'msword' in file_type.lower() or 'wordprocessingml' in file_type.lower(): ...
8,020
Python
.py
173
42.971098
131
0.738016
geshijoker/easycv
8
0
0
GPL-3.0
9/5/2024, 10:48:26 PM (Europe/Amsterdam)
2,288,178
linkedin_scraper.py
geshijoker_easycv/linkedin_scraper.py
import requests import os import json from selenium import webdriver from bs4 import BeautifulSoup # url = 'https://arxiv.org/abs/2404.04253' # URL to scrape def single_page_scraper(url): # Send a GET request to the URL driver = webdriver.Chrome() driver.get(url) # html = requests.get(url).response ...
4,548
Python
.py
59
72.457627
235
0.721813
geshijoker/easycv
8
0
0
GPL-3.0
9/5/2024, 10:48:26 PM (Europe/Amsterdam)
2,288,179
detectpersist.py
kaotickj_persistenceDetector/detectpersist.py
import tkinter.font as tkFont import tkinter as tk from tkinter import messagebox import winreg import base64 import re import string class RegistryCheckerApp: def __init__(self, root): # setting title root.title("Registry Persistence Detector") #setting window size width=600 ...
8,260
Python
.py
167
38.688623
150
0.621391
kaotickj/persistenceDetector
8
4
0
GPL-3.0
9/5/2024, 10:48:26 PM (Europe/Amsterdam)
2,288,180
colorconversion.py
lucifer9683_HCLSliders/hclsliders/colorconversion.py
# SPDX-License-Identifier: GPL-3.0-or-later AND MIT # # Color conversion script for python. # Copyright (C) 2024 Lucifer <krita-artists.org/u/Lucifer> # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foun...
39,439
Python
.py
923
32.548212
99
0.526123
lucifer9683/HCLSliders
8
0
0
GPL-3.0
9/5/2024, 10:48:26 PM (Europe/Amsterdam)
2,288,181
__init__.py
lucifer9683_HCLSliders/hclsliders/__init__.py
# SPDX-License-Identifier: GPL-3.0-or-later # # HCL Sliders is a Krita plugin for color selection. # Copyright (C) 2024 Lucifer <krita-artists.org/u/Lucifer> # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Softwa...
1,181
Python
.py
25
42.88
72
0.746528
lucifer9683/HCLSliders
8
0
0
GPL-3.0
9/5/2024, 10:48:26 PM (Europe/Amsterdam)
2,288,182
hclsliders.py
lucifer9683_HCLSliders/hclsliders/hclsliders.py
# SPDX-License-Identifier: GPL-3.0-or-later # # HCL Sliders is a Krita plugin for color selection. # Copyright (C) 2024 Lucifer <krita-artists.org/u/Lucifer> # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Softwa...
75,549
Python
.py
1,604
33.4202
120
0.575525
lucifer9683/HCLSliders
8
0
0
GPL-3.0
9/5/2024, 10:48:26 PM (Europe/Amsterdam)
2,288,183
combine_databases.py
dzyla_biorxiv_search/combine_databases.py
import pandas as pd import numpy as np from pathlib import Path def combine_databases(): # Define paths aggregated_data_path = Path("aggregated_data") db_update_bio_path = Path("db_update") biorxiv_embeddings_path = Path("biorxiv_ubin_embaddings.npy") embed_update_bio_path = Path("embed_update") ...
6,048
Python
.py
104
50.653846
158
0.708221
dzyla/biorxiv_search
8
1
0
GPL-3.0
9/5/2024, 10:48:26 PM (Europe/Amsterdam)
2,288,184
update_database_medarxiv.py
dzyla_biorxiv_search/update_database_medarxiv.py
import pandas as pd import numpy as np from pathlib import Path import datetime import requests import json import os from datetime import datetime from dateutil.relativedelta import relativedelta from concurrent.futures import ThreadPoolExecutor, as_completed from sentence_transformers import SentenceTransformer impor...
10,836
Python
.py
231
38.991342
134
0.665394
dzyla/biorxiv_search
8
1
0
GPL-3.0
9/5/2024, 10:48:26 PM (Europe/Amsterdam)
2,288,185
streamlit_app.py
dzyla_biorxiv_search/streamlit_app.py
import streamlit as st import pandas as pd import os import numpy as np from sentence_transformers import SentenceTransformer, models import torch from sentence_transformers.quantization import semantic_search_faiss from pathlib import Path import time import plotly.express as px import doi import requests ...
24,189
Python
.py
516
36.325581
300
0.616448
dzyla/biorxiv_search
8
1
0
GPL-3.0
9/5/2024, 10:48:26 PM (Europe/Amsterdam)
2,288,186
update_database.py
dzyla_biorxiv_search/update_database.py
import pandas as pd import numpy as np from pathlib import Path import datetime import requests import json import os from datetime import datetime from dateutil.relativedelta import relativedelta from concurrent.futures import ThreadPoolExecutor, as_completed import pandas as pd import os import json from...
12,711
Python
.py
251
42
135
0.671076
dzyla/biorxiv_search
8
1
0
GPL-3.0
9/5/2024, 10:48:26 PM (Europe/Amsterdam)
2,288,187
client.py
0x7sec_dnsSmuggler/client.py
import sys import socket import base64 import time # Constants PAYLOAD_SIZE = 32 # Maximum payload size for DNS query DOMAIN_SUFFIX = ".example.com" # Suffix for the domain name def read_file(filename): try: with open(filename, 'rb') as file: content = file.read() return content ...
1,574
Python
.py
46
28.717391
100
0.644693
0x7sec/dnsSmuggler
8
1
0
GPL-3.0
9/5/2024, 10:48:26 PM (Europe/Amsterdam)
2,288,188
server.py
0x7sec_dnsSmuggler/server.py
import socket import base64 import random import string # Constants MAX_CHUNK_SIZE = 32 # Maximum chunk size DOMAIN_SUFFIX = ".example.com" # Suffix for the domain name def process_dns_query(query_data): parts = query_data.split(b'.') data_b64 = parts[0] index = int(parts[1]) data_chunk = base64.b64...
1,855
Python
.py
51
30
87
0.643575
0x7sec/dnsSmuggler
8
1
0
GPL-3.0
9/5/2024, 10:48:26 PM (Europe/Amsterdam)
2,288,189
libread-tool.py
Spectre-hidN_LibRead-Tool/src/libread-tool.py
import sys import os import shutil import time import asyncio import configparser from pynput import keyboard from pywinctl import getActiveWindow from utils.scrapper import checkConnection, search, getMetadata, getArticle from utils.Prettify import clearScreen, Prettify, clearLine from utils.tts import createTTSFromFi...
14,008
Python
.py
263
42.178707
281
0.600295
Spectre-hidN/LibRead-Tool
8
0
1
GPL-3.0
9/5/2024, 10:48:26 PM (Europe/Amsterdam)
2,288,190
twoSecondSilence.py
Spectre-hidN_LibRead-Tool/src/utils/twoSecondSilence.py
import binascii """ Get the raw bytes for the file https://github.com/anars/blank-audio/blob/master/2-seconds-of-silence.mp3 NOTE -> This is a ridiculous way to extract data. But, I didn't want to include the file as a resource """ def getFileBytes(): xxdDump = """4944330400000002180554495432000000150000003220536...
78,058
Python
.py
1,283
59.829306
104
0.998763
Spectre-hidN/LibRead-Tool
8
0
1
GPL-3.0
9/5/2024, 10:48:26 PM (Europe/Amsterdam)
2,288,191
configGenerator.py
Spectre-hidN_LibRead-Tool/src/utils/configGenerator.py
def create_default_config(config_name): searchResultSelector = "body > div.main > div.wp > div.row-box > div.col-content > div > div > div > div > div.txt > h3 > a" statusSelectorI = "body > div.main > div > div > div.col-content > div.m-info > div.m-book1 > div.m-imgtxt > div.txt > div:nth-child(6) > div > sp...
17,755
Python
.py
998
16.365731
169
0.725966
Spectre-hidN/LibRead-Tool
8
0
1
GPL-3.0
9/5/2024, 10:48:26 PM (Europe/Amsterdam)
2,288,192
scrapper.py
Spectre-hidN_LibRead-Tool/src/utils/scrapper.py
import requests from bs4 import BeautifulSoup import os import configparser from .Prettify import Prettify from .configGenerator import create_default_config from requests.packages.urllib3.exceptions import InsecureRequestWarning #type: ignore import urllib3 CONFIG_FILE = "libread-config.ini" global DOMAIN_NAME global...
5,472
Python
.py
125
35.608
298
0.63781
Spectre-hidN/LibRead-Tool
8
0
1
GPL-3.0
9/5/2024, 10:48:26 PM (Europe/Amsterdam)
2,288,193
ffmpegWrapper.py
Spectre-hidN_LibRead-Tool/src/utils/ffmpegWrapper.py
import subprocess import re import os import configparser from .configGenerator import create_default_config from .Prettify import Prettify, clearLine from .twoSecondSilence import getFileBytes import music_tag printSuc = Prettify.printSuc printWar = Prettify.printWar printErr = Prettify.printErr printFeaturedText = P...
2,851
Python
.py
64
38.171875
162
0.682049
Spectre-hidN/LibRead-Tool
8
0
1
GPL-3.0
9/5/2024, 10:48:26 PM (Europe/Amsterdam)
2,288,194
Prettify.py
Spectre-hidN_LibRead-Tool/src/utils/Prettify.py
import sys import os import time def clearScreen(): """ Clears the terminal """ if os.name == 'nt': os.system("cls") else: os.system("clear") def clearLine(): """ Clears the current line """ length = os.get_terminal_size()[0] whiteSpace = " "*length print(wh...
10,903
Python
.py
217
38.400922
316
0.556664
Spectre-hidN/LibRead-Tool
8
0
1
GPL-3.0
9/5/2024, 10:48:26 PM (Europe/Amsterdam)
2,288,195
tts.py
Spectre-hidN_LibRead-Tool/src/utils/tts.py
import edge_tts import os import configparser import re from .Prettify import Prettify from .configGenerator import create_default_config import music_tag CONFIG_FILE = "libread-config.ini" global EMBED_SUBS global VOICE_NAME printWar = Prettify.printWar def _readConfig(): if(os.path.isfile(CONFIG_FILE)): ...
3,214
Python
.py
76
34.723684
106
0.608401
Spectre-hidN/LibRead-Tool
8
0
1
GPL-3.0
9/5/2024, 10:48:26 PM (Europe/Amsterdam)
2,288,196
nuevo.py
Ingenieria2024_ingenieria_2024/nuevo.py
print("prueba nueva") import tkinter as tk from tkinter import ttk print("prueba nueva2") print("prueba nueva3")
112
Python
.py
5
21.6
23
0.805556
Ingenieria2024/ingenieria_2024
8
2
0
GPL-3.0
9/5/2024, 10:48:26 PM (Europe/Amsterdam)
2,288,197
haciendounaventana.py
Ingenieria2024_ingenieria_2024/haciendounaventana.py
import tkinter as tkinter from tkinter import ttk def saludar(): print ("Hola a todxs") root = tk.Tk () root.geometry("450x200") root.title("practicando") etiqueta = ttk.Label(root,text "Hoy practicamos tkinter", padding (50,30)) etiqueta.pack () boton_saludo = ttk.Button(root, text="saludo", command =saludar) bo...
541
Python
.py
16
32.3125
74
0.760536
Ingenieria2024/ingenieria_2024
8
2
0
GPL-3.0
9/5/2024, 10:48:26 PM (Europe/Amsterdam)
2,288,198
presentacion.py
Ingenieria2024_ingenieria_2024/presentacion.py
# Presentación en Python def presentacion(): nombre = "gisela" ocupacion = "estudiante" print(f"¡Hola! Soy {nombre}, {ocupacion}.") if __name__ == "__main__": presentacion()
205
Python
.py
7
23.857143
47
0.630435
Ingenieria2024/ingenieria_2024
8
2
0
GPL-3.0
9/5/2024, 10:48:26 PM (Europe/Amsterdam)
2,288,199
tkinter_GuzmanIvan.py
Ingenieria2024_ingenieria_2024/tkinter_GuzmanIvan.py
import tkinter as tk from tkinter import ttk # Ventana root = tk.Tk() root.geometry ("500x300") root.title ("¡Bienvenidos al portal de la UNPAZ!") root.config (background="light blue") # 1° frame frame1 = tk.Frame() etiqueta_nombre = ttk.Label (frame1, text = "Ingresar su nombre y apellido", padding = (5, 5), font = ...
1,249
Python
.py
33
36.212121
138
0.708787
Ingenieria2024/ingenieria_2024
8
2
0
GPL-3.0
9/5/2024, 10:48:26 PM (Europe/Amsterdam)