<commit_before>#!/usr/bin/env python

import common
from Configuration import Configuration
from Configuration import ConfigurationError
from Certificates  import Certificates
import VDTClient
#---------------------
import sys,os,os.path,string,time
import tarfile
import shutil
import pwd
import stat


class Condor(Configuration):

  def __init__(self,inifile,ini_section,ini_options):
    self.ini_section = ini_section
    self.inifile     = inifile
    self.ini_options = ini_options
    Configuration.__init__(self,inifile)
    self.validate_section(ini_section,ini_options)

    self.condor_version      = None
    self.certificates        = None

    #--- secondary schedd files --
    self.schedd_setup_file   = "new_schedd_setup.sh"
    self.schedd_init_file    = "init_schedd.sh"
    self.schedd_startup_file = "start_master_schedd.sh"
    self.schedd_initd_function = "return # no secondary schedds"

  #----------------------------------
  # methods for returning attributes
  #----------------------------------
  #----------------------------------
  def install_vdt_client(self):
    return self.option_value(self.ini_section,"install_vdt_client")
  #----------------------------------
  def condor_location(self):
    return self.option_value(self.ini_section,"condor_location")
  #----------------------------------
  def condor_cfg(self):
    if self.split_condor_config() == "y":
      return self.condor_config_local()
    else:
      return self.condor_config()
  #----------------------------------
  def condor_local(self):
    return  "%s/condor_local" % self.condor_location()
  #----------------------------------
  def install_location(self):
    return self.option_value(self.ini_section,"install_location")
  #----------------------------------
  def vdt_location(self):
    return self.option_value(self.ini_section,"vdt_location")
  #----------------------------------
  def gsi_dn(self):
    return self.option_value(self.ini_section,"gsi_dn")
  #---------------------<commit_msg>Had to add the glidein_install_dir to the list of options to maybe temporarily get around the startup of the Condor process at the end of the installs.<commit_after>#!/usr/bin/env python

import common
from Configuration import Configuration
from Configuration import ConfigurationError
from Certificates  import Certificates
import VDTClient
#---------------------
import sys,os,os.path,string,time
import tarfile
import shutil
import pwd
import stat


class Condor(Configuration):

  def __init__(self,inifile,ini_section,ini_options):
    self.ini_section = ini_section
    self.inifile     = inifile
    self.ini_options = ini_options
    Configuration.__init__(self,inifile)
    self.validate_section(ini_section,ini_options)

    self.condor_version      = None
    self.certificates        = None

    #--- secondary schedd files --
    self.schedd_setup_file   = "new_schedd_setup.sh"
    self.schedd_init_file    = "init_schedd.sh"
    self.schedd_startup_file = "start_master_schedd.sh"
    self.schedd_initd_function = "return # no secondary schedds"

  #----------------------------------
  # methods for returning attributes
  #----------------------------------
  #----------------------------------
  def install_vdt_client(self):
    return self.option_value(self.ini_section,"install_vdt_client")
  #----------------------------------
  def condor_location(self):
    return self.option_value(self.ini_section,"condor_location")
  #----------------------------------
  def condor_cfg(self):
    if self.split_condor_config() == "y":
      return self.condor_config_local()
    else:
      return self.condor_config()
  #----------------------------------
  def condor_local(self):
    return  "%s/condor_local" % self.condor_location()
  #----------------------------------
  def install_location(self):
    return self.option_value(self.ini_section,"install_location")
  #----------------------------------
  def glidein_install_dir(self):
    return self.option_value(self.ini_section,"glidein_install_dir")
  #----------------------------------
  def vdt_location(self):
    return self.option_value(self.ini_section,"vdt_location")
  #----------------------------------
  def gsi_dn(self):
    return self.option_value(self.ini_section,"gsi_dn")
  #---------------------
{'fraction_non_alphanumeric': 0.24535315985130113, 'fraction_numerical': 0.0, 'mean_word_length': 2.0467091295116773, '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': '4196670', 'n_tokens_mistral': 1212, 'n_tokens_neox': 1194, 'n_words': 224}