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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
00b00e288d0217c581f983e746337418a3c1d3e3 | 1,958 | hpp | C++ | include/depthai_driver/utils.hpp | Serafadam/depthai_driver | b4e2006716a97e7699ce735080a0946fc678fa7b | [
"MIT"
] | 3 | 2022-02-17T12:56:14.000Z | 2022-03-20T18:02:19.000Z | include/depthai_driver/utils.hpp | Serafadam/depthai_driver | b4e2006716a97e7699ce735080a0946fc678fa7b | [
"MIT"
] | null | null | null | include/depthai_driver/utils.hpp | Serafadam/depthai_driver | b4e2006716a97e7699ce735080a0946fc678fa7b | [
"MIT"
] | null | null | null | // Copyright (c) [2022] [Adam Serafin]
// 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... | 36.943396 | 80 | 0.769152 | Serafadam |
00b730d4d350dcdac339c239441f8754c0426984 | 69,107 | cpp | C++ | src/tests/blueprint/t_blueprint_mesh_partition.cpp | nselliott/conduit | 7639483138e4bf9d6ff14d3c9936ea3d427ce965 | [
"BSD-3-Clause"
] | null | null | null | src/tests/blueprint/t_blueprint_mesh_partition.cpp | nselliott/conduit | 7639483138e4bf9d6ff14d3c9936ea3d427ce965 | [
"BSD-3-Clause"
] | null | null | null | src/tests/blueprint/t_blueprint_mesh_partition.cpp | nselliott/conduit | 7639483138e4bf9d6ff14d3c9936ea3d427ce965 | [
"BSD-3-Clause"
] | null | null | null | // Copyright (c) Lawrence Livermore National Security, LLC and other Conduit
// Project developers. See top-level LICENSE AND COPYRIGHT files for dates and
// other details. No copyright assignment is required to contribute to Conduit.
//-----------------------------------------------------------------------------
///... | 34.484531 | 121 | 0.549959 | nselliott |
00baa275ea0c3b41bb3e1266c6aecf59fd610f87 | 912 | cpp | C++ | Engine Round 2/PanelTime.cpp | dafral/Round2_Engine | 23c0b3a5661fa4902acdd7e953f8f168a7f87922 | [
"MIT"
] | 1 | 2019-04-28T12:08:54.000Z | 2019-04-28T12:08:54.000Z | Engine Round 2/PanelTime.cpp | dafral/Round2_Engine | 23c0b3a5661fa4902acdd7e953f8f168a7f87922 | [
"MIT"
] | null | null | null | Engine Round 2/PanelTime.cpp | dafral/Round2_Engine | 23c0b3a5661fa4902acdd7e953f8f168a7f87922 | [
"MIT"
] | null | null | null | #include "Application.h"
#include "PanelTime.h"
#include "ModuleScene.h"
PanelTime::PanelTime(bool active = true) : Panel(active)
{}
PanelTime::~PanelTime()
{}
void PanelTime::Init()
{}
void PanelTime::Draw()
{
if (ImGui::Begin("Time Manager", 0, ImGuiWindowFlags_AlwaysAutoResize | ImGuiWindowFlags_NoTitleBar))
{... | 17.538462 | 102 | 0.651316 | dafral |
00c264b2bafac69d0e1776fb84850e93087495f2 | 1,306 | hpp | C++ | CPP_Module_03/ex02/FragTrap.hpp | Victor-Akio/CPP-42 | e6d64e4820ad31ae2cb353a4020d2acb8b5280eb | [
"MIT"
] | null | null | null | CPP_Module_03/ex02/FragTrap.hpp | Victor-Akio/CPP-42 | e6d64e4820ad31ae2cb353a4020d2acb8b5280eb | [
"MIT"
] | null | null | null | CPP_Module_03/ex02/FragTrap.hpp | Victor-Akio/CPP-42 | e6d64e4820ad31ae2cb353a4020d2acb8b5280eb | [
"MIT"
] | null | null | null | /* ************************************************************************** */
/* */
/* ::: :::::::: */
/* FragTrap.hpp :+: :+: :+: ... | 40.8125 | 80 | 0.31317 | Victor-Akio |
00c327ba425f78234cde5b45f0697ad9de7a8cc0 | 2,450 | cpp | C++ | Burnout_2.0/src/Burnout/Cameras/OrthographicCameraController.cpp | EsasHG/Burnout_2.0 | 66f4d1d98d2123af6cb58d5c432499c25a644669 | [
"MIT"
] | null | null | null | Burnout_2.0/src/Burnout/Cameras/OrthographicCameraController.cpp | EsasHG/Burnout_2.0 | 66f4d1d98d2123af6cb58d5c432499c25a644669 | [
"MIT"
] | null | null | null | Burnout_2.0/src/Burnout/Cameras/OrthographicCameraController.cpp | EsasHG/Burnout_2.0 | 66f4d1d98d2123af6cb58d5c432499c25a644669 | [
"MIT"
] | null | null | null | #include "bopch.h"
#include "OrthographicCameraController.h"
#include "Burnout/Core/Input.h"
#include "Burnout/Core/KeyCodes.h"
#include <glm/ext/matrix_clip_space.hpp>
#include <glm/ext/matrix_transform.hpp>
namespace Burnout
{
OrthographicCameraController::OrthographicCameraController(float aspectRatio, bool all... | 35 | 130 | 0.731429 | EsasHG |
00c3854e15e9deccade38ce3c54bc6f8db9f0621 | 175 | cpp | C++ | c++pointers/reference.cpp | FirdausJawed/DSA | caf72a4606746009bc4616bfe11cdcb6ca103dcd | [
"MIT"
] | 2 | 2021-08-31T11:20:29.000Z | 2021-09-05T10:51:36.000Z | c++pointers/reference.cpp | FirdausJawed/DSA | caf72a4606746009bc4616bfe11cdcb6ca103dcd | [
"MIT"
] | null | null | null | c++pointers/reference.cpp | FirdausJawed/DSA | caf72a4606746009bc4616bfe11cdcb6ca103dcd | [
"MIT"
] | 1 | 2021-09-01T14:30:49.000Z | 2021-09-01T14:30:49.000Z | #include<iostream>
using namespace std;
int main (){
int x = 10;
int &y=x;
cout<<&x<<" "<<&y;
x++;
y++;
cout<<x<<endl;
return 0;
} | 11.666667 | 22 | 0.422857 | FirdausJawed |
00c4ea161bb2ef44be141e1470dcc56067f7969d | 1,409 | hpp | C++ | include/MazeDisplay.hpp | jackred/CW_GameProgramming | 52905249a2c194b1bc02ddb0d82535f46d0b96f4 | [
"MIT"
] | null | null | null | include/MazeDisplay.hpp | jackred/CW_GameProgramming | 52905249a2c194b1bc02ddb0d82535f46d0b96f4 | [
"MIT"
] | null | null | null | include/MazeDisplay.hpp | jackred/CW_GameProgramming | 52905249a2c194b1bc02ddb0d82535f46d0b96f4 | [
"MIT"
] | 1 | 2020-02-20T19:32:39.000Z | 2020-02-20T19:32:39.000Z | //
// Created by Timothée Couble on 19/10/2019.
//
#ifndef MAZE_DISPLAY_HPP
# define MAZE_DISPLAY_HPP
#include <iostream>
#include <vector>
#include "glm/glm.hpp"
#include "Maze.hpp"
#include "Intersect.hpp"
#include "Wall.hpp"
#include "Instance.hpp"
namespace scene {
class MazeDisplay {
const unsig... | 24.719298 | 87 | 0.64088 | jackred |
00c582c8feee7ebf8c7440dc72d196b395fef03b | 2,647 | cpp | C++ | micropython/modules/picosystem/buffer.cpp | Fordi/picosystem | 6b91ad198b00507a7ff780a86ce5a2be2f650a07 | [
"MIT"
] | 41 | 2021-10-06T20:29:27.000Z | 2022-03-28T10:45:46.000Z | micropython/modules/picosystem/buffer.cpp | Fordi/picosystem | 6b91ad198b00507a7ff780a86ce5a2be2f650a07 | [
"MIT"
] | 21 | 2021-10-08T05:41:54.000Z | 2022-02-16T11:25:37.000Z | micropython/modules/picosystem/buffer.cpp | Fordi/picosystem | 6b91ad198b00507a7ff780a86ce5a2be2f650a07 | [
"MIT"
] | 15 | 2021-10-03T13:52:31.000Z | 2022-03-13T06:30:42.000Z | #include "hardware/spi.h"
#include "hardware/sync.h"
#include "pico/binary_info.h"
#include "libraries/picosystem.hpp"
#define MP_OBJ_TO_PTR2(o, t) ((t *)(uintptr_t)(o))
using namespace picosystem;
extern "C" {
#include "picosystem.h"
#include "math.h"
#include "cstring"
typedef struct _PicosystemBuffer_obj_t {
... | 31.891566 | 117 | 0.701549 | Fordi |
00c98c3a083b0ae30f967edacedd5b2c8ccf75d7 | 627 | hpp | C++ | pythran/pythonic/__builtin__/list/reverse.hpp | xmar/pythran | dbf2e8b70ed1e4d4ac6b5f26ead4add940a72592 | [
"BSD-3-Clause"
] | null | null | null | pythran/pythonic/__builtin__/list/reverse.hpp | xmar/pythran | dbf2e8b70ed1e4d4ac6b5f26ead4add940a72592 | [
"BSD-3-Clause"
] | null | null | null | pythran/pythonic/__builtin__/list/reverse.hpp | xmar/pythran | dbf2e8b70ed1e4d4ac6b5f26ead4add940a72592 | [
"BSD-3-Clause"
] | null | null | null | #ifndef PYTHONIC_BUILTIN_LIST_REVERSE_HPP
#define PYTHONIC_BUILTIN_LIST_REVERSE_HPP
#include "pythonic/include/__builtin__/list/reverse.hpp"
#include "pythonic/__builtin__/None.hpp"
#include "pythonic/types/list.hpp"
#include "pythonic/types/NoneType.hpp"
#include "pythonic/utils/functor.hpp"
namespace pythonic
{
... | 19.59375 | 59 | 0.698565 | xmar |
00ca6a7f018a1892849d3be060c915926b2bdee6 | 3,034 | hpp | C++ | include/Module/Channel/Channel.hpp | FredrikBlomgren/aff3ct | fa616bd923b2dcf03a4cf119cceca51cf810d483 | [
"MIT"
] | 315 | 2016-06-21T13:32:14.000Z | 2022-03-28T09:33:59.000Z | include/Module/Channel/Channel.hpp | a-panella/aff3ct | 61509eb756ae3725b8a67c2d26a5af5ba95186fb | [
"MIT"
] | 153 | 2017-01-17T03:51:06.000Z | 2022-03-24T15:39:26.000Z | include/Module/Channel/Channel.hpp | a-panella/aff3ct | 61509eb756ae3725b8a67c2d26a5af5ba95186fb | [
"MIT"
] | 119 | 2017-01-04T14:31:58.000Z | 2022-03-21T08:34:16.000Z | /*!
* \file
* \brief Class module::Channel.
*/
#ifndef CHANNEL_HPP_
#define CHANNEL_HPP_
#include <cstdint>
#include <cstddef>
#include <vector>
#include <memory>
#include "Tools/Interface/Interface_set_seed.hpp"
#include "Tools/Noise/Noise.hpp"
#include "Module/Task.hpp"
#include "Module/Socket.hpp"
#include "Mod... | 25.931624 | 114 | 0.670073 | FredrikBlomgren |
00cf7892057bb3febaf0d0617d8146954cd5a84f | 303 | cpp | C++ | age_child_or_adult.cpp | lionkor/cpp-examples | 6458ab8b1ae383215e4a2148e427bccbf7e27e41 | [
"MIT"
] | null | null | null | age_child_or_adult.cpp | lionkor/cpp-examples | 6458ab8b1ae383215e4a2148e427bccbf7e27e41 | [
"MIT"
] | null | null | null | age_child_or_adult.cpp | lionkor/cpp-examples | 6458ab8b1ae383215e4a2148e427bccbf7e27e41 | [
"MIT"
] | null | null | null | #include <iostream>
int main() {
std::cout << "Enter your age: ";
// unsigned ensures that it's >0
unsigned int age = 0;
std::cin >> age;
if (age < 18) {
std::cout << "You're a child!" << std::endl;
} else {
std::cout << "You're an adult!" << std::endl;
}
}
| 21.642857 | 53 | 0.49505 | lionkor |
00d2a38467017ae407bdbd230854be7fea098c08 | 1,475 | hpp | C++ | SimpleDB/src/core/sql/table_constraint.hpp | caivao/SimpleDB | ff90245c5ffc96ea84cf046596d690866c1c8cb6 | [
"MIT"
] | 1 | 2021-01-05T17:01:31.000Z | 2021-01-05T17:01:31.000Z | SimpleDB/src/core/sql/table_constraint.hpp | caivao/SimpleDB | ff90245c5ffc96ea84cf046596d690866c1c8cb6 | [
"MIT"
] | null | null | null | SimpleDB/src/core/sql/table_constraint.hpp | caivao/SimpleDB | ff90245c5ffc96ea84cf046596d690866c1c8cb6 | [
"MIT"
] | null | null | null | //
// table_constraint.hpp
// SimpleDB
//
// Created by lifeng on 2019/6/13.
// Copyright © 2019 feng. All rights reserved.
//
#ifndef table_constraint_hpp
#define table_constraint_hpp
#include "declare.hpp"
#include "describable.hpp"
#include "column_index.hpp"
#include "conflict.hpp"
namespace SDB {
c... | 27.314815 | 71 | 0.618305 | caivao |
00dba4f61a916ed9458d9523e4042ed177e3e0fd | 4,737 | cpp | C++ | engine/private/asset-types/sprite.cpp | cppcooper/Cheryl-Engine | 9a0b08da46539f756c6fe7d70212e9ca91c6fbe7 | [
"MIT"
] | null | null | null | engine/private/asset-types/sprite.cpp | cppcooper/Cheryl-Engine | 9a0b08da46539f756c6fe7d70212e9ca91c6fbe7 | [
"MIT"
] | 1 | 2019-01-22T22:07:27.000Z | 2019-01-22T22:07:27.000Z | engine/private/asset-types/sprite.cpp | cppcooper/cheryl-engine | 9a0b08da46539f756c6fe7d70212e9ca91c6fbe7 | [
"MIT"
] | null | null | null | #include "../Sprite.h"
#include "../../InterAccess.h"
#include "../../Components/Factory.h"
#include "../../Components/AssetMgr.h"
#include "2dtools.h"
using namespace GameAssets;
SpriteFrame::SpriteFrame( GLSLProgram* &glslp, Texture* &tex, GLuint &vao, GLuint &vbo, float& global_scale, float& global_alpha, uint32_t... | 29.06135 | 245 | 0.550559 | cppcooper |
00dc5f8f812806d63f4767a3b182d3492ca936c6 | 11,416 | cpp | C++ | Ouroboros/Source/oGUI/tests/TESTWindowSysDialog.cpp | igHunterKiller/ouroboros | 5e2cde7e6365341da297da10d8927b091ecf5559 | [
"MIT"
] | null | null | null | Ouroboros/Source/oGUI/tests/TESTWindowSysDialog.cpp | igHunterKiller/ouroboros | 5e2cde7e6365341da297da10d8927b091ecf5559 | [
"MIT"
] | null | null | null | Ouroboros/Source/oGUI/tests/TESTWindowSysDialog.cpp | igHunterKiller/ouroboros | 5e2cde7e6365341da297da10d8927b091ecf5559 | [
"MIT"
] | null | null | null | // Copyright (c) 2016 Antony Arciuolo. See License.txt regarding use.
#include <oBase/unit_test.h>
#include <oCore/countof.h>
#include <oGUI/Windows/oWinRect.h>
#include <oGUI/window.h>
#include <oGUI/Windows/oWinControlSet.h>
#include <oGUI/Windows/win_gdi_draw.h>
#include <oSystem/filesystem.h>
#include <oSystem/sy... | 26.798122 | 225 | 0.752453 | igHunterKiller |
00de455da5b2fa27a42bef04ce33b3058cf810e2 | 2,382 | cpp | C++ | Source/Voxel/Private/VoxelWorldGenerators/NoiseWorldGenerator.cpp | nwiswakarma/Voxel | cd53ef8c85c84c465ad771efefeeb539258c6b02 | [
"MIT"
] | 5 | 2020-05-28T00:29:22.000Z | 2021-04-15T11:14:39.000Z | Source/Voxel/Private/VoxelWorldGenerators/NoiseWorldGenerator.cpp | nwiswakarma/Voxel | cd53ef8c85c84c465ad771efefeeb539258c6b02 | [
"MIT"
] | null | null | null | Source/Voxel/Private/VoxelWorldGenerators/NoiseWorldGenerator.cpp | nwiswakarma/Voxel | cd53ef8c85c84c465ad771efefeeb539258c6b02 | [
"MIT"
] | 1 | 2020-05-28T00:32:25.000Z | 2020-05-28T00:32:25.000Z | // Copyright 2017 Phyronnaz
#pragma once
#include "NoiseWorldGenerator.h"
UNoiseWorldGenerator::UNoiseWorldGenerator()
: Noise()
{
}
void UNoiseWorldGenerator::GetValuesAndMaterials(float Values[], FVoxelMaterial Materials[], const FIntVector& Start, const FIntVector& StartIndex, const int Step, const FIntVector& ... | 22.903846 | 222 | 0.552477 | nwiswakarma |
00dee96a431049891a20b7c13aded9d929aba961 | 1,075 | cpp | C++ | tst/math/prime_factors_test.cpp | LesnyRumcajs/ModernCppChallenge | 175601d4c3d3ae88240c190c891261696f777ef1 | [
"MIT"
] | 5 | 2021-05-28T22:40:49.000Z | 2022-03-11T20:48:38.000Z | tst/math/prime_factors_test.cpp | LesnyRumcajs/ModernCppChallenge | 175601d4c3d3ae88240c190c891261696f777ef1 | [
"MIT"
] | 3 | 2018-10-29T21:56:12.000Z | 2019-10-13T17:04:06.000Z | tst/math/prime_factors_test.cpp | LesnyRumcajs/ModernCppChallenge | 175601d4c3d3ae88240c190c891261696f777ef1 | [
"MIT"
] | null | null | null | #include <gtest/gtest.h>
#include <gmock/gmock.h>
#include "../../src/math/prime_factors.h"
namespace {
using namespace testing;
TEST(GetPrimeFactorsTest, GivenZeroOrOneShouldReturnEmpty) {
ASSERT_THAT(cppchallenge::math::get_prime_factors(0), IsEmpty());
ASSERT_THAT(cppchallenge::math::get_p... | 39.814815 | 85 | 0.71814 | LesnyRumcajs |
00df49f99abed36021c129627e670180ba7ce1ed | 13,581 | cpp | C++ | SampleCode/QuoteVerificationSample/App/App.cpp | jvega10/SGXDataCenterAttestationPrimitives | c9b707408d14fc1f1dcc519950bafb8bc58f0f42 | [
"BSD-3-Clause"
] | 1 | 2019-04-25T23:36:10.000Z | 2019-04-25T23:36:10.000Z | SampleCode/QuoteVerificationSample/App/App.cpp | xiangquanliu/SGXDataCenterAttestationPrimitives | 8734e2c5aa02979b9b9a794510a8361712de4203 | [
"BSD-3-Clause"
] | null | null | null | SampleCode/QuoteVerificationSample/App/App.cpp | xiangquanliu/SGXDataCenterAttestationPrimitives | 8734e2c5aa02979b9b9a794510a8361712de4203 | [
"BSD-3-Clause"
] | 2 | 2020-12-08T14:24:32.000Z | 2022-03-28T03:28:03.000Z | /*
* Copyright (C) 2011-2020 Intel Corporation. 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 li... | 36.508065 | 210 | 0.658346 | jvega10 |
00ec6880539fef4b87ec41dcaf31a33986a96d09 | 959 | hpp | C++ | source-sdk/misc/color.hpp | Doodoocaca/csgo-cheat-base | 0e9fbca42186a7563af4e8852e585af603c4ff02 | [
"MIT"
] | 220 | 2019-10-27T14:06:16.000Z | 2022-03-31T06:05:19.000Z | source-sdk/misc/color.hpp | Doodoocaca/csgo-cheat-base | 0e9fbca42186a7563af4e8852e585af603c4ff02 | [
"MIT"
] | 98 | 2019-11-04T15:57:12.000Z | 2022-03-30T03:38:31.000Z | source-sdk/misc/color.hpp | Doodoocaca/csgo-cheat-base | 0e9fbca42186a7563af4e8852e585af603c4ff02 | [
"MIT"
] | 136 | 2019-10-27T15:43:12.000Z | 2022-03-28T19:22:43.000Z | #pragma once
#include <cstdint>
#include <d3d9.h>
struct color {
int a, r, g, b;
color( ) = default;
color( const int r, const int g, const int b, const int a = 255 ) {
this->r = r;
this->g = g;
this->b = b;
this->a = a;
}
explicit color( const uint32_t color ) {
this->a = ( color >> 24 ) & 0xff;
thi... | 26.638889 | 73 | 0.572471 | Doodoocaca |
00edcbb01335b411a9ba4055e995c2f854ce6e10 | 3,068 | cpp | C++ | Archer Loader/DynamicImage.cpp | juozuxp/Archer-Loader | a4451ddbc450f5ae09ede7171ca6093835c4a9e5 | [
"MIT"
] | null | null | null | Archer Loader/DynamicImage.cpp | juozuxp/Archer-Loader | a4451ddbc450f5ae09ede7171ca6093835c4a9e5 | [
"MIT"
] | null | null | null | Archer Loader/DynamicImage.cpp | juozuxp/Archer-Loader | a4451ddbc450f5ae09ede7171ca6093835c4a9e5 | [
"MIT"
] | null | null | null | #include "DynamicImage.h"
#include "ClientManager.h"
#ifndef _DEBUG
#include <ThemidaSDK.h>
#endif
DynamicImage::~DynamicImage()
{
if (this->ImageBuffer)
free(this->ImageBuffer);
}
DynamicImage::DynamicImage(const DynamicImage& Copy)
{
this->ImageSize = Copy.ImageSize;
this->FragmentSize = Copy.FragmentSize;
t... | 20.870748 | 213 | 0.719361 | juozuxp |
00ef83b0028ed0e9c5562d548a15057637092ebb | 773 | cpp | C++ | .Kattis/trick/trick/trick.cpp | sxweetlollipop2912/MaCode | 661d77a2096e4d772fda2b6a7f80c84113b2cde9 | [
"MIT"
] | null | null | null | .Kattis/trick/trick/trick.cpp | sxweetlollipop2912/MaCode | 661d77a2096e4d772fda2b6a7f80c84113b2cde9 | [
"MIT"
] | null | null | null | .Kattis/trick/trick/trick.cpp | sxweetlollipop2912/MaCode | 661d77a2096e4d772fda2b6a7f80c84113b2cde9 | [
"MIT"
] | null | null | null | #include <iostream>
#include <algorithm>
#include <vector>
#include <math.h>
typedef long maxa;
typedef double maxx;
maxx x, f[8];
std::vector <maxa> res;
void Prepare() {
std::cin >> x;
f[0] = 1;
for (int i = 1; i < 8; i++) f[i] = 10 * f[i - 1];
}
void Gen(const int len) {
for (maxx a = 1; a < 10; a++) {
m... | 17.568182 | 72 | 0.534282 | sxweetlollipop2912 |
00f5a46c812f3a7674400f9c5d2098fb564a2aae | 11,724 | cpp | C++ | LightAndDarkness/LightAndDarkness/Player.cpp | McCampins/LightAndDarkness | 3d1ab368df359d5ca294fcc2b4b8a2d54a1a6430 | [
"Apache-2.0"
] | null | null | null | LightAndDarkness/LightAndDarkness/Player.cpp | McCampins/LightAndDarkness | 3d1ab368df359d5ca294fcc2b4b8a2d54a1a6430 | [
"Apache-2.0"
] | null | null | null | LightAndDarkness/LightAndDarkness/Player.cpp | McCampins/LightAndDarkness | 3d1ab368df359d5ca294fcc2b4b8a2d54a1a6430 | [
"Apache-2.0"
] | null | null | null | #include <iostream>
#include "World.h"
#include "Player.h"
#include "Globals.h"
#include "Exit.h"
#include "Room.h"
#include "Item.h"
#include "NPC.h"
using namespace std;
Player::Player(const char* name, const char* description, Room* room) :
Creature(name, description, room, "")
{
type = EntityType::PLAYER;
}
... | 21.832402 | 150 | 0.557404 | McCampins |
2e006c7e19ce3d48951af45e1a78fa41d3f166bc | 7,352 | cpp | C++ | libs/vision/src/faster/faster_corner_12.cpp | tg1716/SLAM | b8583fb98a4241d87ae08ac78b0420c154f5e1a5 | [
"BSD-3-Clause"
] | 4 | 2017-08-04T15:44:04.000Z | 2021-02-02T02:00:18.000Z | libs/vision/src/faster/faster_corner_12.cpp | tg1716/SLAM | b8583fb98a4241d87ae08ac78b0420c154f5e1a5 | [
"BSD-3-Clause"
] | null | null | null | libs/vision/src/faster/faster_corner_12.cpp | tg1716/SLAM | b8583fb98a4241d87ae08ac78b0420c154f5e1a5 | [
"BSD-3-Clause"
] | 2 | 2017-10-03T23:10:09.000Z | 2018-07-29T09:41:33.000Z | /* +------------------------------------------------------------------------+
| Mobile Robot Programming Toolkit (MRPT) |
| http://www.mrpt.org/ |
| |
| Cop... | 27.848485 | 80 | 0.608134 | tg1716 |
2e02fa00ca698571854a5d72cc37a7a3ab3110ab | 807 | cc | C++ | libs/staging/pattern_generator_instances.cc | dthuerck/culip | b5e9b12e05f535c12229a6ab5a07755b15f5a755 | [
"BSD-3-Clause"
] | 9 | 2018-12-06T10:16:45.000Z | 2021-12-02T15:49:37.000Z | libs/staging/pattern_generator_instances.cc | dthuerck/culip | b5e9b12e05f535c12229a6ab5a07755b15f5a755 | [
"BSD-3-Clause"
] | null | null | null | libs/staging/pattern_generator_instances.cc | dthuerck/culip | b5e9b12e05f535c12229a6ab5a07755b15f5a755 | [
"BSD-3-Clause"
] | 2 | 2019-07-09T12:02:20.000Z | 2021-01-08T09:27:18.000Z | /**
* Copyright (c) 2018, Daniel Thuerck, TU Darmstadt - GCC. All rights reserved.
*
* This software may be modified and distributed under the terms
* of the BSD 3-clause license. See the LICENSE file for details.
*/
#include <libs/staging/pattern_generator.h>
#include <libs/staging/pattern_generator.impl.h>
NS_... | 26.9 | 79 | 0.812887 | dthuerck |
2e046657db6747175f212df7c7a9c090f06357d7 | 935 | hpp | C++ | src/ibeo_8l_sdk/src/ibeosdk/listener/ObjectListLuxListener.hpp | tomcamp0228/ibeo_ros2 | ff56c88d6e82440ae3ce4de08f2745707c354604 | [
"MIT"
] | 1 | 2020-06-19T11:01:49.000Z | 2020-06-19T11:01:49.000Z | include/ibeosdk/listener/ObjectListLuxListener.hpp | chouer19/enjoyDriving | e4a29e6cad7d3b0061d59f584cce7cdea2a55351 | [
"MIT"
] | null | null | null | include/ibeosdk/listener/ObjectListLuxListener.hpp | chouer19/enjoyDriving | e4a29e6cad7d3b0061d59f584cce7cdea2a55351 | [
"MIT"
] | 2 | 2020-06-19T11:01:48.000Z | 2020-10-29T03:07:14.000Z | //======================================================================
/*! \file ObjectListLuxListener.hpp
*
* \copydoc Copyright
* \author Mario Brumm (mb)
* \date Apr 30, 2012
* \deprecated This header is not needed anymore since DataListener
* template is used directly. The file remains for compa... | 32.241379 | 76 | 0.464171 | tomcamp0228 |
2e081cd77b79ca8ded87dec92e46ed27f7bd5d00 | 1,971 | hpp | C++ | sparse/L2/include/hw/loadColPtrValKernel.hpp | Aperture-Electronic/Vitis_Libraries | e178d54f82c90f1a1e47f599f401f8cbf8df86d7 | [
"Apache-2.0"
] | 1 | 2021-05-28T06:37:15.000Z | 2021-05-28T06:37:15.000Z | sparse/L2/include/hw/loadColPtrValKernel.hpp | Aperture-Electronic/Vitis_Libraries | e178d54f82c90f1a1e47f599f401f8cbf8df86d7 | [
"Apache-2.0"
] | null | null | null | sparse/L2/include/hw/loadColPtrValKernel.hpp | Aperture-Electronic/Vitis_Libraries | e178d54f82c90f1a1e47f599f401f8cbf8df86d7 | [
"Apache-2.0"
] | null | null | null | /*
* Copyright 2019 Xilinx, 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... | 40.22449 | 86 | 0.705733 | Aperture-Electronic |
2e0da1625ce6ccd8f0e5a0b782177b96125b0bb3 | 373 | cpp | C++ | 2dArray.cpp | vijayshankarrealdeal/data-structures-c- | bd9fd4d7dd5092da571271b7b4ef71fd697a1dea | [
"MIT"
] | 1 | 2021-05-28T08:30:37.000Z | 2021-05-28T08:30:37.000Z | 2dArray.cpp | vijayshankarrealdeal/data-structures | bd9fd4d7dd5092da571271b7b4ef71fd697a1dea | [
"MIT"
] | null | null | null | 2dArray.cpp | vijayshankarrealdeal/data-structures | bd9fd4d7dd5092da571271b7b4ef71fd697a1dea | [
"MIT"
] | null | null | null | #include<iostream>
///A 2d Array
int main()
{
int array[5][5];
for (int i = 0; i < 5; i++)
{
for (int j = 0;j <5; j++)
{
array[i][j] = rand();
}
}
for (int i = 0;i<5;i++)
{
for (int ij = 0; ij < 5; ij++)
{
std::cout<<array[i][ij];
... | 15.541667 | 38 | 0.324397 | vijayshankarrealdeal |
2e0f530db465375486dd0300e9c29e7d2e16a90c | 797 | cpp | C++ | Atum/SceneObjects/Other/Demo/SimpleClient.cpp | ENgineE777/Atum | 3e9417e2a7deda83bf937612fd070566eb932484 | [
"Zlib"
] | 23 | 2017-11-01T14:47:26.000Z | 2021-12-30T08:04:31.000Z | Atum/SceneObjects/Other/Demo/SimpleClient.cpp | ENgineE777/Atum | 3e9417e2a7deda83bf937612fd070566eb932484 | [
"Zlib"
] | 1 | 2018-12-06T14:19:55.000Z | 2018-12-07T04:06:35.000Z | Atum/SceneObjects/Other/Demo/SimpleClient.cpp | ENgineE777/Atum | 3e9417e2a7deda83bf937612fd070566eb932484 | [
"Zlib"
] | 4 | 2017-11-30T10:25:58.000Z | 2019-04-21T14:11:40.000Z |
#include "SimpleClient.h"
#include "Services/Render/Render.h"
CLASSREG(SceneObject, SimpleClient, "SimpleClient")
META_DATA_DESC(SimpleClient)
BASE_SCENE_OBJ_PROP(SimpleClient)
META_DATA_DESC_END()
Matrix* SimpleClient::Trans()
{
return &transform;
}
bool SimpleClient::Is3DObject()
{
return true;
}
void SimpleC... | 14.759259 | 73 | 0.690088 | ENgineE777 |
2e16a2c6aaee13e4111093eb79011efb3eedb12f | 1,100 | hpp | C++ | include/caffe/internode/communication.hpp | shayanshams66/caffe | 3b031d59cd6a419b433e9fe05c9fe4bfc3060f4e | [
"Intel",
"BSD-2-Clause"
] | 1 | 2017-01-04T03:35:46.000Z | 2017-01-04T03:35:46.000Z | include/caffe/internode/communication.hpp | shayanshams66/caffe | 3b031d59cd6a419b433e9fe05c9fe4bfc3060f4e | [
"Intel",
"BSD-2-Clause"
] | null | null | null | include/caffe/internode/communication.hpp | shayanshams66/caffe | 3b031d59cd6a419b433e9fe05c9fe4bfc3060f4e | [
"Intel",
"BSD-2-Clause"
] | null | null | null | #ifndef CAFFE_INTERNODE_COMMUNICATION_H_
#define CAFFE_INTERNODE_COMMUNICATION_H_
#include <boost/function.hpp>
#include <string>
#include "caffe/blob.hpp"
namespace caffe {
namespace internode {
typedef size_t RemoteId;
class Waypoint {
public:
struct Handler {
virtual void received(char* buffer, size_t siz... | 23.913043 | 77 | 0.740909 | shayanshams66 |
2e18d0ded534f3fbe6a8a0fa8c14e793c952162d | 2,102 | cpp | C++ | main/compilation/variable.cpp | amakuzaze/lizard | 2e53bdd62fd7f0524c15f2787edd8c6ac1079115 | [
"MIT"
] | null | null | null | main/compilation/variable.cpp | amakuzaze/lizard | 2e53bdd62fd7f0524c15f2787edd8c6ac1079115 | [
"MIT"
] | null | null | null | main/compilation/variable.cpp | amakuzaze/lizard | 2e53bdd62fd7f0524c15f2787edd8c6ac1079115 | [
"MIT"
] | 1 | 2022-03-21T08:00:45.000Z | 2022-03-21T08:00:45.000Z | #include "variable.h"
#include "expression.h"
#include <stdexcept>
Variable::Variable(const Type type) : type(type) {
}
void Variable::assign(const ConstExpression_ptr expression) {
if (this->type == boolean && expression->type == boolean) {
this->boolean_value = expression->evaluate_boolean();
} else... | 35.033333 | 82 | 0.673644 | amakuzaze |
2e1cfaa8910e41a81d864744a5abc2b321f23be2 | 2,103 | cpp | C++ | tc 160+/RockStar.cpp | ibudiselic/contest-problem-solutions | 88082981b4d87da843472e3ca9ed5f4c42b3f0aa | [
"BSD-2-Clause"
] | 3 | 2015-05-25T06:24:37.000Z | 2016-09-10T07:58:00.000Z | tc 160+/RockStar.cpp | ibudiselic/contest-problem-solutions | 88082981b4d87da843472e3ca9ed5f4c42b3f0aa | [
"BSD-2-Clause"
] | null | null | null | tc 160+/RockStar.cpp | ibudiselic/contest-problem-solutions | 88082981b4d87da843472e3ca9ed5f4c42b3f0aa | [
"BSD-2-Clause"
] | 5 | 2015-05-25T06:24:40.000Z | 2021-08-19T19:22:29.000Z | #include <algorithm>
#include <cassert>
#include <cstdio>
#include <iostream>
#include <sstream>
#include <string>
#include <vector>
#include <cstring>
using namespace std;
class RockStar {
public:
int getNumSongs(int ff, int fs, int sf, int ss) {
if (ff==0 && fs==0) {
return ss + (sf>0);
} e... | 35.644068 | 309 | 0.568236 | ibudiselic |
2e1d86f6cfa44a40c321b20a65b25e9288af67d7 | 623 | cpp | C++ | CustomMessageException.cpp | wencakisa/Automata | 2b442f5e1d6cc7d7e34686f95845e6c73b10d047 | [
"MIT"
] | null | null | null | CustomMessageException.cpp | wencakisa/Automata | 2b442f5e1d6cc7d7e34686f95845e6c73b10d047 | [
"MIT"
] | null | null | null | CustomMessageException.cpp | wencakisa/Automata | 2b442f5e1d6cc7d7e34686f95845e6c73b10d047 | [
"MIT"
] | null | null | null | #include "CustomMessageException.hpp"
CustomMessageException::CustomMessageException() : message(nullptr) {}
void CustomMessageException::setMessageFromStream(std::ostringstream& output) {
const char* message = output.str().c_str();
size_t message_length = strlen(message);
this->message = new char[messag... | 27.086957 | 79 | 0.704655 | wencakisa |
2e1f62bb458fbb9827582a1f61fcbdd151155bbb | 493 | hpp | C++ | tpccbench/wrappers/P-BwTree/pbwtree.hpp | mkatsa/PENVMTool | c63de91036cd84d36cd8ac54f2033ea141a292dc | [
"Apache-2.0"
] | 1 | 2022-03-22T15:16:56.000Z | 2022-03-22T15:16:56.000Z | tpccbench/wrappers/P-BwTree/pbwtree.hpp | mkatsa/PENVMTool | c63de91036cd84d36cd8ac54f2033ea141a292dc | [
"Apache-2.0"
] | null | null | null | tpccbench/wrappers/P-BwTree/pbwtree.hpp | mkatsa/PENVMTool | c63de91036cd84d36cd8ac54f2033ea141a292dc | [
"Apache-2.0"
] | null | null | null | #include "bwtree.h"
#include "tree_api.h"
template <typename KEY, typename VALUE>
class bwtree_wrapper : public TreeApi
{
public:
virtual ~bwtree_wrapper();
virtual void insert(const void *key, const void *value) override;
virtual bool find(const void *key, void *value = nullptr) const override;
virtu... | 29 | 114 | 0.726166 | mkatsa |
2e20296ef08e8f9c172873f13b03eaa1ff9c5334 | 368 | cpp | C++ | net/parser_task.cpp | wanchuanheng/wtaf | 90410ecb6b9e8213c0e2b2b87f72438d24ef8836 | [
"Apache-2.0"
] | null | null | null | net/parser_task.cpp | wanchuanheng/wtaf | 90410ecb6b9e8213c0e2b2b87f72438d24ef8836 | [
"Apache-2.0"
] | null | null | null | net/parser_task.cpp | wanchuanheng/wtaf | 90410ecb6b9e8213c0e2b2b87f72438d24ef8836 | [
"Apache-2.0"
] | null | null | null |
#include "net/parser_task.h"
namespace wtaf {
namespace net {
Parser_Task::Parser_Task(uint64 seq) : Task(seq)
{
}
void Parser_Task::push_connection(std::shared_ptr<Connection> connection)
{
m_queue.push(connection);
}
void Parser_Task::run()
{
while(std::shared_ptr<Connection> connection = m_queue.pop())
... | 14.153846 | 73 | 0.679348 | wanchuanheng |
2e239522ca4a90b06bd0d2189f7aff2d0d15141b | 1,005 | cpp | C++ | graph_traversal/flood_fill/wetlands_of_florida.cpp | alpha721/Competitive-Programming-3- | 548fe84e69beca6fd1ddfedac3aa306d9870cd29 | [
"MIT"
] | null | null | null | graph_traversal/flood_fill/wetlands_of_florida.cpp | alpha721/Competitive-Programming-3- | 548fe84e69beca6fd1ddfedac3aa306d9870cd29 | [
"MIT"
] | null | null | null | graph_traversal/flood_fill/wetlands_of_florida.cpp | alpha721/Competitive-Programming-3- | 548fe84e69beca6fd1ddfedac3aa306d9870cd29 | [
"MIT"
] | null | null | null | #include<iostream>
#include<vector>
#include<stdio.h>
#include<sstream>
using namespace std;
int dr[] = {1,1,1,0,-1,-1,-1,0};
int dc[] = {1,0,-1,-1,-1,0,1,1};
vector< vector<char> > g;
int floodfill(int r,int c,char a,char b,int& count)
{
if( r < 0 || r >= g.size() || c < 0 || c >= g[0].size())
return 0;
if( g[r]... | 15.461538 | 57 | 0.483582 | alpha721 |
2e2606a8039c00be305edf0d37c01a94a03e41b6 | 1,262 | hpp | C++ | module-services/service-cellular/call/api/CallDB.hpp | GravisZro/MuditaOS | 4230da15e69350c3ef9e742ec587e5f70154fabd | [
"BSL-1.0"
] | 369 | 2021-11-10T09:20:29.000Z | 2022-03-30T06:36:58.000Z | module-services/service-cellular/call/api/CallDB.hpp | GravisZro/MuditaOS | 4230da15e69350c3ef9e742ec587e5f70154fabd | [
"BSL-1.0"
] | 149 | 2021-11-10T08:38:35.000Z | 2022-03-31T23:01:52.000Z | module-services/service-cellular/call/api/CallDB.hpp | GravisZro/MuditaOS | 4230da15e69350c3ef9e742ec587e5f70154fabd | [
"BSL-1.0"
] | 41 | 2021-11-10T08:30:37.000Z | 2022-03-29T08:12:46.000Z | // Copyright (c) 2017-2022, Mudita Sp. z.o.o. All rights reserved.
// For licensing, see https://github.com/mudita/MuditaOS/LICENSE.md
#pragma once
#include "CalllogRecord.hpp"
#include <PhoneNumber.hpp>
namespace sys
{
class Service;
}
namespace CellularCall
{
class Call;
}
namespace call::api
{
class ... | 28.044444 | 103 | 0.631537 | GravisZro |
2e262576d01ec136ea20423cde1a443f096fc3b8 | 79,115 | cpp | C++ | indra/newview/quickprefs.cpp | bloomsirenix/Firestorm-manikineko | 67e1bb03b2d05ab16ab98097870094a8cc9de2e7 | [
"Unlicense"
] | 1 | 2022-03-26T15:03:34.000Z | 2022-03-26T15:03:34.000Z | indra/newview/quickprefs.cpp | bloomsirenix/Firestorm-manikineko | 67e1bb03b2d05ab16ab98097870094a8cc9de2e7 | [
"Unlicense"
] | null | null | null | indra/newview/quickprefs.cpp | bloomsirenix/Firestorm-manikineko | 67e1bb03b2d05ab16ab98097870094a8cc9de2e7 | [
"Unlicense"
] | null | null | null | /**
* @file quickprefs.cpp
* @brief Quick preferences access panel for bottomtray
*
* $LicenseInfo:firstyear=2011&license=viewerlgpl$
* Phoenix Firestorm Viewer Source Code
* Copyright (C) 2011, WoLf Loonie @ Second Life
* Copyright (C) 2013, Zi Ree @ Second Life
* Copyright (C) 2013, Ansariel Hiller @ Second ... | 34.563128 | 195 | 0.754522 | bloomsirenix |
2e2b3cd12d7ce1a876e77c33213fb976d341ee30 | 1,289 | cpp | C++ | Section_8/MixedExpressions/main.cpp | ftfoi71/BeginningCpp | 6acd8a9842f86791d87afbbc9716ff2ee994f4dc | [
"Unlicense"
] | 1 | 2021-02-11T23:08:00.000Z | 2021-02-11T23:08:00.000Z | Section_8/MixedExpressions/main.cpp | d-fect/BeginningCpp | 6acd8a9842f86791d87afbbc9716ff2ee994f4dc | [
"Unlicense"
] | null | null | null | Section_8/MixedExpressions/main.cpp | d-fect/BeginningCpp | 6acd8a9842f86791d87afbbc9716ff2ee994f4dc | [
"Unlicense"
] | null | null | null | #include <iostream>
#include <vector>
using namespace std; // BAD PRACTICE! Don't use using!! But since I'm lazy I'll use it during this course.
int main() {
int total {};
int count {};
cout << "How many integers do you want to enter? ";
cin >> count;
vector <int> numbers (count, 0);
... | 37.911765 | 157 | 0.59038 | ftfoi71 |
2e2c0e85bcf903313adfeedcdb7ad0622b5645f1 | 2,679 | cpp | C++ | module01/EX01/IFT3100H22_ColorSpaceBitmap/main.cpp | philvoyer/IFT3100H20 | 17b5c260b7bff2b2df4ed4c61fb078a5841f5c67 | [
"MIT"
] | 13 | 2020-01-22T20:17:26.000Z | 2020-08-31T01:02:18.000Z | module01/EX01/IFT3100H22_ColorSpaceBitmap/main.cpp | philvoyer/IFT3100H22 | 17b5c260b7bff2b2df4ed4c61fb078a5841f5c67 | [
"MIT"
] | null | null | null | module01/EX01/IFT3100H22_ColorSpaceBitmap/main.cpp | philvoyer/IFT3100H22 | 17b5c260b7bff2b2df4ed4c61fb078a5841f5c67 | [
"MIT"
] | 1 | 2022-01-11T22:05:37.000Z | 2022-01-11T22:05:37.000Z | // IFT3100H22_ColorSpaceBitmap\main.cpp
// Génération procédurale d'une image dans un espace de couleur binaire.
// Les pixels sont colorés selon le pattern d'un échiquier.
// Exportation des données de l'image dans un fichier .pbm (portable bitmap).
#include <iostream>
#include <fstream>
#include <vector>
// espace ... | 21.432 | 97 | 0.597238 | philvoyer |
2e30bd8c69485fbd45f28dc88f4398b7ceb16eb1 | 2,600 | cpp | C++ | javaStructures/jdk-master/src/hotspot/share/gc/z/zObjArrayAllocator.cpp | IThawk/learnCode | 0ac843d28b193eaab33fb33692f18361d71c7331 | [
"MIT"
] | 1 | 2020-12-26T04:52:15.000Z | 2020-12-26T04:52:15.000Z | javaStructures/jdk-master/src/hotspot/share/gc/z/zObjArrayAllocator.cpp | IThawk/learnCode | 0ac843d28b193eaab33fb33692f18361d71c7331 | [
"MIT"
] | 1 | 2020-12-26T04:57:19.000Z | 2020-12-26T04:57:19.000Z | javaStructures/jdk-master/src/hotspot/share/gc/z/zObjArrayAllocator.cpp | IThawk/learnCode | 0ac843d28b193eaab33fb33692f18361d71c7331 | [
"MIT"
] | 1 | 2021-12-06T01:13:18.000Z | 2021-12-06T01:13:18.000Z | /*
* Copyright (c) 2019, 2020, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free ... | 39.393939 | 100 | 0.740769 | IThawk |
2e32f22095ad2b244980a05100a3b2ee3b7eb3b6 | 330 | cc | C++ | krang/test/krangtest.cc | bdpedersen/ble-from-scratch | a4437cc1c0aedcd714c5acd67af6a7a7bbe6222d | [
"BSD-2-Clause"
] | null | null | null | krang/test/krangtest.cc | bdpedersen/ble-from-scratch | a4437cc1c0aedcd714c5acd67af6a7a7bbe6222d | [
"BSD-2-Clause"
] | null | null | null | krang/test/krangtest.cc | bdpedersen/ble-from-scratch | a4437cc1c0aedcd714c5acd67af6a7a7bbe6222d | [
"BSD-2-Clause"
] | null | null | null | #include "../krang.hh"
#include <iostream>
int main(void){
krang::Krang rng;
const char *init="cafebabe";
rng.seed((uint8_t*)init,8);
for (int i=0; i < 100; i++){
uint8_t buf[16];
rng.fetch(buf,16);
for (int x=0; x < 16; x++){
std::cout << (int)buf[x] << " ";
}
std::cout << std::en... | 16.5 | 38 | 0.518182 | bdpedersen |
2e354115e7fe8b22eb1bd52f92799c71d0eae12a | 2,412 | hpp | C++ | Tiny-DSOD/include/caffe/layers/norm_conv_layer.hpp | statisticszhang/Object-detection | 6e0ac5c9bd5165ed638b30ca558d5d6d6756d794 | [
"Apache-2.0"
] | 2 | 2020-06-03T12:47:04.000Z | 2020-09-29T09:58:23.000Z | Tiny-DSOD/include/caffe/layers/norm_conv_layer.hpp | statisticszhang/Object-detection | 6e0ac5c9bd5165ed638b30ca558d5d6d6756d794 | [
"Apache-2.0"
] | null | null | null | Tiny-DSOD/include/caffe/layers/norm_conv_layer.hpp | statisticszhang/Object-detection | 6e0ac5c9bd5165ed638b30ca558d5d6d6756d794 | [
"Apache-2.0"
] | null | null | null | #ifndef CAFFE_NORM_CONV_LAYER_HPP_
#define CAFFE_NORM_CONV_LAYER_HPP_
#include <vector>
#include "caffe/blob.hpp"
#include "caffe/layer.hpp"
#include "caffe/proto/caffe.pb.h"
#include "caffe/layers/base_conv_layer.hpp"
namespace caffe {
/**
* @brief Convolves the input image with a L2 normalized bank of learned f... | 36.545455 | 81 | 0.733002 | statisticszhang |
aa32462e7f888aa9daec6f95959a4315ed1d70e5 | 6,332 | cpp | C++ | extensions/OgreConsoleForGorilla.cpp | betajaen/gorilla | 74348a868893be0cb3c46bde5ed8600a5db21f07 | [
"Unlicense"
] | 14 | 2015-01-17T16:21:10.000Z | 2021-02-05T17:47:51.000Z | extensions/OgreConsoleForGorilla.cpp | betajaen/gorilla | 74348a868893be0cb3c46bde5ed8600a5db21f07 | [
"Unlicense"
] | null | null | null | extensions/OgreConsoleForGorilla.cpp | betajaen/gorilla | 74348a868893be0cb3c46bde5ed8600a5db21f07 | [
"Unlicense"
] | 4 | 2016-05-03T06:26:26.000Z | 2021-12-23T03:09:07.000Z | /*
Description:
This is a port of the OgreConsole code presented by PixL in the Ogre Forums then later added
to the Ogre Wiki.
This is a straight port replacing all the Overlay code with Gorilla code, some changes have
been added but they are minor and do not add to the actual functionality... | 24.542636 | 147 | 0.646083 | betajaen |
aa3437890a0f539c5e0e1d7bbfbe1fb0ad83c0fe | 3,668 | hxx | C++ | Status.hxx | cbond/msrp | d498f1ac8848319f4ecb617ad251e76de827a9a2 | [
"BSL-1.0"
] | null | null | null | Status.hxx | cbond/msrp | d498f1ac8848319f4ecb617ad251e76de827a9a2 | [
"BSL-1.0"
] | null | null | null | Status.hxx | cbond/msrp | d498f1ac8848319f4ecb617ad251e76de827a9a2 | [
"BSL-1.0"
] | 1 | 2021-07-20T12:14:59.000Z | 2021-07-20T12:14:59.000Z | #ifndef MSRP_STATUS_HXX
#define MSRP_STATUS_HXX
#include <string>
#include <boost/spirit/core.hpp>
#include <boost/spirit/attribute.hpp>
#include <boost/spirit/attribute/closure.hpp>
#include <boost/spirit/phoenix.hpp>
namespace msrp
{
class StatusTuple
{
public:
StatusTuple() :
mNamespace(0), mCo... | 30.065574 | 82 | 0.661668 | cbond |
aa3a5299f3db0d1b555978a79226e4e80cf473ef | 960 | cpp | C++ | Chapter14/ShapePatterns/04_Prototype/Main.cpp | alamlam1982/fincpp | 470469d35d90fc0fde96f119e329aedbc5f68f89 | [
"CECILL-B"
] | null | null | null | Chapter14/ShapePatterns/04_Prototype/Main.cpp | alamlam1982/fincpp | 470469d35d90fc0fde96f119e329aedbc5f68f89 | [
"CECILL-B"
] | null | null | null | Chapter14/ShapePatterns/04_Prototype/Main.cpp | alamlam1982/fincpp | 470469d35d90fc0fde96f119e329aedbc5f68f89 | [
"CECILL-B"
] | null | null | null | // Main.cpp
//
// Test program for basic shape hierarchy
//
// (C) Datasim Education BV 1998
#include "Point.hpp"
#include "Line.hpp"
#include "Circle.hpp"
#include "ShapeComposite.hpp"
using namespace std;
void print(const ShapeComposite& sc)
{ // Print the shape composite
ShapeComposite::const_iterator i;
for... | 16.842105 | 45 | 0.630208 | alamlam1982 |
aa3ab371ee4320472709732d759a8de3c7f6b5cf | 155 | hpp | C++ | libcaramel/memory.hpp | Wmbat/libcaramel | 71bd054aea82b081f202f52b7d24226871123b3f | [
"MIT"
] | 2 | 2020-12-19T04:00:41.000Z | 2021-09-11T19:28:29.000Z | libcaramel/memory.hpp | Wmbat/libcaramel | 71bd054aea82b081f202f52b7d24226871123b3f | [
"MIT"
] | 4 | 2021-05-11T22:52:16.000Z | 2021-05-16T20:43:31.000Z | libcaramel/memory.hpp | Wmbat/libcaramel | 71bd054aea82b081f202f52b7d24226871123b3f | [
"MIT"
] | 1 | 2021-01-06T04:05:56.000Z | 2021-01-06T04:05:56.000Z | #pragma once
#include <libcaramel/memory/allocator.hpp>
#include <libcaramel/memory/global_resource.hpp>
#include <libcaramel/memory/memory_resource.hpp>
| 25.833333 | 48 | 0.819355 | Wmbat |
aa3ca332c52c1b1a20031ee40e8822913e803f15 | 1,888 | cc | C++ | src/FG/DescObject.cc | gczuczy/sfticks | fe03086473aab62dd3560ef93efd322d312ff33a | [
"Beerware"
] | null | null | null | src/FG/DescObject.cc | gczuczy/sfticks | fe03086473aab62dd3560ef93efd322d312ff33a | [
"Beerware"
] | null | null | null | src/FG/DescObject.cc | gczuczy/sfticks | fe03086473aab62dd3560ef93efd322d312ff33a | [
"Beerware"
] | null | null | null |
#include "FG/DescObject.hh"
#include "SFT/Exception.hh"
#include "misc.hh"
namespace FG {
static std::map<std::string, uint32_t> g_stacksizes{
{"SS_ONE", 1},
{"SS_SMALL", 50},
{"SS_MEDIUM", 100},
{"SS_BIG", 200},
{"SS_HUGE", 500},
{"SS_FLUID", 0},
};
static std::map<std::string, EResou... | 30.95082 | 79 | 0.637712 | gczuczy |
aa3e33cbec4e95181ab57c342603d0d7336df34d | 211 | cpp | C++ | sg/Data.cpp | ebachard/ospray_studio | 78928c93b482f9f95aa300c8f58c728dadedbe2f | [
"Apache-2.0"
] | 52 | 2018-10-09T23:56:32.000Z | 2022-03-25T09:27:40.000Z | sg/Data.cpp | ebachard/ospray_studio | 78928c93b482f9f95aa300c8f58c728dadedbe2f | [
"Apache-2.0"
] | 11 | 2018-11-19T18:51:47.000Z | 2022-03-28T14:03:57.000Z | sg/Data.cpp | ebachard/ospray_studio | 78928c93b482f9f95aa300c8f58c728dadedbe2f | [
"Apache-2.0"
] | 8 | 2019-02-10T00:16:24.000Z | 2022-02-17T19:50:15.000Z | // Copyright 2009-2020 Intel Corporation
// SPDX-License-Identifier: Apache-2.0
#include "Data.h"
namespace ospray {
namespace sg {
OSP_REGISTER_SG_NODE(Data);
} // namespace sg
} // namespace ospray
| 16.230769 | 40 | 0.7109 | ebachard |
aa3f307c2bc019c205e45d754dd6b3ab1966fd96 | 441 | cpp | C++ | problem_solving/CodeForces/58A/15647430_AC_31ms_20kB.cpp | cosmicray001/academic | 6aa142baeba4bb1ad73b8669e37305ca0b5102a7 | [
"MIT"
] | 2 | 2020-09-02T12:07:47.000Z | 2020-11-17T11:17:16.000Z | problem_solving/CodeForces/58A/15647430_AC_31ms_20kB.cpp | cosmicray001/academic | 6aa142baeba4bb1ad73b8669e37305ca0b5102a7 | [
"MIT"
] | null | null | null | problem_solving/CodeForces/58A/15647430_AC_31ms_20kB.cpp | cosmicray001/academic | 6aa142baeba4bb1ad73b8669e37305ca0b5102a7 | [
"MIT"
] | 4 | 2020-08-11T14:23:34.000Z | 2020-11-17T10:52:31.000Z | #include <bits/stdc++.h>
using namespace std;
int main(){
char ch[] = {'h', 'e', 'l', 'l', 'o'};
string s;
getline(cin, s);
int st = 0, c = 0;
for(int i = 0; i < 5; i++){
for(int j = st; j < s.size(); j++){
if(ch[i] == s[j]){
c++;
st = j + 1;
... | 21 | 43 | 0.351474 | cosmicray001 |
aa4a6eadf1a8f1f4f108b6812fc00428b6d6b00f | 5,086 | cpp | C++ | modules/dnn/src/dnn_utils.cpp | yash112-lang/opencv | be38d4ea932bc3a0d06845ed1a2de84acc2a09de | [
"Apache-2.0"
] | 2 | 2017-03-25T01:55:45.000Z | 2017-08-05T10:37:09.000Z | modules/dnn/src/dnn_utils.cpp | yash112-lang/opencv | be38d4ea932bc3a0d06845ed1a2de84acc2a09de | [
"Apache-2.0"
] | null | null | null | modules/dnn/src/dnn_utils.cpp | yash112-lang/opencv | be38d4ea932bc3a0d06845ed1a2de84acc2a09de | [
"Apache-2.0"
] | 1 | 2020-12-13T22:09:12.000Z | 2020-12-13T22:09:12.000Z | // This file is part of OpenCV project.
// It is subject to the license terms in the LICENSE file found in the top-level directory
// of this distribution and at http://opencv.org/license.html.
#include "precomp.hpp"
#include <opencv2/imgproc.hpp>
namespace cv {
namespace dnn {
CV__DNN_INLINE_NS_BEGIN
Mat blobFro... | 31.987421 | 102 | 0.566654 | yash112-lang |
aa53e62c38dec7b9bab9e334769583e96edfc3c5 | 508 | hpp | C++ | include/RED4ext/Scripting/Natives/Generated/AI/ReactionSystem.hpp | WSSDude420/RED4ext.SDK | eaca8bdf7b92c48422b18431ed8cd0876f53bdb3 | [
"MIT"
] | null | null | null | include/RED4ext/Scripting/Natives/Generated/AI/ReactionSystem.hpp | WSSDude420/RED4ext.SDK | eaca8bdf7b92c48422b18431ed8cd0876f53bdb3 | [
"MIT"
] | null | null | null | include/RED4ext/Scripting/Natives/Generated/AI/ReactionSystem.hpp | WSSDude420/RED4ext.SDK | eaca8bdf7b92c48422b18431ed8cd0876f53bdb3 | [
"MIT"
] | null | null | null | #pragma once
// This file is generated from the Game's Reflection data
#include <cstdint>
#include <RED4ext/Common.hpp>
#include <RED4ext/Scripting/Natives/Generated/AI/IReactionSystem.hpp>
namespace RED4ext
{
namespace AI {
struct ReactionSystem : AI::IReactionSystem
{
static constexpr const char* NAME = "AIRe... | 23.090909 | 69 | 0.744094 | WSSDude420 |
aa5440834c5676b1bd462598d484f2d8c28dad9f | 501 | hpp | C++ | src/math_helper.hpp | hadalhw17/meshloader | 411babf21a6bddf61c6ea8fc8b8ffce325ae5e52 | [
"MIT"
] | null | null | null | src/math_helper.hpp | hadalhw17/meshloader | 411babf21a6bddf61c6ea8fc8b8ffce325ae5e52 | [
"MIT"
] | null | null | null | src/math_helper.hpp | hadalhw17/meshloader | 411babf21a6bddf61c6ea8fc8b8ffce325ae5e52 | [
"MIT"
] | null | null | null | #pragma once
#include "structures.hpp"
namespace loader
{
[[nodiscard]] inline float3 cross(float3 a, float3 b)
{
float3 ret = { };
ret.x = a.y * b.z - b.y * a.z;
ret.y = a.z * b.x - b.z * a.x;
ret.z = a.x * b.y - b.x * a.y;
return ret;
}
[[nodiscard]] inline float dot(const float3& a, const float3& b)
{
... | 17.275862 | 64 | 0.58483 | hadalhw17 |
aa56dbb44e0fba3997ffb8c7343cbeee0f6ab2b6 | 1,253 | cc | C++ | CH11_AssociativeContainers/exercises/ex11_07.cc | iZhangHui/CppPrimer | e61f660c9b0155a2c13d64f104cbd3f641ea00c4 | [
"Unlicense"
] | 34 | 2016-09-23T06:22:35.000Z | 2021-12-09T14:01:14.000Z | CH11_AssociativeContainers/exercises/ex11_07.cc | zhangzheng0317/CppPrimer | 322ed3cb120fe0282fe75e147b7d13c2a966519c | [
"Unlicense"
] | null | null | null | CH11_AssociativeContainers/exercises/ex11_07.cc | zhangzheng0317/CppPrimer | 322ed3cb120fe0282fe75e147b7d13c2a966519c | [
"Unlicense"
] | 10 | 2018-05-14T01:35:18.000Z | 2021-06-14T02:44:53.000Z | /****************************************************************************
*
* Copyright (c) 2016 Henry Zhang. All rights reserved.
*
****************************************************************************/
/**
* @file ex11_07.cc
*
* Exercise 11.7:
* Define a map for which the key is the family’s las... | 23.203704 | 89 | 0.552275 | iZhangHui |
aa5754ef0b8523fdfd3f8eb3694a013cc7e0c986 | 3,986 | hh | C++ | include/hpp/bezier-com-traj/waypoints/waypoints_c0_dc0_c1.hh | jmirabel/hpp-bezier-com-traj | b6484f4538ee774c815133fae919784e5df08674 | [
"BSD-2-Clause"
] | null | null | null | include/hpp/bezier-com-traj/waypoints/waypoints_c0_dc0_c1.hh | jmirabel/hpp-bezier-com-traj | b6484f4538ee774c815133fae919784e5df08674 | [
"BSD-2-Clause"
] | null | null | null | include/hpp/bezier-com-traj/waypoints/waypoints_c0_dc0_c1.hh | jmirabel/hpp-bezier-com-traj | b6484f4538ee774c815133fae919784e5df08674 | [
"BSD-2-Clause"
] | null | null | null | /*
* Copyright 2018, LAAS-CNRS
* Author: Pierre Fernbach
*/
#ifndef BEZIER_COM_TRAJ_C0DC0C1_H
#define BEZIER_COM_TRAJ_C0DC0C1_H
#include <hpp/bezier-com-traj/data.hh>
namespace bezier_com_traj{
namespace c0_dc0_c1{
static const ConstraintFlag flag =INIT_POS | INIT_VEL | END_POS;
/// ### EQUATION FOR CONSTRAINT... | 36.236364 | 138 | 0.629453 | jmirabel |
aa5a4677f1669151127379e526c4b23ab13140b6 | 859 | cpp | C++ | asteria/rocket/assert.cpp | lhmouse/asteria | b567e6463b1b6c1e7b8f28fe09b3c03cb4681a33 | [
"BSD-3-Clause"
] | 292 | 2018-03-23T08:57:39.000Z | 2022-03-28T16:49:09.000Z | asteria/rocket/assert.cpp | lhmouse/asteria | b567e6463b1b6c1e7b8f28fe09b3c03cb4681a33 | [
"BSD-3-Clause"
] | 71 | 2018-04-13T18:42:13.000Z | 2022-03-08T16:56:58.000Z | asteria/rocket/assert.cpp | lhmouse/asteria | b567e6463b1b6c1e7b8f28fe09b3c03cb4681a33 | [
"BSD-3-Clause"
] | 22 | 2018-10-20T19:14:30.000Z | 2022-03-04T08:32:30.000Z | // This file is part of Asteria.
// Copyleft 2018 - 2021, LH_Mouse. All wrongs reserved.
#include "assert.hpp"
#include <exception>
#include <cstdio>
namespace rocket {
void
report_assertion_failure(const char* expr, const char* file, long line, const char* msg) noexcept
{
// Write a message to the standard er... | 29.62069 | 97 | 0.444703 | lhmouse |
aa5d7db25c811efc519597a02f4a9fc69a21c344 | 1,164 | cpp | C++ | c++/kosaraju_scc.cpp | forgotter/Snippets | bb4e39cafe7ef2c1ef3ac24b450a72df350a248b | [
"MIT"
] | 38 | 2018-09-17T18:16:24.000Z | 2022-02-10T10:26:23.000Z | c++/kosaraju_scc.cpp | forgotter/Snippets | bb4e39cafe7ef2c1ef3ac24b450a72df350a248b | [
"MIT"
] | 1 | 2020-10-01T10:48:45.000Z | 2020-10-04T11:27:44.000Z | c++/kosaraju_scc.cpp | forgotter/Snippets | bb4e39cafe7ef2c1ef3ac24b450a72df350a248b | [
"MIT"
] | 12 | 2018-11-13T13:36:41.000Z | 2021-05-02T10:07:44.000Z | /// Name: StronglyConnectedComponent
/// Description: Kosaraju Algorithm to find scc in graph
/// Detail: SCC, Maths, Graph
/// Guarantee: } // StronglyConnectedComponent
unordered_map<int, vector<int>> adj, adjt;
unordered_map<int, int> comp, vis;
vector<vector<int>> scc;
vector<int> ord;
void dfs(int i,... | 20.068966 | 64 | 0.485395 | forgotter |
aa60bb0aa8d2d263853cfe5a451fb63a3b9a9201 | 2,709 | cpp | C++ | components/m8rscript/Function.cpp | cmarrin/m8rscript | 4e24800e1be2c2c5e2ec1b7b52aa6df787e6460c | [
"MIT"
] | 1 | 2018-01-30T19:37:27.000Z | 2018-01-30T19:37:27.000Z | components/m8rscript/Function.cpp | cmarrin/m8rscript | 4e24800e1be2c2c5e2ec1b7b52aa6df787e6460c | [
"MIT"
] | null | null | null | components/m8rscript/Function.cpp | cmarrin/m8rscript | 4e24800e1be2c2c5e2ec1b7b52aa6df787e6460c | [
"MIT"
] | 3 | 2017-04-01T23:41:35.000Z | 2019-12-14T23:26:24.000Z | /*-------------------------------------------------------------------------
This source file is a part of m8rscript
For the latest info, see http:www.marrin.org/
Copyright (c) 2018-2019, Chris Marrin
All rights reserved.
Use of this source code is governed by the MIT license that can be
found in... | 31.5 | 107 | 0.617202 | cmarrin |
aa6441122783d689d5fbb5cf70fcc4d23152c4c3 | 30,935 | cpp | C++ | cppn-neat/NE/HyperNEAT/NEAT/src/NEAT_LayeredSubstrate.cpp | GiorgosMethe/Soft-Robots-Novelty-Search-Public | f493923e7c16a3cedc018be22ab6373046641001 | [
"MIT"
] | null | null | null | cppn-neat/NE/HyperNEAT/NEAT/src/NEAT_LayeredSubstrate.cpp | GiorgosMethe/Soft-Robots-Novelty-Search-Public | f493923e7c16a3cedc018be22ab6373046641001 | [
"MIT"
] | null | null | null | cppn-neat/NE/HyperNEAT/NEAT/src/NEAT_LayeredSubstrate.cpp | GiorgosMethe/Soft-Robots-Novelty-Search-Public | f493923e7c16a3cedc018be22ab6373046641001 | [
"MIT"
] | null | null | null | #include "NEAT_Defines.h"
#include "NEAT_LayeredSubstrate.h"
#include "NEAT_GeneticIndividual.h"
#include "Board.h"
#define LAYERED_SUBSTRATE_DEBUG (0)
#define DEBUG_USE_DELTAS_ON_LONG_RANGE (1)
#define DEBUG_NO_LONG_RANGE_LINKS (0)
#define DEBUG_MAX_DELTA_RANGE (2)
namespace NEAT
{
template<class NetworkDataTy... | 31.695697 | 161 | 0.447034 | GiorgosMethe |
aa6546373871c8546c7789b5a54235bcd5fb16bb | 1,720 | hpp | C++ | gamelib/gamelib_base.hpp | scifi6546/cs487game | 445dacbe6f5a95194d694bbeaced6ea4f8922c9f | [
"MIT"
] | null | null | null | gamelib/gamelib_base.hpp | scifi6546/cs487game | 445dacbe6f5a95194d694bbeaced6ea4f8922c9f | [
"MIT"
] | null | null | null | gamelib/gamelib_base.hpp | scifi6546/cs487game | 445dacbe6f5a95194d694bbeaced6ea4f8922c9f | [
"MIT"
] | null | null | null | #ifndef GAMELIB_BASE_HPP
#define GAMELIB_BASE_HPP
#define SDL_MAIN_HANDLED
#include <SDL2/SDL.h>
#include <SDL2/SDL_image.h>
#include <SDL2/SDL_mixer.h>
#include <SDL2/SDL_ttf.h>
#include <czmq.h>
#include <glm/glm.hpp>
#include <glm/gtc/matrix_transform.hpp>
#include <hatchetfish.hpp>
#include <iostream>
#include <f... | 20 | 68 | 0.551163 | scifi6546 |
aa65e49aeb4cb7496323fb24b2d6793c48a11c49 | 10,585 | cpp | C++ | src/patternScan/CupScanner.cpp | sroehling/ChartPatternRecognitionLib | d9bd25c0fc5a8942bb98c74c42ab52db80f680c1 | [
"MIT"
] | 9 | 2019-07-15T19:10:07.000Z | 2021-12-14T12:16:18.000Z | src/patternScan/CupScanner.cpp | sroehling/ChartPatternRecognitionLib | d9bd25c0fc5a8942bb98c74c42ab52db80f680c1 | [
"MIT"
] | null | null | null | src/patternScan/CupScanner.cpp | sroehling/ChartPatternRecognitionLib | d9bd25c0fc5a8942bb98c74c42ab52db80f680c1 | [
"MIT"
] | 2 | 2020-05-23T03:25:25.000Z | 2021-11-19T16:41:44.000Z | /*
* CupScanner.cpp
*
* Created on: Jun 18, 2014
* Author: sroehling
*/
#include "EndWithinPercentOfStart.h"
#include "ORPatternMatchValidator.h"
#include "CupScanner.h"
#include "TrendLineScanner.h"
#include "ScannerHelper.h"
#include "PatternMatchFilter.h"
#include "CupPatternMatch.h"
#include "StaticPatt... | 54.005102 | 151 | 0.787057 | sroehling |
aa666a7cbd49751d24607f9b3799482f61216533 | 829 | hpp | C++ | libs/core/render/include/bksge/core/render/gl/detail/fill_mode.hpp | myoukaku/bksge | 0f8b60e475a3f1709723906e4796b5e60decf06e | [
"MIT"
] | 4 | 2018-06-10T13:35:32.000Z | 2021-06-03T14:27:41.000Z | libs/core/render/include/bksge/core/render/gl/detail/fill_mode.hpp | myoukaku/bksge | 0f8b60e475a3f1709723906e4796b5e60decf06e | [
"MIT"
] | 566 | 2017-01-31T05:36:09.000Z | 2022-02-09T05:04:37.000Z | libs/core/render/include/bksge/core/render/gl/detail/fill_mode.hpp | myoukaku/bksge | 0f8b60e475a3f1709723906e4796b5e60decf06e | [
"MIT"
] | 1 | 2018-07-05T04:40:53.000Z | 2018-07-05T04:40:53.000Z | /**
* @file fill_mode.hpp
*
* @brief FillMode クラスの定義
*
* @author myoukaku
*/
#ifndef BKSGE_CORE_RENDER_GL_DETAIL_FILL_MODE_HPP
#define BKSGE_CORE_RENDER_GL_DETAIL_FILL_MODE_HPP
#include <bksge/core/render/fwd/fill_mode_fwd.hpp>
#include <bksge/core/render/gl/detail/gl_h.hpp>
namespace bksge
{
... | 16.58 | 61 | 0.704463 | myoukaku |
aa692031792774084e3e7fe08a5303d8acda5898 | 11,926 | hpp | C++ | src/app/min/min.hpp | indigoabstract/techno-globe | 1f01b231bece534282344fa660d5f9a8cc07262e | [
"MIT"
] | null | null | null | src/app/min/min.hpp | indigoabstract/techno-globe | 1f01b231bece534282344fa660d5f9a8cc07262e | [
"MIT"
] | null | null | null | src/app/min/min.hpp | indigoabstract/techno-globe | 1f01b231bece534282344fa660d5f9a8cc07262e | [
"MIT"
] | null | null | null | #pragma once
#include "pfm-def.h"
#include "pfm.hpp"
#include <stdio.h>
#include <algorithm>
#include <cctype>
#include <exception>
#include <functional>
#include <locale>
#include <memory>
#include <stdexcept>
#include <string>
#include <vector>
#include <cmath>
using std::shared_ptr;
using std::weak_ptr;
class i... | 24.289206 | 155 | 0.682123 | indigoabstract |
aa6c372bfe2b3ecd59d7dc692cccf603baabe1e1 | 1,586 | cpp | C++ | src/network/integer_builder.cpp | Andrei-Masilevich/barbacoa-server-lib | 2eda2fab20c6c1d5a8a78b71952ca61330d04878 | [
"MIT"
] | null | null | null | src/network/integer_builder.cpp | Andrei-Masilevich/barbacoa-server-lib | 2eda2fab20c6c1d5a8a78b71952ca61330d04878 | [
"MIT"
] | null | null | null | src/network/integer_builder.cpp | Andrei-Masilevich/barbacoa-server-lib | 2eda2fab20c6c1d5a8a78b71952ca61330d04878 | [
"MIT"
] | null | null | null | #include <server_lib/network/integer_builder.h>
#include <server_lib/asserts.h>
#include <algorithm>
namespace server_lib {
namespace network {
std::string integer_builder::pack(const uint32_t value)
{
std::string result;
result.reserve(sizeof(uint32_t));
uint64_t val = value;
... | 24.4 | 83 | 0.499369 | Andrei-Masilevich |
aa6c75ad39575ee006dfe0c2ed63cdf2409bf1bc | 742 | hpp | C++ | include/BlazeIterative/solvers/ArnoldiTag.hpp | diehlpk/BlazeIterative | 351cc623bfcbea4eb8100e370a86ae7e25ef541b | [
"BSL-1.0"
] | 5 | 2019-08-22T19:20:47.000Z | 2021-03-13T18:14:31.000Z | include/BlazeIterative/solvers/ArnoldiTag.hpp | diehlpk/BlazeIterative | 351cc623bfcbea4eb8100e370a86ae7e25ef541b | [
"BSL-1.0"
] | 6 | 2019-07-08T21:26:34.000Z | 2021-06-08T16:58:54.000Z | include/BlazeIterative/solvers/ArnoldiTag.hpp | diehlpk/BlazeIterative | 351cc623bfcbea4eb8100e370a86ae7e25ef541b | [
"BSL-1.0"
] | 2 | 2021-03-18T16:30:10.000Z | 2021-04-02T15:44:53.000Z | // Copyright (c) 2017 Tyler Olsen
// 2018 Patrick Diehl
// 2019 Nanmiao Wu
// 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 BLAZE_ITERATIVE_ARNOLDITAG_HPP
#define BLAZE_ITER... | 26.5 | 79 | 0.685984 | diehlpk |
aa7049e09cb296bd5fef8012d727f1713ecdfa74 | 1,678 | cpp | C++ | src/Plugins/NodeDebugRenderPlugin/ArrowDebugRender.cpp | Terryhata6/Mengine | dfe36fdc84d7398fbbbd199feffc46c6f157f1d4 | [
"MIT"
] | null | null | null | src/Plugins/NodeDebugRenderPlugin/ArrowDebugRender.cpp | Terryhata6/Mengine | dfe36fdc84d7398fbbbd199feffc46c6f157f1d4 | [
"MIT"
] | null | null | null | src/Plugins/NodeDebugRenderPlugin/ArrowDebugRender.cpp | Terryhata6/Mengine | dfe36fdc84d7398fbbbd199feffc46c6f157f1d4 | [
"MIT"
] | null | null | null | #include "ArrowDebugRender.h"
#include "NodeDebugRenderHelper.h"
namespace Mengine
{
//////////////////////////////////////////////////////////////////////////
ArrowDebugRender::ArrowDebugRender()
{
}
//////////////////////////////////////////////////////////////////////////
ArrowDebugRender::... | 34.244898 | 147 | 0.499404 | Terryhata6 |
aa721e84addf5b7b149d64a5fd2ded03bbf970f4 | 2,693 | cpp | C++ | src/main.cpp | nicoaw/rsa | c432dbbc3b5e2fc88a4a49c2a9dd6b6a0693a3bd | [
"MIT"
] | 1 | 2018-01-13T05:36:57.000Z | 2018-01-13T05:36:57.000Z | src/main.cpp | nicoaw/rsa | c432dbbc3b5e2fc88a4a49c2a9dd6b6a0693a3bd | [
"MIT"
] | null | null | null | src/main.cpp | nicoaw/rsa | c432dbbc3b5e2fc88a4a49c2a9dd6b6a0693a3bd | [
"MIT"
] | null | null | null | #include "Crypt.hpp"
#include <boost/multiprecision/cpp_int.hpp>
#include <boost/program_options.hpp>
#include <algorithm>
#include <fstream>
#include <iterator>
namespace mp = boost::multiprecision;
namespace po = boost::program_options;
int main(int argc, char** argv)
{
po::options_description commandLineOptions
... | 34.088608 | 139 | 0.691051 | nicoaw |
aa72e30a41534e0fe62ed91c640c443bff4a4bbb | 7,364 | cpp | C++ | ml/src/Select_GroupLassoExtSlep.cpp | georgephilipp/cppgstd_legacy | e130860da7700aae42b915bc36a7efa4cae06d56 | [
"MIT"
] | null | null | null | ml/src/Select_GroupLassoExtSlep.cpp | georgephilipp/cppgstd_legacy | e130860da7700aae42b915bc36a7efa4cae06d56 | [
"MIT"
] | null | null | null | ml/src/Select_GroupLassoExtSlep.cpp | georgephilipp/cppgstd_legacy | e130860da7700aae42b915bc36a7efa4cae06d56 | [
"MIT"
] | null | null | null | #include "stdafx.h"
#include "GroupLassoExtSlep.h"
#include "LassoExtSlep.h"
#include "gstd/src/Rand.h"
#include "DpDoublesGenerators.h"
#include "RegressionGenerators.h"
#include "RegressionNormalizer.h"
#include "gstd/src/Primitives.h"
#include "Data/src/Converters.h"
namespace msii810161816
{
namespa... | 29.106719 | 169 | 0.611353 | georgephilipp |
aa742150c908c10bbf608bc3971feb874ab71d9d | 11,545 | cpp | C++ | modules/egl/teglGetProcAddressTests.cpp | asimiklit/VK-GL-CTS | ededa67cb12aec0c5e92e3eba40d3f3c7b4d697f | [
"Apache-2.0"
] | 1 | 2021-07-15T23:37:39.000Z | 2021-07-15T23:37:39.000Z | modules/egl/teglGetProcAddressTests.cpp | asimiklit/VK-GL-CTS | ededa67cb12aec0c5e92e3eba40d3f3c7b4d697f | [
"Apache-2.0"
] | 1 | 2021-03-22T09:53:25.000Z | 2021-03-22T09:53:25.000Z | modules/egl/teglGetProcAddressTests.cpp | asimiklit/VK-GL-CTS | ededa67cb12aec0c5e92e3eba40d3f3c7b4d697f | [
"Apache-2.0"
] | null | null | null | /*-------------------------------------------------------------------------
* drawElements Quality Program EGL Module
* ---------------------------------------
*
* Copyright 2014 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except... | 29.37659 | 185 | 0.712256 | asimiklit |
aa765a683dad0894c206d9cf04f213bc19b02545 | 450 | cpp | C++ | A. Puzzles.cpp | Samim-Arefin/Codeforce-Problem-Solution | 7219ee6173faaa9e06231d4cd3e9ba292ae27ce3 | [
"MIT"
] | null | null | null | A. Puzzles.cpp | Samim-Arefin/Codeforce-Problem-Solution | 7219ee6173faaa9e06231d4cd3e9ba292ae27ce3 | [
"MIT"
] | null | null | null | A. Puzzles.cpp | Samim-Arefin/Codeforce-Problem-Solution | 7219ee6173faaa9e06231d4cd3e9ba292ae27ce3 | [
"MIT"
] | null | null | null | #include<bits/stdc++.h>
using namespace std;
int main()
{
int k, num;
while (cin >> k >> num)
{
vector<int> v1;
for (int i = 0; i < num; i++)
{
int temp;
cin >> temp;
v1.push_back(temp);
}
sort(v1.begin(), v1.end());
int size = num - k + 1;
int minimum = 1e5;
for (int i = 0, j = k - 1; i < s... | 17.307692 | 48 | 0.497778 | Samim-Arefin |
aa7765bd003ad3bdbec7ac56fe495ac3d8f2c20d | 28,338 | cpp | C++ | MIC/MicMgr/CopyFiles.cpp | hnordquist/MIC | 18528ce80790925f05a409b0d08995576555298e | [
"Unlicense"
] | null | null | null | MIC/MicMgr/CopyFiles.cpp | hnordquist/MIC | 18528ce80790925f05a409b0d08995576555298e | [
"Unlicense"
] | 1 | 2017-09-14T15:23:39.000Z | 2017-09-14T15:23:39.000Z | MIC/MicMgr/CopyFiles.cpp | hnordquist/MIC | 18528ce80790925f05a409b0d08995576555298e | [
"Unlicense"
] | null | null | null | /*
This work was supported by the United States Member State Support Program to IAEA Safeguards;
the U.S. Department of Energy, Office of Nonproliferation and National Security, International
Safeguards Division; and the U.S. Department of Energy, Office of Safeguards and Security.
LA-CC-14-089. This software was... | 31.697987 | 113 | 0.689992 | hnordquist |
aa8063fe07d546abcf7a87b782de99a702a9d92d | 4,641 | cpp | C++ | unittests/vm/ds/BooleanVariantTest.cpp | normal-coder/polarphp | a06e1f8781b4b75a2ca8cf2c22e0aa62631866fe | [
"PHP-3.01"
] | 1 | 2019-01-28T01:33:49.000Z | 2019-01-28T01:33:49.000Z | unittests/vm/ds/BooleanVariantTest.cpp | normal-coder/polarphp | a06e1f8781b4b75a2ca8cf2c22e0aa62631866fe | [
"PHP-3.01"
] | null | null | null | unittests/vm/ds/BooleanVariantTest.cpp | normal-coder/polarphp | a06e1f8781b4b75a2ca8cf2c22e0aa62631866fe | [
"PHP-3.01"
] | null | null | null | // This source file is part of the polarphp.org open source project
//
// Copyright (c) 2017 - 2018 polarphp software foundation
// Copyright (c) 2017 - 2018 zzu_softboy <zzu_softboy@163.com>
// Licensed under Apache License v2.0 with Runtime Library Exception
//
// See https://polarphp.org/LICENSE.txt for license info... | 29.941935 | 85 | 0.687136 | normal-coder |
aa8088f07564842c7e7b05e758dbdfef48eff618 | 1,782 | hpp | C++ | integrators/mock_integrators.hpp | net-lisias-ksp/Principia | 9292ea1fc2e4b4f0ce7a717e2f507168519f5f8a | [
"MIT"
] | 565 | 2015-01-04T21:47:18.000Z | 2022-03-22T12:04:58.000Z | integrators/mock_integrators.hpp | net-lisias-ksp/Principia | 9292ea1fc2e4b4f0ce7a717e2f507168519f5f8a | [
"MIT"
] | 1,019 | 2015-01-03T11:42:27.000Z | 2022-03-29T21:02:15.000Z | integrators/mock_integrators.hpp | pleroy/Principia | 64c4c6c124f4744381b6489e39e6b53e2a440ce9 | [
"MIT"
] | 92 | 2015-02-11T23:08:58.000Z | 2022-03-21T03:35:37.000Z |
#pragma once
#include "base/not_null.hpp"
#include "gmock/gmock.h"
#include "integrators/integrators.hpp"
namespace principia {
namespace integrators {
namespace internal_integrators {
using base::make_not_null_unique;
template<typename DifferentialEquation>
class MockFixedStepSizeIntegrator
: public FixedSte... | 28.741935 | 78 | 0.675084 | net-lisias-ksp |
aa80adf3b0cb453b89bc2e05b4abd433100f339b | 11,888 | cpp | C++ | Plugins/ParticleUniverse/src/ParticleUniverseDynamicAttributeTokens.cpp | LtZ675/particleuniverse | dc4e1dcc24a1f93422022d8a495a5db9e503f2e3 | [
"MIT"
] | 27 | 2017-11-08T07:57:22.000Z | 2022-03-18T03:42:39.000Z | Plugins/ParticleUniverse/src/ParticleUniverseDynamicAttributeTokens.cpp | LtZ675/particleuniverse | dc4e1dcc24a1f93422022d8a495a5db9e503f2e3 | [
"MIT"
] | 2 | 2019-03-17T10:52:44.000Z | 2021-08-22T10:20:31.000Z | Plugins/ParticleUniverse/src/ParticleUniverseDynamicAttributeTokens.cpp | LtZ675/particleuniverse | dc4e1dcc24a1f93422022d8a495a5db9e503f2e3 | [
"MIT"
] | 12 | 2016-10-13T13:48:56.000Z | 2021-12-09T06:38:43.000Z | /*
-----------------------------------------------------------------------------------------------
Copyright (C) 2013 Henry van Merode. All rights reserved.
Permission is hereby granted, free of charge, to any person obtaining a copy of
this software and associated documentation files (the "Software"), to deal in... | 38.723127 | 157 | 0.638122 | LtZ675 |
aa80fda2b5ffa0d880eabf0882ef00c6d2cf366d | 1,979 | hpp | C++ | iceoryx_posh/test/mocks/trigger_handle_mock.hpp | neilisaac/iceoryx | 7faa8951ecc9f41a421ef888013f120e8f9e7fa5 | [
"Apache-2.0"
] | null | null | null | iceoryx_posh/test/mocks/trigger_handle_mock.hpp | neilisaac/iceoryx | 7faa8951ecc9f41a421ef888013f120e8f9e7fa5 | [
"Apache-2.0"
] | null | null | null | iceoryx_posh/test/mocks/trigger_handle_mock.hpp | neilisaac/iceoryx | 7faa8951ecc9f41a421ef888013f120e8f9e7fa5 | [
"Apache-2.0"
] | null | null | null | // Copyright (c) 2022 by Apex.AI Inc. All rights reserved.
//
// 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 ap... | 32.442623 | 93 | 0.705407 | neilisaac |
aa81af34c8fe6f75552ce606ebc621634c9c86a8 | 27,636 | cpp | C++ | src/lib/tools/LinkedArray.cpp | Lut99/Rasterizer | 453864506db749a93fb82fb17cc5ee88cc4ada01 | [
"MIT"
] | 1 | 2021-08-15T19:20:14.000Z | 2021-08-15T19:20:14.000Z | src/lib/tools/LinkedArray.cpp | Lut99/Rasterizer | 453864506db749a93fb82fb17cc5ee88cc4ada01 | [
"MIT"
] | 17 | 2021-06-05T12:37:04.000Z | 2021-10-01T10:20:09.000Z | src/lib/tools/LinkedArray.cpp | Lut99/Rasterizer | 453864506db749a93fb82fb17cc5ee88cc4ada01 | [
"MIT"
] | null | null | null | /* LINKED ARRAY.cpp
* by Lut99
*
* Created:
* 30/07/2021, 15:00:56
* Last edited:
* 04/08/2021, 18:27:37
* Auto updated?
* Yes
*
* Description:
* Contains the LinkedArray class, which is our implementation of a
* linked list.
**/
#include <stdexcept>
#include "LinkedArray.hpp"
/***** LINKEDA... | 33.216346 | 213 | 0.646041 | Lut99 |
aa821fc1fcd24d130dc74033cee30ca2b68bbe94 | 12,945 | cpp | C++ | src/hardware_interface.cpp | mh-Robotics/jimmbot_base | 3703203a0b213d58700ce1860fd60a13042b1cb5 | [
"MIT"
] | null | null | null | src/hardware_interface.cpp | mh-Robotics/jimmbot_base | 3703203a0b213d58700ce1860fd60a13042b1cb5 | [
"MIT"
] | null | null | null | src/hardware_interface.cpp | mh-Robotics/jimmbot_base | 3703203a0b213d58700ce1860fd60a13042b1cb5 | [
"MIT"
] | null | null | null | #include "jimmbot_base/hardware_interface.hpp"
#include "controller_manager/controller_manager.h"
#include <ros/callback_queue.h>
namespace jimmbot_base
{
JimmBotHardwareInterface::JimmBotHardwareInterface(ros::NodeHandle* nh, ros::NodeHandle* nh_param)
: lights_(false, false)
, camera_angles_(HardwareInte... | 52.621951 | 190 | 0.745925 | mh-Robotics |
aa85237620f6a744337992e407eed605f71521c5 | 1,312 | cpp | C++ | src/Rodin/Variational/ShapeFunction.cpp | carlos-brito-pacheco/rodin | f2c946b290ebb2487a21c617de01be91a0692c72 | [
"BSL-1.0"
] | 1 | 2021-12-02T19:04:38.000Z | 2021-12-02T19:04:38.000Z | src/Rodin/Variational/ShapeFunction.cpp | cbritopacheco/rodin | f2c946b290ebb2487a21c617de01be91a0692c72 | [
"BSL-1.0"
] | null | null | null | src/Rodin/Variational/ShapeFunction.cpp | cbritopacheco/rodin | f2c946b290ebb2487a21c617de01be91a0692c72 | [
"BSL-1.0"
] | null | null | null | #include <cmath>
#include "ShapeFunction.h"
namespace Rodin::Variational
{}
namespace Rodin::Variational::Internal
{
int ScalarShapeR3O::GetRows() const
{
return m_vdim;
}
int ScalarShapeR3O::GetColumns() const
{
return 1;
}
int ScalarShapeR3O::GetDOFs() const
{
return m_s... | 21.16129 | 93 | 0.567073 | carlos-brito-pacheco |
aa85ebf2b82470350b5a1021ab1e50e8b13272e5 | 1,573 | cpp | C++ | libraries/chain/services/scorumpower_delegation.cpp | scorum/scorum | 1da00651f2fa14bcf8292da34e1cbee06250ae78 | [
"MIT"
] | 53 | 2017-10-28T22:10:35.000Z | 2022-02-18T02:20:48.000Z | libraries/chain/services/scorumpower_delegation.cpp | Scorum/Scorum | fb4aa0b0960119b97828865d7a5b4d0409af7876 | [
"MIT"
] | 38 | 2017-11-25T09:06:51.000Z | 2018-10-31T09:17:22.000Z | libraries/chain/services/scorumpower_delegation.cpp | Scorum/Scorum | fb4aa0b0960119b97828865d7a5b4d0409af7876 | [
"MIT"
] | 27 | 2018-01-08T19:43:35.000Z | 2022-01-14T10:50:42.000Z | #include <tuple>
#include <scorum/chain/services/scorumpower_delegation.hpp>
#include <scorum/chain/services/dynamic_global_property.hpp>
#include <scorum/chain/database/database.hpp>
#include <scorum/chain/schema/account_objects.hpp>
using namespace scorum::protocol;
namespace scorum {
namespace chain {
dbs_scorump... | 34.195652 | 120 | 0.729816 | scorum |
aa8663ae18d1de8b7d142973356415d904060128 | 385 | cpp | C++ | thinking-in-cpp/code/1-15-vptr.cpp | liphx/cplusplus | 65df073dc92fa58947e5ff728fc63db839e12760 | [
"MIT"
] | null | null | null | thinking-in-cpp/code/1-15-vptr.cpp | liphx/cplusplus | 65df073dc92fa58947e5ff728fc63db839e12760 | [
"MIT"
] | null | null | null | thinking-in-cpp/code/1-15-vptr.cpp | liphx/cplusplus | 65df073dc92fa58947e5ff728fc63db839e12760 | [
"MIT"
] | null | null | null | #include <iostream>
using namespace std;
class A{
int i;
public:
void f() { }
};
class B{
int i;
public:
virtual void f() { }
};
class C{
int i;
public:
virtual void f() { }
virtual void g() { }
};
int main()
{
cout << sizeof(A) << endl;
cout << sizeof(B) << endl;
cout << siz... | 12.419355 | 32 | 0.52987 | liphx |
aa894cdda5da086fe53a1875dbe2fcce433ea007 | 2,237 | cpp | C++ | assignments/a4-euler/unique.cpp | oshevchuk27/animation-toolkit | ff0b1a508a859e97c9e8a9561e7eda8ad83d1a84 | [
"MIT"
] | null | null | null | assignments/a4-euler/unique.cpp | oshevchuk27/animation-toolkit | ff0b1a508a859e97c9e8a9561e7eda8ad83d1a84 | [
"MIT"
] | null | null | null | assignments/a4-euler/unique.cpp | oshevchuk27/animation-toolkit | ff0b1a508a859e97c9e8a9561e7eda8ad83d1a84 | [
"MIT"
] | null | null | null | #include "atkui/framework.h"
#include <math.h>
#include "atkmath/vector3.h"
#include "atkmath/matrix3.h"
using namespace glm;
using atkmath::Matrix3;
using atkmath::Vector3;
using atkmath::Deg2Rad;
using atkmath::Rad2Deg;
class Unique : public atkui::Framework {
public:
Unique() : atkui::Framework(atkui::Orthograp... | 16.819549 | 51 | 0.603487 | oshevchuk27 |
aa938f5a150b93f0d4c642ccca6b37d6b9d69b85 | 121 | cpp | C++ | sm_common/src/hash_id.cpp | christian-rauch/schweizer_messer | 9b8f99f4387e7a8f4105e54b27f22ecee5ea0cd0 | [
"BSD-3-Clause"
] | 170 | 2016-02-01T18:58:50.000Z | 2022-03-17T05:28:01.000Z | sm_common/src/hash_id.cpp | christian-rauch/schweizer_messer | 9b8f99f4387e7a8f4105e54b27f22ecee5ea0cd0 | [
"BSD-3-Clause"
] | 162 | 2016-01-29T17:04:29.000Z | 2022-02-10T16:25:37.000Z | sm_common/src/hash_id.cpp | christian-rauch/schweizer_messer | 9b8f99f4387e7a8f4105e54b27f22ecee5ea0cd0 | [
"BSD-3-Clause"
] | 83 | 2016-01-28T22:49:01.000Z | 2022-03-28T03:11:24.000Z | #include "sm/hash_id.hpp"
namespace sm {
const char HashId::kHexConversion[] = "0123456789abcdef";
} // namespace sm
| 15.125 | 57 | 0.710744 | christian-rauch |
aa9552df0d4888faf2ac5a16db30bd52f810999d | 2,120 | hpp | C++ | CppCoreLibrary/QLExtension/instruments/pricingperiodext.hpp | qg0/EliteQuant_Excel | 987bb670e8be0e60525dde656d5a315e9a6ac718 | [
"Apache-2.0"
] | 6 | 2021-05-21T23:06:04.000Z | 2022-02-18T17:29:10.000Z | CppCoreLibrary/QLExtension/instruments/pricingperiodext.hpp | qg0/EliteQuant_Excel | 987bb670e8be0e60525dde656d5a315e9a6ac718 | [
"Apache-2.0"
] | null | null | null | CppCoreLibrary/QLExtension/instruments/pricingperiodext.hpp | qg0/EliteQuant_Excel | 987bb670e8be0e60525dde656d5a315e9a6ac718 | [
"Apache-2.0"
] | 2 | 2021-06-24T13:45:45.000Z | 2021-09-23T11:13:12.000Z | #ifndef qlex_pricing_period_ext_hpp
#define qlex_pricing_period_ext_hpp
#include <instruments/dateintervalext.hpp>
#include <vector>
namespace QLExtension {
//! Time pricingperiod described by a number of a given time unit
/*! \ingroup datetime */
class PricingPeriodExt : public DateIntervalExt {
p... | 35.333333 | 99 | 0.698585 | qg0 |
aa97e7410e2e5216cdefb74ed8fe0c054c3e91f4 | 1,843 | cpp | C++ | Platform/libraries/Proto-8_Audio/src/synth_dc_binary.cpp | marshalltaylorSFE/Proto-8 | c56c0ae2259f1a8994c5765c683befa7d233ffc4 | [
"MIT"
] | 14 | 2017-01-20T03:38:40.000Z | 2022-03-12T14:19:20.000Z | Platform/libraries/Proto-8_Audio/src/synth_dc_binary.cpp | marshalltaylorSFE/Proto-8 | c56c0ae2259f1a8994c5765c683befa7d233ffc4 | [
"MIT"
] | 1 | 2017-05-11T00:35:16.000Z | 2017-05-11T00:35:16.000Z | Platform/libraries/Proto-8_Audio/src/synth_dc_binary.cpp | marshalltaylorSFE/Proto-8 | c56c0ae2259f1a8994c5765c683befa7d233ffc4 | [
"MIT"
] | 4 | 2016-11-03T04:57:48.000Z | 2021-03-02T06:40:44.000Z | // Licenced as BeerWare
// Written by Marshall Taylor
// 2016
//
// You are free to do what you want with this file as long as you retain this header,
// and in the event that we meet you buy me a beer at your discretion.
//
//--------------------------------------------------------------------------------------
... | 23.935065 | 88 | 0.642973 | marshalltaylorSFE |
aa9ff791fe4616fe184b4d1717c465de332f697e | 514 | cpp | C++ | 2.1 Pointer/variabel_pointer.cpp | arryaaas/Programming-Algorithms | f469431830cbe528feb297abd47d2d6c08e0781a | [
"MIT"
] | null | null | null | 2.1 Pointer/variabel_pointer.cpp | arryaaas/Programming-Algorithms | f469431830cbe528feb297abd47d2d6c08e0781a | [
"MIT"
] | null | null | null | 2.1 Pointer/variabel_pointer.cpp | arryaaas/Programming-Algorithms | f469431830cbe528feb297abd47d2d6c08e0781a | [
"MIT"
] | null | null | null | #include <iostream>
using namespace std;
int main() {
int bilangan = 24;
int *pbilangan = &bilangan;
cout << "Tanpa pointer" << endl;
cout << "Bilangan : " << bilangan << endl;
cout << "Alamat : " << &bilangan << endl;
cout << "Dengan Pointer" << endl;
cout << "Bilangan : " << *pbilangan... | 23.363636 | 54 | 0.607004 | arryaaas |
aaa15b58a1b6b7f679af8d1d3b553f3a873c8ecf | 2,303 | hpp | C++ | include/caffe/layers/mapmetricloss_layer.hpp | tushar00jain/cvpr18_rnn_deblur_matcaffe | a978a15b331e8b44fa92c4c83256169a66b197fd | [
"MIT"
] | 32 | 2018-09-06T14:37:26.000Z | 2022-01-11T13:20:17.000Z | include/caffe/layers/mapmetricloss_layer.hpp | tushar00jain/cvpr18_rnn_deblur_matcaffe | a978a15b331e8b44fa92c4c83256169a66b197fd | [
"MIT"
] | 4 | 2018-09-18T03:06:56.000Z | 2021-12-03T10:42:14.000Z | include/caffe/layers/mapmetricloss_layer.hpp | tushar00jain/cvpr18_rnn_deblur_matcaffe | a978a15b331e8b44fa92c4c83256169a66b197fd | [
"MIT"
] | 9 | 2018-09-22T03:02:18.000Z | 2021-06-15T12:07:35.000Z | /*
* Author: Liangji
* Email: liangji20040249@gmail.com
*/
#ifndef CAFFE_MAPMETRICLOSS_LAYER_HPP_
#define CAFFE_MAPMETRICLOSS_LAYER_HPP_
#include <vector>
#include "caffe/blob.hpp"
#include "caffe/layer.hpp"
#include "caffe/layers/loss_layer.hpp"
#include "caffe/proto/caffe.pb.h"
namespace caffe {
template <type... | 27.746988 | 82 | 0.70343 | tushar00jain |
aaac4e46d9a4d210387e35a1157ce253a86b2c31 | 875 | cpp | C++ | graph/bfs/abc99_c.cpp | Takumi1122/data-structure-algorithm | 6b9f26e4dbba981f034518a972ecfc698b86d837 | [
"MIT"
] | null | null | null | graph/bfs/abc99_c.cpp | Takumi1122/data-structure-algorithm | 6b9f26e4dbba981f034518a972ecfc698b86d837 | [
"MIT"
] | null | null | null | graph/bfs/abc99_c.cpp | Takumi1122/data-structure-algorithm | 6b9f26e4dbba981f034518a972ecfc698b86d837 | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
#define rep(i, n) for (int i = 0; i < (n); ++i)
using namespace std;
using ll = long long;
using P = pair<int, int>;
using Graph = vector<vector<int>>;
// BFS
/*
参考リンク
ABC 99 C - Strange Bank
https://atcoder.jp/contests/abc099/tasks/abc099_c
*/
const int MAX_N = 110000;
int dp[... | 17.857143 | 55 | 0.478857 | Takumi1122 |
aaad09a7a361aeee4ac107882c208e8d4e60640c | 323 | cpp | C++ | find_if/main.cpp | colorhistory/data-structure-and-algorithm | 402d1ab29e627ebd471632080e5b7194fe892a78 | [
"MIT"
] | null | null | null | find_if/main.cpp | colorhistory/data-structure-and-algorithm | 402d1ab29e627ebd471632080e5b7194fe892a78 | [
"MIT"
] | null | null | null | find_if/main.cpp | colorhistory/data-structure-and-algorithm | 402d1ab29e627ebd471632080e5b7194fe892a78 | [
"MIT"
] | null | null | null | #include "bits/stdc++.h"
#include "find_if.hpp"
bool greaterFive(int value) {
if (value > 5) {
return true;
}
return false;
}
int main() {
std::vector<int> vec{5, 2, 6, 9, 10, 3};
std::cout << ALGO::find_if(vec.cbegin(), vec.cend(), greaterFive) - vec.begin() << std::endl;
return 0;... | 17.944444 | 97 | 0.560372 | colorhistory |
82b2a89957ac2cc9b66fc6b1f3b8ca8919bd99d5 | 636 | cpp | C++ | core/src/entity/Entity.cpp | Floriantoine/MyHunter_Sfml | 8744e1b03d9d5fb621f9cba7619d9d5dd943e428 | [
"MIT"
] | null | null | null | core/src/entity/Entity.cpp | Floriantoine/MyHunter_Sfml | 8744e1b03d9d5fb621f9cba7619d9d5dd943e428 | [
"MIT"
] | null | null | null | core/src/entity/Entity.cpp | Floriantoine/MyHunter_Sfml | 8744e1b03d9d5fb621f9cba7619d9d5dd943e428 | [
"MIT"
] | null | null | null | #include "entity/Entity.hpp"
namespace fa {
Entity::Entity()
{
id_t id = this->getNextId();
this->_name = std::to_string(id);
this->_id = tools::stringToId(_name);
}
Entity::Entity(const std::string name)
: _id{tools::stringToId(name)}, _name(name)
{
}
Entity &Entity::operator=(const Entity ©)
{
... | 17.666667 | 47 | 0.638365 | Floriantoine |
82b61a98b86bebc9400cfffebb9fe90b4ba12630 | 19,180 | cpp | C++ | tsc/tsc/tsc.cpp | ASDAlexander77/TypeScriptCompiler | a8152a03c54fdd9877fd4202f51f30e484b60907 | [
"MIT"
] | 171 | 2021-02-17T19:01:41.000Z | 2022-03-31T09:00:24.000Z | tsc/tsc/tsc.cpp | ASDAlexander77/TypeScriptCompiler | a8152a03c54fdd9877fd4202f51f30e484b60907 | [
"MIT"
] | 12 | 2021-09-04T14:16:00.000Z | 2022-03-29T15:46:42.000Z | tsc/tsc/tsc.cpp | ASDAlexander77/TypeScriptCompiler | a8152a03c54fdd9877fd4202f51f30e484b60907 | [
"MIT"
] | 6 | 2021-09-30T07:30:01.000Z | 2022-01-19T21:04:57.000Z | #define DEBUG_TYPE "tsc"
#include "TypeScript/Config.h"
#include "TypeScript/Defines.h"
#include "TypeScript/MLIRGen.h"
#include "TypeScript/Passes.h"
#include "TypeScript/TypeScriptDialect.h"
#include "TypeScript/TypeScriptOps.h"
#include "TypeScript/TypeScriptToLLVMIRTranslation.h"
#include "TypeScript/TypeScriptGC.... | 33.012048 | 139 | 0.640198 | ASDAlexander77 |
82bccbe735f59f9688695da0ca98b32794735b25 | 1,153 | hpp | C++ | include/Utils/StringUtils.hpp | BeatLeader/beatleader-qmod | 43b770d1294079b298406284d4da25d9e8916fd7 | [
"MIT"
] | 9 | 2022-02-23T13:36:15.000Z | 2022-03-28T17:10:05.000Z | include/Utils/StringUtils.hpp | BeatLeader/beatleader-qmod | 43b770d1294079b298406284d4da25d9e8916fd7 | [
"MIT"
] | 1 | 2022-03-14T04:38:07.000Z | 2022-03-20T13:35:33.000Z | include/Utils/StringUtils.hpp | BeatLeader/beatleader-qmod | 43b770d1294079b298406284d4da25d9e8916fd7 | [
"MIT"
] | 1 | 2022-03-11T19:31:18.000Z | 2022-03-11T19:31:18.000Z | #pragma once
#include <string>
#include <iostream>
#include <sstream>
using namespace std;
template <typename T>
inline string to_string_wprecision(const T a_value, const int n = 6)
{
std::ostringstream out;
out.precision(n);
out << std::fixed << a_value;
return out.str();
}
inline char asciitolower... | 23.06 | 80 | 0.605377 | BeatLeader |
82c11eec33a2cff80c1743c53d2ec730c13195f8 | 18,177 | hpp | C++ | rice/Constructor.hpp | keyme/rice | 4b5e4ad3e2294a1b58886fb946eb26e3512599d9 | [
"BSD-2-Clause"
] | null | null | null | rice/Constructor.hpp | keyme/rice | 4b5e4ad3e2294a1b58886fb946eb26e3512599d9 | [
"BSD-2-Clause"
] | null | null | null | rice/Constructor.hpp | keyme/rice | 4b5e4ad3e2294a1b58886fb946eb26e3512599d9 | [
"BSD-2-Clause"
] | null | null | null | #ifndef Rice__Constructor__hpp_
#define Rice__Constructor__hpp_
// This is a generated file. DO NOT EDIT!!
// This causes problems with certain C++ libraries
#undef TYPE
#include "to_from_ruby_defn.hpp"
#include "detail/method_data.hpp"
namespace Rice
{
template<typename T, typename Arg0_T=void, typename Arg1_T=... | 49.260163 | 380 | 0.677725 | keyme |
82c59c7f6fd9b68beae20fff09de5e621e131577 | 722 | cpp | C++ | Strings/zigzag_conversion.cpp | khushisinha20/Data-Structures-and-Algorithms | 114d365d03f7ba7175eefeace281972820a7fc76 | [
"Apache-2.0"
] | null | null | null | Strings/zigzag_conversion.cpp | khushisinha20/Data-Structures-and-Algorithms | 114d365d03f7ba7175eefeace281972820a7fc76 | [
"Apache-2.0"
] | null | null | null | Strings/zigzag_conversion.cpp | khushisinha20/Data-Structures-and-Algorithms | 114d365d03f7ba7175eefeace281972820a7fc76 | [
"Apache-2.0"
] | null | null | null | //leetcode.com/problems/zigzag-conversion/
#include <bits/stdc++.h>
#include <vector>
using namespace std;
class Solution {
public:
string convert(string s, int numRows) {
vector<string> rows_of_s(numRows, "");
int start = 0;
while (start < s.length()) {
for (int i = 0; i < num... | 26.740741 | 74 | 0.480609 | khushisinha20 |
82c5c8361e77f3b5b4a3936d83ecffe4394436cb | 1,072 | cpp | C++ | LeetCodeCPP/_1201. Ugly Number III/main.cpp | 18600130137/leetcode | fd2dc72c0b85da50269732f0fcf91326c4787d3a | [
"Apache-2.0"
] | 1 | 2019-03-29T03:33:56.000Z | 2019-03-29T03:33:56.000Z | LeetCodeCPP/_1201. Ugly Number III/main.cpp | 18600130137/leetcode | fd2dc72c0b85da50269732f0fcf91326c4787d3a | [
"Apache-2.0"
] | null | null | null | LeetCodeCPP/_1201. Ugly Number III/main.cpp | 18600130137/leetcode | fd2dc72c0b85da50269732f0fcf91326c4787d3a | [
"Apache-2.0"
] | null | null | null | //
// main.cpp
// _1201. Ugly Number III
//
// Created by admin on 2019/9/26.
// Copyright © 2019年 liu. All rights reserved.
//
#include <iostream>
using namespace std;
class Solution {
private:
int gcd(int a,int b){
if(a==0){
return b;
}
return gcd(b%a,a);
}
... | 21.019608 | 85 | 0.489739 | 18600130137 |
82c5e82b6ac9bd9a94008cdeb65761ff603c14ef | 280 | hpp | C++ | src/ssc2ce.hpp | olned/ssc2ce-cpp | 306188fa66322773721f71a8b52ea107ff2288cd | [
"BSL-1.0"
] | null | null | null | src/ssc2ce.hpp | olned/ssc2ce-cpp | 306188fa66322773721f71a8b52ea107ff2288cd | [
"BSL-1.0"
] | null | null | null | src/ssc2ce.hpp | olned/ssc2ce-cpp | 306188fa66322773721f71a8b52ea107ff2288cd | [
"BSL-1.0"
] | null | null | null | // Copyright Oleg Nedbaylo 2020.
// Distributed under the Boost Software License, Version 1.0.
// See accompanying file LICENSE
// or copy at http://www.boost.org/LICENSE_1_0.txt
namespace ssc2ce
{
class Parser{
public:
virtual ~Parser() {}
};
} // namespace ssc2ce | 18.666667 | 61 | 0.7 | olned |
82c7cc1d44300cf09d2f040efcce7063cb13f7f2 | 29,332 | cpp | C++ | src/OGL_Utils.cpp | ericwolter/position-based-fluids | 30e92ead037b397573a0b7fb9fbac3770093793a | [
"MIT"
] | 2 | 2018-01-03T01:26:54.000Z | 2022-01-01T08:43:04.000Z | src/OGL_Utils.cpp | ericwolter/position-based-fluids | 30e92ead037b397573a0b7fb9fbac3770093793a | [
"MIT"
] | null | null | null | src/OGL_Utils.cpp | ericwolter/position-based-fluids | 30e92ead037b397573a0b7fb9fbac3770093793a | [
"MIT"
] | null | null | null | #include "OGL_Utils.h"
#include <glm/glm.hpp>
#include <glm/gtc/matrix_transform.hpp>
#include <glm/gtc/matrix_inverse.hpp>
#include <glm/gtc/type_ptr.hpp>
#include <map>
#include <fstream>
#include <iostream>
#include <sstream>
#include <algorithm>
#include <functional>
#include <cctype>
using namespace std;
//
/... | 35.510896 | 162 | 0.583902 | ericwolter |
82cd823e79d3a56b4475995d2b8fd8c0c673f1e0 | 914 | cpp | C++ | Source/UnrealCPP/FindPlayerPosition/FindPlayerPosition.cpp | Harrison1/unrealcpp-full-project | a0a84d124b3023a87cbcbf12cf8ee0a833dd4302 | [
"MIT"
] | 6 | 2018-04-22T15:27:39.000Z | 2021-11-02T17:33:58.000Z | Source/UnrealCPP/FindPlayerPosition/FindPlayerPosition.cpp | Harrison1/unrealcpp-full-project | a0a84d124b3023a87cbcbf12cf8ee0a833dd4302 | [
"MIT"
] | null | null | null | Source/UnrealCPP/FindPlayerPosition/FindPlayerPosition.cpp | Harrison1/unrealcpp-full-project | a0a84d124b3023a87cbcbf12cf8ee0a833dd4302 | [
"MIT"
] | 4 | 2018-07-26T15:39:46.000Z | 2020-12-28T08:10:35.000Z | // Harrison McGuire
// UE4 Version 4.18.2
// https://github.com/Harrison1/unrealcpp
// https://severallevels.io
// https://harrisonmcguire.com
#include "FindPlayerPosition.h"
// Sets default values
AFindPlayerPosition::AFindPlayerPosition()
{
// Set this actor to call Tick() every frame. You can turn this off ... | 24.052632 | 129 | 0.737418 | Harrison1 |
82ce2715c4e738f5e0cecad876d8a5b9bd87e1fc | 7,185 | cpp | C++ | src/lib/testsuite.cpp | bloomen/libunittest | b168539c70e5ac8a3c67d295e368d07f3c1854fb | [
"MIT"
] | 2 | 2020-11-05T12:38:35.000Z | 2021-03-19T06:02:03.000Z | src/lib/testsuite.cpp | bloomen/libunittest | b168539c70e5ac8a3c67d295e368d07f3c1854fb | [
"MIT"
] | null | null | null | src/lib/testsuite.cpp | bloomen/libunittest | b168539c70e5ac8a3c67d295e368d07f3c1854fb | [
"MIT"
] | null | null | null | #include "libunittest/testsuite.hpp"
#include "libunittest/teststatus.hpp"
#include "libunittest/utilities.hpp"
#include "libunittest/testfailure.hpp"
#include <mutex>
#include <memory>
#include <chrono>
#include <vector>
#include <map>
namespace unittest {
namespace core {
struct testsuite::impl {
bool keep_run... | 28.74 | 129 | 0.681698 | bloomen |
82d16ca80416761f596cbaec3897acccb8d911ae | 5,151 | cpp | C++ | ShellDLL/Pageant.cpp | jet2jet/EasySFTP | 331ee9f8c7b40aa8938409c791f5664d90ee3c9c | [
"BSD-3-Clause"
] | 2 | 2018-10-20T08:56:40.000Z | 2018-10-20T09:08:08.000Z | ShellDLL/Pageant.cpp | jet2jet/EasySFTP | 331ee9f8c7b40aa8938409c791f5664d90ee3c9c | [
"BSD-3-Clause"
] | null | null | null | ShellDLL/Pageant.cpp | jet2jet/EasySFTP | 331ee9f8c7b40aa8938409c791f5664d90ee3c9c | [
"BSD-3-Clause"
] | 2 | 2018-10-20T08:56:32.000Z | 2018-10-20T12:43:43.000Z | #include "stdafx.h"
#include "ShellDLL.h"
#include "Pageant.h"
#define AGENT_MAX_MSGLEN 262144
#define GET_32BIT_MSB_FIRST(cp) \
(((unsigned long)(unsigned char)(cp)[0] << 24) | \
((unsigned long)(unsigned char)(cp)[1] << 16) | \
((unsigned long)(unsigned char)(cp)[2] << 8) | \
((unsigned long)(uns... | 27.110526 | 151 | 0.661231 | jet2jet |
82d3b4de9991c6b433c0bb938095be7f04e1f387 | 5,514 | hpp | C++ | XASM/lexer_t.hpp | akzi/XScript | 5c2f92508bb7e10696eb822688b9f9a1b538a70b | [
"MIT"
] | 1 | 2019-07-01T15:52:31.000Z | 2019-07-01T15:52:31.000Z | XASM/lexer_t.hpp | akzi/XScript | 5c2f92508bb7e10696eb822688b9f9a1b538a70b | [
"MIT"
] | null | null | null | XASM/lexer_t.hpp | akzi/XScript | 5c2f92508bb7e10696eb822688b9f9a1b538a70b | [
"MIT"
] | 3 | 2017-09-03T09:34:42.000Z | 2020-09-21T18:46:30.000Z | #pragma once
#include <string>
#include <fstream>
#include "..\common\token_t.hpp"
#include "..\common\instr_map_t.hpp"
class lexer_t
{
public:
lexer_t()
{
}
bool init(const std::string &filepath)
{
pos_ = 0;
if(load(filepath) == false)
return false;
len_ = codes_.size();
return true;... | 20.422222 | 68 | 0.585056 | akzi |
82daecbe636ed48e84e0576b998fb8357d572328 | 1,808 | cc | C++ | madness/src/lib/world/array_test.cc | spowers/INDDGO-survey | 860f15376f7be074f47280a74b912a8f0baa37bf | [
"BSD-3-Clause"
] | 9 | 2015-05-30T00:33:04.000Z | 2021-04-23T17:19:58.000Z | madness/src/lib/world/array_test.cc | spowers/INDDGO-survey | 860f15376f7be074f47280a74b912a8f0baa37bf | [
"BSD-3-Clause"
] | 3 | 2016-03-04T19:46:40.000Z | 2017-01-14T13:44:21.000Z | madness/src/lib/world/array_test.cc | spowers/INDDGO-survey | 860f15376f7be074f47280a74b912a8f0baa37bf | [
"BSD-3-Clause"
] | 5 | 2015-11-29T08:50:50.000Z | 2020-03-14T23:12:22.000Z | /*
This file is part of MADNESS.
Copyright (C) 2007,2010 Oak Ridge National Laboratory
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option... | 24.767123 | 84 | 0.679204 | spowers |
82de19919d23bab85ebbea838be5e393c9630b5b | 1,463 | cpp | C++ | android-30/android/app/SyncNotedAppOp.cpp | YJBeetle/QtAndroidAPI | 1468b5dc6eafaf7709f0b00ba1a6ec2b70684266 | [
"Apache-2.0"
] | 12 | 2020-03-26T02:38:56.000Z | 2022-03-14T08:17:26.000Z | android-31/android/app/SyncNotedAppOp.cpp | YJBeetle/QtAndroidAPI | 1468b5dc6eafaf7709f0b00ba1a6ec2b70684266 | [
"Apache-2.0"
] | 1 | 2021-01-27T06:07:45.000Z | 2021-11-13T19:19:43.000Z | android-30/android/app/SyncNotedAppOp.cpp | YJBeetle/QtAndroidAPI | 1468b5dc6eafaf7709f0b00ba1a6ec2b70684266 | [
"Apache-2.0"
] | 3 | 2021-02-02T12:34:55.000Z | 2022-03-08T07:45:57.000Z | #include "../os/Parcel.hpp"
#include "../../JObject.hpp"
#include "../../JString.hpp"
#include "./SyncNotedAppOp.hpp"
namespace android::app
{
// Fields
JObject SyncNotedAppOp::CREATOR()
{
return getStaticObjectField(
"android.app.SyncNotedAppOp",
"CREATOR",
"Landroid/os/Parcelable$Creator;"
);
}
/... | 18.75641 | 78 | 0.663021 | YJBeetle |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.