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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
46f870a5ccfe3c9e560ab0b5a011273393cd1b42 | 492 | cpp | C++ | Camp_1-2563/Problems/Anyway.cpp | MasterIceZ/POSN_BUU | 56e176fb843d7ddcee0cf4acf2bb141576c260cf | [
"MIT"
] | null | null | null | Camp_1-2563/Problems/Anyway.cpp | MasterIceZ/POSN_BUU | 56e176fb843d7ddcee0cf4acf2bb141576c260cf | [
"MIT"
] | null | null | null | Camp_1-2563/Problems/Anyway.cpp | MasterIceZ/POSN_BUU | 56e176fb843d7ddcee0cf4acf2bb141576c260cf | [
"MIT"
] | null | null | null | #include<bits/stdc++.h>
using namespace std;
#define endl '\n'
int dp[1010][1010];
int main (){
ios::sync_with_stdio(0);
cin.tie(0);
int x, y, k;
cin >> x >> y >> k;
while(k--){
int a, b;
cin >> a >> b;
dp[a+1][b+1] = -1;
}
x++, y++;
dp[1][0] = 1;
for(int i=1; i<=x; ++i){
for(int j=1; j<=y; ++j){
... | 14.057143 | 39 | 0.434959 | MasterIceZ |
46fc372a48840546fae2a5dc74795e817650969f | 238 | cpp | C++ | In-Class Excercise/170319/Program 3/Program-3.cpp | skyclasher/Teknik-Pengaturcaraan-2 | 4895824d8c1a70654c312fd793c860cb8f05f12c | [
"Apache-2.0"
] | null | null | null | In-Class Excercise/170319/Program 3/Program-3.cpp | skyclasher/Teknik-Pengaturcaraan-2 | 4895824d8c1a70654c312fd793c860cb8f05f12c | [
"Apache-2.0"
] | null | null | null | In-Class Excercise/170319/Program 3/Program-3.cpp | skyclasher/Teknik-Pengaturcaraan-2 | 4895824d8c1a70654c312fd793c860cb8f05f12c | [
"Apache-2.0"
] | null | null | null | #include <iostream>
using namespace std;
int main()
{
int numbers[] = {
10,20,30,40,50
};
int *valnumbers = numbers;
for(int i = 0; i < 5; i++){
cout << "Element-" << i << " : " << *(valnumbers+i) << endl;
}
return 0;
} | 14 | 63 | 0.521008 | skyclasher |
2002de30a313f7d7db009663b8c1816227167e62 | 7,594 | cpp | C++ | Src/oDLNode.cpp | BastiaanOlij/omnis.xcomp.widget | 629b203f4bd6d1e1e408f1b2ed3de4eaf45d0e1a | [
"MIT"
] | 1 | 2018-08-09T23:44:54.000Z | 2018-08-09T23:44:54.000Z | Src/oDLNode.cpp | BastiaanOlij/omnis.xcomp.widget | 629b203f4bd6d1e1e408f1b2ed3de4eaf45d0e1a | [
"MIT"
] | 2 | 2015-01-20T03:51:53.000Z | 2020-03-27T04:45:38.000Z | Src/oDLNode.cpp | BastiaanOlij/omnis.xcomp.widget | 629b203f4bd6d1e1e408f1b2ed3de4eaf45d0e1a | [
"MIT"
] | 1 | 2018-09-13T05:07:08.000Z | 2018-09-13T05:07:08.000Z | /*
* omnis.xcomp.widget
* ===================
*
* oDLNode.cpp
* Implementation of our datalist node object
*
* Bastiaan Olij
*/
#include "oDLNode.h"
oDLNode::oDLNode(void) {
mTouched = true;
mExpanded = true;
mLineNo = 0;
mValue = QTEXT("");
mDescription = QTEXT("");
mTop = 0;
mBottom = ... | 22.204678 | 144 | 0.628523 | BastiaanOlij |
200785b3c06f7560ce9fe52f56e1ee08a28ef401 | 52 | cpp | C++ | Xlet.Wallet/lib/Xlet.Crypto.Base/src/ICrypto.cpp | MattPearce/xlet | e0f64f231e627d0cc52f3c032e66f59a63b2942f | [
"MIT"
] | 3 | 2020-11-29T03:14:36.000Z | 2021-04-14T16:45:46.000Z | Xlet.Wallet/lib/Xlet.Crypto.Base/src/ICrypto.cpp | MattPearce/xlet | e0f64f231e627d0cc52f3c032e66f59a63b2942f | [
"MIT"
] | 2 | 2020-06-18T18:45:00.000Z | 2020-06-26T08:04:43.000Z | Xlet.Wallet/lib/Xlet.Crypto.Base/src/ICrypto.cpp | MattPearce/xlet | e0f64f231e627d0cc52f3c032e66f59a63b2942f | [
"MIT"
] | 3 | 2020-11-30T21:04:50.000Z | 2021-05-04T18:14:39.000Z | #include "ICrypto.h"
// Dummy file to trigger build | 17.333333 | 30 | 0.730769 | MattPearce |
2007d5f8480343b29a44f164ffe86abf8f193587 | 18,302 | cpp | C++ | Algorithm/cloth/graph/Graph2Mesh.cpp | dolphin-li/ClothDesigner | 82b186d6db320b645ac67a4d32d7746cc9bdd391 | [
"MIT"
] | 32 | 2016-12-13T05:49:12.000Z | 2022-02-04T06:15:47.000Z | Algorithm/cloth/graph/Graph2Mesh.cpp | dolphin-li/ClothDesigner | 82b186d6db320b645ac67a4d32d7746cc9bdd391 | [
"MIT"
] | 2 | 2019-07-30T02:01:16.000Z | 2020-03-12T15:06:51.000Z | Algorithm/cloth/graph/Graph2Mesh.cpp | dolphin-li/ClothDesigner | 82b186d6db320b645ac67a4d32d7746cc9bdd391 | [
"MIT"
] | 18 | 2017-11-16T13:37:06.000Z | 2022-03-11T08:13:46.000Z | #include "Graph2Mesh.h"
#include "ldpMat\ldp_basic_mat.h"
#include "cloth\clothPiece.h"
#include "cloth\graph\Graph.h"
#include "cloth\graph\GraphsSewing.h"
#include "cloth\graph\AbstractGraphCurve.h"
#include "cloth\graph\GraphLoop.h"
#include "cloth\TransformInfo.h"
#include "Renderable\ObjMesh.h"
#include "kdtree\Po... | 29.75935 | 114 | 0.616217 | dolphin-li |
20114f1841275e0a483482039adcf422ed3b05df | 4,990 | cc | C++ | bindings/name_parser/src/wrapper.cc | MannPE/KawAnime | 1829b94752a3cf01773d7d360adb2c18e528fcc8 | [
"MIT"
] | 611 | 2016-11-21T19:56:50.000Z | 2022-03-29T11:17:41.000Z | bindings/name_parser/src/wrapper.cc | MannPE/KawAnime | 1829b94752a3cf01773d7d360adb2c18e528fcc8 | [
"MIT"
] | 83 | 2017-03-14T13:41:17.000Z | 2021-12-31T00:35:24.000Z | bindings/name_parser/src/wrapper.cc | MannPE/KawAnime | 1829b94752a3cf01773d7d360adb2c18e528fcc8 | [
"MIT"
] | 88 | 2016-11-23T18:55:49.000Z | 2022-03-20T21:52:53.000Z | /**
* Copyright (c) 2019 Kylart <kylart.dev@gmail.com>
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, mod... | 38.091603 | 109 | 0.732465 | MannPE |
201365bb54c96707e73182e1b032f8ec7a0bf4ad | 859 | cpp | C++ | GeneralLambda/main.cpp | colorhistory/cplusplus-general-programming | 3ece924a2ab34711a55a45bc41e2b74384956204 | [
"MIT"
] | 1 | 2019-09-28T09:40:08.000Z | 2019-09-28T09:40:08.000Z | GeneralLambda/main.cpp | colorhistory/cplusplus-general-programming | 3ece924a2ab34711a55a45bc41e2b74384956204 | [
"MIT"
] | null | null | null | GeneralLambda/main.cpp | colorhistory/cplusplus-general-programming | 3ece924a2ab34711a55a45bc41e2b74384956204 | [
"MIT"
] | null | null | null | /****************************************************************************
**
** Copyright (C) 2019 Xiaohai <xiaohaidotpro@outlook.com>.
** Contact: http://xiaohai.pro
**
** This file is part of cplusplus-general-programming
**
**
****************************************************************************/
#inclu... | 26.84375 | 78 | 0.472643 | colorhistory |
20136fd33f8a6de8aa469ce2b8381ec120ea1036 | 1,873 | cpp | C++ | examples/src/jmespath_examples.cpp | stac47/jsoncons | b9e95d6a0bcb2dc8a821d33f98a530f10cfe1bc0 | [
"BSL-1.0"
] | 507 | 2015-01-05T18:50:55.000Z | 2022-03-30T16:50:10.000Z | examples/src/jmespath_examples.cpp | stac47/jsoncons | b9e95d6a0bcb2dc8a821d33f98a530f10cfe1bc0 | [
"BSL-1.0"
] | 272 | 2015-01-20T13:09:19.000Z | 2022-03-28T18:00:37.000Z | examples/src/jmespath_examples.cpp | stac47/jsoncons | b9e95d6a0bcb2dc8a821d33f98a530f10cfe1bc0 | [
"BSL-1.0"
] | 140 | 2015-01-14T01:11:37.000Z | 2022-03-29T08:35:35.000Z | // Copyright 2013 Daniel Parker
// Distributed under Boost license
#include <string>
#include <fstream>
#include <cassert>
#include <jsoncons/json.hpp>
#include <jsoncons_ext/jmespath/jmespath.hpp>
// for brevity
using jsoncons::json;
namespace jmespath = jsoncons::jmespath;
namespace {
void search_example()
... | 22.841463 | 106 | 0.444207 | stac47 |
2015342d012b4d4225138d767087faaeb1a7e43f | 5,813 | cpp | C++ | source/Game/GameStateMachine.cpp | GrimshawA/Nephilim | 1e69df544078b55fdaf58a04db963e20094f27a9 | [
"Zlib"
] | 19 | 2015-12-19T11:15:57.000Z | 2022-03-09T11:22:11.000Z | source/Game/GameStateMachine.cpp | DevilWithin/Nephilim | 1e69df544078b55fdaf58a04db963e20094f27a9 | [
"Zlib"
] | 1 | 2017-05-17T09:31:10.000Z | 2017-05-19T17:01:31.000Z | source/Game/GameStateMachine.cpp | GrimshawA/Nephilim | 1e69df544078b55fdaf58a04db963e20094f27a9 | [
"Zlib"
] | 3 | 2015-12-14T17:40:26.000Z | 2021-02-25T00:42:42.000Z | #include <Nephilim/Game/GameStateMachine.h>
#include <Nephilim/Foundation/String.h>
#include <Nephilim/Animation/StateTransition.h>
#include <Nephilim/Game/GameState.h>
#include <Nephilim/Foundation/Time.h>
#include <Nephilim/Foundation/Logging.h>
#include <algorithm>
NEPHILIM_NS_BEGIN
GameStateMachine::GameStateM... | 19.705085 | 100 | 0.678995 | GrimshawA |
2016a7caab731eb69a5a9e8c8e4fe423ee941fd4 | 938 | hpp | C++ | src/cuda/api/miscellany.hpp | xandox/cuda-api-wrappers | 6c9a02302c1cbd8c6832bf7ca342d83bd951e10e | [
"BSD-3-Clause"
] | 1 | 2020-09-16T10:28:06.000Z | 2020-09-16T10:28:06.000Z | src/cuda/api/miscellany.hpp | xandox/cuda-api-wrappers | 6c9a02302c1cbd8c6832bf7ca342d83bd951e10e | [
"BSD-3-Clause"
] | null | null | null | src/cuda/api/miscellany.hpp | xandox/cuda-api-wrappers | 6c9a02302c1cbd8c6832bf7ca342d83bd951e10e | [
"BSD-3-Clause"
] | 1 | 2020-11-17T19:49:06.000Z | 2020-11-17T19:49:06.000Z | /**
* @file miscellany.hpp
*
* @brief Miscellaneous functionality which does not fit in another file
*
*/
#ifndef CUDA_API_WRAPPERS_MISCELLANY_HPP_
#define CUDA_API_WRAPPERS_MISCELLANY_HPP_
#include "error.hpp"
#include <cuda_runtime_api.h>
namespace cuda {
/**
* @brief Ensures the CUDA runtime has fully init... | 26.055556 | 77 | 0.759062 | xandox |
20196c10e5889ab91bd757ec4b47ad4a794fd8a7 | 3,861 | cpp | C++ | data-structures/SkipList.cpp | Tumilok/algorithms-and-data-structures | c4d774ecb867a8cd130da8370ec4d782b698ecef | [
"MIT"
] | null | null | null | data-structures/SkipList.cpp | Tumilok/algorithms-and-data-structures | c4d774ecb867a8cd130da8370ec4d782b698ecef | [
"MIT"
] | null | null | null | data-structures/SkipList.cpp | Tumilok/algorithms-and-data-structures | c4d774ecb867a8cd130da8370ec4d782b698ecef | [
"MIT"
] | null | null | null | //
// created by Uladzislau Tumilovich
//
#include "SkipList.h"
// Function checks whether skiplist is empty or not
bool is_SkipListEmpty(SkipList skiplist)
{
return skiplist.first == NULL || skiplist.first->next[0] == skiplist.last ? true : false;
}
// Function gives a random integer - 0 or 1
int randomiser()
{... | 23.4 | 93 | 0.61927 | Tumilok |
201b1957cad8c7e2a53ced79a9f75ae004469b38 | 7,352 | cpp | C++ | Tools/ArcaneLab/Src/UI/AssetBrowserPanel.cpp | AustinLynes/Arcana-Tools | ce585d552e30174c4c629a9ea05e7f83947499a5 | [
"Apache-2.0"
] | null | null | null | Tools/ArcaneLab/Src/UI/AssetBrowserPanel.cpp | AustinLynes/Arcana-Tools | ce585d552e30174c4c629a9ea05e7f83947499a5 | [
"Apache-2.0"
] | null | null | null | Tools/ArcaneLab/Src/UI/AssetBrowserPanel.cpp | AustinLynes/Arcana-Tools | ce585d552e30174c4c629a9ea05e7f83947499a5 | [
"Apache-2.0"
] | null | null | null | #include "AssetBrowserPanel.h"
#include "../OutlineLayer.h"
namespace ArcanaTools {
void AssetBrowserPanel::OnAttach()
{
//m_path = s_AssetPath;
icons["back_arrow"] = reinterpret_cast<ImTextureID>(Texture2D::Create("resources/icons/back_arrow.png", false)->GetTextureID());
icons["forward_arrow"] = reinterpr... | 29.059289 | 136 | 0.637922 | AustinLynes |
2023ea5767968ee25084d5ac7a932ef63c47dd20 | 702 | hpp | C++ | include/memory/hadesmem/detail/last_error_preserver.hpp | CvX/hadesmem | d2c5164cc753dac37879ac8079f2ae23f2b8edb5 | [
"MIT"
] | 24 | 2018-08-18T18:05:37.000Z | 2021-09-28T00:26:35.000Z | include/memory/hadesmem/detail/last_error_preserver.hpp | CvX/hadesmem | d2c5164cc753dac37879ac8079f2ae23f2b8edb5 | [
"MIT"
] | null | null | null | include/memory/hadesmem/detail/last_error_preserver.hpp | CvX/hadesmem | d2c5164cc753dac37879ac8079f2ae23f2b8edb5 | [
"MIT"
] | 9 | 2018-04-16T09:53:09.000Z | 2021-02-26T05:04:49.000Z | // Copyright (C) 2010-2014 Joshua Boyce.
// See the file COPYING for copying permission.
#pragma once
#include <windows.h>
#include <hadesmem/config.hpp>
namespace hadesmem
{
namespace detail
{
class LastErrorPreserver
{
public:
LastErrorPreserver() HADESMEM_DETAIL_NOEXCEPT : last_error_(::GetLastError())
{
}... | 15.6 | 79 | 0.717949 | CvX |
20288356961c2e2b05b4297ee8b08cf3e2e71520 | 7,228 | cpp | C++ | source/DCHTTPConnection.cpp | HaikuArchives/BeDC | cf2f67fba574e934a06026c66b4f4298470716c8 | [
"BSD-3-Clause"
] | null | null | null | source/DCHTTPConnection.cpp | HaikuArchives/BeDC | cf2f67fba574e934a06026c66b4f4298470716c8 | [
"BSD-3-Clause"
] | null | null | null | source/DCHTTPConnection.cpp | HaikuArchives/BeDC | cf2f67fba574e934a06026c66b4f4298470716c8 | [
"BSD-3-Clause"
] | null | null | null | /*
----------------------
BeDC License
----------------------
Copyright 2002, The BeDC team.
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions
are met:
1. Redistributions of source code must retain the above copy... | 23.543974 | 100 | 0.68622 | HaikuArchives |
202a531ae2d065264efac61f259af74cec73ebaa | 1,970 | cpp | C++ | src/SolarChargeSystem/lib/AsyncLTE/AsyncLTEResult.cpp | jack96013/Solar-Charge-System | e64c5fece5bff9b7a7f1c7d9b92235ed9e391812 | [
"MIT"
] | null | null | null | src/SolarChargeSystem/lib/AsyncLTE/AsyncLTEResult.cpp | jack96013/Solar-Charge-System | e64c5fece5bff9b7a7f1c7d9b92235ed9e391812 | [
"MIT"
] | null | null | null | src/SolarChargeSystem/lib/AsyncLTE/AsyncLTEResult.cpp | jack96013/Solar-Charge-System | e64c5fece5bff9b7a7f1c7d9b92235ed9e391812 | [
"MIT"
] | null | null | null |
#include "AsyncLTEResult.h"
AsyncLTEResultBase::AsyncLTEResultBase()
{
}
void AsyncLTEResultBase::start()
{
status = WAIT;
}
void AsyncLTEResultBase::setOnReceived(Handler handler, void *arg)
{
this->handler = handler;
this->arg = arg;
}
bool AsyncLTEResultBase::isReceived()
{
return status == R... | 15.634921 | 66 | 0.66802 | jack96013 |
202bec087b184bc36d58987e5e2310aa1ef770d3 | 294 | cpp | C++ | src/solutions/28.cpp | bshankar/euler | c866a661a94d15d3744c74d85149534efac2ca23 | [
"MIT"
] | null | null | null | src/solutions/28.cpp | bshankar/euler | c866a661a94d15d3744c74d85149534efac2ca23 | [
"MIT"
] | null | null | null | src/solutions/28.cpp | bshankar/euler | c866a661a94d15d3744c74d85149534efac2ca23 | [
"MIT"
] | null | null | null | #include <iostream>
using namespace std;
int main() {
int inc = 2, sum = 1, k = 1;
int mod = 0;
while (k < 1001*1001) {
k += inc;
sum += k;
++mod;
if (mod == 4) {
mod = 0;
inc += 2;
}
}
cout << sum << endl;
}
| 16.333333 | 32 | 0.370748 | bshankar |
45c9e12fc1a33442d25ac7ea5b13844f0bedd487 | 2,222 | hpp | C++ | include/sql/fusion/create_table_stmt.hpp | cviebig/lib-sql | fed42f80b5866503c5f5710d791feec213c051a1 | [
"MIT"
] | 4 | 2017-09-25T00:03:31.000Z | 2020-04-02T07:06:24.000Z | include/sql/fusion/create_table_stmt.hpp | cviebig/lib-sql | fed42f80b5866503c5f5710d791feec213c051a1 | [
"MIT"
] | 1 | 2018-05-16T20:00:42.000Z | 2018-05-30T13:21:20.000Z | include/sql/fusion/create_table_stmt.hpp | cviebig/lib-sql | fed42f80b5866503c5f5710d791feec213c051a1 | [
"MIT"
] | 1 | 2022-01-05T20:49:47.000Z | 2022-01-05T20:49:47.000Z | #ifndef SQL_PARSER_FUSION_CREATE_TABLE_STMT_HPP
#define SQL_PARSER_FUSION_CREATE_TABLE_STMT_HPP
#include "sql/ast/create_table_stmt.hpp"
#include <boost/fusion/include/adapt_struct.hpp>
BOOST_FUSION_ADAPT_STRUCT(sql::ast::type_name,
(std::string, name)
(boost::option... | 36.42623 | 88 | 0.60171 | cviebig |
45ca2a05da87fca129e113e5729df71b6c3d126b | 739 | c++ | C++ | GeeksForGeeks/Array/Easy/WaveArray.c++ | Chirag-Juneja/Algo | 5006332e9ea1f77f941e3fa45962813dbe9399a6 | [
"MIT"
] | 1 | 2021-08-13T21:54:40.000Z | 2021-08-13T21:54:40.000Z | GeeksForGeeks/Array/Easy/WaveArray.c++ | Chirag-Juneja/Algo | 5006332e9ea1f77f941e3fa45962813dbe9399a6 | [
"MIT"
] | null | null | null | GeeksForGeeks/Array/Easy/WaveArray.c++ | Chirag-Juneja/Algo | 5006332e9ea1f77f941e3fa45962813dbe9399a6 | [
"MIT"
] | null | null | null | /*
Given a sorted array arr[] of distinct integers. Sort the array into a wave-like array and return it
In other words, arrange the elements into a sequence such that arr[1] >= arr[2] <= arr[3] >= arr[4] <= arr[5].....
Example 1:
Input:
n = 5
arr[] = {1,2,3,4,5}
Output: 2 1 4 3 5
Explanation: Array elements after
so... | 20.527778 | 114 | 0.584574 | Chirag-Juneja |
45cb59a69e420a979aa3e13e0e3d031d70aea5e8 | 2,525 | cpp | C++ | AkameCore/Source Files/Rendering/System/BuiltInShaderPipelines/DeferredPipeline.cpp | SudharsanZen/Akame | 376efe3929e4426e6dc01440ab9f6aa3e8dcb2bf | [
"Apache-2.0"
] | 2 | 2022-03-30T20:58:58.000Z | 2022-03-31T02:06:17.000Z | AkameCore/Source Files/Rendering/System/BuiltInShaderPipelines/DeferredPipeline.cpp | SudharsanZen/Akame | 376efe3929e4426e6dc01440ab9f6aa3e8dcb2bf | [
"Apache-2.0"
] | null | null | null | AkameCore/Source Files/Rendering/System/BuiltInShaderPipelines/DeferredPipeline.cpp | SudharsanZen/Akame | 376efe3929e4426e6dc01440ab9f6aa3e8dcb2bf | [
"Apache-2.0"
] | null | null | null | #include<sstream>
#include "Rendering/System/DeferredPipeline.h"
#pragma warning(push, 0)
#include<glad/glad.h>
#include<GLFW/glfw3.h>
#pragma warning(pop)
DeferredPipeline::DeferredPipeline(int height, int width)
{
drfb.updateBufferSize(height, width);
}
void DeferredPipeline::WindowsResizeCallBacks(int height, i... | 31.5625 | 131 | 0.739406 | SudharsanZen |
45d2f25b6dbcea645a1fe0cea3265b8589bf917e | 6,922 | c++ | C++ | map/hidimMapActor.c++ | camilleg/vss | 27f1c8f73f8d7ef2d4e5de077e4b2ed7e4f72803 | [
"MIT"
] | null | null | null | map/hidimMapActor.c++ | camilleg/vss | 27f1c8f73f8d7ef2d4e5de077e4b2ed7e4f72803 | [
"MIT"
] | null | null | null | map/hidimMapActor.c++ | camilleg/vss | 27f1c8f73f8d7ef2d4e5de077e4b2ed7e4f72803 | [
"MIT"
] | null | null | null | #include "mapActor.h"
HidimMapActor::HidimMapActor() :
dimLo(0),
dimHi(0),
cpt(0),
rgzLo(NULL),
rgzHi(NULL)
{
}
HidimMapActor::~HidimMapActor()
{
if (rgzLo)
delete [] rgzLo;
if (rgzHi)
delete [] rgzHi;
}
// LoadFile
//
// Read a map file with the following format:
// # of dimensions of low space
// # of d... | 21.039514 | 111 | 0.636232 | camilleg |
45da991d2633875e338bf2442d9dc452935ddf79 | 1,298 | cpp | C++ | codeforces/G1 - Playlist for Polycarp (easy version)/Accepted.cpp | kzvd4729/Problem-Solving | 13b105e725a4c2f8db7fecc5d7a8f932b9fef4ab | [
"MIT"
] | 1 | 2022-02-11T16:55:36.000Z | 2022-02-11T16:55:36.000Z | codeforces/G1 - Playlist for Polycarp (easy version)/Accepted.cpp | kzvd4729/Problem-Solving | 13b105e725a4c2f8db7fecc5d7a8f932b9fef4ab | [
"MIT"
] | null | null | null | codeforces/G1 - Playlist for Polycarp (easy version)/Accepted.cpp | kzvd4729/Problem-Solving | 13b105e725a4c2f8db7fecc5d7a8f932b9fef4ab | [
"MIT"
] | null | null | null | /****************************************************************************************
* @author: kzvd4729 created: Jul/08/2019 02:16
* solution_verdict: Accepted language: GNU C++14
* run... | 35.081081 | 111 | 0.430663 | kzvd4729 |
45dc021ef9732c9f79d722e9acd25ff0a3bf6ddc | 1,643 | cpp | C++ | src/model/opengl/VertexArray.cpp | XantNero/Courseproject-Modelling-road-traffic- | f0aae780935d4ac9ed30d8b50b965813b6a60632 | [
"MIT"
] | null | null | null | src/model/opengl/VertexArray.cpp | XantNero/Courseproject-Modelling-road-traffic- | f0aae780935d4ac9ed30d8b50b965813b6a60632 | [
"MIT"
] | null | null | null | src/model/opengl/VertexArray.cpp | XantNero/Courseproject-Modelling-road-traffic- | f0aae780935d4ac9ed30d8b50b965813b6a60632 | [
"MIT"
] | null | null | null | #include "VertexArray.h"
#include <GL/glew.h>
#include "debug.h"
VertexArray::VertexArray()
{
GLCall(glGenVertexArrays(1, &m_RendererID));
}
VertexArray::~VertexArray()
{
GLCall(glDeleteVertexArrays(1, &m_RendererID));
}
void VertexArray::bind() const
{
GLCall(glBindVertexArray(m_RendererID));
}
void Ve... | 29.339286 | 155 | 0.678028 | XantNero |
45dc1acf36d067e88b1ba7f3e4afde9bc478d1f4 | 732 | cpp | C++ | lib/Frontend/CXTextDiagnosticPrinter.cpp | Gnimuc/libclangex | 3d519fba37210d06578b10ea9bdb1d496be0e9d0 | [
"Apache-2.0",
"MIT-0",
"MIT"
] | 1 | 2022-01-11T00:49:42.000Z | 2022-01-11T00:49:42.000Z | lib/Frontend/CXTextDiagnosticPrinter.cpp | Gnimuc/libclangex | 3d519fba37210d06578b10ea9bdb1d496be0e9d0 | [
"Apache-2.0",
"MIT-0",
"MIT"
] | 4 | 2021-08-01T06:07:06.000Z | 2022-02-04T14:14:15.000Z | lib/Frontend/CXTextDiagnosticPrinter.cpp | Gnimuc/libclangex | 3d519fba37210d06578b10ea9bdb1d496be0e9d0 | [
"Apache-2.0",
"MIT-0",
"MIT"
] | null | null | null | #include "clang-ex/Frontend/CXTextDiagnosticPrinter.h"
#include "clang/Frontend/TextDiagnosticPrinter.h"
#include "llvm/Support/raw_ostream.h"
CXDiagnosticConsumer clang_TextDiagnosticPrinter_create(CXDiagnosticOptions Opts,
CXInit_Error *ErrorCode) {
CXInit_Er... | 33.272727 | 91 | 0.688525 | Gnimuc |
45dee87dcf3529cb2500058cb997d8ffef5b655a | 403 | cpp | C++ | Network_dll/src/Network.cpp | BenjaminViranin/Network-Library | 0c5c05d8d8f050facf4a6a34bfdc9882477fb8ee | [
"MIT"
] | null | null | null | Network_dll/src/Network.cpp | BenjaminViranin/Network-Library | 0c5c05d8d8f050facf4a6a34bfdc9882477fb8ee | [
"MIT"
] | null | null | null | Network_dll/src/Network.cpp | BenjaminViranin/Network-Library | 0c5c05d8d8f050facf4a6a34bfdc9882477fb8ee | [
"MIT"
] | null | null | null | #include "../include/Network.h"
Network::Network()
{
Init();
}
Network::~Network()
{
Destroy();
}
int Network::Init()
{
int err = WSAStartup(MAKEWORD(2, 2), &m_wsa);
if (err < 0)
{
std::cout << "WSAStartup failed !" << std::endl;
std::cin.get();
return EXIT_FAILURE;
}
std::cout << ":: Init Network :: ";... | 13.896552 | 50 | 0.585608 | BenjaminViranin |
45df42aaf2c4e4af4f61d0f63a52dd70de033cb8 | 3,179 | hpp | C++ | include/ripple/arch/topology.hpp | robclu/ripple | 734dfa77e100a86b3c60589d41ca627e41d4a783 | [
"MIT"
] | 4 | 2021-04-25T16:38:12.000Z | 2021-12-23T08:32:15.000Z | include/ripple/arch/topology.hpp | robclu/ripple | 734dfa77e100a86b3c60589d41ca627e41d4a783 | [
"MIT"
] | null | null | null | include/ripple/arch/topology.hpp | robclu/ripple | 734dfa77e100a86b3c60589d41ca627e41d4a783 | [
"MIT"
] | null | null | null | /**==--- ripple/arch/topology.hpp -------------------------- -*- C++ -*- ---==**
*
* Ripple
*
* Copyright (c) 2019 - 2021 Rob Clucas.
*
* This file is distributed under the MIT License. See LICENSE for details.
*
*==------------------------------------------------... | 29.435185 | 80 | 0.634476 | robclu |
45dfacd03bb18689548bf9e7b3e6473738583a7c | 1,233 | cpp | C++ | src/ui/page.cpp | demisardonic/battletested | 89f502a721f4d7056a74acd22af9d79c8e3f0dba | [
"MIT"
] | null | null | null | src/ui/page.cpp | demisardonic/battletested | 89f502a721f4d7056a74acd22af9d79c8e3f0dba | [
"MIT"
] | null | null | null | src/ui/page.cpp | demisardonic/battletested | 89f502a721f4d7056a74acd22af9d79c8e3f0dba | [
"MIT"
] | null | null | null | #include <ncurses.h>
#include "ui/page.h"
#include "ui/page_game.h"
#include "ui/ui.h"
Page::Page(UI *ui){
this->parent = ui;
}
AnyKeyPage::AnyKeyPage(UI *ui, Page *next):Page(ui){
nextPage = next;
}
void AnyKeyPage::input(){
getch();
this->parent->change_page(nextPage);
}
void AnyKeyPage::e... | 20.898305 | 98 | 0.459854 | demisardonic |
45e2c9896ed64d297bec34ed7d9c90ed3471c5db | 26,183 | cc | C++ | FELICITY/Static_Codes/AHF/src_code/Mesh.cc | brianchowlab/BcLOV4-FEM | f54bd8efa0e0f2c7ca2de4a6688ef1a403376285 | [
"MIT"
] | null | null | null | FELICITY/Static_Codes/AHF/src_code/Mesh.cc | brianchowlab/BcLOV4-FEM | f54bd8efa0e0f2c7ca2de4a6688ef1a403376285 | [
"MIT"
] | null | null | null | FELICITY/Static_Codes/AHF/src_code/Mesh.cc | brianchowlab/BcLOV4-FEM | f54bd8efa0e0f2c7ca2de4a6688ef1a403376285 | [
"MIT"
] | null | null | null | /*
============================================================================================
Class for array based half-facet (AHF) data structure. This is a sub-class of BaseMesh
which stores a *pointer* to a BasePtCoord object. This way, many different meshes,
of varying topological dimension, can share... | 38.847181 | 199 | 0.612917 | brianchowlab |
45e61a32ceeb77e71341412ab0708f3a04aa3abd | 1,341 | cpp | C++ | CppSTL/Chapter1/operators/op_une.cpp | SebastianTirado/Cpp-Learning-Archive | fb83379d0cc3f9b2390cef00119464ec946753f4 | [
"MIT"
] | 19 | 2019-09-15T12:23:51.000Z | 2020-06-18T08:31:26.000Z | CppSTL/Chapter1/operators/op_une.cpp | SebastianTirado/Cpp-Learning-Archive | fb83379d0cc3f9b2390cef00119464ec946753f4 | [
"MIT"
] | 15 | 2021-12-07T06:46:03.000Z | 2022-01-31T07:55:32.000Z | CppSTL/Chapter1/operators/op_une.cpp | SebastianTirado/Cpp-Learning-Archive | fb83379d0cc3f9b2390cef00119464ec946753f4 | [
"MIT"
] | 13 | 2019-06-29T02:58:27.000Z | 2020-05-07T08:52:22.000Z | #include <iostream>
#include <vector>
using std::vector;
using std::endl;
using std::ostream;
template<class T1, class T2>
class A {
template<class t1, class t2>
friend ostream& operator<<( ostream& , const A<t1, t2>& );
public:
explicit A() : a(2.0), b(2.0) {};
A(T1 aa, T2 bb) : a(aa), b(bb) {};
A<... | 22.728814 | 86 | 0.51827 | SebastianTirado |
45ea6a214560d1758947730f90e7327200ebd181 | 1,691 | hpp | C++ | meta/symboltable.hpp | tamim-asif/lgraph-private | 733bbcd9e14a9850580b51c011e33785ab758b9d | [
"BSD-3-Clause"
] | null | null | null | meta/symboltable.hpp | tamim-asif/lgraph-private | 733bbcd9e14a9850580b51c011e33785ab758b9d | [
"BSD-3-Clause"
] | null | null | null | meta/symboltable.hpp | tamim-asif/lgraph-private | 733bbcd9e14a9850580b51c011e33785ab758b9d | [
"BSD-3-Clause"
] | null | null | null | #ifndef LGRAPH_SYMBOL_TABLE_H_
#define LGRAPH_SYMBOL_TABLE_H_
#include "lgraphbase.hpp"
#include "integer.hpp"
#include "pyrope_type.hpp"
#include <sparsehash/dense_hash_map>
#include <string>
using Symbol_Mapping = Char_Array<Index_ID>; // maps Index_ID (of node) => Char_Array_ID (of variable cast from Index_I... | 35.229167 | 127 | 0.717918 | tamim-asif |
45eb26741075e63e772f9d51273ccd651456f72b | 608 | hpp | C++ | sprout/rational/values.hpp | osyo-manga/Sprout | 8885b115f739ef255530f772067475d3bc0dcef7 | [
"BSL-1.0"
] | 1 | 2020-02-04T05:16:01.000Z | 2020-02-04T05:16:01.000Z | sprout/rational/values.hpp | osyo-manga/Sprout | 8885b115f739ef255530f772067475d3bc0dcef7 | [
"BSL-1.0"
] | null | null | null | sprout/rational/values.hpp | osyo-manga/Sprout | 8885b115f739ef255530f772067475d3bc0dcef7 | [
"BSL-1.0"
] | null | null | null | #ifndef SPROUT_RATIONAL_VALUES_HPP
#define SPROUT_RATIONAL_VALUES_HPP
#include <sprout/config.hpp>
#include <sprout/rational/rational.hpp>
#include <sprout/cstdlib/abs.hpp>
namespace sprout {
//
// abs
//
template<typename IntType>
inline SPROUT_CONSTEXPR sprout::rational<IntType>
abs(sprout::ratio... | 24.32 | 55 | 0.702303 | osyo-manga |
45eb6a7e47c044c70b8c05a3e2f78a3735462eab | 515 | hpp | C++ | webserv/Abstract&Interfaces/AServer.hpp | sfcdota/mini-web-server | 69be414a8824570a8f0b85d3eb567614ed54892b | [
"BSD-3-Clause"
] | null | null | null | webserv/Abstract&Interfaces/AServer.hpp | sfcdota/mini-web-server | 69be414a8824570a8f0b85d3eb567614ed54892b | [
"BSD-3-Clause"
] | null | null | null | webserv/Abstract&Interfaces/AServer.hpp | sfcdota/mini-web-server | 69be414a8824570a8f0b85d3eb567614ed54892b | [
"BSD-3-Clause"
] | null | null | null | //
// Created by sfcdo on 20.07.2021.
//
#ifndef WEBSERV_ASERVER_HPP_
#define WEBSERV_ASERVER_HPP_
#include <vector>
#include "parser.hpp"
#include "../BufferReader.hpp"
class AServer {
protected:
AServer(const std::vector<ServerConfig>& config, const ssize_t & INPUT_BUFFER_SIZE);
virtual ~AServer();
fd_set mas... | 23.409091 | 86 | 0.751456 | sfcdota |
45eb89d594e84151bd1dd181295def7229f4f633 | 2,110 | cpp | C++ | tests/test-graph.cpp | inetic/club | 1fa777beaf8ddf9cf6817dea08dbca579113a989 | [
"Apache-2.0"
] | 122 | 2016-06-23T12:27:24.000Z | 2016-08-01T06:11:55.000Z | tests/test-graph.cpp | inetic/libclub | 1fa777beaf8ddf9cf6817dea08dbca579113a989 | [
"Apache-2.0"
] | 2 | 2019-09-03T17:44:48.000Z | 2019-09-03T17:48:27.000Z | tests/test-graph.cpp | inetic/libclub | 1fa777beaf8ddf9cf6817dea08dbca579113a989 | [
"Apache-2.0"
] | 15 | 2016-11-03T10:10:56.000Z | 2021-03-19T06:05:03.000Z | // Copyright 2016 Peter Jankuliak
//
// 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... | 21.752577 | 75 | 0.57109 | inetic |
45efa2f82f1804d2c6d7370eb03e236cdc081c4c | 8,883 | cpp | C++ | Src/Client/ClientControl.cpp | StavrosBizelis/NetworkDistributedDeferredShading | 07c03ce9b13bb5adb164cd4321b2bba284e49b4d | [
"MIT"
] | null | null | null | Src/Client/ClientControl.cpp | StavrosBizelis/NetworkDistributedDeferredShading | 07c03ce9b13bb5adb164cd4321b2bba284e49b4d | [
"MIT"
] | null | null | null | Src/Client/ClientControl.cpp | StavrosBizelis/NetworkDistributedDeferredShading | 07c03ce9b13bb5adb164cd4321b2bba284e49b4d | [
"MIT"
] | null | null | null | /***********************************************************************
* AUTHOR: <Stavros Bizelis>
* FILE: ClientControl.cpp
* DATE: Wed Jun 20 20:04:02 2018
* DESCR:
***********************************************************************/
#include "Client/ClientControl.h"
#include "Common/Core/MyUtilitie... | 38.288793 | 213 | 0.535405 | StavrosBizelis |
45f2e999d15501fadaa45ef9c0ace330a70e9c92 | 1,582 | cpp | C++ | src/leader_local.cpp | logpicker/prototype | 0a25fccc24a8e298dee9bae240fcd73a4e5d185e | [
"MIT"
] | null | null | null | src/leader_local.cpp | logpicker/prototype | 0a25fccc24a8e298dee9bae240fcd73a4e5d185e | [
"MIT"
] | null | null | null | src/leader_local.cpp | logpicker/prototype | 0a25fccc24a8e298dee9bae240fcd73a4e5d185e | [
"MIT"
] | null | null | null | #include "leader.h"
#include "log.hpp"
#include "logpicker_leader.h"
#include <rpc/client.h>
#include "rpc/server.h"
#include "error_out.hpp"
#include "utils.hpp"
#include "cert.hpp"
#include <thread>
int main(int argc, char **argv) {
std::string arg = argv[1];
int cnt = std::stoi(arg);
std::string config... | 30.423077 | 107 | 0.62579 | logpicker |
45f5ba962b9812851ddf2324319d84be97b07978 | 2,455 | cc | C++ | wasp_exec/src/executors/inairtest.cc | tuloski/wasp_exec | 00ac1e3d00e974c380a9d498a346b50996bee2e7 | [
"MIT"
] | null | null | null | wasp_exec/src/executors/inairtest.cc | tuloski/wasp_exec | 00ac1e3d00e974c380a9d498a346b50996bee2e7 | [
"MIT"
] | null | null | null | wasp_exec/src/executors/inairtest.cc | tuloski/wasp_exec | 00ac1e3d00e974c380a9d498a346b50996bee2e7 | [
"MIT"
] | null | null | null | #include "inairtest.h"
#include "executil.h"
#include "tstutil.h"
#include <iostream>
#include <boost/lexical_cast.hpp>
extern ros::NodeHandle * global_nh;
using namespace std;
Exec::InAirTest::InAirTest (std::string ns, int id) : Executor (ns, id),
received_mms_state(false) {
lrs_msgs_tst::TSTExecInfo einfo;
... | 25.842105 | 112 | 0.684318 | tuloski |
45f90d0193d17bcca649a0fd0f6369bc5dece996 | 3,692 | hpp | C++ | include/robot_faces/entities/proxy-entity.hpp | AndrewMurtagh/robot_faces | 54408875584cb84beb70f090a2de3d26b781de03 | [
"MIT"
] | 1 | 2021-08-17T15:15:33.000Z | 2021-08-17T15:15:33.000Z | include/robot_faces/entities/proxy-entity.hpp | AndrewMurtagh/robot_faces | 54408875584cb84beb70f090a2de3d26b781de03 | [
"MIT"
] | null | null | null | include/robot_faces/entities/proxy-entity.hpp | AndrewMurtagh/robot_faces | 54408875584cb84beb70f090a2de3d26b781de03 | [
"MIT"
] | 1 | 2020-08-27T02:23:18.000Z | 2020-08-27T02:23:18.000Z | #ifndef PROXY_ENTITY_H
#define PROXY_ENTITY_H
#include <SFML/Graphics.hpp>
#include <robot_faces/entities/ientity.hpp>
#include <robot_faces/entities/entity.hpp>
#include <robot_faces/consts.hpp>
#include <robot_faces/utils.hpp>
template <typename T>
class ProxyEntity : public IEntity
{
protected:
// defined abov... | 29.774194 | 110 | 0.702059 | AndrewMurtagh |
45fe1c05afcd93c26bf3e3290dd73880379ddb9d | 6,565 | cpp | C++ | src/plugins/win32/drawdeviceIrrlicht/irrlicht/source/Irrlicht/os.cpp | miahmie/krkrz | e4948f61393ca4a2acac0301a975165dd4efc643 | [
"Unlicense",
"Apache-2.0",
"Libpng",
"FTL",
"IJG"
] | 2 | 2020-02-25T15:18:53.000Z | 2020-08-24T13:30:34.000Z | src/plugins/win32/drawdeviceIrrlicht/irrlicht/source/Irrlicht/os.cpp | miahmie/krkrz | e4948f61393ca4a2acac0301a975165dd4efc643 | [
"Unlicense",
"Apache-2.0",
"Libpng",
"FTL",
"IJG"
] | null | null | null | src/plugins/win32/drawdeviceIrrlicht/irrlicht/source/Irrlicht/os.cpp | miahmie/krkrz | e4948f61393ca4a2acac0301a975165dd4efc643 | [
"Unlicense",
"Apache-2.0",
"Libpng",
"FTL",
"IJG"
] | 1 | 2019-11-25T05:29:30.000Z | 2019-11-25T05:29:30.000Z | // Copyright (C) 2002-2008 Nikolaus Gebhardt
// This file is part of the "Irrlicht Engine".
// For conditions of distribution and use, see copyright notice in irrlicht.h
#include "os.h"
#include "irrString.h"
#include "IrrCompileConfig.h"
#include "irrMath.h"
#if defined(_IRR_USE_SDL_DEVICE_)
#include <SDL/SDL_endia... | 21.810631 | 127 | 0.642346 | miahmie |
45ff9ab1ff61f3bf9dac7f4918c28f7ef0628764 | 2,214 | cpp | C++ | 2019/cpp/1906.cpp | Chrinkus/advent-of-code | b2ae137dc7a1d6fc9e20f29549e891404591c47f | [
"MIT"
] | 1 | 2021-12-04T20:55:02.000Z | 2021-12-04T20:55:02.000Z | 2019/cpp/1906.cpp | Chrinkus/advent-of-code | b2ae137dc7a1d6fc9e20f29549e891404591c47f | [
"MIT"
] | null | null | null | 2019/cpp/1906.cpp | Chrinkus/advent-of-code | b2ae137dc7a1d6fc9e20f29549e891404591c47f | [
"MIT"
] | null | null | null | #include <iostream>
#include <vector>
#include <string>
#include <unordered_map>
#include <algorithm>
#include "utils.hpp"
using Object_map = std::unordered_map<std::string,std::string>;
const std::string SENTINEL = "COM";
const std::string START = "YOU";
const std::string GOAL = "SAN";
int count_orbits(const Objec... | 26.674699 | 79 | 0.531165 | Chrinkus |
45ffcf253ed25fd6793fc8a13fa5c2dabab6d305 | 2,827 | cpp | C++ | internal/files/configs/theme_config/theme_config.cpp | YarikRevich/SyE | 3f73350f7e8fd9975e747c9c49667bbee278b594 | [
"MIT"
] | null | null | null | internal/files/configs/theme_config/theme_config.cpp | YarikRevich/SyE | 3f73350f7e8fd9975e747c9c49667bbee278b594 | [
"MIT"
] | null | null | null | internal/files/configs/theme_config/theme_config.cpp | YarikRevich/SyE | 3f73350f7e8fd9975e747c9c49667bbee278b594 | [
"MIT"
] | null | null | null | #include <tuple>
#include <cstring>
#include <string>
#include <yaml-cpp/yaml.h>
#include "theme_config.hpp"
#include "./../helper/helper.hpp"
#include "./../../../files/exec/exec.hpp"
#ifdef __APPLE__
#include <filesystem>
namespace fs = std::filesystem;
#elif defined(__linux__)
#include <experimental/filesystem>
nam... | 26.92381 | 110 | 0.605235 | YarikRevich |
45ffd20b3fa0b8e9830ce722a5f7b7fde5f78c82 | 1,725 | hpp | C++ | src/gameworld/gameworld/other/discountbuy/discountbuyconfig.hpp | mage-game/metagame-xm-server | 193b67389262803fe0eae742800b1e878b5b3087 | [
"MIT"
] | 3 | 2021-12-16T13:57:28.000Z | 2022-03-26T07:50:08.000Z | src/gameworld/gameworld/other/discountbuy/discountbuyconfig.hpp | mage-game/metagame-xm-server | 193b67389262803fe0eae742800b1e878b5b3087 | [
"MIT"
] | null | null | null | src/gameworld/gameworld/other/discountbuy/discountbuyconfig.hpp | mage-game/metagame-xm-server | 193b67389262803fe0eae742800b1e878b5b3087 | [
"MIT"
] | 1 | 2022-03-26T07:50:11.000Z | 2022-03-26T07:50:11.000Z | #ifndef __DISCOUNT_BUY_CONFIG_HPP__
#define __DISCOUNT_BUY_CONFIG_HPP__
#include "servercommon/struct/discountbuyparam.hpp"
#include "servercommon/struct/itemlistparam.h"
#include "servercommon/configbase.h"
#include "servercommon/pugixml/pugixml_adapter.hpp"
struct DiscountBuyPhaseConfig
{
struct ConfigItem
{
Co... | 23.310811 | 105 | 0.781449 | mage-game |
45ffef52338f5f0df00c4e1e5bbc05d9793727cb | 723 | hpp | C++ | tests/fonts_for_tests/include/fonts_for_tests/freetype.hpp | cpp-niel/mfl | d22d698b112b95d102150d5f3a5f35d8eb7fb0f3 | [
"MIT"
] | 4 | 2021-04-02T02:52:05.000Z | 2021-12-11T00:42:35.000Z | tests/fonts_for_tests/include/fonts_for_tests/freetype.hpp | cpp-niel/mfl | d22d698b112b95d102150d5f3a5f35d8eb7fb0f3 | [
"MIT"
] | null | null | null | tests/fonts_for_tests/include/fonts_for_tests/freetype.hpp | cpp-niel/mfl | d22d698b112b95d102150d5f3a5f35d8eb7fb0f3 | [
"MIT"
] | null | null | null | #pragma once
#include "mfl/font_family.hpp"
#include "mfl/units.hpp"
#include <ft2build.h>
#include FT_FREETYPE_H
#include <memory>
namespace mfl::fft
{
class freetype
{
public:
freetype();
[[nodiscard]] FT_Face face(const font_family family) const;
private:
using library_p... | 22.59375 | 108 | 0.677732 | cpp-niel |
34051de0e6bbe0dbf72bc4e053b0304e33c17cd8 | 598 | cpp | C++ | Game/Formula.cpp | Thendplayer/MagicIdle | e1da124eeab95cf7e3010ee2773cef9e8d80b097 | [
"MIT"
] | 1 | 2021-02-06T04:28:39.000Z | 2021-02-06T04:28:39.000Z | Game/Formula.cpp | Thendplayer/MagicIdle | e1da124eeab95cf7e3010ee2773cef9e8d80b097 | [
"MIT"
] | null | null | null | Game/Formula.cpp | Thendplayer/MagicIdle | e1da124eeab95cf7e3010ee2773cef9e8d80b097 | [
"MIT"
] | null | null | null | #include "Formula.h"
namespace MagicIdle
{
Formula::Formula()
: _initialValue(0),
_multiplier(0),
_exponent(0)
{
}
Formula::Formula(
KmbNumber initialValue,
KmbNumber multiplier,
float exponent
) : _initialValue(initialValue),
_multiplier(multiplier),
_exponent(exponent)
{
}
KmbNumber Fo... | 17.085714 | 74 | 0.704013 | Thendplayer |
34064a4ebd4cb298e968579d87a0931e52b9643d | 1,104 | cpp | C++ | Examples/FavorPolicy.cpp | krzysztof-jusiak/qfsm | b339f8bdb7f4d2c65dc943cc84e0e0038552190c | [
"BSL-1.0"
] | 1 | 2020-12-18T20:43:20.000Z | 2020-12-18T20:43:20.000Z | Examples/FavorPolicy.cpp | krzysztof-jusiak/qfsm | b339f8bdb7f4d2c65dc943cc84e0e0038552190c | [
"BSL-1.0"
] | null | null | null | Examples/FavorPolicy.cpp | krzysztof-jusiak/qfsm | b339f8bdb7f4d2c65dc943cc84e0e0038552190c | [
"BSL-1.0"
] | null | null | null | //
// Copyright (c) 2011-2012 Krzysztof Jusiak (krzysztof at jusiak dot net)
//
// Distributed under the Boost Software License, Version 1.0.
// (See accompanying file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
//
#include <QFsm/QFsm.hpp>
#include "Utility.hpp"
class FavorPolicy : public QFsm::Fs... | 22.530612 | 90 | 0.632246 | krzysztof-jusiak |
340abf84ca72dc3116a404e8148196dc045aaefb | 4,361 | hpp | C++ | ros_stairsdetection/src/step.hpp | ne0h/hmmwv_stairsdetection | f07a0ac1b0063df0057d806a95cc02a7dad5cb04 | [
"MIT"
] | null | null | null | ros_stairsdetection/src/step.hpp | ne0h/hmmwv_stairsdetection | f07a0ac1b0063df0057d806a95cc02a7dad5cb04 | [
"MIT"
] | null | null | null | ros_stairsdetection/src/step.hpp | ne0h/hmmwv_stairsdetection | f07a0ac1b0063df0057d806a95cc02a7dad5cb04 | [
"MIT"
] | null | null | null | #pragma once
#include <sstream>
#include <cmath>
#include <geometry_msgs/Point.h>
#define PI 3.14159265
/**
* \brief Represents a single Step.
* \author Maximilian Hess <mail@ne0h.de>
*/
class Step {
public:
/**
* Default constructor that generates a Step with empty coordinates.
*/
Step() {
m_min.x = m... | 23.446237 | 116 | 0.63701 | ne0h |
340c93500132b2edb63a775261fe8e41be61a8a4 | 3,027 | cpp | C++ | src/uploader_util.cpp | turutosiya/mod_uploader24 | 7c95ee7ae7e10465cbb26ae3025036b917c5fd38 | [
"Zlib"
] | null | null | null | src/uploader_util.cpp | turutosiya/mod_uploader24 | 7c95ee7ae7e10465cbb26ae3025036b917c5fd38 | [
"Zlib"
] | null | null | null | src/uploader_util.cpp | turutosiya/mod_uploader24 | 7c95ee7ae7e10465cbb26ae3025036b917c5fd38 | [
"Zlib"
] | null | null | null | /******************************************************************************
* Copyright (C) 2007 Tetsuya Kimata <kimata@acapulco.dyndns.org>
*
* All rights reserved.
*
* This software is provided 'as-is', without any express or implied
* warranty. In no event will the authors be held liable for any
* damage... | 27.026786 | 79 | 0.626693 | turutosiya |
34165f86f52d2a5977b46abfb185dad1443d3835 | 365 | cpp | C++ | Codeforces Online Judge Solve/Tanya-and-stairways.cpp | Remonhasan/programming-solve | 5a4ac8c738dd361e1c974162e0eaebbaae72fd80 | [
"Apache-2.0"
] | null | null | null | Codeforces Online Judge Solve/Tanya-and-stairways.cpp | Remonhasan/programming-solve | 5a4ac8c738dd361e1c974162e0eaebbaae72fd80 | [
"Apache-2.0"
] | null | null | null | Codeforces Online Judge Solve/Tanya-and-stairways.cpp | Remonhasan/programming-solve | 5a4ac8c738dd361e1c974162e0eaebbaae72fd80 | [
"Apache-2.0"
] | null | null | null | #include<bits/stdc++.h>
using namespace std;
#define pb push_back
int main ()
{
int n;
cin>>n;
vector<int>a;
int p=-1;
for(int i=0;i<n;i++){
int x;
cin>>x;
if(x==1 && p!= -1)
a.pb(p);
p=x;
}
a.pb(p);
cout << a.size()<< endl;
... | 16.590909 | 29 | 0.386301 | Remonhasan |
341dd7bd451c1855ebe391af323a9ba22b7e3d9d | 4,915 | cpp | C++ | GlobalIllumination/SceneMaterialManager.cpp | wzchua/graphic | 71d154b56a268cce6a1b06e275083210e205aa60 | [
"Apache-2.0"
] | null | null | null | GlobalIllumination/SceneMaterialManager.cpp | wzchua/graphic | 71d154b56a268cce6a1b06e275083210e205aa60 | [
"Apache-2.0"
] | null | null | null | GlobalIllumination/SceneMaterialManager.cpp | wzchua/graphic | 71d154b56a268cce6a1b06e275083210e205aa60 | [
"Apache-2.0"
] | null | null | null | #include "SceneMaterialManager.h"
void SceneMaterialManager::addMaterialShapeGroup(const tinyobj::shape_t & shape, const tinyobj::attrib_t & attrib, const tinyobj::material_t & material, const GLuint64 textureIds[4])
{
auto const & result = mMatGroupMap.find(material.name);
GLuint index = -1;
if (result ... | 31.915584 | 182 | 0.663886 | wzchua |
341e6e488261d8872d6bf3e6a693542d944ece71 | 20,079 | hpp | C++ | include/scran/quality_control/PerCellQCFilters.hpp | LTLA/libscran | 12faf62c42c388f26db3b03d322c5f430e2c5080 | [
"MIT"
] | 4 | 2021-06-16T10:08:04.000Z | 2022-02-23T14:03:41.000Z | include/scran/quality_control/PerCellQCFilters.hpp | LTLA/libscran | 12faf62c42c388f26db3b03d322c5f430e2c5080 | [
"MIT"
] | 3 | 2021-10-16T23:14:47.000Z | 2021-12-23T07:51:54.000Z | include/scran/quality_control/PerCellQCFilters.hpp | LTLA/libscran | 12faf62c42c388f26db3b03d322c5f430e2c5080 | [
"MIT"
] | null | null | null | #ifndef SCRAN_PER_CELL_QC_FILTERS_H
#define SCRAN_PER_CELL_QC_FILTERS_H
#include <vector>
#include <cstdint>
#include "../utils/vector_to_pointers.hpp"
#include "PerCellQCMetrics.hpp"
#include "IsOutlier.hpp"
/**
* @file PerCellQCFilters.hpp
*
* @brief Create filters to identify low-quality cells.
*/
namespace... | 50.072319 | 216 | 0.644554 | LTLA |
34218751873b8b49f12bcc12e66aee4cc7835ce1 | 255 | cpp | C++ | Raven.CppClient/SecurityException.cpp | mlawsonca/ravendb-cpp-client | c3a3d4960c8b810156547f62fa7aeb14a121bf74 | [
"MIT"
] | 3 | 2019-04-24T02:34:53.000Z | 2019-08-01T08:22:26.000Z | Raven.CppClient/SecurityException.cpp | mlawsonca/ravendb-cpp-client | c3a3d4960c8b810156547f62fa7aeb14a121bf74 | [
"MIT"
] | 2 | 2019-03-21T09:00:02.000Z | 2021-02-28T23:49:26.000Z | Raven.CppClient/SecurityException.cpp | mlawsonca/ravendb-cpp-client | c3a3d4960c8b810156547f62fa7aeb14a121bf74 | [
"MIT"
] | 3 | 2019-03-04T11:58:54.000Z | 2021-03-01T00:25:49.000Z | #include "stdafx.h"
#include "SecurityException.h"
namespace ravendb::client::exceptions::security
{
SecurityException::SecurityException() = default;
SecurityException::SecurityException(const std::string& message)
: RavenException(message)
{}
}
| 21.25 | 65 | 0.768627 | mlawsonca |
342530a70e80e04bf75b6ab21cfe0dcf5b929481 | 492 | cpp | C++ | codeforces/edu/ITMO Academy: pilot course/Disjoint Sets Union/step 2/b.cpp | tysm/cpsols | 262212646203e516d1706edf962290de93762611 | [
"MIT"
] | 4 | 2020-10-05T19:24:10.000Z | 2021-07-15T00:45:43.000Z | codeforces/edu/ITMO Academy: pilot course/Disjoint Sets Union/step 2/b.cpp | tysm/cpsols | 262212646203e516d1706edf962290de93762611 | [
"MIT"
] | null | null | null | codeforces/edu/ITMO Academy: pilot course/Disjoint Sets Union/step 2/b.cpp | tysm/cpsols | 262212646203e516d1706edf962290de93762611 | [
"MIT"
] | null | null | null | #include <cpplib/stdinc.hpp>
#include <cpplib/adt/dsu.hpp>
int32_t main(){
desync();
int n;
cin >> n;
vi ans(n);
iota(all(ans), 0);
DSU dsu(n+1);
vi out;
for(int i=0; i<n; ++i){
int pos;
cin >> pos;
pos--;
int res = ans[dsu.find(pos)];
out.eb(r... | 16.965517 | 45 | 0.463415 | tysm |
3429e4a18e9e9f0a9121f79e7cd3cc139464cf9b | 1,840 | cpp | C++ | src/test/compacttxfinder_tests.cpp | WestonReed/bitcoinxt | ac5b611797cb83226b7abce53cc50d48cb2a0c16 | [
"MIT"
] | 515 | 2015-01-03T03:44:52.000Z | 2022-02-11T18:37:43.000Z | src/test/compacttxfinder_tests.cpp | WestonReed/bitcoinxt | ac5b611797cb83226b7abce53cc50d48cb2a0c16 | [
"MIT"
] | 427 | 2015-01-20T15:15:26.000Z | 2020-08-31T10:48:30.000Z | src/test/compacttxfinder_tests.cpp | WestonReed/bitcoinxt | ac5b611797cb83226b7abce53cc50d48cb2a0c16 | [
"MIT"
] | 192 | 2015-02-15T01:23:16.000Z | 2021-11-04T16:42:20.000Z | // Copyright (c) 2016 The Bitcoin XT developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include <boost/test/unit_test_suite.hpp>
#include <boost/test/test_tools.hpp>
#include "blockencodings.h"
#include "compactprefiller... | 32.280702 | 75 | 0.694022 | WestonReed |
342fb1fb962582e097bc3884a3c5631796c62b79 | 3,146 | cpp | C++ | src/io/file_parser.cpp | kaiyuhou/nprint-wlan | d8ded24a1f08087b8484f652215354f0202227f3 | [
"Apache-2.0"
] | null | null | null | src/io/file_parser.cpp | kaiyuhou/nprint-wlan | d8ded24a1f08087b8484f652215354f0202227f3 | [
"Apache-2.0"
] | null | null | null | src/io/file_parser.cpp | kaiyuhou/nprint-wlan | d8ded24a1f08087b8484f652215354f0202227f3 | [
"Apache-2.0"
] | null | null | null | /*
* Copyright 2020 nPrint
* 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 https://www.apache.org/licenses/LICENSE-2.0
*/
#include "file_parser.hpp"
#define CUSTOM_OUTPUT_RESERVE_SIZE... | 23.654135 | 99 | 0.618245 | kaiyuhou |
34329bdaac7e37881e159a5b85cdd2241e8b0cf0 | 2,011 | cpp | C++ | sourceCode/application/ui/project/dialog_selectoneoflayers.cpp | lp-rep/stackprof-1 | 62d9cb96ad7dcdaa26b6383559f542cadc1c7af2 | [
"CECILL-B"
] | 2 | 2022-02-27T20:08:04.000Z | 2022-03-03T13:45:40.000Z | sourceCode/application/ui/project/dialog_selectoneoflayers.cpp | lp-rep/stackprof-1 | 62d9cb96ad7dcdaa26b6383559f542cadc1c7af2 | [
"CECILL-B"
] | 1 | 2021-06-07T17:09:04.000Z | 2021-06-11T11:48:23.000Z | sourceCode/application/ui/project/dialog_selectoneoflayers.cpp | lp-rep/stackprof-1 | 62d9cb96ad7dcdaa26b6383559f542cadc1c7af2 | [
"CECILL-B"
] | 1 | 2021-06-03T21:06:55.000Z | 2021-06-03T21:06:55.000Z | #include <QVector>
#include <QDebug>
#include "dialog_selectoneoflayers.h"
#include "ui_dialog_selectoneoflayers.h"
Dialog_selectOneOfLayers::Dialog_selectOneOfLayers(QWidget *parent) :
QDialog(parent),
ui(new Ui::Dialog_selectOneOfLayers), _tRadioButtonPtr {nullptr, nullptr, nullptr},
_selected_iLayer(-1... | 28.728571 | 119 | 0.669816 | lp-rep |
3434c95eca8494631784e41d96583fabc8c23f07 | 809 | hpp | C++ | src/procman/exec_string_utils.hpp | ashuang/procman | 0ba4409878117c727b3c59ab4fac800bdc9ee1b1 | [
"BSD-3-Clause"
] | 9 | 2019-01-04T09:52:06.000Z | 2022-01-13T09:20:57.000Z | include/procman/exec_string_utils.hpp | ori-drs/procman_ros | 769354bd45fab0653c2537c857431553a08b0a5e | [
"BSD-3-Clause"
] | 32 | 2020-05-11T13:32:30.000Z | 2022-02-22T09:39:28.000Z | src/procman/exec_string_utils.hpp | ashuang/procman | 0ba4409878117c727b3c59ab4fac800bdc9ee1b1 | [
"BSD-3-Clause"
] | 12 | 2016-11-19T18:15:56.000Z | 2021-09-27T00:04:49.000Z | #ifndef PROCMAN_EXEC_STRING_UTILS_HPP__
#define PROCMAN_EXEC_STRING_UTILS_HPP__
#include <map>
#include <string>
#include <vector>
#include "procman.hpp"
namespace procman {
/**
* Do variable expansion on a command argument. This searches the argument for
* text of the form $VARNAME and ${VARNAME}. For each dis... | 26.096774 | 79 | 0.752781 | ashuang |
3439607697e5e8c1e6579a95521eb6dbbd337fef | 1,757 | cpp | C++ | Faciles/ASCII Art.cpp | informaticienzero/CodinGame | c6aac236b1929be0a0c254c7bf92adf7c5ead5cd | [
"MIT"
] | 2 | 2019-08-22T07:12:24.000Z | 2019-12-03T21:12:09.000Z | Faciles/ASCII Art.cpp | informaticienzero/CodinGame | c6aac236b1929be0a0c254c7bf92adf7c5ead5cd | [
"MIT"
] | null | null | null | Faciles/ASCII Art.cpp | informaticienzero/CodinGame | c6aac236b1929be0a0c254c7bf92adf7c5ead5cd | [
"MIT"
] | 7 | 2019-03-18T00:47:14.000Z | 2021-07-12T08:41:42.000Z | #include <array>
#include <cctype>
#include <iostream>
#include <string>
#include <vector>
struct Letter
{
char associated_char;
std::vector<std::string> parts;
};
int main()
{
int L;
std::cin >> L; std::cin.ignore();
int H;
std::cin >> H; std::cin.ignore();
std::string T;
std::ge... | 21.168675 | 65 | 0.467843 | informaticienzero |
3439f2921d7cdb9e032ed289151e9ee4e823baaf | 273 | cpp | C++ | Upsolving/Codeforces/1107B.cpp | rodrigoAMF7/Notebook---Maratonas | 06b38197a042bfbd27b20f707493e0a19fda7234 | [
"MIT"
] | 4 | 2019-01-25T21:22:55.000Z | 2019-03-20T18:04:01.000Z | Upsolving/Codeforces/1107B.cpp | rodrigoAMF/competitive-programming-notebook | 06b38197a042bfbd27b20f707493e0a19fda7234 | [
"MIT"
] | null | null | null | Upsolving/Codeforces/1107B.cpp | rodrigoAMF/competitive-programming-notebook | 06b38197a042bfbd27b20f707493e0a19fda7234 | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
using namespace std;
#define ll long long
int main(){
/*
freopen("input.txt", "r", stdin);
freopen("output.txt", "w", stdout);
*/
ll n, k, x;
cin >> n;
while(n--){
cin >> k >> x;
cout << ((k - 1)*9) + x << "\n";
}
return 0;
} | 10.92 | 36 | 0.498168 | rodrigoAMF7 |
343bddfdcce0329ae08d2b1d34f6169deb8253ff | 320 | cpp | C++ | source/chapter_05/listings/listing_05_01_forloop.cpp | ShinyGreenRobot/CPP-Primer-Plus-Sixth-Edition | ce2c8fca379508929dfd24dce10eff2c09117999 | [
"MIT"
] | null | null | null | source/chapter_05/listings/listing_05_01_forloop.cpp | ShinyGreenRobot/CPP-Primer-Plus-Sixth-Edition | ce2c8fca379508929dfd24dce10eff2c09117999 | [
"MIT"
] | null | null | null | source/chapter_05/listings/listing_05_01_forloop.cpp | ShinyGreenRobot/CPP-Primer-Plus-Sixth-Edition | ce2c8fca379508929dfd24dce10eff2c09117999 | [
"MIT"
] | null | null | null | /**
* \file
* listing_05_01_forloop.cpp
*
* \brief
* Introducing the for loop.
*/
#include <iostream>
int main()
{
using namespace std;
int i; // create a counter
// initialize; test ; update
for (i = 0; i < 5; i++)
{
cout << "C++ knows loops.\n";
}
cout << "C++ knows when to stop.\n";
return 0;
}
| 12.307692 | 37 | 0.571875 | ShinyGreenRobot |
34409e545ddc67c337a3a2684c66f9182c837c27 | 3,803 | cpp | C++ | src/socket.cpp | unitedtimur/POP3Client | d1aacb67dd31f0042a3f7a1c7ef71a276c6db262 | [
"MIT"
] | 1 | 2021-10-17T12:46:05.000Z | 2021-10-17T12:46:05.000Z | src/socket.cpp | unitedtimur/POP3Client | d1aacb67dd31f0042a3f7a1c7ef71a276c6db262 | [
"MIT"
] | null | null | null | src/socket.cpp | unitedtimur/POP3Client | d1aacb67dd31f0042a3f7a1c7ef71a276c6db262 | [
"MIT"
] | null | null | null | #include "../include/socket.h"
#include "../include/configuration.h"
#include "../include/functionality.h"
#include "WS2tcpip.h"
Socket::Socket(const std::wstring& host, const std::wstring& port) :
host(host),
port(port),
clientSocket(-1),
addr(nullptr)
{
}
Socket::~Socket()
{
// Закрываем сокет
closesocket(th... | 21.01105 | 124 | 0.707073 | unitedtimur |
3440c72dfd3fbd205073743ce429e0b03a8b2785 | 7,699 | hpp | C++ | src/elona/config/config.hpp | Vorlent/ElonaFoobar | 8e544af1f82377c9add6961589ddc99e22c5ed4c | [
"MIT"
] | null | null | null | src/elona/config/config.hpp | Vorlent/ElonaFoobar | 8e544af1f82377c9add6961589ddc99e22c5ed4c | [
"MIT"
] | null | null | null | src/elona/config/config.hpp | Vorlent/ElonaFoobar | 8e544af1f82377c9add6961589ddc99e22c5ed4c | [
"MIT"
] | null | null | null | #pragma once
#include <iostream>
#include <string>
#include <unordered_set>
#include "../../snail/window.hpp"
#include "../../thirdparty/ordered_map/ordered_map.h"
#include "../../util/noncopyable.hpp"
#include "../elona.hpp"
#include "../filesystem.hpp"
#include "../log.hpp"
#include "config_def.hpp"
namespace elo... | 26.010135 | 80 | 0.560462 | Vorlent |
3442ce0c70f7feca295b033a0bd04a1bce324835 | 2,190 | hpp | C++ | include/DAL/instruction.hpp | NzZs79/DevAutomator | 81e7b41945452ce8dad6f48fd8b3d958b6ebbef7 | [
"MIT"
] | null | null | null | include/DAL/instruction.hpp | NzZs79/DevAutomator | 81e7b41945452ce8dad6f48fd8b3d958b6ebbef7 | [
"MIT"
] | null | null | null | include/DAL/instruction.hpp | NzZs79/DevAutomator | 81e7b41945452ce8dad6f48fd8b3d958b6ebbef7 | [
"MIT"
] | null | null | null | #include "general.hpp"
#include <vector>
#include <iterator>
#include <memory>
#include "DAL/environment.hpp"
#include <string>
#ifndef INSTRUCTION_H
#define INSTRUCTION_H
typedef enum {
JMP_INST = 0,
JMP_TRUE_INST,
JMP_FALSE_INST,
DEF_INST,
EQUAL_INST,
OPER_INST,
VAR_INST,
LITERAL_INS... | 16.846154 | 62 | 0.6379 | NzZs79 |
344829ca2f450746fc90478eb07930f0b1dd47e2 | 4,444 | cpp | C++ | Real-Time Corruptor/BizHawk_RTC/waterbox/libsnes/bsnes/snes/chip/armdsp/armdsp.cpp | redscientistlabs/Bizhawk50X-Vanguard | 96e0f5f87671a1230784c8faf935fe70baadfe48 | [
"MIT"
] | 1,414 | 2015-06-28T09:57:51.000Z | 2021-10-14T03:51:10.000Z | Real-Time Corruptor/BizHawk_RTC/waterbox/libsnes/bsnes/snes/chip/armdsp/armdsp.cpp | redscientistlabs/Bizhawk50X-Vanguard | 96e0f5f87671a1230784c8faf935fe70baadfe48 | [
"MIT"
] | 2,369 | 2015-06-25T01:45:44.000Z | 2021-10-16T08:44:18.000Z | Real-Time Corruptor/BizHawk_RTC/waterbox/libsnes/bsnes/snes/chip/armdsp/armdsp.cpp | redscientistlabs/Bizhawk50X-Vanguard | 96e0f5f87671a1230784c8faf935fe70baadfe48 | [
"MIT"
] | 430 | 2015-06-29T04:28:58.000Z | 2021-10-05T18:24:17.000Z | #include <snes/snes.hpp>
#define ARMDSP_CPP
namespace SNES {
//zero 01-sep-2014 - dont clobber these when reconstructing!
uint8 *ArmDSP::firmware;
uint8 *ArmDSP::programROM;
uint8 *ArmDSP::dataROM;
static bool trace = 0;
#include "opcodes.cpp"
#include "memory.cpp"
#include "disassembler.cpp"
ArmDSP armdsp;
void A... | 23.638298 | 106 | 0.64784 | redscientistlabs |
451a992b1a7e398756373bd0ff13111d3c428557 | 3,530 | cpp | C++ | source/material/Dielectric.cpp | xzrunner/raytracing | c130691a92fab2cc9605f04534f42ca9b99e6fde | [
"MIT"
] | null | null | null | source/material/Dielectric.cpp | xzrunner/raytracing | c130691a92fab2cc9605f04534f42ca9b99e6fde | [
"MIT"
] | null | null | null | source/material/Dielectric.cpp | xzrunner/raytracing | c130691a92fab2cc9605f04534f42ca9b99e6fde | [
"MIT"
] | null | null | null | #include "raytracing/material/Dielectric.h"
#include "raytracing/bxdf/FresnelReflector.h"
#include "raytracing/bxdf/FresnelTransmitter.h"
#include "raytracing/bxdf/Lambertian.h"
#include "raytracing/bxdf/GlossySpecular.h"
#include "raytracing/world/World.h"
#include "raytracing/tracer/Tracer.h"
#include "raytracing/lig... | 28.934426 | 140 | 0.64221 | xzrunner |
451bae514611aa2a7281c9cd903890a56cddaa97 | 1,280 | cpp | C++ | progress/mountains.cpp | birdhumming/usaco | f011e7bd4b71de22736a61004e501af2b273b246 | [
"OLDAP-2.2.1"
] | null | null | null | progress/mountains.cpp | birdhumming/usaco | f011e7bd4b71de22736a61004e501af2b273b246 | [
"OLDAP-2.2.1"
] | null | null | null | progress/mountains.cpp | birdhumming/usaco | f011e7bd4b71de22736a61004e501af2b273b246 | [
"OLDAP-2.2.1"
] | null | null | null | #include <iostream>
#include <fstream>
#include <vector>
using namespace std;
vector<pair<int, int> > peaks;
bool is_in(int x1, int y1, int x2, int y2) { //is the peak (x1, y1) within the mountain (x2, y2)
if (x1==-1 || x2==-1) return false;
if (x2-y2 >= x1-y1 && x2+y2 >= x1+y1) return true;
return false;... | 26.666667 | 101 | 0.450781 | birdhumming |
45281c21fe8ac4584f35fdb69d7bec6b5e72f1a2 | 1,599 | hpp | C++ | platforms/linux/src/Application/Packets/Commands/Read/Peripheral/ReadRequest.hpp | iotile/baBLE-linux | faedca2c70b7fe91ea8ae0c3d8aff6bf843bd9db | [
"MIT"
] | 13 | 2018-07-04T16:35:37.000Z | 2021-03-03T10:41:07.000Z | platforms/linux/src/Application/Packets/Commands/Read/Peripheral/ReadRequest.hpp | iotile/baBLE | faedca2c70b7fe91ea8ae0c3d8aff6bf843bd9db | [
"MIT"
] | 11 | 2018-06-01T20:32:32.000Z | 2019-01-21T17:03:47.000Z | platforms/linux/src/Application/Packets/Commands/Read/Peripheral/ReadRequest.hpp | iotile/baBLE-linux | faedca2c70b7fe91ea8ae0c3d8aff6bf843bd9db | [
"MIT"
] | null | null | null | #ifndef BABLE_PERIPHERAL_READREQUEST_HPP
#define BABLE_PERIPHERAL_READREQUEST_HPP
#include "Application/Packets/Base/ControllerToHostPacket.hpp"
namespace Packet {
namespace Commands {
namespace Peripheral {
class ReadRequest : public ControllerToHostPacket {
public:
static const Packet:... | 24.6 | 89 | 0.668543 | iotile |
4534790320eba5e4c94fa12b4ecac6b8cdac97e4 | 1,002 | hpp | C++ | src/Board.hpp | syanush/rhotetris | 4f85da828e966a2679e8160c5f810cde6b19419c | [
"MIT"
] | null | null | null | src/Board.hpp | syanush/rhotetris | 4f85da828e966a2679e8160c5f810cde6b19419c | [
"MIT"
] | null | null | null | src/Board.hpp | syanush/rhotetris | 4f85da828e966a2679e8160c5f810cde6b19419c | [
"MIT"
] | null | null | null | #pragma once
#include <array>
#include "GameOverEvent.hpp"
#include "Piece.hpp"
namespace RhoTetris {
enum class Colors { Default, Magenta };
class Board : public GameOverEvent {
public:
static const int kBoardWidth = 10;
static const int kBoardHeight = 22;
void clear();
void update();
void makeNewPiec... | 20.875 | 74 | 0.699601 | syanush |
4534f00e10e2659637c3dea74e5dea14b8bab46b | 7,336 | cpp | C++ | vendor/mysql-connector-c++-1.1.3/test/framework/test_timer.cpp | caiqingfeng/libmrock | bb7c94482a105e92b6d3e8640b13f9ff3ae49a83 | [
"Apache-2.0"
] | 1 | 2015-12-01T04:16:54.000Z | 2015-12-01T04:16:54.000Z | vendor/mysql-connector-c++-1.1.3/test/framework/test_timer.cpp | caiqingfeng/libmrock | bb7c94482a105e92b6d3e8640b13f9ff3ae49a83 | [
"Apache-2.0"
] | null | null | null | vendor/mysql-connector-c++-1.1.3/test/framework/test_timer.cpp | caiqingfeng/libmrock | bb7c94482a105e92b6d3e8640b13f9ff3ae49a83 | [
"Apache-2.0"
] | null | null | null | /*
Copyright (c) 2009, 2011, Oracle and/or its affiliates. All rights reserved.
The MySQL Connector/C++ is licensed under the terms of the GPLv2
<http://www.gnu.org/licenses/old-licenses/gpl-2.0.html>, like most
MySQL Connectors. There are special exceptions to the terms and
conditions of the GPLv2 as it is applied to... | 29.461847 | 131 | 0.717694 | caiqingfeng |
453a00edfc34b51d44704592d3f8bbd5c3e57a32 | 11,951 | cpp | C++ | Shader Labb 2/Instance.cpp | Cousken/3DEngine | dd8a58f1cc08f17b1286c136215913123f234eb4 | [
"MIT"
] | 1 | 2015-04-11T14:41:38.000Z | 2015-04-11T14:41:38.000Z | Shader Labb 2/Instance.cpp | Cousken/3DEngine | dd8a58f1cc08f17b1286c136215913123f234eb4 | [
"MIT"
] | null | null | null | Shader Labb 2/Instance.cpp | Cousken/3DEngine | dd8a58f1cc08f17b1286c136215913123f234eb4 | [
"MIT"
] | null | null | null | #include "Instance.h"
#include "Engine.h"
#include "Light.h"
#include "EffectTechnique.h"
Instance::~Instance(void)
{
}
bool Instance::Init( )
{
myOrientation = Matrix44f::Identity();
BuildHierachy(myHierarchy, &myModel);
myBoneInstances.Init( myModel.myBones.Count(), 1 );
if( myModel.GetAnimation() != NULL )
... | 29.728856 | 271 | 0.745628 | Cousken |
4555bde2b27d87d8b07b7f9c16f95820e5c33892 | 769 | cpp | C++ | CppStudio/Easy/09.cpp | vvhappyguy/Access-to-IT | 1452c64f8c03addf6836a846af63123f65a9f620 | [
"Apache-2.0"
] | null | null | null | CppStudio/Easy/09.cpp | vvhappyguy/Access-to-IT | 1452c64f8c03addf6836a846af63123f65a9f620 | [
"Apache-2.0"
] | null | null | null | CppStudio/Easy/09.cpp | vvhappyguy/Access-to-IT | 1452c64f8c03addf6836a846af63123f65a9f620 | [
"Apache-2.0"
] | null | null | null | //compiled with clang (10.0.1)
//9. Дан одномерный массив, длину массива задаёт пользователь.
//Вычислить сумму квадратов тех чисел, модуль которых превышает значение 2,5.
//Input: int n , (float) * n
//Output: float
#include <iostream>
#include <cmath>
using namespace std;
int main()
{
int n;
float sum;
... | 24.03125 | 77 | 0.56567 | vvhappyguy |
45583baf13cef610e42413db24e8011758a6d15c | 4,012 | hh | C++ | cc/pch.Darwin.hh | acorg/acmacs-base | a1a6e5b346ea3746f3fc1750ed4b7f29c7c0d049 | [
"MIT"
] | null | null | null | cc/pch.Darwin.hh | acorg/acmacs-base | a1a6e5b346ea3746f3fc1750ed4b7f29c7c0d049 | [
"MIT"
] | null | null | null | cc/pch.Darwin.hh | acorg/acmacs-base | a1a6e5b346ea3746f3fc1750ed4b7f29c7c0d049 | [
"MIT"
] | null | null | null | #include <algorithm>
#include <array>
#include <atomic>
#include <bzlib.h>
#include <cassert>
#include <cctype>
#include <cerrno>
#include <chrono>
#include <cinttypes>
#include <cmath>
#include <condition_variable>
#include <csignal>
#include <cstdint>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <... | 28.253521 | 73 | 0.639831 | acorg |
45599a45271ba21da38aa923f238479bb649e50f | 2,304 | cpp | C++ | src/Externals/cleaver/lib/backup/PaddedField.cpp | Haydelj/SCIRun | f7ee04d85349b946224dbff183438663e54b9413 | [
"MIT"
] | null | null | null | src/Externals/cleaver/lib/backup/PaddedField.cpp | Haydelj/SCIRun | f7ee04d85349b946224dbff183438663e54b9413 | [
"MIT"
] | null | null | null | src/Externals/cleaver/lib/backup/PaddedField.cpp | Haydelj/SCIRun | f7ee04d85349b946224dbff183438663e54b9413 | [
"MIT"
] | null | null | null | /*
For more information, please see: http://software.sci.utah.edu
The MIT License
Copyright (c) 2020 Scientific Computing and Imaging Institute,
University of Utah.
Permission is hereby granted, free of charge, to any person obtaining a
copy of this software and associated documentation files (the ... | 30.315789 | 99 | 0.751736 | Haydelj |
455dff9f0174aadc5711be32e0a8f2ec8998be26 | 7,055 | hpp | C++ | include/utils4cpp/str/UString.hpp | shaoguangwu/utils4cpp | 6cc2093220e7be293761432cde88dff275c8f678 | [
"BSD-3-Clause"
] | 1 | 2019-10-17T01:34:56.000Z | 2019-10-17T01:34:56.000Z | include/utils4cpp/str/UString.hpp | shaoguangwu/utils4cpp | 6cc2093220e7be293761432cde88dff275c8f678 | [
"BSD-3-Clause"
] | null | null | null | include/utils4cpp/str/UString.hpp | shaoguangwu/utils4cpp | 6cc2093220e7be293761432cde88dff275c8f678 | [
"BSD-3-Clause"
] | 3 | 2019-10-17T01:33:37.000Z | 2019-12-02T02:13:45.000Z | /************************************************************************************
**
** BSD 3-Clause License
**
** Copyright (c) 2019, shaoguang. All rights reserved.
**
** Redistribution and use in source and binary forms, with or without
** modification, are permitted provided that the following conditions ar... | 26.927481 | 115 | 0.635152 | shaoguangwu |
456112f948858b44c30eb8253bd794580c9571a1 | 1,767 | cpp | C++ | Libs/Core/Testing/Cpp/ctkBackTraceTest.cpp | kraehlit/CTK | 6557c5779d20b78f501f1fd6ce1063d0f219cca6 | [
"Apache-2.0"
] | 515 | 2015-01-13T05:42:10.000Z | 2022-03-29T03:10:01.000Z | Libs/Core/Testing/Cpp/ctkBackTraceTest.cpp | kraehlit/CTK | 6557c5779d20b78f501f1fd6ce1063d0f219cca6 | [
"Apache-2.0"
] | 425 | 2015-01-06T05:28:38.000Z | 2022-03-08T19:42:18.000Z | Libs/Core/Testing/Cpp/ctkBackTraceTest.cpp | kraehlit/CTK | 6557c5779d20b78f501f1fd6ce1063d0f219cca6 | [
"Apache-2.0"
] | 341 | 2015-01-08T06:18:17.000Z | 2022-03-29T21:47:49.000Z | /*=========================================================================
Library: CTK
Copyright (c) German Cancer Research Center,
Division of Medical and Biological Informatics
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the Li... | 27.184615 | 79 | 0.54386 | kraehlit |
4565bbae89b433154fe632e8c47a6c49b131cfe0 | 1,367 | cc | C++ | test/test_saved_options.cc | halfflat/tinyopt | 12e4a7be36fb692a4b9b814ddef13dbb0c00a40c | [
"BSD-3-Clause"
] | 3 | 2019-03-07T14:45:06.000Z | 2019-04-27T12:57:15.000Z | test/test_saved_options.cc | halfflat/tinyopt | 12e4a7be36fb692a4b9b814ddef13dbb0c00a40c | [
"BSD-3-Clause"
] | 4 | 2021-04-02T19:07:38.000Z | 2021-06-03T12:39:29.000Z | test/test_saved_options.cc | halfflat/tinyopt | 12e4a7be36fb692a4b9b814ddef13dbb0c00a40c | [
"BSD-3-Clause"
] | null | null | null | #include <sstream>
#include <string>
#include <vector>
#include <gtest/gtest.h>
#include <tinyopt/tinyopt.h>
using svector = std::vector<std::string>;
TEST(saved_options, add) {
to::saved_options so1;
for (auto x: {"tasty", "fish", "cake"}) so1.add(x);
EXPECT_EQ((svector{"tasty", "fish", "cake"}), svecto... | 24.410714 | 104 | 0.567666 | halfflat |
457390d9b1775239b1af41a158d8669c3dfa6286 | 1,347 | hpp | C++ | SOLVER/src/core/output/element-wise/io/ElementIO_ParNetCDF.hpp | nicklinyi/AxiSEM-3D | cd11299605cd6b92eb867d4109d2e6a8f15e6b4d | [
"MIT"
] | 8 | 2020-06-05T01:13:20.000Z | 2022-02-24T05:11:50.000Z | SOLVER/src/core/output/element-wise/io/ElementIO_ParNetCDF.hpp | nicklinyi/AxiSEM-3D | cd11299605cd6b92eb867d4109d2e6a8f15e6b4d | [
"MIT"
] | 24 | 2020-10-21T19:03:38.000Z | 2021-11-17T21:32:02.000Z | SOLVER/src/core/output/element-wise/io/ElementIO_ParNetCDF.hpp | nicklinyi/AxiSEM-3D | cd11299605cd6b92eb867d4109d2e6a8f15e6b4d | [
"MIT"
] | 5 | 2020-06-21T11:54:22.000Z | 2021-06-23T01:02:39.000Z | //
// ElementIO_ParNetCDF.hpp
// AxiSEM3D
//
// Created by Kuangdai Leng on 7/29/20.
// Copyright © 2020 Kuangdai Leng. All rights reserved.
//
// parallel NetCDF IO for element output
#ifndef ElementIO_ParNetCDF_hpp
#define ElementIO_ParNetCDF_hpp
#include "ElementIO.hpp"
#include "NetCDF_Writer.hpp"
class El... | 25.903846 | 69 | 0.601336 | nicklinyi |
4577cf4f5bb9c2e1bfdc6005f9901f4f5d59964b | 11,589 | hpp | C++ | fmt11.hpp | r-lyeh-archived/fmt11 | 1820e9e6e8cdaccc216151013882f456cfbf657c | [
"Unlicense"
] | 5 | 2018-01-18T14:51:10.000Z | 2021-04-10T00:57:03.000Z | fmt11.hpp | r-lyeh-archived/fmt11 | 1820e9e6e8cdaccc216151013882f456cfbf657c | [
"Unlicense"
] | null | null | null | fmt11.hpp | r-lyeh-archived/fmt11 | 1820e9e6e8cdaccc216151013882f456cfbf657c | [
"Unlicense"
] | 4 | 2018-01-18T14:51:14.000Z | 2020-10-27T12:55:06.000Z | // Tiny format/mustache templating library (C++11)
// - rlyeh, public domain
// Inspired by the better, safer and more featured library [fmtlib](https://github.com/fmtlib/fmt)
// PS: I ripped the examples and a few tests as well O:)
// ## Features
// [x] Basic python formatting: "{} {0} {1} {2:#x} {4:8.2} {:<20}"
// ... | 48.693277 | 132 | 0.426439 | r-lyeh-archived |
457d040916faaa4851bc08972031a8534c1dc4ca | 32,518 | cpp | C++ | matlab/caffe/matcaffe.cpp | xiaomi646/caffe_2d_mlabel | 912c92d6f3ba530e1abea79fb1ab2cb34aa5bd65 | [
"BSD-2-Clause"
] | 1 | 2015-07-08T15:30:06.000Z | 2015-07-08T15:30:06.000Z | matlab/caffe/matcaffe.cpp | xiaomi646/caffe_2d_mlabel | 912c92d6f3ba530e1abea79fb1ab2cb34aa5bd65 | [
"BSD-2-Clause"
] | null | null | null | matlab/caffe/matcaffe.cpp | xiaomi646/caffe_2d_mlabel | 912c92d6f3ba530e1abea79fb1ab2cb34aa5bd65 | [
"BSD-2-Clause"
] | null | null | null | //
// matcaffe.cpp provides a wrapper of the caffe::Net class as well as some
// caffe::Caffe functions so that one could easily call it from matlab.
// Note that for matlab, we will simply use float as the data type.
// these need to be included after boost on OS X
#include <string> // NOLINT(build/include_order)
#i... | 32.518 | 92 | 0.622486 | xiaomi646 |
457dfbafaa9141a0f680038f32d9ed0a3f4be5c7 | 2,373 | cpp | C++ | zinot-utils/zinot-utils/zimesh-json/ZimeshJsonDao.cpp | patrykbajos/zinot-project | f5ab158bce6855b25b7f23c873f64bc4a9c867ba | [
"MIT"
] | null | null | null | zinot-utils/zinot-utils/zimesh-json/ZimeshJsonDao.cpp | patrykbajos/zinot-project | f5ab158bce6855b25b7f23c873f64bc4a9c867ba | [
"MIT"
] | null | null | null | zinot-utils/zinot-utils/zimesh-json/ZimeshJsonDao.cpp | patrykbajos/zinot-project | f5ab158bce6855b25b7f23c873f64bc4a9c867ba | [
"MIT"
] | null | null | null | //
// Created by patryk on 01.11.16.
//
#include "ZimeshJsonDao.hpp"
namespace Zimesh
{
namespace RootKeys
{
static const QString matsKey = "materials";
static const QString meshesKey = "meshes";
static const QString objectsKey = "objects";
}
bool ZimeshJsonDao::loadFromJsonDoc(const QJsonDocument & jsonDoc)
{
... | 23.264706 | 84 | 0.654867 | patrykbajos |
4581249165c77cf827281593ce318225a20a6450 | 337 | cpp | C++ | Soldier_Alien/Medic.cpp | RoshanMhatre/cpp | 689f5b7a0b65b783c6f20c501321dceb187f21c8 | [
"MIT"
] | null | null | null | Soldier_Alien/Medic.cpp | RoshanMhatre/cpp | 689f5b7a0b65b783c6f20c501321dceb187f21c8 | [
"MIT"
] | null | null | null | Soldier_Alien/Medic.cpp | RoshanMhatre/cpp | 689f5b7a0b65b783c6f20c501321dceb187f21c8 | [
"MIT"
] | 1 | 2020-10-04T05:24:35.000Z | 2020-10-04T05:24:35.000Z |
#include <string>
#include "Medic.h"
void Medic::setHasMedicine(bool hasMedicineIn) {
hasMedicine = hasMedicineIn;
}
bool Medic:: getHasMedicine() {
return hasMedicine;
}
void Medic::attack(){
cout << "The Medic shoots his Laser Pistol at an enemy and quickly ducks behind cover to adminster pain meds to his comr... | 22.466667 | 136 | 0.732938 | RoshanMhatre |
458568cc1159697267ea27d53dc1042366646121 | 1,712 | hpp | C++ | Core/cpp/TBq25121.hpp | zaqwsx1277/prMobileReader | 83a13b821458bbe8d1ec46570828aa69d57254e2 | [
"MIT"
] | null | null | null | Core/cpp/TBq25121.hpp | zaqwsx1277/prMobileReader | 83a13b821458bbe8d1ec46570828aa69d57254e2 | [
"MIT"
] | null | null | null | Core/cpp/TBq25121.hpp | zaqwsx1277/prMobileReader | 83a13b821458bbe8d1ec46570828aa69d57254e2 | [
"MIT"
] | null | null | null | /*
* TBq25121.hpp
*
* Created on: Jul 8, 2021
* Author: AAL
*/
#ifndef CPP_TBQ25121_HPP_
#define CPP_TBQ25121_HPP_
#include <i2c.h>
#include <TUnit.hpp>
namespace unit {
constexpr uint8_t defBq25121Adrr { 0x6A } ; ///< I2C адрес чипа BQ25121
constexpr uint8_t defBq25121AddrRead { (defBq25121Adrr <... | 30.035088 | 106 | 0.691589 | zaqwsx1277 |
458e0d25fdc92876ede8278f3fcca7c0005f644b | 2,608 | cpp | C++ | src/Scene/TxWidgetPane.cpp | jimbo00000/Rift-Volume | 478779c8c38403ed37b3a6a9a19cc222ca95b8b4 | [
"MIT"
] | 1 | 2015-06-27T21:00:31.000Z | 2015-06-27T21:00:31.000Z | src/Scene/TxWidgetPane.cpp | jimbo00000/Rift-Volume | 478779c8c38403ed37b3a6a9a19cc222ca95b8b4 | [
"MIT"
] | null | null | null | src/Scene/TxWidgetPane.cpp | jimbo00000/Rift-Volume | 478779c8c38403ed37b3a6a9a19cc222ca95b8b4 | [
"MIT"
] | null | null | null | // TxWidgetPane.cpp
#include "TxWidgetPane.h"
#ifdef __APPLE__
#include "opengl/gl.h"
#endif
#ifdef _WIN32
# define WINDOWS_LEAN_AND_MEAN
# define NOMINMAX
# include <windows.h>
#endif
#define _USE_MATH_DEFINES
#include <math.h>
#include <stdlib.h>
#include <string.h>
#include <GL/glew.h>
... | 22.678261 | 94 | 0.640337 | jimbo00000 |
4594e56fa8091f501b33b73bce85c2bcafa76da4 | 758 | cpp | C++ | dataset/test/modification/1486_all/4/transformation_1.cpp | Karina5005/Plagiarism | ce11f72ba21a754ca84a27e5f26a31a19d6cb6fb | [
"MIT"
] | 3 | 2022-02-15T00:29:39.000Z | 2022-03-15T08:36:44.000Z | dataset/test/modification/1486_all/4/transformation_1.cpp | Kira5005-code/Plagiarism | ce11f72ba21a754ca84a27e5f26a31a19d6cb6fb | [
"MIT"
] | null | null | null | dataset/test/modification/1486_all/4/transformation_1.cpp | Kira5005-code/Plagiarism | ce11f72ba21a754ca84a27e5f26a31a19d6cb6fb | [
"MIT"
] | null | null | null | #include <iomanip>
#include <iostream>
#include <bits/stdc++.h>
using namespace std;
void ai() ;
int main() ;
void khi_beh() {
int ddk;
cin >> ddk;
vector<int> j(ddk);
for (auto &sdd_oyq : j)
cin >> sdd_oyq;
long long tj_ccb = 0, y = 0;
{
int pub_be = 0;
if (5 > 3) cout... | 16.12766 | 58 | 0.435356 | Karina5005 |
45aff9fed7cff72b5b613bab8974cb66edefd955 | 6,620 | cpp | C++ | AVTools/Module/PCMToWAV/PCMToWAV.cpp | XiaopingSun/AVTools | cd04e54036576c479debbb1f8cbefeceb0c16db9 | [
"MIT"
] | null | null | null | AVTools/Module/PCMToWAV/PCMToWAV.cpp | XiaopingSun/AVTools | cd04e54036576c479debbb1f8cbefeceb0c16db9 | [
"MIT"
] | null | null | null | AVTools/Module/PCMToWAV/PCMToWAV.cpp | XiaopingSun/AVTools | cd04e54036576c479debbb1f8cbefeceb0c16db9 | [
"MIT"
] | 1 | 2021-11-08T12:13:57.000Z | 2021-11-08T12:13:57.000Z | //
// PCMToWAV.cpp
// AVTools
//
// Created by WorkSpace_Sun on 2021/5/9.
//
#include "PCMToWAV.h"
#include <getopt.h>
#include <CoreFoundation/CoreFoundation.h>
#include <stdlib.h>
// 所谓的大端模式(Big Endian),是指数据的低位保存在内存的高地址中,而数据的高位,保存在内存的低地址中。
// 所谓的小端模式(Little Endian),是指数据的低位保存在内存的低地址中,而数据的高位保存在内存的高地址中。
#pragma pa... | 32.772277 | 134 | 0.601511 | XiaopingSun |
45b6295285df781545c08f304980377cfff86766 | 1,470 | cpp | C++ | KiteOpenGLDriverCore/manager/KiteDriverInputManager.cpp | awyhhwxz/KiteOpenGLDriver | cce0a67b93431d3958a485d0cc9420ecb6295d42 | [
"BSD-3-Clause"
] | 2 | 2018-08-19T04:08:00.000Z | 2018-08-19T04:08:44.000Z | KiteOpenGLDriverCore/manager/KiteDriverInputManager.cpp | awyhhwxz/KiteOpenGLDriver | cce0a67b93431d3958a485d0cc9420ecb6295d42 | [
"BSD-3-Clause"
] | null | null | null | KiteOpenGLDriverCore/manager/KiteDriverInputManager.cpp | awyhhwxz/KiteOpenGLDriver | cce0a67b93431d3958a485d0cc9420ecb6295d42 | [
"BSD-3-Clause"
] | null | null | null | #include "stdafx.h"
#include "KiteDriverInputManager.h"
namespace kite_driver
{
void KiteDriverInputManager::RegistryMouseMessageReceiver(std::shared_ptr<IMouseMessageReceiver> receiver)
{
_mouseMessageReceiver.push_back(receiver);
}
void KiteDriverInputManager::InvokeButtonDown(MouseButtonType button_type, cons... | 38.684211 | 158 | 0.785034 | awyhhwxz |
45b89169106cf3f68aeeb7eb3f8d04df6ef4e7f5 | 2,181 | cpp | C++ | test/test_02.cpp | shogun-toolbox/linger | 953628ef636b7f87f5cdcbc6dd7367a1476ebc39 | [
"BSD-3-Clause"
] | 1 | 2020-04-26T09:45:32.000Z | 2020-04-26T09:45:32.000Z | test/test_02.cpp | shogun-toolbox/linger | 953628ef636b7f87f5cdcbc6dd7367a1476ebc39 | [
"BSD-3-Clause"
] | 2 | 2019-11-12T16:09:31.000Z | 2020-09-09T18:52:43.000Z | test/test_02.cpp | shogun-toolbox/linger | 953628ef636b7f87f5cdcbc6dd7367a1476ebc39 | [
"BSD-3-Clause"
] | 3 | 2019-11-11T15:55:48.000Z | 2020-06-02T20:33:48.000Z | #include "linear_algebra.hpp"
#include "test_new_number.hpp"
#include "test_new_engine.hpp"
#include "test_new_arithmetic.hpp"
using cx_float = std::complex<float>;
using cx_double = std::complex<double>;
using cx_newnum = std::complex<NewNum>;
using namespace STD_LA;
void t101()
{
PRINT_FN_NAME(t101);
fs_m... | 21.174757 | 50 | 0.559835 | shogun-toolbox |
45c1b6288ccde4ba47fe83d58fa7ff82b571c092 | 127 | cpp | C++ | src/engine/MeshRenderer.cpp | alextrevisan/3dfx-glide-game-engine | 9a47c65d3705fb7b43e59cf90432b053f467e844 | [
"MIT"
] | 4 | 2020-06-02T22:29:11.000Z | 2021-03-01T18:38:18.000Z | src/engine/MeshRenderer.cpp | alextrevisan/3dfx-glide-game-engine | 9a47c65d3705fb7b43e59cf90432b053f467e844 | [
"MIT"
] | null | null | null | src/engine/MeshRenderer.cpp | alextrevisan/3dfx-glide-game-engine | 9a47c65d3705fb7b43e59cf90432b053f467e844 | [
"MIT"
] | null | null | null | #include "MeshRenderer.h"
MeshRenderer::MeshRenderer()
:GameObject("MeshRenderer")
{
}
void MeshRenderer::Update()
{
}
| 9.769231 | 31 | 0.692913 | alextrevisan |
68fc1d644f353ea4abead2552f172650cf4ae0aa | 6,065 | cpp | C++ | src/matrix.cpp | BrettAM/Cs404DataMining | 64a68725e35b9ba14f604cb4e6934e979048a97f | [
"Apache-2.0"
] | null | null | null | src/matrix.cpp | BrettAM/Cs404DataMining | 64a68725e35b9ba14f604cb4e6934e979048a97f | [
"Apache-2.0"
] | null | null | null | src/matrix.cpp | BrettAM/Cs404DataMining | 64a68725e35b9ba14f604cb4e6934e979048a97f | [
"Apache-2.0"
] | null | null | null | #include "matrix.hpp"
Matrix::Matrix(size_t rows, size_t columns)
: rows(rows), cols(columns) {
data = new double[rows*cols];
}
Matrix::Matrix(size_t rows, size_t columns, double initialValue)
: rows(rows), cols(columns) {
data = new double[rows*cols];
fill(initialValue);
}
Matrix::Matrix(std::init... | 28.209302 | 75 | 0.527947 | BrettAM |
68fe984a3f8775aa1fdfdcf7ba643fba84a6bcab | 2,032 | cpp | C++ | test/feasibility_test_files/test_standardize_viz_data.cpp | stevenjj/icra2020locomanipulation | 414085b68cc1b3b24f7b920b543bba9d95350c16 | [
"MIT"
] | 5 | 2020-01-06T11:43:18.000Z | 2021-12-14T22:59:09.000Z | test/feasibility_test_files/test_standardize_viz_data.cpp | stevenjj/icra2020locomanipulation | 414085b68cc1b3b24f7b920b543bba9d95350c16 | [
"MIT"
] | null | null | null | test/feasibility_test_files/test_standardize_viz_data.cpp | stevenjj/icra2020locomanipulation | 414085b68cc1b3b24f7b920b543bba9d95350c16 | [
"MIT"
] | 2 | 2020-09-03T16:08:34.000Z | 2022-02-17T11:13:49.000Z | #include <avatar_locomanipulation/helpers/yaml_data_saver.hpp>
#include <avatar_locomanipulation/helpers/param_handler.hpp>
#include <iostream>
#include <fstream>
int main(int argc, char ** argv){
// Define the strings for getting and printing values
std::string score_string;
std::string position_string;
// The... | 32.253968 | 78 | 0.736713 | stevenjj |
ec0106a4543ee9b46abe4c2f844a07ebdec9e626 | 1,113 | cpp | C++ | src/timeAttack.cpp | CIA-hideout/pongstar | e32eb46963790895cad069a40b35f0616626ac70 | [
"MIT"
] | 2 | 2017-01-15T07:08:39.000Z | 2020-02-23T07:48:37.000Z | src/timeAttack.cpp | CIA-hideout/pongstar | e32eb46963790895cad069a40b35f0616626ac70 | [
"MIT"
] | 47 | 2017-01-21T17:55:26.000Z | 2021-03-22T10:12:48.000Z | src/timeAttack.cpp | CIA-hideout/pongstar | e32eb46963790895cad069a40b35f0616626ac70 | [
"MIT"
] | 1 | 2018-04-09T13:09:50.000Z | 2018-04-09T13:09:50.000Z | #include "timeAttack.h"
TimeAttack::TimeAttack(Game* g, Audio* a, DataManager* dm, FontManager* fm, TextureManagerMap t) :
PongstarBase(g, a, dm, fm, t) {
sceneType = sceneNS::TIME_ATK;
sceneData.gameMode = sceneNS::GM_TIME_ATK;
}
TimeAttack::~TimeAttack() {}
void TimeAttack::update(float frameTime) {
PongstarBa... | 29.289474 | 105 | 0.739443 | CIA-hideout |
ec0118b79e04964c3b0d13e96f510fbd14431049 | 15,632 | hpp | C++ | include/strf/detail/input_types/join.hpp | eyalroz/strf | 94cd5aef40530269da0727178017cb4a8992c5dc | [
"BSL-1.0"
] | null | null | null | include/strf/detail/input_types/join.hpp | eyalroz/strf | 94cd5aef40530269da0727178017cb4a8992c5dc | [
"BSL-1.0"
] | 18 | 2019-12-13T15:52:26.000Z | 2020-01-17T14:51:33.000Z | include/strf/detail/input_types/join.hpp | eyalroz/strf | 94cd5aef40530269da0727178017cb4a8992c5dc | [
"BSL-1.0"
] | 1 | 2021-12-23T05:53:22.000Z | 2021-12-23T05:53:22.000Z | #ifndef STRF_JOIN_HPP
#define STRF_JOIN_HPP
// Distributed under the Boost Software License, Version 1.0.
// (See accompanying file LICENSE_1_0.txt or copy at
// http://www.boost.org/LICENSE_1_0.txt)
#include <strf/detail/facets/encoding.hpp>
#include <strf/detail/printers_tuple.hpp>
#include <strf/detail/format_f... | 30.711198 | 109 | 0.623912 | eyalroz |
ec0bc2f4c77ab6f3feabe0e28166fcc5edc76ffe | 7,729 | cpp | C++ | tools/gentab/gentab_web.cpp | t-weber/libcrystal | 2611288014047fe60010ee1b963a9e686b6ea77a | [
"BSL-1.0"
] | null | null | null | tools/gentab/gentab_web.cpp | t-weber/libcrystal | 2611288014047fe60010ee1b963a9e686b6ea77a | [
"BSL-1.0"
] | null | null | null | tools/gentab/gentab_web.cpp | t-weber/libcrystal | 2611288014047fe60010ee1b963a9e686b6ea77a | [
"BSL-1.0"
] | null | null | null | /**
* Creates needed tables
* @author Tobias Weber <tobias.weber@tum.de>
* @date nov-2015
* @license GPLv2
*/
// ============================================================================
t_cplx get_number(std::string str)
{
tl::string_rm<std::string>(str, "(", ")");
if(tl::string_rm<std::string>(str, "<i... | 25.592715 | 105 | 0.608746 | t-weber |
ec0cc7d81f0abeeb5d90d161bacf346797f7866a | 387 | hxx | C++ | source/code/framework/framework_base/public/ice/game_sprites.hxx | iceshard-engine/engine | 4f2092af8d2d389ea72addc729d0c2c8d944c95c | [
"BSD-3-Clause-Clear"
] | 39 | 2019-08-17T09:08:51.000Z | 2022-02-13T10:14:19.000Z | source/code/framework/framework_base/public/ice/game_sprites.hxx | iceshard-engine/engine | 4f2092af8d2d389ea72addc729d0c2c8d944c95c | [
"BSD-3-Clause-Clear"
] | 63 | 2020-05-22T16:09:30.000Z | 2022-01-21T14:24:05.000Z | source/code/framework/framework_base/public/ice/game_sprites.hxx | iceshard-engine/engine | 4f2092af8d2d389ea72addc729d0c2c8d944c95c | [
"BSD-3-Clause-Clear"
] | null | null | null | #pragma once
#include <ice/stringid.hxx>
namespace ice
{
struct Sprite
{
static constexpr ice::StringID Identifier = "ice.component.sprite"_sid;
ice::StringID material;
};
struct SpriteTile
{
static constexpr ice::StringID Identifier = "ice.component.sprite-tile"_sid;
... | 17.590909 | 84 | 0.633075 | iceshard-engine |
ec1e70a04fc642a55ae24914db9b39fef010b14b | 2,248 | cpp | C++ | src/utils/hashUtils.cpp | athanor/athanor | 0e7a654c360be05dc6f6e50427b2ee3df92c1aaf | [
"BSD-3-Clause"
] | 4 | 2018-08-31T09:44:52.000Z | 2021-03-01T19:10:00.000Z | src/utils/hashUtils.cpp | athanor/athanor | 0e7a654c360be05dc6f6e50427b2ee3df92c1aaf | [
"BSD-3-Clause"
] | 21 | 2019-12-29T08:33:34.000Z | 2020-11-22T16:38:37.000Z | src/utils/hashUtils.cpp | athanor/athanor | 0e7a654c360be05dc6f6e50427b2ee3df92c1aaf | [
"BSD-3-Clause"
] | null | null | null | #include "utils/hashUtils.h"
#include <iostream>
#include <utility>
#include "MurmurHash3.h"
#include "base/intSize.h"
#include "picosha2.h"
HashType::HashType(UInt64 value) : value(value) {}
HashType HashType::operator+(const HashType other) const {
return HashType(value + other.value);
}
HashType HashType::ope... | 26.761905 | 78 | 0.686833 | athanor |
ec1fb3070f4db57c566db41aafab782eb10dd4f9 | 4,948 | cpp | C++ | source/tm/test/block.cpp | davidstone/technical-machine | fea3306e58cd026846b8f6c71d51ffe7bab05034 | [
"BSL-1.0"
] | 7 | 2021-03-05T16:50:19.000Z | 2022-02-02T04:30:07.000Z | source/tm/test/block.cpp | davidstone/technical-machine | fea3306e58cd026846b8f6c71d51ffe7bab05034 | [
"BSL-1.0"
] | 47 | 2021-02-01T18:54:23.000Z | 2022-03-06T19:06:16.000Z | source/tm/test/block.cpp | davidstone/technical-machine | fea3306e58cd026846b8f6c71d51ffe7bab05034 | [
"BSL-1.0"
] | 1 | 2021-01-28T13:10:41.000Z | 2021-01-28T13:10:41.000Z | // Copyright David Stone 2020.
// Distributed under the Boost Software License, Version 1.0.
// (See accompanying file LICENSE_1_0.txt or copy at
// http://www.boost.org/LICENSE_1_0.txt)
#include <tm/block.hpp>
#include <tm/move/moves.hpp>
#include <tm/pokemon/species.hpp>
#include <tm/stat/ev.hpp>
#include <tm/sta... | 25.244898 | 111 | 0.732215 | davidstone |
ec254026c4fed8d88ff0e1aa5250152369341426 | 2,653 | hpp | C++ | libember/Headers/ember/glow/CommandType.hpp | purefunsolutions/ember-plus | d022732f2533ad697238c6b5210d7fc3eb231bfc | [
"BSL-1.0"
] | 78 | 2015-07-31T14:46:38.000Z | 2022-03-28T09:28:28.000Z | libember/Headers/ember/glow/CommandType.hpp | purefunsolutions/ember-plus | d022732f2533ad697238c6b5210d7fc3eb231bfc | [
"BSL-1.0"
] | 81 | 2015-08-03T07:58:19.000Z | 2022-02-28T16:21:19.000Z | libember/Headers/ember/glow/CommandType.hpp | purefunsolutions/ember-plus | d022732f2533ad697238c6b5210d7fc3eb231bfc | [
"BSL-1.0"
] | 49 | 2015-08-03T12:53:10.000Z | 2022-03-17T17:25:49.000Z | /*
libember -- C++ 03 implementation of the Ember+ Protocol
Copyright (C) 2012-2016 Lawo GmbH (http://www.lawo.com).
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 __LIBEMBER_GLOW_COMMANDTYPE... | 27.635417 | 91 | 0.499435 | purefunsolutions |
ec25688944aeaa1f77c7dfe92e3e35517c030487 | 3,728 | hpp | C++ | packages/monte_carlo/collision/electron/src/MonteCarlo_CoupledElasticAdjointElectroatomicReaction.hpp | bam241/FRENSIE | e1760cd792928699c84f2bdce70ff54228e88094 | [
"BSD-3-Clause"
] | 10 | 2019-11-14T19:58:30.000Z | 2021-04-04T17:44:09.000Z | packages/monte_carlo/collision/electron/src/MonteCarlo_CoupledElasticAdjointElectroatomicReaction.hpp | bam241/FRENSIE | e1760cd792928699c84f2bdce70ff54228e88094 | [
"BSD-3-Clause"
] | 43 | 2020-03-03T19:59:20.000Z | 2021-09-08T03:36:08.000Z | packages/monte_carlo/collision/electron/src/MonteCarlo_CoupledElasticAdjointElectroatomicReaction.hpp | bam241/FRENSIE | e1760cd792928699c84f2bdce70ff54228e88094 | [
"BSD-3-Clause"
] | 6 | 2020-02-12T17:37:07.000Z | 2020-09-08T18:59:51.000Z | //---------------------------------------------------------------------------//
//!
//! \file MonteCarlo_CoupledElasticAdjointElectroatomicReaction.hpp
//! \author Luke Kersting
//! \brief The coupled scattering elastic adjoint electroatomic reaction class decl.
//!
//------------------------------------------------... | 41.422222 | 149 | 0.680258 | bam241 |
ec2a8c285241a13f5eef844047fb1e57b4ff992e | 2,777 | cpp | C++ | src/sources.cpp | jake-stewart/fcd | 333d1195cd225f07d90ac487eaaae792af28b5bb | [
"MIT"
] | null | null | null | src/sources.cpp | jake-stewart/fcd | 333d1195cd225f07d90ac487eaaae792af28b5bb | [
"MIT"
] | null | null | null | src/sources.cpp | jake-stewart/fcd | 333d1195cd225f07d90ac487eaaae792af28b5bb | [
"MIT"
] | null | null | null | #include "../include/sources.hpp"
#include "../include/util.hpp"
#include <fstream>
bool compareSources(Source& l, Source& r) {
return (l.getHeuristic() < r.getHeuristic());
}
bool compareSourcesAlpha(Source& l, Source& r) {
return (l.getName() > r.getName());
}
bool Sources::hasHeuristic() {
return m_h... | 23.141667 | 66 | 0.517465 | jake-stewart |
ec2d3aad781b11c012dd86e53a71902d93a544fa | 9,466 | cpp | C++ | src/d3d12/D3D12TLAccelerationStructure.cpp | amc522/DX12Scrap | d00aa6ae27a9a0594ce08739af564992f773d916 | [
"MIT"
] | 1 | 2022-03-23T23:50:58.000Z | 2022-03-23T23:50:58.000Z | src/d3d12/D3D12TLAccelerationStructure.cpp | amc522/DX12Scrap | d00aa6ae27a9a0594ce08739af564992f773d916 | [
"MIT"
] | null | null | null | src/d3d12/D3D12TLAccelerationStructure.cpp | amc522/DX12Scrap | d00aa6ae27a9a0594ce08739af564992f773d916 | [
"MIT"
] | null | null | null | #include "D3D12TLAccelerationStructure.h"
#include "SpanUtility.h"
#include "d3d12/D3D12Context.h"
#include <d3dx12.h>
#include <fmt/format.h>
namespace scrap::d3d12
{
TLAccelerationStructure::TLAccelerationStructure(const TLAccelerationStructureParams& params): mParams(params)
{
resizeInstanceDescsBuffer((uint3... | 39.940928 | 118 | 0.745933 | amc522 |
ec33efdf2740ea12d73fc3b379caa7e9e8e9037b | 21,411 | cpp | C++ | Samples/Win7Samples/multimedia/WMP/Wizards/services/templates/1033/Type1/GetInfo.cpp | windows-development/Windows-classic-samples | 96f883e4c900948e39660ec14a200a5164a3c7b7 | [
"MIT"
] | 8 | 2017-04-30T17:38:27.000Z | 2021-11-29T00:59:03.000Z | Samples/Win7Samples/multimedia/WMP/Wizards/services/templates/1033/Type1/GetInfo.cpp | TomeSq/Windows-classic-samples | 96f883e4c900948e39660ec14a200a5164a3c7b7 | [
"MIT"
] | null | null | null | Samples/Win7Samples/multimedia/WMP/Wizards/services/templates/1033/Type1/GetInfo.cpp | TomeSq/Windows-classic-samples | 96f883e4c900948e39660ec14a200a5164a3c7b7 | [
"MIT"
] | 2 | 2020-08-11T13:21:49.000Z | 2021-09-01T10:41:51.000Z | #include "stdafx.h"
#include "[!output root].h"
////////////////////////////////////////////////////////////////////
// C[!output Safe_root]
// GetItemInfo method
// GetContentPartnerInfo method
// GetStreamingURL method
// GetCatalogURL method
// GetTemplate method
//
// Copyright (c) Micros... | 24.983664 | 116 | 0.570875 | windows-development |
ec341849a7e98609cf307c95d79d0d5b4ced21e4 | 4,904 | hpp | C++ | Source/AllProjects/CQCIntf/CQCIntfEd/CQCIntfEd_EditXlatsDlg_.hpp | MarkStega/CQC | c1d0e01ec2abcaa5b8eb1899b9f0522fecee4b07 | [
"MIT"
] | 51 | 2020-12-26T18:17:16.000Z | 2022-03-15T04:29:35.000Z | Source/AllProjects/CQCIntf/CQCIntfEd/CQCIntfEd_EditXlatsDlg_.hpp | MarkStega/CQC | c1d0e01ec2abcaa5b8eb1899b9f0522fecee4b07 | [
"MIT"
] | null | null | null | Source/AllProjects/CQCIntf/CQCIntfEd/CQCIntfEd_EditXlatsDlg_.hpp | MarkStega/CQC | c1d0e01ec2abcaa5b8eb1899b9f0522fecee4b07 | [
"MIT"
] | 4 | 2020-12-28T07:24:39.000Z | 2021-12-29T12:09:37.000Z | //
// FILE NAME: CQCIntfEd_EditXlatsDlg_.hpp
//
// AUTHOR: Dean Roddey
//
// CREATED: 12/21/2015
//
// COPYRIGHT: Charmed Quark Systems, Ltd @ 2020
//
// This software is copyrighted by 'Charmed Quark Systems, Ltd' and
// the author (Dean Roddey.) It is licensed under the MIT Open Source
// license:
//
// https:/... | 32.263158 | 85 | 0.385196 | MarkStega |
ec384b87b498a5ebbe84e053831d8c2e5ef35a3b | 151 | cpp | C++ | chapters/fact.cpp | Raymain1944/CPPLv1 | 96e5fd5347a336870fc868206ebfe44f88ce69eb | [
"Apache-2.0"
] | null | null | null | chapters/fact.cpp | Raymain1944/CPPLv1 | 96e5fd5347a336870fc868206ebfe44f88ce69eb | [
"Apache-2.0"
] | null | null | null | chapters/fact.cpp | Raymain1944/CPPLv1 | 96e5fd5347a336870fc868206ebfe44f88ce69eb | [
"Apache-2.0"
] | null | null | null | int fact(int number) {
int a = 1;
while (number > 1) {
a *= number--;
}
if (number == 0) {
a = 1;
}
return a;
} | 15.1 | 24 | 0.384106 | Raymain1944 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.