<commit_before><commit_msg>added Island Perimeter problem solution<commit_after>class Solution {
    public int islandPerimeter(int[][] grid) {
        
        int sum=0;
        
        for(int i=0;i<grid.length;i++){
            for(int j=0;j<grid[i].length;j++){
                if(grid[i][j]==1){
                    if( i==0 || grid[i-1][j]==0){
                      sum+=1;
                    }
                    
                    if(j==0 || grid[i][j-1]==0){
                        sum+=1;
                    }
                    
                    if(i==grid.length-1 || grid[i+1][j]==0){
                        sum+=1;
                    }
                    
                    if(j==grid[i].length-1 || grid[i][j+1]==0){
                        sum+=1;
                    }
                }
            }
        }
        
        return sum;
    }
}
{'fraction_non_alphanumeric': 0.14852607709750568, 'fraction_numerical': 0.022675736961451247, 'mean_word_length': 0.7838383838383839, 'pattern_counts': {'":': 0, '<': 5, '<?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': '2619714', 'n_tokens_mistral': 264, 'n_tokens_neox': 246, 'n_words': 32}