<commit_before>import { DragAndDropService, DraggingEvent, DragSourceType, DropTarget } from "../dragAndDrop/dragAndDropService";
import { Autowired, Context, PostConstruct } from "../context/context";
import { MoveColumnController } from "./moveColumnController";
import { GridPanel } from "../gridPanel/gridPanel";
import { BodyDropPivotTarget } from "./bodyDropPivotTarget";
import { ColumnController } from "../columnController/columnController";
import {Constants} from "../constants";
import { GridOptionsWrapper } from "../gridOptionsWrapper";
import {BeanStub} from "../context/beanStub";

export interface DropListener {
    getIconName(): string;
    onDragEnter(params: DraggingEvent): void;
    onDragLeave(params: DraggingEvent): void;
    onDragging(params: DraggingEvent): void;
    onDragStop(params: DraggingEvent): void;
}

enum DropType { ColumnMove, Pivot }

export class BodyDropTarget extends BeanStub implements DropTarget {

    @Autowired('context') private context: Context;
    @Autowired('dragAndDropService') private dragAndDropService: DragAndDropService;
    @Autowired('columnController') private columnController: ColumnController;
    @Autowired('gridOptionsWrapper') private gridOptionsWrapper: GridOptionsWrapper;

    private gridPanel: GridPanel;
    private pinned: string;
    // public because it's part of the DropTarget interface<commit_msg>AG-4192 Refactor of ag-Stack<commit_after>import { DragAndDropService, DraggingEvent, DragSourceType, DropTarget } from "../dragAndDrop/dragAndDropService";
import { Autowired, Context, PostConstruct } from "../context/context";
import { MoveColumnController } from "./moveColumnController";
import { GridPanel } from "../gridPanel/gridPanel";
import { BodyDropPivotTarget } from "./bodyDropPivotTarget";
import { ColumnController } from "../columnController/columnController";
import {Constants} from "../constants";
import { GridOptionsWrapper } from "../gridOptionsWrapper";
import {BeanStub} from "../context/beanStub";

export interface DropListener {
    getIconName(): string;
    onDragEnter(params: DraggingEvent): void;
    onDragLeave(params: DraggingEvent): void;
    onDragging(params: DraggingEvent): void;
    onDragStop(params: DraggingEvent): void;
}

enum DropType { ColumnMove, Pivot }

export class BodyDropTarget extends BeanStub implements DropTarget {

    @Autowired('dragAndDropService') private dragAndDropService: DragAndDropService;
    @Autowired('columnController') private columnController: ColumnController;
    @Autowired('gridOptionsWrapper') private gridOptionsWrapper: GridOptionsWrapper;

    private gridPanel: GridPanel;
    private pinned: string;
    // public because it's part of the DropTarget interface
{'fraction_non_alphanumeric': 0.1065543756865617, 'fraction_numerical': 0.0014646649578908824, 'mean_word_length': 5.762376237623762, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '6719578', 'n_tokens_mistral': 694, 'n_tokens_neox': 703, 'n_words': 196}