<commit_before>package com.mobilejazz.cacheio;

import android.content.Context;
import com.google.gson.Gson;
import com.mobilejazz.cacheio.manager.CacheOpenHelper;
import com.squareup.sqlbrite.BriteDatabase;
import com.squareup.sqlbrite.SqlBrite;

public class CacheIO {

  private Cache cache;

  public CacheIO(Gson gson, String dbName, Context context, boolean logging) {
    SqlBrite sqlBrite = SqlBrite.create();
    BriteDatabase briteDatabase =
        sqlBrite.wrapDatabaseHelper(new CacheOpenHelper(context, dbName));

    cache = new CacheManager(gson, briteDatabase);
  }

  public Cache cacheDataSource() {
    return cache;
  }

  public static Builder with(Context context) {
    return new Builder(context);
  }

  public static class Builder {

    private Gson gson;
    private String dbName;
    private boolean logging;
    private Context context;
<commit_msg>Changed main constructor contract (work in progress)<commit_after>package com.mobilejazz.cacheio;

import android.content.Context;
import com.google.gson.Gson;
import com.mobilejazz.cacheio.manager.CacheOpenHelper;
import com.squareup.sqlbrite.BriteDatabase;
import com.squareup.sqlbrite.SqlBrite;

public class CacheIO {

  private Cache cache;

  public CacheIO(Gson gson, String dbName, Context context, boolean logging) {
    SqlBrite sqlBrite = SqlBrite.create();
    BriteDatabase briteDatabase = sqlBrite.wrapDatabaseHelper(new CacheOpenHelper(context, dbName));

    Persitence persitence = new PersitenceSqlLite(briteDatabase);
    Serializer serializer = new GsonSerializer(gson);

    cache = new CacheManager(persitence, serializer);
  }

  public Cache cacheDataSource() {
    return cache;
  }

  public static Builder with(Context context) {
    return new Builder(context);
  }

  public static class Builder {

    private Gson gson;
    private String dbName;
    private boolean logging;
    private Context context;

{'fraction_non_alphanumeric': 0.0782472613458529, 'fraction_numerical': 0.0, 'mean_word_length': 4.448863636363637, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '2765661', 'n_tokens_mistral': 569, 'n_tokens_neox': 552, 'n_words': 150}