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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
88d8b6ed42b17a5d59427eeb319980f08d6e4ad8 | 414 | cpp | C++ | src/test/test-data/file.cpp | Discookie/codechecker-vscode | 3cb75be57414efb54d8977bf112f98213481cdac | [
"MIT"
] | 3 | 2021-06-03T14:23:01.000Z | 2021-06-04T11:50:24.000Z | src/test/test-data/file.cpp | Discookie/codechecker-vscode | 3cb75be57414efb54d8977bf112f98213481cdac | [
"MIT"
] | null | null | null | src/test/test-data/file.cpp | Discookie/codechecker-vscode | 3cb75be57414efb54d8977bf112f98213481cdac | [
"MIT"
] | null | null | null | #include <iostream>
#include <assert.h>
int func(int param) {
return 10 / param;
}
int main() {
std::cout << "line 1" << NULL << std::endl;
std::cout << (std::string("line 2").compare(std::string("a")) ? "b" : "c") << std::endl;
int a = 0; assert(a++ || "line 3");
std::cout << ((long long)"line 4... | 24.352941 | 92 | 0.514493 | Discookie |
88dfa3700f98a850c83b9ce8c0205186d9c4ce70 | 2,719 | cc | C++ | libs/crypto/sha256.cc | sandtreader/obtools | 2382e2d90bb62c9665433d6d01bbd31b8ad66641 | [
"MIT"
] | null | null | null | libs/crypto/sha256.cc | sandtreader/obtools | 2382e2d90bb62c9665433d6d01bbd31b8ad66641 | [
"MIT"
] | null | null | null | libs/crypto/sha256.cc | sandtreader/obtools | 2382e2d90bb62c9665433d6d01bbd31b8ad66641 | [
"MIT"
] | null | null | null | //==========================================================================
// ObTools::Crypto: sha256.cc
//
// SHA256 digest/hash
//
// Copyright (c) 2017 Paul Clark. All rights reserved
// This code comes with NO WARRANTY and is subject to licence agreement
//========================================================... | 28.925532 | 76 | 0.500552 | sandtreader |
88f6e605ef4758b3343152cad845bfb590f0a6bb | 393 | hpp | C++ | src/Literals.hpp | cdsousa/Juliapp | 3eccc8152074664feaf408f4ab3b866a5e8a2b74 | [
"BSD-2-Clause"
] | 6 | 2018-08-23T09:07:02.000Z | 2021-12-18T18:38:09.000Z | src/Literals.hpp | cdsousa/Juliapp | 3eccc8152074664feaf408f4ab3b866a5e8a2b74 | [
"BSD-2-Clause"
] | 19 | 2018-08-24T09:02:51.000Z | 2019-04-07T13:16:58.000Z | src/Literals.hpp | cdsousa/Juliapp | 3eccc8152074664feaf408f4ab3b866a5e8a2b74 | [
"BSD-2-Clause"
] | 2 | 2018-11-02T09:31:48.000Z | 2019-06-12T08:33:28.000Z | #pragma once
#include "Function.hpp"
#include "Global.hpp"
namespace jl::literals
{
inline function operator""_jlf(const char* name_, std::size_t)
{
return function{name_};
}
inline module operator""_jlm(const char* name_, std::size_t)
{
return module{name_};
}
inline global operator""_jlg(const char* name_... | 17.086957 | 62 | 0.707379 | cdsousa |
88f9658903d4d8446dab4451cd52ecd545586459 | 3,590 | cc | C++ | test_tools/sender_test/test_loop.cc | orenmichaely/reinforcement_learning | 1a1570641255fdcd03a33996986aa58f3c0c58e2 | [
"MIT"
] | 63 | 2018-10-22T17:11:02.000Z | 2021-12-08T17:26:41.000Z | test_tools/sender_test/test_loop.cc | orenmichaely/reinforcement_learning | 1a1570641255fdcd03a33996986aa58f3c0c58e2 | [
"MIT"
] | 160 | 2018-10-09T02:34:57.000Z | 2022-03-31T15:43:48.000Z | test_tools/sender_test/test_loop.cc | orenmichaely/reinforcement_learning | 1a1570641255fdcd03a33996986aa58f3c0c58e2 | [
"MIT"
] | 36 | 2018-10-08T21:44:05.000Z | 2022-03-22T16:20:03.000Z | #include "test_loop.h"
#include "constants.h"
#include "config_utility.h"
#include "error_callback_fn.h"
#include "factory_resolver.h"
#include <fstream>
#include <iostream>
#include <thread>
#include "utility/data_buffer_streambuf.h"
namespace r = reinforcement_learning;
namespace u = r::utility;
namespace cfg = u::... | 32.053571 | 115 | 0.689415 | orenmichaely |
88fd15f826239e685f4e48bcf814935c65904f2c | 26,655 | cpp | C++ | SVEngine/src/operate/SVOpCreate.cpp | SVEChina/SVEngine | 56174f479a3096e57165448142c1822e7db8c02f | [
"MIT"
] | 34 | 2018-09-28T08:28:27.000Z | 2022-01-15T10:31:41.000Z | SVEngine/src/operate/SVOpCreate.cpp | SVEChina/SVEngine | 56174f479a3096e57165448142c1822e7db8c02f | [
"MIT"
] | null | null | null | SVEngine/src/operate/SVOpCreate.cpp | SVEChina/SVEngine | 56174f479a3096e57165448142c1822e7db8c02f | [
"MIT"
] | 8 | 2018-10-11T13:36:35.000Z | 2021-04-01T09:29:34.000Z | //
// SVOpCreate.cpp
// SVEngine
// Copyright 2017-2020
// yizhou Fu,long Yin,longfei Lin,ziyu Xu,xiaofan Li,daming Li
//
#include "SVOpCreate.h"
#include "../app/SVInst.h"
#include "../app/SVGlobalParam.h"
#include "../core/SVSpine.h"
#include "../core/SVBMFont.h"
#include "../core/SVModel.h"
#include "../core/SVMesh... | 29.16302 | 187 | 0.653123 | SVEChina |
88fd51bb61b2525547cab7b69d3c4d829600a1f3 | 7,868 | cpp | C++ | src/MPhysics.cpp | viktorcpp/endless2.0save | 9824aebd56346f1b9526b730063b84918bd6ac08 | [
"MIT"
] | null | null | null | src/MPhysics.cpp | viktorcpp/endless2.0save | 9824aebd56346f1b9526b730063b84918bd6ac08 | [
"MIT"
] | null | null | null | src/MPhysics.cpp | viktorcpp/endless2.0save | 9824aebd56346f1b9526b730063b84918bd6ac08 | [
"MIT"
] | null | null | null |
namespace endless
{
void MPhysics::Update()
{
__TRY__
if( pxscene_world != 0 && !MCORE->IsPaused() )
{
float deltat = (float)MCore::GetMTimer()->DeltaTime()*0.000001f;
pxscene_world->simulate( deltat );
pxscene_world->fetchResults(true);
}
... | 29.91635 | 146 | 0.626716 | viktorcpp |
88fdad5790fdf4a175b5e55173fd8770d87d6344 | 3,793 | cpp | C++ | serpents-rpc/serpents/rpc/server/xmlrpc_c_startup.cpp | dezGusty/serpents-rpc | 005f45a23c56426b07ef351277b517667c9f706e | [
"MIT"
] | null | null | null | serpents-rpc/serpents/rpc/server/xmlrpc_c_startup.cpp | dezGusty/serpents-rpc | 005f45a23c56426b07ef351277b517667c9f706e | [
"MIT"
] | null | null | null | serpents-rpc/serpents/rpc/server/xmlrpc_c_startup.cpp | dezGusty/serpents-rpc | 005f45a23c56426b07ef351277b517667c9f706e | [
"MIT"
] | null | null | null |
//system libs
#include <mutex>
#include <algorithm>
// project libs
#include "xmlrpc_c_startup.h"
#include "serpents\rpc\server\server.h"
#include "servermanager.h"
#include "..\xmlrpc_c_plugin\xmlrpc_c_buildopts.h"
#include "..\xmlrpc_c_plugin\implservermethod.h"
//guslibs
#include "guslib\util\pluginmanager.h"
#i... | 26.158621 | 108 | 0.680464 | dezGusty |
88fe52449ff5e08d1404fe3439fdf2721e9f2d66 | 848 | hpp | C++ | Crisp/Core/SceneContainer.hpp | FallenShard/Crisp | d4cf22c0f9af73a6c4ba2b7d67696f1a188fd423 | [
"MIT"
] | 6 | 2017-09-14T03:26:49.000Z | 2021-09-18T05:40:59.000Z | Crisp/Core/SceneContainer.hpp | FallenShard/Crisp | d4cf22c0f9af73a6c4ba2b7d67696f1a188fd423 | [
"MIT"
] | null | null | null | Crisp/Core/SceneContainer.hpp | FallenShard/Crisp | d4cf22c0f9af73a6c4ba2b7d67696f1a188fd423 | [
"MIT"
] | null | null | null | #pragma once
#include <memory>
#include <vector>
#include <string>
namespace crisp
{
class Renderer;
class Application;
class AbstractScene;
namespace gui
{
class ComboBox;
}
class SceneContainer
{
public:
SceneContainer(Renderer* renderer, Application* app);
... | 20.190476 | 61 | 0.628538 | FallenShard |
0003121e679abaf809543c5670d72478a4bb6323 | 220 | cpp | C++ | Source/PragonRPG/PragonRPG.cpp | jamsya/ParaRPG | ffbea5088f1f6a01e3fd0695014a81f3d5c4b19a | [
"MIT"
] | 1 | 2020-04-14T00:45:58.000Z | 2020-04-14T00:45:58.000Z | Source/PragonRPG/PragonRPG.cpp | jamsya/ParaRPG | ffbea5088f1f6a01e3fd0695014a81f3d5c4b19a | [
"MIT"
] | null | null | null | Source/PragonRPG/PragonRPG.cpp | jamsya/ParaRPG | ffbea5088f1f6a01e3fd0695014a81f3d5c4b19a | [
"MIT"
] | 1 | 2020-11-04T03:16:22.000Z | 2020-11-04T03:16:22.000Z | // Fill out your copyright notice in the Description page of Project Settings.
#include "PragonRPG.h"
#include "Modules/ModuleManager.h"
IMPLEMENT_PRIMARY_GAME_MODULE( FDefaultGameModuleImpl, PragonRPG, "PragonRPG" );
| 31.428571 | 80 | 0.804545 | jamsya |
32330062ce797aa4791223432495643fe414436e | 420 | cpp | C++ | UVa/twin_primes.cpp | anubhawbhalotia/Competitive-Programming | 32d7003abf9af4999b3dfa78fe1df9022ebbf50b | [
"MIT"
] | null | null | null | UVa/twin_primes.cpp | anubhawbhalotia/Competitive-Programming | 32d7003abf9af4999b3dfa78fe1df9022ebbf50b | [
"MIT"
] | null | null | null | UVa/twin_primes.cpp | anubhawbhalotia/Competitive-Programming | 32d7003abf9af4999b3dfa78fe1df9022ebbf50b | [
"MIT"
] | 1 | 2020-05-20T18:36:31.000Z | 2020-05-20T18:36:31.000Z | #include <bits/stdc++.h>
using namespace std;
int main()
{
long long j,i,b[100010],c[100010],x,n;
int a[20000101]={};
a[1]=1;
for(j=2;j<=10000000;j++)
{
if(a[j]==0)
{
for(i=j+j;i<=20000100;i+=j)
a[i]=1;
}
}
a[2]=0;
i=1;
x=0;
while(i<20000090 && x<100001)
{
if(a[i]==0 && a[i+2]==0)
{
b[x]=... | 13.548387 | 45 | 0.452381 | anubhawbhalotia |
323556eb758e372121dbfbf915f09bc190f4f4b8 | 2,421 | cpp | C++ | tests/idx/benchmark-helpers-test/src/idx/benchmark/BenchmarkEventListBackingBufferSizeEstimatorTest.cpp | yishayahu/hot | 579e225ba5f9b1e5cda0cd282121f4202406f245 | [
"0BSD"
] | 99 | 2018-03-23T11:08:48.000Z | 2022-03-03T10:03:35.000Z | tests/idx/benchmark-helpers-test/src/idx/benchmark/BenchmarkEventListBackingBufferSizeEstimatorTest.cpp | SheldonZhong/hot | ec29331ecb4b0d5381b90d5b45ce2319b7cfeff0 | [
"ISC"
] | 3 | 2018-12-18T19:00:04.000Z | 2021-09-07T13:05:36.000Z | tests/idx/benchmark-helpers-test/src/idx/benchmark/BenchmarkEventListBackingBufferSizeEstimatorTest.cpp | SheldonZhong/hot | ec29331ecb4b0d5381b90d5b45ce2319b7cfeff0 | [
"ISC"
] | 29 | 2018-06-03T07:56:35.000Z | 2022-03-04T07:31:50.000Z | //
// Created by Robert Binna
//
#include <utility>
#include <boost/test/unit_test.hpp>
#include <idx/contenthelpers/PairKeyExtractor.hpp>
#include <idx/benchmark/BenchmarkEvent.hpp>
#include <idx/benchmark/BenchmarkEventListBackingBufferSizeEstimator.hpp>
#include <idx/benchmark/BenchmarkEventTypeId.hpp>
#include... | 48.42 | 172 | 0.795539 | yishayahu |
3238b515023e6e459dbf907beea015980325ff01 | 422,830 | cpp | C++ | flite/lang/us_rms/us_rms_cg_f0_trees.cpp | Barath-Kannan/flite | 236f91a9a1e60fd25f1deed6d48022567cd7100f | [
"Apache-2.0"
] | 7 | 2017-12-10T23:02:22.000Z | 2021-08-05T21:12:11.000Z | flite/lang/us_rms/us_rms_cg_f0_trees.cpp | Barath-Kannan/flite | 236f91a9a1e60fd25f1deed6d48022567cd7100f | [
"Apache-2.0"
] | null | null | null | flite/lang/us_rms/us_rms_cg_f0_trees.cpp | Barath-Kannan/flite | 236f91a9a1e60fd25f1deed6d48022567cd7100f | [
"Apache-2.0"
] | 3 | 2018-10-28T03:47:09.000Z | 2020-06-04T08:54:23.000Z | /*****************************************************/
/** Autogenerated cmu_us_rms f0 carts */
/*****************************************************/
#include "us_rms_cg_f0_trees.hpp"
#include "flite/stats/cart.hpp"
#include "flite/utils/string.hpp"
static const cst_cart_node cmu_us_rms_f0_zh_204_cart_nodes[]... | 58.17694 | 92 | 0.739772 | Barath-Kannan |
3238d71e4fbd3996cd9fb4d7c202a61488dee811 | 4,780 | cpp | C++ | Marlin/XMLParserImport.cpp | zYg-sys/Marlin | eeabb4d324c5f8d253a50c106208bb833cb824e8 | [
"MIT"
] | 23 | 2016-09-16T11:25:54.000Z | 2022-03-03T07:18:57.000Z | Marlin/XMLParserImport.cpp | zYg-sys/Marlin | eeabb4d324c5f8d253a50c106208bb833cb824e8 | [
"MIT"
] | 26 | 2016-10-21T11:07:54.000Z | 2022-03-05T18:27:03.000Z | Marlin/XMLParserImport.cpp | zYg-sys/Marlin | eeabb4d324c5f8d253a50c106208bb833cb824e8 | [
"MIT"
] | 7 | 2018-09-11T12:17:46.000Z | 2021-07-08T09:10:04.000Z | /////////////////////////////////////////////////////////////////////////////////
//
// SourceFile: XMLParserImport.cpp
//
// Marlin Server: Internet server/client
//
// Copyright (c) 2014-2021 ir. W.E. Huisman
// All rights reserved
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
//... | 25.978261 | 81 | 0.687029 | zYg-sys |
324e9fce73849de8d852b58b257568ed863f71d4 | 67 | cpp | C++ | DementiaFS/FileHiderStub.cpp | allewwaly/dementia-forensics | 401423fd8ba4f4d2b6dbec461df2eb18f33ac734 | [
"MIT"
] | 9 | 2018-08-20T03:06:07.000Z | 2021-06-14T14:46:43.000Z | DementiaFS/FileHiderStub.cpp | zignie/dementia-forensics | 201a10faa17f2d406073d29e9cb5385b30c405f8 | [
"MIT"
] | null | null | null | DementiaFS/FileHiderStub.cpp | zignie/dementia-forensics | 201a10faa17f2d406073d29e9cb5385b30c405f8 | [
"MIT"
] | 2 | 2019-06-15T04:41:22.000Z | 2020-08-07T08:44:57.000Z | // proxy file for FileHider
#include "../DementiaKM/FileHider.cpp" | 33.5 | 38 | 0.746269 | allewwaly |
324ea6820bbcf8ee16d2fef81d6045fa0ae5cc50 | 33,606 | cpp | C++ | src/dblib_sqlite.cpp | art-den/dblib | abf4111c5d6f718fcd8c128c6195806c87a530eb | [
"MIT"
] | null | null | null | src/dblib_sqlite.cpp | art-den/dblib | abf4111c5d6f718fcd8c128c6195806c87a530eb | [
"MIT"
] | null | null | null | src/dblib_sqlite.cpp | art-den/dblib | abf4111c5d6f718fcd8c128c6195806c87a530eb | [
"MIT"
] | null | null | null | /*
Copyright (c) 2015-2020 Artyomov Denis (denis.artyomov@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 the rights
to use, copy, mod... | 28.649616 | 134 | 0.759358 | art-den |
32554890439acaeb4b2eb25e27b83c4f7ffedfed | 168 | cpp | C++ | BasicGameFramework/Object/MapFrame.cpp | dlwlxns4/WitchHouse | 7b2fd8acead69baa9b0850e0ddcb7520b32ef47e | [
"BSD-3-Clause"
] | null | null | null | BasicGameFramework/Object/MapFrame.cpp | dlwlxns4/WitchHouse | 7b2fd8acead69baa9b0850e0ddcb7520b32ef47e | [
"BSD-3-Clause"
] | null | null | null | BasicGameFramework/Object/MapFrame.cpp | dlwlxns4/WitchHouse | 7b2fd8acead69baa9b0850e0ddcb7520b32ef47e | [
"BSD-3-Clause"
] | null | null | null | #include "MapFrame.h"
#include "../Component/MapFrameComponent.h"
void MapFrame::Init()
{
MapFrameComponent* mapFrameComponent = new MapFrameComponent(this, 100);
}
| 18.666667 | 73 | 0.755952 | dlwlxns4 |
325825ceaf1b903a1e35faf114ae3dd622326958 | 541 | cpp | C++ | func_utils.cpp | ouonline/lua-cpp | 6074d360820af5f1459f39b1a731b788be0643a0 | [
"MIT"
] | 3 | 2015-01-15T01:29:57.000Z | 2021-09-18T08:45:14.000Z | func_utils.cpp | ouonline/lua-cpp | 6074d360820af5f1459f39b1a731b788be0643a0 | [
"MIT"
] | null | null | null | func_utils.cpp | ouonline/lua-cpp | 6074d360820af5f1459f39b1a731b788be0643a0 | [
"MIT"
] | null | null | null | #include "func_utils.h"
#include "lua_table.h"
#include "lua_function.h"
#include "lua_user_data.h"
namespace luacpp {
ValueConverter::operator LuaObject() const {
return LuaObject(m_l, m_index);
}
ValueConverter::operator LuaTable() const {
return LuaTable(m_l, m_index);
}
ValueConverter::operator LuaFunct... | 18.655172 | 52 | 0.724584 | ouonline |
3259e8db8c977e1c980aa37908287fa5526aa551 | 5,819 | hpp | C++ | packages/monte_carlo/core/src/MonteCarlo_SimulationAdjointPhotonProperties.hpp | bam241/FRENSIE | e1760cd792928699c84f2bdce70ff54228e88094 | [
"BSD-3-Clause"
] | 10 | 2019-11-14T19:58:30.000Z | 2021-04-04T17:44:09.000Z | packages/monte_carlo/core/src/MonteCarlo_SimulationAdjointPhotonProperties.hpp | bam241/FRENSIE | e1760cd792928699c84f2bdce70ff54228e88094 | [
"BSD-3-Clause"
] | 43 | 2020-03-03T19:59:20.000Z | 2021-09-08T03:36:08.000Z | packages/monte_carlo/core/src/MonteCarlo_SimulationAdjointPhotonProperties.hpp | bam241/FRENSIE | e1760cd792928699c84f2bdce70ff54228e88094 | [
"BSD-3-Clause"
] | 6 | 2020-02-12T17:37:07.000Z | 2020-09-08T18:59:51.000Z | //---------------------------------------------------------------------------//
//!
//! \file MonteCarlo_SimulationAdjointPhotonProperties.hpp
//! \author Alex Robinson
//! \brief Simulation adjoint photon properties class decl.
//!
//---------------------------------------------------------------------------//
#if... | 35.266667 | 110 | 0.746004 | bam241 |
325b9faa77d1e64874b126e05e3fcdf84fd714c1 | 503 | cpp | C++ | single-number-iii/single-number-iii.cpp | arpitkekri/My-Leetcode-Solution-In-CPP | 345f1c53c627fce33ee84672c5d3661863367040 | [
"MIT"
] | 4 | 2021-06-21T04:32:12.000Z | 2021-11-02T04:20:36.000Z | single-number-iii/single-number-iii.cpp | arpitkekri/My-Leetcode-Solution-In-CPP | 345f1c53c627fce33ee84672c5d3661863367040 | [
"MIT"
] | null | null | null | single-number-iii/single-number-iii.cpp | arpitkekri/My-Leetcode-Solution-In-CPP | 345f1c53c627fce33ee84672c5d3661863367040 | [
"MIT"
] | 2 | 2021-08-19T11:27:18.000Z | 2021-09-26T14:51:30.000Z | class Solution {
public:
vector<int> singleNumber(vector<int>& nums) {
int AxorB = 0;
for(int i = 0; i < nums.size(); i++)
AxorB ^= nums[i];
int pos = 0;
for(; pos < 32; pos++)
if(AxorB & (1 << pos))
break;
int A = 0,... | 25.15 | 49 | 0.365805 | arpitkekri |
325d1a772fb81c222bea32b741805771865b5543 | 2,397 | cpp | C++ | src/sdks/SDK_sec.cpp | stephb9959/wlan-cloud-sub | ddf6e7a44aba0dc6a35844d8e2bd75dfb10f6f5f | [
"BSD-3-Clause"
] | null | null | null | src/sdks/SDK_sec.cpp | stephb9959/wlan-cloud-sub | ddf6e7a44aba0dc6a35844d8e2bd75dfb10f6f5f | [
"BSD-3-Clause"
] | null | null | null | src/sdks/SDK_sec.cpp | stephb9959/wlan-cloud-sub | ddf6e7a44aba0dc6a35844d8e2bd75dfb10f6f5f | [
"BSD-3-Clause"
] | null | null | null | //
// Created by stephane bourque on 2022-01-11.
//
#include "SDK_sec.h"
namespace OpenWifi::SDK::Sec {
namespace User {
bool Exists(RESTAPIHandler *client, const Types::UUID_t & Id) {
OpenAPIRequestGet Req( uSERVICE_SECURITY,
"/api/v1/user/" + Id,
... | 34.242857 | 106 | 0.438882 | stephb9959 |
32634c7b6fadf68bbb8b4e0642bd6704be7b444d | 780 | hpp | C++ | UserServer/OptionFile.hpp | Edgaru089/ArchUserServer | 1db6d6063c52116ad41cb62cc2154c7dc254b484 | [
"MIT"
] | null | null | null | UserServer/OptionFile.hpp | Edgaru089/ArchUserServer | 1db6d6063c52116ad41cb62cc2154c7dc254b484 | [
"MIT"
] | null | null | null | UserServer/OptionFile.hpp | Edgaru089/ArchUserServer | 1db6d6063c52116ad41cb62cc2154c7dc254b484 | [
"MIT"
] | null | null | null | #pragma once
#include <string>
#include <fstream>
#include <map>
using namespace std;
class OptionFile
{
public:
bool loadFromFile(string filename)
{
string line, mark, cont;
this->data.clear();
ifstream file(filename);
if (file.fail())
return false;
while (!file.eof()) {
getline(file, line);
i... | 16.595745 | 56 | 0.605128 | Edgaru089 |
326a90b3aeb34ed7069fad0c586fc6c06dc90137 | 2,068 | cpp | C++ | src/tutorial/positioning/node.cpp | ranjak/opengl-tutorial | fff192b9966c9e14d77b4becb9c205ea21a02069 | [
"MIT"
] | 2 | 2018-08-24T00:09:03.000Z | 2019-08-25T23:03:11.000Z | src/tutorial/positioning/node.cpp | ranjak/opengl-tutorial | fff192b9966c9e14d77b4becb9c205ea21a02069 | [
"MIT"
] | null | null | null | src/tutorial/positioning/node.cpp | ranjak/opengl-tutorial | fff192b9966c9e14d77b4becb9c205ea21a02069 | [
"MIT"
] | 3 | 2016-12-02T17:22:14.000Z | 2018-05-08T11:34:56.000Z | #include "node.hpp"
#include "transform.hpp"
#include "primitives/rectangle.hpp"
#include <glad/glad.h>
#include <glm/mat4x4.hpp>
#include <glm/gtc/type_ptr.hpp>
int Node::transformUniform = -1;
Node::Node() :
Node("", glm::vec3(0.0f), glm::vec3(0.0f))
{}
Node::Node(const std::string& name, const glm::vec3& transl... | 24.915663 | 148 | 0.6794 | ranjak |
326c60072532d676f7fd3d0ab3c85915407185bd | 1,360 | cpp | C++ | 35. Reverse Linked List/35. Reverse Linked List.cpp | YaoPengCN/MyLintCodeSolutions | a04c60c2988efa4a55532192ee5126b1d35255f1 | [
"Apache-2.0"
] | null | null | null | 35. Reverse Linked List/35. Reverse Linked List.cpp | YaoPengCN/MyLintCodeSolutions | a04c60c2988efa4a55532192ee5126b1d35255f1 | [
"Apache-2.0"
] | null | null | null | 35. Reverse Linked List/35. Reverse Linked List.cpp | YaoPengCN/MyLintCodeSolutions | a04c60c2988efa4a55532192ee5126b1d35255f1 | [
"Apache-2.0"
] | null | null | null | /**
* 35. Reverse Linked List
* Difficulty
* Easy
*
* Description
* Reverse a linked list.
*
* Example
* Example 1
* Input: 1->2->3->null
* Output: 3->2->1->null
*
* Example 2
* Input: 1->2->3->4->null
* Output: 4->3->2->1->null
*
* Challenge
* Reverse it in-place and in one-pass
*
* Related Problems
* 767. Revers... | 18.133333 | 54 | 0.535294 | YaoPengCN |
3270a3e5e4f127777e66e5be02baebbb9e082bd2 | 141 | hpp | C++ | src/algo/algo_common.hpp | golvok/simplex-gpu | ff152cd99b8969348d6bffce4db2e46579f745a5 | [
"MIT"
] | 4 | 2021-03-27T13:50:10.000Z | 2022-01-28T02:12:46.000Z | src/algo/algo_common.hpp | yidong72/simplex-gpu | ff152cd99b8969348d6bffce4db2e46579f745a5 | [
"MIT"
] | null | null | null | src/algo/algo_common.hpp | yidong72/simplex-gpu | ff152cd99b8969348d6bffce4db2e46579f745a5 | [
"MIT"
] | 1 | 2021-04-23T20:04:16.000Z | 2021-04-23T20:04:16.000Z | #ifndef ALGO__ALGO_COMMON_H
#define ALGO__ALGO_COMMON_H
enum class TableauErrors {
PROBLEM_UNBOUNDED,
};
#endif /* ALGO__ALGO_COMMON_H */
| 15.666667 | 32 | 0.801418 | golvok |
328e9d88c2a84ae6b88b95396bb3d2770de7bb31 | 75,773 | cpp | C++ | MyTemplate.cpp | Nadim-Mahmud/Competitive-Programming | 3f88ef395a334e2c8ca450f912f8ebbe1c3dd584 | [
"MIT"
] | 7 | 2019-11-09T09:08:41.000Z | 2022-03-04T13:29:32.000Z | MyTemplate.cpp | Nadim-Mahmud/Competitive-Programming-Template | 3f88ef395a334e2c8ca450f912f8ebbe1c3dd584 | [
"MIT"
] | null | null | null | MyTemplate.cpp | Nadim-Mahmud/Competitive-Programming-Template | 3f88ef395a334e2c8ca450f912f8ebbe1c3dd584 | [
"MIT"
] | 3 | 2019-12-30T13:56:06.000Z | 2022-03-04T13:29:34.000Z | #include <bits/stdc++.h>
#define P(X) cout<<"db "<<X<<endl;
#define P2(X,Y) cout<<"d2 "<<X<<" "<<Y<<endl;
#define P3(X,Y,Z) cout<<"d3 "<<X<<" "<<Y<<" "<<Z<<endl;
#define SQ(x) ((x) * (x))
#define ll long long
#define pii pair<int,int>
#define bchk(n,i) (bool)(n&(1<<i))
#define bon(n,i) (n|(1<<i))
#define boff(n,i) n... | 23.597945 | 318 | 0.52264 | Nadim-Mahmud |
329778c5d999a2dcd4a417d63dd4159a0bb0f6b9 | 27,489 | cpp | C++ | projectlib/projectwebdocument.cpp | tinpotnick/project-mediaswitch | a65bf6b76937f1cd50e40b06155443ab5373949b | [
"BSD-3-Clause"
] | 2 | 2020-07-18T16:40:16.000Z | 2021-05-25T03:08:28.000Z | projectlib/projectwebdocument.cpp | tinpotnick/project-mediaswitch | a65bf6b76937f1cd50e40b06155443ab5373949b | [
"BSD-3-Clause"
] | 7 | 2020-05-16T01:13:31.000Z | 2020-05-21T15:16:28.000Z | projectlib/projectwebdocument.cpp | tinpotnick/project-mediaswitch | a65bf6b76937f1cd50e40b06155443ab5373949b | [
"BSD-3-Clause"
] | 2 | 2019-08-19T07:24:38.000Z | 2020-05-17T15:31:36.000Z |
#include <string>
#include <algorithm>
#include <boost/crc.hpp>
#include <iostream>
#include <boost/lexical_cast.hpp>
#include "projectwebdocument.h"
/*******************************************************************************
Function: projectwebdocument
Purpose: Constructor
Updated: 01.01.2019
*************... | 24.787196 | 129 | 0.49558 | tinpotnick |
329c8c84e35d1b43a5b396446bcb9c8cd276eec2 | 5,035 | cpp | C++ | owGameM2/ParticleEmitter_Plane.cpp | fan3750060/OpenWow | 28925ebed1b3503d88014f6a3a7bd8adc777fdcc | [
"Apache-2.0"
] | null | null | null | owGameM2/ParticleEmitter_Plane.cpp | fan3750060/OpenWow | 28925ebed1b3503d88014f6a3a7bd8adc777fdcc | [
"Apache-2.0"
] | null | null | null | owGameM2/ParticleEmitter_Plane.cpp | fan3750060/OpenWow | 28925ebed1b3503d88014f6a3a7bd8adc777fdcc | [
"Apache-2.0"
] | 1 | 2020-03-30T03:22:38.000Z | 2020-03-30T03:22:38.000Z | #include "stdafx.h"
// Include
#include "ParticleSystem.h"
// General
#include "ParticleEmitter_Plane.h"
Particle PlaneParticleEmitter::newParticle(int anim, int time, float w, float l, float spd, float var, float spr, float spr2, uint32 _globalTime)
{
std::shared_ptr<CM2_ParticleSystem> ParticleSystem = m_Particl... | 36.485507 | 174 | 0.646673 | fan3750060 |
329d54fcaee09ae1ef66fb9000df0b4e115b3b17 | 14,860 | cpp | C++ | src/binder/cdebuglog.cpp | CyberSys/coreclr-mono | 83b2cb83b32faa45b4f790237b5c5e259692294a | [
"MIT"
] | 10 | 2015-11-03T16:35:25.000Z | 2021-07-31T16:36:29.000Z | src/binder/cdebuglog.cpp | CyberSys/coreclr-mono | 83b2cb83b32faa45b4f790237b5c5e259692294a | [
"MIT"
] | 1 | 2019-03-05T18:50:09.000Z | 2019-03-05T18:50:09.000Z | src/binder/cdebuglog.cpp | CyberSys/coreclr-mono | 83b2cb83b32faa45b4f790237b5c5e259692294a | [
"MIT"
] | 4 | 2015-10-28T12:26:26.000Z | 2021-09-04T11:36:04.000Z | //
// Copyright (c) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
//
// ============================================================
//
// CDebugLog.cpp
//
//
// Implements the fusion-derived CDebugLog class
//
// ================... | 30.326531 | 114 | 0.523755 | CyberSys |
32a35eefb0384a0a14f61fdcd488e714948fd6d0 | 5,740 | cpp | C++ | XmlLib/Src/SAXContentHandlerImpl.cpp | shortydude/DDOBuilder-learning | e71162c10b81bb4afd0365e61088437353cc4607 | [
"MIT"
] | null | null | null | XmlLib/Src/SAXContentHandlerImpl.cpp | shortydude/DDOBuilder-learning | e71162c10b81bb4afd0365e61088437353cc4607 | [
"MIT"
] | null | null | null | XmlLib/Src/SAXContentHandlerImpl.cpp | shortydude/DDOBuilder-learning | e71162c10b81bb4afd0365e61088437353cc4607 | [
"MIT"
] | null | null | null | // SAXContentHandlerImpl.cpp: implementation of the SAXContentHandlerImpl class.
//
//////////////////////////////////////////////////////////////////////
#include "stdafx.h"
#include "XmlLib\SAXContentHandlerImpl.h"
#include "XmlLib\SaxAttributes.h"
using XmlLib::SAXContentHandlerImpl;
using XmlLib::SaxAttributes;
... | 22.421875 | 80 | 0.605923 | shortydude |
32a94db4120197d43d94997be33d10acb1fd1594 | 10,017 | cpp | C++ | abclient/abclient/CreditsWindow.cpp | pablokawan/ABx | 064d6df265c48c667ce81b0a83f84e5e22a7ff53 | [
"MIT"
] | null | null | null | abclient/abclient/CreditsWindow.cpp | pablokawan/ABx | 064d6df265c48c667ce81b0a83f84e5e22a7ff53 | [
"MIT"
] | null | null | null | abclient/abclient/CreditsWindow.cpp | pablokawan/ABx | 064d6df265c48c667ce81b0a83f84e5e22a7ff53 | [
"MIT"
] | null | null | null | /**
* Copyright 2017-2020 Stefan Ascher
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, pub... | 43.552174 | 103 | 0.72357 | pablokawan |
32ab089266d09334b98ebed0cee4e86d29e24650 | 5,132 | cpp | C++ | Source/BluefootQOR/src/Filters/CodePointUTF16Filter.cpp | mfaithfull/QOR | 0fa51789344da482e8c2726309265d56e7271971 | [
"BSL-1.0"
] | 9 | 2016-05-27T01:00:39.000Z | 2021-04-01T08:54:46.000Z | Source/BluefootQOR/src/Filters/CodePointUTF16Filter.cpp | mfaithfull/QOR | 0fa51789344da482e8c2726309265d56e7271971 | [
"BSL-1.0"
] | 1 | 2016-03-03T22:54:08.000Z | 2016-03-03T22:54:08.000Z | Source/BluefootQOR/src/Filters/CodePointUTF16Filter.cpp | mfaithfull/QOR | 0fa51789344da482e8c2726309265d56e7271971 | [
"BSL-1.0"
] | 4 | 2016-05-27T01:00:43.000Z | 2018-08-19T08:47:49.000Z | //CodePointUTF16Filter.cpp
// Copyright Querysoft Limited 2013, 2016
//
// Permission is hereby granted, free of charge, to any person or organization
// obtaining a copy of the software and accompanying documentation covered by
// this license (the "Software") to use, reproduce, display, distribute,
// execute, and t... | 41.056 | 140 | 0.634645 | mfaithfull |
32b3f3d1eb3f49dd33a3799ddfd90a5e45e3e97d | 335 | hpp | C++ | src/ISPCRenderer.hpp | asterycs/graphx | 7e7533666ab870fb8403fcafcfd21834fb854f3d | [
"MIT"
] | 7 | 2018-07-09T23:42:29.000Z | 2021-07-14T11:19:52.000Z | src/ISPCRenderer.hpp | asterycs/graphx | 7e7533666ab870fb8403fcafcfd21834fb854f3d | [
"MIT"
] | null | null | null | src/ISPCRenderer.hpp | asterycs/graphx | 7e7533666ab870fb8403fcafcfd21834fb854f3d | [
"MIT"
] | 1 | 2021-03-07T09:30:41.000Z | 2021-03-07T09:30:41.000Z | #ifndef ISPCRENDERER_HPP
#define ISPCRENDERER_HPP
#include "Light.hpp"
#include "Model.hpp"
#include "GLTexture.hpp"
#include "Camera.hpp"
class ISPCRenderer
{
public:
ISPCRenderer();
~ISPCRenderer();
void renderToCanvas(GLTexture& canvas, const Camera& camera, Model& model, Light& light);
};
#endif // IS... | 15.952381 | 91 | 0.737313 | asterycs |
32b51d743f18206fd13c0b4d02fdcfef74c241c8 | 3,914 | cpp | C++ | avs/vis_avs/r_invert.cpp | Const-me/vis_avs_dx | da1fd9f4323d7891dea233147e6ae16790ad9ada | [
"MIT"
] | 33 | 2019-01-28T03:32:17.000Z | 2022-02-12T18:17:26.000Z | avs/vis_avs/r_invert.cpp | visbot/vis_avs_dx | 03e55f8932a97ad845ff223d3602ff2300c3d1d4 | [
"MIT"
] | 2 | 2019-11-18T17:54:58.000Z | 2020-07-21T18:11:21.000Z | avs/vis_avs/r_invert.cpp | Const-me/vis_avs_dx | da1fd9f4323d7891dea233147e6ae16790ad9ada | [
"MIT"
] | 5 | 2019-02-16T23:00:11.000Z | 2022-03-27T15:22:10.000Z | /*
LICENSE
-------
Copyright 2005 Nullsoft, Inc.
All rights reserved.
Redistribution and use in source and binary forms, with or without modification,
are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright notice,
this list of conditions a... | 34.333333 | 134 | 0.748084 | Const-me |
32ba9005cb7d305cd8de0725145780dde4f49763 | 3,101 | cpp | C++ | src/tools/capture/capture.cpp | tstarling/speckle | 04c28582f586c2e92338331f75eeedf8af965faa | [
"Unlicense"
] | 12 | 2018-01-20T06:42:41.000Z | 2021-08-09T08:41:31.000Z | src/tools/capture/capture.cpp | tstarling/speckle | 04c28582f586c2e92338331f75eeedf8af965faa | [
"Unlicense"
] | 1 | 2018-12-10T23:52:15.000Z | 2018-12-11T23:23:45.000Z | src/tools/capture/capture.cpp | tstarling/speckle | 04c28582f586c2e92338331f75eeedf8af965faa | [
"Unlicense"
] | 4 | 2018-11-20T08:43:17.000Z | 2021-08-09T08:41:32.000Z | #include <boost/program_options.hpp>
#include "tools/capture/KinectCapture.h"
#include <iostream>
namespace po = boost::program_options;
using namespace Speckle;
bool processCommandLine(int argc, char** argv, KinectCapture::Options & options) {
po::options_description visible;
int res;
std::string mode;
visible.... | 26.279661 | 82 | 0.646566 | tstarling |
32bcaf6926ac02ad1acdb4ba5e60a1cf8f30b58c | 12,387 | cpp | C++ | low-can-binding/can/can-bus.cpp | redpesk-common/canbus-binding | 031ebb8657e66129936ba9079faa58e369f97de1 | [
"Apache-2.0"
] | null | null | null | low-can-binding/can/can-bus.cpp | redpesk-common/canbus-binding | 031ebb8657e66129936ba9079faa58e369f97de1 | [
"Apache-2.0"
] | null | null | null | low-can-binding/can/can-bus.cpp | redpesk-common/canbus-binding | 031ebb8657e66129936ba9079faa58e369f97de1 | [
"Apache-2.0"
] | null | null | null | /*
* Copyright (C) 2015, 2018 "IoT.bzh"
* Author "Romain Forlot" <romain.forlot@iot.bzh>
*
* 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.... | 32.597368 | 132 | 0.743683 | redpesk-common |
32c2ff39db876b72bdc8d6c4ae0513929a0f2e4f | 2,643 | cpp | C++ | TSPWizard/SecureProps.cpp | markjulmar/tsplib3 | f58a281ce43f4d57ef10e24d306fd46e6febcc41 | [
"MIT"
] | 1 | 2021-02-08T20:31:46.000Z | 2021-02-08T20:31:46.000Z | TSPWizard/SecureProps.cpp | markjulmar/tsplib3 | f58a281ce43f4d57ef10e24d306fd46e6febcc41 | [
"MIT"
] | null | null | null | TSPWizard/SecureProps.cpp | markjulmar/tsplib3 | f58a281ce43f4d57ef10e24d306fd46e6febcc41 | [
"MIT"
] | 4 | 2019-11-14T03:47:33.000Z | 2021-03-08T01:18:05.000Z | /******************************************************************************/
//
// CSTM3DLG.CPP - Line parameters page for the TSP Wizard
//
// Copyright (C) 1998 Mark C. S... | 33.0375 | 80 | 0.373061 | markjulmar |
32c5295d76d0c07f700ed8690d97c03713206cd1 | 588 | cpp | C++ | dllmain.cpp | vitakot/ftx_zorro_plugin | 21ba494bace5e4125fb747c2d3077e1ab726caca | [
"MIT"
] | 2 | 2022-02-07T23:10:41.000Z | 2022-03-16T11:26:08.000Z | dllmain.cpp | vitakot/ftx_zorro_plugin | 21ba494bace5e4125fb747c2d3077e1ab726caca | [
"MIT"
] | null | null | null | dllmain.cpp | vitakot/ftx_zorro_plugin | 21ba494bace5e4125fb747c2d3077e1ab726caca | [
"MIT"
] | null | null | null | /*
FTX Zorro Plugin
https://github.com/vitakot/ftx_zorro_plugin
Licensed under the MIT License <http://opensource.org/licenses/MIT>.
SPDX-License-Identifier: MIT
Copyright (c) 2022 Vitezslav Kot <vitezslav.kot@gmail.com>.
*/
#include "stdafx.h"
BOOL APIENTRY DllMain(HMODULE hModule,
DWORD ul_re... | 22.615385 | 68 | 0.656463 | vitakot |
32c7f47dcbb9509091a9f874712ee79c0fb31268 | 733 | hpp | C++ | Coprocessor/Kinect/include/processor.hpp | FRC5333/2016-Champs | f3824486a5a640a95fa99cd9de3ecca7c150571d | [
"MIT"
] | 2 | 2016-05-19T04:11:04.000Z | 2021-11-21T23:14:00.000Z | Coprocessor/Kinect/include/processor.hpp | FRC5333/2016-Champs | f3824486a5a640a95fa99cd9de3ecca7c150571d | [
"MIT"
] | null | null | null | Coprocessor/Kinect/include/processor.hpp | FRC5333/2016-Champs | f3824486a5a640a95fa99cd9de3ecca7c150571d | [
"MIT"
] | null | null | null | #ifndef PROCESSOR_HPP_DEF
#define PROCESSOR_HPP_DEF
#include "threading.hpp"
#include <libfreenect.h>
#include <pthread.h>
#include <cv.h>
#include <vector>
#include <opencv2/imgproc/imgproc.hpp>
#include <opencv2/highgui/highgui.hpp>
using namespace std;
using namespace cv;
class KinectProcessor {
public:
... | 22.90625 | 48 | 0.673943 | FRC5333 |
32cc0217a2e8bd02a35620f3fed3ba3197ddb2c9 | 519 | hpp | C++ | Source/Runtime/RHI/Public/ShaderParam.hpp | Othereum/NoEngineGame | e3c9c9a330ba8e724cd96f98355b556d24e73d9d | [
"MIT"
] | 23 | 2020-05-21T06:25:29.000Z | 2021-04-06T03:37:28.000Z | Source/Runtime/RHI/Public/ShaderParam.hpp | Othereum/NoEngineGame | e3c9c9a330ba8e724cd96f98355b556d24e73d9d | [
"MIT"
] | 72 | 2020-06-09T04:46:27.000Z | 2020-12-07T03:20:51.000Z | Source/Runtime/RHI/Public/ShaderParam.hpp | Othereum/NoEngineGame | e3c9c9a330ba8e724cd96f98355b556d24e73d9d | [
"MIT"
] | 4 | 2020-06-10T02:23:54.000Z | 2022-03-28T07:22:08.000Z | #pragma once
#include <variant>
namespace oeng
{
inline namespace rhi
{
using ScalarParam = std::variant<Float, int32_t>;
using VectorParam = std::variant<Vec2, Vec3, Vec4, Vec2i, Vec3i, Vec4i>;
using MatrixParam = std::variant<Mat2, Mat3, Mat4, Mat2x3, Mat2x4, Mat3x2, Mat3x4, Mat4x2, Mat4x3>;
} // namespace rhi
} // ... | 27.315789 | 99 | 0.737958 | Othereum |
32d3d73ae6c97a7e5cce0109f68a5ca96a24cb0b | 2,456 | cpp | C++ | src/options/set_language.cpp | FabianWolff/cvc4-debian | e38afe6cb10bdb79f0bae398b9605e4deae7578f | [
"BSL-1.0"
] | null | null | null | src/options/set_language.cpp | FabianWolff/cvc4-debian | e38afe6cb10bdb79f0bae398b9605e4deae7578f | [
"BSL-1.0"
] | null | null | null | src/options/set_language.cpp | FabianWolff/cvc4-debian | e38afe6cb10bdb79f0bae398b9605e4deae7578f | [
"BSL-1.0"
] | null | null | null | /********************* */
/*! \file set_language.cpp
** \verbatim
** Top contributors (to current version):
** Tim King
** This file is part of the CVC4 project.
** Copyright (c) 2009-2016 by the authors listed in the file AUTHORS
** in the top-level source... | 29.590361 | 80 | 0.675489 | FabianWolff |
77f6a2467e3f319a35a46c6426a31ef25b1cbc06 | 4,554 | cpp | C++ | src/nodes/VolatileKeyValueStore.cpp | vdodev/maplang | 5e37bb9adf3e7bddfdde18979a55ca998d33dede | [
"Apache-2.0"
] | 1 | 2021-11-05T15:49:51.000Z | 2021-11-05T15:49:51.000Z | src/nodes/VolatileKeyValueStore.cpp | vdodev/maplang | 5e37bb9adf3e7bddfdde18979a55ca998d33dede | [
"Apache-2.0"
] | null | null | null | src/nodes/VolatileKeyValueStore.cpp | vdodev/maplang | 5e37bb9adf3e7bddfdde18979a55ca998d33dede | [
"Apache-2.0"
] | null | null | null | /*
* Copyright 2020 VDO Dev Inc <support@maplang.com>
*
* 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 applic... | 30.36 | 80 | 0.722442 | vdodev |
77fb2977e808d2600f200abe060edaade7d0f5d9 | 389 | cpp | C++ | 101/move_semantics/move_semantics_tech_talk.cpp | hariharanragothaman/Learning-STL | 7e5f58083212d04b93159d44e1812069171aa349 | [
"MIT"
] | null | null | null | 101/move_semantics/move_semantics_tech_talk.cpp | hariharanragothaman/Learning-STL | 7e5f58083212d04b93159d44e1812069171aa349 | [
"MIT"
] | null | null | null | 101/move_semantics/move_semantics_tech_talk.cpp | hariharanragothaman/Learning-STL | 7e5f58083212d04b93159d44e1812069171aa349 | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
using namespace std;
class Cont
{
vector<string> vals;
public:
Cont() = default;
void insert(string&& v)
{
vals.push_back(move(v));
}
void print() const
{
cout << "Cont" << endl;
for(auto c: vals)
cout << ">" << c << endl;
}
};
int main()
{
Cont txt;
string str("Hello")... | 11.787879 | 28 | 0.573265 | hariharanragothaman |
77fe675a5c2af6602110c49f9f49cad5967cbee1 | 18,296 | cpp | C++ | src/CongestionController.cpp | medooze/pcc-vivace | 15c5e47348103d32aa9c59cf4c0c424ff7187003 | [
"BSD-3-Clause"
] | 6 | 2019-05-07T09:20:17.000Z | 2021-01-19T02:15:22.000Z | src/CongestionController.cpp | medooze/pcc-vivace | 15c5e47348103d32aa9c59cf4c0c424ff7187003 | [
"BSD-3-Clause"
] | 1 | 2021-01-22T09:12:33.000Z | 2021-01-22T09:44:25.000Z | src/CongestionController.cpp | medooze/pcc-vivace | 15c5e47348103d32aa9c59cf4c0c424ff7187003 | [
"BSD-3-Clause"
] | 5 | 2019-05-10T03:04:05.000Z | 2020-10-13T10:18:17.000Z | #include "CongestionController.h"
//#define DEBUG_RATE_CONTROL
#include <algorithm>
//Ignore RTT fluctuation within 30 percent in STARTING mode
static float FLAGS_max_rtt_fluctuation_tolerance_ratio_in_starting = 0.3f;
//Ignore RTT fluctuation within 5 percent in DECISION_MADE mode
static float FLAGS_max_rtt_fluctua... | 33.694291 | 172 | 0.712232 | medooze |
ae01d1f3a2c9bd5e9cbff6704d0c0029aea61d75 | 2,517 | hh | C++ | src/c++/include/io/Bcl.hh | sequencing/EAGLE | 6da0438c1f7620ea74dec1f34baf20bb0b14b110 | [
"BSD-3-Clause"
] | 28 | 2015-05-22T16:03:29.000Z | 2022-01-15T12:12:46.000Z | src/c++/include/io/Bcl.hh | sequencing/EAGLE | 6da0438c1f7620ea74dec1f34baf20bb0b14b110 | [
"BSD-3-Clause"
] | 15 | 2015-10-21T11:19:09.000Z | 2020-07-15T05:01:12.000Z | src/c++/include/io/Bcl.hh | sequencing/EAGLE | 6da0438c1f7620ea74dec1f34baf20bb0b14b110 | [
"BSD-3-Clause"
] | 8 | 2017-01-21T00:31:17.000Z | 2018-08-12T13:28:57.000Z | /**
** Copyright (c) 2014 Illumina, Inc.
**
** This file is part of Illumina's Enhanced Artificial Genome Engine (EAGLE),
** covered by the "BSD 2-Clause License" (see accompanying LICENSE file)
**
** \description Reader/Writer component for BCL files.
**
** \author Mauricio Varea
**/
#ifndef EAGLE_IO_BCL_HH
... | 27.966667 | 301 | 0.737386 | sequencing |
ae04f26ccc6c9e83e8173f6dd9b6f8af105caf3e | 10,159 | cpp | C++ | Gui/albaSideBar.cpp | IOR-BIC/ALBA | b574968b05d9a3a2756dd2ac61d015a0d20232a4 | [
"Apache-2.0",
"BSD-3-Clause"
] | 9 | 2018-11-19T10:15:29.000Z | 2021-08-30T11:52:07.000Z | Gui/albaSideBar.cpp | IOR-BIC/ALBA | b574968b05d9a3a2756dd2ac61d015a0d20232a4 | [
"Apache-2.0",
"BSD-3-Clause"
] | null | null | null | Gui/albaSideBar.cpp | IOR-BIC/ALBA | b574968b05d9a3a2756dd2ac61d015a0d20232a4 | [
"Apache-2.0",
"BSD-3-Clause"
] | 3 | 2018-06-10T22:56:29.000Z | 2019-12-12T06:22:56.000Z | /*=========================================================================
Program: ALBA (Agile Library for Biomedical Applications)
Module: albaSideBar
Authors: Silvano Imboden, Gianluigi Crimi
Copyright (c) BIC
All rights reserved. See Copyright.txt or
This software is distributed WITHOUT ANY WARRANTY; wi... | 30.145401 | 133 | 0.525642 | IOR-BIC |
ae064aa90c89626d876c91dfa815f0dd96ca0e91 | 3,124 | hpp | C++ | src/wrap.hpp | SebWouters/cmap | 82cdc7d482350d4b9c56ff302869f70b16cc2609 | [
"BSD-3-Clause"
] | null | null | null | src/wrap.hpp | SebWouters/cmap | 82cdc7d482350d4b9c56ff302869f70b16cc2609 | [
"BSD-3-Clause"
] | null | null | null | src/wrap.hpp | SebWouters/cmap | 82cdc7d482350d4b9c56ff302869f70b16cc2609 | [
"BSD-3-Clause"
] | null | null | null | /*
cmap is a resizable coordinate map
Copyright (c) 2020, Sebastian Wouters
All rights reserved.
This file is part of cmap, licensed under the BSD 3-Clause License.
A copy of the License can be found in the file LICENSE in the root
folder of this project.
*/
#pragma once
#include <assert.h>
... | 24.793651 | 84 | 0.49904 | SebWouters |
ae08893fb19a052914cfa93d3334014721afdd62 | 2,609 | hpp | C++ | include/private/coherence/component/net/extend/protocol/NotifyConnectionClosed.hpp | chpatel3/coherence-cpp-extend-client | 4ea5267eae32064dff1e73339aa3fbc9347ef0f6 | [
"UPL-1.0",
"Apache-2.0"
] | 6 | 2020-07-01T21:38:30.000Z | 2021-11-03T01:35:11.000Z | include/private/coherence/component/net/extend/protocol/NotifyConnectionClosed.hpp | chpatel3/coherence-cpp-extend-client | 4ea5267eae32064dff1e73339aa3fbc9347ef0f6 | [
"UPL-1.0",
"Apache-2.0"
] | 1 | 2020-07-24T17:29:22.000Z | 2020-07-24T18:29:04.000Z | include/private/coherence/component/net/extend/protocol/NotifyConnectionClosed.hpp | chpatel3/coherence-cpp-extend-client | 4ea5267eae32064dff1e73339aa3fbc9347ef0f6 | [
"UPL-1.0",
"Apache-2.0"
] | 6 | 2020-07-10T18:40:58.000Z | 2022-02-18T01:23:40.000Z | /*
* Copyright (c) 2000, 2020, Oracle and/or its affiliates.
*
* Licensed under the Universal Permissive License v 1.0 as shown at
* http://oss.oracle.com/licenses/upl.
*/
#ifndef COH_NOTIFY_CONNECTION_CLOSED_HPP
#define COH_NOTIFY_CONNECTION_CLOSED_HPP
#include "private/coherence/component/net/extend/AbstractPof... | 24.847619 | 77 | 0.54427 | chpatel3 |
ae0a1cc0235674be3af9dd267c8ee8c50ec83d16 | 671 | hpp | C++ | include/graphene/pcl_cloud.hpp | richard-vock/graphene-pcl | 574ac6479ec0c2a7a188493a449dff5b8e1deafa | [
"Unlicense"
] | null | null | null | include/graphene/pcl_cloud.hpp | richard-vock/graphene-pcl | 574ac6479ec0c2a7a188493a449dff5b8e1deafa | [
"Unlicense"
] | null | null | null | include/graphene/pcl_cloud.hpp | richard-vock/graphene-pcl | 574ac6479ec0c2a7a188493a449dff5b8e1deafa | [
"Unlicense"
] | null | null | null | #pragma once
#include <graphene/renderable.hpp>
namespace graphene::pcl {
class cloud : public renderable
{
public:
cloud(const std::filesystem::path& file_path, std::optional<vec4f_t> point_color = std::nullopt);
virtual ~cloud() = default;
virtual std::optional<std::vector<uint8_t>>
texture() con... | 17.657895 | 101 | 0.685544 | richard-vock |
ae0aefb7a0c7d5cba596883a386ac30977b0b427 | 13,986 | cpp | C++ | test/simpleHeatEqn/main.cpp | MaxZZG/ExprLib | c35e361ef6af365e7cd6afca6548595693bd149a | [
"MIT"
] | null | null | null | test/simpleHeatEqn/main.cpp | MaxZZG/ExprLib | c35e361ef6af365e7cd6afca6548595693bd149a | [
"MIT"
] | null | null | null | test/simpleHeatEqn/main.cpp | MaxZZG/ExprLib | c35e361ef6af365e7cd6afca6548595693bd149a | [
"MIT"
] | null | null | null | #include <iostream>
using std::cout;
using std::endl;
#include <spatialops/structured/FVStaggered.h>
#include <spatialops/structured/Grid.h>
#include <spatialops/util/TimeLogger.h>
namespace so = SpatialOps;
typedef so::SVolField CellField;
typedef so::SSurfXField XSideField;
typedef so::SSurfYField YSideField;
typ... | 41.749254 | 128 | 0.661447 | MaxZZG |
ae0c6b25abd7e674cf1cf6ac6af0cac081f0c6a1 | 497 | hpp | C++ | compat/camera-names.hpp | sheepsskullcity/opentrack | 2742eebed2dd5db4dbf187504c95eca70aa624f2 | [
"ISC"
] | 1 | 2021-06-14T09:00:47.000Z | 2021-06-14T09:00:47.000Z | compat/camera-names.hpp | sheepsskullcity/opentrack | 2742eebed2dd5db4dbf187504c95eca70aa624f2 | [
"ISC"
] | null | null | null | compat/camera-names.hpp | sheepsskullcity/opentrack | 2742eebed2dd5db4dbf187504c95eca70aa624f2 | [
"ISC"
] | null | null | null | /* Copyright (c) 2014-2015, Stanislaw Halik <sthalik@misaki.pl>
* Permission to use, copy, modify, and/or distribute this
* software for any purpose with or without fee is hereby granted,
* provided that the above copyright notice and this permission
* notice appear in all copies.
*/
#pragma once
#include <QLis... | 26.157895 | 70 | 0.770624 | sheepsskullcity |
ae0d83e0842d4ea5a0dea81f4f05fe8dde99c850 | 3,208 | hpp | C++ | examples/rucksack/testbed/impl/include/sge/rucksack/testbed/impl/object_impl.hpp | cpreh/spacegameengine | 313a1c34160b42a5135f8223ffaa3a31bc075a01 | [
"BSL-1.0"
] | 2 | 2016-01-27T13:18:14.000Z | 2018-05-11T01:11:32.000Z | examples/rucksack/testbed/impl/include/sge/rucksack/testbed/impl/object_impl.hpp | cpreh/spacegameengine | 313a1c34160b42a5135f8223ffaa3a31bc075a01 | [
"BSL-1.0"
] | null | null | null | examples/rucksack/testbed/impl/include/sge/rucksack/testbed/impl/object_impl.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_RUCKSACK_TESTBED_IMPL_OBJECT_IMPL_HPP_INCLUDED
#define SGE_RUCKSACK_TESTBED_IMPL_OBJECT... | 32.734694 | 94 | 0.750935 | cpreh |
ae0dd55b52837fc4b56ac7841fdce03e43865e61 | 1,668 | cpp | C++ | Source/Services/Multiplayer/WinRT/MultiplayerSessionConstants_WinRT.cpp | claytonv/xbox-live-api | d8db86cf930085c7547ae95999c9b301506de343 | [
"MIT"
] | 3 | 2020-07-15T17:50:24.000Z | 2021-11-17T11:15:11.000Z | Source/Services/Multiplayer/WinRT/MultiplayerSessionConstants_WinRT.cpp | CameronGoodwin/xbox-live-api | ee0c3ee2413f2fed6a373df4b26035792e922fe2 | [
"MIT"
] | null | null | null | Source/Services/Multiplayer/WinRT/MultiplayerSessionConstants_WinRT.cpp | CameronGoodwin/xbox-live-api | ee0c3ee2413f2fed6a373df4b26035792e922fe2 | [
"MIT"
] | 1 | 2021-02-01T01:56:08.000Z | 2021-02-01T01:56:08.000Z | // Copyright (c) Microsoft Corporation
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
#include "pch.h"
#include "MultiplayerSessionConstants_WinRT.h"
using namespace Windows::Foundation;
using namespace Windows::Foundation::Collections;
using namespace Microsoft... | 31.471698 | 111 | 0.830935 | claytonv |
ae1182e95d73f4689c0935cd1a161ec5105b5d09 | 15,566 | cc | C++ | test/VectorTest.cc | gongo/Tython | a2bf95a15123606fbbd5a1cf1186ff1defe4c752 | [
"MIT"
] | 5 | 2017-05-20T12:58:49.000Z | 2021-05-21T12:34:36.000Z | test/VectorTest.cc | gongo/Tython | a2bf95a15123606fbbd5a1cf1186ff1defe4c752 | [
"MIT"
] | null | null | null | test/VectorTest.cc | gongo/Tython | a2bf95a15123606fbbd5a1cf1186ff1defe4c752 | [
"MIT"
] | null | null | null | #include <gtest/gtest.h>
#include <math.h>
#include "Vector.h"
#include "MockVector.h"
class VectorTest : public testing::Test {
public:
virtual void SetUp() {
x = 100.0f;
y = -12.0f;
z = 0.0f;
}
float x, y, z;
};
TEST_F(VectorTest, TestConstructor) {
ty::Vector vec;
ASSE... | 40.015424 | 73 | 0.702814 | gongo |
ae13c0fff17ed626dc11390697d715fec5f75c87 | 28,949 | hpp | C++ | include/mitama/result/detail/result_impl.hpp | ken-matsui/mitama-cpp-result | 07740b75c3853e4b858abcc8656b3ced186a66ae | [
"MIT"
] | null | null | null | include/mitama/result/detail/result_impl.hpp | ken-matsui/mitama-cpp-result | 07740b75c3853e4b858abcc8656b3ced186a66ae | [
"MIT"
] | null | null | null | include/mitama/result/detail/result_impl.hpp | ken-matsui/mitama-cpp-result | 07740b75c3853e4b858abcc8656b3ced186a66ae | [
"MIT"
] | null | null | null | #ifndef MITAMA_RESULT_IMPL_HPP
#define MITAMA_RESULT_IMPL_HPP
#include <mitama/result/detail/meta.hpp>
#include <mitama/result/detail/fwd.hpp>
#include <mitama/result/traits/impl_traits.hpp>
#include <mitama/result/traits/Deref.hpp>
#include <mitama/result/detail/dangling.hpp>
#include <mitama/maybe/maybe.hpp>
#includ... | 40.262865 | 249 | 0.64814 | ken-matsui |
ae15eb7667ff6c5e59defcc100859f4433653ec6 | 11,037 | cpp | C++ | src/Kripke/Core/PartitionSpace.cpp | brandonneth/Kripke | 9604d8f4e81fd18bf351c2a8578829053addb357 | [
"BSD-3-Clause-Clear",
"BSD-3-Clause"
] | 23 | 2017-11-03T17:53:56.000Z | 2021-10-04T09:55:09.000Z | src/Kripke/Core/PartitionSpace.cpp | brandonneth/Kripke | 9604d8f4e81fd18bf351c2a8578829053addb357 | [
"BSD-3-Clause-Clear",
"BSD-3-Clause"
] | 20 | 2017-11-12T16:35:35.000Z | 2022-01-17T13:44:42.000Z | src/Kripke/Core/PartitionSpace.cpp | brandonneth/Kripke | 9604d8f4e81fd18bf351c2a8578829053addb357 | [
"BSD-3-Clause-Clear",
"BSD-3-Clause"
] | 29 | 2017-12-21T23:11:50.000Z | 2022-01-11T20:26:24.000Z | //
// Copyright (c) 2014-19, Lawrence Livermore National Security, LLC
// and Kripke project contributors. See the COPYRIGHT file for details.
//
// SPDX-License-Identifier: (BSD-3-Clause)
//
#include <Kripke/Core/PartitionSpace.h>
#include <Kripke.h>
#include <Kripke/Core/Field.h>
#include <Kripke/Kernel.h>
#include... | 34.927215 | 105 | 0.677902 | brandonneth |
ae1a9a2b5bf0088ecadca8bae907fc53c7d53265 | 364 | cpp | C++ | common/common.cpp | Locietta/mua-lang | d82a64fa2bdd6b8adfc57bfb9c362b5c87ed497e | [
"MIT"
] | null | null | null | common/common.cpp | Locietta/mua-lang | d82a64fa2bdd6b8adfc57bfb9c362b5c87ed497e | [
"MIT"
] | null | null | null | common/common.cpp | Locietta/mua-lang | d82a64fa2bdd6b8adfc57bfb9c362b5c87ed497e | [
"MIT"
] | null | null | null | #include "common.h"
#include <regex>
bool numberMatcher(std::string_view sv) {
const static std::regex number_matcher{R"xx(-?([1-9][0-9]*|0)(\.[0-9]*)?)xx"};
return regex_match(sv, number_matcher);
}
bool nameMatcher(std::string_view sv) {
const static std::regex name_matcher{R"([a-zA-Z_][a-zA-Z0-9_]*)"};... | 30.333333 | 82 | 0.667582 | Locietta |
ae2064d1824e216c4fb249b41b2c436f4f0fc591 | 202 | cpp | C++ | gsNsTimeIntegrator_.cpp | gismo/gsElasticity | a94347d4b8d8cd76de79d4b512023be9b68363bf | [
"BSD-3-Clause-Attribution"
] | 7 | 2020-04-24T04:11:02.000Z | 2021-09-18T19:24:10.000Z | gsNsTimeIntegrator_.cpp | gismo/gsElasticity | a94347d4b8d8cd76de79d4b512023be9b68363bf | [
"BSD-3-Clause-Attribution"
] | 1 | 2021-08-16T20:41:48.000Z | 2021-08-16T20:41:48.000Z | gsNsTimeIntegrator_.cpp | gismo/gsElasticity | a94347d4b8d8cd76de79d4b512023be9b68363bf | [
"BSD-3-Clause-Attribution"
] | 6 | 2020-05-12T11:11:51.000Z | 2021-10-21T14:13:46.000Z | #include <gsCore/gsTemplateTools.h>
#include <gsElasticity/gsNsTimeIntegrator.h>
#include <gsElasticity/gsNsTimeIntegrator.hpp>
namespace gismo
{
CLASS_TEMPLATE_INST gsNsTimeIntegrator<real_t>;
}
| 20.2 | 51 | 0.811881 | gismo |
ae2306495f87fc5139cb8f960c7d79020b8bce52 | 597 | hpp | C++ | higan/target-bsnes/bsnes.hpp | 13824125580/higan | fbdd3f980b65412c362096579869ae76730e4118 | [
"Intel",
"ISC"
] | 10 | 2019-12-19T01:19:41.000Z | 2021-02-18T16:30:29.000Z | higan/target-bsnes/bsnes.hpp | 13824125580/higan | fbdd3f980b65412c362096579869ae76730e4118 | [
"Intel",
"ISC"
] | null | null | null | higan/target-bsnes/bsnes.hpp | 13824125580/higan | fbdd3f980b65412c362096579869ae76730e4118 | [
"Intel",
"ISC"
] | null | null | null | #include <ruby/ruby.hpp>
using namespace ruby;
extern Video video;
extern Audio audio;
extern Input input;
#include <hiro/hiro.hpp>
using namespace hiro;
#include <emulator/emulator.hpp>
extern unique_pointer<Emulator::Interface> emulator;
#include <nall/decode/rle.hpp>
#include <nall/decode/zip.hpp>
#include <nall/... | 22.961538 | 52 | 0.768844 | 13824125580 |
ae24d4885799bc06872e944b64d65acbd4546a05 | 8,655 | cpp | C++ | src/acui_core/aui_core.cpp | MaiReo/crass | 11579527090faecab27f98b1e221172822928f57 | [
"BSD-3-Clause"
] | 1 | 2021-07-21T00:58:45.000Z | 2021-07-21T00:58:45.000Z | src/acui_core/aui_core.cpp | MaiReo/crass | 11579527090faecab27f98b1e221172822928f57 | [
"BSD-3-Clause"
] | null | null | null | src/acui_core/aui_core.cpp | MaiReo/crass | 11579527090faecab27f98b1e221172822928f57 | [
"BSD-3-Clause"
] | null | null | null | #include <tchar.h>
#include <windows.h>
#include <shlwapi.h>
#include <stdio.h>
#include "../common/include/acui_core.h"
//#include "../common/SDK/include/acui.h"
#include "../common/SDK/include/aui.h"
#include "../common/SDK/include/aui_error.h"
#include "../common/SDK/include/crass/locale.h"
#include "../common/SD... | 22.306701 | 87 | 0.677065 | MaiReo |
ae328e24fde171a00654c40551508d892e05dc69 | 5,379 | cpp | C++ | src/entities/Vertex.cpp | VolkerEnderlein/dime | 0a5ba5ad881e89eccc7f5dec0141c545d5ea440a | [
"BSD-3-Clause"
] | 3 | 2020-12-16T14:17:34.000Z | 2022-01-07T22:40:11.000Z | src/entities/Vertex.cpp | VolkerEnderlein/dime | 0a5ba5ad881e89eccc7f5dec0141c545d5ea440a | [
"BSD-3-Clause"
] | 3 | 2019-12-25T23:25:52.000Z | 2022-01-07T15:37:12.000Z | src/entities/Vertex.cpp | VolkerEnderlein/dime | 0a5ba5ad881e89eccc7f5dec0141c545d5ea440a | [
"BSD-3-Clause"
] | 8 | 2020-01-01T15:24:16.000Z | 2021-07-20T18:20:29.000Z | /**************************************************************************\
* Copyright (c) Kongsberg Oil & Gas Technologies AS
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* Red... | 23.386957 | 76 | 0.658859 | VolkerEnderlein |
ae373291b067b2c46c5769970b87251bc82ad94e | 1,428 | cpp | C++ | uebungen/0x01/bluecanyon.cpp | pblan/fha-cpp | 5008f54133cf4913f0ca558a3817b01b10d04494 | [
"CECILL-B"
] | null | null | null | uebungen/0x01/bluecanyon.cpp | pblan/fha-cpp | 5008f54133cf4913f0ca558a3817b01b10d04494 | [
"CECILL-B"
] | null | null | null | uebungen/0x01/bluecanyon.cpp | pblan/fha-cpp | 5008f54133cf4913f0ca558a3817b01b10d04494 | [
"CECILL-B"
] | null | null | null | #include <iostream>
int pot(int base, int pow);
// Berechnung von b^n:
int main() {
// Lesen Sie Variablen 'b' ...
int b{0}; // (A)
int n{0};
std::cout << "Eingabe b (int): " << std::endl;
std::cin >> b;
// ... und 'n' eines geeigneten Typs ein.
std::cout << "Eingabe n (int): " << std::e... | 26.444444 | 85 | 0.583333 | pblan |
ae4045b2f5624e5b019fe34b2e77af57785f5342 | 835 | cpp | C++ | CPP-BasicToAdvanced/Pointers/Main.cpp | JCharlieDev/CPP-Intro | 3d4888d413a09ae3579ef9079eaf1982a10c0d05 | [
"MIT"
] | null | null | null | CPP-BasicToAdvanced/Pointers/Main.cpp | JCharlieDev/CPP-Intro | 3d4888d413a09ae3579ef9079eaf1982a10c0d05 | [
"MIT"
] | null | null | null | CPP-BasicToAdvanced/Pointers/Main.cpp | JCharlieDev/CPP-Intro | 3d4888d413a09ae3579ef9079eaf1982a10c0d05 | [
"MIT"
] | null | null | null | #include <iostream>
#define LOG(x) std::cout << x << std::endl; // Preproccess directive macro
int main()
{
// A pointer is an adress, an integer which hold a memory address.
void* ptr = NULL; // It's the same as = 0. A null pointer might crash programs
void* ptr2 = nullptr; // Same as above
int var = 8;
int* ... | 27.833333 | 129 | 0.681437 | JCharlieDev |
ae4460f60de634ad8417cc6bf0446f8d552a03ab | 7,527 | cpp | C++ | src/execution/nested_index_join_executor.cpp | yzhshiki/bustub_2020 | b647284b9330f5ac037caae82b3ce75978fa7cad | [
"MIT"
] | null | null | null | src/execution/nested_index_join_executor.cpp | yzhshiki/bustub_2020 | b647284b9330f5ac037caae82b3ce75978fa7cad | [
"MIT"
] | null | null | null | src/execution/nested_index_join_executor.cpp | yzhshiki/bustub_2020 | b647284b9330f5ac037caae82b3ce75978fa7cad | [
"MIT"
] | 1 | 2021-10-14T16:07:12.000Z | 2021-10-14T16:07:12.000Z | //===----------------------------------------------------------------------===//
//
// BusTub
//
// nested_index_join_executor.cpp
//
// Identification: src/execution/nested_index_join_executor.cpp
//
// Copyright (c) 2015-19, Carnegie Mellon University Database Group
//
//===-------------------... | 48.56129 | 118 | 0.686595 | yzhshiki |
ae50ec06efcf6d8e5fe80f737889dfafe1747183 | 695 | hpp | C++ | src/opengl/opengl_texture.hpp | zfccxt/calcium | 9cc3a00904c05e675bdb5d35eef0f5356796e564 | [
"MIT"
] | null | null | null | src/opengl/opengl_texture.hpp | zfccxt/calcium | 9cc3a00904c05e675bdb5d35eef0f5356796e564 | [
"MIT"
] | null | null | null | src/opengl/opengl_texture.hpp | zfccxt/calcium | 9cc3a00904c05e675bdb5d35eef0f5356796e564 | [
"MIT"
] | null | null | null | #pragma once
#include <glad/glad.h>
#include "texture.hpp"
#include "texture_create_info.hpp"
namespace cl::opengl {
class OpenGLTexture : public Texture {
public:
OpenGLTexture(const TextureCreateInfo& texture_info);
OpenGLTexture(const BlankTextureCreateInfo& texture_info);
~OpenGLTexture();
virtual size... | 20.441176 | 65 | 0.782734 | zfccxt |
ae515b59ec5d684c3fcbd6e463989b72c9e184b5 | 31,289 | cpp | C++ | plugins/eoc_relay_plugin/eoc_relay_plugin.cpp | tianyalangzi/eocs | 83ba0a8cdcdcdac0aad6726ffffd87f558133e0f | [
"MIT"
] | null | null | null | plugins/eoc_relay_plugin/eoc_relay_plugin.cpp | tianyalangzi/eocs | 83ba0a8cdcdcdac0aad6726ffffd87f558133e0f | [
"MIT"
] | 1 | 2019-01-03T07:36:43.000Z | 2019-01-03T07:36:43.000Z | plugins/eoc_relay_plugin/eoc_relay_plugin.cpp | tianyalangzi/eocs | 83ba0a8cdcdcdac0aad6726ffffd87f558133e0f | [
"MIT"
] | null | null | null | /**
* @file
* @copyright defined in eos/LICENSE.txt
*/
#include <eosio/chain/types.hpp>
#include <eosio/chain/controller.hpp>
#include <eosio/chain/exceptions.hpp>
#include <eosio/chain/block.hpp>
#include <eosio/net_plugin/protocol.hpp>
#include <fc/network/message_buffer.hpp>
#include <fc/network/ip.hpp>
#incl... | 45.280753 | 317 | 0.612675 | tianyalangzi |
ae5625c83aecf1e94522f47cb9e2808fcd764bcb | 616 | cpp | C++ | FrameworkExamples/CustomClassExample/main.cpp | MagdaSkurzok/PET_Analysis | 1527d2658d574b494f9f9eb234166e6e1f220d4e | [
"Apache-2.0"
] | null | null | null | FrameworkExamples/CustomClassExample/main.cpp | MagdaSkurzok/PET_Analysis | 1527d2658d574b494f9f9eb234166e6e1f220d4e | [
"Apache-2.0"
] | 1 | 2021-05-31T11:40:56.000Z | 2021-05-31T11:40:56.000Z | FrameworkExamples/CustomClassExample/main.cpp | MagdaSkurzok/PET_Analysis | 1527d2658d574b494f9f9eb234166e6e1f220d4e | [
"Apache-2.0"
] | 2 | 2017-02-15T00:33:18.000Z | 2022-03-25T16:48:15.000Z | #include <iostream>
#include <JPetManager/JPetManager.h>
#include "./JPetAnalysisModuleA.h"
#include "./JPetAnalysisModuleB.h"
#include <JPetMacroLoader/JPetMacroLoader.h>
#include <JPetWriter/JPetWriter.h>
#include <JPetReader/JPetReader.h>
#include <JPetHLDReader/JPetHLDReader.h>
using namespace std;
int main(int a... | 30.8 | 112 | 0.769481 | MagdaSkurzok |
ae56543e7df0e5ef3f930791b1b0ff99b082cfa1 | 36,456 | cpp | C++ | test/test_lest.cpp | buckaroo-pm/martinmoene-lest | 9bbfaddcac98c19d4fee04e64f63785bf178d351 | [
"BSL-1.0"
] | 1 | 2020-05-04T15:22:21.000Z | 2020-05-04T15:22:21.000Z | test/test_lest.cpp | buckaroo-pm/martinmoene-lest | 9bbfaddcac98c19d4fee04e64f63785bf178d351 | [
"BSL-1.0"
] | null | null | null | test/test_lest.cpp | buckaroo-pm/martinmoene-lest | 9bbfaddcac98c19d4fee04e64f63785bf178d351 | [
"BSL-1.0"
] | null | null | null | // Copyright 2013-2018 by Martin Moene
//
// Distributed under the Boost Software License, Version 1.0. (See accompanying
// file LICENSE.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
// Suppress warning: comparing floating point with == or != is unsafe [-Werror=float-equal]
// for CASE( "Expect succeeds for mi... | 30.764557 | 125 | 0.480662 | buckaroo-pm |
ae56e343f844bf1ba6d4741a1a53c6c706a388ae | 16,596 | cpp | C++ | Tools/ShaderFragmentArchive/ShaderFragmentArchive.cpp | yorung/XLE | 083ce4c9d3fe32002ff5168e571cada2715bece4 | [
"MIT"
] | 1 | 2016-06-01T10:41:12.000Z | 2016-06-01T10:41:12.000Z | Tools/ShaderFragmentArchive/ShaderFragmentArchive.cpp | yorung/XLE | 083ce4c9d3fe32002ff5168e571cada2715bece4 | [
"MIT"
] | null | null | null | Tools/ShaderFragmentArchive/ShaderFragmentArchive.cpp | yorung/XLE | 083ce4c9d3fe32002ff5168e571cada2715bece4 | [
"MIT"
] | null | null | null | // Copyright 2015 XLGAMES Inc.
//
// Distributed under the MIT License (See
// accompanying file "LICENSE" or the website
// http://www.opensource.org/licenses/mit-license.php)
#include "stdafx.h"
#include "ShaderFragmentArchive.h"
#include "../GUILayer/MarshalString.h"
#include "../../ShaderParser/InterfaceSignature... | 36.962138 | 149 | 0.55435 | yorung |
ae60d0697964000c2443d85e036a85a4758dccea | 432 | cpp | C++ | cpp/isogram/isogram.cpp | syohex/exercism | b27046bc0b202aea3bbc4b909e9ff91530b69bce | [
"MIT"
] | null | null | null | cpp/isogram/isogram.cpp | syohex/exercism | b27046bc0b202aea3bbc4b909e9ff91530b69bce | [
"MIT"
] | null | null | null | cpp/isogram/isogram.cpp | syohex/exercism | b27046bc0b202aea3bbc4b909e9ff91530b69bce | [
"MIT"
] | null | null | null | #include "isogram.h"
#include <cctype>
namespace isogram {
bool is_isogram(const std::string &str) {
bool table[26] = {};
for (char c : str) {
if (!isalpha(static_cast<int>(c))) {
continue;
}
int index = tolower(static_cast<int>(c)) - 'a';
if (table[index]) {
... | 16.615385 | 55 | 0.516204 | syohex |
ae61f8cf3521d7778ae18a321f501194375167dd | 7,869 | cpp | C++ | data/419.cpp | TianyiChen/rdcpp-data | 75c6868c876511e3ce143fdc3c08ddd74c7aa4ea | [
"MIT"
] | null | null | null | data/419.cpp | TianyiChen/rdcpp-data | 75c6868c876511e3ce143fdc3c08ddd74c7aa4ea | [
"MIT"
] | null | null | null | data/419.cpp | TianyiChen/rdcpp-data | 75c6868c876511e3ce143fdc3c08ddd74c7aa4ea | [
"MIT"
] | null | null | null | int
sky
, xP , jl , NJe ,
i8Nyb//zkC
, AlA/*dM*/, AcxG,
h39,OyNx, Ez,ep ,
sx,SHw
,
bwF,//lE
Zt, Pqu
, Jp8xn
, s93FD
,tWVQ , tf4,sCo0, had ,
Ke4m
, Xi ,qua
,
Sl3M ,//3b
A5Hy;
void f_f0
() { {if(
true
) { int
pi
; volatile int nHjM ,ViqC,hCz
,iz ; { { volatile int
I0111 , kp;A5H... | 10.823934 | 66 | 0.453679 | TianyiChen |
ae6ac2a333e19426dbfae918ff0c1d6ebda118e3 | 740 | cpp | C++ | CC/CF/NoMoreInversions.cpp | MrRobo24/Codes | 9513f42b61e898577123d5b996e43ba7a067a019 | [
"MIT"
] | 1 | 2020-10-12T08:03:20.000Z | 2020-10-12T08:03:20.000Z | CC/CF/NoMoreInversions.cpp | MrRobo24/Codes | 9513f42b61e898577123d5b996e43ba7a067a019 | [
"MIT"
] | null | null | null | CC/CF/NoMoreInversions.cpp | MrRobo24/Codes | 9513f42b61e898577123d5b996e43ba7a067a019 | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
#define LLI long long
using namespace std;
void solve(LLI n, LLI k) {
LLI arr[n];
LLI i=0, c=1;
while (i<n) {
arr[i] = c;
if (i < k-1) {
c++;
} else {
c--;
}
i++;
}
i = n-1;
c = k;
LLI p[k];
... | 14.509804 | 37 | 0.344595 | MrRobo24 |
ae7b73ca95dcf6bc7bf4dafa5a74727980652a2c | 4,519 | cpp | C++ | Sources/Audio.cpp | Ma-Pe-Ma/Lode-Runner-2020 | 69472190166d2b3d49297dea59d48160249b4d11 | [
"MIT"
] | 1 | 2022-03-13T23:08:14.000Z | 2022-03-13T23:08:14.000Z | Sources/Audio.cpp | Ma-Pe-Ma/Lode-Runner-2020 | 69472190166d2b3d49297dea59d48160249b4d11 | [
"MIT"
] | null | null | null | Sources/Audio.cpp | Ma-Pe-Ma/Lode-Runner-2020 | 69472190166d2b3d49297dea59d48160249b4d11 | [
"MIT"
] | null | null | null | #include "Audio.h"
Audio Audio::sfx[SOUND_FILE_NR];
char Audio::pcmout[SOUND_FILE_NR][FRAMES_PER_BUFFER * CHANNEL_COUNT * 2];
#ifndef ANDROID_VERSION
std::string assetFolder = "Assets/";
#else
std::string assetFolder = "";
#endif
const std::string Audio::soundNames[SOUND_FILE_NR] = { assetFolder + "SFX/gold.ogg", ... | 27.05988 | 156 | 0.688427 | Ma-Pe-Ma |
ae80fe4126a68bd97a45f8f7d8b37fcf49fd199f | 9,980 | cpp | C++ | src/1_digital/quantum/tech_ind/q_decoder_asm.cpp | gtaifu/CACTUS | a05f47423ac37b14989ec38c525741ec597b4826 | [
"Apache-2.0"
] | 8 | 2020-01-04T06:40:13.000Z | 2020-12-04T19:29:02.000Z | src/1_digital/quantum/tech_ind/q_decoder_asm.cpp | gtaifu/CACTUS | a05f47423ac37b14989ec38c525741ec597b4826 | [
"Apache-2.0"
] | null | null | null | src/1_digital/quantum/tech_ind/q_decoder_asm.cpp | gtaifu/CACTUS | a05f47423ac37b14989ec38c525741ec597b4826 | [
"Apache-2.0"
] | 1 | 2021-07-05T02:14:05.000Z | 2021-07-05T02:14:05.000Z | #include "q_decoder_asm.h"
#include <algorithm>
#include <regex> // regular expression
#include "global_json.h"
namespace cactus {
void Q_decoder_asm::config() {
Global_config& global_config = Global_config::get_instance();
m_vliw_width = global_config.vliw_width;
m_num_qubits = global_config.num_qubi... | 33.377926 | 100 | 0.622445 | gtaifu |
ae8b3d53fa3414af30f87da672c10303a606aa54 | 2,707 | cpp | C++ | src/StateSet.cpp | dermegges/ugl | e5551f98d59c115460d1298d9082996b5da119da | [
"Apache-2.0"
] | null | null | null | src/StateSet.cpp | dermegges/ugl | e5551f98d59c115460d1298d9082996b5da119da | [
"Apache-2.0"
] | null | null | null | src/StateSet.cpp | dermegges/ugl | e5551f98d59c115460d1298d9082996b5da119da | [
"Apache-2.0"
] | null | null | null | /** @file StateSet.cpp
Copyright 2016 Computational Topology Group, University of Kaiserslautern
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/LICE... | 25.537736 | 80 | 0.57887 | dermegges |
ae8ef12f62b4683032e07b29ddbf969595fd3ce5 | 4,756 | cpp | C++ | source/editop/MeshIKOP.cpp | xzrunner/easyeditor3 | 61c89c8534d1342fb2890d7e6218fd7614410861 | [
"MIT"
] | null | null | null | source/editop/MeshIKOP.cpp | xzrunner/easyeditor3 | 61c89c8534d1342fb2890d7e6218fd7614410861 | [
"MIT"
] | null | null | null | source/editop/MeshIKOP.cpp | xzrunner/easyeditor3 | 61c89c8534d1342fb2890d7e6218fd7614410861 | [
"MIT"
] | null | null | null | #include "ee3/MeshIKOP.h"
#include <ee0/WxStageCanvas.h>
#include <SM_Ray.h>
#include <SM_RayIntersect.h>
#include <model/MeshIK.h>
#include <model/Model.h>
#include <unirender/RenderState.h>
#include <painting2/RenderSystem.h>
#include <painting3/Blackboard.h>
#include <painting3/WindowContext.h>
#include <painting3... | 20.238298 | 151 | 0.650757 | xzrunner |
ae8f224375b9435270802e7077fcb3e5ce87e977 | 1,433 | cpp | C++ | example/user_guide/policies_print_type_extended.cpp | szigetics/di | 48eccb76aee03f0eceafe9bf47a713a8c0e7d810 | [
"BSL-1.0"
] | 531 | 2016-01-28T21:51:28.000Z | 2020-06-23T10:59:52.000Z | example/user_guide/policies_print_type_extended.cpp | szigetics/di | 48eccb76aee03f0eceafe9bf47a713a8c0e7d810 | [
"BSL-1.0"
] | 243 | 2016-02-11T14:28:01.000Z | 2020-06-22T08:53:13.000Z | example/user_guide/policies_print_type_extended.cpp | szigetics/di | 48eccb76aee03f0eceafe9bf47a713a8c0e7d810 | [
"BSL-1.0"
] | 86 | 2016-02-01T21:49:15.000Z | 2020-06-17T14:38:53.000Z | //
// Copyright (c) 2012-2020 Kris Jusiak (kris at jusiak dot net)
//
// 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 <boost/di.hpp>
#include <cassert>
#include <iostream>
#include <memory>
#include... | 26.054545 | 90 | 0.602931 | szigetics |
ae90c6a45e0bb063eebf249fa73110ccd6f0e2f1 | 1,569 | cpp | C++ | rm_common/src/debug.cpp | Hqz971016/rmoss_core | e9e37096ceb883945a838774e20ef58f2de0b10b | [
"MIT"
] | 1 | 2020-12-06T13:12:31.000Z | 2020-12-06T13:12:31.000Z | rm_common/src/debug.cpp | Hqz971016/rmoss_core | e9e37096ceb883945a838774e20ef58f2de0b10b | [
"MIT"
] | null | null | null | rm_common/src/debug.cpp | Hqz971016/rmoss_core | e9e37096ceb883945a838774e20ef58f2de0b10b | [
"MIT"
] | null | null | null | /*******************************************************************************
* Copyright (c) 2020 robomaster-oss, All rights reserved.
*
* This program is free software: you can redistribute it and/or modify it
* under the terms of the MIT License, See the MIT License for more details.
*
* You should hav... | 26.59322 | 80 | 0.551944 | Hqz971016 |
ae98a2dd4e558575a375a035c5d1ea75258e68aa | 1,007 | cpp | C++ | src/Stroke.cpp | JesseMaurais/SGe | f73bd03d30074a54642847b05f82151128481371 | [
"MIT"
] | 1 | 2017-04-20T06:27:36.000Z | 2017-04-20T06:27:36.000Z | src/Stroke.cpp | JesseMaurais/SGe | f73bd03d30074a54642847b05f82151128481371 | [
"MIT"
] | null | null | null | src/Stroke.cpp | JesseMaurais/SGe | f73bd03d30074a54642847b05f82151128481371 | [
"MIT"
] | null | null | null | #include "Stroke.hpp"
Stroke::Stroke(Scalar s)
{
Steps(s);
}
void Stroke::Steps(Scalar s)
{
step = s;
}
void Stroke::Curve(Scalar n)
{
if (step) n /= step;
for (Scalar i = 1.0; i < n; ++i)
{
Vector V;
Scalar t = i/n;
V = Bezier::Equate(t);
Tessel::PolygonVertex(V);
}
}
void Stroke::Move(Vector const... | 13.077922 | 69 | 0.601787 | JesseMaurais |
ae9b011f582c84c5e38b6f4270144bbf3a289321 | 150 | cpp | C++ | win9x/timemng.cpp | KMFDManic/libretro-meowPC98 | cd389b3490d5048873c40edd949a1b0631e0606d | [
"MIT"
] | 7 | 2017-05-05T21:35:37.000Z | 2021-11-19T10:47:42.000Z | win9x/timemng.cpp | KMFDManic/libretro-meowPC98 | cd389b3490d5048873c40edd949a1b0631e0606d | [
"MIT"
] | 6 | 2017-06-28T16:08:47.000Z | 2020-08-03T14:47:12.000Z | win9x/timemng.cpp | KMFDManic/libretro-meowPC98 | cd389b3490d5048873c40edd949a1b0631e0606d | [
"MIT"
] | 15 | 2017-05-20T14:40:09.000Z | 2021-11-19T10:43:19.000Z | #include "compiler.h"
#include "timemng.h"
BRESULT timemng_gettime(_SYSTIME *systime) {
GetLocalTime((SYSTEMTIME *)systime);
return(SUCCESS);
}
| 13.636364 | 44 | 0.733333 | KMFDManic |
ae9f23f93c315eafbedc6900b8902e9aa88d701a | 3,079 | cpp | C++ | src/cli/RegexCommand.cpp | netspeak/netspeak4-application-cpp | b322c19e22c71f39be95b37b14f43daab1cb9024 | [
"MIT"
] | null | null | null | src/cli/RegexCommand.cpp | netspeak/netspeak4-application-cpp | b322c19e22c71f39be95b37b14f43daab1cb9024 | [
"MIT"
] | 7 | 2020-06-02T18:37:02.000Z | 2021-02-17T11:04:22.000Z | src/cli/RegexCommand.cpp | netspeak/netspeak4-application-ngrams | b322c19e22c71f39be95b37b14f43daab1cb9024 | [
"MIT"
] | null | null | null | #include "cli/RegexCommand.hpp"
#include <chrono>
#include <iomanip>
#include <iostream>
#include "boost/filesystem.hpp"
#include "netspeak/error.hpp"
#include "netspeak/regex/DefaultRegexIndex.hpp"
#include "netspeak/regex/parsers.hpp"
#include "netspeak/util/check.hpp"
namespace cli {
namespace bpo = boost::prog... | 33.107527 | 80 | 0.626177 | netspeak |
aea0e317e6493c9260d642543031744d335d43d8 | 4,710 | cpp | C++ | src/Renderer/NRE_GPU_Shaders.cpp | antsouchlos/OxygenEngine2 | 5a123a2dacbc3b66ba9e97b9e5db7d8c17490ddb | [
"MIT"
] | null | null | null | src/Renderer/NRE_GPU_Shaders.cpp | antsouchlos/OxygenEngine2 | 5a123a2dacbc3b66ba9e97b9e5db7d8c17490ddb | [
"MIT"
] | 22 | 2020-05-19T18:18:45.000Z | 2022-03-31T12:11:08.000Z | src/Renderer/NRE_GPU_Shaders.cpp | antsouchlos/OxygenEngine2 | 5a123a2dacbc3b66ba9e97b9e5db7d8c17490ddb | [
"MIT"
] | null | null | null | #include <Renderer/GL3/NRE_GL3_Shaders.h>
#include <iostream>
#include <sstream>
using namespace std;
// General boilerplate
NRE_GPU_SHADER_BACKEND NRE_GPU_ShaderBase::backend = NRE_GPU_UNDEFINED;
std::string NRE_GPU_ShaderBase::shader_prefix = "";
NRE_GPU_ShaderBase::~NRE_GPU_ShaderBase(){
}
void NRE_GPU_Sha... | 25.187166 | 130 | 0.577495 | antsouchlos |
000ef838d8dd3d775d71e5517d9e305903a75f5f | 3,418 | cpp | C++ | src/spatialix/tkdCombinationTransform.cpp | wmotte/toolkid | 2a8f82e1492c9efccde9a4935ce3019df1c68cde | [
"MIT"
] | null | null | null | src/spatialix/tkdCombinationTransform.cpp | wmotte/toolkid | 2a8f82e1492c9efccde9a4935ce3019df1c68cde | [
"MIT"
] | null | null | null | src/spatialix/tkdCombinationTransform.cpp | wmotte/toolkid | 2a8f82e1492c9efccde9a4935ce3019df1c68cde | [
"MIT"
] | null | null | null | #include "tkdCombinationTransform.h"
namespace tkd
{
CombinationTransform::CombinationTransform()
{
this->m_CombinationTransform = CombinationTransformType::New();
this->m_Transform = this->m_CombinationTransform.GetPointer();
}
CombinationTransform::~CombinationTransform()
{
}
void CombinationTransform::SetUs... | 26.292308 | 114 | 0.705676 | wmotte |
0014cc641e0e1512c1ffce7388ffdd3a78125bd5 | 5,923 | cpp | C++ | src/texturing.cpp | rswinkle/opengl_reference | ee05c9ced66f14437b9c57c711cc81b80f96c1ed | [
"MIT"
] | null | null | null | src/texturing.cpp | rswinkle/opengl_reference | ee05c9ced66f14437b9c57c711cc81b80f96c1ed | [
"MIT"
] | null | null | null | src/texturing.cpp | rswinkle/opengl_reference | ee05c9ced66f14437b9c57c711cc81b80f96c1ed | [
"MIT"
] | null | null | null | #include <gltools.h>
#include <rsw_math.h>
#include <SDL2/SDL.h>
#include <stdio.h>
#include <stdint.h>
#define WIDTH 640
#define HEIGHT 480
using rsw::mat4;
using rsw::vec3;
SDL_Window* window;
SDL_GLContext glcontext;
void cleanup();
void setup_context();
int handle_events(unsigned int last_time, unsigned in... | 20.353952 | 108 | 0.698126 | rswinkle |
00150e5df253abcbece813c52d19791f9aa62cd1 | 458 | cpp | C++ | ivp/havana/havok/hk_math/quaternion/quaternion_util.cpp | DannyParker0001/Kisak-Strike | 99ed85927336fe3aff2efd9b9382b2b32eb1d05d | [
"Unlicense"
] | 252 | 2020-12-16T15:34:43.000Z | 2022-03-31T23:21:37.000Z | ivp/havana/havok/hk_math/quaternion/quaternion_util.cpp | DannyParker0001/Kisak-Strike | 99ed85927336fe3aff2efd9b9382b2b32eb1d05d | [
"Unlicense"
] | 23 | 2020-12-20T18:02:54.000Z | 2022-03-28T16:58:32.000Z | ivp/havana/havok/hk_math/quaternion/quaternion_util.cpp | DannyParker0001/Kisak-Strike | 99ed85927336fe3aff2efd9b9382b2b32eb1d05d | [
"Unlicense"
] | 42 | 2020-12-19T04:32:33.000Z | 2022-03-30T06:00:28.000Z | #include <hk_math/vecmath.h>
#include <hk_math/quaternion/quaternion_util.h>
void hk_Quaternion_Util::set_mul_unit_dir(const hk_Quaternion& q0, int axis, hk_Quaternion& q_out)
{
hk_Quaternion q1;
q1.set_zero4();
q1(axis) = 1.0f;
q_out.hk_Vector3::set_cross(q0, q1);
q_out(axis) += q0.w; // hk_Vector3:... | 28.625 | 99 | 0.661572 | DannyParker0001 |
001f3b56b7d17ada1cf2458c46f448314b52afc7 | 4,793 | cpp | C++ | src/SettingsDialog.cpp | cadet/UberCode | 19d70134774dfae607b18b5185ad93e5b2cf7cfe | [
"Apache-2.0"
] | 1 | 2016-10-31T13:05:30.000Z | 2016-10-31T13:05:30.000Z | src/SettingsDialog.cpp | cadet/UberCode | 19d70134774dfae607b18b5185ad93e5b2cf7cfe | [
"Apache-2.0"
] | null | null | null | src/SettingsDialog.cpp | cadet/UberCode | 19d70134774dfae607b18b5185ad93e5b2cf7cfe | [
"Apache-2.0"
] | null | null | null | /*
CADET - Center for Advances in Digital Entertainment Technologies
Copyright 2011 Fachhochschule Salzburg GmbH
http://www.cadet.at
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://... | 28.02924 | 106 | 0.743793 | cadet |
0029096e0e0b46ff773f49a7c97a6ff2606dcbfc | 5,857 | cpp | C++ | Prism/src/Platform/Windows/WindowsWindow.cpp | xRiveria/Prism-Engine-Reforged | da43e0170844f9a86dbaa53cfad5c7c6043236c5 | [
"Apache-2.0"
] | 1 | 2020-12-23T12:20:09.000Z | 2020-12-23T12:20:09.000Z | Prism/src/Platform/Windows/WindowsWindow.cpp | xRiveria/Prism-Engine-Reforged | da43e0170844f9a86dbaa53cfad5c7c6043236c5 | [
"Apache-2.0"
] | null | null | null | Prism/src/Platform/Windows/WindowsWindow.cpp | xRiveria/Prism-Engine-Reforged | da43e0170844f9a86dbaa53cfad5c7c6043236c5 | [
"Apache-2.0"
] | null | null | null | #include "PrismPrecompiledHeader.h"
#include "WindowsWindow.h"
#include "Prism/Events/ApplicationEvent.h"
#include "Prism/Events/KeyEvent.h"
#include "Prism/Events/MouseEvent.h"
#include "Platform/OpenGL/OpenGLContext.h"
#include "stb_image.h"
namespace Prism
{
static bool s_IsGLFWInitialized = false;
static void... | 28.432039 | 252 | 0.747482 | xRiveria |
0032d4b5cdd4eb8bd8543e1801758480458c0bf9 | 8,063 | cpp | C++ | src/ArgumentCallbackFunctions.cpp | diridari/Production-line-simulator | ec3b0624f531768b4d34db839b09695baef8e718 | [
"MIT"
] | null | null | null | src/ArgumentCallbackFunctions.cpp | diridari/Production-line-simulator | ec3b0624f531768b4d34db839b09695baef8e718 | [
"MIT"
] | null | null | null | src/ArgumentCallbackFunctions.cpp | diridari/Production-line-simulator | ec3b0624f531768b4d34db839b09695baef8e718 | [
"MIT"
] | null | null | null | //
// Created by basti on 19.12.2020.
//
#include <iostream>
#include <logging.h>
#include "ArgumentCallbackFunctions.h"
#include "version.h"
#include <sstream>
using namespace std;
int port = 5555;
bool generateAPI = true;
bool cliHighlighting = true;
BaseProductionStation *newStartStation = nullptr;
extern BasePr... | 41.348718 | 245 | 0.650502 | diridari |
0036ce7ce1c63f3b637f20ce1c32a72ce016589d | 843 | cpp | C++ | src/Interface/Windows/IterWindow.cpp | kSzmit/Private-Apps | 978b620bfda0b87abb4c6009bbc53fbec9164b58 | [
"Apache-2.0"
] | null | null | null | src/Interface/Windows/IterWindow.cpp | kSzmit/Private-Apps | 978b620bfda0b87abb4c6009bbc53fbec9164b58 | [
"Apache-2.0"
] | null | null | null | src/Interface/Windows/IterWindow.cpp | kSzmit/Private-Apps | 978b620bfda0b87abb4c6009bbc53fbec9164b58 | [
"Apache-2.0"
] | null | null | null | #include "IterWindow.hpp"
IterWindow::IterWindow(){
}
IterWindow::IterWindow(int min, int max, int step){
m_window = sfg::Window::Create();
m_window->SetTitle("Ustawienia");
m_box = sfg::Box::Create(sfg::Box::Orientation::VERTICAL, 10.f);
m_labelIter = sfg::Label::Create("Iteracja");
m_buttonIter = sfg::SpinBut... | 21.615385 | 65 | 0.714116 | kSzmit |
003d0ad83ef17990da0ea8a0373af7e560f03d44 | 281 | hpp | C++ | src/resources.hpp | Eae02/space-game | d3a4589f137a1485320fc2cd3485bff7c3afcd49 | [
"Zlib"
] | null | null | null | src/resources.hpp | Eae02/space-game | d3a4589f137a1485320fc2cd3485bff7c3afcd49 | [
"Zlib"
] | null | null | null | src/resources.hpp | Eae02/space-game | d3a4589f137a1485320fc2cd3485bff7c3afcd49 | [
"Zlib"
] | null | null | null | #pragma once
#include "graphics/texture.hpp"
#include "graphics/model.hpp"
namespace res {
extern Model shipModel;
extern Texture shipAlbedo;
extern Texture shipNormals;
extern Texture asteroidAlbedo;
extern Texture asteroidNormals;
extern GLuint skybox;
void load();
}
| 17.5625 | 32 | 0.775801 | Eae02 |
003d497a278b37b0177d55bbeecd95fede490228 | 1,486 | cpp | C++ | source_code/system_sys/source_code/gui/Sys_Member_String_BaseWid.cpp | dabachma/ProMaIDes_src | 3fa6263c46f89abbdb407f2e1643843d54eb6ccc | [
"BSD-3-Clause"
] | null | null | null | source_code/system_sys/source_code/gui/Sys_Member_String_BaseWid.cpp | dabachma/ProMaIDes_src | 3fa6263c46f89abbdb407f2e1643843d54eb6ccc | [
"BSD-3-Clause"
] | null | null | null | source_code/system_sys/source_code/gui/Sys_Member_String_BaseWid.cpp | dabachma/ProMaIDes_src | 3fa6263c46f89abbdb407f2e1643843d54eb6ccc | [
"BSD-3-Clause"
] | null | null | null | //#include "Sys_Member_String_BaseWid.h"
#include "Sys_Headers_Precompiled.h"
//Default Constructor
Sys_Member_String_BaseWid::Sys_Member_String_BaseWid(QWidget *parent) : QWidget(parent) {
//Qt Stuff
this->setupUi(this);
//SELF
this->set_editable(false);
this->set_text(" - ");
//count the memory
Sys_Memory_... | 27.518519 | 102 | 0.775908 | dabachma |
0041f63238ac934ae62e914530a19679e5a17cf4 | 4,347 | cpp | C++ | common/net_asio/test_message.cpp | david-pp/tinyworld | 11358fe35e9e2c600a6275a2e51fed61a6e93f73 | [
"MIT"
] | 4 | 2017-01-03T11:50:51.000Z | 2021-05-07T06:45:35.000Z | common/net_asio/test_message.cpp | david-pp/tinyworld-servers | 11358fe35e9e2c600a6275a2e51fed61a6e93f73 | [
"MIT"
] | null | null | null | common/net_asio/test_message.cpp | david-pp/tinyworld-servers | 11358fe35e9e2c600a6275a2e51fed61a6e93f73 | [
"MIT"
] | 1 | 2017-02-15T06:27:52.000Z | 2017-02-15T06:27:52.000Z | #include <iostream>
#include "message.h"
#include "message_dispatcher.h"
#include "protos/account.pb.h"
void onRegisterWithNamePasswordVoid()
{
std::cout << __PRETTY_FUNCTION__ << std::endl;
}
void onRegisterWithNamePassword(Cmd::Account::RegisterWithNamePasswordRequest* msg)
{
std::cout << __PRETTY_FUNCTION__ << ... | 31.05 | 141 | 0.715896 | david-pp |
004e8c905d4358a602cf877d854a5c19335fbdfb | 100 | hpp | C++ | Lab2/src/Equation/linear.hpp | ChernichenkoStephan/ProductionPractices | c3bd544d0cac56a801923e705a685fd2f9fcf247 | [
"MIT"
] | null | null | null | Lab2/src/Equation/linear.hpp | ChernichenkoStephan/ProductionPractices | c3bd544d0cac56a801923e705a685fd2f9fcf247 | [
"MIT"
] | null | null | null | Lab2/src/Equation/linear.hpp | ChernichenkoStephan/ProductionPractices | c3bd544d0cac56a801923e705a685fd2f9fcf247 | [
"MIT"
] | null | null | null | #pragma once
std::string solve_linear(double a, double b, double c, double d, double e, double f);
| 25 | 85 | 0.73 | ChernichenkoStephan |
0052d733ad065a21db0a716dff2334239324681c | 1,150 | cpp | C++ | src/generated/ldb_animationcelldata.cpp | Albeleon/liblcf | d9dd24d0026b3ab36adb291d205c405122a4332c | [
"MIT"
] | null | null | null | src/generated/ldb_animationcelldata.cpp | Albeleon/liblcf | d9dd24d0026b3ab36adb291d205c405122a4332c | [
"MIT"
] | null | null | null | src/generated/ldb_animationcelldata.cpp | Albeleon/liblcf | d9dd24d0026b3ab36adb291d205c405122a4332c | [
"MIT"
] | null | null | null | /* !!!! GENERATED FILE - DO NOT EDIT !!!!
* --------------------------------------
*
* This file is part of liblcf. Copyright (c) 2017 liblcf authors.
* https://github.com/EasyRPG/liblcf - https://easyrpg.org
*
* liblcf is Free/Libre Open Source Software, released under the MIT License.
* For the full copyright ... | 31.081081 | 77 | 0.761739 | Albeleon |
005331f15337f617e905091e4017714fb9ff3a30 | 2,030 | cpp | C++ | test/zoneserver.test/ObserverTest.cpp | mark-online/server | ca24898e2e5a9ccbaa11ef1ade57bb25260b717f | [
"MIT"
] | null | null | null | test/zoneserver.test/ObserverTest.cpp | mark-online/server | ca24898e2e5a9ccbaa11ef1ade57bb25260b717f | [
"MIT"
] | null | null | null | test/zoneserver.test/ObserverTest.cpp | mark-online/server | ca24898e2e5a9ccbaa11ef1ade57bb25260b717f | [
"MIT"
] | null | null | null | #include "ZoneServerTestPCH.h"
#include "GameTestFixture.h"
#include "MockPlayerController.h"
#include "MockPlayerCastController.h"
#include "ZoneServer/model/gameobject/Player.h"
#include <gideon/servertest/datatable/MockSkillTable.h>
/**
* @class ObserverTest
*
* 관찰자 관련 테스트
*/
class ObserverTest : public GameTestFix... | 33.833333 | 107 | 0.76601 | mark-online |
0059564ae1a0c3043dc68a9821a0db59f7f63df2 | 1,395 | cpp | C++ | src/qt/votemodel.cpp | coinkeeper/2015-04-19_21-21_mozzshare | 352d3cc8689873e479a57404e8e826b86239fb19 | [
"MIT"
] | 5 | 2015-02-11T17:26:13.000Z | 2020-12-30T01:55:35.000Z | src/qt/votemodel.cpp | coinkeeper/2015-04-19_21-21_mozzshare | 352d3cc8689873e479a57404e8e826b86239fb19 | [
"MIT"
] | null | null | null | src/qt/votemodel.cpp | coinkeeper/2015-04-19_21-21_mozzshare | 352d3cc8689873e479a57404e8e826b86239fb19 | [
"MIT"
] | 10 | 2015-02-11T17:26:17.000Z | 2021-12-07T04:23:17.000Z | #include <QTimer>
#include "votemodel.h"
VoteModel::VoteModel(CVote *cvote, QObject *parent)
{
_cvote = cvote;
_current = 0;
_next = 0;
_vote = 0;
_when = "";
_count = 0;
_limit = 0;
_timer = new QTimer(this);
connect(_timer, SIGNAL(timeout()), this, SLOT(checkVoteChanged()));
... | 29.0625 | 71 | 0.556989 | coinkeeper |
005bf376548793c12bd478f36c873be4964b9c85 | 613 | cpp | C++ | src/input/keyboard/keyboard_manager.cpp | hexoctal/zenith | eeef065ed62f35723da87c8e73a6716e50d34060 | [
"MIT"
] | 2 | 2021-03-18T16:25:04.000Z | 2021-11-13T00:29:27.000Z | src/input/keyboard/keyboard_manager.cpp | hexoctal/zenith | eeef065ed62f35723da87c8e73a6716e50d34060 | [
"MIT"
] | null | null | null | src/input/keyboard/keyboard_manager.cpp | hexoctal/zenith | eeef065ed62f35723da87c8e73a6716e50d34060 | [
"MIT"
] | 1 | 2021-11-13T00:29:30.000Z | 2021-11-13T00:29:30.000Z | /**
* @file
* @author __AUTHOR_NAME__ <mail@host.com>
* @copyright 2021 __COMPANY_LTD__
* @license <a href="https://opensource.org/licenses/MIT">MIT License</a>
*/
#include "keyboard_manager.hpp"
#include "../input_manager.hpp"
namespace Zen {
extern InputManager g_input;
void KeyboardManager::boot ()
{
ena... | 16.567568 | 74 | 0.701468 | hexoctal |
005e2aa21a387e8120095f29796c1673c535dde4 | 1,082 | cpp | C++ | OCR/FeatureExtractor.cpp | liuouya/basicOCR | 99940949db010839ca42c4e5dad07dd9cf611e64 | [
"MIT"
] | null | null | null | OCR/FeatureExtractor.cpp | liuouya/basicOCR | 99940949db010839ca42c4e5dad07dd9cf611e64 | [
"MIT"
] | null | null | null | OCR/FeatureExtractor.cpp | liuouya/basicOCR | 99940949db010839ca42c4e5dad07dd9cf611e64 | [
"MIT"
] | null | null | null | #include <iostream>
#include <opencv2/imgproc.hpp>
#include "FeatureExtractor.hpp"
FeatureExtractor::FeatureExtractor()
: features_{ cv::Mat(1, s_hu_moments_, CV_32F),
cv::Mat(1, s_colour_count_, CV_32F),
cv::Mat(1, s_pixels_, CV_32F) },
features_all_(),
f_weights_(cv::Mat::ones(0, FeatureExtractor:... | 25.162791 | 67 | 0.700555 | liuouya |
005fc7038dfe4c91d130d2975642655a105b2672 | 2,597 | cpp | C++ | Graphs/Tree/HLD.cpp | NhatMinh0208/CP-Library | 4d174b01a569106d2d7ad0fa5e3594175e97de31 | [
"MIT"
] | null | null | null | Graphs/Tree/HLD.cpp | NhatMinh0208/CP-Library | 4d174b01a569106d2d7ad0fa5e3594175e97de31 | [
"MIT"
] | null | null | null | Graphs/Tree/HLD.cpp | NhatMinh0208/CP-Library | 4d174b01a569106d2d7ad0fa5e3594175e97de31 | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
using namespace std;
#include <ext/pb_ds/assoc_container.hpp>
#include <ext/pb_ds/tree_policy.hpp>
using namespace __gnu_pbds;
#define rep(i,n) for(int64_t i=0;i < (int64_t)(n);i++)
#pragma comment(linker, "/stack:200000000")
#pragma GCC optimize("Ofast")
#pragma GCC target("sse,sse2,sse3,ssse3... | 27.62766 | 97 | 0.576049 | NhatMinh0208 |
0063d1a9868a50e70b8ae37fe252ae0d39d3e2ef | 6,685 | cc | C++ | cc/subtle/pem_parser_boringssl.cc | juliettepretot/tink | fef86c2ea6f8d7da885ea7870b9e9e0013673ef2 | [
"Apache-2.0"
] | null | null | null | cc/subtle/pem_parser_boringssl.cc | juliettepretot/tink | fef86c2ea6f8d7da885ea7870b9e9e0013673ef2 | [
"Apache-2.0"
] | null | null | null | cc/subtle/pem_parser_boringssl.cc | juliettepretot/tink | fef86c2ea6f8d7da885ea7870b9e9e0013673ef2 | [
"Apache-2.0"
] | null | null | null | // Copyright 2018 Google 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 agreed to in ... | 36.530055 | 79 | 0.698579 | juliettepretot |
006924b3540a15015746b5b188e29d41b7e2da76 | 1,006 | cpp | C++ | aws-cpp-sdk-chime-sdk-messaging/source/model/GetChannelMessageResult.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-chime-sdk-messaging/source/model/GetChannelMessageResult.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-chime-sdk-messaging/source/model/GetChannelMessageResult.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/chime-sdk-messaging/model/GetChannelMessageResult.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <aws/core/AmazonWebServiceResult.h>
#include <aws/core/utils/StringUtils.h>
... | 24.536585 | 114 | 0.771372 | perfectrecall |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.