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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
a4d5561da07e8715abdf458003a5f3d084d0eade | 2,783 | cpp | C++ | Geometry/Geometry.cpp | odanado/ProconLib | b90e4109466c71d4ffac42f218f51b695104e37f | [
"MIT"
] | null | null | null | Geometry/Geometry.cpp | odanado/ProconLib | b90e4109466c71d4ffac42f218f51b695104e37f | [
"MIT"
] | 1 | 2018-01-26T12:37:28.000Z | 2018-01-26T12:37:28.000Z | Geometry/Geometry.cpp | odanado/ProconLib | b90e4109466c71d4ffac42f218f51b695104e37f | [
"MIT"
] | null | null | null | #include <complex>
#include <vector>
#include <cmath>
#include <utility>
#include <cassert>
#include <cmath>
const double EPS=1e-10;
#define equals(a, b) (fabs((a)-(b))<EPS)
#define X real()
#define Y imag()
using namespace std;
typedef complex<double> Point;
typedef complex<double> Vector;
struct Segment {
Po... | 21.742188 | 64 | 0.610133 | odanado |
a4d6621ecad3bd7488a8c90008a95c519c982242 | 2,183 | cpp | C++ | 2016/main_pancakes.cpp | RomainBrault/GoogleCodeJam | d11bafaf77943c275fac4f08ab95b1f97788dea0 | [
"MIT"
] | null | null | null | 2016/main_pancakes.cpp | RomainBrault/GoogleCodeJam | d11bafaf77943c275fac4f08ab95b1f97788dea0 | [
"MIT"
] | null | null | null | 2016/main_pancakes.cpp | RomainBrault/GoogleCodeJam | d11bafaf77943c275fac4f08ab95b1f97788dea0 | [
"MIT"
] | null | null | null | #include <fstream>
#include <iostream>
#include <string>
#include <vector>
#include <algorithm>
#include <functional>
#define CHECK_STREAM(S, E) do { \
if (!(S)) goto E; \
} while (0)
#define CHECK_END_STREAM(S, E) do { \
(S).ignore(2); \
if (!(S).eof()) goto E; \
} while (0)
inline auto flip(auto && beg... | 26.950617 | 80 | 0.479157 | RomainBrault |
a4d9a62f30604c37da3eedac837a6eed2eabf64c | 3,126 | cpp | C++ | Source/URoboSim/Private/ROSCommunication/RROSClient.cpp | K4R-IAI/URoboSim | 0b8769761ce77fe493f37e1ec488ed50d66402ec | [
"BSD-3-Clause"
] | 1 | 2021-04-11T13:03:58.000Z | 2021-04-11T13:03:58.000Z | Source/URoboSim/Private/ROSCommunication/RROSClient.cpp | artnie/URoboSim | 0b8769761ce77fe493f37e1ec488ed50d66402ec | [
"BSD-3-Clause"
] | null | null | null | Source/URoboSim/Private/ROSCommunication/RROSClient.cpp | artnie/URoboSim | 0b8769761ce77fe493f37e1ec488ed50d66402ec | [
"BSD-3-Clause"
] | null | null | null | #include "ROSCommunication/RROSClient.h"
#include "TimerManager.h"
void URROSClient::Init(UObject* InOwner, TSharedPtr<FROSBridgeHandler> InHandler)
{
ROSHandler = InHandler;
Init(InOwner);
}
void URROSClient::Init(UObject* InOwner, TArray<FString>* OutArray, TSharedPtr<FROSBridgeHandler> InHandler)
{
ROSHandler =... | 42.821918 | 227 | 0.805182 | K4R-IAI |
a4e36ded1889c1218d51deccfe08aab87005f88d | 189 | hpp | C++ | vendor/bindgen/tests/headers/class_use_as.hpp | mrkatebzadeh/rust-ibverbs | c0ea14f0e35be179a0370a7312b5fa07032adb27 | [
"Apache-2.0",
"MIT"
] | null | null | null | vendor/bindgen/tests/headers/class_use_as.hpp | mrkatebzadeh/rust-ibverbs | c0ea14f0e35be179a0370a7312b5fa07032adb27 | [
"Apache-2.0",
"MIT"
] | null | null | null | vendor/bindgen/tests/headers/class_use_as.hpp | mrkatebzadeh/rust-ibverbs | c0ea14f0e35be179a0370a7312b5fa07032adb27 | [
"Apache-2.0",
"MIT"
] | 1 | 2021-02-02T10:49:21.000Z | 2021-02-02T10:49:21.000Z |
/**
* <div rustbindgen="true" replaces="whatever"></div>
*/
struct whatever_replacement {
int replacement;
};
struct whatever {
int b;
};
struct container {
whatever c;
};
| 11.8125 | 53 | 0.62963 | mrkatebzadeh |
a4e6db96a8e708d2569e88055483edc164ef76ca | 2,059 | cpp | C++ | src/plugins/azoth/plugins/vader/proto/balancer.cpp | Maledictus/leechcraft | 79ec64824de11780b8e8bdfd5d8a2f3514158b12 | [
"BSL-1.0"
] | 120 | 2015-01-22T14:10:39.000Z | 2021-11-25T12:57:16.000Z | src/plugins/azoth/plugins/vader/proto/balancer.cpp | Maledictus/leechcraft | 79ec64824de11780b8e8bdfd5d8a2f3514158b12 | [
"BSL-1.0"
] | 8 | 2015-02-07T19:38:19.000Z | 2017-11-30T20:18:28.000Z | src/plugins/azoth/plugins/vader/proto/balancer.cpp | Maledictus/leechcraft | 79ec64824de11780b8e8bdfd5d8a2f3514158b12 | [
"BSL-1.0"
] | 33 | 2015-02-07T16:59:55.000Z | 2021-10-12T00:36:40.000Z | /**********************************************************************
* LeechCraft - modular cross-platform feature rich internet client.
* Copyright (C) 2006-2014 Georg Rudoy
*
* Distributed under the Boost Software License, Version 1.0.
* (See accompanying file LICENSE or copy at https://www.boost.org/LICENSE... | 20.79798 | 83 | 0.58135 | Maledictus |
a4e8b7dc052667dccaa504aed9b3441a363974c3 | 1,662 | cc | C++ | flens/examples/lapack-getrf.cc | stip/FLENS | 80495fa97dda42a0acafc8f83fc9639ae36d2e10 | [
"BSD-3-Clause"
] | 98 | 2015-01-26T20:31:37.000Z | 2021-09-09T15:51:37.000Z | flens/examples/lapack-getrf.cc | stip/FLENS | 80495fa97dda42a0acafc8f83fc9639ae36d2e10 | [
"BSD-3-Clause"
] | 16 | 2015-01-21T07:43:45.000Z | 2021-12-06T12:08:36.000Z | flens/examples/lapack-getrf.cc | stip/FLENS | 80495fa97dda42a0acafc8f83fc9639ae36d2e10 | [
"BSD-3-Clause"
] | 31 | 2015-01-05T08:06:45.000Z | 2022-01-26T20:12:00.000Z | #include <cxxstd/iostream.h>
///
/// With header __flens.cxx__ all of FLENS gets included.
///
/// :links: __flens.cxx__ -> file:flens/flens.cxx
#include <flens/flens.cxx>
using namespace std;
using namespace flens;
typedef double T;
int
main()
{
///
/// Define some convenient typedef for the matrix ty... | 23.408451 | 77 | 0.522262 | stip |
a4eaa9a6ff7ac962595c673154e98ef94fffc738 | 10,193 | cpp | C++ | parser/parserStrings.cpp | pat-laugh/websson-libraries | c5c99a98270dee45fcd9ec4e7f03e2e74e3b1ce2 | [
"MIT"
] | null | null | null | parser/parserStrings.cpp | pat-laugh/websson-libraries | c5c99a98270dee45fcd9ec4e7f03e2e74e3b1ce2 | [
"MIT"
] | 33 | 2017-04-25T21:53:59.000Z | 2017-07-14T13:30:29.000Z | parser/parserStrings.cpp | pat-laugh/websson-libraries | c5c99a98270dee45fcd9ec4e7f03e2e74e3b1ce2 | [
"MIT"
] | null | null | null | //MIT License
//Copyright 2017-2018 Patrick Laughrea
#include "parserStrings.hpp"
#include "containerSwitcher.hpp"
#include "errors.hpp"
#include "unicode.hpp"
#include "utils/constants.hpp"
#include "utils/utilsWebss.hpp"
#include "various/utils.hpp"
using namespace std;
using namespace various;
using namespace webs... | 25.546366 | 121 | 0.700186 | pat-laugh |
a4efc43444a28275ec4bda268ec5458df99759a2 | 2,777 | cpp | C++ | src/win32/Splitter.cpp | NullPopPoLab/Play--Framework | ab4594f9ef548f1476c9017e122a05dfb91cc9d3 | [
"BSD-2-Clause"
] | 35 | 2015-02-19T20:11:05.000Z | 2021-11-05T12:55:07.000Z | src/win32/Splitter.cpp | NullPopPoLab/Play--Framework | ab4594f9ef548f1476c9017e122a05dfb91cc9d3 | [
"BSD-2-Clause"
] | 24 | 2015-07-19T04:51:29.000Z | 2022-03-31T00:36:45.000Z | src/win32/Splitter.cpp | Thunder07/Play--Framework | b0c8487656492f237f6613fccadbb8011b61bd4d | [
"BSD-2-Clause"
] | 22 | 2015-02-16T03:36:00.000Z | 2022-01-23T13:15:00.000Z | #include "win32/Splitter.h"
#include <cassert>
#define CLSNAME _T("CSplitter")
using namespace Framework;
using namespace Framework::Win32;
CSplitter::CSplitter(HWND parentWnd, const RECT& rect, HCURSOR cursor, unsigned int edgePosition)
: m_cursor(cursor)
, m_edgePosition(edgePosition)
{
m_child[0] = ... | 21.695313 | 129 | 0.686712 | NullPopPoLab |
a4f2e3ed5215ed1211b6d81f823a6bcf844e5a6a | 2,502 | cpp | C++ | examples/two_to_one_multi_put.cpp | abwilson/LowLatency | cefc780eccb0426f8fe99f5f59dce347c98f13aa | [
"MIT"
] | 31 | 2015-06-26T16:38:18.000Z | 2022-03-01T03:28:08.000Z | examples/two_to_one_multi_put.cpp | abwilson/LowLatency | cefc780eccb0426f8fe99f5f59dce347c98f13aa | [
"MIT"
] | 1 | 2015-07-25T22:36:40.000Z | 2015-07-25T22:36:40.000Z | examples/two_to_one_multi_put.cpp | abwilson/LowLatency | cefc780eccb0426f8fe99f5f59dce347c98f13aa | [
"MIT"
] | 9 | 2015-06-26T18:44:31.000Z | 2019-09-04T15:13:31.000Z | /*
The MIT License (MIT)
Copyright (c) 2015 Norman Wilson - Volcano Consultancy Ltd
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... | 28.758621 | 78 | 0.659073 | abwilson |
a4f4431c70b2a43799ea38c3ffc08ec6f2fcccf4 | 6,475 | cpp | C++ | src/SnakeBlocks.cpp | fmaterak/Linux_terminal | 35ccdd6e472880fa8765dba7f3d56809732ba98f | [
"MIT"
] | null | null | null | src/SnakeBlocks.cpp | fmaterak/Linux_terminal | 35ccdd6e472880fa8765dba7f3d56809732ba98f | [
"MIT"
] | null | null | null | src/SnakeBlocks.cpp | fmaterak/Linux_terminal | 35ccdd6e472880fa8765dba7f3d56809732ba98f | [
"MIT"
] | null | null | null | #include "SnakeBlocks.hpp"
template<typename T>
terminal::SnakeBlocks<T>::Iterator::Iterator(SnakeBlocks<T>& container, std::size_t block_idx):
container(&container), block_idx(block_idx)
{
try {
resolve();
}
catch (std::out_of_range) {
block = nullptr;
}
}
template<typename T>
typ... | 28.777778 | 120 | 0.563398 | fmaterak |
a4fb2e597ae1e7671eff7bd4923e53351ec0f321 | 4,161 | cpp | C++ | C_CPP/huf/Huf.cpp | dengchongsen/study_codes | 29d74c05d340117f76aafcc320766248a0f8386b | [
"MulanPSL-1.0"
] | null | null | null | C_CPP/huf/Huf.cpp | dengchongsen/study_codes | 29d74c05d340117f76aafcc320766248a0f8386b | [
"MulanPSL-1.0"
] | null | null | null | C_CPP/huf/Huf.cpp | dengchongsen/study_codes | 29d74c05d340117f76aafcc320766248a0f8386b | [
"MulanPSL-1.0"
] | null | null | null | #include<iostream>
#include<string>
#include<cstring>
using namespace std;
const int MaxW = 9999999; // 假设结点权值不超过9999999
// 定义huffman树结点类
class HuffNode
{
public:
int weight; // 权值
int parent; // 父结点下标
int leftchild; // 左孩子下标
int rightchild; // 右孩子下标
};
// 定义赫夫曼树类
class HuffMan
{
private:
... | 24.333333 | 92 | 0.485701 | dengchongsen |
a4ff03c671f411a6f871481ddc60d65aef354318 | 6,233 | cpp | C++ | raw-examples/win32/iocp/server.cpp | paoqi1997/pqnet | 3413916bdc355b0a4eea8ef934a3ff658b047b19 | [
"BSD-3-Clause"
] | null | null | null | raw-examples/win32/iocp/server.cpp | paoqi1997/pqnet | 3413916bdc355b0a4eea8ef934a3ff658b047b19 | [
"BSD-3-Clause"
] | null | null | null | raw-examples/win32/iocp/server.cpp | paoqi1997/pqnet | 3413916bdc355b0a4eea8ef934a3ff658b047b19 | [
"BSD-3-Clause"
] | null | null | null | #include <cstdio>
#include <cstring>
#include <iostream>
#include <thread>
#include <vector>
#include <winsock2.h>
unsigned int PORT = 12488;
enum io_operation {
IO_READ,
IO_WRITE
};
struct io_context
{
OVERLAPPED overlapped;
SOCKET sockfd;
WSABUF wsabuf;
char buf[1024];
io_operation opT... | 30.257282 | 101 | 0.562811 | paoqi1997 |
350774fcc5897c066f5d9f9caf9a6a5d2bf356b9 | 267 | hpp | C++ | src/query/iexpression.hpp | kele/graphbase | 7f2eaced4b3ed8324f35edcc84c2eb774bb87ed3 | [
"MIT"
] | null | null | null | src/query/iexpression.hpp | kele/graphbase | 7f2eaced4b3ed8324f35edcc84c2eb774bb87ed3 | [
"MIT"
] | 3 | 2018-07-02T07:39:57.000Z | 2019-10-11T20:20:09.000Z | src/query/iexpression.hpp | kele/graphbase | 7f2eaced4b3ed8324f35edcc84c2eb774bb87ed3 | [
"MIT"
] | null | null | null | #pragma once
#include <memory>
#include "query/value/value.hpp"
namespace query {
class Environment;
class IExpression {
public:
virtual value::Value eval(std::shared_ptr<const Environment> env) const = 0;
virtual ~IExpression() {}
};
} // namespace query
| 14.052632 | 78 | 0.715356 | kele |
350ab8b5e014c5d547ac5476b978725611e30897 | 224 | cpp | C++ | test/Euler.test.cpp | yuruhi/library | fecbd92ec6c6997d50bf954c472ac4bfeff74de5 | [
"Apache-2.0"
] | null | null | null | test/Euler.test.cpp | yuruhi/library | fecbd92ec6c6997d50bf954c472ac4bfeff74de5 | [
"Apache-2.0"
] | 6 | 2021-01-05T07:39:05.000Z | 2021-01-05T07:44:31.000Z | test/Euler.test.cpp | yuruhi/library | fecbd92ec6c6997d50bf954c472ac4bfeff74de5 | [
"Apache-2.0"
] | null | null | null | #define PROBLEM "https://onlinejudge.u-aizu.ac.jp/courses/library/6/NTL/all/NTL_1_D"
#include "./../math/Euler.cpp"
#include <iostream>
using namespace std;
int main() {
long long x;
cin >> x;
cout << Euler(x) << '\n';
} | 22.4 | 84 | 0.660714 | yuruhi |
350fc45e7301eee359f4c11ffddf9ecf82b98dc2 | 163 | cpp | C++ | source/horizon/list/ListSeparator.cpp | NightYoshi370/Aether | 87d2b81f5d3143e39c363a9c81c195d440d7a4e8 | [
"MIT"
] | 9 | 2020-05-06T20:23:22.000Z | 2022-01-19T10:37:46.000Z | libs/Aether/source/horizon/list/ListSeparator.cpp | tkgstrator/SeedHack | 227566d993bdea7a2851a8fc664b539186509697 | [
"MIT"
] | 11 | 2020-03-22T03:40:50.000Z | 2020-06-09T00:53:13.000Z | libs/Aether/source/horizon/list/ListSeparator.cpp | tkgstrator/SeedHack | 227566d993bdea7a2851a8fc664b539186509697 | [
"MIT"
] | 6 | 2020-05-03T06:59:36.000Z | 2020-07-15T04:21:59.000Z | #include "Aether/horizon/list/ListSeparator.hpp"
namespace Aether {
ListSeparator::ListSeparator(unsigned int h) : Element() {
this->setH(h);
}
}; | 23.285714 | 62 | 0.668712 | NightYoshi370 |
35132acfc0d51ccf43049f550dd95b92d859183f | 3,705 | cpp | C++ | lib/src/spec/priv/specwriterimpl.cpp | SMillerDev/apngasm | 259640f81f0798fd1ca3cc513d77cf86d64376c4 | [
"Zlib"
] | 195 | 2015-01-05T19:27:31.000Z | 2022-03-16T00:52:21.000Z | lib/src/spec/priv/specwriterimpl.cpp | SMillerDev/apngasm | 259640f81f0798fd1ca3cc513d77cf86d64376c4 | [
"Zlib"
] | 47 | 2015-04-09T15:29:01.000Z | 2022-03-27T00:11:34.000Z | lib/src/spec/priv/specwriterimpl.cpp | SMillerDev/apngasm | 259640f81f0798fd1ca3cc513d77cf86d64376c4 | [
"Zlib"
] | 27 | 2015-02-05T02:09:08.000Z | 2021-11-23T21:25:32.000Z | #include "specwriterimpl.h"
#include "../../apngasm.h"
#include "../../listener/apngasmlistener.h"
#include <sstream>
#include <boost/property_tree/json_parser.hpp>
#include <boost/property_tree/xml_parser.hpp>
namespace apngasm {
namespace spec {
namespace priv {
// Initialize AbstractSpecWriterImpl ob... | 35.625 | 124 | 0.584076 | SMillerDev |
352054bd496e0631b2ed0aa8eeb80d0ec5767e47 | 2,067 | cpp | C++ | main/tube-manager.cpp | NeilBetham/neon-dreams | 710e8cb105915bb1dec176a0bedc88fb51dce7a6 | [
"MIT"
] | null | null | null | main/tube-manager.cpp | NeilBetham/neon-dreams | 710e8cb105915bb1dec176a0bedc88fb51dce7a6 | [
"MIT"
] | null | null | null | main/tube-manager.cpp | NeilBetham/neon-dreams | 710e8cb105915bb1dec176a0bedc88fb51dce7a6 | [
"MIT"
] | null | null | null | #include "tube-manager.hpp"
#include <esp_log.h>
#include <sys/time.h>
#include <time.h>
TubeManager::TubeManager(TubeDriver& _td) : td(_td), poison_prev_int(300), poison_prev_dur(10) {};
void TubeManager::set_digits(uint8_t _one, uint8_t _two, uint8_t _three, uint8_t _four, uint8_t _five, uint8_t _six) {
one = _... | 22.225806 | 118 | 0.557813 | NeilBetham |
3522c8f5360c851e99c3d9fb99c7d3ac90699c0f | 1,541 | cpp | C++ | cpp/include/graph/articulation_points.cpp | kyuridenamida/competitive-library | a2bea434c4591359c208b865d2d4dc25574df24d | [
"MIT"
] | 3 | 2017-04-09T10:12:31.000Z | 2019-02-11T03:11:27.000Z | cpp/include/graph/articulation_points.cpp | kyuridenamida/competitive-library | a2bea434c4591359c208b865d2d4dc25574df24d | [
"MIT"
] | null | null | null | cpp/include/graph/articulation_points.cpp | kyuridenamida/competitive-library | a2bea434c4591359c208b865d2d4dc25574df24d | [
"MIT"
] | 1 | 2019-11-29T06:11:10.000Z | 2019-11-29T06:11:10.000Z | #pragma once
#include "../util.hpp"
template <typename Edge>
pair<set<int>, vector<vector<Edge>>> articulation_points(const vector<vector<Edge>> &g) {
const int n = g.size();
set<int> art;
vector<vector<Edge>> connect;
vector<Edge> st;
vector<int> order(n, -1), low(n, -1);
for (int i = 0; i < n; i++) {
... | 27.517857 | 89 | 0.499676 | kyuridenamida |
352547ead12141ae5203b8514806f65265ead9b9 | 4,294 | cpp | C++ | io_handler.cpp | bilyanhadzhi/travellers_app | 5cb5b0bcd9b03771e55db5d28c052e10dbc460f7 | [
"MIT"
] | null | null | null | io_handler.cpp | bilyanhadzhi/travellers_app | 5cb5b0bcd9b03771e55db5d28c052e10dbc460f7 | [
"MIT"
] | null | null | null | io_handler.cpp | bilyanhadzhi/travellers_app | 5cb5b0bcd9b03771e55db5d28c052e10dbc460f7 | [
"MIT"
] | 2 | 2021-04-27T15:11:01.000Z | 2021-06-07T11:31:56.000Z | #include <iostream>
#include <cstring>
#include "io_handler.hpp"
#include "lib/string.hpp"
#include "constants.hpp"
void IOHandler::set_command(String command)
{
this->command = command;
}
void IOHandler::input_command()
{
std::cin >> this->command;
}
void IOHandler::input_args(std::istream& i_stream)
{
... | 22.719577 | 115 | 0.620633 | bilyanhadzhi |
35329718a73df43768870b66ca112156b4d0d3d3 | 569 | cpp | C++ | src/primality/BailliePSW.cpp | Ghabriel/CryptographyUtils | 37a6e6418025059d908d75b5329fc21339e20b2b | [
"Apache-2.0"
] | null | null | null | src/primality/BailliePSW.cpp | Ghabriel/CryptographyUtils | 37a6e6418025059d908d75b5329fc21339e20b2b | [
"Apache-2.0"
] | null | null | null | src/primality/BailliePSW.cpp | Ghabriel/CryptographyUtils | 37a6e6418025059d908d75b5329fc21339e20b2b | [
"Apache-2.0"
] | null | null | null | #include "primality/BailliePSW.hpp"
#include "primality/MillerRabin.hpp"
#include "primality/LucasTest.hpp"
#include "utils.hpp"
bool crypto::BailliePSW::test(NumberView n) const {
if (n < 3 || n % 2 == 0) {
return (n == 2);
}
if (!MillerRabin().test(n, {2})) {
return false;
}
if ... | 20.321429 | 51 | 0.513181 | Ghabriel |
353528f2d91877067e99a980fdb5f84c4c7e7cf6 | 15,111 | cpp | C++ | src/priority/test.cpp | tehwalris/mpi-myers-diff | 9d6dafc9dc16dcf97b4c712dbb8c6dace25eeee5 | [
"MIT"
] | 2 | 2021-11-09T11:30:02.000Z | 2022-01-13T17:47:49.000Z | src/priority/test.cpp | tehwalris/mpi-myers-diff | 9d6dafc9dc16dcf97b4c712dbb8c6dace25eeee5 | [
"MIT"
] | null | null | null | src/priority/test.cpp | tehwalris/mpi-myers-diff | 9d6dafc9dc16dcf97b4c712dbb8c6dace25eeee5 | [
"MIT"
] | null | null | null | #define CATCH_CONFIG_MAIN
#include <iostream>
#include <vector>
#include <optional>
#include <cassert>
#include <algorithm>
#include "../../lib/catch/catch_amalgamated.hpp"
#include "strategy.hpp"
#include "geometry.hpp"
#include "side.hpp"
#include "partition.hpp"
#include "storage.hpp"
template <class S>
class Test... | 36.766423 | 179 | 0.688836 | tehwalris |
3535c4868f10aae85a3adf251a8027926752d063 | 2,283 | hpp | C++ | src/third-party/arduino-json-5.6.7/include/ArduinoJson/Polyfills/math.hpp | syahrialr/firebase-arduino | 7144703dc6269bee4e60b60fa612f41aeeb5a75f | [
"Apache-2.0"
] | 10 | 2017-08-18T20:02:40.000Z | 2021-07-17T09:04:47.000Z | src/third-party/arduino-json-5.6.7/include/ArduinoJson/Polyfills/math.hpp | syahrialr/firebase-arduino | 7144703dc6269bee4e60b60fa612f41aeeb5a75f | [
"Apache-2.0"
] | null | null | null | src/third-party/arduino-json-5.6.7/include/ArduinoJson/Polyfills/math.hpp | syahrialr/firebase-arduino | 7144703dc6269bee4e60b60fa612f41aeeb5a75f | [
"Apache-2.0"
] | 7 | 2018-02-07T08:51:34.000Z | 2020-11-30T08:52:05.000Z | // Copyright Benoit Blanchon 2014-2016
// MIT License
//
// Arduino JSON library
// https://github.com/bblanchon/ArduinoJson
// If you like this project, please add a star!
#pragma once
// If Visual Studo <= 2012
#if defined(_MSC_VER) && _MSC_VER <= 1700
#include <float.h>
namespace ArduinoJson {
nam... | 20.383929 | 74 | 0.685064 | syahrialr |
353fab28e754916226f82460c579ccf94178488a | 3,951 | cpp | C++ | tests/v1/NullsTest.cpp | studiofuga/mSqliteCpp | d557d089bef57fd2ec5ece54d79ca8c34fbc6aca | [
"BSD-3-Clause"
] | 3 | 2018-06-25T20:02:26.000Z | 2021-07-08T09:38:33.000Z | tests/v1/NullsTest.cpp | studiofuga/mSqliteCpp | d557d089bef57fd2ec5ece54d79ca8c34fbc6aca | [
"BSD-3-Clause"
] | 13 | 2018-05-05T09:38:39.000Z | 2021-03-17T11:48:07.000Z | tests/v1/NullsTest.cpp | studiofuga/mSqliteCpp | d557d089bef57fd2ec5ece54d79ca8c34fbc6aca | [
"BSD-3-Clause"
] | null | null | null | /** @file
* @author Federico Fuga <fuga@studiofuga.com>
* @date 15/06/18
*/
#include "msqlitecpp/v1/insertstatement.h"
#include "msqlitecpp/v1/createstatement.h"
#include "msqlitecpp/v1/selectstatement.h"
#include <gtest/gtest.h>
using namespace sqlite;
class V1NullTest : public testing::Test {
protected:
s... | 28.630435 | 111 | 0.65629 | studiofuga |
353ff98c4cbd09efe4fc222d45086320e92cd95c | 47,426 | cpp | C++ | misc/Analyze.cpp | jwarsom/focus_assembler | 190c3ce17c0f805babec5a9cbe053cea6316a112 | [
"MIT"
] | null | null | null | misc/Analyze.cpp | jwarsom/focus_assembler | 190c3ce17c0f805babec5a9cbe053cea6316a112 | [
"MIT"
] | null | null | null | misc/Analyze.cpp | jwarsom/focus_assembler | 190c3ce17c0f805babec5a9cbe053cea6316a112 | [
"MIT"
] | null | null | null | /*
* Analyze.cpp
*
* Created on: Aug. 6th, 2012
* Author: Julia Warnke
*/
#include<iostream>
#include<vector>
#include<string>
#include <dirent.h>
using namespace std;
#include "MappingValues.h"
#include "Dictionary.h"
#include "Fragment_Index.h"
#include "Graph.h"
/* This program analyzes a series of ove... | 25.375067 | 118 | 0.661452 | jwarsom |
35426e2809a774ca228d726415924b82fa4e9e78 | 4,077 | cpp | C++ | SSV/Source/SSV/Client/MainControl/MainControlView.cpp | Shards-CP/SSV | 5dda6d6e000114143f8d06606800e1aef3688079 | [
"libpng-2.0"
] | null | null | null | SSV/Source/SSV/Client/MainControl/MainControlView.cpp | Shards-CP/SSV | 5dda6d6e000114143f8d06606800e1aef3688079 | [
"libpng-2.0"
] | null | null | null | SSV/Source/SSV/Client/MainControl/MainControlView.cpp | Shards-CP/SSV | 5dda6d6e000114143f8d06606800e1aef3688079 | [
"libpng-2.0"
] | null | null | null | #include "SSVPCH.h"
#include "MainControlView.h"
#include "Client/Core/Application.h"
#include "Client/UI/Button.h"
#include "Client/UI/Image.h"
#include "Client/UI/TextLabel.h"
#include "Client/UI/Textbox.h"
#include "Client/Visualizer/SyntaxTreeView.h"
namespace SSV::Client::MainControl
{
MainControlView::Mai... | 37.063636 | 224 | 0.737062 | Shards-CP |
354ca3e81cfb9ddea25df25b213661ae10882f7e | 16,779 | cpp | C++ | source/toolkit/number/weakfloat.cpp | will-iam/Variant | 5b6732134fd51cf6c2b90b51b7976be0693ba28d | [
"MIT"
] | 8 | 2017-05-04T07:50:02.000Z | 2019-05-17T02:27:20.000Z | source/toolkit/number/weakfloat.cpp | will-iam/Variant | 5b6732134fd51cf6c2b90b51b7976be0693ba28d | [
"MIT"
] | null | null | null | source/toolkit/number/weakfloat.cpp | will-iam/Variant | 5b6732134fd51cf6c2b90b51b7976be0693ba28d | [
"MIT"
] | null | null | null | #include "weakfloat.hpp"
#include <limits>
#include <iomanip>
#ifndef ROUNDING
#define ROUNDING FE_TONEAREST;
#endif
typedef weakfloat<PRECISION_WEAK_FLOAT, ROUNDING> wfloat;
bool unit_test() {
float fa(31.999999);
float fb(32.000003);
float fc = 32.0 + 32.0 * pow(2, (8 - PRECISION_WEAK_FLOAT));
floa... | 45.844262 | 269 | 0.472793 | will-iam |
354fb539247f27ae5a13485e90ebe8e37767d52a | 4,546 | cpp | C++ | samples/snippets/cpp/VS_Snippets_Remoting/NCLPhysicalAddress/CPP/NCLPhysicalAddress.cpp | hamarb123/dotnet-api-docs | 6aeb55784944a2f1f5e773b657791cbd73a92dd4 | [
"CC-BY-4.0",
"MIT"
] | 421 | 2018-04-01T01:57:50.000Z | 2022-03-28T15:24:42.000Z | samples/snippets/cpp/VS_Snippets_Remoting/NCLPhysicalAddress/CPP/NCLPhysicalAddress.cpp | hamarb123/dotnet-api-docs | 6aeb55784944a2f1f5e773b657791cbd73a92dd4 | [
"CC-BY-4.0",
"MIT"
] | 5,797 | 2018-04-02T21:12:23.000Z | 2022-03-31T23:54:38.000Z | samples/snippets/cpp/VS_Snippets_Remoting/NCLPhysicalAddress/CPP/NCLPhysicalAddress.cpp | hamarb123/dotnet-api-docs | 6aeb55784944a2f1f5e773b657791cbd73a92dd4 | [
"CC-BY-4.0",
"MIT"
] | 1,482 | 2018-03-31T11:26:20.000Z | 2022-03-30T22:36:45.000Z |
#using <system.dll>
using namespace System;
using namespace System::Net::NetworkInformation;
using namespace System::Collections;
// <snippet1>
void DisplayAddressNone()
{
PhysicalAddress^ none = PhysicalAddress::None;
Console::WriteLine( L"None: {0}", none );
array<Byte>^bytes = none->GetAddres... | 32.241135 | 130 | 0.623845 | hamarb123 |
35554a19275e6f8d133ce9b9c4aaa4cf0a793bbd | 499 | cpp | C++ | 0000/50/53c.cpp | actium/cf | d7be128c3a9adb014a231a399f1c5f19e1ab2a38 | [
"Unlicense"
] | 1 | 2020-07-03T15:55:52.000Z | 2020-07-03T15:55:52.000Z | 0000/50/53c.cpp | actium/cf | d7be128c3a9adb014a231a399f1c5f19e1ab2a38 | [
"Unlicense"
] | null | null | null | 0000/50/53c.cpp | actium/cf | d7be128c3a9adb014a231a399f1c5f19e1ab2a38 | [
"Unlicense"
] | 3 | 2020-10-01T14:55:28.000Z | 2021-07-11T11:33:58.000Z | #include <iostream>
#include <vector>
void answer(const std::vector<unsigned>& v)
{
const char* separator = "";
for (const unsigned x : v) {
std::cout << separator << x;
separator = " ";
}
std::cout << '\n';
}
void solve(unsigned n)
{
std::vector<unsigned> p(n);
for (size_t i =... | 14.257143 | 43 | 0.476954 | actium |
35569efaa927537d24041fad3667e30b904bc76b | 749 | hpp | C++ | src/Hukan/graphics/Window/Win32/WindowWin32.hpp | eUltrabyte/Hukan | c3d4e2f53964b54ac7e6f319586095bdb8ae107d | [
"MIT"
] | 6 | 2021-11-05T14:47:12.000Z | 2022-02-06T21:27:56.000Z | src/Hukan/graphics/Window/Win32/WindowWin32.hpp | eUltrabyte/Hukan | c3d4e2f53964b54ac7e6f319586095bdb8ae107d | [
"MIT"
] | null | null | null | src/Hukan/graphics/Window/Win32/WindowWin32.hpp | eUltrabyte/Hukan | c3d4e2f53964b54ac7e6f319586095bdb8ae107d | [
"MIT"
] | 2 | 2021-11-05T12:08:58.000Z | 2021-12-09T20:54:29.000Z | #pragma once
#include "../Window.hpp"
#if defined(HUKAN_SYSTEM_WIN32)
#include <Windows.h>
namespace hk {
class HK_API WindowImplWin32 : public Window {
public:
WindowImplWin32(WindowCreateInfo* pWindowCreateInfo = nullptr);
virtual ~WindowImplWin32();
virtual void Create();
... | 22.69697 | 88 | 0.660881 | eUltrabyte |
35584232a74fe32e751c0b31c026cbe9e7b28c87 | 858 | cpp | C++ | CLL113/Assignments/tut1-1/main.cpp | sak1sham/CLL113-Numerical-Methods-Tutsheets | c6589c39bdf31f9d6e86aec97d2ea155a78d89d4 | [
"MIT"
] | 2 | 2020-05-26T02:00:10.000Z | 2020-12-09T17:06:37.000Z | CLL113/Assignments/tut1-1/main.cpp | sak1sham/CLL113-Numerical-Methods-Tutsheets | c6589c39bdf31f9d6e86aec97d2ea155a78d89d4 | [
"MIT"
] | null | null | null | CLL113/Assignments/tut1-1/main.cpp | sak1sham/CLL113-Numerical-Methods-Tutsheets | c6589c39bdf31f9d6e86aec97d2ea155a78d89d4 | [
"MIT"
] | null | null | null | //Saksham Garg 2018CH10927
//Question 1
//Truncation Error
//Maclaurin series
#include <iostream>
#include<math.h>
#include<iomanip>
using namespace std;
long int fac(int n){
long int f = 1;
for(int i = 1; i<=n; i++){
f = f*i;
}
return f;
}
int main()
{ int n = 8;
doub... | 23.189189 | 75 | 0.518648 | sak1sham |
35589f108c3aa4fc3ca6bd4c1f4302315bd01a35 | 3,090 | cpp | C++ | Core/Renderer/OpenGL/src/OGLVAO.cpp | SDurand7/AVLIT-Engine | c7a8e361d91e57fb96acfc1c96a88c3b480bb256 | [
"MIT"
] | null | null | null | Core/Renderer/OpenGL/src/OGLVAO.cpp | SDurand7/AVLIT-Engine | c7a8e361d91e57fb96acfc1c96a88c3b480bb256 | [
"MIT"
] | null | null | null | Core/Renderer/OpenGL/src/OGLVAO.cpp | SDurand7/AVLIT-Engine | c7a8e361d91e57fb96acfc1c96a88c3b480bb256 | [
"MIT"
] | null | null | null | #include "OGLVAO.hpp"
#include <Core/Base/include/Mesh.hpp>
namespace AVLIT {
OGLVAO::OGLVAO(const Mesh &mesh) : m_buffers(2) {
glGenVertexArrays(1, &m_vaoID);
glGenBuffers(2, m_buffers.data());
glBindVertexArray(m_vaoID);
const auto &indices = mesh.indices();
glBindBuffer(GL_ELEMENT_ARRAY_BUFF... | 35.930233 | 114 | 0.668285 | SDurand7 |
355a57dd489e18a5d32107a64bbe1104047f23f2 | 10,460 | cpp | C++ | Snake AI Project/src/manager/UI_Manager.cpp | BenjaminViranin/Snake-AI-Project | 50f9a8195eed9a298480d24598e221657b06abfa | [
"MIT"
] | null | null | null | Snake AI Project/src/manager/UI_Manager.cpp | BenjaminViranin/Snake-AI-Project | 50f9a8195eed9a298480d24598e221657b06abfa | [
"MIT"
] | null | null | null | Snake AI Project/src/manager/UI_Manager.cpp | BenjaminViranin/Snake-AI-Project | 50f9a8195eed9a298480d24598e221657b06abfa | [
"MIT"
] | null | null | null |
#include "manager/UI_Manager.h"
#include <tools/Time.h>
#include <manager/Game_Manager.h>
UI_Manager::UI_Manager(Snake& p_snake, Map_Manager& p_map_manager, Save_Manager& p_save_manager) :
m_windowWidth(0),
m_windowHeight(0),
m_snake(p_snake),
m_map_manager(p_map_manager),
m_save_manager(p_save_manager)
{
}
UI_Mana... | 32.996845 | 130 | 0.729924 | BenjaminViranin |
355ffdf1cf9592967332dd5dcdc7b3e6a95c5c74 | 822 | cpp | C++ | Dynamic Programming/0-1 Knapsack/(3)EqualSumPartition.cpp | jaydulera/data-structure-and-algorithms | abc2d67871add6f314888a72215ff3a2da2dc6e1 | [
"Apache-2.0"
] | 53 | 2020-09-26T19:44:33.000Z | 2021-09-30T20:38:52.000Z | Dynamic Programming/0-1 Knapsack/(3)EqualSumPartition.cpp | jaydulera/data-structure-and-algorithms | abc2d67871add6f314888a72215ff3a2da2dc6e1 | [
"Apache-2.0"
] | 197 | 2020-08-25T18:13:56.000Z | 2021-06-19T07:26:19.000Z | Dynamic Programming/0-1 Knapsack/(3)EqualSumPartition.cpp | jaydulera/data-structure-and-algorithms | abc2d67871add6f314888a72215ff3a2da2dc6e1 | [
"Apache-2.0"
] | 204 | 2020-08-24T09:21:02.000Z | 2022-02-13T06:13:42.000Z | #include<bits/stdc++.h>
using namespace std;
bool t[100][100];
bool SubsetSum(int *wt, int Sum, int n) {
for (int i = 0; i <= Sum; i++) t[0][i] = false;
for (int i = 0; i <= n; i++) t[i][0] = true; //empty set
for (int i = 1; i <= n; i++) {
for (int j = 1; j <= Sum; j++) {
if (wt[i - 1] <= j) {
t[i][j... | 16.77551 | 57 | 0.484185 | jaydulera |
8316e45167a6f61630e91a88a01c39049abfe830 | 14,288 | cc | C++ | kernel/runtime/cxx/runtime/cxxsupport.cc | ManyThreads/mythos | 723a4b11e454a0c28e096755140c5e0eecf6a211 | [
"MIT"
] | 12 | 2016-10-06T14:02:17.000Z | 2021-09-12T06:14:30.000Z | kernel/runtime/cxx/runtime/cxxsupport.cc | ManyThreads/mythos | 723a4b11e454a0c28e096755140c5e0eecf6a211 | [
"MIT"
] | 110 | 2017-06-22T20:10:17.000Z | 2022-01-18T12:58:40.000Z | kernel/runtime/cxx/runtime/cxxsupport.cc | ManyThreads/mythos | 723a4b11e454a0c28e096755140c5e0eecf6a211 | [
"MIT"
] | 6 | 2016-12-09T08:30:08.000Z | 2021-12-10T19:05:04.000Z | /* -*- mode:C++; -*- */
/* MIT License -- MyThOS: The Many-Threads Operating System
*
* 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 ... | 34.595642 | 133 | 0.650756 | ManyThreads |
8317d2c3a6ced5173b14c4ac268fc250a5faeb3f | 13,431 | cpp | C++ | libot/http/httprequest.cpp | goossens/ObjectTalk | ca1d4f558b5ad2459b376102744d52c6283ec108 | [
"MIT"
] | 6 | 2021-11-12T15:03:53.000Z | 2022-01-28T18:30:33.000Z | libot/http/httprequest.cpp | goossens/ObjectTalk | ca1d4f558b5ad2459b376102744d52c6283ec108 | [
"MIT"
] | null | null | null | libot/http/httprequest.cpp | goossens/ObjectTalk | ca1d4f558b5ad2459b376102744d52c6283ec108 | [
"MIT"
] | null | null | null | // ObjectTalk Scripting Language
// Copyright (c) 1993-2022 Johan A. Goossens. All rights reserved.
//
// This work is licensed under the terms of the MIT license.
// For a copy, see <https://opensource.org/licenses/MIT>.
//
// Include files
//
#include <filesystem>
#include "ot/exception.h"
#include "ot/httpreques... | 22.803056 | 107 | 0.680515 | goossens |
832535cba00d0f1176f861070e58b4b58c4bb575 | 1,970 | cpp | C++ | code/Die.cpp | joshuaherrera/CLI-team-fighting-game | a0393ab3e9bf6aec1a7f85863ba18f092a849d43 | [
"MIT"
] | null | null | null | code/Die.cpp | joshuaherrera/CLI-team-fighting-game | a0393ab3e9bf6aec1a7f85863ba18f092a849d43 | [
"MIT"
] | null | null | null | code/Die.cpp | joshuaherrera/CLI-team-fighting-game | a0393ab3e9bf6aec1a7f85863ba18f092a849d43 | [
"MIT"
] | null | null | null | /*********************************************************************
** Program name:Die.cpp
** Author:Joshua Herrera
** Date:04/23/2017
** Description: The Die.cpp file contains the functions used in the Die
** class that is used to make our die for the game.
********************************************************... | 30.78125 | 71 | 0.428426 | joshuaherrera |
8327b1c09c2b89b0f2755a9b33e932a05b077f5f | 5,305 | cpp | C++ | texturing-test/main.cpp | Phyllostachys/graphics-demos | bf1f1f10c95e0c9f752117ad23295ce06acdb17c | [
"MIT"
] | 1 | 2015-09-05T11:15:07.000Z | 2015-09-05T11:15:07.000Z | texturing-test/main.cpp | Phyllostachys/graphics-demos | bf1f1f10c95e0c9f752117ad23295ce06acdb17c | [
"MIT"
] | null | null | null | texturing-test/main.cpp | Phyllostachys/graphics-demos | bf1f1f10c95e0c9f752117ad23295ce06acdb17c | [
"MIT"
] | null | null | null | #include <cstdint>
#include <ctime>
#include <iostream>
#include <random>
#include <glad/glad.h>
#include <GLFW/glfw3.h>
#include "lodepng.h"
#include "shader.h"
void resize_callback(GLFWwindow *window, int width, int height);
void key_callback(GLFWwindow* window, int key, int scancode, int action, int mode);
int m... | 29.803371 | 137 | 0.626956 | Phyllostachys |
832edeb22f05b20aab77ebcc1c91f794b98963f3 | 4,828 | cpp | C++ | OmnibotGame/src/Player.cpp | neuroprod/omniBotProto | 5abf1b5a9846ba093325af7a86ee2d7b8cbe12e6 | [
"MIT"
] | 46 | 2017-03-03T20:34:23.000Z | 2021-11-07T02:37:44.000Z | OmnibotGame/src/Player.cpp | neuroprod/omniBotProto | 5abf1b5a9846ba093325af7a86ee2d7b8cbe12e6 | [
"MIT"
] | null | null | null | OmnibotGame/src/Player.cpp | neuroprod/omniBotProto | 5abf1b5a9846ba093325af7a86ee2d7b8cbe12e6 | [
"MIT"
] | 18 | 2017-04-27T09:40:47.000Z | 2021-12-06T05:38:48.000Z | #include "Player.h"
#include "cinder/gl/gl.h"
#include "GSettings.h"
#include "glm\gtc\random.hpp"
using namespace std;
using namespace ci::app;
using namespace ci;
Player::Player()
{
size = GSettings::playerRad;
}
PlayerRef Player::create()
{
return make_shared<Player>();
}
void Player::update()
{
if (glm::leng... | 26.674033 | 151 | 0.725559 | neuroprod |
833a554754b029de70629847deb2d20cb944de8e | 1,887 | cpp | C++ | src/GameUpgradeScreenState.cpp | Xpost2000/Killbot | 8cc287758e0c26d0350343f383f5adfe0acac0e9 | [
"MIT"
] | null | null | null | src/GameUpgradeScreenState.cpp | Xpost2000/Killbot | 8cc287758e0c26d0350343f383f5adfe0acac0e9 | [
"MIT"
] | null | null | null | src/GameUpgradeScreenState.cpp | Xpost2000/Killbot | 8cc287758e0c26d0350343f383f5adfe0acac0e9 | [
"MIT"
] | null | null | null | #include "GameUpgradeScreenState.h"
#include "StateMachine.h"
#include "GameState.h"
#include "constants.h"
#include "SoundManager.h"
#include "CefManager.h"
GameUpgradeScreenState::GameUpgradeScreenState(InputManager* input) : _input(input){
}
GameUpgradeScreenState::~GameUpgradeScreenState(){
}
void G... | 29.952381 | 202 | 0.703763 | Xpost2000 |
833b4425f4160bcdf1e3594c59cafbc1c0cda8e7 | 922 | cpp | C++ | stat_lib/bernulli_stat_model.cpp | ARGO-group/Argo_CUDA | 7a15252906860f4a725e37b6add211f625b91869 | [
"MIT"
] | null | null | null | stat_lib/bernulli_stat_model.cpp | ARGO-group/Argo_CUDA | 7a15252906860f4a725e37b6add211f625b91869 | [
"MIT"
] | null | null | null | stat_lib/bernulli_stat_model.cpp | ARGO-group/Argo_CUDA | 7a15252906860f4a725e37b6add211f625b91869 | [
"MIT"
] | 1 | 2021-07-10T09:59:52.000Z | 2021-07-10T09:59:52.000Z | #include "bernulli_stat_model.h"
#include "probability.h"
using namespace std;
BernulliStatModel::BernulliStatModel(const std::vector<std::string> &sequences,
bool complementary,
bool use_binom_instead_of_chi2,
... | 35.461538 | 90 | 0.711497 | ARGO-group |
833c9a22621b944420d35d1b05e337d7b50120d2 | 375 | cpp | C++ | qfb-messenger/src/q_network_reply_helper.cpp | NickCis/harbour-facebook-messenger | b2c2305fdcec27321893c3230bbd9e724773bd7d | [
"MIT"
] | 1 | 2015-05-05T22:45:11.000Z | 2015-05-05T22:45:11.000Z | qfb-messenger/src/q_network_reply_helper.cpp | NickCis/harbour-facebook-messenger | b2c2305fdcec27321893c3230bbd9e724773bd7d | [
"MIT"
] | null | null | null | qfb-messenger/src/q_network_reply_helper.cpp | NickCis/harbour-facebook-messenger | b2c2305fdcec27321893c3230bbd9e724773bd7d | [
"MIT"
] | null | null | null | #include "q_network_reply_helper.h"
QNetworkReplyHelper::QNetworkReplyHelper(QNetworkReply* r) :
QObject(NULL),
reply(r)
{
}
QNetworkReplyHelper::~QNetworkReplyHelper(){
this->reply->close();
this->reply->deleteLater();
}
QNetworkReply* QNetworkReplyHelper::operator->(){
return this->reply;
}
QNetworkReply* QN... | 17.857143 | 60 | 0.749333 | NickCis |
8340d59eb889ba9202c9c40d8e482cb6cd124fb6 | 1,031 | cpp | C++ | runtime/src/events/ServerScriptEvent.cpp | Timo972/altv-go-module | 9762938c019d47b52eceba6761bb6f900ea4f2e8 | [
"MIT"
] | null | null | null | runtime/src/events/ServerScriptEvent.cpp | Timo972/altv-go-module | 9762938c019d47b52eceba6761bb6f900ea4f2e8 | [
"MIT"
] | null | null | null | runtime/src/events/ServerScriptEvent.cpp | Timo972/altv-go-module | 9762938c019d47b52eceba6761bb6f900ea4f2e8 | [
"MIT"
] | null | null | null | #include "ServerScriptEvent.h"
Go::ServerScriptEvent::ServerScriptEvent(ModuleLibrary *module) : IEvent(module) {}
void Go::ServerScriptEvent::Call(const alt::CEvent *ev) {
static auto call = GET_FUNC(Library, "altServerScriptEvent", bool (*)(const char *name,
void *args, unsigned long long size));
... | 25.775 | 91 | 0.632396 | Timo972 |
83458498dc92b20e726f5434eddb46802378aec1 | 1,208 | cpp | C++ | src/emitter.cpp | ryonagana/shmup2 | e873402dc82dc148340adc2562dd8eb2353f3915 | [
"MIT"
] | 2 | 2019-03-26T15:45:22.000Z | 2019-03-27T13:18:03.000Z | src/emitter.cpp | ryonagana/shmup2 | e873402dc82dc148340adc2562dd8eb2353f3915 | [
"MIT"
] | null | null | null | src/emitter.cpp | ryonagana/shmup2 | e873402dc82dc148340adc2562dd8eb2353f3915 | [
"MIT"
] | 1 | 2019-03-31T02:52:06.000Z | 2019-03-31T02:52:06.000Z | #include <iostream>
#include <cmath>
#include "emitter.h"
#include "shared.h"
CParticleEmitter::CParticleEmitter(float x, float y, int amount){
this->particles = new CParticle[amount + 1];
for(int i = 0; i < amount + 1; i++){
this->particles[i].alive = false;
this->particles[i].x = x;
... | 21.963636 | 83 | 0.540563 | ryonagana |
834d32549399cce659c9ff2c48eea7e303c42d72 | 1,633 | cpp | C++ | Source/Sphere.cpp | PandarinDev/Photon | def2aae59f51c53ea3e75b6daa9572026c338f72 | [
"MIT"
] | null | null | null | Source/Sphere.cpp | PandarinDev/Photon | def2aae59f51c53ea3e75b6daa9572026c338f72 | [
"MIT"
] | null | null | null | Source/Sphere.cpp | PandarinDev/Photon | def2aae59f51c53ea3e75b6daa9572026c338f72 | [
"MIT"
] | null | null | null | #include "Sphere.h"
#include <cmath>
namespace photon {
Sphere::Sphere(const Vec3f& position, double radius, const Material& material)
: Geometry(material), position(position), radius(radius) {}
std::optional<Intersection> Sphere::intersect(const Ray& ray) const {
const auto to_center = ray.... | 37.113636 | 82 | 0.614207 | PandarinDev |
8352a556b860929f4dac4dff2ccfa0defbdfe180 | 1,383 | cpp | C++ | anspwm/test/dspmod_test.cpp | mortenjc/fpgacode | 28849d243f76fad71e0df720e2afe142fcc06ef9 | [
"BSD-2-Clause"
] | null | null | null | anspwm/test/dspmod_test.cpp | mortenjc/fpgacode | 28849d243f76fad71e0df720e2afe142fcc06ef9 | [
"BSD-2-Clause"
] | null | null | null | anspwm/test/dspmod_test.cpp | mortenjc/fpgacode | 28849d243f76fad71e0df720e2afe142fcc06ef9 | [
"BSD-2-Clause"
] | null | null | null | // Copyright (C) 2021 Morten Jagd Christensen, see LICENSE file
//===----------------------------------------------------------------------===//
///
/// \file
/// \brief test harness for dspmod
//===----------------------------------------------------------------------===//
#include <dspmod.h>
#include <verilated.h>
#... | 17.961039 | 80 | 0.509038 | mortenjc |
835719e800b0cfbd9460bcdc2bb6e437e81e829a | 13,139 | cpp | C++ | tests/parser_tests.cpp | Spaghetti-Software/cxx_plugins | e679ef19079d4b9e3fcf26d1422f690b1cf1ebcb | [
"MIT"
] | null | null | null | tests/parser_tests.cpp | Spaghetti-Software/cxx_plugins | e679ef19079d4b9e3fcf26d1422f690b1cf1ebcb | [
"MIT"
] | null | null | null | tests/parser_tests.cpp | Spaghetti-Software/cxx_plugins | e679ef19079d4b9e3fcf26d1422f690b1cf1ebcb | [
"MIT"
] | null | null | null | ///*************************************************************************************************
// * Copyright (C) 2020 by Andrey Ponomarev and Timur Kazhimuratov
// * This file is part of CXX Plugins project.
// * License is available at
// * https://github.com/Spaghetti-Software/cxx_plugins/blob/master/LICENSE
/... | 30.915294 | 101 | 0.605449 | Spaghetti-Software |
836000182fc1a7876c2684b660d4a4b575e76123 | 10,522 | cpp | C++ | kdiff3/src-QT4/kdiff3_part.cpp | michaelxzhang/kdiff3 | 471a343af7e2ec3a5f9cd31828b290309959f508 | [
"Intel"
] | 3 | 2021-02-25T14:12:14.000Z | 2021-10-29T22:44:26.000Z | kdiff3/src-QT4/kdiff3_part.cpp | michaelxzhang/kdiff3 | 471a343af7e2ec3a5f9cd31828b290309959f508 | [
"Intel"
] | 3 | 2020-05-16T05:28:21.000Z | 2020-05-26T20:40:25.000Z | kdiff3/src-QT4/kdiff3_part.cpp | michaelxzhang/kdiff3 | 471a343af7e2ec3a5f9cd31828b290309959f508 | [
"Intel"
] | null | null | null | /***************************************************************************
* Copyright (C) 2003-2007 Joachim Eibl <joachim.eibl at gmx.de> *
* *
* This program is free software; you can redistribute it and/or modify *
* it unde... | 32.88125 | 127 | 0.587626 | michaelxzhang |
8361029212864e137d72e5aaa651ed8c8b2dcea3 | 292 | cpp | C++ | algorithms/divizori.cpp | MateiSR/CPP | d9c0d2bd1ab48a44e3c2537b513cee0c72dc371b | [
"Unlicense"
] | null | null | null | algorithms/divizori.cpp | MateiSR/CPP | d9c0d2bd1ab48a44e3c2537b513cee0c72dc371b | [
"Unlicense"
] | null | null | null | algorithms/divizori.cpp | MateiSR/CPP | d9c0d2bd1ab48a44e3c2537b513cee0c72dc371b | [
"Unlicense"
] | null | null | null | #include <iostream>
int main()
{
int n;
std :: cin >> n;
for(int d =1 ; d * d <= n ; d ++ )
if(n % d == 0)
{
std :: cout << d << " ";
if(d * d < n) // dacă d != sqrt(n)
std :: cout << n / d << " ";
}
return 0;
}
| 19.466667 | 46 | 0.304795 | MateiSR |
836253ea122748c9852ff1e946f6a37ca214a3fb | 17,059 | cpp | C++ | src/core/graphics/t2kGCore.cpp | DamakoSoft/t2k | df50be732675cd968aba04296724d5d0acba65cf | [
"MIT"
] | 3 | 2022-01-09T09:02:46.000Z | 2022-01-11T01:33:11.000Z | src/core/graphics/t2kGCore.cpp | DamakoSoft/t2k | df50be732675cd968aba04296724d5d0acba65cf | [
"MIT"
] | null | null | null | src/core/graphics/t2kGCore.cpp | DamakoSoft/t2k | df50be732675cd968aba04296724d5d0acba65cf | [
"MIT"
] | null | null | null | // t2k - Tatsuko Driver is a software library designed to drive game development.
// Copyright (C) Damako Soft since 2020, all rights reserved.
// current version is ver. 0.1.
//
// Damako Soft staff:
// Da: Daizo Sasaki
// Ma: yoshiMasa Sugawara
// Ko: Koji Saito
//
// If you are interested in t2k, please follow ou... | 32.932432 | 103 | 0.69582 | DamakoSoft |
836832beaa041e01e1e4317032e1534e1ebfc469 | 1,912 | hpp | C++ | include/pichi/vo/credential.hpp | imuzi/pichi | 5ad1372bff4c3bffd201ccfb41df6c839c83c506 | [
"BSD-3-Clause"
] | 164 | 2018-09-28T09:41:05.000Z | 2021-11-13T09:17:07.000Z | include/pichi/vo/credential.hpp | imuzi/pichi | 5ad1372bff4c3bffd201ccfb41df6c839c83c506 | [
"BSD-3-Clause"
] | 5 | 2018-12-21T13:40:02.000Z | 2021-07-24T04:23:44.000Z | include/pichi/vo/credential.hpp | imuzi/pichi | 5ad1372bff4c3bffd201ccfb41df6c839c83c506 | [
"BSD-3-Clause"
] | 14 | 2018-12-18T09:35:42.000Z | 2021-07-06T12:16:34.000Z | #ifndef PICHI_VO_CREDENTIAL_HPP
#define PICHI_VO_CREDENTIAL_HPP
#include <pichi/common/enumerations.hpp>
#include <rapidjson/document.h>
#include <string>
#include <unordered_map>
#include <unordered_set>
namespace pichi::vo {
struct UpIngressCredential {
std::unordered_map<std::string, std::string> credential_;
}... | 33.54386 | 100 | 0.801778 | imuzi |
836a640bda4b0bf045534138f22a470b38f880d3 | 1,145 | hpp | C++ | include/text_screen/entity.hpp | fishjump/osdevc_textscreen | 70f2996642c63cbc350869bdcc377057729aa687 | [
"MIT"
] | null | null | null | include/text_screen/entity.hpp | fishjump/osdevc_textscreen | 70f2996642c63cbc350869bdcc377057729aa687 | [
"MIT"
] | null | null | null | include/text_screen/entity.hpp | fishjump/osdevc_textscreen | 70f2996642c63cbc350869bdcc377057729aa687 | [
"MIT"
] | null | null | null | #pragma once
#include <color/color.hpp>
#include <font/font.hpp>
#include <screen/screen.hpp>
#include <std/stdcxx.hpp>
namespace system::io::entity {
class TextScreen : public Screen {
public:
TextScreen(system::media::entity::Font defaultFont,
system::media::entity::Color defaultColor);
st... | 27.261905 | 68 | 0.623581 | fishjump |
836ec1dce6581a3bd9d6d22998405f7061331ca2 | 9,431 | cpp | C++ | looper/firmware/sync.cpp | jessecrossen/hautmidi | 7ef969d842c6cd9bc412d08ca422d962547e88e8 | [
"Unlicense"
] | 4 | 2017-09-28T02:06:42.000Z | 2021-07-15T01:58:58.000Z | looper/firmware/sync.cpp | jessecrossen/hautmidi | 7ef969d842c6cd9bc412d08ca422d962547e88e8 | [
"Unlicense"
] | null | null | null | looper/firmware/sync.cpp | jessecrossen/hautmidi | 7ef969d842c6cd9bc412d08ca422d962547e88e8 | [
"Unlicense"
] | null | null | null | #include "sync.h"
#define TRACE 0
#include "trace.h"
size_t Sync::idealLoopBlocks(Track *track) {
SyncPoint *p;
uint8_t ti;
uint8_t i = track->index;
// count sync points to the track for each other track
size_t *counts = new size_t[_trackCount];
for (ti = 0; ti < _trackCount; ti++) counts[ti] = 0;
for ... | 29.750789 | 87 | 0.608207 | jessecrossen |
837919233197c3444750eb6529a66fdc7331578f | 2,620 | cpp | C++ | test/source/numeric.cpp | nokurn/frequencypp | 5280b7a48ca49249c396603aee20cd89785a80b3 | [
"0BSD"
] | null | null | null | test/source/numeric.cpp | nokurn/frequencypp | 5280b7a48ca49249c396603aee20cd89785a80b3 | [
"0BSD"
] | null | null | null | test/source/numeric.cpp | nokurn/frequencypp | 5280b7a48ca49249c396603aee20cd89785a80b3 | [
"0BSD"
] | null | null | null | // Copyright 2021-2022 Jeremiah Griffin
//
// Permission to use, copy, modify, and/or distribute this software for any
// purpose with or without fee is hereby granted, provided that the above
// copyright notice and this permission notice appear in all copies.
//
// THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISC... | 33.164557 | 75 | 0.692366 | nokurn |
8379633dc6cd78efda04fd67747b3d18c4fb5c13 | 1,586 | cpp | C++ | sources/InfoWindow.cpp | miqlas/W6 | b1940f137e20efee91c0ae060509b7b8507a9159 | [
"MIT"
] | 1 | 2017-08-11T17:04:56.000Z | 2017-08-11T17:04:56.000Z | sources/InfoWindow.cpp | miqlas/W6 | b1940f137e20efee91c0ae060509b7b8507a9159 | [
"MIT"
] | 4 | 2017-08-11T17:05:37.000Z | 2021-02-01T10:28:53.000Z | sources/InfoWindow.cpp | miqlas/W6 | b1940f137e20efee91c0ae060509b7b8507a9159 | [
"MIT"
] | 1 | 2020-10-26T07:26:35.000Z | 2020-10-26T07:26:35.000Z | #include "InfoWindow.h"
#include "ColorWindow.h"
#include "day.h"
#include "country.h"
#include "InfoView.h"
#include "GroupWindow.h"
#include <TranslationUtils.h>
#include <Message.h>
InfoWindow::InfoWindow(BRect frame,Country *Country_id[MAX_COUNTRY],Group *Group_id[MAX_GROUP],Politic *Politic_id[MAX_POLITIC], Day ... | 27.344828 | 143 | 0.728247 | miqlas |
837c978c5619ca42c2d34143f49c6a75fd2b61e3 | 741 | hh | C++ | src/dbus/audio_device_claim.hh | stanford-stagecast/pancake | e9cfd547edf2dd797f324b159252757190211ff2 | [
"Apache-2.0"
] | 2 | 2022-01-05T08:58:11.000Z | 2022-01-06T05:33:14.000Z | src/dbus/audio_device_claim.hh | stanford-stagecast/pancake | e9cfd547edf2dd797f324b159252757190211ff2 | [
"Apache-2.0"
] | null | null | null | src/dbus/audio_device_claim.hh | stanford-stagecast/pancake | e9cfd547edf2dd797f324b159252757190211ff2 | [
"Apache-2.0"
] | null | null | null | #pragma once
#include <dbus/dbus.h>
#include <memory>
#include <optional>
#include <string>
class AudioDeviceClaim
{
class DBusConnectionWrapper
{
struct DBusConnection_deleter
{
void operator()( DBusConnection* x ) const;
};
std::unique_ptr<DBusConnection, DBusConnection_deleter> connection... | 21.794118 | 82 | 0.727395 | stanford-stagecast |
837f9c9108b86a525eb948d2d41d6ccc55ab9ab2 | 3,680 | cpp | C++ | Chapter11/blackjack/blackjackold.cpp | Rayyan06/CPP | daeededda19a0d9766115a700dd949d92dfa4963 | [
"MIT"
] | 1 | 2021-04-12T17:01:58.000Z | 2021-04-12T17:01:58.000Z | Chapter11/blackjack/blackjackold.cpp | Rayyan06/CPP | daeededda19a0d9766115a700dd949d92dfa4963 | [
"MIT"
] | null | null | null | Chapter11/blackjack/blackjackold.cpp | Rayyan06/CPP | daeededda19a0d9766115a700dd949d92dfa4963 | [
"MIT"
] | null | null | null | #include <iostream>
#include.mf
struct Card
{
CardRank rank{};
CardSuit suit{};
};
struct Player
{
int score{};
};
using deck_type = std::array<Card, 52>;
using index_type = deck_type::size_type;
// Maximum score before losing.
constexpr int maximumScore{ 21 };
// Minium score that the dealer has to have... | 17.196262 | 93 | 0.589674 | Rayyan06 |
838049378fe0c1c2c357791c878b045183663e12 | 3,922 | cpp | C++ | Lab6/Lab6.cpp | DimanStrelok/Labs_Programming | 7b87bc7d1c3f446afd86adbb8b8b3ab4d751fd3a | [
"MIT"
] | null | null | null | Lab6/Lab6.cpp | DimanStrelok/Labs_Programming | 7b87bc7d1c3f446afd86adbb8b8b3ab4d751fd3a | [
"MIT"
] | null | null | null | Lab6/Lab6.cpp | DimanStrelok/Labs_Programming | 7b87bc7d1c3f446afd86adbb8b8b3ab4d751fd3a | [
"MIT"
] | null | null | null | #include <string>
#include <locale>
#include <iostream>
#include <vector>
enum class Gender {
Man = 0,
Women
};
struct Employee {
int t_num;
std::string name;
int salary;
std::string post;
Gender gender;
friend std::ostream& operator<<(std::ostream& os, const Employee& employee) {
... | 25.467532 | 82 | 0.556604 | DimanStrelok |
8b52227fe6e5a7028a3778fa31853daa6e2d4f87 | 2,968 | hpp | C++ | Engine/Src/Runtime/Core/Public/Core/Utility/MemoryUtil.hpp | Septus10/Fade-Engine | 285a2a1cf14a4e9c3eb8f6d30785d1239cef10b6 | [
"MIT"
] | null | null | null | Engine/Src/Runtime/Core/Public/Core/Utility/MemoryUtil.hpp | Septus10/Fade-Engine | 285a2a1cf14a4e9c3eb8f6d30785d1239cef10b6 | [
"MIT"
] | null | null | null | Engine/Src/Runtime/Core/Public/Core/Utility/MemoryUtil.hpp | Septus10/Fade-Engine | 285a2a1cf14a4e9c3eb8f6d30785d1239cef10b6 | [
"MIT"
] | null | null | null | #pragma once
#include <Core/CoreApi.hpp>
#include <xmemory>
namespace Fade {
template <typename ValueType>
struct TDefaultAllocator : public std::allocator<ValueType>
{
};
// Default deleter for TUniquePtr
template <typename ValueType>
struct TDefaultDelete
{
/*
* Default constructor
*/
constexpr TDefaultDel... | 21.823529 | 125 | 0.718666 | Septus10 |
8b5310ad5681d532f18b6ad821bcc9ee5a15820d | 1,100 | cpp | C++ | p_euler_78.cpp | Krshivam/Project-Euler | 108d4c98450de09315e399956665edd369a50d64 | [
"MIT"
] | null | null | null | p_euler_78.cpp | Krshivam/Project-Euler | 108d4c98450de09315e399956665edd369a50d64 | [
"MIT"
] | null | null | null | p_euler_78.cpp | Krshivam/Project-Euler | 108d4c98450de09315e399956665edd369a50d64 | [
"MIT"
] | null | null | null | #include<bits/stdc++.h>
using namespace std;
#define f first
#define s second
#define ll long long
#define pb push_back
#define mp make_pair
#define inp(x) cin>>x
#define print(x) cout<<x
#define pii pair<int,int>
#define pll pair<ll,ll>
#define gcd(a,b) __gcd(a,b)
#define reset(d,val) memset(d,val,sizeof... | 20.754717 | 58 | 0.590909 | Krshivam |
8b5565050574954ea78c8f6dd31e9784dba7eb4d | 6,840 | cpp | C++ | TongueQT/TongueQT/src/Vega/libraries/corotationalLinearFEM/corotationalLinearFEMMT.cpp | lrkk1234/TongueSimulation | 347cf38452aa62d1173da1c4935f691456255e46 | [
"MIT"
] | 2 | 2020-03-28T03:15:49.000Z | 2020-09-09T02:54:33.000Z | TongueQT/TongueQT/src/Vega/libraries/corotationalLinearFEM/corotationalLinearFEMMT.cpp | lrkk1234/TongueSimulation | 347cf38452aa62d1173da1c4935f691456255e46 | [
"MIT"
] | null | null | null | TongueQT/TongueQT/src/Vega/libraries/corotationalLinearFEM/corotationalLinearFEMMT.cpp | lrkk1234/TongueSimulation | 347cf38452aa62d1173da1c4935f691456255e46 | [
"MIT"
] | 2 | 2020-09-08T19:28:19.000Z | 2021-07-25T00:35:26.000Z | /*************************************************************************
* *
* Vega FEM Simulation Library Version 2.2 *
* *
* "corotational lin... | 34.545455 | 173 | 0.580848 | lrkk1234 |
8b5a7f74dfe34b65674f2451b8947016be1935da | 7,664 | cpp | C++ | test/src/trajectory_generator_test.cpp | kohonda/state_lattice_planner | 3368f222d0296c6325673027f9c59989b8783733 | [
"BSD-3-Clause"
] | 79 | 2019-05-31T14:57:32.000Z | 2022-03-26T13:49:33.000Z | test/src/trajectory_generator_test.cpp | lucianzhong/state_lattice_planner | 21da9743ad56f58e68dd7bb651c16c2dde57294c | [
"BSD-3-Clause"
] | 17 | 2019-04-18T06:48:16.000Z | 2022-02-01T02:09:11.000Z | test/src/trajectory_generator_test.cpp | lucianzhong/state_lattice_planner | 21da9743ad56f58e68dd7bb651c16c2dde57294c | [
"BSD-3-Clause"
] | 33 | 2019-10-29T07:17:03.000Z | 2022-02-18T06:12:58.000Z | #include <gtest/gtest.h>
#include "trajectory_generator/motion_model_diff_drive.h"
#include "trajectory_generator/trajectory_generator_diff_drive.h"
TEST(MotionModelTest, Interpolation)
{
MotionModelDiffDrive::AngularVelocityParams omega(0, 0.5, 1.0, 5);
omega.calculate_spline();
MotionModelDiffDrive mm;
... | 43.794286 | 182 | 0.691284 | kohonda |
8b5d6f77b8af926c1d591243e707353a221beaa1 | 921 | cpp | C++ | MFC/MFCDemo/Curve.cpp | Johnny-Martin/Win32UI | 570feb103bfda72063f13871b06326c6884cebd1 | [
"MIT"
] | 1 | 2021-02-13T18:10:51.000Z | 2021-02-13T18:10:51.000Z | MFC/MFCDemo/Curve.cpp | Johnny-Martin/Win32UI | 570feb103bfda72063f13871b06326c6884cebd1 | [
"MIT"
] | null | null | null | MFC/MFCDemo/Curve.cpp | Johnny-Martin/Win32UI | 570feb103bfda72063f13871b06326c6884cebd1 | [
"MIT"
] | 3 | 2018-01-28T05:55:00.000Z | 2021-08-18T07:47:20.000Z | #include"stdafx.h"
#include"Curve.h"
using namespace BaseElement;
Curve::Curve(CDC* pDC, int iMaxPointCount, int iLineWidth):
m_vecPoints(),
m_cursor(),
m_iCursor(0),
m_pen(PS_SOLID, 1, RGB(255, 0, 255))
{
m_pDC = pDC;
m_iMaxPointCount = iMaxPointCount;
m_iLineWidth = iLineWidth;
m_pDC->SelectObject(m_pen);... | 18.795918 | 72 | 0.677524 | Johnny-Martin |
8b69b564a035f4d92a4cacd7c83d528a87d2396a | 2,138 | cc | C++ | test/log/raw_logging_test.cc | Conun/abel | 485ef38c917c0df3750242cc38966a2bcb163588 | [
"BSD-3-Clause"
] | null | null | null | test/log/raw_logging_test.cc | Conun/abel | 485ef38c917c0df3750242cc38966a2bcb163588 | [
"BSD-3-Clause"
] | null | null | null | test/log/raw_logging_test.cc | Conun/abel | 485ef38c917c0df3750242cc38966a2bcb163588 | [
"BSD-3-Clause"
] | null | null | null | //
// This test serves primarily as a compilation test for base/raw_logging.h.
// Raw logging testing is covered by logging_unittest.cc, which is not as
// portable as this test.
#include <abel/log/raw_logging.h>
#include <tuple>
#include <gtest/gtest.h>
#include <abel/strings/str_cat.h>
namespace {
TEST(RawLogging... | 32.393939 | 76 | 0.67072 | Conun |
8b6b26c97a0681365b3c4da805626a38a5827daf | 106 | hpp | C++ | include/netp/core/platform/osx_x86_.hpp | cainiaoDJ/netplus | 03350d507830b3a39620374225d16c0b57623ef1 | [
"MIT"
] | 48 | 2021-02-22T03:10:40.000Z | 2022-03-29T03:26:33.000Z | include/netp/core/platform/osx_x86_.hpp | cainiaoDJ/netplus | 03350d507830b3a39620374225d16c0b57623ef1 | [
"MIT"
] | 7 | 2021-03-20T09:25:11.000Z | 2022-03-07T03:26:56.000Z | include/netp/core/platform/osx_x86_.hpp | cainiaoDJ/netplus | 03350d507830b3a39620374225d16c0b57623ef1 | [
"MIT"
] | 13 | 2021-02-25T01:49:58.000Z | 2022-03-21T00:30:34.000Z | #ifndef _CORE_PLATFORM_NETP_PLATFORM_OSX_X86_HPP_
#define _CORE_PLATFORM_NETP_PLATFORM_OSX_X86_HPP_
#endif | 35.333333 | 49 | 0.933962 | cainiaoDJ |
8b6c8271568be513899ec162dd37302bd78e1609 | 2,450 | cpp | C++ | operators (overload, week 4).cpp | snow482/cpp_white_belt | 5218c122d69c081d0b00711f0223e6309689061e | [
"MIT"
] | 1 | 2020-11-03T15:16:45.000Z | 2020-11-03T15:16:45.000Z | operators (overload, week 4).cpp | snow482/cpp_white_belt | 5218c122d69c081d0b00711f0223e6309689061e | [
"MIT"
] | null | null | null | operators (overload, week 4).cpp | snow482/cpp_white_belt | 5218c122d69c081d0b00711f0223e6309689061e | [
"MIT"
] | null | null | null | #include <iostream>
#include <sstream>
#include <iomanip>
#include <algorithm>
#include <string>
#include <vector>
using namespace std;
/*using std::vector;
using std::string;
using std::cin;
using std::cout;
using std::endl;
using std::istream;
using std::ostream;*/
struct Duration{
int hour;
int min;
... | 26.344086 | 85 | 0.538776 | snow482 |
8b6f5316881822682e8f1dc4fc12d338b44e852a | 3,204 | hpp | C++ | sketch/dense_transform_Mixed.hpp | xdata-skylark/libskylark | 89c3736136a24d519c14fc0738c21f37f1e10360 | [
"Apache-2.0"
] | 86 | 2015-01-20T03:12:46.000Z | 2022-01-10T04:05:21.000Z | sketch/dense_transform_Mixed.hpp | xdata-skylark/libskylark | 89c3736136a24d519c14fc0738c21f37f1e10360 | [
"Apache-2.0"
] | 48 | 2015-05-12T09:31:23.000Z | 2018-12-05T14:45:46.000Z | sketch/dense_transform_Mixed.hpp | xdata-skylark/libskylark | 89c3736136a24d519c14fc0738c21f37f1e10360 | [
"Apache-2.0"
] | 25 | 2015-01-18T23:02:11.000Z | 2021-06-12T07:30:35.000Z | #ifndef SKYLARK_DENSE_TRANSFORM_MIXED_HPP
#define SKYLARK_DENSE_TRANSFORM_MIXED_HPP
#include "../base/base.hpp"
#include "transforms.hpp"
#include "dense_transform_data.hpp"
#include "../utility/get_communicator.hpp"
#include "../base/sparse_vc_star_matrix.hpp"
#include "sketch_params.hpp"
namespace skylark { names... | 30.226415 | 81 | 0.634831 | xdata-skylark |
8b8607ba08f78e6ced9c0c632589327bfd73706d | 330 | cpp | C++ | CPP/CWE-477/3/bad.cpp | squinky86/FUBER | ee1382d01d589dd88d12ac1186c5e908acff240f | [
"ISC"
] | 1 | 2021-06-17T23:05:37.000Z | 2021-06-17T23:05:37.000Z | CPP/CWE-477/3/bad.cpp | squinky86/FUBER | ee1382d01d589dd88d12ac1186c5e908acff240f | [
"ISC"
] | null | null | null | CPP/CWE-477/3/bad.cpp | squinky86/FUBER | ee1382d01d589dd88d12ac1186c5e908acff240f | [
"ISC"
] | null | null | null | /*
* Copyright © 2018, Jon Hood www.hoodsecurity.com
* License: ISC
*/
#include <cstdlib>
#include <iostream>
#include <memory>
using namespace std;
int main(int argc, char *argv[])
{
auto_ptr<int> p(new int); //auto_ptr deprecated by C++11 and removed in C++17
*p.get() = 1;
cout << *p << endl;
return EXIT_S... | 16.5 | 78 | 0.657576 | squinky86 |
8b88977a872c289ee6fce09a65fcf940f4291244 | 17,738 | hpp | C++ | include/utils/te.hpp | SakuraEngine/Sakura.Runtime | 5a397fb2b1285326c4216f522fe10e347bd566f7 | [
"MIT"
] | 29 | 2021-11-19T11:28:22.000Z | 2022-03-29T00:26:51.000Z | include/utils/te.hpp | SakuraEngine/Sakura.Runtime | 5a397fb2b1285326c4216f522fe10e347bd566f7 | [
"MIT"
] | null | null | null | include/utils/te.hpp | SakuraEngine/Sakura.Runtime | 5a397fb2b1285326c4216f522fe10e347bd566f7 | [
"MIT"
] | 1 | 2022-03-05T08:14:40.000Z | 2022-03-05T08:14:40.000Z | //
// Copyright (c) 2018-2019 Kris Jusiak (kris 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)
//
#pragma once
#if not defined(__cpp_variadic_templates) or \
n... | 29.563333 | 113 | 0.566242 | SakuraEngine |
8b90cbc75d2671e687e4f050a6fc61a6171237c2 | 3,017 | cpp | C++ | src/lexer/lexer.cpp | shrimpster00/mark-sideways | 16eeebb514d3e3fe1425cda5326bf3ac74f60235 | [
"MIT"
] | 1 | 2021-09-23T22:38:24.000Z | 2021-09-23T22:38:24.000Z | src/lexer/lexer.cpp | shrimpster00/mark-sideways | 16eeebb514d3e3fe1425cda5326bf3ac74f60235 | [
"MIT"
] | null | null | null | src/lexer/lexer.cpp | shrimpster00/mark-sideways | 16eeebb514d3e3fe1425cda5326bf3ac74f60235 | [
"MIT"
] | null | null | null | // //lexer
// v. 0.4.0
//
// Author: Cayden Lund
// Date: 10/30/2021
//
// This file is part of sparkdown, a new markup/markdown language
// for quickly writing and formatting notes.
//
// This file contains the implementation of the lex() method.
// This method is used to lex a line for parsing.
//
// Copyright (C) ... | 29.009615 | 89 | 0.48757 | shrimpster00 |
8b91c42ed431ba8adc12f1ad407bb28526b10573 | 6,773 | cpp | C++ | src/feature_detector.cpp | ChristophPacher/MassKerade | 064b3e6055032a45a917129d6134e9b70f12fb85 | [
"BSD-2-Clause"
] | 1 | 2018-08-14T06:39:55.000Z | 2018-08-14T06:39:55.000Z | src/feature_detector.cpp | ChristophPacher/MassKerade | 064b3e6055032a45a917129d6134e9b70f12fb85 | [
"BSD-2-Clause"
] | null | null | null | src/feature_detector.cpp | ChristophPacher/MassKerade | 064b3e6055032a45a917129d6134e9b70f12fb85 | [
"BSD-2-Clause"
] | null | null | null | /*!
* @file feature_detector.cpp
* @author Christoph Pacher <chris@christophpacher.com>
* @version 1.0
*
* @section LICENSE
*
* Copyright (c) 2014 Christoph Pacher http://www.christophpacher.com
*
* Redistribution and use in source and binary forms, with or without modification, are permitted provided that
... | 33.20098 | 162 | 0.704119 | ChristophPacher |
8bab0d9c5705dc539ab5061f1edffed8f02f73e2 | 656 | cpp | C++ | src/QtCryptography/nPKCS7encryptor.cpp | Vladimir-Lin/QtCryptography | b200e70b38564b274e2d53ab21cfa459e00ed449 | [
"MIT"
] | null | null | null | src/QtCryptography/nPKCS7encryptor.cpp | Vladimir-Lin/QtCryptography | b200e70b38564b274e2d53ab21cfa459e00ed449 | [
"MIT"
] | null | null | null | src/QtCryptography/nPKCS7encryptor.cpp | Vladimir-Lin/QtCryptography | b200e70b38564b274e2d53ab21cfa459e00ed449 | [
"MIT"
] | null | null | null | #include <qtcryptography>
#include <openssl/pkcs7.h>
N::Encrypt::Pkcs7:: Pkcs7 (void)
: Encryptor ( )
{
}
N::Encrypt::Pkcs7::~Pkcs7 (void)
{
}
bool N::Encrypt::Pkcs7::supports (int algorithm)
{
return ( Cryptography::PKI == algorithm ) ;
}
int N::Encrypt::Pkcs7::type(void) const
{
retur... | 14.909091 | 71 | 0.625 | Vladimir-Lin |
8baef9f62a3036660afa755725e8efc46e74a77b | 150 | cpp | C++ | Disassembler.cpp | Pyxxil/LC3 | 7a2b201745846cd0f188648bfcc93f35d7ac711b | [
"MIT"
] | 2 | 2020-08-18T01:04:58.000Z | 2022-02-21T19:46:59.000Z | Disassembler.cpp | Pyxxil/LC3 | 7a2b201745846cd0f188648bfcc93f35d7ac711b | [
"MIT"
] | null | null | null | Disassembler.cpp | Pyxxil/LC3 | 7a2b201745846cd0f188648bfcc93f35d7ac711b | [
"MIT"
] | null | null | null | #include "Disassembler.hpp"
auto main(int argc, char **argv) -> int {
Disassembler disassembler(argc, argv);
return disassembler.disassemble();
} | 25 | 41 | 0.726667 | Pyxxil |
8bb3e4a4a1765909d48b9df682b6952f6fbd35fd | 3,482 | hpp | C++ | inc/tetra/gl/Buffer.hpp | projectTetra/tetra-gl | 318b0b4184ac3064b2bb5de6f82dc38c35aff956 | [
"MIT"
] | null | null | null | inc/tetra/gl/Buffer.hpp | projectTetra/tetra-gl | 318b0b4184ac3064b2bb5de6f82dc38c35aff956 | [
"MIT"
] | null | null | null | inc/tetra/gl/Buffer.hpp | projectTetra/tetra-gl | 318b0b4184ac3064b2bb5de6f82dc38c35aff956 | [
"MIT"
] | null | null | null | #pragma once
#ifndef TETRA_GL_BUFFER_HPP
#define TETRA_GL_BUFFER_HPP
#include <array>
#include <vector>
#include <tetra/gl/VertexArrayObject.hpp>
#include <tetra/gl/GLException.hpp>
namespace tetra
{
namespace gl
{
/**
* A safe, RAII OpenGL array buffer object.
* Templated on the type of the data that the buffer sh... | 27.203125 | 70 | 0.68093 | projectTetra |
8bbf5b061cc224c341e47f9b3d9573633ed73eb9 | 773 | cpp | C++ | PETCS/Intermediate/ccc07j2.cpp | dl4us/Competitive-Programming-1 | d42fab3bd68168adbe4b5f594f19ee5dfcd1389b | [
"MIT"
] | null | null | null | PETCS/Intermediate/ccc07j2.cpp | dl4us/Competitive-Programming-1 | d42fab3bd68168adbe4b5f594f19ee5dfcd1389b | [
"MIT"
] | null | null | null | PETCS/Intermediate/ccc07j2.cpp | dl4us/Competitive-Programming-1 | d42fab3bd68168adbe4b5f594f19ee5dfcd1389b | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
using namespace std;
map<string, string> mp;
string shrt[12] = {"CU", ":-)", ":-(", ";-)", ":-P", "(~.~)", "TA", "CCC", "CUZ", "TY", "YW", "TTYL"};
string tran[12] = {"see you", "I'm happy", "I'm unhappy", "wink", "stick out my tongue", "sleepy", "totally awesome", "Canadian Computing Competiti... | 29.730769 | 215 | 0.456662 | dl4us |
8bc52998b312a1a94b2f8ce8a4016799d24e8d1f | 967 | cpp | C++ | src/Heteroclinic.cpp | tmkwan/Cpp-Runge-Kutta-Fehlberg | 4e1aeb1d0231acbb12c94617fb79a33b3f542726 | [
"MIT"
] | null | null | null | src/Heteroclinic.cpp | tmkwan/Cpp-Runge-Kutta-Fehlberg | 4e1aeb1d0231acbb12c94617fb79a33b3f542726 | [
"MIT"
] | null | null | null | src/Heteroclinic.cpp | tmkwan/Cpp-Runge-Kutta-Fehlberg | 4e1aeb1d0231acbb12c94617fb79a33b3f542726 | [
"MIT"
] | null | null | null | /*
* Heteroclinic.cpp
*
* Implements a heteroclinic cycle.
*
* Created on: Aug 6, 2016
* Author: Ted Kwan.
*/
#include <cmath>
#include "Heteroclinic.h"
using namespace std;
using namespace arma;
/**
* Default constructor with default parameters.
*/
Heteroclinic::Heteroclinic() {
dim=2;
epsilon=0.0;... | 16.964912 | 61 | 0.659772 | tmkwan |
8bc8385b2ca50499fab71d9e0683370c1b8e5901 | 291 | hpp | C++ | matlab/src/util.hpp | nfagan/mtype | a745271d366df64e1b4692cc90f0685ea4084ba6 | [
"MIT"
] | null | null | null | matlab/src/util.hpp | nfagan/mtype | a745271d366df64e1b4692cc90f0685ea4084ba6 | [
"MIT"
] | null | null | null | matlab/src/util.hpp | nfagan/mtype | a745271d366df64e1b4692cc90f0685ea4084ba6 | [
"MIT"
] | null | null | null | #pragma once
#include "mex.h"
#include <string>
namespace mt {
std::string get_string_with_trap(const mxArray* in_str, const char* id);
bool bool_or_default(const mxArray* in_array, bool default_value);
bool bool_convertible_or_default(const mxArray* in_array, bool default_value);
} | 29.1 | 80 | 0.780069 | nfagan |
8bcb9d5c7d216d58f7f08d73f21a1f174a681131 | 2,279 | cpp | C++ | src/transactiondb.cpp | jon34560/Safire | 49bf7ec7d9f2b7536af9bd4a03789694078dfe77 | [
"MIT"
] | null | null | null | src/transactiondb.cpp | jon34560/Safire | 49bf7ec7d9f2b7536af9bd4a03789694078dfe77 | [
"MIT"
] | null | null | null | src/transactiondb.cpp | jon34560/Safire | 49bf7ec7d9f2b7536af9bd4a03789694078dfe77 | [
"MIT"
] | null | null | null | #include "transactiondb.h"
#include <sstream>
#include <unistd.h> // open and close
#include "leveldb/db.h"
using namespace std;
/**
*
*
* Description: Generate a random sha256 hash to be used as a private key.
* Generates 128 random ascii characters to feed into a sha256 hash.
*
* @param: std::string output ... | 25.322222 | 80 | 0.627029 | jon34560 |
8bd0326a084c3291b46d74188bf46538d853b1bf | 10,975 | cpp | C++ | Framework/Source/Windows/LWPlatform/LWInputDevice_Windows.cpp | slicer4ever/Lightwaver | 1f444e42eab9988632f541ab3c8f491d557c7de7 | [
"MIT"
] | 3 | 2017-10-24T08:04:49.000Z | 2018-08-28T10:08:08.000Z | Framework/Source/Windows/LWPlatform/LWInputDevice_Windows.cpp | slicer4ever/Lightwave | 1f444e42eab9988632f541ab3c8f491d557c7de7 | [
"MIT"
] | null | null | null | Framework/Source/Windows/LWPlatform/LWInputDevice_Windows.cpp | slicer4ever/Lightwave | 1f444e42eab9988632f541ab3c8f491d557c7de7 | [
"MIT"
] | null | null | null | #include "LWPlatform/LWInputDevice.h"
#include "LWPlatform/LWPlatform.h"
#include "LWPlatform/LWWindow.h"
#include <Xinput.h>
#include <algorithm>
#include <iostream>
#pragma region LWMouse
bool LWMouse::ProcessSystemMessage(uint32_t MessageID, void *MessageData, uint64_t , LWWindow *Window){
MSG *M = (MSG*)... | 38.780919 | 327 | 0.682825 | slicer4ever |
8bd0b2534fde342bff692e97d9fa027e5d755a26 | 880 | cpp | C++ | src/qad.cpp | mkujalowicz/trismers-qtadservice | c0315ebe7268fca9ac53504dda11af74a92689c7 | [
"Apache-2.0"
] | null | null | null | src/qad.cpp | mkujalowicz/trismers-qtadservice | c0315ebe7268fca9ac53504dda11af74a92689c7 | [
"Apache-2.0"
] | null | null | null | src/qad.cpp | mkujalowicz/trismers-qtadservice | c0315ebe7268fca9ac53504dda11af74a92689c7 | [
"Apache-2.0"
] | null | null | null | #include "qad.h"
QAd::QAd(QObject *parent) :
QObject(parent), m_format(Null)
{
}
void QAd::setUrl(const QUrl &arg)
{
if (m_url != arg) {
m_url = arg;
emit urlChanged(arg);
}
}
void QAd::setImageUrl(QUrl arg)
{
if (m_imageUrl != arg) {
m_imageUrl = arg;
emit imageUrlCha... | 16 | 37 | 0.564773 | mkujalowicz |
8bd60b3aba0e576d3d204e9177cfaa5d5bbc8032 | 5,929 | cpp | C++ | SCNN/seg_label_generate/src/lane/util.cpp | IAmNotMahd/LaneDetector | 07198cc8e8981020f7375b8fb9acbdf8bd72b71e | [
"MIT"
] | 2 | 2019-07-28T18:20:53.000Z | 2020-02-19T08:08:59.000Z | SCNN/seg_label_generate/src/lane/util.cpp | IAmNotMahd/LaneDetector | 07198cc8e8981020f7375b8fb9acbdf8bd72b71e | [
"MIT"
] | null | null | null | SCNN/seg_label_generate/src/lane/util.cpp | IAmNotMahd/LaneDetector | 07198cc8e8981020f7375b8fb9acbdf8bd72b71e | [
"MIT"
] | null | null | null | /*************************************************************************
> File Name: util.cpp
> Author: Jun Li, Xingang Pan
> Mail: xingangpan1994@gmail.com
> Created Time: 2016年07月20日 星期三 16时20分51秒
************************************************************************/
#include "lane/util.hpp"
#include... | 21.404332 | 157 | 0.572609 | IAmNotMahd |
8bdafaff33eb3d52dbfbb163085fcad0bac3631d | 440 | hpp | C++ | src/face/eye/lenet/lenet.hpp | bububa/openvision | 0864e48ec8e69ac13d6889d41f7e1171f53236dd | [
"Apache-2.0"
] | 1 | 2022-02-08T06:42:05.000Z | 2022-02-08T06:42:05.000Z | src/face/eye/lenet/lenet.hpp | bububa/openvision | 0864e48ec8e69ac13d6889d41f7e1171f53236dd | [
"Apache-2.0"
] | null | null | null | src/face/eye/lenet/lenet.hpp | bububa/openvision | 0864e48ec8e69ac13d6889d41f7e1171f53236dd | [
"Apache-2.0"
] | null | null | null | #ifndef _FACE_EYE_LENET_H_
#define _FACE_EYE_LENET_H_
#include "../eye.hpp"
namespace ovface {
class LenetEye : public Eye {
public:
int Status(const unsigned char *rgbdata, int img_width, int img_height,
const ov::Rect rect, std::vector<float> &cls_scores);
private:
const int target_width = 36;
co... | 24.444444 | 73 | 0.713636 | bububa |
8be4028bd038fc25b930e28f93b6d628d7bb125e | 1,232 | hpp | C++ | boost/network/protocol/http/client/macros.hpp | JimmyHwang/cpp-netlib | 86d08de44145be6d1f7f80d07f69585842b8d325 | [
"BSL-1.0"
] | null | null | null | boost/network/protocol/http/client/macros.hpp | JimmyHwang/cpp-netlib | 86d08de44145be6d1f7f80d07f69585842b8d325 | [
"BSL-1.0"
] | null | null | null | boost/network/protocol/http/client/macros.hpp | JimmyHwang/cpp-netlib | 86d08de44145be6d1f7f80d07f69585842b8d325 | [
"BSL-1.0"
] | null | null | null | #ifndef BOOST_NETWORK_PROTOCOL_HTTP_CLIENT_MACROS_HPP_20110430
#define BOOST_NETWORK_PROTOCOL_HTTP_CLIENT_MACROS_HPP_20110430
// Copyright 2011 Dean Michael Berris <mikhailberis@gmail.com>.
// Distributed under the Boost Software License, Version 1.0.
// (See accompanying file LICENSE_1_0.txt or copy at
// http://www.... | 39.741935 | 80 | 0.703734 | JimmyHwang |
8bea6947d86cd97ebcc460df5b81adad098724b5 | 1,086 | cpp | C++ | src/engine/graphics/vulkan.cpp | dmfedorin/ubiquitility | f3a1062d2489ffd48889bff5fc8062c05706a946 | [
"MIT"
] | null | null | null | src/engine/graphics/vulkan.cpp | dmfedorin/ubiquitility | f3a1062d2489ffd48889bff5fc8062c05706a946 | [
"MIT"
] | null | null | null | src/engine/graphics/vulkan.cpp | dmfedorin/ubiquitility | f3a1062d2489ffd48889bff5fc8062c05706a946 | [
"MIT"
] | null | null | null | #include "vulkan.hpp"
Vulkan::Vulkan(Window &wnd)
{
layers = std::make_unique<ValidationLayers>(true);
inst = std::make_unique<Instance>(*layers);
surface = std::make_unique<Surface>(inst.get(), wnd);
phys_dev = std::make_unique<PhysicalDevice>(*inst, *surface);
dev = std::make_... | 28.578947 | 77 | 0.567219 | dmfedorin |
8bee177fd878b1c3f6be5c14901f01dc35f8a04c | 655 | cpp | C++ | Leetcode/SumRoottoLeafNumbers.cpp | zhanghuanzj/C- | b271de02885466e97d6a2072f4f93f87625834e4 | [
"Apache-2.0"
] | null | null | null | Leetcode/SumRoottoLeafNumbers.cpp | zhanghuanzj/C- | b271de02885466e97d6a2072f4f93f87625834e4 | [
"Apache-2.0"
] | null | null | null | Leetcode/SumRoottoLeafNumbers.cpp | zhanghuanzj/C- | b271de02885466e97d6a2072f4f93f87625834e4 | [
"Apache-2.0"
] | null | null | null | /**
* Definition for binary tree
* struct TreeNode {
* int val;
* TreeNode *left;
* TreeNode *right;
* TreeNode(int x) : val(x), left(NULL), right(NULL) {}
* };
*/
class Solution {
public:
int sumNumbers(TreeNode *root) {
int result = 0;
getValue(root,0,result);
return result;
}
pr... | 17.236842 | 59 | 0.580153 | zhanghuanzj |
8bee661d1e371865219495f1dab75fc535a5a71f | 397 | cpp | C++ | SumaParesImpares.cpp | Wjavier15/cpp | cf7d1f541828a616520aea95faaac0f3a27c7d44 | [
"MIT"
] | null | null | null | SumaParesImpares.cpp | Wjavier15/cpp | cf7d1f541828a616520aea95faaac0f3a27c7d44 | [
"MIT"
] | null | null | null | SumaParesImpares.cpp | Wjavier15/cpp | cf7d1f541828a616520aea95faaac0f3a27c7d44 | [
"MIT"
] | null | null | null | #include<iostream>
using namespace std;
int main()
{
int a=0,b=0,p=0,i=0;
cout<<"ingrese un numero: ";cin>>a;
cout<<"ingrese otro numero: ";cin>>b;
while(a<=b)
{
if(a%2==0)
{p=p+a; a=a+1;}
else
{i=i+a; a=a+1;}
}
cout<<"suma de pares: "<<p<<endl;
... | 19.85 | 42 | 0.463476 | Wjavier15 |
8bf2a1105b6570e6613afc0c936a4c7bc2cb0a5c | 8,302 | cpp | C++ | BarCode39.cpp | matthias-christen/CdCoverCreator | edb223c2cf33ab3fb72d84ce2a9bce8500408c2a | [
"MIT"
] | null | null | null | BarCode39.cpp | matthias-christen/CdCoverCreator | edb223c2cf33ab3fb72d84ce2a9bce8500408c2a | [
"MIT"
] | null | null | null | BarCode39.cpp | matthias-christen/CdCoverCreator | edb223c2cf33ab3fb72d84ce2a9bce8500408c2a | [
"MIT"
] | null | null | null |
/////////////////////////////////////////////////////
// Copyright 2003 by David Hillard //
// This information must remain in file //
// //
// Please provide credit for this code in your //
// finished application in the Help/About ... | 31.328302 | 122 | 0.39364 | matthias-christen |
8bf43e304ab090e242ed61cb7b22bfe2dbc944a3 | 9,450 | cpp | C++ | examples/testbed/framework/view_model.cpp | irlanrobson/bounce | 1cf7f40fff528bff8514a50e786ea58e86d53a54 | [
"Zlib"
] | 368 | 2016-12-18T21:19:18.000Z | 2022-03-10T19:13:04.000Z | examples/testbed/framework/view_model.cpp | irlanrobson/bounce | 1cf7f40fff528bff8514a50e786ea58e86d53a54 | [
"Zlib"
] | 104 | 2016-12-19T20:44:53.000Z | 2022-03-12T21:31:14.000Z | examples/testbed/framework/view_model.cpp | irlanrobson/bounce | 1cf7f40fff528bff8514a50e786ea58e86d53a54 | [
"Zlib"
] | 34 | 2017-02-12T23:50:56.000Z | 2021-12-17T04:33:41.000Z | /*
* Copyright (c) 2016-2019 Irlan Robson
*
* This software is provided 'as-is', without any express or implied
* warranty. In no event will the authors be held liable for any damages
* arising from the use of this software.
* Permission is granted to anyone to use this software for any purpose,
* including commercia... | 30.095541 | 86 | 0.750053 | irlanrobson |
8bf55ffa6d4fc0c15dda133810e874c97d06dc38 | 22,546 | cpp | C++ | lib/AFE-APIs/AFE-API-MQTT-Domoticz.cpp | lukasz-pekala/AFE-Firmware | 59e10dd2f9665ba816c22905e63eaa60ec8fda09 | [
"MIT"
] | null | null | null | lib/AFE-APIs/AFE-API-MQTT-Domoticz.cpp | lukasz-pekala/AFE-Firmware | 59e10dd2f9665ba816c22905e63eaa60ec8fda09 | [
"MIT"
] | null | null | null | lib/AFE-APIs/AFE-API-MQTT-Domoticz.cpp | lukasz-pekala/AFE-Firmware | 59e10dd2f9665ba816c22905e63eaa60ec8fda09 | [
"MIT"
] | null | null | null | /* AFE Firmware for smart home devices, Website: https://afe.smartnydom.pl/ */
#include "AFE-API-MQTT-Domoticz.h"
#ifdef AFE_CONFIG_API_DOMOTICZ_ENABLED
AFEAPIMQTTDomoticz::AFEAPIMQTTDomoticz() : AFEAPI(){};
#ifdef AFE_CONFIG_HARDWARE_LED
void AFEAPIMQTTDomoticz::begin(AFEDataAccess *Data, AFEDevice *Device,
... | 33.204713 | 81 | 0.659762 | lukasz-pekala |
8bf64bb65d47dd57613615571f2a57962186f992 | 2,938 | cpp | C++ | Array/Subarray or Subsequence Related Problems/Find all unique pairs of max & second max elements over all sub arrays.cpp | Edith-3000/Algorithmic-Implementations | 7ff8cd615fd453a346b4e851606d47c26f05a084 | [
"MIT"
] | 8 | 2021-02-13T17:07:27.000Z | 2021-08-20T08:20:40.000Z | Array/Subarray or Subsequence Related Problems/Find all unique pairs of max & second max elements over all sub arrays.cpp | Edith-3000/Algorithmic-Implementations | 7ff8cd615fd453a346b4e851606d47c26f05a084 | [
"MIT"
] | null | null | null | Array/Subarray or Subsequence Related Problems/Find all unique pairs of max & second max elements over all sub arrays.cpp | Edith-3000/Algorithmic-Implementations | 7ff8cd615fd453a346b4e851606d47c26f05a084 | [
"MIT"
] | 5 | 2021-02-17T18:12:20.000Z | 2021-10-10T17:49:34.000Z | // Ref: https://www.geeksforgeeks.org/find-all-unique-pairs-of-maximum-and-second-maximum-elements-over-all-sub-arrays-in-onlogn/
// Similar ques based on this: https://www.hackerearth.com/practice/data-structures/stacks/basics-of-stacks/practice-problems/algorithm/little-shino-and-pairs/
/*****************************... | 27.716981 | 160 | 0.561266 | Edith-3000 |
8bf8b20421748bf925d7480b4ed48c4d030305a0 | 728 | hpp | C++ | include/rcmp/detail/exception.hpp | Smertig/rcmp | 72cef849f9de81f483347ae045ac02b3401f9aa2 | [
"MIT"
] | 41 | 2020-10-03T20:44:52.000Z | 2022-03-09T07:07:16.000Z | include/rcmp/detail/exception.hpp | Smertig/rcmp | 72cef849f9de81f483347ae045ac02b3401f9aa2 | [
"MIT"
] | 1 | 2020-11-09T13:11:47.000Z | 2020-11-09T14:08:27.000Z | include/rcmp/detail/exception.hpp | Smertig/rcmp | 72cef849f9de81f483347ae045ac02b3401f9aa2 | [
"MIT"
] | 3 | 2020-10-04T15:10:11.000Z | 2021-01-18T05:16:07.000Z | #pragma once
#include <stdexcept>
#include <cstdio>
#include <cinttypes>
#include <string>
namespace rcmp {
class error : public std::exception {
std::string m_message;
public:
template <class... Args>
explicit error(const char* fmt, const Args& ...args) {
if constexpr (sizeof...(Args) > 0) {
... | 21.411765 | 71 | 0.563187 | Smertig |
8bf9390fb8c55c557f93e7620557e5806642a8a2 | 736 | cpp | C++ | Leetcode/String/consecutive-characters.cpp | susantabiswas/competitive_coding | 49163ecdc81b68f5c1bd90988cc0dfac34ad5a31 | [
"MIT"
] | 2 | 2021-04-29T14:44:17.000Z | 2021-10-01T17:33:22.000Z | Leetcode/String/consecutive-characters.cpp | adibyte95/competitive_coding | a6f084d71644606c21840875bad78d99f678a89d | [
"MIT"
] | null | null | null | Leetcode/String/consecutive-characters.cpp | adibyte95/competitive_coding | a6f084d71644606c21840875bad78d99f678a89d | [
"MIT"
] | 1 | 2021-10-01T17:33:29.000Z | 2021-10-01T17:33:29.000Z | /*
https://leetcode.com/problems/consecutive-characters/
Idea is to traverse the array and look at the
previous char each time to decide if are still part
of the window with only 1 unique char.
TC: O(N)
*/
class Solution {
public:
int maxPower(string s) {
int curr_len = s.empty() ... | 26.285714 | 73 | 0.504076 | susantabiswas |
8bffd41371efc8e0baead592cd97eaa3717c7f8c | 888 | hpp | C++ | include/lab4.hpp | shockkolate/gameai-gecode | 703849d96d1faf652c3931f1204dfa347216ea72 | [
"Unlicense"
] | null | null | null | include/lab4.hpp | shockkolate/gameai-gecode | 703849d96d1faf652c3931f1204dfa347216ea72 | [
"Unlicense"
] | null | null | null | include/lab4.hpp | shockkolate/gameai-gecode | 703849d96d1faf652c3931f1204dfa347216ea72 | [
"Unlicense"
] | null | null | null | #pragma once
#include <iostream>
#include <gecode/minimodel.hh>
namespace gameai {
namespace gecode {
class lab4 : public Gecode::Space {
private:
const int count = 2;
Gecode::IntVarArray xy;
public:
lab4() : xy(*this, count, -30, 30) {
Gecode::IntVar x(xy[0]), y(xy[1]);
Gecode::rel(*this, x * ... | 25.371429 | 66 | 0.503378 | shockkolate |
e300c3835723adc2ac8f96631835f79585fc5519 | 825 | cpp | C++ | libcaf_core/src/ipv4_endpoint.cpp | seewpx/actor-framework | 65ecf35317b81d7a211848d59e734f43483fe410 | [
"BSD-3-Clause"
] | 2,517 | 2015-01-04T22:19:43.000Z | 2022-03-31T12:20:48.000Z | libcaf_core/src/ipv4_endpoint.cpp | seewpx/actor-framework | 65ecf35317b81d7a211848d59e734f43483fe410 | [
"BSD-3-Clause"
] | 894 | 2015-01-07T14:21:21.000Z | 2022-03-30T06:37:18.000Z | libcaf_core/src/ipv4_endpoint.cpp | seewpx/actor-framework | 65ecf35317b81d7a211848d59e734f43483fe410 | [
"BSD-3-Clause"
] | 570 | 2015-01-21T18:59:33.000Z | 2022-03-31T19:00:02.000Z | // This file is part of CAF, the C++ Actor Framework. See the file LICENSE in
// the main distribution directory for license terms and copyright or visit
// https://github.com/actor-framework/actor-framework/blob/master/LICENSE.
#include "caf/ipv4_endpoint.hpp"
#include "caf/hash/fnv.hpp"
namespace caf {
ipv4_endpo... | 27.5 | 77 | 0.721212 | seewpx |
bdd8e30a5ef9045038801d08182d9596122c0479 | 1,364 | cpp | C++ | src/CodeGen/TypeLowering.cpp | artagnon/rhine | ca4ec684162838f4cb13d9d29ef9e4aedbc268dd | [
"MIT"
] | 234 | 2015-01-02T18:32:50.000Z | 2022-02-03T19:41:33.000Z | src/CodeGen/TypeLowering.cpp | artagnon/rhine | ca4ec684162838f4cb13d9d29ef9e4aedbc268dd | [
"MIT"
] | 7 | 2015-02-16T15:02:54.000Z | 2016-05-26T07:46:02.000Z | src/CodeGen/TypeLowering.cpp | artagnon/rhine | ca4ec684162838f4cb13d9d29ef9e4aedbc268dd | [
"MIT"
] | 13 | 2015-02-16T13:37:12.000Z | 2020-12-12T04:18:43.000Z | #include "rhine/IR/Context.hpp"
#include "rhine/IR/Type.hpp"
#include "rhine/IR/Value.hpp"
namespace rhine {
llvm::Type *UnType::generate(llvm::Module *M) {
assert(0 && "Cannot generate() without inferring type");
return nullptr;
}
llvm::Type *VoidType::generate(llvm::Module *M) {
return context()->Builder->get... | 26.230769 | 81 | 0.670088 | artagnon |
bddb4c0ea0036bc0feca9882d2bd11ed4a072ac5 | 2,073 | cpp | C++ | code_snippets/Chapter26/chapter.26.3.3.2.cpp | TingeOGinge/stroustrup_ppp | bb69533fff8a8f1890c8c866bae2030eaca1cf8b | [
"MIT"
] | 170 | 2015-05-02T18:08:38.000Z | 2018-07-31T11:35:17.000Z | code_snippets/Chapter26/chapter.26.3.3.2.cpp | TingeOGinge/stroustrup_ppp | bb69533fff8a8f1890c8c866bae2030eaca1cf8b | [
"MIT"
] | 7 | 2018-08-29T15:43:14.000Z | 2021-09-23T21:56:49.000Z | code_snippets/Chapter26/chapter.26.3.3.2.cpp | TingeOGinge/stroustrup_ppp | bb69533fff8a8f1890c8c866bae2030eaca1cf8b | [
"MIT"
] | 105 | 2015-05-28T11:52:19.000Z | 2018-07-17T14:11:25.000Z |
//
// This is example code from Chapter 26.3.3.2 "Resource management" of
// "Programming -- Principles and Practice Using C++" by Bjarne Stroustrup
//
#include <iostream>
#include <fstream>
#include <string>
#include <vector>
#include <stdio.h>
using namespace std;
//-----------------------------------------------... | 28.39726 | 80 | 0.421129 | TingeOGinge |
bddd26f2252a0cc0517610afee861fa518897760 | 1,088 | cpp | C++ | adapters/FCGI/src/FCGIContext.cpp | rfernandes/answer | aeb69e72308072c445a011a86ce4c6838af42a46 | [
"MIT"
] | 1 | 2015-06-26T02:31:43.000Z | 2015-06-26T02:31:43.000Z | adapters/FCGI/src/FCGIContext.cpp | rfernandes/answer | aeb69e72308072c445a011a86ce4c6838af42a46 | [
"MIT"
] | null | null | null | adapters/FCGI/src/FCGIContext.cpp | rfernandes/answer | aeb69e72308072c445a011a86ce4c6838af42a46 | [
"MIT"
] | null | null | null | #include "FCGIContext.hh"
#include <boost/algorithm/string.hpp>
#include <boost/property_tree/ptree.hpp>
#include <boost/property_tree/xml_parser.hpp>
namespace answer
{
namespace adapter
{
namespace fcgi
{
using namespace std;
using namespace Fastcgipp;
FCGIContext::FCGIContext(const Fastcgipp::Http::Environment ... | 20.923077 | 83 | 0.6875 | rfernandes |
bddd47821e698aceca13eb46b78c0ae80edd1dc8 | 374 | cpp | C++ | src/utils/htmlutils.cpp | lizhyumzi/vnote | 7c4d89b0272cf817902272e8733d56c2cddb797a | [
"MIT"
] | 1 | 2021-09-13T04:38:27.000Z | 2021-09-13T04:38:27.000Z | src/utils/htmlutils.cpp | micalstanley/vnote-1 | 606dcef16f882350cc2be2fd108625894d13143b | [
"MIT"
] | null | null | null | src/utils/htmlutils.cpp | micalstanley/vnote-1 | 606dcef16f882350cc2be2fd108625894d13143b | [
"MIT"
] | null | null | null | #include "htmlutils.h"
#include <QRegExp>
using namespace vnotex;
bool HtmlUtils::hasOnlyImgTag(const QString &p_html)
{
// Tricky.
QRegExp reg(QStringLiteral("<(?:p|span|div) "));
return !p_html.contains(reg);
}
QString HtmlUtils::escapeHtml(QString p_text)
{
p_text.replace(">", ">").replace("<"... | 19.684211 | 75 | 0.644385 | lizhyumzi |
bde3fd581d1b4b58ee5617ac76b3af7cadd45c69 | 1,046 | hpp | C++ | include/utility/trait/type/categories/is_pointer.hpp | SakuraLife/utility | b9bf26198917b6dc415520f74eb3eebf8aa8195e | [
"Unlicense"
] | 2 | 2017-12-10T10:59:48.000Z | 2017-12-13T04:11:14.000Z | include/utility/trait/type/categories/is_pointer.hpp | SakuraLife/utility | b9bf26198917b6dc415520f74eb3eebf8aa8195e | [
"Unlicense"
] | null | null | null | include/utility/trait/type/categories/is_pointer.hpp | SakuraLife/utility | b9bf26198917b6dc415520f74eb3eebf8aa8195e | [
"Unlicense"
] | null | null | null |
#ifndef __UTILITY_TRAIT_TYPE_CATEGORIES_IS_POINTER__
#define __UTILITY_TRAIT_TYPE_CATEGORIES_IS_POINTER__
#include<utility/trait/trait_helper.hpp>
#include<utility/trait/type/transform/remove_cv.hpp>
namespace utility
{
namespace trait
{
namespace type
{
namespace categories
{
// is_p... | 22.73913 | 60 | 0.630019 | SakuraLife |
bde64c400c3bcff2576a84864e561b5cfabdf431 | 566 | cpp | C++ | OOP/Exercises/Semester2/23.1/myClass.cpp | Solaflex/hf-ict | 2ebed689087407019b540df07612525e8b8d6821 | [
"MIT"
] | null | null | null | OOP/Exercises/Semester2/23.1/myClass.cpp | Solaflex/hf-ict | 2ebed689087407019b540df07612525e8b8d6821 | [
"MIT"
] | null | null | null | OOP/Exercises/Semester2/23.1/myClass.cpp | Solaflex/hf-ict | 2ebed689087407019b540df07612525e8b8d6821 | [
"MIT"
] | null | null | null | #include<iostream>
#include<string>
#include<myHeader.h>
using namespace std;
Point::Point(double x, double y)
{
this->_x = x;
this->_y = y;
}
Point::Point(const Point &P)
{
this->_x = P._x;
this->_y = P._y;
}
void Point::setPoint(double x, double y)
{
this->_x = x;
this->_y = y;
}
void Point::showPoint()
... | 12.304348 | 59 | 0.597173 | Solaflex |
bdeb7e69cc153950f4a428ed0437ddc6fa12c80c | 4,373 | cpp | C++ | Engine/Renderer/Renderer.cpp | MadLadSquad/UntitledVulkanGameEngine | e7d41ab7fe6e104ad4aed6363cb384032ff6c184 | [
"MIT"
] | 16 | 2020-12-13T09:38:04.000Z | 2022-03-20T14:33:55.000Z | Engine/Renderer/Renderer.cpp | MadLadSquad/UntitledVulkanGameEngine | e7d41ab7fe6e104ad4aed6363cb384032ff6c184 | [
"MIT"
] | 8 | 2020-12-25T14:49:41.000Z | 2021-08-25T01:21:53.000Z | Engine/Renderer/Renderer.cpp | MadLadSquad/UntitledVulkanGameEngine | e7d41ab7fe6e104ad4aed6363cb384032ff6c184 | [
"MIT"
] | 4 | 2021-04-05T13:19:53.000Z | 2022-03-18T10:56:35.000Z | // Renderer.cpp
// Last update 22/9/2021 by Madman10K
#include "Renderer.hpp"
#include <Engine/Core/Core/Global.hpp>
#include <GameFramework/GameplayClasses/Level/Level.hpp>
#include <Renderer/EditorUI/Editor.hpp>
UVK::Renderer::Renderer(UVK::Level* lvl, bool bUsesEditor)
{
startRenderer(lvl, bUsesEditor);
}
void... | 29.348993 | 136 | 0.62863 | MadLadSquad |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.