<commit_before>import {
  parseListAccess,
  parseFieldAccess,
  validateListAccessControl,
  validateFieldAccessControl,
} from '../lib/access-control.js';
describe('Access control package tests', () => {
  test('parseListAccess', () => {
    const statics = [true, false]; // type StaticAccess = boolean;
    const imperatives = [() => true, () => false]; // type ImperativeAccess = AccessInput => boolean;
    const where = { name: 'foo' }; // GraphQLWhere
    const whereFn = () => where; // (AccessInput => GraphQLWhere)
    const declaratives = [where, whereFn]; // type DeclarativeAccess = GraphQLWhere | (AccessInput => GraphQLWhere);<commit_msg>Import from the package index.js<commit_after>import {
  parseListAccess,
  parseFieldAccess,
  validateListAccessControl,
  validateFieldAccessControl,
} from '../';
describe('Access control package tests', () => {
  test('parseListAccess', () => {
    const statics = [true, false]; // type StaticAccess = boolean;
    const imperatives = [() => true, () => false]; // type ImperativeAccess = AccessInput => boolean;
    const where = { name: 'foo' }; // GraphQLWhere
    const whereFn = () => where; // (AccessInput => GraphQLWhere)
    const declaratives = [where, whereFn]; // type DeclarativeAccess = GraphQLWhere | (AccessInput => GraphQLWhere);
{'fraction_non_alphanumeric': 0.15007656967840735, 'fraction_numerical': 0.0, 'mean_word_length': 4.207171314741036, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 19, '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': '2762953', 'n_tokens_mistral': 364, 'n_tokens_neox': 361, 'n_words': 94}