repo_full_name stringlengths 6 93 | repo_url stringlengths 25 112 | repo_api_url stringclasses 28
values | owner stringclasses 28
values | repo_name stringclasses 28
values | description stringclasses 28
values | stars int64 617 98.8k | forks int64 31 355 ⌀ | watchers int64 990 999 ⌀ | license stringclasses 2
values | default_branch stringclasses 2
values | repo_created_at timestamp[s]date 2012-07-24 23:12:50 2025-06-16 08:07:28 ⌀ | repo_updated_at timestamp[s]date 2026-02-23 15:23:15 2026-05-03 18:52:12 ⌀ | repo_topics listlengths 0 13 ⌀ | repo_languages unknown | is_fork bool 1
class | open_issues int64 3 104 ⌀ | file_path stringlengths 3 208 | file_name stringclasses 509
values | file_extension stringclasses 1
value | file_size_bytes int64 101 84k ⌀ | file_url stringclasses 627
values | file_raw_url stringclasses 627
values | file_sha stringclasses 624
values | language stringclasses 8
values | parsed_at stringdate 2026-05-04 01:12:36 2026-05-04 19:41:55 | text stringlengths 100 102k |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
pypa/pipenv | https://github.com/pypa/pipenv | null | null | null | null | 25,077 | null | null | mit | null | null | null | null | null | null | null | pipenv/patched/pip/_internal/commands/completion.py | null | null | null | null | null | null | Python | 2026-05-04T02:27:09.093420 | import sys
import textwrap
from optparse import Values
from pipenv.patched.pip._internal.cli.base_command import Command
from pipenv.patched.pip._internal.cli.status_codes import SUCCESS
from pipenv.patched.pip._internal.utils.misc import get_prog
BASE_COMPLETION = """
# pip {shell} completion start{script}# pip {she... |
pypa/pipenv | https://github.com/pypa/pipenv | null | null | null | null | 25,077 | null | null | mit | null | null | null | null | null | null | null | pipenv/patched/pip/_internal/commands/configuration.py | null | null | null | null | null | null | Python | 2026-05-04T02:27:09.432519 | from __future__ import annotations
import logging
import os
import subprocess
from optparse import Values
from typing import Any, Callable
from pipenv.patched.pip._internal.cli.base_command import Command
from pipenv.patched.pip._internal.cli.status_codes import ERROR, SUCCESS
from pipenv.patched.pip._internal.config... |
pypa/pipenv | https://github.com/pypa/pipenv | null | null | null | null | 25,077 | null | null | mit | null | null | null | null | null | null | null | pipenv/patched/pip/_internal/commands/debug.py | null | null | null | null | null | null | Python | 2026-05-04T02:27:09.457956 | from __future__ import annotations
import locale
import logging
import os
import sys
from optparse import Values
from types import ModuleType
from typing import Any
import pipenv.patched.pip._vendor
from pipenv.patched.pip._vendor.certifi import where
from pipenv.patched.pip._vendor.packaging.version import parse as ... |
pypa/pipenv | https://github.com/pypa/pipenv | null | null | null | null | 25,077 | null | null | mit | null | null | null | null | null | null | null | pipenv/patched/pip/_internal/commands/freeze.py | null | null | null | null | null | null | Python | 2026-05-04T02:27:09.458528 | import sys
from optparse import Values
from pipenv.patched.pip._internal.cli import cmdoptions
from pipenv.patched.pip._internal.cli.base_command import Command
from pipenv.patched.pip._internal.cli.status_codes import SUCCESS
from pipenv.patched.pip._internal.operations.freeze import freeze
from pipenv.patched.pip._i... |
pypa/pipenv | https://github.com/pypa/pipenv | null | null | null | null | 25,077 | null | null | mit | null | null | null | null | null | null | null | pipenv/patched/pip/_internal/commands/download.py | null | null | null | null | null | null | Python | 2026-05-04T02:27:09.464772 | import logging
import os
from optparse import Values
from pipenv.patched.pip._internal.cli import cmdoptions
from pipenv.patched.pip._internal.cli.cmdoptions import make_target_python
from pipenv.patched.pip._internal.cli.req_command import RequirementCommand, with_cleanup
from pipenv.patched.pip._internal.cli.status_... |
pypa/pipenv | https://github.com/pypa/pipenv | null | null | null | null | 25,077 | null | null | mit | null | null | null | null | null | null | null | pipenv/patched/pip/_internal/commands/hash.py | null | null | null | null | null | null | Python | 2026-05-04T02:27:09.473882 | import hashlib
import logging
import sys
from optparse import Values
from pipenv.patched.pip._internal.cli.base_command import Command
from pipenv.patched.pip._internal.cli.status_codes import ERROR, SUCCESS
from pipenv.patched.pip._internal.utils.hashes import FAVORITE_HASH, STRONG_HASHES
from pipenv.patched.pip._int... |
pypa/pipenv | https://github.com/pypa/pipenv | null | null | null | null | 25,077 | null | null | mit | null | null | null | null | null | null | null | pipenv/patched/pip/_internal/commands/help.py | null | null | null | null | null | null | Python | 2026-05-04T02:27:09.534773 | from optparse import Values
from pipenv.patched.pip._internal.cli.base_command import Command
from pipenv.patched.pip._internal.cli.status_codes import SUCCESS
from pipenv.patched.pip._internal.exceptions import CommandError
class HelpCommand(Command):
"""Show help for commands"""
usage = """
%prog <c... |
pypa/pipenv | https://github.com/pypa/pipenv | null | null | null | null | 25,077 | null | null | mit | null | null | null | null | null | null | null | pipenv/patched/pip/_internal/commands/index.py | null | null | null | null | null | null | Python | 2026-05-04T02:27:09.546679 | from __future__ import annotations
import json
import logging
from collections.abc import Iterable
from optparse import Values
from typing import Any, Callable
from pipenv.patched.pip._vendor.packaging.utils import canonicalize_name
from pipenv.patched.pip._vendor.packaging.version import Version
from pipenv.patched... |
pypa/pipenv | https://github.com/pypa/pipenv | null | null | null | null | 25,077 | null | null | mit | null | null | null | null | null | null | null | pipenv/patched/pip/_internal/commands/inspect.py | null | null | null | null | null | null | Python | 2026-05-04T02:27:09.587594 | import logging
from optparse import Values
from typing import Any
from pipenv.patched.pip._vendor.packaging.markers import default_environment
from pipenv.patched.pip._vendor.rich import print_json
from pipenv.patched.pip import __version__
from pipenv.patched.pip._internal.cli import cmdoptions
from pipenv.patched.p... |
pypa/pipenv | https://github.com/pypa/pipenv | null | null | null | null | 25,077 | null | null | mit | null | null | null | null | null | null | null | pipenv/patched/pip/_internal/commands/list.py | null | null | null | null | null | null | Python | 2026-05-04T02:27:09.690727 | from __future__ import annotations
import contextlib
import json
import logging
from collections.abc import Generator, Iterator, Sequence
from email.parser import Parser
from optparse import Values
from typing import TYPE_CHECKING, cast
from pipenv.patched.pip._vendor.packaging.utils import canonicalize_name
from pip... |
pypa/pipenv | https://github.com/pypa/pipenv | null | null | null | null | 25,077 | null | null | mit | null | null | null | null | null | null | null | pipenv/patched/pip/_internal/commands/install.py | null | null | null | null | null | null | Python | 2026-05-04T02:27:09.692503 | from __future__ import annotations
import contextlib
import errno
import json
import operator
import os
import shutil
import site
import sys
from collections.abc import Iterator
from optparse import SUPPRESS_HELP, Values
from pathlib import Path
from typing import Any
from pipenv.patched.pip._vendor.packaging.require... |
pypa/pipenv | https://github.com/pypa/pipenv | null | null | null | null | 25,077 | null | null | mit | null | null | null | null | null | null | null | pipenv/patched/pip/_internal/commands/search.py | null | null | null | null | null | null | Python | 2026-05-04T02:27:10.434987 | from __future__ import annotations
import logging
import shutil
import sys
import textwrap
import xmlrpc.client
from collections import OrderedDict
from optparse import Values
from typing import TypedDict
from pipenv.patched.pip._vendor.packaging.version import parse as parse_version
from pipenv.patched.pip._interna... |
pypa/pipenv | https://github.com/pypa/pipenv | null | null | null | null | 25,077 | null | null | mit | null | null | null | null | null | null | null | pipenv/patched/pip/_internal/commands/lock.py | null | null | null | null | null | null | Python | 2026-05-04T02:27:10.876758 | import sys
from optparse import Values
from pathlib import Path
from pipenv.patched.pip._vendor import tomli_w
from pipenv.patched.pip._vendor.packaging.pylock import is_valid_pylock_path
from pipenv.patched.pip._internal.cache import WheelCache
from pipenv.patched.pip._internal.cli import cmdoptions
from pipenv.patc... |
HumanSignal/labelImg | https://github.com/HumanSignal/labelImg | null | null | null | null | 24,938 | null | null | mit | null | null | null | null | null | null | null | libs/combobox.py | null | null | null | null | null | null | Python | 2026-05-04T02:27:14.613403 | import sys
try:
from PyQt5.QtWidgets import QWidget, QHBoxLayout, QComboBox
except ImportError:
# needed for py3+qt4
# Ref:
# http://pyqt.sourceforge.net/Docs/PyQt4/incompatible_apis.html
# http://stackoverflow.com/questions/21217399/pyqt4-qtcore-qvariant-object-instead-of-a-string
if sys.versio... |
HumanSignal/labelImg | https://github.com/HumanSignal/labelImg | null | null | null | null | 24,938 | null | null | mit | null | null | null | null | null | null | null | libs/hashableQListWidgetItem.py | null | null | null | null | null | null | Python | 2026-05-04T02:27:14.660525 | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import sys
try:
from PyQt5.QtGui import *
from PyQt5.QtCore import *
from PyQt5.QtWidgets import *
except ImportError:
# needed for py3+qt4
# Ref:
# http://pyqt.sourceforge.net/Docs/PyQt4/incompatible_apis.html
# http://stackoverflow.com/question... |
HumanSignal/labelImg | https://github.com/HumanSignal/labelImg | null | null | null | null | 24,938 | null | null | mit | null | null | null | null | null | null | null | labelImg.py | null | null | null | null | null | null | Python | 2026-05-04T02:27:14.661101 | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import argparse
import codecs
import os.path
import platform
import shutil
import sys
import webbrowser as wb
from functools import partial
try:
from PyQt5.QtGui import *
from PyQt5.QtCore import *
from PyQt5.QtWidgets import *
except ImportError:
# needed ... |
HumanSignal/labelImg | https://github.com/HumanSignal/labelImg | null | null | null | null | 24,938 | null | null | mit | null | null | null | null | null | null | null | libs/canvas.py | null | null | null | null | null | null | Python | 2026-05-04T02:27:14.691092 |
try:
from PyQt5.QtGui import *
from PyQt5.QtCore import *
from PyQt5.QtWidgets import *
except ImportError:
from PyQt4.QtGui import *
from PyQt4.QtCore import *
# from PyQt4.QtOpenGL import *
from libs.shape import Shape
from libs.utils import distance
CURSOR_DEFAULT = Qt.ArrowCursor
CURSOR_POIN... |
HumanSignal/labelImg | https://github.com/HumanSignal/labelImg | null | null | null | null | 24,938 | null | null | mit | null | null | null | null | null | null | null | libs/colorDialog.py | null | null | null | null | null | null | Python | 2026-05-04T02:27:14.835241 | try:
from PyQt5.QtGui import *
from PyQt5.QtCore import *
from PyQt5.QtWidgets import QColorDialog, QDialogButtonBox
except ImportError:
from PyQt4.QtGui import *
from PyQt4.QtCore import *
BB = QDialogButtonBox
class ColorDialog(QColorDialog):
def __init__(self, parent=None):
super(... |
HumanSignal/labelImg | https://github.com/HumanSignal/labelImg | null | null | null | null | 24,938 | null | null | mit | null | null | null | null | null | null | null | libs/create_ml_io.py | null | null | null | null | null | null | Python | 2026-05-04T02:27:14.915677 | #!/usr/bin/env python
# -*- coding: utf8 -*-
import json
from pathlib import Path
from libs.constants import DEFAULT_ENCODING
import os
JSON_EXT = '.json'
ENCODE_METHOD = DEFAULT_ENCODING
class CreateMLWriter:
def __init__(self, folder_name, filename, img_size, shapes, output_file, database_src='Unknown', local... |
HumanSignal/labelImg | https://github.com/HumanSignal/labelImg | null | null | null | null | 24,938 | null | null | mit | null | null | null | null | null | null | null | libs/default_label_combobox.py | null | null | null | null | null | null | Python | 2026-05-04T02:27:15.040792 | import sys
try:
from PyQt5.QtWidgets import QWidget, QHBoxLayout, QComboBox
except ImportError:
# needed for py3+qt4
# Ref:
# http://pyqt.sourceforge.net/Docs/PyQt4/incompatible_apis.html
# http://stackoverflow.com/questions/21217399/pyqt4-qtcore-qvariant-object-instead-of-a-string
if sys.versio... |
HumanSignal/labelImg | https://github.com/HumanSignal/labelImg | null | null | null | null | 24,938 | null | null | mit | null | null | null | null | null | null | null | libs/labelFile.py | null | null | null | null | null | null | Python | 2026-05-04T02:27:15.187285 | # Copyright (c) 2016 Tzutalin
# Create by TzuTaLin <tzu.ta.lin@gmail.com>
try:
from PyQt5.QtGui import QImage
except ImportError:
from PyQt4.QtGui import QImage
import os.path
from enum import Enum
from libs.create_ml_io import CreateMLWriter
from libs.pascal_voc_io import PascalVocWriter
from libs.pascal_vo... |
HumanSignal/labelImg | https://github.com/HumanSignal/labelImg | null | null | null | null | 24,938 | null | null | mit | null | null | null | null | null | null | null | libs/lightWidget.py | null | null | null | null | null | null | Python | 2026-05-04T02:27:15.188514 | try:
from PyQt5.QtGui import *
from PyQt5.QtCore import *
from PyQt5.QtWidgets import *
except ImportError:
from PyQt4.QtGui import *
from PyQt4.QtCore import *
class LightWidget(QSpinBox):
def __init__(self, title, value=50):
super(LightWidget, self).__init__()
self.setButton... |
HumanSignal/labelImg | https://github.com/HumanSignal/labelImg | null | null | null | null | 24,938 | null | null | mit | null | null | null | null | null | null | null | libs/pascal_voc_io.py | null | null | null | null | null | null | Python | 2026-05-04T02:27:15.223065 | #!/usr/bin/env python
# -*- coding: utf8 -*-
import sys
from xml.etree import ElementTree
from xml.etree.ElementTree import Element, SubElement
from lxml import etree
import codecs
from libs.constants import DEFAULT_ENCODING
from libs.ustr import ustr
XML_EXT = '.xml'
ENCODE_METHOD = DEFAULT_ENCODING
class PascalVoc... |
HumanSignal/labelImg | https://github.com/HumanSignal/labelImg | null | null | null | null | 24,938 | null | null | mit | null | null | null | null | null | null | null | libs/labelDialog.py | null | null | null | null | null | null | Python | 2026-05-04T02:27:15.228433 | try:
from PyQt5.QtGui import *
from PyQt5.QtCore import *
from PyQt5.QtWidgets import *
except ImportError:
from PyQt4.QtGui import *
from PyQt4.QtCore import *
from libs.utils import new_icon, label_validator, trimmed
BB = QDialogButtonBox
class LabelDialog(QDialog):
def __init__(self, tex... |
HumanSignal/labelImg | https://github.com/HumanSignal/labelImg | null | null | null | null | 24,938 | null | null | mit | null | null | null | null | null | null | null | libs/settings.py | null | null | null | null | null | null | Python | 2026-05-04T02:27:15.241037 | import os
import pickle
class Settings(object):
def __init__(self):
# Be default, the home will be in the same folder as labelImg
home = os.path.expanduser("~")
self.data = {}
self.path = os.path.join(home, '.labelImgSettings.pkl')
def __setitem__(self, key, value):
se... |
HumanSignal/labelImg | https://github.com/HumanSignal/labelImg | null | null | null | null | 24,938 | null | null | mit | null | null | null | null | null | null | null | libs/shape.py | null | null | null | null | null | null | Python | 2026-05-04T02:27:15.269418 | #!/usr/bin/python
# -*- coding: utf-8 -*-
try:
from PyQt5.QtGui import *
from PyQt5.QtCore import *
except ImportError:
from PyQt4.QtGui import *
from PyQt4.QtCore import *
from libs.utils import distance
import sys
DEFAULT_LINE_COLOR = QColor(0, 255, 0, 128)
DEFAULT_FILL_COLOR = QColor(255, 0, 0, 1... |
HumanSignal/labelImg | https://github.com/HumanSignal/labelImg | null | null | null | null | 24,938 | null | null | mit | null | null | null | null | null | null | null | libs/stringBundle.py | null | null | null | null | null | null | Python | 2026-05-04T02:27:15.423360 | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
if items were added in files in the resources/strings folder,
then execute "pyrcc5 resources.qrc -o resources.py" in the root directory
and execute "pyrcc5 ../resources.qrc -o resources.py" in the libs directory
"""
import re
import os
import sys
import locale
from libs... |
HumanSignal/labelImg | https://github.com/HumanSignal/labelImg | null | null | null | null | 24,938 | null | null | mit | null | null | null | null | null | null | null | libs/constants.py | null | null | null | null | null | null | Python | 2026-05-04T02:27:15.457544 | SETTING_FILENAME = 'filename'
SETTING_RECENT_FILES = 'recentFiles'
SETTING_WIN_SIZE = 'window/size'
SETTING_WIN_POSE = 'window/position'
SETTING_WIN_GEOMETRY = 'window/geometry'
SETTING_LINE_COLOR = 'line/color'
SETTING_FILL_COLOR = 'fill/color'
SETTING_ADVANCE_MODE = 'advanced'
SETTING_WIN_STATE = 'window/state'
SETTI... |
HumanSignal/labelImg | https://github.com/HumanSignal/labelImg | null | null | null | null | 24,938 | null | null | mit | null | null | null | null | null | null | null | libs/toolBar.py | null | null | null | null | null | null | Python | 2026-05-04T02:27:15.510952 | try:
from PyQt5.QtGui import *
from PyQt5.QtCore import *
from PyQt5.QtWidgets import *
except ImportError:
from PyQt4.QtGui import *
from PyQt4.QtCore import *
class ToolBar(QToolBar):
def __init__(self, title):
super(ToolBar, self).__init__(title)
layout = self.layout()
... |
HumanSignal/labelImg | https://github.com/HumanSignal/labelImg | null | null | null | null | 24,938 | null | null | mit | null | null | null | null | null | null | null | libs/ustr.py | null | null | null | null | null | null | Python | 2026-05-04T02:27:15.608880 | import sys
from libs.constants import DEFAULT_ENCODING
def ustr(x):
"""py2/py3 unicode helper"""
if sys.version_info < (3, 0, 0):
from PyQt4.QtCore import QString
if type(x) == str:
return x.decode(DEFAULT_ENCODING)
if type(x) == QString:
# https://blog.csdn.net... |
HumanSignal/labelImg | https://github.com/HumanSignal/labelImg | null | null | null | null | 24,938 | null | null | mit | null | null | null | null | null | null | null | libs/utils.py | null | null | null | null | null | null | Python | 2026-05-04T02:27:15.766769 | from math import sqrt
from libs.ustr import ustr
import hashlib
import re
import sys
try:
from PyQt5.QtGui import *
from PyQt5.QtCore import *
from PyQt5.QtWidgets import *
QT5 = True
except ImportError:
from PyQt4.QtGui import *
from PyQt4.QtCore import *
QT5 = False
def new_icon(icon):
... |
HumanSignal/labelImg | https://github.com/HumanSignal/labelImg | null | null | null | null | 24,938 | null | null | mit | null | null | null | null | null | null | null | libs/zoomWidget.py | null | null | null | null | null | null | Python | 2026-05-04T02:27:15.783020 | try:
from PyQt5.QtGui import *
from PyQt5.QtCore import *
from PyQt5.QtWidgets import *
except ImportError:
from PyQt4.QtGui import *
from PyQt4.QtCore import *
class ZoomWidget(QSpinBox):
def __init__(self, value=100):
super(ZoomWidget, self).__init__()
self.setButtonSymbols(... |
HumanSignal/labelImg | https://github.com/HumanSignal/labelImg | null | null | null | null | 24,938 | null | null | mit | null | null | null | null | null | null | null | setup.py | null | null | null | null | null | null | Python | 2026-05-04T02:27:15.793630 | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from setuptools import setup, find_packages, Command
from sys import platform as _platform
from shutil import rmtree
import sys
import os
here = os.path.abspath(os.path.dirname(__file__))
NAME = 'labelImg'
REQUIRES_PYTHON = '>=3.0.0'
REQUIRED_DEP = ['pyqt5', 'lxml']
about... |
HumanSignal/labelImg | https://github.com/HumanSignal/labelImg | null | null | null | null | 24,938 | null | null | mit | null | null | null | null | null | null | null | libs/yolo_io.py | null | null | null | null | null | null | Python | 2026-05-04T02:27:15.811533 | #!/usr/bin/env python
# -*- coding: utf8 -*-
import codecs
import os
from libs.constants import DEFAULT_ENCODING
TXT_EXT = '.txt'
ENCODE_METHOD = DEFAULT_ENCODING
class YOLOWriter:
def __init__(self, folder_name, filename, img_size, database_src='Unknown', local_img_path=None):
self.folder_name = folder... |
HumanSignal/labelImg | https://github.com/HumanSignal/labelImg | null | null | null | null | 24,938 | null | null | mit | null | null | null | null | null | null | null | tests/test_qt.py | null | null | null | null | null | null | Python | 2026-05-04T02:27:16.259222 |
from unittest import TestCase
from labelImg import get_main_app
class TestMainWindow(TestCase):
app = None
win = None
def setUp(self):
self.app, self.win = get_main_app()
def tearDown(self):
self.win.close()
self.app.quit()
def test_noop(self):
pass
|
HumanSignal/labelImg | https://github.com/HumanSignal/labelImg | null | null | null | null | 24,938 | null | null | mit | null | null | null | null | null | null | null | tests/test_io.py | null | null | null | null | null | null | Python | 2026-05-04T02:27:16.444029 | import os
import sys
import unittest
class TestPascalVocRW(unittest.TestCase):
def test_upper(self):
dir_name = os.path.abspath(os.path.dirname(__file__))
libs_path = os.path.join(dir_name, '..', 'libs')
sys.path.insert(0, libs_path)
from pascal_voc_io import PascalVocWriter
... |
HumanSignal/labelImg | https://github.com/HumanSignal/labelImg | null | null | null | null | 24,938 | null | null | mit | null | null | null | null | null | null | null | tests/test_stringBundle.py | null | null | null | null | null | null | Python | 2026-05-04T02:27:16.444856 | import os
import sys
import unittest
import resources
from stringBundle import StringBundle
class TestStringBundle(unittest.TestCase):
def test_loadDefaultBundle_withoutError(self):
str_bundle = StringBundle.get_bundle('en')
self.assertEqual(str_bundle.get_string("openDir"), 'Open Dir', 'Fail to l... |
HumanSignal/labelImg | https://github.com/HumanSignal/labelImg | null | null | null | null | 24,938 | null | null | mit | null | null | null | null | null | null | null | tests/test_utils.py | null | null | null | null | null | null | Python | 2026-05-04T02:27:16.452660 | import os
import sys
import unittest
from libs.utils import Struct, new_action, new_icon, add_actions, format_shortcut, generate_color_by_text, natural_sort
class TestUtils(unittest.TestCase):
def test_generateColorByGivingUniceText_noError(self):
res = generate_color_by_text(u'\u958B\u555F\u76EE\u9304')
... |
HumanSignal/labelImg | https://github.com/HumanSignal/labelImg | null | null | null | null | 24,938 | null | null | mit | null | null | null | null | null | null | null | tools/label_to_csv.py | null | null | null | null | null | null | Python | 2026-05-04T02:27:16.630289 | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
Name: label_to_csv.py
Author: Justin Ruan
Contact: justin900429@gmail.com
Time: 2021.02.06
"""
import os
import argparse
import codecs
import pandas as pd
def txt2csv(location, training_dir, path_prefix):
# Return list
temp_res = []
# Run through all t... |
HumanSignal/labelImg | https://github.com/HumanSignal/labelImg | null | null | null | null | 24,938 | null | null | mit | null | null | null | null | null | null | null | tests/test_settings.py | null | null | null | null | null | null | Python | 2026-05-04T02:27:16.775093 | #!/usr/bin/env python
import os
import sys
import time
import unittest
__author__ = 'TzuTaLin'
dir_name = os.path.abspath(os.path.dirname(__file__))
libs_path = os.path.join(dir_name, '..', 'libs')
sys.path.insert(0, libs_path)
from settings import Settings
class TestSettings(unittest.TestCase):
def test_basic(... |
microsoft/JARVIS | https://github.com/microsoft/JARVIS | null | null | null | null | 24,689 | null | null | mit | null | null | null | null | null | null | null | easytool/easytool/restbench.py | null | null | null | null | null | null | Python | 2026-05-04T02:27:19.113376 | # — coding: utf-8 –
import openai
import json
import logging
import sys
import argparse
import ast
from langchain.chat_models import ChatOpenAI
from langchain.prompts import (
ChatPromptTemplate,
MessagesPlaceholder,
SystemMessagePromptTemplate,
HumanMessagePromptTemplate
)
from langchain ... |
microsoft/JARVIS | https://github.com/microsoft/JARVIS | null | null | null | null | 24,689 | null | null | mit | null | null | null | null | null | null | null | easytool/easytool/toolbench.py | null | null | null | null | null | null | Python | 2026-05-04T02:27:19.120010 | # — coding: utf-8 –
import openai
import json
import logging
import sys
import argparse
from langchain.chat_models import ChatOpenAI
from langchain.prompts import (
ChatPromptTemplate,
MessagesPlaceholder,
SystemMessagePromptTemplate,
HumanMessagePromptTemplate
)
from langchain import LLMCh... |
microsoft/JARVIS | https://github.com/microsoft/JARVIS | null | null | null | null | 24,689 | null | null | mit | null | null | null | null | null | null | null | easytool/data_funcqa/funchub/math.py | null | null | null | null | null | null | Python | 2026-05-04T02:27:19.124052 | import math
# this function is used to round the result to 2 decimal places
# e.g. 52.3523 -> 52.35, 52.0011 -> 52, 0.00000233 -> 0.0000023
def custom_round(x, decimal_places=2):
str_x = f"{x:.10f}"
before_decimal = str_x.split('.')[0]
after_decimal = str_x.split('.')[1]
leading_zeros = len(after_decim... |
microsoft/JARVIS | https://github.com/microsoft/JARVIS | null | null | null | null | 24,689 | null | null | mit | null | null | null | null | null | null | null | easytool/easytool/funcQA.py | null | null | null | null | null | null | Python | 2026-05-04T02:27:19.125919 | # — coding: utf-8 –
import openai
import json
import logging
import sys
import argparse
from langchain.chat_models import ChatOpenAI
from langchain.prompts import (
ChatPromptTemplate,
MessagesPlaceholder,
SystemMessagePromptTemplate,
HumanMessagePromptTemplate
)
from langchain import LLMCh... |
microsoft/JARVIS | https://github.com/microsoft/JARVIS | null | null | null | null | 24,689 | null | null | mit | null | null | null | null | null | null | null | easytool/main.py | null | null | null | null | null | null | Python | 2026-05-04T02:27:19.136163 | # — coding: utf-8 –
import openai
import json
import argparse
import os
from tqdm import tqdm
from easytool import funcQA, restbench, toolbench_retrieve, toolbench
from easytool.util import *
openai.api_key = os.environ["OPENAI_API_KEY"]
if __name__ == '__main__':
parser = argparse.ArgumentParse... |
microsoft/JARVIS | https://github.com/microsoft/JARVIS | null | null | null | null | 24,689 | null | null | mit | null | null | null | null | null | null | null | easytool/easytool/util.py | null | null | null | null | null | null | Python | 2026-05-04T02:27:19.144226 | # — coding: utf-8 –
import json
import re
import os
def read_jsonline(address):
not_mark = []
with open(address, 'r', encoding="utf-8") as f:
for jsonstr in f.readlines():
jsonstr = json.loads(jsonstr)
not_mark.append(jsonstr)
return not_mark
def save_json(... |
microsoft/JARVIS | https://github.com/microsoft/JARVIS | null | null | null | null | 24,689 | null | null | mit | null | null | null | null | null | null | null | easytool/data_process.py | null | null | null | null | null | null | Python | 2026-05-04T02:27:19.151744 | import os
import gdown
import shutil
import json
from zipfile import ZipFile
urls = {
"funcqa": "https://drive.google.com/uc?id=13Sj7uIsyqWXoTh1ejWUviTzeQSES2Omd",
"restbench": "https://raw.githubusercontent.com/Yifan-Song793/RestGPT/main/datasets/tmdb.json",
"toolbench": "https://drive.google.com... |
microsoft/JARVIS | https://github.com/microsoft/JARVIS | null | null | null | null | 24,689 | null | null | mit | null | null | null | null | null | null | null | easytool/easytool/toolbench_retrieve.py | null | null | null | null | null | null | Python | 2026-05-04T02:27:19.169106 | # — coding: utf-8 –
import openai
import json
import logging
import sys
import argparse
from langchain.chat_models import ChatOpenAI
from langchain.prompts import (
ChatPromptTemplate,
MessagesPlaceholder,
SystemMessagePromptTemplate,
HumanMessagePromptTemplate
)
from langchain import LLMCh... |
microsoft/JARVIS | https://github.com/microsoft/JARVIS | null | null | null | null | 24,689 | null | null | mit | null | null | null | null | null | null | null | hugginggpt/server/awesome_chat.py | null | null | null | null | null | null | Python | 2026-05-04T02:27:19.204641 | import base64
import copy
from io import BytesIO
import io
import os
import random
import time
import traceback
import uuid
import requests
import re
import json
import logging
import argparse
import yaml
from PIL import Image, ImageDraw
from diffusers.utils import load_image
from pydub import AudioSegment
import threa... |
microsoft/JARVIS | https://github.com/microsoft/JARVIS | null | null | null | null | 24,689 | null | null | mit | null | null | null | null | null | null | null | hugginggpt/server/get_token_ids.py | null | null | null | null | null | null | Python | 2026-05-04T02:27:20.550901 | import tiktoken
encodings = {
"gpt-4": tiktoken.get_encoding("cl100k_base"),
"gpt-4-32k": tiktoken.get_encoding("cl100k_base"),
"gpt-3.5-turbo": tiktoken.get_encoding("cl100k_base"),
"gpt-3.5-turbo-0301": tiktoken.get_encoding("cl100k_base"),
"text-davinci-003": tiktoken.get_encoding("p50k_base"),
... |
microsoft/JARVIS | https://github.com/microsoft/JARVIS | null | null | null | null | 24,689 | null | null | mit | null | null | null | null | null | null | null | taskbench/generate_graph.py | null | null | null | null | null | null | Python | 2026-05-04T02:27:20.551691 | import json
import click
def generate_graph_resource(tool_file):
with open(tool_file) as f:
data = json.load(f)
data = data["nodes"]
assert "input-type" in data[0] and "output-type" in data[0], "Input and output types are not defined"
nodes = []
for i in range(len(data)):
nodes.appe... |
microsoft/JARVIS | https://github.com/microsoft/JARVIS | null | null | null | null | 24,689 | null | null | mit | null | null | null | null | null | null | null | taskbench/format_data.py | null | null | null | null | null | null | Python | 2026-05-04T02:27:20.552274 | import json
import click
import traceback
def formulate_sample(data, dependency_type):
try:
user_request = data["result"]["user_request"]
invoking_graph = data["result"]["invoking_graph"]
task_steps = data["result"]["task_steps"]
nodes = invoking_graph["nodes"]
links = invok... |
microsoft/JARVIS | https://github.com/microsoft/JARVIS | null | null | null | null | 24,689 | null | null | mit | null | null | null | null | null | null | null | hugginggpt/server/run_gradio_demo.py | null | null | null | null | null | null | Python | 2026-05-04T02:27:20.552730 | import uuid
import gradio as gr
import re
from diffusers.utils import load_image
import requests
from awesome_chat import chat_huggingface
all_messages = []
OPENAI_KEY = ""
def add_message(content, role):
message = {"role":role, "content":content}
all_messages.append(message)
def extract_medias(message):
... |
microsoft/JARVIS | https://github.com/microsoft/JARVIS | null | null | null | null | 24,689 | null | null | mit | null | null | null | null | null | null | null | taskbench/inference.py | null | null | null | null | null | null | Python | 2026-05-04T02:27:20.553596 |
import os
import json
import click
import asyncio
import aiohttp
import logging
import emoji
logger = logging.getLogger(__name__)
logger.setLevel(logging.INFO)
logger.handlers = []
class RateLimitError(Exception):
def __init__(self, message):
super().__init__(message)
class ContentFormatError(Exception)... |
microsoft/JARVIS | https://github.com/microsoft/JARVIS | null | null | null | null | 24,689 | null | null | mit | null | null | null | null | null | null | null | taskbench/graph_sampler.py | null | null | null | null | null | null | Python | 2026-05-04T02:27:20.554198 | import networkx as nx
import random
import json
import matplotlib.pyplot as plt
import click
random.seed(0)
class GraphSampler:
def __init__(self, graph: nx.Graph = None, file_name = None):
if file_name:
with open(file_name, "r") as f:
data = json.load(f)
# Represen... |
microsoft/JARVIS | https://github.com/microsoft/JARVIS | null | null | null | null | 24,689 | null | null | mit | null | null | null | null | null | null | null | taskbench/data_engine.py | null | null | null | null | null | null | Python | 2026-05-04T02:27:20.555044 | import os
import random
import traceback
import uuid
import json
import networkx as nx
from datetime import datetime
from concurrent.futures import ThreadPoolExecutor, as_completed
import shutil
import warnings
from graph_sampler import GraphSampler
import click
import matplotlib.pyplot as plt
import asyncio
import ai... |
microsoft/JARVIS | https://github.com/microsoft/JARVIS | null | null | null | null | 24,689 | null | null | mit | null | null | null | null | null | null | null | taskbench/evaluate.py | null | null | null | null | null | null | Python | 2026-05-04T02:27:20.555680 | import traceback
import numpy as np
from scipy.optimize import linear_sum_assignment
import json
import click
from datasets import load_metric
import Levenshtein
from sklearn.metrics import precision_recall_fscore_support as prfs
import warnings
import logging
import os
import itertools
warnings.filterwarnings("ignore... |
microsoft/JARVIS | https://github.com/microsoft/JARVIS | null | null | null | null | 24,689 | null | null | mit | null | null | null | null | null | null | null | hugginggpt/server/models_server.py | null | null | null | null | null | null | Python | 2026-05-04T02:27:20.556238 | import argparse
import logging
import random
import uuid
import numpy as np
from transformers import pipeline
from diffusers import DiffusionPipeline, StableDiffusionControlNetPipeline, ControlNetModel, UniPCMultistepScheduler
from diffusers.utils import load_image
from diffusers import DiffusionPipeline, DPMSolverMult... |
microsoft/JARVIS | https://github.com/microsoft/JARVIS | null | null | null | null | 24,689 | null | null | mit | null | null | null | null | null | null | null | taskbench/visualize_graph.py | null | null | null | null | null | null | Python | 2026-05-04T02:27:21.748862 | import json
import networkx as nx
import matplotlib.pyplot as plt
import click
@click.command()
@click.option('--data_dir')
def visialize_graph(data_dir):
graph_file = f"{data_dir}/graph_desc.json"
with open(graph_file, "r") as f:
data = json.load(f)
G = nx.DiGraph()
for node in data["nodes"]... |
mvanhorn/last30days-skill | https://github.com/mvanhorn/last30days-skill | null | null | null | null | 24,665 | null | null | mit | null | null | null | null | null | null | null | skills/last30days/scripts/lib/bird_x.py | null | null | null | null | null | null | Python | 2026-05-04T02:27:24.123412 | """Bird X search client for the v3.0.0 last30days pipeline.
Uses a vendored subset of @steipete/bird v0.8.0 (MIT License) to search X
via Twitter's GraphQL API. No external `bird` CLI binary needed - just Node.js.
See scripts/lib/vendor/bird-search/package.json for authoritative version.
"""
import json
import os
imp... |
mvanhorn/last30days-skill | https://github.com/mvanhorn/last30days-skill | null | null | null | null | 24,665 | null | null | mit | null | null | null | null | null | null | null | skills/last30days/scripts/lib/cluster.py | null | null | null | null | null | null | Python | 2026-05-04T02:27:24.132843 | """Candidate clustering and representative selection."""
from __future__ import annotations
import re
from . import dedupe, schema
CLUSTERABLE_INTENTS = {"breaking_news", "opinion", "comparison", "prediction"}
# Words too common to signal shared topic between clusters.
_ENTITY_STOPWORDS = frozenset({
"the", "a... |
mvanhorn/last30days-skill | https://github.com/mvanhorn/last30days-skill | null | null | null | null | 24,665 | null | null | mit | null | null | null | null | null | null | null | skills/last30days/scripts/lib/chrome_cookies.py | null | null | null | null | null | null | Python | 2026-05-04T02:27:24.137973 | """Chrome cookie extraction for macOS.
Extracts cookies from Chrome's encrypted SQLite database using only stdlib
modules and the system openssl CLI (ships with macOS). Zero pip dependencies.
Chrome on macOS uses v10 encryption (AES-128-CBC with Keychain-stored key).
This is NOT affected by Windows App-Bound Encrypti... |
mvanhorn/last30days-skill | https://github.com/mvanhorn/last30days-skill | null | null | null | null | 24,665 | null | null | mit | null | null | null | null | null | null | null | skills/last30days/scripts/briefing.py | null | null | null | null | null | null | Python | 2026-05-04T02:27:24.141339 | #!/usr/bin/env python3
"""Morning briefing generator for last30days.
Synthesizes accumulated findings into formatted briefings.
The Python script collects the data; the agent (via SKILL.md) does the
beautiful synthesis. This script provides the structured data.
Usage:
python3 briefing.py generate # D... |
mvanhorn/last30days-skill | https://github.com/mvanhorn/last30days-skill | null | null | null | null | 24,665 | null | null | mit | null | null | null | null | null | null | null | skills/last30days/scripts/lib/categories.py | null | null | null | null | null | null | Python | 2026-05-04T02:27:24.143660 | """Category-peer subreddit map for Step 0.55 community resolution.
When a topic is a product in a known category (AI image generation, AI coding
agents, SaaS screen recording, etc.), brand-specific subreddits returned by
WebSearch are insufficient: cross-product technique discussion lives in
category-peer subs. This m... |
mvanhorn/last30days-skill | https://github.com/mvanhorn/last30days-skill | null | null | null | null | 24,665 | null | null | mit | null | null | null | null | null | null | null | skills/last30days/scripts/evaluate_search_quality.py | null | null | null | null | null | null | Python | 2026-05-04T02:27:24.156676 | #!/usr/bin/env python3
"""Compare two last30days revisions on the v3 ranked candidate output."""
from __future__ import annotations
import argparse
import json
import math
import os
import subprocess
import sys
import tempfile
from datetime import datetime
from pathlib import Path
from typing import Any
from urllib.e... |
mvanhorn/last30days-skill | https://github.com/mvanhorn/last30days-skill | null | null | null | null | 24,665 | null | null | mit | null | null | null | null | null | null | null | skills/last30days/scripts/last30days.py | null | null | null | null | null | null | Python | 2026-05-04T02:27:24.181549 | #!/usr/bin/env python3
# ruff: noqa: E402
"""last30days v3.0.0 CLI."""
from __future__ import annotations
import argparse
import atexit
import json
import os
import re
import signal
import sys
import threading
from pathlib import Path
MIN_PYTHON = (3, 12)
def ensure_supported_python(version_info: tuple[int, int, i... |
mvanhorn/last30days-skill | https://github.com/mvanhorn/last30days-skill | null | null | null | null | 24,665 | null | null | mit | null | null | null | null | null | null | null | skills/last30days/scripts/lib/competitors.py | null | null | null | null | null | null | Python | 2026-05-04T02:27:24.211704 | """Discover peer entities ("competitors") for a topic via web search.
Mirrors the `resolve.auto_resolve()` pattern: fan out 2-3 web searches via
`grounding.web_search()`, then extract capitalized entity candidates from
titles and snippets with deterministic text mining. No LLM call — the
hosting reasoning model can al... |
mvanhorn/last30days-skill | https://github.com/mvanhorn/last30days-skill | null | null | null | null | 24,665 | null | null | mit | null | null | null | null | null | null | null | skills/last30days/scripts/lib/bluesky.py | null | null | null | null | null | null | Python | 2026-05-04T02:27:24.243921 | """Bluesky search via AT Protocol (requires app password).
Uses bsky.social for auth and public.api.bsky.app for post search.
Requires BSKY_HANDLE and BSKY_APP_PASSWORD env vars.
"""
import math
import re
import sys
import time
from datetime import datetime, timezone
from typing import Any, Dict, List, Optional
from... |
mvanhorn/last30days-skill | https://github.com/mvanhorn/last30days-skill | null | null | null | null | 24,665 | null | null | mit | null | null | null | null | null | null | null | skills/last30days/scripts/lib/entity_extract.py | null | null | null | null | null | null | Python | 2026-05-04T02:27:25.042293 | """Entity extraction from initial search results for supplemental searches."""
import re
from collections import Counter
from typing import Any, Dict, List
# Handles that appear too frequently to be useful for targeted search.
# These are generic/platform accounts, not topic-specific voices.
GENERIC_HANDLES = {
"... |
mvanhorn/last30days-skill | https://github.com/mvanhorn/last30days-skill | null | null | null | null | 24,665 | null | null | mit | null | null | null | null | null | null | null | skills/last30days/scripts/lib/cookie_extract.py | null | null | null | null | null | null | Python | 2026-05-04T02:27:25.043503 | """Browser cookie extraction for last30days.
Extracts cookies from local browser databases (Firefox, Chrome, Safari)
to enable zero-config authentication for services like X/Twitter.
Only uses Python stdlib — no external dependencies.
"""
import configparser
import functools
import logging
import platform
import shu... |
mvanhorn/last30days-skill | https://github.com/mvanhorn/last30days-skill | null | null | null | null | 24,665 | null | null | mit | null | null | null | null | null | null | null | skills/last30days/scripts/lib/dates.py | null | null | null | null | null | null | Python | 2026-05-04T02:27:25.045262 | """Date utilities for last30days skill."""
from datetime import datetime, timedelta, timezone
from typing import Optional, Tuple
def get_date_range(days: int = 30) -> Tuple[str, str]:
"""Get the date range for the last N days.
Returns:
Tuple of (from_date, to_date) as YYYY-MM-DD strings
"""
... |
mvanhorn/last30days-skill | https://github.com/mvanhorn/last30days-skill | null | null | null | null | 24,665 | null | null | mit | null | null | null | null | null | null | null | skills/last30days/scripts/lib/dedupe.py | null | null | null | null | null | null | Python | 2026-05-04T02:27:25.046764 | """Within-source near-duplicate detection."""
from __future__ import annotations
import re
from . import schema
STOPWORDS = frozenset(
{
"the",
"a",
"an",
"to",
"for",
"how",
"is",
"in",
"of",
"on",
"and",
"with",
... |
mvanhorn/last30days-skill | https://github.com/mvanhorn/last30days-skill | null | null | null | null | 24,665 | null | null | mit | null | null | null | null | null | null | null | skills/last30days/scripts/lib/fusion.py | null | null | null | null | null | null | Python | 2026-05-04T02:27:25.052937 | """Weighted reciprocal rank fusion for per-(subquery, source) streams."""
from __future__ import annotations
from urllib.parse import parse_qs, urlencode, urlparse, urlunparse
from . import schema
# Standard RRF smoothing constant (Cormack et al. 2009)
RRF_K = 60
def _candidate_sort_key(c: schema.Candidate) -> tu... |
mvanhorn/last30days-skill | https://github.com/mvanhorn/last30days-skill | null | null | null | null | 24,665 | null | null | mit | null | null | null | null | null | null | null | skills/last30days/scripts/lib/env.py | null | null | null | null | null | null | Python | 2026-05-04T02:27:25.082102 | """Environment and API key management for last30days skill."""
from __future__ import annotations
import base64
import binascii
import json
import os
import sys
import time
from dataclasses import dataclass
from pathlib import Path
from typing import Any, Literal
# Allow override via environment variable for testing... |
mvanhorn/last30days-skill | https://github.com/mvanhorn/last30days-skill | null | null | null | null | 24,665 | null | null | mit | null | null | null | null | null | null | null | skills/last30days/scripts/lib/html_render.py | null | null | null | null | null | null | Python | 2026-05-04T02:27:26.071283 | """HTML rendering for shareable last30days reports."""
from __future__ import annotations
import html
import re
from datetime import date
from . import render, schema
PROSE_LABELS = [
("What I learned:", "What I learned"),
("KEY PATTERNS from the research:", "Key patterns from the research"),
]
INVITATION... |
mvanhorn/last30days-skill | https://github.com/mvanhorn/last30days-skill | null | null | null | null | 24,665 | null | null | mit | null | null | null | null | null | null | null | skills/last30days/scripts/lib/log.py | null | null | null | null | null | null | Python | 2026-05-04T02:27:26.083644 | """Shared logging utilities for last30days skill."""
import os
import sys
DEBUG = os.environ.get("LAST30DAYS_DEBUG", "").lower() in ("1", "true", "yes")
def debug(msg: str) -> None:
"""Log debug message to stderr (only when LAST30DAYS_DEBUG is set)."""
if DEBUG:
sys.stderr.write(f"[DEBUG] {msg}\n")
... |
mvanhorn/last30days-skill | https://github.com/mvanhorn/last30days-skill | null | null | null | null | 24,665 | null | null | mit | null | null | null | null | null | null | null | skills/last30days/scripts/lib/instagram.py | null | null | null | null | null | null | Python | 2026-05-04T02:27:26.085255 | """Instagram Reels search via ScrapeCreators API for /last30days.
Uses ScrapeCreators REST API to search Instagram Reels by keyword, extract
engagement metrics (views, likes, comments), and fetch video transcripts.
Requires SCRAPECREATORS_API_KEY in config. 100 free API calls, then PAYG.
API docs: https://scrapecreat... |
mvanhorn/last30days-skill | https://github.com/mvanhorn/last30days-skill | null | null | null | null | 24,665 | null | null | mit | null | null | null | null | null | null | null | skills/last30days/scripts/lib/hackernews.py | null | null | null | null | null | null | Python | 2026-05-04T02:27:26.175206 | """Hacker News search via Algolia API (free, no auth required).
Uses hn.algolia.com/api/v1 for story discovery and comment enrichment.
No API key needed - just HTTP calls via stdlib urllib.
"""
import datetime
import html
import math
import sys
import time
from concurrent.futures import ThreadPoolExecutor, as_complet... |
mvanhorn/last30days-skill | https://github.com/mvanhorn/last30days-skill | null | null | null | null | 24,665 | null | null | mit | null | null | null | null | null | null | null | skills/last30days/scripts/lib/grounding.py | null | null | null | null | null | null | Python | 2026-05-04T02:27:26.182492 | """Web search retrieval via Brave Search, Exa, and Serper."""
from __future__ import annotations
import urllib.parse
from datetime import datetime
from urllib.parse import urlparse
from . import dates, http
# ---------------------------------------------------------------------------
# Brave Search API
# ---------... |
mvanhorn/last30days-skill | https://github.com/mvanhorn/last30days-skill | null | null | null | null | 24,665 | null | null | mit | null | null | null | null | null | null | null | skills/last30days/scripts/lib/github.py | null | null | null | null | null | null | Python | 2026-05-04T02:27:26.287306 | """GitHub Issues/PRs search via the public GitHub Search API.
Uses api.github.com/search/issues for issue/PR discovery and
per-item comment enrichment. Auth via GITHUB_TOKEN env var or
`gh auth token` subprocess fallback.
"""
import json
import math
import os
import re
import subprocess
import sys
import urllib.error... |
mvanhorn/last30days-skill | https://github.com/mvanhorn/last30days-skill | null | null | null | null | 24,665 | null | null | mit | null | null | null | null | null | null | null | skills/last30days/scripts/lib/pinterest.py | null | null | null | null | null | null | Python | 2026-05-04T02:27:26.699327 | """Pinterest search via ScrapeCreators API for /last30days.
Uses ScrapeCreators REST API to search Pinterest by keyword, extract
engagement metrics (saves, comments), and return pin descriptions.
Requires SCRAPECREATORS_API_KEY in config. 100 free API calls, then PAYG.
API docs: https://scrapecreators.com/docs
"""
i... |
mvanhorn/last30days-skill | https://github.com/mvanhorn/last30days-skill | null | null | null | null | 24,665 | null | null | mit | null | null | null | null | null | null | null | skills/last30days/scripts/lib/planner.py | null | null | null | null | null | null | Python | 2026-05-04T02:27:26.754314 | """LLM-first query planning with deterministic guards for risky queries."""
from __future__ import annotations
import json
import re
from . import http, providers, query, schema
ALLOWED_INTENTS = {
"factual",
"product",
"concept",
"opinion",
"how_to",
"comparison",
"breaking_news",
"... |
mvanhorn/last30days-skill | https://github.com/mvanhorn/last30days-skill | null | null | null | null | 24,665 | null | null | mit | null | null | null | null | null | null | null | skills/last30days/scripts/lib/pipeline.py | null | null | null | null | null | null | Python | 2026-05-04T02:27:26.762197 | """v3.0.0 orchestration pipeline."""
from __future__ import annotations
import sys
import threading
import time
from concurrent.futures import ThreadPoolExecutor, as_completed
from datetime import datetime, timezone
from shutil import which
from typing import Any
from . import (
bird_x,
bluesky,
dates,
... |
mvanhorn/last30days-skill | https://github.com/mvanhorn/last30days-skill | null | null | null | null | 24,665 | null | null | mit | null | null | null | null | null | null | null | skills/last30days/scripts/lib/preflight.py | null | null | null | null | null | null | Python | 2026-05-04T02:27:26.769663 | """Engine-side query-quality pre-flight.
Detects Class 1 (demographic shopping) keyword-trap queries and returns a
structured REFUSE message. The caller (scripts/last30days.py main()) writes
the message to stderr and exits code 2. No pipeline work runs on a doomed
query; the model sees the REFUSE on stderr and asks th... |
mvanhorn/last30days-skill | https://github.com/mvanhorn/last30days-skill | null | null | null | null | 24,665 | null | null | mit | null | null | null | null | null | null | null | skills/last30days/scripts/lib/polymarket.py | null | null | null | null | null | null | Python | 2026-05-04T02:27:26.782246 | """Polymarket prediction market search via Gamma API (free, no auth required).
Uses gamma-api.polymarket.com for event/market discovery.
No API key needed - public read-only API with generous rate limits (15K req/10s).
"""
import json
import math
import re
import sys
from concurrent.futures import ThreadPoolExecutor,... |
mvanhorn/last30days-skill | https://github.com/mvanhorn/last30days-skill | null | null | null | null | 24,665 | null | null | mit | null | null | null | null | null | null | null | skills/last30days/scripts/lib/providers.py | null | null | null | null | null | null | Python | 2026-05-04T02:27:27.064601 | """Static provider catalog and runtime client implementations."""
from __future__ import annotations
import json
import re
import sys
from typing import Any
from . import env, http, schema
GEMINI_FLASH_LITE = "gemini-3.1-flash-lite-preview"
GEMINI_PRO = "gemini-3.1-pro-preview"
OPENAI_DEFAULT = "gpt-5.4-nano"
XAI_D... |
mvanhorn/last30days-skill | https://github.com/mvanhorn/last30days-skill | null | null | null | null | 24,665 | null | null | mit | null | null | null | null | null | null | null | skills/last30days/scripts/lib/reddit_enrich.py | null | null | null | null | null | null | Python | 2026-05-04T02:27:27.345979 | """Reddit thread enrichment with real engagement metrics.
Supports two backends:
1. ScrapeCreators API (preferred) - no rate limits, 1 credit/call
2. reddit.com/.json (fallback) - free but 429-prone
"""
import re
from typing import Any, Dict, List, Optional
from urllib.parse import urlparse
from . import http, dates... |
mvanhorn/last30days-skill | https://github.com/mvanhorn/last30days-skill | null | null | null | null | 24,665 | null | null | mit | null | null | null | null | null | null | null | skills/last30days/scripts/lib/query.py | null | null | null | null | null | null | Python | 2026-05-04T02:27:27.372333 | """Shared query preprocessing utilities: noise-word stripping, core subject
extraction, and compound term detection. Used by all search modules."""
import re
from typing import FrozenSet, List, Optional, Set
# Common multi-word prefixes stripped from all queries (identical across modules)
PREFIXES = [
'what are t... |
mvanhorn/last30days-skill | https://github.com/mvanhorn/last30days-skill | null | null | null | null | 24,665 | null | null | mit | null | null | null | null | null | null | null | skills/last30days/scripts/lib/reddit_public.py | null | null | null | null | null | null | Python | 2026-05-04T02:27:27.373727 | """Standalone Reddit public JSON search module.
Searches Reddit using the free public JSON endpoints (no API key required).
Promoted from last-resort fallback to robust primary free path.
Endpoints:
- Global: https://www.reddit.com/search.json?q={query}&sort=relevance&t=month&limit={limit}
- Subreddit: https://www.re... |
mvanhorn/last30days-skill | https://github.com/mvanhorn/last30days-skill | null | null | null | null | 24,665 | null | null | mit | null | null | null | null | null | null | null | skills/last30days/scripts/lib/quality_nudge.py | null | null | null | null | null | null | Python | 2026-05-04T02:27:27.450750 | """Post-research quality score and upgrade nudge.
Computes a quality score based on 5 core sources and builds
a nudge message describing what the user missed and how to fix it.
"""
from typing import List
# The 5 core sources
CORE_SOURCES = ["hn", "polymarket", "x", "youtube", "reddit"]
# Labels for display
SOURCE... |
mvanhorn/last30days-skill | https://github.com/mvanhorn/last30days-skill | null | null | null | null | 24,665 | null | null | mit | null | null | null | null | null | null | null | skills/last30days/scripts/lib/reddit.py | null | null | null | null | null | null | Python | 2026-05-04T02:27:27.476314 | """Reddit search via ScrapeCreators API for the v3 pipeline.
Uses ScrapeCreators REST API to search Reddit globally, discover relevant
subreddits, run targeted subreddit searches, and fetch comment trees.
Requires SCRAPECREATORS_API_KEY in config (same key as TikTok + Instagram).
API docs: https://scrapecreators.com/... |
mvanhorn/last30days-skill | https://github.com/mvanhorn/last30days-skill | null | null | null | null | 24,665 | null | null | mit | null | null | null | null | null | null | null | skills/last30days/scripts/lib/relevance.py | null | null | null | null | null | null | Python | 2026-05-04T02:27:27.674528 | """Shared token-overlap relevance scoring for search result ranking.
The score is intentionally query-centric:
- exact phrase matches should score very high
- partial matches should pay a meaningful penalty
- matches on generic words alone ("odds", "review") should not pass as relevant
"""
import re
from typing impor... |
mvanhorn/last30days-skill | https://github.com/mvanhorn/last30days-skill | null | null | null | null | 24,665 | null | null | mit | null | null | null | null | null | null | null | skills/last30days/scripts/lib/rerank.py | null | null | null | null | null | null | Python | 2026-05-04T02:27:27.949078 | """Reranking with LLM-scored relevance and demotion of low-confidence candidates."""
from __future__ import annotations
import json
import re
from . import http, providers, query, schema
# Penalty applied when a candidate does not mention the primary entity
# from the topic in its title or snippet. Picked empirica... |
mvanhorn/last30days-skill | https://github.com/mvanhorn/last30days-skill | null | null | null | null | 24,665 | null | null | mit | null | null | null | null | null | null | null | skills/last30days/scripts/lib/render.py | null | null | null | null | null | null | Python | 2026-05-04T02:27:27.982505 | """Cluster-first rendering for the v3 pipeline."""
from __future__ import annotations
import json
import pathlib
from collections import Counter
from datetime import date
from urllib.parse import urlparse
from . import dates, schema
def _skill_version() -> str:
"""Read plugin version from a plugin manifest if ... |
mvanhorn/last30days-skill | https://github.com/mvanhorn/last30days-skill | null | null | null | null | 24,665 | null | null | mit | null | null | null | null | null | null | null | skills/last30days/scripts/lib/resolve.py | null | null | null | null | null | null | Python | 2026-05-04T02:27:28.079203 | """Auto-resolve subreddits, X handles, and current events context for a topic.
Uses web search (Brave/Exa/Serper) to discover relevant communities and context
before the planner runs. This is the engine-side equivalent of SKILL.md Steps
0.55/0.75 which use Claude Code's WebSearch tool.
"""
from __future__ import anno... |
mvanhorn/last30days-skill | https://github.com/mvanhorn/last30days-skill | null | null | null | null | 24,665 | null | null | mit | null | null | null | null | null | null | null | skills/last30days/scripts/lib/safari_cookies.py | null | null | null | null | null | null | Python | 2026-05-04T02:27:28.147688 | """
Safari binary cookie extractor for macOS.
Parses ~/Library/Cookies/Cookies.binarycookies (unencrypted binary format)
using only stdlib. Zero pip dependencies.
Reference: github.com/mdegrazia/Safari-Binary-Cookie-Parser
"""
from __future__ import annotations
import io
import struct
import sys
from pathlib import... |
mvanhorn/last30days-skill | https://github.com/mvanhorn/last30days-skill | null | null | null | null | 24,665 | null | null | mit | null | null | null | null | null | null | null | skills/last30days/scripts/lib/schema.py | null | null | null | null | null | null | Python | 2026-05-04T02:27:28.190928 | """Core data model for the v3.0.0 last30days pipeline."""
from __future__ import annotations
from dataclasses import asdict, dataclass, field, is_dataclass
from typing import Any, Literal
def _drop_none(value: Any) -> Any:
"""Recursively remove None values from dataclass-derived structures."""
if is_datacla... |
mvanhorn/last30days-skill | https://github.com/mvanhorn/last30days-skill | null | null | null | null | 24,665 | null | null | mit | null | null | null | null | null | null | null | skills/last30days/scripts/lib/setup_wizard.py | null | null | null | null | null | null | Python | 2026-05-04T02:27:28.277846 | """First-run setup wizard for last30days.
Detects first run, performs auto-setup (cookie extraction + yt-dlp check),
and writes configuration. The actual wizard UI is SKILL.md-driven (the LLM
presents it), but this module provides the detection and setup actions.
"""
import json
import logging
import shutil
import su... |
mvanhorn/last30days-skill | https://github.com/mvanhorn/last30days-skill | null | null | null | null | 24,665 | null | null | mit | null | null | null | null | null | null | null | skills/last30days/scripts/lib/snippet.py | null | null | null | null | null | null | Python | 2026-05-04T02:27:28.571237 | """Best-window extraction for rerankable evidence snippets."""
from __future__ import annotations
from . import relevance, schema
def _truncate_words(text: str, max_words: int) -> str:
words = text.split()
if len(words) <= max_words:
return text.strip()
return " ".join(words[:max_words]).strip()... |
mvanhorn/last30days-skill | https://github.com/mvanhorn/last30days-skill | null | null | null | null | 24,665 | null | null | mit | null | null | null | null | null | null | null | skills/last30days/scripts/lib/subproc.py | null | null | null | null | null | null | Python | 2026-05-04T02:27:28.658185 | """Subprocess helpers: safe timeout + process-group cleanup.
Used by bird_x.py (Node.js Bird search) and youtube_yt.py (yt-dlp search
and transcript download). Both need the same os.setsid/killpg cleanup
dance on timeout to avoid orphaning child processes.
"""
from __future__ import annotations
import os
import sign... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.