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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
5f163c8398ca81f8e77e5159636b862ad4a1a999 | 465 | hpp | C++ | software/tester_LPC824HI33_W25Q32BV/inc/spi.hpp | Squantor/squantlogger | 2859a6c16b3a8c444b49d01033879574af024fbf | [
"MIT"
] | 1 | 2021-01-09T19:17:30.000Z | 2021-01-09T19:17:30.000Z | software/tester_LPC824HI33_W25Q32BV/inc/spi.hpp | Squantor/squantlogger | 2859a6c16b3a8c444b49d01033879574af024fbf | [
"MIT"
] | null | null | null | software/tester_LPC824HI33_W25Q32BV/inc/spi.hpp | Squantor/squantlogger | 2859a6c16b3a8c444b49d01033879574af024fbf | [
"MIT"
] | null | null | null | /*
* SPDX-License-Identifier: MIT
*
* Copyright (c) 2021 Bart Bilos
* For conditions of distribution and use, see LICENSE file
*/
/**
* \file spi.hpp
*
* Definition for a spi class
*
*/
#ifndef SPI_HPP
#define SPI_HPP
#include <mcu_ll.h>
void spiTxRxDeviceBlock(LPC_SPI_T * pSPI, uint32_t TxSlaveSel, con... | 22.142857 | 121 | 0.71828 | Squantor |
5f1dd5984988a8a012a1242149733e472cb5676c | 4,528 | cpp | C++ | tests/test_Direct_Detection_Crystal.cpp | temken/DM_Detection | bc3db0bd8e0293659c216d2a47af0217224d87c5 | [
"MIT"
] | 2 | 2021-02-04T08:37:57.000Z | 2021-12-03T16:02:52.000Z | tests/test_Direct_Detection_Crystal.cpp | temken/DM_Detection | bc3db0bd8e0293659c216d2a47af0217224d87c5 | [
"MIT"
] | 21 | 2020-05-06T12:52:11.000Z | 2022-03-31T13:11:23.000Z | tests/test_Direct_Detection_Crystal.cpp | temken/DM_Detection | bc3db0bd8e0293659c216d2a47af0217224d87c5 | [
"MIT"
] | 1 | 2022-01-03T03:53:50.000Z | 2022-01-03T03:53:50.000Z | #include "gtest/gtest.h"
#include "obscura/Direct_Detection_Crystal.hpp"
#include "libphysica/Natural_Units.hpp"
#include "obscura/DM_Halo_Models.hpp"
#include "obscura/DM_Particle_Standard.hpp"
#include "obscura/Target_Crystal.hpp"
using namespace obscura;
using namespace libphysica::natural_units;
TEST(TestDirec... | 29.594771 | 121 | 0.720406 | temken |
5f26cb91e5894cc99233ca24af3699728db7c329 | 6,192 | cpp | C++ | ogreconsole.cpp | Sgw32/R3E | 8a55dd137d9e102cf4c9c2fee3d89901bdefa3cd | [
"MIT"
] | 7 | 2017-11-27T15:15:08.000Z | 2021-03-29T16:53:22.000Z | ogreconsole.cpp | Sgw32/R3E | 8a55dd137d9e102cf4c9c2fee3d89901bdefa3cd | [
"MIT"
] | null | null | null | ogreconsole.cpp | Sgw32/R3E | 8a55dd137d9e102cf4c9c2fee3d89901bdefa3cd | [
"MIT"
] | 4 | 2017-11-28T02:53:19.000Z | 2021-01-29T10:37:52.000Z | /////////////////////////////////////////////////////////////////////
///////////////Original file by:Fyodor Zagumennov aka Sgw32//////////
///////////////Copyright(c) 2010 Fyodor Zagumennov //////////
/////////////////////////////////////////////////////////////////////
#include "OgreConsole.h"
#include "Display.h... | 26.348936 | 113 | 0.591408 | Sgw32 |
5f2b1dfc3d96243cd18f4989bfb5c77561cb3926 | 1,179 | cpp | C++ | src/ShaderNecromanter.cpp | DawidPi/OpenGLSampleScene | f92ef1dae3bbbae42e94be072a6db0782123b5ef | [
"BSD-4-Clause"
] | null | null | null | src/ShaderNecromanter.cpp | DawidPi/OpenGLSampleScene | f92ef1dae3bbbae42e94be072a6db0782123b5ef | [
"BSD-4-Clause"
] | null | null | null | src/ShaderNecromanter.cpp | DawidPi/OpenGLSampleScene | f92ef1dae3bbbae42e94be072a6db0782123b5ef | [
"BSD-4-Clause"
] | null | null | null | //
// Created by dapl on 2017-05-11.
//
#include <vector>
#include <stdexcept>
#include <fstream>
#include "ShaderNecromanter.hpp"
GLuint ShaderNecromanter::spawnShader(GLuint shaderType, const char *shaderPath) {
auto createdShader = glCreateShader(shaderType);
std::string stream;
std::ifstream createdSh... | 31.864865 | 112 | 0.71162 | DawidPi |
5f2c7bce6ec2e8be4dad5431d2398493de26bb10 | 437 | cpp | C++ | chapter4_stack.cpp | blueswhy/SummaryofLeetcode | 559e11b5c868b22ab3067b113ee7fdb936d9a665 | [
"MIT"
] | 1 | 2020-08-10T07:21:52.000Z | 2020-08-10T07:21:52.000Z | chapter4_stack.cpp | blueswhy/SummaryofLeetcode | 559e11b5c868b22ab3067b113ee7fdb936d9a665 | [
"MIT"
] | null | null | null | chapter4_stack.cpp | blueswhy/SummaryofLeetcode | 559e11b5c868b22ab3067b113ee7fdb936d9a665 | [
"MIT"
] | null | null | null | #include "chapter4_stack.h"
int main(){
string s = "(()))(";
Solution_stack testStk;
int lenValid = testStk.longestValidParentheses(s);
cout << "Longest Valid Parentheses of "<< s << " is :" << lenValid << endl;
vector<string> exp1{"4", "13", "5", "/", " ", "+"};
cout << "The result o... | 31.214286 | 101 | 0.574371 | blueswhy |
5f31db8798377152bfb339fb3f044874655b6ef8 | 1,076 | cpp | C++ | codeforces/489C - Given Length and Sum of Digits....cpp | shadowusr/competitive | a8c79246a6addf44f43a7c7d219ea5c470adcbe9 | [
"MIT"
] | null | null | null | codeforces/489C - Given Length and Sum of Digits....cpp | shadowusr/competitive | a8c79246a6addf44f43a7c7d219ea5c470adcbe9 | [
"MIT"
] | null | null | null | codeforces/489C - Given Length and Sum of Digits....cpp | shadowusr/competitive | a8c79246a6addf44f43a7c7d219ea5c470adcbe9 | [
"MIT"
] | null | null | null | #include <algorithm>
#include <iostream>
#include <vector>
#include <cmath>
#include <set>
#include <unordered_map>
#include <queue>
#include <cstring>
#include <iomanip>
using namespace std;
int main() {
cin.tie(nullptr);
ios::sync_with_stdio(false);
int len, sum;
cin >> len >> sum;
if ((sum ==... | 20.301887 | 51 | 0.401487 | shadowusr |
5f38cf6381e5b5328cdf3a1da85a7194240e5e9f | 20,628 | hpp | C++ | src/main.hpp | xetqL/SPEC | b23b05d2089376e9ab6dc72443f1866432420ef9 | [
"MIT"
] | null | null | null | src/main.hpp | xetqL/SPEC | b23b05d2089376e9ab6dc72443f1866432420ef9 | [
"MIT"
] | null | null | null | src/main.hpp | xetqL/SPEC | b23b05d2089376e9ab6dc72443f1866432420ef9 | [
"MIT"
] | null | null | null | //
// Created by xetql on 2/25/19.
//
#ifndef SPEC_MAIN_HPP
#define SPEC_MAIN_HPP
#include <vector>
#include <random>
#include <algorithm>
#include "../include/cell.hpp"
#define WATER_TYPE 1
#define ROCK_TYPE 0
#define EMPTY_TYPE -1
const float bytes_per_flop = 2.77f;
std::random_device rd;
std::mt19937 gen(rd());
... | 40.928571 | 284 | 0.551968 | xetqL |
5f3f4d3d3e3814ed448b9115564ac3f0c559ede0 | 698 | cpp | C++ | 3D/DistanceAndArea.cpp | xwen99/Computational-Geometry-Algorithm-Library | f3aa36217f17860f4cd87f93b63b253ad7b93b6f | [
"MIT"
] | 5 | 2019-07-08T14:00:26.000Z | 2021-07-21T08:08:01.000Z | 3D/DistanceAndArea.cpp | xwen99/Computational-Geometry-Algorithm-Library | f3aa36217f17860f4cd87f93b63b253ad7b93b6f | [
"MIT"
] | null | null | null | 3D/DistanceAndArea.cpp | xwen99/Computational-Geometry-Algorithm-Library | f3aa36217f17860f4cd87f93b63b253ad7b93b6f | [
"MIT"
] | 2 | 2019-10-12T08:43:55.000Z | 2020-06-19T13:14:30.000Z | double Area2(const Point3 &A, const Point3 &B, const Point3 &C) { return Length(Cross(B - A, C - A)); }
//点P到直线AB的距离
double DistanceToLine(Point3 P, Point3 A, Point3 B)
{
Vector3 v1 = B - A, v2 = P - A;
reutrn Length(Cross(v1, v2)) / Length(v1);
}
//点P到线段AB的距离
double DistanceToSegment(Point3 P, Point3 A, Point3 B)
{... | 26.846154 | 103 | 0.62894 | xwen99 |
5f40fdf3f88a67d4bcba8af45345b4cc618218c6 | 1,495 | cpp | C++ | src/lib/logical_query_plan/create_view_node.cpp | IanJamesMcKay/InMemoryDB | a267d9522926eca9add2ad4512f8ce352daac879 | [
"MIT"
] | 1 | 2021-04-14T11:16:52.000Z | 2021-04-14T11:16:52.000Z | src/lib/logical_query_plan/create_view_node.cpp | IanJamesMcKay/InMemoryDB | a267d9522926eca9add2ad4512f8ce352daac879 | [
"MIT"
] | null | null | null | src/lib/logical_query_plan/create_view_node.cpp | IanJamesMcKay/InMemoryDB | a267d9522926eca9add2ad4512f8ce352daac879 | [
"MIT"
] | 1 | 2020-11-30T13:11:04.000Z | 2020-11-30T13:11:04.000Z | #include "create_view_node.hpp"
#include <sstream>
#include <string>
namespace opossum {
CreateViewNode::CreateViewNode(const std::string& view_name, const std::shared_ptr<const AbstractLQPNode>& lqp)
: AbstractLQPNode(LQPNodeType::CreateView), _view_name(view_name), _lqp(lqp) {}
std::string CreateViewNode::vie... | 35.595238 | 112 | 0.755853 | IanJamesMcKay |
5f43330d8656a377996925e898edc325248313c0 | 3,022 | cpp | C++ | src/MorseCodeConverter.cpp | Cyberah/Morse-Code-Converter-Qt5 | b73371444989eb2918b7dc9c6566689b58df9d0b | [
"MIT"
] | null | null | null | src/MorseCodeConverter.cpp | Cyberah/Morse-Code-Converter-Qt5 | b73371444989eb2918b7dc9c6566689b58df9d0b | [
"MIT"
] | 5 | 2020-05-20T18:12:13.000Z | 2020-06-13T20:37:33.000Z | src/MorseCodeConverter.cpp | Cyberah/Morse-Code-Converter-Qt5 | b73371444989eb2918b7dc9c6566689b58df9d0b | [
"MIT"
] | 1 | 2022-03-31T13:40:26.000Z | 2022-03-31T13:40:26.000Z | #include "MorseCodeConverter.h"
#include "myrandom.h"
#include <algorithm>
#include <sstream>
std::unordered_map<char, QString> MorseCodeConverter::morseCodes {
{ ':', "___..." }, { '8', "___.." },
{ '0', "_____" }, { 'Q', "__._" },
{ 'A', "._" }, { 'D', "_.." },
{ 'O', "___" }, { '_'... | 35.139535 | 133 | 0.420251 | Cyberah |
5f46354e2e9881ead1100cc0098b714cffa86388 | 20,270 | cpp | C++ | lib/MemoryAnalysisModules/SCEVAA.cpp | sgh185/SCAF | 715a5e50fca0fbff2dc8e3cddafa2d71ae7aa018 | [
"MIT"
] | 22 | 2020-08-01T18:09:11.000Z | 2022-03-22T08:56:05.000Z | lib/MemoryAnalysisModules/SCEVAA.cpp | sgh185/SCAF | 715a5e50fca0fbff2dc8e3cddafa2d71ae7aa018 | [
"MIT"
] | 4 | 2021-02-23T01:27:53.000Z | 2021-04-19T22:11:39.000Z | lib/MemoryAnalysisModules/SCEVAA.cpp | sgh185/SCAF | 715a5e50fca0fbff2dc8e3cddafa2d71ae7aa018 | [
"MIT"
] | 4 | 2020-09-17T17:24:22.000Z | 2022-03-22T09:12:19.000Z | #define DEBUG_TYPE "scalar-evolution-aa"
#include "llvm/ADT/Statistic.h"
#include "llvm/Analysis/ScalarEvolutionExpressions.h"
#include "llvm/IR/Constants.h"
#include "llvm/IR/LLVMContext.h"
#include "llvm/IR/Module.h"
#include "llvm/IR/Operator.h"
#include "llvm/Pass.h"
#include "llvm/Support/Debug.h"
#include "scaf... | 35.437063 | 80 | 0.58742 | sgh185 |
5f4d7206c8763bf0092489c4db2705f49282ab83 | 6,956 | cc | C++ | sample/tree_dmrg.cc | tgingrich/ITensor | 1b6148885aa6cec18e3a47eba161e0bb45bba789 | [
"Apache-2.0"
] | null | null | null | sample/tree_dmrg.cc | tgingrich/ITensor | 1b6148885aa6cec18e3a47eba161e0bb45bba789 | [
"Apache-2.0"
] | null | null | null | sample/tree_dmrg.cc | tgingrich/ITensor | 1b6148885aa6cec18e3a47eba161e0bb45bba789 | [
"Apache-2.0"
] | 1 | 2021-01-15T09:08:36.000Z | 2021-01-15T09:08:36.000Z | #include "itensor/all.h"
#include "itensor/util/print_macro.h"
using namespace itensor;
int main(int argc, char** argv)
{
// for(double lc = atof(argv[1]); lc <= atof(argv[2]); lc += atof(argv[3]))
// {
// for(double lo = atof(argv[1]); lo <= atof(argv[2]); lo += atof(argv[3]))
// {
int N = 64;
auto sites = Spi... | 34.78 | 177 | 0.543991 | tgingrich |
5f513718eee97b1baea2ed4928b1f2ba3919646a | 1,078 | hpp | C++ | src/Base/Modules/ResultsSaver.hpp | PhilipVinc/PincoSimulator | 562192cf3b09d0e67be7e6fee67ff9b59fbc3fd3 | [
"MIT"
] | 1 | 2017-10-23T13:22:01.000Z | 2017-10-23T13:22:01.000Z | src/Base/Modules/ResultsSaver.hpp | PhilipVinc/PincoSimulator | 562192cf3b09d0e67be7e6fee67ff9b59fbc3fd3 | [
"MIT"
] | null | null | null | src/Base/Modules/ResultsSaver.hpp | PhilipVinc/PincoSimulator | 562192cf3b09d0e67be7e6fee67ff9b59fbc3fd3 | [
"MIT"
] | null | null | null | //
// Created by Filippo Vicentini on 22/12/17.
//
#ifndef SIMULATOR_RESULTSSAVER_HPP
#define SIMULATOR_RESULTSSAVER_HPP
#include "Base/Interfaces/IResultConsumer.hpp"
#include <atomic>
#include <memory>
#include <thread>
class Settings;
class DataStore;
class ResultsSaver : public IResultConsumer {
public:
Res... | 22 | 79 | 0.756957 | PhilipVinc |
5505faced96946304a9c48b522cf18d207fd8ec9 | 103 | cpp | C++ | src/version/version.cpp | exaw/cpp_work_1 | 43ff066817014af1606d4ebd943e92306e6a1d73 | [
"MIT"
] | null | null | null | src/version/version.cpp | exaw/cpp_work_1 | 43ff066817014af1606d4ebd943e92306e6a1d73 | [
"MIT"
] | null | null | null | src/version/version.cpp | exaw/cpp_work_1 | 43ff066817014af1606d4ebd943e92306e6a1d73 | [
"MIT"
] | null | null | null | #include "version.h"
#include <version_number.h>
int version()
{
return PROJECT_VERSION_PATCH;
}
| 11.444444 | 33 | 0.718447 | exaw |
5509b01e28e030eac0fe6249006ea0ed1753875f | 423 | cpp | C++ | template/main.cpp | zhongchen43/Cpp-Syntax-Code-Implementation | 1a73485dd63802989d9d18ea51cc189b9dafedd5 | [
"MIT"
] | null | null | null | template/main.cpp | zhongchen43/Cpp-Syntax-Code-Implementation | 1a73485dd63802989d9d18ea51cc189b9dafedd5 | [
"MIT"
] | null | null | null | template/main.cpp | zhongchen43/Cpp-Syntax-Code-Implementation | 1a73485dd63802989d9d18ea51cc189b9dafedd5 | [
"MIT"
] | null | null | null | #include <iostream>
using namespace std;
#if 0
void Swap(int & a, int & b)
{
int t = a;
a = b;
b = t;
}
void Swap(double &a, double &b)
{
double t = a;
a = b;
b = t;
}
# endif
template <typename T>
void Swap(T &a, T &b)
{
T t = a;
a = b;
b = t;
}
int main()
{
float a = 4;
... | 11.432432 | 31 | 0.446809 | zhongchen43 |
550de1513750ad740067cd43b63a91924fbb2f0a | 1,659 | hpp | C++ | headers/Video.hpp | SimonPerche/AugmentedRealityFromScratch | 282e29e51a2ffc469fcd38c57e2a2466b3485792 | [
"MIT"
] | 1 | 2020-12-07T13:29:06.000Z | 2020-12-07T13:29:06.000Z | headers/Video.hpp | Solidras/AugmentedRealityFromScratch | 282e29e51a2ffc469fcd38c57e2a2466b3485792 | [
"MIT"
] | null | null | null | headers/Video.hpp | Solidras/AugmentedRealityFromScratch | 282e29e51a2ffc469fcd38c57e2a2466b3485792 | [
"MIT"
] | null | null | null | //
// Created by Simon on 06/11/2020.
//
#ifndef AR_VIDEO_HPP
#define AR_VIDEO_HPP
#include <opencv2/videoio.hpp>
namespace arfs
{
/**
* @brief Video wrapper. Handle video from file and webcam.
*/
class Video
{
public:
/**
* @brief Construct an empty video.
*/
... | 25.136364 | 98 | 0.554551 | SimonPerche |
551ca640c59ff22b743270b4c5e65f759a172d5d | 6,484 | cc | C++ | examples/boost_asio_sample_app/sources/network/asio_server.cc | eastsideod/cpp_reference | e23c38ac444d0ddcdd47a496fba9bbbc8d7b3844 | [
"Apache-2.0"
] | null | null | null | examples/boost_asio_sample_app/sources/network/asio_server.cc | eastsideod/cpp_reference | e23c38ac444d0ddcdd47a496fba9bbbc8d7b3844 | [
"Apache-2.0"
] | null | null | null | examples/boost_asio_sample_app/sources/network/asio_server.cc | eastsideod/cpp_reference | e23c38ac444d0ddcdd47a496fba9bbbc8d7b3844 | [
"Apache-2.0"
] | null | null | null | #include "include/app/network/internal/asio_server.h"
#include <boost/uuid/uuid_generators.hpp>
namespace app {
namespace asio {
namespace {
const shared_ptr<Buffer> kEmptyBuffer;
const size_t kEmptyBufferLength = 0;
const shared_ptr<TcpClient> kNullTcpClient;
boost::asio::io_service the_io_service(4);
TcpSock... | 22.358621 | 73 | 0.641271 | eastsideod |
55224abbf5af3ee37978ef6cc5badd78f008db2a | 7,617 | cpp | C++ | spd/lab3_Durasiewicz_Janiak/main.cpp | dorianJaniak/koty_inne | aace956718d6a7540a438c7ccc3b43a35842b646 | [
"Apache-2.0"
] | null | null | null | spd/lab3_Durasiewicz_Janiak/main.cpp | dorianJaniak/koty_inne | aace956718d6a7540a438c7ccc3b43a35842b646 | [
"Apache-2.0"
] | null | null | null | spd/lab3_Durasiewicz_Janiak/main.cpp | dorianJaniak/koty_inne | aace956718d6a7540a438c7ccc3b43a35842b646 | [
"Apache-2.0"
] | null | null | null | #include <iostream>
#include <fstream>
#include <sstream>
#include <queue>
#include <utility>
#include <limits>
#include <climits>
#include <ctime>
#include <algorithm>
#define MODYFIKACJA 0
using namespace std;
ofstream wyjscie;
struct OpPozycji {
bool operator()(pair<int,int> const & a, pair<int,int> const & ... | 27.698182 | 108 | 0.531574 | dorianJaniak |
5522b78f2ee7f4603ba22c1348cf1659b81d77a8 | 720 | cpp | C++ | Array-Avrage.cpp | sinarashidiazar/cpp | 97ff3b6821efb3857b7a1a4cc24a6294e7279e75 | [
"MIT"
] | null | null | null | Array-Avrage.cpp | sinarashidiazar/cpp | 97ff3b6821efb3857b7a1a4cc24a6294e7279e75 | [
"MIT"
] | null | null | null | Array-Avrage.cpp | sinarashidiazar/cpp | 97ff3b6821efb3857b7a1a4cc24a6294e7279e75 | [
"MIT"
] | null | null | null | // mean
#include <iostream>
#include <iomanip>
#include <conio.h>
using namespace std;
void mean( const int [], int );
void printArray( const int[], int );
int main()
{
const int size = 15;
int a[ size ] = { 5,1,1,8,7,1,8,0,2,9,3,1,7,7,1} ;
cout << "\n\n array :";
printArray( a , size );
... | 16.744186 | 77 | 0.483333 | sinarashidiazar |
5523e7c474b0e74c125cdae6d62e272356773a3a | 6,998 | cc | C++ | src/query_run.cc | mgonnav/flaviadb | af133b30ec97834753d4d24a682cb2691688a854 | [
"Apache-2.0"
] | 1 | 2020-08-20T22:34:36.000Z | 2020-08-20T22:34:36.000Z | src/query_run.cc | mgonnav/flaviadb | af133b30ec97834753d4d24a682cb2691688a854 | [
"Apache-2.0"
] | 1 | 2020-08-27T00:01:42.000Z | 2020-11-27T17:18:58.000Z | src/query_run.cc | mgonnav/flaviadb | af133b30ec97834753d4d24a682cb2691688a854 | [
"Apache-2.0"
] | null | null | null | #include "Processor.hh"
#include "Table.hh"
#include "filestruct.hh"
#include "flaviadb_definitions.hh"
#include "printutils.hh"
#include <filesystem>
#include <fstream> // ifstream, ofstream
#include <hsql/SQLParser.h> // Include SQL Parser
#include <hsql/util/sqlhelper.h> // Contains print... | 28.563265 | 79 | 0.479708 | mgonnav |
55241fd13d61d12479127018cf104351fbe8e612 | 1,069 | cpp | C++ | 3048/6734854_AC_219MS_220K.cpp | vandreas19/POJ_sol | 4895764ab800e8c2c4b2334a562dec2f07fa243e | [
"MIT"
] | 18 | 2017-08-14T07:34:42.000Z | 2022-01-29T14:20:29.000Z | 3048/6734854_AC_219MS_220K.cpp | pinepara/poj_solutions | 4895764ab800e8c2c4b2334a562dec2f07fa243e | [
"MIT"
] | null | null | null | 3048/6734854_AC_219MS_220K.cpp | pinepara/poj_solutions | 4895764ab800e8c2c4b2334a562dec2f07fa243e | [
"MIT"
] | 14 | 2016-12-21T23:37:22.000Z | 2021-07-24T09:38:57.000Z | #include<cstdio>
#include<algorithm>
int main(){
int serialNum;
scanf("%d",&serialNum);
int *serials=new int[serialNum],serialMax=0;
for(int index=0;index<serialNum;index++){
scanf("%d",serials+index);
if(serialMax<serials[index])
serialMax=serials[index];
}
bool *prime=new bool[serialMax+1];
... | 29.694444 | 60 | 0.686623 | vandreas19 |
552ad5a5ecddddb51e34ac645a297609e98f8b8c | 1,071 | cpp | C++ | libsandboxcore/KnowledgeModel.cpp | palais-ai/palais-sandbox | 49a025283deb2fd2817b3644ce8d5697453c4154 | [
"MIT"
] | 3 | 2017-06-07T16:49:48.000Z | 2019-12-30T00:08:33.000Z | libsandboxcore/KnowledgeModel.cpp | palais-ai/palais-sandbox | 49a025283deb2fd2817b3644ce8d5697453c4154 | [
"MIT"
] | null | null | null | libsandboxcore/KnowledgeModel.cpp | palais-ai/palais-sandbox | 49a025283deb2fd2817b3644ce8d5697453c4154 | [
"MIT"
] | null | null | null | #include "KnowledgeModel.h"
KnowledgeModel::KnowledgeModel()
{
;
}
bool KnowledgeModel::hasKnowledge(const QString &key) const
{
return mKnowledge.contains(key);
}
QVariant KnowledgeModel::getKnowledge(const QString& key) const
{
return mKnowledge[key];
}
void KnowledgeModel::removeKnowledge(const QStri... | 19.472727 | 76 | 0.653595 | palais-ai |
552d8b24139c2802f54803d238a5121a04f4e10d | 202 | cpp | C++ | 9.STL/Play with Permutations.cpp | MainakRepositor/SRM-OOPS-Elabs-Solution | 1b70b3d56ad730ce4ab02835f3302c250dc5e31b | [
"Apache-2.0"
] | 27 | 2020-11-01T13:07:50.000Z | 2022-01-07T13:26:26.000Z | 9.STL/Play with Permutations.cpp | MainakRepositor/SRM-OOPD-Elabs-Solution | 1b70b3d56ad730ce4ab02835f3302c250dc5e31b | [
"Apache-2.0"
] | 1 | 2020-10-31T18:55:28.000Z | 2020-10-31T18:55:28.000Z | 9.STL/Play with Permutations.cpp | MainakRepositor/SRM-OOPS-Elabs-Solution | 1b70b3d56ad730ce4ab02835f3302c250dc5e31b | [
"Apache-2.0"
] | null | null | null | #include <iostream>
#include <algorithm>
int main()
{
std::string s;
std::cin>>s;
while (1)
{
std::cout << s <<"\n";
if (!std::next_permutation(s.begin(),s.end()))
break;
}
return 0;
} | 12.625 | 48 | 0.559406 | MainakRepositor |
552e04ac43ea118b01e50371111a89358a8fa6e5 | 1,653 | cpp | C++ | devdc197.cpp | vidit1999/coding_problems | b6c9fa7fda37d9424cd11bcd54b385fd8cf1ee0a | [
"BSD-2-Clause"
] | 1 | 2020-02-24T18:28:48.000Z | 2020-02-24T18:28:48.000Z | devdc197.cpp | vidit1999/coding_problems | b6c9fa7fda37d9424cd11bcd54b385fd8cf1ee0a | [
"BSD-2-Clause"
] | null | null | null | devdc197.cpp | vidit1999/coding_problems | b6c9fa7fda37d9424cd11bcd54b385fd8cf1ee0a | [
"BSD-2-Clause"
] | null | null | null | #include <bits/stdc++.h>
using namespace std;
/*
Implement a function to calculate the growth of a population of people.
The function should be able to take several parameters, including p0(starting population),
percent, aug(inhabitants coming or leaving each year), and p(population to surpass).
This function should ... | 34.4375 | 123 | 0.710829 | vidit1999 |
5533ac209f090c9e8a8120ac64155ed3d4abe85a | 4,485 | cpp | C++ | uebungen/0x08/unionbeach.cpp | pblan/fha-cpp | 5008f54133cf4913f0ca558a3817b01b10d04494 | [
"CECILL-B"
] | null | null | null | uebungen/0x08/unionbeach.cpp | pblan/fha-cpp | 5008f54133cf4913f0ca558a3817b01b10d04494 | [
"CECILL-B"
] | null | null | null | uebungen/0x08/unionbeach.cpp | pblan/fha-cpp | 5008f54133cf4913f0ca558a3817b01b10d04494 | [
"CECILL-B"
] | null | null | null | #include <iostream>
#include <memory>
#include <unordered_map>
// Implementieren Sie eine abstrakte Klasse 'matrix', die eine quadratische
// Matrix für ganze Zahlen darstellen soll. Wie die Daten gespeichert werden,
// entscheiden die abgeleiteten Klassen.
// Machen Sie ein Template aus der Klasse.
template... | 29.313725 | 81 | 0.621851 | pblan |
5536165d667b10e103230544e6351390626ba92f | 1,101 | hpp | C++ | uio/GAXIQuadSPI.hpp | GinoBogo/gUIO | b0265710b800e713fb231a8b0936da5c172d475e | [
"MIT"
] | null | null | null | uio/GAXIQuadSPI.hpp | GinoBogo/gUIO | b0265710b800e713fb231a8b0936da5c172d475e | [
"MIT"
] | null | null | null | uio/GAXIQuadSPI.hpp | GinoBogo/gUIO | b0265710b800e713fb231a8b0936da5c172d475e | [
"MIT"
] | null | null | null |
////////////////////////////////////////////////////////////////////////////////
/// \file GAXIQuadSPI.hpp
/// \version 0.1
/// \date December, 2021
/// \author Gino Francesco Bogo
/// \copyright This file is released under the MIT license
////////////////////////////////////////////////////////////////... | 27.525 | 109 | 0.563124 | GinoBogo |
5538a57e4ea7b1048337ccedf88747d567590968 | 6,418 | cc | C++ | src/ui-flat-menu-group.cc | emptyland/utaha | d625da3290d7a193c8f18c4575d30178c8b764c1 | [
"MIT"
] | null | null | null | src/ui-flat-menu-group.cc | emptyland/utaha | d625da3290d7a193c8f18c4575d30178c8b764c1 | [
"MIT"
] | null | null | null | src/ui-flat-menu-group.cc | emptyland/utaha | d625da3290d7a193c8f18c4575d30178c8b764c1 | [
"MIT"
] | null | null | null | #include "ui-flat-menu-group.h"
#include "ui-flat-menu.h"
#include "glog/logging.h"
#include SDL_TTF_H
namespace utaha {
UIFlatMenuGroup::UIFlatMenuGroup(TTF_Font *font)
: font_(DCHECK_NOTNULL(font)) {
}
/*virtual*/ UIFlatMenuGroup::~UIFlatMenuGroup() {
if (texture_) {
SDL_DestroyTexture(texture_);
... | 27.310638 | 81 | 0.498754 | emptyland |
553a48e3dbd7fc23f9366df6b610ab13268e3e71 | 812 | cpp | C++ | src/configuration/archive/scope_set_field.cpp | TetraSomia/liblapin | f5ee3ce9b0fff8459ec15d5e24287f2c16e5ae35 | [
"BSD-3-Clause"
] | 1 | 2021-06-14T19:26:42.000Z | 2021-06-14T19:26:42.000Z | src/configuration/archive/scope_set_field.cpp | TetraSomia/liblapin | f5ee3ce9b0fff8459ec15d5e24287f2c16e5ae35 | [
"BSD-3-Clause"
] | null | null | null | src/configuration/archive/scope_set_field.cpp | TetraSomia/liblapin | f5ee3ce9b0fff8459ec15d5e24287f2c16e5ae35 | [
"BSD-3-Clause"
] | null | null | null | // Jason Brillante "Damdoshi"
// Hanged Bunny Studio 2014-2015
//
// Bibliothèque Lapin
#include "lapin_private.h"
void bunny_ini_scope_set_field(t_bunny_ini_scope *sc,
const char *field,
unsigned int index,
const char *value)
{
t_bunny_configuration *cnf = (t_bunny_configuration*)... | 23.882353 | 64 | 0.666256 | TetraSomia |
554261383b55986ee4032a4710de7c415c8adfbc | 2,227 | cpp | C++ | modules/fsmem/src/debug/utils_unix.cpp | hfarrow/Fissura | 0ccc319b55f8dc99af712c95580342430444bc29 | [
"MIT"
] | null | null | null | modules/fsmem/src/debug/utils_unix.cpp | hfarrow/Fissura | 0ccc319b55f8dc99af712c95580342430444bc29 | [
"MIT"
] | null | null | null | modules/fsmem/src/debug/utils_unix.cpp | hfarrow/Fissura | 0ccc319b55f8dc99af712c95580342430444bc29 | [
"MIT"
] | null | null | null | #include "fsmem/debug/utils.h"
#include <execinfo.h>
#include <cxxabi.h>
#include <stdio.h>
#include "fscore/types.h"
#include "fscore/assert.h"
using namespace fs;
namespace fs
{
namespace internal
{
template<>
size_t StackTraceUtil<PLATFORM_ID>::getStackTrace(void** frames, size_t maxFrames)
{
... | 25.895349 | 112 | 0.545128 | hfarrow |
55429f4c048e0782536bf291f8601a6918857171 | 1,083 | cpp | C++ | King/src/King/Graphics/Textures/Texture2D.cpp | Maxoking/King | a048344a11d3c0451449d9db99e6023b089285b0 | [
"Apache-2.0"
] | null | null | null | King/src/King/Graphics/Textures/Texture2D.cpp | Maxoking/King | a048344a11d3c0451449d9db99e6023b089285b0 | [
"Apache-2.0"
] | null | null | null | King/src/King/Graphics/Textures/Texture2D.cpp | Maxoking/King | a048344a11d3c0451449d9db99e6023b089285b0 | [
"Apache-2.0"
] | null | null | null | #pragma once
#include "kngpch.h"
#include "Texture2D.h"
namespace King {
namespace graphics {
Texture2D::Texture2D(char * filename, TextureFilter filter,
TextureWrap wrap , TextureFormat format )
{
glGenTextures(1, &m_ID);
glBindTexture(GL_TEXTURE_2D, m_ID);
unsigned char *data = loadImage(filenam... | 28.5 | 95 | 0.752539 | Maxoking |
5544936437aea8d6571be479897f1f47507422c1 | 3,343 | cpp | C++ | world/tiles/features/source/DecorativeStatues.cpp | sidav/shadow-of-the-wyrm | 747afdeebed885b1a4f7ab42f04f9f756afd3e52 | [
"MIT"
] | null | null | null | world/tiles/features/source/DecorativeStatues.cpp | sidav/shadow-of-the-wyrm | 747afdeebed885b1a4f7ab42f04f9f756afd3e52 | [
"MIT"
] | null | null | null | world/tiles/features/source/DecorativeStatues.cpp | sidav/shadow-of-the-wyrm | 747afdeebed885b1a4f7ab42f04f9f756afd3e52 | [
"MIT"
] | null | null | null | #include "DecorativeStatues.hpp"
#include "FeatureDescriptionTextKeys.hpp"
using std::string;
// Abstract base decorative statue class.
DecorativeStatue::DecorativeStatue()
: Feature(MaterialType::MATERIAL_TYPE_MARBLE, AlignmentRange::ALIGNMENT_RANGE_NEUTRAL)
{
}
bool DecorativeStatue::get_is_blocking() const
{
re... | 21.292994 | 86 | 0.824708 | sidav |
554d92cd5baac6e326274b17024fa81882a218f7 | 6,512 | cpp | C++ | modules/utils/src/cxx.cpp | jpjodoin/litiv | 435556bea20d60816aff492f50587b1a2d748b21 | [
"BSD-3-Clause"
] | 97 | 2015-10-16T04:32:33.000Z | 2022-03-29T07:04:02.000Z | modules/utils/src/cxx.cpp | jpjodoin/litiv | 435556bea20d60816aff492f50587b1a2d748b21 | [
"BSD-3-Clause"
] | 19 | 2016-07-01T16:37:02.000Z | 2020-09-10T06:09:39.000Z | modules/utils/src/cxx.cpp | jpjodoin/litiv | 435556bea20d60816aff492f50587b1a2d748b21 | [
"BSD-3-Clause"
] | 41 | 2015-11-17T05:59:23.000Z | 2022-02-16T09:30:28.000Z |
// This file is part of the LITIV framework; visit the original repository at
// https://github.com/plstcharles/litiv for more information.
//
// Copyright 2015 Pierre-Luc St-Charles; pierre-luc.st-charles<at>polymtl.ca
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file ... | 36.58427 | 161 | 0.663851 | jpjodoin |
554e47415052287067c830ce3de0d0b6f21c9d03 | 3,538 | cpp | C++ | Testbench/TSharedPtr_Test.cpp | Mumsfilibaba/Custom-Containers | 4b9d9fb09977eaee351043a6f4631831d48e2697 | [
"MIT"
] | null | null | null | Testbench/TSharedPtr_Test.cpp | Mumsfilibaba/Custom-Containers | 4b9d9fb09977eaee351043a6f4631831d48e2697 | [
"MIT"
] | null | null | null | Testbench/TSharedPtr_Test.cpp | Mumsfilibaba/Custom-Containers | 4b9d9fb09977eaee351043a6f4631831d48e2697 | [
"MIT"
] | null | null | null | #include "TSharedPtr_Test.h"
#include "../Containers/SharedPtr.h"
#include <iostream>
void TSharedPtr_Test()
{
// TSharedPtr
std::cout << std::endl << "----------TSharedPtr----------" << std::endl << std::endl;
struct Base
{
UInt32 X;
};
struct Derived : public Base
{
UI... | 32.759259 | 89 | 0.603731 | Mumsfilibaba |
555dfa0d515e6a45cd8bcd30212f0a2018add4ed | 4,579 | cpp | C++ | OpenDireEngine/src/Application.cpp | RyanUph/OpenDireEngine | 778b9f15216c0bad9c26ba2da033fd3379e96c40 | [
"Apache-2.0"
] | 1 | 2019-07-09T18:51:10.000Z | 2019-07-09T18:51:10.000Z | OpenDireEngine/src/Application.cpp | RyanUph/OpenDireEngine | 778b9f15216c0bad9c26ba2da033fd3379e96c40 | [
"Apache-2.0"
] | 5 | 2019-07-09T18:58:16.000Z | 2019-07-09T21:03:55.000Z | OpenDireEngine/src/Application.cpp | RyanUph/OpenDireEngine | 778b9f15216c0bad9c26ba2da033fd3379e96c40 | [
"Apache-2.0"
] | null | null | null | #include <glad/glad.h>
#include <glfw/glfw3.h>
#include <iostream>
#include <fstream>
#include <sstream>
#include <string>
#include "Renderer/VertexBuffer.h"
#include "Renderer/IndexBuffer.h"
#include "Renderer/VertexArray.h"
#include "Renderer/Shader.h"
#include "Renderer/Renderer.h"
#include "Renderer/Texture.h"
#i... | 25.298343 | 143 | 0.671326 | RyanUph |
5565e2c15cf1e2472d5a2ef38f7ffde4572c8981 | 81 | cpp | C++ | tests/setup.cpp | AlexandruIca/SoftRender | 9466251ad919d6896a1e3d1455a156186106cbaa | [
"Unlicense"
] | null | null | null | tests/setup.cpp | AlexandruIca/SoftRender | 9466251ad919d6896a1e3d1455a156186106cbaa | [
"Unlicense"
] | null | null | null | tests/setup.cpp | AlexandruIca/SoftRender | 9466251ad919d6896a1e3d1455a156186106cbaa | [
"Unlicense"
] | null | null | null | #include "softrender.hpp"
auto main(int, char*[]) -> int
{
return test();
}
| 11.571429 | 30 | 0.592593 | AlexandruIca |
556b5ebe4e359b7f5b5400590e5e1a0f68f40e5d | 777 | cpp | C++ | solutions/16XX/1614/1614A.cpp | AlexanderFadeev/codeforces | 9e70a58e69fafe96604045e1e9ce1d3dab07e1e5 | [
"MIT"
] | null | null | null | solutions/16XX/1614/1614A.cpp | AlexanderFadeev/codeforces | 9e70a58e69fafe96604045e1e9ce1d3dab07e1e5 | [
"MIT"
] | null | null | null | solutions/16XX/1614/1614A.cpp | AlexanderFadeev/codeforces | 9e70a58e69fafe96604045e1e9ce1d3dab07e1e5 | [
"MIT"
] | null | null | null | #include <iostream>
#include <string>
#include <vector>
#include <algorithm>
using namespace std;
#define LL long long
#define FOR(T, i, l, r) for (T i = l; i < r; i++)
#define SORT(x) sort(x.begin(), x.end())
#define RSORT(x) sort(x.rbegin(), x.rend())
#define READN(x, n) FOR(size_t, i, 0, n) {cin >> x[i];}
void ru... | 17.266667 | 55 | 0.42471 | AlexanderFadeev |
5572f8c416c547c858e8fc2535212f4ac9763978 | 4,293 | hpp | C++ | src/GraphicEngine/GLDebugDrawer.hpp | kwangsing3/Asteroid-GE-archive- | a982293ab3f7652eff923bfdc2931836c9f9d60e | [
"MIT"
] | 2 | 2019-10-16T07:22:49.000Z | 2019-10-18T09:11:45.000Z | src/GraphicEngine/GLDebugDrawer.hpp | kwangsing3/Asteroid-GameEngine | e3b76fc9b0bd09f371f87d8213ae3f5b0f6656c0 | [
"MIT"
] | null | null | null | src/GraphicEngine/GLDebugDrawer.hpp | kwangsing3/Asteroid-GameEngine | e3b76fc9b0bd09f371f87d8213ae3f5b0f6656c0 | [
"MIT"
] | null | null | null | // Helper class; draws the world as seen by Bullet.
// This is very handy to see it Bullet's world matches yours
// How to use this class :
// Declare an instance of the class :
//
// dynamicsWorld->setDebugDrawer(&mydebugdrawer);
// Each frame, call it :
// mydebugdrawer.SetMatrices(ViewMatrix, ProjectionMatrix);
// ... | 29.606897 | 105 | 0.658747 | kwangsing3 |
55761758baf17c551d1ca823b29c1294c5484910 | 16,731 | cpp | C++ | ui-qt/Pretreatment/ImgpreprocessModule/Roi/ContrastStrengthenAdjustLabel.cpp | qianyongjun123/FPGA-Industrial-Smart-Camera | 54b3e2c2661cf7f6774a7fb4d6ae637fa73cba32 | [
"MIT"
] | 1 | 2017-12-28T08:08:02.000Z | 2017-12-28T08:08:02.000Z | ui-qt/Pretreatment/ImgpreprocessModule/Roi/ContrastStrengthenAdjustLabel.cpp | qianyongjun123/FPGA-Industrial-Smart-Camera | 54b3e2c2661cf7f6774a7fb4d6ae637fa73cba32 | [
"MIT"
] | null | null | null | ui-qt/Pretreatment/ImgpreprocessModule/Roi/ContrastStrengthenAdjustLabel.cpp | qianyongjun123/FPGA-Industrial-Smart-Camera | 54b3e2c2661cf7f6774a7fb4d6ae637fa73cba32 | [
"MIT"
] | 3 | 2017-12-28T08:08:05.000Z | 2021-11-12T07:59:13.000Z | #include "ContrastStrengthenAdjustLabel.h"
#include <qdebug.h>
ContrastStrengthenAdjustLabel::ContrastStrengthenAdjustLabel(QWidget *parent) : QLabel(parent)
{
m_y1 = 10;
m_y2 = 160;
m_point1.setX(114);
m_point1.setY(290);
m_point2.setX(224);
m_point2.setY(240);
m_img_smooth = 0;
m_smoo... | 27.931553 | 149 | 0.521009 | qianyongjun123 |
5577edf76626d78f073fa88ac8098c0dbcf1039c | 12,750 | cpp | C++ | app/ParametricBuilder.cpp | potato3d/instancing | cf5c70533d31a534e6641f21499049b44241116a | [
"MIT"
] | 4 | 2021-02-13T17:46:03.000Z | 2021-11-23T23:55:21.000Z | app/ParametricBuilder.cpp | potato3d/instancing | cf5c70533d31a534e6641f21499049b44241116a | [
"MIT"
] | null | null | null | app/ParametricBuilder.cpp | potato3d/instancing | cf5c70533d31a534e6641f21499049b44241116a | [
"MIT"
] | null | null | null | //---------------------------------------------//
// Developed by: CAE/Tecgraf/PUC-Rio
// (C) COPYRIGHT 2013: Petrobras
//---------------------------------------------//
#include <app/ParametricBuilder.h>
#include <glb/opengl.h>
#include <bl/bl.h>
namespace cad
{
struct vec4 {float x;float y;float z;float w;};
Dra... | 34.836066 | 157 | 0.649333 | potato3d |
535252821384b7ecca6ba5911c78629120625cd1 | 3,492 | cpp | C++ | test/Tests.cpp | AlexKent3141/elric | cf6ce2b4ffb12b64bb5abb9365fd7df8186e3872 | [
"MIT"
] | null | null | null | test/Tests.cpp | AlexKent3141/elric | cf6ce2b4ffb12b64bb5abb9365fd7df8186e3872 | [
"MIT"
] | null | null | null | test/Tests.cpp | AlexKent3141/elric | cf6ce2b4ffb12b64bb5abb9365fd7df8186e3872 | [
"MIT"
] | null | null | null | #include "catch2/catch.hpp"
#include "helper/Object.h"
#include "helper/TestSchema.h"
#include "../include/Serialise.h"
#include <vector>
TEST_CASE("Serialise and deserialise a string", "[Reading and writing tests]")
{
const std::string& TestString = "Elric is cool";
Object<std::string> pre = { TestString };
... | 29.846154 | 96 | 0.674685 | AlexKent3141 |
5353316f7616ffa799427a1b236b4d40efc89d5b | 2,518 | cpp | C++ | Changrui/C++/Kattis_Integer_Lists.cpp | Kattis-Everyday/KattisSolutions | ac422563fd6b1c08e098a52e7fce06852f61c180 | [
"Apache-2.0"
] | null | null | null | Changrui/C++/Kattis_Integer_Lists.cpp | Kattis-Everyday/KattisSolutions | ac422563fd6b1c08e098a52e7fce06852f61c180 | [
"Apache-2.0"
] | null | null | null | Changrui/C++/Kattis_Integer_Lists.cpp | Kattis-Everyday/KattisSolutions | ac422563fd6b1c08e098a52e7fce06852f61c180 | [
"Apache-2.0"
] | null | null | null | //
// main.cpp
// Kattis_Integer Lists
//
// Created by mcr on 20/10/2020.
//
#pragma GCC optimize(3,"Ofast","inline")
//#include <bits/stdc++.h>
#include<iostream>
#include<sstream>
#include<string>
#include<vector>
#include<queue>
#include<map>
#include<stack>
#include<set>
#include<utility>
#include<tuple>
#... | 18.932331 | 50 | 0.409452 | Kattis-Everyday |
535393a92a27f84b5ecb3c602eff1ce1e71738dd | 619 | cpp | C++ | Source/Main.cpp | michal-z/eneida_ | 3412560fe7e558d8d7b78342ba2e458097cc2d9f | [
"MIT"
] | 1 | 2021-11-07T07:22:48.000Z | 2021-11-07T07:22:48.000Z | Source/Main.cpp | michal-z/eneida_ | 3412560fe7e558d8d7b78342ba2e458097cc2d9f | [
"MIT"
] | null | null | null | Source/Main.cpp | michal-z/eneida_ | 3412560fe7e558d8d7b78342ba2e458097cc2d9f | [
"MIT"
] | null | null | null | #include "Main.h"
#include "EASTL/vector.h"
void* operator new[](size_t size, const char* /*name*/, int /*flags*/,
unsigned /*debugFlags*/, const char* /*file*/, int /*line*/)
{
return malloc(size);
}
void* operator new[](size_t size, size_t alignment, size_t alignmentOffset, const char* /*... | 25.791667 | 97 | 0.620355 | michal-z |
5355a7ec123c8038d0a550158c5413282c15817d | 555 | hpp | C++ | library/ATF/_qry_case_update_server_reset_token.hpp | lemkova/Yorozuya | f445d800078d9aba5de28f122cedfa03f26a38e4 | [
"MIT"
] | 29 | 2017-07-01T23:08:31.000Z | 2022-02-19T10:22:45.000Z | library/ATF/_qry_case_update_server_reset_token.hpp | kotopes/Yorozuya | 605c97d3a627a8f6545cc09f2a1b0a8afdedd33a | [
"MIT"
] | 90 | 2017-10-18T21:24:51.000Z | 2019-06-06T02:30:33.000Z | library/ATF/_qry_case_update_server_reset_token.hpp | kotopes/Yorozuya | 605c97d3a627a8f6545cc09f2a1b0a8afdedd33a | [
"MIT"
] | 44 | 2017-12-19T08:02:59.000Z | 2022-02-24T23:15:01.000Z | // This file auto generated by plugin for ida pro. Generated code only for x64. Please, dont change manually
#pragma once
#include <common/common.h>
START_ATF_NAMESPACE
#pragma pack(push, 4)
struct _qry_case_update_server_reset_token
{
unsigned int dwServerToken;
unsigned int dwESerial;
... | 27.75 | 116 | 0.717117 | lemkova |
53587ca3c18befab653bc0172d087ada78d0c27f | 1,565 | cpp | C++ | paraphernalia/sse.cpp | Mark1626/road-to-plus-plus | 500db757051e32e6ccd144b70171c826527610d4 | [
"CC0-1.0"
] | 1 | 2021-07-04T12:41:16.000Z | 2021-07-04T12:41:16.000Z | paraphernalia/sse.cpp | Mark1626/road-to-plus-plus | 500db757051e32e6ccd144b70171c826527610d4 | [
"CC0-1.0"
] | null | null | null | paraphernalia/sse.cpp | Mark1626/road-to-plus-plus | 500db757051e32e6ccd144b70171c826527610d4 | [
"CC0-1.0"
] | null | null | null | #include <emmintrin.h>
#include <immintrin.h>
#include <cstdint>
#include <cstdio>
#include <smmintrin.h>
#include <xmmintrin.h>
int main() {
// Subtract 4 single precision
__m128 five = _mm_set1_ps(5.0f);
__m128 one = _mm_set1_ps(1.0f);
__m128 dst = _mm_sub_ps(five, one);
float res[4] = {0};
_mm_storeu_... | 28.454545 | 115 | 0.591054 | Mark1626 |
535a13a1e95b80b87cbdf1d63e858c403d5acf82 | 1,635 | cpp | C++ | cpp/behavioral/MementoDemo.cpp | uyghfjhh/designpattern | 0efe87355150ce2555235b3ff3de73a45639b86f | [
"Apache-2.0"
] | 9 | 2020-05-29T11:10:40.000Z | 2020-11-24T04:29:01.000Z | cpp/behavioral/MementoDemo.cpp | uyghfjhh/designpattern | 0efe87355150ce2555235b3ff3de73a45639b86f | [
"Apache-2.0"
] | null | null | null | cpp/behavioral/MementoDemo.cpp | uyghfjhh/designpattern | 0efe87355150ce2555235b3ff3de73a45639b86f | [
"Apache-2.0"
] | null | null | null | #include <iostream>
#include <list>
#include <memory>
using namespace std;
class Memento{
//为了少写几个get函数, 使用友元
friend class Hero;
public:
Memento(int gold, int hp, const string& name)
: gold_(gold)
, hp_(hp)
, name_(name)
{}
private:
int gold_;
int hp_;
string name_;
};
class Hero{
public:
Hero(... | 17.580645 | 62 | 0.636086 | uyghfjhh |
535b862443b814869de33a1de14efb45e2a93d60 | 688 | hpp | C++ | src/mini_rover_rtos/include/motor_event.hpp | RomaLab/roma-small-rover | 5a6f7d9f91126637d773b8c6b9a75ef707891e01 | [
"Apache-2.0"
] | 1 | 2021-12-09T06:36:29.000Z | 2021-12-09T06:36:29.000Z | src/mini_rover_rtos/include/motor_event.hpp | RomaLab/roma-small-rover | 5a6f7d9f91126637d773b8c6b9a75ef707891e01 | [
"Apache-2.0"
] | null | null | null | src/mini_rover_rtos/include/motor_event.hpp | RomaLab/roma-small-rover | 5a6f7d9f91126637d773b8c6b9a75ef707891e01 | [
"Apache-2.0"
] | 1 | 2021-12-30T14:31:40.000Z | 2021-12-30T14:31:40.000Z | #ifndef MOTOR_EVENT_HPP_INCLUDED
#define MOTOR_EVENT_HPP_INCLUDED
#include <tinyfsm.hpp>
#include "multi_motor_controller.hpp"
struct MotorEvent : tinyfsm::Event
{
};
struct SetWheelSpeed : MotorEvent
{
int32_t goalSpeed[4];
};
struct SetSteerPosition : MotorEvent
{
int32_t goalPosition[4];
};
struct SetLi... | 15.288889 | 37 | 0.75436 | RomaLab |
535fb1ec9c502f4d2fe8a8cc2291e3fc9112e9b5 | 2,634 | cpp | C++ | src/TcpServer.cpp | lukascode/sockets-lib | 9146e260efddb3c61bf892cb4f335e02c227a507 | [
"MIT"
] | 24 | 2019-09-06T17:08:51.000Z | 2021-08-21T22:02:01.000Z | src/TcpServer.cpp | lukascode/sockets-lib | 9146e260efddb3c61bf892cb4f335e02c227a507 | [
"MIT"
] | null | null | null | src/TcpServer.cpp | lukascode/sockets-lib | 9146e260efddb3c61bf892cb4f335e02c227a507 | [
"MIT"
] | null | null | null | #include "TcpServer.h"
std::shared_ptr<TcpServer> TcpServer::Create(std::function<std::shared_ptr<TcpConnectionHandler>()> connHandlerFactory)
{
return std::shared_ptr<TcpServer>(new TcpServer(connHandlerFactory));
}
TcpServer::TcpServer(std::function<std::shared_ptr<TcpConnectionHandler>()> connHandlerFactory)
{
l... | 18.549296 | 119 | 0.680334 | lukascode |
53672e7d047e029b3cf81f6e606cf31fb6318c67 | 4,897 | hpp | C++ | Source/Core/Math/source/Quaternion.hpp | Filippo-BSW/AdHoc | 2559fa6f563283af24ae1da26b4b9164c8206503 | [
"MIT"
] | null | null | null | Source/Core/Math/source/Quaternion.hpp | Filippo-BSW/AdHoc | 2559fa6f563283af24ae1da26b4b9164c8206503 | [
"MIT"
] | null | null | null | Source/Core/Math/source/Quaternion.hpp | Filippo-BSW/AdHoc | 2559fa6f563283af24ae1da26b4b9164c8206503 | [
"MIT"
] | null | null | null | // *********************************************************************************
// MIT License
//
// Copyright (c) 2021 Filippo-BSW
//
// 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 ... | 32.865772 | 103 | 0.601797 | Filippo-BSW |
536dabc5ab6ee487096d022ebc706cfc774c65b3 | 1,310 | hpp | C++ | include/dynamic_static/system/button.hpp | dynamic-static/system | 86aa9a2828dba58401c52328273920bf89ee7ed8 | [
"MIT"
] | null | null | null | include/dynamic_static/system/button.hpp | dynamic-static/system | 86aa9a2828dba58401c52328273920bf89ee7ed8 | [
"MIT"
] | 1 | 2017-12-02T02:38:37.000Z | 2017-12-02T09:05:25.000Z | include/dynamic_static/system/button.hpp | DynamicStatic/Dynamic_Static.System | 86aa9a2828dba58401c52328273920bf89ee7ed8 | [
"MIT"
] | null | null | null |
/*
==========================================
Copyright (c) 2011-2020 Dynamic_Static
Licensed under the MIT license
http://opensource.org/licenses/MIT
==========================================
*/
#pragma once
#include "dynamic_static/system/updateable.hpp"
#include <bitset>
namespace dst {
namespace s... | 23.392857 | 84 | 0.636641 | dynamic-static |
5370d157f80584facc0ea4ab8c89cba291741fb6 | 215 | cpp | C++ | Adding Your Own Libraries/main.cpp | isaKarabocek/Cpp-Tutorials | 94bceedae55cd1985f707c136d615e8da0fcc1e4 | [
"Apache-2.0"
] | null | null | null | Adding Your Own Libraries/main.cpp | isaKarabocek/Cpp-Tutorials | 94bceedae55cd1985f707c136d615e8da0fcc1e4 | [
"Apache-2.0"
] | null | null | null | Adding Your Own Libraries/main.cpp | isaKarabocek/Cpp-Tutorials | 94bceedae55cd1985f707c136d615e8da0fcc1e4 | [
"Apache-2.0"
] | null | null | null | #include<iostream>
#include"Functions.h"
using namespace std;
int main()
{
int number;
cout << "Enter a value\n";
cin >> number;
cout<<"square is " << square(number);
getchar();
getchar();
} | 13.4375 | 39 | 0.595349 | isaKarabocek |
5379430f18913c87fa1a7454a12eb1f85df507a0 | 173 | cpp | C++ | HW3/Coordinate.cpp | deror1869107/yypoop | f3605961787610bf08f8a9ea2afb905d1af3c5c0 | [
"MIT"
] | null | null | null | HW3/Coordinate.cpp | deror1869107/yypoop | f3605961787610bf08f8a9ea2afb905d1af3c5c0 | [
"MIT"
] | null | null | null | HW3/Coordinate.cpp | deror1869107/yypoop | f3605961787610bf08f8a9ea2afb905d1af3c5c0 | [
"MIT"
] | null | null | null | #include "Coordinate.h"
Coordinate::Coordinate(int x, int y): x(x), y(y) {}
int Coordinate::getX() const {
return x;
}
int Coordinate::getY() const {
return y;
}
| 14.416667 | 51 | 0.624277 | deror1869107 |
537bc020439992867f91a76076db7317586e9e07 | 7,254 | cpp | C++ | Dodo/src/Core/Data/ModelLoader.cpp | quesswho/Dodo | 75408374a73e1cceb3e41ec25493f2abbaa447ee | [
"MIT"
] | 1 | 2020-06-09T21:11:08.000Z | 2020-06-09T21:11:08.000Z | Dodo/src/Core/Data/ModelLoader.cpp | quesswho/Dodo | 75408374a73e1cceb3e41ec25493f2abbaa447ee | [
"MIT"
] | 9 | 2020-11-17T07:54:06.000Z | 2021-01-05T13:13:05.000Z | Dodo/src/Core/Data/ModelLoader.cpp | quesswho/Dodo | 75408374a73e1cceb3e41ec25493f2abbaa447ee | [
"MIT"
] | null | null | null | #include "pch.h"
#include "ModelLoader.h"
#include <assimp/Importer.hpp>
#include <assimp/scene.h>
#include <assimp/postprocess.h>
#include "Core/Application/Application.h"
namespace Dodo {
Model* ModelLoader::LoadModel(const char* path)
{
Assimp::Importer imp;
const aiScene* model = imp.ReadFile(path, aiPro... | 32.24 | 244 | 0.662669 | quesswho |
5389138274a105c70239524b9d9c25e1c708afc8 | 27,026 | cpp | C++ | silkrpc/ethdb/kv/remote_transaction_test.cpp | enriavil1/silkrpc | 1fa2109658d4c89b6cfdd5190d919bd1324f367e | [
"Apache-2.0"
] | null | null | null | silkrpc/ethdb/kv/remote_transaction_test.cpp | enriavil1/silkrpc | 1fa2109658d4c89b6cfdd5190d919bd1324f367e | [
"Apache-2.0"
] | null | null | null | silkrpc/ethdb/kv/remote_transaction_test.cpp | enriavil1/silkrpc | 1fa2109658d4c89b6cfdd5190d919bd1324f367e | [
"Apache-2.0"
] | null | null | null | /*
Copyright 2021 The Silkrpc Authors
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 t... | 49.407678 | 130 | 0.60316 | enriavil1 |
538b10e5de18a31fd713c8134cba9ad01e32a6a3 | 1,989 | cpp | C++ | src/Back/utils/utils.cpp | Igisid/Breeks-desktop | 0dfaa6ea64d1d2912a4aed9e1febb537b9a9eec6 | [
"Apache-2.0"
] | 10 | 2020-12-20T15:32:20.000Z | 2021-07-12T18:09:57.000Z | src/Back/utils/utils.cpp | Igisid/Breeks-desktop | 0dfaa6ea64d1d2912a4aed9e1febb537b9a9eec6 | [
"Apache-2.0"
] | 2 | 2022-01-04T12:51:00.000Z | 2022-01-04T14:40:19.000Z | src/Back/utils/utils.cpp | Igisid/Breeks-desktop | 0dfaa6ea64d1d2912a4aed9e1febb537b9a9eec6 | [
"Apache-2.0"
] | 3 | 2020-12-22T02:50:11.000Z | 2021-02-24T01:58:11.000Z | #include "Back/utils/utils.h"
#include <QJsonObject>
#include <QJsonDocument>
#include <QDebug>
QJsonObject objectFromString(const QString &in) {
QJsonObject obj = QJsonObject();
QJsonDocument doc = QJsonDocument::fromJson(in.toUtf8());
// check validity of the document
if(!doc.isNull()) {
if(doc.isObje... | 24.8625 | 98 | 0.639517 | Igisid |
538fc574731c0595cef35e7060792e7d4c4496dc | 5,368 | cpp | C++ | src/Renderer/OpenGL/Win_OpenGLApp.cpp | marceline-cramer/ProjectEskyLLAPI | 769dd5720c4a15773754f6c06ab1d8ee21cdaf3e | [
"BSD-3-Clause"
] | 5 | 2020-12-29T03:37:17.000Z | 2022-02-20T10:58:25.000Z | src/Renderer/OpenGL/Win_OpenGLApp.cpp | marceline-cramer/ProjectEskyLLAPI | 769dd5720c4a15773754f6c06ab1d8ee21cdaf3e | [
"BSD-3-Clause"
] | 1 | 2021-01-14T04:30:31.000Z | 2021-01-14T04:30:31.000Z | src/Renderer/OpenGL/Win_OpenGLApp.cpp | marceline-cramer/ProjectEskyLLAPI | 769dd5720c4a15773754f6c06ab1d8ee21cdaf3e | [
"BSD-3-Clause"
] | 3 | 2020-12-13T03:52:52.000Z | 2021-10-30T04:00:36.000Z | #include "common_header.h"
#include "win_OpenGLApp.h"
COpenGLWinApp appMain;
/*-----------------------------------------------
Name: ResetTimer
Params: none
Result: Resets application timer (for example
after re-activation of application).
/*---------------------------------------------*/
void COpenGLWinApp::... | 20.646154 | 112 | 0.596125 | marceline-cramer |
539696aaadb69f2fe464ad24aaaf83af1ac8eb97 | 5,118 | cpp | C++ | square_torus/finding_critical_configurations/src/jacobian.cpp | burakericok/quotient_hard_disks | 698c57e497e1ea6589de61be7d95d0c1207c10ac | [
"MIT"
] | null | null | null | square_torus/finding_critical_configurations/src/jacobian.cpp | burakericok/quotient_hard_disks | 698c57e497e1ea6589de61be7d95d0c1207c10ac | [
"MIT"
] | null | null | null | square_torus/finding_critical_configurations/src/jacobian.cpp | burakericok/quotient_hard_disks | 698c57e497e1ea6589de61be7d95d0c1207c10ac | [
"MIT"
] | null | null | null | ///////////////////////////////////////////////////////
//
// jacobian.cpp
//
// Purpose: defines a function to find the gradient of the fictive energy
// (Jacobian of a scalar)
//
///////////////////////////////////////////////////////
//
// Copyright (c) 2013, Lawrence Livermore National Security, LL... | 32.807692 | 554 | 0.607659 | burakericok |
53976fccf5e500ea40399664704f078405b7848b | 52 | cpp | C++ | Week 6/Lab/Excersises/tempCodeRunnerFile.cpp | sugamkarki/NAMI-Year-II-Term-I-Software_Engineering | 39182816b670dcb75ec322e24b346a4cfeb80be0 | [
"Apache-2.0"
] | null | null | null | Week 6/Lab/Excersises/tempCodeRunnerFile.cpp | sugamkarki/NAMI-Year-II-Term-I-Software_Engineering | 39182816b670dcb75ec322e24b346a4cfeb80be0 | [
"Apache-2.0"
] | null | null | null | Week 6/Lab/Excersises/tempCodeRunnerFile.cpp | sugamkarki/NAMI-Year-II-Term-I-Software_Engineering | 39182816b670dcb75ec322e24b346a4cfeb80be0 | [
"Apache-2.0"
] | null | null | null | (array, size);
// for (int i = 0; i < size; i++) | 26 | 37 | 0.442308 | sugamkarki |
539c3be3423ca4ff3396332356e990c1bb108161 | 1,103 | cpp | C++ | SemperGL/src/Renderer/Rect.cpp | SemperParatusGithub/SemperGL | b2866b43224cc1afa17c7ce0445507eb4733adc8 | [
"MIT"
] | 7 | 2020-11-10T23:43:49.000Z | 2021-04-25T20:13:40.000Z | SemperGL/src/Renderer/Rect.cpp | SemperParatusGithub/SemperGL | b2866b43224cc1afa17c7ce0445507eb4733adc8 | [
"MIT"
] | null | null | null | SemperGL/src/Renderer/Rect.cpp | SemperParatusGithub/SemperGL | b2866b43224cc1afa17c7ce0445507eb4733adc8 | [
"MIT"
] | null | null | null | #include "Rect.h"
namespace SemperGL
{
Rect::Rect(const Vec2f &position, const Vec2f &size, const Vec4f &color)
{
m_Position = position;
m_Size = size;
m_Color = color;
}
void Rect::SetColor(const Vec4f &color)
{
m_Color = color;
}
void Rect::SetTexture(const Texture &texture)
{
m_Texture = &tex... | 13.45122 | 73 | 0.655485 | SemperParatusGithub |
53a1dd9866f7659b19d9eba5dc0a3347acd34cf7 | 6,720 | cpp | C++ | src/caffe/layers/mlu_resizecrop_layer.cpp | imoisture/caffe | 4d6892afeff234c57ce470056939101e0ae71369 | [
"BSD-2-Clause"
] | null | null | null | src/caffe/layers/mlu_resizecrop_layer.cpp | imoisture/caffe | 4d6892afeff234c57ce470056939101e0ae71369 | [
"BSD-2-Clause"
] | null | null | null | src/caffe/layers/mlu_resizecrop_layer.cpp | imoisture/caffe | 4d6892afeff234c57ce470056939101e0ae71369 | [
"BSD-2-Clause"
] | null | null | null | /*
All modification made by Cambricon Corporation: © 2018--2019 Cambricon Corporation
All rights reserved.
All other contributions:
Copyright (c) 2014--2019, the respective contributors
All rights reserved.
For the list of contributors go to https://github.com/BVLC/caffe/blob/master/CONTRIBUTORS.md
Redistribution and u... | 35.555556 | 92 | 0.685714 | imoisture |
53a46ead919d0661855469f6491559eb360a6ab8 | 505 | hpp | C++ | frontend/ast/unary.hpp | NicolaiLS/becarre | cf23e80041f856f50b9f96c087819780dfe1792c | [
"MIT"
] | null | null | null | frontend/ast/unary.hpp | NicolaiLS/becarre | cf23e80041f856f50b9f96c087819780dfe1792c | [
"MIT"
] | null | null | null | frontend/ast/unary.hpp | NicolaiLS/becarre | cf23e80041f856f50b9f96c087819780dfe1792c | [
"MIT"
] | null | null | null | #if !defined(BECARRE_FRONTEND_AST_UNARY_HPP)
#define BECARRE_FRONTEND_AST_UNARY_HPP
#include <becarre/frontend/ast/expression.hpp>
#include <becarre/frontend/ast/operator.hpp>
#include <becarre/utility/recursive.hpp>
namespace becarre::frontend::ast
{
struct Expression;
struct Unary
{
enum class Kind { Prefix, P... | 19.423077 | 50 | 0.776238 | NicolaiLS |
53a50d3d6211e2acb4931fbefaa5a39b3639b637 | 3,581 | cpp | C++ | LibFoundation/Intersection/Wm4IntrLine3Sphere3.cpp | wjezxujian/WildMagic4 | 249a17f8c447cf57c6283408e01009039810206a | [
"BSL-1.0"
] | 3 | 2021-08-02T04:03:03.000Z | 2022-01-04T07:31:20.000Z | LibFoundation/Intersection/Wm4IntrLine3Sphere3.cpp | wjezxujian/WildMagic4 | 249a17f8c447cf57c6283408e01009039810206a | [
"BSL-1.0"
] | null | null | null | LibFoundation/Intersection/Wm4IntrLine3Sphere3.cpp | wjezxujian/WildMagic4 | 249a17f8c447cf57c6283408e01009039810206a | [
"BSL-1.0"
] | 5 | 2019-10-13T02:44:19.000Z | 2021-08-02T04:03:10.000Z | // Geometric Tools, Inc.
// http://www.geometrictools.com
// Copyright (c) 1998-2006. All Rights Reserved
//
// The Wild Magic Version 4 Foundation Library source code is supplied
// under the terms of the license agreement
// http://www.geometrictools.com/License/Wm4FoundationLicense.pdf
// and may not be copied ... | 32.261261 | 78 | 0.502653 | wjezxujian |
53a51d181c04c156de862cb65e6c549536f252b8 | 600 | cpp | C++ | examples/gen_random.cpp | Z-techIT/Graph | ab2292a6b6d7f86602215068cf781413c74100fa | [
"MIT"
] | 7 | 2016-07-14T01:24:47.000Z | 2022-03-22T02:29:28.000Z | examples/gen_random.cpp | Z-techIT/Graph | ab2292a6b6d7f86602215068cf781413c74100fa | [
"MIT"
] | null | null | null | examples/gen_random.cpp | Z-techIT/Graph | ab2292a6b6d7f86602215068cf781413c74100fa | [
"MIT"
] | 2 | 2016-02-19T16:42:35.000Z | 2021-06-21T07:28:19.000Z | //an example to generate a benchmark of simple undirected middle-size graphs
//author:pablo san segundo
//inital date: 24/05/2015
// last update: 24/05/15
#include <iostream>
#include <string.h>
#include <string>
#include "../graph.h"
#include "../graph_gen.h"
using namespace std;
#define LOG_BENCHMARK "C:/Users/P... | 20.689655 | 78 | 0.713333 | Z-techIT |
53a7284c556168d591f0cb83f947bd9586d5c4e3 | 641 | cpp | C++ | src/DataCollector/DataItemCollectorSwitchableShares.cpp | SABCEMM/SABCEMM | a87ea83b57a8a7d16591abe30e56db459e710a0e | [
"BSD-3-Clause"
] | 17 | 2018-01-08T13:38:28.000Z | 2022-01-21T05:39:26.000Z | src/DataCollector/DataItemCollectorSwitchableShares.cpp | SABCEMM/SABCEMM | a87ea83b57a8a7d16591abe30e56db459e710a0e | [
"BSD-3-Clause"
] | null | null | null | src/DataCollector/DataItemCollectorSwitchableShares.cpp | SABCEMM/SABCEMM | a87ea83b57a8a7d16591abe30e56db459e710a0e | [
"BSD-3-Clause"
] | 1 | 2018-01-08T13:39:00.000Z | 2018-01-08T13:39:00.000Z | #include "DataItemCollectorSwitchableShares.h"
/** Saves current chartist share in the history
*/
void DataItemCollectorSwitchableShares::collectData() {
dataMatrix.at(0).push_back(switchable->getChartistShare());
}
DataItemCollectorSwitchableShares::DataItemCollectorSwitchableShares(const std::vector<Switchable... | 30.52381 | 114 | 0.75819 | SABCEMM |
53b496e5e6554fc5a442b71a7b86186780a9a46e | 1,586 | cpp | C++ | Examples/RunGame/Tile.cpp | yus1108/UnsungEngine2 | c824c049069a0d8283f84b09af7ae0182d9a48c9 | [
"MIT"
] | null | null | null | Examples/RunGame/Tile.cpp | yus1108/UnsungEngine2 | c824c049069a0d8283f84b09af7ae0182d9a48c9 | [
"MIT"
] | 4 | 2021-03-12T06:11:36.000Z | 2021-03-19T11:09:06.000Z | Examples/RunGame/Tile.cpp | yus1108/UnsungEngine2 | c824c049069a0d8283f84b09af7ae0182d9a48c9 | [
"MIT"
] | null | null | null | #include "stdafx.h"
#include "Tile.h"
void Tile::Start()
{
GetTransform()->localPosition.value.x = fixedPosition.x;
}
void Tile::FixedUpdate()
{
fixedPosition.x -= 3;
if (GetTransform()->localPosition.value.x < -650)
{
fixedPosition.x += 1300;
if (Math::RndInt(0, 3) % 4 == 0)
{
if (GetComponent<RenderComp... | 26.881356 | 76 | 0.638714 | yus1108 |
53b8c22fd86dafaa342e3d4a0410d0b33ce0d4c8 | 3,361 | hpp | C++ | library/ATF/CAsyncLoggerInfo.hpp | lemkova/Yorozuya | f445d800078d9aba5de28f122cedfa03f26a38e4 | [
"MIT"
] | 29 | 2017-07-01T23:08:31.000Z | 2022-02-19T10:22:45.000Z | library/ATF/CAsyncLoggerInfo.hpp | kotopes/Yorozuya | 605c97d3a627a8f6545cc09f2a1b0a8afdedd33a | [
"MIT"
] | 90 | 2017-10-18T21:24:51.000Z | 2019-06-06T02:30:33.000Z | library/ATF/CAsyncLoggerInfo.hpp | kotopes/Yorozuya | 605c97d3a627a8f6545cc09f2a1b0a8afdedd33a | [
"MIT"
] | 44 | 2017-12-19T08:02:59.000Z | 2022-02-24T23:15:01.000Z | // This file auto generated by plugin for ida pro. Generated code only for x64. Please, dont change manually
#pragma once
#include <common/common.h>
#include <CAsyncLogger.hpp>
START_ATF_NAMESPACE
namespace Info
{
using CAsyncLoggerctor_CAsyncLogger2_ptr = void (WINAPIV*)(struct CAsyncLogger... | 74.688889 | 156 | 0.746504 | lemkova |
53c5a4e7a04d4f4233c0bcc5b9e4b33c6fe50370 | 703 | hpp | C++ | include/qtl_mysql_pool.hpp | wyyrepo/qtl | ab9dec8671eeb90230064474cf86c49c69fd8e10 | [
"Apache-2.0"
] | 1 | 2022-03-26T08:24:12.000Z | 2022-03-26T08:24:12.000Z | include/qtl_mysql_pool.hpp | wyyrepo/qtl | ab9dec8671eeb90230064474cf86c49c69fd8e10 | [
"Apache-2.0"
] | null | null | null | include/qtl_mysql_pool.hpp | wyyrepo/qtl | ab9dec8671eeb90230064474cf86c49c69fd8e10 | [
"Apache-2.0"
] | null | null | null | #ifndef _QTL_MYSQL_POOL_H_
#define _QTL_MYSQL_POOL_H_
#include "qtl_database_pool.hpp"
#include "qtl_mysql.hpp"
namespace qtl
{
namespace mysql
{
class database_pool : public qtl::database_pool<database>
{
public:
database_pool() : m_port(0) { }
virtual ~database_pool() { }
virtual database* new_database() throw... | 16.348837 | 94 | 0.70697 | wyyrepo |
53cdbc3967597effe3fdbea89cd2a942f7724343 | 1,147 | cpp | C++ | Linked Lists/Reverse_Part_of_LinkedList.cpp | RBiswa787/Online_Coding_Round_Preparation_Resource | 89635e14734b01be67096f366af2469acc79cfa7 | [
"MIT"
] | null | null | null | Linked Lists/Reverse_Part_of_LinkedList.cpp | RBiswa787/Online_Coding_Round_Preparation_Resource | 89635e14734b01be67096f366af2469acc79cfa7 | [
"MIT"
] | null | null | null | Linked Lists/Reverse_Part_of_LinkedList.cpp | RBiswa787/Online_Coding_Round_Preparation_Resource | 89635e14734b01be67096f366af2469acc79cfa7 | [
"MIT"
] | null | null | null | /*
Given the head of a singly linked list and two integers left and right where left <= right, reverse the nodes of the list from position left to position right, and return the reversed list.
Example Input and Output:
Input: head = [1,2,3,4,5], left = 2, right = 4
Output: [1,4,3,2,5]
Input: head = [5], left = 1, rig... | 31 | 189 | 0.552746 | RBiswa787 |
53d17d45c58ad0aed4353d274abdc0da5ab4d70a | 818 | hpp | C++ | cppcore/include/kpm/default/Compute.hpp | lise1020/pybinding | 921d5c2ac0ecc0ef317ba28b0bf68899ea30709a | [
"BSD-2-Clause"
] | 159 | 2016-01-20T17:40:48.000Z | 2022-03-24T06:08:55.000Z | cppcore/include/kpm/default/Compute.hpp | deilynazar/pybinding | ec1128aaa84a1b43a74fb970479ce4544bd63179 | [
"BSD-2-Clause"
] | 36 | 2016-11-01T17:15:12.000Z | 2022-03-08T14:31:51.000Z | cppcore/include/kpm/default/Compute.hpp | deilynazar/pybinding | ec1128aaa84a1b43a74fb970479ce4544bd63179 | [
"BSD-2-Clause"
] | 57 | 2016-04-23T22:12:01.000Z | 2022-03-08T12:33:04.000Z | #pragma once
#include "kpm/Core.hpp"
namespace cpb { namespace kpm {
/**
Default CPU implementation for computing KPM moments, see `Core`
*/
class DefaultCompute : public Compute::Interface {
public:
using ProgressCallback = std::function<void (idx_t delta, idx_t total)>;
DefaultCompute(idx_t num_threads =... | 27.266667 | 84 | 0.723716 | lise1020 |
53d4ae6e2ec14f76828b209943cbe110cf606186 | 1,590 | cpp | C++ | DirectXEngine/src/Debug/IDebugEditor.cpp | rpj5582/DirectX-Engine | abf185d7265ca91081ab1eedf2f3bcafb83f8131 | [
"MIT"
] | 1 | 2021-12-19T01:37:49.000Z | 2021-12-19T01:37:49.000Z | DirectXEngine/src/Debug/IDebugEditor.cpp | rpj5582/DirectX-Engine | abf185d7265ca91081ab1eedf2f3bcafb83f8131 | [
"MIT"
] | null | null | null | DirectXEngine/src/Debug/IDebugEditor.cpp | rpj5582/DirectX-Engine | abf185d7265ca91081ab1eedf2f3bcafb83f8131 | [
"MIT"
] | null | null | null | #include "IDebugEditor.h"
#include "Debug.h"
IDebugEditor::IDebugEditor() : m_popupInputTextBuffer("")
{
}
IDebugEditor::~IDebugEditor()
{
}
Choice IDebugEditor::showTextInputPopup(std::string windowName, std::string label, std::string& result)
{
if (ImGui::BeginPopupModal(windowName.c_str(), nullptr, ImGuiWindowF... | 23.043478 | 124 | 0.696226 | rpj5582 |
53d512181696a54bc339b2ea03fd710ca36d1e88 | 1,316 | cpp | C++ | code/src/common/Graph.cpp | zjuliangxun/Visualized-Neural-Networks | b3ddc8ab99303ee4abf840d743017902783629e4 | [
"MIT"
] | null | null | null | code/src/common/Graph.cpp | zjuliangxun/Visualized-Neural-Networks | b3ddc8ab99303ee4abf840d743017902783629e4 | [
"MIT"
] | 7 | 2020-07-09T15:59:56.000Z | 2020-07-13T04:48:36.000Z | code/src/common/Graph.cpp | yyh-saa/Visualized-Neural-Networks | d7ddf08dacc047f8b9370ad4f948a25455ef7703 | [
"MIT"
] | 3 | 2020-07-07T13:36:58.000Z | 2020-07-08T12:21:31.000Z | #include "Graph.h"
#include<queue>
#include<cmath>
bool Graph::add_neuron(Neuron &&nuro)
{
nuro.isleaf=(nuro.type == nTarget ? nOutput : nInput);
nuro.id = ++_neuron_id;
nuro.indeg=0;
nuro.outdeg=0;
nuro._b=0; //
this->_neurons.append(std::move(nuro));
return true;
}
Neuron& Graph::atNeuronI... | 28.608696 | 62 | 0.617021 | zjuliangxun |
53d985049f6ef5656e731afa9ebeb9b66d0d47af | 35,024 | cxx | C++ | osprey/ipa/main/analyze/ipa_section_prop.cxx | sharugupta/OpenUH | daddd76858a53035f5d713f648d13373c22506e8 | [
"BSD-2-Clause"
] | null | null | null | osprey/ipa/main/analyze/ipa_section_prop.cxx | sharugupta/OpenUH | daddd76858a53035f5d713f648d13373c22506e8 | [
"BSD-2-Clause"
] | null | null | null | osprey/ipa/main/analyze/ipa_section_prop.cxx | sharugupta/OpenUH | daddd76858a53035f5d713f648d13373c22506e8 | [
"BSD-2-Clause"
] | null | null | null | /*
* Copyright 2003, 2004, 2005, 2006 PathScale, Inc. All Rights Reserved.
*/
/*
Copyright (C) 2000, 2001 Silicon Graphics, Inc. All Rights Reserved.
This program is free software; you can redistribute it and/or modify it
under the terms of version 2 of the GNU General Public License as
published by the ... | 34.303624 | 87 | 0.587397 | sharugupta |
53da57247b7a91cab3db4b9225cb750d2e5cec70 | 2,765 | cpp | C++ | modules/task_1/ptitsyn_p_bbb_sort/main.cpp | egorshul/pp_2021_spring_engineers | 833868c757648149a152ff0913c5e3905cd56176 | [
"BSD-3-Clause"
] | null | null | null | modules/task_1/ptitsyn_p_bbb_sort/main.cpp | egorshul/pp_2021_spring_engineers | 833868c757648149a152ff0913c5e3905cd56176 | [
"BSD-3-Clause"
] | null | null | null | modules/task_1/ptitsyn_p_bbb_sort/main.cpp | egorshul/pp_2021_spring_engineers | 833868c757648149a152ff0913c5e3905cd56176 | [
"BSD-3-Clause"
] | 1 | 2021-03-29T14:29:42.000Z | 2021-03-29T14:29:42.000Z | // Copyright 2021 Ptitsyn Pavel
#include <gtest/gtest.h>
#include <vector>
#include <iostream>
#include "../../../modules/task_1/ptitsyn_p_bbb_sort/bbb_sort.h"
template <class T>
void check_arrays(const std::vector<T>& lhs, const std::vector<T>& rhs) {
ASSERT_EQ(lhs.size(), rhs.size());
for (size_t i = 0; i < ... | 31.781609 | 73 | 0.661121 | egorshul |
53de900e23d94dc61c5fb7ab552095fdb61b1e39 | 1,014 | hpp | C++ | libs/core/include/fcppt/cast/safe.hpp | pmiddend/fcppt | 9f437acbb10258e6df6982a550213a05815eb2be | [
"BSL-1.0"
] | null | null | null | libs/core/include/fcppt/cast/safe.hpp | pmiddend/fcppt | 9f437acbb10258e6df6982a550213a05815eb2be | [
"BSL-1.0"
] | null | null | null | libs/core/include/fcppt/cast/safe.hpp | pmiddend/fcppt | 9f437acbb10258e6df6982a550213a05815eb2be | [
"BSL-1.0"
] | null | null | null | // Copyright Carl Philipp Reh 2009 - 2018.
// 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 FCPPT_CAST_SAFE_HPP_INCLUDED
#define FCPPT_CAST_SAFE_HPP_INCLUDED
#include <fcppt/cast/de... | 18.436364 | 113 | 0.740631 | pmiddend |
53e18e32a60e6821b3dc03aaa246bfa3df82b3cd | 8,342 | cpp | C++ | src/sk_align.cpp | simonrharris/SKA | 03eed54d61e213309dd8e782248e0119b87f8436 | [
"MIT"
] | 39 | 2018-10-26T07:33:47.000Z | 2021-12-30T13:20:23.000Z | src/sk_align.cpp | simonrharris/SKA | 03eed54d61e213309dd8e782248e0119b87f8436 | [
"MIT"
] | 24 | 2018-10-25T09:44:27.000Z | 2020-08-11T20:11:18.000Z | src/sk_align.cpp | simonrharris/SKA | 03eed54d61e213309dd8e782248e0119b87f8436 | [
"MIT"
] | null | null | null | #include <unordered_map> //std::unordered_map
#include <iostream> //std::cout std::cerr
#include <fstream> //std::ifstream
#include <string> //std::string
#include <vector> //std::vecto
#include <cmath> //std::ceil
#include <iterator> // std::distance
#include "general.hpp"
#include "kmers.hpp"
#include "DNA.hpp"
#inc... | 38.8 | 238 | 0.698034 | simonrharris |
53e224ba1cbf68931a3db9d7c4544431b971ff13 | 30,075 | cpp | C++ | service/service/mvwindow.cpp | rdmenezes/exodusdb | f732e366b74ff4697890ec0682bc3697b8cb0bfb | [
"MIT"
] | null | null | null | service/service/mvwindow.cpp | rdmenezes/exodusdb | f732e366b74ff4697890ec0682bc3697b8cb0bfb | [
"MIT"
] | null | null | null | service/service/mvwindow.cpp | rdmenezes/exodusdb | f732e366b74ff4697890ec0682bc3697b8cb0bfb | [
"MIT"
] | null | null | null | /* Copyright (c) 2007 Stephen John Bush - see LICENCE.TXT*/
#define NEO_MVWINDOW_CPP
#include <iostream>
#include "mvwindow.h"
//#include "Market.h"
//using namespace std;
// MVWINDOW NO LONGER REQUIRED - REPLACED BY win.h window.cpp and various external subroutines
//////////////////////////////////////////... | 25.617547 | 236 | 0.57719 | rdmenezes |
53e3674844282ab51ce8612f910aea5d3b9e0891 | 12,363 | cpp | C++ | Cpp/SDK/BP_GenericVehicleClosedTurret_functions.cpp | MrManiak/Squad-SDK | 742feb5991ae43d6f0cedd2d6b32b949923ca4f9 | [
"Apache-2.0"
] | 1 | 2020-08-15T08:31:55.000Z | 2020-08-15T08:31:55.000Z | Cpp/SDK/BP_GenericVehicleClosedTurret_functions.cpp | MrManiak/Squad-SDK | 742feb5991ae43d6f0cedd2d6b32b949923ca4f9 | [
"Apache-2.0"
] | 2 | 2020-08-15T08:43:56.000Z | 2021-01-15T05:04:48.000Z | Cpp/SDK/BP_GenericVehicleClosedTurret_functions.cpp | MrManiak/Squad-SDK | 742feb5991ae43d6f0cedd2d6b32b949923ca4f9 | [
"Apache-2.0"
] | 2 | 2020-08-10T12:05:42.000Z | 2021-02-12T19:56:10.000Z | // Name: S, Version: b
#include "../SDK.h"
#ifdef _MSC_VER
#pragma pack(push, 0x01)
#endif
/*!!HELPER_DEF!!*/
/*!!DEFINE!!*/
namespace UFT
{
//---------------------------------------------------------------------------
// Functions
//---------------------------------------------------------------------------
// ... | 36.68546 | 181 | 0.805144 | MrManiak |
53e5a8fdbd30e5ec5be1afd4b05792abd3cb28a7 | 902 | cpp | C++ | src/MdCharm/util/gui/insertcodedialog.cpp | MonkeyMo/MdCharm | 78799f0bd85603aae9361b4fca05384a69f690e6 | [
"BSD-3-Clause"
] | 387 | 2015-01-01T17:51:59.000Z | 2021-06-13T19:40:15.000Z | src/MdCharm/util/gui/insertcodedialog.cpp | MonkeyMo/MdCharm | 78799f0bd85603aae9361b4fca05384a69f690e6 | [
"BSD-3-Clause"
] | 26 | 2015-01-09T08:36:26.000Z | 2020-04-02T12:51:01.000Z | src/MdCharm/util/gui/insertcodedialog.cpp | heefan/MdCharm | 78799f0bd85603aae9361b4fca05384a69f690e6 | [
"BSD-3-Clause"
] | 145 | 2015-01-10T18:07:45.000Z | 2021-09-14T07:39:35.000Z | #include "insertcodedialog.h"
#include "ui_insertcodedialog.h"
InsertCodeDialog::InsertCodeDialog(QWidget *parent) :
QDialog(parent, Qt::WindowTitleHint|Qt::WindowSystemMenuHint),
ui(new Ui::InsertCodeDialog)
{
ui->setupUi(this);
QStringList supportLan;
supportLan << "bash" << "c" << "cpp" << "cs"
... | 29.096774 | 66 | 0.585366 | MonkeyMo |
53e8bb774c9aef1eb982b5a16b81e84a4f5c0be5 | 1,360 | cpp | C++ | RayTracer/core/source/MovingShpere.cpp | ZFhuang/AmbiRenderer | d223e1c4d947872c9011c1cba6a8f498ebbaf3b7 | [
"Apache-2.0"
] | null | null | null | RayTracer/core/source/MovingShpere.cpp | ZFhuang/AmbiRenderer | d223e1c4d947872c9011c1cba6a8f498ebbaf3b7 | [
"Apache-2.0"
] | null | null | null | RayTracer/core/source/MovingShpere.cpp | ZFhuang/AmbiRenderer | d223e1c4d947872c9011c1cba6a8f498ebbaf3b7 | [
"Apache-2.0"
] | null | null | null | #include "MovingSphere.hpp"
Point3 MovingSphere::center(double time) const {
// 用时间作比例对位置进行线性插值
return center0 + ((time - time0) / (time1 - time0)) * (center1 - center0);
}
bool MovingSphere::hit(const Ray& r, double s_min, double s_max, HitRecord& rec) const {
// 特点是新的目标位置需要利用time参数来计算
Vec3 oc = r.origin() - ce... | 26.666667 | 88 | 0.671324 | ZFhuang |
53e8cf9f62c6087b25645859de451bc0f8483bbe | 9,392 | cpp | C++ | source/train/TTrain.cpp | huchinlp/NiuTensor | 38d1d7668f5cce16de410fb6a01836f47f43af16 | [
"Apache-2.0"
] | 14 | 2018-05-14T09:39:06.000Z | 2019-08-27T14:46:38.000Z | source/train/TTrain.cpp | huchinlp/NiuTensor | 38d1d7668f5cce16de410fb6a01836f47f43af16 | [
"Apache-2.0"
] | 1 | 2019-04-24T04:42:59.000Z | 2019-06-18T08:09:31.000Z | source/train/TTrain.cpp | huchinlp/NiuTensor | 38d1d7668f5cce16de410fb6a01836f47f43af16 | [
"Apache-2.0"
] | 5 | 2019-02-27T03:54:12.000Z | 2019-08-27T14:46:37.000Z | /*
* NiuTrans.Tensor - an open-source tensor library
* Copyright (C) 2016-2021
* Natural Language Processing Lab, Northeastern University
* and
* NiuTrans Research
* 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... | 25.179625 | 86 | 0.624574 | huchinlp |
53eb9d483b6db4ef530d2cb3bd20fd8f2dbb175a | 1,124 | cpp | C++ | SRC/Data Structure/SegTree/hduoj4288.cpp | YouDad/ACM | ac26e0b360267943af32692629d6c34e739ee70d | [
"MIT"
] | 2 | 2018-07-27T08:09:48.000Z | 2018-09-26T16:36:37.000Z | SRC/Data Structure/SegTree/hduoj4288.cpp | YouDad/ACM | ac26e0b360267943af32692629d6c34e739ee70d | [
"MIT"
] | null | null | null | SRC/Data Structure/SegTree/hduoj4288.cpp | YouDad/ACM | ac26e0b360267943af32692629d6c34e739ee70d | [
"MIT"
] | null | null | null | #include<stdio.h>
#include<string.h>
#include<algorithm>
long long sum[1<<18][5];int cnt[1<<18],raw[1<<17],wash[1<<17];
char op[1<<17];
int main(){
for(int n;~scanf("%d%*c",&n);){
int M=1;while(M-2<n)M<<=1;
for(int i=0;i<n;i++)
if((op[i]=getchar())!='s')
scanf("%*s %d%*c"... | 36.258065 | 79 | 0.441281 | YouDad |
53f219adc2d6706e41ac9526db967d894cf443ef | 612 | cpp | C++ | src/SimpleEnemy.cpp | jhonrocha/gradius | 985870642c5a9cdafe0664be6ebd1e7265124126 | [
"MIT"
] | null | null | null | src/SimpleEnemy.cpp | jhonrocha/gradius | 985870642c5a9cdafe0664be6ebd1e7265124126 | [
"MIT"
] | null | null | null | src/SimpleEnemy.cpp | jhonrocha/gradius | 985870642c5a9cdafe0664be6ebd1e7265124126 | [
"MIT"
] | null | null | null | /*
* SimpleEnemy.cpp
*
* Created on: 28/05/2013
* Author: jhonantans
*/
#include "SimpleEnemy.h"
SimpleEnemy::SimpleEnemy(string path, int coord_x, int coord_y, int xVel, int yVel):Enemy(path, coord_x, coord_y, xVel, yVel){
// TODO Auto-generated constructor stub
}
SimpleEnemy::~SimpleEnemy() {
// TODO... | 16.540541 | 126 | 0.638889 | jhonrocha |
53f62e4a28a8b148969e1fad7021f61da285d73a | 28,230 | cpp | C++ | Windows/NamedPipe/NamedPipeServer.cpp | st-gb/CPUinfoAndControl | 5e93d4a195b4692d147bb05cfef534e38d7f8b64 | [
"MIT"
] | null | null | null | Windows/NamedPipe/NamedPipeServer.cpp | st-gb/CPUinfoAndControl | 5e93d4a195b4692d147bb05cfef534e38d7f8b64 | [
"MIT"
] | null | null | null | Windows/NamedPipe/NamedPipeServer.cpp | st-gb/CPUinfoAndControl | 5e93d4a195b4692d147bb05cfef534e38d7f8b64 | [
"MIT"
] | 1 | 2021-07-16T21:01:26.000Z | 2021-07-16T21:01:26.000Z | /* Do not remove this header/ copyright information.
*
* Copyright © Trilobyte Software Engineering GmbH, Berlin, Germany 2010-2011.
* You are allowed to modify and use the source code from
* Trilobyte Software Engineering GmbH, Berlin, Germany for free if you are not
* making profit with it or its adaption. Else ... | 34.981413 | 81 | 0.645271 | st-gb |
53f70267dac36f932a57002da7bc09d7539e5ef4 | 404 | cpp | C++ | src/classes/main_window/main_window_finished_order.cpp | kevinxtung/MICE | 6559c8d242893f0697f64853ab49688198e9692d | [
"MIT"
] | null | null | null | src/classes/main_window/main_window_finished_order.cpp | kevinxtung/MICE | 6559c8d242893f0697f64853ab49688198e9692d | [
"MIT"
] | 6 | 2018-05-14T23:38:17.000Z | 2018-05-18T23:38:06.000Z | src/classes/main_window/main_window_finished_order.cpp | kevinxtung/MICE | 6559c8d242893f0697f64853ab49688198e9692d | [
"MIT"
] | null | null | null | #include "main_window.h"
#include <chrono>
#include <time.h>
void Main_Window::finishedOrderScreen() {
clean();
Gtk::Label* l_finished = Gtk::manage(new Gtk::Label("Your order has been successfully submitted!"));
box->set_center_widget(*l_finished);
mainbox->add(*box);
mainbox->show_all();
//s... | 26.933333 | 104 | 0.685644 | kevinxtung |
53fbc6973c83a61e2cf43457c1ab8fb3fc51d2f6 | 491 | cpp | C++ | 74.cpp | zfang399/LeetCode-Problems | 4cb25718a3d1361569f5ee6fde7b4a9a4fde2186 | [
"MIT"
] | 8 | 2018-10-31T11:00:19.000Z | 2020-07-31T05:25:06.000Z | 74.cpp | zfang399/LeetCode-Problems | 4cb25718a3d1361569f5ee6fde7b4a9a4fde2186 | [
"MIT"
] | null | null | null | 74.cpp | zfang399/LeetCode-Problems | 4cb25718a3d1361569f5ee6fde7b4a9a4fde2186 | [
"MIT"
] | 2 | 2018-05-31T11:29:22.000Z | 2019-09-11T06:34:40.000Z | class Solution {
public:
bool searchMatrix(vector<vector<int>>& matrix, int target) {
if(matrix.size()==0) return false;
if(matrix[0].size()==0) return false;
int i=0;
while(i<matrix.size() && matrix[i][0]<=target){
i++;
}
if(i>0) i--;
for(int j=0;... | 27.277778 | 64 | 0.496945 | zfang399 |
d882e1580c1abfae691bff05c5d6e79b69add683 | 3,508 | hpp | C++ | src/tests/combat_mechanics_test.hpp | ropufu/settlers_online | a6e90567c87734375d8f099130238901f0860ce5 | [
"MIT"
] | 1 | 2018-04-09T12:10:44.000Z | 2018-04-09T12:10:44.000Z | src/tests/combat_mechanics_test.hpp | ropufu/settlers_online | a6e90567c87734375d8f099130238901f0860ce5 | [
"MIT"
] | null | null | null | src/tests/combat_mechanics_test.hpp | ropufu/settlers_online | a6e90567c87734375d8f099130238901f0860ce5 | [
"MIT"
] | null | null | null |
#ifndef ROPUFU_SETTLERS_ONLINE_TEST_COMBAT_MECHANICS_TEST_HPP_INCLUDED
#define ROPUFU_SETTLERS_ONLINE_TEST_COMBAT_MECHANICS_TEST_HPP_INCLUDED
#include "../settlers_online/combat/army.hpp"
#include "../settlers_online/combat/combat_result.hpp"
#include "../settlers_online/combat/battle.hpp"
#include "../settlers_onlin... | 37.319149 | 104 | 0.63455 | ropufu |
d8835bd3d8507a289422426927c2832f47722e23 | 15,765 | cpp | C++ | src/Stacker.cpp | mocklerlab/supersplat | a1f254f2bc95a872dc69877252894cebba637585 | [
"MIT"
] | 1 | 2015-06-25T09:16:35.000Z | 2015-06-25T09:16:35.000Z | src/Stacker.cpp | mocklerlab/supersplat | a1f254f2bc95a872dc69877252894cebba637585 | [
"MIT"
] | null | null | null | src/Stacker.cpp | mocklerlab/supersplat | a1f254f2bc95a872dc69877252894cebba637585 | [
"MIT"
] | null | null | null | /*
* Stacker.cpp
*
* Created on: Apr 26, 2011
* Author: Douglas W Bryant Jr
*/
#include "Stacker.h"
Stacker::Stacker(StackParameters* p_dParams) {
m_sReferenceNameToAnalyze = p_dParams->getReferenceNameToAnalyze();
m_iMinReadCopyNumber = p_dParams->getMinReadCopyNumber();
m_iMaxReadCopyNumber = p_d... | 48.657407 | 164 | 0.742785 | mocklerlab |
d888ef30eb1a537df4488ce22c05cbfba94548d2 | 237 | cc | C++ | Codeforces/200 Division 1/Problem B/B.cc | VastoLorde95/Competitive-Programming | 6c990656178fb0cd33354cbe5508164207012f24 | [
"MIT"
] | 170 | 2017-07-25T14:47:29.000Z | 2022-01-26T19:16:31.000Z | Codeforces/200 Division 1/Problem B/B.cc | navodit15/Competitive-Programming | 6c990656178fb0cd33354cbe5508164207012f24 | [
"MIT"
] | null | null | null | Codeforces/200 Division 1/Problem B/B.cc | navodit15/Competitive-Programming | 6c990656178fb0cd33354cbe5508164207012f24 | [
"MIT"
] | 55 | 2017-07-28T06:17:33.000Z | 2021-10-31T03:06:22.000Z | #include<bits/stdc++.h>
using namespace std;string s;int n;stack<char> q;int main(){cin>>s;n=s.length();for(int i=0;i<n;i++)if(!q.empty() and q.top()==s[i])q.pop();else q.push(s[i]); if(!q.empty())puts("No");else puts("Yes"); return 0;}
| 79 | 212 | 0.624473 | VastoLorde95 |
d889789335ced2c966ac63fdbd7ee8d22eb00c5c | 7,630 | cpp | C++ | src/platform/xcb/xcb_opengl_render_window.cpp | epicodic/diligent-graph | 64325a17498fa6b913bffadfc1a43108c81dd7b0 | [
"Apache-2.0"
] | 3 | 2020-08-25T07:54:43.000Z | 2021-01-14T20:05:06.000Z | src/platform/xcb/xcb_opengl_render_window.cpp | epicodic/diligent-graph | 64325a17498fa6b913bffadfc1a43108c81dd7b0 | [
"Apache-2.0"
] | null | null | null | src/platform/xcb/xcb_opengl_render_window.cpp | epicodic/diligent-graph | 64325a17498fa6b913bffadfc1a43108c81dd7b0 | [
"Apache-2.0"
] | null | null | null |
#include "xcb_render_window.hpp"
#include "../render_window_private.hpp"
#include <dg/core/common.hpp>
#include <memory>
#include <GL/glx.h>
#include <GL/gl.h>
#include <X11/Xlib.h>
//extern "C" {
#include <X11/Xlib-xcb.h> /* for XGetXCBConnection, link with libX11-xcb */
//}
#include <DiligentCore/Graphics/Grap... | 27.25 | 153 | 0.683355 | epicodic |
d88b836d7e13d55be3dc72652daac470bd933e40 | 731 | cpp | C++ | led-blink/src/pie/mcu/stm32f1/interrupts.cpp | ikapoz/stm32 | 9efc2a099f55bddaf85b68cc51fb6a31b48538b7 | [
"MIT"
] | null | null | null | led-blink/src/pie/mcu/stm32f1/interrupts.cpp | ikapoz/stm32 | 9efc2a099f55bddaf85b68cc51fb6a31b48538b7 | [
"MIT"
] | null | null | null | led-blink/src/pie/mcu/stm32f1/interrupts.cpp | ikapoz/stm32 | 9efc2a099f55bddaf85b68cc51fb6a31b48538b7 | [
"MIT"
] | null | null | null | #include "interrupts.hpp"
#include "interrupt_mgr.hpp"
void default_handler(void) {
while (1) {
}
}
void dummy_handler() {
int i = 0;
++i;
}
void nmi_handler() __attribute__((weak, alias("default_handler")));
void hard_fault_handler() __attribute__((weak, alias("default_handler")));
void mem_manage_handler()... | 31.782609 | 75 | 0.745554 | ikapoz |
d88b8560a159de3f4b7c854a507a5fbc7474ec3f | 329 | cpp | C++ | src/cascadia/TerminalApp/ActionAndArgs.cpp | lifeng1983/Terminal | 1d35e180fdaacef731886bdb2cabca2ea4fe2b49 | [
"MIT"
] | 4 | 2019-05-09T12:47:49.000Z | 2020-06-16T22:08:57.000Z | src/cascadia/TerminalApp/ActionAndArgs.cpp | ironyman/terminal | 1e2f203395424a0304efe16d955e5b14fd3a5e56 | [
"MIT"
] | 2 | 2020-05-28T15:23:52.000Z | 2020-05-28T15:28:01.000Z | src/cascadia/TerminalApp/ActionAndArgs.cpp | ironyman/terminal | 1e2f203395424a0304efe16d955e5b14fd3a5e56 | [
"MIT"
] | 2 | 2020-05-22T12:54:28.000Z | 2020-08-02T15:21:14.000Z | #include "pch.h"
#include "ActionAndArgs.h"
#include "ActionAndArgs.g.cpp"
// We define everything necessary for the ActionAndArgs class in the header, but
// we still need this file to compile the ActionAndArgs.g.cpp file, and we can't
// just include that file in the header.
namespace winrt::TerminalApp::implementa... | 27.416667 | 80 | 0.762918 | lifeng1983 |
d892998a4f2f171bdda0e524e88b121411a971dc | 3,933 | cpp | C++ | rsa.cpp | crazyboycjr/secure-nc | c2822d22344bd1da07f6c1f86d86d5db4b3b4d33 | [
"MIT"
] | null | null | null | rsa.cpp | crazyboycjr/secure-nc | c2822d22344bd1da07f6c1f86d86d5db4b3b4d33 | [
"MIT"
] | null | null | null | rsa.cpp | crazyboycjr/secure-nc | c2822d22344bd1da07f6c1f86d86d5db4b3b4d33 | [
"MIT"
] | null | null | null | #include "common.h"
#include "rsa.h"
#include <string>
#include <gmpxx.h>
#include <cstdlib>
#include <vector>
using namespace std;
#define BLKSZ (128 / 8)
template<typename T>
T power(T a, T n, const T &p) {
T t = 1;
/* n >>= 1 may cause problems */
for (; n; n >>= 1) {
if ((n & 1) == 1) t = t * a % p;
a = ... | 17.716216 | 83 | 0.597 | crazyboycjr |
d8941513786d3e650aa3eb83bfb478f38188d6d8 | 449 | cpp | C++ | CM2005 Object Oriented Programming/Topic 2/2.6.1/test.cpp | LevDoesCode/UoL | 312b2d1096af4925c94b81d656e5d326dbad939e | [
"MIT"
] | null | null | null | CM2005 Object Oriented Programming/Topic 2/2.6.1/test.cpp | LevDoesCode/UoL | 312b2d1096af4925c94b81d656e5d326dbad939e | [
"MIT"
] | null | null | null | CM2005 Object Oriented Programming/Topic 2/2.6.1/test.cpp | LevDoesCode/UoL | 312b2d1096af4925c94b81d656e5d326dbad939e | [
"MIT"
] | null | null | null | #include <iostream>
#include <string>
#include <vector>
#include <cmath>
#include "Vec3D.h"
Vec3D vec1;
void doSomething()
{
vec1.x = 10;
vec1.y = 12;
vec1.z = 25;
}
int main()
{
doSomething();
//std::cout << vec1.x << std::endl;
//std::cout << vec1.size << std::endl;
std::vector<Vec3D> coords;
co... | 16.62963 | 50 | 0.596882 | LevDoesCode |
d8964fb517a8f8cdd88d1f2e5f76d82e01a36c31 | 425 | hpp | C++ | lv-driver/components/pad.hpp | lv-e/driver-emulator | f4acce0d19ff1d511dbba0ec204672d9b633a6e6 | [
"MIT"
] | null | null | null | lv-driver/components/pad.hpp | lv-e/driver-emulator | f4acce0d19ff1d511dbba0ec204672d9b633a6e6 | [
"MIT"
] | null | null | null | lv-driver/components/pad.hpp | lv-e/driver-emulator | f4acce0d19ff1d511dbba0ec204672d9b633a6e6 | [
"MIT"
] | null | null | null | #pragma once
#include <stdio.h>
#include <stdlib.h>
#define PAD_IDLE (unsigned short) 0
#define PAD_DOWN (unsigned short) 1
#define PAD_PRESSED (unsigned short) 2
#define PAD_UP (unsigned short) 3
struct Pad {
unsigned short up, down, left, right;
Pad(){
clear();
}
void clear(){
up = down = left ... | 16.346154 | 67 | 0.628235 | lv-e |
d8a0b527a5c2dfd17e4e5912dcc8c8c29dcb78f8 | 9,320 | hpp | C++ | yactfr/internal/metadata/json/json-parser.hpp | eepp/yactfr | 5cec5680d025d82a4f175ffc19c0704b32ef529f | [
"MIT"
] | 7 | 2016-08-26T14:20:06.000Z | 2022-02-03T21:17:25.000Z | yactfr/internal/metadata/json/json-parser.hpp | eepp/yactfr | 5cec5680d025d82a4f175ffc19c0704b32ef529f | [
"MIT"
] | 2 | 2018-05-29T17:43:37.000Z | 2018-05-30T18:38:39.000Z | yactfr/internal/metadata/json/json-parser.hpp | eepp/yactfr | 5cec5680d025d82a4f175ffc19c0704b32ef529f | [
"MIT"
] | null | null | null | /*
* Copyright (C) 2022 Philippe Proulx <eepp.ca>
*
* This software may be modified and distributed under the terms
* of the MIT license. See the LICENSE file for details.
*/
#ifndef _YACTFR_INTERNAL_METADATA_JSON_JSON_PARSER_HPP
#define _YACTFR_INTERNAL_METADATA_JSON_JSON_PARSER_HPP
#include <sstream>
#include ... | 22.955665 | 102 | 0.607082 | eepp |
d8a36b342c014347db0959db00a121116d2fca7a | 4,887 | cpp | C++ | thirdparty/pvrtccompressor/PvrTcDecoder.cpp | N0hbdy/godot | d4a222cd9d849a63f0535f70cbf78700bc5c815b | [
"CC-BY-3.0",
"Apache-2.0",
"MIT"
] | 1,279 | 2017-06-21T23:52:43.000Z | 2021-08-05T17:16:52.000Z | thirdparty/pvrtccompressor/PvrTcDecoder.cpp | N0hbdy/godot | d4a222cd9d849a63f0535f70cbf78700bc5c815b | [
"CC-BY-3.0",
"Apache-2.0",
"MIT"
] | 132 | 2018-01-17T17:43:25.000Z | 2020-09-01T07:41:17.000Z | thirdparty/pvrtccompressor/PvrTcDecoder.cpp | N0hbdy/godot | d4a222cd9d849a63f0535f70cbf78700bc5c815b | [
"CC-BY-3.0",
"Apache-2.0",
"MIT"
] | 228 | 2017-04-06T01:30:32.000Z | 2022-03-31T19:18:38.000Z | //============================================================================
#include "PvrTcDecoder.h"
#include "PvrTcPacket.h"
#include "MortonTable.h"
#include <assert.h>
//============================================================================
using namespace Javelin;
using Data::MORTON_TABLE;
//========... | 33.703448 | 122 | 0.497647 | N0hbdy |
d8a63b0711113a216dfcfaf39f65bc6dd908b504 | 491 | hpp | C++ | model_converter/src/Animation/FromAssimp.hpp | astomih/sinen | be850aba18f8b75e6152c2072949e796d014732c | [
"MIT"
] | 1 | 2022-02-13T10:44:01.000Z | 2022-02-13T10:44:01.000Z | model_converter/src/Animation/FromAssimp.hpp | astomih/sinen | be850aba18f8b75e6152c2072949e796d014732c | [
"MIT"
] | null | null | null | model_converter/src/Animation/FromAssimp.hpp | astomih/sinen | be850aba18f8b75e6152c2072949e796d014732c | [
"MIT"
] | null | null | null | #pragma once
#include <Nen.hpp>
#include <assimp/DefaultLogger.hpp>
#include <assimp/Importer.hpp>
#include <assimp/LogStream.hpp>
#include <assimp/cimport.h>
#include <assimp/postprocess.h>
#include <assimp/scene.h>
#include "Animation.hpp"
namespace nen {
vector3 fromAssimp(const aiVector3D &v);
color fromAssimp(c... | 23.380952 | 45 | 0.769857 | astomih |
d8ada7a3b558c41409aaa5733fe40c300dc2664c | 2,170 | hpp | C++ | include/ez/intern/fallback.hpp | errata-c/ez-intrin | 2011e50d08d1055139dfbc7581e975278e362097 | [
"MIT"
] | null | null | null | include/ez/intern/fallback.hpp | errata-c/ez-intrin | 2011e50d08d1055139dfbc7581e975278e362097 | [
"MIT"
] | null | null | null | include/ez/intern/fallback.hpp | errata-c/ez-intrin | 2011e50d08d1055139dfbc7581e975278e362097 | [
"MIT"
] | null | null | null | namespace ez {
inline uint16_t byteswap_u16(uint16_t val) {
return uint16_t(
((val & 0xFF00) >> 8) |
((val & 0x00FF) << 8)
);
}
inline uint32_t byteswap_u32(uint32_t val) {
return uint32_t(
((val & 0xFF00'0000u) >> 24) |
((val & 0x00FF'0000u) >> 8) |
((val & 0x0000'FF00u) << 8) |
((val & 0... | 38.070175 | 93 | 0.579724 | errata-c |
d8b1de383f601db9c3187f7edf9c5a87444e4b55 | 7,985 | cpp | C++ | snowman.cpp | dvir-shaul/snowman_part_b | c1e88808480da05e872901abe6b23ebba168256a | [
"MIT"
] | null | null | null | snowman.cpp | dvir-shaul/snowman_part_b | c1e88808480da05e872901abe6b23ebba168256a | [
"MIT"
] | null | null | null | snowman.cpp | dvir-shaul/snowman_part_b | c1e88808480da05e872901abe6b23ebba168256a | [
"MIT"
] | null | null | null | #include <stdexcept>
#include <array>
#include <iostream>
#include "snowman.hpp"
using namespace ariel;
#include <algorithm>
#include <string>
#include <cmath>
using namespace std;
const int PROPER_LEN = 8;
enum {ZERO,ONE,TOW,THREE,FOUR,FIVE,SIX,SEVEN,EIGHT};
namespace ariel {
// check if any digit is between ... | 34.868996 | 100 | 0.32799 | dvir-shaul |
d8baf59fa1e012a3f363e5437884c93ab042e9e3 | 10,000 | cc | C++ | dartsim/src/JointFeatures.cc | diegoferigo/ign-physics | 8f0d8ce3229f53fbf4e05cb0273530169e6d9fef | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | dartsim/src/JointFeatures.cc | diegoferigo/ign-physics | 8f0d8ce3229f53fbf4e05cb0273530169e6d9fef | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | dartsim/src/JointFeatures.cc | diegoferigo/ign-physics | 8f0d8ce3229f53fbf4e05cb0273530169e6d9fef | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | /*
* Copyright (C) 2018 Open Source Robotics Foundation
*
* 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 appl... | 32.679739 | 80 | 0.634 | diegoferigo |
d8c1c2282409f1e90a73a62fa74254d07598932d | 638 | cpp | C++ | TableCore/TabLog.cpp | easy-csv/easy-table | c18d555602a2417f09e49bdd812bccee855432ec | [
"MIT"
] | null | null | null | TableCore/TabLog.cpp | easy-csv/easy-table | c18d555602a2417f09e49bdd812bccee855432ec | [
"MIT"
] | null | null | null | TableCore/TabLog.cpp | easy-csv/easy-table | c18d555602a2417f09e49bdd812bccee855432ec | [
"MIT"
] | null | null | null | /**
* @file
* @copyright defined in easy-table/LICENSE
*/
#include "TableCore/TabLog.h"
#include "TableCore/StringUtils.h"
#include <iostream>
#if USE_STANDARD_LOG
#include <iostream>
namespace tab
{
#define logio std::cout
void LogStreamBase::_print_log(TabLogType t, const LogString& msg)
{
switch (... | 12.509804 | 67 | 0.595611 | easy-csv |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.