{"commit":"4877a3d516f1d1580a0d3912b0178be777ccad7f","old_file":"changelog.awk","new_file":"changelog.awk","old_contents":"#!\/usr\/bin\/awk -f\nBEGIN {\n\t# Determines whether to print 'Unreleased' banner at top\n\tUNRELEASED_COMMITS = 1\n\t# Prefixes that determine whether a commit will be printed\n\tCHANGELOG_REGEX = \"^(changelog|fix|docs|chore|feat): \"\n\tFS=\"|\"\n\twhile (\"git log --pretty='%D|%s|%H'\" | getline) {\n\t\tIS_GIT_TAG = length($1) && match($1, \/tag:\/)\n\t\tif (IS_GIT_TAG) {\n\t\t\tUNRELEASED_COMMITS = 0\n\t\t\t# Cut out text up to tag\n\t\t\tsub(\/.*tag: \/, \"\", $1)\n\t\t\t# Cut out text after tag\n\t\t\tsub(\/,.*\/, \"\", $1)\n\t\t\tprint $1 \n\t\t} else {\n\t\t\tif ( UNRELEASED_COMMITS ) {\n\t\t\t\tprint \"Unreleased\"\n\t\t\t\tUNRELEASED_COMMITS = 0\n\t\t\t}\n\t\t\tif ( match($2, CHANGELOG_REGEX) ) {\n\t\t\t\tsub(CHANGELOG_REGEX, \"\", $2)\n\t\t\t\tprintf(\"\\t- %s\\n\", $2)\n\t\t\t}\n\t\t}\n\n\t}\n}\n","new_contents":"#!\/usr\/bin\/awk -f\nBEGIN {\n\t# Determines whether to print 'Unreleased' banner at top\n\tUNRELEASED_COMMITS = 1\n\t# Prefixes that determine whether a commit will be printed\n\tCHANGELOG_REGEX = \"^(changelog|fix|docs|chore|feat|feature|refactor|update): \"\n\tFS=\"|\"\n\twhile (\"git log --pretty='%D|%s|%H'\" | getline) {\n\t\tIS_GIT_TAG = length($1) && match($1, \/tag:\/)\n\t\tif (IS_GIT_TAG) {\n\t\t\tUNRELEASED_COMMITS = 0\n\t\t\t# Cut out text up to tag\n\t\t\tsub(\/.*tag: \/, \"\", $1)\n\t\t\t# Cut out text after tag\n\t\t\tsub(\/,.*\/, \"\", $1)\n\t\t\tprint $1 \n\t\t} else {\n\t\t\tif ( UNRELEASED_COMMITS ) {\n\t\t\t\tprint \"Unreleased\"\n\t\t\t\tUNRELEASED_COMMITS = 0\n\t\t\t}\n\t\t\tif ( match($2, CHANGELOG_REGEX) ) {\n\t\t\t\tsub(CHANGELOG_REGEX, \"\", $2)\n\t\t\t\tprintf(\"\\t- %s\\n\", $2)\n\t\t\t}\n\t\t}\n\n\t}\n}\n","subject":"Add new prefixes: feature, refactor and update","message":"feature: Add new prefixes: feature, refactor and update\n","lang":"Awk","license":"mit","repos":"ianhenderson\/simple-git-changelog"} {"commit":"1b7afe9dca60a1bee2f52612eedec9e199e20142","old_file":"lib\/defexp.awk","new_file":"lib\/defexp.awk","old_contents":"# awk script to convert symbol export table formats\n\n# converts an msvc .def file to an darwin ld export-symbols-list file\n# we only support the most basic module definition syntax\n\n# skip comments\n\/^\\w*#.*\/ {next}\n\/^\\w*;.*\/ {next}\n\n# remember and propagate the library name\n\/LIBRARY\/ {name = $2; print \"\\# export list for\", name; next}\n\n# skip various other lines\n\/^\\w*NAME\/ ||\n\/^\\w*VERSION\/ ||\n\/^\\w*EXPORTS\/ ||\n\/^\\w*HEAPSIZE\/ ||\n\/^\\w*STACKSIZE\/ ||\n\/^\\w*STUB\/ {next}\n\n# todo: handle SECTIONS\n\n# for symbols, strip the semicolon and mangle the name\n\/[a-zA-Z]+\/ {sub(\/\\;\/, \"\"); print \"_\" $1}\n\n# todo: warn if we see publicname=privatename mappings\n# which other linkers don't support\n","new_contents":"# awk script to convert symbol export table formats\n\n# converts an msvc .def file to an darwin ld export-symbols-list file\n# we only support the most basic module definition syntax\n\n# skip comments\n\/^\\w*#.*\/ {next}\n\/^\\w*;.*\/ {next}\n\n# remember and propagate the library name\n\/LIBRARY\/ {name = $2; print \"# export list for\", name; next}\n\n# skip various other lines\n\/^\\w*NAME\/ ||\n\/^\\w*VERSION\/ ||\n\/^\\w*EXPORTS\/ ||\n\/^\\w*HEAPSIZE\/ ||\n\/^\\w*STACKSIZE\/ ||\n\/^\\w*STUB\/ {next}\n\n# todo: handle SECTIONS\n\n# for symbols, strip the semicolon and mangle the name\n\/[a-zA-Z]+\/ {sub(\/\\;\/, \"\"); print \"_\" $1}\n\n# todo: warn if we see publicname=privatename mappings\n# which other linkers don't support\n","subject":"Remove a redundant escape character.","message":"Remove a redundant escape character.\n\nSome awks warn about it having no effect.\n\n\ngit-svn-id: 8dbf393e6e9ab8d4979d29f9a341a98016792aa6@16492 0101bb08-14d6-0310-b084-bc0e0c8e3800\n","lang":"Awk","license":"bsd-3-clause","repos":"KTXSoftware\/theora,Distrotech\/libtheora,Distrotech\/libtheora,Distrotech\/libtheora,KTXSoftware\/theora,KTXSoftware\/theora,Distrotech\/libtheora,KTXSoftware\/theora,Distrotech\/libtheora,KTXSoftware\/theora"} {"commit":"b9043343f3d6881e4d013c5d62a7d886ec41ee9d","old_file":"fixExtraLinesFrom-webscraper.awk","new_file":"fixExtraLinesFrom-webscraper.awk","old_contents":"# Print lines from a WebScraper csv file after joining extra newlines\n\n# INVOCATION:\n# awk -f fixExtraLinesFrom-webscraper.awk BritBoxPrograms.csv\n\n{\n if (\/^\"\/)\n printf (\"\\n\" $0)\n else\n printf\n}\n","new_contents":"# Print lines from a WebScraper csv file after joining extra newlines\n\n# INVOCATION:\n# awk -f fixExtraLinesFrom-webscraper.awk BritBoxPrograms.csv\n\n{\n if (\/^\"\/)\n printf (\"\\n\" $0)\n else\n printf\n}\n\nEND {\n printf (\"\\n\")\n}\n\n","subject":"Make sure newline at end of file","message":"Make sure newline at end of file\n","lang":"Awk","license":"mit","repos":"Monty\/WhatsStreamingToday,Monty\/WhatsStreamingToday"} {"commit":"8bd3e890fcdef23f61840c00d2acd9fa7efe073b","old_file":"recipes-core\/systemd\/systemd-units\/candump.awk","new_file":"recipes-core\/systemd\/systemd-units\/candump.awk","old_contents":"{\n if (1==NR)\n {\n startTimestamp = substr($1, 2, length($1) - 2)\n printf(\";$FILEVERSION=1.3\\n\")\n printf(\";$STARTTIME=%u.%u\\n\", mktime(strftime(\"%Y %m %d 0 0 0\", startTimestamp)) \/ 86400 + 25569, \\\n 10000000000 \/ 86400 * (mktime(strftime(\"%Y %m %d %H %M %S\", startTimestamp)) - mktime(strftime(\"%Y %m %d 0 0 0\", startTimestamp))))\n currentTimeOffset = 0.0\n }\n else\n {\n previousTimeOffset = currentTimeOffset\n currentTimestamp = substr($1, 2, length($1) - 2)\n currentTimeOffset = currentTimestamp - startTimestamp\n if (currentTimeOffset < 0)\n {\n startTimestamp = currentTimestamp + currentTimeOffset\n currentTimeOffset = previousTimeOffset\n }\n }\n printf(\"%u) %.3f 1 Rx %s - %s\", NR, currentTimeOffset * 1000, $3, substr($4, 2, length($4) - 2))\n if (5<=NF)\n {\n for(i=5;i<=NF;i++)\n {\n printf \" \"$i\n }\n }\n printf \"\\n\"\n}\n","new_contents":"{\n if (1==NR)\n {\n startTimestamp = substr($1, 2, length($1) - 2)\n printf(\";$FILEVERSION=1.3\\n\")\n printf(\";$STARTTIME=%u.%.0f\\n\", mktime(strftime(\"%Y %m %d 0 0 0\", startTimestamp)) \/ 86400 + 25569, \\\n 10000000000.0 \/ 86400.0 * (mktime(strftime(\"%Y %m %d %H %M %S\", startTimestamp)) - mktime(strftime(\"%Y %m %d 0 0 0\", startTimestamp))))\n printf(\";\\n; Start time: %s\\n\", startTimestamp)\n printf(\"; %u\\n\", mktime(strftime(\"%Y %m %d %H %M %S\", startTimestamp)))\n printf(\"; %s\\n;\\n\", strftime(\"%Y-%m-%dT%H:%M:%S%z (%Z)\", startTimestamp))\n currentTimeOffset = 0.0\n }\n else\n {\n previousTimeOffset = currentTimeOffset\n currentTimestamp = substr($1, 2, length($1) - 2)\n currentTimeOffset = currentTimestamp - startTimestamp\n if (currentTimeOffset < 0)\n {\n startTimestamp = currentTimestamp + currentTimeOffset\n currentTimeOffset = previousTimeOffset\n }\n }\n printf(\"%u) %.3f 1 Rx %s - %s\", NR, currentTimeOffset * 1000, $3, substr($4, 2, length($4) - 2))\n if (5<=NF)\n {\n for(i=5;i<=NF;i++)\n {\n printf \" \"$i\n }\n }\n printf \"\\n\"\n}\n","subject":"Use float for calculating fractional part of STARTTIME to support busybox awk. Also print used start time is various representations.","message":"Use float for calculating fractional part of STARTTIME to support busybox awk.\nAlso print used start time is various representations.\n\nCompared to gawk, busybox awk does only support 32 bit integers.\n","lang":"Awk","license":"mit","repos":"tramseyer\/meta-medusa-dist,tramseyer\/meta-medusa-dist,tramseyer\/meta-medusa-dist,tramseyer\/meta-medusa-dist"} {"commit":"d7f0c1f819f5892e124041ecbe535500e773da0d","old_file":"changelog.awk","new_file":"changelog.awk","old_contents":"#!\/usr\/bin\/awk -f\nBEGIN {\n\t# Determines whether to print 'Unreleased' banner at top\n\tUNRELEASED_COMMITS = 1\n\t# Prefixes that determine whether a commit will be printed\n\tCHANGELOG_REGEX = \"^(changelog|fix|docs|chore|feat|feature|refactor|update): \"\n\tFS=\"|\"\n\twhile (\"git log --pretty='%D|%s|%H'\" | getline) {\n\t\tIS_GIT_TAG = length($1) && match($1, \/tag:\/)\n\t\tif (IS_GIT_TAG) {\n\t\t\tUNRELEASED_COMMITS = 0\n\t\t\t# Cut out text up to tag\n\t\t\tsub(\/.*tag: \/, \"\", $1)\n\t\t\t# Cut out text after tag\n\t\t\tsub(\/,.*\/, \"\", $1)\n\t\t\tprint $1 \n\t\t} else {\n\t\t\tif ( UNRELEASED_COMMITS ) {\n\t\t\t\tprint \"Unreleased\"\n\t\t\t\tUNRELEASED_COMMITS = 0\n\t\t\t}\n\t\t\tif ( match($2, CHANGELOG_REGEX) ) {\n\t\t\t\tsub(CHANGELOG_REGEX, \"\", $2)\n\t\t\t\tprintf(\"\\t- %s\\n\", $2)\n\t\t\t}\n\t\t}\n\n\t}\n}\n","new_contents":"#!\/usr\/bin\/awk -f\nBEGIN {\n\tREPO_URL = getRepoURL()\n\t# Prefixes that determine whether a commit will be printed\n\tCHANGELOG_REGEX = \"^(changelog|fix|docs|chore|feat|feature|refactor|update): \"\n\tFS=\"|\"\n\t# %D: tags\n\t# %s: commit message\n\t# %H: long hash\n\t# %h: short hash\n\twhile (\"git log --pretty='%D|%s|%H|%h'\" | getline) {\n\t\tIS_GIT_TAG = length($1) && match($1, \/tag:\/)\n\t\tif (IS_GIT_TAG) {\n\t\t\tprintTag($1)\n\t\t} else {\n\t\t\tprintCommit($2, $3, $4)\n\t\t}\n\n\t}\n}\nfunction printTag(input) {\n\t# Cut out text up to tag\n\tsub(\/.*tag: \/, \"\", input)\n\t# Cut out text after tag\n\tsub(\/,.*\/, \"\", input)\n\tprintf(\"## %s\\n\", input)\n}\nfunction printCommit(input, longHash, shortHash) {\n\tif ( match(input, CHANGELOG_REGEX) ) {\n\t\tsub(CHANGELOG_REGEX, \"\", input)\n\t\tprintf(\"- %s (%s)\\n\", input, makeCommitLink(REPO_URL, shortHash, longHash) )\n\t}\n}\nfunction makeCommitLink(repoUrl, shortHash, longHash) {\n\treturn (\"[\" shortHash \"](\" repoUrl \"\/commit\/\" longHash \")\")\n}\n# Get Git repo URL\nfunction getRepoURL() {\n\t\"git config --get remote.upstream.url || git config --get remote.origin.url || git config --get remote.dev.url\" | getline REPO_URL\n\tsub(\/:\/, \"\/\", REPO_URL)\n\tsub(\/git@\/, \"https:\/\/\", REPO_URL)\n\tsub(\/\\.git\/, \"\", REPO_URL)\n\treturn REPO_URL\n}\n","subject":"Update to output in markdown format","message":"feat: Update to output in markdown format\n","lang":"Awk","license":"mit","repos":"ianhenderson\/simple-git-changelog"} {"commit":"c2aad25b36a875cf3e04e5db93945a4e30c8f85e","old_file":"tools\/awk\/median.awk","new_file":"tools\/awk\/median.awk","old_contents":"#!\/usr\/bin\/env awk -f\n#\n# Computes the median.\n#\n# Usage: median\n#\n# Input:\n# - a column of numbers\n#\n# Output:\n# - median value\n\nBEGIN {\n\ti = 0\n}\n{\n\ta[i++] = $1\n}\nEND {\n\tj = i\/2\n\tif ( i%2 == 1 ) {\n\t\tmedian = a[int(j)]\n\t} else {\n\t\tmedian = (a[j] + a[j-1])\/2\n\t}\n\tprint median\n}\n","new_contents":"#!\/usr\/bin\/env awk -f\n#\n# Computes the median.\n#\n# Usage: median\n#\n# Input:\n# - a sorted column of numbers\n#\n# Output:\n# - median value\n\nBEGIN {\n\ti = 0\n}\n{\n\ta[i++] = $1\n}\nEND {\n\tj = i\/2\n\tif ( i%2 == 1 ) {\n\t\tmedian = a[int(j)]\n\t} else {\n\t\tmedian = (a[j] + a[j-1])\/2\n\t}\n\tprint median\n}\n","subject":"Clarify that input must be sorted","message":"Clarify that input must be sorted\n","lang":"Awk","license":"apache-2.0","repos":"stdlib-js\/stdlib,stdlib-js\/stdlib,stdlib-js\/stdlib,stdlib-js\/stdlib,stdlib-js\/stdlib,stdlib-js\/stdlib,stdlib-js\/stdlib,stdlib-js\/stdlib"} {"commit":"6a20e40655814dc20449ef1ae90a4e4ee9c42689","old_file":"targets.awk","new_file":"targets.awk","old_contents":"BEGIN {\n FS = \"\\n\";\n}\n\n\/Targets:\/ {\n while (getline && $0 != \"\") {\n if ($0 ~ \/Tests\/) continue;\n\n sub(\/^ +\/, \"\");\n print;\n }\n}\n","new_contents":"BEGIN {\n FS = \"\\n\";\n}\n\n\/Targets:\/ {\n while (getline && $0 != \"\") {\n if ($0 ~ \/Test\/) continue;\n\n sub(\/^ +\/, \"\");\n print;\n }\n}\n","subject":"Exclude any target with \"Test\" in the name","message":"Exclude any target with \"Test\" in the name\n","lang":"Awk","license":"mit","repos":"hsavit1\/objc-build-scripts,jspahrsummers\/objc-build-scripts"} {"commit":"ff5ad7ffc3e1cbed1f8c2b0ecbef64dd32ee9921","old_file":"Gtk-3.0.awk","new_file":"Gtk-3.0.awk","old_contents":"#!\/usr\/bin\/awk\n#\n# Patch the generated wrapper Swift code to handle special cases\n#\nBEGIN { depr_init = 0 }\n\/open .* ColorSelection\/ { depr_init = 1 }\n\/public .* ColorSelection\/ { depr_init = 1 }\n\/public .* HSV\/ { depr_init = 1 }\n\/open .* HSV\/ { depr_init = 1 }\n\/ init.. {\/ {\n\tif (depr_init) {\n\t\tprintf(\"@available(*, deprecated) \")\n\t\tdepr_init = 0\n\t}\n}\n\/ init. title:\/ {\n\tif (depr_init) {\n\t\tprintf(\"@available(*, deprecated) \")\n\t\tdepr_init = 0\n\t}\n}\n\/\/ { print }\n","new_contents":"#!\/usr\/bin\/awk\n#\n# Patch the generated wrapper Swift code to handle special cases\n#\nBEGIN { depr_init = 0 ; comment = 0 }\n\/open .* ColorSelection\/ { depr_init = 1 }\n\/public .* ColorSelection\/ { depr_init = 1 }\n\/public .* HSV\/ { depr_init = 1 }\n\/open .* HSV\/ { depr_init = 1 }\n\/open .* HSV\/ { depr_init = 1 }\n\/func getColumnHeaderCells\/ { comment = 1 }\n\/func getRowHeaderCells\/ { comment = 1 }\n\/ init.. {\/ {\n\tif (depr_init) {\n\t\tprintf(\"@available(*, deprecated) \")\n\t\tdepr_init = 0\n\t}\n}\n\/ init. title:\/ {\n\tif (depr_init) {\n\t\tprintf(\"@available(*, deprecated) \")\n\t\tdepr_init = 0\n\t}\n}\n\/\/ {\n\tif (comment) {\n\t\tprintf(\"\/\/ \")\n\t}\n\tprint\n}\n\/^ }$\/ { comment = 0 }\n","subject":"Make this link against gtk+-3.24.4","message":"Make this link against gtk+-3.24.4\n","lang":"Awk","license":"bsd-2-clause","repos":"rhx\/SwiftGtk,rhx\/SwiftGtk,rhx\/SwiftGtk"} {"commit":"e65dcb5321a86f0d4e1cee92e2f36f8c84013904","old_file":"generateversionscript.awk","new_file":"generateversionscript.awk","old_contents":"BEGIN {\n\tprint \"V1.0 {\";\n\tprint \" global:\";\n} \n{ \n\t# Remove the CR character in case the sources are mapped from\n\t# a Windows share and contain CRLF line endings\n\tgsub(\/\\r\/,\"\", $0);\n\t\n\t# Skip empty lines and comment lines starting with semicolon\n\tif (NF && !match($0, \/^[[:space:]]*;\/))\n\t{\n\t\tprint \" \" $0 \";\";\n\t}\n} \nEND {\n\tprint \" local: *;\"\n\tprint \"};\";\n}\n","new_contents":"BEGIN {\n\tprint \"V1.0 {\";\n\tprint \" global:\";\n} \n{ \n\t# Remove the CR character in case the sources are mapped from\n\t# a Windows share and contain CRLF line endings\n\tgsub(\/\\r\/,\"\", $0);\n\t\n\t# Skip empty lines and comment lines starting with semicolon\n\tif (NF && !match($0, \/^[:space:]*;\/))\n\t{\n\t\tprint \" \" $0 \";\";\n\t}\n} \nEND {\n\tprint \" local: *;\"\n\tprint \"};\";\n}\n","subject":"Revert \"Fix bracket expression matches a character at gawk\"","message":"Revert \"Fix bracket expression matches a character at gawk\"\n","lang":"Awk","license":"mit","repos":"bartdesmet\/coreclr,cmckinsey\/coreclr,poizan42\/coreclr,JosephTremoulet\/coreclr,mskvortsov\/coreclr,ragmani\/coreclr,dpodder\/coreclr,hseok-oh\/coreclr,JosephTremoulet\/coreclr,botaberg\/coreclr,andschwa\/coreclr,mmitche\/coreclr,rartemev\/coreclr,qiudesong\/coreclr,yeaicc\/coreclr,pgavlin\/coreclr,wtgodbe\/coreclr,pgavlin\/coreclr,ruben-ayrapetyan\/coreclr,jamesqo\/coreclr,shahid-pk\/coreclr,tijoytom\/coreclr,ZhichengZhu\/coreclr,bartonjs\/coreclr,dasMulli\/coreclr,James-Ko\/coreclr,gkhanna79\/coreclr,James-Ko\/coreclr,shahid-pk\/coreclr,ramarag\/coreclr,kyulee1\/coreclr,JonHanna\/coreclr,russellhadley\/coreclr,shahid-pk\/coreclr,kyulee1\/coreclr,dasMulli\/coreclr,sejongoh\/coreclr,russellhadley\/coreclr,JonHanna\/coreclr,ZhichengZhu\/coreclr,JosephTremoulet\/coreclr,manu-silicon\/coreclr,alexperovich\/coreclr,SlavaRa\/coreclr,James-Ko\/coreclr,dpodder\/coreclr,krytarowski\/coreclr,JonHanna\/coreclr,neurospeech\/coreclr,sjsinju\/coreclr,sagood\/coreclr,chuck-mitchell\/coreclr,parjong\/coreclr,KrzysztofCwalina\/coreclr,yizhang82\/coreclr,jhendrixMSFT\/coreclr,dpodder\/coreclr,gkhanna79\/coreclr,pgavlin\/coreclr,dasMulli\/coreclr,dasMulli\/coreclr,alexperovich\/coreclr,martinwoodward\/coreclr,sagood\/coreclr,poizan42\/coreclr,YongseopKim\/coreclr,wateret\/coreclr,sjsinju\/coreclr,mmitche\/coreclr,chuck-mitchell\/coreclr,KrzysztofCwalina\/coreclr,mskvortsov\/coreclr,yizhang82\/coreclr,mmitche\/coreclr,roncain\/coreclr,andschwa\/coreclr,sjsinju\/coreclr,jhendrixMSFT\/coreclr,schellap\/coreclr,parjong\/coreclr,cydhaselton\/coreclr,josteink\/coreclr,krytarowski\/coreclr,qiudesong\/coreclr,sejongoh\/coreclr,sjsinju\/coreclr,sagood\/coreclr,yizhang82\/coreclr,botaberg\/coreclr,bartonjs\/coreclr,schellap\/coreclr,JosephTremoulet\/coreclr,jamesqo\/coreclr,jamesqo\/coreclr,ZhichengZhu\/coreclr,dasMulli\/coreclr,KrzysztofCwalina\/coreclr,bartdesmet\/coreclr,pgavlin\/coreclr,jamesqo\/coreclr,tijoytom\/coreclr,alexperovich\/coreclr,cmckinsey\/coreclr,yeaicc\/coreclr,andschwa\/coreclr,LLITCHEV\/coreclr,wtgodbe\/coreclr,manu-silicon\/coreclr,jhendrixMSFT\/coreclr,AlexGhiondea\/coreclr,yeaicc\/coreclr,JonHanna\/coreclr,Dmitry-Me\/coreclr,vinnyrom\/coreclr,manu-silicon\/coreclr,wateret\/coreclr,jhendrixMSFT\/coreclr,cmckinsey\/coreclr,bartdesmet\/coreclr,ZhichengZhu\/coreclr,naamunds\/coreclr,shahid-pk\/coreclr,shahid-pk\/coreclr,dpodder\/coreclr,parjong\/coreclr,josteink\/coreclr,James-Ko\/coreclr,jhendrixMSFT\/coreclr,alexperovich\/coreclr,ruben-ayrapetyan\/coreclr,James-Ko\/coreclr,naamunds\/coreclr,sejongoh\/coreclr,YongseopKim\/coreclr,cydhaselton\/coreclr,krk\/coreclr,schellap\/coreclr,hseok-oh\/coreclr,bartonjs\/coreclr,andschwa\/coreclr,wateret\/coreclr,ruben-ayrapetyan\/coreclr,parjong\/coreclr,martinwoodward\/coreclr,ZhichengZhu\/coreclr,schellap\/coreclr,kyulee1\/coreclr,vinnyrom\/coreclr,wateret\/coreclr,Dmitry-Me\/coreclr,sejongoh\/coreclr,martinwoodward\/coreclr,shahid-pk\/coreclr,bartonjs\/coreclr,yeaicc\/coreclr,botaberg\/coreclr,ramarag\/coreclr,ramarag\/coreclr,sejongoh\/coreclr,sejongoh\/coreclr,SlavaRa\/coreclr,Dmitry-Me\/coreclr,ragmani\/coreclr,krytarowski\/coreclr,krk\/coreclr,ruben-ayrapetyan\/coreclr,JonHanna\/coreclr,krytarowski\/coreclr,alexperovich\/coreclr,russellhadley\/coreclr,LLITCHEV\/coreclr,AlexGhiondea\/coreclr,bartdesmet\/coreclr,shahid-pk\/coreclr,LLITCHEV\/coreclr,qiudesong\/coreclr,ruben-ayrapetyan\/coreclr,Dmitry-Me\/coreclr,ragmani\/coreclr,roncain\/coreclr,mskvortsov\/coreclr,martinwoodward\/coreclr,mskvortsov\/coreclr,James-Ko\/coreclr,josteink\/coreclr,hseok-oh\/coreclr,ramarag\/coreclr,SlavaRa\/coreclr,martinwoodward\/coreclr,andschwa\/coreclr,KrzysztofCwalina\/coreclr,cshung\/coreclr,YongseopKim\/coreclr,manu-silicon\/coreclr,cydhaselton\/coreclr,russellhadley\/coreclr,roncain\/coreclr,martinwoodward\/coreclr,YongseopKim\/coreclr,chuck-mitchell\/coreclr,bartdesmet\/coreclr,chuck-mitchell\/coreclr,mskvortsov\/coreclr,tijoytom\/coreclr,cmckinsey\/coreclr,KrzysztofCwalina\/coreclr,parjong\/coreclr,cydhaselton\/coreclr,cmckinsey\/coreclr,dpodder\/coreclr,sagood\/coreclr,pgavlin\/coreclr,krytarowski\/coreclr,naamunds\/coreclr,ragmani\/coreclr,bartonjs\/coreclr,ruben-ayrapetyan\/coreclr,YongseopKim\/coreclr,AlexGhiondea\/coreclr,wtgodbe\/coreclr,Dmitry-Me\/coreclr,cydhaselton\/coreclr,dasMulli\/coreclr,yeaicc\/coreclr,roncain\/coreclr,KrzysztofCwalina\/coreclr,kyulee1\/coreclr,josteink\/coreclr,chuck-mitchell\/coreclr,qiudesong\/coreclr,qiudesong\/coreclr,sagood\/coreclr,naamunds\/coreclr,JonHanna\/coreclr,chuck-mitchell\/coreclr,gkhanna79\/coreclr,josteink\/coreclr,jamesqo\/coreclr,naamunds\/coreclr,botaberg\/coreclr,rartemev\/coreclr,yizhang82\/coreclr,JosephTremoulet\/coreclr,yeaicc\/coreclr,JosephTremoulet\/coreclr,roncain\/coreclr,alexperovich\/coreclr,pgavlin\/coreclr,bartdesmet\/coreclr,chuck-mitchell\/coreclr,cshung\/coreclr,sagood\/coreclr,AlexGhiondea\/coreclr,krytarowski\/coreclr,AlexGhiondea\/coreclr,wateret\/coreclr,YongseopKim\/coreclr,vinnyrom\/coreclr,cshung\/coreclr,KrzysztofCwalina\/coreclr,cmckinsey\/coreclr,rartemev\/coreclr,manu-silicon\/coreclr,russellhadley\/coreclr,roncain\/coreclr,neurospeech\/coreclr,botaberg\/coreclr,krk\/coreclr,neurospeech\/coreclr,neurospeech\/coreclr,wtgodbe\/coreclr,bartonjs\/coreclr,jhendrixMSFT\/coreclr,schellap\/coreclr,ZhichengZhu\/coreclr,kyulee1\/coreclr,neurospeech\/coreclr,hseok-oh\/coreclr,hseok-oh\/coreclr,wtgodbe\/coreclr,kyulee1\/coreclr,cydhaselton\/coreclr,bartdesmet\/coreclr,hseok-oh\/coreclr,ragmani\/coreclr,krk\/coreclr,naamunds\/coreclr,vinnyrom\/coreclr,mskvortsov\/coreclr,parjong\/coreclr,sejongoh\/coreclr,martinwoodward\/coreclr,LLITCHEV\/coreclr,rartemev\/coreclr,poizan42\/coreclr,mmitche\/coreclr,cshung\/coreclr,vinnyrom\/coreclr,manu-silicon\/coreclr,tijoytom\/coreclr,LLITCHEV\/coreclr,mmitche\/coreclr,jamesqo\/coreclr,bartonjs\/coreclr,rartemev\/coreclr,neurospeech\/coreclr,rartemev\/coreclr,SlavaRa\/coreclr,yeaicc\/coreclr,SlavaRa\/coreclr,yizhang82\/coreclr,dasMulli\/coreclr,schellap\/coreclr,vinnyrom\/coreclr,andschwa\/coreclr,mmitche\/coreclr,wtgodbe\/coreclr,poizan42\/coreclr,wateret\/coreclr,qiudesong\/coreclr,gkhanna79\/coreclr,Dmitry-Me\/coreclr,yizhang82\/coreclr,LLITCHEV\/coreclr,botaberg\/coreclr,russellhadley\/coreclr,dpodder\/coreclr,ZhichengZhu\/coreclr,AlexGhiondea\/coreclr,gkhanna79\/coreclr,vinnyrom\/coreclr,schellap\/coreclr,poizan42\/coreclr,tijoytom\/coreclr,cmckinsey\/coreclr,cshung\/coreclr,manu-silicon\/coreclr,naamunds\/coreclr,gkhanna79\/coreclr,ragmani\/coreclr,Dmitry-Me\/coreclr,ramarag\/coreclr,sjsinju\/coreclr,roncain\/coreclr,poizan42\/coreclr,cshung\/coreclr,andschwa\/coreclr,LLITCHEV\/coreclr,josteink\/coreclr,krk\/coreclr,tijoytom\/coreclr,krk\/coreclr,ramarag\/coreclr,sjsinju\/coreclr,ramarag\/coreclr,josteink\/coreclr,SlavaRa\/coreclr,jhendrixMSFT\/coreclr"} {"commit":"95f0985e4aa0c96d77cb3287f5c9c34c946e0124","old_file":"q3\/dep.awk","new_file":"q3\/dep.awk","old_contents":"#!\/bin\/awk\r\n#\r\n# $Id$\r\n\r\n{\r\n\tif (NR == 1) {\r\n\t\tprint\r\n\t}\r\n\telse {\r\n\t\tfor (i = 1; i <= NF; i++) {\r\n\t\t\tif ($i ~ \/^include\\\/\/ ||\r\n\t\t\t\t$i ~ \/^src\\\/\/ ||\r\n\t\t\t\t$i ~ \/^obj\\\/\/ ||\r\n\t\t\t\t$i == \"\\\\\")\r\n\t\t\tprintf \" \" $i\r\n\t\t}\r\n\t\tprint \"\"\r\n\t}\r\n}\r\n","new_contents":"#!\/bin\/awk\r\n#\r\n# $Id$\r\n\r\n{\r\n\tif (NR == 1) {\r\n\t\tprint\r\n\t}\r\n\telse {\r\n\t\tfor (i = 1; i <= NF; i++) {\r\n\t\t\tif ($i ~ \/^include\\\/\/ ||\r\n\t\t\t\t$i ~ \/^src\\\/\/ ||\r\n\t\t\t\t$i ~ \/^obj\\\/\/ ||\r\n\t\t\t\t$i ~ \/^\\.\\.\\\/\/ ||\r\n\t\t\t\t$i == \"\\\\\")\r\n\t\t\tprintf \" \" $i\r\n\t\t}\r\n\t\tprint \"\"\r\n\t}\r\n}\r\n","subject":"Include header files whose path begins with ..\/ .","message":"Include header files whose path begins with ..\/ .\n\n\ngit-svn-id: 12ae5aeef08fd453d75833463da4cc20df82a94e@2159 8af8166b-12a6-a448-a533-9086ace3f9f6\n","lang":"Awk","license":"mit","repos":"snakamura\/q3,snakamura\/q3,snakamura\/q3,snakamura\/q3,snakamura\/q3,snakamura\/q3,snakamura\/q3,snakamura\/q3,snakamura\/q3"} {"commit":"86e0f63ada393327a76f1ba5bdfc1e4ff633aa1b","old_file":"log_rewriter.awk","new_file":"log_rewriter.awk","old_contents":"BEGIN{\n now = systime()\n format = \"%Y\/%m\/%d %H:%M:%S\"\n \n}\n{\n split($1, DATE, \"\/\")\n split($2, TIME, \":\")\n $1 = \"\"\n $2 = \"\"\n t = mktime(DATE[1] \" \" DATE[2] \" \" DATE[3] \" \" TIME[1] \" \" TIME[2] \" \" TIME[3])\n if (delta == \"\") {\n delta = now - t\n }\n print strftime(format, t + delta) $0\n}\n","new_contents":"BEGIN{\n now = systime()\n format = \"%Y\/%m\/%d %H:%M:%S\"\n \n}\n{\n split($1, DATE, \"\/\")\n split($2, TIME, \":\")\n t = mktime(DATE[1] \" \" DATE[2] \" \" DATE[3] \" \" TIME[1] \" \" TIME[2] \" \" TIME[3])\n if (delta == \"\") {\n delta = now - t\n }\n out = strftime(format, t + delta)\n for (i = 3; i <= NF; i++) {\n out = out OFS $i\n }\n print out\n}\n","subject":"Fix an output formatting bug in the rewriter script.","message":"Fix an output formatting bug in the rewriter script.\n","lang":"Awk","license":"apache-2.0","repos":"4honor\/mtail,google\/mtail,SuperQ\/mtail,4honor\/mtail,SuperQ\/mtail,google\/mtail"} {"commit":"d67bae61d2d09bd96a593087ed0135313298da07","old_file":"rtest\/strps.awk","new_file":"rtest\/strps.awk","old_contents":"BEGIN{doit = 0}\n { if (doit) print $0 }\n $0 == \"%%EndSetup\" { doit = 1 }\n","new_contents":"BEGIN{doit = 0}\n { if (doit) print $0 }\n $0 = \/%%End.*Setup\/ { doit = 1 }\n","subject":"Fix awk script to work with cairo generated postscript","message":"Fix awk script to work with cairo generated postscript\n","lang":"Awk","license":"epl-1.0","repos":"pixelglow\/graphviz,jho1965us\/graphviz,BMJHayward\/graphviz,MjAbuz\/graphviz,tkelman\/graphviz,pixelglow\/graphviz,ellson\/graphviz,BMJHayward\/graphviz,BMJHayward\/graphviz,jho1965us\/graphviz,MjAbuz\/graphviz,ellson\/graphviz,BMJHayward\/graphviz,pixelglow\/graphviz,kbrock\/graphviz,jho1965us\/graphviz,MjAbuz\/graphviz,MjAbuz\/graphviz,tkelman\/graphviz,jho1965us\/graphviz,BMJHayward\/graphviz,jho1965us\/graphviz,BMJHayward\/graphviz,kbrock\/graphviz,BMJHayward\/graphviz,ellson\/graphviz,MjAbuz\/graphviz,kbrock\/graphviz,BMJHayward\/graphviz,tkelman\/graphviz,tkelman\/graphviz,pixelglow\/graphviz,tkelman\/graphviz,tkelman\/graphviz,ellson\/graphviz,jho1965us\/graphviz,jho1965us\/graphviz,BMJHayward\/graphviz,MjAbuz\/graphviz,ellson\/graphviz,pixelglow\/graphviz,ellson\/graphviz,MjAbuz\/graphviz,tkelman\/graphviz,kbrock\/graphviz,ellson\/graphviz,MjAbuz\/graphviz,kbrock\/graphviz,ellson\/graphviz,kbrock\/graphviz,pixelglow\/graphviz,kbrock\/graphviz,tkelman\/graphviz,ellson\/graphviz,tkelman\/graphviz,MjAbuz\/graphviz,tkelman\/graphviz,BMJHayward\/graphviz,jho1965us\/graphviz,pixelglow\/graphviz,BMJHayward\/graphviz,pixelglow\/graphviz,ellson\/graphviz,jho1965us\/graphviz,pixelglow\/graphviz,kbrock\/graphviz,tkelman\/graphviz,MjAbuz\/graphviz,pixelglow\/graphviz,kbrock\/graphviz,kbrock\/graphviz,MjAbuz\/graphviz,pixelglow\/graphviz,jho1965us\/graphviz,ellson\/graphviz,kbrock\/graphviz,jho1965us\/graphviz"} {"commit":"37fe110620923d519b6b6d3336c12429d6f3b755","old_file":"debts.awk","new_file":"debts.awk","old_contents":"#!\/usr\/bin\/awk -f\n\nBEGIN { FS = \",\" }\n\n$1 == \"pld\" { p += $2 }\n$1 == \"val\" { v += $2 }\n{ \"date -d \"$3\" +%B\" | getline month\n monthly[month][$1] += $2\n categorically[$1][$4] += $2 }\n\nEND { print \"Val spent \"v\"€\"\n print \"PLD spent \"p\"€\"\n if ( p < v )\n print \"PLD owe \"v - p\"€ to val.\"\n else if ( p > v )\n print \"Val owe \"p - v\"€ to PLD.\"\n else\n print \"Accounts are balanced.\"\n\n print \"\"\n\n if ( verbose == 1 ) {\n print \"Here's the detail:\"\n\n print \" Spendings per month:\"\n for ( month in monthly ) {\n print \" In \"month\":\"\n for ( who in monthly[month] ) {\n print \" \"who\" spent \"monthly[month][who]\"€.\"\n }\n }\n\n print \" Spendings by category:\"\n for ( who in categorically ) {\n print \" By \"who\":\"\n for ( category in categorically[who] ) {\n print \" \"categorically[who][category]\"€ in \"category\".\"\n }\n }\n }\n }\n","new_contents":"#!\/usr\/bin\/awk -f\n\nBEGIN { FS = \",\" }\n\n$1 == \"pld\" { p += $2 }\n$1 == \"val\" { v += $2 }\n{ \"date -d \"$3\" '+%B %Y'\" | getline month_and_year\n monthly[month_and_year][$1] += $2\n categorically[$1][$4] += $2 }\n\nEND { print \"Val spent \"v\"€\"\n print \"PLD spent \"p\"€\"\n if ( p < v )\n print \"PLD owe \"v - p\"€ to val.\"\n else if ( p > v )\n print \"Val owe \"p - v\"€ to PLD.\"\n else\n print \"Accounts are balanced.\"\n\n print \"\"\n\n if ( verbose == 1 ) {\n print \"Here's the detail:\"\n\n print \" Spendings per month:\"\n for ( month_and_year in monthly ) {\n print \" In \"month_and_year\":\"\n total_for_month = 0\n for ( who in monthly[month_and_year] ) {\n spent = monthly[month_and_year][who]\n print \" \"who\" spent \"spent\"€.\"\n total_for_month += spent\n }\n print \" Total: \"total_for_month\"€.\"\n }\n\n print \" Spendings by category:\"\n for ( who in categorically ) {\n print \" By \"who\":\"\n for ( category in categorically[who] ) {\n print \" \"categorically[who][category]\"€ in \"category\".\"\n }\n }\n }\n }\n","subject":"Add year differentation into monthly report","message":"Add year differentation into monthly report\n","lang":"Awk","license":"unlicense","repos":"pldiiw\/debts"} {"commit":"a97463f6c90434039bcd550ae2c103993c376561","old_file":"files\/accounting\/quota.awk","new_file":"files\/accounting\/quota.awk","old_contents":"#\n# Parsing output of:\n#\n# hdfs dfs -du -s '\/user\/*'\n#\n\nfunction dbstr(s) {\n\tif (s) { return \"'\" s \"'\" }\n\telse { return \"NULL\" }\n}\n\nfunction dbi(i) {\n\tif (i >= 0) { return i }\n\telse { return \"NULL\" }\n}\n\nBEGIN {\n\tFS=\"[ \\t\/]+\"\n\tprint \"INSERT INTO measure (name) VALUES ('quota');\";\n}\n\n{\n\tused=$1\n\tuser=$4\n\tprint \"INSERT INTO quota (id_measure, user, used) VALUES (last_insert_id(), \" dbstr(user) \", \" dbi(used) \");\"\n}\n","new_contents":"#\n# Parsing output of:\n#\n# hdfs dfs -du -s '\/user\/*'\n#\n\nfunction dbstr(s) {\n\tif (s) { return \"'\" s \"'\" }\n\telse { return \"NULL\" }\n}\n\nfunction dbi(i) {\n\tif (i >= 0) { return i }\n\telse { return \"NULL\" }\n}\n\nBEGIN {\n\tFS=\"[ \\t\/]+\"\n\tprint \"INSERT INTO measure (name) VALUES ('quota');\";\n}\n\n\/^[0-9]+[ \t]+[0-9]+[ \t]+\\\/.*\/ {\n\tused=$1\n\tuser=$4\n\tprint \"INSERT INTO quota (id_measure, user, used) VALUES (last_insert_id(), \" dbstr(user) \", \" dbi(used) \");\"\n}\n\/^[0-9]+[ \t]+\\\/.*\/ {\n\tused=$1\n\tuser=$3\n\tprint \"INSERT INTO quota (id_measure, user, used) VALUES (last_insert_id(), \" dbstr(user) \", \" dbi(used) \");\"\n}\n","subject":"Support also different version of Hadoop (=Fedora).","message":"Support also different version of Hadoop (=Fedora).\n","lang":"Awk","license":"mit","repos":"MetaCenterCloudPuppet\/cesnet-site_hadoop,MetaCenterCloudPuppet\/cesnet-site_hadoop,MetaCenterCloudPuppet\/cesnet-site_hadoop,MetaCenterCloudPuppet\/cesnet-site_hadoop"} {"commit":"ca1ade1571f27a86fc8a559a8b179024d07f0a7b","old_file":"generateIMDbScriptsFrom-titles.awk","new_file":"generateIMDbScriptsFrom-titles.awk","old_contents":"{\n title = $0\n if (match (title, \/, The\"$\/)) {\n sub (\/^\"\/,\"\\\"The \", title)\n sub (\/, The\"$\/,\"\\\"\", title)\n }\n printf (\"echo ==\\\\> %3d: %s\\n\",NR,title) >> TITLES_SCRIPT\n printf (\".\/getIMDbInfoFrom-titles.py %s\\n\",title) >> TITLES_SCRIPT\n printf (\"echo \\n\\n\") >> TITLES_SCRIPT\n\n printf (\"echo ==\\\\> %3d: %s\\n\",NR,title) >> ID_SCRIPT\n printf (\".\/getIMDb_IDsFrom-titles.py %s | head -7\\n\",title) >> ID_SCRIPT\n printf (\"echo \\n\\n\") >> ID_SCRIPT\n}\n\n","new_contents":"{\n title = $0\n if (match (title, \/, The\"$\/)) {\n sub (\/^\"\/,\"\\\"The \", title)\n sub (\/, The\"$\/,\"\\\"\", title)\n }\n\n if (FILENAME ~ \/Acorn\/) \n KEY = \"A\"\n if (FILENAME ~ \/BBox\/) \n KEY = \"B\"\n if (FILENAME ~ \/MHz\/) \n KEY = \"M\"\n if (FILENAME ~ \/Watched\/) \n KEY = \"W\"\n\n printf (\"echo ==\\\\> %sT %3d: %s\\n\", KEY, NR, title) >> TITLES_SCRIPT\n printf (\".\/getIMDbInfoFrom-titles.py %s\\n\",title) >> TITLES_SCRIPT\n printf (\"echo \\n\\n\") >> TITLES_SCRIPT\n\n printf (\"echo ==\\\\> %sI %3d: %s\\n\", KEY, NR, title) >> ID_SCRIPT\n printf (\".\/getIMDb_IDsFrom-titles.py %s | head -7\\n\",title) >> ID_SCRIPT\n printf (\"echo \\n\\n\") >> ID_SCRIPT\n}\n\n","subject":"Add identifier KEY so we can see where we are in -v script","message":"Add identifier KEY so we can see where we are in -v script\n","lang":"Awk","license":"mit","repos":"Monty\/WhatsStreamingToday,Monty\/WhatsStreamingToday"} {"commit":"9c65c5b741b341fa0a689e91a0cc4ff15d8e53a6","old_file":"scripts\/marksession.awk","new_file":"scripts\/marksession.awk","old_contents":"BEGIN {\n session_count = 0;\n FS=\"|\"\n OFS=\"|\"\n}\n\n{\n if ($3 ~ \"[0-9]+\") {\n # See if the current line is already in the table\n frame_file = destDir \"\/frames\/Frame\"$3\".html\"\n session_line = \"\"\n \"grep -i \\\"\" session_token \"\\\" \" frame_file | getline session_line\n\n if (session_line == \"\" ) {\n $6 = \"{0}\"\n print $0\n\n } else {\n found = 0;\n split(session_line, array, \" \")\n session = array[2]\n for (i=0; i < session_count; i++) {\n if (sessions[i] == session) {\n found = 1\n $6 = \"{\" i+1 \"}\"\n print $0\n break\n }\n }\n\n if (found == 0) {\n $6 = \"{\" session_count+1 \"}\"\n sessions[session_count++] = session\n print $0\n s = sprintf(\"echo '%2d: new session in frame %4s: %s' >&2\", session_count, $3, session)\n system(s)\n }\n }\n \n } else {\n # Comment line, line starting with \"#\".\n # Requires no processing, just print it\n print $0\n }\n}\n\n","new_contents":"BEGIN {\n session_count = 0;\n FS=\"|\"\n OFS=\"|\"\n}\n\n{\n if ($3 ~ \"[0-9]+\") {\n # See if the current line is already in the table\n frame_file = destDir \"\/frames\/Frame\"$3\".html\"\n session_line = \"\"\n \"grep -i \\\"\" session_token \"\\\" \" frame_file | getline session_line\n close(grep)\n\n if (session_line == \"\" ) {\n $6 = \"{0}\"\n print $0\n\n } else {\n found = 0;\n split(session_line, array, \" \")\n session = array[2]\n for (i=0; i < session_count; i++) {\n if (sessions[i] == session) {\n found = 1\n $6 = \"{\" i+1 \"}\"\n print $0\n break\n }\n }\n\n if (found == 0) {\n $6 = \"{\" session_count+1 \"}\"\n sessions[session_count++] = session\n print $0\n s = sprintf(\"echo '%2d: new session in frame %4s: %s' >&2\", session_count, $3, session)\n system(s)\n }\n }\n \n } else {\n # Comment line, line starting with \"#\".\n # Requires no processing, just print it\n print $0\n }\n}\n\n","subject":"Add a close command to avoid too many files opened problems (encountered with large libpcap file)","message":"Add a close command to avoid too many files opened problems (encountered with large libpcap file)\n \n\n\ngit-svn-id: 392d0e5ce652024192c571322d40dcc23d6d83b0@118 8a65f31f-a56f-4bd6-98e8-2755f64920ec\n","lang":"Awk","license":"bsd-3-clause","repos":"pol51\/callflow,pol51\/callflow"} {"commit":"38b5a93ee539af40d8d12c22163057d2b337acf1","old_file":"Programs\/brlapi.awk","new_file":"Programs\/brlapi.awk","old_contents":"###############################################################################\n# BRLTTY - A background process providing access to the console screen (when in\n# text mode) for a blind person using a refreshable braille display.\n#\n# Copyright (C) 1995-2006 by The BRLTTY Developers.\n#\n# BRLTTY comes with ABSOLUTELY NO WARRANTY.\n#\n# This is free software, placed under the terms of the\n# GNU General Public License, as published by the Free Software\n# Foundation. Please see the file COPYING for details.\n#\n# Web Page: http:\/\/mielke.cc\/brltty\/\n#\n# This software is maintained by Dave Mielke .\n###############################################################################\n\n\/#define[ \\t]*BRLAPI_KEY_[A-Z_]+_MASK\/ {\n apiMask(substr($2, 12), $2, getDefineValue(), \"\")\n next\n}\n\n\/#define[ \\t]*BRLAPI_KEY_[A-Z_]+_SHIFT\/ {\n apiShift(substr($2, 12), $2, getDefineValue(), \"\")\n next\n}\n\n\/#define[ \\t]*BRLAPI_KEY_TYPE_\/ {\n apiType(substr($2, 17), $2, getDefineValue(), \"\")\n next\n}\n\n\/#define[ \\t]*BRLAPI_KEY_SYM_\/ {\n apiKey(substr($2, 16), $2, getDefineValue(), \"\")\n next\n}\n\n","new_contents":"###############################################################################\n# BRLTTY - A background process providing access to the console screen (when in\n# text mode) for a blind person using a refreshable braille display.\n#\n# Copyright (C) 1995-2006 by The BRLTTY Developers.\n#\n# BRLTTY comes with ABSOLUTELY NO WARRANTY.\n#\n# This is free software, placed under the terms of the\n# GNU General Public License, as published by the Free Software\n# Foundation. Please see the file COPYING for details.\n#\n# Web Page: http:\/\/mielke.cc\/brltty\/\n#\n# This software is maintained by Dave Mielke .\n###############################################################################\n\n\/#define[ \\t]*BRLAPI_KEY_MAX\/ {\n apiMask(substr($2, 12), $2, getDefineValue(), \"\")\n next\n}\n\n\/#define[ \\t]*BRLAPI_KEY_[A-Z_]+_MASK\/ {\n apiMask(substr($2, 12), $2, getDefineValue(), \"\")\n next\n}\n\n\/#define[ \\t]*BRLAPI_KEY_[A-Z_]+_SHIFT\/ {\n apiShift(substr($2, 12), $2, getDefineValue(), \"\")\n next\n}\n\n\/#define[ \\t]*BRLAPI_KEY_TYPE_\/ {\n apiType(substr($2, 17), $2, getDefineValue(), \"\")\n next\n}\n\n\/#define[ \\t]*BRLAPI_KEY_SYM_\/ {\n apiKey(substr($2, 16), $2, getDefineValue(), \"\")\n next\n}\n\n","subject":"Define KEY_MAX for Python. (dm)","message":"Define KEY_MAX for Python. (dm)\n\n\ngit-svn-id: 30a5f035a20f1bc647618dbad7eea2a951b61b7c@2776 91a5dbb7-01b9-0310-9b5f-b28072856b6e\n","lang":"Awk","license":"lgpl-2.1","repos":"brltty\/brltty,brltty\/brltty,brltty\/brltty,brltty\/brltty,brltty\/brltty,brltty\/brltty"} {"commit":"feb107421f91c5001dc3c580aa3a4ea237865f99","old_file":"doxy\/githublabels.awk","new_file":"doxy\/githublabels.awk","old_contents":"#!\/usr\/bin\/awk -f\n#\n# Adds github compatible labels to level 1 and 2 markdown headings\n# in underline style.\n#\n\n#\n# Substitute github references with doxygen references.\n#\n\/\\(#[_a-z0-9-]*\\)\/ {\n\tgsub(\/\\(#[_a-z0-9-]*\\)\/, \"<__REF__&__REF__>\")\n\tgsub(\/<__REF__\\(#\/, \"(@ref \")\n\tgsub(\/\\)__REF__>\/, \")\")\n}\n\n#\n# If this line is underlining a heading, add a label to the previous\n# line.\n#\nline && (\/^===*$\/ || \/^---*$\/) {\n\tid = tolower(line)\n\tgsub(\/[^_a-z0-9]+\/, \"-\", id)\n\tline = line \" {#\" id \"}\"\n}\n\n#\n# Print the previous line, after a label might have been added.\n#\n{print line}\n\n#\n# Remember this line when scanning the next one for underlining.\n#\n{line = $0}\n\n#\n# Print the last line.\n#\nEND { print }\n","new_contents":"#!\/usr\/bin\/awk -f\n#\n# Adds github compatible labels to level 1 and 2 markdown headings\n# in underline style.\n#\n\n#\n# Get file name prefix for references.\n#\nfilename != FILENAME {\n\tfilename = FILENAME\n\t# strip path\n\t\"pwd\" | getline path\n\tpath = path \"\/\"\n\tprefix = substr(filename, 1, length(path)) == path \\\n\t ? substr(filename, length(path) + 1) \\\n\t : filename\n\tsub(\/\\.[^.]*$\/, \"\", prefix)\n\tgsub(\/[^_a-z0-9]+\/, \"-\", prefix)\n\tprefix = \"md_\" prefix \"_\"\n}\n\n#\n# Substitute github references with doxygen references.\n#\n\/\\(#[_a-z0-9-]*\\)\/ {\n\tgsub(\/\\(#[_a-z0-9-]*\\)\/, \"<__REF__&__REF__>\")\n\tgsub(\/<__REF__\\(#\/, \"(@ref \" prefix)\n\tgsub(\/\\)__REF__>\/, \")\")\n}\n\n#\n# If this line is underlining a heading, add a label to the previous\n# line.\n#\nline && (\/^===*$\/ || \/^---*$\/) {\n\tid = tolower(line)\n\tgsub(\/[^_a-z0-9]+\/, \"-\", id)\n\tline = line \" {#\" prefix id \"}\"\n}\n\n#\n# Print the previous line, after a label might have been added.\n#\n{print line}\n\n#\n# Remember this line when scanning the next one for underlining.\n#\n{line = $0}\n\n#\n# Print the last line.\n#\nEND { print }\n","subject":"Use a file name prefix for generated labels","message":"Use a file name prefix for generated labels\n\nThis ensures labels are unique within the wider context of the doxygen\ndocumentation.\n","lang":"Awk","license":"isc","repos":"lonkamikaze\/powerdxx,lonkamikaze\/powerdxx"} {"commit":"e3be4fe3c6be4dcdffb98f060eaf0422a0775fc2","old_file":"bin\/stats-aggregate.awk","new_file":"bin\/stats-aggregate.awk","old_contents":"BEGIN {\n}\n\nfunction extension(str){\n n = split(str, parts, \".\")\n if (n == 1){\n return \"\"\n } else {\n return parts[n]\n }\n}\n\n$2 != \"total\" {\n by_type[extension($2)] += $1\n}\n\n$2 ~ \"CMakeLists.txt\" {\n #cmake should not count as text\n by_type[\"txt\"] -= $1\n by_type[\"cmake\"] += $1\n}\n\n$2 ~ \"test\" {\n by_type[extension($2)] -= $1\n by_type[\"TEST\"] += $1\n}\n\nEND {\n\n # join up cpp types\n by_type[\"cpp\"] += by_type[\"hpp\"]\n delete by_type[\"hpp\"]\n\n #get rid of some filetypes I dont care about\n delete by_type[\"gitignore\"]\n delete by_type[\"jpg\"]\n delete by_type[\"png\"]\n delete by_type[\"ttf\"]\n delete by_type[\"pdf\"]\n\n #print each extension, collect the total\n total=0\n for (x in by_type) {\n if (by_type[x] > 0) {\n total += by_type[x]\n print (x, by_type[x])\n }\n }\n\n print(\"Total:\", total)\n}\n","new_contents":"BEGIN {\n}\n\nfunction getExtension(str){\n n = split(str, parts, \".\")\n if (n == 1){\n return \"\"\n } else {\n return parts[n]\n }\n}\n\n$2 != \"total\" {\n by_type[getExtension($2)] += $1\n}\n\n$2 ~ \"CMakeLists.txt\" {\n #cmake should not count as text\n by_type[\"txt\"] -= $1\n by_type[\"cmake\"] += $1\n}\n\n$2 ~ \"test\" {\n by_type[getExtension($2)] -= $1\n by_type[\"TEST\"] += $1\n}\n\nEND {\n\n # join up cpp types\n by_type[\"cpp\"] += by_type[\"hpp\"]\n delete by_type[\"hpp\"]\n\n #get rid of some filetypes I dont care about\n delete by_type[\"gitignore\"]\n delete by_type[\"jpg\"]\n delete by_type[\"png\"]\n delete by_type[\"ttf\"]\n delete by_type[\"pdf\"]\n\n #print each getExtension, collect the total\n total=0\n for (x in by_type) {\n if (by_type[x] > 0) {\n total += by_type[x]\n print (x, by_type[x])\n }\n }\n\n print(\"Total:\", total)\n}\n","subject":"Fix an awk script that doesn't seem to be very portable","message":"Fix an awk script that doesn't seem to be very portable\n","lang":"Awk","license":"mit","repos":"jargv\/dotfiles,jargv\/dotfiles,jargv\/dotfiles"} {"commit":"2422c97e6126bfb3415660d0e5a005002d73bce4","old_file":"common\/process_manifest.awk","new_file":"common\/process_manifest.awk","old_contents":"{ content = $1 ~ \/^(content|skin|locale)$\/ }\ncontent && $NF ~ \/^[a-z]\/ { $NF = \"\/\" name \"\/\" $NF }\ncontent {\n sub(\/^\\.\\.\/, \"\", $NF);\n $NF = \"jar:chrome\/\" name \".jar!\" $NF\n}\n{\n sub(\"^\\\\.\\\\.\/liberator\/\", \"\", $NF)\n print\n}\n\n","new_contents":"{ content = $1 ~ \/^(content|skin|locale)$\/ }\ncontent && $NF ~ \/^[a-z]\/ { $NF = \"\/\" name \"\/\" $NF }\ncontent {\n sub(\/^\\.\\.\/, \"\", $NF);\n $NF = \"jar:chrome\/\" name \".jar!\" $NF\n}\n{\n sub(\"^\\\\.\\\\.\/common\/\", \"\", $NF)\n print\n}\n\n","subject":"Fix the modules path in the xpi chrome.manifests","message":"Fix the modules path in the xpi chrome.manifests\n","lang":"Awk","license":"mit","repos":"moonshadow\/dactyl,5digits\/dactyl,madand\/pentadactyl-pm,5digits\/dactyl,madand\/pentadactyl-pm,airodactyl\/dactyl,derenio\/vimperator-labs,zklinger\/vimperator-labs,5digits\/dactyl,Kjwon15\/dactyl,nathyong\/dactyl,Evidlo\/vimperator-labs,moonshadow\/dactyl,airodactyl\/dactyl,nullren\/vimperator-labs,invl\/dactyl,stemar94\/vimperator-labs,nathyong\/dactyl,invl\/dactyl,Kjwon15\/dactyl,invl\/dactyl,moonshadow\/dactyl,airodactyl\/dactyl,invl\/dactyl,5digits\/dactyl,madand\/pentadactyl-pm,moonshadow\/dactyl,Sheile\/vimperator-labs,mcarton\/vimperator-labs,airodactyl\/airodactyl,paretje\/vimperator-labs,Quicksaver\/vimperator-labs,Kjwon15\/dactyl,derenio\/vimperator-labs,seanmorton\/vimperator-labs,moonshadow\/dactyl,Sheile\/vimperator-labs,Quicksaver\/vimperator-labs,Kjwon15\/dactyl,nathyong\/dactyl,nathyong\/dactyl,seanmorton\/vimperator-labs,paretje\/vimperator-labs,Evidlo\/vimperator-labs,invl\/dactyl,invl\/dactyl,mcarton\/vimperator-labs,nullren\/vimperator-labs,nathyong\/dactyl,airodactyl\/airodactyl,Kjwon15\/dactyl,madand\/pentadactyl-pm,moonshadow\/dactyl,airodactyl\/dactyl,5digits\/dactyl,stemar94\/vimperator-labs,madand\/pentadactyl-pm,madand\/pentadactyl-pm,5digits\/dactyl,Kjwon15\/dactyl,nathyong\/dactyl,airodactyl\/dactyl,zklinger\/vimperator-labs,airodactyl\/dactyl"} {"commit":"c08fde42c507af04f6d4f506cff6379be42ecfe6","old_file":"getAvg.awk","new_file":"getAvg.awk","old_contents":"# Generate MHz_TV_Shows_minutes.csv by processing SHORT_SPREADSHEET to figure\n# average episode length\n#\n\nBEGIN {\n FS = \"\\t\"\n}\n\n\/^Title\/ {\n printf (\"%s\\t%s\\t%s\\t%s\\tAvg Len\\t%s\\t%s\\t%s\\t%s\\t%s\\n\",\n $1,$2,$3,$4,$5,$6,$7,$8,$9)\n}\n\n\/=HYPERLINK\/ {\n dur=$4\n sub (\/h\/,\"\",dur)\n sub (\/m\/,\"\",dur)\n split (dur,fld,\" \")\n eplen = (fld[1]*60+fld[2])\/$3\n printf (\"%s\\t%s\\t%s\\t%s\\t%d\\t%s\\t%s\\t%s\\t%s\\t%s\\n\",\n $1,$2,$3,$4,eplen,$5,$6,$7,$8,$9)\n}\n","new_contents":"# Generate MHz_TV_Shows_minutes.csv by processing SHORT_SPREADSHEET to figure\n# average episode length\n#\n\nBEGIN {\n FS = \"\\t\"\n}\n\n\/^Title\/ {\n printf (\"%s\\t%s\\t%s\\t%s\\tAvg Len\\t%s\\t%s\\t%s\\t%s\\t%s\\n\",\n $1,$2,$3,$4,$5,$6,$7,$8,$9)\n}\n\n\/=HYPERLINK\/ {\n dur=$4\n sub (\/h\/,\"\",dur)\n sub (\/m\/,\"\",dur)\n split (dur,fld,\" \")\n eplen = (fld[1]*60+fld[2])\/$3\n printf (\"%s\\t%s\\t%s\\t%s\\t%d\\t%s\\t%s\\t%s\\t%s\\t%s\\n\",\n $1,$2,$3,$4,eplen,$5,$6,$7,$8,$9)\n}\n\n\/^Non-blank values\/ || \/^Total seasons & episodes\/ { print }\n\n","subject":"Print last two lines in Avg","message":"Print last two lines in Avg\n","lang":"Awk","license":"mit","repos":"Monty\/WhatsStreamingToday,Monty\/WhatsStreamingToday"} {"commit":"6d7701c198590f8d727f038e1ba40b1e57c95ef6","old_file":"generateversionscript.awk","new_file":"generateversionscript.awk","old_contents":"BEGIN {\n\tprint \"V1.0 {\";\n\tprint \" global:\";\n} \n{ \n\t# Remove the CR character in case the sources are mapped from\n\t# a Windows share and contain CRLF line endings\n\tgsub(\/\\r\/,\"\", $0);\n\t\n\t# Skip empty lines and comment lines starting with semicolon\n\tif (NF && !match($0, \/^[:space:]*;\/))\n\t{\n\t\tprint \" \" $0 \";\";\n\t}\n} \nEND {\n\tprint \" local: *;\"\n\tprint \"};\";\n}\n","new_contents":"BEGIN {\n\tprint \"V1.0 {\";\n\tprint \" global:\";\n} \n{ \n\t# Remove the CR character in case the sources are mapped from\n\t# a Windows share and contain CRLF line endings\n\tgsub(\/\\r\/,\"\", $0);\n\t\n\t# Skip empty lines and comment lines starting with semicolon\n\tif (NF && !match($0, \/^[ \\t]*;\/))\n\t{\n\t\tprint \" \" $0 \";\";\n\t}\n} \nEND {\n\tprint \" local: *;\"\n\tprint \"};\";\n}\n","subject":"Handle mscorwks_unixexports.src with better regexp operator for compatibility","message":"Handle mscorwks_unixexports.src with better regexp operator for compatibility\n\nver3:\nAccording to the gawk manual, The '\\S' operator (as shorthand for '[^[:space:]]')\nmatches any character that is not whitespace. However, '[ \\t]' is better than\n'\\S' for Mac OSX.\n(source - https:\/\/www.gnu.org\/software\/gawk\/manual\/html_node\/GNU-Regexp-Operators.html )\n\nver2:\nWith ver1, the build-break is caused by different awk versions (by @jkotas).\n(Revert PR - https:\/\/github.com\/dotnet\/coreclr\/pull\/4005)\nTo resolve the limitation of the ver1, @janvorli proposed that the\n\\S expression is better than [:space:] for the most compatible solution.\n\nThere are a lot of different AWK software (e.g. awk, gawk, mawk, nawk, etc)\nand versions among the popular Linux distributions. This patch is a simply\nway to handle 'mscorwks_unixexports.src' file with \\S operator for more\ncompatibility amon the different awk versions.\n\nver1:\nIt's must be modified by gawk implementation that check it exactly\nas a plain character (e.g., space, alnum) within the bracket expression\nat .\/coreclr\/generateversionscript.awk. The [[:space:]] is more appropriate than\nthe [:space:]]. (PR - https:\/\/github.com\/dotnet\/coreclr\/pull\/3943)\n\nSigned-off-by: Geunsik Lim \nSigned-off-by: MyungJoo Ham <84146178f7c201fa3079bfc93fccba71d81dffe3@samsung.com>\nSigned-off-by: Prajwal A N \n","lang":"Awk","license":"mit","repos":"Dmitry-Me\/coreclr,jhendrixMSFT\/coreclr,LLITCHEV\/coreclr,pgavlin\/coreclr,mmitche\/coreclr,naamunds\/coreclr,James-Ko\/coreclr,alexperovich\/coreclr,jhendrixMSFT\/coreclr,naamunds\/coreclr,alexperovich\/coreclr,ramarag\/coreclr,gkhanna79\/coreclr,bartdesmet\/coreclr,martinwoodward\/coreclr,botaberg\/coreclr,wtgodbe\/coreclr,krytarowski\/coreclr,ruben-ayrapetyan\/coreclr,rartemev\/coreclr,ruben-ayrapetyan\/coreclr,sejongoh\/coreclr,schellap\/coreclr,wateret\/coreclr,mmitche\/coreclr,tijoytom\/coreclr,yizhang82\/coreclr,botaberg\/coreclr,cshung\/coreclr,ZhichengZhu\/coreclr,sagood\/coreclr,botaberg\/coreclr,krk\/coreclr,sejongoh\/coreclr,cshung\/coreclr,jhendrixMSFT\/coreclr,sagood\/coreclr,russellhadley\/coreclr,cydhaselton\/coreclr,mskvortsov\/coreclr,AlexGhiondea\/coreclr,ramarag\/coreclr,JosephTremoulet\/coreclr,vinnyrom\/coreclr,yizhang82\/coreclr,hseok-oh\/coreclr,pgavlin\/coreclr,vinnyrom\/coreclr,LLITCHEV\/coreclr,alexperovich\/coreclr,KrzysztofCwalina\/coreclr,qiudesong\/coreclr,ramarag\/coreclr,Dmitry-Me\/coreclr,ramarag\/coreclr,wtgodbe\/coreclr,wtgodbe\/coreclr,shahid-pk\/coreclr,LLITCHEV\/coreclr,martinwoodward\/coreclr,manu-silicon\/coreclr,bartonjs\/coreclr,KrzysztofCwalina\/coreclr,dasMulli\/coreclr,botaberg\/coreclr,manu-silicon\/coreclr,poizan42\/coreclr,kyulee1\/coreclr,neurospeech\/coreclr,yizhang82\/coreclr,ruben-ayrapetyan\/coreclr,krk\/coreclr,krytarowski\/coreclr,poizan42\/coreclr,wateret\/coreclr,SlavaRa\/coreclr,kyulee1\/coreclr,botaberg\/coreclr,mskvortsov\/coreclr,schellap\/coreclr,wtgodbe\/coreclr,poizan42\/coreclr,pgavlin\/coreclr,YongseopKim\/coreclr,roncain\/coreclr,martinwoodward\/coreclr,shahid-pk\/coreclr,russellhadley\/coreclr,ramarag\/coreclr,parjong\/coreclr,jhendrixMSFT\/coreclr,dpodder\/coreclr,SlavaRa\/coreclr,AlexGhiondea\/coreclr,ragmani\/coreclr,neurospeech\/coreclr,russellhadley\/coreclr,schellap\/coreclr,pgavlin\/coreclr,alexperovich\/coreclr,cydhaselton\/coreclr,dasMulli\/coreclr,jamesqo\/coreclr,LLITCHEV\/coreclr,Dmitry-Me\/coreclr,roncain\/coreclr,roncain\/coreclr,shahid-pk\/coreclr,mmitche\/coreclr,cshung\/coreclr,SlavaRa\/coreclr,rartemev\/coreclr,andschwa\/coreclr,andschwa\/coreclr,alexperovich\/coreclr,neurospeech\/coreclr,jhendrixMSFT\/coreclr,cshung\/coreclr,shahid-pk\/coreclr,yeaicc\/coreclr,roncain\/coreclr,cshung\/coreclr,bartdesmet\/coreclr,naamunds\/coreclr,cydhaselton\/coreclr,cmckinsey\/coreclr,cmckinsey\/coreclr,neurospeech\/coreclr,andschwa\/coreclr,naamunds\/coreclr,JonHanna\/coreclr,ZhichengZhu\/coreclr,JosephTremoulet\/coreclr,YongseopKim\/coreclr,krk\/coreclr,sagood\/coreclr,naamunds\/coreclr,qiudesong\/coreclr,dpodder\/coreclr,qiudesong\/coreclr,bartonjs\/coreclr,schellap\/coreclr,bartdesmet\/coreclr,mmitche\/coreclr,JosephTremoulet\/coreclr,botaberg\/coreclr,rartemev\/coreclr,neurospeech\/coreclr,wateret\/coreclr,wtgodbe\/coreclr,sjsinju\/coreclr,AlexGhiondea\/coreclr,schellap\/coreclr,hseok-oh\/coreclr,shahid-pk\/coreclr,sjsinju\/coreclr,mskvortsov\/coreclr,ZhichengZhu\/coreclr,naamunds\/coreclr,hseok-oh\/coreclr,YongseopKim\/coreclr,wateret\/coreclr,Dmitry-Me\/coreclr,krytarowski\/coreclr,kyulee1\/coreclr,mskvortsov\/coreclr,pgavlin\/coreclr,tijoytom\/coreclr,cmckinsey\/coreclr,jhendrixMSFT\/coreclr,krytarowski\/coreclr,josteink\/coreclr,dasMulli\/coreclr,James-Ko\/coreclr,ZhichengZhu\/coreclr,JonHanna\/coreclr,josteink\/coreclr,manu-silicon\/coreclr,gkhanna79\/coreclr,Dmitry-Me\/coreclr,schellap\/coreclr,parjong\/coreclr,cmckinsey\/coreclr,martinwoodward\/coreclr,jamesqo\/coreclr,sjsinju\/coreclr,jamesqo\/coreclr,tijoytom\/coreclr,JosephTremoulet\/coreclr,KrzysztofCwalina\/coreclr,sejongoh\/coreclr,jhendrixMSFT\/coreclr,shahid-pk\/coreclr,dasMulli\/coreclr,parjong\/coreclr,tijoytom\/coreclr,manu-silicon\/coreclr,JonHanna\/coreclr,James-Ko\/coreclr,qiudesong\/coreclr,mmitche\/coreclr,bartdesmet\/coreclr,martinwoodward\/coreclr,yizhang82\/coreclr,gkhanna79\/coreclr,JonHanna\/coreclr,bartonjs\/coreclr,sejongoh\/coreclr,mskvortsov\/coreclr,cydhaselton\/coreclr,russellhadley\/coreclr,bartonjs\/coreclr,andschwa\/coreclr,dasMulli\/coreclr,neurospeech\/coreclr,martinwoodward\/coreclr,wtgodbe\/coreclr,andschwa\/coreclr,manu-silicon\/coreclr,mskvortsov\/coreclr,wateret\/coreclr,manu-silicon\/coreclr,krytarowski\/coreclr,russellhadley\/coreclr,dpodder\/coreclr,LLITCHEV\/coreclr,cshung\/coreclr,gkhanna79\/coreclr,pgavlin\/coreclr,ragmani\/coreclr,roncain\/coreclr,parjong\/coreclr,schellap\/coreclr,YongseopKim\/coreclr,ragmani\/coreclr,yeaicc\/coreclr,josteink\/coreclr,cmckinsey\/coreclr,dpodder\/coreclr,hseok-oh\/coreclr,vinnyrom\/coreclr,manu-silicon\/coreclr,KrzysztofCwalina\/coreclr,jamesqo\/coreclr,krk\/coreclr,ramarag\/coreclr,sejongoh\/coreclr,cmckinsey\/coreclr,dpodder\/coreclr,cydhaselton\/coreclr,roncain\/coreclr,bartonjs\/coreclr,gkhanna79\/coreclr,poizan42\/coreclr,James-Ko\/coreclr,sagood\/coreclr,sejongoh\/coreclr,krk\/coreclr,cmckinsey\/coreclr,ZhichengZhu\/coreclr,krk\/coreclr,dpodder\/coreclr,rartemev\/coreclr,YongseopKim\/coreclr,andschwa\/coreclr,rartemev\/coreclr,LLITCHEV\/coreclr,poizan42\/coreclr,James-Ko\/coreclr,Dmitry-Me\/coreclr,yeaicc\/coreclr,KrzysztofCwalina\/coreclr,hseok-oh\/coreclr,yizhang82\/coreclr,yeaicc\/coreclr,josteink\/coreclr,sagood\/coreclr,bartdesmet\/coreclr,AlexGhiondea\/coreclr,yizhang82\/coreclr,LLITCHEV\/coreclr,roncain\/coreclr,KrzysztofCwalina\/coreclr,Dmitry-Me\/coreclr,cydhaselton\/coreclr,bartdesmet\/coreclr,gkhanna79\/coreclr,AlexGhiondea\/coreclr,mmitche\/coreclr,bartdesmet\/coreclr,josteink\/coreclr,KrzysztofCwalina\/coreclr,AlexGhiondea\/coreclr,ZhichengZhu\/coreclr,vinnyrom\/coreclr,tijoytom\/coreclr,ragmani\/coreclr,dasMulli\/coreclr,jamesqo\/coreclr,andschwa\/coreclr,yeaicc\/coreclr,bartonjs\/coreclr,yeaicc\/coreclr,yeaicc\/coreclr,parjong\/coreclr,ramarag\/coreclr,hseok-oh\/coreclr,vinnyrom\/coreclr,SlavaRa\/coreclr,parjong\/coreclr,shahid-pk\/coreclr,alexperovich\/coreclr,sjsinju\/coreclr,krytarowski\/coreclr,SlavaRa\/coreclr,sejongoh\/coreclr,martinwoodward\/coreclr,dasMulli\/coreclr,kyulee1\/coreclr,poizan42\/coreclr,wateret\/coreclr,JonHanna\/coreclr,tijoytom\/coreclr,JonHanna\/coreclr,bartonjs\/coreclr,SlavaRa\/coreclr,qiudesong\/coreclr,sagood\/coreclr,ragmani\/coreclr,ragmani\/coreclr,ruben-ayrapetyan\/coreclr,ZhichengZhu\/coreclr,ruben-ayrapetyan\/coreclr,YongseopKim\/coreclr,kyulee1\/coreclr,vinnyrom\/coreclr,josteink\/coreclr,rartemev\/coreclr,ruben-ayrapetyan\/coreclr,James-Ko\/coreclr,vinnyrom\/coreclr,JosephTremoulet\/coreclr,sjsinju\/coreclr,qiudesong\/coreclr,jamesqo\/coreclr,josteink\/coreclr,russellhadley\/coreclr,naamunds\/coreclr,kyulee1\/coreclr,JosephTremoulet\/coreclr,sjsinju\/coreclr"} {"commit":"ff1695e8ee05a0a584e451f076ecec31b007487e","old_file":"mk\/script\/nm2c.awk","new_file":"mk\/script\/nm2c.awk","old_contents":"#\n# Converts the output of 'nm' into a C source containing an array of symbols\n# that correspond to functions (t and T in terms of 'nm').\n#\n# Usage:\n# nm -n image | awk -f nm2c.awk\n#\n# Date: Aug 28, 2012\n# Author: Eldar Abusalimov\n#\n\n\nBEGIN {\n\tprint \"\/* Auto-generated file. Do not edit. *\/\";\n\tprint \"\";\n\tprint \"#include \";\n\tprint \"#include \";\n\tprint \"\";\n\tprint \"const struct symbol __symbol_table[] = {\";\n}\n\n\/^[0-9a-fA-F]* [tT]\/ {\n\tprintf \"\\t{ (void *) 0x%s, \\\"%s\\\" },\\n\", $1, $3;\n}\n\nEND {\n\tprint \"};\";\n\tprint \"const size_t __symbol_table_size =\";\n\tprint \"\\tsizeof(__symbol_table) \/ sizeof(__symbol_table[0]);\";\n\tprint \"\";\n}\n\n","new_contents":"#\n# Converts the output of 'nm' into a C source containing an array of symbols\n# that correspond to functions (t and T in terms of 'nm').\n#\n# Usage:\n# nm -n image | awk -f nm2c.awk\n#\n# Date: Aug 28, 2012\n# Author: Eldar Abusalimov\n#\n\n\nBEGIN {\n\tprint \"\/* Auto-generated file. Do not edit. *\/\";\n\tprint \"\";\n\tprint \"#include \";\n\tprint \"#include \";\n\tprint \"\";\n\tprint \"const struct symbol __symbol_table[] = {\";\n}\n\n\/^[0-9a-fA-F]* [tT]\/ {\n\tsplit($0,a,\" [tT] \");\n\tprintf \"\\t{ (void *) 0x%s, \\\"%s\\\" },\\n\", $1, a[2];\n}\n\nEND {\n\tprint \"};\";\n\tprint \"const size_t __symbol_table_size =\";\n\tprint \"\\tsizeof(__symbol_table) \/ sizeof(__symbol_table[0]);\";\n\tprint \"\";\n}\n\n","subject":"Fix for symbol table demangled names with spaces","message":"c++: Fix for symbol table demangled names with spaces","lang":"Awk","license":"bsd-2-clause","repos":"gzoom13\/embox,abusalimov\/embox,embox\/embox,Kefir0192\/embox,Kefir0192\/embox,abusalimov\/embox,Kakadu\/embox,vrxfile\/embox-trik,abusalimov\/embox,Kefir0192\/embox,mike2390\/embox,mike2390\/embox,embox\/embox,mike2390\/embox,mike2390\/embox,gzoom13\/embox,vrxfile\/embox-trik,Kefir0192\/embox,Kakadu\/embox,Kakadu\/embox,abusalimov\/embox,Kakadu\/embox,vrxfile\/embox-trik,vrxfile\/embox-trik,gzoom13\/embox,Kefir0192\/embox,gzoom13\/embox,Kakadu\/embox,gzoom13\/embox,Kakadu\/embox,abusalimov\/embox,gzoom13\/embox,gzoom13\/embox,Kefir0192\/embox,Kefir0192\/embox,embox\/embox,embox\/embox,embox\/embox,vrxfile\/embox-trik,embox\/embox,vrxfile\/embox-trik,Kakadu\/embox,abusalimov\/embox,mike2390\/embox,mike2390\/embox,mike2390\/embox,vrxfile\/embox-trik"} {"commit":"c9be6e5fdea9ffb5ad3572a1d0e778ae8176ea8f","old_file":"caldaily.awk","new_file":"caldaily.awk","old_contents":"BEGIN {\n FS=\"\\n\"\n OFS=\"\"\n ORS=\"\\n\"\n print \"#!\/bin\/sh\"\n print \" \"\n}\n# blank lines\n\/^$\/ { next }\n# record header\n$1 ~ \/^\\*\\*\\*\\*\/ {\n next\n}\n# summary field\n$1 ~ \/^[ ]*summary\\:\/ {\n gsub(\/\\r\/,\"\");\n idx = match($1, \/summary\\:(.*)\/)\n print \"SUMMARY=\\\"\" substr($1, idx + 9) \"\\\"\"\n next\n}\n# startdate field\n$1 ~ \/^[ ]*startdate\\: \/ {\n match($1, \/startdate\\: \/)\n print \"STARTDATE=\\\"`date -d '\" substr($1, RSTART + RLENGTH) \"-000' '+%a %e %b %R'`\\\"\"\n next\n}\n# vcalendar start tag\n$1 ~ \/^[ ]*calendardata\\: \/ {\n gsub(\/\\r\/,\"\");\n match($1, \/calendardata\\: \/)\n print \"echo \\\"\" substr($1, RSTART + RLENGTH) \"\\\" >event.ics\"\n next\n}\n# vcalendar end tag\n$1 ~ \/^END\\:VCALENDAR\/ {\n gsub(\/\\r\/,\"\");\n print \"echo \\\"\" $1 \"\\\" >>event.ics\"\n print \"mpack -s \\\"$SUMMARY - $STARTDATE\\\" event.ics $1\"\n print \"\"\n next\n}\n# vcalendar body\n{\n gsub(\/\\r\/,\"\");\n print \"echo \\\"\" $0 \"\\\" >> event.ics\"\n}\n","new_contents":"BEGIN {\n FS=\"\\n\";\n OFS=\"\";\n ORS=\"\\n\";\n print \"#!\/bin\/sh\";\n print \"#\";\n}\n# blank lines\n\/^$\/ {\n next;\n}\n# record header\n$1 ~ \/^\\*\\*\\*\\*\/ {\n next;\n}\n# summary field\n$1 ~ \/^[ ]*summary\\:\/ {\n gsub(\/\\r\/,\"\");\n idx = match($1, \/summary\\:(.*)\/);\n print \"SUMMARY=\\\"\" substr($1, idx + 9) \"\\\"\";\n next;\n}\n# startdate field\n$1 ~ \/^[ ]*startdate\\: \/ {\n match($1, \/startdate\\: \/);\n print \"STARTDATE=\\\"`date -d '\" substr($1, RSTART + RLENGTH) \"-000' '+%a %e %b %R'`\\\"\";\n next;\n}\n# vcalendar start tag\n$1 ~ \/^[ ]*calendardata\\: \/ {\n gsub(\/\\r\/,\"\");\n match($1, \/calendardata\\: \/);\n print \"ICS=$(mktemp --suffix=.ics)\";\n print \"cat > \\\"${ICS}\\\" < 0 && len >= N) next;\n\n for (i = 1; i <= len - 1; i++) {\n for (j = i + 1; j <= len; j++) {\n print words[i], words[j], ORS, words[j], words[i] | \"sort --parallel=$(nproc) -us\";\n }\n }\n}\n","new_contents":"#!\/usr\/bin\/awk -f\nBEGIN {\n FS = \"\\t\";\n OFS = \"\";\n}\n{\n len = split($3, words, \", \");\n\n if (length(N) > 0 && len >= N) next;\n\n for (i = 1; i <= len - 1; i++) {\n for (j = i + 1; j <= len; j++) {\n print words[i], FS, words[j], ORS, words[j], FS, words[i] | \"sort --parallel=$(nproc) -S1G -us\";\n }\n }\n}\n","subject":"Fix the pair generation and also speed up the sorting","message":"Fix the pair generation and also speed up the sorting\n","lang":"Awk","license":"mit","repos":"dustalov\/watset,dustalov\/watset"} {"commit":"c8c7573342d2576a1a1a00e8960eef5bbb1904df","old_file":"recipes-core\/systemd\/systemd-units\/candump.awk","new_file":"recipes-core\/systemd\/systemd-units\/candump.awk","old_contents":"{\n if (1==NR)\n {\n startTimestamp = substr($1, 2, length($1) - 2)\n printf(\";$FILEVERSION=1.3\\n\")\n printf(\";$STARTTIME=%u.%u\\n\", mktime(strftime(\"%Y %m %d 0 0 0\", startTimestamp)) \/ 86400 + 25569, \\\n 10000000000 \/ 86400 * (mktime(strftime(\"%Y %m %d %H %M %S\", startTimestamp)) - mktime(strftime(\"%Y %m %d 0 0 0\", startTimestamp))))\n }\n printf(\"%u) %.3f 1 Rx %s - %s\", NR, (substr($1, 2, length($1) - 2) - startTimestamp) * 1000, $3, substr($4, 2, length($4) - 2))\n if (5<=NF)\n {\n for(i=5;i<=NF;i++)\n {\n printf \" \"$i\n }\n }\n printf \"\\n\"\n}\n","new_contents":"{\n if (1==NR)\n {\n startTimestamp = substr($1, 2, length($1) - 2)\n printf(\";$FILEVERSION=1.3\\n\")\n printf(\";$STARTTIME=%u.%u\\n\", mktime(strftime(\"%Y %m %d 0 0 0\", startTimestamp)) \/ 86400 + 25569, \\\n 10000000000 \/ 86400 * (mktime(strftime(\"%Y %m %d %H %M %S\", startTimestamp)) - mktime(strftime(\"%Y %m %d 0 0 0\", startTimestamp))))\n currentTimeOffset = 0.0\n }\n else\n {\n previousTimeOffset = currentTimeOffset\n currentTimestamp = substr($1, 2, length($1) - 2)\n currentTimeOffset = currentTimestamp - startTimestamp\n if (currentTimeOffset < 0)\n {\n startTimestamp = currentTimestamp + currentTimeOffset\n currentTimeOffset = previousTimeOffset\n }\n }\n printf(\"%u) %.3f 1 Rx %s - %s\", NR, currentTimeOffset * 1000, $3, substr($4, 2, length($4) - 2))\n if (5<=NF)\n {\n for(i=5;i<=NF;i++)\n {\n printf \" \"$i\n }\n }\n printf \"\\n\"\n}\n","subject":"Handle cases where system time is adjusted backwards (e.g. by NTP).","message":"Handle cases where system time is adjusted backwards (e.g. by NTP).\n","lang":"Awk","license":"mit","repos":"tramseyer\/meta-medusa-dist,tramseyer\/meta-medusa-dist,tramseyer\/meta-medusa-dist,tramseyer\/meta-medusa-dist"} {"commit":"5aebe46edd0d6a35fb6ef94f6b7720e6dc19442a","old_file":"GLib-2.0.awk","new_file":"GLib-2.0.awk","old_contents":"#!\/usr\/bin\/awk\n#\n# Patch the generated wrapper Swift code to handle special cases\n#\nBEGIN { etpInit = 0 }\n\/public convenience init.T: ErrorTypeProtocol.\/ {\n\tetpInit = 1\n\tprint \" \/\/\/ Convenience copy constructor, creating a unique copy\"\n\tprint \" \/\/\/ of the passed in Error. Needs to be freed using free()\"\n\tprint \" \/\/\/ (automatically done in deinit if you use ErrorType).\"\n}\n\/self.init.other.ptr.\/ {\n\tif (etpInit) {\n\t\tprint \"\tself.init(g_error_copy(other.ptr))\"\n\t\tetpInit = 0\n\t\tnext\n\t}\n}\n\/no reference counting for GError, cannot ref\/ { next }\n\/no reference counting for GError, cannot unref\/ {\n\tprint \"\t g_error_free(error_ptr)\"\n\tnext\n}\n\/ -> GIConv {\/, \/^}\/ {\n\tsub(\/GIConv {\/,\"GIConv? {\")\n\tsub(\/return rv\/,\"return rv == unsafeBitCast(-1, to: GIConv.self) ? nil : rv\")\n}\n\/\/ { print }\n","new_contents":"#!\/usr\/bin\/awk\n#\n# Patch the generated wrapper Swift code to handle special cases\n#\nBEGIN { etpInit = 0 ; vaptrptr = 0 }\n\/public convenience init.T: ErrorTypeProtocol.\/ {\n\tetpInit = 1\n\tprint \" \/\/\/ Convenience copy constructor, creating a unique copy\"\n\tprint \" \/\/\/ of the passed in Error. Needs to be freed using free()\"\n\tprint \" \/\/\/ (automatically done in deinit if you use ErrorType).\"\n}\n\/self.init.other.ptr.\/ {\n\tif (etpInit) {\n\t\tprint \"\tself.init(g_error_copy(other.ptr))\"\n\t\tetpInit = 0\n\t\tnext\n\t}\n}\n\/no reference counting for GError, cannot ref\/ { next }\n\/no reference counting for GError, cannot unref\/ {\n\tprint \"\t g_error_free(error_ptr)\"\n\tnext\n}\n\/ -> GIConv {\/, \/^}\/ {\n\tsub(\/GIConv {\/,\"GIConv? {\")\n\tsub(\/return rv\/,\"return rv == unsafeBitCast(-1, to: GIConv.self) ? nil : rv\")\n}\n\/UnsafeMutablePointer.CVaListPointer\/ {\n\tvaptrptr = 1\n\tprint \"#if !os(Linux)\"\n}\n\/^$\/ {\n\tif (vaptrptr) {\n\t\tprint \"#endif\"\n\t\tvaptrptr = 0\n\t}\n}\n\/\\\/\\\/\\\/\/ {\n\tif (vaptrptr) {\n\t\tprint \"#endif\"\n\t\tvaptrptr = 0\n\t}\n}\n\/\/ { print }\n","subject":"Mark CVaListPointer array generators as unavailable on Linux","message":"Mark CVaListPointer array generators as unavailable on Linux\n","lang":"Awk","license":"bsd-2-clause","repos":"rhx\/SwiftGLib,rhx\/SwiftGLib,rhx\/SwiftGLib"} {"commit":"11e41c0eef91d9b8fdbd8fb25795be915b29414f","old_file":"usr.sbin\/ndc\/ndcedit.awk","new_file":"usr.sbin\/ndc\/ndcedit.awk","old_contents":"# $Id: ndcedit.awk,v 1.4 1997\/02\/22 16:08:19 peter Exp $\nNR == 3 {\n\tprint \"#\"\n\tprint \"# This file is generated automatically, do not edit it here!\"\n\tprint \"# Please change src\/usr.sbin\/ndc\/ndcedit.awk instead\"\n\tprint \"#\"\n\tprint \"\"\n\n\tprint \"# If there is a global system configuration file, suck it in.\"\n\tprint \"if [ -f \/etc\/rc.conf ]; then\"\n\tprint \"\\t. \/etc\/rc.conf\"\n\tprint \"fi\\n\"\n}\n{\n\tif ($1 == \"named\") {\n\t\tprintf \"\\t\\t# $namedflags is imported from \/etc\/rc.conf\\n\"\n\t\tprintf \"\\t\\tif [ \\\"X${named_flags}\\\" != X\\\"NO\\\" ]; then\\n\"\n\t\tprintf \"\\t\\t\\tnamed ${named_flags} && {\\n\"\n\t\tgetline\n\t\tprintf \"\\t%s\\n\", $0\n\t\tgetline\n\t\tprintf \"\\t%s\\n\", $0\n\t\tgetline\n\t\tprintf \"\\t%s\\n\", $0\n\t\tprintf \"\\t\\tfi\\n\"\n\t} else {\n\t if (\/PATH=\/) {\n\t\t\tgsub(\":\/usr\/ucb:\", \":\", $0);\n\t\t \tif (!\/export\/) {\n\t\t\t\t$0=$0\"\\nexport PATH\";\n\t\t\t}\n\t\t} \n\t\tprint;\n\t}\n}\n","new_contents":"# $Id: ndcedit.awk,v 1.5 1997\/05\/27 07:19:57 jkh Exp $\nNR == 3 {\n\tprint \"#\"\n\tprint \"# This file is generated automatically, do not edit it here!\"\n\tprint \"# Please change src\/usr.sbin\/ndc\/ndcedit.awk instead\"\n\tprint \"#\"\n\tprint \"\"\n\n\tprint \"# If there is a global system configuration file, suck it in.\"\n\tprint \"if [ -f \/etc\/rc.conf ]; then\"\n\tprint \"\\t. \/etc\/rc.conf\"\n\tprint \"fi\\n\"\n}\n{\n\tif ($1 == \"named\") {\n\t\tprintf \"\\t\\t# $named_flags is imported from \/etc\/rc.conf\\n\"\n\t\tprintf \"\\t\\tif [ \\\"X${named_enable}\\\" = X\\\"YES\\\" ]; then\\n\"\n\t\tprintf \"\\t\\t\\tnamed ${named_flags} && {\\n\"\n\t\tgetline\n\t\tprintf \"\\t%s\\n\", $0\n\t\tgetline\n\t\tprintf \"\\t%s\\n\", $0\n\t\tgetline\n\t\tprintf \"\\t%s\\n\", $0\n\t\tprintf \"\\t\\tfi\\n\"\n\t} else {\n\t if (\/PATH=\/) {\n\t\t\tgsub(\":\/usr\/ucb:\", \":\", $0);\n\t\t \tif (!\/export\/) {\n\t\t\t\t$0=$0\"\\nexport PATH\";\n\t\t\t}\n\t\t} \n\t\tprint;\n\t}\n}\n","subject":"Check named_enable rather than just named_flags. PR: 3893 (sort of)","message":"Check named_enable rather than just named_flags.\nPR:\t\t3893 (sort of)\n","lang":"Awk","license":"bsd-3-clause","repos":"jrobhoward\/SCADAbase,jrobhoward\/SCADAbase,jrobhoward\/SCADAbase,jrobhoward\/SCADAbase,jrobhoward\/SCADAbase,jrobhoward\/SCADAbase,jrobhoward\/SCADAbase,jrobhoward\/SCADAbase,jrobhoward\/SCADAbase,jrobhoward\/SCADAbase,jrobhoward\/SCADAbase"} {"commit":"c0ee463cc53b2bfa9c7b3f45e1b2dca4a45df93a","old_file":"buildBBoxScrapersFrom-webscraper.awk","new_file":"buildBBoxScrapersFrom-webscraper.awk","old_contents":"BEGIN {\n FS = \"\\\"\"\n}\n\n\/\\\/us\\\/movie\\\/\/ {\n numMovies += 1\n shortURL = $6\n printf (\"%s \\\"https:\/\/www.britbox.com%s\\\"\", trailingComma, shortURL) >> EPISODES_JSON_FILE\n trailingComma = \",\\n\"\n}\n\n\/\\\/us\\\/show\\\/\/ {\n numShows += 1\n shortURL = $6\n printf (\"%s \\\"https:\/\/www.britbox.com%s\\\"\", trailingComma, shortURL) >> EPISODES_JSON_FILE\n printf (\"%s \\\"https:\/\/www.britbox.com%s\\\"\", trailingComma, shortURL) >> SEASONS_JSON_FILE\n trailingComma = \",\\n\"\n}\n\nEND {\n print \"\" >> EPISODES_JSON_FILE\n print \"\" >> SEASONS_JSON_FILE\n print \"==> Found \" numMovies \" movies\"\n print \"==> Found \" numShows \" shows\"\n}\n","new_contents":"BEGIN {\n FS = \"\\\"\"\n}\n\n\/\\\/us\\\/movie\\\/\/ {\n numMovies += 1\n shortURL = $6\n printf (\"%s \\\"https:\/\/www.britbox.com%s\\\"\", trailingEpisodesComma, shortURL) \\\n >> EPISODES_JSON_FILE\n trailingEpisodesComma = \",\\n\"\n}\n\n\/\\\/us\\\/show\\\/\/ {\n numShows += 1\n shortURL = $6\n printf (\"%s \\\"https:\/\/www.britbox.com%s\\\"\", trailingEpisodesComma, shortURL) \\\n >> EPISODES_JSON_FILE\n trailingEpisodesComma = \",\\n\"\n printf (\"%s \\\"https:\/\/www.britbox.com%s\\\"\", trailingSeasonsComma, shortURL) \\\n >> SEASONS_JSON_FILE\n trailingSeasonsComma = \",\\n\"\n}\n\nEND {\n print \"\" >> EPISODES_JSON_FILE\n print \"\" >> SEASONS_JSON_FILE\n print \"==> Found \" numMovies \" movies\"\n print \"==> Found \" numShows \" shows\"\n}\n","subject":"Fix extra comma in json file","message":"Fix extra comma in json file\n","lang":"Awk","license":"mit","repos":"Monty\/WhatsStreamingToday,Monty\/WhatsStreamingToday"} {"commit":"19d407a3e9c3de6b541a25b577bcbeb5a7f5ce28","old_file":"cpu\/kinetis\/dist\/generate-cpu-files\/generate-header-includes.awk","new_file":"cpu\/kinetis\/dist\/generate-cpu-files\/generate-header-includes.awk","old_contents":"","new_contents":"# Usage: awk -f vendor\/MKxxxx.h vendor\/MKxxyy.h vendor\/MKzzz.h ...\n\/Processor[s]?:\/ {\n i=0;\n if (FNR == NR) {\n printf \"#if\";\n } else {\n printf \"#elif\";\n }\n while(match($0, \/MK.*\/)) {\n if (i>0) {\n printf \" || \\\\\\n \";\n }\n printf \" defined(CPU_MODEL_%s)\", substr($0, RSTART, RLENGTH);\n getline;\n i++;\n }\n printf(\"\\n#include \\\"%s\\\"\\n\", FILENAME);\n nextfile;\n}\nEND {\n print \"#endif\"\n}\n","subject":"Add script for generating vendor header include lines","message":"kinetis: Add script for generating vendor header include lines\n","lang":"Awk","license":"lgpl-2.1","repos":"adrianghc\/RIOT,ks156\/RIOT,rfuentess\/RIOT,authmillenon\/RIOT,avmelnikoff\/RIOT,miri64\/RIOT,OTAkeys\/RIOT,LudwigKnuepfer\/RIOT,roberthartung\/RIOT,Josar\/RIOT,RIOT-OS\/RIOT,biboc\/RIOT,smlng\/RIOT,toonst\/RIOT,gebart\/RIOT,mfrey\/RIOT,ant9000\/RIOT,LudwigOrtmann\/RIOT,yogo1212\/RIOT,LudwigKnuepfer\/RIOT,adrianghc\/RIOT,kbumsik\/RIOT,LudwigKnuepfer\/RIOT,mtausig\/RIOT,x3ro\/RIOT,aeneby\/RIOT,kbumsik\/RIOT,basilfx\/RIOT,immesys\/RiSyn,biboc\/RIOT,kYc0o\/RIOT,avmelnikoff\/RIOT,jasonatran\/RIOT,x3ro\/RIOT,mfrey\/RIOT,OTAkeys\/RIOT,rfuentess\/RIOT,neiljay\/RIOT,josephnoir\/RIOT,Josar\/RIOT,cladmi\/RIOT,jasonatran\/RIOT,lazytech-org\/RIOT,mtausig\/RIOT,basilfx\/RIOT,kbumsik\/RIOT,lazytech-org\/RIOT,roberthartung\/RIOT,neiljay\/RIOT,neiljay\/RIOT,RIOT-OS\/RIOT,ks156\/RIOT,immesys\/RiSyn,Josar\/RIOT,miri64\/RIOT,x3ro\/RIOT,Josar\/RIOT,neiljay\/RIOT,jasonatran\/RIOT,yogo1212\/RIOT,gebart\/RIOT,basilfx\/RIOT,aeneby\/RIOT,roberthartung\/RIOT,OTAkeys\/RIOT,A-Paul\/RIOT,LudwigOrtmann\/RIOT,mtausig\/RIOT,authmillenon\/RIOT,kaspar030\/RIOT,aeneby\/RIOT,mfrey\/RIOT,toonst\/RIOT,OlegHahm\/RIOT,toonst\/RIOT,immesys\/RiSyn,immesys\/RiSyn,neiljay\/RIOT,avmelnikoff\/RIOT,miri64\/RIOT,miri64\/RIOT,lazytech-org\/RIOT,BytesGalore\/RIOT,A-Paul\/RIOT,gebart\/RIOT,aeneby\/RIOT,yogo1212\/RIOT,biboc\/RIOT,LudwigKnuepfer\/RIOT,LudwigOrtmann\/RIOT,immesys\/RiSyn,kaspar030\/RIOT,BytesGalore\/RIOT,lazytech-org\/RIOT,jasonatran\/RIOT,OlegHahm\/RIOT,cladmi\/RIOT,smlng\/RIOT,OTAkeys\/RIOT,BytesGalore\/RIOT,kbumsik\/RIOT,toonst\/RIOT,Josar\/RIOT,josephnoir\/RIOT,yogo1212\/RIOT,kbumsik\/RIOT,basilfx\/RIOT,roberthartung\/RIOT,kaspar030\/RIOT,kaspar030\/RIOT,roberthartung\/RIOT,adrianghc\/RIOT,OlegHahm\/RIOT,smlng\/RIOT,avmelnikoff\/RIOT,RIOT-OS\/RIOT,ant9000\/RIOT,gebart\/RIOT,josephnoir\/RIOT,cladmi\/RIOT,A-Paul\/RIOT,biboc\/RIOT,mfrey\/RIOT,kYc0o\/RIOT,ks156\/RIOT,authmillenon\/RIOT,ks156\/RIOT,RIOT-OS\/RIOT,smlng\/RIOT,biboc\/RIOT,authmillenon\/RIOT,OlegHahm\/RIOT,mfrey\/RIOT,A-Paul\/RIOT,avmelnikoff\/RIOT,basilfx\/RIOT,mtausig\/RIOT,ks156\/RIOT,immesys\/RiSyn,toonst\/RIOT,kYc0o\/RIOT,BytesGalore\/RIOT,LudwigKnuepfer\/RIOT,ant9000\/RIOT,jasonatran\/RIOT,authmillenon\/RIOT,yogo1212\/RIOT,cladmi\/RIOT,OlegHahm\/RIOT,ant9000\/RIOT,adrianghc\/RIOT,aeneby\/RIOT,x3ro\/RIOT,kYc0o\/RIOT,RIOT-OS\/RIOT,rfuentess\/RIOT,BytesGalore\/RIOT,josephnoir\/RIOT,mtausig\/RIOT,josephnoir\/RIOT,LudwigOrtmann\/RIOT,x3ro\/RIOT,rfuentess\/RIOT,ant9000\/RIOT,miri64\/RIOT,yogo1212\/RIOT,gebart\/RIOT,rfuentess\/RIOT,lazytech-org\/RIOT,adrianghc\/RIOT,smlng\/RIOT,LudwigOrtmann\/RIOT,cladmi\/RIOT,kYc0o\/RIOT,kaspar030\/RIOT,authmillenon\/RIOT,OTAkeys\/RIOT,A-Paul\/RIOT,LudwigOrtmann\/RIOT"} {"commit":"88be4af11ec0c668bdc98f459511d7ec915660ba","old_file":"scripts\/tdb\/statuses_gln.awk","new_file":"scripts\/tdb\/statuses_gln.awk","old_contents":"","new_contents":"#!\/usr\/bin\/awk -f\n# cat *.tdb | tdbout -t publisher,plugin,publisher:info[tester],status\n\nBEGIN {\n FS=\"\\t\"\n pn = 0\n}\n\n{\n nn = split($2,na,\/\\.\/)\n lp2 = na[nn]\n if (!(($1,lp2) in b)) {\n p[pn] = $1\n n[pn] = lp2\n # n[pn] = $2\n r[pn] = $3\n pn++\n }\n b[$1,lp2]++\n c[$1,lp2,$4]++\n x[$4]++\n tt++\n}\n\nEND {\n s[0] = \"expected\"\n s[1] = \"exists\"\n s[2] = \"manifest\"\n s[3] = \"wanted\"\n s[4] = \"crawling\"\n s[5] = \"testing\"\n s[6] = \"notReady\"\n s[7] = \"released\"\n s[8] = \"down\"\n s[9] = \"superseded\"\n s[10] = \"zapped\"\n sn = 11\n \n sc[0] = \"expe\"\n sc[1] = \"exis\"\n sc[2] = \"mani\"\n sc[3] = \"want\"\n sc[4] = \"craw\"\n sc[5] = \"test\"\n sc[6] = \"notR\"\n sc[7] = \"rele\"\n sc[8] = \"down\"\n sc[9] = \"supe\"\n sc[10] = \"zapp\"\n scn = 11\n\n #print out header\n printf \"Publisher\\tPlugin\\tT\\tTotal\"\n for (j = 0 ; j < scn ; j++) {\n if (x[s[j]] > 0) {\n printf \"\\t%s\", sc[j]\n }\n }\n printf \"\\n\"\n\n #print out publisher, plugin, tester, total aus\n for (i = 0 ; i < pn ; i++) {\n printf \"%s\\t%s\\t%s\\t%d\", p[i], n[i], r[i], b[p[i],n[i]]\n for (j = 0 ; j < sn ; j++) {\n if (x[s[j]] > 0){\n if (c[p[i],n[i],s[j]] == 0) {\n printf \"\\t..\" \n } else {\n printf \"\\t%d\", c[p[i],n[i],s[j]]\n }\n }\n }\n printf \"\\n\"\n }\n #print out bottom line sums\n printf \"Publisher\\tPlugin\\tT\\t%d\", tt\n for (j = 0 ; j < sn ; j++) {\n if (x[s[j]] > 0) {\n printf \"\\t%d\", x[s[j]]\n }\n }\n\n printf \"\\n\"\n}\n\n","subject":"Add new script for gln testing report","message":"Add new script for gln testing report\n\n\ngit-svn-id: 293778eaa97c8c94097d610b1bd5133a8f478f36@24405 4f837ed2-42f5-46e7-a7a5-fa17313484d4\n","lang":"Awk","license":"bsd-3-clause","repos":"lockss\/lockss-daemon,edina\/lockss-daemon,lockss\/lockss-daemon,edina\/lockss-daemon,lockss\/lockss-daemon,lockss\/lockss-daemon,edina\/lockss-daemon,lockss\/lockss-daemon,edina\/lockss-daemon,edina\/lockss-daemon,edina\/lockss-daemon,edina\/lockss-daemon,lockss\/lockss-daemon,lockss\/lockss-daemon"} {"commit":"8c05b6c27ccd629f33bb5e20ad9d7eaf6496b96f","old_file":"tools\/awk\/frequency_table.awk","new_file":"tools\/awk\/frequency_table.awk","old_contents":"","new_contents":"#!\/usr\/bin\/env awk -f\n#\n# Generates a frequency table.\n#\n# Usage: frequency_table\n#\n# Input:\n# - a column of numbers\n#\n# Output:\n# - frequency table\n\n{\n\ttotal += 1\n\ttable[$1] += 1\n}\nEND {\n\tfor (v in table) {\n\t\tcount = table[v]\n\t\tprint v OFS count OFS count\/total\n\t}\n}\n","subject":"Add AWK script to generate a frequency table from a column of numbers","message":"Add AWK script to generate a frequency table from a column of numbers\n","lang":"Awk","license":"apache-2.0","repos":"stdlib-js\/stdlib,stdlib-js\/stdlib,stdlib-js\/stdlib,stdlib-js\/stdlib,stdlib-js\/stdlib,stdlib-js\/stdlib,stdlib-js\/stdlib,stdlib-js\/stdlib"} {"commit":"54ba7975776e8301a9ab2551cbb5755b8df1ce4b","old_file":"ipcalc.awk","new_file":"ipcalc.awk","old_contents":"","new_contents":"# Calculate network address from IP and prefix len\n# Tobias Waldekranz, 2017\n#\n# $ echo \"192.168.2.232\/24\" | awk -f ipcalc.awk\n# 192.168.2.0\/24\n#\n# $ echo \"192.168.2.232.24\" | awk -f ipcalc.awk\n# 192.168.2.0\/24\n#\n# $ echo \"192.168.2.232 24\" | awk -f ipcalc.awk\n# 192.168.2.0\/24\n#\nBEGIN { FS=\"[. \/]\" }\n{ \n ip = lshift($1, 24) + lshift($2, 16) + lshift($3, 8) + $4;\n net = lshift(rshift(ip, 32 - $5), 32 - $5);\n\n printf(\"%d.%d.%d.%d\/%d\\n\",\n\t and(rshift(net, 24), 0xff),\n\t and(rshift(net, 16), 0xff),\n\t and(rshift(net, 8), 0xff),\n\t and(net, 0xff), $5);\n}\n","subject":"Add Tobias Waldekranz's awesome little AWK script","message":"Add Tobias Waldekranz's awesome little AWK script\n\nSigned-off-by: Joachim Nilsson <583c295fd7602c168ad814279bbc3894ba65f5d6@gmail.com>\n","lang":"Awk","license":"bsd-3-clause","repos":"troglobit\/netcalc,troglobit\/sipcalc,troglobit\/netcalc,troglobit\/sipcalc"} {"commit":"b0d694788d182ec4bc134249a192a82a017a2292","old_file":"scripts\/misc\/one-vs-rest.awk","new_file":"scripts\/misc\/one-vs-rest.awk","old_contents":"","new_contents":"BEGIN{ FS=\"\\t\"; OFS=\"\\t\"; }\n{\n \tpossible_labels=$1;\n \trowid=$2;\n label=$3;\n features=$4;\n\n \tlabel_count = split(possible_labels, label_array, \",\");\n \t\t\n\tfor(i = 1; i <= label_count; i++) {\n \tif (label_array[i] == label)\n \t\tprint rowid, label, 1, features;\n \telse\n \t\tprint rowid, label_array[i], -1, features;\n\t}\n}\nEND{}\n","subject":"Add an awk script used in one-vs-the-rest classification example.","message":"Add an awk script used in one-vs-the-rest classification example.","lang":"Awk","license":"apache-2.0","repos":"daijyc\/hivemall,daijyc\/hivemall,NaokiStones\/hivemall,NaokiStones\/hivemall,naritta\/hivemall,daijyc\/hivemall,naritta\/hivemall,tempbottle\/hivemall,tempbottle\/hivemall,naritta\/hivemall,NaokiStones\/hivemall,tempbottle\/hivemall"} {"commit":"2dc6ee63574c58e0c072d094473ba0d64afed1e0","old_file":"tools\/data\/submission_old_to_new.awk","new_file":"tools\/data\/submission_old_to_new.awk","old_contents":"","new_contents":"#!\/usr\/bin\/env awk -f\n\n{\n for (i = 1; i <= NF; i++) {\n if (i == 3) printf \"-1 \";\n printf $i\" \"\n }\n printf \"\\n\"\n}","subject":"Add script to convert old submission format to new format.","message":"Add script to convert old submission format to new format.\n","lang":"Awk","license":"mit","repos":"myfavouritekk\/TPN"} {"commit":"a3d9bb278deba69723ad6496f1a0f90fd5717017","old_file":"verifyBBoxInfoFrom-webscraper.awk","new_file":"verifyBBoxInfoFrom-webscraper.awk","old_contents":"","new_contents":"# WebScraper has problems getting incomplete data.\n#\n# Crosscheck the info in EPISODES with the info in SEASONS. Count up episodes\n# and compare with the number of episodes listed in the seasons file.\n\n# For now these seem more likely a problem in scraping SEASONS than EPISODES\n# so it could be these are false positives in generating spreadsheets. \n# Problems listed in BBox_anomalies files are more likely to be real.\n\n# INVOCATION\n# awk -f verifyBBoxInfoFrom-webscraper.awk BBox_episodeInfo-180421.123042.txt\n\n\/ movie \/ {\n title = $3\n numEpisodes = $5\n if (numEpisodes == 0)\n print\n}\n\n\/ show \/ {\n numShows += 1\n showTitle[numShows] = $3 \n shouldHave[numShows] = $5\n doesHave[numShows] = 0\n if (numEpisodes == 0)\n print\n}\n\n\/^ \/ {\n epis = NF-1\n if ($epis !~ \/^[[:digit:]]*$\/)\n print \"==> Bad input line \" NR \"\\n\" $0\n else\n doesHave[numShows] += $epis\n}\n\nEND {\n print \"\"\n for ( i = 1; i <= numShows; i++ ) {\n if (shouldHave[i] != doesHave[i]) {\n print \"==> show \"showTitle[i] \" has \" doesHave[i] \" instead of \" \\\n shouldHave[i] \" episodes.\"\n }\n }\n}\n","subject":"Add crosscheck of EPISODES with SEASONS","message":"Add crosscheck of EPISODES with SEASONS\n","lang":"Awk","license":"mit","repos":"Monty\/WhatsStreamingToday,Monty\/WhatsStreamingToday"} {"commit":"72d535f618bf8410bd503ca0be2f3f14bc7263cb","old_file":"z3_parse.awk","new_file":"z3_parse.awk","old_contents":"","new_contents":"#!\/usr\/bin\/gawk -f\nBEGIN{\n\tbees=\"\";\n}\n\n\/^[ ]+\\(define-fun.*Int$\/{\n\tbees = $2;\n}\n\n\/^[ ]+[0-9]+\\)\/{\n\tmatch ($0, \/^[ ]+([0-9]+)\\)\/, arr)\n\tprint bees \" \" arr[1];\n}\n","subject":"Add parser for Z3's get-model output.","message":"Add parser for Z3's get-model output.\n\nDoesn't really parse it, it just reformats it into something less\nrubbish.\n","lang":"Awk","license":"bsd-2-clause","repos":"jmorse\/numbness"} {"commit":"ddaa6f5195bcfb88f15cb9e3e6e5af6cadf0c210","old_file":"MPRT\/MPRT.awk","new_file":"MPRT\/MPRT.awk","old_contents":"","new_contents":"#!\/usr\/bin\/awk -f\n\n{\n protein = \"\"\n flag = 0 # Get rid of line with label\n while ((\"curl -Ls http:\/\/www.uniprot.org\/uniprot\/\"$1\".fasta\" | getline prot_line) > 0) {\n if (flag)\n # Append line to protein\n protein = protein prot_line\n else\n # We're on the first line - ignore label and set flag\n flag = 1\n }\n\n first = 1 # Print label only once\n startidx = 1\n do {\n where = match(substr(protein, startidx), \/N[^P][ST][^P]\/)\n if (where != 0) {\n if (first) {\n # Print label, start location string\n print $0\n loc_string = where + startidx - 1\n # Reset flag\n first = 0\n }\n else {\n # Append to location string\n loc_string = loc_string \" \" where + startidx - 1\n }\n # Update offset: start one after start of last match\n startidx += where\n }\n } while (where != 0)\n\n # Did we find something?\n if (loc_string)\n print loc_string\n}\n","subject":"Add awk solution to problem 16","message":"Add awk solution to problem 16\n","lang":"Awk","license":"mit","repos":"bewuethr\/ctci"} {"commit":"f9f56547f387b988fecf50b9897c577a03838664","old_file":"crosscheckInfo.awk","new_file":"crosscheckInfo.awk","old_contents":"","new_contents":"# Crosscheck the number of episodes of each show found by counting them (grep -c)\n# in EPISODES_SORTED_FILE versus the number added up from SEASONS_SORTED_FILE\n# Both numbers are found by processing a checkEpisodeInfo file\n#\n# For now these seem more likely a problem in scraping SEASONS_SORTED_FILE than EPISODES_SORTED_FILE\n# so it could be these are false positives in generating spreadsheets. The case is stronger for\n# problems listed in checkBBox_anomalies files.\n\n# INVOCATION:\n# awk -f crosscheckInfo.awk checkEpisodeInfo-180415.185805.txt\n\n\/ movie \/ {\n title = $3\n numEpisodes = $5\n if (numEpisodes == 0)\n print\n}\n\n\/ show \/ {\n numShows += 1\n showTitle[numShows] = $3 \n shouldHave[numShows] = $5\n doesHave[numShows] = 0\n if (numEpisodes == 0)\n print\n}\n\n\/^ \/ {\n epis = NF-1\n if ($epis !~ \/^[[:digit:]]*$\/)\n print \"==> Bad input line \" NR \"\\n\" $0\n else\n doesHave[numShows] += $epis\n}\n\nEND {\n for ( i = 1; i <= numShows; i++ ) {\n if (shouldHave[i] != doesHave[i]) {\n print \"==> show \"showTitle[i] \" has \" doesHave[i] \" instead of \" \\\n shouldHave[i] \" episodes.\"\n }\n }\n}\n","subject":"Add a crosscheck for the SEASONS_SORTED_FILE","message":"Add a crosscheck for the SEASONS_SORTED_FILE\n","lang":"Awk","license":"mit","repos":"Monty\/WhatsStreamingToday,Monty\/WhatsStreamingToday"} {"commit":"4e6ea83fa5fc80df68a49b554195bef5f84c4274","old_file":"mergelines.awk","new_file":"mergelines.awk","old_contents":"","new_contents":"#!\/usr\/bin\/awk -f\n#\n# AWK script to join multiple lines if the preceeding line ends with a comma (,).\n#\n# For example:\n#\n# 1,\n# 2,\n# 3\n#\n# Turns into:\n#\n# 1, 2, 3\n#\n\n\/,$\/ {\n ORS=\"\"\n print $0\n do {\n getline\n print $0\n } while ($0 ~ \/,$\/)\n ORS=\"\\n\"\n print \"\"\n}\n","subject":"Add AWK script to merge comma-terminated lines","message":"Add AWK script to merge comma-terminated lines\n","lang":"Awk","license":"bsd-3-clause","repos":"nlfiedler\/devscripts,nlfiedler\/devscripts"} {"commit":"78967bffe074325867b6f020f95b7235c0b58b14","old_file":"generateLinksFrom-NetflixActivityPage.awk","new_file":"generateLinksFrom-NetflixActivityPage.awk","old_contents":"","new_contents":"# Helper for converting Netflix \"viewing activity\" into hyperlinks\n#\n\n# Death in Paradise: Season 6: "Man Overboard, Part 2"\n# Ugly Delicious: Season 1: "Pizza"\n# Hinterland: Season 3: "Episode 2"\n\n# INVOCATION:\n# Browse to https:\/\/www.netflix.com\/viewingactivity\n# Save as 'Page Source'\n# awk -f generateLinksFrom-NetflixActivityPage.awk ~\/Downloads\/Netflix.html\n\nBEGIN {\n RS=\"\\<\"\n # print 10 records unless overridden with \"-v maxRecordsToPrint=\"\n if (maxRecordsToPrint == \"\") maxRecordsToPrint = 10\n}\n\n\/div class=\"col date nowrap\"\/ {\n split ($0,fld,\">\")\n date = fld[2]\n}\n\n\/a href=\"\\\/title\\\/\/ {\n split ($0,fld,\">\")\n title = fld[2]\n split ($0,fld,\"\\\"\")\n URL = fld[2]\n gsub (\/"\/,\"\",title)\n printf (\"=HYPERLINK(\\\"https:\/\/www.netflix.com\/%s\\\";\\\"%s\\\")\\t%s\\tNetflix Streaming\\n\",\\\n URL,title,date)\n recordsPrinted += 1\n if (recordsPrinted >= maxRecordsToPrint)\n exit\n}\n","subject":"Add Netflix specific link generator","message":"Add Netflix specific link generator\n","lang":"Awk","license":"mit","repos":"Monty\/WhatsStreamingToday,Monty\/WhatsStreamingToday"} {"commit":"a4757ad30379ab2aebaec31c8bce3bd5038139df","old_file":"tools\/awk\/stdev.awk","new_file":"tools\/awk\/stdev.awk","old_contents":"","new_contents":"#!\/usr\/bin\/env awk -f\n#\n# Computes the corrected sample standard deviation.\n#\n# Usage: stdev\n#\n# Input:\n# - a column of numbers\n#\n# Output:\n# - corrected sample standard deviation\n#\n# Notes:\n# - Uses [Welford's method][1].\n#\n# [1]: https:\/\/en.wikipedia.org\/wiki\/Algorithms_for_calculating_variance#Online_algorithm\n\nBEGIN {\n\tdelta = 0\n\tmean = 0\n\tM2 = 0\n\tN = 0\n}\n{\n\tN += 1\n\tdelta = $1 - mean\n\tmean += delta \/ N\n\tM2 += delta * ($1 - mu)\n}\nEND {\n\tif (N < 2) {\n\t\tprint 0\n\t} else {\n\t\tprint sqrt(M2 \/ (N-1))\n\t}\n}\n","subject":"Add AWK script to compute the corrected sample standard deviation","message":"Add AWK script to compute the corrected sample standard deviation\n","lang":"Awk","license":"apache-2.0","repos":"stdlib-js\/stdlib,stdlib-js\/stdlib,stdlib-js\/stdlib,stdlib-js\/stdlib,stdlib-js\/stdlib,stdlib-js\/stdlib,stdlib-js\/stdlib,stdlib-js\/stdlib"} {"commit":"b426460aa8f097cdf8f995dd31451c1f5379786d","old_file":"getBritBoxProgramsFrom-webscraper.awk","new_file":"getBritBoxProgramsFrom-webscraper.awk","old_contents":"","new_contents":"BEGIN {\n FS=\"\\t\"\n print \"Sortkey\\tTitle\\tSeasons\\tDuration\\tYear\\tRating\\tDescription\"\n}\n\n# if needed for debugging record placment, replace \"\/nosuchrecord\/\" below\n\/nosuchrecord\/ {\n print \"\"\n print NR \" - \" $0\n for ( i = 1; i <= NF; i++ ) {\n print \"field \" i \" = \" $i\n }\n}\n\n{\n for ( i = 1; i <= NF; i++ ) {\n if ($i == \"null\")\n $i = \"\"\n }\n}\n\n\/\\\/us\\\/movie\\\/|\\\/us\\\/show\\\/\/{\n URL = $3\n showTitle = $4\n Year = $5\n NumSeasons = $6\n Duration = $7\n Rating = $8\n Description = $9\n\n sub (\/ Season[s]\/,\"\",NumSeasons)\n sub( \/ min\/,\"\",Duration)\n\n # Convert duration from minutes to HMS\n secs = 0\n mins = Duration % 60\n hrs = int(Duration \/ 60)\n HMS = sprintf (\"%02d:%02d:%02d\", hrs, mins, secs)\n\n # Titles starting with \"The\" should not sort based on \"The\"\n if (match (showTitle, \/^The \/)) {\n showTitle = substr(showTitle, 5) \", The\"\n }\n}\n\n\/\\\/us\\\/movie\\\/\/ {\n # Extract movie sortkey from URL\n nflds = split (URL,fld,\"_\")\n if (URL ~ \/_[[:digit:]]*$\/) {\n sortkey = sprintf (\"M%05d\", fld[nflds])\n printf \\\n (\"%s %s - mv\\t=HYPERLINK(\\\"https:\/\/www.britbox.com%s\\\";\\\"%s, %s, %s\\\"\\)\\t\\t%s\\t%s\\t%s\\t%s\\n\", \\\n showTitle, sortkey, URL, showTitle, sortkey, \\\n Title, HMS, Year, Rating, Description)\n }\n next\n}\n\n\/\\\/us\\\/show\\\/\/ {\n # Extract show sortkey from URL\n nflds = split (URL,fld,\"_\")\n if (URL ~ \/_[[:digit:]]*$\/) {\n sortkey = sprintf (\"S%05d\", fld[nflds])\n printf \\\n (\"%s %s - sh\\t=HYPERLINK(\\\"https:\/\/www.britbox.com%s\\\";\\\"%s, %s, %s\\\"\\)\\t\\t%s\\t%s\\t%s\\t%s\\n\", \\\n showTitle, sortkey, URL, showTitle, sortkey, \\\n Title, HMS, Year, Rating, Description)\n }\n next\n}\n\n\n","subject":"Make script to process top level BritBox shows","message":"Make script to process top level BritBox shows\n","lang":"Awk","license":"mit","repos":"Monty\/WhatsStreamingToday,Monty\/WhatsStreamingToday"} {"commit":"12740a270dd2aca54015c02872dd3b2169214a7b","old_file":"getNetflixFrom-ActivityPage.awk","new_file":"getNetflixFrom-ActivityPage.awk","old_contents":"","new_contents":"# Helper for converting Netflix \"viewing activity\" into hyperlinks\n#\n# Since there is no way to paste an embedded hyperlink into a text filei,\n# paste the link and the title on two consecutive lines, e.g.\n#\n# https:\/\/www.netflix.com\/title\/80174814\n# Borderliner: Season 1: \"Milla’s Future\"\n# https:\/\/www.netflix.com\/title\/80203122\n# Luxury Travel Show: Season 1: \"Chiang Mai & Eze\"\n# https:\/\/www.netflix.com\/title\/80217826\n# Kavin Jay: Everybody Calm Down!\n\n\/^https:\/ {\n link = $0\n if ((getline title) > 0) {\n gsub (\/\"\/,\"\\\"\\\"\",title)\n printf (\"=HYPERLINK(\\\"%s\\\";\\\"%s\\\")\\n\",link,title)\n }\n}\n","subject":"Create helper for Netflix activity","message":"Create helper for Netflix activity\n","lang":"Awk","license":"mit","repos":"Monty\/WhatsStreamingToday,Monty\/WhatsStreamingToday"} {"commit":"0071512e1b556339ec9f366d3fec2a7529c39252","old_file":"printFieldNamesFrom-webscraper.awk","new_file":"printFieldNamesFrom-webscraper.awk","old_contents":"","new_contents":"# Print field numbers and field names from a WebScraper csv file saved in tsv format\n\n# INVOCATION:\n# awk -f printFieldNamesFrom-webscraper.awk -v maxRecordsToPrint=5 BritBoxSeasons-test-tabs.csv\n\nBEGIN {\n FS=\"\\t\"\n # print 3 records unless overridden with \"-v maxRecordsToPrint=\"\n if (maxRecordsToPrint == \"\") maxRecordsToPrint = 3\n}\n\nNR <= maxRecordsToPrint {\n print \"Record \" NR\n for ( i = 1; i <= NF; i++ ) {\n print i \" - \" $i\n }\n print \"\"\n}\n","subject":"Add debugging tool which prints WebScraper field names","message":"Add debugging tool which prints WebScraper field names\n","lang":"Awk","license":"mit","repos":"Monty\/WhatsStreamingToday,Monty\/WhatsStreamingToday"} {"commit":"28f2adf3e3e65616a557003ea0b30bddbb43be25","old_file":"pairs.awk","new_file":"pairs.awk","old_contents":"","new_contents":"#!\/usr\/bin\/awk -f\nBEGIN{\n FS = OFS = \"\\t\";\n}\n{\n split($3, words, \", \");\n for (i = 1; i <= length(words) - 1; i++) {\n for (j = i + 1; j <= length(words); j++) {\n print words[i], words[j];\n print words[j], words[i];\n }\n }\n}\n","subject":"Add the unified pair generation script","message":"Add the unified pair generation script\n","lang":"Awk","license":"mit","repos":"dustalov\/watset,dustalov\/watset"} {"commit":"ba055fc80f2fad3ed9cb1f111205fc4b345e50af","old_file":"lib\/optical\/filters\/paired_end_only_unique.awk","new_file":"lib\/optical\/filters\/paired_end_only_unique.awk","old_contents":"","new_contents":"BEGIN {\n OFS=\"\\t\";\n lastid=\"\";\n id_counts=0;\n}\n{\n if ( $1 ~ \/^@\/ )\n {\n # headers go straight through\n print $0;\n next;\n }\n if (lastid == \"\") {\n lastid=$1;\n r1[\"read\"] = $0;\n r1[\"chr\"] = $3;\n r1[\"tags\"] = \"\";\n for(i=12;i \n\n# Process the log file which is the 2nd argument.\nFILENAME == ARGV[2] {\n match($0, \/:wasm-function\\[([0-9]+)\\]\/, groups)\n print $0, functions[groups[1]]\n}\n\n# Collects function declarations\n\/^\\(func\/ {\n functions[last_function++] = $2\n}\n","subject":"Add awk script to deobfuscate wasm stack traces.","message":"[WASM] Add awk script to deobfuscate wasm stack traces.\n\nPiperOrigin-RevId: 363962157\n","lang":"Awk","license":"apache-2.0","repos":"google\/j2cl,google\/j2cl,google\/j2cl,google\/j2cl,google\/j2cl"} {"commit":"59e1bfc35a6709317f98ed59857a2ad267c3aad3","old_file":"tools\/awk\/midrange.awk","new_file":"tools\/awk\/midrange.awk","old_contents":"","new_contents":"#!\/usr\/bin\/env awk -f\n#\n# Computes the mid-range.\n#\n# Usage: mid-range\n#\n# Input:\n# - a column of numbers\n#\n# Output:\n# - mid-range\n\n!i++ {\n\t# Only for the first record:\n\tmax = $1\n\tmin = $1\n}\n{\n\tif ($1 > max) {\n\t\tmax = $1\n\t} else if ($1 < min) {\n\t\tmin = $1\n\t}\n}\nEND {\n\tprint (max + min) \/ 2\n}\n","subject":"Add AWK script to compute the mid-range","message":"Add AWK script to compute the mid-range\n","lang":"Awk","license":"apache-2.0","repos":"stdlib-js\/stdlib,stdlib-js\/stdlib,stdlib-js\/stdlib,stdlib-js\/stdlib,stdlib-js\/stdlib,stdlib-js\/stdlib,stdlib-js\/stdlib,stdlib-js\/stdlib"} {"commit":"048add9649005670f58c39250742572b55ee575c","old_file":"log_rewriter.awk","new_file":"log_rewriter.awk","old_contents":"","new_contents":"BEGIN{\n now = systime()\n format = \"%Y\/%m\/%d %H:%M:%S\"\n \n}\n{\n split($1, DATE, \"\/\")\n split($2, TIME, \":\")\n $1 = \"\"\n $2 = \"\"\n t = mktime(DATE[1] \" \" DATE[2] \" \" DATE[3] \" \" TIME[1] \" \" TIME[2] \" \" TIME[3])\n if (delta == \"\") {\n delta = now - t\n }\n print strftime(format, t + delta) $0\n}\n","subject":"Add a short program that rewrites the testdata\/rsyncd.log timestamps to nowish.","message":"Add a short program that rewrites the testdata\/rsyncd.log timestamps to nowish.\n","lang":"Awk","license":"apache-2.0","repos":"SuperQ\/mtail,4honor\/mtail,google\/mtail,SuperQ\/mtail,google\/mtail,4honor\/mtail"} {"commit":"7956724dc6e3c5371bb44abb21b557333e269fe5","old_file":"cvc_parse.awk","new_file":"cvc_parse.awk","old_contents":"","new_contents":"#!\/usr\/bin\/awk -f\n\nBEGIN{\n\toutarr[0] = \"\";\n\toutarr[1] = \"\";\n\toutarr[2] = \"\";\n\toutarr[3] = \"\";\n\tidx = 0;\n}\n\n\/.*sparticus.*\/{\n\tsub(\/bv\/, \"\", $12);\n\toutarr[idx] = $12;\n\tidx++;\n\tif (idx == 4) {\n\t\tprint outarr[0] \"|\" outarr[1] \"|\" outarr[2] \"|\" outarr[3]\n\t\tidx = 0;\n\t}\n}\n","subject":"Add an awk script for reading CVC's output.","message":"Add an awk script for reading CVC's output.\n\nFragile. But never mind.\n","lang":"Awk","license":"bsd-2-clause","repos":"jmorse\/numbness"} {"commit":"932144cdcff7d26dc3d84b4e4de20f843fd560fd","old_file":"build\/addloadexample.awk","new_file":"build\/addloadexample.awk","old_contents":"","new_contents":"# Invoke as awk addloadexample.awk\n\nBEGIN {\n lms = 0;\n} \n\ntolower($0) ~ \/^[# \\t]*loadmodule[ \\t]\/ {\n if ( $2 == MODULE \"_module\" ) {\n print \"LoadModule \" MODULE \"_module \" LIBPATH \"\/mod_\" MODULE DSO;\n lms = 2;\n next;\n }\n # test $3 since # LoadModule is split into two tokens\n else if ( $3 == MODULE \"_module\" ) {\n print $1 \"LoadModule \" MODULE \"_module \" LIBPATH \"\/mod_\" MODULE DSO;\n lms = 2;\n next;\n }\n else if ( ! lms ) lms = 1;\n}\n\n$0 ~ \/^[ \\t]*$\/ && lms == 1 {\n print \"LoadModule \" MODULE \"_module \" LIBPATH \"\/mod_\" MODULE DSO;\n lms = 2;\n} \n\ntolower($0) ~ \/^[# \\t]*include[ \\t]\/ && $NF == EXAMPLECONF {\n lms = 3;\n}\n\n{ print }\n\nEND {\n if ( lms < 3 ) { \n if ( ! \/^[ \\t]*$\/ ) print \"\";\n if ( lms < 2 ) { \n print \"LoadModule \" MODULE \"_module \" LIBPATH \"\/mod_\" MODULE DSO;\n print \"\";\n }\n if ( length(EXAMPLECONF) ) {\n print \"# Example mod_\" MODULE \" configuration\";\n print \"#Include \" EXAMPLECONF \"\\n\";\n }\n }\n}\n\n","subject":"Add for updating the config file","message":"Add for updating the config file\n\ngit-svn-id: 244fd0a71b5b35931765a3ae1f99e3319f3fb8ab@822470 13f79535-47bb-0310-9956-ffa450edef68\n","lang":"Awk","license":"apache-2.0","repos":"kaigai\/mod_fcgid"}