<commit_before>//
//  Permissions.swift
//  Sword
//
//  Created by <NAME>
//  Copyright © 2017 <NAME>. All rights reserved.
//

import Foundation

/// Permission enum to prevent wrong permission checks
public enum Permission: Int {

  /// Allows creation of instant invites
  case createInstantInvite = 0x1

  /// Allows kicking members
  case kickMembers = 0x2

  /// Allows banning members
  case banMembers = 0x4

  /// Allows all permissions and bypasses channel permission overwrites
  case administrator = 0x8

  /// Allows management and editing of channels
  case manageChannels = 0x10

  /// Allows management and editing of the guild
  case manageGuild = 0x20

  /// Allows for the addition of reactions to messages
  case addReactions = 0x40

  /// Allows reading messages in a channel. The channel will not appear for users without this permission
  case readMessages = 0x400

  /// Allows for sending messages in a channel.
  case sendMessages = 0x800

  /// Allows for sending of /tts messages
  case sendTTSMessages = 0x1000

  /// Allows for deletion of other users messages
  case manageMessages = 0x2000

  /// Links sent by this user will be auto-embedded
  case embedLinks = 0x4000

  /// Allows for uploading images and files
  case attachFiles = 0x8000

  /// Allows for reading of message history
  case readMessageHistory = 0x10000

  /// Allows for using the @everyone tag to notify all users in a channel, and the @here tag to notify all online users in a channel
  case mentionEveryone = 0x20000

  /// Allows the usage of custom emojis from other servers
  case useExternalEmojis = 0x40000

  /// Allows for joining of a voice channel
  case connect = 0x100000<commit_msg>Add audit log permission<commit_after>//
//  Permissions.swift
//  Sword
//
//  Created by <NAME>
//  Copyright © 2017 <NAME>. All rights reserved.
//

import Foundation

/// Permission enum to prevent wrong permission checks
public enum Permission: Int {

  /// Allows creation of instant invites
  case createInstantInvite = 0x1

  /// Allows kicking members
  case kickMembers = 0x2

  /// Allows banning members
  case banMembers = 0x4

  /// Allows all permissions and bypasses channel permission overwrites
  case administrator = 0x8

  /// Allows management and editing of channels
  case manageChannels = 0x10

  /// Allows management and editing of the guild
  case manageGuild = 0x20

  /// Allows for the addition of reactions to messages
  case addReactions = 0x40

  /// Allows for the user to view a server's audit log
  case viewAuditLog = 0x80

  /// Allows reading messages in a channel. The channel will not appear for users without this permission
  case readMessages = 0x400

  /// Allows for sending messages in a channel.
  case sendMessages = 0x800

  /// Allows for sending of /tts messages
  case sendTTSMessages = 0x1000

  /// Allows for deletion of other users messages
  case manageMessages = 0x2000

  /// Links sent by this user will be auto-embedded
  case embedLinks = 0x4000

  /// Allows for uploading images and files
  case attachFiles = 0x8000

  /// Allows for reading of message history
  case readMessageHistory = 0x10000

  /// Allows for using the @everyone tag to notify all users in a channel, and the @here tag to notify all online users in a channel
  case mentionEveryone = 0x20000

  /// Allows the usage of custom emojis from other servers
  case useExternalEmojis = 0x40000

  /// Allows for joining of a voice channel
  case connect = 0x100000
{'fraction_non_alphanumeric': 0.06149885583524028, 'fraction_numerical': 0.04319221967963387, 'mean_word_length': 3.0241657077100115, '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': '3275172', 'n_tokens_mistral': 1106, 'n_tokens_neox': 933, 'n_words': 443}