text
stringlengths
9
39.2M
dir
stringlengths
25
226
lang
stringclasses
163 values
created_date
timestamp[s]
updated_date
timestamp[s]
repo_name
stringclasses
751 values
repo_full_name
stringclasses
752 values
star
int64
1.01k
183k
len_tokens
int64
1
18.5M
```c++ * * This program is free software: you can redistribute it and/or modify * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. S...
/content/code_sandbox/include/ableton/platforms/windows/ThreadFactory.hpp
c++
2016-02-03T16:19:24
2024-08-10T07:40:39
link
Ableton/link
1,073
312
```c++ * * This program is free software: you can redistribute it and/or modify * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. S...
/content/code_sandbox/include/ableton/platforms/windows/ScanIpIfAddrs.hpp
c++
2016-02-03T16:19:24
2024-08-10T07:40:39
link
Ableton/link
1,073
1,156
```c++ * * This program is free software: you can redistribute it and/or modify * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. S...
/content/code_sandbox/include/ableton/platforms/windows/Clock.hpp
c++
2016-02-03T16:19:24
2024-08-10T07:40:39
link
Ableton/link
1,073
371
```c++ * * This program is free software: you can redistribute it and/or modify * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. S...
/content/code_sandbox/include/ableton/platforms/esp32/Random.hpp
c++
2016-02-03T16:19:24
2024-08-10T07:40:39
link
Ableton/link
1,073
166
```c++ * Copenhagen. All rights reserved. * * This program is free software: you can redistribute it and/or modify * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or ...
/content/code_sandbox/include/ableton/platforms/esp32/ScanIpIfAddrs.hpp
c++
2016-02-03T16:19:24
2024-08-10T07:40:39
link
Ableton/link
1,073
350
```c++ * * This program is free software: you can redistribute it and/or modify * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. S...
/content/code_sandbox/include/ableton/platforms/esp32/Esp32.hpp
c++
2016-02-03T16:19:24
2024-08-10T07:40:39
link
Ableton/link
1,073
135
```c++ * * This program is free software: you can redistribute it and/or modify * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. S...
/content/code_sandbox/include/ableton/platforms/esp32/LockFreeCallbackDispatcher.hpp
c++
2016-02-03T16:19:24
2024-08-10T07:40:39
link
Ableton/link
1,073
547
```c++ * * This program is free software: you can redistribute it and/or modify * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. S...
/content/code_sandbox/include/ableton/platforms/esp32/Context.hpp
c++
2016-02-03T16:19:24
2024-08-10T07:40:39
link
Ableton/link
1,073
1,773
```c++ * * This program is free software: you can redistribute it and/or modify * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. S...
/content/code_sandbox/include/ableton/platforms/esp32/Clock.hpp
c++
2016-02-03T16:19:24
2024-08-10T07:40:39
link
Ableton/link
1,073
169
```c++ * * This program is free software: you can redistribute it and/or modify * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. S...
/content/code_sandbox/include/ableton/platforms/stl/Random.hpp
c++
2016-02-03T16:19:24
2024-08-10T07:40:39
link
Ableton/link
1,073
237
```c++ * * This program is free software: you can redistribute it and/or modify * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. S...
/content/code_sandbox/include/ableton/platforms/stl/Clock.hpp
c++
2016-02-03T16:19:24
2024-08-10T07:40:39
link
Ableton/link
1,073
216
```c++ * * This program is free software: you can redistribute it and/or modify * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. S...
/content/code_sandbox/include/ableton/platforms/linux/Linux.hpp
c++
2016-02-03T16:19:24
2024-08-10T07:40:39
link
Ableton/link
1,073
166
```c++ * * This program is free software: you can redistribute it and/or modify * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. S...
/content/code_sandbox/include/ableton/platforms/linux/ThreadFactory.hpp
c++
2016-02-03T16:19:24
2024-08-10T07:40:39
link
Ableton/link
1,073
244
```c++ * * This program is free software: you can redistribute it and/or modify * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. S...
/content/code_sandbox/include/ableton/platforms/linux/Clock.hpp
c++
2016-02-03T16:19:24
2024-08-10T07:40:39
link
Ableton/link
1,073
301
```c++ /* * Catch v2.13.7 * Generated: 2021-07-28 20:29:27.753164 * ---------------------------------------------------------- * This file has been merged from multiple headers. Please don't edit it directly * * file LICENSE_1_0.txt or copy at path_to_url */ #ifndef TWOBLUECUBES_SINGLE_INCLUDE_CATCH_HPP_INC...
/content/code_sandbox/third_party/catch/catch.hpp
c++
2016-02-03T16:19:24
2024-08-10T07:40:39
link
Ableton/link
1,073
146,130
```python import os from setuptools import setup def read(fname): return open(os.path.join(os.path.dirname(__file__), fname)).read() setup( name="my_first_calculator", version="0.1", author="Alexander Lewis", author_email="info@acelewis.com", description="This is my first calculator", ur...
/content/code_sandbox/setup.py
python
2016-05-06T17:48:51
2024-08-14T00:24:11
my_first_calculator.py
AceLewis/my_first_calculator.py
4,063
101
```python from decimal import Decimal as d import decimal # Generator used to create my_first_calculator # Open a file that we can write to python_file = open('my_first_calculator.py', 'w') # The minimum and maximum numbers we can use min_num = 0 max_num = 50 nums = range(min_num, max_num+1) signs = ['+', '-', '/', '*...
/content/code_sandbox/generator.py
python
2016-05-06T17:48:51
2024-08-14T00:24:11
my_first_calculator.py
AceLewis/my_first_calculator.py
4,063
480
```python # my_first_calculator.py by AceLewis # TODO: Make it work for all floating point numbers too if 3/2 == 1: # Because Python 2 does not know maths input = raw_input # Python 2 compatibility print('Welcome to this calculator!') print('It can add, subtract, multiply and divide whole numbers from 0 to 50')...
/content/code_sandbox/my_first_calculator.py
python
2016-05-06T17:48:51
2024-08-14T00:24:11
my_first_calculator.py
AceLewis/my_first_calculator.py
4,063
300,798
```unknown poetry 1.5.1 nodejs 16.20.2 rust nightly python 3.9.13 ```
/content/code_sandbox/.tool-versions
unknown
2016-04-27T15:26:09
2024-08-16T18:38:46
activitywatch
ActivityWatch/activitywatch
11,595
30
```unknown cff-version: 1.2.0 message: "If you use or refer to this software in your research, please cite it." authors: - family-names: "Bjreholt" given-names: "Erik" orcid: "path_to_url" - family-names: "Bjreholt" given-names: "Johan" orcid: "path_to_url" title: "ActivityWatch" version: 0.13.1 doi: 10.5281/ze...
/content/code_sandbox/CITATION.cff
unknown
2016-04-27T15:26:09
2024-08-16T18:38:46
activitywatch
ActivityWatch/activitywatch
11,595
135
```unknown # -*- mode: python -*- # vi: set ft=python : import os import platform import shlex import subprocess from pathlib import Path import aw_core import flask_restx def build_analysis(name, location, binaries=[], datas=[], hiddenimports=[]): name_py = name.replace("-", "_") location_candidates = [ ...
/content/code_sandbox/aw.spec
unknown
2016-04-27T15:26:09
2024-08-16T18:38:46
activitywatch
ActivityWatch/activitywatch
11,595
1,743
```unknown # ===================================== # Makefile for the ActivityWatch bundle # ===================================== # # [GUIDE] How to install from source: # - path_to_url # # We recommend creating and activating a Python virtualenv before building. # Instructions on how to do this can be found in the g...
/content/code_sandbox/Makefile
unknown
2016-04-27T15:26:09
2024-08-16T18:38:46
activitywatch
ActivityWatch/activitywatch
11,595
1,950
```toml [tool.poetry] name = "activitywatch" version = "0.13.1" description = "The free and open-source automated time tracker. Cross-platform, extensible, privacy-focused." authors = ["Erik Bjreholt <erik@bjareho.lt>", "Johan Bjreholt <johan@bjareho.lt>"] license = "MPL-2.0" [tool.poetry.dependencies] python = "^3.8,...
/content/code_sandbox/pyproject.toml
toml
2016-04-27T15:26:09
2024-08-16T18:38:46
activitywatch
ActivityWatch/activitywatch
11,595
374
```shell #!/bin/bash latest_version_tag=$(git tag -l | grep "^v[0-9]\..*" | sort --version-sort | tail -n1 ) current_version_tag=$(git describe --tags) echo "Latest version: $latest_version_tag" echo "Current version: $current_version_tag" ```
/content/code_sandbox/scripts/checkout-latest-tag.sh
shell
2016-04-27T15:26:09
2024-08-16T18:38:46
activitywatch
ActivityWatch/activitywatch
11,595
64
```python import os import re from datetime import datetime from collections import defaultdict import logging import aw_core logging.basicConfig() log_dir = aw_core.dirs.get_log_dir("") def get_filepaths(): filepaths = [] for folder, dirs, files in os.walk(log_dir): print("Crawling folder: " + fol...
/content/code_sandbox/scripts/logcrawler.py
python
2016-04-27T15:26:09
2024-08-16T18:38:46
activitywatch
ActivityWatch/activitywatch
11,595
513
```json # This file is automatically @generated by Poetry 1.6.1 and should not be changed by hand. [[package]] name = "altgraph" version = "0.17.4" description = "Python graph (network) package" optional = false python-versions = "*" files = [ {file = "altgraph-0.17.4-py2.py3-none-any.whl", hash = "sha256:your_sha...
/content/code_sandbox/poetry.lock
json
2016-04-27T15:26:09
2024-08-16T18:38:46
activitywatch
ActivityWatch/activitywatch
11,595
8,888
```shell #!/bin/bash modules=$(pip3 list --format=legacy | grep 'aw-' | grep -o '^aw-[^ ]*') for module in $modules; do pip3 uninstall -y $module done ```
/content/code_sandbox/scripts/uninstall.sh
shell
2016-04-27T15:26:09
2024-08-16T18:38:46
activitywatch
ActivityWatch/activitywatch
11,595
49
```shell #!/bin/bash for module in "aw-server" "aw-watcher-afk" "aw-watcher-x11"; do ln -s $(pwd)/$module/misc/${module}.service ~/.config/systemd/user/${module}.service done ```
/content/code_sandbox/scripts/symlink-systemd.sh
shell
2016-04-27T15:26:09
2024-08-16T18:38:46
activitywatch
ActivityWatch/activitywatch
11,595
55
```shell #!/bin/bash echo "nop.bat was executed as a workaround for something" ```
/content/code_sandbox/scripts/nop.sh
shell
2016-04-27T15:26:09
2024-08-16T18:38:46
activitywatch
ActivityWatch/activitywatch
11,595
17
```shell #!/bin/bash applemail=$APPLE_EMAIL # Email address used for Apple ID password=$APPLE_PASSWORD # See apps-specific password path_to_url teamid=$APPLE_TEAMID # Team idenitifer (if single developer, then set to developer identifier) keychain_profile="activitywatch-$APPLE_PERSONALID" # name of the keychain profi...
/content/code_sandbox/scripts/notarize.sh
shell
2016-04-27T15:26:09
2024-08-16T18:38:46
activitywatch
ActivityWatch/activitywatch
11,595
809
```shell #!/bin/bash # Get current branch # git rev-parse --abbrev-ref HEAD # Get branch for each submodule # git submodule foreach "git rev-parse --abbrev-ref HEAD" SUBMODULES=$(git submodule | sed -r -e 's/^[ \+][a-z0-9]+ //g' -e 's/ \(.*\)//g') for module in $SUBMODULES; do branch=$(git --git-dir=$module/....
/content/code_sandbox/scripts/submodule-branch.sh
shell
2016-04-27T15:26:09
2024-08-16T18:38:46
activitywatch
ActivityWatch/activitywatch
11,595
127
```shell #!/bin/bash # Update dependency locks for each submodule in the activitywatch repo set -e set -x # For submodule in submodules: for submodule in $(git submodule | sed 's/^[+ ]//' | cut -d' ' -f2); do # Go to submodule cd $submodule # Check that we're on the master branch and latest commit i...
/content/code_sandbox/scripts/update-deps.sh
shell
2016-04-27T15:26:09
2024-08-16T18:38:46
activitywatch
ActivityWatch/activitywatch
11,595
202
```shell #!/usr/bin/env bash re_ignore='.*(build|dist|venv|old|other|scripts|node|static).*' echo -n "Lines of code (excluding test): " files=$(find | egrep '\.(py|js|ts|rs|vue)$' | egrep -v $re_ignore | grep -v 'test') echo $files | xargs cat | wc -l #echo "Files:" #for file in $files; do # echo " - $file" #done...
/content/code_sandbox/scripts/count_lines.sh
shell
2016-04-27T15:26:09
2024-08-16T18:38:46
activitywatch
ActivityWatch/activitywatch
11,595
362
```shell #!/bin/bash # TODO: Merge with scripts/package/getversion.sh # Script that fetches the previous release (if current commit is a tag), # or the latest release, if current commit is not a tag. # If stable only, then we return the latest stable release, # else, we will return the latest release, either stable...
/content/code_sandbox/scripts/get_latest_release.sh
shell
2016-04-27T15:26:09
2024-08-16T18:38:46
activitywatch
ActivityWatch/activitywatch
11,595
289
```python #!/usr/bin/env python3 """ Script that generates a changelog for the repository and its submodules, and outputs it in the current directory. NOTE: This script can be downloaded as-is and run from your repository. Repos using this script: - ActivityWatch/activitywatch - ErikBjare/gptme Manual actions need...
/content/code_sandbox/scripts/build_changelog.py
python
2016-04-27T15:26:09
2024-08-16T18:38:46
activitywatch
ActivityWatch/activitywatch
11,595
4,468
```powershell function main ($arch) { If ( $arch -eq "64" ) { $url="path_to_url" } ElseIf ( $arch -eq "32" ) { $url="path_to_url" } Else { Write-Output "Invalid architecture" return -1 } pip install --user $url } main $env:PYTHON_ARCH ```
/content/code_sandbox/scripts/ci/install_pyhook.ps1
powershell
2016-04-27T15:26:09
2024-08-16T18:38:46
activitywatch
ActivityWatch/activitywatch
11,595
83
```shell #!/bin/sh set -e # Source: path_to_url export KEY_CHAIN=build.keychain export CERTIFICATE_P12=aw_certificate.p12 # Recreate the certificate from the secure environment variable echo $CERTIFICATE_MACOS_P12_BASE64 | base64 --decode > $CERTIFICATE_P12 #create a keychain security -v create-keychain -p travis $...
/content/code_sandbox/scripts/ci/import-macos-p12.sh
shell
2016-04-27T15:26:09
2024-08-16T18:38:46
activitywatch
ActivityWatch/activitywatch
11,595
194
```python import os import platform import subprocess import tempfile from time import sleep import pytest def _windows_kill_process(pid): import ctypes PROCESS_TERMINATE = 1 handle = ctypes.windll.kernel32.OpenProcess(PROCESS_TERMINATE, False, pid) ctypes.windll.kernel32.TerminateProcess(handle, -1...
/content/code_sandbox/scripts/tests/integration_tests.py
python
2016-04-27T15:26:09
2024-08-16T18:38:46
activitywatch
ActivityWatch/activitywatch
11,595
656
```batchfile :: Enable long paths on Windows (needed when building since node_modules can create deep hierarchies) REG ADD "HKLM\SYSTEM\CurrentControlSet\Control\FileSystem" /v LongPathsEnabled /t REG_DWORD /d 1 /f ```
/content/code_sandbox/scripts/ci/enable_long_paths.bat
batchfile
2016-04-27T15:26:09
2024-08-16T18:38:46
activitywatch
ActivityWatch/activitywatch
11,595
54
```batchfile :: To build extensions for 64 bit Python 3, we need to configure environment :: variables to use the MSVC 2010 C++ compilers from GRMSDKX_EN_DVD.iso of: :: MS Windows SDK for Windows 7 and .NET Framework 4 (SDK v7.1) :: :: To build extensions for 64 bit Python 2, we need to configure environment :: variabl...
/content/code_sandbox/scripts/ci/run_with_env.cmd
batchfile
2016-04-27T15:26:09
2024-08-16T18:38:46
activitywatch
ActivityWatch/activitywatch
11,595
886
```shell #!/bin/bash function install_with_brew() { # Will get the latest version in brew. # As of writing, 3.6 and later won't work with PyInstaller so this method is avoided for now. brew update; brew install python3; } function install_with_pkg() { wget -O python3.pkg path_to_url sudo insta...
/content/code_sandbox/scripts/ci/setup_venv_osx.sh
shell
2016-04-27T15:26:09
2024-08-16T18:38:46
activitywatch
ActivityWatch/activitywatch
11,595
132
```powershell $msipath = "$PSScriptRoot\node-installer.msi" function RunCommand ($command, $command_args) { Write-Host $command $command_args Start-Process -FilePath $command -ArgumentList $command_args -Wait -Passthru } function InstallNode () { DownloadNodeMSI InstallNodeMSI } function DownloadNode...
/content/code_sandbox/scripts/ci/install_node.ps1
powershell
2016-04-27T15:26:09
2024-08-16T18:38:46
activitywatch
ActivityWatch/activitywatch
11,595
295
```shell #!/bin/bash # # We should create a release checklist to ensure releases are consistent. # # Create an annotated tag #git tag -a $ ```
/content/code_sandbox/scripts/chores/make-release.sh
shell
2016-04-27T15:26:09
2024-08-16T18:38:46
activitywatch
ActivityWatch/activitywatch
11,595
32
```powershell # Sample script to install Python and pip under Windows # Authors: Olivier Grisel, Jonathan Helmus, Kyle Kastner, and Alex Willmer # # Find the latest version of this script at: # path_to_url $MINICONDA_URL = "path_to_url" $BASE_URL = "path_to_url" $GET_PIP_URL = "path_to_url" $GET_PIP_PATH = "C:\get-pi...
/content/code_sandbox/scripts/ci/install_python.ps1
powershell
2016-04-27T15:26:09
2024-08-16T18:38:46
activitywatch
ActivityWatch/activitywatch
11,595
1,949
```shell #!/bin/bash set -e echoerr() { echo "$@" 1>&2; } function get_platform() { # Will return "linux" for GNU/Linux # I'd just like to interject for a moment... # path_to_url # Will return "macos" for macOS/OS X # Will return "windows" for Windows/MinGW/msys _platform=$(uname | tr '[...
/content/code_sandbox/scripts/package/package-all.sh
shell
2016-04-27T15:26:09
2024-08-16T18:38:46
activitywatch
ActivityWatch/activitywatch
11,595
607
```shell #!/bin/bash # TODO: Merge with scripts/package/getversion.sh # set -e if [[ $TRAVIS_TAG ]]; then _version=$TRAVIS_TAG; elif [[ $APPVEYOR_REPO_TAG_NAME ]]; then _version=$APPVEYOR_REPO_TAG_NAME; else # Exact _version=$(git describe --tags --abbrev=0 --exact-match 2>/dev/null) if [[ -z $_ve...
/content/code_sandbox/scripts/package/getversion.sh
shell
2016-04-27T15:26:09
2024-08-16T18:38:46
activitywatch
ActivityWatch/activitywatch
11,595
140
```shell #!/bin/bash # pick the latest zip # NOTE: this assumes that the latest built zip is the only zip in the directory ZIP_FILE=`ls ./dist/ -1 | grep zip | sort -r | head -1` unzip ./dist/$ZIP_FILE # fetch deps wget path_to_url chmod +x linuxdeploy-x86_64.AppImage wget path_to_url chmod +x appimagetool-x86_64.App...
/content/code_sandbox/scripts/package/package-appimage.sh
shell
2016-04-27T15:26:09
2024-08-16T18:38:46
activitywatch
ActivityWatch/activitywatch
11,595
244
```xml <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "path_to_url"> <plist version="1.0"> <dict> <!-- These are required for binaries built by PyInstaller --> <key>com.apple.security.cs.allow-jit</key> <true/> <key>com.apple.security.cs.allow-unsigned-executable-memory<...
/content/code_sandbox/scripts/package/entitlements.plist
xml
2016-04-27T15:26:09
2024-08-16T18:38:46
activitywatch
ActivityWatch/activitywatch
11,595
105
```shell #!/usr/bin/bash # Setting the shell is required, as `sh` doesn't support slicing. # Fail fast set -e # Verbose commands for CI verification set -x VERSION=$(scripts/package/getversion.sh) # Slice off the "v" from the tag, which is probably guaranteed VERSION_NUM=${VERSION:1} echo $VERSION_NUM PKGDIR="activit...
/content/code_sandbox/scripts/package/package-deb.sh
shell
2016-04-27T15:26:09
2024-08-16T18:38:46
activitywatch
ActivityWatch/activitywatch
11,595
489
```inno setup ; Script generated by the Inno Setup Script Wizard. ; SEE THE DOCUMENTATION FOR DETAILS ON CREATING INNO SETUP SCRIPT FILES! #define MyAppName "ActivityWatch" #define MyAppVersion GetEnv('AW_VERSION') #define MyAppPublisher "ActivityWatch Contributors" #define MyAppURL "path_to_url" #define MyAppExeName ...
/content/code_sandbox/scripts/package/activitywatch-setup.iss
inno setup
2016-04-27T15:26:09
2024-08-16T18:38:46
activitywatch
ActivityWatch/activitywatch
11,595
721
```unknown Package: activitywatch Architecture: amd64 Maintainer: Erik Bjreholt <erik@bjareho.lt> Depends: Priority: optional Version: SCRIPT_VERSION_HERE Description: Open source time tracker path_to_url ```
/content/code_sandbox/scripts/package/deb/control
unknown
2016-04-27T15:26:09
2024-08-16T18:38:46
activitywatch
ActivityWatch/activitywatch
11,595
51
```python # -*- coding: utf-8 -*- from __future__ import unicode_literals import plistlib import os.path # Use like this: dmgbuild -s settings.py "Test Volume" test.dmg # You can actually use this file for your own application (not just TextEdit) # by doing e.g. # # dmgbuild -s settings.py -D app=/path/to/My.app "...
/content/code_sandbox/scripts/package/dmgbuild-settings.py
python
2016-04-27T15:26:09
2024-08-16T18:38:46
activitywatch
ActivityWatch/activitywatch
11,595
927
```javascript export const BUILD_ENVS = { dev: 'development', prod: 'production', }; export const BASE_URL = 'control'; ```
/content/code_sandbox/client/constants.js
javascript
2016-07-06T10:31:47
2024-08-16T18:17:06
AdGuardHome
AdguardTeam/AdGuardHome
24,082
29
```go //go:build !next package main import ( "embed" // Embed tzdata in binary. // // See path_to_url _ "time/tzdata" "github.com/AdguardTeam/AdGuardHome/internal/home" ) // Embed the prebuilt client here since we strive to keep .go files inside the // internal directory and the embed package is unable to emb...
/content/code_sandbox/main.go
go
2016-07-06T10:31:47
2024-08-16T18:17:06
AdGuardHome
AdguardTeam/AdGuardHome
24,082
124
```unknown # Keep the Makefile POSIX-compliant. We currently allow hyphens in # target names, but that may change in the future. # # See path_to_url .POSIX: # This comment is used to simplify checking local copies of the # Makefile. Bump this number every time a significant change is made to # this Makefile. # # AdG...
/content/code_sandbox/Makefile
unknown
2016-07-06T10:31:47
2024-08-16T18:17:06
AdGuardHome
AdguardTeam/AdGuardHome
24,082
1,480
```xml declare global { interface Window { __REDUX_DEVTOOLS_EXTENSION__?: () => any; } } ```
/content/code_sandbox/client/src/types.d.ts
xml
2016-07-06T10:31:47
2024-08-16T18:17:06
AdGuardHome
AdguardTeam/AdGuardHome
24,082
24
```unknown export default { testEnvironment: 'jsdom', transform: { '^.+\\.tsx?$': 'babel-jest', }, }; ```
/content/code_sandbox/client/jest.config.mjs
unknown
2016-07-06T10:31:47
2024-08-16T18:17:06
AdGuardHome
AdguardTeam/AdGuardHome
24,082
32
```javascript import { merge } from 'webpack-merge'; import common from './webpack.common.js'; export default merge(common, { stats: 'minimal', performance: { hints: false, }, }); ```
/content/code_sandbox/client/webpack.prod.js
javascript
2016-07-06T10:31:47
2024-08-16T18:17:06
AdGuardHome
AdguardTeam/AdGuardHome
24,082
43
```xml import React from 'react'; declare module '*.svg' { const content: React.FunctionComponent<React.SVGAttributes<SVGElement>>; export default content; } ```
/content/code_sandbox/client/global.d.ts
xml
2016-07-06T10:31:47
2024-08-16T18:17:06
AdGuardHome
AdguardTeam/AdGuardHome
24,082
35
```javascript import { merge } from 'webpack-merge'; import yaml from 'js-yaml'; import fs from 'fs'; import { BASE_URL } from './constants.js'; import common from './webpack.common.js'; const ZERO_HOST = '0.0.0.0'; const LOCALHOST = '127.0.0.1'; const DEFAULT_PORT = 80; /** * Get document, or throw exception on err...
/content/code_sandbox/client/webpack.dev.js
javascript
2016-07-06T10:31:47
2024-08-16T18:17:06
AdGuardHome
AdguardTeam/AdGuardHome
24,082
358
```xml import i18n from 'i18next'; import { initReactI18next } from 'react-i18next'; import langDetect from 'i18next-browser-languagedetector'; import { LANGUAGES, BASE_LOCALE } from './helpers/twosky'; import ar from './__locales/ar.json'; import be from './__locales/be.json'; import bg from './__locales/bg.json'; i...
/content/code_sandbox/client/src/i18n.ts
xml
2016-07-06T10:31:47
2024-08-16T18:17:06
AdGuardHome
AdguardTeam/AdGuardHome
24,082
910
```xml import { createStore, applyMiddleware, compose, Reducer } from 'redux'; import thunk from 'redux-thunk'; const middlewares = [thunk]; export default function configureStore<T>( reducer: Reducer<T>, initialState: any ) { const store = createStore( reducer, initialState, compo...
/content/code_sandbox/client/src/configureStore.ts
xml
2016-07-06T10:31:47
2024-08-16T18:17:06
AdGuardHome
AdguardTeam/AdGuardHome
24,082
80
```unknown checks = ["all"] initialisms = [ # See path_to_url # # Do not add "PTR" since we use "Ptr" as a suffix. "inherit" , "ASN" , "DHCP" , "DNSSEC" # E.g. SentryDSN. , "DSN" , "ECS" , "EDNS" , "MX" , "QUIC" , "RA" , "RRSIG" , "SDNS" , "SLAAC" , "SOA" , "SVCB" , "TLD" , "WHOIS" ] dot_import_whitelist = []...
/content/code_sandbox/staticcheck.conf
unknown
2016-07-06T10:31:47
2024-08-16T18:17:06
AdGuardHome
AdguardTeam/AdGuardHome
24,082
142
```javascript module.exports = { rules: { "selector-type-no-unknown": true, "block-closing-brace-empty-line-before": "never", "block-no-empty": true, "block-opening-brace-newline-after": "always", "block-opening-brace-space-before": "always", "color-hex-case": "lower", "color...
/content/code_sandbox/client/.stylelintrc.js
javascript
2016-07-06T10:31:47
2024-08-16T18:17:06
AdGuardHome
AdguardTeam/AdGuardHome
24,082
340
```go //go:build next package main import ( "embed" "github.com/AdguardTeam/AdGuardHome/internal/next/cmd" ) // Embed the prebuilt client here since we strive to keep .go files inside the // internal directory and the embed package is unable to embed files located // outside of the same or underlying directory. ...
/content/code_sandbox/main_next.go
go
2016-07-06T10:31:47
2024-08-16T18:17:06
AdGuardHome
AdguardTeam/AdGuardHome
24,082
96
```unknown # Ignore everything except for explicitly allowed stuff. * !dist/docker ```
/content/code_sandbox/.dockerignore
unknown
2016-07-06T10:31:47
2024-08-16T18:17:06
AdGuardHome
AdguardTeam/AdGuardHome
24,082
15
```javascript module.exports = { "disableEmoji": true, "list": [ "+ ", "* ", "- ", ], "maxMessageLength": 64, "minMessageLength": 3, "questions": [ "type", "scope", "subject", "body", "issues", ], "scopes": [ "", ...
/content/code_sandbox/changelog.config.js
javascript
2016-07-06T10:31:47
2024-08-16T18:17:06
AdGuardHome
AdguardTeam/AdGuardHome
24,082
213
```javascript import path from 'path'; import HtmlWebpackPlugin from 'html-webpack-plugin'; import { CleanWebpackPlugin } from 'clean-webpack-plugin'; import CopyPlugin from 'copy-webpack-plugin'; import MiniCssExtractPlugin from 'mini-css-extract-plugin'; import * as url from 'url'; import { BUILD_ENVS } from './const...
/content/code_sandbox/client/webpack.common.js
javascript
2016-07-06T10:31:47
2024-08-16T18:17:06
AdGuardHome
AdguardTeam/AdGuardHome
24,082
727
```unknown module.exports = (api) => { api.cache(false); return { presets: ['@babel/preset-env', '@babel/preset-typescript', '@babel/preset-react'], plugins: [ '@babel/plugin-transform-runtime', '@babel/plugin-transform-class-properties', '@babel/plugin-transf...
/content/code_sandbox/client/babel.config.cjs
unknown
2016-07-06T10:31:47
2024-08-16T18:17:06
AdGuardHome
AdguardTeam/AdGuardHome
24,082
104
```yaml 'coverage': 'status': 'project': 'default': 'target': '40%' 'threshold': null 'patch': false 'changes': false ```
/content/code_sandbox/.codecov.yml
yaml
2016-07-06T10:31:47
2024-08-16T18:17:06
AdGuardHome
AdguardTeam/AdGuardHome
24,082
41
```xml import React from 'react'; import ReactDOM from 'react-dom'; import { Provider } from 'react-redux'; import configureStore from './configureStore'; import reducers from './reducers'; import App from './components/App'; import './components/App/index.css'; import './i18n'; import { RootState, initialState } from...
/content/code_sandbox/client/src/index.tsx
xml
2016-07-06T10:31:47
2024-08-16T18:17:06
AdGuardHome
AdguardTeam/AdGuardHome
24,082
106
```xml import { combineReducers } from 'redux'; import { handleActions } from 'redux-actions'; import { reducer as formReducer } from 'redux-form'; import * as actions from '../actions/login'; import toasts from './toasts'; const login = handleActions( { [actions.processLoginRequest.toString()]: (state:...
/content/code_sandbox/client/src/reducers/login.ts
xml
2016-07-06T10:31:47
2024-08-16T18:17:06
AdGuardHome
AdguardTeam/AdGuardHome
24,082
186
```xml import { handleActions } from 'redux-actions'; import * as actions from '../actions'; import { enrichWithConcatenatedIpAddresses } from '../helpers/helpers'; const dhcp = handleActions( { [actions.getDhcpStatusRequest.toString()]: (state: any) => ({ ...state, processing: tr...
/content/code_sandbox/client/src/reducers/dhcp.ts
xml
2016-07-06T10:31:47
2024-08-16T18:17:06
AdGuardHome
AdguardTeam/AdGuardHome
24,082
1,467
```xml import { handleActions } from 'redux-actions'; import * as actions from '../actions'; import { areEqualVersions } from '../helpers/version'; import { STANDARD_DNS_PORT, STANDARD_WEB_PORT } from '../helpers/constants'; const dashboard = handleActions( { [actions.setDnsRunningStatus.toString()]: (sta...
/content/code_sandbox/client/src/reducers/dashboard.ts
xml
2016-07-06T10:31:47
2024-08-16T18:17:06
AdGuardHome
AdguardTeam/AdGuardHome
24,082
1,184
```xml import { handleActions } from 'redux-actions'; import * as actions from '../actions'; const settings = handleActions( { [actions.initSettingsRequest.toString()]: (state: any) => ({ ...state, processing: true, }), [actions.initSettingsFailure.toString()]: (sta...
/content/code_sandbox/client/src/reducers/settings.ts
xml
2016-07-06T10:31:47
2024-08-16T18:17:06
AdGuardHome
AdguardTeam/AdGuardHome
24,082
380
```xml import { handleActions } from 'redux-actions'; import * as actions from '../actions/filtering'; const filtering = handleActions( { [actions.setRulesRequest.toString()]: (state: any) => ({ ...state, processingRules: true, }), [actions.setRulesFailure.toString(...
/content/code_sandbox/client/src/reducers/filtering.ts
xml
2016-07-06T10:31:47
2024-08-16T18:17:06
AdGuardHome
AdguardTeam/AdGuardHome
24,082
1,138
```xml import { handleActions } from 'redux-actions'; import * as actions from '../actions/access'; const access = handleActions( { [actions.getAccessListRequest.toString()]: (state: any) => ({ ...state, processing: true, }), [actions.getAccessListFailure.toString()...
/content/code_sandbox/client/src/reducers/access.ts
xml
2016-07-06T10:31:47
2024-08-16T18:17:06
AdGuardHome
AdguardTeam/AdGuardHome
24,082
470
```xml import { handleActions } from 'redux-actions'; import { normalizeTopClients } from '../helpers/helpers'; import { DAY, HOUR, STATS_INTERVALS_DAYS, TIME_UNITS } from '../helpers/constants'; import * as actions from '../actions/stats'; const defaultStats = { dnsQueries: [], blockedFiltering: [], rep...
/content/code_sandbox/client/src/reducers/stats.ts
xml
2016-07-06T10:31:47
2024-08-16T18:17:06
AdGuardHome
AdguardTeam/AdGuardHome
24,082
918
```xml import { handleActions } from 'redux-actions'; import * as actions from '../actions/queryLogs'; import { DEFAULT_LOGS_FILTER, DAY, QUERY_LOG_INTERVALS_DAYS, HOUR } from '../helpers/constants'; const queryLogs = handleActions( { [actions.setFilteredLogsRequest.toString()]: (state: any) => ({ ...
/content/code_sandbox/client/src/reducers/queryLogs.ts
xml
2016-07-06T10:31:47
2024-08-16T18:17:06
AdGuardHome
AdguardTeam/AdGuardHome
24,082
940
```xml import { handleActions } from 'redux-actions'; import * as actions from '../actions/clients'; const clients = handleActions( { [actions.addClientRequest.toString()]: (state: any) => ({ ...state, processingAdding: true, }), [actions.addClientFailure.toString()...
/content/code_sandbox/client/src/reducers/clients.ts
xml
2016-07-06T10:31:47
2024-08-16T18:17:06
AdGuardHome
AdguardTeam/AdGuardHome
24,082
466
```xml import { handleActions } from 'redux-actions'; import * as actions from '../actions/dnsConfig'; import { ALL_INTERFACES_IP, BLOCKING_MODES, DNS_REQUEST_OPTIONS } from '../helpers/constants'; export const DEFAULT_BLOCKING_IPV4 = ALL_INTERFACES_IP; export const DEFAULT_BLOCKING_IPV6 = '::'; const dnsConfig = ha...
/content/code_sandbox/client/src/reducers/dnsConfig.ts
xml
2016-07-06T10:31:47
2024-08-16T18:17:06
AdGuardHome
AdguardTeam/AdGuardHome
24,082
581
```xml import { combineReducers } from 'redux'; import { loadingBarReducer } from 'react-redux-loading-bar'; import { reducer as formReducer } from 'redux-form'; import toasts from './toasts'; import encryption from './encryption'; import clients from './clients'; import access from './access'; import rewrites from '....
/content/code_sandbox/client/src/reducers/index.ts
xml
2016-07-06T10:31:47
2024-08-16T18:17:06
AdGuardHome
AdguardTeam/AdGuardHome
24,082
183
```xml import { handleActions } from 'redux-actions'; import * as actions from '../actions/services'; const services = handleActions( { [actions.getBlockedServicesRequest.toString()]: (state: any) => ({ ...state, processing: true, }), [actions.getBlockedServicesFail...
/content/code_sandbox/client/src/reducers/services.ts
xml
2016-07-06T10:31:47
2024-08-16T18:17:06
AdGuardHome
AdguardTeam/AdGuardHome
24,082
343
```xml import { handleActions } from 'redux-actions'; import { nanoid } from 'nanoid'; import { addErrorToast, addNoticeToast, addSuccessToast } from '../actions/toasts'; import { removeToast } from '../actions'; import { TOAST_TYPES } from '../helpers/constants'; const toasts = handleActions( { [addError...
/content/code_sandbox/client/src/reducers/toasts.ts
xml
2016-07-06T10:31:47
2024-08-16T18:17:06
AdGuardHome
AdguardTeam/AdGuardHome
24,082
382
```xml import { ALL_INTERFACES_IP, BLOCKING_MODES, DAY, DEFAULT_LOGS_FILTER, INSTALL_FIRST_STEP, STANDARD_DNS_PORT, STANDARD_WEB_PORT, TIME_UNITS, } from './helpers/constants'; import { DEFAULT_BLOCKING_IPV4, DEFAULT_BLOCKING_IPV6 } from './reducers/dnsConfig'; import { Filter } from './...
/content/code_sandbox/client/src/initialState.ts
xml
2016-07-06T10:31:47
2024-08-16T18:17:06
AdGuardHome
AdguardTeam/AdGuardHome
24,082
3,564
```xml import { combineReducers } from 'redux'; import { handleActions } from 'redux-actions'; import { reducer as formReducer } from 'redux-form'; import * as actions from '../actions/install'; import toasts from './toasts'; import { ALL_INTERFACES_IP, INSTALL_FIRST_STEP, STANDARD_DNS_PORT, STANDARD_WEB_PORT } from...
/content/code_sandbox/client/src/reducers/install.ts
xml
2016-07-06T10:31:47
2024-08-16T18:17:06
AdGuardHome
AdguardTeam/AdGuardHome
24,082
709
```xml import { handleActions } from 'redux-actions'; import * as actions from '../actions/rewrites'; const rewrites = handleActions( { [actions.getRewritesListRequest.toString()]: (state: any) => ({ ...state, processing: true, }), [actions.getRewritesListFailure.to...
/content/code_sandbox/client/src/reducers/rewrites.ts
xml
2016-07-06T10:31:47
2024-08-16T18:17:06
AdGuardHome
AdguardTeam/AdGuardHome
24,082
595
```xml import { handleActions } from 'redux-actions'; import * as actions from '../actions/encryption'; const encryption = handleActions( { [actions.getTlsStatusRequest.toString()]: (state: any) => ({ ...state, processing: true, }), [actions.getTlsStatusFailure.toSt...
/content/code_sandbox/client/src/reducers/encryption.ts
xml
2016-07-06T10:31:47
2024-08-16T18:17:06
AdGuardHome
AdguardTeam/AdGuardHome
24,082
617
```css /* Disable Auto Zoom in Input - Safari on iPhone path_to_url */ @media screen and (max-width: 767px) { input, select, textarea { font-size: 1rem; } } .login { display: flex; flex-direction: column; justify-content: space-between; align-items: stretch; min-height: 100v...
/content/code_sandbox/client/src/login/Login/Login.css
css
2016-07-06T10:31:47
2024-08-16T18:17:06
AdGuardHome
AdguardTeam/AdGuardHome
24,082
271
```xml import React from 'react'; import ReactDOM from 'react-dom'; import { Provider } from 'react-redux'; import '../components/App/index.css'; import '../components/ui/ReactTable.css'; import configureStore from '../configureStore'; import reducers from '../reducers/login'; import '../i18n'; import Login from './L...
/content/code_sandbox/client/src/login/index.tsx
xml
2016-07-06T10:31:47
2024-08-16T18:17:06
AdGuardHome
AdguardTeam/AdGuardHome
24,082
113
```xml import React from 'react'; import { Field, reduxForm } from 'redux-form'; import { Trans, withTranslation } from 'react-i18next'; import flow from 'lodash/flow'; import { renderInputField } from '../../helpers/form'; import { validateRequiredValue } from '../../helpers/validators'; import { FORM_NAME } from '....
/content/code_sandbox/client/src/login/Login/Form.tsx
xml
2016-07-06T10:31:47
2024-08-16T18:17:06
AdGuardHome
AdguardTeam/AdGuardHome
24,082
457
```xml import React, { Component } from 'react'; import { connect } from 'react-redux'; import flow from 'lodash/flow'; import { withTranslation, Trans } from 'react-i18next'; import * as actionCreators from '../../actions/login'; import { Logo } from '../../components/ui/svg/logo'; import Toasts from '../../compone...
/content/code_sandbox/client/src/login/Login/index.tsx
xml
2016-07-06T10:31:47
2024-08-16T18:17:06
AdGuardHome
AdguardTeam/AdGuardHome
24,082
527
```css /* Disable Auto Zoom in Input - Safari on iPhone path_to_url */ @media screen and (max-width: 767px) { input, select, textarea { font-size: 1rem; } } .setup { min-height: calc(100vh - 345px); line-height: 1.48; } @media screen and (min-width: 768px) { .setup { paddin...
/content/code_sandbox/client/src/install/Setup/Setup.css
css
2016-07-06T10:31:47
2024-08-16T18:17:06
AdGuardHome
AdguardTeam/AdGuardHome
24,082
802
```xml import React from 'react'; import ReactDOM from 'react-dom'; import { Provider } from 'react-redux'; import '../components/App/index.css'; import '../components/ui/ReactTable.css'; import configureStore from '../configureStore'; import reducers from '../reducers/install'; import '../i18n'; import Setup from '....
/content/code_sandbox/client/src/install/index.tsx
xml
2016-07-06T10:31:47
2024-08-16T18:17:06
AdGuardHome
AdguardTeam/AdGuardHome
24,082
113
```xml import React from 'react'; import { connect } from 'react-redux'; import { reduxForm, formValueSelector } from 'redux-form'; import { Trans, withTranslation } from 'react-i18next'; import flow from 'lodash/flow'; import Guide from '../../components/ui/Guide'; import Controls from './Controls'; import Address...
/content/code_sandbox/client/src/install/Setup/Devices.tsx
xml
2016-07-06T10:31:47
2024-08-16T18:17:06
AdGuardHome
AdguardTeam/AdGuardHome
24,082
374
```xml import React from 'react'; import { Trans, withTranslation } from 'react-i18next'; import Controls from './Controls'; const Greeting = () => ( <div className="setup__step"> <div className="setup__group"> <h1 className="setup__title"> <Trans>install_welcome_title</Trans> ...
/content/code_sandbox/client/src/install/Setup/Greeting.tsx
xml
2016-07-06T10:31:47
2024-08-16T18:17:06
AdGuardHome
AdguardTeam/AdGuardHome
24,082
125
```xml import React, { Component, Fragment } from 'react'; import { connect } from 'react-redux'; import debounce from 'lodash/debounce'; import * as actionCreators from '../../actions/install'; import { getWebAddress } from '../../helpers/helpers'; import { INSTALL_FIRST_STEP, INSTALL_TOTAL_STEPS, ALL_INTERFACES_IP,...
/content/code_sandbox/client/src/install/Setup/index.tsx
xml
2016-07-06T10:31:47
2024-08-16T18:17:06
AdGuardHome
AdguardTeam/AdGuardHome
24,082
900
```xml import React, { Component } from 'react'; import { connect } from 'react-redux'; import { Trans } from 'react-i18next'; import * as actionCreators from '../../actions/install'; interface ControlsProps { install: { step: number; processingSubmit: boolean; dns: { status: s...
/content/code_sandbox/client/src/install/Setup/Controls.tsx
xml
2016-07-06T10:31:47
2024-08-16T18:17:06
AdGuardHome
AdguardTeam/AdGuardHome
24,082
598
```xml import React from 'react'; import { getIpList, getDnsAddress, getWebAddress } from '../../helpers/helpers'; import { ALL_INTERFACES_IP } from '../../helpers/constants'; import { DhcpInterface } from '../../initialState'; interface renderItemProps { ip: string; port: number; isDns: boolean; } const...
/content/code_sandbox/client/src/install/Setup/AddressList.tsx
xml
2016-07-06T10:31:47
2024-08-16T18:17:06
AdGuardHome
AdguardTeam/AdGuardHome
24,082
314
```xml import React from 'react'; import { Field, reduxForm } from 'redux-form'; import { withTranslation, Trans } from 'react-i18next'; import flow from 'lodash/flow'; import i18n from '../../i18n'; import Controls from './Controls'; import { renderInputField } from '../../helpers/form'; import { FORM_NAME } from ...
/content/code_sandbox/client/src/install/Setup/Auth.tsx
xml
2016-07-06T10:31:47
2024-08-16T18:17:06
AdGuardHome
AdguardTeam/AdGuardHome
24,082
627