<commit_before>package com.gcw.sapienza.places.model;

import com.parse.ParseClassName;
import com.parse.ParseGeoPoint;
import com.parse.ParseObject;

import java.util.Date;

/**
 * Class that encapsulate the Post table on Parse.com
 */
@ParseClassName("Posts")
public class Flag extends ParseObject{

    /**
     *
     * @return the text content of the post
     */

    public String getText(){ return (String)this.get("text"); }

    public String getCategory(){ return(String)this.get("category"); }

    public String getFbId()
    {
        return (String)this.get("fbId");
    }

    public ParseGeoPoint getLocation(){
        return (ParseGeoPoint)this.get("location");
    }

    public Date getDate() { return (Date)this.getCreatedAt(); }

    public int getTemp() { return (int)this.get("temp"); }

    public byte[] getPic() { return (byte[])this.get("pic"); }
}<commit_msg>solved NullPointerExec on cast to int<commit_after>package com.gcw.sapienza.places.model;

import com.parse.ParseClassName;
import com.parse.ParseGeoPoint;
import com.parse.ParseObject;

import java.util.Date;

/**
 * Class that encapsulate the Post table on Parse.com
 */
@ParseClassName("Posts")
public class Flag extends ParseObject{

    /**
     *
     * @return the text content of the post
     */

    public String getText(){ return (String)this.get("text"); }

    public String getCategory(){ return(String)this.get("category"); }

    public String getFbId()
    {
        return (String)this.get("fbId");
    }

    public ParseGeoPoint getLocation(){
        return (ParseGeoPoint)this.get("location");
    }

    public Date getDate() { return (Date)this.getCreatedAt(); }

    /**
     *
     * @return Integer.MAX_VALUE if there is no temperature
     */
    public int getTemp() {
        Integer temp =(Integer) this.get("temp");
        if(temp == null){
            return Integer.MAX_VALUE;
        }
        return temp;
    }

    public byte[] getPic() { return (byte[])this.get("pic"); }
}
{'fraction_non_alphanumeric': 0.1372255489021956, 'fraction_numerical': 0.0, 'mean_word_length': 3.1086065573770494, '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': '6611280', 'n_tokens_mistral': 620, 'n_tokens_neox': 596, 'n_words': 150}