original_string: protected function oci_package_installed() {
          $sql = "SELECT 1
                  FROM user_objects
                  WHERE object_type = 'PACKAGE BODY'
                    AND object_name = 'MOODLELIB'
                    AND status = 'VALID'";
          $this->query_start($sql, null, SQL_QUERY_AUX);
          $stmt = $this->parse_query($sql);
          $result = oci_execute($stmt, $this->commit_status);
          $this->query_end($result, $stmt);
          $records = null;
          oci_fetch_all($stmt, $records, 0, -1, OCI_FETCHSTATEMENT_BY_ROW);
          oci_free_statement($stmt);
          return isset($records[0]) && reset($records[0]) ? true : false;
      }
code: protected function oci_package_installed() {
          $sql = "SELECT 1
                  FROM user_objects
                  WHERE object_type = 'PACKAGE BODY'
                    AND object_name = 'MOODLELIB'
                    AND status = 'VALID'";
          $this->query_start($sql, null, SQL_QUERY_AUX);
          $stmt = $this->parse_query($sql);
          $result = oci_execute($stmt, $this->commit_status);
          $this->query_end($result, $stmt);
          $records = null;
          oci_fetch_all($stmt, $records, 0, -1, OCI_FETCHSTATEMENT_BY_ROW);
          oci_free_statement($stmt);
          return isset($records[0]) && reset($records[0]) ? true : false;
      }
code_tokens: protected function oci_package_installed ( ) { $ sql = "SELECT 1
                  FROM user_objects
                  WHERE object_type = 'PACKAGE BODY'
                    AND object_name = 'MOODLELIB'
                    AND status = 'VALID'" ; $ this -> query_start ( $ sql , null , SQL_QUERY_AUX ) ; $ stmt = $ this -> parse_query ( $ sql ) ; $ result = oci_execute ( $ stmt , $ this -> commit_status ) ; $ this -> query_end ( $ result , $ stmt ) ; $ records = null ; oci_fetch_all ( $ stmt , $ records , 0 , - 1 , OCI_FETCHSTATEMENT_BY_ROW ) ; oci_free_statement ( $ stmt ) ; return isset ( $ records [ 0 ] ) && reset ( $ records [ 0 ] ) ? true : false ; }
docstring: Is the required OCI server package installed?
  @return bool
docstring_tokens: Is the required OCI server package installed?