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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
cfb9f0647500dcc01a6805d633fa22ac494b6a85 | 331 | hpp | C++ | include/Ball.hpp | naraku9333/Block_Attack | 2669b8c32d4d93e0c566521dfe74c296ca8a8339 | [
"MIT"
] | null | null | null | include/Ball.hpp | naraku9333/Block_Attack | 2669b8c32d4d93e0c566521dfe74c296ca8a8339 | [
"MIT"
] | null | null | null | include/Ball.hpp | naraku9333/Block_Attack | 2669b8c32d4d93e0c566521dfe74c296ca8a8339 | [
"MIT"
] | null | null | null | #ifndef SV_BA_BALL_HPP
#define SV_BA_BALL_HPP
#include <SFML/Graphics.hpp>
#include <draw_obj.hpp>
namespace sv
{
namespace ba
{
class Ball : public draw_obj<sf::CircleShape>
{
public:
sf::Vector2f velocity;
Ball();
bool move();
};
... | 14.391304 | 53 | 0.540785 | naraku9333 |
cfbf7ec9eeecbf6d8db001727b93e85f9f688f39 | 1,246 | cpp | C++ | STL ( VECTOR-SET-MAPS-PAIR-etc)/VECTOR PROGRAMS/7.vector_travelled in reverse way.cpp | shauryauppal/Algo-DS-StudyMaterial | 1c481f066d21b33ec2533156e75f45fa9b6a7606 | [
"Apache-2.0"
] | 3 | 2020-12-03T14:52:23.000Z | 2021-12-19T09:26:50.000Z | STL ( VECTOR-SET-MAPS-PAIR-etc)/VECTOR PROGRAMS/7.vector_travelled in reverse way.cpp | shauryauppal/Algo-DS-StudyMaterial | 1c481f066d21b33ec2533156e75f45fa9b6a7606 | [
"Apache-2.0"
] | null | null | null | STL ( VECTOR-SET-MAPS-PAIR-etc)/VECTOR PROGRAMS/7.vector_travelled in reverse way.cpp | shauryauppal/Algo-DS-StudyMaterial | 1c481f066d21b33ec2533156e75f45fa9b6a7606 | [
"Apache-2.0"
] | null | null | null | //iterator through a vector.
#include <iostream>
#include <vector>
int main()
{
using namespace std;
vector<int> vect;
for (int nCount=0; nCount < 6; nCount++)
vect.push_back(nCount);
vector<int>::iterator fo;
vector<int>::reverse_iterator it=vect.rbegin(); // declare an to print t... | 28.318182 | 105 | 0.538523 | shauryauppal |
cfc10e22e4d72e20a2ab0102bec28f287483e1b2 | 15,234 | cc | C++ | cosim/drivers/linux/cep_exports.cc | vrmad1/ET_CEP_Dev | b4dfbb36aed5de862598e78d27264c610b68ca0f | [
"BSD-2-Clause"
] | 2 | 2021-05-13T13:32:03.000Z | 2022-03-15T04:12:21.000Z | cosim/drivers/linux/cep_exports.cc | jontitalukdar/CEP | b4dfbb36aed5de862598e78d27264c610b68ca0f | [
"BSD-2-Clause"
] | null | null | null | cosim/drivers/linux/cep_exports.cc | jontitalukdar/CEP | b4dfbb36aed5de862598e78d27264c610b68ca0f | [
"BSD-2-Clause"
] | 1 | 2021-03-24T06:45:28.000Z | 2021-03-24T06:45:28.000Z | //************************************************************************
// Copyright (C) 2020 Massachusetts Institute of Technology
// SPDX License Identifier: MIT
//
// File Name:
// Program: Common Evaluation Platform (CEP)
// Description:
// Notes:
//
//*********************************... | 24.452648 | 116 | 0.611658 | vrmad1 |
cfc65daa1765e7bd7e0f5c98ad0a98a1b74dc335 | 51,749 | cpp | C++ | display.cpp | radoth/encoder | 4d9e0ff2782130d925ce1af5d8f604e5b31305e0 | [
"MIT"
] | null | null | null | display.cpp | radoth/encoder | 4d9e0ff2782130d925ce1af5d8f604e5b31305e0 | [
"MIT"
] | null | null | null | display.cpp | radoth/encoder | 4d9e0ff2782130d925ce1af5d8f604e5b31305e0 | [
"MIT"
] | null | null | null | #include "display.h"
#include "ui_display.h"
#include <QFileDialog>
#include <QDebug>
#include <cstdio>
#include <cstdlib>
#include<QDateTime>
#include <QMessageBox>
#include "checkdatathread.h"
#include "refreshui.h"
#include "refreshbar.h"
#include "displaychart.h"
#include "visual3d.h"
Display::Display(QWidget *par... | 31.211701 | 293 | 0.612398 | radoth |
cfd682a3c2a46d3a81018c647676c2e6b0715e35 | 3,980 | cpp | C++ | jam/src/ExtAnimator.cpp | gzito/jamengine | 451ab1e1d74231a3239a56aed4c40dc445fa6db8 | [
"MIT"
] | null | null | null | jam/src/ExtAnimator.cpp | gzito/jamengine | 451ab1e1d74231a3239a56aed4c40dc445fa6db8 | [
"MIT"
] | null | null | null | jam/src/ExtAnimator.cpp | gzito/jamengine | 451ab1e1d74231a3239a56aed4c40dc445fa6db8 | [
"MIT"
] | null | null | null | /**********************************************************************************
*
* ExtAnimator.cpp
*
* This file is part of Jam
*
* Copyright (c) 2014-2019 Giovanni Zito.
* Copyright (c) 2014-2019 Jam contributors (cf. AUTHORS.md)
*
* Permission is hereby granted, free of charge, to any person obtaining a copy... | 28.028169 | 142 | 0.672864 | gzito |
cfdd8518a5585bbe9f2812bd017f305ffaf28550 | 14,752 | cpp | C++ | ffscript/ExpUnitExecutor.cpp | VincentPT/xscript | cea6ee9e8c5af87af75188695ffa89080dce49b8 | [
"MIT"
] | null | null | null | ffscript/ExpUnitExecutor.cpp | VincentPT/xscript | cea6ee9e8c5af87af75188695ffa89080dce49b8 | [
"MIT"
] | null | null | null | ffscript/ExpUnitExecutor.cpp | VincentPT/xscript | cea6ee9e8c5af87af75188695ffa89080dce49b8 | [
"MIT"
] | 1 | 2019-12-24T22:24:01.000Z | 2019-12-24T22:24:01.000Z | /******************************************************************
* File: ExpUnitExecutor.cpp
* Description: implement ExpUnitExecutor class, part 1.
* A class contains the
* commands generated from an expression.
* Author: Vincent Pham
*
* Copyright (c) 2018 VincentPT.
** Distri... | 37.7289 | 164 | 0.716852 | VincentPT |
cfde4f4395bc303f0c6df5afdb70c176311f03fa | 3,442 | cpp | C++ | gpio/code/ncam_gpio_dio.cpp | att-circ-contrl/NeuroCam | 743671a7ebec6d015c39a51ddf48873cb2759c03 | [
"CC-BY-4.0"
] | null | null | null | gpio/code/ncam_gpio_dio.cpp | att-circ-contrl/NeuroCam | 743671a7ebec6d015c39a51ddf48873cb2759c03 | [
"CC-BY-4.0"
] | null | null | null | gpio/code/ncam_gpio_dio.cpp | att-circ-contrl/NeuroCam | 743671a7ebec6d015c39a51ddf48873cb2759c03 | [
"CC-BY-4.0"
] | null | null | null | // Attention Circuits Control Laboratory - GPIO device
// Digital I/O routines.
// Written by Christopher Thomas.
//
// Includes
#include "ncam_gpio_includes.h"
//
// Private macros
// Input and output masks for various ports.
// FIXME - We have 18 uncontested pins available, and only use 9.
// NOTE - Don't to... | 17.21 | 75 | 0.655433 | att-circ-contrl |
cfdf59a06ab8f99b77438448654112937b678d6c | 9,666 | cpp | C++ | src_smartcontract_db/trx/transaction/CdbTransaction.cpp | alinous-core/codable-cash | 32a86a152a146c592bcfd8cc712f4e8cb38ee1a0 | [
"MIT"
] | 1 | 2020-10-15T08:24:35.000Z | 2020-10-15T08:24:35.000Z | src_smartcontract_db/trx/transaction/CdbTransaction.cpp | Codablecash/codablecash | 8816b69db69ff2f5da6cdb6af09b8fb21d3df1d9 | [
"MIT"
] | null | null | null | src_smartcontract_db/trx/transaction/CdbTransaction.cpp | Codablecash/codablecash | 8816b69db69ff2f5da6cdb6af09b8fb21d3df1d9 | [
"MIT"
] | null | null | null | /*
* CdbTransaction.cpp
*
* Created on: 2020/05/11
* Author: iizuka
*/
#include "trx/transaction/CdbTransaction.h"
#include "trx/transaction/CdbTransactionManager.h"
#include "trx/transaction/SchemaObjectIdPublisher.h"
#include "trx/transaction_log/AbstractTransactionLog.h"
#include "trx/transaction_log/Cr... | 31.485342 | 183 | 0.775605 | alinous-core |
cff26f22e27313a07ef5bd89962d63ce54cdac2e | 238 | cpp | C++ | Move Zeroes.cpp | Subhash3/Algorithms-For-Software-Developers | 2e0ac4f51d379a2b10a40fca7fa82a8501d3db94 | [
"BSD-2-Clause"
] | 2 | 2021-10-01T04:20:04.000Z | 2021-10-01T04:20:06.000Z | Move Zeroes.cpp | Subhash3/Algorithms-For-Software-Developers | 2e0ac4f51d379a2b10a40fca7fa82a8501d3db94 | [
"BSD-2-Clause"
] | 1 | 2021-10-01T18:00:09.000Z | 2021-10-01T18:00:09.000Z | Move Zeroes.cpp | Subhash3/Algorithms-For-Software-Developers | 2e0ac4f51d379a2b10a40fca7fa82a8501d3db94 | [
"BSD-2-Clause"
] | 8 | 2021-10-01T04:20:38.000Z | 2022-03-19T17:05:05.000Z | class Solution {
public:
void moveZeroes(vector<int>& a) {
int j=0;
for(int i=0;i<a.size();i++){
if(a[i]!=0)
a[j++]=a[i];
}
for(;j<a.size();j++)
a[j]=0;
}
};
| 18.307692 | 37 | 0.357143 | Subhash3 |
cff27aefa8ad6ff9b81d9a85ece0f2c8235fb88e | 231 | cpp | C++ | Test Files/SumTest.cpp | shu456/AlgoAndData | 742771de27bebeb3a7d6f942afb87cd2ba39c62b | [
"MIT"
] | null | null | null | Test Files/SumTest.cpp | shu456/AlgoAndData | 742771de27bebeb3a7d6f942afb87cd2ba39c62b | [
"MIT"
] | null | null | null | Test Files/SumTest.cpp | shu456/AlgoAndData | 742771de27bebeb3a7d6f942afb87cd2ba39c62b | [
"MIT"
] | null | null | null | #include <iostream>
#include "../Source/utility.hpp"
constexpr int Test()
{
return 50;
}
int main(void)
{
Sum<2,5,10,Test()> a;
std::cout << a << std::endl;
std::cout << Sum<2,5,12,5,10,9>() << std::endl;
return 0;
} | 13.588235 | 49 | 0.571429 | shu456 |
cff5940f2f0ba05f1f15c168bef784aeb6f644cb | 8,702 | cc | C++ | camera/common/ipc_util.cc | dgreid/platform2 | 9b8b30df70623c94f1c8aa634dba94195343f37b | [
"BSD-3-Clause"
] | 4 | 2020-07-24T06:54:16.000Z | 2021-06-16T17:13:53.000Z | camera/common/ipc_util.cc | dgreid/platform2 | 9b8b30df70623c94f1c8aa634dba94195343f37b | [
"BSD-3-Clause"
] | 1 | 2021-04-02T17:35:07.000Z | 2021-04-02T17:35:07.000Z | camera/common/ipc_util.cc | dgreid/platform2 | 9b8b30df70623c94f1c8aa634dba94195343f37b | [
"BSD-3-Clause"
] | null | null | null | /*
* Copyright 2016 The Chromium OS 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 "cros-camera/ipc_util.h"
#include <errno.h>
#include <fcntl.h>
#include <sys/socket.h>
#include <sys/un.h>
#include <vector>
#includ... | 31.189964 | 80 | 0.680188 | dgreid |
cff88e1359c9202ee2bcb0341a9912decd7ca5bf | 210 | cc | C++ | tests/test_utils.cc | panosk/CTranslate2 | e2c6bce308e1593ad807e00bacd0f00b6d97c0ec | [
"MIT"
] | null | null | null | tests/test_utils.cc | panosk/CTranslate2 | e2c6bce308e1593ad807e00bacd0f00b6d97c0ec | [
"MIT"
] | null | null | null | tests/test_utils.cc | panosk/CTranslate2 | e2c6bce308e1593ad807e00bacd0f00b6d97c0ec | [
"MIT"
] | null | null | null | #include "test_utils.h"
extern std::string g_data_dir;
const std::string& get_data_dir() {
return g_data_dir;
}
std::string default_model_dir() {
return g_data_dir + "/models/v2/aren-transliteration";
}
| 17.5 | 56 | 0.733333 | panosk |
cff953571cb0781ff90c93adc01e758d2f637d20 | 3,572 | cpp | C++ | src/minisef/dmserializers/importsfmv5.cpp | cstom4994/SourceEngineRebuild | edfd7f8ce8af13e9d23586318350319a2e193c08 | [
"MIT"
] | 6 | 2022-01-23T09:40:33.000Z | 2022-03-20T20:53:25.000Z | src/minisef/dmserializers/importsfmv5.cpp | cstom4994/SourceEngineRebuild | edfd7f8ce8af13e9d23586318350319a2e193c08 | [
"MIT"
] | null | null | null | src/minisef/dmserializers/importsfmv5.cpp | cstom4994/SourceEngineRebuild | edfd7f8ce8af13e9d23586318350319a2e193c08 | [
"MIT"
] | 1 | 2022-02-06T21:05:23.000Z | 2022-02-06T21:05:23.000Z | //========= Copyright Valve Corporation, All rights reserved. ============//
//
// Purpose:
//
//=============================================================================
#include "dmserializers.h"
#include "dmebaseimporter.h"
#include "datamodel/idatamodel.h"
#include "datamodel/dmelement.h"
#include "tier1/Key... | 32.472727 | 119 | 0.494961 | cstom4994 |
cffb708458d33d27da2954a679b7e4b8a990bce5 | 6,222 | hpp | C++ | include/camp/detail/classmanager.hpp | tegesoft/camp | c2ed1bbe941498bd0e22feb972cb80845a060884 | [
"MIT"
] | 61 | 2015-01-06T21:58:06.000Z | 2021-11-22T15:12:43.000Z | include/camp/detail/classmanager.hpp | tegesoft/camp | c2ed1bbe941498bd0e22feb972cb80845a060884 | [
"MIT"
] | 2 | 2015-03-19T14:18:04.000Z | 2015-12-31T13:32:15.000Z | include/camp/detail/classmanager.hpp | tegesoft/camp | c2ed1bbe941498bd0e22feb972cb80845a060884 | [
"MIT"
] | 19 | 2015-01-20T07:52:58.000Z | 2021-08-15T08:51:11.000Z | /****************************************************************************
**
** Copyright (C) 2009-2014 TEGESO/TEGESOFT and/or its subsidiary(-ies) and mother company.
** Contact: Tegesoft Information (contact@tegesoft.com)
**
** This file is part of the CAMP library.
**
** The MIT License (MIT)
**
** Copyrigh... | 31.266332 | 112 | 0.641273 | tegesoft |
cffc4def618b5c9c9f83c3f4c3847e381f864c16 | 4,686 | cpp | C++ | addons/webassembly-embind/group_by_binding.cpp | tamtakoe/node-addon-test | a56a7888d73f164f7dabb2586dac44b619c25377 | [
"MIT"
] | 1 | 2020-08-01T12:09:18.000Z | 2020-08-01T12:09:18.000Z | addons/webassembly-embind/group_by_binding.cpp | tamtakoe/node-addon-test | a56a7888d73f164f7dabb2586dac44b619c25377 | [
"MIT"
] | null | null | null | addons/webassembly-embind/group_by_binding.cpp | tamtakoe/node-addon-test | a56a7888d73f164f7dabb2586dac44b619c25377 | [
"MIT"
] | null | null | null | /* Embind example */
#include "group_by.h"
#include <iostream>
#include <algorithm>
#include <vector>
#include <unordered_map>
#include <string>
#include <variant>
#include <emscripten/bind.h>
using namespace std;
using Key = std::string;
using Value = variant<std::string, double, bool>;
using Item = unordered_map<Key... | 35.770992 | 146 | 0.504908 | tamtakoe |
3200aab3518318335d70f3714a2fc4571b35e747 | 1,560 | cpp | C++ | tests/HTTPTypesTests.cpp | marshallmcmullen/pion | 7dcbe769e7076f5cc983bb4a5b5d2bc83cadb3a2 | [
"BSL-1.0"
] | 1 | 2016-06-14T07:32:08.000Z | 2016-06-14T07:32:08.000Z | tests/HTTPTypesTests.cpp | marshallmcmullen/pion | 7dcbe769e7076f5cc983bb4a5b5d2bc83cadb3a2 | [
"BSL-1.0"
] | null | null | null | tests/HTTPTypesTests.cpp | marshallmcmullen/pion | 7dcbe769e7076f5cc983bb4a5b5d2bc83cadb3a2 | [
"BSL-1.0"
] | 1 | 2019-01-08T06:03:55.000Z | 2019-01-08T06:03:55.000Z | // ------------------------------------------------------------------
// pion-net: a C++ framework for building lightweight HTTP interfaces
// ------------------------------------------------------------------
// Copyright (C) 2007-2008 Atomic Labs, Inc. (http://www.atomiclabs.com)
//
// Distributed under the Boost So... | 36.27907 | 73 | 0.661538 | marshallmcmullen |
32037a04b0cae56a04970ae5e8182a1309ab237b | 3,039 | cpp | C++ | src/dc/qm_fixed.cpp | degarashi/revenant | 9e671320a5c8790f6bdd1b14934f81c37819f7b3 | [
"MIT"
] | null | null | null | src/dc/qm_fixed.cpp | degarashi/revenant | 9e671320a5c8790f6bdd1b14934f81c37819f7b3 | [
"MIT"
] | null | null | null | src/dc/qm_fixed.cpp | degarashi/revenant | 9e671320a5c8790f6bdd1b14934f81c37819f7b3 | [
"MIT"
] | null | null | null | #include "qm_fixed.hpp"
#include "lubee/src/hash_combine.hpp"
#include "jointquery_if.hpp"
#include "dc/node.hpp"
namespace rev::dc {
// ------------------- QM_Fixed::Ent -------------------
QM_Fixed::Ent::Ent(const TfNode* node, const bool local, const std::size_t sid):
node(node),
local(local),
serialId(sid)... | 26.893805 | 81 | 0.638697 | degarashi |
3203ac8c20e1ef0de376a2de6bbebb7a9c97e94a | 9,923 | cpp | C++ | src/world/entities/lightstripentity.cpp | Eae02/tank-game | 0c526b177ccc15dd49e3228489163f13335040db | [
"Zlib"
] | null | null | null | src/world/entities/lightstripentity.cpp | Eae02/tank-game | 0c526b177ccc15dd49e3228489163f13335040db | [
"Zlib"
] | null | null | null | src/world/entities/lightstripentity.cpp | Eae02/tank-game | 0c526b177ccc15dd49e3228489163f13335040db | [
"Zlib"
] | null | null | null | #include "lightstripentity.h"
#include "../path/path.h"
#include "../gameworld.h"
#include "../lights/raylightentity.h"
#include "../../graphics/gl/shadermodule.h"
#include "../../utils/utils.h"
#include "../../utils/ioutils.h"
#include "../../utils/mathutils.h"
#include "../../lua/luainc.h"
#include <imgui.h>
#includ... | 26.390957 | 110 | 0.668749 | Eae02 |
3203b8cbaa4e0f74ec59aeb1129073fd66f10977 | 3,144 | cpp | C++ | capture/src/CameraController.cpp | JMassing/Pokerbot | 40b2e4756fc8ef1be4af4d649deb6035a9774bdc | [
"MIT"
] | 1 | 2021-12-10T06:27:47.000Z | 2021-12-10T06:27:47.000Z | capture/src/CameraController.cpp | JMassing/Pokerbot | 40b2e4756fc8ef1be4af4d649deb6035a9774bdc | [
"MIT"
] | null | null | null | capture/src/CameraController.cpp | JMassing/Pokerbot | 40b2e4756fc8ef1be4af4d649deb6035a9774bdc | [
"MIT"
] | null | null | null | #include "CameraController.hpp"
namespace capture {
bool CameraController::initCamera(const CameraSettings& camera_settings)
{
// set camera controls to default values during initialization
this->cam_->open();
// check if we succeeded
if (!this->cam_->isOpened()) {
return false;
}
// set initial ca... | 31.44 | 91 | 0.653944 | JMassing |
3203e8e4251d1bce1c7317542a4b7d46531e0531 | 355 | cpp | C++ | codeforces/1133/C.cpp | Mohammad-Elsharkawy/CompetitiveProgramming | 8d052465ff08cb36e66b7e6c6813090ac410bf1d | [
"MIT"
] | null | null | null | codeforces/1133/C.cpp | Mohammad-Elsharkawy/CompetitiveProgramming | 8d052465ff08cb36e66b7e6c6813090ac410bf1d | [
"MIT"
] | null | null | null | codeforces/1133/C.cpp | Mohammad-Elsharkawy/CompetitiveProgramming | 8d052465ff08cb36e66b7e6c6813090ac410bf1d | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
using namespace std;
const int N=1000000;
int arr[N];
int main(){
int n;cin>>n;
for(int i=0;i<n;i++)
cin>>arr[i];
sort(arr,arr+n);
int ans=0;
int l=0,r=0;
while(l<n)
{
while(r<n && arr[r]-arr[l] <= 5)
{
r++;
}
ans=max(ans,r-l);
l++;
}... | 9.861111 | 36 | 0.473239 | Mohammad-Elsharkawy |
3204c7435540da3967fb4f6699fa49d0434fb875 | 660 | hpp | C++ | framework/include/camera_node.hpp | ttobollik/CGLab_-Haffky117185_Tobollik118988 | 74c2bb2fdba634de95a74224369ae55913a3c7b5 | [
"MIT"
] | null | null | null | framework/include/camera_node.hpp | ttobollik/CGLab_-Haffky117185_Tobollik118988 | 74c2bb2fdba634de95a74224369ae55913a3c7b5 | [
"MIT"
] | null | null | null | framework/include/camera_node.hpp | ttobollik/CGLab_-Haffky117185_Tobollik118988 | 74c2bb2fdba634de95a74224369ae55913a3c7b5 | [
"MIT"
] | null | null | null | #ifndef CAMERA_NODE_HPP
#define CAMERA_NODE_HPP
#include <glm/glm.hpp>
#include <node.hpp>
/*
Camera Node which inherits from Node. Will be needed fro View-Projection-Matrix
*/
class CameraNode : Node {
public:
CameraNode();
CameraNode(std::shared_ptr<Node> const& parent, std::string const& name,
bool isPerspe... | 22.758621 | 79 | 0.748485 | ttobollik |
320c460107d2f87ac840f3479dd3985e2098ba87 | 778 | cpp | C++ | common_errors.cpp | heradon/shima | f54677ee1dd1c9a12368549b42b0859169bc147a | [
"Apache-2.0"
] | 3 | 2015-03-15T21:59:18.000Z | 2021-01-31T21:03:52.000Z | common_errors.cpp | heradon/shima | f54677ee1dd1c9a12368549b42b0859169bc147a | [
"Apache-2.0"
] | null | null | null | common_errors.cpp | heradon/shima | f54677ee1dd1c9a12368549b42b0859169bc147a | [
"Apache-2.0"
] | null | null | null | #include "common_errors.h"
#include <QDebug>
#include <QMessageBox>
#include <string>
#include <sstream>
void showCritical(const FMODSound::Error &exc)
{
qCritical() << exc.what() << " occured: " << exc.resultString() << " - in " << exc.functionName.c_str();
QMessageBox msgBox;
auto iter = commonFmodErr... | 28.814815 | 108 | 0.651671 | heradon |
3217aaf1d8e5068a96d1df14a378db83bd013b1f | 1,159 | cpp | C++ | implementation/intervalCos.cpp | grame-cncm/interval | 68344bb248e8f888fbf8ba978322c3cc9307b250 | [
"BSD-3-Clause"
] | null | null | null | implementation/intervalCos.cpp | grame-cncm/interval | 68344bb248e8f888fbf8ba978322c3cc9307b250 | [
"BSD-3-Clause"
] | null | null | null | implementation/intervalCos.cpp | grame-cncm/interval | 68344bb248e8f888fbf8ba978322c3cc9307b250 | [
"BSD-3-Clause"
] | null | null | null | #include <algorithm>
#include <functional>
#include <random>
#include "check.hh"
#include "interval.hh"
#include "interval_algebra.hh"
//------------------------------------------------------------------------------------------
// Interval Cos
// interval Cos(const interval& x) const;
// void testCos() const;
interv... | 27.595238 | 102 | 0.515099 | grame-cncm |
3220d73ae89e5d5c8930cbefaf6a8409d1b0c3d8 | 4,300 | cpp | C++ | functional_tests/transfer_10mb_one_way_manual_acks.cpp | brridder/nanoarq | 5aa9e5d9dda002f569aa70dcec0eded67404c44d | [
"Unlicense"
] | 1 | 2021-12-07T18:33:20.000Z | 2021-12-07T18:33:20.000Z | functional_tests/transfer_10mb_one_way_manual_acks.cpp | skyformat99/nanoarq | 167425b0a073c4e41f4d32eafc21cb1a71b186e3 | [
"Unlicense"
] | null | null | null | functional_tests/transfer_10mb_one_way_manual_acks.cpp | skyformat99/nanoarq | 167425b0a073c4e41f4d32eafc21cb1a71b186e3 | [
"Unlicense"
] | null | null | null | #include "functional_tests.h"
#include "arq_context.h"
namespace {
TEST(functional, transfer_10mb_one_way_manual_acks)
{
arq_cfg_t cfg;
cfg.segment_length_in_bytes = 220;
cfg.message_length_in_segments = 4;
cfg.retransmission_timeout = 100;
cfg.send_window_size_in_messages = 16;
cfg.recv_windo... | 36.752137 | 106 | 0.555116 | brridder |
32239c100bc2f18f7c025d54dc5bdce67caeffb2 | 5,586 | cpp | C++ | lib/Runtime/Language/ModuleNamespace.cpp | satheeshravi/ChakraCore | 3bf47ff12bf80ab06fb7ea6925ec7579985ac1f5 | [
"MIT"
] | 1 | 2021-11-07T18:56:21.000Z | 2021-11-07T18:56:21.000Z | lib/Runtime/Language/ModuleNamespace.cpp | MaxMood96/ChakraCore | 9d9fea268ce1ae6c00873fd966a6a2be048f3455 | [
"MIT"
] | null | null | null | lib/Runtime/Language/ModuleNamespace.cpp | MaxMood96/ChakraCore | 9d9fea268ce1ae6c00873fd966a6a2be048f3455 | [
"MIT"
] | 1 | 2021-09-04T23:26:57.000Z | 2021-09-04T23:26:57.000Z | //-------------------------------------------------------------------------------------------------------
// Copyright (C) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE.txt file in the project root for full license information.
//---------------------------------------------------------... | 48.573913 | 163 | 0.660043 | satheeshravi |
322641bf45209b3fb662fd17b28691fd3dc975b8 | 16,423 | hpp | C++ | NearestNeighbor/LinearSearchBest/LidarTextureDerivatives.hpp | jingtangliao/ff | d308fe62045e241a4822bb855df97ee087420d9b | [
"Apache-2.0"
] | 39 | 2015-01-01T07:59:51.000Z | 2021-10-01T18:11:46.000Z | NearestNeighbor/LinearSearchBest/LidarTextureDerivatives.hpp | jingtangliao/ff | d308fe62045e241a4822bb855df97ee087420d9b | [
"Apache-2.0"
] | 1 | 2019-04-24T09:56:15.000Z | 2019-04-24T14:45:46.000Z | NearestNeighbor/LinearSearchBest/LidarTextureDerivatives.hpp | jingtangliao/ff | d308fe62045e241a4822bb855df97ee087420d9b | [
"Apache-2.0"
] | 18 | 2015-01-11T15:10:23.000Z | 2022-02-24T20:02:10.000Z | /*=========================================================================
*
* Copyright David Doria 2012 daviddoria@gmail.com
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*... | 48.16129 | 190 | 0.721549 | jingtangliao |
3227a7eb40998dbef4398b14a70d6ae2882973e8 | 1,552 | inl | C++ | test/endian.inl | PredatorCZ/PreCore | 98f5896e35371d034e6477dd0ce9edeb4fd8d814 | [
"Apache-2.0"
] | 5 | 2019-10-17T15:52:38.000Z | 2021-08-10T18:57:32.000Z | test/endian.inl | PredatorCZ/PreCore | 98f5896e35371d034e6477dd0ce9edeb4fd8d814 | [
"Apache-2.0"
] | null | null | null | test/endian.inl | PredatorCZ/PreCore | 98f5896e35371d034e6477dd0ce9edeb4fd8d814 | [
"Apache-2.0"
] | 1 | 2021-01-31T20:37:42.000Z | 2021-01-31T20:37:42.000Z | #include "../datas/unit_testing.hpp"
#include "../datas/endian.hpp"
struct endianTest {
uint16 item0;
uint32 item1;
float item2;
uint64 item3;
double item4;
uint32 items0[3];
void SwapEndian() {
FByteswapper(item0);
FByteswapper(item1);
FByteswapper(item2);
... | 24.25 | 63 | 0.664948 | PredatorCZ |
7a8b373d21782c86de3f9ba0f1fbf1153f02a53f | 1,543 | hpp | C++ | test/test_util.hpp | uncommoncode/color_cpp | 0f9ee85b872faf77b959628cdf5ae999096e4e7f | [
"BSD-2-Clause"
] | 5 | 2016-05-30T19:57:27.000Z | 2020-12-09T13:24:49.000Z | test/test_util.hpp | uncommoncode/color_cpp | 0f9ee85b872faf77b959628cdf5ae999096e4e7f | [
"BSD-2-Clause"
] | 3 | 2016-05-30T21:52:12.000Z | 2016-06-17T05:36:12.000Z | test/test_util.hpp | uncommoncode/color_cpp | 0f9ee85b872faf77b959628cdf5ae999096e4e7f | [
"BSD-2-Clause"
] | 1 | 2020-09-05T20:06:10.000Z | 2020-09-05T20:06:10.000Z | #pragma once
#define COLOR_ASSERT_EQ(expected, actual) \
{ \
ASSERT_EQ(expected.values[0], actual.values[0]); \
... | 67.086957 | 100 | 0.329229 | uncommoncode |
7a8ebb79b89cda9b17358e0b3e63b5872e2f7390 | 1,580 | cpp | C++ | 2017-08-12/G.cpp | tangjz/Three-Investigators | 46dc9b2f0fbb4fe89b075a81feaacc33feeb1b52 | [
"MIT"
] | 3 | 2018-04-02T06:00:51.000Z | 2018-05-29T04:46:29.000Z | 2017-08-12/G.cpp | tangjz/Three-Investigators | 46dc9b2f0fbb4fe89b075a81feaacc33feeb1b52 | [
"MIT"
] | 2 | 2018-03-31T17:54:30.000Z | 2018-05-02T11:31:06.000Z | 2017-08-12/G.cpp | tangjz/Three-Investigators | 46dc9b2f0fbb4fe89b075a81feaacc33feeb1b52 | [
"MIT"
] | 2 | 2018-10-07T00:08:06.000Z | 2021-06-28T11:02:59.000Z | #include<bits/stdc++.h>
using namespace std;
#define pb push_back
#define mkp make_pair
#define fi first
#define se second
#define ll long long
#define M 1000000007
#define all(a) a.begin(), a.end()
int n;
int x[110][2], y[110][2];
double d[110][110][2][2];
double f[110][110];
double g[110][110];
int from_f[110][110],... | 22.253521 | 95 | 0.472785 | tangjz |
7a96fc623ee58acfe18d20d0a90658b729357313 | 808 | cpp | C++ | Scarlet-Additions/Scarlet-ImGui/Source/UI/ImScrollablePanelUI.cpp | Red-Scarlet/Scarlet-Series | 888c8815158f0063170a01725c3198b7aa1e1438 | [
"Apache-2.0"
] | null | null | null | Scarlet-Additions/Scarlet-ImGui/Source/UI/ImScrollablePanelUI.cpp | Red-Scarlet/Scarlet-Series | 888c8815158f0063170a01725c3198b7aa1e1438 | [
"Apache-2.0"
] | 1 | 2021-05-24T03:50:22.000Z | 2021-05-24T03:50:22.000Z | Scarlet-Additions/Scarlet-ImGui/Source/UI/ImScrollablePanelUI.cpp | Red-Scarlet/Scarlet-Series | 888c8815158f0063170a01725c3198b7aa1e1438 | [
"Apache-2.0"
] | 1 | 2021-05-23T09:59:21.000Z | 2021-05-23T09:59:21.000Z | #include "ImScrollablePanelUI.h"
#include <ImGui/imgui.h>
namespace ScarletImGui {
ImScrollablePanelUI::ImScrollablePanelUI(const String& _Name)
: m_Name(_Name)
{
}
ImScrollablePanelUI::~ImScrollablePanelUI()
{
}
void ImScrollablePanelUI::Attach(const Ref<BaseComponentUI>& _ComponentUI)
{
m_Components.... | 17.565217 | 75 | 0.725248 | Red-Scarlet |
7a9bbdb7301fa0a5923ab86d8b681f3a35f41796 | 1,053 | cpp | C++ | coroutine/test/accept_test.cpp | arsee11/easynet | 819f3604caf4441cec8e80f88e50f6074b66a077 | [
"BSD-2-Clause"
] | null | null | null | coroutine/test/accept_test.cpp | arsee11/easynet | 819f3604caf4441cec8e80f88e50f6074b66a077 | [
"BSD-2-Clause"
] | null | null | null | coroutine/test/accept_test.cpp | arsee11/easynet | 819f3604caf4441cec8e80f88e50f6074b66a077 | [
"BSD-2-Clause"
] | null | null | null | //accpet_test.cpp
#include "acceptor_co.h"
#include "event_queue_epoll.h"
#include "tcp_netpeer.h"
#include "socket.h"
#include <iostream>
using namespace arsee::net;
using namespace std;
using Acceptor =Acceptor_co4;
struct CoTask{
struct promise_type {
CoTask get_return_object() { return {}; }
std::susp... | 19.867925 | 62 | 0.638177 | arsee11 |
7aa2db13dc463604d9047fcc3372a0a0c15237b7 | 458 | cpp | C++ | 169.Majority Element.cpp | MadanParth786/LeetcodeSolutions_PracticeQuestions | 8a9c1eb88a6d5214abdb2becf2115a51e317a5c4 | [
"MIT"
] | 1 | 2022-01-19T14:25:36.000Z | 2022-01-19T14:25:36.000Z | 169.Majority Element.cpp | MadanParth786/LeetcodeSolutions_PracticeQuestions | 8a9c1eb88a6d5214abdb2becf2115a51e317a5c4 | [
"MIT"
] | null | null | null | 169.Majority Element.cpp | MadanParth786/LeetcodeSolutions_PracticeQuestions | 8a9c1eb88a6d5214abdb2becf2115a51e317a5c4 | [
"MIT"
] | null | null | null | class Solution {
public:
int majorityElement(vector<int>& nums) {
int majorityCount = nums.size()/2;
int a;
for (int num : nums) {
int count = 0;
for (int elem : nums) {
if (elem == num) {
count += 1;
}
... | 20.818182 | 45 | 0.351528 | MadanParth786 |
7aab601ea6336ccf03ae77d6c9d12ca17aeb3351 | 209 | cpp | C++ | 00Introduction/e01.cpp | CedarChennn/myC | b4de17f332788e3e578d304f2a690d2c9a07c004 | [
"Apache-2.0"
] | 2 | 2021-01-13T08:55:41.000Z | 2021-04-23T15:14:05.000Z | 00Introduction/e01.cpp | CedarChennn/myC | b4de17f332788e3e578d304f2a690d2c9a07c004 | [
"Apache-2.0"
] | null | null | null | 00Introduction/e01.cpp | CedarChennn/myC | b4de17f332788e3e578d304f2a690d2c9a07c004 | [
"Apache-2.0"
] | null | null | null | #include <iostream>
#include <vector>
int main()
{
char a{'a'};
std::cout<<a<<'\n';
int x{};
std::cin>>x;
std::cout<<"you entered "<<x<<'\n';
int y{};
std::cout<<y;
return 0;
} | 16.076923 | 40 | 0.473684 | CedarChennn |
7ab600e861b8ae41f6ce6ddd7ba667cc1af863f1 | 3,156 | cpp | C++ | src/tests/Tests/Core/Config/Query.int.cpp | krieselreihe/litr | ffaa7ecd09bfede01f5eb6edc957562363eadfc2 | [
"MIT"
] | 3 | 2020-11-26T15:46:48.000Z | 2021-08-16T11:12:48.000Z | src/tests/Tests/Core/Config/Query.int.cpp | krieselreihe/litr | ffaa7ecd09bfede01f5eb6edc957562363eadfc2 | [
"MIT"
] | 57 | 2020-09-21T08:00:29.000Z | 2022-03-31T18:46:29.000Z | src/tests/Tests/Core/Config/Query.int.cpp | krieselreihe/litr | ffaa7ecd09bfede01f5eb6edc957562363eadfc2 | [
"MIT"
] | null | null | null | #include <doctest/doctest.h>
#include "Core/Config/Query.hpp"
TEST_SUITE("Config::Query") {
TEST_CASE("GetCommand()") {
const Litr::Path path{"../../Fixtures/Config/commands-params.toml"};
const auto config{Litr::CreateRef<Litr::Config::Loader>(path)};
const Litr::Config::Query query{config};
SUBCA... | 30.640777 | 72 | 0.62706 | krieselreihe |
7ab62335f35d8843d85e1b0aa991f2487b8a5d47 | 28,229 | cpp | C++ | webkit/WebCore/storage/DatabaseTracker.cpp | s1rcheese/nintendo-3ds-internetbrowser-sourcecode | 3dd05f035e0a5fc9723300623e9b9b359be64e11 | [
"Unlicense"
] | 15 | 2016-01-05T12:43:41.000Z | 2022-03-15T10:34:47.000Z | webkit/WebCore/storage/DatabaseTracker.cpp | s1rcheese/nintendo-3ds-internetbrowser-sourcecode | 3dd05f035e0a5fc9723300623e9b9b359be64e11 | [
"Unlicense"
] | null | null | null | webkit/WebCore/storage/DatabaseTracker.cpp | s1rcheese/nintendo-3ds-internetbrowser-sourcecode | 3dd05f035e0a5fc9723300623e9b9b359be64e11 | [
"Unlicense"
] | 2 | 2020-11-30T18:36:01.000Z | 2021-02-05T23:20:24.000Z | /*
* Copyright (C) 2007, 2008 Apple Inc. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
*
* 1. Redistributions of source code must retain the above copyright
* notice, this list of c... | 34.679361 | 199 | 0.689362 | s1rcheese |
7aba32d8c898b68a1464cb0ebe141643cacb38c5 | 316 | cpp | C++ | 程序员面试金典/No_01_04.cpp | lih627/python-algorithm-templates | a61fd583e33a769b44ab758990625d3381793768 | [
"MIT"
] | 24 | 2020-03-28T06:10:25.000Z | 2021-11-23T05:01:29.000Z | 程序员面试金典/No_01_04.cpp | lih627/python-algorithm-templates | a61fd583e33a769b44ab758990625d3381793768 | [
"MIT"
] | null | null | null | 程序员面试金典/No_01_04.cpp | lih627/python-algorithm-templates | a61fd583e33a769b44ab758990625d3381793768 | [
"MIT"
] | 8 | 2020-05-18T02:43:16.000Z | 2021-05-24T18:11:38.000Z | class Solution {
public:
bool canPermutePalindrome(string s) {
unordered_map<char, int> counter;
for (auto c: s) ++counter[c];
int odd = 0;
for (auto it: counter){
if (it.second & 1) ++odd;
if (odd > 1) return false;
}
return true;
}
}; | 24.307692 | 41 | 0.5 | lih627 |
7abae8eef20f6082ce9710e004c600129d234dc6 | 5,064 | hpp | C++ | modules/base/include/base/literal_parser.hpp | aversiveplusplus/aversiveplusplus | 5f5fe9faca50197fd6207e2c816efa7e9af6c804 | [
"BSD-3-Clause"
] | 29 | 2016-01-27T09:43:44.000Z | 2020-03-12T04:16:02.000Z | modules/base/include/base/literal_parser.hpp | aversiveplusplus/aversiveplusplus | 5f5fe9faca50197fd6207e2c816efa7e9af6c804 | [
"BSD-3-Clause"
] | 20 | 2016-01-22T15:59:33.000Z | 2016-10-28T10:22:45.000Z | modules/base/include/base/literal_parser.hpp | aversiveplusplus/aversiveplusplus | 5f5fe9faca50197fd6207e2c816efa7e9af6c804 | [
"BSD-3-Clause"
] | 6 | 2016-02-11T14:09:04.000Z | 2018-03-17T00:18:35.000Z | /*
Copyright (c) 2015, Xenomorphales
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 ... | 32.670968 | 105 | 0.655608 | aversiveplusplus |
7abeb073da6e0aa8f013650568fe5af4b1ddeb32 | 200,673 | inl | C++ | 2d_samples/pmj02_1.inl | st-ario/rayme | 315c57c23f4aa4934a8a80e84e3243acd3400808 | [
"MIT"
] | 1 | 2021-12-10T23:35:04.000Z | 2021-12-10T23:35:04.000Z | 2d_samples/pmj02_1.inl | st-ario/rayme | 315c57c23f4aa4934a8a80e84e3243acd3400808 | [
"MIT"
] | null | null | null | 2d_samples/pmj02_1.inl | st-ario/rayme | 315c57c23f4aa4934a8a80e84e3243acd3400808 | [
"MIT"
] | null | null | null | {std::array<float,2>{0.51227957f, 0.744403303f},
std::array<float,2>{0.330383986f, 0.069534488f},
std::array<float,2>{0.240638316f, 0.78375572f},
std::array<float,2>{0.831437409f, 0.372116774f},
std::array<float,2>{0.943545818f, 0.926311076f},
std::array<float,2>{0.060844481f, 0.472274542f},
std::array<float,2>{0.43210... | 48.992432 | 52 | 0.734653 | st-ario |
7ac011aa5a1a707f69ef3271a340147bf3d8f89a | 16,319 | cpp | C++ | media_driver/media_driver_next/agnostic/common/vp/hal/packet/vp_render_cmd_packet.cpp | saosipov/media-driver | e280504bb3ccc429aa43f30aa76e0c990df6ccbf | [
"MIT",
"Intel",
"BSD-3-Clause"
] | null | null | null | media_driver/media_driver_next/agnostic/common/vp/hal/packet/vp_render_cmd_packet.cpp | saosipov/media-driver | e280504bb3ccc429aa43f30aa76e0c990df6ccbf | [
"MIT",
"Intel",
"BSD-3-Clause"
] | null | null | null | media_driver/media_driver_next/agnostic/common/vp/hal/packet/vp_render_cmd_packet.cpp | saosipov/media-driver | e280504bb3ccc429aa43f30aa76e0c990df6ccbf | [
"MIT",
"Intel",
"BSD-3-Clause"
] | 1 | 2021-06-10T09:27:22.000Z | 2021-06-10T09:27:22.000Z | /*
* Copyright (c) 2020, Intel Corporation
*
* Permission is hereby granted, free of charge, to any person obtaining a
* copy of this software and associated documentation files (the "Software"),
* to deal in the Software without restriction, including without limitation
* the rights to use, copy, modify, merge, publis... | 34.944325 | 155 | 0.696673 | saosipov |
7ac38b9927dd57bf958b8d875a97420457b99489 | 1,586 | hpp | C++ | test_apps/STM32Cube_FW_F4_V1.24.0/Projects/STM32F429I-Discovery/Demonstrations/TouchGFX/Gui/gui/include/gui/home_automation_screen/TemperatureSlider.hpp | hwiwonl/ACES | 9b9a6766a177c531384b863854459a7e016dbdcc | [
"NCSA"
] | null | null | null | test_apps/STM32Cube_FW_F4_V1.24.0/Projects/STM32F429I-Discovery/Demonstrations/TouchGFX/Gui/gui/include/gui/home_automation_screen/TemperatureSlider.hpp | hwiwonl/ACES | 9b9a6766a177c531384b863854459a7e016dbdcc | [
"NCSA"
] | null | null | null | test_apps/STM32Cube_FW_F4_V1.24.0/Projects/STM32F429I-Discovery/Demonstrations/TouchGFX/Gui/gui/include/gui/home_automation_screen/TemperatureSlider.hpp | hwiwonl/ACES | 9b9a6766a177c531384b863854459a7e016dbdcc | [
"NCSA"
] | null | null | null | /**
******************************************************************************
* This file is part of the TouchGFX 4.10.0 distribution.
*
* <h2><center>© Copyright (c) 2018 STMicroelectronics.
* All rights reserved.</center></h2>
*
* This software component is licensed by ST under Ultimate Libert... | 24.78125 | 80 | 0.633039 | hwiwonl |
7ac4ff22af104aeb6ef4255c21744ebdcc04a2cb | 6,613 | cpp | C++ | assignment10/wordbrainsolver.cpp | guozhonghao1994/ec602 | e8f6b61e5cdad64e9fe943fc4f61d1fc9ad85f74 | [
"Unlicense"
] | 3 | 2018-11-14T16:07:31.000Z | 2018-11-15T16:44:51.000Z | assignment10/wordbrainsolver.cpp | guozhonghao1994/BU_EC602_Assignment | e8f6b61e5cdad64e9fe943fc4f61d1fc9ad85f74 | [
"Unlicense"
] | null | null | null | assignment10/wordbrainsolver.cpp | guozhonghao1994/BU_EC602_Assignment | e8f6b61e5cdad64e9fe943fc4f61d1fc9ad85f74 | [
"Unlicense"
] | null | null | null | // Copyright 2017 Zhonghao Guo gzh1994@bu.edu
#include <algorithm>
#include <fstream>
#include <iostream>
#include <string>
#include <vector>
using std::cout;
using std::string;
using std::vector;
using std::cin;
using std::endl;
using std::sort;
class TrieNode {
public:
TrieNode* children[26] = {NULL};
};
class MyT... | 28.50431 | 125 | 0.547709 | guozhonghao1994 |
7ac902b90deb941a17be63505e7a102a9faf2bfe | 1,989 | cc | C++ | example/profile/clock.cc | AnthonyBrunasso/test_games | 31354d2bf95aae9a880e7292bc78ad8577b3f09c | [
"MIT"
] | null | null | null | example/profile/clock.cc | AnthonyBrunasso/test_games | 31354d2bf95aae9a880e7292bc78ad8577b3f09c | [
"MIT"
] | null | null | null | example/profile/clock.cc | AnthonyBrunasso/test_games | 31354d2bf95aae9a880e7292bc78ad8577b3f09c | [
"MIT"
] | 2 | 2019-11-12T23:15:18.000Z | 2020-01-15T17:49:27.000Z | #include <cstdint>
#include <cstdio>
#ifndef _WIN32
#include <sys/time.h>
#endif
#include "platform/rdtsc.h"
#include "platform/clock.cc"
#define N 50000
int
main()
{
platform::Clock timer;
#ifdef _WIN32
platform::ClockStart(&timer);
for (int i = 0; i < N; ++i) {
LARGE_INTEGER now;
QueryPerformanceCou... | 24.256098 | 89 | 0.618401 | AnthonyBrunasso |
7acfe6be8f974d4d083636547fa9e360f34e291d | 1,588 | cpp | C++ | library/src/draw/Icon.cpp | StratifyLabs/UxAPI | 4dc043b132452896ed9626038d53439b0def786a | [
"MIT"
] | null | null | null | library/src/draw/Icon.cpp | StratifyLabs/UxAPI | 4dc043b132452896ed9626038d53439b0def786a | [
"MIT"
] | null | null | null | library/src/draw/Icon.cpp | StratifyLabs/UxAPI | 4dc043b132452896ed9626038d53439b0def786a | [
"MIT"
] | null | null | null | // Copyright 2016-2021 Tyler Gilbert and Stratify Labs, Inc; see LICENSE.md
#include "ux/draw/Icon.hpp"
#include "ux/Assets.hpp"
using namespace ux::draw;
using namespace ux::sgfx;
Icon::Icon() {
m_icon_font = nullptr;
set_align_center();
set_align_middle();
}
bool Icon::resolve_font(sg_size_t h) {
if (this... | 21.753425 | 75 | 0.617128 | StratifyLabs |
7ad14861bc575b7ac2a997d7a3162496160efdfb | 13,393 | cpp | C++ | Libraries/MDStudio-SDK/Source/MDStudio/PortableCore/UI/font.cpp | dcliche/studioengine | 1a18d373b26575b040d014ae2650a1aaeb208a89 | [
"Apache-2.0"
] | null | null | null | Libraries/MDStudio-SDK/Source/MDStudio/PortableCore/UI/font.cpp | dcliche/studioengine | 1a18d373b26575b040d014ae2650a1aaeb208a89 | [
"Apache-2.0"
] | null | null | null | Libraries/MDStudio-SDK/Source/MDStudio/PortableCore/UI/font.cpp | dcliche/studioengine | 1a18d373b26575b040d014ae2650a1aaeb208a89 | [
"Apache-2.0"
] | null | null | null | //
// font.cpp
// MDStudio
//
// Created by Daniel Cliche on 2013-09-09.
// Copyright (c) 2013-2020 Daniel Cliche. All rights reserved.
//
#include "font.h"
#include "../platform.h"
// Using the STL exception library increases the
// chances that someone else using our code will corretly
// catch any exceptions ... | 36.002688 | 120 | 0.575301 | dcliche |
7ad34a435262ac731f7301c7b23be75322deb8d7 | 391 | cpp | C++ | class/friend_class/bothclass.cpp | Abhilekhgautam/Cpp-college | 3101cb061e36eee9d42226a8cfaf86ad5c695ef2 | [
"CC0-1.0"
] | 1 | 2021-07-22T08:38:25.000Z | 2021-07-22T08:38:25.000Z | class/friend_class/bothclass.cpp | Abhilekhgautam/Cpp-college | 3101cb061e36eee9d42226a8cfaf86ad5c695ef2 | [
"CC0-1.0"
] | null | null | null | class/friend_class/bothclass.cpp | Abhilekhgautam/Cpp-college | 3101cb061e36eee9d42226a8cfaf86ad5c695ef2 | [
"CC0-1.0"
] | null | null | null | #include<iostream>
using namespace std;
class B;
class A{
int x;
friend int add(A,B);
public:
A(int a = 0):x(a){}
};
class B{
int y;
friend int add(A,B);
public:
B(int b = 0):y(b){}
};
int add(A a,B b){
int sum = a.x + b.y;
return sum;
}
int main(){
A objA(5);
B objB(10);
i... | 11.5 | 32 | 0.519182 | Abhilekhgautam |
7ad5a443cce7413129e0d16069562018bdbb37f7 | 1,077 | cpp | C++ | Pdf/pdfix_sdk_example_cpp-master/src/ExtractPageData.cpp | laoola/ProjectCode | 498a66cb9274f6bb7cca0d6e6052304d61740ba2 | [
"Unlicense"
] | 1 | 2021-08-23T05:56:09.000Z | 2021-08-23T05:56:09.000Z | Pdf/pdfix_sdk_example_cpp-master/src/ExtractPageData.cpp | laoola/ProjectCode | 498a66cb9274f6bb7cca0d6e6052304d61740ba2 | [
"Unlicense"
] | null | null | null | Pdf/pdfix_sdk_example_cpp-master/src/ExtractPageData.cpp | laoola/ProjectCode | 498a66cb9274f6bb7cca0d6e6052304d61740ba2 | [
"Unlicense"
] | null | null | null | ////////////////////////////////////////////////////////////////////////////////////////////////////
// ExtractPage.cpp
// Copyright (c) 2020 Pdfix. All Rights Reserved.
////////////////////////////////////////////////////////////////////////////////////////////////////
#include "pdfixsdksamples/ExtractData.h"
names... | 32.636364 | 100 | 0.566388 | laoola |
7ad6bdb77f0d9f9913fe42a667ce5508068ab647 | 16,065 | hpp | C++ | cobs/util/string_view.hpp | karasikov/cobs | 63ba36f042c59e14f721018e68e36e20a8bf4936 | [
"MIT"
] | null | null | null | cobs/util/string_view.hpp | karasikov/cobs | 63ba36f042c59e14f721018e68e36e20a8bf4936 | [
"MIT"
] | null | null | null | cobs/util/string_view.hpp | karasikov/cobs | 63ba36f042c59e14f721018e68e36e20a8bf4936 | [
"MIT"
] | null | null | null | /*******************************************************************************
* cobs/util/string_view.hpp
*
* Copyright (c) 2019 Timo Bingmann
*
* All rights reserved. Published under the MIT License in the LICENSE file.
******************************************************************************/
#ifndef C... | 32.259036 | 80 | 0.61469 | karasikov |
7ae4a6d59d50b42e31b9ae1e5352fd8adcba6683 | 1,698 | cpp | C++ | src/engine/manager/handle.cpp | aldermann/sdl-space-shooter | 95313997522cde4f64a1a504e2d3da66a5be9612 | [
"MIT"
] | 1 | 2020-05-18T14:09:11.000Z | 2020-05-18T14:09:11.000Z | src/engine/manager/handle.cpp | aldermann/sdl-space-shooter | 95313997522cde4f64a1a504e2d3da66a5be9612 | [
"MIT"
] | null | null | null | src/engine/manager/handle.cpp | aldermann/sdl-space-shooter | 95313997522cde4f64a1a504e2d3da66a5be9612 | [
"MIT"
] | null | null | null | //
// Created by Trần Công Việt An on 26/5/20.
//
#include "game.hpp"
void GameManager::handleRender() {
Renderer *renderer = Renderer::getInstance();
renderer->clearScreen(Palette::get()->Blue);
for (GameObject *it : objectList) {
it->innerRender();
}
renderer->present();
}
void GameManager::handleDyn... | 21.769231 | 69 | 0.620141 | aldermann |
7aeed5b616075528f2a7bcca9b333ac4ce12ea93 | 1,429 | cpp | C++ | C++/LeetCode/0542.cpp | spycedcoffee/DSA | 1e559ed5251a2005cc2815438d865f0293f4cd44 | [
"MIT"
] | 4 | 2021-08-28T19:16:50.000Z | 2022-03-04T19:46:31.000Z | C++/LeetCode/0542.cpp | spycedcoffee/DSA | 1e559ed5251a2005cc2815438d865f0293f4cd44 | [
"MIT"
] | 8 | 2021-10-29T19:10:51.000Z | 2021-11-03T12:38:00.000Z | C++/LeetCode/0542.cpp | spycedcoffee/DSA | 1e559ed5251a2005cc2815438d865f0293f4cd44 | [
"MIT"
] | 4 | 2021-09-06T05:53:07.000Z | 2021-12-24T10:31:40.000Z | class Solution {
public:
vector<vector<int>> updateMatrix(vector<vector<int>>& mat) {
queue<pair<int, int>>q;
int m = mat.size();
int n = mat[0].size();
for(int i = 0; i < m; i++){
for(int j = 0; j < n; j++){
if(mat[i][j] == 0){
... | 28.019608 | 64 | 0.303009 | spycedcoffee |
7aefd18339d6617c1cf758574a924abaa3cf8845 | 3,864 | cpp | C++ | logger_test.cpp | KoyamaSohei/raft | cfbb0f17674a3514a78b2cf4c9604689e427fff1 | [
"MIT"
] | null | null | null | logger_test.cpp | KoyamaSohei/raft | cfbb0f17674a3514a78b2cf4c9604689e427fff1 | [
"MIT"
] | null | null | null | logger_test.cpp | KoyamaSohei/raft | cfbb0f17674a3514a78b2cf4c9604689e427fff1 | [
"MIT"
] | null | null | null | #include "logger.hpp"
#include <dirent.h>
#include <gtest/gtest.h>
#include <stdio.h>
#include "builder.hpp"
#define ADDR "127.0.0.1:30000"
namespace {
class logger_test : public ::testing::Test {
protected:
lmdb_raft_logger logger;
logger_test() : logger(ADDR, raft_logger_mode::init) {}
~logger_test() { log... | 26.465753 | 78 | 0.639234 | KoyamaSohei |
7af07acfbe49875b9eb239d0786a179b7790aedd | 1,060 | cpp | C++ | TopGraph/extendedpersistence/data_structure/euler_tour_subtree_query.vertex_add_subtree_sum.test.cpp | mityanony404/TopGraph | 23595ca5d3dfcd5bc5ebb771800e3fbe9a0d5eed | [
"MIT"
] | 55 | 2018-01-11T02:20:02.000Z | 2022-03-24T06:18:54.000Z | TopGraph/extendedpersistence/data_structure/euler_tour_subtree_query.vertex_add_subtree_sum.test.cpp | mityanony404/TopGraph | 23595ca5d3dfcd5bc5ebb771800e3fbe9a0d5eed | [
"MIT"
] | 10 | 2016-10-29T08:20:04.000Z | 2021-02-27T13:14:53.000Z | TopGraph/extendedpersistence/data_structure/euler_tour_subtree_query.vertex_add_subtree_sum.test.cpp | mityanony404/TopGraph | 23595ca5d3dfcd5bc5ebb771800e3fbe9a0d5eed | [
"MIT"
] | 11 | 2016-10-29T06:00:53.000Z | 2021-06-16T14:32:43.000Z | #define PROBLEM "https://judge.yosupo.jp/problem/vertex_add_subtree_sum"
#include "../data_structure/euler_tour_subtree_query.hpp"
#include "../monoids/plus.hpp"
#include "../utils/macros.hpp"
#include "../hack/fastio.hpp"
#include <vector>
using namespace std;
int main() {
int n = in<int>();
int q = in<int>()... | 25.238095 | 75 | 0.522642 | mityanony404 |
7af40bfbb7ec6c4c8b06f61ee1e67a03bf39a5de | 622 | cpp | C++ | 2021.04.14-Practice-9/Project2/Source.cpp | st021213/programming-2021-spring | d3568ff1b2dee92f94d3e9e6f9b31fff4148fdc2 | [
"Apache-2.0"
] | 1 | 2021-02-25T11:27:23.000Z | 2021-02-25T11:27:23.000Z | 2021.04.14-Practice-9/Project2/Source.cpp | st021213/programming-2021-spring | d3568ff1b2dee92f94d3e9e6f9b31fff4148fdc2 | [
"Apache-2.0"
] | null | null | null | 2021.04.14-Practice-9/Project2/Source.cpp | st021213/programming-2021-spring | d3568ff1b2dee92f94d3e9e6f9b31fff4148fdc2 | [
"Apache-2.0"
] | null | null | null | #include<iostream>
using namespace std;
class HumanData {
private:
int age;
string name;
bool isMale;
public:
HumanData(int age = 3, string name = "Bob", bool isMale = false) :
age(age), name(name), isMale(isMale) { }
int getAge() { return age; }
void setAge(int age) { this->age = age; }
};
class Student{... | 16.810811 | 67 | 0.670418 | st021213 |
7af52fc234c0d45238d6304c70e955f121af0cb8 | 2,243 | cpp | C++ | CuteEngine/Components/transform.cpp | Code0100Food/CuteEngine | 8e8500c6414b94a8be6243a6b05334a27def7516 | [
"MIT"
] | null | null | null | CuteEngine/Components/transform.cpp | Code0100Food/CuteEngine | 8e8500c6414b94a8be6243a6b05334a27def7516 | [
"MIT"
] | null | null | null | CuteEngine/Components/transform.cpp | Code0100Food/CuteEngine | 8e8500c6414b94a8be6243a6b05334a27def7516 | [
"MIT"
] | null | null | null | #include "transform.h"
#include <QPushButton>
#include <QVBoxLayout>
#include <iostream>
#include <QGridLayout>
#include <QDoubleSpinBox>
#include <QLabel>
Transform::Transform() : Component()
{
type = COMPONENT_TYPE::COMPONENT_TRANSFORM;
//Data initialization
transform_matrix.setToIdentity();
}
Transfor... | 22.887755 | 154 | 0.72403 | Code0100Food |
bb070aaf7249a4811aae7c2f6c824fe4e1bc0699 | 340 | cpp | C++ | Websites/Codeforces/460A.cpp | justaname94/Algorithms | 4c9ec4119b0d92d5889f85b89fcb24f885a82373 | [
"MIT"
] | null | null | null | Websites/Codeforces/460A.cpp | justaname94/Algorithms | 4c9ec4119b0d92d5889f85b89fcb24f885a82373 | [
"MIT"
] | null | null | null | Websites/Codeforces/460A.cpp | justaname94/Algorithms | 4c9ec4119b0d92d5889f85b89fcb24f885a82373 | [
"MIT"
] | null | null | null | #include <iostream>
using namespace std;
int main() {
int socks, daysToBuy;
cin >> socks >> daysToBuy;
int day = 1;
int socksUsed = 0;
while (socks >= 1) {
socks--;
socksUsed++;
if (day % daysToBuy == 0)
socks++;
day++;
}
cout << socksUsed << en... | 16.190476 | 33 | 0.485294 | justaname94 |
bb07aa463aaabd194675495cddc4b11b2a39fc8e | 1,033 | cpp | C++ | checkCpuid.cpp | swap612/Thesis | 6a194605f2630b02ae262e5c81dd824ca7fc9eb7 | [
"MIT"
] | null | null | null | checkCpuid.cpp | swap612/Thesis | 6a194605f2630b02ae262e5c81dd824ca7fc9eb7 | [
"MIT"
] | 4 | 2019-07-08T11:16:11.000Z | 2019-11-26T06:16:13.000Z | checkCpuid.cpp | swap612/Thesis | 6a194605f2630b02ae262e5c81dd824ca7fc9eb7 | [
"MIT"
] | null | null | null | /* Task 3: Write C/C++ program to check if CPUID supported */
#include<iostream>
using namespace std;
#define CPUID_BIT 21
bool checkCpuidSupport(){
// expFlag - expected value of flag, modflag - modified flag
uint64_t expFlag, modFlag, setbitmask = (1LL << CPUID_BIT); // make 1 at bit21 position
asm vol... | 27.918919 | 91 | 0.512101 | swap612 |
bb0d72b096152d75c15341d4741f96c921e4dfc6 | 2,893 | cpp | C++ | 6. Tree/binaryTree.cpp | huangjiayu-zju/PAT-A | ecb07409727c56d556a5af1b201158bab0d0d2e8 | [
"MIT"
] | null | null | null | 6. Tree/binaryTree.cpp | huangjiayu-zju/PAT-A | ecb07409727c56d556a5af1b201158bab0d0d2e8 | [
"MIT"
] | null | null | null | 6. Tree/binaryTree.cpp | huangjiayu-zju/PAT-A | ecb07409727c56d556a5af1b201158bab0d0d2e8 | [
"MIT"
] | null | null | null | #include<cstdio>
#include<queue>
using namespace std;
struct Node{
int data;//数据域
int layer; //层次遍历中记录每个节点所处层次
Node *lchild;//指向左子树根节点的指针
Node *rchild;//指向右子树根节点的指针
};
Node *root = NULL;
//新建结点
Node* newNode(int v){
Node *node = new Node;//申请一个node型变量的地址空间
node->data = v;
node->lchild = no... | 23.330645 | 89 | 0.568614 | huangjiayu-zju |
bb12827ba5ee8bf9a51ccaa38679ab11a95826b3 | 12,126 | cpp | C++ | contracts/tests/test_wps.cpp | kesar/wps-backend | a5749370ec649ee8498c211703b73ead80426ab2 | [
"MIT"
] | null | null | null | contracts/tests/test_wps.cpp | kesar/wps-backend | a5749370ec649ee8498c211703b73ead80426ab2 | [
"MIT"
] | null | null | null | contracts/tests/test_wps.cpp | kesar/wps-backend | a5749370ec649ee8498c211703b73ead80426ab2 | [
"MIT"
] | null | null | null | #include "test.hpp"
/*
struct PROPOSAL_STATUS_T {
const static uint8_t PENDING = 1;
const static uint8_t REJECTED = 2;
const static uint8_t ON_VOTE = 3;
const static uint8_t CHECK_VOTE = 4; // check count of votes
const static uint8_t CHECKED_VOTE = 5; // checked count of votes by platform
... | 36.305389 | 171 | 0.63805 | kesar |
bb1acf7b9fd5166443addab2b196185624228fb5 | 13,641 | cpp | C++ | logos/node/websocket.cpp | LogosNetwork/logos-core | 6b155539a734efefb8f649a761d044b5f267a51a | [
"BSD-2-Clause"
] | 3 | 2020-01-17T18:05:19.000Z | 2021-12-29T04:21:59.000Z | logos/node/websocket.cpp | LogosNetwork/logos-core | 6b155539a734efefb8f649a761d044b5f267a51a | [
"BSD-2-Clause"
] | null | null | null | logos/node/websocket.cpp | LogosNetwork/logos-core | 6b155539a734efefb8f649a761d044b5f267a51a | [
"BSD-2-Clause"
] | 2 | 2020-12-22T05:51:53.000Z | 2021-06-08T00:27:46.000Z | #include <logos/node/node.hpp>
#include <logos/node/websocket.hpp>
#include <boost/algorithm/string.hpp>
#include <boost/property_tree/json_parser.hpp>
#include <algorithm>
#include <chrono>
template<ConsensusType CT>
logos::websocket::message logos::websocket::block_confirm_message_builder::build (const PostCommitte... | 28.657563 | 145 | 0.681255 | LogosNetwork |
bb2628c05061cf5d6b87fcbc859518778dd04e7b | 475 | cpp | C++ | IoT_BBQ_STM32/Tasks/task_display.cpp | gojimmypi/IoT_BBQ | 0928f345fa53f3ebabc53c452f5f5a3e1c581e02 | [
"MIT"
] | 5 | 2016-07-10T14:49:45.000Z | 2022-02-20T16:45:24.000Z | IoT_BBQ_STM32/Tasks/task_display.cpp | gojimmypi/IoT_BBQ | 0928f345fa53f3ebabc53c452f5f5a3e1c581e02 | [
"MIT"
] | null | null | null | IoT_BBQ_STM32/Tasks/task_display.cpp | gojimmypi/IoT_BBQ | 0928f345fa53f3ebabc53c452f5f5a3e1c581e02 | [
"MIT"
] | null | null | null | //
//
//
#include "task_display.h"
#include <stm32l4xx_hal.h>
#include "../SSD1306/ssd1306.h"
#include <SSD1306/SSD1306_demo.h> // TODO we probably don't actually want the demo in the final product, but perhaps implement a self-test?
#ifdef __cplusplus
extern "C" {
#endif
int task_display_VERSION() {
... | 15.833333 | 139 | 0.604211 | gojimmypi |
bb26c444a590cdc9a7544425577a862188203d99 | 2,274 | hpp | C++ | graphical-system/include/Frame.hpp | lucaspbordignon/computer-graphics | 75c6b3a0bbb18379491db42018f0d5595264f49b | [
"MIT"
] | null | null | null | graphical-system/include/Frame.hpp | lucaspbordignon/computer-graphics | 75c6b3a0bbb18379491db42018f0d5595264f49b | [
"MIT"
] | null | null | null | graphical-system/include/Frame.hpp | lucaspbordignon/computer-graphics | 75c6b3a0bbb18379491db42018f0d5595264f49b | [
"MIT"
] | null | null | null | #ifndef WINDOW_HPP
#define WINDOW_HPP
#include "Object.hpp"
#include "Edge.hpp"
class Frame : public Object {
public:
Frame() : Object("Window", POLYGON)
{
add_coordinates(-1, -1, WINDOW);
add_coordinates(-1, 1, WINDOW);
add_coordinates(1, -1, WINDOW);
... | 29.153846 | 66 | 0.477573 | lucaspbordignon |
bb2e4b805edf2d73feaf224008e847b257f37d0b | 1,526 | cpp | C++ | SDK/Wrapper/Message/PongMessage.cpp | hejianhui/Elastos.ELA.SPV.Cpp | 6c3337d091e4cfa9f6dbabaa18526565ccee4e0b | [
"MIT"
] | null | null | null | SDK/Wrapper/Message/PongMessage.cpp | hejianhui/Elastos.ELA.SPV.Cpp | 6c3337d091e4cfa9f6dbabaa18526565ccee4e0b | [
"MIT"
] | null | null | null | SDK/Wrapper/Message/PongMessage.cpp | hejianhui/Elastos.ELA.SPV.Cpp | 6c3337d091e4cfa9f6dbabaa18526565ccee4e0b | [
"MIT"
] | 1 | 2018-08-02T07:58:30.000Z | 2018-08-02T07:58:30.000Z | // Copyright (c) 2012-2018 The Elastos Open Source Project
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include <BRArray.h>
#include <sys/time.h>
#include <BRPeerMessages.h>
#include "PongMessage.h"
#include "Log.h"
namesp... | 26.77193 | 101 | 0.644823 | hejianhui |
bb305148748750289e63dba784356a0a10f85022 | 2,171 | cpp | C++ | codeforces/D - Kay and Eternity/Runtime error on test 3.cpp | kzvd4729/Problem-Solving | 13b105e725a4c2f8db7fecc5d7a8f932b9fef4ab | [
"MIT"
] | 1 | 2022-02-11T16:55:36.000Z | 2022-02-11T16:55:36.000Z | codeforces/D - Kay and Eternity/Runtime error on test 3.cpp | kzvd4729/Problem-Solving | 13b105e725a4c2f8db7fecc5d7a8f932b9fef4ab | [
"MIT"
] | null | null | null | codeforces/D - Kay and Eternity/Runtime error on test 3.cpp | kzvd4729/Problem-Solving | 13b105e725a4c2f8db7fecc5d7a8f932b9fef4ab | [
"MIT"
] | null | null | null | /****************************************************************************************
* @author: kzvd4729 created: Mar/23/2020 16:46
* solution_verdict: Runtime error on test 3 language: GNU C++14
* run... | 28.565789 | 111 | 0.45509 | kzvd4729 |
7d6ad4a8dab19035b1f058b08e88c92fa0897113 | 1,655 | hpp | C++ | S3DR/lib/src/model/model_manager.hpp | tdenis8/S3DR | fb8f4c0c98b5571abb12a51e03229978115b099b | [
"MIT"
] | 1 | 2019-07-10T04:25:45.000Z | 2019-07-10T04:25:45.000Z | S3DR/lib/src/model/model_manager.hpp | tdenis8/S3DR | fb8f4c0c98b5571abb12a51e03229978115b099b | [
"MIT"
] | null | null | null | S3DR/lib/src/model/model_manager.hpp | tdenis8/S3DR | fb8f4c0c98b5571abb12a51e03229978115b099b | [
"MIT"
] | null | null | null | #ifndef _MODEL_HANDLER_HPP_
#define _MODEL_HANDLER_HPP_
#include "model.hpp"
#include "scene_object.hpp"
#include "material_shell_object.hpp"
#include "texture_shell_object.hpp"
#include "line_object.hpp"
#include "point_object.hpp"
#include "text_object.hpp"
#include <string>
#include <memory>
class ModelManager
{
... | 34.479167 | 93 | 0.743807 | tdenis8 |
7d75040c4807ef5c861058f04fd91b01b60aaf61 | 22,982 | cxx | C++ | Source/VTKExtensions/Meshing/vtkCMBMeshTerrainWithArcs.cxx | developkits/cmb | caaf9cd7ffe0b7c1ac3be9edbce0f9430068d2cb | [
"BSD-3-Clause"
] | null | null | null | Source/VTKExtensions/Meshing/vtkCMBMeshTerrainWithArcs.cxx | developkits/cmb | caaf9cd7ffe0b7c1ac3be9edbce0f9430068d2cb | [
"BSD-3-Clause"
] | null | null | null | Source/VTKExtensions/Meshing/vtkCMBMeshTerrainWithArcs.cxx | developkits/cmb | caaf9cd7ffe0b7c1ac3be9edbce0f9430068d2cb | [
"BSD-3-Clause"
] | null | null | null | //=========================================================================
// Copyright (c) Kitware, Inc.
// All rights reserved.
// See LICENSE.txt for details.
//
// This software is distributed WITHOUT ANY WARRANTY; without even
// the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
// PURPOSE... | 30.04183 | 100 | 0.680054 | developkits |
7d79365e7451c109c2d43d443abb47705242d5a4 | 1,584 | cpp | C++ | Akel/src/Core/gpu.cpp | NurissGames/Akel | 9580f7eb1d4a0dbe20459bd83a5e681a040c29de | [
"MIT"
] | 3 | 2021-12-01T17:59:30.000Z | 2022-01-22T20:29:08.000Z | Akel/src/Core/gpu.cpp | NurissGames/Akel | 9580f7eb1d4a0dbe20459bd83a5e681a040c29de | [
"MIT"
] | null | null | null | Akel/src/Core/gpu.cpp | NurissGames/Akel | 9580f7eb1d4a0dbe20459bd83a5e681a040c29de | [
"MIT"
] | 1 | 2021-12-01T17:59:32.000Z | 2021-12-01T17:59:32.000Z | // This file is a part of Akel
// Authors : @kbz_8
// Created : 23/04/2021
// Updated : 26/06/2021
#include <Core/core.h>
#include <Platform/platform.h>
#include <Utils/utils.h>
namespace Ak::Core
{
GPU::GPU()
{
vendors[0x1002] = "AMD";
vendors[0x1010] = "ImgTec";
vendors[0x10DE] = ... | 25.142857 | 110 | 0.61553 | NurissGames |
7d79836d32a02e6baa117800da3105ca37c50c7e | 8,895 | cpp | C++ | dlk/python/dlk/templates/src/func/impl/arm_neon/pack_16bit.cpp | tsawada/blueoil | 745a2eb25e090e0ff9af547c1a11b538bf7e5c8a | [
"Apache-2.0"
] | null | null | null | dlk/python/dlk/templates/src/func/impl/arm_neon/pack_16bit.cpp | tsawada/blueoil | 745a2eb25e090e0ff9af547c1a11b538bf7e5c8a | [
"Apache-2.0"
] | null | null | null | dlk/python/dlk/templates/src/func/impl/arm_neon/pack_16bit.cpp | tsawada/blueoil | 745a2eb25e090e0ff9af547c1a11b538bf7e5c8a | [
"Apache-2.0"
] | null | null | null | /* Copyright 2019 The Blueoil 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 applicable law or agre... | 45.152284 | 101 | 0.679258 | tsawada |
7d79b1eea2f28852b702f614dd1e1b27abf9d7dc | 10,379 | cpp | C++ | Pod/Classes/algorithms/rhythm/tempotap.cpp | jbloit/iosEssentia | 785ba29e8178942b396575dd3872bdf3d5d63cd5 | [
"MIT"
] | null | null | null | Pod/Classes/algorithms/rhythm/tempotap.cpp | jbloit/iosEssentia | 785ba29e8178942b396575dd3872bdf3d5d63cd5 | [
"MIT"
] | null | null | null | Pod/Classes/algorithms/rhythm/tempotap.cpp | jbloit/iosEssentia | 785ba29e8178942b396575dd3872bdf3d5d63cd5 | [
"MIT"
] | null | null | null | /*
* Copyright (C) 2006-2013 Music Technology Group - Universitat Pompeu Fabra
*
* This file is part of Essentia
*
* Essentia is free software: you can redistribute it and/or modify it under
* the terms of the GNU Affero General Public License as published by the Free
* Software Foundation (FSF), either version... | 35.913495 | 658 | 0.660854 | jbloit |
7d7ac3b42039d164789981a65b6981c113545703 | 1,909 | cpp | C++ | directClockDescriptor.cpp | mark0n/generateFRUStorage | 0642937b8c4349aae4790d4bd5301b989960bee4 | [
"MIT"
] | null | null | null | directClockDescriptor.cpp | mark0n/generateFRUStorage | 0642937b8c4349aae4790d4bd5301b989960bee4 | [
"MIT"
] | null | null | null | directClockDescriptor.cpp | mark0n/generateFRUStorage | 0642937b8c4349aae4790d4bd5301b989960bee4 | [
"MIT"
] | null | null | null | #include "directClockDescriptor.hpp"
#include <stdexcept>
#include <iostream>
const uint8_t reserved = 0;
directClockDescriptor::directClockDescriptor(directPllConnection pll, directClockAsymmetricMatch match, uint8_t fam, clockAccuracyLevelAcronym acc, uint32_t freq, uint32_t min, uint32_t max)
{
if(fam > 2 && fam... | 30.301587 | 190 | 0.650079 | mark0n |
7d8190db69322f7d08f7af2270183247ac7d8e1e | 359 | cpp | C++ | 1200 < Rating <= 1500/1459B - Move and Turn.cpp | meraki-mk/CODEFORCES-solved | 26635cec99499affe5a482d8f6ed5a474559dcce | [
"MIT"
] | null | null | null | 1200 < Rating <= 1500/1459B - Move and Turn.cpp | meraki-mk/CODEFORCES-solved | 26635cec99499affe5a482d8f6ed5a474559dcce | [
"MIT"
] | null | null | null | 1200 < Rating <= 1500/1459B - Move and Turn.cpp | meraki-mk/CODEFORCES-solved | 26635cec99499affe5a482d8f6ed5a474559dcce | [
"MIT"
] | null | null | null | // Codeforces Round #691 (Div. 2)
// Problem Link: https://codeforces.com/problemset/problem/1459/B
// Problem tags: dp math *1300
// CODE
#include <iostream>
#include <cmath>
using namespace std;
int main()
{
int n;
cin >> n;
if(n%2 == 0)
cout << pow((n/2)+1, 2);
else
cout ... | 17.095238 | 65 | 0.543175 | meraki-mk |
7d891a9264d55f30056c3ca9c576dfde1572d1c1 | 12,727 | cpp | C++ | app/Xi-PgService/source/PaymentServiceJsonRpcMessages.cpp | ElSamaritan/blockchain-OLD | ca3422c8873613226db99b7e6735c5ea1fac9f1a | [
"Apache-2.0"
] | null | null | null | app/Xi-PgService/source/PaymentServiceJsonRpcMessages.cpp | ElSamaritan/blockchain-OLD | ca3422c8873613226db99b7e6735c5ea1fac9f1a | [
"Apache-2.0"
] | null | null | null | app/Xi-PgService/source/PaymentServiceJsonRpcMessages.cpp | ElSamaritan/blockchain-OLD | ca3422c8873613226db99b7e6735c5ea1fac9f1a | [
"Apache-2.0"
] | null | null | null | // Copyright (c) 2012-2017, The CryptoNote developers, The Bytecoin developers
// Copyright (c) 2014-2018, The Monero Project
// Copyright (c) 2018, The TurtleCoin Developers
//
// Please see the included LICENSE file for more information.
#include "PaymentServiceJsonRpcMessages.h"
#include <Xi/Global.hh>
#include "... | 37.991045 | 120 | 0.782667 | ElSamaritan |
7d8f50139612de0906eb48fdaaa837791ca2d7d6 | 2,299 | hpp | C++ | libraries/protocol/include/graphene/protocol/fee_schedule.hpp | EDCBlockchain/blockchain | 41c74b981658d79d770b075191cfb14faeb84dab | [
"MIT"
] | 12 | 2019-10-31T13:24:21.000Z | 2021-12-29T22:02:22.000Z | libraries/protocol/include/graphene/protocol/fee_schedule.hpp | DONOVA28/blockchain | 41c74b981658d79d770b075191cfb14faeb84dab | [
"MIT"
] | null | null | null | libraries/protocol/include/graphene/protocol/fee_schedule.hpp | DONOVA28/blockchain | 41c74b981658d79d770b075191cfb14faeb84dab | [
"MIT"
] | 11 | 2019-07-24T12:46:29.000Z | 2021-11-27T04:41:48.000Z | // see LICENSE.txt
#pragma once
#include <graphene/protocol/operations.hpp>
namespace graphene { namespace protocol {
template<typename T> struct transform_to_fee_parameters;
template<typename ...T>
struct transform_to_fee_parameters<fc::static_variant<T...>>
{
using type = fc::static_variant< type... | 33.808824 | 109 | 0.681601 | EDCBlockchain |
7d913757509fd34031294c2bb8e8bd32cfb69d9e | 4,063 | hpp | C++ | include/cereal/types/vector.hpp | VaderY/cereal | b03f237713a7e4aab18c7d9150fb3c9a5e92ea3a | [
"BSD-3-Clause"
] | null | null | null | include/cereal/types/vector.hpp | VaderY/cereal | b03f237713a7e4aab18c7d9150fb3c9a5e92ea3a | [
"BSD-3-Clause"
] | null | null | null | include/cereal/types/vector.hpp | VaderY/cereal | b03f237713a7e4aab18c7d9150fb3c9a5e92ea3a | [
"BSD-3-Clause"
] | null | null | null | /*! \file vector.hpp
\brief Support for types found in \<vector\>
\ingroup STLSupport */
/*
Copyright (c) 2014, Randolph Voorhies, Shane Grant
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are m... | 39.067308 | 112 | 0.710559 | VaderY |
7d99df111f52ab1120be11b9eccdcd776fed8aa1 | 792 | hpp | C++ | HN_XML/HN_Document/HN_Document.hpp | Jusdetalent/JT_Network | 9af82a158be0fea1dbe2bcbc32bfac5ab54cdeba | [
"MIT"
] | 1 | 2019-09-01T05:10:01.000Z | 2019-09-01T05:10:01.000Z | HN_XML/HN_Document/HN_Document.hpp | Jusdetalent/JT_Network | 9af82a158be0fea1dbe2bcbc32bfac5ab54cdeba | [
"MIT"
] | null | null | null | HN_XML/HN_Document/HN_Document.hpp | Jusdetalent/JT_Network | 9af82a158be0fea1dbe2bcbc32bfac5ab54cdeba | [
"MIT"
] | null | null | null | #ifndef HN_DOCUMENT_HPP_INCLUDED
#define HN_DOCUMENT_HPP_INCLUDED
#include "../HN_Node/HN_Node.hpp"
#include "../HN_Node/HN_FNode.hpp"
//namespace hnapi
//{
//namespace webkit
//{
class HN_XMLDocument
{
public:
... | 24.75 | 54 | 0.429293 | Jusdetalent |
7d9f47f411d4f8b3ed58ea7362ac87b8aad8f7af | 3,193 | hpp | C++ | libraries/ChronoAPI/include/chrono/ClockTime.hpp | StratifyLabs/API | ca0bf670653b78da43ad416cd1c5e977c8549eeb | [
"MIT"
] | 7 | 2020-12-15T14:27:02.000Z | 2022-03-23T12:00:13.000Z | libraries/ChronoAPI/include/chrono/ClockTime.hpp | StratifyLabs/API | ca0bf670653b78da43ad416cd1c5e977c8549eeb | [
"MIT"
] | null | null | null | libraries/ChronoAPI/include/chrono/ClockTime.hpp | StratifyLabs/API | ca0bf670653b78da43ad416cd1c5e977c8549eeb | [
"MIT"
] | 1 | 2021-01-06T14:51:51.000Z | 2021-01-06T14:51:51.000Z | // Copyright 2011-2021 Tyler Gilbert and Stratify Labs, Inc; see LICENSE.md
#ifndef CHRONO_API_CHRONO_CLOCK_TIME_HPP_
#define CHRONO_API_CHRONO_CLOCK_TIME_HPP_
#include <sdk/types.h>
#include <ctime>
#include "DateTime.hpp"
#include "var/StackString.hpp"
namespace chrono {
class ClockTime {
public:
enum class C... | 27.765217 | 96 | 0.711243 | StratifyLabs |
7da0491e8ebccc62b6d02ceea55f6ff8e5851337 | 19,619 | cpp | C++ | src/extern/inventor/lib/database/src/so/nodes/SoIndexedShape.cpp | OpenXIP/xip-libraries | 9f0fef66038b20ff0c81c089d7dd0038e3126e40 | [
"Apache-2.0"
] | 2 | 2020-05-21T07:06:07.000Z | 2021-06-28T02:14:34.000Z | src/extern/inventor/lib/database/src/so/nodes/SoIndexedShape.cpp | OpenXIP/xip-libraries | 9f0fef66038b20ff0c81c089d7dd0038e3126e40 | [
"Apache-2.0"
] | null | null | null | src/extern/inventor/lib/database/src/so/nodes/SoIndexedShape.cpp | OpenXIP/xip-libraries | 9f0fef66038b20ff0c81c089d7dd0038e3126e40 | [
"Apache-2.0"
] | 6 | 2016-03-21T19:53:18.000Z | 2021-06-08T18:06:03.000Z | /*
*
* Copyright (C) 2000 Silicon Graphics, Inc. All Rights Reserved.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your opti... | 28.147776 | 77 | 0.625414 | OpenXIP |
7da954dd5d5df63b024f4fc695a5bed67f816d95 | 6,179 | cpp | C++ | tools/generated/fix2xml/test_fix2xml_ConfirmationAck.cpp | abdelkaderamar/fix2xml | fa781b747a8e40ed4c2d3dee8294fb51654f7428 | [
"MIT"
] | 1 | 2019-09-26T12:08:19.000Z | 2019-09-26T12:08:19.000Z | tools/generated/fix2xml/test_fix2xml_ConfirmationAck.cpp | abdelkaderamar/fix2xml | fa781b747a8e40ed4c2d3dee8294fb51654f7428 | [
"MIT"
] | null | null | null | tools/generated/fix2xml/test_fix2xml_ConfirmationAck.cpp | abdelkaderamar/fix2xml | fa781b747a8e40ed4c2d3dee8294fb51654f7428 | [
"MIT"
] | 1 | 2020-12-11T04:11:44.000Z | 2020-12-11T04:11:44.000Z | #include <gtest/gtest.h>
#include "converter/fixml2fix_converter.hxx"
#include "converter/xml_element_helper.hxx"
#include "converter/fix_helper.hxx"
#include "util/fix_env.hxx"
#include "tools/test_util.hxx"
#include <boost/log/trivial.hpp>
#include <quickfix/fix50sp2/ConfirmationAck.h>
#include <list>
#include <s... | 45.433824 | 118 | 0.690079 | abdelkaderamar |
7dab52d0244ceb0d4f5d7cdda201fb350de36bfb | 71 | cpp | C++ | light_source.cpp | TheFlyingPiano99/Optical-grid | 1bd7426311e13ae6800da46915ab4d8620c04754 | [
"MIT"
] | 1 | 2020-06-21T21:41:53.000Z | 2020-06-21T21:41:53.000Z | light_source.cpp | TheFlyingPiano99/Optical-grid | 1bd7426311e13ae6800da46915ab4d8620c04754 | [
"MIT"
] | null | null | null | light_source.cpp | TheFlyingPiano99/Optical-grid | 1bd7426311e13ae6800da46915ab4d8620c04754 | [
"MIT"
] | null | null | null | //
// Created by simon on 2020. 06. 18..
//
#include "light_source.h"
| 11.833333 | 37 | 0.619718 | TheFlyingPiano99 |
7db1f88277c922a7d9d4107b192833a130d895ab | 4,485 | cpp | C++ | Userland/Libraries/LibMarkdown/CodeBlock.cpp | Anon1428/serenity | 0daf5cc434e7a998da15330bd8b4d46ae1759485 | [
"BSD-2-Clause"
] | 2 | 2022-02-16T02:12:38.000Z | 2022-02-20T18:40:41.000Z | Userland/Libraries/LibMarkdown/CodeBlock.cpp | Anon1428/serenity | 0daf5cc434e7a998da15330bd8b4d46ae1759485 | [
"BSD-2-Clause"
] | null | null | null | Userland/Libraries/LibMarkdown/CodeBlock.cpp | Anon1428/serenity | 0daf5cc434e7a998da15330bd8b4d46ae1759485 | [
"BSD-2-Clause"
] | null | null | null | /*
* Copyright (c) 2019-2020, Sergey Bugaev <bugaevc@serenityos.org>
* Copyright (c) 2022, Peter Elliott <pelliott@serenityos.org>
*
* SPDX-License-Identifier: BSD-2-Clause
*/
#include <AK/StringBuilder.h>
#include <LibJS/MarkupGenerator.h>
#include <LibMarkdown/CodeBlock.h>
#include <LibMarkdown/Visitor.h>
#incl... | 23.730159 | 99 | 0.59019 | Anon1428 |
7db60e0ec06737ca0e463e521b3484271d7bb816 | 9,085 | ipp | C++ | lib/include/cppgui/Root_widget.ipp | JPGygax68/libCppGUI | 9484b6b4e544a522019276fcd49eb8495b04e60d | [
"Apache-2.0"
] | 2 | 2017-03-28T14:11:47.000Z | 2021-05-31T07:31:43.000Z | lib/include/cppgui/Root_widget.ipp | JPGygax68/libCppGUI | 9484b6b4e544a522019276fcd49eb8495b04e60d | [
"Apache-2.0"
] | null | null | null | lib/include/cppgui/Root_widget.ipp | JPGygax68/libCppGUI | 9484b6b4e544a522019276fcd49eb8495b04e60d | [
"Apache-2.0"
] | 1 | 2021-05-31T07:31:44.000Z | 2021-05-31T07:31:44.000Z | #pragma once
/* libCppGUI - A GUI library for C++11/14
Copyright 2016 Hans-Peter Gygax
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/LICE... | 28.126935 | 153 | 0.61508 | JPGygax68 |
7db7c371bd58f15b70ed08e5e3fe18118fd5c826 | 12,035 | cpp | C++ | DicomTest/dicom_test/data/string_converter/detail/CharacterMapping.cpp | drleq/CppDicom | e320fad8414fabfb51c5eb80964f8b6def578247 | [
"MIT"
] | null | null | null | DicomTest/dicom_test/data/string_converter/detail/CharacterMapping.cpp | drleq/CppDicom | e320fad8414fabfb51c5eb80964f8b6def578247 | [
"MIT"
] | null | null | null | DicomTest/dicom_test/data/string_converter/detail/CharacterMapping.cpp | drleq/CppDicom | e320fad8414fabfb51c5eb80964f8b6def578247 | [
"MIT"
] | null | null | null | #include "dicomtest_pch.h"
#include "dicom_test/data/string_converter/detail/CharacterMapping.h"
#include "dicom/data/string_converter/detail/utf8_helpers.h"
#include <iostream>
#include "rapidxml.hpp"
#include "rapidxml_utils.hpp"
using namespace std;
namespace {
void SetUTF8(uint32_t utf32, std:... | 35.606509 | 120 | 0.468467 | drleq |
7dbdc4f87d6256f0f3cab1a779727b3a56718ec6 | 889 | cpp | C++ | 333.cpp | Arafatk/codeforces | 314e8aa64c0b678866dab0d7a7694b9d30dc7f51 | [
"MIT"
] | null | null | null | 333.cpp | Arafatk/codeforces | 314e8aa64c0b678866dab0d7a7694b9d30dc7f51 | [
"MIT"
] | null | null | null | 333.cpp | Arafatk/codeforces | 314e8aa64c0b678866dab0d7a7694b9d30dc7f51 | [
"MIT"
] | null | null | null | #include <iostream>
#include <cstdio>
#include <cmath>
typedef long long ll;
using namespace std;
const int nmax = 131072, inf = 1 << 29;
int n, a[nmax], l[nmax], r[nmax];
ll ans;
int main()
{
int i, j, q, u, v;
cin >> n >> q;
for (i = 0; i < n; i++)
scanf("%d", a + i);
for (i = n - 1; i; i--)
a[i] = abs(a[i] -... | 18.914894 | 67 | 0.4027 | Arafatk |
7dc38065d071f8b3c0e0a3a28f8eec75458cdeb3 | 1,564 | cpp | C++ | sources/Line.cpp | usernameHed/Worms | 35ee28362b936b46d24e7c911a46a2cfd615128b | [
"MIT"
] | null | null | null | sources/Line.cpp | usernameHed/Worms | 35ee28362b936b46d24e7c911a46a2cfd615128b | [
"MIT"
] | null | null | null | sources/Line.cpp | usernameHed/Worms | 35ee28362b936b46d24e7c911a46a2cfd615128b | [
"MIT"
] | null | null | null | #include "Line.hh"
#define _USE_MATH_DEFINES
#include <math.h>
Line::Line(std::vector<std::vector<Mapping> > &tmpMap)
: Rasterization(tmpMap)
{
this->opti = new MapOptimizor(tmpMap);
}
Line::~Line()
{
}
void Line::drawLine(int x1, int y1, int x2, int y2, unsigned int size, const Mapping &mapping, const TypeCons... | 23.343284 | 121 | 0.529412 | usernameHed |
7dd82bcadafc37b7b5e8b06bc964ab5bf174ebce | 1,053 | hpp | C++ | PolyEngine/Engine/Src/Physics2D/Physics2DColliders.hpp | PiotrMoscicki/PolyEngine | 573c453e9d1ae0a351ad14410595ff844e3b4620 | [
"MIT"
] | 65 | 2017-04-04T20:33:44.000Z | 2019-12-02T23:06:58.000Z | PolyEngine/Engine/Src/Physics2D/Physics2DColliders.hpp | PiotrMoscicki/PolyEngine | 573c453e9d1ae0a351ad14410595ff844e3b4620 | [
"MIT"
] | 46 | 2017-04-21T12:26:38.000Z | 2019-12-15T05:31:47.000Z | PolyEngine/Engine/Src/Physics2D/Physics2DColliders.hpp | PiotrMoscicki/PolyEngine | 573c453e9d1ae0a351ad14410595ff844e3b4620 | [
"MIT"
] | 51 | 2017-04-12T10:53:32.000Z | 2019-11-20T13:05:54.000Z | #pragma once
#include <Defines.hpp>
#include <ECS/ComponentBase.hpp>
class b2PolygonShape;
class b2CircleShape;
namespace Poly
{
class ENGINE_DLLEXPORT Box2DColliderComponent : public ComponentBase
{
public:
RTTI_DECLARE_COMPONENT(::Poly::Box2DColliderComponent) { NO_RTTI_PROPERTY(); }
Box2DColliderComponent... | 23.931818 | 83 | 0.780627 | PiotrMoscicki |
7de1187e8618ee0f55042762da487fd5cdad6c06 | 8,103 | hpp | C++ | include/filtering/filter_bilateral_2dg.hpp | ecarpita93/HPC_projet_1 | a2c00e056c03227711c43cf2ad23d75c6afbe698 | [
"Xnet",
"X11"
] | null | null | null | include/filtering/filter_bilateral_2dg.hpp | ecarpita93/HPC_projet_1 | a2c00e056c03227711c43cf2ad23d75c6afbe698 | [
"Xnet",
"X11"
] | null | null | null | include/filtering/filter_bilateral_2dg.hpp | ecarpita93/HPC_projet_1 | a2c00e056c03227711c43cf2ad23d75c6afbe698 | [
"Xnet",
"X11"
] | null | null | null | /*
PICCANTE
The hottest HDR imaging library!
http://vcg.isti.cnr.it/piccante
Copyright (C) 2014
Visual Computing Laboratory - ISTI CNR
http://vcg.isti.cnr.it
First author: Francesco Banterle
This Source Code Form is subject to the terms of the Mozilla Public
License, v. 2.0. If a copy of the MPL was not distributed ... | 23.692982 | 90 | 0.561644 | ecarpita93 |
7de4762296f02aee7f65f258b5b816543c87646e | 2,868 | cpp | C++ | src/framework/net/hello_net.cpp | 70207/watchMyDraw | 0c69fb57ecfa0b4bb44061001da8804af4bfb360 | [
"MIT"
] | null | null | null | src/framework/net/hello_net.cpp | 70207/watchMyDraw | 0c69fb57ecfa0b4bb44061001da8804af4bfb360 | [
"MIT"
] | null | null | null | src/framework/net/hello_net.cpp | 70207/watchMyDraw | 0c69fb57ecfa0b4bb44061001da8804af4bfb360 | [
"MIT"
] | null | null | null | //
// hello_net.cpp
// watchMyDraw
//
// Created by peter chen on 2017/10/8.
// Copyright © 2017年 chenxiaofei. All rights reserved.
//
#include <unistd.h>
#include <stdio.h>
#include <stdlib.h>
#include <arpa/inet.h>
#include <sys/socket.h>
#include <errno.h>
#include "hello_net.h"
#include "../util/hello_status.... | 24.512821 | 93 | 0.537308 | 70207 |
7de84f5628962b47a1b1e2850e843543af522124 | 504 | cpp | C++ | WSCL/IScreenCapture.cpp | TsentsevitskyDmitry/WinScreenCaptureLib | 4573411d22ab7297b6d16beded859fae54effe87 | [
"MIT"
] | null | null | null | WSCL/IScreenCapture.cpp | TsentsevitskyDmitry/WinScreenCaptureLib | 4573411d22ab7297b6d16beded859fae54effe87 | [
"MIT"
] | null | null | null | WSCL/IScreenCapture.cpp | TsentsevitskyDmitry/WinScreenCaptureLib | 4573411d22ab7297b6d16beded859fae54effe87 | [
"MIT"
] | null | null | null | #include <opencv2/core.hpp>
#include <chrono>
#include "IScreenCapture.h"
namespace WSCL
{
double ScreenCapture::bench()
{
int N = 10;
cv::Mat img;
auto start = std::chrono::steady_clock::now();
for(int i = 0; i < N; ++i)
get(img);
auto end = std::chrono... | 20.16 | 98 | 0.565476 | TsentsevitskyDmitry |
8fcb3582d1843fe0bd01516ea68333139f5f12b0 | 582 | hpp | C++ | src/types/symbolictoken.hpp | LSaldyt/CTF | cd11caa5a57b69e43a3a02a89e0a05b1d19e7f01 | [
"Apache-2.0"
] | 2 | 2018-03-19T20:19:01.000Z | 2018-10-22T23:41:12.000Z | src/types/symbolictoken.hpp | LSaldyt/CTF | cd11caa5a57b69e43a3a02a89e0a05b1d19e7f01 | [
"Apache-2.0"
] | 1 | 2017-01-18T20:45:33.000Z | 2017-01-21T20:57:37.000Z | src/types/symbolictoken.hpp | LSaldyt/CTF | cd11caa5a57b69e43a3a02a89e0a05b1d19e7f01 | [
"Apache-2.0"
] | null | null | null | /// Copyright 2017 Lucas Saldyt
#pragma once
#include "import.hpp"
namespace syntax
{
class Symbol;
}
/**
* Higher level representation of syntactic elements.
* Contains type annotations, original text, and an abstract Symbol construction representing the syntax element
*/
struct SymbolicToken
{
std::shared_p... | 25.304348 | 148 | 0.733677 | LSaldyt |
8fd147c665ff94ac8e2d9832783a876f54c99ac5 | 634 | hh | C++ | tests/Titon/Annotation/AnnotationTest.hh | ciklon-z/framework | cbf44729173d3a83b91a2b0a217c6b3827512e44 | [
"BSD-2-Clause"
] | 206 | 2015-01-02T20:01:12.000Z | 2021-04-15T09:49:56.000Z | tests/Titon/Annotation/AnnotationTest.hh | ciklon-z/framework | cbf44729173d3a83b91a2b0a217c6b3827512e44 | [
"BSD-2-Clause"
] | 44 | 2015-01-02T06:03:43.000Z | 2017-11-20T18:29:06.000Z | tests/Titon/Annotation/AnnotationTest.hh | titon/framework | cbf44729173d3a83b91a2b0a217c6b3827512e44 | [
"BSD-2-Clause"
] | 27 | 2015-01-03T05:51:29.000Z | 2022-02-21T13:50:40.000Z | <?hh
namespace Titon\Annotation;
use Titon\Test\TestCase;
class AnnotationTest extends TestCase {
protected function setUp(): void {
parent::setUp();
Registry::map('Foo', 'Titon\Test\Stub\Annotation\FooAnnotationStub');
Registry::map('Bar', 'Titon\Test\Stub\Annotation\BarAnnotationStub')... | 23.481481 | 77 | 0.629338 | ciklon-z |
8fd15bf477651fabb64d634b80d6911795afd9f6 | 3,050 | cpp | C++ | 201510_201609/0924_code_fes_2016_qualA/D2.cpp | kazunetakahashi/atcoder | 16ce65829ccc180260b19316e276c2fcf6606c53 | [
"MIT"
] | 7 | 2019-03-24T14:06:29.000Z | 2020-09-17T21:16:36.000Z | 201510_201609/0924_code_fes_2016_qualA/D2.cpp | kazunetakahashi/atcoder | 16ce65829ccc180260b19316e276c2fcf6606c53 | [
"MIT"
] | null | null | null | 201510_201609/0924_code_fes_2016_qualA/D2.cpp | kazunetakahashi/atcoder | 16ce65829ccc180260b19316e276c2fcf6606c53 | [
"MIT"
] | 1 | 2020-07-22T17:27:09.000Z | 2020-07-22T17:27:09.000Z | #include <iostream>
#include <iomanip> // << fixed << setprecision(xxx)
#include <algorithm> // do { } while ( next_permutation(A, A+xxx) ) ;
#include <vector>
#include <string> // to_string(nnn) // substr(m, n) // stoi(nnn)
#include <complex>
#include <tuple> // get<n>(xxx)
#include <queue>
#include <stack>
#include <... | 24.796748 | 69 | 0.463934 | kazunetakahashi |
8fd58a03f4142396087d110ffc6dc2b8a3d4d252 | 1,735 | hpp | C++ | physics/body_body.hpp | tnuvoletta/Principia | 25cf2fb70c512cf86a842ed525f6ab10e57f937c | [
"MIT"
] | 2 | 2015-02-23T19:32:16.000Z | 2015-04-07T03:55:53.000Z | physics/body_body.hpp | tnuvoletta/Principia | 25cf2fb70c512cf86a842ed525f6ab10e57f937c | [
"MIT"
] | null | null | null | physics/body_body.hpp | tnuvoletta/Principia | 25cf2fb70c512cf86a842ed525f6ab10e57f937c | [
"MIT"
] | null | null | null |
#pragma once
#include "physics/body.hpp"
#include "base/not_constructible.hpp"
#include "physics/massive_body.hpp"
#include "physics/massless_body.hpp"
#include "physics/oblate_body.hpp"
namespace principia {
namespace physics {
namespace internal_body {
using base::dynamic_cast_not_null;
using base::not_construc... | 27.983871 | 75 | 0.740058 | tnuvoletta |
8fd85a0f3d13f1b518365145a5675c7e397298c8 | 2,059 | hpp | C++ | mango/src/ui/ui_impl.hpp | pethipet/Mango | f89a93a11df365440ce7a8fb48f8336eac2c63f0 | [
"Apache-2.0"
] | 3 | 2020-05-12T09:30:41.000Z | 2020-10-04T21:27:03.000Z | mango/src/ui/ui_impl.hpp | pethipet/Mango | f89a93a11df365440ce7a8fb48f8336eac2c63f0 | [
"Apache-2.0"
] | 1 | 2020-03-21T20:34:10.000Z | 2020-03-22T13:58:41.000Z | mango/src/ui/ui_impl.hpp | pethipet/Mango | f89a93a11df365440ce7a8fb48f8336eac2c63f0 | [
"Apache-2.0"
] | 3 | 2020-06-24T16:32:44.000Z | 2020-08-14T14:44:20.000Z | //! \file ui_impl.hpp
//! \author Paul Himmler
//! \version 1.0
//! \date 2021
//! \copyright Apache License 2.0
#ifndef MANGO_UI_IMPL_HPP
#define MANGO_UI_IMPL_HPP
#include <core/context_impl.hpp>
#include <mango/ui.hpp>
#include <util/helpers.hpp>
namespace mango
{
//! \brief The implementation ... | 29.414286 | 96 | 0.629917 | pethipet |
8fdc8b921c256e754bc456503fa06db0c673876b | 591 | hpp | C++ | libs/PhiCore/include/phi/preprocessor/if.hpp | AMS21/Phi | d62d7235dc5307dd18607ade0f95432ae3a73dfd | [
"MIT"
] | 3 | 2020-12-21T13:47:35.000Z | 2022-03-16T23:53:21.000Z | libs/PhiCore/include/phi/preprocessor/if.hpp | AMS21/Phi | d62d7235dc5307dd18607ade0f95432ae3a73dfd | [
"MIT"
] | 53 | 2020-08-07T07:46:57.000Z | 2022-02-12T11:07:08.000Z | libs/PhiCore/include/phi/preprocessor/if.hpp | AMS21/Phi | d62d7235dc5307dd18607ade0f95432ae3a73dfd | [
"MIT"
] | 1 | 2020-08-19T15:50:02.000Z | 2020-08-19T15:50:02.000Z | #ifndef INCG_PHI_CORE_PREPROCESSOR_IF_HPP
#define INCG_PHI_CORE_PREPROCESSOR_IF_HPP
#include "phi/phi_config.hpp"
#if PHI_HAS_EXTENSION_PRAGMA_ONCE()
# pragma once
#endif
#include "phi/preprocessor/bool.hpp"
#define DETAIL_PHI_IF_0(true_case) /* Nothing */
#define DETAIL_PHI_IF_1(true_case) true_case
#define DE... | 26.863636 | 79 | 0.822335 | AMS21 |
8fe15c6bd4bff743021b22f4d0bbf2ca67262e26 | 5,391 | cpp | C++ | src/main/cpp/mutex.cpp | Blaxar/log4cxxNG | 8dfdfa2ab3d2fe598a41ec95e71ef01e79bac2ae | [
"Apache-2.0"
] | null | null | null | src/main/cpp/mutex.cpp | Blaxar/log4cxxNG | 8dfdfa2ab3d2fe598a41ec95e71ef01e79bac2ae | [
"Apache-2.0"
] | null | null | null | src/main/cpp/mutex.cpp | Blaxar/log4cxxNG | 8dfdfa2ab3d2fe598a41ec95e71ef01e79bac2ae | [
"Apache-2.0"
] | null | null | null | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may ... | 15.809384 | 75 | 0.709145 | Blaxar |
8fe580a3aef883a1235e17bee2d31e91b088c4b3 | 1,619 | cpp | C++ | source/threadp_cancel_test.cpp | williamledda/CPPosix | 235e990731c7cade43a1105dce6705329c56adbe | [
"MIT"
] | null | null | null | source/threadp_cancel_test.cpp | williamledda/CPPosix | 235e990731c7cade43a1105dce6705329c56adbe | [
"MIT"
] | null | null | null | source/threadp_cancel_test.cpp | williamledda/CPPosix | 235e990731c7cade43a1105dce6705329c56adbe | [
"MIT"
] | null | null | null | /*
* thread_cancel_test.cpp
*
* Created on: 20 gen 2018
* Author: william
*/
/**
* A simple example of the use of pthread_cancel(). The main program creates a
* thread that executes an infinite loop, sleeping for a second and
* printing the value of a loop counter. (This thread will terminate only if it... | 19.987654 | 86 | 0.628166 | williamledda |
8fed71e56735a24236b61f4ad43d9a37534ac351 | 1,249 | cpp | C++ | UVA Online Judge Solve/UVA482.cpp | Remonhasan/programming-solve | 5a4ac8c738dd361e1c974162e0eaebbaae72fd80 | [
"Apache-2.0"
] | null | null | null | UVA Online Judge Solve/UVA482.cpp | Remonhasan/programming-solve | 5a4ac8c738dd361e1c974162e0eaebbaae72fd80 | [
"Apache-2.0"
] | null | null | null | UVA Online Judge Solve/UVA482.cpp | Remonhasan/programming-solve | 5a4ac8c738dd361e1c974162e0eaebbaae72fd80 | [
"Apache-2.0"
] | null | null | null | // Remon Hasan
#include <cstdio>
#include <vector>
#include <cstring>
#include <cstdlib>
#include <string>
using namespace std;
#define MAX_LEN 1000000
int main(void)
{
int T;
char trash[10], line[MAX_LEN], *token, delim[] = " ";
vector<int> permuteArr, mapPermuteToOrigin;
vector<string> strArr;
/... | 21.534483 | 66 | 0.518815 | Remonhasan |
8fee039eb47d86c45306030957bbd2fcb66827c0 | 322 | cpp | C++ | niuke_HW/ds_zuo/16_6_minFabnaci.cpp | drt4243566/leetcode_learn | ef51f215079556895eec2252d84965cd1c3a7bf4 | [
"MIT"
] | null | null | null | niuke_HW/ds_zuo/16_6_minFabnaci.cpp | drt4243566/leetcode_learn | ef51f215079556895eec2252d84965cd1c3a7bf4 | [
"MIT"
] | null | null | null | niuke_HW/ds_zuo/16_6_minFabnaci.cpp | drt4243566/leetcode_learn | ef51f215079556895eec2252d84965cd1c3a7bf4 | [
"MIT"
] | null | null | null | #include <iostream>
#include <vector>
using namespace std;
int main() {
int num;
cin >> num;
vector<int> arr{ 0,1,1 };
while (arr[arr.size() - 1] < num) {
int len = arr.size();
arr.push_back(arr[len - 2] + arr[len - 1]);
}
cout << min(arr[arr.size() - 1] - num, num - arr[arr.size() - 2]) << endl;
return 0;... | 20.125 | 75 | 0.568323 | drt4243566 |
8ff38e97fc1f8fca65e17e845366075a38a4c762 | 8,477 | cpp | C++ | platform/win32.cpp | Teragion/Piz | 250ca1e8c39d5a7689817d771d0272d1faac726c | [
"MIT"
] | null | null | null | platform/win32.cpp | Teragion/Piz | 250ca1e8c39d5a7689817d771d0272d1faac726c | [
"MIT"
] | null | null | null | platform/win32.cpp | Teragion/Piz | 250ca1e8c39d5a7689817d771d0272d1faac726c | [
"MIT"
] | null | null | null | #include <assert.h>
#include <direct.h>
#include <windows.h>
#include <windowsx.h>
#include "image.h"
#include "platform.h"
struct window {
HWND handle;
HDC memory_dc;
image* surface;
/* common data */
int should_close;
char keys[KEY_NUM];
char mbuttons[MOUSE_NUM];
callbacks callback_l... | 29.130584 | 84 | 0.652353 | Teragion |
8ff8672307f2357215f100f933220c040d29dcdc | 2,857 | cpp | C++ | ChkdraftLib/Windows/DialogWindows/Layers/UnitProperties/PreservedUnitStats.cpp | heinermann/Chkdraft | e79332d3a7a6b89b028246ff641bcbe266039dca | [
"MIT"
] | 25 | 2015-03-10T21:50:09.000Z | 2020-08-13T08:01:30.000Z | ChkdraftLib/Windows/DialogWindows/Layers/UnitProperties/PreservedUnitStats.cpp | heinermann/Chkdraft | e79332d3a7a6b89b028246ff641bcbe266039dca | [
"MIT"
] | 45 | 2015-01-05T15:05:37.000Z | 2020-09-25T04:18:26.000Z | ChkdraftLib/Windows/DialogWindows/Layers/UnitProperties/PreservedUnitStats.cpp | heinermann/Chkdraft | e79332d3a7a6b89b028246ff641bcbe266039dca | [
"MIT"
] | 11 | 2015-08-14T04:19:10.000Z | 2017-04-01T18:57:05.000Z | #include "PreservedUnitStats.h"
#include "../../../../Chkdraft.h"
#include "../../../../Mapping/Undos/ChkdUndos/UnitChange.h"
PreservedUnitStats::PreservedUnitStats() : field(Chk::Unit::Field::ClassId)
{
}
PreservedUnitStats::~PreservedUnitStats()
{
}
void PreservedUnitStats::Clear()
{
field = Chk::Unit::Field... | 40.814286 | 108 | 0.660833 | heinermann |
8901f42c4a5c38be35cacb524cabbb3609c4a57e | 230 | hpp | C++ | test/mock/strings_container_mock.hpp | stryku/cmakesl | e53bffed62ae9ca68c0c2de0de8e2a94bfe4d326 | [
"BSD-3-Clause"
] | 51 | 2019-05-06T01:33:34.000Z | 2021-11-17T11:44:54.000Z | test/mock/strings_container_mock.hpp | stryku/cmakesl | e53bffed62ae9ca68c0c2de0de8e2a94bfe4d326 | [
"BSD-3-Clause"
] | 191 | 2019-05-06T18:31:24.000Z | 2020-06-19T06:48:06.000Z | test/mock/strings_container_mock.hpp | stryku/cmakesl | e53bffed62ae9ca68c0c2de0de8e2a94bfe4d326 | [
"BSD-3-Clause"
] | 3 | 2019-10-12T21:03:29.000Z | 2020-06-19T06:22:25.000Z | #pragma once
#include "common/strings_container.hpp"
#include <gmock/gmock.h>
namespace cmsl::test {
class strings_container_mock : public strings_container
{
public:
MOCK_METHOD1(store, cmsl::string_view(std::string));
};
}
| 16.428571 | 55 | 0.76087 | stryku |
8902a5ee0b2587cbc1ee68cca5209fb3560c259e | 278 | cpp | C++ | Chapter 9. Sequential Containers/Codes/9.5 Solution.cpp | Yunxiang-Li/Cpp_Primer | b5c857e3f6be993b2ff8fc03f634141ae24925fc | [
"MIT"
] | null | null | null | Chapter 9. Sequential Containers/Codes/9.5 Solution.cpp | Yunxiang-Li/Cpp_Primer | b5c857e3f6be993b2ff8fc03f634141ae24925fc | [
"MIT"
] | null | null | null | Chapter 9. Sequential Containers/Codes/9.5 Solution.cpp | Yunxiang-Li/Cpp_Primer | b5c857e3f6be993b2ff8fc03f634141ae24925fc | [
"MIT"
] | 1 | 2021-09-30T14:08:03.000Z | 2021-09-30T14:08:03.000Z | #include <iostream>
#include <vector>
std::vector<int>::iterator func(std::vector<int>::iterator begin, std::vector<int>::iterator end, int value) {
for (std::vector<int>::iterator iter = begin; iter != end; ++iter)
if (*iter == value)
return iter;
return end;
}
| 27.8 | 110 | 0.651079 | Yunxiang-Li |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.