docstring_tokens stringlengths 0 76.5k | code_tokens stringlengths 75 1.81M | label_window listlengths 4 2.12k | html_url stringlengths 74 116 | file_name stringlengths 3 311 |
|---|---|---|---|---|
<mask> golang.org/x/sys v0.0.0-20190606122018-79a91cf218c4/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
<mask> golang.org/x/sys v0.0.0-20190826190057-c7b8b68b1456/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
<mask> golang.org/x/sys v0.0.0-20190904154756-749cb33beabd/go.mod h1:h1NjWce9XRLGQEsW7wpK... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/AdguardTeam/AdGuardHome/commit/21a1187ed2d18e316d8af33c5d8bdd19034fea9f | go.sum | |
<mask> golang.org/x/sys v0.0.0-20201009025420-dfb3f7c4e634/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
<mask> golang.org/x/sys v0.0.0-20201015000850-e3ed0017c211/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
<mask> golang.org/x/sys v0.0.0-20201017003518-b09fb700fbb7/go.mod h1:h1NjWce9XRLGQEsW7wpK... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/AdguardTeam/AdGuardHome/commit/21a1187ed2d18e316d8af33c5d8bdd19034fea9f | go.sum | |
<mask> golang.org/x/sys v0.0.0-20201017003518-b09fb700fbb7/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
<mask> golang.org/x/sys v0.0.0-20201101102859-da207088b7d1/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
<mask> golang.org/x/sys v0.0.0-20201118182958-a01c418693c7/go.mod h1:h1NjWce9XRLGQEsW7wpK... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/AdguardTeam/AdGuardHome/commit/21a1187ed2d18e316d8af33c5d8bdd19034fea9f | go.sum | |
<mask> golang.org/x/sys v0.0.0-20201119102817-f84b799fce68/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
<mask> golang.org/x/sys v0.0.0-20201218084310-7d0127a74742/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
<mask> golang.org/x/sys v0.0.0-20210110051926-789bb1bd4061/go.mod h1:h1NjWce9XRLGQEsW7wpK... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/AdguardTeam/AdGuardHome/commit/21a1187ed2d18e316d8af33c5d8bdd19034fea9f | go.sum | |
<mask> golang.org/x/sys v0.0.0-20210510120138-977fb7262007/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
<mask> golang.org/x/sys v0.0.0-20210525143221-35b2ab0089ea/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
<mask> golang.org/x/sys v0.0.0-20210615035016-665e8c7367d1/go.mod h1:oPkhp1MJrh7nUepCBck5... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/AdguardTeam/AdGuardHome/commit/21a1187ed2d18e316d8af33c5d8bdd19034fea9f | go.sum | |
<mask> golang.org/x/sys v0.0.0-20210615035016-665e8c7367d1/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
<mask> golang.org/x/sys v0.0.0-20210630005230-0f9fa26af87c/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
<mask> golang.org/x/sys v0.0.0-20210809222454-d867a43fc93e/go.mod h1:oPkhp1MJrh7nUepCBck5... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/AdguardTeam/AdGuardHome/commit/21a1187ed2d18e316d8af33c5d8bdd19034fea9f | go.sum | |
<mask> golang.org/x/sys v0.0.0-20210906170528-6f6e22806c34/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
<mask> golang.org/x/sys v0.0.0-20210909193231-528a39cd75f3/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
<mask> golang.org/x/sys v0.0.0-20210927094055-39ccf1dd6fa6/go.mod h1:oPkhp1MJrh7nUepCBck5... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/AdguardTeam/AdGuardHome/commit/21a1187ed2d18e316d8af33c5d8bdd19034fea9f | go.sum | |
golang.org/x/sys v0.0.0-20220128215802-99c3d69c2c27/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
golang.org/x/sys v0.0.0-20220209214540-3681064d5158/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
golang.org/x/sys v0.0.0-20220319134239-a9b59b0215f8/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=... | <mask> golang.org/x/sys v0.0.0-20211019181941-9d821ace8654/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
<mask> golang.org/x/sys v0.0.0-20211025201205-69cdffdb9359/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
<mask> golang.org/x/sys v0.0.0-20211210111614-af8b64212486/go.mod h1:oPkhp1MJrh7nUepCBck5... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/AdguardTeam/AdGuardHome/commit/21a1187ed2d18e316d8af33c5d8bdd19034fea9f | go.sum |
<mask> golang.org/x/tools v0.0.0-20190226205152-f727befe758c/go.mod h1:9Yl7xja0Znq3iFh3HoIrodX9oNMXvdceNzlUR8zjMvY=
<mask> golang.org/x/tools v0.0.0-20190328211700-ab21143f2384/go.mod h1:LCzVGOaR6xXOjkQ3onu1FJEFr0SW1gC7cKk1uF8kGRs=
<mask> golang.org/x/tools v0.0.0-20190425150028-36563e24a262/go.mod h1:RgjU9mgBXZiqYH... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/AdguardTeam/AdGuardHome/commit/21a1187ed2d18e316d8af33c5d8bdd19034fea9f | go.sum | |
<mask> golang.org/x/tools v0.0.0-20191119224855-298f0cb1881e/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo=
<mask> golang.org/x/tools v0.0.0-20191216052735-49a3e744a425/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28=
<mask> golang.org/x/tools v0.0.0-20200130002326-2f3ba24bd6e7/go.mod h1:TB2adYChydJhpa... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/AdguardTeam/AdGuardHome/commit/21a1187ed2d18e316d8af33c5d8bdd19034fea9f | go.sum | |
<mask> golang.org/x/tools v0.0.0-20201224043029-2b0845dc783e/go.mod h1:emZCQorbCU4vsT4fOWvOPXz4eW1wZW4PmDk9uLelYpA=
<mask> golang.org/x/tools v0.1.0/go.mod h1:xkSsbof2nBLbhDlRMhhhyNLN/zl3eTqcnHD5viDpcZ0=
<mask> golang.org/x/tools v0.1.1/go.mod h1:o0xws9oXOQQZyjljx8fwUC0k7L1pTE6eaCbjGeHmOkk=
<mask> golang.org/x/tool... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/AdguardTeam/AdGuardHome/commit/21a1187ed2d18e316d8af33c5d8bdd19034fea9f | go.sum | |
golang.org/x/tools v0.1.11-0.20220316014157-77aa08bb151a h1:ofrrl6c6NG5/IOSx/R1cyiQxxjqlur0h/TvbUhkH0II=
golang.org/x/tools v0.1.11-0.20220316014157-77aa08bb151a/go.mod h1:Uh6Zz+xoGYZom868N8YTex3t7RhtHDBrE8Gzo9bV56E= | <mask> golang.org/x/tools v0.1.1/go.mod h1:o0xws9oXOQQZyjljx8fwUC0k7L1pTE6eaCbjGeHmOkk=
<mask> golang.org/x/tools v0.1.6-0.20210726203631-07bc1bf47fb2/go.mod h1:o0xws9oXOQQZyjljx8fwUC0k7L1pTE6eaCbjGeHmOkk=
<mask> golang.org/x/tools v0.1.10/go.mod h1:Uh6Zz+xoGYZom868N8YTex3t7RhtHDBrE8Gzo9bV56E=
<mask> golang.org/x/x... | [
"keep",
"keep",
"add",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/AdguardTeam/AdGuardHome/commit/21a1187ed2d18e316d8af33c5d8bdd19034fea9f | go.sum |
<mask> golang.org/x/tools v0.1.10/go.mod h1:Uh6Zz+xoGYZom868N8YTex3t7RhtHDBrE8Gzo9bV56E=
<mask> golang.org/x/xerrors v0.0.0-20190717185122-a985d3407aa7/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=
<mask> golang.org/x/xerrors v0.0.0-20191011141410-1b5146add898/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/AdguardTeam/AdGuardHome/commit/21a1187ed2d18e316d8af33c5d8bdd19034fea9f | go.sum | |
golang.org/x/xerrors v0.0.0-20220411194840-2f41105eb62f h1:GGU+dLjvlC3qDwqYgL6UgRmHXhOOgns0bZu2Ty5mm6U=
golang.org/x/xerrors v0.0.0-20220411194840-2f41105eb62f/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= | <mask> golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=
<mask> golang.org/x/xerrors v0.0.0-20200804184101-5ec99f83aff1/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=
<mask> google.golang.org/api v0.0.0-20180910000450-7ca32eb868bf/go.mod h1:4mhQ8q/... | [
"keep",
"add",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/AdguardTeam/AdGuardHome/commit/21a1187ed2d18e316d8af33c5d8bdd19034fea9f | go.sum |
<mask> grpc.go4.org v0.0.0-20170609214715-11d0a25b4919/go.mod h1:77eQGdRu53HpSqPFJFmuJdjuHRquDANNeA4x7B8WQ9o=
<mask> honnef.co/go/tools v0.0.0-20180728063816-88497007e858/go.mod h1:rf3lG4BRIbNafJWhAfAdb/ePZxsR/4RtNHQocxwk9r4=
<mask> honnef.co/go/tools v0.0.0-20190102054323-c2f93a96b099/go.mod h1:rf3lG4BRIbNafJWhAfAd... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/AdguardTeam/AdGuardHome/commit/21a1187ed2d18e316d8af33c5d8bdd19034fea9f | go.sum | |
req *urlfilter.DNSRequest, | <mask> // not an A/AAAA or PTR type, see man 5 hosts.
<mask> //
<mask> // It's safe for concurrent use.
<mask> func (rm *requestMatcher) MatchRequest(
<mask> req urlfilter.DNSRequest,
<mask> ) (res *urlfilter.DNSResult, ok bool) {
<mask> switch req.DNSType {
<mask> case dns.TypeA, dns.TypeAAAA, dns.TypePTR:
... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/AdguardTeam/AdGuardHome/commit/21a1187ed2d18e316d8af33c5d8bdd19034fea9f | internal/aghnet/hostscontainer.go |
res, ok := hc.MatchRequest(&urlfilter.DNSRequest{ | <mask> eventsCh <- event{}
<mask>
<mask> // Require the changes are written.
<mask> require.Eventually(t, func() bool {
<mask> res, ok := hc.MatchRequest(urlfilter.DNSRequest{
<mask> Hostname: "hostname",
<mask> DNSType: dns.TypeA,
<mask> })
<mask>
<mask> return !ok && res.DNSRewrite... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/AdguardTeam/AdGuardHome/commit/21a1187ed2d18e316d8af33c5d8bdd19034fea9f | internal/aghnet/hostscontainer_test.go |
res, ok := hc.MatchRequest(&urlfilter.DNSRequest{ | <mask> eventsCh <- event{}
<mask>
<mask> // Require the changes are written.
<mask> require.Eventually(t, func() bool {
<mask> res, ok := hc.MatchRequest(urlfilter.DNSRequest{
<mask> Hostname: "hostname",
<mask> DNSType: dns.TypeA,
<mask> })
<mask>
<mask> return !ok && res.DNSRewrite... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/AdguardTeam/AdGuardHome/commit/21a1187ed2d18e316d8af33c5d8bdd19034fea9f | internal/aghnet/hostscontainer_test.go |
req *urlfilter.DNSRequest | <mask>
<mask> testCases := []struct {
<mask> want []*rules.DNSRewrite
<mask> name string
<mask> req urlfilter.DNSRequest
<mask> }{{
<mask> want: []*rules.DNSRewrite{{
<mask> RCode: dns.RcodeSuccess,
<mask> Value: net.IPv4(1, 0, 0, 1),
<mask> RRType: dns.TypeA,
</s> Pull request: all: u... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/AdguardTeam/AdGuardHome/commit/21a1187ed2d18e316d8af33c5d8bdd19034fea9f | internal/aghnet/hostscontainer_test.go |
req: &urlfilter.DNSRequest{ | <mask> Value: net.ParseIP("::1"),
<mask> RRType: dns.TypeAAAA,
<mask> }},
<mask> name: "simple",
<mask> req: urlfilter.DNSRequest{
<mask> Hostname: "simplehost",
<mask> DNSType: dns.TypeA,
<mask> },
<mask> }, {
<mask> want: []*rules.DNSRewrite{{
</s> Pull request: all: upd go, tools
... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/AdguardTeam/AdGuardHome/commit/21a1187ed2d18e316d8af33c5d8bdd19034fea9f | internal/aghnet/hostscontainer_test.go |
req: &urlfilter.DNSRequest{ | <mask> Value: net.ParseIP("::"),
<mask> RRType: dns.TypeAAAA,
<mask> }},
<mask> name: "hello_alias",
<mask> req: urlfilter.DNSRequest{
<mask> Hostname: "hello.world",
<mask> DNSType: dns.TypeA,
<mask> },
<mask> }, {
<mask> want: []*rules.DNSRewrite{{
</s> Pull request: all: upd go, t... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/AdguardTeam/AdGuardHome/commit/21a1187ed2d18e316d8af33c5d8bdd19034fea9f | internal/aghnet/hostscontainer_test.go |
req: &urlfilter.DNSRequest{ | <mask> Value: net.ParseIP("::"),
<mask> RRType: dns.TypeAAAA,
<mask> }},
<mask> name: "other_line_alias",
<mask> req: urlfilter.DNSRequest{
<mask> Hostname: "hello.world.again",
<mask> DNSType: dns.TypeA,
<mask> },
<mask> }, {
<mask> want: []*rules.DNSRewrite{},
</s> Pull request: al... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/AdguardTeam/AdGuardHome/commit/21a1187ed2d18e316d8af33c5d8bdd19034fea9f | internal/aghnet/hostscontainer_test.go |
req: &urlfilter.DNSRequest{ | <mask> },
<mask> }, {
<mask> want: []*rules.DNSRewrite{},
<mask> name: "hello_subdomain",
<mask> req: urlfilter.DNSRequest{
<mask> Hostname: "say.hello",
<mask> DNSType: dns.TypeA,
<mask> },
<mask> }, {
<mask> want: []*rules.DNSRewrite{},
</s> Pull request: all: upd go, tools
Merge in D... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/AdguardTeam/AdGuardHome/commit/21a1187ed2d18e316d8af33c5d8bdd19034fea9f | internal/aghnet/hostscontainer_test.go |
req: &urlfilter.DNSRequest{ | <mask> },
<mask> }, {
<mask> want: []*rules.DNSRewrite{},
<mask> name: "hello_alias_subdomain",
<mask> req: urlfilter.DNSRequest{
<mask> Hostname: "say.hello.world",
<mask> DNSType: dns.TypeA,
<mask> },
<mask> }, {
<mask> want: []*rules.DNSRewrite{{
</s> Pull request: all: upd go, tools
... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/AdguardTeam/AdGuardHome/commit/21a1187ed2d18e316d8af33c5d8bdd19034fea9f | internal/aghnet/hostscontainer_test.go |
req: &urlfilter.DNSRequest{ | <mask> RRType: dns.TypeAAAA,
<mask> Value: net.ParseIP("::2"),
<mask> }},
<mask> name: "lots_of_aliases",
<mask> req: urlfilter.DNSRequest{
<mask> Hostname: "for.testing",
<mask> DNSType: dns.TypeA,
<mask> },
<mask> }, {
<mask> want: []*rules.DNSRewrite{{
</s> Pull request: all: upd ... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/AdguardTeam/AdGuardHome/commit/21a1187ed2d18e316d8af33c5d8bdd19034fea9f | internal/aghnet/hostscontainer_test.go |
req: &urlfilter.DNSRequest{ | <mask> RRType: dns.TypePTR,
<mask> Value: "simplehost.",
<mask> }},
<mask> name: "reverse",
<mask> req: urlfilter.DNSRequest{
<mask> Hostname: "1.0.0.1.in-addr.arpa",
<mask> DNSType: dns.TypePTR,
<mask> },
<mask> }, {
<mask> want: []*rules.DNSRewrite{},
</s> Pull request: all: upd go... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/AdguardTeam/AdGuardHome/commit/21a1187ed2d18e316d8af33c5d8bdd19034fea9f | internal/aghnet/hostscontainer_test.go |
req: &urlfilter.DNSRequest{ | <mask> },
<mask> }, {
<mask> want: []*rules.DNSRewrite{},
<mask> name: "non-existing",
<mask> req: urlfilter.DNSRequest{
<mask> Hostname: "nonexisting",
<mask> DNSType: dns.TypeA,
<mask> },
<mask> }, {
<mask> want: nil,
</s> Pull request: all: upd go, tools
Merge in DNS/adguard-home fro... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/AdguardTeam/AdGuardHome/commit/21a1187ed2d18e316d8af33c5d8bdd19034fea9f | internal/aghnet/hostscontainer_test.go |
req: &urlfilter.DNSRequest{ | <mask> },
<mask> }, {
<mask> want: nil,
<mask> name: "bad_type",
<mask> req: urlfilter.DNSRequest{
<mask> Hostname: "1.0.0.1.in-addr.arpa",
<mask> DNSType: dns.TypeSRV,
<mask> },
<mask> }, {
<mask> want: []*rules.DNSRewrite{{
</s> Pull request: all: upd go, tools
Merge in DNS/adguard-ho... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/AdguardTeam/AdGuardHome/commit/21a1187ed2d18e316d8af33c5d8bdd19034fea9f | internal/aghnet/hostscontainer_test.go |
req: &urlfilter.DNSRequest{ | <mask> RRType: dns.TypeAAAA,
<mask> Value: net.ParseIP("::42"),
<mask> }},
<mask> name: "issue_4216_4_6",
<mask> req: urlfilter.DNSRequest{
<mask> Hostname: "domain",
<mask> DNSType: dns.TypeA,
<mask> },
<mask> }, {
<mask> want: []*rules.DNSRewrite{{
</s> Pull request: all: upd go, t... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/AdguardTeam/AdGuardHome/commit/21a1187ed2d18e316d8af33c5d8bdd19034fea9f | internal/aghnet/hostscontainer_test.go |
req: &urlfilter.DNSRequest{ | <mask> RRType: dns.TypeA,
<mask> Value: net.IPv4(1, 3, 5, 7),
<mask> }},
<mask> name: "issue_4216_4",
<mask> req: urlfilter.DNSRequest{
<mask> Hostname: "domain4",
<mask> DNSType: dns.TypeA,
<mask> },
<mask> }, {
<mask> want: []*rules.DNSRewrite{{
</s> Pull request: all: upd go, tool... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/AdguardTeam/AdGuardHome/commit/21a1187ed2d18e316d8af33c5d8bdd19034fea9f | internal/aghnet/hostscontainer_test.go |
req: &urlfilter.DNSRequest{ | <mask> RRType: dns.TypeAAAA,
<mask> Value: net.ParseIP("::31"),
<mask> }},
<mask> name: "issue_4216_6",
<mask> req: urlfilter.DNSRequest{
<mask> Hostname: "domain6",
<mask> DNSType: dns.TypeAAAA,
<mask> },
<mask> }}
<mask>
</s> Pull request: all: upd go, tools
Merge in DNS/adguard-ho... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/AdguardTeam/AdGuardHome/commit/21a1187ed2d18e316d8af33c5d8bdd19034fea9f | internal/aghnet/hostscontainer_test.go |
dnsres, _ := d.EtcHosts.MatchRequest(&urlfilter.DNSRequest{ | <mask> if !setts.FilteringEnabled || d.EtcHosts == nil {
<mask> return res, nil
<mask> }
<mask>
<mask> dnsres, _ := d.EtcHosts.MatchRequest(urlfilter.DNSRequest{
<mask> Hostname: host,
<mask> SortedClientTags: setts.ClientTags,
<mask> // TODO(e.burkov): Wait for urlfilter update to pass net... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/AdguardTeam/AdGuardHome/commit/21a1187ed2d18e316d8af33c5d8bdd19034fea9f | internal/filtering/filtering.go |
ureq := &urlfilter.DNSRequest{ | <mask> if !setts.FilteringEnabled {
<mask> return Result{}, nil
<mask> }
<mask>
<mask> ureq := urlfilter.DNSRequest{
<mask> Hostname: host,
<mask> SortedClientTags: setts.ClientTags,
<mask> // TODO(e.burkov): Wait for urlfilter update to pass net.IP.
<mask> ClientIP: setts.ClientIP.Stri... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/AdguardTeam/AdGuardHome/commit/21a1187ed2d18e316d8af33c5d8bdd19034fea9f | internal/filtering/filtering.go |
github.com/fzipp/gocyclo v0.5.1 | <mask>
<mask> go 1.17
<mask>
<mask> require (
<mask> github.com/fzipp/gocyclo v0.4.0
<mask> github.com/golangci/misspell v0.3.5
<mask> github.com/gordonklaus/ineffassign v0.0.0-20210914165742-4cc7213b9bc8
<mask> github.com/kisielk/errcheck v1.6.0
<mask> github.com/kyoh86/looppointer v0.1.7
<mask> gith... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/AdguardTeam/AdGuardHome/commit/21a1187ed2d18e316d8af33c5d8bdd19034fea9f | internal/tools/go.mod |
github.com/securego/gosec/v2 v2.11.0 | <mask> github.com/golangci/misspell v0.3.5
<mask> github.com/gordonklaus/ineffassign v0.0.0-20210914165742-4cc7213b9bc8
<mask> github.com/kisielk/errcheck v1.6.0
<mask> github.com/kyoh86/looppointer v0.1.7
<mask> github.com/securego/gosec/v2 v2.9.5
<mask> golang.org/x/lint v0.0.0-20210508222113-6edffad5e616... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/AdguardTeam/AdGuardHome/commit/21a1187ed2d18e316d8af33c5d8bdd19034fea9f | internal/tools/go.mod |
golang.org/x/tools v0.1.11-0.20220316014157-77aa08bb151a
honnef.co/go/tools v0.3.0
mvdan.cc/gofumpt v0.3.1
mvdan.cc/unparam v0.0.0-20220316160445-06cc5682983b | <mask> github.com/kisielk/errcheck v1.6.0
<mask> github.com/kyoh86/looppointer v0.1.7
<mask> github.com/securego/gosec/v2 v2.9.5
<mask> golang.org/x/lint v0.0.0-20210508222113-6edffad5e616
<mask> golang.org/x/tools v0.1.8
<mask> honnef.co/go/tools v0.2.2
<mask> mvdan.cc/gofumpt v0.2.1
<mask> mvdan.cc/un... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/AdguardTeam/AdGuardHome/commit/21a1187ed2d18e316d8af33c5d8bdd19034fea9f | internal/tools/go.mod |
github.com/BurntSushi/toml v1.1.0 // indirect | <mask> mvdan.cc/unparam v0.0.0-20211214103731-d0ef000c54e5
<mask> )
<mask>
<mask> require (
<mask> github.com/BurntSushi/toml v0.4.1 // indirect
<mask> github.com/client9/misspell v0.3.4 // indirect
<mask> github.com/google/go-cmp v0.5.6 // indirect
<mask> github.com/google/uuid v1.3.0 // indirect
<mask>... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/AdguardTeam/AdGuardHome/commit/21a1187ed2d18e316d8af33c5d8bdd19034fea9f | internal/tools/go.mod |
github.com/google/go-cmp v0.5.7 // indirect | <mask>
<mask> require (
<mask> github.com/BurntSushi/toml v0.4.1 // indirect
<mask> github.com/client9/misspell v0.3.4 // indirect
<mask> github.com/google/go-cmp v0.5.6 // indirect
<mask> github.com/google/uuid v1.3.0 // indirect
<mask> github.com/gookit/color v1.5.0 // indirect
<mask> github.com/kyoh86... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/AdguardTeam/AdGuardHome/commit/21a1187ed2d18e316d8af33c5d8bdd19034fea9f | internal/tools/go.mod |
golang.org/x/exp/typeparams v0.0.0-20220407100705-7b9b53b0aca4 // indirect
golang.org/x/mod v0.6.0-dev.0.20220106191415-9b9b3d81d5e3 // indirect
golang.org/x/sync v0.0.0-20210220032951-036812b2e83c // indirect
golang.org/x/sys v0.0.0-20220412211240-33da011f77ad // indirect
golang.org/x/xerrors v0.0.0-2022041119484... | <mask> github.com/gookit/color v1.5.0 // indirect
<mask> github.com/kyoh86/nolint v0.0.1 // indirect
<mask> github.com/nbutton23/zxcvbn-go v0.0.0-20210217022336-fa2cb2858354 // indirect
<mask> github.com/xo/terminfo v0.0.0-20210125001918-ca9a967f8778 // indirect
<mask> golang.org/x/mod v0.5.1 // indirect
<ma... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"replace",
"keep",
"keep"
] | https://github.com/AdguardTeam/AdGuardHome/commit/21a1187ed2d18e316d8af33c5d8bdd19034fea9f | internal/tools/go.mod |
<mask> cloud.google.com/go/storage v1.8.0/go.mod h1:Wv1Oy7z6Yz3DshWRJFhqM/UCfaWIRTdp0RXyy7KQOVs=
<mask> contrib.go.opencensus.io/exporter/stackdriver v0.13.4/go.mod h1:aXENhDJ1Y4lIg4EUaVTwzvYETVNZk10Pu26tevFKLUc=
<mask> dmitri.shuralyov.com/gpu/mtl v0.0.0-20190408044501-666a987793e9/go.mod h1:H6x//7gZCb22OMCxBHrMx7a... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/AdguardTeam/AdGuardHome/commit/21a1187ed2d18e316d8af33c5d8bdd19034fea9f | internal/tools/go.sum | |
github.com/BurntSushi/toml v1.1.0 h1:ksErzDEI1khOiGPgpwuI7x2ebx/uXQNw7xJpn9Eq1+I=
github.com/BurntSushi/toml v1.1.0/go.mod h1:CxXYINrC8qIiEnFrOxCa7Jy5BFHlXnUU2pbicEuybxQ= | <mask> contrib.go.opencensus.io/exporter/stackdriver v0.13.4/go.mod h1:aXENhDJ1Y4lIg4EUaVTwzvYETVNZk10Pu26tevFKLUc=
<mask> dmitri.shuralyov.com/gpu/mtl v0.0.0-20190408044501-666a987793e9/go.mod h1:H6x//7gZCb22OMCxBHrMx7a5I7Hp++hsVxbQ4BYO7hU=
<mask> github.com/BurntSushi/toml v0.3.1/go.mod h1:xHWCNGjB5oqiDr8zfno3MHue... | [
"keep",
"keep",
"keep",
"add",
"keep",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/AdguardTeam/AdGuardHome/commit/21a1187ed2d18e316d8af33c5d8bdd19034fea9f | internal/tools/go.sum |
github.com/frankban/quicktest v1.14.2 h1:SPb1KFFmM+ybpEjPUhCCkZOM5xlovT5UbrMvWnXyBns=
github.com/frankban/quicktest v1.14.2/go.mod h1:mgiwOwqx65TmIk1wJ6Q7wvnVMocbUorkibMOrVTHZps= | <mask> github.com/envoyproxy/protoc-gen-validate v0.0.14/go.mod h1:iSmxcyjqTsJpI2R4NaDN7+kN2VEUnK/pcBlmesArF7c=
<mask> github.com/envoyproxy/protoc-gen-validate v0.1.0/go.mod h1:iSmxcyjqTsJpI2R4NaDN7+kN2VEUnK/pcBlmesArF7c=
<mask> github.com/fatih/color v1.7.0/go.mod h1:Zm6kSWBoL9eyXnKyktHP6abPY2pDugNf5KwzbycvMj4=
<... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/AdguardTeam/AdGuardHome/commit/21a1187ed2d18e316d8af33c5d8bdd19034fea9f | internal/tools/go.sum |
<mask> github.com/fatih/color v1.10.0/go.mod h1:ELkj/draVOlAH/xkhN6mQ50Qd0MPOk5AAr3maGEBuJM=
<mask> github.com/frankban/quicktest v1.14.0 h1:+cqqvzZV87b4adx/5ayVOaYZ2CrvM4ejQvUdBzPPUss=
<mask> github.com/frankban/quicktest v1.14.0/go.mod h1:NeW+ay9A/U67EYXNFA1nPE8e/tnQv/09mUdL/ijj8og=
<mask> github.com/fsnotify/fsn... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/AdguardTeam/AdGuardHome/commit/21a1187ed2d18e316d8af33c5d8bdd19034fea9f | internal/tools/go.sum | |
github.com/fzipp/gocyclo v0.5.1 h1:L66amyuYogbxl0j2U+vGqJXusPF2IkduvXLnYD5TFgw=
github.com/fzipp/gocyclo v0.5.1/go.mod h1:rXPyn8fnlpa0R2csP/31uerbiVBugk5whMdlyaLkLoA= | <mask> github.com/fsnotify/fsnotify v1.4.7/go.mod h1:jwhsz4b93w/PPRr/qN1Yymfu8t87LnFCMoQvtojpjFo=
<mask> github.com/fsnotify/fsnotify v1.4.9 h1:hsms1Qyu0jgnwNXIxa+/V/PDsU6CfLf6CNO8H7IWoS4=
<mask> github.com/fsnotify/fsnotify v1.4.9/go.mod h1:znqG4EE+3YCdAaPaxE2ZRY/06pZUdp0tY4IgpuI1SZQ=
<mask> github.com/fullstoryde... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/AdguardTeam/AdGuardHome/commit/21a1187ed2d18e316d8af33c5d8bdd19034fea9f | internal/tools/go.sum |
github.com/google/go-cmp v0.5.7 h1:81/ik6ipDQS2aGcBfIN5dHDB36BwrStyeAQquSYCV4o=
github.com/google/go-cmp v0.5.7/go.mod h1:n+brtR0CgQNWTVd5ZUFpTBC8YFBDLK/h/bpaJ8/DtOE= | <mask> github.com/google/go-cmp v0.4.0/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE=
<mask> github.com/google/go-cmp v0.5.0/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE=
<mask> github.com/google/go-cmp v0.5.2/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE=
<mask> github.com/google/go-cmp v0... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/AdguardTeam/AdGuardHome/commit/21a1187ed2d18e316d8af33c5d8bdd19034fea9f | internal/tools/go.sum |
github.com/google/pprof v0.0.0-20210407192527-94a9f03dee38/go.mod h1:kpwsk12EmLew5upagYY7GY0pfYCcupk39gWOCRROcvE= | <mask> github.com/google/pprof v0.0.0-20200430221834-fc25d7d30c6d/go.mod h1:ZgVRPoUq/hfqzAqh7sHMqb3I9Rq5C59dIz2SbBwJ4eM=
<mask> github.com/google/pprof v0.0.0-20200507031123-427632fa3b1c/go.mod h1:ZgVRPoUq/hfqzAqh7sHMqb3I9Rq5C59dIz2SbBwJ4eM=
<mask> github.com/google/renameio v0.1.0/go.mod h1:KWCgfxg9yswjAJkECMjeO8J8... | [
"keep",
"add",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/AdguardTeam/AdGuardHome/commit/21a1187ed2d18e316d8af33c5d8bdd19034fea9f | internal/tools/go.sum |
github.com/ianlancetaylor/demangle v0.0.0-20200824232613-28f6c0f3b639/go.mod h1:aSSvb/t6k1mPoxDqO4vJh6VOCGPwU4O0C2/Eqndh1Sc= | <mask> github.com/huandu/xstrings v1.2.0/go.mod h1:DvyZB1rfVYsBIigL8HwpZgxHwXozlTgGqn63UyNX5k4=
<mask> github.com/ianlancetaylor/demangle v0.0.0-20181102032728-5e5cf60278f6/go.mod h1:aSSvb/t6k1mPoxDqO4vJh6VOCGPwU4O0C2/Eqndh1Sc=
<mask> github.com/imdario/mergo v0.3.4/go.mod h1:2EnlNZ0deacrJVfApfmtdGgDfMuh/nq6Ok1EcJh5... | [
"keep",
"add",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/AdguardTeam/AdGuardHome/commit/21a1187ed2d18e316d8af33c5d8bdd19034fea9f | internal/tools/go.sum |
<mask> github.com/nbutton23/zxcvbn-go v0.0.0-20210217022336-fa2cb2858354 h1:4kuARK6Y6FxaNu/BnU2OAaLF86eTVhP2hjTB6iMvItA=
<mask> github.com/nbutton23/zxcvbn-go v0.0.0-20210217022336-fa2cb2858354/go.mod h1:KSVJerMDfblTH7p5MZaTt+8zaT2iEk3AkVb9PQdZuE8=
<mask> github.com/nishanths/predeclared v0.0.0-20190419143655-18a43b... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/AdguardTeam/AdGuardHome/commit/21a1187ed2d18e316d8af33c5d8bdd19034fea9f | internal/tools/go.sum | |
github.com/onsi/ginkgo v1.16.4 h1:29JGrr5oVBm5ulCWet69zQkzWipVXIol6ygQUe/EzNc= | <mask> github.com/olekukonko/tablewriter v0.0.2/go.mod h1:rSAaSIOAGT9odnlyGlUfAJaoc5w2fSBUmeGDbRWPxyQ=
<mask> github.com/onsi/ginkgo v1.6.0/go.mod h1:lLunBs/Ym6LB5Z9jYTR76FiuTmxDTDusOGeTQH+WWjE=
<mask> github.com/onsi/ginkgo v1.10.3/go.mod h1:lLunBs/Ym6LB5Z9jYTR76FiuTmxDTDusOGeTQH+WWjE=
<mask> github.com/onsi/ginkg... | [
"keep",
"keep",
"keep",
"add",
"keep",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/AdguardTeam/AdGuardHome/commit/21a1187ed2d18e316d8af33c5d8bdd19034fea9f | internal/tools/go.sum |
github.com/onsi/ginkgo/v2 v2.0.0/go.mod h1:vw5CSIxN1JObi/U8gcbwft7ZxR2dgaR70JSE3/PpL4c=
github.com/onsi/ginkgo/v2 v2.1.3 h1:e/3Cwtogj0HA+25nMP1jCMDIf8RtRYbGwGGuBIFztkc=
github.com/onsi/ginkgo/v2 v2.1.3/go.mod h1:vw5CSIxN1JObi/U8gcbwft7ZxR2dgaR70JSE3/PpL4c= | <mask> github.com/onsi/ginkgo v1.6.0/go.mod h1:lLunBs/Ym6LB5Z9jYTR76FiuTmxDTDusOGeTQH+WWjE=
<mask> github.com/onsi/ginkgo v1.10.3/go.mod h1:lLunBs/Ym6LB5Z9jYTR76FiuTmxDTDusOGeTQH+WWjE=
<mask> github.com/onsi/ginkgo v1.12.1/go.mod h1:zj2OWP4+oCPe1qIXoGWkgMRwljMUYCdkwsT2108oapk=
<mask> github.com/onsi/ginkgo v1.16.4/... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/AdguardTeam/AdGuardHome/commit/21a1187ed2d18e316d8af33c5d8bdd19034fea9f | internal/tools/go.sum |
<mask> github.com/onsi/ginkgo v1.16.5 h1:8xi0RTUf59SOSfEtZMvwTvXYMzG4gV23XVHOZiXNtnE=
<mask> github.com/onsi/ginkgo v1.16.5/go.mod h1:+E8gABHa3K6zRBolWtd+ROzc/U5bkGt0FwiG042wbpU=
<mask> github.com/onsi/gomega v1.7.1/go.mod h1:XdKZgCCFLUoM/7CFJVPcG8C1xQ1AJ0vpAezJrB7JYyY=
<mask> github.com/onsi/gomega v1.10.1/go.mod ... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/AdguardTeam/AdGuardHome/commit/21a1187ed2d18e316d8af33c5d8bdd19034fea9f | internal/tools/go.sum | |
github.com/onsi/gomega v1.18.1 h1:M1GfJqGRrBrrGGsbxzV5dqM2U2ApXefZCQpkukxYRLE=
github.com/onsi/gomega v1.18.1/go.mod h1:0q+aL8jAiMXy9hbwj2mr5GziHiwhAIQpFmmtT5hitRs= | <mask> github.com/onsi/gomega v1.7.1/go.mod h1:XdKZgCCFLUoM/7CFJVPcG8C1xQ1AJ0vpAezJrB7JYyY=
<mask> github.com/onsi/gomega v1.10.1/go.mod h1:iN09h71vgCQne3DLsj+A5owkum+a2tYe+TOCB1ybHNo=
<mask> github.com/onsi/gomega v1.17.0/go.mod h1:HnhC7FXeEQY45zxNK3PPoIUhzk/80Xly9PcubAlGdZY=
<mask> github.com/opentracing/opentrac... | [
"keep",
"keep",
"add",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/AdguardTeam/AdGuardHome/commit/21a1187ed2d18e316d8af33c5d8bdd19034fea9f | internal/tools/go.sum |
github.com/securego/gosec/v2 v2.11.0 h1:+PDkpzR41OI2jrw1q6AdXZCbsNGNGT7pQjal0H0cArI=
github.com/securego/gosec/v2 v2.11.0/go.mod h1:SX8bptShuG8reGC0XS09+a4H2BoWSJi+fscA+Pulbpo= | <mask> github.com/rogpeppe/go-internal v1.8.1/go.mod h1:JeRgkft04UBgHMgCIwADu4Pn6Mtm5d4nPKWu0nJ5d+o=
<mask> github.com/rs/cors v1.7.0/go.mod h1:gFx+x8UowdsKA9AchylcLynDq+nNFfI8FkUZdN/jGCU=
<mask> github.com/russross/blackfriday v1.5.2/go.mod h1:JO/DiYxRf+HjHt06OyowR9PTA263kcR/rfWxYHBV53g=
<mask> github.com/russross... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/AdguardTeam/AdGuardHome/commit/21a1187ed2d18e316d8af33c5d8bdd19034fea9f | internal/tools/go.sum |
golang.org/x/crypto v0.0.0-20210921155107-089bfa567519/go.mod h1:GvvjBRRGRdwPK5ydBHafDWAxML/pGHZbMvKqRZ5+Abc=
golang.org/x/crypto v0.0.0-20220313003712-b769efc7c000/go.mod h1:IxCIyHEi3zRg3s0A5j5BB6A9Jmi73HwBIUl50j+osU4= | <mask> golang.org/x/crypto v0.0.0-20190605123033-f99c8df09eb5/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI=
<mask> golang.org/x/crypto v0.0.0-20191011191535-87dc89f01550/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI=
<mask> golang.org/x/crypto v0.0.0-20200622213623-75b288015ac9/go.mod h1:LzIPMQfyMNh... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/AdguardTeam/AdGuardHome/commit/21a1187ed2d18e316d8af33c5d8bdd19034fea9f | internal/tools/go.sum |
golang.org/x/exp v0.0.0-20200331195152-e8c3332aa8e5 h1:FR+oGxGfbQu1d+jglI3rCkjAjUnhRSZcUxr+DqlDLNo= | <mask> golang.org/x/exp v0.0.0-20191227195350-da58074b4299/go.mod h1:2RIsYlXP63K8oxa1u096TMicItID8zy7Y6sNkU49FU4=
<mask> golang.org/x/exp v0.0.0-20200119233911-0405dc783f0a/go.mod h1:2RIsYlXP63K8oxa1u096TMicItID8zy7Y6sNkU49FU4=
<mask> golang.org/x/exp v0.0.0-20200207192155-f17229e696bd/go.mod h1:J/WKrq2StrnmMY6+EHIK... | [
"keep",
"keep",
"keep",
"add",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/AdguardTeam/AdGuardHome/commit/21a1187ed2d18e316d8af33c5d8bdd19034fea9f | internal/tools/go.sum |
golang.org/x/exp/typeparams v0.0.0-20220218215828-6cf2b201936e/go.mod h1:AbB0pIl9nAr9wVwH+Z2ZpaocVmF5I4GyWCDIsVjR0bk=
golang.org/x/exp/typeparams v0.0.0-20220407100705-7b9b53b0aca4 h1:P5yukcpQfG1ZDKR0pGdaZCVwaNPntMxLFKYg81li58M=
golang.org/x/exp/typeparams v0.0.0-20220407100705-7b9b53b0aca4/go.mod h1:AbB0pIl9nAr9wVwH+Z... | <mask> golang.org/x/exp v0.0.0-20200224162631-6cc2880d07d6/go.mod h1:3jZMyOhIsHpP37uCMkUooju7aAi5cS1Q23tOzKc+0MU=
<mask> golang.org/x/exp v0.0.0-20200331195152-e8c3332aa8e5 h1:FR+oGxGfbQu1d+jglI3rCkjAjUnhRSZcUxr+DqlDLNo=
<mask> golang.org/x/exp v0.0.0-20200331195152-e8c3332aa8e5/go.mod h1:4M0jN8W1tt0AVLNr8HDosyJCDCD... | [
"keep",
"keep",
"add",
"keep",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/AdguardTeam/AdGuardHome/commit/21a1187ed2d18e316d8af33c5d8bdd19034fea9f | internal/tools/go.sum |
<mask> golang.org/x/mod v0.1.1-0.20191107180719-034126e5016b/go.mod h1:QqPTAvyqsEbceGzBzNggFXnrqF1CaUcvgkdR5Ot7KZg=
<mask> golang.org/x/mod v0.2.0/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA=
<mask> golang.org/x/mod v0.3.0/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA=
<mask> golang.org/x/mod v0.4... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/AdguardTeam/AdGuardHome/commit/21a1187ed2d18e316d8af33c5d8bdd19034fea9f | internal/tools/go.sum | |
golang.org/x/mod v0.6.0-dev.0.20220106191415-9b9b3d81d5e3 h1:kQgndtyPBW/JIYERgdxfwMYh3AVStj88WQTlNDi2a+o=
golang.org/x/mod v0.6.0-dev.0.20220106191415-9b9b3d81d5e3/go.mod h1:3p9vT2HGsQu2K1YbXdKPJLVgG5VJdoTa1poYQBtP1AY= | <mask> golang.org/x/mod v0.4.2/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA=
<mask> golang.org/x/mod v0.5.1/go.mod h1:5OXOZSfqPIIbmVBIIKWRFfZjPR0E5r58TLhUjH0a2Ro=
<mask> golang.org/x/net v0.0.0-20180724234803-3673e40ba225/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4=
<mask> golang.org/x/net v0.0.0... | [
"keep",
"add",
"keep",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/AdguardTeam/AdGuardHome/commit/21a1187ed2d18e316d8af33c5d8bdd19034fea9f | internal/tools/go.sum |
golang.org/x/net v0.0.0-20210226172049-e18ecbb05110/go.mod h1:m0MpNAwzfU5UDzcl9v0D8zg8gWTRqZa9RBIspLL5mdg= | <mask> golang.org/x/net v0.0.0-20200625001655-4c5254603344/go.mod h1:/O7V0waA8r7cgGh81Ro3o1hOxt32SMVPicZroKQ2sZA=
<mask> golang.org/x/net v0.0.0-20200822124328-c89045814202/go.mod h1:/O7V0waA8r7cgGh81Ro3o1hOxt32SMVPicZroKQ2sZA=
<mask> golang.org/x/net v0.0.0-20201021035429-f5854403a974/go.mod h1:sp8m0HH+o8qH0wwXwYZr... | [
"keep",
"keep",
"keep",
"add",
"keep",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/AdguardTeam/AdGuardHome/commit/21a1187ed2d18e316d8af33c5d8bdd19034fea9f | internal/tools/go.sum |
golang.org/x/sync v0.0.0-20210220032951-036812b2e83c h1:5KslGYwFpkhGh+Q16bwMP3cOontH8FOep7tGV86Y7SQ= | <mask> golang.org/x/sync v0.0.0-20190911185100-cd5d95a43a6e/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
<mask> golang.org/x/sync v0.0.0-20200317015054-43a5402ce75a/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
<mask> golang.org/x/sync v0.0.0-20200625203802-6e8e738ad208/go.mod h1:RxMgew5VJxzue5/jJ... | [
"keep",
"keep",
"keep",
"add",
"keep",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/AdguardTeam/AdGuardHome/commit/21a1187ed2d18e316d8af33c5d8bdd19034fea9f | internal/tools/go.sum |
<mask> golang.org/x/sys v0.0.0-20200615200032-f1bc736245b1/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
<mask> golang.org/x/sys v0.0.0-20200930185726-fdedc70b468f/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
<mask> golang.org/x/sys v0.0.0-20201119102817-f84b799fce68/go.mod h1:h1NjWce9XRLGQEsW7wpK... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/AdguardTeam/AdGuardHome/commit/21a1187ed2d18e316d8af33c5d8bdd19034fea9f | internal/tools/go.sum | |
<mask> golang.org/x/sys v0.0.0-20210423082822-04245dca01da/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
<mask> golang.org/x/sys v0.0.0-20210510120138-977fb7262007/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
<mask> golang.org/x/sys v0.0.0-20210615035016-665e8c7367d1/go.mod h1:oPkhp1MJrh7nUepCBck5... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/AdguardTeam/AdGuardHome/commit/21a1187ed2d18e316d8af33c5d8bdd19034fea9f | internal/tools/go.sum | |
golang.org/x/sys v0.0.0-20220315194320-039c03cc5b86/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
golang.org/x/sys v0.0.0-20220319134239-a9b59b0215f8/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
golang.org/x/sys v0.0.0-20220412211240-33da011f77ad h1:ntjMns5wyP/fN65tdBD4g8J5w8n015+iIIs9rtjXkY0=
golang... | <mask> golang.org/x/sys v0.0.0-20211019181941-9d821ace8654/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
<mask> golang.org/x/sys v0.0.0-20211216021012-1d35b9e2eb4e/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
<mask> golang.org/x/term v0.0.0-20201117132131-f5c789dd3221/go.mod h1:Nr5EML6q2oocZ2LXRh8... | [
"keep",
"add",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/AdguardTeam/AdGuardHome/commit/21a1187ed2d18e316d8af33c5d8bdd19034fea9f | internal/tools/go.sum |
<mask> golang.org/x/tools v0.0.0-20200706234117-b22de6825cf7/go.mod h1:njjCfa9FT2d7l9Bc6FUM5FLjQPp3cFF28FI3qnDFljA=
<mask> golang.org/x/tools v0.0.0-20200710042808-f1c4188a97a1/go.mod h1:njjCfa9FT2d7l9Bc6FUM5FLjQPp3cFF28FI3qnDFljA=
<mask> golang.org/x/tools v0.0.0-20201007032633-0806396f153e/go.mod h1:z6u4i615ZeAfBE... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/AdguardTeam/AdGuardHome/commit/21a1187ed2d18e316d8af33c5d8bdd19034fea9f | internal/tools/go.sum | |
golang.org/x/tools v0.1.9/go.mod h1:nABZi5QlRsZVlzPpHl034qft6wpY4eDcsTt5AaioBiU=
golang.org/x/tools v0.1.10/go.mod h1:Uh6Zz+xoGYZom868N8YTex3t7RhtHDBrE8Gzo9bV56E=
golang.org/x/tools v0.1.11-0.20220316014157-77aa08bb151a h1:ofrrl6c6NG5/IOSx/R1cyiQxxjqlur0h/TvbUhkH0II=
golang.org/x/tools v0.1.11-0.20220316014157-77aa08bb... | <mask> golang.org/x/tools v0.0.0-20201007032633-0806396f153e/go.mod h1:z6u4i615ZeAfBE4XtMziQW1fSVJXACjjbWkB/mvPzlU=
<mask> golang.org/x/tools v0.0.0-20201224043029-2b0845dc783e/go.mod h1:emZCQorbCU4vsT4fOWvOPXz4eW1wZW4PmDk9uLelYpA=
<mask> golang.org/x/tools v0.1.0/go.mod h1:xkSsbof2nBLbhDlRMhhhyNLN/zl3eTqcnHD5viDpcZ... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/AdguardTeam/AdGuardHome/commit/21a1187ed2d18e316d8af33c5d8bdd19034fea9f | internal/tools/go.sum |
<mask> golang.org/x/tools v0.1.8/go.mod h1:nABZi5QlRsZVlzPpHl034qft6wpY4eDcsTt5AaioBiU=
<mask> golang.org/x/xerrors v0.0.0-20190717185122-a985d3407aa7/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=
<mask> golang.org/x/xerrors v0.0.0-20191011141410-1b5146add898/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2O... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/AdguardTeam/AdGuardHome/commit/21a1187ed2d18e316d8af33c5d8bdd19034fea9f | internal/tools/go.sum | |
golang.org/x/xerrors v0.0.0-20220411194840-2f41105eb62f h1:GGU+dLjvlC3qDwqYgL6UgRmHXhOOgns0bZu2Ty5mm6U=
golang.org/x/xerrors v0.0.0-20220411194840-2f41105eb62f/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= | <mask> golang.org/x/xerrors v0.0.0-20191011141410-1b5146add898/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=
<mask> golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=
<mask> golang.org/x/xerrors v0.0.0-20200804184101-5ec99f83aff1/go.mod h1:I/5z698s... | [
"keep",
"keep",
"add",
"keep",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/AdguardTeam/AdGuardHome/commit/21a1187ed2d18e316d8af33c5d8bdd19034fea9f | internal/tools/go.sum |
<mask> gopkg.in/errgo.v2 v2.1.0/go.mod h1:hNsd1EY+bozCKY1Ytp96fpM3vjJbqLJn88ws8XvfDNI=
<mask> gopkg.in/fsnotify.v1 v1.4.7/go.mod h1:Tz8NjZHkW78fSQdbUxIjBTcgA1z1m8ZHf0WmKUhAMys=
<mask> gopkg.in/gcfg.v1 v1.2.3/go.mod h1:yesOnuUOFQAhST5vPY4nbZsb/huCgGGXlipJsBn0b3o=
<mask> gopkg.in/resty.v1 v1.12.0/go.mod h1:mDo4pnntr5... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/AdguardTeam/AdGuardHome/commit/21a1187ed2d18e316d8af33c5d8bdd19034fea9f | internal/tools/go.sum | |
honnef.co/go/tools v0.3.0 h1:2LdYUZ7CIxnYgskbUZfY7FPggmqnh6shBqfWa8Tn3XU=
honnef.co/go/tools v0.3.0/go.mod h1:vlRD9XErLMGT+mDuofSr0mMMquscM/1nQqtRSsh6m70=
mvdan.cc/gofumpt v0.3.1 h1:avhhrOmv0IuvQVK7fvwV91oFSGAk5/6Po8GXTzICeu8=
mvdan.cc/gofumpt v0.3.1/go.mod h1:w3ymliuxvzVx8DAutBnVyDqYb1Niy/yCJt/lk821YCE=
mvdan.cc/unpar... | <mask> honnef.co/go/tools v0.0.0-20190523083050-ea95bdfd59fc/go.mod h1:rf3lG4BRIbNafJWhAfAdb/ePZxsR/4RtNHQocxwk9r4=
<mask> honnef.co/go/tools v0.0.1-2019.2.3/go.mod h1:a3bituU0lyd329TUQxRnasdCoJDkEUEAqEt0JzvZhAg=
<mask> honnef.co/go/tools v0.0.1-2020.1.3/go.mod h1:X/FiERA/W4tHapMX5mGpAtMSVEeEUOyHaw9vFzvIQ3k=
<mask>... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/AdguardTeam/AdGuardHome/commit/21a1187ed2d18e316d8af33c5d8bdd19034fea9f | internal/tools/go.sum |
import zhCN from './__locales/zh-cn.json'; | <mask> import sv from './__locales/sv.json';
<mask> import ptBR from './__locales/pt-br.json';
<mask> import zhTW from './__locales/zh-tw.json';
<mask> import bg from './__locales/bg.json';
<mask>
<mask> const resources = {
<mask> en: {
<mask> translation: en,
<mask> },
<mask> vi: {
</s>... | [
"keep",
"keep",
"keep",
"add",
"keep",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/AdguardTeam/AdGuardHome/commit/21db166be048bb9d99455838f2ce0a24e85162cd | client/src/i18n.js |
'zh-CN': {
translation: zhCN,
}, | <mask> bg: {
<mask> translation: bg,
<mask> },
<mask> };
<mask>
<mask> i18n
<mask> .use(langDetect)
<mask> .use(initReactI18n)
</s> + client: added Simplified Chinese
Closes #611 | [
"keep",
"keep",
"add",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/AdguardTeam/AdGuardHome/commit/21db166be048bb9d99455838f2ce0a24e85162cd | client/src/i18n.js |
"zh-cn": true, | <mask> "pt-br": true,
<mask> "zh-tw": true,
<mask> "bg": true,
<mask> }
<mask>
<mask> func isLanguageAllowed(language string) bool {
<mask> l := strings.ToLower(language)
</s> + client: added Simplified Chinese
Closes #611 | [
"keep",
"keep",
"add",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/AdguardTeam/AdGuardHome/commit/21db166be048bb9d99455838f2ce0a24e85162cd | i18n.go |
'zh-cn', | <mask> 'sv',
<mask> 'pt-br',
<mask> 'zh-tw',
<mask> 'bg',
<mask> ];
<mask>
<mask> /**
<mask> * Hash content
<mask> * @param {string} content
<mask> */
</s> + client: added Simplified Chinese
Closes #611 | [
"keep",
"keep",
"keep",
"add",
"keep",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/AdguardTeam/AdGuardHome/commit/21db166be048bb9d99455838f2ce0a24e85162cd | scripts/translations/download.js |
value: "TEST.example.org", | <mask> params = newSearchParams()
<mask> params.searchCriteria = append(params.searchCriteria, searchCriteria{
<mask> criteriaType: ctDomainOrClient,
<mask> strict: true,
<mask> value: "test.example.org",
<mask> })
<mask> entries, _ = l.search(params)
<mask> assert.Equal(t, 1, len(entrie... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/AdguardTeam/AdGuardHome/commit/21dfb5ffe8352c55bdb2899c5885dae4fd2e61b0 | querylog/qlog_test.go |
value: "example.ORG", | <mask> params = newSearchParams()
<mask> params.searchCriteria = append(params.searchCriteria, searchCriteria{
<mask> criteriaType: ctDomainOrClient,
<mask> strict: false,
<mask> value: "example.org",
<mask> })
<mask> entries, _ = l.search(params)
<mask> assert.Equal(t, 3, len(entries))
... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/AdguardTeam/AdGuardHome/commit/21dfb5ffe8352c55bdb2899c5885dae4fd2e61b0 | querylog/qlog_test.go |
val = strings.ToLower(val)
searchVal := strings.ToLower(c.value) | <mask> if len(val) == 0 {
<mask> return false
<mask> }
<mask>
<mask> if c.strict && searchVal == val {
<mask> return true
<mask> }
</s> * querylog: case-insensitive search by domain name
Close #1828
Squashed commit of the following:
commit 347aff1f8c5293bd06ecc0693970fe447b6e2c75
Merge: f07c8dc0 9df7... | [
"keep",
"keep",
"add",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/AdguardTeam/AdGuardHome/commit/21dfb5ffe8352c55bdb2899c5885dae4fd2e61b0 | querylog/search_criteria.go |
if c.strict && searchVal == val { | <mask> if len(val) == 0 {
<mask> return false
<mask> }
<mask>
<mask> if c.strict && c.value == val {
<mask> return true
<mask> }
<mask> if !c.strict && strings.Contains(val, c.value) {
<mask> return true
<mask> }
</s> * querylog: case-insensitive search by domain name
Close #1828
Squashed commi... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/AdguardTeam/AdGuardHome/commit/21dfb5ffe8352c55bdb2899c5885dae4fd2e61b0 | querylog/search_criteria.go |
if !c.strict && strings.Contains(val, searchVal) { | <mask>
<mask> if c.strict && c.value == val {
<mask> return true
<mask> }
<mask> if !c.strict && strings.Contains(val, c.value) {
<mask> return true
<mask> }
<mask>
<mask> return false
<mask> }
</s> * querylog: case-insensitive search by domain name
Close #1828
Squashed commit of the following:
... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/AdguardTeam/AdGuardHome/commit/21dfb5ffe8352c55bdb2899c5885dae4fd2e61b0 | querylog/search_criteria.go |
qhost := strings.ToLower(entry.QHost)
searchVal := strings.ToLower(c.value)
if c.strict && qhost == searchVal { | <mask> // nolint (gocyclo)
<mask> func (c *searchCriteria) match(entry *logEntry) bool {
<mask> switch c.criteriaType {
<mask> case ctDomainOrClient:
<mask> if c.strict && entry.QHost == c.value {
<mask> return true
<mask> }
<mask> if !c.strict && strings.Contains(entry.QHost, c.value) {
<mask> r... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/AdguardTeam/AdGuardHome/commit/21dfb5ffe8352c55bdb2899c5885dae4fd2e61b0 | querylog/search_criteria.go |
if !c.strict && strings.Contains(qhost, searchVal) { | <mask> case ctDomainOrClient:
<mask> if c.strict && entry.QHost == c.value {
<mask> return true
<mask> }
<mask> if !c.strict && strings.Contains(entry.QHost, c.value) {
<mask> return true
<mask> }
<mask>
<mask> if c.strict && entry.IP == c.value {
<mask> return true
</s> * querylog: case... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/AdguardTeam/AdGuardHome/commit/21dfb5ffe8352c55bdb2899c5885dae4fd2e61b0 | querylog/search_criteria.go |
sync.RWMutex `yaml:"-"` | <mask> CoreDNS coreDNSConfig `yaml:"coredns"`
<mask> Filters []filter `yaml:"filters"`
<mask> UserRules []string `yaml:"user_rules"`
<mask>
<mask> sync.Mutex `yaml:"-"`
<mask> }
<mask>
<mask> type coreDNSConfig struct {
<mask> binaryFile string
<mask> coreFile string
... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/AdguardTeam/AdGuardHome/commit/2244c21b765e089e49fede0cc27af7f9f76bae4d | config.go |
config.RLock() | <mask> data := map[string]interface{}{
<mask> "enabled": config.CoreDNS.FilteringEnabled,
<mask> }
<mask>
<mask> data["filters"] = config.Filters
<mask> data["user_rules"] = config.UserRules
<mask> json, err := json.Marshal(data)
<mask> config.RUnlock()
<mask>
</s> Fix race conditions found by go's ... | [
"keep",
"keep",
"keep",
"add",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/AdguardTeam/AdGuardHome/commit/2244c21b765e089e49fede0cc27af7f9f76bae4d | control.go |
config.RUnlock() | <mask> data["user_rules"] = config.UserRules
<mask> json, err := json.Marshal(data)
<mask>
<mask> if err != nil {
<mask> errortext := fmt.Sprintf("Unable to marshal status json: %s", err)
<mask> log.Println(errortext)
</s> Fix race conditions found by go's race detector | [
"keep",
"add",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/AdguardTeam/AdGuardHome/commit/2244c21b765e089e49fede0cc27af7f9f76bae4d | control.go |
<mask>
<mask> func refreshFiltersIfNeccessary() int {
<mask> now := time.Now()
<mask> config.Lock()
<mask> defer config.Unlock()
<mask>
<mask> // deduplicate
<mask> // TODO: move it somewhere else
<mask> {
<mask> i := 0 // output index, used for deletion later
</s> Fix race conditions found by go's... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/AdguardTeam/AdGuardHome/commit/2244c21b765e089e49fede0cc27af7f9f76bae4d | control.go | |
config.Unlock() | <mask> }
<mask> }
<mask>
<mask> if updateCount > 0 {
<mask> err := writeFilterFile()
<mask> if err != nil {
<mask> errortext := fmt.Sprintf("Couldn't write filter file: %s", err)
</s> Fix race conditions found by go's race detector | [
"keep",
"add",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/AdguardTeam/AdGuardHome/commit/2244c21b765e089e49fede0cc27af7f9f76bae4d | control.go |
config.RLock() | <mask> log.Printf("Writing filter file: %s", filterpath)
<mask> // TODO: check if file contents have modified
<mask> data := []byte{}
<mask> filters := config.Filters
<mask> for _, filter := range filters {
<mask> if !filter.Enabled {
<mask> continue
</s> Fix race conditions found by go's race detecto... | [
"keep",
"keep",
"add",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/AdguardTeam/AdGuardHome/commit/2244c21b765e089e49fede0cc27af7f9f76bae4d | control.go |
config.RUnlock() | <mask> for _, rule := range config.UserRules {
<mask> data = append(data, []byte(rule)...)
<mask> data = append(data, '\n')
<mask> }
<mask> err := ioutil.WriteFile(filterpath+".tmp", data, 0644)
<mask> if err != nil {
<mask> log.Printf("Couldn't write filter file: %s", err)
<mask> return err
<mask>... | [
"keep",
"keep",
"keep",
"add",
"keep",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/AdguardTeam/AdGuardHome/commit/2244c21b765e089e49fede0cc27af7f9f76bae4d | control.go |
sync.RWMutex | <mask> QueryLogEnabled bool
<mask> BlockedTTL uint32 // in seconds, default 3600
<mask> }
<mask>
<mask> var defaultPlugin = plug{
<mask> SafeBrowsingBlockHost: "safebrowsing.block.dns.adguard.com",
<mask> ParentalBlockHost: "family.block.dns.adguard.com",
</s> Fix race conditions found... | [
"keep",
"add",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/AdguardTeam/AdGuardHome/commit/2244c21b765e089e49fede0cc27af7f9f76bae4d | coredns_plugin/coredns_plugin.go |
p.Lock() | <mask> }
<mask>
<mask> func (p *plug) onShutdown() error {
<mask> p.d.Destroy()
<mask> p.d = nil
<mask> p.Unlock()
<mask> return nil
<mask> }
<mask>
</s> Fix race conditions found by go's race detector </s> remove soa.Serial = uint32(time.Now().Unix())
return []dns.RR{soa}
</s> add soa.Serial = 1005... | [
"keep",
"keep",
"add",
"keep",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/AdguardTeam/AdGuardHome/commit/2244c21b765e089e49fede0cc27af7f9f76bae4d | coredns_plugin/coredns_plugin.go |
p.Unlock() | <mask> p.d.Destroy()
<mask> p.d = nil
<mask> return nil
<mask> }
<mask>
<mask> func (p *plug) onFinalShutdown() error {
<mask> logBufferLock.Lock()
</s> Fix race conditions found by go's race detector | [
"keep",
"add",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/AdguardTeam/AdGuardHome/commit/2244c21b765e089e49fede0cc27af7f9f76bae4d | coredns_plugin/coredns_plugin.go |
logBufferLock.Lock() | <mask>
<mask> func (p *plug) onFinalShutdown() error {
<mask> err := flushToFile(logBuffer)
<mask> if err != nil {
<mask> log.Printf("failed to flush to file: %s", err)
<mask> return err
</s> Fix race conditions found by go's race detector | [
"keep",
"add",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/AdguardTeam/AdGuardHome/commit/2244c21b765e089e49fede0cc27af7f9f76bae4d | coredns_plugin/coredns_plugin.go |
logBufferLock.Unlock() | <mask> return err
<mask> }
<mask> return nil
<mask> }
<mask>
<mask> type statsFunc func(ch interface{}, name string, text string, value float64, valueType prometheus.ValueType)
<mask>
</s> Fix race conditions found by go's race detector </s> remove sync.Mutex `yaml:"-"`
</s> add sync.RWMutex `yaml:"-"` | [
"keep",
"add",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/AdguardTeam/AdGuardHome/commit/2244c21b765e089e49fede0cc27af7f9f76bae4d | coredns_plugin/coredns_plugin.go |
p.RLock() | <mask>
<mask> func (p *plug) doStats(ch interface{}, doFunc statsFunc) {
<mask> stats := p.d.GetStats()
<mask> doStatsLookup(ch, doFunc, "safebrowsing", &stats.Safebrowsing)
<mask> doStatsLookup(ch, doFunc, "parental", &stats.Parental)
<mask> p.RUnlock()
<mask> }
</s> Fix race conditions found by go's race... | [
"keep",
"add",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/AdguardTeam/AdGuardHome/commit/2244c21b765e089e49fede0cc27af7f9f76bae4d | coredns_plugin/coredns_plugin.go |
p.RUnlock() | <mask> doStatsLookup(ch, doFunc, "safebrowsing", &stats.Safebrowsing)
<mask> doStatsLookup(ch, doFunc, "parental", &stats.Parental)
<mask> }
<mask>
<mask> // Describe is called by prometheus handler to know stat types
<mask> func (p *plug) Describe(ch chan<- *prometheus.Desc) {
<mask> p.doStats(ch, doDesc)
... | [
"keep",
"add",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/AdguardTeam/AdGuardHome/commit/2244c21b765e089e49fede0cc27af7f9f76bae4d | coredns_plugin/coredns_plugin.go |
soa := *defaultSOA | <mask> Mbox += zone
<mask> }
<mask> Ns := "fake-for-negative-caching.adguard.com."
<mask>
<mask> soa := defaultSOA
<mask> soa.Hdr = header
<mask> soa.Mbox = Mbox
<mask> soa.Ns = Ns
<mask> soa.Serial = uint32(time.Now().Unix())
<mask> return []dns.RR{soa}
</s> Fix race conditions found by go's race... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/AdguardTeam/AdGuardHome/commit/2244c21b765e089e49fede0cc27af7f9f76bae4d | coredns_plugin/coredns_plugin.go |
soa.Serial = 100500 // faster than uint32(time.Now().Unix())
return []dns.RR{&soa} | <mask> soa := defaultSOA
<mask> soa.Hdr = header
<mask> soa.Mbox = Mbox
<mask> soa.Ns = Ns
<mask> soa.Serial = uint32(time.Now().Unix())
<mask> return []dns.RR{soa}
<mask> }
<mask>
<mask> func (p *plug) writeNXdomain(ctx context.Context, w dns.ResponseWriter, r *dns.Msg) (int, error) {
<mask> state :=... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/AdguardTeam/AdGuardHome/commit/2244c21b765e089e49fede0cc27af7f9f76bae4d | coredns_plugin/coredns_plugin.go |
p.RLock() | <mask> }
<mask> for _, question := range r.Question {
<mask> host := strings.ToLower(strings.TrimSuffix(question.Name, "."))
<mask> // is it a safesearch domain?
<mask> if val, ok := p.d.SafeSearchDomain(host); ok {
<mask> rcode, err := p.replaceHostWithValAndReply(ctx, w, r, host, val, question)
<mas... | [
"keep",
"keep",
"keep",
"add",
"keep",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/AdguardTeam/AdGuardHome/commit/2244c21b765e089e49fede0cc27af7f9f76bae4d | coredns_plugin/coredns_plugin.go |
p.RUnlock() | <mask> if val, ok := p.d.SafeSearchDomain(host); ok {
<mask> rcode, err := p.replaceHostWithValAndReply(ctx, w, r, host, val, question)
<mask> if err != nil {
<mask> return rcode, dnsfilter.Result{}, err
<mask> }
<mask> p.RUnlock()
<mask> return rcode, dnsfilter.Result{Reason: dnsfilter.Filt... | [
"keep",
"keep",
"add",
"keep",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/AdguardTeam/AdGuardHome/commit/2244c21b765e089e49fede0cc27af7f9f76bae4d | coredns_plugin/coredns_plugin.go |
p.RUnlock() | <mask> p.RUnlock()
<mask> return rcode, dnsfilter.Result{}, err
<mask> }
<mask> return rcode, dnsfilter.Result{Reason: dnsfilter.FilteredSafeSearch}, err
<mask> }
<mask> p.RUnlock()
<mask>
<mask> // is it in hosts?
<mask> if val, ok := p.hosts[host]; ok {
</s> Fix race conditions found ... | [
"keep",
"keep",
"add",
"keep",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/AdguardTeam/AdGuardHome/commit/2244c21b765e089e49fede0cc27af7f9f76bae4d | coredns_plugin/coredns_plugin.go |
p.RUnlock() | <mask> p.RUnlock()
<mask> return rcode, dnsfilter.Result{Reason: dnsfilter.FilteredSafeSearch}, err
<mask> }
<mask>
<mask> // is it in hosts?
<mask> if val, ok := p.hosts[host]; ok {
<mask> // it is, if it's a loopback host, reply with NXDOMAIN
<mask> // TODO: research if it's better than 127... | [
"keep",
"keep",
"add",
"keep",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/AdguardTeam/AdGuardHome/commit/2244c21b765e089e49fede0cc27af7f9f76bae4d | coredns_plugin/coredns_plugin.go |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.