reglab/housing_qa huggingface dataset:
CA Penal Code § 1496 (2021)
2021 California Code|Penal Code - PEN|PART 2 - OF CRIMINAL PROCEDURE|TITLE 12 - OF SPECIAL PROCEEDINGS OF A CRIMINAL NATURE|CHAPTER 1 - Of the Writ of Habeas Corpus|Section 1496.

1496.  No person who has been discharged by the order of the Court or Judge upon habeas corpus can be again imprisoned, restrained, or kept in custody for the same cause, except in the following cases:1. If he has been discharged from custody on a criminal charge, and is afterwards committed for the same offense, by legal order or process;2. If, after a discharge for defect of proof, or for any defect of the process, warrant, or commitment in a criminal case, the prisoner is again arrested on sufficient proof and committed by legal process for the same offense.(Enacted 1872.)
CA Penal Code § 1497 (2021)
2021 California Code|Penal Code - PEN|PART 2 - OF CRIMINAL PROCEDURE|TITLE 12 - OF SPECIAL PROCEEDINGS OF A CRIMINAL NATURE|CHAPTER 1 - Of the Writ of Habeas Corpus|Section 1497.

1497.  When it appears to any court, or judge, authorized by law to issue the writ of habeas corpus, that any one is illegally held in custody, confinement, or restraint, and that there is reason to believe that the person will be carried out of the jurisdiction of the court or judge before whom the application is made, or will suffer some irreparable injury before compliance with the writ of habeas corpus can be enforced, the court or judge may cause a warrant to be issued, reciting the facts, and directed to any peace officer, commanding the peace officer to take the person held in custody, confinement, or restraint, and immediately bring him or her before the court or judge, to be dealt with according to law.(Amended by Stats. 1983, Ch. 990, Sec. 8.)
CA Penal Code § 1498 (2021)
2021 California Code|Penal Code - PEN|PART 2 - OF CRIMINAL PROCEDURE|TITLE 12 - OF SPECIAL PROCEEDINGS OF A CRIMINAL NATURE|CHAPTER 1 - Of the Writ of Habeas Corpus|Section 1498.

1498.  The Court or Judge may also insert in such warrant a command for the apprehension of the person charged with such illegal detention and restraint.(Enacted 1872.)
CA Penal Code § 1499 (2021)
2021 California Code|Penal Code - PEN|PART 2 - OF CRIMINAL PROCEDURE|TITLE 12 - OF SPECIAL PROCEEDINGS OF A CRIMINAL NATURE|CHAPTER 1 - Of the Writ of Habeas Corpus|Section 1499.

1499.  The officer to whom such warrant is delivered must execute it by bringing the person therein named before the Court or Judge who directed the issuing of such warrant.(Enacted 1872.)
CA Penal Code § 1500 (2021)
2021 California Code|Penal Code - PEN|PART 2 - OF CRIMINAL PROCEDURE|TITLE 12 - OF SPECIAL PROCEEDINGS OF A CRIMINAL NATURE|CHAPTER 1 - Of the Writ of Habeas Corpus|Section 1500.

1500.  The person alleged to have such party under illegal confinement or restraint may make return to such warrant as in case of a writ of habeas corpus, and the same may be denied, and like allegations, proofs, and trial may thereupon be had as upon a return to a writ of habeas corpus.(Enacted 1872.)
CA Penal Code § 1501 (2021)
2021 California Code|Penal Code - PEN|PART 2 - OF CRIMINAL PROCEDURE|TITLE 12 - OF SPECIAL PROCEEDINGS OF A CRIMINAL NATURE|CHAPTER 1 - Of the Writ of Habeas Corpus|Section 1501.

1501.  If such party is held under illegal restraint or custody, he must be discharged; and if not, he must be restored to the care or custody of the person entitled thereto.(Enacted 1872.)
CA Penal Code § 1502 (2021)
2021 California Code|Penal Code - PEN|PART 2 - OF CRIMINAL PROCEDURE|TITLE 12 - OF SPECIAL PROCEEDINGS OF A CRIMINAL NATURE|CHAPTER 1 - Of the Writ of Habeas Corpus|Section 1502.

1502.  Any writ or process authorized by this Chapter may be issued and served on any day or at any time.(Enacted 1872.)
CA Penal Code § 1503 (2021)
2021 California Code|Penal Code - PEN|PART 2 - OF CRIMINAL PROCEDURE|TITLE 12 - OF SPECIAL PROCEEDINGS OF A CRIMINAL NATURE|CHAPTER 1 - Of the Writ of Habeas Corpus|Section 1503.

1503.  All writs, warrants, process, and subpoenas authorized by the provisions of this Chapter must be issued by the Clerk of the Court, and, except subpoenas, must be sealed with the seal of such Court, and served and returned forthwith, unless the Court or Judge shall specify a particular time for any such return.(Enacted 1872.)
CA Penal Code § 1504 (2021)
2021 California Code|Penal Code - PEN|PART 2 - OF CRIMINAL PROCEDURE|TITLE 12 - OF SPECIAL PROCEEDINGS OF A CRIMINAL NATURE|CHAPTER 1 - Of the Writ of Habeas Corpus|Section 1504.

1504.  All such writs and process, when made returnable before a Judge, must be returned before him at the county seat, and there heard and determined.(Amended by Code Amendments 1880, Ch. 6.)
CA Penal Code § 1505 (2021)
2021 California Code|Penal Code - PEN|PART 2 - OF CRIMINAL PROCEDURE|TITLE 12 - OF SPECIAL PROCEEDINGS OF A CRIMINAL NATURE|CHAPTER 1 - Of the Writ of Habeas Corpus|Section 1505.

1505.  If the officer or person to whom a writ of habeas corpus is directed, refuses obedience to the command thereof, he shall forfeit and pay to the person aggrieved a sum not exceeding ten thousand dollars ($10,000), to be recovered by action in any court of competent jurisdiction.(Amended by Stats. 1983, Ch. 1092, Sec. 322.5. Effective September 27, 1983. Operative January 1, 1984, by Sec. 427 of Ch. 1092.)
CA Penal Code § 1506 (2021)
2021 California Code|Penal Code - PEN|PART 2 - OF CRIMINAL PROCEDURE|TITLE 12 - OF SPECIAL PROCEEDINGS OF A CRIMINAL NATURE|CHAPTER 1 - Of the Writ of Habeas Corpus|Section 1506.

1506.  An appeal may be taken to the court of appeal by the people from a final order of a superior court made upon the return of a writ of habeas corpus discharging a defendant or otherwise granting all or any part of the relief sought, in all criminal cases, excepting criminal cases where judgment of death has been rendered, and in such cases to the Supreme Court; and in all criminal cases where an application for a writ of habeas corpus has been heard and determined in a court of appeal, either the defendant or the people may apply for a hearing in the Supreme Court. Such appeal shall be taken and such application for hearing in the Supreme Court shall be made in accordance with rules to be laid down by the Judicial Council. If the people appeal from an order granting the discharge or release of the defendant, or petition for hearing in either the court of appeal or the Supreme Court, the defendant shall be admitted to bail or released on his own recognizance or any other conditions which the court deems just and reasonable, subject to the same limitations, terms, and conditions which are applicable to, or may be imposed upon, a defendant who is awaiting trial. If the order grants relief other than a discharge or release from custody, the trial court or the court in which the appeal or petition for hearing is pending may, upon application by the people, in its discretion, and upon such conditions as it deems just stay the execution of the order pending final determination of the matter.(Amended by Stats. 1975, Ch. 1080.)
CA Penal Code § 1507 (2021)
2021 California Code|Penal Code - PEN|PART 2 - OF CRIMINAL PROCEDURE|TITLE 12 - OF SPECIAL PROCEEDINGS OF A CRIMINAL NATURE|CHAPTER 1 - Of the Writ of Habeas Corpus|Section 1507.

1507.  Where an application for a writ of habeas corpus has been made by or on behalf of any person other than a defendant in a criminal case, an appeal may be taken to the court of appeal from a final order of a superior court granting all or any part of the relief sought; and where such application has been heard and determined in a court of appeal, either on an application filed in that court or on appeal from a superior court, and all or any part of the relief sought has been granted, an application may be made for a hearing in the Supreme Court. Such appeal shall be taken and such application for hearing in the Supreme Court shall be made in accordance with rules to be laid down by the Judicial Council. The court which made the order granting relief or the court in which the appeal or petition for hearing is pending may, in its discretion, and upon such conditions as it deems just stay the execution of the order pending final determination of the matter.(Amended by Stats. 1967, Ch. 17.)
CA Penal Code § 1508 (2021)
2021 California Code|Penal Code - PEN|PART 2 - OF CRIMINAL PROCEDURE|TITLE 12 - OF SPECIAL PROCEEDINGS OF A CRIMINAL NATURE|CHAPTER 1 - Of the Writ of Habeas Corpus|Section 1508.

1508.  (a) A writ of habeas corpus issued by the Supreme Court or a judge thereof may be made returnable before the issuing judge or his court, before any court of appeal or judge thereof, or before any superior court or judge thereof.(b) A writ of habeas corpus issued by a court of appeal or a judge thereof may be made returnable before the issuing judge or his court or before any superior court or judge thereof located in that appellate district.(c) A writ of habeas corpus issued by a superior court or a judge thereof may be made returnable before the issuing judge or his court.(Added by Stats. 1969, Ch. 38.)
CA Penal Code § 1509.1 (2021)
2021 California Code|Penal Code - PEN|PART 2 - OF CRIMINAL PROCEDURE|TITLE 12 - OF SPECIAL PROCEEDINGS OF A CRIMINAL NATURE|CHAPTER 1 - Of the Writ of Habeas Corpus|Section 1509.1.

1509.1.  (a) Either party may appeal the decision of a superior court on an initial petition under Section 1509 to the court of appeal. An appeal shall be taken by filing a notice of appeal in the superior court within 30 days of the court’s decision granting or denying the habeas petition. A successive petition shall not be used as a means of reviewing a denial of habeas relief.(b) The issues considered on an appeal under subdivision (a) shall be limited to the claims raised in the superior court, except that the court of appeal may also consider a claim of ineffective assistance of trial counsel if the failure of habeas counsel to present that claim to the superior court constituted ineffective assistance. The court of appeal may, if additional findings of fact are required, make a limited remand to the superior court to consider the claim.(c) The people may appeal the decision of the superior court granting relief on a successive petition. The petitioner may appeal the decision of the superior court denying relief on a successive petition only if the superior court or the court of appeal grants a certificate of appealability. A certificate of appealability may issue under this subdivision only if the petitioner has shown both a substantial claim for relief, which shall be indicated in the certificate, and a substantial claim that the requirements of subdivision (d) of Section 1509 have been met. An appeal under this subdivision shall be taken by filing a notice of appeal in the superior court within 30 days of the court’s decision. The superior court shall grant or deny a certificate of appealability concurrently with a decision denying relief on the petition. The court of appeal shall grant or deny a request for a certificate of appealability within 10 days of an application for a certificate. The jurisdiction of the court of appeal is limited to the claims identified in the certificate and any additional claims added by the court of appeal within 60 days of the notice of appeal. An appeal under this subdivision shall have priority over all other matters and be decided as expeditiously as possible.(Added November 8, 2016, by initiative Proposition 66, Sec. 7.)
CA Penal Code § 1510 (2021)
2021 California Code|Penal Code - PEN|PART 2 - OF CRIMINAL PROCEDURE|TITLE 12 - OF SPECIAL PROCEEDINGS OF A CRIMINAL NATURE|CHAPTER 2 - Pretrial Review|Section 1510.

1510.  The denial of a motion made pursuant to Section 995 or 1538.5 may be reviewed prior to trial only if the motion was made by the defendant in the trial court not later than 45 days following defendant’s arraignment on the complaint if a misdemeanor, or 60 days following defendant’s arraignment on the information or indictment if a felony, unless within these time limits the defendant was unaware of the issue or had no opportunity to raise the issue.(Added by Stats. 1971, Ch. 944.)
CA Penal Code § 1511 (2021)
2021 California Code|Penal Code - PEN|PART 2 - OF CRIMINAL PROCEDURE|TITLE 12 - OF SPECIAL PROCEEDINGS OF A CRIMINAL NATURE|CHAPTER 2 - Pretrial Review|Section 1511.

1511.  If in a felony case the superior court sets the trial beyond the period of time specified in Section 1049.5, in violation of Section 1049.5, or continues the hearing of any matter without good cause, and good cause is required by law for such a continuance, either party may file a petition for writ of mandate or prohibition in the court of appeal seeking immediate appellate review of the ruling setting the trial or granting the continuance. Such a petition shall have precedence over all other cases in the court to which the petition is assigned, including, but not limited to, cases that originated in the juvenile court. If the court of appeal grants a peremptory writ, it shall issue the writ and a remittitur three court days after its decision becomes final as to that court if such action is necessary to prevent mootness or to prevent frustration of the relief granted, notwithstanding the right of the parties to file a petition for review in the Supreme Court. When the court of appeal issues the writ and remittitur as provided herein, the writ shall command the superior court to proceed with the criminal case without further delay, other than that reasonbly necessary for the parties to obtain the attendance of their witnesses.The Supreme Court may stay or recall the issuance of the writ and remittitur. The Supreme Court’s failure to stay or recall the issuance of the writ and remittitur shall not deprive the respondent or the real party in interest of its right to file a petition for review in the Supreme Court.(Added June 5, 1990, by initiative Proposition 115, Sec. 28.)
CA Penal Code § 1512 (2021)
2021 California Code|Penal Code - PEN|PART 2 - OF CRIMINAL PROCEDURE|TITLE 12 - OF SPECIAL PROCEEDINGS OF A CRIMINAL NATURE|CHAPTER 2 - Pretrial Review|Section 1512.

1512.  (a) In addition to petitions for a writ of mandate, prohibition, or review which the people are authorized to file pursuant to any other statute or pursuant to any court decision, the people may also seek review of an order granting a defendant’s motion for severance or discovery by a petition for a writ of mandate or prohibition.(b) In construing the legislative intent of subdivision (a), no inference shall be drawn from the amendment to Assembly Bill 1052 of the 1989–90 Regular Session of the Legislature which deleted reference to the case of People v. Superior Court, 69 Cal. 2d 491.(Added by renumbering Section 1511 (as added by Stats. 1989, Ch. 560) by Stats. 2001, Ch. 854, Sec. 46. Effective January 1, 2002.)
CA Penal Code § 1523 (2021)
2021 California Code|Penal Code - PEN|PART 2 - OF CRIMINAL PROCEDURE|TITLE 12 - OF SPECIAL PROCEEDINGS OF A CRIMINAL NATURE|CHAPTER 3 - Of Search Warrants|Section 1523.

1523.  A search warrant is an order in writing, in the name of the people, signed by a magistrate, directed to a peace officer, commanding him or her to search for a person or persons, a thing or things, or personal property, and, in the case of a thing or things or personal property, bring the same before the magistrate.(Amended by Stats. 1996, Ch. 1078, Sec. 1.5. Effective January 1, 1997.)
CA Penal Code § 1524.4 (2021)
2021 California Code|Penal Code - PEN|PART 2 - OF CRIMINAL PROCEDURE|TITLE 12 - OF SPECIAL PROCEEDINGS OF A CRIMINAL NATURE|CHAPTER 3 - Of Search Warrants|Section 1524.4.

1524.4.  (a) This section applies to a service provider that is subject to the Electronic Communications Privacy Act (Chapter 3.6 (commencing with Section 1546)) and that operates in California. This section does not apply to a service provider that does not offer services to the general public.(b) (1) Every service provider described in subdivision (a) shall maintain a law enforcement contact process that meets the criteria set forth in paragraph (2).(2) Every service provider described in subdivision (a) shall ensure, at a minimum, that its law enforcement contact process meets all of the following criteria:(A) Provides a specific contact mechanism for law enforcement personnel.(B) Provides continual availability of the law enforcement contact process.(C) Provides a method to provide status updates to a requesting law enforcement agency on a request for assistance.(3) Every service provider described in subdivision (a) shall, by July 1, 2017, file a statement with the Attorney General describing the law enforcement contact process maintained pursuant to paragraph (1). If a service provider makes a material change to its law enforcement contact process, the service provider shall, as soon as practicable, file a statement with the Attorney General describing its new law enforcement contact process.(c) The Attorney General shall consolidate the statements received pursuant to this section into one discrete record and regularly make that record available to local law enforcement agencies.(d) The exclusive remedy for a violation of this section shall be an action brought by the Attorney General for injunctive relief. Nothing in this section shall limit remedies available for a violation of any other state or federal law.(e) A statement filed or distributed pursuant to this section is confidential and shall not be disclosed pursuant to any state law, including, but not limited to, the California Public Records Act (Chapter 3.5 (commencing with Section 6250) of Division 7 of Title 1 of the Government Code).(Added by Stats. 2016, Ch. 514, Sec. 2. (AB 1993) Effective January 1, 2017. Superseded on January 1, 2023; see amendment by Stats. 2021, Ch. 615.)
CA Penal Code § 1524.4 (2021)
2021 California Code|Penal Code - PEN|PART 2 - OF CRIMINAL PROCEDURE|TITLE 12 - OF SPECIAL PROCEEDINGS OF A CRIMINAL NATURE|CHAPTER 3 - Of Search Warrants|Section 1524.4.

1524.4.  (a) This section applies to a service provider that is subject to the Electronic Communications Privacy Act (Chapter 3.6 (commencing with Section 1546)) and that operates in California. This section does not apply to a service provider that does not offer services to the general public.(b) (1) Every service provider described in subdivision (a) shall maintain a law enforcement contact process that meets the criteria set forth in paragraph (2).(2) Every service provider described in subdivision (a) shall ensure, at a minimum, that its law enforcement contact process meets all of the following criteria:(A) Provides a specific contact mechanism for law enforcement personnel.(B) Provides continual availability of the law enforcement contact process.(C) Provides a method to provide status updates to a requesting law enforcement agency on a request for assistance.(3) Every service provider described in subdivision (a) shall, by July 1, 2017, file a statement with the Attorney General describing the law enforcement contact process maintained pursuant to paragraph (1). If a service provider makes a material change to its law enforcement contact process, the service provider shall, as soon as practicable, file a statement with the Attorney General describing its new law enforcement contact process.(c) The Attorney General shall consolidate the statements received pursuant to this section into one discrete record and regularly make that record available to local law enforcement agencies.(d) The exclusive remedy for a violation of this section shall be an action brought by the Attorney General for injunctive relief. Nothing in this section shall limit remedies available for a violation of any other state or federal law.(e) A statement filed or distributed pursuant to this section is confidential and shall not be disclosed pursuant to any state law, including, but not limited to, the California Public Records Act (Division 10 (commencing with Section 7920.000) of Title 1 of the Government Code).(Amended by Stats. 2021, Ch. 615, Sec. 342. (AB 474) Effective January 1, 2022. Operative January 1, 2023, pursuant to Sec. 463 of Stats. 2021, Ch. 615.)
CA Penal Code § 1525 (2021)
2021 California Code|Penal Code - PEN|PART 2 - OF CRIMINAL PROCEDURE|TITLE 12 - OF SPECIAL PROCEEDINGS OF A CRIMINAL NATURE|CHAPTER 3 - Of Search Warrants|Section 1525.

1525.  A search warrant cannot be issued but upon probable cause, supported by affidavit, naming or describing the person to be searched or searched for, and particularly describing the property, thing, or things and the place to be searched.The application shall specify when applicable, that the place to be searched is in the possession or under the control of an attorney, physician, psychotherapist or clergyman.(Amended by Stats. 1996, Ch. 1078, Sec. 3. Effective January 1, 1997.)
CA Penal Code § 1526 (2021)
2021 California Code|Penal Code - PEN|PART 2 - OF CRIMINAL PROCEDURE|TITLE 12 - OF SPECIAL PROCEEDINGS OF A CRIMINAL NATURE|CHAPTER 3 - Of Search Warrants|Section 1526.

1526.  (a) Before issuing the search warrant, the magistrate may examine on oath the person seeking the warrant and any witnesses the person may produce, and shall take his or her affidavit or their affidavits in writing, and cause the affidavit or affidavits to be subscribed by the party or parties making them. If the affiant transmits the proposed search warrant and all affidavits and supporting documents to the magistrate using facsimile transmission equipment, email, or computer server, the conditions in subdivision (c) apply.(b) In lieu of the written affidavit required in subdivision (a), the magistrate may take an oral statement under oath if the oath is made under penalty of perjury and recorded and transcribed. The transcribed statement shall be deemed to be an affidavit for the purposes of this chapter. The recording of the sworn oral statement and the transcribed statement shall be certified by the magistrate receiving it and shall be filed with the clerk of the court. In the alternative, the sworn oral statement shall be recorded by a certified court reporter and the transcript of the statement shall be certified by the reporter, after which the magistrate receiving it shall certify the transcript which shall be filed with the clerk of the court.(c) (1) The affiant shall sign under penalty of perjury his or her affidavit in support of probable cause for issuance of a search warrant. The affiant’s signature may be in the form of a digital signature or electronic signature if email or computer server is used for transmission to the magistrate.(2) The magistrate shall verify that all the pages sent have been received, that all the pages are legible, and that the declarant’s signature, digital signature, or electronic signature is genuine.(3) If the magistrate decides to issue the search warrant, he or she shall do both of the following:(A) Sign the warrant. The magistrate’s signature may be in the form of a digital signature or electronic signature if email or computer server is used for transmission by the magistrate.(B) Note on the warrant the date and time of the issuance of the warrant.(4) The magistrate shall transmit via facsimile transmission equipment, email, or computer server the signed search warrant to the affiant. The search warrant signed by the magistrate and received by the affiant shall be deemed to be the original warrant. The original warrant and any affidavits or attachments in support thereof shall be returned as provided in Section 1534.(Amended by Stats. 2018, Ch. 176, Sec. 2. (AB 2710) Effective January 1, 2019.)
CA Penal Code § 1527 (2021)
2021 California Code|Penal Code - PEN|PART 2 - OF CRIMINAL PROCEDURE|TITLE 12 - OF SPECIAL PROCEEDINGS OF A CRIMINAL NATURE|CHAPTER 3 - Of Search Warrants|Section 1527.

1527.  The affidavit or affidavits must set forth the facts tending to establish the grounds of the application, or probable cause for believing that they exist.(Amended by Stats. 1957, Ch. 1883.)