original_docstring: 
       check whether diff of two dicts is below a threshold value
       
docstring: check whether diff of two dicts is below a threshold value
docstring_tokens: check whether diff of two dicts is below a threshold value
code: def CompareValuesDict(dic1, dic2, accepteddiff=0.01, debug =False):
       """
       check whether diff of two dicts is below a threshold value
       """
       identical = True
       for key in dic1:
           val1 = dic1[key]
           val2 = dic2.get(key,None)
           if val2:
               diff = np.abs(val1-val2)
               if debug:
                   print (key, diff)
               if diff > accepteddiff:
                   identical = False
       if debug:
           print ("Comparing ", identical)
       return identical
code_tokens: def CompareValuesDict ( dic1 , dic2 , accepteddiff = 0.01 , debug = False ) : identical = True for key in dic1 : val1 = dic1 [ key ] val2 = dic2 . get ( key , None ) if val2 : diff = np . abs ( val1 - val2 ) if debug : print ( key , diff ) if diff > accepteddiff : identical = False if debug : print ( "Comparing " , identical ) return identical
short_docstring: check whether diff of two dicts is below a threshold value
short_docstring_tokens: check whether diff of two dicts is below a threshold value
comment: """
       check whether diff of two dicts is below a threshold value
       """