text:
require 'date'
require 'google/apis/core/base_service'
require 'google/apis/core/json_representation'
require 'google/apis/core/hashable'
require 'google/apis/errors'

module Google
  module Apis
    module IdentitytoolkitV2

      class GoogleCloudIdentitytoolkitAdminV2AllowByDefault
        class Representation < Google::Apis::Core::JsonRepresentation; end

        include Google::Apis::Core::JsonObjectSupport
      end

      class GoogleCloudIdentitytoolkitAdminV2AllowlistOnly
        class Representation < Google::Apis::Core::JsonRepresentation; end

        include Google::Apis::Core::JsonObjectSupport
      end

      class GoogleCloudIdentitytoolkitAdminV2Anonymous
        class Representation < Google::Apis::Core::JsonRepresentation; end

        include Google::Apis::Core::JsonObjectSupport
      end

      class GoogleCloudIdentitytoolkitAdminV2AppleSignInConfig
        class Representation < Google::Apis::Core::JsonRepresentation; end

        include Google::Apis::Core::JsonObjectSupport
      end

      class GoogleCloudIdentitytoolkitAdminV2BlockingFunctionsConfig
        class Representation < Google::Apis::Core::JsonRepresentation; end

        include Google::Apis::Core::JsonObjectSupport
      end

      class GoogleCloudIdentitytoolkitAdminV2ClientConfig
        class Representation < Google::Apis::Core::JsonRepresentation; end

        include Google::Apis::Core::JsonObjectSupport
      end

      class GoogleCloudIdentitytoolkitAdminV2ClientPermissionConfig
        class Representation < Google::Apis::Core::JsonRepresentation; end

        include Google::Apis::Core::JsonObjectSupport
      end

      class GoogleCloudIdentitytoolkitAdminV2ClientPermissions
        class Representation < Google::Apis::Core::JsonRepresentation; end

        include Google::Apis::Core::JsonObjectSupport
      end

      class GoogleCloudIdentitytoolkitAdminV2CodeFlowConfig
        class Representation < Google::Apis::Core::JsonRepresentation; end

        include Google::Apis::Core::JsonObjectSupport
      end

      class GoogleCloudIdentitytoolkitAdminV2Config
        class Representation < Google::Apis::Core::JsonRepresentation; end

        include Google::Apis::Core::JsonObjectSupport
      end

      class GoogleCloudIdentitytoolkitAdminV2DefaultSupportedIdp
        class Representation < Google::Apis::Core::JsonRepresentation; end

        include Google::Apis::Core::JsonObjectSupport
      end

      class GoogleCloudIdentitytoolkitAdminV2DefaultSupportedIdpConfig
        class Representation < Google::Apis::Core::JsonRepresentation; end

        include Google::Apis::Core::JsonObjectSupport
      end

      class GoogleCloudIdentitytoolkitAdminV2DnsInfo
        class Representation < Google::Apis::Core::JsonRepresentation; end

        include Google::Apis::Core::JsonObjectSupport
      end

      class GoogleCloudIdentitytoolkitAdminV2Email
        class Representation < Google::Apis::Core::JsonRepresentation; end

        include Google::Apis::Core::JsonObjectSupport
      end

      class GoogleCloudIdentitytoolkitAdminV2EmailPrivacyConfig
        class Representation < Google::Apis::Core::JsonRepresentation; end

        include Google::Apis::Core::JsonObjectSupport
      end

      class GoogleCloudIdentitytoolkitAdminV2EmailTemplate
        class Representation < Google::Apis::Core::JsonRepresentation; end

        include Google::Apis::Core::JsonObjectSupport
      end

      class GoogleCloudIdentitytoolkitAdminV2ForwardInboundCredentials
        class Representation < Google::Apis::Core::JsonRepresentation; end

        include Google::Apis::Core::JsonObjectSupport
      end

      class GoogleCloudIdentitytoolkitAdminV2HashConfig
        class Representation < Google::Apis::Core::JsonRepresentation; end

        include Google::Apis::Core::JsonObjectSupport
      end

      class GoogleCloudIdentitytoolkitAdminV2IdpCertificate
        class Representation < Google::Apis::Core::JsonRepresentation; end

        include Google::Apis::Core::JsonObjectSupport
      end

      class GoogleCloudIdentitytoolkitAdminV2IdpConfig
        class Representation < Google::Apis::Core::JsonRepresentation; end

        include Google::Apis::Core::JsonObjectSupport
      end

      class GoogleCloudIdentitytoolkitAdminV2InboundSamlConfig
        class Representation < Google::Apis::Core::JsonRepresentation; end

        include Google::Apis::Core::JsonObjectSupport
      end

      class GoogleCloudIdentitytoolkitAdminV2Inheritance
        class Representation < Google::Apis::Core::JsonRepresentation; end

        include Google::Apis::Core::JsonObjectSupport
      end

      class GoogleCloudIdentitytoolkitAdminV2InitializeIdentityPlatformRequest
        class Representation < Google::Apis::Core::JsonRepresentation; end

        include Google::Apis::Core::JsonObjectSupport
      end

      class GoogleCloudIdentitytoolkitAdminV2InitializeIdentityPlatformResponse
        class Representation < Google::Apis::Core::JsonRepresentation; end

        include Google::Apis::Core::JsonObjectSupport
      end

      class GoogleCloudIdentitytoolkitAdminV2ListDefaultSupportedIdpConfigsResponse
        class Representation < Google::Apis::Core::JsonRepresentation; end

        include Google::Apis::Core::JsonObjectSupport
      end

      class GoogleCloudIdentitytoolkitAdminV2ListDefaultSupportedIdpsResponse
        class Representation < Google::Apis::Core::JsonRepresentation; end

        include Google::Apis::Core::JsonObjectSupport
      end

      class GoogleCloudIdentitytoolkitAdminV2ListInboundSamlConfigsResponse
        class Representation < Google::Apis::Core::JsonRepresentation; end

        include Google::Apis::Core::JsonObjectSupport
      end

      class GoogleCloudIdentitytoolkitAdminV2ListOAuthIdpConfigsResponse
        class Representation < Google::Apis::Core::JsonRepresentation; end

        include Google::Apis::Core::JsonObjectSupport
      end

      class GoogleCloudIdentitytoolkitAdminV2ListTenantsResponse
        class Representation < Google::Apis::Core::JsonRepresentation; end

        include Google::Apis::Core::JsonObjectSupport
      end

      class GoogleCloudIdentitytoolkitAdminV2MonitoringConfig
        class Representation < Google::Apis::Core::JsonRepresentation; end

        include Google::Apis::Core::JsonObjectSupport
      end

      class GoogleCloudIdentitytoolkitAdminV2MultiFactorAuthConfig
        class Representation < Google::Apis::Core::JsonRepresentation; end

        include Google::Apis::Core::JsonObjectSupport
      end

      class GoogleCloudIdentitytoolkitAdminV2MultiTenantConfig
        class Representation < Google::Apis::Core::JsonRepresentation; end

        include Google::Apis::Core::JsonObjectSupport
      end

      class GoogleCloudIdentitytoolkitAdminV2NotificationConfig
        class Representation < Google::Apis::Core::JsonRepresentation; end

        include Google::Apis::Core::JsonObjectSupport
      end

      class GoogleCloudIdentitytoolkitAdminV2OAuthIdpConfig
        class Representation < Google::Apis::Core::JsonRepresentation; end

        include Google::Apis::Core::JsonObjectSupport
      end

      class GoogleCloudIdentitytoolkitAdminV2OAuthResponseType
        class Representation < Google::Apis::Core::JsonRepresentation; end

        include Google::Apis::Core::JsonObjectSupport
      end

      class GoogleCloudIdentitytoolkitAdminV2Permissions
        class Representation < Google::Apis::Core::JsonRepresentation; end

        include Google::Apis::Core::JsonObjectSupport
      end

      class GoogleCloudIdentitytoolkitAdminV2PhoneNumber
        class Representation < Google::Apis::Core::JsonRepresentation; end

        include Google::Apis::Core::JsonObjectSupport
      end

      class GoogleCloudIdentitytoolkitAdminV2QuotaConfig
        class Representation < Google::Apis::Core::JsonRepresentation; end

        include Google::Apis::Core::JsonObjectSupport
      end

      class GoogleCloudIdentitytoolkitAdminV2RequestLogging
        class Representation < Google::Apis::Core::JsonRepresentation; end

        include Google::Apis::Core::JsonObjectSupport
      end

      class GoogleCloudIdentitytoolkitAdminV2SendEmail
        class Representation < Google::Apis::Core::JsonRepresentation; end

        include Google::Apis::Core::JsonObjectSupport
      end

      class GoogleCloudIdentitytoolkitAdminV2SendSms
        class Representation < Google::Apis::Core::JsonRepresentation; end

        include Google::Apis::Core::JsonObjectSupport
      end

      class GoogleCloudIdentitytoolkitAdminV2SignInConfig
        class Representation < Google::Apis::Core::JsonRepresentation; end

        include Google::Apis::Core::JsonObjectSupport
      end

      class GoogleCloudIdentitytoolkitAdminV2SmsRegionConfig
        class Representation < Google::Apis::Core::JsonRepresentation; end

        include Google::Apis::Core::JsonObjectSupport
      end

      class GoogleCloudIdentitytoolkitAdminV2SmsTemplate
        class Representation < Google::Apis::Core::JsonRepresentation; end

        include Google::Apis::Core::JsonObjectSupport
      end

      class GoogleCloudIdentitytoolkitAdminV2Smtp
        class Representation < Google::Apis::Core::JsonRepresentation; end

        include Google::Apis::Core::JsonObjectSupport
      end

      class GoogleCloudIdentitytoolkitAdminV2SpCertificate
        class Representation < Google::Apis::Core::JsonRepresentation; end

        include Google::Apis::Core::JsonObjectSupport
      end

      class GoogleCloudIdentitytoolkitAdminV2SpConfig
        class Representation < Google::Apis::Core::JsonRepresentation; end

        include Google::Apis::Core::JsonObjectSupport
      end

      class GoogleCloudIdentitytoolkitAdminV2TemporaryQuota
        class Representation < Google::Apis::Core::JsonRepresentation; end

        include Google::Apis::Core::JsonObjectSupport
      end

      class GoogleCloudIdentitytoolkitAdminV2Tenant
        class Representation < Google::Apis::Core::JsonRepresentation; end

        include Google::Apis::Core::JsonObjectSupport
      end

      class GoogleCloudIdentitytoolkitAdminV2Trigger
        class Representation < Google::Apis::Core::JsonRepresentation; end

        include Google::Apis::Core::JsonObjectSupport
      end

      class GoogleCloudIdentitytoolkitV2AutoRetrievalInfo
        class Representation < Google::Apis::Core::JsonRepresentation; end

        include Google::Apis::Core::JsonObjectSupport
      end

      class GoogleCloudIdentitytoolkitV2FinalizeMfaEnrollmentRequest
        class Representation < Google::Apis::Core::JsonRepresentation; end

        include Google::Apis::Core::JsonObjectSupport
      end

      class GoogleCloudIdentitytoolkitV2FinalizeMfaEnrollmentResponse
        class Representation < Google::Apis::Core::JsonRepresentation; end

        include Google::Apis::Core::JsonObjectSupport
      end

      class GoogleCloudIdentitytoolkitV2FinalizeMfaPhoneRequestInfo
        class Representation < Google::Apis::Core::JsonRepresentation; end

        include Google::Apis::Core::JsonObjectSupport
      end

      class GoogleCloudIdentitytoolkitV2FinalizeMfaPhoneResponseInfo
        class Representation < Google::Apis::Core::JsonRepresentation; end

        include Google::Apis::Core::JsonObjectSupport
      end

      class GoogleCloudIdentitytoolkitV2FinalizeMfaSignInRequest
        class Representation < Google::Apis::Core::JsonRepresentation; end

        include Google::Apis::Core::JsonObjectSupport
      end

      class GoogleCloudIdentitytoolkitV2FinalizeMfaSignInResponse
        class Representation < Google::Apis::Core::JsonRepresentation; end

        include Google::Apis::Core::JsonObjectSupport
      end

      class GoogleCloudIdentitytoolkitV2StartMfaEnrollmentRequest
        class Representation < Google::Apis::Core::JsonRepresentation; end

        include Google::Apis::Core::JsonObjectSupport
      end

      class GoogleCloudIdentitytoolkitV2StartMfaEnrollmentResponse
        class Representation < Google::Apis::Core::JsonRepresentation; end

        include Google::Apis::Core::JsonObjectSupport
      end

      class GoogleCloudIdentitytoolkitV2StartMfaPhoneRequestInfo
        class Representation < Google::Apis::Core::JsonRepresentation; end

        include Google::Apis::Core::JsonObjectSupport
      end

      class GoogleCloudIdentitytoolkitV2StartMfaPhoneResponseInfo
        class Representation < Google::Apis::Core::JsonRepresentation; end

        include Google::Apis::Core::JsonObjectSupport
      end

      class GoogleCloudIdentitytoolkitV2StartMfaSignInRequest
        class Representation < Google::Apis::Core::JsonRepresentation; end

        include Google::Apis::Core::JsonObjectSupport
      end

      class GoogleCloudIdentitytoolkitV2StartMfaSignInResponse
        class Representation < Google::Apis::Core::JsonRepresentation; end

        include Google::Apis::Core::JsonObjectSupport
      end

      class GoogleCloudIdentitytoolkitV2WithdrawMfaRequest
        class Representation < Google::Apis::Core::JsonRepresentation; end

        include Google::Apis::Core::JsonObjectSupport
      end

      class GoogleCloudIdentitytoolkitV2WithdrawMfaResponse
        class Representation < Google::Apis::Core::JsonRepresentation; end

        include Google::Apis::Core::JsonObjectSupport
      end

      class GoogleIamV1AuditConfig
        class Representation < Google::Apis::Core::JsonRepresentation; end

        include Google::Apis::Core::JsonObjectSupport
      end

      class GoogleIamV1AuditLogConfig
        class Representation < Google::Apis::Core::JsonRepresentation; end

        include Google::Apis::Core::JsonObjectSupport
      end

      class GoogleIamV1Binding
        class Representation < Google::Apis::Core::JsonRepresentation; end

        include Google::Apis::Core::JsonObjectSupport
      end

      class GoogleIamV1GetIamPolicyRequest
        class Representation < Google::Apis::Core::JsonRepresentation; end

        include Google::Apis::Core::JsonObjectSupport
      end

      class GoogleIamV1GetPolicyOptions
        class Representation < Google::Apis::Core::JsonRepresentation; end

        include Google::Apis::Core::JsonObjectSupport
      end

      class GoogleIamV1Policy
        class Representation < Google::Apis::Core::JsonRepresentation; end

        include Google::Apis::Core::JsonObjectSupport
      end

      class GoogleIamV1SetIamPolicyRequest
        class Representation < Google::Apis::Core::JsonRepresentation; end

        include Google::Apis::Core::JsonObjectSupport
      end

      class GoogleIamV1TestIamPermissionsRequest
        class Representation < Google::Apis::Core::JsonRepresentation; end

        include Google::Apis::Core::JsonObjectSupport
      end

      class GoogleIamV1TestIamPermissionsResponse
        class Representation < Google::Apis::Core::JsonRepresentation; end

        include Google::Apis::Core::JsonObjectSupport
      end

      class GoogleProtobufEmpty
        class Representation < Google::Apis::Core::JsonRepresentation; end

        include Google::Apis::Core::JsonObjectSupport
      end

      class GoogleTypeExpr
        class Representation < Google::Apis::Core::JsonRepresentation; end

        include Google::Apis::Core::JsonObjectSupport
      end

      class GoogleCloudIdentitytoolkitAdminV2AllowByDefault
        # @private
        class Representation < Google::Apis::Core::JsonRepresentation
          collection :disallowed_regions, as: 'disallowedRegions'
        end
      end

      class GoogleCloudIdentitytoolkitAdminV2AllowlistOnly
        # @private
        class Representation < Google::Apis::Core::JsonRepresentation
          collection :allowed_regions, as: 'allowedRegions'
        end
      end

      class GoogleCloudIdentitytoolkitAdminV2Anonymous
        # @private
        class Representation < Google::Apis::Core::JsonRepresentation
          property :enabled, as: 'enabled'
        end
      end

      class GoogleCloudIdentitytoolkitAdminV2AppleSignInConfig
        # @private
        class Representation < Google::Apis::Core::JsonRepresentation
          collection :bundle_ids, as: 'bundleIds'
          property :code_flow_config, as: 'codeFlowConfig', class: Google::Apis::IdentitytoolkitV2::GoogleCloudIdentitytoolkitAdminV2CodeFlowConfig, decorator: Google::Apis::IdentitytoolkitV2::GoogleCloudIdentitytoolkitAdminV2CodeFlowConfig::Representation

        end
      end

      class GoogleCloudIdentitytoolkitAdminV2BlockingFunctionsConfig
        # @private
        class Representation < Google::Apis::Core::JsonRepresentation
          property :forward_inbound_credentials, as: 'forwardInboundCredentials', class: Google::Apis::IdentitytoolkitV2::GoogleCloudIdentitytoolkitAdminV2ForwardInboundCredentials, decorator: Google::Apis::IdentitytoolkitV2::GoogleCloudIdentitytoolkitAdminV2ForwardInboundCredentials::Representation

          hash :triggers, as: 'triggers', class: Google::Apis::IdentitytoolkitV2::GoogleCloudIdentitytoolkitAdminV2Trigger, decorator: Google::Apis::IdentitytoolkitV2::GoogleCloudIdentitytoolkitAdminV2Trigger::Representation

        end
      end

      class GoogleCloudIdentitytoolkitAdminV2ClientConfig
        # @private
        class Representation < Google::Apis::Core::JsonRepresentation
          property :api_key, as: 'apiKey'
          property :firebase_subdomain, as: 'firebaseSubdomain'
          property :permissions, as: 'permissions', class: Google::Apis::IdentitytoolkitV2::GoogleCloudIdentitytoolkitAdminV2Permissions, decorator: Google::Apis::IdentitytoolkitV2::GoogleCloudIdentitytoolkitAdminV2Permissions::Representation

        end
      end

      class GoogleCloudIdentitytoolkitAdminV2ClientPermissionConfig
        # @private
        class Representation < Google::Apis::Core::JsonRepresentation
          property :permissions, as: 'permissions', class: Google::Apis::IdentitytoolkitV2::GoogleCloudIdentitytoolkitAdminV2ClientPermissions, decorator: Google::Apis::IdentitytoolkitV2::GoogleCloudIdentitytoolkitAdminV2ClientPermissions::Representation

        end
      end

      class GoogleCloudIdentitytoolkitAdminV2ClientPermissions
        # @private
        class Representation < Google::Apis::Core::JsonRepresentation
          property :disabled_user_deletion, as: 'disabledUserDeletion'
          property :disabled_user_signup, as: 'disabledUserSignup'
        end
      end

      class GoogleCloudIdentitytoolkitAdminV2CodeFlowConfig
        # @private
        class Representation < Google::Apis::Core::JsonRepresentation
          property :key_id, as: 'keyId'
          property :private_key, as: 'privateKey'
          property :team_id, as: 'teamId'
        end
      end

      class GoogleCloudIdentitytoolkitAdminV2Config
        # @private
        class Representation < Google::Apis::Core::JsonRepresentation
          collection :authorized_domains, as: 'authorizedDomains'
          property :autodelete_anonymous_users, as: 'autodeleteAnonymousUsers'
          property :blocking_functions, as: 'blockingFunctions', class: Google::Apis::IdentitytoolkitV2::GoogleCloudIdentitytoolkitAdminV2BlockingFunctionsConfig, decorator: Google::Apis::IdentitytoolkitV2::GoogleCloudIdentitytoolkitAdminV2BlockingFunctionsConfig::Representation

          property :client, as: 'client', class: Google::Apis::IdentitytoolkitV2::GoogleCloudIdentitytoolkitAdminV2ClientConfig, decorator: Google::Apis::IdentitytoolkitV2::GoogleCloudIdentitytoolkitAdminV2ClientConfig::Representation

          property :email_privacy_config, as: 'emailPrivacyConfig', class: Google::Apis::IdentitytoolkitV2::GoogleCloudIdentitytoolkitAdminV2EmailPrivacyConfig, decorator: Google::Apis::IdentitytoolkitV2::GoogleCloudIdentitytoolkitAdminV2EmailPrivacyConfig::Representation

          property :mfa, as: 'mfa', class: Google::Apis::IdentitytoolkitV2::GoogleCloudIdentitytoolkitAdminV2MultiFactorAuthConfig, decorator: Google::Apis::IdentitytoolkitV2::GoogleCloudIdentitytoolkitAdminV2MultiFactorAuthConfig::Representation

          property :monitoring, as: 'monitoring', class: Google::Apis::IdentitytoolkitV2::GoogleCloudIdentitytoolkitAdminV2MonitoringConfig, decorator: Google::Apis::IdentitytoolkitV2::GoogleCloudIdentitytoolkitAdminV2MonitoringConfig::Representation

          property :multi_tenant, as: 'multiTenant', class: Google::Apis::IdentitytoolkitV2::GoogleCloudIdentitytoolkitAdminV2MultiTenantConfig, decorator: Google::Apis::IdentitytoolkitV2::GoogleCloudIdentitytoolkitAdminV2MultiTenantConfig::Representation

          property :name, as: 'name'
          property :notification, as: 'notification', class: Google::Apis::IdentitytoolkitV2::GoogleCloudIdentitytoolkitAdminV2NotificationConfig, decorator: Google::Apis::IdentitytoolkitV2::GoogleCloudIdentitytoolkitAdminV2NotificationConfig::Representation

          property :quota, as: 'quota', class: Google::Apis::IdentitytoolkitV2::GoogleCloudIdentitytoolkitAdminV2QuotaConfig, decorator: Google::Apis::IdentitytoolkitV2::GoogleCloudIdentitytoolkitAdminV2QuotaConfig::Representation

          property :sign_in, as: 'signIn', class: Google::Apis::IdentitytoolkitV2::GoogleCloudIdentitytoolkitAdminV2SignInConfig, decorator: Google::Apis::IdentitytoolkitV2::GoogleCloudIdentitytoolkitAdminV2SignInConfig::Representation

          property :sms_region_config, as: 'smsRegionConfig', class: Google::Apis::IdentitytoolkitV2::GoogleCloudIdentitytoolkitAdminV2SmsRegionConfig, decorator: Google::Apis::IdentitytoolkitV2::GoogleCloudIdentitytoolkitAdminV2SmsRegionConfig::Representation

          property :subtype, as: 'subtype'
        end
      end

      class GoogleCloudIdentitytoolkitAdminV2DefaultSupportedIdp
        # @private
        class Representation < Google::Apis::Core::JsonRepresentation
          property :description, as: 'description'
          property :idp_id, as: 'idpId'
        end
      end

      class GoogleCloudIdentitytoolkitAdminV2DefaultSupportedIdpConfig
        # @private
        class Representation < Google::Apis::Core::JsonRepresentation
          property :apple_sign_in_config, as: 'appleSignInConfig', class: Google::Apis::IdentitytoolkitV2::GoogleCloudIdentitytoolkitAdminV2AppleSignInConfig, decorator: Google::Apis::IdentitytoolkitV2::GoogleCloudIdentitytoolkitAdminV2AppleSignInConfig::Representation

          property :client_id, as: 'clientId'
          property :client_secret, as: 'clientSecret'
          property :enabled, as: 'enabled'
          property :name, as: 'name'
        end
      end

      class GoogleCloudIdentitytoolkitAdminV2DnsInfo
        # @private
        class Representation < Google::Apis::Core::JsonRepresentation
          property :custom_domain, as: 'customDomain'
          property :custom_domain_state, as: 'customDomainState'
          property :domain_verification_request_time, as: 'domainVerificationRequestTime'
          property :pending_custom_domain, as: 'pendingCustomDomain'
          property :use_custom_domain, as: 'useCustomDomain'
        end
      end

      class GoogleCloudIdentitytoolkitAdminV2Email
        # @private
        class Representation < Google::Apis::Core::JsonRepresentation
          property :enabled, as: 'enabled'
          property :password_required, as: 'passwordRequired'
        end
      end

      class GoogleCloudIdentitytoolkitAdminV2EmailPrivacyConfig
        # @private
        class Representation < Google::Apis::Core::JsonRepresentation
          property :enable_improved_email_privacy, as: 'enableImprovedEmailPrivacy'
        end
      end

      class GoogleCloudIdentitytoolkitAdminV2EmailTemplate
        # @private
        class Representation < Google::Apis::Core::JsonRepresentation
          property :body, as: 'body'
          property :body_format, as: 'bodyFormat'
          property :customized, as: 'customized'
          property :reply_to, as: 'replyTo'
          property :sender_display_name, as: 'senderDisplayName'
          property :sender_local_part, as: 'senderLocalPart'
          property :subject, as: 'subject'
        end
      end

      class GoogleCloudIdentitytoolkitAdminV2ForwardInboundCredentials
        # @private
        class Representation < Google::Apis::Core::JsonRepresentation
          property :access_token, as: 'accessToken'
          property :id_token, as: 'idToken'
          property :refresh_token, as: 'refreshToken'
        end
      end

      class GoogleCloudIdentitytoolkitAdminV2HashConfig
        # @private
        class Representation < Google::Apis::Core::JsonRepresentation
          property :algorithm, as: 'algorithm'
          property :memory_cost, as: 'memoryCost'
          property :rounds, as: 'rounds'
          property :salt_separator, as: 'saltSeparator'
          property :signer_key, as: 'signerKey'
        end
      end

      class GoogleCloudIdentitytoolkitAdminV2IdpCertificate
        # @private
        class Representation < Google::Apis::Core::JsonRepresentation
          property :x509_certificate, as: 'x509Certificate'
        end
      end

      class GoogleCloudIdentitytoolkitAdminV2IdpConfig
        # @private
        class Representation < Google::Apis::Core::JsonRepresentation
          collection :idp_certificates, as: 'idpCertificates', class: Google::Apis::IdentitytoolkitV2::GoogleCloudIdentitytoolkitAdminV2IdpCertificate, decorator: Google::Apis::IdentitytoolkitV2::GoogleCloudIdentitytoolkitAdminV2IdpCertificate::Representation

          property :idp_entity_id, as: 'idpEntityId'
          property :sign_request, as: 'signRequest'
          property :sso_url, as: 'ssoUrl'
        end
      end

      class GoogleCloudIdentitytoolkitAdminV2InboundSamlConfig
        # @private
        class Representation < Google::Apis::Core::JsonRepresentation
          property :display_name, as: 'displayName'
          property :enabled, as: 'enabled'
          property :idp_config, as: 'idpConfig', class: Google::Apis::IdentitytoolkitV2::GoogleCloudIdentitytoolkitAdminV2IdpConfig, decorator: Google::Apis::IdentitytoolkitV2::GoogleCloudIdentitytoolkitAdminV2IdpConfig::Representation

          property :name, as: 'name'
          property :sp_config, as: 'spConfig', class: Google::Apis::IdentitytoolkitV2::GoogleCloudIdentitytoolkitAdminV2SpConfig, decorator: Google::Apis::IdentitytoolkitV2::GoogleCloudIdentitytoolkitAdminV2SpConfig::Representation

        end
      end

      class GoogleCloudIdentitytoolkitAdminV2Inheritance
        # @private
        class Representation < Google::Apis::Core::JsonRepresentation
          property :email_sending_config, as: 'emailSendingConfig'
        end
      end

      class GoogleCloudIdentitytoolkitAdminV2InitializeIdentityPlatformRequest
        # @private
        class Representation < Google::Apis::Core::JsonRepresentation
        end
      end

      class GoogleCloudIdentitytoolkitAdminV2InitializeIdentityPlatformResponse
        # @private
        class Representation < Google::Apis::Core::JsonRepresentation
        end
      end

      class GoogleCloudIdentitytoolkitAdminV2ListDefaultSupportedIdpConfigsResponse
        # @private
        class Representation < Google::Apis::Core::JsonRepresentation
          collection :default_supported_idp_configs, as: 'defaultSupportedIdpConfigs', class: Google::Apis::IdentitytoolkitV2::GoogleCloudIdentitytoolkitAdminV2DefaultSupportedIdpConfig, decorator: Google::Apis::IdentitytoolkitV2::GoogleCloudIdentitytoolkitAdminV2DefaultSupportedIdpConfig::Representation

          property :next_page_token, as: 'nextPageToken'
        end
      end

      class GoogleCloudIdentitytoolkitAdminV2ListDefaultSupportedIdpsResponse
        # @private
        class Representation < Google::Apis::Core::JsonRepresentation
          collection :default_supported_idps, as: 'defaultSupportedIdps', class: Google::Apis::IdentitytoolkitV2::GoogleCloudIdentitytoolkitAdminV2DefaultSupportedIdp, decorator: Google::Apis::IdentitytoolkitV2::GoogleCloudIdentitytoolkitAdminV2DefaultSupportedIdp::Representation

          property :next_page_token, as: 'nextPageToken'
        end
      end

      class GoogleCloudIdentitytoolkitAdminV2ListInboundSamlConfigsResponse
        # @private
        class Representation < Google::Apis::Core::JsonRepresentation
          collection :inbound_saml_configs, as: 'inboundSamlConfigs', class: Google::Apis::IdentitytoolkitV2::GoogleCloudIdentitytoolkitAdminV2InboundSamlConfig, decorator: Google::Apis::IdentitytoolkitV2::GoogleCloudIdentitytoolkitAdminV2InboundSamlConfig::Representation

          property :next_page_token, as: 'nextPageToken'
        end
      end

      class GoogleCloudIdentitytoolkitAdminV2ListOAuthIdpConfigsResponse
        # @private
        class Representation < Google::Apis::Core::JsonRepresentation
          property :next_page_token, as: 'nextPageToken'
          collection :oauth_idp_configs, as: 'oauthIdpConfigs', class: Google::Apis::IdentitytoolkitV2::GoogleCloudIdentitytoolkitAdminV2OAuthIdpConfig, decorator: Google::Apis::IdentitytoolkitV2::GoogleCloudIdentitytoolkitAdminV2OAuthIdpConfig::Representation

        end
      end

      class GoogleCloudIdentitytoolkitAdminV2ListTenantsResponse
        # @private
        class Representation < Google::Apis::Core::JsonRepresentation
          property :next_page_token, as: 'nextPageToken'
          collection :tenants, as: 'tenants', class: Google::Apis::IdentitytoolkitV2::GoogleCloudIdentitytoolkitAdminV2Tenant, decorator: Google::Apis::IdentitytoolkitV2::GoogleCloudIdentitytoolkitAdminV2Tenant::Representation

        end
      end

      class GoogleCloudIdentitytoolkitAdminV2MonitoringConfig
        # @private
        class Representation < Google::Apis::Core::JsonRepresentation
          property :request_logging, as: 'requestLogging', class: Google::Apis::IdentitytoolkitV2::GoogleCloudIdentitytoolkitAdminV2RequestLogging, decorator: Google::Apis::IdentitytoolkitV2::GoogleCloudIdentitytoolkitAdminV2RequestLogging::Representation

        end
      end

      class GoogleCloudIdentitytoolkitAdminV2MultiFactorAuthConfig
        # @private
        class Representation < Google::Apis::Core::JsonRepresentation
          collection :enabled_providers, as: 'enabledProviders'
          property :state, as: 'state'
        end
      end

      class GoogleCloudIdentitytoolkitAdminV2MultiTenantConfig
        # @private
        class Representation < Google::Apis::Core::JsonRepresentation
          property :allow_tenants, as: 'allowTenants'
          property :default_tenant_location, as: 'defaultTenantLocation'
        end
      end

      class GoogleCloudIdentitytoolkitAdminV2NotificationConfig
        # @private
        class Representation < Google::Apis::Core::JsonRepresentation
          property :default_locale, as: 'defaultLocale'
          property :send_email, as: 'sendEmail', class: Google::Apis::IdentitytoolkitV2::GoogleCloudIdentitytoolkitAdminV2SendEmail, decorator: Google::Apis::IdentitytoolkitV2::GoogleCloudIdentitytoolkitAdminV2SendEmail::Representation

          property :send_sms, as: 'sendSms', class: Google::Apis::IdentitytoolkitV2::GoogleCloudIdentitytoolkitAdminV2SendSms, decorator: Google::Apis::IdentitytoolkitV2::GoogleCloudIdentitytoolkitAdminV2SendSms::Representation

        end
      end

      class GoogleCloudIdentitytoolkitAdminV2OAuthIdpConfig
        # @private
        class Representation < Google::Apis::Core::JsonRepresentation
          property :client_id, as: 'clientId'
          property :client_secret, as: 'clientSecret'
          property :display_name, as: 'displayName'
          property :enabled, as: 'enabled'
          property :issuer, as: 'issuer'
          property :name, as: 'name'
          property :response_type, as: 'responseType', class: Google::Apis::IdentitytoolkitV2::GoogleCloudIdentitytoolkitAdminV2OAuthResponseType, decorator: Google::Apis::IdentitytoolkitV2::GoogleCloudIdentitytoolkitAdminV2OAuthResponseType::Representation

        end
      end

      class GoogleCloudIdentitytoolkitAdminV2OAuthResponseType
        # @private
        class Representation < Google::Apis::Core::JsonRepresentation
          property :code, as: 'code'
          property :id_token, as: 'idToken'
          property :token, as: 'token'
        end
      end

      class GoogleCloudIdentitytoolkitAdminV2Permissions
        # @private
        class Representation < Google::Apis::Core::JsonRepresentation
          property :disabled_user_deletion, as: 'disabledUserDeletion'
          property :disabled_user_signup, as: 'disabledUserSignup'
        end
      end

      class GoogleCloudIdentitytoolkitAdminV2PhoneNumber
        # @private
        class Representation < Google::Apis::Core::JsonRepresentation
          property :enabled, as: 'enabled'
          hash :test_phone_numbers, as: 'testPhoneNumbers'
        end
      end

      class GoogleCloudIdentitytoolkitAdminV2QuotaConfig
        # @private
        class Representation < Google::Apis::Core::JsonRepresentation
          property :sign_up_quota_config, as: 'signUpQuotaConfig', class: Google::Apis::IdentitytoolkitV2::GoogleCloudIdentitytoolkitAdminV2TemporaryQuota, decorator: Google::Apis::IdentitytoolkitV2::GoogleCloudIdentitytoolkitAdminV2TemporaryQuota::Representation

        end
      end

      class GoogleCloudIdentitytoolkitAdminV2RequestLogging
        # @private
        class Representation < Google::Apis::Core::JsonRepresentation
          property :enabled, as: 'enabled'
        end
      end

      class GoogleCloudIdentitytoolkitAdminV2SendEmail
        # @private
        class Representation < Google::Apis::Core::JsonRepresentation
          property :callback_uri, as: 'callbackUri'
          property :change_email_template, as: 'changeEmailTemplate', class: Google::Apis::IdentitytoolkitV2::GoogleCloudIdentitytoolkitAdminV2EmailTemplate, decorator: Google::Apis::IdentitytoolkitV2::GoogleCloudIdentitytoolkitAdminV2EmailTemplate::Representation

          property :dns_info, as: 'dnsInfo', class: Google::Apis::IdentitytoolkitV2::GoogleCloudIdentitytoolkitAdminV2DnsInfo, decorator: Google::Apis::IdentitytoolkitV2::GoogleCloudIdentitytoolkitAdminV2DnsInfo::Representation

          property :legacy_reset_password_template, as: 'legacyResetPasswordTemplate', class: Google::Apis::IdentitytoolkitV2::GoogleCloudIdentitytoolkitAdminV2EmailTemplate, decorator: Google::Apis::IdentitytoolkitV2::GoogleCloudIdentitytoolkitAdminV2EmailTemplate::Representation

          property :method_prop, as: 'method'
          property :reset_password_template, as: 'resetPasswordTemplate', class: Google::Apis::IdentitytoolkitV2::GoogleCloudIdentitytoolkitAdminV2EmailTemplate, decorator: Google::Apis::IdentitytoolkitV2::GoogleCloudIdentitytoolkitAdminV2EmailTemplate::Representation

          property :revert_second_factor_addition_template, as: 'revertSecondFactorAdditionTemplate', class: Google::Apis::IdentitytoolkitV2::GoogleCloudIdentitytoolkitAdminV2EmailTemplate, decorator: Google::Apis::IdentitytoolkitV2::GoogleCloudIdentitytoolkitAdminV2EmailTemplate::Representation

          property :smtp, as: 'smtp', class: Google::Apis::IdentitytoolkitV2::GoogleCloudIdentitytoolkitAdminV2Smtp, decorator: Google::Apis::IdentitytoolkitV2::GoogleCloudIdentitytoolkitAdminV2Smtp::Representation

          property :verify_email_template, as: 'verifyEmailTemplate', class: Google::Apis::IdentitytoolkitV2::GoogleCloudIdentitytoolkitAdminV2EmailTemplate, decorator: Google::Apis::IdentitytoolkitV2::GoogleCloudIdentitytoolkitAdminV2EmailTemplate::Representation

        end
      end

      class GoogleCloudIdentitytoolkitAdminV2SendSms
        # @private
        class Representation < Google::Apis::Core::JsonRepresentation
          property :sms_template, as: 'smsTemplate', class: Google::Apis::IdentitytoolkitV2::GoogleCloudIdentitytoolkitAdminV2SmsTemplate, decorator: Google::Apis::IdentitytoolkitV2::GoogleCloudIdentitytoolkitAdminV2SmsTemplate::Representation

          property :use_device_locale, as: 'useDeviceLocale'
        end
      end

      class GoogleCloudIdentitytoolkitAdminV2SignInConfig
        # @private
        class Representation < Google::Apis::Core::JsonRepresentation
          property :allow_duplicate_emails, as: 'allowDuplicateEmails'
          property :anonymous, as: 'anonymous', class: Google::Apis::IdentitytoolkitV2::GoogleCloudIdentitytoolkitAdminV2Anonymous, decorator: Google::Apis::IdentitytoolkitV2::GoogleCloudIdentitytoolkitAdminV2Anonymous::Representation

          property :email, as: 'email', class: Google::Apis::IdentitytoolkitV2::GoogleCloudIdentitytoolkitAdminV2Email, decorator: Google::Apis::IdentitytoolkitV2::GoogleCloudIdentitytoolkitAdminV2Email::Representation

          property :hash_config, as: 'hashConfig', class: Google::Apis::IdentitytoolkitV2::GoogleCloudIdentitytoolkitAdminV2HashConfig, decorator: Google::Apis::IdentitytoolkitV2::GoogleCloudIdentitytoolkitAdminV2HashConfig::Representation

          property :phone_number, as: 'phoneNumber', class: Google::Apis::IdentitytoolkitV2::GoogleCloudIdentitytoolkitAdminV2PhoneNumber, decorator: Google::Apis::IdentitytoolkitV2::GoogleCloudIdentitytoolkitAdminV2PhoneNumber::Representation

        end
      end

      class GoogleCloudIdentitytoolkitAdminV2SmsRegionConfig
        # @private
        class Representation < Google::Apis::Core::JsonRepresentation
          property :allow_by_default, as: 'allowByDefault', class: Google::Apis::IdentitytoolkitV2::GoogleCloudIdentitytoolkitAdminV2AllowByDefault, decorator: Google::Apis::IdentitytoolkitV2::GoogleCloudIdentitytoolkitAdminV2AllowByDefault::Representation

          property :allowlist_only, as: 'allowlistOnly', class: Google::Apis::IdentitytoolkitV2::GoogleCloudIdentitytoolkitAdminV2AllowlistOnly, decorator: Google::Apis::IdentitytoolkitV2::GoogleCloudIdentitytoolkitAdminV2AllowlistOnly::Representation

        end
      end

      class GoogleCloudIdentitytoolkitAdminV2SmsTemplate
        # @private
        class Representation < Google::Apis::Core::JsonRepresentation
          property :content, as: 'content'
        end
      end

      class GoogleCloudIdentitytoolkitAdminV2Smtp
        # @private
        class Representation < Google::Apis::Core::JsonRepresentation
          property :host, as: 'host'
          property :password, as: 'password'
          property :port, as: 'port'
          property :security_mode, as: 'securityMode'
          property :sender_email, as: 'senderEmail'
          property :username, as: 'username'
        end
      end

      class GoogleCloudIdentitytoolkitAdminV2SpCertificate
        # @private
        class Representation < Google::Apis::Core::JsonRepresentation
          property :expires_at, as: 'expiresAt'
          property :x509_certificate, as: 'x509Certificate'
        end
      end

      class GoogleCloudIdentitytoolkitAdminV2SpConfig
        # @private
        class Representation < Google::Apis::Core::JsonRepresentation
          property :callback_uri, as: 'callbackUri'
          collection :sp_certificates, as: 'spCertificates', class: Google::Apis::IdentitytoolkitV2::GoogleCloudIdentitytoolkitAdminV2SpCertificate, decorator: Google::Apis::IdentitytoolkitV2::GoogleCloudIdentitytoolkitAdminV2SpCertificate::Representation

          property :sp_entity_id, as: 'spEntityId'
        end
      end

      class GoogleCloudIdentitytoolkitAdminV2TemporaryQuota
        # @private
        class Representation < Google::Apis::Core::JsonRepresentation
          property :quota, :numeric_string => true, as: 'quota'
          property :quota_duration, as: 'quotaDuration'
          property :start_time, as: 'startTime'
        end
      end

      class GoogleCloudIdentitytoolkitAdminV2Tenant
        # @private
        class Representation < Google::Apis::Core::JsonRepresentation
          property :allow_password_signup, as: 'allowPasswordSignup'
          property :autodelete_anonymous_users, as: 'autodeleteAnonymousUsers'
          property :client, as: 'client', class: Google::Apis::IdentitytoolkitV2::GoogleCloudIdentitytoolkitAdminV2ClientPermissionConfig, decorator: Google::Apis::IdentitytoolkitV2::GoogleCloudIdentitytoolkitAdminV2ClientPermissionConfig::Representation

          property :disable_auth, as: 'disableAuth'
          property :display_name, as: 'displayName'
          property :email_privacy_config, as: 'emailPrivacyConfig', class: Google::Apis::IdentitytoolkitV2::GoogleCloudIdentitytoolkitAdminV2EmailPrivacyConfig, decorator: Google::Apis::IdentitytoolkitV2::GoogleCloudIdentitytoolkitAdminV2EmailPrivacyConfig::Representation

          property :enable_anonymous_user, as: 'enableAnonymousUser'
          property :enable_email_link_signin, as: 'enableEmailLinkSignin'
          property :hash_config, as: 'hashConfig', class: Google::Apis::IdentitytoolkitV2::GoogleCloudIdentitytoolkitAdminV2HashConfig, decorator: Google::Apis::IdentitytoolkitV2::GoogleCloudIdentitytoolkitAdminV2HashConfig::Representation

          property :inheritance, as: 'inheritance', class: Google::Apis::IdentitytoolkitV2::GoogleCloudIdentitytoolkitAdminV2Inheritance, decorator: Google::Apis::IdentitytoolkitV2::GoogleCloudIdentitytoolkitAdminV2Inheritance::Representation

          property :mfa_config, as: 'mfaConfig', class: Google::Apis::IdentitytoolkitV2::GoogleCloudIdentitytoolkitAdminV2MultiFactorAuthConfig, decorator: Google::Apis::IdentitytoolkitV2::GoogleCloudIdentitytoolkitAdminV2MultiFactorAuthConfig::Representation

          property :monitoring, as: 'monitoring', class: Google::Apis::IdentitytoolkitV2::GoogleCloudIdentitytoolkitAdminV2MonitoringConfig, decorator: Google::Apis::IdentitytoolkitV2::GoogleCloudIdentitytoolkitAdminV2MonitoringConfig::Representation

          property :name, as: 'name'
          property :sms_region_config, as: 'smsRegionConfig', class: Google::Apis::IdentitytoolkitV2::GoogleCloudIdentitytoolkitAdminV2SmsRegionConfig, decorator: Google::Apis::IdentitytoolkitV2::GoogleCloudIdentitytoolkitAdminV2SmsRegionConfig::Representation

          hash :test_phone_numbers, as: 'testPhoneNumbers'
        end
      end

      class GoogleCloudIdentitytoolkitAdminV2Trigger
        # @private
        class Representation < Google::Apis::Core::JsonRepresentation
          property :function_uri, as: 'functionUri'
          property :update_time, as: 'updateTime'
        end
      end

      class GoogleCloudIdentitytoolkitV2AutoRetrievalInfo
        # @private
        class Representation < Google::Apis::Core::JsonRepresentation
          property :app_signature_hash, as: 'appSignatureHash'
        end
      end

      class GoogleCloudIdentitytoolkitV2FinalizeMfaEnrollmentRequest
        # @private
        class Representation < Google::Apis::Core::JsonRepresentation
          property :display_name, as: 'displayName'
          property :id_token, as: 'idToken'
          property :phone_verification_info, as: 'phoneVerificationInfo', class: Google::Apis::IdentitytoolkitV2::GoogleCloudIdentitytoolkitV2FinalizeMfaPhoneRequestInfo, decorator: Google::Apis::IdentitytoolkitV2::GoogleCloudIdentitytoolkitV2FinalizeMfaPhoneRequestInfo::Representation

          property :tenant_id, as: 'tenantId'
        end
      end

      class GoogleCloudIdentitytoolkitV2FinalizeMfaEnrollmentResponse
        # @private
        class Representation < Google::Apis::Core::JsonRepresentation
          property :id_token, as: 'idToken'
          property :phone_auth_info, as: 'phoneAuthInfo', class: Google::Apis::IdentitytoolkitV2::GoogleCloudIdentitytoolkitV2FinalizeMfaPhoneResponseInfo, decorator: Google::Apis::IdentitytoolkitV2::GoogleCloudIdentitytoolkitV2FinalizeMfaPhoneResponseInfo::Representation

          property :refresh_token, as: 'refreshToken'
        end
      end

      class GoogleCloudIdentitytoolkitV2FinalizeMfaPhoneRequestInfo
        # @private
        class Representation < Google::Apis::Core::JsonRepresentation
          property :android_verification_proof, as: 'androidVerificationProof'
          property :code, as: 'code'
          property :phone_number, as: 'phoneNumber'
          property :session_info, as: 'sessionInfo'
        end
      end

      class GoogleCloudIdentitytoolkitV2FinalizeMfaPhoneResponseInfo
        # @private
        class Representation < Google::Apis::Core::JsonRepresentation
          property :android_verification_proof, as: 'androidVerificationProof'
          property :android_verification_proof_expire_time, as: 'androidVerificationProofExpireTime'
          property :phone_number, as: 'phoneNumber'
        end
      end

      class GoogleCloudIdentitytoolkitV2FinalizeMfaSignInRequest
        # @private
        class Representation < Google::Apis::Core::JsonRepresentation
          property :mfa_pending_credential, as: 'mfaPendingCredential'
          property :phone_verification_info, as: 'phoneVerificationInfo', class: Google::Apis::IdentitytoolkitV2::GoogleCloudIdentitytoolkitV2FinalizeMfaPhoneRequestInfo, decorator: Google::Apis::IdentitytoolkitV2::GoogleCloudIdentitytoolkitV2FinalizeMfaPhoneRequestInfo::Representation

          property :tenant_id, as: 'tenantId'
        end
      end

      class GoogleCloudIdentitytoolkitV2FinalizeMfaSignInResponse
        # @private
        class Representation < Google::Apis::Core::JsonRepresentation
          property :id_token, as: 'idToken'
          property :phone_auth_info, as: 'phoneAuthInfo', class: Google::Apis::IdentitytoolkitV2::GoogleCloudIdentitytoolkitV2FinalizeMfaPhoneResponseInfo, decorator: Google::Apis::IdentitytoolkitV2::GoogleCloudIdentitytoolkitV2FinalizeMfaPhoneResponseInfo::Representation

          property :refresh_token, as: 'refreshToken'
        end
      end

      class GoogleCloudIdentitytoolkitV2StartMfaEnrollmentRequest
        # @private
        class Representation < Google::Apis::Core::JsonRepresentation
          property :id_token, as: 'idToken'
          property :phone_enrollment_info, as: 'phoneEnrollmentInfo', class: Google::Apis::IdentitytoolkitV2::GoogleCloudIdentitytoolkitV2StartMfaPhoneRequestInfo, decorator: Google::Apis::IdentitytoolkitV2::GoogleCloudIdentitytoolkitV2StartMfaPhoneRequestInfo::Representation

          property :tenant_id, as: 'tenantId'
        end
      end

      class GoogleCloudIdentitytoolkitV2StartMfaEnrollmentResponse
        # @private
        class Representation < Google::Apis::Core::JsonRepresentation
          property :phone_session_info, as: 'phoneSessionInfo', class: Google::Apis::IdentitytoolkitV2::GoogleCloudIdentitytoolkitV2StartMfaPhoneResponseInfo, decorator: Google::Apis::IdentitytoolkitV2::GoogleCloudIdentitytoolkitV2StartMfaPhoneResponseInfo::Representation

        end
      end

      class GoogleCloudIdentitytoolkitV2StartMfaPhoneRequestInfo
        # @private
        class Representation < Google::Apis::Core::JsonRepresentation
          property :auto_retrieval_info, as: 'autoRetrievalInfo', class: Google::Apis::IdentitytoolkitV2::GoogleCloudIdentitytoolkitV2AutoRetrievalInfo, decorator: Google::Apis::IdentitytoolkitV2::GoogleCloudIdentitytoolkitV2AutoRetrievalInfo::Representation

          property :ios_receipt, as: 'iosReceipt'
          property :ios_secret, as: 'iosSecret'
          property :phone_number, as: 'phoneNumber'
          property :recaptcha_token, as: 'recaptchaToken'
          property :safety_net_token, as: 'safetyNetToken'
        end
      end

      class GoogleCloudIdentitytoolkitV2StartMfaPhoneResponseInfo
        # @private
        class Representation < Google::Apis::Core::JsonRepresentation
          property :session_info, as: 'sessionInfo'
        end
      end

      class GoogleCloudIdentitytoolkitV2StartMfaSignInRequest
        # @private
        class Representation < Google::Apis::Core::JsonRepresentation
          property :mfa_enrollment_id, as: 'mfaEnrollmentId'
          property :mfa_pending_credential, as: 'mfaPendingCredential'
          property :phone_sign_in_info, as: 'phoneSignInInfo', class: Google::Apis::IdentitytoolkitV2::GoogleCloudIdentitytoolkitV2StartMfaPhoneRequestInfo, decorator: Google::Apis::IdentitytoolkitV2::GoogleCloudIdentitytoolkitV2StartMfaPhoneRequestInfo::Representation

          property :tenant_id, as: 'tenantId'
        end
      end

      class GoogleCloudIdentitytoolkitV2StartMfaSignInResponse
        # @private
        class Representation < Google::Apis::Core::JsonRepresentation
          property :phone_response_info, as: 'phoneResponseInfo', class: Google::Apis::IdentitytoolkitV2::GoogleCloudIdentitytoolkitV2StartMfaPhoneResponseInfo, decorator: Google::Apis::IdentitytoolkitV2::GoogleCloudIdentitytoolkitV2StartMfaPhoneResponseInfo::Representation

        end
      end

      class GoogleCloudIdentitytoolkitV2WithdrawMfaRequest
        # @private
        class Representation < Google::Apis::Core::JsonRepresentation
          property :id_token, as: 'idToken'
          property :mfa_enrollment_id, as: 'mfaEnrollmentId'
          property :tenant_id, as: 'tenantId'
        end
      end

      class GoogleCloudIdentitytoolkitV2WithdrawMfaResponse
        # @private
        class Representation < Google::Apis::Core::JsonRepresentation
          property :id_token, as: 'idToken'
          property :refresh_token, as: 'refreshToken'
        end
      end

      class GoogleIamV1AuditConfig
        # @private
        class Representation < Google::Apis::Core::JsonRepresentation
          collection :audit_log_configs, as: 'auditLogConfigs', class: Google::Apis::IdentitytoolkitV2::GoogleIamV1AuditLogConfig, decorator: Google::Apis::IdentitytoolkitV2::GoogleIamV1AuditLogConfig::Representation

          property :service, as: 'service'
        end
      end

      class GoogleIamV1AuditLogConfig
        # @private
        class Representation < Google::Apis::Core::JsonRepresentation
          collection :exempted_members, as: 'exemptedMembers'
          property :log_type, as: 'logType'
        end
      end

      class GoogleIamV1Binding
        # @private
        class Representation < Google::Apis::Core::JsonRepresentation
          property :condition, as: 'condition', class: Google::Apis::IdentitytoolkitV2::GoogleTypeExpr, decorator: Google::Apis::IdentitytoolkitV2::GoogleTypeExpr::Representation

          collection :members, as: 'members'
          property :role, as: 'role'
        end
      end

      class GoogleIamV1GetIamPolicyRequest
        # @private
        class Representation < Google::Apis::Core::JsonRepresentation
          property :options, as: 'options', class: Google::Apis::IdentitytoolkitV2::GoogleIamV1GetPolicyOptions, decorator: Google::Apis::IdentitytoolkitV2::GoogleIamV1GetPolicyOptions::Representation

        end
      end

      class GoogleIamV1GetPolicyOptions
        # @private
        class Representation < Google::Apis::Core::JsonRepresentation
          property :requested_policy_version, as: 'requestedPolicyVersion'
        end
      end

      class GoogleIamV1Policy
        # @private
        class Representation < Google::Apis::Core::JsonRepresentation
          collection :audit_configs, as: 'auditConfigs', class: Google::Apis::IdentitytoolkitV2::GoogleIamV1AuditConfig, decorator: Google::Apis::IdentitytoolkitV2::GoogleIamV1AuditConfig::Representation

          collection :bindings, as: 'bindings', class: Google::Apis::IdentitytoolkitV2::GoogleIamV1Binding, decorator: Google::Apis::IdentitytoolkitV2::GoogleIamV1Binding::Representation

          property :etag, :base64 => true, as: 'etag'
          property :version, as: 'version'
        end
      end

      class GoogleIamV1SetIamPolicyRequest
        # @private
        class Representation < Google::Apis::Core::JsonRepresentation
          property :policy, as: 'policy', class: Google::Apis::IdentitytoolkitV2::GoogleIamV1Policy, decorator: Google::Apis::IdentitytoolkitV2::GoogleIamV1Policy::Representation

          property :update_mask, as: 'updateMask'
        end
      end

      class GoogleIamV1TestIamPermissionsRequest
        # @private
        class Representation < Google::Apis::Core::JsonRepresentation
          collection :permissions, as: 'permissions'
        end
      end

      class GoogleIamV1TestIamPermissionsResponse
        # @private
        class Representation < Google::Apis::Core::JsonRepresentation
          collection :permissions, as: 'permissions'
        end
      end

      class GoogleProtobufEmpty
        # @private
        class Representation < Google::Apis::Core::JsonRepresentation
        end
      end

      class GoogleTypeExpr
        # @private
        class Representation < Google::Apis::Core::JsonRepresentation
          property :description, as: 'description'
          property :expression, as: 'expression'
          property :location, as: 'location'
          property :title, as: 'title'
        end
      end
    end
  end
end


text:
package nam.model.repository;

import java.io.Serializable;
import java.util.List;

import javax.enterprise.context.SessionScoped;
import javax.enterprise.event.Observes;
import javax.inject.Inject;
import javax.inject.Named;

import org.aries.runtime.BeanContext;
import org.aries.ui.Display;
import org.aries.ui.event.Add;
import org.aries.ui.event.Remove;
import org.aries.ui.event.Selected;
import org.aries.ui.event.Updated;
import org.aries.util.Validator;

import nam.model.Project;
import nam.model.Repository;
import nam.model.util.ProjectUtil;
import nam.model.util.RepositoryUtil;
import nam.ui.design.AbstractNamRecordManager;
import nam.ui.design.SelectionContext;
import nam.ui.design.WorkspaceEventManager;

@SessionScoped
@Named("repositoryInfoManager")
public class RepositoryInfoManager extends AbstractNamRecordManager<Repository> implements Serializable {

	@Inject
	private RepositoryWizard repositoryWizard;

	@Inject
	private RepositoryDataManager repositoryDataManager;

	@Inject
	private RepositoryPageManager repositoryPageManager;

	@Inject
	private RepositoryEventManager repositoryEventManager;

	@Inject
	private WorkspaceEventManager workspaceEventManager;

	@Inject
	private RepositoryHelper repositoryHelper;

	@Inject
	private SelectionContext selectionContext;

	public RepositoryInfoManager() {
		setInstanceName("repository");
	}

	public Repository getRepository() {
		return getRecord();
	}

	public Repository getSelectedRepository() {
		return selectionContext.getSelection("repository");
	}

	@Override
	public Class<Repository> getRecordClass() {
		return Repository.class;
	}

	@Override
	public boolean isEmpty(Repository repository) {
		return repositoryHelper.isEmpty(repository);
	}

	@Override
	public String toString(Repository repository) {
		return repositoryHelper.toString(repository);
	}

	@Override
	public void initialize() {
		Repository repository = selectionContext.getSelection("repository");
		if (repository != null)
			initialize(repository);
	}

	protected void initialize(Repository repository) {
		RepositoryUtil.initialize(repository);
		repositoryWizard.initialize(repository);
		setContext("repository", repository);
	}

	public void handleRepositorySelected(@Observes @Selected Repository repository) {
		selectionContext.setSelection("repository",  repository);
		repositoryPageManager.updateState(repository);
		repositoryPageManager.refreshMembers();
		setRecord(repository);
	}

	@Override
	public String newRecord() {
		return newRepository();
	}

	public String newRepository() {
		try {
			Repository repository = create();
			selectionContext.resetOrigin();
			selectionContext.setSelection("repository",  repository);
			String url = repositoryPageManager.initializeRepositoryCreationPage(repository);
			repositoryPageManager.pushContext(repositoryWizard);
			initialize(repository);
			return url;
		} catch (Exception e) {
			handleException(e);
			return null;
		}
	}

	@Override
	public Repository create() {
		Repository repository = RepositoryUtil.create();
		return repository;
	}

	@Override
	public Repository clone(Repository repository) {
		repository = RepositoryUtil.clone(repository);
		return repository;
	}

	@Override
	public String viewRecord() {
		return viewRepository();
	}

	public String viewRepository() {
		Repository repository = selectionContext.getSelection("repository");
		String url = viewRepository(repository);
		return url;
	}

	public String viewRepository(Repository repository) {
		try {
			String url = repositoryPageManager.initializeRepositorySummaryView(repository);
			repositoryPageManager.pushContext(repositoryWizard);
			initialize(repository);
			return url;
		} catch (Exception e) {
			handleException(e);
			return null;
		}
	}

	@Override
	public String editRecord() {
		return editRepository();
	}

	public String editRepository() {
		Repository repository = selectionContext.getSelection("repository");
		String url = editRepository(repository);
		return url;
	}

	public String editRepository(Repository repository) {
		try {
			//repository = clone(repository);
			selectionContext.resetOrigin();
			selectionContext.setSelection("repository",  repository);
			String url = repositoryPageManager.initializeRepositoryUpdatePage(repository);
			repositoryPageManager.pushContext(repositoryWizard);
			initialize(repository);
			return url;
		} catch (Exception e) {
			handleException(e);
			return null;
		}
	}

	public void saveRepository() {
		Repository repository = getRepository();
		if (validateRepository(repository)) {
			if (isImmediate())
				persistRepository(repository);
			outject("repository", repository);
		}
	}

	public void persistRepository(Repository repository) {
		saveRepository(repository);
	}

	public void saveRepository(Repository repository) {
		try {
			saveRepositoryToSystem(repository);
			repositoryEventManager.fireAddedEvent(repository);
		} catch (Exception e) {
			handleException(e);
		}
	}

	protected void saveRepositoryToSystem(Repository repository) {
		repositoryDataManager.saveRepository(repository);
	}

	public void handleSaveRepository(@Observes @Add Repository repository) {
		saveRepository(repository);
	}

	public void addRepository(Repository repository) {
		try {
			//TODO
		} catch (Exception e) {
			handleException(e);
		}
	}

	public void enrichRepository(Repository repository) {
		//nothing for now
	}

	@Override
	public boolean validate(Repository repository) {
		return validateRepository(repository);
	}

	public boolean validateRepository(Repository repository) {
		Validator validator = getValidator();
		boolean isValid = RepositoryUtil.validate(repository);
		Display display = getFromSession("display");
		display.setModule("repositoryInfo");
		display.addErrors(validator.getMessages());
		//FacesContext.getCurrentInstance().isValidationFailed()
		setValidated(isValid);
		return isValid;
	}

	public void promptRemoveRepository() {
		display = getFromSession("display");
		display.setModule("repositoryInfo");
		Repository repository = selectionContext.getSelection("repository");
		if (repository == null) {
			display.error("Repository record must be selected.");
		}
	}

	public String handleRemoveRepository(@Observes @Remove Repository repository) {
		display = getFromSession("display");
		display.setModule("repositoryInfo");
		try {
			display.info("Removing Repository "+RepositoryUtil.getLabel(repository)+" from the system.");
			removeRepositoryFromSystem(repository);
			selectionContext.clearSelection("repository");
			repositoryEventManager.fireClearSelectionEvent();
			repositoryEventManager.fireRemovedEvent(repository);
			workspaceEventManager.fireRefreshEvent();
			return null;
		} catch (Exception e) {
			handleException(e);
			return null;
		}
	}

	protected void removeRepositoryFromSystem(Repository repository) {
		if (repositoryDataManager.removeRepository(repository))
			setRecord(null);
	}

	public void cancelRepository() {
		BeanContext.removeFromSession("repository");
		repositoryPageManager.removeContext(repositoryWizard);
	}

}

redpajama_set_name: RedPajamaGithub


text:
module RailsRiemannMiddleware

  class Headers

    attr_reader :env, :custom_headers

    def initialize(env, custom_headers=[])
      @env = env
      @custom_headers = custom_headers
    end

    def keys
      %w{REQUEST_METHOD REQUEST_URI PATH_INFO HTTP_X_REAL_IP HTTP_USER_AGENT HTTP_REFERER} + custom_headers
    end

    def to_a
      keys.map { |h| " #{h.downcase}: #{env.fetch(h, "N/A")}" }
    end

    def to_s
      to_a.join("\n")
    end

  end

end


text:
<?php
namespace Erestar\TwitchesBundle\Controller;

use FOS\RestBundle\Controller\FOSRestController;

use Symfony\Component\HttpFoundation\Response;

use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route;
use Sensio\Bundle\FrameworkExtraBundle\Configuration\Template;
use Sensio\Bundle\FrameworkExtraBundle\Configuration\Method;

/**
 * @Route("/api")
 */

class ApiController extends FOSRestController
{
    /**
     * @Route("/reflect", name="api_reflect")
     * @Template()
     */
    public function indexAction()
    {
        $user = $this->get('security.context')->getToken()->getUser();

        $view = $this->view($user, 200);
        return $this->handleView($view);
    }

    /**
     * @Route("/items", name="api_store_items")
     * @Method("GET")
     * @Template()
     */
    public function getStoreItemsAction()
    {
        $store_items = $this->getDoctrine()->getRepository('ErestarTwitchesBundle:StoreItem')->findAll();

        $view = $this->view($store_items, 200);
        return $this->handleView($view);
    }

}


text:
declare namespace GoogleMapsLoader {
    interface CallBack {
        (google: { maps: { Map: google.maps.Map } }): void;
    }
    export var KEY: string;
    export var CLIENT: string;
    export var VERSION: string;
    export var SENSOR: boolean;
    export var LIBRARIES: Array<string>;
    export var LANGUAGE: string;
    export function release(callBack: Function): void;
    export function onLoad(callBack?: CallBack): void;
    export function load(callBack?: CallBack): void;
    export function isLoaded(): boolean;

}
declare module 'google-maps' {
    export = GoogleMapsLoader;
}


text:
/*
 * MainMenu.cpp
 *
 *  Created on: 10.11.2012
 *      Author: Denis Zagayevskiy
 */

#include "MainMenu.h"

MainMenu::~MainMenu() {
	// TODO Auto-generated destructor stub
}


text:
package com.google.common.collect;

import static com.google.common.base.Preconditions.checkArgument;
import static com.google.common.base.Preconditions.checkState;

import com.google.common.annotations.GwtCompatible;
import com.google.common.annotations.GwtIncompatible;
import com.google.common.base.Objects;

import java.io.IOException;
import java.io.ObjectInputStream;
import java.io.ObjectOutputStream;
import java.io.Serializable;
import java.util.Collection;
import java.util.Iterator;
import java.util.Map;
import java.util.Set;

import javax.annotation.Nullable;

/**
 * A general-purpose bimap implementation using any two backing {@code Map}
 * instances.
 *
 * <p>Note that this class contains {@code equals()} calls that keep it from
 * supporting {@code IdentityHashMap} backing maps.
 *
 * @author Kevin Bourrillion
 * @author Mike Bostock
 */
@GwtCompatible(emulated = true)
abstract class AbstractBiMap<K, V> extends ForwardingMap<K, V>
    implements BiMap<K, V>, Serializable {

  private transient Map<K, V> delegate;
  private transient AbstractBiMap<V, K> inverse;

  /** Package-private constructor for creating a map-backed bimap. */
  AbstractBiMap(Map<K, V> forward, Map<V, K> backward) {
    setDelegates(forward, backward);
  }

  /** Private constructor for inverse bimap. */
  private AbstractBiMap(Map<K, V> backward, AbstractBiMap<V, K> forward) {
    delegate = backward;
    inverse = forward;
  }

  @Override protected Map<K, V> delegate() {
    return delegate;
  }

  /**
   * Specifies the delegate maps going in each direction. Called by the
   * constructor and by subclasses during deserialization.
   */
  void setDelegates(Map<K, V> forward, Map<V, K> backward) {
    checkState(delegate == null);
    checkState(inverse == null);
    checkArgument(forward.isEmpty());
    checkArgument(backward.isEmpty());
    checkArgument(forward != backward);
    delegate = forward;
    inverse = new Inverse<V, K>(backward, this);
  }

  void setInverse(AbstractBiMap<V, K> inverse) {
    this.inverse = inverse;
  }

  // Query Operations (optimizations)

  @Override public boolean containsValue(Object value) {
    return inverse.containsKey(value);
  }

  // Modification Operations

  @Override public V put(K key, V value) {
    return putInBothMaps(key, value, false);
  }

  public V forcePut(K key, V value) {
    return putInBothMaps(key, value, true);
  }

  private V putInBothMaps(@Nullable K key, @Nullable V value, boolean force) {
    boolean containedKey = containsKey(key);
    if (containedKey && Objects.equal(value, get(key))) {
      return value;
    }
    if (force) {
      inverse().remove(value);
    } else {
      checkArgument(!containsValue(value), "value already present: %s", value);
    }
    V oldValue = delegate.put(key, value);
    updateInverseMap(key, containedKey, oldValue, value);
    return oldValue;
  }

  private void updateInverseMap(
      K key, boolean containedKey, V oldValue, V newValue) {
    if (containedKey) {
      removeFromInverseMap(oldValue);
    }
    inverse.delegate.put(newValue, key);
  }

  @Override public V remove(Object key) {
    return containsKey(key) ? removeFromBothMaps(key) : null;
  }

  private V removeFromBothMaps(Object key) {
    V oldValue = delegate.remove(key);
    removeFromInverseMap(oldValue);
    return oldValue;
  }

  private void removeFromInverseMap(V oldValue) {
    inverse.delegate.remove(oldValue);
  }

  // Bulk Operations

  @Override public void putAll(Map<? extends K, ? extends V> map) {
    for (Entry<? extends K, ? extends V> entry : map.entrySet()) {
      put(entry.getKey(), entry.getValue());
    }
  }

  @Override public void clear() {
    delegate.clear();
    inverse.delegate.clear();
  }

  // Views

  public BiMap<V, K> inverse() {
    return inverse;
  }

  private transient Set<K> keySet;

  @Override public Set<K> keySet() {
    Set<K> result = keySet;
    return (result == null) ? keySet = new KeySet() : result;
  }

  private class KeySet extends ForwardingSet<K> {
    @Override protected Set<K> delegate() {
      return delegate.keySet();
    }

    @Override public void clear() {
      AbstractBiMap.this.clear();
    }

    @Override public boolean remove(Object key) {
      if (!contains(key)) {
        return false;
      }
      removeFromBothMaps(key);
      return true;
    }

    @Override public boolean removeAll(Collection<?> keysToRemove) {
      return standardRemoveAll(keysToRemove);
    }

    @Override public boolean retainAll(Collection<?> keysToRetain) {
      return standardRetainAll(keysToRetain);
    }

    @Override public Iterator<K> iterator() {
      final Iterator<Entry<K, V>> iterator = delegate.entrySet().iterator();
      return new Iterator<K>() {
        Entry<K, V> entry;

        public boolean hasNext() {
          return iterator.hasNext();
        }
        public K next() {
          entry = iterator.next();
          return entry.getKey();
        }
        public void remove() {
          checkState(entry != null);
          V value = entry.getValue();
          iterator.remove();
          removeFromInverseMap(value);
        }
      };
    }
  }

  private transient Set<V> valueSet;

  @Override public Set<V> values() {
    /*
     * We can almost reuse the inverse's keySet, except we have to fix the
     * iteration order so that it is consistent with the forward map.
     */
    Set<V> result = valueSet;
    return (result == null) ? valueSet = new ValueSet() : result;
  }

  private class ValueSet extends ForwardingSet<V> {
    final Set<V> valuesDelegate = inverse.keySet();

    @Override protected Set<V> delegate() {
      return valuesDelegate;
    }

    @Override public Iterator<V> iterator() {
      final Iterator<V> iterator = delegate.values().iterator();
      return new Iterator<V>() {
        V valueToRemove;

        @Override public boolean hasNext() {
          return iterator.hasNext();
        }

        @Override public V next() {
          return valueToRemove = iterator.next();
        }

        @Override public void remove() {
          iterator.remove();
          removeFromInverseMap(valueToRemove);
        }
      };
    }

    @Override public Object[] toArray() {
      return standardToArray();
    }

    @Override public <T> T[] toArray(T[] array) {
      return standardToArray(array);
    }

    @Override public String toString() {
      return standardToString();
    }
  }

  private transient Set<Entry<K, V>> entrySet;

  @Override public Set<Entry<K, V>> entrySet() {
    Set<Entry<K, V>> result = entrySet;
    return (result == null) ? entrySet = new EntrySet() : result;
  }

  private class EntrySet extends ForwardingSet<Entry<K, V>> {
    final Set<Entry<K, V>> esDelegate = delegate.entrySet();

    @Override protected Set<Entry<K, V>> delegate() {
      return esDelegate;
    }

    @Override public void clear() {
      AbstractBiMap.this.clear();
    }

    @Override public boolean remove(Object object) {
      if (!esDelegate.remove(object)) {
        return false;
      }
      Entry<?, ?> entry = (Entry<?, ?>) object;
      inverse.delegate.remove(entry.getValue());
      return true;
    }

    @Override public Iterator<Entry<K, V>> iterator() {
      final Iterator<Entry<K, V>> iterator = esDelegate.iterator();
      return new Iterator<Entry<K, V>>() {
        Entry<K, V> entry;

        @Override public boolean hasNext() {
          return iterator.hasNext();
        }

        @Override public Entry<K, V> next() {
          entry = iterator.next();
          final Entry<K, V> finalEntry = entry;

          return new ForwardingMapEntry<K, V>() {
            @Override protected Entry<K, V> delegate() {
              return finalEntry;
            }

            @Override public V setValue(V value) {
              // Preconditions keep the map and inverse consistent.
              checkState(contains(this), "entry no longer in map");
              // similar to putInBothMaps, but set via entry
              if (Objects.equal(value, getValue())) {
                return value;
              }
              checkArgument(!containsValue(value),
                  "value already present: %s", value);
              V oldValue = finalEntry.setValue(value);
              checkState(Objects.equal(value, get(getKey())),
                  "entry no longer in map");
              updateInverseMap(getKey(), true, oldValue, value);
              return oldValue;
            }
          };
        }

        @Override public void remove() {
          checkState(entry != null);
          V value = entry.getValue();
          iterator.remove();
          removeFromInverseMap(value);
        }
      };
    }

    // See java.util.Collections.CheckedEntrySet for details on attacks.

    @Override public Object[] toArray() {
      return standardToArray();
    }
    @Override public <T> T[] toArray(T[] array) {
      return standardToArray(array);
    }
    @Override public boolean contains(Object o) {
      return Maps.containsEntryImpl(delegate(), o);
    }
    @Override public boolean containsAll(Collection<?> c) {
      return standardContainsAll(c);
    }
    @Override public boolean removeAll(Collection<?> c) {
      return standardRemoveAll(c);
    }
    @Override public boolean retainAll(Collection<?> c) {
      return standardRetainAll(c);
    }
  }

  /** The inverse of any other {@code AbstractBiMap} subclass. */
  private static class Inverse<K, V> extends AbstractBiMap<K, V> {
    private Inverse(Map<K, V> backward, AbstractBiMap<V, K> forward) {
      super(backward, forward);
    }

    /*
     * Serialization stores the forward bimap, the inverse of this inverse.
     * Deserialization calls inverse() on the forward bimap and returns that
     * inverse.
     *
     * If a bimap and its inverse are serialized together, the deserialized
     * instances have inverse() methods that return the other.
     */

    /**
     * @serialData the forward bimap
     */
    @GwtIncompatible("java.io.ObjectOuputStream")
    private void writeObject(ObjectOutputStream stream) throws IOException {
      stream.defaultWriteObject();
      stream.writeObject(inverse());
    }

    @GwtIncompatible("java.io.ObjectInputStream")
    @SuppressWarnings("unchecked") // reading data stored by writeObject
    private void readObject(ObjectInputStream stream)
        throws IOException, ClassNotFoundException {
      stream.defaultReadObject();
      setInverse((AbstractBiMap<V, K>) stream.readObject());
    }

    @GwtIncompatible("Not needed in the emulated source.")
    Object readResolve() {
      return inverse().inverse();
    }

    @GwtIncompatible("Not needed in emulated source.")
    private static final long serialVersionUID = 0;
  }

  @GwtIncompatible("Not needed in emulated source.")
  private static final long serialVersionUID = 0;
}


text:
ACCEPTED

#### According to
Index Fungorum

#### Published in
Boln de la Real Soc. Españ. Hist. Nat. , Madrid 30: 298 (1930)

#### Original name
Hendersonia hordei Unamuno

### Remarks
null


text:
package org.apache.tez.mapreduce.hadoop;

import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertTrue;
import static org.junit.Assert.assertNull;

import org.apache.hadoop.mapred.JobConf;
import org.apache.tez.runtime.library.api.TezRuntimeConfiguration;
import org.apache.tez.runtime.library.common.Constants;
import org.junit.Test;

public class TestDeprecatedKeys {

  @Test
  public void verifyReduceKeyTranslation() {
    JobConf jobConf = new JobConf();

    jobConf.setFloat(MRJobConfig.SHUFFLE_INPUT_BUFFER_PERCENT, 0.4f);
    jobConf.setLong(MRJobConfig.REDUCE_MEMORY_TOTAL_BYTES, 20000l);
    jobConf.setInt(MRJobConfig.IO_SORT_FACTOR, 2000);
    jobConf.setFloat(MRJobConfig.SHUFFLE_MEMORY_LIMIT_PERCENT, 0.55f);
    jobConf.setFloat(MRJobConfig.REDUCE_MEMTOMEM_THRESHOLD, 0.60f);
    jobConf.setFloat(MRJobConfig.SHUFFLE_MERGE_PERCENT, 0.22f);
    jobConf.setBoolean(MRJobConfig.REDUCE_MEMTOMEM_ENABLED, true);
    jobConf.setFloat(MRJobConfig.REDUCE_INPUT_BUFFER_PERCENT, 0.33f);

    MRHelpers.translateMRConfToTez(jobConf);

    assertEquals(0.4f, jobConf.getFloat(
        TezRuntimeConfiguration.TEZ_RUNTIME_SHUFFLE_FETCH_BUFFER_PERCENT, 0f), 0.01f);
    assertEquals(20000l, jobConf.getLong(Constants.TEZ_RUNTIME_TASK_MEMORY, 0));
    assertEquals(2000,
        jobConf.getInt(TezRuntimeConfiguration.TEZ_RUNTIME_IO_SORT_FACTOR, 0));
    assertEquals(0.55f, jobConf.getFloat(
        TezRuntimeConfiguration.TEZ_RUNTIME_SHUFFLE_MEMORY_LIMIT_PERCENT, 0), 0.01f);
    assertEquals(0.60f,
        jobConf.getFloat(TezRuntimeConfiguration.TEZ_RUNTIME_SHUFFLE_MEMTOMEM_SEGMENTS, 0),
        0.01f);
    assertEquals(0.22f,
        jobConf.getFloat(TezRuntimeConfiguration.TEZ_RUNTIME_SHUFFLE_MERGE_PERCENT, 0),
        0.01f);
    assertEquals(true, jobConf.getBoolean(
        TezRuntimeConfiguration.TEZ_RUNTIME_SHUFFLE_ENABLE_MEMTOMEM, false));
    assertEquals(0.33f,
        jobConf.getFloat(TezRuntimeConfiguration.TEZ_RUNTIME_INPUT_POST_MERGE_BUFFER_PERCENT, 0),
        0.01f);
  }

  @Test
  /**
   * Set of keys that can be overriden at tez runtime
   */
  public void verifyTezOverridenKeys() {
    JobConf jobConf = new JobConf();
    jobConf.setInt(MRJobConfig.IO_SORT_FACTOR, 2000);
    jobConf.setInt(MRJobConfig.IO_SORT_MB, 100);
    jobConf.setInt(MRJobConfig.COUNTERS_MAX_KEY, 100);

    jobConf.setInt(TezRuntimeConfiguration.TEZ_RUNTIME_IO_SORT_FACTOR, 1000);
    jobConf.setInt(TezRuntimeConfiguration.TEZ_RUNTIME_IO_SORT_MB, 200);
    jobConf.setBoolean(TezRuntimeConfiguration.TEZ_RUNTIME_IFILE_READAHEAD, true);
    jobConf.setInt(TezRuntimeConfiguration.TEZ_RUNTIME_IFILE_READAHEAD_BYTES, 20);
    jobConf.setFloat(TezRuntimeConfiguration.TEZ_RUNTIME_SORT_SPILL_PERCENT, 0.2f);
    jobConf.setInt(TezRuntimeConfiguration.TEZ_RUNTIME_INDEX_CACHE_MEMORY_LIMIT_BYTES, 10);
    jobConf.setInt(TezRuntimeConfiguration.TEZ_RUNTIME_COMBINE_MIN_SPILLS, 20);
    jobConf.setInt(Constants.TEZ_RUNTIME_TASK_MEMORY, 10);
    jobConf.setInt(TezRuntimeConfiguration.TEZ_RUNTIME_SHUFFLE_PARALLEL_COPIES, 10);
    jobConf.setInt(TezRuntimeConfiguration.TEZ_RUNTIME_SHUFFLE_FETCH_FAILURES_LIMIT, 10);
    jobConf.setBoolean(TezRuntimeConfiguration.TEZ_RUNTIME_SHUFFLE_NOTIFY_READERROR, true);
    jobConf.setInt(TezRuntimeConfiguration.TEZ_RUNTIME_SHUFFLE_CONNECT_TIMEOUT, 10);
    jobConf.setInt(TezRuntimeConfiguration.TEZ_RUNTIME_SHUFFLE_READ_TIMEOUT, 10);
    jobConf.setBoolean(TezRuntimeConfiguration.TEZ_RUNTIME_SHUFFLE_ENABLE_SSL, true);
    jobConf.setFloat(TezRuntimeConfiguration.TEZ_RUNTIME_SHUFFLE_FETCH_BUFFER_PERCENT, 10.0f);
    jobConf.setFloat(TezRuntimeConfiguration.TEZ_RUNTIME_SHUFFLE_MEMORY_LIMIT_PERCENT, 10.0f);
    jobConf.setFloat(TezRuntimeConfiguration.TEZ_RUNTIME_SHUFFLE_MERGE_PERCENT, 10.0f);
    jobConf.setInt(TezRuntimeConfiguration.TEZ_RUNTIME_SHUFFLE_MEMTOMEM_SEGMENTS, 10);
    jobConf.setBoolean(TezRuntimeConfiguration.TEZ_RUNTIME_SHUFFLE_ENABLE_MEMTOMEM, true);
    jobConf.setFloat(TezRuntimeConfiguration.TEZ_RUNTIME_INPUT_POST_MERGE_BUFFER_PERCENT, 10.0f);
    jobConf.set(TezRuntimeConfiguration.TEZ_RUNTIME_INTERNAL_SORTER_CLASS, "DefaultSorter");
    jobConf.set(TezRuntimeConfiguration.TEZ_RUNTIME_GROUP_COMPARATOR_CLASS, "groupComparator");
    jobConf.set(TezRuntimeConfiguration.TEZ_RUNTIME_KEY_SECONDARY_COMPARATOR_CLASS, "SecondaryComparator");

    jobConf.setBoolean(MRJobConfig.MAP_OUTPUT_COMPRESS, false);
    jobConf.setBoolean(TezRuntimeConfiguration.TEZ_RUNTIME_COMPRESS, true);

    MRHelpers.translateMRConfToTez(jobConf);

    assertEquals(1000, jobConf.getInt(TezRuntimeConfiguration.TEZ_RUNTIME_IO_SORT_FACTOR, 0));
    assertEquals(200, jobConf.getInt(TezRuntimeConfiguration.TEZ_RUNTIME_IO_SORT_MB, 100));
    assertEquals(true, jobConf.getBoolean(TezRuntimeConfiguration.TEZ_RUNTIME_IFILE_READAHEAD, false));
    assertEquals(20, jobConf.getInt(TezRuntimeConfiguration.TEZ_RUNTIME_IFILE_READAHEAD_BYTES, 0));
    assertEquals(10, jobConf.getInt(TezRuntimeConfiguration.TEZ_RUNTIME_INDEX_CACHE_MEMORY_LIMIT_BYTES, 0));
    assertEquals(20, jobConf.getInt(TezRuntimeConfiguration.TEZ_RUNTIME_COMBINE_MIN_SPILLS, 0));
    assertEquals(10, jobConf.getInt(Constants.TEZ_RUNTIME_TASK_MEMORY, 0));
    assertEquals(10, jobConf.getInt(TezRuntimeConfiguration.TEZ_RUNTIME_SHUFFLE_PARALLEL_COPIES, 0));
    assertEquals(10, jobConf.getInt(TezRuntimeConfiguration.TEZ_RUNTIME_SHUFFLE_FETCH_FAILURES_LIMIT, 0));
    assertEquals(true, jobConf.getBoolean(TezRuntimeConfiguration.TEZ_RUNTIME_SHUFFLE_NOTIFY_READERROR, false));
    assertEquals(10, jobConf.getInt(TezRuntimeConfiguration.TEZ_RUNTIME_SHUFFLE_CONNECT_TIMEOUT, 0));
    assertEquals(10, jobConf.getInt(TezRuntimeConfiguration.TEZ_RUNTIME_SHUFFLE_READ_TIMEOUT, 0));
    assertEquals(true, jobConf.getBoolean(TezRuntimeConfiguration.TEZ_RUNTIME_SHUFFLE_ENABLE_SSL, false));
    assertEquals(10.0f, jobConf.getFloat(TezRuntimeConfiguration.TEZ_RUNTIME_SHUFFLE_FETCH_BUFFER_PERCENT, 0.0f), 0.0f);
    assertEquals(10.0f, jobConf.getFloat(TezRuntimeConfiguration.TEZ_RUNTIME_SHUFFLE_MEMORY_LIMIT_PERCENT, 0.0f), 0.0f);
    assertEquals(10.0f, jobConf.getFloat(TezRuntimeConfiguration.TEZ_RUNTIME_SHUFFLE_MERGE_PERCENT, 0.0f), 0.0f);
    assertEquals(10, jobConf.getInt(TezRuntimeConfiguration.TEZ_RUNTIME_SHUFFLE_MEMTOMEM_SEGMENTS, 0));
    assertEquals(true, jobConf.getBoolean(TezRuntimeConfiguration.TEZ_RUNTIME_SHUFFLE_ENABLE_MEMTOMEM, false));
    assertEquals(10.0f, jobConf.getFloat(TezRuntimeConfiguration.TEZ_RUNTIME_INPUT_POST_MERGE_BUFFER_PERCENT, 0.0f), 0.0f);
    assertEquals("DefaultSorter", jobConf.get(TezRuntimeConfiguration.TEZ_RUNTIME_INTERNAL_SORTER_CLASS, ""));
    assertEquals("groupComparator", jobConf.get(TezRuntimeConfiguration.TEZ_RUNTIME_GROUP_COMPARATOR_CLASS, ""));
    assertEquals("SecondaryComparator", jobConf.get(TezRuntimeConfiguration.TEZ_RUNTIME_KEY_SECONDARY_COMPARATOR_CLASS, ""));
    assertEquals("DefaultSorter", jobConf.get(TezRuntimeConfiguration.TEZ_RUNTIME_INTERNAL_SORTER_CLASS, ""));
    assertTrue(jobConf.getBoolean(TezRuntimeConfiguration.TEZ_RUNTIME_COMPRESS, false));

    assertNull(jobConf.get(MRConfig.MAPRED_IFILE_READAHEAD));
    assertNull(jobConf.get(MRConfig.MAPRED_IFILE_READAHEAD_BYTES));
    assertNull(jobConf.get(MRJobConfig.RECORDS_BEFORE_PROGRESS));
    assertNull(jobConf.get(MRJobConfig.IO_SORT_FACTOR));
    assertNull(jobConf.get(MRJobConfig.IO_SORT_MB));
    assertNull(jobConf.get(MRJobConfig.SHUFFLE_READ_TIMEOUT));
    assertNull(jobConf.get(MRJobConfig.INDEX_CACHE_MEMORY_LIMIT));
    assertNull(jobConf.get(MRJobConfig.MAP_COMBINE_MIN_SPILLS));
    assertNull(jobConf.get(MRJobConfig.REDUCE_MEMORY_TOTAL_BYTES));
    assertNull(jobConf.get(MRJobConfig.SHUFFLE_PARALLEL_COPIES));
    assertNull(jobConf.get(MRJobConfig.SHUFFLE_FETCH_FAILURES));
    assertNull(jobConf.get(MRJobConfig.SHUFFLE_NOTIFY_READERROR));
    assertNull(jobConf.get(MRJobConfig.SHUFFLE_CONNECT_TIMEOUT));
    assertNull(jobConf.get(MRJobConfig.SHUFFLE_READ_TIMEOUT));
    assertNull(jobConf.get(MRConfig.SHUFFLE_SSL_ENABLED_KEY));
    assertNull(jobConf.get(MRJobConfig.SHUFFLE_INPUT_BUFFER_PERCENT));
    assertNull(jobConf.get(MRJobConfig.SHUFFLE_MEMORY_LIMIT_PERCENT));
    assertNull(jobConf.get(MRJobConfig.REDUCE_MEMTOMEM_THRESHOLD));
    assertNull(jobConf.get(MRJobConfig.REDUCE_MEMTOMEM_ENABLED));
    assertNull(jobConf.get(MRJobConfig.REDUCE_INPUT_BUFFER_PERCENT));
    assertNull(jobConf.get(MRJobConfig.GROUP_COMPARATOR_CLASS));
    assertNull(jobConf.get(MRJobConfig.GROUP_COMPARATOR_CLASS));
    assertNull(jobConf.get("map.sort.class"));
  }

}


text:
package org.openbel.framework.common.lang;

import org.openbel.framework.common.Strings;

/**
 * Denotes the frequency or abundance of events in which a member directly acts
 * to control transcription of genes.
 *

 * Function {@link Signature signature(s)}:
 *
 *

 * transcriptionalActivity(F:abundance)abundance
 *

 *
 *

 *
 * @see Signature
 */
public class TranscriptionalActivity extends Function {

    /**
     * {@link Strings#TRANSCRIPTIONAL_ACTIVITY}
     */
    public final static String NAME;

    /**
     * {@link Strings#TRANSCRIPTIONAL_ACTIVITY_ABBREV}
     */
    public final static String ABBREVIATION;

    /**
     * Function description.
     */
    public final static String DESC;

    static {
        NAME = Strings.TRANSCRIPTIONAL_ACTIVITY;
        ABBREVIATION = Strings.TRANSCRIPTIONAL_ACTIVITY_ABBREV;
        DESC = "Denotes the frequency or abundance of events in which a " +
                "member directly acts to control transcription of genes";
    }

    public TranscriptionalActivity() {
        super(NAME, ABBREVIATION, DESC,
                "transcriptionalActivity(F:complexAbundance)abundance",
                "transcriptionalActivity(F:proteinAbundance)abundance");
    }

    /**
     * {@inheritDoc}
     */
    @Override
    public boolean validArgumentCount(int count) {
        switch (count) {
        case 1:
            return true;
        default:
            return false;
        }
    }
}


text:
CREATE or REPLACE FUNCTION MN_FindDuplicatesOnIdAndMergeAttributes() RETURNS integer AS $$
DECLARE
    mviews RECORD;
    DECLARE isTroutStream boolean;
    DECLARE troutStreamType integer;
    DECLARE nonTroutStreamType integer;
BEGIN
    RAISE NOTICE 'Finding duplicate streams in MN';
    troutStreamType := 1;
    nonTroutStreamType := 2;

    FOR mviews IN select kittle_nbr from (SELECT kittle_nbr, kittle_nam, count(*)
  FROM public."Minnesota_DNR_TroutStreams"
  group by kittle_nbr, kittle_nam
  having count(*) > 1
  order by count desc) as foo LOOP

        -- Now "mviews" has one record from cs_materialized_views
	RAISE NOTICE 'Duplicate ID: %', mviews.kittle_nbr;
	SELECT count(*) >= 1 into isTroutStream
	  FROM public."Minnesota_DNR_TroutStreams"
	  where kittle_nbr = mviews.kittle_nbr
	  and trout_flag = 1;
	  if isTroutStream is true
	  THEN
	  RAISE NOTICE 'Is trout stream: %', mviews.kittle_nbr ;
	  RAISE NOTICE 'Updating %...', mviews.kittle_nbr ;
	  UPDATE public."Minnesota_DNR_TroutStreams"
		   SET trout_flag=1
			WHERE kittle_nbr=mviews.kittle_nbr;
	  ELSE NULL;-- RAISE NOTICE 'IS NOT TROUT STREAM: %', isTroutStream ;
	  end if;
        --PERFORM cs_log('Refreshing materialized view ' || quote_ident(mviews.kittle_nbr) || ' ...');
        --EXECUTE 'TRUNCATE TABLE ' || quote_ident(mviews.mv_name);
        --EXECUTE 'INSERT INTO ' || quote_ident(mviews.mv_name) || ' ' || mviews.mv_query;
    END LOOP;

    --PERFORM cs_log('Done refreshing materialized views.');
    RETURN 1;
END;
$$ LANGUAGE plpgsql;


text:
package com.siyeh.igtest.style.simplifiable_annotation;

public class SimplifiableAnnotation {

    @<warning descr="Unnecessary whitespace in annotation"> </warning>SuppressWarnings(<warning descr="Unnecessary 'value =' in annotation">value = </warning>"blabla")
    @<warning descr="Unnecessary whitespace in annotation"> </warning>Deprecated<warning descr="Unnecessary '()' in annotation">()</warning>
    Object foo() {
        return null;
    }
}
@interface ValueAnnotation {
  String[] value();
}
@interface ArrayAnnotation {
  String[] array();
}
@ValueAnnotation(<warning descr="Unnecessary '{' in annotation">{</warning>"the value"<warning descr="Unnecessary '}' in annotation">}</warning>)
@ArrayAnnotation(array = <warning descr="Unnecessary '{' in annotation">{</warning>"first"<warning descr="Unnecessary '}' in annotation">}</warning>)
class MyClass {

  @ <error descr="'value' missing though required">ValueAnnotation</error>
  int foo(@ArrayAnnotation(array="") String s) {
    return -1;
  }

  @Two(i=<warning descr="Unnecessary '{' in annotation">{</warning>1<warning descr="Unnecessary '}' in annotation">}</warning>, j = 2)
  String s;
}
@interface Two {
  int[] i();
  int j();
}


text:
<?php

	require_once(TOOLKIT . '/class.xsltprocess.php');

	Class fieldInput extends Field {
		function __construct(&$parent){
			parent::__construct($parent);
			$this->_name = __('Text Input');
			$this->_required = true;

			$this->set('required', 'no');
		}

		function allowDatasourceOutputGrouping(){
			return true;
		}

		function allowDatasourceParamOutput(){
			return true;
		}

		function groupRecords($records){

			if(!is_array($records) || empty($records)) return;

			$groups = array($this->get('element_name') => array());

			foreach($records as $r){
				$data = $r->getData($this->get('id'));

				$value = $data['value'];
				$handle = Lang::createHandle($value);

				if(!isset($groups[$this->get('element_name')][$handle])){
					$groups[$this->get('element_name')][$handle] = array('attr' => array('handle' => $handle, 'value' => $value),
																		 'records' => array(), 'groups' => array());
				}

				$groups[$this->get('element_name')][$handle]['records'][] = $r;

			}

			return $groups;
		}

		function displayPublishPanel(&$wrapper, $data=NULL, $flagWithError=NULL, $fieldnamePrefix=NULL, $fieldnamePostfix=NULL){
			$value = General::sanitize($data['value']);
			$label = Widget::Label($this->get('label'));
			if($this->get('required') != 'yes') $label->appendChild(new XMLElement('i', __('Optional')));
			$label->appendChild(Widget::Input('fields'.$fieldnamePrefix.'['.$this->get('element_name').']'.$fieldnamePostfix, (strlen($value) != 0 ? $value : NULL)));

			if($flagWithError != NULL) $wrapper->appendChild(Widget::wrapFormElementWithError($label, $flagWithError));
			else $wrapper->appendChild($label);
		}

		function isSortable(){
			return true;
		}

		function canFilter(){
			return true;
		}

		public function canImport(){
			return true;
		}

		function buildSortingSQL(&$joins, &$where, &$sort, $order='ASC'){
			$joins .= "LEFT OUTER JOIN `tbl_entries_data_".$this->get('id')."` AS `ed` ON (`e`.`id` = `ed`.`entry_id`) ";
			$sort = 'ORDER BY ' . (in_array(strtolower($order), array('random', 'rand')) ? 'RAND()' : "`ed`.`value` $order");
		}

		public function buildDSRetrivalSQL($data, &$joins, &$where, $andOperation = false) {
			$field_id = $this->get('id');

			if (self::isFilterRegex($data[0])) {
				$this->_key++;
				$pattern = str_replace('regexp:', '', $this->cleanValue($data[0]));
				$joins .= "
					LEFT JOIN
						`tbl_entries_data_{$field_id}` AS t{$field_id}_{$this->_key}
						ON (e.id = t{$field_id}_{$this->_key}.entry_id)
				";
				$where .= "
					AND (
						t{$field_id}_{$this->_key}.value REGEXP '{$pattern}'
						OR t{$field_id}_{$this->_key}.handle REGEXP '{$pattern}'
					)
				";

			} elseif ($andOperation) {
				foreach ($data as $value) {
					$this->_key++;
					$value = $this->cleanValue($value);
					$joins .= "
						LEFT JOIN
							`tbl_entries_data_{$field_id}` AS t{$field_id}_{$this->_key}
							ON (e.id = t{$field_id}_{$this->_key}.entry_id)
					";
					$where .= "
						AND (
							t{$field_id}_{$this->_key}.value = '{$value}'
							OR t{$field_id}_{$this->_key}.handle = '{$value}'
						)
					";
				}

			} else {
				if (!is_array($data)) $data = array($data);

				foreach ($data as &$value) {
					$value = $this->cleanValue($value);
				}

				$this->_key++;
				$data = implode("', '", $data);
				$joins .= "
					LEFT JOIN
						`tbl_entries_data_{$field_id}` AS t{$field_id}_{$this->_key}
						ON (e.id = t{$field_id}_{$this->_key}.entry_id)
				";
				$where .= "
					AND (
						t{$field_id}_{$this->_key}.value IN ('{$data}')
						OR t{$field_id}_{$this->_key}.handle IN ('{$data}')
					)
				";
			}

			return true;
		}

		function __applyValidationRules($data){
			$rule = $this->get('validator');
			return ($rule ? General::validateString($data, $rule) : true);
		}

		function checkPostFieldData($data, &$message, $entry_id=NULL){

			$message = NULL;

			$handle = Lang::createHandle($data);

			if($this->get('required') == 'yes' && strlen($data) == 0){
				$message = __("'%s' is a required field.", array($this->get('label')));
				return self::__MISSING_FIELDS__;
			}

			if(!$this->__applyValidationRules($data)){
				$message = __("'%s' contains invalid data. Please check the contents.", array($this->get('label')));
				return self::__INVALID_FIELDS__;
			}

			if(!General::validateXML(General::sanitize($data), $errors, false, new XsltProcess)){
				$message = __('"%1$s" contains invalid XML. The following error was returned: <code>%2$s</code>', array($this->get('label'), $errors[0]['message']));
				return self::__INVALID_FIELDS__;
			}

			return self::__OK__;

		}

		public function processRawFieldData($data, &$status, $simulate = false, $entry_id = null) {

			$status = self::__OK__;

			if (strlen(trim($data)) == 0) return array();

			$result = array(
				'value' => $data,
				'handle' => Lang::createHandle($data)
			);

			return $result;
		}

		function canPrePopulate(){
			return true;
		}

		function appendFormattedElement(&$wrapper, $data, $encode=false){

			if($this->get('apply_formatting') == 'yes' && isset($data['value_formatted'])) $value = $data['value_formatted'];
			else $value = $data['value'];

			$value = General::sanitize($value);

			$wrapper->appendChild(new XMLElement($this->get('element_name'), ($encode ? General::sanitize($value) : $value), array('handle' => $data['handle'])));
		}

		function getEntryFormatter($entry_id){
			return $this->_engine->Database->fetchVar('formatter', 0, "SELECT `formatter` FROM `tbl_entries` WHERE `id` = '$entry_id' LIMIT 1");
		}

		function commit(){

			if(!parent::commit()) return false;

			$id = $this->get('id');

			if($id === false) return false;

			$fields = array();

			$fields['field_id'] = $id;
			$fields['validator'] = ($fields['validator'] == 'custom' ? NULL : $this->get('validator'));

			$this->_engine->Database->query("DELETE FROM `tbl_fields_".$this->handle()."` WHERE `field_id` = '$id' LIMIT 1");

			return $this->_engine->Database->insert($fields, 'tbl_fields_' . $this->handle());

		}

		function setFromPOST($postdata){
			parent::setFromPOST($postdata);
			if($this->get('validator') == '') $this->remove('validator');
		}

		public function displaySettingsPanel(&$wrapper, $errors = null) {
			parent::displaySettingsPanel($wrapper, $errors);

			$this->buildValidationSelect($wrapper, $this->get('validator'), 'fields['.$this->get('sortorder').'][validator]');

			$this->appendRequiredCheckbox($wrapper);
			$this->appendShowColumnCheckbox($wrapper);

		}

		function createTable(){

			return $this->_engine->Database->query(

				"CREATE TABLE IF NOT EXISTS `tbl_entries_data_" . $this->get('id') . "` (
				  `id` int(11) unsigned NOT NULL auto_increment,
				  `entry_id` int(11) unsigned NOT NULL,
				  `handle` varchar(255) default NULL,
				  `value` varchar(255) default NULL,
				  PRIMARY KEY  (`id`),
				  KEY `entry_id` (`entry_id`),
				  KEY `handle` (`handle`),
				  KEY `value` (`value`)
				) TYPE=MyISAM;"

			);
		}

	}


text:
const request = require('request');

exports.getRankedRecipes= function(query) {
  return new Promise((resolve, reject) => {
    const API_KEY = "8756beb18496b780f61372738958adf2";
    let url = "http://food2fork.com/api/search?sort=r&key=" + API_KEY + "&q=" + query;
    request(url, function(error, response, body) {
      console.log('error:', error);
      console.log('statusCode:', response && response.statusCode);
      if (error === 'limit') {
        reject(JSON.stringify({
          'recipes': null,
          'limit': true
        }));
      } else {
        let recipesResponse = JSON.parse(body);
        if (recipesResponse.recipes.length === 0) {
          resolve(JSON.stringify({
            'recipes': null,
            'limit': false}
          ));
        } else {
          let recipesArray = recipesResponse.recipes;
          console.log(recipesArray);
          let sortedRecipes = recipesArray.sort(function(recipeA, recipeB) {
            return scoreRecipe(recipeA) - scoreRecipe(recipeB);
          });
          let sortedAndNoPastaSalads = removePastaSalads(sortedRecipes);
          resolve(JSON.stringify({
            'query': query,
            'recipes': sortedAndNoPastaSalads,
            'limit': false}
          ));
        }
      }
    })
  });
}

function scoreRecipe(recipe) {
  let preferredPublishers = ["Bon Appetit", "Serious Eats", "Smitten Kitchen", "Simply Recipes"];
  let indexOfRecipe = preferredPublishers.indexOf(recipe.publisher);
  if (indexOfRecipe == -1) {
    return 100;
  } else {
    return indexOfRecipe;
  }
}

function removePastaSalads(recipes) {
  let onlyGreenSalads = [];
  for (let i = 0; i < recipes.length; i++) {
    if (!recipes[i].title.includes("pasta") &&
        !recipes[i].title.includes("Pasta") &&
        !recipes[i].title.includes("noodle") &&
        !recipes[i].title.includes("Noodle") &&
        !recipes[i].title.includes("Macaroni") &&
        !recipes[i].title.includes("macaroni")) {
      onlyGreenSalads.push(recipes[i]);
    }
  }
  return onlyGreenSalads;
}


text:
layout: page
title: Margaret Anderson Kilfoil
subtitle: Who I am and what I do
---

I learned to knit as a small child, although it grew into more of a "lifestyle choice" than a hobby by my early 20s. Around this time, I also learned about to dye, spin, crochet and weave, although knitting remains my core love.

I first used Python to send my brother an annoying number of Lilo and Stitch Gifs over Slack, then discovered that there could be real world applications. Since then, I've started to use Python, mostly for data analysis, in my real-world job, and for personal projects.

I like to bring together my knitting interests and data science and programming. I started researching knitting for my sociology thesis on gender and knitting, and haven't seemed to be able to stop. Most of focus these days are on trending within the online knitting community, and using LaTex to make pattern publication easier and more consistent.

If you ever want to geek out over data stuff or yarn (or both!), please drop me a line at any of the contact details below.


text:
geokit-mapquest_geocoder
========================

This gem provides a Mapquest based geocoder for the geokit gem.


text:
package remeberme.ctrl;

import javax.servlet.http.HttpServletRequest;

import org.springframework.security.web.csrf.CsrfToken;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class LoginController {

	@RequestMapping(value = "/manager/logintest", method = RequestMethod.GET)
	public String loginPage() {
		System.out.println("login");
		return "login success";
	}

	@RequestMapping("/manager/createUser")
	public String createUser() {
		return "ok";
	}

	@RequestMapping("/getcsrf")
	public String getCSRF(HttpServletRequest request) {
		CsrfToken csrfToken =(CsrfToken) request.getAttribute(CsrfToken.class.getName());
		return csrfToken.getToken();
	}
}


text:
<?php
/**
 * The default template for displaying page content
 *
 *
 * @package FoundationPress
 * @since FoundationPress 1.0.0
 */

?>

<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>

		<?php the_content(); ?>
		<?php edit_post_link( __( '(Edit)', 'foundationpress' ), '', '' ); ?>


text:
const toArray = require('../utils/toArray');

module.exports = function (userId, ...args) {
  const [message, attachment, keyboard, sticker, randomId] = args;

  if (Array.isArray(userId) && userId.length > 100) {
    throw new Error('Message can\'t be sent to more than 100 recipients.');
  }

  return this.execute(
    'messages.send',
    Object.assign(
      Array.isArray(userId)
        ? { user_ids: userId.join(',') }
        : { peer_id: userId },
      typeof args[0] === 'object'
        ? args[0]
        : {
          message,
          attachment: toArray(attachment).join(','),
          sticker_id: sticker,
          keyboard: keyboard ? keyboard.toJSON() : undefined,
          random_id: randomId || Date.now(),
        },
    ),
  );
};


text:
group "EC2"
library :rudy, 'lib'

tryouts "Addresses" do
  set :global, Rudy::Huxtable.global
  set :group_name, 'grp-' << Rudy::Utils.strand
  set :group_desc, 'desc-' << group_name
  setup do
    Rudy::Huxtable.update_config
    Rudy::AWS::EC2.connect global.accesskey, global.secretkey, global.region
  end

  drill "should not be existing addresses", false do
    Rudy::AWS::EC2::Addresses.any?
  end

  dream :class, Rudy::AWS::EC2::Address
  dream :proc, lambda { |a| a.ipaddress.size > 0 }
  drill "create address" do
    Rudy::AWS::EC2::Addresses.create
  end

  dream :class, Array
  dream :empty?, false
  drill "list addresses" do
    stash :address, Rudy::AWS::EC2::Addresses.list
  end

  dream :class, Hash
  dream :empty?, false
  drill "list addresses as Hash" do
    Rudy::AWS::EC2::Addresses.list_as_hash
  end

  drill "destroy all addresses", true do
    Rudy::AWS::EC2::Addresses.list.each do |a|
      Rudy::AWS::EC2::Addresses.destroy a
    end
    Rudy::AWS::EC2::Addresses.list.nil?
  end

end


text:
const pluck = (key, array) => array.map(v => v[key]);

export default pluck;