<commit_before># DataCenter

A controller to handle data loading and forwarding data changes to adapter.


## Dependency

```gradle

    repositories {
        jcenter()
    }
    
    dependencies {
        compile 'co.yishun.library:datacenter:0.1.1'
    }


```

## Usage

```java


        SuperRecyclerView superRecyclerView = (SuperRecyclerView) findViewById(R.id.superRecyclerView);
        superRecyclerView.setLayoutManager(new LinearLayoutManager(this));

        final DataCenterAdapter<SampleStringData, SampleViewHolder> adapter = new SampleDataCenterAdapter(this);
        adapter.setLoader(this);
        adapter.setOnEndListener(this);
        adapter.setRefreshable(new SuperRecyclerViewRefreshable(superRecyclerView));
        adapter.setLoadMore(new SuperRecyclerViewLoadMore(superRecyclerView));
        superRecyclerView.setAdapter(adapter);<commit_msg>fix version<commit_after># DataCenter

A controller to handle data loading and forwarding data changes to adapter.


## Dependency

```gradle

    repositories {
        jcenter()
    }
    
    dependencies {
        compile 'co.yishun.library:datacenter:0.0.1'
    }


```

## Usage

```java


        SuperRecyclerView superRecyclerView = (SuperRecyclerView) findViewById(R.id.superRecyclerView);
        superRecyclerView.setLayoutManager(new LinearLayoutManager(this));

        final DataCenterAdapter<SampleStringData, SampleViewHolder> adapter = new SampleDataCenterAdapter(this);
        adapter.setLoader(this);
        adapter.setOnEndListener(this);
        adapter.setRefreshable(new SuperRecyclerViewRefreshable(superRecyclerView));
        adapter.setLoadMore(new SuperRecyclerViewLoadMore(superRecyclerView));
        superRecyclerView.setAdapter(adapter);
{'fraction_non_alphanumeric': 0.0882016036655212, 'fraction_numerical': 0.003436426116838488, 'mean_word_length': 3.9350282485875705, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '152845', 'n_tokens_mistral': 524, 'n_tokens_neox': 471, 'n_words': 84}