p-doom/crowd-code-dataset-0.2 huggingface dataset:
[tab] src/makefile (makefile)
# Copyright 2021 Manna Harbour
# https://github.com/manna-harbour/miryoku

source := $(wildcard *.kbd.cpp)

targets := $(source:%.kbd.cpp=build/%.kbd)

all: $(targets)

build/%.kbd: %.kbd.cpp FORCE
	cpp -P $(OPT_DEFS) $< | \
	sed \
	  -e "s/U_QUOT/'/g" \
	  -e 's/U_DQUO/"/g' \
	  -e 's/U_COMM/,/g' \
	  -e 's/U_LPRN/\\(/g' \
	  -e 's/U_RPRN/\\)/g' \
	  -e 's/U_PIPE/|/g' \
	  -e 's/[ ]*U_LF[ ]*/
/g' \
	  -e 's/[ ]*U_TAB[ ]*/	/g' \
	 > $@

FORCE: ;

test: build/miryoku_kmonad.kbd
	kmonad -d $<

include custom_rules.mk

include post_rules.mk
[terminal_command] TERMINAL ()
clang -E -P -x c++ -DMIRYOKU_ALPHAS_QWERTY -DMIRYOKU_NAV_VI -DMIRYOKU_CLIPBOARD_MAC -DMIRYOKU_KMONAD_OS_MAC miryoku_kmonad.kbd.cpp | sed -e "s/U_QUOT/'/g" -e 's/U_DQUO/"/g' -e 's/U_COMM/,/g' -e 's/U_LPRN/\\(/g' -e 's/U_RPRN/\\)/g' -e 's/U_PIPE/|/g' -e 's/[ ]*U_LF[ ]*/
/g' -e 's/[ ]*U_TAB[ ]*/	/g' > build/miryoku_kmonad.kbd && sed -n '1,60p' build/miryoku_kmonad.kbd | cat
[tab] src/custom_config.h (cpp)
// Copyright 2021 Manna Harbour
// https://github.com/manna-harbour/miryoku

#pragma once

// Display brightness controls for macOS (KMonad kext)
// Adjust these if your KMonad version uses different names
#define U_BRIGHT_DN display_brightness_dec
#define U_BRIGHT_UP display_brightness_inc
[content] src/custom_config.h (cpp)
// Display brightness controls for macOS (KMonad kext)
// Adjust these if your KMonad version uses different names
#define U_BRIGHT_DN display_brightness_decrement
#define U_BRIGHT_UP display_brightness_increment

// Override Media layer to place brightness on 'u' and 'i' positions (top row, right-hand 1st and 2nd)
#if !defined(MIRYOKU_LAYER_MEDIA)
  #if defined (MIRYOKU_NAV_INVERTEDT)
    #define MIRYOKU_LAYER_MEDIA MIRYOKU_ALTERNATIVES_MEDIA_INVERTEDT
  #elif defined (MIRYOKU_NAV_VI)
    // Row 1: set K05 ('u') = U_BRIGHT_DN, K06 ('i') = U_BRIGHT_UP
    #define MIRYOKU_LAYER_MEDIA \
      U_NA,              U_DF(U_TAP),       U_DF(U_EXTRA),     U_DF(U_BASE),      U_NA,              U_BRIGHT_DN,      U_BRIGHT_UP,      U_NU,              U_NU,              U_NU,              \
      met,               alt,               ctl,               sft,               U_NA,              previoussong,      vold,              volu,              nextsong,          U_NU,              \
      U_NA,              ralt,              U_DF(U_FUN),       U_DF(U_MEDIA),     U_NA,              U_NU,              U_NU,              U_NU,              U_NU,              U_NU,              \
      U_NP,              U_NP,              U_NA,              U_NA,              U_NA,              stopcd,            playpause,         mute,              U_NP,              U_NP
  #else
    #define MIRYOKU_LAYER_MEDIA MIRYOKU_ALTERNATIVES_MEDIA
  #endif
#endif
[content] src/custom_config.h (cpp)
// Display brightness controls for macOS (KMonad kext)
// Adjust these if your KMonad version uses different names
#define U_BRIGHT_DN display_brightness_dec
#define U_BRIGHT_UP display_brightness_inc

// Override Media layer to place brightness on 'u' and 'i' positions (top row, right-hand 1st and 2nd)
#if !defined(MIRYOKU_LAYER_MEDIA)
  #if defined (MIRYOKU_NAV_INVERTEDT)
    #define MIRYOKU_LAYER_MEDIA MIRYOKU_ALTERNATIVES_MEDIA_INVERTEDT
  #elif defined (MIRYOKU_NAV_VI)
    // Place brightness on 'u' (K15) and 'i' (K16) positions of the Media layer
    #define MIRYOKU_LAYER_MEDIA \
      U_NA,              U_DF(U_TAP),       U_DF(U_EXTRA),     U_DF(U_BASE),      U_NA,              U_NU,              U_NU,              U_NU,              U_NU,              U_NU,              \
      met,               alt,               ctl,               sft,               U_NA,              U_BRIGHT_DN,       U_BRIGHT_UP,       volu,              nextsong,          U_NU,              \
      U_NA,              ralt,              U_DF(U_FUN),       U_DF(U_MEDIA),     U_NA,              U_NU,              U_NU,              U_NU,              U_NU,              U_NU,              \
      U_NP,              U_NP,              U_NA,              U_NA,              U_NA,              stopcd,            playpause,         mute,              U_NP,              U_NP
  #else
    #define MIRYOKU_LAYER_MEDIA MIRYOKU_ALTERNATIVES_MEDIA
  #endif
#endif
[content] src/custom_config.h (cpp)
// Display brightness controls for macOS (KMonad kext)
// Adjust these if your KMonad version uses different names
#define U_BRIGHT_DN display_brightness_dec
#define U_BRIGHT_UP display_brightness_inc

// Override Media layer to place brightness on 'u' and 'i' positions (top row, right-hand 1st and 2nd)
#if !defined(MIRYOKU_LAYER_MEDIA)
  #if defined (MIRYOKU_NAV_INVERTEDT)
    #define MIRYOKU_LAYER_MEDIA MIRYOKU_ALTERNATIVES_MEDIA_INVERTEDT
  #elif defined (MIRYOKU_NAV_VI)
    // Place brightness on 'u' (K06) and 'i' (K07) positions of the Media layer
    #define MIRYOKU_LAYER_MEDIA \
      U_NA,              U_DF(U_TAP),       U_DF(U_EXTRA),     U_DF(U_BASE),      U_NA,              U_NU,              U_BRIGHT_DN,       U_BRIGHT_UP,       U_NU,              U_NU,              \
      met,               alt,               ctl,               sft,               U_NA,              previoussong,      vold,              volu,              nextsong,          U_NU,              \
      U_NA,              ralt,              U_DF(U_FUN),       U_DF(U_MEDIA),     U_NA,              U_NU,              U_NU,              U_NU,              U_NU,              U_NU,              \
      U_NP,              U_NP,              U_NA,              U_NA,              U_NA,              stopcd,            playpause,         mute,              U_NP,              U_NP
  #else
    #define MIRYOKU_LAYER_MEDIA MIRYOKU_ALTERNATIVES_MEDIA
  #endif
#endif
[terminal_command] TERMINAL ()
clang -E -P -x c++ -DMIRYOKU_ALPHAS_QWERTY -DMIRYOKU_NAV_VI -DMIRYOKU_CLIPBOARD_MAC -DMIRYOKU_KMONAD_OS_MAC miryoku_kmonad.kbd.cpp | sed -e "s/U_QUOT/'/g" -e 's/U_DQUO/"/g' -e 's/U_COMM/,/g' -e 's/U_LPRN/\\(/g' -e 's/U_RPRN/\\)/g' -e 's/U_PIPE/|/g' -e 's/[ ]*U_LF[ ]*/
/g' -e 's/[ ]*U_TAB[ ]*/	/g' > build/miryoku_kmonad.kbd
[content] src/miryoku_babel/miryoku_layer_alternatives.h (cpp)
U_NA,              U_DF(U_TAP),       U_DF(U_EXTRA),     U_DF(U_BASE),      U_NA,              U_NU,              U_NU,              kp8,               U_NU,              U_NU,              \
met,               alt,               ctl,               sft,               U_NA,              U_NU,              kp4,               kp2,               kp6,               U_NU,              \
[content] src/miryoku_babel/miryoku_layer_alternatives.h (cpp)
U_NU,              U_NU,              kp8,               U_NU,              U_NU,              U_NA,              U_DF(U_BASE),      U_DF(U_EXTRA),     U_DF(U_TAP),       U_NA,              \
U_NU,              kp4,               kp2,               kp6,               U_NU,              U_NA,              sft,               ctl,               alt,               met,               \
[content] src/miryoku_babel/miryoku_layer_alternatives.h (cpp)
U_NA,              U_DF(U_TAP),       U_DF(U_EXTRA),     U_DF(U_BASE),      U_NA,              U_NU,              U_NU,              ms-up,             U_NU,              U_NU,              \
met,               alt,               ctl,               sft,               U_NA,              U_NU,              ms-left,           ms-down,           ms-right,          U_NU,              \
[content] src/miryoku_babel/miryoku_layer_alternatives.h (cpp)
U_NU,              U_NU,              ms-up,             U_NU,              U_NU,              U_NA,              U_DF(U_BASE),      U_DF(U_EXTRA),     U_DF(U_TAP),       U_NA,              \
U_NU,              ms-left,           ms-down,           ms-right,          U_NU,              U_NA,              sft,               ctl,               alt,               met,               \
[content] src/miryoku_babel/miryoku_layer_alternatives.h (cpp)
U_NA,              U_DF(U_TAP),       U_DF(U_EXTRA),     U_DF(U_BASE),      U_NA,              U_NU,              U_NU,              :ms-up,            U_NU,              U_NU,              \
met,               alt,               ctl,               sft,               U_NA,              U_NU,              :ms-left,          :ms-down,          :ms-right,         U_NU,              \
[content] src/miryoku_babel/miryoku_layer_alternatives.h (cpp)
U_NU,              U_NU,              :ms-up,            U_NU,              U_NU,              U_NA,              U_DF(U_BASE),      U_DF(U_EXTRA),     U_DF(U_TAP),       U_NA,              \
U_NU,              :ms-left,          :ms-down,          :ms-right,         U_NU,              U_NA,              sft,               ctl,               alt,               met,               \