{"size": 360, "ext": "js", "max_stars_repo_path": "src/st-file-names.js", "max_stars_repo_name": "loki87by/basic-js", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "src/st-file-names.js", "max_issues_repo_name": "loki87by/basic-js", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "src/st-file-names.js", "max_forks_repo_name": "loki87by/basic-js", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 25.7142857143, "max_line_length": 61, "alphanum_fraction": 0.5333333333}
import { NotImplementedError } from '../extensions/index.js';

export default function renameFiles( names ) {
  const result = names;
  for (let i = 0; i < result.length; i++) {
    let x = 1;
    for (let j = i + 1; j < result.length; j++) {
      if (result[i] === result[j]) {
        result[j] = `${result[j]}(${x++})`;
      }
    }
  }
  return result;
}