original_string: public function upsertOne(
          string $attribute,
          string $name,
          float $value
      ) : array {
          return $this->sendPut(
              sprintf('/profiles/%s/scores', $this->userName),
              [],
              [
                  'attribute' => $attribute,
                  'name'      => $name,
                  'value'     => $value
              ]
          );
      }
code: public function upsertOne(
          string $attribute,
          string $name,
          float $value
      ) : array {
          return $this->sendPut(
              sprintf('/profiles/%s/scores', $this->userName),
              [],
              [
                  'attribute' => $attribute,
                  'name'      => $name,
                  'value'     => $value
              ]
          );
      }
code_tokens: public function upsertOne ( string $ attribute , string $ name , float $ value ) : array { return $ this -> sendPut ( sprintf ( '/profiles/%s/scores' , $ this -> userName ) , [ ] , [ 'attribute' => $ attribute , 'name' => $ name , 'value' => $ value ] ) ; }
docstring: Tries to update a score and if it doesnt exists, creates a new score.
  
  @param string $attribute
  @param string $name
  @param float  $value
  
  @return array Response
docstring_tokens: Tries to update a score and if it doesnt exists creates a new score .