anchor.diff:  any_to_bool(V) when is_boolean(V) ->
       V.
   
  +%% Convert <<"_">> to '_', otherwise leaves binary alone
  +maybe_underscore_atom(<<"_">>) ->
  +    '_';
  +maybe_underscore_atom(Bin) ->
  +    Bin.
   
   %% ===================================================================
   %% Unit Tests
  
positive.code: erlify_mapred_input(#rpbmapredinput{bucket = Bucket, key = Key, data = undefined}) ->
      {Bucket, Key};
  erlify_mapred_input(#rpbmapredinput{bucket = Bucket, key = Key, data = PbData}) ->
      {Bucket, Key, erlify_rpbterm(PbData)}.
  
  %% Convert list of RpbMapRedPhase to list of erlang phase tuples
  erlify_mapred_query(PbQuery) ->
  
negative.code: pbify_bucket_prop({chash_keyfun, {Module, Function}}) ->
      {?PB_CHASH, {struct, [{?PB_MOD, to_binary(Module)},
                            {?PB_FUN, to_binary(Function)}]}};
  pbify_bucket_prop({allow_mult, AllowMult}) ->
      {?PB_ALLOW_MULT, {bool, AllowMult}};
  pbify_bucket_prop({Prop, Value}) ->
      {list_to_binary(atom_to_list(Prop)), Value}.
  
  