<commit_before>import sublime
import os
from os import path

class PathHelper(object):
	def get_file(command, window):
		is_legal = False
		file_name = ""
		parts = command.split(" ")
		arguments = []

		for part in parts:
			if is_legal:
				arguments.append(part)
				continue

			elif file_name == "":
				file_name = part
			else:
				file_name = " ".join([file_name,part])

			if path.isfile(file_name):
				is_legal = True
			elif path.isfile(path.join(window.folders()[0], file_name)):
				file_name = path.join(window.folders()[0], file_name)
				is_legal = True

		return is_legal, file_name, arguments

	def get_pwd(file_name):
		return path.split(file_name)[0]

	def is_same_path(first, second):
		return path.abspath(first) == path.abspath(second)

	def get_sublime_require():
		return os.path.join(sublime.packages_path(), "RubyDebugger", "sublime_debug_require.rb")<commit_msg>fix relative file paths<commit_after>import sublime
import os
from os import path

class PathHelper(object):
	def get_file(command, window):
		is_legal = False
		file_name = ""
		parts = command.split(" ")
		arguments = []

		for part in parts:
			if is_legal:
				arguments.append(part)
				continue

			elif file_name == "":
				file_name = part
			else:
				file_name = " ".join([file_name,part])

			if path.isfile(file_name):
				is_legal = True
			elif path.isfile(path.join(window.folders()[0], file_name)):
				file_name = path.join(window.folders()[0], file_name)
				is_legal = True

		return is_legal, file_name, arguments

	def get_pwd(file_name):
		return path.split(file_name)[0]

	def is_same_path(first, second):
		return path.abspath(first) == path.abspath(second)

	def get_sublime_require():
		return os.path.join(sublime.packages_path(), "Ruby Debugger", "sublime_debug_require.rb")
{'fraction_non_alphanumeric': 0.1249302844394869, 'fraction_numerical': 0.0033463469046291134, 'mean_word_length': 4.2, 'pattern_counts': {'":': 2, '<': 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': '903703', 'n_tokens_mistral': 725, 'n_tokens_neox': 625, 'n_words': 135}