<commit_before>/*
 * Copyright (c) 2017, salesforce.com, inc.
 * All rights reserved.
 * Licensed under the BSD 3-Clause license.
 * For full license text, see LICENSE.txt file in the repo root or https://opensource.org/licenses/BSD-3-Clause
 */

import {
  CliCommandExecutor,
  CommandExecution,
  SfdxCommandBuilder
} from '@salesforce/salesforcedx-utils-vscode/out/src/cli';
import * as util from '@salesforce/salesforcedx-utils-vscode/out/src/test/orgUtils';
import { expect } from 'chai';
import * as path from 'path';
import * as rimraf from 'rimraf';
import { DebugClient } from 'vscode-debugadapter-testsupport';
import { DebugProtocol } from 'vscode-debugprotocol';
import Uri from 'vscode-uri';
import { LaunchRequestArguments } from '../../src/adapter/apexDebug';
import { LineBreakpointInfo } from '../../src/breakpoints/lineBreakpoint';
import { LINE_BREAKPOINT_INFO_REQUEST } from '../../src/constants';

const PROJECT_NAME = `project_${new Date().getTime()}`;
const SIMPLE_VARIABLES_DIR = path.join(
  __dirname,
  '..',
  '..',
  '..',
  'test',
  'integration',
  'config',
  'variables'
);
const SOURCE_FOLDER = path.join(SIMPLE_VARIABLES_DIR, 'source');
const APEX_EXEC_FILE = path.join(SIMPLE_VARIABLES_DIR, 'apexExec', 'test.apex');
const LINE_BREAKPOINT_INFO: LineBreakpointInfo[] = [];

/**
 * These integration tests assume the environment has authenticated to
 * a Dev Hub and it is set as the default Dev Hub.
 */
describe('Interactive debugger adapter - integration', function() {
  // tslint:disable-next-line:no-invalid-this
  this.timeout(320000);
  let dc: DebugClient;
  let userName: string;
  let projectPath: string;
  let apexClassUri: string;

  before(async () => {
    // Create SFDX project
    projectPath = path.join(process.cwd(), PROJECT_NAME);
    console.log(`projectPath: ${projectPath}`);
    await util.createSFDXProject(PROJECT_NAME);
    // Create scratch org with Debug Apex enabled
    util.addFeatureToScratchOrgConfig(PROJECT_NAME, 'DebugApex');
    apexClassUri = Uri.file(
      `${projectPath}/force-app/main/default/classes/BasicVariables.cls`
    ).toString();
    if (process.platform === 'win32') {
      apexClassUri = apexClassUri.replace('%3A', ':');<commit_msg>Disable apex interactive debugger integration test (#382)<commit_after>/*
 * Copyright (c) 2017, salesforce.com, inc.
 * All rights reserved.
 * Licensed under the BSD 3-Clause license.
 * For full license text, see LICENSE.txt file in the repo root or https://opensource.org/licenses/BSD-3-Clause
 */

import {
  CliCommandExecutor,
  CommandExecution,
  SfdxCommandBuilder
} from '@salesforce/salesforcedx-utils-vscode/out/src/cli';
import * as util from '@salesforce/salesforcedx-utils-vscode/out/src/test/orgUtils';
import { expect } from 'chai';
import * as path from 'path';
import * as rimraf from 'rimraf';
import { DebugClient } from 'vscode-debugadapter-testsupport';
import { DebugProtocol } from 'vscode-debugprotocol';
import Uri from 'vscode-uri';
import { LaunchRequestArguments } from '../../src/adapter/apexDebug';
import { LineBreakpointInfo } from '../../src/breakpoints/lineBreakpoint';
import { LINE_BREAKPOINT_INFO_REQUEST } from '../../src/constants';

const PROJECT_NAME = `project_${new Date().getTime()}`;
const SIMPLE_VARIABLES_DIR = path.join(
  __dirname,
  '..',
  '..',
  '..',
  'test',
  'integration',
  'config',
  'variables'
);
const SOURCE_FOLDER = path.join(SIMPLE_VARIABLES_DIR, 'source');
const APEX_EXEC_FILE = path.join(SIMPLE_VARIABLES_DIR, 'apexExec', 'test.apex');
const LINE_BREAKPOINT_INFO: LineBreakpointInfo[] = [];

/**
 * These integration tests assume the environment has authenticated to
 * a Dev Hub and it is set as the default Dev Hub.
 */
describe.skip('Interactive debugger adapter - integration', function() {
  // tslint:disable-next-line:no-invalid-this
  this.timeout(320000);
  let dc: DebugClient;
  let userName: string;
  let projectPath: string;
  let apexClassUri: string;

  before(async () => {
    // Create SFDX project
    projectPath = path.join(process.cwd(), PROJECT_NAME);
    console.log(`projectPath: ${projectPath}`);
    await util.createSFDXProject(PROJECT_NAME);
    // Create scratch org with Debug Apex enabled
    util.addFeatureToScratchOrgConfig(PROJECT_NAME, 'DebugApex');
    apexClassUri = Uri.file(
      `${projectPath}/force-app/main/default/classes/BasicVariables.cls`
    ).toString();
    if (process.platform === 'win32') {
      apexClassUri = apexClassUri.replace('%3A', ':');
{'fraction_non_alphanumeric': 0.13940066592674805, 'fraction_numerical': 0.00732519422863485, 'mean_word_length': 4.415865384615385, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, 'https://': 2, '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': '5936963', 'n_tokens_mistral': 1511, 'n_tokens_neox': 1444, 'n_words': 346}