hexsha stringlengths 40 40 | size int64 7 1.05M | ext stringclasses 13
values | lang stringclasses 1
value | max_stars_repo_path stringlengths 4 269 | max_stars_repo_name stringlengths 5 108 | max_stars_repo_head_hexsha stringlengths 40 40 | max_stars_repo_licenses listlengths 1 9 | max_stars_count int64 1 191k ⌀ | max_stars_repo_stars_event_min_datetime stringlengths 24 24 ⌀ | max_stars_repo_stars_event_max_datetime stringlengths 24 24 ⌀ | max_issues_repo_path stringlengths 4 269 | max_issues_repo_name stringlengths 5 116 | max_issues_repo_head_hexsha stringlengths 40 40 | max_issues_repo_licenses listlengths 1 9 | max_issues_count int64 1 67k ⌀ | max_issues_repo_issues_event_min_datetime stringlengths 24 24 ⌀ | max_issues_repo_issues_event_max_datetime stringlengths 24 24 ⌀ | max_forks_repo_path stringlengths 4 269 | max_forks_repo_name stringlengths 5 116 | max_forks_repo_head_hexsha stringlengths 40 40 | max_forks_repo_licenses listlengths 1 9 | max_forks_count int64 1 105k ⌀ | max_forks_repo_forks_event_min_datetime stringlengths 24 24 ⌀ | max_forks_repo_forks_event_max_datetime stringlengths 24 24 ⌀ | content stringlengths 7 1.05M | avg_line_length float64 1.21 330k | max_line_length int64 6 990k | alphanum_fraction float64 0.01 0.99 | author_id stringlengths 2 40 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
32e6533de5b346bd81e03b49cd9b3eb218db796c | 75,592 | cpp | C++ | Javelin/Tools/jasm/arm64/Encoder.cpp | jthlim/JavelinPattern | 8add264f88ac620de109ddf797f7431779bbd9ea | [
"BSD-3-Clause"
] | 10 | 2016-04-06T01:24:00.000Z | 2021-11-16T10:16:51.000Z | Javelin/Tools/jasm/arm64/Encoder.cpp | jthlim/JavelinPattern | 8add264f88ac620de109ddf797f7431779bbd9ea | [
"BSD-3-Clause"
] | 1 | 2016-05-06T05:38:58.000Z | 2016-05-09T16:42:43.000Z | Javelin/Tools/jasm/arm64/Encoder.cpp | jthlim/JavelinPattern | 8add264f88ac620de109ddf797f7431779bbd9ea | [
"BSD-3-Clause"
] | null | null | null | //============================================================================
#include "Javelin/Tools/jasm/arm64/Encoder.h"
#include "Javelin/Assembler/arm64/ActionType.h"
#include "Javelin/Assembler/BitUtility.h"
#include "Javelin/Tools/jasm/arm64/Action.h"
#include "Javelin/Tools/jasm/arm64/Assembler.h"
#include "... | 33.746429 | 161 | 0.653574 | jthlim |
32ea483ee5cc63a7130af76c05a3432674468358 | 348 | cc | C++ | util/time_point.cc | jpanikulam/experiments | be36319a89f8baee54d7fa7618b885edb7025478 | [
"MIT"
] | 1 | 2019-04-14T11:40:28.000Z | 2019-04-14T11:40:28.000Z | util/time_point.cc | jpanikulam/experiments | be36319a89f8baee54d7fa7618b885edb7025478 | [
"MIT"
] | 5 | 2018-04-18T13:54:29.000Z | 2019-08-22T20:04:17.000Z | util/time_point.cc | jpanikulam/experiments | be36319a89f8baee54d7fa7618b885edb7025478 | [
"MIT"
] | 1 | 2018-12-24T03:45:47.000Z | 2018-12-24T03:45:47.000Z | #include "util/time_point.hh"
std::ostream& operator<<(std::ostream& os, const jcc::TimePoint& t) {
os << std::chrono::duration_cast<std::chrono::microseconds>(t.time_since_epoch())
.count();
return os;
}
std::ostream& operator<<(std::ostream& os, const jcc::TimeDuration& dt) {
os << jcc::to_seconds... | 26.769231 | 83 | 0.643678 | jpanikulam |
32f5304bd59ea305e234822976d9ef1f830a26b8 | 305 | cpp | C++ | Projetos em C++/codigos em C++/2_codigo em C++/questt6.cpp | melqrozendo/codigoemC-- | e971db875b41899776a47bb2de683c425f2a734e | [
"MIT"
] | null | null | null | Projetos em C++/codigos em C++/2_codigo em C++/questt6.cpp | melqrozendo/codigoemC-- | e971db875b41899776a47bb2de683c425f2a734e | [
"MIT"
] | null | null | null | Projetos em C++/codigos em C++/2_codigo em C++/questt6.cpp | melqrozendo/codigoemC-- | e971db875b41899776a47bb2de683c425f2a734e | [
"MIT"
] | null | null | null | #include<stdio.h>
main(){
int idade;
printf("digite a idade do jogador:");
scanf("%d",&idade);
if(10<=idade and idade<=14){printf("infantil");}
else if(15<=idade and idade<=17){printf("juvenil");}
else if(18<=idade and idade<=40){printf("adulto");}
else if(idade>=41){printf("master");}
}
| 27.727273 | 56 | 0.629508 | melqrozendo |
32f72d43c549a54747deab36fa9995af8861e5d1 | 10,461 | cpp | C++ | tests/Engine/Shader/ShaderUtils.cpp | jayrulez/NazaraEngine | e0310cd141f3cc11dbe8abfd5bfedf6b61de1a99 | [
"BSD-3-Clause-Clear",
"Apache-2.0",
"MIT"
] | null | null | null | tests/Engine/Shader/ShaderUtils.cpp | jayrulez/NazaraEngine | e0310cd141f3cc11dbe8abfd5bfedf6b61de1a99 | [
"BSD-3-Clause-Clear",
"Apache-2.0",
"MIT"
] | null | null | null | tests/Engine/Shader/ShaderUtils.cpp | jayrulez/NazaraEngine | e0310cd141f3cc11dbe8abfd5bfedf6b61de1a99 | [
"BSD-3-Clause-Clear",
"Apache-2.0",
"MIT"
] | null | null | null | #include <Engine/Shader/ShaderUtils.hpp>
#include <Nazara/Core/StringExt.hpp>
#include <Nazara/Shader/GlslWriter.hpp>
#include <Nazara/Shader/LangWriter.hpp>
#include <Nazara/Shader/ShaderLangParser.hpp>
#include <Nazara/Shader/SpirvPrinter.hpp>
#include <Nazara/Shader/SpirvWriter.hpp>
#include <Nazara/Shader/Ast/AstRe... | 34.524752 | 247 | 0.710735 | jayrulez |
32f838592e804be4485b0ae416168a3d980f31ce | 398 | cpp | C++ | test/snippet/alphabet/aminoacid/aa27_construction.cpp | marehr/nomchop | a88bfb6f5d4a291a71b6b3192eeac81fdc450d43 | [
"CC-BY-4.0",
"CC0-1.0"
] | 1 | 2021-03-01T11:12:56.000Z | 2021-03-01T11:12:56.000Z | test/snippet/alphabet/aminoacid/aa27_construction.cpp | simonsasse/seqan3 | 0ff2e117952743f081735df9956be4c512f4ccba | [
"CC0-1.0",
"CC-BY-4.0"
] | 2 | 2017-05-17T07:16:19.000Z | 2020-02-13T16:10:10.000Z | test/snippet/alphabet/aminoacid/aa27_construction.cpp | simonsasse/seqan3 | 0ff2e117952743f081735df9956be4c512f4ccba | [
"CC0-1.0",
"CC-BY-4.0"
] | null | null | null | #include <seqan3/alphabet/aminoacid/aa27.hpp>
#include <seqan3/core/debug_stream.hpp>
int main()
{
using seqan3::operator""_aa27;
seqan3::aa27 my_letter{'A'_aa27};
my_letter.assign_char('C');
my_letter.assign_char('?'); // all unknown characters are converted to 'X'_aa27 implicitly
if (my_le... | 24.875 | 94 | 0.658291 | marehr |
32f852eb5375c249ea85b0469c8eb308cc94a527 | 4,164 | cpp | C++ | src/console/surveyeditor/surveyeditor.cpp | KDE/kuserfeedback | 7dea960e4e83a5a002ad9d3fd53ad32c9b46e96c | [
"MIT",
"BSD-3-Clause"
] | 7 | 2017-04-26T07:00:24.000Z | 2020-07-30T10:19:36.000Z | src/console/surveyeditor/surveyeditor.cpp | KDE/kuserfeedback | 7dea960e4e83a5a002ad9d3fd53ad32c9b46e96c | [
"MIT",
"BSD-3-Clause"
] | null | null | null | src/console/surveyeditor/surveyeditor.cpp | KDE/kuserfeedback | 7dea960e4e83a5a002ad9d3fd53ad32c9b46e96c | [
"MIT",
"BSD-3-Clause"
] | 3 | 2017-06-17T19:16:07.000Z | 2021-12-13T20:40:51.000Z | /*
SPDX-FileCopyrightText: 2016 Volker Krause <vkrause@kde.org>
SPDX-License-Identifier: MIT
*/
#include "surveyeditor.h"
#include "ui_surveyeditor.h"
#include "surveydialog.h"
#include <model/surveymodel.h>
#include <rest/restapi.h>
#include <QMessageBox>
#include <QNetworkReply>
#include <QUuid>
using n... | 31.78626 | 122 | 0.679635 | KDE |
32fbbdfc86159f46f80658a55926618bca353a72 | 7,591 | cpp | C++ | Hydro-Engine/PanelConfig.cpp | PerezEnric/Hydro-Engine | 16b99dc6092889cf2b15cf33aaa9567242eaf6fd | [
"MIT"
] | 4 | 2019-10-15T19:58:57.000Z | 2020-12-02T20:15:13.000Z | Hydro-Engine/PanelConfig.cpp | PerezEnric/Hydro-Engine | 16b99dc6092889cf2b15cf33aaa9567242eaf6fd | [
"MIT"
] | null | null | null | Hydro-Engine/PanelConfig.cpp | PerezEnric/Hydro-Engine | 16b99dc6092889cf2b15cf33aaa9567242eaf6fd | [
"MIT"
] | null | null | null | #include "PanelConfig.h"
#include "Application.h"
#include "ModuleWindow.h"
#include "ModuleRenderer3D.h"
#include "ImGui/imconfig.h"
#include "ImGui/imgui.h"
#include "ImGui/imgui_impl_sdl.h"
#include "ImGui/imgui_impl_opengl3.h"
#include "Glew/include/glew.h"
#include "SDL/include/SDL.h"
#include "SDL/include/SDL_... | 27.305755 | 146 | 0.697932 | PerezEnric |
32fc1e6782acb2bac7b3b46e36f6e3b84bff48ee | 84 | cpp | C++ | EglCpp/Sources/SceneSystem/GameObject.cpp | Egliss/EglCppBase | 94d24b6e5e91da880833237a879138760ae9c669 | [
"MIT"
] | null | null | null | EglCpp/Sources/SceneSystem/GameObject.cpp | Egliss/EglCppBase | 94d24b6e5e91da880833237a879138760ae9c669 | [
"MIT"
] | 2 | 2020-08-04T18:14:51.000Z | 2020-08-06T19:19:11.000Z | EglCpp/Sources/SceneSystem/GameObject.cpp | Egliss/EglCppBase | 94d24b6e5e91da880833237a879138760ae9c669 | [
"MIT"
] | null | null | null | #include "pch.h"
#include "GameObject.hpp"
void Egliss::GameObject::Update()
{
}
| 10.5 | 33 | 0.678571 | Egliss |
32fc5af5e9197cb81c69d8cc17fe1fc4c94c610c | 7,662 | cpp | C++ | official/cv/crnn_seq2seq_ocr/infer/mxbase/src/CrnnSeq2SeqOcr.cpp | mindspore-ai/models | 9127b128e2961fd698977e918861dadfad00a44c | [
"Apache-2.0"
] | 77 | 2021-10-15T08:32:37.000Z | 2022-03-30T13:09:11.000Z | official/cv/crnn_seq2seq_ocr/infer/mxbase/src/CrnnSeq2SeqOcr.cpp | mindspore-ai/models | 9127b128e2961fd698977e918861dadfad00a44c | [
"Apache-2.0"
] | 3 | 2021-10-30T14:44:57.000Z | 2022-02-14T06:57:57.000Z | official/cv/crnn_seq2seq_ocr/infer/mxbase/src/CrnnSeq2SeqOcr.cpp | mindspore-ai/models | 9127b128e2961fd698977e918861dadfad00a44c | [
"Apache-2.0"
] | 24 | 2021-10-15T08:32:45.000Z | 2022-03-24T18:45:20.000Z | /**
* Copyright 2021 Huawei Technologies Co., Ltd
*
* 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... | 35.308756 | 101 | 0.67502 | mindspore-ai |
32fce4fc22ef67c72a91ff6d7e5b8fde23521314 | 9,852 | cpp | C++ | source/perm_group_disjoint_decomp.cpp | goens/TUD_computational_group_theory | 3f4703cae1ac049089db23eafc321e8daca2d99d | [
"MIT"
] | 2 | 2018-09-10T09:31:17.000Z | 2018-10-14T15:19:20.000Z | source/perm_group_disjoint_decomp.cpp | goens/TUD_computational_group_theory | 3f4703cae1ac049089db23eafc321e8daca2d99d | [
"MIT"
] | 7 | 2020-06-11T07:25:08.000Z | 2020-12-19T09:07:50.000Z | source/perm_group_disjoint_decomp.cpp | goens/TUD_computational_group_theory | 3f4703cae1ac049089db23eafc321e8daca2d99d | [
"MIT"
] | 2 | 2020-09-10T19:31:57.000Z | 2020-12-09T13:17:50.000Z | #include <algorithm>
#include <cassert>
#include <iterator>
#include <memory>
#include <unordered_set>
#include <utility>
#include <vector>
#include "dbg.hpp"
#include "orbit.hpp"
#include "perm.hpp"
#include "perm_group.hpp"
#include "perm_set.hpp"
#include "timer.hpp"
namespace mpsym
{
namespace internal
{
std::v... | 26.063492 | 86 | 0.671133 | goens |
fd058a4c024c9d1a7782bcd708fa00491f5f2403 | 1,550 | cpp | C++ | EU4toV3Tests/MapperTests/NationMergeMapperTests/NationMergeMapperTests.cpp | ParadoxGameConverters/EU4toVic3 | e055d5fbaadc21e37f4bce5b3a4f4c1e415598fa | [
"MIT"
] | 5 | 2021-05-22T20:10:05.000Z | 2021-05-28T08:07:05.000Z | EU4toV3Tests/MapperTests/NationMergeMapperTests/NationMergeMapperTests.cpp | klorpa/EU4toVic3 | 36b53a76402c715f618dd88f0caf962072bda8cf | [
"MIT"
] | 13 | 2021-05-25T08:26:11.000Z | 2022-01-13T18:24:12.000Z | EU4toV3Tests/MapperTests/NationMergeMapperTests/NationMergeMapperTests.cpp | Zemurin/EU4toVic3 | 532b9a11e0e452be54d89e12cff5fb1f84ac3d11 | [
"MIT"
] | 5 | 2021-05-22T13:45:43.000Z | 2021-12-25T00:00:04.000Z | #include "NationMergeMapper/NationMergeMapper.h"
#include "gtest/gtest.h"
#include <gmock/gmock-matchers.h>
using testing::UnorderedElementsAre;
TEST(Mappers_NationMergeMapperTests, primitivesDefaultToDefaults)
{
std::stringstream input;
mappers::NationMergeMapper mapper;
mapper.loadNationMerge(input);
EXPECT_FAL... | 27.678571 | 70 | 0.719355 | ParadoxGameConverters |
fd061de7a51cf338dc6761060f1d72226ec2164b | 397 | hpp | C++ | test/test_utility.hpp | MasterMann/argparse | e6a8802551d54fbd5a9eefb543239776dc763e96 | [
"MIT"
] | 1,101 | 2019-04-02T13:59:40.000Z | 2022-03-31T23:14:00.000Z | test/test_utility.hpp | MasterMann/argparse | e6a8802551d54fbd5a9eefb543239776dc763e96 | [
"MIT"
] | 108 | 2019-04-08T23:46:13.000Z | 2022-03-31T15:13:58.000Z | test/test_utility.hpp | MasterMann/argparse | e6a8802551d54fbd5a9eefb543239776dc763e96 | [
"MIT"
] | 144 | 2019-04-09T22:06:47.000Z | 2022-03-31T13:09:43.000Z | #ifndef ARGPARSE_TEST_UTILITY_HPP
#define ARGPARSE_TEST_UTILITY_HPP
namespace testutility {
// Get value at index from std::list
template <typename T>
T get_from_list(const std::list<T>& aList, size_t aIndex) {
if (aList.size() > aIndex) {
auto tIterator = aList.begin();
std::advance(tIterator, aIndex);
... | 22.055556 | 59 | 0.720403 | MasterMann |
fd069a7ad27de3e9edbf15ba67acec45a71612f8 | 362 | cpp | C++ | Code/Testing Tools/Boost and Google test/Google test/exception_g/1.cpp | souvik3333/Testing-and-Debugging-Tools | 1fb7ddd8efa91a6e7ac6519705761961a7e52c66 | [
"MIT"
] | null | null | null | Code/Testing Tools/Boost and Google test/Google test/exception_g/1.cpp | souvik3333/Testing-and-Debugging-Tools | 1fb7ddd8efa91a6e7ac6519705761961a7e52c66 | [
"MIT"
] | null | null | null | Code/Testing Tools/Boost and Google test/Google test/exception_g/1.cpp | souvik3333/Testing-and-Debugging-Tools | 1fb7ddd8efa91a6e7ac6519705761961a7e52c66 | [
"MIT"
] | null | null | null | #include<bits/stdc++.h>
#include<gtest/gtest.h>
using namespace std;
TEST(mytest,test1){
stack <int> st;
st.push(1);
EXPECT_ANY_THROW(st.pop());
// EXPECT_NO_THROW(st.pop());
// EXPECT_THROW(st.pop(),out_of_range);
cout<<"continued";
}
int main(int argc,char **argv){
testing::InitGoogleTest(... | 24.133333 | 43 | 0.651934 | souvik3333 |
fd06f7a6e996a8a46a110d12acc3235b44cea3fa | 913 | cc | C++ | src/app/loadbalance/core/http.cc | soulcure/im_server | b5e3d5b54f930fdc3d29b60287582ede5940e91d | [
"Apache-2.0"
] | 1 | 2021-07-12T12:06:27.000Z | 2021-07-12T12:06:27.000Z | src/app/loadbalance/core/http.cc | soulcure/im_server | b5e3d5b54f930fdc3d29b60287582ede5940e91d | [
"Apache-2.0"
] | null | null | null | src/app/loadbalance/core/http.cc | soulcure/im_server | b5e3d5b54f930fdc3d29b60287582ede5940e91d | [
"Apache-2.0"
] | null | null | null | #include "http.h"
#include <log_util.h>
#include <loadBalance.h>
extern LoadBalanceServer loadbalance_server;
int num=0;
Http::Http()
{
}
Http::~Http()
{
}
int Http::request_handler(evhttp_request * req)
{
const char* uri = evhttp_request_get_uri(req);
// logd("Received a %s request for %s\nHeaders:", cmdtype, uri... | 22.825 | 78 | 0.683461 | soulcure |
fd09f361f152c8e5dee04c9b611c7dc6b503af8f | 6,043 | cpp | C++ | vendor/mapbox-gl-native/vendor/eternal/test/map.benchmark.cpp | aic-develop/vietmaps-gl-native-ios-source | c73c28c4f1ea60ecd4c83c8b49f6947ee06f24f2 | [
"BSL-1.0",
"Apache-2.0"
] | null | null | null | vendor/mapbox-gl-native/vendor/eternal/test/map.benchmark.cpp | aic-develop/vietmaps-gl-native-ios-source | c73c28c4f1ea60ecd4c83c8b49f6947ee06f24f2 | [
"BSL-1.0",
"Apache-2.0"
] | null | null | null | vendor/mapbox-gl-native/vendor/eternal/test/map.benchmark.cpp | aic-develop/vietmaps-gl-native-ios-source | c73c28c4f1ea60ecd4c83c8b49f6947ee06f24f2 | [
"BSL-1.0",
"Apache-2.0"
] | null | null | null | #include <benchmark/benchmark.h>
#include "data.hpp"
int main(int argc, char* argv[]) {
benchmark::Initialize(&argc, argv);
benchmark::RunSpecifiedBenchmarks();
return 0;
}
const char* aliceblue = "aliceblue";
const char* missing = "missing";
const char* mediumorchid = "mediumorchid";
//////////////////... | 28.106977 | 111 | 0.681615 | aic-develop |
fd0aab3e7553d6c6c75f1e6ecc49557fe088fe38 | 1,194 | hpp | C++ | include/YourGame/Scenes/ExampleScene.hpp | iPruch/X-GS | ac43b91735a048216f60c49a9b43d6edd6d5e35e | [
"Zlib"
] | 1 | 2015-01-04T22:17:25.000Z | 2015-01-04T22:17:25.000Z | include/YourGame/Scenes/ExampleScene.hpp | iPruch/X-GS | ac43b91735a048216f60c49a9b43d6edd6d5e35e | [
"Zlib"
] | null | null | null | include/YourGame/Scenes/ExampleScene.hpp | iPruch/X-GS | ac43b91735a048216f60c49a9b43d6edd6d5e35e | [
"Zlib"
] | null | null | null | #ifndef YOURGAME_EXAMPLESCENE_HPP
#define YOURGAME_EXAMPLESCENE_HPP
#include <X-GS/Scene.hpp>
#include <X-GS/SceneManager.hpp>
#include <X-GS/ResourceManager.hpp>
#include <SFML/Graphics/RectangleShape.hpp>
#include <SFML/Graphics/Font.hpp>
#include <SFML/Graphics/Text.hpp>
#include "ResourcePath.hpp"
#include "Reso... | 21.321429 | 83 | 0.748744 | iPruch |
fd13f6bb77a76bf39822fe1fb1addc2ada9b61ae | 158 | hpp | C++ | Empty.hpp | cptkidd62/minesweeper | 0ac18dc94d4bca0b5e687cbce64c5e47bde58a26 | [
"MIT"
] | null | null | null | Empty.hpp | cptkidd62/minesweeper | 0ac18dc94d4bca0b5e687cbce64c5e47bde58a26 | [
"MIT"
] | null | null | null | Empty.hpp | cptkidd62/minesweeper | 0ac18dc94d4bca0b5e687cbce64c5e47bde58a26 | [
"MIT"
] | null | null | null | #ifndef EMPTY_HPP
#define EMPTY_HPP
#include "Tile.hpp"
class Empty : public Tile
{
public:
Empty(int x, int y);
int revert();
private:
};
#endif | 9.875 | 25 | 0.658228 | cptkidd62 |
fd1695a2aaed2d58054740379a1436c03f312626 | 2,026 | cpp | C++ | libWmfToSvgCpp/SvgRectRegion.cpp | shouhirobumi/wmfToSvgLib | fdd5b9a5517c150e50e111cd0f1bf486fea6e5d1 | [
"MIT"
] | null | null | null | libWmfToSvgCpp/SvgRectRegion.cpp | shouhirobumi/wmfToSvgLib | fdd5b9a5517c150e50e111cd0f1bf486fea6e5d1 | [
"MIT"
] | null | null | null | libWmfToSvgCpp/SvgRectRegion.cpp | shouhirobumi/wmfToSvgLib | fdd5b9a5517c150e50e111cd0f1bf486fea6e5d1 | [
"MIT"
] | null | null | null | #include "SvgRectRegion.h"
//#include "SvgRegion.h"
#include "SvgGdi.h"
#include "SvgDc.h"
//#include "tinyxml2.h"
//#include "tool.h"
namespace WMFConverter{
SvgRectRegion::SvgRectRegion(SvgGdi *gdi, int left, int top, int right, int bottom)
: SvgRegion(gdi)
{
_left = left;
_top = top;
_right... | 22.764045 | 103 | 0.60464 | shouhirobumi |
fd1788dcc29506e736a4c8874803405df4d028d4 | 4,636 | cpp | C++ | export/windows/obj/src/openfl/_internal/renderer/opengl/GLTextField.cpp | seanbashaw/frozenlight | 47c540d30d63e946ea2dc787b4bb602cc9347d21 | [
"MIT"
] | null | null | null | export/windows/obj/src/openfl/_internal/renderer/opengl/GLTextField.cpp | seanbashaw/frozenlight | 47c540d30d63e946ea2dc787b4bb602cc9347d21 | [
"MIT"
] | null | null | null | export/windows/obj/src/openfl/_internal/renderer/opengl/GLTextField.cpp | seanbashaw/frozenlight | 47c540d30d63e946ea2dc787b4bb602cc9347d21 | [
"MIT"
] | null | null | null | // Generated by Haxe 3.4.7
#include <hxcpp.h>
#ifndef INCLUDED_openfl__internal_renderer_cairo_CairoTextField
#include <openfl/_internal/renderer/cairo/CairoTextField.h>
#endif
#ifndef INCLUDED_openfl__internal_renderer_opengl_GLTextField
#include <openfl/_internal/renderer/opengl/GLTextField.h>
#endif
#ifndef INCLUDE... | 33.114286 | 241 | 0.799827 | seanbashaw |
fd1837a8e312ce7cfc802cd464c95a7701c04ab3 | 2,221 | cxx | C++ | arrows/core/triangle_scan_iterator.cxx | mwoehlke-kitware/kwiver | 614a488bd2b7fe551ac75eec979766d882709791 | [
"BSD-3-Clause"
] | 176 | 2015-07-31T23:33:37.000Z | 2022-03-21T23:42:44.000Z | arrows/core/triangle_scan_iterator.cxx | mwoehlke-kitware/kwiver | 614a488bd2b7fe551ac75eec979766d882709791 | [
"BSD-3-Clause"
] | 1,276 | 2015-05-03T01:21:27.000Z | 2022-03-31T15:32:20.000Z | arrows/core/triangle_scan_iterator.cxx | mwoehlke-kitware/kwiver | 614a488bd2b7fe551ac75eec979766d882709791 | [
"BSD-3-Clause"
] | 85 | 2015-01-25T05:13:38.000Z | 2022-01-14T14:59:37.000Z | // This file is part of KWIVER, and is distributed under the
// OSI-approved BSD 3-Clause License. See top-level LICENSE file or
// https://github.com/Kitware/kwiver/blob/master/LICENSE for details.
/**
* \file
* \brief Implementation of core triangle_scan_iterator
*/
#include "triangle_scan_iterator.h"
namespace... | 22.663265 | 101 | 0.510581 | mwoehlke-kitware |
fd19e414273b79c162a8ac3d4ef1b479dc393540 | 2,527 | cpp | C++ | samples/snippets/cpp/VS_Snippets_CLR_System/system.Byte.ToString/CPP/newbytemembers2.cpp | hamarb123/dotnet-api-docs | 6aeb55784944a2f1f5e773b657791cbd73a92dd4 | [
"CC-BY-4.0",
"MIT"
] | 421 | 2018-04-01T01:57:50.000Z | 2022-03-28T15:24:42.000Z | samples/snippets/cpp/VS_Snippets_CLR_System/system.Byte.ToString/CPP/newbytemembers2.cpp | hamarb123/dotnet-api-docs | 6aeb55784944a2f1f5e773b657791cbd73a92dd4 | [
"CC-BY-4.0",
"MIT"
] | 5,797 | 2018-04-02T21:12:23.000Z | 2022-03-31T23:54:38.000Z | samples/snippets/cpp/VS_Snippets_CLR_System/system.Byte.ToString/CPP/newbytemembers2.cpp | hamarb123/dotnet-api-docs | 6aeb55784944a2f1f5e773b657791cbd73a92dd4 | [
"CC-BY-4.0",
"MIT"
] | 1,482 | 2018-03-31T11:26:20.000Z | 2022-03-30T22:36:45.000Z | // Byte.ToString2.cpp : main project file.
using namespace System;
using namespace System::Globalization;
// Byte.ToString()
void Byte1()
{
// <Snippet2>
array<Byte>^ bytes = gcnew array<Byte> {0, 1, 14, 168, 255};
for each (Byte byteValue in bytes)
Console::WriteLine(byteValue);
// The ... | 31.5875 | 94 | 0.496636 | hamarb123 |
fd1bc1167a9149ce4ce2ac37b6b879283b24c251 | 2,007 | cpp | C++ | arm/system/sdram.cpp | mborik/speccy2010-dividised | 414978cdaf3e27852d47e9f3d5211503b17c6a2f | [
"MIT"
] | 26 | 2018-09-20T08:49:37.000Z | 2022-02-22T14:50:40.000Z | arm/system/sdram.cpp | andykarpov/speccy2010 | a8a3d53835a3bd5cbf7a4f96e30729ebf244dcd4 | [
"MIT"
] | 4 | 2019-04-18T11:04:08.000Z | 2020-09-05T21:12:36.000Z | arm/system/sdram.cpp | andykarpov/speccy2010 | a8a3d53835a3bd5cbf7a4f96e30729ebf244dcd4 | [
"MIT"
] | 6 | 2018-10-19T21:10:03.000Z | 2021-04-30T22:42:08.000Z | #include "sdram.h"
#include "../system.h"
dword sdramHeapPtr = VIDEO_PAGE_PTR + SDRAM_PAGE_SIZE;
//---------------------------------------------------------------------------------------
dword Malloc(word recordCount, word recordSize)
{
dword size = recordSize;
if ((size & 1) != 0)
size++;
size *= recordCount;
... | 23.611765 | 89 | 0.491779 | mborik |
fd206f4180a12a60374ad3f469418b51ac9fa89e | 11,798 | cc | C++ | packages/spatial/Linear_MLS_Function.cc | brbass/ibex | 5a4cc5b4d6d46430d9667970f8a34f37177953d4 | [
"MIT"
] | 2 | 2020-04-13T20:06:41.000Z | 2021-02-12T17:55:54.000Z | packages/spatial/Linear_MLS_Function.cc | brbass/ibex | 5a4cc5b4d6d46430d9667970f8a34f37177953d4 | [
"MIT"
] | 1 | 2018-10-22T21:03:35.000Z | 2018-10-22T21:03:35.000Z | packages/spatial/Linear_MLS_Function.cc | brbass/ibex | 5a4cc5b4d6d46430d9667970f8a34f37177953d4 | [
"MIT"
] | 3 | 2019-04-03T02:15:37.000Z | 2022-01-04T05:50:23.000Z | #include "Linear_MLS_Function.hh"
#include "Linear_Algebra.hh"
#include "Linear_MLS_Normalization.hh"
#include "Matrix_Functions.hh"
#include "Vector_Functions.hh"
#include "XML_Node.hh"
namespace la = Linear_Algebra;
namespace mf = Matrix_Functions;
namespace vf = Vector_Functions;
using std::make_shared;
using std... | 29.348259 | 119 | 0.569164 | brbass |
fd25f3ead434bab5bb747324e20797792ae12451 | 5,861 | cpp | C++ | core/src/engine/Manifoldmath.cpp | SpiritSuperUser/spirit | fbe69c2a9b7a73e8f47d302c619303aea2a22ace | [
"MIT"
] | 2 | 2020-11-12T13:54:22.000Z | 2021-11-05T09:10:27.000Z | core/src/engine/Manifoldmath.cpp | SpiritSuperUser/spirit | fbe69c2a9b7a73e8f47d302c619303aea2a22ace | [
"MIT"
] | null | null | null | core/src/engine/Manifoldmath.cpp | SpiritSuperUser/spirit | fbe69c2a9b7a73e8f47d302c619303aea2a22ace | [
"MIT"
] | null | null | null | #ifndef USE_CUDA
#include <engine/Vectormath.hpp>
#include <engine/Manifoldmath.hpp>
#include <utility/Logging.hpp>
#include <utility/Exception.hpp>
#include <Eigen/Dense>
#include <array>
namespace Engine
{
namespace Manifoldmath
{
scalar norm(const vectorfield & vf)
{
scalar x = Vect... | 29.903061 | 148 | 0.579423 | SpiritSuperUser |
fd26c1dc458dfb7ba1601c898f7d0b88c44e9f21 | 4,639 | hpp | C++ | uActor/include/actor_runtime/managed_actor.hpp | uActor/uActor | 1180db98f48ad447639a3d625573307d87b28902 | [
"MIT"
] | 1 | 2021-09-15T12:41:37.000Z | 2021-09-15T12:41:37.000Z | uActor/include/actor_runtime/managed_actor.hpp | uActor/uActor | 1180db98f48ad447639a3d625573307d87b28902 | [
"MIT"
] | null | null | null | uActor/include/actor_runtime/managed_actor.hpp | uActor/uActor | 1180db98f48ad447639a3d625573307d87b28902 | [
"MIT"
] | null | null | null | #pragma once
#ifdef ESP_IDF
#include <sdkconfig.h>
#endif
#include <cstdint>
#include <deque>
#include <functional>
#include <set>
#include <string>
#include <utility>
#include "executor_api.hpp"
#include "pubsub/filter.hpp"
#include "pubsub/publication.hpp"
#include "pubsub/router.hpp"
#include "runtime_allocator_c... | 26.357955 | 80 | 0.718258 | uActor |
fd2eb9f60b1eabf606bb8c786ed72dc03f981561 | 4,072 | hpp | C++ | Simpfer/data.hpp | amgt-d1/Simpfer | 01697c574c7d1b99d8add87c0f105c4607bc29f5 | [
"MIT"
] | 5 | 2021-11-19T16:19:52.000Z | 2022-03-17T15:59:26.000Z | Simpfer/data.hpp | amgt-d1/Simpfer | 01697c574c7d1b99d8add87c0f105c4607bc29f5 | [
"MIT"
] | null | null | null | Simpfer/data.hpp | amgt-d1/Simpfer | 01697c574c7d1b99d8add87c0f105c4607bc29f5 | [
"MIT"
] | 1 | 2022-03-20T04:10:57.000Z | 2022-03-20T04:10:57.000Z | #include "file_input.hpp"
#include <vector>
#include <functional>
#include <algorithm>
#include <map>
#include <cfloat>
// definition of data
class data {
public:
unsigned int identifier = 0;
std::vector<float> vec;
float norm = 0;
std::map<float, unsigned int, std::greater<float>> topk;
float threshold = 0;
... | 18.425339 | 115 | 0.606336 | amgt-d1 |
fd3400cfe1ed4750ddb9eb2cf455579916306753 | 3,717 | cc | C++ | pin/lite/handle_syscalls.cc | cag-uconn/graphite_multiprog | fc89341c0681fe4d54ddc1dee0b9e110aad8b4be | [
"MIT"
] | null | null | null | pin/lite/handle_syscalls.cc | cag-uconn/graphite_multiprog | fc89341c0681fe4d54ddc1dee0b9e110aad8b4be | [
"MIT"
] | null | null | null | pin/lite/handle_syscalls.cc | cag-uconn/graphite_multiprog | fc89341c0681fe4d54ddc1dee0b9e110aad8b4be | [
"MIT"
] | null | null | null | #include <syscall.h>
using namespace std;
#include "lite/handle_syscalls.h"
#include "simulator.h"
#include "tile_manager.h"
#include "tile.h"
#include "syscall_model.h"
#include "log.h"
namespace lite
{
static bool _application_running = true;
void handleFutexSyscall(CONTEXT* ctx)
{
ADDRINT syscall_number = PIN... | 28.813953 | 105 | 0.703524 | cag-uconn |
fd34a6a5226121bc4da851ab3005d0ca3d714c47 | 749 | cpp | C++ | other-small-sources/nooby_mistakes.cpp | Nickeron-dev/Basics-Of-CPP | 84e2cd50c9bd466830054715a1cd708f87311e7b | [
"Apache-2.0"
] | 1 | 2021-09-15T15:11:39.000Z | 2021-09-15T15:11:39.000Z | other-small-sources/nooby_mistakes.cpp | Nickeron-dev/Basics-Of-CPP | 84e2cd50c9bd466830054715a1cd708f87311e7b | [
"Apache-2.0"
] | null | null | null | other-small-sources/nooby_mistakes.cpp | Nickeron-dev/Basics-Of-CPP | 84e2cd50c9bd466830054715a1cd708f87311e7b | [
"Apache-2.0"
] | null | null | null | #include <iostream>
#include <string>
int main()
{
// variables are not initialised(only defined)
// so undefined behaviour will be there(values cannot be predicted)
int x;
int *x2 = new int;
// OK. initial value 0 is guaranteed
int y {};
int *y1 = new int{};
int *y2 = new int();
int z();
// The same work... | 16.282609 | 68 | 0.631509 | Nickeron-dev |
fd36dbab57fa03c6aaf03cbf66ba232700aa6a75 | 271 | cc | C++ | audio_engine_sdk/node/producer/metronome/oscillator.cc | wangrl2016/learnmedia | 0f60f98432d3ddd67775d7d1eac494df0bf3769a | [
"MIT"
] | 5 | 2019-04-23T11:51:30.000Z | 2021-08-28T03:16:12.000Z | audio_engine_sdk/node/producer/metronome/oscillator.cc | wangrl2016/learnmedia | 0f60f98432d3ddd67775d7d1eac494df0bf3769a | [
"MIT"
] | null | null | null | audio_engine_sdk/node/producer/metronome/oscillator.cc | wangrl2016/learnmedia | 0f60f98432d3ddd67775d7d1eac494df0bf3769a | [
"MIT"
] | null | null | null | //
// Created by wangrl2016 on 2021/10/15.
//
#include "oscillator.h"
namespace aes {
Oscillator::Oscillator() {
}
Oscillator::~Oscillator() {
}
void Oscillator::set_wave_on(bool is_wave_on) {
is_wave_on_.store(is_wave_on);
}
}
| 13.55 | 52 | 0.605166 | wangrl2016 |
fd3a18b424c5449d31d34ae7ffdd756b86f1b175 | 1,691 | hpp | C++ | rmf_traffic_ros2/include/rmf_traffic_ros2/StandardNames.hpp | Yadunund/rmf_core | 90e9871ce595c53dfbc0f4f16dc00192f7a9fbcf | [
"Apache-2.0"
] | null | null | null | rmf_traffic_ros2/include/rmf_traffic_ros2/StandardNames.hpp | Yadunund/rmf_core | 90e9871ce595c53dfbc0f4f16dc00192f7a9fbcf | [
"Apache-2.0"
] | 1 | 2020-06-12T08:57:11.000Z | 2020-06-17T11:29:33.000Z | rmf_traffic_ros2/include/rmf_traffic_ros2/StandardNames.hpp | Yadunund/rmf_core | 90e9871ce595c53dfbc0f4f16dc00192f7a9fbcf | [
"Apache-2.0"
] | null | null | null | /*
* Copyright (C) 2019 Open Source Robotics Foundation
*
* 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 appl... | 40.261905 | 79 | 0.786517 | Yadunund |
fd3c6821607f3a9ab94f431531e10da9c2fa4072 | 3,590 | hpp | C++ | src/core/constant_buffers.hpp | SleepKiller/shaderpatch | 4bda848df0273993c96f1d20a2cf79161088a77d | [
"MIT"
] | 13 | 2019-03-25T09:40:12.000Z | 2022-03-13T16:12:39.000Z | src/core/constant_buffers.hpp | SleepKiller/shaderpatch | 4bda848df0273993c96f1d20a2cf79161088a77d | [
"MIT"
] | 110 | 2018-10-16T09:05:43.000Z | 2022-03-16T23:32:28.000Z | src/core/constant_buffers.hpp | SleepKiller/shaderpatch | 4bda848df0273993c96f1d20a2cf79161088a77d | [
"MIT"
] | 1 | 2020-02-06T20:32:50.000Z | 2020-02-06T20:32:50.000Z | #pragma once
#include <array>
#include <cstddef>
#include <cstdint>
#include <glm/glm.hpp>
namespace sp::core::cb {
// Evil macro. Takes the type of the constant buffer and the first non-game
// constant in the type and returns the number of game constants in the buffer.
#define CB_MAX_GAME_CONSTANTS(Type, first_pa... | 27.829457 | 87 | 0.741504 | SleepKiller |
fd3da316b2bb44c003e30d2ed0966b7531d08081 | 2,543 | cpp | C++ | base/src/thread_pool.cpp | chaoyangcui/utils_native | bb70374f2c91dfa66d6fd5996ef979f9ae6233e9 | [
"Apache-2.0"
] | 1 | 2021-12-03T14:29:42.000Z | 2021-12-03T14:29:42.000Z | base/src/thread_pool.cpp | openharmony-gitee-mirror/utils_native | 7921924bf76dbd54028684a3f0c5e0b35d6eac1d | [
"Apache-2.0"
] | null | null | null | base/src/thread_pool.cpp | openharmony-gitee-mirror/utils_native | 7921924bf76dbd54028684a3f0c5e0b35d6eac1d | [
"Apache-2.0"
] | 1 | 2021-09-13T12:10:18.000Z | 2021-09-13T12:10:18.000Z | /*
* Copyright (c) 2021 Huawei Device Co., Ltd.
* 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 ... | 20.674797 | 75 | 0.60991 | chaoyangcui |
fd3f817910eab22d6cd2b608d523b875b07a4110 | 395 | hpp | C++ | include/modules/waterAdditionControl/actionCreators/messages/AddionalWaterTankEmptyingTimeout.hpp | thebartekbanach/simple-aqua-controller | 338331072155b9f98fb07b6a1e31e6d3c1f650fa | [
"MIT"
] | 1 | 2019-11-18T13:22:57.000Z | 2019-11-18T13:22:57.000Z | include/modules/waterAdditionControl/actionCreators/messages/AddionalWaterTankEmptyingTimeout.hpp | thebartekbanach/simple-aqua-controller | 338331072155b9f98fb07b6a1e31e6d3c1f650fa | [
"MIT"
] | null | null | null | include/modules/waterAdditionControl/actionCreators/messages/AddionalWaterTankEmptyingTimeout.hpp | thebartekbanach/simple-aqua-controller | 338331072155b9f98fb07b6a1e31e6d3c1f650fa | [
"MIT"
] | null | null | null | #pragma once
#include "../../../../utils/informationBanner/InformationBannerActionCreator.hpp"
InformationBannerActionCreator* addionalWaterTankEmptyingTimeoutMessage(ActionCreator* target = nullptr) {
return new InformationBannerActionCreator(target, 0, true,
" Uwaga: timeout",
" oproznienia wo... | 32.916667 | 106 | 0.701266 | thebartekbanach |
fd4096fb98bcc8a1aff43571904172ecdb7f5f16 | 4,059 | cc | C++ | src/developer/forensics/feedback_data/attachments/inspect_data_budget.cc | EnderNightLord-ChromeBook/zircon-rpi | b09b1eb3aa7a127c65568229fe10edd251869283 | [
"BSD-2-Clause"
] | 1 | 2020-12-29T17:07:06.000Z | 2020-12-29T17:07:06.000Z | src/developer/forensics/feedback_data/attachments/inspect_data_budget.cc | DamieFC/fuchsia | f78a4a1326f4a4bb5834500918756173c01bab4f | [
"BSD-2-Clause"
] | null | null | null | src/developer/forensics/feedback_data/attachments/inspect_data_budget.cc | DamieFC/fuchsia | f78a4a1326f4a4bb5834500918756173c01bab4f | [
"BSD-2-Clause"
] | null | null | null | // Copyright 2020 The Fuchsia Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "src/developer/forensics/feedback_data/attachments/inspect_data_budget.h"
#include <lib/syslog/cpp/macros.h>
#include <filesystem>
#include "sr... | 44.604396 | 99 | 0.627002 | EnderNightLord-ChromeBook |
fd41be035b030017b44edf23576823b680b00e14 | 1,472 | cpp | C++ | FWCoreLibrary/TPMLogger.cpp | terilenard/dias-firewall | b836f1180ef187e6f1bb597f8666165f9f4fa082 | [
"MIT"
] | null | null | null | FWCoreLibrary/TPMLogger.cpp | terilenard/dias-firewall | b836f1180ef187e6f1bb597f8666165f9f4fa082 | [
"MIT"
] | null | null | null | FWCoreLibrary/TPMLogger.cpp | terilenard/dias-firewall | b836f1180ef187e6f1bb597f8666165f9f4fa082 | [
"MIT"
] | null | null | null | #include "TPMLogger.h"
#include "Config.h"
#ifndef WIN32
#include <sys/types.h>
#include <sys/stat.h>
#include <sys/errno.h>
#include <fcntl.h>
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#endif
TPMLogger::TPMLogger(const char* pszCfgFile):
m_fd(-1), m_sCfgFile(pszCfgFile)
{
}
TPMLogger::~TPMLogg... | 18.632911 | 71 | 0.600543 | terilenard |
fd446aa32dcdc33d043b92b20b54002c03667412 | 8,538 | hpp | C++ | rice/Module_impl.hpp | keyme/rice | 4b5e4ad3e2294a1b58886fb946eb26e3512599d9 | [
"BSD-2-Clause"
] | 11 | 2015-02-09T12:13:45.000Z | 2019-11-25T01:14:31.000Z | rice/Module_impl.hpp | jsomers/rice | 6bbcc2dd85d010a1108a4d7ac7ece39b1c1210f5 | [
"BSD-2-Clause"
] | null | null | null | rice/Module_impl.hpp | jsomers/rice | 6bbcc2dd85d010a1108a4d7ac7ece39b1c1210f5 | [
"BSD-2-Clause"
] | 2 | 2019-11-25T01:14:35.000Z | 2021-09-29T04:57:36.000Z | #ifndef Rice__Module_impl__hpp_
#define Rice__Module_impl__hpp_
#include "detail/Exception_Handler_defn.hpp"
#include "detail/ruby.hpp"
#include "Object_defn.hpp"
#include "Address_Registration_Guard_defn.hpp"
#include "Arg.hpp"
namespace Rice
{
class Module;
class Class;
template<typename T> class Data_Type;
/*! H... | 30.276596 | 74 | 0.680019 | keyme |
fd4a3bd9ab75254289366033aa26498457f6d242 | 12,986 | cpp | C++ | src/network/Transistor.cpp | aboelmakarem/casena | 387c83a1bc6a5150684f5d54f8eba4712b81f827 | [
"MIT"
] | null | null | null | src/network/Transistor.cpp | aboelmakarem/casena | 387c83a1bc6a5150684f5d54f8eba4712b81f827 | [
"MIT"
] | null | null | null | src/network/Transistor.cpp | aboelmakarem/casena | 387c83a1bc6a5150684f5d54f8eba4712b81f827 | [
"MIT"
] | null | null | null | // Transistor.cpp
// Ahmed M. Hussein (amhussein4@gmail.com)
// 03/28/2021
#include "Transistor.h"
#include "Network.h"
#include "string.h"
#include "stdlib.h"
#include "math.h"
namespace CASENA
{
Transistor::Transistor(){Initialize();}
Transistor::Transistor(const Transistor& transistor) : Component(transistor){*t... | 28.047516 | 117 | 0.640459 | aboelmakarem |
fd4c91f98ea28c4add132325644b39f218c16a34 | 19,368 | hpp | C++ | include/System/Data/Constraint.hpp | v0idp/virtuoso-codegen | 6f560f04822c67f092d438a3f484249072c1d21d | [
"Unlicense"
] | null | null | null | include/System/Data/Constraint.hpp | v0idp/virtuoso-codegen | 6f560f04822c67f092d438a3f484249072c1d21d | [
"Unlicense"
] | null | null | null | include/System/Data/Constraint.hpp | v0idp/virtuoso-codegen | 6f560f04822c67f092d438a3f484249072c1d21d | [
"Unlicense"
] | 1 | 2022-03-30T21:07:35.000Z | 2022-03-30T21:07:35.000Z | // Autogenerated from CppHeaderCreator
// Created by Sc2ad
// =========================================================================
#pragma once
// Begin includes
#include "beatsaber-hook/shared/utils/typedefs.h"
#include "beatsaber-hook/shared/utils/byref.hpp"
#include "beatsaber-hook/shared/utils/il2cpp-utils-met... | 54.252101 | 208 | 0.733891 | v0idp |
fd5024a1ef20b199892e21f40058ca7faeb2c058 | 2,016 | hpp | C++ | Autocoders/test/serial_passive/test/ut/GTestBase.hpp | lydiaxing/fprime | f6b3e03f89e9aca1614243c9896d4a72aa0cc726 | [
"Apache-2.0"
] | 2 | 2020-09-08T05:39:05.000Z | 2021-05-04T14:58:51.000Z | Autocoders/test/serial_passive/test/ut/GTestBase.hpp | JPLOpenSource/fprime-sw-Rel1.0 | 18364596c24fa369c938ef8758e5aa945ecc6a9b | [
"Apache-2.0"
] | 2 | 2019-02-27T03:17:15.000Z | 2019-03-01T22:34:30.000Z | Autocoders/test/serial_passive/test/ut/GTestBase.hpp | JPLOpenSource/fprime-sw-Rel1.0 | 18364596c24fa369c938ef8758e5aa945ecc6a9b | [
"Apache-2.0"
] | 3 | 2019-02-17T20:41:15.000Z | 2019-02-26T21:06:50.000Z | // ======================================================================
// \title TestSerial/test/ut/GTestBase.hpp
// \author Auto-generated
// \brief hpp file for TestSerial component Google Test harness base class
//
// \copyright
// Copyright 2009-2015, by the California Institute of Technology.
// ALL RIGHTS RE... | 33.04918 | 83 | 0.617063 | lydiaxing |
fd521e016f2c274edc4805578b097ad0bde9013e | 8,177 | cpp | C++ | src/reconstruct/characteristic_cl.cpp | roarkhabegger/athena-public-version | 3446d2f4601c1dbbfd7a98d4f53335d97e21e195 | [
"BSD-3-Clause"
] | 1 | 2021-03-05T20:59:04.000Z | 2021-03-05T20:59:04.000Z | src/reconstruct/characteristic_cl.cpp | roarkhabegger/athena-public-version | 3446d2f4601c1dbbfd7a98d4f53335d97e21e195 | [
"BSD-3-Clause"
] | null | null | null | src/reconstruct/characteristic_cl.cpp | roarkhabegger/athena-public-version | 3446d2f4601c1dbbfd7a98d4f53335d97e21e195 | [
"BSD-3-Clause"
] | 2 | 2019-02-26T18:49:13.000Z | 2019-07-22T17:04:41.000Z | //========================================================================================
// Athena++ astrophysical MHD code
// Copyright(C) 2014 James M. Stone <jmstone@princeton.edu> and other code contributors
// Licensed under the 3-clause BSD License, see LICENSE file for details
//===============================... | 42.367876 | 90 | 0.598997 | roarkhabegger |
fd52a3b062e16846983e7aeb3054cae2b80b728f | 275 | hh | C++ | emu-ex-plus-alpha/imagine/src/base/iphone/private.hh | damoonvisuals/GBA4iOS | 95bfce0aca270b68484535ecaf0d3b2366739c77 | [
"MIT"
] | 1 | 2018-11-14T23:40:35.000Z | 2018-11-14T23:40:35.000Z | emu-ex-plus-alpha/imagine/src/base/iphone/private.hh | damoonvisuals/GBA4iOS | 95bfce0aca270b68484535ecaf0d3b2366739c77 | [
"MIT"
] | null | null | null | emu-ex-plus-alpha/imagine/src/base/iphone/private.hh | damoonvisuals/GBA4iOS | 95bfce0aca270b68484535ecaf0d3b2366739c77 | [
"MIT"
] | null | null | null | #pragma once
#include <util/ansiTypes.h>
#include <CoreGraphics/CGColorSpace.h>
namespace Base
{
void nsLog(const char* str);
void nsLogv(const char* format, va_list arg);
extern CGColorSpaceRef grayColorSpace, rgbColorSpace;
}
namespace Audio
{
void initSession();
}
| 13.75 | 53 | 0.76 | damoonvisuals |
5b79c9f46b4b9d5bc210a2b039c8b5e652666541 | 2,362 | cpp | C++ | OpenGL-Sandbox/src/engineUtils/PerspectiveCameraController.cpp | MrLucyfer/OpenGL | b8a374afec8702742e96300bc45a2a88b806b65e | [
"Apache-2.0"
] | null | null | null | OpenGL-Sandbox/src/engineUtils/PerspectiveCameraController.cpp | MrLucyfer/OpenGL | b8a374afec8702742e96300bc45a2a88b806b65e | [
"Apache-2.0"
] | null | null | null | OpenGL-Sandbox/src/engineUtils/PerspectiveCameraController.cpp | MrLucyfer/OpenGL | b8a374afec8702742e96300bc45a2a88b806b65e | [
"Apache-2.0"
] | null | null | null | #include "PerspectiveCameraController.h"
#include <GLCore/Core/Input.h>
#include <GLCore/Core/KeyCodes.h>
#include <GLCore/Core/MouseButtonCodes.h>
using namespace GLCore;
PerspectiveCameraController::PerspectiveCameraController() :
m_CameraPos{ 0.0f, 0.0f, 3.0f }, m_CameraTarget{ 0.0f, 0.0f, 0.0f },
m_Up{ 0.0, 1.0... | 28.457831 | 104 | 0.708721 | MrLucyfer |
5b7c9c3683d5c7deb59749bd55f127a72c548d29 | 4,602 | cpp | C++ | exiv2-0.24/samples/addmoddel.cpp | sdrpa/Exiv2Framework | 76b2dd9a906ab08d39bf97c8f3d97037eb39c69d | [
"MIT"
] | 6 | 2016-10-04T10:12:11.000Z | 2021-09-18T22:37:29.000Z | exiv2-0.24/samples/addmoddel.cpp | sdrpa/Exiv2Framework | 76b2dd9a906ab08d39bf97c8f3d97037eb39c69d | [
"MIT"
] | null | null | null | exiv2-0.24/samples/addmoddel.cpp | sdrpa/Exiv2Framework | 76b2dd9a906ab08d39bf97c8f3d97037eb39c69d | [
"MIT"
] | 2 | 2018-05-20T08:32:40.000Z | 2019-07-06T18:27:19.000Z | // ***************************************************************** -*- C++ -*-
// addmoddel.cpp, $Rev: 3090 $
// Sample program showing how to add, modify and delete Exif metadata.
#include <exiv2/exiv2.hpp>
#include <iostream>
#include <iomanip>
#include <cassert>
int main(int argc, char* const argv[])
try {
... | 41.836364 | 83 | 0.571491 | sdrpa |
5b8124f070b5eda4beaf3ad492adb91ec00df8b0 | 2,371 | cpp | C++ | src/effects/effect_debug_info.cpp | vietanhdev/mlearning-cam | 193dc93273b578c5e09a6d680c2cc6fd5e75ed1e | [
"MIT"
] | 4 | 2019-08-28T16:31:32.000Z | 2022-02-09T10:35:38.000Z | src/effects/effect_debug_info.cpp | vietanhdev/mlearning-cam | 193dc93273b578c5e09a6d680c2cc6fd5e75ed1e | [
"MIT"
] | 3 | 2021-04-04T18:56:21.000Z | 2021-04-05T11:32:25.000Z | src/effects/effect_debug_info.cpp | vietanhdev/mlearning-cam | 193dc93273b578c5e09a6d680c2cc6fd5e75ed1e | [
"MIT"
] | 5 | 2020-04-21T04:02:10.000Z | 2022-02-09T10:35:42.000Z |
#include "effect_debug_info.h"
EffectDebugInfo::EffectDebugInfo()
: ImageEffect("Debug Info", "images/effects/debug_info/icon.png") {}
EffectDebugInfo::~EffectDebugInfo() {}
void EffectDebugInfo::outputFPS(float detection_fps, float alignment_fps) {
this->current_detection_fps = detection_fps;
this->cur... | 36.476923 | 108 | 0.623366 | vietanhdev |
5b816765b26cef37a2d0680b20a0eadfb8bad720 | 2,085 | cpp | C++ | src/modules/target/sdl2/sdl2_android.cpp | dequis/in-formant | 129b9b399c75cdbd834b68f04dabcb1d406af250 | [
"Apache-2.0"
] | null | null | null | src/modules/target/sdl2/sdl2_android.cpp | dequis/in-formant | 129b9b399c75cdbd834b68f04dabcb1d406af250 | [
"Apache-2.0"
] | null | null | null | src/modules/target/sdl2/sdl2_android.cpp | dequis/in-formant | 129b9b399c75cdbd834b68f04dabcb1d406af250 | [
"Apache-2.0"
] | null | null | null | #include "sdl2.h"
#include <iostream>
#include <fcntl.h>
#include <unistd.h>
#include <sys/stat.h>
#include <sys/types.h>
#include <jni.h>
#include <android/asset_manager.h>
#include <android/asset_manager_jni.h>
using namespace Module::Target;
void SDL2::prepareAssets()
{
chdir(SDL_AndroidGetInternalStoragePath... | 31.119403 | 102 | 0.620144 | dequis |
5b8355bf882dd7da1b5f04c2544c491a197a3112 | 2,497 | cxx | C++ | src/liuyao/Zhuanggua.cxx | adrianx77/liuyao | c9f3f84afec3badeed55b2cf58478f3b13c2df7d | [
"Apache-2.0"
] | 1 | 2021-11-19T09:17:49.000Z | 2021-11-19T09:17:49.000Z | src/liuyao/Zhuanggua.cxx | adrianx77/liuyao | c9f3f84afec3badeed55b2cf58478f3b13c2df7d | [
"Apache-2.0"
] | null | null | null | src/liuyao/Zhuanggua.cxx | adrianx77/liuyao | c9f3f84afec3badeed55b2cf58478f3b13c2df7d | [
"Apache-2.0"
] | null | null | null | #include "Zhuanggua.hxx"
#include "LiuqinChonggua.hxx"
#include "../base/Error.hxx"
namespace Zhouyi{
ZhuangguaJieguo * Zhuanggua::zhuanggua(YAO_ID yaos[6],Lunar * lunar)
{
bool b = false;
YAO_ID bengYaos[6],bianYaos[6];
for(int i=0;i<6;i++)
{
if(yaos[i] & 2)
{
b = true... | 27.141304 | 87 | 0.56628 | adrianx77 |
5b854207df1b8316364a58a000b28352ac116ec4 | 6,958 | cxx | C++ | Modules/Loadable/Models/qSlicerModelsModule.cxx | forfullstack/slicersources-src | 91bcecf037a27f3fad4c0ab57e8286fc258bb0f5 | [
"Apache-2.0"
] | null | null | null | Modules/Loadable/Models/qSlicerModelsModule.cxx | forfullstack/slicersources-src | 91bcecf037a27f3fad4c0ab57e8286fc258bb0f5 | [
"Apache-2.0"
] | null | null | null | Modules/Loadable/Models/qSlicerModelsModule.cxx | forfullstack/slicersources-src | 91bcecf037a27f3fad4c0ab57e8286fc258bb0f5 | [
"Apache-2.0"
] | null | null | null | /*==============================================================================
Program: 3D Slicer
Copyright (c) Kitware Inc.
See COPYRIGHT.txt
or http://www.slicer.org/copyright/copyright.txt for details.
Unless required by applicable law or agreed to in writing, software
distributed under the License... | 38.021858 | 126 | 0.604053 | forfullstack |
5b883c00c547b6ee8e88b87edf2b3fcae104fee8 | 1,998 | cpp | C++ | src/main.cpp | idincern/prm_sim | 9c576d200eb4576a289dae42ca9c08729aceecd7 | [
"MIT"
] | 3 | 2020-02-24T22:32:44.000Z | 2021-05-06T23:13:11.000Z | src/main.cpp | idincern/prm_sim | 9c576d200eb4576a289dae42ca9c08729aceecd7 | [
"MIT"
] | null | null | null | src/main.cpp | idincern/prm_sim | 9c576d200eb4576a289dae42ca9c08729aceecd7 | [
"MIT"
] | 2 | 2020-06-12T12:24:22.000Z | 2021-10-19T11:25:46.000Z | /*! @file
*
* @brief Entry point for the prm_sim_node.
*
* A probabilistic roadmap planner is a motion-planning algorithm in robotics,
* which solves the problem of determining a path between a starting and a goal
* configuration of the robot while avoiding collisions.
*
* The basic idea behind PRM is to t... | 32.225806 | 88 | 0.718719 | idincern |
5b8960b98b9589f4ed9c3043ec80ab0cc21163e1 | 1,960 | cpp | C++ | libs/bloom_filter/example/custom_hash.cpp | tetzank/boost-bloom-filters | 7c6717f403c041a092187568908f3661782ddb24 | [
"BSL-1.0"
] | 15 | 2016-10-18T16:05:37.000Z | 2022-01-23T03:01:42.000Z | libs/bloom_filter/example/custom_hash.cpp | tetzank/boost-bloom-filters | 7c6717f403c041a092187568908f3661782ddb24 | [
"BSL-1.0"
] | null | null | null | libs/bloom_filter/example/custom_hash.cpp | tetzank/boost-bloom-filters | 7c6717f403c041a092187568908f3661782ddb24 | [
"BSL-1.0"
] | 12 | 2016-04-15T18:17:24.000Z | 2020-04-16T06:29:58.000Z | //////////////////////////////////////////////////////////////////////////////
//
// (C) Copyright Alejandro Cabrera 2011.
// Distributed under the Boost
// Software License, Version 1.0.
// (See accompanying file LICENSE_1_0.txt or
// copy at http://www.boost.org/LICENSE_1_0.txt)
//
// See http://www.boost.org/libs/bl... | 24.197531 | 78 | 0.631633 | tetzank |
5b9074ca6632c2367c19e708e54caf4622c821f7 | 446 | cpp | C++ | LeetCode/Plus One/main.cpp | Code-With-Aagam/competitive-programming | 610520cc396fb13a03c606b5fb6739cfd68cc444 | [
"MIT"
] | 2 | 2022-02-08T12:37:41.000Z | 2022-03-09T03:48:56.000Z | LeetCode/Plus One/main.cpp | ShubhamJagtap2000/competitive-programming-1 | 3a9a2e3dd08f8fa8ab823f295cd020d08d3bff84 | [
"MIT"
] | null | null | null | LeetCode/Plus One/main.cpp | ShubhamJagtap2000/competitive-programming-1 | 3a9a2e3dd08f8fa8ab823f295cd020d08d3bff84 | [
"MIT"
] | 2 | 2021-01-23T14:35:48.000Z | 2021-03-15T05:04:24.000Z | auto speedup = []() {
ios::sync_with_stdio(false);
cin.tie(nullptr);
cout.tie(nullptr);
return nullptr;
}();
class Solution {
public:
vector<int> plusOne(vector<int>& digits) {
vector<int> ans;
int carry = 1, j = digits.size() - 1;
while (j >= 0) {
int curr = digits[j--] + carry;
ans.push_back(curr ... | 20.272727 | 43 | 0.598655 | Code-With-Aagam |
5b90df0e6e3645c85aeea4c01fe6d7ae17a20817 | 67 | hpp | C++ | LibData.hpp | mattfbacon/dynload | a2ff4ad3cf4ddc4f9f007d36c00acf35baba9ff7 | [
"WTFPL"
] | null | null | null | LibData.hpp | mattfbacon/dynload | a2ff4ad3cf4ddc4f9f007d36c00acf35baba9ff7 | [
"WTFPL"
] | null | null | null | LibData.hpp | mattfbacon/dynload | a2ff4ad3cf4ddc4f9f007d36c00acf35baba9ff7 | [
"WTFPL"
] | null | null | null | #pragma once
struct LibData {
std::string name;
void(*fn)();
};
| 9.571429 | 18 | 0.626866 | mattfbacon |
5b945f3f0e81df96263fd7caaef184bf8b177439 | 3,279 | hh | C++ | thirdparty/graph-tools-master/include/graphalign/LinearAlignment.hh | AlesMaver/ExpansionHunter | 274903d26a33cfbc546aac98c85bbfe51701fd3b | [
"BSL-1.0",
"Apache-2.0"
] | 122 | 2017-01-06T16:19:31.000Z | 2022-03-08T00:05:50.000Z | thirdparty/graph-tools-master/include/graphalign/LinearAlignment.hh | AlesMaver/ExpansionHunter | 274903d26a33cfbc546aac98c85bbfe51701fd3b | [
"BSL-1.0",
"Apache-2.0"
] | 90 | 2017-01-04T00:23:34.000Z | 2022-02-27T12:55:52.000Z | thirdparty/graph-tools-master/include/graphalign/LinearAlignment.hh | AlesMaver/ExpansionHunter | 274903d26a33cfbc546aac98c85bbfe51701fd3b | [
"BSL-1.0",
"Apache-2.0"
] | 35 | 2017-03-02T13:39:58.000Z | 2022-03-30T17:34:11.000Z | //
// GraphTools library
// Copyright 2017-2019 Illumina, Inc.
// All rights reserved.
//
// Author: Egor Dolzhenko <edolzhenko@illumina.com>
//
// 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 ... | 32.465347 | 94 | 0.703568 | AlesMaver |
5b94d89453038ee864879e08ded28aa35acf34b2 | 1,224 | hpp | C++ | doc/quickbook/oglplus/quickref/enums/ext/graphics_reset_status_class.hpp | matus-chochlik/oglplus | 76dd964e590967ff13ddff8945e9dcf355e0c952 | [
"BSL-1.0"
] | 364 | 2015-01-01T09:38:23.000Z | 2022-03-22T05:32:00.000Z | doc/quickbook/oglplus/quickref/enums/ext/graphics_reset_status_class.hpp | matus-chochlik/oglplus | 76dd964e590967ff13ddff8945e9dcf355e0c952 | [
"BSL-1.0"
] | 55 | 2015-01-06T16:42:55.000Z | 2020-07-09T04:21:41.000Z | doc/quickbook/oglplus/quickref/enums/ext/graphics_reset_status_class.hpp | matus-chochlik/oglplus | 76dd964e590967ff13ddff8945e9dcf355e0c952 | [
"BSL-1.0"
] | 57 | 2015-01-07T18:35:49.000Z | 2022-03-22T05:32:04.000Z | // File
// doc/quickbook/oglplus/quickref/enums/ext/graphics_reset_status_class.hpp
//
// Automatically generated file, DO NOT modify manually.
// Edit the source 'source/enums/oglplus/ext/graphics_reset_status.txt'
// or the 'source/enums/make_enum.py' script instead.
//
// Copyright 2010-2019 Matus Chochlik.
//... | 34 | 79 | 0.784314 | matus-chochlik |
5b9924f384c8137459704a4c16571f9707ae4f27 | 3,800 | cpp | C++ | Paladin/FileUtils.cpp | pahefu/Paladin | 4fcb66c6cda7bb50b7597532bd0d7469fc33655b | [
"MIT"
] | 45 | 2018-10-05T21:50:17.000Z | 2022-01-31T11:52:59.000Z | Paladin/FileUtils.cpp | pahefu/Paladin | 4fcb66c6cda7bb50b7597532bd0d7469fc33655b | [
"MIT"
] | 163 | 2018-10-01T23:52:12.000Z | 2022-02-15T18:05:58.000Z | Paladin/FileUtils.cpp | pahefu/Paladin | 4fcb66c6cda7bb50b7597532bd0d7469fc33655b | [
"MIT"
] | 9 | 2018-10-01T23:48:02.000Z | 2022-01-23T21:28:52.000Z | #include "FileUtils.h"
#include <Alert.h>
#include <Bitmap.h>
#include <Catalog.h>
#include <Directory.h>
#include <Locale.h>
#include <Mime.h>
#include <Path.h>
#include <Roster.h>
#include "Icons.h"
#include "Paladin.h"
#include "Project.h"
#include "DebugTools.h"
#undef B_TRANSLATION_CONTEXT
#define B_TRANSLATIO... | 23.45679 | 84 | 0.68 | pahefu |
5b99f83f14dd3a4958fb74cd02e8b2da91cb47ab | 4,777 | cpp | C++ | libs/mesh/src/meshCubatureSetupTri2D.cpp | MalachiTimothyPhillips/libparanumal | f3fd4505df56207b05aa86164124ab6bad83f92a | [
"MIT"
] | null | null | null | libs/mesh/src/meshCubatureSetupTri2D.cpp | MalachiTimothyPhillips/libparanumal | f3fd4505df56207b05aa86164124ab6bad83f92a | [
"MIT"
] | null | null | null | libs/mesh/src/meshCubatureSetupTri2D.cpp | MalachiTimothyPhillips/libparanumal | f3fd4505df56207b05aa86164124ab6bad83f92a | [
"MIT"
] | null | null | null | /*
The MIT License (MIT)
Copyright (c) 2017 Tim Warburton, Noel Chalmers, Jesse Chan, Ali Karakus
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitatio... | 32.719178 | 78 | 0.686414 | MalachiTimothyPhillips |
5b9bc17d148303d0411460e69ce360f47f474f7d | 6,073 | cpp | C++ | DirectX11_Starter_2015/DirectX11_Starter/PostManager.cpp | QRayarch/ShootyBally | c98d2cdccbc34a346f59d1cedfc4dbd1571e0a46 | [
"MIT"
] | 1 | 2016-03-14T01:58:26.000Z | 2016-03-14T01:58:26.000Z | DirectX11_Starter_2015/DirectX11_Starter/PostManager.cpp | QRayarch/ShootyBally | c98d2cdccbc34a346f59d1cedfc4dbd1571e0a46 | [
"MIT"
] | null | null | null | DirectX11_Starter_2015/DirectX11_Starter/PostManager.cpp | QRayarch/ShootyBally | c98d2cdccbc34a346f59d1cedfc4dbd1571e0a46 | [
"MIT"
] | null | null | null | #include "PostManager.h"
PostManager::PostManager(ID3D11Device * deviceIn, ID3D11DeviceContext * deviceContextIn)
{
device = deviceIn;
deviceContext = deviceContextIn;
blurAmount = 5;
rtvOriginal = nullptr;
srvGBlur1 = nullptr;
srvGBlur2 = nullptr;
rtvGBlur1 = nullptr;
rtvGBlur2 = nullptr;
}
PostManager::~P... | 31.14359 | 134 | 0.774411 | QRayarch |
5b9cae6d60f3e55810ffa35a8b38db841805909b | 10,038 | cc | C++ | poppler-21.11.0/poppler/JArithmeticDecoder.cc | stackoverflowed/multimodal | 95668d0b34d297e96b5ef76521e587578ef2581f | [
"MIT"
] | null | null | null | poppler-21.11.0/poppler/JArithmeticDecoder.cc | stackoverflowed/multimodal | 95668d0b34d297e96b5ef76521e587578ef2581f | [
"MIT"
] | null | null | null | poppler-21.11.0/poppler/JArithmeticDecoder.cc | stackoverflowed/multimodal | 95668d0b34d297e96b5ef76521e587578ef2581f | [
"MIT"
] | null | null | null | //========================================================================
//
// JArithmeticDecoder.cc
//
// Copyright 2002-2004 Glyph & Cog, LLC
//
//========================================================================
//========================================================================
//
// Modified under... | 27.729282 | 231 | 0.443415 | stackoverflowed |
5b9f34abcdb5e0ecc4b2bbc0fcd071f2530781ae | 1,427 | cc | C++ | expectations/makeexp.cc | piki/pip | ffd91f8b4ff21d7070a41a3d9f961d4e44625111 | [
"BSD-3-Clause"
] | 2 | 2017-10-18T22:33:52.000Z | 2021-11-11T22:32:10.000Z | expectations/makeexp.cc | piki/pip | ffd91f8b4ff21d7070a41a3d9f961d4e44625111 | [
"BSD-3-Clause"
] | null | null | null | expectations/makeexp.cc | piki/pip | ffd91f8b4ff21d7070a41a3d9f961d4e44625111 | [
"BSD-3-Clause"
] | null | null | null | /*
* Copyright (c) 2005-2006 Duke University. All rights reserved.
* Please see COPYING for license terms.
*/
#include <assert.h>
#include <getopt.h>
#include <string>
#include <stdarg.h>
#include <stdio.h>
#include "path.h"
#include <map>
#include <set>
#include "aggregates.h"
#include "exptree.h"
#include "pathf... | 22.296875 | 75 | 0.650315 | piki |
5ba17a20820780b4adb9a8a08fd68067576b6362 | 2,146 | cpp | C++ | gko-tracker-src/src/PeerInfo.cpp | yujinqiu/gingko | 33f289b36d6d8176fa7be67275dda93d40efbfd7 | [
"BSD-2-Clause"
] | 11 | 2018-01-31T12:31:56.000Z | 2022-01-06T04:45:03.000Z | gko-tracker-src/src/PeerInfo.cpp | jaewon713/gingko | 33f289b36d6d8176fa7be67275dda93d40efbfd7 | [
"BSD-2-Clause"
] | null | null | null | gko-tracker-src/src/PeerInfo.cpp | jaewon713/gingko | 33f289b36d6d8176fa7be67275dda93d40efbfd7 | [
"BSD-2-Clause"
] | 9 | 2017-10-31T06:51:24.000Z | 2020-02-10T09:21:00.000Z | #include "bbts/tracker/PeerInfo.h"
#include "bbts/thrift_serializer.h"
#include "tracker_types.h"
using std::string;
namespace bbts {
namespace tracker {
string PeerInfo::tracker_id_;
PeerInfo::PeerInfo() : is_set_remote(false) {};
PeerInfo::PeerInfo(const PeerInfo &to_copy) {
this->is_set_remote = to_copy.GetI... | 27.87013 | 72 | 0.754893 | yujinqiu |
5ba34152fb6c988254844b6954cc0207f62ba3af | 39,969 | cc | C++ | asgn4/src/helpers.cc | prannayk/CS335 | 51061f4dcac0eeb84d3a4f4818465df6053cf24d | [
"MIT"
] | 1 | 2019-01-27T07:35:16.000Z | 2019-01-27T07:35:16.000Z | asgn4/src/helpers.cc | prannayk/CS335 | 51061f4dcac0eeb84d3a4f4818465df6053cf24d | [
"MIT"
] | null | null | null | asgn4/src/helpers.cc | prannayk/CS335 | 51061f4dcac0eeb84d3a4f4818465df6053cf24d | [
"MIT"
] | null | null | null | #include "helpers.h"
vector<Instruction*> instructionList;
map<string, Instruction*> goto_map;
map<string, Instruction*> cont_map;
map<string, Instruction*> break_map;
map<string, string> goto_label_map;
map<string, string> cont_label_map;
map<string, string> break_label_map;
multimap<string, FuncType*> fn_map;
char* ... | 32.44237 | 80 | 0.524306 | prannayk |
5ba461438693df359d936070475b867c750f34cf | 764 | cpp | C++ | external/OpenGP/GL/Entity.cpp | sherrbss/ProceduralNoise | 99162d9b00d52b50e33a64313911300406af0745 | [
"MIT"
] | null | null | null | external/OpenGP/GL/Entity.cpp | sherrbss/ProceduralNoise | 99162d9b00d52b50e33a64313911300406af0745 | [
"MIT"
] | null | null | null | external/OpenGP/GL/Entity.cpp | sherrbss/ProceduralNoise | 99162d9b00d52b50e33a64313911300406af0745 | [
"MIT"
] | null | null | null | // This Source Code Form is subject to the terms of the Mozilla Public
// License, v. 2.0. If a copy of the MPL was not distributed with this
// file, You can obtain one at http://mozilla.org/MPL/2.0/.
#include "Entity.h"
//=============================================================================
namespace OpenG... | 25.466667 | 79 | 0.36911 | sherrbss |
5babcb7f1b5b38fd1221783d7ab8792423fd96d4 | 2,638 | cpp | C++ | main/String_format.cpp | ololoshka2871/NixieClock-ESP32-idf | 1505f801ca6f5ff36d2648805b20dab5d1326c12 | [
"Apache-2.0"
] | null | null | null | main/String_format.cpp | ololoshka2871/NixieClock-ESP32-idf | 1505f801ca6f5ff36d2648805b20dab5d1326c12 | [
"Apache-2.0"
] | null | null | null | main/String_format.cpp | ololoshka2871/NixieClock-ESP32-idf | 1505f801ca6f5ff36d2648805b20dab5d1326c12 | [
"Apache-2.0"
] | null | null | null | #include <cstdarg>
#include <string>
#include <vector>
#include <cinttypes>
#include "String_format.h"
#define INITIAL_BUF_SIZE 128
std::string vtformat_impl(const std::string &fmt,
const std::vector<std::string> &strs) {
static const char FORMAT_SYMBOL = '%';
std::string res;
std::s... | 22.547009 | 65 | 0.547763 | ololoshka2871 |
5baebebf20922d05eefbd70457bb37f2cd337505 | 650 | hxx | C++ | build2/version/utility.hxx | yssource/build2 | 3f32c45ea6e4406ff6a320e24fccddab467af3e4 | [
"MIT"
] | null | null | null | build2/version/utility.hxx | yssource/build2 | 3f32c45ea6e4406ff6a320e24fccddab467af3e4 | [
"MIT"
] | null | null | null | build2/version/utility.hxx | yssource/build2 | 3f32c45ea6e4406ff6a320e24fccddab467af3e4 | [
"MIT"
] | null | null | null | // file : build2/version/utility.hxx -*- C++ -*-
// copyright : Copyright (c) 2014-2019 Code Synthesis Ltd
// license : MIT; see accompanying LICENSE file
#ifndef BUILD2_VERSION_UTILITY_HXX
#define BUILD2_VERSION_UTILITY_HXX
#include <build2/types.hxx>
#include <build2/utility.hxx>
#include <build2/filesystem... | 25 | 75 | 0.726154 | yssource |
5bb1489856b7e9e6fb42af4d732e91de66bda8ed | 164 | cpp | C++ | CToC++/CToC++/Leetcode/LeetcodeSolution110.cpp | UCliwenbin/AlgorithmCPP | 3cb4a6a9510682b5d4dc956826d263ab778a2a00 | [
"MIT"
] | 1 | 2021-02-25T08:00:43.000Z | 2021-02-25T08:00:43.000Z | CToC++/CToC++/Leetcode/LeetcodeSolution110.cpp | UCliwenbin/AlgorithmCPP | 3cb4a6a9510682b5d4dc956826d263ab778a2a00 | [
"MIT"
] | null | null | null | CToC++/CToC++/Leetcode/LeetcodeSolution110.cpp | UCliwenbin/AlgorithmCPP | 3cb4a6a9510682b5d4dc956826d263ab778a2a00 | [
"MIT"
] | null | null | null | //
// LeetcodeSolution110.cpp
// CToC++
//
// Created by mac on 2020/8/26.
// Copyright © 2020 lwb. All rights reserved.
//
#include "LeetcodeSolution110.hpp"
| 16.4 | 46 | 0.664634 | UCliwenbin |
5bb18e1d1794b48e0788c2d3ab27b3bfbbf9be55 | 481 | cpp | C++ | InterviewBit/Dynamic Programming/MinSumPathInAMatrix.cpp | CRAZYGEEKS04/competitive-programming-1 | f27b8a718761b7bfeb8ff9e294398ca1a294cb5d | [
"MIT"
] | 2 | 2020-06-01T09:16:47.000Z | 2021-09-04T12:39:41.000Z | InterviewBit/Dynamic Programming/MinSumPathInAMatrix.cpp | gauravsingh58/competitive-programming | fa5548f435cdf2aa059e1d6ab733885790c6a592 | [
"MIT"
] | 1 | 2020-10-10T16:14:54.000Z | 2020-10-10T16:14:54.000Z | InterviewBit/Dynamic Programming/MinSumPathInAMatrix.cpp | gauravsingh58/competitive-programming | fa5548f435cdf2aa059e1d6ab733885790c6a592 | [
"MIT"
] | null | null | null | int Solution::minPathSum(vector<vector<int>> &board) {
int n = board.size();
int m = board[0].size();
vector<vector<int>> dp(n, vector<int>(m, 0));
dp[0][0] = board[0][0];
for (int i = 1; i < n; i++)
dp[i][0] = board[i][0] + dp[i - 1][0];
for (int j = 1; j < m; j++)
dp[0][j] = board[0][j] + dp[0][j - 1];
... | 20.913043 | 60 | 0.45738 | CRAZYGEEKS04 |
5bb466494ff0d40fee21836295a483873af5c1f9 | 7,596 | cpp | C++ | src/matrix.cpp | aboutNisblee/MineSweeperMatrix | 786415cc02333528f02cf452e048036854152f19 | [
"MIT"
] | 2 | 2015-07-09T21:28:10.000Z | 2015-11-04T11:47:01.000Z | src/matrix.cpp | mNisblee/MineSweeperMatrix | 786415cc02333528f02cf452e048036854152f19 | [
"MIT"
] | null | null | null | src/matrix.cpp | mNisblee/MineSweeperMatrix | 786415cc02333528f02cf452e048036854152f19 | [
"MIT"
] | null | null | null | /**
* \addtogroup lib
* \{
*
* @file matrix.cpp
*
* Implementation of {@link matrix.hpp}
*
* @date 18.11.2012
* @author Moritz Nisblé moritz.nisble@gmx.de
*/
#include "matrix.hpp"
#include <algorithm>
namespace msm
{
#define SIGNAL_GAMESTATUSCHANGED(matrix, status) do{ \
for (std::list<MatrixObserver*>:... | 21.041551 | 115 | 0.640469 | aboutNisblee |
5bb870e2e6f474a1563e0dae790ba713cddaaf0e | 2,270 | cpp | C++ | source/tests/mars-test/mars_gps_sensor.cpp | eallak/mars_lib | 9657fb669c48be39471e7504c3648319126c020b | [
"BSD-2-Clause"
] | null | null | null | source/tests/mars-test/mars_gps_sensor.cpp | eallak/mars_lib | 9657fb669c48be39471e7504c3648319126c020b | [
"BSD-2-Clause"
] | null | null | null | source/tests/mars-test/mars_gps_sensor.cpp | eallak/mars_lib | 9657fb669c48be39471e7504c3648319126c020b | [
"BSD-2-Clause"
] | null | null | null |
#include <gmock/gmock.h>
#include <mars/sensors/gps/gps_measurement_type.h>
#include <mars/sensors/gps/gps_sensor_class.h>
#include <mars/type_definitions/base_states.h>
#include <mars/type_definitions/buffer_data_type.h>
#include <mars/type_definitions/buffer_entry_type.h>
#include <Eigen/Dense>
class mars_gps_senso... | 32.898551 | 109 | 0.738767 | eallak |
5bbba033d3b3f9cf6dc3e3cce9547cc7aa8baafe | 6,910 | cpp | C++ | test/it/TestAlias.cpp | ArkaprabhaChakraborty/milvus-sdk-cpp | 0d8b64fa7680888c4a2baba7363d5370a7195ad2 | [
"Apache-2.0"
] | 9 | 2021-11-11T07:17:51.000Z | 2022-03-22T04:56:24.000Z | test/it/TestAlias.cpp | ArkaprabhaChakraborty/milvus-sdk-cpp | 0d8b64fa7680888c4a2baba7363d5370a7195ad2 | [
"Apache-2.0"
] | 172 | 2021-11-12T03:42:39.000Z | 2022-03-31T07:24:43.000Z | test/it/TestAlias.cpp | ArkaprabhaChakraborty/milvus-sdk-cpp | 0d8b64fa7680888c4a2baba7363d5370a7195ad2 | [
"Apache-2.0"
] | 3 | 2021-11-12T03:50:18.000Z | 2022-03-22T04:56:31.000Z | // Licensed to the LF AI & Data foundation under one
// or more contributor license agreements. See the NOTICE file
// distributed with this work for additional information
// regarding copyright ownership. The ASF licenses this file
// to you under the Apache License, Version 2.0 (the
// "License"); you may not use th... | 38.176796 | 120 | 0.630246 | ArkaprabhaChakraborty |
5bbc29bc231e03a5f5520de57966cf0d54bc02ea | 3,114 | cpp | C++ | examples/Script.cpp | dbpotato/sacs | 70d2c45a6529e58ba8c216460c0d1e9d55b16040 | [
"MIT"
] | null | null | null | examples/Script.cpp | dbpotato/sacs | 70d2c45a6529e58ba8c216460c0d1e9d55b16040 | [
"MIT"
] | null | null | null | examples/Script.cpp | dbpotato/sacs | 70d2c45a6529e58ba8c216460c0d1e9d55b16040 | [
"MIT"
] | null | null | null | /*
Copyright (c) 2020 Adam Kaniewski
Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the
"Software"), to deal in the Software without restriction, including
without limitation the rights to use, copy, modify, merge, publish,
distribute, ... | 42.081081 | 165 | 0.632306 | dbpotato |
5bc0a605ababf3b20136750c5822e93f518427b1 | 5,654 | cpp | C++ | Source/Common/SQLLite.cpp | g-maxime/MediaConch_SourceCode | 54208791ca0b6eb3f7bffd17f67e236777f69d89 | [
"BSD-2-Clause"
] | 29 | 2016-01-28T08:58:54.000Z | 2021-12-19T16:49:58.000Z | Source/Common/SQLLite.cpp | g-maxime/MediaConch_SourceCode | 54208791ca0b6eb3f7bffd17f67e236777f69d89 | [
"BSD-2-Clause"
] | 218 | 2015-07-07T09:49:17.000Z | 2022-03-21T06:18:37.000Z | Source/Common/SQLLite.cpp | g-maxime/MediaConch_SourceCode | 54208791ca0b6eb3f7bffd17f67e236777f69d89 | [
"BSD-2-Clause"
] | 18 | 2015-06-19T17:58:34.000Z | 2021-12-08T15:02:26.000Z | /* Copyright (c) MediaArea.net SARL. All Rights Reserved.
*
* Use of this source code is governed by a BSD-style license that can
* be found in the License.html file in the root of the source tree.
*/
//---------------------------------------------------------------------------
#ifdef HAVE_SQLITE
//--... | 27.715686 | 101 | 0.380969 | g-maxime |
5bc38caa254a13581656571bccd6dea47de4ec7a | 399 | cpp | C++ | code/exploration_10-ALGORITHMS_AND_ITERATORS/05-doubling_numbers_in_a_vector_using_a_range-based_loop/main.cpp | ordinary-developer/exploring_cpp_11_2_ed_r_lischner | 468de9c64ae54db45c4de748436947d5849c4582 | [
"MIT"
] | 1 | 2017-05-04T08:23:46.000Z | 2017-05-04T08:23:46.000Z | code/exploration_10-ALGORITHMS_AND_ITERATORS/05-doubling_numbers_in_a_vector_using_a_range-based_loop/main.cpp | ordinary-developer/exploring_cpp_11_2_ed_r_lischner | 468de9c64ae54db45c4de748436947d5849c4582 | [
"MIT"
] | null | null | null | code/exploration_10-ALGORITHMS_AND_ITERATORS/05-doubling_numbers_in_a_vector_using_a_range-based_loop/main.cpp | ordinary-developer/exploring_cpp_11_2_ed_r_lischner | 468de9c64ae54db45c4de748436947d5849c4582 | [
"MIT"
] | null | null | null | #include <iomanip>
#include <iostream>
#include <vector>
int main() {
std::vector<int> data{};
int x{};
while (std::cin >> x)
data.push_back(x);
std::cout.fill(' ');
for (int element : data)
std::cout << std::setw(2) << element
<< std::setw(3) << element * 2
... | 19 | 63 | 0.478697 | ordinary-developer |
5bc573c332ca4045f7adfd8ab675411288b4498c | 1,446 | cpp | C++ | sample/core/platform_linux.cpp | asmwarrior/syncpp | df34b95b308d7f2e6479087d629017efa7ab9f1f | [
"Apache-2.0"
] | 1 | 2019-02-08T02:23:56.000Z | 2019-02-08T02:23:56.000Z | sample/core/platform_linux.cpp | asmwarrior/syncpp | df34b95b308d7f2e6479087d629017efa7ab9f1f | [
"Apache-2.0"
] | null | null | null | sample/core/platform_linux.cpp | asmwarrior/syncpp | df34b95b308d7f2e6479087d629017efa7ab9f1f | [
"Apache-2.0"
] | 1 | 2020-12-02T02:37:40.000Z | 2020-12-02T02:37:40.000Z | /*
* Copyright 2014 Anton Karmanov
*
* 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 agree... | 28.92 | 76 | 0.731674 | asmwarrior |
5bc8ba1185f43778b1b19cd4ca9a95cebbc438ac | 257 | cpp | C++ | wizard-basic-0-compiler/source/thewizardplusplus/wizard-basic-0/exceptions/MissedClosingBracket.cpp | thewizardplusplus/wizard-basic-4 | 55562c7097c4219c205d93ff20986e5613b9147b | [
"MIT"
] | 1 | 2016-04-17T22:53:05.000Z | 2016-04-17T22:53:05.000Z | wizard-basic-0-compiler/source/thewizardplusplus/wizard-basic-0/exceptions/MissedClosingBracket.cpp | thewizardplusplus/wizard-basic-4 | 55562c7097c4219c205d93ff20986e5613b9147b | [
"MIT"
] | null | null | null | wizard-basic-0-compiler/source/thewizardplusplus/wizard-basic-0/exceptions/MissedClosingBracket.cpp | thewizardplusplus/wizard-basic-4 | 55562c7097c4219c205d93ff20986e5613b9147b | [
"MIT"
] | null | null | null | #include "MissedClosingBracket.h"
using namespace thewizardplusplus::wizard_basic_0::exceptions;
const std::string MissedClosingBracket::MESSAGE = "missed closing bracket";
MissedClosingBracket::MissedClosingBracket(void) :
CompileException(MESSAGE)
{}
| 25.7 | 75 | 0.821012 | thewizardplusplus |
5bd1ef19e26dc3ff9962858d42fbcb32475ebf3c | 342 | cpp | C++ | src/Detector.cpp | kontramind/zivid-python | b18582c0cdef261d42fb737c7eee71e350048569 | [
"BSD-3-Clause"
] | null | null | null | src/Detector.cpp | kontramind/zivid-python | b18582c0cdef261d42fb737c7eee71e350048569 | [
"BSD-3-Clause"
] | null | null | null | src/Detector.cpp | kontramind/zivid-python | b18582c0cdef261d42fb737c7eee71e350048569 | [
"BSD-3-Clause"
] | null | null | null | #include <Zivid/HandEye/Detector.h>
#include <ZividPython/Detector.h>
#include <pybind11/pybind11.h>
namespace py = pybind11;
namespace ZividPython
{
void wrapClass(pybind11::class_<Zivid::HandEye::DetectionResult> pyClass)
{
pyClass.def("valid", &Zivid::HandEye::DetectionResult::valid);
}
} // ... | 21.375 | 77 | 0.719298 | kontramind |
5bd47017867bcd285918ffdad213aa1e03095a8a | 4,413 | cpp | C++ | Library_MMDFiles/src/lib/SystemTexture.cpp | ChaseBro/MMDAgent | 779cd3035954c27016333a2186896e1870e9ee54 | [
"Libpng",
"Zlib",
"Unlicense"
] | 9 | 2017-08-17T01:01:55.000Z | 2022-02-02T09:50:09.000Z | Library_MMDFiles/src/lib/SystemTexture.cpp | ChaseBro/MMDAgent | 779cd3035954c27016333a2186896e1870e9ee54 | [
"Libpng",
"Zlib",
"Unlicense"
] | null | null | null | Library_MMDFiles/src/lib/SystemTexture.cpp | ChaseBro/MMDAgent | 779cd3035954c27016333a2186896e1870e9ee54 | [
"Libpng",
"Zlib",
"Unlicense"
] | 4 | 2017-08-17T01:01:57.000Z | 2021-06-28T08:30:17.000Z | /* ----------------------------------------------------------------- */
/* The Toolkit for Building Voice Interaction Systems */
/* "MMDAgent" developed by MMDAgent Project Team */
/* http://www.mmdagent.jp/ */
/* -------------------------... | 40.486239 | 72 | 0.519828 | ChaseBro |
5bd4bd0aa8ce443818d66072937e9145f4401d00 | 456 | cpp | C++ | AED 1/Prova 2/questao 1.cpp | andreflabr/EstudoCC | b89aa2dbe48cc8adeef1c955cd4f7775705f70e4 | [
"MIT"
] | null | null | null | AED 1/Prova 2/questao 1.cpp | andreflabr/EstudoCC | b89aa2dbe48cc8adeef1c955cd4f7775705f70e4 | [
"MIT"
] | null | null | null | AED 1/Prova 2/questao 1.cpp | andreflabr/EstudoCC | b89aa2dbe48cc8adeef1c955cd4f7775705f70e4 | [
"MIT"
] | null | null | null | #include<bits/stdc++.h>
int main(){
double matriz[4][3], vetor[12];
int l, c, i=0;
for(l=0; l<4; l++){
for(c=0; c<3; c++){
scanf("%lf", &matriz[l][c]);
}
}
do{
for(l=0; l<4; l++){
for(c=0; c<3; c++){
vetor[i] = matriz[l][c];
... | 18.24 | 59 | 0.335526 | andreflabr |
5bd797bf482abadf0245f37962583fdb384dc2bd | 711 | cpp | C++ | the-most-frequent.cpp | vargad/multi_target_cmake_project_example | c0d57ad498addd161ee852462ad70e7ae7822fc9 | [
"MIT"
] | null | null | null | the-most-frequent.cpp | vargad/multi_target_cmake_project_example | c0d57ad498addd161ee852462ad70e7ae7822fc9 | [
"MIT"
] | null | null | null | the-most-frequent.cpp | vargad/multi_target_cmake_project_example | c0d57ad498addd161ee852462ad70e7ae7822fc9 | [
"MIT"
] | null | null | null | // 2018 Daniel Varga (vargad88@gmail.com)
#include <list>
#include <vector>
#include <iostream>
#include <map>
#include <algorithm>
template <typename Container>
typename Container::value_type most_frequent(const Container &container) {
std::map<typename Container::value_type, std::size_t> counter;
for (auto ... | 29.625 | 141 | 0.661041 | vargad |
5bd8757aeda5bc7d5dd2581d070dfa15bf13f5f3 | 526 | cpp | C++ | 034/test/tst_remove_blank_line.cpp | Ponz-Tofu-N/ModernCppChallengePractice | c2003fc180fc28448a3ff5b3e0f0c2788154af8c | [
"MIT"
] | null | null | null | 034/test/tst_remove_blank_line.cpp | Ponz-Tofu-N/ModernCppChallengePractice | c2003fc180fc28448a3ff5b3e0f0c2788154af8c | [
"MIT"
] | null | null | null | 034/test/tst_remove_blank_line.cpp | Ponz-Tofu-N/ModernCppChallengePractice | c2003fc180fc28448a3ff5b3e0f0c2788154af8c | [
"MIT"
] | null | null | null | #include <gtest/gtest.h>
#include "../remove_blank_line.h"
#include <fstream>
TEST(removeBlankLine, removeBlankLine)
{
std::string input("test.txt");
std::string output("test_out.txt");
removeBlankLines(input, output);
std::ifstream ifs_expected("test_expected.txt");
std::ifstream ifs_out(output... | 22.869565 | 66 | 0.663498 | Ponz-Tofu-N |
5bd93fc105bc08eef633d8ccb9e46ff34dc5d018 | 883 | cpp | C++ | Week_0/Ans1.cpp | s1orm/DAA-Lab-Assignment | 47c3ec23fbc6da60c225a26abf9a13839db4c12d | [
"MIT"
] | null | null | null | Week_0/Ans1.cpp | s1orm/DAA-Lab-Assignment | 47c3ec23fbc6da60c225a26abf9a13839db4c12d | [
"MIT"
] | null | null | null | Week_0/Ans1.cpp | s1orm/DAA-Lab-Assignment | 47c3ec23fbc6da60c225a26abf9a13839db4c12d | [
"MIT"
] | null | null | null | #include<iostream>
#include<fstream>
using namespace std;
void linear_search(int *a,int n,int ele)
{
int count=0,f=0;
fstream output;
output.open("ouput.txt",ios::app);
for(int i=0;i<n;i++)
{ count++;
if(a[i]==ele)
{
f=1;
break;
}
}
if(... | 14.241935 | 62 | 0.463194 | s1orm |
5bda1e0d5dfbaf9894c025f1d99f671ee2938a14 | 171 | cpp | C++ | pyxmolpp2/_core/pyxmolpp2.cpp | sizmailov/pyxmolpp2 | 9395ba1b1ddc957e0b33dc6decccdb711e720764 | [
"MIT"
] | 4 | 2020-06-24T11:07:57.000Z | 2022-01-15T23:00:30.000Z | pyxmolpp2/_core/pyxmolpp2.cpp | sizmailov/pyxmolpp2 | 9395ba1b1ddc957e0b33dc6decccdb711e720764 | [
"MIT"
] | 84 | 2018-04-22T12:29:31.000Z | 2020-06-17T15:03:37.000Z | pyxmolpp2/_core/pyxmolpp2.cpp | sizmailov/pyxmolpp2 | 9395ba1b1ddc957e0b33dc6decccdb711e720764 | [
"MIT"
] | 6 | 2018-06-04T09:16:26.000Z | 2022-03-12T11:05:54.000Z | #include "init.h"
#include <pybind11/pybind11.h>
namespace py = pybind11;
PYBIND11_MODULE(_core, m) {
m.doc() = "pyxmolpp2 implementation";
pyxmolpp::v1::init(m);
}
| 17.1 | 39 | 0.690058 | sizmailov |
5be36ef3f763f7fecfdb0d0aa9d3594ceaa1fde5 | 1,141 | cpp | C++ | src/demos/trackVehicle/subsys/ChVehicleModelData.cpp | andrewseidl/chrono | ec3d1689fa4d1ca40ef6d9ffdd2f509c0dc2cecd | [
"BSD-3-Clause"
] | null | null | null | src/demos/trackVehicle/subsys/ChVehicleModelData.cpp | andrewseidl/chrono | ec3d1689fa4d1ca40ef6d9ffdd2f509c0dc2cecd | [
"BSD-3-Clause"
] | null | null | null | src/demos/trackVehicle/subsys/ChVehicleModelData.cpp | andrewseidl/chrono | ec3d1689fa4d1ca40ef6d9ffdd2f509c0dc2cecd | [
"BSD-3-Clause"
] | null | null | null | // =============================================================================
// PROJECT CHRONO - http://projectchrono.org
//
// Copyright (c) 2014 projectchrono.org
// All right reserved.
//
// Use of this source code is governed by a BSD-style license that can be found
// in the LICENSE file at the top level of th... | 33.558824 | 80 | 0.525855 | andrewseidl |
5be3dd5795e41fa73265aa721ff2f80774e9f73c | 479 | cc | C++ | cf/1189/D.cc | qinggniq/Algorithm-Practice | 24339bd059cd3cf7fe8e93a74d54b59cf4686a1b | [
"MIT"
] | null | null | null | cf/1189/D.cc | qinggniq/Algorithm-Practice | 24339bd059cd3cf7fe8e93a74d54b59cf4686a1b | [
"MIT"
] | null | null | null | cf/1189/D.cc | qinggniq/Algorithm-Practice | 24339bd059cd3cf7fe8e93a74d54b59cf4686a1b | [
"MIT"
] | null | null | null | #include <iostream>
#include <vector>
using namespace std;
struct Node{
int key;
vector<int> next;
}G[100050];
int main() {
int n; cin >> n;
int u, v;
for (int i=0; i<n-1; ++i) {
cin >> u >> v;
G[u].next.push_back(v);
G[v].next.push_back(u);
}
bool flag = false;
... | 19.958333 | 56 | 0.480167 | qinggniq |
5be4be16fe85036cf707a3668a53dfa6567a6ba5 | 552 | cpp | C++ | libraries/model/optimizer/test/src/ExampleOptimizers.cpp | awf/ELL | 25c94a1422efc41d5560db11b136f9d8f957ad41 | [
"MIT"
] | 2,094 | 2016-09-28T05:55:24.000Z | 2019-05-04T19:06:36.000Z | libraries/model/optimizer/test/src/ExampleOptimizers.cpp | awesomemachinelearning/ELL | cb897e3aec148a1e9bd648012b5f53ab9d0dd20c | [
"MIT"
] | 213 | 2017-06-30T12:53:40.000Z | 2019-05-03T06:35:38.000Z | libraries/model/optimizer/test/src/ExampleOptimizers.cpp | awesomemachinelearning/ELL | cb897e3aec148a1e9bd648012b5f53ab9d0dd20c | [
"MIT"
] | 301 | 2017-03-24T08:40:00.000Z | 2019-05-02T21:22:28.000Z | ////////////////////////////////////////////////////////////////////////////////////////////////////
//
// Project: Embedded Learning Library (ELL)
// File: ExampleOptimizers.cpp (model/optimizer_test)
// Authors: Chuck Jacobs
//
/////////////////////////////////////////////////////////////////////////////////... | 36.8 | 100 | 0.46558 | awf |
5bebf2e301d4b49edcf184d611e8cb141b00a08b | 32,546 | cpp | C++ | TravelCrash/Plugins/HoudiniEngine/Source/HoudiniEngineRuntime/Private/HoudiniAssetInstanceInputField.cpp | all-in-one-of/HoudiniBugs | 00ccf448e4536241c9e4cf25ee4906f38479032c | [
"Unlicense"
] | null | null | null | TravelCrash/Plugins/HoudiniEngine/Source/HoudiniEngineRuntime/Private/HoudiniAssetInstanceInputField.cpp | all-in-one-of/HoudiniBugs | 00ccf448e4536241c9e4cf25ee4906f38479032c | [
"Unlicense"
] | null | null | null | TravelCrash/Plugins/HoudiniEngine/Source/HoudiniEngineRuntime/Private/HoudiniAssetInstanceInputField.cpp | all-in-one-of/HoudiniBugs | 00ccf448e4536241c9e4cf25ee4906f38479032c | [
"Unlicense"
] | null | null | null | /*
* Copyright (c) <2017> Side Effects Software Inc.
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, mer... | 37.844186 | 152 | 0.6795 | all-in-one-of |
5becbb836dbdd329dba6bf395945f62d35e6e6bf | 6,803 | cpp | C++ | core/connections/wim/events/fetch_event_dlg_state.cpp | Vavilon3000/icq | 9fe7a3c42c07eb665d2e3b0ec50052de382fd89c | [
"Apache-2.0"
] | 1 | 2021-03-18T20:00:07.000Z | 2021-03-18T20:00:07.000Z | core/connections/wim/events/fetch_event_dlg_state.cpp | Vavilon3000/icq | 9fe7a3c42c07eb665d2e3b0ec50052de382fd89c | [
"Apache-2.0"
] | null | null | null | core/connections/wim/events/fetch_event_dlg_state.cpp | Vavilon3000/icq | 9fe7a3c42c07eb665d2e3b0ec50052de382fd89c | [
"Apache-2.0"
] | null | null | null | #include "stdafx.h"
#include "fetch_event_dlg_state.h"
#include "../wim_history.h"
#include "../wim_im.h"
#include "../wim_packet.h"
#include "../../../archive/archive_index.h"
#include "../../../log/log.h"
using namespace core;
using namespace wim;
fetch_event_dlg_state::fetch_event_dlg_state()
: t... | 35.248705 | 133 | 0.616346 | Vavilon3000 |
5bee957c20734471712867d29eceea89ea2409d8 | 1,393 | cc | C++ | 17summer/cf849b_ac.cc | xsthunder/a | 3c30f31c59030d70462b71ef28c5eee19c6eddd6 | [
"MIT"
] | 1 | 2018-07-22T04:52:10.000Z | 2018-07-22T04:52:10.000Z | 17summer/cf849b_ac.cc | xsthunder/a | 3c30f31c59030d70462b71ef28c5eee19c6eddd6 | [
"MIT"
] | 1 | 2018-08-11T13:29:59.000Z | 2018-08-11T13:31:28.000Z | 17summer/cf849b_ac.cc | xsthunder/a | 3c30f31c59030d70462b71ef28c5eee19c6eddd6 | [
"MIT"
] | null | null | null | #include<cstdio>
#include<cmath>
#include<set>
#include<cstdlib>
#include<cstring>
#include<utility>
using namespace std;
#define MS(m,z) memset(m,z,sizeof(m))
typedef unsigned U; typedef pair<int,int > P; typedef long long ll;
void inp();
int main(){
#ifdef XS
//freopen(".in","r",stdin);
#endif
//int ttt;scanf("%d",... | 17.4125 | 67 | 0.578607 | xsthunder |
5bf097c4645bca073b693575d5dee8489b555aeb | 2,178 | cc | C++ | moui/core/android/application_android.cc | ollix/moui | 4a931aa15fac42b308baae170a855c2d78f9ee9f | [
"Apache-2.0"
] | 59 | 2015-01-23T01:02:50.000Z | 2021-11-26T00:01:45.000Z | moui/core/android/application_android.cc | ollix/moui | 4a931aa15fac42b308baae170a855c2d78f9ee9f | [
"Apache-2.0"
] | 2 | 2017-05-26T15:26:24.000Z | 2020-09-25T03:54:01.000Z | moui/core/android/application_android.cc | ollix/moui | 4a931aa15fac42b308baae170a855c2d78f9ee9f | [
"Apache-2.0"
] | 7 | 2015-09-25T08:09:20.000Z | 2019-11-24T15:24:28.000Z | // Copyright (c) 2014 Ollix. 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 ... | 26.888889 | 75 | 0.714876 | ollix |
5bf1f724d72b5e02f3d12bba79895040813beaca | 17,322 | cpp | C++ | gedl/src/FuncNameListGen.cpp | gaps-closure/capo | 894d2f6d291ff79e18c77e0ca7073531147cbee8 | [
"BSD-3-Clause"
] | 1 | 2021-04-20T18:43:44.000Z | 2021-04-20T18:43:44.000Z | gedl/src/FuncNameListGen.cpp | gaps-closure/capo | 894d2f6d291ff79e18c77e0ca7073531147cbee8 | [
"BSD-3-Clause"
] | 1 | 2021-09-23T14:55:43.000Z | 2021-09-23T18:09:35.000Z | gedl/src/FuncNameListGen.cpp | gaps-closure/capo | 894d2f6d291ff79e18c77e0ca7073531147cbee8 | [
"BSD-3-Clause"
] | 1 | 2020-05-21T03:12:16.000Z | 2020-05-21T03:12:16.000Z | #ifndef LLVM_TEST_H
#define LLVM_TEST_H
#include "llvm/Analysis/AliasAnalysis.h"
#include "llvm/Analysis/CFLSteensAliasAnalysis.h"
#include "llvm/Analysis/CFLAndersAliasAnalysis.h"
#include "llvm/Analysis/MemoryLocation.h"
#include "llvm/Analysis/MemoryBuiltins.h"
#include "llvm/Analysis/MemoryDependenceAnalysis.h"
#i... | 41.84058 | 154 | 0.410692 | gaps-closure |
5bf28511cae1daca6a315cdb69061cb14d4a3c28 | 8,293 | cpp | C++ | v-spmines/Script.cpp | root-cause/v-spmines | d62decaf0bafd540067159078de6d509dffae221 | [
"MIT"
] | null | null | null | v-spmines/Script.cpp | root-cause/v-spmines | d62decaf0bafd540067159078de6d509dffae221 | [
"MIT"
] | null | null | null | v-spmines/Script.cpp | root-cause/v-spmines | d62decaf0bafd540067159078de6d509dffae221 | [
"MIT"
] | null | null | null | #include "pch.h"
#include "Script.h"
std::unordered_map<Hash, MineSetData> g_mineSets;
std::unordered_map<Hash, Hash> g_vehicleModels; /* VehicleModelHash, MineSetNameHash */
int g_lastMineDrop;
void LoadModel(Hash modelHash)
{
if (!STREAMING::IS_MODEL_VALID(modelHash))
{
return;
}
STREAMING::REQUEST_MODEL(mod... | 30.377289 | 161 | 0.6942 | root-cause |
5bf394fb0e7019ce8c0d0691770698b7799a97f9 | 5,131 | cpp | C++ | modules/examples/ex-exposure_times.cpp | theseankelly/libo3d3xx | 01cdf9560d69b1ee91ca9b4298df7bb4efb45e52 | [
"Apache-2.0"
] | 36 | 2015-04-04T15:19:50.000Z | 2018-10-11T14:33:05.000Z | modules/examples/ex-exposure_times.cpp | theseankelly/libo3d3xx | 01cdf9560d69b1ee91ca9b4298df7bb4efb45e52 | [
"Apache-2.0"
] | 111 | 2015-04-22T16:12:55.000Z | 2018-10-16T08:03:40.000Z | modules/examples/ex-exposure_times.cpp | theseankelly/libo3d3xx | 01cdf9560d69b1ee91ca9b4298df7bb4efb45e52 | [
"Apache-2.0"
] | 40 | 2015-07-13T09:29:31.000Z | 2018-09-14T06:56:24.000Z | /*
* Copyright (C) 2016 Love Park Robotics, LLC
*
* 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 o... | 31.09697 | 78 | 0.593841 | theseankelly |
5bf4725592e6d1b3d9b0c184bc70c4de71ffa340 | 1,137 | cpp | C++ | tests/set_column_test.cpp | tbirdso/CLIc_prototype | 82ab4c565b95048152c7e762d45dcd13768700b7 | [
"BSD-3-Clause"
] | 12 | 2020-07-29T15:26:50.000Z | 2022-01-26T15:40:41.000Z | tests/set_column_test.cpp | tbirdso/CLIc_prototype | 82ab4c565b95048152c7e762d45dcd13768700b7 | [
"BSD-3-Clause"
] | 49 | 2020-09-09T12:51:31.000Z | 2022-03-31T13:40:08.000Z | tests/set_column_test.cpp | tbirdso/CLIc_prototype | 82ab4c565b95048152c7e762d45dcd13768700b7 | [
"BSD-3-Clause"
] | 8 | 2020-10-05T12:05:10.000Z | 2022-02-08T13:52:29.000Z |
#include <random>
#include "clesperanto.hpp"
/**
* Main test function
*
*/
int main(int argc, char **argv)
{
// Initialise random input and valid output.
int width (5), height (1), depth (1);
int dims[3] = {width, height, depth};
std::vector<float> input_data (width*height*depth);
std::vector<... | 26.44186 | 67 | 0.615655 | tbirdso |
5bfeb4015609810b5b334639a938bcf9be08bf07 | 17,378 | cpp | C++ | esphome/components/rc522/rc522.cpp | OttoWinter/esphomeyaml | 6a85259e4d6d1b0a0f819688b8e555efcb99ecb0 | [
"MIT"
] | 249 | 2018-04-07T12:04:11.000Z | 2019-01-25T01:11:34.000Z | esphome/components/rc522/rc522.cpp | OttoWinter/esphomeyaml | 6a85259e4d6d1b0a0f819688b8e555efcb99ecb0 | [
"MIT"
] | 243 | 2018-04-11T16:37:11.000Z | 2019-01-25T16:50:37.000Z | esphome/components/rc522/rc522.cpp | OttoWinter/esphomeyaml | 6a85259e4d6d1b0a0f819688b8e555efcb99ecb0 | [
"MIT"
] | 40 | 2018-04-10T05:50:14.000Z | 2019-01-25T15:20:36.000Z | #include "rc522.h"
#include "esphome/core/log.h"
// Based on:
// - https://github.com/miguelbalboa/rfid
namespace esphome {
namespace rc522 {
static const uint8_t WAIT_I_RQ = 0x30; // RxIRq and IdleIRq
static const char *const TAG = "rc522";
static const uint8_t RESET_COUNT = 5;
std::string format_buffer(uint8_t... | 34.825651 | 120 | 0.644608 | OttoWinter |
7500b589ab3b087506e3d46219a259dafec3b726 | 2,174 | cpp | C++ | Nova/Nova/Platform/OpenGLBuffer.cpp | Aaron-Berland/Nova | 1b8587548c58adda27bd2b699bf4229e18f30e13 | [
"Apache-2.0"
] | null | null | null | Nova/Nova/Platform/OpenGLBuffer.cpp | Aaron-Berland/Nova | 1b8587548c58adda27bd2b699bf4229e18f30e13 | [
"Apache-2.0"
] | null | null | null | Nova/Nova/Platform/OpenGLBuffer.cpp | Aaron-Berland/Nova | 1b8587548c58adda27bd2b699bf4229e18f30e13 | [
"Apache-2.0"
] | null | null | null | #include "OpenGLBuffer.h"
#include <glad/glad.h>
namespace Nova
{
unsigned int BufferTypeToOpenGLEnum(BufferType type)
{
switch (type)
{
case Nova::BufferType::StaticDraw:
return GL_STATIC_DRAW;
case Nova::BufferType::DynamicDraw:
return GL_DYNAMIC_DRAW;
case Nova::BufferType::StreamDraw:
return ... | 24.155556 | 188 | 0.75483 | Aaron-Berland |
75094c91cbd93b4a1a6eb6b1c27c60bec25924be | 3,744 | cpp | C++ | src/expanduino/arduino/keypad-linux-input.cpp | Expanduino/Expanduino-Arduino | c7a2fc0dfedb7b648610e90e46fc4be644254f3f | [
"Unlicense"
] | null | null | null | src/expanduino/arduino/keypad-linux-input.cpp | Expanduino/Expanduino-Arduino | c7a2fc0dfedb7b648610e90e46fc4be644254f3f | [
"Unlicense"
] | 1 | 2016-03-25T22:26:19.000Z | 2016-08-31T11:44:18.000Z | src/expanduino/arduino/keypad-linux-input.cpp | Expanduino/Expanduino-Arduino | c7a2fc0dfedb7b648610e90e46fc4be644254f3f | [
"Unlicense"
] | null | null | null | #include "keypad-linux-input.h"
#include <Arduino.h>
#define RUN_DELAY 50
ExpanduinoSubdeviceKeypadLinuxInputArduino::ExpanduinoSubdeviceKeypadLinuxInputArduino(Expanduino& container, const char* name, const char* shortName, const LinuxInputId &linuxInputId, int* rows, int numRows, int* cols, int numCols, ArduinoKeyp... | 31.2 | 278 | 0.734241 | Expanduino |
750975e0c0a06a096e55ee9e2f6285781263dd33 | 1,432 | cxx | C++ | src/Cxx/Visualization/QuadricLODActor.cxx | ajpmaclean/vtk-examples | 1a55fc8c6af67a3c07791807c7d1ec0ab97607a2 | [
"Apache-2.0"
] | 81 | 2020-08-10T01:44:30.000Z | 2022-03-23T06:46:36.000Z | src/Cxx/Visualization/QuadricLODActor.cxx | ajpmaclean/vtk-examples | 1a55fc8c6af67a3c07791807c7d1ec0ab97607a2 | [
"Apache-2.0"
] | 2 | 2020-09-12T17:33:52.000Z | 2021-04-15T17:33:09.000Z | src/Cxx/Visualization/QuadricLODActor.cxx | ajpmaclean/vtk-examples | 1a55fc8c6af67a3c07791807c7d1ec0ab97607a2 | [
"Apache-2.0"
] | 27 | 2020-08-17T07:09:30.000Z | 2022-02-15T03:44:58.000Z | #include <vtkNamedColors.h>
#include <vtkNew.h>
#include <vtkPolyData.h>
#include <vtkPolyDataMapper.h>
#include <vtkProperty.h>
#include <vtkQuadricLODActor.h>
#include <vtkRenderWindow.h>
#include <vtkRenderWindowInteractor.h>
#include <vtkRenderer.h>
#include <vtkSphereSource.h>
int main(int, char*[])
{
vtkNew<vt... | 28.64 | 76 | 0.780726 | ajpmaclean |
750b3e6da9746b543279235520752b77fd115885 | 3,421 | cpp | C++ | Test/DocumentTests.cpp | chrisoldwood/XML | 78913e7b9fbc1fbfec3779652d034ebd150668bc | [
"MIT"
] | 1 | 2020-09-11T13:21:05.000Z | 2020-09-11T13:21:05.000Z | Test/DocumentTests.cpp | chrisoldwood/XML | 78913e7b9fbc1fbfec3779652d034ebd150668bc | [
"MIT"
] | null | null | null | Test/DocumentTests.cpp | chrisoldwood/XML | 78913e7b9fbc1fbfec3779652d034ebd150668bc | [
"MIT"
] | null | null | null | ////////////////////////////////////////////////////////////////////////////////
//! \file DocumentTests.cpp
//! \brief The unit tests for the Document class.
//! \author Chris Oldwood
#include "Common.hpp"
#include <Core/UnitTest.hpp>
#include <XML/Document.hpp>
#include <XML/TextNode.hpp>
#include <XML/ElementNod... | 27.58871 | 105 | 0.721134 | chrisoldwood |
750feb4533c5e534328997d8fa1614ba44598e92 | 12,167 | cpp | C++ | VisualPipes/albaPipeVector.cpp | IOR-BIC/ALBA | b574968b05d9a3a2756dd2ac61d015a0d20232a4 | [
"Apache-2.0",
"BSD-3-Clause"
] | 9 | 2018-11-19T10:15:29.000Z | 2021-08-30T11:52:07.000Z | VisualPipes/albaPipeVector.cpp | IOR-BIC/ALBA | b574968b05d9a3a2756dd2ac61d015a0d20232a4 | [
"Apache-2.0",
"BSD-3-Clause"
] | null | null | null | VisualPipes/albaPipeVector.cpp | IOR-BIC/ALBA | b574968b05d9a3a2756dd2ac61d015a0d20232a4 | [
"Apache-2.0",
"BSD-3-Clause"
] | 3 | 2018-06-10T22:56:29.000Z | 2019-12-12T06:22:56.000Z | /*=========================================================================
Program: ALBA (Agile Library for Biomedical Applications)
Module: albaPipeVector
Authors: Roberto Mucci
Copyright (c) BIC
All rights reserved. See Copyright.txt or
This software is distributed WITHOUT ANY WARRANTY; without even
the ... | 29.318072 | 118 | 0.553546 | IOR-BIC |
75129a3b859d2a724fb2a4b1078d6b3b4c6ab5b0 | 1,721 | tpp | C++ | v1/include/GameObject.tpp | cherosene/learning_algorithms | 8ec9d8b7f744a375170ac2396cfb8bc216f84f53 | [
"MIT"
] | null | null | null | v1/include/GameObject.tpp | cherosene/learning_algorithms | 8ec9d8b7f744a375170ac2396cfb8bc216f84f53 | [
"MIT"
] | null | null | null | v1/include/GameObject.tpp | cherosene/learning_algorithms | 8ec9d8b7f744a375170ac2396cfb8bc216f84f53 | [
"MIT"
] | null | null | null | template <class T>
GameObject<T>::GameObject(std::map<T,std::function<void()>> atm, int nx, int ny, float nspeed) : x(nx), y(ny), speed(nspeed), actionToMove(atm) {}
//// SPATIAL POSITION
template <class T>
void GameObject<T>::warp(int nx, int ny) { x = nx; y = ny; }
template <class T>
void GameObject<T>::move(direct... | 24.585714 | 152 | 0.583963 | cherosene |
75136d7c712e70d72e82bc145e9b0ff6bf537b1b | 17,539 | cpp | C++ | src/flexui/Style/StyleProperty.cpp | mlomb/flexui | 242790aa13b057e25b276b6a3df79a30735c2548 | [
"MIT"
] | 23 | 2020-12-20T01:41:56.000Z | 2021-11-14T20:26:40.000Z | src/flexui/Style/StyleProperty.cpp | mlomb/flexui | 242790aa13b057e25b276b6a3df79a30735c2548 | [
"MIT"
] | 2 | 2020-12-23T16:29:55.000Z | 2021-11-29T05:35:12.000Z | src/flexui/Style/StyleProperty.cpp | mlomb/flexui | 242790aa13b057e25b276b6a3df79a30735c2548 | [
"MIT"
] | 4 | 2020-12-23T16:02:25.000Z | 2021-09-30T08:37:51.000Z | #include "flexui/Style/StyleProperty.hpp"
#include <cmath> // powf
#include "flexui/Style/NamedColors.hpp"
namespace flexui {
/// Check if the character is a valid CSS property
inline bool isPropertyNameChar(const char c) {
return (c == '-') || (c >= 'a' && c <= 'z');
}
/// Converts decimal colors to Color
... | 30.135739 | 116 | 0.640116 | mlomb |
7515f9da3f114383e24a8bfa46211b1e2a3977fd | 2,176 | cpp | C++ | PAT_A/A1033|To Fill or Not to Fill|e.g.cpp | FunamiYui/PAT_Code_Akari | 52e06689b6bf8177c43ab9256719258c47e80b25 | [
"MIT"
] | null | null | null | PAT_A/A1033|To Fill or Not to Fill|e.g.cpp | FunamiYui/PAT_Code_Akari | 52e06689b6bf8177c43ab9256719258c47e80b25 | [
"MIT"
] | null | null | null | PAT_A/A1033|To Fill or Not to Fill|e.g.cpp | FunamiYui/PAT_Code_Akari | 52e06689b6bf8177c43ab9256719258c47e80b25 | [
"MIT"
] | null | null | null | //example
//在距离为0处必须有加油站,否则无法出发,一定无法到达终点
//Cmax、D、Davg、油价、距离都可能是浮点型,不能设置成int型
#include <cstdio>
#include <algorithm>
using namespace std;
const int maxn = 510;
const int INF = 1000000000;
struct station {
double price, dis; //油价格、与起点的距离
} st[maxn];
bool cmp(station a, station b) {
return a.dis < b.dis; //按距离从小到大排序
... | 26.864198 | 114 | 0.606618 | FunamiYui |