<commit_before>REM =====================================================================
REM Install Portal Software
REM =====================================================================

SET FQDN=%COMPUTERNAME%.%USERDNSDOMAIN%

REM ---------------------------------------------------------------------
REM Install Portal for ArcGIS
REM ---------------------------------------------------------------------
echo.
echo %sectionBreak%
echo Install Portal for ArcGIS
echo.
echo --Installing Portal for ArcGIS...
msiexec /I %ops_softwareRoot%\Portal\setup.msi /qb CONTENTDIR=C:\arcgisportal
PING 127.0.0.1 -n 3 > nul

REM ---------------------------------------------------------------------
REM Authorize Portal for ArcGIS
REM ---------------------------------------------------------------------
echo.
echo --Authorizing Portal for ArcGIS...
echo.

REM Determine which type of authorization file to use; if no files found then
REM SoftwareAuthorization.exe will prompt user to walk through the authoriation wizard.

if exist %ops_AuthFileRootPortal%\Portal_100.ecp (
	set ops_AuthFile=%ops_AuthFileRootPortal%\Portal_100.ecp
) else if exist %ops_AuthFileRootPortal%\Portal_100.prvc (
	set ops_AuthFile=%ops_AuthFileRootPortal%\Portal_100.prvc
) else (
	set ops_AuthFile=NO_AUTHORIZATION_FILE_PROMPT_USER_FOR_INPUT
)

echo   Will use the following file to authorize. If no file found, 
echo   Software Authorization wizard will walk user through process:
echo   %ops_AuthFile%
echo.

if %ops_AuthFile%==NO_AUTHORIZATION_FILE_PROMPT_USER_FOR_INPUT (
  echo   Prompting user for authorizing information...
  %ops_softwareAuthExePath% -S Ver 10.2
) else (
  %ops_softwareAuthExePath% -S Ver 10.2 -LIF %ops_AuthFile%
)
PING 127.0.0.1 -n 15 > nul
 
REM ---------------------------------------------------------------------
REM Configure portal files
REM ---------------------------------------------------------------------
REM echo.
rem echo %sectionBreak%
rem echo Configure Portal files...
rem echo.
rem echo Don't think we need to do this anymore with 10.2 portal.
rem echo Commented call to "%~dp0Portal\ConfigurePortalFiles.py"
REM Call "%~dp0Portal\ConfigurePortalFiles.py" %FQDN%
REM PING 127.0.0.1 -n 3 > nul
rem echo.

REM ---------------------------------------------------------------------
REM Configure ArcGIS Server Services Directory properties to point to
REM locally hosted ArcGIS for JavaScript API
REM ---------------------------------------------------------------------
echo.
echo %sectionBreak%
echo Configure ArcGIS Server Services Directory to point to
echo locally hosted ArcGIS for JavaScript API...
echo.
Call "%~dp0..\..\SupportFiles\SetServicesDirectoryProps.py" ^
 %FQDN% # %ops_userName% %ops_passWord% Yes
echo.
 <commit_msg>Incorrectly set useSSL parameter<commit_after>REM =====================================================================
REM Install Portal Software
REM =====================================================================

SET FQDN=%COMPUTERNAME%.%USERDNSDOMAIN%

REM ---------------------------------------------------------------------
REM Install Portal for ArcGIS
REM ---------------------------------------------------------------------
echo.
echo %sectionBreak%
echo Install Portal for ArcGIS
echo.
echo --Installing Portal for ArcGIS...
msiexec /I %ops_softwareRoot%\Portal\setup.msi /qb CONTENTDIR=C:\arcgisportal
PING 127.0.0.1 -n 3 > nul

REM ---------------------------------------------------------------------
REM Authorize Portal for ArcGIS
REM ---------------------------------------------------------------------
echo.
echo --Authorizing Portal for ArcGIS...
echo.

REM Determine which type of authorization file to use; if no files found then
REM SoftwareAuthorization.exe will prompt user to walk through the authoriation wizard.

if exist %ops_AuthFileRootPortal%\Portal_100.ecp (
	set ops_AuthFile=%ops_AuthFileRootPortal%\Portal_100.ecp
) else if exist %ops_AuthFileRootPortal%\Portal_100.prvc (
	set ops_AuthFile=%ops_AuthFileRootPortal%\Portal_100.prvc
) else (
	set ops_AuthFile=NO_AUTHORIZATION_FILE_PROMPT_USER_FOR_INPUT
)

echo   Will use the following file to authorize. If no file found, 
echo   Software Authorization wizard will walk user through process:
echo   %ops_AuthFile%
echo.

if %ops_AuthFile%==NO_AUTHORIZATION_FILE_PROMPT_USER_FOR_INPUT (
  echo   Prompting user for authorizing information...
  %ops_softwareAuthExePath% -S Ver 10.2
) else (
  %ops_softwareAuthExePath% -S Ver 10.2 -LIF %ops_AuthFile%
)
PING 127.0.0.1 -n 15 > nul
 
REM ---------------------------------------------------------------------
REM Configure portal files
REM ---------------------------------------------------------------------
REM echo.
rem echo %sectionBreak%
rem echo Configure Portal files...
rem echo.
rem echo Don't think we need to do this anymore with 10.2 portal.
rem echo Commented call to "%~dp0Portal\ConfigurePortalFiles.py"
REM Call "%~dp0Portal\ConfigurePortalFiles.py" %FQDN%
REM PING 127.0.0.1 -n 3 > nul
rem echo.

REM ---------------------------------------------------------------------
REM Configure ArcGIS Server Services Directory properties to point to
REM locally hosted ArcGIS for JavaScript API
REM ---------------------------------------------------------------------
echo.
echo %sectionBreak%
echo Configure ArcGIS Server Services Directory to point to
echo locally hosted ArcGIS for JavaScript API...
echo.
Call "%~dp0..\..\SupportFiles\SetServicesDirectoryProps.py" ^
 %FQDN% # %ops_userName% %ops_passWord% No
echo.
 
{'fraction_non_alphanumeric': 0.30727470141150925, 'fraction_numerical': 0.016648570394498734, 'mean_word_length': 1.994041170097508, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 9, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 6, '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': '5808920', 'n_tokens_mistral': 1566, 'n_tokens_neox': 1384, 'n_words': 473}