<commit_before>-module(pillow_reducer).
-export([init/1, to_json/2, content_types_provided/2]).
-include_lib("webmachine/include/webmachine.hrl").

content_types_provided(ReqData, Context) ->
    {[{"application/json", to_json}], ReqData, Context}.
    
init([]) -> {ok, undefined}.

to_json(ReqData, Context) ->
    Path = wrq:disp_path(ReqData),
    Body = io_lib:format("{""path"": ""~s""}", [Path]),
    {Body, ReqData, Context}.<commit_msg>Fixed the path to the webmachine dependcy after moving it to deps.<commit_after>-module(pillow_reducer).
-export([init/1, to_json/2, content_types_provided/2]).
-include_lib("deps/webmachine/include/webmachine.hrl").

content_types_provided(ReqData, Context) ->
    {[{"application/json", to_json}], ReqData, Context}.
    
init([]) -> {ok, undefined}.

to_json(ReqData, Context) ->
    Path = wrq:disp_path(ReqData),
    Body = io_lib:format("{""path"": ""~s""}", [Path]),
    {Body, ReqData, Context}.
{'fraction_non_alphanumeric': 0.1962025316455696, 'fraction_numerical': 0.006329113924050633, 'mean_word_length': 5.083333333333333, 'pattern_counts': {'":': 2, '<': 3, '<?xml version=': 0, '>': 9, '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': '80139', 'n_tokens_mistral': 348, 'n_tokens_neox': 345, 'n_words': 60}