{"id":22006228,"url":"https://github.com/flowr-analysis/mutatr","last_synced_at":"2025-03-23T06:43:48.510Z","repository":{"id":265212312,"uuid":"895426716","full_name":"flowr-analysis/mutatr","owner":"flowr-analysis","description":"Code Mutation for R","archived":false,"fork":false,"pushed_at":"2024-12-31T04:23:16.000Z","size":143,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-18T01:42:08.570Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"R","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/flowr-analysis.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2024-11-28T07:30:20.000Z","updated_at":"2024-12-31T04:23:19.000Z","dependencies_parsed_at":"2024-12-12T16:39:51.674Z","dependency_job_id":null,"html_url":"https://github.com/flowr-analysis/mutatr","commit_stats":null,"previous_names":["flowr-analysis/mutatr"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/flowr-analysis%2Fmutatr","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/flowr-analysis%2Fmutatr/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/flowr-analysis%2Fmutatr/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/flowr-analysis%2Fmutatr/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/flowr-analysis","download_url":"https://codeload.github.com/flowr-analysis/mutatr/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245066526,"owners_count":20555404,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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-11-30T01:10:49.647Z","updated_at":"2025-03-23T06:43:48.491Z","avatar_url":"https://github.com/flowr-analysis.png","language":"R","funding_links":[],"categories":[],"sub_categories":[],"readme":"# MutatR\n\nMutate R code.\n\n## Available Mutators\nWe currently support the following mutations (in no particular order):\n\n- Arithmetic operator replacement:\n    | Original | Mutation 1 | Mutation 2 | Mutation 3 |\n    |----------|------------|------------|------------|\n    | `+`      | `-`        | `*`        | `/`        |\n    | `-`      | `+`        | `*`        | `/`        |\n    | `*`      | `+`        | `-`        | `/`        |\n    | `/`      | `+`        | `-`        | `*`        |\n- Branch condition replacement:\n    - Conditions of `if` statements and `while` loops are replaced by `TRUE` or `FALSE`\n- Condition boundary mutation:\n    | Original | Mutation |\n    |----------|----------|\n    | `\u003e`      | `\u003e=`     |\n    | `\u003e=`     | `\u003e`      |\n    | `\u003c`      | `\u003c=`     |\n    | `\u003c=`     | `\u003c`      |\n- Function name replacement:\n    | Original    | Mutation 1  | Mutation 2  |\n    |-------------|-------------|-------------|\n    | `lapply`    | `sapply`    | `vapply`    |\n    | `sapply`    | `lapply`    |             |\n    | `vapply`    | `sapply`    |             |\n    | `isTRUE`    | `isFALSE`   |             |\n    | `isFALSE`   | `isTRUE`    |             |\n    | `[[`        | `[`         |             |\n    | `any`       | `all`       |             |\n    | `all`       | `any`       |             |\n    | `==`        | `identical` |             |\n    | `identical` | `==`        |             |\n    | `union`     | `intersect` | `setdiff`   |\n    | `intersect` | `union`     | `setdiff`   |\n    | `setdiff`   | `union`     | `intersect` |\n- Literal mutation:\n    - Numeric literals are replaced by `NA` or in- or decremented by 1\n    - Logical literals are replaced by their negation\n    - Character literals are modified by appending to the end, removing the first character, or by replacing it with an empty string\n        - This is only done when the string does not appear inside typical logging functions, like `print`, `cat`, `message`, or `log_trace`\n- Logic operator replacement:\n    | Original | Mutation |\n    |----------|----------|\n    | `\u0026`      | `\\|`      |\n    | `\\|`      | `\u0026`      |\n    | `\u0026\u0026`     | `\\|\\|`     |\n    | `\\|\\|`     | `\u0026\u0026`     |\n- Relational operator replacement:\n    | Original | Mutation |\n    |----------|----------|\n    | `==`     | `!=`     |\n    | `!=`     | `==`     |\n    | `\u003e`      | `\u003c=`     |\n    | `\u003e=`     | `\u003c`      |\n    | `\u003c`      | `\u003e=`     |\n    | `\u003c=`     | `\u003e`      |\n- Sign replacement:\n    | Original | Mutation |\n    |----------|----------|\n    | `+`      | `-`      |\n    | `-`      | `+`      |\n- Function replacement\n    - Calls whose result is not assigned by `\u003c-`, `\u003c\u003c-`, `-\u003e`, `-\u003e\u003e`, or `=` are removed\n    - Calls to `length` are replaced by `0`, `1`, and `5`\n    - \"is\"-checkes (`is.character`, `is.logical`, ... , and relation operators) are replaced by `TRUE` and `FALSE`\n- Return value replacement:\n    | Original        | Mutation |\n    |-----------------|----------|\n    | `NULL`          | `42`     |\n    | everything else | `NULL`   |\n- Vector modification:\n    - Wenn the function `c` is called, we either remove and element, add an additional, or remove all elements\n- Call insertion\n    - A call to `stop` or `warning` is inserted into blocks (`{ ... }`)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fflowr-analysis%2Fmutatr","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fflowr-analysis%2Fmutatr","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fflowr-analysis%2Fmutatr/lists"}