In this task, you are given text for US Congressional and California state bills, your task is to generate a summary for this bill.

Ex Input:
SECTION 1. SHORT TITLE.

    This Act may be cited as the ``Sex Crime Re-Entry EvaluatioN 
(SCREEN) Act of 2010''.

SEC. 2. SENTENCE OF SPECIAL CONFINEMENT FOR THE PREVENTION OF SEXUAL 
              PREDATION AUTHORIZED.

    Section 3551(b) of title 18, United States Code, is amended as 
follows:
            (1) in paragraph (2) by striking ``or'';
            (2) in paragraph (3) by striking the period at the end and 
        inserting ``; or'';
            (3) inserting after paragraph (3) the following:
            ``(4) in the case of certain offenses, a term of special 
        confinement for the prevention of sexual predation as 
        authorized by subchapter E.''; and
            (4) adding after ``in addition to any other sentence.'' the 
        following: ``A sentence to a term of special confinement for 
        the prevention of sexual predation may be imposed in addition 
        to a sentence to a term of imprisonment.''.

SEC. 3. SENTENCE OF SPECIAL CONFINEMENT FOR THE PREVENTION OF SEXUAL 
              PREDATION.

    Chapter 227 of title 18, United States Code, is amended by adding 
at the end the following:

   ``SUBCHAPTER E--SPECIAL CONFINEMENT FOR THE PREVENTION OF SEXUAL 
                               PREDATION

``3587a. Sentence of special confinement for the prevention of sexual 
                            predation.
``3587b. Effect of finality of judgment.
``3587c. Right to hearing.
``3587d. Hearings to determine status as a sexually dangerous person.
``3587e. Commencement of sentence.
``3587f. Definitions.
``3587g. Implementation of a sentence of special confinement for the 
                            prevention of sexual predation.
``Sec. 3587a. Sentence of special confinement for the prevention of 
              sexual predation
    ``(a) In General.--The court may sentence to a term of special 
confinement for the prevention of sexual predation a defendant who--
            ``(1) has been found guilty of a qualifying offense; and
            ``(2) has been sentenced to a term of imprisonment for that 
        qualifying offense.
    ``(b) Qualifying Offenses.--For purposes of this section, a 
qualifying offense is any of the following:
            ``(1) An offense under section 2241.
            ``(2) An offense under section 2242.
            ``(3) An offense under section 2245.
            ``(4) An offense under section 2251(e).
    ``(c) Authorized Terms.--The authorized term of special confinement 
for the prevention of sexual predation is for the duration of the 
defendant's life.
``Sec. 3587b. Effect of finality of judgment
    ``Notwithstanding the fact that a sentence to a term of special 
confinement for the prevention of sexual predation can subsequently 
be--
            ``(1) corrected under rule 35 of the Federal Rules of 
        Criminal Procedure and section 3742; or
            ``(2) appealed and modified under section 3742;
 a judgment of conviction that includes such a sentence constitutes a 
final judgment for all other purposes.
``Sec. 3587c. Right to hearing
    ``The defendant shall have the right to a hearing to determine 
whether the defendant is a sexually dangerous person. That hearing 
shall be conducted not earlier than 180 days before the scheduled 
release of the defendant from the custody of the Bureau of Prisons 
after the term of imprisonment.
``Sec. 3587d. Hearings to determine status as a sexually dangerous 
              person
    ``(a) In General.--Any hearing to determine whether a person 
sentenced to a term of special confinement for the prevention of sexual 
predation is a sexually dangerous person for purposes of this 
subchapter or subchapter D of chapter 229 shall be conducted as 
provided under this section.
    ``(b) Disposition.--If the person establishes by clear and 
convincing evidence that the person is not a sexually dangerous person, 
the court shall set aside or terminate a sentence to a term of special 
confinement for the prevention of sexual predation and order the 
release of the person as soon as possible after the date that the 
person is released from the custody of the Bureau of Prisones after a 
term of imprisonment.
    ``(c) Examination and Report.--In conducting a hearing under this 
section, the court shall order an examination of the defendant by a 
licensed psychologist or psychiatrist to determine whether the person 
is a sexually dangerous person and a report on the results of that 
examination.
    ``(d) Rights of Person.--
            ``(1) Except as provided in paragraph (2), a hearing under 
        this section shall be conducted in same manner as a hearing 
        under section 4247(d).
            ``(2) The person shall have the right to have the issue of 
        whether that person is a sexually dangerous person determined 
        by a jury impanelled pursuant to chapter 121 of title 28, 
        United States Code.
    ``(e) Role of the Government.--In a hearing under this section, the 
attorney for the Government may present evidence, subpoena witnesses, 
and confront and cross-examine witnesses.
``Sec. 3587e. Commencement of sentence
    ``A sentence to a term of special confinement for the prevention of 
sexual predation commences on the date that the defendant is released 
from the custody of the Bureau of Prisons after a term of imprisonment.
``Sec. 3587f. Definitions
    ``(a) In General.--Except as otherwise provided in this subchapter, 
terms used in this subchapter have the meanings given such terms in 
section 4247.
    ``(b) Sexually Dangerous Person.--For purposes of this subchapter, 
the term `sexually dangerous person' means an individual who has been 
convicted of a sexual offense that includes violent conduct as an 
element of the offense, and who suffers from a mental, behavioral, or 
emotional disorder affecting the emotional or volitional capacity which 
predisposes that individual toward engaging in violent sexual acts to a 
degree constituting such individual a menace to the health and safety 
of others.
``Sec. 3587g. Implementation of a sentence of special confinement for 
              the prevention of sexual predation
    ``The implementation of a sentence of special confinement for the 
prevention of sexual predation is governed by the provisions of 
subchapter D of chapter 229.''.

SEC. 4. POSTSENTENCE ADMINISTRATION.

    Chapter 229 of title 18, United States Code, is amended by adding 
at the end the following:

   ``SUBCHAPTER D--SPECIAL CONFINEMENT FOR THE PREVENTION OF SEXUAL 
                               PREDATION

``3631. Special confinement for the prevention of sexual predation.
``3632. Annual hearings.
``3633. Definitions.
``Sec. 3631. Special confinement for the prevention of sexual predation
    ``(a) In General.--A person who has been sentenced to a term of 
special confinement for the prevention of sexual predation pursuant to 
the provisions of subchapter E of chapter 227 shall be treated as 
provided under subsection (b). The person shall be committed to the 
custody of the Attorney General until--
            ``(1) the expiration of the term imposed;
            ``(2) the earlier release of the person pursuant to a 
        hearing under section 3587d; or
            ``(3) the transfer of that person to the custody of a State 
        pursuant to subsection (c).
    ``(b) Placement in a Suitable Facility.--If no State assumes 
custody and responsibility of the defendant under subsection (c), the 
Attorney General shall place the defendant in a suitable facility for 
treatment.
    ``(c) State Custody.--If the State in which the person was 
domiciled or tried will assume custody of the person and responsibility 
for carrying out the sentence of special confinement for the prevention 
of sexual predation in a manner consistent with the conditions 
described in section 3632, the Attorney General shall commit the 
defendant to the custody of that State. The Attorney General shall make 
every reasonable effort to cause that State to assume such custody and 
responsibility.
``Sec. 3632. Annual hearings
    ``(a) Commenced by Confined Person.--The confined person has the 
right to not more than one hearing under section 3587d to determine 
whether the confined person is a sexually dangerous person for each 
year that person is confined.
    ``(b) Commenced by Supervisor Certification.--Not more than once 
each year, the supervisor of the facility in which the confined person 
is confined may commence a hearing under section 3587d to determine 
whether the confined person is a sexually dangerous person by filing 
with the court a certificate stating that the supervisor believes that 
person is not a sexually dangerous person.
``Sec. 3633. Definitions
    ``Terms used in this subchapter have the same meanings as terms 
under subchapter E of chapter 227.''.

SEC. 5. SENTENCE OF SPECIAL CONFINEMENT FOR THE PREVENTION OF SEXUAL 
              PREDATION IMPOSED FOR CERTAIN OFFENSES.

    (a) Aggravated Sexual Abuse.--Section 2241 of title 18, United 
States Code, is amended by adding at the end the following:
    ``(e) Additional Punishment.--Whoever commits an offense under this 
section and is sentenced to a term of imprisonment shall, in addition, 
be punished by special confinement for the prevention of sexual 
predation for life.''.
    (b) Sexual Abuse.--Section 2242 of title 18, United States Code, is 
amended by adding at the end the following: ``Whoever commits an 
offense under this section and is sentenced to a term of imprisonment 
shall, in addition, be punished by special confinement for the 
prevention of sexual predation for life.''.
    (c) Offenses Resulting in Death.--Section 2245(a) of title 18, 
United States Code, is amended by adding at the end the following: 
``Whoever commits an offense under this section and is sentenced to a 
term of imprisonment shall, in addition, be punished by special 
confinement for the prevention of sexual predation for life.''.
    (d) Sexual Exploitation of Children.--Section 2251(e) of title 18, 
United States Code, is amended by adding at the end the following: 
``Whoever commits an offense under this section and is sentenced to a 
term of imprisonment shall, in addition, be punished by special 
confinement for the prevention of sexual predation for life.''.

Ex Output:
Sex Crime Re-Entry EvaluatioN (SCREEN) Act of 2010 - Amends the federal criminal code to allow a court to impose on a defendant who has been convicted of a serious sex crime, including aggravated sexual abuse, sex-related murder, and sexual exploitation of children, a term of special confinement, in addition to the sentence for the underlying crime, to prevent sexual predation. Authorizes the term of such confinement to be the life of the defendant. Allows such defendant the right to one hearing per year after confinement to determine whether such defendant is a sexually dangerous person.


Ex Input:
SECTION 1. SHORT TITLE.

    This Act may be cited as the ``Deficit Reduction Act of 2003''.

         TITLE I--REFORMED BUREAU OF RECLAMATION WATER PRICING

SECTION 101. SHORT TITLE.

    This Act may be cited as the ``Irrigation Subsidy Reduction Act of 
2001''.

SEC. 102. FINDINGS.

    Congress finds that--
            (1) the Federal reclamation program has been in existence 
        for over 90 years, with an estimated taxpayer investment of 
        over $70,000,000,000;
            (2) the program has had and continues to have an enormous 
        effect on the water resources and aquatic environments of the 
        western States;
            (3) irrigation water made available from Federal water 
        projects in the West is a very valuable resource for which 
        there are increasing and competing demands;
            (4) the justification for providing water at less than full 
        cost was to benefit and promote the development of small family 
        farms and exclude large corporate farms, but this purpose has 
        been frustrated over the years due to inadequate implementation 
        of subsidy and acreage limits;
            (5) below-cost water prices tend to encourage excessive use 
        of scarce water supplies in the arid regions of the West, and 
        reasonable price increases to the wealthiest western farmers 
        would provide an economic incentive for greater water 
        conservation;
            (6) the Federal Government has increasingly applied 
        eligibility tests based on income for Federal entitlement and 
        subsidy programs, measures that are consistent with the 
        historic approach of the reclamation program's acreage 
        limitations that seek to limit water subsidies to smaller 
        farms; and
            (7) including a means test based on gross income in the 
        reclamation program will increase the effectiveness of carrying 
        out the family farm goals of the Federal reclamation laws.

SEC. 103. AMENDMENTS.

    (a) Definitions.--Section 202 of the Reclamation Reform Act of 1982 
(43 U.S.C. 390bb) is amended--
            (1) by redesignating paragraphs (7), (8), (9), (10), and 
        (11) as paragraphs (9), (10), (11), (12), and (13), 
        respectively;
            (2) in paragraph (6), by striking ``owned or operated under 
        a lease which'' and inserting ``that is owned, leased, or 
        operated by an individual or legal entity and that'';
            (3) by inserting after paragraph (6) the following:
            ``(7) Legal entity.--The term `legal entity' includes a 
        corporation, association, partnership, trust, joint tenancy, or 
        tenancy in common, or any other entity that owns, leases, or 
        operates a farm operation for the benefit of more than 1 
        individual under any form of agreement or arrangement.
            ``(8) Operator.--
                    ``(A) In general.--The term `operator'--
                            ``(i) means an individual or legal entity 
                        that operates a single farm operation on a 
                        parcel (or parcels) of land that is owned or 
                        leased by another person (or persons) under any 
                        form of agreement or arrangement (or agreements 
                        or arrangements); and
                            ``(ii) if the individual or legal entity--
                                    ``(I) is an employee of an 
                                individual or legal entity, includes 
                                the individual or legal entity; or
                                    ``(II) is a legal entity that 
                                controls, is controlled by, or is under 
                                common control with another legal 
                                entity, includes each such other legal 
                                entity.
                    ``(B) Operation of a farm operation.--For the 
                purposes of subparagraph (A), an individual or legal 
                entity shall be considered to operate a farm operation 
                if the individual or legal entity is the person that 
                performs the greatest proportion of the decisionmaking 
                for and supervision of the agricultural enterprise on 
                land served with irrigation water.''; and
            (4) by adding at the end the following:
            ``(14) Single farm operation.--
                    ``(A) In general.--The term `single farm operation' 
                means the total acreage of land served with irrigation 
                water for which an individual or legal entity is the 
                operator.
                    ``(B) Rules for determining whether separate 
                parcels are operated as a single farm operation.--
                            ``(i) Equipment- and labor-sharing 
                        activities.--The conduct of equipment- and 
                        labor-sharing activities on separate parcels of 
                        land by separate individuals or legal entities 
                        shall not by itself serve as a basis for 
                        concluding that the farming operations of the 
                        individuals or legal entities constitute a 
                        single farm operation.
                            ``(ii) Performance of certain services.--
                        The performance by an individual or legal 
                        entity of an agricultural chemical application, 
                        pruning, or harvesting for a farm operation on 
                        a parcel of land shall not by itself serve as a 
                        basis for concluding that the farm operation on 
                        that parcel of land is part of a single farm 
                        operation operated by the individual or entity 
                        on other parcels of land.''.
    (b) Identification of Owners, Lessees, and Operators and of Single 
Farm Operations.--The Reclamation Reform Act of 1982 (43 U.S.C. 390aa 
et seq.) is amended by inserting after section 201 the following:

``SEC. 201A. IDENTIFICATION OF OWNERS, LESSEES, AND OPERATORS AND OF 
              SINGLE FARM OPERATIONS.

    ``(a) In General.--Subject to subsection (b), for each parcel of 
land to which irrigation water is delivered or proposed to be 
delivered, the Secretary shall identify a single individual or legal 
entity as the owner, lessee, or operator.
    ``(b) Shared Decisionmaking and Supervision.--If the Secretary 
determines that no single individual or legal entity is the owner, 
lessee, or other individual that performs the greatest proportion of 
decisionmaking for and supervision of the agricultural enterprise on a 
parcel of land--
            ``(1) all individuals and legal entities that own, lease, 
        or perform a proportion of decisonmaking and supervision that 
        is equal as among themselves but greater than the proportion 
        performed by any other individual or legal entity shall be 
        considered jointly to be the owner, lessee, or operator; and
            ``(2) all parcels of land of which any such individual or 
        legal entity is the owner, lessee, or operator shall be 
        considered to be part of the single farm operation of the 
        owner, lessee, or operator identified under subsection (1).''.
    (c) Pricing.--Section 205 of the Reclamation Reform Act of 1982 (43 
U.S.C. 390ee) is amended by adding at the end the following:
    ``(d) Single Farm Operations Generating More Than $500,000 in Gross 
Farm Income.--
            ``(1) In general.--Notwithstanding subsections (a), (b), 
        and (c), in the case of--
                    ``(A) a qualified recipient that reports gross farm 
                income from a single farm operation in excess of 
                $500,000 for a taxable year; or
                    ``(B) a limited recipient that received irrigation 
                water on or before October 1, 1981, and that reports 
                gross farm income from a single farm operation in 
                excess of $500,000 for a taxable year;
            irrigation water may be delivered to the single farm 
        operation of the qualified recipient or limited recipient at 
        less than full cost to a number of acres that does not exceed 
        the number of acres determined under paragraph (2).
            ``(2) Maximum number of acres to which irrigation water may 
        be delivered at less than full cost.--The number of acres 
        determined under this subparagraph is the number equal to the 
        number of acres of the single farm operation multiplied by a 
        fraction, the numerator of which is $500,000 and 
the denominator of which is the amount of gross farm income reported by 
the qualified recipient or limited recipient in the most recent taxable 
year.
            ``(3) Inflation adjustment.--
                    ``(A) In general.--The $500,000 amount under 
                paragraphs (1) and (2) for any taxable year beginning 
                in a calendar year after 2002 shall be equal to the 
                product of--
                            ``(i) $500,000, multiplied by
                            ``(ii) the inflation adjustment factor for 
                        the taxable year.
                    ``(B) Inflation adjustment factor.--The term 
                `inflation adjustment factor' means, with respect to 
                any calendar year, a fraction the numerator of which is 
                the GDP implicit price deflator for the preceding 
                calendar year and the denominator of which is the GDP 
                implicit price deflator for 2002. Not later than April 
                1 of any calendar year, the Secretary shall publish the 
                inflation adjustment factor for the preceding calendar 
                year.
                    ``(C) GDP implicit price deflator.--For purposes of 
                subparagraph (B), the term `GDP implicit price 
                deflator' means the first revision of the implicit 
                price deflator for the gross domestic product as 
                computed and published by the Secretary of Commerce.
                    ``(D) Rounding.--If any increase determined under 
                subparagraph (A) is not a multiple of $100, the 
                increase shall be rounded to the next lowest multiple 
                of $100.''.
    (d) Certification of Compliance.--Section 206 of the Reclamation 
Reform Act of 1982 (43 U.S.C. 390ff) is amended to read as follows:

``SEC. 206. CERTIFICATION OF COMPLIANCE.

    ``(a) In General.--As a condition to the receipt of irrigation 
water for land in a district that has a contract described in section 
203, each owner, lessee, or operator in the district shall furnish the 
district, in a form prescribed by the Secretary, a certificate that the 
owner, lessee, or operator is in compliance with this title, including 
a statement of the number of acres owned, leased, or operated, the 
terms of any lease or agreement pertaining to the operation of a farm 
operation, and, in the case of a lessee or operator, a certification 
that the rent or other fees paid reflect the reasonable value of the 
irrigation water to the productivity of the land.
    ``(b) Documentation.-- The Secretary may require a lessee or 
operator to submit for the Secretary's examination--
            ``(1) a complete copy of any lease or other agreement 
        executed by each of the parties to the lease or other 
        agreement; and
            ``(2) a copy of the return of income tax imposed by chapter 
        1 of the Internal Revenue Code of 1986 for any taxable year in 
        which the single farm operation of the lessee or operator 
        received irrigation water at less than full cost.''.
    (e) Trusts.--Section 214 of the Reclamation Reform Act of 1982 (43 
U.S.C. 390nn) is repealed.
    (f) Administrative Provisions.--
            (1) Penalties.--Section 224(c) of the Reclamation Reform 
        Act of 1982 (43 U.S.C. 390ww(c)) is amended--
                    (A) by striking ``(c) The Secretary'' and inserting 
                the following:
    ``(c) Regulations; Data Collection; Penalties.--
            ``(1) Regulations; data collection.--The Secretary''; and
                    (B) by adding at the end the following:
            ``(2) Penalties.--Notwithstanding any other provision of 
        law, the Secretary shall establish appropriate and effective 
        penalties for failure to comply with any provision of this Act 
        or any regulation issued under this Act.''.
            (2) Interest.--Section 224(i) of the Reclamation Reform Act 
        of 1982 (43 U.S.C. 390ww(i)) is amended by striking the last 
        sentence and inserting the following: ``The interest rate 
        applicable to underpayments shall be equal to the rate 
        applicable to expenditures under section 202(3)(C).''.
    (g) Reporting.--Section 228 of the Reclamation Reform Act of 1982 
(43 U.S.C. 390zz) is amended by inserting ``operator or'' before 
``contracting entity'' each place it appears.
    (h) Memorandum of Understanding.--The Reclamation Reform Act of 
1982 (43 U.S.C. 390aa et seq.) is amended--
            (1) by redesignating sections 229 and 230 as sections 230 
        and 231; and
            (2) by inserting after section 228 the following:

``SEC. 229. MEMORANDUM OF UNDERSTANDING.

    ``The Secretary, the Secretary of the Treasury, and the Secretary 
of Agriculture shall enter into a memorandum of understanding or other 
appropriate instrument to permit the Secretary, notwithstanding section 
6103 of the Internal Revenue Code of 1986, to have access to and use of 
available information collected or maintained by the Department of the 
Treasury and the Department of Agriculture that would aid enforcement 
of the ownership and pricing limitations of Federal reclamation law.''.

   TITLE II--TERMINATION OF THE UNIFORMED SERVICES UNIVERSITY OF THE 
                            HEALTH SCIENCES

SECTION 201. TERMINATION.

    (a) In General.--The Uniformed Services University of the Health 
Sciences is terminated.
    (b) Conforming Amendments.--
            (1) Chapter 104 of title 10, United States Code, is 
        repealed.
            (2) The table of chapters at the beginning of subtitle A of 
        such title, and at the beginning of part III of such subtitle, 
        are each amended by striking out the item relating to chapter 
        104.
    (c) Effective Dates.--
            (1) Termination.--The termination of the Uniformed Services 
        University of the Health Sciences under subsection (a)(1) shall 
        take effect on the day after the date of the graduation from 
        the university of the last class of students that enrolled in 
        such university on or before the date of the enactment of this 
        Act.
            (2) Amendments.--The amendments made by subsection (a)(2) 
        shall take effect on the date of the enactment of this Act, 
        except that the provisions of chapter 104 of title 10, United 
        States Code, as in effect on the day before such date, shall 
        continue to apply with respect to the Uniformed Services 
        University of the Health Sciences until the termination of the 
        university under this section.

 TITLE III--TERMINATION OF PRODUCTION UNDER THE D5 SUBMARINE-LAUNCHED 
                            MISSILE PROGRAM

SECTION 301. PRODUCTION TERMINATION.

    (a) Termination of Program.--The Secretary of Defense shall 
terminate production of D5 submarine-launched ballistic missiles under 
the D5 submarine-launched ballistic missile program.
    (b) Payment of Termination Costs.--Funds available on or after the 
date of the enactment of this Act for obligation for the D5 submarine-
launched ballistic missile program may be obligated for production 
under that program only for payment of the costs associated with the 
termination of production under this Act.

SEC. 302. CURRENT PROGRAM ACTIVITIES.

    Nothing in this legislation shall be construed to prohibit or 
otherwise affect the availability of funds for the following:
            (1) Production of D5 submarine-launched ballistic missiles 
        in production on the date of the enactment of this Act.
            (2) Maintenance after the date of the enactment of this Act 
        of the arsenal of D5 submarine-launched ballistic missiles in 
        existence on such date, including the missiles described in 
        paragraph (1).

Ex Output:
Deficit Reduction Act of 2003 - Irrigation Subsidy Reduction Act of 2001 (sic) - Amends the Reclamation Reform Act of 1982 to direct the Secretary of the Interior, for each parcel of land to which irrigation water is delivered or proposed to be delivered, to identify a single individual or legal entity as the owner, lessee, or operator.Allows irrigation water to be delivered at less than the normal per-acre cost to either: (1) a qualified recipient that reports gross farm income from a single farm operation in excess of $500,000 per taxable year; or (2) a limited recipient that received such water on or before October 1, 1981, and that reports gross farm income in excess of such amount.Requires lessees (currently, only owners and operators) of an irrigation district to furnish such district a certification of compliance with the Act. Allows the Secretary to require a lessee or operator to submit for examination a copy of a tax return for any taxable year in which the single farm operation of the lessee or operator received irrigation water at less than full cost.Repeals a provision exempting from Federal reclamation ownership and cost pricing limitations district lands held in trust for a beneficiary or beneficiaries whose interests in the lands served do not exceed such limitations.Directs the Secretaries of the Interior, the Treasury, and Agriculture to enter into a memorandum of understanding to permit the Secretary of the Interior to have access to and use available information collected or maintained by either the Department of the Treasury or Agriculture that would aid in enforcement of the ownership and pricing limitations of Federal reclamation law.Terminates the Uniformed Services University of Health Science.Requires the Secretary of Defense to terminate production of D5 submarine-launched ballistic missiles under the D5 submarine-launched ballistic missile program.


Ex Input:
SECTION 1. SHORT TITLE.

    This Act may be cited as the ``Technologies for Energy Jobs and 
Security Act of 2017''.

SEC. 2. EXTENSION AND PHASEOUT OF RESIDENTIAL ENERGY EFFICIENT 
              PROPERTY.

    (a) Extension.--Section 25D(h) of the Internal Revenue Code of 1986 
is amended by striking ``December 31, 2016 (December 31, 2021, in the 
case of any qualified solar electric property expenditures and 
qualified solar water heating property expenditures)'', and inserting 
``December 31, 2021''.
    (b) Phaseout.--
            (1) In general.--Paragraphs (3), (4), and (5) of section 
        25D(a) of the Internal Revenue Code of 1986 are amended by 
        striking ``30 percent'' each place it appears and inserting 
        ``the applicable percentage''.
            (2) Conforming amendment.--Section 25D(g) of the Internal 
        Revenue Code of 1986 is amended by striking ``paragraphs (1) 
        and (2) of''.
    (c) Effective Date.--The amendments made by this section shall take 
effect on January 1, 2017.

SEC. 3. EXTENSION AND PHASEOUT OF ENERGY CREDIT.

    (a) Credit Percentage for Geothermal Energy Property.--Section 
48(a)(2)(A)(i)(II) of the Internal Revenue Code of 1986 is amended by 
striking ``paragraph (3)(A)(i)'' and inserting ``clause (i) or (iii) of 
paragraph (3)(A)''.
    (b) Extension of Solar and Thermal Energy Property.--Section 
48(a)(3)(A) of the Internal Revenue Code of 1986 is amended--
            (1) in clause (ii) by striking ``periods ending before 
        January 1, 2017'' and inserting ``property the construction of 
        which begins before January 1, 2022''; and
            (2) in clause (vii) by striking ``periods ending before 
        January 1, 2017'' and inserting ``property the construction of 
        which begins before January 1, 2022''.
    (c) Phaseout of 30-Percent Credit Rate for Geothermal Energy 
Property.--Section 48(a)(6) of the Internal Revenue Code of 1986 is 
amended--
            (1) in the heading, by inserting ``and geothermal'' after 
        ``solar'';
            (2) in subparagraph (A), by striking ``paragraph 
        (3)(A)(i)'' and inserting ``clause (i) or (iii) of paragraph 
        (3)(A)''; and
            (3) in subparagraph (B), by striking ``property energy 
        property described in paragraph (3)(A)(i)'' and inserting 
        ``energy property described in clause (i) or (iii) of paragraph 
        (3)(A)''.
    (d) Phaseout of 30-Percent Credit Rate for Fiber-Optic Solar, 
Qualified Fuel Cell, and Qualified Small Wind Energy Property.--
            (1) In general.--Section 48(a) of the Internal Revenue Code 
        of 1986 is amended by adding the following:
            ``(7) Phaseout for fiber-optic solar, qualified fuel cell, 
        and qualified small wind energy property.--In the case of any 
        energy property described in paragraph (3)(A)(ii), qualified 
        fuel cell property, or qualified small wind property, the 
        energy percentage determined under paragraph (2) shall be equal 
        to--
                    ``(A) in the case of any property the construction 
                of which begins after December 31, 2019, and before 
                January 1, 2021, 26 percent, and
                    ``(B) in the case of any property the construction 
                of which begins after December 31, 2020, and before 
                January 1, 2022, 22 percent.''.
            (2) Conforming amendment.--Section 48(a)(2)(A) of the 
        Internal Revenue Code of 1986 is amended by striking 
        ``paragraph (6)'' and inserting ``paragraphs (6) and (7)''.
    (e) Extension of Qualified Fuel Cell Property.--Section 48(c)(1)(D) 
of the Internal Revenue Code of 1986 is amended by striking ``for any 
period after December 31, 2016'' and inserting ``the construction of 
which does not begin before January 1, 2022''.
    (f) Extension of Qualified Microturbine Property.--Section 
48(c)(2)(D) of the Internal Revenue Code of 1986 is amended by striking 
``for any period after December 31, 2016'' and inserting ``the 
construction of which does not begin before January 1, 2022''.
    (g) Extension of Combined Heat and Power System Property.--Section 
48(c)(3)(A)(iv) of the Internal Revenue Code of 1986 is amended by 
striking ``which is placed in service before January 1, 2017'' and 
inserting ``the construction of which begins before January 1, 2022''.
    (h) Extension of Qualified Small Wind Energy Property.--Section 
48(c)(4)(C) of the Internal Revenue Code of 1986 is amended by striking 
``for any period after December 31, 2016'' and inserting ``the 
construction of which does not begin before January 1, 2022''.
    (i) Effective Date.--The amendments made by this section shall take 
effect on January 1, 2017.

SEC. 4. WASTE HEAT TO POWER PROPERTY.

    (a) In General.--
            (1) Introduction of waste to heat power energy property.--
        Section 48(a)(3)(A) of the Internal Revenue Code of 1986 is 
        amended--
                    (A) at the end of clause (vi) by striking ``or''; 
                and
                    (B) at the end of clause (vii) by inserting ``or'' 
                after the comma; and
                    (C) by adding the following:
                            ``(viii) waste heat to power property,''.
            (2) Definitions and limitations.--Section 48(c) of the 
        Internal Revenue Code of 1986 is amended by adding the 
        following:
            ``(5) Waste heat to power property.--
                    ``(A) In general.--The term `waste heat to power 
                property' means property--
                            ``(i) comprising a system which generates 
                        electricity through the recovery of a qualified 
                        waste heat resource, and
                            ``(ii) the construction of which begins 
                        before January 1, 2022.
                    ``(B) Qualified waste heat resource.--The term 
                `qualified waste heat resource' means--
                            ``(i) exhaust heat or flared gas from an 
                        industrial process that does not have, as its 
                        primary purpose, the production of electricity, 
                        and
                            ``(ii) a pressure drop in any gas for an 
                        industrial or commercial process.
                    ``(C) Limitations.--
                            ``(i) In general.--For purposes of 
                        subsection (a)(1), the basis of any waste heat 
                        to power property taken into account under this 
                        section shall not exceed the excess of--
                                    ``(I) the basis of such property, 
                                over
                                    ``(II) the fair market value of 
                                comparable property which does not have 
                                the capacity to capture and convert a 
                                qualified waste heat resource to 
                                electricity.
                            ``(ii) Capacity limitation.--The term 
                        `waste heat to power property' shall not 
                        include any property comprising a system if 
                        such system has a capacity in excess of 50 
                        megawatts.''.
    (b) Effective Date.--The amendments made by this section shall 
apply to periods after December 31, 2016, in taxable years ending after 
such date, under rules similar to the rules of section 48(m) of the 
Internal Revenue Code of 1986 (as in effect on the day before the date 
of the enactment of the Revenue Reconciliation Act of 1990).

Ex Output:

Technologies for Energy Jobs and Security Act of 2017  This bill amends the Internal Revenue Code to extend and modify tax credits for residential energy efficient property and investments in energy property.  The bill modifies the tax credit for residential energy efficient property to extend through 2021 the credits for expenditures for fuel cell property, small wind energy property, and geothermal heat pump property. For each extended credit, the bill phases out the current credit rate of 30% of expenditures by reducing it to 26% or 22%, depending on the date that the property is placed in service. The bill extends the tax credit for investments in energy property for the following property with construction that begins before January 1, 2022:    fiber-optic solar energy property,  thermal energy property.   fuel cell property,   microturbine property,   combined heat and power system property, and  small wind energy property.  The bill phases out the current credit rate of 30% for investments in geothermal energy property, fiber-optic solar energy property, fuel cell property, and small wind energy property by reducing it to 26% or 22%, depending on the date that the property is placed in service.  The bill also allows an energy tax credit through 2021 for investment in waste heat to power property that does not have a capacity in excess of 50 megawatts. &quot;Waste heat to power property&quot; is property comprising a system which generates electricity through the recovery of a qualified waste heat resource.