<commit_before>/******************************************************************************

  This source file is part of the MoleQueue project.

  Copyright 2012 Kitware, Inc.

  This source code is released under the New BSD License, (the "License").

  Unless required by applicable law or agreed to in writing, software
  distributed under the License is distributed on an "AS IS" BASIS,
  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  See the License for the specific language governing permissions and
  limitations under the License.

******************************************************************************/

#include "queueuit.h"

#include "uit/kerberoscredentials.h"
#include "uit/sslsetup.h"
#include "uit/authenticator.h"
#include "uit/userhostassoclist.h"
#include "uit/sessionmanager.h"
#include "uit/requests.h"
#include "uit/jobsubmissioninfo.h"
#include "uit/directoryupload.h"
#include "uit/directorydownload.h"
#include "uit/directorydelete.h"
#include "uit/directorycreate.h"

#include "job.h"
#include "jobmanager.h"
#include "logentry.h"
#include "logger.h"
#include "program.h"
#include "uitqueuewidget.h"
#include "server.h"
#include "credentialsdialog.h"
#include "logger.h"
#include "mainwindow.h"
#include "filesystemtools.h"
#include <qjsonobject.h>
#include <qjsondocument.h>

#include <QtCore/QTimer>
#include <QtCore/QXmlStreamWriter>
#include <QtCore/QSettings>
#include <QtCore/QDir>
#include <QtXmlPatterns/QAbstractMessageHandler>
#include <QApplication>
#include <QMessageBox>

namespace MoleQueue
{

const QString QueueUit::clientId = "0adc5b59-5827-4331-a544-5ba7922ec2b8";

QueueUit::QueueUit(QueueManager *parentObject)
  : QueueRemote("ezHPC UIT", parentObject), m_uitSession(NULL),
    m_kerberosRealm("HPCMP.HPC.MIL"), m_hostID(-1),  m_dialogParent(NULL),
    m_isCheckingQueue(false)
{
  setLaunchScriptName("job.uit");

  // ensure SSL certificates are loaded
  Uit::SslSetup::init();

  m_launchTemplate =
      "#!/bin/sh\n"
      "#\n"
      "# Sample job script provided by MoleQueue.\n"
      "#PBS -l procs=1\n"
      "#PBS -l walltime=01:00:00\n"
      "#PBS -A <replace> \n"
      "#PBS -q debug\n"<commit_msg>Keep the module name<commit_after>/******************************************************************************

  This source file is part of the MoleQueue project.

  Copyright 2012 Kitware, Inc.

  This source code is released under the New BSD License, (the "License").

  Unless required by applicable law or agreed to in writing, software
  distributed under the License is distributed on an "AS IS" BASIS,
  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  See the License for the specific language governing permissions and
  limitations under the License.

******************************************************************************/

#include "queueuit.h"

#include "uit/kerberoscredentials.h"
#include "uit/sslsetup.h"
#include "uit/authenticator.h"
#include "uit/userhostassoclist.h"
#include "uit/sessionmanager.h"
#include "uit/requests.h"
#include "uit/jobsubmissioninfo.h"
#include "uit/directoryupload.h"
#include "uit/directorydownload.h"
#include "uit/directorydelete.h"
#include "uit/directorycreate.h"

#include "job.h"
#include "jobmanager.h"
#include "logentry.h"
#include "logger.h"
#include "program.h"
#include "uitqueuewidget.h"
#include "server.h"
#include "credentialsdialog.h"
#include "logger.h"
#include "mainwindow.h"
#include "filesystemtools.h"
#include <qjsonobject.h>
#include <qjsondocument.h>

#include <QtCore/QTimer>
#include <QtCore/QXmlStreamWriter>
#include <QtCore/QSettings>
#include <QtCore/QDir>
#include <QtXmlPatterns/QAbstractMessageHandler>
#include <QtWidgets/QApplication>
#include <QtWidgets/QMessageBox>

namespace MoleQueue
{

const QString QueueUit::clientId = "0adc5b59-5827-4331-a544-5ba7922ec2b8";

QueueUit::QueueUit(QueueManager *parentObject)
  : QueueRemote("ezHPC UIT", parentObject), m_uitSession(NULL),
    m_kerberosRealm("HPCMP.HPC.MIL"), m_hostID(-1),  m_dialogParent(NULL),
    m_isCheckingQueue(false)
{
  setLaunchScriptName("job.uit");

  // ensure SSL certificates are loaded
  Uit::SslSetup::init();

  m_launchTemplate =
      "#!/bin/sh\n"
      "#\n"
      "# Sample job script provided by MoleQueue.\n"
      "#PBS -l procs=1\n"
      "#PBS -l walltime=01:00:00\n"
      "#PBS -A <replace> \n"
      "#PBS -q debug\n"
{'fraction_non_alphanumeric': 0.1877679981945385, 'fraction_numerical': 0.015346422929361317, 'mean_word_length': 5.24225352112676, 'pattern_counts': {'":': 0, '<': 23, '<?xml version=': 0, '>': 23, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4492073', 'n_tokens_mistral': 1490, 'n_tokens_neox': 1433, 'n_words': 366}