<commit_before>package nl.esciencecenter.ncradar;

public class JNIMethodsVol2Bird {

    static {

        try {
            System.loadLibrary("vol2birdjni");
        } catch (UnsatisfiedLinkError e) {
            System.err
                    .println("Native code library 'vol2bird' failed to load.\n"
                            + e);
        }
    }



    protected static final native int analyseCells(int[] dbzImageInt, int[] vradImageInt, int[] texImageInt,
            int[] clutterImageInt, int[] cellImageInt, int dbznRang, int dbznAzim,
            float dbzElev, float dbzValueScale, float dbzValueOffset,
            float vradValueScale, float vradValueOffset,
            float clutterValueScale, float clutterValueOffset,
            float texValueScale, float texValueOffset,
            int nCells, int areaMin, float cellDbzMin, float cellStdDevMax,
            float cellClutterFraction, float vradMinValue, float dbzClutterMin,
            int cmFlagInt, int dualPolFlagInt, int verboseInt);



    protected static final native float calcDist(int range1, int azimuth1,
            int range2, int azimuth2, float rangeScale, float azimuthScale);



    protected static final native void calcTexture(int[] texImage,
            int[] dbzImage, int[] vradImage, int nRangNeighborhood,
            int nAzimNeighborhood, int nCountMin, int texType,
            float texOffset, float texScale, float reflOffset, float reflScale,
            float vradOffset, float vradScale, int nRang, int nAzim);



    protected static final native void classify(int dbznRang, int dbznAzim, float dbzRangeScale, float dbzElev,
            float dbzHeig, float dbzValueScale, float dbzValueOffset, float dbzAzimScale,
            int dbzMissing, float vradValueScale, float vradValueOffset, int vradMissing,
            int rawReflMissing, float clutterValueScale, float clutterValueOffset,
            int[] cellImageInt, int[] dbzImageInt, int[] vradImageInt,
            int[] rawReflImageInt, int[] clutterImageInt, float[] zdata,
            float rangeMin, float rangeMax, float HLAYER, float XOFFSET, float XSCALE,
            float XMEAN, float height, float azimMin, float azimMax, float vradMin,
            float dbzClutter, float dbzMin, float dBZx, float DBZNOISE, int NGAPMIN,
            int NGAPBIN, int NDBZMIN, int layer, int id, int np, int nPointsPtr,
            int nPointsAllPtr, int nPointsClutterPtr, int nPointsRainPtr, int nPointsRainNoFringePtr,
            int clutterFlagInt, int rawReflFlagInt, int xflagInt);



    protected static final native int findCells(int[] texImage,
            int[] rhoImage, int[] zdrImage, int[] cellImage, int texMissing,
            int texnAzim, int texnRang, float texValueOffset,
            float texRangeScale, float texValueScale, float texThresMin,
            int rhoMissing, int rhonAzim, int rhonRang, float rhoValueOffset,
            float rhoValueScale, float rhoThresMin, int zdrMissing,
            int zdrnAzim, int zdrnRang, float zdrValueOffset,
            float zdrValueScale, float zdrThresMin, float reflThresMin,
            float rCellMax, int sign);


<commit_msg>Java-side of the JNI interface to findNearbyGateIndex()<commit_after>package nl.esciencecenter.ncradar;

public class JNIMethodsVol2Bird {

    static {

        try {
            System.loadLibrary("vol2birdjni");
        } catch (UnsatisfiedLinkError e) {
            System.err
                    .println("Native code library 'vol2bird' failed to load.\n"
                            + e);
        }
    }



    protected static final native int analyseCells(int[] dbzImageInt, int[] vradImageInt, int[] texImageInt,
            int[] clutterImageInt, int[] cellImageInt, int dbznRang, int dbznAzim,
            float dbzElev, float dbzValueScale, float dbzValueOffset,
            float vradValueScale, float vradValueOffset,
            float clutterValueScale, float clutterValueOffset,
            float texValueScale, float texValueOffset,
            int nCells, int areaMin, float cellDbzMin, float cellStdDevMax,
            float cellClutterFraction, float vradMinValue, float dbzClutterMin,
            int cmFlagInt, int dualPolFlagInt, int verboseInt);



    protected static final native float calcDist(int range1, int azimuth1,
            int range2, int azimuth2, float rangeScale, float azimuthScale);



    protected static final native void calcTexture(int[] texImage,
            int[] dbzImage, int[] vradImage, int nRangNeighborhood,
            int nAzimNeighborhood, int nCountMin, int texType,
            float texOffset, float texScale, float reflOffset, float reflScale,
            float vradOffset, float vradScale, int nRang, int nAzim);



    protected static final native void classify(int dbznRang, int dbznAzim, float dbzRangeScale, float dbzElev,
            float dbzHeig, float dbzValueScale, float dbzValueOffset, float dbzAzimScale,
            int dbzMissing, float vradValueScale, float vradValueOffset, int vradMissing,
            int rawReflMissing, float clutterValueScale, float clutterValueOffset,
            int[] cellImageInt, int[] dbzImageInt, int[] vradImageInt,
            int[] rawReflImageInt, int[] clutterImageInt, float[] zdata,
            float rangeMin, float rangeMax, float HLAYER, float XOFFSET, float XSCALE,
            float XMEAN, float height, float azimMin, float azimMax, float vradMin,
            float dbzClutter, float dbzMin, float dBZx, float DBZNOISE, int NGAPMIN,
            int NGAPBIN, int NDBZMIN, int layer, int id, int np, int nPointsPtr,
            int nPointsAllPtr, int nPointsClutterPtr, int nPointsRainPtr, int nPointsRainNoFringePtr,
            int clutterFlagInt, int rawReflFlagInt, int xflagInt);



    protected static final native int findCells(int[] texImage,
            int[] rhoImage, int[] zdrImage, int[] cellImage, int texMissing,
            int texnAzim, int texnRang, float texValueOffset,
            float texRangeScale, float texValueScale, float texThresMin,
            int rhoMissing, int rhonAzim, int rhonRang, float rhoValueOffset,
            float rhoValueScale, float rhoThresMin, int zdrMissing,
            int zdrnAzim, int zdrnRang, float zdrValueOffset,
            float zdrValueScale, float zdrThresMin, float reflThresMin,
            float rCellMax, int sign);



    protected static final native int findNearbyGateIndex(int nAzimParent, int nRangParent, int iParent,
            int nAzimChild, int nRangChild, int iChild);



{'fraction_non_alphanumeric': 0.06321751109750498, 'fraction_numerical': 0.0021429664778815248, 'mean_word_length': 2.8255269320843093, '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': '2013177', 'n_tokens_mistral': 1931, 'n_tokens_neox': 1844, 'n_words': 601}