<commit_before><?xml version="1.0" encoding="utf-8" ?>
<!DOCTYPE erlref SYSTEM "erlref.dtd">

<erlref>
  <header>
    <copyright>
      <year>1996</year><year>2013</year>
      <holder>Ericsson AB. All Rights Reserved.</holder>
    </copyright>
    <legalnotice>
      Licensed under the Apache License, Version 2.0 (the "License");
      you may not use this file except in compliance with the License.
      You may obtain a copy of the License at
 
          http://www.apache.org/licenses/LICENSE-2.0

      Unless required by applicable law or agreed to in writing, software
      distributed under the License is distributed on an "AS IS" BASIS,
      WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
      See the License for the specific language governing permissions and
      limitations under the License.
    
    </legalnotice>

    <title>erl_prim_loader</title>
    <prepared></prepared>
    <docno></docno>
    <date></date>
    <rev></rev>
    <file>erl_prim_loader.xml</file>
  </header>
  <module>erl_prim_loader</module>
  <modulesummary>Low Level Erlang Loader</modulesummary>
  <description>
    <p><c>erl_prim_loader</c> is used to load all Erlang modules into
      the system. The start script is also fetched with this low level
      loader.</p>
    <p><c>erl_prim_loader</c> knows about the environment and how to
      fetch modules.</p>
    <p>The <c>-loader Loader</c> command line flag can be used to
      choose the method used by the <c>erl_prim_loader</c>. Two
      <c>Loader</c> methods are supported by the Erlang runtime system:
      <c>efile</c> and <c>inet</c>.</p>

    <warning><p>The support for loading of code from archive files is
     experimental. The sole purpose of releasing it before it is ready
     is to obtain early feedback. The file format, semantics,
     interfaces etc. may be changed in a future release. The functions
     <c>list_dir/1</c> and <c>read_file_info/1</c> as well as the flag
     <c>-loader_debug</c> are also experimental</p></warning>

  </description>

  <funcs>
    <func>
      <name name="get_file" arity="1"/>
      <fsummary>Get a file</fsummary>
      <desc>
        <p>This function fetches a file using the low level loader.
          <c><anno>Filename</anno></c> is either an absolute file name or just the name
          of the file, for example <c>"lists.beam"</c>. If an internal
          path is set to the loader, this path is used to find the file.
          If a user supplied loader is used, the path can be stripped
          off if it is obsolete, and the loader does not use a path.
          <c><anno>FullName</anno></c> is the complete name of the fetched file.
          <c><anno>Bin</anno></c> is the contents of the file as a binary.</p>

	  <p>The <c><anno>Filename</anno></c> can also be a file in an archive. For example
          <c>$OTPROOT/lib/</c><c>mnesia-4.4.7.ez/mnesia-4.4.7/ebin/</c><c>mnesia.beam</c>.
          See <seealso marker="kernel:code">code(3)</seealso> about archive files.</p>
      </desc>
    </func>
    <func>
      <name name="get_path" arity="0"/>
      <fsummary>Get the path set in the loader</fsummary>
      <desc>
        <p>This function gets the path set in the loader. The path is
          set by the <c>init</c> process according to information found
          in the start script.</p>
      </desc>
    </func>
    <func>
      <name name="list_dir" arity="1"/>
      <fsummary>List files in a directory</fsummary>
      <desc>
        <p>Lists all the files in a directory. Returns
          <c>{ok, <anno>Filenames</anno>}</c> if successful. Otherwise, it returns
          <c>error</c>. <c><anno>Filenames</anno></c> is a list of<commit_msg>erl_prim_loader doc: Remove mention of user supplied loader<commit_after><?xml version="1.0" encoding="utf-8" ?>
<!DOCTYPE erlref SYSTEM "erlref.dtd">

<erlref>
  <header>
    <copyright>
      <year>1996</year><year>2013</year>
      <holder>Ericsson AB. All Rights Reserved.</holder>
    </copyright>
    <legalnotice>
      Licensed under the Apache License, Version 2.0 (the "License");
      you may not use this file except in compliance with the License.
      You may obtain a copy of the License at
 
          http://www.apache.org/licenses/LICENSE-2.0

      Unless required by applicable law or agreed to in writing, software
      distributed under the License is distributed on an "AS IS" BASIS,
      WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
      See the License for the specific language governing permissions and
      limitations under the License.
    
    </legalnotice>

    <title>erl_prim_loader</title>
    <prepared></prepared>
    <docno></docno>
    <date></date>
    <rev></rev>
    <file>erl_prim_loader.xml</file>
  </header>
  <module>erl_prim_loader</module>
  <modulesummary>Low Level Erlang Loader</modulesummary>
  <description>
    <p><c>erl_prim_loader</c> is used to load all Erlang modules into
      the system. The start script is also fetched with this low level
      loader.</p>
    <p><c>erl_prim_loader</c> knows about the environment and how to
      fetch modules.</p>
    <p>The <c>-loader Loader</c> command line flag can be used to
      choose the method used by the <c>erl_prim_loader</c>. Two
      <c>Loader</c> methods are supported by the Erlang runtime system:
      <c>efile</c> and <c>inet</c>.</p>

    <warning><p>The support for loading of code from archive files is
     experimental. The sole purpose of releasing it before it is ready
     is to obtain early feedback. The file format, semantics,
     interfaces etc. may be changed in a future release. The functions
     <c>list_dir/1</c> and <c>read_file_info/1</c> as well as the flag
     <c>-loader_debug</c> are also experimental</p></warning>

  </description>

  <funcs>
    <func>
      <name name="get_file" arity="1"/>
      <fsummary>Get a file</fsummary>
      <desc>
        <p>This function fetches a file using the low level loader.
          <c><anno>Filename</anno></c> is either an absolute file name or just the name
          of the file, for example <c>"lists.beam"</c>. If an internal
          path is set to the loader, this path is used to find the file.
          <c><anno>FullName</anno></c> is the complete name of the fetched file.
          <c><anno>Bin</anno></c> is the contents of the file as a binary.</p>

	  <p>The <c><anno>Filename</anno></c> can also be a file in an archive. For example
          <c>$OTPROOT/lib/</c><c>mnesia-4.4.7.ez/mnesia-4.4.7/ebin/</c><c>mnesia.beam</c>.
          See <seealso marker="kernel:code">code(3)</seealso> about archive files.</p>
      </desc>
    </func>
    <func>
      <name name="get_path" arity="0"/>
      <fsummary>Get the path set in the loader</fsummary>
      <desc>
        <p>This function gets the path set in the loader. The path is
          set by the <c>init</c> process according to information found
          in the start script.</p>
      </desc>
    </func>
    <func>
      <name name="list_dir" arity="1"/>
      <fsummary>List files in a directory</fsummary>
      <desc>
        <p>Lists all the files in a directory. Returns
          <c>{ok, <anno>Filenames</anno>}</c> if successful. Otherwise, it returns
          <c>error</c>. <c><anno>Filenames</anno></c> is a list of
{'fraction_non_alphanumeric': 0.11977677963794746, 'fraction_numerical': 0.007349938750510413, 'mean_word_length': 2.7720739219712525, 'pattern_counts': {'":': 0, '<': 259, '<?xml version=': 2, '>': 259, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, 'xml': 4}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5427635', 'n_tokens_mistral': 2303, 'n_tokens_neox': 2226, 'n_words': 809}