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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
da8ced8c0b50f921522d08b1e017c00b2229741b | 10,917 | cpp | C++ | src/core/pointers.cpp | vanreeslab/murphy | 01c9c56171fcee33cb3c1c93c25617ccf7b8ff83 | [
"BSD-3-Clause"
] | 1 | 2021-12-01T22:12:56.000Z | 2021-12-01T22:12:56.000Z | src/core/pointers.cpp | vanreeslab/murphy | 01c9c56171fcee33cb3c1c93c25617ccf7b8ff83 | [
"BSD-3-Clause"
] | null | null | null | src/core/pointers.cpp | vanreeslab/murphy | 01c9c56171fcee33cb3c1c93c25617ccf7b8ff83 | [
"BSD-3-Clause"
] | null | null | null | // #include "pointers.hpp"
// //=============================================================================
// /**
// * @brief return a write access to the data
// *
// * @param i0 the index in dimension 0 = X
// * @param i1 the index in dimension 1 = Y
// * @param i2 the index in dimension 2 = Z
// * @param ... | 45.869748 | 173 | 0.48026 | vanreeslab |
da8dbf942ca4924ae4e1b66e3f8ee9801f97f1d5 | 54 | cxx | C++ | Software/CPU/myscrypt/build/cmake-3.12.3/Tests/SimpleInstallS2/lib3.cxx | duonglvtnaist/Multi-ROMix-Scrypt-Accelerator | 9cb9d96c72c3e912fb7cfd5a786e50e4844a1ee8 | [
"MIT"
] | 64 | 2015-03-06T00:30:56.000Z | 2022-03-24T13:26:53.000Z | Software/CPU/myscrypt/build/cmake-3.12.3/Tests/SimpleInstallS2/lib3.cxx | duonglvtnaist/Multi-ROMix-Scrypt-Accelerator | 9cb9d96c72c3e912fb7cfd5a786e50e4844a1ee8 | [
"MIT"
] | 12 | 2020-12-15T08:30:19.000Z | 2022-03-13T03:54:24.000Z | Software/CPU/myscrypt/build/cmake-3.12.3/Tests/SimpleInstallS2/lib3.cxx | duonglvtnaist/Multi-ROMix-Scrypt-Accelerator | 9cb9d96c72c3e912fb7cfd5a786e50e4844a1ee8 | [
"MIT"
] | 40 | 2015-02-26T15:31:16.000Z | 2022-03-03T23:23:37.000Z | #include "lib3.h"
float Lib3Func()
{
return 2.0;
}
| 7.714286 | 17 | 0.611111 | duonglvtnaist |
da967a87b0babaad96b1757ec934c50ed0e28c80 | 1,378 | cpp | C++ | src/shape_detector/src/reconfigure_parameter_manager.cpp | harrycomeon/ros_object_recognition | 064d3cbac1ffc31cba48461ee08961f9da540a28 | [
"MIT"
] | 68 | 2018-09-25T13:46:29.000Z | 2022-03-16T15:43:48.000Z | src/shape_detector/src/reconfigure_parameter_manager.cpp | harrycomeon/ros_object_recognition | 064d3cbac1ffc31cba48461ee08961f9da540a28 | [
"MIT"
] | 1 | 2019-02-05T05:18:24.000Z | 2020-02-16T15:36:33.000Z | src/shape_detector/src/reconfigure_parameter_manager.cpp | harrycomeon/ros_object_recognition | 064d3cbac1ffc31cba48461ee08961f9da540a28 | [
"MIT"
] | 27 | 2018-11-02T06:31:43.000Z | 2022-03-22T08:11:00.000Z | /** \file
* \brief Implementation of the ReconfigureParameterManager class.
*/
// std.
#include <functional> // bind(), placeholders
#include <algorithm> // max()
// Headers of this package.
#include <shape_detector/reconfigure_parameter_manager.h>
#include <shape_detector/shape_enum.h>
namespace shape_detector ... | 31.318182 | 86 | 0.75254 | harrycomeon |
da97c10aa8bcef4f262db68f43fe2a1dc466268d | 956 | cpp | C++ | source/stdiooutputstream.cpp | bondadmin/bond | 3fb698f0c8c4d92de088f87d17be2f41f1088c42 | [
"MIT"
] | null | null | null | source/stdiooutputstream.cpp | bondadmin/bond | 3fb698f0c8c4d92de088f87d17be2f41f1088c42 | [
"MIT"
] | null | null | null | source/stdiooutputstream.cpp | bondadmin/bond | 3fb698f0c8c4d92de088f87d17be2f41f1088c42 | [
"MIT"
] | null | null | null | #include "bond/io/stdiooutputstream.h"
#include "bond/systems/assert.h"
namespace Bond
{
StdioOutputStream::StdioOutputStream(const char *fileName):
mHandle(fileName, "wb"),
mFile(mHandle.GetFile())
{
if (!IsBound())
{
BOND_FAIL_FORMAT(("Failed to open file '%s' for writing.", fileName));
}
}
void StdioOu... | 18.384615 | 101 | 0.692469 | bondadmin |
da9d2da2646decffb7492d4e40f4fad84c113804 | 20 | cpp | C++ | Morpheus-Core/Source/Morppch.cpp | Red-Scarlet/Morpheus-Engine | f9ddc2ab4bac5f6f8b2f7334358c47dcc558eec4 | [
"Apache-2.0"
] | 2 | 2020-11-07T12:38:16.000Z | 2020-11-21T01:36:49.000Z | Morpheus-Core/Source/Morppch.cpp | LegendaryDelta/Morpheus-Engine | f9ddc2ab4bac5f6f8b2f7334358c47dcc558eec4 | [
"Apache-2.0"
] | null | null | null | Morpheus-Core/Source/Morppch.cpp | LegendaryDelta/Morpheus-Engine | f9ddc2ab4bac5f6f8b2f7334358c47dcc558eec4 | [
"Apache-2.0"
] | null | null | null | #include "Morppch.h" | 20 | 20 | 0.75 | Red-Scarlet |
daa69166317e2506f7ddf8f656c4c0ca3d2eaf66 | 2,401 | cpp | C++ | src/System/Utils.cpp | maddinat0r/cpp-gamemode-samp | ee36f3f322502f6faa997647d562bf25863e7791 | [
"MIT"
] | 1 | 2021-05-31T11:10:12.000Z | 2021-05-31T11:10:12.000Z | src/System/Utils.cpp | maddinat0r/cpp-gamemode-samp | ee36f3f322502f6faa997647d562bf25863e7791 | [
"MIT"
] | null | null | null | src/System/Utils.cpp | maddinat0r/cpp-gamemode-samp | ee36f3f322502f6faa997647d562bf25863e7791 | [
"MIT"
] | 1 | 2020-10-17T18:27:00.000Z | 2020-10-17T18:27:00.000Z | #pragma warning (disable: 4244 4018) //coversion from `long` to `float`, possible loss of data
#include <boost/spirit/include/qi.hpp>
#include <boost/spirit/include/karma.hpp>
#include <boost/thread/thread_pool.hpp>
#include <type_traits>
using namespace boost::spirit;
#include <System/Utils.h>
boost::basic_threa... | 31.181818 | 94 | 0.750104 | maddinat0r |
daa789341385cdb9d6f358f81fd7859ae271308e | 2,069 | cpp | C++ | vulkan-tools/tst/test-poc.cpp | m4c0/m4c0-stl | 5e47439528faee466270706534143c87b4af8cbb | [
"MIT"
] | null | null | null | vulkan-tools/tst/test-poc.cpp | m4c0/m4c0-stl | 5e47439528faee466270706534143c87b4af8cbb | [
"MIT"
] | null | null | null | vulkan-tools/tst/test-poc.cpp | m4c0/m4c0-stl | 5e47439528faee466270706534143c87b4af8cbb | [
"MIT"
] | null | null | null | #include "m4c0/assets/stb_image.hpp"
#include "m4c0/vulkan/buffer.hpp"
#include "m4c0/vulkan/buffer_memory_bind.hpp"
#include "m4c0/vulkan/command_buffer_list.hpp"
#include "m4c0/vulkan/device_memory.hpp"
#include "m4c0/vulkan/host_staged_image_buffer.hpp"
#include "m4c0/vulkan/image.hpp"
#include "m4c0/vulkan/image_me... | 38.314815 | 118 | 0.721605 | m4c0 |
daac04226e5e33f6a7eebd64cea5e49d186d287b | 301 | hpp | C++ | lumino/Graphics/include/LuminoGraphics.hpp | lriki/Lumino | 1a80430f4a83dbdfbe965b3d5b16064991b3edb0 | [
"MIT"
] | 30 | 2016-01-24T05:35:45.000Z | 2020-03-03T09:54:27.000Z | lumino/Graphics/include/LuminoGraphics.hpp | lriki/Lumino | 1a80430f4a83dbdfbe965b3d5b16064991b3edb0 | [
"MIT"
] | 35 | 2016-04-18T06:14:08.000Z | 2020-02-09T15:51:58.000Z | lumino/Graphics/include/LuminoGraphics.hpp | lriki/Lumino | 1a80430f4a83dbdfbe965b3d5b16064991b3edb0 | [
"MIT"
] | 5 | 2016-04-03T02:52:05.000Z | 2018-01-02T16:53:06.000Z | #pragma once
#include <LuminoGraphics/RHI/Shader.hpp>
#include <LuminoGraphics/RHI/ShaderDescriptor.hpp>
#include <LuminoGraphics/RHI/VertexLayout.hpp>
#include <LuminoGraphics/RHI/VertexBuffer.hpp>
#include <LuminoGraphics/RHI/SwapChain.hpp>
#include <LuminoGraphics/RHI/GraphicsCommandBuffer.hpp>
| 33.444444 | 55 | 0.82392 | lriki |
daaf843c10a95d09460b96401cd665176b476ff6 | 9,430 | tpp | C++ | cml/mathlib/matrix/projection.tpp | egorodet/CML | e3fd8ccbe9775ff6e0e41fd6a274b557a80c9d1f | [
"BSL-1.0"
] | 125 | 2015-07-22T11:39:51.000Z | 2022-03-06T13:41:44.000Z | cml/mathlib/matrix/projection.tpp | egorodet/CML | e3fd8ccbe9775ff6e0e41fd6a274b557a80c9d1f | [
"BSL-1.0"
] | 45 | 2015-06-03T15:50:08.000Z | 2021-05-26T01:35:01.000Z | cml/mathlib/matrix/projection.tpp | egorodet/CML | e3fd8ccbe9775ff6e0e41fd6a274b557a80c9d1f | [
"BSL-1.0"
] | 28 | 2015-06-03T09:26:26.000Z | 2022-03-06T13:42:06.000Z | /* -*- C++ -*- ------------------------------------------------------------
@@COPYRIGHT@@
*-----------------------------------------------------------------------*/
/** @file
*/
#ifndef __CML_MATHLIB_MATRIX_PROJECTION_TPP
#error "mathlib/matrix/projection.tpp not included correctly"
#endif
#include <cml/common/mpl... | 27.175793 | 79 | 0.651432 | egorodet |
dab0b773ff931f5cb9db379528722734a5e3a1e6 | 2,488 | hh | C++ | include/finalfusion-cxx/Embeddings.hh | finalfusion/finalfusion-cxx | 46b48fdf0bf5ffddf5b005fc0755475c06ee41a3 | [
"BlueOak-1.0.0"
] | 1 | 2019-09-05T20:56:32.000Z | 2019-09-05T20:56:32.000Z | include/finalfusion-cxx/Embeddings.hh | finalfusion/finalfusion-cxx | 46b48fdf0bf5ffddf5b005fc0755475c06ee41a3 | [
"BlueOak-1.0.0"
] | 5 | 2019-08-31T16:47:51.000Z | 2019-09-28T07:22:00.000Z | include/finalfusion-cxx/Embeddings.hh | finalfusion/finalfusion-cxx | 46b48fdf0bf5ffddf5b005fc0755475c06ee41a3 | [
"BlueOak-1.0.0"
] | null | null | null | #ifndef FINALFUSION_CXX_EMBEDDINGS_HH
#define FINALFUSION_CXX_EMBEDDINGS_HH
#include <string>
#include <vector>
#include "finalfusion.h"
class EmbeddingsImpl;
/**
* Embeddings.
*/
class Embeddings {
public:
/**
* Embeddings Constructor.
*
* @param filename path to embeddings.
* @param mmap memmap em... | 26.468085 | 78 | 0.704984 | finalfusion |
dabaaeda0c63f05510a274c79837bf3404c87e9b | 208 | cpp | C++ | KakaotalkAdConcealer.Native/Rect.cpp | Sharp0802/KakaotalkAdConcealer | 8a590803cc8d9ba430ec1c8843d1ec0953ff849a | [
"MIT"
] | 2 | 2021-07-24T12:13:17.000Z | 2021-09-09T23:20:44.000Z | KakaotalkAdConcealer.Native/Rect.cpp | Sharp0802/KakaotalkAdConcealer | 8a590803cc8d9ba430ec1c8843d1ec0953ff849a | [
"MIT"
] | null | null | null | KakaotalkAdConcealer.Native/Rect.cpp | Sharp0802/KakaotalkAdConcealer | 8a590803cc8d9ba430ec1c8843d1ec0953ff849a | [
"MIT"
] | null | null | null | #include "Rect.h"
using namespace KakaotalkAdConcealer::Native;
Rect::Rect(const long top, const long left, const long bottom, const long right)
: _top(top), _left(left), _bottom(bottom), _right(right)
{
} | 26 | 80 | 0.740385 | Sharp0802 |
dac2a4cb380b26d30d35488f8c96f7c52e7af6c9 | 5,691 | cpp | C++ | tests/test_jsonobject.cpp | AkashMelethil/json | 3f66d5f16ce44dfbba520bc8b3359c501a48408e | [
"MIT"
] | null | null | null | tests/test_jsonobject.cpp | AkashMelethil/json | 3f66d5f16ce44dfbba520bc8b3359c501a48408e | [
"MIT"
] | 3 | 2022-03-10T19:01:19.000Z | 2022-03-11T02:38:43.000Z | tests/test_jsonobject.cpp | justkash/json | 3f66d5f16ce44dfbba520bc8b3359c501a48408e | [
"MIT"
] | null | null | null | #include <iostream>
#include <catch2/catch.hpp>
#include <json/jsonobject.hpp>
using namespace json;
SCENARIO("JSON object can be created successfully", "[object]") {
WHEN("a json object is created using the string constructor") {
JsonObject obj("{\"key\":\"value\"}");
THEN("the key value pair c... | 30.762162 | 88 | 0.519065 | AkashMelethil |
dacb05a57d5c88936318f3dc7444d918efcbf67e | 17,069 | cpp | C++ | src/learn_vk/vulkan_api.cpp | ref2401/cg | 4654377f94fe54945c33156911ca25e807c96236 | [
"MIT"
] | 2 | 2019-04-02T14:19:01.000Z | 2021-05-27T13:42:20.000Z | src/learn_vk/vulkan_api.cpp | ref2401/cg | 4654377f94fe54945c33156911ca25e807c96236 | [
"MIT"
] | 4 | 2016-11-05T14:17:14.000Z | 2017-03-30T15:03:37.000Z | src/learn_vk/vulkan_api.cpp | ref2401/cg | 4654377f94fe54945c33156911ca25e807c96236 | [
"MIT"
] | null | null | null | #include "learn_vk/vulkan_api.h"
#include <cassert>
#include <iostream>
#include <vector>
#include <windows.h>
#include "cg/base/base.h"
PFN_vkGetInstanceProcAddr vkGetInstanceProcAddr;
PFN_vkCreateInstance vkCreateInstance;
PFN_vkEnumerateInstanceExtensionProperties vkEnumerateInstanceExtensionProperties;
... | 58.858621 | 171 | 0.761849 | ref2401 |
dad0cc8ef1367aa12421376f718f794ad6fdf299 | 52,413 | cpp | C++ | codemp/botlib/be_ai_goal.cpp | xScooper/Makermod | ccf9e10f441503d7b12094168c542a3696ceb314 | [
"MIT"
] | 11 | 2015-09-27T22:53:26.000Z | 2021-12-25T05:04:12.000Z | codemp/botlib/be_ai_goal.cpp | xScooper/Makermod | ccf9e10f441503d7b12094168c542a3696ceb314 | [
"MIT"
] | 1 | 2016-02-14T14:28:39.000Z | 2017-01-11T13:03:39.000Z | codemp/botlib/be_ai_goal.cpp | xScooper/Makermod | ccf9e10f441503d7b12094168c542a3696ceb314 | [
"MIT"
] | 11 | 2015-10-19T15:37:24.000Z | 2022-02-07T05:00:20.000Z |
/*****************************************************************************
* name: be_ai_goal.c
*
* desc: goal AI
*
* $Archive: /MissionPack/code/botlib/be_ai_goal.c $
* $Author: Ttimo $
* $Revision: 14 $
* $Modtime: 4/13/01 4:45p $
* $Date: 4/13/01 4:45p $
*
*****************************************... | 29.021595 | 123 | 0.58268 | xScooper |
dad50216154f752e4a380839952b4e180a0ae33f | 6,390 | cpp | C++ | TriangleSection/Util/FileUtil.cpp | WalterWhiteCSU/triangleDomain | ca497d86df3317ddc3453677a023b1fa7a581991 | [
"MIT"
] | null | null | null | TriangleSection/Util/FileUtil.cpp | WalterWhiteCSU/triangleDomain | ca497d86df3317ddc3453677a023b1fa7a581991 | [
"MIT"
] | null | null | null | TriangleSection/Util/FileUtil.cpp | WalterWhiteCSU/triangleDomain | ca497d86df3317ddc3453677a023b1fa7a581991 | [
"MIT"
] | null | null | null | //
// Created by WalterWhite on 2021/6/7.
//
#include "FileUtil.h"
#include <iostream>
#include <string>
#include <sstream>
#include <fstream>
// rapidjson
#include <rapidjson/document.h>
#include <rapidjson/writer.h>
#include <rapidjson/stringbuffer.h>
#include <rapidjson/filewritestream.h>
#include <rapidjson/pret... | 35.5 | 111 | 0.561189 | WalterWhiteCSU |
dae30cb754a4aff9b9578191483fd1a1f0fa4501 | 416 | hpp | C++ | src/serca_higg.hpp | anupgp/astron | 5ef1b113b5025f5e0477a1fb2b5202fadbc5335c | [
"MIT"
] | null | null | null | src/serca_higg.hpp | anupgp/astron | 5ef1b113b5025f5e0477a1fb2b5202fadbc5335c | [
"MIT"
] | null | null | null | src/serca_higg.hpp | anupgp/astron | 5ef1b113b5025f5e0477a1fb2b5202fadbc5335c | [
"MIT"
] | null | null | null | // Time-stamp: <2019-01-04 13:50:34 macbookair>
// Units: all SI units - seconds, Volts, Ampere, Meters, Simenes, Farads
// Ref: higgins2006; bartol2015
#ifndef SERCA_HIGG_HPP_INCLUDED
#define SERCA_HIGG_HPP_INCLUDED
#include "data_types.hpp"
#include "include/new_insilico.hpp"
class serca_higg
{
public:
static vo... | 23.111111 | 95 | 0.762019 | anupgp |
dae41734f4bf849448ab4a61ed2ef7c2b9b10de6 | 315 | cpp | C++ | bit_manipulation/first.cpp | sahilduhan/Learn-C-plus-plus | 80dba2ee08b36985deb297293a0318da5d6ace94 | [
"RSA-MD"
] | null | null | null | bit_manipulation/first.cpp | sahilduhan/Learn-C-plus-plus | 80dba2ee08b36985deb297293a0318da5d6ace94 | [
"RSA-MD"
] | null | null | null | bit_manipulation/first.cpp | sahilduhan/Learn-C-plus-plus | 80dba2ee08b36985deb297293a0318da5d6ace94 | [
"RSA-MD"
] | null | null | null | #include <bits/stdc++.h>
using namespace std;
int bit_test(int n, int pos)
{
return ((n & (1 << pos)) != 0);
}
int set_bit(int n, int pos)
{
return ((n | (1 << pos)));
}
int clear_bit(int n, int pos)
{
return ;
}
int main()
{
cout << bit_test(5, 2) << " ";
cout << set_bit(5, 1);
return 0;
} | 15.75 | 35 | 0.526984 | sahilduhan |
daead5746a200b0abff2aa59ef5a0795bd404be7 | 37 | cpp | C++ | src/mqqrl_6.cpp | mganger/quantum-multiple-q-learning | 08d6c010cd9082b58f79bdc2da45a1cd6d1f512f | [
"MIT"
] | 1 | 2019-12-27T20:59:00.000Z | 2019-12-27T20:59:00.000Z | src/mqqrl_6.cpp | mganger/quantum-multiple-q-learning | 08d6c010cd9082b58f79bdc2da45a1cd6d1f512f | [
"MIT"
] | null | null | null | src/mqqrl_6.cpp | mganger/quantum-multiple-q-learning | 08d6c010cd9082b58f79bdc2da45a1cd6d1f512f | [
"MIT"
] | null | null | null | #include "mqqrl.h"
MAIN(mqqrl< 6 >)
| 12.333333 | 19 | 0.621622 | mganger |
daebd619f89f16e31af2ba1cc08b787262e69632 | 11,247 | cpp | C++ | opencv_src/modules/features2d/src/img_align/Settings.cpp | 10dimensions/imgalign | 99f18a15a06855dc5ba764679a1d75bfd0d2e782 | [
"MIT"
] | 163 | 2019-06-04T02:00:58.000Z | 2022-03-26T14:23:10.000Z | opencv_src/modules/features2d/src/img_align/Settings.cpp | shadowzhougit/imgalign | 99f18a15a06855dc5ba764679a1d75bfd0d2e782 | [
"MIT"
] | 8 | 2019-11-03T10:16:58.000Z | 2022-03-16T17:00:14.000Z | opencv_src/modules/features2d/src/img_align/Settings.cpp | shadowzhougit/imgalign | 99f18a15a06855dc5ba764679a1d75bfd0d2e782 | [
"MIT"
] | 29 | 2019-01-08T05:43:58.000Z | 2022-03-24T00:07:03.000Z |
#include "Settings.h"
#include <numeric>
#include "EnumTypes.h"
#include "LogUtils.h"
namespace imgalign
{
Settings::Settings()
{
init();
}
void Settings::init() {
paramValuesExt = {
{ eImageCap, { 300000.0f, "imageCap" } },
{ eImageCapInput, { 350000.0f, "imageCapInput" } },
{ eO... | 39.882979 | 115 | 0.676358 | 10dimensions |
daebd8b31412c47e1cd43a7a3d6a807c4ff1d6e2 | 2,332 | cc | C++ | packages/Utils/cxx11/tstLambda.cc | GCZhang/Profugus | d4d8fe295a92a257b26b6082224226ca1edbff5d | [
"BSD-2-Clause"
] | 19 | 2015-06-04T09:02:41.000Z | 2021-04-27T19:32:55.000Z | packages/Utils/cxx11/tstLambda.cc | GCZhang/Profugus | d4d8fe295a92a257b26b6082224226ca1edbff5d | [
"BSD-2-Clause"
] | null | null | null | packages/Utils/cxx11/tstLambda.cc | GCZhang/Profugus | d4d8fe295a92a257b26b6082224226ca1edbff5d | [
"BSD-2-Clause"
] | 5 | 2016-10-05T20:48:28.000Z | 2021-06-21T12:00:54.000Z | //----------------------------------*-C++-*----------------------------------//
/*!
* \file Utils/cxx11/tstLambda.cc
* \author Thomas M. Evans
* \date Wed May 14 10:58:36 2014
* \brief Lambda testing.
* \note Copyright (C) 2014 Oak Ridge National Laboratory, UT-Battelle, LLC.
*/
//-------------------------... | 27.435294 | 79 | 0.337907 | GCZhang |
daedf6b624780fc9e57d9e86cff2778ec1b877e6 | 276 | cpp | C++ | adder/half_adder.cpp | michaelbarrett/systemc | 8eacbd98321c19f868818ed2e72dc30d25a20bba | [
"Unlicense"
] | null | null | null | adder/half_adder.cpp | michaelbarrett/systemc | 8eacbd98321c19f868818ed2e72dc30d25a20bba | [
"Unlicense"
] | null | null | null | adder/half_adder.cpp | michaelbarrett/systemc | 8eacbd98321c19f868818ed2e72dc30d25a20bba | [
"Unlicense"
] | null | null | null | //=================================
// Function: Half Adder
// File Name: half_adder.cpp
//=================================
#include "half_adder.h"
//concurrent method prc_half_adder of the half adder
void half_adder :: prc_half_adder() {
sum = a ^ b;
carry = a & b;
}
| 23 | 52 | 0.507246 | michaelbarrett |
daeef00d83c7adc3031fa0a200470cd39c76d037 | 1,079 | cpp | C++ | Tools/InspectorPlugin/Log.cpp | Manuzor/ezEngine | 876ad33ef21c6b986bb9bb333b2a3cbfed2be5ef | [
"CC-BY-3.0"
] | null | null | null | Tools/InspectorPlugin/Log.cpp | Manuzor/ezEngine | 876ad33ef21c6b986bb9bb333b2a3cbfed2be5ef | [
"CC-BY-3.0"
] | null | null | null | Tools/InspectorPlugin/Log.cpp | Manuzor/ezEngine | 876ad33ef21c6b986bb9bb333b2a3cbfed2be5ef | [
"CC-BY-3.0"
] | 1 | 2020-03-08T04:55:16.000Z | 2020-03-08T04:55:16.000Z | #include <PCH.h>
#include <Foundation/Communication/Telemetry.h>
#include <Foundation/Logging/Log.h>
namespace ezLogWriter
{
/// \brief This log-writer will broadcast all messages through ezTelemetry, such that external applications can display the log messages.
class Telemetry
{
public:
/// \brief Registe... | 26.317073 | 139 | 0.733086 | Manuzor |
daf61643fa28a1da594f5e4a4023e362362f8029 | 412 | cc | C++ | main.cc | vycezhong/bandwidth-benchmark | 67e51b673b7cb463e2703e70f090387c90404ee3 | [
"MIT"
] | 1 | 2021-06-09T08:33:52.000Z | 2021-06-09T08:33:52.000Z | main.cc | vycezhong/bandwidth-benchmark | 67e51b673b7cb463e2703e70f090387c90404ee3 | [
"MIT"
] | null | null | null | main.cc | vycezhong/bandwidth-benchmark | 67e51b673b7cb463e2703e70f090387c90404ee3 | [
"MIT"
] | null | null | null | #include <cstdio>
#include <cstring>
#include <string>
extern void GPUBandwidthBenchmark(std::size_t);
extern void CPUBandwidthBenchmark(std::size_t);
int main(int argc, char* argv[]) {
std::size_t size = 100;
if (argc == 2) {
size = std::stol(argv[1]); // MB
}
printf("Transfer Size = %lu MB\n", size);
... | 19.619048 | 47 | 0.665049 | vycezhong |
dafaffb77c2aaec065ac75127617015800d67767 | 462 | cpp | C++ | nmslib/nms.cpp | psvvsp/NonMaximumSuppression | 35e151042320952909a53086d368fdae0fceda7d | [
"MIT"
] | null | null | null | nmslib/nms.cpp | psvvsp/NonMaximumSuppression | 35e151042320952909a53086d368fdae0fceda7d | [
"MIT"
] | null | null | null | nmslib/nms.cpp | psvvsp/NonMaximumSuppression | 35e151042320952909a53086d368fdae0fceda7d | [
"MIT"
] | null | null | null | #include "nms.h"
#include "nms_impl.h"
NMS::NMS()
{
m_impl = new NMS_impl();
}
NMS::~NMS()
{
delete m_impl;
}
bool NMS::doIt(
const std::vector<Box>& boxesIn,
const std::vector<real>& scoresIn,
real threshold,
std::vector<Box>& boxesOut,
std::vector<real>& scoresOut)
{
return m_impl-... | 16.5 | 75 | 0.649351 | psvvsp |
970421c4ffcb44e6f201e630996b8ef22cfbfb8d | 1,080 | cpp | C++ | src/satform.cpp | AssortedFantasy/SATSolver | 9cfce772938a8835970e59391346def1859cffc8 | [
"MIT"
] | 2 | 2019-04-30T17:36:10.000Z | 2022-03-14T01:34:58.000Z | src/satform.cpp | AssortedFantasy/SATSolver | 9cfce772938a8835970e59391346def1859cffc8 | [
"MIT"
] | null | null | null | src/satform.cpp | AssortedFantasy/SATSolver | 9cfce772938a8835970e59391346def1859cffc8 | [
"MIT"
] | null | null | null | #include "satform.h"
void reduce_associative(expression* a) {
// Reduce the associative Components of this
mathCore::recursive_combine_and(a);
mathCore::recursive_combine_or(a);
mathCore::recursive_combine_xor(a);
mathCore::recursive_combine_equiv(a);
}
/*
Everything is AND, OR and Negated Variables
*/
void st... | 19.636364 | 45 | 0.738889 | AssortedFantasy |
9705a8519202bf9964c508cbf20a41f94f9f4646 | 2,062 | cpp | C++ | src/txt.cpp | nfsu/pkm_iv | df661cbbd1f7b3d5c25b853aefa01f58b2150a51 | [
"MIT"
] | null | null | null | src/txt.cpp | nfsu/pkm_iv | df661cbbd1f7b3d5c25b853aefa01f58b2150a51 | [
"MIT"
] | null | null | null | src/txt.cpp | nfsu/pkm_iv | df661cbbd1f7b3d5c25b853aefa01f58b2150a51 | [
"MIT"
] | null | null | null | #include "txt.hpp"
#include <algorithm>
namespace pkm_iv {
//Shout outs to PPRE once again
Txt Txt::parse(Buffer b) {
Buffer beg = b.clone();
FINALLY(beg.dealloc(););
auto head = b.consume<TxtHeader>();
u16 key = u16(head.seed * 0x2FD);
List<TxtEntry> stArr;
for (usz i = 0; i < head.num; ++i) {
... | 18.247788 | 79 | 0.575655 | nfsu |
8ccbbbf9cb1b558605c90df0b5a825efddd03ce4 | 1,788 | cpp | C++ | uva/uva11925/save1.cpp | oklen/my-soluation | 56d6c32f0a328332b090f9d633365b75605f4616 | [
"MIT"
] | null | null | null | uva/uva11925/save1.cpp | oklen/my-soluation | 56d6c32f0a328332b090f9d633365b75605f4616 | [
"MIT"
] | null | null | null | uva/uva11925/save1.cpp | oklen/my-soluation | 56d6c32f0a328332b090f9d633365b75605f4616 | [
"MIT"
] | null | null | null | //#include <iostream>
//#include <deque>
//#include <queue>
//using namespace std;
//int main()
//{
// int n;
// while(scanf("%d",&n)&&n){
// deque<int> nd;int nn,mx = -1,cnt=0,mi = 0xfffffff;
// for(int i = 0;i<n;++i){
// scanf("%d",&nn);
// mx = max(mx,nn);
// mi ... | 30.305085 | 63 | 0.32047 | oklen |
8ccbeb104dcdc8d88ab844e90055f1c60e25daa7 | 1,139 | cpp | C++ | src/MainWindow.cpp | oneminute/Penmanship | f1f7d8606954aa872f0e26b6d090a4fafa16c4f4 | [
"MIT"
] | null | null | null | src/MainWindow.cpp | oneminute/Penmanship | f1f7d8606954aa872f0e26b6d090a4fafa16c4f4 | [
"MIT"
] | null | null | null | src/MainWindow.cpp | oneminute/Penmanship | f1f7d8606954aa872f0e26b6d090a4fafa16c4f4 | [
"MIT"
] | null | null | null | #include "MainWindow.h"
#include <ui/ui_MainWindow.h>
#include "EditGraphicsViewer.h"
#include "EditGraphicsScene.h"
#include "CellItem.h"
MainWindow::MainWindow(QWidget* parent)
: QMainWindow(parent)
, m_ui(new Ui::MainWindow)
{
m_ui->setupUi(this);
m_viewer = new EditGraphicsViewer(this);
m_scen... | 25.311111 | 92 | 0.730465 | oneminute |
8cce7e10bab58a703f3b81e93900e17fa39e9a2b | 1,072 | cpp | C++ | tests/test_function.cpp | te9yie/cpp-t9 | 40edf781aef2a3bcf0c46b3c37735d909253c8e4 | [
"MIT"
] | null | null | null | tests/test_function.cpp | te9yie/cpp-t9 | 40edf781aef2a3bcf0c46b3c37735d909253c8e4 | [
"MIT"
] | null | null | null | tests/test_function.cpp | te9yie/cpp-t9 | 40edf781aef2a3bcf0c46b3c37735d909253c8e4 | [
"MIT"
] | null | null | null | #include <gtest/gtest.h>
#include <t9/function.h>
namespace {
class Counter {
private:
int count_ = 0;
public:
int tick() { return ++count_; }
int tick(int n) {
count_ += n;
return count_;
}
int get() const { return count_; }
};
inline int twice(int x) { return x * x; }
} // namespace
TEST(Fu... | 19.142857 | 59 | 0.630597 | te9yie |
8cd2beb5b8f15541e768f24ccb3fa0153a145374 | 467 | cpp | C++ | Baekjoon/3986.cpp | Twinparadox/AlgorithmProblem | 0190d17555306600cfd439ad5d02a77e663c9a4e | [
"MIT"
] | null | null | null | Baekjoon/3986.cpp | Twinparadox/AlgorithmProblem | 0190d17555306600cfd439ad5d02a77e663c9a4e | [
"MIT"
] | null | null | null | Baekjoon/3986.cpp | Twinparadox/AlgorithmProblem | 0190d17555306600cfd439ad5d02a77e663c9a4e | [
"MIT"
] | null | null | null | #include <iostream>
#include <stack>
#include <string>
using namespace std;
int main(void)
{
int N, ans = 0;
cin >> N;
while (N--)
{
string str;
stack<char> st;
cin >> str;
int len = str.length();
for (int i = 0; i < len; i++)
{
char c = str[i];
if (st.size() > (len - i))
break;
if (st.si... | 13.735294 | 31 | 0.490364 | Twinparadox |
8cdc05eaf11f515ee06c6fe7f51b5188bd9a997f | 1,499 | cpp | C++ | leetcode/problems/medium/62-unique-paths.cpp | wingkwong/competitive-programming | e8bf7aa32e87b3a020b63acac20e740728764649 | [
"MIT"
] | 18 | 2020-08-27T05:27:50.000Z | 2022-03-08T02:56:48.000Z | leetcode/problems/medium/62-unique-paths.cpp | wingkwong/competitive-programming | e8bf7aa32e87b3a020b63acac20e740728764649 | [
"MIT"
] | null | null | null | leetcode/problems/medium/62-unique-paths.cpp | wingkwong/competitive-programming | e8bf7aa32e87b3a020b63acac20e740728764649 | [
"MIT"
] | 1 | 2020-10-13T05:23:58.000Z | 2020-10-13T05:23:58.000Z | /*
Unique Paths
A robot is located at the top-left corner of a m x n grid (marked 'Start' in the diagram below).
The robot can only move either down or right at any point in time. The robot is trying to reach the bottom-right corner of the grid (marked 'Finish' in the diagram below).
How many possible unique paths ar... | 28.283019 | 171 | 0.592395 | wingkwong |
8cdd6df1ceba4ac36a4b12121036f8d7ad680216 | 21,430 | cpp | C++ | source/test/test.cpp | xiaobodu/breeze | e74f0cd680274fd431118104d1fdb45926da6328 | [
"Apache-2.0"
] | 1 | 2020-08-13T08:10:15.000Z | 2020-08-13T08:10:15.000Z | source/test/test.cpp | xiaobodu/breeze | e74f0cd680274fd431118104d1fdb45926da6328 | [
"Apache-2.0"
] | null | null | null | source/test/test.cpp | xiaobodu/breeze | e74f0cd680274fd431118104d1fdb45926da6328 | [
"Apache-2.0"
] | 1 | 2017-04-30T14:25:25.000Z | 2017-04-30T14:25:25.000Z | /*
* breeze License
* Copyright (C) 2014-2016 YaweiZhang <yawei.zhang@foxmail.com>.
*
* 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 ... | 25.152582 | 237 | 0.480681 | xiaobodu |
8ce07dfcb8bc3b858dd7feea86e801fe5c042ecd | 2,726 | cpp | C++ | alvr/server/cpp/tools/drmdevice.cpp | N00byKing/ALVR | 230199e1efa6acb9fa37fa5ae53206052e9ac48f | [
"BSD-3-Clause"
] | null | null | null | alvr/server/cpp/tools/drmdevice.cpp | N00byKing/ALVR | 230199e1efa6acb9fa37fa5ae53206052e9ac48f | [
"BSD-3-Clause"
] | null | null | null | alvr/server/cpp/tools/drmdevice.cpp | N00byKing/ALVR | 230199e1efa6acb9fa37fa5ae53206052e9ac48f | [
"BSD-3-Clause"
] | null | null | null | #include "drmdevice.h"
#include "drm.h"
#include <cstdint>
#include <string.h>
#include <errno.h>
#include <xf86drm.h>
#include <xf86drmMode.h>
#include <fcntl.h>
#include <functional>
#include <stdio.h>
#include <unistd.h>
#include <stdexcept>
#include <poll.h>
class Defer
{
public:
Defer(std::function<void()> fn):... | 22.716667 | 120 | 0.625459 | N00byKing |
8ce616dcec0f547993450a1415d483571286ecad | 765 | cpp | C++ | wxfred2/editors/dlgReinforcementsPicker.cpp | trgswe/fs2open.github.com | a159eba0cebca911ad14a118412fddfe5be8e9f8 | [
"Unlicense"
] | 307 | 2015-04-10T13:27:32.000Z | 2022-03-21T03:30:38.000Z | wxfred2/editors/dlgReinforcementsPicker.cpp | trgswe/fs2open.github.com | a159eba0cebca911ad14a118412fddfe5be8e9f8 | [
"Unlicense"
] | 2,231 | 2015-04-27T10:47:35.000Z | 2022-03-31T19:22:37.000Z | wxfred2/editors/dlgReinforcementsPicker.cpp | trgswe/fs2open.github.com | a159eba0cebca911ad14a118412fddfe5be8e9f8 | [
"Unlicense"
] | 282 | 2015-01-05T12:16:57.000Z | 2022-03-28T04:45:11.000Z | /*
* Created by Ian "Goober5000" Warfield and "z64555" for the FreeSpace2 Source
* Code Project.
*
* You may not sell or otherwise commercially exploit the source or things you
* create based on the source.
*/
#include "editors/dlgReinforcementsPicker.h"
#include "base/wxFRED_base.h"
#include <wx/wx.h>
// Pub... | 20.131579 | 79 | 0.750327 | trgswe |
8ce67ffd5e196fa8a155fb0f235fd8cf36e0cd78 | 348 | hpp | C++ | nek/type_traits/void_t.hpp | nekko1119/nek | be43faf5c541fa067ab1e1bcb7a43ebcfefe34e7 | [
"BSD-3-Clause"
] | null | null | null | nek/type_traits/void_t.hpp | nekko1119/nek | be43faf5c541fa067ab1e1bcb7a43ebcfefe34e7 | [
"BSD-3-Clause"
] | null | null | null | nek/type_traits/void_t.hpp | nekko1119/nek | be43faf5c541fa067ab1e1bcb7a43ebcfefe34e7 | [
"BSD-3-Clause"
] | null | null | null | #ifndef NEK_TYPE_TRAITS_VOID_T_HPP
#define NEK_TYPE_TRAITS_VOID_T_HPP
namespace nek
{
// workaround http://cpplover.blogspot.jp/2014/03/2014-02-post-issaquah-n3910-n3919.html
template <class...>
struct voider
{
using type = void;
};
template <class ...T>
using void_t = typename vo... | 19.333333 | 92 | 0.66954 | nekko1119 |
8ce81839dfc090465b5b7c738af79a9237e45a44 | 5,732 | cpp | C++ | src/hssh/global_topological/global_path_segment.cpp | anuranbaka/Vulcan | 56339f77f6cf64b5fda876445a33e72cd15ce028 | [
"MIT"
] | 3 | 2020-03-05T23:56:14.000Z | 2021-02-17T19:06:50.000Z | src/hssh/global_topological/global_path_segment.cpp | anuranbaka/Vulcan | 56339f77f6cf64b5fda876445a33e72cd15ce028 | [
"MIT"
] | 1 | 2021-03-07T01:23:47.000Z | 2021-03-07T01:23:47.000Z | src/hssh/global_topological/global_path_segment.cpp | anuranbaka/Vulcan | 56339f77f6cf64b5fda876445a33e72cd15ce028 | [
"MIT"
] | 1 | 2021-03-03T07:54:16.000Z | 2021-03-03T07:54:16.000Z | /* Copyright (C) 2010-2019, The Regents of The University of Michigan.
All rights reserved.
This software was developed as part of the The Vulcan project in the Intelligent Robotics Lab
under the direction of Benjamin Kuipers, kuipers@umich.edu. Use of this code is governed by an
MIT-style License that can be foun... | 32.384181 | 119 | 0.611479 | anuranbaka |
8ce8577b9ec0fa4064daadf501ab173f30170e14 | 8,079 | cc | C++ | src/amberscript/parser_debug_test.cc | gnl21/amber | dabae26164714abf951c6815a2b4513260f7c6a4 | [
"Apache-2.0"
] | 161 | 2018-11-14T12:04:08.000Z | 2022-03-31T01:08:21.000Z | src/amberscript/parser_debug_test.cc | gnl21/amber | dabae26164714abf951c6815a2b4513260f7c6a4 | [
"Apache-2.0"
] | 545 | 2018-11-14T03:52:30.000Z | 2022-03-30T11:23:12.000Z | src/amberscript/parser_debug_test.cc | gnl21/amber | dabae26164714abf951c6815a2b4513260f7c6a4 | [
"Apache-2.0"
] | 59 | 2018-11-13T22:09:02.000Z | 2022-01-26T22:25:29.000Z | // Copyright 2020 The Amber Authors.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed... | 27.20202 | 80 | 0.674588 | gnl21 |
8cf0bd8a0ba7d60fda190434473e0ccb70ed8844 | 12,874 | cpp | C++ | Game/Source/Mesh/Mesh.cpp | Crewbee/Pokemon-Clone-DX12 | 188bdde03d5078899a1532305a87d15c611c6c13 | [
"CC0-1.0"
] | null | null | null | Game/Source/Mesh/Mesh.cpp | Crewbee/Pokemon-Clone-DX12 | 188bdde03d5078899a1532305a87d15c611c6c13 | [
"CC0-1.0"
] | null | null | null | Game/Source/Mesh/Mesh.cpp | Crewbee/Pokemon-Clone-DX12 | 188bdde03d5078899a1532305a87d15c611c6c13 | [
"CC0-1.0"
] | null | null | null | #include "GamePCH.h"
#include "Mesh/Mesh.h"
#include "Mesh.h"
Mesh::Mesh()
{
m_VBO = 0;
m_pShader = 0;
m_DebugShader = 0;
m_MyTexture = 0;
m_PrimitiveType = -1;
m_NumVerts = 0;
IsDebug = false;
}
Mesh::~Mesh()
{
glDeleteBuffers(1, &m_VBO);
delete m_CanvasVerts;
m_CanvasVerts = nullptr;
}
void SetUnif... | 28.608889 | 154 | 0.706385 | Crewbee |
8cfb4bcbe814c5d99179d03013264c2e30941531 | 1,236 | cpp | C++ | coding/codeforces/1352_F.cpp | aguilarpgc/coding-preparation | 00547d499adda5a6cdbe90acae8a0e88a2d8d69e | [
"MIT"
] | 4 | 2021-04-11T23:55:54.000Z | 2022-03-07T20:06:33.000Z | coding/codeforces/1352_F.cpp | aguilarpgc/coding-preparation | 00547d499adda5a6cdbe90acae8a0e88a2d8d69e | [
"MIT"
] | null | null | null | coding/codeforces/1352_F.cpp | aguilarpgc/coding-preparation | 00547d499adda5a6cdbe90acae8a0e88a2d8d69e | [
"MIT"
] | null | null | null | //#include <bits/stdc++.h>
#include <iostream>
using namespace std;
int main() {
ios::sync_with_stdio(0);
cin.tie(0);
int t,n0,n1,n2;
cin >> t;
while(t--) {
cin >> n0 >> n1 >> n2;
if(n1 != 0 && n1 % 2 == 0) {
for (int i=0; i<n0; i++) {
... | 20.6 | 48 | 0.233819 | aguilarpgc |
8cfccde61a7ae78891597b2c8c90d4dfc9599cc0 | 571 | cpp | C++ | src/main.cpp | vg132/dreamcast-tetris-2 | 1390da9766a835c3ee62aabba770acee9f2e68fa | [
"BSD-3-Clause"
] | 2 | 2019-08-09T18:36:47.000Z | 2020-04-14T21:03:26.000Z | src/main.cpp | vg132/dreamcast-tetris-2 | 1390da9766a835c3ee62aabba770acee9f2e68fa | [
"BSD-3-Clause"
] | null | null | null | src/main.cpp | vg132/dreamcast-tetris-2 | 1390da9766a835c3ee62aabba770acee9f2e68fa | [
"BSD-3-Clause"
] | 1 | 2022-01-02T07:51:21.000Z | 2022-01-02T07:51:21.000Z | #include <kos.h>
#include "tetris.hpp"
pvr_init_params_t params = {
/* Enable opaque and translucent polygons with size 16 */
{PVR_BINSIZE_16, PVR_BINSIZE_0, PVR_BINSIZE_16, PVR_BINSIZE_0,
PVR_BINSIZE_0},
/* Vertex buffer size 512K */
512 * 1024
};
#ifdef _TETRIS_DEBUG_
extern uint8 romdisk[];
KOS_I... | 17.84375 | 64 | 0.677758 | vg132 |
ea08b451a1625fab887ceaec8b378f583727a602 | 325 | cpp | C++ | WPFTencentQQ/CipherLib/Md5.cpp | alex2ching/QQConnector | e688274e466b91acdbc724a1458b3aeedb04079d | [
"MIT"
] | 10 | 2020-09-07T14:18:33.000Z | 2022-01-15T16:39:25.000Z | WPFTencentQQ/CipherLib/Md5.cpp | alex2ching/QQConnector | e688274e466b91acdbc724a1458b3aeedb04079d | [
"MIT"
] | null | null | null | WPFTencentQQ/CipherLib/Md5.cpp | alex2ching/QQConnector | e688274e466b91acdbc724a1458b3aeedb04079d | [
"MIT"
] | 5 | 2021-04-19T02:15:58.000Z | 2022-02-05T14:55:57.000Z | #include "StdAfx.h"
#include "Md5.h"
#include <openssl\md5.h>
CMd5::CMd5(void)
{
}
CMd5::~CMd5(void)
{
}
void CMd5::GetMd5(unsigned char *szMd5,size_t len,unsigned char *szData,size_t size)
{
if(len<0x10) return;
MD5_CTX c;
MD5_Init(&c);
MD5_Update(&c, szData, size);
MD5_Final(szMd5,&c);... | 14.130435 | 85 | 0.624615 | alex2ching |
ea0a28a9d2716606d254382be5446bf8880bb40e | 1,860 | cpp | C++ | Code/Libraries/Workbench/src/PEs/wbpestatmod.cpp | kas1e/Eldritch | 032b4ac52f7508c89efa407d6fe60f40c6281fd9 | [
"Zlib"
] | null | null | null | Code/Libraries/Workbench/src/PEs/wbpestatmod.cpp | kas1e/Eldritch | 032b4ac52f7508c89efa407d6fe60f40c6281fd9 | [
"Zlib"
] | null | null | null | Code/Libraries/Workbench/src/PEs/wbpestatmod.cpp | kas1e/Eldritch | 032b4ac52f7508c89efa407d6fe60f40c6281fd9 | [
"Zlib"
] | null | null | null | #include "core.h"
#include "wbpestatmod.h"
#include "configmanager.h"
#include "Components/wbcompstatmod.h"
#include "wbparamevaluatorfactory.h"
WBPEStatMod::WBPEStatMod() : m_StatName(), m_EntityPE(nullptr) {}
WBPEStatMod::~WBPEStatMod() { SafeDelete(m_EntityPE); }
/*virtual*/ void WBPEStatMod::InitializeFromDefini... | 34.444444 | 77 | 0.702151 | kas1e |
ea14fe683331d3c2bdcecc864dc2cc00c0fb2871 | 27,318 | hpp | C++ | src/tissot_bg_writer.hpp | barendgehrels/tissot | b0d983a57bcd4d283c0f4ef8d23abea2e2893c3f | [
"BSL-1.0"
] | 1 | 2015-05-17T11:15:43.000Z | 2015-05-17T11:15:43.000Z | src/tissot_bg_writer.hpp | barendgehrels/tissot | b0d983a57bcd4d283c0f4ef8d23abea2e2893c3f | [
"BSL-1.0"
] | null | null | null | src/tissot_bg_writer.hpp | barendgehrels/tissot | b0d983a57bcd4d283c0f4ef8d23abea2e2893c3f | [
"BSL-1.0"
] | null | null | null | #ifndef TISSOT_WRITER_HPP
#define TISSOT_WRITER_HPP
// Tissot, converts projecton source code (Proj4) to Boost.Geometry
// (or potentially other source code)
//
// Copyright (c) 2015 Barend Gehrels, Amsterdam, the Netherlands.
//
// Use, modification and distribution is subject to the Boost Software License,
// Versio... | 38.694051 | 152 | 0.416795 | barendgehrels |
ea15a1bc7e01f25fe00addcaaba6ed2af8655c4f | 799 | cpp | C++ | OpenKattis/trik.cpp | MFathirIrhas/ProgrammingChallenges | 8c67bd71212a1941e5bcc0463095285859afa04d | [
"MIT"
] | 3 | 2020-10-19T10:03:20.000Z | 2021-12-18T20:39:31.000Z | OpenKattis/trik.cpp | MFathirIrhas/ProgrammingChallenges | 8c67bd71212a1941e5bcc0463095285859afa04d | [
"MIT"
] | null | null | null | OpenKattis/trik.cpp | MFathirIrhas/ProgrammingChallenges | 8c67bd71212a1941e5bcc0463095285859afa04d | [
"MIT"
] | null | null | null | /*
* Author: Muhammad Fathir Irhas
*/
#include <iostream>
#include <stdio.h>
#include <string.h>
using namespace std;
int Process(char *input){
int pos = 1;
for(int i=0;i<strlen(input);i++){
if(pos == 1){
if(*(input+i) == 'A'){
pos = 2;
}else if(*(input+i) == 'B'){
pos = 1;
}else if(*(input+i) ... | 15.98 | 34 | 0.460576 | MFathirIrhas |
ea1b459975a9df68a5ffcc52fa24e46b64997406 | 1,655 | cpp | C++ | src/gui/randomWidget.cpp | nicovanbentum/Raekor | 131e68490aa119213467ef295d3bfb94e5dd7046 | [
"MIT"
] | 6 | 2019-07-16T05:39:18.000Z | 2022-02-17T10:10:18.000Z | src/gui/randomWidget.cpp | nicovanbentum/Raekor | 131e68490aa119213467ef295d3bfb94e5dd7046 | [
"MIT"
] | null | null | null | src/gui/randomWidget.cpp | nicovanbentum/Raekor | 131e68490aa119213467ef295d3bfb94e5dd7046 | [
"MIT"
] | null | null | null | #include "pch.h"
#include "randomWidget.h"
#include "editor.h"
#include "renderer.h"
namespace Raekor {
RandomWidget::RandomWidget(Editor* editor) :
IWidget(editor, "Random")
{}
void RandomWidget::draw() {
auto& renderer = IWidget::renderer();
ImGui::Begin(title.c_str());
ImGui::SetItemDefaultFocus(... | 30.090909 | 133 | 0.649547 | nicovanbentum |
ea220e4fd57daddc0ff15f4d1361aec64c42e4ac | 349 | cpp | C++ | UVa/568 - Just the Facts.cpp | geniustanley/problem-solving | 2b83c5c8197fa8fe2277367027b392a2911d4a28 | [
"Apache-2.0"
] | 1 | 2018-11-21T07:36:16.000Z | 2018-11-21T07:36:16.000Z | UVa/568 - Just the Facts.cpp | geniustanley/problem-solving | 2b83c5c8197fa8fe2277367027b392a2911d4a28 | [
"Apache-2.0"
] | null | null | null | UVa/568 - Just the Facts.cpp | geniustanley/problem-solving | 2b83c5c8197fa8fe2277367027b392a2911d4a28 | [
"Apache-2.0"
] | null | null | null | #include <stdio.h>
int digit[10005];
int main(void)
{
digit[1] = 1;
for(int i = 2; i <= 10000; i++) {
digit[i] = digit[i-1]*i;
//printf("%d %d\n", i, digit[i]);
while(!(digit[i]%10))
digit[i] /= 10;
digit[i] %= 100000;
}
int n;
while(EOF != scanf("%d", &n))
printf("%5d -> %d\n", n, di... | 18.368421 | 41 | 0.47851 | geniustanley |
ea254dd86a29851d53bb3886ff8427b0edaac36e | 438 | cpp | C++ | m04/m04-01.cpp | dvcchern/CS200 | 333df210e70757da7cec481314b1a1e734fd03ed | [
"MIT"
] | 4 | 2020-02-14T23:54:05.000Z | 2022-01-30T18:29:06.000Z | m04/m04-01.cpp | dvcchern/CS200 | 333df210e70757da7cec481314b1a1e734fd03ed | [
"MIT"
] | null | null | null | m04/m04-01.cpp | dvcchern/CS200 | 333df210e70757da7cec481314b1a1e734fd03ed | [
"MIT"
] | 6 | 2020-02-24T07:06:47.000Z | 2022-02-03T02:46:46.000Z | #include<iostream>
using namespace std;
class Base {
int x;
public:
Base() { cout << "Base Default" << endl; }
Base(int x) : x(x) { cout << "Base Parameterize" << endl; }
};
class Derived : public Base{
int y;
public:
Derived() : Base() { cout << "Derived Default" << endl; }
Derived(int y, int... | 20.857143 | 85 | 0.56621 | dvcchern |
ea298259be253e50590f3b38b32d8b53afce353e | 545 | cpp | C++ | etc/config/src/INSTANTIATE_DEFAULT_ARGS.cpp | Hower91/Apache-C-Standard-Library-4.2.x | 4d9011d60dbb38b3ff80dcfe54dccd3a4647d9d3 | [
"Apache-2.0"
] | null | null | null | etc/config/src/INSTANTIATE_DEFAULT_ARGS.cpp | Hower91/Apache-C-Standard-Library-4.2.x | 4d9011d60dbb38b3ff80dcfe54dccd3a4647d9d3 | [
"Apache-2.0"
] | null | null | null | etc/config/src/INSTANTIATE_DEFAULT_ARGS.cpp | Hower91/Apache-C-Standard-Library-4.2.x | 4d9011d60dbb38b3ff80dcfe54dccd3a4647d9d3 | [
"Apache-2.0"
] | null | null | null | // checking if default args are instantiated
#if defined (_RWSTD_USE_CONFIG)
# include "config.h"
#endif // _RWSTD_USE_CONFIG
template <class T>
struct A
{
void foo (const T& = T ()) { }
};
struct B
{
private:
B () { }
};
#ifndef _RWSTD_NO_EXPLICIT_INSTANTIATION
// 14.7.2, p9 - an explicit instantiation... | 16.515152 | 61 | 0.669725 | Hower91 |
ea32b13065b063741a229013f19b8b47b185be07 | 1,708 | cpp | C++ | leetcode/2020/july/practice/uniquePaths-2.cpp | pol-alok/Solvify | c0f3913420a4a3a3faa34848038a3cc942628b08 | [
"MIT"
] | null | null | null | leetcode/2020/july/practice/uniquePaths-2.cpp | pol-alok/Solvify | c0f3913420a4a3a3faa34848038a3cc942628b08 | [
"MIT"
] | null | null | null | leetcode/2020/july/practice/uniquePaths-2.cpp | pol-alok/Solvify | c0f3913420a4a3a3faa34848038a3cc942628b08 | [
"MIT"
] | 2 | 2021-02-23T06:54:22.000Z | 2021-02-28T15:37:23.000Z | #include <iostream>
#include <vector>
using namespace std;
class Solution {
public:
int uniquePathsWithObstacles(vector<vector<int>>& obstacleGrid) {
ios_base::sync_with_stdio(false);
cin.tie(nullptr);
int r = obstacleGrid.size(), c = obstacleGrid[0].size();
vector<vector<int>> dp(... | 28.949153 | 74 | 0.446721 | pol-alok |
ea3623119be47018fd1c2da976a97a5559c8a125 | 1,031 | cpp | C++ | test/lseek.cpp | range3/GekkoFS | 5be5f63aea4678a918fe93c6cbc6e82c9fb5cfd2 | [
"MIT"
] | 31 | 2019-11-25T02:04:13.000Z | 2022-01-23T11:39:06.000Z | test/lseek.cpp | range3/GekkoFS | 5be5f63aea4678a918fe93c6cbc6e82c9fb5cfd2 | [
"MIT"
] | 5 | 2020-11-20T03:40:33.000Z | 2022-01-23T16:38:47.000Z | test/lseek.cpp | range3/GekkoFS | 5be5f63aea4678a918fe93c6cbc6e82c9fb5cfd2 | [
"MIT"
] | 6 | 2020-04-30T14:53:01.000Z | 2022-01-17T06:23:44.000Z | #include <iostream>
#include <fcntl.h>
#include <unistd.h>
#include <cstring>
#include <limits>
using namespace std;
int main(int argc, char* argv[]) {
string mountdir = "/tmp/mountdir";
string f = mountdir + "/file";
int fd;
fd = open(f.c_str(), O_WRONLY | O_CREAT, 0777);
if(fd < 0){
ce... | 22.911111 | 83 | 0.535403 | range3 |
ea3a48cfabee0d2bc7ea51032b89a727c091c39b | 7,584 | cpp | C++ | SDK/ARKSurvivalEvolved_DroppedItemGeneric_HoneyLure_functions.cpp | 2bite/ARK-SDK | c38ca9925309516b2093ad8c3a70ed9489e1d573 | [
"MIT"
] | 10 | 2020-02-17T19:08:46.000Z | 2021-07-31T11:07:19.000Z | SDK/ARKSurvivalEvolved_DroppedItemGeneric_HoneyLure_functions.cpp | 2bite/ARK-SDK | c38ca9925309516b2093ad8c3a70ed9489e1d573 | [
"MIT"
] | 9 | 2020-02-17T18:15:41.000Z | 2021-06-06T19:17:34.000Z | SDK/ARKSurvivalEvolved_DroppedItemGeneric_HoneyLure_functions.cpp | 2bite/ARK-SDK | c38ca9925309516b2093ad8c3a70ed9489e1d573 | [
"MIT"
] | 3 | 2020-07-22T17:42:07.000Z | 2021-06-19T17:16:13.000Z | // ARKSurvivalEvolved (329.9) SDK
#ifdef _MSC_VER
#pragma pack(push, 0x8)
#endif
#include "ARKSurvivalEvolved_DroppedItemGeneric_HoneyLure_parameters.hpp"
namespace sdk
{
//---------------------------------------------------------------------------
//Functions
//-----------------------------------------------------... | 30.704453 | 167 | 0.779008 | 2bite |
ea3cf557bf7313ecd87b916856fa935505d334e5 | 797 | hpp | C++ | core/graphics/impl/2D/Point.hpp | UnknownBugs/TUGUI | 1daece0c753aa255eca88c16ab87996aefbe8523 | [
"MIT"
] | 7 | 2021-11-25T01:34:36.000Z | 2022-01-12T17:07:21.000Z | core/graphics/impl/2D/Point.hpp | UnknownBugs/TUGUI | 1daece0c753aa255eca88c16ab87996aefbe8523 | [
"MIT"
] | 23 | 2021-11-25T07:10:18.000Z | 2022-03-03T15:28:36.000Z | core/graphics/impl/2D/Point.hpp | UnknownBugs/TUGUI | 1daece0c753aa255eca88c16ab87996aefbe8523 | [
"MIT"
] | 13 | 2021-11-25T01:34:41.000Z | 2021-12-27T09:36:43.000Z | #ifndef __POINT__HPP__TUGUI
#define __POINT__HPP__TUGUI
#include <libs/TMATH/tmath.hpp>
#include <libs/std/initializer_list.hpp>
#include <core/painter/PaintInterface.hpp>
#include <core/painter/impl/colors/color.hpp>
namespace TUGUI {
class Point : public PaintInterface, public TMATH::HomoCoordinates<2 + 1> {
publ... | 26.566667 | 78 | 0.633626 | UnknownBugs |
ea3d3e703a48f6ce932d12ed06a1471f539f58e2 | 18,308 | cpp | C++ | src/register.cpp | jizhuoran/ROCdbgapi_with_wave_-manipulate | 4373a5a1e2c3a1e4beff80ee7572841a368bd704 | [
"MIT"
] | null | null | null | src/register.cpp | jizhuoran/ROCdbgapi_with_wave_-manipulate | 4373a5a1e2c3a1e4beff80ee7572841a368bd704 | [
"MIT"
] | null | null | null | src/register.cpp | jizhuoran/ROCdbgapi_with_wave_-manipulate | 4373a5a1e2c3a1e4beff80ee7572841a368bd704 | [
"MIT"
] | null | null | null | /* Copyright (c) 2019-2020 Advanced Micro Devices, Inc.
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... | 30.361526 | 79 | 0.724711 | jizhuoran |
ea3d71a39dca9cfee7bf04af221521b3bced1e76 | 438 | cpp | C++ | framework/platform/bpl/linux/bpl_dhcp.cpp | ydx-coder/prplMesh | 6401b15c31c563f9e00ce6ff1b5513df3d39f157 | [
"BSD-2-Clause-Patent"
] | null | null | null | framework/platform/bpl/linux/bpl_dhcp.cpp | ydx-coder/prplMesh | 6401b15c31c563f9e00ce6ff1b5513df3d39f157 | [
"BSD-2-Clause-Patent"
] | null | null | null | framework/platform/bpl/linux/bpl_dhcp.cpp | ydx-coder/prplMesh | 6401b15c31c563f9e00ce6ff1b5513df3d39f157 | [
"BSD-2-Clause-Patent"
] | 1 | 2022-02-01T20:52:12.000Z | 2022-02-01T20:52:12.000Z | /* SPDX-License-Identifier: BSD-2-Clause-Patent
*
* Copyright (c) 2019 Intel Corporation
*
* This code is subject to the terms of the BSD+Patent license.
* See LICENSE file for more details.
*/
#include <bpl/bpl_dhcp.h>
namespace beerocks {
namespace bpl {
int dhcp_mon_start(dhcp_mon_cb cb) { return -2; }
int... | 19.909091 | 63 | 0.710046 | ydx-coder |
ea405edfdb443c7241ae1718fe5d1de8652a8f96 | 1,126 | cpp | C++ | leetcode.com/0514 Freedom Trail/main.cpp | sky-bro/AC | 29bfa3f13994612887e18065fa6e854b9a29633d | [
"MIT"
] | 1 | 2020-08-20T11:02:49.000Z | 2020-08-20T11:02:49.000Z | leetcode.com/0514 Freedom Trail/main.cpp | sky-bro/AC | 29bfa3f13994612887e18065fa6e854b9a29633d | [
"MIT"
] | null | null | null | leetcode.com/0514 Freedom Trail/main.cpp | sky-bro/AC | 29bfa3f13994612887e18065fa6e854b9a29633d | [
"MIT"
] | 1 | 2022-01-01T23:23:13.000Z | 2022-01-01T23:23:13.000Z | #include <algorithm>
#include <iostream>
#include <queue>
#include <set>
#include <vector>
using namespace std;
class Solution {
public:
int findRotateSteps(string ring, string key) {
vector<int> m[26];
int len_r = ring.length(), len_k = key.length();
for (int i = 0; i < len_r; ++i) m[ring[i] - 'a'].pu... | 28.15 | 75 | 0.539076 | sky-bro |
ea43e3060238b79aa21b122027e26e7022f35a6c | 105 | cpp | C++ | Codeforces/rockethon14/test.cpp | s9v/toypuct | 68e65e6da5922af340de72636a9a4f136454c70d | [
"MIT"
] | null | null | null | Codeforces/rockethon14/test.cpp | s9v/toypuct | 68e65e6da5922af340de72636a9a4f136454c70d | [
"MIT"
] | null | null | null | Codeforces/rockethon14/test.cpp | s9v/toypuct | 68e65e6da5922af340de72636a9a4f136454c70d | [
"MIT"
] | null | null | null | #include <iostream>
using namespace std;
int main()
{
int b;
cin >> b;
cout << *&b;
return 0;
}
| 8.076923 | 20 | 0.561905 | s9v |
ea492f0aded594fccc9ab24304073ed6ff3d23f8 | 3,944 | cpp | C++ | WorldEditor/ViewTexture.cpp | openlastchaos/lastchaos-source-client | 3d88594dba7347b1bb45378136605e31f73a8555 | [
"Apache-2.0"
] | 1 | 2022-02-14T15:46:44.000Z | 2022-02-14T15:46:44.000Z | WorldEditor/ViewTexture.cpp | openlastchaos/lastchaos-source-client | 3d88594dba7347b1bb45378136605e31f73a8555 | [
"Apache-2.0"
] | null | null | null | WorldEditor/ViewTexture.cpp | openlastchaos/lastchaos-source-client | 3d88594dba7347b1bb45378136605e31f73a8555 | [
"Apache-2.0"
] | 2 | 2022-01-10T22:17:06.000Z | 2022-01-17T09:34:08.000Z | // ViewTexture.cpp : implementation file
//
#include "stdafx.h"
#include "WorldEditor.h"
#include "ViewTexture.h"
#ifdef _DEBUG
#undef new
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// CViewTexture
C... | 21.911111 | 86 | 0.648327 | openlastchaos |
35736f5c08a45b924638c49126661933b4062428 | 4,165 | cpp | C++ | Classes/BeeSpawner.cpp | JLouhela/jumpy-demo | 8ccb6c98b42e38284eb9d1d884460ccb3c7b1629 | [
"MIT"
] | null | null | null | Classes/BeeSpawner.cpp | JLouhela/jumpy-demo | 8ccb6c98b42e38284eb9d1d884460ccb3c7b1629 | [
"MIT"
] | null | null | null | Classes/BeeSpawner.cpp | JLouhela/jumpy-demo | 8ccb6c98b42e38284eb9d1d884460ccb3c7b1629 | [
"MIT"
] | null | null | null | /// Copyright (c) 2019 Joni Louhela
///
/// 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, pub... | 34.708333 | 91 | 0.67539 | JLouhela |
3576800f2efd1d54080a8c32bf9531c3dd50f848 | 1,131 | hpp | C++ | TZK_Objects/HPP/CfgMaterials_HighContrast.hpp | Darker1990/Project-TZK-Since2.12 | 3f1162b51f1f24f41b1000e97102be537d162b76 | [
"MIT"
] | null | null | null | TZK_Objects/HPP/CfgMaterials_HighContrast.hpp | Darker1990/Project-TZK-Since2.12 | 3f1162b51f1f24f41b1000e97102be537d162b76 | [
"MIT"
] | null | null | null | TZK_Objects/HPP/CfgMaterials_HighContrast.hpp | Darker1990/Project-TZK-Since2.12 | 3f1162b51f1f24f41b1000e97102be537d162b76 | [
"MIT"
] | null | null | null | #define SHADOWLVL 0.5
class CfgMaterials {
// *** DEFAULT DEFINITIONS OVERRIDE ***
class Water {
ambient[] = {SHADOWLVL,SHADOWLVL,SHADOWLVL,1};
diffuse[] = {0.13,0.15,0.065,1.0};
forcedDiffuse[] = {0.0264,0.03,0.013,0};
specular[] = {0.5,0.5,0.5,0};
specularPower = 4;
emmisive[] = {0,0,0,0};
};
class T... | 24.586957 | 48 | 0.57206 | Darker1990 |
3577e7aecad6bafb6b3056b3ac3745344717eece | 145 | cpp | C++ | jee.cpp | razat2199/IOSD-MAIT-HacktoberFest-Meetup-2019 | d534b2d648e0345129f778f23609059feeeff673 | [
"Apache-2.0"
] | 9 | 2021-09-15T09:48:49.000Z | 2021-12-28T09:52:18.000Z | jee.cpp | razat2199/IOSD-MAIT-HacktoberFest-Meetup-2019 | d534b2d648e0345129f778f23609059feeeff673 | [
"Apache-2.0"
] | 3 | 2019-10-07T04:35:44.000Z | 2020-12-07T23:18:41.000Z | jee.cpp | razat2199/IOSD-MAIT-HacktoberFest-Meetup-2019 | d534b2d648e0345129f778f23609059feeeff673 | [
"Apache-2.0"
] | 54 | 2019-10-04T10:45:52.000Z | 2021-06-09T09:57:52.000Z | cout<<"jee is not tough but a different exam which all can't crack.watch super 30 recommended";
cout<<"hello this is just for learning purpose."; | 72.5 | 95 | 0.765517 | razat2199 |
357ed0082155ff9b6c85f2172921c87940dea30e | 3,478 | cpp | C++ | export/release/windows/obj/src/lime/text/harfbuzz/_HBLanguage/HBLanguage_Impl_.cpp | bobisdabbing/Vs-The-United-Lands-stable | 0807e58b6d8ad1440bdd350bf006b37a1b7ca9b5 | [
"MIT"
] | null | null | null | export/release/windows/obj/src/lime/text/harfbuzz/_HBLanguage/HBLanguage_Impl_.cpp | bobisdabbing/Vs-The-United-Lands-stable | 0807e58b6d8ad1440bdd350bf006b37a1b7ca9b5 | [
"MIT"
] | null | null | null | export/release/windows/obj/src/lime/text/harfbuzz/_HBLanguage/HBLanguage_Impl_.cpp | bobisdabbing/Vs-The-United-Lands-stable | 0807e58b6d8ad1440bdd350bf006b37a1b7ca9b5 | [
"MIT"
] | null | null | null | // Generated by Haxe 4.1.5
#include <hxcpp.h>
#ifndef INCLUDED_lime__internal_backend_native_NativeCFFI
#include <lime/_internal/backend/native/NativeCFFI.h>
#endif
#ifndef INCLUDED_lime_text_harfbuzz__HBLanguage_HBLanguage_Impl_
#include <lime/text/harfbuzz/_HBLanguage/HBLanguage_Impl_.h>
#endif
HX_LOCAL_STACK_FRAME... | 34.098039 | 226 | 0.762507 | bobisdabbing |
35854777eac8b0291e6b642caf52b9775e8c685a | 1,162 | cpp | C++ | 4_sort_0_1_2/4_Dutch_flag_algo.cpp | ManthanChoudhury/450_dsa | b776490a30d1039e2b1f3a42b7879d8d34ddce73 | [
"Apache-2.0"
] | 1 | 2021-03-11T00:17:39.000Z | 2021-03-11T00:17:39.000Z | 4_sort_0_1_2/4_Dutch_flag_algo.cpp | ManthanChoudhury/450_dsa | b776490a30d1039e2b1f3a42b7879d8d34ddce73 | [
"Apache-2.0"
] | null | null | null | 4_sort_0_1_2/4_Dutch_flag_algo.cpp | ManthanChoudhury/450_dsa | b776490a30d1039e2b1f3a42b7879d8d34ddce73 | [
"Apache-2.0"
] | null | null | null | // { Driver Code Starts
#include<bits/stdc++.h>
using namespace std;
void sort012(int[],int);
int main() {
int t;
cin >> t;
while(t--){
int n;
cin >>n;
int a[n];
for(int i=0;i<n;i++){
cin >> a[i];
}
sort012(a, n);
f... | 16.138889 | 40 | 0.303787 | ManthanChoudhury |
35893fb1c278ccd377860a42100d78011654bf45 | 579 | cpp | C++ | hello.cpp | wheel0012/Horner-algo | 288267e67a285a92d965f5c2a2f8fd149adf6f90 | [
"Unlicense"
] | null | null | null | hello.cpp | wheel0012/Horner-algo | 288267e67a285a92d965f5c2a2f8fd149adf6f90 | [
"Unlicense"
] | null | null | null | hello.cpp | wheel0012/Horner-algo | 288267e67a285a92d965f5c2a2f8fd149adf6f90 | [
"Unlicense"
] | null | null | null | #include <iostream>
#include <string.h>
class Tools
{
public:
Tools()
{
}
void Split(char* str)
{
std::cout<<strlen(str)<<std::endl;
for(int i = 0; i< strlen(str); i++)
{
std::cout<<str[i]<<std::endl;
}
std::cout<<"\n"<<std::endl;
//st... | 18.09375 | 51 | 0.481865 | wheel0012 |
3589c3b6f385168fedf2e731e748d226a469cc2e | 2,113 | hpp | C++ | capo/construct.hpp | mutouyun/capo | d90528cf5bb59bdf76cdf94dfa6a55bcb1bfdc13 | [
"MIT"
] | 58 | 2015-03-22T03:26:07.000Z | 2022-03-30T05:15:22.000Z | capo/construct.hpp | mutouyun/capo | d90528cf5bb59bdf76cdf94dfa6a55bcb1bfdc13 | [
"MIT"
] | 1 | 2019-03-07T12:32:41.000Z | 2019-03-16T15:01:55.000Z | capo/construct.hpp | mutouyun/capo | d90528cf5bb59bdf76cdf94dfa6a55bcb1bfdc13 | [
"MIT"
] | 21 | 2015-02-27T06:44:56.000Z | 2022-03-05T15:53:30.000Z | /*
The Capo Library
Code covered by the MIT License
Author: mutouyun (http://orzz.org)
*/
#pragma once
#include <new> // placement new
#include <utility> // std::forward
#include <cstddef> // size_t
namespace capo {
////////////////////////////////////////////////////////////////
/// Construct a... | 21.561224 | 77 | 0.471368 | mutouyun |
358d40594ff2238018899f70ffd82c915d584f32 | 742 | cpp | C++ | playground/main.cpp | MoustaphaSaad/tethys | 205be8060bdcadbca111d8222686e3b121cc90b7 | [
"BSD-3-Clause"
] | 4 | 2019-10-20T16:57:18.000Z | 2019-12-30T09:34:02.000Z | playground/main.cpp | MoustaphaSaad/tethys | 205be8060bdcadbca111d8222686e3b121cc90b7 | [
"BSD-3-Clause"
] | null | null | null | playground/main.cpp | MoustaphaSaad/tethys | 205be8060bdcadbca111d8222686e3b121cc90b7 | [
"BSD-3-Clause"
] | 1 | 2019-11-02T19:08:26.000Z | 2019-11-02T19:08:26.000Z | #include <mn/IO.h>
#include <mn/Library.h>
#include <ffi.h>
#include <ffi/FFI.h>
extern "C" int myadd(int a, int b)
{
return a + b;
}
int
main(int, char**)
{
auto l = mn::library_open("");
auto f = mn::library_proc(l, "myadd");
mn::print("{}, {}\n", l, f);
mn::library_close(l);
mn::print("Hello, World!");
ffi... | 19.526316 | 78 | 0.62938 | MoustaphaSaad |
3590fb222e5b8f6f814e9026b8ef356eb2a5c419 | 946 | cpp | C++ | codeforces/A - Yet Another Dividing into Teams/Accepted.cpp | kzvd4729/Problem-Solving | 13b105e725a4c2f8db7fecc5d7a8f932b9fef4ab | [
"MIT"
] | 1 | 2022-02-11T16:55:36.000Z | 2022-02-11T16:55:36.000Z | codeforces/A - Yet Another Dividing into Teams/Accepted.cpp | kzvd4729/Problem-Solving | 13b105e725a4c2f8db7fecc5d7a8f932b9fef4ab | [
"MIT"
] | null | null | null | codeforces/A - Yet Another Dividing into Teams/Accepted.cpp | kzvd4729/Problem-Solving | 13b105e725a4c2f8db7fecc5d7a8f932b9fef4ab | [
"MIT"
] | null | null | null | /****************************************************************************************
* @author: * kzvd4729 created: Oct/22/2019 20:38
* solution_verdict: Accepted language: GNU C++14
* run... | 35.037037 | 111 | 0.363636 | kzvd4729 |
359381646aad150d93bbcfed18f01342ef88b04c | 1,476 | hpp | C++ | src/symbol.hpp | Stazer/zlisp | 43df64fd5941dd650e35cd93aa6f44b544f2da86 | [
"MIT"
] | null | null | null | src/symbol.hpp | Stazer/zlisp | 43df64fd5941dd650e35cd93aa6f44b544f2da86 | [
"MIT"
] | 2 | 2019-07-21T19:43:18.000Z | 2019-07-21T19:46:08.000Z | src/symbol.hpp | Stazer/zlisp | 43df64fd5941dd650e35cd93aa6f44b544f2da86 | [
"MIT"
] | null | null | null | #pragma once
#include <unordered_map>
#include <unordered_set>
#include <cstdint>
#include <vector>
#include <iosfwd>
#include <string>
#include <ostream>
struct symbol
{
symbol(const std::string& str);
symbol(const char* str);
symbol(const symbol& s);
symbol(symbol&& s);
~symbol() noexcept;
symbol& oper... | 26.357143 | 119 | 0.716802 | Stazer |
359778960c0ac3dc9d8e895e31b34f89b2e6677c | 2,044 | cpp | C++ | src/walker.cpp | nantha007/walker | ad705a5801888dea1459280326dc20e8580f1ba2 | [
"MIT"
] | null | null | null | src/walker.cpp | nantha007/walker | ad705a5801888dea1459280326dc20e8580f1ba2 | [
"MIT"
] | null | null | null | src/walker.cpp | nantha007/walker | ad705a5801888dea1459280326dc20e8580f1ba2 | [
"MIT"
] | null | null | null | /**
* MIT License
* Copyright (c) 2018 Nantha Kumar Sunder
*
* 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... | 32.444444 | 81 | 0.713307 | nantha007 |
35980febdc0c2227769327da687214cb05299a60 | 4,119 | hpp | C++ | SDK/ARKSurvivalEvolved_Task_ShakeOffBasedPlayers_classes.hpp | 2bite/ARK-SDK | c38ca9925309516b2093ad8c3a70ed9489e1d573 | [
"MIT"
] | 10 | 2020-02-17T19:08:46.000Z | 2021-07-31T11:07:19.000Z | SDK/ARKSurvivalEvolved_Task_ShakeOffBasedPlayers_classes.hpp | 2bite/ARK-SDK | c38ca9925309516b2093ad8c3a70ed9489e1d573 | [
"MIT"
] | 9 | 2020-02-17T18:15:41.000Z | 2021-06-06T19:17:34.000Z | SDK/ARKSurvivalEvolved_Task_ShakeOffBasedPlayers_classes.hpp | 2bite/ARK-SDK | c38ca9925309516b2093ad8c3a70ed9489e1d573 | [
"MIT"
] | 3 | 2020-07-22T17:42:07.000Z | 2021-06-19T17:16:13.000Z | #pragma once
// ARKSurvivalEvolved (329.9) SDK
#ifdef _MSC_VER
#pragma pack(push, 0x8)
#endif
#include "ARKSurvivalEvolved_Task_ShakeOffBasedPlayers_structs.hpp"
namespace sdk
{
//---------------------------------------------------------------------------
//Classes
//-----------------------------------------------... | 69.813559 | 231 | 0.590192 | 2bite |
359814abe32bf22c6d44dc60701f59e4556ec47f | 2,836 | cpp | C++ | ql/methods/finitedifferences/stepconditions/fdmsimpleswingcondition.cpp | quantosaurosProject/quantLib | 84b49913d3940cf80d6de8f70185867373f45e8d | [
"BSD-3-Clause"
] | null | null | null | ql/methods/finitedifferences/stepconditions/fdmsimpleswingcondition.cpp | quantosaurosProject/quantLib | 84b49913d3940cf80d6de8f70185867373f45e8d | [
"BSD-3-Clause"
] | null | null | null | ql/methods/finitedifferences/stepconditions/fdmsimpleswingcondition.cpp | quantosaurosProject/quantLib | 84b49913d3940cf80d6de8f70185867373f45e8d | [
"BSD-3-Clause"
] | 1 | 2022-03-29T05:44:27.000Z | 2022-03-29T05:44:27.000Z | /* -*- mode: c++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
/*
Copyright (C) 2010 Klaus Spanderen
This file is part of QuantLib, a free-software/open-source library
for financial quantitative analysts and developers - http://quantlib.org/
QuantLib is free software: you can redistribute it an... | 39.943662 | 82 | 0.608956 | quantosaurosProject |
35a2fa164c0b41bba1c63ad4b0ac64cd167b6775 | 1,239 | cpp | C++ | nd-coursework/books/cpp/FoundationsOfQtDev/Chapter01/Listing1_22-24.cpp | crdrisko/nd-grad | f1765e4f24d7a4b1b3a76c64eb8d88bcca0eaa44 | [
"MIT"
] | 1 | 2020-09-26T12:38:55.000Z | 2020-09-26T12:38:55.000Z | nd-coursework/books/cpp/FoundationsOfQtDev/Chapter01/Listing1_22-24.cpp | crdrisko/nd-research | f1765e4f24d7a4b1b3a76c64eb8d88bcca0eaa44 | [
"MIT"
] | null | null | null | nd-coursework/books/cpp/FoundationsOfQtDev/Chapter01/Listing1_22-24.cpp | crdrisko/nd-research | f1765e4f24d7a4b1b3a76c64eb8d88bcca0eaa44 | [
"MIT"
] | null | null | null | // Copyright (c) 2007 Johan Thelin. Some rights reserved.
// Licensed under the Freeware License. See the LICENSE file in the project root for more information.
//
// Name: Listing1_22-24.cpp
// Author: crdrisko
// Date: 08/02/2021-11:02:49
// Description: Mapping and Hashing (pt 2)
#include <iostream>
#include <vecto... | 27.533333 | 114 | 0.641646 | crdrisko |
35a5eaa99def6522de193575bfc961b95172d070 | 1,578 | hh | C++ | include/nauths/npl/pp/array_cat.hh | nicuveo/NPL | 1338729524708165a953d7ccf9b5de7b68d28588 | [
"MIT"
] | null | null | null | include/nauths/npl/pp/array_cat.hh | nicuveo/NPL | 1338729524708165a953d7ccf9b5de7b68d28588 | [
"MIT"
] | null | null | null | include/nauths/npl/pp/array_cat.hh | nicuveo/NPL | 1338729524708165a953d7ccf9b5de7b68d28588 | [
"MIT"
] | null | null | null | //
// Copyright Antoine Leblanc 2010 - 2015
// Distributed under the MIT license.
//
// http://nauths.fr
// http://github.com/nicuveo
// mailto://antoine.jp.leblanc@gmail.com
//
#ifndef NPL_PP_ARRAY_CAT_HH_
# define NPL_PP_ARRAY_CAT_HH_
//HHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHH
// Inclu... | 29.773585 | 154 | 0.775032 | nicuveo |
35a6c48e751611041e5d19bc8cd466f40cf856df | 1,560 | cpp | C++ | src/policy/consistency.cpp | kaiyuhou/neo | e75e42d7654afcd4606ceb7f60d122cc9aec44af | [
"NCSA"
] | null | null | null | src/policy/consistency.cpp | kaiyuhou/neo | e75e42d7654afcd4606ceb7f60d122cc9aec44af | [
"NCSA"
] | null | null | null | src/policy/consistency.cpp | kaiyuhou/neo | e75e42d7654afcd4606ceb7f60d122cc9aec44af | [
"NCSA"
] | null | null | null | #include "policy/consistency.hpp"
#include "model-access.hpp"
#include "model.h"
std::string ConsistencyPolicy::to_string() const
{
std::string ret = "consistency of ";
for (Policy *p : correlated_policies) {
ret += p->to_string() + ", ";
}
ret.pop_back();
ret.pop_back();
return ret;
}... | 27.368421 | 84 | 0.614103 | kaiyuhou |
35ad24c999909f4d96a861eb2046915116140caf | 213 | hpp | C++ | gearoenix/render/mesh/gx-rnd-msh-type.hpp | Hossein-Noroozpour/gearoenix | c8fa8b8946c03c013dad568d6d7a97d81097c051 | [
"BSD-Source-Code"
] | 35 | 2018-01-07T02:34:38.000Z | 2022-02-09T05:19:03.000Z | gearoenix/render/mesh/gx-rnd-msh-type.hpp | Hossein-Noroozpour/gearoenix | c8fa8b8946c03c013dad568d6d7a97d81097c051 | [
"BSD-Source-Code"
] | 111 | 2017-09-20T09:12:36.000Z | 2020-12-27T12:52:03.000Z | gearoenix/render/mesh/gx-rnd-msh-type.hpp | Hossein-Noroozpour/gearoenix | c8fa8b8946c03c013dad568d6d7a97d81097c051 | [
"BSD-Source-Code"
] | 5 | 2020-02-11T11:17:37.000Z | 2021-01-08T17:55:43.000Z | #ifndef GEAROENIX_RENDER_MESH_TYPE_HPP
#define GEAROENIX_RENDER_MESH_TYPE_HPP
#include "../../core/gx-cr-types.hpp"
namespace gearoenix::render::mesh {
enum struct Type : core::TypeId {
Basic = 1,
};
}
#endif
| 21.3 | 38 | 0.741784 | Hossein-Noroozpour |
35bb9b74c7e9a279758891f2ce60375cb7bade04 | 1,559 | cpp | C++ | bin/test-ok/3.cpp | badforlabor/tolua- | 15ae5789ef2a6295eb5af6c26f927a7572ec9864 | [
"MIT"
] | 8 | 2016-05-17T08:26:49.000Z | 2021-05-16T22:33:59.000Z | bin/test-ok/3.cpp | badforlabor/tolua- | 15ae5789ef2a6295eb5af6c26f927a7572ec9864 | [
"MIT"
] | null | null | null | bin/test-ok/3.cpp | badforlabor/tolua- | 15ae5789ef2a6295eb5af6c26f927a7572ec9864 | [
"MIT"
] | 6 | 2017-05-04T01:21:15.000Z | 2021-04-20T12:21:14.000Z | /*
** Lua binding: tconstant
** Generated automatically by tolua++-1.0.92 on 01/05/16 18:22:51.
*/
#ifndef __cplusplus
#include "stdlib.h"
#endif
#include "string.h"
#include "tolua++.h"
/* Exported function */
TOLUA_API int tolua_tconstant_open (lua_State* tolua_S);
#include "tconstant.h"
/* fun... | 25.983333 | 67 | 0.708146 | badforlabor |
35c10f6d6b53b35c243fe75e2ebaa813ae6fadc1 | 143 | hh | C++ | src/turing-digital-module-widget.hh | Chaircrusher/skylights-vcv | 04c66539824f8e4b4de4da824f2090470e8494ec | [
"BSD-3-Clause"
] | 16 | 2019-02-09T19:54:26.000Z | 2019-11-20T16:29:03.000Z | src/turing-digital-module-widget.hh | Chaircrusher/skylights-vcv | 04c66539824f8e4b4de4da824f2090470e8494ec | [
"BSD-3-Clause"
] | 15 | 2019-03-04T19:44:38.000Z | 2019-08-10T03:33:33.000Z | src/turing-digital-module-widget.hh | Chaircrusher/skylights-vcv | 04c66539824f8e4b4de4da824f2090470e8494ec | [
"BSD-3-Clause"
] | 5 | 2019-05-09T10:52:54.000Z | 2021-12-03T17:37:56.000Z | #pragma once
#include "skylights.hh"
struct turing_digital_module_widget : ModuleWidget {
turing_digital_module_widget(Module *module);
};
| 17.875 | 52 | 0.797203 | Chaircrusher |
35c2a5c6e9e225789bd6e8dce8bd96e9b98973ad | 1,333 | cpp | C++ | c1/dualpal.cpp | rodrigods/usaco | 8d95fd6a285e4f6f61199b9bef6af93fb087f63e | [
"Apache-2.0"
] | null | null | null | c1/dualpal.cpp | rodrigods/usaco | 8d95fd6a285e4f6f61199b9bef6af93fb087f63e | [
"Apache-2.0"
] | null | null | null | c1/dualpal.cpp | rodrigods/usaco | 8d95fd6a285e4f6f61199b9bef6af93fb087f63e | [
"Apache-2.0"
] | null | null | null | /*
ID: rodrigo40
PROG: dualpal
LANG: C++
*/
#include <iostream>
#include <fstream>
#include <string>
#include <algorithm>
using namespace std;
bool isPalindrome(string str) {
int l = 0;
int r = str.length() - 1;
while (l < r) {
if (str[l] != str[r]) {
return false;
}
l... | 19.042857 | 65 | 0.498875 | rodrigods |
35c7229cb86b9597a6f3c5175052eed6a1f11b65 | 1,793 | cc | C++ | Codeforces/353 Division 2/Problem D/D.cc | VastoLorde95/Competitive-Programming | 6c990656178fb0cd33354cbe5508164207012f24 | [
"MIT"
] | 170 | 2017-07-25T14:47:29.000Z | 2022-01-26T19:16:31.000Z | Codeforces/353 Division 2/Problem D/D.cc | navodit15/Competitive-Programming | 6c990656178fb0cd33354cbe5508164207012f24 | [
"MIT"
] | null | null | null | Codeforces/353 Division 2/Problem D/D.cc | navodit15/Competitive-Programming | 6c990656178fb0cd33354cbe5508164207012f24 | [
"MIT"
] | 55 | 2017-07-28T06:17:33.000Z | 2021-10-31T03:06:22.000Z | #include <bits/stdc++.h>
#define sd(x) scanf("%d",&x)
#define sd2(x,y) scanf("%d%d",&x,&y)
#define sd3(x,y,z) scanf("%d%d%d",&x,&y,&z)
#define fi first
#define se second
#define pb push_back
#define mp make_pair
#define foreach(it, v) for(__typeof((v).begin()) it=(v).begin(); it != (v).end(); ++it)
#define meta __FUN... | 17.93 | 97 | 0.524819 | VastoLorde95 |
35cb0eb3786696c1bde643ee55aba3041fbb309a | 6,240 | cpp | C++ | src/module/usModuleResource.cpp | azriel91/CppMicroServices | 13080ed60791940a6e0aef38fe5d89d53d97fb41 | [
"Apache-2.0"
] | 1 | 2021-06-27T05:11:08.000Z | 2021-06-27T05:11:08.000Z | src/module/usModuleResource.cpp | azriel91/CppMicroServices | 13080ed60791940a6e0aef38fe5d89d53d97fb41 | [
"Apache-2.0"
] | 3 | 2017-08-20T22:10:51.000Z | 2017-09-04T12:48:40.000Z | src/module/usModuleResource.cpp | MoonLightDE/mlde.l.cppmicroservices | cf471b30539d7e1a138d6308b2b249fe19df2302 | [
"Apache-2.0"
] | 2 | 2020-10-27T06:51:00.000Z | 2020-10-27T06:51:01.000Z | /*=============================================================================
Library: CppMicroServices
Copyright (c) German Cancer Research Center,
Division of Medical and Biological Informatics
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in complia... | 22.941176 | 100 | 0.668269 | azriel91 |
35d0bc7a119465d0510618a90389426afec39671 | 5,323 | cpp | C++ | src/Camera.cpp | jamino/SoftShadows | 75684963496c7f51179cdd48b3a65a1cc410404e | [
"0BSD"
] | 1 | 2019-08-20T21:48:34.000Z | 2019-08-20T21:48:34.000Z | src/Camera.cpp | jamino/SoftShadows | 75684963496c7f51179cdd48b3a65a1cc410404e | [
"0BSD"
] | null | null | null | src/Camera.cpp | jamino/SoftShadows | 75684963496c7f51179cdd48b3a65a1cc410404e | [
"0BSD"
] | null | null | null | ///////////////////////////////////////////////////////////////////////////////
// Copyright (c) 2012, Ben Lane
//
// Permission to use, copy, modify, and/or distribute this software for any
// purpose with or without fee is hereby granted, provided that the above
// copyright notice and this permission notice appear i... | 31.128655 | 86 | 0.685516 | jamino |
35d1bdf2324522e34a1a2b15db5d2c19822c20a2 | 6,119 | cpp | C++ | testing/unittests/jlibtests.cpp | emuharemagic/HPCC-Platform | bbd5423b25f6ba2d675521c8917f9ecfa97dace5 | [
"Apache-2.0"
] | 1 | 2020-08-01T19:54:56.000Z | 2020-08-01T19:54:56.000Z | testing/unittests/jlibtests.cpp | emuharemagic/HPCC-Platform | bbd5423b25f6ba2d675521c8917f9ecfa97dace5 | [
"Apache-2.0"
] | null | null | null | testing/unittests/jlibtests.cpp | emuharemagic/HPCC-Platform | bbd5423b25f6ba2d675521c8917f9ecfa97dace5 | [
"Apache-2.0"
] | null | null | null | /*##############################################################################
HPCC SYSTEMS software Copyright (C) 2012 HPCC Systems.
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 ... | 25.60251 | 102 | 0.511195 | emuharemagic |
35e4ba0dc1860954c0571cfef994903bc6be2a69 | 6,832 | cpp | C++ | iotvideo/src/v20201215/model/DataForward.cpp | suluner/tencentcloud-sdk-cpp | a56c73cc3f488c4d1e10755704107bb15c5e000d | [
"Apache-2.0"
] | 43 | 2019-08-14T08:14:12.000Z | 2022-03-30T12:35:09.000Z | iotvideo/src/v20201215/model/DataForward.cpp | suluner/tencentcloud-sdk-cpp | a56c73cc3f488c4d1e10755704107bb15c5e000d | [
"Apache-2.0"
] | 12 | 2019-07-15T10:44:59.000Z | 2021-11-02T12:35:00.000Z | iotvideo/src/v20201215/model/DataForward.cpp | suluner/tencentcloud-sdk-cpp | a56c73cc3f488c4d1e10755704107bb15c5e000d | [
"Apache-2.0"
] | 28 | 2019-07-12T09:06:22.000Z | 2022-03-30T08:04:18.000Z | /*
* Copyright (c) 2017-2019 THL A29 Limited, a Tencent company. 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 copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
... | 27.111111 | 141 | 0.682084 | suluner |
35e572c0b33c1cd8a1798256e47699556dd581db | 1,397 | cc | C++ | src/map/Map.cc | kallentu/pathos | 1914edbccc98baef79d98fb065119230072ac40d | [
"MIT"
] | 7 | 2019-05-09T15:38:55.000Z | 2021-12-07T03:13:29.000Z | src/map/Map.cc | kallentu/pathos | 1914edbccc98baef79d98fb065119230072ac40d | [
"MIT"
] | 1 | 2019-06-20T03:01:18.000Z | 2019-06-20T03:01:18.000Z | src/map/Map.cc | kallentu/pathos | 1914edbccc98baef79d98fb065119230072ac40d | [
"MIT"
] | null | null | null | #include "map/Map.h"
#include "map/Ground.h"
#include "map/MapObject.h"
#include "map/Wall.h"
#include "view/curses/MapView.h"
#include <memory>
#include <vector>
using namespace Pathos;
Map::Map(size_t y, size_t x) {
// Walls added for the corners of the map
// Initial fill with default MapObjects (ground)
for... | 20.850746 | 69 | 0.561203 | kallentu |
e3081c492fce81bfb255d751ffb60b93eaae1f65 | 2,219 | inl | C++ | c++/Ail/URL.inl | aamshukov/miscellaneous | 6fc0d2cb98daff70d14f87b2dfc4e58e61d2df60 | [
"MIT"
] | null | null | null | c++/Ail/URL.inl | aamshukov/miscellaneous | 6fc0d2cb98daff70d14f87b2dfc4e58e61d2df60 | [
"MIT"
] | null | null | null | c++/Ail/URL.inl | aamshukov/miscellaneous | 6fc0d2cb98daff70d14f87b2dfc4e58e61d2df60 | [
"MIT"
] | null | null | null | ////////////////////////////////////////////////////////////////////////////////////////
//......................................................................................
// This is a part of AI Library [Arthur's Interfaces Library]. .
// 1998-2001 Arthur Amshukov ... | 26.105882 | 88 | 0.452907 | aamshukov |
e309ef09be7edd6cca89caa5a3af15f9f25771fa | 12,986 | cpp | C++ | src/cbs/components/RubiksCube/RubiksCube.cpp | Nerovski/RubiksCube | a8ac27e50544a44a1790d0a6f1af07be05768454 | [
"MIT"
] | 6 | 2020-06-27T10:29:40.000Z | 2021-04-13T14:19:23.000Z | src/cbs/components/RubiksCube/RubiksCube.cpp | Nerovski/RubiksCube | a8ac27e50544a44a1790d0a6f1af07be05768454 | [
"MIT"
] | null | null | null | src/cbs/components/RubiksCube/RubiksCube.cpp | Nerovski/RubiksCube | a8ac27e50544a44a1790d0a6f1af07be05768454 | [
"MIT"
] | 3 | 2021-05-30T05:32:24.000Z | 2022-01-18T01:53:24.000Z | #include "RubiksCube.h"
#include "Tasks.h"
RubiksCube::RubiksCube()
: m_Front {
{
{ 0, 0, 0 },
{ 0, 0, 1 },
{ 0, 0, 2 },
{ 0, 1, 2 },
{ 0, 2, 2 },
{ 0, 2, 1 },
{ 0, 2, 0 },
{ 0, 1, 0 }
},
{ 0, 1... | 40.9653 | 202 | 0.56815 | Nerovski |
e30dc3f86621a61a237131a5324ebc1f40b3caaf | 418 | cpp | C++ | Chromatics.cpp | DoooReyn/chromatic4cpp | 31a7e31cd331728ad65280d5d57556c3bd0a8605 | [
"MIT"
] | 1 | 2017-02-18T20:50:41.000Z | 2017-02-18T20:50:41.000Z | Chromatics.cpp | DoooReyn/chromatic4cpp | 31a7e31cd331728ad65280d5d57556c3bd0a8605 | [
"MIT"
] | 4 | 2017-02-18T11:51:01.000Z | 2017-02-19T17:19:19.000Z | Chromatics.cpp | DoooReyn/chromatic4cpp | 31a7e31cd331728ad65280d5d57556c3bd0a8605 | [
"MIT"
] | null | null | null | //
// Chromatics.cpp
// Playground
//
// Created by Reyn-Mac on 2017/2/18.
// Copyright © 2017年 Reyn-Mac. All rights reserved.
//
#include "Chromatics.hpp"
unsigned char Chromatic::getColorVecFromHex(string hex)
{
if(hex.size() == 0) return 0;
int nhigh = StringUtils::hex01(hex.at(0)) * 16;
if(hex.siz... | 22 | 55 | 0.641148 | DoooReyn |
e312392584cad7896cf39cc8afdc4a33e8352531 | 96 | cpp | C++ | Vulkan/src/Vulkan/Core/Time.cpp | ilkeraktug/Vulkan | b736ba2e01dc8fdfd1aaf3dec334882f7467263f | [
"MIT"
] | null | null | null | Vulkan/src/Vulkan/Core/Time.cpp | ilkeraktug/Vulkan | b736ba2e01dc8fdfd1aaf3dec334882f7467263f | [
"MIT"
] | null | null | null | Vulkan/src/Vulkan/Core/Time.cpp | ilkeraktug/Vulkan | b736ba2e01dc8fdfd1aaf3dec334882f7467263f | [
"MIT"
] | null | null | null | #include "pch.h"
#include "Time.h"
float Time::deltaTime = 0.0f;
float Time::m_LastTime = 0.0f; | 19.2 | 30 | 0.6875 | ilkeraktug |
e31242d2de6d33f5a5bc57748211451ea5e4f456 | 194 | cpp | C++ | src/lexer/utils.cpp | YavaCoco/Hydrogen | ce7baf19e1fa1d705de99e86b4f116c30d737aa2 | [
"MIT"
] | 1 | 2022-01-22T00:57:49.000Z | 2022-01-22T00:57:49.000Z | src/lexer/utils.cpp | YavaCoco/Hydrogen | ce7baf19e1fa1d705de99e86b4f116c30d737aa2 | [
"MIT"
] | null | null | null | src/lexer/utils.cpp | YavaCoco/Hydrogen | ce7baf19e1fa1d705de99e86b4f116c30d737aa2 | [
"MIT"
] | null | null | null | #include <lexer.hpp>
namespace hyc::lex
{
// open parentheses/braces/brackets
int lexer::open_pbck()
{
return m_openps.size() + m_openbks.size() + m_openbcs.size();
}
}
| 17.636364 | 69 | 0.618557 | YavaCoco |
e312e63baa70dbe0945e9462625a4cec5708ffcb | 7,968 | cpp | C++ | src/UI/UiElement.cpp | Strife-AI/Strife.Engine | 6b83e762f28acb3f4440d5b7763beccfd08dfc8f | [
"NCSA"
] | 12 | 2020-12-27T22:13:58.000Z | 2021-03-14T09:03:02.000Z | src/UI/UiElement.cpp | Strife-AI/Strife.Engine | 6b83e762f28acb3f4440d5b7763beccfd08dfc8f | [
"NCSA"
] | 10 | 2021-01-14T15:14:31.000Z | 2021-05-24T22:01:09.000Z | src/UI/UiElement.cpp | Strife-AI/Strife.Engine | 6b83e762f28acb3f4440d5b7763beccfd08dfc8f | [
"NCSA"
] | null | null | null | #include "UiElement.hpp"
#include "Camera.hpp"
#include "UI.hpp"
void UiElement::RemoveChild(UiElementPtr child)
{
auto position = std::find(_children.begin(), _children.end(), child);
if (position != _children.end())
{
_children.erase(position);
RequireReformat();
}
}
void UiElemen... | 22.636364 | 109 | 0.619478 | Strife-AI |
e317b8d606c9e2559b622971d2eb880dd333c651 | 1,396 | cc | C++ | python_bindings.cc | JackMaguire/RobotsAsAGraph | 23208be8cfc34cd1f4db9f3cb7b680286e690f07 | [
"MIT"
] | null | null | null | python_bindings.cc | JackMaguire/RobotsAsAGraph | 23208be8cfc34cd1f4db9f3cb7b680286e690f07 | [
"MIT"
] | null | null | null | python_bindings.cc | JackMaguire/RobotsAsAGraph | 23208be8cfc34cd1f4db9f3cb7b680286e690f07 | [
"MIT"
] | null | null | null | //g++ python_bindings.cc -o robots_core$(python3-config --extension-suffix) -O3 -Wall -Wextra -Iinclude -Iextern/RobotsCore/extern/pybind11/include -std=c++17 -fPIC $(python3 -m pybind11 --includes) -shared -Iextern/RobotsCore/include/
#include "deserialize.hh"
#define RC_EXPAND_PYMODULE
#include "core_python_binding... | 30.347826 | 235 | 0.626791 | JackMaguire |
e31f7bc7a885b2f1066f920a505d15af345f84e3 | 4,233 | cpp | C++ | src/Services/NotificationService/NotificationService.cpp | irov/Mengine | b76e9f8037325dd826d4f2f17893ac2b236edad8 | [
"MIT"
] | 39 | 2016-04-21T03:25:26.000Z | 2022-01-19T14:16:38.000Z | src/Services/NotificationService/NotificationService.cpp | irov/Mengine | b76e9f8037325dd826d4f2f17893ac2b236edad8 | [
"MIT"
] | 23 | 2016-06-28T13:03:17.000Z | 2022-02-02T10:11:54.000Z | src/Services/NotificationService/NotificationService.cpp | irov/Mengine | b76e9f8037325dd826d4f2f17893ac2b236edad8 | [
"MIT"
] | 14 | 2016-06-22T20:45:37.000Z | 2021-07-05T12:25:19.000Z | #include "NotificationService.h"
#include "Interface/ThreadServiceInterface.h"
#include "Interface/LoggerServiceInterface.h"
#include "Kernel/Assertion.h"
#include "Kernel/AssertionMemoryPanic.h"
#include "Kernel/Logger.h"
#include "Kernel/DocumentHelper.h"
#include "Kernel/MixinDebug.h"
#include "Config/... | 34.137097 | 156 | 0.46799 | irov |
e31ff11040827b2d4431ccbf0a5f97e7212bbc3a | 1,397 | cpp | C++ | kattis/ceiling/ceiling.cpp | pi-guy-in-the-sky/competitive-programming | e079f6caf07b5de061ea4f56218f9b577e49a965 | [
"MIT"
] | null | null | null | kattis/ceiling/ceiling.cpp | pi-guy-in-the-sky/competitive-programming | e079f6caf07b5de061ea4f56218f9b577e49a965 | [
"MIT"
] | null | null | null | kattis/ceiling/ceiling.cpp | pi-guy-in-the-sky/competitive-programming | e079f6caf07b5de061ea4f56218f9b577e49a965 | [
"MIT"
] | 1 | 2020-10-25T05:46:57.000Z | 2020-10-25T05:46:57.000Z | #include <iostream>
#include <unordered_map>
#include <string>
using namespace std;
struct node {
int n;
node* left = nullptr;
node* right = nullptr;
};
string traverse(node* root, int depth) {
if (root == nullptr)
return "";
string ans;
ans += traverse(root->left, depth + 1);
... | 17.683544 | 44 | 0.435934 | pi-guy-in-the-sky |
e321a4e23afd384010e8cff78aa651118c22eb09 | 17,656 | cpp | C++ | source/tool/toolSettings/effects/TSet_Effects.cpp | chromaScript/chroma.io | c484354df6f3c84a049ffadfe37c677c0ccb6390 | [
"MIT"
] | null | null | null | source/tool/toolSettings/effects/TSet_Effects.cpp | chromaScript/chroma.io | c484354df6f3c84a049ffadfe37c677c0ccb6390 | [
"MIT"
] | null | null | null | source/tool/toolSettings/effects/TSet_Effects.cpp | chromaScript/chroma.io | c484354df6f3c84a049ffadfe37c677c0ccb6390 | [
"MIT"
] | null | null | null | #include "../../../include/tool/ToolSettings.h"
#include "../../../include/input/keys.h"
#include "../../../include/math/Color.h"
class CFunction;
#include "../../../include/cscript/CInterpreter.h"
#include "../../../include/cscript/CObject.h"
#include "../../../include/tool/Tool.h"
#include <glm.hpp>
#include <gtx/r... | 32.940299 | 149 | 0.649411 | chromaScript |
e328c8e786d0fdff885335a27bb7196783d9730c | 768 | cpp | C++ | algorithm/hw11v2.cpp | scott306lr/coding_exercise | 2bca11a1e68b468d6c5422f8cec2eb9e090664f7 | [
"MIT"
] | null | null | null | algorithm/hw11v2.cpp | scott306lr/coding_exercise | 2bca11a1e68b468d6c5422f8cec2eb9e090664f7 | [
"MIT"
] | null | null | null | algorithm/hw11v2.cpp | scott306lr/coding_exercise | 2bca11a1e68b468d6c5422f8cec2eb9e090664f7 | [
"MIT"
] | null | null | null | //#include <bits/stdc++.h>
#include <iostream>
#include <vector>
#include <algorithm>
#include <map>
#include <unordered_map>
#include <queue>
using namespace std;
typedef pair<int,int> pii;
int n;
string inpu;
int dp[7001][7001];
int main(){
cin.tie(0), cout.sync_with_stdio(0);
cin >> n ;
cin >> inpu;
for(int... | 17.860465 | 67 | 0.50651 | scott306lr |
e32d7b824fbdec67073908ec6c0473bc2e92d48b | 178 | hpp | C++ | include/kbrica.hpp | ktnyt/KBriCA | 1167d3ac08daae2858388a7e4db745c6e65fd3c7 | [
"MIT"
] | null | null | null | include/kbrica.hpp | ktnyt/KBriCA | 1167d3ac08daae2858388a7e4db745c6e65fd3c7 | [
"MIT"
] | null | null | null | include/kbrica.hpp | ktnyt/KBriCA | 1167d3ac08daae2858388a7e4db745c6e65fd3c7 | [
"MIT"
] | null | null | null | #ifndef __KBRICA_HPP__
#define __KBRICA_HPP__
#include "kbrica/buffer.hpp"
#include "kbrica/component.hpp"
#include "kbrica/functor.hpp"
#include "kbrica/scheduler.hpp"
#endif
| 17.8 | 31 | 0.786517 | ktnyt |
e32ec57092453a85db34f74630d5d7e470a2b474 | 5,803 | hpp | C++ | src/pyprx/utilities/spaces/space_py.hpp | aravindsiv/ML4KP | 064015a7545e1713cbcad3e79807b5cec0849f54 | [
"MIT"
] | 3 | 2021-05-31T11:28:03.000Z | 2021-05-31T13:49:30.000Z | src/pyprx/utilities/spaces/space_py.hpp | aravindsiv/ML4KP | 064015a7545e1713cbcad3e79807b5cec0849f54 | [
"MIT"
] | 1 | 2021-09-03T09:39:32.000Z | 2021-12-10T22:17:56.000Z | src/pyprx/utilities/spaces/space_py.hpp | aravindsiv/ML4KP | 064015a7545e1713cbcad3e79807b5cec0849f54 | [
"MIT"
] | 2 | 2021-09-03T09:17:45.000Z | 2021-10-04T15:52:58.000Z | #include <iostream>
#include <boost/python.hpp>
#include <boost/python/copy_const_reference.hpp>
#include <boost/python/return_value_policy.hpp>
#include "prx/utilities/spaces/space.hpp"
// #include "prx/simulation/plants/two_link_acrobot.hpp"
// #include "prx/simulation/plant.hpp"
using namespace boost::python;
in... | 41.45 | 168 | 0.666552 | aravindsiv |
e33a75ec8cce99e873e1abb44118b03437549e92 | 2,232 | hpp | C++ | bootloader/bootloader32/src/Bootloader32.hpp | Rzuwik/FunnyOS | a93a45babf575d08cf2704a8394ac1455f3ad4db | [
"MIT"
] | null | null | null | bootloader/bootloader32/src/Bootloader32.hpp | Rzuwik/FunnyOS | a93a45babf575d08cf2704a8394ac1455f3ad4db | [
"MIT"
] | null | null | null | bootloader/bootloader32/src/Bootloader32.hpp | Rzuwik/FunnyOS | a93a45babf575d08cf2704a8394ac1455f3ad4db | [
"MIT"
] | null | null | null | #ifndef FUNNYOS_BOOTLOADER_BOOTLOADER32_SRC_BOOTLOADER32_HPP
#define FUNNYOS_BOOTLOADER_BOOTLOADER32_SRC_BOOTLOADER32_HPP
#include <FunnyOS/Bootparams/Parameters.hpp>
#include <FunnyOS/Misc/MemoryAllocator/StaticMemoryAllocator.hpp>
namespace FunnyOS::Bootloader32 {
/**
* 32-bit implementation of Bootloader... | 30.575342 | 111 | 0.625448 | Rzuwik |
e34283713e63805eb7842b2bfc5a72bab85d211a | 819 | cpp | C++ | src/array19.lib/array19/Array.test.cpp | Fettpet/co-cpp19 | 928a835c4f66032aa88ce01df7899da86d37df22 | [
"MIT"
] | 8 | 2020-05-31T16:13:13.000Z | 2022-01-12T08:52:42.000Z | src/array19.lib/array19/Array.test.cpp | Fettpet/co-cpp19 | 928a835c4f66032aa88ce01df7899da86d37df22 | [
"MIT"
] | null | null | null | src/array19.lib/array19/Array.test.cpp | Fettpet/co-cpp19 | 928a835c4f66032aa88ce01df7899da86d37df22 | [
"MIT"
] | 2 | 2020-07-21T10:58:28.000Z | 2021-07-26T06:52:05.000Z | #include "Array.h"
using namespace array19;
void constexpr_Array_test() {
constexpr auto a = Array{1, 2, 3};
static_assert(a.count == 3);
static_assert(a[1] == 2);
constexpr auto s = [&] {
auto s = 0;
for (auto v : a) s += v;
return s;
}();
static_asser... | 19.5 | 41 | 0.481074 | Fettpet |
e34313b102e444a8e0b1c760606586592d5d38a7 | 2,227 | cpp | C++ | Server/src/orm/QueryBuilder.cpp | Vyraax/Linguini | f89ba9d030fea289347d9c99758231c86e3dbec0 | [
"MIT"
] | 3 | 2021-04-19T20:38:54.000Z | 2021-09-13T12:17:35.000Z | Server/src/orm/QueryBuilder.cpp | Vyraax/Linguini | f89ba9d030fea289347d9c99758231c86e3dbec0 | [
"MIT"
] | null | null | null | Server/src/orm/QueryBuilder.cpp | Vyraax/Linguini | f89ba9d030fea289347d9c99758231c86e3dbec0 | [
"MIT"
] | 1 | 2021-09-13T12:17:36.000Z | 2021-09-13T12:17:36.000Z | #include "QueryBuilder.h"
#include "../application/Model.h"
std::string QueryBuilder::createTable(Model* model)
{
std::string str = "CREATE TABLE IF NOT EXISTS " + Utils::upper(model->name) + " (\n";
std::vector<std::string> fields;
for (auto field : model->schema)
{
std::string out = " `" + field.name + '`';
... | 21.209524 | 115 | 0.5815 | Vyraax |
e34354ea40541f841beec5f72f7cbe0833cc1773 | 807 | hpp | C++ | include/disccord/rest/models/create_dm_channel_args.hpp | FiniteReality/disccord | 1b89cde8031a1d6f9d43fa8f39dbc0959c8639ff | [
"MIT"
] | 44 | 2016-09-19T15:28:25.000Z | 2018-08-09T13:17:40.000Z | include/disccord/rest/models/create_dm_channel_args.hpp | FiniteReality/disccord | 1b89cde8031a1d6f9d43fa8f39dbc0959c8639ff | [
"MIT"
] | 44 | 2016-11-03T17:27:30.000Z | 2017-12-10T16:17:31.000Z | include/disccord/rest/models/create_dm_channel_args.hpp | FiniteReality/disccord | 1b89cde8031a1d6f9d43fa8f39dbc0959c8639ff | [
"MIT"
] | 13 | 2016-11-01T00:17:20.000Z | 2018-08-03T19:51:16.000Z | #ifndef _create_dm_channel_args_hpp_
#define _create_dm_channel_args_hpp_
#include <disccord/models/model.hpp>
namespace disccord
{
namespace rest
{
namespace models
{
class create_dm_channel_args : public disccord::models::model
{
public:
... | 24.454545 | 79 | 0.536555 | FiniteReality |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.