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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
50207c611830493d8223a821de1aa7b11ab30b6b | 3,266 | cpp | C++ | aws_demo/gaussianfilter/xf_gaussian_filter_kernel_aws.cpp | ZoTechGroup/xfopencv | 78e871e7a64ec4c07f5320024b0ca2b4f9199a96 | [
"BSD-3-Clause"
] | 1 | 2021-03-19T15:21:54.000Z | 2021-03-19T15:21:54.000Z | aws_demo/gaussianfilter/xf_gaussian_filter_kernel_aws.cpp | ZoTechGroup/xfopencv | 78e871e7a64ec4c07f5320024b0ca2b4f9199a96 | [
"BSD-3-Clause"
] | null | null | null | aws_demo/gaussianfilter/xf_gaussian_filter_kernel_aws.cpp | ZoTechGroup/xfopencv | 78e871e7a64ec4c07f5320024b0ca2b4f9199a96 | [
"BSD-3-Clause"
] | null | null | null | //Includes
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include "hls_stream.h"
#include "common/xf_common.h"
#include "xf_gaussian_filter_config.h"
#include "imgproc/xf_gaussian_filter.hpp"
#include "imgproc/xf_resize.hpp"
extern "C" void xf_gaussian_filter(XF_TNAME(XF_8UC1, NPC1) *img_inp, XF_TNAME... | 33.670103 | 172 | 0.631966 | ZoTechGroup |
5026a520fd392740bc7a1e5299e0f299dbad6585 | 4,041 | cc | C++ | source/IRTKSimple2/image++/src/irtkImageToFileNIFTI.cc | gordon-n-stevenson/fetalReconstruction | 6a1e4a15bdf92e86439791d836d1b20ede793293 | [
"Zlib",
"Unlicense",
"Intel",
"MIT"
] | null | null | null | source/IRTKSimple2/image++/src/irtkImageToFileNIFTI.cc | gordon-n-stevenson/fetalReconstruction | 6a1e4a15bdf92e86439791d836d1b20ede793293 | [
"Zlib",
"Unlicense",
"Intel",
"MIT"
] | null | null | null | source/IRTKSimple2/image++/src/irtkImageToFileNIFTI.cc | gordon-n-stevenson/fetalReconstruction | 6a1e4a15bdf92e86439791d836d1b20ede793293 | [
"Zlib",
"Unlicense",
"Intel",
"MIT"
] | null | null | null | /*=========================================================================
Library : Image Registration Toolkit (IRTK)
Module : $Id: irtkImageToFileNIFTI.cc 982 2013-09-13 15:44:08Z cl6311 $
Copyright : Imperial College, Department of Computing
Visual Information Processing (VIP), 2008 onwards
Date : ... | 27.120805 | 98 | 0.62633 | gordon-n-stevenson |
df27076c27dc749488b8367c791449c670cf93cf | 1,815 | cc | C++ | libcef_dll/ctocpp/v8accessor_ctocpp.cc | desura/desura-cef1 | 54106e0abdbbb362b4d547af3095faeb467500d3 | [
"BSD-3-Clause"
] | 1 | 2017-01-18T17:04:40.000Z | 2017-01-18T17:04:40.000Z | libcef_dll/ctocpp/v8accessor_ctocpp.cc | desura/desura-cef1 | 54106e0abdbbb362b4d547af3095faeb467500d3 | [
"BSD-3-Clause"
] | null | null | null | libcef_dll/ctocpp/v8accessor_ctocpp.cc | desura/desura-cef1 | 54106e0abdbbb362b4d547af3095faeb467500d3 | [
"BSD-3-Clause"
] | 1 | 2015-07-14T02:36:29.000Z | 2015-07-14T02:36:29.000Z | // Copyright (c) 2011 The Chromium Embedded Framework Authors. All rights
// reserved. Use of this source code is governed by a BSD-style license that
// can be found in the LICENSE file.
//
// ---------------------------------------------------------------------------
//
// A portion of this file was generated by the ... | 31.293103 | 78 | 0.667218 | desura |
df2981763415de119959d88f0a20a987b933bb5a | 3,286 | hpp | C++ | test/core/image_cast.hpp | cynodelic/tesela | 3b86a7b9501c7136d5168c7e314740fa7f72f7a7 | [
"BSL-1.0"
] | null | null | null | test/core/image_cast.hpp | cynodelic/tesela | 3b86a7b9501c7136d5168c7e314740fa7f72f7a7 | [
"BSL-1.0"
] | null | null | null | test/core/image_cast.hpp | cynodelic/tesela | 3b86a7b9501c7136d5168c7e314740fa7f72f7a7 | [
"BSL-1.0"
] | null | null | null | // Copyright (c) 2019 Álvaro Ceballos
// Distributed under the Boost Software License, Version 1.0.
// See accompanying file LICENSE or copy at http://www.boost.org/LICENSE_1_0.txt
#ifndef CYNODELIC_TESELA_TEST_CORE_IMAGE_CAST_HPP
#define CYNODELIC_TESELA_TEST_CORE_IMAGE_CAST_HPP
CYNODELIC_TESTER_TEST_CASE(image_cas... | 44.405405 | 106 | 0.726415 | cynodelic |
df2eb36c9fa04d8cf8476e8f3dd1e4328c42928c | 218 | hpp | C++ | include/msqlite/detail/fwd_exp_exec.hpp | ricardocosme/msqlite | 95af5b04831c7af449f87346301b6e26bf749e9f | [
"MIT"
] | 19 | 2020-08-18T21:25:05.000Z | 2022-01-14T03:45:41.000Z | include/msqlite/detail/fwd_exp_exec.hpp | ricardocosme/msqlite | 95af5b04831c7af449f87346301b6e26bf749e9f | [
"MIT"
] | null | null | null | include/msqlite/detail/fwd_exp_exec.hpp | ricardocosme/msqlite | 95af5b04831c7af449f87346301b6e26bf749e9f | [
"MIT"
] | null | null | null | #pragma once
#include "msqlite/db.hpp"
#include <string>
namespace msqlite {
template<typename Db>
struct exp_db;
exp_db<db*> exec(db& conn, std::string_view s);
exp_db<db> exec(db&& conn, std::string_view s);
}
| 13.625 | 47 | 0.706422 | ricardocosme |
df2f52f904b9dff0a12fed35383f8d5d3b630fd6 | 571 | cc | C++ | base/strings/split_test.cc | mayah/base | aec046929938d2aaebaadce5c5abb58b5cf342b4 | [
"MIT"
] | null | null | null | base/strings/split_test.cc | mayah/base | aec046929938d2aaebaadce5c5abb58b5cf342b4 | [
"MIT"
] | null | null | null | base/strings/split_test.cc | mayah/base | aec046929938d2aaebaadce5c5abb58b5cf342b4 | [
"MIT"
] | null | null | null | #include "base/strings/split.h"
#include <gtest/gtest.h>
TEST(StringsSplitTest, split_AllowEmpty)
{
std::vector<std::string> s = strings::split("A, B,, C", ",", strings::AllowEmpty());
EXPECT_EQ(4UL, s.size());
EXPECT_EQ("A", s[0]);
EXPECT_EQ(" B", s[1]);
EXPECT_EQ("", s[2]);
EXPECT_EQ(" C", s... | 24.826087 | 88 | 0.579685 | mayah |
df3232ff32bb17aa1b7ecfc3520041db437300f3 | 26,207 | cc | C++ | tests/cells/cell_implicit_bbar_test.cc | jgiven100/mpm-1 | adc83ab57782874d4dce1ac13be46bca1754a0fe | [
"MIT"
] | null | null | null | tests/cells/cell_implicit_bbar_test.cc | jgiven100/mpm-1 | adc83ab57782874d4dce1ac13be46bca1754a0fe | [
"MIT"
] | null | null | null | tests/cells/cell_implicit_bbar_test.cc | jgiven100/mpm-1 | adc83ab57782874d4dce1ac13be46bca1754a0fe | [
"MIT"
] | null | null | null | #include <limits>
#include <memory>
#include "Eigen/Dense"
#include "catch.hpp"
#include "cell.h"
#include "element.h"
#include "factory.h"
#include "hexahedron_element.h"
#include "hexahedron_quadrature.h"
#include "node.h"
#include "particle_bbar.h"
#include "quadrilateral_element.h"
#include "quadrilateral_quadrat... | 55.759574 | 356 | 0.642805 | jgiven100 |
df341a331def202c2562002b7d824f31cb9a15c9 | 388 | cpp | C++ | LeetCode/ExcelSheetColumnNumber.cpp | SelvorWhim/competitive | b9daaf21920d6f7669dc0c525e903949f4e33b62 | [
"Unlicense"
] | null | null | null | LeetCode/ExcelSheetColumnNumber.cpp | SelvorWhim/competitive | b9daaf21920d6f7669dc0c525e903949f4e33b62 | [
"Unlicense"
] | null | null | null | LeetCode/ExcelSheetColumnNumber.cpp | SelvorWhim/competitive | b9daaf21920d6f7669dc0c525e903949f4e33b62 | [
"Unlicense"
] | null | null | null | class Solution {
public:
# it's a base 26 positional counting system, basically
int titleToNumber(string s) {
int sum = 0;
int base = 26;
int factor = 1;
for (int i = s.length() - 1; i >= 0; i--) {
int letterVal = s[i] - 'A' + 1;
sum += factor * letterVal;... | 24.25 | 58 | 0.469072 | SelvorWhim |
df3ba00552becc2bf7c2166078eaf2a8d67b0b92 | 7,190 | cpp | C++ | tests/parser_ut.cpp | KomarRafal/auraton_cpp | a2d26023189e874446df254c60848f6204e29719 | [
"MIT"
] | 1 | 2020-12-01T07:47:27.000Z | 2020-12-01T07:47:27.000Z | tests/parser_ut.cpp | KomarRafal/auraton_cpp | a2d26023189e874446df254c60848f6204e29719 | [
"MIT"
] | 2 | 2021-01-07T16:13:41.000Z | 2021-01-24T20:42:56.000Z | tests/parser_ut.cpp | KomarRafal/auraton_cpp | a2d26023189e874446df254c60848f6204e29719 | [
"MIT"
] | null | null | null | /*
* parser_ut.cpp
*/
#include <vector>
#include <string>
#include "gtest/gtest.h"
#include "parameter.hpp"
#include "parser.hpp"
TEST(parser_ut, parse_test)
{
{
const std::string test_string{
"Parametr_1: some_1st_value\r\n"
"Lorem ipsum dolor sit amet,\r\n"
"consectetur adipiscing elit, sed do eius... | 27.976654 | 119 | 0.660362 | KomarRafal |
df3efd2218f6b7c2dca5a39f7c3e34c68e62a753 | 1,453 | cpp | C++ | yarpl/src/yarpl/observable/Subscriptions.cpp | benjchristensen/rsocket-cpp | 26299669be5c9df67d11fa105deb5f453436803d | [
"BSD-3-Clause"
] | null | null | null | yarpl/src/yarpl/observable/Subscriptions.cpp | benjchristensen/rsocket-cpp | 26299669be5c9df67d11fa105deb5f453436803d | [
"BSD-3-Clause"
] | null | null | null | yarpl/src/yarpl/observable/Subscriptions.cpp | benjchristensen/rsocket-cpp | 26299669be5c9df67d11fa105deb5f453436803d | [
"BSD-3-Clause"
] | null | null | null | // Copyright 2004-present Facebook. All Rights Reserved.
#include "yarpl/observable/Subscriptions.h"
#include <atomic>
#include <iostream>
namespace yarpl {
namespace observable {
/**
* Implementation that allows checking if a Subscription is cancelled.
*/
void AtomicBoolSubscription::cancel() {
cancelled_ = tru... | 25.946429 | 80 | 0.75499 | benjchristensen |
df46fc8ad9f0e0c6f7dd0dcdecd2b027dd7aae04 | 308 | cpp | C++ | 20200625-the_good_old_if/if_init_example1.cpp | weekly-cpp/weekly-cpp.github.io | 0649c0c991723c8234b99e2e46c4c5226cd4c7ac | [
"MIT"
] | null | null | null | 20200625-the_good_old_if/if_init_example1.cpp | weekly-cpp/weekly-cpp.github.io | 0649c0c991723c8234b99e2e46c4c5226cd4c7ac | [
"MIT"
] | null | null | null | 20200625-the_good_old_if/if_init_example1.cpp | weekly-cpp/weekly-cpp.github.io | 0649c0c991723c8234b99e2e46c4c5226cd4c7ac | [
"MIT"
] | null | null | null | #include <iostream>
#include <string>
int main()
{
if (std::string name; std::cin >> name) {
std::cout << "Hello " << name << '\n';
}
if (int number; std::cin >> number) {
std::cout << "You picked: " << number << '\n';
} else {
std::cout << "That's not a number!\n";
}
return 0;
}
| 17.111111 | 50 | 0.50974 | weekly-cpp |
df4c6fe55fe047d339cdc84f8cc0f943f04c7ead | 3,650 | cpp | C++ | BinTree.cpp | gur111/Mtm2020SpringGraphCalc | 73fbaf75f75262a47cfb299aee779a6ecb4c28d6 | [
"MIT"
] | null | null | null | BinTree.cpp | gur111/Mtm2020SpringGraphCalc | 73fbaf75f75262a47cfb299aee779a6ecb4c28d6 | [
"MIT"
] | null | null | null | BinTree.cpp | gur111/Mtm2020SpringGraphCalc | 73fbaf75f75262a47cfb299aee779a6ecb4c28d6 | [
"MIT"
] | null | null | null | #include "BinTree.h"
#include "Exceptions.h"
#define TREE_PRINT_SPREAD 10
using std::cout;
using std::endl;
using std::ostream;
using std::shared_ptr;
using std::string;
namespace GraphCalc {
BinTree::BinTree(string value) : left(nullptr), right(nullptr), value(value) {}
BinTree::~BinTree() {
removeLeft();
... | 26.838235 | 80 | 0.580274 | gur111 |
df538612f4d7516b6084fabaedd40a8aabc9fffb | 12,594 | hpp | C++ | include/graph/impl/Adjacency_list.hpp | Fohlen/graph | 986bb2c767896a6d8d4396ae319a2bd00206571b | [
"MIT"
] | null | null | null | include/graph/impl/Adjacency_list.hpp | Fohlen/graph | 986bb2c767896a6d8d4396ae319a2bd00206571b | [
"MIT"
] | null | null | null | include/graph/impl/Adjacency_list.hpp | Fohlen/graph | 986bb2c767896a6d8d4396ae319a2bd00206571b | [
"MIT"
] | null | null | null | #pragma once
#include <vector>
#include <map>
#include <range/v3/view/iota.hpp>
#include <range/v3/view/join.hpp>
#include <range/v3/view/transform.hpp>
#include <range/v3/to_container.hpp>
#include "unordered_set.hpp"
#include "map_iterator_wrapper.hpp"
#include "tracker.hpp"
#include "construct_fn.hpp"
... | 34.409836 | 281 | 0.647451 | Fohlen |
df554d24c6d36d8f2a529ac9b50a33daec24f879 | 820 | cpp | C++ | 2021.10.15-Lesson-5/Project1/Project1/Vector3D.cpp | 021213/programming-c-eng--2021-autumn | 84ff4e86e7b4ee68d5bfd83ef6388a1f3e762348 | [
"Apache-2.0"
] | null | null | null | 2021.10.15-Lesson-5/Project1/Project1/Vector3D.cpp | 021213/programming-c-eng--2021-autumn | 84ff4e86e7b4ee68d5bfd83ef6388a1f3e762348 | [
"Apache-2.0"
] | null | null | null | 2021.10.15-Lesson-5/Project1/Project1/Vector3D.cpp | 021213/programming-c-eng--2021-autumn | 84ff4e86e7b4ee68d5bfd83ef6388a1f3e762348 | [
"Apache-2.0"
] | null | null | null | #include "Vector3D.h"
Vector3D operator*(double mult, Vector3D vect)
{
return Vector3D(mult * vect.x, mult * vect.y, mult * vect.z);
}
Vector3D Vector3D::operator*(double mult)
{
return Vector3D(mult * x, mult * y, mult * z);
}
Vector3D Vector3D::operator=(Vector3D vect)
{
x = vect.x;
y = vect.y;
z = vect.z;
r... | 17.083333 | 68 | 0.630488 | 021213 |
df5d18f0cad44314c1ad78273e39de8da91bcc3b | 267 | cpp | C++ | src/Scena.cpp | KacperSynator/SymulacjaDrona | 47f053b2f8ee4f6041863641d90997edd4ab5394 | [
"MIT"
] | 1 | 2021-10-08T08:50:12.000Z | 2021-10-08T08:50:12.000Z | src/Scena.cpp | KacperSynator/SymulacjaDrona | 47f053b2f8ee4f6041863641d90997edd4ab5394 | [
"MIT"
] | null | null | null | src/Scena.cpp | KacperSynator/SymulacjaDrona | 47f053b2f8ee4f6041863641d90997edd4ab5394 | [
"MIT"
] | null | null | null | #include "../inc/Scena.hh"
void Scena::Inicjalizuj()
{
Wektor3D sr;
std::shared_ptr<drawNS::Draw3DAPI> apii(new drawNS::APIGnuPlot3D(-10, 10, -10, 10, -10, 10, 1000));
api = apii;
api->change_ref_time_ms(-1);
}
void Scena::WlaczMenuDrona()
{
}
| 14.052632 | 103 | 0.629213 | KacperSynator |
df5d3013abb19a841f014df2ab1149d77ae2eb6b | 2,952 | hpp | C++ | include/peplus/detail/image_offset.hpp | alex94puchades/peplus | 38fdc5810863c7b5c2a83ead4ff0c62fb627ae3c | [
"Apache-2.0"
] | 3 | 2020-03-02T11:54:40.000Z | 2021-07-20T06:52:40.000Z | include/peplus/detail/image_offset.hpp | alex94puchades/peplus | 38fdc5810863c7b5c2a83ead4ff0c62fb627ae3c | [
"Apache-2.0"
] | null | null | null | include/peplus/detail/image_offset.hpp | alex94puchades/peplus | 38fdc5810863c7b5c2a83ead4ff0c62fb627ae3c | [
"Apache-2.0"
] | 1 | 2021-11-15T18:10:25.000Z | 2021-11-15T18:10:25.000Z | #ifndef PEPLUS_DETAIL_IMAGEOFFSET_HPP_
#define PEPLUS_DETAIL_IMAGEOFFSET_HPP_
#include <boost/operators.hpp>
#include <cstddef>
#include <iostream>
namespace peplus::detail {
template <class Tag>
class ImageOffset : boost::additive<ImageOffset<Tag>>
, boost::unit_steppable<ImageOffset<Tag>>
... | 22.534351 | 80 | 0.726626 | alex94puchades |
df5f1e9443a909b6ecdafeca06c944938bf57376 | 1,711 | hh | C++ | include/abstract_problem.hh | sylvainouel/metl | 94fa40b9aabdf869cab8e6b92305a9fe5252f989 | [
"MIT"
] | null | null | null | include/abstract_problem.hh | sylvainouel/metl | 94fa40b9aabdf869cab8e6b92305a9fe5252f989 | [
"MIT"
] | null | null | null | include/abstract_problem.hh | sylvainouel/metl | 94fa40b9aabdf869cab8e6b92305a9fe5252f989 | [
"MIT"
] | null | null | null | #ifndef ABSTRACT_PROBLEM_HH
#define ABSTRACT_PROBLEM_HH
/*
metl: A generic framework for sequential and parallel metaheuristics
Copyright (c) 2005-2015, Sylvain Ouellet
Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the
"Software"), t... | 34.22 | 79 | 0.786674 | sylvainouel |
df5fa0ed5624194bdd33026eb07dca15163bfde8 | 7,528 | cpp | C++ | libs/cegui/impl/src/cegui/impl/detail/system_impl.cpp | cpreh/spacegameengine | 313a1c34160b42a5135f8223ffaa3a31bc075a01 | [
"BSL-1.0"
] | 2 | 2016-01-27T13:18:14.000Z | 2018-05-11T01:11:32.000Z | libs/cegui/impl/src/cegui/impl/detail/system_impl.cpp | cpreh/spacegameengine | 313a1c34160b42a5135f8223ffaa3a31bc075a01 | [
"BSL-1.0"
] | null | null | null | libs/cegui/impl/src/cegui/impl/detail/system_impl.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/cegui/cursor_visibility.hpp>
#include <sge/cegui/default_font.hpp>
#include <sge/cegu... | 40.691892 | 112 | 0.72755 | cpreh |
df6466a0c8b3408d4c380f8e92bb427dbd5e1068 | 854 | cpp | C++ | Target/Vanilla-H/CCore/src/sys/SysTlsSlot.cpp | SergeyStrukov/CCore-2-xx | 118aa4011ee7cc587298d6373b6587540e044a83 | [
"BSL-1.0"
] | 8 | 2017-12-21T07:00:16.000Z | 2020-04-02T09:05:55.000Z | Target/Vanilla-H/CCore/src/sys/SysTlsSlot.cpp | SergeyStrukov/CCore-2-99 | 1eca5b9b2de067bbab43326718b877465ae664fe | [
"BSL-1.0"
] | null | null | null | Target/Vanilla-H/CCore/src/sys/SysTlsSlot.cpp | SergeyStrukov/CCore-2-99 | 1eca5b9b2de067bbab43326718b877465ae664fe | [
"BSL-1.0"
] | 1 | 2020-03-30T09:54:18.000Z | 2020-03-30T09:54:18.000Z | /* SysTlsSlot.cpp */
//----------------------------------------------------------------------------------------
//
// Project: CCore 2.00
//
// Tag: Target/Vanilla-H
//
// License: Boost Software License - Version 1.0 - August 17th, 2003
//
// see http://www.boost.org/LICENSE_1_0.txt or the local copy
//
... | 16.745098 | 90 | 0.490632 | SergeyStrukov |
df6c7c09335841d36b0ce8e9fcd032648ca64df4 | 515 | cpp | C++ | chapter-14/14.32.cpp | zero4drift/Cpp-Primer-5th-Exercises | d3d0f0d228e8c2c5a3b3fe1fd03ce34e0894e93f | [
"MIT"
] | null | null | null | chapter-14/14.32.cpp | zero4drift/Cpp-Primer-5th-Exercises | d3d0f0d228e8c2c5a3b3fe1fd03ce34e0894e93f | [
"MIT"
] | null | null | null | chapter-14/14.32.cpp | zero4drift/Cpp-Primer-5th-Exercises | d3d0f0d228e8c2c5a3b3fe1fd03ce34e0894e93f | [
"MIT"
] | null | null | null | #include <iostream>
#include "StrBlob.hpp"
class StrBlobPtr_Ptr
{
StrBlobPtr *ptr = nullptr;
public:
StrBlobPtr_Ptr() = default;
StrBlobPtr_Ptr(StrBlobPtr *p): ptr(p) {}
StrBlobPtr operator->();
// maybe StrBlobPtr *operator->(); ?
};
StrBlobPtr StrBlobPtr_Ptr::operator->()
{
return *ptr;
}
int main()
{
... | 19.807692 | 101 | 0.662136 | zero4drift |
df71f765c726c3d2fc4a6de5831bdc68ce804aa6 | 1,135 | cpp | C++ | lib/net/AddressV4-win32.cpp | entuerto/liborion | 35b97594bbea3a6d89dc9261e5fd4e92717e9d71 | [
"MIT"
] | null | null | null | lib/net/AddressV4-win32.cpp | entuerto/liborion | 35b97594bbea3a6d89dc9261e5fd4e92717e9d71 | [
"MIT"
] | null | null | null | lib/net/AddressV4-win32.cpp | entuerto/liborion | 35b97594bbea3a6d89dc9261e5fd4e92717e9d71 | [
"MIT"
] | null | null | null | //
// AddressV4-win32.cpp
//
// Copyright (c) 2013-2017 Tomas Palazuelos
//
// Distributed under the MIT Software License. (See accompanying file LICENSE.md)
//
#include <orion/net/Address.h>
#include <host/win32/String.h>
#include <system_error>
#include <mstcpip.h>
#include <winsock2.h>
#include <ws2tcpip.h>
name... | 18.015873 | 81 | 0.692511 | entuerto |
df745f26392930b425cba47b84257bcabeeb9c7f | 1,440 | cpp | C++ | VS/Physics/VS_CollisionSprite.cpp | vectorstorm/vectorstorm | 7306214108b23fa97d4a1a598197bbaa52c17d3a | [
"Zlib"
] | 19 | 2017-04-03T09:06:21.000Z | 2022-03-05T19:06:07.000Z | VS/Physics/VS_CollisionSprite.cpp | vectorstorm/vectorstorm | 7306214108b23fa97d4a1a598197bbaa52c17d3a | [
"Zlib"
] | 2 | 2019-05-24T14:40:07.000Z | 2020-04-15T01:10:23.000Z | VS/Physics/VS_CollisionSprite.cpp | vectorstorm/vectorstorm | 7306214108b23fa97d4a1a598197bbaa52c17d3a | [
"Zlib"
] | 2 | 2020-03-08T07:14:49.000Z | 2020-03-09T10:39:52.000Z | /*
* COL_Sprite.cpp
* VectorStorm
*
* Created by Trevor Powell on 3/04/07.
* Copyright 2007 PanicKitten Softworks. All rights reserved.
*
*/
#include "VS_CollisionSprite.h"
#include "VS_CollisionObject.h"
#include "VS_CollisionSystem.h"
#include "Core.h"
#include "CORE_Game.h"
#include "VS_DisplayList.h"
... | 20.28169 | 130 | 0.760417 | vectorstorm |
df76b599f14f62c8f70fd5ecfe48c9a4e1584f2b | 8,195 | cpp | C++ | pronto/graphics/pc/pc_window.cpp | MgBag/pronto | c10827e094726d8dc285c3da68c9c03be42d9a32 | [
"MIT"
] | null | null | null | pronto/graphics/pc/pc_window.cpp | MgBag/pronto | c10827e094726d8dc285c3da68c9c03be42d9a32 | [
"MIT"
] | null | null | null | pronto/graphics/pc/pc_window.cpp | MgBag/pronto | c10827e094726d8dc285c3da68c9c03be42d9a32 | [
"MIT"
] | null | null | null | #include "pc_window.h"
#include "d3d12_renderer.h"
#include <assert.h>
namespace pronto
{
namespace graphics
{
//---------------------------------------------------------------------------------------------
PCWindow::PCWindow(D3D12Renderer* renderer) :
width_(0),
height_(0),
name_(""),
... | 27.316667 | 135 | 0.482001 | MgBag |
df796a593f1120b46c923cc1f5e019365a93218c | 547 | cpp | C++ | src/rendering/renderutil.cpp | WorldWideWebster/GameEngine | d0ff4ff08d327ef8408c88c9c9fe25aed4801f3a | [
"MIT"
] | null | null | null | src/rendering/renderutil.cpp | WorldWideWebster/GameEngine | d0ff4ff08d327ef8408c88c9c9fe25aed4801f3a | [
"MIT"
] | 1 | 2019-03-10T03:08:03.000Z | 2019-03-10T03:08:03.000Z | src/rendering/renderutil.cpp | WorldWideWebster/OpenGL-Stuff | d0ff4ff08d327ef8408c88c9c9fe25aed4801f3a | [
"MIT"
] | null | null | null | //
// Created by Sean on 12/9/2018.
//
#include "renderutil.h"
void RenderUtil::clearScreen()
{
//TODO: stencil buffer
glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT);
}
void RenderUtil::initGraphics()
{
glClearColor(1.0f, 1.0f, 1.0f, 1.0f); // set clear color to white (not really necessery actually,... | 19.535714 | 156 | 0.694698 | WorldWideWebster |
df815334ac23d175a6dea9908e8ca701503df8cf | 723 | hpp | C++ | include/mizuiro/image/format/include/color.hpp | cpreh/mizuiro | 5ab15bde4e72e3a4978c034b8ff5700352932485 | [
"BSL-1.0"
] | 1 | 2015-08-22T04:19:39.000Z | 2015-08-22T04:19:39.000Z | include/mizuiro/image/format/include/color.hpp | freundlich/mizuiro | 5ab15bde4e72e3a4978c034b8ff5700352932485 | [
"BSL-1.0"
] | null | null | null | include/mizuiro/image/format/include/color.hpp | freundlich/mizuiro | 5ab15bde4e72e3a4978c034b8ff5700352932485 | [
"BSL-1.0"
] | null | null | null | // Copyright Carl Philipp Reh 2009 - 2016.
// 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 MIZUIRO_IMAGE_FORMAT_INCLUDE_COLOR_HPP_INCLUDED
#define MIZUIRO_IMAGE_FORMAT_INCLUDE_COLOR_... | 42.529412 | 69 | 0.795297 | cpreh |
df8a26146c888925bd7fe8532b71e545b7afadc6 | 1,753 | cpp | C++ | unittest/test_perf.cpp | hxmhuang/OpenArray_Dev | 863866a6b7accf21fa253567b0e66143c7506cdf | [
"MIT"
] | 3 | 2020-09-08T05:01:56.000Z | 2020-11-23T13:11:25.000Z | unittest/test_perf.cpp | hxmhuang/OpenArray_Dev | 863866a6b7accf21fa253567b0e66143c7506cdf | [
"MIT"
] | null | null | null | unittest/test_perf.cpp | hxmhuang/OpenArray_Dev | 863866a6b7accf21fa253567b0e66143c7506cdf | [
"MIT"
] | 2 | 2019-08-16T08:32:30.000Z | 2020-02-10T08:44:04.000Z | #include <iostream>
#include "../common.hpp"
#include "../Array.hpp"
#include "../Function.hpp"
#include "../Node.hpp"
#include "../Operator.hpp"
#include "mpi.h"
extern "C"{
void tic(const char* s);
void toc(const char* s);
void show_time(const char* s);
void show_all();
}
void test_sample_math(){
int m = ... | 22.766234 | 73 | 0.529949 | hxmhuang |
df8be3ccafa0ddb0f7bd46f23ceb65a663167d70 | 16,563 | cpp | C++ | ring.cpp | aritalab/SRHE | 38161f1e62edc72a6d0afa638d057579f7005095 | [
"Apache-2.0"
] | null | null | null | ring.cpp | aritalab/SRHE | 38161f1e62edc72a6d0afa638d057579f7005095 | [
"Apache-2.0"
] | null | null | null | ring.cpp | aritalab/SRHE | 38161f1e62edc72a6d0afa638d057579f7005095 | [
"Apache-2.0"
] | null | null | null | #include <cassert>
#include <NTL/RR.h>
#include "ring.h"
/**********************************************************************/
ostream& operator<< (ostream& s, const ring& rg) {
s << rg.label << ": type = " << rg.type << ", mR = " << rg.mR << ", pR = " << rg.pR
<< ", gR = " << rg.gR << ", tR = " << rg.tR << "... | 24.832084 | 106 | 0.530942 | aritalab |
df8df2b5aba2d6c33c4786a8fd1f1f9a5961bc97 | 63 | cpp | C++ | darknet-master/build/modules/core/opencv_core_pch.cpp | mcyy23633/ship_YOLOv4 | 2eb53e578546fce663a2f3fa153481ce4f82c588 | [
"MIT"
] | null | null | null | darknet-master/build/modules/core/opencv_core_pch.cpp | mcyy23633/ship_YOLOv4 | 2eb53e578546fce663a2f3fa153481ce4f82c588 | [
"MIT"
] | null | null | null | darknet-master/build/modules/core/opencv_core_pch.cpp | mcyy23633/ship_YOLOv4 | 2eb53e578546fce663a2f3fa153481ce4f82c588 | [
"MIT"
] | null | null | null | #include "C:/opencv/opencv-4.5.1/modules/core/src/precomp.hpp"
| 31.5 | 62 | 0.746032 | mcyy23633 |
df8f6dc3a9c13bef37338f0e75985c5f03b8c75c | 2,707 | hpp | C++ | ImprovisedTDS/include/Camera2D.hpp | lunacys/ImprovisedTDS | 32c7adcb26be4eaaf48fa64bcd42c55917f681a3 | [
"MIT"
] | null | null | null | ImprovisedTDS/include/Camera2D.hpp | lunacys/ImprovisedTDS | 32c7adcb26be4eaaf48fa64bcd42c55917f681a3 | [
"MIT"
] | null | null | null | ImprovisedTDS/include/Camera2D.hpp | lunacys/ImprovisedTDS | 32c7adcb26be4eaaf48fa64bcd42c55917f681a3 | [
"MIT"
] | null | null | null | #pragma once
#include <glm.hpp>
#include <gtc/matrix_transform.hpp>
#include "Entity.hpp"
class Camera2D
{
public:
glm::vec2 Position;
glm::vec3 Origin;
glm::vec2 Velocity;
GLfloat MovementSpeed;
//GLfloat Zoom;
//GLfloat Rotation;
Entity* FollowingEntity;
Camera2D(Entity* followingEntity, const glm::ve... | 26.028846 | 149 | 0.633912 | lunacys |
df92afb39e9d5caf68e12f7d324ad29ad18510cb | 5,521 | cpp | C++ | relationships/wariancja-stare.cpp | tehora/phd-sourcecodes | b8c9be03b6de012b886e3d3f43c9d179ec2d701b | [
"MIT"
] | null | null | null | relationships/wariancja-stare.cpp | tehora/phd-sourcecodes | b8c9be03b6de012b886e3d3f43c9d179ec2d701b | [
"MIT"
] | null | null | null | relationships/wariancja-stare.cpp | tehora/phd-sourcecodes | b8c9be03b6de012b886e3d3f43c9d179ec2d701b | [
"MIT"
] | null | null | null | #include <stdio.h>
#include <vector>
#include <map>
#include <string.h>
using namespace std;
int N, M;
vector<int> ids;
struct edge {int a, b, t; bool invalid;
edge(int _a, int _b, int _t) { a = _a; b = _b; t = _t; invalid = false; }
edge() { invalid = false; }
};
vector<edge> edges;
map<pair<int, int>, in... | 25.095455 | 91 | 0.514581 | tehora |
df9523ebf00bdb4336ad44d8f368c9673fe8b0b8 | 11,530 | cpp | C++ | test/test_init.cpp | andreasWallner/bitstring | 8cea3e1e3d4f559a94fdf34ac514fa9084cb2f9f | [
"MIT"
] | null | null | null | test/test_init.cpp | andreasWallner/bitstring | 8cea3e1e3d4f559a94fdf34ac514fa9084cb2f9f | [
"MIT"
] | null | null | null | test/test_init.cpp | andreasWallner/bitstring | 8cea3e1e3d4f559a94fdf34ac514fa9084cb2f9f | [
"MIT"
] | null | null | null | #include "bitstring/bit_array.hpp"
#include "bitstring/exceptions.hpp"
#include "bitstring/literals.hpp"
#include "util.hpp"
#include <catch2/catch_test_macros.hpp>
SCENARIO("default initialization") {
GIVEN("no preconditions") {
WHEN("using default constructor") {
auto dut = bitstring::bit_array();
... | 38.952703 | 80 | 0.577363 | andreasWallner |
df9b387f007a8a15c0c30072de3a875a07228e49 | 603 | cpp | C++ | Chapter13-Virtual-Constructors-and-Factories/ctor_dtor_static_type.cpp | shekerkamma/Hands-On-Design-Patterns-with-CPP | 5f6aa05ac44491a92fef6e38179d1bd3c8e39347 | [
"MIT"
] | 1 | 2020-11-23T21:57:24.000Z | 2020-11-23T21:57:24.000Z | Chapter13-Virtual-Constructors-and-Factories/ctor_dtor_static_type.cpp | shekerkamma/Hands-On-Design-Patterns-with-CPP | 5f6aa05ac44491a92fef6e38179d1bd3c8e39347 | [
"MIT"
] | null | null | null | Chapter13-Virtual-Constructors-and-Factories/ctor_dtor_static_type.cpp | shekerkamma/Hands-On-Design-Patterns-with-CPP | 5f6aa05ac44491a92fef6e38179d1bd3c8e39347 | [
"MIT"
] | 1 | 2022-01-21T23:14:24.000Z | 2022-01-21T23:14:24.000Z | #include <iostream>
#include <typeinfo>
class A {
public:
A() { std::cout << "A::A(): " << typeid(*this).name() << std::endl; }
~A() { std::cout << "A::~A(): " << typeid(*this).name() << std::endl; }
};
class B : public A {
public:
B() { std::cout << "B::B(): " << typeid(*this).name() << std::endl; }
... | 23.192308 | 75 | 0.456053 | shekerkamma |
df9bf1eecc3da30b3144625519ce8aeb66ff9aab | 1,667 | cpp | C++ | Laboratory 10 [File IO and Vector]/Problem01/problem01.cpp | Md-Sabbir-Ahmed/EEE2110 | 16871fdac8a4d996ec18620e91cdcdade4d6e322 | [
"MIT"
] | null | null | null | Laboratory 10 [File IO and Vector]/Problem01/problem01.cpp | Md-Sabbir-Ahmed/EEE2110 | 16871fdac8a4d996ec18620e91cdcdade4d6e322 | [
"MIT"
] | null | null | null | Laboratory 10 [File IO and Vector]/Problem01/problem01.cpp | Md-Sabbir-Ahmed/EEE2110 | 16871fdac8a4d996ec18620e91cdcdade4d6e322 | [
"MIT"
] | null | null | null | /*
NAME: MD. SABBIR AHMED
ID:20200105021
SECTION:A
----------------------
CHAPTER:10
PROBLEM:01
*/
//including headers
#include <iostream>
#include<fstream>
#include<vector>
using namespace std;
// main function
int main()
{
// open file
fstream fin,f1;
fin.open("sabbir.txt");
// first making a variable f... | 19.845238 | 54 | 0.556689 | Md-Sabbir-Ahmed |
dfa9f468e4e93324e8080ac4f28881611129ba5d | 1,874 | cpp | C++ | Sample/Renderer.cpp | SatoshiMabuchi/Crystal | 91b2d72e5544cf86183587d2cfea48ca7f390dd4 | [
"MIT"
] | null | null | null | Sample/Renderer.cpp | SatoshiMabuchi/Crystal | 91b2d72e5544cf86183587d2cfea48ca7f390dd4 | [
"MIT"
] | null | null | null | Sample/Renderer.cpp | SatoshiMabuchi/Crystal | 91b2d72e5544cf86183587d2cfea48ca7f390dd4 | [
"MIT"
] | null | null | null | #include "Renderer.h"
#include "../../Crystal/UI/ViewModel.h"
#include "../ThirdParty/stb/stb_image.h"
using namespace Crystal::Graphics;
using namespace Crystal::UI;
bool Renderer::build()
{
if (!pointRenderer.build()) {
return false;
}
if (!wireRenderer.build()) {
return false;
}
if (!smoo... | 26.027778 | 99 | 0.63714 | SatoshiMabuchi |
dfad1eae591b18aabbc173e107967fc4c7a9596c | 1,231 | cpp | C++ | Arbi/EASY/Blowing Fuse.cpp | AhmedMostafa7474/Codingame-Solutions | da696a095c143c5d216bc06f6689ad1c0e25d0e0 | [
"MIT"
] | 1 | 2022-03-16T08:56:31.000Z | 2022-03-16T08:56:31.000Z | Arbi/EASY/Blowing Fuse.cpp | AhmedMostafa7474/Codingame-Solutions | da696a095c143c5d216bc06f6689ad1c0e25d0e0 | [
"MIT"
] | 2 | 2022-03-17T11:27:14.000Z | 2022-03-18T07:41:00.000Z | Arbi/EASY/Blowing Fuse.cpp | AhmedMostafa7474/Codingame-Solutions | da696a095c143c5d216bc06f6689ad1c0e25d0e0 | [
"MIT"
] | 6 | 2022-03-13T19:56:11.000Z | 2022-03-17T12:08:22.000Z | #include <iostream>
#include <string>
#include <vector>
#include <algorithm>
#include <bits/stdc++.h>
using namespace std;
/**
* Auto-generated code below aims at helping you parse
* the standard input according to the problem statement.
**/
int main()
{
int n;
int m;
int c;
cin >> n >> m >> c; ci... | 23.226415 | 76 | 0.484159 | AhmedMostafa7474 |
dfad85de9646d335bab216cb4844b64036560c73 | 2,326 | cpp | C++ | software/widgets/CustomBarDisplay.cpp | rksdna/fc100 | a9f54baca928d74891aada5ff6707c534f6f75c1 | [
"MIT"
] | null | null | null | software/widgets/CustomBarDisplay.cpp | rksdna/fc100 | a9f54baca928d74891aada5ff6707c534f6f75c1 | [
"MIT"
] | null | null | null | software/widgets/CustomBarDisplay.cpp | rksdna/fc100 | a9f54baca928d74891aada5ff6707c534f6f75c1 | [
"MIT"
] | null | null | null | #include <QPainter>
#include <QFontMetrics>
#include "CustomBarDisplay.h"
CustomBarDisplay::CustomBarDisplay(QWidget *parent)
: CustomDisplay(parent),
m_barSize(5, 50),
m_min(0.0),
m_max(0.0)
{
}
QSize CustomBarDisplay::barSize() const
{
return m_barSize;
}
void CustomBarDisplay::setBarSize... | 24.229167 | 112 | 0.617369 | rksdna |
dfb68e68ee0b4dfec996124a1c1dcdbcb83e0505 | 4,097 | hpp | C++ | include/graph/graph_utility.hpp | pratzl/graph | 4bb50e92ab77bb1e672285340acf221ae5ae75af | [
"BSL-1.0"
] | 12 | 2020-01-09T22:15:00.000Z | 2022-03-15T21:36:21.000Z | include/graph/graph_utility.hpp | pratzl/graph | 4bb50e92ab77bb1e672285340acf221ae5ae75af | [
"BSL-1.0"
] | 2 | 2021-05-05T16:34:29.000Z | 2021-09-19T20:14:58.000Z | include/graph/graph_utility.hpp | pratzl/graph | 4bb50e92ab77bb1e672285340acf221ae5ae75af | [
"BSL-1.0"
] | 3 | 2020-01-30T21:41:55.000Z | 2021-05-05T10:48:04.000Z | #include "graph.hpp"
#include <string>
#include <algorithm>
#ifndef GRAPH_UTILITY_HPP
# define GRAPH_UTILITY_HPP
namespace std {
//
// Default implementations
//
template <directed_or_undirected G>
constexpr auto degree(const G& g, const_vertex_iterator_t<G> u) noexcept -> vertex_edge_size_t<G> {
return size(edge... | 28.255172 | 120 | 0.642909 | pratzl |
dfbf2b17af9f8a56b5084f67b6655736d06f8161 | 21 | cpp | C++ | Star/Reflect.cpp | frank-hliva/StarLib | 0ae668ff36846968505fbb913c9026d354ddf027 | [
"BSD-3-Clause"
] | null | null | null | Star/Reflect.cpp | frank-hliva/StarLib | 0ae668ff36846968505fbb913c9026d354ddf027 | [
"BSD-3-Clause"
] | null | null | null | Star/Reflect.cpp | frank-hliva/StarLib | 0ae668ff36846968505fbb913c9026d354ddf027 | [
"BSD-3-Clause"
] | null | null | null | #include "Reflect.h"
| 10.5 | 20 | 0.714286 | frank-hliva |
dfc0013ae315a979afc1afb2a99198e121ebc3e7 | 151 | cpp | C++ | test_package/example.cpp | skizzay/utilz | 7077be0e31ab7edbe4ff1cddb625ad3b9137f779 | [
"MIT"
] | null | null | null | test_package/example.cpp | skizzay/utilz | 7077be0e31ab7edbe4ff1cddb625ad3b9137f779 | [
"MIT"
] | null | null | null | test_package/example.cpp | skizzay/utilz | 7077be0e31ab7edbe4ff1cddb625ad3b9137f779 | [
"MIT"
] | null | null | null | #define CATCH_CONFIG_MAIN
#if __has_include<catch/catch.hpp>
# include <catch/catch.hpp>
#elif __has_include<catch.hpp>
# include <catch.hpp>
#endif
| 21.571429 | 34 | 0.768212 | skizzay |
dfc3130ed06091b9d7ae9e0fb5ba8a6ea73d1637 | 1,873 | cpp | C++ | 15.3-sum.cpp | YouChenLiu/leetcode | 470954126ef316feab8c4c30e791535aeec56418 | [
"Unlicense"
] | 1 | 2021-03-22T07:43:26.000Z | 2021-03-22T07:43:26.000Z | 15.3-sum.cpp | YouChenLiu/leetcode | 470954126ef316feab8c4c30e791535aeec56418 | [
"Unlicense"
] | null | null | null | 15.3-sum.cpp | YouChenLiu/leetcode | 470954126ef316feab8c4c30e791535aeec56418 | [
"Unlicense"
] | null | null | null | /*
* @lc app=leetcode id=15 lang=cpp
*
* [15] 3Sum
*/
// @lc code=start
#include <algorithm>
#include <set>
#include <vector>
using namespace std;
class Solution {
public:
vector<vector<int>> threeSum(vector<int> &nums) {
if (nums.size() < 3) {
return {};
}
std::sort(nums.begin(), nums.end())... | 24.012821 | 65 | 0.449546 | YouChenLiu |
dfc336d38af858dc9ccc73f0c2809d39e067fe11 | 1,267 | cpp | C++ | Plugins/org.blueberry.ui.qt/src/internal/berryWorkbenchLocationService.cpp | zhaomengxiao/MITK | a09fd849a4328276806008bfa92487f83a9e2437 | [
"BSD-3-Clause"
] | 1 | 2022-03-03T12:03:32.000Z | 2022-03-03T12:03:32.000Z | Plugins/org.blueberry.ui.qt/src/internal/berryWorkbenchLocationService.cpp | zhaomengxiao/MITK | a09fd849a4328276806008bfa92487f83a9e2437 | [
"BSD-3-Clause"
] | 1 | 2021-12-22T10:19:02.000Z | 2021-12-22T10:19:02.000Z | Plugins/org.blueberry.ui.qt/src/internal/berryWorkbenchLocationService.cpp | zhaomengxiao/MITK_lancet | a09fd849a4328276806008bfa92487f83a9e2437 | [
"BSD-3-Clause"
] | 1 | 2020-11-27T09:41:18.000Z | 2020-11-27T09:41:18.000Z | /*============================================================================
The Medical Imaging Interaction Toolkit (MITK)
Copyright (c) German Cancer Research Center (DKFZ)
All rights reserved.
Use of this source code is governed by a 3-clause BSD license that can be
found in the LICENSE file.
=================... | 23.90566 | 106 | 0.625888 | zhaomengxiao |
dfc401c807e3ad76dcb477bfa6f0a717a1244615 | 2,054 | hpp | C++ | include/propria/traits/require_member.hpp | chriskohlhoff/propria | b382e589ef6c01bdde971e23549cb8ca1da1ae3d | [
"BSL-1.0"
] | 10 | 2019-03-31T08:56:08.000Z | 2021-11-15T02:59:24.000Z | include/propria/traits/require_member.hpp | chriskohlhoff/propria | b382e589ef6c01bdde971e23549cb8ca1da1ae3d | [
"BSL-1.0"
] | null | null | null | include/propria/traits/require_member.hpp | chriskohlhoff/propria | b382e589ef6c01bdde971e23549cb8ca1da1ae3d | [
"BSL-1.0"
] | 1 | 2019-03-29T15:35:19.000Z | 2019-03-29T15:35:19.000Z | //
// traits/require_member.hpp
// ~~~~~~~~~~~~~~~~~~~~~~~~~
//
// Copyright (c) 2003-2020 Christopher M. Kohlhoff (chris at kohlhoff dot com)
//
// Distributed under the Boost Software License, Version 1.0. (See accompanying
// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
//
#ifndef PROPRIA_T... | 25.358025 | 79 | 0.738559 | chriskohlhoff |
dfc7ee54b7bc6636654631235b9213763eda765e | 6,826 | hh | C++ | src/ds++/Check_Strings.hh | jhchang-lanl/Draco | b8e3bcd38ab739615c1df506268d70bf99929efa | [
"BSD-3-Clause-Open-MPI"
] | 43 | 2017-02-17T23:47:36.000Z | 2022-03-14T07:53:43.000Z | src/ds++/Check_Strings.hh | jhchang-lanl/Draco | b8e3bcd38ab739615c1df506268d70bf99929efa | [
"BSD-3-Clause-Open-MPI"
] | 848 | 2017-01-16T01:03:38.000Z | 2022-01-11T18:56:50.000Z | src/ds++/Check_Strings.hh | jhchang-lanl/Draco | b8e3bcd38ab739615c1df506268d70bf99929efa | [
"BSD-3-Clause-Open-MPI"
] | 31 | 2017-03-02T19:51:15.000Z | 2021-09-08T02:33:34.000Z | //--------------------------------------------*-C++-*---------------------------------------------//
/*!
* \file ds++/Check_Strings.hh
* \author John McGhee
* \date Sun Jan 30 14:57:09 2000 *
* \brief Provides some utilities to check containers of strings.
* \note Copyright (C) 2016-2020 Triad National Securi... | 38.564972 | 100 | 0.623791 | jhchang-lanl |
dfc8dbae393dde113d9bd00101b030b323644287 | 3,454 | cpp | C++ | src/integrator/WhittedIntegrator.cpp | BlauHimmel/Hikari | 38746e5d03a8e106a346a6f792f3093034a576bb | [
"MIT"
] | 11 | 2018-11-22T03:07:10.000Z | 2022-03-31T15:51:29.000Z | src/integrator/WhittedIntegrator.cpp | BlauHimmel/Hikari | 38746e5d03a8e106a346a6f792f3093034a576bb | [
"MIT"
] | 2 | 2019-02-14T15:05:42.000Z | 2019-07-26T06:07:13.000Z | src/integrator/WhittedIntegrator.cpp | BlauHimmel/Hikari | 38746e5d03a8e106a346a6f792f3093034a576bb | [
"MIT"
] | 4 | 2018-12-18T12:40:07.000Z | 2022-03-31T15:51:31.000Z | #include <integrator\WhittedIntegrator.hpp>
#include <core\Mesh.hpp>
#include <core\Scene.hpp>
#include <core\Sampler.hpp>
#include <core\BSDF.hpp>
NAMESPACE_BEGIN
REGISTER_CLASS(WhittedIntegrator, XML_INTEGRATOR_WHITTED);
WhittedIntegrator::WhittedIntegrator(const PropertyList & PropList)
{
m_Depth = uint32_t(Prop... | 29.02521 | 173 | 0.706717 | BlauHimmel |
dfd01eca71435ea85279fc1d05ef49574b6e2d0c | 278 | cpp | C++ | 2d/simple_2d/main.cpp | realincubus/clang_plugin_tests | 018e22f37baaa7c072de8d455ad16057c953fd96 | [
"MIT"
] | null | null | null | 2d/simple_2d/main.cpp | realincubus/clang_plugin_tests | 018e22f37baaa7c072de8d455ad16057c953fd96 | [
"MIT"
] | null | null | null | 2d/simple_2d/main.cpp | realincubus/clang_plugin_tests | 018e22f37baaa7c072de8d455ad16057c953fd96 | [
"MIT"
] | null | null | null |
#define SIZE_X 1000
#define SIZE_Y 500
int main(int argc, char** argv){
double a[SIZE_Y][SIZE_X];
double b[SIZE_Y][SIZE_X];
for (int y = 0; y < SIZE_Y; ++y){
for (int x = 0; x < SIZE_X; ++x){
b[y][x] = a[y][x];
}
}
return 0;
}
| 15.444444 | 39 | 0.489209 | realincubus |
2546f03806afd896c07b147c6740b47dceb9b9a4 | 6,886 | hpp | C++ | clstatphys/clstatphys/tools/data_recorder.hpp | FIshikawa/ClassicalStatPhys | e4010480d3c7977829c1b3fdeaf51401a2409373 | [
"MIT"
] | null | null | null | clstatphys/clstatphys/tools/data_recorder.hpp | FIshikawa/ClassicalStatPhys | e4010480d3c7977829c1b3fdeaf51401a2409373 | [
"MIT"
] | 2 | 2020-01-21T08:54:05.000Z | 2020-01-21T09:29:10.000Z | clstatphys/clstatphys/tools/data_recorder.hpp | FIshikawa/ClassicalStatPhys | e4010480d3c7977829c1b3fdeaf51401a2409373 | [
"MIT"
] | 2 | 2020-07-18T03:36:32.000Z | 2021-07-21T22:58:27.000Z | #ifndef DATARECORDER_HPP
#define DATARECORDER_HPP
#include<vector>
#include<cmath>
#include<fstream>
#include<iostream>
#include<iomanip>
#include<chrono>
#include<unordered_map>
namespace tools {
class DataRecorder{
public:
DataRecorder(const std::string condidat) : condidat_(condidat) {initialize_ouputfile();}
... | 32.790476 | 314 | 0.604705 | FIshikawa |
25547bac778830ccd78f2267284721c98dcce21d | 1,214 | cpp | C++ | Before Summer 2017/Contests/codeJam/2017/qualification/B.cpp | mohamedGamalAbuGalala/Practice | 2a5fa3bdaf995d0c304f04231e1a69e6960f72c8 | [
"MIT"
] | 1 | 2019-12-19T06:51:20.000Z | 2019-12-19T06:51:20.000Z | Before Summer 2017/Contests/codeJam/2017/qualification/B.cpp | mohamedGamalAbuGalala/Practice | 2a5fa3bdaf995d0c304f04231e1a69e6960f72c8 | [
"MIT"
] | null | null | null | Before Summer 2017/Contests/codeJam/2017/qualification/B.cpp | mohamedGamalAbuGalala/Practice | 2a5fa3bdaf995d0c304f04231e1a69e6960f72c8 | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
#define INF 1e6
#define pb push_back
#define up upper_bound
#define lp lower_bound
#define rep(i,n) fr( __typeof(n)i = 0 ; i < n ; i++)
using namespace std;
typedef long long int lli;
typedef pair<int, int> ii;
typedef vector<int> vi;
typedef vector<ii> vii;
typedef vector<vector<ii>> vvii;
... | 16.861111 | 53 | 0.511532 | mohamedGamalAbuGalala |
2555d5d22c7d76759b5c1583fb989cec71432c12 | 2,534 | cpp | C++ | 2019/0217_nikkei2019-final/E.cpp | kazunetakahashi/atcoder | 16ce65829ccc180260b19316e276c2fcf6606c53 | [
"MIT"
] | 7 | 2019-03-24T14:06:29.000Z | 2020-09-17T21:16:36.000Z | 2019/0217_nikkei2019-final/E.cpp | kazunetakahashi/atcoder | 16ce65829ccc180260b19316e276c2fcf6606c53 | [
"MIT"
] | null | null | null | 2019/0217_nikkei2019-final/E.cpp | kazunetakahashi/atcoder | 16ce65829ccc180260b19316e276c2fcf6606c53 | [
"MIT"
] | 1 | 2020-07-22T17:27:09.000Z | 2020-07-22T17:27:09.000Z | #define DEBUG 1
/**
* File : E.cpp
* Author : Kazune Takahashi
* Created : 2/17/2019, 2:03:40 PM
* Powered by Visual Studio Code
*/
#include <iostream>
#include <iomanip> // << fixed << setprecision(xxx)
#include <algorithm> // do { } while ( next_permutation(A, A+xxx) ) ;
#include <vector>
#include <strin... | 18.77037 | 103 | 0.492107 | kazunetakahashi |
255ec739e12eae2a05d4c17b78238e663620da0b | 1,134 | cpp | C++ | src/org/apache/poi/sl/draw/geom/Outline.cpp | pebble2015/cpoi | 6dcc0c5e13e3e722b4ef9fd0baffbf62bf71ead6 | [
"Apache-2.0"
] | null | null | null | src/org/apache/poi/sl/draw/geom/Outline.cpp | pebble2015/cpoi | 6dcc0c5e13e3e722b4ef9fd0baffbf62bf71ead6 | [
"Apache-2.0"
] | null | null | null | src/org/apache/poi/sl/draw/geom/Outline.cpp | pebble2015/cpoi | 6dcc0c5e13e3e722b4ef9fd0baffbf62bf71ead6 | [
"Apache-2.0"
] | null | null | null | // Generated from /POI/java/org/apache/poi/sl/draw/geom/Outline.java
#include <org/apache/poi/sl/draw/geom/Outline.hpp>
#include <java/awt/Shape.hpp>
#include <org/apache/poi/sl/draw/geom/Path.hpp>
poi::sl::draw::geom::Outline::Outline(const ::default_init_tag&)
: super(*static_cast< ::default_init_tag* >(0))
{
... | 23.142857 | 89 | 0.646384 | pebble2015 |
255fc477702382a2ca4dca72258f298de1f6319c | 1,658 | cpp | C++ | src/menu/menu.cpp | rcetin/snake | e26524b12776921ef0f5eebe65ddf760399829bf | [
"MIT"
] | null | null | null | src/menu/menu.cpp | rcetin/snake | e26524b12776921ef0f5eebe65ddf760399829bf | [
"MIT"
] | null | null | null | src/menu/menu.cpp | rcetin/snake | e26524b12776921ef0f5eebe65ddf760399829bf | [
"MIT"
] | null | null | null | #include "menu.h"
menu::menu(SDL_Renderer *renderer)
{
mr = renderer;
mtexture = ntexture();
}
menu::~menu()
{
mtexture.free();
}
int menu::load_image(std::string path)
{
return mtexture.load_image(path, mr);
}
int menu::set_font(const char *font_file, int pt_size)
{
return mtexture.set_font(fon... | 20.725 | 108 | 0.550663 | rcetin |
2562dd24675c17882dd451b36646c0bd894d2a8a | 9,495 | cpp | C++ | src/vk_game_engine.cpp | unrealsid/vulkan_descriptor_sets | c2498a4d095bd282c213bcd6fde873a3183fdb95 | [
"MIT"
] | null | null | null | src/vk_game_engine.cpp | unrealsid/vulkan_descriptor_sets | c2498a4d095bd282c213bcd6fde873a3183fdb95 | [
"MIT"
] | null | null | null | src/vk_game_engine.cpp | unrealsid/vulkan_descriptor_sets | c2498a4d095bd282c213bcd6fde873a3183fdb95 | [
"MIT"
] | null | null | null | #include "vk_game_engine.h"
#include <SDL.h>
#include <SDL_vulkan.h>
#include <iostream>
#include <fstream>
#include "VkBootstrap.h"
#include "vk_initializers.h"
#define VMA_IMPLEMENTATION
#include "vk_mem_alloc.h"
#include "vk_global_data.h"
void VulkanEngine::init()
{
// We initialize SDL and create a window with ... | 30.432692 | 147 | 0.778304 | unrealsid |
2563b11272e487bca755021a47d07abc2684aa3e | 3,138 | hpp | C++ | include/fluidity/io/data_writer.hpp | robclu/fluidity | 22069dc3b0280f843494913a2371f940531d1744 | [
"MIT"
] | 1 | 2018-04-21T09:24:36.000Z | 2018-04-21T09:24:36.000Z | include/fluidity/io/data_writer.hpp | robclu/fluidity | 22069dc3b0280f843494913a2371f940531d1744 | [
"MIT"
] | 4 | 2018-08-05T12:14:41.000Z | 2021-09-20T14:38:50.000Z | include/fluidity/io/data_writer.hpp | robclu/fluidity | 22069dc3b0280f843494913a2371f940531d1744 | [
"MIT"
] | null | null | null | //==--- fluidity/io/data_writer.hpp ------------------------ -*- C++ -*- ---==//
//
// Fluidity
//
// Copyright (c) 2018 Rob Clucas.
//
// This file is distributed under the MIT License. See LICENSE for details.
//
//==----------------... | 34.866667 | 80 | 0.623008 | robclu |
25650db2315759dd723bc59c43c5fef6dd3363a3 | 3,039 | hpp | C++ | src/data-structures/linked-list.hpp | AncuL001/ta-strukdat-curses | c0149d85b09bc973cfd2af99b3873f9721bbf745 | [
"MIT"
] | null | null | null | src/data-structures/linked-list.hpp | AncuL001/ta-strukdat-curses | c0149d85b09bc973cfd2af99b3873f9721bbf745 | [
"MIT"
] | null | null | null | src/data-structures/linked-list.hpp | AncuL001/ta-strukdat-curses | c0149d85b09bc973cfd2af99b3873f9721bbf745 | [
"MIT"
] | null | null | null | #pragma once
#include "queue.hpp"
namespace data_structures {
/**
* @brief implementasi struct untuk elemen kategori
*/
struct CategoryNode {
std::string name;
TaskPriorityQueue tasks;
CategoryNode *prev;
CategoryNode *next;
/**
* @brief Constructor
*
* @param name n... | 22.345588 | 75 | 0.612043 | AncuL001 |
2566d57edadfb84400d8b48d16a61110fe77e35d | 512 | hpp | C++ | RubetekIOS-CPP.framework/Versions/A/Headers/libnet/rubetek/application/read_log_settings.hpp | yklishevich/RubetekIOS-CPP-releases | 7dfbbb45b8de7dbb6fa995ff5dcbca4ec06c2bdb | [
"MIT"
] | null | null | null | RubetekIOS-CPP.framework/Versions/A/Headers/libnet/rubetek/application/read_log_settings.hpp | yklishevich/RubetekIOS-CPP-releases | 7dfbbb45b8de7dbb6fa995ff5dcbca4ec06c2bdb | [
"MIT"
] | null | null | null | RubetekIOS-CPP.framework/Versions/A/Headers/libnet/rubetek/application/read_log_settings.hpp | yklishevich/RubetekIOS-CPP-releases | 7dfbbb45b8de7dbb6fa995ff5dcbca4ec06c2bdb | [
"MIT"
] | null | null | null | #pragma once
#include <dawn/app/log_settings_read.hpp>
#include <rubetek/application/log_settings.hpp>
namespace rubetek
{
inline void read_log_settings(boost::property_tree::ptree const& pt, log_settings& settings)
{
dawn::app::log_settings_read(pt, settings);
settings.log_io_ihlp = log_io... | 30.117647 | 110 | 0.705078 | yklishevich |
256888037f5f4e7470483c57f01961d23941be24 | 21,739 | cpp | C++ | config_file_configurator.cpp | mexicowilly/Chucho | f4235420437eb2078ab592540c0d729b7b9a3c10 | [
"Apache-2.0"
] | 4 | 2016-12-06T05:33:29.000Z | 2017-12-17T17:04:25.000Z | config_file_configurator.cpp | mexicowilly/Chucho | f4235420437eb2078ab592540c0d729b7b9a3c10 | [
"Apache-2.0"
] | 147 | 2016-09-05T14:00:46.000Z | 2021-08-24T14:43:07.000Z | config_file_configurator.cpp | mexicowilly/Chucho | f4235420437eb2078ab592540c0d729b7b9a3c10 | [
"Apache-2.0"
] | 4 | 2017-11-08T04:12:39.000Z | 2022-01-04T06:40:16.000Z | /*
* Copyright 2013-2021 Will Mason
*
* 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 applicab... | 41.328897 | 148 | 0.597728 | mexicowilly |
2568deab99f527f90c4efd7c73cf70861f3c6a53 | 1,315 | cpp | C++ | ch3/drill3.cpp | l1ng4n27/DE_IK | 9c9a5fe39cf8782f5f080895c0428252b5074356 | [
"Apache-2.0"
] | null | null | null | ch3/drill3.cpp | l1ng4n27/DE_IK | 9c9a5fe39cf8782f5f080895c0428252b5074356 | [
"Apache-2.0"
] | null | null | null | ch3/drill3.cpp | l1ng4n27/DE_IK | 9c9a5fe39cf8782f5f080895c0428252b5074356 | [
"Apache-2.0"
] | null | null | null | #include "std_lib_facilities.h"
int main(){
cout << "Please enter your first name, followed by an 'enter': ";
string first_name;
cin >> first_name;
cout << "Hello, " << first_name << "!\n";
cout << "Enter the name of the person you want to write to: ";
string name;
cin >> name;
cout << "Dear, " << name << "!... | 33.717949 | 84 | 0.621293 | l1ng4n27 |
256b86cdadb78f4cfc4a0ffb844561b78a635140 | 1,367 | hpp | C++ | components/esm/loadpgrd.hpp | Bodillium/openmw | 5fdd264d0704e33b44b1ccf17ab4fb721f362e34 | [
"Unlicense"
] | null | null | null | components/esm/loadpgrd.hpp | Bodillium/openmw | 5fdd264d0704e33b44b1ccf17ab4fb721f362e34 | [
"Unlicense"
] | null | null | null | components/esm/loadpgrd.hpp | Bodillium/openmw | 5fdd264d0704e33b44b1ccf17ab4fb721f362e34 | [
"Unlicense"
] | null | null | null | #ifndef OPENMW_ESM_PGRD_H
#define OPENMW_ESM_PGRD_H
#include <string>
#include <vector>
namespace ESM
{
class ESMReader;
class ESMWriter;
/*
* Path grid.
*/
struct Pathgrid
{
static unsigned int sRecordId;
struct DATAstruct
{
int mX, mY; // Grid location, matches cell for exterior cells
... | 22.409836 | 78 | 0.615216 | Bodillium |
258008a934aa855175192894c82a7c39037038cd | 1,585 | cpp | C++ | src/Morrigu/Renderer/Shader.cpp | Ithyx/Morrigu | dc98809467fef2c7f74b81886563abc9e38e157f | [
"MIT"
] | 6 | 2020-08-23T22:53:33.000Z | 2021-04-03T20:53:44.000Z | src/Morrigu/Renderer/Shader.cpp | Ithyx/Morrigu | dc98809467fef2c7f74b81886563abc9e38e157f | [
"MIT"
] | null | null | null | src/Morrigu/Renderer/Shader.cpp | Ithyx/Morrigu | dc98809467fef2c7f74b81886563abc9e38e157f | [
"MIT"
] | 2 | 2020-09-15T21:01:55.000Z | 2021-04-05T13:19:36.000Z | #include "Shader.h"
#include "Renderer/APIs/OpenGL/Shader.h"
#include "Renderer/APIs/Vulkan/Shader.h"
#include "Renderer/RenderingAPI.h"
namespace MRG
{
Ref<Shader> Shader::create(const std::string& filePath, Encoding encoding)
{
switch (RenderingAPI::getAPI()) {
case RenderingAPI::API::OpenGL: {
return crea... | 24.765625 | 110 | 0.687066 | Ithyx |
258211c3b6d7a5effae439501ee3f64adfa94d76 | 711 | cpp | C++ | leetcode/removenthnodefromendoflist_.cpp | WIZARD-CXY/pl | 22b7f5d81804f4e333d3cff6433364ba1a0ac7ef | [
"Apache-2.0"
] | 1 | 2016-01-20T08:26:34.000Z | 2016-01-20T08:26:34.000Z | leetcode/removenthnodefromendoflist_.cpp | WIZARD-CXY/pl | 22b7f5d81804f4e333d3cff6433364ba1a0ac7ef | [
"Apache-2.0"
] | 1 | 2015-10-21T05:38:17.000Z | 2015-11-02T07:42:55.000Z | leetcode/removenthnodefromendoflist_.cpp | WIZARD-CXY/pl | 22b7f5d81804f4e333d3cff6433364ba1a0ac7ef | [
"Apache-2.0"
] | null | null | null | /**
* Definition for singly-linked list.
* struct ListNode {
* int val;
* ListNode *next;
* ListNode(int x) : val(x), next(NULL) {}
* };
*/
class Solution {
public:
ListNode* removeNthFromEnd(ListNode* head, int n) {
ListNode *dummy = new ListNode(-1);
dummy->next=head;
Li... | 21.545455 | 55 | 0.469761 | WIZARD-CXY |
258226d72e1e86b59ca95ca6d4056e4a37a4a3a0 | 397 | cpp | C++ | Chapter 13. Copy Control/Codes/13.31 main.cpp | Yunxiang-Li/Cpp_Primer | b5c857e3f6be993b2ff8fc03f634141ae24925fc | [
"MIT"
] | null | null | null | Chapter 13. Copy Control/Codes/13.31 main.cpp | Yunxiang-Li/Cpp_Primer | b5c857e3f6be993b2ff8fc03f634141ae24925fc | [
"MIT"
] | null | null | null | Chapter 13. Copy Control/Codes/13.31 main.cpp | Yunxiang-Li/Cpp_Primer | b5c857e3f6be993b2ff8fc03f634141ae24925fc | [
"MIT"
] | 1 | 2021-09-30T14:08:03.000Z | 2021-09-30T14:08:03.000Z | #include "HasPtr.hpp"
#include <vector>
#include <algorithm>
int main() {
std::vector<HasPtr> vec;
vec.emplace_back(HasPtr{"cat"});
vec.emplace_back(HasPtr{"dog"});
vec.emplace_back(HasPtr("banana"));
vec.emplace_back(HasPtr("apple"));
std::sort(vec.begin(), vec.end());
for (HasPtr& elem... | 19.85 | 48 | 0.599496 | Yunxiang-Li |
2586123c42a3ebeef7330f0afae5cfa4b40c9860 | 3,776 | hpp | C++ | include/ubiquity_motor/motor_system.hpp | DynoRobotics/ubiquity_motor | da09b7c36eea74ad03d1029cdc5dd43baf162e37 | [
"BSD-3-Clause"
] | null | null | null | include/ubiquity_motor/motor_system.hpp | DynoRobotics/ubiquity_motor | da09b7c36eea74ad03d1029cdc5dd43baf162e37 | [
"BSD-3-Clause"
] | null | null | null | include/ubiquity_motor/motor_system.hpp | DynoRobotics/ubiquity_motor | da09b7c36eea74ad03d1029cdc5dd43baf162e37 | [
"BSD-3-Clause"
] | null | null | null | /**
Copyright (c) 2016 Ubiquity Robotics, 2021 Dyno Robotics
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 condi... | 37.76 | 100 | 0.818591 | DynoRobotics |
2587c9a4d229766868c1c1236353cabbca06e076 | 5,721 | cpp | C++ | src/bindings/c/networkInterfaceHelper_c.cpp | L-Acoustics/networkInterfaceHelper | 5274c50ea2fb551ce187891a2759067d930ce589 | [
"BSD-3-Clause"
] | null | null | null | src/bindings/c/networkInterfaceHelper_c.cpp | L-Acoustics/networkInterfaceHelper | 5274c50ea2fb551ce187891a2759067d930ce589 | [
"BSD-3-Clause"
] | null | null | null | src/bindings/c/networkInterfaceHelper_c.cpp | L-Acoustics/networkInterfaceHelper | 5274c50ea2fb551ce187891a2759067d930ce589 | [
"BSD-3-Clause"
] | null | null | null | /*
* Copyright (C) 2016-2022, L-Acoustics
* This file is part of LA_networkInterfaceHelper.
* 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,
* ... | 32.505682 | 159 | 0.763503 | L-Acoustics |
258aa09aa2d3545c8280fbbd8366038b68e3930b | 5,702 | cpp | C++ | publish/CDLL_Loader/DLL_Loader.cpp | wyrover/win-sys | 2c83abb4bd353b983bcd682ae97d08c8117be4d4 | [
"MIT"
] | 42 | 2016-06-30T06:28:05.000Z | 2022-01-27T06:43:24.000Z | publish/CDLL_Loader/DLL_Loader.cpp | wyrover/win-sys | 2c83abb4bd353b983bcd682ae97d08c8117be4d4 | [
"MIT"
] | null | null | null | publish/CDLL_Loader/DLL_Loader.cpp | wyrover/win-sys | 2c83abb4bd353b983bcd682ae97d08c8117be4d4 | [
"MIT"
] | 19 | 2016-12-06T05:37:55.000Z | 2021-06-26T17:09:44.000Z | /* =========================================================
* DLL_Loader.h
* *********************************************************
*
* Class: CDLL_Loader
*
* Author: Dan Revah
*
* Date: 25/11/2011 (DD/MM/YYYY)
... | 26.896226 | 109 | 0.637145 | wyrover |
258c8575ba3484f85e181c37d54bb03b4fd8f139 | 11,759 | cpp | C++ | src/AWEngine/PacketClient.cpp | graymadness/AWEngine_Packet | 5a00aa954edf5bc5d496746cfdeab1511d5633b1 | [
"MIT"
] | null | null | null | src/AWEngine/PacketClient.cpp | graymadness/AWEngine_Packet | 5a00aa954edf5bc5d496746cfdeab1511d5633b1 | [
"MIT"
] | null | null | null | src/AWEngine/PacketClient.cpp | graymadness/AWEngine_Packet | 5a00aa954edf5bc5d496746cfdeab1511d5633b1 | [
"MIT"
] | null | null | null | #include "PacketClient.hpp"
#include <AWEngine/Packet/ToClient/Ping.hpp>
#include <AWEngine/Packet/ToClient/Kick.hpp>
#include <AWEngine/Packet/ToServer/Pong.hpp>
#include <AWEngine/Packet/ToServer/Disconnect.hpp>
namespace AWEngine
{
PacketClient::PacketClient(std::size_t maxOutputQueueSize)
: m_IoC... | 59.090452 | 181 | 0.28863 | graymadness |
258e1087c97683fa4da65e0a53c85f53baebc2db | 5,704 | cpp | C++ | test/logger_test.cpp | rjhcnf/logging | 9c427b10de131edf5b35fba672a6e69e375a7951 | [
"MIT"
] | null | null | null | test/logger_test.cpp | rjhcnf/logging | 9c427b10de131edf5b35fba672a6e69e375a7951 | [
"MIT"
] | null | null | null | test/logger_test.cpp | rjhcnf/logging | 9c427b10de131edf5b35fba672a6e69e375a7951 | [
"MIT"
] | null | null | null | // MIT License
// Copyright (c) 2018 Kohei Otsuka
// 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, me... | 49.172414 | 128 | 0.785589 | rjhcnf |
25957bfd28f1674d0c9b49437dd77395d9bd1102 | 1,582 | hpp | C++ | model/regressionmodel.hpp | BrentP-tmx/Pamplemousse | 6cd69d3369bf557c344d9a3a82b9c15f2381c366 | [
"Apache-2.0"
] | 6 | 2020-09-23T15:38:28.000Z | 2021-11-16T20:39:21.000Z | model/regressionmodel.hpp | BrentP-tmx/Pamplemousse | 6cd69d3369bf557c344d9a3a82b9c15f2381c366 | [
"Apache-2.0"
] | null | null | null | model/regressionmodel.hpp | BrentP-tmx/Pamplemousse | 6cd69d3369bf557c344d9a3a82b9c15f2381c366 | [
"Apache-2.0"
] | 2 | 2021-10-04T22:16:48.000Z | 2022-02-25T00:32:40.000Z | // Copyright 2018-2020 Lexis Nexis Risk Solutions
//
// 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 applicabl... | 31.64 | 112 | 0.719343 | BrentP-tmx |
25995fa766245618849315c87daef1e07ab9310f | 1,029 | cpp | C++ | MonoNative.Tests/mscorlib/System/mscorlib_System_Nullable_Fixture.cpp | brunolauze/MonoNative | 959fb52c2c1ffe87476ab0d6e4fcce0ad9ce1e66 | [
"BSD-2-Clause"
] | 7 | 2015-03-10T03:36:16.000Z | 2021-11-05T01:16:58.000Z | MonoNative.Tests/mscorlib/System/mscorlib_System_Nullable_Fixture.cpp | brunolauze/MonoNative | 959fb52c2c1ffe87476ab0d6e4fcce0ad9ce1e66 | [
"BSD-2-Clause"
] | 1 | 2020-06-23T10:02:33.000Z | 2020-06-24T02:05:47.000Z | MonoNative.Tests/mscorlib/System/mscorlib_System_Nullable_Fixture.cpp | brunolauze/MonoNative | 959fb52c2c1ffe87476ab0d6e4fcce0ad9ce1e66 | [
"BSD-2-Clause"
] | null | null | null | // Mono Native Fixture
// Assembly: mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
// Namespace: System
// Name: Nullable
// C++ Typed Name: mscorlib::System::NullableBase
#include <gtest/gtest.h>
#include <mscorlib/System/mscorlib_System_Nullable.h>
#include <mscorlib/System/mscorlib_Sys... | 20.176471 | 88 | 0.729835 | brunolauze |
25b3ce7819a65a492fb4fba6880728a7289d33a3 | 1,468 | cpp | C++ | DirectProgramming/DPC++/Jupyter/oneapi-essentials-training/10_DPCPP_Graphs_Scheduling_Data_management/src/task_scheduling.cpp | yafshar/oneAPI-samples | 592a2036e86e7083a05c0d6a1613fb826adf9a60 | [
"MIT"
] | null | null | null | DirectProgramming/DPC++/Jupyter/oneapi-essentials-training/10_DPCPP_Graphs_Scheduling_Data_management/src/task_scheduling.cpp | yafshar/oneAPI-samples | 592a2036e86e7083a05c0d6a1613fb826adf9a60 | [
"MIT"
] | null | null | null | DirectProgramming/DPC++/Jupyter/oneapi-essentials-training/10_DPCPP_Graphs_Scheduling_Data_management/src/task_scheduling.cpp | yafshar/oneAPI-samples | 592a2036e86e7083a05c0d6a1613fb826adf9a60 | [
"MIT"
] | null | null | null | //==============================================================
// Copyright © Intel Corporation
//
// SPDX-License-Identifier: MIT
// =============================================================
#include <CL/sycl.hpp>
using namespace sycl;
constexpr int N = 256;
int main() {
queue q;
//# 3 vectors initialize... | 28.784314 | 88 | 0.563351 | yafshar |
25b52d899d269d350a958c9f61330bd797264fbb | 11,985 | cpp | C++ | Examples/Display/Collision/Sources/CollisionLIB/outline_provider_bitmap_impl.cpp | xctan/ClanLib | 1a8d6eb6cab3e93fd5c6be618fb6f7bd1146fc2d | [
"Linux-OpenIB"
] | 248 | 2015-01-08T05:21:40.000Z | 2022-03-20T02:59:16.000Z | Examples/Display/Collision/Sources/CollisionLIB/outline_provider_bitmap_impl.cpp | xctan/ClanLib | 1a8d6eb6cab3e93fd5c6be618fb6f7bd1146fc2d | [
"Linux-OpenIB"
] | 39 | 2015-01-14T17:37:07.000Z | 2022-03-17T12:59:26.000Z | Examples/Display/Collision/Sources/CollisionLIB/outline_provider_bitmap_impl.cpp | xctan/ClanLib | 1a8d6eb6cab3e93fd5c6be618fb6f7bd1146fc2d | [
"Linux-OpenIB"
] | 82 | 2015-01-11T13:23:49.000Z | 2022-02-19T03:17:24.000Z | /*
** ClanLib SDK
** Copyright (c) 1997-2016 The ClanLib Team
**
** This software is provided 'as-is', without any express or implied
** warranty. In no event will the authors be held liable for any damages
** arising from the use of this software.
**
** Permission is granted to anyone to use this software for a... | 27.551724 | 126 | 0.667835 | xctan |
25c06824632c0fa930e392358ec35f1e2dc2ba79 | 424 | cpp | C++ | jni/application/Simple_Terrain.cpp | clarkdonald/eecs494game4 | c5101b4bbf7f620c3490dcfb88f5e72260ef8fa2 | [
"BSD-2-Clause"
] | null | null | null | jni/application/Simple_Terrain.cpp | clarkdonald/eecs494game4 | c5101b4bbf7f620c3490dcfb88f5e72260ef8fa2 | [
"BSD-2-Clause"
] | null | null | null | jni/application/Simple_Terrain.cpp | clarkdonald/eecs494game4 | c5101b4bbf7f620c3490dcfb88f5e72260ef8fa2 | [
"BSD-2-Clause"
] | null | null | null | //
// Simple_Terrain.cpp
// game
//
// Created by Donald Clark on 11/18/13.
//
//
#include "Simple_Terrain.h"
using namespace Zeni;
Simple_Terrain::Simple_Terrain(const Point2f &position_,
const String &texture_,
const Vector2f &size_)
: Terrain(positi... | 19.272727 | 56 | 0.615566 | clarkdonald |
25c0ed3310c3f0734e6dda2ac1324f094c6cb1e6 | 708 | hpp | C++ | Freeze/src/EventSystem/KeyEvent.hpp | alexorfanoud/Freeze | c5350e5793238f78c0d3719a077acbfd2be16694 | [
"Apache-2.0"
] | null | null | null | Freeze/src/EventSystem/KeyEvent.hpp | alexorfanoud/Freeze | c5350e5793238f78c0d3719a077acbfd2be16694 | [
"Apache-2.0"
] | null | null | null | Freeze/src/EventSystem/KeyEvent.hpp | alexorfanoud/Freeze | c5350e5793238f78c0d3719a077acbfd2be16694 | [
"Apache-2.0"
] | null | null | null | #pragma once
#include "Base.hpp"
#include "Event.hpp"
namespace Freeze {
class KeyPressedEvent : public Event{
public:
KeyPressedEvent(int code, bool repeat = false) : m_Code(code), m_Repeat(repeat){}
inline int GetKeyCode() const { return m_Code; }
inline bool IsRepeat() const ... | 25.285714 | 89 | 0.610169 | alexorfanoud |
25c2063900891e574e714bcfc89836df5a749294 | 210 | cpp | C++ | chapters/1/ex1_6.cpp | yG620/cpp_primer_5th_solutions | 68fdb2e5167228a3d31ac31c221c1055c2500b91 | [
"Apache-2.0"
] | null | null | null | chapters/1/ex1_6.cpp | yG620/cpp_primer_5th_solutions | 68fdb2e5167228a3d31ac31c221c1055c2500b91 | [
"Apache-2.0"
] | null | null | null | chapters/1/ex1_6.cpp | yG620/cpp_primer_5th_solutions | 68fdb2e5167228a3d31ac31c221c1055c2500b91 | [
"Apache-2.0"
] | null | null | null | #include <iostream>
int main(int argc, const char **argv) {
int v1 = 2, v2 = 2;
std::cout << "The sum of " << v1 << " and " << v2 << " is " << v1 + v2
<< std::endl;
return 0;
} | 26.25 | 75 | 0.442857 | yG620 |
25c28227a26f60c33dd9095749f159928a9f64d1 | 6,626 | cpp | C++ | OGLPG-9th-Edition/OGLPG-9th-Edition/src/06-cubemap/06-cubemap.cpp | PablioMartins/graphic-computing | 639c93be07e2ec8a7cf1efdcc41b25a1680c704f | [
"MIT"
] | null | null | null | OGLPG-9th-Edition/OGLPG-9th-Edition/src/06-cubemap/06-cubemap.cpp | PablioMartins/graphic-computing | 639c93be07e2ec8a7cf1efdcc41b25a1680c704f | [
"MIT"
] | null | null | null | OGLPG-9th-Edition/OGLPG-9th-Edition/src/06-cubemap/06-cubemap.cpp | PablioMartins/graphic-computing | 639c93be07e2ec8a7cf1efdcc41b25a1680c704f | [
"MIT"
] | 1 | 2022-01-31T17:57:59.000Z | 2022-01-31T17:57:59.000Z | /* $URL$
$Rev$
$Author$
$Date$
$Id$
*/
#include "vermilion.h"
#include "vapp.h"
#include "vutils.h"
#include "vbm.h"
#include "vmath.h"
#include <stdio.h>
BEGIN_APP_DECLARATION(CubeMapExample)
// Override functions from base class
virtual void Initialize(const char * title);
virtual void D... | 27.26749 | 98 | 0.620284 | PablioMartins |
5ad7c6f5303ea764fd6a19406428e4af4434a511 | 359 | cpp | C++ | pathfinding/main.cpp | WhiteShadow13/FIJJJAL | f590fb5db39ac6e27502c3b4b94c9c1810f0e56e | [
"MIT"
] | null | null | null | pathfinding/main.cpp | WhiteShadow13/FIJJJAL | f590fb5db39ac6e27502c3b4b94c9c1810f0e56e | [
"MIT"
] | null | null | null | pathfinding/main.cpp | WhiteShadow13/FIJJJAL | f590fb5db39ac6e27502c3b4b94c9c1810f0e56e | [
"MIT"
] | null | null | null | #include <iostream>
#include <string>
#include "pathfinding.h"
#include "struct.h"
using namespace std;
int main()
{
loc_t loc_start;
loc_t loc_end;
loc_start.x = 10;
loc_start.y = 10;
loc_end.x = 90;
loc_end.y = 90;
Pathfinding path = Pathfinding(loc_start, loc_end, 1);
string wa... | 14.36 | 58 | 0.632312 | WhiteShadow13 |
5ad8d680f25252faab60cd8a1f3490a7d8286935 | 5,898 | hpp | C++ | reverbs/include/Room.hpp | Buerner/ssrverb | 0b2ba1938fcebbffd0b992091c2993cc367f3ecf | [
"MIT"
] | null | null | null | reverbs/include/Room.hpp | Buerner/ssrverb | 0b2ba1938fcebbffd0b992091c2993cc367f3ecf | [
"MIT"
] | null | null | null | reverbs/include/Room.hpp | Buerner/ssrverb | 0b2ba1938fcebbffd0b992091c2993cc367f3ecf | [
"MIT"
] | null | null | null | //
// Room.cpp
// SSRverb - https://github.com/Buerner/SSRverb
//
// Copyright © 2017 Martin Bürner. All rights reserved.
// Licensed under the MIT License. See LICENSE.md file in the project root for full license information.
//
#ifndef Room_hpp
#define Room_hpp
#include "Room.hpp"
#include "Plane3D.hpp"
#incl... | 30.559585 | 135 | 0.570871 | Buerner |
5add0ed4a2367043c80dd77f64dfd619b61bf80a | 7,686 | cpp | C++ | plugins/dinput/src/keyboard/translate_key_code.cpp | cpreh/spacegameengine | 313a1c34160b42a5135f8223ffaa3a31bc075a01 | [
"BSL-1.0"
] | 2 | 2016-01-27T13:18:14.000Z | 2018-05-11T01:11:32.000Z | plugins/dinput/src/keyboard/translate_key_code.cpp | cpreh/spacegameengine | 313a1c34160b42a5135f8223ffaa3a31bc075a01 | [
"BSL-1.0"
] | null | null | null | plugins/dinput/src/keyboard/translate_key_code.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/dinput/di.hpp>
#include <sge/dinput/keyboard/translate_key_code.hpp>
#include <sge/in... | 28.894737 | 81 | 0.650924 | cpreh |
5add15bca12ab75e79a7b19ea92f250e1bdb337b | 700 | hpp | C++ | include/HTTP_Client.hpp | DanilPost/lab08_HTTP_Client | 88d7fa42fb6407a77124ed317d7bb9d5ab68070e | [
"MIT"
] | null | null | null | include/HTTP_Client.hpp | DanilPost/lab08_HTTP_Client | 88d7fa42fb6407a77124ed317d7bb9d5ab68070e | [
"MIT"
] | null | null | null | include/HTTP_Client.hpp | DanilPost/lab08_HTTP_Client | 88d7fa42fb6407a77124ed317d7bb9d5ab68070e | [
"MIT"
] | null | null | null | // Copyright 2021 Danil Postvaykin <postvaykin01@mail.ru>
#ifndef INCLUDE_HTTP_CLIENT_HPP_
#define INCLUDE_HTTP_CLIENT_HPP_
#include <boost/beast/core.hpp>
#include <boost/beast/http.hpp>
#include <boost/beast/version.hpp>
#include <boost/asio/ip/tcp.hpp>
#include <boost/asio/connect.hpp>
#include <boost/config.hpp>
... | 20 | 57 | 0.741429 | DanilPost |
5ae2d7c116854a6938540f1c400177c14cd03f56 | 10,597 | cpp | C++ | data/880.cpp | TianyiChen/rdcpp-data | 75c6868c876511e3ce143fdc3c08ddd74c7aa4ea | [
"MIT"
] | null | null | null | data/880.cpp | TianyiChen/rdcpp-data | 75c6868c876511e3ce143fdc3c08ddd74c7aa4ea | [
"MIT"
] | null | null | null | data/880.cpp | TianyiChen/rdcpp-data | 75c6868c876511e3ce143fdc3c08ddd74c7aa4ea | [
"MIT"
] | null | null | null | int q2FA6 ,k ,lB8, sv
,
PKPl
,pHd4/*YWj*/
,
dOw ,
Z2iEyq ,T,
QRD, h6, QOj,QZn,fx,OuT , //pJ2
Tx5k ,
JGaP, C7j ,
Fmy,S5
,
Svc//bAzD
,dX , eUDq
,mux5 ,
jt//m
,
I6W ,
UJbv ,Xp,sK,/*cSt*/tN,V3 ,//hHO
kN, prW ,t1 , D6p//XqS
,un8N,Vlh,W096a
,/*BNrU*/ fml6, MCD ,
TMq , JpUp, kziM ,QJk
, f2R, RGG,RT ... | 11.166491 | 66 | 0.461451 | TianyiChen |
5ae316408c0c9a966c9d7e8a782028f79587fdb1 | 1,105 | hpp | C++ | src/map/detectors/trivial_cp_detector.hpp | yalavrinenko/trash_rogaine_solver | 88833935419ea340a9e51722da4b4907a502ea38 | [
"MIT"
] | null | null | null | src/map/detectors/trivial_cp_detector.hpp | yalavrinenko/trash_rogaine_solver | 88833935419ea340a9e51722da4b4907a502ea38 | [
"MIT"
] | null | null | null | src/map/detectors/trivial_cp_detector.hpp | yalavrinenko/trash_rogaine_solver | 88833935419ea340a9e51722da4b4907a502ea38 | [
"MIT"
] | null | null | null | //
// Created by yalavrinenko on 23.05.2021.
//
#ifndef TRASH_ROGAINE_SOLVER_TRIVIAL_CP_DETECTOR_HPP
#define TRASH_ROGAINE_SOLVER_TRIVIAL_CP_DETECTOR_HPP
#include <utils/concepts.hpp>
#include <unordered_map>
namespace trs{
class general_detector{
public:
general_detector();
std::unordered_map<size_t, che... | 28.333333 | 121 | 0.743891 | yalavrinenko |
5ae37bf2ec08bb25e959fa26c49466a70bdf48f7 | 5,610 | cpp | C++ | TinyEngine/src/graphics/renderer/renderpass/deferred/DeferredLightingPass.cpp | Pierce-qiang/TinyEngine | 4f6b8ba2f1b0b9f76b3a9fcb83126144b07f07cc | [
"MIT"
] | 1 | 2022-03-03T14:30:32.000Z | 2022-03-03T14:30:32.000Z | TinyEngine/src/graphics/renderer/renderpass/deferred/DeferredLightingPass.cpp | Pierce-qiang/TinyEngine | 4f6b8ba2f1b0b9f76b3a9fcb83126144b07f07cc | [
"MIT"
] | null | null | null | TinyEngine/src/graphics/renderer/renderpass/deferred/DeferredLightingPass.cpp | Pierce-qiang/TinyEngine | 4f6b8ba2f1b0b9f76b3a9fcb83126144b07f07cc | [
"MIT"
] | null | null | null | #include "DeferredLightingPass.h"
#include "../../../../platform/window/WindowManager.h"
namespace TEngine {
DeferredLightingPass::DeferredLightingPass(Scene* scene) :
RenderPass(scene)
{
// create shader
std::unordered_map<std::string, std::string> lightingShaderPaths;
lightingShaderPaths.insert({ "vertex",... | 43.488372 | 211 | 0.774688 | Pierce-qiang |
5ae4feeeee3cf88392669f8b9e95ff221ca174f6 | 213 | cpp | C++ | OperatorsAndConditions/02.TruncateNumber/Startup.cpp | Tanya-Zheleva/FMI-Intro-Programming | c326d331ac72bc41e4664b23fc56a4da7d2d6729 | [
"MIT"
] | 2 | 2020-10-27T09:27:14.000Z | 2021-10-09T14:57:15.000Z | OperatorsAndConditions/02.TruncateNumber/Startup.cpp | Tanya-Zheleva/FMI-Intro-Programming | c326d331ac72bc41e4664b23fc56a4da7d2d6729 | [
"MIT"
] | null | null | null | OperatorsAndConditions/02.TruncateNumber/Startup.cpp | Tanya-Zheleva/FMI-Intro-Programming | c326d331ac72bc41e4664b23fc56a4da7d2d6729 | [
"MIT"
] | null | null | null | #include <iostream>
#include <cmath>
using namespace std;
int main()
{
double n = 0;
cin >> n;
cout << "Before using trunc() " << n << endl;
cout << "After using trunc() " << trunc(n) << endl;
return 0;
} | 14.2 | 52 | 0.58216 | Tanya-Zheleva |
5aee4b304cb966101d805208975644673e4fa712 | 1,324 | cpp | C++ | examples/mgard-x/SimpleExample/SimpleExample.cpp | JasonRuonanWang/MGARD | 70d3399f6169c8a369da9fe9786c45cb6f3bb9f1 | [
"Apache-2.0"
] | null | null | null | examples/mgard-x/SimpleExample/SimpleExample.cpp | JasonRuonanWang/MGARD | 70d3399f6169c8a369da9fe9786c45cb6f3bb9f1 | [
"Apache-2.0"
] | null | null | null | examples/mgard-x/SimpleExample/SimpleExample.cpp | JasonRuonanWang/MGARD | 70d3399f6169c8a369da9fe9786c45cb6f3bb9f1 | [
"Apache-2.0"
] | null | null | null | #include "mgard/compress_cuda.hpp"
#include <iostream>
#include <vector>
int main() {
mgard_x::SIZE n1 = 10;
mgard_x::SIZE n2 = 20;
mgard_x::SIZE n3 = 30;
// prepare
std::cout << "Preparing data...";
double *in_array_cpu;
mgard_x::cudaMallocHostHelper((void **)&in_array_cpu,
... | 35.783784 | 78 | 0.672961 | JasonRuonanWang |
5aef121cfe69cf21804d61312117c67d54b42ebf | 1,687 | cpp | C++ | algorithms/SUFFIXARRAY.cpp | chinoxyz/guiafuentes | 753d026d91ddcbabcccee7947a2ee6c581eb94eb | [
"MIT"
] | null | null | null | algorithms/SUFFIXARRAY.cpp | chinoxyz/guiafuentes | 753d026d91ddcbabcccee7947a2ee6c581eb94eb | [
"MIT"
] | null | null | null | algorithms/SUFFIXARRAY.cpp | chinoxyz/guiafuentes | 753d026d91ddcbabcccee7947a2ee6c581eb94eb | [
"MIT"
] | null | null | null | #include<iostream>
#include<string>
#include<algorithm>
using namespace std;
#define MAXN 1000005
int n,t; //n es el tamaño de la cadena
int p[MAXN],r[MAXN],h[MAXN];
//p es el inverso del suffix array, no usa indices del suffix array ordenado
//h el el tamaño del lcp entre el i-esimo y el i+1-esimo elemento de suffix ... | 25.179104 | 90 | 0.442798 | chinoxyz |
5af161a45c30a7220b177fe1cbbb6bd9879c21cd | 231 | cpp | C++ | ChaosGL/clearmask.cpp | chaosarts/ChaosGL.cpp | 7d851a404824609547fb9261790b87cee7699d5c | [
"Apache-2.0"
] | null | null | null | ChaosGL/clearmask.cpp | chaosarts/ChaosGL.cpp | 7d851a404824609547fb9261790b87cee7699d5c | [
"Apache-2.0"
] | null | null | null | ChaosGL/clearmask.cpp | chaosarts/ChaosGL.cpp | 7d851a404824609547fb9261790b87cee7699d5c | [
"Apache-2.0"
] | null | null | null | /*
* GLbitmask.h
*
* Created on: 07.03.2016
* Author: chaos
*/
#include "clearmask.hpp"
namespace chaosgl
{
clearmask::clearmask (GLbitfield field) : field(field) {}
clearmask::~clearmask() {};
} /* namespace ca */
| 14.4375 | 58 | 0.627706 | chaosarts |
5afb51b9cd9fc613921e41cf330affdccf3d661a | 5,027 | hpp | C++ | Includes/Rosetta/Battlegrounds/Zones/FieldZone.hpp | Hearthstonepp/Hearthstonepp | ee17ae6de1ee0078dab29d75c0fbe727a14e850e | [
"MIT"
] | 62 | 2017-08-21T14:11:00.000Z | 2018-04-23T16:09:02.000Z | Includes/Rosetta/Battlegrounds/Zones/FieldZone.hpp | Hearthstonepp/Hearthstonepp | ee17ae6de1ee0078dab29d75c0fbe727a14e850e | [
"MIT"
] | 37 | 2017-08-21T11:13:07.000Z | 2018-04-30T08:58:41.000Z | Includes/Rosetta/Battlegrounds/Zones/FieldZone.hpp | Hearthstonepp/Hearthstonepp | ee17ae6de1ee0078dab29d75c0fbe727a14e850e | [
"MIT"
] | 10 | 2017-08-21T03:44:12.000Z | 2018-01-10T22:29:10.000Z | // Copyright (c) 2019 Chris Ohk, Youngjoong Kim, SeungHyun Jeon
// We are making my contributions/submissions to this project solely in our
// personal capacity and are not conveying any rights to any intellectual
// property of any third parties.
#ifndef ROSETTASTONE_BATTLEGROUNDS_FIELD_ZONE_HPP
#define ROSETTASTONE... | 31.030864 | 80 | 0.647901 | Hearthstonepp |
5afe48eb927c5d7982c0354706d13ac27b51498c | 1,550 | cpp | C++ | src/common/btrc/utils/intersection.cpp | AirGuanZ/Btrc | 8865eb1506f96fb0230fb394b9fadb1e38f2b9d8 | [
"MIT"
] | 17 | 2022-02-03T09:35:14.000Z | 2022-03-28T04:27:05.000Z | src/common/btrc/utils/intersection.cpp | AirGuanZ/Btrc | 8865eb1506f96fb0230fb394b9fadb1e38f2b9d8 | [
"MIT"
] | 1 | 2022-02-09T15:11:55.000Z | 2022-02-09T15:11:55.000Z | src/common/btrc/utils/intersection.cpp | AirGuanZ/Btrc | 8865eb1506f96fb0230fb394b9fadb1e38f2b9d8 | [
"MIT"
] | null | null | null | #include <btrc/utils/intersection.h>
BTRC_BEGIN
CVec3f intersection_offset(ref<CVec3f> inct_pos, ref<CVec3f> inct_nor)
{
static auto func = cuj::function_contextless(
"btrc_intersection_offset", [](ref<CVec3f> pos, ref<CVec3f> nor)
{
constexpr float ORIGIN = 1.0f / 32.0f;
constexp... | 39.74359 | 112 | 0.628387 | AirGuanZ |
5aff124409b0417d42ff63de115a115cb1ce0bc2 | 1,101 | cpp | C++ | code/c++11/2011/template/7.cpp | watchpoints/daily-interview | 2a9848ed1290211952aea995dc312bc7e84b221e | [
"Apache-2.0"
] | 2 | 2021-07-21T04:19:46.000Z | 2021-07-21T04:19:52.000Z | code/c++11/2011/template/7.cpp | watchpoints/daily-interview | 2a9848ed1290211952aea995dc312bc7e84b221e | [
"Apache-2.0"
] | 27 | 2021-03-14T04:28:48.000Z | 2021-12-08T10:39:22.000Z | code/c++11/2011/template/7.cpp | watchpoints/daily-interview | 2a9848ed1290211952aea995dc312bc7e84b221e | [
"Apache-2.0"
] | null | null | null | //【编程实验】不完美转发和完美转发
#include <iostream>
using namespace std;
void print(const int& t) //左值版本
{
cout <<"void print(const int& t)" << endl;
}
void print(int&& t) //右值版本
{
cout << "void print(int&& t)" << endl;
}
template<typename T>
void testForward(T&& param)
{
//不完美转发
print(param); //p... | 21.173077 | 70 | 0.5604 | watchpoints |
850c9269b495702cd2feb3f43b25cb8ffc7ef6e2 | 972 | cpp | C++ | lab_10/lab10part1.cpp | pwestrich/csc_2100 | baa2326ac0015772b19262337886e5f1d7e0b66c | [
"MIT"
] | null | null | null | lab_10/lab10part1.cpp | pwestrich/csc_2100 | baa2326ac0015772b19262337886e5f1d7e0b66c | [
"MIT"
] | null | null | null | lab_10/lab10part1.cpp | pwestrich/csc_2100 | baa2326ac0015772b19262337886e5f1d7e0b66c | [
"MIT"
] | null | null | null | //Lab 10 Part 1
//by Philip Westrich
//CSC 2101
//Tuesday, November 13, 2012
#include <iostream>
void oddOrEven(int x[], int count, int& numEven, int& numOdd);
int main(){
int x[12] = {11, 2, 56, 77, 205, 200, 30, 43, 6, 35, 9, 19};
int count = 12;
int numOdd = 0; // Variable to stor... | 20.25 | 70 | 0.451646 | pwestrich |
850f5b245eb79d51c4c0ea37a83d1b1d518f8a7d | 35,050 | cpp | C++ | examples_tests/22.RaytracedAO/main.cpp | deprilula28/Nabla | 6b5de216221718191713dcf6de8ed6407182ddf0 | [
"Apache-2.0"
] | null | null | null | examples_tests/22.RaytracedAO/main.cpp | deprilula28/Nabla | 6b5de216221718191713dcf6de8ed6407182ddf0 | [
"Apache-2.0"
] | null | null | null | examples_tests/22.RaytracedAO/main.cpp | deprilula28/Nabla | 6b5de216221718191713dcf6de8ed6407182ddf0 | [
"Apache-2.0"
] | null | null | null | // Copyright (C) 2018-2020 - DevSH Graphics Programming Sp. z O.O.
// This file is part of the "Nabla Engine".
// For conditions of distribution and use, see copyright notice in nabla.h
#define _NBL_STATIC_LIB_
#include <nabla.h>
#include <chrono>
#include <filesystem>
#include "../common/QToQuitEventReceiver.h"
#i... | 35.547667 | 231 | 0.692611 | deprilula28 |
851dc5c6e53accff89174f9a3d1e11807f97b841 | 313 | cpp | C++ | pthread_test1.cpp | MatrixWood/sometestsnippet | 5ab058d6110233c948f2db44b1ba8e70fec04ab9 | [
"MIT"
] | null | null | null | pthread_test1.cpp | MatrixWood/sometestsnippet | 5ab058d6110233c948f2db44b1ba8e70fec04ab9 | [
"MIT"
] | null | null | null | pthread_test1.cpp | MatrixWood/sometestsnippet | 5ab058d6110233c948f2db44b1ba8e70fec04ab9 | [
"MIT"
] | null | null | null | #include <pthread.h>
#include <unistd.h>
#include <stdio.h>
void* threadfunc(void* arg) {
while (1) {
sleep(1);
printf("new thread\n");
}
return NULL;
}
int main() {
pthread_t threadid;
pthread_create(&threadid, NULL, threadfunc, NULL);
while (1) {
}
return 0;
} | 15.65 | 54 | 0.56869 | MatrixWood |
8526088eef7100f35dd60d2d1563fa8c55b1f389 | 71 | cpp | C++ | examples/wifi/GUI/experimentsetup.cpp | balsini/metasim | e20a2313b18bb943d766dc1ecf3c61cf28d956f2 | [
"Naumen",
"Condor-1.1",
"MS-PL"
] | null | null | null | examples/wifi/GUI/experimentsetup.cpp | balsini/metasim | e20a2313b18bb943d766dc1ecf3c61cf28d956f2 | [
"Naumen",
"Condor-1.1",
"MS-PL"
] | null | null | null | examples/wifi/GUI/experimentsetup.cpp | balsini/metasim | e20a2313b18bb943d766dc1ecf3c61cf28d956f2 | [
"Naumen",
"Condor-1.1",
"MS-PL"
] | null | null | null | #include "experimentsetup.hpp"
ExperimentSetup::ExperimentSetup()
{
}
| 11.833333 | 34 | 0.774648 | balsini |
852cfb4aaa47fcbde9caff1f0410dd7db338996b | 11,240 | cpp | C++ | test/handlers_unittest.cpp | fckxorg/ad-hoc_messenger_server | 2e118bc4fa1ed2b35600933b675d8a16cd7b5eb4 | [
"MIT"
] | null | null | null | test/handlers_unittest.cpp | fckxorg/ad-hoc_messenger_server | 2e118bc4fa1ed2b35600933b675d8a16cd7b5eb4 | [
"MIT"
] | null | null | null | test/handlers_unittest.cpp | fckxorg/ad-hoc_messenger_server | 2e118bc4fa1ed2b35600933b675d8a16cd7b5eb4 | [
"MIT"
] | null | null | null | #include "request_helpers.hpp"
#define CROW_MAIN_
#include <crow_all.h>
#include <gtest/gtest.h>
#include <bsoncxx/builder/basic/document.hpp>
#include <bsoncxx/builder/basic/kvp.hpp>
#include <bsoncxx/json.hpp>
#include <bsoncxx/stdx/string_view.hpp>
#include <mongocxx/client.hpp>
#include <mongocxx/instance.hpp>
#i... | 34.060606 | 80 | 0.576068 | fckxorg |
852f5f73715a1b3b29e21fb44aefbc55e6f5091e | 2,813 | cc | C++ | tests/test-multikey-sort.cc | tkubotake/nwc-toolkit | 0f15669cf70b767724a11cb73f8e634765fee365 | [
"BSD-3-Clause"
] | 6 | 2017-04-06T01:49:36.000Z | 2021-03-14T15:01:59.000Z | tests/test-multikey-sort.cc | tkubotake/nwc-toolkit | 0f15669cf70b767724a11cb73f8e634765fee365 | [
"BSD-3-Clause"
] | null | null | null | tests/test-multikey-sort.cc | tkubotake/nwc-toolkit | 0f15669cf70b767724a11cb73f8e634765fee365 | [
"BSD-3-Clause"
] | 1 | 2021-12-24T22:23:29.000Z | 2021-12-24T22:23:29.000Z | // Copyright 2010 Susumu Yata <syata@acm.org>
#include <algorithm>
#include <cassert>
#include <cstring>
#include <ctime>
#include <iostream>
#include <tr1/random>
#include <vector>
#include <nwc-toolkit/multikey-sort.h>
namespace {
std::tr1::mt19937 mt_rand(static_cast<unsigned int>(time(NULL)));
template <typena... | 24.893805 | 68 | 0.599005 | tkubotake |
8533c9d5ffaade3627638ce1ff682c5a2eb2d1bf | 845 | cpp | C++ | firmware/libs/PicoLed/VirtualStrip.cpp | vives-projectweek-2022/Lannooleaf | f4990c128124e9e42c6c3f1072c05b8e57a03a3a | [
"Apache-2.0"
] | null | null | null | firmware/libs/PicoLed/VirtualStrip.cpp | vives-projectweek-2022/Lannooleaf | f4990c128124e9e42c6c3f1072c05b8e57a03a3a | [
"Apache-2.0"
] | 5 | 2022-03-29T09:37:03.000Z | 2022-03-31T06:27:10.000Z | firmware/libs/PicoLed/VirtualStrip.cpp | vives-projectweek-2022/Lannooleaf | f4990c128124e9e42c6c3f1072c05b8e57a03a3a | [
"Apache-2.0"
] | null | null | null | #include "VirtualStrip.hpp"
namespace PicoLed {
VirtualStrip::VirtualStrip(shared_ptr<PicoLedTarget> target, uint start, uint end):
PicoLedTarget(*target), target(target), start(start), end(end)
{
this->numLeds = (start < end ? end - start : start - end);
}
VirtualStrip::~VirtualStrip() {
}
uint8_t VirtualStrip... | 22.236842 | 83 | 0.707692 | vives-projectweek-2022 |
8535ae77b287b63d4f33c305697d3bc4e480e27a | 130 | cc | C++ | build/x86/python/m5/internal/param_MemTest.i_init.cc | billionshang/gem5 | 18cc4294f32315595f865d07d1f33434e92b06b2 | [
"BSD-3-Clause"
] | null | null | null | build/x86/python/m5/internal/param_MemTest.i_init.cc | billionshang/gem5 | 18cc4294f32315595f865d07d1f33434e92b06b2 | [
"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_MemTest.i_init.cc | hoho20000000/gem5-fy | b59f6feed22896d6752331652c4d8a41a4ca4435 | [
"BSD-3-Clause"
] | null | null | null | #include "sim/init.hh"
extern "C" {
void init_param_MemTest();
}
EmbeddedSwig embed_swig_param_MemTest(init_param_MemTest);
| 16.25 | 58 | 0.761538 | billionshang |
85394a02a9ae5f15b8c004cd6e58127489552253 | 14,832 | cpp | C++ | src/WinWindow.cpp | razerx100/Luna | 5bfef9279d355e9eb73a4425c06a86edf687cd8b | [
"MIT"
] | null | null | null | src/WinWindow.cpp | razerx100/Luna | 5bfef9279d355e9eb73a4425c06a86edf687cd8b | [
"MIT"
] | null | null | null | src/WinWindow.cpp | razerx100/Luna | 5bfef9279d355e9eb73a4425c06a86edf687cd8b | [
"MIT"
] | null | null | null | #include <WinWindow.hpp>
#include <WindowThrowMacros.hpp>
#include <filesystem>
#include <IGraphicsEngine.hpp>
#include <hidusage.h>
#include <Xinput.h>
#ifdef _IMGUI
#include <imgui_impl_win32.h>
// Forward Declaration of ImGui wndproc
extern IMGUI_IMPL_API LRESULT ImGui_ImplWin32_WndProcHandler(HWND hWnd, ... | 25.884817 | 113 | 0.692422 | razerx100 |
853bb28e9c1a36fea3c5723e2e738e8463537a4b | 1,124 | cpp | C++ | src/imagecache.cpp | lmeinel/NegLab | 748ef85c660837e96b90606e662ea01c7e671a78 | [
"BSD-2-Clause"
] | 1 | 2020-02-03T02:44:07.000Z | 2020-02-03T02:44:07.000Z | src/imagecache.cpp | lmeinel/NegLab | 748ef85c660837e96b90606e662ea01c7e671a78 | [
"BSD-2-Clause"
] | null | null | null | src/imagecache.cpp | lmeinel/NegLab | 748ef85c660837e96b90606e662ea01c7e671a78 | [
"BSD-2-Clause"
] | null | null | null | #include "imagecache.h"
ImageCache::ImageCache()
{
}
void ImageCache::clearCache()
{
clearCacheNegatives();
clearCachePositives();
}
void ImageCache::clearCacheNegatives()
{
m_negativesFull.clear();
m_negativesThumb.clear();
}
void ImageCache::clearCachePositives()
{
m_positivesFull.clear();
... | 18.42623 | 76 | 0.727758 | lmeinel |
854132a7e2ff86f0264eb2095bd9e9e2b8112a64 | 1,660 | cpp | C++ | test/test_logger.cpp | cheneyfan/MTRpc | 459684e44db866fb067311ae8dbfaf66f35bed15 | [
"BSD-3-Clause"
] | 2 | 2021-05-12T14:13:21.000Z | 2022-03-14T09:11:14.000Z | test/test_logger.cpp | cheneyfan/MTRpc | 459684e44db866fb067311ae8dbfaf66f35bed15 | [
"BSD-3-Clause"
] | null | null | null | test/test_logger.cpp | cheneyfan/MTRpc | 459684e44db866fb067311ae8dbfaf66f35bed15 | [
"BSD-3-Clause"
] | null | null | null | #include "stdio.h"
#include "iostream"
#include <sys/time.h>
#include "log/log.h"
#include "common/timerhelper.h"
#include "common/signalhelper.h"
#include "thread/workpool.h"
using namespace mtrpc;
int pp =0;
#define TF "%s %d %u %ld %lu %f %lf %c %p %% "
#define TD "a",10,-1,10000000,-10,1.0,2.0,'c',&pp
#defin... | 16.767677 | 94 | 0.56506 | cheneyfan |
85419dc5e2669712c6961fe83bfe44ce181df59e | 2,037 | cpp | C++ | src/core/map/i_brush.cpp | MrPepperoni/Reaping2-1 | 4ffef3cca1145ddc06ca87d2968c7b0ffd3ba3fd | [
"MIT"
] | 3 | 2015-02-22T20:34:28.000Z | 2020-03-04T08:55:25.000Z | src/core/map/i_brush.cpp | MrPepperoni/Reaping2-1 | 4ffef3cca1145ddc06ca87d2968c7b0ffd3ba3fd | [
"MIT"
] | 22 | 2015-12-13T16:29:40.000Z | 2017-03-04T15:45:44.000Z | src/core/map/i_brush.cpp | Reaping2/Reaping2 | 0d4c988c99413e50cc474f6206cf64176eeec95d | [
"MIT"
] | 14 | 2015-11-23T21:25:09.000Z | 2020-07-17T17:03:23.000Z | #include "i_brush.h"
#include "../i_position_component.h"
#include "../i_collision_component.h"
#include "editor_grid_system.h"
#include "editor_target_system.h"
#include "editor_system.h"
#include "editor_layer_system.h"
#include "editor_visiblity_system.h"
namespace map {
IBrush::IBrush( int32_t Id )
: mId( Id ... | 33.95 | 119 | 0.617575 | MrPepperoni |
8548220d22b32287e6344ecf67a41c15ede536bd | 1,214 | hpp | C++ | services/network/HttpPageWebSocket.hpp | bkvenkatesh/embeddedinfralib | 6a61684c37642a9e37bc757a29e5fbce18705529 | [
"Unlicense"
] | 1 | 2019-09-06T11:22:52.000Z | 2019-09-06T11:22:52.000Z | services/network/HttpPageWebSocket.hpp | bkvenkatesh/embeddedinfralib | 6a61684c37642a9e37bc757a29e5fbce18705529 | [
"Unlicense"
] | null | null | null | services/network/HttpPageWebSocket.hpp | bkvenkatesh/embeddedinfralib | 6a61684c37642a9e37bc757a29e5fbce18705529 | [
"Unlicense"
] | null | null | null | #ifndef SERVICES_HTTP_PAGE_WEB_SOCKET_HPP
#define SERVICES_HTTP_PAGE_WEB_SOCKET_HPP
#include "services/network/HttpServer.hpp"
#include "services/network/WebSocket.hpp"
namespace services
{
class HttpPageWebSocket
: public services::HttpPage
, public services::ConnectionObserver
{
public:
... | 31.128205 | 128 | 0.721582 | bkvenkatesh |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.