hexsha stringlengths 40 40 | size int64 7 1.05M | ext stringclasses 13
values | lang stringclasses 1
value | max_stars_repo_path stringlengths 4 269 | max_stars_repo_name stringlengths 5 108 | max_stars_repo_head_hexsha stringlengths 40 40 | max_stars_repo_licenses listlengths 1 9 | max_stars_count 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 67k ⌀ | max_issues_repo_issues_event_min_datetime stringlengths 24 24 ⌀ | max_issues_repo_issues_event_max_datetime stringlengths 24 24 ⌀ | max_forks_repo_path stringlengths 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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
fbe46e636088ccb38a82290baaadbb4a4b727f6e | 1,809 | hpp | C++ | src/common/utilities/image/rasterbithandles.hpp | squeevee/Addle | 20ec4335669fbd88d36742f586899d8416920959 | [
"MIT"
] | 3 | 2020-03-05T06:36:51.000Z | 2020-06-20T03:25:02.000Z | src/common/utilities/image/rasterbithandles.hpp | squeevee/Addle | 20ec4335669fbd88d36742f586899d8416920959 | [
"MIT"
] | 13 | 2020-03-11T17:43:42.000Z | 2020-12-11T03:36:05.000Z | src/common/utilities/image/rasterbithandles.hpp | squeevee/Addle | 20ec4335669fbd88d36742f586899d8416920959 | [
"MIT"
] | 1 | 2020-09-28T06:53:46.000Z | 2020-09-28T06:53:46.000Z | /**
* Addle source code
* @file
* @copyright Copyright 2020 Eleanor Hawk
* @copyright Modification and distribution permitted under the terms of the
* MIT License. See "LICENSE" for full details.
*/
#ifndef RASTERBITHANDLES_HPP
#define RASTERBITHANDLES_HPP
#include "compat.hpp"
#include <QRect>
#include <QImage... | 22.333333 | 94 | 0.708126 | squeevee |
fbe9a4c7f2b53bab770f0951200576861a2fbfae | 17,485 | hpp | C++ | dockerfiles/gaas_tutorial_2/GAAS/software/SLAM/ygz_slam_ros/Thirdparty/PCL/features/include/pcl/features/impl/gasd.hpp | hddxds/scripts_from_gi | afb8977c001b860335f9062464e600d9115ea56e | [
"Apache-2.0"
] | 2 | 2019-04-10T14:04:52.000Z | 2019-05-29T03:41:58.000Z | software/SLAM/ygz_slam_ros/Thirdparty/PCL/features/include/pcl/features/impl/gasd.hpp | glider54321/GAAS | 5c3b8c684e72fdf7f62c5731a260021e741069e7 | [
"BSD-3-Clause"
] | null | null | null | software/SLAM/ygz_slam_ros/Thirdparty/PCL/features/include/pcl/features/impl/gasd.hpp | glider54321/GAAS | 5c3b8c684e72fdf7f62c5731a260021e741069e7 | [
"BSD-3-Clause"
] | 1 | 2021-12-20T06:54:41.000Z | 2021-12-20T06:54:41.000Z | /*
* Software License Agreement (BSD License)
*
* Point Cloud Library (PCL) - www.pointclouds.org
* Copyright (c) 2016-, Open Perception, Inc.
* Copyright (c) 2016, Voxar Labs, CIn-UFPE / DEINFO-UFRPE
*
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modif... | 43.387097 | 148 | 0.619617 | hddxds |
fbf9442d4e5e1a52d04e6cba433bd136c7e563f3 | 1,328 | cpp | C++ | main.cpp | SmartphoneBrainScanner/smartphonebrainscanner2-Brain3D | 57431b490f4bf780c23e22426233bde3f26e7726 | [
"MIT"
] | 3 | 2016-03-07T12:44:15.000Z | 2016-06-05T23:41:43.000Z | main.cpp | SmartphoneBrainScanner/smartphonebrainscanner2-Brain3D | 57431b490f4bf780c23e22426233bde3f26e7726 | [
"MIT"
] | 3 | 2015-07-24T10:12:02.000Z | 2015-07-24T11:57:06.000Z | main.cpp | SmartphoneBrainScanner/smartphonebrainscanner2-Brain3D | 57431b490f4bf780c23e22426233bde3f26e7726 | [
"MIT"
] | 6 | 2015-07-17T07:52:52.000Z | 2018-07-22T20:16:04.000Z | #include <QApplication>
#include <mycallback.h>
#include <mainwindow.h>
#include <hardware/emocap/sbs2emocapdatareader.h>
#include <hardware/filereader/sbs2filedatareader.h>
#include <hardware/emotiv/sbs2emotivdatareader.h>
Q_DECL_EXPORT int main(int argc, char *argv[])
{
QApplication app(argc, argv);
qDebu... | 28.255319 | 120 | 0.72741 | SmartphoneBrainScanner |
fbfa5425dcc56c29aabe8f6a89d4508f09a041a7 | 5,532 | cpp | C++ | src/mame/drivers/generalplus_gpl16250_spi_direct.cpp | Robbbert/messui | 49b756e2140d8831bc81335298ee8c5471045e79 | [
"BSD-3-Clause"
] | 26 | 2015-03-31T06:25:51.000Z | 2021-12-14T09:29:04.000Z | src/mame/drivers/generalplus_gpl16250_spi_direct.cpp | Robbbert/messui | 49b756e2140d8831bc81335298ee8c5471045e79 | [
"BSD-3-Clause"
] | null | null | null | src/mame/drivers/generalplus_gpl16250_spi_direct.cpp | Robbbert/messui | 49b756e2140d8831bc81335298ee8c5471045e79 | [
"BSD-3-Clause"
] | 10 | 2015-03-27T05:45:51.000Z | 2022-02-04T06:57:36.000Z | // license:BSD-3-Clause
// copyright-holders:David Haywood
/*
These seem to be GPL16250 related based on video register use
however the SPI ROM maps directly into CPU space, where you'd
expect internal ROM to be?!
It has been confirmed that Pacman/Fix It Felix/Ms Pacman can
be swapped onto the same... | 41.909091 | 220 | 0.787961 | Robbbert |
fbff6eabae80b7c9cea3417beabd661206a478f0 | 15,597 | cpp | C++ | test/constraints/impulse_friction_cone_test.cpp | z8674558/idocp | 946524db7ae4591b578be2409ca619961572e7be | [
"BSD-3-Clause"
] | 43 | 2020-10-13T03:43:45.000Z | 2021-09-23T05:29:48.000Z | test/constraints/impulse_friction_cone_test.cpp | z8674558/idocp | 946524db7ae4591b578be2409ca619961572e7be | [
"BSD-3-Clause"
] | 32 | 2020-10-21T09:40:16.000Z | 2021-10-24T00:00:04.000Z | test/constraints/impulse_friction_cone_test.cpp | z8674558/idocp | 946524db7ae4591b578be2409ca619961572e7be | [
"BSD-3-Clause"
] | 4 | 2020-10-08T05:47:16.000Z | 2021-10-15T12:15:26.000Z | #include <memory>
#include <gtest/gtest.h>
#include "Eigen/Core"
#include "idocp/robot/robot.hpp"
#include "idocp/robot/impulse_status.hpp"
#include "idocp/impulse/impulse_split_solution.hpp"
#include "idocp/impulse/impulse_split_direction.hpp"
#include "idocp/impulse/impulse_split_kkt_matrix.hpp"
#include "idocp/imp... | 41.703209 | 138 | 0.693274 | z8674558 |
22005d65aad9399764fa2788689486e8352122d9 | 41 | cpp | C++ | RECURSION/tempCodeRunnerFile.cpp | lakshya7878/DSA_practice_self_paced | 54e70a1cef20578e30d02d7fd8cd405b7d26baad | [
"MIT"
] | 1 | 2021-10-02T10:47:56.000Z | 2021-10-02T10:47:56.000Z | RECURSION/tempCodeRunnerFile.cpp | lakshya7878/DSA_practice_self_paced | 54e70a1cef20578e30d02d7fd8cd405b7d26baad | [
"MIT"
] | 1 | 2021-10-07T03:39:34.000Z | 2021-10-07T03:39:34.000Z | RECURSION/tempCodeRunnerFile.cpp | lakshya7878/DSA_practice_self_paced | 54e70a1cef20578e30d02d7fd8cd405b7d26baad | [
"MIT"
] | null | null | null | if(sum==0){
// return 1;
// } | 13.666667 | 20 | 0.317073 | lakshya7878 |
220c045194a49235f4db0ac3534637882e262227 | 1,575 | cpp | C++ | psx/_dump_/44/_dump_c_src_/diabpsx/psxsrc/tony.cpp | maoa3/scalpel | 2e7381b516cded28996d290438acc618d00b2aa7 | [
"Unlicense"
] | 15 | 2018-06-28T01:11:25.000Z | 2021-09-27T15:57:18.000Z | psx/_dump_/44/_dump_c_src_/diabpsx/psxsrc/tony.cpp | maoa3/scalpel | 2e7381b516cded28996d290438acc618d00b2aa7 | [
"Unlicense"
] | 7 | 2018-06-29T04:08:23.000Z | 2019-10-17T13:57:22.000Z | psx/_dump_/44/_dump_c_src_/diabpsx/psxsrc/tony.cpp | maoa3/scalpel | 2e7381b516cded28996d290438acc618d00b2aa7 | [
"Unlicense"
] | 7 | 2018-06-28T01:11:34.000Z | 2020-05-23T09:21:48.000Z | // C:\diabpsx\PSXSRC\TONY.CPP
#include "types.h"
// address: 0x800910F8
// line start: 117
// line end: 118
void stub__FPcPv_addr_800910F8(char *e, void *argptr) {
}
// address: 0x80091100
// line start: 121
// line end: 123
void new_eprint__FPcT0i(char *Text, char *File, int Line) {
}
// address: 0x80091134
... | 14.583333 | 59 | 0.662857 | maoa3 |
220f841003ca4be1a48f8390a49cb0dcc6052a5d | 55,471 | cpp | C++ | export/release/macos/obj/src/DialogueBox.cpp | Tyrcnex/tai-mod | b83152693bb3139ee2ae73002623934f07d35baf | [
"Apache-2.0"
] | 1 | 2021-07-19T05:10:43.000Z | 2021-07-19T05:10:43.000Z | export/release/macos/obj/src/DialogueBox.cpp | Tyrcnex/tai-mod | b83152693bb3139ee2ae73002623934f07d35baf | [
"Apache-2.0"
] | null | null | null | export/release/macos/obj/src/DialogueBox.cpp | Tyrcnex/tai-mod | b83152693bb3139ee2ae73002623934f07d35baf | [
"Apache-2.0"
] | null | null | null | // Generated by Haxe 4.1.5
#include <hxcpp.h>
#ifndef INCLUDED_Alphabet
#include <Alphabet.h>
#endif
#ifndef INCLUDED_DialogueBox
#include <DialogueBox.h>
#endif
#ifndef INCLUDED_MusicBeatState
#include <MusicBeatState.h>
#endif
#ifndef INCLUDED_Paths
#include <Paths.h>
#endif
#ifndef INCLUDED_PlayState
#include <Play... | 56.258621 | 274 | 0.68699 | Tyrcnex |
220f908e003fb155a824d4bf0029b801b9f9beae | 520 | cpp | C++ | code/matrix_calc.cpp | ChocomintSSR/Chocomint_Personal_Page | e27327407d1ad7fde43dc7885c14f8fa0d0223ac | [
"CC-BY-3.0"
] | null | null | null | code/matrix_calc.cpp | ChocomintSSR/Chocomint_Personal_Page | e27327407d1ad7fde43dc7885c14f8fa0d0223ac | [
"CC-BY-3.0"
] | null | null | null | code/matrix_calc.cpp | ChocomintSSR/Chocomint_Personal_Page | e27327407d1ad7fde43dc7885c14f8fa0d0223ac | [
"CC-BY-3.0"
] | null | null | null | #include <iostream>
#include "Matrix.h"
using namespace std;
int main()
{
matrix<double> matA;
matA = {{2, 6, 3},
{1, 0, 2},
{5, 8, 4}};
cout << matA.det() << "\n"; // 28
cout << matA.Trans() << "\n";
// 2 1 5
// 6 0 8
// 3 2 4
cout << matA.M(0, 0) << "\n"; // -16
cout << matA.A(0, 0) << "\n\n"; // -1... | 15.294118 | 39 | 0.469231 | ChocomintSSR |
22114ee85d794fec97929347707fe3d2d5529b40 | 1,389 | cc | C++ | gcc-gcc-7_3_0-release/libstdc++-v3/testsuite/23_containers/set/cons/61023.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/23_containers/set/cons/61023.cc | best08618/asylo | 5a520a9f5c461ede0f32acc284017b737a43898c | [
"Apache-2.0"
] | null | null | null | gcc-gcc-7_3_0-release/libstdc++-v3/testsuite/23_containers/set/cons/61023.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 } }
// Copyright (C) 2014-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 Public License as published by the
// Free Software Foundatio... | 24.368421 | 74 | 0.677466 | best08618 |
81faf10543b62f782b6cca1d4980a4a134190613 | 1,018 | cpp | C++ | Data Structures/Dynamic Programming/1-D DP/Frog Jump/Memoization.cpp | ravikjha7/Competitive_Programming | 86df773c258d6675bb3244030e6d71aa32e01fce | [
"MIT"
] | null | null | null | Data Structures/Dynamic Programming/1-D DP/Frog Jump/Memoization.cpp | ravikjha7/Competitive_Programming | 86df773c258d6675bb3244030e6d71aa32e01fce | [
"MIT"
] | null | null | null | Data Structures/Dynamic Programming/1-D DP/Frog Jump/Memoization.cpp | ravikjha7/Competitive_Programming | 86df773c258d6675bb3244030e6d71aa32e01fce | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
using namespace std;
typedef long long int ll;
#define mod 1000000007
void file()
{
#ifndef ONLINE_JUDGE
freopen("input.txt", "r", stdin);
freopen("output.txt", "w", stdout);
#endif
}
int frogjump(int n, int k, vector<int> &heights, vector<int> &dp)
{
if(n == 0) return 0;
if(... | 17.551724 | 82 | 0.562868 | ravikjha7 |
c304cfdc7ccd40df10f2cced98e36ea067e9e79b | 852 | hpp | C++ | libs/renderer/include/sge/renderer/index/dynamic/format_element.hpp | cpreh/spacegameengine | 313a1c34160b42a5135f8223ffaa3a31bc075a01 | [
"BSL-1.0"
] | 2 | 2016-01-27T13:18:14.000Z | 2018-05-11T01:11:32.000Z | libs/renderer/include/sge/renderer/index/dynamic/format_element.hpp | cpreh/spacegameengine | 313a1c34160b42a5135f8223ffaa3a31bc075a01 | [
"BSL-1.0"
] | null | null | null | libs/renderer/include/sge/renderer/index/dynamic/format_element.hpp | cpreh/spacegameengine | 313a1c34160b42a5135f8223ffaa3a31bc075a01 | [
"BSL-1.0"
] | 3 | 2018-05-11T01:11:34.000Z | 2021-04-24T19:47:45.000Z | // Copyright Carl Philipp Reh 2006 - 2019.
// Distributed under the Boost Software License, Version 1.0.
// (See accompanying file LICENSE_1_0.txt or copy at
// http://www.boost.org/LICENSE_1_0.txt)
#ifndef SGE_RENDERER_INDEX_DYNAMIC_FORMAT_ELEMENT_HPP_INCLUDED
#define SGE_RENDERER_INDEX_DYNAMIC_F... | 25.058824 | 65 | 0.746479 | cpreh |
c306ae549beeb284316ade8e18878f4ac426246f | 24,271 | cpp | C++ | dbswdbe/WdbeQCvrAIp.cpp | mpsitech/wdbe-WhizniumDBE | 27360ce6569dc55098a248b8a0a4b7e3913a6ce6 | [
"MIT"
] | 4 | 2020-10-27T14:33:25.000Z | 2021-08-07T20:55:42.000Z | dbswdbe/WdbeQCvrAIp.cpp | mpsitech/wdbe-WhizniumDBE | 27360ce6569dc55098a248b8a0a4b7e3913a6ce6 | [
"MIT"
] | null | null | null | dbswdbe/WdbeQCvrAIp.cpp | mpsitech/wdbe-WhizniumDBE | 27360ce6569dc55098a248b8a0a4b7e3913a6ce6 | [
"MIT"
] | null | null | null | /**
* \file WdbeQCvrAIp.cpp
* Dbs and XML wrapper for table TblWdbeQCvrAIp (implementation)
* \copyright (C) 2016-2020 MPSI Technologies GmbH
* \author Alexander Wirthmueller (auto-generation)
* \date created: 5 Dec 2020
*/
// IP header --- ABOVE
#include "WdbeQCvrAIp.h"
using namespace std;
using namespace Sb... | 26.58379 | 179 | 0.639941 | mpsitech |
c308388811a103318eb43ff5b22c43d248659246 | 4,012 | cpp | C++ | base/Windows/singx86/apic.cpp | sphinxlogic/Singularity-RDK-2.0 | 2968c3b920a5383f7360e3e489aa772f964a7c42 | [
"MIT"
] | null | null | null | base/Windows/singx86/apic.cpp | sphinxlogic/Singularity-RDK-2.0 | 2968c3b920a5383f7360e3e489aa772f964a7c42 | [
"MIT"
] | null | null | null | base/Windows/singx86/apic.cpp | sphinxlogic/Singularity-RDK-2.0 | 2968c3b920a5383f7360e3e489aa772f964a7c42 | [
"MIT"
] | null | null | null | /////////////////////////////////////////////////////////////////////////////
//
// apic.cpp - Extension to inspect APIC
//
// Copyright Microsoft Corporation. All rights reserved.
//
#include "singx86.h"
inline static ULONG ApicRead32(const BYTE* apic, int offsetInBytes)
{
return ((ULONG*) apic)[of... | 28.863309 | 78 | 0.554586 | sphinxlogic |
c30b1b87c7f7565931eae951a16b1f000c9115f3 | 2,445 | cc | C++ | smartag/src/model/UpdateSmartAGEnterpriseCodeRequest.cc | aliyun/aliyun-openapi-cpp-sdk | 0cf5861ece17dfb0bb251f13bf3fbdb39c0c6e36 | [
"Apache-2.0"
] | 89 | 2018-02-02T03:54:39.000Z | 2021-12-13T01:32:55.000Z | smartag/src/model/UpdateSmartAGEnterpriseCodeRequest.cc | aliyun/aliyun-openapi-cpp-sdk | 0cf5861ece17dfb0bb251f13bf3fbdb39c0c6e36 | [
"Apache-2.0"
] | 89 | 2018-03-14T07:44:54.000Z | 2021-11-26T07:43:25.000Z | smartag/src/model/UpdateSmartAGEnterpriseCodeRequest.cc | aliyun/aliyun-openapi-cpp-sdk | 0cf5861ece17dfb0bb251f13bf3fbdb39c0c6e36 | [
"Apache-2.0"
] | 69 | 2018-01-22T09:45:52.000Z | 2022-03-28T07:58:38.000Z | /*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by... | 33.493151 | 96 | 0.764417 | aliyun |
c3109d2cb6642ea88fafccfa18b824bbb55e58f5 | 4,500 | hpp | C++ | Crisp/GUI/Control.hpp | FallenShard/Crisp | d4cf22c0f9af73a6c4ba2b7d67696f1a188fd423 | [
"MIT"
] | 6 | 2017-09-14T03:26:49.000Z | 2021-09-18T05:40:59.000Z | Crisp/GUI/Control.hpp | FallenShard/Crisp | d4cf22c0f9af73a6c4ba2b7d67696f1a188fd423 | [
"MIT"
] | null | null | null | Crisp/GUI/Control.hpp | FallenShard/Crisp | d4cf22c0f9af73a6c4ba2b7d67696f1a188fd423 | [
"MIT"
] | null | null | null | #pragma once
#include <string>
#include <memory>
#include <CrispCore/Math/Headers.hpp>
#include <CrispCore/Math/Rect.hpp>
#include "RenderSystem.hpp"
#include "GUI/GuiEnums.hpp"
namespace crisp::gui
{
class Form;
class Control
{
public:
Control(Form* form);
virtual ~Control();
... | 31.690141 | 132 | 0.651333 | FallenShard |
c31230820a30e801ae483f1e2440451e186e0360 | 7,551 | cpp | C++ | TomGine/tgCollission.cpp | OpenNurbsFit/OpenNurbsFit | d1ca01437a6da6bbf921466013ff969def5dfe65 | [
"BSD-3-Clause"
] | 14 | 2015-07-06T13:04:49.000Z | 2022-02-06T10:09:05.000Z | TomGine/tgCollission.cpp | OpenNurbsFit/OpenNurbsFit | d1ca01437a6da6bbf921466013ff969def5dfe65 | [
"BSD-3-Clause"
] | 1 | 2020-12-07T03:26:39.000Z | 2020-12-07T03:26:39.000Z | TomGine/tgCollission.cpp | OpenNurbsFit/OpenNurbsFit | d1ca01437a6da6bbf921466013ff969def5dfe65 | [
"BSD-3-Clause"
] | 11 | 2015-07-06T13:04:43.000Z | 2022-03-29T10:57:04.000Z | /*
* Software License Agreement (GNU General Public License)
*
* Copyright (c) 2011, Thomas Mörwald
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, ... | 27.259928 | 118 | 0.628526 | OpenNurbsFit |
c3125e3006efc875a61ec2265e434dfa25a5fb11 | 172 | hpp | C++ | assistant/communication.hpp | mddigaetano/AccessibleHomeAutomation | 1798402e6a8a7826a0e368d58bf171e756320c4b | [
"MIT"
] | null | null | null | assistant/communication.hpp | mddigaetano/AccessibleHomeAutomation | 1798402e6a8a7826a0e368d58bf171e756320c4b | [
"MIT"
] | null | null | null | assistant/communication.hpp | mddigaetano/AccessibleHomeAutomation | 1798402e6a8a7826a0e368d58bf171e756320c4b | [
"MIT"
] | null | null | null | const byte BUFFER_SIZE = 128;
char buffer[BUFFER_SIZE];
char START_CHAR= '<';
char END_CHAR = '>';
bool newData = false;
void full_receive();
const char * full_read();
| 15.636364 | 29 | 0.697674 | mddigaetano |
c31a3588a4103fe987076ec8db3004046aa26fe9 | 8,301 | cpp | C++ | src/task_dynamics/ProportionalDerivative.cpp | mmurooka/tvm | 9098ad443d059ed4d216afb5bcc41655afdc34e0 | [
"BSD-3-Clause"
] | null | null | null | src/task_dynamics/ProportionalDerivative.cpp | mmurooka/tvm | 9098ad443d059ed4d216afb5bcc41655afdc34e0 | [
"BSD-3-Clause"
] | null | null | null | src/task_dynamics/ProportionalDerivative.cpp | mmurooka/tvm | 9098ad443d059ed4d216afb5bcc41655afdc34e0 | [
"BSD-3-Clause"
] | null | null | null | /* Copyright 2017-2020 CNRS-AIST JRL and CNRS-UM LIRMM
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* 1. Redistributions of source code must retain the above copyright notice,
* this list of conditions and the foll... | 32.174419 | 144 | 0.661968 | mmurooka |
c31c3ea656b0b93b60dfde8a202169b96958ee6d | 2,076 | cpp | C++ | abserv/abserv/actions/AiGoHome.cpp | pablokawan/ABx | 064d6df265c48c667ce81b0a83f84e5e22a7ff53 | [
"MIT"
] | null | null | null | abserv/abserv/actions/AiGoHome.cpp | pablokawan/ABx | 064d6df265c48c667ce81b0a83f84e5e22a7ff53 | [
"MIT"
] | null | null | null | abserv/abserv/actions/AiGoHome.cpp | pablokawan/ABx | 064d6df265c48c667ce81b0a83f84e5e22a7ff53 | [
"MIT"
] | null | null | null | /**
* Copyright 2017-2020 Stefan Ascher
*
* 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, pub... | 31.938462 | 91 | 0.699422 | pablokawan |
c31da2cb72cad0727c99ce0dba079413bdcee7c5 | 372 | hpp | C++ | meld/core/uses_config.hpp | knoepfel/sand-art | 8b4d7eccc5f2d3b926c94c3cf98be6e6d25bb9eb | [
"Apache-2.0"
] | null | null | null | meld/core/uses_config.hpp | knoepfel/sand-art | 8b4d7eccc5f2d3b926c94c3cf98be6e6d25bb9eb | [
"Apache-2.0"
] | null | null | null | meld/core/uses_config.hpp | knoepfel/sand-art | 8b4d7eccc5f2d3b926c94c3cf98be6e6d25bb9eb | [
"Apache-2.0"
] | null | null | null | #ifndef meld_core_uses_config_hpp
#define meld_core_uses_config_hpp
#include "boost/json.hpp"
#include <type_traits>
namespace meld {
template <typename Module>
concept with_config = std::is_constructible<Module, boost::json::object const&>();
template <typename Module>
concept without_config = !with_config... | 21.882353 | 84 | 0.771505 | knoepfel |
c31db249b93141973b4d3260d408ccc0caf31712 | 1,429 | cpp | C++ | USACO/training/chapter-1/barn1.cpp | eugli/competitive-programming | 908b903da7f12333ecc4dd0491da3fad35d1db97 | [
"MIT"
] | null | null | null | USACO/training/chapter-1/barn1.cpp | eugli/competitive-programming | 908b903da7f12333ecc4dd0491da3fad35d1db97 | [
"MIT"
] | null | null | null | USACO/training/chapter-1/barn1.cpp | eugli/competitive-programming | 908b903da7f12333ecc4dd0491da3fad35d1db97 | [
"MIT"
] | null | null | null | /*
ID: lieugen1
TASK: barn1
LANG: C++
*/
#include <bits/stdc++.h>
using namespace std;
int m, s, c, p;
int occ[200];
void make_board() {
int gap = 0, mgap = 0, sgap = 0, egap = 0;
for (int i = 0; i < s; i++) {
if (!occ[i]) {
gap++;
} else {
if (gap > mgap) {
... | 15.532609 | 48 | 0.313506 | eugli |
c3215f41005d013d19ff0713822d596b891d7d3b | 3,023 | cpp | C++ | service/resource-hosting/src/RequestObject.cpp | gomma/iotivity | 3e1810902dd086cc080a7fe519a21ec7cc6a87f0 | [
"Apache-2.0"
] | null | null | null | service/resource-hosting/src/RequestObject.cpp | gomma/iotivity | 3e1810902dd086cc080a7fe519a21ec7cc6a87f0 | [
"Apache-2.0"
] | null | null | null | service/resource-hosting/src/RequestObject.cpp | gomma/iotivity | 3e1810902dd086cc080a7fe519a21ec7cc6a87f0 | [
"Apache-2.0"
] | 1 | 2019-07-26T08:18:26.000Z | 2019-07-26T08:18:26.000Z | //******************************************************************
//
// Copyright 2015 Samsung Electronics All Rights Reserved.
//
//-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance... | 37.320988 | 90 | 0.535561 | gomma |
c32452f26a1f34a3457358d6982d1939c0856813 | 1,084 | cc | C++ | build/ARM/python/_m5/param_IdeController.cc | msharmavikram/gem5_experiments | 87353d28df55b9a6a5be6cbb19bce87a500ab3b4 | [
"BSD-3-Clause"
] | 5 | 2019-12-12T16:26:09.000Z | 2022-03-17T03:23:33.000Z | build/X86/python/_m5/param_IdeController.cc | zhoushuxin/impl_of_HPCA2018 | 594d807fb0c0712bb7766122c4efe3321d012687 | [
"BSD-3-Clause"
] | null | null | null | build/X86/python/_m5/param_IdeController.cc | zhoushuxin/impl_of_HPCA2018 | 594d807fb0c0712bb7766122c4efe3321d012687 | [
"BSD-3-Clause"
] | null | null | null | #include "pybind11/pybind11.h"
#include "pybind11/stl.h"
#include "params/IdeController.hh"
#include "python/pybind11/core.hh"
#include "sim/init.hh"
#include "sim/sim_object.hh"
#include "dev/storage/ide_ctrl.hh"
#include "base/types.hh"
#include <vector>
#include "dev/storage/ide_disk.hh"
#include "base/types.hh"
... | 30.971429 | 130 | 0.72048 | msharmavikram |
c324f75dc0d2f75a6024ca6f86abc7eddd471263 | 884 | cpp | C++ | Leetcode/reverse-vowels-of-a-string.cpp | omonimus1/angorithm_AND_dataStructure | 2a6a0cda29cb618a787654b5c66ed6f43fe618e2 | [
"Apache-2.0"
] | 580 | 2020-04-08T16:47:36.000Z | 2022-03-31T15:09:13.000Z | Leetcode/reverse-vowels-of-a-string.cpp | omonimus1/angorithm_AND_dataStructure | 2a6a0cda29cb618a787654b5c66ed6f43fe618e2 | [
"Apache-2.0"
] | 3 | 2020-10-01T08:46:42.000Z | 2020-11-23T17:12:35.000Z | Leetcode/reverse-vowels-of-a-string.cpp | omonimus1/angorithm_AND_dataStructure | 2a6a0cda29cb618a787654b5c66ed6f43fe618e2 | [
"Apache-2.0"
] | 87 | 2020-06-07T16:30:08.000Z | 2022-03-29T19:30:47.000Z | // https://leetcode.com/problems/reverse-vowels-of-a-string/submissions/
class Solution {
public:
char vowel_list[10] = {'a', 'e', 'i', 'o', 'u', 'A', 'E', 'I', 'O', 'U' };
bool is_vowel(char letter)
{
for(int i =0; i < 10; i++)
{
if(letter == vowel_list[i])
... | 22.1 | 78 | 0.357466 | omonimus1 |
c32c6d629a4f6a4d30d81acbb59f683fd1c8c44a | 7,467 | cc | C++ | value/parser.cc | eaugeas/crossroads | 9dc1ea074a9bf59e4b6aa61ce75f93ee953ee05d | [
"MIT"
] | null | null | null | value/parser.cc | eaugeas/crossroads | 9dc1ea074a9bf59e4b6aa61ce75f93ee953ee05d | [
"MIT"
] | null | null | null | value/parser.cc | eaugeas/crossroads | 9dc1ea074a9bf59e4b6aa61ce75f93ee953ee05d | [
"MIT"
] | null | null | null | // Copyright (c) 2019, tlblanc <tlblanc1490 at gmail dot com>
#include "parser.hpp"
#include <errno.h>
#include <string.h>
#include <algorithm>
#include "string_utils.hpp"
static inline size_t _min_pos_len(size_t len1, size_t len2) {
return len1 == 0 ? len2 : len2 == 0 ? len1 : std::min(len1, len2);
}
const cha... | 24.807309 | 72 | 0.559127 | eaugeas |
c32e7a4e04324000c9a031ba3bcde1d4fbc7ab54 | 435 | cpp | C++ | gcd,lcm/9613.cpp | SiverPineValley/algo | 29c75c6b226fdb15a3b6695e763ee49d4871094e | [
"Apache-2.0"
] | null | null | null | gcd,lcm/9613.cpp | SiverPineValley/algo | 29c75c6b226fdb15a3b6695e763ee49d4871094e | [
"Apache-2.0"
] | null | null | null | gcd,lcm/9613.cpp | SiverPineValley/algo | 29c75c6b226fdb15a3b6695e763ee49d4871094e | [
"Apache-2.0"
] | null | null | null | #include <iostream>
using namespace std;
int gcd(int a, int b)
{
int r;
while( b != 0 )
{
r = a%b;
a = b;
b = r;
}
return a;
}
int main(void)
{
int n, s;
long long g = 0;
cin >> n;
for(int i = 0; i < n; i++)
{
cin >> s;
int r[s];
for(int j = 0; j < s; j++) cin >> r[j];
for(int j = 0; j < s-... | 12.083333 | 52 | 0.422989 | SiverPineValley |
c332fee3b43d02194dd596b3f9bb20a596982fe5 | 851 | hpp | C++ | OOP/function.hpp | shaneliu-zf/CodeBook | 0c30e46f5661051d523c621eac9740d6dcbab440 | [
"MIT"
] | 3 | 2020-12-15T12:34:29.000Z | 2020-12-15T21:21:33.000Z | OOP/function.hpp | shane-liu-1010/CodeBook | 0c30e46f5661051d523c621eac9740d6dcbab440 | [
"MIT"
] | null | null | null | OOP/function.hpp | shane-liu-1010/CodeBook | 0c30e46f5661051d523c621eac9740d6dcbab440 | [
"MIT"
] | null | null | null | #include<vector>
class func:std::vector<double>{
public:
func(int n=0){resize(n);}
func(std::vector<double>a){
resize(a.size());
for(int i=0;i<a.size();i++)at(i)=a[i];
}
void print(){
bool first=true;
for(int i=size()-1;i>=0;i--){
if(at(i)){
st... | 23 | 57 | 0.391304 | shaneliu-zf |
c3338047969da3290a6566f5ed93da22e1495e77 | 7,440 | cpp | C++ | tests/utils/test_sinc.cpp | ipc-sim/rigid-ipc | d839af457236e7363b14c2e482a01d8160fa447e | [
"MIT"
] | 71 | 2021-09-08T13:16:43.000Z | 2022-03-27T10:23:33.000Z | tests/utils/test_sinc.cpp | ipc-sim/rigid-ipc | d839af457236e7363b14c2e482a01d8160fa447e | [
"MIT"
] | 4 | 2021-09-08T00:16:20.000Z | 2022-01-05T17:44:08.000Z | tests/utils/test_sinc.cpp | ipc-sim/rigid-ipc | d839af457236e7363b14c2e482a01d8160fa447e | [
"MIT"
] | 2 | 2021-09-18T15:15:38.000Z | 2021-09-21T15:15:38.000Z | #include <catch2/catch.hpp>
#include <iostream>
#include <finitediff.hpp>
#include <igl/PI.h>
#include <autodiff/autodiff_types.hpp>
#include <utils/sinc.hpp>
using namespace ipc;
using namespace ipc::rigid;
TEST_CASE("double sinc", "[sinc][double]")
{
CHECK(sinc(0) == Approx(1));
CHECK(sinc(1e-8) == Appro... | 28.949416 | 80 | 0.570565 | ipc-sim |
c33700a0fdb6262ac15974b8c76579924ea374bb | 625 | cpp | C++ | Sorting_Searching/Sort_0_1_2.cpp | Twinkle0799/Competitive_Programming_Rocks | fb71021e02019004bef59ee1df86687234e36f5a | [
"MIT"
] | 2 | 2021-05-06T17:59:44.000Z | 2021-08-04T12:50:38.000Z | Sorting_Searching/Sort_0_1_2.cpp | Twinkle0799/Competitive_Programming_Rocks | fb71021e02019004bef59ee1df86687234e36f5a | [
"MIT"
] | 1 | 2022-01-14T19:58:34.000Z | 2022-01-14T19:58:34.000Z | Sorting_Searching/Sort_0_1_2.cpp | Twinkle0799/Competitive_Programming_Rocks | fb71021e02019004bef59ee1df86687234e36f5a | [
"MIT"
] | 1 | 2021-02-17T09:48:06.000Z | 2021-02-17T09:48:06.000Z | #include<bits/stdc++.h>
using namespace std;
void sort012(int a[], int n)
{
int low=0;
int high = n-1;
int mid=0;
while(mid<=high)
{
switch(a[mid])
{
case 0:
swap(a[low++],a[mid++]);
break;
case 1:
mid++;... | 16.891892 | 40 | 0.3584 | Twinkle0799 |
c33c2f6fc17328e9cac8270e64e4fd60951f82fc | 9,437 | cpp | C++ | uvccapturecontrols.cpp | erikmwerner/QUVCView | b3c659727a0afbfd2e95239cd8edfb9302011ae8 | [
"BSD-3-Clause"
] | 10 | 2020-02-24T05:37:10.000Z | 2021-10-02T13:42:08.000Z | uvccapturecontrols.cpp | erikmwerner/QUVCView | b3c659727a0afbfd2e95239cd8edfb9302011ae8 | [
"BSD-3-Clause"
] | 2 | 2020-07-28T07:37:11.000Z | 2021-06-25T07:15:04.000Z | uvccapturecontrols.cpp | erikmwerner/QUVCView | b3c659727a0afbfd2e95239cd8edfb9302011ae8 | [
"BSD-3-Clause"
] | 1 | 2020-12-02T12:17:18.000Z | 2020-12-02T12:17:18.000Z | #include "uvccapturecontrols.h"
#include "libuvc/libuvc.h"
#include <QDebug>
UVCCaptureControls::UVCCaptureControls(QObject* parent, uvc_device_handle_t **dev_handle) :
QObject(parent), m_devh(dev_handle)
{}
void UVCCaptureControls::getExposureMode()
{
if(*m_devh == nullptr) {return;}
uint8_t mode;
u... | 27.920118 | 101 | 0.651266 | erikmwerner |
c33ee2c4194a6a8e2ea83e874644bf5a6890cd06 | 226 | cpp | C++ | Game Engine 2D/UtilConstants.cpp | LaPeste/ComposeEngine | 8ae80ec7c49af896978d06371dee96a4d2315372 | [
"Apache-2.0"
] | 1 | 2017-03-13T11:19:40.000Z | 2017-03-13T11:19:40.000Z | Game Engine 2D/UtilConstants.cpp | LaPeste/ComposeEngine | 8ae80ec7c49af896978d06371dee96a4d2315372 | [
"Apache-2.0"
] | null | null | null | Game Engine 2D/UtilConstants.cpp | LaPeste/ComposeEngine | 8ae80ec7c49af896978d06371dee96a4d2315372 | [
"Apache-2.0"
] | null | null | null | //
// UtilConstants.cpp
// GameEngine2D
//
// Created by Andrea Catalini on 11/12/16.
// Copyright © 2016 Andrea Catalini. All rights reserved.
//
#include "UtilConstants.hpp"
const int UtilConstants::NO_COMPONENTS = 0;
| 18.833333 | 58 | 0.712389 | LaPeste |
c346da0980e5f7d79a655ce64f857fc6978752c7 | 72 | hpp | C++ | 3rd_party/occa/tests/files/preprocessor.hpp | RonRahaman/nekRS | ffc02bca33ece6ba3330c4ee24565b1c6b5f7242 | [
"BSD-3-Clause"
] | 312 | 2015-07-02T09:02:09.000Z | 2022-03-30T16:13:23.000Z | 3rd_party/occa/tests/files/preprocessor.hpp | neams-th-coe/nekRS | 5d2c8ab3d14b3fb16db35682336a1f96000698bb | [
"BSD-3-Clause"
] | 520 | 2015-07-12T18:32:38.000Z | 2022-03-31T16:15:00.000Z | 3rd_party/occa/tests/files/preprocessor.hpp | neams-th-coe/nekRS | 5d2c8ab3d14b3fb16db35682336a1f96000698bb | [
"BSD-3-Clause"
] | 79 | 2015-07-22T22:10:56.000Z | 2022-03-17T09:07:01.000Z | #ifndef ERROR
0 1 2 3 4
#else
# error "Found the testing error"
#endif
| 12 | 34 | 0.694444 | RonRahaman |
c3487fd4faaeddb105a642f8f947a2acf2379a2e | 8,984 | cc | C++ | src/solv_smurf/fn_smurf_au/bdd2smurf_au.cc | nerdling/SBSAT | 6328c6aa105b75693d06bf0dae4a3b5ca220318b | [
"Unlicense"
] | 4 | 2015-03-08T07:56:29.000Z | 2017-10-12T04:19:27.000Z | src/solv_smurf/fn_smurf_au/bdd2smurf_au.cc | nerdling/SBSAT | 6328c6aa105b75693d06bf0dae4a3b5ca220318b | [
"Unlicense"
] | null | null | null | src/solv_smurf/fn_smurf_au/bdd2smurf_au.cc | nerdling/SBSAT | 6328c6aa105b75693d06bf0dae4a3b5ca220318b | [
"Unlicense"
] | null | null | null | /* =========FOR INTERNAL USE ONLY. NO DISTRIBUTION PLEASE ========== */
/*********************************************************************
Copyright 1999-2007, University of Cincinnati. All rights reserved.
By using this software the USER indicates that he or she has read,
understood and will comply with the f... | 43.61165 | 167 | 0.743099 | nerdling |
c34b3a25a9c836684578ca95676ad633f260ca7a | 472 | cpp | C++ | 0-1 Knapsack.cpp | abhis2007/Algorithms-1 | 7637209c5aa52c1afd8be1884d018673d26f5c1f | [
"MIT"
] | 26 | 2019-04-05T07:10:15.000Z | 2022-01-08T02:35:19.000Z | 0-1 Knapsack.cpp | abhis2007/Algorithms-1 | 7637209c5aa52c1afd8be1884d018673d26f5c1f | [
"MIT"
] | 2 | 2019-04-25T15:47:54.000Z | 2019-09-03T06:46:05.000Z | 0-1 Knapsack.cpp | abhis2007/Algorithms-1 | 7637209c5aa52c1afd8be1884d018673d26f5c1f | [
"MIT"
] | 8 | 2019-04-05T08:58:50.000Z | 2020-07-03T01:53:58.000Z |
int knapSack(int W,int wt[],int val[],int n){
int dp[n+1][W+1];
rep(i,0,n+1){
rep(j,0,W+1){
if(i==0||j==0) dp[i][j]=0;
else if(wt[i-1] <= j)dp[i][j]=max(val[i-1] + dp[i-1][j-wt[i-1]], dp[i-1][j]);
else dp[i][j] = dp[i-1][j];
}
}
return dp[n][W];
}
int main() {
IOS;
int val[] = {7,5,2,1,3,4};
... | 19.666667 | 81 | 0.459746 | abhis2007 |
c34c1e76dc8f695f198f6e58a19f7c7fbb87f247 | 26,175 | hpp | C++ | client/systems/common.hpp | Exonical/Vanguard_Wasteland.cup_chernarus_A3 | ee8f51807847f35c924bb8bf701e863387b603b8 | [
"MIT"
] | 1 | 2020-07-23T13:49:05.000Z | 2020-07-23T13:49:05.000Z | client/systems/common.hpp | Exonical/Vanguard_Wasteland.cup_chernarus_A3 | ee8f51807847f35c924bb8bf701e863387b603b8 | [
"MIT"
] | null | null | null | client/systems/common.hpp | Exonical/Vanguard_Wasteland.cup_chernarus_A3 | ee8f51807847f35c924bb8bf701e863387b603b8 | [
"MIT"
] | null | null | null | // ******************************************************************************************
// * This project is licensed under the GNU Affero GPL v3. Copyright © 2014 A3Wasteland.com *
// ******************************************************************************************
/*
@file Version: 1.0
@file Name: co... | 26.332998 | 239 | 0.617268 | Exonical |
c34c2beb47f32080e1c940759c5df6a68730d894 | 8,036 | cc | C++ | cl-platform-probe.cc | terminatorul/cl-tool | 2202066a89a97982a49b64cb54e8cb36322ae1b1 | [
"Unlicense"
] | null | null | null | cl-platform-probe.cc | terminatorul/cl-tool | 2202066a89a97982a49b64cb54e8cb36322ae1b1 | [
"Unlicense"
] | null | null | null | cl-platform-probe.cc | terminatorul/cl-tool | 2202066a89a97982a49b64cb54e8cb36322ae1b1 | [
"Unlicense"
] | null | null | null | #include <cstddef>
#include <chrono>
#include <thread>
#include <iterator>
#include <iostream>
#include <memory>
#if defined(__APPLE__) || defined(__MACOSX__)
# include <OpenCL/cl2.hpp>
#else
# include <CL/cl2.hpp>
#endif
#include "cl-platform-info.hh"
#include "cl-double-pendulum.hh"
#include "cl-plat... | 34.48927 | 195 | 0.599054 | terminatorul |
c34f1fe6fbd195c4647af0a53da3e0389cee68d3 | 9,238 | cpp | C++ | Reverse/EasyAlgorithm/obfusGenerator.cpp | B0sS-Tang/moeCTF_2020 | c10fa5663effaf4f0ba774f3766c9eb26cec3200 | [
"MIT"
] | 9 | 2020-10-07T15:14:52.000Z | 2021-07-21T08:50:08.000Z | Reverse/EasyAlgorithm/obfusGenerator.cpp | B0sS-Tang/moeCTF_2020 | c10fa5663effaf4f0ba774f3766c9eb26cec3200 | [
"MIT"
] | null | null | null | Reverse/EasyAlgorithm/obfusGenerator.cpp | B0sS-Tang/moeCTF_2020 | c10fa5663effaf4f0ba774f3766c9eb26cec3200 | [
"MIT"
] | 2 | 2020-10-08T05:08:02.000Z | 2020-10-11T10:35:46.000Z | #include<cstdio>
#include<cstdlib>
#include<ctime>
#include<cstring>
#include<vector>
#include<string>
//#include<windows.h>
#define INT 0
#define LLONG 1
#define CHAR 2
#define SHORT 3
#define MAX_OP_TYPE 2
#define MAX_CODE_LEN 1000
#define MAX_DEOBFU_CODE_NUM 1000
//#define DEBUG_CPP_CODE
#define OUPUT_CONSOLE
using ... | 23.506361 | 174 | 0.621996 | B0sS-Tang |
c351d8408cf1b915b8cc7790a34f5ec401953710 | 1,455 | cpp | C++ | test/delete_var_and_modify.cpp | mtak-/lockfree-stm | 00cd5f9a056e999f0cd140106c1d66b321d6fd47 | [
"MIT"
] | 9 | 2016-11-14T23:35:30.000Z | 2019-01-18T23:21:08.000Z | test/delete_var_and_modify.cpp | mtak-/lockfree-stm | 00cd5f9a056e999f0cd140106c1d66b321d6fd47 | [
"MIT"
] | 3 | 2017-01-09T01:22:57.000Z | 2017-03-20T04:50:05.000Z | test/delete_var_and_modify.cpp | mtak-/lockfree-stm | 00cd5f9a056e999f0cd140106c1d66b321d6fd47 | [
"MIT"
] | null | null | null | #include <lstm/lstm.hpp>
#define STATEFUL_DEBUG_ALLOC
#ifdef NDEBUG
#undef NDEBUG
#include "debug_alloc.hpp"
#define NDEBUG
#else
#include "debug_alloc.hpp"
#endif
#include "simple_test.hpp"
#include "thread_manager.hpp"
static constexpr auto loop_count = LSTM_TEST_INIT(1000000, 100000);
using lstm::atomic;
using l... | 23.852459 | 78 | 0.468041 | mtak- |
c356c7ac7a9f043e7ee67d6661de575b5feab386 | 796 | cpp | C++ | CPP/OJ problems/Word Capitalization.cpp | kratikasinghal/OJ-problems | fc5365cb4db9da780779e9912aeb2a751fe4517c | [
"MIT"
] | null | null | null | CPP/OJ problems/Word Capitalization.cpp | kratikasinghal/OJ-problems | fc5365cb4db9da780779e9912aeb2a751fe4517c | [
"MIT"
] | null | null | null | CPP/OJ problems/Word Capitalization.cpp | kratikasinghal/OJ-problems | fc5365cb4db9da780779e9912aeb2a751fe4517c | [
"MIT"
] | null | null | null |
// Problem: A. Word Capitalization
// Contest: Codeforces - Codeforces Round #172 (Div. 2)
// URL: https://codeforces.com/problemset/problem/281/A
// Memory Limit: 256 MB
// Time Limit: 2000 ms
// Powered by CP Editor (https://github.com/cpeditor/cpeditor)
#include <bits/stdc++.h>
#define F first
#define S second
#de... | 18.952381 | 62 | 0.625628 | kratikasinghal |
c358650ebc3b2b6e4d5b8b677b28a69747b3292c | 320 | cpp | C++ | c-develop/19.Pointers/pointers.cpp | GustiArsyad123/C-Language-Test | 90a2eb45d1db2b039acbe5d3499aaff0aed99f82 | [
"MIT"
] | null | null | null | c-develop/19.Pointers/pointers.cpp | GustiArsyad123/C-Language-Test | 90a2eb45d1db2b039acbe5d3499aaff0aed99f82 | [
"MIT"
] | null | null | null | c-develop/19.Pointers/pointers.cpp | GustiArsyad123/C-Language-Test | 90a2eb45d1db2b039acbe5d3499aaff0aed99f82 | [
"MIT"
] | null | null | null | // ini contoh pointers di bahasa C++
#include <iostream>
using namespace std;
int main(){
string makanan = "Ayam Taliwang"; //variable dengan tipe string
cout << makanan << endl; //hasil keluaran makanan "Ayam Taliwang"
cout << &makanan << endl; //alamat memory keluaran dari makanan "0x7ffe62dab3b0"
} | 32 | 85 | 0.690625 | GustiArsyad123 |
c359a8469d3c3947291595937ea46be32f44a546 | 20 | cpp | C++ | ffsharp/SWScale.cpp | stschake/ffsharp | 506de52dde93d3dcf6c8bf3cbc452284fce8d304 | [
"Net-SNMP",
"Xnet"
] | null | null | null | ffsharp/SWScale.cpp | stschake/ffsharp | 506de52dde93d3dcf6c8bf3cbc452284fce8d304 | [
"Net-SNMP",
"Xnet"
] | null | null | null | ffsharp/SWScale.cpp | stschake/ffsharp | 506de52dde93d3dcf6c8bf3cbc452284fce8d304 | [
"Net-SNMP",
"Xnet"
] | null | null | null | #include "SWScale.h" | 20 | 20 | 0.75 | stschake |
c35a6c50b35a60e49e2399d0445f127faee8b99c | 1,309 | cpp | C++ | main.cpp | NeuronEnix/CSV-Parser | 51f6474ea77e76d22f35aa009d53e8805df63d41 | [
"MIT"
] | 1 | 2020-11-21T05:27:35.000Z | 2020-11-21T05:27:35.000Z | main.cpp | NeuronEnix/CSV-Parser-CPP | 51f6474ea77e76d22f35aa009d53e8805df63d41 | [
"MIT"
] | null | null | null | main.cpp | NeuronEnix/CSV-Parser-CPP | 51f6474ea77e76d22f35aa009d53e8805df63d41 | [
"MIT"
] | null | null | null | #include<iostream>
#include "CSV_Parser/CSV_Parser.hpp"
using namespace std;
int main() {
CSV_Parser parser = CSV_Parser();
parser.readFromFile( "file.csv" );
// Headers : [ "H0", "H1", "H2", "H3" ]
/* Finders */
parser.headerAt( 2 ); // returns: "H2"
parser.headerPos( "H3" ); // returns: 3
... | 29.75 | 114 | 0.553094 | NeuronEnix |
c35d88385cb49bd7cc08803ca45c0656c04d2140 | 1,718 | inl | C++ | cpp/lib/interval.inl | CamHD-Analysis/camhd_motion_analysis | 41c38b9de4459e658a3358596e7995aa01f660e7 | [
"MIT"
] | 1 | 2021-01-20T13:45:50.000Z | 2021-01-20T13:45:50.000Z | cpp/lib/interval.inl | CamHD-Analysis/camhd_motion_analysis | 41c38b9de4459e658a3358596e7995aa01f660e7 | [
"MIT"
] | 5 | 2018-07-17T19:07:32.000Z | 2018-07-19T19:53:42.000Z | cpp/lib/interval.inl | CamHD-Analysis/camhd_motion_analysis | 41c38b9de4459e658a3358596e7995aa01f660e7 | [
"MIT"
] | null | null | null |
#include <iostream>
namespace CamHDMotionTracking {
using std::cout;
using std::endl;
//===================
// template <typename X, typename Y>
// bool NumericalInterval<X,Y>::doBisect() {
// return equivalent(_start,_end);
// }
//===================
template < typename T >
void Intervals... | 24.197183 | 91 | 0.529686 | CamHD-Analysis |
c35f43da82f6f7e7e278dd2e889805087fb7c22b | 103 | cpp | C++ | Chapter12/main.cpp | lixin-sxty/BigTalkDesignPatternForCpp | 8d766bfd05b9e30c626231bb5719638cd8c8893c | [
"MIT"
] | 1 | 2021-08-29T03:20:08.000Z | 2021-08-29T03:20:08.000Z | Chapter12/main.cpp | lixin-sxty/BigTalkDesignPatternForCpp | 8d766bfd05b9e30c626231bb5719638cd8c8893c | [
"MIT"
] | null | null | null | Chapter12/main.cpp | lixin-sxty/BigTalkDesignPatternForCpp | 8d766bfd05b9e30c626231bb5719638cd8c8893c | [
"MIT"
] | null | null | null | #include <iostream>
#include "facade.h"
int main() {
Fund f;
f.Buy();
f.Sell();
return 0;
}
| 8.583333 | 19 | 0.553398 | lixin-sxty |
c35f95c8f53a8420db7fe8a329870bf145d6cf2a | 370 | cpp | C++ | ThreadSanitizer/examples/01_race.cpp | dermojo/presentations | 4f4da0e60c144e735c98bb4c77ce7ccb055bd20b | [
"MIT"
] | 3 | 2017-07-07T13:32:28.000Z | 2020-01-09T20:33:02.000Z | ThreadSanitizer/examples/01_race.cpp | dermojo/presentations | 4f4da0e60c144e735c98bb4c77ce7ccb055bd20b | [
"MIT"
] | null | null | null | ThreadSanitizer/examples/01_race.cpp | dermojo/presentations | 4f4da0e60c144e735c98bb4c77ce7ccb055bd20b | [
"MIT"
] | null | null | null | // TSAN example: race condition
#include <iostream>
#include <thread>
static size_t counter = 0;
static void run()
{
for (int i = 0; i < 10000; ++i)
{
++counter;
}
}
int main()
{
std::thread t1([] { run(); });
std::thread t2([] { run(); });
t1.join();
t2.join();
std::cout <... | 13.214286 | 47 | 0.491892 | dermojo |
c3610798f1258a15dc61894ffbe1f8c8a357441f | 1,559 | cc | C++ | viewer/primitives/box.cc | IJDykeman/experiments-1 | 22badf166b2ea441e953939463f751020b8c251b | [
"MIT"
] | 1 | 2022-02-28T04:19:34.000Z | 2022-02-28T04:19:34.000Z | viewer/primitives/box.cc | IJDykeman/experiments-1 | 22badf166b2ea441e953939463f751020b8c251b | [
"MIT"
] | null | null | null | viewer/primitives/box.cc | IJDykeman/experiments-1 | 22badf166b2ea441e953939463f751020b8c251b | [
"MIT"
] | null | null | null | #include "viewer/primitives/box.hh"
#include <GL/glew.h>
namespace viewer {
void Box::draw() const {
glBegin(GL_QUADS);
// top
glColor3f(1.0f, 0.0f, 0.0f);
glNormal3f(0.0f, 1.0f, 0.0f);
glVertex3f(-0.5f, 0.5f, 0.5f);
glVertex3f(0.5f, 0.5f, 0.5f);
glVertex3f(0.5f, 0.5f, -0.5f);
glVertex3f(-0.5f, 0.5f,... | 20.786667 | 35 | 0.57601 | IJDykeman |
c361adc558c2a60d8be83e739296453fb191a6af | 654 | hpp | C++ | lib/data_structure/partial_sum_2D.hpp | atree-GitHub/competitive-library | 606b444036530b698a6363b1a41cdaa90a7f9578 | [
"CC0-1.0"
] | 1 | 2022-01-25T23:03:10.000Z | 2022-01-25T23:03:10.000Z | lib/data_structure/partial_sum_2D.hpp | atree4728/competitive-library | 1aaa4d2cf9283b9a1a3d4c7f114ff7b867ca2f8b | [
"CC0-1.0"
] | 6 | 2021-10-06T01:17:04.000Z | 2022-01-16T14:45:47.000Z | lib/data_structure/partial_sum_2D.hpp | atree-GitHub/competitive-library | 606b444036530b698a6363b1a41cdaa90a7f9578 | [
"CC0-1.0"
] | null | null | null | #pragma once
#include <vector>
template<class T> struct CumSum2D {
std::vector<std::vector<T>> data;
explicit CumSum2D(const std::vector<std::vector<T>> &a): data(size(a) + 1, std::vector<T>(size(a[0]) + 1, 0)) {
for (size_t i = 0; i + 1 < size(data); i++) copy(begin(a[i]), end(a[i]), begin(data[i + 1... | 46.714286 | 136 | 0.535168 | atree-GitHub |
c36696b62aed7f90167389514f1366cba58ad8a3 | 3,928 | hh | C++ | src/systems/rf_comms/RFComms.hh | Thodoris1999/ign-gazebo | 66fa61a1c2b018fa0a4d1080ef89c7cc9d321cea | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | src/systems/rf_comms/RFComms.hh | Thodoris1999/ign-gazebo | 66fa61a1c2b018fa0a4d1080ef89c7cc9d321cea | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | src/systems/rf_comms/RFComms.hh | Thodoris1999/ign-gazebo | 66fa61a1c2b018fa0a4d1080ef89c7cc9d321cea | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | /*
* Copyright (C) 2022 Open Source Robotics Foundation
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by appl... | 35.071429 | 79 | 0.636202 | Thodoris1999 |
c368efe959a0019419fe40bf0171ec00fa349d8f | 410 | cpp | C++ | brute/add123.cpp | SiverPineValley/algo | 29c75c6b226fdb15a3b6695e763ee49d4871094e | [
"Apache-2.0"
] | null | null | null | brute/add123.cpp | SiverPineValley/algo | 29c75c6b226fdb15a3b6695e763ee49d4871094e | [
"Apache-2.0"
] | null | null | null | brute/add123.cpp | SiverPineValley/algo | 29c75c6b226fdb15a3b6695e763ee49d4871094e | [
"Apache-2.0"
] | null | null | null | // N중 for문 9095
// 10 이하의 양의정수를 1,2,3의 합으로 몇 가지의 경우로 가능한지 나타내는 문제
#include<iostream>
using namespace std;
int answer = 0;
void nfor(int tc)
{
if(tc < 0)
return;
else if(tc == 0)
{
answer++;
return;
}
nfor(tc - 1);
nfor(tc - 2);
nfor(tc - 3);
}
int main(void)
{
int tn;
cin >> tn;
while(tn)
{
tn--;
... | 12.058824 | 49 | 0.543902 | SiverPineValley |
c36c67039a34474891efdbe7a43b063673786c4a | 1,697 | hpp | C++ | include/beluga/http/http_status_code.hpp | Stazer/beluga | 38232796669524c4f6b08f281e5a367390de24d0 | [
"MIT"
] | 1 | 2021-04-16T08:37:37.000Z | 2021-04-16T08:37:37.000Z | include/beluga/http/http_status_code.hpp | Stazer/beluga | 38232796669524c4f6b08f281e5a367390de24d0 | [
"MIT"
] | null | null | null | include/beluga/http/http_status_code.hpp | Stazer/beluga | 38232796669524c4f6b08f281e5a367390de24d0 | [
"MIT"
] | null | null | null | #pragma once
namespace beluga
{
enum class http_status_code
{
CONTINUE = 100,
SWITCHING_PROTOCOLS = 101,
PROCESSING = 102,
OK = 200,
CREATED = 201,
ACCEPTED = 202,
NON_AUTHORITATIVE_INFORMATION = 203,
NO_CONTENT = 204,
RESET_CONTENT = 205,
PARTIAL_CONTENT = 206,
MULTI_STATUS = 207,
ALREADY_REPORT... | 22.038961 | 40 | 0.753094 | Stazer |
c36d9f9fb47f80e792690e402a995eba54b3f0fe | 3,618 | cpp | C++ | src/mxSingleton.cpp | stahta01/Zinjal | 8d1e52c9eab5cde9f7cb96c99a0fbdf97904da42 | [
"OML"
] | 1 | 2019-03-24T00:58:59.000Z | 2019-03-24T00:58:59.000Z | src/mxSingleton.cpp | stahta01/Zinjal | 8d1e52c9eab5cde9f7cb96c99a0fbdf97904da42 | [
"OML"
] | null | null | null | src/mxSingleton.cpp | stahta01/Zinjal | 8d1e52c9eab5cde9f7cb96c99a0fbdf97904da42 | [
"OML"
] | null | null | null | #include <iostream>
using namespace std;
#include "mxSingleton.h"
#include "ConfigManager.h"
#include "mxMainWindow.h"
BEGIN_EVENT_TABLE(mxSingleton,wxEvtHandler)
EVT_SOCKET(wxID_ANY,mxSingleton::OnSocket)
END_EVENT_TABLE()
mxSingleton *g_singleton=nullptr;
mxSingleton::mxSingleton():m_server(nullptr) {
m_calls_co... | 25.478873 | 110 | 0.698176 | stahta01 |
c371eae5d80132a890ea011b702f6cdcf6a247e0 | 3,525 | hpp | C++ | apps/src/videostitch-live-gui/src/videostitcher/liveoutputfile.hpp | tlalexander/stitchEm | cdff821ad2c500703e6cb237ec61139fce7bf11c | [
"MIT"
] | 182 | 2019-04-19T12:38:30.000Z | 2022-03-20T16:48:20.000Z | apps/src/videostitch-live-gui/src/videostitcher/liveoutputfile.hpp | doymcc/stitchEm | 20693a55fa522d7a196b92635e7a82df9917c2e2 | [
"MIT"
] | 107 | 2019-04-23T10:49:35.000Z | 2022-03-02T18:12:28.000Z | apps/src/videostitch-live-gui/src/videostitcher/liveoutputfile.hpp | doymcc/stitchEm | 20693a55fa522d7a196b92635e7a82df9917c2e2 | [
"MIT"
] | 59 | 2019-06-04T11:27:25.000Z | 2022-03-17T23:49:49.000Z | // Copyright (c) 2012-2017 VideoStitch SAS
// Copyright (c) 2018 stitchEm
#pragma once
#include "liveoutputfactory.hpp"
#include "libvideostitch-gui/utils/bitratemodeenum.hpp"
#include "libvideostitch-gui/utils/videocodecs.hpp"
/**
* @brief Wrapper for a file output like mp4, mov
*/
class LiveOutputFile : public ... | 42.46988 | 120 | 0.757447 | tlalexander |
c372c29e856a1dc9e52ed50b0ac5a98515e44767 | 12,335 | cpp | C++ | src/mame/machine/konppc.cpp | Robbbert/messui | 49b756e2140d8831bc81335298ee8c5471045e79 | [
"BSD-3-Clause"
] | 26 | 2015-03-31T06:25:51.000Z | 2021-12-14T09:29:04.000Z | src/mame/machine/konppc.cpp | Robbbert/messui | 49b756e2140d8831bc81335298ee8c5471045e79 | [
"BSD-3-Clause"
] | null | null | null | src/mame/machine/konppc.cpp | Robbbert/messui | 49b756e2140d8831bc81335298ee8c5471045e79 | [
"BSD-3-Clause"
] | 10 | 2015-03-27T05:45:51.000Z | 2022-02-04T06:57:36.000Z | // license:BSD-3-Clause
// copyright-holders:Ville Linde
/* Konami PowerPC-based 3D games common functions */
#include "emu.h"
#include "konppc.h"
#define DSP_BANK_SIZE 0x10000
#define DSP_BANK_SIZE_WORD (DSP_BANK_SIZE / 4)
/*****************************************************************************... | 23.858801 | 155 | 0.667369 | Robbbert |
c377687de83e20e650c26729e0c7f3a0401d35b2 | 8,295 | cpp | C++ | Programs/CMakeTool/Classes/processwrapper.cpp | stinvi/dava.engine | 2b396ca49cdf10cdc98ad8a9ffcf7768a05e285e | [
"BSD-3-Clause"
] | 26 | 2018-09-03T08:48:22.000Z | 2022-02-14T05:14:50.000Z | Programs/CMakeTool/Classes/processwrapper.cpp | ANHELL-blitz/dava.engine | ed83624326f000866e29166c7f4cccfed1bb41d4 | [
"BSD-3-Clause"
] | null | null | null | Programs/CMakeTool/Classes/processwrapper.cpp | ANHELL-blitz/dava.engine | ed83624326f000866e29166c7f4cccfed1bb41d4 | [
"BSD-3-Clause"
] | 45 | 2018-05-11T06:47:17.000Z | 2022-02-03T11:30:55.000Z | #include "processwrapper.h"
#include "filesystemhelper.h"
#include "QtHelpers/HelperFunctions.h"
#include <QProgressDialog>
#include <QTimer>
#include <QRegularExpression>
#include <QDir>
#include <QUrl>
#include <QDesktopServices>
#include <QDirIterator>
ProcessWrapper::ProcessWrapper(QObject* parent)
: QObject... | 27.55814 | 136 | 0.634237 | stinvi |
c37af6c0529123d3776dcf7e66e56eeb603fb002 | 1,665 | cpp | C++ | dlls/haj/haj_deployzone.cpp | steveuk/ham-and-jam | 25121bf6302d81e68207706ae5c313c0c84ffc78 | [
"MIT"
] | null | null | null | dlls/haj/haj_deployzone.cpp | steveuk/ham-and-jam | 25121bf6302d81e68207706ae5c313c0c84ffc78 | [
"MIT"
] | null | null | null | dlls/haj/haj_deployzone.cpp | steveuk/ham-and-jam | 25121bf6302d81e68207706ae5c313c0c84ffc78 | [
"MIT"
] | null | null | null | #include "cbase.h"
#include "triggers.h"
#include "haj_player.h"
#include "haj_deployzone.h"
LINK_ENTITY_TO_CLASS( haj_deployzone, CDeployZone );
BEGIN_DATADESC( CDeployZone )
DEFINE_KEYFIELD( m_iStance, FIELD_INTEGER, "stance" ),
DEFINE_KEYFIELD( m_fAngleMax, FIELD_FLOAT, "angle_tolerance" ),
DEFINE_KEYFIELD( m_i... | 27.295082 | 92 | 0.714715 | steveuk |
c37fdb72b1c46c776d6fb8b333ed290761297b3f | 48 | cpp | C++ | c-src/fl_utf8C.cpp | ericu/fltkhs | 3ca521ca30d51a84f8ec87938932f2ce5af8a7c0 | [
"MIT"
] | 222 | 2015-01-11T19:01:16.000Z | 2022-03-25T14:47:26.000Z | c-src/fl_utf8C.cpp | ericu/fltkhs | 3ca521ca30d51a84f8ec87938932f2ce5af8a7c0 | [
"MIT"
] | 143 | 2015-01-13T19:08:33.000Z | 2021-10-10T20:43:46.000Z | c-src/fl_utf8C.cpp | ericu/fltkhs | 3ca521ca30d51a84f8ec87938932f2ce5af8a7c0 | [
"MIT"
] | 36 | 2015-01-14T15:30:18.000Z | 2021-08-11T13:04:28.000Z | #ifdef __cplusplus
#include "fl_utf8C.h"
#endif
| 12 | 21 | 0.770833 | ericu |
c38b7a7ea7356c7d76ffb0979b8f70a18af4e349 | 5,479 | cpp | C++ | Engine/Source/Editor/MovieSceneTools/Private/TrackEditors/PropertyTrackEditors/VectorPropertyTrackEditor.cpp | windystrife/UnrealEngine_NVIDIAGameWork | b50e6338a7c5b26374d66306ebc7807541ff815e | [
"MIT"
] | 1 | 2022-01-29T18:36:12.000Z | 2022-01-29T18:36:12.000Z | Engine/Source/Editor/MovieSceneTools/Private/TrackEditors/PropertyTrackEditors/VectorPropertyTrackEditor.cpp | windystrife/UnrealEngine_NVIDIAGameWork | b50e6338a7c5b26374d66306ebc7807541ff815e | [
"MIT"
] | null | null | null | Engine/Source/Editor/MovieSceneTools/Private/TrackEditors/PropertyTrackEditors/VectorPropertyTrackEditor.cpp | windystrife/UnrealEngine_NVIDIAGameWork | b50e6338a7c5b26374d66306ebc7807541ff815e | [
"MIT"
] | null | null | null | // Copyright 1998-2017 Epic Games, Inc. All Rights Reserved.
#include "TrackEditors/PropertyTrackEditors/VectorPropertyTrackEditor.h"
#include "Sections/VectorPropertySection.h"
#include "MovieSceneVectorTrack.h"
#include "MatineeImportTools.h"
#include "Matinee/InterpTrackVectorProp.h"
#include "UnrealEdGlobals.h"
#i... | 39.702899 | 204 | 0.782625 | windystrife |
c38badb580832d62a54b7a7524769c73ad29eb9a | 5,771 | hpp | C++ | DataStructures/LinkedLists/SinglyLinkedList/LinkedList.hpp | Stoefff/Data-Structures-and-Algorithms-2018 | 0974f921a5433dea5af40d3a6e898a88971cb859 | [
"MIT"
] | null | null | null | DataStructures/LinkedLists/SinglyLinkedList/LinkedList.hpp | Stoefff/Data-Structures-and-Algorithms-2018 | 0974f921a5433dea5af40d3a6e898a88971cb859 | [
"MIT"
] | null | null | null | DataStructures/LinkedLists/SinglyLinkedList/LinkedList.hpp | Stoefff/Data-Structures-and-Algorithms-2018 | 0974f921a5433dea5af40d3a6e898a88971cb859 | [
"MIT"
] | null | null | null | #ifndef __LINKED__LIST__HEADER
#define __LINKED__LIST__HEADER
#include <iostream>
template <typename T>
class LinkedList{
public:
LinkedList();
LinkedList(const LinkedList& rhs);
LinkedList& operator=(const LinkedList& rhs);
~LinkedList();
public:
void popBack(); // O(n)
void pushBack(const T... | 20.833935 | 76 | 0.569399 | Stoefff |
c38e83d25a4dcc8241691b845d61c3076723f480 | 1,993 | hpp | C++ | examples/cli.hpp | bytemaster/Boost.RPC | a27795d37481fb5d53774cc8cf4270fff1f84964 | [
"Unlicense"
] | 23 | 2015-03-31T05:54:47.000Z | 2022-02-27T14:30:16.000Z | examples/cli.hpp | bytemaster/Boost.RPC | a27795d37481fb5d53774cc8cf4270fff1f84964 | [
"Unlicense"
] | null | null | null | examples/cli.hpp | bytemaster/Boost.RPC | a27795d37481fb5d53774cc8cf4270fff1f84964 | [
"Unlicense"
] | 13 | 2015-04-22T04:32:26.000Z | 2019-08-29T13:22:21.000Z | #ifndef _BOOST_IDL_CLI_HPP_
#define _BOOST_IDL_CLI_HPP_
#include <sstream>
#include <iomanip>
#include <iostream>
#include <boost/fusion/sequence/io.hpp>
#include <boost/reflect/reflect.hpp>
#include <boost/utility/result_of.hpp>
/**
* Takes any interface object and provides a command line interface for it.
*/
clas... | 32.672131 | 95 | 0.558956 | bytemaster |
c39117e12e132a9b59ca358bca3a57e1d2ffd97c | 1,210 | cpp | C++ | HW1/task03-appox-occurrences/main.cpp | ulyanin/Bioinformatics2019 | b28d9b2ad8a1c41ec9c6ba655cd0aca5a1984662 | [
"MIT"
] | null | null | null | HW1/task03-appox-occurrences/main.cpp | ulyanin/Bioinformatics2019 | b28d9b2ad8a1c41ec9c6ba655cd0aca5a1984662 | [
"MIT"
] | null | null | null | HW1/task03-appox-occurrences/main.cpp | ulyanin/Bioinformatics2019 | b28d9b2ad8a1c41ec9c6ba655cd0aca5a1984662 | [
"MIT"
] | null | null | null | #include <iostream>
#include <vector>
#include <cassert>
#include <fstream>
#include <unordered_set>
template <class C>
void PrintCollection(const C& collection, std::ostream& os = std::cout) {
for (const auto& elem : collection) {
os << elem << " ";
}
os << std::endl;
}
size_t HammingDistance(std... | 25.208333 | 73 | 0.566942 | ulyanin |
c392a1517b49d4e316119887e8b805cb7d78418c | 852 | cpp | C++ | soj/2509.cpp | huangshenno1/project_euler | 8a3c91fd11bcb6a6a830e963b1d5aed3f5ff787d | [
"MIT"
] | null | null | null | soj/2509.cpp | huangshenno1/project_euler | 8a3c91fd11bcb6a6a830e963b1d5aed3f5ff787d | [
"MIT"
] | null | null | null | soj/2509.cpp | huangshenno1/project_euler | 8a3c91fd11bcb6a6a830e963b1d5aed3f5ff787d | [
"MIT"
] | null | null | null | #include <cstdio>
#include <cstring>
#include <cctype>
#include <cstdlib>
#include <ctime>
#include <climits>
#include <cmath>
#include <iostream>
#include <string>
#include <vector>
#include <set>
#include <map>
#include <list>
#include <queue>
#include <stack>
#include <deque>
#include <algorithm>
using namespace std... | 17.387755 | 64 | 0.523474 | huangshenno1 |
c392daa8e5e36f5c8222498c5c292a939df14f58 | 1,560 | cpp | C++ | User_plugins/userapp_plugin.cpp | GreatCong/GUI_EC_PluginSrc | 9194e67b76f3707f782f1fc17ba6e6dcb712c2a5 | [
"MIT"
] | 1 | 2019-12-25T13:36:01.000Z | 2019-12-25T13:36:01.000Z | User_plugins/userapp_plugin.cpp | GreatCong/GUI_EC_PluginSrc | 9194e67b76f3707f782f1fc17ba6e6dcb712c2a5 | [
"MIT"
] | null | null | null | User_plugins/userapp_plugin.cpp | GreatCong/GUI_EC_PluginSrc | 9194e67b76f3707f782f1fc17ba6e6dcb712c2a5 | [
"MIT"
] | 1 | 2020-08-05T14:05:15.000Z | 2020-08-05T14:05:15.000Z | #include "userapp_plugin.h"
#include <QGridLayout>
#include <QPushButton>
UserApp_plugin::UserApp_plugin(QObject *parent) :
QObject(parent),EtherCAT_UserApp()
{
//NOTE:如果要设置图标,在这个位置设置
this->set_AppName("User_App example");
// QPixmap pixmap(":/Controls/Resource/Control/App_icon.png");
// t... | 21.971831 | 67 | 0.655128 | GreatCong |
c395486dcd7e1857daf79af3686bfe590c4fd093 | 738 | cpp | C++ | RayCast/Ray.cpp | stefanos-86/RayGun | 1e1f6b6468eb150f8ac33aa8b18d887dbc09c8c8 | [
"MIT"
] | null | null | null | RayCast/Ray.cpp | stefanos-86/RayGun | 1e1f6b6468eb150f8ac33aa8b18d887dbc09c8c8 | [
"MIT"
] | null | null | null | RayCast/Ray.cpp | stefanos-86/RayGun | 1e1f6b6468eb150f8ac33aa8b18d887dbc09c8c8 | [
"MIT"
] | null | null | null | #include "pch.h"
#include "PI.h"
#include "Ray.h"
namespace rc {
Ray::Ray(const float x, const float z, const float alpha_rad) :
x(x),
z(z),
alpha_rad(alpha_rad)
{}
bool Ray::facing_up() const noexcept
{
return (0 <= alpha_rad && alpha_rad < PI);
}
bool Ray::facing_right() const noexcept
{
// This ... | 18.45 | 99 | 0.630081 | stefanos-86 |
c399c876fde68b819c1a5810ab342c96fd2a64ff | 5,662 | cpp | C++ | lib/io/src/plain.cpp | solosTec/cyng | 3862a6b7a2b536d1f00fef20700e64170772dcff | [
"MIT"
] | null | null | null | lib/io/src/plain.cpp | solosTec/cyng | 3862a6b7a2b536d1f00fef20700e64170772dcff | [
"MIT"
] | null | null | null | lib/io/src/plain.cpp | solosTec/cyng | 3862a6b7a2b536d1f00fef20700e64170772dcff | [
"MIT"
] | null | null | null | /*
* The MIT License (MIT)
*
* Copyright (c) 2017 Sylko Olzscher
*
*/
#include <cyng/io/serializer/plain.hpp>
#include <cyng/io/serializer.h>
#include <cyng/object.h>
#include <algorithm>
#include <boost/io/ios_state.hpp>
namespace cyng
{
namespace io
{
std::ostream& serializer <tu... | 20.816176 | 142 | 0.512363 | solosTec |
c39ae9639f7d2c74a5adba6d8d9fe5fcd1d0e0aa | 10,276 | cpp | C++ | examples/example-matrices.cpp | kirchnerlab/libpipe | 28f08b9399945bd13329937a9dd0691211826886 | [
"MIT"
] | 1 | 2018-11-08T13:41:18.000Z | 2018-11-08T13:41:18.000Z | examples/example-matrices.cpp | kirchnerlab/libpipe | 28f08b9399945bd13329937a9dd0691211826886 | [
"MIT"
] | null | null | null | examples/example-matrices.cpp | kirchnerlab/libpipe | 28f08b9399945bd13329937a9dd0691211826886 | [
"MIT"
] | null | null | null | /*
* example-rtc.cpp
*
* Copyright (c) 2010 Marc Kirchner
* 2011 David Sichau
*
*/
#include <libpipe/config.hpp>
#include <stdlib.h>
#include <exception>
#include <iostream>
#include <set>
#include <boost/pointer_cast.hpp>
#include <boost/shared_ptr.hpp>
#include <boost/make_shared.hpp>
#include <... | 27.549598 | 82 | 0.617653 | kirchnerlab |
c39c2e3f8e5f6065ff3aa241d03e0908aca052aa | 947 | hpp | C++ | tools/ktx_export/options.hpp | kevin-lesenechal/glare | 774fb6bcd40349ac5a7b9155b97d1dd995b3b5d1 | [
"MIT"
] | null | null | null | tools/ktx_export/options.hpp | kevin-lesenechal/glare | 774fb6bcd40349ac5a7b9155b97d1dd995b3b5d1 | [
"MIT"
] | null | null | null | tools/ktx_export/options.hpp | kevin-lesenechal/glare | 774fb6bcd40349ac5a7b9155b97d1dd995b3b5d1 | [
"MIT"
] | null | null | null | /******************************************************************************
* Copyright © 2020 Kévin Lesénéchal <kevin.lesenechal@gmail.com> *
* *
* This file is part of the GLARE project, published under the terms of the *
... | 31.566667 | 80 | 0.461457 | kevin-lesenechal |
c3a1bc733f8b074bab9228f731cb174ac145b7a4 | 8,330 | cpp | C++ | slackbot/SlackClient.cpp | mogemimi/daily-snippets | d9da3db8c62538e4a37f0f6b69c5d46d55c4225f | [
"MIT"
] | 14 | 2017-06-16T22:52:38.000Z | 2022-02-14T04:11:06.000Z | slackbot/SlackClient.cpp | mogemimi/daily-snippets | d9da3db8c62538e4a37f0f6b69c5d46d55c4225f | [
"MIT"
] | 2 | 2016-03-13T14:50:04.000Z | 2019-04-01T09:53:17.000Z | slackbot/SlackClient.cpp | mogemimi/daily-snippets | d9da3db8c62538e4a37f0f6b69c5d46d55c4225f | [
"MIT"
] | 2 | 2016-03-13T14:05:17.000Z | 2018-09-18T01:28:42.000Z | // Copyright (c) 2015 mogemimi. Distributed under the MIT license.
#include "SlackClient.h"
#include "HttpUtility.h"
#include <rapidjson/document.h>
#include <cstdint>
#include <sstream>
#include <utility>
namespace somera {
namespace {
void fromJson(std::string& output, const rapidjson::Value& value)
{
if (valu... | 29.964029 | 101 | 0.583673 | mogemimi |
ce7949dc2d8eed0c6693c9d0670f9765ec81a619 | 2,458 | cc | C++ | gpu/ipc/host/shader_disk_cache_unittest.cc | google-ar/chromium | 2441c86a5fd975f09a6c30cddb57dfb7fc239699 | [
"Apache-2.0",
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 777 | 2017-08-29T15:15:32.000Z | 2022-03-21T05:29:41.000Z | gpu/ipc/host/shader_disk_cache_unittest.cc | harrymarkovskiy/WebARonARCore | 2441c86a5fd975f09a6c30cddb57dfb7fc239699 | [
"Apache-2.0",
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 66 | 2017-08-30T18:31:18.000Z | 2021-08-02T10:59:35.000Z | gpu/ipc/host/shader_disk_cache_unittest.cc | harrymarkovskiy/WebARonARCore | 2441c86a5fd975f09a6c30cddb57dfb7fc239699 | [
"Apache-2.0",
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 123 | 2017-08-30T01:19:34.000Z | 2022-03-17T22:55:31.000Z | // Copyright 2013 The Chromium 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 "base/files/scoped_temp_dir.h"
#include "base/macros.h"
#include "base/memory/ptr_util.h"
#include "base/message_loop/message_loop.h"
#include "b... | 29.614458 | 75 | 0.74288 | google-ar |
ce7bf862a061325615aa8a5c1461da93dd79df02 | 342 | hxx | C++ | src/koatc/pattern/overrun_protection_step1_pattern.hxx | turenar/bve-koatc-t | 113aacce7d0c0c6cf54608c22353a2a67538ecd0 | [
"MIT"
] | null | null | null | src/koatc/pattern/overrun_protection_step1_pattern.hxx | turenar/bve-koatc-t | 113aacce7d0c0c6cf54608c22353a2a67538ecd0 | [
"MIT"
] | null | null | null | src/koatc/pattern/overrun_protection_step1_pattern.hxx | turenar/bve-koatc-t | 113aacce7d0c0c6cf54608c22353a2a67538ecd0 | [
"MIT"
] | null | null | null | #pragma once
#include "koatc/pattern/overrun_protection_pattern.hxx"
namespace turenar::koatc::pattern {
class overrun_protection_step1_pattern : public overrun_protection_pattern {
public:
overrun_protection_step1_pattern(const init_requirements& req) : overrun_protection_pattern(req, false) {}
};
} // namespace tu... | 31.090909 | 107 | 0.818713 | turenar |
ce819104cad0a3594ae55c16dfd8c81fd33b6522 | 301 | cc | C++ | ch02/or/main/or.cc | research-note/deep-learning-from-scratch-using-cpp | 5e11be85fa9c4c7672ce9c3ea2c5ffa8f27defd1 | [
"MIT"
] | 2 | 2021-08-15T12:38:41.000Z | 2021-08-15T12:38:51.000Z | ch02/or/main/or.cc | research-note/deep-learning-from-scratch-using-modern-cpp | 5e11be85fa9c4c7672ce9c3ea2c5ffa8f27defd1 | [
"MIT"
] | null | null | null | ch02/or/main/or.cc | research-note/deep-learning-from-scratch-using-modern-cpp | 5e11be85fa9c4c7672ce9c3ea2c5ffa8f27defd1 | [
"MIT"
] | null | null | null | #include <numeric>
#include <vector>
template<typename T>
T OR(T x1, T x2) {
std::vector<T> x = {x1, x2};
std::vector<T> w = {0.5, 0.5};
T b = -0.2;
T tmp = std::inner_product(x.begin(), x.end(),
w.begin(), b);
if (tmp <= 0)
return 0;
else
return 1;
} | 18.8125 | 50 | 0.491694 | research-note |
ce88462489a3322bf24574af04f3c68c474133ef | 269 | cpp | C++ | c_plus_study/variable/AutoVariableTest.cpp | weihong0709/C_Cplus_Study | 2d53bbbf7fdc056ef4643b60760fc61941f9489f | [
"Apache-2.0"
] | null | null | null | c_plus_study/variable/AutoVariableTest.cpp | weihong0709/C_Cplus_Study | 2d53bbbf7fdc056ef4643b60760fc61941f9489f | [
"Apache-2.0"
] | null | null | null | c_plus_study/variable/AutoVariableTest.cpp | weihong0709/C_Cplus_Study | 2d53bbbf7fdc056ef4643b60760fc61941f9489f | [
"Apache-2.0"
] | null | null | null | //
// AutoVariableTest.cpp
// c_plus_study
//
// Created by zte on 2019/12/25.
// Copyright © 2019年 zte. All rights reserved.
//
#include "AutoVariableTest.hpp"
#include <iostream>
using namespace std;
void testAuto(){
auto temp = 2*2;
cout<<temp<<endl;
}
| 16.8125 | 47 | 0.665428 | weihong0709 |
ce887b6c384eda2d534eff102e5aa856380a0323 | 326 | cpp | C++ | test/position_test.cpp | JeffTheK/rella | 63dd5baea349fc055536e26e8efef729e71a6968 | [
"MIT"
] | 2 | 2021-05-27T10:26:51.000Z | 2021-06-08T12:37:08.000Z | test/position_test.cpp | JeffTheK/rella | 63dd5baea349fc055536e26e8efef729e71a6968 | [
"MIT"
] | null | null | null | test/position_test.cpp | JeffTheK/rella | 63dd5baea349fc055536e26e8efef729e71a6968 | [
"MIT"
] | 1 | 2021-06-08T12:37:17.000Z | 2021-06-08T12:37:17.000Z | #include "../include/doctest.h"
#include "../src/position.hpp"
TEST_CASE("load_from_json") {
auto text = R"(
{
"type": "Position",
"x": 5,
"y": 7
}
)";
auto comp_json = nlohmann::json::parse(text);
auto pos = Position::load_from_json(comp_json);
CHECK(pos.x == 5);
CHECK(pos.y == ... | 18.111111 | 51 | 0.56135 | JeffTheK |
ce8c5530c0574c27a47a2c4df8e9350c51493ee4 | 2,030 | cpp | C++ | src/Identifier.cpp | flagarde/YAODAQ | 851df4aa32b8695c4706bb3ec9f353f4461c9cad | [
"MIT"
] | null | null | null | src/Identifier.cpp | flagarde/YAODAQ | 851df4aa32b8695c4706bb3ec9f353f4461c9cad | [
"MIT"
] | 11 | 2021-05-14T19:50:27.000Z | 2022-03-31T07:19:41.000Z | src/Identifier.cpp | flagarde/YAODAQ | 851df4aa32b8695c4706bb3ec9f353f4461c9cad | [
"MIT"
] | 5 | 2021-05-11T13:30:30.000Z | 2021-05-26T19:57:22.000Z | #include "Identifier.hpp"
#include "magic_enum.hpp"
#include <vector>
#include <string>
#include "Exception.hpp"
#include "StatusCode.hpp"
//FIXME try to find a mix between Infos and Identifier
namespace yaodaq
{
bool Identifier::operator<(const Identifier& infos) const
{
return this->getName() < infos.getNa... | 24.756098 | 155 | 0.610345 | flagarde |
ce8ec0386710a0cf77cf8c00f587061a0a796c27 | 4,726 | cpp | C++ | src/scene/spritecomponent.cpp | pniekamp/datum | 4668030b63360f2c14706a9718773f6225273781 | [
"Apache-2.0"
] | 28 | 2016-11-11T15:53:37.000Z | 2021-02-25T08:15:42.000Z | src/scene/spritecomponent.cpp | pniekamp/datum | 4668030b63360f2c14706a9718773f6225273781 | [
"Apache-2.0"
] | 5 | 2017-02-23T06:01:17.000Z | 2018-01-31T03:54:49.000Z | src/scene/spritecomponent.cpp | pniekamp/datum | 4668030b63360f2c14706a9718773f6225273781 | [
"Apache-2.0"
] | 1 | 2017-02-24T01:38:07.000Z | 2017-02-24T01:38:07.000Z | //
// Datum - sprite component
//
//
// Copyright (c) 2016 Peter Niekamp
//
#include "spritecomponent.h"
#include "transformcomponent.h"
#include "debug.h"
using namespace std;
using namespace lml;
//|---------------------- SpriteStorage -------------------------------------
//|-------------------------------------... | 29.354037 | 154 | 0.599027 | pniekamp |
ce8f63fab9ba1aad17e6e2e6bc204bcdc7e599a2 | 212 | cpp | C++ | solutions/1375.bulb-switcher-iii.329765759.ac.cpp | satu0king/Leetcode-Solutions | 2edff60d76c2898d912197044f6284efeeb34119 | [
"MIT"
] | 78 | 2020-10-22T11:31:53.000Z | 2022-02-22T13:27:49.000Z | solutions/1375.bulb-switcher-iii.329765759.ac.cpp | satu0king/Leetcode-Solutions | 2edff60d76c2898d912197044f6284efeeb34119 | [
"MIT"
] | null | null | null | solutions/1375.bulb-switcher-iii.329765759.ac.cpp | satu0king/Leetcode-Solutions | 2edff60d76c2898d912197044f6284efeeb34119 | [
"MIT"
] | 26 | 2020-10-23T15:10:44.000Z | 2021-11-07T16:13:50.000Z | class Solution {
public:
int numTimesAllBlue(vector<int> &A) {
int right = 0, res = 0, n = A.size();
for (int i = 0; i < n; ++i)
res += (right = max(right, A[i])) == i + 1;
return res;
}
};
| 21.2 | 49 | 0.5 | satu0king |
ce90515a01043204a64cacfdcdf531d7c2131953 | 7,156 | cpp | C++ | test/startup/thread_support.cpp | arkantos493/MPICXX | ffbaeaaa3c7248e2087c3716ec71e0612aafe689 | [
"MIT"
] | 1 | 2020-10-20T06:53:05.000Z | 2020-10-20T06:53:05.000Z | test/startup/thread_support.cpp | arkantos493/MPICXX | ffbaeaaa3c7248e2087c3716ec71e0612aafe689 | [
"MIT"
] | null | null | null | test/startup/thread_support.cpp | arkantos493/MPICXX | ffbaeaaa3c7248e2087c3716ec71e0612aafe689 | [
"MIT"
] | 1 | 2020-08-13T17:46:40.000Z | 2020-08-13T17:46:40.000Z | /**
* @file
* @author Marcel Breyer
* @date 2020-07-29
* @copyright This file is distributed under the MIT License.
*
* @brief Test cases for the @ref mpicxx::thread_support enum class.
* @details Testsuite: *StartupTest*
* | test case name | test case description ... | 60.644068 | 252 | 0.597121 | arkantos493 |
ce92176b8a32a92351521aab900db38c508d6644 | 2,505 | cpp | C++ | apps/vaporgui/VGeometry.cpp | StasJ/vapor-formatted | 9fad47d88714ef835b78f6c1dd855d66b6aa90da | [
"BSD-3-Clause"
] | null | null | null | apps/vaporgui/VGeometry.cpp | StasJ/vapor-formatted | 9fad47d88714ef835b78f6c1dd855d66b6aa90da | [
"BSD-3-Clause"
] | null | null | null | apps/vaporgui/VGeometry.cpp | StasJ/vapor-formatted | 9fad47d88714ef835b78f6c1dd855d66b6aa90da | [
"BSD-3-Clause"
] | null | null | null | #include "VGeometry.h"
VGeometry::VGeometry(QWidget *parent, int dim, const std::vector<float> &range) : QWidget(parent) {
VAssert(dim == 2 || dim == 3);
VAssert(range.size() == dim * 2);
for (int i = 0; i < dim; i++)
VAssert(range[i * 2] < range[i * 2 + 1]);
_dim = dim;
_xrange = new VRan... | 33.851351 | 99 | 0.600798 | StasJ |
ce96708fc11000225abac665b6638f5ba101c18d | 7,336 | cpp | C++ | blades/xbmc/xbmc/linux/LinuxTimezone.cpp | krattai/AEBL | a7b12c97479e1236d5370166b15ca9f29d7d4265 | [
"BSD-2-Clause"
] | 4 | 2016-04-26T03:43:54.000Z | 2016-11-17T08:09:04.000Z | blades/xbmc/xbmc/linux/LinuxTimezone.cpp | krattai/AEBL | a7b12c97479e1236d5370166b15ca9f29d7d4265 | [
"BSD-2-Clause"
] | 17 | 2015-01-05T21:06:22.000Z | 2015-12-07T20:45:44.000Z | blades/xbmc/xbmc/linux/LinuxTimezone.cpp | krattai/AEBL | a7b12c97479e1236d5370166b15ca9f29d7d4265 | [
"BSD-2-Clause"
] | 3 | 2016-04-26T03:43:55.000Z | 2020-11-06T11:02:08.000Z | /*
* Copyright (C) 2005-2013 Team XBMC
* http://xbmc.org
*
* This Program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2, or (at your option)
* any later version.
*
* ... | 26.388489 | 175 | 0.619547 | krattai |
ce96958b21523cbbf071c9dc263266169b8c056f | 1,117 | cpp | C++ | src/State.cpp | unbgames/Wenova | 4860429d1bdc323b7ab8e7d53876e32de8941f46 | [
"MIT"
] | null | null | null | src/State.cpp | unbgames/Wenova | 4860429d1bdc323b7ab8e7d53876e32de8941f46 | [
"MIT"
] | 3 | 2017-08-28T23:57:45.000Z | 2017-10-08T19:36:41.000Z | src/State.cpp | joaorobson/Wenova | 4860429d1bdc323b7ab8e7d53876e32de8941f46 | [
"MIT"
] | 1 | 2019-04-07T20:19:20.000Z | 2019-04-07T20:19:20.000Z | #include "State.h"
#include "Collision.h"
State::State(){
m_pop_requested = m_quit_requested = false;
}
State::~State(){
}
void State::add_object(GameObject * object){
object_array.emplace_back(object);
}
bool State::pop_requested(){
return m_pop_requested;
}
bool State::quit_requested(){
return m_quit_reques... | 18.616667 | 73 | 0.651746 | unbgames |
ce96d7893c607527df0bc4f93924dfd2cdaee53e | 29,619 | cpp | C++ | gameboy/src/ppu/ppu.cpp | emrsmsrli/gameboi | 6448722529bc64184e30a945f0e5ec4203265e10 | [
"MIT"
] | 23 | 2019-08-27T13:54:27.000Z | 2022-01-21T08:38:14.000Z | gameboy/src/ppu/ppu.cpp | emrsmsrli/gameboi | 6448722529bc64184e30a945f0e5ec4203265e10 | [
"MIT"
] | 21 | 2020-02-22T20:37:16.000Z | 2020-08-30T14:52:48.000Z | gameboy/src/ppu/ppu.cpp | emrsmsrli/gameboi | 6448722529bc64184e30a945f0e5ec4203265e10 | [
"MIT"
] | null | null | null | #include "gameboy/ppu/ppu.h"
#include <cstring>
#include "gameboy/bus.h"
#include "gameboy/cartridge.h"
#include "gameboy/cpu/cpu.h"
#include "gameboy/memory/memory_constants.h"
#include "gameboy/memory/mmu.h"
#include "gameboy/util/variantutil.h"
namespace gameboy {
constexpr auto ly_max = 153u;
constexpr auto lc... | 32.512623 | 122 | 0.595023 | emrsmsrli |
ce977cea3952efc84dfdf9fb7a515787c93be4c2 | 4,823 | hpp | C++ | include/graph/GridGraph.hpp | DarkWingMcQuack/GridGraphPathFinder | d8f9a237f17516141bf58c8c86d468f3559af5e3 | [
"Apache-2.0"
] | null | null | null | include/graph/GridGraph.hpp | DarkWingMcQuack/GridGraphPathFinder | d8f9a237f17516141bf58c8c86d468f3559af5e3 | [
"Apache-2.0"
] | null | null | null | include/graph/GridGraph.hpp | DarkWingMcQuack/GridGraphPathFinder | d8f9a237f17516141bf58c8c86d468f3559af5e3 | [
"Apache-2.0"
] | null | null | null | #pragma once
#include <graph/GridCell.hpp>
#include <graph/GridGraphIterator.hpp>
#include <graph/NeigbourCalculator.hpp>
#include <graph/Node.hpp>
#include <optional>
#include <selection/NodeSelection.hpp>
#include <separation/Separation.hpp>
#include <string_view>
#include <vector>
namespace graph {
class GridGrap... | 30.333333 | 98 | 0.663695 | DarkWingMcQuack |
ce9c7931673e53d14dc10812807d827624b857aa | 5,374 | cpp | C++ | src/software/simulation/physics/physics_field_test.cpp | EvanMorcom/Software | 586fb3cf8dc2d93de194d9815af5de63caa7e318 | [
"MIT"
] | null | null | null | src/software/simulation/physics/physics_field_test.cpp | EvanMorcom/Software | 586fb3cf8dc2d93de194d9815af5de63caa7e318 | [
"MIT"
] | null | null | null | src/software/simulation/physics/physics_field_test.cpp | EvanMorcom/Software | 586fb3cf8dc2d93de194d9815af5de63caa7e318 | [
"MIT"
] | null | null | null | #include "software/simulation/physics/physics_field.h"
#include <Box2D/Box2D.h>
#include <gtest/gtest.h>
#include <math.h>
#include "software/simulation/physics/physics_ball.h"
#include "software/world/field.h"
TEST(PhysicsFieldTest, test_get_field)
{
b2Vec2 gravity(0, 0);
auto world = std::make_shared<b2Wor... | 34.448718 | 85 | 0.681801 | EvanMorcom |
ce9ee52109b90e03817790e2fb1cd57241ddbd20 | 454 | cpp | C++ | library/cpp/yt/misc/unittests/guid_ut.cpp | jochenater/catboost | de2786fbc633b0d6ea6a23b3862496c6151b95c2 | [
"Apache-2.0"
] | 6,989 | 2017-07-18T06:23:18.000Z | 2022-03-31T15:58:36.000Z | library/cpp/yt/misc/unittests/guid_ut.cpp | jochenater/catboost | de2786fbc633b0d6ea6a23b3862496c6151b95c2 | [
"Apache-2.0"
] | 1,978 | 2017-07-18T09:17:58.000Z | 2022-03-31T14:28:43.000Z | library/cpp/yt/misc/unittests/guid_ut.cpp | jochenater/catboost | de2786fbc633b0d6ea6a23b3862496c6151b95c2 | [
"Apache-2.0"
] | 1,228 | 2017-07-18T09:03:13.000Z | 2022-03-29T05:57:40.000Z | #include <library/cpp/testing/gtest/gtest.h>
#include <library/cpp/yt/misc/guid.h>
namespace NYT {
namespace {
////////////////////////////////////////////////////////////////////////////////
TEST(TGuidTest, RandomGuids)
{
auto guid = TGuid::Create();
auto otherGuid = TGuid::Create();
EXPECT_FALSE(guid ... | 21.619048 | 80 | 0.433921 | jochenater |
cea193e6500012362323f17459494450d09e67cb | 2,804 | cc | C++ | source/gpu_perf_api_vk/vk_command_list_sw_queries.cc | roobre/gpu_performance_api | 948c67c6fd04222f6b4ee038a9b940f3fd60d0d9 | [
"MIT"
] | null | null | null | source/gpu_perf_api_vk/vk_command_list_sw_queries.cc | roobre/gpu_performance_api | 948c67c6fd04222f6b4ee038a9b940f3fd60d0d9 | [
"MIT"
] | null | null | null | source/gpu_perf_api_vk/vk_command_list_sw_queries.cc | roobre/gpu_performance_api | 948c67c6fd04222f6b4ee038a9b940f3fd60d0d9 | [
"MIT"
] | null | null | null | //==============================================================================
// Copyright (c) 2015-2020 Advanced Micro Devices, Inc. All rights reserved.
/// \author AMD Developer Tools Team
/// \file
/// \brief VkCommandListSwQueries declaration
//==================================================================... | 28.907216 | 120 | 0.737518 | roobre |
cea23c093bbe9bed389f5f4caef0fdaff75c1337 | 1,940 | cpp | C++ | tests/test_spu_structure_iterator.cpp | kiryanenko/graph-api | 43436b98189db58587a7cf779293dac8f4b5e39a | [
"MIT"
] | 1 | 2020-03-29T19:42:34.000Z | 2020-03-29T19:42:34.000Z | tests/test_spu_structure_iterator.cpp | kiryanenko/graph-api | 43436b98189db58587a7cf779293dac8f4b5e39a | [
"MIT"
] | null | null | null | tests/test_spu_structure_iterator.cpp | kiryanenko/graph-api | 43436b98189db58587a7cf779293dac8f4b5e39a | [
"MIT"
] | null | null | null | //
// Created by a.kiryanenko on 2020-02-04.
//
#include "../SpuUltraGraph.h"
#include <boost/test/unit_test.hpp>
BOOST_AUTO_TEST_SUITE(testSpuStructureIterator)
using namespace SPU_GRAPH;
using namespace boost;
struct Fixture
{
GraphStructure structure;
Fixture() : structure() {... | 25.194805 | 68 | 0.549485 | kiryanenko |
cea4c97113db2847886831746b4f8a725d47d347 | 1,327 | cpp | C++ | Dynamic Programming/Longest Increasing Subsequence/LongestArithmeticSubsequence1027.cpp | devangi2000/Data-Structures-Algorithms-Handbook | ce0f00de89af5da7f986e65089402dc6908a09b5 | [
"MIT"
] | 38 | 2021-10-14T09:36:53.000Z | 2022-01-27T02:36:19.000Z | Dynamic Programming/Longest Increasing Subsequence/LongestArithmeticSubsequence1027.cpp | devangi2000/Data-Structures-Algorithms-Handbook | ce0f00de89af5da7f986e65089402dc6908a09b5 | [
"MIT"
] | null | null | null | Dynamic Programming/Longest Increasing Subsequence/LongestArithmeticSubsequence1027.cpp | devangi2000/Data-Structures-Algorithms-Handbook | ce0f00de89af5da7f986e65089402dc6908a09b5 | [
"MIT"
] | 4 | 2021-12-06T15:47:12.000Z | 2022-02-04T04:25:00.000Z | // Given an array nums of integers, return the length of the longest arithmetic subsequence in nums.
// Recall that a subsequence of an array nums is a list nums[i1], nums[i2], ..., nums[ik] with 0 <= i1 < i2 < ... < ik <= nums.length - 1, and that a sequence seq is arithmetic if seq[i+1] - seq[i] are all the same v... | 28.234043 | 252 | 0.533534 | devangi2000 |
cea5828e32eb2af2a05e49cd9a65f287b5ba3823 | 37,535 | cpp | C++ | rviz_cinematographer_view_controller/src/rviz_cinematographer_view_controller.cpp | qpc001/rviz_cinematographer | 51fc022524d6ecebf603bac0c8ab39f22fff1a2f | [
"BSD-3-Clause"
] | 113 | 2018-11-02T17:40:30.000Z | 2022-03-08T11:44:00.000Z | rviz_cinematographer_view_controller/src/rviz_cinematographer_view_controller.cpp | tanujthakkar/rviz_cinematographer | 04d66f5fbf2f97ac98d88fb67baabde00e5525f8 | [
"BSD-3-Clause"
] | 11 | 2019-01-22T22:33:27.000Z | 2021-11-26T10:25:11.000Z | rviz_cinematographer_view_controller/src/rviz_cinematographer_view_controller.cpp | tanujthakkar/rviz_cinematographer | 04d66f5fbf2f97ac98d88fb67baabde00e5525f8 | [
"BSD-3-Clause"
] | 17 | 2018-11-05T08:46:49.000Z | 2021-04-14T16:31:31.000Z | /*
* Copyright (c) 2009, Willow Garage, 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:
*
* * Redistributions of source code must retain the above copyright
* notice, this l... | 42.269144 | 168 | 0.71773 | qpc001 |
cea8c1e43c062e8794dbb0142c6d6e809251a527 | 1,209 | cpp | C++ | src/test.cpp | stestagg/pytubes | 003b2a5045417317667559ce39ddd0a005208e70 | [
"MIT"
] | 166 | 2018-03-05T14:43:26.000Z | 2022-01-01T17:59:37.000Z | src/test.cpp | stestagg/pytubes | 003b2a5045417317667559ce39ddd0a005208e70 | [
"MIT"
] | 14 | 2018-02-27T10:23:33.000Z | 2020-02-04T14:36:16.000Z | src/test.cpp | stestagg/pytubes | 003b2a5045417317667559ce39ddd0a005208e70 | [
"MIT"
] | 15 | 2018-03-06T05:00:30.000Z | 2021-12-04T19:43:12.000Z | #define CATCH_CONFIG_RUNNER
#include <catch2.hpp>
#include <Python.h>
void __Pyx_CppExn2PyErr() {};
struct LogPyErrors : Catch::TestEventListenerBase {
using TestEventListenerBase::TestEventListenerBase; // inherit constructor
void testCaseStarting( Catch::TestCaseInfo const& testInfo ... | 27.477273 | 92 | 0.590571 | stestagg |
cea95b6f8759013aecb938ea98fa77b9b583e2ba | 1,679 | cpp | C++ | source/visual/cGlow.cpp | MausGames/project-one | 157c93e8b4a926528ce5e77efacfcd950ea361f9 | [
"Zlib"
] | 3 | 2015-06-30T00:10:29.000Z | 2021-03-09T21:05:11.000Z | source/visual/cGlow.cpp | MausGames/project-one | 157c93e8b4a926528ce5e77efacfcd950ea361f9 | [
"Zlib"
] | null | null | null | source/visual/cGlow.cpp | MausGames/project-one | 157c93e8b4a926528ce5e77efacfcd950ea361f9 | [
"Zlib"
] | null | null | null | ///////////////////////////////////////////////////////
//*-------------------------------------------------*//
//| Part of Project One (https://www.maus-games.at) |//
//*-------------------------------------------------*//
//| Released under the zlib License |//
//| More information available in the re... | 32.288462 | 221 | 0.449672 | MausGames |
ceb00d9ced0846bb656783edc5d08fe8ed2e626b | 2,391 | hpp | C++ | pnc/draco_pnc/draco_control_architecture.hpp | junhyeokahn/PnC | 388440f7db7b2aedf1e397d0130d806090865c35 | [
"MIT"
] | 25 | 2019-01-31T13:51:34.000Z | 2022-02-08T13:19:01.000Z | pnc/draco_pnc/draco_control_architecture.hpp | junhyeokahn/PnC | 388440f7db7b2aedf1e397d0130d806090865c35 | [
"MIT"
] | 5 | 2020-06-01T20:48:46.000Z | 2022-02-08T11:42:02.000Z | pnc/draco_pnc/draco_control_architecture.hpp | junhyeokahn/PnC | 388440f7db7b2aedf1e397d0130d806090865c35 | [
"MIT"
] | 9 | 2018-11-20T22:37:50.000Z | 2021-09-14T17:17:27.000Z | #pragma once
#include "configuration.hpp"
#include "pnc/control_architecture.hpp"
#include "pnc/draco_pnc/draco_controller.hpp"
#include "pnc/draco_pnc/draco_data_manager.hpp"
#include "pnc/draco_pnc/draco_tci_container.hpp"
#include "pnc/planners/locomotion/dcm_planner/dcm_planner.hpp"
#include "pnc/robot_system/robo... | 33.208333 | 83 | 0.821832 | junhyeokahn |
ceb10aa6fd87f3508fc8b8ac121175e63aa1b5e0 | 1,019 | cpp | C++ | src/ecs/systems/CurseOnPickSystem.cpp | Gegel85/IndieStudio | 63e58c61416b3c16885d35d75d126e3db5ed3cc8 | [
"MIT"
] | null | null | null | src/ecs/systems/CurseOnPickSystem.cpp | Gegel85/IndieStudio | 63e58c61416b3c16885d35d75d126e3db5ed3cc8 | [
"MIT"
] | 12 | 2019-05-22T12:22:44.000Z | 2019-06-15T17:31:04.000Z | src/ecs/systems/CurseOnPickSystem.cpp | Gegel85/IndieStudio | 63e58c61416b3c16885d35d75d126e3db5ed3cc8 | [
"MIT"
] | 1 | 2019-06-18T12:57:58.000Z | 2019-06-18T12:57:58.000Z | /*
** EPITECH PROJECT, 2019
** bomberman
** File description:
** CurseOnPickSystem.cpp
*/
#include "CurseOnPickSystem.hpp"
#include "../components/PickableComponent.hpp"
#include "../components/CurseComponent.hpp"
#include "../../config.hpp"
#include "../components/CurseOnPickComponent.hpp"
ECS::CurseOnPickSystem::Cu... | 31.84375 | 111 | 0.720314 | Gegel85 |
ceb1130cc9a05cb21cd996776fe30f5364beef8d | 208,368 | cpp | C++ | catboost/python-package/ut/medium/gpu/canondata/test.test_cpp_export_with_cat_features_GPU_/model.cpp | nikita-uvarov/catboost | c79bea78f353b3fdf2bb82b45d25a9665728ed70 | [
"Apache-2.0"
] | null | null | null | catboost/python-package/ut/medium/gpu/canondata/test.test_cpp_export_with_cat_features_GPU_/model.cpp | nikita-uvarov/catboost | c79bea78f353b3fdf2bb82b45d25a9665728ed70 | [
"Apache-2.0"
] | null | null | null | catboost/python-package/ut/medium/gpu/canondata/test.test_cpp_export_with_cat_features_GPU_/model.cpp | nikita-uvarov/catboost | c79bea78f353b3fdf2bb82b45d25a9665728ed70 | [
"Apache-2.0"
] | 1 | 2019-07-01T20:59:01.000Z | 2019-07-01T20:59:01.000Z | #include <string>
#ifdef GOOOGLE_CITY_HASH // Required revision https://github.com/google/cityhash/tree/00b9287e8c1255b5922ef90e304d5287361b2c2a or earlier
#include "city.h"
#else
#include <util/digest/city.h>
#endif
#include <cstdio>
#include <vector>
#include <unordered_map>
#include <cassert>
typedef unsi... | 145.813856 | 7,752 | 0.622735 | nikita-uvarov |
ceb2298d02ed3ec0e649b46a57f97e796ac42fb9 | 710 | cpp | C++ | UVaOnlineJudge/Contest_Volumes(10000...)/Volume122(12200-12299)/12250/code.cpp | luiscbr92/algorithmic-challenges | bc35729e54e4284e9ade1aa61b51a1c2d72aa62c | [
"MIT"
] | 3 | 2015-10-21T18:56:43.000Z | 2017-06-06T10:44:22.000Z | UVaOnlineJudge/Contest_Volumes(10000...)/Volume122(12200-12299)/12250/code.cpp | luiscbr92/algorithmic-challenges | bc35729e54e4284e9ade1aa61b51a1c2d72aa62c | [
"MIT"
] | null | null | null | UVaOnlineJudge/Contest_Volumes(10000...)/Volume122(12200-12299)/12250/code.cpp | luiscbr92/algorithmic-challenges | bc35729e54e4284e9ade1aa61b51a1c2d72aa62c | [
"MIT"
] | null | null | null | #include <iostream>
using namespace std;
int main(){
string line;
int i = 1;
while(getline(cin, line) && line[0] != '#'){
if(line=="HELLO") cout << "Case " << i << ": ENGLISH\n";
else if(line=="HOLA") cout << "Case " << i << ": SPANISH\n";
else if(line=="HA... | 33.809524 | 78 | 0.412676 | luiscbr92 |
ceb2469168f7e815a3e08352b59fe4933b45e6f8 | 2,953 | hpp | C++ | source/hougfx/include/hou/gfx/text_vertex.hpp | DavideCorradiDev/houzi-game-engine | d704aa9c5b024300578aafe410b7299c4af4fcec | [
"MIT"
] | 2 | 2018-04-12T20:59:20.000Z | 2018-07-26T16:04:07.000Z | source/hougfx/include/hou/gfx/text_vertex.hpp | DavideCorradiDev/houzi-game-engine | d704aa9c5b024300578aafe410b7299c4af4fcec | [
"MIT"
] | null | null | null | source/hougfx/include/hou/gfx/text_vertex.hpp | DavideCorradiDev/houzi-game-engine | d704aa9c5b024300578aafe410b7299c4af4fcec | [
"MIT"
] | null | null | null | // Houzi Game Engine
// Copyright (c) 2018 Davide Corradi
// Licensed under the MIT license.
#ifndef HOU_GFX_TEXT_VERTEX_HPP
#define HOU_GFX_TEXT_VERTEX_HPP
#include "hou/gfx/gfx_config.hpp"
#include "hou/cor/pragmas.hpp"
#include "hou/gl/open_gl.hpp"
#include "hou/mth/matrix.hpp"
namespace hou
{
class vertex_... | 22.203008 | 78 | 0.714528 | DavideCorradiDev |
ceb4065c35a9a3cdbaae7aca579120902127c6fe | 397 | cpp | C++ | example/fact.cpp | lisqlql/pyaspp | 06dac7fe42684f6158bef24ac5e4ae4c60c384ab | [
"MIT"
] | null | null | null | example/fact.cpp | lisqlql/pyaspp | 06dac7fe42684f6158bef24ac5e4ae4c60c384ab | [
"MIT"
] | null | null | null | example/fact.cpp | lisqlql/pyaspp | 06dac7fe42684f6158bef24ac5e4ae4c60c384ab | [
"MIT"
] | null | null | null | #py MAX_N = 20
#py{
def cpp_fact(n, res):
return cpp.define('FACT_{}'.format(n), res)
def gen_fact():
acc = 1
yield cpp_fact(0, 1)
for n in range(1, MAX_N + 1):
acc *= n
yield cpp_fact(n, acc)
#py}
#py= gen_fact()
int main() {
std::cout << FACT_1 << std::endl;
std::cout << ... | 15.88 | 47 | 0.536524 | lisqlql |
ceb6ad9d76adaa46b4208d0a8890ec0418935a0b | 3,714 | cc | C++ | chromium/extensions/renderer/api/display_source/wifi_display/wifi_display_session.cc | wedataintelligence/vivaldi-source | 22a46f2c969f6a0b7ca239a05575d1ea2738768c | [
"BSD-3-Clause"
] | null | null | null | chromium/extensions/renderer/api/display_source/wifi_display/wifi_display_session.cc | wedataintelligence/vivaldi-source | 22a46f2c969f6a0b7ca239a05575d1ea2738768c | [
"BSD-3-Clause"
] | null | null | null | chromium/extensions/renderer/api/display_source/wifi_display/wifi_display_session.cc | wedataintelligence/vivaldi-source | 22a46f2c969f6a0b7ca239a05575d1ea2738768c | [
"BSD-3-Clause"
] | null | null | null | // Copyright 2015 The Chromium 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 "extensions/renderer/api/display_source/wifi_display/wifi_display_session.h"
#include "base/logging.h"
#include "base/timer/timer.h"
#include "c... | 31.210084 | 85 | 0.733172 | wedataintelligence |
ceb8c62b11ca0335abff994ee5a866cf731bfff7 | 5,017 | cpp | C++ | src/advphdr.cpp | taviso/mpgravity | f6a2a7a02014b19047e44db76ae551bd689c16ac | [
"BSD-3-Clause"
] | 9 | 2020-04-01T04:15:22.000Z | 2021-09-26T21:03:47.000Z | src/advphdr.cpp | taviso/mpgravity | f6a2a7a02014b19047e44db76ae551bd689c16ac | [
"BSD-3-Clause"
] | 17 | 2020-04-02T19:38:40.000Z | 2020-04-12T05:47:08.000Z | src/advphdr.cpp | taviso/mpgravity | f6a2a7a02014b19047e44db76ae551bd689c16ac | [
"BSD-3-Clause"
] | null | null | null | /*****************************************************************************/
/* SOURCE CONTROL VERSIONS */
/*---------------------------------------------------------------------------*/
/* ... | 39.503937 | 85 | 0.590791 | taviso |
ceb98324927e5f91eb224fea241d07c5405b650d | 2,410 | cpp | C++ | examples/apps/mstc/OpenThreadTalk/OtApiInstance.cpp | jjlee3/openthread | abba21bca6e1b07ca76b0241dfaf045e57396818 | [
"BSD-3-Clause"
] | null | null | null | examples/apps/mstc/OpenThreadTalk/OtApiInstance.cpp | jjlee3/openthread | abba21bca6e1b07ca76b0241dfaf045e57396818 | [
"BSD-3-Clause"
] | null | null | null | examples/apps/mstc/OpenThreadTalk/OtApiInstance.cpp | jjlee3/openthread | abba21bca6e1b07ca76b0241dfaf045e57396818 | [
"BSD-3-Clause"
] | null | null | null | #include "pch.h"
#include "Types.h"
#include "OtApiInstance.h"
using namespace ot;
#ifdef OTDLL
ApiInstance::ApiInstance() :
res_{ ::otApiInit() }
{
if (res_ == invalid())
{
throw ref new OpenThreadTalk::FailureException(
L"ApiInstance::ApiInstance otApiInit Failure");
}
}
#endif /... | 17.851852 | 75 | 0.626556 | jjlee3 |
cebc60b127b831cffc1e1d4e495c1a9a8440fbe1 | 1,189 | cpp | C++ | designpattern/prototype/prototype/src/prototype/vector3d.cpp | bg1bgst333/Sample | 68e3a5c26c6d9bc1906ce0cca2fd586f0790fa52 | [
"MIT"
] | 9 | 2016-12-22T20:24:09.000Z | 2021-05-08T08:48:24.000Z | designpattern/prototype/prototype/src/prototype/vector3d.cpp | bg1bgst333/Sample | 68e3a5c26c6d9bc1906ce0cca2fd586f0790fa52 | [
"MIT"
] | 36 | 2018-08-16T06:43:36.000Z | 2022-03-25T19:01:34.000Z | designpattern/prototype/prototype/src/prototype/vector3d.cpp | bg1bgst333/Sample | 68e3a5c26c6d9bc1906ce0cca2fd586f0790fa52 | [
"MIT"
] | 9 | 2016-09-03T02:57:31.000Z | 2021-09-09T02:42:26.000Z | // ヘッダのインクルード
// 既定のヘッダ
#include <iostream> // C++標準入出力
// 独自のヘッダ
#include "vector3d.h" // class_vector3d
// メンバの定義
// コンストラクタclass_vector3d
class_vector3d::class_vector3d(){
// メンバの初期化.
for (int i = 0; i < 3; i++){ // 3回繰り返す.
e_[i] = 0; // 0に初期化.
}
}
// コピーコンストラクタclass_vector3d
class_vector3d::class_vect... | 18.015152 | 102 | 0.587889 | bg1bgst333 |