repo_id
stringclasses
409 values
prefix
large_stringlengths
34
36.3k
target
large_stringlengths
1
498
assertion_type
stringclasses
31 values
difficulty
stringclasses
8 values
test_file
stringlengths
10
121
test_function
stringlengths
1
104
test_class
stringlengths
0
51
lineno
int32
2
11.3k
commit_idx
int32
jamwithai/production-agentic-rag-course
import pytest from fastapi.testclient import TestClient from unittest.mock import AsyncMock, Mock from src.main import app from src.services.agents.agentic_rag import AgenticRAGService from src import dependencies def mock_agentic_rag_service(): """Mock AgenticRAGService for API testing.""" service = Mock(spe...
1
assert
numeric_literal
tests/api/routers/test_agentic_ask.py
test_ask_agentic_success
TestAgenticAskEndpoint
76
null
jamwithai/production-agentic-rag-course
import asyncio import time from pathlib import Path from unittest.mock import AsyncMock, MagicMock, patch import pytest from src.exceptions import MetadataFetchingException, PipelineException from src.schemas.arxiv.paper import ArxivPaper from src.schemas.pdf_parser.models import ParserType, PdfContent from src.servic...
2
assert
numeric_literal
tests/unit/services/test_metadata_fetcher.py
test_metadata_fetcher_initialization
TestMetadataFetcher
75
null
jamwithai/production-agentic-rag-course
import pytest from unittest.mock import AsyncMock, Mock from langchain_core.messages import AIMessage, HumanMessage, ToolMessage from langgraph.runtime import Runtime from src.services.agents.nodes import ( ainvoke_retrieve_step, ainvoke_grade_documents_step, ainvoke_rewrite_query_step, ainvoke_generat...
None
assert
none_literal
tests/unit/services/agents/test_nodes.py
test_get_latest_context
TestNodeUtils
244
null
jamwithai/production-agentic-rag-course
import pytest from src.services.opensearch.query_builder import QueryBuilder def test_query_builder_with_categories(): builder = QueryBuilder(query="deep learning", categories=["cs.AI", "cs.LG"]) query = builder.build() bool_query = query["query"]["bool"] assert "filter" in
bool_query
assert
variable
tests/unit/services/test_opensearch_query_builder.py
test_query_builder_with_categories
30
null
jamwithai/production-agentic-rag-course
import pytest from pydantic import ValidationError from src.services.agents.models import ( GuardrailScoring, GradeDocuments, SourceItem, ToolArtefact, RoutingDecision, GradingResult, ReasoningStep, ) class TestSourceItem: def test_valid_source_item(self): """Test creating val...
2
assert
numeric_literal
tests/unit/services/agents/test_models.py
test_valid_source_item
TestSourceItem
82
null
jamwithai/production-agentic-rag-course
import asyncio import time from pathlib import Path from unittest.mock import AsyncMock, MagicMock, patch import pytest from src.exceptions import MetadataFetchingException, PipelineException from src.schemas.arxiv.paper import ArxivPaper from src.schemas.pdf_parser.models import ParserType, PdfContent from src.servic...
tmp_path
assert
variable
tests/unit/services/test_metadata_fetcher.py
test_metadata_fetcher_initialization
TestMetadataFetcher
74
null
jamwithai/production-agentic-rag-course
import os import pytest from src.config import Settings def test_settings_initialization(): """Test settings can be initialized.""" settings = Settings() assert settings.app_version ==
"0.1.0"
assert
string_literal
tests/unit/test_config.py
test_settings_initialization
11
null
jamwithai/production-agentic-rag-course
import pytest async def test_search_endpoint_with_categories(client): response = await client.post( "/api/v1/hybrid-search/", json={"query": "deep learning", "size": 5, "categories": ["cs.AI", "cs.LG"], "latest_papers": False, "use_hybrid": False}, ) assert response.status_code == 200 ...
"deep learning"
assert
string_literal
tests/api/routers/test_hybrid_search.py
test_search_endpoint_with_categories
41
null
jamwithai/production-agentic-rag-course
import pytest from src.services.opensearch.query_builder import QueryBuilder def test_query_builder_highlighting(): builder = QueryBuilder(query="test query") query = builder.build() highlight = query["highlight"] assert "fields" in highlight fields = highlight["fields"] assert "title" in fi...
150
assert
numeric_literal
tests/unit/services/test_opensearch_query_builder.py
test_query_builder_highlighting
81
null
jamwithai/production-agentic-rag-course
import pytest from pydantic import ValidationError from src.schemas.api.search import SearchHit, SearchRequest, SearchResponse def test_search_hit_creation(): """Test SearchHit creation.""" hit = SearchHit( arxiv_id="2024.12345v1", title="Test Paper", authors="John Doe, Jane Smith", ...
1.5
assert
numeric_literal
tests/unit/schemas/test_search.py
test_search_hit_creation
66
null
jamwithai/production-agentic-rag-course
import pytest from src.services.opensearch.query_builder import QueryBuilder def test_query_builder_latest_papers_sorting(): builder = QueryBuilder(query="neural networks", latest_papers=True) query = builder.build() assert "sort" in
query
assert
variable
tests/unit/services/test_opensearch_query_builder.py
test_query_builder_latest_papers_sorting
42
null
jamwithai/production-agentic-rag-course
import asyncio import time from pathlib import Path from unittest.mock import AsyncMock, MagicMock, patch import pytest from src.exceptions import MetadataFetchingException, PipelineException from src.schemas.arxiv.paper import ArxivPaper from src.schemas.pdf_parser.models import ParserType, PdfContent from src.servic...
1.0
assert
numeric_literal
tests/unit/services/test_metadata_fetcher.py
test_rate_limiting_respected
TestMetadataFetcher
104
null
jamwithai/production-agentic-rag-course
import os import pytest from src.config import Settings def test_settings_opensearch_defaults(): """Test OpenSearch default configuration.""" settings = Settings() assert settings.opensearch.host == "http://localhost:9200" assert settings.opensearch.index_name ==
"arxiv-papers"
assert
string_literal
tests/unit/test_config.py
test_settings_opensearch_defaults
32
null
jamwithai/production-agentic-rag-course
import pytest from src.services.opensearch.query_builder import QueryBuilder def test_query_builder_highlighting(): builder = QueryBuilder(query="test query") query = builder.build() highlight = query["highlight"] assert "fields" in highlight fields = highlight["fields"] assert "title" in
fields
assert
variable
tests/unit/services/test_opensearch_query_builder.py
test_query_builder_highlighting
76
null
jamwithai/production-agentic-rag-course
import pytest async def test_search_endpoint_all_parameters(client): response = await client.post( "/api/v1/hybrid-search/", json={ "query": "transformers attention mechanism", "size": 8, "from": 5, "categories": ["cs.AI"], "latest_papers"...
"transformers attention mechanism"
assert
string_literal
tests/api/routers/test_hybrid_search.py
test_search_endpoint_all_parameters
80
null
jamwithai/production-agentic-rag-course
import pytest from unittest.mock import AsyncMock, Mock from langchain_core.messages import AIMessage, HumanMessage, ToolMessage from src.services.agents.agentic_rag import AgenticRAGService from src.services.agents.config import GraphConfig from src.services.agents.models import GuardrailScoring class TestAgenticRAG...
True
assert
bool_literal
tests/unit/services/agents/test_agentic_rag.py
test_graph_config_values
TestAgenticRAGServiceInitialization
47
null
jamwithai/production-agentic-rag-course
import pytest from fastapi.testclient import TestClient from unittest.mock import AsyncMock, Mock from src.main import app from src.services.agents.agentic_rag import AgenticRAGService from src import dependencies def mock_agentic_rag_service(): """Mock AgenticRAGService for API testing.""" service = Mock(spe...
422
assert
numeric_literal
tests/api/routers/test_agentic_ask.py
test_ask_agentic_empty_query
TestAgenticAskEndpoint
98
null
jamwithai/production-agentic-rag-course
import pytest from src.services.opensearch.query_builder import QueryBuilder def test_query_builder_latest_papers_sorting(): builder = QueryBuilder(query="neural networks", latest_papers=True) query = builder.build() assert "sort" in query sort_config = query["sort"] assert len(sort_config) == 2 ...
"desc"
assert
string_literal
tests/unit/services/test_opensearch_query_builder.py
test_query_builder_latest_papers_sorting
45
null
jamwithai/production-agentic-rag-course
import pytest from pydantic import ValidationError from src.schemas.api.search import SearchHit, SearchRequest, SearchResponse def test_search_response_creation(): """Test SearchResponse creation.""" hits = [ SearchHit( arxiv_id="2024.12345v1", title="Test Paper", au...
1
assert
numeric_literal
tests/unit/schemas/test_search.py
test_search_response_creation
87
null
jamwithai/production-agentic-rag-course
import pytest from unittest.mock import AsyncMock from langchain_core.documents import Document from src.services.agents.tools import create_retriever_tool @pytest.mark.asyncio async def test_retriever_tool_custom_top_k(mock_opensearch_client, mock_jina_embeddings_client): """Test retriever tool with custom top_k...
5
assert
numeric_literal
tests/unit/services/agents/test_tools.py
test_retriever_tool_custom_top_k
79
null
jamwithai/production-agentic-rag-course
import pytest from fastapi.testclient import TestClient from unittest.mock import AsyncMock, Mock from src.main import app from src.services.agents.agentic_rag import AgenticRAGService from src import dependencies def mock_agentic_rag_service(): """Mock AgenticRAGService for API testing.""" service = Mock(spe...
2
assert
numeric_literal
tests/api/routers/test_agentic_ask.py
test_ask_agentic_with_rewritten_query
TestAgenticAskEndpoint
188
null
jamwithai/production-agentic-rag-course
import pytest from pydantic import ValidationError from src.schemas.api.search import SearchHit, SearchRequest, SearchResponse def test_search_hit_creation(): """Test SearchHit creation.""" hit = SearchHit( arxiv_id="2024.12345v1", title="Test Paper", authors="John Doe, Jane Smith", ...
"Test Paper"
assert
string_literal
tests/unit/schemas/test_search.py
test_search_hit_creation
65
null
jamwithai/production-agentic-rag-course
import pytest from pydantic import ValidationError from src.services.agents.models import ( GuardrailScoring, GradeDocuments, SourceItem, ToolArtefact, RoutingDecision, GradingResult, ReasoningStep, ) class TestGradingResult: def test_valid_grading_result(self): """Test creati...
True
assert
bool_literal
tests/unit/services/agents/test_models.py
test_valid_grading_result
TestGradingResult
176
null
jamwithai/production-agentic-rag-course
from pathlib import Path from unittest.mock import MagicMock, mock_open, patch import pytest from src.exceptions import PDFParsingException, PDFValidationError from src.schemas.pdf_parser.models import PaperSection, ParserType, PdfContent from src.services.pdf_parser.docling import DoclingParser from src.services.pdf_...
10 * 1024 * 1024
assert
complex_expr
tests/unit/services/test_pdf_parser.py
test_docling_parser_initialization
TestDoclingParser
44
null
jamwithai/production-agentic-rag-course
import pytest from unittest.mock import AsyncMock from langchain_core.documents import Document from src.services.agents.tools import create_retriever_tool @pytest.mark.asyncio async def test_create_retriever_tool_basic(mock_opensearch_client, mock_jina_embeddings_client): """Test basic retriever tool creation an...
2
assert
numeric_literal
tests/unit/services/agents/test_tools.py
test_create_retriever_tool_basic
27
null
jamwithai/production-agentic-rag-course
import pytest async def test_search_endpoint_all_parameters(client): response = await client.post( "/api/v1/hybrid-search/", json={ "query": "transformers attention mechanism", "size": 8, "from": 5, "categories": ["cs.AI"], "latest_papers"...
hit
assert
variable
tests/api/routers/test_hybrid_search.py
test_search_endpoint_all_parameters
85
null
jamwithai/production-agentic-rag-course
import pytest from unittest.mock import AsyncMock from langchain_core.documents import Document from src.services.agents.tools import create_retriever_tool @pytest.mark.asyncio async def test_retriever_tool_metadata_fields(mock_opensearch_client, mock_jina_embeddings_client): """Test that all expected metadata fi...
doc.metadata
assert
complex_expr
tests/unit/services/agents/test_tools.py
test_retriever_tool_metadata_fields
108
null
jamwithai/production-agentic-rag-course
import pytest from unittest.mock import AsyncMock, Mock from langchain_core.messages import AIMessage, HumanMessage, ToolMessage from src.services.agents.agentic_rag import AgenticRAGService from src.services.agents.config import GraphConfig from src.services.agents.models import GuardrailScoring class TestAgenticRAG...
60
assert
numeric_literal
tests/unit/services/agents/test_agentic_rag.py
test_graph_config_values
TestAgenticRAGServiceInitialization
49
null
jamwithai/production-agentic-rag-course
import pytest from src.services.opensearch.query_builder import QueryBuilder def test_query_builder_latest_papers_sorting(): builder = QueryBuilder(query="neural networks", latest_papers=True) query = builder.build() assert "sort" in query sort_config = query["sort"] assert len(sort_config) == 2 ...
"_score"
assert
string_literal
tests/unit/services/test_opensearch_query_builder.py
test_query_builder_latest_papers_sorting
46
null
inducer/loopy
__copyright__ = "Copyright (C) 2019 Andreas Kloeckner" __license__ = """ Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, ...
np.real(c64))
assert_*
func_call
test/test_expression.py
test_complex_functions_with_real_args
683
null
inducer/loopy
__copyright__ = "Copyright (C) 2019 Andreas Kloeckner" __license__ = """ Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, ...
parsed_expr
assert
variable
test/test_expression.py
assert_parse_roundtrip
221
null
inducer/loopy
__copyright__ = "Copyright (C) 2018 Kaushik Kulkarni" __license__ = """ Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, m...
out)
assert_*
variable
test/test_callables.py
test_int_max_min_c_target
795
null
inducer/loopy
__copyright__ = "Copyright (C) 2015 James Stevens" __license__ = """ Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modi...
20
assert
numeric_literal
test/test_statistics.py
test_within_stats
1,556
null
inducer/loopy
__copyright__ = "Copyright (C) 2012 Andreas Kloeckner" __license__ = """ Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, ...
128
assert
numeric_literal
test/test_target.py
test_emits_ternary_operators_correctly
446
null
inducer/loopy
__copyright__ = "Copyright (C) 2012 Andreas Kloeckner" __license__ = """ Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, ...
frozenset({"j"})
assert
func_call
test/test_reduction.py
test_realize_reduction_insn_id_filter_list
518
null
inducer/loopy
__copyright__ = "Copyright (C) 2012 Andreas Kloeckner" __license__ = """ Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, ...
code
assert
variable
test/test_apps.py
test_fd_demo
512
null
inducer/loopy
__copyright__ = "Copyright (C) 2012 Andreas Kloeckner" __license__ = """ Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, ...
x
assert
variable
test/test_target.py
test_pyopencl_execution_numpy_handling
336
null
inducer/loopy
__copyright__ = "Copyright (C) 2017 Nick Curtis" __license__ = """ Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify...
n*(n-1)/2
assert
func_call
test/test_c_execution.py
test_scalar_global_args
366
null
inducer/loopy
__copyright__ = "Copyright (C) 2018 Kaushik Kulkarni" __license__ = """ Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, m...
2*x_in)
assert_*
complex_expr
test/test_callables.py
test_passing_scalar_as_indexed_subscript_in_clbl_knl
753
null
inducer/loopy
__copyright__ = "Copyright (C) 2018 Kaushik Kulkarni" __license__ = """ Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, m...
2)
assert_*
numeric_literal
test/test_callables.py
test_call_kernel_w_preds
1,280
null
inducer/loopy
__copyright__ = "Copyright (C) 2021-25 Kaushik Kulkarni" __license__ = """ Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy...
4
assert
numeric_literal
test/test_loop_fusion.py
test_loop_fusion_vanilla
87
null
inducer/loopy
__copyright__ = "Copyright (C) 2015 James Stevens" __license__ = """ Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modi...
200
assert
numeric_literal
test/test_statistics.py
test_gather_access_footprint_2
1,306
null
inducer/loopy
__copyright__ = "Copyright (C) 2012 Andreas Kloeckner" __license__ = """ Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, ...
frozenset()
assert
func_call
test/test_reduction.py
test_realize_reduction_insn_id_filter_list
524
null
inducer/loopy
__copyright__ = "Copyright (C) 2012 Andreas Kloeckner" __license__ = """ Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, ...
RuntimeError)
pytest.raises
variable
test/test_reduction.py
test_nonsense_reduction
53
null
inducer/loopy
__copyright__ = "Copyright (C) 2019 Andreas Kloeckner" __license__ = """ Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, ...
np.abs(f64))
assert_*
func_call
test/test_expression.py
test_complex_functions_with_real_args
694
null
inducer/loopy
__copyright__ = "Copyright (C) 2012 Andreas Kloeckner" __license__ = """ Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, ...
2
assert
numeric_literal
test/test_transform.py
test_custom_iname_tag
1,220
null
inducer/loopy
__copyright__ = "Copyright (C) 2012 Andreas Kloeckner" __license__ = """ Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, ...
(4,)
assert
collection
test/test_transform.py
test_privatize_with_nonzero_lbound
1,292
null
inducer/loopy
__copyright__ = "Copyright (C) 2012 Andreas Kloeckner" __license__ = """ Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, ...
"iel"
assert
string_literal
test/test_transform.py
test_custom_iname_tag
1,214
null
inducer/loopy
__copyright__ = "Copyright (C) 2012 Andreas Kloeckner" __license__ = """ Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, ...
frozenset({"k"})
assert
func_call
test/test_reduction.py
test_realize_reduction_insn_id_filter_list
519
null
inducer/loopy
__copyright__ = "Copyright (C) 2012 Andreas Kloeckner" __license__ = """ Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, ...
-1
assert
numeric_literal
test/test_transform.py
test_rename_argument_of_domain_params
1,120
null
inducer/loopy
__copyright__ = "Copyright (C) 2015 James Stevens" __license__ = """ Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modi...
n*m
assert
complex_expr
test/test_statistics.py
test_mem_access_counter_nonconsec
818
null
inducer/loopy
__copyright__ = "Copyright (C) 2012 Andreas Kloeckner" __license__ = """ Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, ...
(50,)
assert
collection
test/test_domain.py
test_independent_multi_domain
256
null
inducer/loopy
__copyright__ = "Copyright (C) 2012 Andreas Kloeckner" __license__ = """ Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, ...
expr
assert
variable
test/test_isl.py
test_simplify_via_aff_reproducibility
95
null
inducer/loopy
__copyright__ = "Copyright (C) 2021 University of Illinois Board of Trustees" __license__ = """ Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation th...
1e-15
assert
numeric_literal
test/test_einsum.py
test_einsum_array_manipulation
66
null
inducer/loopy
__copyright__ = "Copyright (C) 2016 Matt Wala" __license__ = """ Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, ...
Optional(2)
assert
func_call
test/test_misc.py
test_optional
264
null
inducer/loopy
__copyright__ = "Copyright (C) 2012 Andreas Kloeckner" __license__ = """ Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, ...
1729
assert
numeric_literal
test/test_target.py
test_emits_ternary_operators_correctly
444
null
inducer/loopy
__copyright__ = "Copyright (C) 2012 Andreas Kloeckner" __license__ = """ Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, ...
1
assert
numeric_literal
test/test_target.py
test_tuple
225
null
inducer/loopy
__copyright__ = "Copyright (C) 2016 Matt Wala" __license__ = """ Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, ...
4
assert
numeric_literal
test/test_misc.py
test_memoize_on_disk
312
null
inducer/loopy
__copyright__ = "Copyright (C) 2015 Andreas Kloeckner" __license__ = """ Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, ...
knl["fill"].all_inames()
assert
func_call
test/test_fortran.py
test_fill
166
null
inducer/loopy
__copyright__ = "Copyright (C) 2022 University of Illinois Board of Trustees" __license__ = """ Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation th...
1
assert
numeric_literal
test/test_tree.py
test_tree_simple
37
null
inducer/loopy
__copyright__ = "Copyright (C) 2019 Andreas Kloeckner" __license__ = """ Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, ...
lp.generate_code_v2(knl).device_code()
assert
func_call
test/test_expression.py
test_integer_associativity
472
null
inducer/loopy
__copyright__ = "Copyright (C) 2015 James Stevens" __license__ = """ Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modi...
0
assert
numeric_literal
test/test_statistics.py
test_summations_and_filters
1,393
null
inducer/loopy
__copyright__ = "Copyright (C) 2012 Andreas Kloeckner" __license__ = """ Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, ...
(-1)*i0 + 2*(i0 // 2)
assert
collection
test/test_isl.py
test_aff_to_expr_2
43
null
inducer/loopy
__copyright__ = "Copyright (C) 2019 Andreas Kloeckner" __license__ = """ Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, ...
np.logical_and(7.0, 8.0)
assert
func_call
test/test_expression.py
test_bool_type_context
607
null
inducer/loopy
__copyright__ = "Copyright (C) 2015 Andreas Kloeckner" __license__ = """ Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, ...
1e-6
assert
numeric_literal
test/test_fortran.py
test_assign_single_precision_scalar
137
null
inducer/loopy
__copyright__ = "Copyright (C) 2012 Andreas Kloeckner" __license__ = """ Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, ...
1
assert
numeric_literal
test/test_transform.py
test_precompute_nested_subst
462
null
inducer/loopy
__copyright__ = "Copyright (C) 2021-25 Kaushik Kulkarni" __license__ = """ Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy...
0
assert
numeric_literal
test/test_loop_fusion.py
test_loop_fusion_outer_iname_preventing_fusion
123
null
inducer/loopy
__copyright__ = "Copyright (C) 2012 Andreas Kloeckner" __license__ = """ Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, ...
2*[None]
assert
complex_expr
test/test_domain.py
test_independent_multi_domain
251
null
inducer/loopy
__copyright__ = "Copyright (C) 2019 Andreas Kloeckner" __license__ = """ Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, ...
4
assert
numeric_literal
test/test_expression.py
test_divide_precedence
507
null
inducer/loopy
__copyright__ = "Copyright (C) 2012 Andreas Kloeckner" __license__ = """ Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, ...
0
assert
numeric_literal
test/test_target.py
test_nan_support
407
null
inducer/loopy
__copyright__ = "Copyright (C) 2018 Kaushik Kulkarni" __license__ = """ Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, m...
[1, 2]
assert
collection
test/test_callables.py
test_global_temp_var_with_base_storage
1,391
null
inducer/loopy
__copyright__ = "Copyright (C) 2021 University of Illinois Board of Trustees" __license__ = """ Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation th...
answer)
assert_*
variable
test/test_fusion.py
test_write_block_matrix_fusion
169
null
inducer/loopy
__copyright__ = "Copyright (C) 2015 James Stevens" __license__ = """ Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modi...
8000
assert
numeric_literal
test/test_statistics.py
test_stats_on_callable_kernel_within_loop
1,485
null
inducer/loopy
__copyright__ = "Copyright (C) 2016 Matt Wala" __license__ = """ Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, ...
[1, 2, 3, 4, 5]
assert
collection
test/test_misc.py
test_set_trie
55
null
inducer/loopy
__copyright__ = "Copyright (C) 2015 Andreas Kloeckner" __license__ = """ Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, ...
prg_dp
assert
variable
test/test_fortran.py
test_fp_prec_comparison
67
null
inducer/loopy
__copyright__ = "Copyright (C) 2017 Nick Curtis" __license__ = """ Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify...
logs
assert
variable
test/test_c_execution.py
test_c_caching
265
null
inducer/loopy
__copyright__ = "Copyright (C) 2012 Andreas Kloeckner" __license__ = """ Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, ...
1e-15
assert
numeric_literal
test/test_transform.py
test_to_batched
137
null
inducer/loopy
__copyright__ = "Copyright (C) 2012 Andreas Kloeckner" __license__ = """ Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, ...
(128,)
assert
collection
test/test_transform.py
test_prefetch_with_within
1,271
null
inducer/loopy
__copyright__ = "Copyright (C) 2022 University of Illinois Board of Trustees" __license__ = """ Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation th...
0
assert
numeric_literal
test/test_tree.py
test_tree_simple
36
null
inducer/loopy
__copyright__ = "Copyright (C) 2012 Andreas Kloeckner" __license__ = """ Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, ...
code
assert
variable
test/test_target.py
test_math_function
161
null
inducer/loopy
__copyright__ = "Copyright (C) 2012 Andreas Kloeckner" __license__ = """ Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, ...
4
assert
numeric_literal
test/test_loopy.py
test_unschedulable_kernel_detection
1,579
null
inducer/loopy
__copyright__ = "Copyright (C) 2017 Nick Curtis" __license__ = """ Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify...
"foo"
assert
string_literal
test/test_c_execution.py
test_missing_compilers
339
null
inducer/loopy
__copyright__ = "Copyright (C) 2016 Matt Wala" __license__ = """ Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, ...
Optional(1)
assert
func_call
test/test_misc.py
test_optional
263
null
inducer/loopy
__copyright__ = "Copyright (C) 2015 Andreas Kloeckner" __license__ = """ Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, ...
2
assert
numeric_literal
test/test_fortran.py
test_tagged
362
null
inducer/loopy
__copyright__ = "Copyright (C) 2016 Matt Wala" __license__ = """ Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, ...
1
assert
numeric_literal
test/test_misc.py
test_optional
261
null
inducer/loopy
__copyright__ = "Copyright (C) 2012 Andreas Kloeckner" __license__ = """ Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, ...
1e-15
assert
numeric_literal
test/test_loopy.py
test_globals_decl_once_with_multi_subprogram
68
null
inducer/loopy
__copyright__ = "Copyright (C) 2015 Andreas Kloeckner" __license__ = """ Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, ...
1
assert
numeric_literal
test/test_fortran.py
test_matmul
394
null
inducer/loopy
__copyright__ = "Copyright (C) 2018 Kaushik Kulkarni" __license__ = """ Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, m...
1
assert
numeric_literal
test/test_callables.py
test_inline_predicate
1,478
null
inducer/loopy
__copyright__ = "Copyright (C) 2015 James Stevens" __license__ = """ Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modi...
1
assert
numeric_literal
test/test_statistics.py
test_barrier_counter_nobarriers
1,012
null
inducer/loopy
__copyright__ = "Copyright (C) 2012 Andreas Kloeckner" __license__ = """ Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, ...
frozenset({"i"})
assert
func_call
test/test_reduction.py
test_realize_reduction_insn_id_filter_list
517
null
inducer/loopy
__copyright__ = "Copyright (C) 2012 Andreas Kloeckner" __license__ = """ Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, ...
(20,)
assert
collection
test/test_transform.py
test_concatenate_arrays
1,641
null
inducer/loopy
__copyright__ = "Copyright (C) 2012 Andreas Kloeckner" __license__ = """ Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, ...
np.max(np.abs(a))
assert
func_call
test/test_reduction.py
test_argmax
315
null
inducer/loopy
__copyright__ = "Copyright (C) 2015 Andreas Kloeckner" __license__ = """ Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, ...
knl["fill"].temporary_variables
assert
complex_expr
test/test_fortran.py
test_assignment_to_subst_indices
295
null
inducer/loopy
__copyright__ = "Copyright (C) 2016 Matt Wala" __license__ = """ Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, ...
ValueError)
pytest.raises
variable
test/test_misc.py
test_set_trie
57
null
inducer/loopy
__copyright__ = "Copyright (C) 2012 Andreas Kloeckner" __license__ = """ Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, ...
RuntimeError)
pytest.raises
variable
test/test_domain.py
test_dependent_loop_bounds_3
187
null
inducer/loopy
__copyright__ = "Copyright (C) 2012 Andreas Kloeckner" __license__ = """ Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, ...
0
assert
numeric_literal
test/test_domain.py
test_dependent_loop_bounds_3
177
null
inducer/loopy
__copyright__ = "Copyright (C) 2016 Matt Wala" __license__ = """ Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, ...
uncached_knl
assert
variable
test/test_misc.py
test_memoize_on_disk
313
null
inducer/loopy
__copyright__ = "Copyright (C) 2017 Nick Curtis" __license__ = """ Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify...
ExecError)
pytest.raises
variable
test/test_c_execution.py
test_missing_compilers
343
null
inducer/loopy
__copyright__ = "Copyright (C) 2012 Andreas Kloeckner" __license__ = """ Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, ...
"idof"
assert
string_literal
test/test_transform.py
test_custom_iname_tag
1,215
null
inducer/loopy
__copyright__ = "Copyright (C) 2016 Matt Wala" __license__ = """ Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, ...
lst
assert
variable
test/test_misc.py
test_lazily_unpickling_list_eq_and_persistent_hashing
233
null