; (B) upon release from Federal custody, if the eligible offender is sentenced to a term of imprisonment and not sentenced to a term of supervised release; and (C) after completion of a 1-year period of supervised release, if the eligible offender is sentenced to a term of imprisonment and a term of supervised release, or upon early discharge from supervised release before completing the 1-year period. (3) Order for issuance of certificate (A) In general Upon a petition filed with a district court of the United States under paragraph (2), the court may issue a Federal certificate of rehabilitation if the court finds, by clear and convincing evidence, that an eligible offender has— (i) demonstrated a commitment to a law-abiding future; and (ii) successfully reintegrated into society. (B) Factors for making determination In determining whether to issue a Federal certificate of rehabilitation under subparagraph (A), the court may consider, in addition to other factors the court determines relevant— (i) the initial crime of conviction of the eligible offender; (ii) the nature and duration of any participation in or completion of any job-training or re-entry program by the eligible offender; (iii) the nature and duration of any participation in or completion of any education program by the eligible offender; (iv) the nature and duration of any participation in or completion of a substance abuse or mental health program by the eligible offender; (v) attempts by the eligible offender to secure employment following the completion of the sentence of the eligible offender; (vi) attempts by the eligible offender to make restitution for the offense; (vii) the current economic and social circumstances of the eligible offender; (viii) the conduct of the eligible offender while serving, in connection with the instant offense, any term of probation, imprisonment, and supervised release and following any term of supervised release