Linux vmi284606.contaboserver.net 4.15.0-213-generic #224-Ubuntu SMP Mon Jun 19 13:30:12 UTC 2023 x86_64
Apache/2.4.57 (Ubuntu)
: 167.86.127.34 | : 216.73.217.31
Cant Read [ /etc/named.conf ]
7.2.24-0ubuntu0.18.04.17
root
Terminal
AUTO ROOT
Adminer
Backdoor Destroyer
Linux Exploit
Lock Shell
Lock File
Create User
CREATE RDP
PHP Mailer
BACKCONNECT
UNLOCK SHELL
HASH IDENTIFIER
README
+ Create Folder
+ Create File
/
usr /
local /
go /
src /
internal /
trace /
[ HOME SHELL ]
Name
Size
Permission
Action
testdata
[ DIR ]
drwxr-xr-x
gc.go
22.42
KB
-rw-r--r--
gc_test.go
5.41
KB
-rw-r--r--
goroutines.go
8.72
KB
-rw-r--r--
mkcanned.bash
761
B
-rwxr-xr-x
mud.go
5.71
KB
-rw-r--r--
mud_test.go
2.18
KB
-rw-r--r--
order.go
7.27
KB
-rw-r--r--
parser.go
35.3
KB
-rw-r--r--
parser_test.go
2.86
KB
-rw-r--r--
writer.go
854
B
-rw-r--r--
Delete
Unzip
Zip
${this.title}
Close
Code Editor : mud_test.go
// Copyright 2017 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package trace import ( "math/rand" "testing" ) func TestMUD(t *testing.T) { // Insert random uniforms and check histogram mass and // cumulative sum approximations. rnd := rand.New(rand.NewSource(42)) mass := 0.0 var mud mud for i := 0; i < 100; i++ { area, l, r := rnd.Float64(), rnd.Float64(), rnd.Float64() if rnd.Intn(10) == 0 { r = l } t.Log(l, r, area) mud.add(l, r, area) mass += area // Check total histogram weight. hmass := 0.0 for _, val := range mud.hist { hmass += val } if !aeq(mass, hmass) { t.Fatalf("want mass %g, got %g", mass, hmass) } // Check inverse cumulative sum approximations. for j := 0.0; j < mass; j += mass * 0.099 { mud.setTrackMass(j) l, u, ok := mud.approxInvCumulativeSum() inv, ok2 := mud.invCumulativeSum(j) if !ok || !ok2 { t.Fatalf("inverse cumulative sum failed: approx %v, exact %v", ok, ok2) } if !(l <= inv && inv < u) { t.Fatalf("inverse(%g) = %g, not ∈ [%g, %g)", j, inv, l, u) } } } } func TestMUDTracking(t *testing.T) { // Test that the tracked mass is tracked correctly across // updates. rnd := rand.New(rand.NewSource(42)) const uniforms = 100 for trackMass := 0.0; trackMass < uniforms; trackMass += uniforms / 50 { var mud mud mass := 0.0 mud.setTrackMass(trackMass) for i := 0; i < uniforms; i++ { area, l, r := rnd.Float64(), rnd.Float64(), rnd.Float64() mud.add(l, r, area) mass += area l, u, ok := mud.approxInvCumulativeSum() inv, ok2 := mud.invCumulativeSum(trackMass) if mass < trackMass { if ok { t.Errorf("approx(%g) = [%g, %g), but mass = %g", trackMass, l, u, mass) } if ok2 { t.Errorf("exact(%g) = %g, but mass = %g", trackMass, inv, mass) } } else { if !ok { t.Errorf("approx(%g) failed, but mass = %g", trackMass, mass) } if !ok2 { t.Errorf("exact(%g) failed, but mass = %g", trackMass, mass) } if ok && ok2 && !(l <= inv && inv < u) { t.Errorf("inverse(%g) = %g, not ∈ [%g, %g)", trackMass, inv, l, u) } } } } }
Close