<commit_before># -*- coding: utf-8 -*-

import re
import copy


ip_pattern = re.compile(r'^(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[0-9]{1,2})(\.(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[0-9]{1,2})){3}:')


class CommonFile(object):
    def __init__(self, path):
        self.path = copy.deepcopy(path)
        self.ip = ''
        match = ip_pattern.match(self.path)
        if match:
            self.path = self.path[len(self.ip):]
            self.ip = match.group()
        else:
            self.ip = 'localhost'
        return

    <commit_msg>get dst ip<commit_after># -*- coding: utf-8 -*-

import re
import copy


ip_pattern = re.compile(r'^(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[0-9]{1,2})(\.(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[0-9]{1,2})){3}:')


class CommonFile(object):
    def __init__(self, path):
        self.path = copy.deepcopy(path)
        self.ip = ''
        match = ip_pattern.match(self.path)
        if match:
            self.path = self.path[len(self.ip):]
            self.ip = match.group()[:-1]
        else:
            self.ip = 'localhost'
        return

    
{'fraction_non_alphanumeric': 0.22532588454376165, 'fraction_numerical': 0.07169459962756052, 'mean_word_length': 2.161764705882353, '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': '6386857', 'n_tokens_mistral': 459, 'n_tokens_neox': 446, 'n_words': 60}