<commit_before>import { Dict } from '../utils/types';
import Container from './container';

export interface Injection {
  lookup: string;
}

export const IS_INJECTION = Symbol('container injection placeholder');

export function isInjection(value: any): value is Injection {
  return value != null && Boolean(value[IS_INJECTION]);
}

export default function inject<T = any>(lookup: string): T {
  return <any>{
    [IS_INJECTION]: true,
    lookup
  };
}<commit_msg>fix(metal): use global symbol for container injection flags to allow multiple denali versions to work with a single container<commit_after>import { Dict } from '../utils/types';
import Container from './container';

export interface Injection {
  lookup: string;
}

export const IS_INJECTION = Symbol.for('denali:container:injection-placeholder');

export function isInjection(value: any): value is Injection {
  return value != null && Boolean(value[IS_INJECTION]);
}

export default function inject<T = any>(lookup: string): T {
  return <any>{
    [IS_INJECTION]: true,
    lookup
  };
}
{'fraction_non_alphanumeric': 0.12015137180700095, 'fraction_numerical': 0.0, 'mean_word_length': 4.910614525139665, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, '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': '3470712', 'n_tokens_mistral': 308, 'n_tokens_neox': 298, 'n_words': 100}