Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/aksnzhy/xlearn
/ functions
Functions
3,349 in github.com/aksnzhy/xlearn
⨍
Functions
3,349
◇
Types & classes
1,370
↓ 9 callers
Method
get
gtest/include/gtest/internal/gtest-port.h:899
↓ 9 callers
Method
total_test_case_count
Gets the number of all test cases.
gtest/src/gtest.cc:718
↓ 8 callers
Function
AddGlobalTestEnvironment
A convenient wrapper for adding an environment for the test program. You should call this before RUN_ALL_TESTS() is called, probably in main(). If y
gtest/include/gtest/gtest.h:1318
↓ 8 callers
Function
ClearCurrentTestPartResults
gtest/test/gtest_unittest.cc:352
↓ 8 callers
Function
Combine
gtest/fused-src/gtest/gtest.h:16840
↓ 8 callers
Function
ExpectNonFatalFailureRecordingPropertyWithReservedKeyOutsideOfTestCase
gtest/test/gtest_unittest.cc:1959
↓ 8 callers
Method
FindSimilar
Find the most similar string from string list. Return the minimal levenshtein distance.
src/base/levenshtein_distance.cc:43
↓ 8 callers
Method
Generate
Generates a random number from [0, range), using a Linear Congruential Generator (LCG). Crashes if 'range' is 0 or greater than kMaxRange.
gtest/src/gtest.cc:291
↓ 8 callers
Function
GetCapturedStderr
Stops capturing stderr and returns the captured string.
gtest/src/gtest-port.cc:669
↓ 8 callers
Method
GetNumK
Get the number of k.
src/data/model_parameters.h:153
↓ 8 callers
Function
GetRandomSeedFromFlag
Returns a random seed in range [1, kMaxRandomSeed] based on the given --gtest_random_seed flag value.
gtest/src/gtest-internal-inl.h:135
↓ 8 callers
Function
GetTimeInMillis
Returns the current time in milliseconds.
gtest/fused-src/gtest/gtest-all.cc:2264
↓ 8 callers
Function
HandleExceptionsInMethodIfSupported
gtest/src/gtest.cc:2086
↓ 8 callers
Function
HandleExceptionsInMethodIfSupported
gtest/fused-src/gtest/gtest-all.cc:3570
↓ 8 callers
Function
HasPrefix
gtest/test/gtest-printers_test.cc:544
↓ 8 callers
Function
HashFile
Calculate the hash value of current txt file. If one_block == true, we just read a small chunk of data. If one_block == false, we read all the data fr
src/base/file_util.h:327
↓ 8 callers
Method
Initialize
Basic contributor.
src/data/model_parameters.cc:39
↓ 8 callers
Function
IsEven
Returns true iff the argument is an even number.
gtest/test/gtest_unittest.cc:2104
↓ 8 callers
Function
IsSubstringImpl
gtest/src/gtest.cc:1260
↓ 8 callers
Function
IsSubstringImpl
gtest/fused-src/gtest/gtest-all.cc:2744
↓ 8 callers
Function
MakeToken
Creates a new instance of Token.
gtest/scripts/pump.py:237
↓ 8 callers
Function
ParseBoolFlag
Parses a string for a bool flag, in the form of either "--flag=value" or "--flag". In the former case, the value is taken as true as long as it does
gtest/src/gtest.cc:4715
↓ 8 callers
Function
ParseBoolFlag
Parses a string for a bool flag, in the form of either "--flag=value" or "--flag". In the former case, the value is taken as true as long as it does
gtest/fused-src/gtest/gtest-all.cc:6199
↓ 8 callers
Function
ParseNaturalNumber
gtest/fused-src/gtest/gtest-all.cc:1403
↓ 8 callers
Function
PrintCharsAsStringTo
gtest/src/gtest-printers.cc:255
↓ 8 callers
Function
PrintCharsAsStringTo
gtest/fused-src/gtest/gtest-all.cc:9268
↓ 8 callers
Method
ReAlloc
ReAlloc memoryfor the DMatrix. This function will first release the original memory allocated for the DMatrix, and then re-allocate memory for this ne
src/data/data_structure.h:156
↓ 8 callers
Method
Reset
Reset loss_sum_ and total_example_
src/loss/loss.h:122
↓ 8 callers
Function
ResultIsEven
A predicate function that returns AssertionResult for use in EXPECT/ASSERT_TRUE/FALSE.
gtest/test/gtest_unittest.cc:2127
↓ 8 callers
Function
ResultIsEvenNoExplanation
A predicate function that returns AssertionResult but gives no explanation why it succeeds. Needed for testing that EXPECT/ASSERT_FALSE handles such f
gtest/test/gtest_unittest.cc:2137
↓ 8 callers
Function
ShouldRunTestOnShard
Given the total number of shards, the shard index, and the test id, returns true iff the test should be run on this shard. The test id is some arbitra
gtest/src/gtest.cc:4444
↓ 8 callers
Method
Size
Gets the number of elements.
gtest/samples/sample3-inl.h:102
↓ 8 callers
Function
Skip
(lines, pos, regex)
gtest/scripts/pump.py:261
↓ 8 callers
Function
StrDup
gtest/fused-src/gtest/gtest.h:2818
↓ 8 callers
Function
StringStreamToString
Converts the buffer in a stringstream to an std::string, converting NUL bytes to "\\0" along the way.
gtest/src/gtest.cc:1659
↓ 8 callers
Function
UniversalPrint
gtest/include/gtest/gtest-printers.h:752
↓ 8 callers
Function
XLearnSetBool
Set bool param
src/c_api/c_api.cc:467
↓ 8 callers
Function
XLearnSetFloat
Set float param
src/c_api/c_api.cc:423
↓ 8 callers
Function
c_str
gtest/fused-src/gtest/gtest.h:3565
↓ 8 callers
Method
setSigmoid
Convert output by using sigmoid
python-package/xlearn/xlearn.py:228
↓ 8 callers
Method
test_to_run_count
Gets the number of tests that should run.
gtest/src/gtest.cc:760
↓ 8 callers
Method
x
gtest/test/gtest_unittest.cc:5034
↓ 7 callers
Function
AddFatalFailure
AddFatalFailure() and AddNonfatalFailure() must be stand-alone functions (i.e. their definitions cannot be inlined at the call sites), or C++Builder w
gtest/test/gtest_unittest.cc:1091
↓ 7 callers
Function
AddNonfatalFailure
gtest/test/gtest_unittest.cc:1095
↓ 7 callers
Function
BoolFromGTestEnv
Reads and returns the Boolean environment variable corresponding to the given flag; if it's not set, returns default_value. The value is considered t
gtest/src/gtest-port.cc:766
↓ 7 callers
Function
BoolFromGTestEnv
Reads and returns the Boolean environment variable corresponding to the given flag; if it's not set, returns default_value. The value is considered t
gtest/fused-src/gtest/gtest-all.cc:8976
↓ 7 callers
Function
CheckTestFailureCount
gtest/test/gtest_stress_test.cc:117
↓ 7 callers
Method
CreateDirectoriesRecursively
Create directories so that path exists. Returns true if successful or if the directories already exist; returns false if unable to create directories
gtest/src/gtest-filepath.cc:303
↓ 7 callers
Function
CreateParser
src/reader/parser_test.cc:283
↓ 7 callers
Method
Enqueue
Adds an element to the end of the queue. A copy of the element is created using the copy constructor, and then stored in the queue. Changes made to t
gtest/samples/sample3-inl.h:116
↓ 7 callers
Method
FileOrDirectoryExists
Returns true if pathname describes something findable in the file-system, either a file, directory, or whatever.
gtest/src/gtest-filepath.cc:204
↓ 7 callers
Function
ForEach
gtest/fused-src/gtest/gtest-all.cc:696
↓ 7 callers
Function
GTEST_LOCK_EXCLUDED_
gtest/src/gtest.cc:3514
↓ 7 callers
Function
GTEST_LOCK_EXCLUDED_
gtest/fused-src/gtest/gtest-all.cc:4998
↓ 7 callers
Function
GetLastErrnoDescription
Returns the message describing the last system error in errno.
gtest/src/gtest-death-test.cc:304
↓ 7 callers
Method
GetTestCase
Gets the i-th test case among all the test cases. i can range from 0 to total_test_case_count() - 1. If i is not in that range, returns NULL.
gtest/src/gtest.cc:3732
↓ 7 callers
Function
GetTestTypeId
Returns the type ID of ::testing::Test. We should always call this instead of GetTypeId< ::testing::Test>() to get the type ID of testing::Test. Thi
gtest/src/gtest.cc:598
↓ 7 callers
Function
GlobalFunction
A global function that's expected to die.
gtest/test/gtest-death-test_test.cc:170
↓ 7 callers
Method
IsAbsolutePath
Returns true if pathname describes an absolute path.
gtest/src/gtest-filepath.cc:260
↓ 7 callers
Function
IsAsciiPunct
gtest/src/gtest-port.cc:211
↓ 7 callers
Method
Notify
Notifies all threads created with this notification to start. Must be called from the controller thread.
gtest/fused-src/gtest/gtest.h:2320
↓ 7 callers
Function
ParseCodeNode
(tokens)
gtest/scripts/pump.py:564
↓ 7 callers
Function
ParseExpNode
(token)
gtest/scripts/pump.py:470
↓ 7 callers
Function
PrintByRef
gtest/test/gtest-printers_test.cc:245
↓ 7 callers
Method
Release
TODO(vladl@google.com): Factor the search functionality into Vector::Find.
gtest/src/gtest.cc:2944
↓ 7 callers
Function
RemoveMatchingTests
Removes output of specified tests from a Google Test program's output. This function strips not only the beginning and the end of a test but also
gtest/test/gtest_output_test.py:167
↓ 7 callers
Function
Shuffle
gtest/src/gtest-internal-inl.h:332
↓ 7 callers
Function
StringStreamToString
Converts the buffer in a stringstream to an std::string, converting NUL bytes to "\\0" along the way.
gtest/fused-src/gtest/gtest-all.cc:3143
↓ 7 callers
Function
SumOverTestCaseList
Iterates over a vector of TestCases, keeping a running sum of the results of calling a given int-returning method on each. Returns the sum.
gtest/src/gtest.cc:321
↓ 7 callers
Function
SumOverTestCaseList
Iterates over a vector of TestCases, keeping a running sum of the results of calling a given int-returning method on each. Returns the sum.
gtest/fused-src/gtest/gtest-all.cc:1805
↓ 7 callers
Function
UniversalTersePrint
gtest/fused-src/gtest/gtest.h:9934
↓ 7 callers
Function
WriteStringToFile
Write a std:string to disk file.
src/base/file_util.h:296
↓ 7 callers
Function
__map_mman_error
src/base/mman.h:67
↓ 7 callers
Method
begin
gtest/include/gtest/internal/gtest-param-util.h:171
↓ 7 callers
Method
c_string
Gets the 0-terminated C string this MyString object represents.
gtest/samples/sample2.h:74
↓ 7 callers
Method
disabled_test_count
Gets the number of disabled tests.
gtest/src/gtest.cc:745
↓ 7 callers
Method
end
gtest/include/gtest/internal/gtest-param-util.h:172
↓ 7 callers
Method
original_working_dir
Returns the working directory when the first TEST() or TEST_F() was executed.
gtest/src/gtest.cc:3934
↓ 7 callers
Method
os_stack_trace_getter
Returns the current OS stack trace getter if it is not NULL; otherwise, creates an OsStackTraceGetter, makes it the current getter, and returns it.
gtest/src/gtest.cc:4584
↓ 7 callers
Method
os_stack_trace_getter
Returns the current OS stack trace getter if it is not NULL; otherwise, creates an OsStackTraceGetter, makes it the current getter, and returns it.
gtest/fused-src/gtest/gtest-all.cc:6068
↓ 7 callers
Method
swap
Swap two scoped pointers.
src/base/scoped_ptr.h:126
↓ 6 callers
Function
Abort
gtest/fused-src/gtest/gtest-all.cc:8909
↓ 6 callers
Function
CaptureStdout
Starts capturing stdout.
gtest/src/gtest-port.cc:654
↓ 6 callers
Function
ChDir
gtest/fused-src/gtest/gtest.h:2877
↓ 6 callers
Function
ChopLowBits
Chops off the n lowest bits from a bit pattern. Returns the n lowest bits. As a side effect, the original bit pattern will be shifted to the right b
gtest/src/gtest.cc:1424
↓ 6 callers
Function
ChopLowBits
Chops off the n lowest bits from a bit pattern. Returns the n lowest bits. As a side effect, the original bit pattern will be shifted to the right b
gtest/fused-src/gtest/gtest-all.cc:2908
↓ 6 callers
Method
Clear
Finalize xLearn
src/solver/solver.cc:620
↓ 6 callers
Function
CopyArray
gtest/fused-src/gtest/gtest.h:7889
↓ 6 callers
Method
DMatrix
Constructor
src/data/data_structure.h:136
↓ 6 callers
Method
Dequeue
Removes the head of the queue and returns it. Returns NULL if the queue is empty.
gtest/samples/sample3-inl.h:131
↓ 6 callers
Function
DieIf
A unary function that may die.
gtest/test/gtest-death-test_test.cc:179
↓ 6 callers
Function
ExpectNonFatalFailureRecordingPropertyWithReservedKeyForCurrentTest
gtest/test/gtest_unittest.cc:1943
↓ 6 callers
Function
ExpectNonFatalFailureRecordingPropertyWithReservedKeyForCurrentTestCase
gtest/test/gtest_unittest.cc:1951
↓ 6 callers
Function
FlushInfoLog
gtest/fused-src/gtest/gtest.h:2151
↓ 6 callers
Function
FormatEpochTimeInMillisAsIso8601
Converts the given epoch time in milliseconds to a date string in the ISO 8601 format, without the timezone information.
gtest/src/gtest.cc:3221
↓ 6 callers
Function
FormatFileLocation
Formats a source file path and a line number as they would appear in an error message from the compiler used to compile this code.
gtest/fused-src/gtest/gtest-all.cc:8666
↓ 6 callers
Function
FormatRegexSyntaxError
Helper function used by ValidateRegex() to format error messages.
gtest/src/gtest-port.cc:250
↓ 6 callers
Function
FormatRegexSyntaxError
Helper function used by ValidateRegex() to format error messages.
gtest/fused-src/gtest/gtest-all.cc:8460
↓ 6 callers
Function
GenerateFatalFailureInAnotherThread
gtest/test/gtest_stress_test.cc:172
↓ 6 callers
Function
GetCurrentExecutableName
Returns the current application's name, removing directory path if that is present.
gtest/src/gtest.cc:377
← previous
next →
201–300 of 3,349, ranked by callers