<commit_before>BBBBB
#include "test.h"
Aaaaa
#define HELLO0
#define HELLO1() HELLO!WORLD!
#define HELLO2(x) 123 x 456
#define HELLO3(xx,yy) (xx) (yy)
#define HELLO4(x,y,z) (x) (y) (z)
#define HELLO5(xx,yy,zzzz,...) (xx) (yy) (zzzz)
#define HELLO6(xx,yy,zzzz,...) (xx/3) (2,yy )   (      zzzz )
#define HELLO7(xx,yy,zzzz,...) (zzzz,yy,xx,xxx)
#define HELLO8(xx,yy,zzzz,...) (zzzz,xx,yy,xxx)
#define HELLO9(xx,yy,zzzz,...) (zzzz,__VA_ARGS__,xx,yy,xxx)
#define HELLO10(xx,yy,zzzz,...) (zzzz,__VA_ARGS__,xx,#yy,xxx)
#define HELLO11(xx,yy,zzzz,...) (zzzz,__VA_ARGS__,xx##yy##zzzz,#yy,xxx)
#define HELLO12(xx,yy,zzzz,...) (zzzz,__VA_ARGS__,#xx #yy #zzzz,#yy,xxx)
#define HELLO13 WORLD
#undef  HELLO13
#define HELLO13 WORLD HELLO
#define HELLO14 MULTIPLE \
    LINE SUPPORT \
    HERE
#define HELLO15(xx,yy,...) xx,yy __VA_OPT__(,xx)
#define HELLO16(xx,yy,zzzz,...) (zzzz,yy,xx,__VA_ARGS__)
#define STRINGY(a) #a
#define CONCAT3(a,b,c) a##b##c
#define HELLO17(x,y,z,...) (z,y,x __VA_OPT__(,) __VA_ARGS__)
#ifdef NOT
Should not see, no such NOT
#endif
#ifdef HELLO0
Hello0 defined, should see
#endif
#ifndef NOT
Should see, no such NOT
#endif
#ifndef HELLO0
Hello0 defined, should not see
#endif
#ifdef NOT
Should not see, no such NOT
#ifdef HELLO0
Hello0 defined, no such NOT, should not see
#endif
Still should not see, no such NOT
#endif
#ifdef HELLO0
Should see, hello0 defined 1
#ifdef NOT
Should not see, no such NOT, though hello0 defined
#ifdef HELLO13
Should not see, hello13 defined but no such NOT
#endif
#endif
Should see, hello0 defined 2
#endif
#ifdef HELLO0
Should see, hello0 defined
#else
Should not see, hello0 defined else condition
#endif
#ifdef NOT
Should not see, no such NOT, #if..#else case
#else
Should see, no such NOT #else condition
#endif
#ifdef NOT
Should not see, no such NOT
# ifdef HELLO0
Should not see, no such NOT but hello0 defined
# else
Should not see, no such NOT and not defined hello0
# endif
#else
Should see, no such NOT
# ifdef FOO
Should not see, no such NOT and no such FOO
# else
Should see, no such NOT and no such FOO
# endif
#endif
Aaaaaaa
I said HELLO13 for the win
I said "HELLO13" 123 for the HELLO13 win and then HELLO14
#define MACRO1 1234
#define MACRO2 123 MACRO1 12345
MACRO1
MACRO2
Hello1 HELLO1 Hello1() HELLO1()
HELLO2
HELLO2(abc)
HELLO7(a,b,c)
HELLO7(a,(b),c)
HELLO7(a,(b),((((c)))))
HELLO7(a,b,c,d)
HELLO16(a,b,c)
HELLO16(a,b,c,d)
HELLO16(a,b,c,d,e,f,g,h)
Yeah!
STRINGY(hello)
CONCAT3(hello,world,123)
HELLO17(a,b,c)
HELLO17(a,b,c,d)
HELLO17(a,b,c,d,e)
HELLO17(a,b,c,d,e,f)<commit_msg>Test #stringify of __VA_ARGS__ which GCC seems to imply is allowed<commit_after>BBBBB
#include "test.h"
Aaaaa
#define HELLO0
#define HELLO1() HELLO!WORLD!
#define HELLO2(x) 123 x 456
#define HELLO3(xx,yy) (xx) (yy)
#define HELLO4(x,y,z) (x) (y) (z)
#define HELLO5(xx,yy,zzzz,...) (xx) (yy) (zzzz)
#define HELLO6(xx,yy,zzzz,...) (xx/3) (2,yy )   (      zzzz )
#define HELLO7(xx,yy,zzzz,...) (zzzz,yy,xx,xxx)
#define HELLO8(xx,yy,zzzz,...) (zzzz,xx,yy,xxx)
#define HELLO9(xx,yy,zzzz,...) (zzzz,__VA_ARGS__,xx,yy,xxx)
#define HELLO10(xx,yy,zzzz,...) (zzzz,__VA_ARGS__,xx,#yy,xxx)
#define HELLO11(xx,yy,zzzz,...) (zzzz,__VA_ARGS__,xx##yy##zzzz,#yy,xxx)
#define HELLO12(xx,yy,zzzz,...) (zzzz,__VA_ARGS__,#xx #yy #zzzz,#yy,xxx)
#define HELLO13 WORLD
#undef  HELLO13
#define HELLO13 WORLD HELLO
#define HELLO14 MULTIPLE \
    LINE SUPPORT \
    HERE
#define HELLO15(xx,yy,...) xx,yy __VA_OPT__(,xx)
#define HELLO16(xx,yy,zzzz,...) (zzzz,yy,xx,__VA_ARGS__)
#define STRINGY(a) #a
#define CONCAT3(a,b,c) a##b##c
#define HELLO17(x,y,z,...) (z,y,x __VA_OPT__(,) __VA_ARGS__)
#define HELLO18(xx,yy,zzzz,...) (zzzz,yy,xx,#__VA_ARGS__)
#ifdef NOT
Should not see, no such NOT
#endif
#ifdef HELLO0
Hello0 defined, should see
#endif
#ifndef NOT
Should see, no such NOT
#endif
#ifndef HELLO0
Hello0 defined, should not see
#endif
#ifdef NOT
Should not see, no such NOT
#ifdef HELLO0
Hello0 defined, no such NOT, should not see
#endif
Still should not see, no such NOT
#endif
#ifdef HELLO0
Should see, hello0 defined 1
#ifdef NOT
Should not see, no such NOT, though hello0 defined
#ifdef HELLO13
Should not see, hello13 defined but no such NOT
#endif
#endif
Should see, hello0 defined 2
#endif
#ifdef HELLO0
Should see, hello0 defined
#else
Should not see, hello0 defined else condition
#endif
#ifdef NOT
Should not see, no such NOT, #if..#else case
#else
Should see, no such NOT #else condition
#endif
#ifdef NOT
Should not see, no such NOT
# ifdef HELLO0
Should not see, no such NOT but hello0 defined
# else
Should not see, no such NOT and not defined hello0
# endif
#else
Should see, no such NOT
# ifdef FOO
Should not see, no such NOT and no such FOO
# else
Should see, no such NOT and no such FOO
# endif
#endif
Aaaaaaa
I said HELLO13 for the win
I said "HELLO13" 123 for the HELLO13 win and then HELLO14
#define MACRO1 1234
#define MACRO2 123 MACRO1 12345
MACRO1
MACRO2
Hello1 HELLO1 Hello1() HELLO1()
HELLO2
HELLO2(abc)
HELLO7(a,b,c)
HELLO7(a,(b),c)
HELLO7(a,(b),((((c)))))
HELLO7(a,b,c,d)
HELLO16(a,b,c)
HELLO16(a,b,c,d)
HELLO16(a,b,c,d,e,f,g,h)
Yeah!
STRINGY(hello)
CONCAT3(hello,world,123)
HELLO17(a,b,c)
HELLO17(a,b,c,d)
HELLO17(a,b,c,d,e)
HELLO17(a,b,c,d,e,f)
HELLO18(a,b,c,hello,world)
{'fraction_non_alphanumeric': 0.1475095785440613, 'fraction_numerical': 0.04559386973180077, 'mean_word_length': 5.542606516290727, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2504800', 'n_tokens_mistral': 2457, 'n_tokens_neox': 2311, 'n_words': 663}