// pypi 패키지
mathepy
Module for Quick Calculations
버전
14
최초 publish
2026-05-21
tarball
50,304 B
AUTO-PUBLISHED·1개 버전 인덱싱됨·최근 publish: 2026-05-25
// offending code· @7.9.0· 2 files flagged
llm: benign · 0.85→ 의심 전송지 없음, 원격 실행 형태 없음 — 1 known-vendor host(s), 1 other host(s).
- @7.9.0··AUTO-PUBLISHEDheuristic 75/100static flags 3llm benign (0.85) via ollamapypi-sdist-setup-pypypi-no-authormature-packageosv-flagged:MAL-2026-4755eval-dynamicpy-requests-postpy-pip-install-runtime
→ 의심 전송지 없음, 원격 실행 형태 없음 — 1 known-vendor host(s), 1 other host(s).
// offending code· 2 files flaggedpatterns: 3
--- mathepy-7.9.0/src/mathepy/agenthelp.py (excerpt) --- """ ╔══════════════════════════════════════════════════════════╗ ║ mathepy.agenthelp — Agentic AI & LangGraph Helper ║ ║ from mathepy import agenthelp | print(agenthelp) ║ ║ Or render in Jupyter by simply evaluating: agenthelp ║ ╚══════════════════════════════════════════════════════════╝ """ import sys import json # ── Safe Imports ────────────────────────────────────────────────────────────── try: from langgraph.graph import StateGraph, START, END from langgraph.checkpoint.memory import MemorySaver from typing import TypedDict _LANGGRAPH = True except ImportError: _LANGGRAPH = False print("[agenthelp] WARNING: langgraph not installed.") print(" Run: pip install langgraph langchain-core") try: import requests _REQUESTS = True except ImportError: _REQUESTS = False # ══════════════════════════════════════════════════════════════════════════════ # LANGGRAPH UTILITIES & TEMPLATES # ══════════════════════════════════════════════════════════════════════════════ def make_order_state(order_id="ORD-001", restaurant="Test Restaurant", driver_available=True, force_failure=False): """Build a ready-to-use OrderState dict for LangGraph tests.""" return { "order_id": order_id, "restaurant": restaurant, "driver_id": "", "attempt_count": 0, "status": "pending", "delivery_status": "pending", "driver_available": driver_available, --- mathepy-7.9.0/src/mathepy/mlhelp.py (excerpt) --- """ ╔══════════════════════════════════════════════════════════╗ ║ mathepy.mlhelp — ML Foundations Helper ║ ║ from mathepy import mlhelp | print(mlhelp) ║ ║ Or render in Jupyter by simply evaluating: mlhelp ║ ╚══════════════════════════════════════════════════════════╝ """ import numpy as np import pandas as pd # ── Safe imports ────────────────────────────────────────────────────────────── try: import matplotlib.pyplot as plt _MATPLOTLIB = True except ImportError: _MATPLOTLIB = False try: from sklearn.linear_model import LinearRegression, LogisticRegression from sklearn.model_selection import train_test_split, KFold, StratifiedKFold, cross_val_score from sklearn.preprocessing import StandardScaler, LabelEncoder, MinMaxScaler from sklearn.metrics import (confusion_matrix, accuracy_score, precision_score, recall_score, f1_score, mean_absolute_error, mean_squared_error, r2_score, ConfusionMatrixDisplay) _SKLEARN = True except ImportError: _SKLEARN = False print("[mlhelp] WARNING: sklearn not installed. Run: pip install scikit-learn") # ══════════════════════════════════════════════════════════════════════════════ # DATA PREPROCESSING # ══════════════════════════════════════════════════════════════════════════════ def encode_and_split(df, cat_cols, target_col, test_size=0.2, random_state=42): """One-hot encode categorical colu
