<commit_before>temp = require 'temp'
GitRepositoryAsync = require '../src/git-repository-async'
Git = require 'nodegit'
fs = require 'fs-plus'
os = require 'os'
path = require 'path'
Task = require '../src/task'
Project = require '../src/project'

# Clean up when the process exits
temp.track()

copyRepository = ->
  workingDirPath = temp.mkdirSync('atom-working-dir')
  fs.copySync(path.join(__dirname, 'fixtures', 'git', 'working-dir'), workingDirPath)
  fs.renameSync(path.join(workingDirPath, 'git.git'), path.join(workingDirPath, '.git'))
  fs.realpathSync(workingDirPath)

openFixture = (fixture)->
  GitRepositoryAsync.open(path.join(__dirname, 'fixtures', 'git', fixture))

describe "GitRepositoryAsync", ->
  repo = null

  # beforeEach ->
  #   gitPath = path.join(temp.dir, '.git')
  #   fs.removeSync(gitPath) if fs.isDirectorySync(gitPath)<commit_msg>coffeelint fix<commit_after>temp = require 'temp'
GitRepositoryAsync = require '../src/git-repository-async'
Git = require 'nodegit'
fs = require 'fs-plus'
os = require 'os'
path = require 'path'
Task = require '../src/task'
Project = require '../src/project'

# Clean up when the process exits
temp.track()

copyRepository = ->
  workingDirPath = temp.mkdirSync('atom-working-dir')
  fs.copySync(path.join(__dirname, 'fixtures', 'git', 'working-dir'), workingDirPath)
  fs.renameSync(path.join(workingDirPath, 'git.git'), path.join(workingDirPath, '.git'))
  fs.realpathSync(workingDirPath)

openFixture = (fixture) ->
  GitRepositoryAsync.open(path.join(__dirname, 'fixtures', 'git', fixture))

describe "GitRepositoryAsync", ->
  repo = null

  # beforeEach ->
  #   gitPath = path.join(temp.dir, '.git')
  #   fs.removeSync(gitPath) if fs.isDirectorySync(gitPath)
{'fraction_non_alphanumeric': 0.1605080831408776, 'fraction_numerical': 0.0, 'mean_word_length': 4.874576271186441, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 11, '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': '5699151', 'n_tokens_mistral': 581, 'n_tokens_neox': 566, 'n_words': 122}