<commit_before>import { } from 'jasmine';
import { async, inject } from '@angular/core/testing';

import { configureTest } from './config';
import { ContentService, ShareService, ContentSearchRequest, ShareContent, ShareBasicCreateRequest, OutputAccess } from '../lib/api-services';

describe('ShareService', () => {
  beforeEach(configureTest);

  it('should create embed share', async(inject([ContentService, ShareService],
    async (contentService: ContentService, shareService: ShareService) => {
      // arrange
      const request = new ContentSearchRequest();
      request.searchString = 'm';

      const response = await contentService.search(request).toPromise();

      // act
      const contents = response.results.map(i => new ShareContent({
        contentId: i.id,
        outputFormatIds: ['Original']
      }));

      const result = await shareService.create( null, new ShareBasicCreateRequest({
        name: 'Share',
        languageCode: 'en',
        contents: contents,
        outputAccess: OutputAccess.Full,
        suppressNotifications: false
      })).toPromise();

      const share = await shareService.get(result.shareId!).toPromise();

      // assert
      expect(result.shareId).not.toBeNull();
      expect(share.id).toEqual(result.shareId!);
    })));
});<commit_msg>Disable "should create embed share" test<commit_after>import { } from 'jasmine';
import { async, inject } from '@angular/core/testing';

import { configureTest } from './config';
import { ContentService, ShareService, ContentSearchRequest, ShareContent, ShareBasicCreateRequest, OutputAccess } from '../lib/api-services';

describe('ShareService', () => {
  beforeEach(configureTest);

  // it('should create embed share', async(inject([ContentService, ShareService],
  //   async (contentService: ContentService, shareService: ShareService) => {
  //     // arrange
  //     const request = new ContentSearchRequest();
  //     request.searchString = 'm';

  //     const response = await contentService.search(request).toPromise();

  //     // act
  //     const contents = response.results.map(i => new ShareContent({
  //       contentId: i.id,
  //       outputFormatIds: ['Original']
  //     }));

  //     const result = await shareService.create( null, new ShareBasicCreateRequest({
  //       name: 'Share',
  //       languageCode: 'en',
  //       contents: contents,
  //       outputAccess: OutputAccess.Full,
  //       suppressNotifications: false
  //     })).toPromise();

  //     const share = await shareService.get(result.shareId!).toPromise();

  //     // assert
  //     expect(result.shareId).not.toBeNull();
  //     expect(share.id).toEqual(result.shareId!);
  //   })));
});
{'fraction_non_alphanumeric': 0.14601769911504425, 'fraction_numerical': 0.0, 'mean_word_length': 3.1168437025796663, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 9, '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': '3026338', 'n_tokens_mistral': 739, 'n_tokens_neox': 726, 'n_words': 165}