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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
b38ccf128d443e4068965a90fc79f744eb360371 | 1,409 | cpp | C++ | src/contract/Data.cpp | pestotoast/mmx-node | eb9e27aa077c111e814c62cc5b716c4957eac09e | [
"Apache-2.0"
] | 2 | 2022-01-12T02:00:10.000Z | 2022-02-05T03:59:43.000Z | src/contract/Data.cpp | pestotoast/mmx-node | eb9e27aa077c111e814c62cc5b716c4957eac09e | [
"Apache-2.0"
] | null | null | null | src/contract/Data.cpp | pestotoast/mmx-node | eb9e27aa077c111e814c62cc5b716c4957eac09e | [
"Apache-2.0"
] | null | null | null | /*
* Data.cpp
*
* Created on: Jan 19, 2022
* Author: mad
*/
#include <mmx/contract/Data.hxx>
#include <mmx/write_bytes.h>
namespace mmx {
namespace contract {
hash_t Data::calc_hash() const
{
std::vector<uint8_t> buffer;
vnx::VectorOutputStream stream(&buffer);
vnx::OutputBuffer out(&stream);
write_... | 18.298701 | 126 | 0.682754 | pestotoast |
b38f32236bf0a3cece67f7e108e6e7721cff7281 | 132,716 | cc | C++ | libgav1/src/dsp/x86/loop_restoration_10bit_avx2.cc | P-404/android_external_libgav1 | 4e6f3403a267fc31f9a6fa85683f824fb8b15bd8 | [
"Apache-2.0"
] | null | null | null | libgav1/src/dsp/x86/loop_restoration_10bit_avx2.cc | P-404/android_external_libgav1 | 4e6f3403a267fc31f9a6fa85683f824fb8b15bd8 | [
"Apache-2.0"
] | null | null | null | libgav1/src/dsp/x86/loop_restoration_10bit_avx2.cc | P-404/android_external_libgav1 | 4e6f3403a267fc31f9a6fa85683f824fb8b15bd8 | [
"Apache-2.0"
] | null | null | null | // Copyright 2020 The libgav1 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 agre... | 42.025332 | 80 | 0.632335 | P-404 |
b393c0652240bdc03fc3ce5f55bbfff84e879e37 | 3,679 | hpp | C++ | Include/xsim/xsim.hpp | raving-bots/expansim-sdk | 22f5c794523abbe9c27688963b607b13671ff118 | [
"BSL-1.0"
] | 1 | 2020-01-17T14:10:22.000Z | 2020-01-17T14:10:22.000Z | Include/xsim/xsim.hpp | raving-bots/expansim-sdk | 22f5c794523abbe9c27688963b607b13671ff118 | [
"BSL-1.0"
] | null | null | null | Include/xsim/xsim.hpp | raving-bots/expansim-sdk | 22f5c794523abbe9c27688963b607b13671ff118 | [
"BSL-1.0"
] | null | null | null | // Copyright Raving Bots 2018-2020
//
// Distributed under the Boost Software License, Version 1.0.
// (See accompanying file SDK-LICENSE or copy at https://www.boost.org/LICENSE_1_0.txt)
#pragma once
#include <string>
#include <unordered_map>
#include <tuple>
#include <functional>
#include <yymp/typelis... | 24.045752 | 119 | 0.650177 | raving-bots |
b394f91427c5e81209e4319d9cd100da0bcf9e78 | 3,053 | hpp | C++ | experimental/vector_implementation/vector.hpp | jamesjallorina/Data_Structures_And_Algorithm_Analysis_in_CPP | 1162eae63ef894419d5e806541129adf73817130 | [
"MIT"
] | 3 | 2019-07-07T17:24:46.000Z | 2020-03-15T23:21:39.000Z | experimental/vector_implementation/vector.hpp | jamesjallorina/Data_Structures_And_Algorithm_Analysis_in_CPP | 1162eae63ef894419d5e806541129adf73817130 | [
"MIT"
] | null | null | null | experimental/vector_implementation/vector.hpp | jamesjallorina/Data_Structures_And_Algorithm_Analysis_in_CPP | 1162eae63ef894419d5e806541129adf73817130 | [
"MIT"
] | null | null | null | #ifndef EXPERIMENTAL_VECTOR_IMPLEMENTATION_VECTOR_HPP
#define EXPERIMENTAL_VECTOR_IMPLEMENTATION_VECTOR_HPP
#include <algorithm>
namespace experimental {
namespace vector_implementation
{
template <typename Object>
class vector
{
public:
explicit vector ( int initSize = 0 ) : theSize{ initSize },
... | 22.123188 | 64 | 0.585981 | jamesjallorina |
b395fbb7d4c67e25a8f6a19a3f643bf92223765c | 9,692 | cpp | C++ | DFNs/Registration3D/IcpCC.cpp | H2020-InFuse/cdff | e55fd48f9a909d0c274c3dfa4fe2704bc5071542 | [
"BSD-2-Clause"
] | 7 | 2019-02-26T15:09:50.000Z | 2021-09-30T07:39:01.000Z | DFNs/Registration3D/IcpCC.cpp | H2020-InFuse/cdff | e55fd48f9a909d0c274c3dfa4fe2704bc5071542 | [
"BSD-2-Clause"
] | null | null | null | DFNs/Registration3D/IcpCC.cpp | H2020-InFuse/cdff | e55fd48f9a909d0c274c3dfa4fe2704bc5071542 | [
"BSD-2-Clause"
] | 1 | 2020-12-06T12:09:05.000Z | 2020-12-06T12:09:05.000Z | /**
* @author Alessandro Bianco
*/
/**
* @addtogroup DFNs
* @{
*/
#include "IcpCC.hpp"
#include <Converters/PointCloudToPclPointCloudConverter.hpp>
#include <Macros/YamlcppMacros.hpp>
#include <Errors/Assert.hpp>
#include <pcl/registration/icp.h>
#include <yaml-cpp/yaml.h>
#include <cloudcompare-core/PointClou... | 36.02974 | 182 | 0.78343 | H2020-InFuse |
b397aaa9154a2bd8607974b463d6a39b7ad4a395 | 52 | hpp | C++ | include/tools/miniz.hpp | turgu1/ESP-IDF-Inkplate | 35840f1cbc73a155bbdd902ea78b78baa2257214 | [
"BSD-2-Clause"
] | 5 | 2021-02-10T15:01:14.000Z | 2022-03-08T00:43:43.000Z | include/tools/miniz.hpp | turgu1/ESP-IDF-Inkplate | 35840f1cbc73a155bbdd902ea78b78baa2257214 | [
"BSD-2-Clause"
] | 6 | 2021-03-02T16:36:38.000Z | 2022-01-14T19:40:53.000Z | include/tools/miniz.hpp | turgu1/ESP-IDF-Inkplate | 35840f1cbc73a155bbdd902ea78b78baa2257214 | [
"BSD-2-Clause"
] | 3 | 2021-01-28T08:04:13.000Z | 2021-08-12T23:33:33.000Z | #define MINIZ_HEADER_FILE_ONLY
#include "miniz.cpp"
| 17.333333 | 30 | 0.826923 | turgu1 |
b3a725bbdf3f0fa6de92e4559ce92656326f8842 | 1,039 | cpp | C++ | Chapter_4_Mathematical_Logical_Bitwise_and_Shift_Operators/Program16.cpp | othneildrew/CPP-Programming-Practices | 27a20c00b395446a7d2e0dd4b199f4cd9e35591b | [
"MIT"
] | 1 | 2020-12-03T15:26:20.000Z | 2020-12-03T15:26:20.000Z | Chapter_4_Mathematical_Logical_Bitwise_and_Shift_Operators/Program16.cpp | othneildrew/CPP-Programming-Practices | 27a20c00b395446a7d2e0dd4b199f4cd9e35591b | [
"MIT"
] | null | null | null | Chapter_4_Mathematical_Logical_Bitwise_and_Shift_Operators/Program16.cpp | othneildrew/CPP-Programming-Practices | 27a20c00b395446a7d2e0dd4b199f4cd9e35591b | [
"MIT"
] | null | null | null | // Chapter 4: Program 16
/***
Write a C++ program to read two numbers. Perform AND operation and O
operations on two numbers. Perform NOT operation on first number. Declare AND,
OR, and NOT varables type of short int.
**/
# include <iostream>
# include <math.h>
# include <string>
using namespace std;
int main(void)... | 27.342105 | 78 | 0.628489 | othneildrew |
b3ac2f9b3e5db409e3f5a69f12140ca1e3bd9c92 | 679 | hpp | C++ | code/src/utility/profiling.hpp | shossjer/fimbulwinter | d894e4bddb5d2e6dc31a8112d245c6a1828604e3 | [
"0BSD"
] | 3 | 2020-04-29T14:55:58.000Z | 2020-08-20T08:43:24.000Z | code/src/utility/profiling.hpp | shossjer/fimbulwinter | d894e4bddb5d2e6dc31a8112d245c6a1828604e3 | [
"0BSD"
] | 1 | 2022-03-12T11:37:46.000Z | 2022-03-12T20:17:38.000Z | code/src/utility/profiling.hpp | shossjer/fimbulwinter | d894e4bddb5d2e6dc31a8112d245c6a1828604e3 | [
"0BSD"
] | null | null | null | #pragma once
#if PROFILING_COZ
# include <coz.h>
#endif
namespace utility
{
namespace detail
{
#if PROFILING_COZ
struct CallWhenDestroyed
{
void (* func)();
~CallWhenDestroyed()
{
func();
}
explicit CallWhenDestroyed(void (* func)())
: func(func)
{}
};
#endif
}
}
#if PROFILING_CO... | 16.975 | 115 | 0.683358 | shossjer |
b3aca3444df7f5d0b8d4bcd29d666b52a6bc78c7 | 3,494 | cc | C++ | src/client/main.cc | sensssz/SQPKV | 828f2afec14db104f090ae2b4ed4729b97d3d9b6 | [
"Apache-2.0"
] | 1 | 2020-06-15T10:35:20.000Z | 2020-06-15T10:35:20.000Z | src/client/main.cc | sensssz/SQPKV | 828f2afec14db104f090ae2b4ed4729b97d3d9b6 | [
"Apache-2.0"
] | null | null | null | src/client/main.cc | sensssz/SQPKV | 828f2afec14db104f090ae2b4ed4729b97d3d9b6 | [
"Apache-2.0"
] | null | null | null | #include "sqpkv/connection.h"
#include "gflags/gflags.h"
#include "spdlog/spdlog.h"
#include <algorithm>
#include <iostream>
#include <string>
#include <sstream>
#include <cstdio>
DEFINE_string(server_addr, "127.0.0.1", "Address of the server");
DEFINE_int32(port, 4242, "Port number of the server");
void Show(std:... | 27.296875 | 80 | 0.571551 | sensssz |
b3ad496d60706b021245241f40308af7a2dde686 | 773 | cpp | C++ | 2DProject2ndYear/RigidBody.cpp | ryan0432/AIE_PhysicsBS | 0ed7181b2e0624174e28dfa7b2035f8f1e597198 | [
"MIT"
] | null | null | null | 2DProject2ndYear/RigidBody.cpp | ryan0432/AIE_PhysicsBS | 0ed7181b2e0624174e28dfa7b2035f8f1e597198 | [
"MIT"
] | null | null | null | 2DProject2ndYear/RigidBody.cpp | ryan0432/AIE_PhysicsBS | 0ed7181b2e0624174e28dfa7b2035f8f1e597198 | [
"MIT"
] | null | null | null | #include "Rigidbody.h"
#include <iostream>
Rigidbody::Rigidbody(ShapeType shapeID, glm::vec2 position, glm::vec2 velocity,
float rotation, float mass) : PhysicsObject(shapeID)
{
m_position = position;
m_velocity = velocity;
m_mass = mass;
m_rotation = rotation;
}
void Rigidbody::fixedUpdate(glm::vec2 gravity, fl... | 20.891892 | 79 | 0.711514 | ryan0432 |
a2a8849c07fcadb5b1dda577dfc2643c3fec2f07 | 4,398 | cpp | C++ | src/Leviathan_Editor/Leviathan_Editor.cpp | wakare/Leviathan | 8a488f014d6235c5c6e6422c9f53c82635b7ebf7 | [
"MIT"
] | 3 | 2019-03-05T13:05:30.000Z | 2019-12-16T05:56:21.000Z | src/Leviathan_Editor/Leviathan_Editor.cpp | wakare/Leviathan | 8a488f014d6235c5c6e6422c9f53c82635b7ebf7 | [
"MIT"
] | null | null | null | src/Leviathan_Editor/Leviathan_Editor.cpp | wakare/Leviathan | 8a488f014d6235c5c6e6422c9f53c82635b7ebf7 | [
"MIT"
] | null | null | null | #include "Leviathan_Editor.h"
#include <thread>
#include <QLabel>
#include <QLayout>
#include <QLineEdit>
#include <QSplitter>
#include <QSizePolicy>
#include "LevScene.h"
#include "LevAttributeWidget.h"
Leviathan_Editor::Leviathan_Editor(QWidget *parent)
: QMainWindow(parent)
{
ui.setupUi(this);
bool seted = _s... | 22.553846 | 101 | 0.75648 | wakare |
a2a8db066a24c9703388246c07a9656f7ca23c20 | 3,544 | cpp | C++ | nmpc_controller/test/test_nmpc_controller.cpp | robomechanics/quad-software | 89154df18e98162249f38301b669df27ee595220 | [
"MIT"
] | 20 | 2021-12-05T03:40:28.000Z | 2022-03-30T02:53:56.000Z | nmpc_controller/test/test_nmpc_controller.cpp | robomechanics/rml-spirit-firmware | 89154df18e98162249f38301b669df27ee595220 | [
"MIT"
] | 45 | 2021-12-06T12:45:05.000Z | 2022-03-31T22:15:47.000Z | nmpc_controller/test/test_nmpc_controller.cpp | robomechanics/rml-spirit-firmware | 89154df18e98162249f38301b669df27ee595220 | [
"MIT"
] | 2 | 2021-12-06T03:20:15.000Z | 2022-02-20T04:19:41.000Z | #include <gtest/gtest.h>
#include <ros/ros.h>
#include <chrono>
#include "nmpc_controller/nmpc_controller.h"
TEST(NMPCTest, testNMPCController) {
ros::NodeHandle nh;
const int robot_id_ = 0;
int N_;
double dt_;
ros::param::get("/local_planner/horizon_length", N_);
ros::param::get("/local_planner/timestep... | 31.087719 | 80 | 0.642212 | robomechanics |
a2ab09cce7e03cbb35a3257ee378bde0b4543c79 | 3,107 | cpp | C++ | Effects/Tools/CVarActivationSystem.cpp | IvarJonsson/Project-Unknown | 4675b41bbb5e90135c7bf3aded2c2e262b50f351 | [
"BSL-1.0"
] | null | null | null | Effects/Tools/CVarActivationSystem.cpp | IvarJonsson/Project-Unknown | 4675b41bbb5e90135c7bf3aded2c2e262b50f351 | [
"BSL-1.0"
] | null | null | null | Effects/Tools/CVarActivationSystem.cpp | IvarJonsson/Project-Unknown | 4675b41bbb5e90135c7bf3aded2c2e262b50f351 | [
"BSL-1.0"
] | null | null | null | // Copyright 2001-2016 Crytek GmbH / Crytek Group. All rights reserved.
// Simple data driven system to activate cvars.
// Includes
#include "StdAfx.h"
#include "CVarActivationSystem.h"
#include "IItemSystem.h"
#include "Effects/GameEffectsSystem.h"
//-----------------------------------------------------------------... | 34.910112 | 100 | 0.429675 | IvarJonsson |
a2aea435a00c9958982569042c2b3a366c8dec1e | 36,981 | hh | C++ | cc/json-importer.hh | acorg/acmacs-base | a1a6e5b346ea3746f3fc1750ed4b7f29c7c0d049 | [
"MIT"
] | null | null | null | cc/json-importer.hh | acorg/acmacs-base | a1a6e5b346ea3746f3fc1750ed4b7f29c7c0d049 | [
"MIT"
] | null | null | null | cc/json-importer.hh | acorg/acmacs-base | a1a6e5b346ea3746f3fc1750ed4b7f29c7c0d049 | [
"MIT"
] | null | null | null | #pragma once
#error Obsolete, use rjson
#include <string>
#include <vector>
#include <map>
#include <stack>
#include <typeinfo>
#include <functional>
#include <iostream>
#include <memory>
#include "acmacs-base/rapidjson.hh"
// ----------------------------------------------------------------------
namespace json_im... | 44.235646 | 237 | 0.499419 | acorg |
a2af95919e3fffef582d72c7dacfbb8c82e25db2 | 3,237 | cpp | C++ | day/day_7/main.cpp | moki/aoc2020 | 6eaaaac14aa8a63aea8a6e462be4aa00b5ed385b | [
"BSD-3-Clause"
] | null | null | null | day/day_7/main.cpp | moki/aoc2020 | 6eaaaac14aa8a63aea8a6e462be4aa00b5ed385b | [
"BSD-3-Clause"
] | null | null | null | day/day_7/main.cpp | moki/aoc2020 | 6eaaaac14aa8a63aea8a6e462be4aa00b5ed385b | [
"BSD-3-Clause"
] | null | null | null | #include <algorithm>
#include <deque>
#include <fstream>
#include <iostream>
#include <unordered_map>
#include <vector>
typedef std::pair<std::string, size_t> bag;
constexpr char *delimeter = const_cast<char *>(" bag");
std::vector<bag>
parse_rule(std::string & line) {
size_t pos = 0;
bool first = tr... | 29.162162 | 78 | 0.416435 | moki |
a2b18846e34ac88590c98cf8ad3c6fb2236afccb | 232 | cpp | C++ | Source/JavascriptUMG/JavascriptMenuContext.cpp | keicoon/Unreal.js-core | 2d1ee2f909406cc778273590c1e2c2d3eb72c74a | [
"BSD-3-Clause"
] | 1 | 2021-12-30T17:12:48.000Z | 2021-12-30T17:12:48.000Z | Source/JavascriptUMG/JavascriptMenuContext.cpp | keicoon/Unreal.js-core | 2d1ee2f909406cc778273590c1e2c2d3eb72c74a | [
"BSD-3-Clause"
] | null | null | null | Source/JavascriptUMG/JavascriptMenuContext.cpp | keicoon/Unreal.js-core | 2d1ee2f909406cc778273590c1e2c2d3eb72c74a | [
"BSD-3-Clause"
] | null | null | null | #include "JavascriptMenuContext.h"
bool UJavascriptMenuContext::Public_CanExecute()
{
return OnCanExecute.IsBound() ? OnCanExecute.Execute() : true;
}
void UJavascriptMenuContext::Public_Execute()
{
OnExecute.ExecuteIfBound();
} | 21.090909 | 63 | 0.788793 | keicoon |
a2b7cee28bc2f4d79b96181d36bfaf70ea2d789f | 2,050 | hpp | C++ | contrib/autoboost/autoboost/preprocessor/seq/cat.hpp | CaseyCarter/autowiring | 48e95a71308318c8ffb7ed1348e034fd9110f70c | [
"Apache-2.0"
] | 87 | 2015-01-18T00:43:06.000Z | 2022-02-11T17:40:50.000Z | contrib/autoboost/autoboost/preprocessor/seq/cat.hpp | CaseyCarter/autowiring | 48e95a71308318c8ffb7ed1348e034fd9110f70c | [
"Apache-2.0"
] | 274 | 2015-01-03T04:50:49.000Z | 2021-03-08T09:01:09.000Z | contrib/autoboost/autoboost/preprocessor/seq/cat.hpp | CaseyCarter/autowiring | 48e95a71308318c8ffb7ed1348e034fd9110f70c | [
"Apache-2.0"
] | 15 | 2015-09-30T20:58:43.000Z | 2020-12-19T21:24:56.000Z | # /* **************************************************************************
# * *
# * (C) Copyright Paul Mensonides 2002.
# * Distributed under the Boost Software License, Version 1.0. (See
# * accompanying file LICENSE_1_0.txt... | 41 | 156 | 0.628293 | CaseyCarter |
a2bdd69ffc8253373656cc6a59da5a138a5d3a58 | 3,233 | hpp | C++ | include/LIV/SDK/Unity/TEXTURE_COLOR_SPACE.hpp | RedBrumbler/virtuoso-codegen | e83f6f0f9b47bec4b6dd976b21edc1d46bf3cfe3 | [
"Unlicense"
] | null | null | null | include/LIV/SDK/Unity/TEXTURE_COLOR_SPACE.hpp | RedBrumbler/virtuoso-codegen | e83f6f0f9b47bec4b6dd976b21edc1d46bf3cfe3 | [
"Unlicense"
] | null | null | null | include/LIV/SDK/Unity/TEXTURE_COLOR_SPACE.hpp | RedBrumbler/virtuoso-codegen | e83f6f0f9b47bec4b6dd976b21edc1d46bf3cfe3 | [
"Unlicense"
] | null | null | null | // Autogenerated from CppHeaderCreator
// Created by Sc2ad
// =========================================================================
#pragma once
// Begin includes
#include "beatsaber-hook/shared/utils/typedefs.h"
#include "beatsaber-hook/shared/utils/byref.hpp"
// Including type: System.Enum
#include "System/Enum.h... | 46.185714 | 112 | 0.72193 | RedBrumbler |
a2c13609a84ada4859b763fa0ef94b36240730aa | 553 | cpp | C++ | PharmacySystem/Purchase.cpp | ismaeelvaris/PharmacySystem | 940ab00dd3a26db467e34142eb2e4028a509b723 | [
"MIT"
] | 1 | 2018-04-25T18:05:07.000Z | 2018-04-25T18:05:07.000Z | PharmacySystem/Purchase.cpp | ismaeelvaris/PharmacySystem | 940ab00dd3a26db467e34142eb2e4028a509b723 | [
"MIT"
] | null | null | null | PharmacySystem/Purchase.cpp | ismaeelvaris/PharmacySystem | 940ab00dd3a26db467e34142eb2e4028a509b723 | [
"MIT"
] | null | null | null | #pragma once
#include <iostream>
#include <string>
using namespace std;
struct Purchase {
public:
Purchase(int prescriptionId, int itemId, int quantity, int salePrice) {
this->prescriptionId = prescriptionId;
this->itemId = itemId;
this->quantity = quantity;
this->salePrice = salePrice;
}
int getPrescript... | 19.068966 | 72 | 0.723327 | ismaeelvaris |
a2c23e86007dcdf743c2c93d7fcda24247ae0568 | 3,785 | cpp | C++ | Code Chef/Iron, Magnet and Wall.cpp | akashmodak97/Competitive-Coding-and-Interview-Problems | a34fcb50378cf4bf4e5fd34e910eb68a1c05c066 | [
"MIT"
] | 51 | 2020-02-24T11:14:00.000Z | 2022-03-24T09:32:18.000Z | Code Chef/Iron, Magnet and Wall.cpp | akashmodak97/Competitive-Coding-and-Interview-Problems | a34fcb50378cf4bf4e5fd34e910eb68a1c05c066 | [
"MIT"
] | 3 | 2020-10-02T08:16:09.000Z | 2021-04-17T16:32:38.000Z | Code Chef/Iron, Magnet and Wall.cpp | akashmodak97/Competitive-Coding-and-Interview-Problems | a34fcb50378cf4bf4e5fd34e910eb68a1c05c066 | [
"MIT"
] | 18 | 2020-04-24T15:33:36.000Z | 2022-03-24T09:32:20.000Z | /* Code Chef */
/* Title - Iron, Magnet and Wall */
/* Created By - Akash Modak */
/* Date - 26/12/2020 */
// Chef loves to play with iron (Fe) and magnets (Ma). He took a row of N cells (numbered 1 through N) and placed some objects in some of these cells. You are given a string S with length N describing them; ... | 38.622449 | 358 | 0.529458 | akashmodak97 |
a2c3f83e25469243923c5bf9fc73de2f0899c3f3 | 2,494 | hpp | C++ | openstudiocore/src/model/ModelObjectList.hpp | bobzabcik/OpenStudio | 858321dc0ad8d572de15858d2ae487b029a8d847 | [
"blessing"
] | null | null | null | openstudiocore/src/model/ModelObjectList.hpp | bobzabcik/OpenStudio | 858321dc0ad8d572de15858d2ae487b029a8d847 | [
"blessing"
] | null | null | null | openstudiocore/src/model/ModelObjectList.hpp | bobzabcik/OpenStudio | 858321dc0ad8d572de15858d2ae487b029a8d847 | [
"blessing"
] | null | null | null | /**********************************************************************
* Copyright (c) 2008-2013, Alliance for Sustainable Energy.
* All rights reserved.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by t... | 28.666667 | 98 | 0.709703 | bobzabcik |
a2c447a7acd7c74cdf2cf2d09f451b5b5c43a410 | 32,824 | cpp | C++ | DeviceCode/pal/PKCS11/Tokens/OpenSSL/OpenSSL_PKCS11_objects.cpp | PervasiveDigital/netmf-interpreter | 03d84fe76e0b666ebec62d17d69c55c45940bc40 | [
"Apache-2.0"
] | 529 | 2015-03-10T00:17:45.000Z | 2022-03-17T02:21:19.000Z | DeviceCode/pal/PKCS11/Tokens/OpenSSL/OpenSSL_PKCS11_objects.cpp | PervasiveDigital/netmf-interpreter | 03d84fe76e0b666ebec62d17d69c55c45940bc40 | [
"Apache-2.0"
] | 495 | 2015-03-10T22:02:46.000Z | 2019-05-16T13:05:00.000Z | DeviceCode/pal/PKCS11/Tokens/OpenSSL/OpenSSL_PKCS11_objects.cpp | PervasiveDigital/netmf-interpreter | 03d84fe76e0b666ebec62d17d69c55c45940bc40 | [
"Apache-2.0"
] | 332 | 2015-03-10T08:04:36.000Z | 2022-03-29T04:18:36.000Z | #include "OpenSSL_pkcs11.h"
#include <PEM\pem.h>
#include <PKCS12\pkcs12.h>
#include <TinyCLR\ssl_functions.h>
OBJECT_DATA PKCS11_Objects_OpenSSL::s_Objects[];
void PKCS11_Objects_OpenSSL::IntitializeObjects()
{
memset(PKCS11_Objects_OpenSSL::s_Objects, 0, sizeof(PKCS11_Objects_OpenSSL::s_Objects));
}... | 34.085151 | 186 | 0.443486 | PervasiveDigital |
a2c9a23508b58bc55999787bef84c073718a6d0a | 404 | cpp | C++ | src/datatype.cpp | BergerZvika/smt-switch | c65dc8529c81b04443807147da2c5cebdccf216d | [
"BSD-3-Clause"
] | 49 | 2018-02-20T12:47:28.000Z | 2021-08-14T17:06:19.000Z | src/datatype.cpp | BergerZvika/smt-switch | c65dc8529c81b04443807147da2c5cebdccf216d | [
"BSD-3-Clause"
] | 117 | 2017-06-30T18:26:02.000Z | 2021-08-17T19:50:18.000Z | src/datatype.cpp | BergerZvika/smt-switch | c65dc8529c81b04443807147da2c5cebdccf216d | [
"BSD-3-Clause"
] | 21 | 2019-10-10T22:22:03.000Z | 2021-07-22T14:15:10.000Z | #include "datatype.h"
namespace smt {
// Overloaded operators simply call the constructors' comparison functions
bool operator==(const DatatypeConstructorDecl & d1,
const DatatypeConstructorDecl & d2)
{
return d1->compare(d2);
}
bool operator!=(const DatatypeConstructorDecl & d1,
cons... | 23.764706 | 74 | 0.695545 | BergerZvika |
a2c9d1f01f2381e62d83070eac23d802a34f568e | 2,122 | cpp | C++ | backup/2/interviewbit/c++/pretty-json.cpp | yangyanzhan/code-camp | 4272564e916fc230a4a488f92ae32c07d355dee0 | [
"Apache-2.0"
] | 21 | 2019-11-16T19:08:35.000Z | 2021-11-12T12:26:01.000Z | backup/2/interviewbit/c++/pretty-json.cpp | yangyanzhan/code-camp | 4272564e916fc230a4a488f92ae32c07d355dee0 | [
"Apache-2.0"
] | 1 | 2022-02-04T16:02:53.000Z | 2022-02-04T16:02:53.000Z | backup/2/interviewbit/c++/pretty-json.cpp | yangyanzhan/code-camp | 4272564e916fc230a4a488f92ae32c07d355dee0 | [
"Apache-2.0"
] | 4 | 2020-05-15T19:39:41.000Z | 2021-10-30T06:40:31.000Z | // Hi, I'm Yanzhan. For more algothmic problems, visit my Youtube Channel (Yanzhan Yang's Youtube Channel) : https://www.youtube.com/channel/UCDkz-__gl3frqLexukpG0DA?view_as=subscriber or my Twitter Account (Yanzhan Yang's Twitter) : https://twitter.com/YangYanzhan or my GitHub HomePage (Yanzhan Yang's GitHub HomePage)... | 30.753623 | 345 | 0.48115 | yangyanzhan |
a2cc68bb94ff35f052fcee5cc345f80efed3d234 | 14,064 | cpp | C++ | src/obstruction_free_dictionary.cpp | cconklin/nonblocking-tables | 82acacbb16342ad36156931b9969674d85114d21 | [
"MIT"
] | null | null | null | src/obstruction_free_dictionary.cpp | cconklin/nonblocking-tables | 82acacbb16342ad36156931b9969674d85114d21 | [
"MIT"
] | null | null | null | src/obstruction_free_dictionary.cpp | cconklin/nonblocking-tables | 82acacbb16342ad36156931b9969674d85114d21 | [
"MIT"
] | null | null | null | #include <obstruction_free_dictionary.hpp>
namespace nonblocking
{
template<> versioned<obstruction_free_dictionary::bucket_state>::versioned(unsigned int version, obstruction_free_dictionary::bucket_state value) : _version{version}
{
switch (value)
{
case obstruction_free_dictiona... | 46.88 | 309 | 0.539676 | cconklin |
a2d06373c54b5876208d9a6ef81c7f4ae347e232 | 1,944 | cpp | C++ | algoritma-dan-struktur-data/linked_list.cpp | kodeaqua/script-praktikum | 807000b053ff2e0765ee28f7a5decb676131238d | [
"MIT"
] | 3 | 2021-12-25T06:08:42.000Z | 2022-01-04T01:22:45.000Z | algoritma-dan-struktur-data/linked_list.cpp | kodeaqua/script-praktikum | 807000b053ff2e0765ee28f7a5decb676131238d | [
"MIT"
] | 3 | 2022-01-04T05:09:06.000Z | 2022-03-10T07:33:41.000Z | algoritma-dan-struktur-data/linked_list.cpp | kodeaqua/script-praktikum | 807000b053ff2e0765ee28f7a5decb676131238d | [
"MIT"
] | 12 | 2021-12-04T12:28:41.000Z | 2022-03-31T02:29:21.000Z | /*
Praktikum Struktur Data
Laboratorium Komputer
Universitas Pakuan
2022
*/
#include <iostream>
using namespace std;
struct Node {
string nama;
Node* next;
};
void print(Node* head) {
while (head != NULL) {
cout << head->nama << "->";
head = head->next;
}
cout << endl << endl;
}
int main... | 20.25 | 65 | 0.618827 | kodeaqua |
a2d2627dae9849dea59e2d46467e2478af70ee31 | 1,589 | cc | C++ | src/orthog/CLP.cc | baklanovp/libdetran | 820efab9d03ae425ccefb9520bdb6c086fdbf939 | [
"MIT"
] | 4 | 2015-03-07T16:20:23.000Z | 2020-02-10T13:40:16.000Z | src/orthog/CLP.cc | baklanovp/libdetran | 820efab9d03ae425ccefb9520bdb6c086fdbf939 | [
"MIT"
] | 3 | 2018-02-27T21:24:22.000Z | 2020-12-16T00:56:44.000Z | src/orthog/CLP.cc | baklanovp/libdetran | 820efab9d03ae425ccefb9520bdb6c086fdbf939 | [
"MIT"
] | 9 | 2015-03-07T16:20:26.000Z | 2022-01-29T00:14:23.000Z | //----------------------------------*-C++-*-----------------------------------//
/**
* @file CLP.cc
* @brief CLP member definitions
* @note Copyright (C) 2013 Jeremy Roberts
*/
//----------------------------------------------------------------------------//
#include "CLP.hh"
#include "utilities/DBC.hh"
#ifdef... | 26.04918 | 80 | 0.458779 | baklanovp |
a2d287905820c7c2c0439ca043d8006003de8419 | 4,004 | cpp | C++ | RoiSelector/RoiSelector.cpp | valerydol/drone_vision | ecb4ea9c17159c7cf72d1f3ab8b1ee9bf2adda71 | [
"MIT"
] | 3 | 2019-11-19T13:50:18.000Z | 2020-01-15T11:50:22.000Z | RoiSelector/RoiSelector.cpp | valerydol/drone_vision | ecb4ea9c17159c7cf72d1f3ab8b1ee9bf2adda71 | [
"MIT"
] | null | null | null | RoiSelector/RoiSelector.cpp | valerydol/drone_vision | ecb4ea9c17159c7cf72d1f3ab8b1ee9bf2adda71 | [
"MIT"
] | null | null | null | #include "RoiSelector.h"
RoiSelector::RoiSelector(float _offset_roi_x, float _offset_roi_y, float _width_roi_x, float _height_roi_y, bool _isEmptyFlag)
: offset_roi_x(_offset_roi_x), offset_roi_y(_offset_roi_y), width_roi_x(_width_roi_x), height_roi_y(_height_roi_y), isEmptyFlag(true), roiNotCroped(), roiCrope... | 27.054054 | 181 | 0.697053 | valerydol |
a2d2afe1a5c2c4b5d9b78ae5898e3948814d9744 | 994 | cpp | C++ | TCPsrv/TCPsrv/main.cpp | yu-s/_code_bak | 08308f7c836d05a9c4d610def19fc1a3e7c6ecf4 | [
"MIT"
] | null | null | null | TCPsrv/TCPsrv/main.cpp | yu-s/_code_bak | 08308f7c836d05a9c4d610def19fc1a3e7c6ecf4 | [
"MIT"
] | null | null | null | TCPsrv/TCPsrv/main.cpp | yu-s/_code_bak | 08308f7c836d05a9c4d610def19fc1a3e7c6ecf4 | [
"MIT"
] | 1 | 2020-05-05T12:28:45.000Z | 2020-05-05T12:28:45.000Z |
#include <Winsock2.h>
#include <stdio.h>
void main()
{
WORD wVersionRequested;
WSADATA wsaData;
int err;
wVersionRequested = MAKEWORD( 1, 1 );
err = WSAStartup( wVersionRequested, &wsaData );
if ( err != 0 ) {
return;
}
if ( LOBYTE( wsaData.wVersion ) != 1 ||
HIBYTE( wsaData.wVersion ) != 1 ) {
WSA... | 20.708333 | 71 | 0.690141 | yu-s |
a2d4de27027e955cb9a41693af9ab7a6f90c5a57 | 2,984 | cpp | C++ | samples/snippets/cpp/VS_Snippets_IIS/IIS7/IMapHandlerProviderSetScriptName/cpp/IMapHandlerProviderSetScriptName.cpp | mitchelsellers/iis-docs | 376c5b4a1b88b807eb8dbe7c63ba7cd9c59f7429 | [
"CC-BY-4.0",
"MIT"
] | 90 | 2017-06-13T19:56:04.000Z | 2022-03-15T16:42:09.000Z | samples/snippets/cpp/VS_Snippets_IIS/IIS7/IMapHandlerProviderSetScriptName/cpp/IMapHandlerProviderSetScriptName.cpp | mitchelsellers/iis-docs | 376c5b4a1b88b807eb8dbe7c63ba7cd9c59f7429 | [
"CC-BY-4.0",
"MIT"
] | 453 | 2017-05-22T18:00:05.000Z | 2022-03-30T21:07:55.000Z | samples/snippets/cpp/VS_Snippets_IIS/IIS7/IMapHandlerProviderSetScriptName/cpp/IMapHandlerProviderSetScriptName.cpp | mitchelsellers/iis-docs | 376c5b4a1b88b807eb8dbe7c63ba7cd9c59f7429 | [
"CC-BY-4.0",
"MIT"
] | 343 | 2017-05-26T08:57:30.000Z | 2022-03-25T23:05:04.000Z | // <Snippet1>
#define _WINSOCKAPI_
#include <windows.h>
#include <sal.h>
#include <httpserv.h>
// Create the module class.
class MyHttpModule : public CHttpModule
{
public:
REQUEST_NOTIFICATION_STATUS
OnMapRequestHandler(
IN IHttpContext * pHttpContext,
IN IMapHandlerProvider * pProvider
)
... | 26.882883 | 75 | 0.580764 | mitchelsellers |
a2d75b15fedfdb232f50064e81df8bd18c0dbed4 | 1,077 | cpp | C++ | Software/lib/motor.cpp | JiaxunHong/Smart-Pets-Feeder | 4204c669880377d7dc79d194f1d0e2a60c666e67 | [
"MIT"
] | 12 | 2021-04-10T16:03:04.000Z | 2021-04-27T08:14:59.000Z | Software/lib/motor.cpp | JiaxunHong/Smart-Pets-Feeder | 4204c669880377d7dc79d194f1d0e2a60c666e67 | [
"MIT"
] | 4 | 2021-04-15T11:33:45.000Z | 2021-04-18T07:02:23.000Z | Software/lib/motor.cpp | JiaxunHong/Smart-Pets-Feeder | 4204c669880377d7dc79d194f1d0e2a60c666e67 | [
"MIT"
] | 6 | 2021-04-10T16:03:36.000Z | 2021-04-19T12:07:51.000Z | #include "motor.h"
#include <iostream> //C++ Standard library
#include <wiringPi.h> //GPIO library
using namespace std; //Namespace Declarations
void motor::motor_init()
{
for(auto i:m)pinMode(i, OUTPUT); //Initialising stepper motor pins
}
void motor::motopa(int zf)
{
auto di=0;
int jnum = ... | 21.117647 | 70 | 0.410399 | JiaxunHong |
a2db34a0fc0974ffd62643604af63c4695bddcee | 3,890 | cpp | C++ | modules/tracktion_graph/tracktion_graph/tracktion_graph_PlayHeadState.cpp | jbloit/tracktion_engine | b3fa7d6a3a404f64ae419abdf9c801d672cffb16 | [
"MIT",
"Unlicense"
] | 734 | 2018-11-16T09:39:40.000Z | 2022-03-30T16:56:14.000Z | modules/tracktion_graph/tracktion_graph/tracktion_graph_PlayHeadState.cpp | jbloit/tracktion_engine | b3fa7d6a3a404f64ae419abdf9c801d672cffb16 | [
"MIT",
"Unlicense"
] | 100 | 2018-11-16T18:04:08.000Z | 2022-03-31T17:47:53.000Z | modules/tracktion_graph/tracktion_graph/tracktion_graph_PlayHeadState.cpp | jbloit/tracktion_engine | b3fa7d6a3a404f64ae419abdf9c801d672cffb16 | [
"MIT",
"Unlicense"
] | 123 | 2018-11-16T15:51:50.000Z | 2022-03-29T12:21:27.000Z | /*
,--. ,--. ,--. ,--.
,-' '-.,--.--.,--,--.,---.| |,-.,-' '-.`--' ,---. ,--,--, Copyright 2018
'-. .-'| .--' ,-. | .--'| /'-. .-',--.| .-. || \ Tracktion Software
| | | | \ '-' \ `--.| \ \ | | | |' '-' '| || | Corporation
`---' `--' `... | 36.698113 | 90 | 0.554242 | jbloit |
a2e2dbd71bc519938ad5621593b4f95b42e4fa6d | 877 | hpp | C++ | paxos++/detail/util/conversion.hpp | armos-db/libpaxos-cpp | 31e8a3f9664e3e6563d26dbc1323457f596b8eef | [
"BSD-3-Clause"
] | 54 | 2015-02-09T11:46:30.000Z | 2021-08-13T14:08:52.000Z | paxos++/detail/util/conversion.hpp | armos-db/libpaxos-cpp | 31e8a3f9664e3e6563d26dbc1323457f596b8eef | [
"BSD-3-Clause"
] | null | null | null | paxos++/detail/util/conversion.hpp | armos-db/libpaxos-cpp | 31e8a3f9664e3e6563d26dbc1323457f596b8eef | [
"BSD-3-Clause"
] | 17 | 2015-01-13T03:18:49.000Z | 2022-03-23T02:20:57.000Z | /*!
Copyright (c) 2012, Leon Mergen, all rights reserved.
*/
#ifndef LIBPAXOS_CPP_DETAIL_UTIL_CONVERSION_HPP
#define LIBPAXOS_CPP_DETAIL_UTIL_CONVERSION_HPP
#include <string>
#include "debug.hpp"
namespace paxos { namespace detail { namespace util {
/*!
\brief Defines helper functions that conve... | 19.488889 | 81 | 0.641961 | armos-db |
a2ec6d3136d35858e38c4b358dfd0ba70819f809 | 8,355 | cpp | C++ | examples/auth/src/micro_http.cpp | kamaroly/yb-orm | b53987f6b316a4a2e7c23cb82525ad1570d107b7 | [
"MIT"
] | null | null | null | examples/auth/src/micro_http.cpp | kamaroly/yb-orm | b53987f6b316a4a2e7c23cb82525ad1570d107b7 | [
"MIT"
] | null | null | null | examples/auth/src/micro_http.cpp | kamaroly/yb-orm | b53987f6b316a4a2e7c23cb82525ad1570d107b7 | [
"MIT"
] | null | null | null | #include "micro_http.h"
#include <sstream>
#include <util/thread.h>
#include <util/utility.h>
#include <util/string_utils.h>
using namespace std;
using namespace Yb;
using namespace Yb::StrUtils;
HttpServerBase::HttpServerBase(int port, ILogger *root_logger,
const String &content_type, const String &bad_resp)... | 34.102041 | 92 | 0.529982 | kamaroly |
a2ee52976e7071314a16371f9be22822de6cace6 | 3,357 | cpp | C++ | src/ResourceManagement/MeshLoader.cpp | Ekozmaster/DwarfQuest | 02b0406b1796093a6d55ba49fa42873cfba2e6ba | [
"MIT"
] | null | null | null | src/ResourceManagement/MeshLoader.cpp | Ekozmaster/DwarfQuest | 02b0406b1796093a6d55ba49fa42873cfba2e6ba | [
"MIT"
] | null | null | null | src/ResourceManagement/MeshLoader.cpp | Ekozmaster/DwarfQuest | 02b0406b1796093a6d55ba49fa42873cfba2e6ba | [
"MIT"
] | null | null | null | #include <string>
#include <glm/glm.hpp>
#include <vector>
#include <cstring>
#include <src/ResourceManagement/MeshLoader.h>
#include <src/Utils/Logger.h>
namespace Core {
Mesh* LoadMesh(const char* path) {
FILE* file = std::fopen(path, "r");
if (file == NULL) {
Logger::Error("LoadMes... | 41.9625 | 213 | 0.554662 | Ekozmaster |
a2f04173536c35eb07af20d35cdd94248896bc71 | 19,485 | hpp | C++ | src/io/filtered_sequence_iterator.hpp | tcpan/bliss | 0062fe91fdeef66fce4d1e897c15318241130277 | [
"Apache-2.0"
] | 16 | 2016-06-07T22:12:02.000Z | 2021-12-15T12:40:52.000Z | src/io/filtered_sequence_iterator.hpp | tcpan/bliss | 0062fe91fdeef66fce4d1e897c15318241130277 | [
"Apache-2.0"
] | 1 | 2017-11-13T20:59:33.000Z | 2018-12-14T16:40:01.000Z | src/io/filtered_sequence_iterator.hpp | tcpan/bliss | 0062fe91fdeef66fce4d1e897c15318241130277 | [
"Apache-2.0"
] | 7 | 2016-08-19T21:31:41.000Z | 2021-12-19T14:58:45.000Z | /*
* Copyright 2015 Georgia Institute of Technology
*
* 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... | 43.396437 | 208 | 0.618938 | tcpan |
a2f5096b80b4a1a241a0d41f4e16ea60c77b12f4 | 7,912 | cpp | C++ | snapshotable_allocator_impl.cpp | jyaif/snapshotable_allocator | 711dff8d6414265476bf8eb83eece563c0c183a8 | [
"MIT"
] | null | null | null | snapshotable_allocator_impl.cpp | jyaif/snapshotable_allocator | 711dff8d6414265476bf8eb83eece563c0c183a8 | [
"MIT"
] | null | null | null | snapshotable_allocator_impl.cpp | jyaif/snapshotable_allocator | 711dff8d6414265476bf8eb83eece563c0c183a8 | [
"MIT"
] | null | null | null | #include "application/memory/snapshotable_allocator_impl.h"
#include <algorithm>
#include <array>
#include <cassert>
#include <cstdlib>
#include "application/memory/aligned_alloc.h"
#include "application/memory/bit_vector.h"
#include "application/memory/fls.h"
#include "application/memory/memory_snapshot_impl.h"
#inc... | 31.7751 | 79 | 0.687184 | jyaif |
a2f951cda23845319d2644ac4a63932f2e829017 | 507 | hpp | C++ | include/IteratorRecognition/Support/Utils/DebugInfo.hpp | robcasloz/IteratorRecognition | fa1a1e67c36cde3639ac40528228ae85e54e3b13 | [
"MIT"
] | null | null | null | include/IteratorRecognition/Support/Utils/DebugInfo.hpp | robcasloz/IteratorRecognition | fa1a1e67c36cde3639ac40528228ae85e54e3b13 | [
"MIT"
] | 6 | 2019-05-29T21:11:03.000Z | 2021-07-01T10:47:02.000Z | include/IteratorRecognition/Support/Utils/DebugInfo.hpp | robcasloz/IteratorRecognition | fa1a1e67c36cde3639ac40528228ae85e54e3b13 | [
"MIT"
] | 1 | 2019-05-13T11:55:39.000Z | 2019-05-13T11:55:39.000Z | //
//
//
#pragma once
#include "IteratorRecognition/Config.hpp"
#include <string>
// using std::string
#include <tuple>
// using std::make_tuple
namespace llvm {
class Loop;
class Instruction;
} // namespace llvm
namespace iteratorrecognition {
namespace dbg {
std::string extract(const llvm::Instruction &I);
us... | 15.84375 | 80 | 0.733728 | robcasloz |
a2f9a8c664abf121f5cb44e53e4638b5f11d0e6b | 340 | cpp | C++ | src/NBaseFunction.cpp | justinmann/sj | 24d0a75723b024f17de6dab9070979a4f1bf1a60 | [
"Apache-2.0"
] | 2 | 2017-01-04T02:27:10.000Z | 2017-01-22T05:36:41.000Z | src/NBaseFunction.cpp | justinmann/sj | 24d0a75723b024f17de6dab9070979a4f1bf1a60 | [
"Apache-2.0"
] | null | null | null | src/NBaseFunction.cpp | justinmann/sj | 24d0a75723b024f17de6dab9070979a4f1bf1a60 | [
"Apache-2.0"
] | 1 | 2020-06-15T12:17:26.000Z | 2020-06-15T12:17:26.000Z | #include <sjc.h>
FunctionParameter FunctionParameter::create(bool isDefaultValue, AssignOp op, shared_ptr<CVar> var) {
FunctionParameter param;
param.isDefaultValue = isDefaultValue;
param.op = op;
param.var = var;
return param;
}
void CBaseFunction::setHasThis() {
assert(name != "global");
... | 22.666667 | 101 | 0.694118 | justinmann |
a2f9fc84e6580004190ec17f39301b3897aa6803 | 209 | cpp | C++ | Engine/Graphics/ImGui_Window.cpp | Antd23rus/S2DE_DirectX11 | 4f729278e6c795f7d606afc70a292c6501b0cafd | [
"MIT"
] | null | null | null | Engine/Graphics/ImGui_Window.cpp | Antd23rus/S2DE_DirectX11 | 4f729278e6c795f7d606afc70a292c6501b0cafd | [
"MIT"
] | null | null | null | Engine/Graphics/ImGui_Window.cpp | Antd23rus/S2DE_DirectX11 | 4f729278e6c795f7d606afc70a292c6501b0cafd | [
"MIT"
] | 1 | 2021-09-06T08:30:20.000Z | 2021-09-06T08:30:20.000Z | #include "ImGui_Window.h"
namespace S2DE::Render
{
ImGui_Window::ImGui_Window()
: m_draw(false)
{
}
ImGui_Window::~ImGui_Window()
{
}
void ImGui_Window::ToggleDraw()
{
m_draw = !m_draw;
}
} | 10.45 | 32 | 0.650718 | Antd23rus |
0c06cb94f1791b3c77a1e2f28308eeb60d302d95 | 284 | cc | C++ | test/camera.cc | imkaywu/open3DCV | 33ef0507e565bce2ccff7409ff35a8970e6eed2d | [
"BSD-3-Clause"
] | 37 | 2018-07-30T15:34:29.000Z | 2022-01-10T22:50:39.000Z | test/camera.cc | imkaywu/open3DCV | 33ef0507e565bce2ccff7409ff35a8970e6eed2d | [
"BSD-3-Clause"
] | 1 | 2020-10-09T17:51:42.000Z | 2020-11-11T19:41:06.000Z | test/camera.cc | imkaywu/open3DCV | 33ef0507e565bce2ccff7409ff35a8970e6eed2d | [
"BSD-3-Clause"
] | 14 | 2017-12-03T15:24:01.000Z | 2021-09-16T02:13:31.000Z | //
// camera.cpp
// open3DCV_test
//
// Created by KaiWu on Jul/5/17.
// Copyright © 2017 KaiWu. All rights reserved.
//
#include <stdio.h>
#include "camera.h"
using namespace std;
using namespace open3DCV;
int main(int argc, const char * argv[]) {
return 0;
}
| 12.909091 | 48 | 0.630282 | imkaywu |
0c0ddeeabdb96e2f498a7e49b45488068edea2da | 7,651 | cpp | C++ | Fuji/Source/Drivers/PS2/MFInput_PS2.cpp | TurkeyMan/fuji | afd6a26c710ce23965b088ad158fe916d6a1a091 | [
"BSD-2-Clause"
] | 35 | 2015-01-19T22:07:48.000Z | 2022-02-21T22:17:53.000Z | Fuji/Source/Drivers/PS2/MFInput_PS2.cpp | TurkeyMan/fuji | afd6a26c710ce23965b088ad158fe916d6a1a091 | [
"BSD-2-Clause"
] | 1 | 2022-02-23T09:34:15.000Z | 2022-02-23T09:34:15.000Z | Fuji/Source/Drivers/PS2/MFInput_PS2.cpp | TurkeyMan/fuji | afd6a26c710ce23965b088ad158fe916d6a1a091 | [
"BSD-2-Clause"
] | 4 | 2015-05-11T03:31:35.000Z | 2018-09-27T04:55:57.000Z | #include "Fuji_Internal.h"
#if MF_INPUT == MF_DRIVER_PS2
#include "MFVector.h"
#include "MFInput_Internal.h"
#include "MFHeap.h"
#include "MFIni.h"
/*** Structure definitions ***/
/*** Globals ***/
int gGamepadCount = 0;
int gKeyboardCount = 0;
int gMouseCount = 0;
char gKeyState[256];
bool g... | 21.077135 | 90 | 0.649327 | TurkeyMan |
0c12563f6dc15690aaa6754dda968b5f12ea895d | 31,784 | cpp | C++ | Build/hosEditor/hosEditorDlg.cpp | Game-institute-1st-While-true/hosEngine | 2cc0b464740a976a8b37afd7a9e3479fe7484cf0 | [
"MIT"
] | null | null | null | Build/hosEditor/hosEditorDlg.cpp | Game-institute-1st-While-true/hosEngine | 2cc0b464740a976a8b37afd7a9e3479fe7484cf0 | [
"MIT"
] | null | null | null | Build/hosEditor/hosEditorDlg.cpp | Game-institute-1st-While-true/hosEngine | 2cc0b464740a976a8b37afd7a9e3479fe7484cf0 | [
"MIT"
] | 2 | 2021-07-14T00:14:18.000Z | 2021-07-27T04:16:53.000Z |
// hosEditorDlg.cpp: 구현 파일
//
#include "pch.h"
#include "framework.h"
#include "hosEditor.h"
#include "SceneView.h"
#include "TransformView.h"
#include "BoxCollisionview.h"
#include "SphereCollisionView.h"
#include "CapsuleCollisionView.h"
#include "CameraView.h"
#include "RigidbodyView.h"
#include "AudioListenerVie... | 26.619765 | 123 | 0.745532 | Game-institute-1st-While-true |
0c12971dc38865e8bb095a745228a17b25f99525 | 75,153 | cpp | C++ | src/WndResizer/WndResizer.cpp | AbsCoDes-lib/WndCommons | 5af3ce02ad0396617299496cab60673e36a0e653 | [
"Apache-2.0"
] | null | null | null | src/WndResizer/WndResizer.cpp | AbsCoDes-lib/WndCommons | 5af3ce02ad0396617299496cab60673e36a0e653 | [
"Apache-2.0"
] | null | null | null | src/WndResizer/WndResizer.cpp | AbsCoDes-lib/WndCommons | 5af3ce02ad0396617299496cab60673e36a0e653 | [
"Apache-2.0"
] | null | null | null | /*
DISCLAIMER
Auther: Mizan Rahman
Original publication location: http://www.codeproject.com/KB/dialog/WndResizer.aspx
This work is provided under the terms and condition described in The Code Project Open License (CPOL)
(http://www.codeproject.com/info/cpol10.aspx)
This disclaimer should not be removed and should e... | 34.207101 | 155 | 0.527723 | AbsCoDes-lib |
0c19a5e41dfde254edb0756b883eb0365a0070d1 | 1,800 | cpp | C++ | src/NativeScript/Marshalling/FunctionReference/FunctionReferenceConstructor.cpp | linwaiwai/ios-runtime | 1e01a18c0cf936266a0c8d86bcc5ffc4ff3653ef | [
"Apache-2.0"
] | 1 | 2020-09-03T01:33:53.000Z | 2020-09-03T01:33:53.000Z | src/NativeScript/Marshalling/FunctionReference/FunctionReferenceConstructor.cpp | linwaiwai/ios-runtime | 1e01a18c0cf936266a0c8d86bcc5ffc4ff3653ef | [
"Apache-2.0"
] | null | null | null | src/NativeScript/Marshalling/FunctionReference/FunctionReferenceConstructor.cpp | linwaiwai/ios-runtime | 1e01a18c0cf936266a0c8d86bcc5ffc4ff3653ef | [
"Apache-2.0"
] | null | null | null | //
// FunctionReferenceConstructor.cpp
// NativeScript
//
// Created by Jason Zhekov on 10/20/14.
// Copyright (c) 2014 Telerik. All rights reserved.
//
#include "FunctionReferenceConstructor.h"
#include "FunctionReferenceInstance.h"
#include "Interop.h"
namespace NativeScript {
using namespace JSC;
const ClassI... | 43.902439 | 163 | 0.761667 | linwaiwai |
0c19c64ff9b0bfc0523431936929e35da155ecee | 8,027 | cpp | C++ | lib/libcpp/Solvers/applicationinterface.cpp | beckerrh/simfemsrc | d857eb6f6f8627412d4f9d89a871834c756537db | [
"MIT"
] | null | null | null | lib/libcpp/Solvers/applicationinterface.cpp | beckerrh/simfemsrc | d857eb6f6f8627412d4f9d89a871834c756537db | [
"MIT"
] | 1 | 2019-01-31T10:59:11.000Z | 2019-01-31T10:59:11.000Z | lib/libcpp/Solvers/applicationinterface.cpp | beckerrh/simfemsrc | d857eb6f6f8627412d4f9d89a871834c756537db | [
"MIT"
] | null | null | null | #include "Alat/stringvector.hpp"
#include "Solvers/applicationinterface.hpp"
#include "Mesh/meshunitinterface.hpp"
#include <cassert>
using namespace solvers;
/*--------------------------------------------------------------------------*/
ApplicationInterface::~ApplicationInterface() {}
ApplicationInterface::Appli... | 36.486364 | 219 | 0.722935 | beckerrh |
0c1cde67c4607587c8bff564ac0f6c1e2868ddd2 | 4,493 | cpp | C++ | source/gameos/src/winmain.cpp | mechasource/mechcommander2 | b2c7cecf001cec1f535aa8d29c31bdc30d9aa983 | [
"BSD-2-Clause"
] | 38 | 2015-04-10T13:31:03.000Z | 2021-09-03T22:34:05.000Z | source/gameos/src/winmain.cpp | mechasource/mechcommander2 | b2c7cecf001cec1f535aa8d29c31bdc30d9aa983 | [
"BSD-2-Clause"
] | 1 | 2020-07-09T09:48:44.000Z | 2020-07-12T12:41:43.000Z | source/gameos/src/winmain.cpp | mechasource/mechcommander2 | b2c7cecf001cec1f535aa8d29c31bdc30d9aa983 | [
"BSD-2-Clause"
] | 12 | 2015-06-29T08:06:57.000Z | 2021-10-13T13:11:41.000Z | /*******************************************************************************
This file consist of reversed and interpreted code from object source in the
x86 debug build gameos.lib. The code in this file can not be used in any way
other than serve as an information reference to the original released source of
M... | 34.829457 | 92 | 0.732918 | mechasource |
0c1cf45447ae41123638fe8c231d053cd93601c7 | 19,947 | cpp | C++ | reference/1bitstudio-20190604/src/1bs_pulsesynth/pulsesynth.cpp | linuxmao-org/shiru-plugins | 08853f99140012234649e67e5647906fda74f6cc | [
"WTFPL"
] | 11 | 2019-06-15T06:36:36.000Z | 2022-02-22T04:49:22.000Z | reference/1bitstudio-20190604/src/1bs_pulsesynth/pulsesynth.cpp | nyxkn/shiru-plugins | 8088c04b94afb498cec6a14bd03c448936bf31e9 | [
"WTFPL"
] | 6 | 2019-06-15T14:04:49.000Z | 2019-11-27T15:35:13.000Z | reference/1bitstudio-20190604/src/1bs_pulsesynth/pulsesynth.cpp | nyxkn/shiru-plugins | 8088c04b94afb498cec6a14bd03c448936bf31e9 | [
"WTFPL"
] | 2 | 2020-12-30T00:21:35.000Z | 2021-07-04T18:32:46.000Z | #include "PulseSynth.h"
AudioEffect* createEffectInstance(audioMasterCallback audioMaster)
{
return new PulseSynth(audioMaster);
}
PulseSynth::PulseSynth(audioMasterCallback audioMaster) : AudioEffectX(audioMaster, NUM_PROGRAMS, NUM_PARAMS)
{
VstInt32 pgm,chn;
setNumInputs(NUM_INPUTS);
setNum... | 21.895719 | 150 | 0.636437 | linuxmao-org |
0c2b42e4ea8cc821ef8692d0338feb6737dbf398 | 196 | cpp | C++ | examples/tetris/lib/Moon/src/cmp/cmp_base.cpp | KEGEStudios/Moon | 0e6aa078c8bf876c60aafe875ef53217ebdc74f1 | [
"MIT"
] | 2 | 2021-05-20T06:55:38.000Z | 2021-05-23T05:09:06.000Z | examples/tetris/lib/Moon/src/cmp/cmp_base.cpp | KEGEStudios/Moon | 0e6aa078c8bf876c60aafe875ef53217ebdc74f1 | [
"MIT"
] | 15 | 2021-04-21T05:26:39.000Z | 2021-07-06T07:07:28.000Z | examples/tetris/lib/Moon/src/cmp/cmp_base.cpp | reitmas32/Moon | 02790eb476f039b44664e7d8f24fa2839187e4fc | [
"MIT"
] | 1 | 2021-02-21T08:26:40.000Z | 2021-02-21T08:26:40.000Z | #include "../../include/cmp/cmp_base.hpp"
namespace Moon::Core
{
ComponentBase_t::ComponentBase_t()
{
}
ComponentBase_t::~ComponentBase_t()
{
}
} // namespace Moon::Core
| 15.076923 | 41 | 0.622449 | KEGEStudios |
0c2e5ccbb3f844de01e73aef5083d8e28da739d5 | 1,284 | cpp | C++ | Luogu/P3052.cpp | Nickel-Angel/ACM-and-OI | 79d13fd008c3a1fe9ebf35329aceb1fcb260d5d9 | [
"MIT"
] | null | null | null | Luogu/P3052.cpp | Nickel-Angel/ACM-and-OI | 79d13fd008c3a1fe9ebf35329aceb1fcb260d5d9 | [
"MIT"
] | 1 | 2021-11-18T15:10:29.000Z | 2021-11-20T07:13:31.000Z | Luogu/P3052.cpp | Nickel-Angel/ACM-and-OI | 79d13fd008c3a1fe9ebf35329aceb1fcb260d5d9 | [
"MIT"
] | null | null | null | /*
* @author Nickel_Angel (1239004072@qq.com)
* @copyright Copyright (c) 2022
*/
#include <algorithm>
#include <cstdio>
#include <cstring>
int n, w, a[20], f[1 << 19], g[1 << 19];
long long sum[1 << 19];
int main()
{
scanf("%d%d", &n, &w);
for (int i = 0; i < n; ++i)
scanf("%d", a + i);
memset(f,... | 25.68 | 82 | 0.271028 | Nickel-Angel |
0c2f9485fc072c724cf0d8ec52627f4704423fa7 | 3,246 | cpp | C++ | src/mod/debug/quantum_duck.cpp | fugueinheels/sigsegv-mvm | 092a69d44a3ed9aacd14886037f4093a27ff816b | [
"BSD-2-Clause"
] | 33 | 2016-02-18T04:27:53.000Z | 2022-01-15T18:59:53.000Z | src/mod/debug/quantum_duck.cpp | fugueinheels/sigsegv-mvm | 092a69d44a3ed9aacd14886037f4093a27ff816b | [
"BSD-2-Clause"
] | 5 | 2018-01-10T18:41:38.000Z | 2020-10-01T13:34:53.000Z | src/mod/debug/quantum_duck.cpp | fugueinheels/sigsegv-mvm | 092a69d44a3ed9aacd14886037f4093a27ff816b | [
"BSD-2-Clause"
] | 14 | 2017-08-06T23:02:49.000Z | 2021-08-24T00:24:16.000Z | #include "mod.h"
namespace Mod::Debug::Quantum_Duck
{
// +CBasePlayer::m_bDucked
// +CBasePlayer::m_bDucking
// +CBasePlayer::m_bInDuckJump
// +CBasePlayer::m_flDuckTime
// +CBasePlayer::m_flDuckJumpTime
// +CBasePlayer::m_bDuckToggled
// +CBasePlayer::m_fFlags <-- particularly FL_DUCKING, F... | 35.67033 | 135 | 0.705176 | fugueinheels |
0c3799b6c2560fd09d84cafa4ad16e1e896efc78 | 1,238 | cpp | C++ | 03/roh/2644.cpp | Dcom-KHU/2021-Winter-Algorithm-Study | ea32826abe7d8245ee9d3dc8d0161f7ba018a02f | [
"MIT"
] | 2 | 2021-01-09T10:05:21.000Z | 2021-01-10T06:14:03.000Z | 03/roh/2644.cpp | Dcom-KHU/2021-Winter-Algorithm-Study | ea32826abe7d8245ee9d3dc8d0161f7ba018a02f | [
"MIT"
] | null | null | null | 03/roh/2644.cpp | Dcom-KHU/2021-Winter-Algorithm-Study | ea32826abe7d8245ee9d3dc8d0161f7ba018a02f | [
"MIT"
] | 1 | 2021-02-03T13:09:09.000Z | 2021-02-03T13:09:09.000Z | #include<iostream>
#include<vector>
//lca(least common ancestor) 문제는 사실... log(n) 해결방법이 있습니다......
using namespace std;
//각노드의 부모의 인덱스를 저장하는 배열
int parent[1000];
//child가 final ancestor 에 도달할때까지의 방문하는 노드의 idx를 돌려준다.
vector<int> get_p(int child){
vector<int> result;
while(child != -1){
result.push_back(chil... | 20.295082 | 92 | 0.62601 | Dcom-KHU |
0c3a6e0c49281a3641ac269e4b58fc34cf12dedf | 339 | hpp | C++ | snowman.hpp | Roniharel100/CPP_EX1-Snowman_b | 0b41fc0f7946a373350819386b3bd0947eb597ee | [
"MIT"
] | null | null | null | snowman.hpp | Roniharel100/CPP_EX1-Snowman_b | 0b41fc0f7946a373350819386b3bd0947eb597ee | [
"MIT"
] | null | null | null | snowman.hpp | Roniharel100/CPP_EX1-Snowman_b | 0b41fc0f7946a373350819386b3bd0947eb597ee | [
"MIT"
] | null | null | null | #include <string>
#include <array>
using namespace std;
namespace ariel {
string snowman(int code);
const int min_snowman_code = 11111111;
const int max_snowman_code = 44444444;
const int base_num = 10;
const int min_index = 0;
const int max_index = 3;
const int top_arm = 0;
const int... | 19.941176 | 42 | 0.675516 | Roniharel100 |
0c3cdf0a548cb47115845f53749009a730f9ea86 | 3,102 | cpp | C++ | Source/XsollaUtils/Private/XsollaUtilsUrlBuilder.cpp | xsolla/store-ue4-sdk | e25440e9d0b82663929ee7f49807e9b6bb09606b | [
"Apache-2.0"
] | 14 | 2019-08-28T19:49:07.000Z | 2021-12-04T14:34:18.000Z | Plugins/XSolla/Source/XsollaUtils/Private/XsollaUtilsUrlBuilder.cpp | anchorholdgames/anchorhold | 00b4fb6b1229c9fd2dd1aff01f09ad0e9a224bbb | [
"MIT"
] | 34 | 2019-08-17T08:23:18.000Z | 2021-12-08T08:25:14.000Z | Plugins/XSolla/Source/XsollaUtils/Private/XsollaUtilsUrlBuilder.cpp | anchorholdgames/anchorhold | 00b4fb6b1229c9fd2dd1aff01f09ad0e9a224bbb | [
"MIT"
] | 12 | 2019-09-25T15:14:58.000Z | 2022-03-21T09:27:58.000Z | // Copyright 2021 Xsolla Inc. All Rights Reserved.
#include "XsollaUtilsUrlBuilder.h"
XsollaUtilsUrlBuilder::XsollaUtilsUrlBuilder(const FString& UrlTemplate)
: Url(UrlTemplate)
{
}
FString XsollaUtilsUrlBuilder::Build()
{
FString ResultUrl = Url;
// set path params
for (const auto& Param : PathParams)
{
con... | 26.741379 | 177 | 0.742424 | xsolla |
0c3f7b33a7a6b6f3dbe2e0b6c39973c0265e6e78 | 2,342 | hpp | C++ | include/ccbase/filesystem/directory_entry.hpp | adityaramesh/ccbase | 595e1416aab3cc8bc976aad9bb3e262c7d11e3b2 | [
"BSD-3-Clause-Clear"
] | 8 | 2015-01-08T05:44:43.000Z | 2021-05-11T15:54:17.000Z | include/ccbase/filesystem/directory_entry.hpp | adityaramesh/ccbase | 595e1416aab3cc8bc976aad9bb3e262c7d11e3b2 | [
"BSD-3-Clause-Clear"
] | 1 | 2016-01-31T08:48:53.000Z | 2016-01-31T08:54:28.000Z | include/ccbase/filesystem/directory_entry.hpp | adityaramesh/ccbase | 595e1416aab3cc8bc976aad9bb3e262c7d11e3b2 | [
"BSD-3-Clause-Clear"
] | 2 | 2015-03-26T11:08:18.000Z | 2016-01-30T03:28:06.000Z | /*
** File Name: directory_entry.hpp
** Author: Aditya Ramesh
** Date: 08/23/2013
** Contact: _@adityaramesh.com
*/
#ifndef ZDDEA7CE4_14FD_40C7_AA27_9BBF59D67383
#define ZDDEA7CE4_14FD_40C7_AA27_9BBF59D67383
#include <cstdint>
#include <ostream>
#include <ccbase/format.hpp>
#include <ccbase/platform.hpp>
#if PLATFOR... | 27.232558 | 81 | 0.675064 | adityaramesh |
0c432fde7e0d3200477a78e6ed0ed3cf5cd7b1d4 | 2,738 | c++ | C++ | tests/css/grammar/semantic/convert_to.test.c++ | rubenvb/skui | 5bda2d73232eb7a763ba9d788c7603298767a7d7 | [
"MIT"
] | 19 | 2016-10-13T22:44:31.000Z | 2021-12-28T20:28:15.000Z | tests/css/grammar/semantic/convert_to.test.c++ | rubenvb/skui | 5bda2d73232eb7a763ba9d788c7603298767a7d7 | [
"MIT"
] | 1 | 2021-05-16T15:15:22.000Z | 2021-05-16T17:01:26.000Z | tests/css/grammar/semantic/convert_to.test.c++ | rubenvb/skui | 5bda2d73232eb7a763ba9d788c7603298767a7d7 | [
"MIT"
] | 4 | 2017-03-07T05:37:02.000Z | 2018-06-05T03:14:48.000Z | /**
* The MIT License (MIT)
*
* Copyright © 2019 Ruben Van Boxem
*
* 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 us... | 31.113636 | 96 | 0.71439 | rubenvb |
0c45416a540bd4eb84a6067dc74093fee62064f0 | 5,311 | inl | C++ | src/editor/include/agz/editor/resource/resource_panel.inl | AirGuanZ/Atrc | a0c4bc1b7bb96ddffff8bb1350f88b651b94d993 | [
"MIT"
] | 358 | 2018-11-29T08:15:05.000Z | 2022-03-31T07:48:37.000Z | src/editor/include/agz/editor/resource/resource_panel.inl | happyfire/Atrc | 74cac111e277be53eddea5638235d97cec96c378 | [
"MIT"
] | 23 | 2019-04-06T17:23:58.000Z | 2022-02-08T14:22:46.000Z | src/editor/include/agz/editor/resource/resource_panel.inl | happyfire/Atrc | 74cac111e277be53eddea5638235d97cec96c378 | [
"MIT"
] | 22 | 2019-03-04T01:47:56.000Z | 2022-01-13T06:06:49.000Z | #pragma once
AGZ_EDITOR_BEGIN
template<typename TracerObject>
ResourcePanel<TracerObject>::ResourcePanel(
ObjectContext &obj_ctx, const QString &default_type)
: obj_ctx_(obj_ctx)
{
type_selector_ = new ComboBoxWithoutWheelFocus(this);
type_selector_->addItems(obj_ctx.factory<TracerObject>().get_type_n... | 26.959391 | 86 | 0.707211 | AirGuanZ |
0c4558d91be24b04143ea10613ae3e7e98f4258c | 3,115 | cc | C++ | WinNTKline/KlineUtil/mygl/SDL_text.cc | TsyQi/MyAutomatic | 2afd3dcabba818051c7119fac7e6c099ff7954a7 | [
"Apache-2.0"
] | 4 | 2016-08-19T08:16:49.000Z | 2020-04-15T12:30:25.000Z | WinNTKline/KlineUtil/mygl/SDL_text.cc | TsyQi/Auto-control | d0dda0752d53d28f358346ee7ab217bf05118c96 | [
"Apache-2.0"
] | null | null | null | WinNTKline/KlineUtil/mygl/SDL_text.cc | TsyQi/Auto-control | d0dda0752d53d28f358346ee7ab217bf05118c96 | [
"Apache-2.0"
] | 3 | 2019-03-23T03:40:24.000Z | 2020-04-15T00:57:43.000Z | #include "SDL_text.h"
int SDL_GL_init()
{
if (SDL_Init(SDL_INIT_EVERYTHING) == -1)
return -1;
//Initialize SDL_ttf
return TTF_Init();
}
void SDL_GL_Enter2DMode(int w, int h)
{
/* Note, there may be other things you need to change,
depending on how you have your OpenGL state set up.
*/
glPushAttrib(GL_ENABLE_... | 22.092199 | 67 | 0.709791 | TsyQi |
0c475987bbe45d7f7c4f5d5c122d8c0ac6853adf | 17,922 | hpp | C++ | include/eixx/connect/transport_msg.hpp | heri16/eixx | 4352e356b68d2adbbdd0163ce3aaa93406c15ae2 | [
"Apache-2.0"
] | 91 | 2015-01-14T23:05:38.000Z | 2022-03-21T07:20:02.000Z | include/eixx/connect/transport_msg.hpp | heri16/eixx | 4352e356b68d2adbbdd0163ce3aaa93406c15ae2 | [
"Apache-2.0"
] | 32 | 2015-04-20T09:53:24.000Z | 2021-09-28T21:39:41.000Z | include/eixx/connect/transport_msg.hpp | heri16/eixx | 4352e356b68d2adbbdd0163ce3aaa93406c15ae2 | [
"Apache-2.0"
] | 21 | 2015-03-09T08:13:19.000Z | 2021-08-09T11:52:44.000Z | //----------------------------------------------------------------------------
/// \file transport_msg.hpp
//----------------------------------------------------------------------------
/// \brief Erlang distributed transport message type
//----------------------------------------------------------------------------
/... | 37.572327 | 104 | 0.587267 | heri16 |
0c4a16d45949472519183e9243784ba1944d70c6 | 3,069 | cpp | C++ | server/src/sink.cpp | imsoo/darknet_server | adb94237804e62bcccbbe5f7810da60640aef1d9 | [
"MIT"
] | 25 | 2020-02-08T12:08:20.000Z | 2022-03-15T12:17:07.000Z | server/src/sink.cpp | gwnuysw/darknet_server | 8b587038a165be23a1c83c32b31e92509de631e2 | [
"MIT"
] | 12 | 2020-02-14T09:01:26.000Z | 2021-10-30T14:59:49.000Z | server/src/sink.cpp | gwnuysw/darknet_server | 8b587038a165be23a1c83c32b31e92509de631e2 | [
"MIT"
] | 11 | 2019-12-21T00:30:16.000Z | 2021-11-23T09:01:02.000Z | #include <zmq.h>
#include <stdio.h>
#include <iostream>
#include <string>
#include <csignal>
#include <assert.h>
#include <tbb/concurrent_hash_map.h>
#include <opencv2/opencv.hpp>
#include "share_queue.h"
#include "frame.hpp"
// ZMQ
void *sock_pull;
void *sock_pub;
// ShareQueue
tbb::concurrent_hash_map<int, Frame> f... | 21.612676 | 77 | 0.641251 | imsoo |
0c4b1659eb975da0e7c9e93a05b75480a5b514a8 | 8,861 | cpp | C++ | unit/json/json_parser.cpp | MatWise/cbmc | c9284aee34bae53ba2b3dce8810720735e0a94fa | [
"BSD-4-Clause"
] | null | null | null | unit/json/json_parser.cpp | MatWise/cbmc | c9284aee34bae53ba2b3dce8810720735e0a94fa | [
"BSD-4-Clause"
] | null | null | null | unit/json/json_parser.cpp | MatWise/cbmc | c9284aee34bae53ba2b3dce8810720735e0a94fa | [
"BSD-4-Clause"
] | null | null | null | /*******************************************************************\
Module: Example Catch Tests
Author: Diffblue Ltd.
\*******************************************************************/
#include <fstream>
#include <json/json_parser.h>
#include <testing-utils/message.h>
#include <testing-utils/use_catch.h>
#incl... | 36.465021 | 80 | 0.601061 | MatWise |
0c4c295db47b3a08553e5a74646d2fbd50939d6f | 1,823 | cpp | C++ | CodeForces/educationalNuevo/e.cpp | CaDe27/Co-digos | 9eea1dbf6ed06fd115391328c0a2481029c83fc0 | [
"MIT"
] | null | null | null | CodeForces/educationalNuevo/e.cpp | CaDe27/Co-digos | 9eea1dbf6ed06fd115391328c0a2481029c83fc0 | [
"MIT"
] | null | null | null | CodeForces/educationalNuevo/e.cpp | CaDe27/Co-digos | 9eea1dbf6ed06fd115391328c0a2481029c83fc0 | [
"MIT"
] | null | null | null | #include <iostream>
#include <algorithm>
#include <stdio.h>
#include <string>
#include <vector>
#include <map>
#include <math.h>
#include <numeric>
#include <queue>
#include <stack>
#include <utility>
#include <queue>
#include <set>
#include <iomanip>
using namespace std;
typedef int64_t ll;
typedef pair<int,ll> pil... | 21.963855 | 102 | 0.565551 | CaDe27 |
31b163ac7a95fe85444d6aefe014324f4638cd2f | 1,399 | cpp | C++ | C++/661. Image Smoother.cpp | WangYang-wy/LeetCode | c92fcb83f86c277de6785d5a950f16bc007ccd31 | [
"MIT"
] | 3 | 2018-07-28T15:36:18.000Z | 2020-03-17T01:26:22.000Z | C++/661. Image Smoother.cpp | WangYang-wy/LeetCode | c92fcb83f86c277de6785d5a950f16bc007ccd31 | [
"MIT"
] | null | null | null | C++/661. Image Smoother.cpp | WangYang-wy/LeetCode | c92fcb83f86c277de6785d5a950f16bc007ccd31 | [
"MIT"
] | null | null | null | //
// Created by 王阳 on 2018/4/18.
//
#include "header.h"
class Solution {
public:
vector<vector<int>> imageSmoother(vector<vector<int>> &M) {
vector<vector<int>> res;
int m = M.size();
int n = M[0].size();
for (int i = 0; i < m; i++) {
vector<int> tmp;
for (... | 22.934426 | 73 | 0.36955 | WangYang-wy |
31bcb2eb78b049353ab9b85429def598bdbe0e10 | 352 | cpp | C++ | Vision/ObjectRecognition/src/object.cpp | cxdcxd/sepanta3 | a65a3415f046631ac4d6b91f9342966b0c030226 | [
"MIT"
] | null | null | null | Vision/ObjectRecognition/src/object.cpp | cxdcxd/sepanta3 | a65a3415f046631ac4d6b91f9342966b0c030226 | [
"MIT"
] | null | null | null | Vision/ObjectRecognition/src/object.cpp | cxdcxd/sepanta3 | a65a3415f046631ac4d6b91f9342966b0c030226 | [
"MIT"
] | null | null | null |
#include <object.hpp>
Object::Object() : cloud(new pcl::PointCloud<pcl::PointXYZRGB>),
normals(new pcl::PointCloud<pcl::PointNormal>),
keypoints(new pcl::PointCloud<pcl::PointXYZRGB>),
descriptors(new pcl::PointCloud<pcl::SHOT1344>),
correspondences(... | 35.2 | 66 | 0.605114 | cxdcxd |
31c0fb6840bfefa8006d3111b7c03a7d4f8f7b21 | 161 | hpp | C++ | src/shared/IServerConnection.hpp | sathwikmatsa/ndn-agar.io | a758414d0bb221a6183f20d332f101f3850505cf | [
"MIT"
] | 1 | 2020-06-10T07:44:43.000Z | 2020-06-10T07:44:43.000Z | src/shared/IServerConnection.hpp | sathwikmatsa/ndn-agar.io | a758414d0bb221a6183f20d332f101f3850505cf | [
"MIT"
] | null | null | null | src/shared/IServerConnection.hpp | sathwikmatsa/ndn-agar.io | a758414d0bb221a6183f20d332f101f3850505cf | [
"MIT"
] | null | null | null | #pragma once
class IServerConnection {
public:
virtual void client_connected(int clientIndex) = 0;
virtual void client_disconnected(int clientIndex) = 0;
};
| 23 | 56 | 0.776398 | sathwikmatsa |
31c73bcca22ef514ea7e8bf12579bd8e3891e4ae | 78 | hh | C++ | Include/AcpiCa.hh | ahoka/esrtk | bb5ff7f9caa22b6d6d91e660c6d78e471394a0cc | [
"BSD-2-Clause"
] | 1 | 2018-07-08T15:47:57.000Z | 2018-07-08T15:47:57.000Z | Include/AcpiCa.hh | ahoka/esrtk | bb5ff7f9caa22b6d6d91e660c6d78e471394a0cc | [
"BSD-2-Clause"
] | null | null | null | Include/AcpiCa.hh | ahoka/esrtk | bb5ff7f9caa22b6d6d91e660c6d78e471394a0cc | [
"BSD-2-Clause"
] | null | null | null | #ifndef ACPICA_HH
#define ACPICA_HH
extern "C"
{
#include <acpi.h>
}
#endif
| 7.8 | 17 | 0.692308 | ahoka |
31cdacc3946022055e7d346eb258829294954eb3 | 1,519 | cpp | C++ | code/History.cpp | omerdagan84/neomem | 7d2f782bb37f1ab0ac6580d00672e114605afab7 | [
"MIT"
] | 1 | 2022-02-10T01:41:32.000Z | 2022-02-10T01:41:32.000Z | code/History.cpp | omerdagan84/neomem | 7d2f782bb37f1ab0ac6580d00672e114605afab7 | [
"MIT"
] | null | null | null | code/History.cpp | omerdagan84/neomem | 7d2f782bb37f1ab0ac6580d00672e114605afab7 | [
"MIT"
] | null | null | null |
// CHistory
#include "precompiled.h"
#include "NeoMem.h"
#include "History.h"
#ifdef _DEBUG
#undef THIS_FILE
static char THIS_FILE[]=__FILE__;
#define new DEBUG_NEW
#endif
CHistory::CHistory() :
m_nStart (0),
m_nStop (-1),
m_nPos (-1),
m_nPositions (0)
{
}
CHistory::~CHistory()
{
}
BOOL CHistory::SetSize(i... | 14.747573 | 78 | 0.692561 | omerdagan84 |
31ce7147b5c6cd02338b6d7d205fc1da6b21cc88 | 1,126 | cpp | C++ | libs/fnd/config/test/src/unit_test_fnd_config_noexcept.cpp | myoukaku/bksge | 0f8b60e475a3f1709723906e4796b5e60decf06e | [
"MIT"
] | 4 | 2018-06-10T13:35:32.000Z | 2021-06-03T14:27:41.000Z | libs/fnd/config/test/src/unit_test_fnd_config_noexcept.cpp | myoukaku/bksge | 0f8b60e475a3f1709723906e4796b5e60decf06e | [
"MIT"
] | 566 | 2017-01-31T05:36:09.000Z | 2022-02-09T05:04:37.000Z | libs/fnd/config/test/src/unit_test_fnd_config_noexcept.cpp | myoukaku/bksge | 0f8b60e475a3f1709723906e4796b5e60decf06e | [
"MIT"
] | 1 | 2018-07-05T04:40:53.000Z | 2018-07-05T04:40:53.000Z | /**
* @file unit_test_fnd_config_noexcept.cpp
*
* @brief
*
* @author myoukaku
*/
#include <bksge/fnd/config.hpp>
#include <gtest/gtest.h>
namespace bksge_config_noexcept_test
{
void f1();
void f2() BKSGE_NOEXCEPT;
void f3() BKSGE_NOEXCEPT_OR_NOTHROW;
void f4() BKSGE_NOEXCEPT_IF(true);
void f... | 27.463415 | 56 | 0.713144 | myoukaku |
31d39f996c423a51578a99c36ebc1de204caee0c | 11,354 | cpp | C++ | src/OpenCV/library.cpp | TORU777/OpenR8 | be3de459e30ffcf6234cd4d6a0d169cc4ad18aa0 | [
"Unlicense"
] | null | null | null | src/OpenCV/library.cpp | TORU777/OpenR8 | be3de459e30ffcf6234cd4d6a0d169cc4ad18aa0 | [
"Unlicense"
] | null | null | null | src/OpenCV/library.cpp | TORU777/OpenR8 | be3de459e30ffcf6234cd4d6a0d169cc4ad18aa0 | [
"Unlicense"
] | 3 | 2019-03-30T01:45:28.000Z | 2021-04-24T04:37:39.000Z | /*
Copyright (c) 2004-2017 Open Robot Club. All rights reserved.
OpenCV library for R7.
*/
#include <opencv2/opencv.hpp>
#include "R7.hpp"
using namespace std;
using namespace cv;
typedef struct {
VideoCapture *videoCapture;
int deviceNum;
int apiID;
Mat capturedImage;
} OpenCV_t;
vector<VideoCapture *> vide... | 30.686486 | 110 | 0.747578 | TORU777 |
31d428bd8e8fb3e91465f8c947d6dd05ae1740f2 | 1,318 | hpp | C++ | include/bg2e/platform.hpp | ferserc1/bg2e-cpp | f3a04c5202161846b1329918c5070a2e930bec42 | [
"MIT"
] | null | null | null | include/bg2e/platform.hpp | ferserc1/bg2e-cpp | f3a04c5202161846b1329918c5070a2e930bec42 | [
"MIT"
] | null | null | null | include/bg2e/platform.hpp | ferserc1/bg2e-cpp | f3a04c5202161846b1329918c5070a2e930bec42 | [
"MIT"
] | null | null | null |
#ifndef _bg2e_platform_hpp_
#define _bg2e_platform_hpp_
#include <bx/bx.h>
#define BG2E_PLATFORM_ANDROID 0
#define BG2E_PLATFORM_BSD 0
#define BG2E_PLATFORM_EMSCRIPTEN 0
#define BG2E_PLATFORM_IOS 0
#define BG2E_PLATFORM_LINUX 0
#define BG2E_PLATFORM_OSX ... | 28.042553 | 41 | 0.708649 | ferserc1 |
31d4321544086c76173ffd7e85b0d214d666b9a1 | 4,508 | cpp | C++ | rtsp-streamer/screenshot.cpp | alexeyz041/toolbox | dbb6efff6eb0bcf56fe5b29a0a98d86b5971ddbc | [
"CC0-1.0"
] | 1 | 2022-02-17T22:23:59.000Z | 2022-02-17T22:23:59.000Z | rtsp-streamer/screenshot.cpp | alexeyz041/toolbox | dbb6efff6eb0bcf56fe5b29a0a98d86b5971ddbc | [
"CC0-1.0"
] | null | null | null | rtsp-streamer/screenshot.cpp | alexeyz041/toolbox | dbb6efff6eb0bcf56fe5b29a0a98d86b5971ddbc | [
"CC0-1.0"
] | null | null | null |
#include "screenshot.h"
void initimage( struct shmimage * image )
{
image->ximage = NULL ;
image->shminfo.shmaddr = (char *) -1 ;
}
void destroyimage( Display * dsp, struct shmimage * image )
{
if( image->ximage )
{
XShmDetach( dsp, &image->shminfo ) ;
XDestroyImage( image->ximage... | 23.726316 | 98 | 0.564996 | alexeyz041 |
31d666cde3c384ff29df1851cbfb700f4b047df1 | 9,862 | hpp | C++ | Data/UnevenBlock.hpp | AnabelSMRuggiero/ann | edbd9dc1e2080e2dece31ed55dc36e6cd6f2aa45 | [
"Apache-2.0"
] | null | null | null | Data/UnevenBlock.hpp | AnabelSMRuggiero/ann | edbd9dc1e2080e2dece31ed55dc36e6cd6f2aa45 | [
"Apache-2.0"
] | null | null | null | Data/UnevenBlock.hpp | AnabelSMRuggiero/ann | edbd9dc1e2080e2dece31ed55dc36e6cd6f2aa45 | [
"Apache-2.0"
] | null | null | null | /*
NNDescent.cpp: Copyright (c) Anabel Ruggiero
At the time of writting, this code is unreleased and not published under a license.
As a result, I currently retain all legal rights I am legally entitled to.
I am currently considering a permissive license for releasing this code, such as the Apache 2.0 w/LLVM exception... | 36.257353 | 221 | 0.692253 | AnabelSMRuggiero |
31d933ab08d787839c96b18d68f21d42c08e803d | 36,240 | cpp | C++ | STF/Source/Types/STFString.cpp | rerunner/STCM_driver | 8fef3dd7327812fd317fdb0e6fab8d36e345a505 | [
"BSD-3-Clause"
] | null | null | null | STF/Source/Types/STFString.cpp | rerunner/STCM_driver | 8fef3dd7327812fd317fdb0e6fab8d36e345a505 | [
"BSD-3-Clause"
] | null | null | null | STF/Source/Types/STFString.cpp | rerunner/STCM_driver | 8fef3dd7327812fd317fdb0e6fab8d36e345a505 | [
"BSD-3-Clause"
] | null | null | null | ///
/// @brief Foundation classes for string handling
///
#include "STF/Interface/Types/STFString.h"
#include "STF/Interface/STFMemoryManagement.h"
#include "STF/Interface/STFCallingConventions.h"
#include "STF/Interface/STFDataManipulationMacros.h"
#include "STF/Interface/STFDebug.h"
#include <stdio.h>
... | 16.37596 | 109 | 0.544123 | rerunner |
31dc3ec907cfbc8ff5e912e7008b046477e3297c | 57 | cpp | C++ | code archive/TIOJ/1605.cpp | brianbbsu/program | c4505f2b8c0b91010e157db914a63c49638516bc | [
"MIT"
] | 4 | 2018-04-08T08:07:58.000Z | 2021-06-07T14:55:24.000Z | code archive/TIOJ/1605.cpp | brianbbsu/program | c4505f2b8c0b91010e157db914a63c49638516bc | [
"MIT"
] | null | null | null | code archive/TIOJ/1605.cpp | brianbbsu/program | c4505f2b8c0b91010e157db914a63c49638516bc | [
"MIT"
] | 1 | 2018-10-29T12:37:25.000Z | 2018-10-29T12:37:25.000Z | #include<stdio.h>
int main(){puts("APRIL FOOL'S DAY!");}
| 19 | 38 | 0.649123 | brianbbsu |
31e4db34d89d694ac261facf677a297b7c6e4912 | 2,715 | cpp | C++ | osc/reader/types/OscBlob.cpp | MugenSAS/osc-cpp-qt | 4dc24d2e073c614ecdcd8de9db4a44f155b4d2b5 | [
"MIT"
] | 22 | 2015-03-05T17:00:41.000Z | 2022-03-19T19:39:21.000Z | osc/reader/types/OscBlob.cpp | MugenSAS/osc-cpp-qt | 4dc24d2e073c614ecdcd8de9db4a44f155b4d2b5 | [
"MIT"
] | 3 | 2016-02-20T02:33:01.000Z | 2016-06-07T22:00:56.000Z | osc/reader/types/OscBlob.cpp | MugenSAS/osc-cpp-qt | 4dc24d2e073c614ecdcd8de9db4a44f155b4d2b5 | [
"MIT"
] | 3 | 2016-12-05T19:16:47.000Z | 2021-02-01T08:22:06.000Z | /*
* Copyright (c) 2014 MUGEN SAS
*
* 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, publish, ... | 23.405172 | 80 | 0.698711 | MugenSAS |
31f140576d417e6fc6adb77286281f32c3af1028 | 20,725 | cpp | C++ | xmlcc/xmlccCfgConfig.cpp | cscheiblich/XMLCC | efda13ae7261b22304907432d1298a865d14bcdc | [
"MIT"
] | 1 | 2020-02-07T09:12:50.000Z | 2020-02-07T09:12:50.000Z | xmlcc/xmlccCfgConfig.cpp | cscheiblich/XMLCC | efda13ae7261b22304907432d1298a865d14bcdc | [
"MIT"
] | null | null | null | xmlcc/xmlccCfgConfig.cpp | cscheiblich/XMLCC | efda13ae7261b22304907432d1298a865d14bcdc | [
"MIT"
] | null | null | null | /**
* @file xmlccCfgConfig.cpp
* @author Christian (graetz23@gmail.com)
*
* XMLCC is distributed under the MIT License (MIT); this file is part of.
*
* Copyright (c) 2008-2022 Christian (graetz23@gmail.com)
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and ... | 38.738318 | 91 | 0.598022 | cscheiblich |
31f732a5b64e8278b8eccc43b4c15a8b373e9ef4 | 1,038 | hpp | C++ | macos/MersenneTwisterRandomizer.hpp | BoysTownorg/av-speech-in-noise | 71178c1f920e300f05c9da2d582d64035c591284 | [
"MIT"
] | null | null | null | macos/MersenneTwisterRandomizer.hpp | BoysTownorg/av-speech-in-noise | 71178c1f920e300f05c9da2d582d64035c591284 | [
"MIT"
] | null | null | null | macos/MersenneTwisterRandomizer.hpp | BoysTownorg/av-speech-in-noise | 71178c1f920e300f05c9da2d582d64035c591284 | [
"MIT"
] | null | null | null | #ifndef MACOS_MAIN_MERSENNETWISTERRANDOMIZER_HPP_
#define MACOS_MAIN_MERSENNETWISTERRANDOMIZER_HPP_
#include <av-speech-in-noise/playlist/RandomizedTargetPlaylists.hpp>
#include <av-speech-in-noise/core/RecognitionTestModel.hpp>
#include <random>
namespace av_speech_in_noise {
class MersenneTwisterRandomizer : publi... | 28.833333 | 70 | 0.684008 | BoysTownorg |
31f8925b9ec4468bddf0b4a0e3d0c79fc554b481 | 776 | cpp | C++ | src/libugly/edge/edge_undirected.cpp | JoshuaSBrown/GraphCluster | d9c28204b276165cf59137c9668c4dfcfa397089 | [
"MIT"
] | null | null | null | src/libugly/edge/edge_undirected.cpp | JoshuaSBrown/GraphCluster | d9c28204b276165cf59137c9668c4dfcfa397089 | [
"MIT"
] | null | null | null | src/libugly/edge/edge_undirected.cpp | JoshuaSBrown/GraphCluster | d9c28204b276165cf59137c9668c4dfcfa397089 | [
"MIT"
] | null | null | null | #include "../../../include/ugly/edge_undirected.hpp"
namespace ugly {
const constants::EdgeType EdgeUndirected::class_type_ =
constants::EdgeType::undirected;
constants::EdgeType EdgeUndirected::getClassType() {
return EdgeUndirected::class_type_;
}
EdgeUndirected::EdgeUndirected(int vertex1, int vertex2) {
... | 24.25 | 71 | 0.71134 | JoshuaSBrown |
31f910df850174b6c416aa9f8d7948b161dd94f0 | 4,966 | cpp | C++ | qtcreator/OpensslServer/main.cpp | fasShare/cpp-study | b7d691a02324260e09e5e35c0a71650ddb37fd97 | [
"MIT"
] | null | null | null | qtcreator/OpensslServer/main.cpp | fasShare/cpp-study | b7d691a02324260e09e5e35c0a71650ddb37fd97 | [
"MIT"
] | null | null | null | qtcreator/OpensslServer/main.cpp | fasShare/cpp-study | b7d691a02324260e09e5e35c0a71650ddb37fd97 | [
"MIT"
] | null | null | null | #include <errno.h>
#include <unistd.h>
#include <malloc.h>
#include <string.h>
#include <arpa/inet.h>
#include <sys/socket.h>
#include <sys/types.h>
#include <netinet/in.h>
#include <resolv.h>
#include "openssl/ssl.h"
#include "openssl/err.h"
#define FAIL -1
using namespace std;
int OpenListener(int port)
{ int... | 29.736527 | 108 | 0.594442 | fasShare |
31fcf4e81b3f3cf3db97cdb905df7fa14a19d415 | 376 | cpp | C++ | Group E/Round I/tests & author/tests & author/E/RABBIT/author/rabbit.cpp | riki00000/NOI-Compets-2008 | 8916dc9266c0b68853944a0c75d133dc08e0d00a | [
"MIT"
] | null | null | null | Group E/Round I/tests & author/tests & author/E/RABBIT/author/rabbit.cpp | riki00000/NOI-Compets-2008 | 8916dc9266c0b68853944a0c75d133dc08e0d00a | [
"MIT"
] | null | null | null | Group E/Round I/tests & author/tests & author/E/RABBIT/author/rabbit.cpp | riki00000/NOI-Compets-2008 | 8916dc9266c0b68853944a0c75d133dc08e0d00a | [
"MIT"
] | 1 | 2019-02-27T16:16:17.000Z | 2019-02-27T16:16:17.000Z | #include <iostream>
using namespace std;
int main()
{ int a,b,c;
cin>>a>>b>>c;
if (a == 1) cout<<"(\\_/)\n";
else if (a == 2) cout<<"(o.o)\n";
else if (a == 3) cout<<"(_._)\n";
if (b == 1) cout<<"(\\_/)\n";
else if (b == 2) cout<<"(o.o)\n";
else if (b == 3) cout<<"(_._)\n";
if (c == 1) cout<<"(\\_/)\n";
else if (c == 2... | 23.5 | 34 | 0.454787 | riki00000 |
ee01f01a415005bdbfbf3b595d82a1f10ede00c5 | 15,926 | cpp | C++ | src/DesignRuleChecker.cpp | k2973363/PcbRouter | ec7befb1ff924dbe398cccb93088ccbbfff9dfd8 | [
"BSD-3-Clause"
] | 11 | 2020-02-13T22:15:53.000Z | 2021-11-04T02:37:46.000Z | src/DesignRuleChecker.cpp | k2973363/PcbRouter | ec7befb1ff924dbe398cccb93088ccbbfff9dfd8 | [
"BSD-3-Clause"
] | 4 | 2019-12-23T17:17:05.000Z | 2020-11-04T16:05:42.000Z | src/DesignRuleChecker.cpp | k2973363/PcbRouter | ec7befb1ff924dbe398cccb93088ccbbfff9dfd8 | [
"BSD-3-Clause"
] | 7 | 2020-05-23T01:49:19.000Z | 2021-09-08T09:56:34.000Z | #include "DesignRuleChecker.h"
int DesignRuleChecker::checkAcuteAngleViolationBetweenTracesAndPads() {
std::cout << "Starting " << __FUNCTION__ << "()..." << std::endl;
std::cout << std::fixed << std::setprecision((int)round(std::log(mInputPrecision)));
int numViolations = 0;
// Iterate nets
for ... | 51.374194 | 188 | 0.538867 | k2973363 |
ee02f664246c6cfa29fe97715ec872f61385bd8c | 380 | cpp | C++ | tram.cpp | piyushmishra12/codeforces-practice | 4ce977a41aa0ac919a08c0b47d95bb7b3ff9468f | [
"MIT"
] | null | null | null | tram.cpp | piyushmishra12/codeforces-practice | 4ce977a41aa0ac919a08c0b47d95bb7b3ff9468f | [
"MIT"
] | null | null | null | tram.cpp | piyushmishra12/codeforces-practice | 4ce977a41aa0ac919a08c0b47d95bb7b3ff9468f | [
"MIT"
] | null | null | null | #include<iostream>
#include<algorithm>
using namespace std;
int main()
{
int n, i;
cin>> n;
int enter[n], exit[n], net_enter[n];
for(i = 0; i < n; i++)
{
cin>> exit[i];
cin>> enter[i];
}
net_enter[0] = enter[0];
for(i = 1; i < n; i++)
{
net_enter[i] = net_enter[i - 1] - exit[i] + enter[i];
}
sort(net_e... | 17.272727 | 55 | 0.563158 | piyushmishra12 |
ee093f7c722eee7467fd46465a2a21fd56584c3b | 334 | hpp | C++ | include/Node.hpp | Algorithms-and-Data-Structures-2021/semester-work-suffix-tree | a91dcaa869cd2c144869901247d16199e027e141 | [
"MIT"
] | null | null | null | include/Node.hpp | Algorithms-and-Data-Structures-2021/semester-work-suffix-tree | a91dcaa869cd2c144869901247d16199e027e141 | [
"MIT"
] | null | null | null | include/Node.hpp | Algorithms-and-Data-Structures-2021/semester-work-suffix-tree | a91dcaa869cd2c144869901247d16199e027e141 | [
"MIT"
] | 1 | 2021-05-22T19:20:20.000Z | 2021-05-22T19:20:20.000Z | #pragma once
#include "SuffixTree.hpp"
#include "Constants.hpp"
#include <algorithm>
namespace itis {
struct Node {
int start, end, slink;
int next[ALPHABET_SIZE]; // if there is an edge from node starting with certain ASCII letter
int edge_length(int pos) {
return std::min(end, pos + 1) - start;... | 19.647059 | 96 | 0.661677 | Algorithms-and-Data-Structures-2021 |
ee0ce34ba34e86595c7861d9bacbddab83798457 | 1,494 | cpp | C++ | LongestPalindromicSubstring.cpp | hgfeaon/leetcode | 1e2a562bd8341fc57a02ecff042379989f3361ea | [
"BSD-3-Clause"
] | null | null | null | LongestPalindromicSubstring.cpp | hgfeaon/leetcode | 1e2a562bd8341fc57a02ecff042379989f3361ea | [
"BSD-3-Clause"
] | null | null | null | LongestPalindromicSubstring.cpp | hgfeaon/leetcode | 1e2a562bd8341fc57a02ecff042379989f3361ea | [
"BSD-3-Clause"
] | null | null | null | #include <iostream>
#include <cstdlib>
#include <string>
#include <vector>
using namespace std;
class Solution {
private:
const char sep_char = '\1';
public:
string longestPalindrome(string s) {
int max_len = 0;
int len = s.length();
if (len <= 1) return s;
string... | 21.652174 | 67 | 0.394913 | hgfeaon |
ee0d1fc6705ab1343fd8846b3e0a89896f6e86e8 | 1,675 | hpp | C++ | graph/edmonds_karp.hpp | fumiphys/programming_contest | b9466e646045e1c64571af2a1e64813908e70841 | [
"MIT"
] | 7 | 2019-04-30T14:25:40.000Z | 2020-12-19T17:38:11.000Z | graph/edmonds_karp.hpp | fumiphys/programming_contest | b9466e646045e1c64571af2a1e64813908e70841 | [
"MIT"
] | 46 | 2018-09-19T16:42:09.000Z | 2020-05-07T09:05:08.000Z | graph/edmonds_karp.hpp | fumiphys/programming_contest | b9466e646045e1c64571af2a1e64813908e70841 | [
"MIT"
] | null | null | null | /*
* Library for Edmonds Karp
*/
#ifndef _EDMONDS_KARP_H_
#define _EDMONDS_KARP_H_
#include <climits>
#include <vector>
#include <queue>
#include <utility>
#include <algorithm>
#include <limits>
using namespace std;
template <typename T>
struct edge {int to; T cap; int rev;};
template <typename T>
struct Graph{
i... | 23.928571 | 65 | 0.518806 | fumiphys |
ee0e95c13a708e09aa3b0df85bc3e3bc0c3a3349 | 6,194 | cc | C++ | src/xzero/http/hpack/Parser-test.cc | pjsaksa/x0 | 96b69e5a54b006e3d929b9934c2708f7967371bb | [
"MIT"
] | 24 | 2016-07-10T08:05:11.000Z | 2021-11-16T10:53:48.000Z | src/xzero/http/hpack/Parser-test.cc | pjsaksa/x0 | 96b69e5a54b006e3d929b9934c2708f7967371bb | [
"MIT"
] | 14 | 2015-04-12T10:45:26.000Z | 2016-06-28T22:27:50.000Z | src/xzero/http/hpack/Parser-test.cc | pjsaksa/x0 | 96b69e5a54b006e3d929b9934c2708f7967371bb | [
"MIT"
] | 4 | 2016-10-05T17:51:38.000Z | 2020-04-20T07:45:23.000Z | // This file is part of the "x0" project, http://github.com/christianparpart/x0>
// (c) 2009-2018 Christian Parpart <christian@parpart.family>
//
// Licensed under the MIT License (the "License"); you may not use this
// file except in compliance with the License. You may obtain a copy of
// the License at: http://op... | 27.775785 | 82 | 0.611075 | pjsaksa |
ee17950bcdf71de7b006e8586be7abefaf3b17ff | 2,343 | cc | C++ | src/tools/binary_errors.cc | walkingeyerobot/wasp | 882f051f61af14308829686fa2b79f864ea1009d | [
"Apache-2.0"
] | 47 | 2020-10-24T18:29:12.000Z | 2022-03-31T02:08:17.000Z | src/tools/binary_errors.cc | walkingeyerobot/wasp | 882f051f61af14308829686fa2b79f864ea1009d | [
"Apache-2.0"
] | 27 | 2020-10-23T17:12:48.000Z | 2021-09-09T18:02:24.000Z | src/tools/binary_errors.cc | walkingeyerobot/wasp | 882f051f61af14308829686fa2b79f864ea1009d | [
"Apache-2.0"
] | 13 | 2020-10-23T06:28:12.000Z | 2022-03-14T10:08:01.000Z | //
// Copyright 2020 WebAssembly Community Group participants
//
// 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... | 29.658228 | 77 | 0.647887 | walkingeyerobot |
ee1ea1d4d631eccf7690ba030ace94510499911a | 5,456 | cpp | C++ | src/util/sll/regexp.cpp | MellonQ/leechcraft | 71cbb238d2dade56b3865278a6a8e6a58c217fc5 | [
"BSL-1.0"
] | null | null | null | src/util/sll/regexp.cpp | MellonQ/leechcraft | 71cbb238d2dade56b3865278a6a8e6a58c217fc5 | [
"BSL-1.0"
] | null | null | null | src/util/sll/regexp.cpp | MellonQ/leechcraft | 71cbb238d2dade56b3865278a6a8e6a58c217fc5 | [
"BSL-1.0"
] | null | null | null | /**********************************************************************
* LeechCraft - modular cross-platform feature rich internet client.
* Copyright (C) 2006-2014 Georg Rudoy
*
* Boost Software License - Version 1.0 - August 17th, 2003
*
* Permission is hereby granted, free of charge, to any person or organiz... | 20.745247 | 93 | 0.649194 | MellonQ |
ee1ecca359fa54dde1bee94d93f2c071771ad0c4 | 22,690 | cpp | C++ | src/strpp.cpp | cjheath/strpp | 5de24ecdfbbb8aeb70a4144f50c5e7a13eb5711f | [
"MIT"
] | 4 | 2022-01-12T08:41:19.000Z | 2022-03-08T15:36:05.000Z | src/strpp.cpp | cjheath/strpp | 5de24ecdfbbb8aeb70a4144f50c5e7a13eb5711f | [
"MIT"
] | null | null | null | src/strpp.cpp | cjheath/strpp | 5de24ecdfbbb8aeb70a4144f50c5e7a13eb5711f | [
"MIT"
] | null | null | null | /*
* Unicode Strings
*
* String Value library:
* - By-value semantics with mutation
* - Thread-safe content sharing and garbage collection using atomic reference counting
* - Substring support using "slices" (substrings using shared content)
* - Unicode support using UTF-8
* - Character indexing, not byte offse... | 23.709509 | 110 | 0.652975 | cjheath |
ee21efbdea5cdfb86caa639599d978d1ace03122 | 23,457 | cpp | C++ | src/SoyH264.cpp | SoylentGraham/ofxSoylent | 69ed35ba58e51f381c6ddccbdbd7148da32507a2 | [
"MIT"
] | 16 | 2016-03-04T02:44:11.000Z | 2021-08-08T18:48:37.000Z | src/SoyH264.cpp | SoylentGraham/ofxSoylent | 69ed35ba58e51f381c6ddccbdbd7148da32507a2 | [
"MIT"
] | 2 | 2015-11-19T11:28:43.000Z | 2020-05-05T09:25:50.000Z | src/SoyH264.cpp | SoylentGraham/ofxSoylent | 69ed35ba58e51f381c6ddccbdbd7148da32507a2 | [
"MIT"
] | 4 | 2017-01-06T06:09:34.000Z | 2019-06-25T17:12:29.000Z | #include "SoyH264.h"
size_t H264::GetNaluLengthSize(SoyMediaFormat::Type Format)
{
switch ( Format )
{
case SoyMediaFormat::H264_8: return 1;
case SoyMediaFormat::H264_16: return 2;
case SoyMediaFormat::H264_32: return 4;
case SoyMediaFormat::H264_ES:
case SoyMediaFormat::H264_SPS_ES:
case SoyMedia... | 24.613851 | 180 | 0.689432 | SoylentGraham |
ee270da9bd3331a6f82ae623113725a2f3c02b10 | 4,359 | cpp | C++ | src/interpolation.cpp | NChechulin/spline-interpolation | 34333b885c435d5dfd1ab892a9cc8a79e016c448 | [
"MIT"
] | 1 | 2021-04-26T14:15:20.000Z | 2021-04-26T14:15:20.000Z | src/interpolation.cpp | NChechulin/spline-interpolation | 34333b885c435d5dfd1ab892a9cc8a79e016c448 | [
"MIT"
] | null | null | null | src/interpolation.cpp | NChechulin/spline-interpolation | 34333b885c435d5dfd1ab892a9cc8a79e016c448 | [
"MIT"
] | null | null | null | #include "interpolation.h"
#include <QTextStream>
#include <cmath>
#include <fstream>
#include <vector>
#include "polynomial.h"
const double EPS = 1e-6;
Interpolation Interpolation::FromFile(QString path) {
Interpolation result;
QFile file(path);
if (!file.open(QIODevice::ReadOnly)) {
throw std::runtime_er... | 28.677632 | 83 | 0.561367 | NChechulin |
ee28152ca589510f65d2def7dd44083bfdc1b6d9 | 6,022 | hpp | C++ | file/Json.hpp | CltKitakami/MyLib | d2dc4fb06ea5c3379a1818b49b0ecf13f8cd2b36 | [
"MIT"
] | null | null | null | file/Json.hpp | CltKitakami/MyLib | d2dc4fb06ea5c3379a1818b49b0ecf13f8cd2b36 | [
"MIT"
] | null | null | null | file/Json.hpp | CltKitakami/MyLib | d2dc4fb06ea5c3379a1818b49b0ecf13f8cd2b36 | [
"MIT"
] | null | null | null | #ifndef _JSON_HPP_
#define _JSON_HPP_
#include <string>
#include <vector>
#include <list>
#include <map>
#include "common/Exception.hpp"
class JsonArray;
class JsonArrayAst;
class JsonObject;
class JsonObjectAst;
class JsonValue
{
public:
typedef enum Type
{
NULL_VALUE,
STRING,
NUMBER,
OBJECT,
ARRAY,
... | 23.615686 | 93 | 0.688808 | CltKitakami |
0c5387e3cc3b310ac61a54a682a74767df2ea966 | 4,385 | hpp | C++ | Tools/RegistersGenerator/GD32VF103/timer6registers.hpp | snorkysnark/CortexLib | 0db035332ebdfbebf21ca36e5e04b78a5a908a49 | [
"MIT"
] | 22 | 2019-09-07T22:38:01.000Z | 2022-01-31T21:35:55.000Z | Tools/RegistersGenerator/GD32VF103/timer6registers.hpp | snorkysnark/CortexLib | 0db035332ebdfbebf21ca36e5e04b78a5a908a49 | [
"MIT"
] | null | null | null | Tools/RegistersGenerator/GD32VF103/timer6registers.hpp | snorkysnark/CortexLib | 0db035332ebdfbebf21ca36e5e04b78a5a908a49 | [
"MIT"
] | 9 | 2019-09-22T11:26:24.000Z | 2022-03-21T10:53:15.000Z | /*******************************************************************************
* Filename : timer6registers.hpp
*
* Details : Basic-timers. This header file is auto-generated for GD32VF103
* device.
*
*
*******************************************************************************/
#if !d... | 37.801724 | 107 | 0.692132 | snorkysnark |
0c5e3aa49b9a7c1215e16b15156836dbc2b0291e | 2,547 | tpp | C++ | util/vecs.tpp | Mogami95/GMiner | d80c0fbad2f860d8cf1585440b57a2637993fb42 | [
"Apache-2.0"
] | 64 | 2018-05-15T01:57:55.000Z | 2021-12-14T01:49:18.000Z | util/vecs.tpp | Mogami95/GMiner | d80c0fbad2f860d8cf1585440b57a2637993fb42 | [
"Apache-2.0"
] | 3 | 2019-11-28T12:10:09.000Z | 2021-11-03T15:16:06.000Z | util/vecs.tpp | Mogami95/GMiner | d80c0fbad2f860d8cf1585440b57a2637993fb42 | [
"Apache-2.0"
] | 24 | 2018-05-15T01:57:22.000Z | 2021-11-24T14:09:14.000Z | //Copyright 2018 Husky Data Lab, CUHK
//Authors: Hongzhi Chen, Miao Liu
template <class KeyT, class MessageT>
MsgPair<KeyT, MessageT>::MsgPair()
{
}
template <class KeyT, class MessageT>
MsgPair<KeyT, MessageT>::MsgPair(KeyT v1, MessageT v2)
{
key = v1;
msg = v2;
}
template <class KeyT, class MessageT>
inline boo... | 21.403361 | 90 | 0.638398 | Mogami95 |
0c5f4788784a52924e4bb52b314a86844da55221 | 4,448 | cpp | C++ | src/trashboy3k.cpp | nlang/tb3k | 6e19b47147081f2a68443e5b29861faee67dbe09 | [
"MIT"
] | null | null | null | src/trashboy3k.cpp | nlang/tb3k | 6e19b47147081f2a68443e5b29861faee67dbe09 | [
"MIT"
] | null | null | null | src/trashboy3k.cpp | nlang/tb3k | 6e19b47147081f2a68443e5b29861faee67dbe09 | [
"MIT"
] | null | null | null | #include "trashboy3k.h"
#define FLASH_LED_PIN 10
#define SPEAKER_PIN 9
#define OLED_DISPLAY_TYPE &SH1106_128x64
#define OLED_I2C_ADDRESS 0x3C // I2C address of OLED display
#define EEPROM_DATE_AREA_START 512
#define MAX_NUMBER_OF_DATES_IN_MEMORY 10
#define ACK_TRASHOUT_DATE_INTERRUPT_PIN 3
#define ACK_TRASHOUT_DATE_IN... | 26.634731 | 115 | 0.682554 | nlang |
0c643b724e962346eda2ddbfabbcf7c987c5aec9 | 3,713 | cpp | C++ | tools/viewer/SkottieSlide2.cpp | ndsol/subskia | 9a8f6e5ffc6676281a4389aa1503ba6c4352eaca | [
"BSD-3-Clause"
] | null | null | null | tools/viewer/SkottieSlide2.cpp | ndsol/subskia | 9a8f6e5ffc6676281a4389aa1503ba6c4352eaca | [
"BSD-3-Clause"
] | null | null | null | tools/viewer/SkottieSlide2.cpp | ndsol/subskia | 9a8f6e5ffc6676281a4389aa1503ba6c4352eaca | [
"BSD-3-Clause"
] | null | null | null | /*
* Copyright 2017 Google Inc.
*
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
#include "SkottieSlide.h"
#include "SkAnimTimer.h"
#include "SkCanvas.h"
#include "Skottie.h"
#include "SkOSFile.h"
#include "SkOSPath.h"
#include "SkStream.h"
const int CEL... | 28.782946 | 95 | 0.603016 | ndsol |
0c7c8b823c53868261dc861515c7f334ab885366 | 206 | hpp | C++ | include/xnn/layers/pooling.hpp | ktnyt/xdfa | 962ef8f99150556272ff87c7b37494fd87f5fe79 | [
"MIT"
] | null | null | null | include/xnn/layers/pooling.hpp | ktnyt/xdfa | 962ef8f99150556272ff87c7b37494fd87f5fe79 | [
"MIT"
] | null | null | null | include/xnn/layers/pooling.hpp | ktnyt/xdfa | 962ef8f99150556272ff87c7b37494fd87f5fe79 | [
"MIT"
] | null | null | null | #ifndef __XNN_LAYERS_POOLING_HPP__
#define __XNN_LAYERS_POOLING_HPP__
#include "xnn/layers/pooling/average_pooling.hpp"
#include "xnn/layers/pooling/max_pooling.hpp"
#endif // __XNN_LAYERS_POOLING_HPP__
| 25.75 | 49 | 0.839806 | ktnyt |
0c7dba69a42bc938712778de215e1a6ad3cc6de6 | 821 | cpp | C++ | challenge Pattern/Assignment/Assignment4/prob2.1.cpp | sgpritam/DSAlgo | 3e0e6b19d4f8978b2fc3be48195705a285dbdce8 | [
"MIT"
] | 1 | 2020-03-06T21:05:14.000Z | 2020-03-06T21:05:14.000Z | challenge Pattern/Assignment/Assignment4/prob2.1.cpp | sgpritam/DSAlgo | 3e0e6b19d4f8978b2fc3be48195705a285dbdce8 | [
"MIT"
] | 2 | 2020-03-09T05:08:14.000Z | 2020-03-09T05:14:09.000Z | challenge Pattern/Assignment/Assignment4/prob2.1.cpp | sgpritam/DSAlgo | 3e0e6b19d4f8978b2fc3be48195705a285dbdce8 | [
"MIT"
] | null | null | null | #include <iostream>
using namespace std;
int main() {
int n;
cin>>n;
for(int i=1;i<=n/2+1;i++)
{
for(int space=1;space<=n/2-i+1;space++)
{
cout<<" ";
}
for(int j=1;j<=2*i-1;j++)
{
if(j==1 || j==2*i-1)
{
cout<<"*"... | 17.104167 | 47 | 0.267966 | sgpritam |
0c876c1c227c760ff856b96adf9a78cd92613320 | 132 | cpp | C++ | examples/ittapi/boo.cpp | varphone/hunter | 14a6b9a132d78ed0828497c7e8d9b42951209243 | [
"BSD-2-Clause"
] | 440 | 2019-08-25T13:07:04.000Z | 2022-03-30T21:57:15.000Z | examples/ittapi/boo.cpp | varphone/hunter | 14a6b9a132d78ed0828497c7e8d9b42951209243 | [
"BSD-2-Clause"
] | 401 | 2019-08-29T08:56:55.000Z | 2022-03-30T12:39:34.000Z | examples/ittapi/boo.cpp | varphone/hunter | 14a6b9a132d78ed0828497c7e8d9b42951209243 | [
"BSD-2-Clause"
] | 162 | 2019-09-02T13:31:36.000Z | 2022-03-30T09:16:54.000Z | #include <ittnotify.h>
int main() {
// pause data collection:
__itt_pause();
// Start data collection
__itt_resume();
}
| 13.2 | 27 | 0.643939 | varphone |
0c8b5808bcb5b95335ee6beb8f70aa6f8caa3acb | 713 | cpp | C++ | src/ast/InterfaceMethodDeclaration.cpp | skylang/sky | 518add25e6a101ca2701b3c6bea977b0e76b340e | [
"MIT"
] | 3 | 2020-07-17T05:10:56.000Z | 2020-08-02T22:13:50.000Z | src/ast/InterfaceMethodDeclaration.cpp | skylang/sky | 518add25e6a101ca2701b3c6bea977b0e76b340e | [
"MIT"
] | null | null | null | src/ast/InterfaceMethodDeclaration.cpp | skylang/sky | 518add25e6a101ca2701b3c6bea977b0e76b340e | [
"MIT"
] | null | null | null | // Copyright (c) 2018 Stephan Unverwerth
// This code is licensed under MIT license (See LICENSE for details)
#include "InterfaceMethodDeclaration.h"
#include "Parameter.h"
#include "Expression.h"
#include <sstream>
namespace Sky {
std::string InterfaceMethodDeclaration::getDescription() {
std::stringstr... | 29.708333 | 81 | 0.57784 | skylang |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.