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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
6c2ed407d7aa95953c9a231d34a2db3a1124f03c | 1,062 | cpp | C++ | Source/wali/lib/witness/WitnessTrans.cpp | jusito/WALi-OpenNWA | 2bb4aca02c5a5d444fd038e8aa3eecd7d1ccbb99 | [
"MIT"
] | 15 | 2015-03-07T17:25:57.000Z | 2022-02-04T20:17:00.000Z | Source/wali/lib/witness/WitnessTrans.cpp | jusito/WALi-OpenNWA | 2bb4aca02c5a5d444fd038e8aa3eecd7d1ccbb99 | [
"MIT"
] | 1 | 2018-03-03T05:58:55.000Z | 2018-03-03T12:26:10.000Z | Source/wali/lib/witness/WitnessTrans.cpp | jusito/WALi-OpenNWA | 2bb4aca02c5a5d444fd038e8aa3eecd7d1ccbb99 | [
"MIT"
] | 15 | 2015-09-25T17:44:35.000Z | 2021-07-18T18:25:38.000Z | /*!
* @author Nicholas Kidd
*/
#include "wali/Common.hpp"
#include "wali/witness/WitnessTrans.hpp"
#include "wali/witness/Visitor.hpp"
namespace wali
{
namespace witness
{
WitnessTrans::WitnessTrans( const wfa::ITrans& t_ ) : Witness(t_.weight()),t(t_)
{
min_length = 0UL;
}
// Destructor ... | 18.310345 | 84 | 0.585687 | jusito |
6c2f2499b2fd88095195371e9bcdf6882f99527d | 7,784 | cpp | C++ | IslandGame/src/islandgame/IslandGame.cpp | haferflocken/ConductorEngine | 4914e419e5a736275e96d76eaa19b7aa56d69345 | [
"Zlib",
"BSD-2-Clause"
] | null | null | null | IslandGame/src/islandgame/IslandGame.cpp | haferflocken/ConductorEngine | 4914e419e5a736275e96d76eaa19b7aa56d69345 | [
"Zlib",
"BSD-2-Clause"
] | null | null | null | IslandGame/src/islandgame/IslandGame.cpp | haferflocken/ConductorEngine | 4914e419e5a736275e96d76eaa19b7aa56d69345 | [
"Zlib",
"BSD-2-Clause"
] | null | null | null | #include <islandgame/IslandGameData.h>
#include <islandgame/client/IslandGameClient.h>
#include <islandgame/host/IslandGameHost.h>
#include <asset/AssetManager.h>
#include <collection/LocklessQueue.h>
#include <collection/ProgramParameters.h>
#include <file/Path.h>
#include <client/ClientWorld.h>
#include <client/... | 34.90583 | 120 | 0.778905 | haferflocken |
6c3158db09db4f1b13e698d4319e52778fd0ff18 | 168 | cpp | C++ | pointer/pointer.cpp | riti2409/forplacements | 9e8fb99c9d65b04eea71abb3fbdcffc2a1433a04 | [
"MIT"
] | 5 | 2021-12-03T14:29:16.000Z | 2022-02-04T09:06:37.000Z | pointer/pointer.cpp | riti2409/forplacements | 9e8fb99c9d65b04eea71abb3fbdcffc2a1433a04 | [
"MIT"
] | null | null | null | pointer/pointer.cpp | riti2409/forplacements | 9e8fb99c9d65b04eea71abb3fbdcffc2a1433a04 | [
"MIT"
] | 2 | 2022-01-16T14:20:42.000Z | 2022-01-17T06:49:01.000Z | #include<bits/stdc++.h>
using namespace std;
int main(){
int a=10;
int*aptr=&a;
cout<<*aptr<<endl;
*aptr=20;
cout<<a<<endl;
return 0;
} | 16.8 | 24 | 0.52381 | riti2409 |
6c3737314783146e7753ae1448cb9a717c131d45 | 777 | cpp | C++ | y2018/filters/houghCircles.cpp | valkyrierobotics/vision2018 | aa82e936c5481b7cc43a46ff5f6e68702c2166c2 | [
"BSD-2-Clause"
] | 2 | 2016-08-06T06:21:02.000Z | 2017-01-10T05:45:13.000Z | y2018/filters/houghCircles.cpp | valkyrierobotics/vision2018 | aa82e936c5481b7cc43a46ff5f6e68702c2166c2 | [
"BSD-2-Clause"
] | 1 | 2017-04-15T20:54:59.000Z | 2017-04-15T20:54:59.000Z | y2018/filters/houghCircles.cpp | valkyrierobotics/vision2018 | aa82e936c5481b7cc43a46ff5f6e68702c2166c2 | [
"BSD-2-Clause"
] | 3 | 2016-07-30T06:19:55.000Z | 2017-02-07T01:55:05.000Z | #include "filters/houghCircles.hpp"
void houghCircles(cv::Mat& img, int minDist, int minRadius, int maxRadius)
{
std::vector<cv::Vec3f> circles;
cv::cvtColor(img, img, CV_BGR2GRAY);
// cv::HoughCircles calls cv::Canny internally
cv::HoughCircles(img, circles, CV_HOUGH_GRADIENT, 2, minDist, maxRadius, mi... | 35.318182 | 86 | 0.616474 | valkyrierobotics |
6c3ef40794a4151be768318ac2f28bfc81321042 | 1,259 | cpp | C++ | src/platform/vulkan/descriptor_set_layout.cpp | PedroSFreire/LiftPR.Version | 61e8e135335e3c4def80f345548620db95f1662d | [
"BSD-3-Clause"
] | 30 | 2019-07-24T09:58:22.000Z | 2021-09-03T08:20:22.000Z | src/platform/vulkan/descriptor_set_layout.cpp | PedroSFreire/LiftPR.Version | 61e8e135335e3c4def80f345548620db95f1662d | [
"BSD-3-Clause"
] | 15 | 2020-06-20T13:20:50.000Z | 2021-04-26T16:05:33.000Z | src/platform/vulkan/descriptor_set_layout.cpp | PedroSFreire/LiftPR.Version | 61e8e135335e3c4def80f345548620db95f1662d | [
"BSD-3-Clause"
] | 5 | 2020-06-17T08:38:34.000Z | 2021-09-08T22:14:02.000Z | #include "descriptor_set_layout.h"
#include "device.h"
namespace vulkan {
DescriptorSetLayout::DescriptorSetLayout(const Device& device,
const std::vector<DescriptorBinding>& descriptor_bindings) :
device_(device) {
std::vector<VkDescriptorSetLayoutBinding> layout_bind... | 33.131579 | 101 | 0.69579 | PedroSFreire |
6c45a4713441b34549eb3b35a4cca840641e279f | 1,700 | cpp | C++ | Source/StealthyAssessment/EnemyPatrolAIController.cpp | Zero-One101/StealthyAssessment | db79768bc13cfdf0cf282ca391366b087595ef61 | [
"MIT"
] | null | null | null | Source/StealthyAssessment/EnemyPatrolAIController.cpp | Zero-One101/StealthyAssessment | db79768bc13cfdf0cf282ca391366b087595ef61 | [
"MIT"
] | null | null | null | Source/StealthyAssessment/EnemyPatrolAIController.cpp | Zero-One101/StealthyAssessment | db79768bc13cfdf0cf282ca391366b087595ef61 | [
"MIT"
] | null | null | null | // Fill out your copyright notice in the Description page of Project Settings.
#include "StealthyAssessment.h"
#include "EnemyPatrol.h"
#include "Runtime/Engine/Classes/Components/SkeletalMeshComponent.h"
#include "EnemyPatrolAIController.h"
AEnemyPatrolAIController::AEnemyPatrolAIController(const class FObjectInitia... | 27.868852 | 128 | 0.768235 | Zero-One101 |
6c49f80670b81396fae894b8de0907946e9209a6 | 3,267 | cpp | C++ | Mendel's First Law.cpp | RonitPrasad1/Project_Rosalind- | 59c59f6820b858f0dc08d62b2629a608d477ddb2 | [
"MIT"
] | 1 | 2022-03-22T22:33:14.000Z | 2022-03-22T22:33:14.000Z | Mendel's First Law.cpp | RonitPrasad1/Project_Rosalind- | 59c59f6820b858f0dc08d62b2629a608d477ddb2 | [
"MIT"
] | null | null | null | Mendel's First Law.cpp | RonitPrasad1/Project_Rosalind- | 59c59f6820b858f0dc08d62b2629a608d477ddb2 | [
"MIT"
] | null | null | null | //Mendel's First Law: Not checked
#include <iostream>
#include <string>
auto main(int argc, const char* argv[]) -> decltype ( 0 )
{
std::cout << "Sample Dataset: " << '\n';
std::string RNA;
std::cin >> RNA;
int RNALength = RNA.size();
for (int64_t i = 0; i < RNALength; ++i)
... | 27.453782 | 92 | 0.289562 | RonitPrasad1 |
6c4d78ad738a07be087994f21a2be1c65d249b07 | 19,653 | hpp | C++ | libs/core/src/main/cpp/neurodidactic/core/arrays/detail/MdArrayCommon.hpp | tomault/neurodidactic | c2641d65ebe191667f945817227319f48388c55b | [
"Apache-2.0"
] | null | null | null | libs/core/src/main/cpp/neurodidactic/core/arrays/detail/MdArrayCommon.hpp | tomault/neurodidactic | c2641d65ebe191667f945817227319f48388c55b | [
"Apache-2.0"
] | null | null | null | libs/core/src/main/cpp/neurodidactic/core/arrays/detail/MdArrayCommon.hpp | tomault/neurodidactic | c2641d65ebe191667f945817227319f48388c55b | [
"Apache-2.0"
] | null | null | null | #ifndef __NEURODIDACTIC__CORE__ARRAYS__DETAIL__MDARRAYCOMMON_HPP__
#define __NEURODIDACTIC__CORE__ARRAYS__DETAIL__MDARRAYCOMMON_HPP__
#include <neurodidactic/core/arrays/DimensionList.hpp>
#include <neurodidactic/core/arrays/AnyMdArray.hpp>
#include <neurodidactic/core/arrays/detail/MklAdapter.hpp>
#include <pistis/ex... | 32.646179 | 76 | 0.630235 | tomault |
6c512fe4376cea6471f0a497a0d39039b8606b8d | 6,256 | cpp | C++ | Engine/ModuleResource.cpp | Beautiful-Engines/Engine | fab1b2415d63218078cc6f2b2a33676e9ef45543 | [
"MIT"
] | null | null | null | Engine/ModuleResource.cpp | Beautiful-Engines/Engine | fab1b2415d63218078cc6f2b2a33676e9ef45543 | [
"MIT"
] | null | null | null | Engine/ModuleResource.cpp | Beautiful-Engines/Engine | fab1b2415d63218078cc6f2b2a33676e9ef45543 | [
"MIT"
] | null | null | null | #include "Application.h"
#include "ModuleFileSystem.h"
#include "ModuleImport.h"
#include "ModuleResource.h"
#include "ModuleScene.h"
#include "ImportMesh.h"
#include "ResourceMesh.h"
#include "ImportTexture.h"
#include "ResourceTexture.h"
#include "ImportModel.h"
#include "ResourceModel.h"
#include "ImportAnimation.h"... | 26.621277 | 147 | 0.69773 | Beautiful-Engines |
6c5eb48d870b5a346b660c506c4be01414158af2 | 923 | cpp | C++ | GL/ShootingGame/Circle.cpp | KoreanGinseng/CreativeLabo4 | a7c03ad2cea958be1509cd0c09581b1f4fc81275 | [
"MIT"
] | null | null | null | GL/ShootingGame/Circle.cpp | KoreanGinseng/CreativeLabo4 | a7c03ad2cea958be1509cd0c09581b1f4fc81275 | [
"MIT"
] | null | null | null | GL/ShootingGame/Circle.cpp | KoreanGinseng/CreativeLabo4 | a7c03ad2cea958be1509cd0c09581b1f4fc81275 | [
"MIT"
] | null | null | null | #include "Circle.h"
Circle::Circle()
: x_(0.0f)
, y_(0.0f)
, r_(0.0f) {
}
Circle::Circle(float r)
: x_(0.0f)
, y_(0.0f)
, r_(r) {
}
Circle::Circle(float x, float y, float r)
: x_(x)
, y_(y)
, r_(r) {
}
Circle::~Circle() {
}
bool Circle::CollisionPoint(float x, float y) const {... | 22.512195 | 72 | 0.592633 | KoreanGinseng |
4842baec0e2e73ef3a1cb88c9df2b3ea3b356420 | 11,422 | cpp | C++ | AmbientGsm.cpp | mnltake/ambient_gpstracker_LTE | 57d28327e4f47cc82ddff80796b3686ffd6a0014 | [
"MIT"
] | null | null | null | AmbientGsm.cpp | mnltake/ambient_gpstracker_LTE | 57d28327e4f47cc82ddff80796b3686ffd6a0014 | [
"MIT"
] | null | null | null | AmbientGsm.cpp | mnltake/ambient_gpstracker_LTE | 57d28327e4f47cc82ddff80796b3686ffd6a0014 | [
"MIT"
] | null | null | null | /*
* ambient.cpp - Library for sending data to Ambient
* Created by Takehiko Shimojima, April 21, 2016
* change by mnltake ,2022
*/
#include "AmbientGsm.h"
#define AMBIENT_DEBUG 0
#if AMBIENT_DEBUG
#define DBG(...) { Serial.print(__VA_ARGS__); }
#define ERR(...) { Serial.print(__VA_ARGS__); }
#else
#define DBG(..... | 25.667416 | 181 | 0.548941 | mnltake |
4842c77d1d750453454405dd78d347cea6c68375 | 7,954 | hpp | C++ | include/mtx/responses/crypto.hpp | govynnus/mtxclient | 3888ae70d51cdfe7b69d375560448f36991793e6 | [
"MIT"
] | 18 | 2019-03-11T20:23:53.000Z | 2022-02-25T20:55:27.000Z | include/mtx/responses/crypto.hpp | govynnus/mtxclient | 3888ae70d51cdfe7b69d375560448f36991793e6 | [
"MIT"
] | 55 | 2019-02-07T01:21:03.000Z | 2022-03-06T15:42:34.000Z | include/mtx/responses/crypto.hpp | govynnus/mtxclient | 3888ae70d51cdfe7b69d375560448f36991793e6 | [
"MIT"
] | 22 | 2019-02-24T17:28:31.000Z | 2022-03-10T22:40:22.000Z | #pragma once
/// @file
/// @brief E2EE related endpoints.
#if __has_include(<nlohmann/json_fwd.hpp>)
#include <nlohmann/json_fwd.hpp>
#else
#include <nlohmann/json.hpp>
#endif
#include "mtx/common.hpp"
#include "mtx/lightweight_error.hpp"
#include <map>
#include <string>
namespace mtx {
namespace responses {
//! R... | 37.518868 | 96 | 0.729444 | govynnus |
48441cd0555c543fe874f8f754f553d2736764db | 1,290 | hpp | C++ | src/lib/storage/vector_compression/bitpacking/bitpacking_vector.hpp | mrcl-tst/hyrise | eec50b39de9f530b0a1732ceb5822b7222f3fe17 | [
"MIT"
] | 583 | 2015-01-10T00:55:32.000Z | 2022-03-25T12:24:30.000Z | src/lib/storage/vector_compression/bitpacking/bitpacking_vector.hpp | mrcl-tst/hyrise | eec50b39de9f530b0a1732ceb5822b7222f3fe17 | [
"MIT"
] | 1,573 | 2015-01-07T15:47:22.000Z | 2022-03-31T11:48:03.000Z | src/lib/storage/vector_compression/bitpacking/bitpacking_vector.hpp | mrcl-tst/hyrise | eec50b39de9f530b0a1732ceb5822b7222f3fe17 | [
"MIT"
] | 145 | 2015-03-09T16:26:07.000Z | 2022-02-15T12:53:23.000Z | #pragma once
#include "bitpacking_decompressor.hpp"
#include "bitpacking_iterator.hpp"
#include "bitpacking_vector_type.hpp"
#include "compact_vector.hpp"
#include "storage/vector_compression/base_compressed_vector.hpp"
namespace opossum {
/**
* @brief Bit-packed vector with fixed bit length
*
* Bit-packed Null S... | 30.714286 | 119 | 0.795349 | mrcl-tst |
484652da790a2aeceeec1f214398ed833e61f004 | 4,716 | cpp | C++ | tests/minimongo.cpp | almightycouch/meteorpp | e8af587c88902fb79820317a6d579ace43d883b1 | [
"MIT"
] | 24 | 2015-10-25T11:34:02.000Z | 2018-09-10T17:10:52.000Z | tests/minimongo.cpp | almightycouch/meteorpp | e8af587c88902fb79820317a6d579ace43d883b1 | [
"MIT"
] | 3 | 2018-08-05T14:01:43.000Z | 2019-02-15T14:44:42.000Z | tests/minimongo.cpp | almightycouch/meteorpp | e8af587c88902fb79820317a6d579ace43d883b1 | [
"MIT"
] | 9 | 2016-05-09T13:56:58.000Z | 2021-11-01T23:53:38.000Z | #include <set>
#include <meteorpp/collection.hpp>
#include <boost/test/unit_test.hpp>
struct fixture {
fixture() : coll(std::make_shared<meteorpp::collection>("test")) {}
std::shared_ptr<meteorpp::collection> coll;
};
BOOST_AUTO_TEST_CASE(create_collection)
{
BOOST_CHECK_NO_THROW(std::make_shared<meteorp... | 30.425806 | 98 | 0.626166 | almightycouch |
48499516798e6e901a3953c47941556f8d7ab2c8 | 6,269 | hpp | C++ | tests/unit/coherence/run/xml/XmlTokenTest.hpp | chpatel3/coherence-cpp-extend-client | 4ea5267eae32064dff1e73339aa3fbc9347ef0f6 | [
"UPL-1.0",
"Apache-2.0"
] | 6 | 2020-07-01T21:38:30.000Z | 2021-11-03T01:35:11.000Z | tests/unit/coherence/run/xml/XmlTokenTest.hpp | chpatel3/coherence-cpp-extend-client | 4ea5267eae32064dff1e73339aa3fbc9347ef0f6 | [
"UPL-1.0",
"Apache-2.0"
] | 1 | 2020-07-24T17:29:22.000Z | 2020-07-24T18:29:04.000Z | tests/unit/coherence/run/xml/XmlTokenTest.hpp | chpatel3/coherence-cpp-extend-client | 4ea5267eae32064dff1e73339aa3fbc9347ef0f6 | [
"UPL-1.0",
"Apache-2.0"
] | 6 | 2020-07-10T18:40:58.000Z | 2022-02-18T01:23:40.000Z | /*
* Copyright (c) 2000, 2020, Oracle and/or its affiliates.
*
* Licensed under the Universal Permissive License v 1.0 as shown at
* http://oss.oracle.com/licenses/upl.
*/
#include "cxxtest/TestSuite.h"
#include "coherence/lang.ns"
#include "private/coherence/run/xml/XmlToken.hpp"
#include <stdio.h>
using namesp... | 36.236994 | 194 | 0.624502 | chpatel3 |
4849f31b0b403e5bcc426ebb76afa2f6d6cdfd21 | 1,980 | cpp | C++ | Stocks/UrlDownloader.cpp | caicaiking/AbamaAnalysis | d3d370e59c7049be36e06da61e1a315ba58d049d | [
"MIT"
] | null | null | null | Stocks/UrlDownloader.cpp | caicaiking/AbamaAnalysis | d3d370e59c7049be36e06da61e1a315ba58d049d | [
"MIT"
] | null | null | null | Stocks/UrlDownloader.cpp | caicaiking/AbamaAnalysis | d3d370e59c7049be36e06da61e1a315ba58d049d | [
"MIT"
] | null | null | null | #include "UrlDownloader.h"
#include <QNetworkReply>
namespace
{
inline int _calculateProgress(qint64 bytesReceived, qint64 bytesTotal)
{
if (!bytesTotal)
return 0;
if (bytesTotal == -1)
return -1;
return (bytesReceived * 100) / bytesTotal;
}
}
//////////... | 22 | 116 | 0.581818 | caicaiking |
484c7085cea5c8a7255c3081659fbb1693c448f5 | 5,739 | cpp | C++ | src/main.cpp | attaoveisi/pseudo_particle_filter | 0bcb66b92661c0cd8fdf12db5a57d6f3df1a7940 | [
"MIT"
] | 1 | 2021-01-10T10:52:13.000Z | 2021-01-10T10:52:13.000Z | src/main.cpp | attaoveisi/pseudo_particle_filter | 0bcb66b92661c0cd8fdf12db5a57d6f3df1a7940 | [
"MIT"
] | null | null | null | src/main.cpp | attaoveisi/pseudo_particle_filter | 0bcb66b92661c0cd8fdf12db5a57d6f3df1a7940 | [
"MIT"
] | null | null | null | #include "Base.h"
#include "Robot.h"
#include "Map.h"
#include <matplot/matplot.h>
void visualization(int n, Robot robot, int step, std::vector<Robot> p, std::vector<Robot> pr, int num_landmarks)
{
//Draw the robot, landmarks, particles and resampled particles on a graph
matplot::figure(1);
//Graph Format
... | 33.758824 | 153 | 0.488935 | attaoveisi |
484ffbfe261670a5eea4eeaba9d84f2fc5848b26 | 1,544 | cpp | C++ | sg/scene/transfer_function/Sequential.cpp | ebachard/ospray_studio | 78928c93b482f9f95aa300c8f58c728dadedbe2f | [
"Apache-2.0"
] | 52 | 2018-10-09T23:56:32.000Z | 2022-03-25T09:27:40.000Z | sg/scene/transfer_function/Sequential.cpp | ebachard/ospray_studio | 78928c93b482f9f95aa300c8f58c728dadedbe2f | [
"Apache-2.0"
] | 11 | 2018-11-19T18:51:47.000Z | 2022-03-28T14:03:57.000Z | sg/scene/transfer_function/Sequential.cpp | ebachard/ospray_studio | 78928c93b482f9f95aa300c8f58c728dadedbe2f | [
"Apache-2.0"
] | 8 | 2019-02-10T00:16:24.000Z | 2022-02-17T19:50:15.000Z | // Copyright 2021 Intel Corporation
// SPDX-License-Identifier: Apache-2.0
#include "TransferFunction.h"
namespace ospray {
namespace sg {
// Turbo /////////////////////////////////////////////////////////////////////
struct OSPSG_INTERFACE Turbo : public TransferFunction
{
Turbo();
virtual ~Turbo() override = ... | 24.903226 | 78 | 0.658031 | ebachard |
48565b4701e322be364081f515a1ecdd9a93f66f | 14,757 | cpp | C++ | src/main.cpp | JamesBremner/pack2 | b6156f5621206d9836a8d52172641a94fa52df13 | [
"BSD-2-Clause"
] | 2 | 2020-03-17T00:46:50.000Z | 2020-04-13T21:22:10.000Z | src/main.cpp | JamesBremner/pack2 | b6156f5621206d9836a8d52172641a94fa52df13 | [
"BSD-2-Clause"
] | null | null | null | src/main.cpp | JamesBremner/pack2 | b6156f5621206d9836a8d52172641a94fa52df13 | [
"BSD-2-Clause"
] | null | null | null | #include <iostream>
#include <sstream>
#include <memory>
#include <vector>
#include <algorithm>
#include <cutest.h>
using namespace std;
#include "pack2.h"
TEST( CutList )
{
pack2::cPackEngine E;
E.add( pack2::bin_t( new pack2::cBin( "Bin1", 100, 100 )) );
E.addItem( "Item1", 20, 20 );
E.addItem( "It... | 30.616183 | 84 | 0.581622 | JamesBremner |
485919b437fcc604bf1bcb5236837e824e733247 | 967 | cpp | C++ | src/source/SMARTEN.cpp | ManuelMcLure/TMCStepper | c425c40f0adfa24c1c21ce7d6428bcffc2c921ae | [
"MIT"
] | 336 | 2018-03-26T13:51:46.000Z | 2022-03-21T21:58:47.000Z | src/source/SMARTEN.cpp | ManuelMcLure/TMCStepper | c425c40f0adfa24c1c21ce7d6428bcffc2c921ae | [
"MIT"
] | 218 | 2017-07-28T06:13:53.000Z | 2022-03-26T16:41:21.000Z | src/source/SMARTEN.cpp | ManuelMcLure/TMCStepper | c425c40f0adfa24c1c21ce7d6428bcffc2c921ae | [
"MIT"
] | 176 | 2018-09-11T22:16:27.000Z | 2022-03-26T13:04:03.000Z | #include "TMCStepper.h"
#include "TMC_MACROS.h"
#define SET_REG(SETTING) SMARTEN_register.SETTING = B; write(SMARTEN_register.address, SMARTEN_register.sr)
#define GET_REG(SETTING) return SMARTEN_register.SETTING
uint32_t TMC2660Stepper::SMARTEN() { return SMARTEN_register.sr; }
void TMC2660Stepper::SMARTEN(uint32_t ... | 40.291667 | 107 | 0.752844 | ManuelMcLure |
4860c1ffbb99f39d02be1e4d1e1eaface023bf3a | 22,455 | cc | C++ | tests/mps_statespace_test.cc | cognigami/qsim | e18c2f4dc3d1fd7edda696c78ed39708942b47e7 | [
"Apache-2.0"
] | 280 | 2020-03-04T18:30:16.000Z | 2022-03-24T15:30:50.000Z | tests/mps_statespace_test.cc | cognigami/qsim | e18c2f4dc3d1fd7edda696c78ed39708942b47e7 | [
"Apache-2.0"
] | 274 | 2020-03-07T21:10:52.000Z | 2022-03-30T19:45:48.000Z | tests/mps_statespace_test.cc | cognigami/qsim | e18c2f4dc3d1fd7edda696c78ed39708942b47e7 | [
"Apache-2.0"
] | 91 | 2020-03-06T18:58:55.000Z | 2022-03-23T13:32:14.000Z | // Copyright 2019 Google LLC. 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
//
// https://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicabl... | 37.613065 | 75 | 0.655578 | cognigami |
486245bb7432d5c5d0c5faac89fc61d2babfb35a | 20,065 | cpp | C++ | src/histogram.cpp | tylern4/clas12_elastic | b2630541b1b255a3138a191e61d9a705e25fcef9 | [
"MIT"
] | null | null | null | src/histogram.cpp | tylern4/clas12_elastic | b2630541b1b255a3138a191e61d9a705e25fcef9 | [
"MIT"
] | null | null | null | src/histogram.cpp | tylern4/clas12_elastic | b2630541b1b255a3138a191e61d9a705e25fcef9 | [
"MIT"
] | 1 | 2019-12-17T16:35:30.000Z | 2019-12-17T16:35:30.000Z | /**************************************/
/* */
/* Created by Nick Tyler */
/* University Of South Carolina */
/**************************************/
#include "histogram.hpp"
Histogram::Histogram(const std::string& output_file) {
RootOutputFile = std::make_shared<TFile>(output_fil... | 44.293598 | 120 | 0.611313 | tylern4 |
48643ecb23db6c91908494cc2de207bb205c2929 | 24,199 | cpp | C++ | src/ibp/widgets/curves.cpp | deiflou/ibp | 9728f7569b59aa261dcaffc8332a1b02c2cd5fbe | [
"MIT"
] | 6 | 2015-05-07T18:44:34.000Z | 2018-12-12T15:57:40.000Z | src/ibp/widgets/curves.cpp | deiflou/ibp | 9728f7569b59aa261dcaffc8332a1b02c2cd5fbe | [
"MIT"
] | null | null | null | src/ibp/widgets/curves.cpp | deiflou/ibp | 9728f7569b59aa261dcaffc8332a1b02c2cd5fbe | [
"MIT"
] | 2 | 2021-03-22T10:01:32.000Z | 2021-12-20T05:23:46.000Z | //
// MIT License
//
// Copyright (c) Deif Lou
//
// 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, me... | 33.377931 | 117 | 0.621637 | deiflou |
4864485476c26ac53ed64956481d56ab5bea8033 | 394 | hh | C++ | src/scorer/scorer.hh | RafaelOstertag/tetris | ea1abfecdd3f8183331853708291c9943453a962 | [
"BSD-2-Clause"
] | 1 | 2020-01-02T19:31:58.000Z | 2020-01-02T19:31:58.000Z | src/scorer/scorer.hh | RafaelOstertag/tetris | ea1abfecdd3f8183331853708291c9943453a962 | [
"BSD-2-Clause"
] | null | null | null | src/scorer/scorer.hh | RafaelOstertag/tetris | ea1abfecdd3f8183331853708291c9943453a962 | [
"BSD-2-Clause"
] | null | null | null | #ifndef __SCORER_HH
#define __SCORER_HH
#include <memory>
class Scorer {
public:
using score_t = unsigned int;
using level_t = unsigned int;
virtual ~Scorer() = default;
virtual void scoreLinesRemoved(unsigned int numberOfLines) = 0;
virtual score_t getScore() const = 0;
virtual level_t get... | 19.7 | 67 | 0.703046 | RafaelOstertag |
4866834de98647a54e76f36e535cfbaa5a96f583 | 1,242 | cpp | C++ | Software/STM32CubeDemo/RotaryEncoderWithDisplay/TouchGFX/generated/fonts/src/Kerning_verdana_22_4bpp.cpp | MitkoDyakov/RED | 3bacb4df47867bbbf23c3c02d0ea1f8faa8d5779 | [
"MIT"
] | 15 | 2021-09-21T13:55:54.000Z | 2022-03-08T14:05:39.000Z | Software/STM32CubeDemo/RotaryEncoderWithDisplay/TouchGFX/generated/fonts/src/Kerning_verdana_22_4bpp.cpp | DynamixYANG/Roendi | 2f6703d63922071fd0dfc8e4d2c9bba95ea04f08 | [
"MIT"
] | 7 | 2021-09-22T07:56:52.000Z | 2022-03-21T17:39:34.000Z | Software/STM32CubeDemo/RotaryEncoderWithDisplay/TouchGFX/generated/fonts/src/Kerning_verdana_22_4bpp.cpp | DynamixYANG/Roendi | 2f6703d63922071fd0dfc8e4d2c9bba95ea04f08 | [
"MIT"
] | 1 | 2022-03-07T07:51:50.000Z | 2022-03-07T07:51:50.000Z | #include <touchgfx/Font.hpp>
FONT_KERNING_LOCATION_FLASH_PRAGMA
KEEP extern const touchgfx::KerningNode kerning_verdana_22_4bpp[] FONT_KERNING_LOCATION_FLASH_ATTRIBUTE = {
{ 0x0054, -2 }, // (First char = [0x0054, T], Second char = [0x003A, :], Kerning dist = -2)
{ 0x0054, 1 }, // (First char = [0x0054, T],... | 73.058824 | 107 | 0.57971 | MitkoDyakov |
4868d517b0680224cfb2a7bdbbb68ee8f1d60784 | 7,146 | cpp | C++ | servers/src/VisualServer2D.cpp | wookie41/blitz | 7f587bee9b6189c32f0f60c69316bc8deca23c16 | [
"MIT"
] | 1 | 2020-01-04T21:04:52.000Z | 2020-01-04T21:04:52.000Z | servers/src/VisualServer2D.cpp | wookie41/blitz | 7f587bee9b6189c32f0f60c69316bc8deca23c16 | [
"MIT"
] | 15 | 2019-08-26T20:54:31.000Z | 2020-03-15T14:11:44.000Z | servers/src/VisualServer2D.cpp | wookie41/blitz | 7f587bee9b6189c32f0f60c69316bc8deca23c16 | [
"MIT"
] | null | null | null | #include <servers/VisualServer2D.h>
#include <core/ogl/texture/OpenGLTextureSampler.h>
#include <core/Device.h>
#include <core/Renderer.h>
#include <scene/2d/Canvas.h>
#include <scene/2d/Sprite.h>
#include <blitzmemory/Memory.h>
#include <core/RenderCommand.h>
#include <front/ForwardRenderingPath.h>
#include... | 37.809524 | 140 | 0.637 | wookie41 |
4873198941398e47541c9e774b6fff48481642ae | 14,644 | cpp | C++ | CFD/src/solver.cpp | CompilerLuke/NextEngine | aa1a8e9d9370bce004dba00854701597cab74989 | [
"MIT"
] | 1 | 2021-09-10T18:19:16.000Z | 2021-09-10T18:19:16.000Z | CFD/src/solver.cpp | CompilerLuke/NextEngine | aa1a8e9d9370bce004dba00854701597cab74989 | [
"MIT"
] | null | null | null | CFD/src/solver.cpp | CompilerLuke/NextEngine | aa1a8e9d9370bce004dba00854701597cab74989 | [
"MIT"
] | 2 | 2020-04-02T06:46:56.000Z | 2021-06-17T16:47:57.000Z | #include "solver.h"
#include "engine/handle.h"
#include "core/memory/linear_allocator.h"
#include "visualization/debug_renderer.h"
#include "visualization/color_map.h"
#include "vendor/eigen/Eigen/Sparse"
#include "vendor/eigen/Eigen/IterativeLinearSolvers"
using vec_x = Eigen::VectorXd;
using SparseMt = Eigen::Spars... | 28.99802 | 142 | 0.687449 | CompilerLuke |
4877611196a94063f1ece7284bfc9989486d7d8a | 5,196 | cc | C++ | nodejs-mobile/deps/chakrashim/src/v8propertydescriptor.cc | xuelongqy/cnode | ac256264d329e68b6c5ae3281b0e7bb5a95ae164 | [
"MIT"
] | null | null | null | nodejs-mobile/deps/chakrashim/src/v8propertydescriptor.cc | xuelongqy/cnode | ac256264d329e68b6c5ae3281b0e7bb5a95ae164 | [
"MIT"
] | 4 | 2020-03-13T14:45:49.000Z | 2020-03-15T16:31:22.000Z | nodejs-mobile/deps/chakrashim/src/v8propertydescriptor.cc | xuelongqy/cnode | ac256264d329e68b6c5ae3281b0e7bb5a95ae164 | [
"MIT"
] | 1 | 2020-03-15T16:02:18.000Z | 2020-03-15T16:02:18.000Z | // Copyright Microsoft. All rights reserved.
//
// 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, ... | 30.209302 | 80 | 0.71863 | xuelongqy |
4879704b1b035e0e4ed35ca52bb52035c93c3cd5 | 42,526 | cpp | C++ | TBDAnnotation/src/TBDAnnotation.cpp | marcorighini/tbdannotation | f22d395fce5c6c1007177623b0a0c60f7fcb9d4f | [
"Apache-2.0"
] | 1 | 2021-06-13T10:49:43.000Z | 2021-06-13T10:49:43.000Z | TBDAnnotation/src/TBDAnnotation.cpp | marcorighini/tbdannotation | f22d395fce5c6c1007177623b0a0c60f7fcb9d4f | [
"Apache-2.0"
] | null | null | null | TBDAnnotation/src/TBDAnnotation.cpp | marcorighini/tbdannotation | f22d395fce5c6c1007177623b0a0c60f7fcb9d4f | [
"Apache-2.0"
] | null | null | null | #include "Model/Page.hpp"
#include "Model/Utils.hpp"
#include "Model/DatabaseHandler.hpp"
#include "Model/RegisteredPdfMap.hpp"
#include "Model/FileManager.hpp"
#include "Model/ImageProcessor.hpp"
#include "Model/Triangle.hpp"
#include "Model/FeaturesManager.hpp"
#include "Model/WebCamCapture.hpp"
#include <iostream>
#... | 39.230627 | 142 | 0.647298 | marcorighini |
487d70365525e0524e8b956701e07282308b3b69 | 10,951 | cc | C++ | selfdrive/ui/qt/offroad/moc_networking.cc | leech2000/kona0813 | c3e73e220b86614b82959712668408a48c33ebd3 | [
"MIT"
] | 1 | 2022-03-23T13:52:40.000Z | 2022-03-23T13:52:40.000Z | selfdrive/ui/qt/offroad/moc_networking.cc | leech2000/kona0813 | c3e73e220b86614b82959712668408a48c33ebd3 | [
"MIT"
] | null | null | null | selfdrive/ui/qt/offroad/moc_networking.cc | leech2000/kona0813 | c3e73e220b86614b82959712668408a48c33ebd3 | [
"MIT"
] | 5 | 2022-03-24T16:18:47.000Z | 2022-03-30T02:18:49.000Z | /****************************************************************************
** Meta object code from reading C++ file 'networking.h'
**
** Created by: The Qt Meta Object Compiler version 67 (Qt 5.12.8)
**
** WARNING! All changes made in this file will be lost!
*********************************************************... | 29.438172 | 100 | 0.611816 | leech2000 |
487e0dfee4d2acf3dc12089a338bb6849b6daecd | 7,677 | hpp | C++ | include/dualsynth/vs_wrapper.hpp | msg7086/MiniDeen | 0342ed55d8cf2b5cb4077ff206d4e5bbaac734fa | [
"MIT"
] | 6 | 2020-04-11T06:59:28.000Z | 2021-07-20T14:31:01.000Z | include/dualsynth/vs_wrapper.hpp | HomeOfAviSynthPlusEvolution/neo_Gradient_Mask | d460f6070ece54e1a8fded93f9caacb718256ceb | [
"MIT"
] | 2 | 2020-05-31T23:48:16.000Z | 2022-03-28T09:41:50.000Z | include/dualsynth/vs_wrapper.hpp | HomeOfAviSynthPlusEvolution/neo_TMedian | 9b6a8931badeaa1ce7c1b692ddbf1f06620c0e93 | [
"MIT"
] | 2 | 2020-08-15T03:40:50.000Z | 2021-05-30T11:48:34.000Z | /*
* Copyright 2020 Xinyue Lu
*
* DualSynth wrapper - VapourSynth.
*
*/
#pragma once
namespace Plugin {
extern const char* Identifier;
extern const char* Namespace;
extern const char* Description;
}
namespace VSInterface {
const VSAPI * API;
struct VSInDelegator final : InDelegator {
const VSMap ... | 36.732057 | 164 | 0.650775 | msg7086 |
487e2bcec9779c34207ff341520e18663564b64a | 1,050 | cpp | C++ | getopt.cpp | AlexeyAkhunov/espresso | 5c7a57ad6fde2fb3af46171ca1a5c78d250716e9 | [
"MIT"
] | null | null | null | getopt.cpp | AlexeyAkhunov/espresso | 5c7a57ad6fde2fb3af46171ca1a5c78d250716e9 | [
"MIT"
] | null | null | null | getopt.cpp | AlexeyAkhunov/espresso | 5c7a57ad6fde2fb3af46171ca1a5c78d250716e9 | [
"MIT"
] | null | null | null | #include <iostream>
/* File : getopt.c
Author : Henry Spencer, University of Toronto
Updated: 28 April 1984
Purpose: get option letter from argv.
*/
#define NullS ((char *) 0)
char *optarg; /* Global argument pointer. */
int optind = 0; /* Global argv index. */
int getopt(int argc, char* argv[], const ... | 23.333333 | 60 | 0.53619 | AlexeyAkhunov |
487edebbcb3d756bf076d8013b80fd33785d2ff4 | 3,550 | cpp | C++ | 9/9.51/Date.cpp | kousikpramanik/C-_Primer_5th | e21fb665f04b26193fc13f9c2c263b782aea3f3c | [
"MIT"
] | null | null | null | 9/9.51/Date.cpp | kousikpramanik/C-_Primer_5th | e21fb665f04b26193fc13f9c2c263b782aea3f3c | [
"MIT"
] | 2 | 2020-08-15T17:33:00.000Z | 2021-07-05T14:18:26.000Z | 9/9.51/Date.cpp | kousikpramanik/C-_Primer_5th | e21fb665f04b26193fc13f9c2c263b782aea3f3c | [
"MIT"
] | 1 | 2020-08-15T17:24:54.000Z | 2020-08-15T17:24:54.000Z | #include "Date.h"
#include <stdexcept>
#include <string>
#include <array>
#include <cctype>
Date::Date(unsigned a, unsigned b, unsigned c, unsigned style) : yyyy(a), mm(b), dd(c) {
switch (style) {
case 1: // dd/mm/yyyy
dd = a;
mm = b;
yyyy = c;
break;
... | 30.34188 | 115 | 0.498592 | kousikpramanik |
487f422835613b034bde30d95dae871b83bc2c2f | 7,152 | hpp | C++ | include/UnityEngine/TestTools/TestRunner/GUI/SynchronousFilter.hpp | RedBrumbler/BeatSaber-Quest-Codegen | 73dda50b5a3e51f10d86b766dcaa24b0c6226e25 | [
"Unlicense"
] | null | null | null | include/UnityEngine/TestTools/TestRunner/GUI/SynchronousFilter.hpp | RedBrumbler/BeatSaber-Quest-Codegen | 73dda50b5a3e51f10d86b766dcaa24b0c6226e25 | [
"Unlicense"
] | null | null | null | include/UnityEngine/TestTools/TestRunner/GUI/SynchronousFilter.hpp | RedBrumbler/BeatSaber-Quest-Codegen | 73dda50b5a3e51f10d86b766dcaa24b0c6226e25 | [
"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: NUnit.Framework.Interfaces.I... | 62.191304 | 293 | 0.739793 | RedBrumbler |
487f85e84100134aaad3a16abd62bef51302e3bd | 5,137 | cc | C++ | google/cloud/pubsub/internal/default_subscription_batch_source.cc | orinem/google-cloud-cpp | c43f73e9abeb2b9d8a6e99f7d9750cba37f2f6b1 | [
"Apache-2.0"
] | null | null | null | google/cloud/pubsub/internal/default_subscription_batch_source.cc | orinem/google-cloud-cpp | c43f73e9abeb2b9d8a6e99f7d9750cba37f2f6b1 | [
"Apache-2.0"
] | null | null | null | google/cloud/pubsub/internal/default_subscription_batch_source.cc | orinem/google-cloud-cpp | c43f73e9abeb2b9d8a6e99f7d9750cba37f2f6b1 | [
"Apache-2.0"
] | null | null | null | // Copyright 2020 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in w... | 38.916667 | 77 | 0.716177 | orinem |
488164e55a149881e57cb01d4a1487931c57f1e4 | 291 | hh | C++ | src/Zynga/Framework/Dynamic/V1/Mocks/StaticClass.hh | chintan-j-patel/zynga-hacklang-framework | d9893b8873e3c8c7223772fd3c94d2531760172a | [
"MIT"
] | 19 | 2018-04-23T09:30:48.000Z | 2022-03-06T21:35:18.000Z | src/Zynga/Framework/Dynamic/V1/Mocks/StaticClass.hh | chintan-j-patel/zynga-hacklang-framework | d9893b8873e3c8c7223772fd3c94d2531760172a | [
"MIT"
] | 22 | 2017-11-27T23:39:25.000Z | 2019-08-09T08:56:57.000Z | src/Zynga/Framework/Dynamic/V1/Mocks/StaticClass.hh | chintan-j-patel/zynga-hacklang-framework | d9893b8873e3c8c7223772fd3c94d2531760172a | [
"MIT"
] | 28 | 2017-11-16T20:53:56.000Z | 2021-01-04T11:13:17.000Z | <?hh // strict
namespace Zynga\Framework\Dynamic\V1\Mocks;
class StaticClass {
public static function testFunction(): bool {
return true;
}
public static function testFunctionWithParams(
string $param1,
int $param2,
): string {
return $param1.":".$param2;
}
}
| 15.315789 | 48 | 0.666667 | chintan-j-patel |
4888983725aab70b59e29dcc1ff408874f01b402 | 1,227 | cpp | C++ | Game/Source/Crate.cpp | KuronoaScarlet/ProjectII | 5038d4366f39f26ec70cbebaf06d72e7c83e52a3 | [
"MIT"
] | null | null | null | Game/Source/Crate.cpp | KuronoaScarlet/ProjectII | 5038d4366f39f26ec70cbebaf06d72e7c83e52a3 | [
"MIT"
] | 1 | 2021-02-25T11:10:15.000Z | 2021-04-18T16:48:04.000Z | Game/Source/Crate.cpp | KuronoaScarlet/ProjectII | 5038d4366f39f26ec70cbebaf06d72e7c83e52a3 | [
"MIT"
] | null | null | null | #include "Crate.h"
#include "App.h"
#include "Render.h"
#include "Collisions.h"
#include "Collider.h"
#include "FadeToBlack.h"
#include "Scene1.h"
#include "Title.h"
#include "Map.h"
#include "Audio.h"
#include "EntityManager.h"
#include "Fonts.h"
#include "Defs.h"
#include "DialogSystem.h"
Crate::Crate(Module* liste... | 18.044118 | 128 | 0.713121 | KuronoaScarlet |
489b33ab5348de67e5166d8f5f173ec3f5272b21 | 3,651 | cpp | C++ | Util/FileSearcher.cpp | danzimm/zld | 3b0b1f1511d7a91c2ec89626be6ef3e99494c395 | [
"MIT"
] | null | null | null | Util/FileSearcher.cpp | danzimm/zld | 3b0b1f1511d7a91c2ec89626be6ef3e99494c395 | [
"MIT"
] | null | null | null | Util/FileSearcher.cpp | danzimm/zld | 3b0b1f1511d7a91c2ec89626be6ef3e99494c395 | [
"MIT"
] | null | null | null | // Copyright (c) 2020 Daniel Zimmerman
#include "Util/FileSearcher.h"
#include "llvm/Support/FileSystem.h"
#include "llvm/Support/Path.h"
namespace llvm {
namespace ald {
namespace {
PathList processSDKPrefixes(const std::vector<std::string> &SDKPrefixes,
const std::unique_ptr<Path> &C... | 23.862745 | 79 | 0.599288 | danzimm |
489b64cd17512088720803ddd1993fd6bfbcef25 | 495 | cpp | C++ | 02. Bit Manipulation/05 One Odd Occurring/Bonus Question.cpp | VivekYadav105/Data-Structures-and-Algorithms | 7287912da8068c9124e0bb89c93c4d52aa48c51f | [
"MIT"
] | 190 | 2021-02-10T17:01:01.000Z | 2022-03-20T00:21:43.000Z | 02. Bit Manipulation/05 One Odd Occurring/Bonus Question.cpp | VivekYadav105/Data-Structures-and-Algorithms | 7287912da8068c9124e0bb89c93c4d52aa48c51f | [
"MIT"
] | null | null | null | 02. Bit Manipulation/05 One Odd Occurring/Bonus Question.cpp | VivekYadav105/Data-Structures-and-Algorithms | 7287912da8068c9124e0bb89c93c4d52aa48c51f | [
"MIT"
] | 27 | 2021-03-26T11:35:15.000Z | 2022-03-06T07:34:54.000Z | #include<bits/stdc++.h>
using namespace std;
//find the element which is missing from the range 1 to n
//trick 1 : xor of same numbers gives zero
//trick 2 : xor of zero with any number returns original number
int missing(int a[], int n)//time comp. O(n)
{
int X = 0;
for (int i = 1; i <= n; i++)
{
X = X ^ i;
}
... | 15.967742 | 63 | 0.553535 | VivekYadav105 |
48ae54bc80180d3096abb3c3f70a1040c550eb86 | 346 | cpp | C++ | UOJ/147/make.cpp | sjj118/OI-Code | 964ea6e799d14010f305c7e4aee269d860a781f7 | [
"MIT"
] | null | null | null | UOJ/147/make.cpp | sjj118/OI-Code | 964ea6e799d14010f305c7e4aee269d860a781f7 | [
"MIT"
] | null | null | null | UOJ/147/make.cpp | sjj118/OI-Code | 964ea6e799d14010f305c7e4aee269d860a781f7 | [
"MIT"
] | null | null | null | #include<bits/stdc++.h>
using namespace std;
int T=4,n=23;
int cnt[15];
int main(){
srand(time(0));freopen("code.in","w",stdout);
printf("%d %d\n",T,n);
while(T--){
memset(cnt,0,sizeof(cnt));
for(int i=1;i<=n;++i){
int t=rand()%14;
while(!(t&&cnt[t]<=4||cnt[t]<=2))t=rand()%14;
printf("%d %d\n",t,rand()%... | 19.222222 | 48 | 0.546243 | sjj118 |
48b637bbaa2258a7eaa7656c6e69e947ba61cfb3 | 4,750 | cpp | C++ | provant_simulator_utils/provant_simulator_sdf_parser/src/sdf_parser.cpp | Guiraffo/ProVANT_Simulator | ef2260204b13f39a9f83ad2ab88a9552a0699bff | [
"MIT"
] | null | null | null | provant_simulator_utils/provant_simulator_sdf_parser/src/sdf_parser.cpp | Guiraffo/ProVANT_Simulator | ef2260204b13f39a9f83ad2ab88a9552a0699bff | [
"MIT"
] | null | null | null | provant_simulator_utils/provant_simulator_sdf_parser/src/sdf_parser.cpp | Guiraffo/ProVANT_Simulator | ef2260204b13f39a9f83ad2ab88a9552a0699bff | [
"MIT"
] | null | null | null | /*
* This file is part of the ProVANT simulator project.
* Licensed under the terms of the MIT open source license. More details at
* https://github.com/Guiraffo/ProVANT-Simulator/blob/master/LICENSE.md
*/
/**
* @file sdf_parser.cpp
* @brief This file contains the implementation of the SDFParser class.
*
* @aut... | 19 | 118 | 0.656842 | Guiraffo |
48b7e0c4de443585c7baac70d42937cd33fc9edc | 1,102 | cpp | C++ | src/audio/EmuEqualizer.cpp | AlexanderBrevig/emu-jukebox | 131f73934e5aea4d587817b999e6869fa692d0ba | [
"BSD-2-Clause"
] | 9 | 2019-03-09T16:55:00.000Z | 2022-02-08T21:24:59.000Z | src/audio/EmuEqualizer.cpp | AlexanderBrevig/emu-jukebox | 131f73934e5aea4d587817b999e6869fa692d0ba | [
"BSD-2-Clause"
] | 69 | 2019-03-09T21:54:12.000Z | 2021-12-26T09:30:20.000Z | src/audio/EmuEqualizer.cpp | AlexanderBrevig/emu-jukebox | 131f73934e5aea4d587817b999e6869fa692d0ba | [
"BSD-2-Clause"
] | 2 | 2019-03-11T19:03:54.000Z | 2019-04-18T19:55:51.000Z | //
// Created by robin on 16.01.19.
//
#include "EmuEqualizer.h"
ebox::EmuEqualizer::EmuEqualizer()
{
}
ebox::EmuEqualizer::EmuEqualizer(Music_Emu *emu)
{
initialize(emu);
}
void ebox::EmuEqualizer::draw()
{
if(m_emu != nullptr)
{
float treble = static_cast<float>(m_equalizer.treble);
f... | 27.55 | 102 | 0.642468 | AlexanderBrevig |
48be8f47fa1fcffc64d24d04606e30167ca2a31b | 6,220 | cpp | C++ | src/wire/libevent_callbacks.cpp | xhad1234/peloton | 60dea12ed528bc8873b1c43d1eca841a5d76ee44 | [
"Apache-2.0"
] | 2 | 2017-07-24T12:25:58.000Z | 2022-03-17T11:43:42.000Z | src/wire/libevent_callbacks.cpp | xhad1234/peloton | 60dea12ed528bc8873b1c43d1eca841a5d76ee44 | [
"Apache-2.0"
] | 2 | 2016-10-01T00:36:16.000Z | 2016-11-05T23:40:07.000Z | src/wire/libevent_callbacks.cpp | xhad1234/peloton | 60dea12ed528bc8873b1c43d1eca841a5d76ee44 | [
"Apache-2.0"
] | 3 | 2016-09-24T01:22:30.000Z | 2019-01-09T16:17:25.000Z | //===----------------------------------------------------------------------===//
//
// Peloton
//
// libevent_callbacks.cpp
//
// Implements Libevent callbacks for the protocol and their helpers
//
// Identification: src/wire/libevent_callbacks.cpp
//
// Copyright (c) 2015-16, Carnegie Mellon Un... | 28.796296 | 87 | 0.555466 | xhad1234 |
48befcbd7f437ad897f4935c59fb6c8a2d7fe457 | 951 | hpp | C++ | abcd/util/Debug.hpp | Airbitz/airbitz-core-private | dc6742a5622f6d8bae750e60fcee3bb473bc67ce | [
"BSD-2-Clause-FreeBSD"
] | 1 | 2021-05-28T02:52:00.000Z | 2021-05-28T02:52:00.000Z | abcd/util/Debug.hpp | Airbitz/airbitz-core-private | dc6742a5622f6d8bae750e60fcee3bb473bc67ce | [
"BSD-2-Clause-FreeBSD"
] | null | null | null | abcd/util/Debug.hpp | Airbitz/airbitz-core-private | dc6742a5622f6d8bae750e60fcee3bb473bc67ce | [
"BSD-2-Clause-FreeBSD"
] | null | null | null | /*
* Copyright (c) 2015, Airbitz, Inc.
* All rights reserved.
*
* See the LICENSE file for more information.
*/
#ifndef ABC_UTIL_DEBUG_HPP
#define ABC_UTIL_DEBUG_HPP
#include "Status.hpp"
#include "Data.hpp"
#define DEBUG_LEVEL 1
#define ABC_DebugLevel(level, ...) \
{ \
i... | 17.943396 | 48 | 0.500526 | Airbitz |
48c1a6dd1f2af3f73146257ac08639a7ba02b21e | 2,551 | cpp | C++ | higan/ms/cpu/bus.cpp | 13824125580/higan | fbdd3f980b65412c362096579869ae76730e4118 | [
"Intel",
"ISC"
] | 38 | 2018-04-05T05:00:05.000Z | 2022-02-06T00:02:02.000Z | higan/ms/cpu/bus.cpp | 13824125580/higan | fbdd3f980b65412c362096579869ae76730e4118 | [
"Intel",
"ISC"
] | 1 | 2018-04-29T19:45:14.000Z | 2018-04-29T19:45:14.000Z | higan/ms/cpu/bus.cpp | 13824125580/higan | fbdd3f980b65412c362096579869ae76730e4118 | [
"Intel",
"ISC"
] | 8 | 2018-04-16T22:37:46.000Z | 2021-02-10T07:37:03.000Z | auto CPU::read(uint16 addr) -> uint8 {
uint8 data;
if(auto result = cartridge.read(addr)) {
data = result();
} else if(addr >= 0xc000) {
data = ram[addr & 0x1fff];
}
if(auto result = cheat.find(addr, data)) {
data = result();
}
return data;
}
auto CPU::write(uint16 addr, uint8 data) -> voi... | 25.257426 | 100 | 0.562132 | 13824125580 |
48c86877a2224e4bd32455579428f1b9d68b83de | 3,321 | cpp | C++ | mainwindow.cpp | isc1/QtThread01 | 7f74601091ec35cee7c89546365be6400f386fbb | [
"MIT"
] | null | null | null | mainwindow.cpp | isc1/QtThread01 | 7f74601091ec35cee7c89546365be6400f386fbb | [
"MIT"
] | null | null | null | mainwindow.cpp | isc1/QtThread01 | 7f74601091ec35cee7c89546365be6400f386fbb | [
"MIT"
] | null | null | null | // QtThread01 -- simple threaded GUI example
// see README.md for description.
// This code was written on Qt 5.11.1 on Windows 10. It may run on OS X and Linux with
// modifications but we haven't done that.
// This code is copyright 2018 inhabited.systems, and is shared under the MIT license.
// (See file MIT-Lice... | 34.59375 | 156 | 0.710027 | isc1 |
48c90c29e5117c4520178a9f3f3d505cfb1dbf53 | 14,043 | cpp | C++ | Extern/JUCE/extras/JuceDemo/Source/demos/AudioDemoSynthPage.cpp | vinniefalco/SimpleDJ | 30cf1929eaaf0906a1056a33378e8b330062c691 | [
"MIT"
] | 27 | 2015-05-07T02:10:39.000Z | 2021-06-22T14:52:50.000Z | Extern/JUCE/extras/JuceDemo/Source/demos/AudioDemoSynthPage.cpp | JoseDiazRohena/SimpleDJ | 30cf1929eaaf0906a1056a33378e8b330062c691 | [
"MIT"
] | null | null | null | Extern/JUCE/extras/JuceDemo/Source/demos/AudioDemoSynthPage.cpp | JoseDiazRohena/SimpleDJ | 30cf1929eaaf0906a1056a33378e8b330062c691 | [
"MIT"
] | 14 | 2015-09-12T12:00:22.000Z | 2022-03-08T22:24:24.000Z | /*
==============================================================================
This is an automatically generated file created by the Jucer!
Creation date: 21 Sep 2012 12:10:20pm
Be careful when adding custom code to these files, as only the code within
the "//[xyz]" and "//[/xyz]" sections wil... | 36.007692 | 131 | 0.564053 | vinniefalco |
48d213e5a7c3874a240d009fc50b97f41465e1a5 | 1,137 | cpp | C++ | ProblemSolving/UpdateIT/main.cpp | vikaspachisia/DataStructuresAndAlgorithms | 85aef2715ffa489d1c0d190bcd0442fb336957a2 | [
"MIT"
] | null | null | null | ProblemSolving/UpdateIT/main.cpp | vikaspachisia/DataStructuresAndAlgorithms | 85aef2715ffa489d1c0d190bcd0442fb336957a2 | [
"MIT"
] | null | null | null | ProblemSolving/UpdateIT/main.cpp | vikaspachisia/DataStructuresAndAlgorithms | 85aef2715ffa489d1c0d190bcd0442fb336957a2 | [
"MIT"
] | null | null | null | //scanf and printf is faster than cin and cout.
#include <stdio.h>
using namespace std;
#define MAX_N 10002
void solve_main_problem()
{
char testid[10];
int T, ST, VAL, N, U, Q, L, R, D[MAX_N]{};
scanf("%d",&T);
for (int t = 0; t < T; t++)
{
scanf("%s",&testid);
scanf("%d",&ST);
for (int st = 0; st < ST; st... | 21.055556 | 80 | 0.552331 | vikaspachisia |
48d298b12c587228bb36e2c056b37165c308ee3f | 1,920 | cpp | C++ | examples/xtd.forms.examples/others/form_window_state/src/form_window_state.cpp | BaderEddineOuaich/xtd | 6f28634c7949a541d183879d2de18d824ec3c8b1 | [
"MIT"
] | 1 | 2022-02-25T16:53:06.000Z | 2022-02-25T16:53:06.000Z | examples/xtd.forms.examples/others/form_window_state/src/form_window_state.cpp | leanid/xtd | 2e1ea6537218788ca08901faf8915d4100990b53 | [
"MIT"
] | null | null | null | examples/xtd.forms.examples/others/form_window_state/src/form_window_state.cpp | leanid/xtd | 2e1ea6537218788ca08901faf8915d4100990b53 | [
"MIT"
] | null | null | null | #define TRACE
#include <xtd/xtd>
using namespace xtd;
using namespace xtd::forms;
class form1 : public form {
public:
form1() {
*this << button_full_screen << button_maximize << button_minimize << button_normal;
text("Window state example");
resize += [&] {
button_full_screen.enabled(window_state(... | 30.967742 | 132 | 0.68125 | BaderEddineOuaich |
48d31e8fd116ac94a27d0f06258a4bdd64a08437 | 1,054 | cpp | C++ | WonderMake/Logging/ConsoleLogger.cpp | nicolasgustafsson/WonderMake | 9661d5dab17cf98e06daf6ea77c5927db54d62f9 | [
"MIT"
] | 3 | 2020-03-27T15:25:19.000Z | 2022-01-18T14:12:25.000Z | WonderMake/Logging/ConsoleLogger.cpp | nicolasgustafsson/WonderMake | 9661d5dab17cf98e06daf6ea77c5927db54d62f9 | [
"MIT"
] | null | null | null | WonderMake/Logging/ConsoleLogger.cpp | nicolasgustafsson/WonderMake | 9661d5dab17cf98e06daf6ea77c5927db54d62f9 | [
"MIT"
] | null | null | null | #include "pch.h"
#include "ConsoleLogger.h"
#include <iostream>
REGISTER_SYSTEM(ConsoleLogger);
ConsoleLogger::ConsoleLogger() noexcept
: mySubscriber(BindHelper(&ConsoleLogger::OnLogMessage, this))
{}
void ConsoleLogger::OnLogMessage(const SLogMessage& aMessage)
{
if (aMessage.HasTag(TagError))
SetColor(EConsol... | 20.269231 | 65 | 0.740987 | nicolasgustafsson |
48d34b74c007c31fab95977cf6d6dd9971f7dc46 | 2,318 | cpp | C++ | project2D/MushRoom.cpp | deadglow/AIE-AI-Assessment | c010dadb55b1c7152f983d11868055e275c42b42 | [
"MIT"
] | null | null | null | project2D/MushRoom.cpp | deadglow/AIE-AI-Assessment | c010dadb55b1c7152f983d11868055e275c42b42 | [
"MIT"
] | null | null | null | project2D/MushRoom.cpp | deadglow/AIE-AI-Assessment | c010dadb55b1c7152f983d11868055e275c42b42 | [
"MIT"
] | null | null | null | #include "MushRoom.h"
#include <iostream>
#include <fstream>
MushRoom::MushRoom(std::string path)
{
LoadMapData(path);
}
MushRoom::~MushRoom()
{
delete[] mapData;
}
int* MushRoom::GetMapData()
{
return mapData;
}
void MushRoom::LoadMapData(std::string path)
{
//-----------------------------------------... | 17.560606 | 63 | 0.612597 | deadglow |
48d3c666ebc87e5682a1c1166e2da7f88405e7c7 | 2,760 | cpp | C++ | yarpl/test/Single_test.cpp | bli7193/rsocket-cpp | c2abc34687f8ba6bab667029a25f1699531951e8 | [
"Apache-2.0"
] | 217 | 2017-04-29T14:44:39.000Z | 2022-03-29T04:06:17.000Z | yarpl/test/Single_test.cpp | bli7193/rsocket-cpp | c2abc34687f8ba6bab667029a25f1699531951e8 | [
"Apache-2.0"
] | 270 | 2017-04-28T04:12:23.000Z | 2022-03-11T20:39:33.000Z | yarpl/test/Single_test.cpp | bli7193/rsocket-cpp | c2abc34687f8ba6bab667029a25f1699531951e8 | [
"Apache-2.0"
] | 83 | 2017-04-28T02:06:16.000Z | 2022-03-11T20:35:16.000Z | // Copyright (c) Facebook, Inc. and its affiliates.
//
// 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 applicabl... | 29.052632 | 77 | 0.692754 | bli7193 |
48d3d37205bddbb6313b8ce311d2f11ef96ff515 | 1,129 | hpp | C++ | src/time/rk3_tvd.hpp | vanreeslab/murphy | 01c9c56171fcee33cb3c1c93c25617ccf7b8ff83 | [
"BSD-3-Clause"
] | 1 | 2021-12-01T22:12:56.000Z | 2021-12-01T22:12:56.000Z | src/time/rk3_tvd.hpp | vanreeslab/murphy | 01c9c56171fcee33cb3c1c93c25617ccf7b8ff83 | [
"BSD-3-Clause"
] | null | null | null | src/time/rk3_tvd.hpp | vanreeslab/murphy | 01c9c56171fcee33cb3c1c93c25617ccf7b8ff83 | [
"BSD-3-Clause"
] | null | null | null | #ifndef SRC_RK3_HPP
#define SRC_RK3_HPP
#include "core/macros.hpp"
#include "core/types.hpp"
#include "grid/field.hpp"
#include "grid/grid.hpp"
#include "tools/prof.hpp"
#include "rkfunctor.hpp"
/**
* @brief provides an implementation of a RK3 -TVD using two registers
*
* For more detail, cfr
* Total Variat... | 29.710526 | 101 | 0.677591 | vanreeslab |
48d82faf071e49eba79bd8ad901d78ae36341065 | 17,201 | cpp | C++ | src/DevicePage.cpp | my-devices/gateway | 6c2036551f2609e9834d3b7cf012db19ebeafafe | [
"BSL-1.0"
] | 4 | 2017-12-22T17:28:34.000Z | 2022-03-09T16:41:44.000Z | src/DevicePage.cpp | my-devices/gateway | 6c2036551f2609e9834d3b7cf012db19ebeafafe | [
"BSL-1.0"
] | null | null | null | src/DevicePage.cpp | my-devices/gateway | 6c2036551f2609e9834d3b7cf012db19ebeafafe | [
"BSL-1.0"
] | 1 | 2021-09-29T06:06:36.000Z | 2021-09-29T06:06:36.000Z | //
// DevicePage.cpp
//
// This file has been generated from DevicePage.cpsp on 2021-11-27 20:17:05.
//
#include "DevicePage.h"
#include "Poco/Net/HTTPServerRequest.h"
#include "Poco/Net/HTTPServerResponse.h"
#include "Poco/Net/HTMLForm.h"
#include "Poco/DeflatingStream.h"
#include "DevicePageController.h"
#include "... | 47.780556 | 124 | 0.565432 | my-devices |
48dc8ec4b272b234dce70371486b61593228249d | 2,195 | cpp | C++ | Kamek/src/levelnames.cpp | N-I-N-0/NSMBWii-Mod | 56e45eeb3696f7dfa75dca13fdc2a384c8baa5fe | [
"MIT"
] | 5 | 2021-07-02T19:37:47.000Z | 2021-08-21T21:31:55.000Z | Kamek/src/levelnames.cpp | N-I-N-0/NSMBWii-Mod | 56e45eeb3696f7dfa75dca13fdc2a384c8baa5fe | [
"MIT"
] | null | null | null | Kamek/src/levelnames.cpp | N-I-N-0/NSMBWii-Mod | 56e45eeb3696f7dfa75dca13fdc2a384c8baa5fe | [
"MIT"
] | 3 | 2021-03-11T09:42:52.000Z | 2022-01-31T00:12:59.000Z | #include <common.h>
#include <actors.h>
#include <stage.h>
#include "levelinfo_old.h"
#include "fileload.h"
#include "layoutlib.h"
//#define DEBUG_NAMES
#ifndef DEBUG_NAMES
#endif
extern char CurrentLevel;
extern char CurrentWorld;
int DoNames(int state) {
int wnum = (int)CurrentWorld;
int lnum = (int)CurrentLeve... | 27.4375 | 96 | 0.645558 | N-I-N-0 |
48de86ea9cb2d42f4074f28d37c355c09f5bd3fd | 3,249 | cpp | C++ | packages/data_gen/electron_photon/src/DataGen_AdjointIncoherentGridGenerator.cpp | lkersting/SCR-2123 | 06ae3d92998664a520dc6a271809a5aeffe18f72 | [
"BSD-3-Clause"
] | null | null | null | packages/data_gen/electron_photon/src/DataGen_AdjointIncoherentGridGenerator.cpp | lkersting/SCR-2123 | 06ae3d92998664a520dc6a271809a5aeffe18f72 | [
"BSD-3-Clause"
] | null | null | null | packages/data_gen/electron_photon/src/DataGen_AdjointIncoherentGridGenerator.cpp | lkersting/SCR-2123 | 06ae3d92998664a520dc6a271809a5aeffe18f72 | [
"BSD-3-Clause"
] | null | null | null | //---------------------------------------------------------------------------//
//!
//! \file DataGen_AdjointIncoherentGridGenerator.cpp
//! \author Alex Robinson
//! \brief Adjoint incoherent grid generator definition
//!
//---------------------------------------------------------------------------//
// FRENSIE In... | 32.818182 | 79 | 0.709449 | lkersting |
48e26af1d53050950cd807a2b6d8e128e3ff1d8c | 5,420 | hpp | C++ | src/uml/src_gen/uml/impl/ReadVariableActionImpl.hpp | dataliz9r/MDE4CPP | 9c5ce01c800fb754c371f1a67f648366eeabae49 | [
"MIT"
] | null | null | null | src/uml/src_gen/uml/impl/ReadVariableActionImpl.hpp | dataliz9r/MDE4CPP | 9c5ce01c800fb754c371f1a67f648366eeabae49 | [
"MIT"
] | 1 | 2019-03-01T00:54:13.000Z | 2019-03-04T02:15:50.000Z | src/uml/src_gen/uml/impl/ReadVariableActionImpl.hpp | vallesch/MDE4CPP | 7f8a01dd6642820913b2214d255bef2ea76be309 | [
"MIT"
] | null | null | null | //********************************************************************
//*
//* Warning: This file was generated by ecore4CPP Generator
//*
//********************************************************************
#ifndef UML_READVARIABLEACTIONREADVARIABLEACTIONIMPL_HPP
#define UML_READVARIABLEACTIONREADVARIABLEACTION... | 38.169014 | 162 | 0.65 | dataliz9r |
48eb0c326683df21cac8f4746870a48f58ece808 | 5,439 | cpp | C++ | source/ktwgEngine/contact.cpp | JasonWyx/ktwgEngine | 410ba799f7000895995b9f9fc59d738f293f8871 | [
"MIT"
] | null | null | null | source/ktwgEngine/contact.cpp | JasonWyx/ktwgEngine | 410ba799f7000895995b9f9fc59d738f293f8871 | [
"MIT"
] | 12 | 2019-09-15T07:48:18.000Z | 2019-12-08T17:23:22.000Z | source/ktwgEngine/contact.cpp | JasonWyx/ktwgEngine | 410ba799f7000895995b9f9fc59d738f293f8871 | [
"MIT"
] | null | null | null | #include "contact.h"
#include "contactlistener.h"
#include "fcollider.h"
#include "boxcollider.h"
#include "rigidbody.h"
#include "gjk.h"
#include "entity.h"
void Contact::Update(ContactListener* listener)
{
// Get all necessary information from colliders
// transform must be a world transformation
BoxCollider* ... | 31.807018 | 126 | 0.668138 | JasonWyx |
48eb6daa171615dce1bd44281b1aa03b6536eae2 | 450 | cpp | C++ | utils/jsonutil.cpp | InkosiZhong/Space | d38f9595e02700eafbd1b44306bff24c00ef6933 | [
"MIT"
] | 4 | 2021-09-18T02:56:09.000Z | 2022-03-16T12:38:39.000Z | utils/jsonutil.cpp | InkosiZhong/Space | d38f9595e02700eafbd1b44306bff24c00ef6933 | [
"MIT"
] | null | null | null | utils/jsonutil.cpp | InkosiZhong/Space | d38f9595e02700eafbd1b44306bff24c00ef6933 | [
"MIT"
] | 1 | 2022-01-11T16:44:50.000Z | 2022-01-11T16:44:50.000Z | #include "jsonutil.h"
Util::JsonUtil::JsonUtil(std::string str) {
parseJson(str);
}
bool Util::JsonUtil::parseJson(std::string str) {
Json::CharReaderBuilder b;
Json::CharReader* reader(b.newCharReader());
JSONCPP_STRING errs;
bool ret = reader->parse(str.c_str(), str.c_str() + std::strlen(str.c_s... | 23.684211 | 98 | 0.662222 | InkosiZhong |
48edae10b343ddee3e9f0e133d6af4b00ea353fc | 2,240 | cpp | C++ | library/view/controls/focusable_border.cpp | topillar/PuTTY-ng | 1f5bf26de0f42e03ef4f100fa879b16216d61abf | [
"MIT"
] | 39 | 2019-06-22T12:25:54.000Z | 2022-03-14T05:42:44.000Z | library/view/controls/focusable_border.cpp | topillar/PuTTY-ng | 1f5bf26de0f42e03ef4f100fa879b16216d61abf | [
"MIT"
] | 5 | 2019-06-29T10:58:43.000Z | 2020-09-04T08:44:09.000Z | library/view/controls/focusable_border.cpp | topillar/PuTTY-ng | 1f5bf26de0f42e03ef4f100fa879b16216d61abf | [
"MIT"
] | 10 | 2019-08-07T06:08:23.000Z | 2022-03-14T05:42:47.000Z |
#include "focusable_border.h"
#include "ui_gfx/canvas_skia.h"
#include "ui_gfx/insets.h"
namespace
{
// Define the size of the insets
const int kTopInsetSize = 4;
const int kLeftInsetSize = 4;
const int kBottomInsetSize = 4;
const int kRightInsetSize = 4;
// Color settings for border.
/... | 29.866667 | 79 | 0.632143 | topillar |
48ef738189014736312ddf3d2d0eb40222708568 | 2,573 | cpp | C++ | src/saveMap.cpp | softdream/Slam-Project-Of-MyOwn | 6d6db8a5761e8530971b203983ea2215620aa5c2 | [
"Apache-2.0"
] | 21 | 2021-07-19T08:15:53.000Z | 2022-03-31T07:07:55.000Z | src/saveMap.cpp | Forrest-Z/Slam-Project-Of-MyOwn | 6d6db8a5761e8530971b203983ea2215620aa5c2 | [
"Apache-2.0"
] | 3 | 2022-03-02T12:55:37.000Z | 2022-03-07T12:12:57.000Z | src/saveMap.cpp | softdream/Slam-Project-Of-MyOwn | 6d6db8a5761e8530971b203983ea2215620aa5c2 | [
"Apache-2.0"
] | 4 | 2021-08-12T15:11:09.000Z | 2022-01-08T14:20:36.000Z | #include "saveMap.h"
namespace slam{
SaveMap::SaveMap()
{
}
SaveMap::~SaveMap()
{
}
bool SaveMap::openMapFile( const std::string &fileName )
{
outfile.open( fileName, std::ios::binary | std::ios::out );
if( !outfile.is_open() ){
std::cerr<<"Failed to open the map file ..."<<std::endl;
return false;
}
... | 23.18018 | 100 | 0.690634 | softdream |
f701b5eb4571d0dace475292f6ee1b6ce56cbcf2 | 5,408 | cpp | C++ | components/hifi3/rkdsp/drivers/intc/intc.cpp | h-hys/rk2108_202012_SDK | c0880365a8eb208979df0a45ae350c8fe8f565c6 | [
"Apache-2.0"
] | null | null | null | components/hifi3/rkdsp/drivers/intc/intc.cpp | h-hys/rk2108_202012_SDK | c0880365a8eb208979df0a45ae350c8fe8f565c6 | [
"Apache-2.0"
] | 1 | 2021-08-19T10:47:10.000Z | 2021-08-19T10:47:10.000Z | components/hifi3/rkdsp/drivers/intc/intc.cpp | h-hys/rk2108_202012_SDK | c0880365a8eb208979df0a45ae350c8fe8f565c6 | [
"Apache-2.0"
] | 3 | 2021-04-24T23:33:56.000Z | 2022-01-14T07:13:38.000Z | /*
* Copyright (c) 2019 Rockchip Electronics Co. Ltd.
* Author: Huaping Liao <huaping.liao@rock-chips.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
*
* http://www.apache.o... | 26.252427 | 75 | 0.66716 | h-hys |
f708082fb3f69836363b51a23717eaaffa118604 | 3,751 | cpp | C++ | Visual Mercutio/zModel/PSS_UserEntity.cpp | Jeanmilost/Visual-Mercutio | f079730005b6ce93d5e184bb7c0893ccced3e3ab | [
"MIT"
] | 1 | 2022-01-31T06:24:24.000Z | 2022-01-31T06:24:24.000Z | Visual Mercutio/zModel/PSS_UserEntity.cpp | Jeanmilost/Visual-Mercutio | f079730005b6ce93d5e184bb7c0893ccced3e3ab | [
"MIT"
] | 2 | 2021-04-11T15:50:42.000Z | 2021-06-05T08:23:04.000Z | Visual Mercutio/zModel/PSS_UserEntity.cpp | Jeanmilost/Visual-Mercutio | f079730005b6ce93d5e184bb7c0893ccced3e3ab | [
"MIT"
] | 2 | 2021-01-08T00:55:18.000Z | 2022-01-31T06:24:18.000Z | /****************************************************************************
* ==> PSS_UserEntity ------------------------------------------------------*
****************************************************************************
* Description : Provides an user entity *
* Devel... | 31.258333 | 85 | 0.384164 | Jeanmilost |
f7082d839adb42570f822c19cd5030ddc1d6d7f9 | 142 | hpp | C++ | engine/include/ECS/EntityID.hpp | Trypio/Aeyon3D | 6e630228fe8f8fe269ab1dfc835a7c7c5d314c2b | [
"MIT"
] | null | null | null | engine/include/ECS/EntityID.hpp | Trypio/Aeyon3D | 6e630228fe8f8fe269ab1dfc835a7c7c5d314c2b | [
"MIT"
] | null | null | null | engine/include/ECS/EntityID.hpp | Trypio/Aeyon3D | 6e630228fe8f8fe269ab1dfc835a7c7c5d314c2b | [
"MIT"
] | null | null | null | //
//
//
#ifndef AEYON3D_ENTITYID_HPP
#define AEYON3D_ENTITYID_HPP
#include "UUID.hpp"
namespace aeyon
{
using EntityID = UUID;
}
#endif
| 8.875 | 28 | 0.71831 | Trypio |
f70a2db5f8ca8998a0bee8002662fe5fa85330ca | 1,254 | cpp | C++ | tests/geometry/PointTest.cpp | cuhkshenzhen/CUHKSZLib | 4ad122d7e736cda3e768c8ae8dcad1f9fb195a1f | [
"MIT"
] | null | null | null | tests/geometry/PointTest.cpp | cuhkshenzhen/CUHKSZLib | 4ad122d7e736cda3e768c8ae8dcad1f9fb195a1f | [
"MIT"
] | 29 | 2017-04-26T09:15:28.000Z | 2017-05-21T15:50:37.000Z | tests/geometry/PointTest.cpp | cuhkshenzhen/CUHKSZLib | 4ad122d7e736cda3e768c8ae8dcad1f9fb195a1f | [
"MIT"
] | 7 | 2017-04-26T09:32:39.000Z | 2021-11-03T02:00:07.000Z | #include "geometry/Point.h"
#include "gtest/gtest.h"
TEST(Point, initialize) {
cuhksz::Point<1> a1, b1(5);
EXPECT_DOUBLE_EQ(b1[0], 5);
cuhksz::Point<2> a2, b2(2, 3);
EXPECT_DOUBLE_EQ(b2[0], 2);
EXPECT_DOUBLE_EQ(b2[1], 3);
cuhksz::Point<3> a3, b3(1, 2, 3);
EXPECT_DOUBLE_EQ(b3[0], 1);
EXPECT_DOUBLE_EQ... | 20.557377 | 41 | 0.600478 | cuhkshenzhen |
f70e36711b3cc099812f883eb1af2d856b5a6cf3 | 2,246 | hpp | C++ | include/codegen/include/UnityEngine/Analytics/DataPrivacy_UserPostData.hpp | Futuremappermydud/Naluluna-Modifier-Quest | bfda34370764b275d90324b3879f1a429a10a873 | [
"MIT"
] | 1 | 2021-11-12T09:29:31.000Z | 2021-11-12T09:29:31.000Z | include/codegen/include/UnityEngine/Analytics/DataPrivacy_UserPostData.hpp | Futuremappermydud/Naluluna-Modifier-Quest | bfda34370764b275d90324b3879f1a429a10a873 | [
"MIT"
] | null | null | null | include/codegen/include/UnityEngine/Analytics/DataPrivacy_UserPostData.hpp | Futuremappermydud/Naluluna-Modifier-Quest | bfda34370764b275d90324b3879f1a429a10a873 | [
"MIT"
] | 2 | 2021-10-03T02:14:20.000Z | 2021-11-12T09:29:36.000Z | // Autogenerated from CppHeaderCreator on 7/27/2020 3:10:20 PM
// Created by Sc2ad
// =========================================================================
#pragma once
#pragma pack(push, 8)
// Begin includes
#include "utils/typedefs.h"
// Including type: System.ValueType
#include "System/ValueType.hpp"
// Includin... | 41.592593 | 476 | 0.696794 | Futuremappermydud |
f70f38d9a6c6f07d0088a7d031341a57564ff7a4 | 2,227 | cpp | C++ | engine/scene/AbstractSceneComponent.cpp | zapolnov/game_engine | cd22dc0f49aeadd660eec3ea9b95b1ca2696f97a | [
"MIT",
"Unlicense"
] | null | null | null | engine/scene/AbstractSceneComponent.cpp | zapolnov/game_engine | cd22dc0f49aeadd660eec3ea9b95b1ca2696f97a | [
"MIT",
"Unlicense"
] | null | null | null | engine/scene/AbstractSceneComponent.cpp | zapolnov/game_engine | cd22dc0f49aeadd660eec3ea9b95b1ca2696f97a | [
"MIT",
"Unlicense"
] | null | null | null | /*
* Copyright (c) 2015 Nikolay Zapolnov (zapolnov@gmail.com).
*
* 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, c... | 30.094595 | 92 | 0.722946 | zapolnov |
f7103674b2725a30db075d0b9875f92863943a91 | 2,163 | hpp | C++ | src/budget/MoveRuleCommand.hpp | vimofthevine/UnderBudget | 5711be8e5da3cb7a78da007fe43cf1ce1b796493 | [
"Apache-2.0"
] | 2 | 2016-07-17T02:12:44.000Z | 2016-11-22T14:04:55.000Z | src/budget/MoveRuleCommand.hpp | vimofthevine/UnderBudget | 5711be8e5da3cb7a78da007fe43cf1ce1b796493 | [
"Apache-2.0"
] | null | null | null | src/budget/MoveRuleCommand.hpp | vimofthevine/UnderBudget | 5711be8e5da3cb7a78da007fe43cf1ce1b796493 | [
"Apache-2.0"
] | null | null | null | /*
* Copyright 2013 Kyle Treubig
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to... | 27.730769 | 75 | 0.725381 | vimofthevine |
f71498253a5849507519a721c7e7613c58cdbc29 | 1,628 | cpp | C++ | SurfaceReconstruction/App/Main.cpp | namibj/TSR | df14f4a9fc175b2a6b0c14b3ace924f2364afe7b | [
"BSD-3-Clause"
] | 102 | 2017-10-17T10:10:59.000Z | 2022-01-19T02:10:29.000Z | SurfaceReconstruction/App/Main.cpp | namibj/TSR | df14f4a9fc175b2a6b0c14b3ace924f2364afe7b | [
"BSD-3-Clause"
] | 2 | 2019-12-21T11:59:15.000Z | 2020-09-08T11:38:36.000Z | SurfaceReconstruction/App/Main.cpp | namibj/TSR | df14f4a9fc175b2a6b0c14b3ace924f2364afe7b | [
"BSD-3-Clause"
] | 27 | 2017-10-18T09:37:34.000Z | 2022-03-22T01:30:51.000Z | /*
* Copyright (C) 2018 by Author: Aroudj, Samir
* TU Darmstadt - Graphics, Capture and Massively Parallel Computing
* All rights reserved.
*
* This software may be modified and distributed under the terms
* of the BSD 3-Clause license. See the License.txt file for details.
*/
#include "App/TSR.h"
#incl... | 29.6 | 129 | 0.7414 | namibj |
f71844aa3ae2e1920253e6c6df586e9eaace0c2b | 2,364 | cpp | C++ | dragwidget.cpp | sergiosvieira/mog | f23d2b18851bb58c3e60aae9b10deec023f2c9c8 | [
"MIT"
] | null | null | null | dragwidget.cpp | sergiosvieira/mog | f23d2b18851bb58c3e60aae9b10deec023f2c9c8 | [
"MIT"
] | null | null | null | dragwidget.cpp | sergiosvieira/mog | f23d2b18851bb58c3e60aae9b10deec023f2c9c8 | [
"MIT"
] | null | null | null | #include <QtWidgets>
#include "dragwidget.h"
DragWidget::DragWidget(DragWidgetType dragType, QWidget *parent)
: QLabel(parent)
{
setMinimumSize(32, 32);
setFrameStyle(QFrame::Sunken | QFrame::StyledPanel);
// setAcceptDrops(true);
QString imgPath;
switch (dragType) {
case Drag... | 26.266667 | 89 | 0.604061 | sergiosvieira |
f728cabf6b5d607ee401447f71862a76c52f2c63 | 2,401 | cpp | C++ | div15.cpp | ohmyjons/SPOJ-1 | 870ae3b072a3fbc89149b35fe5649a74512a8f60 | [
"Unlicense"
] | 264 | 2015-01-08T10:07:01.000Z | 2022-03-26T04:11:51.000Z | div15.cpp | ohmyjons/SPOJ-1 | 870ae3b072a3fbc89149b35fe5649a74512a8f60 | [
"Unlicense"
] | 17 | 2016-04-15T03:38:07.000Z | 2020-10-30T00:33:57.000Z | div15.cpp | ohmyjons/SPOJ-1 | 870ae3b072a3fbc89149b35fe5649a74512a8f60 | [
"Unlicense"
] | 127 | 2015-01-08T04:56:44.000Z | 2022-02-25T18:40:37.000Z | // 2009-04-19
#include <iostream>
#include <stdio.h>
#include <algorithm>
#include <cassert>
#include <string.h>
using namespace std;
int fox(int a,int b)
{
int tot=0,n1=a,n2=b;
while ((n1>2) && (n1>n2+1))
tot+=3,n1-=3;
while ((n2>2) && (n2>n1+1))
tot+=3,n2-=3;
return(tot+min(n1,n2)*2);
}
int main()
{
//... | 17.654412 | 76 | 0.436068 | ohmyjons |
f72d8543b64197c6934345431ce573faf6340eb6 | 2,290 | cpp | C++ | PE/ch13/13.2/classic.cpp | DustOfStars/CppPrimerPlus6 | 391e3ad76eaa99f331981cee72139d83115fc93d | [
"MIT"
] | null | null | null | PE/ch13/13.2/classic.cpp | DustOfStars/CppPrimerPlus6 | 391e3ad76eaa99f331981cee72139d83115fc93d | [
"MIT"
] | null | null | null | PE/ch13/13.2/classic.cpp | DustOfStars/CppPrimerPlus6 | 391e3ad76eaa99f331981cee72139d83115fc93d | [
"MIT"
] | null | null | null | #include <iostream>
#include <cstring>
#include "classic.h"
using namespace std;
// Cd methods
Cd::Cd(const char * s1, const char * s2, int n, double x)
{
performers = new char[strlen(s1)+1];
strcpy(performers, s1);
label = new char[strlen(s2)+1];
strcpy(label, s2);
selections = n;
playtime = x... | 20.446429 | 71 | 0.588646 | DustOfStars |
f72fce116b96a5bf3d94f0639e9f3219bca7b8fa | 505 | cpp | C++ | shared/ADM/Physics/PhysBody_Box.cpp | BlueNightHawk4906/HL-ADM-Custom | 7cd3925de819d4f5a2a808e5c0b34bb03a51c991 | [
"Unlicense"
] | 1 | 2020-12-11T17:52:33.000Z | 2020-12-11T17:52:33.000Z | shared/ADM/Physics/PhysBody_Box.cpp | BlueNightHawk4906/HL-ADM-Custom | 7cd3925de819d4f5a2a808e5c0b34bb03a51c991 | [
"Unlicense"
] | 7 | 2021-07-09T09:19:14.000Z | 2021-07-20T19:35:21.000Z | shared/ADM/Physics/PhysBody_Box.cpp | phoenixprojectsoftware/phoenixADM | 5f170a34739e64111dbe161d9ab9e0baa219512b | [
"Unlicense"
] | null | null | null | #include "Base/ExtDLL.h"
#include "Util.h"
#include "Base/CBase.h"
#include "IPhysBody.h"
#include "PhysBody.h"
#include "PhysBody_Box.h"
/*
========================================================
CPhysBody_Box
========================================================
*/
void CPhysBody_Box::InitShap... | 24.047619 | 87 | 0.540594 | BlueNightHawk4906 |
f731610d79f73bcac7579b85309615dbfc340a2d | 2,759 | cpp | C++ | src/examples/ex-ndpomdp.cpp | SDMStudio/sdms | 43a86973081ffd86c091aed69b332f0087f59361 | [
"MIT"
] | null | null | null | src/examples/ex-ndpomdp.cpp | SDMStudio/sdms | 43a86973081ffd86c091aed69b332f0087f59361 | [
"MIT"
] | null | null | null | src/examples/ex-ndpomdp.cpp | SDMStudio/sdms | 43a86973081ffd86c091aed69b332f0087f59361 | [
"MIT"
] | null | null | null | #include <iostream>
#include <memory>
#include <sdm/exception.hpp>
#include <sdm/config.hpp>
#include <sdm/parser/parser.hpp>
using namespace sdm;
int main(int argc, char **argv)
{
std::string ndpomdp_filename = (argc > 1) ? argv[1] : config::PROBLEM_PATH + "dpomdp/tiger.dpomdp";
// Instanciate a standard M... | 47.568966 | 137 | 0.485321 | SDMStudio |
f73502070122fc25d034257d86eb5cf344fd3b39 | 5,154 | cpp | C++ | Soomla/NativeImpl/CCNativeVirtualCurrencyStorage.cpp | konopka/cocos2dx-store | 9646c4d474e4416d8dde637b54100d2bfd30741d | [
"Apache-2.0"
] | null | null | null | Soomla/NativeImpl/CCNativeVirtualCurrencyStorage.cpp | konopka/cocos2dx-store | 9646c4d474e4416d8dde637b54100d2bfd30741d | [
"Apache-2.0"
] | null | null | null | Soomla/NativeImpl/CCNativeVirtualCurrencyStorage.cpp | konopka/cocos2dx-store | 9646c4d474e4416d8dde637b54100d2bfd30741d | [
"Apache-2.0"
] | 3 | 2020-05-10T08:41:59.000Z | 2021-02-11T15:58:32.000Z | /*
Copyright (C) 2012-2014 Soomla Inc.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing... | 39.343511 | 129 | 0.624175 | konopka |
f73861850e378e2a14db6b20966fcf67fc24ee10 | 316 | cpp | C++ | LibApophis/src/Training/StoppingConditions.cpp | elpollouk/Apophis | a400a3d689750502137b048eef8e8246f7c04d6b | [
"MIT"
] | null | null | null | LibApophis/src/Training/StoppingConditions.cpp | elpollouk/Apophis | a400a3d689750502137b048eef8e8246f7c04d6b | [
"MIT"
] | null | null | null | LibApophis/src/Training/StoppingConditions.cpp | elpollouk/Apophis | a400a3d689750502137b048eef8e8246f7c04d6b | [
"MIT"
] | null | null | null | #include "stdafx.h"
#include "apophis/Training/StoppingConditions.h"
using namespace Apophis;
using namespace Apophis::Training::StoppingCondition;
bool AnyStoppingCondition::Check(Data::Metrics& metrics) const
{
for (auto& condition : m_Conditions)
if ((*condition)(metrics))
return true;
return false;
}
| 21.066667 | 62 | 0.762658 | elpollouk |
f73dac4d5c6b9d0cecd7064ebf6cf5e63c739d00 | 2,225 | cc | C++ | gcc-gcc-7_3_0-release/libstdc++-v3/testsuite/18_support/type_info/hash_code.cc | best08618/asylo | 5a520a9f5c461ede0f32acc284017b737a43898c | [
"Apache-2.0"
] | 7 | 2020-05-02T17:34:05.000Z | 2021-10-17T10:15:18.000Z | gcc-gcc-7_3_0-release/libstdc++-v3/testsuite/18_support/type_info/hash_code.cc | best08618/asylo | 5a520a9f5c461ede0f32acc284017b737a43898c | [
"Apache-2.0"
] | null | null | null | gcc-gcc-7_3_0-release/libstdc++-v3/testsuite/18_support/type_info/hash_code.cc | best08618/asylo | 5a520a9f5c461ede0f32acc284017b737a43898c | [
"Apache-2.0"
] | 2 | 2020-07-27T00:22:36.000Z | 2021-04-01T09:41:02.000Z | // { dg-do run { target c++11 } }
// 2010-09-21 Paolo Carlini <paolo.carlini@oracle.com>
//
// Copyright (C) 2010-2017 Free Software Foundation, Inc.
//
// This file is part of the GNU ISO C++ Library. This library is free
// software; you can redistribute it and/or modify it under the
// terms of the GNU General P... | 28.164557 | 74 | 0.678652 | best08618 |
f73e40dae92f93bf31a9ffc7c25942b7a6c932f2 | 623 | cc | C++ | src/stb_gl.cc | stbd/stoolbox | 4535e1df2795cb0157420e7d4b1a01f3bda441da | [
"MIT"
] | null | null | null | src/stb_gl.cc | stbd/stoolbox | 4535e1df2795cb0157420e7d4b1a01f3bda441da | [
"MIT"
] | null | null | null | src/stb_gl.cc | stbd/stoolbox | 4535e1df2795cb0157420e7d4b1a01f3bda441da | [
"MIT"
] | null | null | null | #include "stb_gl.hh"
#include "stb_types.hh"
#include "stb_error.hh"
namespace stb {
extern void setError(const char * format, ...);
}
GLenum stb::getGlError(const char * file, const int lineNumber)
{
GLenum glError = glGetError();
if (glError != GL_NO_ERROR) {
stb::setError("GL error: %d at %s:%... | 25.958333 | 76 | 0.651685 | stbd |
f743e3fb5bebbcaa5717dbebd67d3a094b7d61a6 | 1,701 | hpp | C++ | PotreeConverter/include/PointAttributes.hpp | tigerfoot/PotreeConverter | 75cbd0e8b75995b2806e4b7bda03369c6ed2605d | [
"BSD-2-Clause-FreeBSD"
] | null | null | null | PotreeConverter/include/PointAttributes.hpp | tigerfoot/PotreeConverter | 75cbd0e8b75995b2806e4b7bda03369c6ed2605d | [
"BSD-2-Clause-FreeBSD"
] | null | null | null | PotreeConverter/include/PointAttributes.hpp | tigerfoot/PotreeConverter | 75cbd0e8b75995b2806e4b7bda03369c6ed2605d | [
"BSD-2-Clause-FreeBSD"
] | null | null | null |
#ifndef POINT_ATTRIBUTES_H
#define POINT_ATTRIBUTES_H
#include <string>
#include <vector>
using std::string;
using std::vector;
class PointAttribute{
public:
static const PointAttribute POSITION_CARTESIAN;
static const PointAttribute COLOR_PACKED;
int ordinal;
string name;
int numElements;
int byteSize;
P... | 18.692308 | 88 | 0.724868 | tigerfoot |
f748be09efae8224601c0d90ab2cca51fba05c8e | 14,950 | cpp | C++ | src/crypt.cpp | icedac/nativecoin-cpp | cc5ea9c9dfc7e8974f3b580cbb3767354d0b9b78 | [
"BSL-1.0",
"BSD-3-Clause",
"OpenSSL",
"MIT"
] | null | null | null | src/crypt.cpp | icedac/nativecoin-cpp | cc5ea9c9dfc7e8974f3b580cbb3767354d0b9b78 | [
"BSL-1.0",
"BSD-3-Clause",
"OpenSSL",
"MIT"
] | null | null | null | src/crypt.cpp | icedac/nativecoin-cpp | cc5ea9c9dfc7e8974f3b580cbb3767354d0b9b78 | [
"BSL-1.0",
"BSD-3-Clause",
"OpenSSL",
"MIT"
] | null | null | null | /****************************************************************************
*
* crypt.cpp
* ($\nativecoin-cpp\src)
*
* by icedac
*
***/
#include "stdafx.h"
#include "nc.h"
#include "crypt.h"
#include "util.h"
#include <mutex>
#include <openssl/evp.h>
#include <openssl/ecdsa.h>
#include <opens... | 34.288991 | 186 | 0.449632 | icedac |
f748e0c54ec5a9c0acd204c14fee434c7c4b5484 | 110 | cpp | C++ | doc/my_notes/image_manipulation.cpp | felixchenfy/cpp_practice_image_processing | 72724097e3d9d35eb813fc04aac56d79419d6c7d | [
"MIT"
] | 4 | 2019-12-23T09:44:51.000Z | 2021-08-07T05:20:24.000Z | doc/my_notes/image_manipulation.cpp | felixchenfy/cpp_practice_image_processing | 72724097e3d9d35eb813fc04aac56d79419d6c7d | [
"MIT"
] | null | null | null | doc/my_notes/image_manipulation.cpp | felixchenfy/cpp_practice_image_processing | 72724097e3d9d35eb813fc04aac56d79419d6c7d | [
"MIT"
] | 2 | 2020-04-01T02:11:54.000Z | 2020-08-18T12:48:06.000Z |
/**
* Split color image into three channels.
*/
std::vector<cv::Mat> three_channels = cv::split(img);
| 10 | 53 | 0.636364 | felixchenfy |
f74cf9a4bc2fa11b0240ded3c4cfcbcc10a00e91 | 1,485 | cpp | C++ | Esercizi/Classi/Gelato/main.cpp | gabrielegenovese/Esercizi-Programmazione-2020 | bb16aec872ece3f7d88fcbfc88b3778efcb4f16b | [
"MIT"
] | null | null | null | Esercizi/Classi/Gelato/main.cpp | gabrielegenovese/Esercizi-Programmazione-2020 | bb16aec872ece3f7d88fcbfc88b3778efcb4f16b | [
"MIT"
] | null | null | null | Esercizi/Classi/Gelato/main.cpp | gabrielegenovese/Esercizi-Programmazione-2020 | bb16aec872ece3f7d88fcbfc88b3778efcb4f16b | [
"MIT"
] | null | null | null | #include <iostream>
#include <cstring>
using namespace std;
# define cono 2.70
# define cestina 2.50
# define coppetta 2
struct gusto
{
char nome[10];
};
typedef gusto *p_gusto;
class Gelato
{
protected:
p_gusto gusti[3];
int cursor;
double tipo;
public:
void aggiungiGel... | 19.285714 | 63 | 0.484848 | gabrielegenovese |
f7510dee6be68bdc81df0905ae93ee67975cb608 | 915 | cpp | C++ | lib/acceptor.cpp | LunZZZi/net | d6acf21d79ba60112475d2f1dc3a1b8dca34a06b | [
"MIT"
] | null | null | null | lib/acceptor.cpp | LunZZZi/net | d6acf21d79ba60112475d2f1dc3a1b8dca34a06b | [
"MIT"
] | null | null | null | lib/acceptor.cpp | LunZZZi/net | d6acf21d79ba60112475d2f1dc3a1b8dca34a06b | [
"MIT"
] | null | null | null | #include "acceptor.h"
#include <assert.h>
struct acceptor *acceptor_init(int port)
{
struct acceptor *acceptor1 = (struct acceptor *)malloc(sizeof(struct acceptor));
acceptor1->listen_port = port;
acceptor1->listen_fd = socket(AF_INET, SOCK_STREAM, 0);
make_nonblocking(acceptor1->listen_fd);
stru... | 27.727273 | 95 | 0.678689 | LunZZZi |
f752a42d484a2000eea59c71277704e492f35bb8 | 3,269 | cpp | C++ | ceres/PowellFunction/PowellFunction.cpp | JiauZhang/camera | 37e37f9e5f5176c6c06d4a8fdd11d5532ab37eb2 | [
"MIT"
] | 7 | 2019-10-08T01:46:52.000Z | 2021-10-11T08:17:44.000Z | ceres/PowellFunction/PowellFunction.cpp | JiauZhang/Camera | 37e37f9e5f5176c6c06d4a8fdd11d5532ab37eb2 | [
"MIT"
] | null | null | null | ceres/PowellFunction/PowellFunction.cpp | JiauZhang/Camera | 37e37f9e5f5176c6c06d4a8fdd11d5532ab37eb2 | [
"MIT"
] | 4 | 2019-04-11T07:05:06.000Z | 2019-07-16T04:55:01.000Z | #include <iostream>
#include <boost/concept_check.hpp>
#include <ceres/ceres.h>
#include <cmath>
using namespace std;
using namespace ceres;
using ceres::AutoDiffCostFunction;
using ceres::Solver;
using ceres::Problem;
using ceres::CostFunction;
using ceres::Solve;
struct CostFuntorF1 {
template <typename T>
bo... | 30.268519 | 92 | 0.61762 | JiauZhang |
f753017a1f6fc7b62a1ec374e4f37d53ea01ec73 | 1,815 | cpp | C++ | examples/speed_comparison.cpp | jedbrooke/fractionalBignum | 9eb2b4f83ba361adde2881ed2819aeef03510ddb | [
"MIT"
] | null | null | null | examples/speed_comparison.cpp | jedbrooke/fractionalBignum | 9eb2b4f83ba361adde2881ed2819aeef03510ddb | [
"MIT"
] | null | null | null | examples/speed_comparison.cpp | jedbrooke/fractionalBignum | 9eb2b4f83ba361adde2881ed2819aeef03510ddb | [
"MIT"
] | null | null | null | #include "fractionalBignum.hpp"
#include <iostream>
#include <cmath>
#include <gmp.h>
#include <ctime>
int main(int argc, char const *argv[])
{
// double r = ((double) rand() / (RAND_MAX));
const size_t K = 8;
u_int64_t v[K] = {1,1,1,1};
fractionalBignum<K> f(v);
mpf_set_default_prec(K * 64);
... | 25.208333 | 73 | 0.562534 | jedbrooke |
f755aaf08ef1f64028653e62244e9e6deea5ca47 | 874 | cpp | C++ | modules/camera/test/o3d3xx-import-export-tests.cpp | theseankelly/libo3d3xx | 01cdf9560d69b1ee91ca9b4298df7bb4efb45e52 | [
"Apache-2.0"
] | 36 | 2015-04-04T15:19:50.000Z | 2018-10-11T14:33:05.000Z | modules/camera/test/o3d3xx-import-export-tests.cpp | theseankelly/libo3d3xx | 01cdf9560d69b1ee91ca9b4298df7bb4efb45e52 | [
"Apache-2.0"
] | 111 | 2015-04-22T16:12:55.000Z | 2018-10-16T08:03:40.000Z | modules/camera/test/o3d3xx-import-export-tests.cpp | theseankelly/libo3d3xx | 01cdf9560d69b1ee91ca9b4298df7bb4efb45e52 | [
"Apache-2.0"
] | 40 | 2015-07-13T09:29:31.000Z | 2018-09-14T06:56:24.000Z | #include "o3d3xx_camera.h"
#include <cstdint>
#include <memory>
#include <vector>
#include "gtest/gtest.h"
TEST(ImportExport_Tests, ImportExportApp)
{
o3d3xx::Camera::Ptr cam =
std::make_shared<o3d3xx::Camera>();
cam->RequestSession();
cam->SetOperatingMode(o3d3xx::Camera::operating_mode::EDIT);
std::vec... | 24.971429 | 63 | 0.720824 | theseankelly |
f75c42470c2283d0bc6d540bf2dd59ca3b9db645 | 8,231 | hpp | C++ | disc-fe/src/Panzer_BCStrategy_Neumann_DefaultImpl.hpp | hillyuan/Panzer | 13ece3ea4c145c4d7b6339e3ad6332a501932ea8 | [
"BSD-3-Clause"
] | 1 | 2022-03-22T03:49:50.000Z | 2022-03-22T03:49:50.000Z | disc-fe/src/Panzer_BCStrategy_Neumann_DefaultImpl.hpp | hillyuan/Panzer | 13ece3ea4c145c4d7b6339e3ad6332a501932ea8 | [
"BSD-3-Clause"
] | null | null | null | disc-fe/src/Panzer_BCStrategy_Neumann_DefaultImpl.hpp | hillyuan/Panzer | 13ece3ea4c145c4d7b6339e3ad6332a501932ea8 | [
"BSD-3-Clause"
] | null | null | null | // @HEADER
// ***********************************************************************
//
// Panzer: A partial differential equation assembly
// engine for strongly coupled complex multiphysics systems
// Copyright (2011) Sandia Corporation
//
// Under the terms of Contract DE-AC04-94AL85... | 42.427835 | 183 | 0.720933 | hillyuan |
f764a50e3e5ac4ebcf48d20b4531fe9d8c03a938 | 5,530 | cpp | C++ | src/LCDCharConverter.cpp | TechFactoryHU/LCDCharConverter | f0c831aa9dd6d84157978555465882f8c0fb7501 | [
"MIT"
] | 2 | 2021-05-09T11:28:57.000Z | 2021-11-09T18:52:10.000Z | src/LCDCharConverter.cpp | TechFactoryHU/LCDCharConverter | f0c831aa9dd6d84157978555465882f8c0fb7501 | [
"MIT"
] | null | null | null | src/LCDCharConverter.cpp | TechFactoryHU/LCDCharConverter | f0c831aa9dd6d84157978555465882f8c0fb7501 | [
"MIT"
] | null | null | null | /*
* TechFactory.hu
* LCD kijelzőhöz magyar ékezetes karakter támogatás
* (LiquidCrystal_I2C class-hoz készült kiegészítő)
*/
#include "LCDCharConverter.h"
#include "LCDCharmap.h"
LCDCharConverter::LCDCharConverter(LiquidCrystal_I2C* lcd) {
_lcd = lcd;
}
void LCDCharConverter::display(char* message, uint8_t col, ui... | 31.067416 | 121 | 0.567089 | TechFactoryHU |
f7671d76b6520a7115b011d25a3e299b9fea95e8 | 10,645 | cpp | C++ | src/adapter/adapter.cpp | TiWinDeTea/NinjaClown | fdd48e62466f11036fa0360fad2bcb182d6d3352 | [
"MIT"
] | 2 | 2020-04-10T14:39:00.000Z | 2021-02-11T15:52:16.000Z | src/adapter/adapter.cpp | TiWinDeTea/NinjaClown | fdd48e62466f11036fa0360fad2bcb182d6d3352 | [
"MIT"
] | 2 | 2019-12-17T08:50:20.000Z | 2020-02-03T09:37:56.000Z | src/adapter/adapter.cpp | TiWinDeTea/NinjaClown | fdd48e62466f11036fa0360fad2bcb182d6d3352 | [
"MIT"
] | 1 | 2020-08-19T03:06:52.000Z | 2020-08-19T03:06:52.000Z | #include <cpptoml.h>
#include <imgui.h>
#include <spdlog/spdlog.h>
#include "adapter/adapter.hpp"
#include "bot/bot_api.hpp"
#include "model/cell.hpp"
#include "model/components.hpp"
#include "model/grid_point.hpp"
#include "model/model.hpp"
#include "ninja_clown/api.h"
#include "state_holder.hpp"
#include "utils/logg... | 36.207483 | 136 | 0.687741 | TiWinDeTea |
f76c083cf45e1a2462d5f440e0e33019b2485e0c | 5,067 | cpp | C++ | Private/Vox.cpp | mik14a/VoxFormat | 5b5a75c15e9fa4f7b495f8c7d74ddadef5c3dbd0 | [
"MIT"
] | null | null | null | Private/Vox.cpp | mik14a/VoxFormat | 5b5a75c15e9fa4f7b495f8c7d74ddadef5c3dbd0 | [
"MIT"
] | null | null | null | Private/Vox.cpp | mik14a/VoxFormat | 5b5a75c15e9fa4f7b495f8c7d74ddadef5c3dbd0 | [
"MIT"
] | null | null | null | // Copyright 2018-2020 mik14a / Admix Network. All Rights Reserved.
#include "Vox.h"
#include "Chunk/Layr.h"
#include "Chunk/Main.h"
#include "Chunk/Matl.h"
#include "Chunk/Matt.h"
#include "Chunk/Pack.h"
#include "Chunk/Rgba.h"
#include "Chunk/Size.h"
#include "Chunk/Xyzi.h"
#include "Node/Group.h"
#include "Node/Sha... | 58.241379 | 193 | 0.768305 | mik14a |
f76c4439085408812c8275ba2c2ee78d95deb966 | 652 | cpp | C++ | cpp/aggregate_class.cpp | PhilipDaniels/learn | cbacb52fd472b5c90b6c3890bb912cd3020905fc | [
"MIT"
] | null | null | null | cpp/aggregate_class.cpp | PhilipDaniels/learn | cbacb52fd472b5c90b6c3890bb912cd3020905fc | [
"MIT"
] | null | null | null | cpp/aggregate_class.cpp | PhilipDaniels/learn | cbacb52fd472b5c90b6c3890bb912cd3020905fc | [
"MIT"
] | null | null | null | #include <iostream>
using namespace std;
struct Point
{
// Lippman, 7.5.5, p298.
// All members must be public.
// No ctors.
// No in-class initializers.
// No base classes or virtual functions.
int x;
int y;
};
int main(int argc, char *argv[])
{
Point p1 = { 20, 40 };
cout << "p... | 22.482759 | 76 | 0.593558 | PhilipDaniels |
f7726fd6c507b736213940d6bc86721e6295eb82 | 410,139 | cpp | C++ | chipyard.TestHarness.RocketConfig/chipyard.TestHarness.RocketConfig/VTestHarness__16__Slow.cpp | vargandhi/ime-congs | 963be79b7b319d8e74edae09df7bdf3330371401 | [
"BSD-3-Clause"
] | null | null | null | chipyard.TestHarness.RocketConfig/chipyard.TestHarness.RocketConfig/VTestHarness__16__Slow.cpp | vargandhi/ime-congs | 963be79b7b319d8e74edae09df7bdf3330371401 | [
"BSD-3-Clause"
] | null | null | null | chipyard.TestHarness.RocketConfig/chipyard.TestHarness.RocketConfig/VTestHarness__16__Slow.cpp | vargandhi/ime-congs | 963be79b7b319d8e74edae09df7bdf3330371401 | [
"BSD-3-Clause"
] | null | null | null | // Verilated -*- C++ -*-
// DESCRIPTION: Verilator output: Design implementation internals
// See VTestHarness.h for the primary calling header
#include "VTestHarness.h"
#include "VTestHarness__Syms.h"
#include "verilated_dpi.h"
void VTestHarness::_settle__TOP__1006(VTestHarness__Syms* __restrict vlSymsp) {
VL_D... | 120.842369 | 327 | 0.723823 | vargandhi |
f772ce052d7b44a38f2032aa6125bb5e9184eea2 | 1,748 | cpp | C++ | IL2CPP/Il2CppOutputProject/IL2CPP/libil2cpp/os/OSX/SystemCertificates.cpp | dngoins/AutographTheWorld-MR | 24e567c8030b73a6942e25b36b7370667c649b90 | [
"MIT"
] | 16 | 2018-10-13T12:29:06.000Z | 2022-02-25T14:56:47.000Z | IL2CPP/Il2CppOutputProject/IL2CPP/libil2cpp/os/OSX/SystemCertificates.cpp | dngoins/AutographTheWorld-MR | 24e567c8030b73a6942e25b36b7370667c649b90 | [
"MIT"
] | 8 | 2020-03-10T23:11:09.000Z | 2020-03-14T01:19:32.000Z | IL2CPP/Il2CppOutputProject/IL2CPP/libil2cpp/os/OSX/SystemCertificates.cpp | dngoins/AutographTheWorld-MR | 24e567c8030b73a6942e25b36b7370667c649b90 | [
"MIT"
] | 7 | 2020-06-09T13:16:30.000Z | 2021-11-01T15:28:04.000Z | #include "os/c-api/il2cpp-config-platforms.h"
#if IL2CPP_TARGET_OSX
#include "os/SystemCertificates.h"
#include <Security/SecTrust.h>
#include <Security/SecCertificate.h>
#include <Security/SecImportExport.h>
namespace il2cpp
{
namespace os
{
void* SystemCertificates::OpenSystemRootStore()
{
CFArrayR... | 26.484848 | 117 | 0.621281 | dngoins |
f774e4c8b27ad670e8e2b76ba5b8a56a3be0261d | 938 | cpp | C++ | lab26/1 - async.cpp | uiowa-cs-3210-0001/cs3210-labs | d6263d719a45257ba056a1ead7cc3dd428d377f3 | [
"MIT"
] | 1 | 2019-01-24T14:04:45.000Z | 2019-01-24T14:04:45.000Z | lab26/1 - async.cpp | uiowa-cs-3210-0001/cs3210-labs | d6263d719a45257ba056a1ead7cc3dd428d377f3 | [
"MIT"
] | 1 | 2019-01-24T18:32:45.000Z | 2019-01-28T04:10:28.000Z | lab26/1 - async.cpp | uiowa-cs-3210-0001/cs3210-labs | d6263d719a45257ba056a1ead7cc3dd428d377f3 | [
"MIT"
] | 1 | 2019-02-07T00:28:20.000Z | 2019-02-07T00:28:20.000Z | #include <iostream>
#include <vector>
#include <future>
#include <cmath>
#include <chrono>
using namespace std;
using namespace std::chrono;
bool is_prime( long n )
{
auto const sqrt_n = sqrt( n );
for ( long i = 2; i <= sqrt_n; ++i )
if ( ( n % i ) == 0 )
return false;
return true;
}... | 21.318182 | 84 | 0.578891 | uiowa-cs-3210-0001 |
f7757c023dd41c7fe70cf21a00dd0b31fd19815e | 1,282 | cpp | C++ | core/src/system/CollisionDamage.cpp | Floriantoine/MyHunter_Sfml | 8744e1b03d9d5fb621f9cba7619d9d5dd943e428 | [
"MIT"
] | null | null | null | core/src/system/CollisionDamage.cpp | Floriantoine/MyHunter_Sfml | 8744e1b03d9d5fb621f9cba7619d9d5dd943e428 | [
"MIT"
] | null | null | null | core/src/system/CollisionDamage.cpp | Floriantoine/MyHunter_Sfml | 8744e1b03d9d5fb621f9cba7619d9d5dd943e428 | [
"MIT"
] | null | null | null | #include "system/CollisionDamage.hpp"
#include "components/Damage.hpp"
#include "components/HealthComponent.hpp"
#include "components/SolidBlock.hpp"
#include "components/systemActivator/HaveCollisionDamage.hpp"
namespace systems {
void CollisionDamage::update(long elapsedTime)
{
auto array = this->_componentMana... | 36.628571 | 78 | 0.549142 | Floriantoine |
f775caf6faef2f359066287a55bc67c54e095508 | 1,490 | hpp | C++ | src/Switch.System.Drawing/include/Switch/System/Drawing/StringFormat.hpp | victor-timoshin/Switch | 8e8e687a8bdc4f79d482680da3968e9b3e464b8b | [
"MIT"
] | 4 | 2020-02-11T13:22:58.000Z | 2022-02-24T00:37:43.000Z | src/Switch.System.Drawing/include/Switch/System/Drawing/StringFormat.hpp | sgf/Switch | 8e8e687a8bdc4f79d482680da3968e9b3e464b8b | [
"MIT"
] | null | null | null | src/Switch.System.Drawing/include/Switch/System/Drawing/StringFormat.hpp | sgf/Switch | 8e8e687a8bdc4f79d482680da3968e9b3e464b8b | [
"MIT"
] | 2 | 2020-02-01T02:19:01.000Z | 2021-12-30T06:44:00.000Z | /// @file
/// @brief Contains Switch::System::Drawing::Graphics class.
#pragma once
#include <Switch/System/Object.hpp>
#include "StringAlignment.hpp"
namespace Switch {
/// @brief The System namespace contains fundamental classes and base classes that define commonly-used value and reference data types, events and... | 39.210526 | 237 | 0.695973 | victor-timoshin |
f782b10bdb28a5de394736df26a6b42bbe458c4e | 187 | cpp | C++ | src/TimestampedMsgPtrQueue.cpp | r2p/Middleware | 6438bdef16671482ecc1330679fa56439f916c61 | [
"BSD-2-Clause"
] | 1 | 2020-11-26T04:21:41.000Z | 2020-11-26T04:21:41.000Z | src/TimestampedMsgPtrQueue.cpp | r2p/Middleware | 6438bdef16671482ecc1330679fa56439f916c61 | [
"BSD-2-Clause"
] | null | null | null | src/TimestampedMsgPtrQueue.cpp | r2p/Middleware | 6438bdef16671482ecc1330679fa56439f916c61 | [
"BSD-2-Clause"
] | 1 | 2020-11-26T04:21:47.000Z | 2020-11-26T04:21:47.000Z |
#include <r2p/TimestampedMsgPtrQueue.hpp>
namespace r2p {
TimestampedMsgPtrQueue::TimestampedMsgPtrQueue(Entry array[], size_t length)
:
impl(array, length)
{}
} // namespace r2p
| 13.357143 | 76 | 0.748663 | r2p |
f787372ad5765cffb3e2e4a0642946a13034aef8 | 857 | cpp | C++ | codeforces/C - The Phone Number/Wrong answer on pretest 9 (2).cpp | kzvd4729/Problem-Solving | 13b105e725a4c2f8db7fecc5d7a8f932b9fef4ab | [
"MIT"
] | 1 | 2022-02-11T16:55:36.000Z | 2022-02-11T16:55:36.000Z | codeforces/C - The Phone Number/Wrong answer on pretest 9 (2).cpp | kzvd4729/Problem-Solving | 13b105e725a4c2f8db7fecc5d7a8f932b9fef4ab | [
"MIT"
] | null | null | null | codeforces/C - The Phone Number/Wrong answer on pretest 9 (2).cpp | kzvd4729/Problem-Solving | 13b105e725a4c2f8db7fecc5d7a8f932b9fef4ab | [
"MIT"
] | null | null | null | /****************************************************************************************
* @author: kzvd4729 created: Aug/08/2018 21:46
* solution_verdict: Wrong answer on pretest 9 language: GNU C++14
* run... | 35.708333 | 111 | 0.369895 | kzvd4729 |
f788e70bd033e59dd97bbaf43319dcf99c0fa906 | 4,612 | hh | C++ | contribs/qecode/OptVar.hh | guidotack/gecode | 027c57889d66dd26ad8e1a419c2cda22ab0cf305 | [
"MIT-feh"
] | 216 | 2016-07-11T12:44:44.000Z | 2022-03-24T01:48:06.000Z | contribs/qecode/OptVar.hh | guidotack/gecode | 027c57889d66dd26ad8e1a419c2cda22ab0cf305 | [
"MIT-feh"
] | 105 | 2018-02-01T15:51:15.000Z | 2022-03-05T16:10:36.000Z | contribs/qecode/OptVar.hh | guidotack/gecode | 027c57889d66dd26ad8e1a419c2cda22ab0cf305 | [
"MIT-feh"
] | 73 | 2016-02-15T07:09:36.000Z | 2022-03-22T23:10:26.000Z | /**** , [ OptVar.hh ],
Copyright (c) 2008 Universite d'Orleans - Jeremie Vautard
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 u... | 36.896 | 157 | 0.719861 | guidotack |
f78b6d70bfd35ac8a14dc8c162a96e41dd51acd0 | 1,064 | cpp | C++ | src/rasperi_app/rasperi_about_dialog.cpp | kuumies/rasperi | 5e854a3c15e788a714b61395fd2064a037154610 | [
"MIT"
] | null | null | null | src/rasperi_app/rasperi_about_dialog.cpp | kuumies/rasperi | 5e854a3c15e788a714b61395fd2064a037154610 | [
"MIT"
] | null | null | null | src/rasperi_app/rasperi_about_dialog.cpp | kuumies/rasperi | 5e854a3c15e788a714b61395fd2064a037154610 | [
"MIT"
] | null | null | null | /* ---------------------------------------------------------------- *
Antti Jumpponen <kuumies@gmail.com>
The implementation of kuu::rasperi::AboutDialog class.
* ---------------------------------------------------------------- */
#include "rasperi_about_dialog.h"
#include "ui_rasperi_about_dialog.h"
namespace... | 27.282051 | 70 | 0.333647 | kuumies |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.