[
  {
    "path": ".gitignore",
    "content": "target/\npom.xml.tag\npom.xml.releaseBackup\npom.xml.versionsBackup\npom.xml.next\nrelease.properties\ndependency-reduced-pom.xml\nbuildNumber.properties\n.mvn/timing.properties\n\n.idea\n*.iml\ncache\n"
  },
  {
    "path": ".mvn/wrapper/MavenWrapperDownloader.java",
    "content": "/*\n * Copyright 2007-present the original author or authors.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n *      http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nimport java.net.*;\nimport java.io.*;\nimport java.nio.channels.*;\nimport java.util.Properties;\n\npublic class MavenWrapperDownloader {\n\n    private static final String WRAPPER_VERSION = \"0.5.5\";\n    /**\n     * Default URL to download the maven-wrapper.jar from, if no 'downloadUrl' is provided.\n     */\n    private static final String DEFAULT_DOWNLOAD_URL = \"https://repo.maven.apache.org/maven2/io/takari/maven-wrapper/\"\n        + WRAPPER_VERSION + \"/maven-wrapper-\" + WRAPPER_VERSION + \".jar\";\n\n    /**\n     * Path to the maven-wrapper.properties file, which might contain a downloadUrl property to\n     * use instead of the default one.\n     */\n    private static final String MAVEN_WRAPPER_PROPERTIES_PATH =\n            \".mvn/wrapper/maven-wrapper.properties\";\n\n    /**\n     * Path where the maven-wrapper.jar will be saved to.\n     */\n    private static final String MAVEN_WRAPPER_JAR_PATH =\n            \".mvn/wrapper/maven-wrapper.jar\";\n\n    /**\n     * Name of the property which should be used to override the default download url for the wrapper.\n     */\n    private static final String PROPERTY_NAME_WRAPPER_URL = \"wrapperUrl\";\n\n    public static void main(String args[]) {\n        System.out.println(\"- Downloader started\");\n        File baseDirectory = new File(args[0]);\n        System.out.println(\"- Using base directory: \" + baseDirectory.getAbsolutePath());\n\n        // If the maven-wrapper.properties exists, read it and check if it contains a custom\n        // wrapperUrl parameter.\n        File mavenWrapperPropertyFile = new File(baseDirectory, MAVEN_WRAPPER_PROPERTIES_PATH);\n        String url = DEFAULT_DOWNLOAD_URL;\n        if(mavenWrapperPropertyFile.exists()) {\n            FileInputStream mavenWrapperPropertyFileInputStream = null;\n            try {\n                mavenWrapperPropertyFileInputStream = new FileInputStream(mavenWrapperPropertyFile);\n                Properties mavenWrapperProperties = new Properties();\n                mavenWrapperProperties.load(mavenWrapperPropertyFileInputStream);\n                url = mavenWrapperProperties.getProperty(PROPERTY_NAME_WRAPPER_URL, url);\n            } catch (IOException e) {\n                System.out.println(\"- ERROR loading '\" + MAVEN_WRAPPER_PROPERTIES_PATH + \"'\");\n            } finally {\n                try {\n                    if(mavenWrapperPropertyFileInputStream != null) {\n                        mavenWrapperPropertyFileInputStream.close();\n                    }\n                } catch (IOException e) {\n                    // Ignore ...\n                }\n            }\n        }\n        System.out.println(\"- Downloading from: \" + url);\n\n        File outputFile = new File(baseDirectory.getAbsolutePath(), MAVEN_WRAPPER_JAR_PATH);\n        if(!outputFile.getParentFile().exists()) {\n            if(!outputFile.getParentFile().mkdirs()) {\n                System.out.println(\n                        \"- ERROR creating output directory '\" + outputFile.getParentFile().getAbsolutePath() + \"'\");\n            }\n        }\n        System.out.println(\"- Downloading to: \" + outputFile.getAbsolutePath());\n        try {\n            downloadFileFromURL(url, outputFile);\n            System.out.println(\"Done\");\n            System.exit(0);\n        } catch (Throwable e) {\n            System.out.println(\"- Error downloading\");\n            e.printStackTrace();\n            System.exit(1);\n        }\n    }\n\n    private static void downloadFileFromURL(String urlString, File destination) throws Exception {\n        if (System.getenv(\"MVNW_USERNAME\") != null && System.getenv(\"MVNW_PASSWORD\") != null) {\n            String username = System.getenv(\"MVNW_USERNAME\");\n            char[] password = System.getenv(\"MVNW_PASSWORD\").toCharArray();\n            Authenticator.setDefault(new Authenticator() {\n                @Override\n                protected PasswordAuthentication getPasswordAuthentication() {\n                    return new PasswordAuthentication(username, password);\n                }\n            });\n        }\n        URL website = new URL(urlString);\n        ReadableByteChannel rbc;\n        rbc = Channels.newChannel(website.openStream());\n        FileOutputStream fos = new FileOutputStream(destination);\n        fos.getChannel().transferFrom(rbc, 0, Long.MAX_VALUE);\n        fos.close();\n        rbc.close();\n    }\n\n}\n"
  },
  {
    "path": ".mvn/wrapper/maven-wrapper.properties",
    "content": "distributionUrl=https://repo.maven.apache.org/maven2/org/apache/maven/apache-maven/3.6.1/apache-maven-3.6.1-bin.zip\nwrapperUrl=https://repo.maven.apache.org/maven2/io/takari/maven-wrapper/0.5.5/maven-wrapper-0.5.5.jar\n"
  },
  {
    "path": "Dockerfile",
    "content": "FROM maven:3.9-eclipse-temurin-17-alpine as maven-build\nWORKDIR /app\nCOPY . .\nRUN mvn verify\n\nFROM eclipse-temurin:17-jre-alpine\nRUN adduser \\\n -h /var/github-summary \\\n -D -u 1000 \\\n ghsum ghsum\n\nUSER ghsum\nWORKDIR /var/github-summary\n\nENV TOKENS=\"\"\nENTRYPOINT [\"java\", \"-Dapi-tokens=${TOKENS}\", \"-jar\", \"profile-summary-for-github.jar\"]\nEXPOSE 7070\n\nCOPY --from=maven-build \\\n --chown=ghsum:ghsum \\\n /app/target/profile-summary-for-github-jar-with-dependencies.jar profile-summary-for-github.jar\n"
  },
  {
    "path": "Documentation/Building.md",
    "content": "\n# Building\n\n*How to setup and compile the project.*\n\n<br>\n\n## Docker\n\nYou can also use **[Docker]** to <br>\ncompile & run the project.\n\n<br>\n<br>\n\n## Steps\n\n-   Clone the repository\n\n    ```shell\n    git clone https://github.com/tipsy/profile-summary-for-github.git\n    ```\n    \n-   Navigate to the root folder\n\n    ```shell\n    cd profile-summary-for-github\n    ```\n    \n-   Install the dependencies\n\n    ```shell\n    mvn install\n    ```\n    \n-   Compile the source code\n\n    ```shell\n    java -jar target/profile-summary-for-github-jar-with-dependencies.jar\n    ```\n    \n<br>\n\n\n<!----------------------------------------------------------------------------->\n\n[Docker]: Docker.md\n\n"
  },
  {
    "path": "Documentation/Docker.md",
    "content": "\n# Docker\n\n*How to use this project with docker.*\n\n<br>\n\n## Building\n\n*How to compile the source code.*\n\n<br>\n\n-   Clone the repository\n\n    ```shell\n    git clone https://github.com/tipsy/profile-summary-for-github.git\n    ```\n    \n-   Navigate to the root folder\n\n    ```shell\n    cd profile-summary-for-github\n    ```\n    \n-   Compile the source code\n\n    ```shell\n    docker build -t profile-summary-for-github\n    ```\n    \n<br>\n<br>\n\n## Running\n\n*How to start the compiled project.*\n\n<br>\n\n### Without Token\n\n```shell\ndocker run                              \\\n    -it                                 \\\n    --rm                                \\\n    --name profile-summary-for-github   \\\n    -p 7070:7070 profile-summary-for-github\n```\n\n<br>\n\n### With Token\n\n```shell\ndocker run                              \\\n    -it                                 \\\n    --rm                                \\\n    --name profile-summary-for-github   \\\n    -p 7070:7070                        \\\n    -e \"API_TOKENS=<My Token A>,<My Token B>\" profile-summary-for-github\n```\n\n<br>\n\n### Interface\n\nYou can access it at http://localhost:7070\n\n<br>\n"
  },
  {
    "path": "Documentation/Usage.md",
    "content": "\n# Usage\n\n*How to configure the project.*\n\n<br>\n\n## API Token\n\n*The access token to GitHubs API.*\n\n<br>\n\n### Without\n\nIf no api token is set, you only get `~50 requests / hour`.\n\n<br>\n\n### With\n\nTo run the app with an api-token, first **[Generate A Token]**.\n\nProvide the token in the following way:\n\n```shell\njava                        \\\n    -Dapi-tokens=your-token \\\n    -jar target/profile-summary-for-github-jar-with-dependencies.jar\n```\n\n*You can use a comma-separated list* <br>\n*of tokens to increase your rate-limit.*\n\n<br>\n<br>\n\n## Parameters\n\n*Command line options you can set.*\n\n<br>\n\n### Unrestricted\n\nYou can allow the building of any GitHub <br>\nprofile by passing `-Dunrestricted=true` :\n\n```shell\njava                    \\\n    -Dunrestricted=true \\\n    -jar target/profile-summary-for-github-jar-with-dependencies.jar\n```\n\n<br>\n\n### Free Threshold\n\nYou can set when the app should require <br>\nthe user to star the GitHub repository.\n\n*Pass the number of remaining requests at which the* <br>\n*cutoff should kick in, as seen in the following example:*\n\n```shell\njava                            \\\n    -Dfree-requests-cutoff=1000 \\\n    -jar target/profile-summary-for-github-jar-with-dependencies.jar\n```\n\n<br>\n\n### Google Tag Manager\n\nYou can enable this feature by passing the `gtm-id`.\n\n```shell\njava                    \\\n    -Dgtm-id=GTM-XXXXXX \\\n    -jar target/profile-summary-for-github-jar-with-dependencies.jar\n```\n\n<br>\n\n\n<!----------------------------------------------------------------------------->\n\n[Generate A Token]: https://github.com/settings/tokens\n"
  },
  {
    "path": "LICENSE",
    "content": "                                 Apache License\n                           Version 2.0, January 2004\n                        http://www.apache.org/licenses/\n\n   TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION\n\n   1. Definitions.\n\n      \"License\" shall mean the terms and conditions for use, reproduction,\n      and distribution as defined by Sections 1 through 9 of this document.\n\n      \"Licensor\" shall mean the copyright owner or entity authorized by\n      the copyright owner that is granting the License.\n\n      \"Legal Entity\" shall mean the union of the acting entity and all\n      other entities that control, are controlled by, or are under common\n      control with that entity. For the purposes of this definition,\n      \"control\" means (i) the power, direct or indirect, to cause the\n      direction or management of such entity, whether by contract or\n      otherwise, or (ii) ownership of fifty percent (50%) or more of the\n      outstanding shares, or (iii) beneficial ownership of such entity.\n\n      \"You\" (or \"Your\") shall mean an individual or Legal Entity\n      exercising permissions granted by this License.\n\n      \"Source\" form shall mean the preferred form for making modifications,\n      including but not limited to software source code, documentation\n      source, and configuration files.\n\n      \"Object\" form shall mean any form resulting from mechanical\n      transformation or translation of a Source form, including but\n      not limited to compiled object code, generated documentation,\n      and conversions to other media types.\n\n      \"Work\" shall mean the work of authorship, whether in Source or\n      Object form, made available under the License, as indicated by a\n      copyright notice that is included in or attached to the work\n      (an example is provided in the Appendix below).\n\n      \"Derivative Works\" shall mean any work, whether in Source or Object\n      form, that is based on (or derived from) the Work and for which the\n      editorial revisions, annotations, elaborations, or other modifications\n      represent, as a whole, an original work of authorship. For the purposes\n      of this License, Derivative Works shall not include works that remain\n      separable from, or merely link (or bind by name) to the interfaces of,\n      the Work and Derivative Works thereof.\n\n      \"Contribution\" shall mean any work of authorship, including\n      the original version of the Work and any modifications or additions\n      to that Work or Derivative Works thereof, that is intentionally\n      submitted to Licensor for inclusion in the Work by the copyright owner\n      or by an individual or Legal Entity authorized to submit on behalf of\n      the copyright owner. For the purposes of this definition, \"submitted\"\n      means any form of electronic, verbal, or written communication sent\n      to the Licensor or its representatives, including but not limited to\n      communication on electronic mailing lists, source code control systems,\n      and issue tracking systems that are managed by, or on behalf of, the\n      Licensor for the purpose of discussing and improving the Work, but\n      excluding communication that is conspicuously marked or otherwise\n      designated in writing by the copyright owner as \"Not a Contribution.\"\n\n      \"Contributor\" shall mean Licensor and any individual or Legal Entity\n      on behalf of whom a Contribution has been received by Licensor and\n      subsequently incorporated within the Work.\n\n   2. Grant of Copyright License. Subject to the terms and conditions of\n      this License, each Contributor hereby grants to You a perpetual,\n      worldwide, non-exclusive, no-charge, royalty-free, irrevocable\n      copyright license to reproduce, prepare Derivative Works of,\n      publicly display, publicly perform, sublicense, and distribute the\n      Work and such Derivative Works in Source or Object form.\n\n   3. Grant of Patent License. Subject to the terms and conditions of\n      this License, each Contributor hereby grants to You a perpetual,\n      worldwide, non-exclusive, no-charge, royalty-free, irrevocable\n      (except as stated in this section) patent license to make, have made,\n      use, offer to sell, sell, import, and otherwise transfer the Work,\n      where such license applies only to those patent claims licensable\n      by such Contributor that are necessarily infringed by their\n      Contribution(s) alone or by combination of their Contribution(s)\n      with the Work to which such Contribution(s) was submitted. If You\n      institute patent litigation against any entity (including a\n      cross-claim or counterclaim in a lawsuit) alleging that the Work\n      or a Contribution incorporated within the Work constitutes direct\n      or contributory patent infringement, then any patent licenses\n      granted to You under this License for that Work shall terminate\n      as of the date such litigation is filed.\n\n   4. Redistribution. You may reproduce and distribute copies of the\n      Work or Derivative Works thereof in any medium, with or without\n      modifications, and in Source or Object form, provided that You\n      meet the following conditions:\n\n      (a) You must give any other recipients of the Work or\n          Derivative Works a copy of this License; and\n\n      (b) You must cause any modified files to carry prominent notices\n          stating that You changed the files; and\n\n      (c) You must retain, in the Source form of any Derivative Works\n          that You distribute, all copyright, patent, trademark, and\n          attribution notices from the Source form of the Work,\n          excluding those notices that do not pertain to any part of\n          the Derivative Works; and\n\n      (d) If the Work includes a \"NOTICE\" text file as part of its\n          distribution, then any Derivative Works that You distribute must\n          include a readable copy of the attribution notices contained\n          within such NOTICE file, excluding those notices that do not\n          pertain to any part of the Derivative Works, in at least one\n          of the following places: within a NOTICE text file distributed\n          as part of the Derivative Works; within the Source form or\n          documentation, if provided along with the Derivative Works; or,\n          within a display generated by the Derivative Works, if and\n          wherever such third-party notices normally appear. The contents\n          of the NOTICE file are for informational purposes only and\n          do not modify the License. You may add Your own attribution\n          notices within Derivative Works that You distribute, alongside\n          or as an addendum to the NOTICE text from the Work, provided\n          that such additional attribution notices cannot be construed\n          as modifying the License.\n\n      You may add Your own copyright statement to Your modifications and\n      may provide additional or different license terms and conditions\n      for use, reproduction, or distribution of Your modifications, or\n      for any such Derivative Works as a whole, provided Your use,\n      reproduction, and distribution of the Work otherwise complies with\n      the conditions stated in this License.\n\n   5. Submission of Contributions. Unless You explicitly state otherwise,\n      any Contribution intentionally submitted for inclusion in the Work\n      by You to the Licensor shall be under the terms and conditions of\n      this License, without any additional terms or conditions.\n      Notwithstanding the above, nothing herein shall supersede or modify\n      the terms of any separate license agreement you may have executed\n      with Licensor regarding such Contributions.\n\n   6. Trademarks. This License does not grant permission to use the trade\n      names, trademarks, service marks, or product names of the Licensor,\n      except as required for reasonable and customary use in describing the\n      origin of the Work and reproducing the content of the NOTICE file.\n\n   7. Disclaimer of Warranty. Unless required by applicable law or\n      agreed to in writing, Licensor provides the Work (and each\n      Contributor provides its Contributions) on an \"AS IS\" BASIS,\n      WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or\n      implied, including, without limitation, any warranties or conditions\n      of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A\n      PARTICULAR PURPOSE. You are solely responsible for determining the\n      appropriateness of using or redistributing the Work and assume any\n      risks associated with Your exercise of permissions under this License.\n\n   8. Limitation of Liability. In no event and under no legal theory,\n      whether in tort (including negligence), contract, or otherwise,\n      unless required by applicable law (such as deliberate and grossly\n      negligent acts) or agreed to in writing, shall any Contributor be\n      liable to You for damages, including any direct, indirect, special,\n      incidental, or consequential damages of any character arising as a\n      result of this License or out of the use or inability to use the\n      Work (including but not limited to damages for loss of goodwill,\n      work stoppage, computer failure or malfunction, or any and all\n      other commercial damages or losses), even if such Contributor\n      has been advised of the possibility of such damages.\n\n   9. Accepting Warranty or Additional Liability. While redistributing\n      the Work or Derivative Works thereof, You may choose to offer,\n      and charge a fee for, acceptance of support, warranty, indemnity,\n      or other liability obligations and/or rights consistent with this\n      License. However, in accepting such obligations, You may act only\n      on Your own behalf and on Your sole responsibility, not on behalf\n      of any other Contributor, and only if You agree to indemnify,\n      defend, and hold each Contributor harmless for any liability\n      incurred by, or claims asserted against, such Contributor by reason\n      of your accepting any such warranty or additional liability.\n\n   END OF TERMS AND CONDITIONS\n\n   APPENDIX: How to apply the Apache License to your work.\n\n      To apply the Apache License to your work, attach the following\n      boilerplate notice, with the fields enclosed by brackets \"[]\"\n      replaced with your own identifying information. (Don't include\n      the brackets!)  The text should be enclosed in the appropriate\n      comment syntax for the file format. We also recommend that a\n      file or class name and description of purpose be included on the\n      same \"printed page\" as the copyright notice for easier\n      identification within third-party archives.\n\n   Copyright 2017-2018 David Åse\n\n   Licensed under the Apache License, Version 2.0 (the \"License\");\n   you may not use this file except in compliance with the License.\n   You may obtain a copy of the License at\n\n       http://www.apache.org/licenses/LICENSE-2.0\n\n   Unless required by applicable law or agreed to in writing, software\n   distributed under the License is distributed on an \"AS IS\" BASIS,\n   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n   See the License for the specific language governing permissions and\n   limitations under the License.\n"
  },
  {
    "path": "Procfile",
    "content": "web: java -jar -Xmx256M ./target/profile-summary-for-github-jar-with-dependencies.jar\n"
  },
  {
    "path": "README.md",
    "content": "\n# Profile Summary   [![Badge License]][License]\n\n*A tool to visualize your **GitHub** presence.*\n\n<br>\n\n<div align = center>\n\n---\n\n[![Button Demo]][Demo]   \n[![Button Building]][Building]   \n[![Button Usage]][Usage] \n\n---\n\n<br>\n\n<img\n    src = 'https://user-images.githubusercontent.com/1521451/34072014-4451dbf6-e280-11e7-90a7-32ad1f313541.PNG'\n    width = 800\n/>\n\n</div>\n\n\n<!----------------------------------------------------------------------------->\n\n[Demo]: https://profile-summary-for-github.com/\n\n[Building]: Documentation/Building.md\n[License]: LICENSE\n[Usage]: Documentation/Usage.md\n\n\n<!--------------------------------[ Badges ]----------------------------------->\n\n[Badge License]: https://img.shields.io/badge/License-Apache_2.0-D22128?style=for-the-badge\n\n\n<!-------------------------------[ Buttons ]----------------------------------->\n\n[Button Building]: https://img.shields.io/badge/Building-7952B3?style=for-the-badge&logoColor=white&logo=AzureArtifacts\n[Button Usage]: https://img.shields.io/badge/Usage-239120?style=for-the-badge&logoColor=white&logo=GitBook\n[Button Demo]: https://img.shields.io/badge/Demo-0091BD?style=for-the-badge&logoColor=white&logo=AppleArcade"
  },
  {
    "path": "mvnw",
    "content": "#!/bin/sh\n# ----------------------------------------------------------------------------\n# Licensed to the Apache Software Foundation (ASF) under one\n# or more contributor license agreements.  See the NOTICE file\n# distributed with this work for additional information\n# regarding copyright ownership.  The ASF licenses this file\n# to you under the Apache License, Version 2.0 (the\n# \"License\"); you may not use this file except in compliance\n# with the License.  You may obtain a copy of the License at\n#\n#    http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless required by applicable law or agreed to in writing,\n# software distributed under the License is distributed on an\n# \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n# KIND, either express or implied.  See the License for the\n# specific language governing permissions and limitations\n# under the License.\n# ----------------------------------------------------------------------------\n\n# ----------------------------------------------------------------------------\n# Maven2 Start Up Batch script\n#\n# Required ENV vars:\n# ------------------\n#   JAVA_HOME - location of a JDK home dir\n#\n# Optional ENV vars\n# -----------------\n#   M2_HOME - location of maven2's installed home dir\n#   MAVEN_OPTS - parameters passed to the Java VM when running Maven\n#     e.g. to debug Maven itself, use\n#       set MAVEN_OPTS=-Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=8000\n#   MAVEN_SKIP_RC - flag to disable loading of mavenrc files\n# ----------------------------------------------------------------------------\n\nif [ -z \"$MAVEN_SKIP_RC\" ] ; then\n\n  if [ -f /etc/mavenrc ] ; then\n    . /etc/mavenrc\n  fi\n\n  if [ -f \"$HOME/.mavenrc\" ] ; then\n    . \"$HOME/.mavenrc\"\n  fi\n\nfi\n\n# OS specific support.  $var _must_ be set to either true or false.\ncygwin=false;\ndarwin=false;\nmingw=false\ncase \"`uname`\" in\n  CYGWIN*) cygwin=true ;;\n  MINGW*) mingw=true;;\n  Darwin*) darwin=true\n    # Use /usr/libexec/java_home if available, otherwise fall back to /Library/Java/Home\n    # See https://developer.apple.com/library/mac/qa/qa1170/_index.html\n    if [ -z \"$JAVA_HOME\" ]; then\n      if [ -x \"/usr/libexec/java_home\" ]; then\n        export JAVA_HOME=\"`/usr/libexec/java_home`\"\n      else\n        export JAVA_HOME=\"/Library/Java/Home\"\n      fi\n    fi\n    ;;\nesac\n\nif [ -z \"$JAVA_HOME\" ] ; then\n  if [ -r /etc/gentoo-release ] ; then\n    JAVA_HOME=`java-config --jre-home`\n  fi\nfi\n\nif [ -z \"$M2_HOME\" ] ; then\n  ## resolve links - $0 may be a link to maven's home\n  PRG=\"$0\"\n\n  # need this for relative symlinks\n  while [ -h \"$PRG\" ] ; do\n    ls=`ls -ld \"$PRG\"`\n    link=`expr \"$ls\" : '.*-> \\(.*\\)$'`\n    if expr \"$link\" : '/.*' > /dev/null; then\n      PRG=\"$link\"\n    else\n      PRG=\"`dirname \"$PRG\"`/$link\"\n    fi\n  done\n\n  saveddir=`pwd`\n\n  M2_HOME=`dirname \"$PRG\"`/..\n\n  # make it fully qualified\n  M2_HOME=`cd \"$M2_HOME\" && pwd`\n\n  cd \"$saveddir\"\n  # echo Using m2 at $M2_HOME\nfi\n\n# For Cygwin, ensure paths are in UNIX format before anything is touched\nif $cygwin ; then\n  [ -n \"$M2_HOME\" ] &&\n    M2_HOME=`cygpath --unix \"$M2_HOME\"`\n  [ -n \"$JAVA_HOME\" ] &&\n    JAVA_HOME=`cygpath --unix \"$JAVA_HOME\"`\n  [ -n \"$CLASSPATH\" ] &&\n    CLASSPATH=`cygpath --path --unix \"$CLASSPATH\"`\nfi\n\n# For Mingw, ensure paths are in UNIX format before anything is touched\nif $mingw ; then\n  [ -n \"$M2_HOME\" ] &&\n    M2_HOME=\"`(cd \"$M2_HOME\"; pwd)`\"\n  [ -n \"$JAVA_HOME\" ] &&\n    JAVA_HOME=\"`(cd \"$JAVA_HOME\"; pwd)`\"\nfi\n\nif [ -z \"$JAVA_HOME\" ]; then\n  javaExecutable=\"`which javac`\"\n  if [ -n \"$javaExecutable\" ] && ! [ \"`expr \\\"$javaExecutable\\\" : '\\([^ ]*\\)'`\" = \"no\" ]; then\n    # readlink(1) is not available as standard on Solaris 10.\n    readLink=`which readlink`\n    if [ ! `expr \"$readLink\" : '\\([^ ]*\\)'` = \"no\" ]; then\n      if $darwin ; then\n        javaHome=\"`dirname \\\"$javaExecutable\\\"`\"\n        javaExecutable=\"`cd \\\"$javaHome\\\" && pwd -P`/javac\"\n      else\n        javaExecutable=\"`readlink -f \\\"$javaExecutable\\\"`\"\n      fi\n      javaHome=\"`dirname \\\"$javaExecutable\\\"`\"\n      javaHome=`expr \"$javaHome\" : '\\(.*\\)/bin'`\n      JAVA_HOME=\"$javaHome\"\n      export JAVA_HOME\n    fi\n  fi\nfi\n\nif [ -z \"$JAVACMD\" ] ; then\n  if [ -n \"$JAVA_HOME\"  ] ; then\n    if [ -x \"$JAVA_HOME/jre/sh/java\" ] ; then\n      # IBM's JDK on AIX uses strange locations for the executables\n      JAVACMD=\"$JAVA_HOME/jre/sh/java\"\n    else\n      JAVACMD=\"$JAVA_HOME/bin/java\"\n    fi\n  else\n    JAVACMD=\"`which java`\"\n  fi\nfi\n\nif [ ! -x \"$JAVACMD\" ] ; then\n  echo \"Error: JAVA_HOME is not defined correctly.\" >&2\n  echo \"  We cannot execute $JAVACMD\" >&2\n  exit 1\nfi\n\nif [ -z \"$JAVA_HOME\" ] ; then\n  echo \"Warning: JAVA_HOME environment variable is not set.\"\nfi\n\nCLASSWORLDS_LAUNCHER=org.codehaus.plexus.classworlds.launcher.Launcher\n\n# traverses directory structure from process work directory to filesystem root\n# first directory with .mvn subdirectory is considered project base directory\nfind_maven_basedir() {\n\n  if [ -z \"$1\" ]\n  then\n    echo \"Path not specified to find_maven_basedir\"\n    return 1\n  fi\n\n  basedir=\"$1\"\n  wdir=\"$1\"\n  while [ \"$wdir\" != '/' ] ; do\n    if [ -d \"$wdir\"/.mvn ] ; then\n      basedir=$wdir\n      break\n    fi\n    # workaround for JBEAP-8937 (on Solaris 10/Sparc)\n    if [ -d \"${wdir}\" ]; then\n      wdir=`cd \"$wdir/..\"; pwd`\n    fi\n    # end of workaround\n  done\n  echo \"${basedir}\"\n}\n\n# concatenates all lines of a file\nconcat_lines() {\n  if [ -f \"$1\" ]; then\n    echo \"$(tr -s '\\n' ' ' < \"$1\")\"\n  fi\n}\n\nBASE_DIR=`find_maven_basedir \"$(pwd)\"`\nif [ -z \"$BASE_DIR\" ]; then\n  exit 1;\nfi\n\n##########################################################################################\n# Extension to allow automatically downloading the maven-wrapper.jar from Maven-central\n# This allows using the maven wrapper in projects that prohibit checking in binary data.\n##########################################################################################\nif [ -r \"$BASE_DIR/.mvn/wrapper/maven-wrapper.jar\" ]; then\n    if [ \"$MVNW_VERBOSE\" = true ]; then\n      echo \"Found .mvn/wrapper/maven-wrapper.jar\"\n    fi\nelse\n    if [ \"$MVNW_VERBOSE\" = true ]; then\n      echo \"Couldn't find .mvn/wrapper/maven-wrapper.jar, downloading it ...\"\n    fi\n    if [ -n \"$MVNW_REPOURL\" ]; then\n      jarUrl=\"$MVNW_REPOURL/io/takari/maven-wrapper/0.5.5/maven-wrapper-0.5.5.jar\"\n    else\n      jarUrl=\"https://repo.maven.apache.org/maven2/io/takari/maven-wrapper/0.5.5/maven-wrapper-0.5.5.jar\"\n    fi\n    while IFS=\"=\" read key value; do\n      case \"$key\" in (wrapperUrl) jarUrl=\"$value\"; break ;;\n      esac\n    done < \"$BASE_DIR/.mvn/wrapper/maven-wrapper.properties\"\n    if [ \"$MVNW_VERBOSE\" = true ]; then\n      echo \"Downloading from: $jarUrl\"\n    fi\n    wrapperJarPath=\"$BASE_DIR/.mvn/wrapper/maven-wrapper.jar\"\n    if $cygwin; then\n      wrapperJarPath=`cygpath --path --windows \"$wrapperJarPath\"`\n    fi\n\n    if command -v wget > /dev/null; then\n        if [ \"$MVNW_VERBOSE\" = true ]; then\n          echo \"Found wget ... using wget\"\n        fi\n        if [ -z \"$MVNW_USERNAME\" ] || [ -z \"$MVNW_PASSWORD\" ]; then\n            wget \"$jarUrl\" -O \"$wrapperJarPath\"\n        else\n            wget --http-user=$MVNW_USERNAME --http-password=$MVNW_PASSWORD \"$jarUrl\" -O \"$wrapperJarPath\"\n        fi\n    elif command -v curl > /dev/null; then\n        if [ \"$MVNW_VERBOSE\" = true ]; then\n          echo \"Found curl ... using curl\"\n        fi\n        if [ -z \"$MVNW_USERNAME\" ] || [ -z \"$MVNW_PASSWORD\" ]; then\n            curl -o \"$wrapperJarPath\" \"$jarUrl\" -f\n        else\n            curl --user $MVNW_USERNAME:$MVNW_PASSWORD -o \"$wrapperJarPath\" \"$jarUrl\" -f\n        fi\n        \n    else\n        if [ \"$MVNW_VERBOSE\" = true ]; then\n          echo \"Falling back to using Java to download\"\n        fi\n        javaClass=\"$BASE_DIR/.mvn/wrapper/MavenWrapperDownloader.java\"\n        # For Cygwin, switch paths to Windows format before running javac\n        if $cygwin; then\n          javaClass=`cygpath --path --windows \"$javaClass\"`\n        fi\n        if [ -e \"$javaClass\" ]; then\n            if [ ! -e \"$BASE_DIR/.mvn/wrapper/MavenWrapperDownloader.class\" ]; then\n                if [ \"$MVNW_VERBOSE\" = true ]; then\n                  echo \" - Compiling MavenWrapperDownloader.java ...\"\n                fi\n                # Compiling the Java class\n                (\"$JAVA_HOME/bin/javac\" \"$javaClass\")\n            fi\n            if [ -e \"$BASE_DIR/.mvn/wrapper/MavenWrapperDownloader.class\" ]; then\n                # Running the downloader\n                if [ \"$MVNW_VERBOSE\" = true ]; then\n                  echo \" - Running MavenWrapperDownloader.java ...\"\n                fi\n                (\"$JAVA_HOME/bin/java\" -cp .mvn/wrapper MavenWrapperDownloader \"$MAVEN_PROJECTBASEDIR\")\n            fi\n        fi\n    fi\nfi\n##########################################################################################\n# End of extension\n##########################################################################################\n\nexport MAVEN_PROJECTBASEDIR=${MAVEN_BASEDIR:-\"$BASE_DIR\"}\nif [ \"$MVNW_VERBOSE\" = true ]; then\n  echo $MAVEN_PROJECTBASEDIR\nfi\nMAVEN_OPTS=\"$(concat_lines \"$MAVEN_PROJECTBASEDIR/.mvn/jvm.config\") $MAVEN_OPTS\"\n\n# For Cygwin, switch paths to Windows format before running java\nif $cygwin; then\n  [ -n \"$M2_HOME\" ] &&\n    M2_HOME=`cygpath --path --windows \"$M2_HOME\"`\n  [ -n \"$JAVA_HOME\" ] &&\n    JAVA_HOME=`cygpath --path --windows \"$JAVA_HOME\"`\n  [ -n \"$CLASSPATH\" ] &&\n    CLASSPATH=`cygpath --path --windows \"$CLASSPATH\"`\n  [ -n \"$MAVEN_PROJECTBASEDIR\" ] &&\n    MAVEN_PROJECTBASEDIR=`cygpath --path --windows \"$MAVEN_PROJECTBASEDIR\"`\nfi\n\n# Provide a \"standardized\" way to retrieve the CLI args that will\n# work with both Windows and non-Windows executions.\nMAVEN_CMD_LINE_ARGS=\"$MAVEN_CONFIG $@\"\nexport MAVEN_CMD_LINE_ARGS\n\nWRAPPER_LAUNCHER=org.apache.maven.wrapper.MavenWrapperMain\n\nexec \"$JAVACMD\" \\\n  $MAVEN_OPTS \\\n  -classpath \"$MAVEN_PROJECTBASEDIR/.mvn/wrapper/maven-wrapper.jar\" \\\n  \"-Dmaven.home=${M2_HOME}\" \"-Dmaven.multiModuleProjectDirectory=${MAVEN_PROJECTBASEDIR}\" \\\n  ${WRAPPER_LAUNCHER} $MAVEN_CONFIG \"$@\"\n"
  },
  {
    "path": "mvnw.cmd",
    "content": "@REM ----------------------------------------------------------------------------\n@REM Licensed to the Apache Software Foundation (ASF) under one\n@REM or more contributor license agreements.  See the NOTICE file\n@REM distributed with this work for additional information\n@REM regarding copyright ownership.  The ASF licenses this file\n@REM to you under the Apache License, Version 2.0 (the\n@REM \"License\"); you may not use this file except in compliance\n@REM with the License.  You may obtain a copy of the License at\n@REM\n@REM    http://www.apache.org/licenses/LICENSE-2.0\n@REM\n@REM Unless required by applicable law or agreed to in writing,\n@REM software distributed under the License is distributed on an\n@REM \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n@REM KIND, either express or implied.  See the License for the\n@REM specific language governing permissions and limitations\n@REM under the License.\n@REM ----------------------------------------------------------------------------\n\n@REM ----------------------------------------------------------------------------\n@REM Maven2 Start Up Batch script\n@REM\n@REM Required ENV vars:\n@REM JAVA_HOME - location of a JDK home dir\n@REM\n@REM Optional ENV vars\n@REM M2_HOME - location of maven2's installed home dir\n@REM MAVEN_BATCH_ECHO - set to 'on' to enable the echoing of the batch commands\n@REM MAVEN_BATCH_PAUSE - set to 'on' to wait for a key stroke before ending\n@REM MAVEN_OPTS - parameters passed to the Java VM when running Maven\n@REM     e.g. to debug Maven itself, use\n@REM set MAVEN_OPTS=-Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=8000\n@REM MAVEN_SKIP_RC - flag to disable loading of mavenrc files\n@REM ----------------------------------------------------------------------------\n\n@REM Begin all REM lines with '@' in case MAVEN_BATCH_ECHO is 'on'\n@echo off\n@REM set title of command window\ntitle %0\n@REM enable echoing by setting MAVEN_BATCH_ECHO to 'on'\n@if \"%MAVEN_BATCH_ECHO%\" == \"on\"  echo %MAVEN_BATCH_ECHO%\n\n@REM set %HOME% to equivalent of $HOME\nif \"%HOME%\" == \"\" (set \"HOME=%HOMEDRIVE%%HOMEPATH%\")\n\n@REM Execute a user defined script before this one\nif not \"%MAVEN_SKIP_RC%\" == \"\" goto skipRcPre\n@REM check for pre script, once with legacy .bat ending and once with .cmd ending\nif exist \"%HOME%\\mavenrc_pre.bat\" call \"%HOME%\\mavenrc_pre.bat\"\nif exist \"%HOME%\\mavenrc_pre.cmd\" call \"%HOME%\\mavenrc_pre.cmd\"\n:skipRcPre\n\n@setlocal\n\nset ERROR_CODE=0\n\n@REM To isolate internal variables from possible post scripts, we use another setlocal\n@setlocal\n\n@REM ==== START VALIDATION ====\nif not \"%JAVA_HOME%\" == \"\" goto OkJHome\n\necho.\necho Error: JAVA_HOME not found in your environment. >&2\necho Please set the JAVA_HOME variable in your environment to match the >&2\necho location of your Java installation. >&2\necho.\ngoto error\n\n:OkJHome\nif exist \"%JAVA_HOME%\\bin\\java.exe\" goto init\n\necho.\necho Error: JAVA_HOME is set to an invalid directory. >&2\necho JAVA_HOME = \"%JAVA_HOME%\" >&2\necho Please set the JAVA_HOME variable in your environment to match the >&2\necho location of your Java installation. >&2\necho.\ngoto error\n\n@REM ==== END VALIDATION ====\n\n:init\n\n@REM Find the project base dir, i.e. the directory that contains the folder \".mvn\".\n@REM Fallback to current working directory if not found.\n\nset MAVEN_PROJECTBASEDIR=%MAVEN_BASEDIR%\nIF NOT \"%MAVEN_PROJECTBASEDIR%\"==\"\" goto endDetectBaseDir\n\nset EXEC_DIR=%CD%\nset WDIR=%EXEC_DIR%\n:findBaseDir\nIF EXIST \"%WDIR%\"\\.mvn goto baseDirFound\ncd ..\nIF \"%WDIR%\"==\"%CD%\" goto baseDirNotFound\nset WDIR=%CD%\ngoto findBaseDir\n\n:baseDirFound\nset MAVEN_PROJECTBASEDIR=%WDIR%\ncd \"%EXEC_DIR%\"\ngoto endDetectBaseDir\n\n:baseDirNotFound\nset MAVEN_PROJECTBASEDIR=%EXEC_DIR%\ncd \"%EXEC_DIR%\"\n\n:endDetectBaseDir\n\nIF NOT EXIST \"%MAVEN_PROJECTBASEDIR%\\.mvn\\jvm.config\" goto endReadAdditionalConfig\n\n@setlocal EnableExtensions EnableDelayedExpansion\nfor /F \"usebackq delims=\" %%a in (\"%MAVEN_PROJECTBASEDIR%\\.mvn\\jvm.config\") do set JVM_CONFIG_MAVEN_PROPS=!JVM_CONFIG_MAVEN_PROPS! %%a\n@endlocal & set JVM_CONFIG_MAVEN_PROPS=%JVM_CONFIG_MAVEN_PROPS%\n\n:endReadAdditionalConfig\n\nSET MAVEN_JAVA_EXE=\"%JAVA_HOME%\\bin\\java.exe\"\nset WRAPPER_JAR=\"%MAVEN_PROJECTBASEDIR%\\.mvn\\wrapper\\maven-wrapper.jar\"\nset WRAPPER_LAUNCHER=org.apache.maven.wrapper.MavenWrapperMain\n\nset DOWNLOAD_URL=\"https://repo.maven.apache.org/maven2/io/takari/maven-wrapper/0.5.5/maven-wrapper-0.5.5.jar\"\n\nFOR /F \"tokens=1,2 delims==\" %%A IN (\"%MAVEN_PROJECTBASEDIR%\\.mvn\\wrapper\\maven-wrapper.properties\") DO (\n    IF \"%%A\"==\"wrapperUrl\" SET DOWNLOAD_URL=%%B\n)\n\n@REM Extension to allow automatically downloading the maven-wrapper.jar from Maven-central\n@REM This allows using the maven wrapper in projects that prohibit checking in binary data.\nif exist %WRAPPER_JAR% (\n    if \"%MVNW_VERBOSE%\" == \"true\" (\n        echo Found %WRAPPER_JAR%\n    )\n) else (\n    if not \"%MVNW_REPOURL%\" == \"\" (\n        SET DOWNLOAD_URL=\"%MVNW_REPOURL%/io/takari/maven-wrapper/0.5.5/maven-wrapper-0.5.5.jar\"\n    )\n    if \"%MVNW_VERBOSE%\" == \"true\" (\n        echo Couldn't find %WRAPPER_JAR%, downloading it ...\n        echo Downloading from: %DOWNLOAD_URL%\n    )\n\n    powershell -Command \"&{\"^\n\t\t\"$webclient = new-object System.Net.WebClient;\"^\n\t\t\"if (-not ([string]::IsNullOrEmpty('%MVNW_USERNAME%') -and [string]::IsNullOrEmpty('%MVNW_PASSWORD%'))) {\"^\n\t\t\"$webclient.Credentials = new-object System.Net.NetworkCredential('%MVNW_USERNAME%', '%MVNW_PASSWORD%');\"^\n\t\t\"}\"^\n\t\t\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12; $webclient.DownloadFile('%DOWNLOAD_URL%', '%WRAPPER_JAR%')\"^\n\t\t\"}\"\n    if \"%MVNW_VERBOSE%\" == \"true\" (\n        echo Finished downloading %WRAPPER_JAR%\n    )\n)\n@REM End of extension\n\n@REM Provide a \"standardized\" way to retrieve the CLI args that will\n@REM work with both Windows and non-Windows executions.\nset MAVEN_CMD_LINE_ARGS=%*\n\n%MAVEN_JAVA_EXE% %JVM_CONFIG_MAVEN_PROPS% %MAVEN_OPTS% %MAVEN_DEBUG_OPTS% -classpath %WRAPPER_JAR% \"-Dmaven.multiModuleProjectDirectory=%MAVEN_PROJECTBASEDIR%\" %WRAPPER_LAUNCHER% %MAVEN_CONFIG% %*\nif ERRORLEVEL 1 goto error\ngoto end\n\n:error\nset ERROR_CODE=1\n\n:end\n@endlocal & set ERROR_CODE=%ERROR_CODE%\n\nif not \"%MAVEN_SKIP_RC%\" == \"\" goto skipRcPost\n@REM check for post script, once with legacy .bat ending and once with .cmd ending\nif exist \"%HOME%\\mavenrc_post.bat\" call \"%HOME%\\mavenrc_post.bat\"\nif exist \"%HOME%\\mavenrc_post.cmd\" call \"%HOME%\\mavenrc_post.cmd\"\n:skipRcPost\n\n@REM pause the script if MAVEN_BATCH_PAUSE is set to 'on'\nif \"%MAVEN_BATCH_PAUSE%\" == \"on\" pause\n\nif \"%MAVEN_TERMINATE_CMD%\" == \"on\" exit %ERROR_CODE%\n\nexit /B %ERROR_CODE%\n"
  },
  {
    "path": "pom.xml",
    "content": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<project xmlns=\"http://maven.apache.org/POM/4.0.0\"\n         xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\"\n         xsi:schemaLocation=\"http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd\">\n    <modelVersion>4.0.0</modelVersion>\n\n    <groupId>io.javalin</groupId>\n    <artifactId>profile-summary-for-github</artifactId>\n    <version>1.0</version>\n    <name>${artifactId}</name>\n\n    <properties>\n        <java.version>17</java.version>\n        <kotlin.compiler.jvmTarget>17</kotlin.compiler.jvmTarget>\n        <kotlin.version>2.2.20</kotlin.version>\n        <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>\n        <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>\n    </properties>\n\n    <dependencies>\n        <dependency>\n            <groupId>io.javalin</groupId>\n            <artifactId>javalin-bundle</artifactId>\n            <version>7.0.0</version>\n        </dependency>\n        <dependency>\n            <groupId>org.slf4j</groupId>\n            <artifactId>slf4j-simple</artifactId>\n            <version>2.0.17</version>\n        </dependency>\n        <dependency>\n            <groupId>org.apache.commons</groupId>\n            <artifactId>commons-lang3</artifactId>\n            <version>3.17.0</version>\n        </dependency>\n        <dependency>\n            <groupId>org.eclipse.mylyn.github</groupId>\n            <artifactId>org.eclipse.egit.github.core</artifactId>\n            <version>2.1.5</version>\n        </dependency>\n        <dependency>\n            <groupId>org.jetbrains.kotlin</groupId>\n            <artifactId>kotlin-test</artifactId>\n            <version>${kotlin.version}</version>\n            <scope>test</scope>\n        </dependency>\n        <dependency>\n            <groupId>com.h2database</groupId>\n            <artifactId>h2</artifactId>\n            <version>2.3.232</version>\n            <scope>runtime</scope>\n        </dependency>\n        <dependency>\n            <groupId>com.zaxxer</groupId>\n            <artifactId>HikariCP</artifactId>\n            <version>6.2.1</version>\n        </dependency>\n    </dependencies>\n\n    <build>\n      <finalName>${project.artifactId}</finalName>\n        <plugins>\n            <plugin>\n                <groupId>org.jetbrains.kotlin</groupId>\n                <artifactId>kotlin-maven-plugin</artifactId>\n                <version>${kotlin.version}</version>\n                <executions>\n                    <execution>\n                        <id>compile</id>\n                        <phase>compile</phase>\n                        <goals>\n                            <goal>compile</goal>\n                        </goals>\n                        <configuration>\n                            <jvmTarget>17</jvmTarget>\n                            <sourceDirs>\n                                <sourceDir>${project.basedir}/src/main/kotlin</sourceDir>\n                            </sourceDirs>\n                        </configuration>\n                    </execution>\n                    <execution>\n                        <id>test-compile</id>\n                        <phase>test-compile</phase>\n                        <goals>\n                            <goal>test-compile</goal>\n                        </goals>\n                    </execution>\n                </executions>\n                <configuration>\n                    <jvmTarget>17</jvmTarget>\n                </configuration>\n            </plugin>\n            <plugin>\n                <groupId>org.apache.maven.plugins</groupId>\n                <artifactId>maven-assembly-plugin</artifactId>\n                <executions>\n                    <execution>\n                        <goals>\n                            <goal>attached</goal>\n                        </goals>\n                        <phase>package</phase>\n                        <configuration>\n                            <descriptorRefs>\n                                <descriptorRef>jar-with-dependencies</descriptorRef>\n                            </descriptorRefs>\n                            <archive>\n                                <manifest>\n                                    <mainClass>app.MainKt</mainClass>\n                                </manifest>\n                            </archive>\n                        </configuration>\n                    </execution>\n                </executions>\n            </plugin>\n            <plugin>\n                <groupId>org.apache.maven.plugins</groupId>\n                <artifactId>maven-compiler-plugin</artifactId>\n                <configuration>\n                    <source>17</source>\n                    <target>17</target>\n                </configuration>\n            </plugin>\n\n            <plugin>\n                <groupId>com.heroku.sdk</groupId>\n                <artifactId>heroku-maven-plugin</artifactId>\n                <version>3.0.7</version>\n                <configuration>\n                    <jdkVersion>17</jdkVersion>\n                    <appName>profile-summary-for-github</appName>\n                    <processTypes>\n                        <!-- Tell Heroku how to launch your application -->\n                        <web>java -jar -Xmx256M ./target/profile-summary-for-github-jar-with-dependencies.jar</web>\n                    </processTypes>\n                </configuration>\n            </plugin>\n        </plugins>\n    </build>\n\n</project>\n"
  },
  {
    "path": "src/main/kotlin/app/CacheService.kt",
    "content": "@file:Suppress(\"SqlResolve\")\n\npackage app\n\nimport app.util.HikariCpDataSource\nimport com.fasterxml.jackson.module.kotlin.jacksonObjectMapper\nimport com.fasterxml.jackson.module.kotlin.readValue\nimport org.slf4j.LoggerFactory\nimport java.time.Instant\nimport java.time.temporal.ChronoUnit\n\nobject CacheService {\n    private val log = LoggerFactory.getLogger(CacheService.javaClass)\n    private val objectMapper = jacksonObjectMapper()\n    private val connection = HikariCpDataSource.connection\n\n    private fun createTableIfAbsent() {\n        val statement = connection.createStatement()\n\n        statement.execute(\n            \"\"\"\n            CREATE TABLE IF NOT EXISTS userinfo (\n            id VARCHAR2 PRIMARY KEY, \n            timestamp TIMESTAMP, \n            data JSON\n            )\n            \"\"\".trimIndent()\n        )\n    }\n\n    fun selectJsonFromDb(username: String): String? {\n        createTableIfAbsent()\n\n        val preparedStatement = connection.prepareStatement(\n            \"\"\"\n            SELECT \n            timestamp, \n            data \n            FROM userinfo \n            WHERE id = ?\n            \"\"\".trimIndent()\n        )\n        preparedStatement.setString(1, username.lowercase())\n\n        val result = preparedStatement.executeQuery()\n        result.use {\n            // guaranteed to be at most one.\n            if (it.next()) {\n                val timestamp = it.getTimestamp(\"timestamp\").toInstant()\n                val diffInHours = ChronoUnit.HOURS.between(timestamp, Instant.now())\n                if (diffInHours <= 6) {\n                    val json: String? = it.getString(\"data\")\n                    if (json != null) {\n                        log.debug(\"cache hit: {}\", json)\n                    }\n\n                    return json\n                }\n            }\n        }\n\n        log.debug(\"cache miss for username: {}\", username)\n\n        return null\n    }\n\n    fun getUserFromJson(json: String) = objectMapper.readValue<UserProfile>(json)\n\n    fun saveInCache(userProfile: UserProfile) {\n        createTableIfAbsent()\n\n        val json = objectMapper.writeValueAsString(userProfile)\n\n        val preparedStatement = connection.prepareStatement(\n            \"\"\"\n            MERGE INTO userinfo (id, timestamp, data) KEY (id) \n            VALUES (?, CURRENT_TIMESTAMP(), ? FORMAT JSON)\n            \"\"\".trimIndent()\n        )\n\n        preparedStatement.setString(1, userProfile.user.login.lowercase())\n        preparedStatement.setString(2, json)\n\n        preparedStatement.execute()\n    }\n}\n"
  },
  {
    "path": "src/main/kotlin/app/Config.kt",
    "content": "package app\n\nobject Config {\n\n    // Get port from Heroku, or return null (localhost)\n    fun getPort() = getHerokuProperty(\"port\")?.let {\n        Integer.parseInt(it)\n    }\n\n    // Get 'api-tokens' from Heroku/System, or return null if not set\n    fun getApiTokens(): String? = getProperty(\"api-tokens\")\n\n    // Get 'unrestricted' state from Heroku/System, or return null if not set\n    fun unrestricted(): Boolean = getProperty(\"unrestricted\")?.toBoolean() == true\n\n    // Get 'gtm-id' from Heroku/System, or return null if not set\n    fun getGtmId(): String? = getProperty(\"gtm-id\")\n\n    // Get 'star-bypass' from Heroku/System, or return null if not stored\n    fun freeRequestCutoff() = getProperty(\"free-requests-cutoff\")?.let { Integer.parseInt(it) }\n\n    private fun getProperty(name: String): String? = getHerokuProperty(name) ?: System.getProperty(name)\n\n    private fun getHerokuProperty(envStr: String) = ProcessBuilder().environment()[envStr.uppercase().replace(\"-\", \"_\")]\n\n}\n"
  },
  {
    "path": "src/main/kotlin/app/GhService.kt",
    "content": "package app\n\nimport io.javalin.websocket.WsContext\nimport org.eclipse.egit.github.core.client.GitHubClient\nimport org.eclipse.egit.github.core.service.CommitService\nimport org.eclipse.egit.github.core.service.RepositoryService\nimport org.eclipse.egit.github.core.service.UserService\nimport org.eclipse.egit.github.core.service.WatcherService\nimport org.slf4j.LoggerFactory\nimport java.util.concurrent.ConcurrentHashMap\nimport java.util.concurrent.Executors\nimport java.util.concurrent.TimeUnit\n\nobject GhService {\n\n    // https://javadoc.io/doc/org.eclipse.mylyn.github/org.eclipse.egit.github.core/2.1.5\n\n    private val log = LoggerFactory.getLogger(GhService.javaClass)\n\n    private val tokens = Config.getApiTokens()?.split(\",\") ?: listOf(\"\") // empty token is limited to 60 requests\n    private val clients = tokens.map { GitHubClient().apply { setOAuth2Token(it) } }\n    private val repoServices = clients.map { RepositoryService(it) }\n    private val commitServices = clients.map { CommitService(it) }\n    private val userServices = clients.map { UserService(it) }\n    private val watcherServices = clients.map { WatcherService(it) }\n\n    val repos: RepositoryService get() = repoServices.maxByOrNull { it.client.remainingRequests }!!\n    val commits: CommitService get() = commitServices.maxByOrNull { it.client.remainingRequests }!!\n    val users: UserService get() = userServices.maxByOrNull { it.client.remainingRequests }!!\n    val watchers: WatcherService get() = watcherServices.maxByOrNull { it.client.remainingRequests }!!\n\n    val remainingRequests: Int get() = clients.sumOf { it.remainingRequests }\n\n    // Allows for parallel iteration and O(1) put/remove\n    private val clientSessions = ConcurrentHashMap<WsContext, Boolean>()\n\n    fun registerClient(ws: WsContext) = clientSessions.put(ws, true) == true\n    fun unregisterClient(ws: WsContext) = clientSessions.remove(ws) == true\n\n    init {\n        Executors.newScheduledThreadPool(2).apply {\n\n            // ping clients every other minute to make sure remainingRequests is correct\n            scheduleAtFixedRate({\n                repoServices.forEach {\n                    try {\n                        it.getRepository(\"tipsy\", \"profile-summary-for-github\")\n                        log.info(\"Pinged client ${clients.indexOf(it.client)} - client.remainingRequests was ${it.client.remainingRequests}\")\n                    } catch (e: Exception) {\n                        log.info(\"Pinged client ${clients.indexOf(it.client)} - was rate-limited\")\n                    }\n                }\n            }, 0, 2, TimeUnit.MINUTES)\n\n            // update all connected clients with remainingRequests twice per second\n            scheduleAtFixedRate({\n                val remainingRequests = remainingRequests.toString()\n                clientSessions.forEachKey(1) {\n                    try {\n                        it.send(remainingRequests)\n                    } catch (e: Exception) {\n                        log.error(e.toString())\n                    }\n                }\n            }, 0, 500, TimeUnit.MILLISECONDS)\n\n        }\n    }\n\n}\n"
  },
  {
    "path": "src/main/kotlin/app/Main.kt",
    "content": "package app\n\nimport io.javalin.Javalin\nimport io.javalin.compression.CompressionStrategy\nimport io.javalin.http.BadRequestResponse\nimport io.javalin.http.NotFoundResponse\nimport io.javalin.http.queryParamAsClass\nimport io.javalin.http.staticfiles.Location\nimport io.javalin.plugin.bundled.JavalinVuePlugin\nimport io.javalin.plugin.bundled.RateLimitPlugin\nimport io.javalin.vue.VueComponent\nimport org.eclipse.jetty.server.HttpConnectionFactory\nimport org.eclipse.jetty.server.Server\nimport org.eclipse.jetty.server.ServerConnector\nimport org.eclipse.jetty.util.thread.QueuedThreadPool\nimport org.slf4j.LoggerFactory\nimport java.util.concurrent.TimeUnit\n\nfun main() {\n\n    val log = LoggerFactory.getLogger(\"app.MainKt\")\n    Javalin.start { config ->\n        config.bundledPlugins.enableSslRedirects()\n        config.staticFiles.add(\"/public\", Location.CLASSPATH)\n        config.http.compressionStrategy = CompressionStrategy.GZIP\n        config.unsafe.jettyInternal.server = Server(QueuedThreadPool(200, 8, 120000)).apply {\n            connectors = arrayOf(ServerConnector(server).apply {\n                port = Config.getPort() ?: 7070\n                idleTimeout = 120_000\n                connectionFactories.filterIsInstance<HttpConnectionFactory>().forEach {\n                    it.httpConfiguration.sendServerVersion = false\n                }\n            })\n        }\n        config.registerPlugin(RateLimitPlugin({}))\n        config.registerPlugin(JavalinVuePlugin { vue ->\n            vue.optimizeDependencies = false\n        })\n\n        // Routes\n        config.routes.before(\"/api/*\") { it.with(RateLimitPlugin::class).requestPerTimeUnit(20, TimeUnit.MINUTES) }\n        config.routes.get(\"/api/can-load\") { ctx ->\n            val user = ctx.queryParamAsClass<String>(\"user\").required().get()\n            // Use quick check that doesn't consume GitHub API requests\n            // This runs before the spinner is shown\n            ctx.status(if (UserService.canLoadUserQuick(user)) 200 else 400)\n        }\n        config.routes.get(\"/api/user/{user}\") { ctx ->\n            val user = ctx.pathParam(\"user\")\n            if (!UserService.userExists(user)) throw NotFoundResponse()\n            UserService.getUserIfCanLoad(user)?.let { ctx.json(it) } ?: throw BadRequestResponse(\"Can't load user\")\n        }\n        config.routes.get(\"/search\", VueComponent(\"search-view\"))\n        config.routes.get(\"/user/{user}\", VueComponent(\"user-view\"))\n        config.routes.ws(\"/rate-limit-status\") { ws ->\n            ws.onConnect { GhService.registerClient(it) }\n            ws.onClose { GhService.unregisterClient(it) }\n            ws.onError { GhService.unregisterClient(it) }\n        }\n        config.routes.after { it.cookie(\"gtm-id\", Config.getGtmId() ?: \"\") } // what is this?\n\n        // Exception and error handlers\n        config.routes.exception(Exception::class.java) { e, ctx ->\n            log.warn(\"Uncaught exception\", e)\n            ctx.status(500)\n        }\n        config.routes.error(404, \"html\") {\n            it.redirect(\"/search\")\n        }\n    }\n\n}\n"
  },
  {
    "path": "src/main/kotlin/app/UserProfile.kt",
    "content": "package app\n\nimport org.eclipse.egit.github.core.User\n\ndata class UserProfile(\n    val user: User,\n    val quarterCommitCount: Map<String, Int>,\n    val langRepoCount: Map<String, Int>,\n    val langStarCount: Map<String, Int>,\n    val langCommitCount: Map<String, Int>,\n    val repoCommitCount: Map<String, Int>,\n    val repoStarCount: Map<String, Int>,\n    val repoCommitCountDescriptions: Map<String, String?>,\n    val repoStarCountDescriptions: Map<String, String?>\n)\n"
  },
  {
    "path": "src/main/kotlin/app/UserService.kt",
    "content": "package app\n\nimport app.util.CommitCountUtil\nimport org.eclipse.egit.github.core.Repository\nimport org.eclipse.egit.github.core.RepositoryCommit\nimport org.slf4j.LoggerFactory\nimport java.util.concurrent.ConcurrentHashMap\nimport java.util.stream.IntStream\nimport kotlin.streams.toList\n\nobject UserService {\n\n    private val log = LoggerFactory.getLogger(\"app.UserCtrlKt\")\n\n    fun userExists(user: String): Boolean = try {\n        GhService.users.getUser(user) != null\n    } catch (e: Exception) {\n        false\n    }\n\n    private fun remainingRequests(): Int = GhService.remainingRequests\n\n    // Lightweight check that doesn't consume GitHub API requests\n    // Used by /api/can-load to check before showing the spinner\n    fun canLoadUserQuick(user: String): Boolean {\n        val userCacheJson = CacheService.selectJsonFromDb(user)\n        return Config.unrestricted()\n            || (userCacheJson != null)\n            || remainingRequests() > 0\n    }\n\n    fun getUserIfCanLoad(username: String): UserProfile? {\n        val userCacheJson = CacheService.selectJsonFromDb(username)\n        val canLoadUser = Config.unrestricted()\n            || (userCacheJson != null)\n            || remainingRequests() > 0\n\n        if (canLoadUser) {\n            return if (userCacheJson == null) {\n                generateUserProfile(username)\n            } else {\n                CacheService.getUserFromJson(userCacheJson)\n            }\n        }\n\n        return null\n    }\n\n    private fun commitsForRepo(repo: Repository): List<RepositoryCommit> = try {\n        GhService.commits.getCommits(repo)\n    } catch (e: Exception) {\n        listOf()\n    }\n\n    private fun generateUserProfile(username: String): UserProfile {\n        val user = GhService.users.getUser(username)\n        val repos = GhService.repos.getRepositories(username).filter { !it.isFork && it.size != 0 }\n        val repoCommits = repos.parallelStream().map { it to commitsForRepo(it).filter { it.author?.login.equals(username, ignoreCase = true) } }.toList().toMap()\n        val langRepoGrouping = repos.groupingBy { (it.language ?: \"Unknown\") }\n\n        val quarterCommitCount = CommitCountUtil.getCommitsForQuarters(user, repoCommits)\n        val langRepoCount = langRepoGrouping.eachCount().toList().sortedBy { (_, v) -> -v }.toMap()\n        val langStarCount = langRepoGrouping.fold(0) { acc, repo -> acc + repo.watchers }.toList().filter { (_, v) -> v > 0 }.sortedBy { (_, v) -> -v }.toMap()\n        val langCommitCount = langRepoGrouping.fold(0) { acc, repo -> acc + repoCommits[repo]!!.size }.toList().sortedBy { (_, v) -> -v }.toMap()\n        val repoCommitCount = repoCommits.map { it.key.name to it.value.size }.toList().sortedBy { (_, v) -> -v }.take(10).toMap()\n        val repoStarCount = repos.filter { it.watchers > 0 }.map { it.name to it.watchers }.sortedBy { (_, v) -> -v }.take(10).toMap()\n\n        val repoCommitCountDescriptions = repoCommitCount.map { it.key to repos.find { r -> r.name == it.key }?.description }.toMap()\n        val repoStarCountDescriptions = repoStarCount.map { it.key to repos.find { r -> r.name == it.key }?.description }.toMap()\n\n        val userProfile = UserProfile(\n            user,\n            quarterCommitCount,\n            langRepoCount,\n            langStarCount,\n            langCommitCount,\n            repoCommitCount,\n            repoStarCount,\n            repoCommitCountDescriptions,\n            repoStarCountDescriptions\n        )\n\n        CacheService.saveInCache(userProfile)\n\n        return userProfile;\n    }\n}\n"
  },
  {
    "path": "src/main/kotlin/app/util/CommitCountUtil.kt",
    "content": "package app.util\n\nimport org.eclipse.egit.github.core.Repository\nimport org.eclipse.egit.github.core.RepositoryCommit\nimport org.eclipse.egit.github.core.User\nimport java.time.Instant\nimport java.time.OffsetDateTime\nimport java.time.ZoneOffset\nimport java.time.ZoneOffset.UTC\nimport java.time.temporal.IsoFields\nimport java.time.temporal.IsoFields.QUARTER_YEARS\nimport java.time.temporal.TemporalAdjusters\nimport java.util.*\n\nobject CommitCountUtil {\n\n    fun getCommitsForQuarters(user: User, repoCommits: Map<Repository, List<RepositoryCommit>>): SortedMap<String, Int> {\n        val creation = asInstant(user.createdAt).withDayOfMonth(1)\n        val now = Instant.now().atOffset(UTC).with(TemporalAdjusters.firstDayOfNextMonth())\n\n        val quarterBuckets = (0..QUARTER_YEARS.between(creation, now))\n                .associate { yearQuarterFromDate(creation.plus(it, QUARTER_YEARS)) to 0 }\n                .toSortedMap()\n\n        repoCommits.values.flatten().groupingBy { yearQuarterFromCommit(it) }.eachCountTo(quarterBuckets)\n\n        return quarterBuckets\n    }\n\n    private fun asInstant(date: Date) = date.toInstant().atOffset(ZoneOffset.UTC)\n    private fun yearQuarterFromCommit(it: RepositoryCommit) = yearQuarterFromDate(asInstant(it.commit.committer.date))\n    private fun yearQuarterFromDate(date: OffsetDateTime) = \"${date.year}-Q${date.get(IsoFields.QUARTER_OF_YEAR)}\"\n\n}\n"
  },
  {
    "path": "src/main/kotlin/app/util/HikariCpDataSource.kt",
    "content": "package app.util\n\nimport com.zaxxer.hikari.HikariConfig\nimport com.zaxxer.hikari.HikariDataSource\nimport java.sql.Connection\n\nobject HikariCpDataSource {\n    private const val urlToDb = \"jdbc:h2:mem:userinfo;DB_CLOSE_DELAY=-1;QUERY_CACHE_SIZE=256\"\n\n    private val config = HikariConfig().apply {\n        jdbcUrl = urlToDb\n    }\n\n    private var hikariDataSource = HikariDataSource(config)\n\n    val connection: Connection get() = hikariDataSource.connection\n}\n"
  },
  {
    "path": "src/main/resources/logback.xml",
    "content": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<configuration>\n    <appender name=\"STDOUT\" class=\"ch.qos.logback.core.ConsoleAppender\">\n        <encoder>\n            <pattern>%d{HH:mm:ss.SSS} [%thread] %-5level %logger{36} - %msg%n</pattern>\n        </encoder>\n    </appender>\n\n    <root level=\"INFO\">\n        <appender-ref ref=\"STDOUT\" />\n    </root>\n\n    <!-- Set Javalin to INFO level -->\n    <logger name=\"io.javalin\" level=\"INFO\" />\n    \n    <!-- Set Jetty to WARN level to reduce noise -->\n    <logger name=\"org.eclipse.jetty\" level=\"WARN\" />\n</configuration>\n\n"
  },
  {
    "path": "src/main/resources/vue/components/_charts.vue",
    "content": "<script>\n    const UNKNOWN_LANGUAGE = \"Unknown\";\n\n    function donutChart(objectName, data) {\n        let canvas = document.getElementById(objectName);\n        if (canvas === null) {\n            return;\n        }\n        let userId = data.user.login;\n        let labels = Object.keys(data[objectName]);\n\n        /**\n         * The language index of <code>UNKNOWN_LANGUAGE</code>\n         * @type {Number}\n         */\n        let indexOfUnknownLanguage = -1;\n        let values = Object.values(data[objectName]);\n        let colors = createColorArray(labels.length);\n        let tooltipInfo = null;\n        window.languageColors = window.languageColors || {};\n        if (\"langRepoCount\" === objectName) {\n            // when the first language-set is loaded, set a color-profile for all languages\n            labels.forEach((language, i) => languageColors[language] = colors[i]);\n        }\n        if ([\"langRepoCount\", \"langStarCount\", \"langCommitCount\"].indexOf(objectName) > -1) {\n            // if the dataset is language-related, load color-profile\n            labels.forEach((language, i) => colors[i] = languageColors[language]);\n            indexOfUnknownLanguage = labels.indexOf(UNKNOWN_LANGUAGE);\n        }\n        if (objectName === \"repoCommitCount\") {\n            tooltipInfo = data[objectName + \"Descriptions\"]; // high quality programming\n            arrayRotate(colors, 4); // change starting color\n        }\n        if (objectName === \"repoStarCount\") {\n            tooltipInfo = data[objectName + \"Descriptions\"]; // high quality programming\n            arrayRotate(colors, 2); // change starting color\n        }\n        new Chart(canvas.getContext(\"2d\"), {\n            type: \"doughnut\",\n            data: {\n                labels: labels,\n                datasets: [{\n                    data: values,\n                    backgroundColor: colors\n                }]\n            },\n            options: {\n                animation: false,\n                rotation: (-0.40 * Math.PI),\n                maintainAspectRatio: true,\n                responsive: true,\n                legend: { // todo: fix duplication ?\n                    position: window.innerWidth < 600 ? \"bottom\" : \"left\",\n                    labels: {\n                        fontSize: window.innerWidth < 480 ? 11 : window.innerWidth < 600 ? 10 : 12,\n                        padding: window.innerWidth < 480 ? 6 : window.innerWidth < 600 ? 8 : 10,\n                        boxWidth: window.innerWidth < 480 ? 12 : window.innerWidth < 600 ? 10 : 12\n                    }\n                },\n                tooltips: {\n                    callbacks: {\n                        afterLabel: function (tooltipItem, data) {\n                            if (tooltipInfo !== null) {\n                                return wordWrap(tooltipInfo[data[\"labels\"][tooltipItem[\"index\"]]], 45);\n                            }\n\n                            if (tooltipItem.index === indexOfUnknownLanguage) {\n                                return \"No specific language\";\n                            }\n                        }\n                    },\n                },\n                onClick: function (e, data) {\n                    try {\n                        let label = labels[data[0]._index];\n                        const isUnknownLanguage = (data[0]._index === indexOfUnknownLanguage);\n                        let canvas = data[0]._chart.canvas.id;\n                        if (canvas === \"repoStarCount\" || canvas === \"repoCommitCount\") {\n                            window.open(\"https://github.com/\" + userId + \"/\" + label, \"_blank\");\n                            window.focus();\n                        } else {\n                            if (!isUnknownLanguage) {\n                                window.open(\"https://github.com/\" + userId + \"?utf8=%E2%9C%93&tab=repositories&q=&type=source&language=\" + encodeURIComponent(label), \"_blank\");\n                                window.focus();\n                            }\n                        }\n                    } catch (ignored) {\n                    }\n                },\n                onResize: function (instance) { // todo: fix duplication ?\n                    instance.chart.options.legend.position = window.innerWidth < 600 ? \"bottom\" : \"left\";\n                    instance.chart.options.legend.labels.fontSize = window.innerWidth < 480 ? 11 : window.innerWidth < 600 ? 10 : 12;\n                    instance.chart.options.legend.labels.padding = window.innerWidth < 480 ? 6 : window.innerWidth < 600 ? 8 : 10;\n                    instance.chart.options.legend.labels.boxWidth = window.innerWidth < 480 ? 12 : window.innerWidth < 600 ? 10 : 12;\n                }\n            }\n        });\n\n        function createColorArray(length) {\n            const colors = [\"#54ca76\", \"#f5c452\", \"#f2637f\", \"#9261f3\", \"#31a4e6\", \"#55cbcb\"];\n            let array = [...Array(length).keys()].map(i => colors[i % colors.length]);\n            // avoid first and last colors being the same\n            if (length % colors.length === 1) {\n                array[length - 1] = colors[1];\n            }\n            return array;\n        }\n\n        function arrayRotate(arr, n) {\n            for (let i = 0; i < n; i++) {\n                arr.push(arr.shift());\n            }\n            return arr\n        }\n\n        function wordWrap(str, n) {\n            if (str === null) {\n                return null;\n            }\n            let currentLine = [];\n            let resultLines = [];\n            str.split(\" \").forEach(word => {\n                currentLine.push(word);\n                if (currentLine.join(\" \").length > n) {\n                    resultLines.push(currentLine.join(\" \"));\n                    currentLine = [];\n                }\n            });\n            if (currentLine.length > 0) {\n                resultLines.push(currentLine.join(\" \"));\n            }\n            return resultLines\n        }\n    }\n\n    function lineChart(objectName, data) {\n        new Chart(document.getElementById(objectName).getContext(\"2d\"), {\n            type: \"line\",\n            data: {\n                labels: Object.keys(data[objectName]),\n                datasets: [{\n                    label: \"Commits\",\n                    data: Object.values(data[objectName]),\n                    backgroundColor: \"rgba(67, 142, 233, 0.2)\",\n                    borderColor: \"rgba(67, 142, 233, 1)\",\n                    lineTension: 0\n                }]\n            },\n            options: {\n                maintainAspectRatio: false,\n                animation: false,\n                scales: {\n                    xAxes: [{\n                        display: false\n                    }],\n                    yAxes: [{\n                        position: \"right\",\n                        beginAtZero: true\n                    }]\n                },\n                legend: {\n                    display: false\n                },\n                tooltips: {\n                    intersect: false\n                }\n            }\n        });\n    }\n</script>\n"
  },
  {
    "path": "src/main/resources/vue/components/_gtm.vue",
    "content": "<script>\n    (function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':\n    new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],\n    j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=\n    '//www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);\n    })(window,document,'script','dataLayer',Cookies.get(\"gtm-id\"));\n</script>\n"
  },
  {
    "path": "src/main/resources/vue/components/_main-styles.vue",
    "content": "<style>\n    * {\n        font-family: 'Barlow Semi Condensed', sans-serif;\n        outline: 0;\n        box-sizing: border-box;\n    }\n\n    [v-cloak] {\n        display: none;\n    }\n\n    html {\n        font-size: 18px;\n        background: radial-gradient(circle at 20% 20%, #f2ede4, #ebe0d0);\n        padding: 60px 30px;\n        overflow-y: scroll;\n        min-height: 100vh;\n    }\n\n    body {\n        margin: 0;\n    }\n\n    h1, h2, h3, h4 {\n        font-weight: 400;\n    }\n\n    a {\n        color: #0082c8;\n        text-decoration: none;\n    }\n\n    .content {\n        max-width: 1200px;\n        margin: 0 auto;\n    }\n\n    .fade-in {\n        opacity: 0;\n        animation: fade-in .2s linear forwards;\n    }\n\n    @keyframes fade-in {\n        from {\n            opacity: 0;\n        }\n        to {\n            opacity: 1;\n        }\n    }\n\n    @media (max-width: 480px) {\n        html {\n            padding: 30px 15px;\n            font-size: 16px;\n        }\n\n        h1 {\n            font-size: 24px;\n        }\n\n        h2 {\n            font-size: 20px;\n        }\n\n        h3 {\n            font-size: 18px;\n        }\n    }\n</style>\n"
  },
  {
    "path": "src/main/resources/vue/components/app-frame.vue",
    "content": "<template id=\"app-frame\">\n    <div>\n        <main class=\"main-content\">\n            <slot :requests-left=\"requestsLeft\"></slot>\n        </main>\n        <footer>\n            GitHub profile summary is built with <a href=\"https://javalin.io\">Javalin 7</a> <small>(kotlin web framework)</small> and\n            <a href=\"http://www.chartjs.org/docs/latest/\" target=\"_blank\">chart.js</a> <small>(visualization)</small>.\n            Source is on <a href=\"https://github.com/tipsy/profile-summary-for-github\" target=\"_blank\">GitHub</a>.\n        </footer>\n        <span class=\"rate-limit\">\n            <span v-if=\"requestsLeft === 0\">The app is currently rate-limited<br>Please check back later</span>\n            <span v-if=\"requestsLeft !== 0\"><strong>{{requestsLeft}}</strong> requests left <br> before rate-limit</span>\n        </span>\n    </div>\n</template>\n<script>\n    Vue.component(\"app-frame\", {\n        template: \"#app-frame\",\n        data: () => ({\n            requestsLeft: 9876,\n        }),\n        created() {\n            let wsProtocol = window.location.protocol.indexOf(\"https\") > -1 ? \"wss\" : \"ws\";\n            let ws = new WebSocket(wsProtocol + \"://\" + location.hostname + \":\" + location.port + \"/rate-limit-status\");\n            ws.onmessage = msg => this.requestsLeft = msg.data;\n        },\n    });\n</script>\n<style>\n    footer {\n        font-size: 17px;\n        position: fixed;\n        left: 0;\n        bottom: 0;\n        width: 100%;\n        text-align: center;\n        padding: 10px 30px;\n        border-top: 1px solid rgba(0, 0, 0, 0.1);\n        background: #eee9df;\n    }\n\n    .rate-limit {\n        position: fixed;\n        right: 20px;\n        bottom: 60px;\n        background: #fff;\n        padding: 10px;\n        box-shadow: 0 1px 1px rgba(0, 0, 0, 0.3);\n        font-size: 16px;\n        border-radius: 4px;\n    }\n\n    @media (max-width: 480px) {\n        .rate-limit {\n            padding: 5px 8px;\n            font-size: 13px;\n            bottom: 0;\n            right: 0;\n        }\n    }\n</style>\n"
  },
  {
    "path": "src/main/resources/vue/components/donut-charts.vue",
    "content": "<template id=\"donut-charts\">\n    <div class=\"charts\">\n        <div class=\"chart-row\">\n            <div class=\"chart-container chart-container--third\">\n                <h2>Repos per Language</h2>\n                <canvas id=\"langRepoCount\"></canvas>\n            </div>\n            <div v-if=\"Math.max(...Object.values(data.repoStarCount)) > 0\" class=\"chart-container chart-container--third\">\n                <h2>Stars per Language</h2>\n                <canvas id=\"langStarCount\"></canvas>\n            </div>\n            <div class=\"chart-container chart-container--third\">\n                <h2>Commits per Language</h2>\n                <canvas id=\"langCommitCount\"></canvas>\n            </div>\n        </div>\n        <div class=\"chart-row\">\n            <div class=\"chart-container chart-container--half\">\n                <h2>Commits per Repo\n                    <small v-if=\"Object.keys(data.repoCommitCount).length === 10\">(top 10)</small>\n                </h2>\n                <canvas id=\"repoCommitCount\"></canvas>\n            </div>\n            <div v-if=\"Object.keys(data.repoStarCount).length > 0\" class=\"chart-container chart-container--half\">\n                <h2>Stars per Repo\n                    <small v-if=\"Object.keys(data.repoStarCount).length == 10\">(top 10)</small>\n                </h2>\n                <canvas id=\"repoStarCount\"></canvas>\n            </div>\n        </div>\n    </div>\n</template>\n<script>\n    Vue.component(\"donut-charts\", {\n        template: \"#donut-charts\",\n        props: [\"data\"],\n        mounted() {\n            donutChart(\"langRepoCount\", this.data);\n            donutChart(\"langStarCount\", this.data);\n            donutChart(\"langCommitCount\", this.data);\n            donutChart(\"repoCommitCount\", this.data);\n            donutChart(\"repoStarCount\", this.data);\n        }\n    });\n</script>\n<style>\n    canvas {\n        user-select: none;\n    }\n\n    .charts,\n    .chart-row {\n        overflow: auto;\n    }\n\n    .chart-row {\n        padding-bottom: 40px;\n    }\n\n    .chart-row {\n        border-top: 1px solid rgba(0, 0, 0, 0.1);\n        display: flex;\n        justify-content: space-around;\n    }\n\n    .chart-container--third {\n        width: 33%;\n    }\n\n    .chart-container--half {\n        width: 50%;\n    }\n\n    @media (max-width: 900px) {\n        .chart-container--third,\n        .chart-container--half {\n            width: 100%;\n        }\n\n        .chart-row {\n            display: block;\n        }\n\n    }\n\n    @media (max-width: 480px) {\n        .chart-row {\n            padding-bottom: 20px;\n        }\n\n        .chart-container {\n            padding: 15px 10px;\n        }\n\n        .chart-container h2 {\n            font-size: 18px;\n            margin-bottom: 15px;\n        }\n\n        .chart-container canvas {\n            max-height: 300px;\n        }\n\n        footer {\n            display: none;\n        }\n    }\n</style>\n"
  },
  {
    "path": "src/main/resources/vue/components/loading-bouncer.vue",
    "content": "<template id=\"loading-bouncer\">\n    <div class=\"loading-bouncer\" style=\"opacity: 0; animation: fade-in 0.2s linear 0.5s forwards\">\n        <div class=\"la-square-jelly-box la-3x\">\n            <div></div>\n            <div></div>\n        </div>\n        <h2>Analyzing GitHub profile</h2>\n        <h3 style=\"opacity: 0; animation: fade-in 0.2s linear 4s forwards\">This could take some time ...</h3>\n        <h3 style=\"opacity: 0; animation: fade-in 0.2s linear 8s forwards\">This user has a lot of repos!</h3>\n    </div>\n</template>\n<script>\n    Vue.component(\"loading-bouncer\", {template: \"#loading-bouncer\"});\n</script>\n<style>\n    .loading-bouncer {\n        margin-top: 50px;\n        display: flex;\n        flex-direction: column;\n        align-items: center;\n    }\n\n    .la-square-jelly-box {\n        color: #0082c8;\n    }\n\n    .loading-bouncer h2,\n    .loading-bouncer h3 {\n        color: #333;\n    }\n</style>\n"
  },
  {
    "path": "src/main/resources/vue/components/share-bar.vue",
    "content": "<template id=\"share-bar\">\n    <div class=\"share-bar\">\n        <a class=\"social-btn\" :href=\"twitterUrl\" rel=\"nofollow\" title=\"Share on Twitter\"><i class=\"fa fa-fw fa-twitter\"></i>Share on Twitter</a>\n        <a class=\"social-btn\" :href=\"facebookUrl\" rel=\"nofollow\" title=\"Share on Facebook\"><i class=\"fa fa-fw fa-facebook\"></i>Share on Facebook</a>\n        <a class=\"social-btn copy-link-btn\" @click.prevent=\"copyLink\" :title=\"copyButtonText\">\n            <i class=\"fa fa-fw\" :class=\"copied ? 'fa-check' : 'fa-link'\"></i>{{ copyButtonText }}\n        </a>\n    </div>\n</template>\n<script>\n    Vue.component(\"share-bar\", {\n        template: \"#share-bar\",\n        props: [\"user\"],\n        data: () => ({\n            copied: false\n        }),\n        computed: {\n            profileUrl: function () {\n                return \"https://profile-summary-for-github.com/user/\" + this.user.login;\n            },\n            shareText: function () {\n                return this.user.login + \"'s GitHub profile - Visualized:\";\n            },\n            twitterUrl: function () {\n                return \"https://twitter.com/intent/tweet?url=\" + this.profileUrl + \"&text=\" + this.shareText + \"&via=javalin_io&related=javalin_io\";\n            },\n            facebookUrl: function () {\n                return \"https://facebook.com/sharer.php?u=\" + this.profileUrl + \"&quote=\" + this.shareText\n            },\n            copyButtonText: function () {\n                return this.copied ? \"Copied!\" : \"Copy Link\";\n            }\n        },\n        methods: {\n            copyLink: function () {\n                const url = this.profileUrl;\n                if (navigator.clipboard && navigator.clipboard.writeText) {\n                    navigator.clipboard.writeText(url).then(() => {\n                        this.copied = true;\n                        setTimeout(() => { this.copied = false; }, 2000);\n                    });\n                } else {\n                    // Fallback for older browsers\n                    const textArea = document.createElement(\"textarea\");\n                    textArea.value = url;\n                    textArea.style.position = \"fixed\";\n                    textArea.style.left = \"-999999px\";\n                    document.body.appendChild(textArea);\n                    textArea.select();\n                    try {\n                        document.execCommand('copy');\n                        this.copied = true;\n                        setTimeout(() => { this.copied = false; }, 2000);\n                    } catch (err) {\n                        console.error('Failed to copy:', err);\n                    }\n                    document.body.removeChild(textArea);\n                }\n            }\n        }\n    });\n</script>\n<style>\n    .share-bar {\n        position: absolute;\n        top: 0;\n        left: 50%;\n        transform: translateX(-50%);\n        background: rgba(0, 0, 0, .04);\n        font-size: 14px;\n        text-align: center;\n        border-radius: 4px;\n        padding: 5px 10px;\n    }\n\n    .share-bar a {\n        white-space: nowrap;\n        margin: 5px 8px;\n        display: inline-block;\n        transition: opacity 0.2s;\n    }\n\n    .share-bar a:hover {\n        opacity: 0.7;\n    }\n\n    .share-bar a i {\n        color: #0082c8;\n    }\n\n    .copy-link-btn {\n        cursor: pointer;\n    }\n\n    .copy-link-btn.copied {\n        color: #27ae60;\n    }\n\n    .copy-link-btn .fa-check {\n        color: #27ae60;\n    }\n\n    @media (max-width: 480px) {\n        .share-bar {\n            width: 100%;\n            position: relative;\n            left: 0;\n            transform: none;\n            margin-bottom: 20px;\n            font-size: 12px;\n            padding: 8px 5px;\n        }\n\n        .share-bar a {\n            margin: 3px 4px;\n            font-size: 12px;\n        }\n\n        .share-bar a i {\n            margin-right: 3px;\n        }\n    }\n</style>\n"
  },
  {
    "path": "src/main/resources/vue/components/user-info.vue",
    "content": "<template id=\"user-info\">\n    <div class=\"user-info\">\n        <img :src=\"user.avatarUrl\" :alt=\"user.login\">\n        <div class=\"details\">\n            <div><i class=\"fa fa-fw fa-user\"></i>{{ user.login }}\n                <small v-if=\"user.name\">({{ user.name }})</small>\n            </div>\n            <div><i class=\"fa fa-fw fa-database\"></i>{{ user.publicRepos }} public repos</div>\n            <div><i class=\"fa fa-fw fa-clock-o\"></i>Joined GitHub {{ timeAgo }}</div>\n            <div><i class=\"fa fa-fw fa-external-link\"></i><a :href=\"user.htmlUrl\" target=\"_blank\">View profile on GitHub</a></div>\n        </div>\n        <div class=\"chart-container commits-per-quarter\">\n            <canvas id=\"quarterCommitCount\"></canvas>\n        </div>\n    </div>\n</template>\n<script>\n    Vue.component(\"user-info\", {\n        template: \"#user-info\",\n        props: [\"user\", \"data\"],\n        computed: {\n            timeAgo() {\n                return moment(this.user.createdAt).fromNow()\n            }\n        },\n        mounted() {\n            lineChart(\"quarterCommitCount\", this.data)\n        }\n    });\n</script>\n<style>\n    .user-info {\n        display: flex;\n        padding-bottom: 40px;\n    }\n\n    .user-info img {\n        align-self: center;\n        border-radius: 3px;\n        width: 175px;\n        margin-right: 20px;\n    }\n\n    .user-info .details {\n        display: flex;\n        flex-direction: column;\n        justify-content: space-between;\n        margin-right: 20px;\n        flex-shrink: 0;\n    }\n\n    .user-info i.fa {\n        color: rgba(0, 0, 0, 0.67);\n        margin-right: 5px;\n    }\n\n    .user-info .commits-per-quarter {\n        flex-grow: 1;\n        flex-shrink: 1;\n        position: relative;\n    }\n\n    .user-info .commits-per-quarter::after {\n        content: \"Commits per quarter\";\n        position: absolute;\n        right: 40px;\n        bottom: -15px;\n        font-size: 13px;\n    }\n\n    @media (max-width: 480px) {\n        .user-info {\n            flex-direction: column;\n            align-items: center;\n            text-align: center;\n        }\n\n        .user-info img {\n            width: 120px;\n            margin-right: 0;\n            margin-bottom: 15px;\n        }\n\n        .user-info .details {\n            margin-right: 0;\n            margin-bottom: 15px;\n        }\n\n        .user-info .commits-per-quarter {\n            display: none;\n        }\n    }\n</style>\n"
  },
  {
    "path": "src/main/resources/vue/layout.html",
    "content": "<!DOCTYPE html>\n<html lang=\"en\">\n    <head>\n        <title>Profile Summary For GitHub</title>\n        <link rel=\"icon\" href=\"/favicon.png\">\n        <meta charset=\"UTF-8\">\n        <meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\">\n        <meta name=\"description\" content=\"Visualize your GitHub profile with beautiful charts and statistics. Analyze commits, languages, and repository activity in an interactive dashboard.\">\n        <meta property=\"og:title\" content=\"GitHub Profile Summary - Visualize Your GitHub Activity\">\n        <meta property=\"og:site_name\" content=\"GitHub Profile Summary\">\n        <meta property=\"og:url\" content=\"https://profile-summary-for-github.com\">\n        <meta property=\"og:description\" content=\"Visualize your GitHub profile with beautiful charts and statistics. Analyze commits, languages, and repository activity in an interactive dashboard.\">\n        <meta property=\"og:type\" content=\"website\">\n        <meta name=\"twitter:card\" content=\"summary_large_image\">\n        <meta name=\"twitter:title\" content=\"GitHub Profile Summary - Visualize Your GitHub Activity\">\n        <meta name=\"twitter:description\" content=\"Visualize your GitHub profile with beautiful charts and statistics. Analyze commits, languages, and repository activity.\"\n        <meta property=\"og:image\" content=\"https://user-images.githubusercontent.com/1521451/33957306-8e1d8af0-e041-11e7-8e04-3de9e32868ba.PNG\">\n        <meta name=\"google-site-verification\" content=\"HFqNncqWzEo0ZmlYB0fnuPLSGe48YvR9BDPOrhPnXSM\" />\n        <link rel=\"stylesheet\" href=\"https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css\">\n        <link rel=\"stylesheet\" href=\"https://fonts.googleapis.com/css?family=Barlow+Semi+Condensed\">\n        <link rel=\"stylesheet\" href=\"https://cdn.jsdelivr.net/npm/load-awesome@1.1.0/css/square-jelly-box.min.css\">\n        <script src=\"https://cdn.jsdelivr.net/npm/chart.js@2.8.0/dist/Chart.min.js\"></script>\n        <script src=\"https://cdn.jsdelivr.net/npm/axios@0.19.0/dist/axios.min.js\"></script>\n        <script src=\"https://cdn.jsdelivr.net/npm/vue@2.6.10/dist/vue.js\"></script>\n        <script src=\"https://cdn.jsdelivr.net/npm/moment@2.24.0/min/moment.min.js\"></script>\n        <script src=\"https://cdn.jsdelivr.net/npm/js-cookie@2/src/js.cookie.min.js\"></script>\n        @componentRegistration\n    </head>\n    <body>\n        <main id=\"main-vue\" class=\"content\" v-cloak>\n            @routeComponent\n        </main>\n        <script>\n            new Vue({el: \"#main-vue\"});\n        </script>\n    </body>\n</html>\n"
  },
  {
    "path": "src/main/resources/vue/views/search-view.vue",
    "content": "<template id=\"search-view\">\n    <app-frame v-slot=\"{requestsLeft}\">\n        <div class=\"search-screen\">\n            <h1>Enter GitHub username</h1>\n            <div class=\"search-input-container\">\n                <input type=\"text\" name=\"q\" placeholder=\"ex. 'tipsy'\" v-model=\"query\" autofocus @keydown.enter=\"search\">\n            </div>\n            <button @click=\"search\" :disabled=\"!query.trim()\">View Profile</button>\n            <div v-if=\"error && error.response.status === 404\">\n                <h4>Can't find user <span class=\"search-term\">{{failedQuery}}</span>. Check spelling.</h4>\n            </div>\n            <div v-else-if=\"failedQuery\">\n                <h4>Can't build profile for <span class=\"search-term\">{{failedQuery}}</span></h4>\n                <p>\n                    If you are <span class=\"search-term\">{{failedQuery}}</span>, please\n                    <a href=\"https://github.com/tipsy/profile-summary-for-github\">star the repo</a> and try again.\n                </p>\n                <p>\n                    The app is running with two GitHub tokens, giving 10 000 requests per hour.\n                    The first 5000 requests can be used to build any profile, while the last 5000 requests are\n                    reserved for users building their own profile. To confirm that you're building your own\n                    profile, we check if you've starred the repository.\n                </p>\n            </div>\n            <div v-if=\"requestsLeft === 0\">\n                The app is rate limited. Please come back later or build the app locally and use your own tokens.\n            </div>\n        </div>\n    </app-frame>\n</template>\n<script>\n    Vue.component(\"search-view\", {\n        template: \"#search-view\",\n        data: () => ({\n            error: null,\n            failedQuery: \"\",\n            query: \"\"\n        }),\n        methods: {\n            search() {\n                this.error = null;\n                this.failedQuery = null;\n                axios.get(\"/api/can-load?user=\" + this.query)\n                    .then(() => window.location = \"/user/\" + this.query)\n                    .catch(error => {\n                        this.error = error;\n                        this.failedQuery = this.query\n                    });\n            }\n        },\n    });\n</script>\n<style>\n    .search-screen {\n        display: flex;\n        flex-direction: column;\n        align-items: center;\n    }\n\n    .search-term {\n        border: 1px solid rgba(0, 0, 0, 0.2);\n        background: rgba(0, 0, 0, 0.025);\n        padding: 1px 2px;\n        font-family: monospace;\n        font-size: 80%;\n    }\n\n    .search-input-container {\n        width: 100%;\n        max-width: 300px;\n    }\n\n    .search-screen input {\n        width: 100%;\n        height: 40px;\n        font-size: 18px;\n        padding: 0 15px;\n        border: 2px solid transparent;\n        border-radius: 4px;\n        transition: all 0.2s;\n        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);\n    }\n\n    .search-screen input:hover {\n        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);\n    }\n\n    .search-screen input:focus {\n        border-color: #0082c8;\n        box-shadow: 0 2px 8px rgba(0, 130, 200, 0.2);\n    }\n\n    .search-screen button {\n        margin-top: 20px;\n        height: 40px;\n        font-size: 18px;\n        padding: 0 25px;\n        border: 0;\n        line-height: 1;\n        background: #0082c8;\n        color: white;\n        cursor: pointer;\n        border-radius: 4px;\n        transition: background 0.2s;\n    }\n\n    .search-screen button:hover:not(:disabled) {\n        background: #006ba1;\n    }\n\n    .search-screen button:disabled {\n        background: #ccc;\n        cursor: not-allowed;\n        opacity: 0.6;\n    }\n\n    @media (max-width: 480px) {\n        .search-screen h1 {\n            font-size: 24px;\n            margin: 10px 0 20px 0;\n        }\n\n        .search-input-container {\n            max-width: 100%;\n            padding: 0 10px;\n        }\n\n        .search-screen input {\n            font-size: 16px;\n            height: 44px;\n            min-width: auto;\n        }\n\n        .search-screen button {\n            width: 100%;\n            max-width: 300px;\n            font-size: 16px;\n            height: 44px;\n        }\n\n        .search-screen .search-term {\n            font-size: 90%;\n        }\n\n        .search-screen > div {\n            padding: 0 20px;\n        }\n    }\n</style>\n"
  },
  {
    "path": "src/main/resources/vue/views/user-view.vue",
    "content": "<template id=\"user-view\">\n    <app-frame v-slot=\"{requestsLeft}\">\n        <div class=\"back-button-container\">\n            <a href=\"/search\" class=\"back-button\">\n                <i class=\"fa fa-arrow-left\"></i> Search Another User\n            </a>\n        </div>\n        <loading-bouncer v-if=\"!data && !error\"></loading-bouncer>\n        <div v-if=\"data\" class=\"fade-in\">\n            <share-bar :user=\"user\"></share-bar>\n            <user-info :user=\"user\" :data=\"data\"></user-info>\n            <donut-charts :data=\"data\"></donut-charts>\n        </div>\n        <div v-if=\"error\" class=\"error-container\">\n            <div class=\"error-box\">\n                <i class=\"fa fa-exclamation-circle error-icon\"></i>\n                <div v-if=\"error.response.status === 404\">\n                    <h3>User Not Found</h3>\n                    <p>We couldn't find a GitHub user with that username. Please check the spelling and try again.</p>\n                </div>\n                <div v-else-if=\"requestsLeft === 0\">\n                    <h3>Rate Limited</h3>\n                    <p>The app has reached its GitHub API rate limit. Please come back later or build the app locally with your own tokens.</p>\n                </div>\n                <div v-else>\n                    <h3>Something Went Wrong</h3>\n                    <p>An unexpected error occurred. Please try again in a moment.</p>\n                </div>\n                <a href=\"/search\" class=\"error-back-button\">← Back to Search</a>\n            </div>\n        </div>\n    </app-frame>\n</template>\n<script>\n    Vue.component(\"user-view\", {\n        template: \"#user-view\",\n        data: () => ({\n            data: null,\n            user: null,\n            error: null,\n        }),\n        created() {\n            let userId = this.$javalin.pathParams[\"user\"];\n            axios.get(\"/api/user/\" + userId).then(response => {\n                this.data = response.data;\n                this.user = response.data.user;\n            }).catch(error => this.error = error);\n        },\n    });\n</script>\n<style>\n    .back-button-container {\n        margin-bottom: 20px;\n    }\n\n    .back-button {\n        display: inline-block;\n        padding: 8px 16px;\n        background: rgba(255, 255, 255, 0.8);\n        border-radius: 4px;\n        font-size: 14px;\n        transition: background 0.2s;\n    }\n\n    .back-button:hover {\n        background: rgba(255, 255, 255, 1);\n    }\n\n    .back-button i {\n        margin-right: 5px;\n    }\n\n    .error-container {\n        display: flex;\n        justify-content: center;\n        align-items: center;\n        min-height: 300px;\n    }\n\n    .error-box {\n        background: white;\n        padding: 40px;\n        border-radius: 4px;\n        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);\n        text-align: center;\n        max-width: 500px;\n    }\n\n    .error-icon {\n        font-size: 48px;\n        color: #e74c3c;\n        margin-bottom: 20px;\n    }\n\n    .error-box h3 {\n        margin: 0 0 10px 0;\n        color: #333;\n    }\n\n    .error-box p {\n        margin: 0 0 20px 0;\n        color: #666;\n        line-height: 1.6;\n    }\n\n    .error-back-button {\n        display: inline-block;\n        padding: 10px 20px;\n        background: #0082c8;\n        color: white;\n        border-radius: 4px;\n        margin-top: 10px;\n        transition: background 0.2s;\n    }\n\n    .error-back-button:hover {\n        background: #006ba1;\n    }\n\n    @media (max-width: 480px) {\n        .back-button-container {\n            margin-bottom: 15px;\n        }\n\n        .back-button {\n            font-size: 13px;\n            padding: 6px 12px;\n        }\n\n        .error-box {\n            padding: 30px 20px;\n            margin: 0 10px;\n        }\n\n        .error-icon {\n            font-size: 36px;\n            margin-bottom: 15px;\n        }\n\n        .error-box h3 {\n            font-size: 20px;\n        }\n\n        .error-box p {\n            font-size: 15px;\n        }\n\n        .error-back-button {\n            width: 100%;\n            max-width: 250px;\n        }\n    }\n</style>\n"
  },
  {
    "path": "system.properties",
    "content": "java.runtime.version=17\nmaven.version=3.9.4\n\n"
  }
]