hexsha stringlengths 40 40 | size int64 7 1.05M | ext stringclasses 13
values | lang stringclasses 1
value | max_stars_repo_path stringlengths 4 269 | max_stars_repo_name stringlengths 5 108 | max_stars_repo_head_hexsha stringlengths 40 40 | max_stars_repo_licenses listlengths 1 9 | max_stars_count 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 4 269 | max_issues_repo_name stringlengths 5 116 | max_issues_repo_head_hexsha stringlengths 40 40 | max_issues_repo_licenses listlengths 1 9 | max_issues_count float64 1 77k ⌀ | max_issues_repo_issues_event_min_datetime stringlengths 24 24 ⌀ | max_issues_repo_issues_event_max_datetime stringlengths 24 24 ⌀ | max_forks_repo_path stringlengths 4 269 | max_forks_repo_name stringlengths 5 116 | max_forks_repo_head_hexsha stringlengths 40 40 | max_forks_repo_licenses listlengths 1 9 | max_forks_count 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 7 1.05M | avg_line_length float64 1.21 653k | max_line_length int64 6 990k | alphanum_fraction float64 0.01 1 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
7cb0565cdf3ef1b07f4fedd4818055fb2bb9932a | 1,326 | cc | C++ | lang/c++/impl/Types.cc | AIngleLab/aae | 6e95f89fad60e62bb5305afe97c72f3278d8e04b | [
"Apache-2.0"
] | null | null | null | lang/c++/impl/Types.cc | AIngleLab/aae | 6e95f89fad60e62bb5305afe97c72f3278d8e04b | [
"Apache-2.0"
] | null | null | null | lang/c++/impl/Types.cc | AIngleLab/aae | 6e95f89fad60e62bb5305afe97c72f3278d8e04b | [
"Apache-2.0"
] | null | null | null | /**
*/
#include "Types.hh"
#include <iostream>
#include <string>
namespace aingle {
namespace strings {
const std::string typeToString[] = {
"string",
"bytes",
"int",
"long",
"float",
"double",
"boolean",
"null",
"record",
"enum",
"array",
"map",
"union",
"fix... | 21.737705 | 90 | 0.619155 |
7cb2402039a6a28448524e88606e450eddb9e1a8 | 9,846 | cc | C++ | src/math/test_heightfield.cc | mnvl/scratch | 7717772e0b9a85c8feb73fdc3562425f48b4a727 | [
"BSD-3-Clause"
] | 1 | 2016-08-15T11:55:32.000Z | 2016-08-15T11:55:32.000Z | src/math/test_heightfield.cc | mnvl/scratch | 7717772e0b9a85c8feb73fdc3562425f48b4a727 | [
"BSD-3-Clause"
] | null | null | null | src/math/test_heightfield.cc | mnvl/scratch | 7717772e0b9a85c8feb73fdc3562425f48b4a727 | [
"BSD-3-Clause"
] | null | null | null |
#include <boost/test/unit_test.hpp>
#include <boost/cstdint.hpp>
#include <boost/scoped_ptr.hpp>
#include <boost/archive/binary_iarchive.hpp>
#include <boost/archive/binary_oarchive.hpp>
#include <boost/serialization/vector.hpp>
#include "heightfield.h"
BOOST_AUTO_TEST_SUITE(test_triangle)
BOOST_AUTO_TEST_CASE(test_... | 26.467742 | 108 | 0.582064 |
7cb2ddc579a2d08161f030133cc2d6295ec37fb1 | 89,722 | cpp | C++ | src/reader.cpp | david-cortes/readsparse | 1d816bdccd628788027041e92d83e8e20702de86 | [
"BSD-2-Clause"
] | 5 | 2021-01-10T06:22:11.000Z | 2021-04-13T12:59:40.000Z | src/reader.cpp | david-cortes/readsparse | 1d816bdccd628788027041e92d83e8e20702de86 | [
"BSD-2-Clause"
] | 1 | 2021-01-10T04:42:17.000Z | 2021-01-10T10:55:58.000Z | src/reader.cpp | david-cortes/readsparse | 1d816bdccd628788027041e92d83e8e20702de86 | [
"BSD-2-Clause"
] | 1 | 2021-04-13T12:59:41.000Z | 2021-04-13T12:59:41.000Z | /* Generated through 'instantiate_templates.py', do not edit manually. */
/* Read and write sparse matrices in text format:
* <labels(s)> <column>:<value> <column>:<value> ...
*
* BSD 2-Clause License
* Copyright (c) 2021, David Cortes
* All rights reserved.
* Redistribution and use in source a... | 23.058854 | 84 | 0.617441 |
7cb574e9ac5f67235a3ff3c89c8c918f75508ed3 | 1,546 | cpp | C++ | internalconnector/internalrastercoverageconnector.cpp | ridoo/IlwisCore | 9d9837507d804a4643545a03fd40d9b4d0eaee45 | [
"Apache-2.0"
] | null | null | null | internalconnector/internalrastercoverageconnector.cpp | ridoo/IlwisCore | 9d9837507d804a4643545a03fd40d9b4d0eaee45 | [
"Apache-2.0"
] | null | null | null | internalconnector/internalrastercoverageconnector.cpp | ridoo/IlwisCore | 9d9837507d804a4643545a03fd40d9b4d0eaee45 | [
"Apache-2.0"
] | null | null | null | #include "kernel.h"
#include "raster.h"
#include "numericrange.h"
#include "numericdomain.h"
#include "columndefinition.h"
#include "table.h"
#include "connectorinterface.h"
#include "mastercatalog.h"
#include "ilwisobjectconnector.h"
#include "catalogexplorer.h"
#include "catalogconnector.h"
#include "internalrasterco... | 27.607143 | 174 | 0.76326 |
7cbc334cb01636a1bcb59b8de0f8ff2fcf0c0a52 | 2,385 | cpp | C++ | src/D3D9Hook.cpp | muhopensores/dmc3-inputs-thing | 2cb97f30c39bbe8d6bbe724f61d932a1fdaa1719 | [
"MIT"
] | 5 | 2021-06-09T23:53:28.000Z | 2022-02-21T06:09:41.000Z | src/D3D9Hook.cpp | muhopensores/dmc3-inputs-thing | 2cb97f30c39bbe8d6bbe724f61d932a1fdaa1719 | [
"MIT"
] | 9 | 2021-06-09T23:52:43.000Z | 2021-09-17T14:05:47.000Z | src/D3D9Hook.cpp | muhopensores/dmc3-inputs-thing | 2cb97f30c39bbe8d6bbe724f61d932a1fdaa1719 | [
"MIT"
] | null | null | null | #include <algorithm>
#include <spdlog/spdlog.h>
#include "D3D9Hook.hpp"
using namespace std;
static D3D9Hook* g_d3d9_hook = nullptr;
D3D9Hook::~D3D9Hook() {
unhook();
}
uintptr_t end_scene_jmp_ret = 0;
__declspec(naked) void end_scene_hook(void) {
__asm {
pushad
push eax
call D3D9Hook::end_scene
popad... | 21.681818 | 166 | 0.72369 |
7cbc953df2964ce38192ac835e350fa99d16ce84 | 947 | cpp | C++ | Strings/LengthOfLastWord58.cpp | devangi2000/Data-Structures-Algorithms-Handbook | ce0f00de89af5da7f986e65089402dc6908a09b5 | [
"MIT"
] | 38 | 2021-10-14T09:36:53.000Z | 2022-01-27T02:36:19.000Z | Strings/LengthOfLastWord58.cpp | devangi2000/Data-Structures-Algorithms-Handbook | ce0f00de89af5da7f986e65089402dc6908a09b5 | [
"MIT"
] | null | null | null | Strings/LengthOfLastWord58.cpp | devangi2000/Data-Structures-Algorithms-Handbook | ce0f00de89af5da7f986e65089402dc6908a09b5 | [
"MIT"
] | 4 | 2021-12-06T15:47:12.000Z | 2022-02-04T04:25:00.000Z | // Given a string s consisting of some words separated by some number of spaces, return the length of the last word in the string.
// A word is a maximal substring consisting of non-space characters only.
// Example 1:
// Input: s = "Hello World"
// Output: 5
// Explanation: The last word is "World" with length 5.... | 32.655172 | 131 | 0.600845 |
7cbdbb18250cf7d6bfd0461342c062690aebbb75 | 579 | cpp | C++ | threading.cpp | brandonbraun653/TeamSOAR | 472c7e900de20545476e76395ebe89ab5467ae11 | [
"MIT"
] | null | null | null | threading.cpp | brandonbraun653/TeamSOAR | 472c7e900de20545476e76395ebe89ab5467ae11 | [
"MIT"
] | null | null | null | threading.cpp | brandonbraun653/TeamSOAR | 472c7e900de20545476e76395ebe89ab5467ae11 | [
"MIT"
] | null | null | null | #include "threading.hpp"
QueueHandle_t qAHRS = xQueueCreate(1, sizeof(AHRSData_t));
SemaphoreHandle_t ahrsBufferMutex = xSemaphoreCreateMutex();
boost::container::vector<void*> TaskHandle(TOTAL_TASK_SIZE);
BaseType_t xTaskSendMessage(TaskIndex idx, uint32_t msg)
{
if (TaskHandle[idx])
return xTaskNotify(TaskHand... | 24.125 | 80 | 0.787565 |
7cbf4c55beb83cc24a403f56b1a7342e27cc14d9 | 896 | cpp | C++ | projects/basic microcontroller/source/main.cpp | ankhbayar59/SJSU-Dev2 | 423e36298b7ef53762348299f0ffca50b31c2dfe | [
"Apache-2.0"
] | null | null | null | projects/basic microcontroller/source/main.cpp | ankhbayar59/SJSU-Dev2 | 423e36298b7ef53762348299f0ffca50b31c2dfe | [
"Apache-2.0"
] | null | null | null | projects/basic microcontroller/source/main.cpp | ankhbayar59/SJSU-Dev2 | 423e36298b7ef53762348299f0ffca50b31c2dfe | [
"Apache-2.0"
] | null | null | null | #include <cstdint>
#include "Bus.hpp"
Bus bus;
void irs()
{
LOG_INFO("Interrupt Detected\n");
uint8_t data5;
uint8_t address10;
uint8_t address11;
address10 = 0;
address11 = 1;
bus.polling(address10, address11);
data5 = 15;
bus.io_write(address10, data5);
}
int main()
{
sjsu::lpc40xx::Gpio interr... | 17.230769 | 66 | 0.654018 |
7cbf6b75bd6ea36ecdadc7160eb5608779872ea9 | 40,214 | cpp | C++ | lib/klc3/Core/Executor.cpp | liuzikai/klc3 | 0c7c1504158f1cce3e6bff32f69b4cb3067cffff | [
"NCSA"
] | null | null | null | lib/klc3/Core/Executor.cpp | liuzikai/klc3 | 0c7c1504158f1cce3e6bff32f69b4cb3067cffff | [
"NCSA"
] | null | null | null | lib/klc3/Core/Executor.cpp | liuzikai/klc3 | 0c7c1504158f1cce3e6bff32f69b4cb3067cffff | [
"NCSA"
] | null | null | null | //
// Created by liuzikai on 3/19/20.
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
#include "klc3/Core/Executor.h"
#include "klc3/Generation/ReportFormatter.h"
#define LOG_BR_FORK 0
#define LOG_SYM_ADDR_FORK 0
#define DISABLE_FORK_ON_SYM_ADDR... | 37.269694 | 120 | 0.560501 |
7cbfc7ce81026348266e9ae8ec20990e911e02ea | 13,300 | cpp | C++ | packages/utility/archive/test/tstHDF5ArchiveTupleTypes.cpp | bam241/FRENSIE | e1760cd792928699c84f2bdce70ff54228e88094 | [
"BSD-3-Clause"
] | 10 | 2019-11-14T19:58:30.000Z | 2021-04-04T17:44:09.000Z | packages/utility/archive/test/tstHDF5ArchiveTupleTypes.cpp | bam241/FRENSIE | e1760cd792928699c84f2bdce70ff54228e88094 | [
"BSD-3-Clause"
] | 43 | 2020-03-03T19:59:20.000Z | 2021-09-08T03:36:08.000Z | packages/utility/archive/test/tstHDF5ArchiveTupleTypes.cpp | bam241/FRENSIE | e1760cd792928699c84f2bdce70ff54228e88094 | [
"BSD-3-Clause"
] | 6 | 2020-02-12T17:37:07.000Z | 2020-09-08T18:59:51.000Z | //---------------------------------------------------------------------------//
//!
//! \file tstHDF5ArchiveTupleTypes.cpp
//! \author Alex Robinson
//! \brief HDF5 archive tuple type unit tests
//!
//---------------------------------------------------------------------------//
// Std Lib Includes
#include <iostrea... | 40.060241 | 258 | 0.635338 |
7cc25b5cc7f475ba8cd715a85093f9e839f362d0 | 15,286 | cpp | C++ | src/src/tests/suites/mutation_test_bad.cpp | geneial/geneial | 5e525c32b7c1e1e88788644e448e9234c93b55e2 | [
"MIT"
] | 5 | 2015-08-25T15:40:09.000Z | 2020-03-15T19:33:22.000Z | src/src/tests/suites/mutation_test_bad.cpp | geneial/geneial | 5e525c32b7c1e1e88788644e448e9234c93b55e2 | [
"MIT"
] | null | null | null | src/src/tests/suites/mutation_test_bad.cpp | geneial/geneial | 5e525c32b7c1e1e88788644e448e9234c93b55e2 | [
"MIT"
] | 3 | 2019-01-24T13:14:51.000Z | 2022-01-03T07:30:20.000Z | #define BOOST_TEST_DYN_LINK
#define BOOST_TEST_MODULE operations/mutation
#include <boost/test/unit_test.hpp>
#include <geneial/algorithm/BaseGeneticAlgorithm.h>
#include <geneial/core/fitness/Fitness.h>
#include <geneial/core/fitness/FitnessEvaluator.h>
#include <geneial/core/population/PopulationSettings.h>
#incl... | 45.766467 | 171 | 0.715753 |
7cc4d6366a91a8a61ad3decd9b770103ff9db9c1 | 172 | cpp | C++ | Tools/STM32FW/STM32Cube_FW_F7_V1.16.2/Projects/STM32F769I_EVAL/Demonstrations/TouchGFX/Gui/generated/fonts/src/Font_Asap_Regular_13_4bpp.cpp | ramkumarkoppu/NUCLEO-F767ZI-ESW | 85e129d71ee8eccbd0b94b5e07e75b6b91679ee8 | [
"MIT"
] | null | null | null | Tools/STM32FW/STM32Cube_FW_F7_V1.16.2/Projects/STM32F769I_EVAL/Demonstrations/TouchGFX/Gui/generated/fonts/src/Font_Asap_Regular_13_4bpp.cpp | ramkumarkoppu/NUCLEO-F767ZI-ESW | 85e129d71ee8eccbd0b94b5e07e75b6b91679ee8 | [
"MIT"
] | null | null | null | Tools/STM32FW/STM32Cube_FW_F7_V1.16.2/Projects/STM32F769I_EVAL/Demonstrations/TouchGFX/Gui/generated/fonts/src/Font_Asap_Regular_13_4bpp.cpp | ramkumarkoppu/NUCLEO-F767ZI-ESW | 85e129d71ee8eccbd0b94b5e07e75b6b91679ee8 | [
"MIT"
] | null | null | null | #include <touchgfx/hal/Types.hpp>
FONT_LOCATION_FLASH_PRAGMA
KEEP extern const uint8_t unicodes_Asap_Regular_13_4bpp[] FONT_LOCATION_FLASH_ATTRIBUTE = {
0 // No glyphs
};
| 24.571429 | 91 | 0.819767 |
7cc6263b91af91347ca89106b29f0e127c9f61b6 | 2,524 | cpp | C++ | windows/cpp/samples/CameraToDVD/MuxedStream.cpp | dvdbuilder/dvdbuilder-samples | 8d2b472bd0af899fa342437bb41b33ef8603e0aa | [
"MIT"
] | null | null | null | windows/cpp/samples/CameraToDVD/MuxedStream.cpp | dvdbuilder/dvdbuilder-samples | 8d2b472bd0af899fa342437bb41b33ef8603e0aa | [
"MIT"
] | null | null | null | windows/cpp/samples/CameraToDVD/MuxedStream.cpp | dvdbuilder/dvdbuilder-samples | 8d2b472bd0af899fa342437bb41b33ef8603e0aa | [
"MIT"
] | null | null | null | #include "stdafx.h"
#include "MuxedStream.h"
using namespace primo::dvdbuilder::VR;
MuxedStreamCB::MuxedStreamCB()
{
filename[0] = L'\0';
file = NULL;
MainWindow = NULL;
Reset();
}
MuxedStreamCB::~MuxedStreamCB()
{
Reset();
}
void MuxedStreamCB::Reset()
{
if (file)
{
fclose(file);
... | 16.496732 | 95 | 0.633914 |
7cc88522847226392bd3715ead508683b3047088 | 1,666 | cc | C++ | PhysicsTools/CandAlgos/plugins/EventShapeVarsProducer.cc | pasmuss/cmssw | 566f40c323beef46134485a45ea53349f59ae534 | [
"Apache-2.0"
] | null | null | null | PhysicsTools/CandAlgos/plugins/EventShapeVarsProducer.cc | pasmuss/cmssw | 566f40c323beef46134485a45ea53349f59ae534 | [
"Apache-2.0"
] | null | null | null | PhysicsTools/CandAlgos/plugins/EventShapeVarsProducer.cc | pasmuss/cmssw | 566f40c323beef46134485a45ea53349f59ae534 | [
"Apache-2.0"
] | null | null | null | #include "PhysicsTools/CandAlgos/plugins/EventShapeVarsProducer.h"
#include "FWCore/MessageLogger/interface/MessageLogger.h"
#include "PhysicsTools/CandUtils/interface/Thrust.h"
EventShapeVarsProducer::EventShapeVarsProducer(const edm::ParameterSet& cfg)
{
srcToken_ = consumes<edm::View<reco::Candidate> >(cfg.getP... | 32.666667 | 92 | 0.728091 |
7ccab8672dba2e6cc86748ba2213e2e6c7a12468 | 2,115 | hpp | C++ | src/mbgl/renderer/bucket.hpp | zxlee618/mapbox-gl-native | 04c70f55a534ca7cb4bb5358da3217329643a0f0 | [
"BSL-1.0",
"Apache-2.0"
] | 6 | 2019-06-17T05:41:03.000Z | 2022-01-20T13:16:14.000Z | src/mbgl/renderer/bucket.hpp | zxlee618/mapbox-gl-native | 04c70f55a534ca7cb4bb5358da3217329643a0f0 | [
"BSL-1.0",
"Apache-2.0"
] | null | null | null | src/mbgl/renderer/bucket.hpp | zxlee618/mapbox-gl-native | 04c70f55a534ca7cb4bb5358da3217329643a0f0 | [
"BSL-1.0",
"Apache-2.0"
] | 4 | 2019-08-30T07:40:17.000Z | 2022-01-13T09:36:55.000Z | #pragma once
#include <mbgl/util/noncopyable.hpp>
#include <mbgl/tile/geometry_tile_data.hpp>
#include <mbgl/style/layer_type.hpp>
#include <mbgl/style/image_impl.hpp>
#include <mbgl/renderer/image_atlas.hpp>
#include <atomic>
namespace mbgl {
namespace gl {
class Context;
} // namespace gl
class RenderLayer;
class... | 28.581081 | 103 | 0.665248 |
7ccf6d8cd7e5457a4ff6c7e03c2a5a56cf69237e | 809 | cpp | C++ | q206-Reverse-Linked-List-recursive-optimized.cpp | risyomei/leetcode | bd0eba2d31eca48c182fc328fab02aac61c15366 | [
"MIT"
] | null | null | null | q206-Reverse-Linked-List-recursive-optimized.cpp | risyomei/leetcode | bd0eba2d31eca48c182fc328fab02aac61c15366 | [
"MIT"
] | null | null | null | q206-Reverse-Linked-List-recursive-optimized.cpp | risyomei/leetcode | bd0eba2d31eca48c182fc328fab02aac61c15366 | [
"MIT"
] | null | null | null | /**
* Definition for singly-linked list.
* struct ListNode {
* int val;
* ListNode *next;
* ListNode() : val(0), next(nullptr) {}
* ListNode(int x) : val(x), next(nullptr) {}
* ListNode(int x, ListNode *next) : val(x), next(next) {}
* };
*/
class Solution {
public:
ListNode* reverse... | 22.472222 | 62 | 0.454883 |
7cd2b544adf16108232c989a22345f250bc5d1f6 | 4,440 | cpp | C++ | src/Trinity.C/src/Storage/MTHash/MTHash.DiskIO.cpp | erinloy/GraphEngine | 1a913c18043192c597d48e0b4e77b0a62cd6a10e | [
"MIT"
] | 370 | 2019-05-08T07:40:52.000Z | 2022-03-28T15:29:18.000Z | src/Trinity.C/src/Storage/MTHash/MTHash.DiskIO.cpp | qingzhu521/GraphEngine | 56d98c09b8e9a55b4397823f20cf29263c8857b5 | [
"MIT"
] | 55 | 2019-05-20T09:01:48.000Z | 2022-03-31T23:05:23.000Z | src/Trinity.C/src/Storage/MTHash/MTHash.DiskIO.cpp | qingzhu521/GraphEngine | 56d98c09b8e9a55b4397823f20cf29263c8857b5 | [
"MIT"
] | 83 | 2019-05-15T14:16:23.000Z | 2022-03-06T07:04:10.000Z | // Graph Engine
// Copyright (c) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE.md file in the project root for full license information.
//
#include "Storage/MTHash/MTHash.h"
#include "Storage/MemoryTrunk/MemoryTrunk.h"
using namespace Trinity::IO;
namespace Storage
{
bool MTHash::... | 38.608696 | 116 | 0.592568 |
7cd6712e6afe46868512b116b3c323f376e8e193 | 2,240 | cpp | C++ | code/engine.vc2008/xrGame/items/WeaponDispersion.cpp | Rikoshet-234/xray-oxygen | eaac3fa4780639152684f3251b8b4452abb8e439 | [
"Apache-2.0"
] | 7 | 2018-03-27T12:36:07.000Z | 2020-06-26T11:31:52.000Z | code/engine.vc2008/xrGame/items/WeaponDispersion.cpp | Rikoshet-234/xray-oxygen | eaac3fa4780639152684f3251b8b4452abb8e439 | [
"Apache-2.0"
] | 2 | 2018-05-26T23:17:14.000Z | 2019-04-14T18:33:27.000Z | code/engine.vc2008/xrGame/items/WeaponDispersion.cpp | Rikoshet-234/xray-oxygen | eaac3fa4780639152684f3251b8b4452abb8e439 | [
"Apache-2.0"
] | 3 | 2019-10-20T19:35:34.000Z | 2022-02-28T01:42:10.000Z | // WeaponDispersion.cpp: разбос при стрельбе
//
//////////////////////////////////////////////////////////////////////
#include "stdafx.h"
#include "items/Weapon.h"
#include "inventoryowner.h"
#include "actor.h"
#include "inventory_item_impl.h"
#include "actoreffector.h"
#include "effectorshot.h"
//возвращает 1, ... | 28.35443 | 110 | 0.725446 |
7cd69f6f66570ee16e0dfc4a00208ac3e4fce49a | 1,924 | cpp | C++ | Algorithms/Implementation/The_Bomberman_Game/main.cpp | ugurcan-sonmez-95/HackerRank_Problems | 187d83422128228c241f279096386df5493d539d | [
"MIT"
] | null | null | null | Algorithms/Implementation/The_Bomberman_Game/main.cpp | ugurcan-sonmez-95/HackerRank_Problems | 187d83422128228c241f279096386df5493d539d | [
"MIT"
] | null | null | null | Algorithms/Implementation/The_Bomberman_Game/main.cpp | ugurcan-sonmez-95/HackerRank_Problems | 187d83422128228c241f279096386df5493d539d | [
"MIT"
] | null | null | null | // The Bomberman Game - Solution
#include <iostream>
#include <vector>
std::vector<std::string> bomberMan(const int r, const int c, const int n, const std::vector<std::string> &grid) {
std::vector<std::string> finalGrid1 = grid, finalGrid2, finalGrid3;
for (int i{}; i < r; i++)
for (int j{}; j < c; j... | 28.716418 | 113 | 0.37526 |
7cd798d6286c3458b708f1391f6a55e9c9d78390 | 27,815 | hpp | C++ | common/cmdline.hpp | Mainvooid/common | fd8f966ba283cb8df619166b41c76fb0cfc6a4c7 | [
"MIT"
] | null | null | null | common/cmdline.hpp | Mainvooid/common | fd8f966ba283cb8df619166b41c76fb0cfc6a4c7 | [
"MIT"
] | null | null | null | common/cmdline.hpp | Mainvooid/common | fd8f966ba283cb8df619166b41c76fb0cfc6a4c7 | [
"MIT"
] | null | null | null | /*
@brief a simple command line parser
@author guobao.v@gmail.com
*/
#ifndef _COMMON_CMDLINE_HPP_
#define _COMMON_CMDLINE_HPP_
#include <common/precomm.hpp>
#include <algorithm>
#ifdef __GNUC__
#include <cxxabi.h>
#endif
/**
@addtogroup common
@{
@defgroup cmdline cmdline - command line parser
@{
... | 34.595771 | 125 | 0.39112 |
7cd8af0d239035028cee9ef266413830d55c0fe1 | 969 | cpp | C++ | shell.cpp | s1023006/POSD | 5c12966e967607d9ea06b0a55e799afe8b1c242e | [
"MIT"
] | null | null | null | shell.cpp | s1023006/POSD | 5c12966e967607d9ea06b0a55e799afe8b1c242e | [
"MIT"
] | null | null | null | shell.cpp | s1023006/POSD | 5c12966e967607d9ea06b0a55e799afe8b1c242e | [
"MIT"
] | null | null | null | #include "parser.h"
#include "scanner.h"
#include <iostream>
using namespace std;
int main(int argc, char **argv)
{
string input, context = "";
Parser *parser;
while (true)
{
do
{
if (context == "")
cout << "?- ";
else
... | 24.846154 | 85 | 0.401445 |
7cd96b7b5d529d013f3d3766f874b5fdcbf4943c | 196 | cpp | C++ | samplers/src/simple_sampler.cpp | ton/lightbox | d4c6ab9849fcafa90c5c3795cb678b8f8ba282fb | [
"MIT"
] | null | null | null | samplers/src/simple_sampler.cpp | ton/lightbox | d4c6ab9849fcafa90c5c3795cb678b8f8ba282fb | [
"MIT"
] | null | null | null | samplers/src/simple_sampler.cpp | ton/lightbox | d4c6ab9849fcafa90c5c3795cb678b8f8ba282fb | [
"MIT"
] | null | null | null | #include "samplers/itf/simple_sampler.h"
using namespace lb;
SimpleSampler::SimpleSampler(
const Point2d& upperLeft, const Point2d& bottomRight):
Sampler(upperLeft, bottomRight)
{
}
| 19.6 | 62 | 0.744898 |
7cd9cb30ae181e4ce06afb3e9ea850af4f1ed71d | 6,242 | cc | C++ | mysql-server/storage/ndb/plugin/ndb_schema_result_table.cc | silenc3502/MYSQL-Arch-Doc-Summary | fcc6bb65f72a385b9f56debc9b2c00cee5914bae | [
"MIT"
] | null | null | null | mysql-server/storage/ndb/plugin/ndb_schema_result_table.cc | silenc3502/MYSQL-Arch-Doc-Summary | fcc6bb65f72a385b9f56debc9b2c00cee5914bae | [
"MIT"
] | null | null | null | mysql-server/storage/ndb/plugin/ndb_schema_result_table.cc | silenc3502/MYSQL-Arch-Doc-Summary | fcc6bb65f72a385b9f56debc9b2c00cee5914bae | [
"MIT"
] | null | null | null | /*
Copyright (c) 2018, 2019, 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, version 2.0,
as published by the Free Software Foundation.
This program is also distributed with cer... | 34.10929 | 79 | 0.73422 |
7cdad3ebcc2bf57b9787e69f1a92a256c4646439 | 990 | cpp | C++ | engine/src/engine/core/layers_stack.cpp | DmitryK579/Tank-Assault | f20cee73fdaa1e1d34f24cc681d781a26a7311a1 | [
"MIT"
] | null | null | null | engine/src/engine/core/layers_stack.cpp | DmitryK579/Tank-Assault | f20cee73fdaa1e1d34f24cc681d781a26a7311a1 | [
"MIT"
] | null | null | null | engine/src/engine/core/layers_stack.cpp | DmitryK579/Tank-Assault | f20cee73fdaa1e1d34f24cc681d781a26a7311a1 | [
"MIT"
] | 2 | 2021-12-16T13:04:18.000Z | 2022-01-07T14:06:06.000Z | #include "pch.h"
#include "layers_stack.h"
engine::layers_stack::~layers_stack()
{
for(auto* layer : m_layers)
{
layer->on_detach();
delete layer;
}
}
void engine::layers_stack::push_layer(layer* layer)
{
m_layers.emplace(m_layers.begin() + m_layers_insert_index, layer);
m_layers_... | 21.521739 | 70 | 0.638384 |
7cdf425a0f02d64151bfcb78567242dbbd288976 | 431 | hpp | C++ | splayer_ios/splayer_ios/native/Person.hpp | biezhihua/splayer | 82f5b160b30c2d99ba400f5b676dd23795e081c7 | [
"Apache-2.0"
] | 4 | 2019-08-14T08:57:05.000Z | 2019-11-16T18:22:23.000Z | splayer_ios/splayer_ios/native/Person.hpp | biezhihua/SPlayer | 82f5b160b30c2d99ba400f5b676dd23795e081c7 | [
"Apache-2.0"
] | null | null | null | splayer_ios/splayer_ios/native/Person.hpp | biezhihua/SPlayer | 82f5b160b30c2d99ba400f5b676dd23795e081c7 | [
"Apache-2.0"
] | 1 | 2019-11-16T18:22:24.000Z | 2019-11-16T18:22:24.000Z | #ifndef Person_hpp
#define Person_hpp
#include <stdio.h>
#include <iostream>
using namespace std;
class Person {
public:
string name;
int age;
bool sex;
public:
//默认构造函数,相当于init
Person();
//带参数的构造函数,相当于带参数的init
Person(const char* name , const int age , const bool sex);
//析构函... | 13.903226 | 62 | 0.617169 |
7ce02368bf5c246ef5364a904b9f1feac6faefc4 | 1,855 | cpp | C++ | flashlight/dataset/ResampleDataset.cpp | josephmisiti/flashlight | a1349e84c9be19ecbbdc28d2d5a8eeeaaaa06273 | [
"MIT"
] | 2 | 2020-12-27T18:38:44.000Z | 2021-09-10T20:55:25.000Z | flashlight/dataset/ResampleDataset.cpp | josephmisiti/flashlight | a1349e84c9be19ecbbdc28d2d5a8eeeaaaa06273 | [
"MIT"
] | null | null | null | flashlight/dataset/ResampleDataset.cpp | josephmisiti/flashlight | a1349e84c9be19ecbbdc28d2d5a8eeeaaaa06273 | [
"MIT"
] | null | null | null | /**
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
#include "ResampleDataset.h"
#include <algorithm>
#include <numeric>
namespace {
std::vector<int64_t> makeIdentityPermutation(i... | 27.279412 | 77 | 0.709434 |
7ce095b7f6667f84a76d62e0e9023d433e372d20 | 7,051 | cpp | C++ | src/RSL/UnitTest/RslMigration/TestHarness/main.cpp | nkindberg/RSL | f5907fb694c00ebcc6d6ad54e72e9f8a9b66ff0a | [
"MIT"
] | 58 | 2018-03-21T09:55:08.000Z | 2022-03-25T07:21:42.000Z | src/RSL/UnitTest/RslMigration/TestHarness/main.cpp | nkindberg/RSL | f5907fb694c00ebcc6d6ad54e72e9f8a9b66ff0a | [
"MIT"
] | 2 | 2019-01-29T05:56:48.000Z | 2019-05-23T04:44:28.000Z | src/RSL/UnitTest/RslMigration/TestHarness/main.cpp | nkindberg/RSL | f5907fb694c00ebcc6d6ad54e72e9f8a9b66ff0a | [
"MIT"
] | 17 | 2018-03-21T12:10:47.000Z | 2022-03-20T03:24:37.000Z | #define _WINSOCKAPI_
#include <windows.h>
#include <stdio.h>
#include <list>
#include "libfuncs.h"
#include "logging.h"
using namespace std;
using namespace RSLibImpl;
#define NUM_REPLICAS 5
#define MAX_CMD_LEN 256
char procTitles[NUM_REPLICAS][256];
volatile bool endTest;
volatile bool endTestCompleted;
bool Start... | 30.392241 | 102 | 0.584598 |
7ceae8a4f83a95e9ee841983fd42e6251bcedc57 | 8,606 | hpp | C++ | include/Mahi/Com/SocketSelector.hpp | chip5441/mahi-com | fc7efcc5d7e9ff995303bbc162e694f25f47d6dd | [
"MIT"
] | 1 | 2021-09-22T08:37:01.000Z | 2021-09-22T08:37:01.000Z | include/Mahi/Com/SocketSelector.hpp | chip5441/mahi-com | fc7efcc5d7e9ff995303bbc162e694f25f47d6dd | [
"MIT"
] | 1 | 2020-11-16T04:05:47.000Z | 2020-11-16T04:05:47.000Z | include/Mahi/Com/SocketSelector.hpp | chip5441/mahi-com | fc7efcc5d7e9ff995303bbc162e694f25f47d6dd | [
"MIT"
] | 2 | 2020-12-21T09:28:26.000Z | 2021-09-17T03:08:19.000Z | // MIT License
//
// MEL - Mechatronics Engine & Library
// Copyright (c) 2019 Mechatronics and Haptic Interfaces Lab - Rice University
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software w... | 35.415638 | 80 | 0.617128 |
7cee48ebae861eb413998922865af85c7c97f2c7 | 1,119 | cpp | C++ | uva/10855.cpp | btjanaka/competitive-programming-solutions | e3df47c18451802b8521ebe61ca71ee348e5ced7 | [
"MIT"
] | 3 | 2020-06-25T21:04:02.000Z | 2021-05-12T03:33:19.000Z | uva/10855.cpp | btjanaka/competitive-programming-solutions | e3df47c18451802b8521ebe61ca71ee348e5ced7 | [
"MIT"
] | null | null | null | uva/10855.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: (UVa) 10855
#include <bits/stdc++.h>
#define GET(x) scanf("%d", &x)
#define GED(x) scanf("%lf", &x)
typedef long long ll;
using namespace std;
#define SZ 5000
int b, s;
char big[SZ][SZ];
char small[SZ][SZ];
char small2[SZ][SZ];
void rotate() {
for (int i = 0; i < s; +... | 21.941176 | 67 | 0.446828 |
7cf0c63a6872c694335811d2bd24174c58e5614b | 415 | hpp | C++ | tests/thread/tests.hpp | cppfw/nitki | c567c1b60755491bc0c9c53321d175c4df00fc89 | [
"MIT"
] | null | null | null | tests/thread/tests.hpp | cppfw/nitki | c567c1b60755491bc0c9c53321d175c4df00fc89 | [
"MIT"
] | 1 | 2021-04-09T07:35:37.000Z | 2021-04-09T07:35:37.000Z | tests/thread/tests.hpp | cppfw/nitki | c567c1b60755491bc0c9c53321d175c4df00fc89 | [
"MIT"
] | 1 | 2020-12-15T01:38:09.000Z | 2020-12-15T01:38:09.000Z | #pragma once
namespace TestJoinBeforeAndAfterThreadHasFinished{
void Run();
}//~namespace
//====================
//Test many threads
//====================
namespace TestManyThreads{
void Run();
}//~namespace
//==========================
//Test immediate thread exit
//==========================
namespace TestImmed... | 15.961538 | 50 | 0.575904 |
7cf0e8b4995c34dca1085b51efd5757a1d8b27f2 | 165 | cpp | C++ | src/Task.cpp | amrtechguy/My-Tasks | 9ae9cc08dc78e7852ccd287d75d8bea14e2fb69b | [
"MIT"
] | null | null | null | src/Task.cpp | amrtechguy/My-Tasks | 9ae9cc08dc78e7852ccd287d75d8bea14e2fb69b | [
"MIT"
] | null | null | null | src/Task.cpp | amrtechguy/My-Tasks | 9ae9cc08dc78e7852ccd287d75d8bea14e2fb69b | [
"MIT"
] | null | null | null | #include <iostream>
#include "../include/Task.h"
Task::Task(std::string content_val)
: content {content_val}
{}
std::string Task::get()
{
return content;
} | 15 | 35 | 0.660606 |
7cf265d3489293daa331751f47b69f65516d8386 | 698 | cpp | C++ | Big Number/Division.cpp | MrinmoiHossain/Algorithms | d29a10316219f320b0116ef3b412457a1c1aea26 | [
"MIT"
] | 2 | 2017-06-29T14:04:14.000Z | 2020-03-21T12:48:21.000Z | Big Number/Division.cpp | MrinmoiHossain/Algorithms | d29a10316219f320b0116ef3b412457a1c1aea26 | [
"MIT"
] | null | null | null | Big Number/Division.cpp | MrinmoiHossain/Algorithms | d29a10316219f320b0116ef3b412457a1c1aea26 | [
"MIT"
] | 2 | 2020-03-31T15:45:19.000Z | 2021-09-15T15:51:06.000Z | #include <bits/stdc++.h>
#define LL long long int
using namespace std;
string division(string a, LL b);
int main(void)
{
int T;
cin >> T;
for(int i = 1; i <= T; i++){
string a;
LL b;
cin >> a >> b;
cout << division(a, b) << endl;
}
return 0;
}
string division(st... | 15.173913 | 40 | 0.395415 |
7cf4fc1fa673ecf24f4cfb082943b0eb8ec5af76 | 520 | cpp | C++ | src/modules/osg/generated_code/ApplicationUsageProxy.pypp.cpp | JaneliaSciComp/osgpyplusplus | a5ae3f69c7e9101a32d8cc95fe680dab292f75ac | [
"BSD-3-Clause"
] | 17 | 2015-06-01T12:19:46.000Z | 2022-02-12T02:37:48.000Z | src/modules/osg/generated_code/ApplicationUsageProxy.pypp.cpp | JaneliaSciComp/osgpyplusplus | a5ae3f69c7e9101a32d8cc95fe680dab292f75ac | [
"BSD-3-Clause"
] | 7 | 2015-07-04T14:36:49.000Z | 2015-07-23T18:09:49.000Z | src/modules/osg/generated_code/ApplicationUsageProxy.pypp.cpp | JaneliaSciComp/osgpyplusplus | a5ae3f69c7e9101a32d8cc95fe680dab292f75ac | [
"BSD-3-Clause"
] | 7 | 2015-11-28T17:00:31.000Z | 2020-01-08T07:00:59.000Z | // This file has been generated by Py++.
#include "boost/python.hpp"
#include "wrap_osg.h"
#include "applicationusageproxy.pypp.hpp"
namespace bp = boost::python;
void register_ApplicationUsageProxy_class(){
bp::class_< osg::ApplicationUsageProxy >( "ApplicationUsageProxy", bp::init< osg::ApplicationUsage::Type... | 37.142857 | 304 | 0.728846 |
7cf7478851f0f1e06af485d309aab570636be6a8 | 1,842 | cpp | C++ | da/min/OPTI/Solvers/Source/scip/scipeventmex.cpp | Heliot7/open-set-da | cd3c8c9a2491dd7165259e8fde769046f735a5b8 | [
"BSD-3-Clause"
] | 83 | 2017-11-21T00:50:05.000Z | 2022-03-18T00:54:25.000Z | da/min/OPTI/Solvers/Source/scip/scipeventmex.cpp | Heliot7/open-set-da | cd3c8c9a2491dd7165259e8fde769046f735a5b8 | [
"BSD-3-Clause"
] | 6 | 2017-11-21T00:50:44.000Z | 2021-09-07T13:43:14.000Z | da/min/OPTI/Solvers/Source/scip/scipeventmex.cpp | Heliot7/open-set-da | cd3c8c9a2491dd7165259e8fde769046f735a5b8 | [
"BSD-3-Clause"
] | 15 | 2018-03-06T00:01:29.000Z | 2021-07-28T05:18:16.000Z | /* SCIPMEX - A MATLAB MEX Interface to SCIP
* Released Under the BSD 3-Clause License:
* http://www.i2c2.aut.ac.nz/Wiki/OPTI/index.php/DL/License
*
* Copyright (C) Jonathan Currie 2013
* www.i2c2.aut.ac.nz
*/
#include "scipmex.h"
#include "mex.h"
#include <signal.h>
//Ctrl-C Detection
#ifdef __cplusplus
ext... | 28.338462 | 129 | 0.716069 |
7cfb7c135873789f76c032b27d40dd046117f774 | 1,163 | hpp | C++ | src/has_cycle.hpp | deepgrace/giant | 4070c79892957c8e9244eb7a3d7690a25970f769 | [
"BSL-1.0"
] | 6 | 2019-04-02T07:47:37.000Z | 2021-05-31T08:01:04.000Z | src/has_cycle.hpp | deepgrace/giant | 4070c79892957c8e9244eb7a3d7690a25970f769 | [
"BSL-1.0"
] | null | null | null | src/has_cycle.hpp | deepgrace/giant | 4070c79892957c8e9244eb7a3d7690a25970f769 | [
"BSL-1.0"
] | 4 | 2019-04-15T08:52:17.000Z | 2022-03-25T10:29:57.000Z | //
// Copyright (c) 2016-present DeepGrace (complex dot invoke at gmail dot com)
//
// 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)
//
// Official repository: https://github.com/deepgrace/giant
//
#include <memory>... | 22.365385 | 90 | 0.505589 |
cfab33d4012660362d58479297385300f35539d5 | 2,657 | cpp | C++ | src/todo.cpp | adityasoni01/todo_project | 48f94eeba87f25f4b466d6913c36fd169ec0aba1 | [
"Apache-2.0"
] | null | null | null | src/todo.cpp | adityasoni01/todo_project | 48f94eeba87f25f4b466d6913c36fd169ec0aba1 | [
"Apache-2.0"
] | null | null | null | src/todo.cpp | adityasoni01/todo_project | 48f94eeba87f25f4b466d6913c36fd169ec0aba1 | [
"Apache-2.0"
] | null | null | null | #include<iostream>
#include<string>
#include<cstring>
#include<fstream>
#include<conio.h>
#include<cstdlib>
using namespace std;
string tasks[100];
int total=0,ch;
char yes;
void display()
{
cout<<"Your todo List :-"<<endl;
for(int i = 0;i<total;i++)
{
cout<<i+1<<". ... | 19.115108 | 68 | 0.451637 |
cfb052a4599f1d20f940cc7b246840a20022dac9 | 3,922 | cpp | C++ | source/x86/source_moss/kernel/input/devices/interface_mouse_ps2.cpp | imallett/MOSS | 5ab7bc9c6b1669e2c99aa797d7091c6b52a0ea38 | [
"MIT"
] | 2 | 2020-04-02T14:00:33.000Z | 2021-06-29T05:50:30.000Z | source/x86/source_moss/kernel/input/devices/interface_mouse_ps2.cpp | imallett/MOSS | 5ab7bc9c6b1669e2c99aa797d7091c6b52a0ea38 | [
"MIT"
] | null | null | null | source/x86/source_moss/kernel/input/devices/interface_mouse_ps2.cpp | imallett/MOSS | 5ab7bc9c6b1669e2c99aa797d7091c6b52a0ea38 | [
"MIT"
] | null | null | null | #include "interface_mouse_ps2.hpp"
#include "../../../mossc/_misc.hpp"
#include "../../graphics/vesa/controller.hpp"
#include "../../io/io.hpp"
#include "../../kernel.hpp"
#include "../mouse.hpp"
#include "controller_ps2.hpp"
namespace MOSS { namespace Input { namespace Devices {
//TODO: timeout... | 29.051852 | 197 | 0.652728 |
cfb4195ba65d18271a75430f886d6ef75e33811c | 728 | cpp | C++ | 1248/1248/1248/1248.cpp | Shubhankar-Nath/LeetcodeExcercise | 040d413968138c60555c8754fd317a19cd29a601 | [
"MIT"
] | null | null | null | 1248/1248/1248/1248.cpp | Shubhankar-Nath/LeetcodeExcercise | 040d413968138c60555c8754fd317a19cd29a601 | [
"MIT"
] | null | null | null | 1248/1248/1248/1248.cpp | Shubhankar-Nath/LeetcodeExcercise | 040d413968138c60555c8754fd317a19cd29a601 | [
"MIT"
] | null | null | null |
#include <iostream>
#include <vector>
#include<algorithm>
using namespace std;
int numberOfSubarrays(vector<int>& nums, int k) {
vector<int> oddIndex;
int sum = 0, index=0;
oddIndex.push_back(-1);
for (auto itterator = 0; itterator < nums.size(); itterator++)
{
if (nums[itterator] % 2 != 0... | 22.060606 | 105 | 0.571429 |
cfb50579394ad6701286872b4d235d1ee5af1a68 | 1,306 | cpp | C++ | LLVMpy.cpp | bmansfieldRIT/python2llvm | 8f48661316f753861e4e7623bff4eda29300ddbf | [
"MIT"
] | null | null | null | LLVMpy.cpp | bmansfieldRIT/python2llvm | 8f48661316f753861e4e7623bff4eda29300ddbf | [
"MIT"
] | null | null | null | LLVMpy.cpp | bmansfieldRIT/python2llvm | 8f48661316f753861e4e7623bff4eda29300ddbf | [
"MIT"
] | null | null | null | #include "graminit.h"
#include "CharStream.hpp"
#include <iostream>
#include "llvm/ADT/STLExtras.h"
std::unique_ptr<CharStream> cs;
static int gettok(){
static int lastChar = ' ';
while (isspace(lastChar)) {
cs->next();
lastChar = cs->getCurrent();
}
if (lastChar == '#'){
co... | 19.492537 | 74 | 0.532159 |
cfb74c5f61e72e167965cd3b6a4877121efebe2c | 2,131 | cpp | C++ | KEditor/Entity/KEEntityNamePool.cpp | King19931229/KApp | f7f855b209348f835de9e5f57844d4fb6491b0a1 | [
"MIT"
] | 13 | 2019-10-19T17:41:19.000Z | 2021-11-04T18:50:03.000Z | KEditor/Entity/KEEntityNamePool.cpp | King19931229/KApp | f7f855b209348f835de9e5f57844d4fb6491b0a1 | [
"MIT"
] | 3 | 2019-12-09T06:22:43.000Z | 2020-05-28T09:33:44.000Z | KEditor/Entity/KEEntityNamePool.cpp | King19931229/KApp | f7f855b209348f835de9e5f57844d4fb6491b0a1 | [
"MIT"
] | null | null | null | #include "KEEntityNamePool.h"
#include "KEditorGlobal.h"
KEEntityNamePool::KEEntityNamePool()
{
}
KEEntityNamePool::~KEEntityNamePool()
{
ASSERT_RESULT(m_Pool.empty());
}
bool KEEntityNamePool::Init()
{
UnInit();
return true;
}
bool KEEntityNamePool::UnInit()
{
m_Pool.clear();
return true;
}
std::string KEEnt... | 21.525253 | 82 | 0.712342 |
cfb7c3be207d4d876b2478472d249000d3e74726 | 9,931 | cpp | C++ | jigtest/src/framework/sdlapplicationbase.cpp | Ludophonic/JigLib | 541ec63b345ccf01e58cce49eb2f73c21eaf6aa6 | [
"Zlib"
] | 10 | 2016-06-01T12:54:45.000Z | 2021-09-07T17:34:37.000Z | jigtest/src/framework/sdlapplicationbase.cpp | Ludophonic/JigLib | 541ec63b345ccf01e58cce49eb2f73c21eaf6aa6 | [
"Zlib"
] | null | null | null | jigtest/src/framework/sdlapplicationbase.cpp | Ludophonic/JigLib | 541ec63b345ccf01e58cce49eb2f73c21eaf6aa6 | [
"Zlib"
] | 4 | 2017-05-03T14:03:03.000Z | 2021-01-04T04:31:15.000Z | //==============================================================
// Copyright (C) 2004 Danny Chapman
// danny@rowlhouse.freeserve.co.uk
//--------------------------------------------------------------
//
/// @file SDLApplicationbase.cpp
//
//==========================... | 28.133144 | 87 | 0.518578 |
cfb7f0230a3dad9f838546d1c0b8a0a0989955ba | 17,656 | cpp | C++ | Source/System/[Platforms]/Windows/Interface.Windows.cpp | jbatonnet/System | 227cf491ab5d0660a6bcf654f6cad09d1f82ba8e | [
"MIT"
] | 3 | 2020-04-24T20:23:24.000Z | 2022-01-06T22:27:01.000Z | Source/System/[Platforms]/Windows/Interface.Windows.cpp | jbatonnet/system | 227cf491ab5d0660a6bcf654f6cad09d1f82ba8e | [
"MIT"
] | null | null | null | Source/System/[Platforms]/Windows/Interface.Windows.cpp | jbatonnet/system | 227cf491ab5d0660a6bcf654f6cad09d1f82ba8e | [
"MIT"
] | 1 | 2021-06-25T17:35:08.000Z | 2021-06-25T17:35:08.000Z | #ifdef WINDOWS
#include <System/System.h>
using namespace System;
using namespace System::Runtime;
using namespace System::Objects;
using namespace System::Devices;
using namespace System::IO;
using namespace System::Interface;
using namespace System::Graphics;
#undef using
#define _INITIALIZER_LIST_
#include <Wind... | 33.06367 | 269 | 0.617864 |
cfbaa3403fe6083a83b359001d88539239ef0d88 | 769 | cpp | C++ | WumbukDraw/line.cpp | YangPeihao1203/WumbukDraw | e0854e62cc050c99deda04a849d46824f458cbbc | [
"MIT"
] | null | null | null | WumbukDraw/line.cpp | YangPeihao1203/WumbukDraw | e0854e62cc050c99deda04a849d46824f458cbbc | [
"MIT"
] | null | null | null | WumbukDraw/line.cpp | YangPeihao1203/WumbukDraw | e0854e62cc050c99deda04a849d46824f458cbbc | [
"MIT"
] | null | null | null | #include "line.h"
Line::Line()
{
setAdjustFlag(false);
}
void Line::startDraw(QGraphicsSceneMouseEvent * event)
{
QPen pen = this->pen();
pen.setWidth(this->width);
pen.setColor(this->color);
setPen(pen);
startPos=event->scenePos();
}
void Line::drawing(QGraphicsSceneMouseEvent ... | 18.756098 | 55 | 0.6671 |
cfbc414efa03b4d00846bddacc360efa3e6b71df | 16,075 | cpp | C++ | diffsim_torch3d/arcsim/src/simulation.cpp | priyasundaresan/kaolin | ddae34ba5f09bffc4368c29bc50491c5ece797d4 | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | diffsim_torch3d/arcsim/src/simulation.cpp | priyasundaresan/kaolin | ddae34ba5f09bffc4368c29bc50491c5ece797d4 | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | diffsim_torch3d/arcsim/src/simulation.cpp | priyasundaresan/kaolin | ddae34ba5f09bffc4368c29bc50491c5ece797d4 | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | /*
Copyright ©2013 The Regents of the University of California
(Regents). All Rights Reserved. Permission to use, copy, modify, and
distribute this software and its documentation for educational,
research, and not-for-profit purposes, without fee and without a
signed licensing agreement, is hereby granted, pr... | 34.869848 | 112 | 0.612877 |
cfbc9166cf99ff55eb9d15aacb24a713551f7d21 | 2,707 | hpp | C++ | RubetekIOS-CPP.framework/Versions/A/Headers/libnet/dawn/queue_blocks.hpp | yklishevich/RubetekIOS-CPP-releases | 7dfbbb45b8de7dbb6fa995ff5dcbca4ec06c2bdb | [
"MIT"
] | null | null | null | RubetekIOS-CPP.framework/Versions/A/Headers/libnet/dawn/queue_blocks.hpp | yklishevich/RubetekIOS-CPP-releases | 7dfbbb45b8de7dbb6fa995ff5dcbca4ec06c2bdb | [
"MIT"
] | null | null | null | RubetekIOS-CPP.framework/Versions/A/Headers/libnet/dawn/queue_blocks.hpp | yklishevich/RubetekIOS-CPP-releases | 7dfbbb45b8de7dbb6fa995ff5dcbca4ec06c2bdb | [
"MIT"
] | null | null | null | #pragma once
#include <queue>
#include <msw/buffer.hpp>
namespace dawn
{
struct queue_blocks
{
typedef msw::range<msw::byte> block ;
typedef msw::range<msw::byte const> const_block ;
queue_blocks () ;
... | 27.07 | 67 | 0.461396 |
cfbe411ee255d884970fca91398de8142dd8ec8c | 7,250 | hpp | C++ | math/rotation.hpp | melowntech/libmath | 7a473801a93ba5e244d96e773b412a3abed4a400 | [
"BSD-2-Clause"
] | 1 | 2021-09-02T08:42:59.000Z | 2021-09-02T08:42:59.000Z | externals/browser/externals/browser/externals/libmath/math/rotation.hpp | HanochZhu/vts-browser-unity-plugin | 32a22d41e21b95fb015326f95e401d87756d0374 | [
"BSD-2-Clause"
] | 2 | 2020-06-09T12:06:16.000Z | 2021-10-06T08:15:04.000Z | externals/browser/externals/browser/externals/libmath/math/rotation.hpp | HanochZhu/vts-browser-unity-plugin | 32a22d41e21b95fb015326f95e401d87756d0374 | [
"BSD-2-Clause"
] | 1 | 2019-09-25T05:20:17.000Z | 2019-09-25T05:20:17.000Z | /**
* Copyright (c) 2017 Melown Technologies SE
*
* 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 f... | 27.358491 | 79 | 0.549379 |
cfbf77748654b7c729a4e77abbb95f491baf1e66 | 1,934 | cpp | C++ | Scratch Pencil Photo/Main.cpp | bayudwiyansatria/computer-vision | 1cfe27441b0c92ac23195ed3c574daef1677d18a | [
"MIT"
] | 1 | 2019-05-27T17:54:32.000Z | 2019-05-27T17:54:32.000Z | Scratch Pencil Photo/Main.cpp | bayudwiyansatria/computer-vision | 1cfe27441b0c92ac23195ed3c574daef1677d18a | [
"MIT"
] | null | null | null | Scratch Pencil Photo/Main.cpp | bayudwiyansatria/computer-vision | 1cfe27441b0c92ac23195ed3c574daef1677d18a | [
"MIT"
] | 1 | 2018-11-02T02:29:03.000Z | 2018-11-02T02:29:03.000Z | #include <opencv/cv.h>
#include <opencv/highgui.h>
int main(int argc, char** argv)
{
int col_1, row_1;
uchar b_1, g_1, r_1, b_2, g_2, r_2, b_d, g_d, r_d;
IplImage* img = cvLoadImage("Theory/Scratch Pencil Photo/Input/lena.jpg");
IplImage* img1 = cvCreateImage(cvSize(img->width, img->height), img->depth, img->nCh... | 32.233333 | 93 | 0.640641 |
cfc100bde1c5aae9d74ba6d1e7071f3bd1096362 | 3,215 | cpp | C++ | src/common/timer/timer_1ms.cpp | caozhiyi/quicX | 46b486fc7786faf479b60c24da8ebdec783b3d5b | [
"BSD-3-Clause"
] | 1 | 2021-11-02T14:31:12.000Z | 2021-11-02T14:31:12.000Z | src/common/timer/timer_1ms.cpp | caozhiyi/quicX | 46b486fc7786faf479b60c24da8ebdec783b3d5b | [
"BSD-3-Clause"
] | null | null | null | src/common/timer/timer_1ms.cpp | caozhiyi/quicX | 46b486fc7786faf479b60c24da8ebdec783b3d5b | [
"BSD-3-Clause"
] | 1 | 2021-09-30T08:23:58.000Z | 2021-09-30T08:23:58.000Z | // Use of this source code is governed by a BSD 3-Clause License
// that can be found in the LICENSE file.
// Author: caozhiyi (caozhiyi5@gmail.com)
#include "timer_1ms.h"
namespace quicx {
static const TIMER_CAPACITY __timer_accuracy = TC_1MS; // 1 millisecond
static const TIMER_CAPACITY __timer_capacity = TC_50M... | 22.640845 | 81 | 0.576361 |
cfc56aecda2a23487b740604cb490928ac2a12b8 | 1,893 | cpp | C++ | src/v3/action_constants.cpp | siyuan0322/etcd-cpp-apiv3 | 1575c5b43a64f85f77897e9b5aad24e6523ea453 | [
"BSD-3-Clause"
] | 139 | 2016-09-20T00:28:04.000Z | 2020-09-27T15:05:11.000Z | src/v3/action_constants.cpp | siyuan0322/etcd-cpp-apiv3 | 1575c5b43a64f85f77897e9b5aad24e6523ea453 | [
"BSD-3-Clause"
] | 85 | 2020-09-29T16:33:00.000Z | 2022-03-30T01:23:23.000Z | src/v3/action_constants.cpp | siyuan0322/etcd-cpp-apiv3 | 1575c5b43a64f85f77897e9b5aad24e6523ea453 | [
"BSD-3-Clause"
] | 63 | 2016-12-06T11:42:29.000Z | 2020-09-24T06:15:49.000Z | #include "etcd/v3/action_constants.hpp"
char const * etcdv3::CREATE_ACTION = "create";
char const * etcdv3::COMPARESWAP_ACTION = "compareAndSwap";
char const * etcdv3::UPDATE_ACTION = "update";
char const * etcdv3::SET_ACTION = "set";
char const * etcdv3::GET_ACTION = "get";
char const * etcdv3::PUT_ACTION = "put";
ch... | 41.152174 | 89 | 0.733228 |
cfc5afce8a871cbdf7809d3bd8833c1e30182e5b | 4,823 | cc | C++ | src/Table.cc | mgonnav/flaviadb | af133b30ec97834753d4d24a682cb2691688a854 | [
"Apache-2.0"
] | 1 | 2020-08-20T22:34:36.000Z | 2020-08-20T22:34:36.000Z | src/Table.cc | mgonnav/flaviadb | af133b30ec97834753d4d24a682cb2691688a854 | [
"Apache-2.0"
] | 1 | 2020-08-27T00:01:42.000Z | 2020-11-27T17:18:58.000Z | src/Table.cc | mgonnav/flaviadb | af133b30ec97834753d4d24a682cb2691688a854 | [
"Apache-2.0"
] | null | null | null | #include "Where.hh"
#include "printutils.hh"
namespace ft = ftools;
namespace fs = std::filesystem;
namespace pu = printUtils;
Table::Table(std::string name)
{
this->name = name;
loadPaths(name);
checkTableExists();
load_metadata();
this->reg_count = ft::getRegCount(name);
this->indexes = new std::vecto... | 23.758621 | 80 | 0.667427 |
cfc723067d77b4f03d2ddc39c019224197156336 | 5,293 | cpp | C++ | SimulationsOMP/ParaUtilMSDRadix16Sort.cpp | COFS-UWA/MPM3D | 1a0c5dc4e92dff3855367846002336ca5a18d124 | [
"MIT"
] | null | null | null | SimulationsOMP/ParaUtilMSDRadix16Sort.cpp | COFS-UWA/MPM3D | 1a0c5dc4e92dff3855367846002336ca5a18d124 | [
"MIT"
] | 2 | 2020-10-19T02:03:11.000Z | 2021-03-19T16:34:39.000Z | SimulationsOMP/ParaUtilMSDRadix16Sort.cpp | COFS-UWA/MPM3D | 1a0c5dc4e92dff3855367846002336ca5a18d124 | [
"MIT"
] | 1 | 2020-04-28T00:33:14.000Z | 2020-04-28T00:33:14.000Z | #include "SimulationsOMP_pcp.h"
#include "ParaUtil.h"
#include "ParaUtilSerialSort.h"
#include "ParaUtilMSDRadix16Sort.h"
#define Data_Digit(num, disp, mask) (((num) >> (disp)) & (mask))
#define Data_Digit_16(num, disp) Data_Digit(num, disp, 0xF)
namespace ParaUtil
{
namespace Internal
{
static constexpr uint64_t r... | 33.289308 | 104 | 0.501795 |
cfd0a388d365849c55299571788a64f78b67ee78 | 631 | cpp | C++ | src/scene/Stage.cpp | deianvn/kit2d | a8fd6d75cf1f8d14baabaa04903ab3fdee3b4ef5 | [
"Apache-2.0"
] | null | null | null | src/scene/Stage.cpp | deianvn/kit2d | a8fd6d75cf1f8d14baabaa04903ab3fdee3b4ef5 | [
"Apache-2.0"
] | null | null | null | src/scene/Stage.cpp | deianvn/kit2d | a8fd6d75cf1f8d14baabaa04903ab3fdee3b4ef5 | [
"Apache-2.0"
] | null | null | null | #include "../../include/kit2d/scene/Stage.hpp"
#include "../../include/kit2d/scene/Scene.hpp"
namespace kit2d {
Stage::Stage(Window& window) : window(window) {
window.onUpdate([this](float deltaTime) {
this->scene->update(deltaTime);
});
window.onRender([this](Renderer& renderer) {
this->sc... | 20.354839 | 54 | 0.613312 |
cfd3aedf01baa8d1ae911ed9694eab6fcd72cd46 | 1,492 | cc | C++ | poj/3/3194.cc | eagletmt/procon | adbe503eb3c1bbcc1538b2ee8988aa353937e8d4 | [
"MIT"
] | 1 | 2015-04-17T09:54:23.000Z | 2015-04-17T09:54:23.000Z | poj/3/3194.cc | eagletmt/procon | adbe503eb3c1bbcc1538b2ee8988aa353937e8d4 | [
"MIT"
] | null | null | null | poj/3/3194.cc | eagletmt/procon | adbe503eb3c1bbcc1538b2ee8988aa353937e8d4 | [
"MIT"
] | null | null | null | #include <iostream>
#include <vector>
#include <queue>
using namespace std;
bool equidivision(const vector<vector<int> >& grid)
{
const int N = grid.size();
vector<vector<bool> > visited(N, vector<bool>(N, false));
for (int n = 0; n < N; n++) {
for (int i = 0; i < N; i++) {
for (int j = 0; j < N; j++) ... | 24.064516 | 90 | 0.400134 |
cfd67f07a35b31f5fa7582523cad4390e276715f | 1,015 | cpp | C++ | src/io/github/technicalnotes/programming/basics/36-threadNlocking.cpp | chiragbhatia94/programming-cpp | efd6aa901deacf416a3ab599e6599845a8111eac | [
"MIT"
] | null | null | null | src/io/github/technicalnotes/programming/basics/36-threadNlocking.cpp | chiragbhatia94/programming-cpp | efd6aa901deacf416a3ab599e6599845a8111eac | [
"MIT"
] | null | null | null | src/io/github/technicalnotes/programming/basics/36-threadNlocking.cpp | chiragbhatia94/programming-cpp | efd6aa901deacf416a3ab599e6599845a8111eac | [
"MIT"
] | null | null | null | #include "bits/stdc++.h"
using namespace std;
char *getTime()
{
chrono::time_point<chrono::system_clock> now = chrono::system_clock::now();
time_t t = chrono::system_clock::to_time_t(now);
return ctime(&t);
}
double accountBalance = 100;
mutex accountLock;
void getMoney(int id, double amou... | 23.068182 | 88 | 0.553695 |
cfd6ec574659e3d92a6abb352f6e84dd8242fc97 | 4,026 | cpp | C++ | window.cpp | mauriliodc/path_aligner | fba4a8f95cac54c2bd5ee36626980ca7c4b9efb7 | [
"MIT"
] | null | null | null | window.cpp | mauriliodc/path_aligner | fba4a8f95cac54c2bd5ee36626980ca7c4b9efb7 | [
"MIT"
] | null | null | null | window.cpp | mauriliodc/path_aligner | fba4a8f95cac54c2bd5ee36626980ca7c4b9efb7 | [
"MIT"
] | null | null | null | #include "window.h"
Window::Window (QWidget *parent) : QMainWindow (parent),ui (new Ui::Window)
{
ui->setupUi(this);
p=0;
laser=0;
}
Window::~Window(){
delete ui;
}
void Window::on_fixed_frame_clicked()
{
QString odometryFilename = QFileDialog::getOpenFileName(this,tr("Open ODOMETRY log file"),"... | 30.969231 | 121 | 0.616244 |
cfd7726a7169408dc4d932fb2ff1afdf7efd955f | 917 | cpp | C++ | dp/multi_zero_one_pack.cpp | FrancsXiang/DataStructure-Algorithms | f8f9e6d7be94057b955330cb7058235caef5cfed | [
"MIT"
] | 1 | 2020-04-14T05:44:50.000Z | 2020-04-14T05:44:50.000Z | dp/multi_zero_one_pack.cpp | FrancsXiang/DataStructure-Algorithms | f8f9e6d7be94057b955330cb7058235caef5cfed | [
"MIT"
] | null | null | null | dp/multi_zero_one_pack.cpp | FrancsXiang/DataStructure-Algorithms | f8f9e6d7be94057b955330cb7058235caef5cfed | [
"MIT"
] | 2 | 2020-09-02T08:56:31.000Z | 2021-06-22T11:20:58.000Z | #include <iostream>
#include <algorithm>
#define MAXN 101
#define MAXV 1001
using namespace std;
// if you want the full pack,initialize res[0] = 0,res[1:] = -inf
// or you want the maximum value, initialize res[:] = 0;
//you could also use cost-effective sort to solve
void orgin() {
int vol[MAXN];
int val[MAXN];
... | 24.131579 | 65 | 0.514722 |
cfd7f3d4507d7cb87ee8165eb1333897a0568f38 | 2,841 | cpp | C++ | src/example.cpp | tammoippen/timer | 7ae22bd8ac1ec1c28046c0558dd69bb34b7a8d5f | [
"MIT"
] | 7 | 2017-02-08T19:30:12.000Z | 2021-08-18T06:42:38.000Z | src/example.cpp | tammoippen/timer | 7ae22bd8ac1ec1c28046c0558dd69bb34b7a8d5f | [
"MIT"
] | null | null | null | src/example.cpp | tammoippen/timer | 7ae22bd8ac1ec1c28046c0558dd69bb34b7a8d5f | [
"MIT"
] | 2 | 2017-02-08T19:30:13.000Z | 2018-04-09T14:25:03.000Z | /**
* example.cpp
*
* The MIT License (MIT)
*
* Copyright (c) 2016 Tammo Ippen
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the... | 24.076271 | 80 | 0.607181 |
cfdaca73ae234be2ccb6cf70c985a27b77a94a2f | 12,440 | cpp | C++ | src/gui/qgsmessagebar.cpp | dyna-mis/Hilabeling | cb7d5d4be29624a20c8a367162dbc6fd779b2b52 | [
"MIT"
] | null | null | null | src/gui/qgsmessagebar.cpp | dyna-mis/Hilabeling | cb7d5d4be29624a20c8a367162dbc6fd779b2b52 | [
"MIT"
] | null | null | null | src/gui/qgsmessagebar.cpp | dyna-mis/Hilabeling | cb7d5d4be29624a20c8a367162dbc6fd779b2b52 | [
"MIT"
] | 1 | 2021-12-25T08:40:30.000Z | 2021-12-25T08:40:30.000Z | /***************************************************************************
qgsmessagebar.cpp - description
-------------------
begin : June 2012
copyright : (C) 2012 by Giuseppe Sucameli
email : sucameli at f... | 31.573604 | 141 | 0.650482 |
cfdc72d8794b82cf9e672af70af4f7c1f6509f18 | 1,467 | cpp | C++ | src/app/VideoCanvas.cpp | wolodyx/equvator | e246ebf8bdc48e3955cf7f0650eb88ae57e24ad3 | [
"MIT"
] | null | null | null | src/app/VideoCanvas.cpp | wolodyx/equvator | e246ebf8bdc48e3955cf7f0650eb88ae57e24ad3 | [
"MIT"
] | null | null | null | src/app/VideoCanvas.cpp | wolodyx/equvator | e246ebf8bdc48e3955cf7f0650eb88ae57e24ad3 | [
"MIT"
] | null | null | null | #include "VideoCanvas.h"
#include <wx/dcbuffer.h>
#include <wx/rawbmp.h>
#include <opencv2/opencv.hpp>
VideoCanvas::VideoCanvas(wxWindow* parent)
: wxScrolledCanvas(parent, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxFULL_REPAINT_ON_RESIZE)
{
SetBackgroundColour(*wxBLACK);
SetBackgroundStyle(wxBG_STYL... | 20.375 | 100 | 0.63122 |
cfdd07948334c7fc84c2caf3fa62b4a2bfad4efa | 1,252 | cpp | C++ | test/src/Version.test.cpp | AMS21/CppBase | a6ec5542682bcebf5958d54557af1e03752a132f | [
"CC0-1.0"
] | null | null | null | test/src/Version.test.cpp | AMS21/CppBase | a6ec5542682bcebf5958d54557af1e03752a132f | [
"CC0-1.0"
] | 1 | 2020-05-12T19:48:20.000Z | 2020-05-12T19:48:20.000Z | test/src/Version.test.cpp | AMS21/CppBase | a6ec5542682bcebf5958d54557af1e03752a132f | [
"CC0-1.0"
] | null | null | null | #include <doctest.h>
#include <cpp/Version.hpp>
TEST_CASE("Version.Attribute")
{
#if __has_cpp_attribute(carries_dependencies)
#endif
#if __has_cpp_attribute(deprecated)
#endif
#if __has_cpp_attribute(fallthrough)
#endif
#if __has_cpp_attribute(likely)
#endif
#if __has_cpp_attribute(unlikely)
#endif
#if __has_cpp_att... | 29.116279 | 62 | 0.746006 |
cfdf565d5dd6e610dedcd293ffce8989883de855 | 1,302 | cpp | C++ | HackerRank/Mathematics/Fundamentals/Handshake/Solution.cpp | nik3212/hackerrank-challenges | 676cf748a437117016607ae17c15211269bf2f92 | [
"MIT"
] | 1 | 2018-11-14T14:14:20.000Z | 2018-11-14T14:14:20.000Z | HackerRank/Mathematics/Fundamentals/Handshake/Solution.cpp | nik3212/challenges | b127bc66ffa27bfdef87ac402dc080f933dad893 | [
"MIT"
] | null | null | null | HackerRank/Mathematics/Fundamentals/Handshake/Solution.cpp | nik3212/challenges | b127bc66ffa27bfdef87ac402dc080f933dad893 | [
"MIT"
] | null | null | null | /*
At the annual meeting of Board of Directors of Acme Inc, every one starts shaking hands with everyone else in the room. Given the fact that any two persons shake hand exactly once, Can you tell the total count of handshakes?
Input Format
The first line contains the number of test cases T, T lines follow.
Each li... | 18.083333 | 224 | 0.634409 |
cfe36472f7d92eb5ec50760171e5141b925409af | 4,454 | cpp | C++ | graveyard/src/transport/axis2/ssl/AxisSSLChannelException.cpp | vlsinitsyn/axis1 | 65a622201e526dedf7c3aeadce7cac5bd79895bf | [
"Apache-2.0"
] | 1 | 2021-11-10T19:36:30.000Z | 2021-11-10T19:36:30.000Z | graveyard/src/transport/axis2/ssl/AxisSSLChannelException.cpp | vlsinitsyn/axis1 | 65a622201e526dedf7c3aeadce7cac5bd79895bf | [
"Apache-2.0"
] | null | null | null | graveyard/src/transport/axis2/ssl/AxisSSLChannelException.cpp | vlsinitsyn/axis1 | 65a622201e526dedf7c3aeadce7cac5bd79895bf | [
"Apache-2.0"
] | 2 | 2021-11-02T13:09:57.000Z | 2021-11-10T19:36:22.000Z | /* -*- C++ -*- */
/*
* Copyright 2003-2004 The Apache Software Foundation.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
... | 31.146853 | 95 | 0.710373 |
cfe61a58a6e7ef9adddfaffe4f3aa0846db4eb44 | 4,744 | cpp | C++ | src/progress_bar.cpp | sweetkristas/anura | 5e8cbcfc7b761c5c01e5c5509a0fb159b8fb60cd | [
"CC0-1.0"
] | null | null | null | src/progress_bar.cpp | sweetkristas/anura | 5e8cbcfc7b761c5c01e5c5509a0fb159b8fb60cd | [
"CC0-1.0"
] | null | null | null | src/progress_bar.cpp | sweetkristas/anura | 5e8cbcfc7b761c5c01e5c5509a0fb159b8fb60cd | [
"CC0-1.0"
] | null | null | null | /*
Copyright (C) 2003-2013 by David White <davewx7@gmail.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 License, or
(at your option) any later version.... | 29.283951 | 122 | 0.684233 |
cfe8e78c2ad096dcfd8c34d5cbddaf14f96b6892 | 674 | cpp | C++ | Cpp_Projects/tryandcatch.cpp | EderLukas/Portfolio | 1c9adef3435129d26d3c6275a79ed363bf062e8f | [
"MIT"
] | null | null | null | Cpp_Projects/tryandcatch.cpp | EderLukas/Portfolio | 1c9adef3435129d26d3c6275a79ed363bf062e8f | [
"MIT"
] | null | null | null | Cpp_Projects/tryandcatch.cpp | EderLukas/Portfolio | 1c9adef3435129d26d3c6275a79ed363bf062e8f | [
"MIT"
] | null | null | null | /*
* source code: tryandcatch.cpp
* author: Lukas Eder
* date: 01.01.2018
*
* Descr.:
* Uebung zu try and catch Fehlerbehandlung inkl. inteligentem Array
*/
#include <iostream>
#include <array>
using namespace std;
int main() {
//Variablen
array<double, 3> preise;
preise.at(0) = 1.45;
... | 21.741935 | 69 | 0.55638 |
cfeb15a71d3d8c8a5b4ee0d3a96fd66458c16cc0 | 1,209 | hpp | C++ | include/ISubThread.hpp | lordio/insanity | 7dfbf398fe08968f40a32280bf2b16cca2b476a1 | [
"MIT"
] | 1 | 2015-02-05T10:41:14.000Z | 2015-02-05T10:41:14.000Z | include/ISubThread.hpp | lordio/insanity | 7dfbf398fe08968f40a32280bf2b16cca2b476a1 | [
"MIT"
] | 1 | 2015-02-04T20:47:52.000Z | 2015-02-05T07:43:05.000Z | include/ISubThread.hpp | lordio/insanity | 7dfbf398fe08968f40a32280bf2b16cca2b476a1 | [
"MIT"
] | null | null | null | #ifndef INSANITY_INTERFACE_SUB_THREAD
#define INSANITY_INTERFACE_SUB_THREAD
#include "Constants.hpp"
#include "IThread.hpp"
namespace Insanity
{
//"Sub," in opposition to the "main" thread, represented by IApplication.
class INSANITY_API ISubThread : public virtual IThread
{
public:
//==========================... | 31.815789 | 74 | 0.539289 |
cff5243f89c24da48b4e1a8e5bee40914b35363e | 16,909 | cpp | C++ | src/TextureLoaderFrontend/load_dds.cpp | WubiCookie/VkRenderer | 87cc5d858591fc976c197ab2834e1ac9a418becd | [
"MIT"
] | 2 | 2020-05-31T19:54:19.000Z | 2021-09-14T12:00:12.000Z | src/TextureLoaderFrontend/load_dds.cpp | WubiCookie/VkRenderer | 87cc5d858591fc976c197ab2834e1ac9a418becd | [
"MIT"
] | null | null | null | src/TextureLoaderFrontend/load_dds.cpp | WubiCookie/VkRenderer | 87cc5d858591fc976c197ab2834e1ac9a418becd | [
"MIT"
] | null | null | null | #include "load_dds.hpp"
#define VK_NO_PROTOTYPES
#include <vulkan/vulkan.h>
//#define MEAN_AND_LEAN
//#define NO_MINMAX
//#include <windows.h>
#include <iostream>
/*
Can load easier and more indepth with https://github.com/Hydroque/DDSLoader
Because a lot of crappy, weird DDS file loader files were fou... | 29.305026 | 98 | 0.603288 |
cfff7dbf1afee58f5dd3a04d6f58c871730fa696 | 712 | cpp | C++ | cpp/stl/05_insert.cpp | Trickness/pl_learning | 53c10490aed1ba4a02b14aae4890321ad099cc60 | [
"Unlicense"
] | null | null | null | cpp/stl/05_insert.cpp | Trickness/pl_learning | 53c10490aed1ba4a02b14aae4890321ad099cc60 | [
"Unlicense"
] | null | null | null | cpp/stl/05_insert.cpp | Trickness/pl_learning | 53c10490aed1ba4a02b14aae4890321ad099cc60 | [
"Unlicense"
] | null | null | null | #include <iostream>
#include <algorithm>
#include <list>
#include <vector>
#include <iterator>
using namespace std;
int iArray[5] = {1,2,3,4,5};
void Display(list<int> &a , const char* s){
cout << s << endl;
copy(a.begin(),a.end(), ostream_iterator<int>(cout, " "));
cout << endl;
}
int main(){
list... | 22.25 | 62 | 0.629213 |
320137136c52e931b584258a161d058676af59d5 | 3,292 | hpp | C++ | yelp.hpp | jkatsioloudes/Yelp_ObjectRelationalMapping | 596bef42d9623f2e46b6f5e711493687c35822f2 | [
"MIT"
] | 1 | 2021-02-10T20:35:09.000Z | 2021-02-10T20:35:09.000Z | yelp.hpp | jkatsioloudes/Yelp-ORM | 596bef42d9623f2e46b6f5e711493687c35822f2 | [
"MIT"
] | null | null | null | yelp.hpp | jkatsioloudes/Yelp-ORM | 596bef42d9623f2e46b6f5e711493687c35822f2 | [
"MIT"
] | null | null | null | #include <memory>
#include <odb/core.hxx>
#include <odb/lazy-ptr.hxx>
#include <set>
#include <string>
#pragma db view
class StarCount{
public:
int stars;
int count;
};
#pragma db view query("select top 1 text, last_elapsed_time from sys.dm_exec_query_stats cross apply sys.dm_exec_sql_text(sql_handle) order by last... | 18.391061 | 169 | 0.712333 |
3202fd54536a01efd617e80e180b3288cabceecd | 2,511 | cc | C++ | src/developer/debug/zxdb/symbols/identifier_unittest.cc | yanyushr/fuchsia | 98e70672a81a206d235503e398f37b7b65581f79 | [
"BSD-3-Clause"
] | 1 | 2019-10-09T10:50:57.000Z | 2019-10-09T10:50:57.000Z | src/developer/debug/zxdb/symbols/identifier_unittest.cc | bootingman/fuchsia2 | 04012f0aa1edd1d4108a2ac647a65e59730fc4c2 | [
"BSD-3-Clause"
] | null | null | null | src/developer/debug/zxdb/symbols/identifier_unittest.cc | bootingman/fuchsia2 | 04012f0aa1edd1d4108a2ac647a65e59730fc4c2 | [
"BSD-3-Clause"
] | null | null | null | // Copyright 2018 The Fuchsia Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "src/developer/debug/zxdb/symbols/identifier.h"
#include "gtest/gtest.h"
#include "src/developer/debug/zxdb/common/err.h"
namespace zxdb {
TEST... | 33.932432 | 76 | 0.680207 |
3205b13f2b67c5c04db23a69f1ebf07a9e31ed5d | 3,456 | cpp | C++ | 1082_b.cpp | onexmaster/cp | b78b0f1e586d6977d86c97b32f48fed33f1469af | [
"Apache-2.0",
"MIT"
] | null | null | null | 1082_b.cpp | onexmaster/cp | b78b0f1e586d6977d86c97b32f48fed33f1469af | [
"Apache-2.0",
"MIT"
] | null | null | null | 1082_b.cpp | onexmaster/cp | b78b0f1e586d6977d86c97b32f48fed33f1469af | [
"Apache-2.0",
"MIT"
] | null | null | null | // Created by Tanuj Jain
#include<bits/stdc++.h>
#include<ext/pb_ds/assoc_container.hpp>
#include<ext/pb_ds/tree_policy.hpp>
using namespace std;
using namespace __gnu_pbds;
#define pb push_back
#define mp make_pair
typedef long long ll;
typedef pair<int,int> pii;
template<class T> using oset=tree<T, null_typ... | 23.510204 | 106 | 0.530093 |
32068b4b1824704c656cc7de0c98cd0424582e15 | 10,626 | cpp | C++ | main.cpp | CKilburn12/Tic-Tac-Done-To-Death | d952f194f02efa8274bbf73aa097766c5354264d | [
"MIT"
] | null | null | null | main.cpp | CKilburn12/Tic-Tac-Done-To-Death | d952f194f02efa8274bbf73aa097766c5354264d | [
"MIT"
] | null | null | null | main.cpp | CKilburn12/Tic-Tac-Done-To-Death | d952f194f02efa8274bbf73aa097766c5354264d | [
"MIT"
] | 1 | 2020-10-25T23:10:58.000Z | 2020-10-25T23:10:58.000Z | /**
This is a pretty basic command line Tic-Tac-Toe game.
Its been totally done to death, but I felt like it would
be a relatively easy way to apply what I've learned with
C++ so far.
Author: CKilburn12 (Colin Kilburn)
**/
#include <bits/stdc++.h>
#include <iostream>
#include <algorithm>
#include <vector>
#include <... | 24.885246 | 115 | 0.455487 |
3208164d79e66be477ab220e6442a26586383448 | 8,075 | cpp | C++ | Leaf/src/Application.cpp | miki134/Leaf | 1fc9857c8e803bf0f029fbe93ab473a17fb56719 | [
"Apache-2.0"
] | null | null | null | Leaf/src/Application.cpp | miki134/Leaf | 1fc9857c8e803bf0f029fbe93ab473a17fb56719 | [
"Apache-2.0"
] | null | null | null | Leaf/src/Application.cpp | miki134/Leaf | 1fc9857c8e803bf0f029fbe93ab473a17fb56719 | [
"Apache-2.0"
] | null | null | null | #include <glad/glad.h>
#include <GLFW/glfw3.h>
#define STB_IMAGE_IMPLEMENTATION
#include "stb/stb_image.h"
#include <glm/glm.hpp>
#include <glm/gtc/matrix_transform.hpp>
#include <glm/gtc/type_ptr.hpp>
#include <iostream>
const char* vertexShaderSource = R"(
#version 330 core
layout (location = 0) in vec3 pos;
layo... | 27.006689 | 113 | 0.681858 |
3208de8949a1662d0acd4a62337215eb51f7ad50 | 1,728 | hpp | C++ | modules/core/feature/include/opengv2/feature/FeatureBase.hpp | MobilePerceptionLab/EventCameraCalibration | debd774ac989674b500caf27641b7ad4e94681e9 | [
"Apache-2.0"
] | 22 | 2021-08-06T03:21:03.000Z | 2022-02-25T03:40:54.000Z | modules/core/feature/include/opengv2/feature/FeatureBase.hpp | MobilePerceptionLab/MultiCamCalib | 2f0e94228c2c4aea7f20c26e3e8daa6321ce8022 | [
"Apache-2.0"
] | 1 | 2022-02-25T02:55:13.000Z | 2022-02-25T15:18:45.000Z | modules/core/feature/include/opengv2/feature/FeatureBase.hpp | MobilePerceptionLab/MultiCamCalib | 2f0e94228c2c4aea7f20c26e3e8daa6321ce8022 | [
"Apache-2.0"
] | 7 | 2021-08-11T12:29:35.000Z | 2022-02-25T03:41:01.000Z | //
// Created by huangkun on 2019/12/30.
//
#ifndef OPENGV2_FEATUREBASE_HPP
#define OPENGV2_FEATUREBASE_HPP
#include <memory>
#include <Eigen/Eigen>
#include <opengv2/landmark/LandmarkBase.hpp>
namespace opengv2 {
class FeatureBase { // TODO: inherit ObservationBase
public:
EIGEN_MAKE_ALIGNED_OPERA... | 25.043478 | 111 | 0.600116 |
320ad7582601aa0c407b9fc613bf6d96159f5191 | 518 | hpp | C++ | src/wrapper.hpp | Dreae/SourceLua | 5737eaf3d77bbd715b258df78ab101265890662c | [
"Apache-2.0"
] | null | null | null | src/wrapper.hpp | Dreae/SourceLua | 5737eaf3d77bbd715b258df78ab101265890662c | [
"Apache-2.0"
] | null | null | null | src/wrapper.hpp | Dreae/SourceLua | 5737eaf3d77bbd715b258df78ab101265890662c | [
"Apache-2.0"
] | null | null | null | #ifndef _INCLUDE_WRAPPER
#define _INCLUDE_WRAPPER
#include <ISmmPlugin.h>
#include "iplayerinfo.h"
#if SOURCE_ENGINE <= SE_DARKMESSIAH
/**
* Wrap the CCommand class so our code looks the same on all engines.
*/
class CCommand
{
public:
const char *ArgS()
{
return g_Engine->Cmd_Args();
}
int ArgC()
{
return... | 15.69697 | 69 | 0.727799 |
320aee2d2c17261395b2ff39b854baa01a6971bb | 8,311 | cc | C++ | pigasus/software/tools/snort2lua/output_states/out_csv.cc | zhipengzhaocmu/fpga2022_artifact | 0ac088a5b04c5c75ae6aef25202b66b0f674acd3 | [
"BSD-3-Clause-Clear",
"BSD-3-Clause"
] | null | null | null | pigasus/software/tools/snort2lua/output_states/out_csv.cc | zhipengzhaocmu/fpga2022_artifact | 0ac088a5b04c5c75ae6aef25202b66b0f674acd3 | [
"BSD-3-Clause-Clear",
"BSD-3-Clause"
] | null | null | null | pigasus/software/tools/snort2lua/output_states/out_csv.cc | zhipengzhaocmu/fpga2022_artifact | 0ac088a5b04c5c75ae6aef25202b66b0f674acd3 | [
"BSD-3-Clause-Clear",
"BSD-3-Clause"
] | null | null | null | //--------------------------------------------------------------------------
// Copyright (C) 2014-2018 Cisco 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 Version 2 as published
// by the Fr... | 32.088803 | 90 | 0.553844 |
320ba053f76ac48a47fd3cf23ed89c7d478b06f7 | 3,891 | cpp | C++ | src/SplitFit.cpp | IWantedToBeATranslator/2D-Strip-Packing | 4ee9a220f2e9debf775b020d961f0ba547f32636 | [
"MIT"
] | 1 | 2017-12-12T19:23:44.000Z | 2017-12-12T19:23:44.000Z | src/SplitFit.cpp | IWantedToBeATranslator/2D-Strip-Packing | 4ee9a220f2e9debf775b020d961f0ba547f32636 | [
"MIT"
] | 1 | 2016-04-20T18:47:05.000Z | 2016-05-04T08:05:45.000Z | src/SplitFit.cpp | IWantedToBeATranslator/2D-Strip-Packing | 4ee9a220f2e9debf775b020d961f0ba547f32636 | [
"MIT"
] | 1 | 2019-07-14T15:39:27.000Z | 2019-07-14T15:39:27.000Z | #include "SplitFit.h"
SplitFit::SplitFit()
{
int levelH[30] = { 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 };
int levels = 1;
int levelW[30] = { 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 };
int levelHmin = 0;
int levelRH[30] = { 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,... | 24.018519 | 122 | 0.555641 |
320bf69707aaae190ebccb03cd7d07ac9c80ace7 | 677 | cpp | C++ | codes_of_questions/1007_DNA_sorting.cpp | Zaryob/algorithmsolutions | 3f3270aed8274b5a7102afe5f21aa8da0245625e | [
"MIT"
] | 5 | 2021-03-27T21:26:07.000Z | 2021-12-23T22:15:37.000Z | codes_of_questions/1007_DNA_sorting.cpp | Zaryob/algorithmsolutions | 3f3270aed8274b5a7102afe5f21aa8da0245625e | [
"MIT"
] | null | null | null | codes_of_questions/1007_DNA_sorting.cpp | Zaryob/algorithmsolutions | 3f3270aed8274b5a7102afe5f21aa8da0245625e | [
"MIT"
] | null | null | null | #include <iostream>
#include <bits/stdc++.h>
using namespace std;
struct dna
{
int pos;
int key;
string str;
};
bool cmp(const dna &a, const dna &b)
{
if (a.key != b.key)
{
return a.key < b.key;
}
else
{
return a.pos < b.pos;
}
}
int main()
{
int n, m, count;
dna inv[110];
string str;
cin >> n >> m... | 11.877193 | 36 | 0.478582 |
320cf2711bacf04a487260e91cd6e5effe949e09 | 2,792 | cpp | C++ | source/resource/font.cpp | synaodev/LeviathanRacket | c70dfddf0097c7f4e902ec5de46a6eabed5a4691 | [
"MIT"
] | 5 | 2020-03-25T14:46:23.000Z | 2022-02-23T01:46:26.000Z | source/resource/font.cpp | synaodev/LeviathanRacket | c70dfddf0097c7f4e902ec5de46a6eabed5a4691 | [
"MIT"
] | 1 | 2022-01-14T00:01:48.000Z | 2022-01-14T00:01:48.000Z | source/resource/font.cpp | synaodev/LeviathanRacket | c70dfddf0097c7f4e902ec5de46a6eabed5a4691 | [
"MIT"
] | 2 | 2020-03-25T14:46:24.000Z | 2020-08-21T04:33:23.000Z | #include "./font.hpp"
#include "./vfs.hpp"
#include "../utility/logger.hpp"
#include "../video/texture.hpp"
#include <fstream>
#include <glm/gtc/constants.hpp>
#include <nlohmann/json.hpp>
const font_glyph_t font_t::kNullGlyph {};
void font_t::load(const std::string& directory, const std::string& name) {
auto make... | 25.851852 | 78 | 0.625358 |
320e6f684dea75528b653b8b6172938f63e9d919 | 436 | cpp | C++ | src/Red/Data/JSON/Number.cpp | OutOfTheVoid/ProjectRed | 801327283f5a302be130c90d593b39957c84cce5 | [
"MIT"
] | 1 | 2020-06-14T06:14:50.000Z | 2020-06-14T06:14:50.000Z | src/Red/Data/JSON/Number.cpp | OutOfTheVoid/ProjectRed | 801327283f5a302be130c90d593b39957c84cce5 | [
"MIT"
] | null | null | null | src/Red/Data/JSON/Number.cpp | OutOfTheVoid/ProjectRed | 801327283f5a302be130c90d593b39957c84cce5 | [
"MIT"
] | null | null | null | #include <Red/Data/JSON/Number.h>
Red::Data::JSON::Number :: Number ( double Value ):
RefCounted ( 0 ),
Value ( Value )
{
}
Red::Data::JSON::Number :: ~Number ()
{
}
Red::Data::JSON::IType :: DataType Red::Data::JSON::Number :: GetType () const
{
return kDataType_Number;
}
double Red::Data::JSON::Number :: ... | 13.212121 | 78 | 0.605505 |
32112ab813d3aa682de5b9cba42ab4654fb1fb80 | 10,516 | cpp | C++ | work_addons/ofxXTween/src/ofxXTweener.cpp | jjongun/ofxAddons | 44958f20e5dfcd71cfa5c5596aa0c480893894b8 | [
"MIT"
] | null | null | null | work_addons/ofxXTween/src/ofxXTweener.cpp | jjongun/ofxAddons | 44958f20e5dfcd71cfa5c5596aa0c480893894b8 | [
"MIT"
] | null | null | null | work_addons/ofxXTween/src/ofxXTweener.cpp | jjongun/ofxAddons | 44958f20e5dfcd71cfa5c5596aa0c480893894b8 | [
"MIT"
] | null | null | null |
#include "ofxXTweener.h"
#pragma region Easing functions
/***** LINEAR ****/
float Linear::easeNone(float t, float b, float c, float d) {
return c*t / d + b;
}
float Linear::easeIn(float t, float b, float c, float d) {
return c*t / d + b;
}
float Linear::easeOut(float t, float b, float c, float d) {
return c*t /... | 27.103093 | 176 | 0.603461 |
32121d63e621256eef322efc6b1f72fcfcc9a340 | 761 | hpp | C++ | src/protocols/wl/data_device.hpp | Link1J/Awning | 4e35e092725d1688ac94f8473fb6bffd99a5cfa0 | [
"MIT"
] | null | null | null | src/protocols/wl/data_device.hpp | Link1J/Awning | 4e35e092725d1688ac94f8473fb6bffd99a5cfa0 | [
"MIT"
] | null | null | null | src/protocols/wl/data_device.hpp | Link1J/Awning | 4e35e092725d1688ac94f8473fb6bffd99a5cfa0 | [
"MIT"
] | null | null | null | #pragma once
#include <wayland-server.h>
#include <unordered_map>
#include <vector>
#include <string>
namespace Awning::Protocols::WL::Data_Device
{
extern const struct wl_data_device_interface interface;
namespace Interface
{
void Start_Drag(struct wl_client* client, struct wl_resource* resource, struct wl_res... | 34.590909 | 173 | 0.792378 |
321459382e58a205aac83dd508d19189b1440df1 | 7,119 | cpp | C++ | Engine/Dependences/Framework/Depends/LuaBridge/Tests/Source/NamespaceTests.cpp | GlebShikovec/SREngine | bb806c3e4da06ef6fddee5b46ed5d2fca231be43 | [
"MIT"
] | 7 | 2020-10-16T11:34:27.000Z | 2022-03-12T17:53:15.000Z | Engine/Dependences/Framework/Depends/LuaBridge/Tests/Source/NamespaceTests.cpp | Kiper220/SREngine | f1fa36b5ded1f489a9fdb59d8d4b40eb294ba9ec | [
"MIT"
] | 1 | 2022-03-07T14:42:22.000Z | 2022-03-07T14:42:22.000Z | Engine/Dependences/Framework/Depends/LuaBridge/Tests/Source/NamespaceTests.cpp | GlebShikovec/SREngine | bb806c3e4da06ef6fddee5b46ed5d2fca231be43 | [
"MIT"
] | 6 | 2021-05-06T15:09:52.000Z | 2022-03-12T17:57:14.000Z | // https://github.com/vinniefalco/LuaBridge
//
// Copyright 2019, Dmitry Tarakanov
// SPDX-License-Identifier: MIT
#include "TestBase.h"
struct NamespaceTests : TestBase
{
template <class T>
T variable (const std::string& name)
{
runLua ("result = " + name);
return result <T> ();
}
};
TEST_F (Namesp... | 22.817308 | 105 | 0.617643 |
3216a0912083e09e1e4d9a060d8eb8d6739fa22f | 5,810 | cc | C++ | cartographer/mapping_2d/scan_matching/ceres_scan_matcher.cc | linghusmile/Cartographer_- | 28be85c1af353efae802cebb299b8d2486fbd800 | [
"Apache-2.0"
] | 2 | 2020-02-25T05:52:57.000Z | 2021-03-18T08:28:38.000Z | cartographer/mapping_2d/scan_matching/ceres_scan_matcher.cc | linghusmile/Cartographer_- | 28be85c1af353efae802cebb299b8d2486fbd800 | [
"Apache-2.0"
] | null | null | null | cartographer/mapping_2d/scan_matching/ceres_scan_matcher.cc | linghusmile/Cartographer_- | 28be85c1af353efae802cebb299b8d2486fbd800 | [
"Apache-2.0"
] | null | null | null | /*
* Copyright 2016 The Cartographer 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... | 40.068966 | 80 | 0.724269 |
3217a82afab606ad838675c40d023585b0b4a668 | 10,699 | hpp | C++ | cpp/src/test/test_position_manipulation.hpp | arthur-bit-monnot/fire-rs-saop | 321e16fceebf44e8e97b482c24f37fbf6dd7d162 | [
"BSD-2-Clause"
] | 13 | 2018-11-19T15:51:23.000Z | 2022-01-16T11:24:21.000Z | cpp/src/test/test_position_manipulation.hpp | fire-rs-laas/fire-rs-saop | 321e16fceebf44e8e97b482c24f37fbf6dd7d162 | [
"BSD-2-Clause"
] | 14 | 2017-10-12T16:19:19.000Z | 2018-03-12T12:07:56.000Z | cpp/src/test/test_position_manipulation.hpp | fire-rs-laas/fire-rs-saop | 321e16fceebf44e8e97b482c24f37fbf6dd7d162 | [
"BSD-2-Clause"
] | 4 | 2018-03-12T12:28:55.000Z | 2021-07-07T18:32:17.000Z | /* Copyright (c) 2017, CNRS-LAAS
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright notice, this
list of conditions and the following di... | 38.210714 | 105 | 0.549397 |
32195b99c77ad49abb0663ef57842b878994afb9 | 23,631 | cpp | C++ | GRAS/raspberry_pi/two_muscle.cpp | KseniiaKarpova/memristive-spinal-cord | 15be4aea80ede6315b9bf4ea76eec17b900f31e4 | [
"MIT"
] | null | null | null | GRAS/raspberry_pi/two_muscle.cpp | KseniiaKarpova/memristive-spinal-cord | 15be4aea80ede6315b9bf4ea76eec17b900f31e4 | [
"MIT"
] | null | null | null | GRAS/raspberry_pi/two_muscle.cpp | KseniiaKarpova/memristive-spinal-cord | 15be4aea80ede6315b9bf4ea76eec17b900f31e4 | [
"MIT"
] | null | null | null | #define DEBUG
#include <omp.h>
#include <cstdio>
#include <cmath>
#include <utility>
#include <vector>
#include <random>
#include <chrono>
#include <string>
// for file writing
#include <cstdlib>
#include <iostream>
#include <fstream>
#include <unistd.h>
using namespace std;
unsigned int global_id = 0;
const float SI... | 35.968037 | 158 | 0.690195 |
32198d49dc2fa06def4ac0e909270088f01cb6bf | 26,482 | cpp | C++ | himan-plugins/source/geotiff.cpp | fmidev/himan | 481e0cf9a3d15c900e07d08cf7e22de1c50a6823 | [
"MIT"
] | 18 | 2017-04-20T18:51:41.000Z | 2022-03-23T21:12:49.000Z | himan-plugins/source/geotiff.cpp | fmidev/himan | 481e0cf9a3d15c900e07d08cf7e22de1c50a6823 | [
"MIT"
] | 5 | 2018-07-05T02:15:56.000Z | 2021-06-01T09:36:51.000Z | himan-plugins/source/geotiff.cpp | fmidev/himan | 481e0cf9a3d15c900e07d08cf7e22de1c50a6823 | [
"MIT"
] | 2 | 2020-02-18T06:32:53.000Z | 2021-03-29T15:17:09.000Z | #include "geotiff.h"
#include "cpl_conv.h" // for CPLMalloc()
#include "file_accessor.h"
#include "gdal_frmts.h"
#include "grid.h"
#include "lambert_conformal_grid.h"
#include "lambert_equal_area_grid.h"
#include "latitude_longitude_grid.h"
#include "logger.h"
#include "plugin_factory.h"
#include "producer.h"
#include... | 29.489978 | 120 | 0.663998 |
321a1cd6e50b7fda1c89b6fe67bea9189add0552 | 24,431 | cpp | C++ | be/src/olap/base_expansion_handler.cpp | DiffBlue-benchmarks/baidu-palo | 27e021b0a9616a795a650026ed8c59aea7d09841 | [
"Apache-2.0"
] | 1 | 2021-07-14T07:30:48.000Z | 2021-07-14T07:30:48.000Z | be/src/olap/base_expansion_handler.cpp | DiffBlue-benchmarks/baidu-palo | 27e021b0a9616a795a650026ed8c59aea7d09841 | [
"Apache-2.0"
] | null | null | null | be/src/olap/base_expansion_handler.cpp | DiffBlue-benchmarks/baidu-palo | 27e021b0a9616a795a650026ed8c59aea7d09841 | [
"Apache-2.0"
] | 1 | 2018-06-29T06:40:03.000Z | 2018-06-29T06:40:03.000Z | // Copyright (c) 2017, Baidu.com, Inc. All Rights Reserved
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applic... | 38.595577 | 99 | 0.620237 |
321c3ffcbfc764ede04835b683800520a8bdff0b | 404 | cpp | C++ | state_mach.cpp | davitkalantaryan/fork-cpp-raft | f8d08a645ba541d42c6f2db54137fbfa53b5908d | [
"BSD-3-Clause"
] | 20 | 2015-01-19T02:12:50.000Z | 2020-12-09T17:02:42.000Z | state_mach.cpp | davitkalantaryan/fork-cpp-raft | f8d08a645ba541d42c6f2db54137fbfa53b5908d | [
"BSD-3-Clause"
] | 1 | 2015-12-15T11:28:19.000Z | 2015-12-15T11:28:19.000Z | state_mach.cpp | davitkalantaryan/fork-cpp-raft | f8d08a645ba541d42c6f2db54137fbfa53b5908d | [
"BSD-3-Clause"
] | 9 | 2015-08-20T15:35:17.000Z | 2020-07-17T02:26:35.000Z | #include "state_mach.h"
using namespace Raft;
State::State() {
}
State::~State() {
}
bool State::is_follower() {
return d_state == RAFT_STATE_FOLLOWER;
}
bool State::is_leader() {
return d_state == RAFT_STATE_LEADER;
}
bool State::is_candidate() {
return d_state == RAFT_STATE_CANDIDATE;
}
void State::set(R... | 14.962963 | 54 | 0.693069 |
321e52d806270a22769c244eecdbf204b18e506a | 1,539 | cpp | C++ | samples/webserver.cpp | nodenative/nodenative | cf988c9399e0793b1b8c29a8ffd09e910d1a0cb3 | [
"MIT"
] | 16 | 2016-03-16T22:16:18.000Z | 2021-04-05T04:46:38.000Z | samples/webserver.cpp | nodenative/nodenative | cf988c9399e0793b1b8c29a8ffd09e910d1a0cb3 | [
"MIT"
] | 11 | 2016-03-16T22:02:26.000Z | 2021-04-04T02:20:51.000Z | samples/webserver.cpp | nodenative/nodenative | cf988c9399e0793b1b8c29a8ffd09e910d1a0cb3 | [
"MIT"
] | 5 | 2016-03-22T14:03:34.000Z | 2021-01-06T18:08:46.000Z | #include <iostream>
#include <native/native.hpp>
using namespace native;
using namespace http;
int main() {
std::shared_ptr<Loop> loop = Loop::Create();
std::shared_ptr<Server> server = Server::Create(loop);
server->get("/", [](std::shared_ptr<ServerConnection> connection) -> Future<void> {
// some initial ... | 34.2 | 87 | 0.606888 |
321ea55f66bcb059d8b71afc93e24621cc8442e6 | 5,572 | cpp | C++ | OpenCup/e.cpp | JackBai0914/Competitive-Programming-Codebase | a1cabf0fa5072b07a7da25d66bf455eb45b0b7e9 | [
"MIT"
] | null | null | null | OpenCup/e.cpp | JackBai0914/Competitive-Programming-Codebase | a1cabf0fa5072b07a7da25d66bf455eb45b0b7e9 | [
"MIT"
] | null | null | null | OpenCup/e.cpp | JackBai0914/Competitive-Programming-Codebase | a1cabf0fa5072b07a7da25d66bf455eb45b0b7e9 | [
"MIT"
] | null | null | null | /*
* * * * * * * * * * * * * * * * * *
*
* @author: Xingjian Bai
* @date: 2020-10-11 10:31:31
* @description:
* /Users/jackbai/Desktop/OI/OpenCup/e.cpp
*
* @notes:
* g++ -fsanitize=address -ftrapv e.cpp
* * * * * * * * * * * * * * * * * */
#include <bits/stdc++.h>
#define F first... | 25.559633 | 119 | 0.470747 |
32234a55fff0457a3399490a0db7f51162085257 | 437 | cc | C++ | platform/client_native_pixmap_factory_qt.cc | tworaz/ozone_qt | a015069d3d68cfe0826e76977c974baa1f459834 | [
"MIT"
] | null | null | null | platform/client_native_pixmap_factory_qt.cc | tworaz/ozone_qt | a015069d3d68cfe0826e76977c974baa1f459834 | [
"MIT"
] | null | null | null | platform/client_native_pixmap_factory_qt.cc | tworaz/ozone_qt | a015069d3d68cfe0826e76977c974baa1f459834 | [
"MIT"
] | null | null | null | // Copyright 2015 Piotr Tworek. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "ozone_qt/platform/client_native_pixmap_factory_qt.h"
#include "ui/ozone/common/stub_client_native_pixmap_factory.h"
namespace ui {
ClientNativePixmap... | 27.3125 | 73 | 0.796339 |
322399a6ddafb4e2f67c58e3d8b574741c2d0f87 | 847 | cpp | C++ | pvxmatching/utils/rbitmap.cpp | igarashi/matchingwithvcmap | b1bc5441d7b45622edf58f0597f478c07ee6db75 | [
"MIT"
] | null | null | null | pvxmatching/utils/rbitmap.cpp | igarashi/matchingwithvcmap | b1bc5441d7b45622edf58f0597f478c07ee6db75 | [
"MIT"
] | null | null | null | pvxmatching/utils/rbitmap.cpp | igarashi/matchingwithvcmap | b1bc5441d7b45622edf58f0597f478c07ee6db75 | [
"MIT"
] | null | null | null | //
// Created by Yuki Igarashi on 2017/05/23.
//
#include "rbitmap.hpp"
namespace utils {
RBitmap::RBitmap(int size) : size_(size) {
if (size > MAX_BIT_SIZE)
throw "Exception: size exceed MAX_BIT_SIZE while creating bitmap. (Use longer int as Bitmap instead.)";
}
void RBitmap::set_value(int symbol, size_t case... | 22.891892 | 107 | 0.702479 |
322990c1350e8b84464e785bf64d9154bb92ecf7 | 503 | hpp | C++ | src/Common/src/PolynomialFit.hpp | LBNL-ETA/Windows-CalcEngine | c81528f25ffb79989fcb15b03f00b7c18da138c4 | [
"BSD-3-Clause-LBNL"
] | 15 | 2018-04-20T19:16:50.000Z | 2022-02-11T04:11:41.000Z | src/Common/src/PolynomialFit.hpp | LBNL-ETA/Windows-CalcEngine | c81528f25ffb79989fcb15b03f00b7c18da138c4 | [
"BSD-3-Clause-LBNL"
] | 31 | 2016-04-05T20:56:28.000Z | 2022-03-31T22:02:46.000Z | src/Common/src/PolynomialFit.hpp | LBNL-ETA/Windows-CalcEngine | c81528f25ffb79989fcb15b03f00b7c18da138c4 | [
"BSD-3-Clause-LBNL"
] | 6 | 2018-04-20T19:38:58.000Z | 2020-04-06T00:30:47.000Z | #ifndef POLYNOMIALFIT_CPOLYFIT_HPP
#define POLYNOMIALFIT_CPOLYFIT_HPP
#include <vector>
namespace FenestrationCommon
{
class PolynomialFit
{
public:
explicit PolynomialFit(std::size_t const t_Order);
// Get polynomial fit for given coefficients
std::vector<double> getCoefficients(... | 20.958333 | 98 | 0.709742 |
322badbed3ba644ba9ceadae77b86c940bd1ede1 | 8,995 | cpp | C++ | src/pow.cpp | JinCoin/Jincoin | 97c773bae2aaf7d34f3e553944ab7a604cdd6f4d | [
"MIT"
] | 4 | 2018-12-21T03:03:56.000Z | 2021-11-23T18:01:55.000Z | src/pow.cpp | JinCoin/Jincoin | 97c773bae2aaf7d34f3e553944ab7a604cdd6f4d | [
"MIT"
] | null | null | null | src/pow.cpp | JinCoin/Jincoin | 97c773bae2aaf7d34f3e553944ab7a604cdd6f4d | [
"MIT"
] | 4 | 2018-03-24T19:07:26.000Z | 2020-07-07T18:39:44.000Z | // Copyright (c) 2009-2010 Satoshi Nakamoto
// Copyright (c) 2009-2015 The Bitcoin Core developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include "pow.h"
#include "arith_uint256.h"
#include "chain.h"
#include "primiti... | 54.515152 | 207 | 0.615453 |
7a8aae924191335e0c0e561f5f39f1d8269ca4ad | 1,982 | cpp | C++ | CrossApp/renderer/CCPrimitive.cpp | kingBook/cross-2.1.5 | de4e910bd2de55d79ab3aa105d3c2f99ffa60219 | [
"MIT"
] | 794 | 2015-01-01T04:59:48.000Z | 2022-03-09T03:31:13.000Z | CrossApp/renderer/CCPrimitive.cpp | kingBook/cross-2.1.5 | de4e910bd2de55d79ab3aa105d3c2f99ffa60219 | [
"MIT"
] | 83 | 2015-01-04T06:00:35.000Z | 2021-05-20T08:48:38.000Z | CrossApp/renderer/CCPrimitive.cpp | kingBook/cross-2.1.5 | de4e910bd2de55d79ab3aa105d3c2f99ffa60219 | [
"MIT"
] | 598 | 2015-01-02T02:38:13.000Z | 2022-03-09T03:31:37.000Z |
#include "renderer/CCPrimitive.h"
#include "renderer/CCVertexIndexBuffer.h"
NS_CC_BEGIN
Primitive* Primitive::create(VertexData* verts, IndexBuffer* indices, int type)
{
auto result = new (std::nothrow) Primitive();
if( result && result->init(verts, indices, type))
{
result->autorelease();
... | 19.623762 | 133 | 0.624622 |
7a9172749bb79019588820fc40c1676f16d2bd0e | 12,308 | cpp | C++ | test/yulPhaser/Population.cpp | MrChico/solidity | 5b4ea1eb895d5edc9a24ee5c6f96d8580eceec08 | [
"MIT"
] | null | null | null | test/yulPhaser/Population.cpp | MrChico/solidity | 5b4ea1eb895d5edc9a24ee5c6f96d8580eceec08 | [
"MIT"
] | null | null | null | test/yulPhaser/Population.cpp | MrChico/solidity | 5b4ea1eb895d5edc9a24ee5c6f96d8580eceec08 | [
"MIT"
] | null | null | null | /*
This file is part of solidity.
solidity 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 3 of the License, or
(at your option) any later version.
solidity is distributed in the hope that i... | 41.16388 | 147 | 0.772262 |
7a92578132cd9170dd4baece915ccdaab616239c | 730 | cpp | C++ | TCP_ServerClient/AsyncTCPServer_Factory.cpp | aliyavuzkahveci/tcp_serverclient | c37111e21069670972f0fcd08584710af42f591a | [
"MIT"
] | null | null | null | TCP_ServerClient/AsyncTCPServer_Factory.cpp | aliyavuzkahveci/tcp_serverclient | c37111e21069670972f0fcd08584710af42f591a | [
"MIT"
] | null | null | null | TCP_ServerClient/AsyncTCPServer_Factory.cpp | aliyavuzkahveci/tcp_serverclient | c37111e21069670972f0fcd08584710af42f591a | [
"MIT"
] | null | null | null | #include "AsyncTCPServer_Factory.h"
#include "AsyncTCPServer_Impl.h"
namespace AsyncTCP
{
AsyncTCPServer_Factory_Ptr AsyncTCPServer_Factory::m_instance = nullptr;
AsyncTCPServer_Factory_Ptr& AsyncTCPServer_Factory::getInstance()
{
if (m_instance == nullptr)
m_instance = std::unique_ptr<AsyncTCPServe... | 24.333333 | 87 | 0.773973 |
7a9a54ee622437b984766c046bb2611a0d0565df | 16,941 | cpp | C++ | src/helpers/ExtraHelpers.cpp | mdhooge/qt-handlebars | e950052e0e758413ee09a9c91499481a3ea51b11 | [
"MIT"
] | 1 | 2022-01-11T19:57:39.000Z | 2022-01-11T19:57:39.000Z | src/helpers/ExtraHelpers.cpp | mdhooge/qt-handlebars | e950052e0e758413ee09a9c91499481a3ea51b11 | [
"MIT"
] | null | null | null | src/helpers/ExtraHelpers.cpp | mdhooge/qt-handlebars | e950052e0e758413ee09a9c91499481a3ea51b11 | [
"MIT"
] | 2 | 2016-11-17T12:35:03.000Z | 2022-01-11T19:57:19.000Z | #include "ExtraHelpers.h"
#include <QChar>
#include <QDateTime>
#include <QDir>
#include <QFile>
#include <QObject>
#include <QTextStream>
#include "HandlebarsParser.h"
namespace Handlebars {
const escape_fn
fn_noEscape,
fn_htmlEscape { [] (const QString& str ) { return str.toHtmlEscaped(); } };
void register... | 25.90367 | 106 | 0.581725 |
7a9c02bc21da5bd673f3a972a10d7862f117a9b4 | 1,524 | hpp | C++ | libs/ledger/include/ledger/tx_status_http_interface.hpp | devjsc/ledger-1 | 2aa68e05b9f9c10a9971fc8ddf4848695511af3c | [
"Apache-2.0"
] | 3 | 2019-07-11T08:49:27.000Z | 2021-09-07T16:49:15.000Z | libs/ledger/include/ledger/tx_status_http_interface.hpp | devjsc/ledger-1 | 2aa68e05b9f9c10a9971fc8ddf4848695511af3c | [
"Apache-2.0"
] | null | null | null | libs/ledger/include/ledger/tx_status_http_interface.hpp | devjsc/ledger-1 | 2aa68e05b9f9c10a9971fc8ddf4848695511af3c | [
"Apache-2.0"
] | 2 | 2019-07-13T12:45:22.000Z | 2021-03-12T08:48:57.000Z | #pragma once
//------------------------------------------------------------------------------
//
// Copyright 2018-2019 Fetch.AI Limited
//
// 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 Licen... | 33.130435 | 80 | 0.654199 |
7a9ea246aeb7df0f5298e76b12ecffced085fafa | 3,983 | cpp | C++ | src/main/cpp/ofxOboeAndroidSoundPlayer.cpp | danoli3/ofxOboe | 61b628c48c18c44a4f21a695549fa95286d86779 | [
"MIT"
] | 1 | 2021-11-05T08:33:34.000Z | 2021-11-05T08:33:34.000Z | src/main/cpp/ofxOboeAndroidSoundPlayer.cpp | danoli3/ofxOboe | 61b628c48c18c44a4f21a695549fa95286d86779 | [
"MIT"
] | null | null | null | src/main/cpp/ofxOboeAndroidSoundPlayer.cpp | danoli3/ofxOboe | 61b628c48c18c44a4f21a695549fa95286d86779 | [
"MIT"
] | null | null | null | //
// Created by Dan Rosser on 10/9/21.
//
#include "ofxOboeAndroidSoundPlayer.h"
bool ofxOboeAndroidSoundPlayer::load(const std::filesystem::path& fileName, bool stream) {
AudioProperties targetProperties {
.channelCount = ofxOboe::getChannelCount(),
.sampleRate = ofxOboe::getSampleRate()... | 23.850299 | 143 | 0.656038 |