repo stringlengths 7 90 | file_url stringlengths 81 315 | file_path stringlengths 4 228 | content stringlengths 0 32.8k | language stringclasses 1
value | license stringclasses 7
values | commit_sha stringlengths 40 40 | retrieved_at stringdate 2026-01-04 14:38:15 2026-01-05 02:33:18 | truncated bool 2
classes |
|---|---|---|---|---|---|---|---|---|
roostorg/osprey | https://github.com/roostorg/osprey/blob/5c1f999c156b420043be7efdd472c8e31096bfb5/osprey_worker/src/osprey/engine/ast_validator/validators/tests/test_imports_must_not_have_cycles.py | osprey_worker/src/osprey/engine/ast_validator/validators/tests/test_imports_must_not_have_cycles.py | from typing import Any, Callable, List
import pytest
from osprey.engine.ast_validator.validators.imports_must_not_have_cycles import ImportsMustNotHaveCycles
from osprey.engine.ast_validator.validators.unique_stored_names import UniqueStoredNames
from osprey.engine.ast_validator.validators.validate_call_kwargs import ... | python | Apache-2.0 | 5c1f999c156b420043be7efdd472c8e31096bfb5 | 2026-01-05T07:11:51.519046Z | false |
roostorg/osprey | https://github.com/roostorg/osprey/blob/5c1f999c156b420043be7efdd472c8e31096bfb5/osprey_worker/src/osprey/engine/ast_validator/tests/test_validation_context.py | osprey_worker/src/osprey/engine/ast_validator/tests/test_validation_context.py | import pytest
from osprey.engine.conftest import CheckFailureFunction, RunValidationFunction
pytestmark = [pytest.mark.use_validators([])]
def test_validation_transforms_osprey_py_ast_python_errors(
run_validation: RunValidationFunction, check_failure: CheckFailureFunction
) -> None:
with check_failure():
... | python | Apache-2.0 | 5c1f999c156b420043be7efdd472c8e31096bfb5 | 2026-01-05T07:11:51.519046Z | false |
roostorg/osprey | https://github.com/roostorg/osprey/blob/5c1f999c156b420043be7efdd472c8e31096bfb5/osprey_worker/src/osprey/engine/ast_validator/tests/__init__.py | osprey_worker/src/osprey/engine/ast_validator/tests/__init__.py | python | Apache-2.0 | 5c1f999c156b420043be7efdd472c8e31096bfb5 | 2026-01-05T07:11:51.519046Z | false | |
roostorg/osprey | https://github.com/roostorg/osprey/blob/5c1f999c156b420043be7efdd472c8e31096bfb5/osprey_worker/src/osprey/engine/ast_validator/tests/test_validation_context_warnings.py | osprey_worker/src/osprey/engine/ast_validator/tests/test_validation_context_warnings.py | import pytest
from osprey.engine.ast.ast_utils import filter_nodes
from osprey.engine.ast.grammar import Source, String
from osprey.engine.ast_validator.base_validator import SourceValidator
from osprey.engine.conftest import CheckFailureFunction, CheckOutputFunction, RunValidationFunction
class WarnOnStringLiteralsT... | python | Apache-2.0 | 5c1f999c156b420043be7efdd472c8e31096bfb5 | 2026-01-05T07:11:51.519046Z | false |
roostorg/osprey | https://github.com/roostorg/osprey/blob/5c1f999c156b420043be7efdd472c8e31096bfb5/osprey_rpc/src/osprey/rpc/__init__.py | osprey_rpc/src/osprey/rpc/__init__.py | python | Apache-2.0 | 5c1f999c156b420043be7efdd472c8e31096bfb5 | 2026-01-05T07:11:51.519046Z | false | |
roostorg/osprey | https://github.com/roostorg/osprey/blob/5c1f999c156b420043be7efdd472c8e31096bfb5/osprey_rpc/src/osprey/rpc/etcd_watcherd/__init__.py | osprey_rpc/src/osprey/rpc/etcd_watcherd/__init__.py | python | Apache-2.0 | 5c1f999c156b420043be7efdd472c8e31096bfb5 | 2026-01-05T07:11:51.519046Z | false | |
roostorg/osprey | https://github.com/roostorg/osprey/blob/5c1f999c156b420043be7efdd472c8e31096bfb5/osprey_rpc/src/osprey/rpc/etcd_watcherd/v1/etcd_watcherd_pb2.py | osprey_rpc/src/osprey/rpc/etcd_watcherd/v1/etcd_watcherd_pb2.py | # -*- coding: utf-8 -*-
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: osprey/rpc/etcd_watcherd/v1/etcd_watcherd.proto
"""Generated protocol buffer code."""
from google.protobuf.internal import builder as _builder
from google.protobuf import descriptor as _descriptor
from google.protobuf import de... | python | Apache-2.0 | 5c1f999c156b420043be7efdd472c8e31096bfb5 | 2026-01-05T07:11:51.519046Z | false |
roostorg/osprey | https://github.com/roostorg/osprey/blob/5c1f999c156b420043be7efdd472c8e31096bfb5/osprey_rpc/src/osprey/rpc/etcd_watcherd/v1/etcd_watcherd_pb2_grpc.py | osprey_rpc/src/osprey/rpc/etcd_watcherd/v1/etcd_watcherd_pb2_grpc.py | # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT!
"""Client and server classes corresponding to protobuf-defined services."""
import grpc
from osprey.rpc.etcd_watcherd.v1 import etcd_watcherd_pb2 as osprey_dot_rpc_dot_etcd__watcherd_dot_v1_dot_etcd__watcherd__pb2
class EtcdWatcherdServiceStub(obj... | python | Apache-2.0 | 5c1f999c156b420043be7efdd472c8e31096bfb5 | 2026-01-05T07:11:51.519046Z | false |
roostorg/osprey | https://github.com/roostorg/osprey/blob/5c1f999c156b420043be7efdd472c8e31096bfb5/osprey_rpc/src/osprey/rpc/etcd_watcherd/v1/__init__.py | osprey_rpc/src/osprey/rpc/etcd_watcherd/v1/__init__.py | python | Apache-2.0 | 5c1f999c156b420043be7efdd472c8e31096bfb5 | 2026-01-05T07:11:51.519046Z | false | |
roostorg/osprey | https://github.com/roostorg/osprey/blob/5c1f999c156b420043be7efdd472c8e31096bfb5/osprey_rpc/src/osprey/rpc/osprey_coordinator/__init__.py | osprey_rpc/src/osprey/rpc/osprey_coordinator/__init__.py | python | Apache-2.0 | 5c1f999c156b420043be7efdd472c8e31096bfb5 | 2026-01-05T07:11:51.519046Z | false | |
roostorg/osprey | https://github.com/roostorg/osprey/blob/5c1f999c156b420043be7efdd472c8e31096bfb5/osprey_rpc/src/osprey/rpc/osprey_coordinator/bidirectional_stream/__init__.py | osprey_rpc/src/osprey/rpc/osprey_coordinator/bidirectional_stream/__init__.py | python | Apache-2.0 | 5c1f999c156b420043be7efdd472c8e31096bfb5 | 2026-01-05T07:11:51.519046Z | false | |
roostorg/osprey | https://github.com/roostorg/osprey/blob/5c1f999c156b420043be7efdd472c8e31096bfb5/osprey_rpc/src/osprey/rpc/osprey_coordinator/bidirectional_stream/v1/service_pb2_grpc.py | osprey_rpc/src/osprey/rpc/osprey_coordinator/bidirectional_stream/v1/service_pb2_grpc.py | # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT!
"""Client and server classes corresponding to protobuf-defined services."""
import grpc
from osprey.rpc.osprey_coordinator.bidirectional_stream.v1 import service_pb2 as osprey_dot_rpc_dot_osprey__coordinator_dot_bidirectional__stream_dot_v1_dot_serv... | python | Apache-2.0 | 5c1f999c156b420043be7efdd472c8e31096bfb5 | 2026-01-05T07:11:51.519046Z | false |
roostorg/osprey | https://github.com/roostorg/osprey/blob/5c1f999c156b420043be7efdd472c8e31096bfb5/osprey_rpc/src/osprey/rpc/osprey_coordinator/bidirectional_stream/v1/service_pb2.py | osprey_rpc/src/osprey/rpc/osprey_coordinator/bidirectional_stream/v1/service_pb2.py | # -*- coding: utf-8 -*-
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: osprey/rpc/osprey_coordinator/bidirectional_stream/v1/service.proto
"""Generated protocol buffer code."""
from google.protobuf.internal import builder as _builder
from google.protobuf import descriptor as _descriptor
from googl... | python | Apache-2.0 | 5c1f999c156b420043be7efdd472c8e31096bfb5 | 2026-01-05T07:11:51.519046Z | false |
roostorg/osprey | https://github.com/roostorg/osprey/blob/5c1f999c156b420043be7efdd472c8e31096bfb5/osprey_rpc/src/osprey/rpc/osprey_coordinator/bidirectional_stream/v1/__init__.py | osprey_rpc/src/osprey/rpc/osprey_coordinator/bidirectional_stream/v1/__init__.py | python | Apache-2.0 | 5c1f999c156b420043be7efdd472c8e31096bfb5 | 2026-01-05T07:11:51.519046Z | false | |
roostorg/osprey | https://github.com/roostorg/osprey/blob/5c1f999c156b420043be7efdd472c8e31096bfb5/osprey_rpc/src/osprey/rpc/osprey_coordinator/sync_action/__init__.py | osprey_rpc/src/osprey/rpc/osprey_coordinator/sync_action/__init__.py | python | Apache-2.0 | 5c1f999c156b420043be7efdd472c8e31096bfb5 | 2026-01-05T07:11:51.519046Z | false | |
roostorg/osprey | https://github.com/roostorg/osprey/blob/5c1f999c156b420043be7efdd472c8e31096bfb5/osprey_rpc/src/osprey/rpc/osprey_coordinator/sync_action/v1/service_pb2_grpc.py | osprey_rpc/src/osprey/rpc/osprey_coordinator/sync_action/v1/service_pb2_grpc.py | # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT!
"""Client and server classes corresponding to protobuf-defined services."""
import grpc
from osprey.rpc.osprey_coordinator.sync_action.v1 import service_pb2 as osprey_dot_rpc_dot_osprey__coordinator_dot_sync__action_dot_v1_dot_service__pb2
class O... | python | Apache-2.0 | 5c1f999c156b420043be7efdd472c8e31096bfb5 | 2026-01-05T07:11:51.519046Z | false |
roostorg/osprey | https://github.com/roostorg/osprey/blob/5c1f999c156b420043be7efdd472c8e31096bfb5/osprey_rpc/src/osprey/rpc/osprey_coordinator/sync_action/v1/service_pb2.py | osprey_rpc/src/osprey/rpc/osprey_coordinator/sync_action/v1/service_pb2.py | # -*- coding: utf-8 -*-
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: osprey/rpc/osprey_coordinator/sync_action/v1/service.proto
"""Generated protocol buffer code."""
from google.protobuf.internal import builder as _builder
from google.protobuf import descriptor as _descriptor
from google.protobu... | python | Apache-2.0 | 5c1f999c156b420043be7efdd472c8e31096bfb5 | 2026-01-05T07:11:51.519046Z | false |
roostorg/osprey | https://github.com/roostorg/osprey/blob/5c1f999c156b420043be7efdd472c8e31096bfb5/osprey_rpc/src/osprey/rpc/osprey_coordinator/sync_action/v1/__init__.py | osprey_rpc/src/osprey/rpc/osprey_coordinator/sync_action/v1/__init__.py | python | Apache-2.0 | 5c1f999c156b420043be7efdd472c8e31096bfb5 | 2026-01-05T07:11:51.519046Z | false | |
roostorg/osprey | https://github.com/roostorg/osprey/blob/5c1f999c156b420043be7efdd472c8e31096bfb5/osprey_rpc/src/osprey/rpc/common/__init__.py | osprey_rpc/src/osprey/rpc/common/__init__.py | python | Apache-2.0 | 5c1f999c156b420043be7efdd472c8e31096bfb5 | 2026-01-05T07:11:51.519046Z | false | |
roostorg/osprey | https://github.com/roostorg/osprey/blob/5c1f999c156b420043be7efdd472c8e31096bfb5/osprey_rpc/src/osprey/rpc/common/v1/take_data_pb2_grpc.py | osprey_rpc/src/osprey/rpc/common/v1/take_data_pb2_grpc.py | # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT!
"""Client and server classes corresponding to protobuf-defined services."""
import grpc
| python | Apache-2.0 | 5c1f999c156b420043be7efdd472c8e31096bfb5 | 2026-01-05T07:11:51.519046Z | false |
roostorg/osprey | https://github.com/roostorg/osprey/blob/5c1f999c156b420043be7efdd472c8e31096bfb5/osprey_rpc/src/osprey/rpc/common/v1/verdicts_pb2_grpc.py | osprey_rpc/src/osprey/rpc/common/v1/verdicts_pb2_grpc.py | # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT!
"""Client and server classes corresponding to protobuf-defined services."""
import grpc
| python | Apache-2.0 | 5c1f999c156b420043be7efdd472c8e31096bfb5 | 2026-01-05T07:11:51.519046Z | false |
roostorg/osprey | https://github.com/roostorg/osprey/blob/5c1f999c156b420043be7efdd472c8e31096bfb5/osprey_rpc/src/osprey/rpc/common/v1/execution_result_pb2_grpc.py | osprey_rpc/src/osprey/rpc/common/v1/execution_result_pb2_grpc.py | # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT!
"""Client and server classes corresponding to protobuf-defined services."""
import grpc
| python | Apache-2.0 | 5c1f999c156b420043be7efdd472c8e31096bfb5 | 2026-01-05T07:11:51.519046Z | false |
roostorg/osprey | https://github.com/roostorg/osprey/blob/5c1f999c156b420043be7efdd472c8e31096bfb5/osprey_rpc/src/osprey/rpc/common/v1/__init__.py | osprey_rpc/src/osprey/rpc/common/v1/__init__.py | python | Apache-2.0 | 5c1f999c156b420043be7efdd472c8e31096bfb5 | 2026-01-05T07:11:51.519046Z | false | |
roostorg/osprey | https://github.com/roostorg/osprey/blob/5c1f999c156b420043be7efdd472c8e31096bfb5/osprey_rpc/src/osprey/rpc/common/v1/execution_result_pb2.py | osprey_rpc/src/osprey/rpc/common/v1/execution_result_pb2.py | # -*- coding: utf-8 -*-
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: osprey/rpc/common/v1/execution_result.proto
"""Generated protocol buffer code."""
from google.protobuf.internal import builder as _builder
from google.protobuf import descriptor as _descriptor
from google.protobuf import descri... | python | Apache-2.0 | 5c1f999c156b420043be7efdd472c8e31096bfb5 | 2026-01-05T07:11:51.519046Z | false |
roostorg/osprey | https://github.com/roostorg/osprey/blob/5c1f999c156b420043be7efdd472c8e31096bfb5/osprey_rpc/src/osprey/rpc/common/v1/verdicts_pb2.py | osprey_rpc/src/osprey/rpc/common/v1/verdicts_pb2.py | # -*- coding: utf-8 -*-
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: osprey/rpc/common/v1/verdicts.proto
"""Generated protocol buffer code."""
from google.protobuf.internal import builder as _builder
from google.protobuf import descriptor as _descriptor
from google.protobuf import descriptor_poo... | python | Apache-2.0 | 5c1f999c156b420043be7efdd472c8e31096bfb5 | 2026-01-05T07:11:51.519046Z | false |
roostorg/osprey | https://github.com/roostorg/osprey/blob/5c1f999c156b420043be7efdd472c8e31096bfb5/osprey_rpc/src/osprey/rpc/common/v1/take_data_pb2.py | osprey_rpc/src/osprey/rpc/common/v1/take_data_pb2.py | # -*- coding: utf-8 -*-
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: osprey/rpc/common/v1/take_data.proto
"""Generated protocol buffer code."""
from google.protobuf.internal import builder as _builder
from google.protobuf import descriptor as _descriptor
from google.protobuf import descriptor_po... | python | Apache-2.0 | 5c1f999c156b420043be7efdd472c8e31096bfb5 | 2026-01-05T07:11:51.519046Z | false |
roostorg/osprey | https://github.com/roostorg/osprey/blob/5c1f999c156b420043be7efdd472c8e31096bfb5/osprey_rpc/src/osprey/rpc/pigeon/__init__.py | osprey_rpc/src/osprey/rpc/pigeon/__init__.py | python | Apache-2.0 | 5c1f999c156b420043be7efdd472c8e31096bfb5 | 2026-01-05T07:11:51.519046Z | false | |
roostorg/osprey | https://github.com/roostorg/osprey/blob/5c1f999c156b420043be7efdd472c8e31096bfb5/osprey_rpc/src/osprey/rpc/pigeon/tests/__init__.py | osprey_rpc/src/osprey/rpc/pigeon/tests/__init__.py | python | Apache-2.0 | 5c1f999c156b420043be7efdd472c8e31096bfb5 | 2026-01-05T07:11:51.519046Z | false | |
roostorg/osprey | https://github.com/roostorg/osprey/blob/5c1f999c156b420043be7efdd472c8e31096bfb5/osprey_rpc/src/osprey/rpc/pigeon/tests/v1/tests_pb2_grpc.py | osprey_rpc/src/osprey/rpc/pigeon/tests/v1/tests_pb2_grpc.py | # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT!
"""Client and server classes corresponding to protobuf-defined services."""
import grpc
from osprey.rpc.pigeon.tests.v1 import tests_pb2 as osprey_dot_rpc_dot_pigeon_dot_tests_dot_v1_dot_tests__pb2
class TestServiceStub(object):
"""Missing ass... | python | Apache-2.0 | 5c1f999c156b420043be7efdd472c8e31096bfb5 | 2026-01-05T07:11:51.519046Z | false |
roostorg/osprey | https://github.com/roostorg/osprey/blob/5c1f999c156b420043be7efdd472c8e31096bfb5/osprey_rpc/src/osprey/rpc/pigeon/tests/v1/tests_pb2.py | osprey_rpc/src/osprey/rpc/pigeon/tests/v1/tests_pb2.py | # -*- coding: utf-8 -*-
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: osprey/rpc/pigeon/tests/v1/tests.proto
"""Generated protocol buffer code."""
from google.protobuf.internal import builder as _builder
from google.protobuf import descriptor as _descriptor
from google.protobuf import descriptor_... | python | Apache-2.0 | 5c1f999c156b420043be7efdd472c8e31096bfb5 | 2026-01-05T07:11:51.519046Z | false |
roostorg/osprey | https://github.com/roostorg/osprey/blob/5c1f999c156b420043be7efdd472c8e31096bfb5/osprey_rpc/src/osprey/rpc/pigeon/tests/v1/__init__.py | osprey_rpc/src/osprey/rpc/pigeon/tests/v1/__init__.py | python | Apache-2.0 | 5c1f999c156b420043be7efdd472c8e31096bfb5 | 2026-01-05T07:11:51.519046Z | false | |
roostorg/osprey | https://github.com/roostorg/osprey/blob/5c1f999c156b420043be7efdd472c8e31096bfb5/osprey_rpc/src/osprey/rpc/pigeon/v1/options_pb2.py | osprey_rpc/src/osprey/rpc/pigeon/v1/options_pb2.py | # -*- coding: utf-8 -*-
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: osprey/rpc/pigeon/v1/options.proto
"""Generated protocol buffer code."""
from google.protobuf.internal import builder as _builder
from google.protobuf import descriptor as _descriptor
from google.protobuf import descriptor_pool... | python | Apache-2.0 | 5c1f999c156b420043be7efdd472c8e31096bfb5 | 2026-01-05T07:11:51.519046Z | false |
roostorg/osprey | https://github.com/roostorg/osprey/blob/5c1f999c156b420043be7efdd472c8e31096bfb5/osprey_rpc/src/osprey/rpc/pigeon/v1/options_pb2_grpc.py | osprey_rpc/src/osprey/rpc/pigeon/v1/options_pb2_grpc.py | # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT!
"""Client and server classes corresponding to protobuf-defined services."""
import grpc
| python | Apache-2.0 | 5c1f999c156b420043be7efdd472c8e31096bfb5 | 2026-01-05T07:11:51.519046Z | false |
roostorg/osprey | https://github.com/roostorg/osprey/blob/5c1f999c156b420043be7efdd472c8e31096bfb5/osprey_rpc/src/osprey/rpc/pigeon/v1/__init__.py | osprey_rpc/src/osprey/rpc/pigeon/v1/__init__.py | python | Apache-2.0 | 5c1f999c156b420043be7efdd472c8e31096bfb5 | 2026-01-05T07:11:51.519046Z | false | |
roostorg/osprey | https://github.com/roostorg/osprey/blob/5c1f999c156b420043be7efdd472c8e31096bfb5/osprey_rpc/src/osprey/rpc/request_caching/__init__.py | osprey_rpc/src/osprey/rpc/request_caching/__init__.py | python | Apache-2.0 | 5c1f999c156b420043be7efdd472c8e31096bfb5 | 2026-01-05T07:11:51.519046Z | false | |
roostorg/osprey | https://github.com/roostorg/osprey/blob/5c1f999c156b420043be7efdd472c8e31096bfb5/osprey_rpc/src/osprey/rpc/request_caching/v1/service_pb2_grpc.py | osprey_rpc/src/osprey/rpc/request_caching/v1/service_pb2_grpc.py | # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT!
"""Client and server classes corresponding to protobuf-defined services."""
import grpc
from osprey.rpc.request_caching.v1 import service_pb2 as osprey_dot_rpc_dot_request__caching_dot_v1_dot_service__pb2
class RequestCachingServiceStub(object):
... | python | Apache-2.0 | 5c1f999c156b420043be7efdd472c8e31096bfb5 | 2026-01-05T07:11:51.519046Z | false |
roostorg/osprey | https://github.com/roostorg/osprey/blob/5c1f999c156b420043be7efdd472c8e31096bfb5/osprey_rpc/src/osprey/rpc/request_caching/v1/service_pb2.py | osprey_rpc/src/osprey/rpc/request_caching/v1/service_pb2.py | # -*- coding: utf-8 -*-
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: osprey/rpc/request_caching/v1/service.proto
"""Generated protocol buffer code."""
from google.protobuf.internal import builder as _builder
from google.protobuf import descriptor as _descriptor
from google.protobuf import descri... | python | Apache-2.0 | 5c1f999c156b420043be7efdd472c8e31096bfb5 | 2026-01-05T07:11:51.519046Z | false |
roostorg/osprey | https://github.com/roostorg/osprey/blob/5c1f999c156b420043be7efdd472c8e31096bfb5/osprey_rpc/src/osprey/rpc/request_caching/v1/__init__.py | osprey_rpc/src/osprey/rpc/request_caching/v1/__init__.py | python | Apache-2.0 | 5c1f999c156b420043be7efdd472c8e31096bfb5 | 2026-01-05T07:11:51.519046Z | false | |
aras62/PIEPredict | https://github.com/aras62/PIEPredict/blob/473e43db0f65ffbff321355211337b13c22da7a9/pie_intent.py | pie_intent.py | """
The code implementation of the paper:
A. Rasouli, I. Kotseruba, T. Kunic, and J. Tsotsos, "PIE: A Large-Scale Dataset and Models for Pedestrian Intention Estimation and
Trajectory Prediction", ICCV 2019.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance... | python | Apache-2.0 | 473e43db0f65ffbff321355211337b13c22da7a9 | 2026-01-05T07:11:30.051368Z | true |
aras62/PIEPredict | https://github.com/aras62/PIEPredict/blob/473e43db0f65ffbff321355211337b13c22da7a9/pie_predict.py | pie_predict.py | """
The code implementation of the paper:
A. Rasouli, I. Kotseruba, T. Kunic, and J. Tsotsos, "PIE: A Large-Scale Dataset and Models for Pedestrian Intention Estimation and
Trajectory Prediction", ICCV 2019.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance... | python | Apache-2.0 | 473e43db0f65ffbff321355211337b13c22da7a9 | 2026-01-05T07:11:30.051368Z | false |
aras62/PIEPredict | https://github.com/aras62/PIEPredict/blob/473e43db0f65ffbff321355211337b13c22da7a9/utils.py | utils.py | """
The code implementation of the paper:
A. Rasouli, I. Kotseruba, T. Kunic, and J. Tsotsos, "PIE: A Large-Scale Dataset and Models for Pedestrian Intention Estimation and
Trajectory Prediction", ICCV 2019.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance... | python | Apache-2.0 | 473e43db0f65ffbff321355211337b13c22da7a9 | 2026-01-05T07:11:30.051368Z | false |
aras62/PIEPredict | https://github.com/aras62/PIEPredict/blob/473e43db0f65ffbff321355211337b13c22da7a9/train_test.py | train_test.py | """
The code implementation of the paper:
A. Rasouli, I. Kotseruba, T. Kunic, and J. Tsotsos, "PIE: A Large-Scale Dataset and Models for Pedestrian Intention Estimation and
Trajectory Prediction", ICCV 2019.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance... | python | Apache-2.0 | 473e43db0f65ffbff321355211337b13c22da7a9 | 2026-01-05T07:11:30.051368Z | false |
if-ai/ComfyUI-IF_LLM | https://github.com/if-ai/ComfyUI-IF_LLM/blob/5967d4f742e323a934dc6b2ff0276998ea26e73b/HF_api.py | HF_api.py | # HF_api.py
import aiohttp
import base64
import logging
import json
from typing import List, Union, Optional, Dict, Any
from huggingface_hub import InferenceClient
from io import BytesIO
import requests
from PIL import Image
logger = logging.getLogger(__name__)
async def send_huggingface_request(
base_ip: str,
... | python | MIT | 5967d4f742e323a934dc6b2ff0276998ea26e73b | 2026-01-05T07:11:51.696962Z | false |
if-ai/ComfyUI-IF_LLM | https://github.com/if-ai/ComfyUI-IF_LLM/blob/5967d4f742e323a934dc6b2ff0276998ea26e73b/IFLoadImagesNodeS.py | IFLoadImagesNodeS.py | # IFLoadImagesNode.py
import os
import re
import torch
import glob
import hashlib
import logging
import numpy as np
from PIL import Image, ImageOps, ImageSequence
import folder_paths
import shutil
from typing import Tuple, List, Dict, Optional
from server import PromptServer
from aiohttp import web
import json
logger ... | python | MIT | 5967d4f742e323a934dc6b2ff0276998ea26e73b | 2026-01-05T07:11:51.696962Z | false |
if-ai/ComfyUI-IF_LLM | https://github.com/if-ai/ComfyUI-IF_LLM/blob/5967d4f742e323a934dc6b2ff0276998ea26e73b/openai_api.py | openai_api.py | #openai_api.py
import aiohttp
import json
import logging
from typing import List, Union, Optional, Dict, Any
import asyncio
import requests
import base64
import os
logger = logging.getLogger(__name__)
async def create_openai_compatible_embedding(api_base: str, model: str, input: Union[str, List[str]], api_key: Option... | python | MIT | 5967d4f742e323a934dc6b2ff0276998ea26e73b | 2026-01-05T07:11:51.696962Z | false |
if-ai/ComfyUI-IF_LLM | https://github.com/if-ai/ComfyUI-IF_LLM/blob/5967d4f742e323a934dc6b2ff0276998ea26e73b/IFDisplayTextNode.py | IFDisplayTextNode.py | import sys
import logging
from typing import Optional, Union, List
# Initialize logger
logger = logging.getLogger(__name__)
class IFDisplayText:
def __init__(self):
self.type = "output"
@classmethod
def INPUT_TYPES(cls):
return {
"required": {
"text": (... | python | MIT | 5967d4f742e323a934dc6b2ff0276998ea26e73b | 2026-01-05T07:11:51.696962Z | false |
if-ai/ComfyUI-IF_LLM | https://github.com/if-ai/ComfyUI-IF_LLM/blob/5967d4f742e323a934dc6b2ff0276998ea26e73b/ListModelsNode.py | ListModelsNode.py | import os
import json
import folder_paths
from server import PromptServer
from aiohttp import web
from .utils import get_api_key, get_models
class ListModelsNode:
def __init__(self):
self.output_dir = os.path.join(folder_paths.base_path, "model_lists")
os.makedirs(self.output_dir, exist_ok=True)
... | python | MIT | 5967d4f742e323a934dc6b2ff0276998ea26e73b | 2026-01-05T07:11:51.696962Z | false |
if-ai/ComfyUI-IF_LLM | https://github.com/if-ai/ComfyUI-IF_LLM/blob/5967d4f742e323a934dc6b2ff0276998ea26e73b/IFJoinTextNode.py | IFJoinTextNode.py | class IFJoinText:
@classmethod
def INPUT_TYPES(cls):
return {
"required": {
"separator": ("STRING", {
"multiline": False,
"default": " ",
"placeholder": "Text to insert between joined strings"
}),
... | python | MIT | 5967d4f742e323a934dc6b2ff0276998ea26e73b | 2026-01-05T07:11:51.696962Z | false |
if-ai/ComfyUI-IF_LLM | https://github.com/if-ai/ComfyUI-IF_LLM/blob/5967d4f742e323a934dc6b2ff0276998ea26e73b/IFLLMJoinTextNode.py | IFLLMJoinTextNode.py | class IFJoinText:
@classmethod
def INPUT_TYPES(cls):
return {
"required": {
"separator": ("STRING", {
"multiline": False,
"default": " ",
"placeholder": "Text to insert between joined strings"
}),
... | python | MIT | 5967d4f742e323a934dc6b2ff0276998ea26e73b | 2026-01-05T07:11:51.696962Z | false |
if-ai/ComfyUI-IF_LLM | https://github.com/if-ai/ComfyUI-IF_LLM/blob/5967d4f742e323a934dc6b2ff0276998ea26e73b/IFLLMLoadImagesNodeS.py | IFLLMLoadImagesNodeS.py | # IFLoadImagesNode.py
import os
import re
import torch
import glob
import hashlib
import logging
import numpy as np
from PIL import Image, ImageOps, ImageSequence
import folder_paths
import shutil
from typing import Tuple, List, Dict, Optional
from server import PromptServer
from aiohttp import web
import json
logger ... | python | MIT | 5967d4f742e323a934dc6b2ff0276998ea26e73b | 2026-01-05T07:11:51.696962Z | false |
if-ai/ComfyUI-IF_LLM | https://github.com/if-ai/ComfyUI-IF_LLM/blob/5967d4f742e323a934dc6b2ff0276998ea26e73b/IFLLMDisplayOmniNode.py | IFLLMDisplayOmniNode.py | # IFDisplayOmniNode.py
import json
class IFDisplayOmni:
@classmethod
def INPUT_TYPES(s):
return {
"required": {},
"optional": {"omni_input": ("OMNI", {})},
"hidden": {"unique_id": "UNIQUE_ID", "extra_pnginfo": "EXTRA_PNGINFO"},
}
RETURN_TYPES = ("OMOST_C... | python | MIT | 5967d4f742e323a934dc6b2ff0276998ea26e73b | 2026-01-05T07:11:51.696962Z | false |
if-ai/ComfyUI-IF_LLM | https://github.com/if-ai/ComfyUI-IF_LLM/blob/5967d4f742e323a934dc6b2ff0276998ea26e73b/llamacpp_api.py | llamacpp_api.py | #llamacpp_api.py
import requests
import json
import base64
import aiohttp
import logging
from typing import List, Union, Optional, Dict, Any
import base64
import os
logger = logging.getLogger(__name__)
async def send_llama_cpp_request(api_url, base64_images, model, system_message, user_message, messages, seed,
... | python | MIT | 5967d4f742e323a934dc6b2ff0276998ea26e73b | 2026-01-05T07:11:51.696962Z | false |
if-ai/ComfyUI-IF_LLM | https://github.com/if-ai/ComfyUI-IF_LLM/blob/5967d4f742e323a934dc6b2ff0276998ea26e73b/huggingface_api.py | huggingface_api.py | # huggingface_api.py
import aiohttp
import json
import base64
import logging
from typing import List, Union, Optional, Dict, Any, Tuple
from huggingface_hub import InferenceClient
from PIL import Image
import io
logger = logging.getLogger(__name__)
def validate_huggingface_token(api_key: str) -> bool:
"""Validat... | python | MIT | 5967d4f742e323a934dc6b2ff0276998ea26e73b | 2026-01-05T07:11:51.696962Z | false |
if-ai/ComfyUI-IF_LLM | https://github.com/if-ai/ComfyUI-IF_LLM/blob/5967d4f742e323a934dc6b2ff0276998ea26e73b/kobold_api.py | kobold_api.py | #kobold_api.py
import aiohttp
import asyncio
import json
import logging
from typing import List, Union, Optional, Dict, Any
logger = logging.getLogger(__name__)
async def send_kobold_request(api_url, base64_images, model, system_message, user_message, messages, seed,
temperature, max_tok... | python | MIT | 5967d4f742e323a934dc6b2ff0276998ea26e73b | 2026-01-05T07:11:51.696962Z | false |
if-ai/ComfyUI-IF_LLM | https://github.com/if-ai/ComfyUI-IF_LLM/blob/5967d4f742e323a934dc6b2ff0276998ea26e73b/lms_api.py | lms_api.py | #lms_api.py
import requests
import json
from typing import List, Union, Optional
import aiohttp
import asyncio
import logging
logger = logging.getLogger(__name__)
def create_lmstudio_compatible_embedding(api_base: str, model: str, input: Union[str, List[str]], api_key: Optional[str] = None) -> List[float]:
"""
... | python | MIT | 5967d4f742e323a934dc6b2ff0276998ea26e73b | 2026-01-05T07:11:51.696962Z | false |
if-ai/ComfyUI-IF_LLM | https://github.com/if-ai/ComfyUI-IF_LLM/blob/5967d4f742e323a934dc6b2ff0276998ea26e73b/anthropic_api.py | anthropic_api.py | #anthropic_api.py
import requests
import io
import base64
import json
import logging
import asyncio
from anthropic import AsyncAnthropic
import logging
import aiohttp
logger = logging.getLogger(__name__)
async def send_anthropic_request(api_key, model, system_message, user_message, messages, temperature, max_tokens, ... | python | MIT | 5967d4f742e323a934dc6b2ff0276998ea26e73b | 2026-01-05T07:11:51.696962Z | false |
if-ai/ComfyUI-IF_LLM | https://github.com/if-ai/ComfyUI-IF_LLM/blob/5967d4f742e323a934dc6b2ff0276998ea26e73b/utils.py | utils.py | import os
import io
import re
import yaml
import json
import torch
import torchvision
import cv2
import base64
import logging
import datetime
import requests
import time
import numpy as np
from io import BytesIO
from aiohttp import web
from dotenv import load_dotenv
from PIL import Image, ImageOps, ImageSequence
from t... | python | MIT | 5967d4f742e323a934dc6b2ff0276998ea26e73b | 2026-01-05T07:11:51.696962Z | true |
if-ai/ComfyUI-IF_LLM | https://github.com/if-ai/ComfyUI-IF_LLM/blob/5967d4f742e323a934dc6b2ff0276998ea26e73b/IFTextTyperNode.py | IFTextTyperNode.py | class IFTextTyper:
@classmethod
def INPUT_TYPES(s):
return {
"required": {
"text": ("STRING", {"multiline": True})
}
}
RETURN_TYPES = ("STRING",)
FUNCTION = "output_text"
OUTPUT_NODE = True
CATEGORY = "ImpactFrames💥🎞️"
def outpu... | python | MIT | 5967d4f742e323a934dc6b2ff0276998ea26e73b | 2026-01-05T07:11:51.696962Z | false |
if-ai/ComfyUI-IF_LLM | https://github.com/if-ai/ComfyUI-IF_LLM/blob/5967d4f742e323a934dc6b2ff0276998ea26e73b/IFLLMTextTyperNode.py | IFLLMTextTyperNode.py | class IFTextTyper:
@classmethod
def INPUT_TYPES(s):
return {
"required": {
"text": ("STRING", {"multiline": True})
}
}
RETURN_TYPES = ("STRING",)
FUNCTION = "output_text"
OUTPUT_NODE = True
CATEGORY = "ImpactFrames💥🎞️/IF_LLM"
de... | python | MIT | 5967d4f742e323a934dc6b2ff0276998ea26e73b | 2026-01-05T07:11:51.696962Z | false |
if-ai/ComfyUI-IF_LLM | https://github.com/if-ai/ComfyUI-IF_LLM/blob/5967d4f742e323a934dc6b2ff0276998ea26e73b/__init__.py | __init__.py | import os
import sys
# Add parent directory to path
current_dir = os.path.dirname(os.path.abspath(__file__))
parent_dir = os.path.dirname(current_dir)
if parent_dir not in sys.path:
sys.path.insert(0, parent_dir)
# Now import folder_paths
import folder_paths
# Then import your other modules
from .IFLLMNode impor... | python | MIT | 5967d4f742e323a934dc6b2ff0276998ea26e73b | 2026-01-05T07:11:51.696962Z | false |
if-ai/ComfyUI-IF_LLM | https://github.com/if-ai/ComfyUI-IF_LLM/blob/5967d4f742e323a934dc6b2ff0276998ea26e73b/ollama_api.py | ollama_api.py | #ollama_api.py
import aiohttp
import asyncio
import json
import requests
from typing import List, Union
import logging
logger = logging.getLogger(__name__)
async def create_ollama_embedding(api_base: str, model: str, prompt: Union[str, List[str]]) -> List[float]:
"""
Create embeddings using Ollama with the RES... | python | MIT | 5967d4f742e323a934dc6b2ff0276998ea26e73b | 2026-01-05T07:11:51.696962Z | false |
if-ai/ComfyUI-IF_LLM | https://github.com/if-ai/ComfyUI-IF_LLM/blob/5967d4f742e323a934dc6b2ff0276998ea26e73b/transformers_api.py | transformers_api.py | # transformers_api.py
from transformers import (
Qwen2VLForConditionalGeneration,
Qwen2VLProcessor,
Qwen2_5_VLForConditionalGeneration,
Qwen2_5_VLProcessor,
AutoConfig,
AutoModelForCausalLM,
AutoProcessor,
BitsAndBytesConfig,
GenerationConfig,
StoppingCriteria,
StoppingCrit... | python | MIT | 5967d4f742e323a934dc6b2ff0276998ea26e73b | 2026-01-05T07:11:51.696962Z | true |
if-ai/ComfyUI-IF_LLM | https://github.com/if-ai/ComfyUI-IF_LLM/blob/5967d4f742e323a934dc6b2ff0276998ea26e73b/textgen_api.py | textgen_api.py | #textgen_api.py
import requests
import json
from typing import List, Union, Optional
import aiohttp
import asyncio
import logging
logger = logging.getLogger(__name__)
def create_openai_compatible_embedding(api_base: str, model: str, input: Union[str, List[str]], api_key: Optional[str] = None) -> List[float]:
"""
... | python | MIT | 5967d4f742e323a934dc6b2ff0276998ea26e73b | 2026-01-05T07:11:51.696962Z | false |
if-ai/ComfyUI-IF_LLM | https://github.com/if-ai/ComfyUI-IF_LLM/blob/5967d4f742e323a934dc6b2ff0276998ea26e73b/deepseek_api.py | deepseek_api.py | #deepseek_api.py
import aiohttp
import json
import logging
from typing import List, Union, Optional, Dict, Any
logger = logging.getLogger(__name__)
async def send_deepseek_request(
base64_images: Optional[List[str]], # Kept for interface compatibility but won't be used
model: str,
system_message: str,
... | python | MIT | 5967d4f742e323a934dc6b2ff0276998ea26e73b | 2026-01-05T07:11:51.696962Z | false |
if-ai/ComfyUI-IF_LLM | https://github.com/if-ai/ComfyUI-IF_LLM/blob/5967d4f742e323a934dc6b2ff0276998ea26e73b/IFSaveTextNode.py | IFSaveTextNode.py | import os
import csv
import json
import folder_paths
import uuid
class IFSaveText:
def __init__(self):
pass
@classmethod
def INPUT_TYPES(cls):
return {
"required": {
"question_input": ("STRING", {"forceInput": True}),
"response_input": ("STRING",... | python | MIT | 5967d4f742e323a934dc6b2ff0276998ea26e73b | 2026-01-05T07:11:51.696962Z | false |
if-ai/ComfyUI-IF_LLM | https://github.com/if-ai/ComfyUI-IF_LLM/blob/5967d4f742e323a934dc6b2ff0276998ea26e73b/IFLLMNode.py | IFLLMNode.py | # IFLLMNode.py
import os
import sys
import json
import torch
import asyncio
import requests
from PIL import Image
from io import BytesIO
import tempfile
import time
from typing import List, Dict, Any, Optional, Union, Tuple
from pathlib import Path
from .send_request import send_request
from .utils import (
get_api... | python | MIT | 5967d4f742e323a934dc6b2ff0276998ea26e73b | 2026-01-05T07:11:51.696962Z | true |
if-ai/ComfyUI-IF_LLM | https://github.com/if-ai/ComfyUI-IF_LLM/blob/5967d4f742e323a934dc6b2ff0276998ea26e73b/xai_api.py | xai_api.py | #xai_api.py
import aiohttp
import json
import logging
from typing import List, Union, Optional, Dict, Any
import asyncio
import requests
import base64
import os
logger = logging.getLogger(__name__)
async def create_xai_compatible_embedding(api_base: str, model: str, input: Union[str, List[str]], api_key: Optional[str... | python | MIT | 5967d4f742e323a934dc6b2ff0276998ea26e73b | 2026-01-05T07:11:51.696962Z | false |
if-ai/ComfyUI-IF_LLM | https://github.com/if-ai/ComfyUI-IF_LLM/blob/5967d4f742e323a934dc6b2ff0276998ea26e73b/mistral_api.py | mistral_api.py | #mistral_api.py
import aiohttp
import asyncio
import json
from typing import List, Union, Optional
import requests
import logging
from mistralai import Mistral
#import base64
#import os
# Configure logging
logger = logging.getLogger(__name__)
logger.setLevel(logging.DEBUG) # Set to DEBUG for detailed logs
handler = l... | python | MIT | 5967d4f742e323a934dc6b2ff0276998ea26e73b | 2026-01-05T07:11:51.696962Z | false |
if-ai/ComfyUI-IF_LLM | https://github.com/if-ai/ComfyUI-IF_LLM/blob/5967d4f742e323a934dc6b2ff0276998ea26e73b/agent_tool.py | agent_tool.py | from typing import Dict, Any
import importlib.util
import folder_paths
import os
import sys
class AgentTool:
def __init__(self, name, description, system_prompt, default_engine, default_model,
default_temperature, default_max_tokens, python_class, python_function=None, output_type=None):
... | python | MIT | 5967d4f742e323a934dc6b2ff0276998ea26e73b | 2026-01-05T07:11:51.696962Z | false |
if-ai/ComfyUI-IF_LLM | https://github.com/if-ai/ComfyUI-IF_LLM/blob/5967d4f742e323a934dc6b2ff0276998ea26e73b/IFDisplayOmniNode.py | IFDisplayOmniNode.py | import json
class IFDisplayOmni:
@classmethod
def INPUT_TYPES(s):
return {
"required": {},
"optional": {"omni_input": ("OMNI", {})},
"hidden": {"unique_id": "UNIQUE_ID", "extra_pnginfo": "EXTRA_PNGINFO"},
}
RETURN_TYPES = ("OMOST_CANVAS_CONDITIONING", "S... | python | MIT | 5967d4f742e323a934dc6b2ff0276998ea26e73b | 2026-01-05T07:11:51.696962Z | false |
if-ai/ComfyUI-IF_LLM | https://github.com/if-ai/ComfyUI-IF_LLM/blob/5967d4f742e323a934dc6b2ff0276998ea26e73b/gemini_api.py | gemini_api.py | # gemini_api.py
import aiohttp
import json
import logging
import asyncio
logger = logging.getLogger(__name__)
async def send_gemini_request(base64_images, model, system_message, user_message, messages,
temperature, max_tokens, top_k, top_p, stop, api_key,
tool... | python | MIT | 5967d4f742e323a934dc6b2ff0276998ea26e73b | 2026-01-05T07:11:51.696962Z | false |
if-ai/ComfyUI-IF_LLM | https://github.com/if-ai/ComfyUI-IF_LLM/blob/5967d4f742e323a934dc6b2ff0276998ea26e73b/IFLLMDisplayTextNode.py | IFLLMDisplayTextNode.py | import sys
import logging
from typing import Optional, Union, List
# Initialize logger
logger = logging.getLogger(__name__)
class IFDisplayText:
def __init__(self):
self.type = "output"
@classmethod
def INPUT_TYPES(cls):
return {
"required": {
"text": (... | python | MIT | 5967d4f742e323a934dc6b2ff0276998ea26e73b | 2026-01-05T07:11:51.696962Z | false |
if-ai/ComfyUI-IF_LLM | https://github.com/if-ai/ComfyUI-IF_LLM/blob/5967d4f742e323a934dc6b2ff0276998ea26e73b/groq_api.py | groq_api.py | # groq_api.py
import os
import json
import logging
from typing import List, Union, Optional, Dict, Any
import asyncio
import base64
import aiohttp
from groq import AsyncGroq, GroqError
logger = logging.getLogger(__name__)
logging.basicConfig(level=logging.DEBUG)
# Initialize the AsyncGroq client with your API key
a... | python | MIT | 5967d4f742e323a934dc6b2ff0276998ea26e73b | 2026-01-05T07:11:51.696962Z | false |
if-ai/ComfyUI-IF_LLM | https://github.com/if-ai/ComfyUI-IF_LLM/blob/5967d4f742e323a934dc6b2ff0276998ea26e73b/IFDisplayTextWildcardNode.py | IFDisplayTextWildcardNode.py | #IFDisplayTextWildcardNode.py
import os
import sys
import yaml
import json
import random
import re
import itertools
import threading
import traceback
from pathlib import Path
import folder_paths
from execution import ExecutionBlocker
from typing import Optional, Union, List
class IFDisplayTextWildcard:
def __init_... | python | MIT | 5967d4f742e323a934dc6b2ff0276998ea26e73b | 2026-01-05T07:11:51.696962Z | false |
if-ai/ComfyUI-IF_LLM | https://github.com/if-ai/ComfyUI-IF_LLM/blob/5967d4f742e323a934dc6b2ff0276998ea26e73b/omost.py | omost.py | import sys
import os
from typing import Dict, Any, List
import json
import asyncio
# Add the current directory to sys.path
current_dir = os.path.dirname(os.path.abspath(__file__))
if current_dir not in sys.path:
sys.path.insert(0, current_dir)
# Add the 'lib_omost' directory to sys.path
lib_omost_dir = os.path.jo... | python | MIT | 5967d4f742e323a934dc6b2ff0276998ea26e73b | 2026-01-05T07:11:51.696962Z | false |
if-ai/ComfyUI-IF_LLM | https://github.com/if-ai/ComfyUI-IF_LLM/blob/5967d4f742e323a934dc6b2ff0276998ea26e73b/send_request.py | send_request.py | #send_request.py
import aiohttp
import asyncio
import json
import logging
from typing import List, Union, Optional, Dict, Any
#from json_repair import repair_json
import os
import folder_paths
import base64
from PIL import Image
import torch
# Existing imports
from .anthropic_api import send_anthropic_request
from .ol... | python | MIT | 5967d4f742e323a934dc6b2ff0276998ea26e73b | 2026-01-05T07:11:51.696962Z | false |
if-ai/ComfyUI-IF_LLM | https://github.com/if-ai/ComfyUI-IF_LLM/blob/5967d4f742e323a934dc6b2ff0276998ea26e73b/IFLLMSaveTextNode.py | IFLLMSaveTextNode.py | import os
import csv
import json
import folder_paths
import uuid
class IFSaveText:
def __init__(self):
pass
@classmethod
def INPUT_TYPES(cls):
return {
"required": {
"question_input": ("STRING", {"forceInput": True}),
"response_input": ("STRING",... | python | MIT | 5967d4f742e323a934dc6b2ff0276998ea26e73b | 2026-01-05T07:11:51.696962Z | false |
if-ai/ComfyUI-IF_LLM | https://github.com/if-ai/ComfyUI-IF_LLM/blob/5967d4f742e323a934dc6b2ff0276998ea26e73b/vllm_api.py | vllm_api.py | import requests
import json
def send_vllm_request(api_url, base64_image, model, system_message, user_message, messages, seed,
temperature, max_tokens, top_k, top_p, repeat_penalty, stop, api_key,
tools=None, tool_choice=None):
headers = {
"Content-Type": "applic... | python | MIT | 5967d4f742e323a934dc6b2ff0276998ea26e73b | 2026-01-05T07:11:51.696962Z | false |
if-ai/ComfyUI-IF_LLM | https://github.com/if-ai/ComfyUI-IF_LLM/blob/5967d4f742e323a934dc6b2ff0276998ea26e73b/lib_omost/greedy_encode.py | lib_omost/greedy_encode.py | from __future__ import annotations
import logging
import torch
from typing import Callable, NamedTuple, TypedDict
class SpecialTokens(TypedDict):
start: int
end: int
pad: int
class CLIPTokens(NamedTuple):
clip_l_tokens: list[int]
clip_g_tokens: list[int] | None = None
@classmethod
def e... | python | MIT | 5967d4f742e323a934dc6b2ff0276998ea26e73b | 2026-01-05T07:11:51.696962Z | false |
if-ai/ComfyUI-IF_LLM | https://github.com/if-ai/ComfyUI-IF_LLM/blob/5967d4f742e323a934dc6b2ff0276998ea26e73b/lib_omost/utils.py | lib_omost/utils.py | from contextlib import contextmanager
import torch
import numpy as np
@torch.inference_mode()
def numpy2pytorch(imgs: list[np.ndarray]):
"""Convert a list of numpy images to a pytorch tensor.
Input: images in list[[H, W, C]] format.
Output: images in [B, H, W, C] format.
Note: ComfyUI expects [B, H,... | python | MIT | 5967d4f742e323a934dc6b2ff0276998ea26e73b | 2026-01-05T07:11:51.696962Z | false |
if-ai/ComfyUI-IF_LLM | https://github.com/if-ai/ComfyUI-IF_LLM/blob/5967d4f742e323a934dc6b2ff0276998ea26e73b/lib_omost/__init__.py | lib_omost/__init__.py | python | MIT | 5967d4f742e323a934dc6b2ff0276998ea26e73b | 2026-01-05T07:11:51.696962Z | false | |
if-ai/ComfyUI-IF_LLM | https://github.com/if-ai/ComfyUI-IF_LLM/blob/5967d4f742e323a934dc6b2ff0276998ea26e73b/lib_omost/canvas.py | lib_omost/canvas.py | from __future__ import annotations
import re
import difflib
import torch
import numpy as np
from typing import TypedDict
system_prompt = r"""You are a helpful AI assistant to compose images using the below python class `Canvas`:
```python
class Canvas:
def set_global_description(self, description: str, detailed_... | python | MIT | 5967d4f742e323a934dc6b2ff0276998ea26e73b | 2026-01-05T07:11:51.696962Z | false |
HashNuke/Python-Arduino-Prototyping-API | https://github.com/HashNuke/Python-Arduino-Prototyping-API/blob/54c792f974ebe2b985efbfba3a527d83921b1097/sample_blink.py | sample_blink.py | #import the lib
from arduino import Arduino
import time
#specify the port as an argument
my_board = Arduino('/dev/ttyUSB0')
#declare output pins as a list/tuple
my_board.output([11,12,13])
#perform operations
i=0
while(i<10):
my_board.setHigh(13)
time.sleep(1)
my_board.setLow(13)
time.sleep(1)
i... | python | MIT | 54c792f974ebe2b985efbfba3a527d83921b1097 | 2026-01-05T07:11:56.740976Z | false |
HashNuke/Python-Arduino-Prototyping-API | https://github.com/HashNuke/Python-Arduino-Prototyping-API/blob/54c792f974ebe2b985efbfba3a527d83921b1097/arduino/arduino.py | arduino/arduino.py | #!/usr/bin/env python
import serial, time
class Arduino(object):
__OUTPUT_PINS = -1
def __init__(self, port, baudrate=115200):
self.serial = serial.Serial(port, baudrate)
def __str__(self):
return "Arduino is on port %s at %d baudrate" %(self.serial.port, self.serial.baudrate)
def ... | python | MIT | 54c792f974ebe2b985efbfba3a527d83921b1097 | 2026-01-05T07:11:56.740976Z | false |
HashNuke/Python-Arduino-Prototyping-API | https://github.com/HashNuke/Python-Arduino-Prototyping-API/blob/54c792f974ebe2b985efbfba3a527d83921b1097/arduino/__init__.py | arduino/__init__.py | #!/usr/bin/env python
VERSION = '0.5'
from arduino import *
| python | MIT | 54c792f974ebe2b985efbfba3a527d83921b1097 | 2026-01-05T07:11:56.740976Z | false |
tamentis/rpdb | https://github.com/tamentis/rpdb/blob/13402a8fcb7207d57f73c2c561e1b07729a85950/rpdb/ports.py | rpdb/ports.py | import socket
def is_port_in_use(host, port):
"""Check if a port is in use by attempting to connect to it.
This is less intrusive than binding to the port.
"""
with socket.socket(socket.AF_INET, socket.SOCK_STREAM) as s:
s.settimeout(0.2) # Short timeout for quick check
try:
... | python | BSD-2-Clause | 13402a8fcb7207d57f73c2c561e1b07729a85950 | 2026-01-05T07:11:57.417032Z | false |
tamentis/rpdb | https://github.com/tamentis/rpdb/blob/13402a8fcb7207d57f73c2c561e1b07729a85950/rpdb/__init__.py | rpdb/__init__.py | """Remote Python Debugger (pdb wrapper)."""
__author__ = "Bertrand Janin <b@janin.com>"
__version__ = "0.2.0"
from contextlib import contextmanager
import pdb
import socket
import threading
import signal
import sys
import time
import traceback
import os
import typing as t
from functools import partial
from .ports im... | python | BSD-2-Clause | 13402a8fcb7207d57f73c2c561e1b07729a85950 | 2026-01-05T07:11:57.417032Z | false |
pyet-org/pyet | https://github.com/pyet-org/pyet/blob/2e857fe5dcc7cfe8d1ef990156dd6f153769de7b/pyet/version.py | pyet/version.py | # This is the only location where the version will be written and changed.
# Based on https://packaging.python.org/single_source_version/
__version__ = "1.4.0"
| python | MIT | 2e857fe5dcc7cfe8d1ef990156dd6f153769de7b | 2026-01-05T07:11:19.888488Z | false |
pyet-org/pyet | https://github.com/pyet-org/pyet/blob/2e857fe5dcc7cfe8d1ef990156dd6f153769de7b/pyet/temperature.py | pyet/temperature.py | """The temperature module contains functions of temperature PET methods.
"""
from numpy import exp, pi, asarray, newaxis
from pandas import date_range
from xarray import DataArray
from .meteo_utils import daylight_hours, calc_ea, calc_es, calc_e0
from .utils import get_index, check_lat, clip_zeros, check_rh, pet_out... | python | MIT | 2e857fe5dcc7cfe8d1ef990156dd6f153769de7b | 2026-01-05T07:11:19.888488Z | false |
pyet-org/pyet | https://github.com/pyet-org/pyet/blob/2e857fe5dcc7cfe8d1ef990156dd6f153769de7b/pyet/combination.py | pyet/combination.py | """The combination module contains functions of combination PE methods
"""
import pandas
from numpy import exp, newaxis
from .meteo_utils import (
calc_lambda,
calc_press,
calc_psy,
calc_vpc,
calc_ea,
calc_es,
calc_rho,
calc_res_surf,
calc_res_aero,
day_of_year,
)
from .radia... | python | MIT | 2e857fe5dcc7cfe8d1ef990156dd6f153769de7b | 2026-01-05T07:11:19.888488Z | true |
pyet-org/pyet | https://github.com/pyet-org/pyet/blob/2e857fe5dcc7cfe8d1ef990156dd6f153769de7b/pyet/meteo_utils.py | pyet/meteo_utils.py | """The meteo_utils module contains utility functions for meteorological data.
"""
from numpy import arccos, clip, cos, exp, isnan, log, nanmax, pi, sin, tan, where
from pandas import Series, to_numeric
from xarray import DataArray
# Specific heat of air [MJ kg-1 °C-1]
CP = 1.013 * 10**-3
def calc_psy(pressure, tme... | python | MIT | 2e857fe5dcc7cfe8d1ef990156dd6f153769de7b | 2026-01-05T07:11:19.888488Z | false |
pyet-org/pyet | https://github.com/pyet-org/pyet/blob/2e857fe5dcc7cfe8d1ef990156dd6f153769de7b/pyet/utils.py | pyet/utils.py | import numpy
from pandas import Series, DatetimeIndex
from xarray import DataArray
def show_versions():
"""Method to print the version of dependencies."""
from pyet import __version__ as ps_version
from pandas import __version__ as pd_version
from numpy import __version__ as np_version
from sys im... | python | MIT | 2e857fe5dcc7cfe8d1ef990156dd6f153769de7b | 2026-01-05T07:11:19.888488Z | false |
pyet-org/pyet | https://github.com/pyet-org/pyet/blob/2e857fe5dcc7cfe8d1ef990156dd6f153769de7b/pyet/__init__.py | pyet/__init__.py | from .combination import (
penman,
pm_asce,
pm,
pm_fao56,
priestley_taylor,
kimberly_penman,
thom_oliver,
calculate_all,
)
from .temperature import blaney_criddle, haude, hamon, romanenko, linacre
from .radiation import (
turc,
jensen_haise,
mcguinness_bordne,
hargreaves,... | python | MIT | 2e857fe5dcc7cfe8d1ef990156dd6f153769de7b | 2026-01-05T07:11:19.888488Z | false |
pyet-org/pyet | https://github.com/pyet-org/pyet/blob/2e857fe5dcc7cfe8d1ef990156dd6f153769de7b/pyet/radiation.py | pyet/radiation.py | """The radiation module contains functions of radiation PET methods
"""
from numpy import sqrt, log
from xarray import DataArray
from pandas import Series
from .meteo_utils import extraterrestrial_r, calc_press, calc_psy, calc_vpc, calc_lambda
from .utils import get_index, check_rad, clip_zeros, pet_out, check_rh
d... | python | MIT | 2e857fe5dcc7cfe8d1ef990156dd6f153769de7b | 2026-01-05T07:11:19.888488Z | false |
pyet-org/pyet | https://github.com/pyet-org/pyet/blob/2e857fe5dcc7cfe8d1ef990156dd6f153769de7b/pyet/rad_utils.py | pyet/rad_utils.py | """The rad_utils module contains utility functions for radiation data.
"""
from numpy import clip, newaxis, sqrt
from pandas import Series
from xarray import DataArray
from .meteo_utils import calc_ea, daylight_hours, extraterrestrial_r
from .utils import check_rad, get_index, vectorize
# Stefan Boltzmann constant ... | python | MIT | 2e857fe5dcc7cfe8d1ef990156dd6f153769de7b | 2026-01-05T07:11:19.888488Z | false |
pyet-org/pyet | https://github.com/pyet-org/pyet/blob/2e857fe5dcc7cfe8d1ef990156dd6f153769de7b/tests/testfao56.py | tests/testfao56.py | import unittest
from numpy import pi, array, full, testing
from pandas import date_range, DatetimeIndex, Series
from xarray import DataArray, Dataset
import pyet as et
class TestFAO56(unittest.TestCase):
def test_press_calc(self):
# Based on Example 2 and 4, p. 32 FAO.
elevation_s = Series(
... | python | MIT | 2e857fe5dcc7cfe8d1ef990156dd6f153769de7b | 2026-01-05T07:11:19.888488Z | false |
pyet-org/pyet | https://github.com/pyet-org/pyet/blob/2e857fe5dcc7cfe8d1ef990156dd6f153769de7b/tests/__init__.py | tests/__init__.py |
from tests import testfao56
from tests import testalternative
from tests import test_all
| python | MIT | 2e857fe5dcc7cfe8d1ef990156dd6f153769de7b | 2026-01-05T07:11:19.888488Z | false |
pyet-org/pyet | https://github.com/pyet-org/pyet/blob/2e857fe5dcc7cfe8d1ef990156dd6f153769de7b/tests/test_rpackage.py | tests/test_rpackage.py | import unittest
from numpy import full, log, tile, newaxis, asarray
import pandas as pd
from xarray import DataArray, testing
import pyet as et
class Testr(unittest.TestCase):
lat = -0.6095
elevation = 48
tmax = pd.Series(
[28.8, 27.4, 29.0, 26.3, 32.7, 35.7, 33.8, 33.8, 35.6, 27.5],
in... | python | MIT | 2e857fe5dcc7cfe8d1ef990156dd6f153769de7b | 2026-01-05T07:11:19.888488Z | false |
pyet-org/pyet | https://github.com/pyet-org/pyet/blob/2e857fe5dcc7cfe8d1ef990156dd6f153769de7b/tests/test_all.py | tests/test_all.py | """This file tests all methods for a minimal functioning."""
import unittest
import numpy as np
import pandas as pd
import pyet as et
tmean = pd.Series(data=20 * np.sin(np.linspace(0, 1, 365) * 2 * np.pi),
index=pd.date_range("2001-01-01", "2001-12-31", freq="D"))
tmax = tmean + 2
tmin = tmean - 2
... | python | MIT | 2e857fe5dcc7cfe8d1ef990156dd6f153769de7b | 2026-01-05T07:11:19.888488Z | false |
pyet-org/pyet | https://github.com/pyet-org/pyet/blob/2e857fe5dcc7cfe8d1ef990156dd6f153769de7b/tests/testalternative.py | tests/testalternative.py | import unittest
from numpy import full, pi
from pandas import Series, DatetimeIndex, date_range
from xarray import testing, DataArray
import pyet as et
class Testalternative(unittest.TestCase):
def test_hargreaves(self):
# Based on example S19.46,p 78 TestFAO56
tmax = Series([26.6], index=Dateti... | python | MIT | 2e857fe5dcc7cfe8d1ef990156dd6f153769de7b | 2026-01-05T07:11:19.888488Z | false |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.