<commit_before>    v1 = 0x1;
    v2 = 0x0;
    v0 = p0.Lcom/ushaqi/zhuishushenqi/reader/ReaderViewPager;->mAdapter;
    v8 = v0.getCount();
    p0.Lcom/ushaqi/zhuishushenqi/reader/ReaderViewPager;->mExpectedAdapterCount = v8;
    v0 = p0.Lcom/ushaqi/zhuishushenqi/reader/ReaderViewPager;->mItems;
    v0 = v0.size();
    v3 = p0.Lcom/ushaqi/zhuishushenqi/reader/ReaderViewPager;->mOffscreenPageLimit;
    v3 = v3 << 0x1;
    v3 = v3 + 0x1;
    if (v0 >= v3) {
//       if-ge v0, v3, :cond_1
    }
    v0 = p0.Lcom/ushaqi/zhuishushenqi/reader/ReaderViewPager;->mItems;
    v0 = v0.size();
    if (v0 >= v8) {
//       if-ge v0, v8, :cond_1
    }
    v0 = v1;
    :goto_0
    v3 = p0.Lcom/ushaqi/zhuishushenqi/reader/ReaderViewPager;->mCurItem;
    v4 = v2;
    v5 = v3;
    v6 = v0;
    v3 = v2;
    :goto_1
    v0 = p0.Lcom/ushaqi/zhuishushenqi/reader/ReaderViewPager;->mItems;
    v0 = v0.size();
    if (v3 >= v0) {
//       if-ge v3, v0, :cond_4
    }
    v0 = p0.Lcom/ushaqi/zhuishushenqi/reader/ReaderViewPager;->mItems;
    v0 = v0.get(v3);
    check-cast v0, Lcom/ushaqi/zhuishushenqi/reader/cs;
    v7 = p0.Lcom/ushaqi/zhuishushenqi/reader/ReaderViewPager;->mAdapter;
    v9 = v0.Lcom/ushaqi/zhuishushenqi/reader/cs;->a;
    v7 = v7.getItemPosition(v9);
    v9 = -0x1;
    if (v7 == v9) {
//       if-eq v7, v9, :cond_9
    }
    v9 = -0x2;
    if (v7 != v9) {
//       if-ne v7, v9, :cond_2
    }
    v6 = p0.Lcom/ushaqi/zhuishushenqi/reader/ReaderViewPager;->mItems;
    v6.remove(v3);
    v3 = v3 + -0x1;
    if (v4 != 0) {
//       if-nez v4, :cond_0
    }
    v4 = p0.Lcom/ushaqi/zhuishushenqi/reader/ReaderViewPager;->mAdapter;
    v4.startUpdate(p0);
    v4 = v1;
    :cond_0
    v6 = p0.Lcom/ushaqi/zhuishushenqi/reader/ReaderViewPager;->mAdapter;
    v7 = v0.Lcom/ushaqi/zhuishushenqi/reader/cs;->b;
    v9 = v0.Lcom/ushaqi/zhuishushenqi/reader/cs;->a;
    v6.destroyItem(p0, v7, v9);
    v6 = p0.Lcom/ushaqi/zhuishushenqi/reader/ReaderViewPager;->mCurItem;
    v0 = v0.Lcom/ushaqi/zhuishushenqi/reader/cs;->b;
    if (v6 != v0) {
//       if-ne v6, v0, :cond_a
    }
    v0 = p0.Lcom/ushaqi/zhuishushenqi/reader/ReaderViewPager;->mCurItem;
    v5 = v8 + -0x1;
    v0 = Ljava/lang/Math.min(v0, v5);
    v5 = Ljava/lang/Math.max(v2, v0);
    v0 = v3;
    v3 = v4;
    v4 = v5;
    v5 = v1;
    :goto_2
    v0 = v0 + 0x1;
    v6 = v5;
    v5 = v4;
    v4 = v3;
    v3 = v0;
    goto :goto_1
    :cond_1
    v0 = v2;
    goto :goto_0
    :cond_2
    v9 = v0.Lcom/ushaqi/zhuishushenqi/reader/cs;->b;
    if (v9 == v7) {
//       if-eq v9, v7, :cond_9
    }
    v6 = v0.Lcom/ushaqi/zhuishushenqi/reader/cs;->b;
    v9 = p0.Lcom/ushaqi/zhuishushenqi/reader/ReaderViewPager;->mCurItem;
    if (v6 != v9) {
//       if-ne v6, v9, :cond_3
    }
    v5 = v7;
    :cond_3
    v0.Lcom/ushaqi/zhuishushenqi/reader/cs;->b = v7;
    v0 = v3;
    v3 = v4;
    v4 = v5;
    v5 = v1;
    goto :goto_2
    :cond_4
    if (v4 == 0) {
//       if-eqz v4, :cond_5
    }
    v0 = p0.Lcom/ushaqi/zhuishushenqi/reader/ReaderViewPager;->mAdapter;
    v0.finishUpdate(p0);
    :cond_5
    v0 = p0.Lcom/ushaqi/zhuishushenqi/reader/ReaderViewPager;->mItems;
    v3 = Lcom/ushaqi/zhuishushenqi/reader/ReaderViewPager;->COMPARATOR;
    Ljava/util/Collections.sort(v0, v3);
    if (v6 == 0) {
//       if-eqz v6, :cond_8
    }
    v4 = p0.getChildCount();
    v3 = v2;
    :goto_3
    if (v3 >= v4) {
//       if-ge v3, v4, :cond_7
    }
    v0 = p0.getChildAt(v3);
    v0 = v0.getLayoutParams();
    check-cast v0, Lcom/ushaqi/zhuishushenqi/reader/ct;
    v6 = v0.Lcom/ushaqi/zhuishushenqi/reader/ct;->a;
    if (v6 != 0) {
//       if-nez v6, :cond_6
    }
    v6 = 0x0;
    v0.Lcom/ushaqi/zhuishushenqi/reader/ct;->c = v6;
    :cond_6
    v0 = v3 + 0x1;
    v3 = v0;
    goto :goto_3
    :cond_7
    p0.a(v5, v2, v1);
    p0.requestLayout();
    :cond_8
    return;
    :cond_9
    v0 = v3;
    v3 = v4;
    v4 = v5;
    v5 = v6;
    goto :goto_2
    :cond_a
    v0 = v3;
    v3 = v4;
    v4 = v5;
    v5 = v1;
    goto :goto_2<commit_msg>fix ReaderViewPager<commit_after>    v1 = 0x1;
    v2 = 0x0;
    v0 = p0.Lcom/ushaqi/zhuishushenqi/reader/ReaderViewPager;->mAdapter;
    v8 = v0.getCount();
    p0.Lcom/ushaqi/zhuishushenqi/reader/ReaderViewPager;->mExpectedAdapterCount = v8;
    v0 = p0.Lcom/ushaqi/zhuishushenqi/reader/ReaderViewPager;->mItems;
    v0 = v0.size();
    v3 = p0.Lcom/ushaqi/zhuishushenqi/reader/ReaderViewPager;->mOffscreenPageLimit;
    v3 = v3 << 0x1;
    v3 = v3 + 0x1;
    if (v0 >= v3 || p0.mItems.size() >= v8) {
		v0 = v2;
    } else {
		v0 = v1;
	}
    v3 = p0.Lcom/ushaqi/zhuishushenqi/reader/ReaderViewPager;->mCurItem;
    v4 = v2;
    v5 = v3;
    v6 = v0;
    v3 = v2;
    while (v3 < p0.mItems.size()) {
		v0 = p0.Lcom/ushaqi/zhuishushenqi/reader/ReaderViewPager;->mItems;
		v0 = v0.get(v3);
		check-cast v0, Lcom/ushaqi/zhuishushenqi/reader/cs;
		v7 = p0.Lcom/ushaqi/zhuishushenqi/reader/ReaderViewPager;->mAdapter;
		v9 = v0.Lcom/ushaqi/zhuishushenqi/reader/cs;->a;
		v7 = v7.getItemPosition(v9);
		if (v7 == -1) {
			v0 = v3;
			v3 = v4;
			v4 = v5;
			v5 = v6;
		} else if (v7 == -2) {
			v6 = p0.Lcom/ushaqi/zhuishushenqi/reader/ReaderViewPager;->mItems;
			v6.remove(v3);
			v3 = v3 + -0x1;
			if (v4 == 0) {
				v4 = p0.Lcom/ushaqi/zhuishushenqi/reader/ReaderViewPager;->mAdapter;
				v4.startUpdate(p0);
				v4 = v1;
			}
			v6 = p0.Lcom/ushaqi/zhuishushenqi/reader/ReaderViewPager;->mAdapter;
			v7 = v0.Lcom/ushaqi/zhuishushenqi/reader/cs;->b;
			v9 = v0.Lcom/ushaqi/zhuishushenqi/reader/cs;->a;
			v6.destroyItem(p0, v7, v9);
			v6 = p0.Lcom/ushaqi/zhuishushenqi/reader/ReaderViewPager;->mCurItem;
			v0 = v0.Lcom/ushaqi/zhuishushenqi/reader/cs;->b;
			if (v6 != v0) {
				v0 = v3;
				v3 = v4;
				v4 = v5;
				v5 = v1;
			} else {
				v0 = p0.Lcom/ushaqi/zhuishushenqi/reader/ReaderViewPager;->mCurItem;
				v5 = v8 + -0x1;
				v0 = Ljava/lang/Math.min(v0, v5);
				v5 = Ljava/lang/Math.max(v2, v0);
				v0 = v3;
				v3 = v4;
				v4 = v5;
				v5 = v1;
			}
		} else {
			v9 = v0.Lcom/ushaqi/zhuishushenqi/reader/cs;->b;
			if (v9 == v7) {
				v0 = v3;
				v3 = v4;
				v4 = v5;
				v5 = v6;
			} else {
				v6 = v0.Lcom/ushaqi/zhuishushenqi/reader/cs;->b;
				v9 = p0.Lcom/ushaqi/zhuishushenqi/reader/ReaderViewPager;->mCurItem;
				if (v6 == v9) {
					v5 = v7;
				}
				v0.Lcom/ushaqi/zhuishushenqi/reader/cs;->b = v7;
				v0 = v3;
				v3 = v4;
				v4 = v5;
				v5 = v1;
			}
		}
		v0 = v0 + 0x1;
		v6 = v5;
		v5 = v4;
		v4 = v3;
		v3 = v0;
    }
    if (v4 != 0) {
		v0 = p0.Lcom/ushaqi/zhuishushenqi/reader/ReaderViewPager;->mAdapter;
		v0.finishUpdate(p0);
    }
    v0 = p0.Lcom/ushaqi/zhuishushenqi/reader/ReaderViewPager;->mItems;
    v3 = Lcom/ushaqi/zhuishushenqi/reader/ReaderViewPager;->COMPARATOR;
    Ljava/util/Collections.sort(v0, v3);
    if (v6 != 0) {
		v4 = p0.getChildCount();
		v3 = v2;
		while (v3 < v4) {
			v0 = p0.getChildAt(v3);
			v0 = v0.getLayoutParams();
			check-cast v0, Lcom/ushaqi/zhuishushenqi/reader/ct;
			v6 = v0.Lcom/ushaqi/zhuishushenqi/reader/ct;->a;
			if (v6 == 0) {
				v6 = 0x0;
				v0.Lcom/ushaqi/zhuishushenqi/reader/ct;->c = v6;
			}
			v0 = v3 + 0x1;
			v3 = v0;
		}
		p0.a(v5, v2, v1);
		p0.requestLayout();
    }
    return;
{'fraction_non_alphanumeric': 0.16477272727272727, 'fraction_numerical': 0.06873614190687362, 'mean_word_length': 2.2626582278481013, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 61, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3602630', 'n_tokens_mistral': 3999, 'n_tokens_neox': 3686, 'n_words': 525}