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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
e4bbb98ad87c60373af0652e5c86f19755bcf6da | 1,159 | cpp | C++ | src/netmsghandlers/svc/svc_createstringtable.cpp | owainjones74/leysourceengineclient | 5902b7a71e2bbc9cb0b95dd4a3cba38eb4ca2aa9 | [
"MIT"
] | null | null | null | src/netmsghandlers/svc/svc_createstringtable.cpp | owainjones74/leysourceengineclient | 5902b7a71e2bbc9cb0b95dd4a3cba38eb4ca2aa9 | [
"MIT"
] | null | null | null | src/netmsghandlers/svc/svc_createstringtable.cpp | owainjones74/leysourceengineclient | 5902b7a71e2bbc9cb0b95dd4a3cba38eb4ca2aa9 | [
"MIT"
] | null | null | null | #include "../../valve/buf.h"
#include "../../leychan.h"
#include "svc_createstringtable.h"
bool svc_createstringtable::Register(leychan* chan)
{
void* voidedfn = static_cast<void*>(&svc_createstringtable::ParseMessage);
leychan::netcallbackfn fn = static_cast<leychan::netcallbackfn>(voidedfn);
return chan->Regis... | 22.72549 | 158 | 0.708369 | owainjones74 |
e4bbc2bfe22df7df91630cd10bfe74929b271525 | 13,228 | cpp | C++ | lib/base/algorithm.cpp | sweeterthancandy/CandyPoker | 53dfcc92402492739a2300847aeb298d389d546a | [
"MIT"
] | 9 | 2019-10-31T12:57:38.000Z | 2022-01-16T10:41:18.000Z | lib/base/algorithm.cpp | sweeterthancandy/CandyPoker | 53dfcc92402492739a2300847aeb298d389d546a | [
"MIT"
] | null | null | null | lib/base/algorithm.cpp | sweeterthancandy/CandyPoker | 53dfcc92402492739a2300847aeb298d389d546a | [
"MIT"
] | 1 | 2021-04-01T06:05:52.000Z | 2021-04-01T06:05:52.000Z | /*
CandyPoker
https://github.com/sweeterthancandy/CandyPoker
MIT License
Copyright (c) 2019 Gerry Candy
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 li... | 37.367232 | 123 | 0.450106 | sweeterthancandy |
e4bf452a36b1a92349128d98499f82b320277ef7 | 2,565 | cpp | C++ | src/util/Resampler.cpp | tlmrgvf/drtd | bf31747b963673797239cb11cd45c1c1ee4aeaa6 | [
"BSD-2-Clause"
] | 6 | 2020-07-11T11:16:18.000Z | 2021-12-17T23:30:36.000Z | src/util/Resampler.cpp | tlmrgvf/drtd | bf31747b963673797239cb11cd45c1c1ee4aeaa6 | [
"BSD-2-Clause"
] | 9 | 2020-07-03T21:23:50.000Z | 2022-02-15T12:56:16.000Z | src/util/Resampler.cpp | tlmrgvf/drtd | bf31747b963673797239cb11cd45c1c1ee4aeaa6 | [
"BSD-2-Clause"
] | null | null | null | /*
BSD 2-Clause License
Copyright (c) 2020, Till Mayer
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
1. Redistributions of source code must retain the above copyright notice, this
list of conditio... | 35.136986 | 153 | 0.711501 | tlmrgvf |
e4bf9837954ee90653ce9e0d70825268bbf832f1 | 1,388 | hpp | C++ | src/astra_ros/util.hpp | semio-ai/astra_ros | ef8ca515fdd02af78322677801c10d4bad80410a | [
"BSD-3-Clause"
] | 1 | 2022-01-29T10:54:16.000Z | 2022-01-29T10:54:16.000Z | src/astra_ros/util.hpp | semio-ai/astra_ros | ef8ca515fdd02af78322677801c10d4bad80410a | [
"BSD-3-Clause"
] | null | null | null | src/astra_ros/util.hpp | semio-ai/astra_ros | ef8ca515fdd02af78322677801c10d4bad80410a | [
"BSD-3-Clause"
] | null | null | null | #ifndef _ASTRA_ROS_UTIL_HPP_
#define _ASTRA_ROS_UTIL_HPP_
#include <vector>
#include <sensor_msgs/Image.h>
#include <visualization_msgs/MarkerArray.h>
#include "astra_ros/Device.hpp"
#include "astra_ros/ImageStreamMode.h"
#include "astra_ros/Body.h"
#include "astra_ros/Plane.h"
#include <astra/capi/astra.h>
namespac... | 38.555556 | 131 | 0.775216 | semio-ai |
e4c1f2f4135bff1bb7f02bc23784d45837d67b7d | 5,225 | cpp | C++ | src/armnn/test/optimizations/ConvertConstantsBFloatTests.cpp | tuanhe/armnn | 8a4bd6671d0106dfb788b8c9019f2f9646770f8d | [
"MIT"
] | 1 | 2021-07-03T23:46:08.000Z | 2021-07-03T23:46:08.000Z | src/armnn/test/optimizations/ConvertConstantsBFloatTests.cpp | tuanhe/armnn | 8a4bd6671d0106dfb788b8c9019f2f9646770f8d | [
"MIT"
] | null | null | null | src/armnn/test/optimizations/ConvertConstantsBFloatTests.cpp | tuanhe/armnn | 8a4bd6671d0106dfb788b8c9019f2f9646770f8d | [
"MIT"
] | null | null | null | //
// Copyright © 2020 Arm Ltd. All rights reserved.
// SPDX-License-Identifier: MIT
//
#include "../TestUtils.hpp"
#include <BFloat16.hpp>
#include <Optimizer.hpp>
#include <boost/test/unit_test.hpp>
using namespace armnn;
BOOST_AUTO_TEST_SUITE(Optimizer)
using namespace armnn::optimizations;
BOOST_AUTO_TEST_CAS... | 41.141732 | 112 | 0.615694 | tuanhe |
e4cddf1819adfcf2e999c914bc4e672a8d4918a9 | 6,990 | cpp | C++ | profiling/sol_mandelbrot_concurrent/mandelbrot.cpp | allstarschh/training-handout | 86b16316e99ed5c1c7bc8dbb0a77dcf49c7e0a57 | [
"BSD-3-Clause-Clear"
] | null | null | null | profiling/sol_mandelbrot_concurrent/mandelbrot.cpp | allstarschh/training-handout | 86b16316e99ed5c1c7bc8dbb0a77dcf49c7e0a57 | [
"BSD-3-Clause-Clear"
] | null | null | null | profiling/sol_mandelbrot_concurrent/mandelbrot.cpp | allstarschh/training-handout | 86b16316e99ed5c1c7bc8dbb0a77dcf49c7e0a57 | [
"BSD-3-Clause-Clear"
] | null | null | null | /*************************************************************************
*
* Copyright (c) 2016-2019, Klaralvdalens Datakonsult AB (KDAB)
* All rights reserved.
*
* See the LICENSE.txt file shipped along with this file for the license.
*
*************************************************************************... | 31.917808 | 101 | 0.610587 | allstarschh |
e4cf37fa2b0df5f140ca34ca37dae542c375e293 | 4,889 | cpp | C++ | cocosim/FieldMap.cpp | YichaoLin/YichaoThesisSim | cebd16b925fce6bc8e690bbd6d1f0166f42b8b26 | [
"Apache-2.0"
] | null | null | null | cocosim/FieldMap.cpp | YichaoLin/YichaoThesisSim | cebd16b925fce6bc8e690bbd6d1f0166f42b8b26 | [
"Apache-2.0"
] | null | null | null | cocosim/FieldMap.cpp | YichaoLin/YichaoThesisSim | cebd16b925fce6bc8e690bbd6d1f0166f42b8b26 | [
"Apache-2.0"
] | null | null | null | #include "stdafx.h"
#include "FieldMap.h"
#include "CastleAlgorithmCommon.h"
FieldMap::FieldMap()
{
m_NodeCount = 0;
}
FieldMap::~FieldMap()
{
}
void FieldMap::SetNodeCount(int n)
{
m_NodeCount = n;
m_Bitmap.resize(n * n);
}
DirectedEdge FieldMap::GetConnection(int row, int col) const
{
DirectedEdge ret;
ret.... | 22.845794 | 88 | 0.632849 | YichaoLin |
e4cfd5ed09eb62a7e956760e005fbdf83bdc3d9d | 657 | cpp | C++ | 1.19.2018.lab3.cpp | luckylove/extra | 8d27ec0e62bdc2ab6a261d197b455fea07120a55 | [
"CC-BY-4.0",
"MIT"
] | null | null | null | 1.19.2018.lab3.cpp | luckylove/extra | 8d27ec0e62bdc2ab6a261d197b455fea07120a55 | [
"CC-BY-4.0",
"MIT"
] | null | null | null | 1.19.2018.lab3.cpp | luckylove/extra | 8d27ec0e62bdc2ab6a261d197b455fea07120a55 | [
"CC-BY-4.0",
"MIT"
] | null | null | null |
#include<bits/stdc++.h>
using namespace std;
int main()
{
int a,n,b,j,k,l,i,m;
cout<<"Write the number of elements in an array"<<endl;
cin>>n;
int arr[n];
cout<<"Write the elements of the array"<<endl;
for(i=0;i<n;i++)
{
cin>>arr[i];
}
cout<<"Write an elements to search"<<en... | 20.53125 | 88 | 0.487062 | luckylove |
e4d3400ed4808d0bb9f88a31579ad3a661387dbb | 1,893 | cpp | C++ | src/FileDialog.cpp | shin0bi-y/silice-text-editor | 1142ab6ce7eff073885d8be745b23d4816405c00 | [
"BSD-2-Clause"
] | 3 | 2021-06-14T12:02:35.000Z | 2021-06-25T16:31:42.000Z | src/FileDialog.cpp | shin0bi-y/silice-text-editor | 1142ab6ce7eff073885d8be745b23d4816405c00 | [
"BSD-2-Clause"
] | null | null | null | src/FileDialog.cpp | shin0bi-y/silice-text-editor | 1142ab6ce7eff073885d8be745b23d4816405c00 | [
"BSD-2-Clause"
] | 1 | 2021-05-20T13:32:43.000Z | 2021-05-20T13:32:43.000Z | #include "FileDialog.h"
#include "tinyfiledialogs/tinyfiledialogs.h"
#include <LibSL.h>
//-------------------------------------------------------
std::string newFileDialog(const std::vector<const char*>& _filter) {
const char* filename = tinyfd_inputBox("New File", "Enter a name <name.extension>", ".ice");
s... | 29.578125 | 142 | 0.56524 | shin0bi-y |
e4d394a33a4ac24fb31de7882cf04e598fc985c3 | 1,611 | hpp | C++ | Metazion/Type.hpp | KaleoFeng/Metazion | 5f1149d60aa87b391c2f40de7a89a5044701f2ca | [
"MIT"
] | 15 | 2018-10-30T07:49:02.000Z | 2020-10-20T06:27:08.000Z | Metazion/Type.hpp | kaleofeng/metazion | 5f1149d60aa87b391c2f40de7a89a5044701f2ca | [
"MIT"
] | null | null | null | Metazion/Type.hpp | kaleofeng/metazion | 5f1149d60aa87b391c2f40de7a89a5044701f2ca | [
"MIT"
] | 5 | 2020-12-04T07:39:31.000Z | 2021-11-23T03:16:39.000Z | #ifndef _MZ_TYPE_HPP_
#define _MZ_TYPE_HPP_
#include "Metazion/CoreInclude.hpp"
DECL_NAMESPACE_MZ_BEGIN
template<typename T>
struct LessCompare {
int operator ()(const T& left, const T& right) const {
if (left < right) {
return -1;
}
else if (left > right) {
return... | 19.178571 | 68 | 0.568591 | KaleoFeng |
e4d56bd93f51b81d1d95519c96b4745464ca4aa9 | 1,085 | hpp | C++ | include/crocoddyl/core/utils/math.hpp | paLeziart/crocoddyl | c31a27432f9f2b365faec31b5e7cb37d90b7abb0 | [
"BSD-3-Clause"
] | 1 | 2020-04-25T13:17:23.000Z | 2020-04-25T13:17:23.000Z | include/crocoddyl/core/utils/math.hpp | paLeziart/crocoddyl | c31a27432f9f2b365faec31b5e7cb37d90b7abb0 | [
"BSD-3-Clause"
] | null | null | null | include/crocoddyl/core/utils/math.hpp | paLeziart/crocoddyl | c31a27432f9f2b365faec31b5e7cb37d90b7abb0 | [
"BSD-3-Clause"
] | null | null | null | ///////////////////////////////////////////////////////////////////////////////
// BSD 3-Clause License
//
// Copyright (C) 2018-2019, LAAS-CNRS
// Copyright note valid unless otherwise stated in individual files.
// All rights reserved.
///////////////////////////////////////////////////////////////////////////////
#... | 36.166667 | 106 | 0.58894 | paLeziart |
e4d5b17aa0b5a71b7e02010eed05dddf2d3f6654 | 1,129 | cpp | C++ | 1052/main.cpp | Heliovic/PAT_Solutions | 7c5dd554654045308f2341713c3e52cc790beb59 | [
"MIT"
] | 2 | 2019-03-18T12:55:38.000Z | 2019-09-07T10:11:26.000Z | 1052/main.cpp | Heliovic/My_PAT_Answer | 7c5dd554654045308f2341713c3e52cc790beb59 | [
"MIT"
] | null | null | null | 1052/main.cpp | Heliovic/My_PAT_Answer | 7c5dd554654045308f2341713c3e52cc790beb59 | [
"MIT"
] | null | null | null | #include <cstdio>
#include <vector>
#include <utility>
#include <algorithm>
#define MAX_ADDR 102400
using namespace std;
struct node
{
int addr, key, next;
};
int N, HEAD;
node link[MAX_ADDR];
vector<pair<int, int> > ps;
bool cmp(pair<int, int> p1, pair<int, int> p2)
{
return p1.second < p2.second;
}
int... | 16.602941 | 81 | 0.470328 | Heliovic |
e4d5ecfa677fbe6585125df24b01eb4bc1db75c6 | 609 | cpp | C++ | plugin_III/game_III/CLines.cpp | JuniorDjjr/plugin-sdk | 887a243e9abe13fe2a8a4161abb68351af5da436 | [
"Zlib"
] | 3 | 2020-01-25T18:54:05.000Z | 2022-03-23T09:27:09.000Z | plugin_III/game_III/CLines.cpp | Kewun0/plugin-sdk-master | 561188779aaa4946ba4ab8ac3e044f2044261e4b | [
"Zlib"
] | null | null | null | plugin_III/game_III/CLines.cpp | Kewun0/plugin-sdk-master | 561188779aaa4946ba4ab8ac3e044f2044261e4b | [
"Zlib"
] | null | null | null | /*
Plugin-SDK (Grand Theft Auto 3) source file
Authors: GTA Community. See more here
https://github.com/DK22Pac/plugin-sdk
Do not delete this comment block. Respect others' work!
*/
#include "CLines.h"
// Converted from cdecl void CLines::RenderLineWithClipping(float x1,float y1,float z1,float x2,float y2,float z2,uin... | 46.846154 | 135 | 0.745484 | JuniorDjjr |
e4e17d73614d7cd830cfc8dcb78dbcad8f853915 | 3,096 | hpp | C++ | PwnAdventure3/CFramelessWindow.hpp | vm-enter/PwnAdventure3 | 579956d935bb8adc802281dd6df2050c3b4afb28 | [
"MIT"
] | 1 | 2021-02-24T03:52:56.000Z | 2021-02-24T03:52:56.000Z | PwnAdventure3/CFramelessWindow.hpp | vm-enter/PwnAdventure3 | 579956d935bb8adc802281dd6df2050c3b4afb28 | [
"MIT"
] | null | null | null | PwnAdventure3/CFramelessWindow.hpp | vm-enter/PwnAdventure3 | 579956d935bb8adc802281dd6df2050c3b4afb28 | [
"MIT"
] | null | null | null | /*
###############################################################################
# #
# The MIT License #
# ... | 28.934579 | 79 | 0.622739 | vm-enter |
e4e40fe1a37c0e40135d4edf74ce48724ee2cb94 | 41,200 | cxx | C++ | src/Cifti/CiftiParcelsMap.cxx | kiwifb/CiftiLib | 785f4518e2a9d476b56d728fd65c7b98830e9a3a | [
"BSD-2-Clause"
] | 15 | 2015-01-11T04:21:18.000Z | 2021-06-08T18:54:37.000Z | src/Cifti/CiftiParcelsMap.cxx | kiwifb/CiftiLib | 785f4518e2a9d476b56d728fd65c7b98830e9a3a | [
"BSD-2-Clause"
] | 19 | 2015-11-04T08:01:24.000Z | 2021-11-10T02:02:37.000Z | src/Cifti/CiftiParcelsMap.cxx | kiwifb/CiftiLib | 785f4518e2a9d476b56d728fd65c7b98830e9a3a | [
"BSD-2-Clause"
] | 11 | 2015-11-04T08:18:24.000Z | 2021-06-22T23:21:07.000Z | /*LICENSE_START*/
/*
* Copyright (c) 2014, Washington University School of Medicine
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without modification,
* are permitted provided that the following conditions are met:
*
* 1. Redistributions of source code must retain t... | 42.386831 | 206 | 0.579199 | kiwifb |
e4e6e009a5ac79261d2a017154e6c1ef59383a5a | 169 | cpp | C++ | src/ui/starred-file-item.cpp | Kashif-Nadeem/seafile-client | 999b3d0775d91aa7da51a66326134aabd5009a0e | [
"Apache-2.0"
] | 387 | 2015-01-01T14:20:30.000Z | 2022-03-29T04:30:36.000Z | src/ui/starred-file-item.cpp | Kashif-Nadeem/seafile-client | 999b3d0775d91aa7da51a66326134aabd5009a0e | [
"Apache-2.0"
] | 755 | 2015-01-03T17:00:46.000Z | 2022-03-31T07:10:45.000Z | src/ui/starred-file-item.cpp | Kashif-Nadeem/seafile-client | 999b3d0775d91aa7da51a66326134aabd5009a0e | [
"Apache-2.0"
] | 310 | 2015-01-09T00:45:56.000Z | 2022-03-18T12:17:51.000Z |
#include "starred-file-item.h"
StarredFileItem::StarredFileItem(const StarredItem& file)
: file_(file)
{
setFlags(Qt::ItemIsSelectable | Qt::ItemIsEnabled);
}
| 18.777778 | 57 | 0.727811 | Kashif-Nadeem |
e4ed357aba853e83a82fe566449704186119c0d9 | 3,946 | cpp | C++ | src/state_field_base.cpp | achreto/fm-translation-framework | a46afcc43f94c8a224f32fcad988a830689a9256 | [
"MIT"
] | null | null | null | src/state_field_base.cpp | achreto/fm-translation-framework | a46afcc43f94c8a224f32fcad988a830689a9256 | [
"MIT"
] | null | null | null | src/state_field_base.cpp | achreto/fm-translation-framework | a46afcc43f94c8a224f32fcad988a830689a9256 | [
"MIT"
] | null | null | null | /**
* The Register Base Class of the Translation Unit
*
* SPDX-License-Identifier: MIT
*
* Copyright (C) 2022, Reto Achermann (The University of British Columbia)
*/
#include <assert.h>
#include <framework/logging.hpp>
#include <framework/types.hpp>
#include <framework/state_field_base.hpp>
StateFieldBase::St... | 29.669173 | 97 | 0.583882 | achreto |
e4f012c9cc9cc65df7f4b1e5d830da55324a5651 | 1,745 | cpp | C++ | datastructures/binarytrees/largest_subtree_sum.cpp | oishikm12/cpp-collection | 4a454a6ed5b24570c7df0d4f0b692ae98c1ffa97 | [
"MIT"
] | 5 | 2021-05-17T12:32:42.000Z | 2021-12-12T21:09:55.000Z | datastructures/binarytrees/largest_subtree_sum.cpp | oishikm12/cpp-collection | 4a454a6ed5b24570c7df0d4f0b692ae98c1ffa97 | [
"MIT"
] | null | null | null | datastructures/binarytrees/largest_subtree_sum.cpp | oishikm12/cpp-collection | 4a454a6ed5b24570c7df0d4f0b692ae98c1ffa97 | [
"MIT"
] | 1 | 2021-05-13T20:29:57.000Z | 2021-05-13T20:29:57.000Z | #include <iostream>
using namespace std;
class Node {
public:
int data;
Node *left, *right;
Node() = default;
Node(int d) : data(d), left(NULL), right(NULL) {}
~Node() { delete left, delete right, left = right = NULL; }
};
Node* buildTree();
pair<int, int> getLargestSum(No... | 26.044776 | 93 | 0.618338 | oishikm12 |
e4f30c3c6dda2fef1641a3d445e5aadd1884144b | 13,985 | cc | C++ | src/xml-parser/commandXmlParser.cc | morxa/plexil-4 | 890e92aa259881dd944d573d6ec519341782a5f2 | [
"BSD-3-Clause"
] | 1 | 2020-02-27T03:35:50.000Z | 2020-02-27T03:35:50.000Z | src/xml-parser/commandXmlParser.cc | morxa/plexil-4 | 890e92aa259881dd944d573d6ec519341782a5f2 | [
"BSD-3-Clause"
] | null | null | null | src/xml-parser/commandXmlParser.cc | morxa/plexil-4 | 890e92aa259881dd944d573d6ec519341782a5f2 | [
"BSD-3-Clause"
] | null | null | null | /* Copyright (c) 2006-2018, Universities Space Research Association (USRA).
* 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
... | 44.396825 | 138 | 0.565391 | morxa |
900204a2ce98b2934c790ef75499909dba9b3ff1 | 7,916 | cpp | C++ | src/minimize.cpp | lei65537/Visual_Driven_Mesh_Repair | d8c27e0f345bc8b72cf336eb23630bf5be031da5 | [
"MIT"
] | 46 | 2019-10-30T15:58:08.000Z | 2022-03-10T11:20:07.000Z | src/minimize.cpp | lei65537/Visual_Driven_Mesh_Repair | d8c27e0f345bc8b72cf336eb23630bf5be031da5 | [
"MIT"
] | 6 | 2019-12-26T06:16:42.000Z | 2022-03-26T07:44:03.000Z | src/minimize.cpp | lei65537/Visual_Driven_Mesh_Repair | d8c27e0f345bc8b72cf336eb23630bf5be031da5 | [
"MIT"
] | 15 | 2019-10-31T02:08:15.000Z | 2022-02-23T09:21:13.000Z | #include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <assert.h>
#include "MRFEnergy.h"
#include "instances.inc"
template <class T> int MRFEnergy<T>::Minimize_TRW_S(Options& options, REAL& lowerBound, REAL& energy, REAL* min_marginals)
{
Node* i;
Node* j;
MRFEdge* e;
REAL vMin;
int iter;
REAL lowe... | 25.535484 | 122 | 0.572006 | lei65537 |
07e6face5263cfd57077e422ba640d53ef78dfa8 | 872 | cpp | C++ | source/Plan.cpp | florianvazelle/raytracing | e02df76f9ac79caf5a5965e419511ce1340651be | [
"Unlicense"
] | null | null | null | source/Plan.cpp | florianvazelle/raytracing | e02df76f9ac79caf5a5965e419511ce1340651be | [
"Unlicense"
] | 67 | 2021-02-13T13:34:33.000Z | 2021-11-04T04:14:14.000Z | source/Plan.cpp | florianvazelle/raytracing | e02df76f9ac79caf5a5965e419511ce1340651be | [
"Unlicense"
] | null | null | null | #include <rtx/Plan.h>
#include <cmath>
using namespace rtx;
bool Plan::intersect(const Ray& ray, Point& impact) const {
Vector O = globalToLocal(ray.origin);
Vector V = globalToLocal(ray.vector);
float t = -O[2] / V[2];
if (t > 0) {
impact[0] = O[0] + t * V[0];
impact[1] = O[1] + t * V[1];
impac... | 21.268293 | 73 | 0.591743 | florianvazelle |
07e71a1ea54bb9f954b8c88d4764c15e0ddec67d | 646 | cpp | C++ | plugins/opengl/src/texture/holder.cpp | cpreh/spacegameengine | 313a1c34160b42a5135f8223ffaa3a31bc075a01 | [
"BSL-1.0"
] | 2 | 2016-01-27T13:18:14.000Z | 2018-05-11T01:11:32.000Z | plugins/opengl/src/texture/holder.cpp | cpreh/spacegameengine | 313a1c34160b42a5135f8223ffaa3a31bc075a01 | [
"BSL-1.0"
] | null | null | null | plugins/opengl/src/texture/holder.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/holder.hpp>
#include <sge/opengl/texture/id.hpp>
#include <sge/opengl/... | 40.375 | 86 | 0.696594 | cpreh |
07e768bb868d9fefeb403918f904597c62f4d8e8 | 419 | cpp | C++ | cpp/problem9.cpp | jreese/euler | 0e2a809620cb02367120c0fbfbf9b419edd42c6e | [
"MIT"
] | 1 | 2015-12-19T09:59:39.000Z | 2015-12-19T09:59:39.000Z | cpp/problem9.cpp | jreese/euler | 0e2a809620cb02367120c0fbfbf9b419edd42c6e | [
"MIT"
] | null | null | null | cpp/problem9.cpp | jreese/euler | 0e2a809620cb02367120c0fbfbf9b419edd42c6e | [
"MIT"
] | null | null | null | #include <stdio.h>
#include <stdlib.h>
using namespace std;
#define uint unsigned int
int main(int argc, char* argv[])
{
bool found = false;
uint a = 100;
uint b = 0, c = 0;
while (!found && a < 333)
{
b = a + 1;
while (!found && b < 500)
{
c = 1000 - b - a;
if (a*a + b*b == c*c)
{
found =... | 11.324324 | 47 | 0.472554 | jreese |
07e8f5e632988ec0a8eeb24977e22560c80c0cd0 | 3,216 | cxx | C++ | test/template2.cxx | paulwratt/cin-5.34.00 | 036a8202f11a4a0e29ccb10d3c02f304584cda95 | [
"MIT"
] | 10 | 2018-03-26T07:41:44.000Z | 2021-11-06T08:33:24.000Z | test/template2.cxx | paulwratt/cin-5.34.00 | 036a8202f11a4a0e29ccb10d3c02f304584cda95 | [
"MIT"
] | null | null | null | test/template2.cxx | paulwratt/cin-5.34.00 | 036a8202f11a4a0e29ccb10d3c02f304584cda95 | [
"MIT"
] | 1 | 2020-11-17T03:17:00.000Z | 2020-11-17T03:17:00.000Z | /* -*- C++ -*- */
/*************************************************************************
* Copyright(c) 1995~2005 Masaharu Goto (root-cint@cern.ch)
*
* For the licensing terms see the file COPYING
*
************************************************************************/
//
// cint test of global function te... | 21.583893 | 86 | 0.366604 | paulwratt |
07ebab26379dc3a2158ab42e0191c7c65bc4e2a3 | 1,561 | cpp | C++ | UI/OnNotify.cpp | jimbeveridge/mfcmapi | 9f01b707a73bcede539e0b057a855bddaf1e9ae9 | [
"MIT"
] | null | null | null | UI/OnNotify.cpp | jimbeveridge/mfcmapi | 9f01b707a73bcede539e0b057a855bddaf1e9ae9 | [
"MIT"
] | 1 | 2019-11-21T15:24:31.000Z | 2019-11-21T18:05:57.000Z | UI/OnNotify.cpp | youtiaocoder/mfcmapi-1 | f2e58e7153b033b92c0b3989010428a2291d8527 | [
"MIT"
] | null | null | null | #include <StdAfx.h>
#include <UI/OnNotify.h>
#include <core/utility/error.h>
namespace mapi
{
namespace mapiui
{
void OnNotify(HWND hWndParent, HTREEITEM hTreeParent, ULONG cNotify, LPNOTIFICATION lpNotifications)
{
if (!hWndParent) return;
for (ULONG i = 0; i < cNotify; i++)
{
if (fnevNewMail == l... | 28.381818 | 102 | 0.668802 | jimbeveridge |
07ebc14cb57424c55da126711469484c16cbef6f | 446 | hpp | C++ | test/unit/unit.hpp | rymut/mexcppclass | a6a1873a4c4d4f588490d3dc070cb7500fb82214 | [
"ECL-2.0",
"Apache-2.0"
] | 1 | 2019-07-28T23:59:48.000Z | 2019-07-28T23:59:48.000Z | test/unit/unit.hpp | rymut/mexcppclass | a6a1873a4c4d4f588490d3dc070cb7500fb82214 | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | test/unit/unit.hpp | rymut/mexcppclass | a6a1873a4c4d4f588490d3dc070cb7500fb82214 | [
"ECL-2.0",
"Apache-2.0"
] | 3 | 2017-08-25T03:02:36.000Z | 2020-04-08T17:02:42.000Z | /// Copyright (C) 2017 by Boguslaw Rymut
///
/// This file is distributed under the Apache 2.0 License
/// See LICENSE for details.
#ifndef MEXCPPCLASS_TEST_UNIT_UNIT_HPP_
#define MEXCPPCLASS_TEST_UNIT_UNIT_HPP_
namespace mexcppclass {
namespace test {
/*! \brief Unit test related code
*/
namespace uni... | 21.238095 | 58 | 0.715247 | rymut |
07f0d67097aa61672d158f023f967c1284c38879 | 7,419 | cpp | C++ | Engine/source/IO/JSON.cpp | mbatc/Fractal | 0df1f6a64d03676e3dd8af0686413f6ffdbf6627 | [
"MIT"
] | null | null | null | Engine/source/IO/JSON.cpp | mbatc/Fractal | 0df1f6a64d03676e3dd8af0686413f6ffdbf6627 | [
"MIT"
] | 34 | 2021-05-09T10:31:24.000Z | 2022-01-24T11:26:48.000Z | Engine/source/IO/JSON.cpp | mbatc/Fractal | 0df1f6a64d03676e3dd8af0686413f6ffdbf6627 | [
"MIT"
] | null | null | null | #include "Fractal/IO/JSON.h"
#include "Fractal/IO/IReader.h"
#include "Fractal/IO/IWriter.h"
#include "Fractal/IO/ISerializedObject.h"
#include "Fractal/Ref.h"
#include "ctString.h"
#include "ctStringValue.h"
namespace Fractal
{
namespace Impl
{
class JSONReader : public IJSONReader
{
FRACTAL_DEFAUL... | 23.932258 | 103 | 0.508424 | mbatc |
07f4fa929f9fab163b16e84d7bc3e73f0a7efbe8 | 1,024 | hpp | C++ | include/ananasgfx/gfx/Camera.hpp | pcbaecker/ananasgfx | 0637554bf82b990713314a24e4a6ead299be949a | [
"MIT"
] | 1 | 2019-01-28T13:48:17.000Z | 2019-01-28T13:48:17.000Z | include/ananasgfx/gfx/Camera.hpp | pcbaecker/ananasgfx | 0637554bf82b990713314a24e4a6ead299be949a | [
"MIT"
] | 11 | 2019-01-28T13:59:36.000Z | 2019-02-09T14:59:23.000Z | include/ananasgfx/gfx/Camera.hpp | pcbaecker/ananasgfx | 0637554bf82b990713314a24e4a6ead299be949a | [
"MIT"
] | null | null | null | #ifndef GFX_CAMERA_H
#define GFX_CAMERA_H
#include <glm/glm.hpp>
namespace gfx {
class Window;
/**
* @brief The base camera class that handles the 3d point of view.
*/
class Camera {
public:
/**
* @brief Constructor.
*/
Camera() noexcept;
/**
... | 19.320755 | 70 | 0.512695 | pcbaecker |
07f708c18541c7c3efe5c44f00a3278ae197f09e | 477 | hpp | C++ | include/spectral/flat.hpp | TomCrypto/Lambda | 3dca268839edc0e89b13180ffc362938f6a6ab07 | [
"BSD-2-Clause-FreeBSD"
] | 55 | 2015-03-27T17:44:19.000Z | 2021-03-25T12:04:46.000Z | include/spectral/flat.hpp | TomCrypto/Lambda | 3dca268839edc0e89b13180ffc362938f6a6ab07 | [
"BSD-2-Clause-FreeBSD"
] | 3 | 2015-02-17T21:26:32.000Z | 2019-10-21T03:14:27.000Z | include/spectral/flat.hpp | TomCrypto/Lambda | 3dca268839edc0e89b13180ffc362938f6a6ab07 | [
"BSD-2-Clause-FreeBSD"
] | 2 | 2017-12-12T03:43:58.000Z | 2018-05-31T12:40:11.000Z | #ifndef FLAT_H
#define FLAT_H
#include <spectral/distribution.hpp>
/* This is a flat (constant) spectral distribution. */
class Flat : public Distribution
{
private:
float constant;
public:
/* This method creates a spectral distribution from scene file information. */
Flat(std::fstream... | 23.85 | 86 | 0.677149 | TomCrypto |
07f739397d7f0ce5bdc61b288d0d39ec1a4adc1a | 479 | hpp | C++ | include/StateManager.hpp | najemhamo/Snake | d96b57a1303e382598b2128e2d6c0dfe6f971feb | [
"Apache-2.0"
] | null | null | null | include/StateManager.hpp | najemhamo/Snake | d96b57a1303e382598b2128e2d6c0dfe6f971feb | [
"Apache-2.0"
] | null | null | null | include/StateManager.hpp | najemhamo/Snake | d96b57a1303e382598b2128e2d6c0dfe6f971feb | [
"Apache-2.0"
] | null | null | null | #pragma once
#include <stack>
#include <memory>
class State;
class StateManager
{
public:
StateManager() = default;
~StateManager() = default;
void Add(std::unique_ptr<State> state);
void PopCurrent();
void ProcessStateChange();
std::unique_ptr<State> &GetCurrentState();
bool IsEmpty() c... | 17.740741 | 48 | 0.670146 | najemhamo |
07fb75bba0b31128e7917d067f16b84aec466be2 | 1,196 | cpp | C++ | codeforces/C - Make It Equal/Accepted.cpp | kzvd4729/Problem-Solving | 13b105e725a4c2f8db7fecc5d7a8f932b9fef4ab | [
"MIT"
] | 1 | 2022-02-11T16:55:36.000Z | 2022-02-11T16:55:36.000Z | codeforces/C - Make It Equal/Accepted.cpp | kzvd4729/Problem-Solving | 13b105e725a4c2f8db7fecc5d7a8f932b9fef4ab | [
"MIT"
] | null | null | null | codeforces/C - Make It Equal/Accepted.cpp | kzvd4729/Problem-Solving | 13b105e725a4c2f8db7fecc5d7a8f932b9fef4ab | [
"MIT"
] | null | null | null | /****************************************************************************************
* @author: kzvd4729 created: Oct/11/2018 21:20
* solution_verdict: Accepted language: GNU C++14
* run... | 26 | 111 | 0.392977 | kzvd4729 |
07fef6806c586d375edb7cf4e8b27235409f2c94 | 15,075 | hxx | C++ | opencascade/OpenGl_GlCore11Fwd.hxx | mgreminger/OCP | 92eacb99497cd52b419c8a4a8ab0abab2330ed42 | [
"Apache-2.0"
] | null | null | null | opencascade/OpenGl_GlCore11Fwd.hxx | mgreminger/OCP | 92eacb99497cd52b419c8a4a8ab0abab2330ed42 | [
"Apache-2.0"
] | null | null | null | opencascade/OpenGl_GlCore11Fwd.hxx | mgreminger/OCP | 92eacb99497cd52b419c8a4a8ab0abab2330ed42 | [
"Apache-2.0"
] | null | null | null | // Created on: 2014-03-17
// Created by: Kirill GAVRILOV
// Copyright (c) 2014 OPEN CASCADE SAS
//
// This file is part of Open CASCADE Technology software library.
//
// This library is free software; you can redistribute it and/or modify it under
// the terms of the GNU Lesser General Public License version 2.1 as pu... | 26.447368 | 105 | 0.664212 | mgreminger |
580378cd50b114b668a04818ed5e1ec51fc4bfe9 | 771 | cpp | C++ | src/tepptest/test_read_csv.cpp | FabienCarmagnac/tepp | b0eb4f3bd645daf75c68225964bd9ea1b9c2f9eb | [
"Apache-2.0"
] | 3 | 2015-09-15T14:36:56.000Z | 2017-01-12T01:37:17.000Z | src/tepptest/test_read_csv.cpp | FabienCarmagnac/tepp | b0eb4f3bd645daf75c68225964bd9ea1b9c2f9eb | [
"Apache-2.0"
] | 8 | 2019-05-11T13:40:20.000Z | 2019-05-15T06:29:35.000Z | src/tepptest/test_read_csv.cpp | FabienCarmagnac/tepp | b0eb4f3bd645daf75c68225964bd9ea1b9c2f9eb | [
"Apache-2.0"
] | 4 | 2016-11-24T08:31:56.000Z | 2021-06-03T08:43:16.000Z | #include "tepptest/helpers.h"
#include "tepp/csvfile.h"
#include "tepp/env.h"
#include "tepp/string_tools.h"
#include "tepptest/helpers.h"
class FakePair
{
public:
std::string a, b;
static FakePair make(const tepp::vec_str & v, bool & valid)
{
FakePair f;
if (v.size() < 2 || v[0] == "B") v... | 20.289474 | 81 | 0.526589 | FabienCarmagnac |
58072637f7a2c50bc5e8561366fc8beb1619ab90 | 1,543 | cpp | C++ | src/cvm/defaults_int.cpp | thomas-pendragon/dablang | f8e1e0835138b6dc6a675da231e176ca20b1347a | [
"MIT"
] | 2 | 2017-06-02T02:55:36.000Z | 2017-06-02T22:15:46.000Z | src/cvm/defaults_int.cpp | thomas-pendragon/dablang | f8e1e0835138b6dc6a675da231e176ca20b1347a | [
"MIT"
] | 1 | 2020-06-19T15:58:33.000Z | 2020-06-19T15:58:33.000Z | src/cvm/defaults_int.cpp | thomas-pendragon/dablang | f8e1e0835138b6dc6a675da231e176ca20b1347a | [
"MIT"
] | 1 | 2017-06-02T22:17:52.000Z | 2017-06-02T22:17:52.000Z | #include "cvm.h"
#include "defaults_shared.h"
#include <math.h>
#define CREATE_INT_CLASS(small, BIG) \
auto &small##_class = get_class(CLASS_##BIG); \
DAB_MEMBER_NUMERIC_OPERATORS(small##_class, CLA... | 33.543478 | 100 | 0.613091 | thomas-pendragon |
58168bc25833daa4361a80e9826668ce8a940f9c | 2,169 | cpp | C++ | src/pgta_composer/PGTALibraryItem.cpp | kt2davie/PGTAComposer | d2e99851b60e6796abf5de1b7d76f850585a39fd | [
"MIT"
] | 2 | 2015-03-27T19:58:20.000Z | 2015-05-18T02:04:33.000Z | src/pgta_composer/PGTALibraryItem.cpp | PGTA/PGTAComposer | d2e99851b60e6796abf5de1b7d76f850585a39fd | [
"MIT"
] | null | null | null | src/pgta_composer/PGTALibraryItem.cpp | PGTA/PGTAComposer | d2e99851b60e6796abf5de1b7d76f850585a39fd | [
"MIT"
] | null | null | null | #include "PGTALibraryItem.h"
PGTALibraryItem::PGTALibraryItem(const QVector<QVariant> &data, PGTALibraryItem *parent, const bool isFolder) :
m_itemData(data),
m_parent(parent),
m_isFolder(isFolder)
{
}
PGTALibraryItem::~PGTALibraryItem()
{
qDeleteAll(m_childItems);
}
bool PGTALibraryItem::IsFolder() ... | 19.366071 | 111 | 0.665745 | kt2davie |
581ac0bfa14d55fa1637010fdf2cc2d4fb2296e1 | 2,903 | cpp | C++ | src/eepp/ui/uimenucheckbox.cpp | jayrulez/eepp | 09c5c1b6b4c0306bb0a188474778c6949b5df3a7 | [
"MIT"
] | 37 | 2020-01-20T06:21:24.000Z | 2022-03-21T17:44:50.000Z | src/eepp/ui/uimenucheckbox.cpp | jayrulez/eepp | 09c5c1b6b4c0306bb0a188474778c6949b5df3a7 | [
"MIT"
] | null | null | null | src/eepp/ui/uimenucheckbox.cpp | jayrulez/eepp | 09c5c1b6b4c0306bb0a188474778c6949b5df3a7 | [
"MIT"
] | 9 | 2019-03-22T00:33:07.000Z | 2022-03-01T01:35:59.000Z | #include <eepp/ui/uimenu.hpp>
#include <eepp/ui/uimenucheckbox.hpp>
#include <eepp/ui/uitheme.hpp>
namespace EE { namespace UI {
UIMenuCheckBox* UIMenuCheckBox::New() {
return eeNew( UIMenuCheckBox, () );
}
UIMenuCheckBox::UIMenuCheckBox() :
UIMenuItem( "menu::checkbox" ), mActive( false ), mSkinActive( NULL ), mS... | 23.039683 | 95 | 0.652084 | jayrulez |
581ae916f3930c6ed1e5a37d85f23c996c84ba99 | 149 | cpp | C++ | trbl/Context.cpp | Lenzebo/tractable | 7c4059db3169c790c34ea4856b7a8c4c0fffbd98 | [
"MIT"
] | null | null | null | trbl/Context.cpp | Lenzebo/tractable | 7c4059db3169c790c34ea4856b7a8c4c0fffbd98 | [
"MIT"
] | null | null | null | trbl/Context.cpp | Lenzebo/tractable | 7c4059db3169c790c34ea4856b7a8c4c0fffbd98 | [
"MIT"
] | null | null | null | #include "Context.h"
namespace trbl {
Context& getContext()
{
static thread_local Context context;
return context;
}
} // namespace trbl
| 12.416667 | 40 | 0.691275 | Lenzebo |
581cf3da4031fd7f2583a9a215f5a5ae075414ac | 1,090 | cpp | C++ | Source/UtilsPep/UiPepCtrls/UiPepCtrls.cpp | keshbach/PEP | 75071aee89a718d318e13c55eee9eb5b9ae4e987 | [
"Apache-2.0"
] | 1 | 2021-12-11T14:21:55.000Z | 2021-12-11T14:21:55.000Z | Source/UtilsPep/UiPepCtrls/UiPepCtrls.cpp | keshbach/PEP | 75071aee89a718d318e13c55eee9eb5b9ae4e987 | [
"Apache-2.0"
] | null | null | null | Source/UtilsPep/UiPepCtrls/UiPepCtrls.cpp | keshbach/PEP | 75071aee89a718d318e13c55eee9eb5b9ae4e987 | [
"Apache-2.0"
] | 1 | 2021-06-23T14:01:55.000Z | 2021-06-23T14:01:55.000Z | /***************************************************************************/
/* Copyright (C) 2010-2021 Kevin Eshbach */
/***************************************************************************/
#include <windows.h>
#include <UtilsPep/UiPepCtrls.h>
#include <Utils/UtHeap.h>
#i... | 24.772727 | 77 | 0.493578 | keshbach |
58233f970ed2adca98806b076e459541cef6a7cf | 14,631 | cpp | C++ | libs/msm/doc/PDF/examples/iPodEuml.cpp | zyiacas/boost-doc-zh | 689e5a3a0a4dbead1a960f7b039e3decda54aa2c | [
"BSL-1.0"
] | 198 | 2015-01-13T05:47:18.000Z | 2022-03-09T04:46:46.000Z | libs/msm/doc/PDF/examples/iPodEuml.cpp | sdfict/boost-doc-zh | 689e5a3a0a4dbead1a960f7b039e3decda54aa2c | [
"BSL-1.0"
] | 9 | 2015-01-28T16:33:19.000Z | 2020-04-12T23:03:28.000Z | libs/msm/doc/PDF/examples/iPodEuml.cpp | sdfict/boost-doc-zh | 689e5a3a0a4dbead1a960f7b039e3decda54aa2c | [
"BSL-1.0"
] | 139 | 2015-01-15T20:09:31.000Z | 2022-01-31T15:21:16.000Z | // Copyright 2010 Christophe Henry
// henry UNDERSCORE christophe AT hotmail DOT com
// This is an extended version of the state machine available in the boost::mpl library
// Distributed under the same license as the original.
// Copyright for the original version:
// Copyright 2005 David Abrahams and Aleksey Gur... | 53.790441 | 111 | 0.531884 | zyiacas |
5823825f1bbb7aa59d04e565df29780bc41c8894 | 9,765 | cxx | C++ | TrackedScreenAR/qSlicerTrackedScreenARModuleWidget.cxx | VASST/SlicerAugmentedReality | 23d4dde5943d40731a87e892a6ca46c3d7bfa668 | [
"MIT"
] | null | null | null | TrackedScreenAR/qSlicerTrackedScreenARModuleWidget.cxx | VASST/SlicerAugmentedReality | 23d4dde5943d40731a87e892a6ca46c3d7bfa668 | [
"MIT"
] | null | null | null | TrackedScreenAR/qSlicerTrackedScreenARModuleWidget.cxx | VASST/SlicerAugmentedReality | 23d4dde5943d40731a87e892a6ca46c3d7bfa668 | [
"MIT"
] | null | null | null | /*==============================================================================
Program: 3D Slicer
Portions (c) Copyright Brigham and Women's Hospital (BWH) All Rights Reserved.
See COPYRIGHT.txt
or http://www.slicer.org/copyright/copyright.txt for details.
Unless required by applicable law or a... | 41.029412 | 187 | 0.6553 | VASST |
582a5e665eff9ddfa696e6f73f9781817e8462d0 | 762 | cc | C++ | test/system/string.cc | rpjohnst/dejavu-llvm | 568dfa38f226a8994d0bfc07db2cdb466db10529 | [
"MIT"
] | 6 | 2017-07-13T09:01:38.000Z | 2021-11-03T06:50:02.000Z | test/system/string.cc | rpjohnst/dejavu-llvm | 568dfa38f226a8994d0bfc07db2cdb466db10529 | [
"MIT"
] | 9 | 2018-02-08T23:19:47.000Z | 2018-02-12T19:09:01.000Z | test/system/string.cc | rpjohnst/dejavu-llvm | 568dfa38f226a8994d0bfc07db2cdb466db10529 | [
"MIT"
] | 1 | 2020-05-17T17:34:03.000Z | 2020-05-17T17:34:03.000Z | #include <dejavu/system/string.h>
#include <gtest/gtest.h>
#include <memory>
static const char t[] = "abcde";
static const size_t l = sizeof(t) - 1;
TEST(string, allocate) {
string *s = new (l) string(l, t);
s->retain();
EXPECT_EQ(0, memcmp(s->data, t, l));
}
TEST(string, intern) {
string_pool pool;
string *p... | 16.565217 | 38 | 0.628609 | rpjohnst |
582a73d4edf3444ba85de0dcd1601c4bd06d325a | 23,349 | cpp | C++ | src/main.cpp | wkhattak/Path-Planning | ba43f73efc1038819744cd722da0d848b70ff8c9 | [
"MIT"
] | null | null | null | src/main.cpp | wkhattak/Path-Planning | ba43f73efc1038819744cd722da0d848b70ff8c9 | [
"MIT"
] | null | null | null | src/main.cpp | wkhattak/Path-Planning | ba43f73efc1038819744cd722da0d848b70ff8c9 | [
"MIT"
] | null | null | null | #include <fstream>
#include <math.h>
#include <uWS/uWS.h>
#include <chrono>
#include <iostream>
#include <thread>
#include <vector>
#include "Eigen-3.3/Eigen/Core"
#include "Eigen-3.3/Eigen/QR"
#include "json.hpp"
#include "spline.h"
using namespace std;
// for convenience
using json = nlohmann::json;
// For convert... | 41.398936 | 284 | 0.579811 | wkhattak |
582b3632ef19af0f74b5c4dd9e7a414921ae585c | 270 | cpp | C++ | 137#single-number-ii/solution.cpp | llwwns/leetcode_solutions | e352c9bf6399ab3ee0f23889e70361c9f2a3bd33 | [
"MIT"
] | null | null | null | 137#single-number-ii/solution.cpp | llwwns/leetcode_solutions | e352c9bf6399ab3ee0f23889e70361c9f2a3bd33 | [
"MIT"
] | null | null | null | 137#single-number-ii/solution.cpp | llwwns/leetcode_solutions | e352c9bf6399ab3ee0f23889e70361c9f2a3bd33 | [
"MIT"
] | null | null | null | class Solution {
public:
int singleNumber(vector<int>& nums) {
int a = 0, b = 0, t;
for (int n : nums) {
t = (b & n) | (a & ~n);
b = (n & ~(a | b)) | (b & ~n);
a = t;
}
return b;
}
}; | 22.5 | 43 | 0.318519 | llwwns |
582bbe54c4be7b4a32c8ae80e1c26298cc4cba5f | 39,942 | cpp | C++ | PWMServo/SavedImplementations/Impl3/TestServos/avrTimerCounter.cpp | ghgemmer/Halloween | 32fb51fb6e41eb5c80fa599c2c986354304a32ea | [
"MIT"
] | null | null | null | PWMServo/SavedImplementations/Impl3/TestServos/avrTimerCounter.cpp | ghgemmer/Halloween | 32fb51fb6e41eb5c80fa599c2c986354304a32ea | [
"MIT"
] | null | null | null | PWMServo/SavedImplementations/Impl3/TestServos/avrTimerCounter.cpp | ghgemmer/Halloween | 32fb51fb6e41eb5c80fa599c2c986354304a32ea | [
"MIT"
] | null | null | null | #if defined(PWM_SERVO_DEBUG)
#include <stdio.h>
#include <string.h>
#endif
#include <avr/interrupt.h>
#if defined(ARDUINO) && ARDUINO >= 100
#include "Arduino.h"
#else
#include "wiring.h"
#endif
#include "PWMServoNew.h"
/*
avrTimerCounter.cpp - Hardware Servo Timer Library
http://arduiniana.org/libraries/pwmserv... | 40.509128 | 170 | 0.699865 | ghgemmer |
582f2dcec887952b23a4a8ee560d65dfb715e8a6 | 2,183 | cpp | C++ | source/Pictus/cnt_color_hls.cpp | poppeman/Pictus | 0e58285b89292d0b221ab4d09911ef439711cc59 | [
"MIT"
] | 73 | 2015-01-19T17:38:26.000Z | 2022-02-15T06:16:08.000Z | source/Pictus/cnt_color_hls.cpp | poppeman/Pictus | 0e58285b89292d0b221ab4d09911ef439711cc59 | [
"MIT"
] | 75 | 2015-01-01T17:32:24.000Z | 2018-10-18T08:19:08.000Z | source/Pictus/cnt_color_hls.cpp | poppeman/Pictus | 0e58285b89292d0b221ab4d09911ef439711cc59 | [
"MIT"
] | 18 | 2015-01-05T04:57:18.000Z | 2022-03-06T01:35:10.000Z | #include "cnt_color_hls.h"
#include "app_types.h"
#include "wintypes.h"
#include "settings_layout.h"
#include <wx/statbox.h>
#include <wx/sizer.h>
#include <wx/stattext.h>
wxDEFINE_EVENT(COLOR_CHANGED_HLS, wxCommandEvent);
namespace App
{
BEGIN_EVENT_TABLE(ControlColorHls, wxStaticBox)
EVT_SPINCTRL(HId, ControlC... | 36.383333 | 138 | 0.741182 | poppeman |
58316bf9b18e3593a7c853cde57b203fe4c5a362 | 1,179 | hpp | C++ | ex02/FragTrap.hpp | Igors78/cpp03 | 211de909cee642e63dca1bb273cb910c6cdf4104 | [
"Unlicense"
] | 3 | 2021-11-14T06:49:22.000Z | 2022-01-27T19:23:23.000Z | ex02/FragTrap.hpp | Igors78/cpp03 | 211de909cee642e63dca1bb273cb910c6cdf4104 | [
"Unlicense"
] | null | null | null | ex02/FragTrap.hpp | Igors78/cpp03 | 211de909cee642e63dca1bb273cb910c6cdf4104 | [
"Unlicense"
] | null | null | null | /* ************************************************************************** */
/* */
/* ::: :::::::: */
/* FragTrap.hpp :+: :+: :+: ... | 39.3 | 80 | 0.276506 | Igors78 |
5831d3ae02c5d0487cbccd185e082d10ec376cfd | 9,147 | cpp | C++ | src/projects/repeat_resolution/paths.cpp | fedarko/LJA | f20c85395d741b0f94f6d0172c7451d72d7c8713 | [
"BSD-3-Clause"
] | null | null | null | src/projects/repeat_resolution/paths.cpp | fedarko/LJA | f20c85395d741b0f94f6d0172c7451d72d7c8713 | [
"BSD-3-Clause"
] | null | null | null | src/projects/repeat_resolution/paths.cpp | fedarko/LJA | f20c85395d741b0f94f6d0172c7451d72d7c8713 | [
"BSD-3-Clause"
] | null | null | null | //
// Created by Andrey Bzikadze on 11/09/21.
//
#include "paths.hpp"
using namespace repeat_resolution;
bool repeat_resolution::operator==(const RRPath &lhs, const RRPath &rhs) {
return lhs.id==rhs.id and lhs.edge_list==rhs.edge_list;
}
bool repeat_resolution::operator==(const IteratorInPath &lhs,
... | 36.588 | 103 | 0.591888 | fedarko |
583233c8f7623f3030f4b3adbefa7f53e6e03534 | 873 | cpp | C++ | 1008-construct-binary-search-tree-from-preorder-traversal/1008-construct-binary-search-tree-from-preorder-traversal.cpp | Ananyaas/LeetCodeDaily | e134e20ac02f26dc40881c376656d3294be0df2c | [
"MIT"
] | 2 | 2022-01-02T19:15:00.000Z | 2022-01-05T21:12:24.000Z | 1008-construct-binary-search-tree-from-preorder-traversal/1008-construct-binary-search-tree-from-preorder-traversal.cpp | Ananyaas/LeetCodeDaily | e134e20ac02f26dc40881c376656d3294be0df2c | [
"MIT"
] | null | null | null | 1008-construct-binary-search-tree-from-preorder-traversal/1008-construct-binary-search-tree-from-preorder-traversal.cpp | Ananyaas/LeetCodeDaily | e134e20ac02f26dc40881c376656d3294be0df2c | [
"MIT"
] | 1 | 2022-03-11T17:11:07.000Z | 2022-03-11T17:11:07.000Z | /**
* Definition for a binary tree node.
* struct TreeNode {
* int val;
* TreeNode *left;
* TreeNode *right;
* TreeNode() : val(0), left(nullptr), right(nullptr) {}
* TreeNode(int x) : val(x), left(nullptr), right(nullptr) {}
* TreeNode(int x, TreeNode *left, TreeNode *right) : val(x), l... | 29.1 | 93 | 0.530355 | Ananyaas |
58338453c47b015359389ecf24a7601cbea1c0dd | 5,698 | cpp | C++ | tests/messaging/test_autoservice.cpp | arntanguy/libqi | 7f3e1394cb26126b26fa7ff54d2de1371a1c9f96 | [
"BSD-3-Clause"
] | 61 | 2015-01-08T08:05:28.000Z | 2022-01-07T16:47:47.000Z | tests/messaging/test_autoservice.cpp | arntanguy/libqi | 7f3e1394cb26126b26fa7ff54d2de1371a1c9f96 | [
"BSD-3-Clause"
] | 30 | 2015-04-06T21:41:18.000Z | 2021-08-18T13:24:51.000Z | tests/messaging/test_autoservice.cpp | arntanguy/libqi | 7f3e1394cb26126b26fa7ff54d2de1371a1c9f96 | [
"BSD-3-Clause"
] | 64 | 2015-02-23T20:01:11.000Z | 2022-03-14T13:31:20.000Z | #include <vector>
#include <iostream>
#include <string>
#include <gtest/gtest.h>
#include <qi/session.hpp>
#include <qi/anyobject.hpp>
#include <qi/type/dynamicobjectbuilder.hpp>
#include <qi/type/dynamicobject.hpp>
#include <qi/type/objecttypebuilder.hpp>
#include <qi/messaging/gateway.hpp>
#include <qi/os.hpp>
#inc... | 22 | 92 | 0.655844 | arntanguy |
58350c5a9adc840a064336c585a4be6c38deab17 | 2,797 | cpp | C++ | Medusa/Medusa/Graphics/State/FeatureRenderState.cpp | tony2u/Medusa | d4ac8181a693bc796681880e09aac3fdba9aaaaf | [
"MIT"
] | 143 | 2015-11-18T01:06:03.000Z | 2022-03-30T03:08:54.000Z | Medusa/Medusa/Graphics/State/FeatureRenderState.cpp | tony2u/Medusa | d4ac8181a693bc796681880e09aac3fdba9aaaaf | [
"MIT"
] | 1 | 2019-10-23T13:00:40.000Z | 2019-10-23T13:00:40.000Z | Medusa/Medusa/Graphics/State/FeatureRenderState.cpp | tony2u/Medusa | d4ac8181a693bc796681880e09aac3fdba9aaaaf | [
"MIT"
] | 45 | 2015-11-18T01:17:59.000Z | 2022-03-05T12:29:45.000Z | // Copyright (c) 2015 fjz13. All rights reserved.
// Use of this source code is governed by a MIT-style
// license that can be found in the LICENSE file.
#include "MedusaPreCompiled.h"
#include "Graphics/State/FeatureRenderState.h"
#include "Graphics/Render/Render.h"
#include "Rendering/RenderingContext.h"
#incl... | 30.402174 | 122 | 0.761888 | tony2u |
583a845a3978424cef8ac25403ca5b242c4a0f9b | 1,597 | hpp | C++ | src/org/apache/poi/sl/draw/DrawFontInfo.hpp | pebble2015/cpoi | 6dcc0c5e13e3e722b4ef9fd0baffbf62bf71ead6 | [
"Apache-2.0"
] | null | null | null | src/org/apache/poi/sl/draw/DrawFontInfo.hpp | pebble2015/cpoi | 6dcc0c5e13e3e722b4ef9fd0baffbf62bf71ead6 | [
"Apache-2.0"
] | null | null | null | src/org/apache/poi/sl/draw/DrawFontInfo.hpp | pebble2015/cpoi | 6dcc0c5e13e3e722b4ef9fd0baffbf62bf71ead6 | [
"Apache-2.0"
] | null | null | null | // Generated from /POI/java/org/apache/poi/sl/draw/DrawFontInfo.java
#pragma once
#include <fwd-POI.hpp>
#include <java/lang/fwd-POI.hpp>
#include <org/apache/poi/common/usermodel/fonts/fwd-POI.hpp>
#include <org/apache/poi/sl/draw/fwd-POI.hpp>
#include <java/lang/Object.hpp>
#include <org/apache/poi/common/usermodel... | 30.132075 | 84 | 0.701941 | pebble2015 |
58417853edbb976eab4e1747f13168684234dfff | 638 | cpp | C++ | GFG/C++ BASIC/2 - Flow Control, Function & Loops/while_loop_print_table.cpp | IamBikramPurkait/My-CP-Journey | bbb7fc533b8bcf79367e3f38f4a04de075b43d64 | [
"MIT"
] | 1 | 2021-04-24T03:39:50.000Z | 2021-04-24T03:39:50.000Z | GFG/C++ BASIC/2 - Flow Control, Function & Loops/while_loop_print_table.cpp | IamBikramPurkait/My-CP-Journey | bbb7fc533b8bcf79367e3f38f4a04de075b43d64 | [
"MIT"
] | null | null | null | GFG/C++ BASIC/2 - Flow Control, Function & Loops/while_loop_print_table.cpp | IamBikramPurkait/My-CP-Journey | bbb7fc533b8bcf79367e3f38f4a04de075b43d64 | [
"MIT"
] | null | null | null | // { Driver Code Starts
//Initial Template for C++
#include <bits/stdc++.h>
using namespace std;
// } Driver Code Ends
//User function Template for C++
class Solution
{
public:
void printTable(int n)
{
int multiplier = 10;
while (multiplier != 0)
{
//Your code here
... | 15.95 | 42 | 0.487461 | IamBikramPurkait |
5841853419c3357afd96939a60b95a2feeaab1f2 | 3,131 | cpp | C++ | tests/benchmark.cpp | sergiud/skiplist | 11a8df690c882d53e21310f88db5335c7371ea26 | [
"MIT"
] | null | null | null | tests/benchmark.cpp | sergiud/skiplist | 11a8df690c882d53e21310f88db5335c7371ea26 | [
"MIT"
] | null | null | null | tests/benchmark.cpp | sergiud/skiplist | 11a8df690c882d53e21310f88db5335c7371ea26 | [
"MIT"
] | null | null | null | // Copyright (c) 2011, 2020 Sergiu Deitsch
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to use, copy, modify, merge, p... | 31.94898 | 80 | 0.656659 | sergiud |
5845c700fa4ba351458edc7dac65f3013890e7c0 | 1,432 | cpp | C++ | ext/gui.cpp | defar1321/ruby-opencv | 7f823c4ff0b9213e0933129303c2189bc2642f91 | [
"BSD-3-Clause"
] | 26 | 2015-03-06T01:11:16.000Z | 2022-01-08T09:52:24.000Z | ext/gui.cpp | dru/ruby-opencv | 45478f2dfe31b4086096c49aaa19b307137015e7 | [
"BSD-3-Clause"
] | 1 | 2021-11-26T08:12:10.000Z | 2021-12-03T15:29:28.000Z | ext/gui.cpp | dru/ruby-opencv | 45478f2dfe31b4086096c49aaa19b307137015e7 | [
"BSD-3-Clause"
] | 8 | 2015-06-06T05:10:31.000Z | 2020-06-15T21:59:20.000Z | /************************************************************
gui.cpp -
$Author: lsxi $
Copyright (C) 2005-2006 Masakazu Yonekura
************************************************************/
#ifdef HAVE_CALLBACK_H
#include "gui.h"
/*
* Document-module: OpenCV::GUI
*
* OpenCV simple GUI interface. Provide... | 21.69697 | 108 | 0.635475 | defar1321 |
585254f59297c992fa9b37fc90b8a8512b022c43 | 18,368 | cpp | C++ | src/core/layers/shaderDbg/shaderDbgCmdBuffer.cpp | dnovillo/pal | f924a4fb84efde321f7754031f8cfa5ab35055d3 | [
"MIT"
] | null | null | null | src/core/layers/shaderDbg/shaderDbgCmdBuffer.cpp | dnovillo/pal | f924a4fb84efde321f7754031f8cfa5ab35055d3 | [
"MIT"
] | null | null | null | src/core/layers/shaderDbg/shaderDbgCmdBuffer.cpp | dnovillo/pal | f924a4fb84efde321f7754031f8cfa5ab35055d3 | [
"MIT"
] | null | null | null | /*
***********************************************************************************************************************
*
* Copyright (c) 2018 Advanced Micro Devices, Inc. All Rights Reserved.
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated ... | 38.346555 | 120 | 0.555096 | dnovillo |
58555766c2c2e357f750926f98845b2d1dc9d4be | 5,557 | cpp | C++ | jobPLP/telacaos.cpp | GustavoRSL/Projeto-PLP | 87e41703f8aec253ad188b67a2daa3368c7c6fb5 | [
"MIT"
] | null | null | null | jobPLP/telacaos.cpp | GustavoRSL/Projeto-PLP | 87e41703f8aec253ad188b67a2daa3368c7c6fb5 | [
"MIT"
] | null | null | null | jobPLP/telacaos.cpp | GustavoRSL/Projeto-PLP | 87e41703f8aec253ad188b67a2daa3368c7c6fb5 | [
"MIT"
] | 1 | 2019-12-03T02:54:11.000Z | 2019-12-03T02:54:11.000Z | #include "telacaos.h"
#include "ui_telacaos.h"
telaCaos::telaCaos(QWidget *parent) : QDialog(parent), ui(new Ui::telaCaos){
ui->setupUi(this);
ui->variavelXNew->setValidator(new QDoubleValidator(-1000000, 1000000, 3, this));
ui->variavelK->setValidator(new QDoubleValidator(-1000000, 1000000, 3, this));
... | 34.092025 | 143 | 0.522404 | GustavoRSL |
5857dfe8be0a5993191a4dcc02a92a1c1b5c54bd | 799 | cpp | C++ | SpotLight.cpp | alecwalsh/glfwogltest2 | 70224838d4851cb308834662763e51eb310f13b2 | [
"BSD-2-Clause"
] | null | null | null | SpotLight.cpp | alecwalsh/glfwogltest2 | 70224838d4851cb308834662763e51eb310f13b2 | [
"BSD-2-Clause"
] | null | null | null | SpotLight.cpp | alecwalsh/glfwogltest2 | 70224838d4851cb308834662763e51eb310f13b2 | [
"BSD-2-Clause"
] | null | null | null | #include "SpotLight.hpp"
#include "glad/glad.h"
SpotLight::SpotLight(glm::vec3 position, glm::vec3 direction, glm::vec3 diffuse, glm::vec3 specular,
float cutoffAngleCos, bool active) noexcept
: Light{diffuse, specular, LightType::Spot, active}, position{position}, direction{direction},
... | 36.318182 | 100 | 0.724656 | alecwalsh |
585eb960967979a505d5a277d1a9eb00a75720db | 6,549 | cpp | C++ | c++14-opengl/clock.cpp | oguchi2918/ginneko | 6ba8d7380d4d135c0d7889d4b51a3f1860f4da01 | [
"MIT"
] | null | null | null | c++14-opengl/clock.cpp | oguchi2918/ginneko | 6ba8d7380d4d135c0d7889d4b51a3f1860f4da01 | [
"MIT"
] | null | null | null | c++14-opengl/clock.cpp | oguchi2918/ginneko | 6ba8d7380d4d135c0d7889d4b51a3f1860f4da01 | [
"MIT"
] | null | null | null | #include <cstdint>
#include <SDL2/SDL_timer.h>
#include "clock.hpp"
#include "utils.hpp"
namespace {
static const int MAX_CLOCKS = 256; // 生成可能な時計総数
// 以下の2変数はnekolib::clock::Manager::init()で初期化される
static float g_cycles_per_second = 0;
static uint64_t g_time_cycles = 0;
}
namespace nekolib {
namespace c... | 23.728261 | 82 | 0.59658 | oguchi2918 |
58609794ec4f125ba193805b9d31b40ce1ec9eda | 432 | hpp | C++ | server/screenbuf.hpp | DaKnig/dfplex | 4a7a29a3fe7b216da8d9237e524c64ca5ec54094 | [
"CC-BY-3.0",
"0BSD"
] | null | null | null | server/screenbuf.hpp | DaKnig/dfplex | 4a7a29a3fe7b216da8d9237e524c64ca5ec54094 | [
"CC-BY-3.0",
"0BSD"
] | null | null | null | server/screenbuf.hpp | DaKnig/dfplex | 4a7a29a3fe7b216da8d9237e524c64ca5ec54094 | [
"CC-BY-3.0",
"0BSD"
] | null | null | null | /*
* Dwarfplex is based on Webfort, created by Vitaly Pronkin on 14/05/14.
* Copyright (c) 2014 mifki, ISC license.
* Copyright (c) 2020 white-rabbit, ISC license
*/
#pragma once
#include "Client.hpp"
extern screenbuf_t screenbuf;
void hook_renderer();
void unhook_renderer();
void scrape_screenbuf(Client* ... | 18.782609 | 72 | 0.747685 | DaKnig |
58645d44ac02fcc8989d8d1d859d723bab4b1417 | 815 | cpp | C++ | Algorithms/Easy/204.count-primes.cpp | jtcheng/leetcode | db58973894757789d060301b589735b5985fe102 | [
"MIT"
] | null | null | null | Algorithms/Easy/204.count-primes.cpp | jtcheng/leetcode | db58973894757789d060301b589735b5985fe102 | [
"MIT"
] | null | null | null | Algorithms/Easy/204.count-primes.cpp | jtcheng/leetcode | db58973894757789d060301b589735b5985fe102 | [
"MIT"
] | null | null | null | /*
* @lc app=leetcode id=204 lang=cpp
*
* [204] Count Primes
*
* https://leetcode.com/problems/count-primes/description/
*
* algorithms
* Easy (28.25%)
* Total Accepted: 214.7K
* Total Submissions: 759.7K
* Testcase Example: '10'
*
* Count the number of prime numbers less than a non-negative number, n.... | 18.522727 | 76 | 0.525153 | jtcheng |
586b60f201be0568e5289eef6769d40cd6a010f1 | 2,113 | hpp | C++ | src/results.hpp | j-haj/ublas-eigen-benchmark | 8dec4a509a486f5812719ec612367c6df5026412 | [
"MIT"
] | 1 | 2017-09-22T04:29:40.000Z | 2017-09-22T04:29:40.000Z | src/results.hpp | j-haj/ublas-eigen-benchmark | 8dec4a509a486f5812719ec612367c6df5026412 | [
"MIT"
] | null | null | null | src/results.hpp | j-haj/ublas-eigen-benchmark | 8dec4a509a486f5812719ec612367c6df5026412 | [
"MIT"
] | null | null | null | /* vim: set ts=2 sts=2 et sw=2 tw=80: */
/**
* results.hpp
*
* Author: Jeff Hajewski
* Created: 7/28/2017
*
* Simple data structure to store the results from a benchmark.
*/
#ifndef __RESULTS_HPP
#define __RESULTS_HPP
#include <algorithm>
#include <numeric>
#include <vector>
/**
* Benchmark types.
*
* Ther... | 23.21978 | 82 | 0.640322 | j-haj |
586bc00cbc1746b2737ddf3033f0a6adb4241e4f | 3,534 | cpp | C++ | tc 160+/TeamBuilding.cpp | ibudiselic/contest-problem-solutions | 88082981b4d87da843472e3ca9ed5f4c42b3f0aa | [
"BSD-2-Clause"
] | 3 | 2015-05-25T06:24:37.000Z | 2016-09-10T07:58:00.000Z | tc 160+/TeamBuilding.cpp | ibudiselic/contest-problem-solutions | 88082981b4d87da843472e3ca9ed5f4c42b3f0aa | [
"BSD-2-Clause"
] | null | null | null | tc 160+/TeamBuilding.cpp | ibudiselic/contest-problem-solutions | 88082981b4d87da843472e3ca9ed5f4c42b3f0aa | [
"BSD-2-Clause"
] | 5 | 2015-05-25T06:24:40.000Z | 2021-08-19T19:22:29.000Z | #include <algorithm>
#include <cassert>
#include <cstdio>
#include <iostream>
#include <sstream>
#include <string>
#include <vector>
#include <cstring>
using namespace std;
unsigned reach[20], rreach[20];
int bc[1u<<20];
class TeamBuilding {
public:
int fewestPaths(vector <string> paths) {
bc[0] =... | 29.697479 | 309 | 0.533107 | ibudiselic |
586fa8e69ff82016ffb879323939b72d5d1f623e | 2,863 | cpp | C++ | fmo-cpp/fmo/explorer-v1/explorer.cpp | sverbach/fmo-android | b4957ea51a4e0df6dc5315eaaf16b73c954d16a4 | [
"MIT"
] | 37 | 2019-03-11T09:08:20.000Z | 2022-02-26T19:01:51.000Z | fmo-cpp/fmo/explorer-v1/explorer.cpp | sverbach/fmo-android | b4957ea51a4e0df6dc5315eaaf16b73c954d16a4 | [
"MIT"
] | 83 | 2020-09-22T09:04:38.000Z | 2021-06-10T16:15:17.000Z | fmo-cpp/fmo/explorer-v1/explorer.cpp | sverbach/fmo-android | b4957ea51a4e0df6dc5315eaaf16b73c954d16a4 | [
"MIT"
] | 10 | 2020-06-29T03:22:28.000Z | 2021-10-01T15:28:25.000Z | #include "explorer.hpp"
#include <limits>
namespace fmo {
namespace {
constexpr int int16_max = std::numeric_limits<int16_t>::max();
}
void registerExplorerV1() {
Algorithm::registerFactory(
"explorer-v1", [](const Algorithm::Config& config, Format format, Dims dims) {
... | 33.290698 | 90 | 0.594481 | sverbach |
587013f14a0e453fcea7f9f1d7ca2c26dbab8aab | 8,865 | hpp | C++ | 3rdParty/iresearch/core/analysis/token_streams.hpp | corona3000/arangodb | e4d5a5d2d7e83b1a094c5ac01706a13fdecfc1da | [
"Apache-2.0"
] | 1 | 2020-01-16T06:16:53.000Z | 2020-01-16T06:16:53.000Z | 3rdParty/iresearch/core/analysis/token_streams.hpp | corona3000/arangodb | e4d5a5d2d7e83b1a094c5ac01706a13fdecfc1da | [
"Apache-2.0"
] | null | null | null | 3rdParty/iresearch/core/analysis/token_streams.hpp | corona3000/arangodb | e4d5a5d2d7e83b1a094c5ac01706a13fdecfc1da | [
"Apache-2.0"
] | null | null | null | ////////////////////////////////////////////////////////////////////////////////
/// DISCLAIMER
///
/// Copyright 2016 by EMC Corporation, All Rights Reserved
///
/// Licensed under the Apache License, Version 2.0 (the "License");
/// you may not use this file except in compliance with the License.
/// You may obtain a... | 27.9653 | 80 | 0.620192 | corona3000 |
5871dce1ee400af184025dfb5ffaf1e7844fa215 | 3,067 | hpp | C++ | include/render_graph/backend/buffer_pool.hpp | SakuraEngine/Sakura.Runtime | 5a397fb2b1285326c4216f522fe10e347bd566f7 | [
"MIT"
] | 29 | 2021-11-19T11:28:22.000Z | 2022-03-29T00:26:51.000Z | include/render_graph/backend/buffer_pool.hpp | SakuraEngine/Sakura.Runtime | 5a397fb2b1285326c4216f522fe10e347bd566f7 | [
"MIT"
] | null | null | null | include/render_graph/backend/buffer_pool.hpp | SakuraEngine/Sakura.Runtime | 5a397fb2b1285326c4216f522fe10e347bd566f7 | [
"MIT"
] | 1 | 2022-03-05T08:14:40.000Z | 2022-03-05T08:14:40.000Z | #pragma once
#include <EASTL/unordered_map.h>
#include <EASTL/deque.h>
#include "utils/hash.h"
#include "utils/make_zeroed.hpp"
#include "cgpu/api.h"
namespace skr
{
namespace render_graph
{
class BufferPool
{
public:
struct Key {
const CGPUDeviceId device;
uint64_t size;
CGPUResourceTypes ... | 28.398148 | 143 | 0.693186 | SakuraEngine |
5872d80e5b9d6698777ebc33309f0662dcbc6516 | 47 | hpp | C++ | src/boost_random_gamma_distribution.hpp | miathedev/BoostForArduino | 919621dcd0c157094bed4df752b583ba6ea6409e | [
"BSL-1.0"
] | 10 | 2018-03-17T00:58:42.000Z | 2021-07-06T02:48:49.000Z | src/boost_random_gamma_distribution.hpp | miathedev/BoostForArduino | 919621dcd0c157094bed4df752b583ba6ea6409e | [
"BSL-1.0"
] | 2 | 2021-03-26T15:17:35.000Z | 2021-05-20T23:55:08.000Z | src/boost_random_gamma_distribution.hpp | miathedev/BoostForArduino | 919621dcd0c157094bed4df752b583ba6ea6409e | [
"BSL-1.0"
] | 4 | 2019-05-28T21:06:37.000Z | 2021-07-06T03:06:52.000Z | #include <boost/random/gamma_distribution.hpp>
| 23.5 | 46 | 0.829787 | miathedev |
5874a97de0583d598fbba9b80d0a5c1673ddf554 | 11,582 | cpp | C++ | test/basicobjecttest.cpp | nst1911/diagramster | 036daf5a976d675bc25a4bdff4cf31ed4a593ecb | [
"MIT"
] | null | null | null | test/basicobjecttest.cpp | nst1911/diagramster | 036daf5a976d675bc25a4bdff4cf31ed4a593ecb | [
"MIT"
] | null | null | null | test/basicobjecttest.cpp | nst1911/diagramster | 036daf5a976d675bc25a4bdff4cf31ed4a593ecb | [
"MIT"
] | null | null | null | #include "basicobjecttest.h"
#include "basicobject.h"
void diagramster::test::BasicObjectTest::childrenSignalsTest()
{
BasicObject* obj = new BasicObject("obj");
QSignalSpy obj_add_spy(obj, SIGNAL(childAdded(BasicObject*)));
QSignalSpy obj_remove_spy(obj, SIGNAL(childRemoved(BasicObject*)));
// Test s... | 31.134409 | 131 | 0.65645 | nst1911 |
588292b5bfccce142ee2e44621c80a082b6cc59c | 4,877 | cpp | C++ | main/lucid/gal.private/gal.d3d11/VertexFormat.cpp | irumsey/ijrumsey.com | 3dcf909eada5a09d39e6bf89a1f0bf1fa7328789 | [
"MIT"
] | null | null | null | main/lucid/gal.private/gal.d3d11/VertexFormat.cpp | irumsey/ijrumsey.com | 3dcf909eada5a09d39e6bf89a1f0bf1fa7328789 | [
"MIT"
] | null | null | null | main/lucid/gal.private/gal.d3d11/VertexFormat.cpp | irumsey/ijrumsey.com | 3dcf909eada5a09d39e6bf89a1f0bf1fa7328789 | [
"MIT"
] | null | null | null | #include "VertexFormat.h"
#include "System.h"
#include "Utility.h"
#include <lucid/core/FileReader.h>
#include <lucid/core/Reader.h>
#include <sstream>
#include <d3dcompiler.h>
///
///
///
namespace /* anonymous */
{
/// ENUM LOOKUP
std::string const vertexElementType[] =
{
"float",
"float2",
"float3",
"f... | 25.401042 | 152 | 0.689153 | irumsey |
5883211a6591f3fc930f9ca76eb10e3afb76a637 | 3,567 | hpp | C++ | include/model.hpp | Josh-MB/Information-Theory-Potts-Model | 74e4c61d2f1bdbc345431fb1d4bade2b5b08f055 | [
"MIT"
] | null | null | null | include/model.hpp | Josh-MB/Information-Theory-Potts-Model | 74e4c61d2f1bdbc345431fb1d4bade2b5b08f055 | [
"MIT"
] | null | null | null | include/model.hpp | Josh-MB/Information-Theory-Potts-Model | 74e4c61d2f1bdbc345431fb1d4bade2b5b08f055 | [
"MIT"
] | null | null | null | #pragma once
#include <random>
#include "defs.hpp"
#include "wanglandau.hpp"
void perfect_unordered_init(std::mt19937_64 &engine, std::vector<u8> &lattice, size_t const L);
void initialise(std::mt19937_64 &engine, std::vector<u8> &lattice, size_t const L, int const imode, double prop = 1.0);
constexpr int get_num_tr... | 49.541667 | 222 | 0.728343 | Josh-MB |
58867c7af7a15d16b462e738733ecefbaf8e10d3 | 2,522 | cpp | C++ | widget/RoomScene.cpp | chntujia/CodfiyAsteriatedGrailClient | 5e148f2f31783fcf4ecb6b46d94245a8d2f9a8f6 | [
"MIT"
] | 23 | 2016-01-14T01:44:18.000Z | 2021-11-07T05:36:21.000Z | widget/RoomScene.cpp | chntujia/CodfiyAsteriatedGrailClient | 5e148f2f31783fcf4ecb6b46d94245a8d2f9a8f6 | [
"MIT"
] | null | null | null | widget/RoomScene.cpp | chntujia/CodfiyAsteriatedGrailClient | 5e148f2f31783fcf4ecb6b46d94245a8d2f9a8f6 | [
"MIT"
] | 8 | 2016-01-11T06:28:06.000Z | 2020-05-17T11:03:53.000Z | #include "RoomScene.h"
#include <QPointF>
#include "widget/GUI.h"
#include <QPainter>
static const QPointF HandPos(190,505);
static const QPointF PlayerAreaPos(0,0);
static const QPointF ShowAreaPos(193,260);
static const QPointF TipAreaPos(290,230);
static const QPointF TeamAreaPos(0,0);
static const QPointF... | 28.659091 | 82 | 0.692308 | chntujia |
588726febbf0911cc86b34e78ee4f4154c4060b2 | 25,479 | cpp | C++ | moderngl/src/UniformSetters.cpp | asnt/moderngl | b39cedd8cf216c34e43371b4aec822f6084f0f79 | [
"MIT"
] | 916 | 2019-03-11T19:15:20.000Z | 2022-03-31T19:22:16.000Z | moderngl/src/UniformSetters.cpp | asnt/moderngl | b39cedd8cf216c34e43371b4aec822f6084f0f79 | [
"MIT"
] | 218 | 2019-03-11T06:05:52.000Z | 2022-03-30T16:59:22.000Z | moderngl/src/UniformSetters.cpp | asnt/moderngl | b39cedd8cf216c34e43371b4aec822f6084f0f79 | [
"MIT"
] | 110 | 2019-04-06T18:32:24.000Z | 2022-03-21T20:30:47.000Z | #include "UniformGetSetters.hpp"
#include "Types.hpp"
int MGLUniform_invalid_setter(MGLUniform * self, PyObject * value) {
MGLError_Set("cannot detect uniform type");
return -1;
}
int MGLUniform_bool_value_setter(MGLUniform * self, PyObject * value) {
int c_value;
if (value == Py_True) {
c_value = 1;
} else ... | 29.387543 | 119 | 0.702422 | asnt |
589027942cd94fe87b9c507e7cd3c4beb33ba3e0 | 9,851 | cpp | C++ | relacy/stdlib/windows.cpp | pereckerdal/relacy | 05d8a8fbb0b3600ff5bf34da0bab2bb148dff059 | [
"BSD-3-Clause"
] | 1 | 2020-05-30T13:06:12.000Z | 2020-05-30T13:06:12.000Z | relacy/stdlib/windows.cpp | pereckerdal/relacy | 05d8a8fbb0b3600ff5bf34da0bab2bb148dff059 | [
"BSD-3-Clause"
] | null | null | null | relacy/stdlib/windows.cpp | pereckerdal/relacy | 05d8a8fbb0b3600ff5bf34da0bab2bb148dff059 | [
"BSD-3-Clause"
] | null | null | null | /* Relacy Race Detector
* Copyright (c) 2008-2010, Dmitry S. Vyukov
* All rights reserved.
* This software is provided AS-IS with no warranty, either express or implied.
* This software is distributed under a license and may not be copied,
* modified or distributed except as expressly authorized under the
*... | 28.389049 | 179 | 0.719419 | pereckerdal |
589110e8f9930c5bd78414247b6bb47633151d6b | 2,444 | cpp | C++ | source/ChannelBuffer.cpp | iridinite/wirefox | 0897fcf5f9167ce41e75a3a5074d4b701cc0a203 | [
"BSD-3-Clause"
] | 5 | 2019-04-15T15:34:34.000Z | 2022-01-11T01:28:00.000Z | source/ChannelBuffer.cpp | iridinite/wirefox | 0897fcf5f9167ce41e75a3a5074d4b701cc0a203 | [
"BSD-3-Clause"
] | null | null | null | source/ChannelBuffer.cpp | iridinite/wirefox | 0897fcf5f9167ce41e75a3a5074d4b701cc0a203 | [
"BSD-3-Clause"
] | null | null | null | /*
* Wirefox Networking API
* (C) Mika Molenkamp, 2019.
*
* Licensed under the BSD 3-Clause License, see the LICENSE file in the project
* root folder for more information.
*/
#include "PCH.h"
#include "ChannelBuffer.h"
#include "PeerAbstract.h"
using namespace detail;
namespace {
constexpr bool SequenceL... | 30.17284 | 108 | 0.68617 | iridinite |
5892357f92bce433fcbd76b1061076b0ea36b310 | 3,131 | cpp | C++ | app/src/main/cpp/looper/Looper.cpp | volionamdp/NDK_OpenGLES_3_0 | 204b2b9ba8240c4153050da3331b0fb2b6dfe75f | [
"Apache-2.0"
] | 1,695 | 2019-08-09T01:24:00.000Z | 2022-03-31T13:12:28.000Z | app/src/main/cpp/looper/Looper.cpp | codingwatching/NDK_OpenGLES_3_0 | 4875cdee3fa8722cf72c470913183085faefc5a4 | [
"Apache-2.0"
] | 7 | 2020-10-27T03:12:15.000Z | 2022-03-23T08:43:54.000Z | app/src/main/cpp/looper/Looper.cpp | codingwatching/NDK_OpenGLES_3_0 | 4875cdee3fa8722cf72c470913183085faefc5a4 | [
"Apache-2.0"
] | 449 | 2019-09-02T05:11:15.000Z | 2022-03-30T06:12:01.000Z | //
// Created by ByteFlow on 2019/7/15.
//
#include "Looper.h"
#include <jni.h>
#include <pthread.h>
#include <stdio.h>
#include <string.h>
#include <unistd.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <semaphore.h>
#include "LogUtil.h"
struct LooperMessage;
typedef struct LooperMessage LooperMessage;
void* ... | 23.192593 | 91 | 0.586714 | volionamdp |
58935082fcb30174d53eb5f4abe8b27b25d671bd | 1,637 | cpp | C++ | NetworkPackets/PlayerPacketReceive.cpp | Raffo84/OpenGL-WinterGames-2005 | 54e31bb484bdd2ac01a4d3f4fe411d820cecbe28 | [
"MIT"
] | null | null | null | NetworkPackets/PlayerPacketReceive.cpp | Raffo84/OpenGL-WinterGames-2005 | 54e31bb484bdd2ac01a4d3f4fe411d820cecbe28 | [
"MIT"
] | null | null | null | NetworkPackets/PlayerPacketReceive.cpp | Raffo84/OpenGL-WinterGames-2005 | 54e31bb484bdd2ac01a4d3f4fe411d820cecbe28 | [
"MIT"
] | null | null | null | #include ".\playerPacketReceive.h"
PlayerPacketReceive::PlayerPacketReceive(void)
{
helper = new PlayerPacketHelper();
}
PlayerPacketReceive::~PlayerPacketReceive(void)
{
delete helper;
}
void PlayerPacketReceive::addBuffer(char *buffer, unsigned long length)
{
for (unsigned long i = 0; i < length; i++) {
... | 25.578125 | 83 | 0.725718 | Raffo84 |
58937e9a0f852c400eb681f50abe6850de2292b9 | 251 | hh | C++ | Sources/Paper/paper-radio-button.hh | steelbrain/Polymer-XHP | 187004a21c0b0e16efe11568137a1c14a73937fd | [
"MIT"
] | 1 | 2015-04-25T06:08:50.000Z | 2015-04-25T06:08:50.000Z | Sources/Paper/paper-radio-button.hh | steelbrain/Polymer-XHP | 187004a21c0b0e16efe11568137a1c14a73937fd | [
"MIT"
] | null | null | null | Sources/Paper/paper-radio-button.hh | steelbrain/Polymer-XHP | 187004a21c0b0e16efe11568137a1c14a73937fd | [
"MIT"
] | null | null | null | <?hh //strict
class :paper-radio-button extends :polymer-xhp{
protected string $tagName = 'paper-radio-button';
attribute
bool checked,
Stringish label,
bool toggles,
bool disabled;
children (pcdata | %flow)*;
category %flow;
} | 22.818182 | 51 | 0.681275 | steelbrain |
58968db63f3de4a46187f54af4535f4fd6cbfa19 | 4,775 | hpp | C++ | src/framework/core/vertex.hpp | aamshukov/arcturus | 4d10cd15ff2b79f23621853961a2178c0bde7d79 | [
"MIT"
] | 1 | 2020-12-10T02:33:41.000Z | 2020-12-10T02:33:41.000Z | src/framework/core/vertex.hpp | aamshukov/arcturus | 4d10cd15ff2b79f23621853961a2178c0bde7d79 | [
"MIT"
] | null | null | null | src/framework/core/vertex.hpp | aamshukov/arcturus | 4d10cd15ff2b79f23621853961a2178c0bde7d79 | [
"MIT"
] | null | null | null | //..............................
// UI Lab Inc. Arthur Amshukov .
//..............................
#ifndef __GRAPH_VERTEX_H__
#define __GRAPH_VERTEX_H__
#pragma once
BEGIN_NAMESPACE(core)
template <typename TVertex>
struct vertex_lt_key_comparator
{
using vertex_type = std::shared_ptr<TVertex>;
bool operato... | 23.067633 | 105 | 0.620524 | aamshukov |
58972ef1cbda84269a3dd4b7d4a8322560818aae | 283 | cpp | C++ | C-C++/cpp_linkedin/Ex_Files_Learning_C_Plus_Plus/Exercise Files/Chapter 2/02_03/end/DiceRoll.cpp | laeberkaes/progprojects | f78de7173a5397f7ec85583c534d4af423d7653d | [
"MIT"
] | null | null | null | C-C++/cpp_linkedin/Ex_Files_Learning_C_Plus_Plus/Exercise Files/Chapter 2/02_03/end/DiceRoll.cpp | laeberkaes/progprojects | f78de7173a5397f7ec85583c534d4af423d7653d | [
"MIT"
] | 9 | 2020-08-19T19:31:51.000Z | 2020-09-01T15:30:43.000Z | C-C++/cpp_linkedin/Ex_Files_Learning_C_Plus_Plus/Exercise Files/Chapter 2/02_03/end/DiceRoll.cpp | laeberkaes/progprojects | f78de7173a5397f7ec85583c534d4af423d7653d | [
"MIT"
] | 2 | 2020-08-19T16:00:58.000Z | 2020-08-21T08:16:23.000Z | #include <iostream>
#include <ctime>
#include <cstdlib>
using namespace std;
int main()
{
int dice = 0;
//seed the random number generator
srand(time(0));
dice = (rand() % 6) + 1;
cout << "You rolled a " << dice << endl;;
return 0;
}
| 10.884615 | 44 | 0.530035 | laeberkaes |
5897605100181c9326a342b2e5e63d760c86e39e | 620 | hpp | C++ | Singleton/Singleton.hpp | RedGhost2014/Snake | 8470cd86a512fe3b4db1bc4cde4c2b1c23e02792 | [
"Apache-2.0"
] | null | null | null | Singleton/Singleton.hpp | RedGhost2014/Snake | 8470cd86a512fe3b4db1bc4cde4c2b1c23e02792 | [
"Apache-2.0"
] | null | null | null | Singleton/Singleton.hpp | RedGhost2014/Snake | 8470cd86a512fe3b4db1bc4cde4c2b1c23e02792 | [
"Apache-2.0"
] | null | null | null | #ifndef _SINGLETON
#define _SINGLETON
#include "..\WindowClasses\WindowClass.hpp"
#include "..\Game\Game.hpp"
class Singleton
{
private:
static Game* myGame;
static MainMenu* myMenu;
static GameWindow* myGameWindow;
Singleton(const Singleton& root) = delete;
Singleton& operator=(const Singleton&) = delete;
pu... | 16.756757 | 49 | 0.740323 | RedGhost2014 |
58986e02198fa9b44ba6d0533540dbc6b99d5874 | 4,113 | cpp | C++ | source/tools/Debugger/watchpoint.cpp | ganboing/pintool | ece4788ffded47124b1c9b203707cc255dbaf20f | [
"Intel"
] | 1 | 2017-06-06T16:02:31.000Z | 2017-06-06T16:02:31.000Z | source/tools/Debugger/watchpoint.cpp | ganboing/pintool | ece4788ffded47124b1c9b203707cc255dbaf20f | [
"Intel"
] | null | null | null | source/tools/Debugger/watchpoint.cpp | ganboing/pintool | ece4788ffded47124b1c9b203707cc255dbaf20f | [
"Intel"
] | null | null | null | /*BEGIN_LEGAL
Intel Open Source License
Copyright (c) 2002-2016 Intel Corporation. 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 copyr... | 34.855932 | 100 | 0.672259 | ganboing |
589cb19b5ffe2fa4b95aea713186ed2243044363 | 3,754 | cpp | C++ | src/org/apache/poi/poifs/crypt/cryptoapi/CryptoAPIEncryptionHeader.cpp | pebble2015/cpoi | 6dcc0c5e13e3e722b4ef9fd0baffbf62bf71ead6 | [
"Apache-2.0"
] | null | null | null | src/org/apache/poi/poifs/crypt/cryptoapi/CryptoAPIEncryptionHeader.cpp | pebble2015/cpoi | 6dcc0c5e13e3e722b4ef9fd0baffbf62bf71ead6 | [
"Apache-2.0"
] | null | null | null | src/org/apache/poi/poifs/crypt/cryptoapi/CryptoAPIEncryptionHeader.cpp | pebble2015/cpoi | 6dcc0c5e13e3e722b4ef9fd0baffbf62bf71ead6 | [
"Apache-2.0"
] | null | null | null | // Generated from /POI/java/org/apache/poi/poifs/crypt/cryptoapi/CryptoAPIEncryptionHeader.java
#include <org/apache/poi/poifs/crypt/cryptoapi/CryptoAPIEncryptionHeader.hpp>
#include <java/lang/ClassCastException.hpp>
#include <java/lang/NullPointerException.hpp>
#include <java/lang/Object.hpp>
#include <java/lang/Str... | 37.919192 | 274 | 0.722429 | pebble2015 |
589d7d1a7cdeb766d898efffa99930cadf65ea05 | 3,167 | cpp | C++ | mpi/contador.cpp | juniorUsca/hadoop_examples | b9add345bce92d4fcfd43f0d69a0287d562cea64 | [
"MIT"
] | null | null | null | mpi/contador.cpp | juniorUsca/hadoop_examples | b9add345bce92d4fcfd43f0d69a0287d562cea64 | [
"MIT"
] | null | null | null | mpi/contador.cpp | juniorUsca/hadoop_examples | b9add345bce92d4fcfd43f0d69a0287d562cea64 | [
"MIT"
] | 3 | 2018-08-23T15:09:22.000Z | 2018-09-24T06:04:43.000Z | /* C Example */
#include <mpi.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <string>
#include <iostream>
#include <unordered_map>
#include <time.h>
//#include "btree.h"
using namespace std;
unordered_map<string, int> *wordCount(long ini, long fin, const char *arch, int pr)
{
FILE *file = ... | 20.835526 | 84 | 0.587938 | juniorUsca |
589db6c2c6059bcacd3b981edbd2b1fa69f143f5 | 433 | hpp | C++ | deps/mcloptlib/include/MCL/LSMethod.hpp | georgbrown/wrapd-2d | 1f7d0659582297f97212c83c67dca81948ed70f7 | [
"MIT"
] | 4 | 2021-07-27T23:11:25.000Z | 2022-02-17T06:18:26.000Z | deps/mcloptlib/include/MCL/LSMethod.hpp | georgbrown/wrapd-2d | 1f7d0659582297f97212c83c67dca81948ed70f7 | [
"MIT"
] | null | null | null | deps/mcloptlib/include/MCL/LSMethod.hpp | georgbrown/wrapd-2d | 1f7d0659582297f97212c83c67dca81948ed70f7 | [
"MIT"
] | 3 | 2021-07-28T02:36:37.000Z | 2022-02-08T06:27:26.000Z | #ifndef MCL_LSMETHOD_H
#define MCL_LSMETHOD_H
namespace mcl {
namespace optlib {
// The different line search methods currently implemented
enum class LSMethod {
None = 0, // use step length = 1, not recommended
MoreThuente, // TODO test this one for correctness
Backtracking, // basic backtracking with sufficient ... | 22.789474 | 61 | 0.773672 | georgbrown |
589e5f859067b7a515aaf4e3697d4b2c99e2e6a0 | 123 | cpp | C++ | Source/ShaderPluginDemo/ShaderPluginDemo.cpp | mrG7/ShaderFlowUE4 | 3c48d5e5662646ffbd0315affb76790f52789786 | [
"Apache-2.0"
] | null | null | null | Source/ShaderPluginDemo/ShaderPluginDemo.cpp | mrG7/ShaderFlowUE4 | 3c48d5e5662646ffbd0315affb76790f52789786 | [
"Apache-2.0"
] | null | null | null | Source/ShaderPluginDemo/ShaderPluginDemo.cpp | mrG7/ShaderFlowUE4 | 3c48d5e5662646ffbd0315affb76790f52789786 | [
"Apache-2.0"
] | null | null | null | #include "ShaderPluginDemo.h"
IMPLEMENT_PRIMARY_GAME_MODULE(FDefaultGameModuleImpl, ShaderPluginDemo, "ShaderPluginDemo"); | 41 | 92 | 0.869919 | mrG7 |
589ea62d3ffdada0e095a8f8ccead7e2e3389f48 | 2,368 | cpp | C++ | src/modules/osgSim/generated_code/ImpostorSpriteManager.pypp.cpp | cmbruns/osgpyplusplus | f8bfca2cf841e15f6ddb41c958f3ad0d0b9e4b75 | [
"BSD-3-Clause"
] | 3 | 2017-04-20T09:11:47.000Z | 2021-04-29T19:24:03.000Z | src/modules/osgSim/generated_code/ImpostorSpriteManager.pypp.cpp | cmbruns/osgpyplusplus | f8bfca2cf841e15f6ddb41c958f3ad0d0b9e4b75 | [
"BSD-3-Clause"
] | null | null | null | src/modules/osgSim/generated_code/ImpostorSpriteManager.pypp.cpp | cmbruns/osgpyplusplus | f8bfca2cf841e15f6ddb41c958f3ad0d0b9e4b75 | [
"BSD-3-Clause"
] | null | null | null | // This file has been generated by Py++.
#include "boost/python.hpp"
#include "wrap_osgSim.h"
#include "wrap_referenced.h"
#include "ImpostorSpriteManager.pypp.hpp"
namespace bp = boost::python;
void register_ImpostorSpriteManager_class(){
bp::class_< osgSim::ImpostorSpriteManager, bp::bases< ::osg::Referenced ... | 50.382979 | 261 | 0.576014 | cmbruns |
589fd085e8636a7a2f0ce4b53fe695df81a73026 | 1,174 | hpp | C++ | ASS-watermarking/bmp.hpp | E011011101001/inf-OH-ide | dd316bd5d3672a31e35fe83f8027de55d753e2de | [
"MIT"
] | null | null | null | ASS-watermarking/bmp.hpp | E011011101001/inf-OH-ide | dd316bd5d3672a31e35fe83f8027de55d753e2de | [
"MIT"
] | null | null | null | ASS-watermarking/bmp.hpp | E011011101001/inf-OH-ide | dd316bd5d3672a31e35fe83f8027de55d753e2de | [
"MIT"
] | null | null | null | #include <cstddef>
#include <string>
using Byte = unsigned char;
using ByteString = std::basic_string<Byte>;
std::ifstream& operator>>(std::ifstream& in, ByteString& bytes);
std::ofstream& operator<<(std::ofstream& out, ByteString& bytes);
struct __attribute__ ((__packed__)) BitmapHeader {
Byte signature[... | 25.521739 | 65 | 0.647359 | E011011101001 |
58a6c59ca7cec42c32b982596e59e906ad916bb3 | 817 | cpp | C++ | src/stable/cryptohash.cpp | zippy/libbu | 6c79102419f9e79d25751fefc155f746496f4b50 | [
"BSD-3-Clause"
] | 1 | 2020-02-20T23:15:54.000Z | 2020-02-20T23:15:54.000Z | src/stable/cryptohash.cpp | zippy/libbu | 6c79102419f9e79d25751fefc155f746496f4b50 | [
"BSD-3-Clause"
] | null | null | null | src/stable/cryptohash.cpp | zippy/libbu | 6c79102419f9e79d25751fefc155f746496f4b50 | [
"BSD-3-Clause"
] | null | null | null | /*
* Copyright (C) 2007-2013 Xagasoft, All rights reserved.
*
* This file is part of the libbu++ library and is released under the
* terms of the license contained in the file LICENSE.
*/
#include "bu/cryptohash.h"
Bu::CryptoHash::CryptoHash()
{
}
Bu::CryptoHash::~CryptoHash()
{
}
void Bu::CryptoHash::addData(... | 20.948718 | 69 | 0.615667 | zippy |
58a9025fbb0c5422327f178c8947273ca227e55a | 449 | cpp | C++ | Plugins/UBIKSolver/Source/UBIKEditor/Private/AnimGraphNode_UBIKSolver.cpp | straycatss/NectoXR | c7d00fe5070cfd1d94aa9401bb7ef66238d4cae7 | [
"MIT"
] | null | null | null | Plugins/UBIKSolver/Source/UBIKEditor/Private/AnimGraphNode_UBIKSolver.cpp | straycatss/NectoXR | c7d00fe5070cfd1d94aa9401bb7ef66238d4cae7 | [
"MIT"
] | null | null | null | Plugins/UBIKSolver/Source/UBIKEditor/Private/AnimGraphNode_UBIKSolver.cpp | straycatss/NectoXR | c7d00fe5070cfd1d94aa9401bb7ef66238d4cae7 | [
"MIT"
] | null | null | null | // 2020 Sticky Snout Studio (Jonas Mølgaard)
#include "AnimGraphNode_UBIKSolver.h"
#include "UBIKEditor.h"
#define LOCTEXT_NAMESPACE "A3Nodes"
FText UAnimGraphNode_UBIKSolver::GetNodeTitle(ENodeTitleType::Type TitleType) const
{
return LOCTEXT("UBIKSolver", "UBIK Solver");
}
FText UAnimGraphNode_UBIKSolver::GetToo... | 23.631579 | 83 | 0.7951 | straycatss |
58ad028479bf8020310b4b233ec0c9cc3e5d7673 | 2,936 | cpp | C++ | experiments/MPI/11.exp/main.cpp | graudtV/MPI-projects | 239ce72865813c5091f2a5b643e00be9f2280876 | [
"MIT"
] | null | null | null | experiments/MPI/11.exp/main.cpp | graudtV/MPI-projects | 239ce72865813c5091f2a5b643e00be9f2280876 | [
"MIT"
] | null | null | null | experiments/MPI/11.exp/main.cpp | graudtV/MPI-projects | 239ce72865813c5091f2a5b643e00be9f2280876 | [
"MIT"
] | null | null | null | #include "cxxmpi/cxxmpi.hpp"
#include "Support/Parsing.hpp"
#include "Support/OstreamHelpers.hpp"
#include <iostream>
#include <iomanip>
#include <boost/multiprecision/gmp.hpp>
namespace mpi = cxxmpi;
namespace mp = boost::multiprecision;
int getSeriesSize(int Precision) {
return 2 * Precision;
}
#ifndef LINEAR
... | 25.754386 | 93 | 0.623638 | graudtV |
58b1246077864689282edda8cec8c819e1dad0c7 | 1,187 | hpp | C++ | libraries/chain/omnibazaar/account_object_components.hpp | OmniBazaar/OmniCoin2--Core | f54e125f5672519632b7a7cbbddb1123af80a9a4 | [
"MIT"
] | null | null | null | libraries/chain/omnibazaar/account_object_components.hpp | OmniBazaar/OmniCoin2--Core | f54e125f5672519632b7a7cbbddb1123af80a9a4 | [
"MIT"
] | null | null | null | libraries/chain/omnibazaar/account_object_components.hpp | OmniBazaar/OmniCoin2--Core | f54e125f5672519632b7a7cbbddb1123af80a9a4 | [
"MIT"
] | null | null | null | #pragma once
#include <iostream>
#include <fstream>
#include <graphene/chain/protocol/types.hpp>
#include <fc/filesystem.hpp>
namespace omnibazaar
{
class account_object_component
{
public:
virtual ~account_object_component(){}
virtual void read_from_file(const fc::path& file... | 26.377778 | 76 | 0.636057 | OmniBazaar |
58b1e093918e5ad899831ffa80fc3d19070148cd | 420 | cpp | C++ | HackerEarth/DifferenceofSquares_JuneEasy20.cpp | saa27/House-of-Codes | 3ba987ea690faa8d009814fef41123fc70122aab | [
"MIT"
] | 10 | 2020-10-06T05:03:25.000Z | 2021-06-03T19:04:32.000Z | HackerEarth/DifferenceofSquares_JuneEasy20.cpp | pranshta/House-of-Codes | c7170e8291f5d8daab796879c3c6a3095cdc1d5a | [
"MIT"
] | 27 | 2020-10-06T04:26:02.000Z | 2021-03-25T11:06:30.000Z | HackerEarth/DifferenceofSquares_JuneEasy20.cpp | pranshta/House-of-Codes | c7170e8291f5d8daab796879c3c6a3095cdc1d5a | [
"MIT"
] | 44 | 2018-10-26T19:34:41.000Z | 2021-03-23T15:32:19.000Z | #include<iostream>
using namespace std;
int main() {
ios::sync_with_stdio(false);
cin.tie(0);
cout.tie(0);
// your code goes here
int t;
cin>>t;
for(int i=0;i<t;i++){
int n,m, count = 0;
cin>>n>>m;
int cn = (n-1)/4;
int cm = m/4;
if((n-1)%4>=2){
cn++;
... | 15.555556 | 32 | 0.428571 | saa27 |
58b4390f1068b1435b8e82e6e1e002ce511a269e | 602 | hh | C++ | src/Zynga/Framework/Cache/V2/Config/InMemory/Base.hh | ssintzz/zynga-hacklang-framework | 9e165068f16f224edf2ee5bf5e25855714792d54 | [
"MIT"
] | 19 | 2018-04-23T09:30:48.000Z | 2022-03-06T21:35:18.000Z | src/Zynga/Framework/Cache/V2/Config/InMemory/Base.hh | ssintzz/zynga-hacklang-framework | 9e165068f16f224edf2ee5bf5e25855714792d54 | [
"MIT"
] | 22 | 2017-11-27T23:39:25.000Z | 2019-08-09T08:56:57.000Z | src/Zynga/Framework/Cache/V2/Config/InMemory/Base.hh | ssintzz/zynga-hacklang-framework | 9e165068f16f224edf2ee5bf5e25855714792d54 | [
"MIT"
] | 28 | 2017-11-16T20:53:56.000Z | 2021-01-04T11:13:17.000Z | <?hh // strict
namespace Zynga\Framework\Cache\V2\Config\InMemory;
use Zynga\Framework\Cache\V2\Config\Base as ConfigBase;
abstract class Base extends ConfigBase {
public function getServerPairings(): Map<string, int> {
return Map {};
}
public function getDriver(): string {
return 'InMemory';
}
... | 17.705882 | 57 | 0.692691 | ssintzz |
58c9c69df7be2612d0397c982f65e9616153d4a5 | 362 | cpp | C++ | exercises/02_functions/functions1.cpp | rdjondo/cplings | 599d8ebf38fd6bc71e573192bfe6f4f9f72e5760 | [
"MIT"
] | 1 | 2021-03-24T17:59:23.000Z | 2021-03-24T17:59:23.000Z | exercises/02_functions/functions1.cpp | rdjondo/cplings | 599d8ebf38fd6bc71e573192bfe6f4f9f72e5760 | [
"MIT"
] | null | null | null | exercises/02_functions/functions1.cpp | rdjondo/cplings | 599d8ebf38fd6bc71e573192bfe6f4f9f72e5760 | [
"MIT"
] | null | null | null | #include <iostream>
// functions1.cpp
// Make me compile! Go to the folder hint if you want a hint :)
// We sometimes encourage you to keep trying things on a given exercise,
// even after you already figured it out.
int function1() {
callme();
return 0;
}
#include <catch2/catch.hpp>
TEST_CASE("identity_fu... | 16.454545 | 72 | 0.687845 | rdjondo |
58cb56d59b3ffd69e09f910b424d513a181f9222 | 4,800 | cpp | C++ | samples/reflection/annotation.cpp | cpgf/cpgf | 912a5cfa4d5c09218608179cb79a9940cce33f06 | [
"Apache-2.0"
] | 187 | 2015-01-19T06:05:30.000Z | 2022-03-27T14:28:21.000Z | samples/reflection/annotation.cpp | cpgf/cpgf | 912a5cfa4d5c09218608179cb79a9940cce33f06 | [
"Apache-2.0"
] | 37 | 2015-01-16T04:15:11.000Z | 2020-03-31T23:42:55.000Z | samples/reflection/annotation.cpp | cpgf/cpgf | 912a5cfa4d5c09218608179cb79a9940cce33f06 | [
"Apache-2.0"
] | 50 | 2015-01-13T13:50:10.000Z | 2022-01-25T17:16:51.000Z | #if defined(_MSC_VER)
#pragma warning(push)
#pragma warning(disable:4244)
#endif
#include "reflect_common.h"
#include <algorithm>
namespace {
std::wstring stringToWString(const std::string & s)
{
std::wstring temp(s.length(),L' ');
std::copy(s.begin(), s.end(), temp.begin());
retu... | 23.414634 | 93 | 0.664792 | cpgf |
58ce72b873b353758ef864dcf2ecc7ff0d13f52c | 4,451 | cpp | C++ | src/transfersocket.cpp | silas1037/FileTransfer | 6064556c086095bba7f0ff1a570a7fa8608c8f83 | [
"MIT"
] | 36 | 2019-09-03T09:16:30.000Z | 2022-03-28T06:35:38.000Z | src/transfersocket.cpp | silas1037/FileTransfer | 6064556c086095bba7f0ff1a570a7fa8608c8f83 | [
"MIT"
] | 2 | 2020-07-23T06:00:06.000Z | 2020-07-23T06:10:34.000Z | src/transfersocket.cpp | silas1037/FileTransfer | 6064556c086095bba7f0ff1a570a7fa8608c8f83 | [
"MIT"
] | 11 | 2019-09-27T03:17:02.000Z | 2022-02-24T08:30:48.000Z | #include "fileblock.h"
#include "filemanager.h"
#include "transfersocket.h"
#include <QtConcurrent>
#include <QFile>
#include <QFileInfo>
#include <QHostAddress>
#include <QQmlFile>
static const int maxBlockSize = 1024;
struct File
{
QFile *file;
qint32 size;
};
class TransferSocketPrivate
{
public:
int... | 29.872483 | 107 | 0.588182 | silas1037 |
58cee9489e7573bb1b4782a58d16c1814d36f0a8 | 1,082 | cpp | C++ | source/system/QuestScheme.cpp | Leinnan/carpg | ff484f094abe381b0deec3c52ef33725f765ff1f | [
"MIT"
] | 19 | 2015-05-30T12:14:07.000Z | 2021-05-26T19:17:21.000Z | source/system/QuestScheme.cpp | Leinnan/carpg | ff484f094abe381b0deec3c52ef33725f765ff1f | [
"MIT"
] | 402 | 2016-02-26T08:39:21.000Z | 2021-07-06T16:47:16.000Z | source/system/QuestScheme.cpp | Leinnan/carpg | ff484f094abe381b0deec3c52ef33725f765ff1f | [
"MIT"
] | 21 | 2015-07-28T14:11:39.000Z | 2020-12-11T07:54:09.000Z | #include "Pch.h"
#include "QuestScheme.h"
#include "GameDialog.h"
vector<QuestScheme*> QuestScheme::schemes;
//=================================================================================================
QuestScheme::~QuestScheme()
{
DeleteElements(dialogs);
}
//===============================================... | 23.521739 | 99 | 0.431608 | Leinnan |
58d33c9be3e60a634048b03b28ce5fd7930f6baf | 7,242 | cpp | C++ | libdr4w/dr4_splines.cpp | mkuitune/libdr4w | 9a3540d721782cd81efd30285de75ddde2e49323 | [
"MIT"
] | null | null | null | libdr4w/dr4_splines.cpp | mkuitune/libdr4w | 9a3540d721782cd81efd30285de75ddde2e49323 | [
"MIT"
] | null | null | null | libdr4w/dr4_splines.cpp | mkuitune/libdr4w | 9a3540d721782cd81efd30285de75ddde2e49323 | [
"MIT"
] | null | null | null |
#include <dr4/dr4_splines.h>
namespace dr4 {
#if 0
static void testInterpolation(
std::vector<Pairf> points, size_t samplesPerSpan, size_t sampleCount) {
PiecewiseSpline2 spline = Interpolate2(points, samplesPerSpan);
LookUpTable<float> lut = spline.createByXLUT(sampleCount);
LoopRange<float> rangeOver(sam... | 33.841121 | 109 | 0.673847 | mkuitune |
58d8e72c5beacf9b4282dcb3ec878dfe26f581fb | 10,034 | cc | C++ | build/X86_MESI_Two_Level/python/m5/internal/param_SimpleMemory.py.cc | hoho20000000/gem5-fy | b59f6feed22896d6752331652c4d8a41a4ca4435 | [
"BSD-3-Clause"
] | null | null | null | build/X86_MESI_Two_Level/python/m5/internal/param_SimpleMemory.py.cc | hoho20000000/gem5-fy | b59f6feed22896d6752331652c4d8a41a4ca4435 | [
"BSD-3-Clause"
] | 1 | 2020-08-20T05:53:30.000Z | 2020-08-20T05:53:30.000Z | build/X86_MESI_Two_Level/python/m5/internal/param_SimpleMemory.py.cc | hoho20000000/gem5-fy | b59f6feed22896d6752331652c4d8a41a4ca4435 | [
"BSD-3-Clause"
] | null | null | null | #include "sim/init.hh"
namespace {
const uint8_t data_m5_internal_param_SimpleMemory[] = {
120,156,197,89,109,115,220,72,17,238,145,246,197,187,246,218,
235,247,56,113,98,1,49,89,94,98,115,92,25,14,46,164,
200,133,0,87,197,249,82,242,21,73,22,170,84,178,52,187,
150,173,149,182,164,113,156,189,178,249,... | 58.337209 | 93 | 0.66763 | hoho20000000 |
58d8ee81fd225a804ebe62dd3a569d2e06c4f8aa | 930 | hpp | C++ | ndata.hpp | ymullr/ndata | 6d56a1f186ddd114a44f55c6a5bf40f09a12217e | [
"MIT"
] | 1 | 2015-05-08T10:01:23.000Z | 2015-05-08T10:01:23.000Z | ndata.hpp | ymullr/ndata | 6d56a1f186ddd114a44f55c6a5bf40f09a12217e | [
"MIT"
] | null | null | null | ndata.hpp | ymullr/ndata | 6d56a1f186ddd114a44f55c6a5bf40f09a12217e | [
"MIT"
] | 2 | 2016-10-31T04:11:05.000Z | 2019-03-03T17:13:02.000Z | #ifndef NDATA_HPP_VFUXJBDN
#define NDATA_HPP_VFUXJBDN
#include <vector>
#include <functional>
#include <memory>
namespace ndata {
struct range;
template <long ndims>
struct indexer;
/**
* inherits from indexer
*/
template<typename ContainerT, typename T, long ndims>
struct ndataco... | 21.627907 | 77 | 0.705376 | ymullr |
58e25a783a24bf6adf93312b757f1d16b880e359 | 8,099 | cpp | C++ | eosio.evm/src/precompiles/bncurve.cpp | conr2d/eosio.evm | 93e6b9bd46bef24e356f924ed1bf0c33196e7432 | [
"MIT"
] | 84 | 2020-02-26T22:26:47.000Z | 2022-03-22T20:21:47.000Z | eosio.evm/src/precompiles/bncurve.cpp | cnamway/eosio.evm | 93e6b9bd46bef24e356f924ed1bf0c33196e7432 | [
"MIT"
] | 2 | 2021-02-22T04:15:22.000Z | 2022-03-23T20:06:16.000Z | eosio.evm/src/precompiles/bncurve.cpp | cnamway/eosio.evm | 93e6b9bd46bef24e356f924ed1bf0c33196e7432 | [
"MIT"
] | 28 | 2020-02-27T14:07:00.000Z | 2022-03-10T07:53:36.000Z | // Copyright (c) 2020 Syed Jafri. All rights reserved.
// Licensed under the MIT License...
#include <eosio.evm/eosio.evm.hpp>
#if (BN_CURVE == true)
#define MINI_GMP_LIMB_TYPE long long int
#include <mini-gmp/mini-gmp.c>
#define GMP_NUMB_BITS GMP_LIMB_BITS
#include <libff/algebra/curves/alt_bn128/alt_bn128_init.cp... | 28.417544 | 140 | 0.628226 | conr2d |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.