hexsha stringlengths 40 40 | size int64 19 11.4M | ext stringclasses 13
values | lang stringclasses 1
value | max_stars_repo_path stringlengths 3 270 | max_stars_repo_name stringlengths 5 110 | max_stars_repo_head_hexsha stringlengths 40 40 | max_stars_repo_licenses listlengths 1 9 | max_stars_count float64 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 3 270 | max_issues_repo_name stringlengths 5 116 | max_issues_repo_head_hexsha stringlengths 40 78 | max_issues_repo_licenses listlengths 1 9 | max_issues_count float64 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 3 270 | max_forks_repo_name stringlengths 5 116 | max_forks_repo_head_hexsha stringlengths 40 78 | max_forks_repo_licenses listlengths 1 9 | max_forks_count float64 1 105k ⌀ | max_forks_repo_forks_event_min_datetime stringlengths 24 24 ⌀ | max_forks_repo_forks_event_max_datetime stringlengths 24 24 ⌀ | content stringlengths 19 11.4M | avg_line_length float64 1.93 229k | max_line_length int64 12 688k | alphanum_fraction float64 0.07 0.99 | matches listlengths 1 10 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
5c5e66d4dcac37988a372b928a7f1dc37642223e | 5,838 | cpp | C++ | ITKLiver/fastmarching.cpp | jon-young/medicalimage | ef8dd3b7c65ab501d1d44ba9ee8f2ad442d42820 | [
"MIT"
] | 6 | 2017-04-05T13:39:55.000Z | 2021-12-27T21:47:14.000Z | ITKLiver/fastmarching.cpp | jon-young/medicalimage | ef8dd3b7c65ab501d1d44ba9ee8f2ad442d42820 | [
"MIT"
] | 1 | 2017-04-06T06:06:05.000Z | 2017-04-06T06:06:05.000Z | ITKLiver/fastmarching.cpp | jon-young/medicalimage | ef8dd3b7c65ab501d1d44ba9ee8f2ad442d42820 | [
"MIT"
] | 6 | 2016-03-17T03:04:28.000Z | 2019-10-21T08:28:43.000Z | //
// Execute fast marching method on 3D image
//
// INPUT:
// - read/write directory with trailing slash
// - region-of-interest as single image file
// - output file name
// - (x,y,z) seed coordinates
// - sigma, sigmoid K1, K2 for gradient and sigmoid mapping
// - stopping time, binary threshold... | 35.168675 | 79 | 0.691161 | [
"3d"
] |
5c5f089e10f245461d66ff6c52bbb5bca108d5b5 | 5,477 | cpp | C++ | src/suConnectedEntity.cpp | ALIGN-analoglayout/AnalogDetailedRouter | 16cf4b4ec6c6b3d5a87277607064a15d7fb4ad3d | [
"BSD-3-Clause"
] | 19 | 2019-07-17T15:41:35.000Z | 2021-12-01T23:57:57.000Z | src/suConnectedEntity.cpp | ALIGN-analoglayout/AnalogDetailedRouter | 16cf4b4ec6c6b3d5a87277607064a15d7fb4ad3d | [
"BSD-3-Clause"
] | null | null | null | src/suConnectedEntity.cpp | ALIGN-analoglayout/AnalogDetailedRouter | 16cf4b4ec6c6b3d5a87277607064a15d7fb4ad3d | [
"BSD-3-Clause"
] | 2 | 2020-07-28T18:50:39.000Z | 2022-01-24T03:13:39.000Z | // see LICENSE
//! \author Ryzhenko Nikolai, 10984646, nikolai.v.ryzhenko@intel.com
//! \date Mon Oct 16 11:20:03 2017
//! \file suConnectedEntity.cpp
//! \brief A collection of methods of the class suConnectedEntity.
// std includes
#include <algorithm>
#include <iostream>
#include <sstream>
#include <string>
#... | 29.28877 | 138 | 0.541172 | [
"vector"
] |
5c7003464898e6a6c0cfbb279f4b81d1b5a7f74b | 6,578 | cpp | C++ | src/db/db_management.cpp | koralkashri/cpp-bank-management | 62def8a3295e812f6d5c23b04b4fee2b379a62b0 | [
"MIT"
] | null | null | null | src/db/db_management.cpp | koralkashri/cpp-bank-management | 62def8a3295e812f6d5c23b04b4fee2b379a62b0 | [
"MIT"
] | null | null | null | src/db/db_management.cpp | koralkashri/cpp-bank-management | 62def8a3295e812f6d5c23b04b4fee2b379a62b0 | [
"MIT"
] | null | null | null | #include "db_management.h"
#include <bsoncxx/json.hpp>
#include <mongocxx/stdx.hpp>
#include <mongocxx/uri.hpp>
#include <mongocxx/instance.hpp>
#include <bsoncxx/builder/stream/helpers.hpp>
#include <bsoncxx/builder/stream/document.hpp>
#include <bsoncxx/builder/stream/array.hpp>
#include "../extensions/custom_excepti... | 45.365517 | 134 | 0.767863 | [
"vector"
] |
5c704edd0633e0b6e73751bbb66ceeceec9045aa | 4,504 | cpp | C++ | src/main/cpp/mtl.cpp | brkyvz/linalg-benchmarks | 64b2414bf8cf75089853021ca02ccd2078e938ca | [
"Apache-2.0"
] | null | null | null | src/main/cpp/mtl.cpp | brkyvz/linalg-benchmarks | 64b2414bf8cf75089853021ca02ccd2078e938ca | [
"Apache-2.0"
] | null | null | null | src/main/cpp/mtl.cpp | brkyvz/linalg-benchmarks | 64b2414bf8cf75089853021ca02ccd2078e938ca | [
"Apache-2.0"
] | null | null | null | #include <iostream>
#include <cstdio>
#include <ctime>
#include <boost/numeric/mtl/mtl.hpp>
#include "boost/program_options.hpp"
using namespace std;
using namespace mtl;
using namespace mtl::mat;
namespace po = boost::program_options;
// m: numRows, n: numCols
inline double simpleDenseTest_MTL(int m, int n, int num... | 33.864662 | 93 | 0.613677 | [
"vector"
] |
f07a025dcead43700dbaec461aadbbad96efd5de | 528 | cpp | C++ | functional_programming2/main/main.cpp | franz-ms-muc/cxx_Samples | 6713198913e3487ec566edf3b31cc5a38e0fb122 | [
"Apache-2.0"
] | null | null | null | functional_programming2/main/main.cpp | franz-ms-muc/cxx_Samples | 6713198913e3487ec566edf3b31cc5a38e0fb122 | [
"Apache-2.0"
] | null | null | null | functional_programming2/main/main.cpp | franz-ms-muc/cxx_Samples | 6713198913e3487ec566edf3b31cc5a38e0fb122 | [
"Apache-2.0"
] | null | null | null |
#include <vector>
#include <algorithm>
#include <iostream>
using namespace std;
class MyLess
{
public:
bool operator()(int a, int b)
{
return a < b;
}
};
/* Inside .cpp file, app_main function must be declared with C linkage */
extern "C" void app_main(void)
{
cout << "app_main starting" << end... | 12 | 73 | 0.545455 | [
"vector"
] |
f07fda9112a813957abe91efb2fd970f322f2a21 | 1,060 | cpp | C++ | langs/c++/sort_bind/sort_bind.cpp | danielgrigg/sandbox | 95128ef44ddc2df2a819b14b9930f95d9c9fd423 | [
"WTFPL"
] | 1 | 2017-02-23T03:57:39.000Z | 2017-02-23T03:57:39.000Z | langs/c++/sort_bind/sort_bind.cpp | danielgrigg/sandbox | 95128ef44ddc2df2a819b14b9930f95d9c9fd423 | [
"WTFPL"
] | null | null | null | langs/c++/sort_bind/sort_bind.cpp | danielgrigg/sandbox | 95128ef44ddc2df2a819b14b9930f95d9c9fd423 | [
"WTFPL"
] | null | null | null |
#include <iostream>
#include <boost/algorithm/string/predicate.hpp>
#include <boost/bind.hpp>
#include <vector>
#include <string>
using namespace std;
typedef pair<string,string> file_info;
bool nocase_compare(const file_info &lhs, const file_info &rhs)
{
return boost::algorithm::ilexicographical_compare(... | 25.238095 | 89 | 0.633019 | [
"vector"
] |
f081e2e4071c0f9cc0dd9b4a301e34b6ce3024f0 | 5,718 | hpp | C++ | stapl_release/stapl/views/metadata/projection/segmented.hpp | parasol-ppl/PPL_utils | 92728bb89692fda1705a0dee436592d97922a6cb | [
"BSD-3-Clause"
] | null | null | null | stapl_release/stapl/views/metadata/projection/segmented.hpp | parasol-ppl/PPL_utils | 92728bb89692fda1705a0dee436592d97922a6cb | [
"BSD-3-Clause"
] | null | null | null | stapl_release/stapl/views/metadata/projection/segmented.hpp | parasol-ppl/PPL_utils | 92728bb89692fda1705a0dee436592d97922a6cb | [
"BSD-3-Clause"
] | null | null | null | /*
// Copyright (c) 2000-2009, Texas Engineering Experiment Station (TEES), a
// component of the Texas A&M University System.
// All rights reserved.
// The information and source code contained herein is the exclusive
// property of TEES and may not be disclosed, examined or reproduced
// in whole or in part withou... | 35.079755 | 78 | 0.631165 | [
"vector"
] |
f0855e83cdecea40fa3f827166f3138dfc2d022c | 20,688 | cc | C++ | bindings/python/py_api.cc | Tparuchuri/reinforcement_learning | a09db076667bbfd9581cac265a0874840881241b | [
"MIT"
] | null | null | null | bindings/python/py_api.cc | Tparuchuri/reinforcement_learning | a09db076667bbfd9581cac265a0874840881241b | [
"MIT"
] | 1 | 2022-02-08T21:18:37.000Z | 2022-02-08T21:18:37.000Z | bindings/python/py_api.cc | Tparuchuri/reinforcement_learning | a09db076667bbfd9581cac265a0874840881241b | [
"MIT"
] | null | null | null | #include <pybind11/functional.h>
#include <pybind11/pybind11.h>
#include "config_utility.h"
#include "constants.h"
#include "live_model.h"
#include "multistep.h"
#include <exception>
#include <memory>
#define STRINGIFY(x) #x
#define MACRO_STRINGIFY(x) STRINGIFY(x)
namespace py = pybind11;
namespace rl = reinforceme... | 51.591022 | 161 | 0.652794 | [
"object",
"model"
] |
f0885ecf8b1624e283b40c2728db40062e04886f | 556 | cpp | C++ | examples/cpp_usage_encoding_example.cpp | AmineKhaldi/libbech32 | 954b14fe81602dde0cf5cb6d45208403160fb76c | [
"BSD-3-Clause"
] | 7 | 2019-11-08T21:36:32.000Z | 2021-07-29T07:35:26.000Z | examples/cpp_usage_encoding_example.cpp | AmineKhaldi/libbech32 | 954b14fe81602dde0cf5cb6d45208403160fb76c | [
"BSD-3-Clause"
] | 3 | 2021-12-26T22:48:04.000Z | 2022-01-29T18:03:05.000Z | examples/cpp_usage_encoding_example.cpp | AmineKhaldi/libbech32 | 954b14fe81602dde0cf5cb6d45208403160fb76c | [
"BSD-3-Clause"
] | 6 | 2019-01-05T22:58:43.000Z | 2022-01-22T22:43:24.000Z | #include "libbech32.h"
#include <iostream>
int main() {
// simple human readable part with some data
std::string hrp = "hello";
std::vector<unsigned char> data = {14, 15, 3, 31, 13};
// encode
std::string bstr = bech32::encode(hrp, data);
std::cout << R"(bech32 encoding of human-readable par... | 30.888889 | 122 | 0.602518 | [
"vector"
] |
f09027db37a07297dcebab4e3bd5c3b824010565 | 14,321 | cpp | C++ | Sources/Elastos/Frameworks/Droid/Base/Core/src/elastos/droid/widget/ArrayAdapter.cpp | jingcao80/Elastos | d0f39852356bdaf3a1234743b86364493a0441bc | [
"Apache-2.0"
] | 7 | 2017-07-13T10:34:54.000Z | 2021-04-16T05:40:35.000Z | Sources/Elastos/Frameworks/Droid/Base/Core/src/elastos/droid/widget/ArrayAdapter.cpp | jingcao80/Elastos | d0f39852356bdaf3a1234743b86364493a0441bc | [
"Apache-2.0"
] | null | null | null | Sources/Elastos/Frameworks/Droid/Base/Core/src/elastos/droid/widget/ArrayAdapter.cpp | jingcao80/Elastos | d0f39852356bdaf3a1234743b86364493a0441bc | [
"Apache-2.0"
] | 9 | 2017-07-13T12:33:20.000Z | 2021-06-19T02:46:48.000Z | //=========================================================================
// Copyright (C) 2012 The Elastos Open Source Project
//
// 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
//
// ... | 27.330153 | 114 | 0.607849 | [
"object"
] |
f096ef176a91db3dcb2ccfaaf85d378f120d9598 | 28,079 | cpp | C++ | amd_tressfx_sample/src/TressFXSample.cpp | kostenickj/TressFX | 9a9a1008fbcc9cc71a6b08331a75bed81c2119ac | [
"MIT"
] | 1 | 2020-07-20T19:07:05.000Z | 2020-07-20T19:07:05.000Z | amd_tressfx_sample/src/TressFXSample.cpp | kostenickj/TressFX | 9a9a1008fbcc9cc71a6b08331a75bed81c2119ac | [
"MIT"
] | null | null | null | amd_tressfx_sample/src/TressFXSample.cpp | kostenickj/TressFX | 9a9a1008fbcc9cc71a6b08331a75bed81c2119ac | [
"MIT"
] | null | null | null | // ----------------------------------------------------------------------------
// Brings together all the TressFX components.
// ----------------------------------------------------------------------------
//
//
// Copyright (c) 2017 Advanced Micro Devices, Inc. All rights reserved.
//
// Permission is hereby g... | 33.268957 | 132 | 0.665052 | [
"render"
] |
f099229ffe4fccab210c7f4552c9e8d6e5bea74b | 8,902 | cpp | C++ | ROF_Engine/ModuleEditor.cpp | RogerOlasz/ROF_Engine | 5c379ab51da85148a135863c8e01c4aa9f06701b | [
"MIT"
] | null | null | null | ROF_Engine/ModuleEditor.cpp | RogerOlasz/ROF_Engine | 5c379ab51da85148a135863c8e01c4aa9f06701b | [
"MIT"
] | null | null | null | ROF_Engine/ModuleEditor.cpp | RogerOlasz/ROF_Engine | 5c379ab51da85148a135863c8e01c4aa9f06701b | [
"MIT"
] | null | null | null | #include "Globals.h"
#include "Application.h"
#include "ModuleEditor.h"
#include "ModuleWindow.h"
#include "ModuleGOManager.h"
#include "ModuleFileSystem.h"
#include "ModuleSceneImporter.h"
#include "ModuleCamera3D.h"
#include "GameObject.h"
#include "Panel.h"
#include "PanelConsole.h"
#include "PanelConfi... | 21.926108 | 147 | 0.639632 | [
"render",
"vector"
] |
f09923c0338ca264eb06a4791cd0601d2a223fa9 | 6,011 | cpp | C++ | Builder/Builder/src/rangeencoder.cpp | sglab/OpenIRT | 1a1522ed82f6bb26f1d40dc93024487869045ab2 | [
"BSD-2-Clause"
] | 2 | 2015-09-28T12:59:25.000Z | 2020-03-28T22:28:03.000Z | Builder/Builder/src/rangeencoder.cpp | sglab/OpenIRT | 1a1522ed82f6bb26f1d40dc93024487869045ab2 | [
"BSD-2-Clause"
] | 2 | 2018-10-26T12:17:53.000Z | 2018-11-09T07:04:17.000Z | Builder/Builder/src/rangeencoder.cpp | sglab/OpenIRT | 1a1522ed82f6bb26f1d40dc93024487869045ab2 | [
"BSD-2-Clause"
] | null | null | null | /*
===============================================================================
FILE: rangeencoder.cpp
CONTENTS:
see header file
PROGRAMMERS:
martin isenburg@cs.unc.edu
COPYRIGHT:
copyright (C) 2003 martin isenburg (isenburg@cs.unc.edu)
This software is distributed ... | 18.784375 | 99 | 0.560472 | [
"model"
] |
f09a3f1804196ada1c445d60fd6738137451304a | 4,433 | cpp | C++ | Game/ConfigurationManager.cpp | roooodcastro/gamedev-coursework | a4bfdbd8f68cb641c0025ec70270b0a17e2e237d | [
"MIT"
] | 1 | 2019-10-05T23:31:00.000Z | 2019-10-05T23:31:00.000Z | Game/ConfigurationManager.cpp | roooodcastro/gamedev-coursework | a4bfdbd8f68cb641c0025ec70270b0a17e2e237d | [
"MIT"
] | null | null | null | Game/ConfigurationManager.cpp | roooodcastro/gamedev-coursework | a4bfdbd8f68cb641c0025ec70270b0a17e2e237d | [
"MIT"
] | null | null | null | #include "ConfigurationManager.h"
ConfigurationManager *ConfigurationManager::instance = NULL;
ConfigurationManager::ConfigurationManager(void) {
configFileName = "settings.cfg";
}
ConfigurationManager::~ConfigurationManager(void) {
}
ConfigurationManager *ConfigurationManager::getInstance() {
if (instance == NUL... | 29.952703 | 117 | 0.681254 | [
"vector"
] |
f09daddfe6b73011b52412f50ee617562f818491 | 7,494 | cpp | C++ | NativeMultiClockDLL/ClockWindowRefresh.cpp | lukasniemeier/multiclock | e8e38775bc4778e2f3772d00f4d52bc218c70075 | [
"MIT"
] | 4 | 2015-04-21T15:06:06.000Z | 2017-10-20T13:46:23.000Z | NativeMultiClockDLL/ClockWindowRefresh.cpp | lukasniemeier/multiclock | e8e38775bc4778e2f3772d00f4d52bc218c70075 | [
"MIT"
] | null | null | null | NativeMultiClockDLL/ClockWindowRefresh.cpp | lukasniemeier/multiclock | e8e38775bc4778e2f3772d00f4d52bc218c70075 | [
"MIT"
] | null | null | null | #include "ClockWindow.h"
#include <vector>
using namespace Gdiplus;
#ifdef _DEBUG
static void SaveBitmap(Bitmap* bitmap)
{
CLSID guid;
::CLSIDFromString(L"{557CF406-1A04-11D3-9A73-0000F81EF32E}", &guid);
Status saveStatus = bitmap->Save(L"C:\\Users\\Hugo\\bitmap.png", &guid);
if (saveStatus != Status::Ok)
{
Be... | 29.738095 | 122 | 0.726181 | [
"vector"
] |
f09ff89c472b9ee141af996723cf70d6c6b16211 | 3,868 | cpp | C++ | NewClockWorkEngine/Hierarchy.cpp | xsiro/NewClockWorkEngine | 973627ac98261f1009b5a0fd1f8a4b4d706d330a | [
"MIT"
] | null | null | null | NewClockWorkEngine/Hierarchy.cpp | xsiro/NewClockWorkEngine | 973627ac98261f1009b5a0fd1f8a4b4d706d330a | [
"MIT"
] | null | null | null | NewClockWorkEngine/Hierarchy.cpp | xsiro/NewClockWorkEngine | 973627ac98261f1009b5a0fd1f8a4b4d706d330a | [
"MIT"
] | null | null | null | #include "Hierarchy.h"
#include "imgui/imgui.h"
#include "Globals.h"
#include "Application.h"
#include "ModuleSceneIntro.h"
#include "GameObject.h"
//value ret tied to SHow Hierarchy
bool ShowHierarchyTab()
{
bool ret = true;
if (App->scene->root != nullptr)
{
SeekMyChildren(App->scene->root);
}
return ret;
}
... | 25.615894 | 186 | 0.648656 | [
"object",
"vector"
] |
f0a98d429f69d22eb43120e9d115c365a54c91ce | 2,266 | hpp | C++ | CookieEngine/include/UI/Widgets/EditorWs/InspectorWidget.hpp | qbleuse/Cookie-Engine | 705d19d9e4c79e935e32244759ab63523dfbe6c4 | [
"CC-BY-4.0"
] | null | null | null | CookieEngine/include/UI/Widgets/EditorWs/InspectorWidget.hpp | qbleuse/Cookie-Engine | 705d19d9e4c79e935e32244759ab63523dfbe6c4 | [
"CC-BY-4.0"
] | null | null | null | CookieEngine/include/UI/Widgets/EditorWs/InspectorWidget.hpp | qbleuse/Cookie-Engine | 705d19d9e4c79e935e32244759ab63523dfbe6c4 | [
"CC-BY-4.0"
] | null | null | null | #ifndef __INSPECTOR_W_HPP__
#define __INSPECTOR_W_HPP__
#include "UIwidgetBases.hpp"
namespace Cookie::Resources { class ResourcesManager; }
namespace Cookie::ECS { class Coordinator; class Entity; }
namespace Cookie::Core::Math { union Vec2; }
namespace Cookie { struct FocusEntity; }
namespace reactphysics3d ... | 32.84058 | 144 | 0.74669 | [
"model",
"transform"
] |
f0b1658961990eb56323e45d6119abaf5ff74003 | 1,067 | hpp | C++ | gspan/include/gspan_subgraph_lists.hpp | dtchuink/DFG-Pattern-Generator | a57b46dd3439b316f98e856bbd1841cc1b34bb29 | [
"MIT"
] | null | null | null | gspan/include/gspan_subgraph_lists.hpp | dtchuink/DFG-Pattern-Generator | a57b46dd3439b316f98e856bbd1841cc1b34bb29 | [
"MIT"
] | null | null | null | gspan/include/gspan_subgraph_lists.hpp | dtchuink/DFG-Pattern-Generator | a57b46dd3439b316f98e856bbd1841cc1b34bb29 | [
"MIT"
] | null | null | null | #ifndef GSPAN_SUBGRAPH_LISTS_HPP
#define GSPAN_SUBGRAPH_LISTS_HPP
#include <list>
#include <vector>
namespace gspan {
template <typename S>
class subgraph_lists {
public:
subgraph_lists()
: aut_list_size(0)
{
}
subgraph_lists(const subgraph_lists&) = delete;
subgraph_lists&
operator=... | 20.921569 | 63 | 0.627929 | [
"vector"
] |
f0b6003fb11b77b5e8bf488ba18dfb2c83a50305 | 2,484 | hh | C++ | libs/easylocal-3/include/helpers/outputmanager.hh | DarioDaF/ASS_TOP | 0438a3deb9ca3b906c4cd7a923c598a7786fe4ec | [
"CC-BY-4.0"
] | 1 | 2020-10-25T07:14:48.000Z | 2020-10-25T07:14:48.000Z | libs/easylocal-3/include/helpers/outputmanager.hh | DarioDaF/ASS_TOP | 0438a3deb9ca3b906c4cd7a923c598a7786fe4ec | [
"CC-BY-4.0"
] | null | null | null | libs/easylocal-3/include/helpers/outputmanager.hh | DarioDaF/ASS_TOP | 0438a3deb9ca3b906c4cd7a923c598a7786fe4ec | [
"CC-BY-4.0"
] | 2 | 2020-10-02T12:24:38.000Z | 2020-10-25T07:00:24.000Z | #pragma once
#include <iostream>
namespace EasyLocal
{
namespace Core
{
/** The Output Manager is responsible for translating between elements of the search space and output solutions. It also delivers other output information of the search, and stores and retrieves solutions from files. This is the only ... | 31.05 | 403 | 0.666667 | [
"object",
"transform"
] |
f0be49c01e02cbc95b11ca2f77fe7d24b5c667f9 | 2,291 | cpp | C++ | libs/gui/color_picker.cpp | kdt3rd/gecko | 756a4e4587eb5023495294d9b6c6d80ebd79ebde | [
"MIT"
] | 15 | 2017-10-18T05:08:16.000Z | 2022-02-02T11:01:46.000Z | libs/gui/color_picker.cpp | kdt3rd/gecko | 756a4e4587eb5023495294d9b6c6d80ebd79ebde | [
"MIT"
] | null | null | null | libs/gui/color_picker.cpp | kdt3rd/gecko | 756a4e4587eb5023495294d9b6c6d80ebd79ebde | [
"MIT"
] | 1 | 2018-11-10T03:12:57.000Z | 2018-11-10T03:12:57.000Z | // SPDX-License-Identifier: MIT
// Copyright contributors to the gecko project.
#include "color_picker.h"
#include <draw/color_wheel.h>
#include <draw/object.h>
/*
namespace
{
constexpr double PI = 3.14159265358979323846;
}
*/
////////////////////////////////////////
namespace gui
{
//////////////////////////////... | 21.411215 | 71 | 0.492798 | [
"object"
] |
f0c02524210a034d2cfa89f587b24a9ae0af8139 | 422 | cpp | C++ | testDictionary.cpp | joanaferreira0011/cross-words | ed27f12768cf5cfe312973822ddb5116ae8840bb | [
"MIT"
] | null | null | null | testDictionary.cpp | joanaferreira0011/cross-words | ed27f12768cf5cfe312973822ddb5116ae8840bb | [
"MIT"
] | null | null | null | testDictionary.cpp | joanaferreira0011/cross-words | ed27f12768cf5cfe312973822ddb5116ae8840bb | [
"MIT"
] | null | null | null | /*
------------------ Dictionary Test Zone ------------------
*/
#include "dictionary.h"
#include "board.h"
#include <iostream>
#include <vector>
#include <map>
#include <string>
#include <algorithm>
#include <fstream>
#include <sstream>
using namespace std;
int main()
{
string filename;
string word;
cin >> fil... | 12.411765 | 59 | 0.609005 | [
"vector"
] |
f0cdd70c640ec77cbfd986692fc53da79c7b60d8 | 6,004 | cpp | C++ | src/eepp/window/backend/SFML/cwindowsfml.cpp | weimingtom/eepp | dd672ff0e108ae1e08449ca918dc144018fb4ba4 | [
"MIT"
] | null | null | null | src/eepp/window/backend/SFML/cwindowsfml.cpp | weimingtom/eepp | dd672ff0e108ae1e08449ca918dc144018fb4ba4 | [
"MIT"
] | null | null | null | src/eepp/window/backend/SFML/cwindowsfml.cpp | weimingtom/eepp | dd672ff0e108ae1e08449ca918dc144018fb4ba4 | [
"MIT"
] | null | null | null | #include <eepp/window/backend/SFML/cwindowsfml.hpp>
#ifdef EE_BACKEND_SFML_ACTIVE
#if defined( EE_X11_PLATFORM )
#include <X11/Xlib.h>
#endif
#undef None
#include <SFML/Graphics.hpp>
#include <eepp/window/backend/SFML/cclipboardsfml.hpp>
#include <eepp/window/backend/SFML/cinputsfml.hpp>
#include <eepp/window/back... | 24.016 | 210 | 0.720353 | [
"vector"
] |
f0d3da8ec966c21f1ac0f381be1d822e0aef1171 | 646 | cpp | C++ | Leetcode1691.cpp | dezhonger/LeetCode | 70de054be5af3a0749dce0625fefd75e176e59f4 | [
"Apache-2.0"
] | 1 | 2020-06-28T06:29:05.000Z | 2020-06-28T06:29:05.000Z | Leetcode1691.cpp | dezhonger/LeetCode | 70de054be5af3a0749dce0625fefd75e176e59f4 | [
"Apache-2.0"
] | null | null | null | Leetcode1691.cpp | dezhonger/LeetCode | 70de054be5af3a0749dce0625fefd75e176e59f4 | [
"Apache-2.0"
] | null | null | null | class Solution {
public:
int maxHeight(vector<vector<int>>& cuboids) {
for (auto& x: cuboids) sort(x.begin(), x.end());
sort(cuboids.begin(), cuboids.end());
int ans = 0, n = cuboids.size();
vector<int> f(n);
for (int i = 0; i < n; i++) {
f[i] = cuboids[i][2];
... | 32.3 | 121 | 0.410217 | [
"vector"
] |
f0dd475eee8a33de375167a68c1b523771fa8ad5 | 497 | cpp | C++ | leetcode/1. Two-sum.cpp | chamow97/Interview-Prep | 9ce13afef6090b1604f72bf5f80a6e1df65be24f | [
"MIT"
] | 1 | 2018-09-13T12:16:42.000Z | 2018-09-13T12:16:42.000Z | leetcode/1. Two-sum.cpp | chamow97/Interview-Prep | 9ce13afef6090b1604f72bf5f80a6e1df65be24f | [
"MIT"
] | null | null | null | leetcode/1. Two-sum.cpp | chamow97/Interview-Prep | 9ce13afef6090b1604f72bf5f80a6e1df65be24f | [
"MIT"
] | null | null | null | class Solution {
public:
vector<int> twoSum(vector<int>& nums, int target) {
map<int, int> m;
vector<int> answer;
for(int i = 0; i < nums.size(); i++)
{
int other = target - nums[i];
if(m.find(other) != m.end())
{
answer.push_back(... | 24.85 | 56 | 0.402414 | [
"vector"
] |
f0ed9ab3fa2b9ed1aebc7d2574e88ed6ddff313c | 3,109 | cpp | C++ | NodeJSAddon/HomeKitAmpAddon.cpp | aronisch/HomeKitAmp | 169ed1aae44a41dc17de55250ad69cf35b3e64ec | [
"MIT"
] | null | null | null | NodeJSAddon/HomeKitAmpAddon.cpp | aronisch/HomeKitAmp | 169ed1aae44a41dc17de55250ad69cf35b3e64ec | [
"MIT"
] | null | null | null | NodeJSAddon/HomeKitAmpAddon.cpp | aronisch/HomeKitAmp | 169ed1aae44a41dc17de55250ad69cf35b3e64ec | [
"MIT"
] | null | null | null | #include <cstdlib>
#include <RF24/RF24.h>
#include <RF24Network/RF24Network.h>
#include <iostream>
#include <ctime>
#include <stdio.h>
#include <time.h>
#include "streaming-worker.h"
using namespace std;
// Address of our node in Octal format (01,021, etc)
const uint16_t amp_node = 01;
const uint16_t rpi_node = 00;
... | 30.480392 | 106 | 0.651978 | [
"object"
] |
e7d089192514ecf8b35f76a87c205028cfed2a3f | 3,801 | hpp | C++ | include/codegen/include/System/Collections/Generic/Comparer_1.hpp | Futuremappermydud/Naluluna-Modifier-Quest | bfda34370764b275d90324b3879f1a429a10a873 | [
"MIT"
] | 1 | 2021-11-12T09:29:31.000Z | 2021-11-12T09:29:31.000Z | include/codegen/include/System/Collections/Generic/Comparer_1.hpp | Futuremappermydud/Naluluna-Modifier-Quest | bfda34370764b275d90324b3879f1a429a10a873 | [
"MIT"
] | null | null | null | include/codegen/include/System/Collections/Generic/Comparer_1.hpp | Futuremappermydud/Naluluna-Modifier-Quest | bfda34370764b275d90324b3879f1a429a10a873 | [
"MIT"
] | 2 | 2021-10-03T02:14:20.000Z | 2021-11-12T09:29:36.000Z | // Autogenerated from CppHeaderCreator on 7/27/2020 3:09:52 PM
// Created by Sc2ad
// =========================================================================
#pragma once
#pragma pack(push, 8)
// Begin includes
#include "utils/typedefs.h"
// Including type: System.Object
#include "System/Object.hpp"
// Including type... | 55.086957 | 199 | 0.726914 | [
"object"
] |
e7d87707900ef17f96cc51ce03a84684483acdd7 | 46,338 | cpp | C++ | src/mongo/db/pipeline/document_source_merge_test.cpp | benety/mongo | 203430ac9559f82ca01e3cbb3b0e09149fec0835 | [
"Apache-2.0"
] | null | null | null | src/mongo/db/pipeline/document_source_merge_test.cpp | benety/mongo | 203430ac9559f82ca01e3cbb3b0e09149fec0835 | [
"Apache-2.0"
] | null | null | null | src/mongo/db/pipeline/document_source_merge_test.cpp | benety/mongo | 203430ac9559f82ca01e3cbb3b0e09149fec0835 | [
"Apache-2.0"
] | null | null | null | /**
* Copyright (C) 2018-present MongoDB, Inc.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the Server Side Public License, version 1,
* as published by MongoDB, Inc.
*
* This program is distributed in the hope that it will be useful,
* but W... | 48.521466 | 100 | 0.521408 | [
"vector"
] |
e7eef166ddab93755baaa940252631c66d00b2b3 | 6,169 | cc | C++ | tests/cpp/metric/test_rank_metric.cc | GinkoBalboa/xgboost | 29bfa94bb6a99721f3ab9e0c4f05ee2df4345294 | [
"Apache-2.0"
] | 23,866 | 2015-03-22T05:53:05.000Z | 2022-03-31T23:59:37.000Z | tests/cpp/metric/test_rank_metric.cc | Nihilitior/xgboost | 7366d3b20cad8e28ecef67d5130c71e81bb0b088 | [
"Apache-2.0"
] | 6,405 | 2015-03-22T09:41:16.000Z | 2022-03-31T23:28:40.000Z | tests/cpp/metric/test_rank_metric.cc | Nihilitior/xgboost | 7366d3b20cad8e28ecef67d5130c71e81bb0b088 | [
"Apache-2.0"
] | 9,745 | 2015-03-22T05:25:51.000Z | 2022-03-31T09:24:51.000Z | // Copyright by Contributors
#include <xgboost/metric.h>
#include "../helpers.h"
#if !defined(__CUDACC__)
TEST(Metric, AMS) {
auto tparam = xgboost::CreateEmptyGenericParam(GPUIDX);
EXPECT_ANY_THROW(xgboost::Metric::Create("ams", &tparam));
xgboost::Metric * metric = xgboost::Metric::Create("ams@0.5f", &tparam)... | 39.292994 | 76 | 0.524558 | [
"vector"
] |
e7f711142b7afc3c633fe4eea8a9fe0419dacdf3 | 60,166 | cpp | C++ | engine/src/Rendering/Renderer.cpp | aleksigron/kokko | c0517c153029977ac347a7e1da0cb79fd3060d32 | [
"MIT"
] | 14 | 2017-10-17T16:20:20.000Z | 2021-12-21T14:49:00.000Z | engine/src/Rendering/Renderer.cpp | aleksigron/kokko | c0517c153029977ac347a7e1da0cb79fd3060d32 | [
"MIT"
] | null | null | null | engine/src/Rendering/Renderer.cpp | aleksigron/kokko | c0517c153029977ac347a7e1da0cb79fd3060d32 | [
"MIT"
] | 1 | 2019-05-12T13:50:23.000Z | 2019-05-12T13:50:23.000Z | #include "Rendering/Renderer.hpp"
#include <cassert>
#include <cstdio>
#include <cstring>
#include "Core/Core.hpp"
#include "Core/Sort.hpp"
#include "Debug/Debug.hpp"
#include "Debug/DebugVectorRenderer.hpp"
#include "Engine/Engine.hpp"
#include "Engine/EntityManager.hpp"
#include "Graphics/BloomE... | 32.985746 | 141 | 0.74321 | [
"mesh",
"geometry",
"render",
"object",
"model",
"transform"
] |
e7f75dc68c7aabbee21f01c21511dda1b19bb918 | 13,570 | hpp | C++ | include/render_graph/frontend/render_graph.hpp | SakuraEngine/Sakura.Runtime | 5a397fb2b1285326c4216f522fe10e347bd566f7 | [
"MIT"
] | 29 | 2021-11-19T11:28:22.000Z | 2022-03-29T00:26:51.000Z | include/render_graph/frontend/render_graph.hpp | SakuraEngine/Sakura.Runtime | 5a397fb2b1285326c4216f522fe10e347bd566f7 | [
"MIT"
] | null | null | null | include/render_graph/frontend/render_graph.hpp | SakuraEngine/Sakura.Runtime | 5a397fb2b1285326c4216f522fe10e347bd566f7 | [
"MIT"
] | 1 | 2022-03-05T08:14:40.000Z | 2022-03-05T08:14:40.000Z | #pragma once
#include <EASTL/unique_ptr.h>
#include <EASTL/vector.h>
#include "render_graph/frontend/blackboard.hpp"
#include "render_graph/frontend/resource_node.hpp"
#include "render_graph/frontend/resource_edge.hpp"
#include "render_graph/frontend/pass_node.hpp"
#define RG_MAX_FRAME_IN_FLIGHT 3
namespace skr
{
nam... | 50.634328 | 128 | 0.767428 | [
"vector"
] |
e7fb147090b1df121d76eafebf8006db5b1277e6 | 8,057 | cpp | C++ | src/main_gui.cpp | eme64/map-editor | 36e34e19ddddf96bb585c44ca7758bea152d560c | [
"MIT"
] | null | null | null | src/main_gui.cpp | eme64/map-editor | 36e34e19ddddf96bb585c44ca7758bea152d560c | [
"MIT"
] | null | null | null | src/main_gui.cpp | eme64/map-editor | 36e34e19ddddf96bb585c44ca7758bea152d560c | [
"MIT"
] | null | null | null | #include "main_gui.hpp"
std::vector<std::string> split(const std::string &s, const char separator =',') {
std::vector<std::string> res;
std::istringstream f(s);
std::string tmp;
while (getline(f, tmp, separator)) {
res.push_back(tmp);
}
if(s.size()>0 && s[s.size()-1]==separator) {res.push_back("");}
... | 29.512821 | 81 | 0.506144 | [
"object",
"vector"
] |
e7fc904dbb22215f67d7da88b4c9091634161054 | 27,141 | cpp | C++ | src/ConnectionSTREAM/ConnectionSTREAM.cpp | bastille-attic/LimeSuite | 761805c75b1ae1e0ec9b8c6c182ebd058a088ab8 | [
"Apache-2.0"
] | null | null | null | src/ConnectionSTREAM/ConnectionSTREAM.cpp | bastille-attic/LimeSuite | 761805c75b1ae1e0ec9b8c6c182ebd058a088ab8 | [
"Apache-2.0"
] | null | null | null | src/ConnectionSTREAM/ConnectionSTREAM.cpp | bastille-attic/LimeSuite | 761805c75b1ae1e0ec9b8c6c182ebd058a088ab8 | [
"Apache-2.0"
] | null | null | null | /**
@file ConnectionSTREAM.cpp
@author Lime Microsystems
@brief Implementation of STREAM board connection.
*/
#include "ConnectionSTREAM.h"
#include "ErrorReporting.h"
#include <cstring>
#include <iostream>
#include "Si5351C.h"
#include <thread>
#include <chrono>
using namespace std;
#define USB_TIMEOUT... | 32.387828 | 170 | 0.645813 | [
"object",
"vector"
] |
e7fde27ec5aededbc9da5a2d8729b9a5e6fc6d21 | 2,034 | cpp | C++ | lib/cpp/kmp/main.cpp | palash24/algorithms | 0e46cbaa3f2826b6ff9d4ebd150b5e2330e66859 | [
"MIT"
] | 113 | 2016-09-13T13:39:08.000Z | 2021-12-26T09:02:18.000Z | lib/cpp/kmp/main.cpp | palash24/algorithms | 0e46cbaa3f2826b6ff9d4ebd150b5e2330e66859 | [
"MIT"
] | null | null | null | lib/cpp/kmp/main.cpp | palash24/algorithms | 0e46cbaa3f2826b6ff9d4ebd150b5e2330e66859 | [
"MIT"
] | 49 | 2016-08-27T07:55:25.000Z | 2022-03-17T15:54:18.000Z | #include <vector>
#include <iterator>
#include <cassert>
#include <iostream>
//
// Copy wrapper around std::advance
//
template<typename Iterator, typename Distance>
Iterator offset(Iterator it, Distance dist) {
std::advance(it, dist);
return it;
}
//
// Generic KMP iterator based algorithm. Returns a table F whe... | 23.651163 | 78 | 0.573255 | [
"vector"
] |
f012f6a4c9e8c673c2ff39c5e89cb9b1fc9e3844 | 956 | cpp | C++ | Section 1.1/Greedy Gift Givers/gift1.cpp | memset0x3f/usaco | 9b3029e33afa441b823ac2c75eabb0ccdae70b0d | [
"MIT"
] | 14 | 2016-05-12T12:19:33.000Z | 2021-12-12T02:39:54.000Z | Section 1.1/Greedy Gift Givers/gift1.cpp | akommula/usaco | 9b3029e33afa441b823ac2c75eabb0ccdae70b0d | [
"MIT"
] | null | null | null | Section 1.1/Greedy Gift Givers/gift1.cpp | akommula/usaco | 9b3029e33afa441b823ac2c75eabb0ccdae70b0d | [
"MIT"
] | 18 | 2017-04-23T01:29:44.000Z | 2022-03-20T03:45:53.000Z | /*
ID: cloudzf2
PROG: gift1
LANG: C++11
*/
#include <iostream>
#include <fstream>
#include <string>
#include <unordered_map>
#include <cstring>
#include <vector>
using namespace std;
int main(int argc, const char * argv[]) {
ifstream fin ("gift1.in");
ofstream fout ("gift1.out");
int np, money, ng;
... | 20.782609 | 52 | 0.471757 | [
"vector"
] |
f0181349bcbc68fb16c06015e63f9f784888dcdd | 6,304 | cpp | C++ | FileFormats/Blend/ftBlend.cpp | snailrose/FileTools | c2d904806464d00518e28724e1828730f4f93340 | [
"MIT"
] | null | null | null | FileFormats/Blend/ftBlend.cpp | snailrose/FileTools | c2d904806464d00518e28724e1828730f4f93340 | [
"MIT"
] | null | null | null | FileFormats/Blend/ftBlend.cpp | snailrose/FileTools | c2d904806464d00518e28724e1828730f4f93340 | [
"MIT"
] | null | null | null | /*
-------------------------------------------------------------------------------
This software is provided 'as-is', without any express or implied
warranty. In no event will the authors be held liable for any damages
arising from the use of this software.
Permission is granted to anyone to use this software ... | 22.676259 | 90 | 0.509042 | [
"mesh",
"object"
] |
f01cb073940637721e3a911db95784d4248e565b | 1,099 | hpp | C++ | src/imgui/imguiWrapper/dropDown.hpp | sousajo-cc/cash_overflow | 2bad3b403b4fcd04d72b2ae871ec55756a387b0e | [
"Unlicense"
] | 2 | 2021-11-02T18:06:43.000Z | 2021-11-05T19:07:47.000Z | src/imgui/imguiWrapper/dropDown.hpp | sousajo-cc/cash_overflow | 2bad3b403b4fcd04d72b2ae871ec55756a387b0e | [
"Unlicense"
] | 34 | 2021-11-03T09:55:41.000Z | 2021-12-17T11:14:52.000Z | src/imgui/imguiWrapper/dropDown.hpp | sousajf1/cash_overflow | 2bad3b403b4fcd04d72b2ae871ec55756a387b0e | [
"Unlicense"
] | null | null | null | #ifndef CASH_OVERFLOW_DROPDOWN_HPP
#define CASH_OVERFLOW_DROPDOWN_HPP
#include <imgui.h>
#include <vector>
#include <string>
#include <iostream>
namespace cash_overflow::gui {
class DropDown
{
public:
DropDown(std::vector<std::string> options, std::string currentSelectedCategoryType) : options_(std::move(options))... | 26.804878 | 147 | 0.626934 | [
"vector"
] |
f01d8a64ce6d8933e9fee5b6015e6688dba2ae8f | 2,299 | cpp | C++ | aashishgahlawat/codeforces/B/611-B/611-B-32078711.cpp | aashishgahlawat/CompetetiveProgramming | 12d6b2682765ae05b622968b9a26b0b519e170aa | [
"MIT"
] | null | null | null | aashishgahlawat/codeforces/B/611-B/611-B-32078711.cpp | aashishgahlawat/CompetetiveProgramming | 12d6b2682765ae05b622968b9a26b0b519e170aa | [
"MIT"
] | null | null | null | aashishgahlawat/codeforces/B/611-B/611-B-32078711.cpp | aashishgahlawat/CompetetiveProgramming | 12d6b2682765ae05b622968b9a26b0b519e170aa | [
"MIT"
] | null | null | null | #include<iostream>
#include<math.h>
#include<algorithm>
#include<bitset>
#include<deque>
#include<map>
#include<queue>
#include<set>
#include<stack>
#include<string>
#include<cstring>
#include<vector>
#include<string.h>
#include<stdlib.h>
#include<stdio.h>
using namespace std;
unsigned long long d[60];
int main()
{
... | 19.483051 | 73 | 0.589387 | [
"vector"
] |
f024bf67c405f6e3f3bece434716bd8dee1ffe4f | 7,121 | cpp | C++ | iris/iris/base/Light.cpp | pixelsquare/iris-engine-opengl | 5b542333f3c3aed9a66f388a6703dc0daa06b3fb | [
"MIT"
] | null | null | null | iris/iris/base/Light.cpp | pixelsquare/iris-engine-opengl | 5b542333f3c3aed9a66f388a6703dc0daa06b3fb | [
"MIT"
] | null | null | null | iris/iris/base/Light.cpp | pixelsquare/iris-engine-opengl | 5b542333f3c3aed9a66f388a6703dc0daa06b3fb | [
"MIT"
] | null | null | null | #include "base\Light.h"
#include "base\Scene.h"
#include "base\Director.h"
#include "base\Transform.h"
#include "platform\PlatformGL.h"
#include "base\Camera.h"
#include "base\Transform.h"
#include "base\Shader.h"
#include "math\Matrix4x4.h"
IRIS_BEGIN
Light::Light()
: m_lightType(LightType::DIRECTIONA... | 25.800725 | 127 | 0.670552 | [
"transform"
] |
f02f055927c64e2bb6526ade4ef941141cedeee8 | 1,191 | cpp | C++ | src/com/devsda/gargantua/codechef/OctoberCoofOff/2.cpp | devvsda/gargantua | 9e41f87d5c73920611bafdfa15047639cb322809 | [
"MIT"
] | null | null | null | src/com/devsda/gargantua/codechef/OctoberCoofOff/2.cpp | devvsda/gargantua | 9e41f87d5c73920611bafdfa15047639cb322809 | [
"MIT"
] | null | null | null | src/com/devsda/gargantua/codechef/OctoberCoofOff/2.cpp | devvsda/gargantua | 9e41f87d5c73920611bafdfa15047639cb322809 | [
"MIT"
] | null | null | null | //#include<iostream>
//#include<vector>
//#include<string>
#include<stdio.h>
using namespace std;
int numOfDigits(int val) {
int count = 0;
while(val) {
val /= 10;
count++;
}
return count;
}
int isMultiple(int val) {
int count = 0;
while( (val%10 == 0)) {
... | 20.186441 | 101 | 0.402183 | [
"vector"
] |
f031ef1fa55b06d9080dad8e8a1026acd31fb02c | 9,969 | cpp | C++ | src/api/utils/curl/CurlUtils.cpp | bphun/Spotify-Connect-CLI | e389cb50d6e1c35975b36926104a9373d630aa21 | [
"MIT"
] | null | null | null | src/api/utils/curl/CurlUtils.cpp | bphun/Spotify-Connect-CLI | e389cb50d6e1c35975b36926104a9373d630aa21 | [
"MIT"
] | null | null | null | src/api/utils/curl/CurlUtils.cpp | bphun/Spotify-Connect-CLI | e389cb50d6e1c35975b36926104a9373d630aa21 | [
"MIT"
] | null | null | null | #include "CurlUtils.h"
CurlUtils::CurlUtils() {
curl = curl_easy_init();
}
size_t CurlUtils::writeCallback(void *contents, size_t size, size_t nmemb, void *userp) {
((std::string*)userp)->append((char*)contents, size * nmemb);
return size * nmemb;
}
/**
* Replaces all instances of a string to a specified string
... | 39.559524 | 197 | 0.735279 | [
"object"
] |
f03221f8f28fe978924781c6eb37be66e0839a03 | 4,905 | cpp | C++ | examples/ex3/main.cpp | adrianpp/rltk | 01bf98fc6abe085d5ffe7beee6f375ef9070101b | [
"MIT"
] | 263 | 2016-03-15T07:39:48.000Z | 2022-03-15T10:44:05.000Z | examples/ex3/main.cpp | adrianpp/rltk | 01bf98fc6abe085d5ffe7beee6f375ef9070101b | [
"MIT"
] | 14 | 2016-11-04T13:04:25.000Z | 2020-01-04T16:06:25.000Z | examples/ex3/main.cpp | adrianpp/rltk | 01bf98fc6abe085d5ffe7beee6f375ef9070101b | [
"MIT"
] | 30 | 2016-07-12T10:50:56.000Z | 2022-03-02T17:31:49.000Z | /* RLTK (RogueLike Tool Kit) 1.00
* Copyright (c) 2016-Present, Bracket Productions.
* Licensed under the MIT license - see LICENSE file.
*
* Example 3: A wandering @ dude, this time using Bresenham's line functions to
* plot his path through the world. We play around a bit, rendering the destination
* and path a... | 40.204918 | 108 | 0.709072 | [
"render"
] |
f034f434b3f6d93d089bf3f5eea727a2ab5af36b | 12,219 | cpp | C++ | src/aten/src/ATen/native/npu/frame/OpDynamicCmdHelper.cpp | Ascend/pytorch | 39849cf72dafe8d2fb68bd1679d8fd54ad60fcfc | [
"BSD-3-Clause"
] | 1 | 2021-12-02T03:07:35.000Z | 2021-12-02T03:07:35.000Z | src/aten/src/ATen/native/npu/frame/OpDynamicCmdHelper.cpp | Ascend/pytorch | 39849cf72dafe8d2fb68bd1679d8fd54ad60fcfc | [
"BSD-3-Clause"
] | 1 | 2021-11-12T07:23:03.000Z | 2021-11-12T08:28:13.000Z | src/aten/src/ATen/native/npu/frame/OpDynamicCmdHelper.cpp | Ascend/pytorch | 39849cf72dafe8d2fb68bd1679d8fd54ad60fcfc | [
"BSD-3-Clause"
] | null | null | null | // Copyright (c) 2020 Huawei Technologies Co., Ltd
// All rights reserved.
//
// Licensed under the BSD 3-Clause License (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// https://opensource.org/licenses/BSD-3-Clause
//
// Unless requir... | 36.693694 | 132 | 0.683526 | [
"shape",
"vector"
] |
f03a3545a786fc57de904bab29054a8b765acf05 | 1,491 | cpp | C++ | convertSortedArrayToBST.cpp | anishmo99/DailyInterviewPro | d8724e8feec558ab1882d22c9ca63b850b767753 | [
"MIT"
] | 2 | 2020-08-09T02:09:50.000Z | 2020-08-09T07:07:47.000Z | convertSortedArrayToBST.cpp | anishmo99/DailyInterviewPro | d8724e8feec558ab1882d22c9ca63b850b767753 | [
"MIT"
] | null | null | null | convertSortedArrayToBST.cpp | anishmo99/DailyInterviewPro | d8724e8feec558ab1882d22c9ca63b850b767753 | [
"MIT"
] | 5 | 2020-09-21T12:49:07.000Z | 2020-09-29T16:13:09.000Z | /**
* Definition for a binary tree node.
* struct TreeNode {
* int val;
* TreeNode *left;
* TreeNode *right;
* TreeNode() : val(0), left(nullptr), right(nullptr) {}
* TreeNode(int x) : val(x), left(nullptr), right(nullptr) {}
* TreeNode(int x, TreeNode *left, TreeNode *right) : val(x), l... | 25.706897 | 106 | 0.536553 | [
"vector"
] |
f03f228f7185d000ecd3e75ea88aab2996761b67 | 6,835 | cpp | C++ | hphp/runtime/vm/jit/mutation.cpp | renesugar/hiphop-php | 4eb05b745fd3018a6d9e51464cae06a4465ee142 | [
"PHP-3.01",
"Zend-2.0"
] | 2 | 2019-04-11T01:39:44.000Z | 2019-11-21T16:06:13.000Z | hphp/runtime/vm/jit/mutation.cpp | rmasters/hiphop-php | 218e4718a7b68bf49b9a98caad9bd5f1cb2abe31 | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | hphp/runtime/vm/jit/mutation.cpp | rmasters/hiphop-php | 218e4718a7b68bf49b9a98caad9bd5f1cb2abe31 | [
"PHP-3.01",
"Zend-2.0"
] | 1 | 2019-04-11T01:39:45.000Z | 2019-04-11T01:39:45.000Z | /*
+----------------------------------------------------------------------+
| HipHop for PHP |
+----------------------------------------------------------------------+
| Copyright (c) 2010-2013 Facebook, Inc. (http://www.facebook.com) |
+---------... | 30.788288 | 78 | 0.549232 | [
"vector"
] |
f04643f0f92f82806d4add1872c0dcf4b912ee0d | 2,584 | cpp | C++ | reflective-targets/workflow1/opencv.cpp | NorthernForce/DeepSpace-CV | 7e259f7494765499b87ae4e24f255e08b1d0bfe1 | [
"MIT"
] | null | null | null | reflective-targets/workflow1/opencv.cpp | NorthernForce/DeepSpace-CV | 7e259f7494765499b87ae4e24f255e08b1d0bfe1 | [
"MIT"
] | null | null | null | reflective-targets/workflow1/opencv.cpp | NorthernForce/DeepSpace-CV | 7e259f7494765499b87ae4e24f255e08b1d0bfe1 | [
"MIT"
] | null | null | null | // compile: g++ opencv.cpp -o opencv.o `pkg-config --cflags --libs opencv`
#include "opencv2/core/core.hpp"
#include "opencv2/highgui/highgui.hpp"
#include "opencv2/imgproc/imgproc.hpp"
#include <iostream>
#include <stdio.h>
#include <stdlib.h>
int main() {
cv::VideoCapture cap(2);
/*
* Must run "opkg install v4... | 26.10101 | 96 | 0.611068 | [
"vector"
] |
f0530831cc8f0b53f7633bf18af48462dceb816f | 1,561 | cpp | C++ | src/ai/weapons/nemesis.cpp | sodomon2/Cavestory-nx | a65ce948c820b3c60b5a5252e5baba6b918d9ebd | [
"BSD-2-Clause"
] | 8 | 2018-04-03T23:06:33.000Z | 2021-12-28T18:04:19.000Z | src/ai/weapons/nemesis.cpp | sodomon2/Cavestory-nx | a65ce948c820b3c60b5a5252e5baba6b918d9ebd | [
"BSD-2-Clause"
] | null | null | null | src/ai/weapons/nemesis.cpp | sodomon2/Cavestory-nx | a65ce948c820b3c60b5a5252e5baba6b918d9ebd | [
"BSD-2-Clause"
] | 1 | 2020-07-31T00:23:27.000Z | 2020-07-31T00:23:27.000Z | #include "nemesis.h"
#include "weapons.h"
#include "../../ObjManager.h"
#include "../../common/misc.h"
#include "../../game.h"
INITFUNC(AIRoutines)
{
ONTICK(OBJ_NEMESIS_SHOT, ai_nemesis_shot);
ONTICK(OBJ_NEMESIS_SHOT_CURLY, ai_nemesis_shot);
}
/*
void c------------------------------() {}
*/
void ai_nemesis_shot(Ob... | 16.260417 | 69 | 0.493274 | [
"object"
] |
f05b460f255be93fb507500628a6d719e591b2eb | 3,391 | cc | C++ | cpp/test/test_exact_transient_solution.cc | iiscsahoo/EnergyData | 6230145b5df6b126eab11aea58a5cfaa11ad5ba1 | [
"BSD-3-Clause"
] | 13 | 2016-05-15T11:42:43.000Z | 2021-04-27T19:33:04.000Z | cpp/test/test_exact_transient_solution.cc | iiscsahoo/EnergyData | 6230145b5df6b126eab11aea58a5cfaa11ad5ba1 | [
"BSD-3-Clause"
] | 198 | 2016-01-27T16:46:59.000Z | 2019-07-11T06:31:37.000Z | cpp/test/test_exact_transient_solution.cc | iiscsahoo/EnergyData | 6230145b5df6b126eab11aea58a5cfaa11ad5ba1 | [
"BSD-3-Clause"
] | 6 | 2016-01-27T15:17:09.000Z | 2020-06-15T02:06:50.000Z | /* Copyright (c) 2016, the Cap authors.
*
* This file is subject to the Modified BSD License and may not be distributed
* without copyright and license information. Please refer to the file LICENSE
* for the text and further information on this license.
*/
#define BOOST_TEST_MODULE ExactTransientSolution
#includ... | 35.322917 | 78 | 0.672663 | [
"geometry",
"vector"
] |
f05fe600e6c439ef357e87764ab79b1af07ec3af | 302 | hpp | C++ | sw/paramallocator.hpp | lw0/dfaccto_sim | aa3aab87046383935f071dd4adcf0c2b44ce0e75 | [
"MIT"
] | null | null | null | sw/paramallocator.hpp | lw0/dfaccto_sim | aa3aab87046383935f071dd4adcf0c2b44ce0e75 | [
"MIT"
] | null | null | null | sw/paramallocator.hpp | lw0/dfaccto_sim | aa3aab87046383935f071dd4adcf0c2b44ce0e75 | [
"MIT"
] | null | null | null | #pragma once
#include <vector>
#include "types.hpp"
namespace sim {
class ParamAllocator
{
public:
ParamAllocator();
sim::SignalParam alloc();
void free(sim::SignalParam param);
private:
std::vector<sim::SignalParam> m_freeParams;
sim::SignalParam m_nextParam;
};
} // namespace sim
| 12.08 | 45 | 0.708609 | [
"vector"
] |
f06468d271562b7d45607a934ea8a936bf3978bb | 1,171 | cpp | C++ | src/Pizza/Pizza.cpp | HugoPrat/Multi-process-threads-plazza-Cpp | ef97968a360e77ebeed69a96e44ed801c40e6509 | [
"0BSD"
] | 3 | 2019-12-01T10:18:12.000Z | 2020-02-22T10:54:36.000Z | src/Pizza/Pizza.cpp | HugoPrat/Multi-process-threads-plazza-Cpp | ef97968a360e77ebeed69a96e44ed801c40e6509 | [
"0BSD"
] | null | null | null | src/Pizza/Pizza.cpp | HugoPrat/Multi-process-threads-plazza-Cpp | ef97968a360e77ebeed69a96e44ed801c40e6509 | [
"0BSD"
] | null | null | null | /*
** EPITECH PROJECT, 2019
** CCP_plazza_2018
** File description:
** Pizza
*/
#include "Pizza/Pizza.hpp"
Pizza::Pizza(PizzaType type, PizzaSize size, float time) :
_type(type), _size(size), _cooked_time(time), _cooking(false)
{
}
Pizza::Pizza()
{}
Pizza::Pizza(const Pizza &a)
{
_type = a._type;
_size ... | 16.263889 | 96 | 0.642186 | [
"vector"
] |
f06574566bf257604f56f7d489a92720705bae5e | 553 | hpp | C++ | src/connection.hpp | AndreJSON/holy-integraal | 62d9e2ea954f8a31005c30fa87189234ddf6e142 | [
"MIT"
] | null | null | null | src/connection.hpp | AndreJSON/holy-integraal | 62d9e2ea954f8a31005c30fa87189234ddf6e142 | [
"MIT"
] | null | null | null | src/connection.hpp | AndreJSON/holy-integraal | 62d9e2ea954f8a31005c30fa87189234ddf6e142 | [
"MIT"
] | null | null | null | #pragma once
#include "area.hpp"
/*
* Connection is a special kind of area that only has two entry/exit points. One of them is blocked by a Guardian until it has been defeated.
*/
namespace qhi {
class Connection : public Area {
public:
Connection(std::string desc);
virtual ~Connection();
virtual std::string g... | 32.529412 | 140 | 0.755877 | [
"vector"
] |
f068ae124f163e18ce0f734df03df37432740b81 | 53,003 | hpp | C++ | atomics/PersonBehaviorRules.hpp | SimulationEverywhere/NEP_DAM | bc8cdf661c4a4e050abae12fb756f41ec6240e6b | [
"BSD-2-Clause"
] | null | null | null | atomics/PersonBehaviorRules.hpp | SimulationEverywhere/NEP_DAM | bc8cdf661c4a4e050abae12fb756f41ec6240e6b | [
"BSD-2-Clause"
] | null | null | null | atomics/PersonBehaviorRules.hpp | SimulationEverywhere/NEP_DAM | bc8cdf661c4a4e050abae12fb756f41ec6240e6b | [
"BSD-2-Clause"
] | null | null | null | /**
* Copyright (c) 2017, Cristina Ruiz Martin
* Carleton University, Universidad de Valladolid
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
* 1. Redistributions of source code mu... | 53.974542 | 350 | 0.56244 | [
"vector",
"model"
] |
f06ba6ed95b6e6488a38de65f9f1bcec2a0a2e96 | 1,383 | cpp | C++ | leetcode/628.cpp | pravinsrc/AlgorithmTraining_leetcode | 72ae84e0f7f4d64dff8482d3fe7b96e32b19c9bb | [
"MIT"
] | null | null | null | leetcode/628.cpp | pravinsrc/AlgorithmTraining_leetcode | 72ae84e0f7f4d64dff8482d3fe7b96e32b19c9bb | [
"MIT"
] | null | null | null | leetcode/628.cpp | pravinsrc/AlgorithmTraining_leetcode | 72ae84e0f7f4d64dff8482d3fe7b96e32b19c9bb | [
"MIT"
] | null | null | null | /*
Maximum Product of Three Numbers
Given an integer array, find three numbers whose product is maximum and output the maximum product.
Example 1:
Input: [1,2,3]
Output: 6
Example 2:
Input: [1,2,3,4]
Output: 24
Note:
The length of the given array will be in range [3,104] and all elements are in the range [-1... | 21.952381 | 103 | 0.503977 | [
"vector"
] |
f0730972eab9a31135c4a41e68cd384414cb60f2 | 4,185 | cpp | C++ | demo_graph1.cpp | igormcoelho/cycles | 0864cacb0585fc4d55a49878e14b10acd1300059 | [
"MIT"
] | 1 | 2022-02-18T01:32:44.000Z | 2022-02-18T01:32:44.000Z | demo_graph1.cpp | igormcoelho/cycles | 0864cacb0585fc4d55a49878e14b10acd1300059 | [
"MIT"
] | null | null | null | demo_graph1.cpp | igormcoelho/cycles | 0864cacb0585fc4d55a49878e14b10acd1300059 | [
"MIT"
] | null | null | null |
#include <map>
#include "Graph.hpp"
#include "XNode.hpp"
//
#include <cycles/List.hpp>
#include <cycles/Tree.hpp>
#include <cycles/cycle_ptr.hpp>
#include <cycles/nodes_exp.hpp>
#include <cycles/utils.hpp>
using std::string, std::vector, std::map;
int main()
{
// graph - part 1
{
std::cout << std::endl;
... | 31.946565 | 104 | 0.58638 | [
"vector"
] |
7ec3ea9d289180febe9b484be20e47bf1e16d16b | 12,957 | cpp | C++ | test/lisp/testCompiler.cpp | BowenFu/lisp.cpp | 31082b607d11340f4ced4289d2dd2a42673d2708 | [
"Apache-2.0"
] | null | null | null | test/lisp/testCompiler.cpp | BowenFu/lisp.cpp | 31082b607d11340f4ced4289d2dd2a42673d2708 | [
"Apache-2.0"
] | 30 | 2021-08-24T14:33:09.000Z | 2022-01-01T13:18:00.000Z | test/lisp/testCompiler.cpp | BowenFu/lisp.cpp | 31082b607d11340f4ced4289d2dd2a42673d2708 | [
"Apache-2.0"
] | null | null | null | #include "gtest/gtest.h"
#include "lisp/compiler.h"
#include "lisp/metaParser.h"
#include "lisp/parser.h"
#include <numeric>
TEST(Compiler, number)
{
Compiler c{};
c.compile(ExprPtr{new Number{5.5}});
vm::ByteCode code = c.code();
code.instructions.push_back(vm::kPRINT);
vm::VM vm{code};
testin... | 31.146635 | 181 | 0.607239 | [
"vector"
] |
7ecb83d90dff1f07ce55c61ac97f49abb06dd97a | 11,826 | cpp | C++ | EWLS.cpp | David-Xiang/MaxClique | 289800bc1271d2117bb6cee0faca592591bdece7 | [
"MIT"
] | null | null | null | EWLS.cpp | David-Xiang/MaxClique | 289800bc1271d2117bb6cee0faca592591bdece7 | [
"MIT"
] | null | null | null | EWLS.cpp | David-Xiang/MaxClique | 289800bc1271d2117bb6cee0faca592591bdece7 | [
"MIT"
] | 1 | 2019-02-02T15:42:08.000Z | 2019-02-02T15:42:08.000Z | 9/*
NOTE:
1. We use EWLS to solve Minimal Vertex Cover of complement graph(补图) \bar G.
MaxClique(G) = V(G) - MinimalVertexCover(\bar G)
**Thus G[][] actually is \bar G.**
2.Weight of edges are stored in G[][]. Because G is an undirected graph thus
the matrix G is always symmetric.
3.Please delete ... | 26.048458 | 78 | 0.428378 | [
"vector"
] |
7ecc368db6f4a5c87667cc69e0f66e387f17bfcf | 7,930 | cpp | C++ | src/lib/client/FavoritesController.cpp | gerickson/openhlx | f23a825ca56ee226db393da14d81a7d4e9ae0b33 | [
"Apache-2.0"
] | 1 | 2021-05-21T21:10:09.000Z | 2021-05-21T21:10:09.000Z | src/lib/client/FavoritesController.cpp | gerickson/openhlx | f23a825ca56ee226db393da14d81a7d4e9ae0b33 | [
"Apache-2.0"
] | 12 | 2021-06-12T16:42:30.000Z | 2022-02-01T18:44:42.000Z | src/lib/client/FavoritesController.cpp | gerickson/openhlx | f23a825ca56ee226db393da14d81a7d4e9ae0b33 | [
"Apache-2.0"
] | null | null | null | /*
* Copyright (c) 2018-2021 Grant Erickson
* 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... | 30.152091 | 112 | 0.626986 | [
"object",
"model"
] |
7ed43b90744c1d0bb9e21748423113a2ff1e2e6e | 2,705 | cpp | C++ | examples/OpenCV/main.cpp | guqiqi/EmbeddedSystem | 5940b0303e08e1dd891fa61c3599f8437d227520 | [
"MIT"
] | null | null | null | examples/OpenCV/main.cpp | guqiqi/EmbeddedSystem | 5940b0303e08e1dd891fa61c3599f8437d227520 | [
"MIT"
] | null | null | null | examples/OpenCV/main.cpp | guqiqi/EmbeddedSystem | 5940b0303e08e1dd891fa61c3599f8437d227520 | [
"MIT"
] | null | null | null | #include <cstdlib>
#include <iostream>
#include <vector>
#include <opencv2/highgui.hpp>
#include <opencv2/imgproc.hpp>
#include <opencv2/opencv.hpp>
#define PI 3.1415926
//Uncomment this line at run-time to skip GUI rendering
#define _DEBUG
using namespace cv;
using namespace std;
const string CAM_PATH="/dev/video... | 25.046296 | 91 | 0.692421 | [
"vector"
] |
7ee9f5f8bfbdc1540b3e8667c3e7236ed70e6633 | 491 | hpp | C++ | include/translate.hpp | Chrisstewy111/fungameforios | 8a4fd280e953b9aebfc0d8384d342e4e16e7bbb7 | [
"Zlib"
] | null | null | null | include/translate.hpp | Chrisstewy111/fungameforios | 8a4fd280e953b9aebfc0d8384d342e4e16e7bbb7 | [
"Zlib"
] | null | null | null | include/translate.hpp | Chrisstewy111/fungameforios | 8a4fd280e953b9aebfc0d8384d342e4e16e7bbb7 | [
"Zlib"
] | null | null | null | #ifndef TRANS_HPP
#define TRANS_HPP
#include <allegro5/allegro.h>
#include <vector>
extern std::vector<std::string> pre_translated_strings;
extern std::vector<ALLEGRO_USTR *> post_translated_strings;
std::string get_language_name(int index);
std::string get_language_friendly_name(int index);
std::string get_all_glyp... | 25.842105 | 59 | 0.798371 | [
"vector"
] |
7efe1dc5c90dd250abce90c3525fa2196571a918 | 8,460 | cpp | C++ | src/dropdown.cpp | GhostatSpirit/hdrview | 61596f8ba45554db23ae1b214354ab40da065638 | [
"MIT"
] | 94 | 2021-04-23T03:31:15.000Z | 2022-03-29T08:20:26.000Z | src/dropdown.cpp | GhostatSpirit/hdrview | 61596f8ba45554db23ae1b214354ab40da065638 | [
"MIT"
] | 64 | 2021-05-05T21:51:15.000Z | 2022-02-08T17:06:52.000Z | src/dropdown.cpp | GhostatSpirit/hdrview | 61596f8ba45554db23ae1b214354ab40da065638 | [
"MIT"
] | 3 | 2021-07-06T04:58:27.000Z | 2022-02-08T16:53:48.000Z | //
// Copyright (C) Wojciech Jarosz <wjarosz@gmail.com>. All rights reserved.
// Use of this source code is governed by a BSD-style license that can
// be found in the LICENSE.txt file.
//
#include "dropdown.h"
#include <cassert>
#include <nanogui/icons.h>
#include <nanogui/layout.h>
#include <nanogui/opengl.h>
#inclu... | 33.046875 | 118 | 0.628014 | [
"vector"
] |
7d024a7407196f775035432518f0fdb40bdf6cf3 | 3,324 | cpp | C++ | 2. Рекуррентные соотношения/34. Доминошки #828/[OK]210479.cpp | godnoTA/acm.bsu.by | 3e1cf1c545c691de82b5e1d2e0768b41ea581734 | [
"Unlicense"
] | 19 | 2018-05-19T16:37:14.000Z | 2022-03-23T20:13:43.000Z | 2. Рекуррентные соотношения/34. Доминошки #828/[OK]210479.cpp | godnoTA/acm.bsu.by | 3e1cf1c545c691de82b5e1d2e0768b41ea581734 | [
"Unlicense"
] | 6 | 2020-05-07T21:06:48.000Z | 2020-06-05T17:52:57.000Z | 2. Рекуррентные соотношения/34. Доминошки #828/[OK]210479.cpp | godnoTA/acm.bsu.by | 3e1cf1c545c691de82b5e1d2e0768b41ea581734 | [
"Unlicense"
] | 31 | 2019-03-01T21:41:38.000Z | 2022-03-27T17:56:39.000Z | #include <iostream>
#include <fstream>
#include <vector>
#include <unordered_map>
#include <algorithm>
struct SumInfo{
std::vector<int> count;
bool canSum;
SumInfo(): count(13, 0), canSum(false) {}
};
int main() {
std::ifstream in("in.txt");
std::size_t size;
in >> size;
std::unordered_map... | 33.575758 | 100 | 0.498195 | [
"vector"
] |
7d16478d36bc10992fc6349746d7c2da3ebdb460 | 24,468 | cxx | C++ | main/tools/source/generic/b3dtrans.cxx | Grosskopf/openoffice | 93df6e8a695d5e3eac16f3ad5e9ade1b963ab8d7 | [
"Apache-2.0"
] | 679 | 2015-01-06T06:34:58.000Z | 2022-03-30T01:06:03.000Z | main/tools/source/generic/b3dtrans.cxx | Grosskopf/openoffice | 93df6e8a695d5e3eac16f3ad5e9ade1b963ab8d7 | [
"Apache-2.0"
] | 102 | 2017-11-07T08:51:31.000Z | 2022-03-17T12:13:49.000Z | main/tools/source/generic/b3dtrans.cxx | Grosskopf/openoffice | 93df6e8a695d5e3eac16f3ad5e9ade1b963ab8d7 | [
"Apache-2.0"
] | 331 | 2015-01-06T11:40:55.000Z | 2022-03-14T04:07:51.000Z | /**************************************************************
*
* Licensed to the Apache Software Foundation (ASF) 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 y... | 24.20178 | 151 | 0.677742 | [
"object",
"3d"
] |
7d194a79d2fd4a0593b6d423e1ae24840aeaf080 | 31,136 | cc | C++ | boosting/probabilizer.cc | leobispo/jml | d5e8f91419789fcdb913339fe11b67dbcc75d43d | [
"Apache-2.0"
] | 1 | 2018-02-27T08:01:22.000Z | 2018-02-27T08:01:22.000Z | boosting/probabilizer.cc | leobispo/jml | d5e8f91419789fcdb913339fe11b67dbcc75d43d | [
"Apache-2.0"
] | null | null | null | boosting/probabilizer.cc | leobispo/jml | d5e8f91419789fcdb913339fe11b67dbcc75d43d | [
"Apache-2.0"
] | null | null | null | /* probabilizer.cc
Jeremy Barnes, 13 June 2003
Copyright (c) 2003 Jeremy Barnes. All rights reserved.
$Source$
*/
#include "probabilizer.h"
#include "registry.h"
#include "training_data.h"
#include "training_index.h"
#include "classifier.h"
#include "jml/stats/moments.h"
#include "jml/stats/distribution_ops... | 31.011952 | 93 | 0.541174 | [
"object",
"shape",
"vector",
"model"
] |
7d29793645c4b9b39a0bd076518607ad68901d65 | 11,271 | cc | C++ | src/lm/kaldi-nnlm.cc | boostpapa/kaldi | 1727fa234ef505b8550cab991e30c5ee6aaff64d | [
"Apache-2.0"
] | 1 | 2021-04-29T16:09:26.000Z | 2021-04-29T16:09:26.000Z | src/lm/kaldi-nnlm.cc | boostpapa/kaldi | 1727fa234ef505b8550cab991e30c5ee6aaff64d | [
"Apache-2.0"
] | 2 | 2019-04-09T06:57:51.000Z | 2019-04-09T07:12:48.000Z | src/lm/kaldi-nnlm.cc | ishine/kaldi | 1845b94477c1ca0066797c320bf4eaf56cbd75cc | [
"Apache-2.0"
] | 2 | 2017-08-20T10:24:05.000Z | 2019-02-28T02:48:53.000Z | // lm/kaldi-nnlm.cc
// Copyright 2015-2016 Shanghai Jiao Tong University (author: Wei Deng)
// See ../../COPYING for clarification regarding multiple authors
//
// 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 ... | 35.003106 | 97 | 0.704108 | [
"vector",
"model"
] |
7d2a57b70638cb1b48af8a43d4b87ebb4d708224 | 1,850 | cpp | C++ | srcAmiga/modeler/opengl.cpp | privatosan/RayStorm | 17e27259a8a1d6b2fcfa16886c6e4cdd81be8cfa | [
"MIT"
] | 2 | 2016-04-03T23:57:54.000Z | 2019-12-05T17:50:37.000Z | srcAmiga/modeler/opengl.cpp | privatosan/RayStorm | 17e27259a8a1d6b2fcfa16886c6e4cdd81be8cfa | [
"MIT"
] | null | null | null | srcAmiga/modeler/opengl.cpp | privatosan/RayStorm | 17e27259a8a1d6b2fcfa16886c6e4cdd81be8cfa | [
"MIT"
] | 2 | 2015-06-20T19:22:47.000Z | 2021-11-15T15:22:14.000Z | /***************
* PROGRAM: Modeler
* NAME: opengl.cpp
* DESCRIPTION: OpenGL platform specific implementation
* AUTHORS: Andreas Heumann, Mike Hesser
* HISTORY:
* DATE NAME COMMENT
* 02.03.98 ah initial release
***************/
#ifndef OPENGL_H
#include "opengl.h"
#endif
#... | 21.022727 | 119 | 0.630811 | [
"object"
] |
7d2e077f06b98aaa4a05e635fccf797d5c1ce215 | 8,479 | cpp | C++ | ChromeWorker/fontreplace.cpp | vadkasevas/BAS | 657f62794451c564c77d6f92b2afa9f5daf2f517 | [
"MIT"
] | 302 | 2016-05-20T12:55:23.000Z | 2022-03-29T02:26:14.000Z | ChromeWorker/fontreplace.cpp | chulakshana/BAS | 955f5a41bd004bcdd7d19725df6ab229b911c09f | [
"MIT"
] | 9 | 2016-07-21T09:04:50.000Z | 2021-05-16T07:34:42.000Z | ChromeWorker/fontreplace.cpp | chulakshana/BAS | 955f5a41bd004bcdd7d19725df6ab229b911c09f | [
"MIT"
] | 113 | 2016-05-18T07:48:37.000Z | 2022-02-26T12:59:39.000Z | #include <Windows.h>
#include "fontreplace.h"
#include "MinHook.h"
#include "converter.h"
#include "log.h"
#include "split.h"
#include "trim.h"
#include "multithreading.h"
typedef HFONT (WINAPI *BAS_TYPE_CreateFontIndirectW)(CONST LOGFONTW *);
BAS_TYPE_CreateFontIndirectW BAS_POINTER_CreateFontIndirectW = NULL;
HF... | 27.263666 | 149 | 0.617644 | [
"vector",
"transform"
] |
7d351c281ec83c1272ff511d4012e219241f4fde | 5,801 | cpp | C++ | src/ngraph/op/softmax.cpp | ilya-lavrenov/ngraph | 2d8b2b4b30dbcabda0c3de2ae458418e63da057a | [
"Apache-2.0"
] | null | null | null | src/ngraph/op/softmax.cpp | ilya-lavrenov/ngraph | 2d8b2b4b30dbcabda0c3de2ae458418e63da057a | [
"Apache-2.0"
] | null | null | null | src/ngraph/op/softmax.cpp | ilya-lavrenov/ngraph | 2d8b2b4b30dbcabda0c3de2ae458418e63da057a | [
"Apache-2.0"
] | null | null | null | //*****************************************************************************
// Copyright 2017-2019 Intel Corporation
//
// 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://w... | 32.049724 | 97 | 0.576108 | [
"shape",
"vector"
] |
7d3d2dea69f3711b593efd1023329b707bf5e821 | 4,221 | cpp | C++ | SofaKernel/framework/sofa/core/behavior/BaseMechanicalState.cpp | sofa-framework/issofa | 94855f488465bc3ed41223cbde987581dfca5389 | [
"OML"
] | null | null | null | SofaKernel/framework/sofa/core/behavior/BaseMechanicalState.cpp | sofa-framework/issofa | 94855f488465bc3ed41223cbde987581dfca5389 | [
"OML"
] | null | null | null | SofaKernel/framework/sofa/core/behavior/BaseMechanicalState.cpp | sofa-framework/issofa | 94855f488465bc3ed41223cbde987581dfca5389 | [
"OML"
] | null | null | null | /******************************************************************************
* SOFA, Simulation Open-Framework Architecture, development version *
* (c) 2006-2017 INRIA, USTL, UJF, CNRS, MGH *
* *
... | 36.076923 | 114 | 0.521914 | [
"vector"
] |
7d4130e4fef1b0f3bc6cd3662bff230c8b9c3497 | 12,517 | cc | C++ | cccc/cccc_opt.cc | bbannier/cccc | ff4e76179f7a13781575d173867de0311419f4ab | [
"Naumen",
"Condor-1.1",
"MS-PL"
] | 1 | 2016-10-07T14:26:42.000Z | 2016-10-07T14:26:42.000Z | cccc/cccc_opt.cc | bbannier/cccc | ff4e76179f7a13781575d173867de0311419f4ab | [
"Naumen",
"Condor-1.1",
"MS-PL"
] | null | null | null | cccc/cccc_opt.cc | bbannier/cccc | ff4e76179f7a13781575d173867de0311419f4ab | [
"Naumen",
"Condor-1.1",
"MS-PL"
] | null | null | null | /*
CCCC - C and C++ Code Counter
Copyright (C) 1994-2005 Tim Littlefair (tim_littlefair@hotmail.com)
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the Licens... | 29.451765 | 85 | 0.683311 | [
"object"
] |
7d444f29b943d9f063daf2fa43e131b69ce82b2e | 1,767 | c++ | C++ | Tests/baseConvert.c++ | lepertheory/cxx-general | 016794f89e2347edee3aa9232683400ab56b4c63 | [
"MIT"
] | null | null | null | Tests/baseConvert.c++ | lepertheory/cxx-general | 016794f89e2347edee3aa9232683400ab56b4c63 | [
"MIT"
] | null | null | null | Tests/baseConvert.c++ | lepertheory/cxx-general | 016794f89e2347edee3aa9232683400ab56b4c63 | [
"MIT"
] | null | null | null | /*****************************************************************************
* baseConvert.c++
*****************************************************************************
* Unit tests for the baseConvert() functions.
*****************************************************************************/
// Standard inc... | 22.948052 | 79 | 0.441992 | [
"vector"
] |
7d659848c3143e81a2a4a8fe7904e938cbd6301b | 3,655 | cpp | C++ | src/qt/src/corelib/statemachine/qfinalstate.cpp | martende/phantomjs | 5cecd7dde7b8fd04ad2c036d16f09a8d2a139854 | [
"BSD-3-Clause"
] | 1 | 2015-03-16T20:49:09.000Z | 2015-03-16T20:49:09.000Z | src/qt/src/corelib/statemachine/qfinalstate.cpp | firedfox/phantomjs | afb0707c9db7b5e693ad1b216a50081565c08ebb | [
"BSD-3-Clause"
] | null | null | null | src/qt/src/corelib/statemachine/qfinalstate.cpp | firedfox/phantomjs | afb0707c9db7b5e693ad1b216a50081565c08ebb | [
"BSD-3-Clause"
] | null | null | null | /****************************************************************************
**
** Copyright (C) 2011 Nokia Corporation and/or its subsidiary(-ies).
** All rights reserved.
** Contact: Nokia Corporation (qt-info@nokia.com)
**
** This file is part of the QtCore module of the Qt Toolkit.
**
** $QT_BEGIN_LICENSE:LGPL$
**... | 25.921986 | 89 | 0.700684 | [
"object"
] |
de10982debac99c1f29eea5a9ad5962045b0bd93 | 4,205 | cpp | C++ | modules/compute/map_gen.cpp | GnaeusPompeius/godot | e4ae129d450e7e7a263fd789217dd24fbd293128 | [
"CC-BY-3.0",
"Apache-2.0",
"MIT"
] | null | null | null | modules/compute/map_gen.cpp | GnaeusPompeius/godot | e4ae129d450e7e7a263fd789217dd24fbd293128 | [
"CC-BY-3.0",
"Apache-2.0",
"MIT"
] | null | null | null | modules/compute/map_gen.cpp | GnaeusPompeius/godot | e4ae129d450e7e7a263fd789217dd24fbd293128 | [
"CC-BY-3.0",
"Apache-2.0",
"MIT"
] | null | null | null | /* map_gen.cpp */
#include "map_gen.h"
void MapGenerator::_bind_methods() {
//ClassDB::bind_method(D_METHOD("add", "value"), &Summator::add);
ClassDB::bind_method(D_METHOD("get_image"), &MapGenerator::get_image);
ClassDB::bind_method(D_METHOD("step"), &MapGenerator::step);
}
MapGenerator::MapGenerator() {
String... | 28.605442 | 133 | 0.67396 | [
"mesh"
] |
de124a4b34c679775429dab748eda824657bce31 | 1,558 | cpp | C++ | main.cpp | astrellon/simple-snake | 3dbe1f2af1afe31d3cef8bcc995d9150beafa1b2 | [
"MIT"
] | null | null | null | main.cpp | astrellon/simple-snake | 3dbe1f2af1afe31d3cef8bcc995d9150beafa1b2 | [
"MIT"
] | null | null | null | main.cpp | astrellon/simple-snake | 3dbe1f2af1afe31d3cef8bcc995d9150beafa1b2 | [
"MIT"
] | null | null | null | #include <SFML/Graphics.hpp>
#include <SFML/System.hpp>
#include <iostream>
#include <thread>
#include <chrono>
#include <vector>
#include "src/engine.hpp"
#include "src/managers/font_manager.hpp"
#include "src/map.hpp"
#include "src/tiles.hpp"
#include "src/snake.hpp"
#include "src/game_session.hpp"
#include "src/pa... | 23.969231 | 63 | 0.655969 | [
"vector"
] |
de128031396c94922f4769f65758a8ac1a23569a | 6,658 | cc | C++ | packages/Alea/mc_solvers/test/tstMC_Data.cc | GCZhang/Profugus | d4d8fe295a92a257b26b6082224226ca1edbff5d | [
"BSD-2-Clause"
] | 19 | 2015-06-04T09:02:41.000Z | 2021-04-27T19:32:55.000Z | packages/Alea/mc_solvers/test/tstMC_Data.cc | GCZhang/Profugus | d4d8fe295a92a257b26b6082224226ca1edbff5d | [
"BSD-2-Clause"
] | null | null | null | packages/Alea/mc_solvers/test/tstMC_Data.cc | GCZhang/Profugus | d4d8fe295a92a257b26b6082224226ca1edbff5d | [
"BSD-2-Clause"
] | 5 | 2016-10-05T20:48:28.000Z | 2021-06-21T12:00:54.000Z | //----------------------------------*-C++-*----------------------------------//
/*!
* \file Alea/mc_solvers/test/tstMC_Data.cc
* \author Steven Hamilton
* \brief Test of MC_Data class.
*/
//---------------------------------------------------------------------------//
#include <iostream>
#include "gtest/utils_g... | 30.682028 | 79 | 0.466206 | [
"vector"
] |
de14da6e64828f272231858a5449f84d9914c3b8 | 812 | cpp | C++ | N0221-Maximal-Square/solution1.cpp | loyio/leetcode | 366393c29a434a621592ef6674a45795a3086184 | [
"CC0-1.0"
] | null | null | null | N0221-Maximal-Square/solution1.cpp | loyio/leetcode | 366393c29a434a621592ef6674a45795a3086184 | [
"CC0-1.0"
] | null | null | null | N0221-Maximal-Square/solution1.cpp | loyio/leetcode | 366393c29a434a621592ef6674a45795a3086184 | [
"CC0-1.0"
] | 2 | 2022-01-25T05:31:31.000Z | 2022-02-26T07:22:23.000Z | class Solution {
public:
int maximalSquare(vector<vector<char>>& matrix) {
if(matrix.size() == 0 || matrix[0].size() == 0){
return 0;
}
int rows = matrix.size(), columns = matrix[0].size();
int maxS = 0;
vector<vector<int>> dp(rows, vector<int>(columns));
... | 31.230769 | 86 | 0.368227 | [
"vector"
] |
de1ae7d128eca3b06c5a4fed283afcefc8243c76 | 1,242 | cpp | C++ | leetcode/787.cpp | btjanaka/competitive-programming-solutions | e3df47c18451802b8521ebe61ca71ee348e5ced7 | [
"MIT"
] | 3 | 2020-06-25T21:04:02.000Z | 2021-05-12T03:33:19.000Z | leetcode/787.cpp | btjanaka/competitive-programming-solutions | e3df47c18451802b8521ebe61ca71ee348e5ced7 | [
"MIT"
] | null | null | null | leetcode/787.cpp | btjanaka/competitive-programming-solutions | e3df47c18451802b8521ebe61ca71ee348e5ced7 | [
"MIT"
] | 1 | 2020-06-25T21:04:06.000Z | 2020-06-25T21:04:06.000Z | // Author: btjanaka (Bryon Tjanaka)
// Problem: (LeetCode) 787
// Title: Cheapest Flights Within K Stops
// Link: https://leetcode.com/problems/cheapest-flights-within-k-stops/
// Idea: Perform a BFS that only goes K layers deep, and if dst is reached
// within that search, you can return its distance.
// Difficulty: m... | 28.227273 | 78 | 0.519324 | [
"vector"
] |
de2360b7e7c9a84f095643c1f5331c6a4ed855d7 | 1,480 | hpp | C++ | src/prob/conf/inst/pass.hpp | ferhaterata/etap | ce1953fbe058cb2a8e2d45fbdc28aa9e654fac0f | [
"MIT"
] | 2 | 2022-02-27T11:41:57.000Z | 2022-03-03T04:15:24.000Z | src/prob/conf/inst/pass.hpp | ferhaterata/etap | ce1953fbe058cb2a8e2d45fbdc28aa9e654fac0f | [
"MIT"
] | null | null | null | src/prob/conf/inst/pass.hpp | ferhaterata/etap | ce1953fbe058cb2a8e2d45fbdc28aa9e654fac0f | [
"MIT"
] | 1 | 2022-02-28T20:15:03.000Z | 2022-02-28T20:15:03.000Z | // ----------------------------------------------------------------------------
// Header file for the Pass class. pass.hpp
// Created by Ferhat Erata <ferhat.erata@yale.edu> on November 14, 2020.
// Copyright (c) 2020 Yale University. All rights reserved.
// --------------------... | 28.461538 | 80 | 0.614189 | [
"vector",
"model"
] |
de278b2b943d0ff52f510e82d360d1d2b509dee1 | 3,225 | cpp | C++ | tests/workers/test_facedetect.cpp | Xilinx/inference-server | 7477b7dc420ce4cd0d7e1d9914b71898e97d6814 | [
"Apache-2.0"
] | 4 | 2021-11-03T21:32:55.000Z | 2022-02-17T17:13:16.000Z | tests/workers/test_facedetect.cpp | Xilinx/inference-server | 7477b7dc420ce4cd0d7e1d9914b71898e97d6814 | [
"Apache-2.0"
] | null | null | null | tests/workers/test_facedetect.cpp | Xilinx/inference-server | 7477b7dc420ce4cd0d7e1d9914b71898e97d6814 | [
"Apache-2.0"
] | 2 | 2022-03-05T20:01:33.000Z | 2022-03-25T06:00:35.000Z | // Copyright 2021 Xilinx Inc.
//
// 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... | 34.308511 | 80 | 0.68093 | [
"shape",
"vector"
] |
de40780f349623e27e2c31c4e1261d8646debf2c | 708 | cpp | C++ | CodeForces/Registration System.cpp | abdelrahman0123/Problem-Solving | 9d40ed9adb6e6d519dc53f676b6dd44ca15ee70b | [
"MIT"
] | null | null | null | CodeForces/Registration System.cpp | abdelrahman0123/Problem-Solving | 9d40ed9adb6e6d519dc53f676b6dd44ca15ee70b | [
"MIT"
] | null | null | null | CodeForces/Registration System.cpp | abdelrahman0123/Problem-Solving | 9d40ed9adb6e6d519dc53f676b6dd44ca15ee70b | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
using namespace std;
#define fast ios_base::sync_with_stdio(0); cin.tie(0); cout.tie(0);
#define all(v) v.begin(), v.end()
#define sz(v) v.size()
typedef long long ll;
typedef vector<int> vi;
ll gcd(ll a, ll b) {
if (b == 0)
return a;
return gcd(b, a % b);
}
ll lcm(ll a, ll b) {
return a ... | 18.153846 | 67 | 0.54661 | [
"vector"
] |
de4c46e8732fc3248d36a282d0e3bcb52e141741 | 2,841 | cpp | C++ | JobBoard2/mainwindow.cpp | AlanD88/jobBoard | e97bd247a1a0c911b844cfa516063c7b45b7ac7b | [
"MIT"
] | null | null | null | JobBoard2/mainwindow.cpp | AlanD88/jobBoard | e97bd247a1a0c911b844cfa516063c7b45b7ac7b | [
"MIT"
] | null | null | null | JobBoard2/mainwindow.cpp | AlanD88/jobBoard | e97bd247a1a0c911b844cfa516063c7b45b7ac7b | [
"MIT"
] | null | null | null | #include "mainwindow.h"
#include "ui_mainwindow.h"
#include "additem.h"
#include "edit.h"
#include <QStandardItemModel>
#include <fstream>
#include <QDebug>
#include <QMessageBox>
MainWindow::MainWindow(QWidget *parent) :
QMainWindow(parent),
ui(new Ui::MainWindow)
{
ui->setupUi(this);
db = QSqlDataba... | 25.594595 | 97 | 0.629356 | [
"model"
] |
de511406a91a5ff899e635995d27e3b8010ef96b | 80,429 | cxx | C++ | Modules/Core/Metadata/src/otbPleiadesImageMetadataInterface.cxx | yyxgiser/OTB | 2782a5838a55890769cdc6bc3bd900b2e9f6c5cb | [
"Apache-2.0"
] | null | null | null | Modules/Core/Metadata/src/otbPleiadesImageMetadataInterface.cxx | yyxgiser/OTB | 2782a5838a55890769cdc6bc3bd900b2e9f6c5cb | [
"Apache-2.0"
] | null | null | null | Modules/Core/Metadata/src/otbPleiadesImageMetadataInterface.cxx | yyxgiser/OTB | 2782a5838a55890769cdc6bc3bd900b2e9f6c5cb | [
"Apache-2.0"
] | 1 | 2020-10-15T09:37:30.000Z | 2020-10-15T09:37:30.000Z | /*
* Copyright (C) 2005-2020 Centre National d'Etudes Spatiales (CNES)
*
* This file is part of Orfeo Toolbox
*
* https://www.orfeo-toolbox.org/
*
* 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 ... | 45.033035 | 153 | 0.543212 | [
"vector",
"model"
] |
de58e7c94b5fabf5e178e153123f435bbcdefcdc | 18,545 | cpp | C++ | Doraemon.cpp | Hanbo-Sun/SGD-for-L1-regularized-Log-linear-Models | dca70d4b013c6384457de813c70a6cc95f87ae1b | [
"MIT"
] | 1 | 2019-03-20T04:19:37.000Z | 2019-03-20T04:19:37.000Z | Doraemon.cpp | Hanbo-Sun/SGD_L1regu_LogLinear_Models | dca70d4b013c6384457de813c70a6cc95f87ae1b | [
"MIT"
] | null | null | null | Doraemon.cpp | Hanbo-Sun/SGD_L1regu_LogLinear_Models | dca70d4b013c6384457de813c70a6cc95f87ae1b | [
"MIT"
] | null | null | null | // L1-regularized logistic regression implementation using stochastic gradient descent
#include <iostream>
#include <fstream>
#include <iomanip>
#include <random>
#include <cstdlib>
#include <cmath>
#include <vector>
#include <sstream>
#include <numeric>
#include <algorithm>
#include <map>
#include <set>
#include <str... | 34.215867 | 133 | 0.458722 | [
"vector",
"model"
] |
de5c76cb761d54c0d9ac3ac6178b2d787076ea6c | 545 | hh | C++ | src/BGL/BGLSVG.hh | revarbat/Mandoline | 1aafd7e6702ef740bcac6ab8c8c43282a104c60a | [
"BSD-2-Clause-FreeBSD"
] | 17 | 2015-01-07T10:32:06.000Z | 2021-07-06T11:00:38.000Z | src/BGL/BGLSVG.hh | revarbat/Mandoline | 1aafd7e6702ef740bcac6ab8c8c43282a104c60a | [
"BSD-2-Clause-FreeBSD"
] | 2 | 2017-08-17T17:44:42.000Z | 2018-06-14T23:39:04.000Z | src/BGL/BGLSVG.hh | revarbat/Mandoline | 1aafd7e6702ef740bcac6ab8c8c43282a104c60a | [
"BSD-2-Clause-FreeBSD"
] | 3 | 2015-01-07T10:32:06.000Z | 2019-03-22T16:56:51.000Z | //
// BGLSVG.hh
// Part of the Belfry Geometry Library
//
// Created by GM on 10/13/10.
// Copyright 2010 Belfry Software. All rights reserved.
//
#ifndef BGL_SVG_H
#define BGL_SVG_H
#include <iostream>
using namespace std;
namespace BGL {
class SVG {
public:
// member variables
double width, height;
... | 14.342105 | 56 | 0.655046 | [
"geometry"
] |
de708fc4b0fc91816f3b545e2f4d7635350f0a92 | 1,375 | cpp | C++ | src/main.cpp | bgorzsony/Kalk | 6d86027cef7d61d589e806d3017c4c4bac0701cd | [
"MIT"
] | null | null | null | src/main.cpp | bgorzsony/Kalk | 6d86027cef7d61d589e806d3017c4c4bac0701cd | [
"MIT"
] | null | null | null | src/main.cpp | bgorzsony/Kalk | 6d86027cef7d61d589e806d3017c4c4bac0701cd | [
"MIT"
] | null | null | null |
#include <iostream>
#include <fstream>
#include "Token.h"
#include "Registers.h"
#include "Operator.h"
#include "Tokenizer.h"
#include "Expression.h"
#include "Program.h"
#include "memtrace.h"
using std::cout;
using std::endl;
#define CPORTA
int main(int argc, char** argv) {
/*cout << sizeo... | 16.975309 | 78 | 0.576727 | [
"vector"
] |
de719bc5356d0cd4d1f42de378c426ad256075df | 3,357 | cpp | C++ | android-31/java/io/StreamTokenizer.cpp | YJBeetle/QtAndroidAPI | 1468b5dc6eafaf7709f0b00ba1a6ec2b70684266 | [
"Apache-2.0"
] | 12 | 2020-03-26T02:38:56.000Z | 2022-03-14T08:17:26.000Z | android-31/java/io/StreamTokenizer.cpp | YJBeetle/QtAndroidAPI | 1468b5dc6eafaf7709f0b00ba1a6ec2b70684266 | [
"Apache-2.0"
] | 1 | 2021-01-27T06:07:45.000Z | 2021-11-13T19:19:43.000Z | android-29/java/io/StreamTokenizer.cpp | YJBeetle/QtAndroidAPI | 1468b5dc6eafaf7709f0b00ba1a6ec2b70684266 | [
"Apache-2.0"
] | 3 | 2021-02-02T12:34:55.000Z | 2022-03-08T07:45:57.000Z | #include "../../JByteArray.hpp"
#include "../../JCharArray.hpp"
#include "./InputStream.hpp"
#include "./Reader.hpp"
#include "../../JString.hpp"
#include "./StreamTokenizer.hpp"
namespace java::io
{
// Fields
jint StreamTokenizer::TT_EOF()
{
return getStaticField<jint>(
"java.io.StreamTokenizer",
"TT_EOF"
... | 16.455882 | 67 | 0.638963 | [
"object"
] |
de732b93a6635a1813ebbeff759fefe3de239962 | 5,135 | hpp | C++ | include/DREAM/Solver/Solver.hpp | chalmersplasmatheory/DREAM | 715637ada94f5e35db16f23c2fd49bb7401f4a27 | [
"MIT"
] | 12 | 2020-09-07T11:19:10.000Z | 2022-02-17T17:40:19.000Z | include/DREAM/Solver/Solver.hpp | chalmersplasmatheory/DREAM | 715637ada94f5e35db16f23c2fd49bb7401f4a27 | [
"MIT"
] | 110 | 2020-09-02T15:29:24.000Z | 2022-03-09T09:50:01.000Z | include/DREAM/Solver/Solver.hpp | chalmersplasmatheory/DREAM | 715637ada94f5e35db16f23c2fd49bb7401f4a27 | [
"MIT"
] | 3 | 2021-05-21T13:24:31.000Z | 2022-02-11T14:43:12.000Z | #ifndef _DREAM_SOLVER_HPP
#define _DREAM_SOLVER_HPP
/* Definition of the abstract base class 'Solver', which
* defines the interface for all equation solvers in DREAM.
*/
#include <vector>
#include <softlib/SFile.h>
#include "DREAM/ConvergenceChecker.hpp"
#include "DREAM/DiagonalPreconditioner.hpp"
#include "DREAM/... | 38.037037 | 101 | 0.680818 | [
"vector"
] |
de7d9e341591a653c1dcf8edc38bf6469815482e | 18,417 | cxx | C++ | com/ole32/stg/msf/vect.cxx | npocmaka/Windows-Server-2003 | 5c6fe3db626b63a384230a1aa6b92ac416b0765f | [
"Unlicense"
] | 17 | 2020-11-13T13:42:52.000Z | 2021-09-16T09:13:13.000Z | com/ole32/stg/msf/vect.cxx | sancho1952007/Windows-Server-2003 | 5c6fe3db626b63a384230a1aa6b92ac416b0765f | [
"Unlicense"
] | 2 | 2020-10-19T08:02:06.000Z | 2020-10-19T08:23:18.000Z | com/ole32/stg/msf/vect.cxx | sancho1952007/Windows-Server-2003 | 5c6fe3db626b63a384230a1aa6b92ac416b0765f | [
"Unlicense"
] | 14 | 2020-11-14T09:43:20.000Z | 2021-08-28T08:59:57.000Z | //+---------------------------------------------------------------------------
//
// Microsoft Windows
// Copyright (C) Microsoft Corporation, 1992 - 1992.
//
// File: vect.cxx
//
// Contents: Vector common code.
//
// Classes:
//
// Functions:
//
// History: 27-Oct-92 PhilipLa Created
//
//----... | 27.447094 | 81 | 0.481023 | [
"object",
"vector"
] |
de80055d345fcd587cf8bc62da5d56f4b88adcb7 | 1,383 | hpp | C++ | Server Lib/Game Server/PANGYA_DB/cmd_my_room_item.hpp | CCasusensa/SuperSS-Dev | 6c6253b0a56bce5dad150c807a9bbf310e8ff61b | [
"MIT"
] | 23 | 2021-10-31T00:20:21.000Z | 2022-03-26T07:24:40.000Z | Server Lib/Game Server/PANGYA_DB/cmd_my_room_item.hpp | CCasusensa/SuperSS-Dev | 6c6253b0a56bce5dad150c807a9bbf310e8ff61b | [
"MIT"
] | 5 | 2021-10-31T18:44:51.000Z | 2022-03-25T18:04:26.000Z | Server Lib/Game Server/PANGYA_DB/cmd_my_room_item.hpp | CCasusensa/SuperSS-Dev | 6c6253b0a56bce5dad150c807a9bbf310e8ff61b | [
"MIT"
] | 18 | 2021-10-20T02:31:56.000Z | 2022-02-01T11:44:36.000Z | // Arquivo cmd_my_room_item.hpp
// Criado em 22/03/2018 as 20:39 por Acrisio
// Defini��o da classe CmdMyRoomItem
#pragma once
#ifndef _STDA_CMD_MY_ROOM_ITEM_HPP
#define _STDA_CMD_MY_ROOM_ITEM_HPP
#include "../../Projeto IOCP/PANGYA_DB/pangya_db.h"
#include "../TYPE/pangya_game_st.h"
#include <vector>
namespace stdA... | 24.696429 | 89 | 0.711497 | [
"vector"
] |
de810dac3f126434a55a9161d7cbdebcf04d32c6 | 7,041 | cpp | C++ | iVS3D/src/iVS3D-core/model/automaticexecsettings.cpp | iVS3D/iVS3D | a1553a8d6ac5c5d3205a0ab2e2e340a109d2d8c9 | [
"MIT"
] | 10 | 2021-08-05T09:47:11.000Z | 2022-03-18T12:47:39.000Z | iVS3D/src/iVS3D-core/model/automaticexecsettings.cpp | iVS3D/iVS3D | a1553a8d6ac5c5d3205a0ab2e2e340a109d2d8c9 | [
"MIT"
] | null | null | null | iVS3D/src/iVS3D-core/model/automaticexecsettings.cpp | iVS3D/iVS3D | a1553a8d6ac5c5d3205a0ab2e2e340a109d2d8c9 | [
"MIT"
] | null | null | null | #include "automaticexecsettings.h"
AutomaticExecSettings::AutomaticExecSettings(AutomaticWidget *autoWidget, SamplingWidget *samplingWidget, OutputWidget* outputWidget) :
m_autoWidget(autoWidget), m_samplingWidget(samplingWidget), m_outputWidget(outputWidget)
{
connect(m_samplingWidget, &SamplingWidget::sig_a... | 34.684729 | 168 | 0.690101 | [
"object"
] |
de8653a9b05c0522eae049603ab1774a4c2d6abd | 1,767 | cpp | C++ | Tracker/src/Marker.cpp | marcelruhf/SoccerRL | afc9dcacf97ee2f3cc959329bd01d3f7fd815397 | [
"Apache-2.0"
] | null | null | null | Tracker/src/Marker.cpp | marcelruhf/SoccerRL | afc9dcacf97ee2f3cc959329bd01d3f7fd815397 | [
"Apache-2.0"
] | null | null | null | Tracker/src/Marker.cpp | marcelruhf/SoccerRL | afc9dcacf97ee2f3cc959329bd01d3f7fd815397 | [
"Apache-2.0"
] | null | null | null | /**
* @Author: Marcel Ruhf <marcelruhf>
* @Email: m.ruhf@protonmail.ch
* @Project: SoccerRL
* @Filename: MarkerFinder.cpp
* @License: Licensed under the Apache 2.0 license (see LICENSE.md)
* @Copyright: Copyright (c) 2017 Marcel Ruhf
*/
#include <tuple>
#include <vector>
#include <boost/optional.hpp>
#include <opencv... | 27.609375 | 114 | 0.560272 | [
"vector"
] |
de8937ab211bf23f349ab9654e5c46abf8473f35 | 17,692 | cpp | C++ | demo/cpp/train_HOG.cpp | berak/opencv_smallfry | fd8f64980dff0527523791984d6cb3dfcd2bc9bc | [
"BSD-3-Clause"
] | 57 | 2015-02-16T06:43:24.000Z | 2022-03-16T06:21:36.000Z | demo/cpp/train_HOG.cpp | berak/opencv_smallfry | fd8f64980dff0527523791984d6cb3dfcd2bc9bc | [
"BSD-3-Clause"
] | 4 | 2016-03-08T09:51:09.000Z | 2021-03-29T10:18:55.000Z | demo/cpp/train_HOG.cpp | berak/opencv_smallfry | fd8f64980dff0527523791984d6cb3dfcd2bc9bc | [
"BSD-3-Clause"
] | 27 | 2015-03-28T19:55:34.000Z | 2022-01-09T15:03:15.000Z | #include <opencv2/opencv.hpp>
#include <string>
#include <iostream>
#include <fstream>
#include <vector>
#include <time.h>
using namespace cv;
using namespace cv::ml;
using namespace std;
void get_svm_detector(const Ptr<SVM>& svm, vector< float > & hog_detector );
void convert_to_ml(const std::vector< cv::Mat > & t... | 33.571157 | 176 | 0.565792 | [
"vector"
] |
de8a2d4bd1b9092591df09077a2441709cea1db7 | 5,788 | cpp | C++ | engine2d/src/sdl_engine2d.cpp | pakillottk/engine2d | 44a1720c35a0c5b01c04457fd404fdd888182980 | [
"MIT"
] | null | null | null | engine2d/src/sdl_engine2d.cpp | pakillottk/engine2d | 44a1720c35a0c5b01c04457fd404fdd888182980 | [
"MIT"
] | null | null | null | engine2d/src/sdl_engine2d.cpp | pakillottk/engine2d | 44a1720c35a0c5b01c04457fd404fdd888182980 | [
"MIT"
] | null | null | null | #include <SDL2/SDL.h>
#include "../include/engine2d/application2d.h"
#include "sdl_engine2d.h"
#include "engine2d_rect.cpp"
#include "engine2d_sprites.cpp"
#include "stb_engine2d_text.cpp"
#include "engine2d_layer.cpp"
using namespace Engine2D;
internal void mapRgbaToPixelFormat(SDL_PixelFormat *format, ColorRGBA32 *c... | 34.248521 | 136 | 0.565999 | [
"render"
] |
de92b2302daf7ada5fe98716028aba3fcc944748 | 4,259 | cpp | C++ | actividades/sesion8/jorgegil/main.cpp | GonzaCDZ/Programacion-I | 860a39de6b6f337829358881bec5111f9ae25bad | [
"MIT"
] | null | null | null | actividades/sesion8/jorgegil/main.cpp | GonzaCDZ/Programacion-I | 860a39de6b6f337829358881bec5111f9ae25bad | [
"MIT"
] | null | null | null | actividades/sesion8/jorgegil/main.cpp | GonzaCDZ/Programacion-I | 860a39de6b6f337829358881bec5111f9ae25bad | [
"MIT"
] | null | null | null | #include <iostream>
#include <vector>
#include <math.h>
using namespace std;
class Vector{
public:
// n = tamaño
Vector(int n){
if (n<0){ // cualquier numero de coordenadas mayor que 0
throw string {"Numero de coordenadas incorrecto!"};
}
size = n;
for (int i=0; i<n... | 22.897849 | 84 | 0.519606 | [
"vector"
] |
de92f9a6932bca3c29b21f86a03c2e4e4d2008ec | 4,396 | cpp | C++ | src/lowl_audio_reader_wav.cpp | sebastian-heinz/lowl_audio | a81bd0f7b87f27b0de587bbc126e7b044c1f4dae | [
"MIT"
] | 2 | 2021-04-02T18:55:00.000Z | 2021-07-25T20:32:36.000Z | src/lowl_audio_reader_wav.cpp | sebastian-heinz/lowl_audio | a81bd0f7b87f27b0de587bbc126e7b044c1f4dae | [
"MIT"
] | 5 | 2021-04-02T22:09:02.000Z | 2021-04-21T03:35:24.000Z | src/lowl_audio_reader_wav.cpp | sebastian-heinz/lowl_audio | a81bd0f7b87f27b0de587bbc126e7b044c1f4dae | [
"MIT"
] | null | null | null | #include "lowl_audio_reader_wav.h"
#include "lowl_audio_format.h"
//#define DR_WAV_IMPLEMENTATION
#include <lowl_dr_imp.h>
std::unique_ptr<Lowl::AudioData>
Lowl::AudioReaderWav::read(std::unique_ptr<uint8_t[]> p_buffer, size_t p_size, Error &error) {
drwav wav;
if (!drwav_init_memory(&wav, p_buffer.get(), ... | 36.633333 | 139 | 0.635578 | [
"vector"
] |
de94819a17ec66e8545e23c4af922397bcec8d46 | 2,724 | cpp | C++ | window.cpp | phycelot/loo | d7cf0931bbdd68e6ccd3b810835c86155f9a13df | [
"Naumen",
"Condor-1.1",
"MS-PL"
] | null | null | null | window.cpp | phycelot/loo | d7cf0931bbdd68e6ccd3b810835c86155f9a13df | [
"Naumen",
"Condor-1.1",
"MS-PL"
] | null | null | null | window.cpp | phycelot/loo | d7cf0931bbdd68e6ccd3b810835c86155f9a13df | [
"Naumen",
"Condor-1.1",
"MS-PL"
] | null | null | null | #include <iostream>
#include <chrono>
#include "window.hpp"
namespace s5loo {
/* global functions définition */
double getTime() {
const auto now{std::chrono::system_clock::now().time_since_epoch()};
return 1e-3*double(std::chrono::duration_cast
<std::chrono::milliseconds>(now).count());
}
/*... | 24.540541 | 119 | 0.535242 | [
"shape"
] |
de949bfbc21deedbea47ca08c70ac2421ec47e46 | 2,496 | cpp | C++ | place_recognition/generate_signatures/src/SC/SC.cpp | IRVLab/so_dso_place_recognition | c330ee459bf3140fe2c117f0a3ad3535f8cad2ce | [
"Unlicense"
] | 38 | 2020-07-23T04:33:41.000Z | 2022-03-07T03:41:38.000Z | place_recognition/generate_signatures/src/SC/SC.cpp | IRVLab/so_dso_place_recognition | c330ee459bf3140fe2c117f0a3ad3535f8cad2ce | [
"Unlicense"
] | null | null | null | place_recognition/generate_signatures/src/SC/SC.cpp | IRVLab/so_dso_place_recognition | c330ee459bf3140fe2c117f0a3ad3535f8cad2ce | [
"Unlicense"
] | 10 | 2020-10-19T01:00:43.000Z | 2022-02-21T03:57:57.000Z | #include "SC.h"
#include "place_recognition/generate_signatures/src/utils/pts_align.h"
#include <cmath>
SC::SC(double max_rho) {
S_res_inv = numS / (2.0 * M_PI);
R_res_inv = numR / max_rho;
}
unsigned int SC::getSignatureSize() { return numS * numR; }
void SC::getSignature(
const std::vector<std::pair<Eigen:... | 32.415584 | 79 | 0.649439 | [
"vector"
] |
dea39d9ab559c8ae1053367f99292a2e66c7ce91 | 1,960 | cpp | C++ | code/p01.cpp | SuperV1234/cppcon2014 | 32fcf0d263976219f31c3b44bec35e3534dfe4b7 | [
"AFL-3.0"
] | 72 | 2015-01-09T19:35:15.000Z | 2021-07-02T22:23:25.000Z | code/p01.cpp | vittorioromeo/cppcon2014 | 32fcf0d263976219f31c3b44bec35e3534dfe4b7 | [
"AFL-3.0"
] | 1 | 2017-10-28T10:54:29.000Z | 2017-10-29T10:03:23.000Z | code/p01.cpp | vittorioromeo/cppcon2014 | 32fcf0d263976219f31c3b44bec35e3534dfe4b7 | [
"AFL-3.0"
] | 23 | 2015-01-09T19:35:25.000Z | 2021-01-14T15:44:32.000Z | // Copyright (c) 2014 Vittorio Romeo
// License: MIT License | http://opensource.org/licenses/MIT
// http://vittorioromeo.info | vittorio.romeo@outlook.com
// Let's begin the development of our arkanoid clone.
// We'll start by creating a blank window using the SFML library.
// The window will obtain input and displa... | 35.636364 | 72 | 0.671429 | [
"vector"
] |
dea4047481434c31ef7e2b2b4e0af5cd1ae6d96e | 12,215 | cpp | C++ | emulador/src/common/ers.cpp | dattebayoonline/Dattebayo | 09526566f63e76b9a5ce80f1f4e3d1918e26cf01 | [
"DOC",
"OLDAP-2.2.1"
] | 1 | 2022-03-24T17:24:12.000Z | 2022-03-24T17:24:12.000Z | emulador/src/common/ers.cpp | eluvju/Dattebayo | cc0fc92d8827f4890a8595bc3be0a71ef98767c1 | [
"DOC"
] | null | null | null | emulador/src/common/ers.cpp | eluvju/Dattebayo | cc0fc92d8827f4890a8595bc3be0a71ef98767c1 | [
"DOC"
] | null | null | null | /*****************************************************************************\
* Copyright (c) rAthena Dev Teams - Licensed under GNU GPL *
* For more information, see LICENCE in the main folder *
* *
* ... | 33.192935 | 165 | 0.608678 | [
"object"
] |
dea5336925222c7ca23e8f76c11a42da02f95587 | 11,833 | cpp | C++ | SOGM-3D-2D-Net/cpp_wrappers/cpp_slam/wrap_slam.cpp | liuxinren456852/Deep-Collison-Checker | 1d96415fd865361e22a6f25547707c47628dcfbe | [
"MIT"
] | 7 | 2021-09-09T15:03:36.000Z | 2022-03-15T16:33:33.000Z | SOGM-3D-2D-Net/cpp_wrappers/cpp_slam/wrap_slam.cpp | liuxinren456852/Deep-Collison-Checker | 1d96415fd865361e22a6f25547707c47628dcfbe | [
"MIT"
] | null | null | null | SOGM-3D-2D-Net/cpp_wrappers/cpp_slam/wrap_slam.cpp | liuxinren456852/Deep-Collison-Checker | 1d96415fd865361e22a6f25547707c47628dcfbe | [
"MIT"
] | 1 | 2021-09-10T01:46:50.000Z | 2021-09-10T01:46:50.000Z | #include <Python.h>
#include <numpy/arrayobject.h>
#include "../src/pointmap_slam/pointmap_slam.h"
#include <string>
// docstrings for our module
// *************************
static char module_docstring[] = "This module provides a method to compute a Pointmap SLAM";
static char map_sim_sequence_docstr... | 38.669935 | 154 | 0.706837 | [
"shape",
"vector",
"transform"
] |
dea6ac0a57fe2062da219a88ee1b703243fcd9d8 | 1,278 | cpp | C++ | test/steiner_tree/dreyfus_wagner_long_test.cpp | Kommeren/AA | e537b58d50e93d4a72709821b9ea413008970c6b | [
"BSL-1.0"
] | null | null | null | test/steiner_tree/dreyfus_wagner_long_test.cpp | Kommeren/AA | e537b58d50e93d4a72709821b9ea413008970c6b | [
"BSL-1.0"
] | null | null | null | test/steiner_tree/dreyfus_wagner_long_test.cpp | Kommeren/AA | e537b58d50e93d4a72709821b9ea413008970c6b | [
"BSL-1.0"
] | 1 | 2021-02-24T06:23:56.000Z | 2021-02-24T06:23:56.000Z | //=======================================================================
// Copyright (c)
//
// 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)
//====================================================================... | 29.045455 | 73 | 0.616588 | [
"vector"
] |
dea9fd0f549ad56398dfc93f731c505657daed8a | 875 | hpp | C++ | options/connector.hpp | sheepsskullcity/opentrack | 2742eebed2dd5db4dbf187504c95eca70aa624f2 | [
"ISC"
] | 1 | 2021-06-14T09:00:47.000Z | 2021-06-14T09:00:47.000Z | options/connector.hpp | sheepsskullcity/opentrack | 2742eebed2dd5db4dbf187504c95eca70aa624f2 | [
"ISC"
] | null | null | null | options/connector.hpp | sheepsskullcity/opentrack | 2742eebed2dd5db4dbf187504c95eca70aa624f2 | [
"ISC"
] | null | null | null | #pragma once
#include <map>
#include <vector>
#include <QString>
#include <QMutex>
#include <QMutexLocker>
#include "export.hpp"
namespace options {
class base_value;
namespace detail {
class OPENTRACK_OPTIONS_EXPORT connector
{
friend class ::options::base_value;
std::map<QString, std::vector<const base... | 20.348837 | 74 | 0.713143 | [
"vector"
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.