{"id":22672570,"url":"https://github.com/jimlynchcodes/gradle-pitest-example","last_synced_at":"2026-03-19T23:23:59.779Z","repository":{"id":199293941,"uuid":"702566588","full_name":"JimLynchCodes/Gradle-Pitest-Example","owner":"JimLynchCodes","description":"Something that works! (?)","archived":false,"fork":false,"pushed_at":"2023-10-09T19:15:31.000Z","size":128,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-08-24T11:29:14.613Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"HTML","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/JimLynchCodes.png","metadata":{"files":{"readme":"README copy.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-10-09T14:58:46.000Z","updated_at":"2023-10-09T15:24:45.000Z","dependencies_parsed_at":null,"dependency_job_id":"fed4e6ce-0648-46e4-bcc6-01d300ad6936","html_url":"https://github.com/JimLynchCodes/Gradle-Pitest-Example","commit_stats":null,"previous_names":["jimlynchcodes/gradle-pitest-example"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/JimLynchCodes/Gradle-Pitest-Example","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JimLynchCodes%2FGradle-Pitest-Example","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JimLynchCodes%2FGradle-Pitest-Example/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JimLynchCodes%2FGradle-Pitest-Example/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JimLynchCodes%2FGradle-Pitest-Example/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/JimLynchCodes","download_url":"https://codeload.github.com/JimLynchCodes/Gradle-Pitest-Example/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JimLynchCodes%2FGradle-Pitest-Example/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29333155,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-11T12:42:24.625Z","status":"ssl_error","status_checked_at":"2026-02-11T12:41:23.344Z","response_time":97,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-12-09T16:19:44.088Z","updated_at":"2026-02-11T13:02:06.925Z","avatar_url":"https://github.com/JimLynchCodes.png","language":"HTML","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Cook your lasagna\n\nWelcome to Cook your lasagna on Exercism's Java Track.\nIf you need help running the tests or submitting your code, check out `HELP.md`.\nIf you get stuck on the exercise, check out `HINTS.md`, but try and solve it without using those first :)\n\n## Introduction\n\n## Basics\n\nJava is a statically-typed language, which means that the type of a variable is known at compile-time. Assigning a value to a name is referred to as defining a variable. A variable is defined by explicitly specifying its type.\n\n```java\nint explicitVar = 10;\n```\n\nUpdating a variable's value is done through the `=` operator. Here, `=` does not represent mathematical equality. It simply assigns a value to a variable. Once defined, a variable's type can never change.\n\n```java\nint count = 1; // Assign initial value\ncount = 2;     // Update to new value\n\n// Compiler error when assigning a different type\n// count = false;\n```\n\nJava is an [object-oriented language][object-oriented-programming] and requires all functions to be defined in a _class_. The `class` keyword is used to define a class.\n\n```java\nclass Calculator {\n    // ...\n}\n```\n\nA function within a class is referred to as a _method_. Each method can have zero or more parameters. All parameters must be explicitly typed, there is no type inference for parameters. Similarly, the return type must also be made explicit. Values are returned from methods using the `return` keyword. To allow a method to be called by other classes, the `public` access modifier must be added.\n\n```java\nclass Calculator {\n    public int add(int x, int y) {\n        return x + y;\n    }\n}\n```\n\nInvoking/calling a method is done by specifying its class and method name and passing arguments for each of the method's parameters.\n\n```java\nint sum = new Calculator().add(1, 2);  // here the  \"add\" method has been called to perform the task of addition \n```\n\nScope in Java is defined between the `{` and `}` characters.\n\nJava supports two types of comments. Single line comments are preceded by `//` and multiline comments are inserted between `/*` and `*/`.\n\n[object-oriented-programming]: https://docs.oracle.com/javase/tutorial/java/javaOO/index.html\n\n## Instructions\n\nIn this exercise you're going to write some code to help you cook a brilliant lasagna from your favorite cooking book.\n\nYou have four tasks, all related to the time spent cooking the lasagna.\n\n## 1. Define the expected oven time in minutes\n\nDefine the `expectedMinutesInOven()` method that does not take any parameters and returns how many minutes the lasagna should be in the oven. According to the cooking book, the expected oven time in minutes is 40:\n\n```java\nLasagna lasagna = new Lasagna();\nlasagna.expectedMinutesInOven();\n// =\u003e 40\n```\n\n## 2. Calculate the remaining oven time in minutes\n\nDefine the `remainingMinutesInOven()` method that takes the actual minutes the lasagna has been in the oven as a parameter and returns how many minutes the lasagna still has to remain in the oven, based on the expected oven time in minutes from the previous task.\n\n```java\nLasagna lasagna = new Lasagna();\nlasagna.remainingMinutesInOven(30);\n// =\u003e 10\n```\n\n## 3. Calculate the preparation time in minutes\n\nDefine the `preparationTimeInMinutes()` method that takes the number of layers you added to the lasagna as a parameter and returns how many minutes you spent preparing the lasagna, assuming each layer takes you 2 minutes to prepare.\n\n```java\nLasagna lasagna = new Lasagna();\nlasagna.preparationTimeInMinutes(2);\n// =\u003e 4\n```\n\n## 4. Calculate the total working time in minutes\n\nDefine the `totalTimeInMinutes()` method that takes two parameters: the first parameter is the number of layers you added to the lasagna, and the second parameter is the number of minutes the lasagna has been in the oven. The function should return how many minutes in total you've worked on cooking the lasagna, which is the sum of the preparation time in minutes, and the time in minutes the lasagna has spent in the oven at the moment.\n\n```java\nLasagna lasagna = new Lasagna();\nlasagna.totalTimeInMinutes(3, 20);\n// =\u003e 26\n```\n\n## Source\n\n### Created by\n\n- @mirkoperillo","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjimlynchcodes%2Fgradle-pitest-example","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjimlynchcodes%2Fgradle-pitest-example","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjimlynchcodes%2Fgradle-pitest-example/lists"}