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
suitenumerique/meet
https://github.com/suitenumerique/meet
null
null
null
null
1,993
null
null
mit
null
null
null
null
null
null
null
src/backend/core/factories.py
null
null
null
null
null
null
Python
2026-05-04T01:40:52.205156
""" Core application factories """ from io import BytesIO from django.conf import settings from django.contrib.auth.hashers import make_password from django.core.files.storage import default_storage from django.utils.text import slugify import factory.fuzzy from faker import Faker from core import models, utils fa...
suitenumerique/meet
https://github.com/suitenumerique/meet
null
null
null
null
1,993
null
null
mit
null
null
null
null
null
null
null
src/backend/core/fields.py
null
null
null
null
null
null
Python
2026-05-04T01:40:52.259012
""" Core application fields """ from logging import getLogger from django.contrib.auth.hashers import identify_hasher, make_password from django.db import models logger = getLogger(__name__) class SecretField(models.CharField): """CharField that automatically hashes secrets before saving. Use for API keys...
suitenumerique/meet
https://github.com/suitenumerique/meet
null
null
null
null
1,993
null
null
mit
null
null
null
null
null
null
null
src/backend/core/migrations/0002_create_pg_trgm_extension.py
null
null
null
null
null
null
Python
2026-05-04T01:40:52.870016
from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('core', '0001_initial'), ] operations = [ migrations.RunSQL( "CREATE EXTENSION IF NOT EXISTS pg_trgm;", reverse_sql="DROP EXTENSION IF EXISTS pg_trgm;", ), ]
suitenumerique/meet
https://github.com/suitenumerique/meet
null
null
null
null
1,993
null
null
mit
null
null
null
null
null
null
null
src/backend/core/migrations/0006_merge_duplicate_users.py
null
null
null
null
null
null
Python
2026-05-04T01:40:53.335768
from django.db import migrations from django.db.models import Count from core.models import RoleChoices def merge_duplicate_user_accounts(apps, schema_editor): """Merge user accounts that share the same email address. Historical Context: Previously, ProConnect authentication could return users with the s...
suitenumerique/meet
https://github.com/suitenumerique/meet
null
null
null
null
1,993
null
null
mit
null
null
null
null
null
null
null
src/backend/core/models.py
null
null
null
null
null
null
Python
2026-05-04T01:40:54.130125
""" Declare and configure the models for the Meet core application # pylint: disable=too-many-lines """ # pylint: disable=too-many-lines import secrets import uuid from datetime import datetime, timedelta from logging import getLogger from os.path import splitext from typing import List, Optional from django.conf imp...
suitenumerique/meet
https://github.com/suitenumerique/meet
null
null
null
null
1,993
null
null
mit
null
null
null
null
null
null
null
src/backend/core/recording/enums.py
null
null
null
null
null
null
Python
2026-05-04T01:40:54.159616
"""Enums related to recordings.""" from enum import Enum class FileExtension(Enum): """Enum for file extensions used in recordings.""" OGG = "ogg" MP4 = "mp4"
stripe/stripe-python
https://github.com/stripe/stripe-python
null
null
null
null
1,990
null
null
mit
null
null
null
null
null
null
null
examples/raw_request.py
null
null
null
null
null
null
Python
2026-05-04T01:40:56.745761
from stripe import StripeClient # Set your API key here api_key = "{{API_KEY}}" client = StripeClient(api_key) response = client.raw_request( "post", "/v1/beta_endpoint", param=123, stripe_version="2022-11-15; feature_beta=v3", ) # (Optional) response is a StripeResponse. You can use `client.deserial...
stripe/stripe-python
https://github.com/stripe/stripe-python
null
null
null
null
1,990
null
null
mit
null
null
null
null
null
null
null
flake8_stripe/flake8_stripe.py
null
null
null
null
null
null
Python
2026-05-04T01:40:56.746771
# Hint: if you're developing this plugin, test changes with: # venv/bin/tox -e lint -r # so that tox re-installs the plugin from the local directory import ast from typing import Iterator, Tuple class TypingImportsChecker: name = __name__ version = "0.1.0" # Rules: # If a symbol exists in both `typ...
stripe/stripe-python
https://github.com/stripe/stripe-python
null
null
null
null
1,990
null
null
mit
null
null
null
null
null
null
null
examples/oauth.py
null
null
null
null
null
null
Python
2026-05-04T01:40:56.759688
import os from stripe import StripeClient from stripe.oauth_error import OAuthError from flask import Flask, request, redirect client = StripeClient( api_key=os.environ["STRIPE_SECRET_KEY"], client_id=os.environ.get("STRIPE_CLIENT_ID"), ) app = Flask(__name__) @app.route("/") def index(): return '<a ...
stripe/stripe-python
https://github.com/stripe/stripe-python
null
null
null
null
1,990
null
null
mit
null
null
null
null
null
null
null
examples/meter_event_stream.py
null
null
null
null
null
null
Python
2026-05-04T01:40:56.767412
""" meter_event_stream.py - use the high-throughput meter event stream to report create billing meter events. In this example, we: - create a meter event session and store the session's authentication token - define an event with a payload - use the meter_event_stream service accessor in StripeClient to create a...
stripe/stripe-python
https://github.com/stripe/stripe-python
null
null
null
null
1,990
null
null
mit
null
null
null
null
null
null
null
examples/proxy.py
null
null
null
null
null
null
Python
2026-05-04T01:40:56.768995
import os from stripe import ( StripeClient, RequestsClient, HTTPClient, UrllibClient, verify_ssl_certs, PycurlClient, ) print("Attempting charge...") proxy: HTTPClient._Proxy = { "http": "http://<user>:<pass>@<proxy>:<port>", "https": "http://<user>:<pass>@<proxy>:<port>", } http_cl...
stripe/stripe-python
https://github.com/stripe/stripe-python
null
null
null
null
1,990
null
null
mit
null
null
null
null
null
null
null
examples/webhooks.py
null
null
null
null
null
null
Python
2026-05-04T01:40:56.770402
import os from stripe import Webhook, SignatureVerificationError from flask import Flask, request # this is for handling v1-style Snapshot Events. # To handle v2-style Events, see `event_notification_webhook_handler.py` webhook_secret = os.environ.get("WEBHOOK_SECRET") app = Flask(__name__) @app.route("/webhooks"...
stripe/stripe-python
https://github.com/stripe/stripe-python
null
null
null
null
1,990
null
null
mit
null
null
null
null
null
null
null
stripe/__init__.py
null
null
null
null
null
null
Python
2026-05-04T01:40:56.799398
from typing_extensions import TYPE_CHECKING, Literal from typing import Optional import os import warnings # Stripe Python bindings # API docs at http://stripe.com/docs/api # Authors: # Patrick Collison <patrick@stripe.com> # Greg Brockman <gdb@stripe.com> # Andrew Metcalf <andrew@stripe.com> # Configuration variable...
stripe/stripe-python
https://github.com/stripe/stripe-python
null
null
null
null
1,990
null
null
mit
null
null
null
null
null
null
null
examples/event_notification_webhook_handler.py
null
null
null
null
null
null
Python
2026-05-04T01:40:56.859415
""" event_notification_webhook_handler.py - receive and process event notifications (AKA thin events) like the v1.billing.meter.error_report_triggered and v1.billing.meter.no_meter_found events. In this example, we: - create a StripeClient called client - use client.parse_event_notification() to parse the rece...
stripe/stripe-python
https://github.com/stripe/stripe-python
null
null
null
null
1,990
null
null
mit
null
null
null
null
null
null
null
examples/example_template.py
null
null
null
null
null
null
Python
2026-05-04T01:40:56.860455
""" example_template.py - This is a template for defining new examples. It is not intended to be used directly. <describe what this example does> In this example, we: - <key step 1> - <key step 2 - ... <describe assumptions about the user's stripe account, environment, or configuration; or things to watch out...
stripe/stripe-python
https://github.com/stripe/stripe-python
null
null
null
null
1,990
null
null
mit
null
null
null
null
null
null
null
stripe/_account_capability_service.py
null
null
null
null
null
null
Python
2026-05-04T01:40:56.925135
# -*- coding: utf-8 -*- # File generated from our OpenAPI spec from stripe._stripe_service import StripeService from stripe._util import sanitize_id from typing import Optional, cast from typing_extensions import TYPE_CHECKING if TYPE_CHECKING: from stripe._capability import Capability from stripe._list_object...
stripe/stripe-python
https://github.com/stripe/stripe-python
null
null
null
null
1,990
null
null
mit
null
null
null
null
null
null
null
stripe/_account_link.py
null
null
null
null
null
null
Python
2026-05-04T01:40:57.333762
# -*- coding: utf-8 -*- # File generated from our OpenAPI spec from stripe._createable_api_resource import CreateableAPIResource from typing import ClassVar, cast from typing_extensions import Literal, Unpack, TYPE_CHECKING if TYPE_CHECKING: from stripe.params._account_link_create_params import ( AccountLi...
stripe/stripe-python
https://github.com/stripe/stripe-python
null
null
null
null
1,990
null
null
mit
null
null
null
null
null
null
null
stripe/_account_external_account_service.py
null
null
null
null
null
null
Python
2026-05-04T01:40:57.353208
# -*- coding: utf-8 -*- # File generated from our OpenAPI spec from stripe._stripe_service import StripeService from stripe._util import sanitize_id from typing import Optional, cast from typing_extensions import TYPE_CHECKING if TYPE_CHECKING: from stripe._bank_account import BankAccount from stripe._card imp...
stripe/stripe-python
https://github.com/stripe/stripe-python
null
null
null
null
1,990
null
null
mit
null
null
null
null
null
null
null
stripe/_account_link_service.py
null
null
null
null
null
null
Python
2026-05-04T01:40:57.359293
# -*- coding: utf-8 -*- # File generated from our OpenAPI spec from stripe._stripe_service import StripeService from typing import Optional, cast from typing_extensions import TYPE_CHECKING if TYPE_CHECKING: from stripe._account_link import AccountLink from stripe._request_options import RequestOptions fro...
stripe/stripe-python
https://github.com/stripe/stripe-python
null
null
null
null
1,990
null
null
mit
null
null
null
null
null
null
null
stripe/_account_login_link_service.py
null
null
null
null
null
null
Python
2026-05-04T01:40:57.377182
# -*- coding: utf-8 -*- # File generated from our OpenAPI spec from stripe._stripe_service import StripeService from stripe._util import sanitize_id from typing import Optional, cast from typing_extensions import TYPE_CHECKING if TYPE_CHECKING: from stripe._login_link import LoginLink from stripe._request_opti...
stripe/stripe-python
https://github.com/stripe/stripe-python
null
null
null
null
1,990
null
null
mit
null
null
null
null
null
null
null
stripe/_account_person_service.py
null
null
null
null
null
null
Python
2026-05-04T01:40:57.378767
# -*- coding: utf-8 -*- # File generated from our OpenAPI spec from stripe._stripe_service import StripeService from stripe._util import sanitize_id from typing import Optional, cast from typing_extensions import TYPE_CHECKING if TYPE_CHECKING: from stripe._list_object import ListObject from stripe._person imp...
stripe/stripe-python
https://github.com/stripe/stripe-python
null
null
null
null
1,990
null
null
mit
null
null
null
null
null
null
null
stripe/_account_session_service.py
null
null
null
null
null
null
Python
2026-05-04T01:40:57.542896
# -*- coding: utf-8 -*- # File generated from our OpenAPI spec from stripe._stripe_service import StripeService from typing import Optional, cast from typing_extensions import TYPE_CHECKING if TYPE_CHECKING: from stripe._account_session import AccountSession from stripe._request_options import RequestOptions ...
stripe/stripe-python
https://github.com/stripe/stripe-python
null
null
null
null
1,990
null
null
mit
null
null
null
null
null
null
null
stripe/_any_iterator.py
null
null
null
null
null
null
Python
2026-05-04T01:40:57.545469
from typing import TypeVar, Iterator, AsyncIterator T = TypeVar("T") class AnyIterator(Iterator[T], AsyncIterator[T]): """ AnyIterator supports iteration through both `for ... in <AnyIterator>` and `async for ... in <AnyIterator> syntaxes. """ def __init__( self, iterator: Iterator[T], async...
stripe/stripe-python
https://github.com/stripe/stripe-python
null
null
null
null
1,990
null
null
mit
null
null
null
null
null
null
null
stripe/_account_session.py
null
null
null
null
null
null
Python
2026-05-04T01:40:57.546362
# -*- coding: utf-8 -*- # File generated from our OpenAPI spec from stripe._createable_api_resource import CreateableAPIResource from stripe._stripe_object import StripeObject from typing import ClassVar, cast from typing_extensions import Literal, Unpack, TYPE_CHECKING if TYPE_CHECKING: from stripe.params._accoun...
stripe/stripe-python
https://github.com/stripe/stripe-python
null
null
null
null
1,990
null
null
mit
null
null
null
null
null
null
null
stripe/_account_service.py
null
null
null
null
null
null
Python
2026-05-04T01:40:57.549776
# -*- coding: utf-8 -*- # File generated from our OpenAPI spec from stripe._stripe_service import StripeService from stripe._util import sanitize_id from typing import Optional, cast from importlib import import_module from typing_extensions import TYPE_CHECKING if TYPE_CHECKING: from stripe._account import Accoun...
stripe/stripe-python
https://github.com/stripe/stripe-python
null
null
null
null
1,990
null
null
mit
null
null
null
null
null
null
null
stripe/_api_requestor.py
null
null
null
null
null
null
Python
2026-05-04T01:40:57.945887
from io import BytesIO, IOBase import json import os import platform from typing import ( Any, AsyncIterable, Callable, Dict, List, Mapping, Optional, Tuple, Union, cast, ClassVar, ) from typing_extensions import ( TYPE_CHECKING, Literal, NoReturn, Unpack, ) i...
stripe/stripe-python
https://github.com/stripe/stripe-python
null
null
null
null
1,990
null
null
mit
null
null
null
null
null
null
null
stripe/_api_resource.py
null
null
null
null
null
null
Python
2026-05-04T01:40:57.954550
from typing_extensions import Literal, Self, deprecated from stripe._error import InvalidRequestError from stripe._stripe_object import StripeObject from stripe._request_options import extract_options_from_dict from stripe._api_mode import ApiMode from stripe._base_address import BaseAddress from stripe._api_requestor...
stripe/stripe-python
https://github.com/stripe/stripe-python
null
null
null
null
1,990
null
null
mit
null
null
null
null
null
null
null
stripe/_app_info.py
null
null
null
null
null
null
Python
2026-05-04T01:40:57.988072
from typing import Optional from typing_extensions import TypedDict class AppInfo(TypedDict): name: str partner_id: Optional[str] url: Optional[str] version: Optional[str]
stripe/stripe-python
https://github.com/stripe/stripe-python
null
null
null
null
1,990
null
null
mit
null
null
null
null
null
null
null
stripe/_api_version.py
null
null
null
null
null
null
Python
2026-05-04T01:40:58.045049
# -*- coding: utf-8 -*- # File generated from our OpenAPI spec class _ApiVersion: CURRENT = "2026-04-22.dahlia" CURRENT_MAJOR = "dahlia"
stripe/stripe-python
https://github.com/stripe/stripe-python
null
null
null
null
1,990
null
null
mit
null
null
null
null
null
null
null
stripe/_apple_pay_domain_service.py
null
null
null
null
null
null
Python
2026-05-04T01:40:58.070754
# -*- coding: utf-8 -*- # File generated from our OpenAPI spec from stripe._stripe_service import StripeService from stripe._util import sanitize_id from typing import Optional, cast from typing_extensions import TYPE_CHECKING if TYPE_CHECKING: from stripe._apple_pay_domain import ApplePayDomain from stripe._l...
stripe/stripe-python
https://github.com/stripe/stripe-python
null
null
null
null
1,990
null
null
mit
null
null
null
null
null
null
null
stripe/_apple_pay_domain.py
null
null
null
null
null
null
Python
2026-05-04T01:40:58.084795
# -*- coding: utf-8 -*- # File generated from our OpenAPI spec from stripe._createable_api_resource import CreateableAPIResource from stripe._deletable_api_resource import DeletableAPIResource from stripe._list_object import ListObject from stripe._listable_api_resource import ListableAPIResource from stripe._util impo...
stripe/stripe-python
https://github.com/stripe/stripe-python
null
null
null
null
1,990
null
null
mit
null
null
null
null
null
null
null
stripe/_application_fee.py
null
null
null
null
null
null
Python
2026-05-04T01:40:58.130317
# -*- coding: utf-8 -*- # File generated from our OpenAPI spec from stripe._expandable_field import ExpandableField from stripe._list_object import ListObject from stripe._listable_api_resource import ListableAPIResource from stripe._nested_resource_class_methods import nested_resource_class_methods from stripe._stripe...
stripe/stripe-python
https://github.com/stripe/stripe-python
null
null
null
null
1,990
null
null
mit
null
null
null
null
null
null
null
stripe/_application_fee_refund.py
null
null
null
null
null
null
Python
2026-05-04T01:40:58.159264
# -*- coding: utf-8 -*- # File generated from our OpenAPI spec from stripe._application_fee import ApplicationFee from stripe._expandable_field import ExpandableField from stripe._stripe_object import UntypedStripeObject from stripe._updateable_api_resource import UpdateableAPIResource from stripe._util import sanitize...
stripe/stripe-python
https://github.com/stripe/stripe-python
null
null
null
null
1,990
null
null
mit
null
null
null
null
null
null
null
stripe/_application_fee_refund_service.py
null
null
null
null
null
null
Python
2026-05-04T01:40:58.215546
# -*- coding: utf-8 -*- # File generated from our OpenAPI spec from stripe._stripe_service import StripeService from stripe._util import sanitize_id from typing import Optional, cast from typing_extensions import TYPE_CHECKING if TYPE_CHECKING: from stripe._application_fee_refund import ApplicationFeeRefund fr...
stripe/stripe-python
https://github.com/stripe/stripe-python
null
null
null
null
1,990
null
null
mit
null
null
null
null
null
null
null
stripe/_application.py
null
null
null
null
null
null
Python
2026-05-04T01:40:58.245379
# -*- coding: utf-8 -*- # File generated from our OpenAPI spec from stripe._stripe_object import StripeObject from typing import ClassVar, Optional from typing_extensions import Literal class Application(StripeObject): OBJECT_NAME: ClassVar[Literal["application"]] = "application" deleted: Optional[Literal[Tru...
stripe/stripe-python
https://github.com/stripe/stripe-python
null
null
null
null
1,990
null
null
mit
null
null
null
null
null
null
null
stripe/_balance.py
null
null
null
null
null
null
Python
2026-05-04T01:40:58.814557
# -*- coding: utf-8 -*- # File generated from our OpenAPI spec from stripe._singleton_api_resource import SingletonAPIResource from stripe._stripe_object import StripeObject from typing import ClassVar, List, Optional from typing_extensions import Literal, Unpack, TYPE_CHECKING if TYPE_CHECKING: from stripe.params...
stripe/stripe-python
https://github.com/stripe/stripe-python
null
null
null
null
1,990
null
null
mit
null
null
null
null
null
null
null
stripe/_balance_service.py
null
null
null
null
null
null
Python
2026-05-04T01:40:58.838669
# -*- coding: utf-8 -*- # File generated from our OpenAPI spec from stripe._stripe_service import StripeService from typing import Optional, cast from typing_extensions import TYPE_CHECKING if TYPE_CHECKING: from stripe._balance import Balance from stripe._request_options import RequestOptions from stripe....
stripe/stripe-python
https://github.com/stripe/stripe-python
null
null
null
null
1,990
null
null
mit
null
null
null
null
null
null
null
stripe/_application_fee_service.py
null
null
null
null
null
null
Python
2026-05-04T01:40:58.987064
# -*- coding: utf-8 -*- # File generated from our OpenAPI spec from stripe._stripe_service import StripeService from stripe._util import sanitize_id from typing import Optional, cast from importlib import import_module from typing_extensions import TYPE_CHECKING if TYPE_CHECKING: from stripe._application_fee impor...
stripe/stripe-python
https://github.com/stripe/stripe-python
null
null
null
null
1,990
null
null
mit
null
null
null
null
null
null
null
stripe/_apps_service.py
null
null
null
null
null
null
Python
2026-05-04T01:40:59.182138
# -*- coding: utf-8 -*- # File generated from our OpenAPI spec from stripe._stripe_service import StripeService from importlib import import_module from typing_extensions import TYPE_CHECKING if TYPE_CHECKING: from stripe.apps._secret_service import SecretService _subservices = {"secrets": ["stripe.apps._secret_s...
stripe/stripe-python
https://github.com/stripe/stripe-python
null
null
null
null
1,990
null
null
mit
null
null
null
null
null
null
null
stripe/_billing_service.py
null
null
null
null
null
null
Python
2026-05-04T01:40:59.414358
# -*- coding: utf-8 -*- # File generated from our OpenAPI spec from stripe._stripe_service import StripeService from importlib import import_module from typing_extensions import TYPE_CHECKING if TYPE_CHECKING: from stripe.billing._alert_service import AlertService from stripe.billing._credit_balance_summary_se...
stripe/stripe-python
https://github.com/stripe/stripe-python
null
null
null
null
1,990
null
null
mit
null
null
null
null
null
null
null
stripe/_billing_portal_service.py
null
null
null
null
null
null
Python
2026-05-04T01:40:59.415345
# -*- coding: utf-8 -*- # File generated from our OpenAPI spec from stripe._stripe_service import StripeService from importlib import import_module from typing_extensions import TYPE_CHECKING if TYPE_CHECKING: from stripe.billing_portal._configuration_service import ( ConfigurationService, ) from s...
stripe/stripe-python
https://github.com/stripe/stripe-python
null
null
null
null
1,990
null
null
mit
null
null
null
null
null
null
null
stripe/_capability.py
null
null
null
null
null
null
Python
2026-05-04T01:40:59.601770
# -*- coding: utf-8 -*- # File generated from our OpenAPI spec from stripe._account import Account from stripe._expandable_field import ExpandableField from stripe._stripe_object import StripeObject from stripe._updateable_api_resource import UpdateableAPIResource from stripe._util import sanitize_id from typing import...
stripe/stripe-python
https://github.com/stripe/stripe-python
null
null
null
null
1,990
null
null
mit
null
null
null
null
null
null
null
stripe/_balance_transaction.py
null
null
null
null
null
null
Python
2026-05-04T01:40:59.732307
# -*- coding: utf-8 -*- # File generated from our OpenAPI spec from stripe._expandable_field import ExpandableField from stripe._list_object import ListObject from stripe._listable_api_resource import ListableAPIResource from stripe._stripe_object import StripeObject from typing import ClassVar, List, Optional, Union f...
stripe/stripe-python
https://github.com/stripe/stripe-python
null
null
null
null
1,990
null
null
mit
null
null
null
null
null
null
null
stripe/_balance_settings.py
null
null
null
null
null
null
Python
2026-05-04T01:40:59.770856
# -*- coding: utf-8 -*- # File generated from our OpenAPI spec from stripe._singleton_api_resource import SingletonAPIResource from stripe._stripe_object import StripeObject, UntypedStripeObject from stripe._updateable_api_resource import UpdateableAPIResource from typing import ClassVar, List, Optional, cast from typi...
stripe/stripe-python
https://github.com/stripe/stripe-python
null
null
null
null
1,990
null
null
mit
null
null
null
null
null
null
null
stripe/_balance_settings_service.py
null
null
null
null
null
null
Python
2026-05-04T01:40:59.789291
# -*- coding: utf-8 -*- # File generated from our OpenAPI spec from stripe._stripe_service import StripeService from typing import Optional, cast from typing_extensions import TYPE_CHECKING if TYPE_CHECKING: from stripe._balance_settings import BalanceSettings from stripe._request_options import RequestOptions...
stripe/stripe-python
https://github.com/stripe/stripe-python
null
null
null
null
1,990
null
null
mit
null
null
null
null
null
null
null
stripe/_card.py
null
null
null
null
null
null
Python
2026-05-04T01:40:59.790797
# -*- coding: utf-8 -*- # File generated from our OpenAPI spec from stripe._account import Account from stripe._customer import Customer from stripe._deletable_api_resource import DeletableAPIResource from stripe._error import InvalidRequestError from stripe._expandable_field import ExpandableField from stripe._stripe_...
stripe/stripe-python
https://github.com/stripe/stripe-python
null
null
null
null
1,990
null
null
mit
null
null
null
null
null
null
null
stripe/_balance_transaction_service.py
null
null
null
null
null
null
Python
2026-05-04T01:40:59.794648
# -*- coding: utf-8 -*- # File generated from our OpenAPI spec from stripe._stripe_service import StripeService from stripe._util import sanitize_id from typing import Optional, cast from typing_extensions import TYPE_CHECKING if TYPE_CHECKING: from stripe._balance_transaction import BalanceTransaction from st...
stripe/stripe-python
https://github.com/stripe/stripe-python
null
null
null
null
1,990
null
null
mit
null
null
null
null
null
null
null
stripe/_cash_balance.py
null
null
null
null
null
null
Python
2026-05-04T01:41:00.282471
# -*- coding: utf-8 -*- # File generated from our OpenAPI spec from stripe._customer import Customer from stripe._stripe_object import StripeObject, UntypedStripeObject from stripe._util import sanitize_id from typing import ClassVar, Optional from typing_extensions import Literal class CashBalance(StripeObject): ...
stripe/stripe-python
https://github.com/stripe/stripe-python
null
null
null
null
1,990
null
null
mit
null
null
null
null
null
null
null
stripe/_charge_service.py
null
null
null
null
null
null
Python
2026-05-04T01:41:00.813389
# -*- coding: utf-8 -*- # File generated from our OpenAPI spec from stripe._stripe_service import StripeService from stripe._util import sanitize_id from typing import Optional, cast from typing_extensions import TYPE_CHECKING if TYPE_CHECKING: from stripe._charge import Charge from stripe._list_object import ...
stripe/stripe-python
https://github.com/stripe/stripe-python
null
null
null
null
1,990
null
null
mit
null
null
null
null
null
null
null
stripe/_confirmation_token.py
null
null
null
null
null
null
Python
2026-05-04T01:41:00.912801
# -*- coding: utf-8 -*- # File generated from our OpenAPI spec from stripe._api_resource import APIResource from stripe._expandable_field import ExpandableField from stripe._stripe_object import StripeObject from stripe._test_helpers import APIResourceTestHelpers from typing import ClassVar, List, Optional, cast from t...
stripe/stripe-python
https://github.com/stripe/stripe-python
null
null
null
null
1,990
null
null
mit
null
null
null
null
null
null
null
stripe/_checkout_service.py
null
null
null
null
null
null
Python
2026-05-04T01:41:01.234353
# -*- coding: utf-8 -*- # File generated from our OpenAPI spec from stripe._stripe_service import StripeService from importlib import import_module from typing_extensions import TYPE_CHECKING if TYPE_CHECKING: from stripe.checkout._session_service import SessionService _subservices = { "sessions": ["stripe.ch...
stripe/stripe-python
https://github.com/stripe/stripe-python
null
null
null
null
1,990
null
null
mit
null
null
null
null
null
null
null
stripe/_base_address.py
null
null
null
null
null
null
Python
2026-05-04T01:41:04.114054
from typing import Optional from typing_extensions import NotRequired, TypedDict, Literal BaseAddress = Literal["api", "files", "connect", "meter_events"] class BaseAddresses(TypedDict): api: NotRequired[Optional[str]] connect: NotRequired[Optional[str]] files: NotRequired[Optional[str]] meter_event...
stripe/stripe-python
https://github.com/stripe/stripe-python
null
null
null
null
1,990
null
null
mit
null
null
null
null
null
null
null
stripe/_bank_account.py
null
null
null
null
null
null
Python
2026-05-04T01:41:04.143843
# -*- coding: utf-8 -*- # File generated from our OpenAPI spec from stripe._account import Account from stripe._customer import Customer from stripe._deletable_api_resource import DeletableAPIResource from stripe._error import InvalidRequestError from stripe._expandable_field import ExpandableField from stripe._stripe_...
stripe/stripe-python
https://github.com/stripe/stripe-python
null
null
null
null
1,990
null
null
mit
null
null
null
null
null
null
null
stripe/_client_options.py
null
null
null
null
null
null
Python
2026-05-04T01:41:05.646731
from typing import Optional class _ClientOptions(object): client_id: Optional[str] proxy: Optional[str] verify_ssl_certs: Optional[bool] def __init__( self, client_id: Optional[str] = None, proxy: Optional[str] = None, verify_ssl_certs: Optional[bool] = None, ): ...
stripe/stripe-python
https://github.com/stripe/stripe-python
null
null
null
null
1,990
null
null
mit
null
null
null
null
null
null
null
stripe/_climate_service.py
null
null
null
null
null
null
Python
2026-05-04T01:41:05.692499
# -*- coding: utf-8 -*- # File generated from our OpenAPI spec from stripe._stripe_service import StripeService from importlib import import_module from typing_extensions import TYPE_CHECKING if TYPE_CHECKING: from stripe.climate._order_service import OrderService from stripe.climate._product_service import Pr...
lucidrains/make-a-video-pytorch
https://github.com/lucidrains/make-a-video-pytorch
null
null
null
null
1,990
null
null
mit
null
null
null
null
null
null
null
make_a_video_pytorch/__init__.py
null
null
null
null
null
null
Python
2026-05-04T01:41:07.741234
from make_a_video_pytorch.make_a_video import PseudoConv3d, SpatioTemporalAttention from make_a_video_pytorch.make_a_video import ResnetBlock, Downsample, Upsample from make_a_video_pytorch.make_a_video import SpaceTimeUnet
lucidrains/make-a-video-pytorch
https://github.com/lucidrains/make-a-video-pytorch
null
null
null
null
1,990
null
null
mit
null
null
null
null
null
null
null
make_a_video_pytorch/make_a_video.py
null
null
null
null
null
null
Python
2026-05-04T01:41:07.745280
import math import functools from operator import mul import torch import torch.nn.functional as F from torch import nn, einsum from einops import rearrange, repeat, pack, unpack from einops.layers.torch import Rearrange from make_a_video_pytorch.attend import Attend # helper functions def exists(val): return ...
lucidrains/make-a-video-pytorch
https://github.com/lucidrains/make-a-video-pytorch
null
null
null
null
1,990
null
null
mit
null
null
null
null
null
null
null
setup.py
null
null
null
null
null
null
Python
2026-05-04T01:41:07.748113
from setuptools import setup, find_packages setup( name = 'make-a-video-pytorch', packages = find_packages(exclude=[]), version = '0.4.0', license='MIT', description = 'Make-A-Video - Pytorch', author = 'Phil Wang', author_email = 'lucidrains@gmail.com', long_description_content_type = 'text/markdown',...
lucidrains/make-a-video-pytorch
https://github.com/lucidrains/make-a-video-pytorch
null
null
null
null
1,990
null
null
mit
null
null
null
null
null
null
null
make_a_video_pytorch/attend.py
null
null
null
null
null
null
Python
2026-05-04T01:41:07.750206
from functools import wraps from packaging import version from collections import namedtuple import torch from torch import nn, einsum import torch.nn.functional as F from einops import rearrange # constants AttentionConfig = namedtuple('AttentionConfig', ['enable_flash', 'enable_math', 'enable_mem_efficient']) # ...
kivy/buildozer
https://github.com/kivy/buildozer
null
null
null
null
1,990
null
null
mit
null
null
null
null
null
null
null
buildozer/jsonstore.py
null
null
null
null
null
null
Python
2026-05-04T01:41:09.933897
""" Replacement for shelve, using json. This was needed to correctly support db between Python 2 and 3. """ __all__ = ["JsonStore"] import io from json import load, dump from os.path import exists class JsonStore: def __init__(self, filename): self.filename = filename self.data = {} if ...
kivy/buildozer
https://github.com/kivy/buildozer
null
null
null
null
1,990
null
null
mit
null
null
null
null
null
null
null
buildozer/__init__.py
null
null
null
null
null
null
Python
2026-05-04T01:41:09.947833
''' Buildozer ========= Generic Python packager for Android / iOS. Desktop later. ''' __version__ = '1.5.1.dev0' from fnmatch import fnmatch import os from os import environ, walk, sep, listdir from os.path import join, exists, dirname, realpath, splitext, expanduser import re from re import search import sys from ...
kivy/buildozer
https://github.com/kivy/buildozer
null
null
null
null
1,990
null
null
mit
null
null
null
null
null
null
null
buildozer/libs/_structures.py
null
null
null
null
null
null
Python
2026-05-04T01:41:09.959748
# Copyright 2014 Donald Stufft # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, so...
kivy/buildozer
https://github.com/kivy/buildozer
null
null
null
null
1,990
null
null
mit
null
null
null
null
null
null
null
buildozer/logger.py
null
null
null
null
null
null
Python
2026-05-04T01:41:09.973869
""" Logger ====== Logger implementation used by Buildozer. Supports colored output, where available. """ from os import environ from pprint import pformat import sys try: # if installed, it can give color to Windows as well import colorama colorama.init() except ImportError: colorama = None # set ...
kivy/buildozer
https://github.com/kivy/buildozer
null
null
null
null
1,990
null
null
mit
null
null
null
null
null
null
null
buildozer/exceptions.py
null
null
null
null
null
null
Python
2026-05-04T01:41:09.975204
class BuildozerException(Exception): """ Exception raised for general situations buildozer cannot process. """ pass class BuildozerCommandException(BuildozerException): """ Exception raised when an external command failed. See: `Buildozer.buildops.cmd()`. """ pass
kivy/buildozer
https://github.com/kivy/buildozer
null
null
null
null
1,990
null
null
mit
null
null
null
null
null
null
null
buildozer/libs/version.py
null
null
null
null
null
null
Python
2026-05-04T01:41:09.994193
# Copyright 2014 Donald Stufft # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, so...
kivy/buildozer
https://github.com/kivy/buildozer
null
null
null
null
1,990
null
null
mit
null
null
null
null
null
null
null
buildozer/buildops.py
null
null
null
null
null
null
Python
2026-05-04T01:41:10.092431
""" A set of basic cross-platform OS-level operations that are required to build. These operations don't require any knowledge of the target being built. Changes to the system are logged. """ import codecs from collections import namedtuple from glob import glob import os from os.path import join, exists, realpath, ...
kivy/buildozer
https://github.com/kivy/buildozer
null
null
null
null
1,990
null
null
mit
null
null
null
null
null
null
null
buildozer/scripts/client.py
null
null
null
null
null
null
Python
2026-05-04T01:41:10.733443
''' Main Buildozer client ===================== ''' import sys from buildozer import Buildozer from buildozer.exceptions import BuildozerCommandException, BuildozerException from buildozer.logger import Logger def main(): try: Buildozer().run_command(sys.argv[1:]) except BuildozerCommandException: ...
kivy/buildozer
https://github.com/kivy/buildozer
null
null
null
null
1,990
null
null
mit
null
null
null
null
null
null
null
buildozer/scripts/remote.py
null
null
null
null
null
null
Python
2026-05-04T01:41:10.734450
''' Buildozer remote ================ .. warning:: This is an experimental tool and not widely used. It might not fit for you. Pack and send the source code to a remote SSH server, bundle buildozer with it, and start the build on the remote. You need paramiko to make it work. ''' __all__ = ["BuildozerRemote"] ...
kivy/buildozer
https://github.com/kivy/buildozer
null
null
null
null
1,990
null
null
mit
null
null
null
null
null
null
null
buildozer/target.py
null
null
null
null
null
null
Python
2026-05-04T01:41:10.737161
from sys import exit import os from os.path import join import buildozer.buildops as buildops from buildozer.logger import Logger def no_config(f): f.__no_config = True return f class Target: def __init__(self, buildozer): self.buildozer = buildozer self.build_mode = 'debug' sel...
kivy/buildozer
https://github.com/kivy/buildozer
null
null
null
null
1,990
null
null
mit
null
null
null
null
null
null
null
buildozer/specparser.py
null
null
null
null
null
null
Python
2026-05-04T01:41:10.738752
""" A customised ConfigParser, suitable for buildozer.spec. Supports - list values - either comma separated, or in their own [section:option] section. - environment variable overrides of values - overrides applied at construction. - profiles - case-sensit...
kivy/buildozer
https://github.com/kivy/buildozer
null
null
null
null
1,990
null
null
mit
null
null
null
null
null
null
null
buildozer/targets/ios.py
null
null
null
null
null
null
Python
2026-05-04T01:41:10.740848
''' iOS target, based on kivy-ios project ''' from getpass import getpass from os.path import join, basename, expanduser, realpath import plistlib import sys import buildozer.buildops as buildops from buildozer.exceptions import BuildozerCommandException from buildozer.target import Target, no_config PHP_TEMPLATE ...
kivy/buildozer
https://github.com/kivy/buildozer
null
null
null
null
1,990
null
null
mit
null
null
null
null
null
null
null
buildozer/targets/android.py
null
null
null
null
null
null
Python
2026-05-04T01:41:10.742164
''' Android target, based on python-for-android project ''' import os import sys if sys.platform == 'win32' and not os.getenv("KIVY_WIN32_ANDROID_EXPERIMENTAL"): raise NotImplementedError('Windows platform not yet working for Android') from platform import uname WSL = 'microsoft' in uname()[2].lower() ANDROID_AP...
kivy/buildozer
https://github.com/kivy/buildozer
null
null
null
null
1,990
null
null
mit
null
null
null
null
null
null
null
buildozer/targets/osx.py
null
null
null
null
null
null
Python
2026-05-04T01:41:11.694342
""" OSX target, based on kivy-sdk-packager """ import sys if sys.platform != 'darwin': raise NotImplementedError('This will only work on osx') from os.path import exists, join, abspath, dirname from subprocess import check_call, check_output import urllib.error import buildozer.buildops as buildops from buildoze...
kivy/buildozer
https://github.com/kivy/buildozer
null
null
null
null
1,990
null
null
mit
null
null
null
null
null
null
null
tests/test_buildops.py
null
null
null
null
null
null
Python
2026-05-04T01:41:11.776227
from os import environ, unlink from pathlib import Path import tarfile from queue import Queue from sys import executable, platform import time from tempfile import TemporaryDirectory from unittest import TestCase, mock, skipIf from zipfile import ZipFile from buildozer.exceptions import BuildozerCommandException impo...
kivy/buildozer
https://github.com/kivy/buildozer
null
null
null
null
1,990
null
null
mit
null
null
null
null
null
null
null
tests/targets/test_android.py
null
null
null
null
null
null
Python
2026-05-04T01:41:11.779990
import os import os.path import tempfile from io import StringIO from unittest import mock import sys import pytest from buildozer.targets.android import TargetAndroid from tests.targets.utils import ( init_buildozer, patch_buildops_checkbin, patch_buildops_cmd, patch_buildops_file_exists, ) def pat...
kivy/buildozer
https://github.com/kivy/buildozer
null
null
null
null
1,990
null
null
mit
null
null
null
null
null
null
null
tests/scripts/test_client.py
null
null
null
null
null
null
Python
2026-05-04T01:41:11.784790
import sys import unittest from unittest import mock from buildozer.exceptions import BuildozerCommandException from buildozer.scripts import client class TestClient(unittest.TestCase): def test_run_command_called(self): """ Checks Buildozer.run_command() is being called with arguments from comm...
kivy/buildozer
https://github.com/kivy/buildozer
null
null
null
null
1,990
null
null
mit
null
null
null
null
null
null
null
tests/targets/utils.py
null
null
null
null
null
null
Python
2026-05-04T01:41:11.785614
import os import re from unittest import mock import buildozer as buildozer_module from buildozer import Buildozer def patch_buildops_cmd(): return mock.patch("buildozer.buildops.cmd") def patch_buildops_checkbin(): return mock.patch("buildozer.buildops.checkbin") def patch_buildops_file_exists(): re...
kivy/buildozer
https://github.com/kivy/buildozer
null
null
null
null
1,990
null
null
mit
null
null
null
null
null
null
null
tests/targets/test_ios.py
null
null
null
null
null
null
Python
2026-05-04T01:41:11.879382
import os.path import sys import tempfile from unittest import mock import pytest from buildozer.buildops import CommandResult from buildozer.exceptions import BuildozerCommandException from buildozer.targets.ios import TargetIos from tests.targets.utils import ( init_buildozer, patch_buildops_checkbin, p...
kivy/buildozer
https://github.com/kivy/buildozer
null
null
null
null
1,990
null
null
mit
null
null
null
null
null
null
null
tests/test_buildozer.py
null
null
null
null
null
null
Python
2026-05-04T01:41:11.888320
import re import os import codecs import shutil import unittest import buildozer as buildozer_module from buildozer import Buildozer from io import StringIO from sys import platform import tempfile from unittest import mock from unittest.mock import PropertyMock from buildozer.targets.android import ( TargetAndroi...
kivy/buildozer
https://github.com/kivy/buildozer
null
null
null
null
1,990
null
null
mit
null
null
null
null
null
null
null
setup.py
null
null
null
null
null
null
Python
2026-05-04T01:41:11.907232
''' Buildozer ''' import sys from setuptools import setup from os.path import dirname, join import codecs import os import re import io here = os.path.abspath(os.path.dirname(__file__)) CURRENT_PYTHON = sys.version_info[:2] REQUIRED_PYTHON = (3, 8) # This check and everything above must remain compatible with Pytho...
kivy/buildozer
https://github.com/kivy/buildozer
null
null
null
null
1,990
null
null
mit
null
null
null
null
null
null
null
tests/test_logger.py
null
null
null
null
null
null
Python
2026-05-04T01:41:12.853686
import unittest from buildozer.logger import Logger from io import StringIO from unittest import mock class TestLogger(unittest.TestCase): def test_log_print(self): """ Checks logger prints different info depending on log level. """ logger = Logger() # Test ERROR Level ...
kivy/buildozer
https://github.com/kivy/buildozer
null
null
null
null
1,990
null
null
mit
null
null
null
null
null
null
null
tests/test_specparser.py
null
null
null
null
null
null
Python
2026-05-04T01:41:13.469057
from os import environ from pathlib import Path from tempfile import TemporaryDirectory import unittest from buildozer.specparser import SpecParser class TestSpecParser(unittest.TestCase): def test_overrides(self): environ["SECTION_1_ATTRIBUTE_1"] = "Env Value" # Test as a string. sp = S...
uncertainty-toolbox/uncertainty-toolbox
https://github.com/uncertainty-toolbox/uncertainty-toolbox
null
null
null
null
1,988
null
null
mit
null
null
null
null
null
null
null
docs/conf.py
null
null
null
null
null
null
Python
2026-05-04T01:41:18.786504
# Configuration file for the Sphinx documentation builder. # # This file only contains a selection of the most common options. For a full # list see the documentation: # https://www.sphinx-doc.org/en/master/usage/configuration.html # -- Path setup -------------------------------------------------------------- # If ex...
uncertainty-toolbox/uncertainty-toolbox
https://github.com/uncertainty-toolbox/uncertainty-toolbox
null
null
null
null
1,988
null
null
mit
null
null
null
null
null
null
null
examples/viz_readme_figures.py
null
null
null
null
null
null
Python
2026-05-04T01:41:18.790338
""" Examples of code for visualizations. """ import numpy as np import matplotlib.pyplot as plt import uncertainty_toolbox as uct # Set plot style uct.viz.set_style() uct.viz.update_rc("text.usetex", True) # Set to True for system latex uct.viz.update_rc("font.size", 14) # Set font size uct.viz.update_rc("xtick.la...
uncertainty-toolbox/uncertainty-toolbox
https://github.com/uncertainty-toolbox/uncertainty-toolbox
null
null
null
null
1,988
null
null
mit
null
null
null
null
null
null
null
examples/viz_minimal.py
null
null
null
null
null
null
Python
2026-05-04T01:41:18.792178
""" Examples of code for visualizations. """ import numpy as np import matplotlib.pyplot as plt import uncertainty_toolbox as uct # Set plot style uct.viz.set_style() uct.viz.update_rc("figure.dpi", 150) uct.viz.update_rc("text.usetex", False) # Set random seed np.random.seed(11) # Generate synthetic predictive un...
uncertainty-toolbox/uncertainty-toolbox
https://github.com/uncertainty-toolbox/uncertainty-toolbox
null
null
null
null
1,988
null
null
mit
null
null
null
null
null
null
null
tests/test_metrics.py
null
null
null
null
null
null
Python
2026-05-04T01:41:18.793210
""" Tests for metrics. """ import pytest import numpy as np from uncertainty_toolbox.metrics import ( get_all_accuracy_metrics, get_all_average_calibration, get_all_adversarial_group_calibration, get_all_sharpness_metrics, get_all_scoring_rule_metrics, get_all_metrics, ) @pytest.fixture def ...
uncertainty-toolbox/uncertainty-toolbox
https://github.com/uncertainty-toolbox/uncertainty-toolbox
null
null
null
null
1,988
null
null
mit
null
null
null
null
null
null
null
examples/viz_recalibrate_readme.py
null
null
null
null
null
null
Python
2026-05-04T01:41:18.794793
""" This script produces the recalibration figures that appear in the README Recalibration section: https://github.com/uncertainty-toolbox/uncertainty-toolbox/blob/recal/README.md#recalibration """ import numpy as np import matplotlib.pyplot as plt import uncertainty_toolbox as uct # Set plot style uct.viz.set_style...
uncertainty-toolbox/uncertainty-toolbox
https://github.com/uncertainty-toolbox/uncertainty-toolbox
null
null
null
null
1,988
null
null
mit
null
null
null
null
null
null
null
examples/viz_recalibrate.py
null
null
null
null
null
null
Python
2026-05-04T01:41:18.795657
""" Examples of code for recalibration. """ import numpy as np import matplotlib.pyplot as plt import uncertainty_toolbox as uct # Set plot style uct.viz.set_style() uct.viz.update_rc("text.usetex", False) # Set to True for system latex uct.viz.update_rc("font.size", 14) # Set font size uct.viz.update_rc("xtick.la...
uncertainty-toolbox/uncertainty-toolbox
https://github.com/uncertainty-toolbox/uncertainty-toolbox
null
null
null
null
1,988
null
null
mit
null
null
null
null
null
null
null
tests/test_metrics_accuracy.py
null
null
null
null
null
null
Python
2026-05-04T01:41:18.886349
""" Tests for accuracy metrics. """ import pytest import numpy as np from uncertainty_toolbox.metrics_accuracy import prediction_error_metrics @pytest.fixture def get_test_set(): y_pred = np.array([1, 2, 3]) y_std = np.array([0.1, 0.5, 1]) y_true = np.array([1.25, 2.2, 2.8]) return y_pred, y_std, y_...
uncertainty-toolbox/uncertainty-toolbox
https://github.com/uncertainty-toolbox/uncertainty-toolbox
null
null
null
null
1,988
null
null
mit
null
null
null
null
null
null
null
examples/quick_start.py
null
null
null
null
null
null
Python
2026-05-04T01:41:18.891900
import uncertainty_toolbox as uct # Load an example dataset of 100 predictions, uncertainties, and observations predictions, predictions_std, y, x = uct.data.synthetic_sine_heteroscedastic(100) # Compute all uncertainty metrics metrics = uct.metrics.get_all_metrics(predictions, predictions_std, y)
uncertainty-toolbox/uncertainty-toolbox
https://github.com/uncertainty-toolbox/uncertainty-toolbox
null
null
null
null
1,988
null
null
mit
null
null
null
null
null
null
null
uncertainty_toolbox/__init__.py
null
null
null
null
null
null
Python
2026-05-04T01:41:19.852781
"""Uncertainty Toolbox: a python toolbox for predictive uncertainty quantification, calibration, metrics, and visualization.""" __version__ = "0.1.1" from .data import ( synthetic_arange_random, synthetic_sine_heteroscedastic, ) from .metrics import ( get_all_metrics, get_all_accuracy_metrics, ge...
uncertainty-toolbox/uncertainty-toolbox
https://github.com/uncertainty-toolbox/uncertainty-toolbox
null
null
null
null
1,988
null
null
mit
null
null
null
null
null
null
null
uncertainty_toolbox/metrics.py
null
null
null
null
null
null
Python
2026-05-04T01:41:19.861631
""" Metrics for assessing the quality of predictive uncertainty quantification. """ from typing import Any, Dict import numpy as np from uncertainty_toolbox.metrics_accuracy import prediction_error_metrics from uncertainty_toolbox.metrics_calibration import ( root_mean_squared_calibration_error, mean_absolute...
uncertainty-toolbox/uncertainty-toolbox
https://github.com/uncertainty-toolbox/uncertainty-toolbox
null
null
null
null
1,988
null
null
mit
null
null
null
null
null
null
null
tests/test_viz.py
null
null
null
null
null
null
Python
2026-05-04T01:41:19.862852
""" Tests for visualizations. """ import pytest import numpy as np import matplotlib import matplotlib.pyplot as plt from uncertainty_toolbox.viz import ( plot_xy, plot_intervals, plot_intervals_ordered, plot_calibration, plot_adversarial_group_calibration, plot_sharpness, plot_residuals_v...
uncertainty-toolbox/uncertainty-toolbox
https://github.com/uncertainty-toolbox/uncertainty-toolbox
null
null
null
null
1,988
null
null
mit
null
null
null
null
null
null
null
tests/test_recalibration.py
null
null
null
null
null
null
Python
2026-05-04T01:41:19.864281
""" Tests for recalibration procedures. """ import random import numpy as np import pytest from uncertainty_toolbox.recalibration import ( iso_recal, optimize_recalibration_ratio, get_std_recalibrator, get_quantile_recalibrator, get_interval_recalibrator, ) from uncertainty_toolbox.metrics_calibr...
uncertainty-toolbox/uncertainty-toolbox
https://github.com/uncertainty-toolbox/uncertainty-toolbox
null
null
null
null
1,988
null
null
mit
null
null
null
null
null
null
null
tests/test_utils.py
null
null
null
null
null
null
Python
2026-05-04T01:41:19.865245
""" Test for util functions. """ import pytest import numpy as np from uncertainty_toolbox.utils import ( assert_is_flat_same_shape, assert_is_positive, trapezoid_area, ) def test_is_flat_same_shape_wrong_type(): wrong = [1, 2, 3] with pytest.raises(AssertionError): assert_is_flat_same_s...
uncertainty-toolbox/uncertainty-toolbox
https://github.com/uncertainty-toolbox/uncertainty-toolbox
null
null
null
null
1,988
null
null
mit
null
null
null
null
null
null
null
tests/test_metrics_calibration.py
null
null
null
null
null
null
Python
2026-05-04T01:41:19.935805
""" Tests for calibration metrics. """ import numpy as np import pytest from uncertainty_toolbox.metrics_calibration import ( sharpness, root_mean_squared_calibration_error, mean_absolute_calibration_error, adversarial_group_calibration, miscalibration_area, get_proportion_lists_vectorized, ...
uncertainty-toolbox/uncertainty-toolbox
https://github.com/uncertainty-toolbox/uncertainty-toolbox
null
null
null
null
1,988
null
null
mit
null
null
null
null
null
null
null
uncertainty_toolbox/data.py
null
null
null
null
null
null
Python
2026-05-04T01:41:20.018920
""" Code for importing and generating data. """ from typing import Tuple import numpy as np def synthetic_arange_random( num_points: int = 10, ) -> Tuple[np.ndarray, np.ndarray, np.ndarray, np.ndarray]: """Dataset of evenly spaced points and identity function (with some randomization). This function ret...
uncertainty-toolbox/uncertainty-toolbox
https://github.com/uncertainty-toolbox/uncertainty-toolbox
null
null
null
null
1,988
null
null
mit
null
null
null
null
null
null
null
uncertainty_toolbox/metrics_calibration.py
null
null
null
null
null
null
Python
2026-05-04T01:41:20.019593
""" Metrics for assessing the quality of predictive uncertainty quantification. """ from typing import Any, Tuple, Optional from argparse import Namespace import numpy as np from scipy import stats from sklearn.isotonic import IsotonicRegression from tqdm import tqdm from uncertainty_toolbox.utils import ( assert...
uncertainty-toolbox/uncertainty-toolbox
https://github.com/uncertainty-toolbox/uncertainty-toolbox
null
null
null
null
1,988
null
null
mit
null
null
null
null
null
null
null
tests/test_metrics_scoring_rule.py
null
null
null
null
null
null
Python
2026-05-04T01:41:20.048704
""" Tests for scoring rule metrics. """ import numpy as np import pytest from uncertainty_toolbox.metrics_scoring_rule import ( nll_gaussian, crps_gaussian, check_score, interval_score, ) @pytest.fixture def supply_test_set(): y_pred = np.array([1, 2, 3]) y_std = np.array([0.1, 0.5, 1]) y...
uncertainty-toolbox/uncertainty-toolbox
https://github.com/uncertainty-toolbox/uncertainty-toolbox
null
null
null
null
1,988
null
null
mit
null
null
null
null
null
null
null
uncertainty_toolbox/metrics_accuracy.py
null
null
null
null
null
null
Python
2026-05-04T01:41:20.173890
""" Metrics for assessing the quality of predictive uncertainty quantification. """ from typing import Dict import numpy as np from sklearn.metrics import ( mean_absolute_error, mean_squared_error, r2_score, median_absolute_error, ) from uncertainty_toolbox.utils import assert_is_flat_same_shape def ...