repo
stringlengths
1
152
file
stringlengths
14
221
code
stringlengths
501
25k
file_length
int64
501
25k
avg_line_length
float64
20
99.5
max_line_length
int64
21
134
extension_type
stringclasses
2 values
sentencepiece
sentencepiece-master/third_party/protobuf-lite/google/protobuf/stubs/macros.h
// Protocol Buffers - Google's data interchange format // Copyright 2008 Google Inc. All rights reserved. // https://developers.google.com/protocol-buffers/ // // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following conditions are // met: // // ...
4,903
39.528926
77
h
sentencepiece
sentencepiece-master/third_party/protobuf-lite/google/protobuf/stubs/mutex.h
// Copyright (c) 2006, Google Inc. // All rights reserved. // // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following conditions are // met: // // * Redistributions of source code must retain the above copyright // notice, this list of conditi...
6,157
31.930481
80
h
sentencepiece
sentencepiece-master/third_party/protobuf-lite/google/protobuf/stubs/once.h
// Protocol Buffers - Google's data interchange format // Copyright 2008 Google Inc. All rights reserved. // https://developers.google.com/protocol-buffers/ // // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following conditions are // met: // // ...
2,184
38.017857
73
h
sentencepiece
sentencepiece-master/third_party/protobuf-lite/google/protobuf/stubs/platform_macros.h
// Protocol Buffers - Google's data interchange format // Copyright 2012 Google Inc. All rights reserved. // https://developers.google.com/protocol-buffers/ // // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following conditions are // met: // // ...
5,108
36.844444
101
h
sentencepiece
sentencepiece-master/third_party/protobuf-lite/google/protobuf/stubs/port.h
// Protocol Buffers - Google's data interchange format // Copyright 2008 Google Inc. All rights reserved. // https://developers.google.com/protocol-buffers/ // // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following conditions are // met: // // ...
12,765
30.44335
85
h
sentencepiece
sentencepiece-master/third_party/protobuf-lite/google/protobuf/stubs/status.h
// Protocol Buffers - Google's data interchange format // Copyright 2008 Google Inc. All rights reserved. // https://developers.google.com/protocol-buffers/ // // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following conditions are // met: // // ...
3,949
30.349206
76
h
sentencepiece
sentencepiece-master/third_party/protobuf-lite/google/protobuf/stubs/statusor.h
// Protocol Buffers - Google's data interchange format // Copyright 2008 Google Inc. All rights reserved. // https://developers.google.com/protocol-buffers/ // // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following conditions are // met: // // ...
8,558
30.351648
80
h
sentencepiece
sentencepiece-master/third_party/protobuf-lite/google/protobuf/stubs/stl_util.h
// Protocol Buffers - Google's data interchange format // Copyright 2008 Google Inc. All rights reserved. // https://developers.google.com/protocol-buffers/ // // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following conditions are // met: // // ...
3,293
44.75
79
h
sentencepiece
sentencepiece-master/third_party/protobuf-lite/google/protobuf/stubs/stringpiece.h
// Protocol Buffers - Google's data interchange format // Copyright 2008 Google Inc. All rights reserved. // https://developers.google.com/protocol-buffers/ // // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following conditions are // met: // // ...
17,861
35.453061
90
h
sentencepiece
sentencepiece-master/third_party/protobuf-lite/google/protobuf/stubs/stringprintf.h
// Protocol Buffers - Google's data interchange format // Copyright 2012 Google Inc. All rights reserved. // https://developers.google.com/protocol-buffers/ // // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following conditions are // met: // // ...
3,615
41.046512
79
h
sentencepiece
sentencepiece-master/third_party/protobuf-lite/google/protobuf/stubs/time.h
// Protocol Buffers - Google's data interchange format // Copyright 2008 Google Inc. All rights reserved. // https://developers.google.com/protocol-buffers/ // // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following conditions are // met: // // ...
3,356
40.444444
80
h
ARES
ARES-master/sn_rejt_estimator.h
/* * File: sn_rejt_estimator.h * Author: sousasag * * Created on December 20, 2012, 3:50 PM */ #ifndef SN_REJT_ESTIMATOR_H #define SN_REJT_ESTIMATOR_H #ifdef __cplusplus extern "C" { #endif #include <string.h> #include <stdio.h> #include <gsl/gsl_statistics.h> #include <gsl/gsl_sort.h> #include <gsl/gsl_inter...
5,565
28.924731
106
h
LargeVis
LargeVis-master/Linux/ANNOY/annoylib.h
// Copyright (c) 2013 Spotify AB // // Licensed under the Apache License, Version 2.0 (the "License"); you may not // use this file except in compliance with the License. You may obtain a copy of // the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in w...
16,783
28.65371
117
h
LargeVis
LargeVis-master/Linux/ANNOY/kissrandom.h
#ifndef KISSRANDOM_H #define KISSRANDOM_H #include <stdint.h> // KISS = "keep it simple, stupid", but high quality random number generator // http://www0.cs.ucl.ac.uk/staff/d.jones/GoodPracticeRNG.pdf -> "Use a good RNG and build it into your code" // http://mathforum.org/kb/message.jspa?messageID=6627731 // https://...
2,118
21.072917
109
h
LargeVis
LargeVis-master/Windows/ANNOY/annoylib.h
// Copyright (c) 2013 Spotify AB // // Licensed under the Apache License, Version 2.0 (the "License"); you may not // use this file except in compliance with the License. You may obtain a copy of // the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in w...
16,762
28.669027
117
h
LargeVis
LargeVis-master/Windows/ANNOY/kissrandom.h
#ifndef KISSRANDOM_H #define KISSRANDOM_H #include <stdint.h> // KISS = "keep it simple, stupid", but high quality random number generator // http://www0.cs.ucl.ac.uk/staff/d.jones/GoodPracticeRNG.pdf -> "Use a good RNG and build it into your code" // http://mathforum.org/kb/message.jspa?messageID=6627731 // https://...
2,118
21.072917
109
h
LargeVis
LargeVis-master/Windows/ANNOY/mman.h
// This is from https://code.google.com/p/mman-win32/ // // Licensed under MIT #ifndef _MMAN_WIN32_H #define _MMAN_WIN32_H #ifndef _WIN32_WINNT // Allow use of features specific to Windows XP or later. #define _WIN32_WINNT 0x0501 // Change this to the appropriate value to target other versions o...
1,412
26.173077
104
h
null
qiskit-aer-main/contrib/runtime/aer_runtime_api.h
/** * This code is part of Qiskit. * * (C) Copyright IBM 2022. * * This code is licensed under the Apache License, Version 2.0. You may * obtain a copy of this license in the LICENSE.txt file in the root directory * of this source tree or at http://www.apache.org/licenses/LICENSE-2.0. * * Any modifications or ...
3,630
33.254717
123
h
null
qiskit-aer-main/test/runtime/runtime_sample.c
/** * This code is part of Qiskit. * * (C) Copyright IBM 2022. * * This code is licensed under the Apache License, Version 2.0. You may * obtain a copy of this license in the LICENSE.txt file in the root directory * of this source tree or at http://www.apache.org/licenses/LICENSE-2.0. * * Any modifications or ...
1,909
26.285714
78
c
OpenCC
OpenCC-master/deps/google-benchmark/include/benchmark/export.h
#ifndef BENCHMARK_EXPORT_H #define BENCHMARK_EXPORT_H #if defined(_WIN32) #define EXPORT_ATTR __declspec(dllexport) #define IMPORT_ATTR __declspec(dllimport) #define NO_EXPORT_ATTR #define DEPRECATED_ATTR __declspec(deprecated) #else // _WIN32 #define EXPORT_ATTR __attribute__((visibility("default"))) #define IMPORT_...
1,481
29.875
79
h
OpenCC
OpenCC-master/deps/google-benchmark/src/arraysize.h
#ifndef BENCHMARK_ARRAYSIZE_H_ #define BENCHMARK_ARRAYSIZE_H_ #include "internal_macros.h" namespace benchmark { namespace internal { // The arraysize(arr) macro returns the # of elements in an array arr. // The expression is a compile-time constant, and therefore can be // used in defining new arrays, for example. ...
1,108
31.617647
80
h
OpenCC
OpenCC-master/deps/google-benchmark/src/benchmark_api_internal.h
#ifndef BENCHMARK_API_INTERNAL_H #define BENCHMARK_API_INTERNAL_H #include <cmath> #include <iosfwd> #include <limits> #include <memory> #include <string> #include <vector> #include "benchmark/benchmark.h" #include "commandlineflags.h" namespace benchmark { namespace internal { // Information kept per benchmark we ...
2,923
32.227273
80
h
OpenCC
OpenCC-master/deps/google-benchmark/src/benchmark_register.h
#ifndef BENCHMARK_REGISTER_H #define BENCHMARK_REGISTER_H #include <algorithm> #include <limits> #include <vector> #include "check.h" namespace benchmark { namespace internal { // Append the powers of 'mult' in the closed interval [lo, hi]. // Returns iterator to the start of the inserted range. template <typename ...
3,006
26.336364
76
h
OpenCC
OpenCC-master/deps/google-benchmark/src/benchmark_runner.h
// Copyright 2015 Google Inc. All rights reserved. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable...
3,126
26.429825
78
h
OpenCC
OpenCC-master/deps/google-benchmark/src/check.h
#ifndef CHECK_H_ #define CHECK_H_ #include <cmath> #include <cstdlib> #include <ostream> #include "benchmark/export.h" #include "internal_macros.h" #include "log.h" #if defined(__GNUC__) || defined(__clang__) #define BENCHMARK_NOEXCEPT noexcept #define BENCHMARK_NOEXCEPT_OP(x) noexcept(x) #elif defined(_MSC_VER) && ...
3,079
27.785047
79
h
OpenCC
OpenCC-master/deps/google-benchmark/src/colorprint.h
#ifndef BENCHMARK_COLORPRINT_H_ #define BENCHMARK_COLORPRINT_H_ #include <cstdarg> #include <iostream> #include <string> namespace benchmark { enum LogColor { COLOR_DEFAULT, COLOR_RED, COLOR_GREEN, COLOR_YELLOW, COLOR_BLUE, COLOR_MAGENTA, COLOR_CYAN, COLOR_WHITE }; std::string FormatString(const char...
760
21.382353
74
h
OpenCC
OpenCC-master/deps/google-benchmark/src/commandlineflags.h
#ifndef BENCHMARK_COMMANDLINEFLAGS_H_ #define BENCHMARK_COMMANDLINEFLAGS_H_ #include <cstdint> #include <map> #include <string> #include "benchmark/export.h" // Macro for referencing flags. #define FLAG(name) FLAGS_##name // Macros for declaring flags. #define BM_DECLARE_bool(name) BENCHMARK_EXPORT extern bool FLAG...
5,044
36.649254
79
h
OpenCC
OpenCC-master/deps/google-benchmark/src/complexity.h
// Copyright 2016 Ismael Jimenez Martinez. All rights reserved. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required ...
1,979
34.357143
80
h
OpenCC
OpenCC-master/deps/google-benchmark/src/counter.h
// Copyright 2015 Google Inc. All rights reserved. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable...
1,129
33.242424
75
h
OpenCC
OpenCC-master/deps/google-benchmark/src/cycleclock.h
// ---------------------------------------------------------------------- // CycleClock // A CycleClock tells you the current time in Cycles. The "time" // is actually time since power-on. This is like time() but doesn't // involve a system call and is much more precise. // // NOTE: Not all cpu/platform/kern...
9,288
39.386957
80
h
OpenCC
OpenCC-master/deps/google-benchmark/src/internal_macros.h
#ifndef BENCHMARK_INTERNAL_MACROS_H_ #define BENCHMARK_INTERNAL_MACROS_H_ /* Needed to detect STL */ #include <cstdlib> // clang-format off #ifndef __has_feature #define __has_feature(x) 0 #endif #if defined(__clang__) #if defined(__ibmxl__) #if !defined(COMPILER_IBMXL) #define COMPILER_IBMXL #endif...
2,761
24.109091
66
h
OpenCC
OpenCC-master/deps/google-benchmark/src/log.h
#ifndef BENCHMARK_LOG_H_ #define BENCHMARK_LOG_H_ #include <iostream> #include <ostream> // NOTE: this is also defined in benchmark.h but we're trying to avoid a // dependency. // The _MSVC_LANG check should detect Visual Studio 2015 Update 3 and newer. #if __cplusplus >= 201103L || (defined(_MSVC_LANG) && _MSVC_LANG...
2,181
23.516854
82
h
OpenCC
OpenCC-master/deps/google-benchmark/src/mutex.h
#ifndef BENCHMARK_MUTEX_H_ #define BENCHMARK_MUTEX_H_ #include <condition_variable> #include <mutex> #include "check.h" // Enable thread safety attributes only with clang. // The attributes can be safely erased when compiling with other compilers. #if defined(HAVE_THREAD_SAFETY_ATTRIBUTES) #define THREAD_ANNOTATION_...
4,578
28.352564
79
h
OpenCC
OpenCC-master/deps/google-benchmark/src/perf_counters.h
// Copyright 2021 Google Inc. All rights reserved. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable...
6,759
33.141414
79
h
OpenCC
OpenCC-master/deps/google-benchmark/src/re.h
// Copyright 2015 Google Inc. All rights reserved. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable...
3,903
23.553459
78
h
OpenCC
OpenCC-master/deps/google-benchmark/src/statistics.h
// Copyright 2016 Ismael Jimenez Martinez. All rights reserved. // Copyright 2017 Roman Lebedev. All rights reserved. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www....
1,495
33
80
h
OpenCC
OpenCC-master/deps/google-benchmark/src/string_util.h
#ifndef BENCHMARK_STRING_UTIL_H_ #define BENCHMARK_STRING_UTIL_H_ #include <sstream> #include <string> #include <utility> #include <vector> #include "benchmark/export.h" #include "check.h" #include "internal_macros.h" namespace benchmark { void AppendHumanReadable(int n, std::string* str); std::string HumanReadabl...
2,004
27.239437
78
h
OpenCC
OpenCC-master/deps/google-benchmark/src/thread_manager.h
#ifndef BENCHMARK_THREAD_MANAGER_H #define BENCHMARK_THREAD_MANAGER_H #include <atomic> #include "benchmark/benchmark.h" #include "mutex.h" namespace benchmark { namespace internal { class ThreadManager { public: explicit ThreadManager(int num_threads) : alive_threads_(num_threads), start_stop_barrier_(num...
1,574
23.609375
72
h
OpenCC
OpenCC-master/deps/google-benchmark/src/thread_timer.h
#ifndef BENCHMARK_THREAD_TIMER_H #define BENCHMARK_THREAD_TIMER_H #include "check.h" #include "timers.h" namespace benchmark { namespace internal { class ThreadTimer { explicit ThreadTimer(bool measure_process_cpu_time_) : measure_process_cpu_time(measure_process_cpu_time_) {} public: static ThreadTimer ...
2,297
25.413793
80
h
OpenCC
OpenCC-master/deps/google-benchmark/src/timers.h
#ifndef BENCHMARK_TIMERS_H #define BENCHMARK_TIMERS_H #include <chrono> #include <string> namespace benchmark { // Return the CPU usage of the current process double ProcessCPUUsage(); // Return the CPU usage of the children of the current process double ChildrenCPUUsage(); // Return the CPU usage of the current t...
1,132
22.122449
80
h
OpenCC
OpenCC-master/deps/google-benchmark/test/output_test.h
#ifndef TEST_OUTPUT_TEST_H #define TEST_OUTPUT_TEST_H #undef NDEBUG #include <functional> #include <initializer_list> #include <memory> #include <sstream> #include <string> #include <utility> #include <vector> #include "../src/re.h" #include "benchmark/benchmark.h" #define CONCAT2(x, y) x##y #define CONCAT(x, y) CON...
7,900
36.268868
106
h
OpenCC
OpenCC-master/deps/gtest-1.12.1/googlemock/include/gmock/gmock-cardinalities.h
// Copyright 2007, Google Inc. // All rights reserved. // // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following conditions are // met: // // * Redistributions of source code must retain the above copyright // notice, this list of conditions ...
6,102
37.14375
80
h
OpenCC
OpenCC-master/deps/gtest-1.12.1/googlemock/include/gmock/gmock-more-matchers.h
// Copyright 2013, Google Inc. // All rights reserved. // // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following conditions are // met: // // * Redistributions of source code must retain the above copyright // notice, this list of conditions ...
4,416
34.910569
78
h
OpenCC
OpenCC-master/deps/gtest-1.12.1/googlemock/include/gmock/gmock-nice-strict.h
// Copyright 2008, Google Inc. // All rights reserved. // // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following conditions are // met: // // * Redistributions of source code must retain the above copyright // notice, this list of conditions ...
10,840
37.996403
80
h
OpenCC
OpenCC-master/deps/gtest-1.12.1/googlemock/include/gmock/gmock.h
// Copyright 2007, Google Inc. // All rights reserved. // // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following conditions are // met: // // * Redistributions of source code must retain the above copyright // notice, this list of conditions ...
3,723
37.391753
74
h
OpenCC
OpenCC-master/deps/gtest-1.12.1/googlemock/include/gmock/internal/gmock-internal-utils.h
// Copyright 2007, Google Inc. // All rights reserved. // // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following conditions are // met: // // * Redistributions of source code must retain the above copyright // notice, this list of conditions ...
19,325
38.360489
80
h
OpenCC
OpenCC-master/deps/gtest-1.12.1/googlemock/include/gmock/internal/gmock-port.h
// Copyright 2008, Google Inc. // All rights reserved. // // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following conditions are // met: // // * Redistributions of source code must retain the above copyright // notice, this list of conditions ...
6,064
42.321429
79
h
OpenCC
OpenCC-master/deps/gtest-1.12.1/googlemock/include/gmock/internal/gmock-pp.h
#ifndef GOOGLEMOCK_INCLUDE_GMOCK_INTERNAL_GMOCK_PP_H_ #define GOOGLEMOCK_INCLUDE_GMOCK_INTERNAL_GMOCK_PP_H_ // Expands and concatenates the arguments. Constructed macros reevaluate. #define GMOCK_PP_CAT(_1, _2) GMOCK_PP_INTERNAL_CAT(_1, _2) // Expands and stringifies the only argument. #define GMOCK_PP_STRINGIZE(...)...
13,491
47.185714
81
h
OpenCC
OpenCC-master/deps/gtest-1.12.1/googlemock/include/gmock/internal/custom/gmock-matchers.h
// Copyright 2015, Google Inc. // All rights reserved. // // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following conditions are // met: // // * Redistributions of source code must retain the above copyright // notice, this list of conditions ...
1,918
49.5
73
h
OpenCC
OpenCC-master/deps/gtest-1.12.1/googlemock/include/gmock/internal/custom/gmock-port.h
// Copyright 2015, Google Inc. // All rights reserved. // // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following conditions are // met: // // * Redistributions of source code must retain the above copyright // notice, this list of conditions ...
1,953
46.658537
73
h
OpenCC
OpenCC-master/deps/gtest-1.12.1/googlemock/test/gmock-matchers_test.h
// Copyright 2007, Google Inc. // All rights reserved. // // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following conditions are // met: // // * Redistributions of source code must retain the above copyright // notice, this list of conditions ...
6,276
31.523316
80
h
OpenCC
OpenCC-master/deps/gtest-1.12.1/googlemock/test/gmock_link_test.h
// Copyright 2009, Google Inc. // All rights reserved. // // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following conditions are // met: // // * Redistributions of source code must retain the above copyright // notice, this list of conditions ...
19,583
27.382609
80
h
OpenCC
OpenCC-master/deps/gtest-1.12.1/googletest/include/gtest/gtest-assertion-result.h
// Copyright 2005, Google Inc. // All rights reserved. // // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following conditions are // met: // // * Redistributions of source code must retain the above copyright // notice, this list of conditions ...
8,502
34.726891
76
h
OpenCC
OpenCC-master/deps/gtest-1.12.1/googletest/include/gtest/gtest-death-test.h
// Copyright 2005, Google Inc. // All rights reserved. // // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following conditions are // met: // // * Redistributions of source code must retain the above copyright // notice, this list of conditions ...
14,886
42.026012
80
h
OpenCC
OpenCC-master/deps/gtest-1.12.1/googletest/include/gtest/gtest-message.h
// Copyright 2005, Google Inc. // All rights reserved. // // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following conditions are // met: // // * Redistributions of source code must retain the above copyright // notice, this list of conditions ...
8,109
36.031963
75
h
OpenCC
OpenCC-master/deps/gtest-1.12.1/googletest/include/gtest/gtest-param-test.h
// Copyright 2008, Google Inc. // All rights reserved. // // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following conditions are // met: // // * Redistributions of source code must retain the above copyright // notice, this list of conditions ...
23,927
42.824176
80
h
OpenCC
OpenCC-master/deps/gtest-1.12.1/googletest/include/gtest/gtest-spi.h
// Copyright 2007, Google Inc. // All rights reserved. // // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following conditions are // met: // // * Redistributions of source code must retain the above copyright // notice, this list of conditions ...
12,824
50.506024
80
h
OpenCC
OpenCC-master/deps/gtest-1.12.1/googletest/include/gtest/gtest-test-part.h
// Copyright 2008, Google Inc. // All rights reserved. // // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following conditions are // met: // // * Redistributions of source code must retain the above copyright // notice, this list of conditions ...
7,111
36.235602
80
h
OpenCC
OpenCC-master/deps/gtest-1.12.1/googletest/include/gtest/gtest-typed-test.h
// Copyright 2008 Google Inc. // All Rights Reserved. // // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following conditions are // met: // // * Redistributions of source code must retain the above copyright // notice, this list of conditions a...
15,921
46.957831
80
h
OpenCC
OpenCC-master/deps/gtest-1.12.1/googletest/include/gtest/gtest_pred_impl.h
// Copyright 2006, Google Inc. // All rights reserved. // // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following conditions are // met: // // * Redistributions of source code must retain the above copyright // notice, this list of conditions ...
12,783
44.657143
79
h
OpenCC
OpenCC-master/deps/gtest-1.12.1/googletest/include/gtest/gtest_prod.h
// Copyright 2006, Google Inc. // All rights reserved. // // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following conditions are // met: // // * Redistributions of source code must retain the above copyright // notice, this list of conditions ...
2,502
40.032787
80
h
OpenCC
OpenCC-master/deps/gtest-1.12.1/googletest/include/gtest/internal/gtest-death-test-internal.h
// Copyright 2005, Google Inc. // All rights reserved. // // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following conditions are // met: // // * Redistributions of source code must retain the above copyright // notice, this list of conditions ...
13,892
44.254072
80
h
OpenCC
OpenCC-master/deps/gtest-1.12.1/googletest/include/gtest/internal/gtest-filepath.h
// Copyright 2008, Google Inc. // All rights reserved. // // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following conditions are // met: // // * Redistributions of source code must retain the above copyright // notice, this list of conditions ...
10,220
45.248869
80
h
OpenCC
OpenCC-master/deps/gtest-1.12.1/googletest/include/gtest/internal/gtest-port-arch.h
// Copyright 2015, Google Inc. // All rights reserved. // // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following conditions are // met: // // * Redistributions of source code must retain the above copyright // notice, this list of conditions ...
4,178
34.117647
79
h
OpenCC
OpenCC-master/deps/gtest-1.12.1/googletest/include/gtest/internal/gtest-string.h
// Copyright 2005, Google Inc. // All rights reserved. // // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following conditions are // met: // // * Redistributions of source code must retain the above copyright // notice, this list of conditions ...
7,301
40.022472
80
h
OpenCC
OpenCC-master/deps/gtest-1.12.1/googletest/include/gtest/internal/gtest-type-util.h
// Copyright 2008 Google Inc. // All Rights Reserved. // // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following conditions are // met: // // * Redistributions of source code must retain the above copyright // notice, this list of conditions a...
6,247
32.411765
80
h
OpenCC
OpenCC-master/deps/gtest-1.12.1/googletest/include/gtest/internal/custom/gtest-port.h
// Copyright 2015, Google Inc. // All rights reserved. // // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following conditions are // met: // // * Redistributions of source code must retain the above copyright // notice, this list of conditions ...
1,873
48.315789
73
h
OpenCC
OpenCC-master/deps/gtest-1.12.1/googletest/include/gtest/internal/custom/gtest-printers.h
// Copyright 2015, Google Inc. // All rights reserved. // // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following conditions are // met: // // * Redistributions of source code must retain the above copyright // notice, this list of conditions ...
2,094
47.72093
75
h
OpenCC
OpenCC-master/deps/gtest-1.12.1/googletest/include/gtest/internal/custom/gtest.h
// Copyright 2015, Google Inc. // All rights reserved. // // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following conditions are // met: // // * Redistributions of source code must retain the above copyright // notice, this list of conditions ...
1,858
47.921053
73
h
OpenCC
OpenCC-master/deps/gtest-1.12.1/googletest/samples/prime_tables.h
// Copyright 2008 Google Inc. // All Rights Reserved. // // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following conditions are // met: // // * Redistributions of source code must retain the above copyright // notice, this list of conditions a...
4,255
33.048
79
h
OpenCC
OpenCC-master/deps/gtest-1.12.1/googletest/samples/sample1.h
// Copyright 2005, Google Inc. // All rights reserved. // // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following conditions are // met: // // * Redistributions of source code must retain the above copyright // notice, this list of conditions ...
1,919
44.714286
75
h
OpenCC
OpenCC-master/deps/gtest-1.12.1/googletest/samples/sample2.h
// Copyright 2005, Google Inc. // All rights reserved. // // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following conditions are // met: // // * Redistributions of source code must retain the above copyright // notice, this list of conditions ...
2,981
36.275
80
h
OpenCC
OpenCC-master/deps/gtest-1.12.1/googletest/samples/sample3-inl.h
// Copyright 2005, Google Inc. // All rights reserved. // // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following conditions are // met: // // * Redistributions of source code must retain the above copyright // notice, this list of conditions ...
5,376
30.261628
73
h
OpenCC
OpenCC-master/deps/gtest-1.12.1/googletest/samples/sample4.h
// Copyright 2005, Google Inc. // All rights reserved. // // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following conditions are // met: // // * Redistributions of source code must retain the above copyright // notice, this list of conditions ...
2,132
38.5
73
h
OpenCC
OpenCC-master/deps/gtest-1.12.1/googletest/test/googletest-param-test-test.h
// Copyright 2008, Google Inc. // All rights reserved. // // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following conditions are // met: // // * Redistributions of source code must retain the above copyright // notice, this list of conditions ...
2,280
44.62
74
h
OpenCC
OpenCC-master/deps/gtest-1.12.1/googletest/test/gtest-typed-test_test.h
// Copyright 2008 Google Inc. // All Rights Reserved. // // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following conditions are // met: // // * Redistributions of source code must retain the above copyright // notice, this list of conditions a...
2,393
40.275862
77
h
OpenCC
OpenCC-master/deps/gtest-1.12.1/googletest/test/production.h
// Copyright 2006, Google Inc. // All rights reserved. // // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following conditions are // met: // // * Redistributions of source code must retain the above copyright // notice, this list of conditions ...
2,131
37.071429
73
h
OpenCC
OpenCC-master/deps/marisa-0.2.6/include/marisa/base.h
#ifndef MARISA_BASE_H_ #define MARISA_BASE_H_ // Old Visual C++ does not provide stdint.h. #ifndef _MSC_VER #include <stdint.h> #endif // _MSC_VER #ifdef __cplusplus #include <cstddef> #else // __cplusplus #include <stddef.h> #endif // __cplusplus #ifdef __cplusplus extern "C" { #endif // __cplusplus #ifdef ...
6,613
32.573604
79
h
OpenCC
OpenCC-master/deps/marisa-0.2.6/include/marisa/exception.h
#ifndef MARISA_EXCEPTION_H_ #define MARISA_EXCEPTION_H_ #include <exception> #include "marisa/base.h" namespace marisa { // An exception object keeps a filename, a line number, an error code and an // error message. The message format is as follows: // "__FILE__:__LINE__: error_code: error_message" class Exception...
2,504
29.180723
76
h
OpenCC
OpenCC-master/deps/marisa-0.2.6/include/marisa/key.h
#ifndef MARISA_KEY_H_ #define MARISA_KEY_H_ #include "marisa/base.h" namespace marisa { class Key { public: Key() : ptr_(NULL), length_(0), union_() { union_.id = 0; } Key(const Key &key) : ptr_(key.ptr_), length_(key.length_), union_(key.union_) {} Key &operator=(const Key &key) { ptr_ = key...
1,817
20.139535
71
h
OpenCC
OpenCC-master/deps/marisa-0.2.6/include/marisa/keyset.h
#ifndef MARISA_KEYSET_H_ #define MARISA_KEYSET_H_ #include "marisa/key.h" namespace marisa { class Keyset { public: enum { BASE_BLOCK_SIZE = 4096, EXTRA_BLOCK_SIZE = 1024, KEY_BLOCK_SIZE = 256 }; Keyset(); void push_back(const Key &key); void push_back(const Key &key, char end_marker); ...
1,788
21.08642
74
h
OpenCC
OpenCC-master/deps/marisa-0.2.6/lib/marisa/grimoire/intrin.h
#ifndef MARISA_GRIMOIRE_INTRIN_H_ #define MARISA_GRIMOIRE_INTRIN_H_ #include "marisa/base.h" #if defined(__x86_64__) || defined(_M_X64) #define MARISA_X64 #elif defined(__i386__) || defined(_M_IX86) #define MARISA_X86 #else // defined(__i386__) || defined(_M_IX86) #ifdef MARISA_USE_BMI2 #undef MARISA_USE_BMI2 ...
3,317
22.870504
48
h
OpenCC
OpenCC-master/deps/marisa-0.2.6/lib/marisa/grimoire/algorithm/sort.h
#ifndef MARISA_GRIMOIRE_ALGORITHM_SORT_H_ #define MARISA_GRIMOIRE_ALGORITHM_SORT_H_ #include "marisa/base.h" namespace marisa { namespace grimoire { namespace algorithm { namespace details { enum { MARISA_INSERTION_SORT_THRESHOLD = 10 }; template <typename T> int get_label(const T &unit, std::size_t depth) { MA...
4,335
21.010152
71
h
OpenCC
OpenCC-master/deps/marisa-0.2.6/lib/marisa/grimoire/io/mapper.h
#ifndef MARISA_GRIMOIRE_IO_MAPPER_H_ #define MARISA_GRIMOIRE_IO_MAPPER_H_ #include <cstdio> #include "marisa/base.h" namespace marisa { namespace grimoire { namespace io { class Mapper { public: Mapper(); ~Mapper(); void open(const char *filename); void open(const void *ptr, std::size_t size); template...
1,490
20.926471
74
h
OpenCC
OpenCC-master/deps/marisa-0.2.6/lib/marisa/grimoire/trie/cache.h
#ifndef MARISA_GRIMOIRE_TRIE_CACHE_H_ #define MARISA_GRIMOIRE_TRIE_CACHE_H_ #include <cfloat> #include "marisa/base.h" namespace marisa { namespace grimoire { namespace trie { class Cache { public: Cache() : parent_(0), child_(0), union_() { union_.weight = FLT_MIN; } Cache(const Cache &cache) : pa...
1,774
20.646341
77
h
OpenCC
OpenCC-master/deps/marisa-0.2.6/lib/marisa/grimoire/trie/config.h
#ifndef MARISA_GRIMOIRE_TRIE_CONFIG_H_ #define MARISA_GRIMOIRE_TRIE_CONFIG_H_ #include "marisa/base.h" namespace marisa { namespace grimoire { namespace trie { class Config { public: Config() : num_tries_(MARISA_DEFAULT_NUM_TRIES), cache_level_(MARISA_DEFAULT_CACHE), tail_mode_(MARISA_DEFAUL...
3,597
22.064103
65
h
OpenCC
OpenCC-master/deps/marisa-0.2.6/lib/marisa/grimoire/trie/entry.h
#ifndef MARISA_GRIMOIRE_TRIE_ENTRY_H_ #define MARISA_GRIMOIRE_TRIE_ENTRY_H_ #include "marisa/base.h" namespace marisa { namespace grimoire { namespace trie { class Entry { public: Entry() : ptr_(NULL), length_(0), id_(0) {} Entry(const Entry &entry) : ptr_(entry.ptr_), length_(entry.length_), id_(entry.id...
1,825
21.268293
71
h
OpenCC
OpenCC-master/deps/marisa-0.2.6/lib/marisa/grimoire/trie/history.h
#ifndef MARISA_GRIMOIRE_TRIE_STATE_HISTORY_H_ #define MARISA_GRIMOIRE_TRIE_STATE_HISTORY_H_ #include "marisa/base.h" namespace marisa { namespace grimoire { namespace trie { class History { public: History() : node_id_(0), louds_pos_(0), key_pos_(0), link_id_(MARISA_INVALID_LINK_ID), key_id_(MARISA_...
1,598
23.227273
75
h
OpenCC
OpenCC-master/deps/marisa-0.2.6/lib/marisa/grimoire/trie/key.h
#ifndef MARISA_GRIMOIRE_TRIE_KEY_H_ #define MARISA_GRIMOIRE_TRIE_KEY_H_ #include "marisa/base.h" namespace marisa { namespace grimoire { namespace trie { class Key { public: Key() : ptr_(NULL), length_(0), union_(), id_(0) { union_.terminal = 0; } Key(const Key &entry) : ptr_(entry.ptr_), length_(en...
5,355
22.594714
71
h
OpenCC
OpenCC-master/deps/marisa-0.2.6/lib/marisa/grimoire/trie/louds-trie.h
#ifndef MARISA_GRIMOIRE_TRIE_LOUDS_TRIE_H_ #define MARISA_GRIMOIRE_TRIE_LOUDS_TRIE_H_ #include "marisa/keyset.h" #include "marisa/agent.h" #include "marisa/grimoire/vector.h" #include "marisa/grimoire/trie/config.h" #include "marisa/grimoire/trie/key.h" #include "marisa/grimoire/trie/tail.h" #include "marisa/grimoire/...
3,694
26.37037
76
h
OpenCC
OpenCC-master/deps/marisa-0.2.6/lib/marisa/grimoire/trie/range.h
#ifndef MARISA_GRIMOIRE_TRIE_RANGE_H_ #define MARISA_GRIMOIRE_TRIE_RANGE_H_ #include "marisa/base.h" namespace marisa { namespace grimoire { namespace trie { class Range { public: Range() : begin_(0), end_(0), key_pos_(0) {} void set_begin(std::size_t begin) { MARISA_DEBUG_IF(begin > MARISA_UINT32_MAX, MAR...
2,468
20.284483
76
h
OpenCC
OpenCC-master/deps/marisa-0.2.6/lib/marisa/grimoire/trie/state.h
#ifndef MARISA_GRIMOIRE_TRIE_STATE_H_ #define MARISA_GRIMOIRE_TRIE_STATE_H_ #include "marisa/grimoire/vector.h" #include "marisa/grimoire/trie/history.h" namespace marisa { namespace grimoire { namespace trie { // A search agent has its internal state and the status codes are defined // below. typedef enum StatusCod...
2,761
22.40678
73
h
OpenCC
OpenCC-master/deps/marisa-0.2.6/lib/marisa/grimoire/trie/tail.h
#ifndef MARISA_GRIMOIRE_TRIE_TAIL_H_ #define MARISA_GRIMOIRE_TRIE_TAIL_H_ #include "marisa/agent.h" #include "marisa/grimoire/vector.h" #include "marisa/grimoire/trie/entry.h" namespace marisa { namespace grimoire { namespace trie { class Tail { public: Tail(); void build(Vector<Entry> &entries, Vector<UInt32>...
1,645
21.547945
70
h
OpenCC
OpenCC-master/deps/marisa-0.2.6/lib/marisa/grimoire/vector/bit-vector.h
#ifndef MARISA_GRIMOIRE_VECTOR_BIT_VECTOR_H_ #define MARISA_GRIMOIRE_VECTOR_BIT_VECTOR_H_ #include "marisa/grimoire/vector/rank-index.h" #include "marisa/grimoire/vector/vector.h" namespace marisa { namespace grimoire { namespace vector { class BitVector { public: #if MARISA_WORD_SIZE == 64 typedef UInt64 Unit; #...
4,271
22.733333
77
h
OpenCC
OpenCC-master/deps/marisa-0.2.6/lib/marisa/grimoire/vector/flat-vector.h
#ifndef MARISA_GRIMOIRE_VECTOR_FLAT_VECTOR_H_ #define MARISA_GRIMOIRE_VECTOR_FLAT_VECTOR_H_ #include "marisa/grimoire/vector/vector.h" namespace marisa { namespace grimoire { namespace vector { class FlatVector { public: #if MARISA_WORD_SIZE == 64 typedef UInt64 Unit; #else // MARISA_WORD_SIZE == 64 typedef UI...
5,116
23.839806
79
h
OpenCC
OpenCC-master/deps/marisa-0.2.6/lib/marisa/grimoire/vector/pop-count.h
#ifndef MARISA_GRIMOIRE_VECTOR_POP_COUNT_H_ #define MARISA_GRIMOIRE_VECTOR_POP_COUNT_H_ #include "marisa/grimoire/intrin.h" namespace marisa { namespace grimoire { namespace vector { #if MARISA_WORD_SIZE == 64 class PopCount { public: explicit PopCount(UInt64 x) : value_() { x = (x & 0x5555555555555555ULL) +...
2,659
22.963964
73
h
OpenCC
OpenCC-master/deps/marisa-0.2.6/lib/marisa/grimoire/vector/rank-index.h
#ifndef MARISA_GRIMOIRE_VECTOR_RANK_INDEX_H_ #define MARISA_GRIMOIRE_VECTOR_RANK_INDEX_H_ #include "marisa/base.h" namespace marisa { namespace grimoire { namespace vector { class RankIndex { public: RankIndex() : abs_(0), rel_lo_(0), rel_hi_(0) {} void set_abs(std::size_t value) { MARISA_DEBUG_IF(value > ...
2,276
26.433735
79
h
OpenCC
OpenCC-master/deps/marisa-0.2.6/lib/marisa/grimoire/vector/vector.h
#ifndef MARISA_GRIMOIRE_VECTOR_VECTOR_H_ #define MARISA_GRIMOIRE_VECTOR_VECTOR_H_ #include <new> #include "marisa/grimoire/io.h" namespace marisa { namespace grimoire { namespace vector { template <typename T> class Vector { public: Vector() : buf_(), objs_(NULL), const_objs_(NULL), size_(0), capac...
6,384
23.844358
74
h
OpenCC
OpenCC-master/deps/pybind11-2.10.0/include/pybind11/attr.h
/* pybind11/attr.h: Infrastructure for processing custom type and function attributes Copyright (c) 2016 Wenzel Jakob <wenzel.jakob@epfl.ch> All rights reserved. Use of this source code is governed by a BSD-style license that can be found in the LICENSE file. */ #pragma once #include "detail/com...
23,979
34.316642
99
h
OpenCC
OpenCC-master/deps/pybind11-2.10.0/include/pybind11/buffer_info.h
/* pybind11/buffer_info.h: Python buffer object interface Copyright (c) 2016 Wenzel Jakob <wenzel.jakob@epfl.ch> All rights reserved. Use of this source code is governed by a BSD-style license that can be found in the LICENSE file. */ #pragma once #include "detail/common.h" PYBIND11_NAMESPACE_BEGIN...
7,069
35.443299
97
h