<commit_before>import { createApi, fetchBaseQuery } from "@reduxjs/toolkit/query/react";
import { setBaseUrl } from "../../utilities/url-utilities";

const BASE_URL = setBaseUrl(`ajax/projects/sample-metadata`);

export const metadataImportApi = createApi({
  reducerPath: `metadataImportApi`,
  baseQuery: fetchBaseQuery({ baseUrl: BASE_URL }),
  tagTypes: ["MetadataImport"],
  endpoints: (build) => ({
    createProjectSampleMetadata: build.query({
      query: (projectId) => ({
        url: `/upload/getMetadata`,
        params: {
          projectId,
        }
      }),
    }),
    clearProjectSampleMetadata: build.query({
      query: (projectId) => ({
        url: `/upload/clear`,
        params: {
          projectId,<commit_msg>missing comment<commit_after>import { createApi, fetchBaseQuery } from "@reduxjs/toolkit/query/react";
import { setBaseUrl } from "../../utilities/url-utilities";

const BASE_URL = setBaseUrl(`ajax/projects/sample-metadata`);

/**
 * Redux API for Sample Metadata
 * @type {Api<(args: (string | FetchArgs), api: BaseQueryApi, extraOptions: {}) => MaybePromise<QueryReturnValue<unknown, FetchBaseQueryError, FetchBaseQueryMeta>>, {createProjectSampleMetadata: *, clearProjectSampleMetadata: *}, string, string, typeof coreModuleName> | Api<(args: (string | FetchArgs), api: BaseQueryApi, extraOptions: {}) => MaybePromise<QueryReturnValue<unknown, FetchBaseQueryError, FetchBaseQueryMeta>>, {createProjectSampleMetadata: *, clearProjectSampleMetadata: *}, string, string, typeof coreModuleName | typeof reactHooksModuleName>}
 */
export const metadataImportApi = createApi({
  reducerPath: `metadataImportApi`,
  baseQuery: fetchBaseQuery({ baseUrl: BASE_URL }),
  tagTypes: ["MetadataImport"],
  endpoints: (build) => ({
    createProjectSampleMetadata: build.query({
      query: (projectId) => ({
        url: `/upload/getMetadata`,
        params: {
          projectId,
        }
      }),
    }),
    clearProjectSampleMetadata: build.query({
      query: (projectId) => ({
        url: `/upload/clear`,
        params: {
          projectId,
{'fraction_non_alphanumeric': 0.1416267942583732, 'fraction_numerical': 0.0, 'mean_word_length': 3.990453460620525, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 17, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, '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': '676839', 'n_tokens_mistral': 599, 'n_tokens_neox': 607, 'n_words': 122}