Displays the details of an individual problem.

 * +id+ - ID of the problem to be displayed
436725
def display_problem(id)
    load_problem_details(id)

    puts
    puts "=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-="
    puts
    puts Problem[id].title.upcase
    puts "Problem #{id}"
    puts
    puts Problem[id].published
    puts Problem[id].solved_by
    puts Problem[id].difficulty if id < Problem.total - 9
    puts
    puts "https://projecteuler.net/problem=#{id}"
    puts
    puts "=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-="
  end
1055179
function it_provides_access_to_error_details(){
      $this->getCode()->shouldBe( 400 );
      $this->getErrorMessage()->shouldBeString();
      $this->getErrorMessage()->shouldBe( 'BadRequestError: "Missing personalisation: name"' );
      $this->getErrors()->shouldBeArray();
      $this->getErrors()[0]->shouldBeArray();
      $this->getErrors()[0]['error']->shouldBe('BadRequestError');
      $this->getErrors()[0]['message']->shouldBe('Missing personalisation: name');
    }
1057665
def person_details(self, person_id, standardize=False):
        
        resp = self._request(path.join(ENDPOINTS['DETAILS'], person_id))
        if standardize:
            resp['result_data'] = [self.standardize(res) for res in resp['result_data']]
        return resp
1222072
def POST(self, id):
        
        id = int(id)
        model.del_todo(id)
        raise web.seeother('/')
1176082
def get_details(self, ids):
        
        if isinstance(ids, list):
            if len(ids) > 5:
                ids = ids[:5]
            id_param = ';'.join(ids) + '/'
        else:
            ids = str(ids)
            id_param = ids + '/'

        header, content = self._http_request(id_param)
        resp = json.loads(content)
        if not self._is_http_response_ok(header):
            error = resp.get('error_message', 'Unknown Error')
            raise HttpException(header.status, header.reason, error) 
        return resp
349905
def _create_task_problem(self, problemid, problem_content, task_problem_types):
        """"""
        # Basic checks
        if not id_checker(problemid):
            raise Exception("Invalid problem _id: " + problemid)
        if problem_content.get('type', "") not in task_problem_types:
            raise Exception("Invalid type for problem " + problemid)

        return task_problem_types.get(problem_content.get('type', ""))(self, problemid, problem_content, self._translations)
18324
def issue(self, issue_instance_id):
        
        with self.db.make_session() as session:
            selected_issue = (
                session.query(IssueInstance)
                .filter(IssueInstance.id == issue_instance_id)
                .scalar()
            )

            if selected_issue is None:
                self.warning(
                    f"Issue {issue_instance_id} doesn't exist. "
                    "Type 'issues' for available issues."
                )
                return

            self.sources = self._get_leaves_issue_instance(
                session, issue_instance_id, SharedTextKind.SOURCE
            )

            self.sinks = self._get_leaves_issue_instance(
                session, issue_instance_id, SharedTextKind.SINK
            )

        self.current_issue_instance_id = int(selected_issue.id)
        self.current_frame_id = -1
        self.current_trace_frame_index = 1  # first one after the source

        print(f"Set issue to {issue_instance_id}.")
        if int(selected_issue.run_id) != self.current_run_id:
            self.current_run_id = int(selected_issue.run_id)
            print(f"Set run to {self.current_run_id}.")
        print()

        self._generate_trace_from_issue()
        self.show()
692809
def show(self):
        
        self.show_info()
        self.show_notes()
        if self.code:
            self.each_params_by_register(self.code.get_registers_size(), self.get_descriptor())
            self.code.show()
370614
def _hook_id(self, info):
        
        if isinstance(info, dict) and 'id' in info.keys():
            self.id = info['id']
297139
def display_recent
    load_recent

    puts

    (Problem.total).downto(Problem.total - 9) do |i| 
      puts "#{i} - #{Problem[i].title}" 
    end
  end
980725
public void display() {
    System.out.printf("Job id=%s, name=%s\n", getJobID(), getJobName());
    System.out.printf("Configuration file: %s\n", getJobID());
    System.out.printf("Tracking URL: %s\n", getTrackingURL());

    System.out.printf("Completion: map: %f reduce %f\n",
        100.0 * this.mapProgress, 100.0 * this.reduceProgress);

    System.out.println("Job total maps = " + totalMaps);
    System.out.println("Job completed maps = " + completedMaps);
    System.out.println("Map percentage complete = " + mapProgress);
    System.out.println("Job total reduces = " + totalReduces);
    System.out.println("Job completed reduces = " + completedReduces);
    System.out.println("Reduce percentage complete = " + reduceProgress);
    System.out.flush();
  }
374098
private void putId() {
        // note: name and info may be null
        super.put("Provider.id name", String.valueOf(name));
        super.put("Provider.id version", String.valueOf(version));
        super.put("Provider.id info", String.valueOf(info));
        super.put("Provider.id className", this.getClass().getName());
    }
679225
def write_id (self):
        """"""
        self.writeln()
        self.write(self.part('id') + self.spaces('id'))
        self.writeln(u"%d" % self.stats.number, color=self.colorinfo)
329642
def show():
    """"""
    items = list(collection.find())
    # JSON conversion chokes on the _id objects, so we convert
    # them to strings here
    for i in items:
        i['_id'] = str(i['_id'])
    return items
581897
protected void appendId(StringBuffer html, String id) {

        html.append(" name=\"");
        html.append(id);
        html.append("\" id=\"");
        html.append(id);
        html.append("\" ");
    }
1203628
def _populate_issue_and_traces(self, graph: TraceGraph, instance_id: int) -> None:
        
        self._populate_issue(graph, instance_id)
        self._populate_issue_trace(graph, instance_id)
1089747
def attach_issue(context, id, url):
    

    result = job.attach_issue(context, id=id, url=url)
    utils.format_output(result, context.format)