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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
0028ca152d609c7911fa1dbf0f266d8c7ff5441c | 210 | cpp | C++ | Zerojudge/d493.cpp | w181496/OJ | 67d1d32770376865eba8a9dd1767e97dae68989a | [
"MIT"
] | 9 | 2017-10-08T16:22:03.000Z | 2021-08-20T09:32:17.000Z | Zerojudge/d493.cpp | w181496/OJ | 67d1d32770376865eba8a9dd1767e97dae68989a | [
"MIT"
] | null | null | null | Zerojudge/d493.cpp | w181496/OJ | 67d1d32770376865eba8a9dd1767e97dae68989a | [
"MIT"
] | 2 | 2018-01-15T16:35:44.000Z | 2019-03-21T18:30:04.000Z | #include <iostream>
#include <cmath>
using namespace std;
int main()
{
long long int a,b,sum;
while(cin >> a >> b)
{
sum=pow(a,b);
cout<<sum<<endl;
}
return 0;
}
| 15 | 27 | 0.490476 | w181496 |
002aefd2d03a44b50c728831e5c33f7bcfd0986c | 58,550 | cpp | C++ | src/prod/ktl/src/src/kbitmap.cpp | vishnuk007/service-fabric | d0afdea185ae932cc3c9eacf179692e6fddbc630 | [
"MIT"
] | 1 | 2020-06-15T04:33:36.000Z | 2020-06-15T04:33:36.000Z | src/prod/ktl/src/src/kbitmap.cpp | vishnuk007/service-fabric | d0afdea185ae932cc3c9eacf179692e6fddbc630 | [
"MIT"
] | null | null | null | src/prod/ktl/src/src/kbitmap.cpp | vishnuk007/service-fabric | d0afdea185ae932cc3c9eacf179692e6fddbc630 | [
"MIT"
] | null | null | null | /*++
Module Name:
kbitmap.cpp
Abstract:
This file contains the user mode and kernel mode implementations of a KBitmap object.
Author:
Norbert P. Kusters (norbertk) 7-Oct-2010
Environment:
Kernel mode and User mode
Notes:
Revision History:
--*/
#include <ktl.h>
/*++
Note:
Bits are... | 22.407195 | 129 | 0.591631 | vishnuk007 |
002c5adea58d6ee8209c2dd80bb3a6fda007dedd | 6,438 | cxx | C++ | vtkm/filter/testing/UnitTestContourFilterCustomPolicy.cxx | yisyuanliou/VTK-m | cc483c8c2319a78b58b3ab849da8ca448e896220 | [
"BSD-3-Clause"
] | null | null | null | vtkm/filter/testing/UnitTestContourFilterCustomPolicy.cxx | yisyuanliou/VTK-m | cc483c8c2319a78b58b3ab849da8ca448e896220 | [
"BSD-3-Clause"
] | null | null | null | vtkm/filter/testing/UnitTestContourFilterCustomPolicy.cxx | yisyuanliou/VTK-m | cc483c8c2319a78b58b3ab849da8ca448e896220 | [
"BSD-3-Clause"
] | null | null | null | //============================================================================
// Copyright (c) Kitware, Inc.
// All rights reserved.
// See LICENSE.txt for details.
//
// This software is distributed WITHOUT ANY WARRANTY; without even
// the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
// PURP... | 29.39726 | 100 | 0.671326 | yisyuanliou |
002e71675b73e01f5ac02992f28b0ce56542690f | 3,280 | hpp | C++ | include/radix/Entity.hpp | atkurtul/RadixEngine | 0eb1c176a25aa9430f54d5a20ce5749360c51381 | [
"Zlib"
] | 163 | 2016-08-28T23:24:05.000Z | 2022-03-31T04:51:51.000Z | include/radix/Entity.hpp | atkurtul/RadixEngine | 0eb1c176a25aa9430f54d5a20ce5749360c51381 | [
"Zlib"
] | 144 | 2016-09-10T08:40:06.000Z | 2020-12-03T17:20:03.000Z | include/radix/Entity.hpp | atkurtul/RadixEngine | 0eb1c176a25aa9430f54d5a20ce5749360c51381 | [
"Zlib"
] | 88 | 2016-02-22T08:34:49.000Z | 2022-03-05T12:29:19.000Z | #ifndef RADIX_ENTITY_HPP
#define RADIX_ENTITY_HPP
#include <array>
#include <memory>
#include <stdexcept>
#include <type_traits>
#include <vector>
#include <RadixEntity/Entity.hpp>
#include <radix/Transform.hpp>
#include <radix/core/event/Event.hpp>
#include <radix/core/types/TimeDelta.hpp>
#include <radix/env/Util.... | 22.013423 | 99 | 0.685671 | atkurtul |
002f7ba7fa2063fecad5d66bf479f7fa0c9b35dc | 3,294 | hpp | C++ | src/dataStructure/big_set.hpp | today2098/algorithm | b180355635d3d1ea0a8c3dff40ae1c9bac636f95 | [
"MIT"
] | null | null | null | src/dataStructure/big_set.hpp | today2098/algorithm | b180355635d3d1ea0a8c3dff40ae1c9bac636f95 | [
"MIT"
] | null | null | null | src/dataStructure/big_set.hpp | today2098/algorithm | b180355635d3d1ea0a8c3dff40ae1c9bac636f95 | [
"MIT"
] | null | null | null | #ifndef ALGORITHM_BIG_SET_HPP
#define ALGORITHM_BIG_SET_HPP 1
#include <cassert>
#include <iostream>
#include <iterator>
#include <set>
#include <utility>
namespace algorithm {
// 連続した整数列の集合を管理するデータ構造.
template <typename T>
class BigSet {
std::set<std::pair<T, T> > s; // s:=(整数の集合). 連続する整数列[l,r)をpair(l,r)で表現する.... | 32.94 | 97 | 0.459016 | today2098 |
00325fc6952883dd7de40dbae4232db7d602f424 | 8,314 | hpp | C++ | include/VROSC/EffectsPanel.hpp | v0idp/virtuoso-codegen | 6f560f04822c67f092d438a3f484249072c1d21d | [
"Unlicense"
] | null | null | null | include/VROSC/EffectsPanel.hpp | v0idp/virtuoso-codegen | 6f560f04822c67f092d438a3f484249072c1d21d | [
"Unlicense"
] | null | null | null | include/VROSC/EffectsPanel.hpp | v0idp/virtuoso-codegen | 6f560f04822c67f092d438a3f484249072c1d21d | [
"Unlicense"
] | 1 | 2022-03-30T21:07:35.000Z | 2022-03-30T21:07:35.000Z | // 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: UnityEngine.MonoBehaviour
#include ... | 49.784431 | 168 | 0.73719 | v0idp |
00380314333c94863d928f3086bfdcd7c7aecd91 | 154 | hh | C++ | src/elle/reactor/http/fwd.hh | infinitio/elle | d9bec976a1217137436db53db39cda99e7024ce4 | [
"Apache-2.0"
] | 521 | 2016-02-14T00:39:01.000Z | 2022-03-01T22:39:25.000Z | src/elle/reactor/http/fwd.hh | infinitio/elle | d9bec976a1217137436db53db39cda99e7024ce4 | [
"Apache-2.0"
] | 8 | 2017-02-21T11:47:33.000Z | 2018-11-01T09:37:14.000Z | src/elle/reactor/http/fwd.hh | infinitio/elle | d9bec976a1217137436db53db39cda99e7024ce4 | [
"Apache-2.0"
] | 48 | 2017-02-21T10:18:13.000Z | 2022-03-25T02:35:20.000Z | #pragma once
namespace elle
{
namespace reactor
{
namespace http
{
class Client;
class Request;
class Service;
}
}
}
| 10.266667 | 20 | 0.564935 | infinitio |
003bf79c856e9edef356039aa65ac45b45adafa1 | 7,568 | cc | C++ | xic/src/gtkxic/gtkasmprog.cc | bernardventer/xictools | 4ea72c118679caed700dab3d49a8d36445acaec3 | [
"Apache-2.0"
] | 3 | 2020-01-26T14:18:52.000Z | 2020-12-09T20:07:22.000Z | xic/src/gtkxic/gtkasmprog.cc | chris-ayala/xictools | 4ea72c118679caed700dab3d49a8d36445acaec3 | [
"Apache-2.0"
] | null | null | null | xic/src/gtkxic/gtkasmprog.cc | chris-ayala/xictools | 4ea72c118679caed700dab3d49a8d36445acaec3 | [
"Apache-2.0"
] | 2 | 2020-01-26T14:19:02.000Z | 2021-08-14T16:33:28.000Z |
/*========================================================================*
* *
* Distributed by Whiteley Research Inc., Sunnyvale, California, USA *
* http://wrcad.com *
* Copyright (... | 38.416244 | 79 | 0.570825 | bernardventer |
003d0d2f7df3a720b416c60edb66deac7c713153 | 16,883 | cpp | C++ | P1/cwcreator.cpp | Revuj/CrossWord-Puzzle | 16348b76ffa9a7ecf1b5a159264fbfd284f5e8d4 | [
"MIT"
] | null | null | null | P1/cwcreator.cpp | Revuj/CrossWord-Puzzle | 16348b76ffa9a7ecf1b5a159264fbfd284f5e8d4 | [
"MIT"
] | null | null | null | P1/cwcreator.cpp | Revuj/CrossWord-Puzzle | 16348b76ffa9a7ecf1b5a159264fbfd284f5e8d4 | [
"MIT"
] | null | null | null | #include <sstream>
#include <string>
#include <map>
#include <algorithm>
#include <iomanip>
#include "Board.h"
#include "Dictionary.h"
using namespace std;
void option();
//==============================================================================================//
//==============================================... | 31.794727 | 167 | 0.54623 | Revuj |
004295d992bccea82c5e73d964e055ba7c050d3a | 234 | cpp | C++ | 03Section6/coding_ex4/main.cpp | barisCanCoskun/Cpp-Programming | 640a87db75dd9d31bb2dccf248b403e8b6713e1f | [
"MIT"
] | null | null | null | 03Section6/coding_ex4/main.cpp | barisCanCoskun/Cpp-Programming | 640a87db75dd9d31bb2dccf248b403e8b6713e1f | [
"MIT"
] | null | null | null | 03Section6/coding_ex4/main.cpp | barisCanCoskun/Cpp-Programming | 640a87db75dd9d31bb2dccf248b403e8b6713e1f | [
"MIT"
] | null | null | null | #include <iostream>
#include<string.h>
using namespace std;
int main ()
{
double hourly_wage{23.50};
int age;
string name;
cin >> name >> age ;
cout << name << " " << age << " " << hourly_wage << endl;
} | 16.714286 | 61 | 0.538462 | barisCanCoskun |
0046668f0ece068fa7b05468aa046c5ae8726b38 | 4,915 | cpp | C++ | s32v234_sdk/kernels/apu/sample_feature_detection_kernels/src/harris_apu.cpp | intesight/Panorama4AIWAYS | 46e1988e54a5155be3b3b47c486b3f722be00b5c | [
"WTFPL"
] | null | null | null | s32v234_sdk/kernels/apu/sample_feature_detection_kernels/src/harris_apu.cpp | intesight/Panorama4AIWAYS | 46e1988e54a5155be3b3b47c486b3f722be00b5c | [
"WTFPL"
] | null | null | null | s32v234_sdk/kernels/apu/sample_feature_detection_kernels/src/harris_apu.cpp | intesight/Panorama4AIWAYS | 46e1988e54a5155be3b3b47c486b3f722be00b5c | [
"WTFPL"
] | 2 | 2021-01-21T02:06:16.000Z | 2021-01-28T10:47:37.000Z |
/*****************************************************************************
*
* Freescale Confidential Proprietary
*
* Copyright (c) 2013 Freescale Semiconductor;
* Copyright (c) 2017 NXP
* All Rights Reserved
*
*****************************************************************************
*
* THIS SOFTWARE IS PROV... | 31.50641 | 127 | 0.58352 | intesight |
00488a8503ab9dbb45110a432a2e92a420aeb0fd | 55 | cpp | C++ | lib/libB/src/LibB.cpp | arnesor/gtest-template | a95911b34a04545a902db209197b23a6a2f00174 | [
"MIT"
] | null | null | null | lib/libB/src/LibB.cpp | arnesor/gtest-template | a95911b34a04545a902db209197b23a6a2f00174 | [
"MIT"
] | null | null | null | lib/libB/src/LibB.cpp | arnesor/gtest-template | a95911b34a04545a902db209197b23a6a2f00174 | [
"MIT"
] | null | null | null | #include "LibB.h"
LibB::LibB()
{
}
LibB::~LibB()
{
}
| 5.5 | 17 | 0.509091 | arnesor |
004b2c0b81968c7ae99f6f55391561b5d752696a | 4,357 | cpp | C++ | src/Orientations.cpp | kberryUSGS/SpiceRefactor | 1875bf6c873f084296004397ecf8f90ee5df7cef | [
"Unlicense"
] | null | null | null | src/Orientations.cpp | kberryUSGS/SpiceRefactor | 1875bf6c873f084296004397ecf8f90ee5df7cef | [
"Unlicense"
] | null | null | null | src/Orientations.cpp | kberryUSGS/SpiceRefactor | 1875bf6c873f084296004397ecf8f90ee5df7cef | [
"Unlicense"
] | null | null | null | #include "ale/Orientations.h"
#include "ale/InterpUtils.h"
namespace ale {
Orientations::Orientations(
const std::vector<Rotation> &rotations,
const std::vector<double> ×,
const std::vector<Vec3d> &avs,
const Rotation &const_rot,
const std::vector<int> const_frames,
const std::vector<i... | 29.439189 | 153 | 0.676153 | kberryUSGS |
004caa9de0b32d3f2e67f03660f47e8c1433b8b7 | 3,506 | cpp | C++ | util/SingleWriterValueListTest.cpp | denistsoi/yoga | a2aa1b7fca7e3573fba3d1978b29403fc0820da6 | [
"MIT"
] | 28 | 2019-08-01T10:47:42.000Z | 2022-01-05T13:01:15.000Z | util/SingleWriterValueListTest.cpp | denistsoi/yoga | a2aa1b7fca7e3573fba3d1978b29403fc0820da6 | [
"MIT"
] | 5 | 2021-03-09T15:17:53.000Z | 2022-02-12T19:15:11.000Z | util/SingleWriterValueListTest.cpp | denistsoi/yoga | a2aa1b7fca7e3573fba3d1978b29403fc0820da6 | [
"MIT"
] | 7 | 2019-12-31T01:01:52.000Z | 2021-11-23T17:18:52.000Z | /*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the LICENSE
* file in the root directory of this source tree.
*/
#include <gtest/gtest.h>
#include <yoga/util/SingleWriterValueList.h>
#include <numeric>
#include <type_traits>
#include <unordered... | 21.378049 | 77 | 0.680548 | denistsoi |
004d47bf2920f6201d6d4e30ddd895c44330c971 | 2,615 | hpp | C++ | src/Switch.System.Windows.Forms/include/Switch/System/Windows/Forms/FormBorderStyle.hpp | victor-timoshin/Switch | 8e8e687a8bdc4f79d482680da3968e9b3e464b8b | [
"MIT"
] | 4 | 2020-02-11T13:22:58.000Z | 2022-02-24T00:37:43.000Z | src/Switch.System.Windows.Forms/include/Switch/System/Windows/Forms/FormBorderStyle.hpp | sgf/Switch | 8e8e687a8bdc4f79d482680da3968e9b3e464b8b | [
"MIT"
] | null | null | null | src/Switch.System.Windows.Forms/include/Switch/System/Windows/Forms/FormBorderStyle.hpp | sgf/Switch | 8e8e687a8bdc4f79d482680da3968e9b3e464b8b | [
"MIT"
] | 2 | 2020-02-01T02:19:01.000Z | 2021-12-30T06:44:00.000Z | /// @file
/// @brief Contains Switch::System::Windows::Forms::BorderStyle enum.
#pragma once
#include <Switch/System/Enum.hpp>
/// @brief The Switch namespace contains all fundamental classes to access Hardware, Os, System, and more.
namespace Switch {
/// @brief The Switch::System namespace contains fundamental cl... | 46.696429 | 284 | 0.690631 | victor-timoshin |
005220553f1bdd10ea6b7953baec3e9a829eca3d | 1,505 | cpp | C++ | src/homework/04_iteration/main.cpp | acc-cosc-1337-spring-2022/acc-cosc-1337-spring-2022-AndrewGraz | 9d00dc54b0c12faf7543fefbca6830ecd6494a2b | [
"MIT"
] | null | null | null | src/homework/04_iteration/main.cpp | acc-cosc-1337-spring-2022/acc-cosc-1337-spring-2022-AndrewGraz | 9d00dc54b0c12faf7543fefbca6830ecd6494a2b | [
"MIT"
] | null | null | null | src/homework/04_iteration/main.cpp | acc-cosc-1337-spring-2022/acc-cosc-1337-spring-2022-AndrewGraz | 9d00dc54b0c12faf7543fefbca6830ecd6494a2b | [
"MIT"
] | null | null | null | //write include statements
#include<iostream>
#include "dna.h"
//write using statements
using std::cout; using std::cin;
/*
Write code that prompts user to enter 1 for Get GC Content,
or 2 for Get DNA Complement. The program will prompt user for a
DNA string and call either get gc content or get dna complement
func... | 22.132353 | 76 | 0.501661 | acc-cosc-1337-spring-2022 |
0052539f301eb8e184530ec7b295e93e2ad86b3c | 1,260 | hpp | C++ | implementations/Vulkan/buffer.hpp | rsayers/abstract-gpu | 48176fcb88bde7d56de662c9e49d3d0e562819e1 | [
"MIT"
] | 41 | 2016-03-25T18:14:37.000Z | 2022-01-20T11:16:52.000Z | implementations/Vulkan/buffer.hpp | rsayers/abstract-gpu | 48176fcb88bde7d56de662c9e49d3d0e562819e1 | [
"MIT"
] | 4 | 2016-05-05T22:08:01.000Z | 2021-12-10T13:06:55.000Z | implementations/Vulkan/buffer.hpp | rsayers/abstract-gpu | 48176fcb88bde7d56de662c9e49d3d0e562819e1 | [
"MIT"
] | 9 | 2016-05-23T01:51:25.000Z | 2021-08-21T15:32:37.000Z | #ifndef AGPU_VULKAN_BUFFER_HPP
#define AGPU_VULKAN_BUFFER_HPP
#include "device.hpp"
#include "../Common/spinlock.hpp"
namespace AgpuVulkan
{
using AgpuCommon::Spinlock;
class AVkBuffer : public agpu::buffer
{
public:
AVkBuffer(const agpu::device_ref &device);
~AVkBuffer();
static agpu::buffer_ref create... | 29.302326 | 132 | 0.785714 | rsayers |
005f668e5878d2fb936b25bdd75c3a7f2aacd444 | 1,968 | cpp | C++ | source/solver/solution_finder.cpp | GreenLightning/circuit500_solver | b4e01c67beb36a98ea84aaf1c316b50315f497b1 | [
"MIT"
] | 1 | 2015-12-01T07:15:04.000Z | 2015-12-01T07:15:04.000Z | source/solver/solution_finder.cpp | GreenLightning/circuit500_solver | b4e01c67beb36a98ea84aaf1c316b50315f497b1 | [
"MIT"
] | null | null | null | source/solver/solution_finder.cpp | GreenLightning/circuit500_solver | b4e01c67beb36a98ea84aaf1c316b50315f497b1 | [
"MIT"
] | null | null | null | #include "board.hpp"
#include "configuration.hpp"
#include "solution_list.hpp"
#include "solution_finder.hpp"
Solution_Finder::Solution_Finder(int max_taps) :
max_taps(max_taps), solutions_checked(0) {}
void Solution_Finder::find(const Configuration& configuration, Board_Position start) {
++solutions_checked;
sta... | 35.781818 | 124 | 0.700203 | GreenLightning |
0063a8fff51b0a6b5dd2e041d5e6a37f6aea5742 | 5,674 | cpp | C++ | CommonModules/RenderStatesManager.cpp | AlexWIN32/SSAODemo | 56bee973b5b8fb9483918042c11ee107a262babc | [
"MIT"
] | null | null | null | CommonModules/RenderStatesManager.cpp | AlexWIN32/SSAODemo | 56bee973b5b8fb9483918042c11ee107a262babc | [
"MIT"
] | null | null | null | CommonModules/RenderStatesManager.cpp | AlexWIN32/SSAODemo | 56bee973b5b8fb9483918042c11ee107a262babc | [
"MIT"
] | 1 | 2019-12-30T10:53:35.000Z | 2019-12-30T10:53:35.000Z | /*******************************************************************************
Author: Alexey Frolov (alexwin32@mail.ru)
This software is distributed freely under the terms of the MIT License.
See "LICENSE" or "http://copyfree.org/content/standard/licenses/mit/license.txt".
******************************... | 35.4625 | 144 | 0.711315 | AlexWIN32 |
0069695e6b14339141f04d64e60be300b2ad228a | 747 | cpp | C++ | test.cpp | Nk125/CppMimeTypes | 3274ba025427e34561253a3564a7bfae8deb5ae3 | [
"MIT"
] | 1 | 2022-03-04T22:42:14.000Z | 2022-03-04T22:42:14.000Z | test.cpp | Nk125/CppMimeTypes | 3274ba025427e34561253a3564a7bfae8deb5ae3 | [
"MIT"
] | null | null | null | test.cpp | Nk125/CppMimeTypes | 3274ba025427e34561253a3564a7bfae8deb5ae3 | [
"MIT"
] | null | null | null | // Requires: https://github.com/renatoGarcia/icecream-cpp
#include "icecream.hpp"
#include "MimeTypes.hpp"
#include <string>
#include <vector>
int main() {
std::string buf;
std::vector<std::string> exts;
try {
buf = nk125::MimeTypes::getType(".txt");
IC(buf);
buf = nk125::MimeType... | 21.970588 | 63 | 0.546185 | Nk125 |
007883a84982a529b7496176e975b6127de42d76 | 1,963 | cpp | C++ | Misc/UnusedCode/graphics/rojue_BitmapFont.cpp | RobinSchmidt/RS-MET-Preliminary | 6c01cbaad7cce3daa3293c444dd9e4b74e5ebfbe | [
"FTL"
] | 34 | 2017-04-19T18:26:02.000Z | 2022-02-15T17:47:26.000Z | Misc/UnusedCode/graphics/rojue_BitmapFont.cpp | RobinSchmidt/RS-MET-Preliminary | 6c01cbaad7cce3daa3293c444dd9e4b74e5ebfbe | [
"FTL"
] | 307 | 2017-05-04T21:45:01.000Z | 2022-02-03T00:59:01.000Z | Misc/UnusedCode/graphics/rojue_BitmapFont.cpp | RobinSchmidt/RS-MET-Preliminary | 6c01cbaad7cce3daa3293c444dd9e4b74e5ebfbe | [
"FTL"
] | 4 | 2017-09-05T17:04:31.000Z | 2021-12-15T21:24:28.000Z | #include "rojue_BitmapFont.h"
using namespace rojue;
//-------------------------------------------------------------------------------------------------
// construction/destruction:
//BitmapFont* BitmapFont::instance = NULL;
BitmapFont::BitmapFont()
{
ascent = 0;
descent = 0;
defaultKerning = 1... | 19.828283 | 99 | 0.479368 | RobinSchmidt |
007afd58d99200af5a4f9ccc4712f87ee47a6a49 | 3,157 | cpp | C++ | SampleOSXCocoaPodsProject/Pods/BRCLucene/src/core/CLucene/queryParser/FastCharStream.cpp | zaubara/BRFullTextSearch | e742f223a1c203eacb576711dd57b1187aee3deb | [
"Apache-2.0"
] | 151 | 2015-01-17T06:29:38.000Z | 2022-02-17T11:27:38.000Z | SampleOSXCocoaPodsProject/Pods/BRCLucene/src/core/CLucene/queryParser/FastCharStream.cpp | yonglam/BRFullTextSearch | e742f223a1c203eacb576711dd57b1187aee3deb | [
"Apache-2.0"
] | 28 | 2015-03-01T20:14:42.000Z | 2019-07-22T09:23:54.000Z | SampleOSXCocoaPodsProject/Pods/BRCLucene/src/core/CLucene/queryParser/FastCharStream.cpp | yonglam/BRFullTextSearch | e742f223a1c203eacb576711dd57b1187aee3deb | [
"Apache-2.0"
] | 28 | 2015-03-05T13:24:12.000Z | 2022-03-26T09:16:29.000Z | /*------------------------------------------------------------------------------
* Copyright (C) 2003-2006 Ben van Klinken and the CLucene Team
*
* Distributable under the terms of either the Apache License (Version 2.0) or
* the GNU Lesser General Public License, as specified in the COPYING file.
---------------------... | 25.877049 | 122 | 0.682293 | zaubara |
00823012cf52f37b295ed5462487eca23b4cf665 | 1,107 | cpp | C++ | Triangle.cpp | hyper1423/SomeFPS | dcd353124d58e2696be7eaf44cddec17d6259629 | [
"BSD-3-Clause"
] | null | null | null | Triangle.cpp | hyper1423/SomeFPS | dcd353124d58e2696be7eaf44cddec17d6259629 | [
"BSD-3-Clause"
] | null | null | null | Triangle.cpp | hyper1423/SomeFPS | dcd353124d58e2696be7eaf44cddec17d6259629 | [
"BSD-3-Clause"
] | null | null | null | #include "triangle.hpp"
VertexArray::TypeVertices Triangle::getVertices() const {
VertexArray::TypeVertices vertices = {
{ 0.5f, 0.5f, 0.5f, 0.0f, 0.0f, 1.0f, 1.000000f, 1.000000f },
{ -0.5f, 0.5f, 0.5f, 0.0f, 0.0f, 1.0f, 1.000000f, 0.000000f },
{ -0.5f, 0.5f, -0.5f, 0.0f, 0.0f, 1.0f, 1.000000f, 1.000000... | 34.59375 | 67 | 0.563686 | hyper1423 |
0a58bb686bb8392a17c1e7aff1e3a89a485141c3 | 250 | hpp | C++ | src/testprog/cube/cube_scene.hpp | degarashi/revenant | 9e671320a5c8790f6bdd1b14934f81c37819f7b3 | [
"MIT"
] | null | null | null | src/testprog/cube/cube_scene.hpp | degarashi/revenant | 9e671320a5c8790f6bdd1b14934f81c37819f7b3 | [
"MIT"
] | null | null | null | src/testprog/cube/cube_scene.hpp | degarashi/revenant | 9e671320a5c8790f6bdd1b14934f81c37819f7b3 | [
"MIT"
] | null | null | null | #pragma once
#include "../scenebase_obj.hpp"
#include "../fpcamera.hpp"
namespace rev::test {
class CubeScene :
public TestSceneObj<CubeScene>
{
private:
FPCamera _fpc;
HDObj _cube;
struct St_Default;
public:
CubeScene();
};
}
| 14.705882 | 32 | 0.672 | degarashi |
0a5b43e9e46a0e027d33a70f9867371f7dcf2d1d | 505 | cpp | C++ | BASIC c++/managing_console_i/o_operation/formatting_with_manipulators.cpp | jattramesh/Learning_git | 5191ecc6c0c11b69b9786f2a8bdd3db7228987d6 | [
"MIT"
] | null | null | null | BASIC c++/managing_console_i/o_operation/formatting_with_manipulators.cpp | jattramesh/Learning_git | 5191ecc6c0c11b69b9786f2a8bdd3db7228987d6 | [
"MIT"
] | null | null | null | BASIC c++/managing_console_i/o_operation/formatting_with_manipulators.cpp | jattramesh/Learning_git | 5191ecc6c0c11b69b9786f2a8bdd3db7228987d6 | [
"MIT"
] | null | null | null | //
// Created by rahul on 9/8/19.
//
#include <iostream>
#include <iomanip>
using namespace std;
int main()
{
cout.setf(ios::showpos);
cout<<setw(5)<<"n"<<setw(15)<<"inverse of n"<<setw(15)<<"sum of terms "<<endl;
double term,sum=0;
for(int i=1;i<=10;i++)
{
term=1.0/float(i);
sum=sum... | 24.047619 | 129 | 0.578218 | jattramesh |
0a5c7a9bf054784f8ddbf36cd14abc6fe4dbd40b | 2,153 | cpp | C++ | Romulus/src/Engine/Math/Vector.cpp | AlanBuechner/Romulus | 20e798ac1ebe3a8b4ae9764412e6f5f8b2c6fc70 | [
"Apache-2.0"
] | null | null | null | Romulus/src/Engine/Math/Vector.cpp | AlanBuechner/Romulus | 20e798ac1ebe3a8b4ae9764412e6f5f8b2c6fc70 | [
"Apache-2.0"
] | null | null | null | Romulus/src/Engine/Math/Vector.cpp | AlanBuechner/Romulus | 20e798ac1ebe3a8b4ae9764412e6f5f8b2c6fc70 | [
"Apache-2.0"
] | null | null | null | #include <pch.h>
#include "Vector.h"
namespace Engine::Math
{
float Length(const Vector2& v)
{
return glm::length(v);
}
float Length(const Vector3& v)
{
return glm::length(v);
}
float Length(const Vector4& v)
{
return glm::length(v);
}
float LengthSqr(const Vector2& v)
{
return (v.x * v.x) + (v.y... | 16.561538 | 63 | 0.617278 | AlanBuechner |
0a5e609dae1dc24a9d28598580eef0720af21eea | 51 | hpp | C++ | src/boost_random_geometric_distribution.hpp | miathedev/BoostForArduino | 919621dcd0c157094bed4df752b583ba6ea6409e | [
"BSL-1.0"
] | 10 | 2018-03-17T00:58:42.000Z | 2021-07-06T02:48:49.000Z | src/boost_random_geometric_distribution.hpp | miathedev/BoostForArduino | 919621dcd0c157094bed4df752b583ba6ea6409e | [
"BSL-1.0"
] | 2 | 2021-03-26T15:17:35.000Z | 2021-05-20T23:55:08.000Z | src/boost_random_geometric_distribution.hpp | miathedev/BoostForArduino | 919621dcd0c157094bed4df752b583ba6ea6409e | [
"BSL-1.0"
] | 4 | 2019-05-28T21:06:37.000Z | 2021-07-06T03:06:52.000Z | #include <boost/random/geometric_distribution.hpp>
| 25.5 | 50 | 0.843137 | miathedev |
0a64c45ad183ca059d52f8ba451cf78c09a61dea | 13,378 | cpp | C++ | Blizzlike/ArcEmu/C++/World/LogonCommHandler.cpp | 499453466/Lua-Other | 43fd2b72405faf3f2074fd2a2706ef115d16faa6 | [
"Unlicense"
] | 2 | 2015-06-23T16:26:32.000Z | 2019-06-27T07:45:59.000Z | Blizzlike/ArcEmu/C++/World/LogonCommHandler.cpp | Eduardo-Silla/Lua-Other | db610f946dbcaf81b3de9801f758e11a7bf2753f | [
"Unlicense"
] | null | null | null | Blizzlike/ArcEmu/C++/World/LogonCommHandler.cpp | Eduardo-Silla/Lua-Other | db610f946dbcaf81b3de9801f758e11a7bf2753f | [
"Unlicense"
] | 3 | 2015-01-10T18:22:59.000Z | 2021-04-27T21:28:28.000Z | /*
* ArcEmu MMORPG Server
* Copyright (C) 2005-2007 Ascent Team <http://www.ascentemu.com/>
* Copyright (C) 2008-2011 <http://www.ArcEmu.org/>
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as published by
* the Free Software... | 24.546789 | 116 | 0.680147 | 499453466 |
0a65f1532563645c6a9189cef39fadbffcb42509 | 620 | hpp | C++ | src/db/Statement.hpp | sielenk/furnace | 092f047322ac8e6874f19a801f6e8e773801fad6 | [
"MIT"
] | null | null | null | src/db/Statement.hpp | sielenk/furnace | 092f047322ac8e6874f19a801f6e8e773801fad6 | [
"MIT"
] | null | null | null | src/db/Statement.hpp | sielenk/furnace | 092f047322ac8e6874f19a801f6e8e773801fad6 | [
"MIT"
] | null | null | null | // (C) 2016 Marvin Sielenkemper
#pragma once
#include "MySql.hpp"
#include <boost/any.hpp>
#include <vector>
#include <memory>
namespace db {
class ResultSet;
class Bindings;
class Statement : boost::noncopyable {
public:
Statement(MySql& mysql, std::string const& statement);
~Statement();
R... | 16.756757 | 62 | 0.683871 | sielenk |
0a6bee03e47084017e8b5390611c94f6182cc3cd | 32,022 | cpp | C++ | hi_dsp/modules/MidiPlayer.cpp | Levitanus/HISE | 8ef678ec2fcae0973cc269163404b1f9df967733 | [
"Intel"
] | 9 | 2020-04-16T01:17:27.000Z | 2022-02-25T14:13:10.000Z | hi_dsp/modules/MidiPlayer.cpp | Levitanus/HISE | 8ef678ec2fcae0973cc269163404b1f9df967733 | [
"Intel"
] | null | null | null | hi_dsp/modules/MidiPlayer.cpp | Levitanus/HISE | 8ef678ec2fcae0973cc269163404b1f9df967733 | [
"Intel"
] | 6 | 2020-05-11T22:23:15.000Z | 2022-02-24T16:52:44.000Z | /* ===========================================================================
*
* This file is part of HISE.
* Copyright 2016 Christoph Hart
*
* HISE is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation,... | 23.545588 | 160 | 0.721129 | Levitanus |
0a6e05730321c02eba15a1d170ee46a9d3b094bd | 280 | cc | C++ | string_literal.cc | micahcc/ctest | af2a789a8c610f83a7e6ef55c371c64a41492e85 | [
"MIT"
] | null | null | null | string_literal.cc | micahcc/ctest | af2a789a8c610f83a7e6ef55c371c64a41492e85 | [
"MIT"
] | null | null | null | string_literal.cc | micahcc/ctest | af2a789a8c610f83a7e6ef55c371c64a41492e85 | [
"MIT"
] | null | null | null | #include <iostream>
#include <string>
template <int N>
void foo(const char input[N]) {
std::cerr << input << std::endl;
}
int main() {
// char* str1 = "str1";
std::string str2 = "str2";
const auto str3 = "str3";
// foo(str1);
// foo(str2.c_str());
// foo(str3);
}
| 16.470588 | 34 | 0.571429 | micahcc |
0a6e69cb2fed7c9e54171ae2dee701196e9e2aa6 | 3,048 | cpp | C++ | main.cpp | subite/Profiler | 18dcaca864af8be75baf53adad6b2b572a8d1c4c | [
"WTFPL"
] | null | null | null | main.cpp | subite/Profiler | 18dcaca864af8be75baf53adad6b2b572a8d1c4c | [
"WTFPL"
] | null | null | null | main.cpp | subite/Profiler | 18dcaca864af8be75baf53adad6b2b572a8d1c4c | [
"WTFPL"
] | null | null | null | #include <iostream>
#include "Profiler.h"
#include "ProfilerUtils.h"
#include <chrono>
#include <thread>
#include <random>
#include <fstream>
using namespace std::chrono_literals;
using namespace Profiler;
namespace {
std::random_device rd_fun;
std::mt19937 gen_fun(rd_fun());
std::uniform_int_distribution<> dis_fun(... | 21.771429 | 73 | 0.634186 | subite |
0a6f7e39a93cf14eae67224eb8b7309525cb499b | 1,610 | cpp | C++ | CSES/GraphAlgorithms/building_roads.cpp | PranavReddyP16/DSA-Templates | cb68b1ced5fd4990a413ce88cdb741fdcaa6e89b | [
"MIT"
] | null | null | null | CSES/GraphAlgorithms/building_roads.cpp | PranavReddyP16/DSA-Templates | cb68b1ced5fd4990a413ce88cdb741fdcaa6e89b | [
"MIT"
] | null | null | null | CSES/GraphAlgorithms/building_roads.cpp | PranavReddyP16/DSA-Templates | cb68b1ced5fd4990a413ce88cdb741fdcaa6e89b | [
"MIT"
] | null | null | null | #include "bits/stdc++.h"
#include <ext/pb_ds/assoc_container.hpp>
#include <ext/pb_ds/tree_policy.hpp>
using namespace __gnu_pbds;
using namespace std;
using namespace std::chrono;
#define ll long long
#define ld long double
#define sz(c) ((ll)c.size())
#define ordered_set tree<int, null_type,less<int>, rb_tree_tag,t... | 19.634146 | 97 | 0.59441 | PranavReddyP16 |
0a70427ff033d54a99ca6629a224bd9379aeb86e | 6,582 | cpp | C++ | samples/threat_level/src/HudDirector.cpp | fallahn/crogine | f6cf3ade1f4e5de610d52e562bf43e852344bca0 | [
"FTL",
"Zlib"
] | 41 | 2017-08-29T12:14:36.000Z | 2022-02-04T23:49:48.000Z | samples/threat_level/src/HudDirector.cpp | fallahn/crogine | f6cf3ade1f4e5de610d52e562bf43e852344bca0 | [
"FTL",
"Zlib"
] | 11 | 2017-09-02T15:32:45.000Z | 2021-12-27T13:34:56.000Z | samples/threat_level/src/HudDirector.cpp | fallahn/crogine | f6cf3ade1f4e5de610d52e562bf43e852344bca0 | [
"FTL",
"Zlib"
] | 5 | 2020-01-25T17:51:45.000Z | 2022-03-01T05:20:30.000Z | /*-----------------------------------------------------------------------
Matt Marchant 2017
http://trederia.blogspot.com
crogine test application - Zlib license.
This software is provided 'as-is', without any express or
implied warranty.In no event will the authors be held
liable for any damages arising from the us... | 34.825397 | 95 | 0.520207 | fallahn |
0a7d538c60008cbb21ab8cba7e37d547cb0aa318 | 357 | hpp | C++ | cpp/pong/src/ceiling_floor.hpp | prakhar-s-srivastava/gdnative-demos | 83ed7e1248e69b63df256757434a7b74f9c32e51 | [
"MIT"
] | 83 | 2020-07-06T16:26:13.000Z | 2022-03-28T22:43:30.000Z | cpp/pong/src/ceiling_floor.hpp | prakhar-s-srivastava/gdnative-demos | 83ed7e1248e69b63df256757434a7b74f9c32e51 | [
"MIT"
] | 25 | 2020-06-28T02:43:41.000Z | 2022-02-24T10:05:01.000Z | cpp/pong/src/ceiling_floor.hpp | prakhar-s-srivastava/gdnative-demos | 83ed7e1248e69b63df256757434a7b74f9c32e51 | [
"MIT"
] | 31 | 2020-07-10T13:51:22.000Z | 2022-03-07T19:40:34.000Z | #ifndef CEILING_FLOOR_H
#define CEILING_FLOOR_H
#include <Area2D.hpp>
#include <Godot.hpp>
#include "ball.hpp"
class CeilingFloor : public godot::Area2D {
GODOT_CLASS(CeilingFloor, godot::Area2D)
public:
int bounce_direction = 1;
void _init() {}
void _on_area_entered(Ball *p_ball);
static void _register_meth... | 16.227273 | 43 | 0.747899 | prakhar-s-srivastava |
0a9020ca8071483a6f7f444d60257dfc5b8624bf | 768 | hpp | C++ | include/managers/event_manager.hpp | zedrex/algosketch | ff0f759f9e7e0e4ff040cf6c84334aceac47adae | [
"MIT"
] | 16 | 2021-03-27T06:20:42.000Z | 2022-03-31T16:30:37.000Z | include/managers/event_manager.hpp | zedrex/Algo-Plus-Plus | ff0f759f9e7e0e4ff040cf6c84334aceac47adae | [
"MIT"
] | 1 | 2021-07-13T07:57:41.000Z | 2021-07-13T07:57:41.000Z | include/managers/event_manager.hpp | zedrex/Algo-Plus-Plus | ff0f759f9e7e0e4ff040cf6c84334aceac47adae | [
"MIT"
] | 3 | 2021-04-03T02:58:56.000Z | 2021-06-04T18:23:49.000Z | #pragma once
#include <SFML/Graphics.hpp>
// Forward declaration of StateManager
class StateManager;
class EventManager
{
public:
EventManager(StateManager *applicationStateManager);
~EventManager();
void update();
sf::Vector2i getMousePosition();
bool isLeftKeyPressed();
bool isLeftKeyRele... | 20.210526 | 56 | 0.716146 | zedrex |
0a916cd4d0abf471e6f945802d8fe3afbd6ef2b7 | 1,892 | cpp | C++ | S3DR/lib/src/operator/camera_operator.cpp | tdenis8/S3DR | fb8f4c0c98b5571abb12a51e03229978115b099b | [
"MIT"
] | 1 | 2019-07-10T04:25:45.000Z | 2019-07-10T04:25:45.000Z | S3DR/lib/src/operator/camera_operator.cpp | tdenis8/S3DR | fb8f4c0c98b5571abb12a51e03229978115b099b | [
"MIT"
] | null | null | null | S3DR/lib/src/operator/camera_operator.cpp | tdenis8/S3DR | fb8f4c0c98b5571abb12a51e03229978115b099b | [
"MIT"
] | null | null | null | #include "camera_operator.hpp"
#include "view/view.hpp"
#include "view/camera.hpp"
#include <glm/gtc/matrix_transform.hpp>
CameraOperator::CameraOperator(View& view) : Operator(view)
{
}
CameraOperator::~CameraOperator()
{
}
int CameraOperator::OnLeftButtonDownAndMove(const MouseEventInfo& info)
{
auto& camera ... | 27.823529 | 121 | 0.649577 | tdenis8 |
0a92228a652f950e7845de791f6285f519e51153 | 37 | cpp | C++ | src/fifo.cpp | abwilson/LowLatency | cefc780eccb0426f8fe99f5f59dce347c98f13aa | [
"MIT"
] | 31 | 2015-06-26T16:38:18.000Z | 2022-03-01T03:28:08.000Z | src/fifo.cpp | abwilson/LowLatency | cefc780eccb0426f8fe99f5f59dce347c98f13aa | [
"MIT"
] | 1 | 2015-07-25T22:36:40.000Z | 2015-07-25T22:36:40.000Z | src/fifo.cpp | abwilson/LowLatency | cefc780eccb0426f8fe99f5f59dce347c98f13aa | [
"MIT"
] | 9 | 2015-06-26T18:44:31.000Z | 2019-09-04T15:13:31.000Z | #include <../include/L3/util/fifo.h>
| 18.5 | 36 | 0.675676 | abwilson |
0a95d2a57fc5b505a897d74485e79173b8b16250 | 961 | tcc | C++ | raftinc/klayer.tcc | mr-j0nes/RaftLib | 19b2b5401365ba13788044bfbcca0820f48b650a | [
"Apache-2.0"
] | 2 | 2019-08-27T11:08:18.000Z | 2021-09-06T12:05:23.000Z | raftinc/klayer.tcc | Myicefrog/RaftLib | 5ff105293bc851ed73bdfd8966b15d0cadb45eb0 | [
"Apache-2.0"
] | null | null | null | raftinc/klayer.tcc | Myicefrog/RaftLib | 5ff105293bc851ed73bdfd8966b15d0cadb45eb0 | [
"Apache-2.0"
] | 1 | 2021-07-31T15:07:06.000Z | 2021-07-31T15:07:06.000Z | /**
* klayer.tcc - wrapper class around K types of kernels, meant to
* form a single layer within a streaming graph. The syntax will
* look something like this:
*
* map += a <= raft::klayer( b, ... , y ) >= z;
*
* @author: Jonathan Beard
* @version: Tue Mar 8 04:25:20 2016
*
* Copyright 2016 Jonathan Bea... | 33.137931 | 75 | 0.706556 | mr-j0nes |
0a9803f2bf5871a591c573c466fbc847401b6d2e | 704 | cpp | C++ | test17_31_32.cpp | chenshiyang/C-Primer-5ed-solution | 54ce8670e7ad6d82bf62c18523a5be175325276d | [
"Apache-2.0"
] | null | null | null | test17_31_32.cpp | chenshiyang/C-Primer-5ed-solution | 54ce8670e7ad6d82bf62c18523a5be175325276d | [
"Apache-2.0"
] | null | null | null | test17_31_32.cpp | chenshiyang/C-Primer-5ed-solution | 54ce8670e7ad6d82bf62c18523a5be175325276d | [
"Apache-2.0"
] | null | null | null | #include <iostream>
#include <random>
#include <string>
using namespace std;
bool play(bool first) {
static default_random_engine e;
static bernoulli_distribution b;
return b(e);
}
int main() {
string resp;
static default_random_engine e;
static bernoulli_distribution b;
... | 23.466667 | 59 | 0.53125 | chenshiyang |
0aa8826329ef8e407e59421393abeac931606a14 | 821 | cpp | C++ | editor/graph/voxel_graph_editor_node_preview.cpp | swimming92404/godot_voxel | d4b1178d610c7ba0c63c668431524ec320842c57 | [
"MIT"
] | null | null | null | editor/graph/voxel_graph_editor_node_preview.cpp | swimming92404/godot_voxel | d4b1178d610c7ba0c63c668431524ec320842c57 | [
"MIT"
] | null | null | null | editor/graph/voxel_graph_editor_node_preview.cpp | swimming92404/godot_voxel | d4b1178d610c7ba0c63c668431524ec320842c57 | [
"MIT"
] | null | null | null | #include "voxel_graph_editor_node_preview.h"
#include <scene/gui/texture_rect.h>
namespace zylann::voxel {
VoxelGraphEditorNodePreview::VoxelGraphEditorNodePreview() {
_image.instantiate();
_image->create(RESOLUTION, RESOLUTION, false, Image::FORMAT_L8);
_texture.instantiate();
update_texture();
_texture_rect =... | 28.310345 | 73 | 0.806334 | swimming92404 |
0ab157a468b081b04c23b7875ddbe694aaecd9e0 | 735 | cpp | C++ | Plugins/SPCRJointDynamics/Source/SPCRJointDynamics/Private/Log/SPCRJointDynamicsLog.cpp | ianmage/SPCRJointDynamicsUE4 | 590dc8c9e94470edbc401f80eee5fe4e93b53746 | [
"MIT"
] | null | null | null | Plugins/SPCRJointDynamics/Source/SPCRJointDynamics/Private/Log/SPCRJointDynamicsLog.cpp | ianmage/SPCRJointDynamicsUE4 | 590dc8c9e94470edbc401f80eee5fe4e93b53746 | [
"MIT"
] | null | null | null | Plugins/SPCRJointDynamics/Source/SPCRJointDynamics/Private/Log/SPCRJointDynamicsLog.cpp | ianmage/SPCRJointDynamicsUE4 | 590dc8c9e94470edbc401f80eee5fe4e93b53746 | [
"MIT"
] | null | null | null | //======================================================================================
// Copyright (c) 2019 SPARK CREATIVE Inc.
// All rights reserved.
//======================================================================================
#include "Log/SPCRJointDynamicsLog.h"
#include "SPCRJointDynamicsModulePCH... | 45.9375 | 88 | 0.209524 | ianmage |
0ab56830794a6d5d45c5e42a96adb90e1a5fb441 | 4,622 | cpp | C++ | WLMatrix/src/wlmatrix/sockets/MSNClient.cpp | aeoncl/wlmatrix | da936eaec37f06f0e379c6009962dc69bfe07eb3 | [
"MIT"
] | null | null | null | WLMatrix/src/wlmatrix/sockets/MSNClient.cpp | aeoncl/wlmatrix | da936eaec37f06f0e379c6009962dc69bfe07eb3 | [
"MIT"
] | null | null | null | WLMatrix/src/wlmatrix/sockets/MSNClient.cpp | aeoncl/wlmatrix | da936eaec37f06f0e379c6009962dc69bfe07eb3 | [
"MIT"
] | null | null | null | #include "MSNClient.h"
#include "StringUtils.h"
#include <iostream>
#include "MSNPCommandHandlerFactory.h"
#include "MSNPCommandParser.h"
#include "MatrixBackend.h"
#include <chrono>
#include "PresenceEvent.h"
#include "MSNPILN.h"
#include "MSNUtils.h"
#include "PresenceUpdateTask.h"
#include <future>
#include "NewMess... | 36.109375 | 175 | 0.680009 | aeoncl |
0ab8200386478cf2b037ab9e1324d6029c746cce | 618 | hpp | C++ | src/amqpAnalyze/IpDissector.hpp | kpvdr/amqpAnalyze | f1d3a073836191fd9d9a6e6f10a8d6ef2f060cf6 | [
"Apache-2.0"
] | 1 | 2019-04-02T23:03:23.000Z | 2019-04-02T23:03:23.000Z | src/amqpAnalyze/IpDissector.hpp | kpvdr/amqpAnalyze | f1d3a073836191fd9d9a6e6f10a8d6ef2f060cf6 | [
"Apache-2.0"
] | 30 | 2017-04-17T11:21:41.000Z | 2018-01-09T19:21:44.000Z | src/amqpAnalyze/IpDissector.hpp | kpvdr/amqpAnalyze | f1d3a073836191fd9d9a6e6f10a8d6ef2f060cf6 | [
"Apache-2.0"
] | null | null | null | /*
* IpDissector.hpp
*
* Created on: Apr 3, 2017
* Author: kpvdr
*/
#ifndef SRC_AMQPANALYZE_IPDISSECTOR_HPP_
#define SRC_AMQPANALYZE_IPDISSECTOR_HPP_
#include <amqpAnalyze/Dissector.hpp>
namespace amqpAnalyze
{
class IpDissector: public Dissector
{
public:
IpDissector(Packet* packetPt... | 20.6 | 60 | 0.68123 | kpvdr |
0ab9068edadec73f0c06c1350ec6aea5141952c8 | 463 | cpp | C++ | src/vector2D.cpp | KPO-2020-2021/zad5_3-kgliwinski | 302d567d68d8e26c7395f9607632df266d7b7df9 | [
"Unlicense"
] | null | null | null | src/vector2D.cpp | KPO-2020-2021/zad5_3-kgliwinski | 302d567d68d8e26c7395f9607632df266d7b7df9 | [
"Unlicense"
] | null | null | null | src/vector2D.cpp | KPO-2020-2021/zad5_3-kgliwinski | 302d567d68d8e26c7395f9607632df266d7b7df9 | [
"Unlicense"
] | null | null | null | #pragma once
#include"vector2D.cpp"
template <>
inline Vector<double, 2> Vector<double, 2>::rotate(const double &theta) const
{
Vector2D rotated;
Matrix2D transformation;
transformation.rotation_matrix(theta);
rotated = transformation * *this;
return rotated;
}
template <>
inline double Vector<d... | 18.52 | 77 | 0.667387 | KPO-2020-2021 |
0abc94aea5ce094365c33f551c6c0e73dbc0fd53 | 1,230 | hpp | C++ | src/netlayer.hpp | hongsenliu/cloudland | 81a9394f6e74658141ee66557731985f80a9f6ab | [
"Apache-2.0"
] | 69 | 2019-04-17T04:03:31.000Z | 2021-11-08T10:29:54.000Z | src/netlayer.hpp | hongsenliu/cloudland | 81a9394f6e74658141ee66557731985f80a9f6ab | [
"Apache-2.0"
] | 113 | 2019-04-13T06:46:32.000Z | 2021-11-02T01:45:06.000Z | src/netlayer.hpp | hongsenliu/cloudland | 81a9394f6e74658141ee66557731985f80a9f6ab | [
"Apache-2.0"
] | 46 | 2019-04-17T04:03:36.000Z | 2021-09-26T13:11:37.000Z | #ifndef _NETLAYER_HPP
#define _NETLAYER_HPP
#include <string>
#include <sci.h>
#include <vector>
#include <map>
#define SCHEDULE_FILTER 1
#define SCHEDULE_SO_FILE "/opt/cloudland/lib64/scheduler.so"
#include <pthread.h>
using namespace std;
class RpcWorker;
struct groupDesc {
sci_group_t group;
string ... | 23.207547 | 96 | 0.644715 | hongsenliu |
0ac04ef889b060e2e430ce66bf28b24bb9279267 | 1,775 | cpp | C++ | 06/assembler_implementation/code.cpp | ashiroji/Nand2Tetris | 1eba908d0134ecbc7c6e8e252558caa8725ed70c | [
"MIT"
] | null | null | null | 06/assembler_implementation/code.cpp | ashiroji/Nand2Tetris | 1eba908d0134ecbc7c6e8e252558caa8725ed70c | [
"MIT"
] | null | null | null | 06/assembler_implementation/code.cpp | ashiroji/Nand2Tetris | 1eba908d0134ecbc7c6e8e252558caa8725ed70c | [
"MIT"
] | null | null | null | #include "code.h"
code::code()
{
this->destMap["null"] = "000";
this->destMap["M"] = "001";
this->destMap["D"] = "010";
this->destMap["MD"] = "011";
this->destMap["A"] = "100";
this->destMap["AM"] = "101";
this->destMap["AD"] = "110";
this->destMap["AMD"] = "111";
this->compMap["0"] = "0101010";
this->compM... | 23.355263 | 44 | 0.570141 | ashiroji |
0ac23932147e699b2438ab194c8a879e2700931b | 377 | cpp | C++ | tools/console/source/CommandCreateProject.cpp | GrimshawA/Nephilim | 1e69df544078b55fdaf58a04db963e20094f27a9 | [
"Zlib"
] | 19 | 2015-12-19T11:15:57.000Z | 2022-03-09T11:22:11.000Z | tools/console/source/CommandCreateProject.cpp | DevilWithin/Nephilim | 1e69df544078b55fdaf58a04db963e20094f27a9 | [
"Zlib"
] | 1 | 2017-05-17T09:31:10.000Z | 2017-05-19T17:01:31.000Z | tools/console/source/CommandCreateProject.cpp | GrimshawA/Nephilim | 1e69df544078b55fdaf58a04db963e20094f27a9 | [
"Zlib"
] | 3 | 2015-12-14T17:40:26.000Z | 2021-02-25T00:42:42.000Z | #include "CommandCreateProject.h"
#include "CommandCreateProjectDataSheet.h"
#include <iostream>
using namespace std;
void CommandCreateProject::execute(String command)
{
CommandCreateProjectDataSheet* program = static_cast<CommandCreateProjectDataSheet*>(Info::nativeActions["datasheet"]);
if(program)
{
program-... | 23.5625 | 120 | 0.782493 | GrimshawA |
0ac42481f2ac8aa5fb6ce6366900a6b85bd231d8 | 4,637 | hpp | C++ | libs/fnd/serialization/include/bksge/fnd/serialization/detail/save_dispatch.hpp | myoukaku/bksge | 0f8b60e475a3f1709723906e4796b5e60decf06e | [
"MIT"
] | 4 | 2018-06-10T13:35:32.000Z | 2021-06-03T14:27:41.000Z | libs/fnd/serialization/include/bksge/fnd/serialization/detail/save_dispatch.hpp | myoukaku/bksge | 0f8b60e475a3f1709723906e4796b5e60decf06e | [
"MIT"
] | 566 | 2017-01-31T05:36:09.000Z | 2022-02-09T05:04:37.000Z | libs/fnd/serialization/include/bksge/fnd/serialization/detail/save_dispatch.hpp | myoukaku/bksge | 0f8b60e475a3f1709723906e4796b5e60decf06e | [
"MIT"
] | 1 | 2018-07-05T04:40:53.000Z | 2018-07-05T04:40:53.000Z | /**
* @file save_dispatch.hpp
*
* @brief save_dispatch の定義
*
* @author myoukaku
*/
#ifndef BKSGE_FND_SERIALIZATION_DETAIL_SAVE_DISPATCH_HPP
#define BKSGE_FND_SERIALIZATION_DETAIL_SAVE_DISPATCH_HPP
#include <bksge/fnd/serialization/detail/serialize_dispatch.hpp>
#include <bksge/fnd/serialization/ver... | 21.368664 | 106 | 0.664654 | myoukaku |
0ac58623b137717c6414b8b44e9c131743261339 | 11,895 | cpp | C++ | platform/windows/Corona.Simulator/Rtt/Rtt_WinConnection.cpp | sekodev/corona | b9a559d0cc68f5d9048444d710161fc5b778d981 | [
"MIT"
] | null | null | null | platform/windows/Corona.Simulator/Rtt/Rtt_WinConnection.cpp | sekodev/corona | b9a559d0cc68f5d9048444d710161fc5b778d981 | [
"MIT"
] | null | null | null | platform/windows/Corona.Simulator/Rtt/Rtt_WinConnection.cpp | sekodev/corona | b9a559d0cc68f5d9048444d710161fc5b778d981 | [
"MIT"
] | null | null | null | //////////////////////////////////////////////////////////////////////////////
//
// This file is part of the Corona game engine.
// For overview and more information on licensing please refer to README.md
// Home page: https://github.com/coronalabs/corona
// Contact: support@coronalabs.com
//
////////////////////////... | 24.678423 | 140 | 0.649685 | sekodev |
0ac9aa16f5782fddd46f31adb798cf5c829e5e76 | 20,513 | cpp | C++ | level_editor/main.cpp | xiroV/game-tools | 01b7d4f0269cfdcb70901ed07705d1467ed66f37 | [
"MIT"
] | 1 | 2021-11-05T10:06:16.000Z | 2021-11-05T10:06:16.000Z | level_editor/main.cpp | xiroV/game-tools | 01b7d4f0269cfdcb70901ed07705d1467ed66f37 | [
"MIT"
] | 24 | 2021-10-03T15:33:16.000Z | 2021-11-29T22:24:57.000Z | level_editor/main.cpp | xiroV/game-tools | 01b7d4f0269cfdcb70901ed07705d1467ed66f37 | [
"MIT"
] | null | null | null | #include <iostream>
#include <string>
#include <sstream>
#include <typeinfo>
#include <vector>
#include <fstream>
#include "editor.hpp"
#include "export/cpp.hpp"
#include "export/lvl.hpp"
#include "export/swift.hpp"
#ifndef RAYGUI
#define RAYGUI
#define RAYGUI_IMPLEMENTATION
#include "lib/raygui/src/raygui.h"
#endif
... | 32.508716 | 182 | 0.529664 | xiroV |
bd5693aa30a8df5f2c691591556eccac3bde1108 | 329 | cpp | C++ | ConsoleApplication1/ConsoleApplication1.cpp | yg88/class2017 | c5b40a48f91a5676a4f07c3404e09d50a49f2bd2 | [
"MIT"
] | null | null | null | ConsoleApplication1/ConsoleApplication1.cpp | yg88/class2017 | c5b40a48f91a5676a4f07c3404e09d50a49f2bd2 | [
"MIT"
] | 1 | 2019-01-05T11:53:18.000Z | 2019-01-05T11:53:18.000Z | ConsoleApplication1/ConsoleApplication1.cpp | yg88/class2017 | c5b40a48f91a5676a4f07c3404e09d50a49f2bd2 | [
"MIT"
] | 1 | 2017-11-23T08:05:38.000Z | 2017-11-23T08:05:38.000Z | // ConsoleApplication1.cpp : Defines the entry point for the console application.
//
#include "stdafx.h"
#include <iostream>
int main()
{
std::cout << "Please input two numbers:\n";
int a, b;
std::cin >> a >> b;
std::cout << "Sum of " << a << " and " << b << " is " << a + b << std::endl;
return ... | 19.352941 | 82 | 0.544073 | yg88 |
bd63bb462efc0b64939b0393ddca60ab515ecc9a | 845 | cpp | C++ | exp2/2_4/2_4.cpp | Zerdd/OS-Coding-EXP | b46d92fa40d9383838443629b05dd80c4f87f5e1 | [
"Apache-2.0"
] | null | null | null | exp2/2_4/2_4.cpp | Zerdd/OS-Coding-EXP | b46d92fa40d9383838443629b05dd80c4f87f5e1 | [
"Apache-2.0"
] | null | null | null | exp2/2_4/2_4.cpp | Zerdd/OS-Coding-EXP | b46d92fa40d9383838443629b05dd80c4f87f5e1 | [
"Apache-2.0"
] | null | null | null | #include "pluginController.h"
#include "pluginCounter.h"
#include <string.h>
#include <iostream>
using namespace std;
int main(int argc, char *argv[])
{
// 检查参数
if (argc != 2)
{
cout << "Please input correct argc!" << endl;
return 0;
}
// 实例化一个插件控制器
pct_t pc;
// ... | 17.604167 | 56 | 0.497041 | Zerdd |
bd658a964c1c208807102cace239467fbd80dd77 | 59,568 | cxx | C++ | osprey/be/lno/array_bounds.cxx | sharugupta/OpenUH | daddd76858a53035f5d713f648d13373c22506e8 | [
"BSD-2-Clause"
] | null | null | null | osprey/be/lno/array_bounds.cxx | sharugupta/OpenUH | daddd76858a53035f5d713f648d13373c22506e8 | [
"BSD-2-Clause"
] | null | null | null | osprey/be/lno/array_bounds.cxx | sharugupta/OpenUH | daddd76858a53035f5d713f648d13373c22506e8 | [
"BSD-2-Clause"
] | null | null | null | /*
Copyright (C) 2000, 2001 Silicon Graphics, Inc. All Rights Reserved.
This program is free software; you can redistribute it and/or modify it
under the terms of version 2 of the GNU General Public License as
published by the Free Software Foundation.
This program is distributed in the hope that it would... | 37.653603 | 123 | 0.611771 | sharugupta |
bd65f206fe352f3861578766a3caeed46c813abe | 50,509 | hpp | C++ | ext/hmsJNI.hpp | bg-sniffer/hermes | e9d2be3d0600926cd99190cebd65dd1d077164aa | [
"Zlib"
] | null | null | null | ext/hmsJNI.hpp | bg-sniffer/hermes | e9d2be3d0600926cd99190cebd65dd1d077164aa | [
"Zlib"
] | null | null | null | ext/hmsJNI.hpp | bg-sniffer/hermes | e9d2be3d0600926cd99190cebd65dd1d077164aa | [
"Zlib"
] | null | null | null | // Copyright (C) 2017-2020 Grupa Pracuj Sp. z o.o.
// This file is part of the "Hermes" library.
// For conditions of distribution and use, see copyright notice in license.txt.
#ifndef _HMS_JNI_HPP_
#define _HMS_JNI_HPP_
#include <jni.h>
#include <array>
#include <cassert>
#include <memory>
#include <string>
#includ... | 51.592441 | 311 | 0.636362 | bg-sniffer |
bd66012eb5e67142f44f98eaa63c0119954e1296 | 3,059 | cpp | C++ | test/gbelib_tests/cpu/operation/bytealuoperation_tests.cpp | johannes51/GBEmu | bb85debc8191d7eaa3917c2d441172f97731374c | [
"MIT"
] | null | null | null | test/gbelib_tests/cpu/operation/bytealuoperation_tests.cpp | johannes51/GBEmu | bb85debc8191d7eaa3917c2d441172f97731374c | [
"MIT"
] | null | null | null | test/gbelib_tests/cpu/operation/bytealuoperation_tests.cpp | johannes51/GBEmu | bb85debc8191d7eaa3917c2d441172f97731374c | [
"MIT"
] | null | null | null | #include "gtest/gtest.h"
#include "cpu/cpuregisters.h"
#include "cpu/operation/bytealuoperation.h"
#include "location/location.h"
#include "mem/rambank.h"
#include "location/variablebyte.h"
TEST(ByteAluOperationTest, Xor)
{
ByteAluOperation xorOp { ByteAluFunction::Xor, Source::Register };
xorOp.setRegister(Byte... | 23.898438 | 69 | 0.700883 | johannes51 |
bd68d98daaf17c23a342f2fd30f744f9bd7a3cc9 | 320 | cpp | C++ | demos/demo.cpp | RyanDraves/CPPurses | 19cbdae2d18e702144659187ec989c486c714a0f | [
"MIT"
] | null | null | null | demos/demo.cpp | RyanDraves/CPPurses | 19cbdae2d18e702144659187ec989c486c714a0f | [
"MIT"
] | null | null | null | demos/demo.cpp | RyanDraves/CPPurses | 19cbdae2d18e702144659187ec989c486c714a0f | [
"MIT"
] | null | null | null | #include <cppurses/system/focus.hpp>
#include <cppurses/system/system.hpp>
#include <cppurses/widget/widgets/menu.hpp>
#include "main_menu.hpp"
using namespace cppurses;
int main()
{
System sys;
demos::Main_menu demo_menu;
System::set_initial_focus(&demo_menu.main_menu);
return sys.run(demo_menu);
}
| 20 | 52 | 0.7375 | RyanDraves |
bd6c1b8ac9a435830d89f076329aadded96b0b79 | 604 | cpp | C++ | t2/main.cpp | vinthony/Learning-Graphics | 9c20c8f1d9378a7fb2e9be7eef8042a9c6d4a2be | [
"MIT"
] | null | null | null | t2/main.cpp | vinthony/Learning-Graphics | 9c20c8f1d9378a7fb2e9be7eef8042a9c6d4a2be | [
"MIT"
] | null | null | null | t2/main.cpp | vinthony/Learning-Graphics | 9c20c8f1d9378a7fb2e9be7eef8042a9c6d4a2be | [
"MIT"
] | null | null | null |
#include <iostream>
#include <GL/glew.h>
#include <GLUT/GLUT.h>
void render(){
glClearColor(0.0f, 0.0f, 0.0f, 0.0f);
glClear(GL_COLOR_BUFFER_BIT);
glutSwapBuffers();
glFlush();
}
int main (int argc,char ** argv)
{
glutInit(&argc, argv);
glutInitWindowSize(800,600);
glutInitWindowPo... | 18.30303 | 62 | 0.602649 | vinthony |
bd6e74a7a395183f5a3db25fcab72429fccd81b1 | 686 | cpp | C++ | src/DefaultPropertyProcessors/ProjectionProcessor.cpp | Megaxela/HGEngineReloadedEditor | be79b6089985da1bf811be8a6d06ce25f71236b1 | [
"MIT"
] | null | null | null | src/DefaultPropertyProcessors/ProjectionProcessor.cpp | Megaxela/HGEngineReloadedEditor | be79b6089985da1bf811be8a6d06ce25f71236b1 | [
"MIT"
] | null | null | null | src/DefaultPropertyProcessors/ProjectionProcessor.cpp | Megaxela/HGEngineReloadedEditor | be79b6089985da1bf811be8a6d06ce25f71236b1 | [
"MIT"
] | 1 | 2020-03-12T04:39:14.000Z | 2020-03-12T04:39:14.000Z | // Editor
#include <DefaultPropertyProcessors/ProjectionProcessor.hpp>
// HG::Rendering::Base
#include <HG/Rendering/Base/Camera.hpp>
// ImGui
#include <imgui.h>
void HG::Editor::PropertyProcessors::ProjectionProcessor::perform(const std::string &name, const HG::Core::Behaviour::Property &property)
{
auto value ... | 29.826087 | 137 | 0.680758 | Megaxela |
bd6ec19d8e0654361314d02e95a35c368add952e | 2,181 | cc | C++ | src/windows/libraries/ws2_32/functions/connect.cc | srpape/IntroVirt | fe553221c40b8ef71f06e79c9d54d9e123a06c89 | [
"Apache-2.0"
] | null | null | null | src/windows/libraries/ws2_32/functions/connect.cc | srpape/IntroVirt | fe553221c40b8ef71f06e79c9d54d9e123a06c89 | [
"Apache-2.0"
] | null | null | null | src/windows/libraries/ws2_32/functions/connect.cc | srpape/IntroVirt | fe553221c40b8ef71f06e79c9d54d9e123a06c89 | [
"Apache-2.0"
] | null | null | null | /*
* Copyright 2021 Assured Information Security, Inc.
*
* 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 a... | 29.08 | 76 | 0.707015 | srpape |
bd703d247c722445b2495fcd5d339ad5288ccde2 | 1,185 | cpp | C++ | SDDD/pitchui.cpp | hux8/SDD-Project | 1d589f88655f5a565f0c2efb5d60a3dd8ccc5c06 | [
"MIT"
] | null | null | null | SDDD/pitchui.cpp | hux8/SDD-Project | 1d589f88655f5a565f0c2efb5d60a3dd8ccc5c06 | [
"MIT"
] | 1 | 2019-03-15T01:59:20.000Z | 2019-03-15T17:36:01.000Z | SDDD/pitchui.cpp | hux8/SDD-Project | 1d589f88655f5a565f0c2efb5d60a3dd8ccc5c06 | [
"MIT"
] | 5 | 2018-10-25T23:14:30.000Z | 2018-11-05T18:43:46.000Z | #include "pitchui.h"
#include "ui_pitchui.h"
PitchUI::PitchUI(QWidget *parent) :
QWidget(parent),
ui(new Ui::PitchUI)
{
ui->setupUi(this);
ui->description->setReadOnly(true);
}
PitchUI::~PitchUI()
{
delete ui;
}
void PitchUI::setAccess(bool b)
{
ui->bdelete->setVisible(b);
ui->bmodifyDesc... | 19.42623 | 66 | 0.621941 | hux8 |
bd73b6e8988b8ab0ec5874f3e76506051b98e365 | 13,845 | cpp | C++ | src/q65_main.cpp | alexander-sholohov/msk144decoder | f89fdcf9ec72f6f3d197380a3046c486a251f768 | [
"MIT"
] | null | null | null | src/q65_main.cpp | alexander-sholohov/msk144decoder | f89fdcf9ec72f6f3d197380a3046c486a251f768 | [
"MIT"
] | null | null | null | src/q65_main.cpp | alexander-sholohov/msk144decoder | f89fdcf9ec72f6f3d197380a3046c486a251f768 | [
"MIT"
] | null | null | null | //
// Author: Alexander Sholohov <ra9yer@yahoo.com>
//
// License: MIT
//
#include "wavfile.h"
#include "q65_context.h"
#include "report_tasks.h"
#include "utils.h"
#include "http_reporter.h"
#include "decode_result.h"
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <sched.h>
#include <unistd.h>... | 30.295405 | 147 | 0.536439 | alexander-sholohov |
bd76fa768bc0df07079bc388d6a245db00721053 | 1,770 | hpp | C++ | CodeGeneration/core/ValidationHandler.hpp | tedi21/SisypheReview | f7c05bad1ccc036f45870535149d9685e1120c2c | [
"Unlicense"
] | null | null | null | CodeGeneration/core/ValidationHandler.hpp | tedi21/SisypheReview | f7c05bad1ccc036f45870535149d9685e1120c2c | [
"Unlicense"
] | null | null | null | CodeGeneration/core/ValidationHandler.hpp | tedi21/SisypheReview | f7c05bad1ccc036f45870535149d9685e1120c2c | [
"Unlicense"
] | null | null | null | #ifndef _VALIDATION_HANDLER_HPP_
#define _VALIDATION_HANDLER_HPP_
#include <xercesc/sax/ErrorHandler.hpp>
#include <xercesc/sax/SAXParseException.hpp>
#include "xstring.hpp"
using namespace log4cpp;
using namespace xercesc;
using namespace enc;
namespace dsg {
#define X(str) encode<ansi,xml>(str).c_str()
#d... | 24.246575 | 67 | 0.49209 | tedi21 |
bd78b6e7608b8181e7e40a27ebd3c9d9fe3d16ac | 1,146 | cpp | C++ | src/ConnectorInfos.cpp | flagarde/YAODAQ | 851df4aa32b8695c4706bb3ec9f353f4461c9cad | [
"MIT"
] | null | null | null | src/ConnectorInfos.cpp | flagarde/YAODAQ | 851df4aa32b8695c4706bb3ec9f353f4461c9cad | [
"MIT"
] | 11 | 2021-05-14T19:50:27.000Z | 2022-03-31T07:19:41.000Z | src/ConnectorInfos.cpp | flagarde/YAODAQ | 851df4aa32b8695c4706bb3ec9f353f4461c9cad | [
"MIT"
] | 5 | 2021-05-11T13:30:30.000Z | 2021-05-26T19:57:22.000Z | #include "ConnectorInfos.hpp"
#include "toml.hpp"
#include <iostream>
namespace yaodaq
{
ConnectorInfos::ConnectorInfos(const toml::value& params, const bool& isShared, const int& id): m_Parameters(params), m_IsSharedConnector(isShared), m_ID(id) {}
int ConnectorInfos::getID()
{
return m_ID;
}
int ConnectorInfo... | 16.140845 | 160 | 0.744328 | flagarde |
bd7ab0133ba818c899f7ea555fdf93a2cb127f03 | 317 | cc | C++ | cpp/sort/selection.cc | eryue0220/teach-myself-algorithm | 1b4d79a2a9bc6b9850deec70bcdccf7f05b9052d | [
"MIT"
] | null | null | null | cpp/sort/selection.cc | eryue0220/teach-myself-algorithm | 1b4d79a2a9bc6b9850deec70bcdccf7f05b9052d | [
"MIT"
] | null | null | null | cpp/sort/selection.cc | eryue0220/teach-myself-algorithm | 1b4d79a2a9bc6b9850deec70bcdccf7f05b9052d | [
"MIT"
] | null | null | null | #include <algorithm>
#include "sort.h"
using namespace std;
template <typename T>
void selectionSort( T arr[], int n ) {
for ( int i = 0; i < n; i++ ) {
int minIndex = i;
for ( int j = i + 1; j < n; j++ )
if ( arr[j] < arr[minIndex] )
minIndex = j;
swap( arr[i], arr[minIndex] );
}
}
| 19.8125 | 38 | 0.526814 | eryue0220 |
bd80fb0cd67c0d424a1ce2a4a2e8db9303a0ff56 | 1,446 | hpp | C++ | include/boost/document/detail/ms_api/ms_sheet.hpp | anuragxel/generic-document-library | e7d0f53f47ab85709968c91f0f4ca423796bc4cd | [
"BSL-1.0"
] | null | null | null | include/boost/document/detail/ms_api/ms_sheet.hpp | anuragxel/generic-document-library | e7d0f53f47ab85709968c91f0f4ca423796bc4cd | [
"BSL-1.0"
] | null | null | null | include/boost/document/detail/ms_api/ms_sheet.hpp | anuragxel/generic-document-library | e7d0f53f47ab85709968c91f0f4ca423796bc4cd | [
"BSL-1.0"
] | null | null | null | #ifndef _MS_SHEET_HPP
#define _MS_SHEET_HPP
// Copyright Anurag Ghosh 2015.
// Distributed under the Boost Software License, Version 1.0.
// (See accompanying file LICENSE_1_0.txt or copy at
// http://www.boost.org/LICENSE_1_0.txt)
#include <string>
#include <iostream>
#include <cstdlib>
#include... | 32.133333 | 100 | 0.782158 | anuragxel |
bd81feb53f212e2506a309fb42ed6b82464e97fc | 1,250 | cpp | C++ | Graph Algorithms/Giant Pizza.cpp | DecSP/cses-downloader | 12a8f37665a33f6f790bd2c355f84dea8a0e332c | [
"MIT"
] | 2 | 2022-02-12T12:30:13.000Z | 2022-02-12T13:59:20.000Z | Graph Algorithms/Giant Pizza.cpp | DecSP/cses-downloader | 12a8f37665a33f6f790bd2c355f84dea8a0e332c | [
"MIT"
] | 2 | 2022-02-12T11:09:41.000Z | 2022-02-12T11:55:49.000Z | Graph Algorithms/Giant Pizza.cpp | DecSP/cses-downloader | 12a8f37665a33f6f790bd2c355f84dea8a0e332c | [
"MIT"
] | null | null | null | #include<bits/stdc++.h>
using namespace std;
int n,q;
vector<vector<int>> neg,pos;
vector<int> ans1,ans2;
bool dfs(int cur, bool isPos,vector<int>&ans){
bool re=true;
if (ans[cur]) return (ans[cur]>0&&isPos)||(ans[cur]<0&&!isPos);
ans[cur]=(isPos)?1:-1;
if (isPos) {
for(int &v:pos[cur]){
if (v>0) re=re&&dfs(... | 19.53125 | 64 | 0.556 | DecSP |
bd8326ae819c6b64466633fbabb82becd94278be | 309 | cpp | C++ | docs/atl/codesnippet/CPP/catllist-class_3.cpp | bobbrow/cpp-docs | 769b186399141c4ea93400863a7d8463987bf667 | [
"CC-BY-4.0",
"MIT"
] | 965 | 2017-06-25T23:57:11.000Z | 2022-03-31T14:17:32.000Z | docs/atl/codesnippet/CPP/catllist-class_3.cpp | bobbrow/cpp-docs | 769b186399141c4ea93400863a7d8463987bf667 | [
"CC-BY-4.0",
"MIT"
] | 3,272 | 2017-06-24T00:26:34.000Z | 2022-03-31T22:14:07.000Z | docs/atl/codesnippet/CPP/catllist-class_3.cpp | bobbrow/cpp-docs | 769b186399141c4ea93400863a7d8463987bf667 | [
"CC-BY-4.0",
"MIT"
] | 951 | 2017-06-25T12:36:14.000Z | 2022-03-26T22:49:06.000Z | // Define the list
CAtlList<int> myList;
// Add elements to the tail
myList.AddTail(1);
myList.AddTail(2);
myList.AddTail(3);
// Confirm the current head of the list
ATLASSERT(myList.GetHead() == 1);
// Confirm the current tail of the list
ATLASSERT(myList.GetTail() == 3); | 23.769231 | 42 | 0.640777 | bobbrow |
bd84651ba8b5ecbfee2e5e6f3e067b1cbf25c9a6 | 4,702 | cc | C++ | code/foundation/core/debug/stringatompagehandler.cc | Nechrito/nebula | 6c7ef27ab1374d3f751d866500729524f72a0c87 | [
"BSD-2-Clause"
] | null | null | null | code/foundation/core/debug/stringatompagehandler.cc | Nechrito/nebula | 6c7ef27ab1374d3f751d866500729524f72a0c87 | [
"BSD-2-Clause"
] | null | null | null | code/foundation/core/debug/stringatompagehandler.cc | Nechrito/nebula | 6c7ef27ab1374d3f751d866500729524f72a0c87 | [
"BSD-2-Clause"
] | null | null | null | //------------------------------------------------------------------------------
// stringatompagehandler.cc
// (C) 2009 Radon Labs GmbH
// (C) 2013-2020 Individual contributors, see AUTHORS file
//------------------------------------------------------------------------------
#include "foundation/stdneb.h"
#include ... | 39.847458 | 103 | 0.589749 | Nechrito |
bd87cd35f1df4fca4c6610ccf11a4fed5769c42d | 2,092 | hpp | C++ | modules/cli/src/basic_interactive_terminal.hpp | perfkitpp/perfkit | 19b691c8337b47594ed6be28051b3a5ee31af389 | [
"MIT"
] | null | null | null | modules/cli/src/basic_interactive_terminal.hpp | perfkitpp/perfkit | 19b691c8337b47594ed6be28051b3a5ee31af389 | [
"MIT"
] | 6 | 2021-10-14T15:38:06.000Z | 2022-01-08T12:55:04.000Z | modules/cli/src/basic_interactive_terminal.hpp | perfkitpp/perfkit | 19b691c8337b47594ed6be28051b3a5ee31af389 | [
"MIT"
] | null | null | null | // MIT License
//
// Copyright (c) 2021-2022. Seungwoo Kang
//
// 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.184615 | 81 | 0.738528 | perfkitpp |
bd8b9acdaeb02e467ce715a2a11dde531971d344 | 633 | cpp | C++ | src/Front/GeneralTextEdit/undoredotext.cpp | Igisid/Breeks-desktop | 0dfaa6ea64d1d2912a4aed9e1febb537b9a9eec6 | [
"Apache-2.0"
] | 10 | 2020-12-20T15:32:20.000Z | 2021-07-12T18:09:57.000Z | src/Front/GeneralTextEdit/undoredotext.cpp | Igisid/Breeks-desktop | 0dfaa6ea64d1d2912a4aed9e1febb537b9a9eec6 | [
"Apache-2.0"
] | 2 | 2022-01-04T12:51:00.000Z | 2022-01-04T14:40:19.000Z | src/Front/GeneralTextEdit/undoredotext.cpp | Igisid/Breeks-desktop | 0dfaa6ea64d1d2912a4aed9e1febb537b9a9eec6 | [
"Apache-2.0"
] | 3 | 2020-12-22T02:50:11.000Z | 2021-02-24T01:58:11.000Z | #include "undoredotext.h"
UndoRedoText::UndoRedoText()
{}
//-----UNDO
bool UndoRedoText::isUndoEmpty() {
return undoStack.isEmpty();
}
void UndoRedoText::pushUndoCommand(const commandInfo_t command) {
undoStack.push(command);
}
void UndoRedoText::popUndoCommand(commandInfo_t& command) {
command = undoStack.to... | 19.181818 | 65 | 0.733017 | Igisid |
bd8d2151294acd433e4832a4710a1ec9040c6100 | 9,120 | hpp | C++ | include/codegen/include/System/Xml/TextUtf8RawTextWriter.hpp | Futuremappermydud/Naluluna-Modifier-Quest | bfda34370764b275d90324b3879f1a429a10a873 | [
"MIT"
] | 1 | 2021-11-12T09:29:31.000Z | 2021-11-12T09:29:31.000Z | include/codegen/include/System/Xml/TextUtf8RawTextWriter.hpp | Futuremappermydud/Naluluna-Modifier-Quest | bfda34370764b275d90324b3879f1a429a10a873 | [
"MIT"
] | null | null | null | include/codegen/include/System/Xml/TextUtf8RawTextWriter.hpp | Futuremappermydud/Naluluna-Modifier-Quest | bfda34370764b275d90324b3879f1a429a10a873 | [
"MIT"
] | 2 | 2021-10-03T02:14:20.000Z | 2021-11-12T09:29:36.000Z | // Autogenerated from CppHeaderCreator on 7/27/2020 3:10:19 PM
// Created by Sc2ad
// =========================================================================
#pragma once
#pragma pack(push, 8)
// Begin includes
#include "utils/typedefs.h"
// Including type: System.Xml.XmlUtf8RawTextWriter
#include "System/Xml/XmlUtf8... | 61.208054 | 150 | 0.758114 | Futuremappermydud |
bd965819647db2ecc4e60fea3589b06e06c61cd8 | 1,664 | cpp | C++ | gateway/afm/common/src/GenericSystem.cpp | milligan22963/radar | d4b053509d1e65b385e9337f3eab7dfc4aae412a | [
"MIT"
] | null | null | null | gateway/afm/common/src/GenericSystem.cpp | milligan22963/radar | d4b053509d1e65b385e9337f3eab7dfc4aae412a | [
"MIT"
] | null | null | null | gateway/afm/common/src/GenericSystem.cpp | milligan22963/radar | d4b053509d1e65b385e9337f3eab7dfc4aae412a | [
"MIT"
] | null | null | null | /*--------------------------------------
GenericSystem
Company: AFM Software
Copyright: 2018
--------------------------------------*/
#include <fstream>
#include <string.h>
#include "GenericSystem.h"
namespace afm
{
namespace common
{
static const std::string sc_serialNumberPath = "/sys/class... | 25.212121 | 97 | 0.52524 | milligan22963 |
bd97c9e5bff3eb3a7110af64bb0582e5db5c88af | 1,922 | hpp | C++ | Programming Guide/Headers/Siv3D/QR.hpp | Reputeless/Siv3D-Reference | d58e92885241d11612007fb9187ce0289a7ee9cb | [
"MIT"
] | 38 | 2016-01-14T13:51:13.000Z | 2021-12-29T01:49:30.000Z | Programming Guide/Headers/Siv3D/QR.hpp | Reputeless/Siv3D-Reference | d58e92885241d11612007fb9187ce0289a7ee9cb | [
"MIT"
] | null | null | null | Programming Guide/Headers/Siv3D/QR.hpp | Reputeless/Siv3D-Reference | d58e92885241d11612007fb9187ce0289a7ee9cb | [
"MIT"
] | 16 | 2016-01-15T11:07:51.000Z | 2021-12-29T01:49:37.000Z | //-----------------------------------------------
//
// This file is part of the Siv3D Engine.
//
// Copyright (C) 2008-2016 Ryo Suzuki
//
// Licensed under the MIT License.
//
//-----------------------------------------------
# pragma once
# include "Fwd.hpp"
# include "Unspecified.hpp"
# include "String.hpp"
# incl... | 20.020833 | 160 | 0.636837 | Reputeless |
bd999c5db004219039245fac4eca68a96f993646 | 844 | cpp | C++ | Sudogu CLT/models/solver.cpp | vijayiyer97/Sudoku-Solver | 9ac8712108b8c0b70d29919f122023916260b01f | [
"MIT"
] | null | null | null | Sudogu CLT/models/solver.cpp | vijayiyer97/Sudoku-Solver | 9ac8712108b8c0b70d29919f122023916260b01f | [
"MIT"
] | null | null | null | Sudogu CLT/models/solver.cpp | vijayiyer97/Sudoku-Solver | 9ac8712108b8c0b70d29919f122023916260b01f | [
"MIT"
] | null | null | null | //
// solver.cpp
// Sudogu CLT
//
// Created by Vijay Iyer on 12/7/19.
// Copyright © 2019 Bananna Companay. All rights reserved.
//
#include "solver.hpp"
Solver::Solver(Sudoku other): sudoku(other) { }
Solver::Solver(int** const vals, int rows, int cols, int cells): sudoku(vals, rows, cols, cells) { }
Sudoku So... | 24.114286 | 100 | 0.643365 | vijayiyer97 |
bd9f3ca33aeab9692f5ce58b6b759a342f2ff9d1 | 14,379 | cpp | C++ | src/GLFWFramework.cpp | PucklaMotzer09/JohnnyEngine | b804f6b3ffa7434576caa77fc76fbe6b101565db | [
"Zlib"
] | 5 | 2017-10-08T18:14:49.000Z | 2022-03-19T10:25:24.000Z | src/GLFWFramework.cpp | PucklaMotzer09/JohnnyEngine | b804f6b3ffa7434576caa77fc76fbe6b101565db | [
"Zlib"
] | null | null | null | src/GLFWFramework.cpp | PucklaMotzer09/JohnnyEngine | b804f6b3ffa7434576caa77fc76fbe6b101565db | [
"Zlib"
] | null | null | null | #ifdef USE_GLFW
#include "../include/GLFWFramework.h"
#include "../include/Settings.h"
#include "../include/MainClass.h"
#include "../include/Texture.h"
#include "../include/ResourceManager.h"
#include "../include/LogManager.h"
#include "../include/Events.h"
namespace Johnny
{
std::string GLFWFramework::er... | 33.595794 | 243 | 0.700118 | PucklaMotzer09 |
bda102ea6fd1449e03f7b725c8405c922d6682aa | 6,901 | cc | C++ | tc/autotuner/cuda/autotuner.cc | LoopTactics/tc-cim | ff5f7140ea355cb95798827b17ebf3a83f3774ea | [
"Apache-2.0"
] | 1 | 2021-06-25T08:21:11.000Z | 2021-06-25T08:21:11.000Z | tc/autotuner/cuda/autotuner.cc | LoopTactics/tc-cim | ff5f7140ea355cb95798827b17ebf3a83f3774ea | [
"Apache-2.0"
] | null | null | null | tc/autotuner/cuda/autotuner.cc | LoopTactics/tc-cim | ff5f7140ea355cb95798827b17ebf3a83f3774ea | [
"Apache-2.0"
] | null | null | null | /**
* Copyright (c) 2017-present, Facebook, Inc.
*
* 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 ... | 34.333333 | 79 | 0.688451 | LoopTactics |
bda217b2aa339caf0e76ca3b5deb7dc1e9c7c579 | 599 | hpp | C++ | include/oglplus/ext/NV_path_rendering/transform_type.hpp | Extrunder/oglplus | c7c8266a1571d0b4c8b02d9c8ca6a7b6a6f51791 | [
"BSL-1.0"
] | 459 | 2016-03-16T04:11:37.000Z | 2022-03-31T08:05:21.000Z | include/oglplus/ext/NV_path_rendering/transform_type.hpp | Extrunder/oglplus | c7c8266a1571d0b4c8b02d9c8ca6a7b6a6f51791 | [
"BSL-1.0"
] | 55 | 2015-01-06T16:42:55.000Z | 2020-07-09T04:21:41.000Z | include/oglplus/ext/NV_path_rendering/transform_type.hpp | Extrunder/oglplus | c7c8266a1571d0b4c8b02d9c8ca6a7b6a6f51791 | [
"BSL-1.0"
] | 57 | 2015-01-07T18:35:49.000Z | 2022-03-22T05:32:04.000Z | /**
* @file oglplus/ext/NV_path_rendering/transform_type.hpp
* @brief Wrapper for the NV_path_rendering transform type enumeration
*
* @author Matus Chochlik
*
* Copyright 2010-2015 Matus Chochlik. Distributed under the Boost
* Software License, Version 1.0. (See accompanying file
* LICENSE_1_0.txt or cop... | 31.526316 | 71 | 0.797997 | Extrunder |
bda4f27160bd902b6e182fc1fae9e0ce7d37cae6 | 1,231 | hpp | C++ | include/RawlogHelper.hpp | dzunigan/extrinsic_calib | aec3747aeb6baecc7bc6202fc0832a113a1bc528 | [
"BSD-3-Clause"
] | 5 | 2018-10-24T02:14:54.000Z | 2019-05-11T12:36:01.000Z | include/RawlogHelper.hpp | dzunigan/extrinsic_calib | aec3747aeb6baecc7bc6202fc0832a113a1bc528 | [
"BSD-3-Clause"
] | null | null | null | include/RawlogHelper.hpp | dzunigan/extrinsic_calib | aec3747aeb6baecc7bc6202fc0832a113a1bc528 | [
"BSD-3-Clause"
] | 1 | 2021-06-30T01:12:49.000Z | 2021-06-30T01:12:49.000Z | //STL
#include <string>
#include <cstddef>
//MRPT
#include <mrpt/obs/CRawlog.h>
#include <mrpt/obs/CObservation3DRangeScan.h>
#include "ObservationPair.hpp"
#include "Parameters.hpp"
class RawlogHelper
{
public:
RawlogHelper(const ParametersPtr ¶ms);
//Retrieves next rawlog observation and updates la... | 26.191489 | 135 | 0.729488 | dzunigan |
bda76d1a1f9905b87ab20e6c5e52e97ff711ac80 | 2,641 | cpp | C++ | lib/lane/src/Utils/Logger.cpp | calhewitt/LANE | 412c3d465e6a459714f7a4a7ca4de30e571e0220 | [
"BSD-2-Clause"
] | null | null | null | lib/lane/src/Utils/Logger.cpp | calhewitt/LANE | 412c3d465e6a459714f7a4a7ca4de30e571e0220 | [
"BSD-2-Clause"
] | null | null | null | lib/lane/src/Utils/Logger.cpp | calhewitt/LANE | 412c3d465e6a459714f7a4a7ca4de30e571e0220 | [
"BSD-2-Clause"
] | null | null | null | ///////////////////////////////////////////////////////////////////////////////
/// \file Logger.cpp
/// \author Hector Stalker <hstalker0@gmail.com>
/// \version 0.1
///
/// \brief A logger class which manages active logging sinks
///
/// \copyright Copyright (c) 2014, Hector Stalker. All rights reserved.
/// This fi... | 26.41 | 101 | 0.631579 | calhewitt |
bda837e821a0b01d2a91b980514d38aa6409547c | 548 | inl | C++ | src/nn/Threshold.h.inl | rodrigovb96/cpp-torch | 8ce7edb687b174bd114a96c0758e8379c8c77c1d | [
"Apache-2.0"
] | 55 | 2016-10-26T16:10:18.000Z | 2021-01-26T00:44:35.000Z | src/nn/Threshold.h.inl | rodrigovb96/cpp-torch | 8ce7edb687b174bd114a96c0758e8379c8c77c1d | [
"Apache-2.0"
] | 10 | 2017-04-17T12:31:54.000Z | 2018-11-23T10:49:07.000Z | src/nn/Threshold.h.inl | rodrigovb96/cpp-torch | 8ce7edb687b174bd114a96c0758e8379c8c77c1d | [
"Apache-2.0"
] | 25 | 2016-10-06T13:49:24.000Z | 2021-05-01T16:36:02.000Z | #pragma once
#include "../../include/nn/Threshold.h"
template<typename T, GPUFlag F>
cpptorch::Tensor<T, F> cpptorch::nn::Threshold<T, F>::forward(const cpptorch::Tensor<T, F> &input) const
{
// validate parameters
if (inplace_)
{
asserter(val_ <= threshold_) << "in-place processing requires value... | 30.444444 | 138 | 0.64781 | rodrigovb96 |
bda8984b80a715a7fed3c7300df11872d2c49f33 | 3,638 | cpp | C++ | scripts/xUps/src/x725button.cpp | eswierk/libpanda | 6540181edcf7df3e4ec1ee530456fff741176257 | [
"MIT"
] | 11 | 2020-12-02T00:12:25.000Z | 2022-03-31T07:38:32.000Z | scripts/xUps/src/x725button.cpp | eswierk/libpanda | 6540181edcf7df3e4ec1ee530456fff741176257 | [
"MIT"
] | 29 | 2021-07-15T23:03:38.000Z | 2021-10-08T22:02:29.000Z | scripts/xUps/src/x725button.cpp | eswierk/libpanda | 6540181edcf7df3e4ec1ee530456fff741176257 | [
"MIT"
] | 7 | 2021-07-15T21:09:23.000Z | 2022-02-04T04:06:25.000Z | /*
Author: Matt Bunting
Copyright (c) 2020 Arizona Board of Regents
All rights reserved.
Permission is hereby granted, without written agreement and without
license or royalty fees, to use, copy, modify, and distribute this
software and its documentation for any purpose, provided that the
above copyright notice... | 24.917808 | 77 | 0.643211 | eswierk |
bda8dc41ab5ab0c7be842bc4dad5b8ca914bf05f | 3,525 | cpp | C++ | structured_light-master/point_cloud.cpp | 1395724712/StructureLight_712 | ced5d22f4a81c516e2898f2c5bf287be5afe354c | [
"MIT"
] | 2 | 2021-12-09T15:07:32.000Z | 2022-01-21T09:28:14.000Z | structured_light-master/point_cloud.cpp | 1395724712/StructureLight_712 | ced5d22f4a81c516e2898f2c5bf287be5afe354c | [
"MIT"
] | null | null | null | structured_light-master/point_cloud.cpp | 1395724712/StructureLight_712 | ced5d22f4a81c516e2898f2c5bf287be5afe354c | [
"MIT"
] | 3 | 2020-07-31T02:55:34.000Z | 2022-01-21T09:28:10.000Z | #include <GL/gl.h>
#include <GL/glut.h>
#include <stdlib.h>
#include <math.h>
#include <stdlib.h>
#include <stdio.h>
#include <math.h>
#include <cv.h>
#include <highgui.h>
IplImage *frame = 0;
int render_detail = 5;
int height,width,step;
float alpha = 0.8;
float angle = 0.0f;
float phi=0.0f;
float pad=0.0f;
int nwave... | 21.759259 | 101 | 0.580426 | 1395724712 |
bda9dfc4479715a1c83c76f382bdd60b1a6c8093 | 19,498 | cpp | C++ | src/test/zealot/zealot_test_fmtstr.cpp | sailzeng/zcelib | 88e14ab436f1b40e8071e15ef6d9fae396efc3b4 | [
"Apache-2.0"
] | 72 | 2015-01-08T05:01:48.000Z | 2021-12-28T06:13:03.000Z | src/test/zealot/zealot_test_fmtstr.cpp | sailzeng/zcelib | 88e14ab436f1b40e8071e15ef6d9fae396efc3b4 | [
"Apache-2.0"
] | 4 | 2016-01-18T12:24:59.000Z | 2019-10-12T07:19:15.000Z | src/test/zealot/zealot_test_fmtstr.cpp | sailzeng/zcelib | 88e14ab436f1b40e8071e15ef6d9fae396efc3b4 | [
"Apache-2.0"
] | 40 | 2015-01-26T06:49:18.000Z | 2021-07-20T08:11:48.000Z |
#include "zealot_predefine.h"
int test_foo_snprintf()
{
char out_buffer[1024 + 1];
size_t cur_len = 0;
size_t buf_max_len = 1024;
zce::foo_snprintf(out_buffer, buf_max_len, cur_len, "int_data=## bool_data=## Haha!\n");
printf("%s", out_buffer);
int int_data = 123456;
bool bool_data = ... | 34.14711 | 138 | 0.509027 | sailzeng |
bda9f8327160a932908fda96b2625bbd68a1aec7 | 983 | cc | C++ | cpp/RemoveNthNodeFromEndOfList.cc | speedfirst/leetcode | a4d95cf8d75f3cd4d1247ea66efebfb6a848ab51 | [
"BSD-3-Clause"
] | null | null | null | cpp/RemoveNthNodeFromEndOfList.cc | speedfirst/leetcode | a4d95cf8d75f3cd4d1247ea66efebfb6a848ab51 | [
"BSD-3-Clause"
] | null | null | null | cpp/RemoveNthNodeFromEndOfList.cc | speedfirst/leetcode | a4d95cf8d75f3cd4d1247ea66efebfb6a848ab51 | [
"BSD-3-Clause"
] | null | null | null | // https://oj.leetcode.com/problems/remove-nth-node-from-end-of-list/
namespace RemoveNthNodeFromEndOfList {
class Solution {
public:
ListNode *removeNthFromEnd(ListNode *head, int n) {
if (head == NULL) {
return NULL;
}
// fi... | 25.868421 | 69 | 0.385554 | speedfirst |
bdb572b5b6ef49817023b4d30c695ba93ab12d49 | 2,160 | cpp | C++ | test/core/test_read_steepest_descent_simulator.cpp | yutakasi634/Mjolnir | ab7a29a47f994111e8b889311c44487463f02116 | [
"MIT"
] | 12 | 2017-02-01T08:28:38.000Z | 2018-08-25T15:47:51.000Z | test/core/test_read_steepest_descent_simulator.cpp | Mjolnir-MD/Mjolnir | 043df4080720837042c6b67a5495ecae198bc2b3 | [
"MIT"
] | 60 | 2019-01-14T08:11:33.000Z | 2021-07-29T08:26:36.000Z | test/core/test_read_steepest_descent_simulator.cpp | yutakasi634/Mjolnir | ab7a29a47f994111e8b889311c44487463f02116 | [
"MIT"
] | 8 | 2019-01-13T11:03:31.000Z | 2021-08-01T11:38:00.000Z | #define BOOST_TEST_MODULE "test_read_steepest_descent_simulator"
#ifdef BOOST_TEST_DYN_LINK
#include <boost/test/unit_test.hpp>
#else
#include <boost/test/included/unit_test.hpp>
#endif
#include <test/util/make_empty_input.hpp>
#include <mjolnir/input/read_simulator.hpp>
BOOST_AUTO_TEST_CASE(read_steepest_descent_sim... | 31.764706 | 91 | 0.618519 | yutakasi634 |
bdb64ea47a50e3e88ad6f73c4df9ed521282ae2b | 22,643 | cpp | C++ | qws/src/network/QUdpSocket_DhClass.cpp | keera-studios/hsQt | 8aa71a585cbec40005354d0ee43bce9794a55a9a | [
"BSD-2-Clause"
] | 42 | 2015-02-16T19:29:16.000Z | 2021-07-25T11:09:03.000Z | qws/src/network/QUdpSocket_DhClass.cpp | keera-studios/hsQt | 8aa71a585cbec40005354d0ee43bce9794a55a9a | [
"BSD-2-Clause"
] | 1 | 2017-11-23T12:49:25.000Z | 2017-11-23T12:49:25.000Z | qws/src/network/QUdpSocket_DhClass.cpp | keera-studios/hsQt | 8aa71a585cbec40005354d0ee43bce9794a55a9a | [
"BSD-2-Clause"
] | 5 | 2015-10-15T21:25:30.000Z | 2017-11-22T13:18:24.000Z | /////////////////////////////////////////////////////////////////////////////
//
// File : QUdpSocket_DhClass.cpp
// Copyright : (c) David Harley 2010
// Project : qtHaskell
// Version : 1.1.4
// Modified : 2010-09-02 17:01:56
//
// Warning : this file is machine ge... | 34.203927 | 228 | 0.709932 | keera-studios |
bdb7aefa3e950bf166eaedd7820f3081d7444e85 | 340 | cpp | C++ | src/configuration/is_last.cpp | Damdoshi/LibLapin | 800e0f17ed8f3c47797c48feea4c280bb0e4bdc9 | [
"BSD-3-Clause"
] | 38 | 2016-07-30T09:35:19.000Z | 2022-03-04T10:13:48.000Z | src/configuration/is_last.cpp | Elania-Marvers/LibLapin | 800e0f17ed8f3c47797c48feea4c280bb0e4bdc9 | [
"BSD-3-Clause"
] | 15 | 2017-02-12T19:20:52.000Z | 2021-06-09T09:30:52.000Z | src/configuration/is_last.cpp | Elania-Marvers/LibLapin | 800e0f17ed8f3c47797c48feea4c280bb0e4bdc9 | [
"BSD-3-Clause"
] | 12 | 2016-10-06T09:06:59.000Z | 2022-03-04T10:14:00.000Z | // Jason Brillante "Damdoshi"
// Hanged Bunny Studio 2014-2018
//
// Lapin library
#include "lapin_private.h"
bool bunny_configuration_is_last(t_bunny_configuration *cnf)
{
std::map<std::string, SmallConf*>::iterator it;
SmallConf *conf = (SmallConf*)cnf;
it = conf->father->iterator;
return (++it == conf... | 21.25 | 62 | 0.691176 | Damdoshi |
bdb9221391a7b30f333a66535c58bcde6c7905b3 | 819 | cpp | C++ | dijkstra.cpp | nmdis1999/Templates | 7c5a9d48581a72a55c73083b865187a81b743c21 | [
"MIT"
] | null | null | null | dijkstra.cpp | nmdis1999/Templates | 7c5a9d48581a72a55c73083b865187a81b743c21 | [
"MIT"
] | null | null | null | dijkstra.cpp | nmdis1999/Templates | 7c5a9d48581a72a55c73083b865187a81b743c21 | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
using namespace std;
const int INF = 2147483647;
const int MAX = 5005;
int D[MAX], N; // Keeps minimum distance to each node
vector<pair<int,int>> gr[MAX]; // Adjacency list
void dijkstra()
{
for(int i = 1; i <= N; i++) D[i] = INF;
D[1] = 0;
priority_queue<pair<int,int>,vector<p... | 22.75 | 81 | 0.483516 | nmdis1999 |
bdbece02fc48f977abe9e8e4eff1ddcbdfe69d3a | 7,572 | cpp | C++ | src/intel_hex.cpp | ciguard/p-star | 0be844f60d02cb67796d364d740d5fc53d8bc24e | [
"MIT"
] | null | null | null | src/intel_hex.cpp | ciguard/p-star | 0be844f60d02cb67796d364d740d5fc53d8bc24e | [
"MIT"
] | null | null | null | src/intel_hex.cpp | ciguard/p-star | 0be844f60d02cb67796d364d740d5fc53d8bc24e | [
"MIT"
] | null | null | null | /* intel_hex.cpp:
* Simple library for reading Intel hex (.ihx or .hex) files.
*/
#include "intel_hex.h"
#include <cassert>
#include <sstream>
#include <iomanip>
#include <algorithm>
#include <typeinfo>
#include <stdexcept>
using namespace IntelHex;
static int hexDigitValue(unsigned char c)
{
if (c >= 'a' && c... | 26.110345 | 91 | 0.565372 | ciguard |
bdc4f6fe98d276f00693320c8e7f891158bc9738 | 277 | cpp | C++ | vr/vr_rt/src/vr/version.cpp | vladium/vrt | 57394a630c306b7529dbe4574036ea71420d00cf | [
"MIT"
] | 4 | 2019-09-09T22:08:40.000Z | 2021-05-17T13:43:31.000Z | vr/vr_rt/src/vr/version.cpp | vladium/vrt | 57394a630c306b7529dbe4574036ea71420d00cf | [
"MIT"
] | null | null | null | vr/vr_rt/src/vr/version.cpp | vladium/vrt | 57394a630c306b7529dbe4574036ea71420d00cf | [
"MIT"
] | 1 | 2019-09-09T15:46:20.000Z | 2019-09-09T15:46:20.000Z |
#include "vr/version.h"
//----------------------------------------------------------------------------
char const * _ __attribute__((visibility ("internal"))) = "vr_version: " VR_BUILD_VERSION;
//----------------------------------------------------------------------------
| 30.777778 | 90 | 0.303249 | vladium |
bdca1028459ae995ab28e4221fead23c7457b109 | 5,353 | cpp | C++ | Cbc/Cbc/src/CbcGenMessages.cpp | fadi-alkhoury/coin-or-cbc-with-cmake | b4a216118d8e773b694b44c5f27cd75a251cc2cb | [
"MIT"
] | null | null | null | Cbc/Cbc/src/CbcGenMessages.cpp | fadi-alkhoury/coin-or-cbc-with-cmake | b4a216118d8e773b694b44c5f27cd75a251cc2cb | [
"MIT"
] | null | null | null | Cbc/Cbc/src/CbcGenMessages.cpp | fadi-alkhoury/coin-or-cbc-with-cmake | b4a216118d8e773b694b44c5f27cd75a251cc2cb | [
"MIT"
] | null | null | null | /*! \legal
Copyright (C) 2007
Lou Hafer, International Business Machines Corporation and others. All
Rights Reserved.
This code is licensed under the terms of the Eclipse Public License (EPL).
$Id: CbcGenMessages.cpp 2465 2019-01-03 19:26:52Z unxusr $
*/
/*
This file is part of cbc-generic.
*/
#include "... | 26.899497 | 83 | 0.69886 | fadi-alkhoury |
bdcc3e895626c1d323cdb5457068c885fe86badb | 4,411 | cpp | C++ | server/core/TaskManager.cpp | hotgloupi/zhttpd | 0437ac2e34dde89abab26665df9cbee1777f1d44 | [
"BSD-3-Clause"
] | 2 | 2015-01-29T17:23:23.000Z | 2015-09-21T17:45:22.000Z | server/core/TaskManager.cpp | hotgloupi/zhttpd | 0437ac2e34dde89abab26665df9cbee1777f1d44 | [
"BSD-3-Clause"
] | null | null | null | server/core/TaskManager.cpp | hotgloupi/zhttpd | 0437ac2e34dde89abab26665df9cbee1777f1d44 | [
"BSD-3-Clause"
] | null | null | null |
#include "utils/Timer.hpp"
#include "utils/Logger.hpp"
#include "utils/SmartPtr.hpp"
#include "utils/macros.hpp"
#include "ModuleTask.hpp"
#include "TaskManager.hpp"
#include "ServerState.hpp"
#include "RequestManager.hpp"
#include "SessionManager.hpp"
using namespace zhttpd;
TaskManager::TaskManager() : _thread_po... | 29.804054 | 105 | 0.6146 | hotgloupi |
bdd2e937705624ee8a8384a7be827c849f56c84c | 3,469 | cpp | C++ | c++/algorithms_&_data_structure/binary_search/main.cpp | AAS-WT/Linux | 994e50439e5ff83858ec33ba2398935df26bcb39 | [
"MIT"
] | null | null | null | c++/algorithms_&_data_structure/binary_search/main.cpp | AAS-WT/Linux | 994e50439e5ff83858ec33ba2398935df26bcb39 | [
"MIT"
] | null | null | null | c++/algorithms_&_data_structure/binary_search/main.cpp | AAS-WT/Linux | 994e50439e5ff83858ec33ba2398935df26bcb39 | [
"MIT"
] | null | null | null | #include <algorithm>
#include <iostream>
void SortingChoice(int *pArray, unsigned int ArraySize);
int *BinarySearch_1(int *pArray, unsigned int ArraySize, int SearchValue);
int BinarySearch_2(int *pArray, unsigned int ArraySize, int SearchValue);
int main(int argc, char *argv[]) {
unsigned int ArraySize;
std::co... | 33.355769 | 78 | 0.631306 | AAS-WT |
bdd50f4b5c287e55900fe6ed10c3da007bbe85da | 5,480 | hpp | C++ | misc/debug.hpp | prince776/CodeBook | 874fc7f94011ad1d25a55bcd91fecd2a11eb5a9b | [
"CC0-1.0"
] | 17 | 2021-01-25T12:07:17.000Z | 2022-02-26T17:20:31.000Z | misc/debug.hpp | NavneelSinghal/CodeBook | ff60ace9107dd19ef8ba81e175003f567d2a9070 | [
"CC0-1.0"
] | null | null | null | misc/debug.hpp | NavneelSinghal/CodeBook | ff60ace9107dd19ef8ba81e175003f567d2a9070 | [
"CC0-1.0"
] | 4 | 2021-02-28T11:13:44.000Z | 2021-11-20T12:56:20.000Z | #include <algorithm>
#include <iostream>
#include <iterator>
#include <sstream>
#include <string>
#include <tuple>
#include <type_traits>
#include <utility>
#include <vector>
namespace Debug {
// clang-format off
#define DEBUG_RED "\x1B[0m\x1B[31m"
#define DEBUG_GREEN "\x1B[0m\x1B[32m"
#define... | 33.82716 | 80 | 0.535219 | prince776 |
7524f71ce73d2a2a200f0c1c43754493694e75c6 | 29 | hpp | C++ | src/boost_vmd_vmd.hpp | miathedev/BoostForArduino | 919621dcd0c157094bed4df752b583ba6ea6409e | [
"BSL-1.0"
] | 10 | 2018-03-17T00:58:42.000Z | 2021-07-06T02:48:49.000Z | src/boost_vmd_vmd.hpp | miathedev/BoostForArduino | 919621dcd0c157094bed4df752b583ba6ea6409e | [
"BSL-1.0"
] | 2 | 2021-03-26T15:17:35.000Z | 2021-05-20T23:55:08.000Z | src/boost_vmd_vmd.hpp | miathedev/BoostForArduino | 919621dcd0c157094bed4df752b583ba6ea6409e | [
"BSL-1.0"
] | 4 | 2019-05-28T21:06:37.000Z | 2021-07-06T03:06:52.000Z | #include <boost/vmd/vmd.hpp>
| 14.5 | 28 | 0.724138 | miathedev |
752a49d9ebc8a22b592323e349d672f723d1784b | 9,389 | cpp | C++ | ProgramUI.fld/ProgramUI.cpp | depaulo/OrganizerCpp | 9847cb2d117bd493e127fb499bdbf9112cf388b1 | [
"MIT"
] | null | null | null | ProgramUI.fld/ProgramUI.cpp | depaulo/OrganizerCpp | 9847cb2d117bd493e127fb499bdbf9112cf388b1 | [
"MIT"
] | null | null | null | ProgramUI.fld/ProgramUI.cpp | depaulo/OrganizerCpp | 9847cb2d117bd493e127fb499bdbf9112cf388b1 | [
"MIT"
] | null | null | null | // generated by Fast Light User Interface Designer (fluid) version 1.0305
#include "ProgramUI.h"
Fl_Menu_Item MainWindow::menu_[] = {
{"Manage account", 0, 0, 0, 64, (uchar)FL_NORMAL_LABEL, 0, 15, 0},
{"Create account", 0, (Fl_Callback*)CreateAcc_cb, 0, 0, (uchar)FL_NORMAL_LABEL, 0, 13, 0},
{"Save", 0, (Fl_Call... | 37.110672 | 99 | 0.626478 | depaulo |
752cf616666cc4a2985e357281b37b61d3eb4bb8 | 1,039 | cpp | C++ | codes/chap05/code_5_8.cpp | tokuhira/book_algorithm_solution | a24b68c5ef57a88e906991bbaf026bf17b5faab9 | [
"CC0-1.0"
] | null | null | null | codes/chap05/code_5_8.cpp | tokuhira/book_algorithm_solution | a24b68c5ef57a88e906991bbaf026bf17b5faab9 | [
"CC0-1.0"
] | null | null | null | codes/chap05/code_5_8.cpp | tokuhira/book_algorithm_solution | a24b68c5ef57a88e906991bbaf026bf17b5faab9 | [
"CC0-1.0"
] | null | null | null | #include <iostream>
#include <string>
#include <vector>
using namespace std;
template<class T> void chmin(T& a, T b) {
if (a > b) {
a = b;
}
}
const int INF = 1 << 29; // 十分大きな値 (ここでは 2^29 とする)
int main() {
// 入力
string S, T;
cin >> S >> T;
// DP テーブル定義
vector<vector<int>> dp... | 21.204082 | 73 | 0.348412 | tokuhira |
752d5a6b7539b8ad641826b062f1c4cf4b0b3faa | 5,014 | cpp | C++ | src/ColorConverterLib.cpp | luisllamasbinaburo/Arduino-RGBConverter | a6c0fc27218b23c0fb31bf55bd41afb2f075a19f | [
"Apache-2.0"
] | 9 | 2018-07-01T13:24:05.000Z | 2022-02-17T00:30:58.000Z | src/ColorConverterLib.cpp | luisllamasbinaburo/Arduino-RGBConverter | a6c0fc27218b23c0fb31bf55bd41afb2f075a19f | [
"Apache-2.0"
] | 4 | 2018-06-04T21:34:43.000Z | 2021-06-06T23:50:39.000Z | src/ColorConverterLib.cpp | luisllamasbinaburo/Arduino-RGBConverter | a6c0fc27218b23c0fb31bf55bd41afb2f075a19f | [
"Apache-2.0"
] | 4 | 2019-11-14T19:27:41.000Z | 2022-02-17T00:31:01.000Z | /***************************************************
Copyright (c) 2017 Luis Llamas
(www.luisllamas.es)
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... | 24.945274 | 305 | 0.566813 | luisllamasbinaburo |
75323464428f84ff8cebc3b1049684733a9aec29 | 4,453 | cpp | C++ | scripting/test/Coding/CodingTest.cpp | hhsaez/crimild | e3efee09489939338df55e8af9a1f9ddc01301f7 | [
"BSD-3-Clause"
] | 36 | 2015-03-12T10:42:36.000Z | 2022-01-12T04:20:40.000Z | scripting/test/Coding/CodingTest.cpp | hhsaez/crimild | e3efee09489939338df55e8af9a1f9ddc01301f7 | [
"BSD-3-Clause"
] | 1 | 2015-12-17T00:25:43.000Z | 2016-02-20T12:00:57.000Z | scripting/test/Coding/CodingTest.cpp | hhsaez/crimild | e3efee09489939338df55e8af9a1f9ddc01301f7 | [
"BSD-3-Clause"
] | 6 | 2017-06-17T07:57:53.000Z | 2019-04-09T21:11:24.000Z | /*
* Copyright (c) 2013, Hernan Saez
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
* * Redistributions of source code must retain the above copyright
* notice, this list of con... | 39.40708 | 94 | 0.666742 | hhsaez |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.