<commit_before>#include <stdio.h>
#include <getopt.h>
#include "libsass/sass_interface.h"

int main(int argc, char** argv)
{
	struct sass_file_context* ctx;
	char *include_paths = "";
	char *filename = "";
	int style = SASS_STYLE_NESTED;
	int ret;
	int c;

	while ((c = getopt(argc, argv, "cI:")) != -1) {
		switch (c) {
		case 'I':
			include_paths = optarg;
			break;
		case 'c':
			style = SASS_STYLE_COMPRESSED;
			break;
		case '?':
			/* Unrecognized flag or missing an expected value */
			/* getopt should produce it's own error message for this case */
			return 1;
		default:
			fprintf(stderr, "Unknown error while processing arguments\n");
			return 2;
		}
	}

	if (optind < argc) {
		filename = argv[optind];
	} else {
		fprintf(stderr, "Usage: sassc [OPTION]... FILE\n");
		return 1;
	}

	ctx = sass_new_file_context();
	ctx->options.include_paths = include_paths;
	ctx->options.image_path = "images";
	ctx->options.output_style = style;
	ctx->input_path = filename;

	sass_compile_file(ctx);
<commit_msg>Add -g flag to enable source comments<commit_after>#include <stdio.h>
#include <getopt.h>
#include "libsass/sass_interface.h"

int main(int argc, char** argv)
{
	struct sass_file_context* ctx;
	char *include_paths = "";
	char *filename = "";
	int style = SASS_STYLE_NESTED;
	int comments = 0;
	int ret;
	int c;

	while ((c = getopt(argc, argv, "cgI:")) != -1) {
		switch (c) {
		case 'I':
			include_paths = optarg;
			break;
		case 'c':
			style = SASS_STYLE_COMPRESSED;
			break;
		case 'g':
			comments = 1;
			break;
		case '?':
			/* Unrecognized flag or missing an expected value */
			/* getopt should produce it's own error message for this case */
			return 1;
		default:
			fprintf(stderr, "Unknown error while processing arguments\n");
			return 2;
		}
	}

	if (optind < argc) {
		filename = argv[optind];
	} else {
		fprintf(stderr, "Usage: sassc [OPTION]... FILE\n");
		return 1;
	}

	ctx = sass_new_file_context();
	ctx->options.include_paths = include_paths;
	ctx->options.image_path = "images";
	ctx->options.output_style = style;
	ctx->options.source_comments = comments;
	ctx->input_path = filename;

	sass_compile_file(ctx);

{'fraction_non_alphanumeric': 0.1423948220064725, 'fraction_numerical': 0.004623208506703652, 'mean_word_length': 3.6941431670281997, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 16, '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': '6040381', 'n_tokens_mistral': 876, 'n_tokens_neox': 796, 'n_words': 208}