<commit_before>import pickle
import numpy
import time
import argparse
import matplotlib.pyplot as plt
from pysb.integrate import Solver
import pysb.tools.render_reactions as rr
import pysb.tools.render_species as rs
from belpy.pysb_assembler import *


def set_initial(model, cell_line):
    print 'Setting initial conditions for cell line %s...' % cell_line
    try:
        x0 = numpy.recfromcsv('total_prots.csv') 
        x0_names = x0['proteins']
        x0_values = x0[cell_line.lower()]
        for n, v in zip(x0_names, x0_values):
            try:
                monomer = model.monomers[n]
            except KeyError:
                continue
            set_base_initial_condition(model, monomer, v)
    except IOError:<commit_msg>Changed setting initial amount message.<commit_after>import pickle
import numpy
import time
import argparse
import matplotlib.pyplot as plt
from pysb.integrate import Solver
import pysb.tools.render_reactions as rr
import pysb.tools.render_species as rs
from belpy.pysb_assembler import *


def set_initial(model, cell_line):
    try:
        x0 = numpy.recfromcsv('total_prots.csv') 
        x0_names = x0['proteins']
        x0_values = x0[cell_line.lower()]
        print 'Setting initial conditions for cell line %s...' % cell_line
        for n, v in zip(x0_names, x0_values):
            try:
                monomer = model.monomers[n]
            except KeyError:
                continue
            set_base_initial_condition(model, monomer, v)
    except IOError:
{'fraction_non_alphanumeric': 0.07575757575757576, 'fraction_numerical': 0.00922266139657444, 'mean_word_length': 2.75990099009901, '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': '7196280', 'n_tokens_mistral': 479, 'n_tokens_neox': 470, 'n_words': 129}