<commit_before>import Vue from 'vue';
import { Component, Prop } from 'vue-property-decorator';
import * as View from '!view!./loader.html';

import { Api } from '../../api/api.service';
import { AppLoading } from '../../../vue/components/loading/loading';

@View
@Component({
	components: {
		AppLoading,
	},
})
export class AppFormLoader extends Vue {
	@Prop(String) url?: string;
	@Prop(Promise) load?: Promise<any>;

	isLoaded = false;

	async mounted() {
		let payload;
		if (this.url) {
			payload = await Api.sendRequest(this.url, undefined, {
				detach: true,<commit_msg>Ability to pass data in for form loader<commit_after>import Vue from 'vue';
import { Component, Prop } from 'vue-property-decorator';
import * as View from '!view!./loader.html';

import { Api } from '../../api/api.service';
import { AppLoading } from '../../../vue/components/loading/loading';

@View
@Component({
	components: {
		AppLoading,
	},
})
export class AppFormLoader extends Vue {
	@Prop(String) url?: string;
	@Prop(Promise) load?: Promise<any>;
	@Prop(Object) data?: any;

	isLoaded = false;

	async mounted() {
		let payload;
		if (this.url) {
			payload = await Api.sendRequest(this.url, this.data || undefined, {
				detach: true,
{'fraction_non_alphanumeric': 0.16721044045676997, 'fraction_numerical': 0.0, 'mean_word_length': 3.927710843373494, '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': '111758', 'n_tokens_mistral': 414, 'n_tokens_neox': 401, 'n_words': 112}