<commit_before># Copyright (c) 2015 <NAME>
# See the file LICENSE for copying permission.
import sys
sys.path.insert(0, r'/mono/savant/app')
from . import common
from ...systems import package
from results import *


class DebsStdoutLog(common.Log):

    def parse(self):
        self.logger.debug('parsing')

        self.data = package.Packages()
        self.name = 'packages'

        with open(self.path, 'r') as f:
            for line_number, line in enumerate(f.readlines()):
                # ignore header lines
                if line_number < 5: continue

                parts = line.split()
                print "parts: ", parts


                assert len(parts) > 4
                (stat, name, vers, arch) = parts[0:4]

                store_debs(parts[0], parts[1], parts[2], parts[3])

                assert name not in self.data
                self.data[name] = package.Package()
                self.data[name].add_deb(stat, vers, arch)
<commit_msg>Changed imports to more specific<commit_after># Copyright (c) 2015 <NAME>
# See the file LICENSE for copying permission.
import sys
sys.path.insert(0, r'/mono/savant/app')
from . import common
from ...systems import package
from results import store_debs


class DebsStdoutLog(common.Log):

    def parse(self):
        self.logger.debug('parsing')

        self.data = package.Packages()
        self.name = 'packages'

        with open(self.path, 'r') as f:
            for line_number, line in enumerate(f.readlines()):
                # ignore header lines
                if line_number < 5: continue

                parts = line.split()
                print "parts: ", parts[1]


                assert len(parts) > 4
                (stat, name, vers, arch) = parts[0:4]

                store_debs(parts[0], parts[1], parts[2], parts[3])

                assert name not in self.data
                self.data[name] = package.Package()
                self.data[name].add_deb(stat, vers, arch)

{'fraction_non_alphanumeric': 0.1147043961596766, 'fraction_numerical': 0.013643254168772108, 'mean_word_length': 1.9508196721311475, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, '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': '3861962', 'n_tokens_mistral': 615, 'n_tokens_neox': 552, 'n_words': 163}