<commit_before>import Config from "#SRC/js/config/Config";
import { map } from "rxjs/operators";
import { request, RequestResponse } from "@dcos/http-service";

import { buildRequestHeader, getErrorMessage } from "./utils";

import { PackageVersionsResponse } from "../";

export const CosmosClient = {
  listPackageVersions: (packageName: string) =>
    request<PackageVersionsResponse>(
      `${Config.rootUrl || "/"}package/list-versions`,
      {
        method: "POST",<commit_msg>fix(cosmos-client): move import<commit_after>import { map } from "rxjs/operators";
import { request, RequestResponse } from "@dcos/http-service";

import Config from "#SRC/js/config/Config";
import { buildRequestHeader, getErrorMessage } from "./utils";

import { PackageVersionsResponse } from "../";

export const CosmosClient = {
  listPackageVersions: (packageName: string) =>
    request<PackageVersionsResponse>(
      `${Config.rootUrl || "/"}package/list-versions`,
      {
        method: "POST",
{'fraction_non_alphanumeric': 0.14717741935483872, 'fraction_numerical': 0.0, 'mean_word_length': 4.456043956043956, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 7, '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': '516165', 'n_tokens_mistral': 281, 'n_tokens_neox': 282, 'n_words': 65}