<commit_before># -*- coding : utf-8 -*-
require "sinatra"
require "json"
require "open-uri"
require 'open3'

def reply(data={})
    msg = ""
    if data["status"] == "ok" and data["events"]
        data["events"].each do |e, text=e["message"]["text"]|
            text.match(/(ぬるぽ|ヌルポ|null)/i) do
                msg = "ガ"
                break
            end
        end
    end
    msg.to_s
rescue
    ""
end

post "/" do<commit_msg>to_sがいらないか実験<commit_after># -*- coding : utf-8 -*-
require "sinatra"
require "json"
require "open-uri"
require 'open3'

def reply(data={})
    msg = ""
    if data["status"] == "ok" and data["events"]
        data["events"].each do |e, text=e["message"]["text"]|
            text.match(/(ぬるぽ|ヌルポ|null)/i) do
                msg = "ガ"
                break
            end
        end
    end
    msg
rescue
    ""
end

post "/" do
{'fraction_non_alphanumeric': 0.17436489607390301, 'fraction_numerical': 0.004618937644341801, 'mean_word_length': 1.89, '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': '7398406', 'n_tokens_mistral': 323, 'n_tokens_neox': 319, 'n_words': 71}