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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
open-mmlab/mmaction | https://github.com/open-mmlab/mmaction | null | null | null | null | 1,877 | null | null | apache-2.0 | null | null | null | null | null | null | null | mmaction/core/bbox2d/assign_sampling.py | null | null | null | null | null | null | Python | 2026-05-04T02:51:19.678840 | import mmcv
from . import assigners, samplers
def build_assigner(cfg, **kwargs):
if isinstance(cfg, assigners.BaseAssigner):
return cfg
elif isinstance(cfg, dict):
return mmcv.runner.obj_from_dict(
cfg, assigners, default_args=kwargs)
else:
raise TypeError('Invalid typ... |
open-mmlab/mmaction | https://github.com/open-mmlab/mmaction | null | null | null | null | 1,877 | null | null | apache-2.0 | null | null | null | null | null | null | null | mmaction/core/bbox2d/__init__.py | null | null | null | null | null | null | Python | 2026-05-04T02:51:19.680049 | from .geometry import bbox_overlaps
from .assigners import BaseAssigner, MaxIoUAssigner, AssignResult
from .samplers import BaseSampler, PseudoSampler, RandomSampler
from .assign_sampling import build_assigner, build_sampler, assign_and_sample
from .transforms import (bbox2delta, delta2bbox, bbox_flip, bbox_mapping,
... |
open-mmlab/mmaction | https://github.com/open-mmlab/mmaction | null | null | null | null | 1,877 | null | null | apache-2.0 | null | null | null | null | null | null | null | mmaction/core/bbox2d/assigners/__init__.py | null | null | null | null | null | null | Python | 2026-05-04T02:51:19.715119 | from .base_assigner import BaseAssigner
from .max_iou_assigner import MaxIoUAssigner
from .assign_result import AssignResult
__all__ = ['BaseAssigner', 'MaxIoUAssigner', 'AssignResult'] |
open-mmlab/mmaction | https://github.com/open-mmlab/mmaction | null | null | null | null | 1,877 | null | null | apache-2.0 | null | null | null | null | null | null | null | mmaction/core/bbox1d/geometry.py | null | null | null | null | null | null | Python | 2026-05-04T02:51:19.780708 |
def temporal_iou(span_A, span_B):
"""
Calculates the intersection over union of two temporal "bounding boxes"
span_A: (start, end)
span_B: (start, end)
"""
union = min(span_A[0], span_B[0]), max(span_A[1], span_B[1])
inter = max(span_A[0], span_B[0]), min(span_A[1], span_B[1])
if inter... |
open-mmlab/mmaction | https://github.com/open-mmlab/mmaction | null | null | null | null | 1,877 | null | null | apache-2.0 | null | null | null | null | null | null | null | mmaction/core/bbox2d/assigners/assign_result.py | null | null | null | null | null | null | Python | 2026-05-04T02:51:19.820049 | import torch
class AssignResult(object):
def __init__(self, num_gts, gt_inds, max_overlaps, labels=None):
self.num_gts = num_gts
self.gt_inds = gt_inds
self.max_overlaps = max_overlaps
self.labels = labels
def add_gt_(self, gt_labels):
self_inds = torch.arange(
... |
open-mmlab/mmaction | https://github.com/open-mmlab/mmaction | null | null | null | null | 1,877 | null | null | apache-2.0 | null | null | null | null | null | null | null | mmaction/core/bbox2d/assigners/base_assigner.py | null | null | null | null | null | null | Python | 2026-05-04T02:51:20.043130 | from abc import ABCMeta, abstractmethod
class BaseAssigner(metaclass=ABCMeta):
@abstractmethod
def assign(self, bboxes, gt_bboxes, gt_bboxes_ignore=None, gt_labels=None):
pass
|
open-mmlab/mmaction | https://github.com/open-mmlab/mmaction | null | null | null | null | 1,877 | null | null | apache-2.0 | null | null | null | null | null | null | null | mmaction/core/bbox2d/bbox_target.py | null | null | null | null | null | null | Python | 2026-05-04T02:51:20.164347 | import torch
from .transforms import bbox2delta
from mmaction.utils.misc import multi_apply
def bbox_target(pos_bboxes_list,
neg_bboxes_list,
pos_gt_bboxes_list,
pos_gt_labels_list,
cfg,
reg_classes=1,
target_means=[.0, .... |
open-mmlab/mmaction | https://github.com/open-mmlab/mmaction | null | null | null | null | 1,877 | null | null | apache-2.0 | null | null | null | null | null | null | null | mmaction/core/bbox2d/geometry.py | null | null | null | null | null | null | Python | 2026-05-04T02:51:20.218115 | import torch
def bbox_overlaps(bboxes1, bboxes2, mode='iou', is_aligned=False):
"""Calculate overlap between two set of bboxes.
If ``is_aligned`` is ``False``, then calculate the ious between each bbox
of bboxes1 and bboxes2, otherwise the ious between each aligned pair of
bboxes1 and bboxes2.
A... |
open-mmlab/mmaction | https://github.com/open-mmlab/mmaction | null | null | null | null | 1,877 | null | null | apache-2.0 | null | null | null | null | null | null | null | mmaction/core/bbox2d/samplers/__init__.py | null | null | null | null | null | null | Python | 2026-05-04T02:51:20.231248 | from .base_sampler import BaseSampler
from .pseudo_sampler import PseudoSampler
from .random_sampler import RandomSampler
from .sampling_result import SamplingResult
__all__ = [
'BaseSampler', 'PseudoSampler', 'RandomSampler'
'SamplingResult'
] |
open-mmlab/mmaction | https://github.com/open-mmlab/mmaction | null | null | null | null | 1,877 | null | null | apache-2.0 | null | null | null | null | null | null | null | mmaction/core/bbox2d/samplers/base_sampler.py | null | null | null | null | null | null | Python | 2026-05-04T02:51:20.242893 | from abc import ABCMeta, abstractmethod
import torch
from .sampling_result import SamplingResult
class BaseSampler(metaclass=ABCMeta):
def __init__(self,
num,
pos_fraction,
neg_pos_ub=-1,
add_gt_as_proposals=True,
**kwargs):
... |
open-mmlab/mmaction | https://github.com/open-mmlab/mmaction | null | null | null | null | 1,877 | null | null | apache-2.0 | null | null | null | null | null | null | null | mmaction/core/bbox2d/samplers/pseudo_sampler.py | null | null | null | null | null | null | Python | 2026-05-04T02:51:20.244419 | import torch
from .base_sampler import BaseSampler
from .sampling_result import SamplingResult
class PseudoSampler(BaseSampler):
def __init__(self, **kwargs):
pass
def _sample_pos(self, **kwargs):
raise NotImplementedError
def _sample_neg(self, **kwargs):
raise NotImplementedEr... |
open-mmlab/mmaction | https://github.com/open-mmlab/mmaction | null | null | null | null | 1,877 | null | null | apache-2.0 | null | null | null | null | null | null | null | mmaction/core/bbox2d/assigners/max_iou_assigner.py | null | null | null | null | null | null | Python | 2026-05-04T02:51:20.269842 | import torch
from .base_assigner import BaseAssigner
from .assign_result import AssignResult
from ..geometry import bbox_overlaps
class MaxIoUAssigner(BaseAssigner):
"""Assign a corresponding gt bbox or background to each bbox.
Each proposals will be assigned with `-1`, `0`, or a positive integer
indica... |
open-mmlab/mmaction | https://github.com/open-mmlab/mmaction | null | null | null | null | 1,877 | null | null | apache-2.0 | null | null | null | null | null | null | null | mmaction/core/bbox2d/samplers/random_sampler.py | null | null | null | null | null | null | Python | 2026-05-04T02:51:20.278896 | import numpy as np
import torch
from .base_sampler import BaseSampler
class RandomSampler(BaseSampler):
def __init__(self,
num,
pos_fraction,
neg_pos_ub=-1,
add_gt_as_proposals=True,
**kwargs):
super(RandomSampler, self... |
open-mmlab/mmaction | https://github.com/open-mmlab/mmaction | null | null | null | null | 1,877 | null | null | apache-2.0 | null | null | null | null | null | null | null | mmaction/core/bbox2d/samplers/sampling_result.py | null | null | null | null | null | null | Python | 2026-05-04T02:51:20.299390 | import torch
class SamplingResult(object):
def __init__(self, pos_inds, neg_inds, bboxes, gt_bboxes, assign_result,
gt_flags):
self.pos_inds = pos_inds
self.neg_inds = neg_inds
self.pos_bboxes = bboxes[pos_inds]
self.neg_bboxes = bboxes[neg_inds]
self.pos_... |
open-mmlab/mmaction | https://github.com/open-mmlab/mmaction | null | null | null | null | 1,877 | null | null | apache-2.0 | null | null | null | null | null | null | null | mmaction/core/bbox2d/transforms.py | null | null | null | null | null | null | Python | 2026-05-04T02:51:20.372369 | import mmcv
import numpy as np
import torch
def bbox2delta(proposals, gt, means=[0, 0, 0, 0], stds=[1, 1, 1, 1]):
assert proposals.size() == gt.size()
proposals = proposals.float()
gt = gt.float()
px = (proposals[..., 0] + proposals[..., 2]) * 0.5
py = (proposals[..., 1] + proposals[..., 3]) * 0.... |
open-mmlab/mmaction | https://github.com/open-mmlab/mmaction | null | null | null | null | 1,877 | null | null | apache-2.0 | null | null | null | null | null | null | null | mmaction/core/evaluation/__init__.py | null | null | null | null | null | null | Python | 2026-05-04T02:51:20.603060 | from .class_names import (get_classes)
from .eval_hooks import (DistEvalHook, DistEvalTopKAccuracyHook,
AVADistEvalmAPHook)
__all__ = [
'get_classes',
'DistEvalHook', 'DistEvalTopKAccuracyHook',
'AVADistEvalmAPHook'
]
|
open-mmlab/mmaction | https://github.com/open-mmlab/mmaction | null | null | null | null | 1,877 | null | null | apache-2.0 | null | null | null | null | null | null | null | mmaction/core/evaluation/ava_utils.py | null | null | null | null | null | null | Python | 2026-05-04T02:51:20.766339 | import csv
import logging
import time
from collections import defaultdict
import heapq
import numpy as np
from .recall import eval_recalls
try:
import sys
import os.path as osp
sys.path.append(
osp.abspath(osp.join(__file__, '../../../',
'third_party/ActivityNet/Evalua... |
open-mmlab/mmaction | https://github.com/open-mmlab/mmaction | null | null | null | null | 1,877 | null | null | apache-2.0 | null | null | null | null | null | null | null | mmaction/core/evaluation/bbox_overlaps.py | null | null | null | null | null | null | Python | 2026-05-04T02:51:20.774491 | import numpy as np
def bbox_overlaps(bboxes1, bboxes2, mode='iou'):
"""Calculate the ious between each bbox of bboxes1 and bboxes2.
Args:
bboxes1(ndarray): shape (n, 4)
bboxes2(ndarray): shape (k, 4)
mode(str): iou (intersection over union) or iof (intersection
over foregro... |
open-mmlab/mmaction | https://github.com/open-mmlab/mmaction | null | null | null | null | 1,877 | null | null | apache-2.0 | null | null | null | null | null | null | null | mmaction/core/evaluation/eval_hooks.py | null | null | null | null | null | null | Python | 2026-05-04T02:51:20.783569 | import os
import os.path as osp
import logging
import mmcv
import time
import torch
import numpy as np
import torch.distributed as dist
from mmcv.runner import Hook, obj_from_dict
from mmcv.parallel import scatter, collate
from torch.utils.data import Dataset
from mmaction import datasets
from .accuracy import top_k_a... |
open-mmlab/mmaction | https://github.com/open-mmlab/mmaction | null | null | null | null | 1,877 | null | null | apache-2.0 | null | null | null | null | null | null | null | mmaction/core/evaluation/accuracy.py | null | null | null | null | null | null | Python | 2026-05-04T02:51:20.814417 | import numpy as np
from sklearn.metrics import confusion_matrix
def softmax(x, dim=1):
"""Compute softmax values for each sets of scores in x."""
e_x = np.exp(x - np.max(x, axis=dim, keepdims=True))
return e_x / e_x.sum(axis=dim, keepdims=True)
def mean_class_accuracy(scores, labels):
pred = np.argm... |
open-mmlab/mmaction | https://github.com/open-mmlab/mmaction | null | null | null | null | 1,877 | null | null | apache-2.0 | null | null | null | null | null | null | null | mmaction/core/evaluation/recall.py | null | null | null | null | null | null | Python | 2026-05-04T02:51:20.817402 | import numpy as np
from terminaltables import AsciiTable
from .bbox_overlaps import bbox_overlaps
def _recalls(all_ious, proposal_nums, thrs):
img_num = all_ious.shape[0]
total_gt_num = sum([ious.shape[0] for ious in all_ious])
_ious = np.zeros((proposal_nums.size, total_gt_num), dtype=np.float32)
... |
open-mmlab/mmaction | https://github.com/open-mmlab/mmaction | null | null | null | null | 1,877 | null | null | apache-2.0 | null | null | null | null | null | null | null | mmaction/core/evaluation/class_names.py | null | null | null | null | null | null | Python | 2026-05-04T02:51:20.827187 | import mmcv
def ava_classes():
return [
'bend/bow (at the waist)', 'crawl', 'crouch/kneel', 'dance',
'fall down', 'get up', 'jump/leap', 'lie/sleep', 'martial art',
'run/jog', 'sit', 'stand', 'swim', 'walk', 'answer phone',
'brush teeth', 'carry/hold (an object)', 'catch (an object... |
open-mmlab/mmaction | https://github.com/open-mmlab/mmaction | null | null | null | null | 1,877 | null | null | apache-2.0 | null | null | null | null | null | null | null | mmaction/core/post_processing/__init__.py | null | null | null | null | null | null | Python | 2026-05-04T02:51:20.842196 | from .bbox_nms import multiclass_nms, singleclass_nms
from .merge_augs import (merge_aug_proposals, merge_aug_bboxes,
merge_aug_scores)
__all__ = [
'multiclass_nms', 'singleclass_nms', 'merge_aug_proposals', 'merge_aug_bboxes',
'merge_aug_scores'
]
|
open-mmlab/mmaction | https://github.com/open-mmlab/mmaction | null | null | null | null | 1,877 | null | null | apache-2.0 | null | null | null | null | null | null | null | mmaction/core/evaluation/localize_utils.py | null | null | null | null | null | null | Python | 2026-05-04T02:51:20.871517 | import numpy as np
from .accuracy import softmax
import pandas as pd
from multiprocessing import Pool
import mmcv
try:
import sys
import os.path as osp
sys.path.append(
osp.abspath(osp.join(__file__, '../../../',
'third_party/ActivityNet/Evaluation')))
from mmaction... |
open-mmlab/mmaction | https://github.com/open-mmlab/mmaction | null | null | null | null | 1,877 | null | null | apache-2.0 | null | null | null | null | null | null | null | mmaction/core/post_processing/bbox_nms.py | null | null | null | null | null | null | Python | 2026-05-04T02:51:20.931141 | import torch
from mmaction.ops.nms import nms_wrapper
def multiclass_nms(multi_bboxes, multi_scores, score_thr, nms_cfg, max_num=-1):
"""NMS for multi-class bboxes.
Args:
multi_bboxes (Tensor): shape (n, #class*4) or (n, 4)
multi_scores (Tensor): shape (n, #class)
score_thr (float): ... |
meta-recsys/generative-recommenders | https://github.com/meta-recsys/generative-recommenders | null | null | null | null | 1,875 | null | null | apache-2.0 | null | null | null | null | null | null | null | generative_recommenders/dlrm_v3/datasets/utils.py | null | null | null | null | null | null | Python | 2026-05-04T02:51:23.476309 | # Copyright (c) Meta Platforms, Inc. and affiliates.
#
# 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... |
meta-recsys/generative-recommenders | https://github.com/meta-recsys/generative-recommenders | null | null | null | null | 1,875 | null | null | apache-2.0 | null | null | null | null | null | null | null | generative_recommenders/dlrm_v3/datasets/synthetic_streaming.py | null | null | null | null | null | null | Python | 2026-05-04T02:51:23.477861 | # Copyright (c) Meta Platforms, Inc. and affiliates.
#
# 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... |
meta-recsys/generative-recommenders | https://github.com/meta-recsys/generative-recommenders | null | null | null | null | 1,875 | null | null | apache-2.0 | null | null | null | null | null | null | null | generative_recommenders/dlrm_v3/datasets/kuairand.py | null | null | null | null | null | null | Python | 2026-05-04T02:51:23.481913 | # Copyright (c) Meta Platforms, Inc. and affiliates.
#
# 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... |
meta-recsys/generative-recommenders | https://github.com/meta-recsys/generative-recommenders | null | null | null | null | 1,875 | null | null | apache-2.0 | null | null | null | null | null | null | null | generative_recommenders/dlrm_v3/datasets/movie_lens.py | null | null | null | null | null | null | Python | 2026-05-04T02:51:23.482924 | # Copyright (c) Meta Platforms, Inc. and affiliates.
#
# 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... |
meta-recsys/generative-recommenders | https://github.com/meta-recsys/generative-recommenders | null | null | null | null | 1,875 | null | null | apache-2.0 | null | null | null | null | null | null | null | generative_recommenders/dlrm_v3/datasets/synthetic_movie_lens.py | null | null | null | null | null | null | Python | 2026-05-04T02:51:23.484460 | # Copyright (c) Meta Platforms, Inc. and affiliates.
#
# 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... |
meta-recsys/generative-recommenders | https://github.com/meta-recsys/generative-recommenders | null | null | null | null | 1,875 | null | null | apache-2.0 | null | null | null | null | null | null | null | generative_recommenders/common.py | null | null | null | null | null | null | Python | 2026-05-04T02:51:23.486152 | # Copyright (c) Meta Platforms, Inc. and affiliates.
#
# 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... |
meta-recsys/generative-recommenders | https://github.com/meta-recsys/generative-recommenders | null | null | null | null | 1,875 | null | null | apache-2.0 | null | null | null | null | null | null | null | generative_recommenders/dlrm_v3/datasets/dataset.py | null | null | null | null | null | null | Python | 2026-05-04T02:51:23.487232 | # Copyright (c) Meta Platforms, Inc. and affiliates.
#
# 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... |
meta-recsys/generative-recommenders | https://github.com/meta-recsys/generative-recommenders | null | null | null | null | 1,875 | null | null | apache-2.0 | null | null | null | null | null | null | null | generative_recommenders/dlrm_v3/configs.py | null | null | null | null | null | null | Python | 2026-05-04T02:51:23.492997 | # Copyright (c) Meta Platforms, Inc. and affiliates.
#
# 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... |
meta-recsys/generative-recommenders | https://github.com/meta-recsys/generative-recommenders | null | null | null | null | 1,875 | null | null | apache-2.0 | null | null | null | null | null | null | null | generative_recommenders/dlrm_v3/checkpoint.py | null | null | null | null | null | null | Python | 2026-05-04T02:51:23.543665 | # Copyright (c) Meta Platforms, Inc. and affiliates.
#
# 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... |
meta-recsys/generative-recommenders | https://github.com/meta-recsys/generative-recommenders | null | null | null | null | 1,875 | null | null | apache-2.0 | null | null | null | null | null | null | null | generative_recommenders/dlrm_v3/inference/tests/inference_test.py | null | null | null | null | null | null | Python | 2026-05-04T02:51:24.097874 | # Copyright (c) Meta Platforms, Inc. and affiliates.
#
# 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... |
meta-recsys/generative-recommenders | https://github.com/meta-recsys/generative-recommenders | null | null | null | null | 1,875 | null | null | apache-2.0 | null | null | null | null | null | null | null | generative_recommenders/dlrm_v3/inference/main.py | null | null | null | null | null | null | Python | 2026-05-04T02:51:24.099028 | # Copyright (c) Meta Platforms, Inc. and affiliates.
#
# 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... |
meta-recsys/generative-recommenders | https://github.com/meta-recsys/generative-recommenders | null | null | null | null | 1,875 | null | null | apache-2.0 | null | null | null | null | null | null | null | generative_recommenders/dlrm_v3/inference/data_producer.py | null | null | null | null | null | null | Python | 2026-05-04T02:51:24.108838 | # Copyright (c) Meta Platforms, Inc. and affiliates.
#
# 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... |
meta-recsys/generative-recommenders | https://github.com/meta-recsys/generative-recommenders | null | null | null | null | 1,875 | null | null | apache-2.0 | null | null | null | null | null | null | null | generative_recommenders/dlrm_v3/inference/inference_modules.py | null | null | null | null | null | null | Python | 2026-05-04T02:51:24.110396 | # Copyright (c) Meta Platforms, Inc. and affiliates.
#
# 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... |
meta-recsys/generative-recommenders | https://github.com/meta-recsys/generative-recommenders | null | null | null | null | 1,875 | null | null | apache-2.0 | null | null | null | null | null | null | null | generative_recommenders/dlrm_v3/inference/thirdparty/loadgen/demos/lon/sut_over_network_demo.py | null | null | null | null | null | null | Python | 2026-05-04T02:51:24.111895 | # Copyright 2019 The MLPerf Authors. All Rights Reserved.
#
# 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 ... |
meta-recsys/generative-recommenders | https://github.com/meta-recsys/generative-recommenders | null | null | null | null | 1,875 | null | null | apache-2.0 | null | null | null | null | null | null | null | generative_recommenders/dlrm_v3/inference/thirdparty/loadgen/__init__.py | null | null | null | null | null | null | Python | 2026-05-04T02:51:24.112521 | import sys
# Aliasing mlcommons_loadgen as mlperf_loadgen
sys.modules['mlperf_loadgen'] = sys.modules[__name__]
|
meta-recsys/generative-recommenders | https://github.com/meta-recsys/generative-recommenders | null | null | null | null | 1,875 | null | null | apache-2.0 | null | null | null | null | null | null | null | generative_recommenders/dlrm_v3/inference/thirdparty/loadgen/demos/lon/py_demo_server_lon.py | null | null | null | null | null | null | Python | 2026-05-04T02:51:24.114884 | # Copyright 2019 The MLPerf Authors. All Rights Reserved.
#
# 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 ... |
meta-recsys/generative-recommenders | https://github.com/meta-recsys/generative-recommenders | null | null | null | null | 1,875 | null | null | apache-2.0 | null | null | null | null | null | null | null | generative_recommenders/dlrm_v3/inference/model_family.py | null | null | null | null | null | null | Python | 2026-05-04T02:51:24.148403 | # Copyright (c) Meta Platforms, Inc. and affiliates.
#
# 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... |
meta-recsys/generative-recommenders | https://github.com/meta-recsys/generative-recommenders | null | null | null | null | 1,875 | null | null | apache-2.0 | null | null | null | null | null | null | null | generative_recommenders/dlrm_v3/inference/thirdparty/loadgen/demos/py_demo_multi_stream.py | null | null | null | null | null | null | Python | 2026-05-04T02:51:24.157087 | # Copyright 2019 The MLPerf Authors. All Rights Reserved.
#
# 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 ... |
meta-recsys/generative-recommenders | https://github.com/meta-recsys/generative-recommenders | null | null | null | null | 1,875 | null | null | apache-2.0 | null | null | null | null | null | null | null | generative_recommenders/dlrm_v3/inference/accuracy.py | null | null | null | null | null | null | Python | 2026-05-04T02:51:24.186917 | # Copyright (c) Meta Platforms, Inc. and affiliates.
#
# 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... |
meta-recsys/generative-recommenders | https://github.com/meta-recsys/generative-recommenders | null | null | null | null | 1,875 | null | null | apache-2.0 | null | null | null | null | null | null | null | generative_recommenders/dlrm_v3/inference/thirdparty/loadgen/demos/py_demo_server.py | null | null | null | null | null | null | Python | 2026-05-04T02:51:24.996947 | # Copyright 2019 The MLPerf Authors. All Rights Reserved.
#
# 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 ... |
meta-recsys/generative-recommenders | https://github.com/meta-recsys/generative-recommenders | null | null | null | null | 1,875 | null | null | apache-2.0 | null | null | null | null | null | null | null | generative_recommenders/dlrm_v3/inference/thirdparty/loadgen/demos/token_metrics/py_demo_server.py | null | null | null | null | null | null | Python | 2026-05-04T02:51:25.001160 | # Copyright 2019 The MLPerf Authors. All Rights Reserved.
#
# 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 ... |
meta-recsys/generative-recommenders | https://github.com/meta-recsys/generative-recommenders | null | null | null | null | 1,875 | null | null | apache-2.0 | null | null | null | null | null | null | null | generative_recommenders/dlrm_v3/inference/thirdparty/loadgen/demos/token_metrics/py_demo_multi_stream.py | null | null | null | null | null | null | Python | 2026-05-04T02:51:25.017217 | # Copyright 2019 The MLPerf Authors. All Rights Reserved.
#
# 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 ... |
meta-recsys/generative-recommenders | https://github.com/meta-recsys/generative-recommenders | null | null | null | null | 1,875 | null | null | apache-2.0 | null | null | null | null | null | null | null | generative_recommenders/dlrm_v3/inference/thirdparty/loadgen/demos/token_metrics/py_demo_offline.py | null | null | null | null | null | null | Python | 2026-05-04T02:51:25.017912 | # Copyright 2019 The MLPerf Authors. All Rights Reserved.
#
# 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 ... |
meta-recsys/generative-recommenders | https://github.com/meta-recsys/generative-recommenders | null | null | null | null | 1,875 | null | null | apache-2.0 | null | null | null | null | null | null | null | generative_recommenders/dlrm_v3/inference/thirdparty/loadgen/demos/token_metrics/py_demo_offline_inferred.py | null | null | null | null | null | null | Python | 2026-05-04T02:51:25.044158 | # Copyright 2019 The MLPerf Authors. All Rights Reserved.
#
# 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 ... |
meta-recsys/generative-recommenders | https://github.com/meta-recsys/generative-recommenders | null | null | null | null | 1,875 | null | null | apache-2.0 | null | null | null | null | null | null | null | generative_recommenders/dlrm_v3/inference/thirdparty/loadgen/demos/py_demo_offline.py | null | null | null | null | null | null | Python | 2026-05-04T02:51:25.247677 | # Copyright 2019 The MLPerf Authors. All Rights Reserved.
#
# 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 ... |
meta-recsys/generative-recommenders | https://github.com/meta-recsys/generative-recommenders | null | null | null | null | 1,875 | null | null | apache-2.0 | null | null | null | null | null | null | null | generative_recommenders/dlrm_v3/inference/thirdparty/loadgen/version_generator.py | null | null | null | null | null | null | Python | 2026-05-04T02:51:25.796366 | # Copyright 2019 The MLPerf Authors. All Rights Reserved.
#
# 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 ... |
meta-recsys/generative-recommenders | https://github.com/meta-recsys/generative-recommenders | null | null | null | null | 1,875 | null | null | apache-2.0 | null | null | null | null | null | null | null | generative_recommenders/dlrm_v3/preprocess_public_data.py | null | null | null | null | null | null | Python | 2026-05-04T02:51:25.798777 | # Copyright (c) Meta Platforms, Inc. and affiliates.
#
# 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... |
meta-recsys/generative-recommenders | https://github.com/meta-recsys/generative-recommenders | null | null | null | null | 1,875 | null | null | apache-2.0 | null | null | null | null | null | null | null | generative_recommenders/dlrm_v3/inference/thirdparty/loadgen/setup.py | null | null | null | null | null | null | Python | 2026-05-04T02:51:25.800348 | # Copyright 2019 The MLPerf Authors. All Rights Reserved.
#
# 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 ... |
meta-recsys/generative-recommenders | https://github.com/meta-recsys/generative-recommenders | null | null | null | null | 1,875 | null | null | apache-2.0 | null | null | null | null | null | null | null | generative_recommenders/dlrm_v3/inference/thirdparty/loadgen/tests/perftests_null_sut.py | null | null | null | null | null | null | Python | 2026-05-04T02:51:25.801530 | # Copyright 2019 The MLPerf Authors. All Rights Reserved.
#
# 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 ... |
meta-recsys/generative-recommenders | https://github.com/meta-recsys/generative-recommenders | null | null | null | null | 1,875 | null | null | apache-2.0 | null | null | null | null | null | null | null | generative_recommenders/dlrm_v3/inference/thirdparty/loadgen/demos/py_demo_single_stream.py | null | null | null | null | null | null | Python | 2026-05-04T02:51:25.802616 | # Copyright 2019 The MLPerf Authors. All Rights Reserved.
#
# 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 ... |
meta-recsys/generative-recommenders | https://github.com/meta-recsys/generative-recommenders | null | null | null | null | 1,875 | null | null | apache-2.0 | null | null | null | null | null | null | null | generative_recommenders/dlrm_v3/streaming_synthetic_data.py | null | null | null | null | null | null | Python | 2026-05-04T02:51:25.803870 | # pyre-strict
"""
Streaming synthetic data generator for DLRMv3.
This module generates synthetic streaming recommendation data for benchmarking
and testing purposes. It creates user-item interaction histories with timestamps,
ratings, and category-based item distributions.
"""
import csv
import logging
import math
im... |
meta-recsys/generative-recommenders | https://github.com/meta-recsys/generative-recommenders | null | null | null | null | 1,875 | null | null | apache-2.0 | null | null | null | null | null | null | null | generative_recommenders/dlrm_v3/inference/thirdparty/loadgen/demos/token_metrics/py_demo_server_inferred.py | null | null | null | null | null | null | Python | 2026-05-04T02:51:26.694851 | # Copyright 2019 The MLPerf Authors. All Rights Reserved.
#
# 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 ... |
meta-recsys/generative-recommenders | https://github.com/meta-recsys/generative-recommenders | null | null | null | null | 1,875 | null | null | apache-2.0 | null | null | null | null | null | null | null | generative_recommenders/dlrm_v3/train/tests/train_test.py | null | null | null | null | null | null | Python | 2026-05-04T02:51:27.023791 | # Copyright (c) Meta Platforms, Inc. and affiliates.
#
# 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... |
meta-recsys/generative-recommenders | https://github.com/meta-recsys/generative-recommenders | null | null | null | null | 1,875 | null | null | apache-2.0 | null | null | null | null | null | null | null | generative_recommenders/modules/action_encoder.py | null | null | null | null | null | null | Python | 2026-05-04T02:51:27.024943 | # Copyright (c) Meta Platforms, Inc. and affiliates.
#
# 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... |
meta-recsys/generative-recommenders | https://github.com/meta-recsys/generative-recommenders | null | null | null | null | 1,875 | null | null | apache-2.0 | null | null | null | null | null | null | null | generative_recommenders/dlrm_v3/train/train_ranker.py | null | null | null | null | null | null | Python | 2026-05-04T02:51:27.078243 | # Copyright (c) Meta Platforms, Inc. and affiliates.
#
# 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... |
meta-recsys/generative-recommenders | https://github.com/meta-recsys/generative-recommenders | null | null | null | null | 1,875 | null | null | apache-2.0 | null | null | null | null | null | null | null | generative_recommenders/modules/contextual_interleave_preprocessor.py | null | null | null | null | null | null | Python | 2026-05-04T02:51:27.263817 | # Copyright (c) Meta Platforms, Inc. and affiliates.
#
# 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... |
meta-recsys/generative-recommenders | https://github.com/meta-recsys/generative-recommenders | null | null | null | null | 1,875 | null | null | apache-2.0 | null | null | null | null | null | null | null | generative_recommenders/dlrm_v3/train/utils.py | null | null | null | null | null | null | Python | 2026-05-04T02:51:27.354862 | # Copyright (c) Meta Platforms, Inc. and affiliates.
#
# 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... |
meta-recsys/generative-recommenders | https://github.com/meta-recsys/generative-recommenders | null | null | null | null | 1,875 | null | null | apache-2.0 | null | null | null | null | null | null | null | generative_recommenders/modules/dlrm_hstu.py | null | null | null | null | null | null | Python | 2026-05-04T02:51:27.562450 | # Copyright (c) Meta Platforms, Inc. and affiliates.
#
# 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... |
meta-recsys/generative-recommenders | https://github.com/meta-recsys/generative-recommenders | null | null | null | null | 1,875 | null | null | apache-2.0 | null | null | null | null | null | null | null | generative_recommenders/modules/contextualize_mlps.py | null | null | null | null | null | null | Python | 2026-05-04T02:51:27.584598 | # Copyright (c) Meta Platforms, Inc. and affiliates.
#
# 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... |
meta-recsys/generative-recommenders | https://github.com/meta-recsys/generative-recommenders | null | null | null | null | 1,875 | null | null | apache-2.0 | null | null | null | null | null | null | null | generative_recommenders/modules/dynamic_stu.py | null | null | null | null | null | null | Python | 2026-05-04T02:51:27.632080 | # Copyright (c) Meta Platforms, Inc. and affiliates.
#
# 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... |
meta-recsys/generative-recommenders | https://github.com/meta-recsys/generative-recommenders | null | null | null | null | 1,875 | null | null | apache-2.0 | null | null | null | null | null | null | null | generative_recommenders/modules/hstu_transducer.py | null | null | null | null | null | null | Python | 2026-05-04T02:51:27.639279 | # Copyright (c) Meta Platforms, Inc. and affiliates.
#
# 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... |
meta-recsys/generative-recommenders | https://github.com/meta-recsys/generative-recommenders | null | null | null | null | 1,875 | null | null | apache-2.0 | null | null | null | null | null | null | null | generative_recommenders/modules/multitask_module.py | null | null | null | null | null | null | Python | 2026-05-04T02:51:27.829547 | # Copyright (c) Meta Platforms, Inc. and affiliates.
#
# 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... |
meta-recsys/generative-recommenders | https://github.com/meta-recsys/generative-recommenders | null | null | null | null | 1,875 | null | null | apache-2.0 | null | null | null | null | null | null | null | generative_recommenders/modules/positional_encoder.py | null | null | null | null | null | null | Python | 2026-05-04T02:51:27.908949 | # Copyright (c) Meta Platforms, Inc. and affiliates.
#
# 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... |
meta-recsys/generative-recommenders | https://github.com/meta-recsys/generative-recommenders | null | null | null | null | 1,875 | null | null | apache-2.0 | null | null | null | null | null | null | null | generative_recommenders/modules/postprocessors.py | null | null | null | null | null | null | Python | 2026-05-04T02:51:28.122613 | # Copyright (c) Meta Platforms, Inc. and affiliates.
#
# 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... |
meta-recsys/generative-recommenders | https://github.com/meta-recsys/generative-recommenders | null | null | null | null | 1,875 | null | null | apache-2.0 | null | null | null | null | null | null | null | generative_recommenders/modules/content_encoder.py | null | null | null | null | null | null | Python | 2026-05-04T02:51:31.784838 | # Copyright (c) Meta Platforms, Inc. and affiliates.
#
# 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... |
meta-recsys/generative-recommenders | https://github.com/meta-recsys/generative-recommenders | null | null | null | null | 1,875 | null | null | apache-2.0 | null | null | null | null | null | null | null | generative_recommenders/dlrm_v3/utils.py | null | null | null | null | null | null | Python | 2026-05-04T02:51:31.814846 | # Copyright (c) Meta Platforms, Inc. and affiliates.
#
# 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... |
meta-recsys/generative-recommenders | https://github.com/meta-recsys/generative-recommenders | null | null | null | null | 1,875 | null | null | apache-2.0 | null | null | null | null | null | null | null | generative_recommenders/dlrm_v3/inference/thirdparty/loadgen/demos/token_metrics/py_demo_single_stream.py | null | null | null | null | null | null | Python | 2026-05-04T02:51:34.960389 | # Copyright 2019 The MLPerf Authors. All Rights Reserved.
#
# 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 ... |
meta-recsys/generative-recommenders | https://github.com/meta-recsys/generative-recommenders | null | null | null | null | 1,875 | null | null | apache-2.0 | null | null | null | null | null | null | null | generative_recommenders/dlrm_v3/inference/thirdparty/loadgen/docs/src/doxygen_html_generator.py | null | null | null | null | null | null | Python | 2026-05-04T02:51:34.960957 | # Copyright 2019 The MLPerf Authors. All Rights Reserved.
#
# 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 ... |
a2aproject/a2a-python | https://github.com/a2aproject/a2a-python | null | null | null | null | 1,874 | null | null | apache-2.0 | null | null | null | null | null | null | null | itk/main.py | null | null | null | null | null | null | Python | 2026-05-04T02:51:37.293368 | import argparse # noqa: I001
import asyncio
import base64
import logging
import os
import uuid
import grpc
import httpx
import uvicorn
from fastapi import FastAPI
from pyproto import instruction_pb2
from a2a.client import ClientConfig, create_client
from a2a.compat.v0_3 import a2a_v0_3_pb2_grpc
from a2a.compat.v0_... |
a2aproject/a2a-python | https://github.com/a2aproject/a2a-python | null | null | null | null | 1,874 | null | null | apache-2.0 | null | null | null | null | null | null | null | samples/hello_world_agent.py | null | null | null | null | null | null | Python | 2026-05-04T02:51:37.294598 | import argparse
import asyncio
import contextlib
import logging
import grpc
import uvicorn
from fastapi import FastAPI
from a2a.compat.v0_3 import a2a_v0_3_pb2_grpc
from a2a.compat.v0_3.grpc_handler import CompatGrpcHandler
from a2a.server.agent_execution.agent_executor import AgentExecutor
from a2a.server.agent_exe... |
a2aproject/a2a-python | https://github.com/a2aproject/a2a-python | null | null | null | null | 1,874 | null | null | apache-2.0 | null | null | null | null | null | null | null | src/a2a/a2a_db_cli.py | null | null | null | null | null | null | Python | 2026-05-04T02:51:37.297837 | import argparse
import logging
import os
from importlib.resources import files
try:
from alembic import command
from alembic.config import Config
except ImportError as e:
raise ImportError(
"CLI requires Alembic. Install with: 'pip install a2a-sdk[db-cli]'."
) from e
def _add_shared_args(
... |
a2aproject/a2a-python | https://github.com/a2aproject/a2a-python | null | null | null | null | 1,874 | null | null | apache-2.0 | null | null | null | null | null | null | null | src/a2a/_base.py | null | null | null | null | null | null | Python | 2026-05-04T02:51:37.302166 | from pydantic import BaseModel, ConfigDict
from pydantic.alias_generators import to_camel
def to_camel_custom(snake: str) -> str:
"""Convert a snake_case string to camelCase.
Args:
snake: The string to convert.
Returns:
The converted camelCase string.
"""
# First, remove any trai... |
a2aproject/a2a-python | https://github.com/a2aproject/a2a-python | null | null | null | null | 1,874 | null | null | apache-2.0 | null | null | null | null | null | null | null | samples/cli.py | null | null | null | null | null | null | Python | 2026-05-04T02:51:37.314109 | import argparse
import asyncio
import os
import signal
import uuid
from typing import Any
import grpc
import httpx
from a2a.client import A2ACardResolver, ClientConfig, create_client
from a2a.helpers import get_artifact_text, get_message_text
from a2a.helpers.agent_card import display_agent_card
from a2a.types impor... |
a2aproject/a2a-python | https://github.com/a2aproject/a2a-python | null | null | null | null | 1,874 | null | null | apache-2.0 | null | null | null | null | null | null | null | src/a2a/auth/user.py | null | null | null | null | null | null | Python | 2026-05-04T02:51:37.320840 | """Authenticated user information."""
from abc import ABC, abstractmethod
class User(ABC):
"""A representation of an authenticated user."""
@property
@abstractmethod
def is_authenticated(self) -> bool:
"""Returns whether the current user is authenticated."""
@property
@abstractmetho... |
a2aproject/a2a-python | https://github.com/a2aproject/a2a-python | null | null | null | null | 1,874 | null | null | apache-2.0 | null | null | null | null | null | null | null | src/a2a/client/__init__.py | null | null | null | null | null | null | Python | 2026-05-04T02:51:37.882537 | """Client-side components for interacting with an A2A agent."""
from a2a.client.auth import (
AuthInterceptor,
CredentialService,
InMemoryContextCredentialStore,
)
from a2a.client.base_client import BaseClient
from a2a.client.card_resolver import A2ACardResolver
from a2a.client.client import (
Client,
... |
a2aproject/a2a-python | https://github.com/a2aproject/a2a-python | null | null | null | null | 1,874 | null | null | apache-2.0 | null | null | null | null | null | null | null | src/a2a/client/base_client.py | null | null | null | null | null | null | Python | 2026-05-04T02:51:37.897733 | from collections.abc import AsyncGenerator, AsyncIterator, Awaitable, Callable
from typing import Any
from a2a.client.client import (
Client,
ClientCallContext,
ClientConfig,
)
from a2a.client.interceptors import (
AfterArgs,
BeforeArgs,
ClientCallInterceptor,
)
from a2a.client.transports.base ... |
a2aproject/a2a-python | https://github.com/a2aproject/a2a-python | null | null | null | null | 1,874 | null | null | apache-2.0 | null | null | null | null | null | null | null | src/a2a/client/auth/credentials.py | null | null | null | null | null | null | Python | 2026-05-04T02:51:37.910734 | from abc import ABC, abstractmethod
from a2a.client.client import ClientCallContext
class CredentialService(ABC):
"""An abstract service for retrieving credentials."""
@abstractmethod
async def get_credentials(
self,
security_scheme_name: str,
context: ClientCallContext | None,
... |
a2aproject/a2a-python | https://github.com/a2aproject/a2a-python | null | null | null | null | 1,874 | null | null | apache-2.0 | null | null | null | null | null | null | null | src/a2a/client/auth/__init__.py | null | null | null | null | null | null | Python | 2026-05-04T02:51:37.911787 | """Client-side authentication components for the A2A Python SDK."""
from a2a.client.auth.credentials import (
CredentialService,
InMemoryContextCredentialStore,
)
from a2a.client.auth.interceptor import AuthInterceptor
__all__ = [
'AuthInterceptor',
'CredentialService',
'InMemoryContextCredential... |
a2aproject/a2a-python | https://github.com/a2aproject/a2a-python | null | null | null | null | 1,874 | null | null | apache-2.0 | null | null | null | null | null | null | null | src/a2a/client/auth/interceptor.py | null | null | null | null | null | null | Python | 2026-05-04T02:51:37.917531 | import logging # noqa: I001
from a2a.client.auth.credentials import CredentialService
from a2a.client.client import ClientCallContext
from a2a.client.interceptors import (
AfterArgs,
BeforeArgs,
ClientCallInterceptor,
)
logger = logging.getLogger(__name__)
class AuthInterceptor(ClientCallInterceptor):
... |
a2aproject/a2a-python | https://github.com/a2aproject/a2a-python | null | null | null | null | 1,874 | null | null | apache-2.0 | null | null | null | null | null | null | null | src/a2a/client/client.py | null | null | null | null | null | null | Python | 2026-05-04T02:51:37.918767 | import dataclasses
import logging
from abc import ABC, abstractmethod
from collections.abc import AsyncIterator, Callable, MutableMapping
from types import TracebackType
from typing import Any
import httpx
from pydantic import BaseModel, Field
from typing_extensions import Self
from a2a.client.interceptors import C... |
a2aproject/a2a-python | https://github.com/a2aproject/a2a-python | null | null | null | null | 1,874 | null | null | apache-2.0 | null | null | null | null | null | null | null | src/a2a/client/errors.py | null | null | null | null | null | null | Python | 2026-05-04T02:51:37.923506 | """Custom exceptions for the A2A client."""
from a2a.utils.errors import A2AError
class A2AClientError(A2AError):
"""Base exception for A2A Client errors."""
class AgentCardResolutionError(A2AClientError):
"""Exception raised when an agent card cannot be resolved."""
def __init__(self, message: str, s... |
a2aproject/a2a-python | https://github.com/a2aproject/a2a-python | null | null | null | null | 1,874 | null | null | apache-2.0 | null | null | null | null | null | null | null | src/a2a/client/card_resolver.py | null | null | null | null | null | null | Python | 2026-05-04T02:51:37.924733 | import json
import logging
from collections.abc import Callable
from typing import Any
import httpx
from google.protobuf.json_format import ParseDict, ParseError
from a2a.client.errors import AgentCardResolutionError
from a2a.types.a2a_pb2 import (
AgentCard,
)
from a2a.utils.constants import AGENT_CARD_WELL_KN... |
a2aproject/a2a-python | https://github.com/a2aproject/a2a-python | null | null | null | null | 1,874 | null | null | apache-2.0 | null | null | null | null | null | null | null | src/a2a/client/client_factory.py | null | null | null | null | null | null | Python | 2026-05-04T02:51:37.953456 | from __future__ import annotations
import logging
from collections.abc import Callable
from typing import TYPE_CHECKING, Any
import httpx
from packaging.version import InvalidVersion, Version
from a2a.client.base_client import BaseClient
from a2a.client.card_resolver import A2ACardResolver
from a2a.client.client i... |
a2aproject/a2a-python | https://github.com/a2aproject/a2a-python | null | null | null | null | 1,874 | null | null | apache-2.0 | null | null | null | null | null | null | null | src/a2a/client/interceptors.py | null | null | null | null | null | null | Python | 2026-05-04T02:51:37.989463 | from __future__ import annotations
from abc import ABC, abstractmethod
from dataclasses import dataclass
from typing import TYPE_CHECKING, Any
if TYPE_CHECKING:
from a2a.client.client import ClientCallContext
from a2a.types.a2a_pb2 import ( # noqa: TC001
AgentCard,
)
@dataclass
class BeforeArgs:
"""A... |
a2aproject/a2a-python | https://github.com/a2aproject/a2a-python | null | null | null | null | 1,874 | null | null | apache-2.0 | null | null | null | null | null | null | null | src/a2a/client/optionals.py | null | null | null | null | null | null | Python | 2026-05-04T02:51:38.719668 | from typing import TYPE_CHECKING
# Attempt to import the optional module
try:
from grpc.aio import Channel # type: ignore[reportMissingModuleSource]
except ImportError:
# If grpc.aio is not available, define a stub type for type checking.
# This stub type will only be used by type checkers.
if TYPE_C... |
a2aproject/a2a-python | https://github.com/a2aproject/a2a-python | null | null | null | null | 1,874 | null | null | apache-2.0 | null | null | null | null | null | null | null | src/a2a/client/transports/http_helpers.py | null | null | null | null | null | null | Python | 2026-05-04T02:51:38.720500 | import json
from collections.abc import AsyncGenerator, Callable, Iterator
from contextlib import contextmanager
from typing import Any, NoReturn
import httpx
from httpx_sse import EventSource, SSEError
from a2a.client.client import ClientCallContext
from a2a.client.errors import A2AClientError, A2AClientTimeoutErr... |
a2aproject/a2a-python | https://github.com/a2aproject/a2a-python | null | null | null | null | 1,874 | null | null | apache-2.0 | null | null | null | null | null | null | null | src/a2a/client/service_parameters.py | null | null | null | null | null | null | Python | 2026-05-04T02:51:38.722568 | from collections.abc import Callable
from typing import TypeAlias
from a2a.extensions.common import (
HTTP_EXTENSION_HEADER,
get_requested_extensions,
)
ServiceParameters: TypeAlias = dict[str, str]
ServiceParametersUpdate: TypeAlias = Callable[[ServiceParameters], None]
class ServiceParametersFactory:
... |
a2aproject/a2a-python | https://github.com/a2aproject/a2a-python | null | null | null | null | 1,874 | null | null | apache-2.0 | null | null | null | null | null | null | null | src/a2a/client/transports/base.py | null | null | null | null | null | null | Python | 2026-05-04T02:51:38.723569 | from abc import ABC, abstractmethod
from collections.abc import AsyncGenerator
from types import TracebackType
from typing_extensions import Self
from a2a.client.client import ClientCallContext
from a2a.types.a2a_pb2 import (
AgentCard,
CancelTaskRequest,
DeleteTaskPushNotificationConfigRequest,
GetEx... |
a2aproject/a2a-python | https://github.com/a2aproject/a2a-python | null | null | null | null | 1,874 | null | null | apache-2.0 | null | null | null | null | null | null | null | src/a2a/client/transports/jsonrpc.py | null | null | null | null | null | null | Python | 2026-05-04T02:51:38.899637 | import logging
from collections.abc import AsyncGenerator
from typing import Any, NoReturn
from uuid import uuid4
import httpx
from google.protobuf import json_format
from jsonrpc.jsonrpc2 import JSONRPC20Request, JSONRPC20Response
from a2a.client.client import ClientCallContext
from a2a.client.errors import A2ACli... |
a2aproject/a2a-python | https://github.com/a2aproject/a2a-python | null | null | null | null | 1,874 | null | null | apache-2.0 | null | null | null | null | null | null | null | src/a2a/client/transports/tenant_decorator.py | null | null | null | null | null | null | Python | 2026-05-04T02:51:38.932808 | from collections.abc import AsyncGenerator
from a2a.client.client import ClientCallContext
from a2a.client.transports.base import ClientTransport
from a2a.types.a2a_pb2 import (
AgentCard,
CancelTaskRequest,
DeleteTaskPushNotificationConfigRequest,
GetExtendedAgentCardRequest,
GetTaskPushNotificati... |
a2aproject/a2a-python | https://github.com/a2aproject/a2a-python | null | null | null | null | 1,874 | null | null | apache-2.0 | null | null | null | null | null | null | null | src/a2a/client/transports/grpc.py | null | null | null | null | null | null | Python | 2026-05-04T02:51:39.365150 | import logging
from collections.abc import AsyncGenerator, Callable
from functools import wraps
from typing import Any, NoReturn, cast
from a2a.client.client import ClientCallContext
from a2a.client.errors import A2AClientError, A2AClientTimeoutError
try:
import grpc # type: ignore[reportMissingModuleSource]
... |
a2aproject/a2a-python | https://github.com/a2aproject/a2a-python | null | null | null | null | 1,874 | null | null | apache-2.0 | null | null | null | null | null | null | null | src/a2a/client/transports/__init__.py | null | null | null | null | null | null | Python | 2026-05-04T02:51:39.366271 | """A2A Client Transports."""
from a2a.client.transports.base import ClientTransport
from a2a.client.transports.jsonrpc import JsonRpcTransport
from a2a.client.transports.rest import RestTransport
try:
from a2a.client.transports.grpc import GrpcTransport
except ImportError:
GrpcTransport = None # type: ignor... |
a2aproject/a2a-python | https://github.com/a2aproject/a2a-python | null | null | null | null | 1,874 | null | null | apache-2.0 | null | null | null | null | null | null | null | src/a2a/client/transports/rest.py | null | null | null | null | null | null | Python | 2026-05-04T02:51:39.635234 | import json
import logging
from collections.abc import AsyncGenerator
from typing import Any, NoReturn
import httpx
from google.protobuf.json_format import MessageToDict, Parse, ParseDict
from a2a.client.client import ClientCallContext
from a2a.client.errors import A2AClientError
from a2a.client.transports.base imp... |
a2aproject/a2a-python | https://github.com/a2aproject/a2a-python | null | null | null | null | 1,874 | null | null | apache-2.0 | null | null | null | null | null | null | null | src/a2a/compat/v0_3/extension_headers.py | null | null | null | null | null | null | Python | 2026-05-04T02:51:39.816447 | """Shared header name constants for v0.3 extension compatibility.
The current spec uses ``A2A-Extensions``. v0.3 used the ``X-`` prefixed
``X-A2A-Extensions`` form. v0.3 compat servers and clients accept/emit both
names so they can interoperate with peers that only know the legacy one.
"""
from a2a.client.service_par... |
a2aproject/a2a-python | https://github.com/a2aproject/a2a-python | null | null | null | null | 1,874 | null | null | apache-2.0 | null | null | null | null | null | null | null | src/a2a/compat/v0_3/grpc_transport.py | null | null | null | null | null | null | Python | 2026-05-04T02:51:39.898959 | import logging
from collections.abc import AsyncGenerator, Callable
from functools import wraps
from typing import Any, NoReturn
from a2a.client.errors import A2AClientError, A2AClientTimeoutError
from a2a.utils.errors import JSON_RPC_ERROR_CODE_MAP
try:
import grpc # type: ignore[reportMissingModuleSource]
ex... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.