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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
f19d7bd952a77946ee379e6cf579f6702f5f291a | 2,304 | cc | C++ | code/Modules/LocalFS/UnitTests/FSWrapperTest.cc | FrogAC/oryol | 7254c59411e97bbb6f2363aa685718def9f13827 | [
"MIT"
] | 1,707 | 2015-01-01T14:56:08.000Z | 2022-03-28T06:44:09.000Z | code/Modules/LocalFS/UnitTests/FSWrapperTest.cc | FrogAC/oryol | 7254c59411e97bbb6f2363aa685718def9f13827 | [
"MIT"
] | 256 | 2015-01-03T14:55:53.000Z | 2020-09-09T10:43:46.000Z | code/Modules/LocalFS/UnitTests/FSWrapperTest.cc | FrogAC/oryol | 7254c59411e97bbb6f2363aa685718def9f13827 | [
"MIT"
] | 222 | 2015-01-05T00:20:54.000Z | 2022-02-06T01:41:37.000Z | //------------------------------------------------------------------------------
// FSWrapperTest.cc
//------------------------------------------------------------------------------
#include "Pre.h"
#include "UnitTest++/src/UnitTest++.h"
#include "LocalFS/private/fsWrapper.h"
#include "Core/String/StringBuilder.h"
#in... | 34.909091 | 80 | 0.594618 | FrogAC |
f1a019cae192e5df2838a6e5a19b46e41e5efa40 | 1,347 | hpp | C++ | src/pitts_tensor2_random.hpp | melven/pitts | 491f503a99a7d1161a27672955ae53ca6b5d3412 | [
"BSD-3-Clause"
] | 2 | 2021-12-31T08:28:17.000Z | 2022-01-12T14:48:49.000Z | src/pitts_tensor2_random.hpp | melven/pitts | 491f503a99a7d1161a27672955ae53ca6b5d3412 | [
"BSD-3-Clause"
] | null | null | null | src/pitts_tensor2_random.hpp | melven/pitts | 491f503a99a7d1161a27672955ae53ca6b5d3412 | [
"BSD-3-Clause"
] | null | null | null | /*! @file pitts_tensor2_random.hpp
* @brief fill simple rank-2 tensor with random values
* @author Melven Roehrig-Zoellner <Melven.Roehrig-Zoellner@DLR.de>
* @date 2019-10-10
* @copyright Deutsches Zentrum fuer Luft- und Raumfahrt e. V. (DLR), German Aerospace Center
*
**/
// include guard
#ifndef PITTS_TENSOR2_RANDOM... | 26.94 | 92 | 0.657758 | melven |
f1a35ce4be1e7e4db135a547cd5eb3a0377ec814 | 4,694 | cpp | C++ | SRC/wfc_read_xml_from_file.cpp | SammyB428/WFC | 64aee7c7953e38c8a418ba9530339e8f4faac046 | [
"BSD-2-Clause"
] | 1 | 2021-03-29T06:09:19.000Z | 2021-03-29T06:09:19.000Z | SRC/wfc_read_xml_from_file.cpp | SammyB428/WFC | 64aee7c7953e38c8a418ba9530339e8f4faac046 | [
"BSD-2-Clause"
] | null | null | null | SRC/wfc_read_xml_from_file.cpp | SammyB428/WFC | 64aee7c7953e38c8a418ba9530339e8f4faac046 | [
"BSD-2-Clause"
] | null | null | null | /*
** Author: Samuel R. Blackburn
** Internet: wfc@pobox.com
**
** Copyright, 1995-2019, Samuel R. Blackburn
**
** "You can get credit for something or get it done, but not both."
** Dr. Richard Garwin
**
** BSD License follows.
**
** Redistribution and use in source and binary forms, with or without
** modification, a... | 30.480519 | 162 | 0.703877 | SammyB428 |
f1a9e8a3c404cf290fda6598f3e53f74db2f1d39 | 1,559 | cpp | C++ | EntityComponentSystem/Core/Core/ShaderPreprocessor.cpp | Spheya/Slamanander-Engine | d0708399eacab26b243045b33b51ff30d614b7bd | [
"MIT"
] | null | null | null | EntityComponentSystem/Core/Core/ShaderPreprocessor.cpp | Spheya/Slamanander-Engine | d0708399eacab26b243045b33b51ff30d614b7bd | [
"MIT"
] | null | null | null | EntityComponentSystem/Core/Core/ShaderPreprocessor.cpp | Spheya/Slamanander-Engine | d0708399eacab26b243045b33b51ff30d614b7bd | [
"MIT"
] | null | null | null | #include "ShaderPreprocessor.hpp"
#include <unordered_map>
#include <filesystem>
#include <fstream>
#include <sstream>
#include <iostream>
namespace {
std::string processFile(std::string shaderFile, std::unordered_map<std::string, bool>& includedFiles) {
// Get the absolute path to this file
std::filesystem::pat... | 25.983333 | 104 | 0.681206 | Spheya |
f1ae10ec908a7170b8ce3c96f0c0fdd2e234bb84 | 285 | cpp | C++ | scgi_server.cpp | fraxer/scgi-server | 9f26eea5bb4e27c500bffddae5e91aec0f18ab52 | [
"MIT"
] | null | null | null | scgi_server.cpp | fraxer/scgi-server | 9f26eea5bb4e27c500bffddae5e91aec0f18ab52 | [
"MIT"
] | null | null | null | scgi_server.cpp | fraxer/scgi-server | 9f26eea5bb4e27c500bffddae5e91aec0f18ab52 | [
"MIT"
] | null | null | null | #include "lib/scgi.hpp"
using namespace std;
int main(int argc, char **argv) {
locale system("");
locale::global(system);
//If You started server as daemon You must to use demonize() method
if (demonize() < 1) {
return 0;
}
init((char*)"127.0.0.1", 8080);
return 0;
} | 16.764706 | 69 | 0.635088 | fraxer |
f1af6b2a4e3259748702d39b2097fccbf3800cd0 | 2,149 | cpp | C++ | Chapter_2_Data_Structures/Non-Linear_DS_with_Built-in_Libraries/kattis_stockprices.cpp | BrandonTang89/CP4_Code | 5114471f439978dd11f6f2cbf6af20ca654593da | [
"MIT"
] | 2 | 2021-12-29T04:12:59.000Z | 2022-03-30T09:32:19.000Z | Chapter_2_Data_Structures/Non-Linear_DS_with_Built-in_Libraries/kattis_stockprices.cpp | BrandonTang89/CP4_Code | 5114471f439978dd11f6f2cbf6af20ca654593da | [
"MIT"
] | null | null | null | Chapter_2_Data_Structures/Non-Linear_DS_with_Built-in_Libraries/kattis_stockprices.cpp | BrandonTang89/CP4_Code | 5114471f439978dd11f6f2cbf6af20ca654593da | [
"MIT"
] | 1 | 2022-03-01T06:12:46.000Z | 2022-03-01T06:12:46.000Z | #pragma GCC optimize("Ofast")
#pragma GCC target("sse,sse2,sse3,ssse3,sse4,popcnt,abm,mmx,avx,avx2,fma")
#pragma GCC optimize("unroll-loops")
#include <bits/stdc++.h>
using namespace std;
#define fast_cin() ios_base::sync_with_stdio(false); cin.tie(NULL); cout.tie(NULL);
priority_queue<pair<int,int> > bids; // pric... | 32.074627 | 112 | 0.469521 | BrandonTang89 |
f1b439a17a536e0ebfdb639369e72dc7cd36d1e0 | 3,713 | hpp | C++ | include/HoudiniEngineUnity/HEU_PreAssetEventData.hpp | RedBrumbler/BeatSaber-Quest-Codegen | 73dda50b5a3e51f10d86b766dcaa24b0c6226e25 | [
"Unlicense"
] | null | null | null | include/HoudiniEngineUnity/HEU_PreAssetEventData.hpp | RedBrumbler/BeatSaber-Quest-Codegen | 73dda50b5a3e51f10d86b766dcaa24b0c6226e25 | [
"Unlicense"
] | null | null | null | include/HoudiniEngineUnity/HEU_PreAssetEventData.hpp | RedBrumbler/BeatSaber-Quest-Codegen | 73dda50b5a3e51f10d86b766dcaa24b0c6226e25 | [
"Unlicense"
] | null | null | null | // Autogenerated from CppHeaderCreator
// Created by Sc2ad
// =========================================================================
#pragma once
// Begin includes
#include "beatsaber-hook/shared/utils/typedefs.h"
#include "beatsaber-hook/shared/utils/byref.hpp"
// Including type: HoudiniEngineUnity.HEU_AssetEventTy... | 45.839506 | 158 | 0.765957 | RedBrumbler |
f1baad929509c64ebb97e07d6b7589e2b13b39da | 3,000 | cpp | C++ | main/main.cpp | mrdunk/m5stack_homeautomation | 49e414039c666a595f81b66c73e2b4e7e72f3e16 | [
"MIT"
] | null | null | null | main/main.cpp | mrdunk/m5stack_homeautomation | 49e414039c666a595f81b66c73e2b4e7e72f3e16 | [
"MIT"
] | null | null | null | main/main.cpp | mrdunk/m5stack_homeautomation | 49e414039c666a595f81b66c73e2b4e7e72f3e16 | [
"MIT"
] | 1 | 2020-04-02T13:49:45.000Z | 2020-04-02T13:49:45.000Z | #include <M5Stack.h>
#include "nvs_flash.h"
#include "esp_wifi.h"
#include "esp_event_loop.h"
#include "freertos/event_groups.h"
#include "menu.h"
#include "occupancy.h"
#include "mqtt.h"
#include "temparature.h"
#include "outlet.h"
#include "googleSheet.h"
#include "config.h"
#include "getUrl.h"
#if CONFIG_FREERTOS... | 25.210084 | 82 | 0.684 | mrdunk |
f1bde8db188380ef2fb7b8a91dbaf194e1872e84 | 6,405 | cpp | C++ | eeprom_config.cpp | nnaumenko/room_monitor_esp8266 | 41aa2f5b8803a546a8426390147090582b4ae7be | [
"MIT"
] | 2 | 2017-11-17T07:17:17.000Z | 2021-03-15T12:38:55.000Z | eeprom_config.cpp | nnaumenko/iot_ambit | 41aa2f5b8803a546a8426390147090582b4ae7be | [
"MIT"
] | 11 | 2016-08-07T16:04:34.000Z | 2017-12-30T00:57:16.000Z | eeprom_config.cpp | nnaumenko/room_monitor_esp8266 | 41aa2f5b8803a546a8426390147090582b4ae7be | [
"MIT"
] | 1 | 2017-09-29T17:44:19.000Z | 2017-09-29T17:44:19.000Z | /*
* Copyright (C) 2016-2017 Nick Naumenko (https://github.com/nnaumenko)
* All rights reserved
* This software may be modified and distributed under the terms
* of the MIT license. See the LICENSE file for details.
*/
#include "diag.h"
#include "version.h"
#include "eeprom_config.h"
#include "util_data... | 51.653226 | 181 | 0.707884 | nnaumenko |
f1bf39d84489f5ce333093288394a4c08749dafa | 431 | cc | C++ | editor/win.cc | hankhank/exys | a515784ab3c673dceb34e8b286963e48d471c48d | [
"MIT"
] | null | null | null | editor/win.cc | hankhank/exys | a515784ab3c673dceb34e8b286963e48d471c48d | [
"MIT"
] | null | null | null | editor/win.cc | hankhank/exys | a515784ab3c673dceb34e8b286963e48d471c48d | [
"MIT"
] | null | null | null | #include "gvplugin.h"
extern gvplugin_library_t gvplugin_dot_layout_LTX_library;
extern gvplugin_library_t gvplugin_neato_layout_LTX_library;
extern gvplugin_library_t gvplugin_core_LTX_library;
extern gvplugin_library_t gvplugin_quartz_LTX_library;
extern gvplugin_library_t gvplugin_visio_LTX_library;
lt_symlist_t l... | 30.785714 | 72 | 0.867749 | hankhank |
f1c290db97fd84b31c4c7824da401711a52cbeab | 555 | hpp | C++ | lib/RayTracer/Rendering/Lighting/Light.hpp | ei06125/ray-tracer-challenge | 54475def8c6f82c3559871f7fce00248128bb5ba | [
"MIT"
] | null | null | null | lib/RayTracer/Rendering/Lighting/Light.hpp | ei06125/ray-tracer-challenge | 54475def8c6f82c3559871f7fce00248128bb5ba | [
"MIT"
] | null | null | null | lib/RayTracer/Rendering/Lighting/Light.hpp | ei06125/ray-tracer-challenge | 54475def8c6f82c3559871f7fce00248128bb5ba | [
"MIT"
] | null | null | null | #pragma once
#include "RayTracerPCH.hpp"
// Project Library
#include "RayTracer/Math/Tuple.hpp"
#include "RayTracer/Rendering/Color.hpp"
namespace RayTracer {
namespace Rendering {
namespace Lighting {
using namespace RayTracer::Math;
using namespace RayTracer::Rendering::Colors;
struct PointLight
{
Tuple positio... | 19.821429 | 69 | 0.756757 | ei06125 |
f1c7013995cc7c140d693bf45d299634baa971a0 | 19,718 | cpp | C++ | source/LibFgBase/src/FgTopology.cpp | SingularInversions/FaceGenBaseLibrary | e928b482fa78597cfcf3923f7252f7902ec0dfa9 | [
"MIT"
] | 41 | 2016-04-09T07:48:10.000Z | 2022-03-01T15:46:08.000Z | source/LibFgBase/src/FgTopology.cpp | SingularInversions/FaceGenBaseLibrary | e928b482fa78597cfcf3923f7252f7902ec0dfa9 | [
"MIT"
] | 9 | 2015-09-23T10:54:50.000Z | 2020-01-04T21:16:57.000Z | source/LibFgBase/src/FgTopology.cpp | SingularInversions/FaceGenBaseLibrary | e928b482fa78597cfcf3923f7252f7902ec0dfa9 | [
"MIT"
] | 29 | 2015-10-01T14:44:42.000Z | 2022-01-05T01:28:43.000Z | //
// Coypright (c) 2021 Singular Inversions Inc. (facegen.com)
// Use, modification and distribution is subject to the MIT License,
// see accompanying file LICENSE.txt or facegen.com/base_library_license.txt
//
#include "stdafx.h"
#include "FgStdSet.hpp"
#include "FgTopology.hpp"
#include "FgOpt.hpp"
#in... | 33.534014 | 110 | 0.522822 | SingularInversions |
f1ce0e7856384222730a9ca3d4ea779478b2460c | 1,872 | cpp | C++ | src/_leetcode/leet_740.cpp | turesnake/leetPractice | a87b9b90eb8016038d7e5d3ad8e50e4ceb54d69b | [
"MIT"
] | null | null | null | src/_leetcode/leet_740.cpp | turesnake/leetPractice | a87b9b90eb8016038d7e5d3ad8e50e4ceb54d69b | [
"MIT"
] | null | null | null | src/_leetcode/leet_740.cpp | turesnake/leetPractice | a87b9b90eb8016038d7e5d3ad8e50e4ceb54d69b | [
"MIT"
] | null | null | null | /*
* ====================== leet_740.cpp ==========================
* -- tpr --
* CREATE -- 2020.06.29
* MODIFY --
* ----------------------------------------------------------
* 740. 删除与获得点数
*/
#include "innLe... | 23.4 | 68 | 0.350427 | turesnake |
f1cf8fc105c5da9f00cf2059bff4bf5b0abb3815 | 2,293 | hpp | C++ | test/svscan/mock_service.hpp | taylorb-microsoft/winss | ede93f84a5d9585502db5190f2ec6365858f695a | [
"Apache-2.0"
] | 52 | 2017-01-05T23:39:38.000Z | 2020-06-04T03:00:11.000Z | test/svscan/mock_service.hpp | morganstanley/winss | ede93f84a5d9585502db5190f2ec6365858f695a | [
"Apache-2.0"
] | 24 | 2017-01-05T05:07:34.000Z | 2018-03-09T00:50:58.000Z | test/svscan/mock_service.hpp | morganstanley/winss | ede93f84a5d9585502db5190f2ec6365858f695a | [
"Apache-2.0"
] | 7 | 2016-12-27T20:55:20.000Z | 2018-03-09T00:32:19.000Z | /*
* Copyright 2016-2017 Morgan Stanley
*
* 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 i... | 27.963415 | 74 | 0.703009 | taylorb-microsoft |
f1da495c55dca34d529f8248b1990f02491ea1c7 | 3,330 | hpp | C++ | source/include/coffee/http/HttpResponse.hpp | ciscoruiz/wepa | e6d922157543c91b6804f11073424a0a9c6e8f51 | [
"MIT"
] | 2 | 2018-02-03T06:56:29.000Z | 2021-04-20T10:28:32.000Z | source/include/coffee/http/HttpResponse.hpp | ciscoruiz/wepa | e6d922157543c91b6804f11073424a0a9c6e8f51 | [
"MIT"
] | 8 | 2018-02-18T21:00:07.000Z | 2018-02-20T15:31:24.000Z | source/include/coffee/http/HttpResponse.hpp | ciscoruiz/wepa | e6d922157543c91b6804f11073424a0a9c6e8f51 | [
"MIT"
] | 1 | 2018-02-09T07:09:26.000Z | 2018-02-09T07:09:26.000Z | // MIT License
//
// Copyright (c) 2018 Francisco Ruiz (francisco.ruiz.rayo@gmail.com)
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation ... | 35.052632 | 168 | 0.751351 | ciscoruiz |
f1de45a3fbe4bbbbc6097c1095eb0a2c14f47b53 | 2,305 | cpp | C++ | POJ/10 - 13/poj1185.cpp | bilibiliShen/CodeBank | 49a69b2b2c3603bf105140a9d924946ed3193457 | [
"MIT"
] | 1 | 2017-08-19T16:02:15.000Z | 2017-08-19T16:02:15.000Z | POJ/10 - 13/poj1185.cpp | bilibiliShen/CodeBank | 49a69b2b2c3603bf105140a9d924946ed3193457 | [
"MIT"
] | null | null | null | POJ/10 - 13/poj1185.cpp | bilibiliShen/CodeBank | 49a69b2b2c3603bf105140a9d924946ed3193457 | [
"MIT"
] | 1 | 2018-01-05T23:37:23.000Z | 2018-01-05T23:37:23.000Z | #include <iostream>
#include <string>
#include <cstring>
#include <cstdio>
#include <cmath>
#include <vector>
#include <algorithm>
using namespace std;
typedef long long int64;
template<class T>inline bool updateMin(T& a, T b){ return a > b ? a = b, 1: 0; }
template<class T>inline bool updateMax(T& a, T b){ return a <... | 23.282828 | 80 | 0.390889 | bilibiliShen |
f1e07af3cb00c29e622d43fef704df02a835263e | 821 | cpp | C++ | src/classwork/03_assign/main.cpp | IrvinBeltranACC/acc-cosc-1337-spring-2021-IrvinBeltranACC | 379a48eb330bd00b307a67fca182d588a13b00ff | [
"MIT"
] | null | null | null | src/classwork/03_assign/main.cpp | IrvinBeltranACC/acc-cosc-1337-spring-2021-IrvinBeltranACC | 379a48eb330bd00b307a67fca182d588a13b00ff | [
"MIT"
] | null | null | null | src/classwork/03_assign/main.cpp | IrvinBeltranACC/acc-cosc-1337-spring-2021-IrvinBeltranACC | 379a48eb330bd00b307a67fca182d588a13b00ff | [
"MIT"
] | 1 | 2021-02-05T03:03:49.000Z | 2021-02-05T03:03:49.000Z | //Write the include statement for decisions.h here
#include <iostream>
#include "decision.h"
//Write namespace using statements for cout and cin
using std:: cout; using std::cin ;
int main()
{
int grade;
std::string letter_grade_if;
std::string letter_grade_switch;
cout<<"\nEnter a numerical grade between 0-1... | 22.805556 | 186 | 0.711328 | IrvinBeltranACC |
f1e536af449a94bfcb37487fbb4d120d8c96090c | 848 | cpp | C++ | Group-Video/OpenVideoCall-Linux/sample/OpenVideoCall/OpenVideoCallApp.cpp | 635342478/Basic-Video-Call | d4013342e176df268c7b5030bf8168f95cf664c2 | [
"MIT"
] | 666 | 2018-10-03T19:51:47.000Z | 2022-03-29T04:27:02.000Z | Group-Video/OpenVideoCall-Linux/sample/OpenVideoCall/OpenVideoCallApp.cpp | 635342478/Basic-Video-Call | d4013342e176df268c7b5030bf8168f95cf664c2 | [
"MIT"
] | 180 | 2018-10-09T23:17:10.000Z | 2022-03-31T13:21:42.000Z | Group-Video/OpenVideoCall-Linux/sample/OpenVideoCall/OpenVideoCallApp.cpp | 635342478/Basic-Video-Call | d4013342e176df268c7b5030bf8168f95cf664c2 | [
"MIT"
] | 1,128 | 2018-10-01T05:50:12.000Z | 2022-03-24T09:13:33.000Z | #include "AgoraDefs.h"
#include "OpenVideoCallApp.h"
#include "View/CommandLineView.h"
#include "Controller/EngineController.h"
#include "EngineModel/AGEngineModel.h"
OpenVideoCallApp::OpenVideoCallApp() {
m_view = new CommandLineView();
m_controller = new EngineController();
m_controller->setView(m_vi... | 21.74359 | 57 | 0.676887 | 635342478 |
f1effaa9a7ee21e4822ea94125ca78227be51f4c | 1,125 | cpp | C++ | Actions/SaveByTypeAction.cpp | D4rk1n/Project | c2dcfd0fc52cb0c7d755e5fc387171fc09bc3aae | [
"Apache-2.0"
] | 2 | 2019-06-15T21:46:56.000Z | 2019-06-22T02:20:28.000Z | Actions/SaveByTypeAction.cpp | D4rk1n/Project | c2dcfd0fc52cb0c7d755e5fc387171fc09bc3aae | [
"Apache-2.0"
] | 1 | 2019-06-22T03:31:52.000Z | 2019-06-22T03:44:14.000Z | Actions/SaveByTypeAction.cpp | D4rk1n/Paint-For-Kids-Project | c2dcfd0fc52cb0c7d755e5fc387171fc09bc3aae | [
"Apache-2.0"
] | 1 | 2018-12-30T09:47:25.000Z | 2018-12-30T09:47:25.000Z | #include "SaveByTypeAction.h"
#include "..\ApplicationManager.h"
#include "..\Figures\CElipse.h"
#include "..\Figures\CRectangle.h"
#include "..\Figures\CTriangle.h"
#include "..\Figures\CRhombus.h"
#include "..\Figures\CLine.h"
#include "..\GUI\UI_Info.h"
#include "..\GUI\input.h"
#include "..\GUI\Output.h"
#include "... | 19.396552 | 73 | 0.68 | D4rk1n |
f1f226b7679f8e35dd4ad10646256f600e1a1c0f | 5,101 | cpp | C++ | rdf3x/src/rts/GroupBy.cpp | dkw-aau/trident-clone | 18f896db2be05870069ae7b3aa6b4837c74fff0f | [
"Apache-2.0"
] | 20 | 2018-10-17T21:39:40.000Z | 2021-11-10T11:07:23.000Z | rdf3x/src/rts/GroupBy.cpp | dkw-aau/trident-clone | 18f896db2be05870069ae7b3aa6b4837c74fff0f | [
"Apache-2.0"
] | 5 | 2020-07-06T22:50:04.000Z | 2022-03-17T10:34:15.000Z | rdf3x/src/rts/GroupBy.cpp | dkw-aau/trident-clone | 18f896db2be05870069ae7b3aa6b4837c74fff0f | [
"Apache-2.0"
] | 9 | 2018-09-18T11:37:35.000Z | 2022-03-29T07:46:41.000Z | #include <algorithm>
#include <rts/operator/GroupBy.hpp>
#include <rts/operator/PlanPrinter.hpp>
#include <algorithm>
GroupBy::GroupBy(Operator* child,
std::map<unsigned, Register*> bindings,
std::vector<unsigned> regs,
bool distinct,
double expectedOutputCardinality) : Operator(expect... | 29.148571 | 147 | 0.576162 | dkw-aau |
f1f95ab7ceac4f70a394d48d6d8be9dcbcd6ccd6 | 2,668 | cpp | C++ | source/language/scope.cpp | ThatGuyMike7/masonc | 43a3a69cd64f52fda8a629360c52a222549d6368 | [
"BSL-1.0"
] | 3 | 2020-08-10T13:37:48.000Z | 2021-07-06T10:14:39.000Z | source/language/scope.cpp | ThatGuyMike7/masonc | 43a3a69cd64f52fda8a629360c52a222549d6368 | [
"BSL-1.0"
] | null | null | null | source/language/scope.cpp | ThatGuyMike7/masonc | 43a3a69cd64f52fda8a629360c52a222549d6368 | [
"BSL-1.0"
] | null | null | null | #include <scope.hpp>
#include <logger.hpp>
#include <common.hpp>
#include <mod.hpp>
#include <iostream>
#include <optional>
namespace masonc
{
scope_index scope::index()
{
return m_index;
}
const mod& scope::get_module()
{
return *m_module;
}
const char* scope::name()
... | 24.036036 | 91 | 0.583958 | ThatGuyMike7 |
f1fadb7d0fdf8d7f5326fda99653732f2199563c | 5,795 | cpp | C++ | src/animation_runner/animation_runner.cpp | Mercotui/truncated-cube-lamp | 0fbccd0f5189b0c6aed530569c77e22cdfec92cd | [
"MIT"
] | 1 | 2021-11-30T16:20:29.000Z | 2021-11-30T16:20:29.000Z | src/animation_runner/animation_runner.cpp | Mercotui/truncated-cube-lamp | 0fbccd0f5189b0c6aed530569c77e22cdfec92cd | [
"MIT"
] | 1 | 2022-02-27T13:27:44.000Z | 2022-02-27T13:27:44.000Z | src/animation_runner/animation_runner.cpp | Mercotui/truncated-cube-lamp | 0fbccd0f5189b0c6aed530569c77e22cdfec92cd | [
"MIT"
] | null | null | null | #include "animation_runner.hpp"
#include <QtCore/QCoreApplication>
#include <QtCore/QDir>
#include <QtCore/QDirIterator>
#include <QtCore/QLoggingCategory>
#include <QtCore/QThread>
#include <algorithm>
#include <utility>
Q_LOGGING_CATEGORY(AnimationRunnerLog, "animation.runner", QtInfoMsg)
namespace {
constexpr int... | 34.909639 | 79 | 0.679034 | Mercotui |
f1fd08670f58b9ec04eaa0c75e096215f8ad1993 | 1,773 | hpp | C++ | libs/network/include/network/generics/callbacks.hpp | devjsc/ledger-1 | 2aa68e05b9f9c10a9971fc8ddf4848695511af3c | [
"Apache-2.0"
] | 3 | 2019-07-11T08:49:27.000Z | 2021-09-07T16:49:15.000Z | libs/network/include/network/generics/callbacks.hpp | devjsc/ledger-1 | 2aa68e05b9f9c10a9971fc8ddf4848695511af3c | [
"Apache-2.0"
] | null | null | null | libs/network/include/network/generics/callbacks.hpp | devjsc/ledger-1 | 2aa68e05b9f9c10a9971fc8ddf4848695511af3c | [
"Apache-2.0"
] | 2 | 2019-11-13T10:55:24.000Z | 2019-11-13T11:37:09.000Z | #pragma once
//------------------------------------------------------------------------------
//
// Copyright 2018-2019 Fetch.AI Limited
//
// 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 Licen... | 24.625 | 80 | 0.601241 | devjsc |
f1fd9de1155d653a44ccb0e04cf7767249e9a536 | 2,493 | cpp | C++ | src/LG/lg-P1175.cpp | krishukr/cpp-code | 1c94401682227bd86c0d9295134d43582247794e | [
"MIT"
] | 1 | 2021-08-13T14:27:39.000Z | 2021-08-13T14:27:39.000Z | src/LG/lg-P1175.cpp | krishukr/cpp-code | 1c94401682227bd86c0d9295134d43582247794e | [
"MIT"
] | null | null | null | src/LG/lg-P1175.cpp | krishukr/cpp-code | 1c94401682227bd86c0d9295134d43582247794e | [
"MIT"
] | null | null | null | #include <cmath>
#include <cstdio>
#include <cstring>
#include <iostream>
#include <list>
#include <stack>
void out(std::string s);
int pri(char x);
int num(int a, int b, char op);
std::string trans(std::string s);
void calc(std::string s);
int main() {
std::ios::sync_with_stdio(false);
std::string s;
... | 19.629921 | 63 | 0.384276 | krishukr |
f1ff1dd453499abb5396b20b59f4a38318c663a1 | 419 | cpp | C++ | Chapter01/philosophy/time/good_time.cpp | gbellizio/Software-Architecture-with-Cpp | eb0f7a52ef1253d9b0091714eee9c94c156b02bc | [
"MIT"
] | 193 | 2021-03-27T00:46:13.000Z | 2022-03-29T07:25:00.000Z | Chapter01/philosophy/time/good_time.cpp | gbellizio/Software-Architecture-with-Cpp | eb0f7a52ef1253d9b0091714eee9c94c156b02bc | [
"MIT"
] | 6 | 2021-03-26T05:48:17.000Z | 2022-02-15T12:16:54.000Z | Chapter01/philosophy/time/good_time.cpp | gbellizio/Software-Architecture-with-Cpp | eb0f7a52ef1253d9b0091714eee9c94c156b02bc | [
"MIT"
] | 64 | 2021-04-01T02:18:55.000Z | 2022-03-14T12:32:29.000Z | #include <chrono>
using namespace std::literals::chrono_literals;
struct Duration {
std::chrono::milliseconds millis_;
};
void example() {
auto d = Duration{};
// d.millis_ = 100; // compilation error, as 100 could mean anything
d.millis_ = 100ms; // okay
auto timeout = 1s; // or std::chrono::seconds(1)... | 23.277778 | 80 | 0.680191 | gbellizio |
7b02d0cfd49fa5a663c0e2ba782f3ead058c2813 | 2,116 | cpp | C++ | library/cpp/coroutine/engine/stack/ut/stack_ut.cpp | wikman/catboost | 984989d556a92f4978df193b835dfe98afa77bc2 | [
"Apache-2.0"
] | null | null | null | library/cpp/coroutine/engine/stack/ut/stack_ut.cpp | wikman/catboost | 984989d556a92f4978df193b835dfe98afa77bc2 | [
"Apache-2.0"
] | null | null | null | library/cpp/coroutine/engine/stack/ut/stack_ut.cpp | wikman/catboost | 984989d556a92f4978df193b835dfe98afa77bc2 | [
"Apache-2.0"
] | null | null | null | #include <library/cpp/coroutine/engine/stack/stack.h>
#include <library/cpp/coroutine/engine/stack/stack_common.h>
#include <library/cpp/coroutine/engine/stack/stack_guards.h>
#include <library/cpp/coroutine/engine/stack/stack_utils.h>
#include <library/cpp/testing/gtest/gtest.h>
using namespace testing;
namespace N... | 34.688525 | 110 | 0.657372 | wikman |
7b0894ccc6c79bd4a7ccce8881253bc547da3658 | 4,223 | cc | C++ | garbage_collector.cc | jkominek/fdbfs | 0a347cc63f99428ff37348486a29b11ea13d9292 | [
"0BSD"
] | 12 | 2019-09-11T09:32:31.000Z | 2022-01-14T05:26:38.000Z | garbage_collector.cc | jkominek/fdbfs | 0a347cc63f99428ff37348486a29b11ea13d9292 | [
"0BSD"
] | 18 | 2019-12-17T22:32:01.000Z | 2022-03-14T06:03:15.000Z | garbage_collector.cc | jkominek/fdbfs | 0a347cc63f99428ff37348486a29b11ea13d9292 | [
"0BSD"
] | null | null | null |
#define FUSE_USE_VERSION 26
#include <fuse_lowlevel.h>
#define FDB_API_VERSION 630
#include <foundationdb/fdb_c.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <errno.h>
#include <fcntl.h>
#include <assert.h>
#include <time.h>
#include "util.h"
#include "inflight.h"
/************************... | 27.966887 | 73 | 0.621596 | jkominek |
7b09f0886cd8473cc9d9089adf2fb616e3ade3d4 | 2,926 | cpp | C++ | source/interactables/nodeController.cpp | theKlanc/Z3 | 97c28f31483d1d5c8c7d1aa61155b256b3d4094a | [
"MIT"
] | 4 | 2020-08-09T20:34:28.000Z | 2021-07-22T23:30:40.000Z | source/interactables/nodeController.cpp | theKlanc/Z3 | 97c28f31483d1d5c8c7d1aa61155b256b3d4094a | [
"MIT"
] | 5 | 2020-02-18T23:19:14.000Z | 2020-02-18T23:26:24.000Z | source/interactables/nodeController.cpp | theKlanc/Z3 | 97c28f31483d1d5c8c7d1aa61155b256b3d4094a | [
"MIT"
] | null | null | null | #include "interactables/nodeController.hpp"
#include "services.hpp"
#include "components/brain.hpp"
#include "jsonTools.hpp"
#include "universeNode.hpp"
#include "icecream.hpp"
#include "components/velocity.hpp"
nodeController::nodeController()
{
_thrustViewer = std::make_shared<fddDisplay>(fddDisplay({},240,{},{-1,-... | 29.26 | 165 | 0.692413 | theKlanc |
7b137d262e1112bb8b7e846f8c61bacc10b28aec | 2,480 | cpp | C++ | ProceduralTerrainGen/Plugins/RuntimeMeshComponent/Intermediate/Build/Win64/UE4/Shipping/RuntimeMeshComponent/Module.RuntimeMeshComponent.gen.3_of_4.cpp | RFornalik/ProceduralTerrain | 017b8df6606eef242a399192518dcd9ebd3bbcc9 | [
"MIT"
] | null | null | null | ProceduralTerrainGen/Plugins/RuntimeMeshComponent/Intermediate/Build/Win64/UE4/Shipping/RuntimeMeshComponent/Module.RuntimeMeshComponent.gen.3_of_4.cpp | RFornalik/ProceduralTerrain | 017b8df6606eef242a399192518dcd9ebd3bbcc9 | [
"MIT"
] | null | null | null | ProceduralTerrainGen/Plugins/RuntimeMeshComponent/Intermediate/Build/Win64/UE4/Shipping/RuntimeMeshComponent/Module.RuntimeMeshComponent.gen.3_of_4.cpp | RFornalik/ProceduralTerrain | 017b8df6606eef242a399192518dcd9ebd3bbcc9 | [
"MIT"
] | null | null | null | // This file is automatically generated at compile-time to include some subset of the user-created cpp files.
#include "C:/Users/rufus/Documents/ProceduralTerrainDemo/ProceduralTerrainGen/Plugins/RuntimeMeshComponent/Intermediate/Build/Win64/UE4/Inc/RuntimeMeshComponent/RuntimeMeshModifierAdjacency.gen.cpp"
#include "C... | 177.142857 | 204 | 0.884677 | RFornalik |
7b1b5667e6390299e7c6ddc1399ff49ab1e52527 | 338 | hpp | C++ | src/utility/test_coroutine.hpp | RamchandraApte/OmniTemplate | f150f451871b0ab43ac39a798186278106da1527 | [
"MIT"
] | 14 | 2019-04-23T21:44:12.000Z | 2022-03-04T22:48:59.000Z | src/utility/test_coroutine.hpp | RamchandraApte/OmniTemplate | f150f451871b0ab43ac39a798186278106da1527 | [
"MIT"
] | 3 | 2019-04-25T10:45:32.000Z | 2020-08-05T22:40:39.000Z | src/utility/test_coroutine.hpp | RamchandraApte/OmniTemplate | f150f451871b0ab43ac39a798186278106da1527 | [
"MIT"
] | 1 | 2020-07-16T22:16:33.000Z | 2020-07-16T22:16:33.000Z | #pragma once
#include "coroutine.hpp"
namespace coroutine::test {
void test_coroutine() {
const ll a = 4;
vector<ll> v;
try {
while (true) {
v.push_back(coro(a));
}
} catch (out_of_range &) {
}
assert((v == vector<ll>{404, 0 * 0, 1 * 1, 2 * 2, 3 * 3, 505}));
}
} // namespace coroutine::test
using namespace... | 19.882353 | 65 | 0.618343 | RamchandraApte |
7b1cb9a6cdf4f2590e1b54256b90137a810d8242 | 1,091 | hpp | C++ | saga/saga/replica.hpp | saga-project/saga-cpp | 7376c0de0529e7d7b80cf08b94ec484c2e56d38e | [
"BSL-1.0"
] | 5 | 2015-09-15T16:24:14.000Z | 2021-08-12T11:05:55.000Z | saga/saga/replica.hpp | saga-project/saga-cpp | 7376c0de0529e7d7b80cf08b94ec484c2e56d38e | [
"BSL-1.0"
] | null | null | null | saga/saga/replica.hpp | saga-project/saga-cpp | 7376c0de0529e7d7b80cf08b94ec484c2e56d38e | [
"BSL-1.0"
] | 3 | 2016-11-17T04:38:38.000Z | 2021-04-10T17:23:52.000Z | // Copyright (c) 2005-2008 Hartmut Kaiser
//
// 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 SAGA_SAGA_REPLICA_HPP
#define SAGA_SAGA_REPLICA_HPP
#include <saga/saga-defs.hpp>
# ifdef SAGA_HAVE_PACKAG... | 32.088235 | 96 | 0.780018 | saga-project |
7b1f6d4d45b0f4b1131204d17f536ded7e9d97c1 | 493,240 | cc | C++ | protobufs/dota_gcmessages_client_tournament.pb.cc | devilesk/dota-replay-parser | e83b96ee513a7193e6703615df4f676e27b1b8a0 | [
"0BSD"
] | 2 | 2017-02-03T16:57:17.000Z | 2020-10-28T21:13:12.000Z | protobufs/dota_gcmessages_client_tournament.pb.cc | invokr/dota-replay-parser | 6260aa834fb47f0f1a8c713f4edada6baeb9dcfa | [
"0BSD"
] | 1 | 2017-02-03T22:44:17.000Z | 2017-02-04T08:58:13.000Z | protobufs/dota_gcmessages_client_tournament.pb.cc | invokr/dota-replay-parser | 6260aa834fb47f0f1a8c713f4edada6baeb9dcfa | [
"0BSD"
] | 2 | 2017-02-03T17:51:57.000Z | 2021-05-22T02:40:00.000Z | // Generated by the protocol buffer compiler. DO NOT EDIT!
// source: dota_gcmessages_client_tournament.proto
#define INTERNAL_SUPPRESS_PROTOBUF_FIELD_DEPRECATION
#include "dota_gcmessages_client_tournament.pb.h"
#include <algorithm>
#include <google/protobuf/stubs/common.h>
#include <google/protobuf/stubs/once.h>
... | 37.253776 | 169 | 0.704239 | devilesk |
7b23219fe75d1827b0eabdad7f5136eb52a067cb | 12,913 | cpp | C++ | sfizz/Synth.cpp | falkTX/sfizz | 7f26b53cb3878065e83f424001be8b2ded3c5306 | [
"BSD-2-Clause"
] | 1 | 2020-01-06T20:56:21.000Z | 2020-01-06T20:56:21.000Z | sfizz/Synth.cpp | falkTX/sfizz | 7f26b53cb3878065e83f424001be8b2ded3c5306 | [
"BSD-2-Clause"
] | null | null | null | sfizz/Synth.cpp | falkTX/sfizz | 7f26b53cb3878065e83f424001be8b2ded3c5306 | [
"BSD-2-Clause"
] | null | null | null | // Copyright (c) 2019, Paul Ferrand
// 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 conditions an... | 34.251989 | 134 | 0.634167 | falkTX |
7b32a25bf67fb77fa18c115825f2556b98464d20 | 664 | hpp | C++ | lib/Croissant/Tags.hpp | Baduit/Croissant | 913ed121f6605314178dd231b5678f974993f99e | [
"MIT"
] | 4 | 2020-12-04T06:46:09.000Z | 2020-12-10T21:37:59.000Z | lib/Croissant/Tags.hpp | Baduit/Croissant | 913ed121f6605314178dd231b5678f974993f99e | [
"MIT"
] | null | null | null | lib/Croissant/Tags.hpp | Baduit/Croissant | 913ed121f6605314178dd231b5678f974993f99e | [
"MIT"
] | null | null | null | #pragma once
#include <concepts>
#include <type_traits>
#include <utility>
namespace Croissant
{
struct EqualityTag {};
struct LessTag {};
struct MoreTag {};
template <typename T>
concept ComparisonTag = std::same_as<T, EqualityTag> || std::same_as<T, LessTag> || std::same_as<T, MoreTag>;
struct ResultTag {};
tem... | 19.529412 | 109 | 0.721386 | Baduit |
7b33a7a0b9e4cd7a2ac9d4a216d250c57e2895cb | 2,270 | hpp | C++ | rectilinear_grid.hpp | RaphaelPoncet/2016-macs2-projet-hpc | 1ae8936113ee24f0b49a303627d4fd5bc045f78d | [
"Apache-2.0"
] | 2 | 2017-07-19T09:14:20.000Z | 2017-09-17T11:39:52.000Z | rectilinear_grid.hpp | RaphaelPoncet/2016-macs2-projet-hpc | 1ae8936113ee24f0b49a303627d4fd5bc045f78d | [
"Apache-2.0"
] | null | null | null | rectilinear_grid.hpp | RaphaelPoncet/2016-macs2-projet-hpc | 1ae8936113ee24f0b49a303627d4fd5bc045f78d | [
"Apache-2.0"
] | null | null | null | // Copyright 2016 Raphael Poncet.
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
// http://www.apache.org/licenses/LICENSE-2.0
// Unless required by applicable law or agreed to in w... | 36.612903 | 77 | 0.748018 | RaphaelPoncet |
7b360adfe7ca4a74e1e03533a59b7d42467e4c75 | 1,813 | cpp | C++ | RenSharp/RenSharpHostControl.cpp | mpforums/RenSharp | 5b3fb8bff2a1772a82a4148bcf3e1265a11aa097 | [
"Apache-2.0"
] | 1 | 2021-10-04T02:34:33.000Z | 2021-10-04T02:34:33.000Z | RenSharp/RenSharpHostControl.cpp | TheUnstoppable/RenSharp | 2a123c6018c18f3fc73501737d600e291ac3afa7 | [
"Apache-2.0"
] | 9 | 2019-07-03T19:19:59.000Z | 2020-03-02T22:00:21.000Z | RenSharp/RenSharpHostControl.cpp | TheUnstoppable/RenSharp | 2a123c6018c18f3fc73501737d600e291ac3afa7 | [
"Apache-2.0"
] | 2 | 2019-08-14T08:37:36.000Z | 2020-09-29T06:44:26.000Z | /*
Copyright 2020 Neijwiert
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, software
distr... | 20.83908 | 130 | 0.766133 | mpforums |
7b3660a00916f4938b3cf90c5f2ddc6acd1da73e | 4,008 | cpp | C++ | Map.cpp | aleksha/electronic-signal | 158b09a4bd9cc9760f94110042c0405a11795e98 | [
"MIT"
] | null | null | null | Map.cpp | aleksha/electronic-signal | 158b09a4bd9cc9760f94110042c0405a11795e98 | [
"MIT"
] | null | null | null | Map.cpp | aleksha/electronic-signal | 158b09a4bd9cc9760f94110042c0405a11795e98 | [
"MIT"
] | null | null | null | // function to calculate induced charge at a ring (radius r) with
// step_size width induced by an electron placed at a distance h from anode.
double sigma(double h, double r){
double sigma = 0.;
double term = 1.;
int k=Nsum;
if(h<0.2) k = 10*Nsum;
for(int n=1;n<k;n++){
term = 1.;
term *= TMath::Be... | 28.834532 | 91 | 0.601796 | aleksha |
7b399e639c1bd498deb946063aadbe56aafbd97e | 1,570 | cpp | C++ | encoder/vaapiencoder_host.cpp | zhongcong/libyami | 0118c0c78cd5a0208da67024cb9c26b61af67851 | [
"Intel"
] | null | null | null | encoder/vaapiencoder_host.cpp | zhongcong/libyami | 0118c0c78cd5a0208da67024cb9c26b61af67851 | [
"Intel"
] | null | null | null | encoder/vaapiencoder_host.cpp | zhongcong/libyami | 0118c0c78cd5a0208da67024cb9c26b61af67851 | [
"Intel"
] | null | null | null | /*
* vaapiencoder_host.cpp - create specific type of video encoder
*
* Copyright (C) 2013-2014 Intel Corporation
* Author: Xu Guangxin <guangxin.xu@intel.com>
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public License
* as publi... | 29.074074 | 74 | 0.703822 | zhongcong |
7b39b29f96a2e4e7d48ab934b8e4691fc66f23a4 | 1,865 | cpp | C++ | src/circle_midpoint.cpp | MangoMaster/raster_graphics | b40b2731b295ed2d743b59ff2872c81a9faf5130 | [
"MIT"
] | null | null | null | src/circle_midpoint.cpp | MangoMaster/raster_graphics | b40b2731b295ed2d743b59ff2872c81a9faf5130 | [
"MIT"
] | null | null | null | src/circle_midpoint.cpp | MangoMaster/raster_graphics | b40b2731b295ed2d743b59ff2872c81a9faf5130 | [
"MIT"
] | null | null | null | // encoding: utf-8
#include <opencv2/opencv.hpp>
#include "main.h"
// 利用圆的八对称性并平移,一次显示圆上8个点
// (x, y)为以原点为圆心、半径为radius的圆弧上一点的坐标
void circle8Translation(cv::Mat &image, int x, int y, cv::Point center, const cv::Scalar &color)
{
drawPixel(image, center.x + x, center.y + y, color);
drawPixel(image, center.x + y, ... | 32.719298 | 96 | 0.549062 | MangoMaster |
7b3b0128a18e4243161b60398afdbb5c4f922abf | 2,998 | hpp | C++ | mc/rtm.hpp | Juelin-Liu/GraphSetIntersection | 359fc0a377d9b760a5198e2f7a14eab814e48961 | [
"MIT"
] | null | null | null | mc/rtm.hpp | Juelin-Liu/GraphSetIntersection | 359fc0a377d9b760a5198e2f7a14eab814e48961 | [
"MIT"
] | null | null | null | mc/rtm.hpp | Juelin-Liu/GraphSetIntersection | 359fc0a377d9b760a5198e2f7a14eab814e48961 | [
"MIT"
] | null | null | null | #ifndef _RTM_H_
#define _RTM_H_
#include "util.hpp"
#include "table.h"
namespace RTM_AVX2
{
typedef uint8_t Bitmap;
const Bitmap BITMASK = 0xff;
using namespace AVX2_DECODE_TABLE;
/**
* @param deg number of neighbors
* @return size of the bitmap vector (bytes)
* */
int get_vector_size(int deg);... | 31.893617 | 142 | 0.700467 | Juelin-Liu |
7b3f8627923ce5ae183f137280f13dd556e8e217 | 2,408 | cpp | C++ | engine/src/Scripting/Transformation.cpp | BigETI/NoLifeNoCry | 70ac2498b5e740b2b348771ef9617dea1eed7f9c | [
"MIT"
] | 5 | 2020-11-07T23:38:48.000Z | 2021-12-07T11:03:22.000Z | engine/src/Scripting/Transformation.cpp | BigETI/NoLifeNoCry | 70ac2498b5e740b2b348771ef9617dea1eed7f9c | [
"MIT"
] | null | null | null | engine/src/Scripting/Transformation.cpp | BigETI/NoLifeNoCry | 70ac2498b5e740b2b348771ef9617dea1eed7f9c | [
"MIT"
] | null | null | null | #include <glm/gtx/matrix_decompose.hpp>
#include <Scripting/Transformation.hpp>
DirtMachine::Scripting::Transformation::Transformation(DirtMachine::Scripting::Transformation* parent) :
DirtMachine::Scripting::Behaviour(false),
parent(parent),
transformation()
{
// ...
}
DirtMachine::Scripting::Transformation::~Tr... | 25.347368 | 110 | 0.775332 | BigETI |
7b444d9256199464c7999447ece2d312b6752943 | 264 | cpp | C++ | Source/IVoxel/Private/WorldGenerator/FlatWorldGenerator.cpp | kpqi5858/IVoxel | 421324dd840fcf27f9da668e1c4d4e7af9c2a983 | [
"MIT"
] | 1 | 2018-03-11T12:26:58.000Z | 2018-03-11T12:26:58.000Z | Source/IVoxel/Private/WorldGenerator/FlatWorldGenerator.cpp | kpqi5858/IVoxel | 421324dd840fcf27f9da668e1c4d4e7af9c2a983 | [
"MIT"
] | null | null | null | Source/IVoxel/Private/WorldGenerator/FlatWorldGenerator.cpp | kpqi5858/IVoxel | 421324dd840fcf27f9da668e1c4d4e7af9c2a983 | [
"MIT"
] | 1 | 2021-11-13T17:55:49.000Z | 2021-11-13T17:55:49.000Z | #include "FlatWorldGenerator.h"
UFlatWorldGenerator::UFlatWorldGenerator()
{
}
void UFlatWorldGenerator::GetValueAndColor(FIntVector Location, bool &Value, FColor &Color)
{
if (Location.Z < 10)
{
Value = true;
Color = FColor(1, 0, 0, 1);
}
else
{
}
} | 14.666667 | 91 | 0.689394 | kpqi5858 |
7b452e06138221a3af923eb35fd936814eddee65 | 2,026 | cpp | C++ | Developments/solidity-develop/test/boostTest.cpp | jansenbarabona/NFT-Game-Development | 49bf6593925123f0212dac13badd609be3866561 | [
"MIT"
] | null | null | null | Developments/solidity-develop/test/boostTest.cpp | jansenbarabona/NFT-Game-Development | 49bf6593925123f0212dac13badd609be3866561 | [
"MIT"
] | null | null | null | Developments/solidity-develop/test/boostTest.cpp | jansenbarabona/NFT-Game-Development | 49bf6593925123f0212dac13badd609be3866561 | [
"MIT"
] | null | null | null | /*
This file is part of solidity.
solidity is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
solidity is distributed in the hope that i... | 25.974359 | 73 | 0.740375 | jansenbarabona |
0da55752e6a110c78d40f596f41d7fa00bfbb951 | 342 | cpp | C++ | lib/scopy.cpp | langou/latl | df838fb44a1ef5c77b57bf60bd46eaeff8db3492 | [
"BSD-3-Clause-Open-MPI"
] | 6 | 2015-12-13T09:10:11.000Z | 2022-02-09T23:18:22.000Z | lib/scopy.cpp | langou/latl | df838fb44a1ef5c77b57bf60bd46eaeff8db3492 | [
"BSD-3-Clause-Open-MPI"
] | null | null | null | lib/scopy.cpp | langou/latl | df838fb44a1ef5c77b57bf60bd46eaeff8db3492 | [
"BSD-3-Clause-Open-MPI"
] | 2 | 2019-02-01T06:46:36.000Z | 2022-02-09T23:18:24.000Z | //
// scopy.cpp
// Linear Algebra Template Library
//
// Created by Rodney James on 1/1/13.
// Copyright (c) 2013 University of Colorado Denver. All rights reserved.
//
#include "blas.h"
#include "copy.h"
using LATL::COPY;
int scopy_(int &n, float *x, int& incx, float *y, int& incy)
{
COPY<float>(n,x,incx,y,i... | 17.1 | 74 | 0.649123 | langou |
0da794c492fd771ae15daadded850a6c0ddb4975 | 3,665 | hpp | C++ | tapl/common/ringBuffer.hpp | towardsautonomy/TAPL | 4d065b2250483bf2ea118bafa312ca893a25ca87 | [
"MIT"
] | 1 | 2021-01-05T12:53:17.000Z | 2021-01-05T12:53:17.000Z | tapl/common/ringBuffer.hpp | towardsautonomy/TAPL | 4d065b2250483bf2ea118bafa312ca893a25ca87 | [
"MIT"
] | null | null | null | tapl/common/ringBuffer.hpp | towardsautonomy/TAPL | 4d065b2250483bf2ea118bafa312ca893a25ca87 | [
"MIT"
] | null | null | null | /**
* @file ringBuffer.hpp
* @brief This file provides an implementation of a ring buffer
* @author Shubham Shrivastava
*/
#ifndef RING_BUFFER_H_
#define RING_BUFFER_H_
#include <iostream>
#include <algorithm>
#include "tapl/common/taplLog.hpp"
namespace tapl
{
/**
* @brief Ring Buffer
*/
... | 26.366906 | 73 | 0.454843 | towardsautonomy |
0db1fb3968b40f77ea6baae37e0e7695221d3e8b | 1,747 | cpp | C++ | CsUserInterface/Source/CsUIEditor/Public/GraphEditor/EnumStruct/UserWidget/SCsGraphPin_ECsUserWidgetPooled.cpp | closedsum/core | c3cae44a177b9684585043a275130f9c7b67fef0 | [
"Unlicense"
] | 2 | 2019-03-17T10:43:53.000Z | 2021-04-20T21:24:19.000Z | CsUserInterface/Source/CsUIEditor/Public/GraphEditor/EnumStruct/UserWidget/SCsGraphPin_ECsUserWidgetPooled.cpp | closedsum/core | c3cae44a177b9684585043a275130f9c7b67fef0 | [
"Unlicense"
] | null | null | null | CsUserInterface/Source/CsUIEditor/Public/GraphEditor/EnumStruct/UserWidget/SCsGraphPin_ECsUserWidgetPooled.cpp | closedsum/core | c3cae44a177b9684585043a275130f9c7b67fef0 | [
"Unlicense"
] | null | null | null | // Copyright 2017-2021 Closed Sum Games, LLC. All Rights Reserved.
#include "GraphEditor/EnumStruct/UserWidget/SCsGraphPin_ECsUserWidgetPooled.h"
#include "CsUIEditor.h"
#include "Managers/UserWidget/CsTypes_UserWidget.h"
// Cached
#pragma region
namespace NCsGraphPinUserWidgetPooledCached
{
namespace Str
{
cons... | 30.649123 | 124 | 0.846594 | closedsum |
0db2edf1d6ff302406ae69048ccd85208a5f1378 | 590 | hpp | C++ | include/dna_library.hpp | dyigitpolat/relaxase | bb183197b48ca448afe71cb801c9cdafb8d418a1 | [
"MIT"
] | 1 | 2020-10-22T11:27:51.000Z | 2020-10-22T11:27:51.000Z | include/dna_library.hpp | dyigitpolat/relaxase | bb183197b48ca448afe71cb801c9cdafb8d418a1 | [
"MIT"
] | null | null | null | include/dna_library.hpp | dyigitpolat/relaxase | bb183197b48ca448afe71cb801c9cdafb8d418a1 | [
"MIT"
] | null | null | null | #pragma once
#include <vector>
#include <string>
#include "dna_pool.hpp"
#include "dna_strand.hpp"
struct FileAttributes
{
int pool_id;
LogicalAttributes logical_attributes;
};
class DNALibrary
{
public:
DNALibrary(); // default constructor
FileAttributes add_file(const std::vector<DNAStrand> &stran... | 21.071429 | 107 | 0.730508 | dyigitpolat |
0db610941a9dfa0de06b5ff4ce6426bc8133915d | 4,854 | hpp | C++ | Lexer/Parser.hpp | Pyxxil/LC3 | 7a2b201745846cd0f188648bfcc93f35d7ac711b | [
"MIT"
] | 2 | 2020-08-18T01:04:58.000Z | 2022-02-21T19:46:59.000Z | Lexer/Parser.hpp | Pyxxil/LC3 | 7a2b201745846cd0f188648bfcc93f35d7ac711b | [
"MIT"
] | null | null | null | Lexer/Parser.hpp | Pyxxil/LC3 | 7a2b201745846cd0f188648bfcc93f35d7ac711b | [
"MIT"
] | null | null | null | #ifndef PARSER_HPP
#define PARSER_HPP
#include <map>
#include "Lexer.hpp"
#include "Tokens.hpp"
namespace Parser {
class Parser {
public:
explicit Parser(std::vector<std::unique_ptr<Lexer::Token::Token>> tokens)
: m_tokens(std::move(tokens)) {}
void parse() {
uint16_t current_address{0};
bool orig... | 35.691176 | 79 | 0.542851 | Pyxxil |
0dba848b3567e0dd938cb7c6cee647f7df7ccd04 | 304 | hh | C++ | src/client/human/human.hh | TheBenPerson/Game | 824b2240e95529b735b4d8055a541c77102bb5dc | [
"MIT"
] | null | null | null | src/client/human/human.hh | TheBenPerson/Game | 824b2240e95529b735b4d8055a541c77102bb5dc | [
"MIT"
] | null | null | null | src/client/human/human.hh | TheBenPerson/Game | 824b2240e95529b735b4d8055a541c77102bb5dc | [
"MIT"
] | null | null | null | #ifndef GAME_CLIENT_HUMAN
#define GAME_CLIENT_HUMAN
#include <stdint.h>
#include "entity.hh"
class Human: public Entity {
public:
Human(uint8_t *datat);
~Human();
void draw();
private:
typedef enum {LEFT, DOWN, RIGHT, UP} direction;
direction lastDir = UP;
char *name;
};
#endif
| 11.259259 | 49 | 0.677632 | TheBenPerson |
0dc2420ad4ac54d89a0fefe26df9221255024c8c | 6,227 | cpp | C++ | Base/PLPhysics/src/SceneNodes/RagdollBody.cpp | ktotheoz/pixellight | 43a661e762034054b47766d7e38d94baf22d2038 | [
"MIT"
] | 83 | 2015-01-08T15:06:14.000Z | 2021-07-20T17:07:00.000Z | Base/PLPhysics/src/SceneNodes/RagdollBody.cpp | PixelLightFoundation/pixellight | 43a661e762034054b47766d7e38d94baf22d2038 | [
"MIT"
] | 27 | 2019-06-18T06:46:07.000Z | 2020-02-02T11:11:28.000Z | Base/PLPhysics/src/SceneNodes/RagdollBody.cpp | naetherm/PixelLight | d7666f5b49020334cbb5debbee11030f34cced56 | [
"MIT"
] | 40 | 2015-02-25T18:24:34.000Z | 2021-03-06T09:01:48.000Z | /*********************************************************\
* File: RagdollBody.cpp *
*
* Copyright (C) 2002-2013 The PixelLight Team (http://www.pixellight.org/)
*
* This file is part of PixelLight.
*
* Permission is hereby granted, free of charge, to any person obtaining a co... | 29.372642 | 97 | 0.629517 | ktotheoz |
0dcd62c4eac3d1cec80ba7690df119bc9d4dfa46 | 3,595 | cpp | C++ | Practical_5_Pacman/components/cmp_ghost_movement.cpp | CarlosMiraGarcia/Pong_Practical-2 | ba26587fb2b538b9c3cceec98f1026112b2c6413 | [
"MIT"
] | null | null | null | Practical_5_Pacman/components/cmp_ghost_movement.cpp | CarlosMiraGarcia/Pong_Practical-2 | ba26587fb2b538b9c3cceec98f1026112b2c6413 | [
"MIT"
] | null | null | null | Practical_5_Pacman/components/cmp_ghost_movement.cpp | CarlosMiraGarcia/Pong_Practical-2 | ba26587fb2b538b9c3cceec98f1026112b2c6413 | [
"MIT"
] | null | null | null | #include "cmp_ghost_movement.h"
#include "cmp_player_movement.h"
#include "..\game.h"
#include <deque>
#include "../Pacman.h"
using namespace std;
using namespace sf;
static const Vector2i directions[] = { {1, 0}, {0, 1}, {0, -1}, {-1, 0} };
GhostMovementComponent::GhostMovementComponent(Entity* p)
: ActorMovementCo... | 30.466102 | 115 | 0.680111 | CarlosMiraGarcia |
0dd83497440071a37d3959b721008b3782f0b2dd | 631 | hpp | C++ | include/Keyboard.hpp | EmilyEclipse/Breakout | 9a5ef518464e02d6cb1f39e4c3011d52ec62fef2 | [
"MIT"
] | null | null | null | include/Keyboard.hpp | EmilyEclipse/Breakout | 9a5ef518464e02d6cb1f39e4c3011d52ec62fef2 | [
"MIT"
] | 2 | 2020-12-26T10:46:31.000Z | 2021-01-28T19:25:22.000Z | include/Keyboard.hpp | EmilyEclipse/Breakout | 9a5ef518464e02d6cb1f39e4c3011d52ec62fef2 | [
"MIT"
] | null | null | null | #ifndef KEYBOARD_HPP
#define KEYBOARD_HPP
#include <SDL2/SDL.h>
#include "Paddle.hpp"
class Keyboard
{
public:
static void handleInput();
static void setPaddle(Paddle* paddle);
class Key{
public:
Key(int inputScancode){
scancode = inputScancode;
state_p... | 19.71875 | 51 | 0.561014 | EmilyEclipse |
0ded6b82ae3a7dfb659211f8157be0a0defcf1c9 | 3,060 | cpp | C++ | 17_gpsanta.cpp | risteon/IEEE_SB_Passau_advent_2016 | 138bc4b90e55cc444e4c740d1641281bfe058e31 | [
"MIT"
] | null | null | null | 17_gpsanta.cpp | risteon/IEEE_SB_Passau_advent_2016 | 138bc4b90e55cc444e4c740d1641281bfe058e31 | [
"MIT"
] | null | null | null | 17_gpsanta.cpp | risteon/IEEE_SB_Passau_advent_2016 | 138bc4b90e55cc444e4c740d1641281bfe058e31 | [
"MIT"
] | null | null | null | // this is for emacs file handling -*- mode: c++; indent-tabs-mode: nil -*-
// -- BEGIN LICENSE BLOCK ----------------------------------------------
// -- END LICENSE BLOCK ------------------------------------------------
//----------------------------------------------------------------------
/*!\file
*
* \author C... | 20.264901 | 75 | 0.508497 | risteon |
0df18d37a458cb900cf31f5bb56826ded09b2262 | 3,993 | cpp | C++ | tests/integral_tests.cpp | gridem/ReplobPrototype | 8c1f7ac46c9c46e7f02b402b8bbc5febaa152c90 | [
"Apache-2.0"
] | 3 | 2016-01-11T11:42:02.000Z | 2016-12-21T14:54:44.000Z | tests/integral_tests.cpp | gridem/ReplobPrototype | 8c1f7ac46c9c46e7f02b402b8bbc5febaa152c90 | [
"Apache-2.0"
] | null | null | null | tests/integral_tests.cpp | gridem/ReplobPrototype | 8c1f7ac46c9c46e7f02b402b8bbc5febaa152c90 | [
"Apache-2.0"
] | null | null | null | /*
* Copyright 2015 Grigory Demchenko (aka gridem)
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicabl... | 23.91018 | 92 | 0.506136 | gridem |
0df5c58634006e4f202d4d1db66b584a36c8ee69 | 2,735 | hpp | C++ | TurbulentArena/Map.hpp | doodlemeat/Turbulent-Arena | 9030f291693e670f7751e23538e649cc24dc929f | [
"MIT"
] | 2 | 2017-02-03T04:30:29.000Z | 2017-03-27T19:33:38.000Z | TurbulentArena/Map.hpp | doodlemeat/Turbulent-Arena | 9030f291693e670f7751e23538e649cc24dc929f | [
"MIT"
] | null | null | null | TurbulentArena/Map.hpp | doodlemeat/Turbulent-Arena | 9030f291693e670f7751e23538e649cc24dc929f | [
"MIT"
] | null | null | null | #pragma once
#include "Physics.hpp"
namespace bjoernligan
{
class Map : public sf::Drawable
{
public:
enum Orientation
{
ORIENTATION_ORTHOGONAL,
ORIENTATION_ISOMETRIC,
ORIENTATION_STAGGERED
};
enum RenderOrder
{
RENDERORDER_RIGHT_DOWN,
RENDERORDER_RIGHT_UP,
RENDERORDER_LEFT_DOWN,
RE... | 21.367188 | 129 | 0.702742 | doodlemeat |
0dfc6de979a1680ac026f288ea4ac1f5eaa6e42c | 1,942 | hpp | C++ | modules/boost/simd/base/include/boost/simd/arithmetic/functions/min.hpp | feelpp/nt2 | 4d121e2c7450f24b735d6cff03720f07b4b2146c | [
"BSL-1.0"
] | 34 | 2017-05-19T18:10:17.000Z | 2022-01-04T02:18:13.000Z | modules/boost/simd/base/include/boost/simd/arithmetic/functions/min.hpp | feelpp/nt2 | 4d121e2c7450f24b735d6cff03720f07b4b2146c | [
"BSL-1.0"
] | null | null | null | modules/boost/simd/base/include/boost/simd/arithmetic/functions/min.hpp | feelpp/nt2 | 4d121e2c7450f24b735d6cff03720f07b4b2146c | [
"BSL-1.0"
] | 7 | 2017-12-02T12:59:17.000Z | 2021-07-31T12:46:14.000Z | //==============================================================================
// Copyright 2003 - 2012 LASMEA UMR 6602 CNRS/Univ. Clermont II
// Copyright 2009 - 2012 LRI UMR 8623 CNRS/Univ Paris Sud XI
//
// Distributed under the Boost Software License, Version 1.0.
// ... | 27.352113 | 129 | 0.593718 | feelpp |
0dfcc7e07a50dfe95fa699c7a27836233ef39a85 | 1,886 | cpp | C++ | Hacker Blocks/Smart Keypad - Advanced.cpp | Shubhrmcf07/Competitive-Coding-and-Interview-Problems | 7281ea3163c0cf6938a3af7b54a8a14f97c97c0e | [
"MIT"
] | 51 | 2020-02-24T11:14:00.000Z | 2022-03-24T09:32:18.000Z | Hacker Blocks/Smart Keypad - Advanced.cpp | Shubhrmcf07/Competitive-Coding-and-Interview-Problems | 7281ea3163c0cf6938a3af7b54a8a14f97c97c0e | [
"MIT"
] | 3 | 2020-10-02T08:16:09.000Z | 2021-04-17T16:32:38.000Z | Hacker Blocks/Smart Keypad - Advanced.cpp | Shubhrmcf07/Competitive-Coding-and-Interview-Problems | 7281ea3163c0cf6938a3af7b54a8a14f97c97c0e | [
"MIT"
] | 18 | 2020-04-24T15:33:36.000Z | 2022-03-24T09:32:20.000Z | /* Hacker Blocks */
/* Title - Smart Keypad - Advanced */
/* Created By - Akash Modak */
/* Date - 14/07/2020 */
// Given a long vector of strings, print the strings that contain the strings generated by numeric string str.
// string searchIn [] = {
// "prateek", "sneha", "deepak", "arnav", "shikh... | 24.815789 | 144 | 0.560976 | Shubhrmcf07 |
0dff851ffc028fc2eebcad183e10ebac4f183a78 | 676 | hpp | C++ | Source/Generator.hpp | Myles-Trevino/Resonance | 47ff7c51caa8fc15862818f56a232c3e71dd7e0a | [
"Apache-2.0"
] | 1 | 2020-09-07T13:03:34.000Z | 2020-09-07T13:03:34.000Z | Source/Generator.hpp | Myles-Trevino/Resonance | 47ff7c51caa8fc15862818f56a232c3e71dd7e0a | [
"Apache-2.0"
] | null | null | null | Source/Generator.hpp | Myles-Trevino/Resonance | 47ff7c51caa8fc15862818f56a232c3e71dd7e0a | [
"Apache-2.0"
] | null | null | null | /*
Copyright 2020 Myles Trevino
Licensed under the Apache License, Version 2.0
https://www.apache.org/licenses/LICENSE-2.0
*/
#pragma once
#include <string>
#include <vector>
#include <glm/glm.hpp>
namespace LV
{
struct Mesh
{
std::vector<glm::fvec3> vertices;
std::vector<unsigned> indices;
};
}
namesp... | 16.095238 | 65 | 0.732249 | Myles-Trevino |
0dff8a9ca53b74b92f0c31b57917793ef5887015 | 6,838 | cc | C++ | fastcap/fc_accs/lstpack.cc | wrcad/xictools | f46ba6d42801426739cc8b2940a809b74f1641e2 | [
"Apache-2.0"
] | 73 | 2017-10-26T12:40:24.000Z | 2022-03-02T16:59:43.000Z | fastcap/fc_accs/lstpack.cc | chris-ayala/xictools | 4ea72c118679caed700dab3d49a8d36445acaec3 | [
"Apache-2.0"
] | 12 | 2017-11-01T10:18:22.000Z | 2022-03-20T19:35:36.000Z | fastcap/fc_accs/lstpack.cc | chris-ayala/xictools | 4ea72c118679caed700dab3d49a8d36445acaec3 | [
"Apache-2.0"
] | 34 | 2017-10-06T17:04:21.000Z | 2022-02-18T16:22:03.000Z |
/*========================================================================*
* *
* Distributed by Whiteley Research Inc., Sunnyvale, California, USA *
* http://wrcad.com *
* Copyright (... | 37.163043 | 78 | 0.463001 | wrcad |
df05ee58525d29d1927e3eeb1764f72b1fca9ad9 | 286 | cpp | C++ | test/quantity_test.cpp | horance-liu/cquantity | 27c0e60087cd9650e154eb527c20be4d7114228a | [
"Apache-2.0"
] | null | null | null | test/quantity_test.cpp | horance-liu/cquantity | 27c0e60087cd9650e154eb527c20be4d7114228a | [
"Apache-2.0"
] | null | null | null | test/quantity_test.cpp | horance-liu/cquantity | 27c0e60087cd9650e154eb527c20be4d7114228a | [
"Apache-2.0"
] | null | null | null | #include "quantity.h"
#include <gtest/gtest.h>
struct QuantityTest : testing::Test {
};
TEST_F(QuantityTest, 3_mile_not_equals_4_mile)
{
Length mile3 = {.amount = 3, .unit = MILE};
Length mile4 = {.amount = 4, .unit = MILE};
ASSERT_FALSE(length_equals(&mile3, &mile4));
} | 22 | 48 | 0.671329 | horance-liu |
df0def27e73116f8cbf74dd8a719697919a52ffa | 747 | hpp | C++ | inc/kos/boot/efi/filesystem.hpp | EmilGedda/kOS | 86d9e3ae377b6d7f003feb1c6ce584e427ed0563 | [
"MIT"
] | 5 | 2018-07-24T02:57:20.000Z | 2020-06-02T04:23:09.000Z | inc/kos/boot/efi/filesystem.hpp | EmilGedda/kOS | 86d9e3ae377b6d7f003feb1c6ce584e427ed0563 | [
"MIT"
] | null | null | null | inc/kos/boot/efi/filesystem.hpp | EmilGedda/kOS | 86d9e3ae377b6d7f003feb1c6ce584e427ed0563 | [
"MIT"
] | 1 | 2018-08-27T15:47:21.000Z | 2018-08-27T15:47:21.000Z | #pragma once
#include <kos/view.hpp>
#include <kos/types.hpp>
#include <Uefi/UefiBaseType.h>
#include <Uefi/UefiSpec.h>
#include <Guid/FileInfo.h>
#include <Protocol/SimpleFileSystem.h>
namespace kos::boot::efi {
struct file_metadata {
u64 size = 0;
};
struct file {
u8* data = 0;
u64 size = 0;
... | 21.342857 | 71 | 0.686747 | EmilGedda |
df1d90e79a4ed477c6654e89de578a4a0639334b | 59 | cpp | C++ | lecture/src/cpp/MyRecipeNote/File.cpp | mac-novice-pg2/tool_dev | c988b72f803f24a130e08ef8515ec282119e377f | [
"BSD-3-Clause"
] | null | null | null | lecture/src/cpp/MyRecipeNote/File.cpp | mac-novice-pg2/tool_dev | c988b72f803f24a130e08ef8515ec282119e377f | [
"BSD-3-Clause"
] | 1 | 2018-09-28T13:33:18.000Z | 2018-09-28T13:33:18.000Z | lecture/src/cpp/MyRecipeNote/File.cpp | mac-novice-pg2/tool_dev | c988b72f803f24a130e08ef8515ec282119e377f | [
"BSD-3-Clause"
] | null | null | null | #include "File.h"
File::File()
{
}
File::~File()
{
}
| 4.538462 | 18 | 0.474576 | mac-novice-pg2 |
df1db50c0b217aa8de54ab7f295324b96710a4c2 | 2,618 | cpp | C++ | range-v3/test/view/unique.cpp | jiayuehua/parallelts-range-exploration | 53b574f650995d1f113d663d7217511a93145ba0 | [
"Apache-2.0"
] | 11 | 2018-01-12T18:29:59.000Z | 2022-01-22T21:50:56.000Z | test/view/unique.cpp | pacxx/range-v3 | bf7494563ce555494024a038042ee279eefeec7d | [
"MIT"
] | 15 | 2017-12-19T11:10:41.000Z | 2018-02-13T10:46:13.000Z | test/view/unique.cpp | pacxx/range-v3 | bf7494563ce555494024a038042ee279eefeec7d | [
"MIT"
] | 1 | 2021-01-08T13:17:16.000Z | 2021-01-08T13:17:16.000Z | // Range v3 library
//
// Copyright Eric Niebler 2014
//
// Use, modification and distribution is subject to 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)
//
// Project home: https://github.com/ericniebler/range-v3
#includ... | 29.41573 | 86 | 0.627196 | jiayuehua |
df20d52c0b6d4fbab5b4e45af39b69d01d95de12 | 491 | cpp | C++ | calibration-cli/src/main.cpp | mc18g13/teensy-drone | 21a396c44a32b85d6455de2743e52ba2c95bb07d | [
"MIT"
] | null | null | null | calibration-cli/src/main.cpp | mc18g13/teensy-drone | 21a396c44a32b85d6455de2743e52ba2c95bb07d | [
"MIT"
] | null | null | null | calibration-cli/src/main.cpp | mc18g13/teensy-drone | 21a396c44a32b85d6455de2743e52ba2c95bb07d | [
"MIT"
] | null | null | null | #include <Arduino.h>
#include "MARGCalibrationHandler.h"
#include "ReceiverCalibrationHandler.h"
#include <arm_math.h>
#include "MenuOptionHandler.h"
#include "MainMenuHandler.h"
MARGCalibrationHandler margCalibrationHandler;
ReceiverCalibrationHandler receiverHandler;
MainMenuHandler mainMenu;
void setup() {
ma... | 19.64 | 53 | 0.790224 | mc18g13 |
afff9df32294269c04ac98691aede97da9a36648 | 1,351 | cpp | C++ | brackets_match/test/brackets_match_test.cpp | fanck0605/shit-algorithm | 75031bb25b59e0594a792f909a6f97bb0375120d | [
"MIT"
] | null | null | null | brackets_match/test/brackets_match_test.cpp | fanck0605/shit-algorithm | 75031bb25b59e0594a792f909a6f97bb0375120d | [
"MIT"
] | null | null | null | brackets_match/test/brackets_match_test.cpp | fanck0605/shit-algorithm | 75031bb25b59e0594a792f909a6f97bb0375120d | [
"MIT"
] | null | null | null | #include <iostream>
#include <vector>
#include <map>
int main()
{
std::string bracketList = "([{}])";
std::map<char, char> bracketPairs{{'{', '}'}, {'[', ']'}, {'(', ')'}};
std::vector<char> leftBracketStack;
for (const auto ch : bracketList)
{
char leftBracket;
char rightBracket;
... | 23.701754 | 74 | 0.437454 | fanck0605 |
b303266b3336153638d043eae723858785b0e98b | 2,066 | cpp | C++ | tools/genrpc/genrpc_template.cpp | tkng/pficommon | 1301e1c9f958656e4bc882ae2db9452e8cffab7e | [
"BSD-3-Clause"
] | 48 | 2017-04-03T18:46:24.000Z | 2022-02-28T01:44:05.000Z | tools/genrpc/genrpc_template.cpp | tkng/pficommon | 1301e1c9f958656e4bc882ae2db9452e8cffab7e | [
"BSD-3-Clause"
] | 44 | 2017-02-21T13:13:52.000Z | 2021-02-06T13:08:31.000Z | tools/genrpc/genrpc_template.cpp | tkng/pficommon | 1301e1c9f958656e4bc882ae2db9452e8cffab7e | [
"BSD-3-Clause"
] | 13 | 2016-12-28T05:04:58.000Z | 2021-10-01T02:17:23.000Z | #include "/usr/local/share/pficommon/gen_php.h"
#include "/usr/local/share/pficommon/gen_hs.h"
#include "/usr/local/share/pficommon/gen_null.h"
#define RPC_PROC_BKUP RPC_PROC
#undef RPC_PROC
#define RPC_PROC REFLECT_RPC_PROC
#define RPC_GEN_BKUP RPC_GEN
#undef RPC_GEN
#define RPC_GEN REFLECT_RPC_GEN
#include "<<<SIG... | 22.703297 | 72 | 0.592933 | tkng |
b308af6133ea26fee0b6963122a63fc74bb85293 | 1,801 | cpp | C++ | aws-cpp-sdk-cognito-idp/source/model/CustomSMSLambdaVersionConfigType.cpp | perfectrecall/aws-sdk-cpp | fb8cbebf2fd62720b65aeff841ad2950e73d8ebd | [
"Apache-2.0"
] | 1 | 2022-02-10T08:06:54.000Z | 2022-02-10T08:06:54.000Z | aws-cpp-sdk-cognito-idp/source/model/CustomSMSLambdaVersionConfigType.cpp | perfectrecall/aws-sdk-cpp | fb8cbebf2fd62720b65aeff841ad2950e73d8ebd | [
"Apache-2.0"
] | 1 | 2021-10-14T16:57:00.000Z | 2021-10-18T10:47:24.000Z | aws-cpp-sdk-cognito-idp/source/model/CustomSMSLambdaVersionConfigType.cpp | ravindra-wagh/aws-sdk-cpp | 7d5ff01b3c3b872f31ca98fb4ce868cd01e97696 | [
"Apache-2.0"
] | 1 | 2021-11-09T12:02:58.000Z | 2021-11-09T12:02:58.000Z | /**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/cognito-idp/model/CustomSMSLambdaVersionConfigType.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <utility>
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
... | 23.697368 | 143 | 0.783454 | perfectrecall |
b316a9dbc71148e4e734dedd9990719f082bc5ad | 1,454 | cpp | C++ | matslise/matslise/periodic.cpp | twist-numerical/matslise | ccce2bd3359963cfdd4b9686cb7b263754e77e7e | [
"MIT"
] | 4 | 2020-08-27T10:10:08.000Z | 2020-09-03T14:06:16.000Z | matslise/matslise/periodic.cpp | twist-numerical/matslise | ccce2bd3359963cfdd4b9686cb7b263754e77e7e | [
"MIT"
] | 7 | 2019-12-16T09:37:59.000Z | 2020-12-01T15:03:00.000Z | matslise/matslise/periodic.cpp | twist-numerical/matslise | ccce2bd3359963cfdd4b9686cb7b263754e77e7e | [
"MIT"
] | 1 | 2020-08-27T14:02:25.000Z | 2020-08-27T14:02:25.000Z | #include "../matslise.h"
#include "../util/find_sector.h"
#include "../util/constants.h"
using namespace matslise;
using namespace Eigen;
using namespace std;
template<typename Scalar>
pair<Y<Scalar, 1, 2>, Array<Scalar, 2, 1>>
PeriodicMatslise<Scalar>::propagate(
const Scalar &E, const Y<Scalar, 1, 2> &y,
... | 39.297297 | 118 | 0.634801 | twist-numerical |
b317cf9c548ebd9e6e16c605107aea308bfd37cc | 895 | cpp | C++ | qwertyattack/KeyPresses.cpp | tblock007/qwertyattack | 9b02531fa896ca269dbaeb1611cc2cc0bbf41de9 | [
"MIT"
] | 1 | 2019-09-11T18:47:52.000Z | 2019-09-11T18:47:52.000Z | qwertyattack/KeyPresses.cpp | tblock007/qwertyattack | 9b02531fa896ca269dbaeb1611cc2cc0bbf41de9 | [
"MIT"
] | null | null | null | qwertyattack/KeyPresses.cpp | tblock007/qwertyattack | 9b02531fa896ca269dbaeb1611cc2cc0bbf41de9 | [
"MIT"
] | 1 | 2019-09-26T03:34:28.000Z | 2019-09-26T03:34:28.000Z | #include "KeyPresses.hpp"
#include <SFML/Config.hpp>
#include "constants.hpp"
namespace qa {
KeyPresses::KeyPresses() : pressMask_(0)
{
}
KeyPresses::KeyPresses(sf::Uint32 mask) : pressMask_(mask)
{
}
void KeyPresses::reset()
{
pressMask_ = 0;
}
bool KeyPresses::isPressed(sf::Int32 i) const
{
return ((pres... | 16.886792 | 77 | 0.667039 | tblock007 |
b31bc20245b1c2da9a5e82afcd552231ed788729 | 1,285 | cpp | C++ | src/lib/util/tests/TestUtToken.cpp | MarkLeone/PostHaste | 56083e30a58489338e39387981029488d7af2390 | [
"MIT"
] | 4 | 2015-05-07T03:29:52.000Z | 2016-08-29T17:30:15.000Z | src/lib/util/tests/TestUtToken.cpp | MarkLeone/PostHaste | 56083e30a58489338e39387981029488d7af2390 | [
"MIT"
] | 1 | 2018-05-14T04:41:04.000Z | 2018-05-14T04:41:04.000Z | src/lib/util/tests/TestUtToken.cpp | MarkLeone/PostHaste | 56083e30a58489338e39387981029488d7af2390 | [
"MIT"
] | null | null | null | #include "util/UtToken.h"
#include "util/UtTokenFactory.h"
#include <gtest/gtest.h>
#include <list>
#include <stdio.h>
#include <vector>
class TestUtToken : public testing::Test { };
TEST_F(TestUtToken, TestTokens)
{
UtTokenFactory factory;
UtToken t1 = factory.Get("foo");
UtToken t2 = factory.Get("foo");... | 23.363636 | 59 | 0.607004 | MarkLeone |
b31ca6d108369ab3e0a817dec4327a44c69d4763 | 36,105 | cpp | C++ | ExampleViewAllySkillPanel_publish/WarcraftIII_DLL_126-127/DotAAllstarsHelper/BlpReadWrite.cpp | UnrealKaraulov/DotaAllstarsHelper_DLL_FOR_DOTA | ed621a70540cdab03db8acc7cc6b80794363abcd | [
"Unlicense"
] | 1 | 2021-10-31T19:47:18.000Z | 2021-10-31T19:47:18.000Z | ExampleViewAllySkillPanel_publish/WarcraftIII_DLL_126-127/DotAAllstarsHelper/BlpReadWrite.cpp | UnrealKaraulov/DotaAllstarsHelper_DLL_FOR_DOTA | ed621a70540cdab03db8acc7cc6b80794363abcd | [
"Unlicense"
] | 1 | 2021-11-22T05:56:47.000Z | 2022-01-12T10:55:38.000Z | ExampleViewAllySkillPanel_publish/WarcraftIII_DLL_126-127/DotAAllstarsHelper/BlpReadWrite.cpp | UnrealKaraulov/DotaAllstarsHelper_DLL_FOR_DOTA | ed621a70540cdab03db8acc7cc6b80794363abcd | [
"Unlicense"
] | 1 | 2021-09-27T14:35:34.000Z | 2021-09-27T14:35:34.000Z | #include "BlpReadWrite.h"
BOOL IsPowerOfTwo( const long i )
{
long t = i;
while ( t % 2 == 0 )
t >>= 1;
return ( t == 1 );
}
BOOL GetFirstBytes( const char* filename, char* buffer, unsigned long length )
{
FILE* file;
fopen_s( &file, filename, "rb" );
if ( !file )
return FALSE;
if ( fread( buffer, 1, leng... | 27.414579 | 186 | 0.605401 | UnrealKaraulov |
b31dfd9b9099f2aaf1c77dd643ac702de9b80669 | 2,599 | hpp | C++ | include/pcp/kdtree/linked_kdtree_node.hpp | Q-Minh/octree | 0c3fd5a791d660b37461daf968a68ffb1c80b965 | [
"BSL-1.0"
] | 2 | 2021-03-10T09:57:45.000Z | 2021-04-13T21:19:57.000Z | include/pcp/kdtree/linked_kdtree_node.hpp | Q-Minh/octree | 0c3fd5a791d660b37461daf968a68ffb1c80b965 | [
"BSL-1.0"
] | 22 | 2020-12-07T20:09:39.000Z | 2021-04-12T20:42:59.000Z | include/pcp/kdtree/linked_kdtree_node.hpp | Q-Minh/octree | 0c3fd5a791d660b37461daf968a68ffb1c80b965 | [
"BSL-1.0"
] | null | null | null | #ifndef PCP_KDTREE_KDTREE_NODE_HPP
#define PCP_KDTREE_KDTREE_NODE_HPP
/**
* @file
* @ingroup kd-tree
*/
#include <memory>
#include <vector>
namespace pcp {
/**
* @ingroup linked-kd-tree
* @brief
* A kdtree node at internal should only contain an element,
* while a leaf node may contain more than one element... | 25.480392 | 74 | 0.632551 | Q-Minh |
b32674bd704a49e2ec0ac72dbbe4b797e1662a41 | 229 | cpp | C++ | URI/Ad-Hoc/1397.cpp | danielcunhaa/Competitive-Programming | 6868a8dfb8000fd10650a692c548a86272f19735 | [
"MIT"
] | 1 | 2021-04-03T11:17:33.000Z | 2021-04-03T11:17:33.000Z | URI/Ad-Hoc/1397.cpp | danielcunhaa/Competitive-Programming | 6868a8dfb8000fd10650a692c548a86272f19735 | [
"MIT"
] | null | null | null | URI/Ad-Hoc/1397.cpp | danielcunhaa/Competitive-Programming | 6868a8dfb8000fd10650a692c548a86272f19735 | [
"MIT"
] | 1 | 2020-07-24T15:27:46.000Z | 2020-07-24T15:27:46.000Z | #include <cstdio>
int main() {
int N, A, B;
int X, Y;
while(scanf("%d", &N) && N!=0) {
X = Y = 0;
while(N--) {
scanf("%d %d", &A, &B);
if(A != B) (A > B) ? ++X : ++Y;
}
printf("%d %d\n", X, Y);
}
return 0;
} | 13.470588 | 34 | 0.388646 | danielcunhaa |
b32bf360638ec756575175c2bcb10065c96c610c | 8,118 | cpp | C++ | vtStorAtaProtocol/Platform/Linux/ProtocolAtaPassThrough.cpp | virtium/vtStor | 069d3e1ddb1c5589826dfe59714a1479c4af8f51 | [
"Apache-2.0"
] | 3 | 2015-04-27T07:53:57.000Z | 2017-12-26T08:55:24.000Z | vtStorAtaProtocol/Platform/Linux/ProtocolAtaPassThrough.cpp | virtium/vtStor | 069d3e1ddb1c5589826dfe59714a1479c4af8f51 | [
"Apache-2.0"
] | 18 | 2015-04-08T21:44:45.000Z | 2016-03-09T23:44:51.000Z | vtStorAtaProtocol/Platform/Linux/ProtocolAtaPassThrough.cpp | virtium/vtStor | 069d3e1ddb1c5589826dfe59714a1479c4af8f51 | [
"Apache-2.0"
] | 19 | 2015-05-15T07:48:05.000Z | 2019-09-16T09:12:05.000Z | /*
<License>
Copyright 2016 Virtium Technology
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 ... | 43.881081 | 195 | 0.641907 | virtium |
b32dca93360bb7f208647226587b3c824edaaff4 | 2,056 | hh | C++ | include/mcnla/core/matrix/collection/base/matrix_collection_wrapper.hh | emfomy/mcnla | 9f9717f4d6449bbd467c186651856d6212035667 | [
"MIT"
] | null | null | null | include/mcnla/core/matrix/collection/base/matrix_collection_wrapper.hh | emfomy/mcnla | 9f9717f4d6449bbd467c186651856d6212035667 | [
"MIT"
] | null | null | null | include/mcnla/core/matrix/collection/base/matrix_collection_wrapper.hh | emfomy/mcnla | 9f9717f4d6449bbd467c186651856d6212035667 | [
"MIT"
] | null | null | null | ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
/// @file include/mcnla/core/matrix/collection/base/matrix_collection_wrapper.hh
/// @brief The definition of matrix collection wrapper.
///
/// @author Mu Yang <<emfomy@gmail.com>>
///... | 29.797101 | 128 | 0.562257 | emfomy |
b32dd58447a592738e9f75dbd3ecccbb7f8f4609 | 3,679 | hpp | C++ | include/immediate_buckling_energy.hpp | liuwei792966953/stitch | 108e3dbd3410331c741c7cb166f93bbffa11b369 | [
"Zlib"
] | 1 | 2021-01-23T05:20:09.000Z | 2021-01-23T05:20:09.000Z | include/immediate_buckling_energy.hpp | liuwei792966953/stitch | 108e3dbd3410331c741c7cb166f93bbffa11b369 | [
"Zlib"
] | null | null | null | include/immediate_buckling_energy.hpp | liuwei792966953/stitch | 108e3dbd3410331c741c7cb166f93bbffa11b369 | [
"Zlib"
] | null | null | null |
#pragma once
#include "energy.hpp"
class ImmediateBucklingEnergy : public BaseEnergy
{
public:
ImmediateBucklingEnergy(double kb) : kb_(kb) {}
void precompute(const TriMesh& mesh) override;
void getForceAndHessian(const TriMesh& mesh, const VecXd& x,
VecXd& F,
SparseMatrixd& dFdx,
SparseM... | 27.661654 | 102 | 0.581952 | liuwei792966953 |
b330b86f9a0166d2a0173a9b1db0c93bb3ff20ee | 100 | cpp | C++ | source/slang/slang-emit-context.cpp | KostasAndrianos/slang | 6cbc3929a54d37bd23cb5efa8e3320ba02f78b2f | [
"MIT"
] | null | null | null | source/slang/slang-emit-context.cpp | KostasAndrianos/slang | 6cbc3929a54d37bd23cb5efa8e3320ba02f78b2f | [
"MIT"
] | null | null | null | source/slang/slang-emit-context.cpp | KostasAndrianos/slang | 6cbc3929a54d37bd23cb5efa8e3320ba02f78b2f | [
"MIT"
] | null | null | null | // slang-emit-context.cpp
#include "slang-emit-context.h"
namespace Slang {
} // namespace Slang
| 12.5 | 31 | 0.71 | KostasAndrianos |
b332983e9973304dba040a625175348271461cc3 | 1,338 | cpp | C++ | osquery/config/parsers/kafka_topics.cpp | msekletar/osquery | beca5e68e97c5ff411b082fe871c69edcba1e641 | [
"BSD-3-Clause"
] | 7 | 2018-03-12T10:52:37.000Z | 2020-09-11T14:09:23.000Z | osquery/config/parsers/kafka_topics.cpp | msekletar/osquery | beca5e68e97c5ff411b082fe871c69edcba1e641 | [
"BSD-3-Clause"
] | 1 | 2021-03-20T05:24:15.000Z | 2021-03-20T05:24:15.000Z | osquery/config/parsers/kafka_topics.cpp | Acidburn0zzz/osquery | 1cedf8d57310b4ac3ae0a39fe33dce00699f4a3b | [
"BSD-3-Clause"
] | 4 | 2018-03-12T10:52:40.000Z | 2020-08-18T09:03:17.000Z | /*
* Copyright (c) 2014-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.
*
*/
#in... | 29.086957 | 79 | 0.697309 | msekletar |
b332b01fafcdbbfc42cf4d24c2dc090214a361e4 | 1,195 | cpp | C++ | src/luset_state_pkg/src/luset_state_package/node.cpp | nicholaspalomo/LUSETcontrol | 5576daf9551778804cd9dce8496a3f9ade6c4932 | [
"MIT"
] | null | null | null | src/luset_state_pkg/src/luset_state_package/node.cpp | nicholaspalomo/LUSETcontrol | 5576daf9551778804cd9dce8496a3f9ade6c4932 | [
"MIT"
] | null | null | null | src/luset_state_pkg/src/luset_state_package/node.cpp | nicholaspalomo/LUSETcontrol | 5576daf9551778804cd9dce8496a3f9ade6c4932 | [
"MIT"
] | null | null | null | /**
* @file node.cpp
* @author Nicholas José Palomo (npalomo@student.ethz.ch)
* @brief This is the source code for the /LusetState node. This node subscribes to messages coming from the Indel inco_32.so library (or from a simulation model - not yet implemented). See https://google.github.io/styleguide/cppguide.html ... | 39.833333 | 271 | 0.703766 | nicholaspalomo |
b337a09cf7460124080e9068428e0e9e05783842 | 53,736 | cpp | C++ | tests/integrationtests/db/SqliteDatabaseIntegrationTest.cpp | commshare/easyhttpcpp | 757ec75679c1cbc5f04c81a30133f4bcd3e780f4 | [
"MIT"
] | null | null | null | tests/integrationtests/db/SqliteDatabaseIntegrationTest.cpp | commshare/easyhttpcpp | 757ec75679c1cbc5f04c81a30133f4bcd3e780f4 | [
"MIT"
] | null | null | null | tests/integrationtests/db/SqliteDatabaseIntegrationTest.cpp | commshare/easyhttpcpp | 757ec75679c1cbc5f04c81a30133f4bcd3e780f4 | [
"MIT"
] | null | null | null | /*
* Copyright 2017 Sony Corporation
*/
#include "gtest/gtest.h"
#include <stdint.h>
#include "Poco/Path.h"
#include "Poco/Data/SQLite/Connector.h"
#include "easyhttpcpp/common/FileUtil.h"
#include "easyhttpcpp/common/StringUtil.h"
#include "easyhttpcpp/db/AutoSqliteTransaction.h"
#include "easyhttpcpp/db/SqlExce... | 34.556913 | 122 | 0.678279 | commshare |
b3392d29bb58dbf1bb0761a9f19bbdd1067bbd55 | 12,390 | cpp | C++ | src/main/cpp/Encoders.cpp | AlphaDragon601/SwerveDrive2_2022 | 7e575906ea71803ece25ee293cd74e0e9ea322b5 | [
"BSD-3-Clause"
] | null | null | null | src/main/cpp/Encoders.cpp | AlphaDragon601/SwerveDrive2_2022 | 7e575906ea71803ece25ee293cd74e0e9ea322b5 | [
"BSD-3-Clause"
] | null | null | null | src/main/cpp/Encoders.cpp | AlphaDragon601/SwerveDrive2_2022 | 7e575906ea71803ece25ee293cd74e0e9ea322b5 | [
"BSD-3-Clause"
] | null | null | null | /*
Encoders.cpp
Created on: Jan 3, 2020
Author: 5561
*/
#include "rev/CANSparkMax.h"
#include <frc/AnalogInput.h>
#include "Enums.hpp"
#include <frc/smartdashboard/SmartDashboard.h>
#include "Encoders.hpp"
#include "Const.hpp"
double V_WheelAngleRaw[E_RobotCornerSz];
double V_WheelAngle[E_RobotCornerSz];
dou... | 52.723404 | 182 | 0.695238 | AlphaDragon601 |
b33cc8d3b447236f074bd9fd1d238079ae9b3eac | 4,431 | cpp | C++ | src/patternScan/TriangleScanner.cpp | sroehling/ChartPatternRecognitionLib | d9bd25c0fc5a8942bb98c74c42ab52db80f680c1 | [
"MIT"
] | 9 | 2019-07-15T19:10:07.000Z | 2021-12-14T12:16:18.000Z | src/patternScan/TriangleScanner.cpp | sroehling/ChartPatternRecognitionLib | d9bd25c0fc5a8942bb98c74c42ab52db80f680c1 | [
"MIT"
] | null | null | null | src/patternScan/TriangleScanner.cpp | sroehling/ChartPatternRecognitionLib | d9bd25c0fc5a8942bb98c74c42ab52db80f680c1 | [
"MIT"
] | 2 | 2020-05-23T03:25:25.000Z | 2021-11-19T16:41:44.000Z | /*
* WedgeScanner.cpp
*
* Created on: Aug 1, 2014
* Author: sroehling
*/
#include <TriangleScanner.h>
#include "ChartSegment.h"
#include "DebugLog.h"
TriangleScanner::TriangleScanner(const DoubleRange &upperTrendLineSlopeRange,
const DoubleRange &lowerTrendLineSlopeRange)
:... | 30.986014 | 131 | 0.713157 | sroehling |
b33fa5944016c9cda050601679f276ca6cbd4fe8 | 820 | tpp | C++ | src/delaunay_static_cpu_interpolator.tpp | bszhu/interpolators | 3a3274e5ce89a6532168b3305c013e2ab590a02c | [
"MIT"
] | null | null | null | src/delaunay_static_cpu_interpolator.tpp | bszhu/interpolators | 3a3274e5ce89a6532168b3305c013e2ab590a02c | [
"MIT"
] | 3 | 2021-04-03T23:09:23.000Z | 2021-06-25T09:07:36.000Z | src/delaunay_static_cpu_interpolator.tpp | bszhu/interpolators | 3a3274e5ce89a6532168b3305c013e2ab590a02c | [
"MIT"
] | null | null | null | #include "delaunay_static_cpu_interpolator.h"
template<typename index_t, int N_DIMS, int N_OPS>
DelaunayStaticCPUInterpolator<index_t, N_DIMS, N_OPS>::DelaunayStaticCPUInterpolator(
operator_set_evaluator_iface *supporting_point_evaluator,
const std::array<int, N_DIMS> &axes_points,
const std:... | 54.666667 | 85 | 0.719512 | bszhu |
b342f0fe086bfb4beacf8b35ebe6fa79cd9f07a3 | 1,241 | cc | C++ | src/image/utils_test.cc | kofuk/pixel-terrain | f39e2a0120aab5a11311f57cfd1ab46efa65fddd | [
"MIT"
] | 2 | 2020-10-16T08:46:45.000Z | 2020-11-04T02:19:19.000Z | src/image/utils_test.cc | kofuk/minecraft-image-generator | ef2f7deb2daac7f7c2cfb468ef39e0cdc8b33db7 | [
"MIT"
] | null | null | null | src/image/utils_test.cc | kofuk/minecraft-image-generator | ef2f7deb2daac7f7c2cfb468ef39e0cdc8b33db7 | [
"MIT"
] | null | null | null | // SPDX-License-Identifier: MIT
#include <filesystem>
#include <boost/test/tools/interface.hpp>
#include <boost/test/unit_test.hpp>
#include <boost/test/unit_test_suite.hpp>
#include "image/utils.hh"
#include "utils/path_hack.hh"
using namespace pixel_terrain;
BOOST_AUTO_TEST_CASE(make_output_name_test) {
std:... | 32.657895 | 74 | 0.664786 | kofuk |
b3456298caec8573eb7cdddb733a121e383eba23 | 14,197 | cpp | C++ | src/LuaInterpolate.cpp | perweij/tundra | 3384818fcf389a897de2463119a7e00de9da70e0 | [
"MIT"
] | 262 | 2015-01-15T09:52:46.000Z | 2022-03-26T19:10:54.000Z | src/LuaInterpolate.cpp | perweij/tundra | 3384818fcf389a897de2463119a7e00de9da70e0 | [
"MIT"
] | 78 | 2015-01-23T09:10:45.000Z | 2021-04-25T03:02:53.000Z | src/LuaInterpolate.cpp | perweij/tundra | 3384818fcf389a897de2463119a7e00de9da70e0 | [
"MIT"
] | 44 | 2015-03-13T22:15:24.000Z | 2022-03-27T15:06:27.000Z |
#include "MemAllocHeap.hpp"
#include "Buffer.hpp"
#include <stdio.h>
#include <stdlib.h>
#include <ctype.h>
extern "C" {
#include "lua.h"
#include "lauxlib.h"
}
namespace t2
{
struct LuaEnvLookup
{
lua_State *m_LuaState;
int m_EnvIndex;
int m_VarIndex;
};
class LuaEnvLookupScope
{
private:
lu... | 21.032593 | 125 | 0.541241 | perweij |
b3458a8bc057840100266afbe0e26931be313b45 | 1,893 | cpp | C++ | POSN Camp1/toi_worldcup.cpp | ParamaaS/ParamaaS-Cpp-code- | a6c78151defe38d1460cde2b005a67be5a1d092d | [
"MIT"
] | null | null | null | POSN Camp1/toi_worldcup.cpp | ParamaaS/ParamaaS-Cpp-code- | a6c78151defe38d1460cde2b005a67be5a1d092d | [
"MIT"
] | null | null | null | POSN Camp1/toi_worldcup.cpp | ParamaaS/ParamaaS-Cpp-code- | a6c78151defe38d1460cde2b005a67be5a1d092d | [
"MIT"
] | null | null | null | #include<stdio.h>
char name[10][25];
int s[10][10],p[10],so[10],rem[10];
int c,c2,g[10],d[10],idx[10],dif[10];
main()
{
for(c=1;c<=4;c++)
{
scanf("%s",name[c]);
}
for(c=1;c<=4;c++)
{
for(c2=1;c2<=4;c2++)
{
scanf("%d",&s[c][c2]);
if(c==1) g[1]+=s[1][c2];
else if(c==2) g[2]+=s[2][c2];
... | 15.907563 | 47 | 0.348653 | ParamaaS |
b3465a1ea06f2959df68fc58697a3aa36c2d89aa | 1,001 | cpp | C++ | src/UserData.cpp | maxmcguire/rocket | d7df8a698da25ed0aae125579fd2a58e3f07c48b | [
"MIT"
] | 6 | 2015-10-07T22:43:18.000Z | 2021-12-20T05:48:54.000Z | src/UserData.cpp | maxmcguire/rocket | d7df8a698da25ed0aae125579fd2a58e3f07c48b | [
"MIT"
] | null | null | null | src/UserData.cpp | maxmcguire/rocket | d7df8a698da25ed0aae125579fd2a58e3f07c48b | [
"MIT"
] | 3 | 2015-06-19T04:58:50.000Z | 2020-01-19T16:19:22.000Z | /*
* RocketVM
* Copyright (c) 2011 Max McGuire
*
* See copyright notice in COPYRIGHT
*/
extern "C"
{
#include "lua.h"
}
#include "Global.h"
#include "UserData.h"
#include "State.h"
#include "Table.h"
#include <stdlib.h>
UserData* UserData_Create(lua_State* L, size_t size, Table* env)
{
ASSERT(env != NULL);... | 21.297872 | 110 | 0.629371 | maxmcguire |
b348374945b91d5b2125b34ffb65e00c20f0a5ab | 1,754 | cpp | C++ | KROSS/src/Kross/Util/Util.cpp | WillianKoessler/KROSS-ENGINE | 0e680b455ffd071565fe8b99343805ad16ca1e91 | [
"Apache-2.0"
] | null | null | null | KROSS/src/Kross/Util/Util.cpp | WillianKoessler/KROSS-ENGINE | 0e680b455ffd071565fe8b99343805ad16ca1e91 | [
"Apache-2.0"
] | null | null | null | KROSS/src/Kross/Util/Util.cpp | WillianKoessler/KROSS-ENGINE | 0e680b455ffd071565fe8b99343805ad16ca1e91 | [
"Apache-2.0"
] | null | null | null | #include "Kross_pch.h"
#include "Util.h"
namespace Kross {
void append(char *dest, size_t size, const char *str)
{
if (!dest || !str) return;
strcat_s(dest, size, str);
//std::string buffer(dest);
//std::string copy = buffer;
//buffer += str;
//size_t size = buffer.size();
//char *result = new char[si... | 21.654321 | 75 | 0.607754 | WillianKoessler |
b34f5322e95c6dfb58a48c59ca9a5609c89dfed7 | 821 | cpp | C++ | test/unit-XmlElementEmpty.cpp | Luchev/uni-xml-parser | 2a30d317617a19dd0c34b1788e478bd777f218ac | [
"MIT"
] | null | null | null | test/unit-XmlElementEmpty.cpp | Luchev/uni-xml-parser | 2a30d317617a19dd0c34b1788e478bd777f218ac | [
"MIT"
] | null | null | null | test/unit-XmlElementEmpty.cpp | Luchev/uni-xml-parser | 2a30d317617a19dd0c34b1788e478bd777f218ac | [
"MIT"
] | null | null | null | #include <lib/catch.hpp>
#include <test/test-utilities.hpp>
#include <test/test-XmlElementEmpty.hpp>
TEST_CASE("XmlElement set/getName() correctness", "[xmlElement]") {
REQUIRE(testXmlElementEmptyName());
}
TEST_CASE("XmlElement set/getParent() correctness", "[xmlElement]") {
REQUIRE(testXmlElementEmptyParent... | 34.208333 | 73 | 0.774665 | Luchev |
b35502acb01046f23e2883a3f0e49e59f3efb63b | 62 | cpp | C++ | test/compile_include_rope_2.cpp | eightysquirrels/text | d935545648777786dc196a75346cde8906da846a | [
"BSL-1.0"
] | null | null | null | test/compile_include_rope_2.cpp | eightysquirrels/text | d935545648777786dc196a75346cde8906da846a | [
"BSL-1.0"
] | 1 | 2021-03-05T12:56:59.000Z | 2021-03-05T13:11:53.000Z | test/compile_include_rope_2.cpp | eightysquirrels/text | d935545648777786dc196a75346cde8906da846a | [
"BSL-1.0"
] | 3 | 2019-10-30T18:38:15.000Z | 2021-03-05T12:10:13.000Z | #include <boost/text/rope.hpp>
#include <boost/text/rope.hpp>
| 20.666667 | 30 | 0.741935 | eightysquirrels |
b3575e393c46637c841f1391fa2098df614b9f65 | 120,472 | cpp | C++ | src/campaign/camptool/campdriv.cpp | Terebinth/freefalcon-central | c28d807183ab447ef6a801068aa3769527d55deb | [
"BSD-2-Clause"
] | 117 | 2015-01-13T14:48:49.000Z | 2022-03-16T01:38:19.000Z | src/campaign/camptool/campdriv.cpp | darongE/freefalcon-central | c28d807183ab447ef6a801068aa3769527d55deb | [
"BSD-2-Clause"
] | 4 | 2015-05-01T13:09:53.000Z | 2017-07-22T09:11:06.000Z | src/campaign/camptool/campdriv.cpp | darongE/freefalcon-central | c28d807183ab447ef6a801068aa3769527d55deb | [
"BSD-2-Clause"
] | 78 | 2015-01-13T09:27:47.000Z | 2022-03-18T14:39:09.000Z | // 2001-10-25 MOVED BY S.G. To the top of the file, outside of the #ifdef CAMPTOOL since it is used by other files as well
#ifdef _DEBUG
int gDumping = 0;
#endif
#ifdef CAMPTOOL
#include <windows.h>
#include <ctype.h>
#include "FalcLib.h"
#include "fsound.h"
#include "F4Vu.h"
#include "FalcSess.h"
#include "stdhdr.h"... | 28.904031 | 240 | 0.475513 | Terebinth |
b3598f74f568ce007d0dd421eb430c08521b6541 | 1,965 | cpp | C++ | src/primitives.cpp | kalakuer/TinyRayTracer | 99758f3e2e5279574e3850647d2541df2e111387 | [
"Apache-2.0"
] | null | null | null | src/primitives.cpp | kalakuer/TinyRayTracer | 99758f3e2e5279574e3850647d2541df2e111387 | [
"Apache-2.0"
] | null | null | null | src/primitives.cpp | kalakuer/TinyRayTracer | 99758f3e2e5279574e3850647d2541df2e111387 | [
"Apache-2.0"
] | null | null | null | #include "primitives.h"
#include <glm/gtc/matrix_transform.hpp>
namespace TinyRT {
IntersectTestResult Primitives::intersectTest(const Ray &ray, float refractiveIndex) {
glm::vec3 normal = glm::normalize(glm::cross(V1-V0, V2-V1));
float A = normal.x;
float B = normal.y;
floa... | 33.87931 | 97 | 0.545547 | kalakuer |
b35aff00167f1f45d0c563466d09d90065a798ed | 4,664 | cpp | C++ | cpp/TCPDataTracker.cpp | jinyyu/filedump | 72b55e4ed260585a754078dc9623ff2fbbe5d9fc | [
"MIT"
] | null | null | null | cpp/TCPDataTracker.cpp | jinyyu/filedump | 72b55e4ed260585a754078dc9623ff2fbbe5d9fc | [
"MIT"
] | null | null | null | cpp/TCPDataTracker.cpp | jinyyu/filedump | 72b55e4ed260585a754078dc9623ff2fbbe5d9fc | [
"MIT"
] | null | null | null | #include "TCPDataTracker.h"
#include "debug_log.h"
#include <stdio.h>
#include <vector>
#include <map>
// As defined by RFC 1982 - 2 ^ (SERIAL_BITS - 1)
static const uint32_t k_seq_number_diff = 2147483648U;
static int seq_compare(uint32_t seq1, uint32_t seq2)
{
if (seq1 == seq2) {
return 0;
}
if ... | 27.435294 | 101 | 0.560249 | jinyyu |
b37071ac5ce2fb057bc33580817a79c11b09df5d | 3,360 | cpp | C++ | test/unit/io/sequence_file/sequence_file_record_test.cpp | joergi-w/seqan3 | b757646eee3cddf1f2487db8f1c9f3576ee37391 | [
"CC-BY-4.0",
"CC0-1.0"
] | 283 | 2017-03-14T23:43:33.000Z | 2022-03-28T02:30:02.000Z | test/unit/io/sequence_file/sequence_file_record_test.cpp | joergi-w/seqan3 | b757646eee3cddf1f2487db8f1c9f3576ee37391 | [
"CC-BY-4.0",
"CC0-1.0"
] | 2,754 | 2017-03-21T18:39:02.000Z | 2022-03-31T13:26:15.000Z | test/unit/io/sequence_file/sequence_file_record_test.cpp | joergi-w/seqan3 | b757646eee3cddf1f2487db8f1c9f3576ee37391 | [
"CC-BY-4.0",
"CC0-1.0"
] | 88 | 2017-03-20T12:43:42.000Z | 2022-03-17T08:56:13.000Z | // -----------------------------------------------------------------------------------------------------
// Copyright (c) 2006-2021, Knut Reinert & Freie Universität Berlin
// Copyright (c) 2016-2021, Knut Reinert & MPI für molekulare Genetik
// This file may be used, modified and/or redistributed under the terms of th... | 35.744681 | 104 | 0.643155 | joergi-w |
b375c7a959fa66dc6180a694281a47efb0880cb0 | 220 | hh | C++ | tests/Titon/Test/Stub/Annotation/BarAnnotationStub.hh | ciklon-z/framework | cbf44729173d3a83b91a2b0a217c6b3827512e44 | [
"BSD-2-Clause"
] | 206 | 2015-01-02T20:01:12.000Z | 2021-04-15T09:49:56.000Z | tests/Titon/Test/Stub/Annotation/BarAnnotationStub.hh | ciklon-z/framework | cbf44729173d3a83b91a2b0a217c6b3827512e44 | [
"BSD-2-Clause"
] | 44 | 2015-01-02T06:03:43.000Z | 2017-11-20T18:29:06.000Z | tests/Titon/Test/Stub/Annotation/BarAnnotationStub.hh | titon/framework | cbf44729173d3a83b91a2b0a217c6b3827512e44 | [
"BSD-2-Clause"
] | 27 | 2015-01-03T05:51:29.000Z | 2022-02-21T13:50:40.000Z | <?hh // strict
namespace Titon\Test\Stub\Annotation;
use Titon\Annotation\Annotation;
class BarAnnotationStub extends Annotation {
public function __construct(public string $string, public int $int = 0): void {}
}
| 24.444444 | 84 | 0.759091 | ciklon-z |
b382b4a80e7c3c5a3e9a6e795322701b252c352c | 682 | hpp | C++ | include/api/InfoObject.hpp | bander9289/StratifyAPI | 9b45091aa71a4e5718047438ea4044c1fdc814a3 | [
"MIT"
] | 2 | 2016-05-21T03:09:19.000Z | 2016-08-27T03:40:51.000Z | include/api/InfoObject.hpp | bander9289/StratifyAPI | 9b45091aa71a4e5718047438ea4044c1fdc814a3 | [
"MIT"
] | 75 | 2017-10-08T22:21:19.000Z | 2020-03-30T21:13:20.000Z | include/api/InfoObject.hpp | StratifyLabs/StratifyLib | 975a5c25a84296fd0dec64fe4dc579cf7027abe6 | [
"MIT"
] | 5 | 2018-03-27T16:44:09.000Z | 2020-07-08T16:45:55.000Z | /*! \file */ // Copyright 2011-2020 Tyler Gilbert and Stratify Labs, Inc; see LICENSE.md for rights.
#ifndef API_INFO_OBJECT_HPP
#define API_INFO_OBJECT_HPP
#include "ApiObject.hpp"
namespace api {
/*! \brief Information Object
* \details Classes that inherit from
* information objects are used for static
* data... | 19.485714 | 100 | 0.714076 | bander9289 |
b384be169d0145722b946a25561ad6989f50479b | 6,544 | cpp | C++ | CorsixTH/Src/th_map_overlays.cpp | terrorcide/CorsixTH | 2d91936656529c26d21e2de41f4ea6a831bb4e47 | [
"MIT"
] | null | null | null | CorsixTH/Src/th_map_overlays.cpp | terrorcide/CorsixTH | 2d91936656529c26d21e2de41f4ea6a831bb4e47 | [
"MIT"
] | null | null | null | CorsixTH/Src/th_map_overlays.cpp | terrorcide/CorsixTH | 2d91936656529c26d21e2de41f4ea6a831bb4e47 | [
"MIT"
] | null | null | null | /*
Copyright (c) 2010 Peter "Corsix" Cawley
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, distr... | 31.014218 | 96 | 0.636767 | terrorcide |
b387b1e4fc48981995d85dc01f36e5d93b923c28 | 8,733 | hpp | C++ | nodec/include/nodec/entities/sparse_table.hpp | ContentsViewer/nodec | 40b414a2f48d2e4718b69e0fa630e3f85e90e083 | [
"Apache-2.0"
] | 2 | 2022-01-03T12:01:03.000Z | 2022-01-04T18:11:25.000Z | nodec/include/nodec/entities/sparse_table.hpp | ContentsViewer/nodec | 40b414a2f48d2e4718b69e0fa630e3f85e90e083 | [
"Apache-2.0"
] | null | null | null | nodec/include/nodec/entities/sparse_table.hpp | ContentsViewer/nodec | 40b414a2f48d2e4718b69e0fa630e3f85e90e083 | [
"Apache-2.0"
] | null | null | null | #ifndef NODEC__ENTITIES__SPARSE_TABLE_HPP_
#define NODEC__ENTITIES__SPARSE_TABLE_HPP_
#include <nodec/logging.hpp>
#include <vector>
namespace nodec {
namespace entities {
// This code based on
// * <https://github.com/sparsehash/sparsehash/blob/master/src/sparsehash/sparsetable>
// Thank you! :)
/**
* The smal... | 25.837278 | 100 | 0.557082 | ContentsViewer |
b389c12acbab075b6c2c19ac5d3e02b0a506f4c2 | 15,011 | cpp | C++ | master/core/third/libtorrent/src/tracker_manager.cpp | importlib/klib | a59837857689d0e60d3df6d2ebd12c3160efa794 | [
"MIT"
] | 4 | 2017-12-04T08:22:48.000Z | 2019-10-26T21:44:59.000Z | master/core/third/libtorrent/src/tracker_manager.cpp | isuhao/klib | a59837857689d0e60d3df6d2ebd12c3160efa794 | [
"MIT"
] | null | null | null | master/core/third/libtorrent/src/tracker_manager.cpp | isuhao/klib | a59837857689d0e60d3df6d2ebd12c3160efa794 | [
"MIT"
] | 4 | 2017-12-19T11:13:56.000Z | 2018-02-23T08:44:03.000Z | /*
Copyright (c) 2003, Arvid Norberg
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 and the f... | 24.608197 | 96 | 0.651456 | importlib |
b38c0e0d9c3330e7bea5bd829fe6bbf9063acaf3 | 7,847 | cpp | C++ | vipster/step.py.cpp | hein09/vipster | b92302bf2bb8b8941e239ce8cbc7209e1e615b0b | [
"BSD-2-Clause"
] | 6 | 2015-12-02T15:33:27.000Z | 2017-07-28T17:46:51.000Z | vipster/step.py.cpp | hein09/vipster | b92302bf2bb8b8941e239ce8cbc7209e1e615b0b | [
"BSD-2-Clause"
] | 3 | 2018-02-04T16:11:19.000Z | 2018-03-16T16:23:29.000Z | vipster/step.py.cpp | hein09/vipster | b92302bf2bb8b8941e239ce8cbc7209e1e615b0b | [
"BSD-2-Clause"
] | 1 | 2017-07-05T11:44:55.000Z | 2017-07-05T11:44:55.000Z | #include "step.py.h"
#include "step.h"
#include <utility>
using namespace Vipster;
/* FIXME: Optimize assignment
*
* problems so far:
* - assignment from formatter not working as intended, library problem?
* - assignment to sub-steps not working, types mapped multiple times
* -> pybind/python can't deduce cor... | 44.84 | 122 | 0.555626 | hein09 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.