<commit_before>// Copyright (c) The Avalonia Project. All rights reserved.
// Licensed under the MIT license. See licence.md file in the project root for full license information.

#include "common.h"
#include "AvnString.h"

class Clipboard : public ComSingleObject<IAvnClipboard, &IID_IAvnClipboard>
{
public:
    FORWARD_IUNKNOWN()
    
    Clipboard()
    {
        NSPasteboard *pasteBoard = [NSPasteboard generalPasteboard];
        [pasteBoard clearContents];
        [pasteBoard setString:@"" forType:NSPasteboardTypeString];
    }
    
    virtual HRESULT GetText (IAvnString**ppv) override
    {
        @autoreleasepool
        {<commit_msg>dont clear clipboard but do a dummy read.<commit_after>// Copyright (c) The Avalonia Project. All rights reserved.
// Licensed under the MIT license. See licence.md file in the project root for full license information.

#include "common.h"
#include "AvnString.h"

class Clipboard : public ComSingleObject<IAvnClipboard, &IID_IAvnClipboard>
{
public:
    FORWARD_IUNKNOWN()
    
    Clipboard()
    {
        NSPasteboard *pasteBoard = [NSPasteboard generalPasteboard];
        [pasteBoard stringForType:NSPasteboardTypeString];
    }
    
    virtual HRESULT GetText (IAvnString**ppv) override
    {
        @autoreleasepool
        {
{'fraction_non_alphanumeric': 0.08553654743390357, 'fraction_numerical': 0.0, 'mean_word_length': 3.4379310344827587, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '5618392', 'n_tokens_mistral': 405, 'n_tokens_neox': 389, 'n_words': 108}