#vulnerable code 
                                @Override
    public double take(final String login, final StringBuilder log)
        throws IOException {
        final int total = new Agenda(this.pmo, login).bootstrap().jobs().size();
        final double rate;
        final int max = new Options(this.pmo, login).bootstrap()
            .maxJobsInAgenda();
        if (total >= max) {
            rate = 1.0d;
            log.append(
                new Par(
                    "%d job(s) already, maxJobsInAgenda option is %d"
                ).say(total, max)
            );
        } else {
            rate = 0.0d;
            log.append(
                new Par(
                    "%d job(s) out of %d from maxJobsInAgenda option"
                ).say(total, max)
            );
        }
        return rate;
    } 
                            #location 13 
                            #vulnerability type RESOURCE_LEAK
#fixed code
                                @Override
    public double take(final String login, final StringBuilder log)
        throws IOException {
        final int total = new Agenda(this.pmo, login).bootstrap().jobs().size();
        final double rate;
        final int max = new Options(this.pmo, login).bootstrap()
            .maxJobsInAgenda();
        if (total >= max) {
            rate = 1.0d;
            log.append(
                String.format(
                    "%d job(s) already, maxJobsInAgenda option is %d",
                    total, max
                )
            );
        } else {
            rate = 0.0d;
            log.append(
                String.format(
                    "%d job(s) out of %d from maxJobsInAgenda option",
                    total, max
                )
            );
        }
        return rate;
    }