<commit_before>class CreateProject < ApiWorker
  def perform(product_slug)
    @product = Product.find_by(slug: product_slug)
    @user = User.find_by(username: 'kernel')

    return false unless Activity.where(target_id: @product.id)
                                .where.not(type: 'Activities::Chat')
                                .where.not(type: 'Activities::FoundProduct')
                                .where.not(actor: @user)
                                .empty?

    post Rails.application.routes.url_helpers.api_product_projects_path(@product),
      wip: {
        title: "Launch Checklist",
        milestone_attributes: {
          description: "A robot could do these in less than 12 nanoseconds, but I understand that you might take a bit longer. Ping me if you need help!"
        },
        milestone_tasks_attributes: [
          {
            title: "Complete Homepage copy"
          },
          {
            title: "Value proposition"
          },
          {
            title: "FAQ strategy"<commit_msg>Fix Kernel's posting of the initial project<commit_after>class CreateProject < ApiWorker
  def perform(product_slug)
    @product = Product.find_by(slug: product_slug)
    @user = User.find_by(username: 'kernel')

    return false unless Activity.where(target_id: @product.id)
                                .where.not(type: 'Activities::Chat')
                                .where.not(type: 'Activities::FoundProduct')
                                .empty?

    post Rails.application.routes.url_helpers.api_product_projects_path(@product),
      wip: {
        title: "Launch Checklist",
        milestone_attributes: {
          description: "A robot could do these in less than 12 nanoseconds, but I understand that you might take a bit longer. Ping me if you need help!"
        },
        milestone_tasks_attributes: [
          {
            title: "Complete Homepage copy"
          },
          {
            title: "Value proposition"
          },
          {
            title: "FAQ strategy"
{'fraction_non_alphanumeric': 0.08957415565345081, 'fraction_numerical': 0.0019579050416054823, 'mean_word_length': 1.8193103448275862, 'pattern_counts': {'":': 0, '<': 5, '<?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': '5603072', 'n_tokens_mistral': 542, 'n_tokens_neox': 535, 'n_words': 139}