<commit_before>import Flux from './Flux';
import DragDropMonitor from './DragDropMonitor';
import HandlerRegistry from './utils/HandlerRegistry';

export default class DragDropManager {
  constructor(Backend) {
    const flux = new Flux(this);

    this.flux = flux;
    this.registry = new HandlerRegistry(flux.registryActions);
    this.monitor = new DragDropMonitor(flux, this.registry);
    this.backend = new Backend(flux.dragDropActions);<commit_msg>Pass monitor to the backend<commit_after>import Flux from './Flux';
import DragDropMonitor from './DragDropMonitor';
import HandlerRegistry from './utils/HandlerRegistry';

export default class DragDropManager {
  constructor(Backend) {
    const flux = new Flux(this);

    this.flux = flux;
    this.registry = new HandlerRegistry(flux.registryActions);
    this.monitor = new DragDropMonitor(flux, this.registry);
    this.backend = new Backend(flux.dragDropActions, this.monitor);
{'fraction_non_alphanumeric': 0.10638297872340426, 'fraction_numerical': 0.0, 'mean_word_length': 4.84472049689441, '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': '3277959', 'n_tokens_mistral': 265, 'n_tokens_neox': 252, 'n_words': 70}