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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
9f53d7d339f4508c9640959cb2f8cbcdc2df1d51 | 2,066 | cpp | C++ | libraries/chain/webassembly/mos-vm-oc.cpp | moschain/moschain-master | 418531f281a8a1fb58621bb7f38ad3202edce46f | [
"MIT"
] | null | null | null | libraries/chain/webassembly/mos-vm-oc.cpp | moschain/moschain-master | 418531f281a8a1fb58621bb7f38ad3202edce46f | [
"MIT"
] | null | null | null | libraries/chain/webassembly/mos-vm-oc.cpp | moschain/moschain-master | 418531f281a8a1fb58621bb7f38ad3202edce46f | [
"MIT"
] | null | null | null | #include <mos/chain/webassembly/mos-vm-oc.hpp>
#include <mos/chain/wasm_mos_constraints.hpp>
#include <mos/chain/wasm_mos_injection.hpp>
#include <mos/chain/apply_context.hpp>
#include <mos/chain/exceptions.hpp>
#include <vector>
#include <iterator>
namespace mos { namespace chain { namespace webassembly { namespace ... | 37.563636 | 167 | 0.707164 | moschain |
9f5627660d1ac41bcdd6b017984e6a090b0a579c | 1,178 | hpp | C++ | include/argot/conc/expand/expansion_operator.hpp | mattcalabrese/argot | 97349baaf27659c9dc4d67cf8963b2e871eaedae | [
"BSL-1.0"
] | 49 | 2018-05-09T23:17:45.000Z | 2021-07-21T10:05:19.000Z | include/argot/conc/expand/expansion_operator.hpp | mattcalabrese/argot | 97349baaf27659c9dc4d67cf8963b2e871eaedae | [
"BSL-1.0"
] | null | null | null | include/argot/conc/expand/expansion_operator.hpp | mattcalabrese/argot | 97349baaf27659c9dc4d67cf8963b2e871eaedae | [
"BSL-1.0"
] | 2 | 2019-08-04T03:51:36.000Z | 2020-12-28T06:53:29.000Z | /*==============================================================================
Copyright (c) 2018 Matt Calabrese
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)
===================================================... | 30.205128 | 80 | 0.662139 | mattcalabrese |
9f56818db0dda76c839b0c53a9b7698665ac279c | 82 | cpp | C++ | _WinMain/GameObject.cpp | SinJunghyeon/Battle-City | 6e1427f6ea939e48ef3da65789d40372c005a8fb | [
"MIT"
] | null | null | null | _WinMain/GameObject.cpp | SinJunghyeon/Battle-City | 6e1427f6ea939e48ef3da65789d40372c005a8fb | [
"MIT"
] | null | null | null | _WinMain/GameObject.cpp | SinJunghyeon/Battle-City | 6e1427f6ea939e48ef3da65789d40372c005a8fb | [
"MIT"
] | null | null | null | #include "GameObject.h"
void GameObject::Move()
{
}
GameObject::GameObject()
{
} | 9.111111 | 24 | 0.682927 | SinJunghyeon |
9f56f0487f8ab67087ec4f1436670af39c32c34c | 5,466 | cpp | C++ | RVAF-GUI/teechart/gaugepointerrange.cpp | YangQun1/RVAF-GUI | f187e2325fc8fdbac84a63515b7dd67c09e2fc72 | [
"BSD-2-Clause"
] | 4 | 2018-03-31T10:45:19.000Z | 2021-10-09T02:57:13.000Z | RVAF-GUI/teechart/gaugepointerrange.cpp | P-Chao/RVAF-GUI | 3bbeed7d2ffa400f754f095e7c08400f701813d4 | [
"BSD-2-Clause"
] | 1 | 2018-04-22T05:12:36.000Z | 2018-04-22T05:12:36.000Z | RVAF-GUI/teechart/gaugepointerrange.cpp | YangQun1/RVAF-GUI | f187e2325fc8fdbac84a63515b7dd67c09e2fc72 | [
"BSD-2-Clause"
] | 5 | 2018-01-13T15:57:14.000Z | 2019-11-12T03:23:18.000Z | // Machine generated IDispatch wrapper class(es) created by Microsoft Visual C++
// NOTE: Do not modify the contents of this file. If this class is regenerated by
// Microsoft Visual C++, your modifications will be overwritten.
#include "stdafx.h"
#include "gaugepointerrange.h"
// Dispatch interfaces ref... | 24.511211 | 139 | 0.709294 | YangQun1 |
9f5f1cb969f3b4ad35874559a61e2fa45120f3d5 | 935 | cpp | C++ | tu/game_1.cpp | eoserv/mainclone-eoserv | e18e87f169140b6c0da80b9d866f672e8f6dced5 | [
"Zlib"
] | 2 | 2020-01-14T10:44:21.000Z | 2020-01-15T08:01:55.000Z | tu/game_1.cpp | eoserv/mainclone-eoserv | e18e87f169140b6c0da80b9d866f672e8f6dced5 | [
"Zlib"
] | null | null | null | tu/game_1.cpp | eoserv/mainclone-eoserv | e18e87f169140b6c0da80b9d866f672e8f6dced5 | [
"Zlib"
] | null | null | null |
/* $Id$
* EOSERV is released under the zlib license.
* See LICENSE.txt for more info.
*/
#include "../src/character.cpp"
#include "../src/command_source.cpp"
#include "../src/map.cpp"
#include "../src/npc.cpp"
#include "../src/npc_ai.cpp"
#include "../src/npc_data.cpp"
#include "../src/party.cpp"
#include "../src/... | 32.241379 | 59 | 0.736898 | eoserv |
9f61b4015d2b5d53db52124b775dc5ef2b6f1102 | 8,947 | cpp | C++ | libs/besiq/correct.cpp | hoehleatsu/besiq | 94959e2819251805e19311ce377919e6bccb7bf9 | [
"BSD-3-Clause"
] | 1 | 2015-10-21T14:22:12.000Z | 2015-10-21T14:22:12.000Z | libs/besiq/correct.cpp | hoehleatsu/besiq | 94959e2819251805e19311ce377919e6bccb7bf9 | [
"BSD-3-Clause"
] | 2 | 2019-05-26T20:52:31.000Z | 2019-05-28T16:19:49.000Z | libs/besiq/correct.cpp | hoehleatsu/besiq | 94959e2819251805e19311ce377919e6bccb7bf9 | [
"BSD-3-Clause"
] | 2 | 2016-11-06T14:58:37.000Z | 2019-05-26T14:03:13.000Z | #include <algorithm>
#include <iostream>
#include <glm/models/binomial.hpp>
#include <besiq/io/resultfile.hpp>
#include <besiq/io/metaresult.hpp>
#include <besiq/method/scaleinv_method.hpp>
#include <besiq/correct.hpp>
struct heap_result
{
std::pair<std::string, std::string> variant_pair;
float pvalue;
... | 29.048701 | 157 | 0.545546 | hoehleatsu |
9f62e3b68cf61d15204f5a94461f72a8bf4bfaab | 9,863 | cpp | C++ | threepp/renderers/gl/SpriteRenderer.cpp | Graphics-Physics-Libraries/three.cpp-imported | 788b4202e15fa245a4b60e2da0b91f7d4d0592e1 | [
"MIT"
] | 76 | 2017-12-20T05:09:04.000Z | 2022-01-24T10:20:15.000Z | threepp/renderers/gl/SpriteRenderer.cpp | melMass/three.cpp | 5a328b40036e359598baec8b3fcddae4f33e410a | [
"MIT"
] | 5 | 2018-06-06T15:41:01.000Z | 2019-11-30T15:10:25.000Z | threepp/renderers/gl/SpriteRenderer.cpp | melMass/three.cpp | 5a328b40036e359598baec8b3fcddae4f33e410a | [
"MIT"
] | 23 | 2017-10-12T16:46:33.000Z | 2022-03-16T06:16:03.000Z | //
// Created by byter on 22.10.17.
//
#include "SpriteRenderer.h"
#include <algorithm>
#include <array>
#include <sstream>
#include "Renderer_impl.h"
namespace three {
namespace gl {
using namespace std;
struct SpriteRendererData
{
GLint position_att;
GLint uv_att;
GLint projectionMatrix;
GLint map;
GLin... | 27.021918 | 108 | 0.648484 | Graphics-Physics-Libraries |
9f6489be8a18135a225e571b433c0bcc38753a3b | 7,936 | cpp | C++ | editor/gui/src/materialexplorer.cpp | lizardkinger/blacksun | 0119948726d2a057c13d208044c7664a8348a1ea | [
"Linux-OpenIB"
] | null | null | null | editor/gui/src/materialexplorer.cpp | lizardkinger/blacksun | 0119948726d2a057c13d208044c7664a8348a1ea | [
"Linux-OpenIB"
] | null | null | null | editor/gui/src/materialexplorer.cpp | lizardkinger/blacksun | 0119948726d2a057c13d208044c7664a8348a1ea | [
"Linux-OpenIB"
] | null | null | null | /***************************************************************************
* Copyright (C) 2006 by The Hunter *
* hunter@localhost *
* *
* This program is free software; you can redistribute it and/or modify *
* it under the ter... | 37.971292 | 127 | 0.62563 | lizardkinger |
9f6c95e21ec191d53dce4ce07a912fc811df04cc | 25,502 | cpp | C++ | test/custom_types_Test.cpp | mbeckh/llamalog | 0441f3c6ce8871a343186f5c9ca35e8df4e8d542 | [
"Apache-2.0"
] | null | null | null | test/custom_types_Test.cpp | mbeckh/llamalog | 0441f3c6ce8871a343186f5c9ca35e8df4e8d542 | [
"Apache-2.0"
] | 15 | 2020-06-11T22:43:54.000Z | 2020-10-25T11:49:17.000Z | test/custom_types_Test.cpp | mbeckh/llamalog | 0441f3c6ce8871a343186f5c9ca35e8df4e8d542 | [
"Apache-2.0"
] | null | null | null | /*
Copyright 2019 Michael Beckh
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distr... | 29.078677 | 111 | 0.751549 | mbeckh |
9f6ef8242a0a780ac9eba841cb7f4307d495fcf5 | 826 | cpp | C++ | landscaper/src/physics.cpp | llGuy/landscaper | 7b9874c73bd7f5f07a340b9043fdeace032b6c49 | [
"MIT"
] | null | null | null | landscaper/src/physics.cpp | llGuy/landscaper | 7b9874c73bd7f5f07a340b9043fdeace032b6c49 | [
"MIT"
] | null | null | null | landscaper/src/physics.cpp | llGuy/landscaper | 7b9874c73bd7f5f07a340b9043fdeace032b6c49 | [
"MIT"
] | null | null | null | #include "physics.h"
#include "detail.h"
physics_handler::physics_handler(void)
: gravity_at_sea(-10.5f)
{
}
//auto physics_handler::move(entity & ent, action a, f32 td) -> void
//{
/*using detail::up;
ent.momentum = glm::vec3(0.0f);
glm::vec3 lateral_dir = { ent.direction.x, 0, ent.direction.z };
switch (a)
... | 28.482759 | 91 | 0.664649 | llGuy |
9f7158aa0fcab43d6d2482e15e7f841fc5ebbafc | 619 | cpp | C++ | src/scene/encounter/encounter.cpp | selcia-eremeev/chen | 96a2f4fbe444b26668983fb4c3f360d1a22cd2f7 | [
"MIT"
] | 1 | 2021-03-22T16:03:24.000Z | 2021-03-22T16:03:24.000Z | src/scene/encounter/encounter.cpp | selcia-eremeev/chen | 96a2f4fbe444b26668983fb4c3f360d1a22cd2f7 | [
"MIT"
] | 9 | 2021-03-23T20:08:51.000Z | 2021-03-27T20:44:09.000Z | src/scene/encounter/encounter.cpp | selcia-eremeev/chen | 96a2f4fbe444b26668983fb4c3f360d1a22cd2f7 | [
"MIT"
] | null | null | null | #include "scene/encounter/encounter.hpp"
int Encounter::Initialize(void) {
RESOURCES->LoadGraph("encounter", "resources\\movies\\encounter.mp4");
DxLib::PlayMovieToGraph(RESOURCES->graphics["encounter"]);
return 0;
}
int Encounter::Update(void) {
if (!DxLib::GetMovieStateToGraph(RESOURCES->graphics["encounter"]))... | 24.76 | 71 | 0.712439 | selcia-eremeev |
9f7a0f5775fb937a8d1625bd2c3a6644c4f2aa28 | 9,343 | cpp | C++ | src/craft/interfaces/WorldInterface.cpp | dkoeplin/Craft | 87fda0d7c072820f40ffea379986f0adf421849f | [
"MIT"
] | null | null | null | src/craft/interfaces/WorldInterface.cpp | dkoeplin/Craft | 87fda0d7c072820f40ffea379986f0adf421849f | [
"MIT"
] | null | null | null | src/craft/interfaces/WorldInterface.cpp | dkoeplin/Craft | 87fda0d7c072820f40ffea379986f0adf421849f | [
"MIT"
] | null | null | null | #include "WorldInterface.h"
#include <cmath>
#include "GL/glew.h"
#include "GLFW/glfw3.h"
#include "craft/draw/Crosshairs.h"
#include "craft/draw/Render.h"
#include "craft/draw/Text.h"
#include "craft/interfaces/DebugInterface.h"
#include "craft/items/Item.h"
#include "craft/physics/Physics.h"
#include "craft/player... | 31.887372 | 115 | 0.582361 | dkoeplin |
9f7ca4bc381d80d3d88b2cc91ff8935038e8ee96 | 17,531 | cpp | C++ | Peridigm/Code/Energy_damage_criterion/src/damage/Peridigm_EnergyReleaseDamageModel.cpp | oldninja/PeriDoX | f31bccc7b8ea60cd814d00732aebdbbe876a2ac7 | [
"BSD-3-Clause"
] | null | null | null | Peridigm/Code/Energy_damage_criterion/src/damage/Peridigm_EnergyReleaseDamageModel.cpp | oldninja/PeriDoX | f31bccc7b8ea60cd814d00732aebdbbe876a2ac7 | [
"BSD-3-Clause"
] | null | null | null | Peridigm/Code/Energy_damage_criterion/src/damage/Peridigm_EnergyReleaseDamageModel.cpp | oldninja/PeriDoX | f31bccc7b8ea60cd814d00732aebdbbe876a2ac7 | [
"BSD-3-Clause"
] | null | null | null | /*! \file Peridigm_EnergyReleaseDamageModel.cpp */
//@HEADER
// ************************************************************************
//
// Peridigm
// Copyright (2011) Sandia Corporation
//
// Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation,
// the ... | 44.951282 | 177 | 0.630825 | oldninja |
9f7cb6fbc5ccfadc1b4bcbd36dd33ee91a8f0976 | 2,166 | cpp | C++ | src/llri-vk/detail/queue.cpp | Rythe-Interactive/Rythe-LLRI | 0bf9ff71c41b39f7189cbc5ebbf4a74420cedc05 | [
"MIT"
] | 2 | 2022-02-08T07:11:32.000Z | 2022-02-08T08:10:31.000Z | src/llri-vk/detail/queue.cpp | Rythe-Interactive/Rythe-LLRI | 0bf9ff71c41b39f7189cbc5ebbf4a74420cedc05 | [
"MIT"
] | 1 | 2022-02-14T18:26:31.000Z | 2022-02-14T18:26:31.000Z | src/llri-vk/detail/queue.cpp | Rythe-Interactive/Rythe-LLRI | 0bf9ff71c41b39f7189cbc5ebbf4a74420cedc05 | [
"MIT"
] | null | null | null | /**
* @file queue.cpp
* Copyright (c) 2021 Leon Brands, Rythe Interactive
* SPDX-License-Identifier: MIT
*/
#include <llri/llri.hpp>
#include <llri-vk/utils.hpp>
namespace llri
{
result Queue::impl_submit(const submit_desc& desc)
{
std::vector<VkCommandBuffer> buffers(desc.numCommandLists);
... | 38 | 130 | 0.672207 | Rythe-Interactive |
9f883e0a57c86ef1fd04f25a1215f843662d4b5a | 10,227 | cpp | C++ | test/Mutex.cpp | kubasejdak/osal | 6e43ba761572444b2f56b529e501f40c00d4e718 | [
"BSD-2-Clause"
] | 1 | 2021-09-12T21:05:45.000Z | 2021-09-12T21:05:45.000Z | test/Mutex.cpp | kubasejdak/osal | 6e43ba761572444b2f56b529e501f40c00d4e718 | [
"BSD-2-Clause"
] | 2 | 2020-01-24T18:00:15.000Z | 2020-02-03T21:15:54.000Z | test/Mutex.cpp | kubasejdak/osal | 6e43ba761572444b2f56b529e501f40c00d4e718 | [
"BSD-2-Clause"
] | 2 | 2020-06-15T16:27:58.000Z | 2021-09-12T21:05:49.000Z | /////////////////////////////////////////////////////////////////////////////////////
///
/// @file
/// @author Kuba Sejdak
/// @copyright BSD 2-Clause License
///
/// Copyright (c) 2020-2021, Kuba Sejdak <kuba.sejdak@gmail.com>
/// All rights reserved.
///
/// Redistribution and use in source and binary forms, with or... | 29.22 | 95 | 0.640364 | kubasejdak |
9f8a5c913bc22e3bb31414f77cb356d62a46fc6d | 820 | hpp | C++ | humble-crap/commandline-interface.hpp | lukesalisbury/humble-crap | 814c551cfdfa2687d531b50d350a0d2a6f5cf832 | [
"Unlicense"
] | 2 | 2015-02-02T23:40:03.000Z | 2016-02-17T17:58:18.000Z | humble-crap/commandline-interface.hpp | lukesalisbury/humble-crap | 814c551cfdfa2687d531b50d350a0d2a6f5cf832 | [
"Unlicense"
] | null | null | null | humble-crap/commandline-interface.hpp | lukesalisbury/humble-crap | 814c551cfdfa2687d531b50d350a0d2a6f5cf832 | [
"Unlicense"
] | null | null | null | #ifndef CLI_INTERFACE_HPP
#define CLI_INTERFACE_HPP
#include <QObject>
#include <QCoreApplication>
class CommandLineTask {
};
class CommandLineInterface : public QObject
{
Q_OBJECT
public:
CommandLineInterface(QCoreApplication * a, QObject * parent = nullptr);
~CommandLineInterface();
signals:
void taskCo... | 16.4 | 73 | 0.740244 | lukesalisbury |
9f8a93ac56f39e2e5538bc2d0dbc39b854615437 | 1,192 | cpp | C++ | Shoot/src/GraphicExtensionHandler.cpp | franticsoftware/starports | d723404b20383949874868c251c60cfa06120fde | [
"MIT"
] | 5 | 2016-11-13T08:13:57.000Z | 2019-03-31T10:22:38.000Z | Shoot/src/GraphicExtensionHandler.cpp | franticsoftware/starports | d723404b20383949874868c251c60cfa06120fde | [
"MIT"
] | null | null | null | Shoot/src/GraphicExtensionHandler.cpp | franticsoftware/starports | d723404b20383949874868c251c60cfa06120fde | [
"MIT"
] | 1 | 2016-12-23T11:25:35.000Z | 2016-12-23T11:25:35.000Z | /*
Amine Rehioui
Created: July 6th 2013
*/
#include "Shoot.h"
#include "GraphicExtensionHandler.h"
#if SHOOT_PLATFORM == SHOOT_PLATFORM_IOS || SHOOT_PLATFORM == SHOOT_PLATFORM_ANDROID
#include "OpenGLExtensionHandlerES2.h"
#elif !defined(DX11)
#include "OpenGLExtensionHandlerWin32.h"
#endif
namespace shoot
{
//... | 20.20339 | 86 | 0.756711 | franticsoftware |
9f915c4603e8f83b4352c452f8072cb37d48dc1e | 4,790 | cpp | C++ | src/Systems/DX9RenderSystem/DX9RenderErrorHelper.cpp | irov/Mengine | b76e9f8037325dd826d4f2f17893ac2b236edad8 | [
"MIT"
] | 39 | 2016-04-21T03:25:26.000Z | 2022-01-19T14:16:38.000Z | src/Systems/DX9RenderSystem/DX9RenderErrorHelper.cpp | irov/Mengine | b76e9f8037325dd826d4f2f17893ac2b236edad8 | [
"MIT"
] | 23 | 2016-06-28T13:03:17.000Z | 2022-02-02T10:11:54.000Z | src/Systems/DX9RenderSystem/DX9RenderErrorHelper.cpp | irov/Mengine | b76e9f8037325dd826d4f2f17893ac2b236edad8 | [
"MIT"
] | 14 | 2016-06-22T20:45:37.000Z | 2021-07-05T12:25:19.000Z | #include "DX9RenderErrorHelper.h"
#include "Kernel/Logger.h"
#include "Config/Utils.h"
namespace Mengine
{
namespace Helper
{
const Char * getDX9ErrorMessage( HRESULT _hr )
{
switch( _hr )
{
#if !defined(WINAPI_FAMILY) || (WINAPI_FAMILY == WINAPI_FAMILY_DESKTOP_APP)
... | 51.505376 | 143 | 0.602296 | irov |
9f915e83118f6cf2fd3b289f69af404bc8725906 | 1,172 | cpp | C++ | 24_dynamic_1/5_coin_change.cpp | meyash/dust | 8f90d7f9cc42f61193c737cde14e9c4bb32884b4 | [
"MIT"
] | 1 | 2020-09-30T10:36:06.000Z | 2020-09-30T10:36:06.000Z | 24_dynamic_1/5_coin_change.cpp | meyash/dust | 8f90d7f9cc42f61193c737cde14e9c4bb32884b4 | [
"MIT"
] | null | null | null | 24_dynamic_1/5_coin_change.cpp | meyash/dust | 8f90d7f9cc42f61193c737cde14e9c4bb32884b4 | [
"MIT"
] | null | null | null | #include<bits/stdc++.h>
using namespace std;
typedef long long ll;
// d=array of denominations
// sample
// 4 2
// 1 2
// output
// 3
int coin_change(int n, int *d,int num_den, int **storage){
if(n<0){
return 0;
}
if(n==0){
return 1;
}
if(num_den==0){
return 0;
}
if... | 20.928571 | 58 | 0.503413 | meyash |
7a0912953604c5a3096fe228d4e161be1c38cbb0 | 10,236 | cpp | C++ | helperFunctions.cpp | JoshVorick/LipReader | 126212bc7e50316146a3b8f5551e5c475af67eae | [
"Apache-2.0"
] | 4 | 2017-06-20T10:05:31.000Z | 2019-05-04T14:25:23.000Z | helperFunctions.cpp | JoshVorick/LipReader | 126212bc7e50316146a3b8f5551e5c475af67eae | [
"Apache-2.0"
] | null | null | null | helperFunctions.cpp | JoshVorick/LipReader | 126212bc7e50316146a3b8f5551e5c475af67eae | [
"Apache-2.0"
] | 3 | 2015-08-18T11:04:55.000Z | 2018-07-25T12:56:01.000Z | #include "opencv2/opencv.hpp"
#include "opencv2/features2d/features2d.hpp"
#include "opencv2/nonfree/features2d.hpp"
#include "opencv2/highgui/highgui.hpp"
#include "opencv2/nonfree/nonfree.hpp"
#include <fstream>
using namespace cv;
using namespace std;
const double ANGLE_W = .3;
const double SIZE_W = .3;
const dou... | 30.105882 | 139 | 0.648789 | JoshVorick |
7a0c65a7178771a71e152c0fe5e1d767fdc3287d | 4,617 | cpp | C++ | src/lcd.cpp | calhighrobotics/2017-2018-vex-in-the-zone | bc41f47971a601dc896a1054edd0eca5c5b10d1b | [
"MIT"
] | 1 | 2019-09-01T05:40:51.000Z | 2019-09-01T05:40:51.000Z | src/lcd.cpp | calhighrobotics/2017-2018-vex-in-the-zone | bc41f47971a601dc896a1054edd0eca5c5b10d1b | [
"MIT"
] | null | null | null | src/lcd.cpp | calhighrobotics/2017-2018-vex-in-the-zone | bc41f47971a601dc896a1054edd0eca5c5b10d1b | [
"MIT"
] | null | null | null | // contains the code that controls the LCD screen
#include "main.hpp"
// what port the LCD screen goes into
#define LCD_PORT uart1
// amount of milliseconds between each LCD update
#define LCD_POLL_SPEED 100ul
// the different types of things the LCD can do
enum LoopState
{
// select the autonomous program
A... | 27.319527 | 77 | 0.633745 | calhighrobotics |
7a0db341149b2c2e860b1eb16612ac80ea171d69 | 3,086 | hpp | C++ | src/ibeo_8l_sdk/src/ibeosdk/datablocks/snippets/ScalaFpgaRawHeader.hpp | tomcamp0228/ibeo_ros2 | ff56c88d6e82440ae3ce4de08f2745707c354604 | [
"MIT"
] | 1 | 2020-06-19T11:01:49.000Z | 2020-06-19T11:01:49.000Z | include/ibeosdk/datablocks/snippets/ScalaFpgaRawHeader.hpp | chouer19/enjoyDriving | e4a29e6cad7d3b0061d59f584cce7cdea2a55351 | [
"MIT"
] | null | null | null | include/ibeosdk/datablocks/snippets/ScalaFpgaRawHeader.hpp | chouer19/enjoyDriving | e4a29e6cad7d3b0061d59f584cce7cdea2a55351 | [
"MIT"
] | 2 | 2020-06-19T11:01:48.000Z | 2020-10-29T03:07:14.000Z | //======================================================================
/*! \file ScalaFpgaRawHeader.hpp
*
* \copydoc Copyright
* \author kd
* \date Sep 17, 2015
*///-------------------------------------------------------------------
#ifndef IBEOSDK_SCALAFPGARAWHEADER_HPP_SEEN
#define IBEOSDK_SCALAFPGARAWHEADER_... | 33.912088 | 109 | 0.647116 | tomcamp0228 |
7a1035590685403ce70b496c3e2ead8986d64c4f | 923 | cpp | C++ | src/robot/auto/AutoModeRunner.cpp | roboFiddle/7405M_TowerTakeover_Code | e16ffab17964ff61a25eac2074da78d0d7577caa | [
"MIT"
] | null | null | null | src/robot/auto/AutoModeRunner.cpp | roboFiddle/7405M_TowerTakeover_Code | e16ffab17964ff61a25eac2074da78d0d7577caa | [
"MIT"
] | null | null | null | src/robot/auto/AutoModeRunner.cpp | roboFiddle/7405M_TowerTakeover_Code | e16ffab17964ff61a25eac2074da78d0d7577caa | [
"MIT"
] | null | null | null | //
// Created by alexweiss on 8/14/19.
//
#include "AutoModeRunner.hpp"
namespace auton {
AutoModeRunner::AutoModeRunner() {
thread_ = new pros::Task(AutoModeRunner::runAuton, this, TASK_PRIORITY_DEFAULT,
TASK_STACK_DEPTH_DEFAULT, "AUTO RUNNER");
thread_->suspend();
}
void A... | 24.945946 | 83 | 0.668472 | roboFiddle |
7a182ec33426d72818a4bc08ef7e208dd9e30e9a | 1,704 | cpp | C++ | superline/producer/superline_client.cpp | Jim-CodeHub/superline | cc6c979371d1e392691b099804bb34d00e63ba4a | [
"Apache-2.0"
] | null | null | null | superline/producer/superline_client.cpp | Jim-CodeHub/superline | cc6c979371d1e392691b099804bb34d00e63ba4a | [
"Apache-2.0"
] | null | null | null | superline/producer/superline_client.cpp | Jim-CodeHub/superline | cc6c979371d1e392691b099804bb34d00e63ba4a | [
"Apache-2.0"
] | null | null | null | /**-----------------------------------------------------------------------------------------------------------------
* @file subscriber_client.cpp
* @brief Send message to superline server, Implement with POSX.1 semaphore and shared memory
*
* Copyright (c) 2019-2019 Jim Zhang 303683086@qq.com
*-----------------... | 34.77551 | 116 | 0.484155 | Jim-CodeHub |
7a188b7ccb884ffb7f1c2a4ef903d4997b126b47 | 37 | cpp | C++ | SystemResource/Source/Image/PNG/Chunk/PNGLastModificationTime.cpp | BitPaw/BitFireEngine | 2c02a4eae19276bf60ac925e4393966cec605112 | [
"MIT"
] | 5 | 2021-10-19T18:30:43.000Z | 2022-03-19T22:02:02.000Z | SystemResource/Source/Image/PNG/Chunk/PNGLastModificationTime.cpp | BitPaw/BitFireEngine | 2c02a4eae19276bf60ac925e4393966cec605112 | [
"MIT"
] | 12 | 2022-03-09T13:40:21.000Z | 2022-03-31T12:47:48.000Z | SystemResource/Source/Image/PNG/Chunk/PNGLastModificationTime.cpp | BitPaw/BitFireEngine | 2c02a4eae19276bf60ac925e4393966cec605112 | [
"MIT"
] | null | null | null | #include "PNGLastModificationTime.h"
| 18.5 | 36 | 0.837838 | BitPaw |
7a1b20619b66ea7e98af60ef3644e1f1899e607d | 921 | hpp | C++ | include/zisa/math/triangular_rule.hpp | 1uc/ZisaFVM | 75fcedb3bece66499e011228a39d8a364b50fd74 | [
"MIT"
] | null | null | null | include/zisa/math/triangular_rule.hpp | 1uc/ZisaFVM | 75fcedb3bece66499e011228a39d8a364b50fd74 | [
"MIT"
] | null | null | null | include/zisa/math/triangular_rule.hpp | 1uc/ZisaFVM | 75fcedb3bece66499e011228a39d8a364b50fd74 | [
"MIT"
] | 1 | 2021-08-24T11:52:51.000Z | 2021-08-24T11:52:51.000Z | // SPDX-License-Identifier: MIT
// Copyright (c) 2021 ETH Zurich, Luc Grosheintz-Laval
#ifndef TRIANGULAR_RULE_H_V7Y5S
#define TRIANGULAR_RULE_H_V7Y5S
#include <zisa/config.hpp>
#include <zisa/math/barycentric.hpp>
#include <zisa/math/max_quadrature_degree.hpp>
#include <zisa/memory/array.hpp>
namespace zisa {
stru... | 24.891892 | 77 | 0.765472 | 1uc |
7a2739c116f4f730377e2f9ed25c37e9efe11126 | 3,807 | cpp | C++ | Rendering/Light.cpp | nicolas92g/noisyEngine | 306f4a031f70c548047cf6697cd1237dca650301 | [
"Apache-2.0"
] | null | null | null | Rendering/Light.cpp | nicolas92g/noisyEngine | 306f4a031f70c548047cf6697cd1237dca650301 | [
"Apache-2.0"
] | null | null | null | Rendering/Light.cpp | nicolas92g/noisyEngine | 306f4a031f70c548047cf6697cd1237dca650301 | [
"Apache-2.0"
] | null | null | null | #include "Light.h"
uint32_t ns::DirectionalLight::number_(0);
uint32_t ns::PointLight::number_(0);
uint32_t ns::SpotLight::number_(0);
ns::LightBase_::LightBase_(const glm::vec3& color)
{
color_ = color;
}
void ns::LightBase_::setColor(const glm::vec3& color)
{
if (color.x < .0f || color.y < .0f || color.z < .0f) ... | 20.917582 | 158 | 0.67481 | nicolas92g |
7a28ef1353726be2c5934ea8363add2c2c9dd997 | 304 | cpp | C++ | src/fireFist.cpp | snow482/grawing_way_oop_2.0 | f7e5deb6d4357dcbe40b4c4be5411efd286608c2 | [
"MIT"
] | null | null | null | src/fireFist.cpp | snow482/grawing_way_oop_2.0 | f7e5deb6d4357dcbe40b4c4be5411efd286608c2 | [
"MIT"
] | null | null | null | src/fireFist.cpp | snow482/grawing_way_oop_2.0 | f7e5deb6d4357dcbe40b4c4be5411efd286608c2 | [
"MIT"
] | null | null | null | #include "fireFist.hpp"
#include "Character.hpp"
FireFist::FireFist(int fireDamage)
: Skill("Fire fist"), m_fireDamage(fireDamage)
{}
void FireFist::Use(std::shared_ptr<Character> self,
std::shared_ptr<Character> enemy) {
noused(self);
enemy->getDamage(m_fireDamage);
}
| 21.714286 | 54 | 0.674342 | snow482 |
7a299f471b1e2e2625c2c334cd4b9c5a65881633 | 803 | hpp | C++ | bulb/components/membrane/include/Membrane/RuntimeSubSystem.hpp | AGarlicMonkey/Clove | 495e118024a30a39bd194f54c728d77ff0fa8d4a | [
"MIT"
] | 3 | 2021-10-09T03:24:57.000Z | 2022-01-12T04:19:42.000Z | bulb/components/membrane/include/Membrane/RuntimeSubSystem.hpp | AGarlicMonkey/Clove | 495e118024a30a39bd194f54c728d77ff0fa8d4a | [
"MIT"
] | 100 | 2019-10-01T05:29:03.000Z | 2022-03-31T17:28:52.000Z | bulb/components/membrane/include/Membrane/RuntimeSubSystem.hpp | AGarlicMonkey/Clove | 495e118024a30a39bd194f54c728d77ff0fa8d4a | [
"MIT"
] | 1 | 2021-11-29T20:46:15.000Z | 2021-11-29T20:46:15.000Z | #pragma once
#include "Membrane/Scene.hpp"
#include <Clove/SubSystem.hpp>
namespace clove {
class EntityManager;
}
namespace membrane {
/**
* @brief The sub system that is active while the game is running.
* Deliberately does not handle editor events to simulate the game running.
*/
class... | 25.09375 | 129 | 0.666252 | AGarlicMonkey |
7a2b93a436713b7ee3b72fb1487b459dbc6940bb | 1,022 | cpp | C++ | PolyEngine/Core/Src/Math/Plane.cpp | PiotrMoscicki/PolyEngine | 573c453e9d1ae0a351ad14410595ff844e3b4620 | [
"MIT"
] | 65 | 2017-04-04T20:33:44.000Z | 2019-12-02T23:06:58.000Z | PolyEngine/Core/Src/Math/Plane.cpp | PiotrMoscicki/PolyEngine | 573c453e9d1ae0a351ad14410595ff844e3b4620 | [
"MIT"
] | 46 | 2017-04-21T12:26:38.000Z | 2019-12-15T05:31:47.000Z | PolyEngine/Core/Src/Math/Plane.cpp | PiotrMoscicki/PolyEngine | 573c453e9d1ae0a351ad14410595ff844e3b4620 | [
"MIT"
] | 51 | 2017-04-12T10:53:32.000Z | 2019-11-20T13:05:54.000Z | #include <CorePCH.hpp>
#include <Math/Plane.hpp>
using namespace Poly;
Plane::eObjectLocation Plane::GetAABoxLocation(const AABox& box) const
{
auto vertices = box.GetVertices();
eObjectLocation guessedLocation = GetPointLocation(vertices[0]);
for (Vector vert : vertices)
{
eObjectLocation loc = GetPointLocat... | 23.767442 | 87 | 0.654599 | PiotrMoscicki |
7a39bf7245d2b1d2b4d008920dd168fea1f7a132 | 663 | hpp | C++ | src/link/rtti.hpp | martinnnnnn/link | 6a407279fb28d7a9238ea5e18b85916bc15b3fbe | [
"MIT"
] | null | null | null | src/link/rtti.hpp | martinnnnnn/link | 6a407279fb28d7a9238ea5e18b85916bc15b3fbe | [
"MIT"
] | null | null | null | src/link/rtti.hpp | martinnnnnn/link | 6a407279fb28d7a9238ea5e18b85916bc15b3fbe | [
"MIT"
] | null | null | null | #pragma once
#include <string>
namespace link
{
class Rtti
{
public:
Rtti(const std::string name, const Rtti* base);
~Rtti();
const std::string get_name() const;
bool is_exactly(const Rtti& type) const;
bool is_derived(const Rtti& base_type) const;
private:
... | 21.387097 | 79 | 0.641026 | martinnnnnn |
7a3b510d0854f26140d3a9cb16581bca1a4a9441 | 383 | cc | C++ | src/core/utils/console.cc | 5aitama/Bismuth | 00fbd13a08ac08b77413d4a6797b1daa84a892cf | [
"MIT"
] | null | null | null | src/core/utils/console.cc | 5aitama/Bismuth | 00fbd13a08ac08b77413d4a6797b1daa84a892cf | [
"MIT"
] | null | null | null | src/core/utils/console.cc | 5aitama/Bismuth | 00fbd13a08ac08b77413d4a6797b1daa84a892cf | [
"MIT"
] | null | null | null | #include "console.h"
using namespace std;
void Console::Log(const char* str, const size_t& maxWidth) {
char* x = new char[maxWidth];
for (size_t i = 0; i < maxWidth; i++) {
if (*str != '\0')
{
x[i] = *str;
str++;
} else {
x[i] = '.';
}
}... | 17.409091 | 60 | 0.420366 | 5aitama |
7a3c4665b43702de0eb94923c656d96c0050dfb4 | 2,591 | cpp | C++ | tests/src/netlib/tests_port_layer.cpp | Mike-Bal/mart-common | 0b52654c6f756e8e86689e56d24849c97079229c | [
"MIT"
] | 1 | 2021-07-16T14:19:50.000Z | 2021-07-16T14:19:50.000Z | tests/src/netlib/tests_port_layer.cpp | Mike-Bal/mart-common | 0b52654c6f756e8e86689e56d24849c97079229c | [
"MIT"
] | 1 | 2018-06-05T11:03:30.000Z | 2018-06-05T11:03:30.000Z | tests/src/netlib/tests_port_layer.cpp | tum-ei-rcs/mart-common | 6f8f18ac23401eb294d96db490fbdf78bf9b316c | [
"MIT"
] | null | null | null | #include <mart-netlib/port_layer.hpp>
#include <catch2/catch.hpp>
#include <iostream>
namespace pl = mart::nw::socks::port_layer;
namespace socks = mart::nw::socks;
// call ech function at least once to ensure the implementation is there
TEST_CASE( "net_port-layer_check_function_implementation_exists" )
{
CHECK... | 34.092105 | 112 | 0.656503 | Mike-Bal |
7a41ee456370b9225fbfc9cdc293ff95944e7a1a | 371 | cpp | C++ | treeDAG/util/nChooseKIterator.cpp | thomasfannes/treeDAG | c29eec45f0f08fec2d41bc163b26d8aaf9a68f6c | [
"MIT"
] | null | null | null | treeDAG/util/nChooseKIterator.cpp | thomasfannes/treeDAG | c29eec45f0f08fec2d41bc163b26d8aaf9a68f6c | [
"MIT"
] | null | null | null | treeDAG/util/nChooseKIterator.cpp | thomasfannes/treeDAG | c29eec45f0f08fec2d41bc163b26d8aaf9a68f6c | [
"MIT"
] | null | null | null |
#include "nChooseKIterator.hpp"
#include <algorithm>
namespace treeDAG {
namespace util {
bool NChooseKProcessor::atEnd(const std::vector<bool> & mask) const
{
return mask.back();
}
void NChooseKProcessor::increment(std::vector<bool> & mask)
{
mask.back() = !std::next_permutation(mask.begin(), mask.end() - ... | 17.666667 | 71 | 0.695418 | thomasfannes |
7a439686fd6777a0a1e1ee0cd233eca26e0a0c8e | 1,231 | cpp | C++ | OOP/ErrorHandling/main.cpp | Rossoner40/NBU-Classwork-and-Homework | 823e5eab2da616ae6d965da9c0a22fa0212d7887 | [
"MIT"
] | null | null | null | OOP/ErrorHandling/main.cpp | Rossoner40/NBU-Classwork-and-Homework | 823e5eab2da616ae6d965da9c0a22fa0212d7887 | [
"MIT"
] | null | null | null | OOP/ErrorHandling/main.cpp | Rossoner40/NBU-Classwork-and-Homework | 823e5eab2da616ae6d965da9c0a22fa0212d7887 | [
"MIT"
] | null | null | null | #include <iostream>
#include <RepeatedIn.h>
#include <IndexError.h>
#include <DblArr.h>
#include <stdlib.h>
#include <typeinfo>
using namespace std;
void tst(int n)throw(IndexError){
RepeatedIn ccin;
DblArr x(n);
int N;
for(int i=0;i<n;i++)
{
x[i]=5.*rand()/RAND_MAX;
}
cout<<x<<en... | 20.180328 | 68 | 0.450853 | Rossoner40 |
7a4616e9eac44cc3892e15d925e9ee5b4238b84e | 955 | hpp | C++ | nytl/fwd/rect.hpp | nyorain/nyutil | 26ad3247f909cc82f30608126659b1d6632f5a52 | [
"BSL-1.0"
] | 103 | 2016-02-08T21:04:11.000Z | 2021-08-05T21:50:03.000Z | nytl/fwd/rect.hpp | nyorain/nyutil | 26ad3247f909cc82f30608126659b1d6632f5a52 | [
"BSL-1.0"
] | 12 | 2015-12-29T23:53:52.000Z | 2018-01-01T16:12:28.000Z | nytl/fwd/rect.hpp | nyorain/nyutil | 26ad3247f909cc82f30608126659b1d6632f5a52 | [
"BSL-1.0"
] | 13 | 2016-02-24T12:25:31.000Z | 2020-08-24T19:47:29.000Z | // Copyright (c) 2017-2019 nyorain
// Distributed under the Boost Software License, Version 1.0.
// See accompanying file LICENSE or copy at http://www.boost.org/LICENSE_1_0.txt
#pragma once
#ifndef NYTL_INCLUDE_FWD_RECT
#define NYTL_INCLUDE_FWD_RECT
#include <cstdlib> // std::size_t
#include <cstdint> // std::uint8... | 24.487179 | 80 | 0.713089 | nyorain |
7a46d7a42f61926e7e19240bc46cdaee53253e0b | 1,089 | hpp | C++ | src/util/range.hpp | tp-ntouran/mocc | 77d386cdf341b1a860599ff7c6e4017d46e0b102 | [
"Apache-2.0"
] | 11 | 2016-03-31T17:46:15.000Z | 2022-02-14T01:07:56.000Z | src/util/range.hpp | tp-ntouran/mocc | 77d386cdf341b1a860599ff7c6e4017d46e0b102 | [
"Apache-2.0"
] | 3 | 2016-04-04T16:40:47.000Z | 2019-10-16T22:22:54.000Z | src/util/range.hpp | tp-ntouran/mocc | 77d386cdf341b1a860599ff7c6e4017d46e0b102 | [
"Apache-2.0"
] | 3 | 2019-10-16T22:20:15.000Z | 2019-11-28T11:59:03.000Z | /*
Copyright 2016 Mitchell Young
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 ... | 26.560976 | 77 | 0.673095 | tp-ntouran |
7a484eb8403730b712a19d67c78b3e9ee0f22cea | 587 | cpp | C++ | unit_tests/dynamics/multibody/src/unit_retro.cpp | ricortiz/OpenTissue | f8c8ebc5137325b77ba90bed897f6be2795bd6fb | [
"Zlib"
] | 76 | 2018-02-20T11:30:52.000Z | 2022-03-31T12:45:06.000Z | unit_tests/dynamics/multibody/src/unit_retro.cpp | ricortiz/OpenTissue | f8c8ebc5137325b77ba90bed897f6be2795bd6fb | [
"Zlib"
] | 27 | 2018-11-20T14:32:49.000Z | 2021-11-24T15:26:45.000Z | unit_tests/dynamics/multibody/src/unit_retro.cpp | ricortiz/OpenTissue | f8c8ebc5137325b77ba90bed897f6be2795bd6fb | [
"Zlib"
] | 24 | 2018-02-21T01:45:26.000Z | 2022-03-07T07:06:49.000Z | //
// OpenTissue, A toolbox for physical based simulation and animation.
// Copyright (C) 2007 Department of Computer Science, University of Copenhagen
//
#include <OpenTissue/configuration.h>
#define BOOST_AUTO_TEST_MAIN
#include <OpenTissue/utility/utility_push_boost_filter.h>
#include <boost/test/auto_unit_test.hp... | 26.681818 | 78 | 0.819421 | ricortiz |
7a4a78300d55ccaea3f07104f1870a684a56764c | 6,936 | cpp | C++ | demo2/Classes/testLayer.cpp | wantnon2/3DToolKit-2-for-cocos2dx | 518aa856f06788929e50897b43969e5cfa50c3cf | [
"MIT"
] | 11 | 2015-02-12T04:34:43.000Z | 2021-10-10T06:24:55.000Z | demo2/Classes/testLayer.cpp | wantnon2/3DToolKit-2-for-cocos2dx | 518aa856f06788929e50897b43969e5cfa50c3cf | [
"MIT"
] | null | null | null | demo2/Classes/testLayer.cpp | wantnon2/3DToolKit-2-for-cocos2dx | 518aa856f06788929e50897b43969e5cfa50c3cf | [
"MIT"
] | 8 | 2015-06-30T11:51:30.000Z | 2021-10-10T06:24:56.000Z | //
// testLayer.cpp
// HelloCpp
//
// Created by Yang Chao (wantnon) on 13-11-6.
//
//
#include "testLayer.h"
bool CtestLayer::init(){
CCSize visibleSize = CCDirector::sharedDirector()->getVisibleSize();
CCPoint origin = CCDirector::sharedDirector()->getVisibleOrigin();
CCSize winSize=CCDirector::share... | 31.384615 | 151 | 0.643454 | wantnon2 |
7a5844762dcaf766018b7c7ceef18282378acb4e | 1,351 | hpp | C++ | sprout/math/fractional_part.hpp | osyo-manga/Sprout | 8885b115f739ef255530f772067475d3bc0dcef7 | [
"BSL-1.0"
] | 1 | 2020-02-04T05:16:01.000Z | 2020-02-04T05:16:01.000Z | sprout/math/fractional_part.hpp | osyo-manga/Sprout | 8885b115f739ef255530f772067475d3bc0dcef7 | [
"BSL-1.0"
] | null | null | null | sprout/math/fractional_part.hpp | osyo-manga/Sprout | 8885b115f739ef255530f772067475d3bc0dcef7 | [
"BSL-1.0"
] | null | null | null | #ifndef SPROUT_MATH_FRACTIONAL_PART_HPP
#define SPROUT_MATH_FRACTIONAL_PART_HPP
#include <limits>
#include <type_traits>
#include <sprout/config.hpp>
#include <sprout/math/detail/config.hpp>
#include <sprout/math/integer_part.hpp>
#include <sprout/type_traits/enabler_if.hpp>
namespace sprout {
namespace m... | 31.418605 | 126 | 0.706884 | osyo-manga |
7a58da0624821c6e4c15b30faaf1535da7ef94da | 17,586 | cpp | C++ | test/ProcessMoveTests.cpp | eunmann/chess-engine | 42bfa6cbf108d2746505faa3b6ee5d31e0a87b7d | [
"MIT"
] | 2 | 2022-01-01T22:26:57.000Z | 2022-02-14T04:03:32.000Z | test/ProcessMoveTests.cpp | eunmann/chess-engine | 42bfa6cbf108d2746505faa3b6ee5d31e0a87b7d | [
"MIT"
] | null | null | null | test/ProcessMoveTests.cpp | eunmann/chess-engine | 42bfa6cbf108d2746505faa3b6ee5d31e0a87b7d | [
"MIT"
] | null | null | null | #include "TestFW.hpp"
#include "Definitions.hpp"
#include "BitBoardUtils.hpp"
#include <cassert>
#include "GameState.hpp"
#include <vector>
#include "MoveGeneration.hpp"
namespace Tests {
auto add_process_move_tests(TestFW::UnitTest &unit_tests) -> void {
TestFW::TestCase process_move_test_case("Process ... | 66.362264 | 119 | 0.387808 | eunmann |
7a5a717b88036f76c2144b9d9dfbc4b3d47c7ece | 7,250 | cc | C++ | src/svm_ila.cc | igreene2/SVMA | 5bdfd380cb4a9bd46a67d55db1dc9a1e6cede4fc | [
"MIT"
] | null | null | null | src/svm_ila.cc | igreene2/SVMA | 5bdfd380cb4a9bd46a67d55db1dc9a1e6cede4fc | [
"MIT"
] | 1 | 2021-03-02T17:12:23.000Z | 2021-03-02T17:12:23.000Z | src/svm_ila.cc | igreene2/SVMA | 5bdfd380cb4a9bd46a67d55db1dc9a1e6cede4fc | [
"MIT"
] | null | null | null | /// \file the ila example of svma accelerator:
/// support vector machine accelerator for biomedical purposes,
// receives MMIO instruction
/// Isabel Greene (igreene@princeton.edu)
///
#include <ilang/ilang++.h>
#include <svma_ila.h>
#include <ilang/util/log.h>
namespace ilang {
namespace svma {
Ila GetSVMAIl... | 30.590717 | 105 | 0.50331 | igreene2 |
7a61c19f1895879ada93ff5139c44c67c1dc87a3 | 1,803 | cpp | C++ | src/textures.cpp | sword-and-sorcery/glfw-textures | cb663fc39b9060057f4a726ffc93004e48229009 | [
"MIT"
] | null | null | null | src/textures.cpp | sword-and-sorcery/glfw-textures | cb663fc39b9060057f4a726ffc93004e48229009 | [
"MIT"
] | null | null | null | src/textures.cpp | sword-and-sorcery/glfw-textures | cb663fc39b9060057f4a726ffc93004e48229009 | [
"MIT"
] | null | null | null |
#include "tileset_glfw/textures.h"
#include <iostream>
#include <GLFW/glfw3.h>
#define STB_IMAGE_IMPLEMENTATION
#include <stb_image.h>
namespace opengl {
namespace {
std::map<std::string, const assets::tileset*> tilesets; // TODO: !!!
std::map<std::pair<std::string, std::string>, std::tuple<int, ... | 37.5625 | 109 | 0.622296 | sword-and-sorcery |
7a64f46225b59710178fb26e1fc9e32b985119ee | 663 | cpp | C++ | src/tdme/gui/nodes/GUINode_Flow.cpp | mahula/tdme2 | 0f74d35ae5d2cd33b1a410c09f0d45f250ca7a64 | [
"BSD-3-Clause"
] | null | null | null | src/tdme/gui/nodes/GUINode_Flow.cpp | mahula/tdme2 | 0f74d35ae5d2cd33b1a410c09f0d45f250ca7a64 | [
"BSD-3-Clause"
] | null | null | null | src/tdme/gui/nodes/GUINode_Flow.cpp | mahula/tdme2 | 0f74d35ae5d2cd33b1a410c09f0d45f250ca7a64 | [
"BSD-3-Clause"
] | null | null | null | #include <tdme/gui/nodes/GUINode_Flow.h>
#include <string>
#include <tdme/utils/Enum.h>
using std::string;
using tdme::gui::nodes::GUINode_Flow;
using tdme::utils::Enum;
GUINode_Flow::GUINode_Flow(const string& name, int ordinal)
: Enum(name, ordinal)
{
}
GUINode_Flow* tdme::gui::nodes::GUINode_Flow::INTEGRATED ... | 23.678571 | 93 | 0.731523 | mahula |
7a654faac16def890e44cd51be734a7e23df592b | 8,208 | cc | C++ | winch_control/brew_session.cc | garratt/brewhouse | eb0b07d19733aa975d8d6322b4e82fd3b2711ced | [
"BSD-3-Clause"
] | null | null | null | winch_control/brew_session.cc | garratt/brewhouse | eb0b07d19733aa975d8d6322b4e82fd3b2711ced | [
"BSD-3-Clause"
] | null | null | null | winch_control/brew_session.cc | garratt/brewhouse | eb0b07d19733aa975d8d6322b4e82fd3b2711ced | [
"BSD-3-Clause"
] | null | null | null | // Copyright 2019 Garratt Gallagher. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "gpio.h"
#include "grainfather2.h"
#include "brew_session.h"
#include <utility>
#include <deque>
#include <mutex>
#include <list>
#include <function... | 32.442688 | 94 | 0.691399 | garratt |
7a66925f148b9c18dd2659af0b13cc577c79237c | 2,739 | cpp | C++ | Page_Replacement_Algorithms/Class_Definition.cpp | Siddhartha-Dhar/Operating_System_Programs | 5bbfa8f82e270bef1e0511e82b3678de6b42d713 | [
"MIT"
] | 1 | 2021-07-21T07:04:08.000Z | 2021-07-21T07:04:08.000Z | Page_Replacement_Algorithms/Class_Definition.cpp | Siddhartha-Dhar/Operating_System_Programs | 5bbfa8f82e270bef1e0511e82b3678de6b42d713 | [
"MIT"
] | 1 | 2021-08-07T12:46:32.000Z | 2021-08-15T13:19:33.000Z | Page_Replacement_Algorithms/Class_Definition.cpp | Siddhartha-Dhar/Operating_System_Programs | 5bbfa8f82e270bef1e0511e82b3678de6b42d713 | [
"MIT"
] | 1 | 2021-08-07T13:05:33.000Z | 2021-08-07T13:05:33.000Z | #include<iostream>
//.........................................................................Class Definition For Row
class Block{
private: // Private Access Specifier Scope
int Page_Number;
int Status;
public: // Public Access Specifier Scope
void Set_PN(int);
... | 33.814815 | 140 | 0.514421 | Siddhartha-Dhar |
7a675430737d89d7246a9bdddf02cfadbae35e5e | 3,928 | hpp | C++ | ee21/common/inc/ee/function.hpp | ygor-rezende/Expression-Evaluator | 52868ff11ce72a4ae6fa9a4052005c02f8485b3c | [
"FTL"
] | null | null | null | ee21/common/inc/ee/function.hpp | ygor-rezende/Expression-Evaluator | 52868ff11ce72a4ae6fa9a4052005c02f8485b3c | [
"FTL"
] | null | null | null | ee21/common/inc/ee/function.hpp | ygor-rezende/Expression-Evaluator | 52868ff11ce72a4ae6fa9a4052005c02f8485b3c | [
"FTL"
] | null | null | null | #pragma once
/*! \file function.hpp
\brief Function classes declarations.
\author Garth Santor
\date 2021-10-29
\copyright Garth Santor, Trinh Han
=============================================================
Declarations of the Function classes derived from Operation.
Includes the subclasses:
OneArgFunction
... | 25.341935 | 106 | 0.62831 | ygor-rezende |
7a74070c20510abfe143167aca5f0e563cf903d8 | 746 | cpp | C++ | call.cpp | rgeorgiev583/RadoPlusPlusinterpreter | edf410403bb9b69cad1946a9250ac2fdd66f86a1 | [
"MIT"
] | null | null | null | call.cpp | rgeorgiev583/RadoPlusPlusinterpreter | edf410403bb9b69cad1946a9250ac2fdd66f86a1 | [
"MIT"
] | null | null | null | call.cpp | rgeorgiev583/RadoPlusPlusinterpreter | edf410403bb9b69cad1946a9250ac2fdd66f86a1 | [
"MIT"
] | null | null | null | /*
* call.cpp
*
* Created on: Jan 17, 2015
* Author: radoslav
*/
#include "call.h"
#include "constructor-call.h"
#include "function-call.h"
#include "strtok.h"
void Call::parse(const char*& code)
{
name = Identifier(code);
if (!gotoToken(code, " \t\n\r") || *code != '(')
{
type = CALL_INVALID;
ret... | 16.577778 | 113 | 0.612601 | rgeorgiev583 |
7a764c97dd2e828e58570985f7357348f8f93012 | 587 | hpp | C++ | openssl-examples/include/cli/arguments.hpp | falk-werner/playground | 501b425d4c8161bdd89ad92b78a4741d81af9acb | [
"MIT"
] | null | null | null | openssl-examples/include/cli/arguments.hpp | falk-werner/playground | 501b425d4c8161bdd89ad92b78a4741d81af9acb | [
"MIT"
] | null | null | null | openssl-examples/include/cli/arguments.hpp | falk-werner/playground | 501b425d4c8161bdd89ad92b78a4741d81af9acb | [
"MIT"
] | null | null | null | /* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at https://mozilla.org/MPL/2.0/. */
#ifndef CLI_ARGUMENTS_HPP
#define CLI_ARGUMENTS_HPP
#include <string>
#include <unordered_map>
namespace cli
{
... | 20.964286 | 70 | 0.689949 | falk-werner |
7a796768d7400ffddb6a87734e1311cb9b188af4 | 29,241 | hpp | C++ | include/codegen/include/UnityEngine/UI/ScrollRect.hpp | Futuremappermydud/Naluluna-Modifier-Quest | bfda34370764b275d90324b3879f1a429a10a873 | [
"MIT"
] | 1 | 2021-11-12T09:29:31.000Z | 2021-11-12T09:29:31.000Z | include/codegen/include/UnityEngine/UI/ScrollRect.hpp | Futuremappermydud/Naluluna-Modifier-Quest | bfda34370764b275d90324b3879f1a429a10a873 | [
"MIT"
] | null | null | null | include/codegen/include/UnityEngine/UI/ScrollRect.hpp | Futuremappermydud/Naluluna-Modifier-Quest | bfda34370764b275d90324b3879f1a429a10a873 | [
"MIT"
] | 2 | 2021-10-03T02:14:20.000Z | 2021-11-12T09:29:36.000Z | // Autogenerated from CppHeaderCreator on 7/27/2020 3:10:38 PM
// Created by Sc2ad
// =========================================================================
#pragma once
#pragma pack(push, 8)
// Begin includes
#include "utils/typedefs.h"
// Including type: UnityEngine.EventSystems.UIBehaviour
#include "UnityEngine/E... | 51.120629 | 553 | 0.757943 | Futuremappermydud |
7a7c5c97f5aa712eebe55dc8d0ac8f0efc2cf4ac | 8,616 | cc | C++ | nacl/net/udp_listener.cc | maxsong11/nacld | c4802cc7d9bda03487bde566a3003e8bc0f574d3 | [
"BSD-3-Clause"
] | 9 | 2015-12-23T21:18:28.000Z | 2018-11-25T10:10:12.000Z | nacl/net/udp_listener.cc | maxsong11/nacld | c4802cc7d9bda03487bde566a3003e8bc0f574d3 | [
"BSD-3-Clause"
] | 1 | 2016-01-08T20:56:21.000Z | 2016-01-08T20:56:21.000Z | nacl/net/udp_listener.cc | maxsong11/nacld | c4802cc7d9bda03487bde566a3003e8bc0f574d3 | [
"BSD-3-Clause"
] | 6 | 2015-12-04T18:23:49.000Z | 2018-11-06T03:52:58.000Z | // Copyright 2013 The Chromium Authors. All rights reserved.
// Copyright 2015 Intel Corporation. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include <stdio.h>
#include <string.h>
#include <sstream>
#include "base/logger.h"
#include "ba... | 26.925 | 80 | 0.666086 | maxsong11 |
18528f1718cf409c430581856e0e283feec890e6 | 27 | cpp | C++ | src/http_method.cpp | pozitiffcat/rester | e930a833910ea93180bacbedf1b1be23f45ee4da | [
"MIT"
] | 1 | 2019-07-10T07:35:58.000Z | 2019-07-10T07:35:58.000Z | src/http_method.cpp | pozitiffcat/rester | e930a833910ea93180bacbedf1b1be23f45ee4da | [
"MIT"
] | null | null | null | src/http_method.cpp | pozitiffcat/rester | e930a833910ea93180bacbedf1b1be23f45ee4da | [
"MIT"
] | null | null | null | #include "http_method.hpp"
| 13.5 | 26 | 0.777778 | pozitiffcat |
1856afa93da83c4b693e43da18982be2e90199cf | 484 | cpp | C++ | pat/pat1031.cpp | zofvbeaf/algorithm-practices | 9772808fdf1b73ac55887291d9fb680e90b60958 | [
"MIT"
] | null | null | null | pat/pat1031.cpp | zofvbeaf/algorithm-practices | 9772808fdf1b73ac55887291d9fb680e90b60958 | [
"MIT"
] | null | null | null | pat/pat1031.cpp | zofvbeaf/algorithm-practices | 9772808fdf1b73ac55887291d9fb680e90b60958 | [
"MIT"
] | null | null | null | #include<iostream>
#include<vector>
#include<string.h>
#include<algorithm>
using namespace std;
int main()
{
string s;
cin>>s;
int len = s.length();
int n1 = len/3,n3 = len/3, n2 = len-n1-n3; //不能n1=n2=n3
if(len%3 == 0) { n1--;n3--;n2 +=2;}
for(int i=0; i<n1; i++){
cout<<s[i];
... | 21.043478 | 59 | 0.491736 | zofvbeaf |
185707fd55ea6faf75bbdb73bbf5aa8529f77874 | 3,158 | cpp | C++ | test/MeLikeyCode-QtGameEngine-2a3d47c/qge/ECMapMover.cpp | JamesMBallard/qmake-unity | cf5006a83e7fb1bbd173a9506771693a673d387f | [
"MIT"
] | 16 | 2019-05-23T08:10:39.000Z | 2021-12-21T11:20:37.000Z | test/MeLikeyCode-QtGameEngine-2a3d47c/qge/ECMapMover.cpp | JamesMBallard/qmake-unity | cf5006a83e7fb1bbd173a9506771693a673d387f | [
"MIT"
] | null | null | null | test/MeLikeyCode-QtGameEngine-2a3d47c/qge/ECMapMover.cpp | JamesMBallard/qmake-unity | cf5006a83e7fb1bbd173a9506771693a673d387f | [
"MIT"
] | 2 | 2019-05-23T18:37:43.000Z | 2021-08-24T21:29:40.000Z | #include "ECMapMover.h"
#include "Map.h"
#include "Game.h"
#include "MapGrid.h"
#include "Node.h"
using namespace qge;
ECMapMover::ECMapMover(Entity *entity):
EntityController(entity),
borderThreshold_(10)
{
assert(entity != nullptr);
// listen to when entity moves
connect(entity,&Entity::moved,... | 30.960784 | 93 | 0.624763 | JamesMBallard |
185894efec17052bd63aa3fe982827369c8edc6d | 775 | hh | C++ | src/file.hh | deurzen/bulkrename | 8de602ae3a34716e874ce334d0609a80536c9dbb | [
"BSD-3-Clause"
] | null | null | null | src/file.hh | deurzen/bulkrename | 8de602ae3a34716e874ce334d0609a80536c9dbb | [
"BSD-3-Clause"
] | null | null | null | src/file.hh | deurzen/bulkrename | 8de602ae3a34716e874ce334d0609a80536c9dbb | [
"BSD-3-Clause"
] | null | null | null | #ifndef __BULKRENAME_FILE_GUARD__
#define __BULKRENAME_FILE_GUARD__
#include "node.hh"
#include <fstream>
#include <string.h>
#include <iostream>
#include <string>
#include <cstdio>
class filehandler_t
{
public:
filehandler_t()
{
char* tmpname = strdup("/tmp/tmpfileXXXXXXXXXX");
mkstemp(tmpn... | 17.222222 | 57 | 0.636129 | deurzen |
185a633de3a64811253334a39e0ac7f71e4e31c6 | 7,366 | cpp | C++ | test/unit/tcframe/driver/TestCaseDriverTests.cpp | tcgen/tcgen | d3b79585b40995ea8fc8091ecc6b6b19c2cb46ad | [
"MIT"
] | 76 | 2015-03-31T01:36:17.000Z | 2021-12-29T08:16:25.000Z | test/unit/tcframe/driver/TestCaseDriverTests.cpp | tcgen/tcgen | d3b79585b40995ea8fc8091ecc6b6b19c2cb46ad | [
"MIT"
] | 68 | 2016-11-28T18:58:26.000Z | 2018-08-10T13:33:35.000Z | test/unit/tcframe/driver/TestCaseDriverTests.cpp | tcgen/tcgen | d3b79585b40995ea8fc8091ecc6b6b19c2cb46ad | [
"MIT"
] | 17 | 2015-04-24T03:52:32.000Z | 2022-03-11T23:28:02.000Z | #include "gmock/gmock.h"
#include "../mock.hpp"
#include <sstream>
#include <streambuf>
#include <utility>
#include "MockRawIOManipulator.hpp"
#include "../spec/io/MockIOManipulator.hpp"
#include "../spec/verifier/MockVerifier.hpp"
#include "tcframe/driver/TestCaseDriver.hpp"
using ::testing::_;
using ::testing::Eq;... | 33.481818 | 119 | 0.706489 | tcgen |
185ad667e2140f0aeddd86cc3cb6970d9175e079 | 333 | hpp | C++ | Micasa/image_scaler.hpp | terrakuh/micasa | 38aefce30c2a508557468a11d770f3e3d482d1da | [
"MIT"
] | null | null | null | Micasa/image_scaler.hpp | terrakuh/micasa | 38aefce30c2a508557468a11d770f3e3d482d1da | [
"MIT"
] | null | null | null | Micasa/image_scaler.hpp | terrakuh/micasa | 38aefce30c2a508557468a11d770f3e3d482d1da | [
"MIT"
] | null | null | null | #pragma once
#include <cmath>
#include <QtWidgets\QWidget>
#include <QtCore\QTimeLine>
#include "image_item.hpp"
class image_scaler
{
public:
image_scaler(QWidget * _widget, image_item ** _image);
void add_steps(int _steps);
private:
int _destination_level;
QTimeLine _scaler;
static double scaling_function(d... | 15.857143 | 55 | 0.762763 | terrakuh |
18663000d41284c595c75793284e23e783255fc9 | 3,609 | cpp | C++ | integrate/property_server/source/sr_main.cpp | BoneCrasher/ShirabeEngine | 39b3aa2c5173084d59b96b7f60c15207bff0ad04 | [
"MIT"
] | 5 | 2019-12-02T12:28:57.000Z | 2021-04-07T21:21:13.000Z | integrate/property_server/source/sr_main.cpp | BoneCrasher/ShirabeEngine | 39b3aa2c5173084d59b96b7f60c15207bff0ad04 | [
"MIT"
] | null | null | null | integrate/property_server/source/sr_main.cpp | BoneCrasher/ShirabeEngine | 39b3aa2c5173084d59b96b7f60c15207bff0ad04 | [
"MIT"
] | 1 | 2020-01-09T14:25:42.000Z | 2020-01-09T14:25:42.000Z | /*!
* @file sr_main.cpp
* @author Marc-Anton Boehm-von Thenen
* @date 27/06/2018
* @copyright SmartRay GmbH (www.smartray.com)
*/
#include "sr_pch.h"
#include <functional>
#include <iostream>
#include "application/sr_state.h"
#include "application/sr_handler_factory.h"
#include <tcp_server_client/... | 28.872 | 136 | 0.563591 | BoneCrasher |
18766da2fb8b4a197e862b8f6772a05660f0cc66 | 1,194 | cpp | C++ | orm-cpp/orm/test_mock/store_mock/orm/store_mark/store.cpp | ironbit/showcase-app | 3bb5fad9f616c04bdbec67b682713fbb671fce4a | [
"MIT"
] | null | null | null | orm-cpp/orm/test_mock/store_mock/orm/store_mark/store.cpp | ironbit/showcase-app | 3bb5fad9f616c04bdbec67b682713fbb671fce4a | [
"MIT"
] | null | null | null | orm-cpp/orm/test_mock/store_mock/orm/store_mark/store.cpp | ironbit/showcase-app | 3bb5fad9f616c04bdbec67b682713fbb671fce4a | [
"MIT"
] | null | null | null | #include "orm/store_mark/store.h"
namespace orm::store_mark {
test::mock::Store& Store::mock() {
return mMock;
}
std::shared_ptr<orm::core::Property> Store::query(std::int64_t identity) {
return mMock.query(identity);
}
bool Store::commit() {
return mMock.commit();
}
std::shared_ptr<orm::core::Property> Store::... | 25.956522 | 95 | 0.717755 | ironbit |
187727753cbf4ffc33b237b442477bf1452f9cf8 | 347 | hpp | C++ | src/mainView/mainView.hpp | Tau5/mkrandom | f6586690d6d696c564a83e28e39679eeb0d8d5e9 | [
"MIT"
] | null | null | null | src/mainView/mainView.hpp | Tau5/mkrandom | f6586690d6d696c564a83e28e39679eeb0d8d5e9 | [
"MIT"
] | null | null | null | src/mainView/mainView.hpp | Tau5/mkrandom | f6586690d6d696c564a83e28e39679eeb0d8d5e9 | [
"MIT"
] | null | null | null | #ifndef __MAINVIEW_H__
#define __MAINVIEW_H__
#include "../scenario.hpp"
#include "../context.hpp"
#include "../scenarioContext.hpp"
#include "../view.hpp"
class MainView: public View {
private:
int subview;
public:
MainView(Context context);
void init();
void loop(SceCtrlData pad, SceCtrlData pad_prev);
};... | 18.263158 | 51 | 0.720461 | Tau5 |
18779c3b9615171d49bdd7503a8e2d6be74892ea | 1,334 | cpp | C++ | Dynamic Programming/2zeroOneKnapsack.cpp | Coderangshu/450DSA | fff6cee65f75e5a0bb61d5fd8d000317a7736ca3 | [
"MIT"
] | 1 | 2021-01-18T14:51:20.000Z | 2021-01-18T14:51:20.000Z | Dynamic Programming/2zeroOneKnapsack.cpp | Coderangshu/450DSA | fff6cee65f75e5a0bb61d5fd8d000317a7736ca3 | [
"MIT"
] | null | null | null | Dynamic Programming/2zeroOneKnapsack.cpp | Coderangshu/450DSA | fff6cee65f75e5a0bb61d5fd8d000317a7736ca3 | [
"MIT"
] | null | null | null | // { Driver Code Starts
#include<bits/stdc++.h>
using namespace std;
// } Driver Code Ends
class Solution
{
public:
//Function to return max value that can be put in knapsack of capacity W.
int knapSack(int W, int wt[], int val[], int n)
{
// Your code here
vector<vector<int>> dp(W+... | 21.516129 | 77 | 0.450525 | Coderangshu |
187bcf9d3a46194b1e9ad708a033401e9f6f5cf6 | 283 | hpp | C++ | test/strategy.hpp | fyquah95/robot_cpp | f0898957fb0b1258419e4ace9d7464143caaa5e4 | [
"MIT"
] | 11 | 2018-01-10T12:35:04.000Z | 2018-08-29T01:47:48.000Z | test/strategy.hpp | fyquah95/robot_cpp | f0898957fb0b1258419e4ace9d7464143caaa5e4 | [
"MIT"
] | null | null | null | test/strategy.hpp | fyquah95/robot_cpp | f0898957fb0b1258419e4ace9d7464143caaa5e4 | [
"MIT"
] | 2 | 2018-01-10T13:04:08.000Z | 2018-01-10T13:24:12.000Z | #ifndef STRATEGY_HPP
#define STRATEGY_HPP
#include "game.hpp"
game_state_t strategy_init(const game_state_t & state);
game_state_t strategy_step(const game_state_t & state, bool *moved);
game_state_t strategy_term(game_state_t state);
void strategy_print_internal_state();
#endif
| 23.583333 | 68 | 0.823322 | fyquah95 |
187f1e267bf275dd1c60a0dfafa60bf3658cf60d | 168 | hpp | C++ | src/include/streamer/manipulation.hpp | philip1337/samp-plugin-streamer | 54b08afd5e73bd5f68f67f9cf8cc78189bf6ef8a | [
"Apache-2.0"
] | 2 | 2017-07-23T23:27:03.000Z | 2017-07-24T06:18:13.000Z | src/include/streamer/manipulation.hpp | Sphinxila/samp-plugin-streamer | 54b08afd5e73bd5f68f67f9cf8cc78189bf6ef8a | [
"Apache-2.0"
] | null | null | null | src/include/streamer/manipulation.hpp | Sphinxila/samp-plugin-streamer | 54b08afd5e73bd5f68f67f9cf8cc78189bf6ef8a | [
"Apache-2.0"
] | null | null | null | #ifndef MANIPULATION_HPP
#define MANIPULATION_HPP
#pragma once
#include "config.hpp"
STREAMER_BEGIN_NS
int Streamer_GetUpperBound(int type);
STREAMER_END_NS
#endif | 12.923077 | 37 | 0.827381 | philip1337 |
18869220aaac503fc651d518f224e5118ec6d1b1 | 210 | cpp | C++ | source/ballstatus.cpp | BonexGoo/ballt | 33e4022161cf4b0017da7460d19847d0d5d2d51d | [
"MIT"
] | 1 | 2020-08-21T01:26:47.000Z | 2020-08-21T01:26:47.000Z | source/ballstatus.cpp | BonexGoo/ballt | 33e4022161cf4b0017da7460d19847d0d5d2d51d | [
"MIT"
] | null | null | null | source/ballstatus.cpp | BonexGoo/ballt | 33e4022161cf4b0017da7460d19847d0d5d2d51d | [
"MIT"
] | 1 | 2020-08-21T01:26:55.000Z | 2020-08-21T01:26:55.000Z | #include <boss.hpp>
#include "ballstatus.hpp"
BallStatus& BallStatus::operator=(const BallStatus& rhs)
{
Memory::Copy(&mRailCode, &rhs.mRailCode, sizeof(BallStatus) - sizeof(uint32));
return *this;
}
| 23.333333 | 82 | 0.709524 | BonexGoo |
188d5a14490cc58d8bf29d451376f39297ddea5e | 35,755 | cc | C++ | omnetpy/bindings/bind_ccomponent.cc | ranarashadmahmood/OMNETPY | 13ab49106a3ac700aa633a8eb37acdad5e3157ab | [
"Naumen",
"Condor-1.1",
"MS-PL"
] | 31 | 2020-06-23T13:53:47.000Z | 2022-03-28T08:09:00.000Z | omnetpy/bindings/bind_ccomponent.cc | ranarashadmahmood/OMNETPY | 13ab49106a3ac700aa633a8eb37acdad5e3157ab | [
"Naumen",
"Condor-1.1",
"MS-PL"
] | 8 | 2020-11-01T21:35:47.000Z | 2021-08-29T11:40:50.000Z | omnetpy/bindings/bind_ccomponent.cc | ranarashadmahmood/OMNETPY | 13ab49106a3ac700aa633a8eb37acdad5e3157ab | [
"Naumen",
"Condor-1.1",
"MS-PL"
] | 8 | 2021-03-22T15:32:22.000Z | 2022-02-02T14:57:56.000Z | #include <pybind11/pybind11.h>
#include <omnetpp.h>
#include <omnetpp/ccomponent.h>
/*
* make public all the protected members of cComponent
* we want to expose to python
*/
class cComponentPublicist : public omnetpp::cComponent {
public:
using omnetpp::cComponent::initialize;
using omnetpp::cComponent::n... | 38.695887 | 127 | 0.646315 | ranarashadmahmood |
188deba36441ae6ebeafde6fc6f303409baa2ba8 | 451 | cpp | C++ | Engine/Source/Built-in/Script/S_LookAt.cpp | Aredhele/OOM-Engine | e52f706d17f1867f575a85ba5b87b4cc34a7fa97 | [
"MIT"
] | 9 | 2018-07-21T00:30:35.000Z | 2021-09-04T02:54:11.000Z | Engine/Source/Built-in/Script/S_LookAt.cpp | Aredhele/OOM-Engine | e52f706d17f1867f575a85ba5b87b4cc34a7fa97 | [
"MIT"
] | null | null | null | Engine/Source/Built-in/Script/S_LookAt.cpp | Aredhele/OOM-Engine | e52f706d17f1867f575a85ba5b87b4cc34a7fa97 | [
"MIT"
] | 1 | 2021-12-03T14:12:41.000Z | 2021-12-03T14:12:41.000Z | /// \file S_LookAt.cpp
/// \date 06/08/2018
/// \project OOM-Engine
/// \package Composite
/// \author Vincent STEHLY--CALISTO
#include "SDK/SDK.hpp"
/*virtual */ void S_LookAt::Start()
{
GetTransform()->LookAt(mp_target->GetTransform());
}
/*virtual */ void S_LookAt::Update()
{
GetTransform(... | 19.608696 | 57 | 0.660754 | Aredhele |
1897978d06090c03b05b161c0623079c38bab094 | 1,416 | hpp | C++ | android-31/android/os/health/HealthStats.hpp | YJBeetle/QtAndroidAPI | 1468b5dc6eafaf7709f0b00ba1a6ec2b70684266 | [
"Apache-2.0"
] | 12 | 2020-03-26T02:38:56.000Z | 2022-03-14T08:17:26.000Z | android-31/android/os/health/HealthStats.hpp | YJBeetle/QtAndroidAPI | 1468b5dc6eafaf7709f0b00ba1a6ec2b70684266 | [
"Apache-2.0"
] | 1 | 2021-01-27T06:07:45.000Z | 2021-11-13T19:19:43.000Z | android-29/android/os/health/HealthStats.hpp | YJBeetle/QtAndroidAPI | 1468b5dc6eafaf7709f0b00ba1a6ec2b70684266 | [
"Apache-2.0"
] | 3 | 2021-02-02T12:34:55.000Z | 2022-03-08T07:45:57.000Z | #pragma once
#include "../../../JObject.hpp"
namespace android::os::health
{
class TimerStat;
}
class JString;
namespace android::os::health
{
class HealthStats : public JObject
{
public:
// Fields
// QJniObject forward
template<typename ...Ts> explicit HealthStats(const char *className, const char *sig... | 27.764706 | 152 | 0.738701 | YJBeetle |
18a1a13ed16965bcbc7647a731537a22cba44e44 | 5,197 | cpp | C++ | Arduboy_audio.cpp | Lswbanban/RickArdurous | fc716b6b201c5535f8a7660309d9524f2dca2d25 | [
"DOC"
] | null | null | null | Arduboy_audio.cpp | Lswbanban/RickArdurous | fc716b6b201c5535f8a7660309d9524f2dca2d25 | [
"DOC"
] | null | null | null | Arduboy_audio.cpp | Lswbanban/RickArdurous | fc716b6b201c5535f8a7660309d9524f2dca2d25 | [
"DOC"
] | null | null | null | #include "CustomArduboy.h"
#include "Arduboy_audio.h"
const byte PROGMEM tune_pin_to_timer_PGM[] = { 3, 1 };
volatile byte *_tunes_timer1_pin_port;
volatile byte _tunes_timer1_pin_mask;
volatile byte *_tunes_timer3_pin_port;
volatile byte _tunes_timer3_pin_mask;
byte _tune_pins[AVAILABLE_TIMERS];
#define LOWEST_NOTE ... | 28.091892 | 96 | 0.675005 | Lswbanban |
18a67c1af6a1acb3f30fa8032f9d7e1c055c7db6 | 1,675 | cpp | C++ | src/Homography/Triangulation.cpp | diegomazala/Homography | 545e7456284656f45aa77121baf9f54a8ae8557c | [
"MIT"
] | null | null | null | src/Homography/Triangulation.cpp | diegomazala/Homography | 545e7456284656f45aa77121baf9f54a8ae8557c | [
"MIT"
] | null | null | null | src/Homography/Triangulation.cpp | diegomazala/Homography | 545e7456284656f45aa77121baf9f54a8ae8557c | [
"MIT"
] | null | null | null | #include "Triangulation.h"
#include <iostream>
Triangulation::Triangulation(
const Eigen::MatrixXd& P0,
const Eigen::MatrixXd& P1,
const Eigen::VectorXd& x0,
const Eigen::VectorXd& x1):
P(P0, P1),
x(x0, x1)
{
}
Triangulation::Triangulation(const std::pair<Eigen::MatrixXd, Eigen::MatrixXd>& _P,
... | 24.275362 | 97 | 0.619701 | diegomazala |
18aabab0761eaa85dc96d77a702af78561d28097 | 8,874 | cpp | C++ | WeatherModel/WeatherModel.cpp | patrickn/QPhotoFrame | 18b5cccc1e56d6561b64505e1395faa20261056e | [
"MIT"
] | 3 | 2020-11-23T23:53:30.000Z | 2021-12-26T16:14:23.000Z | WeatherModel/WeatherModel.cpp | patrickn/QPhotoFrame | 18b5cccc1e56d6561b64505e1395faa20261056e | [
"MIT"
] | 4 | 2020-12-05T17:58:31.000Z | 2020-12-13T00:54:28.000Z | WeatherModel/WeatherModel.cpp | patrickn/QPhotoFrame | 18b5cccc1e56d6561b64505e1395faa20261056e | [
"MIT"
] | 1 | 2021-09-24T21:04:12.000Z | 2021-09-24T21:04:12.000Z | //-----------------------------------------------------------------------------
//-----------------------------------------------------------------------------
#include <QJsonArray>
#include <QJsonDocument>
#include <QJsonObject>
#include <QJsonValue>
#include <QNetworkConfigurationManager>
#include <QNetworkReply>
#in... | 29.878788 | 126 | 0.630156 | patrickn |
18ad9c5af589eab8c064ad9cb769055557a78b39 | 1,614 | cpp | C++ | 05_WalkTester/Source/main.cpp | bugsbycarlin/SecretSalsa | b4b15e7ba14cdc2be9aad4d111e710ed0ec507ee | [
"MIT"
] | null | null | null | 05_WalkTester/Source/main.cpp | bugsbycarlin/SecretSalsa | b4b15e7ba14cdc2be9aad4d111e710ed0ec507ee | [
"MIT"
] | null | null | null | 05_WalkTester/Source/main.cpp | bugsbycarlin/SecretSalsa | b4b15e7ba14cdc2be9aad4d111e710ed0ec507ee | [
"MIT"
] | null | null | null | /*
Secret Salsa
Matthew Carlin
Copyright 2019
*/
#include "honey.h"
#include <string>
#include <array>
using namespace Honey;
using namespace std;
position player_position;
int step_width;
float frame_delay;
int current_frame;
bool quit = false;
void initialize() {
player_position = {
hot_config.get... | 16.989474 | 74 | 0.627633 | bugsbycarlin |
18ae5a2da6dfcf3eff7523efdd669f7314a3dc93 | 8,356 | cpp | C++ | framework/imp/sys/common/ByteBuffer.cpp | dterletskiy/carpc | c98d84e5bce69fb30a0f34e7b6cd82b4c98ba9b5 | [
"MIT"
] | 6 | 2022-03-24T15:40:03.000Z | 2022-03-30T09:40:20.000Z | framework/imp/sys/common/ByteBuffer.cpp | dterletskiy/carpc | c98d84e5bce69fb30a0f34e7b6cd82b4c98ba9b5 | [
"MIT"
] | 7 | 2022-03-24T18:53:52.000Z | 2022-03-30T10:15:50.000Z | framework/imp/sys/common/ByteBuffer.cpp | dterletskiy/carpc | c98d84e5bce69fb30a0f34e7b6cd82b4c98ba9b5 | [
"MIT"
] | 1 | 2022-03-20T21:22:09.000Z | 2022-03-20T21:22:09.000Z | #include "api/sys/common/ByteBuffer.hpp"
#include "api/sys/trace/Trace.hpp"
#define CLASS_ABBR "B_BUFFER"
using namespace carpc;
ByteBuffer::ByteBuffer( const size_t capacity )
{
if( true == allocate( capacity ) )
fill( );
}
ByteBuffer::ByteBuffer( const void* p_buffer, const size_t size )
{
if( fal... | 23.275766 | 126 | 0.61034 | dterletskiy |
18b624c1e5950224ef77b44e0e041667b8d75fe3 | 5,707 | cc | C++ | KV_Store_Engine_TaurusDB_Race_stage2/src/kv_service/KeyFile.cc | chenshuaihao/KV_Store_Engine_TaurusDB_Race | b025879e5aa827800919354b56c474639ec34b62 | [
"MIT"
] | 11 | 2019-08-21T04:35:36.000Z | 2021-07-13T02:11:21.000Z | KV_Store_Engine_TaurusDB_Race_stage2/src/kv_service/KeyFile.cc | chenshuaihao/KV_Store_Engine_TaurusDB_Race | b025879e5aa827800919354b56c474639ec34b62 | [
"MIT"
] | null | null | null | KV_Store_Engine_TaurusDB_Race_stage2/src/kv_service/KeyFile.cc | chenshuaihao/KV_Store_Engine_TaurusDB_Race | b025879e5aa827800919354b56c474639ec34b62 | [
"MIT"
] | 1 | 2020-03-30T07:39:53.000Z | 2020-03-30T07:39:53.000Z |
#include <fcntl.h>
#include <sys/mman.h>
#include <unistd.h>
#include <sys/types.h>
#include <set>
#include <map>
#include <unordered_map>
#include <sparsepp/spp.h>
#include <thread>
#include <iostream>
#include <sstream>
#include <string>
#include <exception>
#include <chrono>
#include "utils.h"
#include "kv_string.h... | 31.882682 | 127 | 0.591204 | chenshuaihao |
18bc87786c4905941d79352bf2755a679164a3e0 | 2,072 | hpp | C++ | lib/parser.hpp | RickAi/csci5570 | 2814c0a6bf608c73bf81d015d13e63443470e457 | [
"Apache-2.0"
] | 7 | 2019-04-09T16:25:49.000Z | 2021-12-07T10:29:52.000Z | lib/parser.hpp | RickAi/csci5570 | 2814c0a6bf608c73bf81d015d13e63443470e457 | [
"Apache-2.0"
] | null | null | null | lib/parser.hpp | RickAi/csci5570 | 2814c0a6bf608c73bf81d015d13e63443470e457 | [
"Apache-2.0"
] | 4 | 2019-08-07T07:43:27.000Z | 2021-05-21T07:54:14.000Z | #pragma once
#include "boost/utility/string_ref.hpp"
#include <base/magic.hpp>
namespace minips {
namespace lib {
template<typename Sample>
class Parser {
public:
/**
* Parsing logic for one line in file
*
* @param line a line read from ... | 34.533333 | 111 | 0.441602 | RickAi |
18bd8329ff859f91d153112c30c047d8e0b27648 | 32,359 | cc | C++ | src/LogCleaner.cc | taschik/ramcloud | 6ef2e1cd61111995881d54bda6f9296b4777b928 | [
"0BSD"
] | 1 | 2016-01-18T12:41:28.000Z | 2016-01-18T12:41:28.000Z | src/LogCleaner.cc | taschik/ramcloud | 6ef2e1cd61111995881d54bda6f9296b4777b928 | [
"0BSD"
] | null | null | null | src/LogCleaner.cc | taschik/ramcloud | 6ef2e1cd61111995881d54bda6f9296b4777b928 | [
"0BSD"
] | null | null | null | /* Copyright (c) 2010-2013 Stanford University
*
* Permission to use, copy, modify, and 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.
*
* THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR(... | 37.891101 | 83 | 0.665719 | taschik |
18c778b01f3f7a81a4a3286822b0eded2795264d | 9,718 | hpp | C++ | include/malbolge/virtual_cpu.hpp | cmannett85/malbolge | a3216af7b029d1b942af1dd3678d43fbb5d3c017 | [
"MIT"
] | 1 | 2021-12-13T12:34:27.000Z | 2021-12-13T12:34:27.000Z | include/malbolge/virtual_cpu.hpp | cmannett85/malbolge | a3216af7b029d1b942af1dd3678d43fbb5d3c017 | [
"MIT"
] | 62 | 2020-07-17T07:33:00.000Z | 2021-05-22T15:30:20.000Z | include/malbolge/virtual_cpu.hpp | cmannett85/malbolge | a3216af7b029d1b942af1dd3678d43fbb5d3c017 | [
"MIT"
] | 1 | 2021-12-13T12:34:30.000Z | 2021-12-13T12:34:30.000Z | /* Cam Mannett 2020
*
* See LICENSE file
*/
#pragma once
#include "malbolge/utility/signal.hpp"
#include "malbolge/virtual_memory.hpp"
namespace malbolge
{
/** Represents a virtual CPU.
*
* This class can not be copied, but can be moved.
*/
class virtual_cpu
{
public:
/** Execution state.
*/
enum ... | 36.261194 | 87 | 0.666392 | cmannett85 |
18c8052bf09362fa35b1e958280afa0aceb9f5b0 | 764 | hh | C++ | dev/g++/projects/embedded/security/include/sha_algorithms.hh | YannGarcia/repo | 0f3de24c71d942c752ada03c10861e83853fdf71 | [
"MIT"
] | null | null | null | dev/g++/projects/embedded/security/include/sha_algorithms.hh | YannGarcia/repo | 0f3de24c71d942c752ada03c10861e83853fdf71 | [
"MIT"
] | null | null | null | dev/g++/projects/embedded/security/include/sha_algorithms.hh | YannGarcia/repo | 0f3de24c71d942c752ada03c10861e83853fdf71 | [
"MIT"
] | 1 | 2017-01-27T12:53:50.000Z | 2017-01-27T12:53:50.000Z | /*!
* \file sha_algorithms.hh
* \brief Header file for the lightweight security library.
* \author garciay.yann@gmail.com
* \copyright Copyright (c) 2017 ygarcia. All rights reserved
* \license This project is released under the MIT License
* \version 0.1
*/
#pragma once
/*! \namespace security
... | 28.296296 | 63 | 0.663613 | YannGarcia |
18cd127a29a1d3773239a5ffb2432d85d8bcb02b | 8,028 | cpp | C++ | main/gui/LvDisplayDriver.cpp | enelson1001/M5StackDemo01 | 0ed654406b01e2575facaff522289fcaf555fa91 | [
"MIT"
] | null | null | null | main/gui/LvDisplayDriver.cpp | enelson1001/M5StackDemo01 | 0ed654406b01e2575facaff522289fcaf555fa91 | [
"MIT"
] | null | null | null | main/gui/LvDisplayDriver.cpp | enelson1001/M5StackDemo01 | 0ed654406b01e2575facaff522289fcaf555fa91 | [
"MIT"
] | null | null | null | /****************************************************************************************
* LvDisplayDriver.h - A LittlevGL Display Driver for ILI9341
* Created on Dec. 03, 2019
* Copyright (c) 2019 Ed Nelson (https://github.com/enelson1001)
* Licensed under MIT License (see LICENSE file)
*
* Derivative Works
* ... | 40.341709 | 118 | 0.565272 | enelson1001 |
18d1fa45078e1f1e037d2d2b84088bd5c7ff7016 | 264 | cpp | C++ | compiler/AST/Operators/Standard/SubtractionOperatorNode.cpp | mattmassicotte/three | 3986c656724d1317bdb46d4777f8f952103d7ce7 | [
"MIT"
] | 8 | 2015-01-02T21:40:55.000Z | 2016-05-12T10:48:09.000Z | compiler/AST/Operators/Standard/SubtractionOperatorNode.cpp | mattmassicotte/three | 3986c656724d1317bdb46d4777f8f952103d7ce7 | [
"MIT"
] | null | null | null | compiler/AST/Operators/Standard/SubtractionOperatorNode.cpp | mattmassicotte/three | 3986c656724d1317bdb46d4777f8f952103d7ce7 | [
"MIT"
] | null | null | null | #include "SubtractionOperatorNode.h"
namespace Three {
std::string SubtractionOperatorNode::nodeName() const {
return "Subtraction Operator";
}
void SubtractionOperatorNode::accept(ASTVisitor& visitor) {
visitor.visit(*this);
}
}
| 22 | 63 | 0.685606 | mattmassicotte |
18d479e04481497d84db0ebcade886391c34a155 | 2,801 | cpp | C++ | modules/boost/simd/base/unit/boolean/scalar/seldec.cpp | psiha/nt2 | 5e829807f6b57b339ca1be918a6b60a2507c54d0 | [
"BSL-1.0"
] | 34 | 2017-05-19T18:10:17.000Z | 2022-01-04T02:18:13.000Z | modules/boost/simd/base/unit/boolean/scalar/seldec.cpp | psiha/nt2 | 5e829807f6b57b339ca1be918a6b60a2507c54d0 | [
"BSL-1.0"
] | null | null | null | modules/boost/simd/base/unit/boolean/scalar/seldec.cpp | psiha/nt2 | 5e829807f6b57b339ca1be918a6b60a2507c54d0 | [
"BSL-1.0"
] | 7 | 2017-12-02T12:59:17.000Z | 2021-07-31T12:46:14.000Z | //==============================================================================
// Copyright 2003 - 2012 LASMEA UMR 6602 CNRS/Univ. Clermont II
// Copyright 2009 - 2012 LRI UMR 8623 CNRS/Univ Paris Sud XI
//
// Distributed under the Boost Software License, Version 1.0.
// ... | 41.80597 | 98 | 0.650125 | psiha |
18de0b122c448eeb1dfa08698cefb228782d2d7f | 1,281 | cpp | C++ | 1090 - Trailing Zeroes (II).cpp | BRAINIAC2677/Lightoj-Solutions | e75f56b2cb4ef8f7e00de39fed447b1b37922427 | [
"MIT"
] | null | null | null | 1090 - Trailing Zeroes (II).cpp | BRAINIAC2677/Lightoj-Solutions | e75f56b2cb4ef8f7e00de39fed447b1b37922427 | [
"MIT"
] | null | null | null | 1090 - Trailing Zeroes (II).cpp | BRAINIAC2677/Lightoj-Solutions | e75f56b2cb4ef8f7e00de39fed447b1b37922427 | [
"MIT"
] | null | null | null | /*BISMILLAH
THE WHITE WOLF
NO DREAM IS TOO BIG AND NO DREAMER IS TOO SMALL*/
#include<bits/stdc++.h>
using namespace std;
#define io ios_base::sync_with_stdio(false)
#define ll long long
#define ull unsigned long long
#define vi vector<int>
#define vll vector<long long>
#define pb push_back
#define mod 1000000007
#... | 17.547945 | 57 | 0.440281 | BRAINIAC2677 |
18e2d45e5d9bbd28f4cb0a08a12d5c82384b3fc8 | 7,154 | hpp | C++ | src/GvmClusterPairs.hpp | mdejong/GvmCpp | 827130a145164ae610416d177bfc091246174a60 | [
"Apache-2.0"
] | 1 | 2021-07-14T19:59:59.000Z | 2021-07-14T19:59:59.000Z | src/GvmClusterPairs.hpp | mdejong/GvmCpp | 827130a145164ae610416d177bfc091246174a60 | [
"Apache-2.0"
] | null | null | null | src/GvmClusterPairs.hpp | mdejong/GvmCpp | 827130a145164ae610416d177bfc091246174a60 | [
"Apache-2.0"
] | 1 | 2017-11-10T17:05:58.000Z | 2017-11-10T17:05:58.000Z | //
// GvmClusterPairs.hpp
// GvmCpp
//
// Created by Mo DeJong on 8/14/15.
//
// 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
//
// Maint... | 25.368794 | 134 | 0.549623 | mdejong |
18e2e6bfbd3fd5f5c12860dc3b002123cc118a69 | 1,581 | cc | C++ | src/mpsrc/wavy_listen.cc | etolabo/kumofs | b0f7ce8263194dbfa92d10ae75849e676e77c067 | [
"Apache-2.0"
] | 38 | 2015-01-21T09:57:36.000Z | 2021-12-13T11:05:19.000Z | src/mpsrc/wavy_listen.cc | frsyuki/kastor | 8bdbf5011aa8cf486b3efd50d7ad471b7a0dfae7 | [
"Apache-2.0"
] | 3 | 2015-12-15T12:43:13.000Z | 2021-07-30T10:31:42.000Z | src/mpsrc/wavy_listen.cc | frsyuki/kastor | 8bdbf5011aa8cf486b3efd50d7ad471b7a0dfae7 | [
"Apache-2.0"
] | 2 | 2015-03-19T18:54:38.000Z | 2019-03-19T13:37:29.000Z | //
// mp::wavy::core::listen
//
// Copyright (C) 2008 FURUHASHI Sadayuki
//
// 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
/... | 21.657534 | 78 | 0.648956 | etolabo |
18eb9ca0a127bc8f5f252f662cbd648ed2d14ddd | 3,308 | cpp | C++ | MeetingManager/MeetingManager/MeetingManager.cpp | hyq5436/playground | 828b9d2266dbb7d0311e2e73b295fcafb101d94f | [
"MIT"
] | 1 | 2021-06-23T08:41:55.000Z | 2021-06-23T08:41:55.000Z | MeetingManager/MeetingManager/MeetingManager.cpp | hyq5436/playground | 828b9d2266dbb7d0311e2e73b295fcafb101d94f | [
"MIT"
] | null | null | null | MeetingManager/MeetingManager/MeetingManager.cpp | hyq5436/playground | 828b9d2266dbb7d0311e2e73b295fcafb101d94f | [
"MIT"
] | null | null | null | #pragma execution_character_set("utf-8")
#include "MeetingManager.h"
#include <QDebug>
#include <QIcon>
#include <QItemDelegate>
#include <QListWidgetItem>
#include <QPainter>
#include <QPushButton>
#include <QStandardItem>
#include <QStandardItemModel>
namespace {
static const int MeetingIconRole = Qt::UserRole + 1... | 34.458333 | 75 | 0.64994 | hyq5436 |
18f0a76921521335b2ea6c2663514844d5b095b9 | 3,483 | cpp | C++ | codes/CF/CF_1427E.cpp | chessbot108/solved-problems | 0945be829a8ea9f0d5896c89331460d70d076691 | [
"MIT"
] | null | null | null | codes/CF/CF_1427E.cpp | chessbot108/solved-problems | 0945be829a8ea9f0d5896c89331460d70d076691 | [
"MIT"
] | null | null | null | codes/CF/CF_1427E.cpp | chessbot108/solved-problems | 0945be829a8ea9f0d5896c89331460d70d076691 | [
"MIT"
] | null | null | null |
//misaka and rin will carry me to cm
#include <iostream>
#include <cstdio>
#include <cstring>
#include <utility>
#include <cassert>
#include <algorithm>
#include <vector>
#include <array>
#include <tuple>
#include <random>
#include <chrono>
#define ll long long
#define lb long double
#define sz(vec) ((int)(vec.size())... | 23.856164 | 135 | 0.547229 | chessbot108 |
18f90c444b68cf7840eee9a0bd2bc08ee2daac98 | 3,643 | cpp | C++ | Hack and Slash/Hack and Slash/src/Math.cpp | JoanStinson/Hack_and_Slash | c76b5eea3455091c77fe35542bc773b3786d1896 | [
"MIT"
] | 2 | 2021-03-25T22:39:22.000Z | 2021-03-31T03:42:33.000Z | Hack and Slash/Hack and Slash/src/Math.cpp | JoanStinson/HackAndSlash | c76b5eea3455091c77fe35542bc773b3786d1896 | [
"MIT"
] | null | null | null | Hack and Slash/Hack and Slash/src/Math.cpp | JoanStinson/HackAndSlash | c76b5eea3455091c77fe35542bc773b3786d1896 | [
"MIT"
] | null | null | null | #include "Math.h"
#include <limits>
#include <algorithm>
namespace math {
bool math::collBetweenTwoRects(SDL_Rect &r1, SDL_Rect &r2) {
SDL_Rect intersection;
return SDL_IntersectRect(&r1, &r2, &intersection) ? true : false;
}
float math::angleBetweenTwoPoints(float x1, float y1, float x2, float y2) {
float ... | 26.985185 | 137 | 0.61625 | JoanStinson |
18fa3ce4f7cf2dd9e3ce3b109c46690492205261 | 1,565 | hpp | C++ | lib/tracer.hpp | ConteDevel/xpertium | dbf03f922f893176b87fc0fe6c0e05fb0fb68c4a | [
"MIT"
] | null | null | null | lib/tracer.hpp | ConteDevel/xpertium | dbf03f922f893176b87fc0fe6c0e05fb0fb68c4a | [
"MIT"
] | null | null | null | lib/tracer.hpp | ConteDevel/xpertium | dbf03f922f893176b87fc0fe6c0e05fb0fb68c4a | [
"MIT"
] | null | null | null | #ifndef TRACER_HPP
#define TRACER_HPP
#include "rule.hpp"
#include <iostream>
#include <string>
#include <type_traits>
#include <vector>
namespace xpertium {
template <typename val_t>
class base_tracer_t {
public:
base_tracer_t() {}
virtual ~base_tracer_t() {}
virtual void push_fact(val_t fact) = 0;
... | 25.241935 | 75 | 0.578914 | ConteDevel |
18ff5467385e0c0e2201d272009d823513ac52c1 | 4,829 | cpp | C++ | ui/osx/tabcontrol.cpp | plonk/peercast-0.1218 | 30fc2401dc798336429a979fe7aaca8883e63ed9 | [
"PSF-2.0",
"Apache-2.0",
"OpenSSL",
"MIT"
] | 28 | 2017-04-30T13:56:13.000Z | 2022-03-20T06:54:37.000Z | ui/osx/tabcontrol.cpp | plonk/peercast-0.1218 | 30fc2401dc798336429a979fe7aaca8883e63ed9 | [
"PSF-2.0",
"Apache-2.0",
"OpenSSL",
"MIT"
] | 72 | 2017-04-25T03:42:58.000Z | 2021-12-04T06:35:28.000Z | ui/osx/tabcontrol.cpp | plonk/peercast-0.1218 | 30fc2401dc798336429a979fe7aaca8883e63ed9 | [
"PSF-2.0",
"Apache-2.0",
"OpenSSL",
"MIT"
] | 12 | 2017-04-16T06:25:24.000Z | 2021-07-07T13:28:27.000Z | // ------------------------------------------------
// tabcontrol.cpp
// PeerCast
//
// Created by mode7 on Fri Apr 02 2004.
// Copyright (c) 2002-2004 peercast.org. All rights reserved.
// ------------------------------------------------
// This program is free software; you can redistribute it and/or modify
// it... | 28.916168 | 106 | 0.6579 | plonk |
7a03aedfb9c28a9dd5dbd06551bede105e01773e | 15,976 | cpp | C++ | teapoy/src/sni/sys.cpp | lyramilk/teapoy | 5b450a243432b058512ed7b1c6f810cb0d207f91 | [
"Apache-2.0"
] | 1 | 2017-09-07T02:28:58.000Z | 2017-09-07T02:28:58.000Z | teapoy/src/sni/sys.cpp | lyramilk/teapoy | 5b450a243432b058512ed7b1c6f810cb0d207f91 | [
"Apache-2.0"
] | null | null | null | teapoy/src/sni/sys.cpp | lyramilk/teapoy | 5b450a243432b058512ed7b1c6f810cb0d207f91 | [
"Apache-2.0"
] | null | null | null | #include <libmilk/scriptengine.h>
#include <libmilk/log.h>
#include <libmilk/dict.h>
#include <libmilk/codes.h>
#include <libmilk/json.h>
#include <libmilk/sha1.h>
#include <libmilk/md5.h>
#include <libmilk/inotify.h>
#include "script.h"
#include "env.h"
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#incl... | 31.264188 | 113 | 0.659176 | lyramilk |
7a0452eb3f7c791a6759324a8cc74c66ba20d538 | 1,190 | hpp | C++ | components/esm/records.hpp | Bodillium/openmw | 5fdd264d0704e33b44b1ccf17ab4fb721f362e34 | [
"Unlicense"
] | null | null | null | components/esm/records.hpp | Bodillium/openmw | 5fdd264d0704e33b44b1ccf17ab4fb721f362e34 | [
"Unlicense"
] | null | null | null | components/esm/records.hpp | Bodillium/openmw | 5fdd264d0704e33b44b1ccf17ab4fb721f362e34 | [
"Unlicense"
] | null | null | null | #ifndef OPENMW_ESM_RECORDS_H
#define OPENMW_ESM_RECORDS_H
#include "defs.hpp"
#include "loadacti.hpp"
#include "loadalch.hpp"
#include "loadappa.hpp"
#include "loadarmo.hpp"
#include "loadbody.hpp"
#include "loadbook.hpp"
#include "loadbsgn.hpp"
#include "loadcell.hpp"
#include "loadclas.hpp"
#include "loadclot.hpp"
#... | 22.884615 | 48 | 0.755462 | Bodillium |
bb43114a487af71d36c85fab409165ca69ed9b9a | 3,221 | cpp | C++ | stlsoft/test/winstl/findvolume_sequence_test/findvolume_sequence_test.cpp | masscry/dmc | c7638f7c524a65bc2af0876c76621d8a11da42bb | [
"BSL-1.0"
] | 86 | 2018-05-24T12:03:44.000Z | 2022-03-13T03:01:25.000Z | stlsoft/test/winstl/findvolume_sequence_test/findvolume_sequence_test.cpp | masscry/dmc | c7638f7c524a65bc2af0876c76621d8a11da42bb | [
"BSL-1.0"
] | 1 | 2019-05-30T01:38:40.000Z | 2019-10-26T07:15:01.000Z | stlsoft/test/winstl/findvolume_sequence_test/findvolume_sequence_test.cpp | masscry/dmc | c7638f7c524a65bc2af0876c76621d8a11da42bb | [
"BSL-1.0"
] | 14 | 2018-07-16T08:29:12.000Z | 2021-08-23T06:21:30.000Z | // findvolume_sequence_test.cpp
//
// Updated: 22nd April 2004
// This will cause various compile-time messages to be emitted. When you get
// sick of them just comment out or remove this #define
#define _STLSOFT_COMPILE_VERBOSE
#include <stlsoft.h>
#include <winstl.h>
#include <stlsoft_simple_algorithm... | 33.206186 | 164 | 0.73859 | masscry |
bb435e8bd2d9eef2a964efa8005a5374741e7147 | 3,553 | hpp | C++ | src/include/1_2/CL/cl2xrt.hpp | AlphaBu/XRT | 72d34d637d3292e56871f9384888e6aed73b5969 | [
"Apache-2.0"
] | 359 | 2018-10-05T03:05:08.000Z | 2022-03-31T06:28:16.000Z | src/include/1_2/CL/cl2xrt.hpp | AlphaBu/XRT | 72d34d637d3292e56871f9384888e6aed73b5969 | [
"Apache-2.0"
] | 5,832 | 2018-10-02T22:43:29.000Z | 2022-03-31T22:28:05.000Z | src/include/1_2/CL/cl2xrt.hpp | AlphaBu/XRT | 72d34d637d3292e56871f9384888e6aed73b5969 | [
"Apache-2.0"
] | 442 | 2018-10-02T23:06:29.000Z | 2022-03-21T08:34:44.000Z | /**
* Copyright (C) 2021 Xilinx, Inc
*
* Licensed under the Apache License, Version 2.0 (the "License"). You may
* not use this file except in compliance with the License. A copy of the
* License is located at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to... | 31.166667 | 76 | 0.748382 | AlphaBu |
bb43e4b192ad4725033d5404103b4cf334583627 | 796 | cpp | C++ | EraseSecure/main.cpp | KalawelaLo/Kattis | cbe2cc742f9902f5d325deb04fd39208774070c5 | [
"Unlicense"
] | null | null | null | EraseSecure/main.cpp | KalawelaLo/Kattis | cbe2cc742f9902f5d325deb04fd39208774070c5 | [
"Unlicense"
] | null | null | null | EraseSecure/main.cpp | KalawelaLo/Kattis | cbe2cc742f9902f5d325deb04fd39208774070c5 | [
"Unlicense"
] | null | null | null | #include <iostream>
#include <string>
using namespace std;
int main() {
string orginal, processed, flipped;
int proc_num;
cin >> proc_num >> orginal >> processed;
if(proc_num%2 == 0){
if(orginal == processed){
cout << "Deletion succeeded" << endl;
}
else{
... | 21.513514 | 49 | 0.430905 | KalawelaLo |
bb4ba5442d4b040866523fa2e0d7fdd29772dad3 | 12,686 | cpp | C++ | lib/src/PyParse/PyVectorFunction.cpp | rmrsk/Chombo-3.3 | f2119e396460c1bb19638effd55eb71c2b35119e | [
"BSD-3-Clause-LBNL"
] | null | null | null | lib/src/PyParse/PyVectorFunction.cpp | rmrsk/Chombo-3.3 | f2119e396460c1bb19638effd55eb71c2b35119e | [
"BSD-3-Clause-LBNL"
] | null | null | null | lib/src/PyParse/PyVectorFunction.cpp | rmrsk/Chombo-3.3 | f2119e396460c1bb19638effd55eb71c2b35119e | [
"BSD-3-Clause-LBNL"
] | 1 | 2021-04-13T19:06:43.000Z | 2021-04-13T19:06:43.000Z | #ifdef CH_LANG_CC
/*
* _______ __
* / ___/ / ___ __ _ / / ___
* / /__/ _ \/ _ \/ V \/ _ \/ _ \
* \___/_//_/\___/_/_/_/_.__/\___/
* Please refer to Copyright.txt, in Chombo's root directory.
*/
#endif
#include "Python.h"
#include "PyVectorFunction.H"
#include "CH_assert.H"
#inc... | 29.297921 | 87 | 0.580719 | rmrsk |
bb51fbadc27935f9a34938e73987c0f622e9da94 | 2,479 | cpp | C++ | src/timeopt/problem.cpp | ggory15/hpp_timeopt_python | 3100d044be65bae521913bea0b9ed902cc5d346c | [
"BSD-2-Clause"
] | null | null | null | src/timeopt/problem.cpp | ggory15/hpp_timeopt_python | 3100d044be65bae521913bea0b9ed902cc5d346c | [
"BSD-2-Clause"
] | 1 | 2019-10-23T20:24:14.000Z | 2019-10-31T05:23:05.000Z | src/timeopt/problem.cpp | ggory15/hpp_timeopt_python | 3100d044be65bae521913bea0b9ed902cc5d346c | [
"BSD-2-Clause"
] | 2 | 2019-01-17T13:16:08.000Z | 2019-03-25T13:24:47.000Z | // Copyright (c) 2018-2019, CNRS
// Authors: Sanghyun Kim <ggory15@snu.ac.kr>
#include "timeopt/problem.hpp"
#include <momentumopt/cntopt/ContactPlanFromFile.hpp>
#include <fstream>
#include <iomanip>
namespace timeopt
{
ProblemInfo::ProblemInfo()
: phases_() // pre-allocation
, init_com_(Vector3d::Ones()*1... | 32.194805 | 111 | 0.696652 | ggory15 |
bb57a1994515696061ad300d1f0be7e6f7559710 | 3,121 | cpp | C++ | src/particle_dynamics/PDApp.cpp | flowzario/mesoBasic | 0a86c98e784a7446a7b6f03b48eef4c9dbfe5940 | [
"MIT"
] | null | null | null | src/particle_dynamics/PDApp.cpp | flowzario/mesoBasic | 0a86c98e784a7446a7b6f03b48eef4c9dbfe5940 | [
"MIT"
] | null | null | null | src/particle_dynamics/PDApp.cpp | flowzario/mesoBasic | 0a86c98e784a7446a7b6f03b48eef4c9dbfe5940 | [
"MIT"
] | null | null | null |
# include "PDApp.hpp"
using namespace std;
// -------------------------------------------------------------------------
// Constructor:
// -------------------------------------------------------------------------
PDApp::PDApp(const GetPot& input_params)
{
// ---------------------------------------
// Assi... | 26.008333 | 81 | 0.360141 | flowzario |
bb5fe46dc2f7860e7d9508c915a012f26cb07f11 | 12,666 | hpp | C++ | include/RootMotion/FinalIK/IKSolverLookAt.hpp | darknight1050/BeatSaber-Quest-Codegen | a6eeecc3f0e8f6079630f9a9a72b3121ac7b2032 | [
"Unlicense"
] | null | null | null | include/RootMotion/FinalIK/IKSolverLookAt.hpp | darknight1050/BeatSaber-Quest-Codegen | a6eeecc3f0e8f6079630f9a9a72b3121ac7b2032 | [
"Unlicense"
] | null | null | null | include/RootMotion/FinalIK/IKSolverLookAt.hpp | darknight1050/BeatSaber-Quest-Codegen | a6eeecc3f0e8f6079630f9a9a72b3121ac7b2032 | [
"Unlicense"
] | null | null | null | // Autogenerated from CppHeaderCreator
// Created by Sc2ad
// =========================================================================
#pragma once
// Begin includes
#include "extern/beatsaber-hook/shared/utils/typedefs.h"
// Including type: RootMotion.FinalIK.IKSolver
#include "RootMotion/FinalIK/IKSolver.hpp"... | 50.86747 | 1,130 | 0.706063 | darknight1050 |
bb60f6a1b1d41a32bd5ac791dfccd0d914f586f4 | 3,143 | hpp | C++ | lib/charLib.hpp | captainpeng/6-6 | 67ba91f0a7d639b3778fc78bb5a253812d2c3029 | [
"MIT",
"Unlicense"
] | null | null | null | lib/charLib.hpp | captainpeng/6-6 | 67ba91f0a7d639b3778fc78bb5a253812d2c3029 | [
"MIT",
"Unlicense"
] | null | null | null | lib/charLib.hpp | captainpeng/6-6 | 67ba91f0a7d639b3778fc78bb5a253812d2c3029 | [
"MIT",
"Unlicense"
] | null | null | null | /*!
* \autor captainpeng
* \date 2018-12-29
* \update 2018-12-29
* \version 1.0
* \copyright
*/
#ifndef charLib_hpp
#define charLib_hpp
#include<cctype>
#include<cwctype>
namespace my{
template<typename CharT>
class charLib;
template<>
class charLib<char>{
public:
using charType=cha... | 21.09396 | 53 | 0.689787 | captainpeng |
bb6303130e8fe80b35a4a2da7dfc83c4d54ac643 | 3,363 | cpp | C++ | src/Window.cpp | jparimaa/varjo-dx11-minimal | 489e9db74edfbaa1e745e6eaa5eb12dc202bfc3d | [
"MIT"
] | null | null | null | src/Window.cpp | jparimaa/varjo-dx11-minimal | 489e9db74edfbaa1e745e6eaa5eb12dc202bfc3d | [
"MIT"
] | null | null | null | src/Window.cpp | jparimaa/varjo-dx11-minimal | 489e9db74edfbaa1e745e6eaa5eb12dc202bfc3d | [
"MIT"
] | null | null | null | #include "Window.h"
#include "Log.h"
#include "Utility.h"
#include <wrl/client.h>
namespace
{
LRESULT CALLBACK WndProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam)
{
PAINTSTRUCT ps;
HDC hdc;
switch (message)
{
case WM_PAINT:
hdc = BeginPaint(hWnd, &ps);
EndPaint(hWnd, &p... | 25.671756 | 189 | 0.679453 | jparimaa |
bb66baedfe2a51e6d6513d303d87005b1a4a3d01 | 245 | hpp | C++ | tests/EnjoLibTest/src/ThreadedLoopTplTest.hpp | hlp2/EnjoLib | 6bb69d0b00e367a800b0ef2804808fd1303648f4 | [
"BSD-3-Clause"
] | 3 | 2021-06-14T15:36:46.000Z | 2022-02-28T15:16:08.000Z | tests/EnjoLibTest/src/ThreadedLoopTplTest.hpp | hlp2/EnjoLib | 6bb69d0b00e367a800b0ef2804808fd1303648f4 | [
"BSD-3-Clause"
] | 1 | 2021-07-17T07:52:15.000Z | 2021-07-17T07:52:15.000Z | tests/EnjoLibTest/src/ThreadedLoopTplTest.hpp | hlp2/EnjoLib | 6bb69d0b00e367a800b0ef2804808fd1303648f4 | [
"BSD-3-Clause"
] | 3 | 2021-07-12T14:52:38.000Z | 2021-11-28T17:10:33.000Z | #ifndef THREADEDLOOPTPLTEST_HPP
#define THREADEDLOOPTPLTEST_HPP
class ThreadedLoopTplTest
{
public:
ThreadedLoopTplTest();
virtual ~ThreadedLoopTplTest();
protected:
private:
};
#endif // THREADEDLOOPTPLTEST_HPP
| 14.411765 | 39 | 0.722449 | hlp2 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.