<commit_before>#!/opt/local/bin/python2.7

# GENERAL
import os
from itertools import dropwhile, islice

# BAM and BED handling
from pysam import AlignmentFile, AlignedSegment
from pybedtools import BedTool

# PLOTTING
import numpy as np
import matplotlib
matplotlib.use('Agg')
import matplotlib.pyplot as plt

from optparse import OptionParser

# ------------------------------------------------------------------------------------------------------------------------

class LASTregion:
	"""LAST region class"""

	def __init__(self, array):
		self.loc = array[1]
		self.pos = int(array[2])
		self.length = int(array[3])
		self.strand = array[4]
		self.totlen = int(array[5])
		self.seq = array[6]

	def __repr__(self):
		return "%s:%i-%i" %(self.loc, self.pos, self.pos+self.length)

	def __str__(self):
		return "%s:%i-%i" %(self.loc, self.pos, self.pos+self.length)

	def get_loc(self):
		if self.loc == 'X':
			return 23
		elif self.loc == 'Y':
			return 24
		else
			return int(self.loc)
<commit_msg>indentation<commit_after>#!/opt/local/bin/python2.7

# GENERAL
import os
from itertools import dropwhile, islice

# BAM and BED handling
from pysam import AlignmentFile, AlignedSegment
from pybedtools import BedTool

# PLOTTING
import numpy as np
import matplotlib
matplotlib.use('Agg')
import matplotlib.pyplot as plt

from optparse import OptionParser

# ------------------------------------------------------------------------------------------------------------------------

class LASTregion:
	"""LAST region class"""

	def __init__(self, array):
		self.loc = array[1]
		self.pos = int(array[2])
		self.length = int(array[3])
		self.strand = array[4]
		self.totlen = int(array[5])
		self.seq = array[6]

	def __repr__(self):
		return "%s:%i-%i" %(self.loc, self.pos, self.pos+self.length)

	def __str__(self):
		return "%s:%i-%i" %(self.loc, self.pos, self.pos+self.length)

	def get_loc(self):
		if self.loc == 'X':
			return 23
		elif self.loc == 'Y':
			return 24
		else:
			return int(self.loc)

{'fraction_non_alphanumeric': 0.2406576980568012, 'fraction_numerical': 0.01195814648729447, 'mean_word_length': 2.4324786324786323, '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': '6232428', 'n_tokens_mistral': 723, 'n_tokens_neox': 666, 'n_words': 174}