<commit_before>/**
 * Created by fsuda on 18.09.2018.
 */
import { details, emptyDraft } from "../detail-definitions.js";
import { findLatestIntervallEndInJsonLdOrNowAndAddMillis } from "../../app/won-utils.js";

export const complainGroup = {
  identifier: "complaingroup",
  label: "Complaints",
  icon: undefined,
  useCases: {
    complain: {
      identifier: "complain",
      label: "Complain about something",
      icon: "#ico36_uc_wtf",
      timeToLiveMillisDefault: 1000 * 60 * 60 * 24 * 30,
      doNotMatchAfter: findLatestIntervallEndInJsonLdOrNowAndAddMillis,
      draft: {
        ...emptyDraft,
        content: {
          type: "won:Complaint",
          title: "WTF?",
          tags: ["wtf"],
        },
        seeks: {},
      },
      details: {
        title: { ...details.title },
        description: { ...details.description },
        location: { ...details.location },
        tags: { ...details.tags },
      },
      seeksDetails: undefined,
    },
    handleComplaints: {
      identifier: "handleComplaints",
      label: "Handle complaints",
      icon: "#ico36_uc_wtf_interest",
      timeToLiveMillisDefault: 1000 * 60 * 60 * 24 * 30,
      doNotMatchAfter: findLatestIntervallEndInJsonLdOrNowAndAddMillis,
      draft: {
        ...emptyDraft,
        content: {
          type: "won:HandleComplaint",
          title: "I'll discuss complaints",
        },
        seeks: {
          type: "won:Complaint",
        },
      },
      details: {
        title: { ...details.title },
        description: { ...details.description },
        location: { ...details.location },
        tags: { ...details.tags },
      },
      seeksDetails: undefined,
    },
  },
};
<commit_msg>Add types, leave search<commit_after>/**
 * Created by fsuda on 18.09.2018.
 */
import { details, emptyDraft } from "../detail-definitions.js";
import { findLatestIntervallEndInJsonLdOrNowAndAddMillis } from "../../app/won-utils.js";

export const complainGroup = {
  identifier: "complaingroup",
  label: "Complaints",
  icon: undefined,
  useCases: {
    complain: {
      identifier: "complain",
      label: "Complain about something",
      icon: "#ico36_uc_wtf",
      timeToLiveMillisDefault: 1000 * 60 * 60 * 24 * 30,
      doNotMatchAfter: findLatestIntervallEndInJsonLdOrNowAndAddMillis,
      draft: {
        ...emptyDraft,
        content: {
          type: "won:Complaint",
          title: "WTF?",
          tags: ["wtf"],
        },
        seeks: {
          type: "won:HandleComplaint",
        },
      },
      details: {
        title: { ...details.title },
        description: { ...details.description },
        location: { ...details.location },
        tags: { ...details.tags },
      },
      seeksDetails: undefined,
    },
    handleComplaints: {
      identifier: "handleComplaints",
      label: "Handle complaints",
      icon: "#ico36_uc_wtf_interest",
      timeToLiveMillisDefault: 1000 * 60 * 60 * 24 * 30,
      doNotMatchAfter: findLatestIntervallEndInJsonLdOrNowAndAddMillis,
      draft: {
        ...emptyDraft,
        content: {
          type: "won:HandleComplaint",
          title: "I'll discuss complaints",
          searchString: "wtf",
        },
        seeks: {
          type: "won:Complaint",
        },
      },
      details: {
        title: { ...details.title },
        description: { ...details.description },
        location: { ...details.location },
        tags: { ...details.tags },
      },
      seeksDetails: undefined,
    },
  },
};

{'fraction_non_alphanumeric': 0.14151747655583974, 'fraction_numerical': 0.020460358056265986, 'mean_word_length': 2.0529054640069386, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '1794433', 'n_tokens_mistral': 1127, 'n_tokens_neox': 1065, 'n_words': 211}