reglab/housing_qa huggingface dataset:
MA Gen L ch 248 § 20 (2021)
2021 Massachusetts General Laws|Part III - Courts, Judicial Officers and Proceedings in Civil Cases|Title IV - Certain Writs and Proceedings in Special Cases|Chapter 248 - Habeas Corpus and Personal Liberty|Section 20 - Prisoners Committed in Civil Actions for Want of Bail; Bail

Section 20. If the prisoner has been committed on mesne process in a civil action for want of bail, and it appears that the amount for which bail was required is excessive and unreasonable, the court or justice shall decide how much bail is reasonable, and shall order that on giving such bail the prisoner shall be discharged.
MA Gen L ch 248 § 21 (2021)
2021 Massachusetts General Laws|Part III - Courts, Judicial Officers and Proceedings in Civil Cases|Title IV - Certain Writs and Proceedings in Special Cases|Chapter 248 - Habeas Corpus and Personal Liberty|Section 21 - Prisoners Committed on Criminal Charges; Bail

Section 21. If a person is committed to jail on a criminal accusation for want of bail, a justice of the superior court or of a district court or a trial justice may issue a writ of habeas corpus and cause the prisoner to be brought before him, when it is necessary for the purpose of admitting him to bail pursuant to chapter two hundred and seventy-six.
MA Gen L ch 248 § 22 (2021)
2021 Massachusetts General Laws|Part III - Courts, Judicial Officers and Proceedings in Civil Cases|Title IV - Certain Writs and Proceedings in Special Cases|Chapter 248 - Habeas Corpus and Personal Liberty|Section 22 - Remanding Prisoner

Section 22. If the prisoner is lawfully imprisoned or restrained and is not entitled to be admitted to bail, he shall be remanded to the person from whose custody he was taken or any other person or officer authorized by law to detain him.
MA Gen L ch 248 § 23 (2021)
2021 Massachusetts General Laws|Part III - Courts, Judicial Officers and Proceedings in Civil Cases|Title IV - Certain Writs and Proceedings in Special Cases|Chapter 248 - Habeas Corpus and Personal Liberty|Section 23 - Discharging Prisoner

Section 23. If no legal cause is shown for the imprisonment or restraint, the court or justice shall discharge the prisoner.
MA Gen L ch 248 § 24 (2021)
2021 Massachusetts General Laws|Part III - Courts, Judicial Officers and Proceedings in Civil Cases|Title IV - Certain Writs and Proceedings in Special Cases|Chapter 248 - Habeas Corpus and Personal Liberty|Section 24 - Imprisonment After Discharge

Section 24. No person who has been discharged upon a habeas corpus shall be again imprisoned or restrained for the same cause, unless indicted therefor, convicted thereof, or committed for want of bail by a court of record having jurisdiction of the cause; or unless, after a discharge for defect of proof or for some material defect in the commitment in a criminal case, he is again arrested on sufficient proof and committed by legal process.
MA Gen L ch 248 § 25 (2021)
2021 Massachusetts General Laws|Part III - Courts, Judicial Officers and Proceedings in Civil Cases|Title IV - Certain Writs and Proceedings in Special Cases|Chapter 248 - Habeas Corpus and Personal Liberty|Section 25 - Scope of Chapter

Section 25. This chapter shall not affect the power of the supreme judicial court, or the superior court, or a justice thereof, to issue a writ of habeas corpus in its discretion, and thereupon grant bail to a person for whatever cause he has been committed or restrained, or to discharge him as law and justice require. The court shall have no power to issue a writ of habeas corpus, at its discretion for—a person who has been committed by the governor and council, the senate, or the house of representatives in the manner and for the causes mentioned in the constitution, or a person who is imprisoned or restrained of his liberty pursuant to a criminal conviction.  This chapter shall not affect the power of any court or magistrate to issue a writ of habeas corpus, when necessary to bring before it a prisoner for trial in a pending criminal case; or to bring a prisoner to be examined as a witness in a suit or proceeding, civil or criminal, pending before the court, if the personal attendance and examination of the witness is necessary for the attainment of justice.
MA Gen L ch 248 § 26 (2021)
2021 Massachusetts General Laws|Part III - Courts, Judicial Officers and Proceedings in Civil Cases|Title IV - Certain Writs and Proceedings in Special Cases|Chapter 248 - Habeas Corpus and Personal Liberty|Section 26 - Refusal of Officer to Deliver Copy of Warrant; Penalty

Section 26. An officer who refuses or neglects for six hours to deliver a printed copy of the warrant contained in the warrant management system or process by which he detains a prisoner to any person who demands such copy and tenders the fees therefor shall forfeit two hundred dollars to such prisoner.
MA Gen L ch 248 § 27 (2021)
2021 Massachusetts General Laws|Part III - Courts, Judicial Officers and Proceedings in Civil Cases|Title IV - Certain Writs and Proceedings in Special Cases|Chapter 248 - Habeas Corpus and Personal Liberty|Section 27 - Refusal to Obey Writ; Attachment

Section 27. If a person to whom a writ of habeas corpus is directed refuses to receive it, or neglects to execute it according to the provisions of this chapter and no sufficient excuse is shown therefor, the court or justice before whom the writ was returnable shall forthwith by process of attachment, as for a contempt, compel obedience to the writ, and punish the person guilty of the contempt.
MA Gen L ch 248 § 28 (2021)
2021 Massachusetts General Laws|Part III - Courts, Judicial Officers and Proceedings in Civil Cases|Title IV - Certain Writs and Proceedings in Special Cases|Chapter 248 - Habeas Corpus and Personal Liberty|Section 28 - Attachment; Executing Officers

Section 28. If such attachment is issued against a sheriff or his deputy, it may be directed to a special sheriff or to some other person designated therein, who shall have full power to execute it; and if the sheriff or his deputy is to be committed upon such process, he may be committed to the jail of any county other than his own.
MA Gen L ch 248 § 29 (2021)
2021 Massachusetts General Laws|Part III - Courts, Judicial Officers and Proceedings in Civil Cases|Title IV - Certain Writs and Proceedings in Special Cases|Chapter 248 - Habeas Corpus and Personal Liberty|Section 29 - Refusal to Obey Writ; Precept Commanding Production of Prisoner

Section 29. Upon the refusal or neglect of the person to whom the writ of habeas corpus is directed to receive and execute it, the court or justice may issue a precept to any officer or other person designated therein, commanding him to bring the prisoner forthwith before such court or justice, who shall thereupon discharge, bail or remand the prisoner as if he had been brought in upon the writ of habeas corpus.
MA Gen L ch 248 § 30 (2021)
2021 Massachusetts General Laws|Part III - Courts, Judicial Officers and Proceedings in Civil Cases|Title IV - Certain Writs and Proceedings in Special Cases|Chapter 248 - Habeas Corpus and Personal Liberty|Section 30 - Refusal to Obey Writ; Penalty

Section 30. Whoever refuses or neglects to receive and execute a writ of habeas corpus shall forfeit four hundred dollars to the party aggrieved thereby.
MA Gen L ch 248 § 31 (2021)
2021 Massachusetts General Laws|Part III - Courts, Judicial Officers and Proceedings in Civil Cases|Title IV - Certain Writs and Proceedings in Special Cases|Chapter 248 - Habeas Corpus and Personal Liberty|Section 31 - Resistance or Disobedience of Writ; Attachment

Section 31. Whoever resists the service of the writ of habeas corpus, or disobeys it when served, shall be liable to attachment as for a contempt of the court or justice before whom the writ is returnable.
MA Gen L ch 248 § 32 (2021)
2021 Massachusetts General Laws|Part III - Courts, Judicial Officers and Proceedings in Civil Cases|Title IV - Certain Writs and Proceedings in Special Cases|Chapter 248 - Habeas Corpus and Personal Liberty|Section 32 - Removing or Concealing Prisoner; Penalty

Section 32. Whoever, having in his custody or power a person entitled to a writ of habeas corpus, transfers him to the custody, or places him under the power or control, of another person, conceals him or changes the place of his confinement, with intent to evade the service of such writ or to avoid the effect thereof, whether the writ has been issued or not, shall forfeit four hundred dollars to the party aggrieved thereby.
MA Gen L ch 248 § 33 (2021)
2021 Massachusetts General Laws|Part III - Courts, Judicial Officers and Proceedings in Civil Cases|Title IV - Certain Writs and Proceedings in Special Cases|Chapter 248 - Habeas Corpus and Personal Liberty|Section 33 - Recovery of Penalties; Effect on Actions by Aggrieved Parties

Section 33. The recovery of any penalty imposed by the foregoing provisions of this chapter shall not bar an action at common law for false imprisonment, or for a false return to the writ of habeas corpus, or for any other injury or damage sustained by the aggrieved party.
MA Gen L ch 248 § 34 (2021)
2021 Massachusetts General Laws|Part III - Courts, Judicial Officers and Proceedings in Civil Cases|Title IV - Certain Writs and Proceedings in Special Cases|Chapter 248 - Habeas Corpus and Personal Liberty|Section 34 - Persons in Custody of United States Marshal

Section 34. This chapter shall not authorize the taking of a person by writ of habeas corpus out of the custody of the United States marshal, or his deputy, who holds him by legal and sufficient process issued by any court or magistrate of competent jurisdiction; but this section shall not affect the authority of the supreme judicial court or of its justices, in accordance with the provisions of the constitution of the United States and of the commonwealth, to investigate and determine the validity and legal effect of any process which may be relied on to defeat the writ, or any other matter properly arising.
MA Gen L ch 248 § 35 (2021)
2021 Massachusetts General Laws|Part III - Courts, Judicial Officers and Proceedings in Civil Cases|Title IV - Certain Writs and Proceedings in Special Cases|Chapter 248 - Habeas Corpus and Personal Liberty|Section 35 - Personal Liberty; How Secured

Section 35. No person shall be deprived of his liberty or held in custody by any person or in any place against his will or, if he is a minor, against the will of his parents, guardian or other person entitled to his custody, except by due process of law; but this section shall not apply to persons who have been legally convicted of crime and are serving sentence therefor.
MA Gen L ch 248 § 36 (2021)
2021 Massachusetts General Laws|Part III - Courts, Judicial Officers and Proceedings in Civil Cases|Title IV - Certain Writs and Proceedings in Special Cases|Chapter 248 - Habeas Corpus and Personal Liberty|Section 36 - Petition to Obtain Personal Liberty

Section 36. Whoever has reason to believe that another person is deprived of his liberty or held in custody in violation of the preceding section may file a petition, on the oath of the petitioner, in the probate court for the county where such person is believed to be detained, stating his name, age and general description, where, when and under what circumstances he was deprived of his liberty, where he is believed to be detained, the name of the person so depriving him of his liberty, if known, the name of his supposed custodian and any other material facts and circumstances.
MA Gen L ch 248 § 37 (2021)
2021 Massachusetts General Laws|Part III - Courts, Judicial Officers and Proceedings in Civil Cases|Title IV - Certain Writs and Proceedings in Special Cases|Chapter 248 - Habeas Corpus and Personal Liberty|Section 37 - Notice to Custodians, Etc.

Section 37. Upon the filing of such petition, the court shall cause notice to be served upon all the supposed custodians or persons alleged to be detaining or holding in custody said person, as stated in said petition, or as otherwise known, ordering them to appear before said court at a time and place named therein, to be examined as said court shall order; and may cause said person to be brought before it for examination as to his desire to be released and as to any other relevant matters.
MA Gen L ch 248 § 38 (2021)
2021 Massachusetts General Laws|Part III - Courts, Judicial Officers and Proceedings in Civil Cases|Title IV - Certain Writs and Proceedings in Special Cases|Chapter 248 - Habeas Corpus and Personal Liberty|Section 38 - Examination of Witnesses

Section 38. The court may examine the witnesses separately and may permit the petitioner, parent, guardian or other person entitled to the custody of a person deprived of his liberty, in person or by counsel, to examine publicly his alleged custodian as to the condition of such person and the place where he is detained or held in custody; and may also examine separately and apart, or publicly, such person, and may make orders for his release or permitting correspondence or personal interviews between him and his friends or relatives, and may modify its orders upon notice to the parties.
MA Gen L ch 248 § 39 (2021)
2021 Massachusetts General Laws|Part III - Courts, Judicial Officers and Proceedings in Civil Cases|Title IV - Certain Writs and Proceedings in Special Cases|Chapter 248 - Habeas Corpus and Personal Liberty|Section 39 - Conducting Examinations; Assistance From District Attorneys

Section 39. The probate court may request the district attorney for the district where it is held to attend the examination under the preceding section, and to conduct or assist in conducting the examination. If the court is unable to obtain satisfactory information, or to satisfactorily determine the questions involved or to furnish proper relief, it shall notify the district attorney, who may institute proceedings under sections one to thirty-four, inclusive, or such other proceedings as the case may require. The provisions of said sections shall apply to all proceedings under the four preceding sections so far as appropriate.
MA Gen L ch 248 § 40 (2021)
2021 Massachusetts General Laws|Part III - Courts, Judicial Officers and Proceedings in Civil Cases|Title IV - Certain Writs and Proceedings in Special Cases|Chapter 248 - Habeas Corpus and Personal Liberty|Section 40 - Payment of Fees

Section 40. The fees for the service of process and notices and for summoning witnesses shall, upon the approval of the court or district attorney, be paid by the commonwealth if the petitioner is not able to pay them.
MA Gen L ch 249 § 4 (2021)
2021 Massachusetts General Laws|Part III - Courts, Judicial Officers and Proceedings in Civil Cases|Title IV - Certain Writs and Proceedings in Special Cases|Chapter 249 - Audita Querela, Certiorari, Mandamus and Quo Warranto|Section 4 - Action in the Nature of Certiorari; Limitation; Joinder of Party Defendant; Injunction; Judgment

Section 4. A civil action in the nature of certiorari to correct errors in proceedings which are not according to the course of the common law, which proceedings are not otherwise reviewable by motion or by appeal, may be brought in the supreme judicial or superior court or, if the matter involves any right, title or interest in land, or arises under or involves the subdivision control law, the zoning act or municipal zoning, or subdivision ordinances, by–laws or regulations, in the land court or, if the matter involves fence viewers, in the district court. Such action shall be commenced within sixty days next after the proceeding complained of. Where such an action is brought against a body or officer exercising judicial or quasi-judicial functions to prevent the body or officer from proceeding in favor of another party, or is brought with relation to proceedings already taken, such other party may be joined as a party defendant by the plaintiff or on motion of the defendant body or officer or by application to intervene. Such other party may file a separate answer or adopt the pleadings of the body or officer. The court may at any time after the commencement of the action issue an injunction and order the record of the proceedings complained of brought before it. The court may enter judgment quashing or affirming such proceedings or such other judgment as justice may require.
MA Gen L ch 249 § 4a (2021)
2021 Massachusetts General Laws|Part III - Courts, Judicial Officers and Proceedings in Civil Cases|Title IV - Certain Writs and Proceedings in Special Cases|Chapter 249 - Audita Querela, Certiorari, Mandamus and Quo Warranto|Section 4a - Service Upon Board, Commission or Voluntary Association

Section 4A. If a defendant in an action authorized by section four is a board or commission or voluntary association having a chairman or other presiding officer, secretary or clerk, by whatever official title he is called, service upon one of such persons shall be sufficient, otherwise service shall be made upon a majority of the members of a board or commission, or, as to a voluntary association on such of its members as will fairly insure the adequate representation of all.
MA Gen L ch 249 § 5 (2021)
2021 Massachusetts General Laws|Part III - Courts, Judicial Officers and Proceedings in Civil Cases|Title IV - Certain Writs and Proceedings in Special Cases|Chapter 249 - Audita Querela, Certiorari, Mandamus and Quo Warranto|Section 5 - Action in the Nature of Mandamus

Section 5. A civil action to obtain relief formerly available by writ of mandamus may be brought in the supreme judicial or superior court or, if the matter involves any right, title or interest in land, or arises under or involves the subdivision control law, the zoning act, or municipal zoning, or subdivision ordinances, by–laws or regulations, in the land court.
MA Gen L ch 249 § 6 (2021)
2021 Massachusetts General Laws|Part III - Courts, Judicial Officers and Proceedings in Civil Cases|Title IV - Certain Writs and Proceedings in Special Cases|Chapter 249 - Audita Querela, Certiorari, Mandamus and Quo Warranto|Section 6 - Action in the Nature of Quo Warranto

Section 6. A person whose private right or interest has been injured or put in hazard by the exercise of a franchise or privilege not conferred by law, by a private corporation or by persons claiming to be a private corporation, whether he is a member of such corporation or not, may bring a civil action in the nature of a quo warranto in the supreme judicial or superior court in the county where the defendant has its principal place of business seeking an injunction against such exercise. A copy of the complaint shall be served on the attorney general.
MA Gen L ch 249 § 7 (2021)
2021 Massachusetts General Laws|Part III - Courts, Judicial Officers and Proceedings in Civil Cases|Title IV - Certain Writs and Proceedings in Special Cases|Chapter 249 - Audita Querela, Certiorari, Mandamus and Quo Warranto|Section 7 - Intervention by Attorney General

Section 7. The attorney general may intervene in such action and may demand a judgment of fine and forfeiture.
MA Gen L ch 249 § 8 (2021)
2021 Massachusetts General Laws|Part III - Courts, Judicial Officers and Proceedings in Civil Cases|Title IV - Certain Writs and Proceedings in Special Cases|Chapter 249 - Audita Querela, Certiorari, Mandamus and Quo Warranto|Section 8 - Judgment; Costs

Section 8. If the court finds that the defendant has not exercised a franchise or privilege not conferred by law, he shall recover costs. If the attorney general does not intervene, and the court finds that the respondent has exercised a franchise or privilege not conferred by law, judgment of forfeiture shall not be entered, but judgment shall be entered that the corporation, or the persons claiming to be such, be perpetually excluded from the exercise of such franchise or privilege, and that the directors, managers, or agents, guilty of the usurpation, pay the costs of the complainant.
MA Gen L ch 249 § 9 (2021)
2021 Massachusetts General Laws|Part III - Courts, Judicial Officers and Proceedings in Civil Cases|Title IV - Certain Writs and Proceedings in Special Cases|Chapter 249 - Audita Querela, Certiorari, Mandamus and Quo Warranto|Section 9 - Jurisdiction of Actions Against Persons Holding or Claiming Public Office

Section 9. The supreme judicial and superior courts shall have like jurisdiction of civil actions brought by the attorney general against a person holding or claiming the right to hold an office or employment, the salary or compensation of which is payable by the commonwealth, a county, city or town.
MA Gen L ch 249 § 13 (2021)
2021 Massachusetts General Laws|Part III - Courts, Judicial Officers and Proceedings in Civil Cases|Title IV - Certain Writs and Proceedings in Special Cases|Chapter 249 - Audita Querela, Certiorari, Mandamus and Quo Warranto|Section 13 - Effect of Chapter

Section 13. This chapter shall not affect the duty of the attorney general to proceed in all cases in which he might otherwise act.
MA Gen L ch 250 § 13 (2021)
2021 Massachusetts General Laws|Part III - Courts, Judicial Officers and Proceedings in Civil Cases|Title IV - Certain Writs and Proceedings in Special Cases|Chapter 250 - Writs of Error, Vacating Judgment, Writs of Review|Section 13 - Convictions; Effect of Age on Validity

Section 13. Upon a proceeding to reverse or avoid a conviction of crime or to obtain the discharge of a person who is held in custody thereunder, the fact that the person was under the age of 18 at the time of the conviction shall not affect the validity of the conviction nor entitle the person to be discharged.
MA Gen L ch 251 § 1 (2021)
2021 Massachusetts General Laws|Part III - Courts, Judicial Officers and Proceedings in Civil Cases|Title IV - Certain Writs and Proceedings in Special Cases|Chapter 251 - Uniform Arbitration Act for Commercial Disputes|Section 1 - Validity of Agreements; Non-Applicability to Collective Bargaining Agreements

Section 1. A written agreement to submit any existing controversy to arbitration or a provision in a written contract to submit to arbitration any controversy thereafter arising between the parties shall be valid, enforceable and irrevocable, save upon such grounds as exist at law or in equity for the revocation of any contract. The provisions of this chapter shall not apply to collective bargaining agreements to arbitrate, which are subject to the provisions of chapter one hundred and fifty C, except as provided by the provisions of chapter one hundred and fifty-two.