<commit_before># The Simple Noteprogram

#### __Note:__ This program is still being developed, it may be buggy.

This is a simple note-taking program written in Python 3 with GTK+ 3 aimed at GNU/Linux users that displays a note icon in the system tray. The tray icon can be clicked and notes with a title and a description can be easily made. The notes are always saved automatically.

## Windows/OSX support

This application was designed for GNU/Linux users. I haven't made a Windows installer (yet) so following these instructions for installing the Windows dependencies will result in many useless programs. I've included some Windows instructions anyway just because it's possible to run this program in Windows.

OSX is not supported in these instructions. I don't have a mac so I can't test my applications on OSX. However, installing the dependencies should work the same way it works for Windows and running should work similarly to GNU operating systems.

## Downloading and dependencies

Downloading this application is easy. Just go to the top right of this page and click the "Download zip" button. Then extract the `install-prefix` folder from the zip.

You need to have these dependencies installed in order to run this program:

| Name                  | Debian/Ubuntu package             | Windows download                                                                              |
|-----------------------|-----------------------------------|-----------------------------------------------------------------------------------------------|
| Python 3.2 or newer   | `python3` (installed by default)  | [python.org/downloads](https://www.python.org/downloads/)                                     |
| Appdirs for Python 3  | `python3-appdirs`                 | `py -m pip install appdirs` __[\*]__                                                          |
| PyGI for Python 3     | `python3-gi`                      | [sourceforge.net/projects/pygobjectwin32](https://sourceforge.net/projects/pygobjectwin32/)   |
| GTK+ 3 for GI         | `gir1.2-gtk-3.0`                  | Same as for PyGI, make sure it installs GTK+ 3                                                |
| AppIndicator 3 for GI | `gir1.2-appindicator3-0.1`        | Same as for PyGI, make sure it installs AppIndicator 3                                        |

__[\*]__ *Install Python first, then right-click command prompt in Start menu or Start screen, open it as administrator, type the command there and press Enter.*

## Running without installing

This is easy after downloading the `install-prefix` directory. On Windows, open `install-prefix`, go to `bin`, rename `the-simple-noteprogram` to `the-simple-noteprogram.pyw` and double-click it to run. On GNU/Linux, give the file executable permissions and run it. You can do it by running these commands on a terminal window (`$` is the prompt, don't type it literally):

    $ cd /path/to/install-prefix
    $ chmod +x bin/the-simple-noteprogram
    $ bin/the-simple-noteprogram

## Installing and uninstalling

#### GNU operating systems

First run the program without installing to make sure it works.

The `install-prefix` directory's content is meant to be installed into a directory somewhere on your computer. A typical location for it is `/usr/local`. The program should appear in the desktop environment's menu after installation. In the example commands, replace `/path/to/install-prefix` with the path to the `install-prefix` directory you extracted.

You can use rsync to install the content of the install-prefix directory and chmod to make sure the main file has executable permissions, like this:

    $ cd /path/to/install-prefix
    $ sudo rsync -r * /usr/local
    $ sudo chmod a+x /usr/local/bin/the-simple-noteprogram

Uninstalling is a bit more complicated. We need to find the installed files and then remove them. __Remember that `/path/to/install-prefix` is the path to the `install-prefix` you downloaded, *not* to the directory you installed to.__

    $ cd /path/to/install-prefix
    $ find -type f -exec sudo rm /usr/local/{} \;

#### Other operating systems

You can move the `install-prefix` directory anywhere you want and rename it to anything you want. You can also make a clickable link to the executable in `install-prefix/bin` and set its icon to one of the icons under `install-prefix/share/icons`.
<commit_msg>Add "Clone or download" -> "Download zip"<commit_after># The Simple Noteprogram

#### __Note:__ This program is still being developed, it may be buggy.

This is a simple note-taking program written in Python 3 with GTK+ 3 aimed at GNU/Linux users that displays a note icon in the system tray. The tray icon can be clicked and notes with a title and a description can be easily made. The notes are always saved automatically.

## Windows/OSX support

This application was designed for GNU/Linux users. I haven't made a Windows installer (yet) so following these instructions for installing the Windows dependencies will result in many useless programs. I've included some Windows instructions anyway just because it's possible to run this program in Windows.

OSX is not supported in these instructions. I don't have a mac so I can't test my applications on OSX. However, installing the dependencies should work the same way it works for Windows and running should work similarly to GNU operating systems.

## Downloading and dependencies

Downloading this application is easy. Just go to the top right of this page and click the "Download zip" button (or "Clone or download" ➔ "Download zip"). Then extract the `install-prefix` folder from the zip.

You need to have these dependencies installed in order to run this program:

| Name                  | Debian/Ubuntu package             | Windows download                                                                              |
|-----------------------|-----------------------------------|-----------------------------------------------------------------------------------------------|
| Python 3.2 or newer   | `python3` (installed by default)  | [python.org/downloads](https://www.python.org/downloads/)                                     |
| Appdirs for Python 3  | `python3-appdirs`                 | `py -m pip install appdirs` __[\*]__                                                          |
| PyGI for Python 3     | `python3-gi`                      | [sourceforge.net/projects/pygobjectwin32](https://sourceforge.net/projects/pygobjectwin32/)   |
| GTK+ 3 for GI         | `gir1.2-gtk-3.0`                  | Same as for PyGI, make sure it installs GTK+ 3                                                |
| AppIndicator 3 for GI | `gir1.2-appindicator3-0.1`        | Same as for PyGI, make sure it installs AppIndicator 3                                        |

__[\*]__ *Install Python first, then right-click command prompt in Start menu or Start screen, open it as administrator, type the command there and press Enter.*

## Running without installing

This is easy after downloading the `install-prefix` directory. On Windows, open `install-prefix`, go to `bin`, rename `the-simple-noteprogram` to `the-simple-noteprogram.pyw` and double-click it to run. On GNU/Linux, give the file executable permissions and run it. You can do it by running these commands on a terminal window (`$` is the prompt, don't type it literally):

    $ cd /path/to/install-prefix
    $ chmod +x bin/the-simple-noteprogram
    $ bin/the-simple-noteprogram

## Installing and uninstalling

#### GNU operating systems

First run the program without installing to make sure it works.

The `install-prefix` directory's content is meant to be installed into a directory somewhere on your computer. A typical location for it is `/usr/local`. The program should appear in the desktop environment's menu after installation. In the example commands, replace `/path/to/install-prefix` with the path to the `install-prefix` directory you extracted.

You can use rsync to install the content of the install-prefix directory and chmod to make sure the main file has executable permissions, like this:

    $ cd /path/to/install-prefix
    $ sudo rsync -r * /usr/local
    $ sudo chmod a+x /usr/local/bin/the-simple-noteprogram

Uninstalling is a bit more complicated. We need to find the installed files and then remove them. __Remember that `/path/to/install-prefix` is the path to the `install-prefix` you downloaded, *not* to the directory you installed to.__

    $ cd /path/to/install-prefix
    $ find -type f -exec sudo rm /usr/local/{} \;

#### Other operating systems

You can move the `install-prefix` directory anywhere you want and rename it to anything you want. You can also make a clickable link to the executable in `install-prefix/bin` and set its icon to one of the icons under `install-prefix/share/icons`.

{'fraction_non_alphanumeric': 0.10277527075812275, 'fraction_numerical': 0.0058664259927797835, 'mean_word_length': 2.456140350877193, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 4, 'https://': 4, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 38, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7669654', 'n_tokens_mistral': 2229, 'n_tokens_neox': 2107, 'n_words': 1074}