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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
22041b9172a3b515906ba2e835c0b5fa2a8b79b4 | 4,016 | cpp | C++ | src/main.cpp | JWhitleyWork/ffree | bb0d32f42e3b8a7dd4378a903f1de2887ed94846 | [
"Apache-2.0"
] | 1 | 2022-03-01T22:55:59.000Z | 2022-03-01T22:55:59.000Z | src/main.cpp | JWhitleyWork/ffree | bb0d32f42e3b8a7dd4378a903f1de2887ed94846 | [
"Apache-2.0"
] | null | null | null | src/main.cpp | JWhitleyWork/ffree | bb0d32f42e3b8a7dd4378a903f1de2887ed94846 | [
"Apache-2.0"
] | null | null | null | // Copyright 2020 Whitley Software Services, LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable l... | 32.918033 | 98 | 0.676544 | JWhitleyWork |
220e212eb0d699a0d8f86461454b89dbb0ddc22f | 452 | cpp | C++ | zero-para-cancelar/index.cpp | tiago-rodrigues1/questoes-Neps | e1fbeffac1a51d396e7b7770135b4b2f0515af5c | [
"MIT"
] | 2 | 2020-10-14T19:40:42.000Z | 2020-10-21T21:35:19.000Z | zero-para-cancelar/index.cpp | tiago-rodrigues1/questoes-Neps | e1fbeffac1a51d396e7b7770135b4b2f0515af5c | [
"MIT"
] | null | null | null | zero-para-cancelar/index.cpp | tiago-rodrigues1/questoes-Neps | e1fbeffac1a51d396e7b7770135b4b2f0515af5c | [
"MIT"
] | 1 | 2020-10-14T19:40:56.000Z | 2020-10-14T19:40:56.000Z | #include <bits/stdc++.h>
using namespace std;
int main()
{
stack<int> nums;
int n, soma = 0;
cin >> n;
for (int i = 0; i < n; i++)
{
int x;
cin >> x;
if (x == 0)
{
nums.pop();
}
else
{
nums.push(x);
}
}... | 11.894737 | 31 | 0.35177 | tiago-rodrigues1 |
c300782df7efba0e00f703054f85fb02ca7e50d7 | 2,064 | cpp | C++ | tests/rect_clipping.cpp | kayabe/deadfrog-lib | 824bd9451e44b593343031c02a4fd79b292db1a9 | [
"MIT"
] | 7 | 2016-07-06T14:20:00.000Z | 2021-02-26T02:31:27.000Z | tests/rect_clipping.cpp | kayabe/deadfrog-lib | 824bd9451e44b593343031c02a4fd79b292db1a9 | [
"MIT"
] | 1 | 2021-04-19T09:47:38.000Z | 2021-04-19T14:17:29.000Z | tests/rect_clipping.cpp | kayabe/deadfrog-lib | 824bd9451e44b593343031c02a4fd79b292db1a9 | [
"MIT"
] | 1 | 2020-07-11T14:13:55.000Z | 2020-07-11T14:13:55.000Z | #include "df_bitmap.h"
#include "df_window.h"
int main()
{
CreateWin(800, 600, WT_WINDOWED, "Clipping test");
BitmapClear(g_window->bmp, g_colourBlack);
// Set clip rect as 100,150 -> 700,450
RectOutline(g_window->bmp, 100, 150, 600, 300, Colour(255, 50, 50));
SetClipRect(g_window->b... | 27.52 | 73 | 0.600775 | kayabe |
c306e9a157712ad3bf6e29adefaf72eb7c4ab6c7 | 684 | hpp | C++ | include/ecs/PointLightComponent.hpp | icebreakersentertainment/ice_engine | 52a8313bc266c053366bdf554b5dc27a54ddcb25 | [
"MIT"
] | null | null | null | include/ecs/PointLightComponent.hpp | icebreakersentertainment/ice_engine | 52a8313bc266c053366bdf554b5dc27a54ddcb25 | [
"MIT"
] | null | null | null | include/ecs/PointLightComponent.hpp | icebreakersentertainment/ice_engine | 52a8313bc266c053366bdf554b5dc27a54ddcb25 | [
"MIT"
] | 1 | 2019-06-11T03:41:48.000Z | 2019-06-11T03:41:48.000Z | #ifndef POINTLIGHTCOMPONENT_H_
#define POINTLIGHTCOMPONENT_H_
#include "graphics/PointLightHandle.hpp"
#include "ecs/Serialization.hpp"
namespace ice_engine
{
namespace ecs
{
struct PointLightComponent
{
PointLightComponent() = default;
PointLightComponent(graphics::PointLightHandle pointLightHandle) : pointLig... | 15.545455 | 102 | 0.773392 | icebreakersentertainment |
c307d022ce3cf615d1a42b5c55b49fcd1dcd518b | 2,457 | hpp | C++ | src/GameC/src/Util.hpp | cs3238-tsuzu/AIShoot | 7c3dbb6e3b49f7d0ae1efe7ca69251ad50477647 | [
"MIT"
] | 1 | 2018-05-23T10:57:32.000Z | 2018-05-23T10:57:32.000Z | src/GameC/src/Util.hpp | cs3238-tsuzu/AIShoot | 7c3dbb6e3b49f7d0ae1efe7ca69251ad50477647 | [
"MIT"
] | null | null | null | src/GameC/src/Util.hpp | cs3238-tsuzu/AIShoot | 7c3dbb6e3b49f7d0ae1efe7ca69251ad50477647 | [
"MIT"
] | null | null | null | #pragma once
namespace Util {
Vec2 unitVector(const Vec2& v) {
double len = sqrt(v.x * v.x + v.y * v.y);
return Vec2{v.x / len, v.y / len};
}
template<typename T>
std::function<T(double)> EasingFunction(T (*easeFunc)(double f(double), const T& , const T& , const ... | 29.60241 | 150 | 0.457875 | cs3238-tsuzu |
c309db8c95080cfdb1fae4b86159bd896941f456 | 81 | hpp | C++ | NWNXLib/API/Mac/API/unknown_z_free_func.hpp | acaos/nwnxee-unified | 0e4c318ede64028c1825319f39c012e168e0482c | [
"MIT"
] | 1 | 2019-06-04T04:30:24.000Z | 2019-06-04T04:30:24.000Z | NWNXLib/API/Mac/API/unknown_z_free_func.hpp | presscad/nwnee | 0f36b281524e0b7e9796bcf30f924792bf9b8a38 | [
"MIT"
] | null | null | null | NWNXLib/API/Mac/API/unknown_z_free_func.hpp | presscad/nwnee | 0f36b281524e0b7e9796bcf30f924792bf9b8a38 | [
"MIT"
] | 1 | 2019-10-20T07:54:45.000Z | 2019-10-20T07:54:45.000Z | #pragma once
namespace NWNXLib {
namespace API {
class z_free_func { };
}
}
| 6.75 | 22 | 0.666667 | acaos |
c3201a16b03b17297369d5bf235a4aa6e51f4ffc | 2,167 | cpp | C++ | Chapter2_linkedLists/question4.cpp | kgajwan1/CTCI_practice | 2e8e61f508777b4b7ad5d8c32dedd12ea5b27d39 | [
"MIT"
] | null | null | null | Chapter2_linkedLists/question4.cpp | kgajwan1/CTCI_practice | 2e8e61f508777b4b7ad5d8c32dedd12ea5b27d39 | [
"MIT"
] | null | null | null | Chapter2_linkedLists/question4.cpp | kgajwan1/CTCI_practice | 2e8e61f508777b4b7ad5d8c32dedd12ea5b27d39 | [
"MIT"
] | null | null | null | //question 4; redo
//quick sort a linked list (partitian around value x)
/*
* Write code to partition linked list around a value x, such that
* nodes less than x come before all the nodes greater than or equal to x.
* If x is in the list, the values of x only need to be after the elements less
* than x.
... | 23.813187 | 81 | 0.507614 | kgajwan1 |
c32200cde0d232285fb96b51716a7712689c9e18 | 820 | cpp | C++ | hashing/double-hashing/Hashtable.cpp | justanindieguy/algorithms-in-c | ad4e88062dbf78ce4966be3497d44aea23bbb2dd | [
"MIT"
] | null | null | null | hashing/double-hashing/Hashtable.cpp | justanindieguy/algorithms-in-c | ad4e88062dbf78ce4966be3497d44aea23bbb2dd | [
"MIT"
] | null | null | null | hashing/double-hashing/Hashtable.cpp | justanindieguy/algorithms-in-c | ad4e88062dbf78ce4966be3497d44aea23bbb2dd | [
"MIT"
] | null | null | null | #include "Hashtable.h"
#define SIZE 10
#define PRIME 7
int HashTable::hash(int key)
{
return key % SIZE;
}
int HashTable::primeHash(int key)
{
return PRIME - (key % PRIME);
}
int HashTable::doubleHash(int key)
{
int idx = hash(key);
int i = 0;
while (ht[(hash(idx) + i * primeHash(key)) % SIZE] !... | 16.4 | 62 | 0.531707 | justanindieguy |
c3220f6ddf60694b9b83a77a1d49ba0c7968633c | 658 | hpp | C++ | QNXIPCUnServer/QNXIPCUnServer.hpp | SKART1/QNXIPCUnProg | 0316cbbb0c0486ee9dd6d70bb1ac19f1cf622f4c | [
"MIT"
] | 1 | 2016-10-11T11:46:44.000Z | 2016-10-11T11:46:44.000Z | QNXIPCUnServer/QNXIPCUnServer.hpp | SKART1/QNXIPCUnProg | 0316cbbb0c0486ee9dd6d70bb1ac19f1cf622f4c | [
"MIT"
] | null | null | null | QNXIPCUnServer/QNXIPCUnServer.hpp | SKART1/QNXIPCUnProg | 0316cbbb0c0486ee9dd6d70bb1ac19f1cf622f4c | [
"MIT"
] | 1 | 2021-08-12T07:56:48.000Z | 2021-08-12T07:56:48.000Z | /*
* QNXIPCUnServer.hpp
*
* Created on: 10.05.2014
* Author: Art
*/
#ifndef QNXIPCUNSERVER_HPP_
#define QNXIPCUNSERVER_HPP_
#include <stdio.h>
#include <stdlib.h>
#include <signal.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <unistd.h>
#include <iostream>
... | 18.277778 | 50 | 0.658055 | SKART1 |
c322730a0f7abfc245f70857fb60697a6f79a040 | 4,584 | cpp | C++ | visualExamples/ch4/trajectoryError/trajectoryError.cpp | kiorisyshen/learning_slambook | 9f47cca96b5c555ac854d08f05f5ebefe3d78cc8 | [
"MIT"
] | 1 | 2021-11-08T23:02:22.000Z | 2021-11-08T23:02:22.000Z | visualExamples/ch4/trajectoryError/trajectoryError.cpp | kiorisyshen/learning_slambook | 9f47cca96b5c555ac854d08f05f5ebefe3d78cc8 | [
"MIT"
] | null | null | null | visualExamples/ch4/trajectoryError/trajectoryError.cpp | kiorisyshen/learning_slambook | 9f47cca96b5c555ac854d08f05f5ebefe3d78cc8 | [
"MIT"
] | 1 | 2021-11-08T23:02:29.000Z | 2021-11-08T23:02:29.000Z | /**
* @file trajectoryError.cpp
* @author Sijie Shen (kiorisyshen@gmail.com)
* @brief
* @version 0.1
* @date 2020-10-29
*
* @copyright Copyright (c) 2020
*
*/
#include "config.hpp"
#include "common/glfwEntry.hpp"
#include <sophus/se3.hpp>
#include <iostream>
#include <fstream>
using namespace Sophus;
usi... | 32.510638 | 134 | 0.552356 | kiorisyshen |
c32cba259a53fa074573c971503934a64a51331a | 1,446 | cc | C++ | main.cc | rtpax/redblack | 6fcf09afb1ec7cae43adc7dfe28ccd0ad8cace78 | [
"MIT"
] | null | null | null | main.cc | rtpax/redblack | 6fcf09afb1ec7cae43adc7dfe28ccd0ad8cace78 | [
"MIT"
] | null | null | null | main.cc | rtpax/redblack | 6fcf09afb1ec7cae43adc7dfe28ccd0ad8cace78 | [
"MIT"
] | null | null | null | #include "rb_tree.hh"
#include <iostream>
#include <string>
#include <vector>
#include <random>
#include <chrono>
#include <set>
int main(int argc, char ** argv) {
rb_tree<int> a = { 9,8,7,6,5,4,3,2,1,10 };
char break_char = '/';
int i = 1;
for(; i < argc && argv[i][0] != break_char; ++i) {
a... | 21.909091 | 100 | 0.470954 | rtpax |
c33662713fcaca261702640c6f7aee9e808fdc48 | 13,633 | hpp | C++ | idlib-math-geometry/library/src/idlib/math_geometry/plane.hpp | egoboo/idlib | b27b9d3fe7357ecfe5f9dc71afe283a3d16b1ba8 | [
"MIT"
] | 1 | 2021-07-30T14:02:43.000Z | 2021-07-30T14:02:43.000Z | idlib-math-geometry/library/src/idlib/math_geometry/plane.hpp | egoboo/idlib | b27b9d3fe7357ecfe5f9dc71afe283a3d16b1ba8 | [
"MIT"
] | null | null | null | idlib-math-geometry/library/src/idlib/math_geometry/plane.hpp | egoboo/idlib | b27b9d3fe7357ecfe5f9dc71afe283a3d16b1ba8 | [
"MIT"
] | 2 | 2017-01-27T16:53:08.000Z | 2017-08-27T07:28:43.000Z | ///////////////////////////////////////////////////////////////////////////////////////////////////
//
// Idlib: A C++ utility library
// Copyright (C) 2017-2018 Michael Heilmann
//
// This software is provided 'as-is', without any express or implied warranty.
// In no event will the authors be held liable for any dama... | 39.515942 | 146 | 0.570527 | egoboo |
c33cd058c67c3ab6cef9bf4871158ee48e0ebe88 | 3,387 | cpp | C++ | src/layers/CvoltonOptionsLayer.cpp | Cvolton/best-epic-gd-mods | fb997b3ba0af5507e7f0f869af975025aba0eb61 | [
"MIT"
] | 5 | 2022-02-18T17:08:28.000Z | 2022-02-26T15:51:49.000Z | src/layers/CvoltonOptionsLayer.cpp | Cvolton/best-epic-gd-mods | fb997b3ba0af5507e7f0f869af975025aba0eb61 | [
"MIT"
] | null | null | null | src/layers/CvoltonOptionsLayer.cpp | Cvolton/best-epic-gd-mods | fb997b3ba0af5507e7f0f869af975025aba0eb61 | [
"MIT"
] | null | null | null | #include "CvoltonOptionsLayer.h"
#include "../managers/CvoltonManager.h"
#include <cocos2d.h>
#include <gd.h>
using namespace cocos2d;
using namespace gd;
CvoltonOptionsLayer* CvoltonOptionsLayer::create(){
auto ret = new CvoltonOptionsLayer();
if (ret && ret->init()) {
//robert 1 :D
ret->aut... | 32.257143 | 152 | 0.683791 | Cvolton |
c34ec6a6828b95af6ec55993e26e860b2442fe57 | 1,329 | cpp | C++ | SVEngine/src/mtl/SVMtlBillboard.cpp | SVEChina/SVEngine | 56174f479a3096e57165448142c1822e7db8c02f | [
"MIT"
] | 34 | 2018-09-28T08:28:27.000Z | 2022-01-15T10:31:41.000Z | SVEngine/src/mtl/SVMtlBillboard.cpp | SVEChina/SVEngine | 56174f479a3096e57165448142c1822e7db8c02f | [
"MIT"
] | null | null | null | SVEngine/src/mtl/SVMtlBillboard.cpp | SVEChina/SVEngine | 56174f479a3096e57165448142c1822e7db8c02f | [
"MIT"
] | 8 | 2018-10-11T13:36:35.000Z | 2021-04-01T09:29:34.000Z | //
// SVMtlBillboard.cpp
// SVEngine
// Copyright 2017-2020
// yizhou Fu,long Yin,longfei Lin,ziyu Xu,xiaofan Li,daming Li
//
#include "SVMtlBillboard.h"
#include "../mtl/SVTexture.h"
#include "../rendercore/SVRenderer.h"
#include "../basesys/SVCameraMgr.h"
#include "../node/SVCameraNode.h"
SVMtlBillboard::SVMtlBillbo... | 22.913793 | 70 | 0.708804 | SVEChina |
c34fda69b78394c1a198ecd33a3406d798f19404 | 5,625 | cpp | C++ | Source/CADialogue/Private/CADialogueInstanceComponent.cpp | cmacnair/Catch-All-Dialogue-UE4 | f2cf5b5b658471ab47afeb047dbe25f6100c3bf7 | [
"MIT"
] | 1 | 2020-05-28T07:04:17.000Z | 2020-05-28T07:04:17.000Z | Source/CADialogue/Private/CADialogueInstanceComponent.cpp | cmacnair/Catch-All-Dialogue-UE4 | f2cf5b5b658471ab47afeb047dbe25f6100c3bf7 | [
"MIT"
] | null | null | null | Source/CADialogue/Private/CADialogueInstanceComponent.cpp | cmacnair/Catch-All-Dialogue-UE4 | f2cf5b5b658471ab47afeb047dbe25f6100c3bf7 | [
"MIT"
] | null | null | null | #include "CADialogueInstanceComponent.h"
#include <Stats/Stats.h>
#include "CADialogueSubsystem.h"
#include "CADialogueSpeakerDataAsset.h"
UCADialogueInstanceComponent::UCADialogueInstanceComponent()
: bRegisterOnBeginPlay(true)
, bDeregisterOnEndPlay(true)
, bCheckQueueDuringTick(true)
{
SetTickGrou... | 30.241935 | 139 | 0.7888 | cmacnair |
c358ba043b1e7e9d30ea0243fb7949c1615cb752 | 5,634 | hpp | C++ | src/ZerEngine/Logic/Query.hpp | ZerethjiN/ZerEngine-ECS | 1766b70042076cbc7899e5b2261588c6e3b34729 | [
"MIT"
] | 1 | 2022-02-22T12:22:11.000Z | 2022-02-22T12:22:11.000Z | src/ZerEngine/Logic/Query.hpp | ZerethjiN/ZerEngine-ECS | 1766b70042076cbc7899e5b2261588c6e3b34729 | [
"MIT"
] | null | null | null | src/ZerEngine/Logic/Query.hpp | ZerethjiN/ZerEngine-ECS | 1766b70042076cbc7899e5b2261588c6e3b34729 | [
"MIT"
] | null | null | null | /**
* @file Query.hpp
* @author ZerethjiN
* @brief Get and iterate queries by necessary Component,
* Filter and Exclusion Type.
* @version 0.1
* @date 2022-02-22
*
* @copyright Copyright (c) 2022 - ZerethjiN
*
*/
#ifndef ZERENGINE_VIEW_HPP
#define ZERENGINE_VIEW_HPP
#include <vector>
#includ... | 37.56 | 206 | 0.538871 | ZerethjiN |
c35a99931796bf519defa205d44427c647516e33 | 928 | cpp | C++ | example/example.cpp | yhirose/cpp-zipper | 865ae774f28e7675e01821fd554235f38c1fc79d | [
"MIT"
] | 5 | 2021-11-19T03:23:54.000Z | 2022-03-10T11:39:39.000Z | example/example.cpp | yhirose/cpp-zipper | 865ae774f28e7675e01821fd554235f38c1fc79d | [
"MIT"
] | null | null | null | example/example.cpp | yhirose/cpp-zipper | 865ae774f28e7675e01821fd554235f38c1fc79d | [
"MIT"
] | null | null | null | #include <filesystem>
#include <iostream>
#include "zipper.h"
namespace fs = std::filesystem;
int main() {
{
zipper::Zip zip("test_copy.zip");
zipper::enumerate("test.zip", [&zip](auto &unzip) {
if (unzip.is_dir()) {
zip.add_dir(unzip.file_path());
} else {
std::string buf;
... | 21.090909 | 55 | 0.539871 | yhirose |
c37116e69d9b05bdeb8af656b9608d5b9d667512 | 20,878 | cpp | C++ | bin/test-libsept/test_serialization.cpp | vdods/sept | 08ee1faf1af4feb0dc440a3002eb8cc52681f946 | [
"Apache-2.0"
] | null | null | null | bin/test-libsept/test_serialization.cpp | vdods/sept | 08ee1faf1af4feb0dc440a3002eb8cc52681f946 | [
"Apache-2.0"
] | null | null | null | bin/test-libsept/test_serialization.cpp | vdods/sept | 08ee1faf1af4feb0dc440a3002eb8cc52681f946 | [
"Apache-2.0"
] | null | null | null | // 2020.08.03 - Victor Dods
#include <iomanip>
#include <iostream>
#include <limits>
#include <lvd/req.hpp>
#include <lvd/test.hpp>
#include "sept/ArrayTerm.hpp"
#include "sept/ctl/ClearOutput.hpp"
#include "sept/ctl/EndOfFile.hpp"
#include "sept/ctl/Output.hpp"
#include "sept/ctl/RequestSyncInput.hpp"
#include "sept/... | 46.190265 | 196 | 0.727991 | vdods |
c37e5885f4473f9993d4de42ebb9c546a2d82948 | 1,451 | cpp | C++ | src/snabl/run.cpp | ricelang/snabl | 488591099faf089d4deba30f90017305ff31598c | [
"MIT"
] | 1 | 2021-10-20T07:44:36.000Z | 2021-10-20T07:44:36.000Z | src/snabl/run.cpp | ricelang/snabl | 488591099faf089d4deba30f90017305ff31598c | [
"MIT"
] | null | null | null | src/snabl/run.cpp | ricelang/snabl | 488591099faf089d4deba30f90017305ff31598c | [
"MIT"
] | null | null | null | #include "snabl/call.hpp"
#include "snabl/env.hpp"
#include "snabl/parser.hpp"
#include "snabl/run.hpp"
namespace snabl {
void Env::run(string_view in) {
const string s(in);
istringstream ss(s);
run(ss);
}
void Env::run(istream &in) {
Forms fs;
Parser(*this).parse(in, fs);
const auto start_pc(_ops.siz... | 21.028986 | 74 | 0.607857 | ricelang |
c380295cbd43ceb7225b5d3f146080d2d90d3a16 | 1,737 | cpp | C++ | src/Target_Crystal.cpp | temken/DM_Detection | bc3db0bd8e0293659c216d2a47af0217224d87c5 | [
"MIT"
] | 2 | 2021-02-04T08:37:57.000Z | 2021-12-03T16:02:52.000Z | src/Target_Crystal.cpp | temken/DM_Detection | bc3db0bd8e0293659c216d2a47af0217224d87c5 | [
"MIT"
] | 21 | 2020-05-06T12:52:11.000Z | 2022-03-31T13:11:23.000Z | src/Target_Crystal.cpp | temken/DM_Detection | bc3db0bd8e0293659c216d2a47af0217224d87c5 | [
"MIT"
] | 1 | 2022-01-03T03:53:50.000Z | 2022-01-03T03:53:50.000Z | #include "obscura/Target_Crystal.hpp"
#include <cmath>
#include "libphysica/Natural_Units.hpp"
#include "libphysica/Utilities.hpp"
#include "version.hpp"
namespace obscura
{
using namespace libphysica::natural_units;
Crystal::Crystal(std::string target)
: name(target), dE(0.1 * eV), dq(0.02 * aEM * mElectron)
{
d... | 29.948276 | 108 | 0.653425 | temken |
c380ec117a6bb44fd41cceb31bbbdf7a78c79257 | 1,263 | cpp | C++ | libs/fontdraw/src/font/draw/simple.cpp | cpreh/spacegameengine | 313a1c34160b42a5135f8223ffaa3a31bc075a01 | [
"BSL-1.0"
] | 2 | 2016-01-27T13:18:14.000Z | 2018-05-11T01:11:32.000Z | libs/fontdraw/src/font/draw/simple.cpp | cpreh/spacegameengine | 313a1c34160b42a5135f8223ffaa3a31bc075a01 | [
"BSL-1.0"
] | null | null | null | libs/fontdraw/src/font/draw/simple.cpp | cpreh/spacegameengine | 313a1c34160b42a5135f8223ffaa3a31bc075a01 | [
"BSL-1.0"
] | 3 | 2018-05-11T01:11:34.000Z | 2021-04-24T19:47:45.000Z | // Copyright Carl Philipp Reh 2006 - 2019.
// Distributed under the Boost Software License, Version 1.0.
// (See accompanying file LICENSE_1_0.txt or copy at
// http://www.boost.org/LICENSE_1_0.txt)
#include <sge/font/object_fwd.hpp>
#include <sge/font/string.hpp>
#include <sge/font/text_parameter... | 32.384615 | 61 | 0.70388 | cpreh |
c38336fdb4fd6bbc709fc4823139cac01261e7da | 1,605 | cpp | C++ | leetcode-cpp/src/p2/p2_solution.cpp | ch200c/leetcode-cpp | 7293c8ca2f8a2cf8ced56ef60461da4706e4630b | [
"MIT"
] | null | null | null | leetcode-cpp/src/p2/p2_solution.cpp | ch200c/leetcode-cpp | 7293c8ca2f8a2cf8ced56ef60461da4706e4630b | [
"MIT"
] | null | null | null | leetcode-cpp/src/p2/p2_solution.cpp | ch200c/leetcode-cpp | 7293c8ca2f8a2cf8ced56ef60461da4706e4630b | [
"MIT"
] | null | null | null | #include "pch.h"
#include "leetcode-cpp/p2/p2_list_node.h" // ListNode
#include "leetcode-cpp/p2/p2_solution.h"
namespace leetcode {
namespace p2 {
ListNode *Solution::to_list(const std::vector<int> &digits) noexcept {
ListNode *root_node{nullptr};
ListNode *previous_node{nullptr};
for (const auto &digit : d... | 21.986301 | 78 | 0.677882 | ch200c |
c384afa3273c20a22e23627549d07bfcd06ed238 | 3,127 | cpp | C++ | xs/src/libslic3r/PlaceholderParser.cpp | hroncok/Slic3r | 321b70115b60df786fe74d376c3f67b1f7076fc0 | [
"CC-BY-3.0"
] | null | null | null | xs/src/libslic3r/PlaceholderParser.cpp | hroncok/Slic3r | 321b70115b60df786fe74d376c3f67b1f7076fc0 | [
"CC-BY-3.0"
] | null | null | null | xs/src/libslic3r/PlaceholderParser.cpp | hroncok/Slic3r | 321b70115b60df786fe74d376c3f67b1f7076fc0 | [
"CC-BY-3.0"
] | null | null | null | #include "PlaceholderParser.hpp"
namespace Slic3r {
PlaceholderParser::PlaceholderParser()
{
// TODO: port these methods to C++, then call them here
// this->apply_env_variables();
// this->update_timestamp();
}
PlaceholderParser::~PlaceholderParser()
{
}
void PlaceholderParser::apply_config(DynamicPr... | 25.842975 | 72 | 0.560921 | hroncok |
c38f497f127a3abcfcec78484fa01201ebd286b0 | 24,200 | cpp | C++ | src/fluids/main.cpp | nyorain/tokonoma | b3a4264ef4f9f40487c2f3280812bf7513b914bb | [
"MIT"
] | 23 | 2019-07-11T14:47:39.000Z | 2021-12-24T09:56:24.000Z | src/fluids/main.cpp | nyorain/tokonoma | b3a4264ef4f9f40487c2f3280812bf7513b914bb | [
"MIT"
] | null | null | null | src/fluids/main.cpp | nyorain/tokonoma | b3a4264ef4f9f40487c2f3280812bf7513b914bb | [
"MIT"
] | 4 | 2021-04-06T18:20:43.000Z | 2022-01-15T09:20:45.000Z | // TODO/current state:
// - pressure correction seems not to work for larger dt (it at least
// seems like that is the problem. Maybe we can't just move dt out
// of the linear system?)
// - also for smaller dt: density can just vanish which should
// not happen (mass preservation). only approximation errors?... | 31.387808 | 80 | 0.707893 | nyorain |
c3932da7c1f71fdb243944622036a2fc4d6631cc | 119 | cpp | C++ | test/once_test.cpp | iwongdotcn/juliet | 661cbf0fca06542a4f3a55d8c5a36af0f1613905 | [
"BSL-1.0"
] | null | null | null | test/once_test.cpp | iwongdotcn/juliet | 661cbf0fca06542a4f3a55d8c5a36af0f1613905 | [
"BSL-1.0"
] | null | null | null | test/once_test.cpp | iwongdotcn/juliet | 661cbf0fca06542a4f3a55d8c5a36af0f1613905 | [
"BSL-1.0"
] | null | null | null | #define CATCH_CONFIG_MAIN
#include "catch2/catch.hpp"
#include "sync/once.hpp"
TEST_CASE("sync.Once", "[Once]") {
}
| 13.222222 | 34 | 0.697479 | iwongdotcn |
c39f2dc62a78c88a57d3b3bda9002bb44f134ea5 | 2,824 | inl | C++ | Base/PLMath/include/PLMath/Line.inl | ktotheoz/pixellight | 43a661e762034054b47766d7e38d94baf22d2038 | [
"MIT"
] | 83 | 2015-01-08T15:06:14.000Z | 2021-07-20T17:07:00.000Z | Base/PLMath/include/PLMath/Line.inl | PixelLightFoundation/pixellight | 43a661e762034054b47766d7e38d94baf22d2038 | [
"MIT"
] | 27 | 2019-06-18T06:46:07.000Z | 2020-02-02T11:11:28.000Z | Base/PLMath/include/PLMath/Line.inl | naetherm/PixelLight | d7666f5b49020334cbb5debbee11030f34cced56 | [
"MIT"
] | 40 | 2015-02-25T18:24:34.000Z | 2021-03-06T09:01:48.000Z | /*********************************************************\
* File: Line.inl *
* Line inline implementation
*
* Copyright (C) 2002-2013 The PixelLight Team (http://www.pixellight.org/)
*
* This file is part of PixelLight.
*
* Permission is hereby granted, free of c... | 28.24 | 97 | 0.542493 | ktotheoz |
c39fc99068f583dd0bacff691c637fbb6eef291b | 315 | cpp | C++ | Plugins/InstancedPlugin/Source/InstancedPlugin/Private/InstancedPlugin.cpp | redcatbox/Instanced | 347790e8ade0c6e6fb9b742afc78c764414ed36a | [
"MIT"
] | 1 | 2022-02-03T17:10:29.000Z | 2022-02-03T17:10:29.000Z | Plugins/InstancedPlugin/Source/InstancedPlugin/Private/InstancedPlugin.cpp | redcatbox/Instanced | 347790e8ade0c6e6fb9b742afc78c764414ed36a | [
"MIT"
] | null | null | null | Plugins/InstancedPlugin/Source/InstancedPlugin/Private/InstancedPlugin.cpp | redcatbox/Instanced | 347790e8ade0c6e6fb9b742afc78c764414ed36a | [
"MIT"
] | null | null | null | // redbox, 2021
#include "InstancedPlugin.h"
#define LOCTEXT_NAMESPACE "FInstancedPluginModule"
DEFINE_LOG_CATEGORY(IPLog);
void FInstancedPluginModule::StartupModule()
{
}
void FInstancedPluginModule::ShutdownModule()
{
}
#undef LOCTEXT_NAMESPACE
IMPLEMENT_MODULE(FInstancedPluginModule, InstancedPlugin)
| 14.318182 | 57 | 0.812698 | redcatbox |
c3a15e53f26e01e9197c5eec46f350229140ff1e | 1,591 | cpp | C++ | newstacktemp.cpp | compliment/cpp-tasks | 31c5771e97c319860a1b546c68d92601b77e0223 | [
"Unlicense"
] | null | null | null | newstacktemp.cpp | compliment/cpp-tasks | 31c5771e97c319860a1b546c68d92601b77e0223 | [
"Unlicense"
] | null | null | null | newstacktemp.cpp | compliment/cpp-tasks | 31c5771e97c319860a1b546c68d92601b77e0223 | [
"Unlicense"
] | null | null | null | #include<iostream>
using namespace std;
template <class T,int Maxsize>
class Stack
{
T arr[Maxsize];
int top;
public:
Stack(){top=-1;}
bool IsEmpty(){ return top==-1;}
bool IsFull(){return top==Maxsize-1;}
void Push(T item){
if (IsFull()) {cout<<"Stack Overflow";return;}
... | 25.66129 | 62 | 0.51917 | compliment |
c3ac989045af53b11b8ba10c22de21f57b09a634 | 2,828 | cpp | C++ | Source/UMGIntro/REST/RestCaller.cpp | jgnoel86/unreal-test | 47f70a95cf9c8217c72094bbcb2cf2a6bd5d5a31 | [
"MIT"
] | null | null | null | Source/UMGIntro/REST/RestCaller.cpp | jgnoel86/unreal-test | 47f70a95cf9c8217c72094bbcb2cf2a6bd5d5a31 | [
"MIT"
] | null | null | null | Source/UMGIntro/REST/RestCaller.cpp | jgnoel86/unreal-test | 47f70a95cf9c8217c72094bbcb2cf2a6bd5d5a31 | [
"MIT"
] | null | null | null | /**
* @author Justin Noel
* @file RestCaller.cpp
*/
#include "RestCaller.h"
#include "EnumRequestVerbs.h"
#include "Http.h"
/**
* @brief Helper macro to perform a bool to string conversion.
* @param b bool to convert to True or False
*/
#define BOOL_TO_STRING(b) b ? TEXT("True") : TEXT("False")
namespace
{
... | 30.73913 | 113 | 0.696252 | jgnoel86 |
ce7b97b5606f0062fc0bd13488a29b0339e81e5e | 1,023 | cpp | C++ | codeforces/G - University Classes/Accepted.cpp | kzvd4729/Problem-Solving | 13b105e725a4c2f8db7fecc5d7a8f932b9fef4ab | [
"MIT"
] | 1 | 2022-02-11T16:55:36.000Z | 2022-02-11T16:55:36.000Z | codeforces/G - University Classes/Accepted.cpp | kzvd4729/Problem-Solving | 13b105e725a4c2f8db7fecc5d7a8f932b9fef4ab | [
"MIT"
] | null | null | null | codeforces/G - University Classes/Accepted.cpp | kzvd4729/Problem-Solving | 13b105e725a4c2f8db7fecc5d7a8f932b9fef4ab | [
"MIT"
] | null | null | null | /****************************************************************************************
* @author: JU_AAA: aniks2645, kzvd4729, prdx9_abir created: Sep/18/2017 19:11
* solution_verdict: Accepted language: GNU C++14
* run... | 31 | 111 | 0.367546 | kzvd4729 |
ce83158233b8e50e505e6793dd28e467e0563501 | 320 | cpp | C++ | src/VoxerEngine/VoxerEngine.cpp | cLazyZombie/wasmgl | 68f7cab5bab01d8f00a73c5d32d2d2f9ba6185a9 | [
"MIT"
] | null | null | null | src/VoxerEngine/VoxerEngine.cpp | cLazyZombie/wasmgl | 68f7cab5bab01d8f00a73c5d32d2d2f9ba6185a9 | [
"MIT"
] | null | null | null | src/VoxerEngine/VoxerEngine.cpp | cLazyZombie/wasmgl | 68f7cab5bab01d8f00a73c5d32d2d2f9ba6185a9 | [
"MIT"
] | null | null | null | #include "stdafx.h"
#include "VoxerEngine.h"
const int32 VOXEL_IN_CHUNK_XY = 32;
const int32 VOXEL_IN_CHUNK_Z = 128;
const float VOXEL_SIZE = 100.0f;
const float CHUNK_SIZE_XY = VOXEL_IN_CHUNK_XY * VOXEL_SIZE;
const float CHUNK_SIZE_Z = VOXEL_IN_CHUNK_Z * VOXEL_SIZE;
const float CHUNK_LOADING_RADIUS = 300.0f * 100.0f; | 35.555556 | 59 | 0.79375 | cLazyZombie |
ce92b226bd83633d208f299a00e4799d860fd19f | 6,021 | cpp | C++ | raptor/gallery/par_matrix_IO.cpp | lwhZJU/raptor | cc8a68f1998c180dd696cb4c6b5fb18987fa60df | [
"BSD-2-Clause"
] | 1 | 2019-03-28T08:05:11.000Z | 2019-03-28T08:05:11.000Z | raptor/gallery/par_matrix_IO.cpp | lwhZJU/raptor | cc8a68f1998c180dd696cb4c6b5fb18987fa60df | [
"BSD-2-Clause"
] | null | null | null | raptor/gallery/par_matrix_IO.cpp | lwhZJU/raptor | cc8a68f1998c180dd696cb4c6b5fb18987fa60df | [
"BSD-2-Clause"
] | null | null | null | // Copyright (c) 2015-2017, RAPtor Developer Team
// License: Simplified BSD, http://opensource.org/licenses/BSD-2-Clause
#include "par_matrix_IO.hpp"
#include "matrix_IO.hpp"
#include <float.h>
#include <stdio.h>
bool little_endian()
{
int num = 1;
return (*(char *)&num == 1);
}
template <class T>
void endi... | 29.228155 | 99 | 0.556884 | lwhZJU |
ce9a7783cfc131e34abe6d5a90009f4e96e5d442 | 182 | cpp | C++ | VR Engine/src/CompanionWindowShader.cpp | jeroennelis/VR_engine | 80a8cfd26181b8060c6a36f107beaa160c370a23 | [
"Apache-2.0"
] | null | null | null | VR Engine/src/CompanionWindowShader.cpp | jeroennelis/VR_engine | 80a8cfd26181b8060c6a36f107beaa160c370a23 | [
"Apache-2.0"
] | null | null | null | VR Engine/src/CompanionWindowShader.cpp | jeroennelis/VR_engine | 80a8cfd26181b8060c6a36f107beaa160c370a23 | [
"Apache-2.0"
] | null | null | null | #include "CompanionWindowShader.h"
CompanionWindowShader::CompanionWindowShader(const std::string & path)
:Shader(path)
{
}
CompanionWindowShader::~CompanionWindowShader()
{
}
| 13 | 70 | 0.774725 | jeroennelis |
ce9cd661c526fc2cd1cac19b1bd9ab0d5a3e514c | 4,329 | cpp | C++ | gwen/Util/ControlFactory/PageControl_Factory.cpp | Oipo/GWork | 3dd70c090bf8708dd3e7b9cfbcb67163bb7166db | [
"MIT"
] | null | null | null | gwen/Util/ControlFactory/PageControl_Factory.cpp | Oipo/GWork | 3dd70c090bf8708dd3e7b9cfbcb67163bb7166db | [
"MIT"
] | null | null | null | gwen/Util/ControlFactory/PageControl_Factory.cpp | Oipo/GWork | 3dd70c090bf8708dd3e7b9cfbcb67163bb7166db | [
"MIT"
] | null | null | null |
#include "Gwen/Util/ControlFactory.h"
#include "Gwen/Controls.h"
namespace Gwen
{
namespace ControlFactory
{
using namespace Gwen;
namespace Properties
{
class NumPages : public ControlFactory::Property
{
GWEN_CONTROL_FACTORY_PROPERTY(NumPages,... | 30.702128 | 96 | 0.478632 | Oipo |
ce9dff368a7649c3796f8f77a41fa1500dbd6de4 | 1,803 | cpp | C++ | tests/tree-postorder.cpp | USCbiostats/pruner | 0f6b575a25292612a433f20cbc2fea5ba2a19e2e | [
"MIT"
] | 1 | 2020-05-08T08:55:55.000Z | 2020-05-08T08:55:55.000Z | tests/tree-postorder.cpp | USCbiostats/pruner | 0f6b575a25292612a433f20cbc2fea5ba2a19e2e | [
"MIT"
] | 1 | 2020-01-16T23:22:52.000Z | 2020-01-16T23:22:52.000Z | tests/tree-postorder.cpp | USCbiostats/pruner | 0f6b575a25292612a433f20cbc2fea5ba2a19e2e | [
"MIT"
] | 2 | 2020-07-01T01:35:55.000Z | 2022-03-09T14:58:27.000Z | // #include <iostream>
// #include <vector>
// #include "../include/pruner.hpp"
// For creating the MAIN
// #define CATCH_CONFIG_MAIN
// #include "catch.hpp"
// int main () {
TEST_CASE("Post order sequences respects all", "[postorder]") {
// Tree 1 {1-0, 3-1, 2-1} : Multiple parents ----------------------------... | 25.757143 | 80 | 0.559068 | USCbiostats |
ce9f1d3a59ee2159f318d1b1705ababd3e587557 | 741 | hpp | C++ | include/scenes/TestScene.hpp | Hello56721/wars | d8fb1b88fbb8e863e95d17a2ff96cd5dc197f026 | [
"MIT"
] | 1 | 2021-09-29T14:33:37.000Z | 2021-09-29T14:33:37.000Z | include/scenes/TestScene.hpp | Hello56721/wars | d8fb1b88fbb8e863e95d17a2ff96cd5dc197f026 | [
"MIT"
] | null | null | null | include/scenes/TestScene.hpp | Hello56721/wars | d8fb1b88fbb8e863e95d17a2ff96cd5dc197f026 | [
"MIT"
] | null | null | null | #ifndef C32DE65B_193C_4675_A77E_2D558E3B681D
#define C32DE65B_193C_4675_A77E_2D558E3B681D
#include <Scene.hpp>
#include <graphics/Shaders.hpp>
#include <graphics/Sprite.hpp>
namespace wars::scenes
{
// A Scene that was created merely for testing purposes. It will be removed
// once I am done testing the engi... | 23.903226 | 79 | 0.668016 | Hello56721 |
cea5b7267975300c33b63905a2300402c09f7a1d | 4,585 | cpp | C++ | matog/db-tool/matog/db/XAnalyse.cpp | mergian/matog | d03de27b92a0772ceac1c556293217ff91d405eb | [
"BSD-3-Clause"
] | 1 | 2021-06-10T13:09:57.000Z | 2021-06-10T13:09:57.000Z | matog/db-tool/matog/db/XAnalyse.cpp | mergian/matog | d03de27b92a0772ceac1c556293217ff91d405eb | [
"BSD-3-Clause"
] | null | null | null | matog/db-tool/matog/db/XAnalyse.cpp | mergian/matog | d03de27b92a0772ceac1c556293217ff91d405eb | [
"BSD-3-Clause"
] | null | null | null | // Copyright (c) 2015 Nicolas Weber / GCC / TU-Darmstadt. All rights reserved.
// Use of this source code is governed by the BSD 3-Clause license that can be
// found in the LICENSE file.
#include <matog/shared.h>
#include <matog/log.h>
#include <matog/util.h>
#include <matog/cuda.h>
#include "../db.h"
namespace mat... | 27.45509 | 159 | 0.620938 | mergian |
cea66dafe7fe4922f0779bc38f1c1edffcfc88d1 | 906 | cpp | C++ | src/theory/builtin/theory_builtin.cpp | guykatzz/CVC4_idl_lab | 24cb1ed0c7c1445cbfb592a7ebcb454b70897d30 | [
"BSL-1.0"
] | null | null | null | src/theory/builtin/theory_builtin.cpp | guykatzz/CVC4_idl_lab | 24cb1ed0c7c1445cbfb592a7ebcb454b70897d30 | [
"BSL-1.0"
] | null | null | null | src/theory/builtin/theory_builtin.cpp | guykatzz/CVC4_idl_lab | 24cb1ed0c7c1445cbfb592a7ebcb454b70897d30 | [
"BSL-1.0"
] | null | null | null | /********************* */
/*! \file theory_builtin.cpp
** \verbatim
** Top contributors (to current version):
** Morgan Deters, Tim King
** This file is part of the CVC4 project.
** Copyright (c) 2009-2016 by the authors listed in the file AUTHORS
** in the... | 29.225806 | 80 | 0.65894 | guykatzz |
cea6a4131c4624c35d0beac5401a138d23e1b28e | 104 | cpp | C++ | src/control/Signal.cpp | ClaudiaVisentin/eeros-framework | 63739a2e33b0c5e9e573748fef675131c35181a6 | [
"Apache-2.0"
] | 10 | 2015-02-17T15:27:50.000Z | 2021-12-10T08:34:13.000Z | src/control/Signal.cpp | ClaudiaVisentin/eeros-framework | 63739a2e33b0c5e9e573748fef675131c35181a6 | [
"Apache-2.0"
] | 6 | 2016-05-10T17:11:09.000Z | 2022-03-31T07:52:11.000Z | src/control/Signal.cpp | ClaudiaVisentin/eeros-framework | 63739a2e33b0c5e9e573748fef675131c35181a6 | [
"Apache-2.0"
] | 13 | 2016-05-01T09:56:51.000Z | 2022-03-28T09:27:49.000Z | #include <eeros/types.hpp>
namespace eeros {
namespace control {
uint16_t signalCounter = 1;
};
};
| 13 | 29 | 0.692308 | ClaudiaVisentin |
cea7481197caf24e8155c88a1911c8ddde1f3f6b | 5,023 | cpp | C++ | inf8601-lab1-2.1.0/src/dragon_tbb.cpp | oliviercotte/Parallel-system | c24155f7302218c0547ba5c33de48098ed441bec | [
"MIT"
] | null | null | null | inf8601-lab1-2.1.0/src/dragon_tbb.cpp | oliviercotte/Parallel-system | c24155f7302218c0547ba5c33de48098ed441bec | [
"MIT"
] | null | null | null | inf8601-lab1-2.1.0/src/dragon_tbb.cpp | oliviercotte/Parallel-system | c24155f7302218c0547ba5c33de48098ed441bec | [
"MIT"
] | null | null | null | /*
* dragon_tbb.c
*
* Created on: 2011-08-17
* Author: Francis Giraldeau <francis.giraldeau@gmail.com>
*/
#include <iostream>
extern "C" {
#include "dragon.h"
#include "color.h"
#include "utils.h"
}
#include "dragon_tbb.h"
#include "tbb/tbb.h"
#include "TidMap.h"
using namespace std;
using namespace tbb;
... | 23.147465 | 76 | 0.703365 | oliviercotte |
cebbee5c13026874a2f1cf8930de0f557e8bfb6e | 646 | cpp | C++ | variateArray1.cpp | maxerin/GitTest | e2cb5bc62ff55923e8f2845ce24b47cce83acc3c | [
"Apache-2.0"
] | null | null | null | variateArray1.cpp | maxerin/GitTest | e2cb5bc62ff55923e8f2845ce24b47cce83acc3c | [
"Apache-2.0"
] | null | null | null | variateArray1.cpp | maxerin/GitTest | e2cb5bc62ff55923e8f2845ce24b47cce83acc3c | [
"Apache-2.0"
] | null | null | null | #include <cmath>
#include <cstdio>
#include <vector>
#include <iostream>
#include <algorithm>
#include <sstream>
using namespace std;
/* Test cases
2 2
3 1 5 4
5 1 2 8 9 3
0 1
1 3
*/
int main() {
int n, q;
cin >> n >> q;
int** v = new int*[n];
int sz = 0;
for (int i = 0; i < n; ++i) {
ci... | 14.355556 | 34 | 0.4613 | maxerin |
cec08afa5d27601d3ba6d21c7d42a13ad1df4d37 | 2,612 | hpp | C++ | NumberWithUnits.hpp | AndreyFriedman/num-with-units | 007030e5353402a6739d3c8b8be871ee37ffc259 | [
"MIT"
] | null | null | null | NumberWithUnits.hpp | AndreyFriedman/num-with-units | 007030e5353402a6739d3c8b8be871ee37ffc259 | [
"MIT"
] | null | null | null | NumberWithUnits.hpp | AndreyFriedman/num-with-units | 007030e5353402a6739d3c8b8be871ee37ffc259 | [
"MIT"
] | null | null | null | #ifndef NUMBERWITHUNITS_
#define NUMBERWITHUNITS_
#include <iostream>
#include <string>
#include <unordered_map>
#include <exception>
namespace ariel
{
typedef struct unit{
std::string s;
double value;
} unit;
class NumberWithUnits{
private:
double value;
std::string... | 34.368421 | 92 | 0.602986 | AndreyFriedman |
cecfb3edf1a044fa934c6b6bd761a0db6bf9eea9 | 334 | cpp | C++ | leetcode/dp/easy/509.fibonacci-number.cpp | saurabhraj042/dsaPrep | 0973a03bc565a2850003c7e48d99b97ff83b1d01 | [
"MIT"
] | 23 | 2021-10-30T04:11:52.000Z | 2021-11-27T09:16:18.000Z | leetcode/dp/easy/509.fibonacci-number.cpp | Pawanupadhyay10/placement-prep | 0449fa7cbc56e7933e6b090936ab7c15ca5f290f | [
"MIT"
] | null | null | null | leetcode/dp/easy/509.fibonacci-number.cpp | Pawanupadhyay10/placement-prep | 0449fa7cbc56e7933e6b090936ab7c15ca5f290f | [
"MIT"
] | 4 | 2021-10-30T03:26:05.000Z | 2021-11-14T12:15:04.000Z | // https://leetcode.com/problems/fibonacci-number/
class Solution {
public:
int fib(int n) {
// Optimal DP soluchan ^_^
int dp[31] = {0};
dp[0] = 0;
dp[1] = 1;
for(int i= 2;i<=n;i++){
dp[i] = dp[i-1] + dp[i-2];
}
return d... | 19.647059 | 50 | 0.398204 | saurabhraj042 |
ced149eae597bd1145e9c123ff34805727b4e06a | 154 | cpp | C++ | cppcheck/data/c_files/224.cpp | awsm-research/LineVul | 246baf18c1932094564a10c9b81efb21914b2978 | [
"MIT"
] | 2 | 2022-03-23T12:16:20.000Z | 2022-03-31T06:19:40.000Z | cppcheck/data/c_files/224.cpp | awsm-research/LineVul | 246baf18c1932094564a10c9b81efb21914b2978 | [
"MIT"
] | null | null | null | cppcheck/data/c_files/224.cpp | awsm-research/LineVul | 246baf18c1932094564a10c9b81efb21914b2978 | [
"MIT"
] | null | null | null | void RTCSessionDescriptionRequestImpl::requestFailed(const String& error)
{
if (m_errorCallback)
m_errorCallback->handleEvent(error);
clear();
}
| 19.25 | 73 | 0.766234 | awsm-research |
cedf5b2d27c672cbed92dc6d3755136d04d3bc7d | 3,242 | cpp | C++ | CaWE/MapEditor/Commands/ModifyModel.cpp | dns/Cafu | 77b34014cc7493d6015db7d674439fe8c23f6493 | [
"MIT"
] | 3 | 2020-04-11T13:00:31.000Z | 2020-12-07T03:19:10.000Z | CaWE/MapEditor/Commands/ModifyModel.cpp | DNS/Cafu | 77b34014cc7493d6015db7d674439fe8c23f6493 | [
"MIT"
] | null | null | null | CaWE/MapEditor/Commands/ModifyModel.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 "ModifyModel.hpp"
#include "../MapModel.hpp"
#include "../MapDocument.hpp"
#include "../../GameConfig.hpp"
#include "ClipSys/CollisionModelMan.hpp"
#includ... | 31.173077 | 111 | 0.720234 | dns |
cedff17fe333b554e3f64e5aef703ec7d0492757 | 1,597 | hpp | C++ | Server/Server/Network.hpp | pablotomico/ProjectMORPG | 3dd5c7d001cd5f59bd6fafd310d4eb1c51ae3089 | [
"MIT"
] | 2 | 2021-05-30T16:34:26.000Z | 2021-08-03T11:37:37.000Z | Server/Server/Network.hpp | pablotomico/ProjectMORPG | 3dd5c7d001cd5f59bd6fafd310d4eb1c51ae3089 | [
"MIT"
] | null | null | null | Server/Server/Network.hpp | pablotomico/ProjectMORPG | 3dd5c7d001cd5f59bd6fafd310d4eb1c51ae3089 | [
"MIT"
] | null | null | null | #pragma once
#define _WINSOCK_DEPRECATED_NO_WARNINGS // for WSAAsyncSelect
#include <WinSock2.h>
#include <WS2tcpip.h>
#include <list>
#include <unordered_map>
#include <queue>
#include <SFML/System.hpp>
#include "Client.hpp"
#pragma comment(lib, "ws2_32.lib")
#define WM_SOCKET (WM_USER + 1)
#define SERVERIP "127.... | 20.74026 | 70 | 0.77583 | pablotomico |
cee1b328714115caaae03c466d11e2b9bfbbad75 | 565 | hpp | C++ | libs/input/include/sge/input/joypad/ff/type.hpp | cpreh/spacegameengine | 313a1c34160b42a5135f8223ffaa3a31bc075a01 | [
"BSL-1.0"
] | 2 | 2016-01-27T13:18:14.000Z | 2018-05-11T01:11:32.000Z | libs/input/include/sge/input/joypad/ff/type.hpp | cpreh/spacegameengine | 313a1c34160b42a5135f8223ffaa3a31bc075a01 | [
"BSL-1.0"
] | null | null | null | libs/input/include/sge/input/joypad/ff/type.hpp | cpreh/spacegameengine | 313a1c34160b42a5135f8223ffaa3a31bc075a01 | [
"BSL-1.0"
] | 3 | 2018-05-11T01:11:34.000Z | 2021-04-24T19:47:45.000Z | // Copyright Carl Philipp Reh 2006 - 2019.
// Distributed under the Boost Software License, Version 1.0.
// (See accompanying file LICENSE_1_0.txt or copy at
// http://www.boost.org/LICENSE_1_0.txt)
#ifndef SGE_INPUT_JOYPAD_FF_TYPE_HPP_INCLUDED
#define SGE_INPUT_JOYPAD_FF_TYPE_HPP_INCLUDED
#inclu... | 17.121212 | 61 | 0.707965 | cpreh |
cee2e5dacc70cacb04f9d72dba7983963af2225d | 4,643 | cpp | C++ | test.cpp | michibo/sprpwr | a1ec573d78edf44e68d517fe2b836abaf9e7f628 | [
"MIT"
] | null | null | null | test.cpp | michibo/sprpwr | a1ec573d78edf44e68d517fe2b836abaf9e7f628 | [
"MIT"
] | null | null | null | test.cpp | michibo/sprpwr | a1ec573d78edf44e68d517fe2b836abaf9e7f628 | [
"MIT"
] | null | null | null |
// This C++ header is part of the sprpwr library.
// With this library multivariate formal power
// series can be expanded.
//
// Author: Michael Borinsky
// License: MIT
// Copyright 2019
#include <iostream>
#include <iterator>
#include <algorithm>
#include <chrono>
#include <functional>
#include <cmath>
#inclu... | 25.097297 | 120 | 0.539953 | michibo |
cee8037d931c29951736acde86b76fabda6f5f5d | 2,391 | cpp | C++ | sources/Skybox.cpp | HamilcarR/Se-Hara | 8b9168978f5b38e470945e0b74499b0664d52212 | [
"MIT"
] | 2 | 2016-11-29T04:32:32.000Z | 2017-10-14T06:21:09.000Z | sources/Skybox.cpp | HamilcarR/ZeEngine | 8b9168978f5b38e470945e0b74499b0664d52212 | [
"MIT"
] | 1 | 2016-11-24T04:38:42.000Z | 2016-11-24T04:38:42.000Z | sources/Skybox.cpp | HamilcarR/Sahara | 8b9168978f5b38e470945e0b74499b0664d52212 | [
"MIT"
] | null | null | null | #include "../includes/Skybox.h"
using namespace std;
using namespace glm;
float SIZE = 500.f;
GLfloat VERTICES[] = {
-SIZE, SIZE, -SIZE,
-SIZE, -SIZE, -SIZE,
SIZE, -SIZE, -SIZE,
SIZE, -SIZE, -SIZE,
SIZE, SIZE, -SIZE,
-SIZE, SIZE, -SIZE,
-SIZE, -SIZE, SIZE,
-SIZE, -SIZE, -SIZE,
-S... | 19.128 | 80 | 0.63279 | HamilcarR |
ceeb473dc546c400b5feb251ced2cb73385ea080 | 204 | cpp | C++ | pass/fplan/node_hier_floorp.cpp | arikyueh/livehd | cbbf13e77359cf135638b3710fd3ea4a6c895b68 | [
"BSD-3-Clause"
] | 1 | 2021-01-07T00:15:00.000Z | 2021-01-07T00:15:00.000Z | pass/fplan/node_hier_floorp.cpp | arikyueh/livehd | cbbf13e77359cf135638b3710fd3ea4a6c895b68 | [
"BSD-3-Clause"
] | null | null | null | pass/fplan/node_hier_floorp.cpp | arikyueh/livehd | cbbf13e77359cf135638b3710fd3ea4a6c895b68 | [
"BSD-3-Clause"
] | null | null | null | #include "node_hier_floorp.hpp"
void Node_hier_floorp::load_lg(LGraph* root, const std::string_view lgdb_path) {
(void)root;
(void)lgdb_path;
// TODO: write this when traversal bug gets fixed
} | 22.666667 | 80 | 0.735294 | arikyueh |
ceee55d92cbb828f4f7ffcb10c7b3cd8427ee1ec | 437,222 | cpp | C++ | Project1/leetcode.cpp | guannan-he/cppLearning | 8fe3ff661afe1c814dbf44fc1ebfd9998f51eac6 | [
"WTFPL"
] | null | null | null | Project1/leetcode.cpp | guannan-he/cppLearning | 8fe3ff661afe1c814dbf44fc1ebfd9998f51eac6 | [
"WTFPL"
] | null | null | null | Project1/leetcode.cpp | guannan-he/cppLearning | 8fe3ff661afe1c814dbf44fc1ebfd9998f51eac6 | [
"WTFPL"
] | null | null | null | #define NULL 0
#include <string>
#include <vector>
#include <queue>
#include <unordered_set>
#include <unordered_map>
#include <map>
#include <math.h>
#include <stack>
#include <list>
#include <iostream>
#include <set>
#include <numeric>
#include <algorithm>
#include <sstream>
using namespace std;
//链表
#if 0
//Defini... | 23.31975 | 211 | 0.542102 | guannan-he |
cef67be72fa3ceccb42d3c937a91de6e9aec4f2b | 1,698 | cpp | C++ | src/Dungeon/Dungeon.cpp | zachtepper/project-awful | 59e2e9261100a2b4449022725435d21b17c6f5b4 | [
"MIT"
] | null | null | null | src/Dungeon/Dungeon.cpp | zachtepper/project-awful | 59e2e9261100a2b4449022725435d21b17c6f5b4 | [
"MIT"
] | null | null | null | src/Dungeon/Dungeon.cpp | zachtepper/project-awful | 59e2e9261100a2b4449022725435d21b17c6f5b4 | [
"MIT"
] | null | null | null | #include "Dungeon.hpp"
// Room
Dungeon::Room::Room(int id, int top, int left, int width, int height)
{
this->id = id;
this->top = top;
this->left = left;
this->width = width;
this->height = height;
this->parent = NULL;
this->leftChild = NULL;
this->rightChild = NULL;
this->dungeon ... | 21.493671 | 116 | 0.583628 | zachtepper |
cefd3d0c435444051e3a9fb124dedee33ac2f932 | 2,389 | cpp | C++ | assignment07/assignment7-1.cpp | qpakzk/SSU-CSE-Problem-Solving | 44cc6b913d86008c2f23536ed0c395115b6ccef6 | [
"MIT"
] | null | null | null | assignment07/assignment7-1.cpp | qpakzk/SSU-CSE-Problem-Solving | 44cc6b913d86008c2f23536ed0c395115b6ccef6 | [
"MIT"
] | null | null | null | assignment07/assignment7-1.cpp | qpakzk/SSU-CSE-Problem-Solving | 44cc6b913d86008c2f23536ed0c395115b6ccef6 | [
"MIT"
] | null | null | null | /*
* Problem Solving Assignment7-1 : DSLR
* https://www.acmicpc.net/problem/9019
*/
#include <cstdio>
#include <cstring>
#include <queue>
#include <stack>
#define MAXLEN 10000
using namespace std;
int before[MAXLEN];
bool visited[MAXLEN];
char op[MAXLEN];
int D(int n) {
n *= 2;
n %= 10000;
return n;
... | 18.51938 | 44 | 0.370029 | qpakzk |
ceff2abe0573eddfb56c19026a47125bba22e751 | 2,025 | cpp | C++ | src/common/vector_operations/gather.cpp | dfooz/duckdb | 6978d121bcaf5d56f35be51caef6d7662ef3c1c4 | [
"MIT"
] | 9 | 2021-09-08T13:13:03.000Z | 2022-03-11T21:18:05.000Z | src/common/vector_operations/gather.cpp | dfooz/duckdb | 6978d121bcaf5d56f35be51caef6d7662ef3c1c4 | [
"MIT"
] | 1 | 2021-12-12T03:36:02.000Z | 2021-12-12T03:36:02.000Z | src/common/vector_operations/gather.cpp | dfooz/duckdb | 6978d121bcaf5d56f35be51caef6d7662ef3c1c4 | [
"MIT"
] | 1 | 2022-01-18T09:38:19.000Z | 2022-01-18T09:38:19.000Z | //===--------------------------------------------------------------------===//
// gather.cpp
// Description: This file contains the implementation of the gather operators
//===--------------------------------------------------------------------===//
#include "duckdb/common/exception.hpp"
#include "duckdb/common/operat... | 31.153846 | 97 | 0.676543 | dfooz |
3000c6f5a082aae1cfc4c5eb8e05840395347e89 | 7,294 | cpp | C++ | VK9-Library/CIndexBuffer9.cpp | raj347/VK9 | 31ae780b64525d185284a5ff4564bf72d17fc310 | [
"Zlib"
] | null | null | null | VK9-Library/CIndexBuffer9.cpp | raj347/VK9 | 31ae780b64525d185284a5ff4564bf72d17fc310 | [
"Zlib"
] | null | null | null | VK9-Library/CIndexBuffer9.cpp | raj347/VK9 | 31ae780b64525d185284a5ff4564bf72d17fc310 | [
"Zlib"
] | 1 | 2022-03-30T00:44:51.000Z | 2022-03-30T00:44:51.000Z | /*
Copyright(c) 2016 Christopher Joseph Dean Schaefer
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 use this software for any purpose,
including co... | 25.865248 | 213 | 0.734439 | raj347 |
300336a329a3de7f27ef9e392894338c4e59a024 | 410 | hpp | C++ | library/ATF/_pvppointlimit_info.hpp | lemkova/Yorozuya | f445d800078d9aba5de28f122cedfa03f26a38e4 | [
"MIT"
] | 29 | 2017-07-01T23:08:31.000Z | 2022-02-19T10:22:45.000Z | library/ATF/_pvppointlimit_info.hpp | kotopes/Yorozuya | 605c97d3a627a8f6545cc09f2a1b0a8afdedd33a | [
"MIT"
] | 90 | 2017-10-18T21:24:51.000Z | 2019-06-06T02:30:33.000Z | library/ATF/_pvppointlimit_info.hpp | kotopes/Yorozuya | 605c97d3a627a8f6545cc09f2a1b0a8afdedd33a | [
"MIT"
] | 44 | 2017-12-19T08:02:59.000Z | 2022-02-24T23:15:01.000Z | // This file auto generated by plugin for ida pro. Generated code only for x64. Please, dont change manually
#pragma once
#include <common/common.h>
START_ATF_NAMESPACE
struct _pvppointlimit_info
{
__int64 tUpdatedate;
bool bUseUp;
char byLimitRate;
long double dOriginalPoint;... | 22.777778 | 108 | 0.690244 | lemkova |
30089700ff87b8feee2dc698e20246679e10b6d6 | 3,285 | cpp | C++ | Dev04_Handout/Motor2D/Enemy.cpp | bottzo/Platformer-Espriu_Bach | 17931969900221ad9041e1bf0979d385c8ecf03c | [
"Apache-2.0"
] | null | null | null | Dev04_Handout/Motor2D/Enemy.cpp | bottzo/Platformer-Espriu_Bach | 17931969900221ad9041e1bf0979d385c8ecf03c | [
"Apache-2.0"
] | null | null | null | Dev04_Handout/Motor2D/Enemy.cpp | bottzo/Platformer-Espriu_Bach | 17931969900221ad9041e1bf0979d385c8ecf03c | [
"Apache-2.0"
] | null | null | null | #include "Enemy.h"
#include "player.h"
#include "j1Map.h"
#include "j1App.h"
#include "j1Collisions.h"
#include "p2Log.h"
#include "Entity.h"
#include "p2DynArray.h"
#include "j1Pathfinding.h"
enemy::enemy() {}
enemy::~enemy() {}
ground_enemy::ground_enemy() {
Load_Entity(App->entities->ground_enemy_sprite.GetStri... | 32.85 | 258 | 0.71172 | bottzo |
300aaf079fb3a3fe5585dfa1db30dee6a5726ca9 | 2,627 | cpp | C++ | retrace/daemon/glframe_os_linux.cpp | austriancoder/apitrace | 5919778f7bcba82433f80bda4fb225e43183a62f | [
"MIT"
] | 1 | 2021-03-05T10:49:37.000Z | 2021-03-05T10:49:37.000Z | retrace/daemon/glframe_os_linux.cpp | austriancoder/apitrace | 5919778f7bcba82433f80bda4fb225e43183a62f | [
"MIT"
] | null | null | null | retrace/daemon/glframe_os_linux.cpp | austriancoder/apitrace | 5919778f7bcba82433f80bda4fb225e43183a62f | [
"MIT"
] | 1 | 2018-10-05T03:09:13.000Z | 2018-10-05T03:09:13.000Z | // Copyright (C) Intel Corp. 2015. All Rights Reserved.
// Permission is hereby granted, free of charge, to any person obtaining
// a copy of this software and associated documentation files (the
// "Software"), to deal in the Software without restriction, including
// without limitation the rights to use, copy, mod... | 28.868132 | 75 | 0.661211 | austriancoder |
300c46c2b995bf412507af1244702bc7d6633c99 | 710 | cpp | C++ | test/hdf5.cpp | uos/hatsdf_slam | f30f69c0f6b9286cd4fa51ca17f0e2d423ca4682 | [
"BSD-3-Clause"
] | 5 | 2021-05-21T07:52:50.000Z | 2022-02-09T04:26:31.000Z | test/hdf5.cpp | uos/hatsdf_slam | f30f69c0f6b9286cd4fa51ca17f0e2d423ca4682 | [
"BSD-3-Clause"
] | null | null | null | test/hdf5.cpp | uos/hatsdf_slam | f30f69c0f6b9286cd4fa51ca17f0e2d423ca4682 | [
"BSD-3-Clause"
] | 1 | 2022-02-09T04:26:33.000Z | 2022-02-09T04:26:33.000Z | #include <highfive/H5File.hpp>
#include <vector>
#include "catch2_config.h"
using namespace HighFive;
TEST_CASE("HighFive/HDF5 working", "[hdf5][HighFive]")
{
std::cout << "Testing 'HighFive/HDF5 working'" << std::endl;
// we create a new hdf5 file
File file("/tmp/HighFiveTest.h5", File::ReadWrite | File:... | 29.583333 | 87 | 0.673239 | uos |
3019da15bce57f21959d018c7bf6cb617dc32780 | 902 | cpp | C++ | Shape/Vertex.cpp | SatoshiMabuchi/Crystal | 91b2d72e5544cf86183587d2cfea48ca7f390dd4 | [
"MIT"
] | null | null | null | Shape/Vertex.cpp | SatoshiMabuchi/Crystal | 91b2d72e5544cf86183587d2cfea48ca7f390dd4 | [
"MIT"
] | null | null | null | Shape/Vertex.cpp | SatoshiMabuchi/Crystal | 91b2d72e5544cf86183587d2cfea48ca7f390dd4 | [
"MIT"
] | null | null | null | #include "stdafx.h"
#include "Vertex.h"
using namespace Crystal::Math;
using namespace Crystal::Shape;
Vertex::Vertex(const Vector3df& position, const unsigned int id) :
position(position),
id(id)
{}
Vertex::Vertex(const Vector3df& position, const Vector3df& normal, const unsigned int id) :
position(p... | 21.47619 | 119 | 0.677384 | SatoshiMabuchi |
301a7a007dc41be799b1a078bcf2c7dabd901ac7 | 1,664 | cpp | C++ | frameworks/native/services/opersysnativeservice/OpersysNativeService.cpp | opersys/native-service | 40968e4b88cd88974f011c8da21240c45c8595d3 | [
"BSD-3-Clause"
] | 19 | 2016-02-11T02:38:53.000Z | 2021-05-17T22:51:22.000Z | frameworks/native/services/opersysnativeservice/OpersysNativeService.cpp | opersys/native-service | 40968e4b88cd88974f011c8da21240c45c8595d3 | [
"BSD-3-Clause"
] | null | null | null | frameworks/native/services/opersysnativeservice/OpersysNativeService.cpp | opersys/native-service | 40968e4b88cd88974f011c8da21240c45c8595d3 | [
"BSD-3-Clause"
] | 7 | 2016-07-07T18:31:41.000Z | 2019-09-10T06:30:09.000Z | /*
* Copyright 2013-2016, Opersys inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agr... | 25.6 | 90 | 0.614183 | opersys |
3021cabc59d3442e0834a1c91b3b67d92944bd63 | 914 | cpp | C++ | game/src/Game/SplashScene.cpp | emilhornlund/DV1537Project-AlienAdventure | b370e49d259ee722edd6f39c979824280522076a | [
"MIT"
] | null | null | null | game/src/Game/SplashScene.cpp | emilhornlund/DV1537Project-AlienAdventure | b370e49d259ee722edd6f39c979824280522076a | [
"MIT"
] | null | null | null | game/src/Game/SplashScene.cpp | emilhornlund/DV1537Project-AlienAdventure | b370e49d259ee722edd6f39c979824280522076a | [
"MIT"
] | null | null | null | //
// Created by Emil Hörnlund on 2018-09-14.
//
#include <Core/ObjectHandler.hpp>
#include <Core/SceneHandler.hpp>
#include <Game/Game.hpp>
#include <Game/SplashObject.hpp>
#include <Game/SplashScene.hpp>
#include <iostream>
AA::SplashScene::SplashScene(CGL::IGame *game) : CGL::IScene(game) {
auto obj = std::m... | 16.925926 | 68 | 0.690372 | emilhornlund |
6f73f8c42f10a41960a49982ef7c5273d5b70d5f | 428 | cpp | C++ | cses/sorting-and-searching/ferris-wheel.cpp | tysm/cpsols | 262212646203e516d1706edf962290de93762611 | [
"MIT"
] | 4 | 2020-10-05T19:24:10.000Z | 2021-07-15T00:45:43.000Z | cses/sorting-and-searching/ferris-wheel.cpp | tysm/cpsols | 262212646203e516d1706edf962290de93762611 | [
"MIT"
] | null | null | null | cses/sorting-and-searching/ferris-wheel.cpp | tysm/cpsols | 262212646203e516d1706edf962290de93762611 | [
"MIT"
] | null | null | null | #include <cpplib/stdinc.hpp>
int32_t main(){
// https://cses.fi/problemset/task/1090
desync();
int n, x;
cin >> n >> x;
vi v(n);
for(int &i:v)
cin >> i;
sort(v.begin(), v.end());
int i=0, j=n-1, ans = 0;
while(i <= j){
ans++;
int a = v[i], b = v[j];
i... | 18.608696 | 43 | 0.399533 | tysm |
6f75c98de32d59e74f05f354dc34eb3264c0fdf0 | 7,787 | hpp | C++ | gpcl/intrusive_list.hpp | Chingyat/gpcl | c2702b8b13fa948f6753285ba62455ddf9413578 | [
"BSL-1.0"
] | 2 | 2021-02-10T11:51:25.000Z | 2021-12-20T12:35:36.000Z | gpcl/intrusive_list.hpp | Chingyat/gpcl | de4157a2bab07640539d9051fc7bb66c9c82eaf4 | [
"BSL-1.0"
] | 2 | 2021-11-28T03:09:15.000Z | 2021-11-29T15:08:43.000Z | gpcl/intrusive_list.hpp | Chingyat/gpcl | c2702b8b13fa948f6753285ba62455ddf9413578 | [
"BSL-1.0"
] | null | null | null | //
// intrusive_list.hpp
// ~~~~~~~~~~~~~~~~~~
//
// Copyright (c) 2020 Zhengyi Fu (tsingyat at outlook dot 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)
//
#ifndef GPCL_INTRUSIVE_LIST_HPP
#define GPCL_IN... | 23.454819 | 80 | 0.678952 | Chingyat |
6f76bd6a9da234b1616213d9337e64bb7a2b1147 | 10,006 | cpp | C++ | libredex/MethodDevirtualizer.cpp | thezhangwei/redex | d2da16dcda0ca8a52d3de16456531dfc7793c7b5 | [
"BSD-3-Clause"
] | null | null | null | libredex/MethodDevirtualizer.cpp | thezhangwei/redex | d2da16dcda0ca8a52d3de16456531dfc7793c7b5 | [
"BSD-3-Clause"
] | null | null | null | libredex/MethodDevirtualizer.cpp | thezhangwei/redex | d2da16dcda0ca8a52d3de16456531dfc7793c7b5 | [
"BSD-3-Clause"
] | null | null | null | /**
* Copyright (c) 2017-present, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*/
#include "... | 29.779762 | 80 | 0.6664 | thezhangwei |
6f7752ba6e4f4b31a44b6d9c531217d493ba3a45 | 2,156 | cpp | C++ | nimbro_topic_transport/test/test_bidirectional.cpp | lsolanka-flya/nimbro_network | 13768a9971ea91ce081c4774fb7fecfc4c323912 | [
"BSD-3-Clause"
] | 105 | 2015-09-22T14:36:32.000Z | 2022-03-09T08:51:43.000Z | nimbro_topic_transport/test/test_bidirectional.cpp | tradr-project/nimbro_network | 97e15d7d4c0d1a56fa85cdc62da13b00ef5275a9 | [
"BSD-3-Clause"
] | 19 | 2015-09-25T23:23:39.000Z | 2021-11-04T16:59:49.000Z | nimbro_topic_transport/test/test_bidirectional.cpp | tradr-project/nimbro_network | 97e15d7d4c0d1a56fa85cdc62da13b00ef5275a9 | [
"BSD-3-Clause"
] | 33 | 2015-09-25T18:11:31.000Z | 2022-03-23T06:55:28.000Z | // Unit tests for nimbro_topic_transport
// Author: Max Schwarz <max.schwarz@uni-bonn.de>
#include <catch_ros/catch.hpp>
#include <ros/package.h>
#include <ros/param.h>
#include <ros/node_handle.h>
#include <std_msgs/Int64.h>
int g_counter = 0;
void handleMessageLocal(const std_msgs::Int64 &msg)
{
//REQUIRE(g_cou... | 22.458333 | 115 | 0.693414 | lsolanka-flya |
6f819dd8cc9a224e5416edd92d32920583f64f2b | 4,165 | cpp | C++ | Game/OGRE/RenderSystems/GL/src/OgreGLHardwareOcclusionQuery.cpp | hackerlank/SourceCode | b702c9e0a9ca5d86933f3c827abb02a18ffc9a59 | [
"MIT"
] | 4 | 2021-07-31T13:56:01.000Z | 2021-11-13T02:55:10.000Z | Game/OGRE/RenderSystems/GL/src/OgreGLHardwareOcclusionQuery.cpp | shacojx/SourceCodeGameTLBB | e3cea615b06761c2098a05427a5f41c236b71bf7 | [
"MIT"
] | null | null | null | Game/OGRE/RenderSystems/GL/src/OgreGLHardwareOcclusionQuery.cpp | shacojx/SourceCodeGameTLBB | e3cea615b06761c2098a05427a5f41c236b71bf7 | [
"MIT"
] | 7 | 2021-08-31T14:34:23.000Z | 2022-01-19T08:25:58.000Z | /*
-----------------------------------------------------------------------------
This source file is part of OGRE
(Object-oriented Graphics Rendering Engine)
For the latest info, see http://ogre.sourceforge.net/
Copyright (c) 2000-2005 The OGRE Team
Also see acknowledgements in Readme.html
This program is free so... | 28.923611 | 101 | 0.642017 | hackerlank |
6f8adec5b33b6eaea56c23867a485f750db6f26d | 235 | hpp | C++ | include/CountNumbersWithUniqueDigits.hpp | yanzhe-chen/LeetCode | d82f0b9721ea613ab216c78e7286671d0e9e4187 | [
"MIT"
] | 43 | 2015-10-10T12:59:52.000Z | 2018-07-11T18:07:00.000Z | include/CountNumbersWithUniqueDigits.hpp | yanzhe-chen/LeetCode | d82f0b9721ea613ab216c78e7286671d0e9e4187 | [
"MIT"
] | null | null | null | include/CountNumbersWithUniqueDigits.hpp | yanzhe-chen/LeetCode | d82f0b9721ea613ab216c78e7286671d0e9e4187 | [
"MIT"
] | 11 | 2015-10-10T14:41:11.000Z | 2018-07-28T06:03:16.000Z | #ifndef COUNT_NUMBERS_WITH_UNIQUE_DIGITS_HPP_
#define COUNT_NUMBERS_WITH_UNIQUE_DIGITS_HPP_
class CountNumbersWithUniqueDigits {
public:
int countNumbersWithUniqueDigits(int n);
};
#endif // COUNT_NUMBERS_WITH_UNIQUE_DIGITS_HPP_
| 23.5 | 47 | 0.859574 | yanzhe-chen |
6f9209c85d7bf2531257f3cd4c6956969e814762 | 715 | hpp | C++ | Include/Game/Scene.hpp | igorlev91/DemoEngine | 8aaef0d3504826c9dcabe0a826a54613fca81c87 | [
"Apache-2.0"
] | null | null | null | Include/Game/Scene.hpp | igorlev91/DemoEngine | 8aaef0d3504826c9dcabe0a826a54613fca81c87 | [
"Apache-2.0"
] | null | null | null | Include/Game/Scene.hpp | igorlev91/DemoEngine | 8aaef0d3504826c9dcabe0a826a54613fca81c87 | [
"Apache-2.0"
] | null | null | null | #pragma once
/*
Scene
*/
namespace Game
{
// Scene base class.
class Scene
{
protected:
// Protected constructor.
Scene() = default;
public:
// Virtual destructor.
virtual ~Scene() = default;
// Called when the scene is about to enter.
virtual ... | 17.439024 | 52 | 0.52028 | igorlev91 |
6f9a36efbd782aa8b8dc0daff0a448f1d4813842 | 3,035 | cpp | C++ | debugger/src/debugger.cpp | emrsmsrli/gameboi | 6448722529bc64184e30a945f0e5ec4203265e10 | [
"MIT"
] | 23 | 2019-08-27T13:54:27.000Z | 2022-01-21T08:38:14.000Z | debugger/src/debugger.cpp | emrsmsrli/gameboi | 6448722529bc64184e30a945f0e5ec4203265e10 | [
"MIT"
] | 21 | 2020-02-22T20:37:16.000Z | 2020-08-30T14:52:48.000Z | debugger/src/debugger.cpp | emrsmsrli/gameboi | 6448722529bc64184e30a945f0e5ec4203265e10 | [
"MIT"
] | null | null | null | #include "debugger/debugger.h"
#include <spdlog/sinks/stdout_color_sinks.h>
#include "gameboy/gameboy.h"
#include "imgui-SFML.h"
namespace gameboy {
debugger::debugger(const observer<gameboy> gb)
: gb_{gb},
bus_{gb_->get_bus()},
apu_debugger_{bus_->get_apu()},
cpu_debugger_{bus_->get_cpu()},
... | 26.622807 | 113 | 0.653048 | emrsmsrli |
6f9bffab5eba3929a4165c9e5baf1fff8d0665f0 | 25,614 | cpp | C++ | RegExApiEndpoint.cpp | ziloka/regex101 | aabb53c1f763af2c6915e22bb5b0c007a4622300 | [
"MIT"
] | 33 | 2021-02-25T02:00:26.000Z | 2022-03-21T17:26:24.000Z | RegExApiEndpoint.cpp | ziloka/regex101 | aabb53c1f763af2c6915e22bb5b0c007a4622300 | [
"MIT"
] | 3 | 2021-02-24T22:40:55.000Z | 2022-01-25T08:06:13.000Z | RegExApiEndpoint.cpp | ziloka/regex101 | aabb53c1f763af2c6915e22bb5b0c007a4622300 | [
"MIT"
] | 9 | 2021-04-10T02:37:13.000Z | 2022-03-22T06:43:31.000Z | /*
* Copyright (C) 2020 Adrian Carpenter
*
* This file is part of a regex101.com offline application.
*
* https://github.com/fizzyade/regex101
*
* =====================================================================
* The regex101 web content is owned and used with permission from
* Firas Dib at regex101.com.... | 37.283843 | 171 | 0.66612 | ziloka |
6f9dcf49f5ae8acce8a042c37ee69da1baf0abea | 926 | cpp | C++ | Dynamic Programming/Coin Change/C++/coin_change.cpp | LuisMBaezCo/AlgorithmNotebook | 43479e4331143987e627d222c9a65ed9d23d6c8f | [
"MIT"
] | 16 | 2020-03-02T20:03:28.000Z | 2021-06-15T05:02:59.000Z | Dynamic Programming/Coin Change/C++/coin_change.cpp | LuisMBaezCo/AlgorithmNotebook | 43479e4331143987e627d222c9a65ed9d23d6c8f | [
"MIT"
] | null | null | null | Dynamic Programming/Coin Change/C++/coin_change.cpp | LuisMBaezCo/AlgorithmNotebook | 43479e4331143987e627d222c9a65ed9d23d6c8f | [
"MIT"
] | 4 | 2020-09-15T07:47:38.000Z | 2021-10-31T01:25:02.000Z | #include <bits/stdc++.h>
using namespace std;
class CoinChange {
public:
vector<int> memo;
int coinChange(vector<int>& coins, int amount) {
memo.resize(amount+1, -1);
int answer = solve(coins, amount);
return (answer==INT_MAX)?-1:answer;
}
int solve(vector<int>& coi... | 21.534884 | 69 | 0.531317 | LuisMBaezCo |
6fa06f4cc91f29adcc15c3a5cd97e5384f99a2d1 | 2,185 | hpp | C++ | src/Distribution_Hot_O.hpp | bethang/corona3d_2020 | 868dcea42dbcc04c49b8fbe3635f2a2fbd8c9d6f | [
"MIT"
] | null | null | null | src/Distribution_Hot_O.hpp | bethang/corona3d_2020 | 868dcea42dbcc04c49b8fbe3635f2a2fbd8c9d6f | [
"MIT"
] | null | null | null | src/Distribution_Hot_O.hpp | bethang/corona3d_2020 | 868dcea42dbcc04c49b8fbe3635f2a2fbd8c9d6f | [
"MIT"
] | 2 | 2021-05-26T18:22:15.000Z | 2022-01-27T17:31:00.000Z | /*
* Distribution_Hot_O.hpp
*
* Created on: Jul 22, 2020
* Author: rodney
*/
#ifndef DISTRIBUTION_HOT_O_HPP_
#define DISTRIBUTION_HOT_O_HPP_
#include "Distribution.hpp"
class Distribution_Hot_O: public Distribution {
public:
Distribution_Hot_O(Planet my_p, double ref_h, double ref_T);
virtual ~Distribut... | 39.017857 | 168 | 0.756064 | bethang |
6fa3e23b90e16b84bc8c6edab0d618ba2e9d5f0f | 1,889 | hpp | C++ | explainer/languageCheck.hpp | luosiwei-cmd/Maticpouse | 382c45e030b3e944607249fea730558d061a6f03 | [
"MIT"
] | 1 | 2020-08-03T07:20:07.000Z | 2020-08-03T07:20:07.000Z | explainer/languageCheck.hpp | luosiwei-cmd/Maticpouse | 382c45e030b3e944607249fea730558d061a6f03 | [
"MIT"
] | null | null | null | explainer/languageCheck.hpp | luosiwei-cmd/Maticpouse | 382c45e030b3e944607249fea730558d061a6f03 | [
"MIT"
] | 1 | 2021-07-11T03:02:48.000Z | 2021-07-11T03:02:48.000Z | #ifndef languageCheck_hpp
#define languageCheck_hpp
#include<bits/stdc++.h>
class languageCheck{
public:
languageCheck();
void outputMarkdown(std::vector<std::string> & dests);
void setTitle(std::string title);
int run(std::vector<std::string>& content);
int getContent(std::vector... | 23.320988 | 59 | 0.591848 | luosiwei-cmd |
6faf9b1b42cf908812d74c36f3f38f2c94193655 | 132 | cpp | C++ | src/CueTransformable.cpp | sebleedelisle/ofxTimely | 4546f66431580a3b66363182f12ed3d9c741ad10 | [
"MIT"
] | null | null | null | src/CueTransformable.cpp | sebleedelisle/ofxTimely | 4546f66431580a3b66363182f12ed3d9c741ad10 | [
"MIT"
] | null | null | null | src/CueTransformable.cpp | sebleedelisle/ofxTimely | 4546f66431580a3b66363182f12ed3d9c741ad10 | [
"MIT"
] | null | null | null | //
// CueTransformable.cpp
// BecHillLasers
//
// Created by Seb Lee-Delisle on 30/07/2018.
//
//
#include "CueTransformable.h"
| 13.2 | 45 | 0.666667 | sebleedelisle |
6fb4d2aae35d0cc21879ad2c0841a807f209693f | 35,152 | cpp | C++ | ESP32/TinyMCUMEesp81ttgovga32/MECUMEesp81/emuapi.cpp | rpsubc8/ESP32TinyMCUMEesp81 | 3b96e6a0e0a0d753bf22ed14c76959fc83ad57d2 | [
"WTFPL"
] | 3 | 2021-11-01T13:59:41.000Z | 2022-01-20T17:59:24.000Z | ESP32/TinyMCUMEesp81ttgovga32/MECUMEesp81/emuapi.cpp | rpsubc8/ESP32TinyMCUMEesp81 | 3b96e6a0e0a0d753bf22ed14c76959fc83ad57d2 | [
"WTFPL"
] | null | null | null | ESP32/TinyMCUMEesp81ttgovga32/MECUMEesp81/emuapi.cpp | rpsubc8/ESP32TinyMCUMEesp81 | 3b96e6a0e0a0d753bf22ed14c76959fc83ad57d2 | [
"WTFPL"
] | null | null | null | //#define KEYMAP_PRESENT 1
#include <stdint.h>
#include <stdbool.h>
#include <stddef.h>
#include <string.h>
#include <stdio.h>
#include <stdlib.h>
#include "emuapi.h"
#include "gbConfig.h"
#include "gbGlobals.h"
#include "Arduino.h"
//JJ extern "C" {
//JJ #include "emuapi.h"
//JJ #include "iopins.h"
//JJ}
//JJ #in... | 26.154762 | 161 | 0.563325 | rpsubc8 |
6fb72a19f553e3404065084b840218d3b4ce796d | 3,549 | cpp | C++ | src/Collision.cpp | AnyTimeTraveler/CppRobots | c7d2df9ac8272136f9cc958e0c874e58cfbca585 | [
"MIT"
] | 4 | 2016-06-23T08:46:43.000Z | 2020-05-05T17:28:29.000Z | src/Collision.cpp | AnyTimeTraveler/CppRobots | c7d2df9ac8272136f9cc958e0c874e58cfbca585 | [
"MIT"
] | 2 | 2015-09-29T09:24:39.000Z | 2015-12-09T15:10:00.000Z | src/Collision.cpp | AnyTimeTraveler/CppRobots | c7d2df9ac8272136f9cc958e0c874e58cfbca585 | [
"MIT"
] | 2 | 2019-05-21T18:56:57.000Z | 2019-06-06T11:12:18.000Z | /**
* \copyright Copyright 2016 Hochschule Emden/Leer. This project is released
* under
* the MIT License, see the file LICENSE.md for rights and limitations.
* \file Collision.cpp
* \author Jan-Niklas Braak
*/
#include "Collision.hpp"
bool Collision::Projection::overlap(const Projection &proj2) {
/*
Ther... | 35.49 | 78 | 0.677937 | AnyTimeTraveler |
6fb8fa3a7b09d502327e176a9a17a92c4e48fbd4 | 3,186 | cpp | C++ | source/textelement.cpp | yurablok/lunasvg | ec5373150f01b059d7c65956b1c52a95bc8e00c3 | [
"MIT"
] | null | null | null | source/textelement.cpp | yurablok/lunasvg | ec5373150f01b059d7c65956b1c52a95bc8e00c3 | [
"MIT"
] | null | null | null | source/textelement.cpp | yurablok/lunasvg | ec5373150f01b059d7c65956b1c52a95bc8e00c3 | [
"MIT"
] | 1 | 2021-09-24T15:39:59.000Z | 2021-09-24T15:39:59.000Z | #include "textelement.h"
#include "layoutcontext.h"
#include "parser.h"
namespace lunasvg {
TextElement::TextElement()
: StyledElement(ElementId::Text)
{
}
void TextElement::layout(LayoutContext* context, LayoutContainer* current) const
{
if (isDisplayNone())
return;
//auto shape = std::make_uni... | 30.634615 | 82 | 0.624922 | yurablok |
6fd4061dd4640b8e989bef6f1a2e0e27a5296792 | 5,312 | cpp | C++ | fileclient/src/user_tasks.cpp | agandzyuk/fmultitransfer | 0b92cee70f7831fc8598fb3d5cf816bcece6261f | [
"MIT"
] | null | null | null | fileclient/src/user_tasks.cpp | agandzyuk/fmultitransfer | 0b92cee70f7831fc8598fb3d5cf816bcece6261f | [
"MIT"
] | null | null | null | fileclient/src/user_tasks.cpp | agandzyuk/fmultitransfer | 0b92cee70f7831fc8598fb3d5cf816bcece6261f | [
"MIT"
] | null | null | null | #include "user_tasks.h"
#include "notify_base.h"
using namespace std;
/****************************************************************/
ConnectionTask::ConnectionTask(const std::string& name,
const IPAddress& addr,
u16 port,
... | 28.55914 | 113 | 0.519955 | agandzyuk |
6fde0264c55c10befe05b09d8f6dd6ae2261f380 | 4,527 | cpp | C++ | src/core/Palette.cpp | stoneface86/trackerboy | 68cbb4c56ec4bbccfd1fe172a57451bdaba91561 | [
"MIT"
] | 60 | 2019-11-30T00:30:33.000Z | 2022-03-26T03:44:53.000Z | src/core/Palette.cpp | stoneface86/trackerboy | 68cbb4c56ec4bbccfd1fe172a57451bdaba91561 | [
"MIT"
] | 8 | 2019-12-16T07:55:54.000Z | 2022-03-09T21:01:02.000Z | src/core/Palette.cpp | stoneface86/trackerboy | 68cbb4c56ec4bbccfd1fe172a57451bdaba91561 | [
"MIT"
] | 3 | 2021-08-06T07:17:15.000Z | 2022-03-08T03:39:06.000Z |
#include "core/Palette.hpp"
#include "core/config/keys.hpp"
#include <QtDebug>
Palette::Palette() :
mData{
QColor( 24, 24, 24), // ColorBackground
QColor( 32, 32, 32), // ColorBackgroundHighlight1
QColor( 48, 48, 48), // ColorBackgroundHighlight2
QColor(192, 192, 192), // C... | 31.006849 | 102 | 0.632869 | stoneface86 |
6fdfc6038c8ce21c78367295e8ae109ea2bd203d | 7,393 | hpp | C++ | dart/utils/detail/XmlHelpers-impl.hpp | ibrahiminfinite/dart | 495c82120c836005f2d136d4a50c8cc997fb879b | [
"BSD-2-Clause"
] | null | null | null | dart/utils/detail/XmlHelpers-impl.hpp | ibrahiminfinite/dart | 495c82120c836005f2d136d4a50c8cc997fb879b | [
"BSD-2-Clause"
] | null | null | null | dart/utils/detail/XmlHelpers-impl.hpp | ibrahiminfinite/dart | 495c82120c836005f2d136d4a50c8cc997fb879b | [
"BSD-2-Clause"
] | null | null | null | /*
* Copyright (c) 2011-2022, The DART development contributors
* All rights reserved.
*
* The list of contributors can be found at:
* https://github.com/dartsim/dart/blob/master/LICENSE
*
* This file is provided under the following "BSD-style" License:
* Redistribution and use in source and binary forms, w... | 32.283843 | 80 | 0.601515 | ibrahiminfinite |
6fe3231a26ac4f6032f77ecc1bdc782e8fda1148 | 2,052 | cpp | C++ | native/test/test_main.cpp | kaloianm/rural-pipe | 7bdae362f360da3114282512ef2c0d01e621a4c1 | [
"Unlicense"
] | null | null | null | native/test/test_main.cpp | kaloianm/rural-pipe | 7bdae362f360da3114282512ef2c0d01e621a4c1 | [
"Unlicense"
] | 1 | 2021-02-18T18:35:46.000Z | 2021-02-18T18:35:46.000Z | native/test/test_main.cpp | kaloianm/rural-pipe | 7bdae362f360da3114282512ef2c0d01e621a4c1 | [
"Unlicense"
] | null | null | null | /**
* Copyright 2021 Kaloian Manassiev
*
* 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... | 38 | 100 | 0.736355 | kaloianm |
6fe4ac1b2d1f92f467c00718a1a00535d72c01e9 | 1,848 | hpp | C++ | Library/Source/EnergyManager/Utility/CachedValue.hpp | NB4444/BachelorProjectEnergyManager | d1fd93dcc83af6d6acd36b7efda364ac2aab90eb | [
"MIT"
] | null | null | null | Library/Source/EnergyManager/Utility/CachedValue.hpp | NB4444/BachelorProjectEnergyManager | d1fd93dcc83af6d6acd36b7efda364ac2aab90eb | [
"MIT"
] | null | null | null | Library/Source/EnergyManager/Utility/CachedValue.hpp | NB4444/BachelorProjectEnergyManager | d1fd93dcc83af6d6acd36b7efda364ac2aab90eb | [
"MIT"
] | null | null | null | #pragma once
#include <chrono>
#include <functional>
namespace EnergyManager {
namespace Utility {
/**
* Caches a value for a certain amount of time.
* @tparam Value The value type.
*/
template<typename Value>
class CachedValue {
/**
* The cached value.
*/
Value value_;
/**
* Whe... | 26.028169 | 155 | 0.66342 | NB4444 |
6fe5354d460e717e146261598ca25d96f0a7c148 | 178 | cpp | C++ | tests/test_definition/hello.cpp | inlinechan/stags | 9c1ce3ad4bf5d387c0b41482192d3d05ee96ef3a | [
"BSD-2-Clause"
] | null | null | null | tests/test_definition/hello.cpp | inlinechan/stags | 9c1ce3ad4bf5d387c0b41482192d3d05ee96ef3a | [
"BSD-2-Clause"
] | 1 | 2016-01-08T08:12:19.000Z | 2016-01-08T08:12:19.000Z | tests/test_definition/hello.cpp | inlinechan/stags | 9c1ce3ad4bf5d387c0b41482192d3d05ee96ef3a | [
"BSD-2-Clause"
] | null | null | null | #include "hello.h"
#include "world.h"
void say_hello(const char* name)
{
}
int main(int argc, char *argv[])
{
say_hello("Jack");
say_world("Dorothy");
return 0;
}
| 11.866667 | 32 | 0.617978 | inlinechan |
6fe8e7e3ac317a14b86d35a1c44531c950a0a9d5 | 1,760 | cpp | C++ | test/unit/access.cpp | jfalcou/kumi | 09116696274bd38254d89636ea3d0d4b5eb43103 | [
"MIT"
] | 14 | 2021-11-20T15:21:08.000Z | 2022-03-14T21:47:22.000Z | test/unit/access.cpp | jfalcou/kumi | 09116696274bd38254d89636ea3d0d4b5eb43103 | [
"MIT"
] | 6 | 2021-11-27T17:50:48.000Z | 2022-02-01T18:17:38.000Z | test/unit/access.cpp | jfalcou/kumi | 09116696274bd38254d89636ea3d0d4b5eb43103 | [
"MIT"
] | 1 | 2022-02-21T23:06:03.000Z | 2022-02-21T23:06:03.000Z | //==================================================================================================
/*
KUMI - Compact Tuple Tools
Copyright : KUMI Contributors & Maintainers
SPDX-License-Identifier: MIT
*/
//==================================================================================================
#defin... | 25.507246 | 100 | 0.548295 | jfalcou |
6feaf3d59265df2d1b97ad4ebc786769c49c9a41 | 193,762 | cc | C++ | protocal/drivers/gnss/config.pb.cc | racestart/g2r | d115ebaab13829d716750eab2ebdcc51d79ff32e | [
"Apache-2.0"
] | 1 | 2020-03-05T12:49:21.000Z | 2020-03-05T12:49:21.000Z | protocal/drivers/gnss/config.pb.cc | gA4ss/g2r | a6e2ee5758ab59fd95704e3c3090dd234fbfb2c9 | [
"Apache-2.0"
] | null | null | null | protocal/drivers/gnss/config.pb.cc | gA4ss/g2r | a6e2ee5758ab59fd95704e3c3090dd234fbfb2c9 | [
"Apache-2.0"
] | 1 | 2020-03-25T15:06:39.000Z | 2020-03-25T15:06:39.000Z | // Generated by the protocol buffer compiler. DO NOT EDIT!
// source: drivers/gnss/config.proto
#define INTERNAL_SUPPRESS_PROTOBUF_FIELD_DEPRECATION
#include "drivers/gnss/config.pb.h"
#include <algorithm>
#include <google/protobuf/stubs/common.h>
#include <google/protobuf/stubs/port.h>
#include <google/protobuf/st... | 35.72967 | 182 | 0.708632 | racestart |
6febb90829bd8b8634c9783659e63bd7cc044f65 | 8,968 | cpp | C++ | Synergy Editor TGC/Synergy Editor/CompileSupport.cpp | domydev/Dark-Basic-Pro | 237fd8d859782cb27b9d5994f3c34bc5372b6c04 | [
"MIT"
] | 231 | 2018-01-28T00:06:56.000Z | 2022-03-31T21:39:56.000Z | Synergy Editor TGC/Synergy Editor/CompileSupport.cpp | domydev/Dark-Basic-Pro | 237fd8d859782cb27b9d5994f3c34bc5372b6c04 | [
"MIT"
] | 9 | 2016-02-10T10:46:16.000Z | 2017-12-06T17:27:51.000Z | Synergy Editor TGC/Synergy Editor/CompileSupport.cpp | domydev/Dark-Basic-Pro | 237fd8d859782cb27b9d5994f3c34bc5372b6c04 | [
"MIT"
] | 66 | 2018-01-28T21:54:52.000Z | 2022-02-16T22:50:57.000Z | #include "StdAfx.h"
#include "CompileSupport.h"
#include "WriteProject.h"
#include "WriteFiles.h"
#include "Variables.h"
#include "Utilities.h"
#include "ReadError.h"
#include "MainFrm.h"
#include "Settings.h"
bool CompileSupport::m_run;
bool CompileSupport::m_IsCompiling;
CString CompileSupport::m_strHelpFile;
void... | 27.258359 | 240 | 0.705174 | domydev |
6fed420cdcd1d52d007d74fb115e67dcbd478129 | 979 | cpp | C++ | String_CL/EraseAndReplace.cpp | rsghotra/AbdulBari | 2d2845608840ddda6e5153ec91966110ca7e25f5 | [
"Apache-2.0"
] | 1 | 2020-12-02T09:21:52.000Z | 2020-12-02T09:21:52.000Z | String_CL/EraseAndReplace.cpp | rsghotra/AbdulBari | 2d2845608840ddda6e5153ec91966110ca7e25f5 | [
"Apache-2.0"
] | null | null | null | String_CL/EraseAndReplace.cpp | rsghotra/AbdulBari | 2d2845608840ddda6e5153ec91966110ca7e25f5 | [
"Apache-2.0"
] | null | null | null | /*
8. Replace and Erase
*/
#include<iostream>
#include<string>
using namespace std;
int main() {
string string1{"The values in any left subtree"
"\nare less than the value in the"
"\nparent node and the values in"
"\nany right subtree are greater"
"\nthan the value in the parent node"}... | 25.763158 | 59 | 0.595506 | rsghotra |
6ff033f2ba462b47014b9e5b751a093f3a394886 | 12,395 | hpp | C++ | libcamsim/scene.hpp | Tetsu5902/camsim | bcf995bb30e44792414ca2afd30a2869030b1f92 | [
"MIT"
] | 5 | 2020-02-19T14:03:35.000Z | 2021-05-05T08:26:01.000Z | libcamsim/scene.hpp | Tetsu5902/camsim | bcf995bb30e44792414ca2afd30a2869030b1f92 | [
"MIT"
] | null | null | null | libcamsim/scene.hpp | Tetsu5902/camsim | bcf995bb30e44792414ca2afd30a2869030b1f92 | [
"MIT"
] | 3 | 2020-02-25T22:51:36.000Z | 2021-05-05T08:26:05.000Z | /*
* Copyright (C) 2016, 2017, 2018
* Computer Graphics Group, University of Siegen
* Written by Martin Lambers <martin.lambers@uni-siegen.de>
*
* 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 ... | 32.362924 | 148 | 0.658169 | Tetsu5902 |
6ff45014780795ff22a84811db6906aa131c285a | 39,583 | hh | C++ | dune/fem/oseen/oemsolver/oemsolver.hh | renemilk/DUNE-FEM-Oseen | 2cc2a1a70f81469f13a2330be285960a13f78fdf | [
"BSD-2-Clause"
] | null | null | null | dune/fem/oseen/oemsolver/oemsolver.hh | renemilk/DUNE-FEM-Oseen | 2cc2a1a70f81469f13a2330be285960a13f78fdf | [
"BSD-2-Clause"
] | null | null | null | dune/fem/oseen/oemsolver/oemsolver.hh | renemilk/DUNE-FEM-Oseen | 2cc2a1a70f81469f13a2330be285960a13f78fdf | [
"BSD-2-Clause"
] | null | null | null | #ifndef DUNE_OSEEN_DUNE_StokesOEMSolver_HH
#define DUNE_OSEEN_DUNE_StokesOEMSolver_HH
//- system includes
#include <utility>
#include <cmake_config.h>
#include <dune/stuff/common/debug.hh>
//- Dune includes
#include <dune/common/typetraits.hh>
#include <dune/fem/operator/common/operator.hh>
//- local includes
#inc... | 29.041086 | 106 | 0.631458 | renemilk |
6ffcdee1180f490b523788245395144a96e019eb | 21,684 | hpp | C++ | include/CPPResult.hpp | stephanfr/CppResult | 4f1c3aa3f1e5fd4e5a04504935a2f82880489994 | [
"MIT"
] | null | null | null | include/CPPResult.hpp | stephanfr/CppResult | 4f1c3aa3f1e5fd4e5a04504935a2f82880489994 | [
"MIT"
] | null | null | null | include/CPPResult.hpp | stephanfr/CppResult | 4f1c3aa3f1e5fd4e5a04504935a2f82880489994 | [
"MIT"
] | null | null | null | #pragma once
#include <assert.h>
#include <memory>
#include <optional>
#include <string>
#include <fmt/format.h>
namespace SEFUtility
{
enum class BaseResultCodes
{
SUCCESS = 0,
FAILURE
};
//
// Base Class needed primarily for passing inner errors
//
class ResultBase
... | 43.542169 | 126 | 0.633232 | stephanfr |
6ffd0f0757b63f95f1370ff8029595cb9fa3bfe9 | 140,462 | cpp | C++ | src/extra/imgui.cpp | fragcolor-xyz/chainblocks | bf83f8dc8f46637bc42713d1fa77e81228ddfccf | [
"BSD-3-Clause"
] | 12 | 2021-07-11T11:14:14.000Z | 2022-03-28T11:37:29.000Z | src/extra/imgui.cpp | fragcolor-xyz/chainblocks | bf83f8dc8f46637bc42713d1fa77e81228ddfccf | [
"BSD-3-Clause"
] | 103 | 2021-06-26T17:09:43.000Z | 2022-03-30T12:05:18.000Z | src/extra/imgui.cpp | fragcolor-xyz/chainblocks | bf83f8dc8f46637bc42713d1fa77e81228ddfccf | [
"BSD-3-Clause"
] | 8 | 2021-07-27T14:45:26.000Z | 2022-03-01T08:07:18.000Z | /* SPDX-License-Identifier: BSD-3-Clause */
/* Copyright © 2019 Fragcolor Pte. Ltd. */
#include "imgui.hpp"
#include "bgfx.hpp"
#include "blocks/shared.hpp"
#include "runtime.hpp"
#include <implot.h>
using namespace chainblocks;
namespace chainblocks {
namespace ImGui {
struct Base {
static inline CBExposedTypeIn... | 32.604921 | 80 | 0.520183 | fragcolor-xyz |
b5027f31b229ef8ee98224b05a12be7c25c66746 | 38,724 | cpp | C++ | main/irrigationController.cpp | mwick83/irrigation_ctrl | 90f53f25f3a670193157e580acbd0c7b69b7f206 | [
"BSD-3-Clause"
] | 5 | 2018-02-26T21:33:41.000Z | 2022-03-02T11:29:08.000Z | main/irrigationController.cpp | mwick83/irrigation_ctrl | 90f53f25f3a670193157e580acbd0c7b69b7f206 | [
"BSD-3-Clause"
] | null | null | null | main/irrigationController.cpp | mwick83/irrigation_ctrl | 90f53f25f3a670193157e580acbd0c7b69b7f206 | [
"BSD-3-Clause"
] | 1 | 2019-12-31T03:47:58.000Z | 2019-12-31T03:47:58.000Z | #include "irrigationController.h"
extern "C" {
void esp_restart_noos() __attribute__ ((noreturn));
}
// TBD: encapsulate
RTC_DATA_ATTR static IrrigationController::peristent_data_t irrigCtrlPersistentData = {
.lastIrrigEvent = 0,
.reservoirState = IrrigationController::RESERVOIR_OK
};
/**
* @brief Defau... | 44.459242 | 136 | 0.605826 | mwick83 |
b5066f39fa613e422c5e9d3b3fd97f8ae3cea362 | 1,391 | hpp | C++ | include/build_info/private/compilers/mingw.hpp | Kartonagnick/build_info | 581d7f8114e91142a46639412e3e716c33868c14 | [
"MIT"
] | null | null | null | include/build_info/private/compilers/mingw.hpp | Kartonagnick/build_info | 581d7f8114e91142a46639412e3e716c33868c14 | [
"MIT"
] | 19 | 2021-06-08T19:59:49.000Z | 2021-07-04T19:32:47.000Z | include/tools/build_info/private/compilers/mingw.hpp | Kartonagnick/tools-features | a3662f165f796751cabe1f0703f0f0316cace647 | [
"MIT"
] | null | null | null | // [2021y-06m-18d][22:50:00] Idrisov Denis R. 001
// [2021y-06m-15d][00:05:00] Idrisov Denis R. 001 PRE
#pragma once
#ifndef dTOOLS_BI_MINGW_USED_
#define dTOOLS_BI_MINGW_USED_ 001
//==============================================================================
//========================================================... | 29.595745 | 87 | 0.478073 | Kartonagnick |
b509922a4da416dd999fcc26cf9b622b1b49d710 | 6,569 | cpp | C++ | Visual C++/CD Label/TextObject.cpp | manimanis/Intranet | 9cd4da01641212f18c710ae721bc48c8eadc4a28 | [
"MIT"
] | null | null | null | Visual C++/CD Label/TextObject.cpp | manimanis/Intranet | 9cd4da01641212f18c710ae721bc48c8eadc4a28 | [
"MIT"
] | null | null | null | Visual C++/CD Label/TextObject.cpp | manimanis/Intranet | 9cd4da01641212f18c710ae721bc48c8eadc4a28 | [
"MIT"
] | null | null | null | // TextObject.cpp: implementation of the CTextObject class.
//
//////////////////////////////////////////////////////////////////////
#include "stdafx.h"
#include "CD Label.h"
#include "TextObject.h"
#include <math.h>
#include "ProprieteTexte.h"
#ifdef _DEBUG
#undef THIS_FILE
static char THIS_FILE[]=__FILE__;
#defi... | 25.46124 | 117 | 0.638453 | manimanis |
b50f9a9db531c495bc3330e09cd6ba9ccd182ab5 | 1,585 | hpp | C++ | src/thread/adapter_disk.hpp | huangqundl/af_stream | 178d98feaf403b6947fb0fae3c2bbaedd91f9ab8 | [
"Apache-2.0"
] | 15 | 2017-03-28T13:15:53.000Z | 2022-03-01T08:16:48.000Z | src/thread/adapter_disk.hpp | huangqundl/af_stream | 178d98feaf403b6947fb0fae3c2bbaedd91f9ab8 | [
"Apache-2.0"
] | null | null | null | src/thread/adapter_disk.hpp | huangqundl/af_stream | 178d98feaf403b6947fb0fae3c2bbaedd91f9ab8 | [
"Apache-2.0"
] | 6 | 2017-10-17T14:10:23.000Z | 2022-03-01T08:16:29.000Z | #ifndef __AFS_ADAPTER_DISK_HPP_INCLUDED__
#define __AFS_ADAPTER_DISK_HPP_INCLUDED__
#include "adapter_base.hpp"
#include <stdio.h>
#include <string>
#include "../config.hpp"
#include "../util.hpp"
namespace afs {
class AdapterDisk : public AdapterBase {
public:
// derived from AdapterBase
void Init();
... | 19.096386 | 80 | 0.636593 | huangqundl |
b51b887759c33d89f47e961414789c525e29b1c9 | 1,296 | cpp | C++ | Algorithms/Easy/404.sum-of-left-leaves.cpp | jtcheng/leetcode | db58973894757789d060301b589735b5985fe102 | [
"MIT"
] | null | null | null | Algorithms/Easy/404.sum-of-left-leaves.cpp | jtcheng/leetcode | db58973894757789d060301b589735b5985fe102 | [
"MIT"
] | null | null | null | Algorithms/Easy/404.sum-of-left-leaves.cpp | jtcheng/leetcode | db58973894757789d060301b589735b5985fe102 | [
"MIT"
] | null | null | null | /*
* @lc app=leetcode id=404 lang=cpp
*
* [404] Sum of Left Leaves
*
* https://leetcode.com/problems/sum-of-left-leaves/description/
*
* algorithms
* Easy (48.71%)
* Total Accepted: 117.6K
* Total Submissions: 241.3K
* Testcase Example: '[3,9,20,null,null,15,7]'
*
* Find the sum of all left leaves in a... | 19.058824 | 69 | 0.568673 | jtcheng |
b5222a01505dfa13ac24d8522ad728cdefd25bdf | 756 | cpp | C++ | A. Watermelon.cpp | Samim-Arefin/Codeforce-Problem-Solution | 7219ee6173faaa9e06231d4cd3e9ba292ae27ce3 | [
"MIT"
] | null | null | null | A. Watermelon.cpp | Samim-Arefin/Codeforce-Problem-Solution | 7219ee6173faaa9e06231d4cd3e9ba292ae27ce3 | [
"MIT"
] | null | null | null | A. Watermelon.cpp | Samim-Arefin/Codeforce-Problem-Solution | 7219ee6173faaa9e06231d4cd3e9ba292ae27ce3 | [
"MIT"
] | null | null | null | #include<bits/stdc++.h>
using namespace std;
int main()
{
int num;
while(cin>>num)
{
int flag=0;
if(num%2==0 && num!=2)
{
int diff=2;
while(num>0)
{
num-=diff;
if(num%2==0 && diff%2==0)
{
... | 18 | 41 | 0.246032 | Samim-Arefin |
dddff1b1d319fa7e071049dd9fb36a59d99dadce | 1,767 | cpp | C++ | my_vulkan/debug_callback.cpp | pixelwise/my_vulkan | f1c139ed8f95380186905d77cb8e81008f48bc95 | [
"CC0-1.0"
] | null | null | null | my_vulkan/debug_callback.cpp | pixelwise/my_vulkan | f1c139ed8f95380186905d77cb8e81008f48bc95 | [
"CC0-1.0"
] | 3 | 2019-02-25T10:13:57.000Z | 2020-11-11T14:46:14.000Z | my_vulkan/debug_callback.cpp | pixelwise/my_vulkan | f1c139ed8f95380186905d77cb8e81008f48bc95 | [
"CC0-1.0"
] | null | null | null | #include "debug_callback.hpp"
#include "utils.hpp"
#include <cassert>
namespace my_vulkan
{
debug_callback_t::debug_callback_t(
VkInstance instance,
PFN_vkDebugReportCallbackEXT callback
)
: _instance{instance}
{
VkDebugReportCallbackCreateInfoEXT debugReportCreateInfo = {};
... | 33.339623 | 83 | 0.657612 | pixelwise |
dded06cb52cfd7864589f18a641cbdaee8e4ec7c | 1,118 | cpp | C++ | src/Exciton/PaintingSecrets/PaintingFilesTool.cpp | Vladimir-Lin/QtExciton | ac5bc82f22ac3cdcdccb90526f7dd79060535b5a | [
"MIT"
] | null | null | null | src/Exciton/PaintingSecrets/PaintingFilesTool.cpp | Vladimir-Lin/QtExciton | ac5bc82f22ac3cdcdccb90526f7dd79060535b5a | [
"MIT"
] | null | null | null | src/Exciton/PaintingSecrets/PaintingFilesTool.cpp | Vladimir-Lin/QtExciton | ac5bc82f22ac3cdcdccb90526f7dd79060535b5a | [
"MIT"
] | null | null | null | #include <exciton.h>
#include "ui_PaintingFilesTool.h"
N::PaintingFilesTool:: PaintingFilesTool (QWidget * parent,Plan * p)
: Widget ( parent, p)
, ui (new Ui::PaintingFilesTool)
{
ui -> setupUi ( this ) ;
... | 31.942857 | 68 | 0.488372 | Vladimir-Lin |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.