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 109 | max_stars_repo_head_hexsha stringlengths 40 40 | max_stars_repo_licenses listlengths 1 9 | max_stars_count int64 1 191k ⌀ | max_stars_repo_stars_event_min_datetime stringlengths 24 24 ⌀ | max_stars_repo_stars_event_max_datetime stringlengths 24 24 ⌀ | max_issues_repo_path stringlengths 4 269 | max_issues_repo_name stringlengths 5 116 | max_issues_repo_head_hexsha stringlengths 40 40 | max_issues_repo_licenses listlengths 1 9 | max_issues_count int64 1 48.5k ⌀ | max_issues_repo_issues_event_min_datetime stringlengths 24 24 ⌀ | max_issues_repo_issues_event_max_datetime stringlengths 24 24 ⌀ | max_forks_repo_path stringlengths 4 269 | max_forks_repo_name stringlengths 5 116 | max_forks_repo_head_hexsha stringlengths 40 40 | max_forks_repo_licenses listlengths 1 9 | max_forks_count int64 1 105k ⌀ | max_forks_repo_forks_event_min_datetime stringlengths 24 24 ⌀ | max_forks_repo_forks_event_max_datetime stringlengths 24 24 ⌀ | content stringlengths 7 1.05M | avg_line_length float64 1.21 330k | max_line_length int64 6 990k | alphanum_fraction float64 0.01 0.99 | author_id stringlengths 2 40 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
443815f88fead02b7458e81e0e3a88f1fbbe35b2 | 1,192 | hpp | C++ | examples/platformer/src/inc/game.hpp | YeyaSwizaw/teabag | 20a44414a6cf628426b17651f59d92c4455f312f | [
"Apache-2.0"
] | null | null | null | examples/platformer/src/inc/game.hpp | YeyaSwizaw/teabag | 20a44414a6cf628426b17651f59d92c4455f312f | [
"Apache-2.0"
] | null | null | null | examples/platformer/src/inc/game.hpp | YeyaSwizaw/teabag | 20a44414a6cf628426b17651f59d92c4455f312f | [
"Apache-2.0"
] | null | null | null | #ifndef PLATFORMER_GAME_HPP
#define PLATFORMER_GAME_HPP
#include "teabag/game.hpp"
#include "teabag/collision.hpp"
#include <string>
#include <functional>
#include <algorithm>
#include <iostream>
#include <unordered_set>
#include <SFML/Window.hpp>
class Game {
public:
void run();
private:
static const floa... | 20.20339 | 60 | 0.69547 | YeyaSwizaw |
443b086d5d21c196e6f38d7d7a48694c08b79de9 | 1,058 | cpp | C++ | backup/2/exercism/c++/etl.cpp | yangyanzhan/code-camp | 4272564e916fc230a4a488f92ae32c07d355dee0 | [
"Apache-2.0"
] | 21 | 2019-11-16T19:08:35.000Z | 2021-11-12T12:26:01.000Z | backup/2/exercism/c++/etl.cpp | yangyanzhan/code-camp | 4272564e916fc230a4a488f92ae32c07d355dee0 | [
"Apache-2.0"
] | 1 | 2022-02-04T16:02:53.000Z | 2022-02-04T16:02:53.000Z | backup/2/exercism/c++/etl.cpp | yangyanzhan/code-camp | 4272564e916fc230a4a488f92ae32c07d355dee0 | [
"Apache-2.0"
] | 4 | 2020-05-15T19:39:41.000Z | 2021-10-30T06:40:31.000Z | // Hi, I'm Yanzhan. For more algothmic problems, visit my Youtube Channel (Yanzhan Yang's Youtube Channel) : https://www.youtube.com/channel/UCDkz-__gl3frqLexukpG0DA?view_as=subscriber or my Twitter Account (Yanzhan Yang's Twitter) : https://twitter.com/YangYanzhan or my GitHub HomePage (Yanzhan Yang's GitHub HomePage)... | 33.0625 | 345 | 0.690926 | yangyanzhan |
443b21178ff506e9f46bb077e21bb9b9b0a7de62 | 4,503 | cpp | C++ | dali-toolkit/public-api/controls/scrollable/item-view/item-layout.cpp | dalihub/dali-toolk | 980728a7e35b8ddd28f70c090243e8076e21536e | [
"Apache-2.0",
"BSD-3-Clause"
] | 7 | 2016-11-18T10:26:51.000Z | 2021-01-28T13:51:59.000Z | dali-toolkit/public-api/controls/scrollable/item-view/item-layout.cpp | dalihub/dali-toolk | 980728a7e35b8ddd28f70c090243e8076e21536e | [
"Apache-2.0",
"BSD-3-Clause"
] | 13 | 2020-07-15T11:33:03.000Z | 2021-04-09T21:29:23.000Z | dali-toolkit/public-api/controls/scrollable/item-view/item-layout.cpp | dalihub/dali-toolk | 980728a7e35b8ddd28f70c090243e8076e21536e | [
"Apache-2.0",
"BSD-3-Clause"
] | 10 | 2019-05-17T07:15:09.000Z | 2021-05-24T07:28:08.000Z | /*
* Copyright (c) 2020 Samsung Electronics Co., Ltd.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable... | 27.457317 | 144 | 0.709527 | dalihub |
444397726e37aa87c9919626e01a4c0ca14e1dc1 | 2,794 | hpp | C++ | libs/core/src/molphene/vertex_attribs_buffer.hpp | janucaria/Molphene | e5374599512ff4400d04c7c16d79d3a111cc1911 | [
"MIT"
] | 3 | 2018-05-18T06:30:48.000Z | 2018-09-01T13:59:58.000Z | libs/core/src/molphene/vertex_attribs_buffer.hpp | janucaria/Molphene | e5374599512ff4400d04c7c16d79d3a111cc1911 | [
"MIT"
] | null | null | null | libs/core/src/molphene/vertex_attribs_buffer.hpp | janucaria/Molphene | e5374599512ff4400d04c7c16d79d3a111cc1911 | [
"MIT"
] | null | null | null | #ifndef MOLPHENE_VERTEX_ATTRIBS_BUFFER_HPP
#define MOLPHENE_VERTEX_ATTRIBS_BUFFER_HPP
#include "gl/buffer.hpp"
#include "gl/draw_instanced_arrays.hpp"
#include "opengl.hpp"
#include "shader_attrib_location.hpp"
#include "stdafx.hpp"
namespace molphene {
template<typename TDataType,
shader_attrib_location at... | 30.369565 | 80 | 0.644953 | janucaria |
444470330623a89a1b502288e6dcab1b0ae381b6 | 11,961 | cpp | C++ | Code/Engine/Core/World/Implementation/WorldData.cpp | fereeh/ezEngine | 14e46cb2a1492812888602796db7ddd66e2b7110 | [
"MIT"
] | null | null | null | Code/Engine/Core/World/Implementation/WorldData.cpp | fereeh/ezEngine | 14e46cb2a1492812888602796db7ddd66e2b7110 | [
"MIT"
] | null | null | null | Code/Engine/Core/World/Implementation/WorldData.cpp | fereeh/ezEngine | 14e46cb2a1492812888602796db7ddd66e2b7110 | [
"MIT"
] | null | null | null | #include <CorePCH.h>
#include <Core/World/SpatialSystem_RegularGrid.h>
#include <Core/World/World.h>
#include <Foundation/Time/DefaultTimeStepSmoothing.h>
namespace ezInternal
{
class DefaultCoordinateSystemProvider : public ezCoordinateSystemProvider
{
public:
DefaultCoordinateSystemProvider()
: ezC... | 32.769863 | 131 | 0.679793 | fereeh |
4447bf1e425c808dae208796a759fb1b5a0ea9e8 | 19,077 | cpp | C++ | Code/ModelData/modelDataBaseExtend.cpp | jiaguobing/FastCAE | 2348ab87e83fe5c704e4c998cf391229c25ac5d5 | [
"BSD-3-Clause"
] | 2 | 2020-02-21T01:04:35.000Z | 2020-02-21T03:35:37.000Z | Code/ModelData/modelDataBaseExtend.cpp | jiaguobing/FastCAE | 2348ab87e83fe5c704e4c998cf391229c25ac5d5 | [
"BSD-3-Clause"
] | 1 | 2020-03-06T04:49:42.000Z | 2020-03-06T04:49:42.000Z | Code/ModelData/modelDataBaseExtend.cpp | baojunli/FastCAE | a3f99f6402da564df87fcef30674ce5f44379962 | [
"BSD-3-Clause"
] | 1 | 2021-11-21T13:03:26.000Z | 2021-11-21T13:03:26.000Z | #include "modelDataBaseExtend.h"
#include "BCBase/BCBase.h"
#include <QDomElement>
#include <assert.h>
#include "simulationSettingBase.h"
#include "solverSettingBase.h"
#include "ConfigOptions/ConfigOptions.h"
#include "ConfigOptions/DataConfig.h"
#include "ConfigOptions/PostCurve.h"
#include "ConfigOptions/Po... | 28.013216 | 143 | 0.671122 | jiaguobing |
444b370f61e5087fa2c7f7f540ee6ca18fce66eb | 5,202 | cc | C++ | src/ThreeOpt.cc | nklisch/AntColony-Parallel-Optimized | dd7e00d794a72d74b3761faf9d9282cfdd7fa356 | [
"MIT"
] | null | null | null | src/ThreeOpt.cc | nklisch/AntColony-Parallel-Optimized | dd7e00d794a72d74b3761faf9d9282cfdd7fa356 | [
"MIT"
] | null | null | null | src/ThreeOpt.cc | nklisch/AntColony-Parallel-Optimized | dd7e00d794a72d74b3761faf9d9282cfdd7fa356 | [
"MIT"
] | 1 | 2021-02-03T07:20:37.000Z | 2021-02-03T07:20:37.000Z |
#include "ThreeOpt.h"
#include "CandidateLists.h"
#include <iostream>
using namespace std;
// Code inspired and derived from http://tsp-basics.blogspot.com/2017/04/3-opt-with-neighbor-lists-and-dlb.html
ThreeOpt::ThreeOpt(Tour* tour, CandidateLists* cl) {
this->tour = tour;
this->cl = cl;
dontLookBit = ne... | 31.91411 | 141 | 0.524029 | nklisch |
444d82fa1f048509a2f06fd8b25fae965b39a3b6 | 14,312 | cc | C++ | src/script_parse.cc | pekdon/plux | 74d7dd1e4bd57dda0b2a3754e77af068205dabe1 | [
"MIT"
] | null | null | null | src/script_parse.cc | pekdon/plux | 74d7dd1e4bd57dda0b2a3754e77af068205dabe1 | [
"MIT"
] | null | null | null | src/script_parse.cc | pekdon/plux | 74d7dd1e4bd57dda0b2a3754e77af068205dabe1 | [
"MIT"
] | null | null | null | #include <fstream>
#include "regex.hh"
#include "script_parse.hh"
namespace plux
{
ScriptParseError::ScriptParseError(const std::string& path,
unsigned int linenumber,
const std::string& line,
cons... | 34.992665 | 80 | 0.506778 | pekdon |
444e4220ba110bea84070c9cd27bfccd14893eca | 139 | hpp | C++ | bot/includes/common.hpp | Antip003/irc | 973c4e1ee3d231c6aca1a434a735f236d4d55e77 | [
"MIT"
] | 1 | 2021-11-29T21:41:10.000Z | 2021-11-29T21:41:10.000Z | bot/includes/common.hpp | Antip003/irc | 973c4e1ee3d231c6aca1a434a735f236d4d55e77 | [
"MIT"
] | null | null | null | bot/includes/common.hpp | Antip003/irc | 973c4e1ee3d231c6aca1a434a735f236d4d55e77 | [
"MIT"
] | null | null | null | #ifndef COMMON_HPP
#define COMMON_HPP
#define BOTNAME "ircbot"
#define VERSION "0.1.7dev"
#define PREFIX '!'
#define CRLF "\r\n"
#endif
| 13.9 | 26 | 0.71223 | Antip003 |
444e46e23980a178cd86346f95b53120fe1db592 | 2,403 | cpp | C++ | src/Lego_I2C.cpp | cednik/LegoBTservoExpander | 78587d51ea2f9924a8df814656717fd4fc0bfca0 | [
"MIT"
] | null | null | null | src/Lego_I2C.cpp | cednik/LegoBTservoExpander | 78587d51ea2f9924a8df814656717fd4fc0bfca0 | [
"MIT"
] | null | null | null | src/Lego_I2C.cpp | cednik/LegoBTservoExpander | 78587d51ea2f9924a8df814656717fd4fc0bfca0 | [
"MIT"
] | null | null | null | #include "Lego_I2C.hpp"
#include <esp_log.h>
#define TAG "Lego_I2C"
LegoI2C::LegoI2C(i2c_port_t i2c)
: m_i2c(i2c),
m_msg_cnt(0),
m_tx_mutex(),
m_rx_mutex(),
m_rx_buff(),
m_callback()
{}
bool LegoI2C::install(addr_t addr, gpio_num_t sda, gpio_num_t scl, gpio_pullup_t pu... | 27.62069 | 94 | 0.611735 | cednik |
444ebc72faf7c34380a3a02f8182fd802d2daaff | 27,444 | cpp | C++ | inference-engine/src/preprocessing/cpu_x86_avx512/ie_preprocess_gapi_kernels_avx512.cpp | ermubuzhiming/openvino | 3a21c99b488b449bdfd2c2ba45d956448e7cfe25 | [
"Apache-2.0"
] | 1 | 2021-01-17T03:24:52.000Z | 2021-01-17T03:24:52.000Z | inference-engine/src/preprocessing/cpu_x86_avx512/ie_preprocess_gapi_kernels_avx512.cpp | ermubuzhiming/openvino | 3a21c99b488b449bdfd2c2ba45d956448e7cfe25 | [
"Apache-2.0"
] | null | null | null | inference-engine/src/preprocessing/cpu_x86_avx512/ie_preprocess_gapi_kernels_avx512.cpp | ermubuzhiming/openvino | 3a21c99b488b449bdfd2c2ba45d956448e7cfe25 | [
"Apache-2.0"
] | null | null | null | // Copyright (C) 2019-2020 Intel Corporation
// SPDX-License-Identifier: Apache-2.0
//
#include <algorithm>
#include <utility>
#include "ie_preprocess_gapi_kernels_avx512.hpp"
#include <immintrin.h>
#ifdef CV_AVX512_SKX
#undef CV_AVX512_SKX
#endif
#define CV_AVX512_SKX 1
#define CV_CPU_HAS_SUPPORT_SSE2 1
#ifdef ... | 41.331325 | 103 | 0.463854 | ermubuzhiming |
4453c48b83a90a85306e765297fa4c42d14dff1c | 4,686 | hpp | C++ | em_unet/src/PyGreentea/evaluation/src_cython/zi/bits/cerrno.hpp | VCG/psc | 4826c495b89ff77b68a3c0d5c6e3af805db25386 | [
"MIT"
] | 10 | 2018-09-13T17:37:22.000Z | 2020-05-08T16:20:42.000Z | em_unet/src/PyGreentea/evaluation/src_cython/zi/bits/cerrno.hpp | VCG/psc | 4826c495b89ff77b68a3c0d5c6e3af805db25386 | [
"MIT"
] | 1 | 2018-12-02T14:17:39.000Z | 2018-12-02T20:59:26.000Z | em_unet/src/PyGreentea/evaluation/src_cython/zi/bits/cerrno.hpp | VCG/psc | 4826c495b89ff77b68a3c0d5c6e3af805db25386 | [
"MIT"
] | 2 | 2019-03-03T12:06:10.000Z | 2020-04-12T13:23:02.000Z | //
// Copyright (C) 2010 Aleksandar Zlateski <zlateski@mit.edu>
// ----------------------------------------------------------
//
// 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 versio... | 13.905045 | 72 | 0.726633 | VCG |
4454aa239fe731d0049377a278a1c23b00743b16 | 1,113 | hpp | C++ | Boss/Mod/PeerComplaintsDesk/Exempter.hpp | raphjaph/clboss | ceeb856ec72a7c7d743305e3b9a03a0a3ff512e6 | [
"MIT"
] | 108 | 2020-10-01T17:12:40.000Z | 2022-03-30T09:18:03.000Z | Boss/Mod/PeerComplaintsDesk/Exempter.hpp | raphjaph/clboss | ceeb856ec72a7c7d743305e3b9a03a0a3ff512e6 | [
"MIT"
] | 94 | 2020-10-03T13:40:30.000Z | 2022-03-30T09:18:00.000Z | Boss/Mod/PeerComplaintsDesk/Exempter.hpp | raphjaph/clboss | ceeb856ec72a7c7d743305e3b9a03a0a3ff512e6 | [
"MIT"
] | 17 | 2020-10-29T13:27:59.000Z | 2022-03-18T13:05:03.000Z | #ifndef BOSS_MOD_PEERCOMPLAINTSDESK_EXEMPTER_HPP
#define BOSS_MOD_PEERCOMPLAINTSDESK_EXEMPTER_HPP
#include<map>
#include<memory>
#include<string>
namespace Boss { namespace Mod { namespace PeerComplaintsDesk {
class Unmanager;
}}}
namespace Ev { template<typename a> class Io; }
namespace Ln { class NodeId; }
namespa... | 22.714286 | 63 | 0.744834 | raphjaph |
44556b00acad1137184c9a656b4d7d3ddd9b43f7 | 5,526 | cpp | C++ | networkit/cpp/dynamics/test/DynamicsGTest.cpp | clintg6/networkit | b4cba9a82436cd7ebc139c1a612f593fca9892c6 | [
"MIT"
] | null | null | null | networkit/cpp/dynamics/test/DynamicsGTest.cpp | clintg6/networkit | b4cba9a82436cd7ebc139c1a612f593fca9892c6 | [
"MIT"
] | null | null | null | networkit/cpp/dynamics/test/DynamicsGTest.cpp | clintg6/networkit | b4cba9a82436cd7ebc139c1a612f593fca9892c6 | [
"MIT"
] | null | null | null | /*
* DynamicsGTest.cpp
*
* Created on: 24.12.2013
* Author: cls
*/
#include <gtest/gtest.h>
#include "../../../include/networkit/dynamics/DGSStreamParser.hpp"
#include "../../../include/networkit/auxiliary/Log.hpp"
#include "../../../include/networkit/dynamics/GraphEvent.hpp"
#include "../../../include/net... | 29.084211 | 88 | 0.709193 | clintg6 |
4457fb9e135da6ed04c0be0bba0bd885f65fc7e5 | 3,788 | hpp | C++ | backend/include/protect-eval.hpp | vkurilin/SHEEP | 2ccaef32c16efcf5dbc8eefd1dc243bed4ac2fbb | [
"MIT"
] | 40 | 2018-12-03T13:01:06.000Z | 2022-02-23T13:04:12.000Z | backend/include/protect-eval.hpp | vkurilin/SHEEP | 2ccaef32c16efcf5dbc8eefd1dc243bed4ac2fbb | [
"MIT"
] | 63 | 2018-09-11T14:13:31.000Z | 2020-01-14T16:12:39.000Z | backend/include/protect-eval.hpp | vkurilin/SHEEP | 2ccaef32c16efcf5dbc8eefd1dc243bed4ac2fbb | [
"MIT"
] | 7 | 2019-07-10T14:48:31.000Z | 2022-03-23T09:12:11.000Z | // This file provides a function protect_eval for calling another
// function (that might crash or call exit) within a forked process,
// allowing the calling process to continue and recover.
//
// It requires POSIX fork/wait, nanosleep and anonymous shared memory.
//
// The function protect_eval will cause the parent ... | 28.268657 | 74 | 0.670011 | vkurilin |
44585f40d27a5486e2d530c6af6524d2d06b4188 | 4,391 | hpp | C++ | include/nornir/instrumenter.hpp | DanieleDeSensi/Nornir | 60587824d6b0a6e61b8fc75bdea37c9fc69199c7 | [
"MIT"
] | 2 | 2018-10-31T08:09:03.000Z | 2021-01-18T19:23:54.000Z | include/nornir/instrumenter.hpp | DanieleDeSensi/Nornir | 60587824d6b0a6e61b8fc75bdea37c9fc69199c7 | [
"MIT"
] | 1 | 2020-02-02T11:58:22.000Z | 2020-02-02T11:58:22.000Z | include/nornir/instrumenter.hpp | DanieleDeSensi/Nornir | 60587824d6b0a6e61b8fc75bdea37c9fc69199c7 | [
"MIT"
] | 1 | 2019-04-13T09:54:49.000Z | 2019-04-13T09:54:49.000Z | /*
* instrumenter.hpp
*
* Created on: 03/07/2016
*
* =========================================================================
* Copyright (C) 2015-, Daniele De Sensi (d.desensi.software@gmail.com)
*
* This file is part of nornir.
*
* nornir is free software: you can redistribute it and/or
* modify it un... | 36.289256 | 103 | 0.68777 | DanieleDeSensi |
445a4787b4a68734a6e7ea9f761511a647f5bca8 | 2,956 | cpp | C++ | sdk/app/ultra_simple/Compass.cpp | ivanmaNTNU/FolloMe | bd0bb2ddbb77129178f04da51b12b1f7f4f14dd5 | [
"BSD-2-Clause"
] | null | null | null | sdk/app/ultra_simple/Compass.cpp | ivanmaNTNU/FolloMe | bd0bb2ddbb77129178f04da51b12b1f7f4f14dd5 | [
"BSD-2-Clause"
] | null | null | null | sdk/app/ultra_simple/Compass.cpp | ivanmaNTNU/FolloMe | bd0bb2ddbb77129178f04da51b12b1f7f4f14dd5 | [
"BSD-2-Clause"
] | null | null | null | #include "Compass.h"
#include <math.h>
#include <string>
#include <iostream>
#include <math.h>
#define MPU9250_ADDR_ACCELCONFIG 0x1C
#define MPU9250_ADDR_INT_PIN_CFG 0x37
#define MPU9250_ADDR_ACCEL_XOUT_H 0x3B
#define MPU9250_ADDR_GYRO_XOUT_H 0x43
#define MPU9250_ADDR_PWR_MGMT_1 0x6B
#define MPU9250_ADDR_WHOAMI ... | 22.393939 | 95 | 0.721583 | ivanmaNTNU |
445a5f448f24c8ce0d0021d6c3acb720509f6a10 | 1,186 | cpp | C++ | AtCoder/ABC192/D_sol1_binary_search.cpp | Tudor67/Competitive-Programming | ae4dc6ed8bf76451775bf4f740c16394913f3ff1 | [
"MIT"
] | 1 | 2022-01-26T14:50:07.000Z | 2022-01-26T14:50:07.000Z | AtCoder/ABC192/D_sol1_binary_search.cpp | Tudor67/Competitive-Programming | ae4dc6ed8bf76451775bf4f740c16394913f3ff1 | [
"MIT"
] | null | null | null | AtCoder/ABC192/D_sol1_binary_search.cpp | Tudor67/Competitive-Programming | ae4dc6ed8bf76451775bf4f740c16394913f3ff1 | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
using namespace std;
bool isValid(const string& X, const long long& BASE, const long long& M){
long long num = 0;
for(long long i = 0; i < (int)X.length(); ++i){
if(num > (M - (X[i] - '0')) / BASE){
return false;
}
num = BASE * num + (X[i] -... | 23.254902 | 75 | 0.427487 | Tudor67 |
446486783cad1f815b316ca2835d5c5b1d5d8c30 | 1,243 | hpp | C++ | irohad/network/ordering_service.hpp | coderintherye/iroha | 68509282851130c9818f21acef1ef28e53622315 | [
"Apache-2.0"
] | null | null | null | irohad/network/ordering_service.hpp | coderintherye/iroha | 68509282851130c9818f21acef1ef28e53622315 | [
"Apache-2.0"
] | null | null | null | irohad/network/ordering_service.hpp | coderintherye/iroha | 68509282851130c9818f21acef1ef28e53622315 | [
"Apache-2.0"
] | null | null | null | /**
* Copyright Soramitsu Co., Ltd. 2017 All Rights Reserved.
* http://soramitsu.co.jp
*
* 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/LICENS... | 32.710526 | 75 | 0.720032 | coderintherye |
4467727982616e880bac5ac70d5337abcc44be0e | 4,451 | cc | C++ | src/vnsw/agent/contrail/main.cc | EWERK-DIGITAL/tf-controller | 311ea863b03d425a67d04d27c1f1b9cf1e20c926 | [
"Apache-2.0"
] | 37 | 2020-09-21T10:42:26.000Z | 2022-01-09T10:16:40.000Z | src/vnsw/agent/contrail/main.cc | EWERK-DIGITAL/tf-controller | 311ea863b03d425a67d04d27c1f1b9cf1e20c926 | [
"Apache-2.0"
] | null | null | null | src/vnsw/agent/contrail/main.cc | EWERK-DIGITAL/tf-controller | 311ea863b03d425a67d04d27c1f1b9cf1e20c926 | [
"Apache-2.0"
] | 21 | 2020-08-25T12:48:42.000Z | 2022-03-22T04:32:18.000Z | /*
* Copyright (c) 2013 Juniper Networks, Inc. All rights reserved.
*/
#include <boost/program_options.hpp>
#include <base/logging.h>
#include <base/contrail_ports.h>
#include <pugixml/pugixml.hpp>
#include <base/task.h>
#include <io/event_manager.h>
#include <sandesh/common/vns_types.h>
#include <sandesh/common/v... | 27.475309 | 80 | 0.614469 | EWERK-DIGITAL |
446b4bb62a26a94afa70d7cb047296e462273f31 | 1,135 | cpp | C++ | src/RE/N/NiMatrix3.cpp | gottyduke/CommonLibSSE | 8a749684395942fccf43443b4509eac4f0f3e8ee | [
"MIT"
] | 1 | 2021-07-24T17:03:18.000Z | 2021-07-24T17:03:18.000Z | src/RE/N/NiMatrix3.cpp | gottyduke/CommonLibSSE | 8a749684395942fccf43443b4509eac4f0f3e8ee | [
"MIT"
] | null | null | null | src/RE/N/NiMatrix3.cpp | gottyduke/CommonLibSSE | 8a749684395942fccf43443b4509eac4f0f3e8ee | [
"MIT"
] | 1 | 2021-11-29T10:14:44.000Z | 2021-11-29T10:14:44.000Z | #include "RE/N/NiMatrix3.h"
#include "RE/N/NiMath.h"
#include "RE/N/NiPoint3.h"
namespace RE
{
NiPoint3 NiMatrix3::operator*(const NiPoint3& a_rhs) const
{
return NiPoint3(
entry[0][0] * a_rhs.x + entry[0][1] * a_rhs.y + entry[0][2] * a_rhs.z,
entry[1][0] * a_rhs.x + entry[1][1] * a_rhs.y + entry[1][2] * a_... | 26.395349 | 90 | 0.621145 | gottyduke |
446e1229bf11f11535bf68e84d9f2a9f770ab027 | 303 | hpp | C++ | Jagerts.Kaleid.Graphics/Cube.hpp | Jagreaper/Kaleid | 4fd28f5921d54048d9dfd75f1640abe68a09f580 | [
"MIT"
] | null | null | null | Jagerts.Kaleid.Graphics/Cube.hpp | Jagreaper/Kaleid | 4fd28f5921d54048d9dfd75f1640abe68a09f580 | [
"MIT"
] | null | null | null | Jagerts.Kaleid.Graphics/Cube.hpp | Jagreaper/Kaleid | 4fd28f5921d54048d9dfd75f1640abe68a09f580 | [
"MIT"
] | null | null | null | #pragma once
#include "Jagerts.Kaleid.Graphics/RenderableShape.hpp"
namespace Jagerts::Kaleid::Graphics
{
class JAGERTS_KALEID_GRAPHICS_API Cube : public RenderableShape
{
public:
Cube();
~Cube();
jkgUsingRenderableShape;
jkmUsingTransformableObject;
jkgRenderableShapeStaticHeader;
};
} | 18.9375 | 64 | 0.782178 | Jagreaper |
446e2f4e72f7ea39e8efb3e3c884db813c69d7c0 | 3,726 | cpp | C++ | src/App.cpp | ColeDeanShepherd/12-Steps-To-Navier-Stokes | 3bb31990457df3c31ab024a84ca521a3dfbf178d | [
"MIT"
] | 45 | 2018-01-14T17:58:51.000Z | 2022-03-16T23:47:48.000Z | src/App.cpp | ColeDeanShepherd/12-Steps-To-Navier-Stokes | 3bb31990457df3c31ab024a84ca521a3dfbf178d | [
"MIT"
] | null | null | null | src/App.cpp | ColeDeanShepherd/12-Steps-To-Navier-Stokes | 3bb31990457df3c31ab024a84ca521a3dfbf178d | [
"MIT"
] | 8 | 2018-07-02T00:34:48.000Z | 2021-05-12T09:33:04.000Z | #include "App.h"
#include "Core.h"
#include "Step1.h"
#include "Step2.h"
#include "Step3.h"
#include "Step4.h"
#include "Step5.h"
#include "Step6.h"
#include "Step7.h"
#include "Step8.h"
#include "Step9.h"
#include "Step10.h"
#include "Step11.h"
#include "Step12.h"
void App::run()
{
initSDL();
changeStep(1);
... | 26.055944 | 97 | 0.672303 | ColeDeanShepherd |
4470ad19b10331540348190c471f321e0c0a4054 | 1,824 | cpp | C++ | 02_ofApp/code/myStridePatternSketch/src/ofApp.cpp | abrennec/sose20_cc2 | e609bbc2b2834dcd1998c7d044d80f8d325c9e52 | [
"MIT"
] | null | null | null | 02_ofApp/code/myStridePatternSketch/src/ofApp.cpp | abrennec/sose20_cc2 | e609bbc2b2834dcd1998c7d044d80f8d325c9e52 | [
"MIT"
] | null | null | null | 02_ofApp/code/myStridePatternSketch/src/ofApp.cpp | abrennec/sose20_cc2 | e609bbc2b2834dcd1998c7d044d80f8d325c9e52 | [
"MIT"
] | null | null | null | // This example is taken from the Book "openFrameworks Essentials"
//--------------------------------------------------------------
void ofApp::update(){
}
//--------------------------------------------------------------
void ofApp::draw(){
ofBackground(0);
auto myWindowWidth;
auto myWindowHeigh... | 20.965517 | 66 | 0.365132 | abrennec |
4470c98a1468a299a7dd9171ad583ebd5f753dab | 3,861 | hpp | C++ | libff/algebra/fields/binary/gf256.hpp | meilof/libff | c71bbbd25a64c2dda38a942584f3e2cc3be06021 | [
"MIT"
] | null | null | null | libff/algebra/fields/binary/gf256.hpp | meilof/libff | c71bbbd25a64c2dda38a942584f3e2cc3be06021 | [
"MIT"
] | null | null | null | libff/algebra/fields/binary/gf256.hpp | meilof/libff | c71bbbd25a64c2dda38a942584f3e2cc3be06021 | [
"MIT"
] | null | null | null | /**@file
*****************************************************************************
Declaration of GF(2^256) finite field.
*****************************************************************************
* @author This file is part of libff (see AUTHORS), migrated from libiop
* @copyright MIT license (see LIC... | 33.284483 | 90 | 0.64258 | meilof |
4472e91ce38b4e48c16a06429112a1476197ed79 | 3,883 | cc | C++ | src/runtime/v8rt/v8rt.cc | fuxiaohei/xiaohei-worker | 2c6a6357f86a06880d296ecbba2e3f88d3dbd1b5 | [
"Apache-2.0"
] | null | null | null | src/runtime/v8rt/v8rt.cc | fuxiaohei/xiaohei-worker | 2c6a6357f86a06880d296ecbba2e3f88d3dbd1b5 | [
"Apache-2.0"
] | null | null | null | src/runtime/v8rt/v8rt.cc | fuxiaohei/xiaohei-worker | 2c6a6357f86a06880d296ecbba2e3f88d3dbd1b5 | [
"Apache-2.0"
] | null | null | null | /*
* Copyright (c) 2021 fuxiaohei. All rights reserved.
* Licensed under the Apache-2.0 License. See License file in the project root for
* license information.
*/
#include <common/common.h>
#include <hv/hlog.h>
#include <runtime/v8rt/v8js_context.h>
#include <runtime/v8rt/v8rt.h>
#include <v8wrap/isolate.h>
#incl... | 31.569106 | 100 | 0.700747 | fuxiaohei |
447561b2681207b5872a64f9556ceb1b06264041 | 915 | cpp | C++ | Excelenta/Problema2.cpp | NegreanV/MyAlgorithms | 7dd16d677d537d34280c3858ccf4cbea4b3ddf26 | [
"Apache-2.0"
] | 1 | 2015-10-24T10:02:06.000Z | 2015-10-24T10:02:06.000Z | Excelenta/Problema2.cpp | NegreanV/MyAlgorithms | 7dd16d677d537d34280c3858ccf4cbea4b3ddf26 | [
"Apache-2.0"
] | null | null | null | Excelenta/Problema2.cpp | NegreanV/MyAlgorithms | 7dd16d677d537d34280c3858ccf4cbea4b3ddf26 | [
"Apache-2.0"
] | null | null | null | /* Fisierul text bac.txt contine, pe o singura linie, cel mult 1000 de numere
naturale nenule, numerele fiind separate prin câte un spatiu. Scrieti un
program C/C++ care citeste de la tastatura un numar natural nenul n si numerele 0
din fisierul bac.txt si care afiseaza pe ecran, separate prin câte un spatiu, toate
... | 26.142857 | 111 | 0.621858 | NegreanV |
4476e40e21b87d1c70d037b7afa78f7226fbebe5 | 1,477 | cpp | C++ | src/TextFTGL.cpp | macton/chromium-bsu | 27e70290913f62401f1ecfca9e806b6ba9170547 | [
"ClArtistic"
] | 3 | 2019-06-07T16:09:28.000Z | 2021-04-01T21:46:24.000Z | src/TextFTGL.cpp | macton/chromium-bsu | 27e70290913f62401f1ecfca9e806b6ba9170547 | [
"ClArtistic"
] | 1 | 2020-12-19T15:20:14.000Z | 2020-12-28T10:00:31.000Z | src/TextFTGL.cpp | macton/chromium-bsu | 27e70290913f62401f1ecfca9e806b6ba9170547 | [
"ClArtistic"
] | 3 | 2016-04-19T17:07:30.000Z | 2019-03-01T05:47:53.000Z | /*
* Copyright 2009 Paul Wise
*
* "Chromium B.S.U." is free software; you can redistribute
* it and/or use it and/or modify it under the terms of the
* "Clarified Artistic License"
*/
#ifdef HAVE_CONFIG_H
#include <chromium-bsu-config.h>
#endif
#ifdef TEXT_FTGL
#include "gettext.h"
#include "TextFTGL.h"
#inc... | 19.434211 | 70 | 0.654705 | macton |
4478daa11e975de6c2787eb6c3f88d9a975f2c04 | 1,653 | cpp | C++ | snowman.cpp | SolomonWriter/messageboard-b | 0e80c6f307ec1b6e0c6cddc5d5f31cd9d537d949 | [
"MIT"
] | null | null | null | snowman.cpp | SolomonWriter/messageboard-b | 0e80c6f307ec1b6e0c6cddc5d5f31cd9d537d949 | [
"MIT"
] | null | null | null | snowman.cpp | SolomonWriter/messageboard-b | 0e80c6f307ec1b6e0c6cddc5d5f31cd9d537d949 | [
"MIT"
] | null | null | null | #include <iostream>
#include <string>
#include <array>
using namespace std;
#include "snowman.hpp"
using namespace ariel;
int charToInt( char c ) { return c - '0'; }
namespace ariel
{
std::string snowman(int number)
{
if( number < 0){throw std::out_of_range {"The Number must be POSITIVE"};}
//The... | 24.308824 | 102 | 0.591652 | SolomonWriter |
44796ad0b7a34eaf24e293b355187c54832fe1c2 | 2,693 | hpp | C++ | include/reduction/ConnectedComponentSeparator.hpp | sgraf812/pbqp-papa | b5ae6fcb0842cb66956cccc4663f6fd9e6f6ae07 | [
"MIT"
] | 1 | 2020-08-10T04:18:11.000Z | 2020-08-10T04:18:11.000Z | include/reduction/ConnectedComponentSeparator.hpp | sgraf812/pbqp-papa | b5ae6fcb0842cb66956cccc4663f6fd9e6f6ae07 | [
"MIT"
] | null | null | null | include/reduction/ConnectedComponentSeparator.hpp | sgraf812/pbqp-papa | b5ae6fcb0842cb66956cccc4663f6fd9e6f6ae07 | [
"MIT"
] | 1 | 2019-03-07T10:20:50.000Z | 2019-03-07T10:20:50.000Z | #ifndef REDUCTION_CONNECTEDCOMPONENTSEPARATOR_HPP_
#define REDUCTION_CONNECTEDCOMPONENTSEPARATOR_HPP_
#include <vector>
namespace pbqppapa {
template<typename T>
class PBQPGraph;
template<typename T>
class NtoNDependentSolution;
template<typename T>
class NodeConsistentReduction;
template<typename T>
class PBQPNode;... | 30.258427 | 104 | 0.70182 | sgraf812 |
447f0953dcc0c2faa714220a28f2150597542027 | 3,051 | hpp | C++ | libs/ledger/include/ledger/genesis_loading/genesis_file_creator.hpp | chr15murray/ledger | 85be05221f19598de8c6c58652139a1f2d9e362f | [
"Apache-2.0"
] | 96 | 2018-08-23T16:49:05.000Z | 2021-11-25T00:47:16.000Z | libs/ledger/include/ledger/genesis_loading/genesis_file_creator.hpp | chr15murray/ledger | 85be05221f19598de8c6c58652139a1f2d9e362f | [
"Apache-2.0"
] | 1,011 | 2018-08-17T12:25:21.000Z | 2021-11-18T09:30:19.000Z | libs/ledger/include/ledger/genesis_loading/genesis_file_creator.hpp | chr15murray/ledger | 85be05221f19598de8c6c58652139a1f2d9e362f | [
"Apache-2.0"
] | 65 | 2018-08-20T20:05:40.000Z | 2022-02-26T23:54:35.000Z | #pragma once
//------------------------------------------------------------------------------
//
// Copyright 2018-2020 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... | 32.806452 | 97 | 0.670272 | chr15murray |
4480c8257aaa266ea705845623a27860f0510618 | 4,280 | cpp | C++ | kernel/src/memory/heap.cpp | JoannaHammond/JOS | 642a78efd40b1cf994da837bf9a31eb62cefee0b | [
"Unlicense"
] | 1 | 2021-04-14T17:31:16.000Z | 2021-04-14T17:31:16.000Z | kernel/src/memory/heap.cpp | JoannaHammond/JOS | 642a78efd40b1cf994da837bf9a31eb62cefee0b | [
"Unlicense"
] | null | null | null | kernel/src/memory/heap.cpp | JoannaHammond/JOS | 642a78efd40b1cf994da837bf9a31eb62cefee0b | [
"Unlicense"
] | 1 | 2021-04-17T17:39:26.000Z | 2021-04-17T17:39:26.000Z | #include "heap.h"
#include "../paging/PageTableManager.h"
#include "../paging/PageFrameAllocator.h"
void* heapStart;
void* heapEnd;
HeapSegHdr* LastHdr;
void InitializeHeap(void* heapAddress, size_t pageCount){
void* pos = heapAddress;
for (size_t i = 0; i < pageCount; i++){
void* newPage = GlobalAll... | 29.517241 | 96 | 0.631075 | JoannaHammond |
44837499b3710751c33f4a1a261cca171ae424fb | 1,365 | hpp | C++ | addons/cbrn/CfgWeapons.hpp | Krzyciu/A3CS | b7144fc9089b5ded6e37cc1fad79b1c2879521be | [
"MIT"
] | 1 | 2020-06-07T00:45:49.000Z | 2020-06-07T00:45:49.000Z | addons/cbrn/CfgWeapons.hpp | Krzyciu/A3CS | b7144fc9089b5ded6e37cc1fad79b1c2879521be | [
"MIT"
] | 27 | 2020-05-24T11:09:56.000Z | 2020-05-25T12:28:10.000Z | addons/cbrn/CfgWeapons.hpp | Krzyciu/A3CS | b7144fc9089b5ded6e37cc1fad79b1c2879521be | [
"MIT"
] | 2 | 2020-05-31T08:52:45.000Z | 2021-04-16T23:16:37.000Z |
class CfgWeapons {
class UniformItem;
class Uniform_Base;
class HelmetBase;
class H_HelmetB;
class JSHK_contam_suit_base: Uniform_Base {
GVAR(protectedParts[]) = {"body"};
};
class U_C_CBRN_Suit_01_Blue_F: Uniform_Base {
GVAR(protectedParts[]) = {"head", "body"};
};
class U_C_CB... | 29.673913 | 51 | 0.611722 | Krzyciu |
44861c1209a64ea77e8f89461e7e84a410045428 | 2,423 | hpp | C++ | src/irc/iid.hpp | lep/biboumi | ba4fcbb68efdf34d173b0bc475d30e6dcbdb9553 | [
"Zlib"
] | null | null | null | src/irc/iid.hpp | lep/biboumi | ba4fcbb68efdf34d173b0bc475d30e6dcbdb9553 | [
"Zlib"
] | null | null | null | src/irc/iid.hpp | lep/biboumi | ba4fcbb68efdf34d173b0bc475d30e6dcbdb9553 | [
"Zlib"
] | null | null | null | #pragma once
#include <string>
#include <set>
class Bridge;
/**
* A name representing an IRC channel on an IRC server, or an IRC user on an
* IRC server, or just an IRC server.
*
* The separator is '%' between the local part (nickname or channel) and the
* server part. If no separator is present, it's just an ... | 25.776596 | 105 | 0.664466 | lep |
449185edf2aca3b2cc70313f0ce4768edde4e4b6 | 345 | cpp | C++ | problems/adhocs/UVA_Judge_11364.cpp | Riei-Joaquim/ICPC-Library | fe6c652b7d4736f9b279ab0614085f71777c277f | [
"MIT"
] | null | null | null | problems/adhocs/UVA_Judge_11364.cpp | Riei-Joaquim/ICPC-Library | fe6c652b7d4736f9b279ab0614085f71777c277f | [
"MIT"
] | null | null | null | problems/adhocs/UVA_Judge_11364.cpp | Riei-Joaquim/ICPC-Library | fe6c652b7d4736f9b279ab0614085f71777c277f | [
"MIT"
] | 2 | 2021-10-30T01:31:59.000Z | 2021-11-01T02:29:20.000Z | #include<bits/stdc++.h>
using namespace std;
int main(){
int n_cases;
vector<int> p;
int n;
cin >> n_cases;
for(int x = 0; x < n_cases; x++){
cin >> n;
for(int y = 0; y < n; y++){
int aux; cin >> aux;
p.push_back(aux);
}
sort(p.begin(), p.end());
int calc = 2 * (p[n-1] - p[0]);
cout << calc <<... | 15.681818 | 34 | 0.510145 | Riei-Joaquim |
4495ba1ab7a50511d4c204bec8530abd1f07c31d | 4,424 | hpp | C++ | include/VROSC/UI/UIMaterialSettings.hpp | RedBrumbler/virtuoso-codegen | e83f6f0f9b47bec4b6dd976b21edc1d46bf3cfe3 | [
"Unlicense"
] | null | null | null | include/VROSC/UI/UIMaterialSettings.hpp | RedBrumbler/virtuoso-codegen | e83f6f0f9b47bec4b6dd976b21edc1d46bf3cfe3 | [
"Unlicense"
] | null | null | null | include/VROSC/UI/UIMaterialSettings.hpp | RedBrumbler/virtuoso-codegen | e83f6f0f9b47bec4b6dd976b21edc1d46bf3cfe3 | [
"Unlicense"
] | null | null | null | // Autogenerated from CppHeaderCreator
// Created by Sc2ad
// =========================================================================
#pragma once
// Begin includes
#include "beatsaber-hook/shared/utils/typedefs.h"
#include "beatsaber-hook/shared/utils/byref.hpp"
// Including type: UnityEngine.ScriptableObject
#inclu... | 44.24 | 183 | 0.733725 | RedBrumbler |
449b45667ff21f0bfff09f901cf10d0b491a186c | 153 | cpp | C++ | Plugins/Source/WindowsTextureMovie/Private/CodecMovieMp4.cpp | friendsincode/TextureMoviePlugin | e2736d665ae4f4e25084dbb79efe0faeb4cfc2f8 | [
"MIT"
] | 53 | 2015-01-30T13:44:50.000Z | 2021-05-28T04:41:40.000Z | Plugins/Source/WindowsTextureMovie/Private/CodecMovieMp4.cpp | friendsincode/TextureMoviePlugin | e2736d665ae4f4e25084dbb79efe0faeb4cfc2f8 | [
"MIT"
] | null | null | null | Plugins/Source/WindowsTextureMovie/Private/CodecMovieMp4.cpp | friendsincode/TextureMoviePlugin | e2736d665ae4f4e25084dbb79efe0faeb4cfc2f8 | [
"MIT"
] | 31 | 2015-01-18T20:13:44.000Z | 2019-04-02T07:20:53.000Z |
#include "WindowsTextureMoviePrivatePCH.h"
UCodecMovieMp4::UCodecMovieMp4( const class FPostConstructInitializeProperties& PCIP )
: Super( PCIP )
{
}
| 19.125 | 86 | 0.797386 | friendsincode |
449bdd73046060e76f87eedf5c2e14664e391c96 | 23,715 | cpp | C++ | peg_parser/lib/PegParsingExpression.cpp | VayuDev/samal | edb67289b7a1160f917be9bd44cd734f9d865460 | [
"MIT"
] | 2 | 2021-02-26T07:39:08.000Z | 2021-03-30T21:13:47.000Z | peg_parser/lib/PegParsingExpression.cpp | VayuDev/samal | edb67289b7a1160f917be9bd44cd734f9d865460 | [
"MIT"
] | null | null | null | peg_parser/lib/PegParsingExpression.cpp | VayuDev/samal | edb67289b7a1160f917be9bd44cd734f9d865460 | [
"MIT"
] | null | null | null | #include "peg_parser/PegParsingExpression.hpp"
#include "peg_parser/PegTokenizer.hpp"
#include <cassert>
namespace peg {
const std::regex gNextStringRegex{ "^[^ \n\t]*", std::regex::optimize };
std::string ExpressionFailInfo::dump(const PegTokenizer& tokenizer, bool) const {
auto [line, column] = tokenizer.getPo... | 40.607877 | 335 | 0.641704 | VayuDev |
449c98399dc948b5a09f4bd221693036bd6e5d49 | 708 | cpp | C++ | plugin_sa/game_sa/CAERadioTrackManager.cpp | Aleksandr-Belousov/plugin-sdk | 5ca5f7d5575ae4138a4f165410a1acf0ae922260 | [
"Zlib"
] | 1 | 2021-08-02T03:07:11.000Z | 2021-08-02T03:07:11.000Z | plugin_sa/game_sa/CAERadioTrackManager.cpp | SteepCheat/plugin-sdk | a17c5d933cb8b06e4959b370092828a6a7aa00ef | [
"Zlib"
] | null | null | null | plugin_sa/game_sa/CAERadioTrackManager.cpp | SteepCheat/plugin-sdk | a17c5d933cb8b06e4959b370092828a6a7aa00ef | [
"Zlib"
] | 3 | 2022-01-05T23:58:55.000Z | 2022-03-03T16:48:08.000Z | /*
Plugin-SDK (Grand Theft Auto San Andreas) source file
Authors: GTA Community. See more here
https://github.com/DK22Pac/plugin-sdk
Do not delete this comment block. Respect others' work!
*/
#include "CAERadioTrackManager.h"
CAERadioTrackManager &AERadioTrackManager = *(CAERadioTrackManager*)0x8CB6F8;... | 32.181818 | 101 | 0.771186 | Aleksandr-Belousov |
449df68da39f1201c98e2e1c996d7fd30a32b124 | 3,433 | cpp | C++ | source/cpp/source/Connection.cpp | steve-baker-cradle/juce-end-to-end | 2a8b8f3d458884b3bf8be094d3e0f326bfbdcd53 | [
"Apache-2.0"
] | 28 | 2021-11-10T15:39:38.000Z | 2022-03-26T15:39:32.000Z | source/cpp/source/Connection.cpp | steve-baker-cradle/juce-end-to-end | 2a8b8f3d458884b3bf8be094d3e0f326bfbdcd53 | [
"Apache-2.0"
] | 9 | 2021-11-10T15:55:24.000Z | 2022-03-01T00:06:37.000Z | source/cpp/source/Connection.cpp | steve-baker-cradle/juce-end-to-end | 2a8b8f3d458884b3bf8be094d3e0f326bfbdcd53 | [
"Apache-2.0"
] | 2 | 2021-11-10T15:55:32.000Z | 2021-11-10T15:59:24.000Z | #include "Connection.h"
#include <juce_events/juce_events.h>
#if JUCE_MAC
#include <sys/socket.h>
#endif
namespace
{
#pragma pack(push, 1)
struct Header
{
static constexpr uint32_t magicNumber = 0x30061990;
uint32_t magic = 0;
uint32_t size = 0;
};
#pragma pack(pop)
static_assert (sizeof (Header) =... | 21.06135 | 91 | 0.58462 | steve-baker-cradle |
44a8c19ddcc72148c5ea09705cc2cd5967a8fe92 | 9,511 | cpp | C++ | Builds/JuceLibraryCode/modules/juce_gui_basics/positioning/juce_RelativeRectangle.cpp | eriser/CSL | 6f4646369f0c90ea90e2c113374044818ab37ded | [
"BSD-4-Clause-UC"
] | 1 | 2019-10-16T08:54:44.000Z | 2019-10-16T08:54:44.000Z | JuceLibraryCode/modules/juce_gui_basics/positioning/juce_RelativeRectangle.cpp | connerlacy/quneo_demo_lab | 073a81d7fa7fa462e07c7b33de3e982a03a0055c | [
"Unlicense"
] | null | null | null | JuceLibraryCode/modules/juce_gui_basics/positioning/juce_RelativeRectangle.cpp | connerlacy/quneo_demo_lab | 073a81d7fa7fa462e07c7b33de3e982a03a0055c | [
"Unlicense"
] | null | null | null | /*
==============================================================================
This file is part of the JUCE library - "Jules' Utility Class Extensions"
Copyright 2004-11 by Raw Material Software Ltd.
------------------------------------------------------------------------------
JUCE can be r... | 36.163498 | 138 | 0.609505 | eriser |
44acfcf07bdc183cee6266e62f5f750c3988d2e4 | 9,945 | cpp | C++ | Kernel/Prekernel/init.cpp | densogiaichned/serenity | 99c0b895fed02949b528437d6b450d85befde7a5 | [
"BSD-2-Clause"
] | 2 | 2022-02-16T02:12:38.000Z | 2022-02-20T18:40:41.000Z | Kernel/Prekernel/init.cpp | densogiaichned/serenity | 99c0b895fed02949b528437d6b450d85befde7a5 | [
"BSD-2-Clause"
] | null | null | null | Kernel/Prekernel/init.cpp | densogiaichned/serenity | 99c0b895fed02949b528437d6b450d85befde7a5 | [
"BSD-2-Clause"
] | null | null | null | /*
* Copyright (c) 2018-2020, Andreas Kling <kling@serenityos.org>
* Copyright (c) 2021, Gunnar Beutner <gbeutner@serenityos.org>
* Copyright (c) 2021, Liav A. <liavalb@hotmail.co.il>
*
* SPDX-License-Identifier: BSD-2-Clause
*/
#include <AK/Types.h>
#include <Kernel/Multiboot.h>
#include <Kernel/PhysicalAddress... | 36.428571 | 180 | 0.712821 | densogiaichned |
44ae2ef0ed9f295400d48e27f25ddf0ab211bb9a | 650 | cpp | C++ | ACM-ICPC/4811.cpp | KimBoWoon/ACM-ICPC | 146c36999488af9234d73f7b4b0c10d78486604f | [
"MIT"
] | null | null | null | ACM-ICPC/4811.cpp | KimBoWoon/ACM-ICPC | 146c36999488af9234d73f7b4b0c10d78486604f | [
"MIT"
] | null | null | null | ACM-ICPC/4811.cpp | KimBoWoon/ACM-ICPC | 146c36999488af9234d73f7b4b0c10d78486604f | [
"MIT"
] | null | null | null | #include <cstdio>
using namespace std;
typedef long long LLONG;
int n;
LLONG dp[61][61];
LLONG split(int w, int h) {
// 메모이제이션
if (dp[w][h]) {
return dp[w][h];
}
// 온전한 알약이 없으면 무조건 쪼개진 것을 먹어야 하기 때문에 한 가지 경우 밖에 없다
if (w == 0) {
return 1;
}
// 하나의 알약을 쪼개... | 15.853659 | 55 | 0.401538 | KimBoWoon |
44af71895fa2eb43d483f72186a3baab7fb606ab | 769 | cc | C++ | src/MissionManager/ComplexMissionItem.cc | uavosky/uavosky-qgroundcontrol | 9a49a206e4fe2d3291c212ae8dadd4d5aa0e3197 | [
"Apache-2.0"
] | 12 | 2020-04-19T17:36:34.000Z | 2022-02-02T01:42:06.000Z | src/MissionManager/ComplexMissionItem.cc | uavosky/uavosky-qgroundcontrol | 9a49a206e4fe2d3291c212ae8dadd4d5aa0e3197 | [
"Apache-2.0"
] | 27 | 2020-04-20T16:33:54.000Z | 2022-03-10T13:57:23.000Z | src/MissionManager/ComplexMissionItem.cc | uavosky/uavosky-qgroundcontrol | 9a49a206e4fe2d3291c212ae8dadd4d5aa0e3197 | [
"Apache-2.0"
] | 39 | 2020-04-18T00:45:45.000Z | 2022-03-21T10:41:46.000Z | /****************************************************************************
*
* (c) 2009-2016 QGROUNDCONTROL PROJECT <http://www.qgroundcontrol.org>
*
* QGroundControl is licensed according to the terms in the file
* COPYING.md in the root of the source code directory.
*
*************************************... | 29.576923 | 88 | 0.605982 | uavosky |
44afc320d16169209e93d41d75f75c6e33ed2182 | 782 | cpp | C++ | explore/1514-lpc/eeprom/main.cpp | lispnik/embello | adae98d03f5ac843160e17e490ccc72de81d8be3 | [
"Unlicense"
] | 10 | 2019-10-27T10:31:28.000Z | 2022-03-04T13:55:03.000Z | explore/1514-lpc/eeprom/main.cpp | davidcollins001/embello | 08297eb920e7e8c35df08aa64e91bb01a5c99409 | [
"Unlicense"
] | null | null | null | explore/1514-lpc/eeprom/main.cpp | davidcollins001/embello | 08297eb920e7e8c35df08aa64e91bb01a5c99409 | [
"Unlicense"
] | 7 | 2019-10-27T15:21:01.000Z | 2022-03-04T20:04:44.000Z | // Try out eeprom emulation using upper flash memory.
// see http://jeelabs.org/2015/04/01/emulating-eeprom/
#include "embello.h"
#include <string.h>
#include "flash.h"
#include "romvars.h"
RomVars<Flash64,0x0F80> rom;
int main () {
serial.init(115200);
printf("\n[eeprom]\n");
tick.init(1000);
rom.init();
... | 19.073171 | 78 | 0.59335 | lispnik |
44b011334587bb4f9bcca81163dabdf7a6303a27 | 39,659 | cpp | C++ | src/base/propagator/PropagationStateManager.cpp | saichikine/GMAT | 80bde040e12946a61dae90d9fc3538f16df34190 | [
"Apache-2.0"
] | null | null | null | src/base/propagator/PropagationStateManager.cpp | saichikine/GMAT | 80bde040e12946a61dae90d9fc3538f16df34190 | [
"Apache-2.0"
] | null | null | null | src/base/propagator/PropagationStateManager.cpp | saichikine/GMAT | 80bde040e12946a61dae90d9fc3538f16df34190 | [
"Apache-2.0"
] | 1 | 2021-12-05T05:40:15.000Z | 2021-12-05T05:40:15.000Z | //$Id$
//------------------------------------------------------------------------------
// PropagationStateManager
//------------------------------------------------------------------------------
// GMAT: General Mission Analysis Tool.
//
// Copyright (c) 2002 - 2018 United States Government a... | 35.728829 | 101 | 0.527119 | saichikine |
44b3a4c9a71b5fd346f9c831e744f5c97b44d0f9 | 16,880 | cpp | C++ | Eudora71/DirectoryServices/DirectoryServicesUI/src/DSListCtrlImpl.cpp | dusong7/eudora-win | 850a6619e6b0d5abc770bca8eb5f3b9001b7ccd2 | [
"BSD-3-Clause-Clear"
] | 10 | 2018-05-23T10:43:48.000Z | 2021-12-02T17:59:48.000Z | Windows/Eudora71/DirectoryServices/DirectoryServicesUI/src/DSListCtrlImpl.cpp | officialrafsan/EUDORA | bf43221f5663ec2338aaf90710a89d1490b92ed2 | [
"MIT"
] | 1 | 2019-03-19T03:56:36.000Z | 2021-05-26T18:36:03.000Z | Windows/Eudora71/DirectoryServices/DirectoryServicesUI/src/DSListCtrlImpl.cpp | officialrafsan/EUDORA | bf43221f5663ec2338aaf90710a89d1490b92ed2 | [
"MIT"
] | 11 | 2018-05-23T10:43:53.000Z | 2021-12-27T15:42:58.000Z | //////////////////////////////////////////////////////////////////////////////
// DSListCtrlImpl.cpp
//
//
// Created: 09/13/97 smohanty
//
//////////////////////////////////////////////////////////////////////////////
#include "stdafx.h"
#define __DS_LIST_CTRL_INTERFACE_IMPLEMENTATION_
#include "DSListCtrlImpl.h"
... | 22.18134 | 79 | 0.620557 | dusong7 |
44b4cf21105a0973debcbae5eb91cee293babbf4 | 836 | cpp | C++ | src/jk/cog/vm/unit-test/heap_test.cpp | jdmclark/gorc | a03d6a38ab7684860c418dd3d2e77cbe6a6d9fc8 | [
"Apache-2.0"
] | 97 | 2015-02-24T05:09:24.000Z | 2022-01-23T12:08:22.000Z | src/jk/cog/vm/unit-test/heap_test.cpp | annnoo/gorc | 1889b4de6380c30af6c58a8af60ecd9c816db91d | [
"Apache-2.0"
] | 8 | 2015-03-27T23:03:23.000Z | 2020-12-21T02:34:33.000Z | src/jk/cog/vm/unit-test/heap_test.cpp | annnoo/gorc | 1889b4de6380c30af6c58a8af60ecd9c816db91d | [
"Apache-2.0"
] | 10 | 2016-03-24T14:32:50.000Z | 2021-11-13T02:38:53.000Z | #include "jk/cog/vm/heap.hpp"
#include "test/test.hpp"
using namespace gorc;
using namespace gorc::cog;
begin_suite(heap_test);
test_case(default_heap)
{
heap h;
assert_eq(h.size(), size_t(0));
}
test_case(initialized_heap)
{
heap h(512);
assert_eq(h.size(), size_t(512));
}
test_case(access_grows)
... | 15.2 | 63 | 0.606459 | jdmclark |
44b4e5cd65748fb0963011a3c0c2d3364d7088e8 | 4,330 | cc | C++ | snapshot/fuchsia/exception_snapshot_fuchsia.cc | rovarma/crashpad | 42b57efa554a47745cb84860ead46bc9f32b77a9 | [
"Apache-2.0"
] | 2,151 | 2020-04-18T07:31:17.000Z | 2022-03-31T08:39:18.000Z | snapshot/fuchsia/exception_snapshot_fuchsia.cc | rovarma/crashpad | 42b57efa554a47745cb84860ead46bc9f32b77a9 | [
"Apache-2.0"
] | 395 | 2020-04-18T08:22:18.000Z | 2021-12-08T13:04:49.000Z | snapshot/fuchsia/exception_snapshot_fuchsia.cc | rovarma/crashpad | 42b57efa554a47745cb84860ead46bc9f32b77a9 | [
"Apache-2.0"
] | 338 | 2020-04-18T08:03:10.000Z | 2022-03-29T12:33:22.000Z | // Copyright 2018 The Crashpad Authors. 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 ... | 33.307692 | 78 | 0.775289 | rovarma |
44b52f84f594dde5edadef2bcc5790279abe2f30 | 513 | cpp | C++ | Game/Source/PerformanceTimer.cpp | Memory-Leakers/Platformer2D_Grup99 | fe2e24d3f1affb11502add56e2de090cf5a8bf1a | [
"MIT"
] | 4 | 2021-10-20T12:15:53.000Z | 2022-01-30T16:15:35.000Z | Game/Source/PerformanceTimer.cpp | Memory-Leakers/Platformer2D_Grup99 | fe2e24d3f1affb11502add56e2de090cf5a8bf1a | [
"MIT"
] | null | null | null | Game/Source/PerformanceTimer.cpp | Memory-Leakers/Platformer2D_Grup99 | fe2e24d3f1affb11502add56e2de090cf5a8bf1a | [
"MIT"
] | null | null | null | #include "PerformanceTimer.h"
#include "SDL\include\SDL_timer.h"
uint64 PerformanceTimer::frequency = 0;
PerformanceTimer::PerformanceTimer()
{
Start();
frequency = SDL_GetPerformanceFrequency();
}
void PerformanceTimer::Start()
{
startTimer = SDL_GetPerformanceCounter();
}
double PerformanceTimer::ReadMs() con... | 19.730769 | 88 | 0.766082 | Memory-Leakers |
44b79e9bc120cde24bd06b4f3476f1434e7fc033 | 2,729 | cpp | C++ | DolorEditor/EntityManager.cpp | Helgust/GameEnginePractice-2021 | 34fd0576fb3b0fb9c7ffcf121424a27f48d233e1 | [
"MIT"
] | null | null | null | DolorEditor/EntityManager.cpp | Helgust/GameEnginePractice-2021 | 34fd0576fb3b0fb9c7ffcf121424a27f48d233e1 | [
"MIT"
] | null | null | null | DolorEditor/EntityManager.cpp | Helgust/GameEnginePractice-2021 | 34fd0576fb3b0fb9c7ffcf121424a27f48d233e1 | [
"MIT"
] | null | null | null | #include "EntityManager.h"
EntityManager::EntityManager(RenderEngine* pRenderEngine, ScriptSystem* pScriptSystem) :
m_pRenderEngine(pRenderEngine),
m_pScriptSystem(pScriptSystem)
{
m_sLevelName = "";
}
EntityManager::~EntityManager()
{
m_entityQueue.clear();
}
//void EntityManager::CreateEntity(std::string strSc... | 26.240385 | 93 | 0.745694 | Helgust |
44b87e0a3aff8163027f6f7dd865347a4b10b939 | 151 | cpp | C++ | sorting_algorithms/merge_sort.cpp | M1NH42/learn-dsa | 70b5011a83dd5c29d39b754ed856cb9e023511f3 | [
"MIT"
] | null | null | null | sorting_algorithms/merge_sort.cpp | M1NH42/learn-dsa | 70b5011a83dd5c29d39b754ed856cb9e023511f3 | [
"MIT"
] | null | null | null | sorting_algorithms/merge_sort.cpp | M1NH42/learn-dsa | 70b5011a83dd5c29d39b754ed856cb9e023511f3 | [
"MIT"
] | null | null | null | /* In this program we will implement the most important divide and conquer sorting technique */
// TODO: Write the code for the sorting technique below | 75.5 | 95 | 0.788079 | M1NH42 |
44c17c79adc2eb594df78b01041660a3b3346d40 | 651 | cpp | C++ | Core/ShaderProgram.cpp | NinjaDanz3r/NinjaOctopushBurgersOfDoom | 3b89f02d13504e4790fd655889b0cba261d4dbc6 | [
"MIT"
] | 1 | 2016-05-23T18:31:29.000Z | 2016-05-23T18:31:29.000Z | Core/ShaderProgram.cpp | NinjaDanz3r/NinjaOctopushBurgersOfDoom | 3b89f02d13504e4790fd655889b0cba261d4dbc6 | [
"MIT"
] | 25 | 2015-01-03T01:17:45.000Z | 2015-03-23T09:37:52.000Z | Core/ShaderProgram.cpp | NinjaDanz3r/NinjaOctopushBurgersOfDoom | 3b89f02d13504e4790fd655889b0cba261d4dbc6 | [
"MIT"
] | null | null | null | #include "ShaderProgram.h"
#include "Shader.h"
ShaderProgram::ShaderProgram(std::initializer_list<const Shader*> shaders) {
shaderProgram = glCreateProgram();
for (auto shader : shaders)
glAttachShader(shaderProgram, shader->shaderID());
glLinkProgram(shaderProgram);
}
ShaderProgram::~ShaderProgram() {
glDele... | 24.111111 | 76 | 0.780338 | NinjaDanz3r |
44c3d3c4a50864e7c5778d33c7044d6cb5328025 | 2,803 | cpp | C++ | cpp-projects/exvr-designer/flow/remove_flow_element.cpp | BlankeLab/ExVR | 3a50769c1d11a175b906ddb9c7415f69502cdafd | [
"MIT"
] | null | null | null | cpp-projects/exvr-designer/flow/remove_flow_element.cpp | BlankeLab/ExVR | 3a50769c1d11a175b906ddb9c7415f69502cdafd | [
"MIT"
] | null | null | null | cpp-projects/exvr-designer/flow/remove_flow_element.cpp | BlankeLab/ExVR | 3a50769c1d11a175b906ddb9c7415f69502cdafd | [
"MIT"
] | null | null | null |
/***********************************************************************************
** exvr-designer **
** MIT License **
** Copyright (c) [2018] [Florian Lance][EPFL-LNCO] ... | 52.886792 | 116 | 0.543703 | BlankeLab |
44c41413c7ea613c911882bf7d4618d3f1a85656 | 61,403 | cpp | C++ | src/conformance/framework/graphics_plugin_opengl.cpp | JoeLudwig/OpenXR-CTS | 144c94e8982fe76986019abc9bf2b016740536df | [
"Apache-2.0",
"BSD-3-Clause",
"Unlicense",
"MIT"
] | 1 | 2020-12-11T03:28:32.000Z | 2020-12-11T03:28:32.000Z | src/conformance/framework/graphics_plugin_opengl.cpp | JoeLudwig/OpenXR-CTS | 144c94e8982fe76986019abc9bf2b016740536df | [
"Apache-2.0",
"BSD-3-Clause",
"Unlicense",
"MIT"
] | null | null | null | src/conformance/framework/graphics_plugin_opengl.cpp | JoeLudwig/OpenXR-CTS | 144c94e8982fe76986019abc9bf2b016740536df | [
"Apache-2.0",
"BSD-3-Clause",
"Unlicense",
"MIT"
] | null | null | null | // Copyright (c) 2019-2021, The Khronos Group Inc.
//
// SPDX-License-Identifier: Apache-2.0
//
// 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/LICEN... | 48.887739 | 237 | 0.660131 | JoeLudwig |
44c456e8c9618a58a75b6529cbf9582844d7ea91 | 5,587 | hpp | C++ | include/VROSC/AudioReactive/TranslateOnBeat.hpp | v0idp/virtuoso-codegen | 6f560f04822c67f092d438a3f484249072c1d21d | [
"Unlicense"
] | null | null | null | include/VROSC/AudioReactive/TranslateOnBeat.hpp | v0idp/virtuoso-codegen | 6f560f04822c67f092d438a3f484249072c1d21d | [
"Unlicense"
] | null | null | null | include/VROSC/AudioReactive/TranslateOnBeat.hpp | v0idp/virtuoso-codegen | 6f560f04822c67f092d438a3f484249072c1d21d | [
"Unlicense"
] | 1 | 2022-03-30T21:07:35.000Z | 2022-03-30T21:07:35.000Z | // Autogenerated from CppHeaderCreator
// Created by Sc2ad
// =========================================================================
#pragma once
// Begin includes
#include "beatsaber-hook/shared/utils/typedefs.h"
#include "beatsaber-hook/shared/utils/byref.hpp"
// Including type: VROSC.AudioReactive.AudioReactiveBe... | 52.214953 | 222 | 0.751924 | v0idp |
44c65251bfecc98c2a3d3d56b7bd908186c7cf48 | 1,458 | cpp | C++ | FileTransfer/FileTransfer.cpp | Michal-Bugno/ThunderNanoServices | 9b328519a363c602823f9d1f101d47f0a2482a23 | [
"BSD-2-Clause"
] | 7 | 2020-03-24T15:26:23.000Z | 2021-12-21T21:42:38.000Z | FileTransfer/FileTransfer.cpp | Michal-Bugno/ThunderNanoServices | 9b328519a363c602823f9d1f101d47f0a2482a23 | [
"BSD-2-Clause"
] | 224 | 2020-03-05T17:40:39.000Z | 2022-03-23T13:18:56.000Z | FileTransfer/FileTransfer.cpp | Michal-Bugno/ThunderNanoServices | 9b328519a363c602823f9d1f101d47f0a2482a23 | [
"BSD-2-Clause"
] | 52 | 2020-03-05T17:24:05.000Z | 2022-03-31T02:13:40.000Z | /*
* If not stated otherwise in this file or this component's LICENSE file the
* following copyright and licenses apply:
*
* Copyright 2020 Metrological
*
* 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 ... | 29.755102 | 103 | 0.709877 | Michal-Bugno |
44c6a1decbc7cb342252eb9bc9844e77a8605ba8 | 2,345 | hpp | C++ | StrumpackConfig.hpp | sarahorsak/STRUMPACK | 1c23ba83a07082b3bce5cf7092e990c71af0ee67 | [
"BSD-3-Clause-LBNL"
] | null | null | null | StrumpackConfig.hpp | sarahorsak/STRUMPACK | 1c23ba83a07082b3bce5cf7092e990c71af0ee67 | [
"BSD-3-Clause-LBNL"
] | null | null | null | StrumpackConfig.hpp | sarahorsak/STRUMPACK | 1c23ba83a07082b3bce5cf7092e990c71af0ee67 | [
"BSD-3-Clause-LBNL"
] | null | null | null | /*
* STRUMPACK -- STRUctured Matrices PACKage, Copyright (c) 2014, The
* Regents of the University of California, through Lawrence Berkeley
* National Laboratory (subject to receipt of any required approvals
* from the U.S. Dept. of Energy). All rights reserved.
*
* If you have questions about your rights to use... | 37.222222 | 70 | 0.763753 | sarahorsak |
44c8b602441aad741405c732bfb192e1e7db01e9 | 560 | cpp | C++ | hal/ESP32/gpio/gpio.cpp | yhsb2k/omef | 7425b62dd4b5d0af4e320816293f69d16d39f57a | [
"MIT"
] | null | null | null | hal/ESP32/gpio/gpio.cpp | yhsb2k/omef | 7425b62dd4b5d0af4e320816293f69d16d39f57a | [
"MIT"
] | null | null | null | hal/ESP32/gpio/gpio.cpp | yhsb2k/omef | 7425b62dd4b5d0af4e320816293f69d16d39f57a | [
"MIT"
] | null | null | null | #include <stdint.h>
#include <stddef.h>
#include <assert.h>
#include "gpio.hpp"
using namespace hal;
gpio::gpio(uint8_t port, uint8_t pin, enum mode mode, bool state):
_port(port),
_pin(pin),
_mode(mode)
{
assert(_port < ports);
assert(_pin < pins);
set_mode(_mode, state);
}
gpio::~gpio()
{
}
void gpio::set... | 13.658537 | 66 | 0.648214 | yhsb2k |
44ca29a6d61b1fd0616676ae7cb2956c47bf6371 | 33,749 | cpp | C++ | groups/bsl/bslalg/bslalg_autoarraydestructor.t.cpp | adambde/bde | a2efe118da642be42b25e81ca986a0fe56078305 | [
"Apache-2.0"
] | 26 | 2015-05-07T04:22:06.000Z | 2022-01-26T09:10:12.000Z | groups/bsl/bslalg/bslalg_autoarraydestructor.t.cpp | adambde/bde | a2efe118da642be42b25e81ca986a0fe56078305 | [
"Apache-2.0"
] | 3 | 2015-05-07T21:06:36.000Z | 2015-08-28T20:02:18.000Z | groups/bsl/bslalg/bslalg_autoarraydestructor.t.cpp | adambde/bde | a2efe118da642be42b25e81ca986a0fe56078305 | [
"Apache-2.0"
] | 12 | 2015-05-06T08:41:07.000Z | 2021-11-09T12:52:19.000Z | // bslalg_autoarraydestructor.t.cpp -*-C++-*-
#include <bslalg_autoarraydestructor.h>
#include <bslalg_scalarprimitives.h> // for testing only
#include <bslma_allocator.h> // for testing only
#include <bslma_deallocatorproctor.h> // for tes... | 33.918593 | 79 | 0.512578 | adambde |
44caa5ea42960c0d671aff7481ca5293017f75d9 | 1,442 | cpp | C++ | 3.Stacks and Queues/Merge_overlapping_Intervals.cpp | suraj0803/DSA | 6ea21e452d7662e2351ee2a7b0415722e1bbf094 | [
"MIT"
] | null | null | null | 3.Stacks and Queues/Merge_overlapping_Intervals.cpp | suraj0803/DSA | 6ea21e452d7662e2351ee2a7b0415722e1bbf094 | [
"MIT"
] | null | null | null | 3.Stacks and Queues/Merge_overlapping_Intervals.cpp | suraj0803/DSA | 6ea21e452d7662e2351ee2a7b0415722e1bbf094 | [
"MIT"
] | null | null | null | #include<iostream>
#include<stack>
#include<algorithm>
using namespace std;
struct Interval{
int start,end;
};
bool compareInterval(Interval i1, Interval i2){
return (i1.start < i2.start);
}
void mergeIntervals(Interval arr[] , int n)
{
// Test if the given set has one interval
if(n... | 25.298246 | 94 | 0.533981 | suraj0803 |
44d03a7408f1433216b1318126966587056bb2be | 460 | cpp | C++ | intermediate/Pet.cpp | loiola0/course-cpp | 43ddf46da635980b5acb723496bba2c3f951293f | [
"MIT"
] | null | null | null | intermediate/Pet.cpp | loiola0/course-cpp | 43ddf46da635980b5acb723496bba2c3f951293f | [
"MIT"
] | null | null | null | intermediate/Pet.cpp | loiola0/course-cpp | 43ddf46da635980b5acb723496bba2c3f951293f | [
"MIT"
] | null | null | null | #include <iostream>
#include "Pet.h"
using namespace std;
Pet::Pet(){
}
Pet::~Pet(){
}
void Pet::setValue(double value){
this->value = value;
}
void Pet::setBathFrequency(int bathFreq){
this->bathFrequency = bathFreq;
}
void Pet::getValue(){
cout<<"This Pet costs "<<"R$ "<<this->value<<end... | 13.529412 | 101 | 0.623913 | loiola0 |
44d8a03cdf9771642c87ea8f248310f7a897d86e | 1,715 | cpp | C++ | Engine/Engine/System/Debug.cpp | PawsEngine/Engine | 8a44cdd24b17227fdc3a3b52f1687d15f9ffe6be | [
"MIT"
] | 7 | 2021-05-01T12:52:29.000Z | 2022-02-06T10:50:45.000Z | Engine/Engine/System/Debug.cpp | PawsEngine/Engine | 8a44cdd24b17227fdc3a3b52f1687d15f9ffe6be | [
"MIT"
] | null | null | null | Engine/Engine/System/Debug.cpp | PawsEngine/Engine | 8a44cdd24b17227fdc3a3b52f1687d15f9ffe6be | [
"MIT"
] | 1 | 2021-05-16T15:52:16.000Z | 2021-05-16T15:52:16.000Z | #include "Engine/System/Debug.h"
#include <cstdio>
namespace Engine {
void DebugPrintInfo(const u8char* message) {
std::printf("%s\n", reinterpret_cast<const char*>(message));
}
void DebugPrintWarn(const char* func, const char* file, int line, const u8char* message) {
std::printf("\033[93m[WARNING] %s:\033[39m ... | 74.565217 | 228 | 0.672303 | PawsEngine |
44dabd16fb4f17f0afb47c5bd36daea427bba016 | 24,832 | cpp | C++ | test/test_log_manager.cpp | XingjZhang/braft | 4515147ea61822e181fe5f781063651d03de9170 | [
"Apache-2.0"
] | null | null | null | test/test_log_manager.cpp | XingjZhang/braft | 4515147ea61822e181fe5f781063651d03de9170 | [
"Apache-2.0"
] | null | null | null | test/test_log_manager.cpp | XingjZhang/braft | 4515147ea61822e181fe5f781063651d03de9170 | [
"Apache-2.0"
] | null | null | null | // Copyright (c) 2015 Baidu.com, Inc. All Rights Reserved
// Author: Zhangyi Chen (chenzhangyi01@baidu.com)
// Date: 2015/11/24 16:30:49
#include <gtest/gtest.h>
#include <butil/memory/scoped_ptr.h>
#include <butil/string_printf.h>
#include <butil/macros.h>
#include <bthread/countdown_event.h>
#include "braft/log_m... | 36.304094 | 99 | 0.596207 | XingjZhang |
44dfbdaa5b90596cd9d29c0b8e73bc1338e6e159 | 1,834 | cpp | C++ | communicating_socket.cpp | tvaleev/simple-udp-server-client | 52685c7e808e89ed52e7017dfc6226ce3500a097 | [
"BSD-2-Clause"
] | null | null | null | communicating_socket.cpp | tvaleev/simple-udp-server-client | 52685c7e808e89ed52e7017dfc6226ce3500a097 | [
"BSD-2-Clause"
] | null | null | null | communicating_socket.cpp | tvaleev/simple-udp-server-client | 52685c7e808e89ed52e7017dfc6226ce3500a097 | [
"BSD-2-Clause"
] | null | null | null | #include <sys/socket.h>
#include <netinet/in.h>
#include <arpa/inet.h>
#include "communicating_socket.h"
#include "socket_utils.h"
typedef void raw_type;
CommunicatingSocket::CommunicatingSocket(int type, int protocol)
: Socket(type, protocol) {
}
CommunicatingSocket::CommunicatingSocket(int newConnSD) : Socket... | 29.580645 | 92 | 0.706107 | tvaleev |
44e1f222268f4c1b12c62d74546ba35da97f3aa8 | 2,079 | cc | C++ | modules/prediction/common/junction_analyzer_test.cc | ghdawn/apollo | 002eba4a1635d6af7f1ebd2118464bca6f86b106 | [
"Apache-2.0"
] | 2 | 2019-01-15T08:34:59.000Z | 2019-01-15T08:35:00.000Z | modules/prediction/common/junction_analyzer_test.cc | thomasgui76/apollo | 808f1d20a08efea23b718b4e423d6619c9d4b412 | [
"Apache-2.0"
] | null | null | null | modules/prediction/common/junction_analyzer_test.cc | thomasgui76/apollo | 808f1d20a08efea23b718b4e423d6619c9d4b412 | [
"Apache-2.0"
] | null | null | null | /******************************************************************************
* Copyright 2018 The Apollo Authors. 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
... | 36.473684 | 79 | 0.700818 | ghdawn |
44e58eb4b426b3c9c9c34b4da22c5f0ce60e24c5 | 414 | hpp | C++ | src/stan/lang/ast/fun/fun_name_exists.hpp | drezap/stan | 9b319ed125e2a7d14d0c9c246d2f462dad668537 | [
"BSD-3-Clause"
] | 1 | 2019-07-05T01:40:40.000Z | 2019-07-05T01:40:40.000Z | src/stan/lang/ast/fun/fun_name_exists.hpp | drezap/stan | 9b319ed125e2a7d14d0c9c246d2f462dad668537 | [
"BSD-3-Clause"
] | null | null | null | src/stan/lang/ast/fun/fun_name_exists.hpp | drezap/stan | 9b319ed125e2a7d14d0c9c246d2f462dad668537 | [
"BSD-3-Clause"
] | 1 | 2020-07-14T11:36:09.000Z | 2020-07-14T11:36:09.000Z | #ifndef STAN_LANG_AST_FUN_FUN_NAME_EXISTS_HPP
#define STAN_LANG_AST_FUN_FUN_NAME_EXISTS_HPP
#include <string>
namespace stan {
namespace lang {
/**
* Return true if the function name has been declared as a
* built-in or by the user.
*
* @param name name of function
* @return true if ... | 19.714286 | 62 | 0.681159 | drezap |
44e67034d3523b25984223ad8cdf52146528a34d | 1,290 | cpp | C++ | Fw/Port/OutputPortBase.cpp | AlperenCetin0/fprime | 7e20febd34019c730da1358567e7a512592de4d8 | [
"Apache-2.0"
] | 9,182 | 2017-07-06T15:51:35.000Z | 2022-03-30T11:20:33.000Z | Fw/Port/OutputPortBase.cpp | AlperenCetin0/fprime | 7e20febd34019c730da1358567e7a512592de4d8 | [
"Apache-2.0"
] | 719 | 2017-07-14T17:56:01.000Z | 2022-03-31T02:41:35.000Z | Fw/Port/OutputPortBase.cpp | AlperenCetin0/fprime | 7e20febd34019c730da1358567e7a512592de4d8 | [
"Apache-2.0"
] | 1,216 | 2017-07-12T15:41:08.000Z | 2022-03-31T21:44:37.000Z | #include <FpConfig.hpp>
#include <Fw/Port/OutputPortBase.hpp>
#include <Fw/Types/BasicTypes.hpp>
#include <Os/Log.hpp>
#include <cstdio>
#include <Fw/Types/Assert.hpp>
namespace Fw {
OutputPortBase::OutputPortBase() : PortBase()
#if FW_PORT_SERIALIZATION == 1
,m_serPort(nullptr)
#endif
{
}
... | 22.631579 | 112 | 0.624031 | AlperenCetin0 |
44e7bc0d2fc90dab6eef82e6871b38b1ca0c562f | 974 | hpp | C++ | clammbon/include/test_tool.hpp | tnct-spc/procon2014 | c2df3257675db2adb9caa882b9026145801c6e4d | [
"MIT"
] | 1 | 2016-11-02T08:42:05.000Z | 2016-11-02T08:42:05.000Z | clammbon/include/test_tool.hpp | tnct-spc/procon2014 | c2df3257675db2adb9caa882b9026145801c6e4d | [
"MIT"
] | null | null | null | clammbon/include/test_tool.hpp | tnct-spc/procon2014 | c2df3257675db2adb9caa882b9026145801c6e4d | [
"MIT"
] | null | null | null | #ifndef CLAMMBON_TEST_TOOL_HPP
#define CLAMMBON_TEST_TOOL_HPP
#include <vector>
#include <iostream>
#include <boost/noncopyable.hpp>
#include "data_type.hpp"
namespace test_tool
{
class emulator : boost::noncopyable
{
public:
typedef std::vector<std::vector<point_type>> locate_type;
stru... | 23.756098 | 90 | 0.664271 | tnct-spc |
44e8aa8a193f9093e0f5d90943c3bb41b4007f19 | 9,047 | cpp | C++ | source/MaterialXTest/MaterialXCore/Look.cpp | muenstc/MaterialX | b8365086a738fddae683065d78f65410aacd0dc4 | [
"BSD-3-Clause"
] | null | null | null | source/MaterialXTest/MaterialXCore/Look.cpp | muenstc/MaterialX | b8365086a738fddae683065d78f65410aacd0dc4 | [
"BSD-3-Clause"
] | null | null | null | source/MaterialXTest/MaterialXCore/Look.cpp | muenstc/MaterialX | b8365086a738fddae683065d78f65410aacd0dc4 | [
"BSD-3-Clause"
] | null | null | null | //
// TM & (c) 2017 Lucasfilm Entertainment Company Ltd. and Lucasfilm Ltd.
// All rights reserved. See LICENSE.txt for license.
//
#include <MaterialXTest/Catch/catch.hpp>
#include <MaterialXCore/Document.h>
#include <MaterialXFormat/XmlIo.h>
namespace mx = MaterialX;
TEST_CASE("Look", "[look]")
{
mx::Documen... | 42.275701 | 126 | 0.687631 | muenstc |
44e91b6f7a2492eba19372cf36601d39c7fe88cc | 119 | cpp | C++ | private/sources/kqueue/kqueue_async_service.cpp | rnichollx/rpnx-core | 9c7e3e54a729eafad4dba2bdc730ec2b88b8927c | [
"MIT"
] | 4 | 2020-11-23T23:27:32.000Z | 2022-03-06T03:46:51.000Z | private/sources/kqueue/kqueue_async_service.cpp | rpnx-net/rpnx-core | d579c3a159b624ee9115cb0633879ce716401ca1 | [
"MIT"
] | 20 | 2021-04-12T23:47:37.000Z | 2021-06-08T02:06:18.000Z | private/sources/kqueue/kqueue_async_service.cpp | rpnx-net/rpnx-core | d579c3a159b624ee9115cb0633879ce716401ca1 | [
"MIT"
] | null | null | null | // This file is an async_service implementation for Operating Systems that use KQueue (Mac OSX and BSD in particular)
| 39.666667 | 117 | 0.798319 | rnichollx |
44e9b5b20bcdf28824affe2e759e29ce9c137a81 | 7,905 | cpp | C++ | native/python/pyjp_value.cpp | mattooca/jpype | e1741e28818e1d4956834aa37b21a2bf3142b7a1 | [
"Apache-2.0"
] | null | null | null | native/python/pyjp_value.cpp | mattooca/jpype | e1741e28818e1d4956834aa37b21a2bf3142b7a1 | [
"Apache-2.0"
] | null | null | null | native/python/pyjp_value.cpp | mattooca/jpype | e1741e28818e1d4956834aa37b21a2bf3142b7a1 | [
"Apache-2.0"
] | null | null | null | /*****************************************************************************
Copyright 2004-2008 Steve Ménard
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... | 28.956044 | 114 | 0.647312 | mattooca |
44eb91efce60308b63c90825b1b66296f3bdb22c | 5,353 | cpp | C++ | src/RaceNet/TrainingGround.cpp | janisozaur/OpenNFS | d2bce25a3ab8ddab67e8b75e920cd60b832b279a | [
"MIT"
] | null | null | null | src/RaceNet/TrainingGround.cpp | janisozaur/OpenNFS | d2bce25a3ab8ddab67e8b75e920cd60b832b279a | [
"MIT"
] | null | null | null | src/RaceNet/TrainingGround.cpp | janisozaur/OpenNFS | d2bce25a3ab8ddab67e8b75e920cd60b832b279a | [
"MIT"
] | null | null | null | //
// Created by Amrik on 28/10/2018.
//
#include "TrainingGround.h"
TrainingGround::TrainingGround(uint16_t populationSize, uint16_t nGenerations, uint32_t nTicks, shared_ptr<ONFSTrack> training_track, shared_ptr<Car> training_car, std::shared_ptr<Logger> logger, GLFWwindow *gl_window) : window(gl_window), raceNetRe... | 42.824 | 275 | 0.662806 | janisozaur |
44ed848890ba80e2eb50899e6f2fbeb961d78074 | 19,039 | cpp | C++ | framework/test/driver/ServiceFactoryTest.cpp | dingxiangfei2009/CppMicroServices | 5be6d095be8531992f794cdbf21a154695f0833c | [
"Apache-2.0"
] | 1 | 2021-06-10T00:04:32.000Z | 2021-06-10T00:04:32.000Z | framework/test/driver/ServiceFactoryTest.cpp | dingxiangfei2009/CppMicroServices | 5be6d095be8531992f794cdbf21a154695f0833c | [
"Apache-2.0"
] | null | null | null | framework/test/driver/ServiceFactoryTest.cpp | dingxiangfei2009/CppMicroServices | 5be6d095be8531992f794cdbf21a154695f0833c | [
"Apache-2.0"
] | null | null | null | /*=============================================================================
Library: CppMicroServices
Copyright (c) The CppMicroServices developers. See the COPYRIGHT
file at the top-level directory of this distribution and at
https://github.com/CppMicroServices/CppMicroServices/COPYRIGHT .
Licensed un... | 38.307847 | 100 | 0.694942 | dingxiangfei2009 |
44ed95113a2a2fe4ef44ed6f80bd2af5579853ea | 18,519 | cc | C++ | dcmdata/libsrc/dchashdi.cc | chrisvana/dcmtk_copy | f929ab8590aca5b7a319c95af4fe2ee31be52f46 | [
"Apache-2.0"
] | 24 | 2015-07-22T05:07:51.000Z | 2019-02-28T04:52:33.000Z | dcmdata/libsrc/dchashdi.cc | chrisvana/dcmtk_copy | f929ab8590aca5b7a319c95af4fe2ee31be52f46 | [
"Apache-2.0"
] | 13 | 2015-07-23T05:43:02.000Z | 2021-07-17T17:14:45.000Z | dcmdata/libsrc/dchashdi.cc | chrisvana/dcmtk_copy | f929ab8590aca5b7a319c95af4fe2ee31be52f46 | [
"Apache-2.0"
] | 13 | 2015-07-23T01:07:30.000Z | 2021-01-05T09:49:30.000Z | /*
*
* Copyright (C) 1997-2010, OFFIS e.V.
* All rights reserved. See COPYRIGHT file for details.
*
* This software and supporting documentation were developed by
*
* OFFIS e.V.
* R&D Division Health
* Escherweg 2
* D-26121 Oldenburg, Germany
*
*
* Module: dcmdata
*
* Author: Andrew H... | 29.583067 | 109 | 0.575139 | chrisvana |
6022b97744f74a453993094ed6f83d4cfbd5e583 | 776 | hpp | C++ | core/api/service/state/state_jrpc_processor.hpp | FlorianFranzen/kagome | 27ee11c78767e72f0ecd2c515c77bebc2ff5758d | [
"Apache-2.0"
] | 110 | 2019-04-03T13:39:39.000Z | 2022-03-09T11:54:42.000Z | core/api/service/state/state_jrpc_processor.hpp | FlorianFranzen/kagome | 27ee11c78767e72f0ecd2c515c77bebc2ff5758d | [
"Apache-2.0"
] | 890 | 2019-03-22T21:33:30.000Z | 2022-03-31T14:31:22.000Z | core/api/service/state/state_jrpc_processor.hpp | FlorianFranzen/kagome | 27ee11c78767e72f0ecd2c515c77bebc2ff5758d | [
"Apache-2.0"
] | 27 | 2019-06-25T06:21:47.000Z | 2021-11-01T14:12:10.000Z | /**
* Copyright Soramitsu Co., Ltd. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0
*/
#ifndef KAGOME_STATE_JRPC_PROCESSOR_HPP
#define KAGOME_STATE_JRPC_PROCESSOR_HPP
#include "api/jrpc/jrpc_processor.hpp"
#include "api/jrpc/jrpc_server_impl.hpp"
#include "api/service/state/state_api.hpp"
namespace ka... | 25.032258 | 58 | 0.728093 | FlorianFranzen |
60236342244b4f08dd3343abd7b34bae22b312d1 | 10,314 | hpp | C++ | src/layer.hpp | ktts16/mini-caffe | 58a5007d7921c69c9c3105b20b92b2136af26a4e | [
"BSD-3-Clause"
] | 413 | 2015-07-09T09:33:07.000Z | 2022-03-10T02:26:27.000Z | src/layer.hpp | ktts16/mini-caffe | 58a5007d7921c69c9c3105b20b92b2136af26a4e | [
"BSD-3-Clause"
] | 65 | 2015-07-10T01:38:10.000Z | 2020-08-06T07:27:42.000Z | src/layer.hpp | ktts16/mini-caffe | 58a5007d7921c69c9c3105b20b92b2136af26a4e | [
"BSD-3-Clause"
] | 196 | 2015-08-18T07:59:33.000Z | 2021-07-27T02:44:21.000Z | #ifndef CAFFE_LAYER_H_
#define CAFFE_LAYER_H_
#include <algorithm>
#include <string>
#include <vector>
#include "caffe/blob.hpp"
#include "./common.hpp"
#include "./layer_factory.hpp"
#include "./proto/caffe.pb.h"
namespace caffe {
/**
* @brief An interface for the units of computation which can be composed into a... | 35.081633 | 80 | 0.648051 | ktts16 |
6024aefffe637beddb37039687919122f3c2fcc1 | 6,999 | cpp | C++ | Siv3D/src/Siv3D/ImageFormat/PNG/PNGEncoder.cpp | tas9n/OpenSiv3D | c561cba1d88eb9cd9606ba983fcc1120192d5615 | [
"MIT"
] | 2 | 2021-11-22T00:52:48.000Z | 2021-12-24T09:33:55.000Z | Siv3D/src/Siv3D/ImageFormat/PNG/PNGEncoder.cpp | tas9n/OpenSiv3D | c561cba1d88eb9cd9606ba983fcc1120192d5615 | [
"MIT"
] | null | null | null | Siv3D/src/Siv3D/ImageFormat/PNG/PNGEncoder.cpp | tas9n/OpenSiv3D | c561cba1d88eb9cd9606ba983fcc1120192d5615 | [
"MIT"
] | 1 | 2021-12-31T05:08:00.000Z | 2021-12-31T05:08:00.000Z | //-----------------------------------------------
//
// This file is part of the Siv3D Engine.
//
// Copyright (c) 2008-2022 Ryo Suzuki
// Copyright (c) 2016-2022 OpenSiv3D Project
//
// Licensed under the MIT License.
//
//-----------------------------------------------
# include <Siv3D/ImageFormat/PNGEncoder.hpp>
#... | 22.947541 | 155 | 0.703529 | tas9n |
602a979b1bad0c2a510c897bb3e5594572b7512c | 1,850 | cpp | C++ | Source/hud.cpp | OneSadCookie/Astro | 4b7de6fc7bff4010a0f9aa3ed6b9029e79a785b1 | [
"Zlib"
] | null | null | null | Source/hud.cpp | OneSadCookie/Astro | 4b7de6fc7bff4010a0f9aa3ed6b9029e79a785b1 | [
"Zlib"
] | null | null | null | Source/hud.cpp | OneSadCookie/Astro | 4b7de6fc7bff4010a0f9aa3ed6b9029e79a785b1 | [
"Zlib"
] | null | null | null | #include "hud.hpp"
#include "globals.hpp"
#include "main.hpp"
#include "ufo.hpp"
void hud_draw(int lives, unsigned long score, const world& w) {
int i;
float y = 2 * ufo::properties().averageRadius;
unsigned char score_string[128];
ufo life;
float scale;
glColor4f(1, 1, 1, 0.5);
for (i = 0; i < lives... | 23.125 | 88 | 0.658919 | OneSadCookie |
602b5b2cf413b8efa1fab81c067e46dad156a5e6 | 274 | cpp | C++ | 200119Zad01/zad01.cpp | elenazaharieva/fifthgrade | 60d1301c118b9f0cb4089d672fdf9e1780aedf80 | [
"Apache-2.0"
] | null | null | null | 200119Zad01/zad01.cpp | elenazaharieva/fifthgrade | 60d1301c118b9f0cb4089d672fdf9e1780aedf80 | [
"Apache-2.0"
] | null | null | null | 200119Zad01/zad01.cpp | elenazaharieva/fifthgrade | 60d1301c118b9f0cb4089d672fdf9e1780aedf80 | [
"Apache-2.0"
] | null | null | null | /*
* zad01.cpp
*
* Created on: Jan 19, 2020
* Author: eli
*/
#include <iostream>
using namespace std;
int main() {
int B;
int chislo;
int suma = 0;
cin >> B;
do {
cin >> chislo;
suma += chislo;
} while (suma <= B);
cout << suma << endl;
return 0;
}
| 11.913043 | 28 | 0.543796 | elenazaharieva |
6031d02aa3db17231cfb1c391c3bd805a361e4d6 | 4,907 | cpp | C++ | src/lib/ffi/ffi_cert.cpp | Sirrix-AG/botan | d2cb5601b28969b045762b66200f816639a9a763 | [
"BSD-2-Clause"
] | 16 | 2018-03-27T13:22:23.000Z | 2019-03-04T12:21:12.000Z | src/lib/ffi/ffi_cert.cpp | Sirrix-AG/botan | d2cb5601b28969b045762b66200f816639a9a763 | [
"BSD-2-Clause"
] | 2 | 2019-10-05T15:38:45.000Z | 2021-05-20T18:30:57.000Z | src/lib/ffi/ffi_cert.cpp | Sirrix-AG/botan | d2cb5601b28969b045762b66200f816639a9a763 | [
"BSD-2-Clause"
] | 3 | 2020-04-02T12:52:49.000Z | 2021-07-01T13:29:41.000Z | /*
* (C) 2015,2017 Jack Lloyd
*
* Botan is released under the Simplified BSD License (see license.txt)
*/
#include <botan/ffi.h>
#include <botan/internal/ffi_util.h>
#include <botan/internal/ffi_pkey.h>
#include <botan/x509cert.h>
#include <botan/data_src.h>
extern "C" {
using namespace Botan_FFI;
BOTAN_FFI_DECLARE... | 35.817518 | 132 | 0.715305 | Sirrix-AG |
6033bf4ca2747987db836aef5eae2817bcba932a | 15,961 | cpp | C++ | src/widgets/CLabel.cpp | RoboticsDesignLab/chai3d | 66927fb9c81a173b988e1fc81cf6bfd57d69dcd7 | [
"BSD-3-Clause"
] | 75 | 2016-12-22T14:53:01.000Z | 2022-03-31T08:04:19.000Z | src/widgets/CLabel.cpp | RoboticsDesignLab/chai3d | 66927fb9c81a173b988e1fc81cf6bfd57d69dcd7 | [
"BSD-3-Clause"
] | 6 | 2017-04-03T21:27:16.000Z | 2019-08-28T17:05:23.000Z | src/widgets/CLabel.cpp | RoboticsDesignLab/chai3d | 66927fb9c81a173b988e1fc81cf6bfd57d69dcd7 | [
"BSD-3-Clause"
] | 53 | 2017-03-16T16:38:34.000Z | 2022-02-25T14:31:01.000Z | //==============================================================================
/*
Software License Agreement (BSD License)
Copyright (c) 2003-2016, CHAI3D.
(www.chai3d.org)
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are perm... | 37.118605 | 124 | 0.499217 | RoboticsDesignLab |
6038f35cbdc388f245825407664adec4577c467c | 251 | cpp | C++ | categorias/iniciante/c++/1114.cpp | carlos3g/URI-solutions | dc7f9b896cdff88aedf67611917b178d3ad60ab3 | [
"MIT"
] | 1 | 2022-01-26T23:38:17.000Z | 2022-01-26T23:38:17.000Z | categorias/iniciante/c++/1114.cpp | carlos3g/URI-solutions | dc7f9b896cdff88aedf67611917b178d3ad60ab3 | [
"MIT"
] | 1 | 2020-07-12T00:49:35.000Z | 2021-06-26T20:53:18.000Z | categorias/iniciante/c++/1114.cpp | carlos3g/URI-solutions | dc7f9b896cdff88aedf67611917b178d3ad60ab3 | [
"MIT"
] | 1 | 2020-07-04T03:27:04.000Z | 2020-07-04T03:27:04.000Z | #include <iostream>
#define PASS 2002
using namespace std;
int main() {
int input;
cin >> input;
while (input != PASS) {
cout << "Senha Invalida\n";
cin >> input;
}
cout << "Acesso Permitido\n";
return 0;
} | 13.944444 | 35 | 0.541833 | carlos3g |
603ca6aefadb0958e9dbdf6d4faf7dbccc3bbcc3 | 2,310 | cpp | C++ | src/interactivity/win32/consoleKeyInfo.cpp | hessedoneen/terminal | aa54de1d648f45920996aeba1edecc67237c6642 | [
"MIT"
] | 34,359 | 2019-05-06T21:04:42.000Z | 2019-05-14T22:06:43.000Z | src/interactivity/win32/consoleKeyInfo.cpp | Ingridamilsina/terminal | 788d33ce94d28e2903bc49f841ce279211b7f557 | [
"MIT"
] | 356 | 2019-05-06T21:03:35.000Z | 2019-05-14T21:38:47.000Z | src/interactivity/win32/consoleKeyInfo.cpp | Ingridamilsina/terminal | 788d33ce94d28e2903bc49f841ce279211b7f557 | [
"MIT"
] | 3,164 | 2019-05-06T21:06:01.000Z | 2019-05-14T20:25:52.000Z | // Copyright (c) Microsoft Corporation.
// Licensed under the MIT license.
#include "precomp.h"
#include "consoleKeyInfo.hpp"
// The following data structures are a hack to work around the fact that
// MapVirtualKey does not return the correct virtual key code in many cases.
// we store the correct info (from... | 26.860465 | 123 | 0.628139 | hessedoneen |
603f7aea274d3b9d4d8c50f42e7cbfa6fc57ae30 | 190 | cpp | C++ | competitive_programming/programming_contests/uri/password.cpp | LeandroTk/Algorithms | 569ed68eba3eeff902f8078992099c28ce4d7cd6 | [
"MIT"
] | 205 | 2018-12-01T17:49:49.000Z | 2021-12-22T07:02:27.000Z | competitive_programming/programming_contests/uri/password.cpp | LeandroTk/Algorithms | 569ed68eba3eeff902f8078992099c28ce4d7cd6 | [
"MIT"
] | 2 | 2020-01-01T16:34:29.000Z | 2020-04-26T19:11:13.000Z | competitive_programming/programming_contests/uri/password.cpp | LeandroTk/Algorithms | 569ed68eba3eeff902f8078992099c28ce4d7cd6 | [
"MIT"
] | 50 | 2018-11-28T20:51:36.000Z | 2021-11-29T04:08:25.000Z | // https://www.urionlinejudge.com.br/judge/en/problems/view/2146
#include <iostream>
using namespace std;
int main() {
int n;
while (cin >> n) {
cout << n-1 << endl;
}
return 0;
} | 12.666667 | 64 | 0.626316 | LeandroTk |
603fb3e33f0e2f0878495beddfab03b4d51c823a | 12,982 | cpp | C++ | src/dale/Form/Type/Type.cpp | ChengCat/dale | 4a764895611679cd1670d9a43ffdbee136661759 | [
"BSD-3-Clause"
] | null | null | null | src/dale/Form/Type/Type.cpp | ChengCat/dale | 4a764895611679cd1670d9a43ffdbee136661759 | [
"BSD-3-Clause"
] | null | null | null | src/dale/Form/Type/Type.cpp | ChengCat/dale | 4a764895611679cd1670d9a43ffdbee136661759 | [
"BSD-3-Clause"
] | null | null | null | #include "Type.h"
#include <cstdio>
#include <string>
#include <vector>
#include "../../Form/TopLevel/GlobalVariable/GlobalVariable.h"
#include "../../Units/Units.h"
#include "../Parameter/Parameter.h"
#include "../Struct/Struct.h"
#include "../Value/Value.h"
using namespace dale::ErrorInst;
static int anon_struct_... | 32.293532 | 72 | 0.529348 | ChengCat |
603fb99857ecfdfec3e4fcaf4858fa5f9f8bfd4b | 624 | hpp | C++ | TGEngine/public/graphics/GUIModule.hpp | Troblecodings/TGEngine | 09c845f6ad68f99e51fdd7f9139e45475010f3d9 | [
"Apache-2.0"
] | 9 | 2018-03-22T16:01:54.000Z | 2022-01-12T02:27:10.000Z | TGEngine/public/graphics/GUIModule.hpp | Troblecodings/TGEngine | 09c845f6ad68f99e51fdd7f9139e45475010f3d9 | [
"Apache-2.0"
] | 20 | 2018-03-11T12:35:55.000Z | 2020-02-19T17:36:47.000Z | TGEngine/public/graphics/GUIModule.hpp | Troblecodings/TGEngine | 09c845f6ad68f99e51fdd7f9139e45475010f3d9 | [
"Apache-2.0"
] | 6 | 2019-02-26T13:59:55.000Z | 2021-07-15T14:11:10.000Z | #pragma once
#include "../Module.hpp"
#include "GameGraphicsModule.hpp"
#include "WindowModule.hpp"
namespace tge::gui {
class GUIModule : public tge::main::Module {
public:
tge::graphics::WindowModule *winModule;
tge::graphics::APILayer *api;
void *pool;
void *buffer;
void *renderpass;
void *framebuff... | 18.352941 | 51 | 0.671474 | Troblecodings |
6041c522a9094b7342126553f6f21c0fa25cd960 | 312 | cc | C++ | src/main.cc | hedzr/hicc | c2a33afec2ff1f79c42ed9f888ad091710e7ae60 | [
"MIT"
] | null | null | null | src/main.cc | hedzr/hicc | c2a33afec2ff1f79c42ed9f888ad091710e7ae60 | [
"MIT"
] | null | null | null | src/main.cc | hedzr/hicc | c2a33afec2ff1f79c42ed9f888ad091710e7ae60 | [
"MIT"
] | null | null | null | #include <iostream>
#include "../include/core11.hh"
#include "hicc/hicc.hh"
void fatal_exit(const std::string &msg) {
std::cerr << msg << '\n';
exit(-1);
}
int main() {
std::string s1("a string", 2, 3);
std::cout << "Hello, World!" << s1 << '\n';
hicc_debug("ok");
return 0;
}
| 14.857143 | 47 | 0.535256 | hedzr |
6041ed1f1b6fe3caaefea953ec8b663423bc8c7c | 1,957 | cpp | C++ | LCS.cpp | shivamkrs89/DYNAMIC-PROGRAMMING | 7284918d61107ed9ac8092349b5289c69e628e2d | [
"MIT"
] | 2 | 2021-05-27T14:56:52.000Z | 2021-05-27T15:08:02.000Z | LCS.cpp | shivamkrs89/DYNAMIC-PROGRAMMING | 7284918d61107ed9ac8092349b5289c69e628e2d | [
"MIT"
] | null | null | null | LCS.cpp | shivamkrs89/DYNAMIC-PROGRAMMING | 7284918d61107ed9ac8092349b5289c69e628e2d | [
"MIT"
] | null | null | null | /*
Longest Common Subsequence
Given two sequences, find the length of longest subsequence present in both of them. Both the strings are of uppercase.
Example 1:
Input:
A = 6, B = 6
str1 = ABCDGH
str2 = AEDFHR
Output: 3
Explanation: LCS for input Sequences
“ABCDGH” and “AEDFHR” is “ADH” of
length 3.
Example 1:
Inpu... | 19.767677 | 189 | 0.58048 | shivamkrs89 |
604275d1b48b029296295a54a33ff8cc3e3291e5 | 820 | hpp | C++ | sparta/simdb/include/simdb/schema/ColumnTypedefs.hpp | knute-sifive/map | fb25626830a56ad68ab896bcd01929023ff31c48 | [
"MIT"
] | null | null | null | sparta/simdb/include/simdb/schema/ColumnTypedefs.hpp | knute-sifive/map | fb25626830a56ad68ab896bcd01929023ff31c48 | [
"MIT"
] | null | null | null | sparta/simdb/include/simdb/schema/ColumnTypedefs.hpp | knute-sifive/map | fb25626830a56ad68ab896bcd01929023ff31c48 | [
"MIT"
] | null | null | null | // <ColumnTypedefs> -*- C++ -*-
#ifndef __SIMDB_COLUMN_TYPEDEFS_H__
#define __SIMDB_COLUMN_TYPEDEFS_H__
#include <cstdint>
#include <cstddef>
#include <utility>
#include <string>
namespace simdb {
//! Data types supported by SimDB schemas
enum class ColumnDataType : int8_t {
int8_t,
uint8_t,
int16_t,
... | 18.222222 | 64 | 0.685366 | knute-sifive |
60483704b4c384f0503c5bdcdf909ec161334ca9 | 6,252 | cpp | C++ | resource/csdk/resource-directory/samples/rd_publishingClient.cpp | webispy/iotivity | 70154e7b27bbaa9feef0e625f9e0ee761d4de179 | [
"Apache-2.0"
] | 2 | 2019-10-02T08:36:35.000Z | 2020-11-27T05:42:34.000Z | iotivity/resource/csdk/resource-directory/samples/rd_publishingClient.cpp | 2nd-Chance/Fire-evacuation-guidance-system-IoT | 33031a8255fe1ae516ddd58f1baa808801cd3abf | [
"MIT"
] | 21 | 2019-10-02T08:31:36.000Z | 2021-12-09T21:46:49.000Z | resource/csdk/resource-directory/samples/rd_publishingClient.cpp | webispy/iotivity | 70154e7b27bbaa9feef0e625f9e0ee761d4de179 | [
"Apache-2.0"
] | 3 | 2020-05-11T07:06:42.000Z | 2020-11-27T05:42:37.000Z | //******************************************************************
//
// Copyright 2015 Samsung Electronics All Rights Reserved.
//
//-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance... | 35.931034 | 99 | 0.511836 | webispy |
604bb7869e161d0ff0de2882a6eb1f8ea02779f6 | 26,591 | cpp | C++ | lib/Frontend/DiagnosticVerifier.cpp | francisvm/swift | 15e209ea2fde679ee78438d4ba949144acb7fee4 | [
"Apache-2.0"
] | 1 | 2018-01-11T07:08:30.000Z | 2018-01-11T07:08:30.000Z | lib/Frontend/DiagnosticVerifier.cpp | francisvm/swift | 15e209ea2fde679ee78438d4ba949144acb7fee4 | [
"Apache-2.0"
] | 153 | 2018-01-21T15:24:47.000Z | 2018-09-13T12:46:16.000Z | lib/Frontend/DiagnosticVerifier.cpp | francisvm/swift | 15e209ea2fde679ee78438d4ba949144acb7fee4 | [
"Apache-2.0"
] | 11 | 2017-12-13T08:08:15.000Z | 2019-06-18T14:27:32.000Z | //===--- DiagnosticVerifier.cpp - Diagnostic Verifier (-verify) -----------===//
//
// This source file is part of the Swift.org open source project
//
// Copyright (c) 2014 - 2017 Apple Inc. and the Swift project authors
// Licensed under Apache License v2.0 with Runtime Library Exception
//
// See https://swift.org/L... | 36.376197 | 101 | 0.625249 | francisvm |
604c0eb6edeb729ec1aec746438c2d4254fb2f75 | 1,357 | cpp | C++ | Motor2D/j1Label.cpp | knela96/Dev_class5_handout | ca137c8e696069bf1bb5709c97ceae79f280942b | [
"MIT"
] | null | null | null | Motor2D/j1Label.cpp | knela96/Dev_class5_handout | ca137c8e696069bf1bb5709c97ceae79f280942b | [
"MIT"
] | null | null | null | Motor2D/j1Label.cpp | knela96/Dev_class5_handout | ca137c8e696069bf1bb5709c97ceae79f280942b | [
"MIT"
] | null | null | null | #include "j1App.h"
#include "j1Render.h"
#include "j1Label.h"
#include "j1Fonts.h"
#include "p2Log.h"
#include "j1Textures.h"
#include "j1Textures.h"
#include "Brofiler\Brofiler.h"
j1Label::j1Label(fPoint position, p2SString text, int scale, int move, SDL_Texture* graphics, j1ElementGUI* parent, ElementUIType type) :... | 23 | 137 | 0.691231 | knela96 |
604e5c64e3641aa56163857d835936926f9f773c | 12,626 | hpp | C++ | external/armadillo-10.1.2/tmp/include/armadillo_bits/op_logmat_meat.hpp | hb407/libnome | cf11c6e34e6d147e28bfc6f54dd3ca81d2443438 | [
"MIT"
] | 55 | 2020-10-07T20:22:22.000Z | 2021-08-28T10:58:36.000Z | external/armadillo-10.1.2/tmp/include/armadillo_bits/op_logmat_meat.hpp | hb407/libnome | cf11c6e34e6d147e28bfc6f54dd3ca81d2443438 | [
"MIT"
] | 16 | 2020-12-06T22:02:38.000Z | 2021-08-19T09:37:56.000Z | external/armadillo-10.1.2/tmp/include/armadillo_bits/op_logmat_meat.hpp | hb407/libnome | cf11c6e34e6d147e28bfc6f54dd3ca81d2443438 | [
"MIT"
] | 11 | 2019-12-16T16:06:19.000Z | 2020-04-15T15:28:31.000Z | // Copyright 2008-2016 Conrad Sanderson (http://conradsanderson.id.au)
// Copyright 2008-2016 National ICT Australia (NICTA)
//
// 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... | 23.295203 | 154 | 0.591399 | hb407 |
604fe3d541cfc12556116a40a7cd82c09b30031a | 2,506 | cpp | C++ | B Problems/TIMUS1349 - Farm.cpp | UVE-R/CP-CPP | 67819f4115917f663c22ada899b27ace7b2e9b9e | [
"Unlicense"
] | 1 | 2021-08-24T21:05:28.000Z | 2021-08-24T21:05:28.000Z | B Problems/TIMUS1349 - Farm.cpp | UVE-R/CP-CPP | 67819f4115917f663c22ada899b27ace7b2e9b9e | [
"Unlicense"
] | null | null | null | B Problems/TIMUS1349 - Farm.cpp | UVE-R/CP-CPP | 67819f4115917f663c22ada899b27ace7b2e9b9e | [
"Unlicense"
] | null | null | null | # include <bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef long double ld;
typedef pair <int, int> pii;
typedef pair <pii, int> ppi;
typedef pair <int, pii> ... | 35.295775 | 132 | 0.343176 | UVE-R |
6054ed7731e661665bffa59ed2f1b41d03101ab1 | 6,759 | cpp | C++ | Siv3D/src/Siv3D-Platform/WindowsDesktop/Siv3D/Window/WindowProc.cpp | tetsurom/OpenSiv3D | 935525b9ad4f54966327ffa129227c956f08e231 | [
"MIT"
] | 709 | 2016-03-19T07:55:58.000Z | 2022-03-31T08:02:22.000Z | Siv3D/src/Siv3D-Platform/WindowsDesktop/Siv3D/Window/WindowProc.cpp | tetsurom/OpenSiv3D | 935525b9ad4f54966327ffa129227c956f08e231 | [
"MIT"
] | 415 | 2017-05-21T05:05:02.000Z | 2022-03-29T16:08:27.000Z | Siv3D/src/Siv3D-Platform/WindowsDesktop/Siv3D/Window/WindowProc.cpp | tetsurom/OpenSiv3D | 935525b9ad4f54966327ffa129227c956f08e231 | [
"MIT"
] | 123 | 2016-03-19T12:47:08.000Z | 2022-03-25T03:47:51.000Z | //-----------------------------------------------
//
// This file is part of the Siv3D Engine.
//
// Copyright (c) 2008-2021 Ryo Suzuki
// Copyright (c) 2016-2021 OpenSiv3D Project
//
// Licensed under the MIT License.
//
//-----------------------------------------------
# include <Siv3D/Error.hpp>
# include <Siv3D/E... | 21.663462 | 101 | 0.637224 | tetsurom |
605694f0cccea5188a2420b41942d03e8c882fef | 1,389 | cpp | C++ | lib/app/EnergyManager.cpp | dniklaus/batt-powered-device | a59a78a19453622007cf4b717fcfc8073cab0bc5 | [
"MIT"
] | null | null | null | lib/app/EnergyManager.cpp | dniklaus/batt-powered-device | a59a78a19453622007cf4b717fcfc8073cab0bc5 | [
"MIT"
] | null | null | null | lib/app/EnergyManager.cpp | dniklaus/batt-powered-device | a59a78a19453622007cf4b717fcfc8073cab0bc5 | [
"MIT"
] | null | null | null | /*
* EnergyManager.cpp
*
* Created on: 13.06.2019
* Author: dniklaus
*/
#include "main.h"
// #include "Timer.h"
#include "EnergyManager.h"
EnergyManager::EnergyManager()
{ }
EnergyManager::~EnergyManager()
{ }
void EnergyManager::enterMcuStopMode(uint32_t stopTimeMillis)
{
//if debugging:
#ifdef DEBUG
... | 23.15 | 89 | 0.716343 | dniklaus |
605a9572ae1515ffb2c70eb9cec8529b1d2b5017 | 276 | cpp | C++ | Leetcode Solution/Arrays/Easy/1299. Replace Elements with Greatest Element on Right Side.cpp | bilwa496/Placement-Preparation | bd32ee717f671d95c17f524ed28b0179e0feb044 | [
"MIT"
] | 169 | 2021-05-30T10:02:19.000Z | 2022-03-27T18:09:32.000Z | Leetcode Solution/Arrays/Easy/1299. Replace Elements with Greatest Element on Right Side.cpp | bilwa496/Placement-Preparation | bd32ee717f671d95c17f524ed28b0179e0feb044 | [
"MIT"
] | 1 | 2021-10-02T14:46:26.000Z | 2021-10-02T14:46:26.000Z | Leetcode Solution/Arrays/Easy/1299. Replace Elements with Greatest Element on Right Side.cpp | bilwa496/Placement-Preparation | bd32ee717f671d95c17f524ed28b0179e0feb044 | [
"MIT"
] | 44 | 2021-05-30T19:56:29.000Z | 2022-03-17T14:49:00.000Z |
class Solution {
public:
vector<int> replaceElements(vector<int>& arr) {
int maxv = -1,temp;
for(int i=arr.size()-1;i>=0;i--)
{
temp = arr[i];
arr[i]=maxv;
maxv = max(maxv,temp);
}
return arr;
}
};
| 18.4 | 51 | 0.452899 | bilwa496 |
605d87e7bcaaa4500f0365dd3c57d864ff56688e | 846 | cpp | C++ | Source/VoxelWorld/Application/Game/Crosshair.cpp | AirGuanZ/VoxelWorld | 8defdee9e2b8fb20607d33ba0f3a316b95273693 | [
"MIT"
] | 11 | 2018-01-15T16:05:44.000Z | 2021-06-27T09:00:08.000Z | Source/VoxelWorld/Application/Game/Crosshair.cpp | AirGuanZ/VoxelWorld | 8defdee9e2b8fb20607d33ba0f3a316b95273693 | [
"MIT"
] | null | null | null | Source/VoxelWorld/Application/Game/Crosshair.cpp | AirGuanZ/VoxelWorld | 8defdee9e2b8fb20607d33ba0f3a316b95273693 | [
"MIT"
] | 3 | 2018-03-01T06:33:37.000Z | 2021-07-03T10:35:02.000Z | /*================================================================
Filename: Crosshair.cpp
Date: 2018.1.23
Created by AirGuanZ
================================================================*/
#include <Resource\ResourceNameManager.h>
#include <Window\Window.h>
#include "Crosshair.h"
bool Crosshair::Initialize(void)
... | 30.214286 | 84 | 0.594563 | AirGuanZ |
60616bf10025a38d46ee1ec5377ee2947500d468 | 2,852 | cpp | C++ | tests/IoTeX/AddressTests.cpp | vladyslav-iosdev/wallet-core | 6f8f175a380bdf9756f38bfd82fedd9b73b67580 | [
"MIT"
] | 1,306 | 2019-08-08T13:25:24.000Z | 2022-03-31T23:32:28.000Z | tests/IoTeX/AddressTests.cpp | vladyslav-iosdev/wallet-core | 6f8f175a380bdf9756f38bfd82fedd9b73b67580 | [
"MIT"
] | 1,179 | 2019-08-08T07:06:10.000Z | 2022-03-31T12:33:47.000Z | tests/IoTeX/AddressTests.cpp | vladyslav-iosdev/wallet-core | 6f8f175a380bdf9756f38bfd82fedd9b73b67580 | [
"MIT"
] | 811 | 2019-08-08T13:27:44.000Z | 2022-03-31T21:22:53.000Z | // Copyright © 2017-2020 Trust Wallet.
//
// This file is part of Trust. The full Trust copyright notice, including
// terms governing use, modification, and redistribution, is contained in the
// file LICENSE at the root of the source code distribution tree.
#include <gtest/gtest.h>
#include "HexCoding.h"
#include "... | 36.101266 | 118 | 0.725806 | vladyslav-iosdev |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.