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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
d7ef285c805d115f3739bf9c295f6c1f37a00f1e | 954 | cpp | C++ | src/binary/socket-server/test/MainTest.cpp | heaven-chp/base-server-cpp | 87213259c61c93a791d087f4b284f79f0f05574c | [
"Apache-2.0"
] | null | null | null | src/binary/socket-server/test/MainTest.cpp | heaven-chp/base-server-cpp | 87213259c61c93a791d087f4b284f79f0f05574c | [
"Apache-2.0"
] | 1 | 2021-12-19T13:36:19.000Z | 2021-12-19T14:07:14.000Z | src/binary/socket-server/test/MainTest.cpp | heaven-chp/base-server-cpp | 87213259c61c93a791d087f4b284f79f0f05574c | [
"Apache-2.0"
] | null | null | null | #include "test.h"
#include "../Main.h"
#include "gtest/gtest.h"
#include "Singleton.h"
#include "EnvironmentVariable.h"
static void test(int iArgc, char *pcArgv[])
{
const int iPid = fork();
ASSERT_NE(iPid, -1);
extern int optind;
optind = 1;
if(iPid == 0) {
EXPECT_TRUE(Main().Run(iArgc, pcArgv));
exit(... | 18.346154 | 101 | 0.644654 | heaven-chp |
d7f002903117701f16c8e4bd4c26b09523c853a8 | 1,882 | cpp | C++ | src/views/oscilloscope/LCurve.cpp | lotusczp/Lobster | ceb5ec720fdbbd5eddba5eeccc2f875a62d4332e | [
"Apache-2.0",
"MIT"
] | 6 | 2021-01-30T00:06:22.000Z | 2022-02-16T08:20:09.000Z | src/views/oscilloscope/LCurve.cpp | lotusczp/Lobster | ceb5ec720fdbbd5eddba5eeccc2f875a62d4332e | [
"Apache-2.0",
"MIT"
] | null | null | null | src/views/oscilloscope/LCurve.cpp | lotusczp/Lobster | ceb5ec720fdbbd5eddba5eeccc2f875a62d4332e | [
"Apache-2.0",
"MIT"
] | 1 | 2021-08-11T05:19:11.000Z | 2021-08-11T05:19:11.000Z | #include "LCurve.h"
LCurve::LCurve(QCPAxis *keyAxis, QCPAxis *valueAxis)
{
m_pLine = new QCPGraph(keyAxis, valueAxis);
connect(m_pLine, SIGNAL(selectionChanged(bool)), this, SLOT(receiveCurveSelected(bool)));
}
LCurve::~LCurve()
{
//! \note No need to delete m_pLine, its ownership belongs to QCustomPlot... | 23.234568 | 93 | 0.648778 | lotusczp |
d7f1175d285cbcdd2f16afacb3d11608ff254ee0 | 784 | cpp | C++ | Codeforces/711A.cpp | Alipashaimani/Competitive-programming | 5d55567b71ea61e69a6450cda7323c41956d3cb9 | [
"MIT"
] | null | null | null | Codeforces/711A.cpp | Alipashaimani/Competitive-programming | 5d55567b71ea61e69a6450cda7323c41956d3cb9 | [
"MIT"
] | null | null | null | Codeforces/711A.cpp | Alipashaimani/Competitive-programming | 5d55567b71ea61e69a6450cda7323c41956d3cb9 | [
"MIT"
] | null | null | null | #include<bits/stdc++.h>
using namespace std;
string s[1010][2];
int n;
bool flag = false;
int main(){
cin >> n;
for ( int i = 0 ; i < n ; i++){
string x ;
cin >> x;
string s1 ="";
s1 += x[0]; s1 += x[1];
s[i][0] = s1;
s1 = "";
s1 += x[3];s1+=x[4];
... | 21.189189 | 50 | 0.317602 | Alipashaimani |
d7f1dee1657f8b89b7415600ec6bdde58e6b9d3e | 1,285 | cpp | C++ | backup/2/codewars/c++/spanish-conjugator.cpp | yangyanzhan/code-camp | 4272564e916fc230a4a488f92ae32c07d355dee0 | [
"Apache-2.0"
] | 21 | 2019-11-16T19:08:35.000Z | 2021-11-12T12:26:01.000Z | backup/2/codewars/c++/spanish-conjugator.cpp | yangyanzhan/code-camp | 4272564e916fc230a4a488f92ae32c07d355dee0 | [
"Apache-2.0"
] | 1 | 2022-02-04T16:02:53.000Z | 2022-02-04T16:02:53.000Z | backup/2/codewars/c++/spanish-conjugator.cpp | yangyanzhan/code-camp | 4272564e916fc230a4a488f92ae32c07d355dee0 | [
"Apache-2.0"
] | 4 | 2020-05-15T19:39:41.000Z | 2021-10-30T06:40:31.000Z | // Hi, I'm Yanzhan. For more algothmic problems, visit my Youtube Channel (Yanzhan Yang's Youtube Channel) : https://www.youtube.com/channel/UCDkz-__gl3frqLexukpG0DA?view_as=subscriber or my Twitter Account (Yanzhan Yang's Twitter) : https://twitter.com/YangYanzhan or my GitHub HomePage (Yanzhan Yang's GitHub HomePage)... | 42.833333 | 345 | 0.607004 | yangyanzhan |
d7f2c24c55d79b5d81a31bfcf47e661548680f1b | 986 | hpp | C++ | osx-main/src/key_window.hpp | m4c0/m4c0-stl | 5e47439528faee466270706534143c87b4af8cbb | [
"MIT"
] | null | null | null | osx-main/src/key_window.hpp | m4c0/m4c0-stl | 5e47439528faee466270706534143c87b4af8cbb | [
"MIT"
] | null | null | null | osx-main/src/key_window.hpp | m4c0/m4c0-stl | 5e47439528faee466270706534143c87b4af8cbb | [
"MIT"
] | null | null | null | #pragma once
#include "m4c0/objc/geometry.hpp"
#include "m4c0/objc/ns_window.hpp"
#include "metal_view.hpp"
namespace m4c0::osx::details {
class window : public objc::ns_window {
view m_view {};
public:
explicit window(const char * title) : ns_window() {
using namespace m4c0::objc;
constexpr... | 27.388889 | 110 | 0.685598 | m4c0 |
d7f2ede87d36e0c112ec2812f082072eb07dde89 | 12,511 | cpp | C++ | test/catch/scheduler-test.cpp | malachi-iot/embr-netbuf | 501c0ceb251f880d85e112d6eb4e20738791085a | [
"MIT"
] | 1 | 2019-11-17T11:13:05.000Z | 2019-11-17T11:13:05.000Z | test/catch/scheduler-test.cpp | malachi-iot/embr | 9790f4745dd9ac4a3e927a5167cc49f8947acd92 | [
"MIT"
] | null | null | null | test/catch/scheduler-test.cpp | malachi-iot/embr | 9790f4745dd9ac4a3e927a5167cc49f8947acd92 | [
"MIT"
] | null | null | null | #include <catch.hpp>
#include <bitset>
#include <embr/scheduler.h>
// Not available because we test against C++11
//using namespace std::literals::chrono_literals;
struct Item
{
int event_due;
int* counter;
};
struct ItemTraits
{
typedef Item value_type;
typedef int time_point;
static time_poi... | 28.369615 | 118 | 0.572456 | malachi-iot |
d7f9365a88328554992d812629a1e659be898815 | 559 | hpp | C++ | include/ttl/nn/bits/ops/impl/col2im1d.hpp | stdml/stdnn-ops | 0e6132bd65319e318f918094e482482698482e9e | [
"MIT"
] | 3 | 2018-10-23T18:46:39.000Z | 2019-06-24T00:46:10.000Z | include/ttl/nn/bits/ops/impl/col2im1d.hpp | stdml/stdnn-ops | 0e6132bd65319e318f918094e482482698482e9e | [
"MIT"
] | 27 | 2018-11-10T14:19:16.000Z | 2020-03-08T23:33:01.000Z | include/ttl/nn/bits/ops/impl/col2im1d.hpp | stdml/stdnn-ops | 0e6132bd65319e318f918094e482482698482e9e | [
"MIT"
] | 1 | 2018-11-05T06:17:12.000Z | 2018-11-05T06:17:12.000Z | #pragma once
#include <ttl/algorithm>
#include <ttl/nn/bits/ops/col2im1d.hpp>
namespace ttl::nn::ops
{
template <typename R>
void col2im1d::operator()(const ttl::tensor_ref<R, 1> &y,
const ttl::tensor_view<R, 2> &x) const
{
const auto [n] = y.shape().dims();
ttl::fill(y, static_cast<R... | 26.619048 | 64 | 0.525939 | stdml |
cc0096c9c2da939173d886e91a4447129ce0a14f | 11,599 | cpp | C++ | libtr101290/src/Demux.cpp | codetalks-new/libeasyice | 56781ff4a1c5a070526c87790fc34594c25a5846 | [
"MIT"
] | null | null | null | libtr101290/src/Demux.cpp | codetalks-new/libeasyice | 56781ff4a1c5a070526c87790fc34594c25a5846 | [
"MIT"
] | null | null | null | libtr101290/src/Demux.cpp | codetalks-new/libeasyice | 56781ff4a1c5a070526c87790fc34594c25a5846 | [
"MIT"
] | null | null | null | /*
MIT License
Copyright (c) 2009-2019 easyice
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, publish, ... | 21.802632 | 460 | 0.654625 | codetalks-new |
cc0450c7063ad045812f9d9183e3788b462ab683 | 9,673 | cpp | C++ | Source/Core/LibJob/Job.cpp | dzik143/tegenaria | a6c138633ab14232a2229d7498875d9d869d25a9 | [
"MIT"
] | 3 | 2020-12-28T06:18:47.000Z | 2021-08-01T06:18:12.000Z | Source/Core/LibJob/Job.cpp | dzik143/tegenaria | a6c138633ab14232a2229d7498875d9d869d25a9 | [
"MIT"
] | null | null | null | Source/Core/LibJob/Job.cpp | dzik143/tegenaria | a6c138633ab14232a2229d7498875d9d869d25a9 | [
"MIT"
] | null | null | null | /******************************************************************************/
/* */
/* Copyright (c) 2010, 2014 Sylwester Wysocki <sw143@wp.pl> */
/* ... | 23.708333 | 96 | 0.572005 | dzik143 |
cc05eb814f2b793eec7079778810c61bacb14f7b | 6,502 | cpp | C++ | DeviceCode/Drivers/BatteryModel/IML200425_2/IML200425_2_config.cpp | PervasiveDigital/netmf-interpreter | 03d84fe76e0b666ebec62d17d69c55c45940bc40 | [
"Apache-2.0"
] | 529 | 2015-03-10T00:17:45.000Z | 2022-03-17T02:21:19.000Z | DeviceCode/Drivers/BatteryModel/IML200425_2/IML200425_2_config.cpp | PervasiveDigital/netmf-interpreter | 03d84fe76e0b666ebec62d17d69c55c45940bc40 | [
"Apache-2.0"
] | 495 | 2015-03-10T22:02:46.000Z | 2019-05-16T13:05:00.000Z | DeviceCode/Drivers/BatteryModel/IML200425_2/IML200425_2_config.cpp | PervasiveDigital/netmf-interpreter | 03d84fe76e0b666ebec62d17d69c55c45940bc40 | [
"Apache-2.0"
] | 332 | 2015-03-10T08:04:36.000Z | 2022-03-29T04:18:36.000Z | ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
// Copyright (c) Microsoft Corporation. All rights reserved.
///////////////////////////////////////////////////////... | 37.802326 | 201 | 0.375884 | PervasiveDigital |
cc088855eecd363b32f02609132bab024347bf22 | 1,029 | cpp | C++ | src/main.cpp | arccos0/Strip-Packing-Algorithm | d7093db2ef1dee6a06c5299b3512bca47a83e1ec | [
"MIT"
] | 7 | 2021-09-25T07:35:11.000Z | 2021-12-24T12:50:55.000Z | src/main.cpp | arccos0/Strip-Packing-Algorithm | d7093db2ef1dee6a06c5299b3512bca47a83e1ec | [
"MIT"
] | 1 | 2021-11-04T11:45:50.000Z | 2021-12-21T06:42:56.000Z | src/main.cpp | arccos0/Strip-Packing-Algorithm | d7093db2ef1dee6a06c5299b3512bca47a83e1ec | [
"MIT"
] | 9 | 2021-09-25T04:56:43.000Z | 2021-11-26T03:09:18.000Z | #include <experimental/filesystem>
#include <iostream>
#include <map>
#include <string>
#include "BLEU.h"
#include "datareader.h"
#include "heuristic.h"
#include "spp.h"
int main() {
const std::string instancesFolder = "./2sp/";
for (int i = 0; i < 1; ++i) {
for (const auto& entry :
std::experimental:... | 33.193548 | 80 | 0.594752 | arccos0 |
cc098edc2353ea7587be178498d1d10575db91af | 85,164 | cpp | C++ | InterfaceManager.cpp | cjcoimbra/ChessterOSX | 89c6cbdfb295b3d929faa0bf036440b96a0007c6 | [
"AML"
] | null | null | null | InterfaceManager.cpp | cjcoimbra/ChessterOSX | 89c6cbdfb295b3d929faa0bf036440b96a0007c6 | [
"AML"
] | null | null | null | InterfaceManager.cpp | cjcoimbra/ChessterOSX | 89c6cbdfb295b3d929faa0bf036440b96a0007c6 | [
"AML"
] | null | null | null | #include "StdAfx.h"
#include "InterfaceManager.h"
InterfaceManager::InterfaceManager(sf::RenderWindow * rw, ResourceManager * rm, float factor, float max_tile_size)
{
//ctor
wptr = rw;
resource_manager = rm;
isIncreasingScore = false;
isDecreasingScore = false;
currentScore = 0;
//title_sc... | 49.861827 | 181 | 0.699439 | cjcoimbra |
cc152ed8c9aee502fdebf84cfb612afa33c1e52a | 945 | hh | C++ | gazebo/physics/roki/RokiFixedJoint.hh | nyxrobotics/gazebo | 4a9b733a8af9a13cd7f3b23d5414d322a3666a55 | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | gazebo/physics/roki/RokiFixedJoint.hh | nyxrobotics/gazebo | 4a9b733a8af9a13cd7f3b23d5414d322a3666a55 | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | gazebo/physics/roki/RokiFixedJoint.hh | nyxrobotics/gazebo | 4a9b733a8af9a13cd7f3b23d5414d322a3666a55 | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | #ifndef _ROKIFIXEDJOINT_HH_
#define _ROKIFIXEDJOINT_HH_
#include "ignition/math/Angle.hh"
#include "ignition/math/Vector3.hh"
#include "gazebo/util/system.hh"
#include "gazebo/physics/FixedJoint.hh"
#include "gazebo/physics/roki/RokiJoint.hh"
namespace gazebo
{
namespace physics
{
class GZ_PHYSICS_VISIBLE R... | 30.483871 | 80 | 0.740741 | nyxrobotics |
cc1d8404cce1393b8064f3f064102a54d8cdc892 | 844 | hpp | C++ | ltl2fsm/base/exception/Invalid_Vertex_Name.hpp | arafato/ltl2fsm | 58d96c40fe0890c2bcc90593469668e6369c0f1b | [
"MIT"
] | 2 | 2016-11-23T14:31:55.000Z | 2018-05-10T01:11:54.000Z | ltl2fsm/base/exception/Invalid_Vertex_Name.hpp | arafato/ltl2fsm | 58d96c40fe0890c2bcc90593469668e6369c0f1b | [
"MIT"
] | null | null | null | ltl2fsm/base/exception/Invalid_Vertex_Name.hpp | arafato/ltl2fsm | 58d96c40fe0890c2bcc90593469668e6369c0f1b | [
"MIT"
] | null | null | null | /**
* @file ltl2fsm/base/exception/Invalid_Vertex_Name.hpp
*
* $Id$
*
* @author Oliver Arafat
*
* @brief @ref
*
* @note DOCUMENTED
*
* @test
*
* @todo
*/
#ifndef LTL2FSM__BASE__EXCEPTION__INVALID_VERTEX_NAME__HPP
#define LTL2FSM__BASE__EXCEPTION__INVALID_VERTEX_NAME__HPP
#include<ltl2fsm/base/exceptio... | 16.88 | 84 | 0.627962 | arafato |
cc1fbd9849223de739927cfa2f2d8b36cebd54ff | 5,367 | cpp | C++ | src/dispatcher.cpp | ornl-epics/epicsipmi | 788bf6a815e2c0c3a17df219a5becf7f9a376d65 | [
"BSD-3-Clause"
] | 1 | 2019-11-15T08:21:52.000Z | 2019-11-15T08:21:52.000Z | src/dispatcher.cpp | ornl-epics/epicsipmi | 788bf6a815e2c0c3a17df219a5becf7f9a376d65 | [
"BSD-3-Clause"
] | 1 | 2020-11-09T17:48:19.000Z | 2020-11-11T17:41:09.000Z | src/dispatcher.cpp | klemenv/epicsipmi | 05daec62f5bb003361836708a348e13cea0b9474 | [
"BSD-3-Clause"
] | null | null | null | /* dispatcher.cpp
*
* Copyright (c) 2018 Oak Ridge National Laboratory.
* All rights reserved.
* See file LICENSE that is included with this distribution.
*
* @author Klemen Vodopivec
* @date Oct 2018
*/
#include "common.h"
#include "freeipmiprovider.h"
#include "print.h"
#include "dispatcher.h"
#include <cst... | 29.327869 | 111 | 0.584312 | ornl-epics |
cc2d80af346a576a7ad097c9f3e4ed58e0e24533 | 19,936 | cpp | C++ | OpenDriveMap.cpp | chacha95/libOpendrive | 69400a60bd7e4de331396f92c7d20d1a795f4ca9 | [
"Apache-2.0"
] | 1 | 2021-12-06T02:03:09.000Z | 2021-12-06T02:03:09.000Z | OpenDriveMap.cpp | chacha95/libOpendrive | 69400a60bd7e4de331396f92c7d20d1a795f4ca9 | [
"Apache-2.0"
] | null | null | null | OpenDriveMap.cpp | chacha95/libOpendrive | 69400a60bd7e4de331396f92c7d20d1a795f4ca9 | [
"Apache-2.0"
] | 1 | 2021-12-06T02:03:46.000Z | 2021-12-06T02:03:46.000Z | #include "OpenDriveMap.h"
#include "Geometries/Arc.h"
#include "Geometries/CubicSpline.h"
#include "Geometries/Line.h"
#include "Geometries/ParamPoly3.h"
#include "Geometries/Spiral.h"
#include "LaneSection.h"
#include "Lanes.h"
#include "RefLine.h"
#include "Road.h"
#include "pugixml/pugixml.hpp"
#include <iostream>... | 48.743276 | 150 | 0.575492 | chacha95 |
cc3009926544a974144c920dcdc5e96803c64a14 | 4,590 | cc | C++ | graphics/sphere.cc | Tibonium/genecis | 4de1d987f5a7928b1fc3e31d2820f5d2452eb5fc | [
"BSD-2-Clause"
] | null | null | null | graphics/sphere.cc | Tibonium/genecis | 4de1d987f5a7928b1fc3e31d2820f5d2452eb5fc | [
"BSD-2-Clause"
] | null | null | null | graphics/sphere.cc | Tibonium/genecis | 4de1d987f5a7928b1fc3e31d2820f5d2452eb5fc | [
"BSD-2-Clause"
] | null | null | null | #include <genecis/graphics/sphere.h>
#include <ctime>
#include <cstring>
using namespace genecis::graphics ;
/**
* Constructor
*/
Sphere::Sphere(integral_type radius, size_type rings, size_type sectors)
: _vertices(rings * sectors * 3, 0),
_normals(rings * sectors * 3, 0),
_texcoords(rings * sectors... | 32.323944 | 110 | 0.586928 | Tibonium |
cc311d45d444f0d9532b9acba940f32b958936d2 | 94 | cpp | C++ | src/Graphics/UI/Font.cpp | noche-x/Stardust-Engine | 1b6f295650c7b6b7faced0577b04557d5dc23d9b | [
"MIT"
] | null | null | null | src/Graphics/UI/Font.cpp | noche-x/Stardust-Engine | 1b6f295650c7b6b7faced0577b04557d5dc23d9b | [
"MIT"
] | null | null | null | src/Graphics/UI/Font.cpp | noche-x/Stardust-Engine | 1b6f295650c7b6b7faced0577b04557d5dc23d9b | [
"MIT"
] | null | null | null | #include <Graphics/UI/Font.h>
namespace Stardust::Graphics::UI {
intraFont* g_DefaultFont;
} | 18.8 | 34 | 0.755319 | noche-x |
cc3cdda7f2949416f9ab8a752fd735675b92beab | 1,763 | cpp | C++ | SPOJ/SPOJ - BITMAP/Accepted.cpp | kzvd4729/Problem-Solving | 13b105e725a4c2f8db7fecc5d7a8f932b9fef4ab | [
"MIT"
] | 1 | 2022-02-11T16:55:36.000Z | 2022-02-11T16:55:36.000Z | SPOJ/SPOJ - BITMAP/Accepted.cpp | kzvd4729/Problem-Solving | 13b105e725a4c2f8db7fecc5d7a8f932b9fef4ab | [
"MIT"
] | null | null | null | SPOJ/SPOJ - BITMAP/Accepted.cpp | kzvd4729/Problem-Solving | 13b105e725a4c2f8db7fecc5d7a8f932b9fef4ab | [
"MIT"
] | null | null | null | /****************************************************************************************
* @author: kzvd4729 created: 2018-03-15 23:37:16
* solution_verdict: Accepted language: C++
* run... | 23.197368 | 111 | 0.384005 | kzvd4729 |
cc4321d1811a4f615623f91d4739193c6797c760 | 118 | hpp | C++ | test/TestHeaders.hpp | coderkd10/EternalTerminal | d15bb726d987bd147480125d694de44a2ea6ce83 | [
"Apache-2.0"
] | 1,783 | 2018-02-28T16:28:42.000Z | 2022-03-31T18:45:01.000Z | test/TestHeaders.hpp | coderkd10/EternalTerminal | d15bb726d987bd147480125d694de44a2ea6ce83 | [
"Apache-2.0"
] | 337 | 2018-02-27T06:38:39.000Z | 2022-03-22T02:50:58.000Z | test/TestHeaders.hpp | coderkd10/EternalTerminal | d15bb726d987bd147480125d694de44a2ea6ce83 | [
"Apache-2.0"
] | 135 | 2018-04-30T14:48:36.000Z | 2022-03-21T16:51:09.000Z | #ifndef __TEST_HEADERS_HPP__
#define __TEST_HEADERS_HPP__
#include "Headers.hpp"
#include "catch2/catch.hpp"
#endif
| 14.75 | 28 | 0.805085 | coderkd10 |
cc546e5155e60885bab5412fe212be512930dd84 | 428 | cpp | C++ | COS1511/Part2/Lesson11/a.cpp | GalliWare/UNISA-studies | 32bab94930b176c4dfe943439781ef102896fab5 | [
"Unlicense"
] | null | null | null | COS1511/Part2/Lesson11/a.cpp | GalliWare/UNISA-studies | 32bab94930b176c4dfe943439781ef102896fab5 | [
"Unlicense"
] | null | null | null | COS1511/Part2/Lesson11/a.cpp | GalliWare/UNISA-studies | 32bab94930b176c4dfe943439781ef102896fab5 | [
"Unlicense"
] | null | null | null | #include <iostream>
using namespace std;
int main()
{
// set constants
const int LOWEST_NUMBER = 10, LARGEST_NUMBER = 20;
// set variables
int number;
bool loop = true;
// as we set loop we can start the loop
while (loop)
{
cout << "Please provide number between 10 and 20: ";
cin >> number;
... | 17.12 | 58 | 0.614486 | GalliWare |
cc57d9e33d0a16a25da90bdd209d1bfb0b63bb8e | 1,843 | cpp | C++ | PAT-A/PATA1114_2.cpp | GRAYCN/Algorithm-notebook | 04fa7b759a797fb47e11bcdd1f8cc7bef297578c | [
"Apache-2.0"
] | 1 | 2019-07-06T10:40:28.000Z | 2019-07-06T10:40:28.000Z | PAT-A/PATA1114_2.cpp | GRAYCN/Algorithm-notebook | 04fa7b759a797fb47e11bcdd1f8cc7bef297578c | [
"Apache-2.0"
] | null | null | null | PAT-A/PATA1114_2.cpp | GRAYCN/Algorithm-notebook | 04fa7b759a797fb47e11bcdd1f8cc7bef297578c | [
"Apache-2.0"
] | null | null | null | //PATA1114_2
//UFS
#include<iostream>
#include<cstdio>
#include<algorithm>
using namespace std;
#define maxn 1005
#define maxm 10005
struct People{
int id,fid,mid,num,area;
int cid[8];
}peo[maxn];
struct Answer{
int id;
double num,area;
int people;
bool flag;
}ans[maxm];
bool visit[maxm];
int father[maxm];
in... | 16.908257 | 79 | 0.568095 | GRAYCN |
cc5c176217bad9eea703faeea08e8da56812d72c | 13,573 | cpp | C++ | windows/c++/visualstudio/src/WorkerManager.cpp | afskylia/bachelor-starcraft-bot | e9d53345d77f6243f5a2db1781cdfcb7838ebcfd | [
"MIT"
] | null | null | null | windows/c++/visualstudio/src/WorkerManager.cpp | afskylia/bachelor-starcraft-bot | e9d53345d77f6243f5a2db1781cdfcb7838ebcfd | [
"MIT"
] | 2 | 2021-06-27T18:57:39.000Z | 2021-06-27T18:57:52.000Z | windows/c++/visualstudio/src/WorkerManager.cpp | afskylia/bachelor-starcraft-bot | e9d53345d77f6243f5a2db1781cdfcb7838ebcfd | [
"MIT"
] | null | null | null | #include "WorkerManager.h"
#include <BWAPI/Client/Client.h>
#include "Global.h"
#include "BWEM/src/bwem.h"
#include "Tools.h"
using namespace MiraBot;
WorkerManager::WorkerManager()
{
}
void WorkerManager::onFrame()
{
// Update workers, e.g. set job as 'Idle' when job completed
updateWorkerStatus();
// Send id... | 29.002137 | 113 | 0.719959 | afskylia |
cc5cc401a2e71fc0ab458087c6a939940671fadf | 812 | cc | C++ | src/Vec3.cc | alexander-koch/airfoil | 4c7afa81d6166b463de6afde5c2d491226fffa52 | [
"MIT"
] | null | null | null | src/Vec3.cc | alexander-koch/airfoil | 4c7afa81d6166b463de6afde5c2d491226fffa52 | [
"MIT"
] | null | null | null | src/Vec3.cc | alexander-koch/airfoil | 4c7afa81d6166b463de6afde5c2d491226fffa52 | [
"MIT"
] | null | null | null | #include "Vec3.hpp"
Vec3 Vec3::operator+(Vec3 v2) {
return Vec3(x + v2.x, y + v2.y, z + v2.z);
}
void Vec3::operator+=(Vec3 v2) {
x += v2.x;
y += v2.y;
z += v2.z;
}
Vec3 Vec3::operator*(double f) {
return Vec3(x * f, y * f, z * f);
}
Vec3 Vec3::operator-(Vec3 v2) {
return Vec3(x - v2.x, y - ... | 16.916667 | 46 | 0.5 | alexander-koch |
7fe7ce4dda7d7f0e2b562fe539c2e264ad229ee8 | 905 | cpp | C++ | main.cpp | birdiFVZ/neuralNetwork | 4e1eeb5a2641feff9a6b71c83cb7c09de499c50d | [
"MIT"
] | null | null | null | main.cpp | birdiFVZ/neuralNetwork | 4e1eeb5a2641feff9a6b71c83cb7c09de499c50d | [
"MIT"
] | null | null | null | main.cpp | birdiFVZ/neuralNetwork | 4e1eeb5a2641feff9a6b71c83cb7c09de499c50d | [
"MIT"
] | null | null | null | #include <iostream>
#include "src/MyMatrix.h"
#include "src/MyNetwork.h"
#include "src/functions.h"
#include "src/MyFile.h"
#include "src/MyBodyData.h"
using namespace std;
int main() {
string trainingPath = "/home/birdi/Schreibtisch/neuralNetwork07022018/data/training.csv";
MyFile trainingFile(trainingPath... | 20.568182 | 93 | 0.672928 | birdiFVZ |
7fe89aa59cb2b88b5b6003541db2e75b4dc9a7d5 | 729 | cpp | C++ | libKBEClient/KBEGameSocket.cpp | ypfsoul/kbengine-client-cocos2dx-3.11-MyGame | 3729c4457feaf9540ad5f274b6fe42542b0d9608 | [
"MIT"
] | 3 | 2017-07-23T23:37:34.000Z | 2017-09-22T06:28:34.000Z | libKBEClient/KBEGameSocket.cpp | ypfsoul/kbengine-client-cocos2dx-3.11-MyGame | 3729c4457feaf9540ad5f274b6fe42542b0d9608 | [
"MIT"
] | null | null | null | libKBEClient/KBEGameSocket.cpp | ypfsoul/kbengine-client-cocos2dx-3.11-MyGame | 3729c4457feaf9540ad5f274b6fe42542b0d9608 | [
"MIT"
] | null | null | null | #include "KBEGameSocket.h"
KBEGameSocket::KBEGameSocket()
{
gameSocket = NULL;
}
KBEGameSocket::~KBEGameSocket()
{
releaseSocket();
}
bool KBEGameSocket::connectionServer(const char* ipStr, uint32 port)
{
ip = ipStr;
port = port;
releaseSocket();
createSocket();
if(gameSocket->connect(ip.c_str(), port))
{
re... | 14.877551 | 68 | 0.694102 | ypfsoul |
7fee15b624e398e4620c86ea0754e1f806ab1020 | 26,361 | cpp | C++ | Source/Tests/Replica/SceneSynchronization.cpp | jayrulez/rbfx | 8641813787d558b6e8318c1b8e9da86c0e52f9dc | [
"MIT"
] | 48 | 2016-11-14T00:39:35.000Z | 2018-12-18T16:37:43.000Z | Source/Tests/Replica/SceneSynchronization.cpp | jayrulez/rbfx | 8641813787d558b6e8318c1b8e9da86c0e52f9dc | [
"MIT"
] | 54 | 2017-10-18T07:18:12.000Z | 2018-12-23T14:09:30.000Z | Source/Tests/Replica/SceneSynchronization.cpp | jayrulez/rbfx | 8641813787d558b6e8318c1b8e9da86c0e52f9dc | [
"MIT"
] | 10 | 2017-11-10T11:46:15.000Z | 2018-12-18T11:58:44.000Z | //
// Copyright (c) 2017-2021 the rbfx project.
//
// 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, mer... | 47.669078 | 157 | 0.721672 | jayrulez |
7ff2642d55b39b8c6c655072137a1d1a3f17cdc4 | 739 | cpp | C++ | STL_C++/Iterators.cpp | prabhash-varma/DSA-CP | 685b13d960d2045d003e30f235d678b9f05548b3 | [
"MIT"
] | null | null | null | STL_C++/Iterators.cpp | prabhash-varma/DSA-CP | 685b13d960d2045d003e30f235d678b9f05548b3 | [
"MIT"
] | null | null | null | STL_C++/Iterators.cpp | prabhash-varma/DSA-CP | 685b13d960d2045d003e30f235d678b9f05548b3 | [
"MIT"
] | null | null | null |
#include<bits/stdc++.h>
using namespace std;
int main(){
vector<int> v ={2,3,5,6,7};
// for(int i=0;i<v.size();i++){
// cout<<v[i]<< " ";
// }
// cout<<endl;
//Iterator declaration
vector<int> :: iterator it = v.begin();
//cout<<(*(it+1))<<endl;
for(it=v.begin();it !=v.e... | 18.02439 | 54 | 0.470907 | prabhash-varma |
7ff59dcffba8ef64c7f8d3e79b5160afe82ecb15 | 2,727 | cpp | C++ | C++/rectangle-area-ii.cpp | jaiskid/LeetCode-Solutions | a8075fd69087c5463f02d74e6cea2488fdd4efd1 | [
"MIT"
] | 3,269 | 2018-10-12T01:29:40.000Z | 2022-03-31T17:58:41.000Z | C++/rectangle-area-ii.cpp | pnandini/LeetCode | e746c3298be96dec8e160da9378940568ef631b1 | [
"MIT"
] | 53 | 2018-12-16T22:54:20.000Z | 2022-02-25T08:31:20.000Z | C++/rectangle-area-ii.cpp | pnandini/LeetCode | e746c3298be96dec8e160da9378940568ef631b1 | [
"MIT"
] | 1,236 | 2018-10-12T02:51:40.000Z | 2022-03-30T13:30:37.000Z | // Time: O(nlogn)
// Space: O(n)
class Solution {
public:
enum { OPEN = 1, CLOSE = -1};
int rectangleArea(vector<vector<int>>& rectangles) {
vector<vector<int>> events;
set<int> Xvals;
for (const auto& rec: rectangles) {
events.emplace_back(vector<int>{rec[1], OPEN, re... | 28.113402 | 76 | 0.441511 | jaiskid |
7ff873a32d8231c89f28f48b8804cbd12e64d12a | 968 | cpp | C++ | Angel/Libraries/FTGL/src/FTLibrary.cpp | Tifox/Grog-Knight | 377a661286cda7ee3b2b2d0099641897938c2f8f | [
"Apache-2.0"
] | 171 | 2015-01-08T10:35:56.000Z | 2021-07-03T12:35:10.000Z | Angel/Libraries/FTGL/src/FTLibrary.cpp | Tifox/Grog-Knight | 377a661286cda7ee3b2b2d0099641897938c2f8f | [
"Apache-2.0"
] | 11 | 2015-01-30T05:30:54.000Z | 2017-04-08T23:34:33.000Z | Angel/Libraries/FTGL/src/FTLibrary.cpp | Tifox/Grog-Knight | 377a661286cda7ee3b2b2d0099641897938c2f8f | [
"Apache-2.0"
] | 59 | 2015-02-01T03:43:00.000Z | 2020-12-01T02:08:57.000Z | #include "FTLibrary.h"
const FTLibrary& FTLibrary::Instance()
{
static FTLibrary ftlib;
return ftlib;
}
FTLibrary::~FTLibrary()
{
if( library != 0)
{
FT_Done_FreeType( *library);
delete library;
library= 0;
}
// if( manager != 0)
// {
// ... | 14.892308 | 71 | 0.494835 | Tifox |
3d00d94ec5c106e63b74c91e2e0d40c6ff05aa35 | 6,403 | cpp | C++ | src/QtManagers/Images/nSubgroupPictures.cpp | Vladimir-Lin/QtManagers | 2f906b165f773bff054a8349c577b7d07c2345d9 | [
"MIT"
] | null | null | null | src/QtManagers/Images/nSubgroupPictures.cpp | Vladimir-Lin/QtManagers | 2f906b165f773bff054a8349c577b7d07c2345d9 | [
"MIT"
] | null | null | null | src/QtManagers/Images/nSubgroupPictures.cpp | Vladimir-Lin/QtManagers | 2f906b165f773bff054a8349c577b7d07c2345d9 | [
"MIT"
] | null | null | null | #include <qtmanagers.h>
N::SubgroupPictures:: SubgroupPictures (QWidget * parent,Plan * p)
: SubgroupLists ( parent, p)
{
WidgetClass ;
Configure ( ) ;
}
N::SubgroupPictures::~SubgroupPictures(void)
{
}
void N::SubgroupPictures::Configure(void)
{
}
void N::SubgroupPicture... | 46.737226 | 66 | 0.243948 | Vladimir-Lin |
3d049e20010fb075d1aae3832f07acdf5d61e1b7 | 1,291 | cpp | C++ | libraries/RTClib/src/RTC_Micros.cpp | FelipeJojoa28/MQTT_Iot | f35f74775ae9edacb4a456d74a6aa55c12734b17 | [
"Apache-2.0"
] | 1 | 2022-03-10T11:19:46.000Z | 2022-03-10T11:19:46.000Z | libraries/RTClib/src/RTC_Micros.cpp | FelipeJojoa28/MQTT_Iot | f35f74775ae9edacb4a456d74a6aa55c12734b17 | [
"Apache-2.0"
] | null | null | null | libraries/RTClib/src/RTC_Micros.cpp | FelipeJojoa28/MQTT_Iot | f35f74775ae9edacb4a456d74a6aa55c12734b17 | [
"Apache-2.0"
] | 1 | 2018-09-28T11:43:20.000Z | 2018-09-28T11:43:20.000Z | #include "RTClib.h"
/**************************************************************************/
/*!
@brief Set the current date/time of the RTC_Micros clock.
@param dt DateTime object with the desired date and time
*/
/**************************************************************************/
void RTC_Micro... | 37.970588 | 80 | 0.463207 | FelipeJojoa28 |
3d04c7c1aa478d4067a24bbaa522f7df232b5972 | 239 | cpp | C++ | Source/Borderlands/weapon/WeaponStateInactive.cpp | yongaro/Borderlands | 39fbcf095400b53f4394cc115e59f40e59520484 | [
"Apache-2.0"
] | 1 | 2020-04-03T13:29:51.000Z | 2020-04-03T13:29:51.000Z | Source/Borderlands/weapon/WeaponStateInactive.cpp | yongaro/Borderlands | 39fbcf095400b53f4394cc115e59f40e59520484 | [
"Apache-2.0"
] | null | null | null | Source/Borderlands/weapon/WeaponStateInactive.cpp | yongaro/Borderlands | 39fbcf095400b53f4394cc115e59f40e59520484 | [
"Apache-2.0"
] | null | null | null | // Fill out your copyright notice in the Description page of Project Settings.
#include "WeaponStateInactive.h"
#include "Borderlands.h"
UWeaponStateInactive::UWeaponStateInactive()
{
}
UWeaponStateInactive::~UWeaponStateInactive()
{
}
| 18.384615 | 78 | 0.790795 | yongaro |
3d05e3dde5a40e2d905e87d8dc61665ba96ef62c | 1,218 | hpp | C++ | src/Program.hpp | Fabio3rs/dbdhelp | 1afeef265b826220e2a769353b932fc6b8436905 | [
"MIT"
] | null | null | null | src/Program.hpp | Fabio3rs/dbdhelp | 1afeef265b826220e2a769353b932fc6b8436905 | [
"MIT"
] | null | null | null | src/Program.hpp | Fabio3rs/dbdhelp | 1afeef265b826220e2a769353b932fc6b8436905 | [
"MIT"
] | null | null | null | #pragma once
#ifndef MIGRATIONMGR_PROGRAM_HPP
#define MIGRATIONMGR_PROGRAM_HPP
#include <deque>
#include <cstdint>
#include <string>
#include "Database.hpp"
#include "CLuaH.hpp"
#include "CLuaFunctions.hpp"
#include "CViewsManager.hpp"
namespace migmgr
{
class Program
{
std::string con... | 22.981132 | 57 | 0.62069 | Fabio3rs |
3d0794c35948a79e6a18ccf73b93aa165aa37257 | 1,551 | cpp | C++ | Solutions/Candy/main.cpp | Crayzero/LeetCodeProgramming | b10ebe22c0de1501722f0f5c934c0c1902a26789 | [
"MIT"
] | 1 | 2015-04-13T10:58:30.000Z | 2015-04-13T10:58:30.000Z | Solutions/Candy/main.cpp | Crayzero/LeetCodeProgramming | b10ebe22c0de1501722f0f5c934c0c1902a26789 | [
"MIT"
] | null | null | null | Solutions/Candy/main.cpp | Crayzero/LeetCodeProgramming | b10ebe22c0de1501722f0f5c934c0c1902a26789 | [
"MIT"
] | null | null | null | #include <iostream>
#include <vector>
#include <numeric>
using namespace std;
class Solution {
public:
//time limit exceeded
int candy(vector<int> &ratings) {
vector<int> res_v(ratings.size(), 1);
vector<int>::size_type size = ratings.size();
for(vector<int>::size_type i = 1; i < size;... | 27.210526 | 98 | 0.459059 | Crayzero |
3d0bf051397043a1671cf2fa0f9fe0964a689f4b | 2,997 | cpp | C++ | lib/util/Configurations.cpp | GloomyGrave/Sinsy-NG | 30c464b24eeb0d88caa9412286741889d1c84714 | [
"Unlicense"
] | 2 | 2021-03-20T10:29:29.000Z | 2022-02-09T03:48:36.000Z | lib/util/Configurations.cpp | GloomyGrave/Sinsy-NG | 30c464b24eeb0d88caa9412286741889d1c84714 | [
"Unlicense"
] | null | null | null | lib/util/Configurations.cpp | GloomyGrave/Sinsy-NG | 30c464b24eeb0d88caa9412286741889d1c84714 | [
"Unlicense"
] | 2 | 2020-10-24T02:51:41.000Z | 2022-03-26T20:32:39.000Z | /* Created by Ghost Gloomy on 2018/11/8. */
#include <fstream>
#include "Configurations.h"
#include "util_log.h"
#include "util_string.h"
#include "StringTokenizer.h"
namespace sinsy
{
namespace
{
const std::string SEPARATOR = "=";
};
/*!
constructor
*/
Configurations::Configurations()
{
}
/*!
destructor
*/
Co... | 19.588235 | 134 | 0.539206 | GloomyGrave |
3d0e0842735b49023f5255f453912b41eceda925 | 999 | hpp | C++ | range.hpp | snir1551/Ex10_C- | 70c0701aa7d130be19ace214c83f66ac17b96d8d | [
"MIT"
] | 1 | 2021-05-31T13:09:48.000Z | 2021-05-31T13:09:48.000Z | range.hpp | snir1551/Ex10_C- | 70c0701aa7d130be19ace214c83f66ac17b96d8d | [
"MIT"
] | null | null | null | range.hpp | snir1551/Ex10_C- | 70c0701aa7d130be19ace214c83f66ac17b96d8d | [
"MIT"
] | null | null | null | #ifndef _RANGE_HPP
#define _RANGE_HPP
#include <iostream>
namespace itertools
{
//iterator class
class iterator
{
private:
int _num; //parameter
public:
iterator(int num): _num(num)
{
}
void operator++()
{
++(this->_num);
... | 16.932203 | 62 | 0.409409 | snir1551 |
3d13ca4c6ef02ed64ada5a6e3f3b47f5da8f3f96 | 1,186 | cpp | C++ | LeetCode/Problems/Algorithms/#1337_TheKWeakestRowsInAMatrix_sol3_binary_search_and_heap_O(RlogC+RlogK)_time_O(R+K)_extra_space_12ms_10.5MB.cpp | Tudor67/Competitive-Programming | ae4dc6ed8bf76451775bf4f740c16394913f3ff1 | [
"MIT"
] | 1 | 2022-01-26T14:50:07.000Z | 2022-01-26T14:50:07.000Z | LeetCode/Problems/Algorithms/#1337_TheKWeakestRowsInAMatrix_sol3_binary_search_and_heap_O(RlogC+RlogK)_time_O(R+K)_extra_space_12ms_10.5MB.cpp | Tudor67/Competitive-Programming | ae4dc6ed8bf76451775bf4f740c16394913f3ff1 | [
"MIT"
] | null | null | null | LeetCode/Problems/Algorithms/#1337_TheKWeakestRowsInAMatrix_sol3_binary_search_and_heap_O(RlogC+RlogK)_time_O(R+K)_extra_space_12ms_10.5MB.cpp | Tudor67/Competitive-Programming | ae4dc6ed8bf76451775bf4f740c16394913f3ff1 | [
"MIT"
] | null | null | null | class Solution {
private:
int soldiersCount(const vector<int>& V){
int l = 0;
int r = (int)V.size() - 1;
while(l != r){
int mid = (l + r + 1) / 2;
if(V[mid] == 1){
l = mid;
}else{
r = mid - 1;
}
... | 25.782609 | 64 | 0.378583 | Tudor67 |
3d1b9ec61abe0fea9930aa8f553b718ef1f3d5fe | 1,282 | hpp | C++ | src/rynx/editor/tools/collisions_tool.hpp | Apodus/rynx | 3e1babc2f2957702ba2b09d78be3a959f2f4ea18 | [
"MIT"
] | 11 | 2019-08-19T08:44:14.000Z | 2020-09-22T20:04:46.000Z | src/rynx/editor/tools/collisions_tool.hpp | Apodus/rynx | 3e1babc2f2957702ba2b09d78be3a959f2f4ea18 | [
"MIT"
] | null | null | null | src/rynx/editor/tools/collisions_tool.hpp | Apodus/rynx | 3e1babc2f2957702ba2b09d78be3a959f2f4ea18 | [
"MIT"
] | null | null | null |
#pragma once
#include <rynx/editor/tools/tool.hpp>
namespace rynx {
class ecs;
namespace editor {
namespace tools {
class collisions_tool : public itool {
public:
collisions_tool(rynx::scheduler::context& ctx);
virtual void update(rynx::scheduler::context& ctx) override;
virtual void on_tool... | 25.64 | 114 | 0.695788 | Apodus |
3d20c199e6f8d433ba64037dc25b0f7ccdda1efd | 3,768 | cpp | C++ | qws/src/gui/QTreeWidgetItem_DhClass.cpp | keera-studios/hsQt | 8aa71a585cbec40005354d0ee43bce9794a55a9a | [
"BSD-2-Clause"
] | 42 | 2015-02-16T19:29:16.000Z | 2021-07-25T11:09:03.000Z | qws/src/gui/QTreeWidgetItem_DhClass.cpp | keera-studios/hsQt | 8aa71a585cbec40005354d0ee43bce9794a55a9a | [
"BSD-2-Clause"
] | 1 | 2017-11-23T12:49:25.000Z | 2017-11-23T12:49:25.000Z | qws/src/gui/QTreeWidgetItem_DhClass.cpp | keera-studios/hsQt | 8aa71a585cbec40005354d0ee43bce9794a55a9a | [
"BSD-2-Clause"
] | 5 | 2015-10-15T21:25:30.000Z | 2017-11-22T13:18:24.000Z | /////////////////////////////////////////////////////////////////////////////
//
// File : QTreeWidgetItem_DhClass.cpp
// Copyright : (c) David Harley 2010
// Project : qtHaskell
// Version : 1.1.4
// Modified : 2010-09-02 17:02:05
//
// Warning : this file is machi... | 32.765217 | 130 | 0.666401 | keera-studios |
3d231a259d8b4b593c281eb60bdb2ef46b457ea1 | 49,307 | cpp | C++ | src/services/pcn-simplebridge/src/api/SimplebridgeApi.cpp | mbertrone/polycube | b35a6aa13273c000237d53c5f1bf286f12e4b9bd | [
"ECL-2.0",
"Apache-2.0"
] | 1 | 2020-07-16T04:49:29.000Z | 2020-07-16T04:49:29.000Z | src/services/pcn-simplebridge/src/api/SimplebridgeApi.cpp | mbertrone/polycube | b35a6aa13273c000237d53c5f1bf286f12e4b9bd | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | src/services/pcn-simplebridge/src/api/SimplebridgeApi.cpp | mbertrone/polycube | b35a6aa13273c000237d53c5f1bf286f12e4b9bd | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | /**
* simplebridge API
* Simple L2 Bridge Service
*
* OpenAPI spec version: 1.0.0
*
* NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/polycube-network/swagger-codegen.git
* branch polycube
*/
/* Do not edit this file manually */
#include "SimplebridgeApi.h"
namespace ... | 36.0959 | 153 | 0.719614 | mbertrone |
3d23e625060917c46c7b12dd9ed6a76c4cc94211 | 647 | cpp | C++ | test_mdsplus.cpp | golfit/C-Mod | 8132d1b1f21611d13f332a3770f5a94dfdecbb0a | [
"MIT"
] | null | null | null | test_mdsplus.cpp | golfit/C-Mod | 8132d1b1f21611d13f332a3770f5a94dfdecbb0a | [
"MIT"
] | null | null | null | test_mdsplus.cpp | golfit/C-Mod | 8132d1b1f21611d13f332a3770f5a94dfdecbb0a | [
"MIT"
] | null | null | null | //============================================================================
// Name : mode_survey.cpp
// Author : Theodore Golfinopoulos
// Version :
// Copyright : 2018, All rights reserved, MIT License
// Description :
//============================================================================... | 24.884615 | 78 | 0.48068 | golfit |
3d28a3b8e82ba15527a55961f00cf00fd63a9022 | 458 | cpp | C++ | src/output_writer/output_writer.cpp | kimkroener/NumSim | eb56fa90cb5717123d80a4b5711d2a5bcaf67a27 | [
"MIT"
] | 2 | 2021-12-09T23:20:23.000Z | 2022-01-12T18:03:18.000Z | src/output_writer/output_writer.cpp | kimkroener/NumSim | eb56fa90cb5717123d80a4b5711d2a5bcaf67a27 | [
"MIT"
] | 31 | 2021-11-03T13:25:01.000Z | 2021-12-09T12:27:08.000Z | src/output_writer/output_writer.cpp | kimkroener/NumSim | eb56fa90cb5717123d80a4b5711d2a5bcaf67a27 | [
"MIT"
] | 3 | 2021-11-09T13:41:08.000Z | 2021-11-26T16:33:42.000Z | #include "output_writer/output_writer.h"
#include <iostream>
OutputWriter::OutputWriter(std::shared_ptr<Discretization> discretization, std::shared_ptr<Partitioning> partitioning)
: discretization_(discretization), partitioning_(partitioning), fileNo_(0)
{
// create "out" subdirectory if it does not yet exist
in... | 35.230769 | 118 | 0.740175 | kimkroener |
3d29352cacf853e6cc7ca59d6fb231c033b2b19b | 138 | cpp | C++ | src/ComandList.cpp | Wason-Fok/Motor-command-generation | d85ef1e22b9ee8ba6b8025460563cd1a2c3f5c64 | [
"Apache-2.0"
] | null | null | null | src/ComandList.cpp | Wason-Fok/Motor-command-generation | d85ef1e22b9ee8ba6b8025460563cd1a2c3f5c64 | [
"Apache-2.0"
] | null | null | null | src/ComandList.cpp | Wason-Fok/Motor-command-generation | d85ef1e22b9ee8ba6b8025460563cd1a2c3f5c64 | [
"Apache-2.0"
] | null | null | null | #include "ComandList.h"
ComandList::ComandList(QWidget *parent)
: QWidget(parent)
{
ui.setupUi(this);
}
ComandList::~ComandList()
{
}
| 11.5 | 39 | 0.702899 | Wason-Fok |
3d294aa09d23bf767e526fd94bd4c3ea7f7a88b7 | 4,489 | cpp | C++ | unit_tests/chustd_ut/File_Test.cpp | hadrien-psydk/pngoptimizer | d92946e63a57a4562af0feaa9e4cfd8628373777 | [
"Zlib"
] | 90 | 2016-08-23T00:13:04.000Z | 2022-02-22T09:40:46.000Z | unit_tests/chustd_ut/File_Test.cpp | hadrien-psydk/pngoptimizer | d92946e63a57a4562af0feaa9e4cfd8628373777 | [
"Zlib"
] | 25 | 2016-09-01T07:09:03.000Z | 2022-01-31T16:18:57.000Z | unit_tests/chustd_ut/File_Test.cpp | hadrien-psydk/pngoptimizer | d92946e63a57a4562af0feaa9e4cfd8628373777 | [
"Zlib"
] | 17 | 2017-05-03T17:49:25.000Z | 2021-12-28T06:47:56.000Z | #include "stdafx.h"
TEST(File, GetDrive)
{
String str0 = File::GetDrive("abc");
ASSERT_TRUE(str0.IsEmpty());
String str1 = File::GetDrive("/abc");
ASSERT_TRUE(str1.IsEmpty());
String str2 = File::GetDrive("\\abc");
ASSERT_TRUE(str2.IsEmpty());
String str3 = File::GetDrive("System:abc");
ASSERT_TRUE(str3 == ... | 22.445 | 74 | 0.681889 | hadrien-psydk |
3d297601f2a9c6b177465239041f2c8df4023e0d | 7,303 | cpp | C++ | src/opengl_class/VertexArray.cpp | hkzhugc/MyBreakOut | cbeb086195a5aa25113d6bd8d7ad30b96c385f2d | [
"MIT"
] | null | null | null | src/opengl_class/VertexArray.cpp | hkzhugc/MyBreakOut | cbeb086195a5aa25113d6bd8d7ad30b96c385f2d | [
"MIT"
] | null | null | null | src/opengl_class/VertexArray.cpp | hkzhugc/MyBreakOut | cbeb086195a5aa25113d6bd8d7ad30b96c385f2d | [
"MIT"
] | null | null | null | #include "VertexArray.h"
using namespace std;
static float quadVertices[] = { // vertex attributes for a quad that fills the entire screen in Normalized Device Coordinates.
// positions // texCoords
-1.0f, 1.0f, 0.0f, 1.0f,
-1.0f, -1.0f, 0.0f, 0.0f,
1.0f, -1.0f, 1.0f, 0.0f,
-1.0f, 1.0f, 0.0f, 1.0f,... | 32.030702 | 126 | 0.606737 | hkzhugc |
3d2d90b556cf380b03ecc3f04b4e1bc43112a254 | 524 | cpp | C++ | AtCoder/abc028/b/main.cpp | H-Tatsuhiro/Com_Pro-Cpp | fd79f7821a76b11f4a6f83bbb26a034db577a877 | [
"MIT"
] | null | null | null | AtCoder/abc028/b/main.cpp | H-Tatsuhiro/Com_Pro-Cpp | fd79f7821a76b11f4a6f83bbb26a034db577a877 | [
"MIT"
] | 1 | 2021-10-19T08:47:23.000Z | 2022-03-07T05:23:56.000Z | AtCoder/abc028/b/main.cpp | H-Tatsuhiro/Com_Pro-Cpp | fd79f7821a76b11f4a6f83bbb26a034db577a877 | [
"MIT"
] | null | null | null | #include <iostream>
#include <cmath>
#include <algorithm>
#include <vector>
using namespace std;
int main() {
string s; cin >> s;
vector<int> v(6, 0);
for (int i = 0; i < s.length(); i++) {
if (s[i] == 'A') v[0]++;
if (s[i] == 'B') v[1]++;
if (s[i] == 'C') v[2]++;
if (s[i] ==... | 23.818182 | 42 | 0.375954 | H-Tatsuhiro |
3d3144e9ccc4e484e2d835b7502f739cccc29e8c | 4,481 | hpp | C++ | src/common/KokkosKernels_SparseUtils_cusparse.hpp | dialecticDolt/kokkos-kernels | 00189c0be23a70979aeaa162f0abd4c0e4d1c479 | [
"BSD-3-Clause"
] | 156 | 2017-03-01T23:38:10.000Z | 2022-03-27T21:28:03.000Z | src/common/KokkosKernels_SparseUtils_cusparse.hpp | dialecticDolt/kokkos-kernels | 00189c0be23a70979aeaa162f0abd4c0e4d1c479 | [
"BSD-3-Clause"
] | 1,257 | 2017-03-03T15:25:16.000Z | 2022-03-31T19:46:09.000Z | src/common/KokkosKernels_SparseUtils_cusparse.hpp | dialecticDolt/kokkos-kernels | 00189c0be23a70979aeaa162f0abd4c0e4d1c479 | [
"BSD-3-Clause"
] | 76 | 2017-03-01T17:03:59.000Z | 2022-03-03T21:04:41.000Z | /*
//@HEADER
// ************************************************************************
//
// Kokkos v. 3.0
// Copyright (2020) National Technology & Engineering
// Solutions of Sandia, LLC (NTESS).
//
// Under the terms of Contract DE-NA0003525 with NTESS,
// the U.S. Govern... | 35.563492 | 90 | 0.714126 | dialecticDolt |
3d333ab8aabbda7ce88b3270521ab4ca68e61a96 | 1,408 | cpp | C++ | lib/common/src/Logging.cpp | CodeRancher/offcenter_trading | 68526fdc0f27d611f748b2fa20f49e743d3ee5eb | [
"Apache-2.0"
] | null | null | null | lib/common/src/Logging.cpp | CodeRancher/offcenter_trading | 68526fdc0f27d611f748b2fa20f49e743d3ee5eb | [
"Apache-2.0"
] | 4 | 2021-12-27T17:56:21.000Z | 2022-01-05T00:05:01.000Z | lib/common/src/Logging.cpp | CodeRancher/offcenter_trading | 68526fdc0f27d611f748b2fa20f49e743d3ee5eb | [
"Apache-2.0"
] | null | null | null | /**
* Copyright 2021 Scott Brauer
*
* Licensed under the Apache License, Version 2.0 (the );
* 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 writ... | 26.566038 | 82 | 0.713068 | CodeRancher |
3d371a9c9533f5ae8fce1b422670d3e146bb7f84 | 11,764 | cpp | C++ | src/plugins/imagefilter_texturelayer/filter.cpp | deiflou/anitools | 9728f7569b59aa261dcaffc8332a1b02c2cd5fbe | [
"MIT"
] | 6 | 2015-05-07T18:44:34.000Z | 2018-12-12T15:57:40.000Z | src/plugins/imagefilter_texturelayer/filter.cpp | deiflou/anitools | 9728f7569b59aa261dcaffc8332a1b02c2cd5fbe | [
"MIT"
] | null | null | null | src/plugins/imagefilter_texturelayer/filter.cpp | deiflou/anitools | 9728f7569b59aa261dcaffc8332a1b02c2cd5fbe | [
"MIT"
] | 2 | 2019-03-18T05:31:34.000Z | 2019-11-19T21:17:54.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... | 32.768802 | 112 | 0.600221 | deiflou |
3d3a96804f5a336b976e1e6e51c866f9c83bd1c7 | 1,857 | cpp | C++ | src/components/net/fabric/unit_test/patience.cpp | fQuinzan/mcas | efaf438eb20cffa18b13f176c74a2b3153f89c07 | [
"Apache-2.0"
] | 60 | 2020-04-28T08:15:07.000Z | 2022-03-08T10:35:15.000Z | src/components/net/fabric/unit_test/patience.cpp | fQuinzan/mcas | efaf438eb20cffa18b13f176c74a2b3153f89c07 | [
"Apache-2.0"
] | 66 | 2020-09-03T23:40:48.000Z | 2022-03-07T20:34:52.000Z | src/components/net/fabric/unit_test/patience.cpp | fQuinzan/mcas | efaf438eb20cffa18b13f176c74a2b3153f89c07 | [
"Apache-2.0"
] | 13 | 2019-11-02T06:30:36.000Z | 2022-01-26T01:56:42.000Z | /*
Copyright [2017-2019] [IBM Corporation]
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... | 26.913043 | 122 | 0.682822 | fQuinzan |
3d3aa0927631e336549d23b7193c4de50b200666 | 1,217 | cpp | C++ | goodEatsSystem/src/Chef.cpp | PashaBarahimi/GoodEatsWeb | a8c173298323b072c973a8218bb63485fc1aba33 | [
"MIT"
] | null | null | null | goodEatsSystem/src/Chef.cpp | PashaBarahimi/GoodEatsWeb | a8c173298323b072c973a8218bb63485fc1aba33 | [
"MIT"
] | null | null | null | goodEatsSystem/src/Chef.cpp | PashaBarahimi/GoodEatsWeb | a8c173298323b072c973a8218bb63485fc1aba33 | [
"MIT"
] | null | null | null | #include "include/Chef.hpp"
#include "include/AlgorithmSideFunctions.hpp"
Chef::Chef(const std::string& username, const std::string& password) : username_(username), password_(password) { }
void Chef::addRecipe(Recipe* recipe)
{
recipes_.insert(std::upper_bound(recipes_.begin(), recipes_.end(), recipe, compareByName... | 22.537037 | 115 | 0.685292 | PashaBarahimi |
3d3c726d1b927ab53bf7a6f18573d4f41db9fc1b | 2,183 | cpp | C++ | practice/sample2.cpp | xenowits/cp | 963b3c7df65b5328d5ce5ef894a46691afefb98c | [
"MIT"
] | null | null | null | practice/sample2.cpp | xenowits/cp | 963b3c7df65b5328d5ce5ef894a46691afefb98c | [
"MIT"
] | null | null | null | practice/sample2.cpp | xenowits/cp | 963b3c7df65b5328d5ce5ef894a46691afefb98c | [
"MIT"
] | null | null | null | #include<bits/stdc++.h>
using namespace std;
#define fori(i,a,b) for (long long int i = a; i <= b ; ++i)
#define ford(i,a,b) for(long long int i = a;i >= b ; --i)
#define mk make_pair
#define mod 1000000007
#define pb push_back
#define ll long long
#define ld long double
#define MAXN (ll)1e6+5
#define rnd mt19937_64 r... | 24.806818 | 89 | 0.496106 | xenowits |
3d3cbcdfe9fa044b30509207118e69e958eb93f1 | 1,714 | cpp | C++ | Array/1313. Decompress Run-Length Encoded List.cpp | KardseT/LeetCode | f020cff23f7d3ef8599b9e72bf5c2095bf069d01 | [
"MIT"
] | null | null | null | Array/1313. Decompress Run-Length Encoded List.cpp | KardseT/LeetCode | f020cff23f7d3ef8599b9e72bf5c2095bf069d01 | [
"MIT"
] | null | null | null | Array/1313. Decompress Run-Length Encoded List.cpp | KardseT/LeetCode | f020cff23f7d3ef8599b9e72bf5c2095bf069d01 | [
"MIT"
] | null | null | null | // 1313. Decompress Run-Length Encoded List
// Easy
// We are given a list nums of integers representing a list compressed with run-length encoding.
// Consider each adjacent pair of elements [freq, val] = [nums[2*i], nums[2*i+1]] (with i >= 0). For each such pair, there are freq elements with value val concatenated... | 27.645161 | 266 | 0.614936 | KardseT |
3d3dc327947482dc6dc8fa038371a9792e962493 | 10,542 | cpp | C++ | src/state.cpp | nilern/kauno | a82f43bc535378afe9ce427ffb16921bf966fd47 | [
"MIT"
] | null | null | null | src/state.cpp | nilern/kauno | a82f43bc535378afe9ce427ffb16921bf966fd47 | [
"MIT"
] | null | null | null | src/state.cpp | nilern/kauno | a82f43bc535378afe9ce427ffb16921bf966fd47 | [
"MIT"
] | null | null | null | #include "state.hpp"
#include <cassert>
#include <cstdlib>
#include <cstring>
#include <cstdalign>
#include <utility>
#include <algorithm>
#include "arrays.hpp"
#include "typesmap.hpp"
#include "locals.hpp"
#include "fn.hpp"
namespace kauno {
static inline AnySRef builtin_prn(State& state) {
State_print_builtin... | 38.474453 | 144 | 0.640106 | nilern |
3d43cdeba498bf65152e0c057b55c3615fc30f92 | 3,071 | cpp | C++ | src/passes/pass.cpp | ionlang/ir-c | f5be3d0a6bed76b3fe354018045b82ded7d792ae | [
"Unlicense"
] | 3 | 2019-07-11T14:41:28.000Z | 2019-07-12T10:29:08.000Z | src/passes/pass.cpp | ionlang/ir-c | f5be3d0a6bed76b3fe354018045b82ded7d792ae | [
"Unlicense"
] | 22 | 2019-12-05T04:43:34.000Z | 2020-11-05T23:29:25.000Z | src/passes/pass.cpp | ionlang/ir-c | f5be3d0a6bed76b3fe354018045b82ded7d792ae | [
"Unlicense"
] | 3 | 2020-07-20T19:20:26.000Z | 2020-10-12T15:24:47.000Z | #include <ionir/passes/pass.h>
namespace ionir {
Pass::Pass(std::shared_ptr<ionshared::PassContext> context) noexcept :
ionshared::BasePass<Construct>(std::move(context)) {
//
}
void Pass::visit(std::shared_ptr<Construct> construct) {
construct->accept(*this);
this->visitChildren(construct);
}... | 21.935714 | 81 | 0.669489 | ionlang |
3d452f4e374cf346d1d036ad22831286aebe9ab2 | 436 | hpp | C++ | include/ring_buffer/details/clz.hpp | Wizermil/ring_buffer | 71ee2bb59aa268b462c43ed466d114c32f39dd19 | [
"MIT"
] | null | null | null | include/ring_buffer/details/clz.hpp | Wizermil/ring_buffer | 71ee2bb59aa268b462c43ed466d114c32f39dd19 | [
"MIT"
] | null | null | null | include/ring_buffer/details/clz.hpp | Wizermil/ring_buffer | 71ee2bb59aa268b462c43ed466d114c32f39dd19 | [
"MIT"
] | null | null | null | #pragma once
#include <ring_buffer/details/config.hpp>
namespace wiz::details::bit {
RING_BUFFER_HIDE_FROM_ABI constexpr int clz(unsigned x) noexcept { return __builtin_clz(x); }
RING_BUFFER_HIDE_FROM_ABI constexpr int clz(unsigned long x) noexcept { return __builtin_clzl(x); }
RING_BUFFER_HIDE_FROM_AB... | 31.142857 | 109 | 0.766055 | Wizermil |
3d4c7001300fec428fa66d91d6bb10c5cd946c06 | 714 | hpp | C++ | robots/robots.hpp | uncerso/code-graveyard | df875fd070022faf84374e260bd77663760b1e4c | [
"Apache-2.0"
] | 1 | 2017-10-24T21:43:43.000Z | 2017-10-24T21:43:43.000Z | robots/robots.hpp | uncerso/code-graveyard | df875fd070022faf84374e260bd77663760b1e4c | [
"Apache-2.0"
] | 3 | 2017-12-02T08:15:29.000Z | 2018-06-05T19:35:56.000Z | robots/robots.hpp | uncerso/code-graveyard | df875fd070022faf84374e260bd77663760b1e4c | [
"Apache-2.0"
] | null | null | null | #pragma once
#include <vector>
namespace robots {
/// Solves the problem of destroying robots
class Robots {
using uint = unsigned int;
uint amountOfRobots = 0;
std::vector<bool> withRobot;
std::vector<std::vector<uint> > graph;
bool dfs(uint pos, bool color, std::vector<uint> & colors) noexcept;
public:
Robo... | 21 | 69 | 0.710084 | uncerso |
3d4eedecab5d149018b6fc6786c77dfa2b69df38 | 3,345 | hpp | C++ | core/src/Concurrency/WorkStealingDeque.hpp | hhsaez/crimild | e3efee09489939338df55e8af9a1f9ddc01301f7 | [
"BSD-3-Clause"
] | 36 | 2015-03-12T10:42:36.000Z | 2022-01-12T04:20:40.000Z | core/src/Concurrency/WorkStealingDeque.hpp | hhsaez/crimild | e3efee09489939338df55e8af9a1f9ddc01301f7 | [
"BSD-3-Clause"
] | 1 | 2015-12-17T00:25:43.000Z | 2016-02-20T12:00:57.000Z | core/src/Concurrency/WorkStealingDeque.hpp | hhsaez/crimild | e3efee09489939338df55e8af9a1f9ddc01301f7 | [
"BSD-3-Clause"
] | 6 | 2017-06-17T07:57:53.000Z | 2019-04-09T21:11:24.000Z | /*
* Copyright (c) 2013, Hernan Saez
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
* * Redistributions of source code must retain the above copyright
* notice, this list of con... | 25.534351 | 85 | 0.666966 | hhsaez |
3d503972a27766dc485dce2235b71ab7dbf26d4e | 2,983 | hpp | C++ | include/customWidgets.hpp | mousepawgames/infiltrator | b99152c31bebb683ea28c990e7d10e8bee0ffeb5 | [
"MIT"
] | null | null | null | include/customWidgets.hpp | mousepawgames/infiltrator | b99152c31bebb683ea28c990e7d10e8bee0ffeb5 | [
"MIT"
] | null | null | null | include/customWidgets.hpp | mousepawgames/infiltrator | b99152c31bebb683ea28c990e7d10e8bee0ffeb5 | [
"MIT"
] | null | null | null | #ifndef CUSTOMWIDGETS_H
#define CUSTOMWIDGETS_H
#include <glibmm.h>
#include <gtkmm/box.h>
#include <gtkmm/button.h>
#include <gtkmm/entry.h>
#include <gtkmm/grid.h>
#include <gtkmm/label.h>
#include <gtkmm/liststore.h>
#include <gtkmm/notebook.h>
#include <gtkmm/scrolledwindow.h>
#include <gtkmm/spinbutton.h>
#includ... | 27.118182 | 104 | 0.624874 | mousepawgames |
3d50b7065737a577030b503e50480d9a2b218d4b | 18,731 | cpp | C++ | thirdparty/qtiplot/qtiplot/src/plot2D/QwtPieCurve.cpp | hoehnp/SpaceDesignTool | 9abd34048274b2ce9dbbb685124177b02d6a34ca | [
"IJG"
] | 6 | 2018-09-05T12:41:59.000Z | 2021-07-01T05:34:23.000Z | thirdparty/qtiplot/qtiplot/src/plot2D/QwtPieCurve.cpp | hoehnp/SpaceDesignTool | 9abd34048274b2ce9dbbb685124177b02d6a34ca | [
"IJG"
] | 2 | 2015-02-07T19:09:21.000Z | 2015-08-14T03:15:42.000Z | thirdparty/qtiplot/qtiplot/src/plot2D/QwtPieCurve.cpp | hoehnp/SpaceDesignTool | 9abd34048274b2ce9dbbb685124177b02d6a34ca | [
"IJG"
] | 2 | 2015-03-25T15:50:31.000Z | 2017-12-06T12:16:47.000Z | /***************************************************************************
File : QwtPieCurve.cpp
Project : QtiPlot
--------------------------------------------------------------------
Copyright : (C) 2004 - 2008 by Ion Vasilie
Email (use @ for *) : ion_vas... | 32.861404 | 121 | 0.559767 | hoehnp |
3d51c7983e152fb7ebb899aa17f569f836d3f915 | 2,193 | cpp | C++ | common/utility/src/Random.cpp | cbtek/SourceGen | 6593300c658529acb06b83982bbc9e698c270aeb | [
"MIT"
] | null | null | null | common/utility/src/Random.cpp | cbtek/SourceGen | 6593300c658529acb06b83982bbc9e698c270aeb | [
"MIT"
] | 3 | 2017-07-12T17:10:52.000Z | 2017-09-21T19:06:59.000Z | common/utility/src/Random.cpp | cbtek/SourceGen | 6593300c658529acb06b83982bbc9e698c270aeb | [
"MIT"
] | null | null | null | /**
MIT License
Copyright (c) 2016 cbtek
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, publish,... | 26.107143 | 83 | 0.657091 | cbtek |
87d4991530f3e0f2f835f9213fb87f8ac0f1af25 | 2,483 | cpp | C++ | RealSpace2/Samples/rs2testwf.cpp | WhyWolfie/source2007 | 324257e9c69bbaec872ebb7ae4f96ab2ce98f520 | [
"FSFAP"
] | null | null | null | RealSpace2/Samples/rs2testwf.cpp | WhyWolfie/source2007 | 324257e9c69bbaec872ebb7ae4f96ab2ce98f520 | [
"FSFAP"
] | null | null | null | RealSpace2/Samples/rs2testwf.cpp | WhyWolfie/source2007 | 324257e9c69bbaec872ebb7ae4f96ab2ce98f520 | [
"FSFAP"
] | null | null | null | #include <windows.h>
#include "MDebug.h"
#include "RealSpace2.h"
#include "RMaterialList.h"
#include "RRoam.h"
_USING_NAMESPACE_REALSPACE2
Landscape g_map;
const int size=1024;
unsigned char buffer[size*size+size*2];
RRESULT InitScene(void *param)
{
InitLog();
FILE *file=fopen("Height1024.raw","rb");
fread(buf... | 23.205607 | 112 | 0.730971 | WhyWolfie |
87d4acf297378085da459b640471a243fe6a2f92 | 1,178 | hpp | C++ | include/opengv/optimization_tools/objective_function_tools/Plane3P3DRegistrationFunctionInfo.hpp | mateus03/2018AMMPoseSolver | 787886846199cd0864c4e59a6545c40c3120010a | [
"BSD-3-Clause"
] | null | null | null | include/opengv/optimization_tools/objective_function_tools/Plane3P3DRegistrationFunctionInfo.hpp | mateus03/2018AMMPoseSolver | 787886846199cd0864c4e59a6545c40c3120010a | [
"BSD-3-Clause"
] | null | null | null | include/opengv/optimization_tools/objective_function_tools/Plane3P3DRegistrationFunctionInfo.hpp | mateus03/2018AMMPoseSolver | 787886846199cd0864c4e59a6545c40c3120010a | [
"BSD-3-Clause"
] | null | null | null | #ifndef PLANE3P3DREGISTRATIONFUNCTIONINFO_H
#define PLANE3P3DREGISTRATIONFUNCTIONINFO_H
#include <opengv/optimization_tools/objective_function_tools/ObjectiveFunctionInfo.hpp>
#include <opengv/registration/PlaneRegistrationAdapter.hpp>
#include <opengv/types.hpp>
#include <iostream>
class Plane3P3DRegistrationFunctio... | 34.647059 | 100 | 0.760611 | mateus03 |
87d79b889f4a0561b15409ad00d9b4c124d107ab | 5,193 | cpp | C++ | nodes/VelocityEstimationNode_ConstAccUKF.cpp | RobertMilijas/uav_ros_general | d9ef09e2da4802891296a9410e5031675c09c066 | [
"BSD-3-Clause"
] | 1 | 2021-12-20T13:43:22.000Z | 2021-12-20T13:43:22.000Z | nodes/VelocityEstimationNode_ConstAccUKF.cpp | RobertMilijas/uav_ros_general | d9ef09e2da4802891296a9410e5031675c09c066 | [
"BSD-3-Clause"
] | 4 | 2020-12-21T15:15:13.000Z | 2021-06-16T10:40:29.000Z | nodes/VelocityEstimationNode_ConstAccUKF.cpp | RobertMilijas/uav_ros_general | d9ef09e2da4802891296a9410e5031675c09c066 | [
"BSD-3-Clause"
] | 2 | 2021-02-15T13:35:18.000Z | 2021-05-24T12:44:18.000Z | #include <boost/array.hpp>
#include <uav_ros_lib/estimation/constant_acceleration_ukf.hpp>
#include <geometry_msgs/PoseStamped.h>
#include <list>
#include <nav_msgs/Odometry.h>
#include <sensor_msgs/Imu.h>
int main(int argc, char **argv) {
ros::init(argc, argv, "velocity_estimation_node");
ros::NodeHandle nhPriva... | 45.552632 | 79 | 0.706528 | RobertMilijas |
87dbdaefa11f64f8a235df3256b97dcb289d2165 | 9,678 | hh | C++ | src/mmutil_filter_row.hh | YPARK/mmutil | 21729fc50ac4cefff58c1b71e8c5740d2045b111 | [
"MIT"
] | null | null | null | src/mmutil_filter_row.hh | YPARK/mmutil | 21729fc50ac4cefff58c1b71e8c5740d2045b111 | [
"MIT"
] | null | null | null | src/mmutil_filter_row.hh | YPARK/mmutil | 21729fc50ac4cefff58c1b71e8c5740d2045b111 | [
"MIT"
] | null | null | null | #include <getopt.h>
#include "mmutil.hh"
#include "mmutil_io.hh"
#include "mmutil_stat.hh"
#include "mmutil_score.hh"
#ifndef MMUTIL_FILTER_ROW_HH_
#define MMUTIL_FILTER_ROW_HH_
template <typename OPTIONS>
int filter_row_by_score(OPTIONS &options);
struct filter_row_options_t {
typedef enum { NNZ, MEAN, CV, SD... | 27.971098 | 80 | 0.553007 | YPARK |
87e331558166674138bd74c4bbfc5ac03acb220d | 758 | cpp | C++ | relacy/dyn_thread.cpp | pereckerdal/relacy | 05d8a8fbb0b3600ff5bf34da0bab2bb148dff059 | [
"BSD-3-Clause"
] | 1 | 2020-05-30T13:06:12.000Z | 2020-05-30T13:06:12.000Z | relacy/dyn_thread.cpp | pereckerdal/relacy | 05d8a8fbb0b3600ff5bf34da0bab2bb148dff059 | [
"BSD-3-Clause"
] | null | null | null | relacy/dyn_thread.cpp | pereckerdal/relacy | 05d8a8fbb0b3600ff5bf34da0bab2bb148dff059 | [
"BSD-3-Clause"
] | null | null | null | /* Relacy Race Detector
* Copyright (c) 2008-2013, Dmitry S. Vyukov
* All rights reserved.
* This software is provided AS-IS with no warranty, either express or implied.
* This software is distributed under a license and may not be copied,
* modified or distributed except as expressly authorized under the
*... | 21.055556 | 80 | 0.691293 | pereckerdal |
87e46074782715fbcf6ee032cd28ab6c633b4cb2 | 341 | cpp | C++ | src/Main.cpp | SMelanko/BattleCity | 7d0042561f97ee9d1b61e027b1dd451494eaefee | [
"MIT"
] | null | null | null | src/Main.cpp | SMelanko/BattleCity | 7d0042561f97ee9d1b61e027b1dd451494eaefee | [
"MIT"
] | null | null | null | src/Main.cpp | SMelanko/BattleCity | 7d0042561f97ee9d1b61e027b1dd451494eaefee | [
"MIT"
] | null | null | null | #include "include/Game.h"
#include <QDebug>
int main(int argc, char *argv[])
{
QCoreApplication::setAttribute(Qt::AA_EnableHighDpiScaling);
try {
return Game{ argc, argv }.exec();
} catch (const std::exception& e) {
qDebug() << e.what();
} catch (...) {
qDebug() << QStringLiteral("Unhandled exception has b... | 20.058824 | 70 | 0.656891 | SMelanko |
87e7b9dffaa130bdb830863c5ca11e02d1e1fb36 | 5,176 | cpp | C++ | src/viplist.cpp | Nakeib/RonClient | 9e816c580ec2a6f1b15fdefd8e15ad62647ca29f | [
"MIT"
] | 11 | 2020-11-07T19:35:24.000Z | 2021-08-19T12:25:27.000Z | src/viplist.cpp | Nakeib/RonClient | 9e816c580ec2a6f1b15fdefd8e15ad62647ca29f | [
"MIT"
] | null | null | null | src/viplist.cpp | Nakeib/RonClient | 9e816c580ec2a6f1b15fdefd8e15ad62647ca29f | [
"MIT"
] | 5 | 2020-11-06T20:52:11.000Z | 2021-02-25T11:02:31.000Z | /* -------------------------------------------------------------------------- */
/* ------------- RonClient --- Oficial client for RonOTS servers ------------ */
/* -------------------------------------------------------------------------- */
#include "viplist.h"
#include "allocator.h"
#include "creature.h"
#include ... | 27.386243 | 91 | 0.680255 | Nakeib |
87e7be107549467a30f19389059476637237fe6f | 4,317 | cc | C++ | caffe2/operators/summarize_op_hipdev.cc | ashishfarmer/rocm-caffe2 | 097fe3f71b0e4311340ff7eb797ed6c351073d54 | [
"Apache-2.0"
] | 12 | 2018-04-14T22:00:51.000Z | 2018-07-26T16:44:20.000Z | caffe2/operators/summarize_op_hipdev.cc | ashishfarmer/rocm-caffe2 | 097fe3f71b0e4311340ff7eb797ed6c351073d54 | [
"Apache-2.0"
] | 27 | 2018-04-14T06:44:22.000Z | 2018-08-01T18:02:39.000Z | caffe2/operators/summarize_op_hipdev.cc | ashishfarmer/rocm-caffe2 | 097fe3f71b0e4311340ff7eb797ed6c351073d54 | [
"Apache-2.0"
] | 2 | 2018-04-16T20:46:16.000Z | 2018-06-01T21:00:10.000Z | /**
* Copyright (c) 2016-present, Facebook, 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 ... | 31.510949 | 99 | 0.615242 | ashishfarmer |
87ee1f1ce6d84e0e971d1f07d3d50b2a8b9e0431 | 671 | cpp | C++ | Source/SFXUtilities/Utilities/FMathUtils.cpp | pro100watt/VolumetricAmbientDemo | 3a0f877e51ca59984c1638a6592c55b5bb8e56b1 | [
"MIT"
] | null | null | null | Source/SFXUtilities/Utilities/FMathUtils.cpp | pro100watt/VolumetricAmbientDemo | 3a0f877e51ca59984c1638a6592c55b5bb8e56b1 | [
"MIT"
] | null | null | null | Source/SFXUtilities/Utilities/FMathUtils.cpp | pro100watt/VolumetricAmbientDemo | 3a0f877e51ca59984c1638a6592c55b5bb8e56b1 | [
"MIT"
] | null | null | null | #include "FMathUtils.h"
#include "Math/Vector2D.h"
namespace Utils
{
namespace FMathExt
{
bool IsInsideTriangle2D(const FVector2D& A, const FVector2D& B, const FVector2D& C, const FVector2D& Point)
{
FVector2D ALocal = A - C;
FVector2D BLocal = B - C;
FVector2D PointLocal = Point - C;
return IsInsi... | 22.366667 | 109 | 0.66766 | pro100watt |
87f25ce11aa13e0204711b73553d5baa425c2f36 | 1,137 | cc | C++ | mycode/cpp/rvlue_SmartPointer/smartPointer.cc | stdbilly/CS_Note | a8a87e135a525d53c283a4c70fb942c9ca59a758 | [
"MIT"
] | 2 | 2020-12-09T09:55:51.000Z | 2021-01-08T11:38:22.000Z | mycode/cpp/rvlue_SmartPointer/smartPointer.cc | stdbilly/CS_Note | a8a87e135a525d53c283a4c70fb942c9ca59a758 | [
"MIT"
] | null | null | null | mycode/cpp/rvlue_SmartPointer/smartPointer.cc | stdbilly/CS_Note | a8a87e135a525d53c283a4c70fb942c9ca59a758 | [
"MIT"
] | null | null | null | #include <iostream>
using std::cout;
using std::endl;
template<typename T>
class SmartPointer {
public:
SmartPointer(T* p) : _p(p) {}
T* operator->() {
return _p;
}
T& operator*() {
return *_p;
}
T* get() {
return _p;
}
void reset(T* p) {
delete _p;
... | 14.766234 | 75 | 0.441513 | stdbilly |
87f3f49a9bb513dc0ecbbba5b880c84e82e815db | 1,607 | cpp | C++ | Source/TreeSearch/PriorProbability.cpp | StuartRiffle/corvid | 21fbea9bf585f3713354f33a205e9fd8b96da555 | [
"MIT"
] | 6 | 2019-05-29T03:22:41.000Z | 2021-03-02T09:08:16.000Z | Source/TreeSearch/PriorProbability.cpp | StuartRiffle/corvid | 21fbea9bf585f3713354f33a205e9fd8b96da555 | [
"MIT"
] | 1 | 2019-05-29T16:15:55.000Z | 2019-05-29T16:15:55.000Z | Source/TreeSearch/PriorProbability.cpp | StuartRiffle/corvid | 21fbea9bf585f3713354f33a205e9fd8b96da555 | [
"MIT"
] | null | null | null | // JAGLAVAK CHESS ENGINE (c) 2019 Stuart Riffle
#include "Jaglavak.h"
#include "TreeSearch.h"
#include "FEN.h"
#include <boost/property_tree/ptree.hpp>
#include <boost/property_tree/json_parser.hpp>
using namespace boost;
namespace pt = property_tree;
#include "RpcClient.h"
void TreeSearch::EstimatePriors( TreeNod... | 29.759259 | 93 | 0.583696 | StuartRiffle |
87f975ec8a77a7396a33f198ac3a8e6207b29056 | 2,776 | hpp | C++ | include/response.hpp | pgul/fastlst | ce07baa06b0063f4c9e1374f24e67e1316ee5af4 | [
"BSD-3-Clause"
] | 2 | 2018-01-14T02:49:46.000Z | 2021-04-11T11:29:11.000Z | include/response.hpp | pgul/fastlst | ce07baa06b0063f4c9e1374f24e67e1316ee5af4 | [
"BSD-3-Clause"
] | null | null | null | include/response.hpp | pgul/fastlst | ce07baa06b0063f4c9e1374f24e67e1316ee5af4 | [
"BSD-3-Clause"
] | 1 | 2018-01-10T19:44:14.000Z | 2018-01-10T19:44:14.000Z | /*****************************************************************************/
/* */
/* (C) Copyright 1991-1997 Alberto Pasquale */
/* */
... | 41.432836 | 90 | 0.355187 | pgul |
87fa386fcae8872b4912d097c8eb152807332d1a | 103,061 | cpp | C++ | src/clocktree.cpp | eric830303/MAUI-Making-Aging-Useful-Intentionally- | 0a55385057708b08d83169b32475266c093b94bc | [
"MIT"
] | null | null | null | src/clocktree.cpp | eric830303/MAUI-Making-Aging-Useful-Intentionally- | 0a55385057708b08d83169b32475266c093b94bc | [
"MIT"
] | null | null | null | src/clocktree.cpp | eric830303/MAUI-Making-Aging-Useful-Intentionally- | 0a55385057708b08d83169b32475266c093b94bc | [
"MIT"
] | null | null | null | //////////////////////////////////////////////////////////////
//
// Source File
//
// File name: clocktree.cpp
// Author: Ting-Wei Chang
// Date: 2017-07
//
//////////////////////////////////////////////////////////////
#include "clocktree.h"
#include <iterator>
#include <fstream>
#include <queue>
#include <fcntl.h>
... | 35.090569 | 183 | 0.585905 | eric830303 |
e203ea0a1c00fa15d3876e1ffe8d401c16c18701 | 416 | hpp | C++ | path.hpp | andybarry/peekmill | d990877ef943a791f66d19ed897f1421b8e6e0ea | [
"BSD-3-Clause"
] | 1 | 2016-08-22T13:46:32.000Z | 2016-08-22T13:46:32.000Z | path.hpp | andybarry/peekmill | d990877ef943a791f66d19ed897f1421b8e6e0ea | [
"BSD-3-Clause"
] | null | null | null | path.hpp | andybarry/peekmill | d990877ef943a791f66d19ed897f1421b8e6e0ea | [
"BSD-3-Clause"
] | null | null | null | #ifndef PATH_HPP
#define PATH_HPP
#include <opencv2/core/core.hpp>
#include <vector>
#include <iostream>
using namespace std;
using namespace cv;
class Path{
private:
Point2f path_start_;
float units_;
vector<Point2f> coords_; //like java generics
public:
Point2f GetPathStart(){return path_start_;}
float G... | 16 | 47 | 0.725962 | andybarry |
e2050c55b5ad0efa8af19c8c4913c54c1a7d0cf0 | 4,341 | cpp | C++ | lib/ZumoShield/ZumoShieldEncoders.cpp | Wataru-Oshima-Tokyo/zumoShield | 7d1c24c8fc6e3c95fe326923cf48215604ad3fc7 | [
"MIT"
] | null | null | null | lib/ZumoShield/ZumoShieldEncoders.cpp | Wataru-Oshima-Tokyo/zumoShield | 7d1c24c8fc6e3c95fe326923cf48215604ad3fc7 | [
"MIT"
] | null | null | null | lib/ZumoShield/ZumoShieldEncoders.cpp | Wataru-Oshima-Tokyo/zumoShield | 7d1c24c8fc6e3c95fe326923cf48215604ad3fc7 | [
"MIT"
] | null | null | null | // Copyright Pololu Corporation. For more information, see http://www.pololu.com/
#include <ZumoShieldEncoders.h>
#include <FastGPIO.h>
#include <avr/interrupt.h>
#include <Arduino.h>
#define LEFT_XOR 8
#define LEFT_B IO_E2
#define RIGHT_XOR 7
#define RIGHT_B 23
#define RIGHT_CNT_FLAG 0x0001
#define LEFT_C... | 23.464865 | 82 | 0.647086 | Wataru-Oshima-Tokyo |
e206e29c72baee3fd6a679c5b12cfab20e8e7c49 | 418 | cpp | C++ | Challenges/C++/ex2.cpp | ifyGecko/RE_Challenges | a7a86481d9a75d0dde81de77716ea42c81ce3d69 | [
"Unlicense"
] | 5 | 2019-08-24T00:19:42.000Z | 2020-09-26T14:21:07.000Z | Challenges/C++/ex2.cpp | DJN1/RE_Challenges-1 | 4bc66ed6d8765f044322b297b69a156e2385d19f | [
"Unlicense"
] | 1 | 2022-02-16T18:05:15.000Z | 2022-02-16T18:05:15.000Z | Challenges/C++/ex2.cpp | DJN1/RE_Challenges-1 | 4bc66ed6d8765f044322b297b69a156e2385d19f | [
"Unlicense"
] | 9 | 2019-08-31T21:10:31.000Z | 2020-09-14T23:13:10.000Z | #include<iostream>
#include<cstdlib>
using namespace std;
class a{
public:
int b;
a(){ b=2019; };
};
int main(int argc, char** argv){
a c;
if(argc !=2){
cout << "Usage: ./prog input\n";
cout << "Hint: ./prog -h\n";
}else if(argv[1]==string("-h")){
cout << "Classes might need to undergo construc... | 17.416667 | 60 | 0.557416 | ifyGecko |
e20956abe78d0338cd55dac2fa01cca43e31856c | 503 | cc | C++ | function_ref/snippets/snippet-function_ref-spec-rev.cc | descender76/cpp_proposals | 2eb7e2f59257b376dadd1b66464e076c3de23ab1 | [
"BSL-1.0"
] | 1 | 2022-01-21T20:10:46.000Z | 2022-01-21T20:10:46.000Z | function_ref/snippets/snippet-function_ref-spec-rev.cc | descender76/cpp_proposals | 2eb7e2f59257b376dadd1b66464e076c3de23ab1 | [
"BSL-1.0"
] | null | null | null | function_ref/snippets/snippet-function_ref-spec-rev.cc | descender76/cpp_proposals | 2eb7e2f59257b376dadd1b66464e076c3de23ab1 | [
"BSL-1.0"
] | null | null | null | //
namespace std
{
template <typename Signature>
class function_ref
{
void* erased_object;
R(*erased_function)(void*, Args...);
// `R`, and `Args...` are the return type, and the parameter-type-list,
// of the function type `Signature`, respectively.
public:
fun... | 31.4375 | 125 | 0.630219 | descender76 |
e20b30fbf131c7e7f69f867433bdfef197d5a881 | 1,195 | hpp | C++ | kjoin/src/util/util_func.hpp | lanpay-lulu/CPP-Intersection | 2326a9f46a4d75d11ca0e20adab91b0acb8bcea0 | [
"MIT"
] | null | null | null | kjoin/src/util/util_func.hpp | lanpay-lulu/CPP-Intersection | 2326a9f46a4d75d11ca0e20adab91b0acb8bcea0 | [
"MIT"
] | null | null | null | kjoin/src/util/util_func.hpp | lanpay-lulu/CPP-Intersection | 2326a9f46a4d75d11ca0e20adab91b0acb8bcea0 | [
"MIT"
] | null | null | null | #pragma once
#include <string>
#include <vector>
#include <fstream>
#include <sys/time.h>
namespace wshfunc{
size_t get_line_cnt(std::string & filename) {
std::ifstream infile(filename);
size_t cnt = std::count(std::istreambuf_iterator<char>(infile),
std::istreambuf_iterator<char>(), '\n');
... | 22.54717 | 72 | 0.661088 | lanpay-lulu |
e20e3b57956618c03b09418745bb03ff0b3989bd | 4,484 | cpp | C++ | src/arch/android/platform_android.cpp | nebular/PixEngine_core | fc5f928641ed8c0d14254fdfc68973b3b144297f | [
"BSD-3-Clause"
] | 1 | 2020-10-23T21:16:49.000Z | 2020-10-23T21:16:49.000Z | src/arch/android/platform_android.cpp | nebular/PixEngine_core | fc5f928641ed8c0d14254fdfc68973b3b144297f | [
"BSD-3-Clause"
] | 2 | 2020-03-02T22:43:09.000Z | 2020-03-02T22:46:44.000Z | src/arch/android/platform_android.cpp | nebular/PixFu | fc5f928641ed8c0d14254fdfc68973b3b144297f | [
"BSD-3-Clause"
] | null | null | null | #ifdef ANDROID
//
// Created by rodo on 2020-01-24.
//
#include "Fu.hpp"
#include "Mouse.hpp"
#include "Keyboard.hpp"
#include "platform_android.hpp"
#include "OpenGlUtils.h"
#include "Utils.hpp"
#include "androidapi.h"
#include "VirtualKeys.hpp"
#include <iostream>
namespace Pix {
void LogV(const std::string &ta... | 25.919075 | 161 | 0.695584 | nebular |
e20f94442b3d6cf4ae6ef4cb320e22ad706dee5f | 11,268 | cpp | C++ | SphereNormals.cpp | Svengali/cblib | 77ddfd452cff842575750b9e6d792790f5ec5fee | [
"Zlib"
] | 1 | 2021-05-01T04:34:24.000Z | 2021-05-01T04:34:24.000Z | SphereNormals.cpp | Svengali/cblib | 77ddfd452cff842575750b9e6d792790f5ec5fee | [
"Zlib"
] | null | null | null | SphereNormals.cpp | Svengali/cblib | 77ddfd452cff842575750b9e6d792790f5ec5fee | [
"Zlib"
] | null | null | null | #include "SphereNormals.h"
/**
this is generated by gMakeSphere::Normals()
**/
START_CB
const int c_numSphereNormals = 258;
const int c_numSpherePositiveNormals = 42;
static const float c_sphereVerts[] =
{
0.426401f,0.639602f,0.639602f,
0.639602f,0.639602f,0.426401f,
0.639602f,0.426401f,0.639602f,
0.408248f,0.81... | 30.454054 | 83 | 0.741392 | Svengali |
e20fe308ba9db266d014632a95718afebac3e0a7 | 4,067 | cpp | C++ | game/client/tfo/c_achievement_manager.cpp | BerntA/tfo-code | afa3ea06a64cbbf7a9370b214ea5e80e69d9d7a1 | [
"MIT"
] | 13 | 2016-04-05T23:23:16.000Z | 2022-03-20T11:06:04.000Z | game/client/tfo/c_achievement_manager.cpp | BerntA/tfo-code | afa3ea06a64cbbf7a9370b214ea5e80e69d9d7a1 | [
"MIT"
] | null | null | null | game/client/tfo/c_achievement_manager.cpp | BerntA/tfo-code | afa3ea06a64cbbf7a9370b214ea5e80e69d9d7a1 | [
"MIT"
] | 4 | 2016-04-05T23:23:19.000Z | 2021-05-16T05:09:46.000Z | //========= Copyright Bernt Andreas Eide, All rights reserved. ============//
//
// Purpose: Achievement handler & manager.
//
//=============================================================================//
#include "cbase.h"
#include "c_achievement_manager.h"
#include "hud.h"
#include "hud_macros.h"
#include "hude... | 25.578616 | 199 | 0.722154 | BerntA |
e215335aafb37b69d3133fb403be1b810677aaea | 3,755 | cpp | C++ | macos/wrapper.cpp | lulitao1997/nixcrpkgs | 1f3045ed82dc31c35cff5fe8c1d9cdeeaee75691 | [
"MIT"
] | 105 | 2017-07-16T18:59:15.000Z | 2022-03-25T19:26:25.000Z | macos/wrapper.cpp | lulitao1997/nixcrpkgs | 1f3045ed82dc31c35cff5fe8c1d9cdeeaee75691 | [
"MIT"
] | 18 | 2017-01-21T03:25:51.000Z | 2020-09-13T22:51:52.000Z | macos/wrapper.cpp | lulitao1997/nixcrpkgs | 1f3045ed82dc31c35cff5fe8c1d9cdeeaee75691 | [
"MIT"
] | 10 | 2018-12-06T03:20:33.000Z | 2022-03-25T13:48:27.000Z | #include <vector>
#include <string>
#include <iostream>
#include <cstring>
#include <cstdlib>
#include <unistd.h>
int do_exec(const std::string & compiler_name,
const std::vector<std::string> & args)
{
char ** exec_args = new char *[args.size() + 1];
size_t i = 0;
for (const std::string & arg : args)
{
e... | 25.544218 | 82 | 0.65273 | lulitao1997 |
e21817e65b3c0693a268a50ca2b498418f37cadc | 2,520 | cpp | C++ | examples/geodesic.cpp | mcpca/fsm | df4081fa0e595284ddbb1f30f20c5fb2063aa41f | [
"MIT"
] | 2 | 2021-06-18T14:07:29.000Z | 2022-01-14T11:35:29.000Z | examples/geodesic.cpp | mcpca/fsm | df4081fa0e595284ddbb1f30f20c5fb2063aa41f | [
"MIT"
] | null | null | null | examples/geodesic.cpp | mcpca/fsm | df4081fa0e595284ddbb1f30f20c5fb2063aa41f | [
"MIT"
] | 2 | 2021-08-31T07:50:47.000Z | 2021-09-03T17:30:14.000Z | #include <cmath>
#include <iostream>
#include <numeric>
#include "marlin/solver.hpp"
#include "hdf5.hpp"
#include "timer.hpp"
int main()
{
#if MARLIN_N_DIMS == 2
constexpr char const* filename = "../data/geodesic.h5";
constexpr std::array<std::pair<marlin::scalar_t, marlin::scalar_t>,
... | 29.647059 | 80 | 0.476984 | mcpca |
e21a53f7247e971e87cee55a7f45bffde6146402 | 290 | cpp | C++ | c++11/understanding-cpp11/chapter4/4-3-2.cpp | cuiwm/choe_lib | 6992c7bf551e7d6d633399b21b028e6873d5e6e8 | [
"MIT"
] | null | null | null | c++11/understanding-cpp11/chapter4/4-3-2.cpp | cuiwm/choe_lib | 6992c7bf551e7d6d633399b21b028e6873d5e6e8 | [
"MIT"
] | null | null | null | c++11/understanding-cpp11/chapter4/4-3-2.cpp | cuiwm/choe_lib | 6992c7bf551e7d6d633399b21b028e6873d5e6e8 | [
"MIT"
] | null | null | null | #include <typeinfo>
#include <iostream>
using namespace std;
int main() {
int i;
decltype(i) j = 0;
cout << typeid(j).name() << endl; // 打印出"i", g++表示integer
float a;
double b;
decltype(a + b) c;
cout << typeid(c).name() << endl; // 打印出"d", g++表示double
}
| 19.333333 | 63 | 0.544828 | cuiwm |
e21fc60bc3e5611ff5b9d7606c686b5601eeb85e | 2,877 | cc | C++ | lib/asm.cc | kibergus/photon_charmer | 13d35da8de6a8a8739aea9a400265ba74e7d279a | [
"Apache-2.0"
] | null | null | null | lib/asm.cc | kibergus/photon_charmer | 13d35da8de6a8a8739aea9a400265ba74e7d279a | [
"Apache-2.0"
] | null | null | null | lib/asm.cc | kibergus/photon_charmer | 13d35da8de6a8a8739aea9a400265ba74e7d279a | [
"Apache-2.0"
] | null | null | null | #include "asm.h"
#include "hal/pwm.h"
#include "hal/ws2812/ws2812.h"
namespace {
constexpr int COMMAND_SIZE = 9;
constexpr int BUFFER_SIZE = 250;
uint8_t buffer[BUFFER_SIZE][COMMAND_SIZE];
// Instruction pointer.
volatile int ip = 0;
int read_pointer = 0;
THD_WORKING_AREA(asmThreadArea, 256);
__attribute__((noret... | 25.6875 | 109 | 0.587417 | kibergus |
e220a9eb6309ade06701242c5d9db5b2f37a1921 | 11,421 | cpp | C++ | CaWE/MapEditor/ToolNewBrush.cpp | dns/Cafu | 77b34014cc7493d6015db7d674439fe8c23f6493 | [
"MIT"
] | 3 | 2020-04-11T13:00:31.000Z | 2020-12-07T03:19:10.000Z | CaWE/MapEditor/ToolNewBrush.cpp | DNS/Cafu | 77b34014cc7493d6015db7d674439fe8c23f6493 | [
"MIT"
] | null | null | null | CaWE/MapEditor/ToolNewBrush.cpp | DNS/Cafu | 77b34014cc7493d6015db7d674439fe8c23f6493 | [
"MIT"
] | 1 | 2020-04-11T13:00:04.000Z | 2020-04-11T13:00:04.000Z | /*
Cafu Engine, http://www.cafu.de/
Copyright (c) Carsten Fuchs and other contributors.
This project is licensed under the terms of the MIT license.
*/
#include "ToolNewBrush.hpp"
#include "CompMapEntity.hpp"
#include "ChildFrame.hpp"
#include "ChildFrameViewWin2D.hpp"
#include "ChildFrameViewWin3D.hpp"
#include "Grou... | 34.820122 | 170 | 0.686105 | dns |
e22516e826f334f0788e00b1520ed9cfe96376e7 | 6,923 | cpp | C++ | modules/ti.Desktop/win32/win32_desktop.cpp | mital/titanium | 5e02a4406686d627f6828fd5cc18dc1a75d0714f | [
"Apache-2.0"
] | 4 | 2016-01-02T17:14:06.000Z | 2016-05-09T08:57:33.000Z | modules/ti.Desktop/win32/win32_desktop.cpp | mital/titanium | 5e02a4406686d627f6828fd5cc18dc1a75d0714f | [
"Apache-2.0"
] | null | null | null | modules/ti.Desktop/win32/win32_desktop.cpp | mital/titanium | 5e02a4406686d627f6828fd5cc18dc1a75d0714f | [
"Apache-2.0"
] | null | null | null | /**
* Appcelerator Titanium - licensed under the Apache Public License 2
* see LICENSE in the root folder for details on the license.
* Copyright (c) 2008 Appcelerator, Inc. All Rights Reserved.
*/
#include "win32_desktop.h"
#include <windows.h>
#include <commdlg.h>
#include <shellapi.h>
#include <shlobj.h>
#inclu... | 27.363636 | 147 | 0.680774 | mital |
e22826f308519fa30ed3979808c19e6562740ff4 | 6,511 | cpp | C++ | tests/benchmarks.cpp | jll63/yomm11 | 4d434ae548886faab5c16c98e1973dc8b6e368d4 | [
"BSL-1.0"
] | 108 | 2015-01-25T16:58:11.000Z | 2021-09-23T06:47:07.000Z | tests/benchmarks.cpp | jll63/yomm11 | 4d434ae548886faab5c16c98e1973dc8b6e368d4 | [
"BSL-1.0"
] | 3 | 2015-06-07T17:40:27.000Z | 2017-11-01T19:33:01.000Z | tests/benchmarks.cpp | jll63/yomm11 | 4d434ae548886faab5c16c98e1973dc8b6e368d4 | [
"BSL-1.0"
] | 19 | 2015-04-23T17:34:03.000Z | 2019-06-28T09:18:45.000Z | // benchmarks.cpp
// Copyright (c) 2013 Jean-Louis Leroy
// 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)
// chrt -f 99 ./benchmarks
// 10000000 iterations, time in millisecs
// virtual function, do_nothing ... | 26.57551 | 154 | 0.620028 | jll63 |
e22d3e98b006dad29d25a1241bf1c687a69d8eed | 1,981 | cpp | C++ | libs/GameInput/RawController.cpp | max-delta/retrofit-public | 5447fd6399fd74ffbb75494c103940751000db12 | [
"X11"
] | 3 | 2019-10-27T22:32:44.000Z | 2020-05-21T04:00:46.000Z | libs/GameInput/RawController.cpp | max-delta/retrofit-public | 5447fd6399fd74ffbb75494c103940751000db12 | [
"X11"
] | null | null | null | libs/GameInput/RawController.cpp | max-delta/retrofit-public | 5447fd6399fd74ffbb75494c103940751000db12 | [
"X11"
] | null | null | null | #include "stdafx.h"
#include "RawController.h"
#include "rftl/limits"
namespace RF::input {
///////////////////////////////////////////////////////////////////////////////
void RawController::GetRawCommandStream( rftl::virtual_iterator<RawCommand>& parser ) const
{
return GetRawCommandStream( parser, rftl::numeric... | 30.015152 | 196 | 0.687027 | max-delta |
e22d685fc12753cf2dd50dc5be118f36572b8bb6 | 2,479 | cpp | C++ | tests/test-3bit-shift-register.cpp | AnandSaminathan/verification-algorithms | 5ba499b6147dc6002b6e7a1b67ffc1da6a2e1549 | [
"BSL-1.0"
] | null | null | null | tests/test-3bit-shift-register.cpp | AnandSaminathan/verification-algorithms | 5ba499b6147dc6002b6e7a1b67ffc1da6a2e1549 | [
"BSL-1.0"
] | null | null | null | tests/test-3bit-shift-register.cpp | AnandSaminathan/verification-algorithms | 5ba499b6147dc6002b6e7a1b67ffc1da6a2e1549 | [
"BSL-1.0"
] | null | null | null | #include "verification-algorithms/k-induction/k-induction.hpp"
#include "verification-algorithms/ltl-bmc/ltl-bmc.hpp"
#include "verification-algorithms/ic3/ic3.hpp"
#include "catch2/catch.hpp"
using namespace verifier;
SCENARIO("three bit shift register", "[3bit-shift-register]") {
std::vector<Symbol> symbols;
... | 25.556701 | 72 | 0.534086 | AnandSaminathan |
e22e9ae17eea1dfda75559fcaa2056af277d2c84 | 4,867 | cpp | C++ | XLib-v1.2.0/src/Base/Host/fUtil.cpp | mangrove-univr/Mangrove | 3d95096c7adfad5eb27625b020c222487e91ab4e | [
"MIT"
] | 1 | 2019-12-28T09:30:24.000Z | 2019-12-28T09:30:24.000Z | XLib-v1.2.0/src/Base/Host/fUtil.cpp | mangrove-univr/Mangrove | 3d95096c7adfad5eb27625b020c222487e91ab4e | [
"MIT"
] | 1 | 2020-08-25T10:57:11.000Z | 2020-08-25T10:57:11.000Z | XLib-v1.2.0/src/Base/Host/fUtil.cpp | mangrove-univr/Mangrove | 3d95096c7adfad5eb27625b020c222487e91ab4e | [
"MIT"
] | null | null | null | /*------------------------------------------------------------------------------
Copyright © 2016 by Nicola Bombieri
XLib is provided under the terms of The MIT License (MIT):
Permission is hereby granted, free of charge, to any person obtaining a copy of
this software and associated documentation files (the "Softwar... | 29.676829 | 81 | 0.623998 | mangrove-univr |
e237fdd7e578881d884861f464e9cf27de724716 | 1,843 | cpp | C++ | cap8/pp8_3.cpp | Titan201/Jumping-to-cpp | 467ba4d197ac2f5225b43732c42aa3fb5262d557 | [
"MIT"
] | null | null | null | cap8/pp8_3.cpp | Titan201/Jumping-to-cpp | 467ba4d197ac2f5225b43732c42aa3fb5262d557 | [
"MIT"
] | null | null | null | cap8/pp8_3.cpp | Titan201/Jumping-to-cpp | 467ba4d197ac2f5225b43732c42aa3fb5262d557 | [
"MIT"
] | null | null | null | #include <cstdlib>
#include <ctime>
#include <iostream>
using namespace std;
int randRange (int low, int high)
{
return rand() % (high - low + 1) + low;
}
int GuessResponse(int response, int numberToGuess)
{
int signal;
cout << "You need to guess a number who is between 1 and 100, what will be your gues... | 23.0375 | 111 | 0.528486 | Titan201 |
e239d9d37a2e275ded954003e6f858e7d771ec9b | 2,426 | cpp | C++ | Ad-hoc/UVA11309 Counting Chaps/Code.cpp | adelnobel/Training-for-ACM-ICPC-problems | 8030d24ab3ce1f50821b22647bf9195b41f932b1 | [
"MIT"
] | 1 | 2020-03-05T09:09:36.000Z | 2020-03-05T09:09:36.000Z | Ad-hoc/UVA11309 Counting Chaps/Code.cpp | adelnobel/Training-for-ACM-ICPC-problems | 8030d24ab3ce1f50821b22647bf9195b41f932b1 | [
"MIT"
] | null | null | null | Ad-hoc/UVA11309 Counting Chaps/Code.cpp | adelnobel/Training-for-ACM-ICPC-problems | 8030d24ab3ce1f50821b22647bf9195b41f932b1 | [
"MIT"
] | null | null | null | #include <vector>
#include <list>
#include <map>
#include <set>
#include <queue>
#include <deque>
#include <stack>
#include <bitset>
#include <algorithm>
#include <functional>
#include <iostream>
#include <cstdio>
#include <cmath>
#include <cstring>
#include <string>
using namespace std;
#define EPS 1e-7
#define N 10... | 26.955556 | 83 | 0.240313 | adelnobel |
e247b6d7e88e51b12b1c8b917bb0007eb3b90c16 | 1,277 | cpp | C++ | examples/loop_interchange_kernel/loop_interchange.cpp | DavidPfander-UniStuttgart/AutoTuneTMP | f5fb836778b04c2ab0fbcc4d36c466e577e96e65 | [
"BSD-3-Clause"
] | 5 | 2019-11-06T15:02:41.000Z | 2022-01-14T20:25:50.000Z | examples/loop_interchange_kernel/loop_interchange.cpp | DavidPfander-UniStuttgart/AutoTuneTMP | f5fb836778b04c2ab0fbcc4d36c466e577e96e65 | [
"BSD-3-Clause"
] | 3 | 2018-01-25T21:25:22.000Z | 2022-03-14T17:35:27.000Z | examples/loop_interchange_kernel/loop_interchange.cpp | DavidPfander-UniStuttgart/AutoTuneTMP | f5fb836778b04c2ab0fbcc4d36c466e577e96e65 | [
"BSD-3-Clause"
] | 1 | 2020-07-15T11:05:43.000Z | 2020-07-15T11:05:43.000Z | #include "parameters.hpp"
#include <array>
#include <iostream>
#include <tuple>
#include "opttmp/loop/loop_exchange.hpp"
namespace detail {
template <size_t depth, size_t index, size_t cur_depth>
constexpr size_t extract_index_rec(const size_t perm_rem) {
if constexpr (cur_depth == index) {
return perm_rem % d... | 27.170213 | 79 | 0.624119 | DavidPfander-UniStuttgart |
e247f91790f70a065e474772c701d8d80ff9ee09 | 287 | cpp | C++ | src/DescentEngine/src/EntityEngine/MultiVisualEntity.cpp | poseidn/KungFoo-legacy | 9b79d65b596acc9dff4725ef5bfab8ecc4164afb | [
"MIT"
] | 1 | 2017-11-24T03:01:31.000Z | 2017-11-24T03:01:31.000Z | src/DescentEngine/src/EntityEngine/MultiVisualEntity.cpp | poseidn/KungFoo-legacy | 9b79d65b596acc9dff4725ef5bfab8ecc4164afb | [
"MIT"
] | null | null | null | src/DescentEngine/src/EntityEngine/MultiVisualEntity.cpp | poseidn/KungFoo-legacy | 9b79d65b596acc9dff4725ef5bfab8ecc4164afb | [
"MIT"
] | null | null | null | #include "MultiVisualEntity.h"
#include "../Log.h"
#include <algorithm>
// DO NOT PUT THE METHOD DEFINITIONS in the .cpp file !
// otherwise the android compile produces link error, not sure why
// one idea is that overrwiting virtual methods across library borders is
// problematic
| 26.090909 | 73 | 0.752613 | poseidn |
f46c31106931df1fa55f2f90afa01dec9b8befa5 | 2,656 | cpp | C++ | source/common/generic_config/model/ChoiceParam.cpp | varunamachi/quartz | 29b0cf7fb981ec95db894259e32af233f64fa616 | [
"MIT"
] | 6 | 2018-01-07T18:11:27.000Z | 2022-03-25T03:32:45.000Z | source/common/generic_config/model/ChoiceParam.cpp | varunamachi/quartz | 29b0cf7fb981ec95db894259e32af233f64fa616 | [
"MIT"
] | 8 | 2019-02-28T02:25:53.000Z | 2019-02-28T15:47:18.000Z | source/common/generic_config/model/ChoiceParam.cpp | varunamachi/quartz | 29b0cf7fb981ec95db894259e32af233f64fa616 | [
"MIT"
] | 4 | 2016-05-28T16:31:06.000Z | 2019-09-25T07:13:45.000Z | #include <QVariant>
#include <QString>
#include <QHash>
#include <QVector>
#include "ChoiceParam.h"
namespace Quartz {
struct ChoiceParam::Data {
Data()
: m_defaultIndex(0)
, m_index(m_defaultIndex) {
}
QVector<QString> m_names;
QVector<QVariant> m_values;
int m_defaultIndex;
... | 23.095652 | 73 | 0.626506 | varunamachi |
f46f1c6527f8e9eda363a9e2357a4e8d85e78624 | 4,411 | cpp | C++ | source/internal/curl.cpp | HeliosInteractive/libkeen | f31246c2f0a705b9f1c25e4400d96a62408c37e6 | [
"MIT"
] | 1 | 2016-04-26T04:16:55.000Z | 2016-04-26T04:16:55.000Z | source/internal/curl.cpp | HeliosInteractive/libkeen | f31246c2f0a705b9f1c25e4400d96a62408c37e6 | [
"MIT"
] | null | null | null | source/internal/curl.cpp | HeliosInteractive/libkeen | f31246c2f0a705b9f1c25e4400d96a62408c37e6 | [
"MIT"
] | 2 | 2016-04-14T16:57:03.000Z | 2020-02-21T00:17:48.000Z | #include "internal/curl.hpp"
#include "scoped.hpp"
#include "logger.hpp"
#include "curl/curl.h"
namespace libkeen {
namespace internal {
class LibCurlHandle
{
public:
static std::shared_ptr< LibCurlHandle > ref() {
static std::shared_ptr< LibCurlHandle > instance{ new LibCurlHandle };
return ins... | 26.572289 | 98 | 0.622308 | HeliosInteractive |
f4756766856cdc7cf12e4a4226c7c2672a68509e | 186 | cpp | C++ | src/component/component.cpp | MeTheFlea/flare | cf94019ef1a907fa33f29c5834616e05d891fb0d | [
"MIT"
] | 3 | 2015-04-05T18:16:16.000Z | 2016-05-02T19:00:48.000Z | src/component/component.cpp | MeTheFlea/flare | cf94019ef1a907fa33f29c5834616e05d891fb0d | [
"MIT"
] | null | null | null | src/component/component.cpp | MeTheFlea/flare | cf94019ef1a907fa33f29c5834616e05d891fb0d | [
"MIT"
] | null | null | null | #include "component/component.h"
std::vector<std::function<void()>> flare::Components::s_updateFunctions;
std::vector<std::function<void()>> flare::Components::s_renderFunctions;
| 31 | 73 | 0.741935 | MeTheFlea |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.