<commit_before>	/*
 *  Copyright (c) 2010 <NAME>
 *
 *  This is free software; see gpl-3.0.txt
 */
#include <stdint.h>
#include <stdlib.h>
#include <stdbool.h>
#include <sys/time.h>
#include <chunk.h>
#include <net_helper.h>

#include "http_default_urls.h"
#include "external_chunk_transcoding.h"

#include "output.h"
#include "dbg.h"

#define PLAYER_IP "127.0.0.1"

struct nodeID *streamer;
static char url[256];
static int base_port = 0;

void output_init(int bufsize, const char *config)
{
  if(!config) {
     fprintf(stderr, "Error: no http output module configuration issued. Exiting\n");
     exit(1);
  }
  if(sscanf(config, "%d", base_port) < 1) {
     fprintf(stderr, "Error: can't parse http output module configuration string %s. Exiting\n", config);
     exit(1);
  }<commit_msg>UL offerstreamer integration: - bufix on scan of -F parameter<commit_after>	/*
 *  Copyright (c) 2010 <NAME>
 *
 *  This is free software; see gpl-3.0.txt
 */
#include <stdint.h>
#include <stdlib.h>
#include <stdbool.h>
#include <sys/time.h>
#include <chunk.h>
#include <net_helper.h>

#include "http_default_urls.h"
#include "external_chunk_transcoding.h"

#include "output.h"
#include "dbg.h"

#define PLAYER_IP "127.0.0.1"

struct nodeID *streamer;
static char url[256];
static int base_port = 0;

void output_init(int bufsize, const char *config)
{
  if(!config) {
     fprintf(stderr, "Error: no http output module configuration issued. Exiting\n");
     exit(1);
  }
  if(sscanf(config, "%d", &base_port) < 1) {
     fprintf(stderr, "Error: can't parse http output module configuration string %s. Exiting\n", config);
     exit(1);
  }
{'fraction_non_alphanumeric': 0.15064298836497245, 'fraction_numerical': 0.023270055113288425, 'mean_word_length': 4.203821656050955, 'pattern_counts': {'":': 0, '<': 19, '<?xml version=': 0, '>': 17, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 2, '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': '292493', 'n_tokens_mistral': 632, 'n_tokens_neox': 608, 'n_words': 164}