<commit_before>﻿using Microsoft.SharePoint;
using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;

namespace Codeless.SharePoint {
  /// <summary>
  /// Provides caching and uniqueness to database persisted SharePoint objects.
  /// </summary>
  public sealed class SPObjectCache {
    #region Helper Class
    private interface ILookupKey<T> { }

    private struct SPReusableAclLookupKey : IEquatable<SPReusableAclLookupKey>, ILookupKey<SPReusableAcl> {
      public Guid ScopeId { get; private set; }

      public SPReusableAclLookupKey(Guid scopeId)
        : this() {
        this.ScopeId = scopeId;
      }

      public bool Equals(SPReusableAclLookupKey other) {
        return ScopeId == other.ScopeId;
      }

      public override bool Equals(object obj) {
        if (obj is SPReusableAclLookupKey) {
          return Equals((SPReusableAclLookupKey)obj);
        }
        return base.Equals(obj);<commit_msg>Amend previous commit<commit_after>﻿using Microsoft.SharePoint;
using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.Reflection;

namespace Codeless.SharePoint {
  /// <summary>
  /// Provides caching and uniqueness to database persisted SharePoint objects.
  /// </summary>
  public sealed class SPObjectCache {
    #region Helper Class
    private interface ILookupKey<T> { }

    private struct SPReusableAclLookupKey : IEquatable<SPReusableAclLookupKey>, ILookupKey<SPReusableAcl> {
      public Guid ScopeId { get; private set; }

      public SPReusableAclLookupKey(Guid scopeId)
        : this() {
        this.ScopeId = scopeId;
      }

      public bool Equals(SPReusableAclLookupKey other) {
        return ScopeId == other.ScopeId;
      }

      public override bool Equals(object obj) {
        if (obj is SPReusableAclLookupKey) {
          return Equals((SPReusableAclLookupKey)obj);
        }
        return base.Equals(obj);
{'fraction_non_alphanumeric': 0.08482370975983648, 'fraction_numerical': 0.0, 'mean_word_length': 3.2198275862068964, 'pattern_counts': {'":': 0, '<': 13, '<?xml version=': 0, '>': 13, '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': '7481855', 'n_tokens_mistral': 588, 'n_tokens_neox': 561, 'n_words': 143}