text:
//------------------------------------------------------------------------------
// <auto-generated>
//     Ce code a été généré par un outil.
//     Version du runtime :4.0.30319.18051
//
//     Les modifications apportées à ce fichier peuvent provoquer un comportement incorrect et seront perdues si
//     le code est régénéré.
// </auto-generated>
//------------------------------------------------------------------------------

//
// This code was auto-generated by Microsoft.VisualStudio.ServiceReference.Platforms, version 11.0.50727.1
//
namespace AgenceRT.AgenceWebService {
    using System.Runtime.Serialization;

    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Runtime.Serialization", "4.0.0.0")]
    [System.Runtime.Serialization.DataContractAttribute(Name="BienDTO", Namespace="http://schemas.datacontract.org/2004/07/AgenceDTO")]
    public partial class BienDTO : AgenceRT.AgenceWebService.TypeBienDTO {

        private string AdresseField;

        private string DescriptionField;

        private int IdBienField;

        private string LatitudeField;

        private string LongitudeField;

        private AgenceRT.AgenceWebService.ProprietaireDTO ProprietaireField;

        private string TitreField;

        [System.Runtime.Serialization.DataMemberAttribute()]
        public string Adresse {
            get {
                return this.AdresseField;
            }
            set {
                if ((object.ReferenceEquals(this.AdresseField, value) != true)) {
                    this.AdresseField = value;
                    this.RaisePropertyChanged("Adresse");
                }
            }
        }

        [System.Runtime.Serialization.DataMemberAttribute()]
        public string Description {
            get {
                return this.DescriptionField;
            }
            set {
                if ((object.ReferenceEquals(this.DescriptionField, value) != true)) {
                    this.DescriptionField = value;
                    this.RaisePropertyChanged("Description");
                }
            }
        }

        [System.Runtime.Serialization.DataMemberAttribute()]
        public int IdBien {
            get {
                return this.IdBienField;
            }
            set {
                if ((this.IdBienField.Equals(value) != true)) {
                    this.IdBienField = value;
                    this.RaisePropertyChanged("IdBien");
                }
            }
        }

        [System.Runtime.Serialization.DataMemberAttribute()]
        public string Latitude {
            get {
                return this.LatitudeField;
            }
            set {
                if ((object.ReferenceEquals(this.LatitudeField, value) != true)) {
                    this.LatitudeField = value;
                    this.RaisePropertyChanged("Latitude");
                }
            }
        }

        [System.Runtime.Serialization.DataMemberAttribute()]
        public string Longitude {
            get {
                return this.LongitudeField;
            }
            set {
                if ((object.ReferenceEquals(this.LongitudeField, value) != true)) {
                    this.LongitudeField = value;
                    this.RaisePropertyChanged("Longitude");
                }
            }
        }

        [System.Runtime.Serialization.DataMemberAttribute()]
        public AgenceRT.AgenceWebService.ProprietaireDTO Proprietaire {
            get {
                return this.ProprietaireField;
            }
            set {
                if ((object.ReferenceEquals(this.ProprietaireField, value) != true)) {
                    this.ProprietaireField = value;
                    this.RaisePropertyChanged("Proprietaire");
                }
            }
        }

        [System.Runtime.Serialization.DataMemberAttribute()]
        public string Titre {
            get {
                return this.TitreField;
            }
            set {
                if ((object.ReferenceEquals(this.TitreField, value) != true)) {
                    this.TitreField = value;
                    this.RaisePropertyChanged("Titre");
                }
            }
        }
    }

    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Runtime.Serialization", "4.0.0.0")]
    [System.Runtime.Serialization.DataContractAttribute(Name="TypeBienDTO", Namespace="http://schemas.datacontract.org/2004/07/AgenceDTO")]
    [System.Runtime.Serialization.KnownTypeAttribute(typeof(AgenceRT.AgenceWebService.BienDTO))]
    public partial class TypeBienDTO : object, System.ComponentModel.INotifyPropertyChanged {

        private int IdTypeBienField;

        private string LibelleTypeField;

        [System.Runtime.Serialization.DataMemberAttribute()]
        public int IdTypeBien {
            get {
                return this.IdTypeBienField;
            }
            set {
                if ((this.IdTypeBienField.Equals(value) != true)) {
                    this.IdTypeBienField = value;
                    this.RaisePropertyChanged("IdTypeBien");
                }
            }
        }

        [System.Runtime.Serialization.DataMemberAttribute()]
        public string LibelleType {
            get {
                return this.LibelleTypeField;
            }
            set {
                if ((object.ReferenceEquals(this.LibelleTypeField, value) != true)) {
                    this.LibelleTypeField = value;
                    this.RaisePropertyChanged("LibelleType");
                }
            }
        }

        public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged;

        protected void RaisePropertyChanged(string propertyName) {
            System.ComponentModel.PropertyChangedEventHandler propertyChanged = this.PropertyChanged;
            if ((propertyChanged != null)) {
                propertyChanged(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName));
            }
        }
    }

    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Runtime.Serialization", "4.0.0.0")]
    [System.Runtime.Serialization.DataContractAttribute(Name="ProprietaireDTO", Namespace="http://schemas.datacontract.org/2004/07/AgenceDTO")]
    public partial class ProprietaireDTO : AgenceRT.AgenceWebService.PersonneDTO {

        private string AdresseField;

        [System.Runtime.Serialization.DataMemberAttribute()]
        public string Adresse {
            get {
                return this.AdresseField;
            }
            set {
                if ((object.ReferenceEquals(this.AdresseField, value) != true)) {
                    this.AdresseField = value;
                    this.RaisePropertyChanged("Adresse");
                }
            }
        }
    }

    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Runtime.Serialization", "4.0.0.0")]
    [System.Runtime.Serialization.DataContractAttribute(Name="PersonneDTO", Namespace="http://schemas.datacontract.org/2004/07/AgenceDTO")]
    [System.Runtime.Serialization.KnownTypeAttribute(typeof(AgenceRT.AgenceWebService.ProspectDTO))]
    [System.Runtime.Serialization.KnownTypeAttribute(typeof(AgenceRT.AgenceWebService.AgentDTO))]
    [System.Runtime.Serialization.KnownTypeAttribute(typeof(AgenceRT.AgenceWebService.ProprietaireDTO))]
    public partial class PersonneDTO : object, System.ComponentModel.INotifyPropertyChanged {

        private int IdPersonneField;

        private string NomField;

        private string PrenomField;

        private string TelephoneField;

        [System.Runtime.Serialization.DataMemberAttribute()]
        public int IdPersonne {
            get {
                return this.IdPersonneField;
            }
            set {
                if ((this.IdPersonneField.Equals(value) != true)) {
                    this.IdPersonneField = value;
                    this.RaisePropertyChanged("IdPersonne");
                }
            }
        }

        [System.Runtime.Serialization.DataMemberAttribute()]
        public string Nom {
            get {
                return this.NomField;
            }
            set {
                if ((object.ReferenceEquals(this.NomField, value) != true)) {
                    this.NomField = value;
                    this.RaisePropertyChanged("Nom");
                }
            }
        }

        [System.Runtime.Serialization.DataMemberAttribute()]
        public string Prenom {
            get {
                return this.PrenomField;
            }
            set {
                if ((object.ReferenceEquals(this.PrenomField, value) != true)) {
                    this.PrenomField = value;
                    this.RaisePropertyChanged("Prenom");
                }
            }
        }

        [System.Runtime.Serialization.DataMemberAttribute()]
        public string Telephone {
            get {
                return this.TelephoneField;
            }
            set {
                if ((object.ReferenceEquals(this.TelephoneField, value) != true)) {
                    this.TelephoneField = value;
                    this.RaisePropertyChanged("Telephone");
                }
            }
        }

        public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged;

        protected void RaisePropertyChanged(string propertyName) {
            System.ComponentModel.PropertyChangedEventHandler propertyChanged = this.PropertyChanged;
            if ((propertyChanged != null)) {
                propertyChanged(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName));
            }
        }
    }

    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Runtime.Serialization", "4.0.0.0")]
    [System.Runtime.Serialization.DataContractAttribute(Name="ProspectDTO", Namespace="http://schemas.datacontract.org/2004/07/AgenceDTO")]
    public partial class ProspectDTO : AgenceRT.AgenceWebService.PersonneDTO {

        private System.Nullable<System.DateTime> DateContactField;

        [System.Runtime.Serialization.DataMemberAttribute()]
        public System.Nullable<System.DateTime> DateContact {
            get {
                return this.DateContactField;
            }
            set {
                if ((this.DateContactField.Equals(value) != true)) {
                    this.DateContactField = value;
                    this.RaisePropertyChanged("DateContact");
                }
            }
        }
    }

    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Runtime.Serialization", "4.0.0.0")]
    [System.Runtime.Serialization.DataContractAttribute(Name="AgentDTO", Namespace="http://schemas.datacontract.org/2004/07/AgenceDTO")]
    public partial class AgentDTO : AgenceRT.AgenceWebService.PersonneDTO {

        private string LoginField;

        private string MotDePasseField;

        [System.Runtime.Serialization.DataMemberAttribute()]
        public string Login {
            get {
                return this.LoginField;
            }
            set {
                if ((object.ReferenceEquals(this.LoginField, value) != true)) {
                    this.LoginField = value;
                    this.RaisePropertyChanged("Login");
                }
            }
        }

        [System.Runtime.Serialization.DataMemberAttribute()]
        public string MotDePasse {
            get {
                return this.MotDePasseField;
            }
            set {
                if ((object.ReferenceEquals(this.MotDePasseField, value) != true)) {
                    this.MotDePasseField = value;
                    this.RaisePropertyChanged("MotDePasse");
                }
            }
        }
    }

    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Runtime.Serialization", "4.0.0.0")]
    [System.Runtime.Serialization.DataContractAttribute(Name="AgendaDTO", Namespace="http://schemas.datacontract.org/2004/07/AgenceDTO")]
    public partial class AgendaDTO : object, System.ComponentModel.INotifyPropertyChanged {

        private AgenceRT.AgenceWebService.AgentDTO AgentField;

        private AgenceRT.AgenceWebService.AnnonceDTO AnnonceField;

        private System.Nullable<System.DateTime> DateField;

        private string DescriptionField;

        private int IdAgendaField;

        private AgenceRT.AgenceWebService.ProspectDTO ProspectField;

        private string TitreField;

        [System.Runtime.Serialization.DataMemberAttribute()]
        public AgenceRT.AgenceWebService.AgentDTO Agent {
            get {
                return this.AgentField;
            }
            set {
                if ((object.ReferenceEquals(this.AgentField, value) != true)) {
                    this.AgentField = value;
                    this.RaisePropertyChanged("Agent");
                }
            }
        }

        [System.Runtime.Serialization.DataMemberAttribute()]
        public AgenceRT.AgenceWebService.AnnonceDTO Annonce {
            get {
                return this.AnnonceField;
            }
            set {
                if ((object.ReferenceEquals(this.AnnonceField, value) != true)) {
                    this.AnnonceField = value;
                    this.RaisePropertyChanged("Annonce");
                }
            }
        }

        [System.Runtime.Serialization.DataMemberAttribute()]
        public System.Nullable<System.DateTime> Date {
            get {
                return this.DateField;
            }
            set {
                if ((this.DateField.Equals(value) != true)) {
                    this.DateField = value;
                    this.RaisePropertyChanged("Date");
                }
            }
        }

        [System.Runtime.Serialization.DataMemberAttribute()]
        public string Description {
            get {
                return this.DescriptionField;
            }
            set {
                if ((object.ReferenceEquals(this.DescriptionField, value) != true)) {
                    this.DescriptionField = value;
                    this.RaisePropertyChanged("Description");
                }
            }
        }

        [System.Runtime.Serialization.DataMemberAttribute()]
        public int IdAgenda {
            get {
                return this.IdAgendaField;
            }
            set {
                if ((this.IdAgendaField.Equals(value) != true)) {
                    this.IdAgendaField = value;
                    this.RaisePropertyChanged("IdAgenda");
                }
            }
        }

        [System.Runtime.Serialization.DataMemberAttribute()]
        public AgenceRT.AgenceWebService.ProspectDTO Prospect {
            get {
                return this.ProspectField;
            }
            set {
                if ((object.ReferenceEquals(this.ProspectField, value) != true)) {
                    this.ProspectField = value;
                    this.RaisePropertyChanged("Prospect");
                }
            }
        }

        [System.Runtime.Serialization.DataMemberAttribute()]
        public string Titre {
            get {
                return this.TitreField;
            }
            set {
                if ((object.ReferenceEquals(this.TitreField, value) != true)) {
                    this.TitreField = value;
                    this.RaisePropertyChanged("Titre");
                }
            }
        }

        public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged;

        protected void RaisePropertyChanged(string propertyName) {
            System.ComponentModel.PropertyChangedEventHandler propertyChanged = this.PropertyChanged;
            if ((propertyChanged != null)) {
                propertyChanged(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName));
            }
        }
    }

    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Runtime.Serialization", "4.0.0.0")]
    [System.Runtime.Serialization.DataContractAttribute(Name="AnnonceDTO", Namespace="http://schemas.datacontract.org/2004/07/AgenceDTO")]
    public partial class AnnonceDTO : object, System.ComponentModel.INotifyPropertyChanged {

        private AgenceRT.AgenceWebService.BienDTO BienField;

        private int IdAnnonceField;

        private float PrixField;

        private string TexteField;

        private string TitreField;

        [System.Runtime.Serialization.DataMemberAttribute()]
        public AgenceRT.AgenceWebService.BienDTO Bien {
            get {
                return this.BienField;
            }
            set {
                if ((object.ReferenceEquals(this.BienField, value) != true)) {
                    this.BienField = value;
                    this.RaisePropertyChanged("Bien");
                }
            }
        }

        [System.Runtime.Serialization.DataMemberAttribute()]
        public int IdAnnonce {
            get {
                return this.IdAnnonceField;
            }
            set {
                if ((this.IdAnnonceField.Equals(value) != true)) {
                    this.IdAnnonceField = value;
                    this.RaisePropertyChanged("IdAnnonce");
                }
            }
        }

        [System.Runtime.Serialization.DataMemberAttribute()]
        public float Prix {
            get {
                return this.PrixField;
            }
            set {
                if ((this.PrixField.Equals(value) != true)) {
                    this.PrixField = value;
                    this.RaisePropertyChanged("Prix");
                }
            }
        }

        [System.Runtime.Serialization.DataMemberAttribute()]
        public string Texte {
            get {
                return this.TexteField;
            }
            set {
                if ((object.ReferenceEquals(this.TexteField, value) != true)) {
                    this.TexteField = value;
                    this.RaisePropertyChanged("Texte");
                }
            }
        }

        [System.Runtime.Serialization.DataMemberAttribute()]
        public string Titre {
            get {
                return this.TitreField;
            }
            set {
                if ((object.ReferenceEquals(this.TitreField, value) != true)) {
                    this.TitreField = value;
                    this.RaisePropertyChanged("Titre");
                }
            }
        }

        public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged;

        protected void RaisePropertyChanged(string propertyName) {
            System.ComponentModel.PropertyChangedEventHandler propertyChanged = this.PropertyChanged;
            if ((propertyChanged != null)) {
                propertyChanged(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName));
            }
        }
    }

    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")]
    [System.ServiceModel.ServiceContractAttribute(ConfigurationName="AgenceWebService.IAgenceWebServices")]
    public interface IAgenceWebServices {

        [System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/IAgenceWebServices/ChargerListeBiens", ReplyAction="http://tempuri.org/IAgenceWebServices/ChargerListeBiensResponse")]
        System.Threading.Tasks.Task<System.Collections.ObjectModel.ObservableCollection<AgenceRT.AgenceWebService.BienDTO>> ChargerListeBiensAsync();

        [System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/IAgenceWebServices/ChargerBien", ReplyAction="http://tempuri.org/IAgenceWebServices/ChargerBienResponse")]
        System.Threading.Tasks.Task<AgenceRT.AgenceWebService.BienDTO> ChargerBienAsync(string id);

        [System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/IAgenceWebServices/ChargerListeBiensParType", ReplyAction="http://tempuri.org/IAgenceWebServices/ChargerListeBiensParTypeResponse")]
        System.Threading.Tasks.Task<System.Collections.ObjectModel.ObservableCollection<AgenceRT.AgenceWebService.BienDTO>> ChargerListeBiensParTypeAsync(string idType);

        [System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/IAgenceWebServices/AjouterBien", ReplyAction="http://tempuri.org/IAgenceWebServices/AjouterBienResponse")]
        System.Threading.Tasks.Task AjouterBienAsync(AgenceRT.AgenceWebService.BienDTO bien);

        [System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/IAgenceWebServices/ChargerListeTypesBiens", ReplyAction="http://tempuri.org/IAgenceWebServices/ChargerListeTypesBiensResponse")]
        System.Threading.Tasks.Task<System.Collections.ObjectModel.ObservableCollection<AgenceRT.AgenceWebService.TypeBienDTO>> ChargerListeTypesBiensAsync();

        [System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/IAgenceWebServices/SupprimerBien", ReplyAction="http://tempuri.org/IAgenceWebServices/SupprimerBienResponse")]
        System.Threading.Tasks.Task SupprimerBienAsync(string id);

        [System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/IAgenceWebServices/ChargerListeProspects", ReplyAction="http://tempuri.org/IAgenceWebServices/ChargerListeProspectsResponse")]
        System.Threading.Tasks.Task<System.Collections.ObjectModel.ObservableCollection<AgenceRT.AgenceWebService.ProspectDTO>> ChargerListeProspectsAsync();

        [System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/IAgenceWebServices/ChargerProspect", ReplyAction="http://tempuri.org/IAgenceWebServices/ChargerProspectResponse")]
        System.Threading.Tasks.Task<AgenceRT.AgenceWebService.ProspectDTO> ChargerProspectAsync(string id);

        [System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/IAgenceWebServices/AjouterProspect", ReplyAction="http://tempuri.org/IAgenceWebServices/AjouterProspectResponse")]
        System.Threading.Tasks.Task AjouterProspectAsync(AgenceRT.AgenceWebService.ProspectDTO prospect);

        [System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/IAgenceWebServices/SupprimerProspect", ReplyAction="http://tempuri.org/IAgenceWebServices/SupprimerProspectResponse")]
        System.Threading.Tasks.Task SupprimerProspectAsync(string id);

        [System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/IAgenceWebServices/ChargerListeAgents", ReplyAction="http://tempuri.org/IAgenceWebServices/ChargerListeAgentsResponse")]
        System.Threading.Tasks.Task<System.Collections.ObjectModel.ObservableCollection<AgenceRT.AgenceWebService.AgentDTO>> ChargerListeAgentsAsync();

        [System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/IAgenceWebServices/ChargerAgent", ReplyAction="http://tempuri.org/IAgenceWebServices/ChargerAgentResponse")]
        System.Threading.Tasks.Task<AgenceRT.AgenceWebService.AgentDTO> ChargerAgentAsync(string id);

        [System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/IAgenceWebServices/AjouterAgent", ReplyAction="http://tempuri.org/IAgenceWebServices/AjouterAgentResponse")]
        System.Threading.Tasks.Task AjouterAgentAsync(AgenceRT.AgenceWebService.AgentDTO agent);

        [System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/IAgenceWebServices/SupprimerAgent", ReplyAction="http://tempuri.org/IAgenceWebServices/SupprimerAgentResponse")]
        System.Threading.Tasks.Task SupprimerAgentAsync(string id);

        [System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/IAgenceWebServices/ChargerListeProprietaires", ReplyAction="http://tempuri.org/IAgenceWebServices/ChargerListeProprietairesResponse")]
        System.Threading.Tasks.Task<System.Collections.ObjectModel.ObservableCollection<AgenceRT.AgenceWebService.ProprietaireDTO>> ChargerListeProprietairesAsync();

        [System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/IAgenceWebServices/ChargerProprietaire", ReplyAction="http://tempuri.org/IAgenceWebServices/ChargerProprietaireResponse")]
        System.Threading.Tasks.Task<AgenceRT.AgenceWebService.ProprietaireDTO> ChargerProprietaireAsync(string id);

        [System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/IAgenceWebServices/AjouterProprietaire", ReplyAction="http://tempuri.org/IAgenceWebServices/AjouterProprietaireResponse")]
        System.Threading.Tasks.Task AjouterProprietaireAsync(AgenceRT.AgenceWebService.ProprietaireDTO proprietaire);

        [System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/IAgenceWebServices/SupprimerProprietaire", ReplyAction="http://tempuri.org/IAgenceWebServices/SupprimerProprietaireResponse")]
        System.Threading.Tasks.Task SupprimerProprietaireAsync(string id);

        [System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/IAgenceWebServices/ChargerListeRendezVous", ReplyAction="http://tempuri.org/IAgenceWebServices/ChargerListeRendezVousResponse")]
        System.Threading.Tasks.Task<System.Collections.ObjectModel.ObservableCollection<AgenceRT.AgenceWebService.AgendaDTO>> ChargerListeRendezVousAsync();

        [System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/IAgenceWebServices/ChargerAgenda", ReplyAction="http://tempuri.org/IAgenceWebServices/ChargerAgendaResponse")]
        System.Threading.Tasks.Task<AgenceRT.AgenceWebService.AgendaDTO> ChargerAgendaAsync(string id);

        [System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/IAgenceWebServices/AjouterAgenda", ReplyAction="http://tempuri.org/IAgenceWebServices/AjouterAgendaResponse")]
        System.Threading.Tasks.Task AjouterAgendaAsync(AgenceRT.AgenceWebService.AgendaDTO agenda);

        [System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/IAgenceWebServices/SupprimerAgenda", ReplyAction="http://tempuri.org/IAgenceWebServices/SupprimerAgendaResponse")]
        System.Threading.Tasks.Task SupprimerAgendaAsync(string id);

        [System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/IAgenceWebServices/ChargerListeAnnonces", ReplyAction="http://tempuri.org/IAgenceWebServices/ChargerListeAnnoncesResponse")]
        System.Threading.Tasks.Task<System.Collections.ObjectModel.ObservableCollection<AgenceRT.AgenceWebService.AnnonceDTO>> ChargerListeAnnoncesAsync();

        [System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/IAgenceWebServices/ChargerAnnonce", ReplyAction="http://tempuri.org/IAgenceWebServices/ChargerAnnonceResponse")]
        System.Threading.Tasks.Task<AgenceRT.AgenceWebService.AnnonceDTO> ChargerAnnonceAsync(string id);

        [System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/IAgenceWebServices/AjouterAnnonce", ReplyAction="http://tempuri.org/IAgenceWebServices/AjouterAnnonceResponse")]
        System.Threading.Tasks.Task AjouterAnnonceAsync(AgenceRT.AgenceWebService.AnnonceDTO annonce);

        [System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/IAgenceWebServices/SupprimerAnnonce", ReplyAction="http://tempuri.org/IAgenceWebServices/SupprimerAnnonceResponse")]
        System.Threading.Tasks.Task SupprimerAnnonceAsync(string id);

        [System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/IAgenceWebServices/EnregistrerSaisie", ReplyAction="http://tempuri.org/IAgenceWebServices/EnregistrerSaisieResponse")]
        [System.ServiceModel.ServiceKnownTypeAttribute(typeof(System.Collections.ObjectModel.ObservableCollection<AgenceRT.AgenceWebService.BienDTO>))]
        [System.ServiceModel.ServiceKnownTypeAttribute(typeof(AgenceRT.AgenceWebService.BienDTO))]
        [System.ServiceModel.ServiceKnownTypeAttribute(typeof(AgenceRT.AgenceWebService.TypeBienDTO))]
        [System.ServiceModel.ServiceKnownTypeAttribute(typeof(AgenceRT.AgenceWebService.ProprietaireDTO))]
        [System.ServiceModel.ServiceKnownTypeAttribute(typeof(AgenceRT.AgenceWebService.PersonneDTO))]
        [System.ServiceModel.ServiceKnownTypeAttribute(typeof(System.Collections.ObjectModel.ObservableCollection<AgenceRT.AgenceWebService.TypeBienDTO>))]
        [System.ServiceModel.ServiceKnownTypeAttribute(typeof(System.Collections.ObjectModel.ObservableCollection<AgenceRT.AgenceWebService.ProspectDTO>))]
        [System.ServiceModel.ServiceKnownTypeAttribute(typeof(AgenceRT.AgenceWebService.ProspectDTO))]
        [System.ServiceModel.ServiceKnownTypeAttribute(typeof(System.Collections.ObjectModel.ObservableCollection<AgenceRT.AgenceWebService.AgentDTO>))]
        [System.ServiceModel.ServiceKnownTypeAttribute(typeof(AgenceRT.AgenceWebService.AgentDTO))]
        [System.ServiceModel.ServiceKnownTypeAttribute(typeof(System.Collections.ObjectModel.ObservableCollection<AgenceRT.AgenceWebService.ProprietaireDTO>))]
        [System.ServiceModel.ServiceKnownTypeAttribute(typeof(System.Collections.ObjectModel.ObservableCollection<AgenceRT.AgenceWebService.AgendaDTO>))]
        [System.ServiceModel.ServiceKnownTypeAttribute(typeof(AgenceRT.AgenceWebService.AgendaDTO))]
        [System.ServiceModel.ServiceKnownTypeAttribute(typeof(AgenceRT.AgenceWebService.AnnonceDTO))]
        [System.ServiceModel.ServiceKnownTypeAttribute(typeof(System.Collections.ObjectModel.ObservableCollection<AgenceRT.AgenceWebService.AnnonceDTO>))]
        System.Threading.Tasks.Task EnregistrerSaisieAsync(object saisie);
    }

    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")]
    public interface IAgenceWebServicesChannel : AgenceRT.AgenceWebService.IAgenceWebServices, System.ServiceModel.IClientChannel {
    }

    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")]
    public partial class AgenceWebServicesClient : System.ServiceModel.ClientBase<AgenceRT.AgenceWebService.IAgenceWebServices>, AgenceRT.AgenceWebService.IAgenceWebServices {

        /// <summary>
        /// Implement this partial method to configure the service endpoint.
        /// </summary>
        /// <param name="serviceEndpoint">The endpoint to configure</param>
        /// <param name="clientCredentials">The client credentials</param>
        static partial void ConfigureEndpoint(System.ServiceModel.Description.ServiceEndpoint serviceEndpoint, System.ServiceModel.Description.ClientCredentials clientCredentials);

        public AgenceWebServicesClient() :
                base(AgenceWebServicesClient.GetDefaultBinding(), AgenceWebServicesClient.GetDefaultEndpointAddress()) {
            this.Endpoint.Name = EndpointConfiguration.BasicHttpBinding_IAgenceWebServices.ToString();
            ConfigureEndpoint(this.Endpoint, this.ClientCredentials);
        }

        public AgenceWebServicesClient(EndpointConfiguration endpointConfiguration) :
                base(AgenceWebServicesClient.GetBindingForEndpoint(endpointConfiguration), AgenceWebServicesClient.GetEndpointAddress(endpointConfiguration)) {
            this.Endpoint.Name = endpointConfiguration.ToString();
            ConfigureEndpoint(this.Endpoint, this.ClientCredentials);
        }

        public AgenceWebServicesClient(EndpointConfiguration endpointConfiguration, string remoteAddress) :
                base(AgenceWebServicesClient.GetBindingForEndpoint(endpointConfiguration), new System.ServiceModel.EndpointAddress(remoteAddress)) {
            this.Endpoint.Name = endpointConfiguration.ToString();
            ConfigureEndpoint(this.Endpoint, this.ClientCredentials);
        }

        public AgenceWebServicesClient(EndpointConfiguration endpointConfiguration, System.ServiceModel.EndpointAddress remoteAddress) :
                base(AgenceWebServicesClient.GetBindingForEndpoint(endpointConfiguration), remoteAddress) {
            this.Endpoint.Name = endpointConfiguration.ToString();
            ConfigureEndpoint(this.Endpoint, this.ClientCredentials);
        }

        public AgenceWebServicesClient(System.ServiceModel.Channels.Binding binding, System.ServiceModel.EndpointAddress remoteAddress) :
                base(binding, remoteAddress) {
        }

        public System.Threading.Tasks.Task<System.Collections.ObjectModel.ObservableCollection<AgenceRT.AgenceWebService.BienDTO>> ChargerListeBiensAsync() {
            return base.Channel.ChargerListeBiensAsync();
        }

        public System.Threading.Tasks.Task<AgenceRT.AgenceWebService.BienDTO> ChargerBienAsync(string id) {
            return base.Channel.ChargerBienAsync(id);
        }

        public System.Threading.Tasks.Task<System.Collections.ObjectModel.ObservableCollection<AgenceRT.AgenceWebService.BienDTO>> ChargerListeBiensParTypeAsync(string idType) {
            return base.Channel.ChargerListeBiensParTypeAsync(idType);
        }

        public System.Threading.Tasks.Task AjouterBienAsync(AgenceRT.AgenceWebService.BienDTO bien) {
            return base.Channel.AjouterBienAsync(bien);
        }

        public System.Threading.Tasks.Task<System.Collections.ObjectModel.ObservableCollection<AgenceRT.AgenceWebService.TypeBienDTO>> ChargerListeTypesBiensAsync() {
            return base.Channel.ChargerListeTypesBiensAsync();
        }

        public System.Threading.Tasks.Task SupprimerBienAsync(string id) {
            return base.Channel.SupprimerBienAsync(id);
        }

        public System.Threading.Tasks.Task<System.Collections.ObjectModel.ObservableCollection<AgenceRT.AgenceWebService.ProspectDTO>> ChargerListeProspectsAsync() {
            return base.Channel.ChargerListeProspectsAsync();
        }

        public System.Threading.Tasks.Task<AgenceRT.AgenceWebService.ProspectDTO> ChargerProspectAsync(string id) {
            return base.Channel.ChargerProspectAsync(id);
        }

        public System.Threading.Tasks.Task AjouterProspectAsync(AgenceRT.AgenceWebService.ProspectDTO prospect) {
            return base.Channel.AjouterProspectAsync(prospect);
        }

        public System.Threading.Tasks.Task SupprimerProspectAsync(string id) {
            return base.Channel.SupprimerProspectAsync(id);
        }

        public System.Threading.Tasks.Task<System.Collections.ObjectModel.ObservableCollection<AgenceRT.AgenceWebService.AgentDTO>> ChargerListeAgentsAsync() {
            return base.Channel.ChargerListeAgentsAsync();
        }

        public System.Threading.Tasks.Task<AgenceRT.AgenceWebService.AgentDTO> ChargerAgentAsync(string id) {
            return base.Channel.ChargerAgentAsync(id);
        }

        public System.Threading.Tasks.Task AjouterAgentAsync(AgenceRT.AgenceWebService.AgentDTO agent) {
            return base.Channel.AjouterAgentAsync(agent);
        }

        public System.Threading.Tasks.Task SupprimerAgentAsync(string id) {
            return base.Channel.SupprimerAgentAsync(id);
        }

        public System.Threading.Tasks.Task<System.Collections.ObjectModel.ObservableCollection<AgenceRT.AgenceWebService.ProprietaireDTO>> ChargerListeProprietairesAsync() {
            return base.Channel.ChargerListeProprietairesAsync();
        }

        public System.Threading.Tasks.Task<AgenceRT.AgenceWebService.ProprietaireDTO> ChargerProprietaireAsync(string id) {
            return base.Channel.ChargerProprietaireAsync(id);
        }

        public System.Threading.Tasks.Task AjouterProprietaireAsync(AgenceRT.AgenceWebService.ProprietaireDTO proprietaire) {
            return base.Channel.AjouterProprietaireAsync(proprietaire);
        }

        public System.Threading.Tasks.Task SupprimerProprietaireAsync(string id) {
            return base.Channel.SupprimerProprietaireAsync(id);
        }

        public System.Threading.Tasks.Task<System.Collections.ObjectModel.ObservableCollection<AgenceRT.AgenceWebService.AgendaDTO>> ChargerListeRendezVousAsync() {
            return base.Channel.ChargerListeRendezVousAsync();
        }

        public System.Threading.Tasks.Task<AgenceRT.AgenceWebService.AgendaDTO> ChargerAgendaAsync(string id) {
            return base.Channel.ChargerAgendaAsync(id);
        }

        public System.Threading.Tasks.Task AjouterAgendaAsync(AgenceRT.AgenceWebService.AgendaDTO agenda) {
            return base.Channel.AjouterAgendaAsync(agenda);
        }

        public System.Threading.Tasks.Task SupprimerAgendaAsync(string id) {
            return base.Channel.SupprimerAgendaAsync(id);
        }

        public System.Threading.Tasks.Task<System.Collections.ObjectModel.ObservableCollection<AgenceRT.AgenceWebService.AnnonceDTO>> ChargerListeAnnoncesAsync() {
            return base.Channel.ChargerListeAnnoncesAsync();
        }

        public System.Threading.Tasks.Task<AgenceRT.AgenceWebService.AnnonceDTO> ChargerAnnonceAsync(string id) {
            return base.Channel.ChargerAnnonceAsync(id);
        }

        public System.Threading.Tasks.Task AjouterAnnonceAsync(AgenceRT.AgenceWebService.AnnonceDTO annonce) {
            return base.Channel.AjouterAnnonceAsync(annonce);
        }

        public System.Threading.Tasks.Task SupprimerAnnonceAsync(string id) {
            return base.Channel.SupprimerAnnonceAsync(id);
        }

        public System.Threading.Tasks.Task EnregistrerSaisieAsync(object saisie) {
            return base.Channel.EnregistrerSaisieAsync(saisie);
        }

        public virtual System.Threading.Tasks.Task OpenAsync() {
            return System.Threading.Tasks.Task.Factory.FromAsync(((System.ServiceModel.ICommunicationObject)(this)).BeginOpen(null, null), new System.Action<System.IAsyncResult>(((System.ServiceModel.ICommunicationObject)(this)).EndOpen));
        }

        public virtual System.Threading.Tasks.Task CloseAsync() {
            return System.Threading.Tasks.Task.Factory.FromAsync(((System.ServiceModel.ICommunicationObject)(this)).BeginClose(null, null), new System.Action<System.IAsyncResult>(((System.ServiceModel.ICommunicationObject)(this)).EndClose));
        }

        private static System.ServiceModel.Channels.Binding GetBindingForEndpoint(EndpointConfiguration endpointConfiguration) {
            if ((endpointConfiguration == EndpointConfiguration.BasicHttpBinding_IAgenceWebServices)) {
                System.ServiceModel.BasicHttpBinding result = new System.ServiceModel.BasicHttpBinding();
                result.MaxBufferSize = int.MaxValue;
                result.ReaderQuotas = System.Xml.XmlDictionaryReaderQuotas.Max;
                result.MaxReceivedMessageSize = int.MaxValue;
                result.AllowCookies = true;
                return result;
            }
            throw new System.InvalidOperationException(string.Format("Could not find endpoint with name \'{0}\'.", endpointConfiguration));
        }

        private static System.ServiceModel.EndpointAddress GetEndpointAddress(EndpointConfiguration endpointConfiguration) {
            if ((endpointConfiguration == EndpointConfiguration.BasicHttpBinding_IAgenceWebServices)) {
                return new System.ServiceModel.EndpointAddress("http://localhost:55775/AgenceWebServices.svc/soap");
            }
            throw new System.InvalidOperationException(string.Format("Could not find endpoint with name \'{0}\'.", endpointConfiguration));
        }

        private static System.ServiceModel.Channels.Binding GetDefaultBinding() {
            return AgenceWebServicesClient.GetBindingForEndpoint(EndpointConfiguration.BasicHttpBinding_IAgenceWebServices);
        }

        private static System.ServiceModel.EndpointAddress GetDefaultEndpointAddress() {
            return AgenceWebServicesClient.GetEndpointAddress(EndpointConfiguration.BasicHttpBinding_IAgenceWebServices);
        }

        public enum EndpointConfiguration {

            BasicHttpBinding_IAgenceWebServices,
        }
    }
}


text:
package eu.scape_project.arc2warc;

import eu.scape_project.arc2warc.cli.Arc2WarcMigrationConfig;
import eu.scape_project.arc2warc.cli.Arc2WarcMigrationOptions;
import eu.scape_project.hawarp.utils.RegexUtils;
import org.apache.commons.cli.CommandLine;
import org.apache.commons.cli.CommandLineParser;
import org.apache.commons.cli.ParseException;
import org.apache.commons.cli.PosixParser;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.apache.hadoop.conf.Configuration;
import org.apache.hadoop.util.GenericOptionsParser;

import java.io.File;
import java.io.FileNotFoundException;
import java.io.IOException;

/**
 * ARC to WARC conversion.
 *
 * @author Sven Schlarb <https://github.com/shsdev>
 */
public class Arc2WarcMigration {

    private static final Log LOG = LogFactory.getLog(Arc2WarcMigration.class);

    private static Arc2WarcMigrationConfig config;

    public Arc2WarcMigration() {
    }

    public static Arc2WarcMigrationConfig getConfig() {
        return config;
    }

    /**
     * Main entry point.
     *
     * @param args
     * @throws java.io.IOException
     * @throws org.apache.commons.cli.ParseException
     */
    public static void main(String[] args) throws IOException, ParseException {
        Configuration conf = new Configuration();
        // Command line interface
        config = new Arc2WarcMigrationConfig();
        CommandLineParser cmdParser = new PosixParser();
        GenericOptionsParser gop = new GenericOptionsParser(conf, args);
        Arc2WarcMigrationOptions a2wopt = new Arc2WarcMigrationOptions();
        CommandLine cmd = cmdParser.parse(a2wopt.options, gop.getRemainingArgs());
        if ((args.length == 0) || (cmd.hasOption(a2wopt.HELP_OPT))) {
            a2wopt.exit("Help", 0);
        } else {
            a2wopt.initOptions(cmd, config);
        }
        Arc2WarcMigration a2wm = new Arc2WarcMigration();
        long startMillis = System.currentTimeMillis();
        File input = new File(config.getInputStr());

        if(input.isDirectory()) {
            config.setDirectoryInput(true);
            a2wm.traverseDir(input);
        } else {
            migrate(input);
        }
        long elapsedTimeMillis = System.currentTimeMillis() - startMillis;
        LOG.info("Processing time (sec): " + elapsedTimeMillis / 1000F);
        System.exit(0);
    }

    /**
     * Traverse the root directory recursively
     *
     * @param dirStructItem Root directory
     * @throws FileNotFoundException
     * @throws IOException
     */
    private void traverseDir(File dirStructItem) {
        if (dirStructItem.isDirectory()) {
            String[] children = dirStructItem.list();
            for (String child : children) {
                traverseDir(new File(dirStructItem, child));
            }
        } else {
            String filePath = dirStructItem.getAbsolutePath();
            if (RegexUtils.pathMatchesRegexFilter(filePath, config.getInputPathRegexFilter())) {
                migrate(dirStructItem);
            }
        }
    }

    private static void migrate(File dirStructItem) {
        //first do normal migration.
        File output = new File(config.getOutputStr(),
                dirStructItem.getName()
                             .replaceAll("\\.arc(.gz)?$", config.createCompressedWarc() ? ".warc.gz" : ".warc"));
        ArcMigrator arcMigrator = new ArcMigrator(config, dirStructItem, output, false);
        arcMigrator.migrateArcFile();

        if (dirStructItem.getName().contains("-metadata-")){
            //then make a special deduplication arc file
            output = new File(config.getOutputStr(),
                    output.getName().replace("-metadata-","-duplications-"));
            arcMigrator = new ArcMigrator(config, dirStructItem, output,true);
            arcMigrator.migrateArcFile();

        }
    }
}

redpajama_set_name: RedPajamaGithub


text:
[jvm]
Content
open override fun [getTypeName](get-type-name.md)(): [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)


text:
// Copyright (c) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.

using System;
using System.Runtime.InteropServices;

namespace MICore
{
    internal class LinuxNativeMethods
    {
        private const string Libc = "libc";

        [DllImport(Libc, EntryPoint = "kill", SetLastError = true)]
        internal static extern int Kill(int pid, int mode);

        [DllImport(Libc, EntryPoint = "mkfifo", SetLastError = true)]
        internal static extern int MkFifo(string name, int mode);

        [DllImport(Libc, EntryPoint = "geteuid", SetLastError = true)]
        internal static extern uint GetEUid();
    }
}


text:
namespace ExRam.Gremlinq.Core.ExpressionParsing
{
    internal readonly struct GremlinExpression : IEquatable<GremlinExpression>
    {
        public static readonly GremlinExpression True = new(ExpressionFragment.True, default, EqualsExpressionSemantics.Instance, ExpressionFragment.True);
        public static readonly GremlinExpression False = new(ExpressionFragment.True, default, EqualsExpressionSemantics.Instance, ExpressionFragment.False);

        public GremlinExpression(ExpressionFragment left, WellKnownMember? leftWellKnownMember, ExpressionSemantics semantics, ExpressionFragment right)
        {
            if (left.Type != ExpressionFragmentType.Parameter && right.Type == ExpressionFragmentType.Parameter)
            {
                if (leftWellKnownMember != null)
                    throw new ExpressionNotSupportedException();

                Left = right;
                Semantics = semantics.Flip();
                Right = left;
            }
            else
            {
                Left = left;
                Right = right;
                Semantics = semantics;
            }

            LeftWellKnownMember = leftWellKnownMember ?? Left.Expression?.TryGetWellKnownMember();
        }

        public bool Equals(GremlinExpression other) => Left.Equals(other.Left) && Right.Equals(other.Right) && Semantics == other.Semantics;

        public override bool Equals(object? obj) => obj is GremlinExpression other && Equals(other);

        public override int GetHashCode()
        {
            unchecked
            {
                var hashCode = Left.GetHashCode();
                hashCode = (hashCode * 397) ^ Right.GetHashCode();
                hashCode = (hashCode * 397) ^ Semantics.GetHashCode();
                return hashCode;
            }
        }

        public ExpressionFragment Left { get; }
        public ExpressionFragment Right { get; }
        public ExpressionSemantics Semantics { get; }
        public WellKnownMember? LeftWellKnownMember { get; }
    }
}


text:
require 'aws-sdk-core'
require 'aws-sigv4'

require_relative 'aws-sdk-devopsguru/types'
require_relative 'aws-sdk-devopsguru/client_api'
require_relative 'aws-sdk-devopsguru/plugins/endpoints.rb'
require_relative 'aws-sdk-devopsguru/client'
require_relative 'aws-sdk-devopsguru/errors'
require_relative 'aws-sdk-devopsguru/resource'
require_relative 'aws-sdk-devopsguru/endpoint_parameters'
require_relative 'aws-sdk-devopsguru/endpoint_provider'
require_relative 'aws-sdk-devopsguru/endpoints'
require_relative 'aws-sdk-devopsguru/customizations'

# This module provides support for Amazon DevOps Guru. This module is available in the
# `aws-sdk-devopsguru` gem.
#
# # Client
#
# The {Client} class provides one method for each API operation. Operation
# methods each accept a hash of request parameters and return a response
# structure.
#
#     dev_ops_guru = Aws::DevOpsGuru::Client.new
#     resp = dev_ops_guru.add_notification_channel(params)
#
# See {Client} for more information.
#
# # Errors
#
# Errors returned from Amazon DevOps Guru are defined in the
# {Errors} module and all extend {Errors::ServiceError}.
#
#     begin
#       # do stuff
#     rescue Aws::DevOpsGuru::Errors::ServiceError
#       # rescues all Amazon DevOps Guru API errors
#     end
#
# See {Errors} for more information.
#
# @!group service
module Aws::DevOpsGuru

  GEM_VERSION = '1.27.0'

end


text:
package com.vladmihalcea.book.hpjp.hibernate.fetching;

import com.vladmihalcea.book.hpjp.util.AbstractPostgreSQLIntegrationTest;
import org.hibernate.LazyInitializationException;
import org.junit.Test;

import jakarta.persistence.*;
import java.util.List;

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

/**
 * @author Vlad Mihalcea
 */
public class LazyInitializationExceptionTest extends AbstractPostgreSQLIntegrationTest {

    @Override
    protected Class<?>[] entities() {
        return new Class<?>[]{
            Post.class,
            PostComment.class,
        };
    }

    private String review = "Excellent!";

    @Override
    protected void afterInit() {
        doInJPA(entityManager -> {
            for (long i = 1; i < 4; i++) {
                Post post = new Post();
                post.setId(i);
                post.setTitle(String.format("Post nr. %d", i));
                entityManager.persist(post);

                PostComment comment = new PostComment();
                comment.setId(i);
                comment.setPost(post);
                comment.setReview(review);
                entityManager.persist(comment);
            }
        });
    }

    @Test
    public void testNPlusOne() {

        List<PostComment> comments = null;

        EntityManager entityManager = null;
        EntityTransaction transaction = null;
        try {
            entityManager = entityManagerFactory().createEntityManager();
            transaction = entityManager.getTransaction();
            transaction.begin();

            comments = entityManager.createQuery(
                "select pc " +
                "from PostComment pc " +
                "where pc.review = :review", PostComment.class)
            .setParameter("review", review)
            .getResultList();

            transaction.commit();
        } catch (Throwable e) {
            if ( transaction != null && transaction.isActive())
                transaction.rollback();
            throw e;
        } finally {
            if (entityManager != null) {
                entityManager.close();
            }
        }
        try {
            for(PostComment comment : comments) {
                LOGGER.info("The post title is '{}'", comment.getPost().getTitle());
            }
        } catch (LazyInitializationException expected) {
            assertTrue(expected.getMessage().contains("could not initialize proxy"));
        }
    }

    @Test
    public void testNPlusOneSimplified() {

        List<PostComment> comments = doInJPA(entityManager -> {
            return entityManager.createQuery("""
                select pc
                from PostComment pc
                where pc.review = :review""", PostComment.class)
            .setParameter("review", review)
            .getResultList();
        });

        try {
            for(PostComment comment : comments) {
                LOGGER.info("The post title is '{}'", comment.getPost().getTitle());
            }
        } catch (LazyInitializationException expected) {
            assertTrue(expected.getMessage().contains("could not initialize proxy"));
        }
    }

    @Entity(name = "Post")
    @Table(name = "post")
    public static class Post {

        @Id
        private Long id;

        private String title;

        public Post() {
        }

        public Post(Long id) {
            this.id = id;
        }

        public Post(String title) {
            this.title = title;
        }

        public Long getId() {
            return id;
        }

        public void setId(Long id) {
            this.id = id;
        }

        public String getTitle() {
            return title;
        }

        public void setTitle(String title) {
            this.title = title;
        }
    }

    @Entity(name = "PostComment")
    @Table(name = "post_comment")
    public static class PostComment {

        @Id
        private Long id;

        @ManyToOne(fetch = FetchType.LAZY)
        private Post post;

        private String review;

        public PostComment() {
        }

        public PostComment(String review) {
            this.review = review;
        }

        public Long getId() {
            return id;
        }

        public void setId(Long id) {
            this.id = id;
        }

        public Post getPost() {
            return post;
        }

        public void setPost(Post post) {
            this.post = post;
        }

        public String getReview() {
            return review;
        }

        public void setReview(String review) {
            this.review = review;
        }
    }
}


text:
package org.apache.cassandra.utils;

import java.net.InetAddress;
import java.time.LocalDate;
import java.time.format.DateTimeFormatter;
import java.util.UUID;
import java.util.concurrent.*;
import java.util.concurrent.atomic.AtomicLong;

import com.google.common.annotations.VisibleForTesting;
import com.google.common.base.Preconditions;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import org.apache.cassandra.concurrent.NamedThreadFactory;
import org.apache.cassandra.config.CFMetaData;
import org.apache.cassandra.db.*;
import org.apache.cassandra.net.MessageOut;
import org.apache.cassandra.net.MessagingService;

/**
 * Provides a means to take snapshots when triggered by anomalous events or when the breaking of invariants is
 * detected. When debugging certain classes of problems, having access to the relevant set of sstables when the problem
 * is detected (or as close to then as possible) can be invaluable.
 *
 * This class performs two functions; on a replica where an anomaly is detected, it provides methods to issue snapshot
 * requests to a provided set of replicas. For instance, if rows with duplicate clusterings are detected
 * (CASSANDRA-15789) during a read, a snapshot request will be issued to all participating replicas. If detected during
 * compaction, only the replica itself will receive the request. Requests are issued at a maximum rate of 1 per minute
 * for any given table. Any additional triggers for the same table during the 60 second window are dropped, regardless
 * of the replica set. This window is configurable via a system property (cassandra.diagnostic_snapshot_interval_nanos),
 * but this is intended for use in testing only and operators are not expected to override the default.
 *
 * The second function performed is to handle snapshot requests on replicas. Snapshot names are prefixed with strings
 * specific to the reason which triggered them. To manage consumption of disk space, replicas are restricted to taking
 * a single snapshot for each prefix in a single calendar day. So if duplicate rows are detected by multiple
 * coordinators during reads with the same replica set (or overlapping sets) on the same table, the coordinators may
 * each issue snapshot  requests, but the replicas will only accept the first one they receive. Further requests will
 * be dropped on the replica side.
 */
public class DiagnosticSnapshotService
{
    private static final Logger logger = LoggerFactory.getLogger(DiagnosticSnapshotService.class);

    public static final DiagnosticSnapshotService instance =
        new DiagnosticSnapshotService(Executors.newSingleThreadExecutor(new NamedThreadFactory("DiagnosticSnapshot")));

    public static final String DUPLICATE_ROWS_DETECTED_SNAPSHOT_PREFIX = "DuplicateRows-";

    private final Executor executor;

    private DiagnosticSnapshotService(Executor executor)
    {
        this.executor = executor;
    }

    // Issue at most 1 snapshot request per minute for any given table.
    // Replicas will only create one snapshot per day, but this stops us
    // from swamping the network.
    // Overridable via system property for testing.
    private static final long SNAPSHOT_INTERVAL_NANOS = TimeUnit.MINUTES.toNanos(1);
    private static final DateTimeFormatter DATE_FORMAT = DateTimeFormatter.BASIC_ISO_DATE;
    private final ConcurrentHashMap<UUID, AtomicLong> lastSnapshotTimes = new ConcurrentHashMap<>();

    public static void duplicateRows(CFMetaData metadata, Iterable<InetAddress> replicas)
    {
        instance.maybeTriggerSnapshot(metadata, DUPLICATE_ROWS_DETECTED_SNAPSHOT_PREFIX, replicas);
    }

    public static boolean isDiagnosticSnapshotRequest(SnapshotCommand command)
    {
        return command.snapshot_name.startsWith(DUPLICATE_ROWS_DETECTED_SNAPSHOT_PREFIX);
    }

    public static void snapshot(SnapshotCommand command, InetAddress initiator)
    {
        Preconditions.checkArgument(isDiagnosticSnapshotRequest(command));
        instance.maybeSnapshot(command, initiator);
    }

    public static String getSnapshotName(String prefix)
    {
        return String.format("%s%s", prefix, DATE_FORMAT.format(LocalDate.now()));
    }

    @VisibleForTesting
    public void shutdownAndWait(long timeout, TimeUnit unit) throws InterruptedException, TimeoutException
    {
        ExecutorUtils.shutdownNowAndWait(timeout, unit, executor);
    }

    private void maybeTriggerSnapshot(CFMetaData metadata, String prefix, Iterable<InetAddress> endpoints)
    {
        long now = System.nanoTime();
        AtomicLong cached = lastSnapshotTimes.computeIfAbsent(metadata.cfId, u -> new AtomicLong(0));
        long last = cached.get();
        long interval = Long.getLong("cassandra.diagnostic_snapshot_interval_nanos", SNAPSHOT_INTERVAL_NANOS);
        if (now - last > interval && cached.compareAndSet(last, now))
        {
            MessageOut<?> msg = new SnapshotCommand(metadata.ksName,
                                                    metadata.cfName,
                                                    getSnapshotName(prefix),
                                                    false).createMessage();
            for (InetAddress replica : endpoints)
                MessagingService.instance().sendOneWay(msg, replica);
        }
        else
        {
            logger.debug("Diagnostic snapshot request dropped due to throttling");
        }
    }

    private void maybeSnapshot(SnapshotCommand command, InetAddress initiator)
    {
        executor.execute(new DiagnosticSnapshotTask(command, initiator));
    }

    private static class DiagnosticSnapshotTask implements Runnable
    {
        final SnapshotCommand command;
        final InetAddress from;

        DiagnosticSnapshotTask(SnapshotCommand command, InetAddress from)
        {
            this.command = command;
            this.from = from;
        }

        public void run()
        {
            try
            {
                Keyspace ks = Keyspace.open(command.keyspace);
                if (ks == null)
                {
                    logger.info("Snapshot request received from {} for {}.{} but keyspace not found",
                                from,
                                command.keyspace,
                                command.column_family);
                    return;
                }

                ColumnFamilyStore cfs = ks.getColumnFamilyStore(command.column_family);
                if (cfs.snapshotExists(command.snapshot_name))
                {
                    logger.info("Received diagnostic snapshot request from {} for {}.{}, " +
                                "but snapshot with tag {} already exists",
                                from,
                                command.keyspace,
                                command.column_family,
                                command.snapshot_name);
                    return;
                }
                logger.info("Creating snapshot requested by {} of {}.{} tag: {}",
                            from,
                            command.keyspace,
                            command.column_family,
                            command.snapshot_name);
                cfs.snapshot(command.snapshot_name);
            }
            catch (IllegalArgumentException e)
            {
                logger.warn("Snapshot request received from {} for {}.{} but CFS not found",
                            from,
                            command.keyspace,
                            command.column_family);
            }
        }
    }
}


text:
package org.agorava.linkedin.jackson;

import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.core.JsonParser;
import com.fasterxml.jackson.core.JsonProcessingException;
import com.fasterxml.jackson.core.type.TypeReference;
import com.fasterxml.jackson.databind.DeserializationContext;
import com.fasterxml.jackson.databind.JsonDeserializer;
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import org.agorava.linkedin.model.CodeAndName;
import org.agorava.linkedin.model.Company.CompanyLocation;

import java.io.IOException;
import java.util.List;

/**
 * @author Antoine Sabot-Durand
 */
@JsonIgnoreProperties(ignoreUnknown = true)
abstract class CompanyMixin extends LinkedInObjectMixin {

    @JsonCreator
    CompanyMixin(@JsonProperty("id") int id, @JsonProperty("name") String name) {
    }

    @JsonProperty("industry")
    String industry;

    @JsonProperty("size")
    String size;

    @JsonProperty("type")
    String type;

    @JsonProperty
    String blogRssUrl;

    @JsonProperty
    CodeAndName companyType;

    @JsonProperty
    String description;

    @JsonProperty
    @JsonDeserialize(using = StringListDeserializer.class)
    List<String> emailDomains;

    @JsonProperty
    CodeAndName employeeCountRange;

    @JsonProperty
    int foundedYear;

    @JsonProperty
    @JsonDeserialize(using = CompanyLocationListDeserializer.class)
    List<CompanyLocation> locations;

    @JsonProperty
    String logoUrl;

    @JsonProperty
    int numFollowers;

    @JsonProperty
    @JsonDeserialize(using = StringListDeserializer.class)
    List<String> specialties;

    @JsonProperty
    String squareLogoUrl;

    @JsonProperty
    CodeAndName status;

    @JsonProperty
    CodeAndName stockExchange;

    @JsonProperty
    String ticker;

    @JsonProperty
    String twitterId;

    @JsonProperty
    String universalName;

    @JsonProperty
    String websiteUrl;

    private static final class CompanyLocationListDeserializer extends JsonDeserializer<List<CompanyLocation>> {
        public List<CompanyLocation> deserialize(JsonParser jp, DeserializationContext ctxt) throws IOException,
                JsonProcessingException {
            return DeserializationUtils.deserializeFromDataNode(jp, ctxt, "values", new TypeReference<List<CompanyLocation>>() {
            });
        }
    }

}


text:
import sys
import os
from setuptools import setup, Command

with open('VERSION', 'r') as v:
    __version__ = v.read().rstrip()

class Tox(Command):

    user_options = []

    def initialize_options(self):
        pass

    def finalize_options(self):
        pass

    @classmethod
    def run(cls):
        import tox
        sys.exit(tox.cmdline([]))

test_require = ['tox', 'mock']
if sys.version_info < (2, 7):
    test_require.append('unittest2')

here = os.path.abspath(os.path.dirname(__file__))

with open(os.path.join(here, 'README.rst')) as f:
    README = f.read()

setup(
    name="kafka-python",
    version=__version__,

    tests_require=test_require,
    cmdclass={"test": Tox},

    packages=[
        "kafka",
        "kafka.consumer",
        "kafka.partitioner",
        "kafka.producer",
    ],

    author="David Arthur",
    author_email="mumrah@gmail.com",
    url="https://github.com/mumrah/kafka-python",
    license="Apache License 2.0",
    description="Pure Python client for Apache Kafka",
    long_description=README,
    keywords="apache kafka",
    install_requires=['six'],
    classifiers=[
        "Development Status :: 4 - Beta",
        "Intended Audience :: Developers",
        "License :: OSI Approved :: Apache Software License",
        "Programming Language :: Python",
        "Programming Language :: Python :: 2",
        "Programming Language :: Python :: 2.6",
        "Programming Language :: Python :: 2.7",
        "Programming Language :: Python :: 3",
        "Programming Language :: Python :: 3.3",
        "Programming Language :: Python :: 3.4",
        "Programming Language :: Python :: Implementation :: PyPy",
        "Topic :: Software Development :: Libraries :: Python Modules",
    ]
)


text:
import os
import unittest
from selenium import webdriver
from selenium.webdriver.common.keys import Keys
from selenium.webdriver.support.ui import Select

class NewVisitorTest(unittest.TestCase):
    def setUp(self):
        self.url = 'http://localhost:8000/checkin/'
        fp = webdriver.FirefoxProfile()
        if os.getenv('DISABLE_COOKIES'):
            fp.set_preference('network.cookie.cookieBehavior', 2)
        self.browser = webdriver.Firefox(firefox_profile=fp)
        self.browser.implicitly_wait(3)
        self.browser.get(self.url)

    def tearDown(self):
        self.browser.quit()

    def fill_device_details(self):
        self.browser.find_element_by_id('id_username').send_keys('username')
        self.browser.find_element_by_id('id_password').send_keys('password')
        self.browser.find_element_by_id("id_pop").send_keys("/tmp/image.png")

    def fill_checklist(self):
        btn = self.browser.find_element_by_class_name('btn-default')
        btn.click()
        btn = self.browser.find_element_by_class_name('btn-default')
        btn.click()
        btn = self.browser.find_element_by_class_name('btn-default')
        btn.click()

    def fill_problem_description(self):
        problem_field = self.browser.find_element_by_id('id_issue_description')
        problem_field.send_keys("Mary had a little lamb")
        self.browser.find_element_by_id("id_pop").send_keys("/tmp/image.png")

    def fill_contact_fields(self):
        field = self.browser.find_element_by_id('id_fname')
        field.send_keys('Firstname')
        field = self.browser.find_element_by_id('id_lname')
        field.send_keys('Lastname')
        field = self.browser.find_element_by_id('id_email')
        field.send_keys('user@example.com')
        field = self.browser.find_element_by_id('id_phone')
        field.send_keys('123456789')
        field = self.browser.find_element_by_id('id_city')
        field.send_keys('City')
        field = self.browser.find_element_by_id('id_postal_code')
        field.send_keys('00100')
        field = self.browser.find_element_by_id('id_address')
        field.send_keys('Somestreet 1')
        field = self.browser.find_element_by_id('id_agree_to_terms')
        field.click()

    def _test_visitor_can_check_status(self):
        btn = self.browser.find_element_by_class_name('btn-default')
        btn.click()
        field = self.browser.find_element_by_id('id_code')
        field.send_keys("12019537")
        field.send_keys(Keys.ENTER)
        self.assertEqual("Repair Status", self.browser.title)

    def _test_can_checkin_wo_sn(self):
        self.browser.find_element_by_class_name('btn-primary').click()
        # customer has no serial number, chooses device
        self.browser.find_element_by_id('id_choose_device').click()
        self.browser.find_element_by_id('id_macbookpro').click()
        self.fill_device_details()
        self.next()
        self.fill_problem_description()
        self.next()
        #self.fill_checklist()
        #self.next()
        self.fill_contact_fields()
        # Submit the repair
        self.next()
        # Check that it actually worked
        btn = self.browser.find_element_by_class_name('btn-large')
        self.assertEqual(btn.text, 'Print')

    def test_can_checkin_sn(self):
        # Customer logs in to check-in
        if os.getenv('CHECKIN_DISABLED'):
            self.assertIn('An error occurred', self.browser.title)
            return

        self.assertIn('Service Order', self.browser.title)

        # customer checks warranty status...
        snfield = self.browser.find_element_by_id('id_sn')
        snfield.send_keys('C02GV550DJWV')
        snfield.send_keys(Keys.ENTER)
        self.fill_device_details()

        # ... enters problem description
        self.fill_problem_description()

        # Customer fills out her contact details
        self.fill_contact_fields()

        # Customer fills in the condition
        field = self.browser.find_element_by_id('id_condition')
        field.send_keys('Like new')

        # Employee puts order in non-default queue
        select = Select(self.browser.find_element_by_id('id_queue'))
        select.select_by_index(1)

        # Submit the repair
        submit_button = self.browser.find_element_by_id('id_btn_submit')
        submit_button.click()

        # Check that it actually worked
        btn = self.browser.find_element_by_class_name('btn-large')
        self.assertEqual(btn.text, 'Skapa ny')

if __name__ == '__main__':
    unittest.main()


text:
title:  Podnety na zamyslenie
date:  31/12/2021
---

Teológ David A. deSilva veľmi jasne vysvetľuje, prečo prví kresťania prežívali prenasledovanie: "Kresťania si osvojili životný štýl, ktorý ... mohli ostatní vnímať ako nespoločenský či dokonca podvratný. Vernosť bohom prejavená nábožnou účasťou na obradoch bola vnímaná ako symbol vernosti štátu, vodcom, priateľom a rodine. Uctievanie božstiev predstavovalo úctu k vzťahom, ktoré zaručovali pevnosť a prosperitu spoločnosti. Tým, že sa kresťania (podobne ako Židia) takýchto obradov nezúčastňovali, okolie sa na nich pozeralo podozrievavo a vnímalo ich ako potenciálnych priestupníkov zákonov a podvratné živly." (Perseverance in Gratitude. Grand Rapids, MI: Eerdmans Publishing Company, 2000, str. 12.)

"Spoľahlivým liekom pre skľúčených je viera, modlitba a práca. Viera a práca prinášajú istotu a uspokojenie, čo zo dňa na deň porastie. Máte obavu, že podľahnete tiesnivým predtuchám alebo skľúčenosti? Ani v najtemnejších chvíľach, keď sa vám všetko zdá odporné a odpudzujúce, nepodliehajte strachu. Verte v Boha, on vie o vašej biede. Má všetku moc. Jeho nekonečná láska a dobrota neochabuje. Neobávajte sa, že svoje zasľúbenia nesplní. Boh je večná pravda. Svoju zmluvu s tými, ktorí ho milujú, nikdy nezmení. Svojim verným služobníkom dá toľko sily, koľko potrebujú. Apoštol Pavol to dosvedčuje: On mi povedal: Stačí ti moja milosť, lebo sila sa dokonale prejavuje v slabosti... Preto mám záľubu v slabostiach, v potupe, v núdzi, v prenasledovaní a v úzkostiach pre Krista, lebo keď som slabý, vtedy som silný. (2Kor 12,9.10)" (PP 164.165; PP /sk/ 88)

**Námety na spoločné uvažovanie**

`Je možné, aby nás síce ostatní vnímali ako "iných", ale zároveň nás neobviňovali z "oddeľovania sa" od ostatných a z ľahostajnosti? Ak áno, ako?`

`Slovo "výzva" či "napomenutie" odkazuje v Písme buď na pokarhanie alebo povzbudenie. Aký postoj by sme mali zaujať k tým, ktorí sú malomyseľní?`

`Akú podobnosť môžeme nájsť medzi skúsenosťou čitateľov Listu Hebrejom a skúsenosťou zboru v Laodicei zo Zjavenia 3,14–22? V čom sa naša vlastná skúsenosť podobá ich skúsenosti? Čo sa z tejto podobnosti môžeme naučiť?`

Západ slnka: 15.54

---

#### Dodatečné otázky k diskuzi

`Co nového jsi objevil během svého soukromého studia lekce i Bible?`

`Zaujalo tě něco na situaci prvních křesťanů? Co a proč?`

`V čem se křesťanský životní styl může jevit jiným lidem jako nespolečenský?`

`Kdyby sis od Boha mohl přát něco, co by ti v budoucnu pomohlo obstát a vyhnout se malomyslnosti, co by to bylo?`

`Čím tě dnes obohatila naše diskuze?`


text:
from __future__ import absolute_import

import json
import six

from uuid import uuid4

from django.core.urlresolvers import reverse

from sentry.models import Relay
from sentry.testutils import APITestCase

from semaphore import generate_key_pair

class RelayQueryGetProjectConfigTest(APITestCase):
    def setUp(self):
        super(RelayQueryGetProjectConfigTest, self).setUp()

        self.key_pair = generate_key_pair()

        self.public_key = self.key_pair[1]
        self.private_key = self.key_pair[0]
        self.relay_id = six.binary_type(uuid4())

        self.relay = Relay.objects.create(
            relay_id=self.relay_id,
            public_key=six.binary_type(self.public_key),
            is_internal=True
        )

        self.project = self.create_project()
        self.path = reverse(
            'sentry-api-0-relay-projectconfigs'
        )

    def test_get_project_config(self):
        projects = [six.text_type(self.project.id)]
        raw_json, signature = self.private_key.pack({'projects': projects})

        resp = self.client.post(
            self.path,
            data=raw_json,
            content_type='application/json',
            HTTP_X_SENTRY_RELAY_ID=self.relay_id,
            HTTP_X_SENTRY_RELAY_SIGNATURE=signature,
        )

        result = json.loads(resp.content)
        cfg = result['configs'][six.text_type(self.project.id)]
        assert not cfg['disabled']
        assert cfg['publicKeys'][self.projectkey.public_key] is True
        assert cfg['slug'] == self.project.slug
        assert cfg['config']['trustedRelays'] == []


text:
#import <Foundation/Foundation.h>

@class ANHexWrapper, ANFirmwareUpdateService, ANFirmwareUpdateManager;

typedef NS_ENUM(NSUInteger, ANUpdateStage) {
    ANUpdateStageNotActive,
    ANUpdateStageDownloadFirmware,
    ANUpdateStageEraseStagingArea,
    ANUpdateStageTransmitCodeBlocks,
    ANUpdateStageReadCRC,
    ANUpdateStageStartFWUpdate,
    ANUpdateStageCanceled,
    ANUpdateStagePause,
    ANUpdateStageContinue,
};

@protocol ANFirmwareUpdateDelegate <NSObject>

- manager:(ANFirmwareUpdateManager *)manager didMoveToStage:(ANUpdateStage)stage;
- manager:(ANFirmwareUpdateManager *)manager didFailWithError:(NSError *)error;

@end

@interface ANFirmwareUpdateManager : NSObject

@property (nonatomic, weak) id <ANFirmwareUpdateDelegate>    delegate;
@property (nonatomic, readonly) ANUpdateStage               stage;
@property (nonatomic, readonly) UInt16                      currentIndex;
@property (nonatomic, strong)   ANHexWrapper *              hexWrapper;

@property (nonatomic, strong)   ANFirmwareUpdateService *   service;
@property (nonatomic, copy)     UpdateLog                   updateLog;
@property (nonatomic, copy)     UpdateComplite              updateCompliteHandler;

@property (nonatomic, strong) NSDictionary *updateInfo;
@property BOOL updateInProgress;

- (instancetype)initWithService:(ANFirmwareUpdateService *)service;
- (void)cancelUpdate;
- (void)pauseUpdate;
- (void)continueUpdate;

- (void)checkUpdateExists:(NSString *)firmwareVersion completionHandler:(CheckUpdateBlock)completionHandler;
- (void)downloadUpdateWithProgressHandler:(ProgressBlock)progressHandler completionHandler:(SimpleSuccessBlock)completionHandler;
- (void)transferAndVerifyUpdateDataWithProgressHandler:(ProgressBlock)progressHandler completionHandler:(SimpleSuccessBlock)completionHandler recover:(BOOL)recover;
- (void)continueFromCurrentState;
- (void)updateBracelet;
- (void)deviceDisconnected;

@end


text:
import * as XrmMock from "../xrm-mock/index";
import Context from "./context";
import FormContext from "./formcontext";
import Ui from "./ui";

export default class EventContext {
  public static Context: Context = new Context();
  public static FormContext: FormContext = new FormContext();

  public static createEventContext(entity?: XrmMock.IEntityComponents, context?: Xrm.GlobalContext, formContext?: Xrm.FormContext,
                                   ui?: XrmMock.IUiComponents, process?: Xrm.ProcessFlow.ProcessManager): XrmMock.EventContextMock {
    const eventContext = new XrmMock.EventContextMock({
      context: context || Context.createContext(),
      formContext: formContext || FormContext.createFormContext(entity, ui, process),
    });
    return eventContext;
  }
}


text:
cask 'jdownloader' do
  version :latest
  sha256 :no_check

  if MacOS.version <= :snow_leopard
    url 'http://installer.jdownloader.org/clean/JD2Setup_10_6_or_lower.dmg',
        user_agent: :fake
  else
    url 'http://installer.jdownloader.org/clean/JD2Setup.dmg',
        user_agent: :fake
  end

  name 'JDownloader 2'
  homepage 'http://jdownloader.org/'

  auto_updates true

  preflight do
    system_command "#{staged_path}/JDownloader Installer.app/Contents/MacOS/JavaApplicationStub",
                   args:         [
                                   '-dir', staged_path.to_s,
                                   '-q',
                                   '-Dinstall4j.suppressStdout=true',
                                   '-Dinstall4j.debug=false',
                                   '-VcreateDesktopLinkAction\$Boolean=false',
                                   '-VaddToDockAction\$Boolean=false'
                                 ],
                   print_stderr: false
  end

  uninstall delete: '/Applications/JDownloader2.app'

  caveats do
    depends_on_java
  end
end


text:
package com.google.android.testing.nativedriver.server;

import android.view.View;

/**
 * Represents a sequence of {@code ViewElementType}, and uses the sequence to
 * wrap {@code View}s. The "best" {@code ViewElementType} is used to wrap each
 * {@code View} by trying each {@code ViewElementType} in order and using the
 * first one that supports the {@code View}.
 *
 * @author Matt DeVore
 */
public class ViewElementFactory {
  private ViewElementType[] types;

  /**
   * Constructs a new instance using the given {@code ViewElementType}s.
   */
  public ViewElementFactory(ViewElementType... types) {
    this.types = types.clone();
  }

  private static final ViewElementFactory INSTANCE = new ViewElementFactory(
      EditTextElement.TYPE,
      TextViewElement.TYPE,
      ViewGroupElement.TYPE,
      ViewElement.TYPE);

  /**
   * Returns the default instance of {@code ViewElementFactory} that contains
   * all supported view types.
   */
  public static ViewElementFactory getDefaultInstance() {
    return INSTANCE;
  }

  /**
   * Finds the first type that supports the given {@code View} and wraps it in
   * a new instance of the supporting type. This is done using the
   * {@code ViewElementType}s passed to the constructor.
   *
   * @throw IllegalArgumentException if no type supports the given
   *        {@code View}
   */
  public ViewElement<?> newViewElement(ElementContext context, View view) {
    for (ViewElementType viewElementType : types) {
      if (viewElementType.supportsView(view)) {
        return viewElementType.newInstance(context, view);
      }
    }

    throw new IllegalArgumentException(
        "Could not find a ViewElement type that supports View: " + view);
  }
}


text:
license: >
    Licensed to the Apache Software Foundation (ASF) under one
    or more contributor license agreements.  See the NOTICE file
    distributed with this work for additional information
    regarding copyright ownership.  The ASF licenses this file
    to you under the Apache License, Version 2.0 (the
    "License"); you may not use this file except in compliance
    with the License.  You may obtain a copy of the License at

        http://www.apache.org/licenses/LICENSE-2.0

    Unless required by applicable law or agreed to in writing,
    software distributed under the License is distributed on an
    "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
    KIND, either express or implied.  See the License for the
    specific language governing permissions and limitations
    under the License.
---

# Файл config.xml

Многие аспекты поведения приложения могут контролироваться с помощью глобального конфигурационного файла `config.xml`. Этот платформо-зависимый XML-файл основан на спецификации W3C [Упакованые веб-приложения (Packaged Web Apps)][1] и расширен для указаниях основных функций Cordova API, плагинов и настроек специфичных для платформы.

 [1]: http://www.w3.org/TR/widgets/

Для проектов, созданных с использованием Cordova CLI (описанном в разделе Интерфейс командной строки) этот файл можно найти в директории верхнего уровня:

        app/config.xml

Обратите внимание, что до версии 3.3.1-0.2.0, файл располагался в `app/www/config.xml`, и что размещение файла в этом месте по-прежнему поддерживается.

При использовании командной строки для построения проекта, версии этого файла копируются без изменений в различные подкаталоги `platforms/`, например:

        app/platforms/ios/AppName/config.xml
        app/platforms/blackberry10/www/config.xml
        app/platforms/android/res/xml/config.xml

Этот раздел описывает параметры глобальной и кросс платформенной конфигурации. В следующих разделах для платформо-зависимых параметров:

*   Конфигурация iOS
*   Конфигурация Android
*   Конфигурации BlackBerry 10

В дополнение к различным конфигурационным параметрам описанным ниже, можно также настроить основной набор изображений для приложения для каждой целевой платформы. Смотрите раздел Иконки и Заставки для дополнительной информации.

## Основные элементы конфигурации

Этот пример показывает значения по умолчанию в файле `config.xml` сформированном командой CLI `create`, описанной в разделе Интерфейс командной строки:

        <widget id="com.example.hello" version="0.0.1">
            <name>HelloWorld</name>
            <description>
                A sample Apache Cordova application that responds to the deviceready event.
            </description>
            <author email="dev@callback.apache.org" href="http://cordova.io">
                Apache Cordova Team
            </author>
            <content src="index.html" />
            <access origin="*" />
        </widget>

Следующие элементы конфигурации появляются в файле верхнего уровня `config.xml` и поддерживаются на всех существующих платформах Cordova:

*   Атрибут `id` элемента `<widget>` указывает идентификатор приложения в обратном формате доменных имен и атрибут `version` его полный номер версии в нотации майор/минор/патч.

*   Элемент `<name>` определяет официальное имя приложения, как он отображается на главном экране устройства и в интерфейсе магазина приложений.

*   Элементы `<description>` и `<author>` определяют метаданные и контактную информацию, которые могут отображаться в каталоге магазина приложений.

*   Необязательный элемент `<content>` определяет стартовую страницу приложения в каталоге верхнего уровня веб ресурсов. Значением по умолчанию является `index.html` , которая обычно находится в каталоге верхнего уровня `www` проекта.

*   Элементы `<access>` определяют набор внешних доменов, с которым приложение имеет право взаимодействовать. Значение по умолчанию, показанное выше позволяет осуществлять доступ к любому серверу. Смотрите раздел Руководство по разрешению доступа к доменам для подробностей.

*   Элемент `<preference>` задает различные параметры как пару атрибутов `name`/`value`. Имя каждого параметра, указанного в атрибуте `name` указывается без учета регистра. Многие параметры являются уникальными для конкретных платформ, как это указано в начале этой страницы. В следующих разделах подробно описаны настройки, которые применяются к более чем одной платформе.

## Глобальные настройки

Следующие глобальные настройки применяются для всех платформ:

*   `Fullscreen` позволяет скрыть строку состояния в верхней части экрана. Значение по умолчанию — `false` . Пример:

        <preference name="Fullscreen" value="true" />

*   `Orientation` позволяет заблокировать поворот приложение при изменении положения устройства. Возможные значения `default`, `landscape`, или `portrait` . Пример:

        <preference name="Orientation" value="landscape" />

    **Примечание**: `default` значение означает что разрешены *обе* ориентации, альбомная и портретная. Если вы хотите использовать настройки по умолчанию для каждой платформы (обычно только для портретная ориентация), удалите этот элемент из файла `config.xml`.

## Много-платформенный настройки

Следующие параметры применяются для более чем одной платформы, но не ко всем из них:

*   `DisallowOverscroll` (логическое значение, по умолчанию `false` ): Установите в `true` если вы не хотите чтобы интерфейс отображал каких-либо обратной связи, когда пользователи прокручивают за начало или конец содержимого.

        <preference name="DisallowOverscroll" value="true"/>

    Применяется к Android и iOS. На iOS, совершение перелистывание за границу контента (overscroll) плавно возвращает положение контента назад в исходное положение. На Android это действие производит более тонкий светящийся эффект вдоль верхнего или нижнего края контента.

*   `BackgroundColor`: Задайте цвет фона приложения. Поддерживает шестнадцатеричное значение размером 4 байта, где первый байт представляющий альфа-канал и стандартные значения RGB для следующих трех байтов. В этом примере указывается голубой цвет:

        <preference name="BackgroundColor" value="0xff0000ff"/>

    Применяется к Android и BlackBerry. Переопределяет CSS, который доступен для *всех* платформ, например:`body{background-color:blue}`.

*   `HideKeyboardFormAccessoryBar`(логическое значение, по умолчанию `false` ): Установите в `true` чтобы скрыть дополнительную панель инструментов, которая появляется над клавиатурой, помогая пользователям перемещаться из одной формы ввода на другой.

        <preference name="HideKeyboardFormAccessoryBar" value="true"/>

    Применяется к iOS и BlackBerry.

## Элемент *feature*

При использовании командной строки для построения приложений, вы используете команду `plugin`, чтобы включить API устройства. Это не изменяет файл `config.xml` верхнего уровня, так что элемент `<feature>` не применяется к вашему рабочему процессу. Если вы работаете непосредственно в SDK и используете платформо-зависимый файл `config.xml` в качестве источника, вы используете элемент `<feature>`, чтобы включить API функции устройства и внешних плагинов. Эти элементы обычно присутствуют с разными значениями в платформо-зависимых файлах `config.xml`. К примеру, таким образом можно указать Device API для проектов Android:

        <feature name="Device">
            <param name="android-package" value="org.apache.cordova.device.Device" />
        </feature>

Вот как этот элемент появляется в проектах iOS:

        <feature name="Device">
            <param name="ios-package" value="CDVDevice" />
        </feature>

Смотрите подробную информацию о том, как определить каждую функции в разделе Справочник API. Также смотрите Руководство по разработке плагинов для получения дополнительной информации по плагинам.


text:
package fr.eyal.lib.data.communication.rest;

/**
 * An HTTP DELETE request.
 *
 * @author David M. Chandler
 */
public class HttpDelete extends HttpRequest {

    /**
     * Constructs an HTTP DELETE request.
     *
     * @param path Partial URL
     * @param params Name-value pairs to be appended to the URL
     */
    public HttpDelete(final String path, final ParameterMap params) {
        super(path, params);
        httpMethod = HttpRESTMethod.DELETE;
    }

}


text:
set_option(WARNINGS_LEVEL 1)
set_option(WITH_TESTING ON)
set_option(WITH_SYSTEM_INFO ON)


text:
local _M = {}
local _meta = { __index=_M }

local tableutil = require( "acid.tableutil" )
local transport = require("acid.impl.transport_ngx_http")
local storage = require("acid.impl.storage_ngx_fs")
local locking = require("acid.impl.locking_ngx")
local time = require("acid.impl.time_ngx")
local logging = require("acid.impl.logging_ngx")
local userdata = require("acid.impl.userdata")
local member = require("acid.impl.member")

tableutil.merge( _M, transport, storage, locking, time, logging, userdata, member )

function _M.new(opt)
    local e = {}
    tableutil.merge( e,
                     transport.new(opt),
                     storage.new(opt),
                     locking.new(opt),
                     time.new(opt),
                     logging.new(opt),
                     userdata.new(opt),
                     member.new(opt)
                     )
    setmetatable( e, _meta )
    return e
end

return _M


text:
package liblynx.api.registry;

import java.util.ArrayList;
import java.util.List;

public abstract class Register<T> {

    public List<T> items = new ArrayList<>();

    public void addItem(T item){
        items.add(item);
    }

    public T getItem(int id){
        return items.get(id);
    }

    public List<T> getItems(){
        return items;
    }

    public void addDefaults(){ }
}


text:
.. Copyright (c) 2016, Johan Mabille, Sylvain Corlay and Wolf Vollprecht

   Distributed under the terms of the BSD 3-Clause License.

   The full license is in the file LICENSE, distributed with this software.

xoptional_assembly_base
=======================

Defined in ``xtensor/xoptional_assembly_base.hpp``

.. doxygenclass:: xt::xoptional_assembly_base
   :project: xtensor
   :members: