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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
0e794e4c9a8be8c48fa11e7c341969ce34080638 | 1,386 | cpp | C++ | PomordorUI/src/SplashWidget/splashwidget.cpp | kiseop91/Pomordor | 5bfbfaa9ceecdf147058ca49dc3c4fa8b442717c | [
"MIT"
] | 2 | 2020-07-05T07:04:34.000Z | 2020-07-05T07:04:37.000Z | PomordorUI/src/SplashWidget/splashwidget.cpp | kiseop91/Pomordor | 5bfbfaa9ceecdf147058ca49dc3c4fa8b442717c | [
"MIT"
] | 15 | 2020-07-05T06:42:07.000Z | 2020-11-07T13:09:34.000Z | PomordorUI/src/SplashWidget/splashwidget.cpp | kiseop91/Pomordor | 5bfbfaa9ceecdf147058ca49dc3c4fa8b442717c | [
"MIT"
] | 2 | 2020-07-02T03:46:49.000Z | 2020-11-02T06:44:54.000Z | #include "splashwidget.h"
#include "TimerPage/TimerPage.h"
#include "./ui_splashwidget.h"
#include <QGraphicsDropShadowEffect>
#include <QTimer>
SplashWidget::SplashWidget(QWidget *parent)
: QWidget(nullptr)
, ui(new Ui::SplashWidget)
{
m_PomodorTimer = parent;
ui->setupUi(this);
setWindowFlag(Qt:... | 24.315789 | 117 | 0.676046 | kiseop91 |
0e7f7f0d4c981c0605aff70dbf8bda6381ec155c | 585 | cpp | C++ | 2_Basics/2_1_HelloWorld.cpp | YinHk-Forks/CPP-Notes | 7dd1895d44cd3773e5f2603cbc3b02d174285b05 | [
"MIT"
] | 4 | 2020-12-30T15:16:39.000Z | 2021-11-07T17:17:02.000Z | 2_Basics/2_1_HelloWorld.cpp | YinHk-Forks/CPP-Notes | 7dd1895d44cd3773e5f2603cbc3b02d174285b05 | [
"MIT"
] | null | null | null | 2_Basics/2_1_HelloWorld.cpp | YinHk-Forks/CPP-Notes | 7dd1895d44cd3773e5f2603cbc3b02d174285b05 | [
"MIT"
] | 3 | 2021-04-03T08:00:36.000Z | 2022-01-01T06:19:58.000Z | //
// 2_1_HelloWorld.cpp
// CPP
//
// Created by akshay raj gollahalli on 28/01/16.
// Copyright © 2016 akshay raj gollahalli. All rights reserved.
//
// This is a comment
/*
This is a block code.
*/
#include <cstdio> //<- Libraries
#include <iostream>
using namespace std; //<- scope to identifiers
int main(i... | 23.4 | 76 | 0.675214 | YinHk-Forks |
0e861c86fb74c00d1ef2a18be56d21066625284a | 4,017 | cpp | C++ | libs/full/distribution_policies/src/binpacking_distribution_policy.cpp | bhumitattarde/hpx | 5b34d8d77b1664fa552445d44cd98e51dc69a74a | [
"BSL-1.0"
] | 1 | 2022-02-08T05:55:09.000Z | 2022-02-08T05:55:09.000Z | libs/full/distribution_policies/src/binpacking_distribution_policy.cpp | Deepak-suresh14/hpx | 5ecf3cad298678021c77c825a9f54d7c119d9dd1 | [
"BSL-1.0"
] | 1 | 2021-08-09T14:08:44.000Z | 2021-08-10T13:02:44.000Z | libs/full/distribution_policies/src/binpacking_distribution_policy.cpp | Deepak-suresh14/hpx | 5ecf3cad298678021c77c825a9f54d7c119d9dd1 | [
"BSL-1.0"
] | null | null | null | // Copyright (c) 2007-2021 Hartmut Kaiser
//
// SPDX-License-Identifier: BSL-1.0
// 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)
#include <hpx/distribution_policies/binpacking_distribution_policy.hpp>
#include ... | 30.9 | 80 | 0.572069 | bhumitattarde |
0e90417e24ce2da2c2c5f7d8d0f9eaa1e094b079 | 506 | cpp | C++ | Strings/minimalStringRotation.cpp | PauliusGasiukevicius/Algorithms-and-Data-Structures | 11d8e47f8db6a744e4e50065e8fe0c44ca4f0ea2 | [
"MIT"
] | 2 | 2017-11-23T09:36:10.000Z | 2018-08-01T12:10:45.000Z | Strings/minimalStringRotation.cpp | PauliusGasiukevicius/Algorithms-and-Data-Structures | 11d8e47f8db6a744e4e50065e8fe0c44ca4f0ea2 | [
"MIT"
] | null | null | null | Strings/minimalStringRotation.cpp | PauliusGasiukevicius/Algorithms-and-Data-Structures | 11d8e47f8db6a744e4e50065e8fe0c44ca4f0ea2 | [
"MIT"
] | 2 | 2018-08-01T12:11:15.000Z | 2018-12-21T07:43:09.000Z | int minLexCyc(string& x) //returns index of minimal string rotation, works in O(n)
{
int i = 0, j = 1, k = 1, p = 1, a, b, l = x.size();
while(j+k <= (l<<1))
{
if ((a=x[(i+k-1)%l])>(b=x[(j+k-1)%l]))
{
i=j++;
k=p=1;
} else if (a<b)
{
j+=k;
... | 20.24 | 82 | 0.298419 | PauliusGasiukevicius |
0e92e0db0d9c3008e1109f617bc18261570bfdf9 | 1,947 | cpp | C++ | WDL/IPlug/IPopupMenu.cpp | wayne-chen/AudioPlugins | 397112da7e992628652eddafcaf75f71ddf56d3f | [
"Zlib"
] | 879 | 2015-01-01T16:25:39.000Z | 2022-03-15T13:22:40.000Z | WDL/IPlug/IPopupMenu.cpp | wayne-chen/AudioPlugins | 397112da7e992628652eddafcaf75f71ddf56d3f | [
"Zlib"
] | 65 | 2015-01-26T14:31:33.000Z | 2018-12-18T16:40:29.000Z | WDL/IPlug/IPopupMenu.cpp | wayne-chen/AudioPlugins | 397112da7e992628652eddafcaf75f71ddf56d3f | [
"Zlib"
] | 233 | 2015-01-21T01:00:56.000Z | 2022-03-08T18:50:16.000Z | #include "IPopupMenu.h"
void IPopupMenuItem::SetChecked(bool state)
{
if (state)
{
mFlags |= kChecked;
}
else
{
mFlags &= ~kChecked;
}
}
IPopupMenuItem* IPopupMenu::GetItem(int index)
{
int nItems = GetNItems();
if (index >= 0 && index < nItems)
{
return mMenuItems.Get(index);
}
els... | 17.7 | 85 | 0.669235 | wayne-chen |
0e938be86cf215cbbb827ac24351aad34025332a | 2,792 | cpp | C++ | src/Facade/videoservice.cpp | andywang0607/VideoProcessingService | dfe157e96a6bbc8be63b945bf494eaa193a50008 | [
"MIT"
] | null | null | null | src/Facade/videoservice.cpp | andywang0607/VideoProcessingService | dfe157e96a6bbc8be63b945bf494eaa193a50008 | [
"MIT"
] | null | null | null | src/Facade/videoservice.cpp | andywang0607/VideoProcessingService | dfe157e96a6bbc8be63b945bf494eaa193a50008 | [
"MIT"
] | null | null | null | #include <iostream>
#include "videoservice.h"
using namespace std;
VideoService::VideoService():
vp(std::make_shared<FFMPEGVideoProcessing>())
, ap(std::make_shared<FFMPEGAudioProcessing>())
, demuxer(std::make_shared<FFMPEGDemuxer>())
{
}
VideoService::~VideoService()
{
}
bool VideoService::open(const c... | 22.516129 | 90 | 0.595272 | andywang0607 |
0e9502fdbbca1c64f066b400a00c128a8e21ad6f | 2,920 | cpp | C++ | WorldEditor/DlgPgRenderingStatistics.cpp | openlastchaos/lastchaos-source-client | 3d88594dba7347b1bb45378136605e31f73a8555 | [
"Apache-2.0"
] | 1 | 2022-02-14T15:46:44.000Z | 2022-02-14T15:46:44.000Z | WorldEditor/DlgPgRenderingStatistics.cpp | openlastchaos/lastchaos-source-client | 3d88594dba7347b1bb45378136605e31f73a8555 | [
"Apache-2.0"
] | null | null | null | WorldEditor/DlgPgRenderingStatistics.cpp | openlastchaos/lastchaos-source-client | 3d88594dba7347b1bb45378136605e31f73a8555 | [
"Apache-2.0"
] | 2 | 2022-01-10T22:17:06.000Z | 2022-01-17T09:34:08.000Z | // DlgPgRenderingStatistics.cpp : implementation file
//
#include "stdafx.h"
#include "DlgPgRenderingStatistics.h"
#ifdef _DEBUG
#undef new
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// CDlgPgRenderin... | 28.910891 | 104 | 0.696918 | openlastchaos |
0e96ce0953263a30e4650c85475f305bc250a74c | 833 | cpp | C++ | src/Tokenize.cpp | Fs2a/fs2a | d860ca2e6e4abd938a1ddba809b5332ccfbdfb34 | [
"BSD-3-Clause"
] | null | null | null | src/Tokenize.cpp | Fs2a/fs2a | d860ca2e6e4abd938a1ddba809b5332ccfbdfb34 | [
"BSD-3-Clause"
] | null | null | null | src/Tokenize.cpp | Fs2a/fs2a | d860ca2e6e4abd938a1ddba809b5332ccfbdfb34 | [
"BSD-3-Clause"
] | null | null | null | /* Shamelessly copied from:
* http://www.sbin.org/doc/HOWTO/C++Programming-HOWTO-7.html */
#include "Tokenize.h"
void Tokenize(
const std::string & str,
std::vector<std::string> & tokens,
const std::string & delimiters
) {
// Skip delimiters at beginning.
std::string::size_type lastPos = str.find_first_not_o... | 28.724138 | 71 | 0.655462 | Fs2a |
0e9a2117da7dbfc3adccdc3bbb664bf845b3b373 | 3,779 | hpp | C++ | include/operon/collections/projection.hpp | lf-shaw/operon | 09a6ac1932d552b8be505f235318e50e923b0da1 | [
"MIT"
] | 50 | 2020-10-14T10:08:21.000Z | 2022-03-10T12:55:05.000Z | include/operon/collections/projection.hpp | lf-shaw/operon | 09a6ac1932d552b8be505f235318e50e923b0da1 | [
"MIT"
] | 16 | 2020-10-26T13:05:47.000Z | 2022-02-22T20:24:41.000Z | include/operon/collections/projection.hpp | lf-shaw/operon | 09a6ac1932d552b8be505f235318e50e923b0da1 | [
"MIT"
] | 16 | 2020-10-26T13:05:38.000Z | 2022-01-14T02:52:13.000Z | // SPDX-License-Identifier: MIT
// SPDX-FileCopyrightText: Copyright 2019-2021 Heal Research
#ifndef OPERON_PROJECTION_HPP
#define OPERON_PROJECTION_HPP
#include <functional>
#include <iterator>
#include <type_traits>
namespace Operon {
namespace detail {
struct identity {
template <typename T>
... | 23.767296 | 148 | 0.624239 | lf-shaw |
0e9c9506a38de4389a76cfa7c99d9cfc51d74985 | 15,215 | cpp | C++ | main.cpp | bharad6/arm_hab_controller | 533c5247c096f2c87b72697526251dd239e7f2ad | [
"Apache-2.0"
] | null | null | null | main.cpp | bharad6/arm_hab_controller | 533c5247c096f2c87b72697526251dd239e7f2ad | [
"Apache-2.0"
] | null | null | null | main.cpp | bharad6/arm_hab_controller | 533c5247c096f2c87b72697526251dd239e7f2ad | [
"Apache-2.0"
] | null | null | null | /*
###############################
This is the final core software program for the High Altitude Balloon Control
Project for cs241 at Stanford University.
Authors: Iskender Kushan, Shane Leonard, Bharad Raghavan, Jacky Wang
Known issues and future development:
1. Iridium module can send properly to the satellite module... | 34.816934 | 150 | 0.641538 | bharad6 |
0e9cbe212c3621cd35205035a2b6f70e6a6bdf6c | 2,264 | cpp | C++ | Source/Scanning/Tokenizers/BoolFalse.cpp | GoPlan/cldeparser | 430bd983fa2c448680f3b7452c40ebb4c1ca3048 | [
"MIT"
] | null | null | null | Source/Scanning/Tokenizers/BoolFalse.cpp | GoPlan/cldeparser | 430bd983fa2c448680f3b7452c40ebb4c1ca3048 | [
"MIT"
] | null | null | null | Source/Scanning/Tokenizers/BoolFalse.cpp | GoPlan/cldeparser | 430bd983fa2c448680f3b7452c40ebb4c1ca3048 | [
"MIT"
] | null | null | null | //
// Created by LE, Duc Anh on 8/12/15.
//
#include "BoolFalse.h"
namespace CLDEParser {
namespace Scanning {
namespace Tokenizers {
bool BoolFalse::BeginWithCharacter(char character) {
return character == 'f';
}
SPtrToken BoolFalse::CreateSPtrToken()... | 29.402597 | 111 | 0.465106 | GoPlan |
0e9efaa5ade806ca051b2ea1d1ad3f7c1bffe45e | 11,236 | cpp | C++ | tools/clang/lib/StaticAnalyzer/Checkers/CheckerDocumentation.cpp | nettrino/IntFlow | 0400aef5da2c154268d8b020e393c950435395b3 | [
"Unlicense"
] | 16 | 2015-09-08T08:49:11.000Z | 2019-07-20T14:46:20.000Z | src/llvm/tools/clang/lib/StaticAnalyzer/Checkers/CheckerDocumentation.cpp | jeltz/rust-debian-package | 07eaa3658867408248c555b1b3a593c012b4f931 | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] | 1 | 2019-02-10T08:27:48.000Z | 2019-02-10T08:27:48.000Z | src/llvm/tools/clang/lib/StaticAnalyzer/Checkers/CheckerDocumentation.cpp | jeltz/rust-debian-package | 07eaa3658867408248c555b1b3a593c012b4f931 | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] | 7 | 2016-05-26T17:31:46.000Z | 2020-11-04T06:39:23.000Z | //= CheckerDocumentation.cpp - Documentation checker ---------------*- C++ -*-//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===-------------------------------------------------------... | 42.4 | 81 | 0.643467 | nettrino |
0e9fc0ff48d33d780735cf102b37a30890bec9ff | 6,714 | cpp | C++ | tests/unit/leg.cpp | JasonThomasData/charlotte | bd0e7bda70d402e20c3758aea12979a1c2e9c68a | [
"MIT"
] | null | null | null | tests/unit/leg.cpp | JasonThomasData/charlotte | bd0e7bda70d402e20c3758aea12979a1c2e9c68a | [
"MIT"
] | null | null | null | tests/unit/leg.cpp | JasonThomasData/charlotte | bd0e7bda70d402e20c3758aea12979a1c2e9c68a | [
"MIT"
] | null | null | null | #include <memory>
#include "../../lib/catch.hpp"
#include "../../lib/fakeit.hpp"
#include "../../src/servo/i_servo_driver.h"
#include "../../src/leg/leg_driver_02.h"
#include "../../src/leg/leg_driver_13.h"
using namespace fakeit;
Mock<IServoDriver> servo_helper()
{
Mock<IServoDriver> servo;
When(Method(s... | 31.373832 | 90 | 0.724307 | JasonThomasData |
0ea121dd640604ffc6929239080b9b0c76bd8748 | 11,559 | cpp | C++ | src/mongo/executor/connection_pool_asio.cpp | hgGeorg/mongo | b5bea92504b2612f433b55e7b901f9ae276d11ec | [
"Apache-2.0"
] | null | null | null | src/mongo/executor/connection_pool_asio.cpp | hgGeorg/mongo | b5bea92504b2612f433b55e7b901f9ae276d11ec | [
"Apache-2.0"
] | null | null | null | src/mongo/executor/connection_pool_asio.cpp | hgGeorg/mongo | b5bea92504b2612f433b55e7b901f9ae276d11ec | [
"Apache-2.0"
] | null | null | null | /** * Copyright (C) 2015 MongoDB Inc.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License, version 3,
* as published by the Free Software Foundation.
*
* This program is distributed in the hope that it will be usefu... | 35.348624 | 100 | 0.641145 | hgGeorg |
0ea2eb6b2dd122ca02317e17a3934e64aef2682c | 852 | cc | C++ | src/gb/collide/shapes.cc | jpursey/gbits | 4dfedd1297ca368ad1d80a03308fc4da0241f948 | [
"MIT"
] | 1 | 2020-07-11T17:03:19.000Z | 2020-07-11T17:03:19.000Z | src/gb/collide/shapes.cc | jpursey/gbits | 4dfedd1297ca368ad1d80a03308fc4da0241f948 | [
"MIT"
] | null | null | null | src/gb/collide/shapes.cc | jpursey/gbits | 4dfedd1297ca368ad1d80a03308fc4da0241f948 | [
"MIT"
] | null | null | null | // Copyright (c) 2022 John Pursey
//
// Use of this source code is governed by an MIT-style License that can be found
// in the LICENSE file or at https://opensource.org/licenses/MIT.
#include "gb/collide/shapes.h"
#include <algorithm>
namespace gb {
CAabb::CAabb(const CLine& line)
: pos(GetMinBounds(line.verte... | 26.625 | 80 | 0.669014 | jpursey |
0ea8ea346b01714b84f55f580e25e872c215f3cd | 17,773 | cpp | C++ | Src/ImGui/Widget/ImGuiPieMenu.cpp | straywriter/imgui | 4cb6ba5bdfb20740b68e0e717b576f4100433d54 | [
"MIT"
] | null | null | null | Src/ImGui/Widget/ImGuiPieMenu.cpp | straywriter/imgui | 4cb6ba5bdfb20740b68e0e717b576f4100433d54 | [
"MIT"
] | null | null | null | Src/ImGui/Widget/ImGuiPieMenu.cpp | straywriter/imgui | 4cb6ba5bdfb20740b68e0e717b576f4100433d54 | [
"MIT"
] | null | null | null |
#include <ImGui/ImGui.h>
#ifndef IMGUI_DEFINE_MATH_OPERATORS
# define IMGUI_DEFINE_MATH_OPERATORS
#endif
#include <ImGui/ImGuiInternal.h>
#include <ImGui/Widget/ImGuiPieMenu.h>
struct PieMenuContext
{
static const int c_iMaxPieMenuStack = 8;
static const int c_iMaxPieItemCount = 12;
static const in... | 40.029279 | 193 | 0.675294 | straywriter |
0eadacc2ee571e6d4ebc7dad807b94a8d65922e2 | 1,015 | cpp | C++ | p976e/largest_perimeter.cpp | l33tdaima/l33tdaima | 0a7a9573dc6b79e22dcb54357493ebaaf5e0aa90 | [
"MIT"
] | 1 | 2020-02-20T12:04:46.000Z | 2020-02-20T12:04:46.000Z | p976e/largest_perimeter.cpp | l33tdaima/l33tdaima | 0a7a9573dc6b79e22dcb54357493ebaaf5e0aa90 | [
"MIT"
] | null | null | null | p976e/largest_perimeter.cpp | l33tdaima/l33tdaima | 0a7a9573dc6b79e22dcb54357493ebaaf5e0aa90 | [
"MIT"
] | null | null | null | // g++ -std=c++11 *.cpp -o test && ./test && rm -f test
#include <vector>
#include <algorithm>
#include <iostream>
using namespace std;
class Solution {
public:
int largestPerimeter(vector<int>& A) {
sort(A.begin(), A.end(), [](int a, int b) -> bool { return a > b; });
for (int i = 2; i < A.size()... | 21.595745 | 78 | 0.440394 | l33tdaima |
0eaf3c513ec9b17233cc4585613230d0d7ab8ccf | 400 | hpp | C++ | variant.hpp | isadchenko/brig | 3e65a44fa4b8690cdfa8bdaca08d560591afcc38 | [
"MIT"
] | null | null | null | variant.hpp | isadchenko/brig | 3e65a44fa4b8690cdfa8bdaca08d560591afcc38 | [
"MIT"
] | null | null | null | variant.hpp | isadchenko/brig | 3e65a44fa4b8690cdfa8bdaca08d560591afcc38 | [
"MIT"
] | null | null | null | // Andrew Naplavkov
#ifndef BRIG_VARIANT_HPP
#define BRIG_VARIANT_HPP
#include <boost/variant.hpp>
#include <brig/blob_t.hpp>
#include <brig/null_t.hpp>
#include <cstdint>
#include <string>
namespace brig {
typedef ::boost::variant<
null_t,
int16_t,
int32_t,
int64_t,
float,
double,
... | 14.285714 | 29 | 0.6625 | isadchenko |
0eb08edbd6feece7769e97a0379503ad203784aa | 15,868 | cpp | C++ | src/application/io/leds/LEDs.cpp | hyperglitch/OpenDeck | f78cb720c678f0a675eb620b053c7bf84a041ebc | [
"Apache-2.0"
] | null | null | null | src/application/io/leds/LEDs.cpp | hyperglitch/OpenDeck | f78cb720c678f0a675eb620b053c7bf84a041ebc | [
"Apache-2.0"
] | null | null | null | src/application/io/leds/LEDs.cpp | hyperglitch/OpenDeck | f78cb720c678f0a675eb620b053c7bf84a041ebc | [
"Apache-2.0"
] | null | null | null | /*
Copyright 2015-2021 Igor Petrovic
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, soft... | 29.330869 | 148 | 0.555331 | hyperglitch |
0eb13dba963911428f2c82858c24b31dcb584001 | 31,284 | cpp | C++ | Marlin/src/gcode/bedlevel/abl/G29.cpp | violigon/3DPrinter-DE2LV | 5c8960f07085cc11d232a52cb029aa92533287bd | [
"MIT"
] | null | null | null | Marlin/src/gcode/bedlevel/abl/G29.cpp | violigon/3DPrinter-DE2LV | 5c8960f07085cc11d232a52cb029aa92533287bd | [
"MIT"
] | null | null | null | Marlin/src/gcode/bedlevel/abl/G29.cpp | violigon/3DPrinter-DE2LV | 5c8960f07085cc11d232a52cb029aa92533287bd | [
"MIT"
] | null | null | null | /**
* Marlin 3D Printer Firmware
* Copyright (c) 2020 MarlinFirmware [https://github.com/MarlinFirmware/Marlin]
*
* Based on Sprinter and grbl.
* Copyright (c) 2011 Camiel Gubbels / Erik van der Zalm
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General... | 34.798665 | 152 | 0.641414 | violigon |
0eb5e04d68b881325837a0e07a8d4e2e5101b534 | 1,515 | cpp | C++ | src/GL/Shader.cpp | ST64/StarrySky | 5f7a2e0bc6d9056195397cf2e1841265494dfdf6 | [
"MIT"
] | null | null | null | src/GL/Shader.cpp | ST64/StarrySky | 5f7a2e0bc6d9056195397cf2e1841265494dfdf6 | [
"MIT"
] | null | null | null | src/GL/Shader.cpp | ST64/StarrySky | 5f7a2e0bc6d9056195397cf2e1841265494dfdf6 | [
"MIT"
] | null | null | null | #include <gl.h>
#include <GL/Shader.hpp>
#include <file/PlainText.hpp>
#include <string>
#include <vector>
#ifndef NDEBUG
#include <iostream>
#endif
Shader::Shader(GLenum type, const std::string& filename) : m_type(type) {
m_handle = glCreateShader(this->m_type);
std::string contents = readWholeFile(filename);
const... | 28.584906 | 102 | 0.714191 | ST64 |
0eb935ad52d00798de084e4e714fba32ca536843 | 1,169 | cpp | C++ | 901-1000/919. Complete Binary Tree Inserter.cpp | erichuang1994/leetcode-solution | d5b3bb3ce2a428a3108f7369715a3700e2ba699d | [
"MIT"
] | null | null | null | 901-1000/919. Complete Binary Tree Inserter.cpp | erichuang1994/leetcode-solution | d5b3bb3ce2a428a3108f7369715a3700e2ba699d | [
"MIT"
] | null | null | null | 901-1000/919. Complete Binary Tree Inserter.cpp | erichuang1994/leetcode-solution | d5b3bb3ce2a428a3108f7369715a3700e2ba699d | [
"MIT"
] | null | null | null | /**
* Definition for a binary tree node.
* struct TreeNode {
* int val;
* TreeNode *left;
* TreeNode *right;
* TreeNode(int x) : val(x), left(NULL), right(NULL) {}
* };
*/
class CBTInserter
{
TreeNode *root;
TreeNode *nextInserter;
deque<TreeNode *> dq;
public:
CBTInserter(TreeNode *roo... | 19.483333 | 67 | 0.572284 | erichuang1994 |
0ebb86e0735ca1967c3e81842a36a4ffcfd59bbb | 383 | cpp | C++ | Source/Plugins/TeGLRenderAPI/TeGLDepthStencilState.cpp | GameDevery/TweedeFrameworkRedux | 69a28fe171db33d00066b97b9b6bf89f6ef3e3a4 | [
"MIT"
] | 57 | 2019-09-02T01:10:37.000Z | 2022-01-11T06:28:10.000Z | Source/Plugins/TeGLRenderAPI/TeGLDepthStencilState.cpp | GameDevery/TweedeFrameworkRedux | 69a28fe171db33d00066b97b9b6bf89f6ef3e3a4 | [
"MIT"
] | null | null | null | Source/Plugins/TeGLRenderAPI/TeGLDepthStencilState.cpp | GameDevery/TweedeFrameworkRedux | 69a28fe171db33d00066b97b9b6bf89f6ef3e3a4 | [
"MIT"
] | 6 | 2020-02-29T17:19:30.000Z | 2021-10-30T04:29:22.000Z | #include "TeGLDepthStencilState.h"
#include "TeGLRenderAPI.h"
namespace te
{
GLDepthStencilState::GLDepthStencilState(const DEPTH_STENCIL_STATE_DESC& desc)
: DepthStencilState(desc)
{ }
GLDepthStencilState::~GLDepthStencilState()
{ }
void GLDepthStencilState::CreateInternal()
{
... | 20.157895 | 82 | 0.686684 | GameDevery |
0ebbe6ffc23259fea2182500e9d5cda3c726bed1 | 12,974 | hpp | C++ | run_time/except_support.hpp | GParcade/AttachA | b6b1dd3ceda030d116d20f709b0383c1474b28a8 | [
"BSL-1.0"
] | null | null | null | run_time/except_support.hpp | GParcade/AttachA | b6b1dd3ceda030d116d20f709b0383c1474b28a8 | [
"BSL-1.0"
] | null | null | null | run_time/except_support.hpp | GParcade/AttachA | b6b1dd3ceda030d116d20f709b0383c1474b28a8 | [
"BSL-1.0"
] | null | null | null | /// this file external, used as manual for linux DWARF, not licensed
#pragma once
#include <vector>
#include <memory>
using namespace asmjit;
#ifdef _WIN32
#include <Windows.h>
#include <DbgHelp.h>
#else
#include <execinfo.h>
#include <cxxabi.h>
#include <cstring>
#include <cstdlib>
#endif
//#define ASMJIT_PROPAGATE(c... | 25.844622 | 161 | 0.690304 | GParcade |
0ebf3c894f64699a04a1f491a439e3d6eb74ca8f | 18,641 | cpp | C++ | libs/container/test/map_test.cpp | Abce/boost | 2d7491a27211aa5defab113f8e2d657c3d85ca93 | [
"BSL-1.0"
] | null | null | null | libs/container/test/map_test.cpp | Abce/boost | 2d7491a27211aa5defab113f8e2d657c3d85ca93 | [
"BSL-1.0"
] | null | null | null | libs/container/test/map_test.cpp | Abce/boost | 2d7491a27211aa5defab113f8e2d657c3d85ca93 | [
"BSL-1.0"
] | null | null | null | //////////////////////////////////////////////////////////////////////////////
//
// (C) Copyright Ion Gaztanaga 2004-2013. 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)
//
// See http://www.boost.org/libs/c... | 39.410148 | 151 | 0.66166 | Abce |
0ebfaae07d4bc40ec3297aa8a9c97e9395e0b7b8 | 3,046 | inl | C++ | code/SDK/include/WildMagic/WmlVector4.inl | Rikoshet-234/xray-oxygen | eaac3fa4780639152684f3251b8b4452abb8e439 | [
"Apache-2.0"
] | 8 | 2016-01-25T20:18:51.000Z | 2019-03-06T07:00:04.000Z | code/SDK/include/WildMagic/WmlVector4.inl | Rikoshet-234/xray-oxygen | eaac3fa4780639152684f3251b8b4452abb8e439 | [
"Apache-2.0"
] | 2 | 2018-05-26T23:17:14.000Z | 2019-04-14T18:33:27.000Z | code/SDK/include/WildMagic/WmlVector4.inl | Rikoshet-234/xray-oxygen | eaac3fa4780639152684f3251b8b4452abb8e439 | [
"Apache-2.0"
] | 5 | 2020-10-18T11:55:26.000Z | 2022-03-28T07:21:35.000Z | // Magic Software, Inc.
// http://www.magic-software.com
// http://www.wild-magic.com
// Copyright (c) 2004. All Rights Reserved
//
// The Wild Magic Library (WML) source code is supplied under the terms of
// the license agreement http://www.magic-software.com/License/WildMagic.pdf
// and may not be copied or disclos... | 30.158416 | 78 | 0.414314 | Rikoshet-234 |
b1c2cc5e3a1beadcf6240f80330ecf5a815c599d | 5,233 | cpp | C++ | sys/arch/arm/v7m/exception.cpp | apexrtos/apex | 9538ab2f5b974035ca30ca8750479bdefe153047 | [
"0BSD"
] | 15 | 2020-05-08T06:21:58.000Z | 2021-12-11T18:10:43.000Z | sys/arch/arm/v7m/exception.cpp | apexrtos/apex | 9538ab2f5b974035ca30ca8750479bdefe153047 | [
"0BSD"
] | 11 | 2020-05-08T06:46:37.000Z | 2021-03-30T05:46:03.000Z | sys/arch/arm/v7m/exception.cpp | apexrtos/apex | 9538ab2f5b974035ca30ca8750479bdefe153047 | [
"0BSD"
] | 5 | 2020-08-31T17:05:03.000Z | 2021-12-08T07:09:00.000Z | #include "exception_frame.h"
#include <arch/interrupt.h>
#include <arch/mmio.h>
#include <arch/mmu.h>
#include <compiler.h>
#include <cpu.h>
#include <debug.h>
#include <irq.h>
#include <proc.h>
#include <sch.h>
#include <sections.h>
#include <sig.h>
#include <task.h>
#include <thread.h>
/* Tell gcc not to use FPU reg... | 24.453271 | 78 | 0.691955 | apexrtos |
b1c585dd1b8b92aea627637c33b01f0241ffb060 | 5,762 | cpp | C++ | src/a_start.cpp | dengpw/hybrid_astar_planner | 699c20ed5bc82e20a1e8a4bd6af9852718f0e067 | [
"BSD-3-Clause"
] | 12 | 2021-10-06T13:33:16.000Z | 2022-03-16T03:22:51.000Z | src/a_start.cpp | dengpw/hybrid_astar_planner | 699c20ed5bc82e20a1e8a4bd6af9852718f0e067 | [
"BSD-3-Clause"
] | 3 | 2021-11-15T03:15:45.000Z | 2022-03-01T06:58:30.000Z | src/a_start.cpp | dengpw/hybrid_astar_planner | 699c20ed5bc82e20a1e8a4bd6af9852718f0e067 | [
"BSD-3-Clause"
] | 7 | 2021-09-29T13:43:47.000Z | 2022-03-23T00:53:27.000Z | /*********************************************************************
*
* BSD 3-Clause License
*
* Copyright (c) 2021, dengpw
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
*
... | 38.932432 | 139 | 0.650295 | dengpw |
b1c7593cb0b691f124726b55041ee2af4454a186 | 1,839 | cpp | C++ | examples/google-code-jam/morbidel/r1A_p1.cpp | rbenic-fer/progauthfp | d0fd96c31ab0aab1a9acdcb7c75f2b430f51c675 | [
"MIT"
] | null | null | null | examples/google-code-jam/morbidel/r1A_p1.cpp | rbenic-fer/progauthfp | d0fd96c31ab0aab1a9acdcb7c75f2b430f51c675 | [
"MIT"
] | null | null | null | examples/google-code-jam/morbidel/r1A_p1.cpp | rbenic-fer/progauthfp | d0fd96c31ab0aab1a9acdcb7c75f2b430f51c675 | [
"MIT"
] | null | null | null | /*
* Google Code Jam 2013
* Round 1A - Problem 1 - Bullseye
*/
#include <string>
#include <vector>
#include <list>
#include <map>
#include <set>
#include <algorithm>
#include <queue>
#include <iostream>
#include <sstream>
#include <functional>
#include <deque>
#include <cstdio>
#include <cstring>... | 19.357895 | 72 | 0.509516 | rbenic-fer |
b1cef2f59e5ef58c18930bc60bddf0a73fe318a3 | 2,140 | cpp | C++ | 05-About-Linked-List/03-Remove-Linked-List-Elements/main.cpp | leverTsui/Embrace-with-Algorithm-Interview | 45541579d6c75e1336a8e5cd273c13cc4d7c0674 | [
"MIT"
] | 2 | 2021-03-25T05:26:55.000Z | 2021-04-20T03:33:24.000Z | 05-About-Linked-List/Course Code (C++)/03-Remove-Linked-List-Elements/main.cpp | mtianyan/Mtianyan-Play-with-Algorithm-Interview | 5f16b7f3e2903d26c8195270b87359d866ca0be2 | [
"Apache-2.0"
] | 6 | 2019-12-04T06:08:32.000Z | 2021-05-10T20:22:47.000Z | 05-About-Linked-List/Course Code (C++)/03-Remove-Linked-List-Elements/main.cpp | mtianyan/Mtianyan-Play-with-Algorithm-Interview | 5f16b7f3e2903d26c8195270b87359d866ca0be2 | [
"Apache-2.0"
] | null | null | null | #include <iostream>
using namespace std;
///Definition for singly-linked list.
struct ListNode {
int val;
ListNode *next;
ListNode(int x) : val(x), next(NULL) {}
};
/// LinkedList Test Helper Functions
ListNode* createLinkedList(int arr[], int n){
if(n == 0)
return NULL;
ListNode* head ... | 19.814815 | 73 | 0.533178 | leverTsui |
b1d1b962c0560ca82333102e91ab842803c1609a | 581 | cpp | C++ | HW8/task2/task2.cpp | Diana-Govorova/SPbSU-SemesterI | de35292d8ac52e74e126d2a40073fbd3db55a2f4 | [
"MIT"
] | null | null | null | HW8/task2/task2.cpp | Diana-Govorova/SPbSU-SemesterI | de35292d8ac52e74e126d2a40073fbd3db55a2f4 | [
"MIT"
] | 1 | 2020-04-03T18:10:39.000Z | 2020-04-03T18:10:39.000Z | HW8/task2/task2.cpp | Diana-Govorova/SPbSU-SemesterI | de35292d8ac52e74e126d2a40073fbd3db55a2f4 | [
"MIT"
] | null | null | null | #include <stdio.h>
#include "tree.h"
bool test()
{
char string1[13]{ "/ (+ 13 2) 5" };
Tree* tree = buildTree(string1);
const bool test1Result = valueExpression(tree) == 3;
deleteTree(tree);
return test1Result;
}
int main()
{
if (!test())
{
printf("All is bad\n");
return -1;
}
char string[100];
FILE* ... | 17.606061 | 53 | 0.628227 | Diana-Govorova |
b1d625e04a15d0f0cb7e03c25eb1952c1e0f1d86 | 13,252 | cpp | C++ | directfb/Source/DirectFB/src/core/CoreLayerContext.cpp | spartan263/vizio_oss | 74270002d874391148119b48882db6816e7deedc | [
"Linux-OpenIB"
] | 4 | 2016-07-01T04:50:02.000Z | 2021-11-14T21:29:42.000Z | directfb/Source/DirectFB/src/core/CoreLayerContext.cpp | spartan263/vizio_oss | 74270002d874391148119b48882db6816e7deedc | [
"Linux-OpenIB"
] | null | null | null | directfb/Source/DirectFB/src/core/CoreLayerContext.cpp | spartan263/vizio_oss | 74270002d874391148119b48882db6816e7deedc | [
"Linux-OpenIB"
] | null | null | null | /*
(c) Copyright 2001-2011 The world wide DirectFB Open Source Community (directfb.org)
(c) Copyright 2000-2004 Convergence (integrated media) GmbH
All rights reserved.
Written by Denis Oliver Kropp <dok@directfb.org>,
Andreas Hundt <andi@fischlustig.de>,
Sven Neumann <neo@di... | 35.338667 | 189 | 0.591609 | spartan263 |
b1d8f0e37cfbd008fdc89b663784bd7ebc98a142 | 5,716 | cpp | C++ | src/Application.cpp | Wesselmast/D3D11 | 3c6da3b0be24c68fd5db2dfc261a4a17305303c6 | [
"MIT"
] | 1 | 2020-08-19T13:39:40.000Z | 2020-08-19T13:39:40.000Z | src/Application.cpp | Wesselmast/D3D11 | 3c6da3b0be24c68fd5db2dfc261a4a17305303c6 | [
"MIT"
] | null | null | null | src/Application.cpp | Wesselmast/D3D11 | 3c6da3b0be24c68fd5db2dfc261a4a17305303c6 | [
"MIT"
] | null | null | null | #pragma once
#include <vector>
#include "Camera.cpp"
#include "GameCollision.cpp"
#include "GameLogic.cpp"
#include "PHP.cpp"
#if defined(NETWORKING)
#include "Networking.cpp"
#endif
enum GameResult {
NONE,
GAME_WON,
GAME_LOST
};
struct GameInput {
bool32 up;
bool32 left;
bool32 down;
bool32 right;
... | 22.68254 | 106 | 0.695066 | Wesselmast |
b1df7f775e10561af635a47c53c8dcf728bbc4a6 | 866 | hpp | C++ | src/lib/exceptions/PugException.hpp | lachvoj/pugcpp | b0f0f3f52ed81553717f9f5d72b319b6d48d05d4 | [
"MIT"
] | null | null | null | src/lib/exceptions/PugException.hpp | lachvoj/pugcpp | b0f0f3f52ed81553717f9f5d72b319b6d48d05d4 | [
"MIT"
] | null | null | null | src/lib/exceptions/PugException.hpp | lachvoj/pugcpp | b0f0f3f52ed81553717f9f5d72b319b6d48d05d4 | [
"MIT"
] | null | null | null | #ifndef PugException_hpp
#define PugException_hpp
#include <memory>
#include <string>
#include "../template/ITemplateLoader.hpp"
#include "Exception.hpp"
using namespace std;
namespace pugcpp
{
namespace exceptions
{
using namespace tmpl;
class PugException : public Exception
{
private:
static const long se... | 20.139535 | 63 | 0.714781 | lachvoj |
b1e26463217fec6e29c6fb2e165d8a47954b9afc | 4,257 | hpp | C++ | include/boost/json/value_to.hpp | AeroStun/json | 14bc67b63f5ce6ae5a119e2957e1f44f15277f5b | [
"BSL-1.0"
] | null | null | null | include/boost/json/value_to.hpp | AeroStun/json | 14bc67b63f5ce6ae5a119e2957e1f44f15277f5b | [
"BSL-1.0"
] | null | null | null | include/boost/json/value_to.hpp | AeroStun/json | 14bc67b63f5ce6ae5a119e2957e1f44f15277f5b | [
"BSL-1.0"
] | null | null | null | //
// Copyright (c) 2019 Vinnie Falco (vinnie.falco@gmail.com)
// Copyright (c) 2020 Krystian Stasiowski (sdkrystian@gmail.com)
//
// 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)
//
// Official repository: https://g... | 27.11465 | 93 | 0.696735 | AeroStun |
b1e4c40d9874de5888e5b2db6f5a0132cbd915b1 | 709 | hpp | C++ | examples/cerberus/hook_counter.hpp | phlip9/hadesmem | 59e13a92c05918b8c842141fd5cac1ed390cd79e | [
"MIT"
] | 19 | 2017-10-19T23:13:11.000Z | 2022-03-29T11:37:26.000Z | examples/cerberus/hook_counter.hpp | Bia10/hadesmem | b91bce37611d0e939a55d9490c49780f9f0f3bff | [
"MIT"
] | null | null | null | examples/cerberus/hook_counter.hpp | Bia10/hadesmem | b91bce37611d0e939a55d9490c49780f9f0f3bff | [
"MIT"
] | 10 | 2018-04-04T07:55:16.000Z | 2021-11-23T20:22:43.000Z | // Copyright (C) 2010-2015 Joshua Boyce
// See the file COPYING for copying permission.
#pragma once
#include <cstdint>
#include <hadesmem/config.hpp>
#include <hadesmem/detail/assert.hpp>
#include <hadesmem/detail/trace.hpp>
namespace hadesmem
{
namespace cerberus
{
class HookCounter
{
public:
... | 16.113636 | 56 | 0.651622 | phlip9 |
b1e4e0248a1278995bf080fada4f3c7fb0e87ad6 | 8,010 | cpp | C++ | src/dll/shaderRegistry.cpp | RyanJGray/aliasIsolation | ad3386a3f5a9f589f7d9ed317e1411c06a63bf96 | [
"Unlicense"
] | 1 | 2021-11-28T17:16:06.000Z | 2021-11-28T17:16:06.000Z | src/dll/shaderRegistry.cpp | RyanJGray/aliasIsolation | ad3386a3f5a9f589f7d9ed317e1411c06a63bf96 | [
"Unlicense"
] | null | null | null | src/dll/shaderRegistry.cpp | RyanJGray/aliasIsolation | ad3386a3f5a9f589f7d9ed317e1411c06a63bf96 | [
"Unlicense"
] | null | null | null | #include "shaderRegistry.h"
#include "dllParams.h"
#include "utilities.h"
#include <mutex>
#include <map>
#include <vector>
#include <cassert>
#include <windows.h>
#include <d3d11.h>
#include <d3dcompiler.h>
extern SharedDllParams g_dllParams;
extern ID3D11Device* g_device;
namespace ShaderRegistr... | 25.188679 | 125 | 0.655556 | RyanJGray |
b1e5ccb480a46f11bc782528228033fefbb6ee5e | 4,934 | cpp | C++ | Tree.cpp | danny98m/twenty-questions-computer-learning | 874dc0f0920ae125883ea2dd7b81b12c17f902c0 | [
"MIT"
] | null | null | null | Tree.cpp | danny98m/twenty-questions-computer-learning | 874dc0f0920ae125883ea2dd7b81b12c17f902c0 | [
"MIT"
] | null | null | null | Tree.cpp | danny98m/twenty-questions-computer-learning | 874dc0f0920ae125883ea2dd7b81b12c17f902c0 | [
"MIT"
] | null | null | null |
#include <iostream>
#include <stdlib.h>
#include "Tree.h"
// need this for dtor
//=========================================
//pre: must send in an assigned node pointer (prefarably the root)
//post: memory freed up
void remove(Node* root)
{
if (root == NULL) return;
remove(root->LChild());
remove(root->R... | 26.815217 | 82 | 0.484394 | danny98m |
b1e7de020088b51945294aa4c31152270941072f | 3,870 | cpp | C++ | src/openloco/windows/about.cpp | SmallJoker/OpenLoco | f42ed80be8fac5c1c5d122352a212585d54aa71f | [
"MIT"
] | 3 | 2018-10-16T20:08:33.000Z | 2018-10-25T20:31:54.000Z | src/openloco/windows/about.cpp | SmallJoker/OpenLoco | f42ed80be8fac5c1c5d122352a212585d54aa71f | [
"MIT"
] | 2 | 2018-12-12T20:33:26.000Z | 2018-12-14T21:06:23.000Z | src/openloco/windows/about.cpp | SmallJoker/OpenLoco | f42ed80be8fac5c1c5d122352a212585d54aa71f | [
"MIT"
] | 1 | 2018-12-14T13:03:51.000Z | 2018-12-14T13:03:51.000Z | #include "../graphics/colours.h"
#include "../graphics/gfx.h"
#include "../graphics/image_ids.h"
#include "../localisation/string_ids.h"
#include "../objects/interface_skin_object.h"
#include "../objects/objectmgr.h"
#include "../ui/WindowManager.h"
namespace openloco::ui::about
{
constexpr uint16_t ww = 400;
... | 31.721311 | 129 | 0.601034 | SmallJoker |
b1e82bab39904cc3045afeb632d1c1bb63b3e632 | 305 | cpp | C++ | src/MonitorHints.cpp | ErmolaevYura/GLFW_Wrapper | 8a4d0e4fb2dcfc8fdbfc69bc1464b7916daff366 | [
"MIT"
] | null | null | null | src/MonitorHints.cpp | ErmolaevYura/GLFW_Wrapper | 8a4d0e4fb2dcfc8fdbfc69bc1464b7916daff366 | [
"MIT"
] | null | null | null | src/MonitorHints.cpp | ErmolaevYura/GLFW_Wrapper | 8a4d0e4fb2dcfc8fdbfc69bc1464b7916daff366 | [
"MIT"
] | null | null | null | #include "pch.h"
#include "../include/MonitorHints.h"
namespace GLFW_WRAPPER_NAMESPACE
{
constexpr int DontCare()
{
return GLFW_DONT_CARE;
}
MonitorHintsApi MonitorHintsApi::RefreshRate(int value)
{
glfwWindowHint(GLFW_REFRESH_RATE, value);
return {};
}
} | 19.0625 | 59 | 0.655738 | ErmolaevYura |
b1e8e68f91a2927966c09817e65c3f041d02475b | 2,855 | cpp | C++ | src/platforms/main_shared.cpp | CedricGuillemet/gemoni | 76ca371d509791dd9d560d3f9f701f96e209ca5e | [
"MIT"
] | null | null | null | src/platforms/main_shared.cpp | CedricGuillemet/gemoni | 76ca371d509791dd9d560d3f9f701f96e209ca5e | [
"MIT"
] | null | null | null | src/platforms/main_shared.cpp | CedricGuillemet/gemoni | 76ca371d509791dd9d560d3f9f701f96e209ca5e | [
"MIT"
] | null | null | null | #include "main_shared.h"
#include "imgui.h"
#include "bgfx/bgfx.h"
#include "imgui_impl_bgfx.h"
#include "UIMain.h"
#ifdef WIN32
bool ImGui_ImplWin32_Init(void* hwnd);
void ImGui_ImplWin32_NewFrame();
void ImGui_ImplWin32_Shutdown();
#endif
#ifdef __linux__
bool ImGui_ImplX11_Init(void* hwnd);
void ImGui_ImplX11_NewF... | 25.265487 | 156 | 0.694921 | CedricGuillemet |
b1eb310d056e819af5891d28fc3dff962bc9ac3f | 2,867 | cpp | C++ | CommandEverything/CommandEverythingCPP/CommandSpecs.cpp | SneakyTactician/CommandEverything | 6530cba297d7e56bbf5ee434592fd6dcf8b46495 | [
"MIT"
] | 5 | 2017-03-03T05:41:45.000Z | 2017-11-06T21:57:58.000Z | CommandEverything/CommandEverythingCPP/CommandSpecs.cpp | TBye101/CommandEverything | 6530cba297d7e56bbf5ee434592fd6dcf8b46495 | [
"MIT"
] | 66 | 2017-02-11T18:47:50.000Z | 2017-11-06T23:16:48.000Z | CommandEverything/CommandEverythingCPP/CommandSpecs.cpp | SneakyTactician/CommandEverything | 6530cba297d7e56bbf5ee434592fd6dcf8b46495 | [
"MIT"
] | null | null | null | #include "stdafx.h"
#include "CommandSpecs.h"
CommandSpecs::CommandSpecs()
{
}
CommandSpecs::~CommandSpecs()
{
}
bool CommandSpecs::shouldRunThisCommand(ParsedCommand * Parsed)
{
return (Parsed->words->at(0) == "specs");
}
void CommandSpecs::run(ParsedCommand* Parsed)
{
this->GetOSInfo();
this->GetProcessorInfo(... | 25.371681 | 177 | 0.723055 | SneakyTactician |
b1ecf805232aceaeea6c03d025bc809b68050a85 | 6,323 | hh | C++ | src/lib/board.hh | wsbky/reversi-cpp | c27de17bd7c2e0d9fd4d3e01627a4300e0070486 | [
"Apache-2.0"
] | null | null | null | src/lib/board.hh | wsbky/reversi-cpp | c27de17bd7c2e0d9fd4d3e01627a4300e0070486 | [
"Apache-2.0"
] | 1 | 2021-09-18T14:09:11.000Z | 2021-09-18T14:27:49.000Z | src/lib/board.hh | wsbky/reversi-cpp | c27de17bd7c2e0d9fd4d3e01627a4300e0070486 | [
"Apache-2.0"
] | 1 | 2021-09-18T14:12:15.000Z | 2021-09-18T14:12:15.000Z | #pragma once
#include <cstdint>
#include <functional>
#include <string>
#include <vector>
namespace reversi {
using board = std::uint64_t;
namespace BitOperation {
int popcount(board x) {
x = x - ((x >> 1) & 0x5555555555555555);
x = (x & 0x3333333333333333) + ((x >> 2) & 0x3333333333333333);
x = (x + (... | 30.843902 | 77 | 0.520164 | wsbky |
b1f58ff3a8fd1d2f8554a42a4e4d08dfa31b77ea | 3,209 | cpp | C++ | src/gcix.cpp | xoofx/gcix | a3846a5fd69d29761d81b89a342ae47c9d2dc7fc | [
"BSD-2-Clause"
] | 60 | 2015-01-12T05:00:12.000Z | 2021-06-13T15:27:41.000Z | src/gcix.cpp | xoofx/gcix | a3846a5fd69d29761d81b89a342ae47c9d2dc7fc | [
"BSD-2-Clause"
] | 1 | 2017-05-23T21:12:09.000Z | 2017-07-07T10:03:35.000Z | src/gcix.cpp | xoofx/gcix | a3846a5fd69d29761d81b89a342ae47c9d2dc7fc | [
"BSD-2-Clause"
] | 4 | 2015-01-12T05:00:16.000Z | 2016-11-28T18:23:19.000Z | // Copyright (c) 2014, Alexandre Mutel
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following
// conditions are met:
//
// 1. Redistributions of source code must retain the above copyright notice, this list of conditi... | 43.958904 | 127 | 0.776254 | xoofx |
b1f7efd27ddd31897ea543c54140095cd3898759 | 135,409 | hpp | C++ | include/crab/cfg/cfg.hpp | numairmansur/crab | 316e3946d3a4d92db638c54fbfa8fb7bee1ebbc7 | [
"Apache-2.0"
] | null | null | null | include/crab/cfg/cfg.hpp | numairmansur/crab | 316e3946d3a4d92db638c54fbfa8fb7bee1ebbc7 | [
"Apache-2.0"
] | null | null | null | include/crab/cfg/cfg.hpp | numairmansur/crab | 316e3946d3a4d92db638c54fbfa8fb7bee1ebbc7 | [
"Apache-2.0"
] | null | null | null | #pragma once
/*
* Build a CFG to interface with the abstract domains and fixpoint
* iterators.
*
* All the CFG statements are strongly typed. However, only variables
* need to be typed. The types of constants can be inferred from the
* context since they always appear together with at least one
* variable. T... | 31.31568 | 108 | 0.612862 | numairmansur |
b1f8034b32fb57a54def57533103ad1da1faa01f | 1,133 | cpp | C++ | app/src/main/cpp/speech_vad/webrtc/common_audio/signal_processing/energy.cpp | JerryChan123/vsupervad | 07f2c2d33c08f2a2a967a490a8bfcef724ca6fa9 | [
"Apache-2.0"
] | 1 | 2018-07-22T04:50:49.000Z | 2018-07-22T04:50:49.000Z | app/src/main/cpp/speech_vad/webrtc/common_audio/signal_processing/energy.cpp | JerryChan123/vsupervad | 07f2c2d33c08f2a2a967a490a8bfcef724ca6fa9 | [
"Apache-2.0"
] | null | null | null | app/src/main/cpp/speech_vad/webrtc/common_audio/signal_processing/energy.cpp | JerryChan123/vsupervad | 07f2c2d33c08f2a2a967a490a8bfcef724ca6fa9 | [
"Apache-2.0"
] | null | null | null | /*
* Copyright (c) 2011 The WebRTC project authors. All Rights Reserved.
*
* Use of this source code is governed by a BSD-style license
* that can be found in the LICENSE file in the root of the source
* tree. An additional intellectual property rights grant can be found
* in the file PATENTS. All contribut... | 28.325 | 83 | 0.668138 | JerryChan123 |
b1fa4e2049ebc3a439bc5fb74725e50cf66b16a2 | 1,243 | hpp | C++ | plugins/resource_context/include/TransferSystem.hpp | fuchstraumer/Caelestis | 9c4b76288220681bb245d84e5d7bf8c7f69b2716 | [
"MIT"
] | 5 | 2018-08-16T00:55:33.000Z | 2020-06-19T14:30:17.000Z | plugins/resource_context/include/TransferSystem.hpp | fuchstraumer/Caelestis | 9c4b76288220681bb245d84e5d7bf8c7f69b2716 | [
"MIT"
] | null | null | null | plugins/resource_context/include/TransferSystem.hpp | fuchstraumer/Caelestis | 9c4b76288220681bb245d84e5d7bf8c7f69b2716 | [
"MIT"
] | null | null | null | #pragma once
#ifndef VPSK_RESOURCE_TRANSFER_SYSTEM_HPP
#define VPSK_RESOURCE_TRANSFER_SYSTEM_HPP
#include "ForwardDecl.hpp"
#include <vulkan/vulkan.h>
#include <memory>
#include <atomic>
class ResourceTransferSystem {
ResourceTransferSystem(const ResourceTransferSystem&) = delete;
ResourceTransferSystem& oper... | 24.86 | 78 | 0.721641 | fuchstraumer |
b1fee4ba1f9992cb6c62de824edefc0b5af2cb2a | 1,898 | hpp | C++ | Sandbox/src/Scripts.hpp | HomelikeBrick42/GameEngineTest1 | 3771c65fcd910d360e19b3820b5f4d758cb83997 | [
"Apache-2.0"
] | null | null | null | Sandbox/src/Scripts.hpp | HomelikeBrick42/GameEngineTest1 | 3771c65fcd910d360e19b3820b5f4d758cb83997 | [
"Apache-2.0"
] | null | null | null | Sandbox/src/Scripts.hpp | HomelikeBrick42/GameEngineTest1 | 3771c65fcd910d360e19b3820b5f4d758cb83997 | [
"Apache-2.0"
] | null | null | null | #pragma once
#include "pch.hpp"
class RotateScript : public EntityScript
{
public:
void OnCreate() override
{
m_Transform = &GetComponent<TransformComponent>();
}
void OnUpdate(float dt) override
{
m_Transform->Rotation.x += 35.0f * dt;
m_Transform->Rotation.y += 25.0f * dt;
}
private:
TransformComponen... | 28.328358 | 152 | 0.676502 | HomelikeBrick42 |
5903df6d542fe7d4e6c25f4e9de979ade6e13c9f | 9,040 | hpp | C++ | include/kvdk/engine.hpp | iyupeng/kvdk | 35e882bf6adc5e931d57fb07c648d0478b9ea146 | [
"Apache-2.0",
"BSD-3-Clause"
] | null | null | null | include/kvdk/engine.hpp | iyupeng/kvdk | 35e882bf6adc5e931d57fb07c648d0478b9ea146 | [
"Apache-2.0",
"BSD-3-Clause"
] | null | null | null | include/kvdk/engine.hpp | iyupeng/kvdk | 35e882bf6adc5e931d57fb07c648d0478b9ea146 | [
"Apache-2.0",
"BSD-3-Clause"
] | null | null | null | /* SPDX-License-Identifier: BSD-3-Clause
* Copyright(c) 2021 Intel Corporation
*/
#pragma once
#include <cstdio>
#include <cstring>
#include <functional>
#include <memory>
#include <string>
#include <type_traits>
#include "comparator.hpp"
#include "configs.hpp"
#include "iterator.hpp"
#include "libpmemobj++/string... | 41.851852 | 80 | 0.690487 | iyupeng |
5908d5dd86cd70f79c66326a333d982fdaefd7ce | 2,089 | cpp | C++ | tests/CylinderTest.cpp | kamilwojcik/cfluxim | 64b3e3f0ed09fc1b5ba55d9e020dcb0936e9793a | [
"MIT"
] | null | null | null | tests/CylinderTest.cpp | kamilwojcik/cfluxim | 64b3e3f0ed09fc1b5ba55d9e020dcb0936e9793a | [
"MIT"
] | null | null | null | tests/CylinderTest.cpp | kamilwojcik/cfluxim | 64b3e3f0ed09fc1b5ba55d9e020dcb0936e9793a | [
"MIT"
] | null | null | null | #include <iostream>
#include <vector>
#include <iostream>
#include <cmath>
#include "../classes/Coords.h"
#include "../classes/Plane.h"
#include "../classes/Particle.h"
#include "../classes/Disk.h"
#include "../classes/Cylinder.h"
using namespace std;
int main (int argc, char *argv[])
{
Coords s1(-1,0,2);
Co... | 31.179104 | 119 | 0.608904 | kamilwojcik |
5908e706a09d4636b74a4f67124ae83f8f1bcbd1 | 16,925 | cpp | C++ | hphp/compiler/builtin_symbols.cpp | nask0/hiphop-php | dde3c9e8d8d585017c09201f98ba804bb24e4134 | [
"PHP-3.01",
"Zend-2.0"
] | 1 | 2019-04-14T20:29:41.000Z | 2019-04-14T20:29:41.000Z | hphp/compiler/builtin_symbols.cpp | nask0/hiphop-php | dde3c9e8d8d585017c09201f98ba804bb24e4134 | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | hphp/compiler/builtin_symbols.cpp | nask0/hiphop-php | dde3c9e8d8d585017c09201f98ba804bb24e4134 | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | /*
+----------------------------------------------------------------------+
| HipHop for PHP |
+----------------------------------------------------------------------+
| Copyright (c) 2010-2013 Facebook, Inc. (http://www.facebook.com) |
+---------... | 34.540816 | 79 | 0.633914 | nask0 |
590a01c84e9ba87007cb6bf8fd4a2d6a902a0813 | 1,013 | hpp | C++ | modules/world/evaluation/evaluator_goal_reached.hpp | ctonic/bark | 35591e69310a0f0c9e6e72b8a9ee71713901b12e | [
"MIT"
] | null | null | null | modules/world/evaluation/evaluator_goal_reached.hpp | ctonic/bark | 35591e69310a0f0c9e6e72b8a9ee71713901b12e | [
"MIT"
] | null | null | null | modules/world/evaluation/evaluator_goal_reached.hpp | ctonic/bark | 35591e69310a0f0c9e6e72b8a9ee71713901b12e | [
"MIT"
] | null | null | null | // Copyright (c) 2019 fortiss GmbH, Julian Bernhard, Klemens Esterle, Patrick Hart, Tobias Kessler
//
// This work is licensed under the terms of the MIT license.
// For a copy, see <https://opensource.org/licenses/MIT>.
#ifndef MODULES_WORLD_EVALUATION_EVALUATOR_GOAL_REACHED_HPP_
#define MODULES_WORLD_EVALUATION_EVAL... | 25.974359 | 121 | 0.774926 | ctonic |
590cc74f3fdfe40a9717f9c7649b2a6bda1798f8 | 1,314 | cpp | C++ | src/eg_cfr.cpp | bluedevils23/slumbot2019 | a1b65b84c89ab2eff9e2e0c16cedcfcbd479dffd | [
"MIT"
] | 80 | 2019-03-28T02:57:51.000Z | 2022-03-17T05:41:48.000Z | src/eg_cfr.cpp | bluedevils23/slumbot2019 | a1b65b84c89ab2eff9e2e0c16cedcfcbd479dffd | [
"MIT"
] | 19 | 2019-06-11T08:01:06.000Z | 2022-01-28T23:13:49.000Z | src/eg_cfr.cpp | bluedevils23/slumbot2019 | a1b65b84c89ab2eff9e2e0c16cedcfcbd479dffd | [
"MIT"
] | 28 | 2019-07-18T01:36:35.000Z | 2021-12-26T14:37:10.000Z | #include <stdio.h>
#include <stdlib.h>
#include <memory>
#include <string>
#include "betting_trees.h"
#include "board_tree.h"
#include "eg_cfr.h"
#include "hand_value_tree.h"
#include "resolving_method.h"
#include "vcfr_state.h"
#include "vcfr.h"
using std::shared_ptr;
using std::string;
// Can we skip this if no o... | 31.285714 | 99 | 0.726027 | bluedevils23 |
590d22a60501e1d3cd02fc64423c31cfe776b16c | 4,862 | hpp | C++ | sdf_fusion/src/aruco_sdffusion/include/marching_cubes.hpp | YyYyYong0331/homebrewdb | 02fb883b1630f21db6348e2605def5bd8cc6e2c0 | [
"MIT"
] | 18 | 2020-10-21T16:29:18.000Z | 2021-12-29T05:47:29.000Z | sdf_fusion/src/aruco_sdffusion/include/marching_cubes.hpp | YyYyYong0331/homebrewdb | 02fb883b1630f21db6348e2605def5bd8cc6e2c0 | [
"MIT"
] | 3 | 2021-04-16T15:03:54.000Z | 2022-01-12T07:28:52.000Z | sdf_fusion/src/aruco_sdffusion/include/marching_cubes.hpp | YyYyYong0331/homebrewdb | 02fb883b1630f21db6348e2605def5bd8cc6e2c0 | [
"MIT"
] | 5 | 2020-08-27T09:02:02.000Z | 2021-06-11T10:42:33.000Z | // Copyright (c) 2014, Tobias Holl
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without modification,
// are permitted provided that the following conditions are met:
// 1. Redistributions of source code must retain the above copyright notice,
// this list of condi... | 42.278261 | 205 | 0.716372 | YyYyYong0331 |
5911e9a9112b99c28a954b25f41c33028dc12321 | 622 | cpp | C++ | Visual Studio 2010/Projects/bjarneStroustrupC++PartI/object_oriented_examples/Chapter3Exercise2.cpp | Ziezi/Programming-Principles-and-Practice-Using-C-by-Bjarne-Stroustrup- | 6fd64801863e883508f15d16398744405f4f9e34 | [
"Unlicense"
] | 9 | 2018-10-24T15:16:47.000Z | 2021-12-14T13:53:50.000Z | Visual Studio 2010/Projects/bjarneStroustrupC++PartI/object_oriented_examples/Chapter3Exercise2.cpp | ChrisBKirov/Programming-Principles-and-Practice-Using-C-by-Bjarne-Stroustrup- | 6fd64801863e883508f15d16398744405f4f9e34 | [
"Unlicense"
] | null | null | null | Visual Studio 2010/Projects/bjarneStroustrupC++PartI/object_oriented_examples/Chapter3Exercise2.cpp | ChrisBKirov/Programming-Principles-and-Practice-Using-C-by-Bjarne-Stroustrup- | 6fd64801863e883508f15d16398744405f4f9e34 | [
"Unlicense"
] | 7 | 2018-10-29T15:30:37.000Z | 2021-01-18T15:15:09.000Z | /*
TITLE Mile to Kilometer Chapter3Exercise2.cpp
Bjarne Stroustrup "Programming: Principles and Practice Using C++"
COMMENT
Objective: Convert input data from miles to kilomemts.
Input: Requests distance in miles.
Output: Prints in kilometers.
Author: Chris B. Kirov
Date: 1.2... | 24.88 | 76 | 0.651125 | Ziezi |
59169fb74d863e790b07a4ef727d2df137898d99 | 662 | hpp | C++ | include/comm/MPCCommunicationBF.hpp | manel1874/libscapi | 8cf705162af170c04c8e2299213f52888193cabe | [
"MIT"
] | 160 | 2016-05-11T09:45:56.000Z | 2022-03-06T09:32:19.000Z | include/comm/MPCCommunicationBF.hpp | cryptobiu/libscapi | 49eee7aee9eb3544a7facb199d0a6e98097b058a | [
"MIT"
] | 57 | 2016-12-26T07:02:12.000Z | 2022-03-06T16:34:31.000Z | include/comm/MPCCommunicationBF.hpp | manel1874/libscapi | 8cf705162af170c04c8e2299213f52888193cabe | [
"MIT"
] | 67 | 2016-10-10T17:56:22.000Z | 2022-03-15T22:56:39.000Z |
#pragma once
#include <memory>
#include "../../include/comm/CommBF.hpp"
class ProtocolPartyDataBF {
private:
int id;
std::shared_ptr<CommPartyBF> channel; // Channel between this party to every other party in the protocol.
public:
ProtocolPartyDataBF() {}
ProtocolPartyDataBF(int id, std::shared_pt... | 22.827586 | 128 | 0.694864 | manel1874 |
591a407fe46a1ae0550b18781971cc3e06105957 | 11,494 | hpp | C++ | src/node/node_value.hpp | marcesengel/realm-js | 74b06e0f2aec8526056ccae1da6056e521853a44 | [
"Apache-1.1"
] | null | null | null | src/node/node_value.hpp | marcesengel/realm-js | 74b06e0f2aec8526056ccae1da6056e521853a44 | [
"Apache-1.1"
] | null | null | null | src/node/node_value.hpp | marcesengel/realm-js | 74b06e0f2aec8526056ccae1da6056e521853a44 | [
"Apache-1.1"
] | null | null | null | ////////////////////////////////////////////////////////////////////////////
//
// Copyright 2016 Realm 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/li... | 27.431981 | 115 | 0.669915 | marcesengel |
591ac9330b91be1aa8ddbe417c88455cb06c7c1b | 461 | cpp | C++ | Array/Missing Elements.cpp | kunal-j10/My-DSA | 290e56599f10d80756aa714066ee498feff58bb7 | [
"MIT"
] | 2 | 2022-01-02T07:14:16.000Z | 2022-01-02T15:43:30.000Z | Array/Missing Elements.cpp | kunal-j10/100-Days-of-Code | 8b63e4037dd48be981dec33cea62850c9e99878b | [
"MIT"
] | null | null | null | Array/Missing Elements.cpp | kunal-j10/100-Days-of-Code | 8b63e4037dd48be981dec33cea62850c9e99878b | [
"MIT"
] | 1 | 2021-03-13T04:42:31.000Z | 2021-03-13T04:42:31.000Z | // Find multiple missing elements in
// a sorted array.
// time complexity O(n^2)
#include <stdio.h>
void missing_elements(int* arr,int l)
{
int d= arr[0]-0;
for(int i=0;i<l;i++)
{
if(arr[i]-i != d)
{
while(d<arr[i]-i)
{
printf("%d\n",i+... | 15.366667 | 38 | 0.422993 | kunal-j10 |
591e6bc894cb33ccc98fa58cc4e7ba87324393da | 2,241 | hpp | C++ | include/dr_eigen/tf.hpp | delftrobotics/dr_eigen | 47022c2e1648c1b514ff493b25b3ebe54a7ddc7d | [
"Apache-2.0"
] | 1 | 2017-06-02T14:14:37.000Z | 2017-06-02T14:14:37.000Z | include/dr_eigen/tf.hpp | delftrobotics/dr_eigen | 47022c2e1648c1b514ff493b25b3ebe54a7ddc7d | [
"Apache-2.0"
] | null | null | null | include/dr_eigen/tf.hpp | delftrobotics/dr_eigen | 47022c2e1648c1b514ff493b25b3ebe54a7ddc7d | [
"Apache-2.0"
] | null | null | null | #pragma once
#include "eigen.hpp"
#include <tf/tf.h>
#include <tf/LinearMath/Matrix3x3.h>
#include <string>
namespace dr {
/// Convert a TF vector to an Eigen vector.
inline Eigen::Vector3d toEigen(tf::Vector3 const & vector) {
return Eigen::Vector3d(vector.x(), vector.y(), vector.z());
}
/// Convert a TF quate... | 29.88 | 104 | 0.709951 | delftrobotics |
59209324c48766bfb3bb83eb060573a36cff4171 | 5,908 | cpp | C++ | tests/src/QZXingTests/zxing/common/reedsolomon/ReedSolomonEncoderTests.cpp | spompelio/qzxing | cfc728583b867e157bd27e8b7c239c05a081e562 | [
"Apache-2.0"
] | 1 | 2020-04-30T18:47:46.000Z | 2020-04-30T18:47:46.000Z | tests/src/QZXingTests/zxing/common/reedsolomon/ReedSolomonEncoderTests.cpp | wqsemc/qzxing | f0a78867d697fd271528007c7b4c67e8fce75f90 | [
"Apache-2.0"
] | 1 | 2021-01-21T12:36:57.000Z | 2021-01-21T12:36:57.000Z | tests/src/QZXingTests/zxing/common/reedsolomon/ReedSolomonEncoderTests.cpp | wqsemc/qzxing | f0a78867d697fd271528007c7b4c67e8fce75f90 | [
"Apache-2.0"
] | 1 | 2020-03-01T01:16:09.000Z | 2020-03-01T01:16:09.000Z | #include "ReedSolomonEncoderTests.h"
#include "zxing/common/reedsolomon/ReedSolomonEncoder.h"
#include "zxing/common/reedsolomon/ReedSolomonDecoder.h"
namespace zxing{
namespace tests{
const int ReedSolomonTests::DECODER_RANDOM_TEST_ITERATIONS = 3;
const int ReedSolomonTests::DECODER_TEST_ITERATIONS = 10;
ReedSolomo... | 37.871795 | 156 | 0.602234 | spompelio |
59292f43548d611bc64f35dadfd7464624b3d9d3 | 4,859 | cpp | C++ | editor/editor_runtime/interface/inspectors/inspectors.cpp | ValtoForks/EtherealEngine | ab769803dcd71a61c2805afd259959b62fcdc1ff | [
"BSD-2-Clause"
] | 791 | 2016-11-04T14:13:41.000Z | 2022-03-20T20:47:31.000Z | editor/editor_runtime/interface/inspectors/inspectors.cpp | ValtoForks/EtherealEngine | ab769803dcd71a61c2805afd259959b62fcdc1ff | [
"BSD-2-Clause"
] | 28 | 2016-12-01T05:59:30.000Z | 2021-03-20T09:49:26.000Z | editor/editor_runtime/interface/inspectors/inspectors.cpp | ValtoForks/EtherealEngine | ab769803dcd71a61c2805afd259959b62fcdc1ff | [
"BSD-2-Clause"
] | 151 | 2016-12-21T09:44:43.000Z | 2022-03-31T13:42:18.000Z | #include "inspectors.h"
#include <unordered_map>
#include <vector>
struct inspector_registry
{
inspector_registry()
{
auto inspector_types = rttr::type::get<inspector>().get_derived_classes();
for(auto& inspector_type : inspector_types)
{
auto inspected_type_var = inspector_type.get_metadata("inspected_type... | 23.818627 | 98 | 0.69397 | ValtoForks |
592b585d70bf8c847a3ad750a9ec269831d2fd42 | 1,021 | cpp | C++ | source/vst3/common/param_id.cpp | hansen-audio/plugin-base | d2e6ae186b3592d72c408c5b0df03e731e602fcb | [
"MIT"
] | null | null | null | source/vst3/common/param_id.cpp | hansen-audio/plugin-base | d2e6ae186b3592d72c408c5b0df03e731e602fcb | [
"MIT"
] | null | null | null | source/vst3/common/param_id.cpp | hansen-audio/plugin-base | d2e6ae186b3592d72c408c5b0df03e731e602fcb | [
"MIT"
] | null | null | null | // Copyright(c) 2021 Hansen Audio.
#include "vst3/common/param_id.h"
#include "ha/audio_modules/types.h"
#include "ha/plugin_base/core/types.h"
#include <assert.h>
namespace ha::plugin_base::vst3 {
//-----------------------------------------------------------------------------
constexpr i32 MASK = 0xFFFF;
const... | 34.033333 | 79 | 0.479922 | hansen-audio |
592c6f0e23b09abc7803f5bc09aada054f11a65c | 1,831 | hpp | C++ | inst/include/barry/barraycol-bones.hpp | USCbiostats/geese | 0af2ade66a7da42737be613f6b8129347dcae4b2 | [
"MIT"
] | null | null | null | inst/include/barry/barraycol-bones.hpp | USCbiostats/geese | 0af2ade66a7da42737be613f6b8129347dcae4b2 | [
"MIT"
] | null | null | null | inst/include/barry/barraycol-bones.hpp | USCbiostats/geese | 0af2ade66a7da42737be613f6b8129347dcae4b2 | [
"MIT"
] | null | null | null | #include "typedefs.hpp"
#ifndef BARRY_BARRAYCOL_BONES_HPP
#define BARRY_BARRAYCOL_BONES_HPP 1
template <typename Cell_Type = bool, typename Data_Type = bool>
class BArrayCol {
private:
BArray<Cell_Type,Data_Type> * Array;
std::vector< Cell<Cell_Type> > iter_vec;
uint i;
public:
BArrayCol(BArr... | 25.430556 | 95 | 0.635718 | USCbiostats |
5936739b06da6b8da43172168cf93493d7cab041 | 680 | cpp | C++ | library/test/log_levels_test.cpp | diarkia124/SJSU-Dev2 | 3385f034690d281c2720e17b0a6bdbe51a65113c | [
"Apache-2.0"
] | 1 | 2019-11-25T20:31:07.000Z | 2019-11-25T20:31:07.000Z | library/test/log_levels_test.cpp | diarkia124/SJSU-Dev2 | 3385f034690d281c2720e17b0a6bdbe51a65113c | [
"Apache-2.0"
] | null | null | null | library/test/log_levels_test.cpp | diarkia124/SJSU-Dev2 | 3385f034690d281c2720e17b0a6bdbe51a65113c | [
"Apache-2.0"
] | null | null | null | #include "log_levels.hpp"
#include "L4_Testing/testing_frameworks.hpp"
namespace sjsu
{
TEST_CASE("Log Levels Test", "[log_levels]")
{
static_assert(SJ2_LOG_LEVEL_NONESET == 00,
"SJ2_LOG_LEVEL_NONESET must be equal to 00");
static_assert(SJ2_LOG_LEVEL_DEBUG == 10,
"SJ2_LOG_LEVEL_DEB... | 34 | 61 | 0.679412 | diarkia124 |
5938c29ae3891c38b55c2b6286ee60ff69468048 | 1,134 | cpp | C++ | gamegio-library/src/gamegio/ScreenRectCbor.cpp | tril0byte/HGamer3D | 7979c67d9b4672a5b2d1a50320a6d47b1a97ff05 | [
"Apache-2.0"
] | 27 | 2015-06-08T16:45:47.000Z | 2022-02-22T14:40:52.000Z | gamegio-library/src/gamegio/ScreenRectCbor.cpp | tril0byte/HGamer3D | 7979c67d9b4672a5b2d1a50320a6d47b1a97ff05 | [
"Apache-2.0"
] | 18 | 2015-04-20T20:42:02.000Z | 2020-12-11T03:46:17.000Z | gamegio-library/src/gamegio/ScreenRectCbor.cpp | tril0byte/HGamer3D | 7979c67d9b4672a5b2d1a50320a6d47b1a97ff05 | [
"Apache-2.0"
] | 4 | 2017-06-20T13:24:18.000Z | 2021-10-07T19:18:03.000Z | #include "ScreenRectCbor.hpp"
namespace cbd {
void readScreenRect(CborValue *it0, ScreenRect *screenRect)
{
CborValue it1; CborValue* it = &it1; cbor_value_enter_container(it0, it);
{ int i; cbor_value_get_int(it, &i); screenRect->x = (int32_t)i;} cbor_value_advance_fixed(it);
{ int i; cbor_value_get_int(... | 39.103448 | 104 | 0.739859 | tril0byte |
59390f938e094dfd893ebcb4119efbd06cd08efe | 1,688 | cpp | C++ | tests/kernel_bundle/has_kernel_bundle_zero_device_dev_and_k_name.cpp | AidanBeltonS/SYCL-CTS | f8d877560d82e2e4a7eacefe9d252178a7d602c1 | [
"Apache-2.0"
] | null | null | null | tests/kernel_bundle/has_kernel_bundle_zero_device_dev_and_k_name.cpp | AidanBeltonS/SYCL-CTS | f8d877560d82e2e4a7eacefe9d252178a7d602c1 | [
"Apache-2.0"
] | null | null | null | tests/kernel_bundle/has_kernel_bundle_zero_device_dev_and_k_name.cpp | AidanBeltonS/SYCL-CTS | f8d877560d82e2e4a7eacefe9d252178a7d602c1 | [
"Apache-2.0"
] | null | null | null | /*******************************************************************************
//
// SYCL 2020 Conformance Test Suite
//
// This test calls sycl::has_kernel_bundle<kernel_name, all bundle_state>(
// context, devices) with zero device.
//
// The test verifies that the exception with sycl::errc::invalid was thrown.... | 33.76 | 80 | 0.629739 | AidanBeltonS |
593991826f55466d7662d7f3efc203d23b568c74 | 429 | hpp | C++ | CTCWordBeamSearch-master/cpp/HashFunction.hpp | brucegrapes/htr | 9f8f07173ccc740dd8a4dfc7e8038abe36664756 | [
"MIT"
] | 488 | 2018-03-01T11:18:26.000Z | 2022-03-10T09:29:32.000Z | CTCWordBeamSearch-master/cpp/HashFunction.hpp | brucegrapes/htr | 9f8f07173ccc740dd8a4dfc7e8038abe36664756 | [
"MIT"
] | 60 | 2018-03-10T18:37:51.000Z | 2022-03-30T19:37:18.000Z | CTCWordBeamSearch-master/cpp/HashFunction.hpp | brucegrapes/htr | 9f8f07173ccc740dd8a4dfc7e8038abe36664756 | [
"MIT"
] | 152 | 2018-03-01T11:18:25.000Z | 2022-03-08T23:37:46.000Z | #pragma once
#include <vector>
#include <stdint.h>
#include <cstddef>
// calculate hash for a beam text
struct HashFunction
{
size_t operator()(const std::vector<uint32_t>& text) const
{
// taken from: https://stackoverflow.com/questions/20511347/a-good-hash-function-for-a-vector
std::size_t res = text.size();
... | 20.428571 | 95 | 0.655012 | brucegrapes |
593a1f91f15339463a8b0864904009ad6e408fda | 831 | cpp | C++ | engine/source/unit_tests/MessageBuffer_test.cpp | sidav/shadow-of-the-wyrm | 747afdeebed885b1a4f7ab42f04f9f756afd3e52 | [
"MIT"
] | null | null | null | engine/source/unit_tests/MessageBuffer_test.cpp | sidav/shadow-of-the-wyrm | 747afdeebed885b1a4f7ab42f04f9f756afd3e52 | [
"MIT"
] | null | null | null | engine/source/unit_tests/MessageBuffer_test.cpp | sidav/shadow-of-the-wyrm | 747afdeebed885b1a4f7ab42f04f9f756afd3e52 | [
"MIT"
] | null | null | null | #include "gtest/gtest.h"
TEST(SW_Engine_MessageBuffer, insertion)
{
MessageBuffer mb(3);
mb.add_message("a");
mb.add_message("b");
mb.add_message("c");
EXPECT_EQ("a", mb.get_message(2));
mb.add_message("d");
mb.add_message("e");
// "a" and "b" should have been removed:
EXPECT_EQ("e", mb.get_messa... | 17.680851 | 81 | 0.689531 | sidav |
593e252490d31c2f904f3061e76ede8464391408 | 4,591 | cpp | C++ | mockcpp/src/MethodIndiceChecker.cpp | danncy/authz | 489e37ed2b270272bca3ed8ca915d271af3d1886 | [
"Apache-2.0"
] | 1 | 2020-02-06T07:10:19.000Z | 2020-02-06T07:10:19.000Z | mockcpp/src/MethodIndiceChecker.cpp | danncy/authz | 489e37ed2b270272bca3ed8ca915d271af3d1886 | [
"Apache-2.0"
] | null | null | null | mockcpp/src/MethodIndiceChecker.cpp | danncy/authz | 489e37ed2b270272bca3ed8ca915d271af3d1886 | [
"Apache-2.0"
] | null | null | null | /***
mockcpp is a generic C/C++ mock framework.
Copyright (C) <2009> <Darwin Yuan: darwin.yuan@gmail.com>
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 ... | 24.682796 | 83 | 0.49902 | danncy |
593e2d7b9812e8b656c1954f10ab2cff3db3d338 | 617 | cpp | C++ | src/weakvertices.cpp | JulianNeeleman/kattis | 035c1113ffb397c2d8538af8ba16b7ee4160393d | [
"MIT"
] | null | null | null | src/weakvertices.cpp | JulianNeeleman/kattis | 035c1113ffb397c2d8538af8ba16b7ee4160393d | [
"MIT"
] | 1 | 2017-05-16T15:57:29.000Z | 2017-05-17T19:43:56.000Z | src/weakvertices.cpp | JulianNeeleman/kattis | 035c1113ffb397c2d8538af8ba16b7ee4160393d | [
"MIT"
] | null | null | null | #include <algorithm>
#include <iostream>
#include <map>
#include <queue>
#include <set>
#include <vector>
using namespace std;
int main() {
while(true) {
int n;
cin >> n;
if(n == -1) break;
vector<vector<int> > adj(n, vector<int>(n));
for(int i = 0; i < n; i++) for(int j = 0; j < n; j++) {
cin >> adj... | 17.628571 | 62 | 0.491086 | JulianNeeleman |
86c8ed9be3f35d5132beba342e57c8911c76ba91 | 18,626 | cc | C++ | Engine/addons/serialization/xmserialize.cc | BikkyS/DreamEngine | 47da4e22c65188c72f44591f6a96505d8ba5f5f3 | [
"MIT"
] | 26 | 2015-01-15T12:57:40.000Z | 2022-02-16T10:07:12.000Z | Engine/addons/serialization/xmserialize.cc | BikkyS/DreamEngine | 47da4e22c65188c72f44591f6a96505d8ba5f5f3 | [
"MIT"
] | null | null | null | Engine/addons/serialization/xmserialize.cc | BikkyS/DreamEngine | 47da4e22c65188c72f44591f6a96505d8ba5f5f3 | [
"MIT"
] | 17 | 2015-02-18T07:51:31.000Z | 2020-06-01T01:10:12.000Z | /****************************************************************************
Copyright (c) 2011-2013,WebJet Business Division,CYOU
http://www.genesis-3d.com.cn
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... | 30.685338 | 121 | 0.621228 | BikkyS |
86cc89640429c75a61a0922b385593b9ecf943d2 | 4,339 | hpp | C++ | library/Java/Lang/Thread/Thread.hpp | VietAnh14/native | 8f9f23c2ff21ac14c69745556e04aaec36dbcd13 | [
"Zlib"
] | 1 | 2018-12-12T13:04:09.000Z | 2018-12-12T13:04:09.000Z | library/Java/Lang/Thread/Thread.hpp | vothaosontlu/native | 2b8d062ce6db66dfdaa8b17087ba32455c9531e8 | [
"Zlib"
] | null | null | null | library/Java/Lang/Thread/Thread.hpp | vothaosontlu/native | 2b8d062ce6db66dfdaa8b17087ba32455c9531e8 | [
"Zlib"
] | null | null | null | /**
* Copyright 2017 Food Tiny Project. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* Redistributions of source code must retain the above copyright
* notice, this list of conditions an... | 38.39823 | 94 | 0.542982 | VietAnh14 |
86ccdfbaaee8b9caa75b7a905b39fe2995121ad5 | 9,235 | cpp | C++ | lib/hash/HashFactory.cpp | wtmitchell/bloom_filter_encoding-graph-attack | 2a4d61670b37f29923f872c5e6acff7ac358c594 | [
"Apache-2.0"
] | null | null | null | lib/hash/HashFactory.cpp | wtmitchell/bloom_filter_encoding-graph-attack | 2a4d61670b37f29923f872c5e6acff7ac358c594 | [
"Apache-2.0"
] | null | null | null | lib/hash/HashFactory.cpp | wtmitchell/bloom_filter_encoding-graph-attack | 2a4d61670b37f29923f872c5e6acff7ac358c594 | [
"Apache-2.0"
] | null | null | null | //===-- hash/HashFactory.cpp - Factory for Hashes ------------*- C++ -*----===//
//
// Copyright 2017 Will Mitchell
//
// 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.apa... | 31.844828 | 80 | 0.695398 | wtmitchell |
86d34f19acf86e5abd5a5a08ed59fe67ba1119a2 | 149 | cpp | C++ | examples/reference-EXPECT_NE_UNLABELED.cpp | gcross/Illuminate | 862f665ccd4b67411bc332f534e1655585750823 | [
"0BSD"
] | null | null | null | examples/reference-EXPECT_NE_UNLABELED.cpp | gcross/Illuminate | 862f665ccd4b67411bc332f534e1655585750823 | [
"0BSD"
] | null | null | null | examples/reference-EXPECT_NE_UNLABELED.cpp | gcross/Illuminate | 862f665ccd4b67411bc332f534e1655585750823 | [
"0BSD"
] | null | null | null | #include "illuminate.hpp"
TEST_CASE(EXPECT_NE_UNLABELED) {
EXPECT_NE_UNLABELED(1,2)
EXPECT_NE_UNLABELED(1,1)
EXPECT_NE_UNLABELED(0,0)
}
| 18.625 | 32 | 0.744966 | gcross |
86d447df69a725d6119ea6ce6c3971a9c9558a07 | 447 | cpp | C++ | Tudat/Astrodynamics/Ephemerides/tabulatedRotationalEphemeris.cpp | sebranchett/tudat | 24e5f3cc85c250fcbed0aac37f026c1dd7fd6c44 | [
"BSD-3-Clause"
] | null | null | null | Tudat/Astrodynamics/Ephemerides/tabulatedRotationalEphemeris.cpp | sebranchett/tudat | 24e5f3cc85c250fcbed0aac37f026c1dd7fd6c44 | [
"BSD-3-Clause"
] | null | null | null | Tudat/Astrodynamics/Ephemerides/tabulatedRotationalEphemeris.cpp | sebranchett/tudat | 24e5f3cc85c250fcbed0aac37f026c1dd7fd6c44 | [
"BSD-3-Clause"
] | null | null | null | #include "Tudat/Astrodynamics/Ephemerides/tabulatedRotationalEphemeris.h"
namespace tudat
{
namespace ephemerides
{
template class TabulatedRotationalEphemeris< double, double >;
#if( BUILD_WITH_EXTENDED_PRECISION_PROPAGATION_TOOLS )
template class TabulatedRotationalEphemeris< long double, double >;
template class... | 21.285714 | 73 | 0.825503 | sebranchett |
86d44b0fc5aa8895578c902c3bcd52f9be936a28 | 10,204 | cpp | C++ | src/hlld.cpp | mhdproject/mhdvanleer | 63d3a3f94ae2265dd78bc05b23fa3a6cbc950309 | [
"MIT"
] | 5 | 2018-12-31T17:40:48.000Z | 2021-06-17T22:10:25.000Z | src/hlld.cpp | mhdproject/mhdvanleer | 63d3a3f94ae2265dd78bc05b23fa3a6cbc950309 | [
"MIT"
] | 2 | 2017-07-12T18:45:00.000Z | 2017-07-23T10:05:03.000Z | src/hlld.cpp | garethcmurphy/mhdvanleer | 63d3a3f94ae2265dd78bc05b23fa3a6cbc950309 | [
"MIT"
] | 1 | 2017-11-03T19:47:55.000Z | 2017-11-03T19:47:55.000Z | #include "riemann.h"
#define DEBUG_HLLD
#define DEBUG_EV
#undef DEBUG_HLLD
int
Hlld::solver(
const double *leftstate,
const double *rightstate,
double *fhlld
) {
ofstream outFile;
double gammag = 1.666666666666667;
double rl = leftstate[0];
double ul = leftstate[1];
double vl = leftstate[2];
d... | 25.133005 | 119 | 0.521952 | mhdproject |
86d50f5da2ea09c2f818f43f1359cdb92855b887 | 1,344 | cpp | C++ | CodeJam-3.cpp | ankiiitraj/questionsSolved | 8452b120935a9c3d808b45f27dcdc05700d902fc | [
"MIT"
] | null | null | null | CodeJam-3.cpp | ankiiitraj/questionsSolved | 8452b120935a9c3d808b45f27dcdc05700d902fc | [
"MIT"
] | 1 | 2020-02-24T19:45:57.000Z | 2020-02-24T19:45:57.000Z | CodeJam-3.cpp | ankiiitraj/questionsSolved | 8452b120935a9c3d808b45f27dcdc05700d902fc | [
"MIT"
] | null | null | null | #include<bits/stdc++.h>
using namespace std;
struct triple{
int first, second, third;
};
bool cmp(triple &t1, triple &t2){
return t1.first < t2.first;
}
int main()
{
// #ifndef ONLINE_JUDGE
// freopen("ip.txt", "r", stdin);
// freopen("op.txt", "w", stdout);
// #endif
int t; cin >> t;
for(int... | 24 | 69 | 0.374256 | ankiiitraj |
86d68fd11b1a624982633bcdf44f25a30c060b32 | 4,314 | cpp | C++ | chan_src/variant.cpp | bggd/mruby-channel | 4f4bced87139b46e17029fc815fd076ed9fd8d77 | [
"MIT"
] | 1 | 2018-02-27T06:56:46.000Z | 2018-02-27T06:56:46.000Z | chan_src/variant.cpp | bggd/mruby-channel | 4f4bced87139b46e17029fc815fd076ed9fd8d77 | [
"MIT"
] | 2 | 2017-07-19T05:28:33.000Z | 2018-02-12T06:32:51.000Z | chan_src/variant.cpp | bggd/mruby-channel | 4f4bced87139b46e17029fc815fd076ed9fd8d77 | [
"MIT"
] | 2 | 2017-07-07T20:57:08.000Z | 2018-02-11T03:18:41.000Z | Variant::Variant()
{
this->type = Variant::Type::UNKNOWN;
}
Variant::~Variant()
{
}
Variant::Variant(const Variant& other)
{
*this = other;
}
Variant& Variant::operator=(const Variant& other)
{
this->type = other.type;
this->data = other.data;
return *this;
}
Variant::Variant(bool boolean)
{
this->type ... | 26.62963 | 99 | 0.62726 | bggd |
86d6daa14c85e5f3c63dc40fa88cfe14b9dd8ec8 | 1,588 | hh | C++ | SDL2pp/Window.hh | Ritan/libSDL2pp | 466d9a1683c155ae7cabf67870983e0fe04574ee | [
"Zlib"
] | null | null | null | SDL2pp/Window.hh | Ritan/libSDL2pp | 466d9a1683c155ae7cabf67870983e0fe04574ee | [
"Zlib"
] | null | null | null | SDL2pp/Window.hh | Ritan/libSDL2pp | 466d9a1683c155ae7cabf67870983e0fe04574ee | [
"Zlib"
] | null | null | null | /*
libSDL2pp - C++ wrapper for libSDL2
Copyright (C) 2013 Dmitry Marakasov <amdmi3@amdmi3.ru>
This software is provided 'as-is', without any express or implied
warranty. In no event will the authors be held liable for any damages
arising from the use of this software.
Permission is granted to anyone to u... | 26.466667 | 76 | 0.743073 | Ritan |
86d7ed6b2efe9c89259ace51c50a968093168c11 | 6,869 | cpp | C++ | linklist.cpp | musharaf715/Student-Record-System | ad6c390da3cf02496efd1b2fd261e834bda3cf2d | [
"MIT"
] | null | null | null | linklist.cpp | musharaf715/Student-Record-System | ad6c390da3cf02496efd1b2fd261e834bda3cf2d | [
"MIT"
] | null | null | null | linklist.cpp | musharaf715/Student-Record-System | ad6c390da3cf02496efd1b2fd261e834bda3cf2d | [
"MIT"
] | null | null | null | #include "Linklist.h"
//template<class T>
void Linklist::set_h(Node *h)
{
head = h;
}
//template<class T>
Node* Linklist::get_h()
{
return head;
}
//template<class T>
Linklist::Linklist()
{
head = NULL;
}
//template<class T>
Linklist::~Linklist()
{
}
//*************************INSERTI... | 19.294944 | 86 | 0.477071 | musharaf715 |
86d8b7115d56c293666577d4ba3835f2234c6f04 | 3,903 | cpp | C++ | timer_interrupts/main.cpp | baserkandehir/mbed | 68f576ecd03c157215ff5a12c2750f5b6c039d15 | [
"MIT"
] | 1 | 2015-09-04T14:55:14.000Z | 2015-09-04T14:55:14.000Z | timer_interrupts/main.cpp | baserkandehir/mbed | 68f576ecd03c157215ff5a12c2750f5b6c039d15 | [
"MIT"
] | null | null | null | timer_interrupts/main.cpp | baserkandehir/mbed | 68f576ecd03c157215ff5a12c2750f5b6c039d15 | [
"MIT"
] | null | null | null | /* Interrupt, timer and ticker example on LPC1768
*
* @author: Baser Kandehir
* @date: July 9, 2015
* @license: MIT license
*
* Copyright (c) 2015, Baser Kandehir, baser.kandehir@ieee.metu.edu.tr
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this ... | 41.084211 | 110 | 0.676147 | baserkandehir |
86db1998bc572521988324c3d3fcd0e36385d3bd | 1,756 | cpp | C++ | TheLastRPG/Source/TheLastRPG/Private/JG/Actor/JG02_SpawnActor.cpp | brightface/Portfolio_UE4 | c0a7abeb3d671e606a33e830382be0e97d871520 | [
"MIT"
] | 1 | 2022-01-06T18:17:45.000Z | 2022-01-06T18:17:45.000Z | TheLastRPG/Source/TheLastRPG/Private/JG/Actor/JG02_SpawnActor.cpp | brightface/Portfolio_UE4 | c0a7abeb3d671e606a33e830382be0e97d871520 | [
"MIT"
] | null | null | null | TheLastRPG/Source/TheLastRPG/Private/JG/Actor/JG02_SpawnActor.cpp | brightface/Portfolio_UE4 | c0a7abeb3d671e606a33e830382be0e97d871520 | [
"MIT"
] | null | null | null |
#include "JG/Actor/JG02_SpawnActor.h"
#include "Components/StaticMeshComponent.h"
#include "JG/JG_Global.h"
#include "Materials/MaterialInstanceConstant.h"
#include "Materials/MaterialInstanceDynamic.h"
// Sets default values
AJG02_SpawnActor::AJG02_SpawnActor()
{
Mesh = CreateDefaultSubobject<UStaticMeshComponent>(... | 33.132075 | 162 | 0.785308 | brightface |
86e2e5021b7ad0a11286076f90d1e975f3882680 | 4,405 | cc | C++ | tests/TestTetMesh.cc | pbedenbaugh/MeshFEM | 742d609d4851582ffb9c5616774fc2ef489e2f88 | [
"MIT"
] | 19 | 2020-10-21T10:05:17.000Z | 2022-03-20T13:41:50.000Z | tests/TestTetMesh.cc | pbedenbaugh/MeshFEM | 742d609d4851582ffb9c5616774fc2ef489e2f88 | [
"MIT"
] | 4 | 2021-01-01T15:58:15.000Z | 2021-09-19T03:31:09.000Z | tests/TestTetMesh.cc | pbedenbaugh/MeshFEM | 742d609d4851582ffb9c5616774fc2ef489e2f88 | [
"MIT"
] | 4 | 2020-10-05T09:01:50.000Z | 2022-01-11T03:02:39.000Z | #include <iostream>
#include "../TetMesh.hh"
#include "../MeshIO.hh"
#include "../GlobalBenchmark.hh"
#include <vector>
#include <queue>
using namespace std;
template<typename Mesh>
ostream &operator<<(ostream &os, _TetMeshHandleDetail::HEHandle<Mesh> h) {
os << h.index() << ": " << h.tail().volumeVertex().index... | 35.524194 | 94 | 0.529625 | pbedenbaugh |
86e40946d231e2c673b7e6cb0ead3d9a79c77463 | 11,469 | hpp | C++ | flite/lang/us_slt/us_slt_spamf0_accent.hpp | Barath-Kannan/flite | 236f91a9a1e60fd25f1deed6d48022567cd7100f | [
"Apache-2.0"
] | 7 | 2017-12-10T23:02:22.000Z | 2021-08-05T21:12:11.000Z | flite/lang/us_slt/us_slt_spamf0_accent.hpp | Barath-Kannan/flite | 236f91a9a1e60fd25f1deed6d48022567cd7100f | [
"Apache-2.0"
] | null | null | null | flite/lang/us_slt/us_slt_spamf0_accent.hpp | Barath-Kannan/flite | 236f91a9a1e60fd25f1deed6d48022567cd7100f | [
"Apache-2.0"
] | 3 | 2018-10-28T03:47:09.000Z | 2020-06-04T08:54:23.000Z | #pragma once
#include "flite/utils/val_const.hpp"
DEF_STATIC_CONST_VAL_STRING(val_0000,"3");
DEF_STATIC_CONST_VAL_FLOAT(val_0001,0.367500);
DEF_STATIC_CONST_VAL_FLOAT(val_0002,0.270500);
DEF_STATIC_CONST_VAL_FLOAT(val_0003,1.200000);
DEF_STATIC_CONST_VAL_FLOAT(val_0004,0.000000);
#define CTNODE_cmu_us_slt_spamf0_acce... | 48.189076 | 51 | 0.892144 | Barath-Kannan |
86e88885f7c14f15bd8e7fd869841c5a2ee2ec9f | 8,736 | cpp | C++ | bgi/4.cpp | forsakenMystery/BoomShine | e1c91662524b22fe8b0b759bcb70d401cc44e295 | [
"Apache-2.0"
] | null | null | null | bgi/4.cpp | forsakenMystery/BoomShine | e1c91662524b22fe8b0b759bcb70d401cc44e295 | [
"Apache-2.0"
] | null | null | null | bgi/4.cpp | forsakenMystery/BoomShine | e1c91662524b22fe8b0b759bcb70d401cc44e295 | [
"Apache-2.0"
] | null | null | null | /*
project boomshine
by: hamed khashechi
email:hkhashechi@yahoo.com
9318953
Copy right!
all rights reserved!
*/
/*
#include "graphics.h"
#include<stdio.h>
#include<time.h>
#include"stdlib.h"
#include"math.h"
#include<Windows.h>
int width=400;
int height=560;
int counter=0;
struct Marbles{
int old_r... | 29.414141 | 207 | 0.622253 | forsakenMystery |
86e9c483b519ca2a80ce752d36db16abbe5b5310 | 1,428 | cpp | C++ | lectures/9-RecursiveBacktracking1/code/reducible/src/reducible.cpp | tofergregg/cs106X-website-spring-2017 | 1c1f4bab672248a77bdb881e818dee49b48c0070 | [
"MIT"
] | null | null | null | lectures/9-RecursiveBacktracking1/code/reducible/src/reducible.cpp | tofergregg/cs106X-website-spring-2017 | 1c1f4bab672248a77bdb881e818dee49b48c0070 | [
"MIT"
] | null | null | null | lectures/9-RecursiveBacktracking1/code/reducible/src/reducible.cpp | tofergregg/cs106X-website-spring-2017 | 1c1f4bab672248a77bdb881e818dee49b48c0070 | [
"MIT"
] | null | null | null | /*
* CS 106X, Chris Gregg
* This program demonstrates how to perform recursion on a
* decision tree.
*/
#include <fstream>
#include <iostream>
#include <iomanip>
#include "console.h"
#include "lexicon.h"
#include "vector.h"
#include "lexicon.h"
using namespace std;
// function prototypes
bool reducible(Lexicon &... | 21.313433 | 58 | 0.567927 | tofergregg |
86ebda96ae8fcbc1a93dafea7d619c20437a67cb | 263 | cpp | C++ | single_class_main.cpp | pysogge/cpp_unix_hello_world | 22cf46d53e4032d71fce365fef09072453566973 | [
"MIT"
] | 1 | 2022-02-21T14:44:58.000Z | 2022-02-21T14:44:58.000Z | single_class_main.cpp | pysogge/cpp_unix_hello_world | 22cf46d53e4032d71fce365fef09072453566973 | [
"MIT"
] | null | null | null | single_class_main.cpp | pysogge/cpp_unix_hello_world | 22cf46d53e4032d71fce365fef09072453566973 | [
"MIT"
] | null | null | null | // single_class_main.cpp
#include <iostream>
#include "single_class.h"
using namespace std;
int main(){
int a, b;
cin >> a >> b;
singleClass mySingleClass = singleClass(a, b);
cout << "Sum of mySingleClass = " << mySingleClass.getSum() << endl;
} | 23.909091 | 72 | 0.65019 | pysogge |
86f03a90ff0a976e8ba3bc9bbcabf63f94952523 | 40,498 | cc | C++ | tests/mcbp/mcbp_test_subdoc.cc | rualso/kv_engine | 17680c38a77d3a67fda55f763cc2631f924ed42d | [
"BSD-3-Clause"
] | null | null | null | tests/mcbp/mcbp_test_subdoc.cc | rualso/kv_engine | 17680c38a77d3a67fda55f763cc2631f924ed42d | [
"BSD-3-Clause"
] | null | null | null | tests/mcbp/mcbp_test_subdoc.cc | rualso/kv_engine | 17680c38a77d3a67fda55f763cc2631f924ed42d | [
"BSD-3-Clause"
] | null | null | null | /* -*- Mode: C++; tab-width: 4; c-basic-offset: 4; indent-tabs-mode: nil -*- */
/*
* Copyright 2015 Couchbase, 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
*
* ... | 40.216485 | 80 | 0.620327 | rualso |
86f1a8c4649ee17f5ce41742bbcb9c5fb830f231 | 2,068 | hpp | C++ | include/boost/hana/fwd/prefix.hpp | qicosmos/hana | b0f8cf2bf19d491b7b739dcb7b8d7497b0e5829f | [
"BSL-1.0"
] | 2 | 2015-12-06T05:10:14.000Z | 2021-09-05T21:48:27.000Z | include/boost/hana/fwd/prefix.hpp | qicosmos/hana | b0f8cf2bf19d491b7b739dcb7b8d7497b0e5829f | [
"BSL-1.0"
] | null | null | null | include/boost/hana/fwd/prefix.hpp | qicosmos/hana | b0f8cf2bf19d491b7b739dcb7b8d7497b0e5829f | [
"BSL-1.0"
] | 1 | 2017-06-06T10:50:17.000Z | 2017-06-06T10:50:17.000Z | /*!
@file
Forward declares `boost::hana::prefix`.
@copyright Louis Dionne 2015
Distributed under the Boost Software License, Version 1.0.
(See accompanying file LICENSE.md or copy at http://boost.org/LICENSE_1_0.txt)
*/
#ifndef BOOST_HANA_FWD_PREFIX_HPP
#define BOOST_HANA_FWD_PREFIX_HPP
#include <boost/hana/core/wh... | 28.722222 | 78 | 0.602515 | qicosmos |
86f2d8f36889c45ced777080693fcbeb64ca0e7e | 3,794 | cpp | C++ | src/gui/widgets/controls/sliderwitheditint2.cpp | mhough/braingl | 53e2078adc10731ee62feec11dcb767c4c6c0d35 | [
"MIT"
] | 5 | 2016-03-17T07:02:11.000Z | 2021-12-12T14:43:58.000Z | src/gui/widgets/controls/sliderwitheditint2.cpp | mhough/braingl | 53e2078adc10731ee62feec11dcb767c4c6c0d35 | [
"MIT"
] | null | null | null | src/gui/widgets/controls/sliderwitheditint2.cpp | mhough/braingl | 53e2078adc10731ee62feec11dcb767c4c6c0d35 | [
"MIT"
] | 3 | 2015-10-29T15:21:01.000Z | 2020-11-25T09:41:21.000Z | /*
* sliderwithedit.cpp
*
* Created on: 15.05.2012
* @author Ralph Schurade
*/
#include "sliderwitheditint2.h"
#include "myslider.h"
#include <QLineEdit>
#include <QLabel>
#include <QDebug>
#include <QPushButton>
#include <QFontMetrics>
#include <QHBoxLayout>
SliderWithEditInt2::SliderWithEditI... | 25.463087 | 91 | 0.590142 | mhough |
86f358fdc5e1021b219086a49a3f6a770faf5410 | 130 | cpp | C++ | 10469 To Carry or not to Carry.cpp | zihadboss/UVA-Solutions | 020fdcb09da79dc0a0411b04026ce3617c09cd27 | [
"Apache-2.0"
] | 86 | 2016-01-20T11:36:50.000Z | 2022-03-06T19:43:14.000Z | 10469 To Carry or not to Carry.cpp | Mehedishihab/UVA-Solutions | 474fe3d9d9ba574b97fd40ca5abb22ada95654a1 | [
"Apache-2.0"
] | null | null | null | 10469 To Carry or not to Carry.cpp | Mehedishihab/UVA-Solutions | 474fe3d9d9ba574b97fd40ca5abb22ada95654a1 | [
"Apache-2.0"
] | 113 | 2015-12-04T06:40:57.000Z | 2022-02-11T02:14:28.000Z | #include <iostream>
using namespace std;
int main()
{
int i, j;
while (cin >> i >> j)
cout << (i ^ j) << '\n';
} | 13 | 32 | 0.469231 | zihadboss |
86fa3d16679dadcf38a215cf3b52c185182fba88 | 695 | cpp | C++ | Projects/14 Predator Prey/includes/wall.cpp | Yonas-A/CS-003A | e3c1da7d9c6f8b3e5695741156fcfa22ec6390f0 | [
"MIT"
] | null | null | null | Projects/14 Predator Prey/includes/wall.cpp | Yonas-A/CS-003A | e3c1da7d9c6f8b3e5695741156fcfa22ec6390f0 | [
"MIT"
] | null | null | null | Projects/14 Predator Prey/includes/wall.cpp | Yonas-A/CS-003A | e3c1da7d9c6f8b3e5695741156fcfa22ec6390f0 | [
"MIT"
] | null | null | null | #include "../includes/wall.h"
#include <iostream>
#include "../includes/creature.h"
Wall::Wall(Location l) : Creature(l) {
}
///=========================================
/// Prey::virtual functions
///=========================================
void Wall::breed(Creature* /*grid*/[][SIZE]) {
// intent... | 21.71875 | 63 | 0.533813 | Yonas-A |
86fa54464778f64b1e297927bbd080efafd5b1aa | 494 | hpp | C++ | toolkit/toolkit/visgoth/collectd.hpp | joshblum/eeg-toolkit | 20b54ad0c511480626b0757bb1c56d4b541fca20 | [
"MIT"
] | 1 | 2016-04-20T23:22:07.000Z | 2016-04-20T23:22:07.000Z | toolkit/toolkit/visgoth/collectd.hpp | joshblum/eeg-toolkit | 20b54ad0c511480626b0757bb1c56d4b541fca20 | [
"MIT"
] | 8 | 2015-10-29T16:47:54.000Z | 2015-11-28T03:38:57.000Z | toolkit/toolkit/visgoth/collectd.hpp | joshblum/eeg-toolkit | 20b54ad0c511480626b0757bb1c56d4b541fca20 | [
"MIT"
] | 2 | 2018-07-29T21:45:45.000Z | 2020-09-23T02:29:29.000Z | #ifndef COLLECTD_H
#define COLLECTD_H
#include <string>
#include "../config.hpp"
#include "../json11/json11.hpp"
using namespace std;
using namespace json11;
class Collectd
{
private:
const char* socket_path = COLLECTD_SOCK;
int fd;
uint _cmd(string cmd);
string _readline();
vector<string> _rea... | 16.466667 | 52 | 0.676113 | joshblum |
86fa872e33b105a0b96315486dfcbbdf01edef0e | 21,254 | cpp | C++ | src/trajectory_planning/tp.cpp | KyuhwanYeon/Highway_Driving | cf3845f42c5683edb95c94188eafe90a5eeefabd | [
"MIT"
] | null | null | null | src/trajectory_planning/tp.cpp | KyuhwanYeon/Highway_Driving | cf3845f42c5683edb95c94188eafe90a5eeefabd | [
"MIT"
] | null | null | null | src/trajectory_planning/tp.cpp | KyuhwanYeon/Highway_Driving | cf3845f42c5683edb95c94188eafe90a5eeefabd | [
"MIT"
] | null | null | null | #include "tp.h"
using Eigen::MatrixXd;
using Eigen::VectorXd;
TrajectoryPlanning::TrajectoryPlanning(double car_x_, double car_y_, double car_yaw_, double car_s_, double ref_vel_, int lane_,
nlohmann::json previous_path_x_, nlohmann::json previous_path_y_,
... | 38.503623 | 243 | 0.615037 | KyuhwanYeon |
810223fc42a6f4e7fe8fda7b988543e0ed5c5825 | 175 | cpp | C++ | src/simple_cpu/main.cpp | Erfan-Ahmadi/circle_collision | e5f7131fc9272a34a379c838931a68d9c2e69be3 | [
"MIT"
] | 38 | 2019-10-31T01:26:23.000Z | 2022-02-13T09:57:47.000Z | src/simple_cpu/main.cpp | Erfan-Ahmadi/circle_collision | e5f7131fc9272a34a379c838931a68d9c2e69be3 | [
"MIT"
] | 4 | 2019-06-28T09:40:42.000Z | 2022-01-31T07:48:20.000Z | src/simple_cpu/main.cpp | Erfan-Ahmadi/circle_collision | e5f7131fc9272a34a379c838931a68d9c2e69be3 | [
"MIT"
] | 1 | 2020-02-16T16:46:50.000Z | 2020-02-16T16:46:50.000Z | #include "simple_cpu.h"
int main()
{
CircleCollisionMultiThreaded app;
app.initialize();
if (!app.run())
return EXIT_FAILURE;
app.release();
return EXIT_SUCCESS;
} | 11.666667 | 34 | 0.702857 | Erfan-Ahmadi |
81035cfbcfacfb22abf1b4b0742e07e0e98cae0a | 177,028 | cpp | C++ | lib/Parser/RegexCompileTime.cpp | ankursehgalGitHub/ChakraCore | 7f263b3ba2b7fbb5931cd743872ed0b1a33410ce | [
"MIT"
] | null | null | null | lib/Parser/RegexCompileTime.cpp | ankursehgalGitHub/ChakraCore | 7f263b3ba2b7fbb5931cd743872ed0b1a33410ce | [
"MIT"
] | null | null | null | lib/Parser/RegexCompileTime.cpp | ankursehgalGitHub/ChakraCore | 7f263b3ba2b7fbb5931cd743872ed0b1a33410ce | [
"MIT"
] | null | null | null | //-------------------------------------------------------------------------------------------------------
// Copyright (C) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE.txt file in the project root for full license information.
//---------------------------------------------------------... | 38.119724 | 230 | 0.543552 | ankursehgalGitHub |
8103ca4283d5ba7f7bcf998afbb909498a8d7c3b | 56,179 | cpp | C++ | lib/RangeAnalysis/RangeSynth.cpp | skmuduli92/wrapped-intervals | 84f24113a71bf95736a63a51e82c0530e5017844 | [
"MIT"
] | null | null | null | lib/RangeAnalysis/RangeSynth.cpp | skmuduli92/wrapped-intervals | 84f24113a71bf95736a63a51e82c0530e5017844 | [
"MIT"
] | null | null | null | lib/RangeAnalysis/RangeSynth.cpp | skmuduli92/wrapped-intervals | 84f24113a71bf95736a63a51e82c0530e5017844 | [
"MIT"
] | null | null | null | // Authors: Jorge. A Navas, Peter Schachte, Harald Sondergaard, and
// Peter J. Stuckey.
// The University of Melbourne 2012.
//////////////////////////////////////////////////////////////////////////////
/// \file RangeLattice.cpp
/// Classical fixed-width Interval Abstract Domain.
///
/// \todo There ... | 30.449322 | 93 | 0.594973 | skmuduli92 |
810860aa303e200471cc3840b0897dfca4c874f9 | 12,428 | cpp | C++ | hill_climbing.cpp | hotzevzl/marxan | 23ba3a0ada90e721c745b922363458bece3477dc | [
"MIT"
] | 5 | 2021-02-16T07:50:47.000Z | 2021-09-14T00:17:13.000Z | hill_climbing.cpp | hotzevzl/marxan | 23ba3a0ada90e721c745b922363458bece3477dc | [
"MIT"
] | 7 | 2021-02-17T00:03:09.000Z | 2021-10-05T14:46:22.000Z | hill_climbing.cpp | hotzevzl/marxan | 23ba3a0ada90e721c745b922363458bece3477dc | [
"MIT"
] | 2 | 2020-10-02T18:08:17.000Z | 2021-06-18T09:03:01.000Z |
#include <algorithm>
#include <chrono>
#include <ctime>
#include <cfloat>
#include <iostream>
#include <omp.h>
#include <chrono>
// load the required function definition modules
#include "defines.hpp"
#include "utils.hpp"
#include "algorithms.hpp"
#include "computation.hpp"
#include "clumping.hpp"
#include "probabil... | 38.716511 | 145 | 0.486482 | hotzevzl |
81091e43e0601f66ef5c56046b0e613ec1576d32 | 1,311 | inl | C++ | shared/source/dll/devices/devices_additional.inl | WeixiZhu94/intel-opencl-runtime | 9ff1307b4b665a52d59c3d37c9c29e6952d32c93 | [
"Intel",
"MIT"
] | null | null | null | shared/source/dll/devices/devices_additional.inl | WeixiZhu94/intel-opencl-runtime | 9ff1307b4b665a52d59c3d37c9c29e6952d32c93 | [
"Intel",
"MIT"
] | null | null | null | shared/source/dll/devices/devices_additional.inl | WeixiZhu94/intel-opencl-runtime | 9ff1307b4b665a52d59c3d37c9c29e6952d32c93 | [
"Intel",
"MIT"
] | null | null | null | /*
* Copyright (C) 2021-2022 Intel Corporation
*
* SPDX-License-Identifier: MIT
*
*/
#if SUPPORT_XE_HPC_CORE
#ifdef SUPPORT_PVC
DEVICE(0x0BD0, PVC_CONFIG)
DEVICE(0x0BD5, PVC_CONFIG)
#endif
#endif
#ifdef SUPPORT_XE_HPG_CORE
#ifdef SUPPORT_DG2
DEVICE(0x4F80, DG2_CONFIG)
DEVICE(0x4F81, DG2_CONFIG)
DEVICE(0x4F82, DG... | 21.85 | 44 | 0.805492 | WeixiZhu94 |
810b3864d0a9499ebb7c30d12d1466b963ebf6ca | 230 | cpp | C++ | AtCoder/KYOCERA Programming Contest 2021(AtCoder Beginner Contest 200)/A.cpp | MaGnsio/CP-Problems | a7f518a20ba470f554b6d54a414b84043bf209c5 | [
"Unlicense"
] | 3 | 2020-11-01T06:31:30.000Z | 2022-02-21T20:37:51.000Z | AtCoder/KYOCERA Programming Contest 2021(AtCoder Beginner Contest 200)/A.cpp | MaGnsio/CP-Problems | a7f518a20ba470f554b6d54a414b84043bf209c5 | [
"Unlicense"
] | null | null | null | AtCoder/KYOCERA Programming Contest 2021(AtCoder Beginner Contest 200)/A.cpp | MaGnsio/CP-Problems | a7f518a20ba470f554b6d54a414b84043bf209c5 | [
"Unlicense"
] | 1 | 2021-05-05T18:56:31.000Z | 2021-05-05T18:56:31.000Z | //https://atcoder.jp/contests/abc200/tasks/abc200_a
#include <bits/stdc++.h>
using namespace std;
int main () {
ios_base::sync_with_stdio (0); cin.tie (0); cout.tie (0);
int N;
cin >> N;
cout << (N + 99) / 100;
}
| 20.909091 | 61 | 0.6 | MaGnsio |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.