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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
55cc4d5075462ee981cb55284c8a658ccac0fc82 | 7,859 | cpp | C++ | src/plugin/xconnection/message.cpp | willenchou/xservers | 0f8b262571ed7c0465d90ef807a9a540e97de379 | [
"Apache-2.0"
] | 11 | 2016-12-11T02:17:58.000Z | 2021-11-24T03:27:01.000Z | src/plugin/xlink/message.cpp | willenchou/xservers | 0f8b262571ed7c0465d90ef807a9a540e97de379 | [
"Apache-2.0"
] | null | null | null | src/plugin/xlink/message.cpp | willenchou/xservers | 0f8b262571ed7c0465d90ef807a9a540e97de379 | [
"Apache-2.0"
] | 2 | 2016-12-11T10:48:00.000Z | 2021-07-10T07:10:55.000Z | #include "message.h"
namespace x {
Message::Message()
:buff_(NULL)
,buffCap_(0)
,buffLen_(0){
memset(tags_, 0, sizeof(tags_));
buff_ = new char[INIT_MSG_BUFF_LEN];
buffCap_ = INIT_MSG_BUFF_LEN;
buffLen_ = 0;
}
Message::~Message(){
if(buff_)
delete buff_;
}
bool Message::SetBuff(void* data, uint32_t len){
... | 20.519582 | 102 | 0.671968 | willenchou |
55d235a1e54de2f1b2f38e243902912a3503f33e | 2,576 | cpp | C++ | RhoShamBo/DeBruijn.cpp | dlidstrom/RhoShamBo | a85da97883e7772aa0dde711910094d0b1dfb631 | [
"MIT"
] | null | null | null | RhoShamBo/DeBruijn.cpp | dlidstrom/RhoShamBo | a85da97883e7772aa0dde711910094d0b1dfb631 | [
"MIT"
] | null | null | null | RhoShamBo/DeBruijn.cpp | dlidstrom/RhoShamBo | a85da97883e7772aa0dde711910094d0b1dfb631 | [
"MIT"
] | null | null | null |
#include "stdafx.h"
#include "DeBruijn.h"
IPlayer::HAND DeBruijn::GetNextHand(const HandsCollection& yourHistory,
const HandsCollection& oppHistory)
{
/* several De Bruijn strings of length 81 concatentated */
static int db_table [1000] = /* De Bruijn sequence: */
... | 57.244444 | 83 | 0.511646 | dlidstrom |
55db32c24c3a8083b75e8277669429f61480ad6f | 94,567 | cpp | C++ | src/math_implementation_4.cpp | tmilev/calculator | e39280f23975241985393651fe7a52db5c7fd1d5 | [
"Apache-2.0"
] | 7 | 2017-07-12T11:15:54.000Z | 2021-10-29T18:33:33.000Z | src/math_implementation_4.cpp | tmilev/calculator | e39280f23975241985393651fe7a52db5c7fd1d5 | [
"Apache-2.0"
] | 18 | 2017-05-16T03:48:45.000Z | 2022-03-16T19:51:26.000Z | src/math_implementation_4.cpp | tmilev/calculator | e39280f23975241985393651fe7a52db5c7fd1d5 | [
"Apache-2.0"
] | 1 | 2018-08-02T09:05:08.000Z | 2018-08-02T09:05:08.000Z | // The current file is licensed under the license terms found in the main header file "calculator.h".
// For additional information refer to the file "calculator.h".
#include "math_general.h"
#include "math_general_implementation.h"
#include "math_extra_finite_groups_implementation.h"
#include "math_extra_symmetric_gro... | 42.906987 | 190 | 0.705711 | tmilev |
55dea5ee7d5b89205a5b25527bb9605705bd7f15 | 99 | hpp | C++ | include/Block.hpp | jwhitlow45/memoryHierarchySimulationMIPS | d2504fb33fc517ec85d4b8284ad4ad65fd42ce70 | [
"Apache-2.0"
] | null | null | null | include/Block.hpp | jwhitlow45/memoryHierarchySimulationMIPS | d2504fb33fc517ec85d4b8284ad4ad65fd42ce70 | [
"Apache-2.0"
] | null | null | null | include/Block.hpp | jwhitlow45/memoryHierarchySimulationMIPS | d2504fb33fc517ec85d4b8284ad4ad65fd42ce70 | [
"Apache-2.0"
] | null | null | null | #pragma once
struct Block
{
bool valid = false;
int history;
int tag;
int data;
}; | 11 | 23 | 0.585859 | jwhitlow45 |
55e8b7f448a55316a773ed9c2191e8cfe2b9eb42 | 688 | cpp | C++ | Dynamic Programming/43 Binomial Coefficient.cpp | verma-tanishq/placement-essentials | 515135f417f002db5e59317cce7660f29b8e902a | [
"MIT"
] | 1 | 2021-04-04T16:23:15.000Z | 2021-04-04T16:23:15.000Z | Dynamic Programming/43 Binomial Coefficient.cpp | verma-tanishq/placement-essentials | 515135f417f002db5e59317cce7660f29b8e902a | [
"MIT"
] | null | null | null | Dynamic Programming/43 Binomial Coefficient.cpp | verma-tanishq/placement-essentials | 515135f417f002db5e59317cce7660f29b8e902a | [
"MIT"
] | null | null | null | class Solution{
public:
int nCr(int n, int r){
// code here
int mod = 1000000007;
int C[r+1];
memset(C, 0, sizeof(C));
C[0] = 1; // Top row of Pascal Triangle
if(n<r) return 0;
if((n-r)<r){
r = n-r;
}
// One by constructs remaining row... | 24.571429 | 52 | 0.420058 | verma-tanishq |
55ecf2c79a960c521ae71f40774dedbcd7d64e07 | 13,471 | cpp | C++ | src/Renderer.cpp | vazgriz/OscilloscopeMusic | 3a3a1344277892806bd9e734901a36088f85e3f3 | [
"MIT"
] | 6 | 2021-07-22T14:10:53.000Z | 2022-01-25T04:34:14.000Z | src/Renderer.cpp | vazgriz/OscilloscopeMusic | 3a3a1344277892806bd9e734901a36088f85e3f3 | [
"MIT"
] | null | null | null | src/Renderer.cpp | vazgriz/OscilloscopeMusic | 3a3a1344277892806bd9e734901a36088f85e3f3 | [
"MIT"
] | 1 | 2022-01-23T18:13:54.000Z | 2022-01-23T18:13:54.000Z | #include "Renderer.h"
#include <GLFW/glfw3.h>
#include <unordered_set>
std::vector<std::string> layerNames = {
#ifndef NDEBUG
"VK_LAYER_KHRONOS_validation"
#endif
};
std::vector<std::string> deviceExtensions = {
VK_KHR_SWAPCHAIN_EXTENSION_NAME
};
bool Renderer::QueueFamilyIndices::isComplete() {
return g... | 31.771226 | 156 | 0.687254 | vazgriz |
55edeff8b0c5e5d259807cf15bce2327544e5407 | 144 | hpp | C++ | src/window/Common.hpp | Vasile2k/Luminica | 13250c6b536b0634e2f4ea95b7b75b0dee18705d | [
"Apache-2.0"
] | 5 | 2019-01-13T09:53:05.000Z | 2021-01-25T11:02:12.000Z | src/window/Common.hpp | Vasile2k/Luminica | 13250c6b536b0634e2f4ea95b7b75b0dee18705d | [
"Apache-2.0"
] | null | null | null | src/window/Common.hpp | Vasile2k/Luminica | 13250c6b536b0634e2f4ea95b7b75b0dee18705d | [
"Apache-2.0"
] | null | null | null | #pragma once
// Forward declaration of classes used here
class EventListener;
class EventHandler;
class GlobalGLFWEventHandler;
class Window;
| 16 | 43 | 0.819444 | Vasile2k |
55eefbf3c6da7b480e087f92ff5e6ddb0d8aaa0b | 1,084 | hpp | C++ | src/cpp/llnms-gui/core/DataContainer.hpp | marvins/LLNMS | ebc15418e1a5dddafdb3e55cea4e8cb71f619b2d | [
"MIT"
] | null | null | null | src/cpp/llnms-gui/core/DataContainer.hpp | marvins/LLNMS | ebc15418e1a5dddafdb3e55cea4e8cb71f619b2d | [
"MIT"
] | null | null | null | src/cpp/llnms-gui/core/DataContainer.hpp | marvins/LLNMS | ebc15418e1a5dddafdb3e55cea4e8cb71f619b2d | [
"MIT"
] | 1 | 2020-12-16T09:28:26.000Z | 2020-12-16T09:28:26.000Z | /**
* @file DataContainer.hpp
* @author Marvin Smith
* @date 1/27/2014
*/
#ifndef __SRC_CPP_LLNMSGUI_CORE_DATACONTAINER_HPP__
#define __SRC_CPP_LLNMSGUI_CORE_DATACONTAINER_HPP__
#include "GUI_Settings.hpp"
#include <string>
/**
* @class DataContainer
*
* Contains all of the required global data which is ... | 18.689655 | 74 | 0.582103 | marvins |
55f0deced202a79c9257d14c052924cf4ccacd5f | 2,282 | cpp | C++ | raii/cpp/main.cpp | LoLei/design-patterns-examples | 213241ab94c8a5e74a3faa9c5f554d557e60b753 | [
"MIT"
] | 3 | 2020-02-11T20:37:13.000Z | 2020-07-31T14:16:51.000Z | raii/cpp/main.cpp | LoLei/design-patterns-examples | 213241ab94c8a5e74a3faa9c5f554d557e60b753 | [
"MIT"
] | null | null | null | raii/cpp/main.cpp | LoLei/design-patterns-examples | 213241ab94c8a5e74a3faa9c5f554d557e60b753 | [
"MIT"
] | null | null | null | #include <iostream>
#include <mutex>
#include <memory>
#include "noncopyable.h"
template <class T>
class AutoDeleter : NonCopyable
{
public:
AutoDeleter(T* p = 0) : to_delete_(p) {}
~AutoDeleter() throw() { delete to_delete_; }
// throw() specifies that the destructor must not throw any exception
priva... | 24.021053 | 80 | 0.677476 | LoLei |
360617bcf4c696bff717d0344f3d470e5fa3aa0a | 546 | cpp | C++ | src/c/schemas/ModioDependency.cpp | nlspartanNL/SDK | 291f1e5869210baedbb5447f8f7388f50ec93950 | [
"MIT"
] | 1 | 2018-10-05T15:59:04.000Z | 2018-10-05T15:59:04.000Z | src/c/schemas/ModioDependency.cpp | nlspartanNL/SDK | 291f1e5869210baedbb5447f8f7388f50ec93950 | [
"MIT"
] | null | null | null | src/c/schemas/ModioDependency.cpp | nlspartanNL/SDK | 291f1e5869210baedbb5447f8f7388f50ec93950 | [
"MIT"
] | 1 | 2020-11-06T01:42:10.000Z | 2020-11-06T01:42:10.000Z | #include "c/schemas/ModioDependency.h"
extern "C"
{
void modioInitDependency(ModioDependency* dependency, nlohmann::json dependency_json)
{
dependency->mod_id = 0;
if(modio::hasKey(dependency_json, "mod_id"))
dependency->mod_id = dependency_json["mod_id"];
dependency->date_added = 0;
if(modi... | 22.75 | 87 | 0.686813 | nlspartanNL |
360b160391f550836317bf554f775507fca2dab7 | 3,799 | cpp | C++ | IDE/Contents/Source/PolycodeEditorManager.cpp | MattDBell/Polycode | fc66547813a34a2388c9a45ec0b69919ce3253b2 | [
"MIT"
] | 1 | 2020-04-30T23:05:26.000Z | 2020-04-30T23:05:26.000Z | IDE/Contents/Source/PolycodeEditorManager.cpp | MattDBell/Polycode | fc66547813a34a2388c9a45ec0b69919ce3253b2 | [
"MIT"
] | null | null | null | IDE/Contents/Source/PolycodeEditorManager.cpp | MattDBell/Polycode | fc66547813a34a2388c9a45ec0b69919ce3253b2 | [
"MIT"
] | null | null | null | /*
Copyright (C) 2012 by Ivan Safrin
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, distri... | 30.637097 | 94 | 0.746775 | MattDBell |
360cc4113374ee5b8b593b764243d5c6504d9a55 | 13,121 | cpp | C++ | Renderer/source/Renderer_LightsShadows.cpp | VytasSamulionis/TomorrowGame | 91f17410c82dc69dc4f22e5d88ed3d7d7ee08422 | [
"MIT"
] | null | null | null | Renderer/source/Renderer_LightsShadows.cpp | VytasSamulionis/TomorrowGame | 91f17410c82dc69dc4f22e5d88ed3d7d7ee08422 | [
"MIT"
] | null | null | null | Renderer/source/Renderer_LightsShadows.cpp | VytasSamulionis/TomorrowGame | 91f17410c82dc69dc4f22e5d88ed3d7d7ee08422 | [
"MIT"
] | null | null | null | #include "../include/Renderer.h"
using namespace vs3d;
void Renderer::SetAmbientLight (DWORD _color) {
m_vcm->Flush();
HRESULT hr = m_Device->SetRenderState (D3DRS_AMBIENT, _color);
if (FAILED (hr)) {
THROW_DETAILED_ERROR (ERRC_API_CALL, "SetRenderState() failure.");
}
}
void Rend... | 49.700758 | 687 | 0.520616 | VytasSamulionis |
36181aa76ed339ce59f7271d8ceb48715b7d6c56 | 331 | cpp | C++ | src/io.cpp | dk949/scotch | e5a60da9920f0eeaa692bfcf56219338307e573b | [
"BSD-3-Clause"
] | null | null | null | src/io.cpp | dk949/scotch | e5a60da9920f0eeaa692bfcf56219338307e573b | [
"BSD-3-Clause"
] | null | null | null | src/io.cpp | dk949/scotch | e5a60da9920f0eeaa692bfcf56219338307e573b | [
"BSD-3-Clause"
] | null | null | null | #include "io.hpp"
#include "error.hpp"
Io::Io(std::unique_ptr<Output> &&output, std::unique_ptr<ErrorHandler> &&err)
: m_output(std::move(output))
, m_error(std::move(err)) { }
void Io::output(const std::string &str) {
m_output->output(str);
}
void Io::error(const Error &err) {
m_error->err... | 19.470588 | 77 | 0.625378 | dk949 |
36194f772f330ff4cbcf95a00b976863be824b3e | 14,988 | cpp | C++ | ModSource/breakingpoint_map_objects/tracked2/T34/config.cpp | nrailuj/breakingpointmod | e102e106b849ca78deb3cb299f3ae18c91c3bfe9 | [
"Naumen",
"Condor-1.1",
"MS-PL"
] | 70 | 2017-06-23T21:25:05.000Z | 2022-03-27T02:39:33.000Z | ModSource/breakingpoint_map_objects/tracked2/T34/config.cpp | nrailuj/breakingpointmod | e102e106b849ca78deb3cb299f3ae18c91c3bfe9 | [
"Naumen",
"Condor-1.1",
"MS-PL"
] | 84 | 2017-08-26T22:06:28.000Z | 2021-09-09T15:32:56.000Z | ModSource/breakingpoint_map_objects/tracked2/T34/config.cpp | nrailuj/breakingpointmod | e102e106b849ca78deb3cb299f3ae18c91c3bfe9 | [
"Naumen",
"Condor-1.1",
"MS-PL"
] | 71 | 2017-06-24T01:10:42.000Z | 2022-03-18T23:02:00.000Z | ////////////////////////////////////////////////////////////////////
//DeRap: Produced from mikero's Dos Tools Dll version 4.32
//Mon Mar 17 12:22:47 2014 : Source 'file' date Mon Mar 17 12:22:47 2014
//http://dev-heaven.net/projects/list_files/mikero-pbodll
/////////////////////////////////////////////////////////////... | 33.986395 | 243 | 0.626968 | nrailuj |
3619d2341beb1d1df457e9811ca14d62fc604015 | 1,499 | cpp | C++ | c_code_for_comparison/lloyds.cpp | FelixWinterstein/Vivado-KMeans | b1121f826bdac8db9502e4bf0c8f3b08425bc061 | [
"BSD-3-Clause"
] | 44 | 2015-09-14T03:50:14.000Z | 2020-11-09T09:12:02.000Z | c_code_for_comparison/lloyds.cpp | SurfingWave/Vivado-KMeans | b1121f826bdac8db9502e4bf0c8f3b08425bc061 | [
"BSD-3-Clause"
] | 2 | 2018-02-21T04:34:37.000Z | 2018-05-16T12:13:39.000Z | c_code_for_comparison/lloyds.cpp | SurfingWave/Vivado-KMeans | b1121f826bdac8db9502e4bf0c8f3b08425bc061 | [
"BSD-3-Clause"
] | 24 | 2015-03-23T19:39:22.000Z | 2021-04-27T03:35:50.000Z | /**********************************************************************
* Felix Winterstein, Imperial College London
*
* File: lloyds.cpp
*
* Revision 1.01
* Additional Comments: distributed under a BSD license, see LICENSE.txt
*
**********************************************************************/
#include <stdio.h... | 26.767857 | 120 | 0.5497 | FelixWinterstein |
3619fdb0b2c95ddfdb21703f70777896b0111e1e | 1,123 | cpp | C++ | src/main.cpp | howprice/sdl2-tetris | 8272994293c84b42450ef68bc92c73587f2429cd | [
"BSD-3-Clause"
] | 11 | 2015-09-30T12:14:59.000Z | 2022-03-22T04:04:51.000Z | src/main.cpp | howprice/sdl2-tetris | 8272994293c84b42450ef68bc92c73587f2429cd | [
"BSD-3-Clause"
] | 2 | 2015-09-30T16:00:18.000Z | 2016-12-29T10:51:14.000Z | src/main.cpp | howprice/sdl2-tetris | 8272994293c84b42450ef68bc92c73587f2429cd | [
"BSD-3-Clause"
] | 2 | 2021-12-23T04:20:12.000Z | 2022-03-22T04:09:57.000Z | //--------------------------------------------------------------------------------------------------
/**
\file main.cpp
**/
//--------------------------------------------------------------------------------------------------
#include "App.h"
#include "SDL.h"
#include <stdio.h>
#include <stdlib.h>
#include <st... | 21.596154 | 100 | 0.488869 | howprice |
361e5d830e7e40883224065291090cebbc8663d5 | 2,003 | cpp | C++ | OpenRPG/Managers/StateManager.cpp | OpenRPGs/OpenRPG | 0baed49c1d7e6f871457c441aa0209ec4280265a | [
"MIT"
] | 28 | 2019-08-09T04:07:04.000Z | 2022-01-16T05:56:22.000Z | OpenRPG/Managers/StateManager.cpp | OpenRPGs/OpenRPG | 0baed49c1d7e6f871457c441aa0209ec4280265a | [
"MIT"
] | 29 | 2019-08-09T04:02:59.000Z | 2019-09-16T05:01:33.000Z | OpenRPG/Managers/StateManager.cpp | OpenRPGs/OpenRPG | 0baed49c1d7e6f871457c441aa0209ec4280265a | [
"MIT"
] | 18 | 2019-08-09T02:42:09.000Z | 2022-01-16T06:03:32.000Z | #include "stdafx.h"
#include "StateManager.h"
using namespace std;
typedef pair<State*, bool> StatePair;
#pragma region getInstance, Constructor, Finalizer
StateManager* StateManager::Instance = NULL;
StateManager* StateManager::getInstance() {
if (StateManager::Instance == NULL) {
StateManager::Instance = new ... | 23.290698 | 72 | 0.68647 | OpenRPGs |
3623e22a041f228f8115de853958c81c68c6c621 | 24,157 | cpp | C++ | test/src/ConnectionTests.cpp | rhymu8354/TwitchNetworkTransport | 16f7583514c2dd628315ac86dc732d847f0bd0ef | [
"MIT"
] | null | null | null | test/src/ConnectionTests.cpp | rhymu8354/TwitchNetworkTransport | 16f7583514c2dd628315ac86dc732d847f0bd0ef | [
"MIT"
] | null | null | null | test/src/ConnectionTests.cpp | rhymu8354/TwitchNetworkTransport | 16f7583514c2dd628315ac86dc732d847f0bd0ef | [
"MIT"
] | null | null | null | /**
* @file ConnectionTests.cpp
*
* This module contains the unit tests of the
* TwitchNetworkTransport::Connection class.
*
* © 2018 by Richard Walters
*/
#include <condition_variable>
#include <gtest/gtest.h>
#include <TwitchNetworkTransport/Connection.hpp>
#include <inttypes.h>
#include <mutex>
#include <std... | 31.911493 | 127 | 0.571097 | rhymu8354 |
156858c96393486e6af8d0f96a9e6d78ffc9e0ab | 1,723 | cpp | C++ | Source/WinWaker/SplashDlg.cpp | bingart/WinWaker | dc3f6c067a5f215c17aa2e0c3386f92f158ec941 | [
"Apache-2.0"
] | null | null | null | Source/WinWaker/SplashDlg.cpp | bingart/WinWaker | dc3f6c067a5f215c17aa2e0c3386f92f158ec941 | [
"Apache-2.0"
] | null | null | null | Source/WinWaker/SplashDlg.cpp | bingart/WinWaker | dc3f6c067a5f215c17aa2e0c3386f92f158ec941 | [
"Apache-2.0"
] | null | null | null | // SplashDlg.cpp : implementation file
//
#include "stdafx.h"
#include "WinWaker.h"
#include "SplashDlg.h"
#include "afxdialogex.h"
// CSplashDlg dialog
IMPLEMENT_DYNAMIC(CSplashDlg, CDialogEx)
CSplashDlg::CSplashDlg(CWnd* pParent /*=NULL*/)
: CDialogEx(CSplashDlg::IDD, pParent)
{
m_iCount = 0;
}
CSplashDlg::~C... | 20.759036 | 91 | 0.726059 | bingart |
1568a9fc85638dca906cddc67944f6137187db5d | 1,600 | hpp | C++ | src/test/test.hpp | waxers/wax-std | cbaf6d26b22044b4df3f753b8226ffdfb3eb16ea | [
"MIT"
] | 4 | 2021-10-04T18:46:21.000Z | 2021-10-05T11:53:23.000Z | src/test/test.hpp | waxers/wax-std | cbaf6d26b22044b4df3f753b8226ffdfb3eb16ea | [
"MIT"
] | null | null | null | src/test/test.hpp | waxers/wax-std | cbaf6d26b22044b4df3f753b8226ffdfb3eb16ea | [
"MIT"
] | 1 | 2021-10-04T20:55:20.000Z | 2021-10-04T20:55:20.000Z | #pragma once
#include <iostream>
#if defined(USE_COLORED_ASSERTIONS)
#define WHITE "\u001b[37m\033[1m"
#define RED "\u001b[31m\033[1m"
#define GREEN "\u001b[32m\033[1m"
#define RESET "\u001b[0m\033[0m"
#else
#define RED ""
#define WHITE ""
#define GREEN ""
#define RESET ""
#endif
namespace wax {
namespace test {
voi... | 26.666667 | 79 | 0.59375 | waxers |
156961dafd10b0959039da3e8280392d15a29eda | 651 | hpp | C++ | src/Core/PhysicsManager.hpp | ariabonczek/NewLumina | f35cf7f449cfbe191e03e1d5f1c9973cc0b44a8e | [
"MIT"
] | 2 | 2017-01-08T21:30:45.000Z | 2017-01-16T10:10:12.000Z | src/Core/PhysicsManager.hpp | ariabonczek/NewLumina | f35cf7f449cfbe191e03e1d5f1c9973cc0b44a8e | [
"MIT"
] | null | null | null | src/Core/PhysicsManager.hpp | ariabonczek/NewLumina | f35cf7f449cfbe191e03e1d5f1c9973cc0b44a8e | [
"MIT"
] | null | null | null | //--------------------------------------
// LuminaEngine belongs to Aria Bonczek
//--------------------------------------
#ifndef PHYSICS_MANAGER_HPP
#define PHYSICS_MANAGER_HPP
#include <Core\Common.hpp>
NS_BEGIN
/// <summary>
/// Manages physics object encapsulation and simulation
/// </summary>
class PhysicsManag... | 16.275 | 55 | 0.605223 | ariabonczek |
158084c3990f67ceb24e0256a51688cdfb2e2749 | 1,783 | cpp | C++ | Interviewbit/Arrays/partitioning.cpp | nullpointxr/HackerRankSolutions | 052c9ab66bfd66268b81d8e7888c3d7504ab988f | [
"Apache-2.0"
] | 1 | 2020-10-25T16:12:09.000Z | 2020-10-25T16:12:09.000Z | Interviewbit/Arrays/partitioning.cpp | abhishek-sankar/Competitive-Coding-Solutions | 052c9ab66bfd66268b81d8e7888c3d7504ab988f | [
"Apache-2.0"
] | 3 | 2020-11-12T05:44:24.000Z | 2021-04-05T08:09:01.000Z | Interviewbit/Arrays/partitioning.cpp | nullpointxr/HackerRankSolutions | 052c9ab66bfd66268b81d8e7888c3d7504ab988f | [
"Apache-2.0"
] | null | null | null | /*
Partitions: https://www.interviewbit.com/problems/partitions/
Asked in: EzCred
You are given a 1D integer array B containing A integers.
Count the number of ways to split all the elements of the array into 3 contiguous parts so that the sum of elements in each part is the same.
Such that : sum(B[1],..B[i]) = sum(B[... | 20.976471 | 141 | 0.516545 | nullpointxr |
1581547502475078d37e5b94aa101ea0fc273991 | 2,639 | cpp | C++ | Develop-Editor/Development/Plugin/WE/YDFont/DllMain.cpp | luciouskami/XYWE | 89da4f93a2dcc02e6ea2bc739ac99a511363665c | [
"Apache-2.0"
] | 5 | 2019-01-22T02:35:35.000Z | 2022-02-28T02:50:03.000Z | Development/Editor/Plugin/WE/YDFont/DllMain.cpp | yatyricky/XYWE | 6577f4038346c258b346865808b0e3b2730611b6 | [
"Apache-2.0"
] | 8 | 2016-10-19T00:04:05.000Z | 2016-11-14T10:58:14.000Z | Development/Editor/Plugin/WE/YDFont/DllMain.cpp | yatyricky/XYWE | 6577f4038346c258b346865808b0e3b2730611b6 | [
"Apache-2.0"
] | 2 | 2016-11-14T11:39:37.000Z | 2019-09-06T00:21:15.000Z | #include <Windows.h>
#include <string>
#include <memory>
#include <base/hook/iat.h>
#include <base/hook/fp_call.h>
#include <base/util/unicode.h>
#include <base/win/font/utility.h>
class FontManager
{
public:
FontManager(const char* name, size_t size);
~FontManager();
void postWindow(HWND hWnd);
pr... | 24.663551 | 208 | 0.605911 | luciouskami |
1581e38acaac2451c09edbaaa034d1c7ecf6d4b5 | 753 | cpp | C++ | Tasks/Optimisation-Lab1/main.cpp | JMChurchill/Embedded-Systems | f350b9d0e667adbacf692a92ac427d75e9710630 | [
"Apache-2.0"
] | null | null | null | Tasks/Optimisation-Lab1/main.cpp | JMChurchill/Embedded-Systems | f350b9d0e667adbacf692a92ac427d75e9710630 | [
"Apache-2.0"
] | null | null | null | Tasks/Optimisation-Lab1/main.cpp | JMChurchill/Embedded-Systems | f350b9d0e667adbacf692a92ac427d75e9710630 | [
"Apache-2.0"
] | null | null | null | #include "mbed.h"
Timer t;
#define N 100
double A[N][N];
double table[7]={1.414213562373, 1.732050807569, 2.0, 2.236067977500,2.449489742783, 2.645751311065, 2.828427124746};
using namespace std::chrono;
// main() runs in its own thread in the OS
int main()
{
int i,j,k;
printf("Hello \n");
t.reset(); ... | 20.916667 | 117 | 0.537849 | JMChurchill |
158fc9278cfb680610386bce0b5de1399f822f09 | 377 | cpp | C++ | src/Image.cpp | towa7bc/SpotifyWebApiAdapter | 3f4aa88eea6fc49fbc1e902df06878f5352bbf66 | [
"Unlicense"
] | null | null | null | src/Image.cpp | towa7bc/SpotifyWebApiAdapter | 3f4aa88eea6fc49fbc1e902df06878f5352bbf66 | [
"Unlicense"
] | null | null | null | src/Image.cpp | towa7bc/SpotifyWebApiAdapter | 3f4aa88eea6fc49fbc1e902df06878f5352bbf66 | [
"Unlicense"
] | null | null | null | //
// Created by Michael Wittmann on 07/05/2020.
//
#include "Image.hpp"
#include <type_traits> // for move
#include "model/modeldata.hpp" // for image
namespace spotify {
inline namespace v1 {
Image::Image(model::image t_image)
: height_(t_image.height),
url_(std::move(t_image.url)),
width_(t_im... | 18.85 | 45 | 0.668435 | towa7bc |
158fe9c27d137b316396b96432e7b5069a9871a6 | 27,209 | hpp | C++ | src/include/libgl/hud/GlHudConfig.hpp | pedrospeixoto/sweet | 224248181e92615467c94b4e163596017811b5eb | [
"MIT"
] | null | null | null | src/include/libgl/hud/GlHudConfig.hpp | pedrospeixoto/sweet | 224248181e92615467c94b4e163596017811b5eb | [
"MIT"
] | null | null | null | src/include/libgl/hud/GlHudConfig.hpp | pedrospeixoto/sweet | 224248181e92615467c94b4e163596017811b5eb | [
"MIT"
] | 1 | 2019-03-27T01:17:59.000Z | 2019-03-27T01:17:59.000Z | /*
* Copyright 2010 Martin Schreiber
*
* 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 agree... | 22.486777 | 108 | 0.659047 | pedrospeixoto |
1593f1f8f22045bf3e57a19eeea1f4eb6c7ae8cd | 680 | hpp | C++ | iRODS/lib/api/include/ies_client_hints.hpp | nesi/irods | 49eeaf76305fc483f21b1bbfbdd77d540b59cfd2 | [
"BSD-3-Clause"
] | null | null | null | iRODS/lib/api/include/ies_client_hints.hpp | nesi/irods | 49eeaf76305fc483f21b1bbfbdd77d540b59cfd2 | [
"BSD-3-Clause"
] | null | null | null | iRODS/lib/api/include/ies_client_hints.hpp | nesi/irods | 49eeaf76305fc483f21b1bbfbdd77d540b59cfd2 | [
"BSD-3-Clause"
] | null | null | null | #ifndef IES_CLIENT_HINTS_HPP
#define IES_CLIENT_HINTS_HPP
// =-=-=-=-=-=-=-
// irods includes
#include "rods.hpp"
#include "rcMisc.hpp"
#include "procApiRequest.hpp"
#include "apiNumber.hpp"
#define IES_CLIENT_HINTS_AN 10216
#ifdef RODS_SERVER
#define RS_IES_CLIENT_HINTS rsClientHints
int rsIESClientHints(
rsCom... | 16.585366 | 41 | 0.7 | nesi |
159a1cd31499f204a5a33837c60a87fa533e4a6b | 376 | cpp | C++ | src/Lucia/Maigui/Types/Widget.cpp | Polynominal/Lucy3D | a55fc331bc509a69ad7fb70a1eda70c409d22271 | [
"MIT"
] | 1 | 2017-02-22T23:47:22.000Z | 2017-02-22T23:47:22.000Z | src/Lucia/Maigui/Types/Widget.cpp | Polynominal/Lucy3D | a55fc331bc509a69ad7fb70a1eda70c409d22271 | [
"MIT"
] | null | null | null | src/Lucia/Maigui/Types/Widget.cpp | Polynominal/Lucy3D | a55fc331bc509a69ad7fb70a1eda70c409d22271 | [
"MIT"
] | null | null | null | #include "Lucia/Maigui/Types/Widget.h"
namespace Lucia {
namespace Maigui {
Widget::Widget(Vertex position,Vertex dimensions,shared_ptr<Skin> sk)
{
Position = position;
Dimensions = dimensions;
skin = sk;
Name = "Widget";
//ctor
};
Widget::~Widget()
{
... | 18.8 | 73 | 0.558511 | Polynominal |
159be183edc486470e3bbcc8b8a0fa8edc571f28 | 932 | cpp | C++ | src/card.cpp | masakeida/PlayingCards | d6c2f890b0e0ee445b799b6ac1d54573e97e83bf | [
"BSD-2-Clause"
] | null | null | null | src/card.cpp | masakeida/PlayingCards | d6c2f890b0e0ee445b799b6ac1d54573e97e83bf | [
"BSD-2-Clause"
] | null | null | null | src/card.cpp | masakeida/PlayingCards | d6c2f890b0e0ee445b799b6ac1d54573e97e83bf | [
"BSD-2-Clause"
] | null | null | null | #include <string>
#include "card.hpp"
Card::Card()
{
this->value = FaceValue::SEVEN;
}
Card::Card(FaceValue value, FaceSuit faceSuit)
{
this->value = value;
this->setFaceSuit(faceSuit);
}
void
Card::setFaceValue(FaceValue value)
{
this->value = value;
}
void
Card::setFaceSuit(FaceSuit faceSuit)
{
this->suit.se... | 14.793651 | 70 | 0.724249 | masakeida |
15a8baef534c5b3021eee20b9ef9510708d77a53 | 296 | cpp | C++ | src/array/delete_data.cpp | violador/catalyst | 40d5c1dd04269a0764a9804711354a474bc43c15 | [
"Unlicense"
] | null | null | null | src/array/delete_data.cpp | violador/catalyst | 40d5c1dd04269a0764a9804711354a474bc43c15 | [
"Unlicense"
] | null | null | null | src/array/delete_data.cpp | violador/catalyst | 40d5c1dd04269a0764a9804711354a474bc43c15 | [
"Unlicense"
] | null | null | null | //
//
//
/// @brief A private member function to deallocate the current memory
/// and to clean the data members. The operation is carried out by the
/// master thread only.
//
/// @return None.
//
inline void delete_data()
{
#pragma omp master
{
delete[] data;
reset_data_members();
}
};
| 16.444444 | 70 | 0.668919 | violador |
15a9d476ca561f99bd32e5d92854a1c2391ddf11 | 20,636 | cpp | C++ | src/plugProjectKandoU/gamePlayCommonData.cpp | projectPiki/pikmin2 | a431d992acde856d092889a515ecca0e07a3ea7c | [
"Unlicense"
] | 33 | 2021-12-08T11:10:59.000Z | 2022-03-26T19:59:37.000Z | src/plugProjectKandoU/gamePlayCommonData.cpp | projectPiki/pikmin2 | a431d992acde856d092889a515ecca0e07a3ea7c | [
"Unlicense"
] | 6 | 2021-12-22T17:54:31.000Z | 2022-01-07T21:43:18.000Z | src/plugProjectKandoU/gamePlayCommonData.cpp | projectPiki/pikmin2 | a431d992acde856d092889a515ecca0e07a3ea7c | [
"Unlicense"
] | 2 | 2022-01-04T06:00:49.000Z | 2022-01-26T07:27:28.000Z | #include "Game/BirthMgr.h"
#include "Game/Data.h"
#include "Game/DeathMgr.h"
#include "Game/GameConfig.h"
#include "Game/gamePlayData.h"
#include "JSystem/JUT/JUTException.h"
#include "System.h"
#include "types.h"
/*
Generated from dpostproc
.section .rodata # 0x804732E0 - 0x8049E220
.global lbl_80483A88... | 20.907801 | 132 | 0.620324 | projectPiki |
15aa7ac487e9cda6f829378ef7b72c56d91e761d | 3,109 | tpp | C++ | LinkedListCpp/LinkedListCpp/LinkedList.tpp | epoll31/DataStructuresCpp | bfd93bad226bb5175d6b74f8dd9beb60150bb055 | [
"MIT"
] | null | null | null | LinkedListCpp/LinkedListCpp/LinkedList.tpp | epoll31/DataStructuresCpp | bfd93bad226bb5175d6b74f8dd9beb60150bb055 | [
"MIT"
] | null | null | null | LinkedListCpp/LinkedListCpp/LinkedList.tpp | epoll31/DataStructuresCpp | bfd93bad226bb5175d6b74f8dd9beb60150bb055 | [
"MIT"
] | null | null | null | #pragma once
template<typename T>
LinkedList<T>::LinkedList()
{
Count = 0;
Start = nullptr;
End = nullptr;
}
template<typename T>
LinkedList<T>::~LinkedList()
{
}
template<typename T>
void LinkedList<T>::AddFirst(T value)
{
if (Count == 0)
{
Start = std::make_unique<Node<T>>(value);
Start.get()->Next = n... | 17.466292 | 69 | 0.635252 | epoll31 |
15afa11f48fb30c9c11224d2e3655f0af3787229 | 939 | cpp | C++ | naklibsrc/src/core/BSVAddress/BSVAddress.cpp | murphyj8/testNakStructure | fbd9fc0784b6b7ee3b176cb28d2b6e26abd2b48a | [
"Unlicense"
] | 1 | 2021-07-01T02:01:27.000Z | 2021-07-01T02:01:27.000Z | naklibsrc/src/core/BSVAddress/BSVAddress.cpp | murphyj8/testNakStructure | fbd9fc0784b6b7ee3b176cb28d2b6e26abd2b48a | [
"Unlicense"
] | 1 | 2020-09-23T12:34:34.000Z | 2020-09-23T12:34:34.000Z | naklibsrc/src/core/BSVAddress/BSVAddress.cpp | murphyj8/testNakStructure | fbd9fc0784b6b7ee3b176cb28d2b6e26abd2b48a | [
"Unlicense"
] | null | null | null | #include <BSVAddress/BSVAddress.h>
#include <BSVAddress/BSVAddressImpl.h>
BSVAddress::BSVAddress( const std::string& address )
: m_pImpl( new BSVAddressImpl( address ) )
{
}
BSVAddress::BSVAddress( const std::string& publicKey, VersionPrefix version )
: m_pImpl( new BSVAddressImpl( publicKey, version) )
... | 18.78 | 79 | 0.671991 | murphyj8 |
15b1121d57ea5e4d67a2cfe4b75887b4c4ed929c | 12,988 | cpp | C++ | DeltaServer.cpp | alirazeen/kahawai | 927df9290546e23bdf6c154a0e4ed611bf5e91a6 | [
"MIT"
] | 2 | 2018-07-09T17:15:23.000Z | 2019-12-09T13:00:53.000Z | DeltaServer.cpp | alirazeen/kahawai | 927df9290546e23bdf6c154a0e4ed611bf5e91a6 | [
"MIT"
] | null | null | null | DeltaServer.cpp | alirazeen/kahawai | 927df9290546e23bdf6c154a0e4ed611bf5e91a6 | [
"MIT"
] | null | null | null | #include "kahawaiBase.h"
#ifdef KAHAWAI
#include "DeltaServer.h"
//Supported encoders
#include "X264Encoder.h"
bool DeltaServer::isClient() {
return false;
}
bool DeltaServer::isMaster() {
return theMaster;
}
bool DeltaServer::isSlave() {
return theSlave;
}
/////////////////////////////////////////////////////... | 23.151515 | 139 | 0.705805 | alirazeen |
15b9608cfc33057a48323c90a411f3778e604673 | 15,872 | cpp | C++ | motor-controller-nucleo/Interfaces/Hardware/TMC4671Interface.cpp | HEEV/motor-controller-2018-sw | 7bc22e4c7ba330d9130cda98a54a56066df2200b | [
"MIT"
] | 3 | 2018-12-29T13:33:32.000Z | 2019-09-14T15:45:26.000Z | motor-controller-nucleo/Interfaces/Hardware/TMC4671Interface.cpp | HEEV/motor-controller-2018-sw | 7bc22e4c7ba330d9130cda98a54a56066df2200b | [
"MIT"
] | null | null | null | motor-controller-nucleo/Interfaces/Hardware/TMC4671Interface.cpp | HEEV/motor-controller-2018-sw | 7bc22e4c7ba330d9130cda98a54a56066df2200b | [
"MIT"
] | 1 | 2019-06-06T03:28:05.000Z | 2019-06-06T03:28:05.000Z | #include "TMC4671Interface.h"
#include <ic/TMC4671/TMC4671.h>
#include "settings_structs.h"
// used for pin the SPI functions for pin useage
#include "main.h"
using uint8_t = std::uint8_t;
using int32_t = std::int32_t;
using uint32_t = std::uint32_t;
// Use the global variable defined in main.cpp so we can implement... | 33.205021 | 138 | 0.720073 | HEEV |
15bbdd1ab04d23447fbd2453535aec46a5121893 | 1,418 | cc | C++ | cc/commons/droid_wrapper.cc | neo5simple/commons | 3a8b3bd37376f6e1b060411ae5efaeab53d5d4f3 | [
"Apache-2.0"
] | null | null | null | cc/commons/droid_wrapper.cc | neo5simple/commons | 3a8b3bd37376f6e1b060411ae5efaeab53d5d4f3 | [
"Apache-2.0"
] | null | null | null | cc/commons/droid_wrapper.cc | neo5simple/commons | 3a8b3bd37376f6e1b060411ae5efaeab53d5d4f3 | [
"Apache-2.0"
] | null | null | null | // Generated by Neo
#ifdef _ANDROID_PLATFORM_
#include <commons/droid_wrapper.h>
#include <pthread.h>
namespace commons {
JavaVM* g_vm = nullptr;
JNIEXPORT jint JNI_OnLoad(JavaVM* vm, void* reserved) {
g_vm = vm;
return JNI_VERSION_1_6;
}
void JNI_OnUnload(JavaVM* vm, void* reserved) {}
JNIEnv* gen_attac... | 23.245902 | 76 | 0.521157 | neo5simple |
15bc93745a37c417eebc1e764a2e3591a90a19a0 | 1,149 | cpp | C++ | src/models/model_point3d/model_point3d.cpp | chingoduc/parallel-bayesian-toolbox | 20c06a823c714a51a51e5b59c3232cd1260b0fa4 | [
"BSD-4-Clause-UC"
] | 1 | 2015-12-01T13:15:14.000Z | 2015-12-01T13:15:14.000Z | src/models/model_point3d/model_point3d.cpp | chingoduc/parallel-bayesian-toolbox | 20c06a823c714a51a51e5b59c3232cd1260b0fa4 | [
"BSD-4-Clause-UC"
] | null | null | null | src/models/model_point3d/model_point3d.cpp | chingoduc/parallel-bayesian-toolbox | 20c06a823c714a51a51e5b59c3232cd1260b0fa4 | [
"BSD-4-Clause-UC"
] | null | null | null | #include "model_point3d.h"
#include "noise_gauss.h"
#include <math.h>
ModelPoint3D::ModelPoint3D(){
}
ModelPoint3D::~ModelPoint3D()
{
}
void ModelPoint3D::setDescriptionTag(){
descriptionTag = "3d point";
}
void ModelPoint3D::setPNoise(){
NoiseGaussian* x = new NoiseGaussian(0.0f, 0.01f);
pNoise.addNo... | 21.277778 | 55 | 0.684943 | chingoduc |
15c076e4923795eec142452b4f23a065d78354fc | 6,360 | cpp | C++ | src/yostat_parse.cpp | rschlaikjer/yostat | 46971991704fe4d6b88c7c1657d8ad100fbee21f | [
"MIT"
] | null | null | null | src/yostat_parse.cpp | rschlaikjer/yostat | 46971991704fe4d6b88c7c1657d8ad100fbee21f | [
"MIT"
] | null | null | null | src/yostat_parse.cpp | rschlaikjer/yostat | 46971991704fe4d6b88c7c1657d8ad100fbee21f | [
"MIT"
] | null | null | null | #include <fstream>
#include <iostream>
#include <nlohmann/json.hpp>
#include <yostat/parse.hpp>
// Determine which modules in a design are primitives
std::set<std::string> unique_primitives_in_design(nlohmann::json &j);
Design *read_json(std::string path) {
// Try and open the input file
std::ifstream file_ifst... | 34.378378 | 79 | 0.658333 | rschlaikjer |
15c59833cebdcb5f5401137348b6e32d629331fa | 106 | cpp | C++ | src/toolchain/tools/cc0/Configuration.cpp | layerzero/cc0 | fa3f8f1f7bbc38ca5b6b8864c80223191b3b1f09 | [
"BSD-2-Clause"
] | null | null | null | src/toolchain/tools/cc0/Configuration.cpp | layerzero/cc0 | fa3f8f1f7bbc38ca5b6b8864c80223191b3b1f09 | [
"BSD-2-Clause"
] | null | null | null | src/toolchain/tools/cc0/Configuration.cpp | layerzero/cc0 | fa3f8f1f7bbc38ca5b6b8864c80223191b3b1f09 | [
"BSD-2-Clause"
] | 2 | 2015-03-03T04:36:51.000Z | 2018-10-01T03:04:11.000Z | #include "Configuration.h"
Configuration::Configuration()
{
}
Configuration::~Configuration()
{
}
| 6.625 | 31 | 0.688679 | layerzero |
15c954af265693072106960b43a5560ef2559009 | 194 | cpp | C++ | GLTeardown.cpp | rebeckao/house-escape-3 | 2164fabc705fffb73036924936aacdef253178b7 | [
"Unlicense"
] | null | null | null | GLTeardown.cpp | rebeckao/house-escape-3 | 2164fabc705fffb73036924936aacdef253178b7 | [
"Unlicense"
] | null | null | null | GLTeardown.cpp | rebeckao/house-escape-3 | 2164fabc705fffb73036924936aacdef253178b7 | [
"Unlicense"
] | null | null | null | #include "GLTeardown.h"
/*
Call when program is done
*/
void tearDownEverything(SDL_Window*& window){
SDL_GL_DeleteContext(window);
SDL_DestroyWindow(window);
// Clean up SDL
SDL_Quit();
} | 16.166667 | 45 | 0.742268 | rebeckao |
15c995c92377bdcb4b1507b58f338a7aa6e6f0d9 | 19,871 | cpp | C++ | apps/kbmcepc/sgw1.cpp | vaishalijhalani/SGW | 93fef349fcb3e57dd167072d357da5b49f5150c8 | [
"BSD-3-Clause"
] | null | null | null | apps/kbmcepc/sgw1.cpp | vaishalijhalani/SGW | 93fef349fcb3e57dd167072d357da5b49f5150c8 | [
"BSD-3-Clause"
] | null | null | null | apps/kbmcepc/sgw1.cpp | vaishalijhalani/SGW | 93fef349fcb3e57dd167072d357da5b49f5150c8 | [
"BSD-3-Clause"
] | null | null | null | #include "K_sgw.h"
using namespace std;
#define MAX_THREADS 1
//std::mutex mutex1, mutex2, mutex3, mutex4, mutex5, mutex6;
queue <int> free_port;
struct cadata{
int fd,num;
};
//State
unordered_map<uint32_t, uint64_t> s11_id; /* S11 UE identification table: s11_cteid_sgw -> imsi */
unordered_map<uint32_t, uint... | 25.541131 | 292 | 0.55664 | vaishalijhalani |
15cc90e7bc9f21a70915b6f95248609bce835ca3 | 3,328 | hpp | C++ | include/foxy/client_session.hpp | LeonineKing1199/f2 | 785b17ee0d088bf1082add54c3e097393fc10035 | [
"BSL-1.0"
] | 1 | 2018-07-16T21:01:59.000Z | 2018-07-16T21:01:59.000Z | include/foxy/client_session.hpp | LeonineKing1199/f2 | 785b17ee0d088bf1082add54c3e097393fc10035 | [
"BSL-1.0"
] | null | null | null | include/foxy/client_session.hpp | LeonineKing1199/f2 | 785b17ee0d088bf1082add54c3e097393fc10035 | [
"BSL-1.0"
] | null | null | null | #ifndef FOXY_CLIENT_SESSION_HPP_
#define FOXY_CLIENT_SESSION_HPP_
#include <boost/asio/post.hpp>
#include <boost/asio/io_context.hpp>
#include <boost/asio/async_result.hpp>
#include <boost/asio/ip/tcp.hpp>
#include <boost/asio/connect.hpp>
#include <boost/asio/strand.hpp>
#include <boost/asio/associated_executor.hpp... | 29.981982 | 79 | 0.731671 | LeonineKing1199 |
15d1802bed4d7f0d3c06029e7e3f2bdaddbde5e8 | 1,392 | hpp | C++ | modules/orbital2d/kepler.hpp | ryanpeach/godot | 4cfe34e52f8492813c24525a4daa2f9ccc68ccd2 | [
"CC-BY-3.0",
"Apache-2.0",
"MIT"
] | null | null | null | modules/orbital2d/kepler.hpp | ryanpeach/godot | 4cfe34e52f8492813c24525a4daa2f9ccc68ccd2 | [
"CC-BY-3.0",
"Apache-2.0",
"MIT"
] | null | null | null | modules/orbital2d/kepler.hpp | ryanpeach/godot | 4cfe34e52f8492813c24525a4daa2f9ccc68ccd2 | [
"CC-BY-3.0",
"Apache-2.0",
"MIT"
] | null | null | null |
namespace kepler {
/**
Calculates the eccentric anomaly at time t by solving Kepler's equation.
See "A Practical Method for Solving the Kepler Equation", Marc A. Murison, 2006
@ref https://gist.githubusercontent.com/j-faria/1fd079e677325ce820971d9d5d286dad/raw/7e2e6bf112e8c34067f0423a522113ca2daf3003/... | 36.631579 | 140 | 0.724138 | ryanpeach |
15d3108b978860be1e6419e8ad493174eef844a1 | 2,271 | cpp | C++ | src/bed.cpp | maxrossi91/levioSAM | 00ee9133bdf2a7185d06b133b7f667af0c678e69 | [
"MIT"
] | null | null | null | src/bed.cpp | maxrossi91/levioSAM | 00ee9133bdf2a7185d06b133b7f667af0c678e69 | [
"MIT"
] | null | null | null | src/bed.cpp | maxrossi91/levioSAM | 00ee9133bdf2a7185d06b133b7f667af0c678e69 | [
"MIT"
] | null | null | null | /*
* bed.cpp
*
* Authors: Nae-Chyun Chen
*
* Distributed under the MIT license
* https://github.com/alshai/levioSAM
*/
#include <iostream>
#include <vector>
#include "bed.hpp"
#include "leviosam_utils.hpp"
namespace BedUtils {
Bed::Bed(const std::string &fn) {
bed_fn = fn;
is_valid = true;
std::ifs... | 22.71 | 87 | 0.580801 | maxrossi91 |
15db2413f75897b959b23a5e50f2a8ab900a8d1e | 25,394 | hpp | C++ | boost/utility/string_ref.hpp | FrostMineMC/Frost | a305c56c4bb72a8db25e3e81172d19ef8c0aad20 | [
"Apache-2.0"
] | 17 | 2020-08-11T13:53:04.000Z | 2022-01-03T11:29:51.000Z | boost/utility/string_ref.hpp | FrostMineMC/Frost | a305c56c4bb72a8db25e3e81172d19ef8c0aad20 | [
"Apache-2.0"
] | 3 | 2021-06-17T13:22:57.000Z | 2021-08-03T15:37:03.000Z | boost/utility/string_ref.hpp | FrostMineMC/Frost | a305c56c4bb72a8db25e3e81172d19ef8c0aad20 | [
"Apache-2.0"
] | 2 | 2020-09-28T17:23:00.000Z | 2021-07-30T10:07:16.000Z | /*
Copyright (c) Marshall Clow 2012-2015.
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)
For more information, see http://www.boost.org
Based on the StringRef implementation in LLVM (http://llvm.org) and... | 41.157212 | 146 | 0.522171 | FrostMineMC |
15dea6dbf4474d8f5aa8654ed304d456ce48fc41 | 4,177 | cpp | C++ | src/ui/component/ScreenPreview.cpp | AkbarTheGreat/cszb-scoreboard | 116199f8f0adb1fb0f837e31e804a5be27686dc7 | [
"Apache-2.0"
] | 2 | 2020-02-09T03:21:28.000Z | 2022-03-11T23:04:27.000Z | src/ui/component/ScreenPreview.cpp | AkbarTheGreat/cszb-scoreboard | 116199f8f0adb1fb0f837e31e804a5be27686dc7 | [
"Apache-2.0"
] | 34 | 2019-12-23T02:56:51.000Z | 2022-03-14T21:24:11.000Z | src/ui/component/ScreenPreview.cpp | AkbarTheGreat/cszb-scoreboard | 116199f8f0adb1fb0f837e31e804a5be27686dc7 | [
"Apache-2.0"
] | null | null | null | /*
ui/ScreenPreview.cpp: This class manages the thumbnail preview of a monitor
in the main window. In addition, the preview owns the ScreenPresenter which
displays to the actual monitor, dispatching the updated view when necessary.
Copyright 2019-2021 Tracy Beck
Licensed under the Apache License, Version 2.0 (the "L... | 35.700855 | 80 | 0.691405 | AkbarTheGreat |
15e0f42745a0858f19b074fac64600a870f08ef5 | 1,276 | hh | C++ | src/ODBCStatement.hh | theconst/aodbc | d725f4b0231f63b394e51299f185b165a5ce8c95 | [
"MIT"
] | 1 | 2019-05-14T10:52:33.000Z | 2019-05-14T10:52:33.000Z | src/ODBCStatement.hh | theconst/aodbc | d725f4b0231f63b394e51299f185b165a5ce8c95 | [
"MIT"
] | 6 | 2018-11-23T13:05:22.000Z | 2019-02-05T06:56:47.000Z | src/ODBCStatement.hh | theconst/aodbc | d725f4b0231f63b394e51299f185b165a5ce8c95 | [
"MIT"
] | null | null | null | #ifndef ODBCSTATEMENT_HH
#define ODBCSTATEMENT_HH
#include <memory>
#include <cstring>
#include <nan.h>
#include "ODBCConnection.hh"
#include "ConnectionAwareStatement.hh"
#include "SafeUnwrap.hh"
namespace NC {
using NC::ConnectionAwareStatement;
using NC::SafeUnwrap;
class ODBCStatement final : public Nan::Ob... | 22.385965 | 75 | 0.731975 | theconst |
15e435b7999545f7bb28fa3fc8c700a837daa803 | 1,845 | cpp | C++ | source/modules/graphics3d/camera.cpp | NiklasReiche/yage | f4a2dfb2bf584884e45d2751da21a13c15631e98 | [
"MIT"
] | null | null | null | source/modules/graphics3d/camera.cpp | NiklasReiche/yage | f4a2dfb2bf584884e45d2751da21a13c15631e98 | [
"MIT"
] | 2 | 2020-11-12T18:17:42.000Z | 2020-11-12T18:18:05.000Z | source/modules/graphics3d/camera.cpp | NiklasReiche/yage | f4a2dfb2bf584884e45d2751da21a13c15631e98 | [
"MIT"
] | null | null | null | #include "camera.h"
namespace gl3d
{
Camera::Camera() {
this->position = gml::Vec3d(0.0);
this->rotation = gml::Quatd();
}
Camera::Camera(gml::Vec3d position, gml::Quatd rotation) {
this->position = position;
this->rotation = rotation;
}
void Camera::move(gml::Vec3d vector)
{
this->position += vector;... | 22.777778 | 90 | 0.678591 | NiklasReiche |
15e49ea1c690e9ecceefb823aeaf52d9e131e04b | 1,107 | cpp | C++ | test/unit/test_unique.cpp | kanzl/arbor | 86b1eb065ac252bf0026de7cf7cbc6748a528254 | [
"BSD-3-Clause"
] | 53 | 2018-10-18T12:08:21.000Z | 2022-03-26T22:03:51.000Z | test/unit/test_unique.cpp | kanzl/arbor | 86b1eb065ac252bf0026de7cf7cbc6748a528254 | [
"BSD-3-Clause"
] | 864 | 2018-10-01T08:06:00.000Z | 2022-03-31T08:06:48.000Z | test/unit/test_unique.cpp | kanzl/arbor | 86b1eb065ac252bf0026de7cf7cbc6748a528254 | [
"BSD-3-Clause"
] | 37 | 2019-03-03T16:18:49.000Z | 2022-03-24T10:39:51.000Z | #include "../gtest.h"
#include <vector>
#include <list>
#include <utility>
#include "util/unique.hpp"
#include "./common.hpp"
namespace {
auto same_parity = [](auto a, auto b) { return a%2 == b%2; };
template <typename C, typename Eq = std::equal_to<>>
void run_unique_in_place_test(C data, const C& expected, Eq eq ... | 27.675 | 87 | 0.6215 | kanzl |
15e8541340a8a7d2d0e9fa835b218b37d01aef0d | 2,290 | cpp | C++ | examples/TestHttp.cpp | boboxxd/brynet | edda02b89e916140227cdd85d02c7a4e6ad32c20 | [
"MIT"
] | null | null | null | examples/TestHttp.cpp | boboxxd/brynet | edda02b89e916140227cdd85d02c7a4e6ad32c20 | [
"MIT"
] | null | null | null | examples/TestHttp.cpp | boboxxd/brynet | edda02b89e916140227cdd85d02c7a4e6ad32c20 | [
"MIT"
] | null | null | null | #include <iostream>
#include <string>
#include <mutex>
#include <condition_variable>
#include "SocketLibFunction.h"
#include "HttpService.h"
#include "HttpFormat.h"
#include "WebSocketFormat.h"
using namespace brynet;
using namespace brynet::net;
int main(int argc, char **argv)
{
auto server = HttpService::Creat... | 32.714286 | 113 | 0.619651 | boboxxd |
15eca8a7c30a23b1c7afba835f63f517f37323cf | 3,312 | cpp | C++ | src/OTL/Core/OTL_Lambert.cpp | Jmbryan/OTL | 7ffb7fa77e55a2eb7373e41fa345c90d344a9c44 | [
"Zlib",
"MIT"
] | 7 | 2016-06-05T23:25:41.000Z | 2020-01-24T07:46:31.000Z | src/OTL/Core/OTL_Lambert.cpp | Jmbryan/OTL | 7ffb7fa77e55a2eb7373e41fa345c90d344a9c44 | [
"Zlib",
"MIT"
] | null | null | null | src/OTL/Core/OTL_Lambert.cpp | Jmbryan/OTL | 7ffb7fa77e55a2eb7373e41fa345c90d344a9c44 | [
"Zlib",
"MIT"
] | null | null | null | #include <OTL/Core/LambertExponentialSinusoid.hpp>
#include <algorithm>
#include <math.h>
#include "mex.h"
void Lambert(double r1[],
double r2[],
double dt,
double dir,
double maxRev,
double mu,
double v1[],
double v2[])
{
ot... | 32.470588 | 157 | 0.603563 | Jmbryan |
15ecc8001874f53a822c644e6e3080eca8357fae | 380 | hpp | C++ | src/editor/Wizard/WizardPageRoom.hpp | tedvalson/NovelTea | f731951f25936cb7f5ff23e543e0301c1b5bfe82 | [
"MIT"
] | null | null | null | src/editor/Wizard/WizardPageRoom.hpp | tedvalson/NovelTea | f731951f25936cb7f5ff23e543e0301c1b5bfe82 | [
"MIT"
] | null | null | null | src/editor/Wizard/WizardPageRoom.hpp | tedvalson/NovelTea | f731951f25936cb7f5ff23e543e0301c1b5bfe82 | [
"MIT"
] | null | null | null | #ifndef WIZARDPAGEROOM_HPP
#define WIZARDPAGEROOM_HPP
#include <QWizardPage>
namespace Ui {
class WizardPageRoom;
}
class WizardPageRoom : public QWizardPage
{
Q_OBJECT
public:
explicit WizardPageRoom(QWidget *parent = 0);
~WizardPageRoom();
int nextId() const override;
bool validatePage() override;
private... | 14.074074 | 46 | 0.763158 | tedvalson |
15ecd676044fd7d49145ff821d3453fced57a270 | 6,213 | cpp | C++ | src/ltrendertarget.cpp | hemantasapkota/lotech | 46598a7c37dfd7cd424e2426564cc32533e1cfd6 | [
"curl"
] | 9 | 2015-06-28T05:47:33.000Z | 2021-06-29T13:35:48.000Z | src/ltrendertarget.cpp | hemantasapkota/lotech | 46598a7c37dfd7cd424e2426564cc32533e1cfd6 | [
"curl"
] | 5 | 2015-01-10T02:56:53.000Z | 2018-07-27T03:21:14.000Z | src/ltrendertarget.cpp | hemantasapkota/lotech | 46598a7c37dfd7cd424e2426564cc32533e1cfd6 | [
"curl"
] | 3 | 2015-04-01T14:48:54.000Z | 2015-11-12T11:52:50.000Z | /* Copyright (C) 2010-2013 Ian MacLarty. See Copyright Notice in lt.h. */
#include "lt.h"
LT_INIT_IMPL(ltrendertarget)
struct LTRenderTargetAction : LTAction {
LTRenderTarget *rt;
LTRenderTargetAction(LTSceneNode *node) : LTAction(node) {
rt = (LTRenderTarget*)node;
};
virtual bool doAction(LT... | 31.065 | 97 | 0.684371 | hemantasapkota |
15fb8f65da832fa3193cc1f2d2017dcbbea78dae | 683 | hpp | C++ | code/poly/poly/detail/is_plain.hpp | andyprowl/virtual-concepts | ed3a5690c353b6998abcd3368a9b448f1bb2aa19 | [
"Unlicense"
] | 59 | 2015-04-01T12:55:36.000Z | 2021-06-22T02:46:20.000Z | include/poly/detail/is_plain.hpp | pyrtsa/poly | 9fb84e93b0daba54977d8e26003b4c25eef41fb8 | [
"BSL-1.0"
] | 1 | 2015-06-29T14:51:55.000Z | 2015-06-29T16:40:26.000Z | code/poly/poly/detail/is_plain.hpp | andyprowl/virtual-concepts | ed3a5690c353b6998abcd3368a9b448f1bb2aa19 | [
"Unlicense"
] | 5 | 2016-04-19T09:21:11.000Z | 2021-12-29T09:48:09.000Z | // Copyright 2012 Pyry Jahkola.
//
// 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 POLY_DETAIL_IS_PLAIN_HPP_C59CAS1
#define POLY_DETAIL_IS_PLAIN_HPP_C59CAS1
#include <type_traits>
namespace poly {
namespa... | 29.695652 | 79 | 0.7306 | andyprowl |
c600a83e419db314f3f65b7ce2140dd333aff949 | 1,243 | hpp | C++ | include/msqlite/onerror.hpp | ricardocosme/msqlite | 95af5b04831c7af449f87346301b6e26bf749e9f | [
"MIT"
] | 19 | 2020-08-18T21:25:05.000Z | 2022-01-14T03:45:41.000Z | include/msqlite/onerror.hpp | ricardocosme/msqlite | 95af5b04831c7af449f87346301b6e26bf749e9f | [
"MIT"
] | null | null | null | include/msqlite/onerror.hpp | ricardocosme/msqlite | 95af5b04831c7af449f87346301b6e26bf749e9f | [
"MIT"
] | null | null | null | #pragma once
#include "msqlite/concepts.hpp"
#include "msqlite/detail/onerror.hpp"
#include "msqlite/pipes/detail/onerror.hpp"
namespace msqlite {
template<typename Expected,
typename F,
typename Ret =
std::invoke_result_t<F, typename std::remove_reference_t<Expected>::error_type>
... | 27.021739 | 88 | 0.650845 | ricardocosme |
c6023432b1993c925da8107686fd661efd4e3823 | 5,422 | cc | C++ | Modules/Geometry/src/irtkVector.cc | kevin-keraudren/IRTK | ce329b7f58270b6c34665dcfe9a6e941649f3b94 | [
"Apache-2.0"
] | 3 | 2018-10-04T19:32:36.000Z | 2021-09-02T07:37:30.000Z | Modules/Geometry/src/irtkVector.cc | kevin-keraudren/IRTK | ce329b7f58270b6c34665dcfe9a6e941649f3b94 | [
"Apache-2.0"
] | null | null | null | Modules/Geometry/src/irtkVector.cc | kevin-keraudren/IRTK | ce329b7f58270b6c34665dcfe9a6e941649f3b94 | [
"Apache-2.0"
] | 4 | 2016-03-17T02:55:00.000Z | 2018-02-03T05:40:05.000Z | /* The Image Registration Toolkit (IRTK)
*
* Copyright 2008-2015 Imperial College London
*
* 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... | 25.218605 | 80 | 0.51789 | kevin-keraudren |
c604502ce5d2e28f5beeff5f5a72319404730e28 | 201 | cpp | C++ | Classical/WILLITST.cpp | ashoknallagalva/Coding | ef5056d207ba27d492684774209cc9163ec06dcc | [
"Apache-2.0"
] | null | null | null | Classical/WILLITST.cpp | ashoknallagalva/Coding | ef5056d207ba27d492684774209cc9163ec06dcc | [
"Apache-2.0"
] | null | null | null | Classical/WILLITST.cpp | ashoknallagalva/Coding | ef5056d207ba27d492684774209cc9163ec06dcc | [
"Apache-2.0"
] | null | null | null | #include<iostream>
using namespace std;
int main(){
long long n,n1;
cin>>n;
n1=n-1;
if(n <=0)
cout<<"TAK";
else if(n>1 && (n & n1) == 0)
cout<<"TAK";
else
cout<<"NIE";
cout<<endl;
}
| 10.578947 | 30 | 0.532338 | ashoknallagalva |
c605ce6348d339ac530b7f2868846955c1d48e6e | 524 | cpp | C++ | plugin_III/game_III/CPhone.cpp | Aleksandr-Belousov/plugin-sdk | 5ca5f7d5575ae4138a4f165410a1acf0ae922260 | [
"Zlib"
] | 1 | 2020-10-06T21:10:27.000Z | 2020-10-06T21:10:27.000Z | plugin_III/game_III/CPhone.cpp | Aleksandr-Belousov/plugin-sdk | 5ca5f7d5575ae4138a4f165410a1acf0ae922260 | [
"Zlib"
] | null | null | null | plugin_III/game_III/CPhone.cpp | Aleksandr-Belousov/plugin-sdk | 5ca5f7d5575ae4138a4f165410a1acf0ae922260 | [
"Zlib"
] | 3 | 2020-10-03T21:34:05.000Z | 2020-12-19T01:52:38.000Z | /*
Plugin-SDK (Grand Theft Auto 3) source file
Authors: GTA Community. See more here
https://github.com/DK22Pac/plugin-sdk
Do not delete this comment block. Respect others' work!
*/
#include "CPhone.h"
PLUGIN_SOURCE_FILE
int ctor_addr(CPhone) = ADDRESS_BY_VERSION(0x42F620, 0x42F620, 0);
int ctor_gaddr... | 32.75 | 74 | 0.759542 | Aleksandr-Belousov |
c60605bb69e61a2afaf81db5c9677cc902c6149b | 2,499 | cpp | C++ | source/utopian/core/renderer/Light.cpp | simplerr/Papageno | 7ec1da40dc0459e26f5b9a8a3f72d8962237040d | [
"MIT"
] | 62 | 2020-11-06T17:29:24.000Z | 2022-03-21T19:21:16.000Z | source/utopian/core/renderer/Light.cpp | simplerr/Papageno | 7ec1da40dc0459e26f5b9a8a3f72d8962237040d | [
"MIT"
] | 134 | 2017-02-25T20:47:43.000Z | 2022-03-14T06:54:58.000Z | source/utopian/core/renderer/Light.cpp | simplerr/Papageno | 7ec1da40dc0459e26f5b9a8a3f72d8962237040d | [
"MIT"
] | 6 | 2021-02-19T07:20:19.000Z | 2021-12-27T09:07:27.000Z | #include "core/renderer/Light.h"
#include "core/renderer/Renderer.h"
namespace Utopian
{
Light::Light()
{
// Default values
SetColor(glm::vec4(1.0f));
SetDirection(glm::vec3(1.0f, 1.0f, 0.0f));
SetAtt(0.4f, 0.86f, 0.0f);
SetRange(80.0f);
SetSpot(100.0f);
SetType(Utopian:... | 18.931818 | 73 | 0.606242 | simplerr |
c61067c6a1f89bdfb41b317094d974f05cf86f03 | 1,080 | cpp | C++ | utils/stream/fstream.cpp | hardened-steel/lua | b468699f2d44c18394470eece597afb6c8ca53e5 | [
"MIT"
] | null | null | null | utils/stream/fstream.cpp | hardened-steel/lua | b468699f2d44c18394470eece597afb6c8ca53e5 | [
"MIT"
] | null | null | null | utils/stream/fstream.cpp | hardened-steel/lua | b468699f2d44c18394470eece597afb6c8ca53e5 | [
"MIT"
] | null | null | null | #include <boost/iostreams/device/mapped_file.hpp>
#include <system_error>
#include "fstream.hpp"
namespace bio = boost::iostreams;
namespace {
struct ROFileMapping
{
bio::mapped_file_source source;
public:
ROFileMapping(const std::filesystem::path& path)
: source(path.string())
{}
public:
const std::by... | 19.285714 | 60 | 0.669444 | hardened-steel |
c6167e60b42b318c4b953efc06758b6e3057d663 | 4,930 | cpp | C++ | filters/ImageViewer/imageviewer.cpp | InfiniteInteractive/LimitlessSDK | cb71dde14d8c59cbf8a1ece765989c5787fffefa | [
"MIT"
] | 3 | 2017-05-13T20:36:03.000Z | 2021-07-16T17:23:01.000Z | filters/ImageViewer/imageviewer.cpp | InfiniteInteractive/LimitlessSDK | cb71dde14d8c59cbf8a1ece765989c5787fffefa | [
"MIT"
] | null | null | null | filters/ImageViewer/imageviewer.cpp | InfiniteInteractive/LimitlessSDK | cb71dde14d8c59cbf8a1ece765989c5787fffefa | [
"MIT"
] | 2 | 2016-08-04T00:16:50.000Z | 2017-09-07T14:50:03.000Z | #include "imageviewer.h"
#include "QtComponents/QtPluginView.h"
#include "Media/MediaPad.h"
#include "glView.h"
#include "Media/ImageSample.h"
#include <boost/foreach.hpp>
using namespace Limitless;
ImageViewer::ImageViewer(std::string name, SharedMediaFilter parent):
MediaAutoRegister(name, parent),
m_glView(nullp... | 23.14554 | 102 | 0.718864 | InfiniteInteractive |
72428b87e23b9c3115e19e00d464c91c26127592 | 25,880 | cpp | C++ | render-only-sample/rosumd/RosUmdResource.cpp | woachk/rpigpu | 84176130663166964bdc5fec4a821a71420088fa | [
"MIT"
] | 14 | 2019-02-19T05:45:23.000Z | 2021-08-20T12:56:41.000Z | render-only-sample/rosumd/RosUmdResource.cpp | driver1998/rpigpu | 0da035aebf53a160b0740dda5bc7784fa33ceb3a | [
"MIT"
] | 3 | 2019-03-01T21:06:52.000Z | 2020-11-07T17:20:38.000Z | render-only-sample/rosumd/RosUmdResource.cpp | driver1998/rpigpu | 0da035aebf53a160b0740dda5bc7784fa33ceb3a | [
"MIT"
] | 5 | 2019-02-23T03:48:45.000Z | 2020-01-19T18:56:16.000Z | ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
//
// Resource implementation
//
// Copyright (C) Microsoft Corporation
//
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////... | 30.482921 | 151 | 0.624652 | woachk |
7242b49d0ee029cf71b91f4e382305cc587391cd | 21,379 | cpp | C++ | apps/pynq_mqttsn/app.cpp | Subarashi-tako/HLS_packet_processing | 0e66c0779a279e8beb7c26c07818b98e5ab7f42f | [
"Apache-2.0"
] | 32 | 2019-07-15T12:42:33.000Z | 2022-03-23T09:32:16.000Z | apps/pynq_mqttsn/app.cpp | twosigma/HLS_packet_processing | 70d76ef66e194afd89438b1908e914d88642ce54 | [
"Apache-2.0"
] | 3 | 2019-07-17T19:03:26.000Z | 2021-01-18T22:59:02.000Z | apps/pynq_mqttsn/app.cpp | twosigma/HLS_packet_processing | 70d76ef66e194afd89438b1908e914d88642ce54 | [
"Apache-2.0"
] | 17 | 2019-11-04T05:38:22.000Z | 2021-12-08T08:01:22.000Z | /*
Copyright (c) 2016-2018, Xilinx, 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 applicable law or ag... | 36.358844 | 180 | 0.579681 | Subarashi-tako |
7245703451ebe5c08ff0ee12ddf5c27a006976f8 | 688 | cpp | C++ | bg96_pwr.cpp | bentcooke/pelion-ready-example-j | 26d7b59e9affc9b2aa1c48cb7f26ffdc504b0a69 | [
"Apache-2.0"
] | null | null | null | bg96_pwr.cpp | bentcooke/pelion-ready-example-j | 26d7b59e9affc9b2aa1c48cb7f26ffdc504b0a69 | [
"Apache-2.0"
] | null | null | null | bg96_pwr.cpp | bentcooke/pelion-ready-example-j | 26d7b59e9affc9b2aa1c48cb7f26ffdc504b0a69 | [
"Apache-2.0"
] | null | null | null | #include "bg96_pwr.h"
#include "platform/mbed_debug.h"
#include "DigitalOut.h"
#include "platform/mbed_wait_api.h"
void avnet_bg96_power(void)
{
mbed::DigitalOut BG96_RESET(D7, 1);
mbed::DigitalOut BG96_PWRKEY(D10, 0);
// mbed::DigitalOut BG96_VBAT_3V8_EN(D11, 0);
// 3V8_EN is pulled to 5V and not connected as the ... | 20.848485 | 73 | 0.72093 | bentcooke |
72477170207b6edd440fb7f02f9c0a5f1fc5e6bd | 1,541 | cpp | C++ | project_booking_qt_gui/ProjectBookingQtUI/ProjectBookingQtUI/projectlabelreport.cpp | VBota1/project_booking | 13337130e1294df43c243cf1df53edfa736c42b7 | [
"MIT"
] | null | null | null | project_booking_qt_gui/ProjectBookingQtUI/ProjectBookingQtUI/projectlabelreport.cpp | VBota1/project_booking | 13337130e1294df43c243cf1df53edfa736c42b7 | [
"MIT"
] | 2 | 2019-03-01T09:25:32.000Z | 2019-03-01T09:26:08.000Z | project_booking_qt_gui/ProjectBookingQtUI/ProjectBookingQtUI/projectlabelreport.cpp | VBota1/project_booking | 13337130e1294df43c243cf1df53edfa736c42b7 | [
"MIT"
] | null | null | null | #include "projectlabelreport.h"
ProjectLabelReport::ProjectLabelReport()
{
}
Result< QList<LabelReport> > ProjectLabelReport::fromQJsonDocument (QJsonDocument json)
{
QList<LabelReport> response;
if ( !json.isArray() )
{
Err< QList<LabelReport> > error("Data From backend is not a collection of e... | 27.517857 | 123 | 0.64828 | VBota1 |
7247b958b7dea78bb43cf5fc49654f9284067491 | 5,071 | cpp | C++ | src/server/scripts/Kalimdor/HallsOfOrigination/boss_ammunae.cpp | Arkania/ArkCORE | 2484554a7b54be0b652f9dc3c5a8beba79df9fbf | [
"OpenSSL"
] | 42 | 2015-01-05T10:00:07.000Z | 2022-02-18T14:51:33.000Z | src/server/scripts/Kalimdor/HallsOfOrigination/boss_ammunae.cpp | superllout/WOW | 3d0eeb940cccf8ab7854259172c6d75a85ee4f7d | [
"OpenSSL"
] | null | null | null | src/server/scripts/Kalimdor/HallsOfOrigination/boss_ammunae.cpp | superllout/WOW | 3d0eeb940cccf8ab7854259172c6d75a85ee4f7d | [
"OpenSSL"
] | 31 | 2015-01-09T02:04:29.000Z | 2021-09-01T13:20:20.000Z | /*
* Copyright (C) 2011 True Blood <http://www.trueblood-servers.com/>
* By Asardial
*
* Copyright (C) 2011 - 2013 ArkCORE <http://www.arkania.net/>
*
* 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... | 24.033175 | 199 | 0.628673 | Arkania |
724abc63caf71ca0d60d713942725a8c787d015a | 356 | cpp | C++ | 191.cpp | zhulk3/leetCode | 0a1dbf8d58558ab9b05c5150aafa9e4344cec5bc | [
"Apache-2.0"
] | 2 | 2020-03-13T08:14:01.000Z | 2021-09-03T15:27:49.000Z | 191.cpp | zhulk3/LeetCode | 0a1dbf8d58558ab9b05c5150aafa9e4344cec5bc | [
"Apache-2.0"
] | null | null | null | 191.cpp | zhulk3/LeetCode | 0a1dbf8d58558ab9b05c5150aafa9e4344cec5bc | [
"Apache-2.0"
] | null | null | null | class Solution {
public:
int hammingWeight(uint32_t n) {
stack<int>store;
int t=0;
while(n){
t=n%2;
n/=2;
store.push(t);
}
int cnt=0;
while(store.size()){
if(store.top()==1)
cnt++;
store.pop();
... | 18.736842 | 35 | 0.379213 | zhulk3 |
724dff2316ee7c984d6b145f5178ee646cf74f3f | 203 | cpp | C++ | src/Aurora/Graphics/Material/Material.cpp | sjuhyeon/Aurora | 9a6249bcac9beb0ac9792137b522160156e1dd71 | [
"MIT"
] | 1 | 2022-02-23T17:42:51.000Z | 2022-02-23T17:42:51.000Z | src/Aurora/Graphics/Material/Material.cpp | sjuhyeon/Aurora | 9a6249bcac9beb0ac9792137b522160156e1dd71 | [
"MIT"
] | null | null | null | src/Aurora/Graphics/Material/Material.cpp | sjuhyeon/Aurora | 9a6249bcac9beb0ac9792137b522160156e1dd71 | [
"MIT"
] | null | null | null | #include "Material.hpp"
namespace Aurora
{
void Material::BeginPass(DrawCallState &drawState, EPassType passType) const
{
drawState.Shader = GetShader(passType);
au_assert(drawState.Shader);
}
} | 18.454545 | 77 | 0.758621 | sjuhyeon |
725b324234bc985b60546b1c98940487113f3ebd | 3,245 | cpp | C++ | src/sdcard.cpp | mchresse/BeeIoT | 9289b9408168ddc223b073083f28e9c0aece5ede | [
"BSD-3-Clause"
] | null | null | null | src/sdcard.cpp | mchresse/BeeIoT | 9289b9408168ddc223b073083f28e9c0aece5ede | [
"BSD-3-Clause"
] | null | null | null | src/sdcard.cpp | mchresse/BeeIoT | 9289b9408168ddc223b073083f28e9c0aece5ede | [
"BSD-3-Clause"
] | 1 | 2020-12-22T18:55:22.000Z | 2020-12-22T18:55:22.000Z | //*******************************************************************
// SDCard.cpp
// from Project https://github.com/mchresse/BeeIoT
//
// Description:
// Contains main setup() and loop() routines for SPi based MM
//
//-------------------------------------------------------------------
// Copyright (c) 2019-present... | 33.802083 | 165 | 0.558089 | mchresse |
725dcc855b56eadd22fb3dd7e91b26f32daa71e5 | 1,562 | cpp | C++ | src/graphic/buffer/oni-graphic-buffer.cpp | sina-/granite | 95b873bc545cd4925b5cea8c632a82f2d815be6e | [
"MIT"
] | 2 | 2019-08-01T09:18:49.000Z | 2020-03-26T05:59:52.000Z | src/graphic/buffer/oni-graphic-buffer.cpp | sina-/granite | 95b873bc545cd4925b5cea8c632a82f2d815be6e | [
"MIT"
] | null | null | null | src/graphic/buffer/oni-graphic-buffer.cpp | sina-/granite | 95b873bc545cd4925b5cea8c632a82f2d815be6e | [
"MIT"
] | 1 | 2020-03-26T05:59:53.000Z | 2020-03-26T05:59:53.000Z | #include <oni-core/graphic/buffer/oni-graphic-buffer.h>
#include <cassert>
#include <GL/glew.h>
#include <oni-core/graphic/buffer/oni-graphic-buffer-data.h>
namespace oni {
Buffer::Buffer(const std::vector<oniGLfloat> &data,
oniGLsizeiptr dataSize,
oniGLenum usage) {
... | 33.956522 | 87 | 0.637004 | sina- |
72697fce20b6f887467adf0849e468730b4c39a2 | 6,813 | cpp | C++ | exp/src/zgeqrf-v3.cpp | shengren/magma-1.6.1 | 1adfee30b763e9491a869403e0f320b3888923b6 | [
"BSD-3-Clause"
] | 21 | 2017-10-06T05:05:05.000Z | 2022-03-13T15:39:20.000Z | exp/src/zgeqrf-v3.cpp | shengren/magma-1.6.1 | 1adfee30b763e9491a869403e0f320b3888923b6 | [
"BSD-3-Clause"
] | 1 | 2017-03-23T00:27:24.000Z | 2017-03-23T00:27:24.000Z | exp/src/zgeqrf-v3.cpp | shengren/magma-1.6.1 | 1adfee30b763e9491a869403e0f320b3888923b6 | [
"BSD-3-Clause"
] | 4 | 2018-01-09T15:49:58.000Z | 2022-03-13T15:39:27.000Z | /*
-- MAGMA (version 1.6.1) --
Univ. of Tennessee, Knoxville
Univ. of California, Berkeley
Univ. of Colorado, Denver
@date January 2015
@precisions normal z -> s d c
*/
#include "common_magma.h"
/* ------------------------------------------------------------
* MAGMA QR params
... | 29.240343 | 84 | 0.560986 | shengren |
726abf693125abb050ba077577573ecd6bc10d6e | 4,650 | cpp | C++ | examples/SimpleOpenGL3/main.cpp | d3x0r/bullet3 | 7452ba37ec5639cbebd55503bad632653b4b25e7 | [
"Zlib"
] | null | null | null | examples/SimpleOpenGL3/main.cpp | d3x0r/bullet3 | 7452ba37ec5639cbebd55503bad632653b4b25e7 | [
"Zlib"
] | null | null | null | examples/SimpleOpenGL3/main.cpp | d3x0r/bullet3 | 7452ba37ec5639cbebd55503bad632653b4b25e7 | [
"Zlib"
] | null | null | null | #include "OpenGLWindow/SimpleOpenGL3App.h"
#include "Bullet3Common/b3Quaternion.h"
#include "Bullet3Common/b3CommandLineArgs.h"
#include "assert.h"
#include <stdio.h>
char* gVideoFileName = 0;
char* gPngFileName = 0;
static b3WheelCallback sOldWheelCB = 0;
static b3ResizeCallback sOldResizeCB = 0;
static b3MouseMoveC... | 29.807692 | 99 | 0.692258 | d3x0r |
7273ea551ee38c074e958f10eb84b4dbc5a5a4d5 | 3,269 | cpp | C++ | OpenTally-Gateway/src/oscserver/oscsubscriberlist.cpp | bjornvdh/opentally | e9189a94bc73bca1260f805719d12ea9cc3b5154 | [
"Unlicense"
] | null | null | null | OpenTally-Gateway/src/oscserver/oscsubscriberlist.cpp | bjornvdh/opentally | e9189a94bc73bca1260f805719d12ea9cc3b5154 | [
"Unlicense"
] | null | null | null | OpenTally-Gateway/src/oscserver/oscsubscriberlist.cpp | bjornvdh/opentally | e9189a94bc73bca1260f805719d12ea9cc3b5154 | [
"Unlicense"
] | null | null | null | #include <Arduino.h>
#include "messagebuffer/messagebuffer.h"
#include "oscserver/oscsubscriberlist.h"
#define OSC_MAX_SUBSCRIBER_COUNT 64
#define SUBSCRIBER_VALID_TIME 60000
static SemaphoreHandle_t subscriberMutex = xSemaphoreCreateMutex();
OSCSubscriber _subscribers[OSC_MAX_SUBSCRIBER_COUNT];
void subscriber_ad... | 32.04902 | 96 | 0.670236 | bjornvdh |
72746ac6cbf78e1253caa60a7dcf7f2e0474f9d1 | 7,194 | cpp | C++ | tests/instanced_rendering_without_ibo.cpp | ArmandBiteau/mncrft | 248a3d887404a6df6ccc6d08119acb11b5dd402e | [
"MIT"
] | null | null | null | tests/instanced_rendering_without_ibo.cpp | ArmandBiteau/mncrft | 248a3d887404a6df6ccc6d08119acb11b5dd402e | [
"MIT"
] | null | null | null | tests/instanced_rendering_without_ibo.cpp | ArmandBiteau/mncrft | 248a3d887404a6df6ccc6d08119acb11b5dd402e | [
"MIT"
] | null | null | null | #include <glimac/SDLWindowManager.hpp>
#include <GL/glew.h>
#include <glimac/Program.hpp>
#include <glimac/FilePath.hpp>
#include <glimac/Image.hpp>
#include <iostream>
#include <cmath>
#include <vector>
using namespace glimac;
struct Vertex2DUV {
glm::vec2 position;
glm::vec2 texture;
Vertex2DUV(){}
Vertex... | 25.330986 | 119 | 0.659438 | ArmandBiteau |
72776824ba2222a6f735de8008b702bfe058be52 | 439 | hpp | C++ | include/cppurses/painter/detail/extended_char.hpp | jktjkt/CPPurses | 652d702258db8fab55ae945f7bb38e0b7c29521b | [
"MIT"
] | null | null | null | include/cppurses/painter/detail/extended_char.hpp | jktjkt/CPPurses | 652d702258db8fab55ae945f7bb38e0b7c29521b | [
"MIT"
] | null | null | null | include/cppurses/painter/detail/extended_char.hpp | jktjkt/CPPurses | 652d702258db8fab55ae945f7bb38e0b7c29521b | [
"MIT"
] | null | null | null | #ifndef CPPURSES_PAINTER_DETAIL_EXTENDED_CHAR_HPP
#define CPPURSES_PAINTER_DETAIL_EXTENDED_CHAR_HPP
#include <ncurses.h>
namespace cppurses {
namespace detail {
/// Retrieve a character that is equivalent to /p sym. For ncurses
/// implementations that do not support wide characters.
chtype find_chtype(wchar_t sym, b... | 29.266667 | 66 | 0.806378 | jktjkt |
7280da6f34bb62ada91615fe3ccd8a6a6256cd35 | 707 | cpp | C++ | codechef/IOPC/Russiancodecup/B.cpp | GinugaSaketh/Codes | e934aa5652dd86231a42e3f7f84b145eb35bf47d | [
"MIT"
] | null | null | null | codechef/IOPC/Russiancodecup/B.cpp | GinugaSaketh/Codes | e934aa5652dd86231a42e3f7f84b145eb35bf47d | [
"MIT"
] | null | null | null | codechef/IOPC/Russiancodecup/B.cpp | GinugaSaketh/Codes | e934aa5652dd86231a42e3f7f84b145eb35bf47d | [
"MIT"
] | null | null | null | #include<iostream>
#include<cstdio>
using namespace std;
int a[100005];
int b[100005];
long long h;
int main(){
int t;
cin>>t;
while(t--){
int i;
int n;
cin>>n>>h;
for(i=1;i<=n;i++){
scanf("%d",&a[i]);
}
for(i=1;i<=n;i++){
scanf("%d",&b[i]);
}
int net=0;
for(i=1;i<=n;i++){
int j=i;
... | 9.957746 | 24 | 0.422914 | GinugaSaketh |
7282518c60e3a4fac6f9b8ddccff2ecda82ea0da | 7,401 | cpp | C++ | source/design/Color4Converter.cpp | HeavenWu/slimdx | e014bb34b89bbf694d01c8f6d6b6dfa3cba58aac | [
"MIT"
] | 85 | 2015-04-06T05:37:10.000Z | 2022-03-22T19:53:03.000Z | source/design/Color4Converter.cpp | HeavenWu/slimdx | e014bb34b89bbf694d01c8f6d6b6dfa3cba58aac | [
"MIT"
] | 10 | 2016-03-17T11:18:24.000Z | 2021-05-11T09:21:43.000Z | source/design/Color4Converter.cpp | HeavenWu/slimdx | e014bb34b89bbf694d01c8f6d6b6dfa3cba58aac | [
"MIT"
] | 45 | 2015-09-14T03:54:01.000Z | 2022-03-22T19:53:09.000Z | #include "stdafx.h"
/*
* Copyright (c) 2007-2012 SlimDX Group
*
* 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, ... | 38.546875 | 172 | 0.710309 | HeavenWu |
7282d630f61edea8f97d2d920d4f533fae415835 | 794 | cpp | C++ | Algorithmic-Toolbox/week4_divide_and_conquer/assignment/1_binary_search.cpp | adityakrmaurya/Data-Structures-and-Algorithms | bcb7fbebb7581ca77bc9eec815d1e2d62ad1374f | [
"MIT"
] | 2 | 2020-07-13T22:27:30.000Z | 2021-12-11T09:08:17.000Z | Algorithmic-Toolbox/week4_divide_and_conquer/assignment/1_binary_search.cpp | adityakrmaurya/Data-Structures-and-Algorithms | bcb7fbebb7581ca77bc9eec815d1e2d62ad1374f | [
"MIT"
] | null | null | null | Algorithmic-Toolbox/week4_divide_and_conquer/assignment/1_binary_search.cpp | adityakrmaurya/Data-Structures-and-Algorithms | bcb7fbebb7581ca77bc9eec815d1e2d62ad1374f | [
"MIT"
] | null | null | null | #include <iostream>
#include <vector>
#include <algorithm>
#include <cmath>
using namespace std;
int binary_search(vector<int>& an, int low, int high,int value)
{
while(low <= high){
int mid = floor(low + ((high - low) / 2));
if(an[mid] == value){
return mid;
}
else if(... | 17.644444 | 63 | 0.43199 | adityakrmaurya |
72830acd984ea978ca9d5d17809f48d294b059c8 | 2,390 | hpp | C++ | src/Emulators/nestopiaue/core/api/NstApiEmulator.hpp | slajerek/RetroDebugger | e761e4f9efd103a05e65ef283423b142fa4324c7 | [
"Apache-2.0",
"MIT"
] | 34 | 2021-05-29T07:04:17.000Z | 2022-03-10T20:16:03.000Z | src/Emulators/nestopiaue/core/api/NstApiEmulator.hpp | slajerek/RetroDebugger | e761e4f9efd103a05e65ef283423b142fa4324c7 | [
"Apache-2.0",
"MIT"
] | 6 | 2021-12-25T13:05:21.000Z | 2022-01-19T17:35:17.000Z | src/Emulators/nestopiaue/core/api/NstApiEmulator.hpp | slajerek/RetroDebugger | e761e4f9efd103a05e65ef283423b142fa4324c7 | [
"Apache-2.0",
"MIT"
] | 6 | 2021-12-24T18:37:41.000Z | 2022-02-06T23:06:02.000Z | ////////////////////////////////////////////////////////////////////////////////////////
//
// Nestopia - NES/Famicom emulator written in C++
//
// Copyright (C) 2003-2008 Martin Freij
//
// This file is part of Nestopia.
//
// Nestopia is free software; you can redistribute it and/or modify
// it under the te... | 20.782609 | 89 | 0.594142 | slajerek |
728719521093303c7fe90114988ebecdc5936b80 | 892 | hh | C++ | examples/Example17/include/HepMC3G4AsciiReaderMessenger.hh | stognini/AdePT | 9a106b83f421938ad8f4d8567d199c84f339e6c9 | [
"Apache-2.0"
] | null | null | null | examples/Example17/include/HepMC3G4AsciiReaderMessenger.hh | stognini/AdePT | 9a106b83f421938ad8f4d8567d199c84f339e6c9 | [
"Apache-2.0"
] | null | null | null | examples/Example17/include/HepMC3G4AsciiReaderMessenger.hh | stognini/AdePT | 9a106b83f421938ad8f4d8567d199c84f339e6c9 | [
"Apache-2.0"
] | null | null | null | // SPDX-FileCopyrightText: 2022 CERN
// SPDX-License-Identifier: Apache-2.0
//
/// \file eventgenerator/HepMC3/HepMCEx01/include/HepMC3G4AsciiReaderMessenger.hh
/// \brief Definition of the HepMC3G4AsciiReaderMessenger class
//
//
#ifndef HEPMC3_G4_ASCII_READER_MESSENGER_H
#define HEPMC3_G4_ASCII_READER_MESSENGER_H
... | 22.871795 | 81 | 0.816143 | stognini |
72883e023464c4adabdd0b0749b15e951a7835e9 | 3,869 | cpp | C++ | Dicom/dicom/data/UL.cpp | drleq/CppDicom | e320fad8414fabfb51c5eb80964f8b6def578247 | [
"MIT"
] | null | null | null | Dicom/dicom/data/UL.cpp | drleq/CppDicom | e320fad8414fabfb51c5eb80964f8b6def578247 | [
"MIT"
] | null | null | null | Dicom/dicom/data/UL.cpp | drleq/CppDicom | e320fad8414fabfb51c5eb80964f8b6def578247 | [
"MIT"
] | null | null | null | #include "dicom_pch.h"
#include "dicom/data/UL.h"
namespace dicom::data {
UL::UL()
: UL(buffer<uint32_t>())
{}
//--------------------------------------------------------------------------------------------------------
UL::UL(const buffer<uint32_t>& binary_value)
: UL(binary_v... | 31.713115 | 111 | 0.303438 | drleq |
728e2c2ced345b4d0132b236b5471b54cc92ffd9 | 2,380 | cpp | C++ | zimlib/src/uuid.cpp | zjzdy/Offline-small-search | 8bc7382b3f55184c8d179a2bf6e1e90730d6a09c | [
"ICU"
] | 10 | 2016-05-10T14:48:44.000Z | 2021-06-16T11:49:55.000Z | zimlib/src/uuid.cpp | zjzdy/Offline-small-search | 8bc7382b3f55184c8d179a2bf6e1e90730d6a09c | [
"ICU"
] | null | null | null | zimlib/src/uuid.cpp | zjzdy/Offline-small-search | 8bc7382b3f55184c8d179a2bf6e1e90730d6a09c | [
"ICU"
] | 2 | 2016-11-09T06:56:29.000Z | 2019-11-22T14:34:27.000Z | /*
* Copyright (C) 2009 Tommi Maekitalo
*
* 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) any later version.
*
* This program is di... | 24.040404 | 76 | 0.614706 | zjzdy |
728ea2c101e02807b1a95576573d7a9519ee3464 | 815 | cpp | C++ | #0036.valid-sudoku.cpp | hosomi/LeetCode | aba8fae8e37102b33dba8fd4adf1f018c395a4db | [
"MIT"
] | null | null | null | #0036.valid-sudoku.cpp | hosomi/LeetCode | aba8fae8e37102b33dba8fd4adf1f018c395a4db | [
"MIT"
] | null | null | null | #0036.valid-sudoku.cpp | hosomi/LeetCode | aba8fae8e37102b33dba8fd4adf1f018c395a4db | [
"MIT"
] | null | null | null | class Solution {
public:
bool isValidSudoku(vector<vector<char>>& board) {
unordered_set<string> set;
string work, col, cell, row;
for (int i = 0; i < 9; ++i) {
for (int j = 0; j < 9; ++j) {
if (board[i][j] == '.') {
continue;
... | 30.185185 | 74 | 0.38773 | hosomi |
72941c89f7a542a72afae6aa1c60bfb65e047717 | 3,458 | cpp | C++ | TIDriver/sfr.cpp | IgarashiYuka/msp430f5529lp_workspace | 09aa6c297330202c700fbc7bc1d8ad6da660ba15 | [
"MIT"
] | 58 | 2020-02-16T00:06:07.000Z | 2022-03-24T20:43:45.000Z | TIDriver/sfr.cpp | IgarashiYuka/msp430f5529lp_workspace | 09aa6c297330202c700fbc7bc1d8ad6da660ba15 | [
"MIT"
] | 24 | 2020-02-18T02:40:32.000Z | 2022-01-14T16:53:47.000Z | TIDriver/sfr.cpp | IgarashiYuka/msp430f5529lp_workspace | 09aa6c297330202c700fbc7bc1d8ad6da660ba15 | [
"MIT"
] | 22 | 2020-03-14T15:13:51.000Z | 2022-03-23T05:42:24.000Z | /* --COPYRIGHT--,BSD
* Copyright (c) 2017, Texas Instruments Incorporated
* 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 ab... | 35.649485 | 80 | 0.621457 | IgarashiYuka |
72952acc62f29bd363d3cf0438ff7a49a795be55 | 9,945 | cpp | C++ | SimpleNeuralNetwork/SimpleNeuralNetwork.cpp | 14gasher/patternizer | 692e4a38817cf80ba7a45f999874edd81283cda0 | [
"MIT"
] | 1 | 2017-10-14T15:03:18.000Z | 2017-10-14T15:03:18.000Z | SimpleNeuralNetwork/SimpleNeuralNetwork.cpp | 14gasher/patternizer | 692e4a38817cf80ba7a45f999874edd81283cda0 | [
"MIT"
] | null | null | null | SimpleNeuralNetwork/SimpleNeuralNetwork.cpp | 14gasher/patternizer | 692e4a38817cf80ba7a45f999874edd81283cda0 | [
"MIT"
] | null | null | null | //
// Created by Asher Gunsay on 9/22/17.
//
#include "SimpleNeuralNetwork.hpp"
#include <vector>
#include <math.h>
#include <iostream>
#include <fstream>
SimpleNeuralNetwork::SimpleNeuralNetwork(unsigned int* sizes, double learnRate = 0.1, unsigned int epochCount = 30) :
size(sizes), learningRate(learnRate)
{
... | 26.449468 | 146 | 0.657215 | 14gasher |
729af33fc72c72dec7046fabec93e97e7118f36b | 376 | cpp | C++ | include/bits/bits.test.cpp | jaydee-io/bits | 2f361478b04a809af0d52de06700bb0aab5b731a | [
"BSD-3-Clause"
] | null | null | null | include/bits/bits.test.cpp | jaydee-io/bits | 2f361478b04a809af0d52de06700bb0aab5b731a | [
"BSD-3-Clause"
] | null | null | null | include/bits/bits.test.cpp | jaydee-io/bits | 2f361478b04a809af0d52de06700bb0aab5b731a | [
"BSD-3-Clause"
] | null | null | null | ////////////////////////////////////////////////////////////////////////////////
// bits
//
// This file is distributed under the 3-clause Berkeley Software Distribution
// License. See LICENSE for details.
//////////////////////////////////////////////////////////////////////////////... | 41.777778 | 80 | 0.356383 | jaydee-io |
72ae520307558dac842446d3d6555c39802d9114 | 377 | cpp | C++ | src/icebox/samples/winpe_boot/main.cpp | Axoosha/icebox | 99d147d5b9269222225443ce171b4fd46d8985d4 | [
"MIT"
] | 521 | 2019-03-29T15:44:08.000Z | 2022-03-22T09:46:19.000Z | src/icebox/samples/winpe_boot/main.cpp | Axoosha/icebox | 99d147d5b9269222225443ce171b4fd46d8985d4 | [
"MIT"
] | 30 | 2019-06-04T17:00:49.000Z | 2021-09-08T20:44:19.000Z | src/icebox/samples/winpe_boot/main.cpp | Axoosha/icebox | 99d147d5b9269222225443ce171b4fd46d8985d4 | [
"MIT"
] | 99 | 2019-03-29T16:04:13.000Z | 2022-03-28T16:59:34.000Z | #define FDP_MODULE "winpe_boot"
#include <icebox/core.hpp>
#include <icebox/log.hpp>
int main(int argc, char** argv)
{
logg::init(argc, argv);
if(argc != 2)
return FAIL(-1, "usage: winpe_boot <name>");
const auto name = std::string{argv[1]};
LOG(INFO, "starting on %s", name.data());
while... | 19.842105 | 52 | 0.602122 | Axoosha |
72afb56fc891ad534df0ae9d54511e672433f840 | 17,671 | hpp | C++ | include/uMon/z80/dasm.hpp | trevor-makes/uMon | 484dc46be45d6eb5ed37f9235ab28d5d3bb40344 | [
"MIT"
] | null | null | null | include/uMon/z80/dasm.hpp | trevor-makes/uMon | 484dc46be45d6eb5ed37f9235ab28d5d3bb40344 | [
"MIT"
] | null | null | null | include/uMon/z80/dasm.hpp | trevor-makes/uMon | 484dc46be45d6eb5ed37f9235ab28d5d3bb40344 | [
"MIT"
] | null | null | null | // https://github.com/trevor-makes/uMon.git
// Copyright (c) 2022 Trevor Makes
// 8080/Z80 (and even x86!) opcodes are organized by octal groupings
// http://z80.info/decoding.htm is a great resource for decoding these
#pragma once
#include "uMon/z80/common.hpp"
#include "uMon/format.hpp"
#include <stdint.h>
names... | 31.33156 | 92 | 0.642182 | trevor-makes |
72b3567c7528f0539f482e1d785f30fd80f03f91 | 1,347 | cpp | C++ | artifact/storm/src/storm/storage/jani/BooleanVariable.cpp | glatteis/tacas21-artifact | 30b4f522bd3bdb4bebccbfae93f19851084a3db5 | [
"MIT"
] | null | null | null | artifact/storm/src/storm/storage/jani/BooleanVariable.cpp | glatteis/tacas21-artifact | 30b4f522bd3bdb4bebccbfae93f19851084a3db5 | [
"MIT"
] | null | null | null | artifact/storm/src/storm/storage/jani/BooleanVariable.cpp | glatteis/tacas21-artifact | 30b4f522bd3bdb4bebccbfae93f19851084a3db5 | [
"MIT"
] | 1 | 2022-02-05T12:39:53.000Z | 2022-02-05T12:39:53.000Z | #include "storm/storage/jani/BooleanVariable.h"
namespace storm {
namespace jani {
BooleanVariable::BooleanVariable(std::string const& name, storm::expressions::Variable const& variable) : Variable(name, variable) {
// Intentionally left empty.
}
BooleanVariabl... | 40.818182 | 227 | 0.619896 | glatteis |
72b95e2a10935b40b1c584edb46bca3ff24c531e | 1,758 | cpp | C++ | Library_Administrator_System/mainpage.cpp | renzibei/TGLibrary | 5c23dafa15cc8d2eec5bf06a90cd80dedf36bf4e | [
"Apache-2.0"
] | 1 | 2018-09-11T04:58:39.000Z | 2018-09-11T04:58:39.000Z | Library_Administrator_System/mainpage.cpp | renzibei/TGLibrary | 5c23dafa15cc8d2eec5bf06a90cd80dedf36bf4e | [
"Apache-2.0"
] | null | null | null | Library_Administrator_System/mainpage.cpp | renzibei/TGLibrary | 5c23dafa15cc8d2eec5bf06a90cd80dedf36bf4e | [
"Apache-2.0"
] | null | null | null | #include "mainpage.h"
#include "ui_mainpage.h"
#include "readermanagement.h"
#include "bookmanagement.h"
#include "record.h"
#include "confirm.h"
MainPage::MainPage(QWidget *parent) :
QDialog(parent),
ui(new Ui::MainPage)
{
ui->setupUi(this);
//this->setAttribute(Qt::WA_DeleteOnClose);
// connect(ui... | 23.756757 | 81 | 0.659272 | renzibei |
72bf703b0c2de9759ddeddbd09ee91e4ce7433e9 | 8,712 | cpp | C++ | lib/malloy/core/html/form.cpp | 0x00002a/malloy | 94ececf246ac2bc848235f7806439ef3be1eed73 | [
"MIT"
] | null | null | null | lib/malloy/core/html/form.cpp | 0x00002a/malloy | 94ececf246ac2bc848235f7806439ef3be1eed73 | [
"MIT"
] | null | null | null | lib/malloy/core/html/form.cpp | 0x00002a/malloy | 94ececf246ac2bc848235f7806439ef3be1eed73 | [
"MIT"
] | null | null | null | #include "form.hpp"
#include "multipart_parser.hpp"
#include "../utils.hpp"
#include "../http/utils.hpp"
#include <algorithm>
#include <vector>
using namespace malloy::html;
form::form(
const http::method method,
std::string action,
const encoding enc
) :
m_method(method),
m_action(std::move(acti... | 25.399417 | 143 | 0.574839 | 0x00002a |
72c0fde0bc7663c50097a70b664016051c916e19 | 18,706 | cpp | C++ | LiveUpdate/ProgressBar/ProgressCtrlX.cpp | tsingfun/QuoteClient | 180f5049e813cb8221d357c4db916cc79c7c9e02 | [
"Apache-2.0"
] | 1 | 2021-06-29T06:07:42.000Z | 2021-06-29T06:07:42.000Z | LiveUpdate/ProgressBar/ProgressCtrlX.cpp | tsingfun/QuoteClient | 180f5049e813cb8221d357c4db916cc79c7c9e02 | [
"Apache-2.0"
] | null | null | null | LiveUpdate/ProgressBar/ProgressCtrlX.cpp | tsingfun/QuoteClient | 180f5049e813cb8221d357c4db916cc79c7c9e02 | [
"Apache-2.0"
] | 2 | 2020-12-17T11:46:52.000Z | 2021-05-02T16:53:04.000Z | //####################################################################
// Comments: 在Yury Goltsman版本的基础上修改
//
// UpdateLogs:
//####################################################################
///////////////////////////////////////////////////////////////////////////////
// class CProgressCtrlX
//
// Author: Yur... | 27.83631 | 134 | 0.668609 | tsingfun |
72c4a2dfc277ba02f62d63126eaea0dca3a3cb68 | 1,853 | cpp | C++ | speex_resampler_cpp/src/resampler_function.cpp | camlorn/audio_io | 0bc3ec765a0ace45f9757f1e9fa51fb8bfaef87d | [
"Unlicense"
] | null | null | null | speex_resampler_cpp/src/resampler_function.cpp | camlorn/audio_io | 0bc3ec765a0ace45f9757f1e9fa51fb8bfaef87d | [
"Unlicense"
] | 1 | 2015-08-17T18:37:37.000Z | 2015-09-02T16:33:08.000Z | speex_resampler_cpp/src/resampler_function.cpp | camlorn/audio_io | 0bc3ec765a0ace45f9757f1e9fa51fb8bfaef87d | [
"Unlicense"
] | null | null | null | #include <speex_resampler_cpp.hpp>
#include <algorithm>
#include <math.h>
#include "speex_resampler.h"
namespace speex_resampler_cpp {
void staticResampler(int inputSr, int outputSr, int channels, int frames, float* data, int *outLength, float** outData) {
if(inputSr== outputSr) { //copy
float* o = (float*)calloc(... | 37.816327 | 121 | 0.738262 | camlorn |
72c5b8a8d81382f59a4dac9369a8bc2ff525608d | 10,141 | cpp | C++ | device/hatsign/src/default-prog.cpp | zostay/Mysook | 3611ddf0a116d18ebc58a3050f9fe35c2684c906 | [
"Artistic-2.0"
] | 3 | 2019-06-30T04:15:18.000Z | 2019-12-19T17:32:07.000Z | device/hatsign/src/default-prog.cpp | zostay/Mysook | 3611ddf0a116d18ebc58a3050f9fe35c2684c906 | [
"Artistic-2.0"
] | null | null | null | device/hatsign/src/default-prog.cpp | zostay/Mysook | 3611ddf0a116d18ebc58a3050f9fe35c2684c906 | [
"Artistic-2.0"
] | null | null | null | #include <inttypes.h>
#include "ops.h"
// Sterling - ZipRecruiter
// uint32_t PROGRAM_MAIN = 1;
// uint32_t default_program[] = {
// OP_SUB, 1, OP_PUSH, 16777215, OP_PUSH, 0, OP_PUSH, 0, OP_PUSH, 2, OP_URGENCY,
// OP_PUSH, 75, OP_BRIGHTNESS, OP_SUB, 2, OP_RAND, OP_PUSH, 12632256, OP_OR,
// OP_PUSH, 0, OP_W... | 67.15894 | 85 | 0.688492 | zostay |
72c9819da8197c0addbfddc5f681bedb8a9e996f | 3,587 | hpp | C++ | include/aluminum/utils/meta.hpp | shjwudp/Aluminum | 046c209adc160522ee557ad5022fe372b738d38a | [
"Apache-2.0"
] | 48 | 2018-09-28T22:09:25.000Z | 2021-11-18T05:24:53.000Z | include/aluminum/utils/meta.hpp | PrisdxMeany/Aluminum | 49dbbde15ea2202eb0fe246da73ccf39df59e2e2 | [
"Apache-2.0"
] | 51 | 2018-09-26T21:03:50.000Z | 2021-11-12T18:21:12.000Z | include/aluminum/utils/meta.hpp | PrisdxMeany/Aluminum | 49dbbde15ea2202eb0fe246da73ccf39df59e2e2 | [
"Apache-2.0"
] | 19 | 2018-09-14T23:01:53.000Z | 2021-08-12T04:13:18.000Z | ////////////////////////////////////////////////////////////////////////////////
// Copyright (c) 2018, Lawrence Livermore National Security, LLC. Produced at the
// Lawrence Livermore National Laboratory in collaboration with University of
// Illinois Urbana-Champaign.
//
// Written by the LBANN Research Team (N. Dry... | 31.464912 | 82 | 0.631168 | shjwudp |
72d9e99cbb1431f3e75514fdf594caad431fd8c9 | 804 | cpp | C++ | hiro/cocoa/widget/table-view-header.cpp | mp-lee/higan | c38a771f2272c3ee10fcb99f031e982989c08c60 | [
"Intel",
"ISC"
] | 38 | 2018-04-05T05:00:05.000Z | 2022-02-06T00:02:02.000Z | hiro/cocoa/widget/table-view-header.cpp | mp-lee/higan | c38a771f2272c3ee10fcb99f031e982989c08c60 | [
"Intel",
"ISC"
] | 1 | 2018-04-29T19:45:14.000Z | 2018-04-29T19:45:14.000Z | hiro/cocoa/widget/table-view-header.cpp | libretro-mirrors/higan | 8617711ea2c201a33442266945dc7ed186e9d695 | [
"Intel",
"ISC"
] | 8 | 2018-04-16T22:37:46.000Z | 2021-02-10T07:37:03.000Z | #if defined(Hiro_TableView)
namespace hiro {
auto pTableViewHeader::construct() -> void {
}
auto pTableViewHeader::destruct() -> void {
}
auto pTableViewHeader::append(sTableViewColumn column) -> void {
}
auto pTableViewHeader::remove(sTableViewColumn column) -> void {
}
auto pTableViewHeader::setVisible(bool vis... | 20.615385 | 103 | 0.671642 | mp-lee |
72e2dab59273a1f989931518b23f7c1e4c753bfd | 1,835 | cpp | C++ | Tests/TestsRosicAndRapt/Source/rosic_tests/PortedFromRSLib/RSLib/Core/Misc/Parameter.cpp | RobinSchmidt/RS-MET-Preliminary | 6c01cbaad7cce3daa3293c444dd9e4b74e5ebfbe | [
"FTL"
] | 34 | 2017-04-19T18:26:02.000Z | 2022-02-15T17:47:26.000Z | Tests/TestsRosicAndRapt/Source/rosic_tests/PortedFromRSLib/RSLib/Core/Misc/Parameter.cpp | RobinSchmidt/RS-MET-Preliminary | 6c01cbaad7cce3daa3293c444dd9e4b74e5ebfbe | [
"FTL"
] | 307 | 2017-05-04T21:45:01.000Z | 2022-02-03T00:59:01.000Z | Tests/TestsRosicAndRapt/Source/rosic_tests/PortedFromRSLib/RSLib/Core/Misc/Parameter.cpp | RobinSchmidt/RS-MET-Preliminary | 6c01cbaad7cce3daa3293c444dd9e4b74e5ebfbe | [
"FTL"
] | 4 | 2017-09-05T17:04:31.000Z | 2021-12-15T21:24:28.000Z | #include "Parameter.h" // remove later
// construction/destruction:
rsNumericParameter::rsNumericParameter()
{
toString = &rsDoubleToString2;
value = 0.0;
defaultValue = 0.0;
normalizedValue = 0.0;
mapper = new rsRealLinearMap;
}
rsNumericParameter::rsNumericParameter(const rsS... | 23.831169 | 95 | 0.712807 | RobinSchmidt |
72e480dffb4efaead0f6530a81f6392b9f2db015 | 1,250 | cpp | C++ | Sourcecode/private/mx/api/EncodingData.cpp | Webern/MxOld | 822f5ccc92363ddff118e3aa3a048c63be1e857e | [
"MIT"
] | 45 | 2019-04-16T19:55:08.000Z | 2022-02-14T02:06:32.000Z | Sourcecode/private/mx/api/EncodingData.cpp | Webern/MxOld | 822f5ccc92363ddff118e3aa3a048c63be1e857e | [
"MIT"
] | 70 | 2019-04-07T22:45:21.000Z | 2022-03-03T15:35:59.000Z | Sourcecode/private/mx/api/EncodingData.cpp | Webern/MxOld | 822f5ccc92363ddff118e3aa3a048c63be1e857e | [
"MIT"
] | 21 | 2019-05-13T13:59:06.000Z | 2022-03-25T02:21:05.000Z | // MusicXML Class Library
// Copyright (c) by Matthew James Briggs
// Distributed under the MIT License
#include "mx/api/EncodingData.h"
#include "mx/core/Date.h"
namespace mx
{
namespace api
{
////////////////////////////////////////////////////////////////////////////////
// CTOR AND COPY /////////////////... | 32.894737 | 80 | 0.264 | Webern |
72e853517c358ae7609e5785e4db3a31aed22f98 | 5,117 | cpp | C++ | ext/oxt/backtrace.cpp | halorgium/passenger | 6d64144b1c57e5b7788537fe07dca1f3e9e7c388 | [
"MIT"
] | 2 | 2016-05-09T12:12:02.000Z | 2016-06-28T08:44:36.000Z | ext/oxt/backtrace.cpp | halorgium/passenger | 6d64144b1c57e5b7788537fe07dca1f3e9e7c388 | [
"MIT"
] | null | null | null | ext/oxt/backtrace.cpp | halorgium/passenger | 6d64144b1c57e5b7788537fe07dca1f3e9e7c388 | [
"MIT"
] | null | null | null | /*
* OXT - OS eXtensions for boosT
* Provides important functionality necessary for writing robust server software.
*
* Copyright (c) 2008 Phusion
*
* 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... | 29.073864 | 94 | 0.712722 | halorgium |
639ff0032cd315b1bed5851fb1959b871aeb538a | 4,602 | cpp | C++ | tests/Matrix/Basic_op_test.cpp | eHonnef/Mafs | f78e40f485e6d044600ec932ced3e4c4de3509b9 | [
"MIT"
] | 1 | 2022-01-17T00:46:33.000Z | 2022-01-17T00:46:33.000Z | tests/Matrix/Basic_op_test.cpp | eHonnef/Mafs | f78e40f485e6d044600ec932ced3e4c4de3509b9 | [
"MIT"
] | null | null | null | tests/Matrix/Basic_op_test.cpp | eHonnef/Mafs | f78e40f485e6d044600ec932ced3e4c4de3509b9 | [
"MIT"
] | null | null | null | #include <doctest/doctest.h>
#include <mafs/Matrix/basic_op.cc>
typedef basic_op OP;
TEST_CASE("Matrix transposition") {
Matrix<int> a({{0, 1, 2}, {3, 4, 5}});
Matrix<int> b = OP::transpose(a);
// {0,3}
// {1,4}
// {2,5}
REQUIRE(b.rows() == 3);
REQUIRE(b.cols() == 2);
REQUIRE(b.at(0, 0) == 0);
REQUI... | 29.312102 | 92 | 0.547588 | eHonnef |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.