<commit_before>//
// Functions to process built-in commands for ccons.
//
// Part of ccons, the interactive console for the C programming language.
//
// Copyright (c) 2009 <NAME>. This file is distributed under the
// terms of MIT Open Source License. See file LICENSE for details.
//

#include "InternalCommands.h"
#include "StringUtils.h"

#include <string.h>

#include <llvm/System/DynamicLibrary.h>

namespace ccons {

// Loads the library that was specified. 
static void HandleLoadCommand(const char *arg, bool debugMode,
                              std::ostream& out, std::ostream& err)
{
	if (debugMode)
		oprintf(err, "Attempting to load external library '%s'.\n", arg);

	llvm::sys::Path path(arg);
	if (path.isDynamicLibrary()) {
		std::string errMsg;
		llvm::sys::DynamicLibrary::LoadLibraryPermanently(arg, &errMsg);<commit_msg>[<NAME>] add a missing include<commit_after>//
// Functions to process built-in commands for ccons.
//
// Part of ccons, the interactive console for the C programming language.
//
// Copyright (c) 2009 <NAME>. This file is distributed under the
// terms of MIT Open Source License. See file LICENSE for details.
//

#include "InternalCommands.h"
#include "StringUtils.h"

#include <string.h>

#include <llvm/System/DynamicLibrary.h>
#include <llvm/System/Path.h>

namespace ccons {

// Loads the library that was specified. 
static void HandleLoadCommand(const char *arg, bool debugMode,
                              std::ostream& out, std::ostream& err)
{
	if (debugMode)
		oprintf(err, "Attempting to load external library '%s'.\n", arg);

	llvm::sys::Path path(arg);
	if (path.isDynamicLibrary()) {
		std::string errMsg;
		llvm::sys::DynamicLibrary::LoadLibraryPermanently(arg, &errMsg);
{'fraction_non_alphanumeric': 0.12795389048991354, 'fraction_numerical': 0.004610951008645533, 'mean_word_length': 3.8222222222222224, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 11, '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': '5283609', 'n_tokens_mistral': 540, 'n_tokens_neox': 518, 'n_words': 175}