<commit_before>from flask import Flask
from flask import request

import argparse
import pprint
import os

app = Flask(__name__)

@app.route("/<path:p>", methods=["POST"])
def catch_all(p):
    print(request.json)
    if request.environ.get('HTTP_X_REAL_IP', request.remote_addr) != "172.16.58.3":
        return "ip address not authorized"

    try:
        for (action, image) in handle_harbor(request.json):
            publish_message(notifications_file, action, image)
        return "ok"
    except Exception as e:
        print("Fail to handle the harbor hook")
        print(e)<commit_msg>Remove whitelist of ip addresses<commit_after>from flask import Flask
from flask import request

import argparse
import pprint
import os

app = Flask(__name__)

@app.route("/<path:p>", methods=["POST"])
def catch_all(p):
    print(request.json)
    try:
        for (action, image) in handle_harbor(request.json):
            publish_message(notifications_file, action, image)
        return "ok"
    except Exception as e:
        print("Fail to handle the harbor hook")
        print(e)
{'fraction_non_alphanumeric': 0.10691244239631337, 'fraction_numerical': 0.007373271889400922, 'mean_word_length': 3.4146341463414633, 'pattern_counts': {'":': 1, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 1, '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': '3808317', 'n_tokens_mistral': 339, 'n_tokens_neox': 326, 'n_words': 98}