<commit_before>defmodule Phoenix.Socket do
  defstruct conn: nil,
            pid: nil,
            channel: nil,
            router: nil,
            channels: [],
            assigns: []

  def set_current_channel(socket, channel) do
    %__MODULE__{socket | channel: channel}
  end

  def add_channel(socket, channel) do
    %__MODULE__{socket | channels: [channel | socket.channels]}
  end

  def delete_channel(socket, channel) do
    %__MODULE__{socket | channels: List.delete(socket.channels, channel)}
  end

  def authenticated?(socket, channel) do
    Enum.member? socket.channels, channel
  end
end

<commit_msg>alias Phoenix.Socket<commit_after>defmodule Phoenix.Socket do
  alias Phoenix.Socket

  defstruct conn: nil,
            pid: nil,
            channel: nil,
            router: nil,
            channels: [],
            assigns: []

  def set_current_channel(socket, channel) do
    %Socket{socket | channel: channel}
  end

  def add_channel(socket, channel) do
    %Socket{socket | channels: [channel | socket.channels]}
  end

  def delete_channel(socket, channel) do
    %Socket{socket | channels: List.delete(socket.channels, channel)}
  end

  def authenticated?(socket, channel) do
    Enum.member? socket.channels, channel
  end
end


{'fraction_non_alphanumeric': 0.09644268774703557, 'fraction_numerical': 0.0, 'mean_word_length': 2.8480243161094223, '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': '4200041', 'n_tokens_mistral': 373, 'n_tokens_neox': 362, 'n_words': 101}