<commit_before>
package com.instabug.reactlibrary;

import java.util.Arrays;
import java.util.Collections;
import java.util.List;
import java.util.ArrayList;
import android.app.Application;

import com.facebook.react.ReactPackage;
import com.facebook.react.bridge.NativeModule;
import com.facebook.react.bridge.ReactApplicationContext;
import com.facebook.react.uimanager.ViewManager;
import com.facebook.react.bridge.JavaScriptModule;


import com.instabug.library.Instabug;
import com.instabug.library.InstabugColorTheme;
import com.instabug.library.invocation.InstabugInvocationEvent;


public class RNInstabugReactnativePackage implements ReactPackage {

    Application androidApplication;
    private String mAndroidApplicationToken;
    private Instabug mInstabug;
    private Instabug.Builder mBuilder;
    private InstabugInvocationEvent invocationEvent=InstabugInvocationEvent.FLOATING_BUTTON;
    private InstabugColorTheme instabugColorTheme=InstabugColorTheme.InstabugColorThemeLight;
    public RNInstabugReactnativePackage(Instabug instabug) {
        this.mInstabug = instabug;
    }

    public RNInstabugReactnativePackage(String androidApplicationToken,Application application) {
        this(androidApplicationToken,application,this.invocationEvent);
    }

    public RNInstabugReactnativePackage(String androidApplicationToken,Application application,String invocationEventValue) {
        this(androidApplicationToken,application,invocationEventValue,this.instabugColorThemeValue);
    }

    public RNInstabugReactnativePackage(String androidApplicationToken,Application application,
        String invocationEventValue,String instabugColorThemeValue) {

        this.androidApplication = application;
        this.mAndroidApplicationToken = androidApplicationToken;

            //setting invocation event
            if(invocationEventValue.equals("button")) {
                this.invocationEvent=InstabugInvocationEvent.FLOATING_BUTTON;
            } else if(invocationEventValue.equals("swipe")) {
                this.invocationEvent=InstabugInvocationEvent.TWO_FINGER_SWIPE_LEFT;

            } else if(invocationEventValue.equals("shake")) {
                this.invocationEvent=InstabugInvocationEvent.SHAKE;

            } else if(invocationEventValue.equals("screenshot")){
                this.invocationEvent=InstabugInvocationEvent.SCREENSHOT_GESTURE;

            } else if(invocationEventValue.equals("none")) {
                this.invocationEvent=InstabugInvocationEvent.NONE;<commit_msg>fix RNInstabugReactnativePackage constructors params incompatible types<commit_after>
package com.instabug.reactlibrary;

import java.util.Arrays;
import java.util.Collections;
import java.util.List;
import java.util.ArrayList;
import android.app.Application;

import com.facebook.react.ReactPackage;
import com.facebook.react.bridge.NativeModule;
import com.facebook.react.bridge.ReactApplicationContext;
import com.facebook.react.uimanager.ViewManager;
import com.facebook.react.bridge.JavaScriptModule;


import com.instabug.library.Instabug;
import com.instabug.library.InstabugColorTheme;
import com.instabug.library.invocation.InstabugInvocationEvent;


public class RNInstabugReactnativePackage implements ReactPackage {

    Application androidApplication;
    private String mAndroidApplicationToken;
    private Instabug mInstabug;
    private Instabug.Builder mBuilder;
    private InstabugInvocationEvent invocationEvent=InstabugInvocationEvent.FLOATING_BUTTON;
    private InstabugColorTheme instabugColorTheme=InstabugColorTheme.InstabugColorThemeLight;
    public RNInstabugReactnativePackage(Instabug instabug) {
        this.mInstabug = instabug;
    }

    public RNInstabugReactnativePackage(String androidApplicationToken,Application application) {
        this(androidApplicationToken,application,"button");
    }

    public RNInstabugReactnativePackage(String androidApplicationToken,Application application,String invocationEventValue) {
        this(androidApplicationToken,application,invocationEventValue,"light");
    }

    public RNInstabugReactnativePackage(String androidApplicationToken,Application application,
        String invocationEventValue,String instabugColorThemeValue) {

        this.androidApplication = application;
        this.mAndroidApplicationToken = androidApplicationToken;

            //setting invocation event
            if(invocationEventValue.equals("button")) {
                this.invocationEvent=InstabugInvocationEvent.FLOATING_BUTTON;
            } else if(invocationEventValue.equals("swipe")) {
                this.invocationEvent=InstabugInvocationEvent.TWO_FINGER_SWIPE_LEFT;

            } else if(invocationEventValue.equals("shake")) {
                this.invocationEvent=InstabugInvocationEvent.SHAKE;

            } else if(invocationEventValue.equals("screenshot")){
                this.invocationEvent=InstabugInvocationEvent.SCREENSHOT_GESTURE;

            } else if(invocationEventValue.equals("none")) {
                this.invocationEvent=InstabugInvocationEvent.NONE;
{'fraction_non_alphanumeric': 0.07079646017699115, 'fraction_numerical': 0.0, 'mean_word_length': 4.676339285714286, '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': '262386', 'n_tokens_mistral': 1372, 'n_tokens_neox': 1337, 'n_words': 194}