<commit_before>package com.comentum.topcompanies.topcompanies;

import org.json.JSONException;
import org.json.JSONObject;

/**
 * Created by Joseph on 8/7/2014.
 */
public class Company {
    public Integer id;
    public String name;
    public String address;
    public String phone;
    public String city;
    public String state;
    public String website;
    public String zip;
    public String description;
    public String description_internal;
    public String description_meta;
    public Integer employees_no;
    private Integer revenue;
    private Integer founded;

    public Company() {
        id = 0;
        name = "";
        address = "";
        phone = "";
        city = "";
        state = "";
        website = "";
        zip = "";
        description = "";
        description_internal = "";
        description_meta = "";
        employees_no = 0;
    }

    public void fromJson(JSONObject obj) {
        /*
        {<commit_msg>check for null so it can be used in other places<commit_after>package com.comentum.topcompanies.topcompanies;

import org.json.JSONException;
import org.json.JSONObject;

/**
 * Created by Joseph on 8/7/2014.
 */
public class Company {
    public Integer id;
    public String name;
    public String address;
    public String phone;
    public String city;
    public String state;
    public String website;
    public String zip;
    public String description;
    public String description_internal;
    public String description_meta;
    public Integer employees_no;
    private Integer revenue;
    private Integer founded;

    public Company() {
        id = 0;
        name = "";
        address = "";
        phone = "";
        city = "";
        state = "";
        website = "";
        zip = "";
        description = "";
        description_internal = "";
        description_meta = "";
        employees_no = 0;
    }

    public void fromJson(JSONObject obj) {
        if (obj == null) {
            return;
        }
        /*
        {
{'fraction_non_alphanumeric': 0.09347181008902077, 'fraction_numerical': 0.00791295746785361, 'mean_word_length': 2.0838414634146343, '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': '2770305', 'n_tokens_mistral': 545, 'n_tokens_neox': 526, 'n_words': 166}