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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
02ab7ba80486283467fd4a75f2e7c5f9a4e0bbbd | 671 | cpp | C++ | solutions/931.cpp | tdakhran/leetcode | ed680059661faae32857eaa791ca29c1d9c16120 | [
"MIT"
] | null | null | null | solutions/931.cpp | tdakhran/leetcode | ed680059661faae32857eaa791ca29c1d9c16120 | [
"MIT"
] | null | null | null | solutions/931.cpp | tdakhran/leetcode | ed680059661faae32857eaa791ca29c1d9c16120 | [
"MIT"
] | null | null | null | #include <algorithm>
#include <vector>
class Solution {
public:
int minFallingPathSum(std::vector<std::vector<int>>& matrix) {
size_t n = matrix.size();
for (size_t row = 1; row < n; ++row) {
matrix[row][0] += std::min(matrix[row - 1][0], matrix[row - 1][1]);
for (size_t col = 1; col + 1 < n; ++... | 31.952381 | 78 | 0.514158 | [
"vector"
] |
02ad0bf7a50aa7699f039d03c47cadbfc3bcb8ed | 38,264 | cpp | C++ | physx/source/physxextensions/src/ExtD6Joint.cpp | Guillaume0477/PhysX_ME | 69c35c405d39df9b112567750e92542b235bdba7 | [
"Unlicense"
] | 13 | 2020-01-08T00:55:42.000Z | 2022-01-21T06:15:08.000Z | physx/source/physxextensions/src/ExtD6Joint.cpp | Guillaume0477/PhysX_ME | 69c35c405d39df9b112567750e92542b235bdba7 | [
"Unlicense"
] | 8 | 2020-01-13T07:10:57.000Z | 2021-05-14T20:55:17.000Z | physx/source/physxextensions/src/ExtD6Joint.cpp | Guillaume0477/PhysX_ME | 69c35c405d39df9b112567750e92542b235bdba7 | [
"Unlicense"
] | 5 | 2020-05-05T08:37:01.000Z | 2021-03-16T20:46:44.000Z | //
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions
// are met:
// * Redistributions of source code must retain the above copyright
// notice, this list of conditions and the following disclaimer.
// * Redistributions in bin... | 35.169118 | 173 | 0.722611 | [
"model",
"transform"
] |
02b2f4dcc44252845ce97a4817386f3625c7cd80 | 7,956 | hpp | C++ | include/watchdog.hpp | 946336/Watchdog | 4c8a12ba288bc89022071a034344906ce6beedf8 | [
"MIT"
] | 1 | 2019-01-10T02:55:57.000Z | 2019-01-10T02:55:57.000Z | include/watchdog.hpp | 946336/Watchdog | 4c8a12ba288bc89022071a034344906ce6beedf8 | [
"MIT"
] | null | null | null | include/watchdog.hpp | 946336/Watchdog | 4c8a12ba288bc89022071a034344906ce6beedf8 | [
"MIT"
] | 1 | 2019-01-10T02:40:08.000Z | 2019-01-10T02:40:08.000Z | #ifndef WATCHDOG_H
#define WATCHDOG_H
#include <errno.h>
#include <unistd.h>
#include <sys/types.h>
// inotify
#include <sys/inotify.h>
#if WATCHDOG_DEBUG
#include <cstdio>
#endif
#include <functional>
#include <utility>
#include <algorithm>
#include <vector>
#include <map>
#include <set>
#include <flags.hpp>
#in... | 31.078125 | 80 | 0.460156 | [
"vector"
] |
02b4aaaf6f4c85696593440a004b33752f4876aa | 33,700 | cpp | C++ | gui/ctrl/look/button.cpp | r3dl3g/guipp | 3d3179be3022935b46b59f1b988a029abeabfcbf | [
"MIT"
] | null | null | null | gui/ctrl/look/button.cpp | r3dl3g/guipp | 3d3179be3022935b46b59f1b988a029abeabfcbf | [
"MIT"
] | null | null | null | gui/ctrl/look/button.cpp | r3dl3g/guipp | 3d3179be3022935b46b59f1b988a029abeabfcbf | [
"MIT"
] | null | null | null | /**
* @copyright (c) 2016-2021 Ing. Buero Rothfuss
* Riedlinger Str. 8
* 70327 Stuttgart
* Germany
* http://www.rothfuss-web.de
*
* @author <a href="mailto:armin@rothfuss-web.de">Armin Rothfuss</a>
*
* Projec... | 44.57672 | 170 | 0.524332 | [
"solid"
] |
02ba520260d1463c86113a957f1a319532cdfc41 | 2,008 | hpp | C++ | cpp/DataLoader.hpp | MPieter/hero_radar_odometry | 107c1a07b22784fec54c22e5f8bb03251cc9f786 | [
"BSD-3-Clause"
] | 56 | 2021-06-01T11:58:22.000Z | 2022-03-30T13:20:40.000Z | cpp/DataLoader.hpp | MPieter/hero_radar_odometry | 107c1a07b22784fec54c22e5f8bb03251cc9f786 | [
"BSD-3-Clause"
] | 3 | 2021-06-13T15:23:13.000Z | 2021-09-09T23:02:58.000Z | cpp/DataLoader.hpp | MPieter/hero_radar_odometry | 107c1a07b22784fec54c22e5f8bb03251cc9f786 | [
"BSD-3-Clause"
] | 12 | 2021-06-05T00:07:28.000Z | 2022-03-04T04:58:56.000Z | #pragma once
#include <vector>
#include <string>
#include <boost/python.hpp>
#include <boost/python/numpy.hpp>
namespace p = boost::python;
namespace np = boost::python::numpy;
#define CTS350 0
#define CIR204 1
class DataLoader {
public:
DataLoader(const double radar_resolution_, const double cart_resolution_,
... | 30.892308 | 115 | 0.688745 | [
"vector"
] |
02bb3b886fee0a1b3bfa00de252bbf58a024ac85 | 59,981 | cxx | C++ | com/ole32/com/moniker2/classmon.cxx | npocmaka/Windows-Server-2003 | 5c6fe3db626b63a384230a1aa6b92ac416b0765f | [
"Unlicense"
] | 17 | 2020-11-13T13:42:52.000Z | 2021-09-16T09:13:13.000Z | com/ole32/com/moniker2/classmon.cxx | sancho1952007/Windows-Server-2003 | 5c6fe3db626b63a384230a1aa6b92ac416b0765f | [
"Unlicense"
] | 2 | 2020-10-19T08:02:06.000Z | 2020-10-19T08:23:18.000Z | com/ole32/com/moniker2/classmon.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, 1996.
//
// File: classmon.cxx
//
// Contents: Implementation of CClassMoniker
//
// Classes: CClassMoniker
//
// Functions: CreateClassMoniker
//
... | 28.279585 | 93 | 0.415882 | [
"object"
] |
02bd91e05eea28b21e374ad82143217bf0bfbbad | 1,490 | hpp | C++ | include/nbla/utils/im2col.hpp | kodavatimahendra/nnabla | 72009f670af075f17ffca9c809b07d48cca30bd9 | [
"Apache-2.0"
] | 1 | 2021-04-08T00:33:23.000Z | 2021-04-08T00:33:23.000Z | include/nbla/utils/im2col.hpp | kodavatimahendra/nnabla | 72009f670af075f17ffca9c809b07d48cca30bd9 | [
"Apache-2.0"
] | null | null | null | include/nbla/utils/im2col.hpp | kodavatimahendra/nnabla | 72009f670af075f17ffca9c809b07d48cca30bd9 | [
"Apache-2.0"
] | 1 | 2020-08-19T08:32:51.000Z | 2020-08-19T08:32:51.000Z | // Copyright (c) 2017 Sony Corporation. 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 ... | 39.210526 | 75 | 0.696644 | [
"shape"
] |
02bfb1ba2102fd4698cddc66cc82160a371bbb54 | 2,422 | cpp | C++ | rs/test/throw_test.cpp | dymk/rs | b75ab0df5f235ac12ec4da825e6bd6e1fa9e7493 | [
"Apache-2.0"
] | 19 | 2017-05-15T08:20:00.000Z | 2021-12-03T05:58:32.000Z | rs/test/throw_test.cpp | dymk/rs | b75ab0df5f235ac12ec4da825e6bd6e1fa9e7493 | [
"Apache-2.0"
] | null | null | null | rs/test/throw_test.cpp | dymk/rs | b75ab0df5f235ac12ec4da825e6bd6e1fa9e7493 | [
"Apache-2.0"
] | 3 | 2018-01-16T18:07:30.000Z | 2021-06-30T07:33:44.000Z | // Copyright 2017 Per Grön. 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 l... | 30.275 | 75 | 0.657308 | [
"object"
] |
02bfb7232a4d14aef62061aea615357c3f3713db | 6,972 | cpp | C++ | cheat/RenderManager.cpp | aequabit/ayyware-web | de06d0c95ffc926caee654fa6d98c83fe3670534 | [
"MIT"
] | 8 | 2017-06-07T09:55:37.000Z | 2019-01-15T18:59:06.000Z | cheat/RenderManager.cpp | aequabit/ayyware-web | de06d0c95ffc926caee654fa6d98c83fe3670534 | [
"MIT"
] | null | null | null | cheat/RenderManager.cpp | aequabit/ayyware-web | de06d0c95ffc926caee654fa6d98c83fe3670534 | [
"MIT"
] | 2 | 2017-06-08T22:23:08.000Z | 2019-12-25T00:13:05.000Z |
#pragma once
#include "RenderManager.h"
#define _CRT_SECURE_NO_WARNINGS
// Font Instances
namespace Render
{
// Text functions
namespace Fonts
{
DWORD Default;
DWORD Menu;
DWORD MenuBold;
DWORD ayyware;
DWORD ESP;
};
};
// We don't use these anywhere else, no reason for them to be
// available anywh... | 29.417722 | 247 | 0.689616 | [
"render",
"object",
"vector"
] |
c49daa1fe07e08897edbba3f2afc5b34efdce950 | 31,099 | cpp | C++ | source/RootGeoManager.cpp | cxwx/VecGeom | c86c00bd7d4db08f4fc20a625020da329784aaac | [
"ECL-2.0",
"Apache-2.0"
] | 1 | 2020-06-27T18:43:36.000Z | 2020-06-27T18:43:36.000Z | source/RootGeoManager.cpp | cxwx/VecGeom | c86c00bd7d4db08f4fc20a625020da329784aaac | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | source/RootGeoManager.cpp | cxwx/VecGeom | c86c00bd7d4db08f4fc20a625020da329784aaac | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | // This file is part of VecGeom and is distributed under the
// conditions in the file LICENSE.txt in the top directory.
// For the full list of authors see CONTRIBUTORS.txt and `git log`.
/// \file RootGeoManager.cpp
/// \author created by Johannes de Fine Licht, Sandro Wenzel (CERN)
#include "VecGeom/base/Transform... | 40.546284 | 120 | 0.638702 | [
"geometry",
"shape",
"solid"
] |
c4a5605eb31055e25a89bfbb1aff8edd10941a4e | 2,733 | cpp | C++ | src/win.cpp | phillip-h/todo | afb6436ef40d883b838c7c97d541a484dce47f7b | [
"MIT"
] | 17 | 2015-09-21T14:38:26.000Z | 2022-03-09T03:05:46.000Z | src/win.cpp | phillip-h/todo | afb6436ef40d883b838c7c97d541a484dce47f7b | [
"MIT"
] | 2 | 2016-06-15T19:17:01.000Z | 2019-02-10T10:03:22.000Z | src/win.cpp | phillip-h/todo | afb6436ef40d883b838c7c97d541a484dce47f7b | [
"MIT"
] | 6 | 2017-07-15T07:53:36.000Z | 2021-11-06T18:06:20.000Z | #include "win.hpp"
using std::string;
bool Win::colors;
/////////////////////////////////////////////////
// constructor, set position and size variables
// and create the WINDOW* and border
Win::Win(unsigned x, unsigned y, unsigned w, unsigned h,
string name, bool border)
{
this->x = x;
this->y = ... | 19.804348 | 62 | 0.502744 | [
"transform"
] |
c4a5853275f49ce6d130b7ea9663926bc6d91367 | 17,091 | cpp | C++ | libs/rteutils/test/src/RteUtilsTest.cpp | VGRSTM/devtools | 341c442bd8eab69ba0e1b75bf7803caf45edb7b2 | [
"Apache-2.0",
"MIT",
"ECL-2.0",
"BSL-1.0",
"BSD-3-Clause"
] | 2 | 2021-09-17T12:34:32.000Z | 2022-01-13T12:43:04.000Z | libs/rteutils/test/src/RteUtilsTest.cpp | VGRSTM/devtools | 341c442bd8eab69ba0e1b75bf7803caf45edb7b2 | [
"Apache-2.0",
"MIT",
"ECL-2.0",
"BSL-1.0",
"BSD-3-Clause"
] | 32 | 2021-11-18T13:58:59.000Z | 2022-02-25T12:34:44.000Z | libs/rteutils/test/src/RteUtilsTest.cpp | soumeh01/devtools | f78a9dd84eedba43b75ba0f83b40d04dad81dbc9 | [
"Apache-2.0",
"MIT",
"ECL-2.0",
"BSL-1.0",
"BSD-3-Clause"
] | 1 | 2021-11-09T15:12:16.000Z | 2021-11-09T15:12:16.000Z | /*
* Copyright (c) 2020-2021 Arm Limited. All rights reserved.
*
* SPDX-License-Identifier: Apache-2.0
*/
#include "RteUtils.h"
#include "gtest/gtest.h"
using namespace std;
static void CheckVendorMatch(const vector<string>& vendors, bool expect) {
for (auto iter = vendors.cbegin(); iter != vendors.cend() - 1... | 43.159091 | 122 | 0.666316 | [
"vector"
] |
c4a6d0351160d32e455ecdec56bb5cd1d7a16127 | 1,448 | cpp | C++ | src/FE/Parser/Enum.cpp | Oj18/Ethereal | 16a0a167693c27615e5c63044f1c38b5c8d863b2 | [
"BSD-3-Clause"
] | null | null | null | src/FE/Parser/Enum.cpp | Oj18/Ethereal | 16a0a167693c27615e5c63044f1c38b5c8d863b2 | [
"BSD-3-Clause"
] | null | null | null | src/FE/Parser/Enum.cpp | Oj18/Ethereal | 16a0a167693c27615e5c63044f1c38b5c8d863b2 | [
"BSD-3-Clause"
] | null | null | null | /*
Copyright (c) 2019, Electrux
All rights reserved.
Using the BSD 3-Clause license for the project,
main LICENSE file resides in project's root directory.
Please read that file and understand the license terms
before using or altering the project.
*/
#include "Internal.hpp"
#include "../Ethereal.hpp"
stmt_enum... | 26.814815 | 109 | 0.653315 | [
"vector"
] |
c4ab295343ca02ed06fcb5658dc60c41cdfae2d5 | 3,280 | cpp | C++ | groups/btl/btlmt/btlmt_listenoptions.cpp | apaprocki/bde | ba252cb776f92fae082d5d422aa2852a9be46849 | [
"Apache-2.0"
] | 1 | 2021-04-28T13:51:30.000Z | 2021-04-28T13:51:30.000Z | groups/btl/btlmt/btlmt_listenoptions.cpp | apaprocki/bde | ba252cb776f92fae082d5d422aa2852a9be46849 | [
"Apache-2.0"
] | null | null | null | groups/btl/btlmt/btlmt_listenoptions.cpp | apaprocki/bde | ba252cb776f92fae082d5d422aa2852a9be46849 | [
"Apache-2.0"
] | 1 | 2019-06-26T13:28:48.000Z | 2019-06-26T13:28:48.000Z | // btlmt_listenoptions.cpp -*-C++-*-
#include <btlmt_listenoptions.h>
#include <bsls_ident.h>
BSLS_IDENT_RCSID(btlmt_listenoptions_cpp,"$Id$ $CSID$")
#include <bslim_printer.h>
#include <bsl_ios.h>
#include <bsl_ostream.h>
namespace BloombergLP {
namespace btlmt {
... | 30.37037 | 79 | 0.623476 | [
"object"
] |
c4b145b78b8d0e30ca50e6c5e5573d69d2cf5565 | 1,393 | cpp | C++ | src/sql_parser/create_statement.cpp | abhijat/matchboxdb | 77c055690054deb96dffc29499ad99928370ae99 | [
"BSD-2-Clause"
] | 9 | 2021-11-09T13:55:41.000Z | 2022-03-04T05:22:15.000Z | src/sql_parser/create_statement.cpp | abhijat/matchboxdb | 77c055690054deb96dffc29499ad99928370ae99 | [
"BSD-2-Clause"
] | null | null | null | src/sql_parser/create_statement.cpp | abhijat/matchboxdb | 77c055690054deb96dffc29499ad99928370ae99 | [
"BSD-2-Clause"
] | null | null | null | #include "create_statement.h"
#include "field_definition.h"
#include "statement_visitor.h"
#include <utility>
ast::CreateStatement::CreateStatement(
ast::Table table_name,
std::vector<ast::FieldDefinition> field_definitions
) : _table(std::move(table_name)),
_field_definitions(std::move(field_definitions)... | 27.86 | 110 | 0.674803 | [
"vector",
"transform"
] |
c4b535eb66e3361658560039bccfb1adb1e7768a | 9,529 | cpp | C++ | mc_rtc_rviz_panel/src/SchemaWidget.cpp | anastasiabolotnikova/mc_rtc_ros | 86c82c9e1e0b29ba9614106438436cd6c7f8f612 | [
"BSD-2-Clause"
] | null | null | null | mc_rtc_rviz_panel/src/SchemaWidget.cpp | anastasiabolotnikova/mc_rtc_ros | 86c82c9e1e0b29ba9614106438436cd6c7f8f612 | [
"BSD-2-Clause"
] | null | null | null | mc_rtc_rviz_panel/src/SchemaWidget.cpp | anastasiabolotnikova/mc_rtc_ros | 86c82c9e1e0b29ba9614106438436cd6c7f8f612 | [
"BSD-2-Clause"
] | null | null | null | /*
* Copyright 2016-2019 CNRS-UM LIRMM, CNRS-AIST JRL
*/
#include "SchemaWidget.h"
#include "FormElement.h"
#include "FormWidget.h"
#include <mc_rtc/logging.h>
#include <boost/filesystem.hpp>
namespace bfs = boost::filesystem;
namespace mc_rtc_rviz
{
namespace
{
struct Schema;
using SchemaStore = std::map<std... | 31.345395 | 118 | 0.583587 | [
"object",
"vector"
] |
c4bb0d2ec43d1d073540d71890775fbe67ffd415 | 4,035 | cpp | C++ | wrappers/opencv/latency-tool/rs-latency-tool.cpp | seagull1993/librealsense | 18cf36775c16efd1f727b656c7e88a928a53a427 | [
"Apache-2.0"
] | 7 | 2018-06-05T01:46:57.000Z | 2020-02-28T10:30:04.000Z | wrappers/opencv/latency-tool/rs-latency-tool.cpp | seagull1993/librealsense | 18cf36775c16efd1f727b656c7e88a928a53a427 | [
"Apache-2.0"
] | 6 | 2018-06-17T19:28:03.000Z | 2021-09-09T14:29:25.000Z | wrappers/opencv/latency-tool/rs-latency-tool.cpp | seagull1993/librealsense | 18cf36775c16efd1f727b656c7e88a928a53a427 | [
"Apache-2.0"
] | 4 | 2018-07-17T17:49:40.000Z | 2019-09-01T00:21:12.000Z | // License: Apache 2.0. See LICENSE file in root directory.
// Copyright(c) 2017 Intel Corporation. All Rights Reserved.
#include "latency-detector.h"
// This demo is presenting one way to estimate latency without access to special equipment
// See ReadMe.md for more information
int main(int argc, char * argv[]) try
... | 32.804878 | 140 | 0.6057 | [
"render"
] |
c4cb963838c1727327120f6c1ca70909b37de9e6 | 1,384 | cpp | C++ | Biconex/main.cpp | rusucosmin/Cplusplus | 0e95cd01d20b22404aa4166c71d5a9e834a5a21b | [
"MIT"
] | 11 | 2015-08-29T13:41:22.000Z | 2020-01-08T20:34:06.000Z | Biconex/main.cpp | rusucosmin/Cplusplus | 0e95cd01d20b22404aa4166c71d5a9e834a5a21b | [
"MIT"
] | null | null | null | Biconex/main.cpp | rusucosmin/Cplusplus | 0e95cd01d20b22404aa4166c71d5a9e834a5a21b | [
"MIT"
] | 5 | 2016-01-20T18:17:01.000Z | 2019-10-30T11:57:15.000Z | #include <fstream>
#include <vector>
#include <stack>
#include <set>
using namespace std;
ifstream fin("biconex.in");
ofstream fout("biconex.out");
const int maxn = 100005;
int n, m, dflevel[maxn], lowlink[maxn];
vector <int> g[maxn];
set <set<int> > bcc;
stack <pair<int, int> > st;
inline void extractbcc(int x, i... | 21.625 | 60 | 0.483382 | [
"vector"
] |
c4cc81bb688be7ea3dccffbec976e4f04308d823 | 811 | cpp | C++ | MemcpyBenchmarks/main.cpp | pauldoo/scratch | 1c8703d8b8e5cc5a026bfd5f0b036b9632faf161 | [
"0BSD"
] | null | null | null | MemcpyBenchmarks/main.cpp | pauldoo/scratch | 1c8703d8b8e5cc5a026bfd5f0b036b9632faf161 | [
"0BSD"
] | 4 | 2021-08-31T22:03:39.000Z | 2022-02-19T07:12:05.000Z | MemcpyBenchmarks/main.cpp | pauldoo/scratch | 1c8703d8b8e5cc5a026bfd5f0b036b9632faf161 | [
"0BSD"
] | 1 | 2022-02-23T13:46:49.000Z | 2022-02-23T13:46:49.000Z | #include <cstdlib>
#include <ctime>
#include <iostream>
#include <vector>
int main(void)
{
const int bufferSizeInMegabytes = 50;
const int repeats = 200;
const std::vector<char> source(bufferSizeInMegabytes * 1024 * 1024);
std::vector<char> destination(bufferSizeInMegabytes * 1024 * 1024);
const cl... | 30.037037 | 130 | 0.669544 | [
"vector"
] |
c4da80e327d366b0606ffc5d208cfdb49f770dd2 | 2,066 | cpp | C++ | CoverTree/src/driver_main.cpp | alexandersvozil/DynamicKCenterClustering | 6c30815558965a49689cdfbde4b603cd2b6841a6 | [
"MIT"
] | 1 | 2021-03-10T18:12:20.000Z | 2021-03-10T18:12:20.000Z | CoverTree/src/driver_main.cpp | alexandersvozil/DynamicKCenterClustering | 6c30815558965a49689cdfbde4b603cd2b6841a6 | [
"MIT"
] | null | null | null | CoverTree/src/driver_main.cpp | alexandersvozil/DynamicKCenterClustering | 6c30815558965a49689cdfbde4b603cd2b6841a6 | [
"MIT"
] | null | null | null | #include <chrono>
#include <iostream>
#include <exception>
#include <ratio>
#include <random>
#include <unordered_set>
#include <limits>
#include <future>
#include <thread>
#include <string>
#include "math.h"
#include "cover_tree.h"
#include "updates.h"
#include "algorithm.h"
#include "data_utils.h"
int main(int a... | 28.694444 | 266 | 0.650048 | [
"vector"
] |
c4e8271c43fb8c779b1d54ccdd15b9ce075396a0 | 4,672 | cpp | C++ | src/test/benchmark/hyproBenchmark/box/affineTransformation.cpp | hypro/hypro | 52ae4ffe0a8427977fce8d7979fffb82a1bc28f6 | [
"MIT"
] | 22 | 2016-10-05T12:19:01.000Z | 2022-01-23T09:14:41.000Z | src/test/benchmark/hyproBenchmark/box/affineTransformation.cpp | hypro/hypro | 52ae4ffe0a8427977fce8d7979fffb82a1bc28f6 | [
"MIT"
] | 23 | 2017-05-08T15:02:39.000Z | 2021-11-03T16:43:39.000Z | src/test/benchmark/hyproBenchmark/box/affineTransformation.cpp | hypro/hypro | 52ae4ffe0a8427977fce8d7979fffb82a1bc28f6 | [
"MIT"
] | 12 | 2017-06-07T23:51:09.000Z | 2022-01-04T13:06:21.000Z | #include "benchmarkBox.h"
namespace benchmark {
namespace box {
Results<std::size_t> affineTransformation(const Settings& settings) {
Results<std::size_t> ress;
hypro::Box<::benchmark::Number> box;
// benchmark against PPL
#ifdef HYPRO_USE_PPL
using pplItv = Parma_Polyhedra_Library::... | 47.191919 | 150 | 0.514555 | [
"vector"
] |
c4ecd76584b8e7a7b17f7dc4b4201054ba5fb1ad | 15,307 | cpp | C++ | Tools/FontWithFeatures/FontWithFeatures/main.cpp | jacadcaps/webkitty | 9aebd2081349f9a7b5d168673c6f676a1450a66d | [
"BSD-2-Clause"
] | 6 | 2021-07-05T16:09:39.000Z | 2022-03-06T22:44:42.000Z | Tools/FontWithFeatures/FontWithFeatures/main.cpp | jacadcaps/webkitty | 9aebd2081349f9a7b5d168673c6f676a1450a66d | [
"BSD-2-Clause"
] | 7 | 2022-03-15T13:25:39.000Z | 2022-03-15T13:25:44.000Z | Tools/FontWithFeatures/FontWithFeatures/main.cpp | jacadcaps/webkitty | 9aebd2081349f9a7b5d168673c6f676a1450a66d | [
"BSD-2-Clause"
] | null | null | null | /*
* Copyright (C) 2015 Apple Inc. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1. Redistributions of source code must retain the above copyright
* notice, this list of conditions a... | 66.842795 | 497 | 0.769387 | [
"vector"
] |
c4f3d5c3b2f2626c4baf637db16efcef287a3752 | 1,814 | cc | C++ | smallest-k-lcci.cc | ArCan314/leetcode | 8e22790dc2f34f5cf2892741ff4e5d492bb6d0dd | [
"MIT"
] | null | null | null | smallest-k-lcci.cc | ArCan314/leetcode | 8e22790dc2f34f5cf2892741ff4e5d492bb6d0dd | [
"MIT"
] | null | null | null | smallest-k-lcci.cc | ArCan314/leetcode | 8e22790dc2f34f5cf2892741ff4e5d492bb6d0dd | [
"MIT"
] | null | null | null | #include <vector>
#include <algorithm>
#include <queue>
#include <functional>
class Solution
{
public:
std::vector<int> smallestK(std::vector<int> &arr, int k)
{
if (k == 0)
return {};
return smallestKLinearSelect(arr, k);
}
std::vector<int> smallestKSort(std::vector<int> &... | 23.558442 | 72 | 0.466924 | [
"vector"
] |
c4f7071ce680d8109f874617c040a2ec67ee2ae8 | 10,610 | cpp | C++ | src/bitwise-cpp/main_opt_cpu_3.cpp | rogerdahl/cuda-bitwise | 4fc1576ecafc6521cc02b5ffd5a1ae7e6feb1ea0 | [
"MIT"
] | null | null | null | src/bitwise-cpp/main_opt_cpu_3.cpp | rogerdahl/cuda-bitwise | 4fc1576ecafc6521cc02b5ffd5a1ae7e6feb1ea0 | [
"MIT"
] | 1 | 2018-02-22T02:14:41.000Z | 2018-02-22T04:07:37.000Z | src/bitwise-cpp/main_opt_cpu_3.cpp | rogerdahl/cuda-bitwise | 4fc1576ecafc6521cc02b5ffd5a1ae7e6feb1ea0 | [
"MIT"
] | null | null | null | // Style: http://geosoft.no/development/cppstyle.html
#include <chrono>
#include <cmath>
#include <fstream>
#include <iostream>
#include <vector>
#include <omp.h>
#include <cppformat/format.h>
#include "int_types.h"
using namespace std;
using namespace fmt;
// 8 operations
enum Operation { LD_A, LD_B, LD_C, LD_D,... | 38.442029 | 149 | 0.596795 | [
"vector"
] |
f205df50e35c8436c5999c40ab1cc07dcf8d0a66 | 383 | cpp | C++ | opencl-opengl-framework/Camera.cpp | BrassLion/opengl-opencl-framework | 5b515cf80a3af659c39c238cb810a5ef738340b2 | [
"MIT"
] | 1 | 2021-06-06T12:14:08.000Z | 2021-06-06T12:14:08.000Z | opencl-opengl-framework/Camera.cpp | BrassLion/opengl-opencl-framework | 5b515cf80a3af659c39c238cb810a5ef738340b2 | [
"MIT"
] | null | null | null | opencl-opengl-framework/Camera.cpp | BrassLion/opengl-opencl-framework | 5b515cf80a3af659c39c238cb810a5ef738340b2 | [
"MIT"
] | 1 | 2019-02-18T13:09:43.000Z | 2019-02-18T13:09:43.000Z | //
// Camera.cpp
// OpenGLTest
//
// Created by Samuel Hall on 24/07/2016.
//
//
#include <iostream>
#include "Camera.hpp"
glm::mat4 Camera::get_projection_matrix()
{
return m_projection;
}
glm::mat4 Camera::get_view_matrix()
{
return m_view;
}
void Camera::update_model_matrix()
{
Object::update_mod... | 13.206897 | 42 | 0.665796 | [
"object"
] |
f20f73dc21a48d6f2c0e85f5bc4f4554de61f8a6 | 721 | cpp | C++ | tools/punkty_wspolliniowe.cpp | marcel2012/algorytmy | 03582793877bc4dfed3847b1bf9f456186d22e11 | [
"MIT"
] | null | null | null | tools/punkty_wspolliniowe.cpp | marcel2012/algorytmy | 03582793877bc4dfed3847b1bf9f456186d22e11 | [
"MIT"
] | null | null | null | tools/punkty_wspolliniowe.cpp | marcel2012/algorytmy | 03582793877bc4dfed3847b1bf9f456186d22e11 | [
"MIT"
] | null | null | null | #include <cstdio>
#include <vector>
inline double deg(int x1,int y1,int x2,int y2,int x3,int y3)
{
return x1 * y2 + x2 * y3 + x3 * y1 - y2 * x3 - y3 * x1 - y1 * x2;
}
int main()
{
int n;
scanf("%d",&n);
std::vector <std::pair<int,int> > points(n);
for(int i=0; i<n; i++)
{
scanf("%d %d",&... | 27.730769 | 142 | 0.479889 | [
"vector"
] |
f20f76389f69ab26e54b2fb1c3b755eb94772e2b | 599 | hpp | C++ | Server/include/commands/today.hpp | radu781/Train-manager | 74f41dc7f3a61df56f670956b7d65d89e956ee4d | [
"MIT"
] | null | null | null | Server/include/commands/today.hpp | radu781/Train-manager | 74f41dc7f3a61df56f670956b7d65d89e956ee4d | [
"MIT"
] | null | null | null | Server/include/commands/today.hpp | radu781/Train-manager | 74f41dc7f3a61df56f670956b7d65d89e956ee4d | [
"MIT"
] | null | null | null | #pragma once
#include "pc.h"
#include "command.hpp"
class Today
: public Command
{
public:
Today(const Command *other, const std::vector<std::string> *command);
std::string execute() override;
std::string undo() override;
private:
/**
* @brief Split the command member into t... | 24.958333 | 94 | 0.621035 | [
"vector"
] |
f210e8a812f253ca2dad7337114a96b5b4b4c6c2 | 2,156 | hpp | C++ | QuantExt/qle/models/cpicapfloorhelper.hpp | mrslezak/Engine | c46ff278a2c5f4162db91a7ab500a0bb8cef7657 | [
"BSD-3-Clause"
] | 335 | 2016-10-07T16:31:10.000Z | 2022-03-02T07:12:03.000Z | QuantExt/qle/models/cpicapfloorhelper.hpp | mrslezak/Engine | c46ff278a2c5f4162db91a7ab500a0bb8cef7657 | [
"BSD-3-Clause"
] | 59 | 2016-10-31T04:20:24.000Z | 2022-01-03T16:39:57.000Z | QuantExt/qle/models/cpicapfloorhelper.hpp | mrslezak/Engine | c46ff278a2c5f4162db91a7ab500a0bb8cef7657 | [
"BSD-3-Clause"
] | 180 | 2016-10-08T14:23:50.000Z | 2022-03-28T10:43:05.000Z | /*
Copyright (C) 2017 Quaternion Risk Management Ltd
All rights reserved.
This file is part of ORE, a free-software/open-source library
for transparent pricing and risk analysis - http://opensourcerisk.org
ORE is free software: you can redistribute it and/or modify it
under the terms of the Modified BSD License... | 35.344262 | 114 | 0.775046 | [
"model"
] |
f219829403d4bce98238ace8b4db04d228bf7098 | 35,532 | cpp | C++ | include/CombBLAS/SpParHelper.cpp | vishalbelsare/CombBLAS | 426f6be0b29831025cdcacc1f8f69e3520bfb0ff | [
"BSD-3-Clause-LBNL"
] | 22 | 2020-08-14T19:14:13.000Z | 2022-02-05T20:14:59.000Z | include/CombBLAS/SpParHelper.cpp | vishalbelsare/CombBLAS | 426f6be0b29831025cdcacc1f8f69e3520bfb0ff | [
"BSD-3-Clause-LBNL"
] | 8 | 2020-10-09T23:23:36.000Z | 2021-08-05T20:35:18.000Z | include/CombBLAS/SpParHelper.cpp | vishalbelsare/CombBLAS | 426f6be0b29831025cdcacc1f8f69e3520bfb0ff | [
"BSD-3-Clause-LBNL"
] | 8 | 2020-12-04T09:10:06.000Z | 2022-01-04T15:37:59.000Z | /****************************************************************/
/* Parallel Combinatorial BLAS Library (for Graph Computations) */
/* version 1.6 -------------------------------------------------*/
/* date: 6/15/2017 ---------------------------------------------*/
/* authors: Ariful Azad, Aydin Buluc --------------... | 37.245283 | 222 | 0.655691 | [
"object",
"vector"
] |
35f832161eb6cff169f8eed4b160a322cfc4b6f3 | 1,432 | hxx | C++ | src/Options.hxx | casavi/potoo | f40fc04624726907b32ff33e357ad14015c99778 | [
"MIT"
] | 5 | 2016-07-08T09:49:43.000Z | 2020-03-28T23:32:17.000Z | src/Options.hxx | casavi/potoo | f40fc04624726907b32ff33e357ad14015c99778 | [
"MIT"
] | 1 | 2017-08-03T17:48:02.000Z | 2020-05-06T07:57:23.000Z | src/Options.hxx | casavi/potoo | f40fc04624726907b32ff33e357ad14015c99778 | [
"MIT"
] | 3 | 2016-10-13T08:27:38.000Z | 2019-05-14T13:38:47.000Z |
#ifndef CONVERTER_OPTIONS_HXX
#define CONVERTER_OPTIONS_HXX
#include <vector>
#include <string>
#include <memory>
#include <boost/optional.hpp>
/**
* Helper struct for all options included in the supplied config file.
*/
struct Options {
/**
* One set of crop settings:
* - type: the type of the area... | 23.866667 | 78 | 0.62081 | [
"vector"
] |
35fd93ec3d95c1bc7f2ab1b1d895e4ba47e21e85 | 348 | hpp | C++ | sources/_headers_std.hpp | unvrtool/unvrtool | 1f9601f1b3f7db16244cec6064e648a3df45d2f6 | [
"BSD-3-Clause"
] | null | null | null | sources/_headers_std.hpp | unvrtool/unvrtool | 1f9601f1b3f7db16244cec6064e648a3df45d2f6 | [
"BSD-3-Clause"
] | null | null | null | sources/_headers_std.hpp | unvrtool/unvrtool | 1f9601f1b3f7db16244cec6064e648a3df45d2f6 | [
"BSD-3-Clause"
] | null | null | null | //
// Copyright (c) 2020, Jan Ove Haaland, all rights reserved.
//
// This source code is licensed under the BSD-style license found in the
// LICENSE file in the root directory of this source tree.
#pragma once
#include <vector>
#include <string>
#include <fstream>
#include <sstream>
#include <iostream>
#include <fi... | 21.75 | 72 | 0.732759 | [
"vector"
] |
c40258d61462e45ae82e1941c16ccab43830431f | 2,028 | hpp | C++ | boost/geometry/extensions/strategies/buffer.hpp | ballisticwhisper/boost | f72119ab640b564c4b983bd457457046b52af9ee | [
"BSL-1.0"
] | 2 | 2015-01-02T14:24:56.000Z | 2015-01-02T14:25:17.000Z | boost/geometry/extensions/strategies/buffer.hpp | ballisticwhisper/boost | f72119ab640b564c4b983bd457457046b52af9ee | [
"BSL-1.0"
] | 2 | 2019-01-13T23:45:51.000Z | 2019-02-03T08:13:26.000Z | boost/geometry/extensions/strategies/buffer.hpp | ballisticwhisper/boost | f72119ab640b564c4b983bd457457046b52af9ee | [
"BSL-1.0"
] | 1 | 2016-05-29T13:41:15.000Z | 2016-05-29T13:41:15.000Z | // Boost.Geometry (aka GGL, Generic Geometry Library)
// Copyright (c) 2007-2012 Barend Gehrels, Amsterdam, the Netherlands.
// Copyright (c) 2008-2012 Bruno Lalande, Paris, France.
// Copyright (c) 2009-2012 Mateusz Loskot, London, UK.
// Parts of Boost.Geometry are redesigned from Geodan's Geographic Library
// (ge... | 28.971429 | 79 | 0.717949 | [
"geometry"
] |
c4040d9ac1c0e721e90bbc40ca6c6bf95916b3fc | 592 | cpp | C++ | Il2Native.Logic/NativeImplementations/System.Private.CoreLib/System/Runtime/Serialization/FormatterServices.cpp | Vinay1705/cs2cpp | d07d3206fb57edb959df8536562909a4d516e359 | [
"MIT"
] | 192 | 2016-03-23T04:33:24.000Z | 2022-03-28T14:41:06.000Z | Il2Native.Logic/NativeImplementations/System.Private.CoreLib/System/Runtime/Serialization/FormatterServices.cpp | Vinay1705/cs2cpp | d07d3206fb57edb959df8536562909a4d516e359 | [
"MIT"
] | 9 | 2017-03-08T14:45:16.000Z | 2021-09-06T09:28:47.000Z | Il2Native.Logic/NativeImplementations/System.Private.CoreLib/System/Runtime/Serialization/FormatterServices.cpp | Vinay1705/cs2cpp | d07d3206fb57edb959df8536562909a4d516e359 | [
"MIT"
] | 56 | 2016-03-22T20:37:08.000Z | 2022-03-28T12:20:47.000Z | #include "System.Private.CoreLib.h"
namespace CoreLib { namespace System { namespace Runtime { namespace Serialization {
namespace _ = ::CoreLib::System::Runtime::Serialization;
// Method : System.Runtime.Serialization.FormatterServices.nativeGetUninitializedObject(System.RuntimeType)
object* FormatterSer... | 37 | 111 | 0.744932 | [
"object"
] |
c4077bdc756e78a941ee6dd5048f37437acd8268 | 20,716 | cpp | C++ | read_WDS_catalog.cpp | jlprieur/Pisco1 | 7dc54ab240b1c353cc14ba578b2fce3113216832 | [
"MIT"
] | null | null | null | read_WDS_catalog.cpp | jlprieur/Pisco1 | 7dc54ab240b1c353cc14ba578b2fce3113216832 | [
"MIT"
] | null | null | null | read_WDS_catalog.cpp | jlprieur/Pisco1 | 7dc54ab240b1c353cc14ba578b2fce3113216832 | [
"MIT"
] | null | null | null | /************************************************************************
* "raed_WDS_catalog.c"
* To retrieve data from the WDS catalog
*
* JLP
* Version 20/11/2009
*************************************************************************/
#include <stdio.h>
#include <stdlib.h> /* exit() */
#in... | 36.730496 | 99 | 0.547982 | [
"object"
] |
c40d359d76eb173f137948dea65a5ee17f2e8fa9 | 3,142 | hpp | C++ | Runtime/World/CScriptPlayerActor.hpp | henriquegemignani/urde | 78185e682e16c3e1b41294d92f2841357272acb2 | [
"MIT"
] | 1 | 2020-06-09T07:49:34.000Z | 2020-06-09T07:49:34.000Z | Runtime/World/CScriptPlayerActor.hpp | henriquegemignani/urde | 78185e682e16c3e1b41294d92f2841357272acb2 | [
"MIT"
] | 6 | 2020-06-09T07:49:45.000Z | 2021-04-06T22:19:57.000Z | Runtime/World/CScriptPlayerActor.hpp | henriquegemignani/urde | 78185e682e16c3e1b41294d92f2841357272acb2 | [
"MIT"
] | null | null | null | #pragma once
#include <memory>
#include <string_view>
#include "Runtime/CPlayerState.hpp"
#include "Runtime/RetroTypes.hpp"
#include "Runtime/World/CScriptActor.hpp"
namespace urde {
class CScriptPlayerActor : public CScriptActor {
CAnimRes x2e8_suitRes;
CPlayerState::EBeamId x304_beam;
CPlayerState::EPlayerSu... | 44.885714 | 113 | 0.746976 | [
"render"
] |
c412050c06bc2ecc6164625f6b0c52cbdeed3a19 | 6,436 | cpp | C++ | Engine/source/EtRendering/GraphicsTypes/TextureData.cpp | logzero/ETEngine | f766f1a0d702b826b94023edbf64da83dbcf7bc6 | [
"MIT"
] | null | null | null | Engine/source/EtRendering/GraphicsTypes/TextureData.cpp | logzero/ETEngine | f766f1a0d702b826b94023edbf64da83dbcf7bc6 | [
"MIT"
] | null | null | null | Engine/source/EtRendering/GraphicsTypes/TextureData.cpp | logzero/ETEngine | f766f1a0d702b826b94023edbf64da83dbcf7bc6 | [
"MIT"
] | null | null | null | #include "stdafx.h"
#include "TextureData.h"
#include <stb/stb_image.h>
#include <stb/stb_image_resize.h>
#include <EtCore/Reflection/Registration.h>
#include <EtRendering/GlobalRenderingSystems/GlobalRenderingSystems.h>
namespace et {
namespace render {
//==============
// Texture Data
//==============
//----... | 27.156118 | 151 | 0.699347 | [
"render",
"object",
"vector"
] |
c41666270ba39cb2ec023dd48135d6273dbc49af | 1,657 | cpp | C++ | aws-cpp-sdk-kinesisanalyticsv2/source/model/S3ContentLocation.cpp | lintonv/aws-sdk-cpp | 15e19c265ffce19d2046b18aa1b7307fc5377e58 | [
"Apache-2.0"
] | 1 | 2022-02-12T08:09:30.000Z | 2022-02-12T08:09:30.000Z | aws-cpp-sdk-kinesisanalyticsv2/source/model/S3ContentLocation.cpp | lintonv/aws-sdk-cpp | 15e19c265ffce19d2046b18aa1b7307fc5377e58 | [
"Apache-2.0"
] | 1 | 2021-10-14T16:57:00.000Z | 2021-10-18T10:47:24.000Z | aws-cpp-sdk-kinesisanalyticsv2/source/model/S3ContentLocation.cpp | ravindra-wagh/aws-sdk-cpp | 7d5ff01b3c3b872f31ca98fb4ce868cd01e97696 | [
"Apache-2.0"
] | 1 | 2021-12-30T04:25:33.000Z | 2021-12-30T04:25:33.000Z | /**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/kinesisanalyticsv2/model/S3ContentLocation.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <utility>
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
namespac... | 18.411111 | 69 | 0.729632 | [
"model"
] |
c437c46bf7fa45ff66ad6f9ec7591ed5d344e156 | 3,205 | hpp | C++ | src/Distinct.hpp | sebrockm/Linqpp | 6689f6cbb076b30f260ef4cee2dd657cd6b8cc36 | [
"MIT"
] | 7 | 2017-08-09T06:12:15.000Z | 2021-09-23T01:00:51.000Z | src/Distinct.hpp | sebrockm/Linqpp | 6689f6cbb076b30f260ef4cee2dd657cd6b8cc36 | [
"MIT"
] | null | null | null | src/Distinct.hpp | sebrockm/Linqpp | 6689f6cbb076b30f260ef4cee2dd657cd6b8cc36 | [
"MIT"
] | null | null | null | #include "From.hpp"
#include <algorithm>
#include <memory>
#include <set>
#include <unordered_set>
#include <vector>
namespace Linqpp
{
template <class InputIterator>
auto From(InputIterator first, InputIterator last);
template <class InputIterator, class LessThanComparer>
auto Distinct(InputIterator... | 33.736842 | 175 | 0.61248 | [
"vector"
] |
c4411d3362cb274a2621c71a4b3f019dd6e47661 | 1,397 | cc | C++ | cpp/merge_contacts.cc | powernit/epicode | e81d4387d2ae442d21631dfc958690d424e1d84d | [
"MIT"
] | 258 | 2016-07-18T03:28:15.000Z | 2021-12-05T09:08:44.000Z | cpp/merge_contacts.cc | powernit/epicode | e81d4387d2ae442d21631dfc958690d424e1d84d | [
"MIT"
] | 7 | 2016-08-13T22:12:29.000Z | 2022-02-25T17:50:11.000Z | cpp/merge_contacts.cc | powernit/epicode | e81d4387d2ae442d21631dfc958690d424e1d84d | [
"MIT"
] | 154 | 2016-07-18T06:29:24.000Z | 2021-09-20T18:33:05.000Z | // Copyright (c) 2015 Elements of Programming Interviews. All rights reserved.
#include <algorithm>
#include <cassert>
#include <string>
#include <unordered_set>
#include <vector>
using std::hash;
using std::string;
using std::unordered_set;
using std::vector;
// @include
struct ContactList {
// Equal function for... | 27.392157 | 78 | 0.649964 | [
"vector"
] |
c44ebeaf2082b1b854e114aff04f5991139ac2d6 | 16,540 | cpp | C++ | BufferUploads/MemoryManagement.cpp | djewsbury/XLE | 7806e4b5c9de5631c94c2020f6adcd4bd8e3d91e | [
"MIT"
] | 3 | 2015-12-04T09:16:53.000Z | 2021-05-28T23:22:49.000Z | BufferUploads/MemoryManagement.cpp | djewsbury/XLE | 7806e4b5c9de5631c94c2020f6adcd4bd8e3d91e | [
"MIT"
] | null | null | null | BufferUploads/MemoryManagement.cpp | djewsbury/XLE | 7806e4b5c9de5631c94c2020f6adcd4bd8e3d91e | [
"MIT"
] | 2 | 2015-03-03T05:32:39.000Z | 2015-12-04T09:16:54.000Z | // Copyright 2015 XLGAMES Inc.
//
// Distributed under the MIT License (See
// accompanying file "LICENSE" or the website
// http://www.opensource.org/licenses/mit-license.php)
#include "MemoryManagement.h"
#include "../Core/Prefix.h"
#include "../Utility/MemoryUtils.h"
#include "../Utility/PtrUtils.h"
#include <algor... | 46.201117 | 295 | 0.493289 | [
"vector"
] |
c461e97dbe3293a2f00344ca4b464c9c0f642611 | 10,113 | cpp | C++ | engine/source/resources/AssimpSceneLoader.cpp | lechkulina/RealmsOfSteel | adeb53295abfa236a273c2641f3f9f4d4c6110e1 | [
"Apache-2.0"
] | null | null | null | engine/source/resources/AssimpSceneLoader.cpp | lechkulina/RealmsOfSteel | adeb53295abfa236a273c2641f3f9f4d4c6110e1 | [
"Apache-2.0"
] | null | null | null | engine/source/resources/AssimpSceneLoader.cpp | lechkulina/RealmsOfSteel | adeb53295abfa236a273c2641f3f9f4d4c6110e1 | [
"Apache-2.0"
] | null | null | null | /*
* Copyright (c) 2017 Lech Kulina
*
* This file is part of the Realms Of Steel.
* For conditions of distribution and use, see copyright details in the LICENSE file.
*/
#include <application/Logger.h>
#include "AssimpIOSystem.h"
#include "AssimpSceneLoader.h"
ros::AssimpSceneLoader::AssimpSceneLoader()
: imp... | 36.774545 | 156 | 0.633244 | [
"mesh"
] |
c4687018ac707f64eb61e8dd5ba188010c5902f1 | 48,763 | cpp | C++ | reporting/crashsender/FilePreviewCtrl.cpp | AnotherFoxGuy/crashrpt2 | 0c6ca1054fb7883f092a7c9bae1d5cd44467e33a | [
"BSD-3-Clause"
] | 37 | 2017-06-01T23:38:05.000Z | 2020-11-06T02:29:47.000Z | reporting/crashsender/FilePreviewCtrl.cpp | AnotherFoxGuy/crashrpt2 | 0c6ca1054fb7883f092a7c9bae1d5cd44467e33a | [
"BSD-3-Clause"
] | 11 | 2017-07-26T01:22:37.000Z | 2021-01-08T07:27:02.000Z | reporting/crashsender/FilePreviewCtrl.cpp | AnotherFoxGuy/crashrpt2 | 0c6ca1054fb7883f092a7c9bae1d5cd44467e33a | [
"BSD-3-Clause"
] | 20 | 2018-01-07T00:13:08.000Z | 2021-01-08T07:54:03.000Z | /*************************************************************************************
This file is a part of CrashRpt library.
Copyright (c) 2003-2013 The CrashRpt project authors. All Rights Reserved.
Use of this source code is governed by a BSD-style license
that can be found in the License.txt file in the root of ... | 23.409986 | 119 | 0.609417 | [
"object"
] |
c46875c7dd108e5e568ef74ee3bf47256ddbbc1e | 14,484 | hpp | C++ | src/main/cpp/cn/edu/SUSTech/YeCanming/Algs/DivideAndConquer/ClosestPoint.hpp | 2catycm/P_Algorithm_Design_and_Analysis_cpp | d1678d4db6f59a11215a8c790c2852bf9ad852dd | [
"MulanPSL-1.0"
] | null | null | null | src/main/cpp/cn/edu/SUSTech/YeCanming/Algs/DivideAndConquer/ClosestPoint.hpp | 2catycm/P_Algorithm_Design_and_Analysis_cpp | d1678d4db6f59a11215a8c790c2852bf9ad852dd | [
"MulanPSL-1.0"
] | null | null | null | src/main/cpp/cn/edu/SUSTech/YeCanming/Algs/DivideAndConquer/ClosestPoint.hpp | 2catycm/P_Algorithm_Design_and_Analysis_cpp | d1678d4db6f59a11215a8c790c2852bf9ad852dd | [
"MulanPSL-1.0"
] | null | null | null | //
// Created by 叶璨铭 on 2022/3/31.
//
#pragma once
#include "BinarySearch.hpp"
#include <algorithm>
#include <array>
#include <cassert>
#include <cmath>
#include <limits>
#include <vector>
namespace cn::edu::SUSTech::YeCanming::Algs::DivideAndConquer {
namespace ThisPackage = cn::edu::SUSTech::YeCanming::Algs::Div... | 53.25 | 145 | 0.540389 | [
"vector"
] |
c46b8200529c5069d8332d3bc1a746d7ee261735 | 1,116 | hpp | C++ | src/stan/math/prim/mat/fun/num_elements.hpp | alashworth/stan-monorepo | 75596bc1f860ededd7b3e9ae9002aea97ee1cd46 | [
"BSD-3-Clause"
] | 1 | 2019-09-06T15:53:17.000Z | 2019-09-06T15:53:17.000Z | src/stan/math/prim/mat/fun/num_elements.hpp | alashworth/stan-monorepo | 75596bc1f860ededd7b3e9ae9002aea97ee1cd46 | [
"BSD-3-Clause"
] | 8 | 2019-01-17T18:51:16.000Z | 2019-01-17T18:51:39.000Z | src/stan/math/prim/mat/fun/num_elements.hpp | alashworth/stan-monorepo | 75596bc1f860ededd7b3e9ae9002aea97ee1cd46 | [
"BSD-3-Clause"
] | null | null | null | #ifndef STAN_MATH_PRIM_MAT_FUN_NUM_ELEMENTS_HPP
#define STAN_MATH_PRIM_MAT_FUN_NUM_ELEMENTS_HPP
#include <stan/math/prim/mat/fun/Eigen.hpp>
#include <vector>
namespace stan {
namespace math {
/**
* Returns 1, the number of elements in a primitive type.
*
* @param x Argument of primitive type.
* @ret... | 22.32 | 64 | 0.670251 | [
"vector"
] |
c46c93d799c6641a01deae57cc3f1a8077b5d3ac | 751 | cpp | C++ | POJ/2739/12870385_AC_157ms_708kB.cpp | BakaErii/ACM_Collection | d368b15c7f1c84472424d5e61e5ebc667f589025 | [
"WTFPL"
] | null | null | null | POJ/2739/12870385_AC_157ms_708kB.cpp | BakaErii/ACM_Collection | d368b15c7f1c84472424d5e61e5ebc667f589025 | [
"WTFPL"
] | null | null | null | POJ/2739/12870385_AC_157ms_708kB.cpp | BakaErii/ACM_Collection | d368b15c7f1c84472424d5e61e5ebc667f589025 | [
"WTFPL"
] | null | null | null | /**
* @author Moe_Sakiya sakiya@tun.moe
* @date 2018-01-18 23:24:09
*
*/
#include <iostream>
#include <string>
#include <algorithm>
#include <set>
#include <map>
#include <vector>
#include <stack>
#include <queue>
#include <cstdio>
#include <cstring>
#include <cstdlib>
#include <cmath>
using namespace st... | 15.645833 | 40 | 0.505992 | [
"vector"
] |
c47192af5bf765e2d276992d6419b49a0e023262 | 8,847 | hpp | C++ | StringUtility.hpp | Atlan522/cpp-lib4 | 2ef5174e86b3db797734a4832e9aa60e9fc9ac60 | [
"Apache-2.0"
] | null | null | null | StringUtility.hpp | Atlan522/cpp-lib4 | 2ef5174e86b3db797734a4832e9aa60e9fc9ac60 | [
"Apache-2.0"
] | null | null | null | StringUtility.hpp | Atlan522/cpp-lib4 | 2ef5174e86b3db797734a4832e9aa60e9fc9ac60 | [
"Apache-2.0"
] | null | null | null | #ifndef __ACL__STRING_UTILITY_H__
#define __ACL__STRING_UTILITY_H__
#ifdef WIN32
#pragma warning(disable: 4786)
#endif //WIN32
#include <iostream>
#include <fstream>
#include <string>
#include <vector>
#include <algorithm>
namespace acl
{
namespace StringUtility{
static std::string getFileNameFromPath(const std::str... | 22.454315 | 109 | 0.479145 | [
"vector"
] |
c48273b74adcdf191d8bd92c8f8e3431212ff8f1 | 657 | cc | C++ | HDU/5090_Game with Pearls/5090_v2.cc | pdszhh/ACM | 956b3d03a5d3f070ef24c940b7459f5cccb11d6c | [
"MIT"
] | 1 | 2019-05-05T03:51:20.000Z | 2019-05-05T03:51:20.000Z | HDU/5090_Game with Pearls/5090_v2.cc | pdszhh/ACM | 956b3d03a5d3f070ef24c940b7459f5cccb11d6c | [
"MIT"
] | null | null | null | HDU/5090_Game with Pearls/5090_v2.cc | pdszhh/ACM | 956b3d03a5d3f070ef24c940b7459f5cccb11d6c | [
"MIT"
] | null | null | null | #include <iostream>
#include <vector>
using namespace std;
int main() {
int m;
cin >> m;
while (m--) {
int n, k;
cin >> n >> k;
vector<int> cnt(n+1);
for (int i = 0; i < n; ++i) {
int t;
cin >> t;
for ( ; t <= n; t += k)
c... | 18.771429 | 49 | 0.315068 | [
"vector"
] |
c4898daf90a9bb38c60b24c6b1b58c7c043d56dc | 1,439 | cpp | C++ | libraries/common/src/DataSaveArguments.cpp | awf/ELL | 25c94a1422efc41d5560db11b136f9d8f957ad41 | [
"MIT"
] | 2,094 | 2016-09-28T05:55:24.000Z | 2019-05-04T19:06:36.000Z | libraries/common/src/DataSaveArguments.cpp | awesomemachinelearning/ELL | cb897e3aec148a1e9bd648012b5f53ab9d0dd20c | [
"MIT"
] | 213 | 2017-06-30T12:53:40.000Z | 2019-05-03T06:35:38.000Z | libraries/common/src/DataSaveArguments.cpp | awesomemachinelearning/ELL | cb897e3aec148a1e9bd648012b5f53ab9d0dd20c | [
"MIT"
] | 301 | 2017-03-24T08:40:00.000Z | 2019-05-02T21:22:28.000Z | ////////////////////////////////////////////////////////////////////////////////////////////////////
//
// Project: Embedded Learning Library (ELL)
// File: DataSaveArguments.cpp (common)
// Authors: Ofer Dekel
//
/////////////////////////////////////////////////////////////////////////////////////////////////... | 30.617021 | 118 | 0.548992 | [
"vector"
] |
c48fdc254daf0321ce7ce8e47edd12c893c2c07a | 2,881 | hpp | C++ | include/Lynx/System/Loader.hpp | ichi-raven/LynxEngine | c3541498e15d526f78f80ece1ce8a725457ae1c1 | [
"MIT"
] | null | null | null | include/Lynx/System/Loader.hpp | ichi-raven/LynxEngine | c3541498e15d526f78f80ece1ce8a725457ae1c1 | [
"MIT"
] | null | null | null | include/Lynx/System/Loader.hpp | ichi-raven/LynxEngine | c3541498e15d526f78f80ece1ce8a725457ae1c1 | [
"MIT"
] | null | null | null | #pragma once
#include <memory>
#include <variant>
#include <vector>
// #include "../ThirdParty/tiny_obj_loader.h"
// #include "../ThirdParty/tiny_gltf.h"
#include <assimp/Importer.hpp>
#include <assimp/scene.h>
#include <assimp/postprocess.h>
#include <Lynx/Components/MeshComponent.hpp>
#include <Lynx/Components/Ske... | 28.245098 | 128 | 0.634849 | [
"mesh",
"vector"
] |
c4945449fb2b920a76087cfa7b8f31e0a4225834 | 3,377 | cpp | C++ | src/conf.cpp | aaronpuchert/throttle | 50f3005e9b2c9cb1ec2962cf5e9852c08eab101c | [
"MIT"
] | 2 | 2018-06-13T17:41:30.000Z | 2021-03-27T03:21:26.000Z | src/conf.cpp | aaronpuchert/throttle | 50f3005e9b2c9cb1ec2962cf5e9852c08eab101c | [
"MIT"
] | 1 | 2018-06-13T18:04:44.000Z | 2018-06-18T23:52:09.000Z | src/conf.cpp | aaronpuchert/throttle | 50f3005e9b2c9cb1ec2962cf5e9852c08eab101c | [
"MIT"
] | null | null | null | #include <algorithm>
#include <fstream>
#include <limits>
#include <sstream>
#include <stdexcept>
#include <string>
#include <utility>
#include <vector>
#include <errno.h>
#include <fcntl.h>
#include <unistd.h>
#include "throttle.hpp"
/**
* Read a configuration file.
*
* This function is guaranteed to read in all... | 23.289655 | 90 | 0.665383 | [
"vector"
] |
c498d487b86cfde2fce1b27d462f445a5b86ee75 | 5,240 | cpp | C++ | Coda/src/nlp-stack/Dictionary/SuffixModelTrieBinaryFileCreator.cpp | Samsung/veles.nlp | 972fde27203cb04d301e34274b57435ed58372c4 | [
"Apache-2.0"
] | 8 | 2016-02-16T10:15:39.000Z | 2020-03-12T21:14:36.000Z | Coda/src/nlp-stack/Dictionary/SuffixModelTrieBinaryFileCreator.cpp | Samsung/veles.nlp | 972fde27203cb04d301e34274b57435ed58372c4 | [
"Apache-2.0"
] | null | null | null | Coda/src/nlp-stack/Dictionary/SuffixModelTrieBinaryFileCreator.cpp | Samsung/veles.nlp | 972fde27203cb04d301e34274b57435ed58372c4 | [
"Apache-2.0"
] | 6 | 2016-02-16T10:15:47.000Z | 2020-01-20T20:33:25.000Z | /**
* SuffixModelTrieBinaryFileCreator.cpp
*/
#include "SuffixModelTrieBinaryFileCreator.h"
#include "Dictionary.h"
#define N_GRAM_MAX_BUFFER_SIZE 15000000
//#define BINARY_SUFFIX_PATH "SuffixModel.bin"
SuffixModelTrieBinaryFileCreator::SuffixModelTrieBinaryFileCreator(Dictionary* _dic) : SuffixModelTrieBuild(_di... | 35.405405 | 143 | 0.73416 | [
"vector"
] |
7bce2fb065595dff740f34051288dfa46aa9d2a5 | 3,621 | cpp | C++ | aws-cpp-sdk-monitoring/source/model/DashboardEntry.cpp | Neusoft-Technology-Solutions/aws-sdk-cpp | 88c041828b0dbee18a297c3cfe98c5ecd0706d0b | [
"Apache-2.0"
] | 1 | 2022-02-10T08:06:54.000Z | 2022-02-10T08:06:54.000Z | aws-cpp-sdk-monitoring/source/model/DashboardEntry.cpp | Neusoft-Technology-Solutions/aws-sdk-cpp | 88c041828b0dbee18a297c3cfe98c5ecd0706d0b | [
"Apache-2.0"
] | 1 | 2021-10-14T16:57:00.000Z | 2021-10-18T10:47:24.000Z | aws-cpp-sdk-monitoring/source/model/DashboardEntry.cpp | ravindra-wagh/aws-sdk-cpp | 7d5ff01b3c3b872f31ca98fb4ce868cd01e97696 | [
"Apache-2.0"
] | 1 | 2021-11-09T12:02:58.000Z | 2021-11-09T12:02:58.000Z | /**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/monitoring/model/DashboardEntry.h>
#include <aws/core/utils/xml/XmlSerializer.h>
#include <aws/core/utils/StringUtils.h>
#include <aws/core/utils/memory/stl/AWSStringStream.h>
#include ... | 29.201613 | 163 | 0.695664 | [
"model"
] |
7bd100d35dc2f083e197094b5e4ea8d2ea1ad7ed | 50,710 | cpp | C++ | Samples/AppWindow/cppwinrt/Code/BU/Musion - Copy/CodeLine.cpp | OSIREM/ecoin-minimal | 7d8314484c0cd47c673046c86c273cc48eaa43d2 | [
"MIT"
] | null | null | null | Samples/AppWindow/cppwinrt/Code/BU/Musion - Copy/CodeLine.cpp | OSIREM/ecoin-minimal | 7d8314484c0cd47c673046c86c273cc48eaa43d2 | [
"MIT"
] | null | null | null | Samples/AppWindow/cppwinrt/Code/BU/Musion - Copy/CodeLine.cpp | OSIREM/ecoin-minimal | 7d8314484c0cd47c673046c86c273cc48eaa43d2 | [
"MIT"
] | null | null | null | /*
CodeLine - osirem.com
Copyright OSIREM LTD (C) 2016
www.bitolyl.com/osirem bitcoin-office.com ecn.world
This source is proprietary, and cannot be used, in part or in full without
the express permission of the original author. The original author retain the
rights to use, modify, and/or relicense this code ... | 26.125708 | 134 | 0.570874 | [
"vector"
] |
7bd286773549f8940df75ae5d9f87038df315f94 | 989 | cpp | C++ | test/unit/math/mix/fun/atanh_test.cpp | LaudateCorpus1/math | 990a66b3cccd27a5fd48626360bb91093a48278b | [
"BSD-3-Clause"
] | 1 | 2020-06-14T14:33:37.000Z | 2020-06-14T14:33:37.000Z | test/unit/math/mix/fun/atanh_test.cpp | LaudateCorpus1/math | 990a66b3cccd27a5fd48626360bb91093a48278b | [
"BSD-3-Clause"
] | null | null | null | test/unit/math/mix/fun/atanh_test.cpp | LaudateCorpus1/math | 990a66b3cccd27a5fd48626360bb91093a48278b | [
"BSD-3-Clause"
] | 1 | 2020-05-10T12:55:07.000Z | 2020-05-10T12:55:07.000Z | #include <test/unit/math/test_ad.hpp>
#include <vector>
TEST(mathMixMatFun, atanh) {
auto f = [](const auto& x1) {
using stan::math::atanh;
return atanh(x1);
};
stan::test::expect_common_unary_vectorized(f);
stan::test::expect_unary_vectorized(f, -0.9, 0.5);
for (double re : std::vector<double>{-0.2,... | 28.257143 | 61 | 0.634985 | [
"vector"
] |
7bdc4add29810b7736fa2cb9ad49d03c472dbb77 | 1,183 | cpp | C++ | level-editor/Driver.cpp | lukas-vaiciunas/haterminator | 7f42e5a4ed4c5dee21368859989b74ba6c80898b | [
"MIT"
] | null | null | null | level-editor/Driver.cpp | lukas-vaiciunas/haterminator | 7f42e5a4ed4c5dee21368859989b74ba6c80898b | [
"MIT"
] | null | null | null | level-editor/Driver.cpp | lukas-vaiciunas/haterminator | 7f42e5a4ed4c5dee21368859989b74ba6c80898b | [
"MIT"
] | null | null | null | #include "Driver.h"
#include "Keyboard.h"
Driver::Driver() :
camera_(0.0f, 0.0f, 4.0f),
level_("data/maps/level-1.dat", "data/maps/map-1.dat", 20, 20),
painter_(),
imagesUI_(Key::T, "img/tilesheet.png"),
statusUI_(0.0f, 0.0f)
{}
void Driver::updateOnTick(const Keyboard &keyboard)
{
camera_.updateOnTick(keyboard... | 18.484375 | 64 | 0.702451 | [
"render"
] |
7beefcdde8371e6c4f42fc63bed73cb590fbd97d | 4,534 | cpp | C++ | L1/src/test.cpp | SqrtMinusOne/SEM7_Software_Design | a3d4828ad3aba5d7f266ee7eb598d1078d04450a | [
"Apache-2.0"
] | null | null | null | L1/src/test.cpp | SqrtMinusOne/SEM7_Software_Design | a3d4828ad3aba5d7f266ee7eb598d1078d04450a | [
"Apache-2.0"
] | null | null | null | L1/src/test.cpp | SqrtMinusOne/SEM7_Software_Design | a3d4828ad3aba5d7f266ee7eb598d1078d04450a | [
"Apache-2.0"
] | null | null | null | #pragma clang diagnostic push
#pragma ide diagnostic ignored "cert-msc32-c"
#pragma ide diagnostic ignored "cert-err58-cpp"
#include <ctime>
#include <iostream>
#include <random>
#include "gtest/gtest.h"
#include "point.h"
#include "pentagram.h"
#include "text.h"
#include "atanSegment.h"
#include "pentagramText.h"
#i... | 24.376344 | 58 | 0.611381 | [
"shape"
] |
7bf6db46048c11427e7ea4c6d6b4a098b647d5c8 | 20,811 | cc | C++ | src/Enclave/ecallSrc/ecallIndex/ecallExtreme.cc | debe-sgx/debe | 641f2b6473fec8ebea301c533d5aab563e53bcbb | [
"MIT"
] | null | null | null | src/Enclave/ecallSrc/ecallIndex/ecallExtreme.cc | debe-sgx/debe | 641f2b6473fec8ebea301c533d5aab563e53bcbb | [
"MIT"
] | null | null | null | src/Enclave/ecallSrc/ecallIndex/ecallExtreme.cc | debe-sgx/debe | 641f2b6473fec8ebea301c533d5aab563e53bcbb | [
"MIT"
] | null | null | null | /**
* @file ecallExtreme.cc
* @author
* @brief implement the interface defined in the extreme index inside the enclave
* @version 0.1
* @date 2020-12-30
*
* @copyright Copyright (c) 2020
*
*/
#include "../../include/ecallExtreme.h"
/**
* @brief Construct a new Ecall Simple Index object
*
* @param max... | 39.266038 | 120 | 0.673922 | [
"object",
"vector"
] |
d002873313e3a459d7be500db429857e1ed77b59 | 324,136 | cc | C++ | third-party/webscalesqlclient/mysql-5.6/sql/rpl_slave.cc | hkirsman/hhvm_centos7_builds | 2a1fd6de0d2d289c1575f43f10018f3bec23bb13 | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | third-party/webscalesqlclient/mysql-5.6/sql/rpl_slave.cc | hkirsman/hhvm_centos7_builds | 2a1fd6de0d2d289c1575f43f10018f3bec23bb13 | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | third-party/webscalesqlclient/mysql-5.6/sql/rpl_slave.cc | hkirsman/hhvm_centos7_builds | 2a1fd6de0d2d289c1575f43f10018f3bec23bb13 | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | /* Copyright (c) 2000, 2015, Oracle and/or its affiliates. All rights reserved.
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; version 2 of the License.
This program is distributed in t... | 35.328174 | 137 | 0.644267 | [
"object",
"transform"
] |
d005b9a6e9a23d413c0e574b613f55fa684b40e0 | 2,386 | cpp | C++ | src/ngraph/frontend/onnx_import/op/unsqueeze.cpp | bergtholdt/ngraph | 55ca8bb15488ac7a567bb420ca32fcee25e60fe6 | [
"Apache-2.0"
] | null | null | null | src/ngraph/frontend/onnx_import/op/unsqueeze.cpp | bergtholdt/ngraph | 55ca8bb15488ac7a567bb420ca32fcee25e60fe6 | [
"Apache-2.0"
] | null | null | null | src/ngraph/frontend/onnx_import/op/unsqueeze.cpp | bergtholdt/ngraph | 55ca8bb15488ac7a567bb420ca32fcee25e60fe6 | [
"Apache-2.0"
] | null | null | null | //*****************************************************************************
// Copyright 2018 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://www.ap... | 36.151515 | 99 | 0.526823 | [
"vector"
] |
d00cbf6a4cde92c74b50e2390040d8a4781e2e7c | 1,323 | cc | C++ | tesseract4android/src/main/cpp/tesseract/src/unittest/params_model_test.cc | letin97/Tesseract4 | 9b798d6864bfc70933e6ea641a70435e2d5b9c2d | [
"Apache-2.0"
] | null | null | null | tesseract4android/src/main/cpp/tesseract/src/unittest/params_model_test.cc | letin97/Tesseract4 | 9b798d6864bfc70933e6ea641a70435e2d5b9c2d | [
"Apache-2.0"
] | null | null | null | tesseract4android/src/main/cpp/tesseract/src/unittest/params_model_test.cc | letin97/Tesseract4 | 9b798d6864bfc70933e6ea641a70435e2d5b9c2d | [
"Apache-2.0"
] | null | null | null |
#include <vector>
#include "tesseract/wordrec/params_model.h"
namespace {
// Test some basic I/O of params model files (automated learning of language
// model weights).
class ParamsModelTest : public testing::Test {
protected:
string TestDataNameToPath(const string& name) const {
return file::Jo... | 33.923077 | 77 | 0.734694 | [
"vector",
"model"
] |
d00dfd7cb70e3e7229aba1df6c5a3a0c2e82220f | 3,919 | cpp | C++ | GridWorld.cpp | Aakarshan-Chauhan/RL-GridWorld_CPlusPlus | dcdba048aa0b620412ac9c4ef8c558b214f885da | [
"MIT"
] | 1 | 2021-04-23T09:23:45.000Z | 2021-04-23T09:23:45.000Z | GridWorld.cpp | Aakarshan-Chauhan/RL-GridWorld_CPlusPlus | dcdba048aa0b620412ac9c4ef8c558b214f885da | [
"MIT"
] | null | null | null | GridWorld.cpp | Aakarshan-Chauhan/RL-GridWorld_CPlusPlus | dcdba048aa0b620412ac9c4ef8c558b214f885da | [
"MIT"
] | null | null | null | #include<iostream>
#include<map>
#include<vector>
#include<set>
using namespace std;
// Class to interact and form our gameboard
class Grid {
public:
//i and j are coordinates of the agent in the grid, y axis is i and x axis is j. Top left corner is (0, 0).
int rows, cols, i, j;
//rewards is a ditionary wi... | 23.052941 | 109 | 0.58765 | [
"vector"
] |
d00fd269d82830d1dcb9dc89100bb3118dbd363b | 4,476 | cpp | C++ | Firmware/Marlin/src/lcd/extui/mks_ui/wifiSerial.cpp | jhNsXO/UnifiedFirmware | a3649d67d9fa6219c7fb58ab9e18594b1b0a24df | [
"Info-ZIP"
] | 97 | 2020-09-14T13:35:17.000Z | 2022-03-28T20:15:49.000Z | Firmware/Marlin/src/lcd/extui/mks_ui/wifiSerial.cpp | jhNsXO/UnifiedFirmware | a3649d67d9fa6219c7fb58ab9e18594b1b0a24df | [
"Info-ZIP"
] | 8 | 2020-11-11T21:01:38.000Z | 2022-01-22T01:22:10.000Z | Firmware/Marlin/src/lcd/extui/mks_ui/wifiSerial.cpp | jhNsXO/UnifiedFirmware | a3649d67d9fa6219c7fb58ab9e18594b1b0a24df | [
"Info-ZIP"
] | 49 | 2020-09-22T09:33:37.000Z | 2022-03-19T21:23:04.000Z | /**
* Marlin 3D Printer Firmware
* Copyright (c) 2020 MarlinFirmware [https://github.com/MarlinFirmware/Marlin]
*
* Based on Sprinter and grbl.
* Copyright (c) 2011 Camiel Gubbels / Erik van der Zalm
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General... | 31.521127 | 151 | 0.710679 | [
"3d"
] |
d014f52f8e2afb06df8db7253b04a769b461e80a | 1,763 | cpp | C++ | codeforces/822C.cpp | Victoralin10/ACMSolutions | 6d6e50da87b2bc455e953629737215b74b10269c | [
"MIT"
] | null | null | null | codeforces/822C.cpp | Victoralin10/ACMSolutions | 6d6e50da87b2bc455e953629737215b74b10269c | [
"MIT"
] | null | null | null | codeforces/822C.cpp | Victoralin10/ACMSolutions | 6d6e50da87b2bc455e953629737215b74b10269c | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
#define pb push_back
#define mp make_pair
#define pii pair <int, int>
#define all(v) (v).begin() (v).end()
#define fi first
#define se second
#define ll long long
#define ull long long
#define ld long double
#define MOD 1000000007
#define MAXN 200005
using namespace std;
vector < pair <int, ... | 25.550725 | 87 | 0.434487 | [
"vector"
] |
d016987f84956dcb5981865b368af8762a4067ff | 980 | cpp | C++ | Array/TwoSum/TwoSum.cpp | yijingbai/LeetCode | 6ae6dbdf3a720b4206323401a0ed16ac2066031e | [
"MIT"
] | 2 | 2015-08-28T03:52:05.000Z | 2015-09-03T09:54:40.000Z | Array/TwoSum/TwoSum.cpp | yijingbai/LeetCode | 6ae6dbdf3a720b4206323401a0ed16ac2066031e | [
"MIT"
] | null | null | null | Array/TwoSum/TwoSum.cpp | yijingbai/LeetCode | 6ae6dbdf3a720b4206323401a0ed16ac2066031e | [
"MIT"
] | null | null | null | #include <vector>
#include <map>
#include <utility>
#include <iostream>
using std::vector;
using std::map;
using std::pair;
class Solution {
public:
vector<int> twoSum(vector<int>& nums, int target) {
map<int, int> num_index_map;
for (int i = 0; i < nums.size(); i++) {
int current = nu... | 24.5 | 67 | 0.529592 | [
"vector"
] |
d01800b81645c7270dcd65757627b73c0455353a | 41,626 | cpp | C++ | src/gui_state.cpp | noraabiakar/arbor-gui | 6849d0e282ede2aabd8af2094ba036b96c68eece | [
"BSD-3-Clause"
] | null | null | null | src/gui_state.cpp | noraabiakar/arbor-gui | 6849d0e282ede2aabd8af2094ba036b96c68eece | [
"BSD-3-Clause"
] | null | null | null | src/gui_state.cpp | noraabiakar/arbor-gui | 6849d0e282ede2aabd8af2094ba036b96c68eece | [
"BSD-3-Clause"
] | null | null | null | #include "gui_state.hpp"
#include <IconsForkAwesome.h>
#include <nlohmann/json.hpp>
#include <imgui.h>
#include <misc/cpp/imgui_stdlib.h>
#include <arbornml/arbornml.hpp>
#include <arbornml/nmlexcept.hpp>
#include <sstream>
extern float delta_phi;
extern float delta_zoom;
extern float delta_x;
extern float delta_y... | 39.568441 | 142 | 0.5701 | [
"geometry",
"render",
"vector"
] |
d01899e1b5e1c768378c3517dc6fc9cdaa5a2dce | 6,573 | cc | C++ | tests/stats-agg/stat_aggregator.cc | wurikiji/forestdb-optimize | 8248dfd677572577bb523890fdab86ed146a3292 | [
"Apache-2.0"
] | null | null | null | tests/stats-agg/stat_aggregator.cc | wurikiji/forestdb-optimize | 8248dfd677572577bb523890fdab86ed146a3292 | [
"Apache-2.0"
] | null | null | null | tests/stats-agg/stat_aggregator.cc | wurikiji/forestdb-optimize | 8248dfd677572577bb523890fdab86ed146a3292 | [
"Apache-2.0"
] | null | null | null | /* -*- Mode: C++; tab-width: 4; c-basic-offset: 4; indent-tabs-mode: nil -*- */
/*
* Copyright 2016 Couchbase, 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
*
* h... | 36.314917 | 79 | 0.544652 | [
"render",
"vector"
] |
d0197b5c44392e074889eae768382d923187ae47 | 2,259 | hpp | C++ | include/GlobalNamespace/NamedPreset.hpp | darknight1050/BeatSaber-Quest-Codegen | a6eeecc3f0e8f6079630f9a9a72b3121ac7b2032 | [
"Unlicense"
] | null | null | null | include/GlobalNamespace/NamedPreset.hpp | darknight1050/BeatSaber-Quest-Codegen | a6eeecc3f0e8f6079630f9a9a72b3121ac7b2032 | [
"Unlicense"
] | null | null | null | include/GlobalNamespace/NamedPreset.hpp | darknight1050/BeatSaber-Quest-Codegen | a6eeecc3f0e8f6079630f9a9a72b3121ac7b2032 | [
"Unlicense"
] | null | null | null | // Autogenerated from CppHeaderCreator
// Created by Sc2ad
// =========================================================================
#pragma once
// Begin includes
#include "extern/beatsaber-hook/shared/utils/typedefs.h"
#include "extern/beatsaber-hook/shared/utils/il2cpp-utils-methods.hpp"
#include "extern/b... | 45.18 | 133 | 0.698539 | [
"object"
] |
d01e188e8686e67101fc68124b02d423eed540e6 | 20,927 | cc | C++ | src/compute_metrics_2way.cc | wdj/CoMet | 3e3c099c6eadafc24a1b69d81f07b3a4ed3e16ef | [
"BSD-2-Clause"
] | 1 | 2021-04-14T23:16:32.000Z | 2021-04-14T23:16:32.000Z | src/compute_metrics_2way.cc | wdj/comet | 3e3c099c6eadafc24a1b69d81f07b3a4ed3e16ef | [
"BSD-2-Clause"
] | null | null | null | src/compute_metrics_2way.cc | wdj/comet | 3e3c099c6eadafc24a1b69d81f07b3a4ed3e16ef | [
"BSD-2-Clause"
] | null | null | null | //-----------------------------------------------------------------------------
/*!
* \file compute_metrics_2way.cc
* \author Wayne Joubert
* \date Thu Jan 7 10:21:09 EST 2016
* \brief Calculate metrics, 2-way.
*/
//-----------------------------------------------------------------------------
/*-------------... | 33.112342 | 80 | 0.666173 | [
"vector"
] |
d0214a1c46953db7c58b59f82e8890a68b50ad06 | 20,279 | cpp | C++ | src/circuitcocircuit.cpp | OndrejSlamecka/mincuts | b9cd5913db77eec7576a8eb2ac85d464025158b0 | [
"MIT"
] | 2 | 2019-04-13T04:28:32.000Z | 2019-06-29T19:10:59.000Z | src/circuitcocircuit.cpp | OndrejSlamecka/mincuts | b9cd5913db77eec7576a8eb2ac85d464025158b0 | [
"MIT"
] | null | null | null | src/circuitcocircuit.cpp | OndrejSlamecka/mincuts | b9cd5913db77eec7576a8eb2ac85d464025158b0 | [
"MIT"
] | null | null | null | /*
* Copyright (c) 2015, Ondrej Slamecka <ondrej@slamecka.cz>
* See the LICENSE file in the root folder of this repository.
*/
/*
* Note about colouring:
* Vertices: Red go all red, but vertices are blue only if they are in X
* Edges: All red or blue in red or blue subgraph respectively
*/
#include "./circui... | 33.630182 | 106 | 0.566793 | [
"vector"
] |
d028f9ee327c14f3699db250876d15ecfd4ac9a2 | 9,189 | cpp | C++ | example/fds132text.cpp | BartDeWaal/FDS132-textdriver | 6bc109f52e943accdcfbc71a7f60954d94570456 | [
"MIT"
] | 3 | 2016-04-14T22:30:08.000Z | 2020-12-02T03:18:31.000Z | example/fds132text.cpp | BartDeWaal/FDS132-textdriver | 6bc109f52e943accdcfbc71a7f60954d94570456 | [
"MIT"
] | 1 | 2020-12-31T12:42:11.000Z | 2020-12-31T12:42:11.000Z | example/fds132text.cpp | BartDeWaal/FDS132-textdriver | 6bc109f52e943accdcfbc71a7f60954d94570456 | [
"MIT"
] | 1 | 2020-12-01T19:01:52.000Z | 2020-12-01T19:01:52.000Z | #include "fds132text.h"
fdsScreen::fdsScreen(){
first = NULL; //make sure it's a null pointer
}
void fdsScreen::setPins(){
// using the defaults from the example setup
setPins(10,13,11,7,6,5,9,2000);
}
void fdsScreen::setPins(int p_strobePin, int p_clockPin, int p_dataPin, int p_row_c, int p_row_b, int p... | 36.177165 | 141 | 0.62466 | [
"object"
] |
d02a7d376ce7f7e3b07f5a712d41b5a768292a18 | 2,110 | cpp | C++ | HackerBlocks/More/PIRATES AND THEIR CHESTS.cpp | Ashwanigupta9125/code-DS-ALGO | 49f6cf7d0c682da669db23619aef3f80697b352b | [
"MIT"
] | 36 | 2019-12-27T08:23:08.000Z | 2022-01-24T20:35:47.000Z | HackerBlocks/More/PIRATES AND THEIR CHESTS.cpp | Ashwanigupta9125/code-DS-ALGO | 49f6cf7d0c682da669db23619aef3f80697b352b | [
"MIT"
] | 10 | 2019-11-13T02:55:18.000Z | 2021-10-13T23:28:09.000Z | HackerBlocks/More/PIRATES AND THEIR CHESTS.cpp | Ashwanigupta9125/code-DS-ALGO | 49f6cf7d0c682da669db23619aef3f80697b352b | [
"MIT"
] | 53 | 2020-08-15T11:08:40.000Z | 2021-10-09T15:51:38.000Z | // https://www.hackerearth.com/practice/algorithms/greedy/basics-of-greedy-algorithms/practice-problems/algorithm/monk-in-the-magical-land/description/
#include<bits/stdc++.h>
#include<unordered_set>
using namespace std;
#define ll long long in
#define s(x) scanf("%lld",&x)
#define s2(x,y) s(x)+s(y)
#define s3(x,y... | 26.375 | 151 | 0.57109 | [
"vector"
] |
d02af566252b7bd820c0168a544a5a50016d934e | 31,549 | cpp | C++ | toolsrc/src/test_install_plan.cpp | jjzhang166/vcpkg | 17b6d75d0d16d8b620e6680c0364208aa8a52651 | [
"MIT"
] | null | null | null | toolsrc/src/test_install_plan.cpp | jjzhang166/vcpkg | 17b6d75d0d16d8b620e6680c0364208aa8a52651 | [
"MIT"
] | null | null | null | toolsrc/src/test_install_plan.cpp | jjzhang166/vcpkg | 17b6d75d0d16d8b620e6680c0364208aa8a52651 | [
"MIT"
] | null | null | null | #include "CppUnitTest.h"
#include "vcpkg_Dependencies.h"
#include "vcpkg_Util.h"
using namespace Microsoft::VisualStudio::CppUnitTestFramework;
using namespace vcpkg;
namespace UnitTest1
{
class InstallPlanTests : public TestClass<InstallPlanTests>
{
struct PackageSpecMap
{
std::u... | 59.865275 | 120 | 0.436591 | [
"vector"
] |
d02c6264ba795f9fedf169035b00859bcaf35950 | 1,241 | cpp | C++ | DSA Crack Sheet/solutions/Left View of Binary Tree.cpp | Akshad7829/DataStructures-Algorithms | 439822c6a374672d1734e2389d3fce581a35007d | [
"MIT"
] | 5 | 2021-08-10T18:47:49.000Z | 2021-08-21T15:42:58.000Z | DSA Crack Sheet/solutions/Left View of Binary Tree.cpp | Akshad7829/DataStructures-Algorithms | 439822c6a374672d1734e2389d3fce581a35007d | [
"MIT"
] | 2 | 2022-02-25T13:36:46.000Z | 2022-02-25T14:06:44.000Z | DSA Crack Sheet/solutions/Left View of Binary Tree.cpp | Akshad7829/DataStructures-Algorithms | 439822c6a374672d1734e2389d3fce581a35007d | [
"MIT"
] | 1 | 2021-10-08T10:07:41.000Z | 2021-10-08T10:07:41.000Z | /*
Left View of Binary Tree
========================
Given a Binary Tree, print Left view of it. Left view of a Binary Tree is set of nodes visible when tree is visited from Left side. The task is to complete the function leftView(), which accepts root of the tree as argument.
Left view of following tree is 1 2 4 8.
... | 19.698413 | 224 | 0.572119 | [
"vector"
] |
d02ee06530666936ed67d8a9b020a7d80581597e | 4,745 | cc | C++ | crunchy/internal/keyset/hybrid_crypter_factory.cc | google/crunchy | 9d241ffd619889ed9855e2cf41dc0c5485a7148c | [
"Apache-2.0"
] | 125 | 2017-11-21T14:23:02.000Z | 2021-06-15T10:13:54.000Z | crunchy/internal/keyset/hybrid_crypter_factory.cc | Jason-Cooke/crunchy | 9d241ffd619889ed9855e2cf41dc0c5485a7148c | [
"Apache-2.0"
] | 2 | 2018-01-11T14:07:18.000Z | 2018-07-12T16:20:30.000Z | crunchy/internal/keyset/hybrid_crypter_factory.cc | google/crunchy | 9d241ffd619889ed9855e2cf41dc0c5485a7148c | [
"Apache-2.0"
] | 19 | 2017-12-08T16:49:06.000Z | 2022-01-22T12:34:19.000Z | // Copyright 2017 The CrunchyCrypt 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 copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law o... | 35.676692 | 78 | 0.696523 | [
"vector"
] |
d03d9b9307fee6da46f613f97fdde9e7b82691b1 | 6,878 | hpp | C++ | include/GTGE/DefaultSceneRenderer/DefaultSceneRenderer_MultiPassPipeline.hpp | mackron/GTGameEngine | 380d1e01774fe6bc2940979e4e5983deef0bf082 | [
"BSD-3-Clause"
] | 31 | 2015-03-19T08:44:48.000Z | 2021-12-15T20:52:31.000Z | include/GTGE/DefaultSceneRenderer/DefaultSceneRenderer_MultiPassPipeline.hpp | mackron/GTGameEngine | 380d1e01774fe6bc2940979e4e5983deef0bf082 | [
"BSD-3-Clause"
] | 19 | 2015-07-09T09:02:44.000Z | 2016-06-09T03:51:03.000Z | include/GTGE/DefaultSceneRenderer/DefaultSceneRenderer_MultiPassPipeline.hpp | mackron/GTGameEngine | 380d1e01774fe6bc2940979e4e5983deef0bf082 | [
"BSD-3-Clause"
] | 3 | 2017-10-04T23:38:18.000Z | 2022-03-07T08:27:13.000Z | // Copyright (C) 2011 - 2014 David Reid. See included LICENCE.
#ifndef GT_DefaultSceneRenderer_MultiPassPipeline
#define GT_DefaultSceneRenderer_MultiPassPipeline
#include <GTGE/Core/Map.hpp>
#include <GTGE/Core/Vector.hpp>
#include <GTGE/Material.hpp>
namespace GT
{
class DefaultSceneRenderer;
class Defau... | 38.858757 | 221 | 0.679849 | [
"mesh",
"render",
"vector"
] |
d03da14daa56c2edc6a3b170d07c64c0a0059136 | 1,135 | cpp | C++ | src/MyBloom.cpp | gaurav16gupta/RAMBO_MSMT | 4f14fc1f86f884c2d5bb3a8dcfd780cff7582d5a | [
"MIT"
] | 5 | 2021-06-30T06:48:42.000Z | 2022-01-15T21:17:33.000Z | src/MyBloom.cpp | gaurav16gupta/RAMBO_MSMT | 4f14fc1f86f884c2d5bb3a8dcfd780cff7582d5a | [
"MIT"
] | null | null | null | src/MyBloom.cpp | gaurav16gupta/RAMBO_MSMT | 4f14fc1f86f884c2d5bb3a8dcfd780cff7582d5a | [
"MIT"
] | 4 | 2020-07-21T01:33:44.000Z | 2021-07-18T20:28:38.000Z | #include "MurmurHash3.h"
#include <iostream>
#include <cstring>
#include <chrono>
#include <vector>
#include "MyBloom.h"
#include <math.h>
#include "constants.h"
#include <bitset>
#include "bitArray.h"
using namespace std;
vector<uint> myhash( std::string key, int len, int k, int r, int range){
// int hashvals[k];
... | 20.267857 | 72 | 0.626432 | [
"vector"
] |
d04139e0fd95ff7713868f3178f0ff34b692a553 | 5,521 | cpp | C++ | src/Platform/Graphics/Vulkan/DescriptorPool.cpp | MisterVento3/SteelEngine | 403511b53b6575eb869b4ccfbda18514f0838e8d | [
"MIT"
] | 3 | 2017-05-10T10:58:17.000Z | 2018-10-30T09:50:26.000Z | src/Platform/Graphics/Vulkan/DescriptorPool.cpp | mVento3/SteelEngine | 403511b53b6575eb869b4ccfbda18514f0838e8d | [
"MIT"
] | 3 | 2017-05-09T21:17:09.000Z | 2020-02-24T14:46:22.000Z | src/Platform/Graphics/Vulkan/DescriptorPool.cpp | mVento3/SteelEngine | 403511b53b6575eb869b4ccfbda18514f0838e8d | [
"MIT"
] | null | null | null | #include "Platform/Graphics/Vulkan/DescriptorPool.h"
#include "Platform/Graphics/Vulkan/Pipeline.h"
namespace SteelEngine { namespace Platform { namespace Vulkan {
DescriptorPool::DescriptorPool()
{
}
DescriptorPool::~DescriptorPool()
{
}
bool DescriptorPool::SetupDescriptorPool(Logic... | 38.340278 | 160 | 0.663829 | [
"vector"
] |
d04294d14fbd4c3b792d053a222bd3c2b4f2ab3a | 725 | cpp | C++ | voidproc-siv3d-examples-src/intersect.cpp | voidproc/voidproc-siv3d-examples-src | 4c66b26aca6864d6654e2d081d8b248bffb8c072 | [
"MIT"
] | 1 | 2021-09-19T12:30:54.000Z | 2021-09-19T12:30:54.000Z | voidproc-siv3d-examples-src/intersect.cpp | voidproc/voidproc-siv3d-examples-src | 4c66b26aca6864d6654e2d081d8b248bffb8c072 | [
"MIT"
] | null | null | null | voidproc-siv3d-examples-src/intersect.cpp | voidproc/voidproc-siv3d-examples-src | 4c66b26aca6864d6654e2d081d8b248bffb8c072 | [
"MIT"
] | null | null | null | #include <Siv3D.hpp> // OpenSiv3D v0.6.0
#include <variant>
void Main()
{
Scene::SetBackground(Palette::Slategray);
const Vec2 pos{ 800 / 2, 600 / 2 };
Array<std::variant<Circle, RectF, Quad, Triangle>> shapes;
shapes.push_back(Circle(pos, 50)); //Circle
shapes.push_back(RectF(pos.movedBy(-130, -130), 100, 20... | 25 | 87 | 0.634483 | [
"shape"
] |
d04813c35b308d0a85312ea824df1fa4bceed09c | 2,047 | cpp | C++ | ext/pronto-v1.1/src/cpu_info.cpp | rvs314/Montage | d4c49e66addefe947c03ff2bd0c463ebd2c34436 | [
"MIT"
] | 9 | 2020-10-04T22:03:31.000Z | 2021-10-08T01:52:57.000Z | ext/pronto-v1.1/src/cpu_info.cpp | rvs314/Montage | d4c49e66addefe947c03ff2bd0c463ebd2c34436 | [
"MIT"
] | 18 | 2020-10-20T02:39:12.000Z | 2021-08-30T00:23:32.000Z | ext/pronto-v1.1/src/cpu_info.cpp | rvs314/Montage | d4c49e66addefe947c03ff2bd0c463ebd2c34436 | [
"MIT"
] | 9 | 2020-10-04T22:06:11.000Z | 2021-02-19T17:23:17.000Z | #include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <stdint.h>
#include <assert.h>
#include <vector>
#include <algorithm>
#include <fstream>
#include <iostream>
#define MAX_SOCKETS 2
bool core_info_compare(std::pair<long,long> a, std::pair<long,long> b) {
if (a.first != b.first) return a.first < b... | 29.242857 | 85 | 0.550562 | [
"vector"
] |
d04a332d908baf17868f3c3bd7320c96d15926bd | 3,779 | cpp | C++ | Data/testsuite/src/SessionImpl.cpp | flachesis/poco | 5b911e4191f6f5a5cf18c1d2af3d51b0b678b219 | [
"BSL-1.0"
] | null | null | null | Data/testsuite/src/SessionImpl.cpp | flachesis/poco | 5b911e4191f6f5a5cf18c1d2af3d51b0b678b219 | [
"BSL-1.0"
] | null | null | null | Data/testsuite/src/SessionImpl.cpp | flachesis/poco | 5b911e4191f6f5a5cf18c1d2af3d51b0b678b219 | [
"BSL-1.0"
] | null | null | null | //
// SessionImpl.cpp
//
// $Id: //poco/Main/Data/testsuite/src/SessionImpl.cpp#4 $
//
// Copyright (c) 2006, Applied Informatics Software Engineering GmbH.
// and Contributors.
//
// Permission is hereby granted, free of charge, to any person or organization
// obtaining a copy of the software and accompanying documen... | 19.78534 | 81 | 0.735115 | [
"object"
] |
d04c1eefeb3abd51b2a65c6b010d739ae8073c59 | 3,331 | hxx | C++ | external/hunspell-1.6.2/src/hunspell2/hunspell.hxx | binhetech/CyHunspell | 03d6ed3596711e1fbda29e08020889a71ff04b6b | [
"MIT"
] | null | null | null | external/hunspell-1.6.2/src/hunspell2/hunspell.hxx | binhetech/CyHunspell | 03d6ed3596711e1fbda29e08020889a71ff04b6b | [
"MIT"
] | 1 | 2022-01-26T09:30:21.000Z | 2022-01-26T09:34:04.000Z | external/hunspell-1.6.2/src/hunspell2/hunspell.hxx | binhetech/CyHunspell | 03d6ed3596711e1fbda29e08020889a71ff04b6b | [
"MIT"
] | null | null | null | #include <string>
namespace hunspell {
enum spell_result {
bad_word,
good_word,
affixed_good_word,
compound_good_word
};
class hunspell {
public:
using string = std::string;
using u16string = std::u16string;
private:
/* (0)
All the major work is done here.
(1) and (2) are the lowest level spec... | 28.228814 | 73 | 0.711198 | [
"object"
] |
d04cf5b96b8fb598d22c1018eca517c2c90991cf | 4,640 | cpp | C++ | plugin/gui/custom_tooltip.cpp | cristivlas/zerobugs | 5f080c8645b123d7887fd8a64f60e8d226e3b1d5 | [
"BSL-1.0"
] | 2 | 2018-03-19T23:27:47.000Z | 2018-06-24T16:15:19.000Z | plugin/gui/custom_tooltip.cpp | cristivlas/zerobugs | 5f080c8645b123d7887fd8a64f60e8d226e3b1d5 | [
"BSL-1.0"
] | null | null | null | plugin/gui/custom_tooltip.cpp | cristivlas/zerobugs | 5f080c8645b123d7887fd8a64f60e8d226e3b1d5 | [
"BSL-1.0"
] | 1 | 2021-11-28T05:39:05.000Z | 2021-11-28T05:39:05.000Z | //
// $Id$
//
// -------------------------------------------------------------------------
// This file is part of ZeroBugs, Copyright (c) 2010 Cristian L. Vlasceanu
//
// 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.... | 24.812834 | 89 | 0.6 | [
"vector"
] |
d055ff8961e2547f0952cd83f1b5fd90fd88ca89 | 1,111 | cpp | C++ | algorithms/cpp/368.cpp | viing937/leetcode | e21ca52c98bddf59e43522c0aace5e8cf84350eb | [
"MIT"
] | 3 | 2016-10-01T10:15:09.000Z | 2017-07-09T02:53:36.000Z | algorithms/cpp/368.cpp | viing937/leetcode | e21ca52c98bddf59e43522c0aace5e8cf84350eb | [
"MIT"
] | null | null | null | algorithms/cpp/368.cpp | viing937/leetcode | e21ca52c98bddf59e43522c0aace5e8cf84350eb | [
"MIT"
] | null | null | null | #include <iostream>
#include <vector>
#include <unordered_map>
using namespace std;
class Solution {
public:
vector<int> largestDivisibleSubset(vector<int> &nums) {
vector<int> result;
if (nums.empty()) return result;
sort(nums.begin(), nums.end());
int n = nums.size();
vect... | 26.452381 | 63 | 0.432943 | [
"vector"
] |
d05ccdbdd67f350bb21bd109dd6d1088e9e59101 | 12,194 | cpp | C++ | libdariadb/storage/wal/wal_manager.cpp | dariadb/dariadb | 1edf637122752ba21c582675e2a9183fff91fa50 | [
"Apache-2.0"
] | null | null | null | libdariadb/storage/wal/wal_manager.cpp | dariadb/dariadb | 1edf637122752ba21c582675e2a9183fff91fa50 | [
"Apache-2.0"
] | null | null | null | libdariadb/storage/wal/wal_manager.cpp | dariadb/dariadb | 1edf637122752ba21c582675e2a9183fff91fa50 | [
"Apache-2.0"
] | null | null | null | #include <libdariadb/flags.h>
#include <libdariadb/storage/callbacks.h>
#include <libdariadb/storage/manifest.h>
#include <libdariadb/storage/settings.h>
#include <libdariadb/storage/wal/wal_manager.h>
#include <libdariadb/utils/async/thread_manager.h>
#include <libdariadb/utils/exception.h>
#include <libdariadb/utils/... | 27.713636 | 90 | 0.622355 | [
"vector"
] |
d05f3207925f566986a81408274d3e28e1aa64d8 | 1,219 | hpp | C++ | Level_8_HW/Exercise 3/Exercise 3/ShapeVisitor.hpp | ZhehaoLi9705/QuantNet_CPP | a889f4656e757842f4163b0cda7e098cc6ad1193 | [
"MIT"
] | null | null | null | Level_8_HW/Exercise 3/Exercise 3/ShapeVisitor.hpp | ZhehaoLi9705/QuantNet_CPP | a889f4656e757842f4163b0cda7e098cc6ad1193 | [
"MIT"
] | null | null | null | Level_8_HW/Exercise 3/Exercise 3/ShapeVisitor.hpp | ZhehaoLi9705/QuantNet_CPP | a889f4656e757842f4163b0cda7e098cc6ad1193 | [
"MIT"
] | null | null | null | //
// ShapeVisitor.hpp
// Exercise 3
//
// Created by Zhehao Li on 2020/4/17.
// Copyright © 2020 Zhehao Li. All rights reserved.
//
#ifndef ShapeVisitor_hpp
#define ShapeVisitor_hpp
#include "Point.hpp"
#include "Line.hpp"
#include "Circle.hpp"
#include "boost/variant.hpp"
namespace CAD = ZhehaoLi::CAD;
class ... | 26.5 | 89 | 0.607055 | [
"cad",
"object"
] |
d061d0df2eb3cf116aa8c381a5a258ce512803f7 | 834 | cpp | C++ | BackTracking/permutationsii.cpp | thisisnitish/cp-dsa- | 9ae94930b65f8dc293d088e9148960939b9f6fa4 | [
"MIT"
] | 4 | 2020-12-29T09:27:10.000Z | 2022-02-12T14:20:23.000Z | BackTracking/permutationsii.cpp | thisisnitish/cp-dsa- | 9ae94930b65f8dc293d088e9148960939b9f6fa4 | [
"MIT"
] | 1 | 2021-11-27T06:15:28.000Z | 2021-11-27T06:15:28.000Z | BackTracking/permutationsii.cpp | thisisnitish/cp-dsa- | 9ae94930b65f8dc293d088e9148960939b9f6fa4 | [
"MIT"
] | 1 | 2021-11-17T21:42:57.000Z | 2021-11-17T21:42:57.000Z | /*
Leetcode Question 47. Permutations II
https://leetcode.com/problems/permutations-ii/
*/
class Solution
{
public:
//Time: O(N.N! + NlogN), Space: O(N)
vector<vector<int> > permutations;
vector<vector<int> > permuteUnique(vector<int> &nums)
{
sort(nums.begin(), nums.end());
generatePer... | 23.828571 | 57 | 0.517986 | [
"vector"
] |
d067faa245a90f5533f83c960c97fc9d2eec5972 | 1,749 | cpp | C++ | src/submain_key.cpp | jsdelivrbot/LUIS | 8a5682c52f27601fb0fc0b2230c45be3738fc1f1 | [
"MIT"
] | 1 | 2020-02-21T12:58:22.000Z | 2020-02-21T12:58:22.000Z | src/submain_key.cpp | jsdelivrbot/LUIS | 8a5682c52f27601fb0fc0b2230c45be3738fc1f1 | [
"MIT"
] | null | null | null | src/submain_key.cpp | jsdelivrbot/LUIS | 8a5682c52f27601fb0fc0b2230c45be3738fc1f1 | [
"MIT"
] | 1 | 2018-12-08T17:47:50.000Z | 2018-12-08T17:47:50.000Z |
#include "submains.hpp"
int submain_key(MainArgs &args)
{
const std::string &cmd = args.get("2");
if(cmd == "set"){
if(args.has("3")){
std::string public_key(args.get("3"));
std::string path(args.get("cfg-data-dir")+"/keys/"+public_key);
MapData mdata;
mdata.loadFile(path);
... | 25.720588 | 102 | 0.507147 | [
"vector"
] |
d06b4e9361eee2fd1868bab32220d90e433e6c52 | 473 | hpp | C++ | Sharp/Statements/FunctionStatement.hpp | gth747m/Sharp | 5c3d88779f4ba3f596bf0250a1397d4bcf84b3a7 | [
"MIT"
] | null | null | null | Sharp/Statements/FunctionStatement.hpp | gth747m/Sharp | 5c3d88779f4ba3f596bf0250a1397d4bcf84b3a7 | [
"MIT"
] | null | null | null | Sharp/Statements/FunctionStatement.hpp | gth747m/Sharp | 5c3d88779f4ba3f596bf0250a1397d4bcf84b3a7 | [
"MIT"
] | null | null | null | #pragma once
#include <memory>
#include <vector>
#include "Statement.hpp"
#include "../Token.hpp"
class FunctionStatement : public Statement
{
public:
FunctionStatement(Token&& name, std::vector<Token>&& params, std::vector<std::unique_ptr<Statement>>&& body);
virtual ~FunctionStatement() = default;
protecte... | 23.65 | 113 | 0.704017 | [
"vector"
] |
d06b514459e1138b7a8d64976832bfc6ac44e626 | 7,625 | cpp | C++ | Max2D/hoa.2d.exchanger_tilde.cpp | CICM/HoaLibrary-Max | cfe110ff040cfda0dd3547ee7e9ec7c11d6dd3b6 | [
"Naumen",
"Condor-1.1",
"MS-PL"
] | 71 | 2015-02-23T12:24:05.000Z | 2022-02-15T00:18:30.000Z | Max2D/hoa.2d.exchanger_tilde.cpp | pb5/HoaLibrary-Max | cfe110ff040cfda0dd3547ee7e9ec7c11d6dd3b6 | [
"Naumen",
"Condor-1.1",
"MS-PL"
] | 13 | 2015-04-22T17:13:53.000Z | 2020-11-12T10:54:29.000Z | Max2D/hoa.2d.exchanger_tilde.cpp | pb5/HoaLibrary-Max | cfe110ff040cfda0dd3547ee7e9ec7c11d6dd3b6 | [
"Naumen",
"Condor-1.1",
"MS-PL"
] | 8 | 2015-04-11T21:34:51.000Z | 2020-02-29T14:37:53.000Z | /*
// Copyright (c) 2012-2015 Eliott Paris, Julien Colafrancesco & Pierre Guillot, CICM, Universite Paris 8.
// For information on usage and redistribution, and for a DISCLAIMER OF ALL
// WARRANTIES, see the file, "LICENSE.txt," in this distribution.
*/
/**
@file hoa.2d.exchanger~.cpp
@name hoa.2d.exchange... | 38.316583 | 339 | 0.624918 | [
"object",
"3d"
] |
d06b6cdb589ac42a7fc051ffd32eafcb9236ff70 | 243 | hpp | C++ | Delta/math/box.hpp | vedard/DeltaEngine | 49296b8277023dc8cc656d0597624cf49254dcf0 | [
"MIT"
] | null | null | null | Delta/math/box.hpp | vedard/DeltaEngine | 49296b8277023dc8cc656d0597624cf49254dcf0 | [
"MIT"
] | null | null | null | Delta/math/box.hpp | vedard/DeltaEngine | 49296b8277023dc8cc656d0597624cf49254dcf0 | [
"MIT"
] | null | null | null | #pragma once
#include "vector.hpp"
namespace dt {
class Box {
public:
Vector position;
Vector size;
Box(const Vector& position, const Vector& size);
bool is_colliding_with(const Box& other) const;
};
} // namespace dt
| 14.294118 | 52 | 0.666667 | [
"vector"
] |
d0755a0fa653dd90d4aa234cb7b5dcf46dc60dc1 | 4,144 | cpp | C++ | libman/gmm.cpp | disa-mhembere/knor | 5c4174b80726eb5fc8da7042d517e8c3929ec747 | [
"Apache-2.0"
] | 13 | 2017-06-30T12:48:54.000Z | 2021-05-26T06:54:10.000Z | libman/gmm.cpp | disa-mhembere/knor | 5c4174b80726eb5fc8da7042d517e8c3929ec747 | [
"Apache-2.0"
] | 30 | 2016-11-21T23:21:48.000Z | 2017-03-05T06:26:52.000Z | libman/gmm.cpp | disa-mhembere/k-par-means | 5c4174b80726eb5fc8da7042d517e8c3929ec747 | [
"Apache-2.0"
] | 5 | 2017-04-11T00:44:04.000Z | 2018-11-01T10:41:06.000Z | /*
* Copyright 2016 neurodata (http://neurodata.io/)
* Written by Disa Mhembere (disa@jhu.edu)
*
* This file is part of knor
*
* 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
*
* ... | 30.470588 | 83 | 0.569498 | [
"vector"
] |
d07c5806d7c5deb92b50bfe4e6601671814131e0 | 56,508 | cpp | C++ | cplus/libcfint/CFIntMajorVersionTableObj.cpp | msobkow/cfint_2_13 | 63ff9dfc85647066d0c8d61469ada572362e2b48 | [
"Apache-2.0"
] | null | null | null | cplus/libcfint/CFIntMajorVersionTableObj.cpp | msobkow/cfint_2_13 | 63ff9dfc85647066d0c8d61469ada572362e2b48 | [
"Apache-2.0"
] | null | null | null | cplus/libcfint/CFIntMajorVersionTableObj.cpp | msobkow/cfint_2_13 | 63ff9dfc85647066d0c8d61469ada572362e2b48 | [
"Apache-2.0"
] | null | null | null | // Description: C++18 Table Object implementation for CFInt.
/*
* org.msscf.msscf.CFInt
*
* Copyright (c) 2020 Mark Stephen Sobkow
*
* MSS Code Factory CFInt 2.13 Internet Essentials
*
* Copyright 2020-2021 Mark Stephen Sobkow
*
* This file is part of MSS Code Factory.
*
* MSS Code Factory is availabl... | 39.738397 | 206 | 0.720128 | [
"object",
"vector"
] |
4edd846a6883f72f362f25095e5f93615a3cf004 | 743 | cpp | C++ | consoleLoadingBar/consoleLoadingBar.cpp | Sharkbyteprojects/consoleLoadingBar-win | 64b81c566d86a83078e339c613b29eb339612d77 | [
"MIT"
] | null | null | null | consoleLoadingBar/consoleLoadingBar.cpp | Sharkbyteprojects/consoleLoadingBar-win | 64b81c566d86a83078e339c613b29eb339612d77 | [
"MIT"
] | null | null | null | consoleLoadingBar/consoleLoadingBar.cpp | Sharkbyteprojects/consoleLoadingBar-win | 64b81c566d86a83078e339c613b29eb339612d77 | [
"MIT"
] | null | null | null | #include <iostream>
#include "../loadingBarConsole/loadingBarConsole.h"
#include <thread>
#include <chrono>
void rengine(CloadingBarConsole* c, bool* ok) {
while (*ok){
c->render();//RENDER THE BAR
std::this_thread::sleep_for(std::chrono::milliseconds(5));
}
}
int main()
{
std::cout << "LOADING SOMETHING" << s... | 23.21875 | 78 | 0.641992 | [
"render"
] |
4ede157e955b795507aea29bfb71a5aba462bf27 | 1,900 | cpp | C++ | source/ast/abstraction.cpp | k1r0d3v/lambda | 3db2e5895dd19f1111845b6f47840b6f9eff3c36 | [
"MIT"
] | null | null | null | source/ast/abstraction.cpp | k1r0d3v/lambda | 3db2e5895dd19f1111845b6f47840b6f9eff3c36 | [
"MIT"
] | null | null | null | source/ast/abstraction.cpp | k1r0d3v/lambda | 3db2e5895dd19f1111845b6f47840b6f9eff3c36 | [
"MIT"
] | null | null | null | #include <ast/abstraction.hpp>
#include <ast/types/arrow_type.hpp>
#include <ast/node_visitor.hpp>
#include <ast/context.hpp>
#include <ast/exception.hpp>
#include <ast/types/undefined_type.hpp>
using namespace ast;
Abstraction::Abstraction(Variable::Pointer variable, Node::Pointer body)
: Node(NodeKind::... | 26.760563 | 111 | 0.655263 | [
"transform"
] |
4ee0e83f5cbb8ba95e58ea43dcb66dca6526d5cd | 327,004 | cc | C++ | src/proto/epics_event.pb.cc | carneirofc/epics-archiver-pb-parser | 66483108f168bc6542278af80be2b96b9f0e6f0b | [
"Unlicense"
] | null | null | null | src/proto/epics_event.pb.cc | carneirofc/epics-archiver-pb-parser | 66483108f168bc6542278af80be2b96b9f0e6f0b | [
"Unlicense"
] | null | null | null | src/proto/epics_event.pb.cc | carneirofc/epics-archiver-pb-parser | 66483108f168bc6542278af80be2b96b9f0e6f0b | [
"Unlicense"
] | 1 | 2021-11-18T16:49:56.000Z | 2021-11-18T16:49:56.000Z | // Generated by the protocol buffer compiler. DO NOT EDIT!
// source: epics_event.proto
#include "epics_event.pb.h"
#include <algorithm>
#include <google/protobuf/io/coded_stream.h>
#include <google/protobuf/extension_set.h>
#include <google/protobuf/wire_format_lite.h>
#include <google/protobuf/descriptor.h>
#incl... | 37.569393 | 178 | 0.70138 | [
"object"
] |
4ef530605b290c45ef02594bfd123b448d913102 | 2,234 | cpp | C++ | src/pseudo-sc.cpp | nowar-fonts/Psuedo-SC | 3d241b563fab73e0f702ebbfba399b7b5cb63820 | [
"MIT"
] | 5 | 2020-10-17T09:48:48.000Z | 2021-12-25T02:22:03.000Z | src/pseudo-sc.cpp | nowar-fonts/Psuedo-SC | 3d241b563fab73e0f702ebbfba399b7b5cb63820 | [
"MIT"
] | null | null | null | src/pseudo-sc.cpp | nowar-fonts/Psuedo-SC | 3d241b563fab73e0f702ebbfba399b7b5cb63820 | [
"MIT"
] | 4 | 2020-10-29T07:44:59.000Z | 2021-11-27T12:27:09.000Z | #include <algorithm>
#include <cmath>
#include <cstdio>
#include <streambuf>
#include <string>
#include <vector>
#include <nlohmann/json.hpp>
#include <nowide/args.hpp>
#include <nowide/cstdio.hpp>
#include <nowide/fstream.hpp>
#include <nowide/iostream.hpp>
#include "opencc-t2s.h"
const char *usage ... | 23.515789 | 84 | 0.629364 | [
"vector"
] |
4ef572ba693b3e667ea40b10e1917de919745ec8 | 2,240 | cpp | C++ | src/shadereditor/src/shadereditor/solver/chlsl_solver_baserange.cpp | cstom4994/SourceEngineRebuild | edfd7f8ce8af13e9d23586318350319a2e193c08 | [
"MIT"
] | 6 | 2022-01-23T09:40:33.000Z | 2022-03-20T20:53:25.000Z | src/shadereditor/src/shadereditor/solver/chlsl_solver_baserange.cpp | cstom4994/SourceEngineRebuild | edfd7f8ce8af13e9d23586318350319a2e193c08 | [
"MIT"
] | null | null | null | src/shadereditor/src/shadereditor/solver/chlsl_solver_baserange.cpp | cstom4994/SourceEngineRebuild | edfd7f8ce8af13e9d23586318350319a2e193c08 | [
"MIT"
] | 1 | 2022-02-06T21:05:23.000Z | 2022-02-06T21:05:23.000Z |
#include "cbase.h"
#include "editorCommon.h"
void CHLSL_Solver_BaseRange::OnWriteFXC(bool bIsPixelShader, WriteContext_FXC &context) {
Assert(0);
}
void CHLSL_Solver_BaseRange::Render(Preview2DContext &c) {
int OP = GetRenderOperator();
int type0 = GetSourceVar(0)->GetType();
int type1 = GetSourceV... | 35 | 102 | 0.6625 | [
"render"
] |
4ef8d78f2f2d20f417b4d053ccb267aa59621629 | 655 | cpp | C++ | min-stack/solution-0.cpp | tsenmu/leetcode | 6f6d11dec4e5ee0fbc0c59fd6fa97b2c556e05ee | [
"Apache-2.0"
] | null | null | null | min-stack/solution-0.cpp | tsenmu/leetcode | 6f6d11dec4e5ee0fbc0c59fd6fa97b2c556e05ee | [
"Apache-2.0"
] | null | null | null | min-stack/solution-0.cpp | tsenmu/leetcode | 6f6d11dec4e5ee0fbc0c59fd6fa97b2c556e05ee | [
"Apache-2.0"
] | null | null | null | class MinStack {
protected:
stack<int> m_list;
stack<int> m_min;
public:
/** initialize your data structure here. */
MinStack() {
}
void push(int x) {
m_list.push(x);
m_min.push(m_min.empty() ? x : min(m_min.top(), x));
}
void pop() {
m_list.pop();
... | 18.194444 | 64 | 0.517557 | [
"object"
] |
4efd0da9e311b3de754caafc6abf5cf27aea6617 | 26,699 | cpp | C++ | IntermediateCode.cpp | migu4917/Simple-C0-Compiler | 3d454402f6f1152de60be972f844f69ef95bdc8e | [
"MIT"
] | 2 | 2020-09-15T11:18:58.000Z | 2020-09-21T01:57:12.000Z | IntermediateCode.cpp | migu4917/Simple-C0-Compiler | 3d454402f6f1152de60be972f844f69ef95bdc8e | [
"MIT"
] | null | null | null | IntermediateCode.cpp | migu4917/Simple-C0-Compiler | 3d454402f6f1152de60be972f844f69ef95bdc8e | [
"MIT"
] | 2 | 2020-09-21T01:57:17.000Z | 2020-09-27T16:38:01.000Z | #include <sstream>
#include <map>
#include <algorithm>
#include <climits>
#include <iostream>
#include <set>
#include "IntermediateCode.h"
#include "lexicalAnalysis.h"
#include "util.h"
using std::map;
using std::ostringstream;
using std::swap;
using std::stoi;
using std::to_string;
using std::cout;
us... | 35.98248 | 112 | 0.46395 | [
"vector"
] |
f6000e9fce2d63892fc6f5c495c3b9ac905a9e84 | 2,527 | hpp | C++ | ThirdParty/oglplus-develop/include/oglplus/exposed.hpp | vif/3D-STG | 721402e76a9b9b99b88ba3eb06beb6abb17a9254 | [
"MIT"
] | null | null | null | ThirdParty/oglplus-develop/include/oglplus/exposed.hpp | vif/3D-STG | 721402e76a9b9b99b88ba3eb06beb6abb17a9254 | [
"MIT"
] | null | null | null | ThirdParty/oglplus-develop/include/oglplus/exposed.hpp | vif/3D-STG | 721402e76a9b9b99b88ba3eb06beb6abb17a9254 | [
"MIT"
] | null | null | null | /**
* @file oglplus/exposed.hpp
* @brief Special object wrapper for exposing Object's OpenGL name
*
* @author Matus Chochlik
*
* Copyright 2010-2013 Matus Chochlik. Distributed under the Boost
* Software License, Version 1.0. (See accompanying file
* LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE... | 23.616822 | 79 | 0.745944 | [
"object"
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.