<commit_before># encoding : utf-8
class SubscribesController < ApplicationController
  layout false
  def create
    email = params[:email]
    s = Subscribe.new(email: email)
    if s.save
      render json: { status: 1, message: "订阅成功" }
    else
      messages = ""
      s.errors.messages.each do |m|
        messages << m[1][0]
      end
      render json: { status: -1, message: messages }
    end
  end
end<commit_msg>change subscribe validation message from chinese to english<commit_after># encoding : utf-8
class SubscribesController < ApplicationController
  layout false
  def create
    email = params[:email]
    s = Subscribe.new(email: email)
    if s.save
      render json: { status: 1, message: "subscribe success" }
    else
      messages = ""
      s.errors.messages.each do |m|
        messages << m[1][0]
      end
      render json: { status: -1, message: messages }
    end
  end
end
{'fraction_non_alphanumeric': 0.10121012101210121, 'fraction_numerical': 0.011001100110011002, 'mean_word_length': 2.6254980079681274, 'pattern_counts': {'":': 0, '<': 9, '<?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': '1200613', 'n_tokens_mistral': 279, 'n_tokens_neox': 277, 'n_words': 87}