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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
5b5e84beb5bc6d0756f884bd840b80f5c3cd7034 | 1,397 | cpp | C++ | test/aoj/DSL2H.test.cpp | toyama1710/cpp_library | 867a6da52f51ed38ee295a451a1b102c9b000743 | [
"CC0-1.0"
] | 10 | 2019-08-11T11:03:47.000Z | 2022-02-08T07:01:31.000Z | test/aoj/DSL2H.test.cpp | toyama1710/cpp_library | 867a6da52f51ed38ee295a451a1b102c9b000743 | [
"CC0-1.0"
] | null | null | null | test/aoj/DSL2H.test.cpp | toyama1710/cpp_library | 867a6da52f51ed38ee295a451a1b102c9b000743 | [
"CC0-1.0"
] | 1 | 2020-03-02T06:40:06.000Z | 2020-03-02T06:40:06.000Z | #define PROBLEM "http://judge.u-aizu.ac.jp/onlinejudge/description.jsp?id=DSL_2_H"
#include <iostream>
#include <algorithm>
#include "../../segment_tree/lazy_segment_tree.hpp"
using namespace std;
using llong = long long;
struct Monoid {
using T = llong;
using value_type = T;
inline static T identity() {
... | 21.828125 | 82 | 0.543307 | toyama1710 |
5b6897663c5d81b7eb7ae86fb924a4c6eace0246 | 334 | cpp | C++ | Pi/user.cpp | FundCompXbee/XBeeMessenger | f3210077cb82e1597980b33bc6e2f8f9cf7bc042 | [
"MIT"
] | 1 | 2016-04-29T22:30:58.000Z | 2016-04-29T22:30:58.000Z | Pi/user.cpp | FundCompXbee/XBeeMessenger | f3210077cb82e1597980b33bc6e2f8f9cf7bc042 | [
"MIT"
] | null | null | null | Pi/user.cpp | FundCompXbee/XBeeMessenger | f3210077cb82e1597980b33bc6e2f8f9cf7bc042 | [
"MIT"
] | null | null | null | // Team: XBeeMessenger
// Course: Fundamentals of Computing II
// Assignment: Final Project
// Purpose: Interface for the representation of a user
#include "user.hpp"
User::User() {
}
User::User(std::string name) :
name(name)
{
}
std::string User::getName() {
return name;
}
void User::setName(std::string n) {
... | 14.521739 | 54 | 0.670659 | FundCompXbee |
5b68a81728f8f7823fd362576f58dc8e14f1882e | 659 | cpp | C++ | test/src/synapse.cpp | JasonThomasData/neural_net_cpp | 57ff61f97869e3aa643ffa8e674adb868722940c | [
"MIT"
] | 1 | 2017-11-06T04:39:40.000Z | 2017-11-06T04:39:40.000Z | test/src/synapse.cpp | JasonThomasData/neural_net_cpp | 57ff61f97869e3aa643ffa8e674adb868722940c | [
"MIT"
] | 4 | 2017-04-02T02:13:36.000Z | 2017-08-02T07:55:26.000Z | test/src/synapse.cpp | JasonThomasData/neural_net_cpp | 57ff61f97869e3aa643ffa8e674adb868722940c | [
"MIT"
] | 1 | 2017-04-02T02:03:57.000Z | 2017-04-02T02:03:57.000Z | #include "../../lib/catch.h"
#include "../../src/synapse/synapse.h"
#include "../../src/neuron/neuron.h"
TEST_CASE( "synapse - integration test - get from_neuron's weighted output_value #1 ") {
/* InputNeuron has a public data member called output_value. This is the first layer. */
Neuron from_neuron;
fro... | 29.954545 | 92 | 0.711684 | JasonThomasData |
5b6ac36f4401e4fbfd0437eddd90c74bdb5ae424 | 984 | cpp | C++ | cpp/0347.cpp | DevonMorris/l33tc0d3 | 0c6d138c098f9608f17a9a4ba0d030d4ae7eb16e | [
"Unlicense"
] | null | null | null | cpp/0347.cpp | DevonMorris/l33tc0d3 | 0c6d138c098f9608f17a9a4ba0d030d4ae7eb16e | [
"Unlicense"
] | null | null | null | cpp/0347.cpp | DevonMorris/l33tc0d3 | 0c6d138c098f9608f17a9a4ba0d030d4ae7eb16e | [
"Unlicense"
] | null | null | null | struct Node {
int num;
int freq;
};
bool operator>(Node const& node1, Node const& node2) {
return node1.freq > node2.freq;
}
class Solution {
public:
vector<int> topKFrequent(vector<int>& nums, int k) {
std::unordered_map<int, Node> nodes;
for (const auto& num : nums) {
if ... | 22.883721 | 76 | 0.455285 | DevonMorris |
5b6e344cd562620d7675c1e4153c323e6d82f0d0 | 949 | cpp | C++ | DSAA2/TestBinaryHeap.cpp | crosslife/DSAA | 03472db6e61582187192073b6ea4649b6195222b | [
"MIT"
] | 5 | 2017-03-30T23:23:08.000Z | 2020-11-08T00:34:46.000Z | DSAA2/TestBinaryHeap.cpp | crosslife/DSAA | 03472db6e61582187192073b6ea4649b6195222b | [
"MIT"
] | null | null | null | DSAA2/TestBinaryHeap.cpp | crosslife/DSAA | 03472db6e61582187192073b6ea4649b6195222b | [
"MIT"
] | 1 | 2019-04-12T13:17:31.000Z | 2019-04-12T13:17:31.000Z | #include <iostream.h>
#include "BinaryHeap.h"
#include "dsexceptions.h"
// Test program
int main( )
{
int numItems = 10000;
BinaryHeap<int> h( numItems );
int i = 37;
int x;
try
{
... | 28.757576 | 64 | 0.319283 | crosslife |
5b71cbeaa1860d1991ee79736cb4f60bee5fd6cc | 2,121 | cpp | C++ | src/helpers.cpp | Rob-Crane/CarND-MPC-Project | 4dc603ceeec50f66e075b144a835fc247700f883 | [
"MIT"
] | null | null | null | src/helpers.cpp | Rob-Crane/CarND-MPC-Project | 4dc603ceeec50f66e075b144a835fc247700f883 | [
"MIT"
] | null | null | null | src/helpers.cpp | Rob-Crane/CarND-MPC-Project | 4dc603ceeec50f66e075b144a835fc247700f883 | [
"MIT"
] | null | null | null | #include "helpers.h"
#include <cmath>
#include "Eigen-3.3/Eigen/QR"
using std::string;
using Eigen::VectorXd;
string helpers::hasData(string s) {
auto found_null = s.find("null");
auto b1 = s.find_first_of("[");
auto b2 = s.rfind("}]");
if (found_null != string::npos) {
return "";
} else if (b1 != str... | 27.192308 | 85 | 0.558699 | Rob-Crane |
ac8e5298a3201ff958e0137afc8d26c43eba4da5 | 5,579 | cpp | C++ | cpp/SubtabAuthors.cpp | azbe/readlit | 9988759b148de7c9974bfdcd2481c866d2a33aad | [
"Apache-2.0"
] | null | null | null | cpp/SubtabAuthors.cpp | azbe/readlit | 9988759b148de7c9974bfdcd2481c866d2a33aad | [
"Apache-2.0"
] | null | null | null | cpp/SubtabAuthors.cpp | azbe/readlit | 9988759b148de7c9974bfdcd2481c866d2a33aad | [
"Apache-2.0"
] | null | null | null | #include "src/SubtabAuthors.h"
#include <qdebug.h>
SubtabAuthors::SubtabAuthors(QWidget *parent, DataBase& database) : QWidget(parent)
{
this->database = &database;
QSizePolicy *genericPolicy;
authorList = new DataList(this);
authorBooks = new DataList(this);
authorData = new QWidget(this);
authorLayout =... | 36.464052 | 200 | 0.674673 | azbe |
ac98f6c07ddf579ee1d52b63b42d95c07ee0b93e | 389 | cpp | C++ | NESEmu/StandardController.cpp | StoveBacon/StoveNES | cf1d430abd3dc416fb95276536fdb9af459639be | [
"MIT"
] | 1 | 2018-09-16T08:11:57.000Z | 2018-09-16T08:11:57.000Z | NESEmu/StandardController.cpp | StoveBacon/StoveNES | cf1d430abd3dc416fb95276536fdb9af459639be | [
"MIT"
] | null | null | null | NESEmu/StandardController.cpp | StoveBacon/StoveNES | cf1d430abd3dc416fb95276536fdb9af459639be | [
"MIT"
] | null | null | null | #include "StandardController.h"
void StandardController::Initialize() {
this->memory = Memory::Instance();
this->wrapper = SDLWrapper::Instance();
}
void StandardController::PollInput() {
if (memory->controllerStrobe) {
memory->WriteControllerData(wrapper->GetKeys());
}
}
unsigned int StandardController::getNe... | 21.611111 | 50 | 0.719794 | StoveBacon |
ac9930a054d5fbf633f3bb3d6fa5ccee25e45744 | 2,248 | cpp | C++ | ospp/cursor.cpp | volcoma/ospp | 48de0844b66acf515ac17dc5e673435b33876b35 | [
"MIT"
] | 1 | 2019-05-26T19:50:29.000Z | 2019-05-26T19:50:29.000Z | ospp/cursor.cpp | volcoma/ospp | 48de0844b66acf515ac17dc5e673435b33876b35 | [
"MIT"
] | null | null | null | ospp/cursor.cpp | volcoma/ospp | 48de0844b66acf515ac17dc5e673435b33876b35 | [
"MIT"
] | null | null | null | #include "cursor.h"
#if defined(SDL_BACKEND)
#include "impl/sdl/cursor.hpp"
using impl_type = os::detail::sdl::cursor_impl;
#elif defined(MML_BACKEND)
#include "impl/mml/cursor.hpp"
using impl_type = os::detail::mml::cursor_impl;
#elif defined(GLFW_BACKEND)
#include "impl/glfw/cursor.hpp"
using impl_type = os::detail:... | 30.378378 | 75 | 0.6121 | volcoma |
ac9a707d6ce69909fc8cd65602044855479f9556 | 24,743 | cpp | C++ | altona/main/util/taskscheduler.cpp | wzman/werkkzeug4CE | af5ff27829ed4c501515ef5131165048e991c9b4 | [
"BSD-2-Clause"
] | 47 | 2015-03-22T05:58:47.000Z | 2022-03-29T19:13:37.000Z | altona/main/util/taskscheduler.cpp | whpskyeagle/werkkzeug4CE | af5ff27829ed4c501515ef5131165048e991c9b4 | [
"BSD-2-Clause"
] | null | null | null | altona/main/util/taskscheduler.cpp | whpskyeagle/werkkzeug4CE | af5ff27829ed4c501515ef5131165048e991c9b4 | [
"BSD-2-Clause"
] | 16 | 2015-12-31T08:13:18.000Z | 2021-03-09T02:07:30.000Z | /*+**************************************************************************/
/*** ***/
/*** This file is distributed under a BSD license. ***/
/*** See LICENSE.txt for details. ***/
/***... | 22.658425 | 154 | 0.512226 | wzman |
ac9e25785da08b51254740f5d93afd8b0fce2503 | 48 | cpp | C++ | Source/FlowEditor/Private/Graph/Widgets/SFlowGraphNode_Start.cpp | Mephiztopheles/FlowGraph | 5bd77c91e1a76362994fd47ae3d16e9a26665bb8 | [
"MIT"
] | 361 | 2021-03-24T17:06:30.000Z | 2022-03-31T23:41:23.000Z | Source/FlowEditor/Private/Graph/Widgets/SFlowGraphNode_Start.cpp | herr-edgy/FlowGraph | d92d946cbe0b3a7ccf4eb73bc13d5f464418104a | [
"MIT"
] | 83 | 2021-03-24T17:01:57.000Z | 2022-03-31T06:09:15.000Z | Source/FlowEditor/Private/Graph/Widgets/SFlowGraphNode_Start.cpp | herr-edgy/FlowGraph | d92d946cbe0b3a7ccf4eb73bc13d5f464418104a | [
"MIT"
] | 63 | 2021-03-24T20:16:32.000Z | 2022-03-30T11:07:07.000Z | #include "Graph/Widgets/SFlowGraphNode_Start.h"
| 24 | 47 | 0.833333 | Mephiztopheles |
aca0682589512c3cdcba145f2170f315ea0d59d0 | 708 | cpp | C++ | 0741-Calculate Maximum Value II/0741-Calculate Maximum Value II.cpp | nmdis1999/LintCode-1 | 316fa395c9a6de9bfac1d9c9cf58acb5ffb384a6 | [
"MIT"
] | 77 | 2017-12-30T13:33:37.000Z | 2022-01-16T23:47:08.000Z | 0701-0800/0741-Calculate Maximum Value II/0741-Calculate Maximum Value II.cpp | jxhangithub/LintCode-1 | a8aecc65c47a944e9debad1971a7bc6b8776e48b | [
"MIT"
] | 1 | 2018-05-14T14:15:40.000Z | 2018-05-14T14:15:40.000Z | 0701-0800/0741-Calculate Maximum Value II/0741-Calculate Maximum Value II.cpp | jxhangithub/LintCode-1 | a8aecc65c47a944e9debad1971a7bc6b8776e48b | [
"MIT"
] | 39 | 2017-12-07T14:36:25.000Z | 2022-03-10T23:05:37.000Z | class Solution {
public:
/**
* @param str: a string of numbers
* @return: the maximum value
*/
int maxValue(string &str) {
// write your code here
int n = str.size();
vector<vector<int>> dp(n, vector<int>(n));
for (int i = 0; i < n; ++i) {
dp[i][i] = st... | 26.222222 | 97 | 0.341808 | nmdis1999 |
aca17d84550ee7d92d9acdc142bcc73eef556b64 | 5,445 | hpp | C++ | modules/core/src/MetaObject/core/detail/allocator_policies/opencv.hpp | dtmoodie/MetaObject | 8238d143d578ff9c0c6506e7e627eca15e42369e | [
"MIT"
] | 2 | 2017-10-26T04:41:49.000Z | 2018-02-09T05:12:19.000Z | modules/core/src/MetaObject/core/detail/allocator_policies/opencv.hpp | dtmoodie/MetaObject | 8238d143d578ff9c0c6506e7e627eca15e42369e | [
"MIT"
] | null | null | null | modules/core/src/MetaObject/core/detail/allocator_policies/opencv.hpp | dtmoodie/MetaObject | 8238d143d578ff9c0c6506e7e627eca15e42369e | [
"MIT"
] | 3 | 2017-01-08T21:09:48.000Z | 2018-02-10T04:27:32.000Z | #ifndef MO_CORE_ALLOCATOR_POLICIES_OPENCV_HPP
#define MO_CORE_ALLOCATOR_POLICIES_OPENCV_HPP
#include <MetaObject/core/detail/Allocator.hpp>
#include <forward_list>
#include <opencv2/core.hpp>
namespace mo
{
struct Allocator;
struct CvAllocatorProxy : public cv::MatAllocator
{
inline CvAllocatorPr... | 28.657895 | 120 | 0.458953 | dtmoodie |
aca62246bd9aa9c5fb6463bc86d09ba61634f457 | 2,067 | cpp | C++ | TextComparison/src/main.cpp | aaminu/CplusplusExamples | 573edb061fa85db0d98839d28894b98b4d573316 | [
"MIT"
] | null | null | null | TextComparison/src/main.cpp | aaminu/CplusplusExamples | 573edb061fa85db0d98839d28894b98b4d573316 | [
"MIT"
] | null | null | null | TextComparison/src/main.cpp | aaminu/CplusplusExamples | 573edb061fa85db0d98839d28894b98b4d573316 | [
"MIT"
] | null | null | null | #include <iostream>
#include <iomanip>
#include <string>
#include <cmath>
#include <vector>
using namespace std;
int main()
{
int n {2};
//Vector for the alphabets in a sentence
vector<float> alphabets('z'-'a'+1, 0.0);
//vectors of vectors for the n number of text
vector<vector<float> > a... | 23.758621 | 95 | 0.491534 | aaminu |
acaa4764d1615fafeaf12bf8af14f0e4f6c8b5c0 | 694 | cpp | C++ | IOTest/FileTest.cpp | PremiumGraphicsCodes/CGLib | eecd73c5af1a9e0c044e7d675318dbb496aec6b5 | [
"MIT"
] | null | null | null | IOTest/FileTest.cpp | PremiumGraphicsCodes/CGLib | eecd73c5af1a9e0c044e7d675318dbb496aec6b5 | [
"MIT"
] | null | null | null | IOTest/FileTest.cpp | PremiumGraphicsCodes/CGLib | eecd73c5af1a9e0c044e7d675318dbb496aec6b5 | [
"MIT"
] | 1 | 2022-02-03T08:09:03.000Z | 2022-02-03T08:09:03.000Z | #include "gtest/gtest.h"
#include "../IO/File.h"
using namespace Crystal::IO;
TEST(FileTest, TestGetFileName)
{
File file("test.txt");
EXPECT_EQ("test", file.getFileName());
}
TEST(FileTest, TestGetExtension)
{
File file("test.txt");
EXPECT_EQ("txt", file.getExtension());
}
TEST(FileTest, Tes... | 19.277778 | 57 | 0.642651 | PremiumGraphicsCodes |
acaffffbeb1c5e7bb1fc3eea307e2b339d48c910 | 658 | cpp | C++ | class.cpp | kennethpat/CPP-Keywords-Testing | 8108c65c723ea139de165862c6911d8b2165b571 | [
"MIT"
] | null | null | null | class.cpp | kennethpat/CPP-Keywords-Testing | 8108c65c723ea139de165862c6911d8b2165b571 | [
"MIT"
] | null | null | null | class.cpp | kennethpat/CPP-Keywords-Testing | 8108c65c723ea139de165862c6911d8b2165b571 | [
"MIT"
] | null | null | null | #include <cstdio>
class Rect
{
private:
int length;
int width;
public:
Rect()
{
length = 0;
width = 0;
}
Rect(int l, int w)
{
length = l;
width = w;
}
int getLength()
{
return length;
}
int getWidth()
{
return widt... | 14 | 62 | 0.457447 | kennethpat |
acb268c20c6c1c14142797359d4e08a1e360c50f | 1,642 | hxx | C++ | xp_comm_proj/rd_dxf/src/dxfbody.hxx | avs/express-community | c699a68330d3b678b7e6bcea823e0891b874049c | [
"Apache-2.0"
] | 3 | 2020-08-03T08:52:20.000Z | 2021-04-10T11:55:49.000Z | xp_comm_proj/rd_dxf/src/dxfbody.hxx | avs/express-community | c699a68330d3b678b7e6bcea823e0891b874049c | [
"Apache-2.0"
] | null | null | null | xp_comm_proj/rd_dxf/src/dxfbody.hxx | avs/express-community | c699a68330d3b678b7e6bcea823e0891b874049c | [
"Apache-2.0"
] | 1 | 2021-06-08T18:16:45.000Z | 2021-06-08T18:16:45.000Z | /*****************************************************************************
******************************************************************************
This file contains the DXFBody class definition, which is the subclass of
DXFPrim that represents the DXF 3D body primitive.
**********************************... | 24.147059 | 78 | 0.409257 | avs |
acb4c8a0f2699d4459a1a0a4d8bc3f5204c94127 | 95 | cpp | C++ | old/AtCoder/ddcc2019-qual/A.cpp | not522/Competitive-Programming | be4a7d25caf5acbb70783b12899474a56c34dedb | [
"Unlicense"
] | 7 | 2018-04-14T14:55:51.000Z | 2022-01-31T10:49:49.000Z | old/AtCoder/ddcc2019-qual/A.cpp | not522/Competitive-Programming | be4a7d25caf5acbb70783b12899474a56c34dedb | [
"Unlicense"
] | 5 | 2018-04-14T14:28:49.000Z | 2019-05-11T02:22:10.000Z | old/AtCoder/ddcc2019-qual/A.cpp | not522/Competitive-Programming | be4a7d25caf5acbb70783b12899474a56c34dedb | [
"Unlicense"
] | null | null | null | #include "template.hpp"
int main() {
int n;
cin >> n;
cout << int(pow(4, n)) << endl;
}
| 11.875 | 33 | 0.515789 | not522 |
acb609a56c1113a67f01d22149385916b33060a0 | 129,360 | cpp | C++ | src/search.cpp | jdart1/arasan-chess | fd5a6e115ce971358c27034c23fe35e752abc68b | [
"MIT"
] | 90 | 2015-01-22T21:18:41.000Z | 2022-03-28T04:34:15.000Z | src/search.cpp | jdart1/arasan-chess | fd5a6e115ce971358c27034c23fe35e752abc68b | [
"MIT"
] | 34 | 2015-05-31T01:38:46.000Z | 2022-03-31T10:36:17.000Z | src/search.cpp | jdart1/arasan-chess | fd5a6e115ce971358c27034c23fe35e752abc68b | [
"MIT"
] | 35 | 2015-02-09T20:14:44.000Z | 2021-12-09T19:58:29.000Z | // Copyright 1987-2021 by Jon Dart. All Rights Reserved.
#include "search.h"
#include "globals.h"
#include "notation.h"
#include "movegen.h"
#include "hash.h"
#include "protocol.h"
#include "see.h"
#ifdef SYZYGY_TBS
#include "syzygy.h"
#endif
#include "legal.h"
#include "trace.h"
#include <algorithm>
#include <cmath... | 37.791411 | 216 | 0.54479 | jdart1 |
acbc0404baf9b15b4d1bccc82889250cdd147a5a | 2,175 | cpp | C++ | Projects/Skylicht/Collision/Source/Collision/CTriangleSelector.cpp | tsukoyumi/skylicht-engine | 3b88d9718e87e552152633ef60e3f889869b71de | [
"MIT"
] | 310 | 2019-11-25T04:14:11.000Z | 2022-03-31T23:39:19.000Z | Projects/Skylicht/Collision/Source/Collision/CTriangleSelector.cpp | tsukoyumi/skylicht-engine | 3b88d9718e87e552152633ef60e3f889869b71de | [
"MIT"
] | 79 | 2019-11-17T07:51:02.000Z | 2022-03-22T08:49:41.000Z | Projects/Skylicht/Collision/Source/Collision/CTriangleSelector.cpp | tsukoyumi/skylicht-engine | 3b88d9718e87e552152633ef60e3f889869b71de | [
"MIT"
] | 24 | 2020-05-10T09:37:55.000Z | 2022-03-05T13:19:31.000Z | /*
!@
MIT License
Copyright (c) 2021 Skylicht Technology CO., 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 use, copy, modify... | 30.633803 | 141 | 0.750805 | tsukoyumi |
acbc2fb73919bb9bfdb13bf38b5ce0b812080967 | 2,909 | hpp | C++ | libipc/hook.hpp | cali-library-isolation/Cali-library-isolation | 550893293f66b0428a7b66e1ab80d9f5b7a4bbf4 | [
"Apache-2.0"
] | 7 | 2021-03-26T06:52:31.000Z | 2022-03-11T09:42:57.000Z | libipc/hook.hpp | cali-library-isolation/Cali-library-isolation | 550893293f66b0428a7b66e1ab80d9f5b7a4bbf4 | [
"Apache-2.0"
] | null | null | null | libipc/hook.hpp | cali-library-isolation/Cali-library-isolation | 550893293f66b0428a7b66e1ab80d9f5b7a4bbf4 | [
"Apache-2.0"
] | 1 | 2022-02-25T06:57:17.000Z | 2022-02-25T06:57:17.000Z | // g++ -fpic -shared -O2 -std=c++11 prototype1.cpp -o prototype1.so -ldl && nm prototype1.so | grep -e 'puts' -e 'gets' -e 'printf'
#ifndef HOOK
#define HOOK
#include <dlfcn.h>
#include <stdarg.h>
#include <stdio.h>
extern "C"{
void * _dl_sym (void *handle, const char *name);
};
// A "simple" function pointer -... | 33.056818 | 131 | 0.458233 | cali-library-isolation |
acc76d497a7c2bbb55b7469f76958d53e275d2aa | 1,787 | cpp | C++ | XJ Contests/2020/11.14/B/std.cpp | jinzhengyu1212/Clovers | 0efbb0d87b5c035e548103409c67914a1f776752 | [
"MIT"
] | null | null | null | XJ Contests/2020/11.14/B/std.cpp | jinzhengyu1212/Clovers | 0efbb0d87b5c035e548103409c67914a1f776752 | [
"MIT"
] | null | null | null | XJ Contests/2020/11.14/B/std.cpp | jinzhengyu1212/Clovers | 0efbb0d87b5c035e548103409c67914a1f776752 | [
"MIT"
] | null | null | null | /*
the vast starry sky,
bright for those who chase the light.
*/
#include<bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef pair<int,int> pii;
#define mk make_pair
const int inf=(int)1e9;
const ll INF=(ll)5e18;
const int MOD=1e9+7;
int add(int x,int y){x+=y; return x>=MOD ? x-MOD : x;}
int sub(int x,int... | 28.365079 | 98 | 0.526581 | jinzhengyu1212 |
acc994dcc489f80ab3428cf8e90df80d49318700 | 426 | cpp | C++ | 05. STL Linear Containers/STL Linear Containers/05. Find The Sum Of All Numbers In Vector/05. FindTheSumOfAllNumbersInVector.cpp | lubomirv999/CPlusPlus-Fundamentals | e370546c819635132478943f658e26bbc4604c8f | [
"MIT"
] | 1 | 2019-01-11T11:50:42.000Z | 2019-01-11T11:50:42.000Z | 05. STL Linear Containers/STL Linear Containers/05. Find The Sum Of All Numbers In Vector/05. FindTheSumOfAllNumbersInVector.cpp | lubomirv999/CPlusPlus-Fundamentals | e370546c819635132478943f658e26bbc4604c8f | [
"MIT"
] | null | null | null | 05. STL Linear Containers/STL Linear Containers/05. Find The Sum Of All Numbers In Vector/05. FindTheSumOfAllNumbersInVector.cpp | lubomirv999/CPlusPlus-Fundamentals | e370546c819635132478943f658e26bbc4604c8f | [
"MIT"
] | null | null | null | #include "stdafx.h"
#include <iostream>
#include <iomanip>
#include <string>
#include <math.h>
#include <cmath>
#include <vector>
using namespace std;
int main()
{
vector<int> vec;
int sizeOfVector, sum = 0;
cin >> sizeOfVector;
for (int i = 0; i < sizeOfVector; i++)
{
int number;
cin >> number;
vec.pus... | 13.3125 | 39 | 0.612676 | lubomirv999 |
accb0e3058aea7679a57855f27db3c5b15add689 | 1,245 | cpp | C++ | time_perf_tests/matrix_mxn_tests.cpp | yangfengzzz/DigitalVox3 | c3277007d7cae90cf3f55930bf86119c93662493 | [
"MIT"
] | 28 | 2021-11-23T11:52:55.000Z | 2022-03-04T01:48:52.000Z | time_perf_tests/matrix_mxn_tests.cpp | yangfengzzz/DigitalVox3 | c3277007d7cae90cf3f55930bf86119c93662493 | [
"MIT"
] | null | null | null | time_perf_tests/matrix_mxn_tests.cpp | yangfengzzz/DigitalVox3 | c3277007d7cae90cf3f55930bf86119c93662493 | [
"MIT"
] | 3 | 2022-01-02T12:23:04.000Z | 2022-01-07T04:21:26.000Z | // Copyright (c) 2018 Doyub Kim
//
// I am making my contributions/submissions to this project solely in my
// personal capacity and am not conveying any rights to any intellectual
// property of any third parties.
#include "../vox.geometry/iteration_utils.h"
#include "../vox.geometry/matrix.h"
#include <benchmark/be... | 26.489362 | 109 | 0.640161 | yangfengzzz |
accdbabaa6bb623253831c3b0d2724882d61d5f2 | 520 | c++ | C++ | src/Keyword.c++ | Natara1939344/prerequisite-checker | 2dba6a4274abb94abc252a3cfcc5f5775ed8e5b2 | [
"MIT"
] | null | null | null | src/Keyword.c++ | Natara1939344/prerequisite-checker | 2dba6a4274abb94abc252a3cfcc5f5775ed8e5b2 | [
"MIT"
] | null | null | null | src/Keyword.c++ | Natara1939344/prerequisite-checker | 2dba6a4274abb94abc252a3cfcc5f5775ed8e5b2 | [
"MIT"
] | null | null | null | #include "Keyword.h++"
#include "Referred.h++"
#include "Serial.h++"
#include <functional>
#include <sstream>
std::function < void ( std::stringstream & , Serial & ) > wrap ( std::function < void ( std::stringstream & , Referred & ) > function ) {
return [ & ] ( std::stringstream &stringstream , Serial &serial )... | 30.588235 | 137 | 0.65 | Natara1939344 |
acd3c73230f13e3422a6def5ace28a678d8a1515 | 2,896 | cpp | C++ | teaching/programmation-parallele-distribuee-2019/tp1/goldbach.cpp | kayaogz/minimal-mistakes | 034e663f2dcc51bfdd2b3ffcc974977cf24b7850 | [
"MIT"
] | null | null | null | teaching/programmation-parallele-distribuee-2019/tp1/goldbach.cpp | kayaogz/minimal-mistakes | 034e663f2dcc51bfdd2b3ffcc974977cf24b7850 | [
"MIT"
] | null | null | null | teaching/programmation-parallele-distribuee-2019/tp1/goldbach.cpp | kayaogz/minimal-mistakes | 034e663f2dcc51bfdd2b3ffcc974977cf24b7850 | [
"MIT"
] | 5 | 2018-05-23T18:56:39.000Z | 2021-08-16T18:05:22.000Z | #include <iostream>
#include <chrono>
#include <cmath>
#include "omp.h"
#define N 8192
/**
* Calculer si x est un nombre premier ou pas
*/
bool estPremier(int x)
{
if (x < 2) { return false; }
for (int i = 2; i <= x / 2; i++) {
if (x % i == 0) { return false; }
}
return true;
}
/**
* Calculer le no... | 32.539326 | 94 | 0.627072 | kayaogz |
acda9471503b5befc0a68bab8f040d19a944239e | 3,682 | cc | C++ | evilsocket.cc | TheEvilRoot/libevilsocket | 11f339d535fb3382a62cff5b7dce782ee9cb0878 | [
"MIT"
] | 1 | 2021-09-26T18:17:40.000Z | 2021-09-26T18:17:40.000Z | evilsocket.cc | TheEvilRoot/libevilsocket | 11f339d535fb3382a62cff5b7dce782ee9cb0878 | [
"MIT"
] | 1 | 2021-09-26T17:33:40.000Z | 2021-09-26T17:33:40.000Z | evilsocket.cc | TheEvilRoot/libevilsocket | 11f339d535fb3382a62cff5b7dce782ee9cb0878 | [
"MIT"
] | null | null | null | #include "evilsocket.h"
#include <memory>
errno_t es_init() {
WSADATA wsaData{};
return WSAStartup(MAKEWORD(2, 2), &wsaData);
}
void es_deinit() {
WSACleanup();
}
errno_t es_last_error() {
return WSAGetLastError();
}
std::string es_error_message(errno_t error_code) {
char* s = NULL;
FormatMessageA(FORMAT_ME... | 25.748252 | 143 | 0.721347 | TheEvilRoot |
ace16b0da8a35909c678094855cce507652eecab | 3,212 | cpp | C++ | src/maxon_epos_ethercat_sdk/Diagnostics.cpp | zoenglinghou/maxon_epos_ethercat_sdk | 4127085e33dfdbe08061b30941eaac4f5a5e0686 | [
"BSD-3-Clause"
] | 5 | 2021-04-06T13:42:34.000Z | 2022-02-22T08:37:20.000Z | src/maxon_epos_ethercat_sdk/Diagnostics.cpp | zoenglinghou/maxon_epos_ethercat_sdk | 4127085e33dfdbe08061b30941eaac4f5a5e0686 | [
"BSD-3-Clause"
] | 2 | 2021-04-29T15:42:38.000Z | 2022-02-23T15:07:31.000Z | src/maxon_epos_ethercat_sdk/Diagnostics.cpp | zoenglinghou/maxon_epos_ethercat_sdk | 4127085e33dfdbe08061b30941eaac4f5a5e0686 | [
"BSD-3-Clause"
] | 5 | 2021-04-28T15:06:15.000Z | 2022-02-23T09:09:55.000Z | // clang-format off
/*
** Copyright 2021 Robotic Systems Lab - ETH Zurich:
** Linghao Zhang, Jonas Junger, Lennart Nachtigall
**
** Redistribution and use in source and binary forms, with or without
** modification, are permitted provided that the following conditions are met:
**
** 1. Redistributions of source code mu... | 37.788235 | 83 | 0.733499 | zoenglinghou |
aceb7e4fcf452bc93b27e7223df11f0d8b79b467 | 710 | cpp | C++ | tests/TestSocketServer.cpp | simonwillis/SIP-Processing | be0fb2e80a04d25a34bf393f038bcf54d3963ae7 | [
"MIT"
] | null | null | null | tests/TestSocketServer.cpp | simonwillis/SIP-Processing | be0fb2e80a04d25a34bf393f038bcf54d3963ae7 | [
"MIT"
] | null | null | null | tests/TestSocketServer.cpp | simonwillis/SIP-Processing | be0fb2e80a04d25a34bf393f038bcf54d3963ae7 | [
"MIT"
] | 1 | 2021-11-02T03:23:19.000Z | 2021-11-02T03:23:19.000Z | //
// Created by Simon Willis on 07/07/2016.
//
#include <iostream>
#include "../src/components/utilities/SocketServer.h"
using namespace std;
void newConnectionHandler(uint32_t connId, const std::string remoteAddress, const int port) {
fprintf(stderr, "New Connection [connId=%u] [address=%s] [port=%d]\n", conn... | 22.903226 | 112 | 0.692958 | simonwillis |
acef57e3a5a122b86e2cff479078e98401c2a59d | 19,563 | cpp | C++ | MirrorFrame.cpp | buelowp/magicmirror | 59a596532b191c6c567f0fdd9f740009bade821c | [
"MIT"
] | null | null | null | MirrorFrame.cpp | buelowp/magicmirror | 59a596532b191c6c567f0fdd9f740009bade821c | [
"MIT"
] | null | null | null | MirrorFrame.cpp | buelowp/magicmirror | 59a596532b191c6c567f0fdd9f740009bade821c | [
"MIT"
] | 3 | 2019-11-17T02:10:03.000Z | 2020-06-25T02:48:06.000Z | #include "MirrorFrame.h"
MirrorFrame::MirrorFrame(QFrame *parent) : QFrame(parent)
{
m_calendarTimer = new QTimer();
m_forecastTimer = new QTimer();
m_currentWeatherTimer = new QTimer();
m_clockTimer = new QTimer();
m_localTempTimer = new QTimer();
m_monitorTimer = new QTimer();
m_monitorState = new QStateMach... | 30.377329 | 130 | 0.649543 | buelowp |
acf3614a943b03221b49e9fb823f4f26e2b0dd61 | 250 | cpp | C++ | src/relay server/dllmain.cpp | liulilittle/PaperAirplane | 3408f4d041b7218a0d5f5a53a571262a0b213fd6 | [
"BSD-2-Clause"
] | 149 | 2018-01-12T05:09:16.000Z | 2022-03-21T11:20:13.000Z | src/relay server/dllmain.cpp | jianbridge/PaperAirplane | 3408f4d041b7218a0d5f5a53a571262a0b213fd6 | [
"BSD-2-Clause"
] | 16 | 2018-03-06T10:33:15.000Z | 2020-07-03T11:17:18.000Z | src/relay server/dllmain.cpp | jianbridge/PaperAirplane | 3408f4d041b7218a0d5f5a53a571262a0b213fd6 | [
"BSD-2-Clause"
] | 67 | 2017-12-07T08:40:13.000Z | 2022-03-21T11:20:15.000Z | #include "Environment.h"
#include "Proxifier.h"
BOOL WINAPI DllMain(HINSTANCE hmodule,
DWORD reason,
LPVOID lpreserved)
{
switch (reason)
{
case DLL_PROCESS_ATTACH:
break;
case DLL_PROCESS_DETACH:
break;
};
return TRUE;
} | 15.625 | 39 | 0.688 | liulilittle |
acf366781500b798dce2f2010f3e8e97cb70f693 | 2,283 | cpp | C++ | ensembles/CustomEnsemble.cpp | Qiangli-Zhao/LibEDM | 68c532a10cb8c786f377a832adeef2069fc8d4e1 | [
"BSD-3-Clause"
] | 8 | 2016-01-03T09:19:59.000Z | 2021-04-04T05:34:14.000Z | ensembles/CustomEnsemble.cpp | Qiangli-Zhao/LibEDM | 68c532a10cb8c786f377a832adeef2069fc8d4e1 | [
"BSD-3-Clause"
] | null | null | null | ensembles/CustomEnsemble.cpp | Qiangli-Zhao/LibEDM | 68c532a10cb8c786f377a832adeef2069fc8d4e1 | [
"BSD-3-Clause"
] | 1 | 2019-03-29T11:02:19.000Z | 2019-03-29T11:02:19.000Z | /*
Copyright (c) 2014, Qiangli Zhao and Yanhuang Jiang
All rights reserved.
Redistribution and use in source and binary forms, with or without modification,
are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright notice, this
list of con... | 34.590909 | 81 | 0.770915 | Qiangli-Zhao |
acf58e364a00befbcb0ab23cd157b356b3604013 | 260 | cpp | C++ | Game/Source/Enemy.cpp | BooStarGamer/Makers-Vs-Players-v2 | db7f32e978f682e55f9d2542ac5879f7137e40ff | [
"MIT"
] | null | null | null | Game/Source/Enemy.cpp | BooStarGamer/Makers-Vs-Players-v2 | db7f32e978f682e55f9d2542ac5879f7137e40ff | [
"MIT"
] | null | null | null | Game/Source/Enemy.cpp | BooStarGamer/Makers-Vs-Players-v2 | db7f32e978f682e55f9d2542ac5879f7137e40ff | [
"MIT"
] | null | null | null | #define _CRT_SECURE_NO_WARNINGS
#include "App.h"
#include "Scene.h"
#include "Enemy.h"
#include "Log.h"
#define DEFAULT_PATH_LENGTH 50
Enemy::Enemy() : Entity(EntityType::ENEMY)
{
}
Enemy::~Enemy()
{
}
void Enemy::Refill()
{
health = maxHealth;
}
| 10 | 42 | 0.673077 | BooStarGamer |
acf5f49838c34204d72097ad24cc025648fd9446 | 292 | cpp | C++ | codes/oneAPI/oneTBB/info/info01/main.cpp | eric2003/ModernCMake | 48fe5ed2f25481a7c93f86af38a692f4563afcaa | [
"MIT"
] | 3 | 2022-01-25T07:33:43.000Z | 2022-03-30T10:25:09.000Z | codes/oneAPI/oneTBB/info/info01/main.cpp | eric2003/ModernCMake | 48fe5ed2f25481a7c93f86af38a692f4563afcaa | [
"MIT"
] | null | null | null | codes/oneAPI/oneTBB/info/info01/main.cpp | eric2003/ModernCMake | 48fe5ed2f25481a7c93f86af38a692f4563afcaa | [
"MIT"
] | 2 | 2022-01-17T13:39:12.000Z | 2022-03-30T10:25:12.000Z | #include <iostream>
#include <tbb/version.h>
int main( int argc, char **argv )
{
std::cout << "Hello from oneTBB "
<< TBB_VERSION_MAJOR << "."
<< TBB_VERSION_MINOR << "."
<< TBB_VERSION_PATCH
<< "!" << std::endl;
return 0;
}
| 19.466667 | 41 | 0.486301 | eric2003 |
acfb1c01a7c02ec56c4e8dc45c245057bf0a0915 | 1,451 | hpp | C++ | breath/text/to_string.hpp | erez-o/breath | adf197b4e959beffce11e090c5e806d2ff4df38a | [
"BSD-3-Clause"
] | null | null | null | breath/text/to_string.hpp | erez-o/breath | adf197b4e959beffce11e090c5e806d2ff4df38a | [
"BSD-3-Clause"
] | null | null | null | breath/text/to_string.hpp | erez-o/breath | adf197b4e959beffce11e090c5e806d2ff4df38a | [
"BSD-3-Clause"
] | null | null | null | // ===========================================================================
// Copyright 2011 Gennaro Prota
//
// Licensed under the 3-Clause BSD License.
// (See accompanying file 3_CLAUSE_BSD_LICENSE.txt or
// <https://opensource.org/licenses/BSD-3-C... | 30.87234 | 78 | 0.533425 | erez-o |
acfb8efe6e34b52964a30750cb609421b0dbf219 | 3,827 | cc | C++ | paracortex.cc | jdb19937/tewel | e2dc25c0998b2bf2763cd68ff66691e0c9f86928 | [
"MIT"
] | null | null | null | paracortex.cc | jdb19937/tewel | e2dc25c0998b2bf2763cd68ff66691e0c9f86928 | [
"MIT"
] | null | null | null | paracortex.cc | jdb19937/tewel | e2dc25c0998b2bf2763cd68ff66691e0c9f86928 | [
"MIT"
] | null | null | null | #define __MAKEMORE_PARACORTEX_CC__ 1
#include <stdio.h>
#include <stdlib.h>
#include <assert.h>
#include <math.h>
#include <vector>
#include "cortex.hh"
#include "youtil.hh"
#include "paracortex.hh"
#include "colonel.hh"
namespace makemore {
Paracortex::Paracortex() {
prepared = false;
rmul = 1.0;
_kinp = NU... | 16.216102 | 81 | 0.535668 | jdb19937 |
acfd090c68c7378d0ad35614a04afbf2a3316ed4 | 5,548 | cc | C++ | agents/http_app.cc | inf-comparchs/lancet-tool | ac738305b9cb4843268fd3fd6360ae59dc9917d7 | [
"MIT"
] | 19 | 2019-07-12T17:40:36.000Z | 2022-03-22T01:42:42.000Z | agents/http_app.cc | inf-comparchs/lancet-tool | ac738305b9cb4843268fd3fd6360ae59dc9917d7 | [
"MIT"
] | 11 | 2019-07-26T19:44:49.000Z | 2020-03-12T08:44:57.000Z | agents/http_app.cc | inf-comparchs/lancet-tool | ac738305b9cb4843268fd3fd6360ae59dc9917d7 | [
"MIT"
] | 9 | 2019-07-12T18:20:12.000Z | 2022-03-24T07:30:12.000Z | /*
* MIT License
*
* Copyright (c) 2019-2021 Ecole Polytechnique Federale Lausanne (EPFL)
*
* 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 limit... | 34.246914 | 139 | 0.676099 | inf-comparchs |
acfd806f37dbc1711c141f9454751059eaa4ae08 | 1,843 | cpp | C++ | C++/maximum-score-words-formed-by-letters.cpp | jaiskid/LeetCode-Solutions | a8075fd69087c5463f02d74e6cea2488fdd4efd1 | [
"MIT"
] | 3,269 | 2018-10-12T01:29:40.000Z | 2022-03-31T17:58:41.000Z | C++/maximum-score-words-formed-by-letters.cpp | jaiskid/LeetCode-Solutions | a8075fd69087c5463f02d74e6cea2488fdd4efd1 | [
"MIT"
] | 53 | 2018-12-16T22:54:20.000Z | 2022-02-25T08:31:20.000Z | C++/maximum-score-words-formed-by-letters.cpp | jaiskid/LeetCode-Solutions | a8075fd69087c5463f02d74e6cea2488fdd4efd1 | [
"MIT"
] | 1,236 | 2018-10-12T02:51:40.000Z | 2022-03-30T13:30:37.000Z | // Time: O(n * 2^n)
// Space: O(n)
class Solution {
public:
int maxScoreWords(vector<string>& words, vector<char>& letters, vector<int>& score) {
unordered_map<char, int> letter_count;
vector<unordered_map<char, int>> word_counts(words.size());
vector<int> word_scores(words.size());
... | 36.137255 | 89 | 0.473684 | jaiskid |
4a047ac3f4e7640d78595ac4749f38329043fb44 | 5,830 | cpp | C++ | TabulaRasa/Source/Engine/Core/Memory.cpp | Halliom/Tabula-Rasa | 2c1f1e0373851786cdbdb02c6792f71392ce98f9 | [
"MIT"
] | null | null | null | TabulaRasa/Source/Engine/Core/Memory.cpp | Halliom/Tabula-Rasa | 2c1f1e0373851786cdbdb02c6792f71392ce98f9 | [
"MIT"
] | null | null | null | TabulaRasa/Source/Engine/Core/Memory.cpp | Halliom/Tabula-Rasa | 2c1f1e0373851786cdbdb02c6792f71392ce98f9 | [
"MIT"
] | null | null | null | #include "Memory.h"
#include "../Chunk.h"
LinearAllocator::LinearAllocator(unsigned char* StartAddress, size_t MaxByteSize) :
m_pStartAddress(StartAddress),
m_MaxByteSize(MaxByteSize),
m_pCurrentPos(StartAddress)
{
#ifdef _DEBUG
m_UsedMemory = 0;
m_NumAllocations = 0;
#endif
}
LinearAllocator::~LinearAllocator(... | 24.70339 | 134 | 0.719211 | Halliom |
4a09bf495853ead5b105892318ba517777467c34 | 2,403 | cpp | C++ | obugre/src/engine_logger.cpp | javierdelapuente/tfm_ode_bullet | cc0d40b9a91e43b5045c10903b5244e680d909ef | [
"Zlib"
] | 1 | 2021-04-08T11:22:13.000Z | 2021-04-08T11:22:13.000Z | obugre/src/engine_logger.cpp | javierdelapuente/tfm_ode_bullet | cc0d40b9a91e43b5045c10903b5244e680d909ef | [
"Zlib"
] | null | null | null | obugre/src/engine_logger.cpp | javierdelapuente/tfm_ode_bullet | cc0d40b9a91e43b5045c10903b5244e680d909ef | [
"Zlib"
] | null | null | null | #include <chrono>
#include "engine.hpp"
#include "oblog.hpp"
#include "ode_engine.hpp"
using namespace OB;
void EngineLogger::engine_pre_step(Engine &engine)
{
Vector linMomentum = engine.get_linear_momentum();
Vector angMomentum = engine.get_angular_momentum();
Real kinEnergy = engine.get_kinetic_energy... | 40.05 | 95 | 0.475655 | javierdelapuente |
4a1045d5bd1a097b368c127947f51ee1f5552b7d | 24,047 | cpp | C++ | src/moveGenerator.cpp | jakhac/chai | bc04ff40138633c6f76b71ff899203651c6bcc4f | [
"MIT"
] | 1 | 2022-03-31T13:41:49.000Z | 2022-03-31T13:41:49.000Z | src/moveGenerator.cpp | jakhac/chai | bc04ff40138633c6f76b71ff899203651c6bcc4f | [
"MIT"
] | 1 | 2021-11-30T17:03:31.000Z | 2021-11-30T20:02:21.000Z | src/moveGenerator.cpp | jakhac/chai | bc04ff40138633c6f76b71ff899203651c6bcc4f | [
"MIT"
] | null | null | null | #include "moveGenerator.h"
using namespace chai;
void generateMoves(board_t* b, moveList_t* moveList, bool inCheck) {
moveList->cnt = 0;
moveList->attackedSquares = attackerSet(b, b->stm ^ 1);
if (inCheck) {
generateCheckEvasions(b, moveList);
return;
}
Assert(!isCheck(b, b->stm));
if (b->stm == WHITE) {... | 31.311198 | 111 | 0.681956 | jakhac |
4a1493ab44f249b39780791f6cfb6c393df0aaf7 | 2,572 | cpp | C++ | libsrc/gdbm/LmDatabaseKey.cpp | christywear/UlServer | 44d090ab266f7de0096b8f55c0906f21522243ff | [
"BSD-3-Clause"
] | 5 | 2018-08-17T17:16:50.000Z | 2019-07-01T12:54:01.000Z | libsrc/gdbm/LmDatabaseKey.cpp | christywear/UlServer | 44d090ab266f7de0096b8f55c0906f21522243ff | [
"BSD-3-Clause"
] | 2 | 2019-01-06T15:32:09.000Z | 2019-01-18T06:03:26.000Z | libsrc/gdbm/LmDatabaseKey.cpp | christywear/UlServer | 44d090ab266f7de0096b8f55c0906f21522243ff | [
"BSD-3-Clause"
] | 4 | 2018-08-16T15:41:15.000Z | 2020-06-22T06:09:10.000Z | // LmDatabaseKey.cpp -*- C++ -*-
// $Id: LmDatabaseKey.cpp,v 1.7 1997-08-20 01:34:36-07 jason Exp $
// Copyright 1996-1997 Lyra LLC, All rights reserved.
//
// implementation
#ifdef __GNUC__
#pragma implementation "LmDatabaseKey.h"
#endif
#include <stdio.h>
#include <string.h>
#include "LmDatabaseKey.h"
#include "L... | 21.433333 | 96 | 0.632193 | christywear |
4a14b11d7697cb3e3e8fccba2e2adbcfd0e5a7ce | 6,682 | cc | C++ | course/test/src/Doodlebug_TEST.cc | LucasJSch/terrarium_simulator | 93dbd4a340d38ec54de6dc4876feceeb1f4a0094 | [
"Apache-2.0"
] | null | null | null | course/test/src/Doodlebug_TEST.cc | LucasJSch/terrarium_simulator | 93dbd4a340d38ec54de6dc4876feceeb1f4a0094 | [
"Apache-2.0"
] | 1 | 2020-11-12T15:40:37.000Z | 2020-11-12T15:40:37.000Z | course/test/src/Doodlebug_TEST.cc | LucasJSch/terrarium_simulator | 93dbd4a340d38ec54de6dc4876feceeb1f4a0094 | [
"Apache-2.0"
] | null | null | null | #include <cmath>
#include <sstream>
#include <string>
#include <memory>
#include "gtest/gtest.h"
#include "doodlebug.h"
#include "ant.h"
#include "cell.h"
namespace ekumen {
namespace simulation {
namespace test {
namespace {
using cell_ptr = std::shared_ptr<Cell>;
using insect_ptr = std::shared_ptr<Insect>;
GTEST... | 29.052174 | 86 | 0.701586 | LucasJSch |
4a178c30580e3b28c30c873a15c6cb2086352f16 | 5,812 | cc | C++ | libs/mve/mesh_io_off.cc | lemony-fresh/mve | d90cc2c813fef026f7732c5a26f6c15973a36042 | [
"BSD-3-Clause"
] | 1 | 2019-05-30T13:19:21.000Z | 2019-05-30T13:19:21.000Z | libs/mve/mesh_io_off.cc | MasterShockwave/mve | 7a96751db098bb6f5c0b4075921b0e8e43a69bb6 | [
"BSD-3-Clause"
] | null | null | null | libs/mve/mesh_io_off.cc | MasterShockwave/mve | 7a96751db098bb6f5c0b4075921b0e8e43a69bb6 | [
"BSD-3-Clause"
] | null | null | null | /*
* Copyright (C) 2015, Simon Fuhrmann
* TU Darmstadt - Graphics, Capture and Massively Parallel Computing
* All rights reserved.
*
* This software may be modified and distributed under the terms
* of the BSD 3-Clause license. See the LICENSE.txt file for details.
*/
#include <fstream>
#include <iostream>
#inc... | 28.35122 | 74 | 0.50585 | lemony-fresh |
4a1dbcc048e95ac99993c2f70ea33614bd23ad88 | 9,315 | cpp | C++ | main.cpp | chbaker0/noise | e5bb230c428eba9f2be7e52f395cb99b6cce94d4 | [
"MIT"
] | null | null | null | main.cpp | chbaker0/noise | e5bb230c428eba9f2be7e52f395cb99b6cce94d4 | [
"MIT"
] | null | null | null | main.cpp | chbaker0/noise | e5bb230c428eba9f2be7e52f395cb99b6cce94d4 | [
"MIT"
] | null | null | null | #include <iostream>
#include <fstream>
#include <vector>
#include <algorithm>
#include <random>
#include <utility>
#include <cstdio>
#include <cmath>
#include <glm/glm.hpp>
#include <glm/gtx/io.hpp>
#include <png.h>
class RandomVectorGenerator
{
private:
std::mt19937_64 generator;
std::normal_distribution<>... | 30.34202 | 147 | 0.50832 | chbaker0 |
4a1fb75e374c5b4554627edfd88bd995a71fcd8b | 5,118 | cpp | C++ | src/Snake.cpp | benpeart/kaleidoscope | 416f9bb5dac847682268cd2fcceae0618cd174d5 | [
"MIT"
] | 1 | 2021-05-08T18:40:26.000Z | 2021-05-08T18:40:26.000Z | src/Snake.cpp | benpeart/kaleidoscope | 416f9bb5dac847682268cd2fcceae0618cd174d5 | [
"MIT"
] | null | null | null | src/Snake.cpp | benpeart/kaleidoscope | 416f9bb5dac847682268cd2fcceae0618cd174d5 | [
"MIT"
] | 1 | 2021-04-09T19:45:43.000Z | 2021-04-09T19:45:43.000Z | /*
Yet Another Snake Game Library.
Copyright (C) 2014 Emanuel Knöpfel
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
... | 20.554217 | 87 | 0.581086 | benpeart |
4a2893bda65c0e881f9cfbca3679f907203464be | 1,507 | cpp | C++ | xyz/codes/random_code2/zkw_费用流.cpp | ecnerwala/icpc-book | 507f357388b9c7c6222b9779e69742643260c8f4 | [
"MIT"
] | 152 | 2019-04-09T18:26:41.000Z | 2022-03-20T23:19:41.000Z | xyz/codes/random_code2/zkw_费用流.cpp | ecnerwala/icpc-book | 507f357388b9c7c6222b9779e69742643260c8f4 | [
"MIT"
] | 1 | 2020-12-29T03:02:22.000Z | 2020-12-29T03:02:22.000Z | xyz/codes/random_code2/zkw_费用流.cpp | ecnerwala/icpc-book | 507f357388b9c7c6222b9779e69742643260c8f4 | [
"MIT"
] | 36 | 2019-11-28T09:27:01.000Z | 2022-03-10T18:22:13.000Z | #include<cstdio>
#include<memory.h>
#include<algorithm>
using namespace std;
#define INF 1000000000
int n,i,s,t,x,ans,len,f[10000],fei[10000],next[10000],go[10000],till[1100],ff[1100],mi[1100];
bool o[1100],v[1100],can[1100];
void add(int a,int b,int c,int d)
{
next[++len]=till[a];
till[a]=len;
go[len... | 19.571429 | 94 | 0.516257 | ecnerwala |
4a3327e0e605c90fd636155e64c4ded4fa721ef4 | 1,280 | cpp | C++ | aws-cpp-sdk-states/source/model/StateEnteredEventDetails.cpp | neil-b/aws-sdk-cpp | 1602b75abbca880b770c12788f6d2bac0c87176a | [
"Apache-2.0"
] | null | null | null | aws-cpp-sdk-states/source/model/StateEnteredEventDetails.cpp | neil-b/aws-sdk-cpp | 1602b75abbca880b770c12788f6d2bac0c87176a | [
"Apache-2.0"
] | null | null | null | aws-cpp-sdk-states/source/model/StateEnteredEventDetails.cpp | neil-b/aws-sdk-cpp | 1602b75abbca880b770c12788f6d2bac0c87176a | [
"Apache-2.0"
] | 1 | 2020-11-04T03:18:11.000Z | 2020-11-04T03:18:11.000Z | /**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/states/model/StateEnteredEventDetails.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <utility>
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
namespace Aws... | 17.066667 | 82 | 0.717188 | neil-b |
6653c10d5e323bb5cb84d4510c989656b1362f0e | 35,127 | cpp | C++ | SDK/PUBG_MediaAssets_functions.cpp | realrespecter/PUBG-FULL-SDK | 5e2b0f103c74c95d2329c4c9dfbfab48aa0da737 | [
"MIT"
] | 7 | 2019-03-06T11:04:52.000Z | 2019-07-10T20:00:51.000Z | SDK/PUBG_MediaAssets_functions.cpp | realrespecter/PUBG-FULL-SDK | 5e2b0f103c74c95d2329c4c9dfbfab48aa0da737 | [
"MIT"
] | null | null | null | SDK/PUBG_MediaAssets_functions.cpp | realrespecter/PUBG-FULL-SDK | 5e2b0f103c74c95d2329c4c9dfbfab48aa0da737 | [
"MIT"
] | 10 | 2019-03-06T11:53:46.000Z | 2021-02-18T14:01:11.000Z | // PUBG FULL SDK - Generated By Respecter (5.3.4.11 [06/03/2019]) SDK
#ifdef _MSC_VER
#pragma pack(push, 0x8)
#endif
#include "PUBG_MediaAssets_parameters.hpp"
namespace SDK
{
//---------------------------------------------------------------------------
//Functions
//------------------------------------------------... | 27 | 125 | 0.689584 | realrespecter |
665ff7e3eba09f100d20dcc95bb0abf2f953b7c1 | 346 | cpp | C++ | MassiveCompute/Block.cpp | sssr33/Raytracer | b06dff8f81f7c0f5ead4dee0be4186a7bfe5cb44 | [
"MIT"
] | 2 | 2020-07-02T16:21:56.000Z | 2020-11-04T19:39:51.000Z | MassiveCompute/Block.cpp | sssr33/Raytracer | b06dff8f81f7c0f5ead4dee0be4186a7bfe5cb44 | [
"MIT"
] | null | null | null | MassiveCompute/Block.cpp | sssr33/Raytracer | b06dff8f81f7c0f5ead4dee0be4186a7bfe5cb44 | [
"MIT"
] | null | null | null | #include "Block.h"
namespace MassiveCompute
{
bool Block::operator==(const Block& other) const
{
bool same = this->left == other.left
&& this->top == other.top
&& this->right == other.right
&& this->bottom == other.bottom
&& this->imageWidth == other.imageWidth
&& this->imageHeight == other.imageHei... | 20.352941 | 49 | 0.644509 | sssr33 |
666214b6cc9d6ec47374097be480d3add3e6e087 | 5,882 | cpp | C++ | components/scream/src/share/io/tests/io_se_grid.cpp | ambrad/scream | 52da60f65e870b8a3994bdbf4a6022fdcac7cab5 | [
"BSD-3-Clause"
] | null | null | null | components/scream/src/share/io/tests/io_se_grid.cpp | ambrad/scream | 52da60f65e870b8a3994bdbf4a6022fdcac7cab5 | [
"BSD-3-Clause"
] | null | null | null | components/scream/src/share/io/tests/io_se_grid.cpp | ambrad/scream | 52da60f65e870b8a3994bdbf4a6022fdcac7cab5 | [
"BSD-3-Clause"
] | null | null | null | #include <catch2/catch.hpp>
#include "share/io/scream_output_manager.hpp"
#include "share/io/scorpio_input.hpp"
#include "share/io/scream_scorpio_interface.hpp"
#include "share/grid/mesh_free_grids_manager.hpp"
#include "share/field/field_identifier.hpp"
#include "share/field/field.hpp"
#include "share/field/field_m... | 32.677778 | 113 | 0.66202 | ambrad |
66733a1f93ea7833cb38370cd411b1aaa5995c81 | 357 | hh | C++ | examples/2-expect-exception/ExpectExceptionTest.hh | vdurmont/hhunit | a72cb9557debae5725716a1191e133e51412a7d4 | [
"MIT"
] | null | null | null | examples/2-expect-exception/ExpectExceptionTest.hh | vdurmont/hhunit | a72cb9557debae5725716a1191e133e51412a7d4 | [
"MIT"
] | null | null | null | examples/2-expect-exception/ExpectExceptionTest.hh | vdurmont/hhunit | a72cb9557debae5725716a1191e133e51412a7d4 | [
"MIT"
] | null | null | null | <?hh // strict
use \HHUnit\Assert\Assert;
use \HHUnit\Examples\AbstractExampleTest;
use \HHUnit\Runner\ClassLoader;
<<HHUnit>>
class ExpectExceptionTest extends AbstractExampleTest {
<<Test, ExpectException("BadUsageException")>>
public function this_will_throw_an_expected_exception() : void {
MyCalculator::a... | 25.5 | 66 | 0.770308 | vdurmont |
6674e10151baf31b46390e1e39abb2865fc4db31 | 1,230 | hpp | C++ | jit_hook/hooks/utils.hpp | Bonkeyzz/JitDumper | 0ec8cac08bd739311e33f6ba0ed2b3324e40fe03 | [
"MIT"
] | 29 | 2021-10-12T13:23:41.000Z | 2022-03-21T19:00:06.000Z | jit_hook/hooks/utils.hpp | Bonkeyzz/JitDumper | 0ec8cac08bd739311e33f6ba0ed2b3324e40fe03 | [
"MIT"
] | 4 | 2021-10-13T21:35:43.000Z | 2022-02-12T03:21:51.000Z | jit_hook/hooks/utils.hpp | Bonkeyzz/JitDumper | 0ec8cac08bd739311e33f6ba0ed2b3324e40fe03 | [
"MIT"
] | 10 | 2021-10-13T01:26:47.000Z | 2022-03-31T22:14:10.000Z | #pragma once
namespace jit_hook::hooks
{
template<typename T>
T read(uintptr_t address)
{
return *reinterpret_cast<T*>(address);
}
template<typename T>
void write(uintptr_t address, T value)
{
*reinterpret_cast<T*>(address) = value;
}
inline uintptr_t get_handle(const uintptr_t resolved_token)
{
const... | 25.102041 | 111 | 0.746341 | Bonkeyzz |
6679840333f347db4625d97d0afb80ab816bf785 | 744 | cpp | C++ | docs/_docs/code-snippets/cpp/src/thin_client_ssl.cpp | artem-budnikov/ignite | 4594382f18831e5fd4a99186df1b526c5cb9a8ef | [
"Apache-2.0"
] | 1 | 2020-09-15T07:05:29.000Z | 2020-09-15T07:05:29.000Z | docs/_docs/code-snippets/cpp/src/thin_client_ssl.cpp | artem-budnikov/ignite | 4594382f18831e5fd4a99186df1b526c5cb9a8ef | [
"Apache-2.0"
] | 25 | 2020-11-16T20:43:46.000Z | 2022-02-01T01:06:28.000Z | docs/_docs/code-snippets/cpp/src/thin_client_ssl.cpp | artem-budnikov/ignite | 4594382f18831e5fd4a99186df1b526c5cb9a8ef | [
"Apache-2.0"
] | null | null | null | #include <ignite/thin/ignite_client.h>
#include <ignite/thin/ignite_client_configuration.h>
using namespace ignite::thin;
void main()
{
//tag::thin-client-ssl[]
IgniteClientConfiguration cfg;
// Sets SSL mode.
cfg.SetSslMode(SslMode::Type::REQUIRE);
// Sets file path to SSL certificate authority... | 31 | 118 | 0.733871 | artem-budnikov |
66801d567d24e09ed7f7f885305732866f562fa1 | 2,593 | hpp | C++ | headers/server.hpp | DynasticSponge/Frederick2 | 410ad4a3ca43547d645248e13d27497e6c5b5f26 | [
"MIT"
] | null | null | null | headers/server.hpp | DynasticSponge/Frederick2 | 410ad4a3ca43547d645248e13d27497e6c5b5f26 | [
"MIT"
] | null | null | null | headers/server.hpp | DynasticSponge/Frederick2 | 410ad4a3ca43547d645248e13d27497e6c5b5f26 | [
"MIT"
] | null | null | null | //
// server.hpp
// ~~~~~~~~~~
//
// Author: Joseph Adomatis
// Copyright (c) 2020 Joseph R Adomatis (joseph dot adomatis at gmail dot com)
//
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
#ifndef SERVER_HPP
#define SERVER_HPP
#include <future>... | 32.822785 | 119 | 0.53953 | DynasticSponge |
668784830596a2ddb718012797d72e0344c73d92 | 1,104 | cxx | C++ | src/vw/FileIO/tests/TestGDALFeatures.cxx | tkeemon/visionworkbench | df59fcb31191e1fc4fecfe1901963da1614a52b1 | [
"NASA-1.3"
] | 1 | 2020-06-02T04:06:43.000Z | 2020-06-02T04:06:43.000Z | src/vw/FileIO/tests/TestGDALFeatures.cxx | tkeemon/visionworkbench | df59fcb31191e1fc4fecfe1901963da1614a52b1 | [
"NASA-1.3"
] | null | null | null | src/vw/FileIO/tests/TestGDALFeatures.cxx | tkeemon/visionworkbench | df59fcb31191e1fc4fecfe1901963da1614a52b1 | [
"NASA-1.3"
] | null | null | null | // __BEGIN_LICENSE__
// Copyright (C) 2006-2010 United States Government as represented by
// the Administrator of the National Aeronautics and Space Administration.
// All Rights Reserved.
// __END_LICENSE__
#include <gtest/gtest.h>
#include <vw/FileIO.h>
#include <vw/Image/ImageView.h>
#include <vw/Image/ImageIO.h>
... | 25.090909 | 74 | 0.714674 | tkeemon |
668835e743f8715234b70b9c70ef955528650ca7 | 6,632 | cpp | C++ | hclib-cse502/src/hclib-perfcounter.cpp | aayush17002/ADWS | a9c11164457b42dc701dc750d4bb687605bcaca8 | [
"MIT"
] | null | null | null | hclib-cse502/src/hclib-perfcounter.cpp | aayush17002/ADWS | a9c11164457b42dc701dc750d4bb687605bcaca8 | [
"MIT"
] | null | null | null | hclib-cse502/src/hclib-perfcounter.cpp | aayush17002/ADWS | a9c11164457b42dc701dc750d4bb687605bcaca8 | [
"MIT"
] | null | null | null | /*
* Copyright 2017 Rice University
*
* 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... | 33.16 | 104 | 0.668124 | aayush17002 |
668b06f90b8f11ace9b4e389f0c9e91f816a275f | 2,269 | cpp | C++ | volumerendering/Cute/gradientp/TickMark.cpp | coin3d/soguiexamples | d96f4128edbf208be14398f71f03e091500a1af7 | [
"BSD-3-Clause"
] | 1 | 2020-11-30T23:21:39.000Z | 2020-11-30T23:21:39.000Z | volumerendering/Cute/gradientp/TickMark.cpp | coin3d/soguiexamples | d96f4128edbf208be14398f71f03e091500a1af7 | [
"BSD-3-Clause"
] | null | null | null | volumerendering/Cute/gradientp/TickMark.cpp | coin3d/soguiexamples | d96f4128edbf208be14398f71f03e091500a1af7 | [
"BSD-3-Clause"
] | null | null | null | /**************************************************************************\
* Copyright (c) Kongsberg Oil & Gas Technologies AS
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* Red... | 34.907692 | 76 | 0.684883 | coin3d |
668b2b2a79734e0c3ebe9d4b1bbedffcb6f3ae42 | 3,322 | cpp | C++ | src/response_props.cpp | handtruth/mcshub | 00f23171a868b80469020b6f1830c290570b0187 | [
"MIT"
] | 6 | 2019-08-08T04:28:27.000Z | 2022-03-19T14:27:44.000Z | src/response_props.cpp | handtruth/mcshub | 00f23171a868b80469020b6f1830c290570b0187 | [
"MIT"
] | 1 | 2021-07-25T19:58:15.000Z | 2021-07-26T19:40:00.000Z | src/response_props.cpp | handtruth/mcshub | 00f23171a868b80469020b6f1830c290570b0187 | [
"MIT"
] | null | null | null | #include "response_props.hpp"
#include <cstdlib>
#include <fstream>
#include <cassert>
#include <ekutils/uuid.hpp>
#include <ekutils/log.hpp>
namespace mcshub {
const std::string nothing = "{ NULL }";
const std::string base_srv = ".";
file_vars::file_vars() : srv_name(base_srv) {}
std::string file_vars::operator[... | 27.915966 | 97 | 0.631246 | handtruth |
66952a80636c7d80265dc40ae5d84ea66a07f20c | 16,492 | hpp | C++ | src/Optimization/hiopNlpFormulation.hpp | GitBytes/hiop | 8442c75b7e1e076a8a3bf7028e3cc79c7f8cd07f | [
"BSD-3-Clause"
] | null | null | null | src/Optimization/hiopNlpFormulation.hpp | GitBytes/hiop | 8442c75b7e1e076a8a3bf7028e3cc79c7f8cd07f | [
"BSD-3-Clause"
] | null | null | null | src/Optimization/hiopNlpFormulation.hpp | GitBytes/hiop | 8442c75b7e1e076a8a3bf7028e3cc79c7f8cd07f | [
"BSD-3-Clause"
] | null | null | null | // Copyright (c) 2017, Lawrence Livermore National Security, LLC.
// Produced at the Lawrence Livermore National Laboratory (LLNL).
// Written by Cosmin G. Petra, petra1@llnl.gov.
// LLNL-CODE-742473. All rights reserved.
//
// This file is part of HiOp. For details, see https://github.com/LLNL/hiop. HiOp
// is releas... | 40.421569 | 108 | 0.724109 | GitBytes |
66959874ba820aa4f178eefead589bfe0269070d | 688 | cpp | C++ | bin/crtdqt-isi/QmyButton.cpp | ProjectIDA/src | eb7f7d8cb318bb9412ad4d717752710a84b5f3ae | [
"MIT"
] | null | null | null | bin/crtdqt-isi/QmyButton.cpp | ProjectIDA/src | eb7f7d8cb318bb9412ad4d717752710a84b5f3ae | [
"MIT"
] | null | null | null | bin/crtdqt-isi/QmyButton.cpp | ProjectIDA/src | eb7f7d8cb318bb9412ad4d717752710a84b5f3ae | [
"MIT"
] | null | null | null | // QmyButton.cpp: implementation of the QmyButton class.
//
//////////////////////////////////////////////////////////////////////
#include "CRTDglob.h"
#include "QmyButton.h"
//////////////////////////////////////////////////////////////////////
// Construction/Destruction
///////////////////////////////////////////... | 19.657143 | 70 | 0.479651 | ProjectIDA |
66959d30d3f05844be2fbe03c443daadee8ba33c | 23,703 | cc | C++ | src/wsql.cc | Dynmi/WSQL | 823670209a38e0feb17e2178b211e37c92eb61bb | [
"Apache-2.0"
] | 2 | 2021-03-05T07:45:34.000Z | 2021-03-08T08:13:05.000Z | src/wsql.cc | Dynmi/WSQL | 823670209a38e0feb17e2178b211e37c92eb61bb | [
"Apache-2.0"
] | 1 | 2021-03-12T10:50:59.000Z | 2021-03-12T10:50:59.000Z | src/wsql.cc | Dynmi/WSQL | 823670209a38e0feb17e2178b211e37c92eb61bb | [
"Apache-2.0"
] | 2 | 2021-03-08T05:30:02.000Z | 2021-03-08T08:13:06.000Z | //
// File: wsql.cc
// Description: entrance of WSQL
// Authors: Haris Wang (dynmiw@gmail.com)
//
//
#include <iostream>
#include <stdio.h>
#include <unistd.h>
#include <string.h>
#include <signal.h>
#include <vector>
#include <dirent.h>
#include <sstream>
#include <fstream>
#include <map>
#include "wsql.h"... | 27.307604 | 192 | 0.449141 | Dynmi |
669a17a7e0eaa5104fcb172721b65c86c146e89a | 1,380 | cpp | C++ | src/FuntionsMath.cpp | lcam21/DSP-Library | 9ae832c80474d3cd6c34aa1862f24d530bc4f2aa | [
"CC0-1.0"
] | null | null | null | src/FuntionsMath.cpp | lcam21/DSP-Library | 9ae832c80474d3cd6c34aa1862f24d530bc4f2aa | [
"CC0-1.0"
] | null | null | null | src/FuntionsMath.cpp | lcam21/DSP-Library | 9ae832c80474d3cd6c34aa1862f24d530bc4f2aa | [
"CC0-1.0"
] | null | null | null | /*
* FuntionsMath.cpp
*
* Created on: Apr 13, 2016
* Author: luis
*/
#include <iostream>
#include "header/FuntionsMath.h"
using namespace std;
FuntionsMath::FuntionsMath() {
// TODO Auto-generated constructor stub
}
float FuntionsMath::sum(int pUpperLimit, int pLowerLimit, float* pCoefficients,
float... | 21.5625 | 79 | 0.649275 | lcam21 |
66a77b7803a3c98bcfed7cce0c8fd8f1b95a84e4 | 324 | hpp | C++ | libs/fox_wsi/src/mouse.hpp | TinyCoor/FoxEngine | a9623cddb4532c0787fd6d52034c50c0b375c7d2 | [
"MIT"
] | null | null | null | libs/fox_wsi/src/mouse.hpp | TinyCoor/FoxEngine | a9623cddb4532c0787fd6d52034c50c0b375c7d2 | [
"MIT"
] | null | null | null | libs/fox_wsi/src/mouse.hpp | TinyCoor/FoxEngine | a9623cddb4532c0787fd6d52034c50c0b375c7d2 | [
"MIT"
] | null | null | null | #pragma once
#include<fox/wsi.hpp>
void mousePreProcess(Mouse* mouse);
void positionCallback(Mouse* mouse,double xPos,double yPos);
void scrollCallback(Mouse* mouse,double xOffset,double yOffset);
void cursorEnterCallback(Mouse* mouse, int entered);
void mouseButtonCallback(Mouse* mouse,int button,int action,int mo... | 29.454545 | 70 | 0.802469 | TinyCoor |
66a7dfb5e64c6472bfabaf7eaa12ecc0988454ee | 757 | cpp | C++ | test/unit/jt_test/splitstring_test.cpp | runvs/Gemga | 91cd5d6d60ae8369a5a5674efebc6eb84c510a10 | [
"CC0-1.0"
] | null | null | null | test/unit/jt_test/splitstring_test.cpp | runvs/Gemga | 91cd5d6d60ae8369a5a5674efebc6eb84c510a10 | [
"CC0-1.0"
] | null | null | null | test/unit/jt_test/splitstring_test.cpp | runvs/Gemga | 91cd5d6d60ae8369a5a5674efebc6eb84c510a10 | [
"CC0-1.0"
] | null | null | null | #include "splitstring.hpp"
#include <gtest/gtest.h>
#include <string>
using jt::SplitString;
TEST(SplitStringTest, TestValidSplit)
{
std::string const input { "test#1#2#whatever" };
SplitString ss { input };
auto const ssv = ss.split('#');
EXPECT_EQ(ssv.size(), 4);
EXPECT_EQ(ssv.at(0), "test");
... | 25.233333 | 52 | 0.615588 | runvs |
66abf45a80bc1296710176cd1936ed08adc398f2 | 415 | hh | C++ | source/inc/InterfejsDrona.hh | juliyla/Dron | 3e2872ae928e5abb6c6dd6b84b0c9a9076e83e0a | [
"MIT"
] | null | null | null | source/inc/InterfejsDrona.hh | juliyla/Dron | 3e2872ae928e5abb6c6dd6b84b0c9a9076e83e0a | [
"MIT"
] | null | null | null | source/inc/InterfejsDrona.hh | juliyla/Dron | 3e2872ae928e5abb6c6dd6b84b0c9a9076e83e0a | [
"MIT"
] | null | null | null | #ifndef INTERFEJS_DRONA
#define INTERFEJS_DRONA
#include <math.h>
#include "MacierzOb.hh"
#include "Wektor.hh"
#include "Dron.hh"
#include "Powierzchnia.hh"
class InterfejsDrona {
public:
virtual void Obrot(double kat)=0;
virtual void Przesuniecie(double odleglosc, double kat)=0;
virtual const Wektor<... | 21.842105 | 60 | 0.718072 | juliyla |
66aef05fc301b3bc352701b164226e2590867736 | 1,120 | hpp | C++ | libs/core/include/fcppt/record/get.hpp | freundlich/fcppt | 17df1b1ad08bf2435f6902d5465e3bc3fe5e3022 | [
"BSL-1.0"
] | 13 | 2015-02-21T18:35:14.000Z | 2019-12-29T14:08:29.000Z | libs/core/include/fcppt/record/get.hpp | cpreh/fcppt | 17df1b1ad08bf2435f6902d5465e3bc3fe5e3022 | [
"BSL-1.0"
] | 5 | 2016-08-27T07:35:47.000Z | 2019-04-21T10:55:34.000Z | libs/core/include/fcppt/record/get.hpp | freundlich/fcppt | 17df1b1ad08bf2435f6902d5465e3bc3fe5e3022 | [
"BSL-1.0"
] | 8 | 2015-01-10T09:22:37.000Z | 2019-12-01T08:31:12.000Z | // Copyright Carl Philipp Reh 2009 - 2021.
// 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_RECORD_GET_HPP_INCLUDED
#define FCPPT_RECORD_GET_HPP_INCLUDED
#include <fcppt/record... | 24.888889 | 89 | 0.733036 | freundlich |
66b6672bd4a0268c6d6a6e752460f5085deaa6e4 | 5,356 | cpp | C++ | Source/NTGame/Private/NTGame_Pawn.cpp | AlCaTrAzzALZ/UE4-Networked-PhysX-Component | 15289c3ea2802b5b01d81222d9b6b2f89bd8ff0f | [
"MIT"
] | 12 | 2017-02-09T11:15:37.000Z | 2021-11-12T22:28:04.000Z | Source/NTGame/Private/NTGame_Pawn.cpp | blockspacer/UE4-Networked-PhysX-Component | 15289c3ea2802b5b01d81222d9b6b2f89bd8ff0f | [
"MIT"
] | null | null | null | Source/NTGame/Private/NTGame_Pawn.cpp | blockspacer/UE4-Networked-PhysX-Component | 15289c3ea2802b5b01d81222d9b6b2f89bd8ff0f | [
"MIT"
] | 12 | 2019-01-27T21:01:57.000Z | 2021-10-06T05:32:29.000Z | // Copyright (C) James Baxter 2017. All Rights Reserved.
#include "NTGame.h"
#include "NTGame_Pawn.h"
// Movement
#include "NTGame_MovementComponent.h"
ANTGame_Pawn::ANTGame_Pawn(const FObjectInitializer& OI) : Super(OI)
{
RootMesh = OI.CreateDefaultSubobject<USkeletalMeshComponent>(this, TEXT("RootMesh"));
RootMe... | 35.470199 | 227 | 0.770164 | AlCaTrAzzALZ |
66b942a5b025044d5fce4b1dbcc9ac996600f8f0 | 549 | hpp | C++ | NWNXLib/API/API/CResDWK.hpp | summonFox/unified | 47ab7d051fe52c26e2928b569e9fe7aec5aa8705 | [
"MIT"
] | 111 | 2018-01-16T18:49:19.000Z | 2022-03-13T12:33:54.000Z | NWNXLib/API/API/CResDWK.hpp | summonFox/unified | 47ab7d051fe52c26e2928b569e9fe7aec5aa8705 | [
"MIT"
] | 636 | 2018-01-17T10:05:31.000Z | 2022-03-28T20:06:03.000Z | NWNXLib/API/API/CResDWK.hpp | summonFox/unified | 47ab7d051fe52c26e2928b569e9fe7aec5aa8705 | [
"MIT"
] | 110 | 2018-01-16T19:05:54.000Z | 2022-03-28T03:44:16.000Z | #pragma once
#include "nwn_api.hpp"
#include "CRes.hpp"
#ifdef NWN_API_PROLOGUE
NWN_API_PROLOGUE(CResDWK)
#endif
typedef int BOOL;
struct CResDWK : CRes
{
BOOL m_bLoaded;
uint32_t m_nDWKNormalSize;
uint8_t * m_pDWKData;
CResDWK();
~CResDWK();
uint8_t * GetDWKDataPtr();
uint32_t GetD... | 13.390244 | 34 | 0.715847 | summonFox |
66c3c04431584a76b24e0330743778b2d8f2803a | 603 | cpp | C++ | src/main.cpp | KURUJISU/Top_P | d218656e13cbe05b01926366e114b34b8d430035 | [
"MIT"
] | null | null | null | src/main.cpp | KURUJISU/Top_P | d218656e13cbe05b01926366e114b34b8d430035 | [
"MIT"
] | null | null | null | src/main.cpp | KURUJISU/Top_P | d218656e13cbe05b01926366e114b34b8d430035 | [
"MIT"
] | null | null | null |
/**
* @file main.cpp
* @brief メイン。ω。
*
* @author y.akira
* @date 2016.12.14
*/
#include "precompiled.h"
int main() {
// jsonから設定を読み込む
ofxJSON json;
json.open("user.json");
int w = json["Window"]["width"].asInt();
int h = json["Window"]["height"].asInt();
bool f = json["Win... | 18.84375 | 53 | 0.583748 | KURUJISU |
66c5a0e2d9814a2fb6cc0f54df0f956821a7ce9b | 9,404 | cpp | C++ | OpenGL3D Game/ObjectManager.cpp | TheSandstorm/Tank-Busters | 06aec0b25a92e8c9c8959c5173cbef605bb6543d | [
"MIT"
] | null | null | null | OpenGL3D Game/ObjectManager.cpp | TheSandstorm/Tank-Busters | 06aec0b25a92e8c9c8959c5173cbef605bb6543d | [
"MIT"
] | null | null | null | OpenGL3D Game/ObjectManager.cpp | TheSandstorm/Tank-Busters | 06aec0b25a92e8c9c8959c5173cbef605bb6543d | [
"MIT"
] | null | null | null | #include "ObjectManager.h"
std::shared_ptr<MESH> CObjectManager::CubeMesh = nullptr;
std::shared_ptr<MESH> CObjectManager::SphereMesh = nullptr;
std::shared_ptr<Model> CObjectManager::Player = nullptr;
std::shared_ptr<Model> CObjectManager::Enemy1 = nullptr;
std::shared_ptr<Model> CObjectManager::Enemy2 = nullptr;
... | 29.3875 | 112 | 0.665355 | TheSandstorm |
66c789dbb3dfa1013a6b157714cdff53e6c18aae | 5,123 | hpp | C++ | src/util/options.hpp | ctjandra/ddopt-bounds | aaf7407da930503a17969cee71718ffcf0c1fe96 | [
"MIT"
] | null | null | null | src/util/options.hpp | ctjandra/ddopt-bounds | aaf7407da930503a17969cee71718ffcf0c1fe96 | [
"MIT"
] | null | null | null | src/util/options.hpp | ctjandra/ddopt-bounds | aaf7407da930503a17969cee71718ffcf0c1fe96 | [
"MIT"
] | null | null | null | /**
* Global options
*/
#ifndef OPTIONS_HPP_
#define OPTIONS_HPP_
#include <string>
using namespace std;
struct Options {
// Options on what should be run
bool generate_bounds = true; /**< generates bounds from DDs for IP */
// General IP options (unrelated to DDs)
int mip_cuts ... | 71.152778 | 162 | 0.577982 | ctjandra |
66cb2b8e5223e7db9ba250e946fbfb0d13e44ec7 | 931 | cpp | C++ | leetcode/32_Longest Valid Parentheses.cpp | wllvcxz/leetcode | 82358a0946084ba935ca1870b5e3f7c29c03fac3 | [
"MIT"
] | null | null | null | leetcode/32_Longest Valid Parentheses.cpp | wllvcxz/leetcode | 82358a0946084ba935ca1870b5e3f7c29c03fac3 | [
"MIT"
] | null | null | null | leetcode/32_Longest Valid Parentheses.cpp | wllvcxz/leetcode | 82358a0946084ba935ca1870b5e3f7c29c03fac3 | [
"MIT"
] | null | null | null | #include <vector>
#include <string>
using namespace std;
class Solution {
public:
int longestValidParentheses(const string& s) {
int len = s.size();
vector<int> dp(len+5, 0);
for(int i=1; i<len; i++){
if(s[i]=='('){
dp[i] = 0;
}else{
i... | 27.382353 | 65 | 0.309345 | wllvcxz |
202dc7db6015bd3eaa63daf125a7c15eac838993 | 2,299 | cpp | C++ | WOAP Host/Source/woap_gain_fader.cpp | ZonRobin/WOAP | f1bfb8dbe84e57826834ad3ca81f548b20b1afc6 | [
"MIT"
] | null | null | null | WOAP Host/Source/woap_gain_fader.cpp | ZonRobin/WOAP | f1bfb8dbe84e57826834ad3ca81f548b20b1afc6 | [
"MIT"
] | null | null | null | WOAP Host/Source/woap_gain_fader.cpp | ZonRobin/WOAP | f1bfb8dbe84e57826834ad3ca81f548b20b1afc6 | [
"MIT"
] | null | null | null | #include "woap_gain_fader.h"
using namespace WOAP;
using namespace WOAP::GUI;
GainFader::GainFader()
: Slider(Slider::SliderStyle::LinearVertical, Slider::TextEntryBoxPosition::NoTextBox)
{
setMouseCursor(MouseCursor::PointingHandCursor);
setRepaintsOnMouseActivity(false);
setColour(Slider::trackColourId, Colour(... | 27.698795 | 118 | 0.711179 | ZonRobin |
202efe2e0f8137af265c968e3099d18c585e3869 | 465 | cpp | C++ | Controller/BuildTimeString.cpp | st-gb/CPUinfoAndControl | 5e93d4a195b4692d147bb05cfef534e38d7f8b64 | [
"MIT"
] | null | null | null | Controller/BuildTimeString.cpp | st-gb/CPUinfoAndControl | 5e93d4a195b4692d147bb05cfef534e38d7f8b64 | [
"MIT"
] | null | null | null | Controller/BuildTimeString.cpp | st-gb/CPUinfoAndControl | 5e93d4a195b4692d147bb05cfef534e38d7f8b64 | [
"MIT"
] | 1 | 2021-07-16T21:01:26.000Z | 2021-07-16T21:01:26.000Z | /*
* BuildTimeString.cpp
*
* Created on: Sep 10, 2013
* Author: stefan
*/
//#include <preprocessor_macros/BuildTimeString.h> //BUILT_TIME
/** Touch this file in a pre-build step in order to ensure the time is updated. */
///"By "const": avoid "warning: ISO C++ forbids converting a string constant
/// to ‘... | 24.473684 | 82 | 0.673118 | st-gb |
202f9f455ba1c8c78a3e8f4fecf7ef935fe8f2fd | 6,875 | cpp | C++ | Source/Game/Match3Factory.cpp | gabr1e11/cornerstone | bc696e22af350b867219ef3ac99840b3e8a3f20a | [
"MIT"
] | null | null | null | Source/Game/Match3Factory.cpp | gabr1e11/cornerstone | bc696e22af350b867219ef3ac99840b3e8a3f20a | [
"MIT"
] | null | null | null | Source/Game/Match3Factory.cpp | gabr1e11/cornerstone | bc696e22af350b867219ef3ac99840b3e8a3f20a | [
"MIT"
] | null | null | null | //
// Match3Factory.cpp
//
// @author Roberto Cano
//
#include <iterator>
#include "Match3Factory.hpp"
#include "Framework/Components/SpriteRenderer.hpp"
#include "Framework/Components/MouseHandler.hpp"
#include "Framework/Components/SoundEmitter.hpp"
#include "Match3Utils.hpp"
#include "Match3Board.hpp"
#include "... | 33.373786 | 138 | 0.801309 | gabr1e11 |
202fa206c67735c776f480b38c2105cd143ca25c | 205 | cpp | C++ | Plugins/MMT_Plugin/Source/MMT/Private/MMT.cpp | elocnatsirt/MP_Pawn_Racing | cc3e86b22d63f2f0d117e5785380023995e38408 | [
"WTFPL"
] | 153 | 2016-02-06T19:19:39.000Z | 2022-03-10T04:28:28.000Z | Plugins/MMT_Plugin/Source/MMT/Private/MMT.cpp | elocnatsirt/MP_Pawn_Racing | cc3e86b22d63f2f0d117e5785380023995e38408 | [
"WTFPL"
] | 8 | 2016-05-09T12:29:51.000Z | 2022-03-15T17:35:18.000Z | Plugins/MMT_Plugin/Source/MMT/Private/MMT.cpp | elocnatsirt/MP_Pawn_Racing | cc3e86b22d63f2f0d117e5785380023995e38408 | [
"WTFPL"
] | 45 | 2016-06-11T14:46:25.000Z | 2022-03-14T06:10:46.000Z | //Copyright(c) 2016 Viktor Kuropiatnyk "BoredEngineer"
#include "MMTPluginPCH.h"
#include "MMT.h"
void MMTImpl::StartupModule()
{
}
void MMTImpl::ShutdownModule()
{
}
IMPLEMENT_MODULE(MMTImpl, MMT) | 12.8125 | 54 | 0.731707 | elocnatsirt |
203283ffe53dcc353efd9dd1a8052353875bfad7 | 16,498 | cpp | C++ | Ouroboros/Source/oMesh/primitive.cpp | igHunterKiller/ouroboros | 5e2cde7e6365341da297da10d8927b091ecf5559 | [
"MIT"
] | null | null | null | Ouroboros/Source/oMesh/primitive.cpp | igHunterKiller/ouroboros | 5e2cde7e6365341da297da10d8927b091ecf5559 | [
"MIT"
] | null | null | null | Ouroboros/Source/oMesh/primitive.cpp | igHunterKiller/ouroboros | 5e2cde7e6365341da297da10d8927b091ecf5559 | [
"MIT"
] | null | null | null | // Copyright (c) 2016 Antony Arciuolo. See License.txt regarding use.
#include <oMath/projection.h>
#include <oMath/matrix.h>
#include <oMath/primitive.h>
#include <oMath/subdivide.h>
#include <oMath/texgen.h>
#include <oMesh/primitive.h>
#include <oMesh/mesh.h>
#include <oSurface/surface.h>
using namespace ouro::sur... | 37.074157 | 188 | 0.714208 | igHunterKiller |
2040234abc1b8cb0cae9bc42d54f057bc0bb3c46 | 3,696 | cpp | C++ | src/TundraCore/Asset/AssetCache.cpp | realXtend/tundra-urho3d | 436d41c3e3dd1a9b629703ee76fd0ef2ee212ef8 | [
"Apache-2.0"
] | 13 | 2015-02-25T02:42:38.000Z | 2018-07-31T11:40:56.000Z | src/TundraCore/Asset/AssetCache.cpp | realXtend/tundra-urho3d | 436d41c3e3dd1a9b629703ee76fd0ef2ee212ef8 | [
"Apache-2.0"
] | 8 | 2015-02-12T22:27:05.000Z | 2017-01-21T15:59:17.000Z | src/TundraCore/Asset/AssetCache.cpp | realXtend/tundra-urho3d | 436d41c3e3dd1a9b629703ee76fd0ef2ee212ef8 | [
"Apache-2.0"
] | 12 | 2015-03-25T21:10:50.000Z | 2019-04-10T09:03:10.000Z | // For conditions of distribution and use, see copyright notice in LICENSE
#include "StableHeaders.h"
#include "AssetCache.h"
#include "AssetAPI.h"
#include "IAsset.h"
#include "CoreDefines.h"
#include "Framework.h"
#include "LoggingFunctions.h"
#include <Urho3D/IO/FileSystem.h>
namespace Tundra
{
AssetCache::Ass... | 32.13913 | 159 | 0.72619 | realXtend |
2040b02d8be94d8d59db5ad1c0391dc3c94b0a60 | 856 | hpp | C++ | include/wtf/messages/wm_mouse_move.hpp | ahunter-eyelock/wtf | c232d89cdf9817c28c4c4937300caf117bcb6876 | [
"BSL-1.0"
] | 5 | 2017-05-25T03:41:18.000Z | 2021-06-05T14:04:30.000Z | include/wtf/messages/wm_mouse_move.hpp | ahunter-eyelock/wtf | c232d89cdf9817c28c4c4937300caf117bcb6876 | [
"BSL-1.0"
] | null | null | null | include/wtf/messages/wm_mouse_move.hpp | ahunter-eyelock/wtf | c232d89cdf9817c28c4c4937300caf117bcb6876 | [
"BSL-1.0"
] | 3 | 2021-03-18T20:40:27.000Z | 2021-04-02T11:46:25.000Z | /** @file
@copyright David Mott (c) 2016. Distributed under the Boost Software License Version 1.0. See LICENSE.md or http://boost.org/LICENSE_1_0.txt for details.
*/
#pragma once
namespace wtf{
namespace messages {
template <typename _super_t>
struct wm_mouse_move : _super_t{
callback<void(window *... | 31.703704 | 153 | 0.702103 | ahunter-eyelock |
2041beb43ec4d8ecbf33a1649de9cbdcbe6a7fa9 | 9,205 | cpp | C++ | libpush/src/input/StreamInput.cpp | erikgoe/push-cpp | 4b08eb7e0c52f60a1366608dfd1bea58b99d6cff | [
"Apache-2.0"
] | 4 | 2018-09-29T03:02:10.000Z | 2020-03-25T16:35:58.000Z | libpush/src/input/StreamInput.cpp | erikgoe/push-cpp | 4b08eb7e0c52f60a1366608dfd1bea58b99d6cff | [
"Apache-2.0"
] | null | null | null | libpush/src/input/StreamInput.cpp | erikgoe/push-cpp | 4b08eb7e0c52f60a1366608dfd1bea58b99d6cff | [
"Apache-2.0"
] | null | null | null | // Copyright 2020 Erik Götzfried
// Licensed under the Apache License, Version 2.0( the "License" );
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in... | 33.594891 | 120 | 0.554264 | erikgoe |
20430d8a130b773bb7b93d30b23c770e1b3d4fcf | 3,923 | cpp | C++ | src/tcp-server/TcpFillers.cpp | LeandreBl/cautious-fiesta-server | ae9ef273f6a2cc0e59702267714a7c4cb287a2fe | [
"Apache-2.0"
] | 2 | 2020-12-10T20:22:18.000Z | 2020-12-10T20:23:37.000Z | src/tcp-server/TcpFillers.cpp | LeandreBl/cautious-fiesta-server | ae9ef273f6a2cc0e59702267714a7c4cb287a2fe | [
"Apache-2.0"
] | null | null | null | src/tcp-server/TcpFillers.cpp | LeandreBl/cautious-fiesta-server | ae9ef273f6a2cc0e59702267714a7c4cb287a2fe | [
"Apache-2.0"
] | null | null | null | #include <filesystem>
#include <boost/bind.hpp>
#include <Asset.hpp>
#include "Server.hpp"
namespace cf {
void Server::fillGameRooms(Serializer &packet) const noexcept
{
packet << (uint64_t)_gameRooms.size();
for (auto &&i : _gameRooms) {
packet << (uint64_t)i.getPlayers().size();
packet << i.getName();
}
}
... | 25.640523 | 96 | 0.663013 | LeandreBl |
204892fe4413213daa75e3405cd5dc378bf82a95 | 4,341 | cpp | C++ | src/main.cpp | alandtsang/dnstool | 4f098bd68253e2fd48159198f6b6668b73975b8f | [
"Apache-2.0"
] | 6 | 2017-06-27T06:42:19.000Z | 2022-02-24T04:01:20.000Z | src/main.cpp | alandtsang/dnstool | 4f098bd68253e2fd48159198f6b6668b73975b8f | [
"Apache-2.0"
] | 1 | 2020-01-01T13:42:59.000Z | 2020-01-03T02:09:40.000Z | src/main.cpp | alandtsang/dnstool | 4f098bd68253e2fd48159198f6b6668b73975b8f | [
"Apache-2.0"
] | 3 | 2018-01-20T10:11:21.000Z | 2021-07-06T21:26:23.000Z | #include <cstdlib>
#include <cstring>
#include <sys/socket.h>
#include <sys/types.h>
#include <netinet/ip.h>
#include <netinet/in.h>
#include <arpa/inet.h>
#include <sys/time.h>
#include <unistd.h>
#include <signal.h>
#include <iostream>
//#include <atomic>
//#include <chrono>
//#include <thread>
//#include <vector>
... | 23.592391 | 76 | 0.498503 | alandtsang |
204a8ce45a95f1d8ffe0fd3c026809ce30686fd4 | 3,082 | hpp | C++ | include/pprintpp/charlist.hpp | DBJDBJ/pprintpp | 409c79107018b039ebf6c394a04def16a8651624 | [
"MIT"
] | null | null | null | include/pprintpp/charlist.hpp | DBJDBJ/pprintpp | 409c79107018b039ebf6c394a04def16a8651624 | [
"MIT"
] | null | null | null | include/pprintpp/charlist.hpp | DBJDBJ/pprintpp | 409c79107018b039ebf6c394a04def16a8651624 | [
"MIT"
] | null | null | null | #pragma once
/*
* MIT License
*
* Copyright (c) 2016 Jacek Galowicz
*
* 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... | 29.634615 | 82 | 0.688189 | DBJDBJ |
2053723694a04844036bf7363be0a8e0f894884d | 401 | cpp | C++ | 0900/30/931a.cpp | actium/cf | d7be128c3a9adb014a231a399f1c5f19e1ab2a38 | [
"Unlicense"
] | 1 | 2020-07-03T15:55:52.000Z | 2020-07-03T15:55:52.000Z | 0900/30/931a.cpp | actium/cf | d7be128c3a9adb014a231a399f1c5f19e1ab2a38 | [
"Unlicense"
] | null | null | null | 0900/30/931a.cpp | actium/cf | d7be128c3a9adb014a231a399f1c5f19e1ab2a38 | [
"Unlicense"
] | 3 | 2020-10-01T14:55:28.000Z | 2021-07-11T11:33:58.000Z | #include <iostream>
void answer(size_t v)
{
std::cout << v << '\n';
}
void solve(unsigned a, unsigned b)
{
const unsigned d = a < b ? b - a : a - b;
const unsigned k = d / 2;
size_t x = k * (k + 1);
if (d % 2 == 1)
x += d / 2 + 1;
answer(x);
}
int main()
{
unsigned a;
std::c... | 12.151515 | 45 | 0.456359 | actium |
2057548ba0089dcfdb33e3c4d4b2d086c91f5088 | 351 | cpp | C++ | src_db/btree/AbstractBtreeKey.cpp | alinous-core/codable-cash | 32a86a152a146c592bcfd8cc712f4e8cb38ee1a0 | [
"MIT"
] | 6 | 2019-01-06T05:02:39.000Z | 2020-10-01T11:45:32.000Z | src_db/btree/AbstractBtreeKey.cpp | Codablecash/codablecash | 8816b69db69ff2f5da6cdb6af09b8fb21d3df1d9 | [
"MIT"
] | 209 | 2018-05-18T03:07:02.000Z | 2022-03-26T11:42:41.000Z | src_db/btree/AbstractBtreeKey.cpp | Codablecash/codablecash | 8816b69db69ff2f5da6cdb6af09b8fb21d3df1d9 | [
"MIT"
] | 3 | 2019-07-06T09:16:36.000Z | 2020-10-15T08:23:28.000Z | /*
* AbstractBtreeKey.cpp
*
* Created on: 2018/12/23
* Author: iizuka
*/
#include "btree/AbstractBtreeKey.h"
namespace alinous {
AbstractBtreeKey::AbstractBtreeKey() : IBlockObject() {
}
AbstractBtreeKey::~AbstractBtreeKey() {
}
IBlockObject* AbstractBtreeKey::copyData() const noexcept {
return clone()... | 15.26087 | 59 | 0.698006 | alinous-core |
205aaffbe3f87ff7983edcd814fa863cd53d569b | 8,398 | cpp | C++ | 3DEngine/Main.cpp | PranavBahuguna/OpenGL | 7d974a4305b9a2acdda3d534ec92904ecba0a40e | [
"MIT"
] | 1 | 2021-05-10T22:14:42.000Z | 2021-05-10T22:14:42.000Z | 3DEngine/Main.cpp | PranavBahuguna/OpenGL | 7d974a4305b9a2acdda3d534ec92904ecba0a40e | [
"MIT"
] | 15 | 2020-10-06T18:22:14.000Z | 2020-12-07T19:37:25.000Z | 3DEngine/Main.cpp | PranavBahuguna/3DEngine | 7d974a4305b9a2acdda3d534ec92904ecba0a40e | [
"MIT"
] | null | null | null | #define TINYOBJLOADER_IMPLEMENTATION
#include "DrawListBuilder.h"
#include "FrameBuffer.h"
#include "Game.h"
#include "GameObject.h"
#include "Light.h"
#include "LightIcon.h"
#include "Plane.h"
#include "Script.h"
#include "Skybox.h"
#include "Timer.h"
#include <iomanip>
using LiSptr = std::shared_ptr... | 34.991667 | 101 | 0.644796 | PranavBahuguna |
205cd7ccdd6868eac845b73e46789bbf68cd671e | 20,174 | cpp | C++ | src/queries/model/select.cpp | enerc/zsearch | 60cdcd245b66d14fe4e2be1d26eb2b1877d4b098 | [
"Apache-2.0"
] | null | null | null | src/queries/model/select.cpp | enerc/zsearch | 60cdcd245b66d14fe4e2be1d26eb2b1877d4b098 | [
"Apache-2.0"
] | null | null | null | src/queries/model/select.cpp | enerc/zsearch | 60cdcd245b66d14fe4e2be1d26eb2b1877d4b098 | [
"Apache-2.0"
] | null | null | null | #include "select.hpp"
#include "../../repository/indexRepository.hpp"
#include "where.hpp"
#include "order.hpp"
#include "count.hpp"
#include <sys/random.h>
#include <fcntl.h>
#include <unistd.h>
#include <sys/mman.h>
using namespace std;
using namespace mapping;
using namespace indexes;
namespace queries::model {
s... | 37.921053 | 188 | 0.508427 | enerc |
205d9bbbbb341e9981a5686b2eb35087eb2e4b4c | 4,009 | cpp | C++ | trainings/2015-08-05-JAG-Winter-2009/D.cpp | HcPlu/acm-icpc | ab1f1d58bf2b4bf6677a2e4282fd3dadb3effbf8 | [
"MIT"
] | 9 | 2017-10-07T13:35:45.000Z | 2021-06-07T17:36:55.000Z | trainings/2015-08-05-JAG-Winter-2009/D.cpp | zhijian-liu/acm-icpc | ab1f1d58bf2b4bf6677a2e4282fd3dadb3effbf8 | [
"MIT"
] | null | null | null | trainings/2015-08-05-JAG-Winter-2009/D.cpp | zhijian-liu/acm-icpc | ab1f1d58bf2b4bf6677a2e4282fd3dadb3effbf8 | [
"MIT"
] | 3 | 2018-04-24T05:27:21.000Z | 2019-04-25T06:06:00.000Z | #include <iostream>
#include <vector>
#include <cmath>
using namespace std;
const int N = 555;
const double eps = 1e-6;
int Sign(const double &x) {
return (x > eps) - (x + eps < 0);
}
struct Point {
double x, y, z;
Point() {
}
Point(const double &x, const double &y, const double &z) : x(x), y... | 23.17341 | 107 | 0.418059 | HcPlu |
20604a76eb3e977d3f5b5d52ab3100eec9f409d1 | 1,609 | hpp | C++ | YYSloth/include/proc/state.hpp | notYuriy/yayaos | 4df7b015cb6e572797dd40a5d2891cf24abcb4d1 | [
"MIT"
] | 12 | 2020-04-13T12:38:54.000Z | 2021-08-31T07:03:14.000Z | YYSloth/include/proc/state.hpp | YayOrg/YayOS | 4df7b015cb6e572797dd40a5d2891cf24abcb4d1 | [
"MIT"
] | null | null | null | YYSloth/include/proc/state.hpp | YayOrg/YayOS | 4df7b015cb6e572797dd40a5d2891cf24abcb4d1 | [
"MIT"
] | 1 | 2020-07-18T12:11:37.000Z | 2020-07-18T12:11:37.000Z | #ifndef __REGS_HPP_INCLUDED__
#define __REGS_HPP_INCLUDED__
#include <utils.hpp>
namespace proc {
#pragma pack(1)
struct GeneralRegs {
uint64_t fs, gs, ds, es;
uint64_t cr3;
uint64_t r15, r14;
uint64_t r13, r12, r11, r10, r9, r8;
uint64_t rbp, rsi, rdi, rdx, rcx, rbx, rax... | 27.271186 | 69 | 0.614046 | notYuriy |
2061fbb3c5b12cc77b82d856740faf53fc9def6b | 1,436 | cpp | C++ | plugins/opengl/src/texture/check_dim.cpp | cpreh/spacegameengine | 313a1c34160b42a5135f8223ffaa3a31bc075a01 | [
"BSL-1.0"
] | 2 | 2016-01-27T13:18:14.000Z | 2018-05-11T01:11:32.000Z | plugins/opengl/src/texture/check_dim.cpp | cpreh/spacegameengine | 313a1c34160b42a5135f8223ffaa3a31bc075a01 | [
"BSL-1.0"
] | null | null | null | plugins/opengl/src/texture/check_dim.cpp | cpreh/spacegameengine | 313a1c34160b42a5135f8223ffaa3a31bc075a01 | [
"BSL-1.0"
] | 3 | 2018-05-11T01:11:34.000Z | 2021-04-24T19:47:45.000Z | // Copyright Carl Philipp Reh 2006 - 2019.
// Distributed under the Boost Software License, Version 1.0.
// (See accompanying file LICENSE_1_0.txt or copy at
// http://www.boost.org/LICENSE_1_0.txt)
#include <sge/opengl/texture/check_dim.hpp>
#include <sge/opengl/texture/pp_dims.hpp>
#include <sge... | 36.820513 | 94 | 0.736072 | cpreh |
2063faee6315e78040278cb0f9d2ae0dd3624002 | 9,669 | cpp | C++ | export/windows/obj/src/openfl/filters/BitmapFilterShader.cpp | seanbashaw/frozenlight | 47c540d30d63e946ea2dc787b4bb602cc9347d21 | [
"MIT"
] | null | null | null | export/windows/obj/src/openfl/filters/BitmapFilterShader.cpp | seanbashaw/frozenlight | 47c540d30d63e946ea2dc787b4bb602cc9347d21 | [
"MIT"
] | null | null | null | export/windows/obj/src/openfl/filters/BitmapFilterShader.cpp | seanbashaw/frozenlight | 47c540d30d63e946ea2dc787b4bb602cc9347d21 | [
"MIT"
] | null | null | null | // Generated by Haxe 3.4.7
#include <hxcpp.h>
#ifndef INCLUDED_haxe_io_Bytes
#include <haxe/io/Bytes.h>
#endif
#ifndef INCLUDED_openfl_display_Shader
#include <openfl/display/Shader.h>
#endif
#ifndef INCLUDED_openfl_display_ShaderInput_openfl_display_BitmapData
#include <openfl/display/ShaderInput_openfl_display_Bitma... | 44.150685 | 420 | 0.766884 | seanbashaw |
206ae5a2481751dad6c767fedffcaddff8210378 | 3,115 | hpp | C++ | algo/include/algo_data_mining.hpp | alex011235/algo | ce36c2673e037a12278117cb036550bee82ecadf | [
"MIT"
] | 2 | 2015-08-16T23:45:23.000Z | 2015-10-13T08:12:00.000Z | algo/include/algo_data_mining.hpp | alex011235/algorithm | ce36c2673e037a12278117cb036550bee82ecadf | [
"MIT"
] | 1 | 2021-03-21T16:33:53.000Z | 2021-03-21T16:33:53.000Z | algo/include/algo_data_mining.hpp | alex011235/algo | ce36c2673e037a12278117cb036550bee82ecadf | [
"MIT"
] | null | null | null | ///
/// \brief Source file for data mining algorithms.
/// \author alex011235
/// \date 2020-04-30
/// \link <a href=https://github.com/alex011235/algo>Algo, Github</a>
///
/// Change list:
/// 2015-08-14 KNN
/// 2015-08-16 K-means
/// 2020-07-19 DBSCAN
///
#ifndef ALGORITHM_DATA_MINING_DATA_MINING_ALGORITHMS_HPP_
#de... | 36.647059 | 130 | 0.669342 | alex011235 |
206c11c2ce1921ebb76bf4113880b4cdccdee470 | 208 | cpp | C++ | Source/FactoryGame/FGRadioactiveActor.cpp | iam-Legend/Project-Assembly | 1ff3587704232d5e330515bc0d2aceb64ff09a7f | [
"MIT"
] | null | null | null | Source/FactoryGame/FGRadioactiveActor.cpp | iam-Legend/Project-Assembly | 1ff3587704232d5e330515bc0d2aceb64ff09a7f | [
"MIT"
] | null | null | null | Source/FactoryGame/FGRadioactiveActor.cpp | iam-Legend/Project-Assembly | 1ff3587704232d5e330515bc0d2aceb64ff09a7f | [
"MIT"
] | null | null | null | // This file has been automatically generated by the Unreal Header Implementation tool
#include "FGRadioactiveActor.h"
AFGRadioactiveActor::AFGRadioactiveActor(){ }
void AFGRadioactiveActor::BeginPlay(){ }
| 29.714286 | 86 | 0.807692 | iam-Legend |
206e60f74b6ca5a63fa7044e9d89a86c1bb3c66a | 4,628 | cpp | C++ | sem_4/ded/sorting/src/collections/plugins/kctf_widget_library_extension.cpp | KingCakeTheFruity/mipt | e32cfe5e53236cdd2933d8b666ca995508300f0f | [
"MIT"
] | null | null | null | sem_4/ded/sorting/src/collections/plugins/kctf_widget_library_extension.cpp | KingCakeTheFruity/mipt | e32cfe5e53236cdd2933d8b666ca995508300f0f | [
"MIT"
] | null | null | null | sem_4/ded/sorting/src/collections/plugins/kctf_widget_library_extension.cpp | KingCakeTheFruity/mipt | e32cfe5e53236cdd2933d8b666ca995508300f0f | [
"MIT"
] | null | null | null | #include "redactor/plugin_std/plugin_std.hpp"
#include "utils.h"
#include "kctf_widget_library.h"
#include <cstdlib>
#include <ctime>
#include <cmath>
// ============================================================================ Info
const auto PTYPE = PUPPY::EXTENSION;
const char *PNAME = "Widget Library Ext... | 28.219512 | 194 | 0.632022 | KingCakeTheFruity |
207410fd77cee4b5c94c28f9e662032e625cee66 | 11,648 | hpp | C++ | TNICPPHelpers.hpp | rileyzzz/TNICPPHelpers | e3391c24b9a3d390ec0658a087149399ffd49e92 | [
"MIT"
] | null | null | null | TNICPPHelpers.hpp | rileyzzz/TNICPPHelpers | e3391c24b9a3d390ec0658a087149399ffd49e92 | [
"MIT"
] | null | null | null | TNICPPHelpers.hpp | rileyzzz/TNICPPHelpers | e3391c24b9a3d390ec0658a087149399ffd49e92 | [
"MIT"
] | null | null | null | #pragma once
#include "trainznativeinterface.hpp"
#include "TNIStream.hpp"
#include "TNIFunctions.hpp"
#include "TNILibrary.hpp"
#include "TNILabel.hpp"
#include "TNIBuffer.h"
#include "TNIPhysics.hpp"
#include <vector>
#include <typeinfo>
#ifndef _TNICPPHELPERS_H_
#define _TNICPPHELPERS_H_
//========================... | 35.730061 | 112 | 0.649639 | rileyzzz |
2074d2412b79ced0f7cf02e215bf4ea922b96a17 | 2,569 | cpp | C++ | android-31/android/provider/ContactsContract.cpp | YJBeetle/QtAndroidAPI | 1468b5dc6eafaf7709f0b00ba1a6ec2b70684266 | [
"Apache-2.0"
] | 12 | 2020-03-26T02:38:56.000Z | 2022-03-14T08:17:26.000Z | android-31/android/provider/ContactsContract.cpp | YJBeetle/QtAndroidAPI | 1468b5dc6eafaf7709f0b00ba1a6ec2b70684266 | [
"Apache-2.0"
] | 1 | 2021-01-27T06:07:45.000Z | 2021-11-13T19:19:43.000Z | android-29/android/provider/ContactsContract.cpp | YJBeetle/QtAndroidAPI | 1468b5dc6eafaf7709f0b00ba1a6ec2b70684266 | [
"Apache-2.0"
] | 3 | 2021-02-02T12:34:55.000Z | 2022-03-08T07:45:57.000Z | #include "../net/Uri.hpp"
#include "../../JString.hpp"
#include "./ContactsContract.hpp"
namespace android::provider
{
// Fields
JString ContactsContract::AUTHORITY()
{
return getStaticObjectField(
"android.provider.ContactsContract",
"AUTHORITY",
"Ljava/lang/String;"
);
}
android::net::Uri ContactsC... | 21.588235 | 69 | 0.722849 | YJBeetle |
20767d4a9ef26254a6133f3d5391e1a6f4db5410 | 1,730 | cpp | C++ | jixun/zati2/B.cpp | swwind/code | 25c4c5ca2f8578ba792b44cbdf44286d39dfb7e0 | [
"WTFPL"
] | 3 | 2017-09-17T09:12:50.000Z | 2018-04-06T01:18:17.000Z | jixun/zati2/B.cpp | swwind/code | 25c4c5ca2f8578ba792b44cbdf44286d39dfb7e0 | [
"WTFPL"
] | null | null | null | jixun/zati2/B.cpp | swwind/code | 25c4c5ca2f8578ba792b44cbdf44286d39dfb7e0 | [
"WTFPL"
] | null | null | null | #include <bits/stdc++.h>
#define N 800020
#define ll long long
using namespace std;
inline int read(){
int x=0,f=1;char ch=getchar();
while(ch>'9'||ch<'0')ch=='-'&&(f=0)||(ch=getchar());
while(ch<='9'&&ch>='0')x=(x<<3)+(x<<1)+ch-'0',ch=getchar();
return f?x:-x;
}
string str[N >> 3], ntr[N >> 3];
int ans[N >> 3], su... | 23.69863 | 60 | 0.508671 | swwind |
2076d11865d9cbd58adf8c2b15589413bc2d22c1 | 732 | cpp | C++ | source/3d/model/Mesh.cpp | essar05/Ess3D | 0c3c648bf4d6b92d47c1acf1d51eca592ffe7e95 | [
"MIT"
] | 2 | 2019-05-28T12:00:00.000Z | 2020-09-03T11:51:50.000Z | source/3d/model/Mesh.cpp | essar05/Ess3D | 0c3c648bf4d6b92d47c1acf1d51eca592ffe7e95 | [
"MIT"
] | null | null | null | source/3d/model/Mesh.cpp | essar05/Ess3D | 0c3c648bf4d6b92d47c1acf1d51eca592ffe7e95 | [
"MIT"
] | 1 | 2019-05-28T12:00:08.000Z | 2019-05-28T12:00:08.000Z | #include <Ess3D/3d/model/Mesh.h>
namespace Ess3D {
Mesh::Mesh() {
_meshRenderer = new MeshRenderer(this);
}
Mesh::~Mesh() {
delete _meshRenderer;
}
const std::vector<Vertex3D>& Mesh::getVertices() {
return _vertices;
}
const std::vector<unsigned int>& Mesh::getIndices() {
return _indic... | 18.769231 | 55 | 0.65847 | essar05 |
207ee4b44ffe4cf7829efe15704a43afafe2dfb1 | 2,602 | cpp | C++ | src/detail/arp_queue.cpp | andreimaximov/unet | 10b6aa82b1ce74fa40c9050f4593c902f9d0fd61 | [
"MIT"
] | null | null | null | src/detail/arp_queue.cpp | andreimaximov/unet | 10b6aa82b1ce74fa40c9050f4593c902f9d0fd61 | [
"MIT"
] | null | null | null | src/detail/arp_queue.cpp | andreimaximov/unet | 10b6aa82b1ce74fa40c9050f4593c902f9d0fd61 | [
"MIT"
] | null | null | null | #include <unet/detail/arp_queue.hpp>
#include <boost/assert.hpp>
namespace unet {
namespace detail {
template <typename F>
static void scanQueue(Queue& q, F&& f) {
// The expected head of the queue after looping through all frames.
Frame* nextHead = nullptr;
while (auto frame = q.pop()) {
// Already encoun... | 27.104167 | 78 | 0.647579 | andreimaximov |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.