content stringlengths 1 103k ⌀ | path stringlengths 8 216 | filename stringlengths 2 179 | language stringclasses 15
values | size_bytes int64 2 189k | quality_score float64 0.5 0.95 | complexity float64 0 1 | documentation_ratio float64 0 1 | repository stringclasses 5
values | stars int64 0 1k | created_date stringdate 2023-07-10 19:21:08 2025-07-09 19:11:45 | license stringclasses 4
values | is_test bool 2
classes | file_hash stringlengths 32 32 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
from collections.abc import Mapping\nfrom typing import Any, Final\n\nfrom .auxfuncs import isintent_dict as isintent_dict\n\n__version__: Final[str] = ...\nf2py_version: Final = "See `f2py -v`"\n\noptions: Final[dict[str, bool]]\n\nfgetdims1: Final[str] = ...\nfgetdims2: Final[str] = ...\nfgetdims2_sa: Final[str] = ..... | .venv\Lib\site-packages\numpy\f2py\f90mod_rules.pyi | f90mod_rules.pyi | Other | 467 | 0.85 | 0.125 | 0 | node-utils | 131 | 2024-12-07T19:19:31.844468 | BSD-3-Clause | false | 5b9a1596de7aecfd6665517b68838fc7 |
"""\n\nRules for building C/API module with f2py2e.\n\nCopyright 1999 -- 2011 Pearu Peterson all rights reserved.\nCopyright 2011 -- present NumPy Developers.\nPermission to use, modify, and distribute this software is given under the\nterms of the NumPy License.\n\nNO WARRANTY IS EXPRESSED OR IMPLIED. USE AT YOUR OWN... | .venv\Lib\site-packages\numpy\f2py\func2subr.py | func2subr.py | Python | 10,378 | 0.95 | 0.288754 | 0.017065 | react-lib | 114 | 2025-04-20T23:08:07.887627 | Apache-2.0 | false | 4bf942a46e5721234bb42c0f83919970 |
from .auxfuncs import _Bool, _ROut, _Var\n\ndef var2fixfortran(vars: _Var, a: str, fa: str | None = None, f90mode: _Bool | None = None) -> str: ...\ndef useiso_c_binding(rout: _ROut) -> bool: ...\ndef createfuncwrapper(rout: _ROut, signature: int = 0) -> str: ...\ndef createsubrwrapper(rout: _ROut, signature: int = 0) ... | .venv\Lib\site-packages\numpy\f2py\func2subr.pyi | func2subr.pyi | Other | 393 | 0.85 | 0.714286 | 0 | node-utils | 416 | 2024-10-16T04:56:15.516217 | BSD-3-Clause | false | 7a9fc9e4007ff3030a83993248deffc1 |
"""\n\nRules for building C/API module with f2py2e.\n\nHere is a skeleton of a new wrapper function (13Dec2001):\n\nwrapper_function(args)\n declarations\n get_python_arguments, say, `a' and `b'\n\n get_a_from_python\n if (successful) {\n\n get_b_from_python\n if (successful) {\n\n callfortran\n if ... | .venv\Lib\site-packages\numpy\f2py\rules.py | rules.py | Python | 64,720 | 0.75 | 0.096992 | 0.106796 | awesome-app | 816 | 2024-08-09T12:44:55.992676 | BSD-3-Clause | false | 96c1b295cf7a91c1782d8aa132550968 |
from collections.abc import Callable, Iterable, Mapping\nfrom typing import Any, Final, TypeAlias\nfrom typing import Literal as L\n\nfrom typing_extensions import TypeVar\n\nfrom .__version__ import version\nfrom .auxfuncs import _Bool, _Var\n\n###\n\n_VT = TypeVar("_VT", default=str)\n\n_Predicate: TypeAlias = Callab... | .venv\Lib\site-packages\numpy\f2py\rules.pyi | rules.pyi | Other | 1,369 | 0.95 | 0.046512 | 0.1 | python-kit | 126 | 2025-02-01T14:37:29.436244 | GPL-3.0 | false | 197c1bbc52d318cdec3423399a39bb23 |
[bdist_rpm]\ndoc_files = docs/\n tests/ | .venv\Lib\site-packages\numpy\f2py\setup.cfg | setup.cfg | Other | 50 | 0.5 | 0 | 0 | node-utils | 46 | 2024-03-03T01:02:31.402896 | MIT | false | e48436bd49630be0e8098dbcecbeea4c |
"""Fortran/C symbolic expressions\n\nReferences:\n- J3/21-007: Draft Fortran 202x. https://j3-fortran.org/doc/year/21/21-007.pdf\n\nCopyright 1999 -- 2011 Pearu Peterson all rights reserved.\nCopyright 2011 -- present NumPy Developers.\nPermission to use, modify, and distribute this software is given under the\nterms o... | .venv\Lib\site-packages\numpy\f2py\symbolic.py | symbolic.py | Python | 54,730 | 0.75 | 0.245383 | 0.067835 | node-utils | 320 | 2023-08-23T16:58:49.818339 | Apache-2.0 | false | 387754f16b71c13b51518acabe3e36f1 |
from collections.abc import Callable, Mapping\nfrom enum import Enum\nfrom typing import Any, Generic, ParamSpec, Self, TypeAlias, overload\nfrom typing import Literal as L\n\nfrom typing_extensions import TypeVar\n\n__all__ = ["Expr"]\n\n###\n\n_Tss = ParamSpec("_Tss")\n_ExprT = TypeVar("_ExprT", bound=Expr)\n_ExprT1 ... | .venv\Lib\site-packages\numpy\f2py\symbolic.pyi | symbolic.pyi | Other | 6,304 | 0.95 | 0.257919 | 0.146067 | node-utils | 790 | 2024-03-01T07:05:28.499440 | Apache-2.0 | false | b969cb0cc8408a469b55b4879ebebb7f |
"""\nBuild 'use others module data' mechanism for f2py2e.\n\nCopyright 1999 -- 2011 Pearu Peterson all rights reserved.\nCopyright 2011 -- present NumPy Developers.\nPermission to use, modify, and distribute this software is given under the\nterms of the NumPy License.\n\nNO WARRANTY IS EXPRESSED OR IMPLIED. USE AT YO... | .venv\Lib\site-packages\numpy\f2py\use_rules.py | use_rules.py | Python | 3,475 | 0.95 | 0.191919 | 0.046512 | python-kit | 551 | 2024-12-09T12:48:35.336507 | BSD-3-Clause | false | fcbb97fb4569440e51b6659cefb9288f |
from collections.abc import Mapping\nfrom typing import Any, Final\n\n__version__: Final[str] = ...\nf2py_version: Final = "See `f2py -v`"\nusemodule_rules: Final[dict[str, str | list[str]]] = ...\n\ndef buildusevars(m: Mapping[str, object], r: Mapping[str, Mapping[str, object]]) -> dict[str, Any]: ...\ndef buildusevar... | .venv\Lib\site-packages\numpy\f2py\use_rules.pyi | use_rules.pyi | Other | 433 | 0.85 | 0.222222 | 0 | awesome-app | 962 | 2023-12-21T07:16:17.967777 | GPL-3.0 | false | 421bf151f7133ffbafe38a9c726880d2 |
"""\nISO_C_BINDING maps for f2py2e.\nOnly required declarations/macros/functions will be used.\n\nCopyright 1999 -- 2011 Pearu Peterson all rights reserved.\nCopyright 2011 -- present NumPy Developers.\nPermission to use, modify, and distribute this software is given under the\nterms of the NumPy License.\n\nNO WARRANT... | .venv\Lib\site-packages\numpy\f2py\_isocbind.py | _isocbind.py | Python | 2,422 | 0.95 | 0.322581 | 0.034483 | vue-tools | 232 | 2023-08-17T18:53:57.821904 | BSD-3-Clause | false | 6e6cbb97e5f11d94ff8273b104deee6b |
from typing import Any, Final\n\niso_c_binding_map: Final[dict[str, dict[str, str]]] = ...\n\nisoc_c2pycode_map: Final[dict[str, Any]] = {} # not implemented\niso_c2py_map: Final[dict[str, Any]] = {} # not implemented\n\nisoc_kindmap: Final[dict[str, str]] = ...\n\n# namespace pollution\nc_type: str\nc_type_dict: dic... | .venv\Lib\site-packages\numpy\f2py\_isocbind.pyi | _isocbind.pyi | Other | 352 | 0.95 | 0 | 0.111111 | react-lib | 644 | 2024-01-23T23:14:49.426398 | BSD-3-Clause | false | df9736bed205b3702f00159895a6d018 |
import os\nimport re\n\n# START OF CODE VENDORED FROM `numpy.distutils.from_template`\n#############################################################\n"""\nprocess_file(filename)\n\n takes templated file .xxx.src and produces .xxx file where .xxx\n is .pyf .f90 or .f using the following template rules:\n\n '<..>' den... | .venv\Lib\site-packages\numpy\f2py\_src_pyf.py | _src_pyf.py | Python | 7,942 | 0.95 | 0.206478 | 0.029412 | python-kit | 888 | 2024-08-24T00:28:30.646080 | BSD-3-Clause | false | 7d1ee9e7be0f1b34d87e5e60f48291a4 |
import re\nfrom collections.abc import Mapping\nfrom typing import Final\n\nfrom _typeshed import StrOrBytesPath\n\nroutine_start_re: Final[re.Pattern[str]] = ...\nroutine_end_re: Final[re.Pattern[str]] = ...\nfunction_start_re: Final[re.Pattern[str]] = ...\ntemplate_re: Final[re.Pattern[str]] = ...\nnamed_re: Final[re... | .venv\Lib\site-packages\numpy\f2py\_src_pyf.pyi | _src_pyf.pyi | Other | 1,041 | 0.95 | 0.310345 | 0.083333 | awesome-app | 730 | 2025-02-07T21:57:37.311362 | Apache-2.0 | false | 3255015854c74d8db84e785b7d964116 |
"""Fortran to Python Interface Generator.\n\nCopyright 1999 -- 2011 Pearu Peterson all rights reserved.\nCopyright 2011 -- present NumPy Developers.\nPermission to use, modify, and distribute this software is given under the terms\nof the NumPy License.\n\nNO WARRANTY IS EXPRESSED OR IMPLIED. USE AT YOUR OWN RISK.\n""... | .venv\Lib\site-packages\numpy\f2py\__init__.py | __init__.py | Python | 2,534 | 0.95 | 0.127907 | 0.112903 | vue-tools | 594 | 2024-07-21T01:19:54.112597 | Apache-2.0 | false | e2ca6664e762510c283debc8cfc7fe67 |
from .f2py2e import main as main\nfrom .f2py2e import run_main\n\n__all__ = ["get_include", "run_main"]\n\ndef get_include() -> str: ...\n | .venv\Lib\site-packages\numpy\f2py\__init__.pyi | __init__.pyi | Other | 138 | 0.85 | 0.166667 | 0 | react-lib | 184 | 2025-01-21T13:41:20.129222 | BSD-3-Clause | false | c6fa1b9af85696dc66bc2efdaf80c4eb |
# See:\n# https://web.archive.org/web/20140822061353/http://cens.ioc.ee/projects/f2py2e\nfrom numpy.f2py.f2py2e import main\n\nmain()\n | .venv\Lib\site-packages\numpy\f2py\__main__.py | __main__.py | Python | 135 | 0.95 | 0 | 0.5 | vue-tools | 129 | 2024-07-22T08:59:20.641644 | GPL-3.0 | false | 02435ea4a0b6bdf214bc8b8e938eecb0 |
from numpy.version import version # noqa: F401\n | .venv\Lib\site-packages\numpy\f2py\__version__.py | __version__.py | Python | 49 | 0.75 | 0 | 0 | python-kit | 642 | 2024-01-30T17:36:56.773405 | BSD-3-Clause | false | 39ca37fc6281308b0779358aa4780e42 |
from numpy.version import version as version\n | .venv\Lib\site-packages\numpy\f2py\__version__.pyi | __version__.pyi | Other | 46 | 0.65 | 0 | 0 | python-kit | 642 | 2025-02-11T05:00:59.473906 | MIT | false | b5acf88d74a48f688b66a4f18fb88143 |
#define FORTRANOBJECT_C\n#include "fortranobject.h"\n\n#ifdef __cplusplus\nextern "C" {\n#endif\n\n#include <stdarg.h>\n#include <stdlib.h>\n#include <string.h>\n\n/*\n This file implements: FortranObject, array_from_pyobj, copy_ND_array\n\n Author: Pearu Peterson <pearu@cens.ioc.ee>\n $Revision: 1.52 $\n $Date: 20... | .venv\Lib\site-packages\numpy\f2py\src\fortranobject.c | fortranobject.c | C | 47,792 | 0.95 | 0.157382 | 0.121752 | vue-tools | 101 | 2024-09-01T10:50:25.642616 | MIT | false | 43768b012635338c71183cab8c88f762 |
#ifndef Py_FORTRANOBJECT_H\n#define Py_FORTRANOBJECT_H\n#ifdef __cplusplus\nextern "C" {\n#endif\n\n#include <Python.h>\n\n#ifndef NPY_NO_DEPRECATED_API\n#define NPY_NO_DEPRECATED_API NPY_API_VERSION\n#endif\n#ifdef FORTRANOBJECT_C\n#define NO_IMPORT_ARRAY\n#endif\n#define PY_ARRAY_UNIQUE_SYMBOL _npy_f2py_ARRAY_API\n#i... | .venv\Lib\site-packages\numpy\f2py\src\fortranobject.h | fortranobject.h | C | 5,996 | 0.95 | 0.040462 | 0.458333 | vue-tools | 674 | 2024-02-22T22:50:25.751406 | GPL-3.0 | false | f5e999a44f35dcb44f5ab5d8bd1eb826 |
import pytest\n\nfrom numpy.f2py import crackfortran\nfrom numpy.testing import IS_WASM\n\nfrom . import util\n\n\n@pytest.mark.skipif(IS_WASM, reason="Cannot start subprocess")\n@pytest.mark.slow\nclass TestAbstractInterface(util.F2PyTest):\n sources = [util.getpath("tests", "src", "abstract_interface", "foo.f90")]... | .venv\Lib\site-packages\numpy\f2py\tests\test_abstract_interface.py | test_abstract_interface.py | Python | 837 | 0.95 | 0.115385 | 0.052632 | awesome-app | 347 | 2025-02-02T23:03:00.343721 | MIT | true | 7efa0e13f2322f91a5ab270a8274e385 |
import copy\nimport platform\nimport sys\nfrom pathlib import Path\n\nimport pytest\n\nimport numpy as np\nfrom numpy._core._type_aliases import c_names_dict as _c_names_dict\n\nfrom . import util\n\nwrap = None\n\n# Extend core typeinfo with CHARACTER to test dtype('c')\nc_names_dict = dict(\n CHARACTER=np.dtype("c... | .venv\Lib\site-packages\numpy\f2py\tests\test_array_from_pyobj.py | test_array_from_pyobj.py | Python | 24,374 | 0.95 | 0.185841 | 0.01913 | react-lib | 600 | 2023-12-12T15:38:21.008133 | Apache-2.0 | true | 1d7197fb777e961a3b060c4562651235 |
import os\nimport tempfile\n\nimport pytest\n\nfrom . import util\n\n\nclass TestAssumedShapeSumExample(util.F2PyTest):\n sources = [\n util.getpath("tests", "src", "assumed_shape", "foo_free.f90"),\n util.getpath("tests", "src", "assumed_shape", "foo_use.f90"),\n util.getpath("tests", "src", "a... | .venv\Lib\site-packages\numpy\f2py\tests\test_assumed_shape.py | test_assumed_shape.py | Python | 1,517 | 0.95 | 0.12 | 0.026316 | node-utils | 428 | 2024-11-16T14:25:06.110078 | MIT | true | a6ea2bb547b5a457e9bf67068dbec491 |
import sys\n\nimport pytest\n\nfrom numpy.testing import IS_PYPY\n\nfrom . import util\n\n\n@pytest.mark.slow\nclass TestBlockDocString(util.F2PyTest):\n sources = [util.getpath("tests", "src", "block_docstring", "foo.f")]\n\n @pytest.mark.skipif(sys.platform == "win32",\n reason="Fails wit... | .venv\Lib\site-packages\numpy\f2py\tests\test_block_docstring.py | test_block_docstring.py | Python | 604 | 0.95 | 0.1 | 0 | awesome-app | 41 | 2024-07-20T09:01:57.188867 | MIT | true | 347ef83dd98ccf807ce53e94ce0caa5e |
import math\nimport platform\nimport sys\nimport textwrap\nimport threading\nimport time\nimport traceback\n\nimport pytest\n\nimport numpy as np\nfrom numpy.testing import IS_PYPY\n\nfrom . import util\n\n\nclass TestF77Callback(util.F2PyTest):\n sources = [util.getpath("tests", "src", "callback", "foo.f")]\n\n ... | .venv\Lib\site-packages\numpy\f2py\tests\test_callback.py | test_callback.py | Python | 7,362 | 0.95 | 0.18251 | 0.029268 | python-kit | 187 | 2024-06-04T07:29:04.188421 | GPL-3.0 | true | 19c5db801c85bdc05aeebc7facba31bc |
import textwrap\n\nimport pytest\n\nimport numpy as np\nfrom numpy.f2py.tests import util\nfrom numpy.testing import assert_array_equal, assert_equal, assert_raises\n\n\n@pytest.mark.slow\nclass TestCharacterString(util.F2PyTest):\n # options = ['--debug-capi', '--build-dir', '/tmp/test-build-f2py']\n suffix = '.... | .venv\Lib\site-packages\numpy\f2py\tests\test_character.py | test_character.py | Python | 22,572 | 0.95 | 0.112324 | 0.018797 | python-kit | 949 | 2025-01-22T13:34:56.304029 | MIT | true | 0d738bdf114fc4b4af47bab1a5d6faed |
import pytest\n\nimport numpy as np\n\nfrom . import util\n\n\n@pytest.mark.slow\nclass TestCommonBlock(util.F2PyTest):\n sources = [util.getpath("tests", "src", "common", "block.f")]\n\n def test_common_block(self):\n self.module.initcb()\n assert self.module.block.long_bn == np.array(1.0, dtype=np... | .venv\Lib\site-packages\numpy\f2py\tests\test_common.py | test_common.py | Python | 667 | 0.85 | 0.173913 | 0 | node-utils | 414 | 2025-02-25T12:59:45.931502 | GPL-3.0 | true | 7691db91fd35b207841743a364cb1f41 |
import contextlib\nimport importlib\nimport io\nimport textwrap\nimport time\n\nimport pytest\n\nimport numpy as np\nfrom numpy.f2py import crackfortran\nfrom numpy.f2py.crackfortran import markinnerspaces, nameargspattern\n\nfrom . import util\n\n\nclass TestNoSpace(util.F2PyTest):\n # issue gh-15035: add handling ... | .venv\Lib\site-packages\numpy\f2py\tests\test_crackfortran.py | test_crackfortran.py | Python | 16,834 | 0.95 | 0.178147 | 0.068376 | vue-tools | 992 | 2024-11-03T07:32:50.977808 | MIT | true | ab1acc60d9ccc3326597635c0c3832ce |
import pytest\n\nimport numpy as np\nfrom numpy.f2py.crackfortran import crackfortran\n\nfrom . import util\n\n\nclass TestData(util.F2PyTest):\n sources = [util.getpath("tests", "src", "crackfortran", "data_stmts.f90")]\n\n # For gh-23276\n @pytest.mark.slow\n def test_data_stmts(self):\n assert sel... | .venv\Lib\site-packages\numpy\f2py\tests\test_data.py | test_data.py | Python | 2,966 | 0.95 | 0.140845 | 0.071429 | vue-tools | 955 | 2024-02-04T05:06:34.799478 | GPL-3.0 | true | e8f33723128785fa07c02381547cd49c |
from pathlib import Path\n\nimport pytest\n\nimport numpy as np\nfrom numpy.testing import assert_array_equal, assert_equal\n\nfrom . import util\n\n\ndef get_docdir():\n parents = Path(__file__).resolve().parents\n try:\n # Assumes that spin is used to run tests\n nproot = parents[8]\n except In... | .venv\Lib\site-packages\numpy\f2py\tests\test_docs.py | test_docs.py | Python | 1,919 | 0.95 | 0.140625 | 0.078431 | react-lib | 103 | 2024-10-14T23:54:47.208553 | MIT | true | 54674c78961aebc2b1454bd7069b4cdf |
import numpy as np\n\nfrom . import util\n\n\nclass TestF2Cmap(util.F2PyTest):\n sources = [\n util.getpath("tests", "src", "f2cmap", "isoFortranEnvMap.f90"),\n util.getpath("tests", "src", "f2cmap", ".f2py_f2cmap")\n ]\n\n # gh-15095\n def test_gh15095(self):\n inp = np.ones(3)\n ... | .venv\Lib\site-packages\numpy\f2py\tests\test_f2cmap.py | test_f2cmap.py | Python | 404 | 0.95 | 0.117647 | 0.076923 | node-utils | 848 | 2024-11-01T03:03:25.669809 | GPL-3.0 | true | d82aa6c8eec0e207bba3fa433776b30d |
import platform\nimport re\nimport shlex\nimport subprocess\nimport sys\nimport textwrap\nfrom collections import namedtuple\nfrom pathlib import Path\n\nimport pytest\n\nfrom numpy.f2py.f2py2e import main as f2pycli\nfrom numpy.testing._private.utils import NOGIL_BUILD\n\nfrom . import util\n\n#######################\... | .venv\Lib\site-packages\numpy\f2py\tests\test_f2py2e.py | test_f2py2e.py | Python | 28,798 | 0.95 | 0.098548 | 0.059432 | node-utils | 84 | 2025-06-28T05:22:07.718524 | BSD-3-Clause | true | aa82d7eae955218a2081ddb314dfc470 |
import pytest\n\nimport numpy as np\nfrom numpy.testing import assert_allclose\n\nfrom . import util\n\n\nclass TestISOC(util.F2PyTest):\n sources = [\n util.getpath("tests", "src", "isocintrin", "isoCtests.f90"),\n ]\n\n # gh-24553\n @pytest.mark.slow\n def test_c_double(self):\n out = sel... | .venv\Lib\site-packages\numpy\f2py\tests\test_isoc.py | test_isoc.py | Python | 1,490 | 0.95 | 0.125 | 0.142857 | node-utils | 916 | 2024-01-17T02:11:01.343650 | BSD-3-Clause | true | 7108c87d7f56ffea493c8d69c3554d67 |
import platform\nimport sys\n\nimport pytest\n\nfrom numpy.f2py.crackfortran import (\n _selected_int_kind_func as selected_int_kind,\n)\nfrom numpy.f2py.crackfortran import (\n _selected_real_kind_func as selected_real_kind,\n)\n\nfrom . import util\n\n\nclass TestKind(util.F2PyTest):\n sources = [util.getpat... | .venv\Lib\site-packages\numpy\f2py\tests\test_kind.py | test_kind.py | Python | 1,878 | 0.85 | 0.207547 | 0 | awesome-app | 391 | 2025-06-15T19:47:57.134732 | Apache-2.0 | true | b4998ec2962697c6c3a243e00f268ea4 |
import textwrap\n\nimport pytest\n\nfrom numpy.testing import IS_PYPY\n\nfrom . import util\n\n\nclass TestMixed(util.F2PyTest):\n sources = [\n util.getpath("tests", "src", "mixed", "foo.f"),\n util.getpath("tests", "src", "mixed", "foo_fixed.f90"),\n util.getpath("tests", "src", "mixed", "foo_... | .venv\Lib\site-packages\numpy\f2py\tests\test_mixed.py | test_mixed.py | Python | 897 | 0.85 | 0.114286 | 0 | vue-tools | 880 | 2024-10-27T09:19:33.002802 | Apache-2.0 | true | fcdbb3b612c3422168458303ceafdcb5 |
import textwrap\n\nimport pytest\n\nfrom numpy.testing import IS_PYPY\n\nfrom . import util\n\n\n@pytest.mark.slow\nclass TestModuleFilterPublicEntities(util.F2PyTest):\n sources = [\n util.getpath(\n "tests", "src", "modules", "gh26920",\n "two_mods_with_one_public_routine.f90"\n ... | .venv\Lib\site-packages\numpy\f2py\tests\test_modules.py | test_modules.py | Python | 2,384 | 0.95 | 0.192771 | 0.046154 | vue-tools | 436 | 2023-12-11T00:12:23.692325 | GPL-3.0 | true | 677d5fb0276824e0098594ffd69e5907 |
import pytest\n\nimport numpy as np\n\nfrom . import util\n\n\nclass TestParameters(util.F2PyTest):\n # Check that intent(in out) translates as intent(inout)\n sources = [\n util.getpath("tests", "src", "parameter", "constant_real.f90"),\n util.getpath("tests", "src", "parameter", "constant_integer.... | .venv\Lib\site-packages\numpy\f2py\tests\test_parameter.py | test_parameter.py | Python | 4,763 | 0.95 | 0.100775 | 0.171429 | awesome-app | 679 | 2024-11-20T10:55:03.351532 | MIT | true | a99e63f71138338eaba18ba6ebe212aa |
# This test is ported from numpy.distutils\nfrom numpy.f2py._src_pyf import process_str\nfrom numpy.testing import assert_equal\n\npyf_src = """\npython module foo\n <_rd=real,double precision>\n interface\n subroutine <s,d>foosub(tol)\n <_rd>, intent(in,out) :: tol\n end subroutine <s,d>... | .venv\Lib\site-packages\numpy\f2py\tests\test_pyf_src.py | test_pyf_src.py | Python | 1,177 | 0.95 | 0.069767 | 0.027027 | python-kit | 562 | 2025-03-01T00:31:47.706137 | BSD-3-Clause | true | a257c88c311e05467606da8177ec000f |
"""See https://github.com/numpy/numpy/pull/10676.\n\n"""\nimport sys\n\nimport pytest\n\nfrom . import util\n\n\nclass TestQuotedCharacter(util.F2PyTest):\n sources = [util.getpath("tests", "src", "quoted_character", "foo.f")]\n\n @pytest.mark.skipif(sys.platform == "win32",\n reason="Fails... | .venv\Lib\site-packages\numpy\f2py\tests\test_quoted_character.py | test_quoted_character.py | Python | 495 | 0.95 | 0.111111 | 0 | awesome-app | 151 | 2024-01-07T00:16:09.645509 | Apache-2.0 | true | 709b0170e81ebd21e5e6d725fc6c1b4f |
import os\nimport platform\n\nimport pytest\n\nimport numpy as np\nimport numpy.testing as npt\n\nfrom . import util\n\n\nclass TestIntentInOut(util.F2PyTest):\n # Check that intent(in out) translates as intent(inout)\n sources = [util.getpath("tests", "src", "regression", "inout.f90")]\n\n @pytest.mark.slow\n... | .venv\Lib\site-packages\numpy\f2py\tests\test_regression.py | test_regression.py | Python | 6,384 | 0.95 | 0.15508 | 0.144828 | awesome-app | 293 | 2024-12-03T14:54:20.025923 | MIT | true | 52d59d53a21d2eab88c485fa9c3fd481 |
import platform\n\nimport pytest\n\nfrom numpy import array\n\nfrom . import util\n\nIS_S390X = platform.machine() == "s390x"\n\n\n@pytest.mark.slow\nclass TestReturnCharacter(util.F2PyTest):\n def check_function(self, t, tname):\n if tname in ["t0", "t1", "s0", "s1"]:\n assert t("23") == b"2"\n ... | .venv\Lib\site-packages\numpy\f2py\tests\test_return_character.py | test_return_character.py | Python | 1,582 | 0.85 | 0.125 | 0 | vue-tools | 85 | 2023-08-30T14:41:25.526786 | BSD-3-Clause | true | 510290c35fda3d8554a3badbdc110494 |
import pytest\n\nfrom numpy import array\n\nfrom . import util\n\n\n@pytest.mark.slow\nclass TestReturnComplex(util.F2PyTest):\n def check_function(self, t, tname):\n if tname in ["t0", "t8", "s0", "s8"]:\n err = 1e-5\n else:\n err = 0.0\n assert abs(t(234j) - 234.0j) <= er... | .venv\Lib\site-packages\numpy\f2py\tests\test_return_complex.py | test_return_complex.py | Python | 2,507 | 0.95 | 0.104478 | 0.054545 | node-utils | 847 | 2025-02-17T05:45:07.921232 | Apache-2.0 | true | 9602dfce065343d24d58392a8ea645e4 |
import pytest\n\nfrom numpy import array\n\nfrom . import util\n\n\n@pytest.mark.slow\nclass TestReturnInteger(util.F2PyTest):\n def check_function(self, t, tname):\n assert t(123) == 123\n assert t(123.6) == 123\n assert t("123") == 123\n assert t(-123) == -123\n assert t([123]) =... | .venv\Lib\site-packages\numpy\f2py\tests\test_return_integer.py | test_return_integer.py | Python | 1,868 | 0.95 | 0.109091 | 0.023256 | python-kit | 164 | 2025-04-28T05:59:31.612472 | Apache-2.0 | true | 35a97d8455c0cb8238d9f563afbb8981 |
import pytest\n\nfrom numpy import array\n\nfrom . import util\n\n\nclass TestReturnLogical(util.F2PyTest):\n def check_function(self, t):\n assert t(True) == 1\n assert t(False) == 0\n assert t(0) == 0\n assert t(None) == 0\n assert t(0.0) == 0\n assert t(0j) == 0\n ... | .venv\Lib\site-packages\numpy\f2py\tests\test_return_logical.py | test_return_logical.py | Python | 2,113 | 0.85 | 0.076923 | 0 | node-utils | 305 | 2024-03-20T07:30:08.716390 | BSD-3-Clause | true | cef7b535f2d1b0129af401700a931c82 |
import platform\n\nimport pytest\n\nfrom numpy import array\nfrom numpy.testing import IS_64BIT\n\nfrom . import util\n\n\n@pytest.mark.slow\nclass TestReturnReal(util.F2PyTest):\n def check_function(self, t, tname):\n if tname in ["t0", "t4", "s0", "s4"]:\n err = 1e-5\n else:\n e... | .venv\Lib\site-packages\numpy\f2py\tests\test_return_real.py | test_return_real.py | Python | 3,382 | 0.95 | 0.110092 | 0.010753 | react-lib | 104 | 2024-04-18T13:09:58.913020 | BSD-3-Clause | true | 88b2cdd1ee21afc2546c86620c152716 |
import pytest\n\nfrom . import util\n\n\n@pytest.mark.slow\nclass TestRenamedFunc(util.F2PyTest):\n sources = [\n util.getpath("tests", "src", "routines", "funcfortranname.f"),\n util.getpath("tests", "src", "routines", "funcfortranname.pyf"),\n ]\n module_name = "funcfortranname"\n\n def test... | .venv\Lib\site-packages\numpy\f2py\tests\test_routines.py | test_routines.py | Python | 824 | 0.85 | 0.137931 | 0 | react-lib | 593 | 2025-03-12T21:57:47.336910 | MIT | true | 5a6f346e41ffd0750f363df2da4a3e19 |
import platform\n\nimport pytest\n\nfrom numpy.testing import IS_64BIT\n\nfrom . import util\n\n\n@pytest.mark.skipif(\n platform.system() == "Darwin",\n reason="Prone to error when run with numpy/f2py/tests on mac os, "\n "but not when run in isolation",\n)\n@pytest.mark.skipif(\n not IS_64BIT, reason="32-... | .venv\Lib\site-packages\numpy\f2py\tests\test_semicolon_split.py | test_semicolon_split.py | Python | 1,702 | 0.85 | 0.053333 | 0.015152 | vue-tools | 185 | 2023-08-22T04:18:04.215052 | GPL-3.0 | true | 241b109e3b736e25e174a3ba81076dc1 |
import pytest\n\nimport numpy as np\n\nfrom . import util\n\n\nclass TestSizeSumExample(util.F2PyTest):\n sources = [util.getpath("tests", "src", "size", "foo.f90")]\n\n @pytest.mark.slow\n def test_all(self):\n r = self.module.foo([[]])\n assert r == [0]\n\n r = self.module.foo([[1, 2]])\... | .venv\Lib\site-packages\numpy\f2py\tests\test_size.py | test_size.py | Python | 1,200 | 0.85 | 0.088889 | 0 | react-lib | 576 | 2025-06-08T08:48:38.263839 | MIT | true | f4ca5ed1ad76fdbce392e65a6a35a718 |
import pytest\n\nimport numpy as np\n\nfrom . import util\n\n\nclass TestString(util.F2PyTest):\n sources = [util.getpath("tests", "src", "string", "char.f90")]\n\n @pytest.mark.slow\n def test_char(self):\n strings = np.array(["ab", "cd", "ef"], dtype="c").T\n inp, out = self.module.char_test.ch... | .venv\Lib\site-packages\numpy\f2py\tests\test_string.py | test_string.py | Python | 3,038 | 0.95 | 0.15 | 0.02439 | python-kit | 472 | 2025-03-14T16:58:50.199817 | GPL-3.0 | true | 63a275591e8f2f786e8863558c6d10c6 |
import pytest\n\nfrom numpy.f2py.symbolic import (\n ArithOp,\n Expr,\n Language,\n Op,\n as_apply,\n as_array,\n as_complex,\n as_deref,\n as_eq,\n as_expr,\n as_factors,\n as_ge,\n as_gt,\n as_le,\n as_lt,\n as_ne,\n as_number,\n as_numer_denom,\n as_ref,\n ... | .venv\Lib\site-packages\numpy\f2py\tests\test_symbolic.py | test_symbolic.py | Python | 18,837 | 0.95 | 0.050505 | 0.01182 | react-lib | 537 | 2024-08-02T14:22:15.202782 | MIT | true | 609c0aec8f9d7707c51c4eee020b1ede |
import pytest\n\nfrom . import util\n\n\nclass TestValueAttr(util.F2PyTest):\n sources = [util.getpath("tests", "src", "value_attrspec", "gh21665.f90")]\n\n # gh-21665\n @pytest.mark.slow\n def test_gh21665(self):\n inp = 2\n out = self.module.fortfuncs.square(inp)\n exp_out = 4\n ... | .venv\Lib\site-packages\numpy\f2py\tests\test_value_attrspec.py | test_value_attrspec.py | Python | 345 | 0.95 | 0.133333 | 0.090909 | python-kit | 16 | 2023-12-23T14:13:39.307740 | BSD-3-Clause | true | 2fdaddc4b41134a0338f1e41c36b6d2e |
"""\nUtility functions for\n\n- building and importing modules on test time, using a temporary location\n- detecting if compilers are present\n- determining paths to tests\n\n"""\nimport atexit\nimport concurrent.futures\nimport contextlib\nimport glob\nimport os\nimport shutil\nimport subprocess\nimport sys\nimport te... | .venv\Lib\site-packages\numpy\f2py\tests\util.py | util.py | Python | 12,554 | 0.95 | 0.171946 | 0.102778 | vue-tools | 707 | 2024-06-03T11:54:06.066832 | BSD-3-Clause | true | 3442f50fa29b6d3044f9daab8b0dcd73 |
import pytest\n\nfrom numpy.testing import IS_EDITABLE, IS_WASM\n\nif IS_WASM:\n pytest.skip(\n "WASM/Pyodide does not use or support Fortran",\n allow_module_level=True\n )\n\n\nif IS_EDITABLE:\n pytest.skip(\n "Editable install doesn't support tests with a compile step",\n allow_m... | .venv\Lib\site-packages\numpy\f2py\tests\__init__.py | __init__.py | Python | 345 | 0.85 | 0.125 | 0 | awesome-app | 947 | 2025-04-05T16:35:56.699183 | BSD-3-Clause | true | 00111e98b442351da700056a5765bb06 |
module ops_module\n\n abstract interface\n subroutine op(x, y, z)\n integer, intent(in) :: x, y\n integer, intent(out) :: z\n end subroutine\n end interface\n\ncontains\n\n subroutine foo(x, y, r1, r2)\n integer, intent(in) :: x, y\n integer, intent(out) :: r1, r2\n procedure (op) add1, add2... | .venv\Lib\site-packages\numpy\f2py\tests\src\abstract_interface\foo.f90 | foo.f90 | Other | 692 | 0.7 | 0 | 0 | node-utils | 422 | 2024-10-27T22:01:42.791691 | GPL-3.0 | true | 8a92e219be7c36cc6b0eff706161716b |
module test\n abstract interface\n subroutine foo()\n end subroutine\n end interface\nend module test\n | .venv\Lib\site-packages\numpy\f2py\tests\src\abstract_interface\gh18403_mod.f90 | gh18403_mod.f90 | Other | 111 | 0.7 | 0 | 0 | awesome-app | 859 | 2024-07-17T15:02:23.266332 | GPL-3.0 | true | 25fb80bff7c0950e6857fea02a0a31e8 |
/*\n * This file was auto-generated with f2py (version:2_1330) and hand edited by\n * Pearu for testing purposes. Do not edit this file unless you know what you\n * are doing!!!\n */\n\n#ifdef __cplusplus\nextern "C" {\n#endif\n\n/*********************** See f2py2e/cfuncs.py: includes ***********************/\n\n#defi... | .venv\Lib\site-packages\numpy\f2py\tests\src\array_from_pyobj\wrapmodule.c | wrapmodule.c | C | 7,713 | 0.95 | 0.046809 | 0.102804 | node-utils | 787 | 2024-02-28T03:30:23.728365 | MIT | true | d69fd5667c1da3b4591c89352f1ac647 |
dict(real=dict(rk="double"))\n | .venv\Lib\site-packages\numpy\f2py\tests\src\assumed_shape\.f2py_f2cmap | .f2py_f2cmap | Other | 30 | 0.5 | 0 | 0 | vue-tools | 285 | 2024-09-12T07:17:51.731893 | Apache-2.0 | true | c04481aabab156da56c40fd22b95dc1e |
\nsubroutine sum(x, res)\n implicit none\n real, intent(in) :: x(:)\n real, intent(out) :: res\n\n integer :: i\n\n !print *, "sum: size(x) = ", size(x)\n\n res = 0.0\n\n do i = 1, size(x)\n res = res + x(i)\n enddo\n\nend subroutine sum\n\nfunction fsum(x) result (res)\n implicit none\n real, intent(in) :... | .venv\Lib\site-packages\numpy\f2py\tests\src\assumed_shape\foo_free.f90 | foo_free.f90 | Other | 494 | 0.85 | 0.058824 | 0 | python-kit | 125 | 2024-08-19T23:05:12.935760 | BSD-3-Clause | true | a69343f6056ba6a4324c66f8b9d9e50a |
\nmodule mod\n\ncontains\n\nsubroutine sum(x, res)\n implicit none\n real, intent(in) :: x(:)\n real, intent(out) :: res\n\n integer :: i\n\n !print *, "sum: size(x) = ", size(x)\n\n res = 0.0\n\n do i = 1, size(x)\n res = res + x(i)\n enddo\n\nend subroutine sum\n\nfunction fsum(x) result (res)\n implicit ... | .venv\Lib\site-packages\numpy\f2py\tests\src\assumed_shape\foo_mod.f90 | foo_mod.f90 | Other | 540 | 0.85 | 0.04878 | 0 | react-lib | 606 | 2024-09-06T14:12:36.757260 | BSD-3-Clause | true | 0da3b3274b02317e14d693041cbde4ae |
subroutine sum_with_use(x, res)\n use precision\n\n implicit none\n\n real(kind=rk), intent(in) :: x(:)\n real(kind=rk), intent(out) :: res\n\n integer :: i\n\n !print *, "size(x) = ", size(x)\n\n res = 0.0\n\n do i = 1, size(x)\n res = res + x(i)\n enddo\n\n end subroutine\n | .venv\Lib\site-packages\numpy\f2py\tests\src\assumed_shape\foo_use.f90 | foo_use.f90 | Other | 288 | 0.7 | 0 | 0 | node-utils | 353 | 2024-03-22T15:20:06.669434 | MIT | true | fd0decb55db8bd7394602783f2f5e70c |
module precision\n integer, parameter :: rk = selected_real_kind(8)\n integer, parameter :: ik = selected_real_kind(4)\nend module\n | .venv\Lib\site-packages\numpy\f2py\tests\src\assumed_shape\precision.f90 | precision.f90 | Other | 134 | 0.7 | 0 | 0 | python-kit | 560 | 2024-06-11T17:26:07.654461 | MIT | true | 7794551eb6822ffb885a9688ce95d98c |
SUBROUTINE FOO()\n INTEGER BAR(2, 3)\n\n COMMON /BLOCK/ BAR\n RETURN\n END\n | .venv\Lib\site-packages\numpy\f2py\tests\src\block_docstring\foo.f | foo.f | Other | 103 | 0.5 | 0 | 0 | vue-tools | 314 | 2024-03-28T19:05:48.409919 | MIT | true | 33138baf3d4995fbb1ee5a2268dc77fd |
subroutine t(fun,a)\n integer a\ncf2py intent(out) a\n external fun\n call fun(a)\n end\n\n subroutine func(a)\ncf2py intent(in,out) a\n integer a\n a = a + 11\n end\n\n subroutine func0(a)\ncf2py intent(out) a\n integer a\n a = 11\n end\... | .venv\Lib\site-packages\numpy\f2py\tests\src\callback\foo.f | foo.f | Other | 1,316 | 0.7 | 0 | 0 | awesome-app | 737 | 2024-03-24T05:11:33.539788 | GPL-3.0 | true | 1176123399487c201983701981d88a86 |
function gh17797(f, y) result(r)\n external f\n integer(8) :: r, f\n integer(8), dimension(:) :: y\n r = f(0)\n r = r + sum(y)\nend function gh17797\n | .venv\Lib\site-packages\numpy\f2py\tests\src\callback\gh17797.f90 | gh17797.f90 | Other | 155 | 0.85 | 0.285714 | 0 | vue-tools | 992 | 2024-12-08T22:14:14.061713 | GPL-3.0 | true | 1abb23e4b6ebdbf91d09495df76f69cc |
! When gh18335_workaround is defined as an extension,\n ! the issue cannot be reproduced.\n !subroutine gh18335_workaround(f, y)\n ! implicit none\n ! external f\n ! integer(kind=1) :: y(1)\n ! call f(y)\n !end subroutine gh18335_workaround\n\n functio... | .venv\Lib\site-packages\numpy\f2py\tests\src\callback\gh18335.f90 | gh18335.f90 | Other | 523 | 0.85 | 0.117647 | 0 | node-utils | 860 | 2025-01-13T03:30:48.289826 | GPL-3.0 | true | 5f79f4e299da117fc73d19f1a4d9fd56 |
SUBROUTINE FOO(FUN,R)\n EXTERNAL FUN\n INTEGER I\n REAL*8 R, FUN\nCf2py intent(out) r\n R = 0D0\n DO I=-5,5\n R = R + FUN(I)\n ENDDO\n END\n | .venv\Lib\site-packages\numpy\f2py\tests\src\callback\gh25211.f | gh25211.f | Other | 189 | 0.7 | 0 | 0 | python-kit | 822 | 2024-10-19T12:40:34.082654 | Apache-2.0 | true | 3a77138b80690bc9be0d25f1f42cff67 |
python module __user__routines\n interface\n function fun(i) result (r)\n integer :: i\n real*8 :: r\n end function fun\n end interface\nend python module __user__routines\n\npython module callback2\n interface\n subroutine foo(f,r)\n use __user__routines, ... | .venv\Lib\site-packages\numpy\f2py\tests\src\callback\gh25211.pyf | gh25211.pyf | Other | 465 | 0.85 | 0.111111 | 0 | vue-tools | 897 | 2024-01-08T08:27:39.508594 | BSD-3-Clause | true | cba180edf6de31fb469e377eed167957 |
module utils\n implicit none\n contains\n subroutine my_abort(message)\n implicit none\n character(len=*), intent(in) :: message\n !f2py callstatement PyErr_SetString(PyExc_ValueError, message);f2py_success = 0;\n !f2py callprotoargument char*\n write(0,*) "THIS SHOULD NOT APPEAR"\n ... | .venv\Lib\site-packages\numpy\f2py\tests\src\callback\gh26681.f90 | gh26681.f90 | Other | 584 | 0.7 | 0 | 0 | awesome-app | 981 | 2025-05-05T00:25:26.825566 | GPL-3.0 | true | f0309ae6cfeec708e60549e0eb9a25aa |
python module test_22819\n interface\n subroutine hello()\n end subroutine hello\n end interface\nend python module test_22819\n | .venv\Lib\site-packages\numpy\f2py\tests\src\cli\gh_22819.pyf | gh_22819.pyf | Other | 148 | 0.7 | 0 | 0 | node-utils | 92 | 2025-03-25T09:40:21.362780 | Apache-2.0 | true | 10a12fb0fde126979312d9463555aed5 |
SUBROUTINE HI\n PRINT*, "HELLO WORLD"\n END SUBROUTINE\n | .venv\Lib\site-packages\numpy\f2py\tests\src\cli\hi77.f | hi77.f | Other | 74 | 0.5 | 0 | 0 | node-utils | 824 | 2024-03-14T02:02:11.079757 | Apache-2.0 | true | ea12d2a40167ca60f2813275c8faa820 |
function hi()\n print*, "Hello World"\nend function\n | .venv\Lib\site-packages\numpy\f2py\tests\src\cli\hiworld.f90 | hiworld.f90 | Other | 54 | 0.65 | 0.666667 | 0 | react-lib | 751 | 2024-09-04T07:33:40.745837 | BSD-3-Clause | true | be2bc6d0669262fec7937d7fbb9aa7bc |
SUBROUTINE INITCB\n DOUBLE PRECISION LONG\n CHARACTER STRING\n INTEGER OK\n \n COMMON /BLOCK/ LONG, STRING, OK\n LONG = 1.0\n STRING = '2'\n OK = 3\n RETURN\n END\n | .venv\Lib\site-packages\numpy\f2py\tests\src\common\block.f | block.f | Other | 235 | 0.7 | 0 | 0 | node-utils | 118 | 2024-09-20T06:59:28.119250 | Apache-2.0 | true | 95ef7f58d67a3c8f3c5c1265ef56ff20 |
module typedefmod\n use iso_fortran_env, only: real32\nend module typedefmod\n\nmodule data\n use typedefmod, only: real32\n implicit none\n real(kind=real32) :: x\n common/test/x\nend module data\n | .venv\Lib\site-packages\numpy\f2py\tests\src\common\gh19161.f90 | gh19161.f90 | Other | 203 | 0.7 | 0 | 0 | react-lib | 444 | 2024-08-05T00:25:16.916776 | Apache-2.0 | true | 8179a75d5f8f8e0529e24a01161c9238 |
module foo\n public\n type, private, bind(c) :: a\n integer :: i\n end type a\n type, bind(c) :: b_\n integer :: j\n end type b_\n public :: b_\n type :: c\n integer :: k\n end type c\nend module foo\n | .venv\Lib\site-packages\numpy\f2py\tests\src\crackfortran\accesstype.f90 | accesstype.f90 | Other | 221 | 0.7 | 0 | 0 | vue-tools | 877 | 2024-03-05T17:40:04.634372 | BSD-3-Clause | true | ac0d3ab2ee129daeca40e1fe8429bc2c |
subroutine common_with_division\n integer lmu,lb,lub,lpmin\n parameter (lmu=1)\n parameter (lb=20)\nc crackfortran fails to parse this \nc parameter (lub=(lb-1)*lmu+1)\nc crackfortran can successfully parse this though\n parameter (lub=lb*lmu-lmu+1)\n parameter (lpmin=2)\n\nc... | .venv\Lib\site-packages\numpy\f2py\tests\src\crackfortran\common_with_division.f | common_with_division.f | Other | 511 | 0.7 | 0 | 0 | react-lib | 420 | 2024-08-11T02:14:07.132264 | MIT | true | 86e1fad082edf592004eb4cca5dbc778 |
BLOCK DATA PARAM_INI\n COMMON /MYCOM/ MYDATA\n DATA MYDATA /0/\n END\n SUBROUTINE SUB1\n COMMON /MYCOM/ MYDATA\n MYDATA = MYDATA + 1\n END\n | .venv\Lib\site-packages\numpy\f2py\tests\src\crackfortran\data_common.f | data_common.f | Other | 201 | 0.7 | 0 | 0 | node-utils | 10 | 2025-02-09T06:05:57.066633 | BSD-3-Clause | true | 837010ba3f26a7fd5e03ad68db05d2e6 |
BLOCK DATA MYBLK\n IMPLICIT DOUBLE PRECISION (A-H,O-Z)\n COMMON /MYCOM/ IVAR1, IVAR2, IVAR3, IVAR4, EVAR5\n DATA IVAR1, IVAR2, IVAR3, IVAR4, EVAR5 /2*3,2*2,0.0D0/\n END\n | .venv\Lib\site-packages\numpy\f2py\tests\src\crackfortran\data_multiplier.f | data_multiplier.f | Other | 202 | 0.7 | 0 | 0 | react-lib | 853 | 2024-04-09T23:51:04.362167 | MIT | true | d1dddcd2b6752ad64205876be6c77665 |
! gh-23276\nmodule cmplxdat\n implicit none\n integer :: i, j\n real :: x, y\n real, dimension(2) :: z\n real(kind=8) :: pi\n complex(kind=8), target :: medium_ref_index\n complex(kind=8), target :: ref_index_one, ref_index_two\n complex(kind=8), dimension(2) :: my_array\n real(kind=8), dimension(3) :: my_real... | .venv\Lib\site-packages\numpy\f2py\tests\src\crackfortran\data_stmts.f90 | data_stmts.f90 | Other | 713 | 0.7 | 0 | 0 | node-utils | 813 | 2025-07-02T10:37:43.428619 | BSD-3-Clause | true | 5b7f50cd33daebce1e699e465c77a362 |
BLOCK DATA PARAM_INI\n COMMON /MYCOM/ MYTAB\n INTEGER MYTAB(3)\n DATA MYTAB/\n * 0, ! 1 and more commenty stuff\n * 4, ! 2\n * 0 /\n END\n | .venv\Lib\site-packages\numpy\f2py\tests\src\crackfortran\data_with_comments.f | data_with_comments.f | Other | 183 | 0.7 | 0 | 0.375 | vue-tools | 801 | 2025-05-18T12:57:31.835116 | GPL-3.0 | true | fda44d5052ac389077a7db308677ec09 |
module foo\n type bar\n character(len = 4) :: text\n end type bar\n type(bar), parameter :: abar = bar('abar')\nend module foo\n | .venv\Lib\site-packages\numpy\f2py\tests\src\crackfortran\foo_deps.f90 | foo_deps.f90 | Other | 134 | 0.7 | 0 | 0 | vue-tools | 650 | 2024-03-22T18:01:12.005331 | GPL-3.0 | true | 66e2afa1293c280ca72d5fe8dec98a8a |
subroutine subb(k)\n real(8), intent(inout) :: k(:)\n k=k+1\n endsubroutine\n\n subroutine subc(w,k)\n real(8), intent(in) :: w(:)\n real(8), intent(out) :: k(size(w))\n k=w+1\n endsubroutine\n\n function t0(value)\n character val... | .venv\Lib\site-packages\numpy\f2py\tests\src\crackfortran\gh15035.f | gh15035.f | Other | 391 | 0.85 | 0.0625 | 0 | react-lib | 806 | 2023-07-22T21:38:06.115927 | GPL-3.0 | true | 0b0c498ac445a7eb4f2dd5a93f2c7749 |
integer(8) function external_as_statement(fcn)\n implicit none\n external fcn\n integer(8) :: fcn\n external_as_statement = fcn(0)\n end\n\n integer(8) function external_as_attribute(fcn)\n implicit none\n integer(8), external :: fcn\n external_as_a... | .venv\Lib\site-packages\numpy\f2py\tests\src\crackfortran\gh17859.f | gh17859.f | Other | 352 | 0.85 | 0.166667 | 0 | react-lib | 258 | 2024-09-23T04:21:14.278942 | Apache-2.0 | true | 1ed51b057e2ba7406d7d42ccc1ecefcf |
python module iri16py ! in\n interface ! in :iri16py\n block data ! in :iri16py:iridreg_modified.for\n COMMON /fircom/ eden,tabhe,tabla,tabmo,tabza,tabfl\n end block data \n end interface \nend python module iri16py\n | .venv\Lib\site-packages\numpy\f2py\tests\src\crackfortran\gh22648.pyf | gh22648.pyf | Other | 248 | 0.7 | 0.142857 | 0 | python-kit | 535 | 2023-12-03T01:30:02.791175 | MIT | true | feb0071773cd892b8fff674ee2780a7c |
SUBROUTINE EXAMPLE( )\n IF( .TRUE. ) THEN\n CALL DO_SOMETHING()\n END IF ! ** .TRUE. **\n END\n | .venv\Lib\site-packages\numpy\f2py\tests\src\crackfortran\gh23533.f | gh23533.f | Other | 131 | 0.7 | 0 | 0 | node-utils | 212 | 2023-09-06T17:57:49.293473 | GPL-3.0 | true | e346e5a1dbeb9f7abb4ec665375f059b |
integer function intproduct(a, b) result(res)\n integer, intent(in) :: a, b\n res = a*b\nend function\n | .venv\Lib\site-packages\numpy\f2py\tests\src\crackfortran\gh23598.f90 | gh23598.f90 | Other | 105 | 0.85 | 0.5 | 0 | react-lib | 713 | 2024-03-29T02:03:55.928610 | MIT | true | a87973d48a037bbdc2e2f76aec82d351 |
module test_bug\n implicit none\n private\n public :: intproduct\n\ncontains\n integer function intproduct(a, b) result(res)\n integer, intent(in) :: a, b\n res = a*b\n end function\nend module\n | .venv\Lib\site-packages\numpy\f2py\tests\src\crackfortran\gh23598Warn.f90 | gh23598Warn.f90 | Other | 216 | 0.85 | 0.181818 | 0 | node-utils | 235 | 2023-12-31T18:07:35.762724 | GPL-3.0 | true | 739654d0fd37ed065c53593a30608697 |
module gh23879\n implicit none\n private\n public :: foo\n\n contains\n\n subroutine foo(a, b)\n integer, intent(in) :: a\n integer, intent(out) :: b\n b = a\n call bar(b)\n end subroutine\n\n subroutine bar(x)\n integer, intent(inout) :: x\n x = 2*x\n end sub... | .venv\Lib\site-packages\numpy\f2py\tests\src\crackfortran\gh23879.f90 | gh23879.f90 | Other | 352 | 0.7 | 0 | 0 | vue-tools | 513 | 2025-04-08T17:50:24.402927 | MIT | true | 4530e88ba6bfb2db05c2db89d10dcd87 |
module utils\n implicit none\n contains\n subroutine my_abort(message)\n implicit none\n character(len=*), intent(in) :: message\n !f2py callstatement PyErr_SetString(PyExc_ValueError, message);f2py_success = 0;\n !f2py callprotoargument char*\n write(0,*) "THIS SHOULD NOT APPEAR"\n ... | .venv\Lib\site-packages\numpy\f2py\tests\src\crackfortran\gh27697.f90 | gh27697.f90 | Other | 376 | 0.7 | 0 | 0 | vue-tools | 986 | 2023-11-09T18:55:24.531202 | Apache-2.0 | true | ba93961467067fff54f7e6b6a67f563d |
subroutine gh2848( &\n ! first 2 parameters\n par1, par2,&\n ! last 2 parameters\n par3, par4)\n\n integer, intent(in) :: par1, par2\n integer, intent(out) :: par3, par4\n\n par3 = par1\n par4 = par2\n\n end subroutine gh2848\n | .venv\Lib\site-packages\numpy\f2py\tests\src\crackfortran\gh2848.f90 | gh2848.f90 | Other | 295 | 0.7 | 0 | 0 | react-lib | 21 | 2025-01-06T12:39:07.624144 | Apache-2.0 | true | 87b969a23de007f2e5e1c8396b669089 |
module foo\n type bar\n character(len = 32) :: item\n end type bar\n interface operator(.item.)\n module procedure item_int, item_real\n end interface operator(.item.)\n interface operator(==)\n module procedure items_are_equal\n end interface operator(==)\n interface assignment(=)\n module proce... | .venv\Lib\site-packages\numpy\f2py\tests\src\crackfortran\operators.f90 | operators.f90 | Other | 1,233 | 0.85 | 0.122449 | 0 | react-lib | 234 | 2023-10-23T10:56:33.105606 | MIT | true | 624409b8666b2f12a3567dac8851433c |
module foo\n private\n integer :: a\n public :: setA\n integer :: b\ncontains\n subroutine setA(v)\n integer, intent(in) :: v\n a = v\n end subroutine setA\nend module foo\n | .venv\Lib\site-packages\numpy\f2py\tests\src\crackfortran\privatemod.f90 | privatemod.f90 | Other | 185 | 0.7 | 0 | 0 | awesome-app | 208 | 2025-06-02T12:33:05.539897 | MIT | true | a1e7c4a56c18c206d932564ae0634543 |
module foo\n public\n integer, private :: a\n public :: setA\ncontains\n subroutine setA(v)\n integer, intent(in) :: v\n a = v\n end subroutine setA\nend module foo\n | .venv\Lib\site-packages\numpy\f2py\tests\src\crackfortran\publicmod.f90 | publicmod.f90 | Other | 177 | 0.7 | 0 | 0 | node-utils | 430 | 2024-11-28T15:04:09.696142 | Apache-2.0 | true | 3c8290983742684ffccf148cf7d9e769 |
module foo\n public\n integer, private :: a\n integer :: b\ncontains\n subroutine setA(v)\n integer, intent(in) :: v\n a = v\n end subroutine setA\nend module foo\n | .venv\Lib\site-packages\numpy\f2py\tests\src\crackfortran\pubprivmod.f90 | pubprivmod.f90 | Other | 175 | 0.7 | 0 | 0 | react-lib | 760 | 2024-07-31T04:00:04.853489 | BSD-3-Clause | true | 66725a0921c571256633befdd0e51241 |
subroutine foo(x)\n real(8), intent(in) :: x\n ! Écrit à l'écran la valeur de x\nend subroutine\n | .venv\Lib\site-packages\numpy\f2py\tests\src\crackfortran\unicode_comment.f90 | unicode_comment.f90 | Other | 102 | 0.5 | 0 | 0 | react-lib | 502 | 2023-08-08T11:37:27.773273 | BSD-3-Clause | true | 7a62e12f054da463c0dcf5a53a0df35f |
dict(real=dict(real32='float', real64='double'), integer=dict(int64='long_long'))\n | .venv\Lib\site-packages\numpy\f2py\tests\src\f2cmap\.f2py_f2cmap | .f2py_f2cmap | Other | 83 | 0.5 | 0 | 0 | python-kit | 139 | 2023-09-09T14:59:19.105823 | Apache-2.0 | true | 6654f233e7cb583e6f858b0a4358034b |
subroutine func1(n, x, res)\n use, intrinsic :: iso_fortran_env, only: int64, real64\n implicit none\n integer(int64), intent(in) :: n\n real(real64), intent(in) :: x(n)\n real(real64), intent(out) :: res\n!f2py intent(hide) :: n\n res = sum(x)\n end\n | .venv\Lib\site-packages\numpy\f2py\tests\src\f2cmap\isoFortranEnvMap.f90 | isoFortranEnvMap.f90 | Other | 307 | 0.7 | 0 | 0 | react-lib | 596 | 2025-06-20T11:54:48.324120 | MIT | true | 1bc31127c6a28f8275f29e5a30e2c3d0 |
module coddity\n use iso_c_binding, only: c_double, c_int, c_int64_t\n implicit none\n contains\n subroutine c_add(a, b, c) bind(c, name="c_add")\n real(c_double), intent(in) :: a, b\n real(c_double), intent(out) :: c\n c = a + b\n end subroutine c_add\n ! gh-9693\n f... | .venv\Lib\site-packages\numpy\f2py\tests\src\isocintrin\isoCtests.f90 | isoCtests.f90 | Other | 1,032 | 0.85 | 0.058824 | 0 | python-kit | 267 | 2024-12-05T13:49:46.892810 | GPL-3.0 | true | d2e56f8bdbc73d46941de6f19e08c753 |
\n\nsubroutine selectedrealkind(p, r, res)\n implicit none\n \n integer, intent(in) :: p, r\n !f2py integer :: r=0\n integer, intent(out) :: res\n res = selected_real_kind(p, r)\n\nend subroutine\n\nsubroutine selectedintkind(p, res)\n implicit none\n\n integer, intent(in) :: p\n integer, intent(out) :: res\n ... | .venv\Lib\site-packages\numpy\f2py\tests\src\kind\foo.f90 | foo.f90 | Other | 367 | 0.7 | 0 | 0 | react-lib | 835 | 2024-09-21T04:26:10.082348 | MIT | true | 8b853660a733c8c56363d50285276941 |
subroutine bar11(a)\ncf2py intent(out) a\n integer a\n a = 11\n end\n | .venv\Lib\site-packages\numpy\f2py\tests\src\mixed\foo.f | foo.f | Other | 90 | 0.5 | 0 | 0 | react-lib | 268 | 2025-03-03T04:03:01.027674 | Apache-2.0 | true | e19fbb5b38d296a8d72b8bbed1dbe7e7 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.