<commit_before>package it.axant.axemas;


import android.app.AlertDialog;
import android.app.Fragment;
import android.content.Context;
import android.content.SharedPreferences;

import org.json.JSONObject;

public class NavigationSectionsManager {

    private final static String PREFERENCES = "AXEMAS";

    public static void registerController(Context context, Class controllerClass, String route) {
        ((AXMActivity) context).registerController(controllerClass, route);
    }

    public static void registerDefaultController(Context context, Class controllerClass) {
        ((AXMActivity) context).registerDefaultController(controllerClass);
    }

    public static void makeApplicationRootController(Context context, JSONObject data, String sidebarUrl) {
        ((AXMActivity) context).makeApplicationRootController(data, sidebarUrl);
    }

    public static void setSideBarIcon(Context context, String resourceName) {
        ((AXMActivity) context).setSideBarIcon(resourceName);
    }

    public static void makeApplicationRootController(Context context, Fragment fragment, String sidebarUrl) {
        ((AXMActivity) context).makeApplicationRootController(fragment, sidebarUrl);
    }

    public static void makeApplicationRootController(Context context, JSONObject data) {
        ((AXMActivity) context).makeApplicationRootController(data);
    }

    public static void makeApplicationRootController(Context context, JSONObject data, JSONObject... tabs) {
        ((AXMActivity) context).makeApplicationRootController(data, tabs);
    }

    public static void makeApplicationRootController(Context context, JSONObject data, String sidebarUrl, JSONObject... tabs) {
        ((AXMActivity) context).makeApplicationRootController(data, sidebarUrl, tabs);
    }

    public static void goTo(Context context, JSONObject data) {
        ((AXMActivity) context).loadContent(data);
    }

    public static void pushFragment(Context context, Fragment fragment) {
        ((AXMActivity) context).loadContent(fragment);
    }

    public static void sidebarButtonVisibility(Context context, boolean visible) {
        ((AXMActivity) context).sidebarButtonVisibility(visible);
    }

    public static void toggleSidebar(Context context, boolean visible) {<commit_msg>add NavigationSectionManager.activeFragment as it was available on iOS<commit_after>package it.axant.axemas;


import android.app.AlertDialog;
import android.app.Fragment;
import android.content.Context;
import android.content.SharedPreferences;

import org.json.JSONObject;

public class NavigationSectionsManager {

    private final static String PREFERENCES = "AXEMAS";

    public static void registerController(Context context, Class controllerClass, String route) {
        ((AXMActivity) context).registerController(controllerClass, route);
    }

    public static void registerDefaultController(Context context, Class controllerClass) {
        ((AXMActivity) context).registerDefaultController(controllerClass);
    }

    public static void makeApplicationRootController(Context context, JSONObject data, String sidebarUrl) {
        ((AXMActivity) context).makeApplicationRootController(data, sidebarUrl);
    }

    public static void setSideBarIcon(Context context, String resourceName) {
        ((AXMActivity) context).setSideBarIcon(resourceName);
    }

    public static void makeApplicationRootController(Context context, Fragment fragment, String sidebarUrl) {
        ((AXMActivity) context).makeApplicationRootController(fragment, sidebarUrl);
    }

    public static void makeApplicationRootController(Context context, JSONObject data) {
        ((AXMActivity) context).makeApplicationRootController(data);
    }

    public static void makeApplicationRootController(Context context, JSONObject data, JSONObject... tabs) {
        ((AXMActivity) context).makeApplicationRootController(data, tabs);
    }

    public static void makeApplicationRootController(Context context, JSONObject data, String sidebarUrl, JSONObject... tabs) {
        ((AXMActivity) context).makeApplicationRootController(data, sidebarUrl, tabs);
    }

    public static void goTo(Context context, JSONObject data) {
        ((AXMActivity) context).loadContent(data);
    }

    public static void pushFragment(Context context, Fragment fragment) {
        ((AXMActivity) context).loadContent(fragment);
    }

    public static SectionFragment activeFragment(Context context) {
        return (SectionFragment)((AXMActivity) context).getFragmentManager().findFragmentByTag("web_fragment");
    }

    public static void sidebarButtonVisibility(Context context, boolean visible) {
        ((AXMActivity) context).sidebarButtonVisibility(visible);
    }

    public static void toggleSidebar(Context context, boolean visible) {
{'fraction_non_alphanumeric': 0.08361064891846921, 'fraction_numerical': 0.0, 'mean_word_length': 4.752392344497608, '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': '1794467', 'n_tokens_mistral': 1210, 'n_tokens_neox': 1148, 'n_words': 305}