def calculateUserScore(self,d):
    score=0
    if (len(d)>0):
      for k, v in d.items():
        score=score+int(v[0][1])*int(v[0][2])
      score=len(d)/score
      return score
    else:
      return 0
      
  ## @brief Filters a dictionary containing cognitive tests by keeping only those of the given difficulty  
  # @param testsOfType [dict] The dictionary containing the cognitive tests
  # @param res [rapp_platform_ros_communications::testSelectorSrvResponse::Response&] The output arguments of the service as defined in the testSelectorSrv
  #
  # @return res [rapp_platform_ros_communications::testSelectorSrvResponse::Response&] The output arguments of the service as defined in the testSelectorSrv
  # @return returnWithError [bool] True if a non recoverable error occured, and the service must immediately return with an error report
  # @return ontologyAlias [string] The user's ontology alias
dataset/ETHPy150Open rapp-project/rapp-platform/rapp_cognitive_exercise/src/test_selector.py/TestSelector.calculateUserScore/swapped operands of `/`