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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
3d154b1cd09f6d78482ec6bb7322cf25aeadf3f2 | 3,560 | hh | C++ | include/mognetwork/Selector.hh | qingchen1984/LibNet | 8c164fe8009ca40af062f1d3851bae51d0f83ade | [
"MIT"
] | 11 | 2015-05-13T15:21:35.000Z | 2022-02-28T09:39:45.000Z | include/mognetwork/Selector.hh | qingchen1984/LibNet | 8c164fe8009ca40af062f1d3851bae51d0f83ade | [
"MIT"
] | 1 | 2015-04-29T15:34:19.000Z | 2015-05-05T12:26:36.000Z | include/mognetwork/Selector.hh | AlexMog/LibNet | 8c164fe8009ca40af062f1d3851bae51d0f83ade | [
"MIT"
] | 5 | 2015-05-29T14:33:08.000Z | 2018-10-20T14:28:50.000Z | //
// Selector.hh for mognetwork in
//
// Made by mognetworkhrabi Alexandre
// Login <alexmog@epitech.net>
//
// Started on Wed Jun 11 15:43:12 2014 mognetworkhrabi Alexandre
// Last update Tue Apr 21 10:20:40 2015 Moghrabi Alexandre
//
/*!
* \file Selector.hh
* \brief Select encapsulation
* \author AlexMog
... | 25.428571 | 90 | 0.629494 | qingchen1984 |
3d1656b9e8d69710f7c9ebcec5c014084a7d6b55 | 2,705 | cpp | C++ | tests/lsutils_memset_test.cpp | hamsham/LightUtils | ae909ee0e6d8915b1447cbb41aceceb98df1a2e6 | [
"BSD-3-Clause"
] | 1 | 2021-09-04T19:23:37.000Z | 2021-09-04T19:23:37.000Z | tests/lsutils_memset_test.cpp | hamsham/LightUtils | ae909ee0e6d8915b1447cbb41aceceb98df1a2e6 | [
"BSD-3-Clause"
] | null | null | null | tests/lsutils_memset_test.cpp | hamsham/LightUtils | ae909ee0e6d8915b1447cbb41aceceb98df1a2e6 | [
"BSD-3-Clause"
] | 1 | 2015-10-16T06:07:58.000Z | 2015-10-16T06:07:58.000Z |
#include <cstring>
#include <iostream>
#include "lightsky/utils/Assertions.h"
#include "lightsky/utils/Copy.h"
#include "lightsky/utils/Pointer.h"
#include "lightsky/utils/Time.hpp"
int main()
{
constexpr unsigned int numBytes = 512*1024*1024*sizeof(char)-1; // 1 gigabyte
constexpr long double numGigs = (l... | 38.098592 | 103 | 0.599261 | hamsham |
3d17d57cf8941375bd573703d8e1a5f8308b354d | 445 | cpp | C++ | src/DocxMerger/DocxMergerPasteChartField.cpp | bas524/DocxFactory | 8520eef9778d7e696a8013090396bb7b3f2936a0 | [
"BSD-3-Clause"
] | 2 | 2019-02-19T07:53:03.000Z | 2019-11-05T10:21:21.000Z | src/DocxMerger/DocxMergerPasteChartField.cpp | bas524/DocxFactory | 8520eef9778d7e696a8013090396bb7b3f2936a0 | [
"BSD-3-Clause"
] | null | null | null | src/DocxMerger/DocxMergerPasteChartField.cpp | bas524/DocxFactory | 8520eef9778d7e696a8013090396bb7b3f2936a0 | [
"BSD-3-Clause"
] | 1 | 2021-07-09T07:29:48.000Z | 2021-07-09T07:29:48.000Z |
#include "DocxFactory/DocxMerger/DocxMergerField.h"
#include "DocxFactory/DocxMerger/DocxMergerPasteChartField.h"
using namespace DocxFactory;
using namespace std;
DocxMergerPasteChartField::DocxMergerPasteChartField(DocxMergerField* p_field) : DocxMergerPasteField(p_field) {
} // c'tor
DocxMergerPasteChartField::... | 23.421053 | 112 | 0.802247 | bas524 |
3d1f28e2b0d1eae35eab0b9520b60d980d0ce245 | 2,136 | cpp | C++ | src/utils/decrypt/AesGCMDecryptor.cpp | MaxKrabio/GoogleChromeTokenAcqusitor | f5a5e685ecbcd9c859e6b8ea7a9e1d102d7ee811 | [
"MIT"
] | null | null | null | src/utils/decrypt/AesGCMDecryptor.cpp | MaxKrabio/GoogleChromeTokenAcqusitor | f5a5e685ecbcd9c859e6b8ea7a9e1d102d7ee811 | [
"MIT"
] | null | null | null | src/utils/decrypt/AesGCMDecryptor.cpp | MaxKrabio/GoogleChromeTokenAcqusitor | f5a5e685ecbcd9c859e6b8ea7a9e1d102d7ee811 | [
"MIT"
] | null | null | null | #include "AesGCMDecryptor.h"
#include <openssl/conf.h>
#include <openssl/evp.h>
#include <openssl/aes.h>
#include <openssl/err.h>
crypt::AesGCMDecryptor::AesGCMDecryptor()
: _cipherFn(nullptr)
{
if(!(_ctx = EVP_CIPHER_CTX_new()))
{
spdlog::error("Can't allocate memory for crypt context!");
}
}... | 25.129412 | 94 | 0.638577 | MaxKrabio |
3d209f4aa09f70dfa0fdc8938b44aabde6ab3c42 | 392 | cpp | C++ | OpenGL/src/tests/Test.cpp | ilkeraktug/OpenGL | ddf639166e75c96e02864dd92aea7a562cf36a72 | [
"MIT"
] | null | null | null | OpenGL/src/tests/Test.cpp | ilkeraktug/OpenGL | ddf639166e75c96e02864dd92aea7a562cf36a72 | [
"MIT"
] | null | null | null | OpenGL/src/tests/Test.cpp | ilkeraktug/OpenGL | ddf639166e75c96e02864dd92aea7a562cf36a72 | [
"MIT"
] | null | null | null | #include "Test.h"
#include "Renderer.h"
namespace test {
TestMenu::TestMenu(Test*& currentTest)
:m_CurrentTest(currentTest) {}
TestMenu::~TestMenu()
{
}
void TestMenu::OnRender()
{
Renderer renderer;
renderer.Clear();
}
void TestMenu::OnImGuiRender()
{
for (auto& test : m_Tests)
{
if (ImGui::... | 14.518519 | 41 | 0.647959 | ilkeraktug |
3d20ebafa449ebe31d42921ab51251a8fc42e63b | 11,388 | cpp | C++ | Adafruit_IL91874.cpp | PaulStoffregen/Adafruit_EPD | 647c4404580c832e3aede0436e384a7a20960a6f | [
"MIT"
] | null | null | null | Adafruit_IL91874.cpp | PaulStoffregen/Adafruit_EPD | 647c4404580c832e3aede0436e384a7a20960a6f | [
"MIT"
] | null | null | null | Adafruit_IL91874.cpp | PaulStoffregen/Adafruit_EPD | 647c4404580c832e3aede0436e384a7a20960a6f | [
"MIT"
] | null | null | null | #include "Adafruit_EPD.h"
#include "Adafruit_IL91874.h"
#define BUSY_WAIT 500
const unsigned char lut_vcomDC[] =
{
0x00 ,0x00,
0x00 ,0x1A ,0x1A ,0x00 ,0x00 ,0x01,
0x00 ,0x0A ,0x0A ,0x00 ,0x00 ,0x08,
0x00 ,0x0E ,0x01 ,0x0E ,0x01 ,0x10,
0x00 ,0x0A ,0x0A ,0x00 ,0x00 ,0x08,
0x00 ,0x04 ,0x10 ,0x00 ,0x00 ,0x05,
... | 26.669789 | 228 | 0.55778 | PaulStoffregen |
3d237622b59abb25d2390370224b81af411952da | 5,320 | cpp | C++ | tests/msgpack/msgpacktest.cpp | gknowles/dimapp | daadd9afe5fb1a6f716c431411e20c48ca180f9f | [
"BSL-1.0"
] | 1 | 2016-07-20T18:43:34.000Z | 2016-07-20T18:43:34.000Z | tests/msgpack/msgpacktest.cpp | gknowles/dimapp | daadd9afe5fb1a6f716c431411e20c48ca180f9f | [
"BSL-1.0"
] | 4 | 2016-08-30T05:29:18.000Z | 2016-11-07T04:02:15.000Z | tests/msgpack/msgpacktest.cpp | gknowles/dimapp | daadd9afe5fb1a6f716c431411e20c48ca180f9f | [
"BSL-1.0"
] | 1 | 2017-10-20T22:31:17.000Z | 2017-10-20T22:31:17.000Z | // Copyright Glen Knowles 2018 - 2020.
// Distributed under the Boost Software License, Version 1.0.
//
// msgpacktest.cpp - dim test msgpack
#include "pch.h"
#pragma hdrstop
using namespace std;
using namespace Dim;
/****************************************************************************
*
* Declarations
*
*... | 25.95122 | 77 | 0.435902 | gknowles |
3d2743d22d21eedd307ddaca02592e0843afd373 | 147 | hpp | C++ | test/coro_test.hpp | AlexanderKlishin/libcoro-cpp | ae38144289d1f241cb45ead949266e5b3d1b3120 | [
"MIT"
] | null | null | null | test/coro_test.hpp | AlexanderKlishin/libcoro-cpp | ae38144289d1f241cb45ead949266e5b3d1b3120 | [
"MIT"
] | null | null | null | test/coro_test.hpp | AlexanderKlishin/libcoro-cpp | ae38144289d1f241cb45ead949266e5b3d1b3120 | [
"MIT"
] | null | null | null | #pragma once
#include <gtest/gtest.h>
#define ASSERT_CORO_RUNNING(coro) ASSERT_TRUE(!!(coro))
#define ASSERT_CORO_DEAD(coro) ASSERT_TRUE(!(coro))
| 24.5 | 55 | 0.768707 | AlexanderKlishin |
3d2be404f9b67602995e6e1fe667f8443be9d9eb | 1,545 | cpp | C++ | cpp/test7.cpp | merajabi/informix-tutorial-step-by-step-guide-for-beginners | f20deaf10767de3d54cfc27b6ad09885fc91b60f | [
"CC0-1.0"
] | 3 | 2021-08-23T06:32:56.000Z | 2021-10-11T20:13:38.000Z | cpp/test7.cpp | merajabi/informix-tutorial-step-by-step-guide-for-beginners | f20deaf10767de3d54cfc27b6ad09885fc91b60f | [
"CC0-1.0"
] | null | null | null | cpp/test7.cpp | merajabi/informix-tutorial-step-by-step-guide-for-beginners | f20deaf10767de3d54cfc27b6ad09885fc91b60f | [
"CC0-1.0"
] | 1 | 2021-10-11T20:13:56.000Z | 2021-10-11T20:13:56.000Z | #include <it.h>
#include <iostream>
#include <memory>
#include <functional>
void ITRelease(ITEssential* itObject){
if(itObject) {
itObject->Release();
}
}
int main(int argc, char *argv[])
{
// Prepare Connection String
ITDBInfo db("sales_demo","informix","informix","in4mix");
// Prepare Connection O... | 25.327869 | 109 | 0.63301 | merajabi |
3d34a207ae596b30244c8cff5ab5c1575e99756f | 1,798 | cpp | C++ | include/network.cpp | va3wam/pentaBot | 76c94e405a8c1b773a5b6ed30eaff8f126a47629 | [
"MIT"
] | null | null | null | include/network.cpp | va3wam/pentaBot | 76c94e405a8c1b773a5b6ed30eaff8f126a47629 | [
"MIT"
] | 97 | 2021-08-30T13:35:39.000Z | 2022-03-31T02:51:47.000Z | include/network.cpp | theAgingApprentice/zippy | 9ba9fbce98e2fdcd31f106e3af662678f3c7e515 | [
"MIT"
] | 1 | 2021-10-29T19:09:33.000Z | 2021-10-29T19:09:33.000Z | /*******************************************************************************
* @file network.cpp
* @brief File containing all wifi functions.
*******************************************************************************/
#ifndef network_h // Start of precompiler check to avoid dupicate inclusion of this code... | 41.813953 | 95 | 0.582314 | va3wam |
3d36b84736d8e1cc6290ed2ef50a59e10dc84569 | 459 | hpp | C++ | tests/docking_test.hpp | jimmiebergmann/Guise | b6b16de961f4299e2384980db11a0a811f01eaf4 | [
"MIT"
] | 1 | 2020-09-06T10:35:58.000Z | 2020-09-06T10:35:58.000Z | tests/docking_test.hpp | jimmiebergmann/Guise | b6b16de961f4299e2384980db11a0a811f01eaf4 | [
"MIT"
] | null | null | null | tests/docking_test.hpp | jimmiebergmann/Guise | b6b16de961f4299e2384980db11a0a811f01eaf4 | [
"MIT"
] | null | null | null | #include "test.hpp"
#include "guise/control/dockable.hpp"
#include "guise/control/button.hpp"
using namespace Guise;
TEST(Docking, Dockable)
{
{
/*class Foo
{};
auto button1 = Button::create();
auto test = Dockable<Foo>::create();
test->foo();
auto type = test->... | 17.653846 | 56 | 0.546841 | jimmiebergmann |
3d380a68e517354ede098722fb865826e56c8bac | 357 | hpp | C++ | maolan/ui/glfw/ui.hpp | maolan/maolan | 655806cde218622037bedfd90d57ae829fc091d3 | [
"BSD-2-Clause"
] | 2 | 2019-12-03T04:38:51.000Z | 2021-01-06T18:18:07.000Z | maolan/ui/glfw/ui.hpp | maolan/maolan | 655806cde218622037bedfd90d57ae829fc091d3 | [
"BSD-2-Clause"
] | null | null | null | maolan/ui/glfw/ui.hpp | maolan/maolan | 655806cde218622037bedfd90d57ae829fc091d3 | [
"BSD-2-Clause"
] | 3 | 2018-01-16T10:12:16.000Z | 2019-08-11T23:13:00.000Z | #pragma once
#include <string>
#include "../ui.hpp"
class GLFWwindow;
namespace maolan::ui
{
class App;
class GLFW : public UI
{
public:
GLFW(const std::string &title = "ImGui");
~GLFW();
virtual void prepare();
virtual void render();
virtual void run(App *app);
protect... | 13.730769 | 47 | 0.588235 | maolan |
3d3c781b8cb47ffbc9756859cacc8ec40db4cfdf | 2,292 | cpp | C++ | test/miscellaneous/worker.cpp | tamaskenez/mapbox-gl-native-cmake | 169e6412fd880278a0fb080826609d305e6d500b | [
"BSD-2-Clause"
] | 1 | 2015-07-01T21:59:13.000Z | 2015-07-01T21:59:13.000Z | test/miscellaneous/worker.cpp | tamaskenez/mapbox-gl-native-cmake | 169e6412fd880278a0fb080826609d305e6d500b | [
"BSD-2-Clause"
] | null | null | null | test/miscellaneous/worker.cpp | tamaskenez/mapbox-gl-native-cmake | 169e6412fd880278a0fb080826609d305e6d500b | [
"BSD-2-Clause"
] | null | null | null | #include "../fixtures/util.hpp"
#include <mbgl/util/worker.hpp>
#include <mbgl/util/work_request.hpp>
#include <mbgl/util/run_loop.hpp>
using namespace mbgl;
using namespace mbgl::util;
TEST(Worker, ExecutesWorkAndAfter) {
RunLoop loop(uv_default_loop());
Worker worker(1);
std::unique_ptr<WorkRequest> r... | 21.828571 | 70 | 0.562391 | tamaskenez |
3d3d52d45aa237bce8c168d99b6704ce88685ec6 | 3,595 | cpp | C++ | cpp-old/lib/net/socket.cpp | boryas/hcppd | 86e7418bb5b6852e448d1f1a60029d2798c0b838 | [
"MIT"
] | 1 | 2018-08-25T08:10:07.000Z | 2018-08-25T08:10:07.000Z | cpp-old/lib/net/socket.cpp | boryas/hcppd | 86e7418bb5b6852e448d1f1a60029d2798c0b838 | [
"MIT"
] | 22 | 2016-09-21T05:46:18.000Z | 2016-12-18T04:05:18.000Z | cpp-old/lib/net/socket.cpp | boryas/ssfs | 86e7418bb5b6852e448d1f1a60029d2798c0b838 | [
"MIT"
] | null | null | null | #include "socket.h"
#include <errno.h>
#include <syslog.h>
#include <string.h>
#include <sstream>
#define LISTENQ 10
namespace ssfs {
namespace net {
Sockaddr::Sockaddr(const std::string& port, sa_family_t family) {
init(port, family);
}
void Sockaddr::init(const std::string& port, sa_family_t family) {
this-... | 28.085938 | 82 | 0.662031 | boryas |
3d42fed0f580ef51dc39c74d2232ee9bd58127d0 | 3,871 | cc | C++ | src/base/WCSimPMTManager.cc | chipsneutrino/chips-sim | 19d3f2d75c674c06d2f27b9a344b70ca53e672c5 | [
"MIT"
] | null | null | null | src/base/WCSimPMTManager.cc | chipsneutrino/chips-sim | 19d3f2d75c674c06d2f27b9a344b70ca53e672c5 | [
"MIT"
] | null | null | null | src/base/WCSimPMTManager.cc | chipsneutrino/chips-sim | 19d3f2d75c674c06d2f27b9a344b70ca53e672c5 | [
"MIT"
] | null | null | null | #include <iostream>
#include <fstream>
#include <sstream>
// Use the rapidXML parser
#include <rapidxml-1.13/rapidxml.hpp>
#include <rapidxml-1.13/rapidxml_utils.hpp>
// Geant4
#include "globals.hh"
#include "WCSimPMTManager.hh"
#include "CLHEP/Units/SystemOfUnits.h"
#ifndef REFLEX_DICTIONARY
ClassImp(WCSimPMTManag... | 24.656051 | 118 | 0.685869 | chipsneutrino |
3d45d771e23ba79403f34d1f0d0a8726adcfe4c7 | 687 | hpp | C++ | libs/fnd/cctype/include/bksge/fnd/cctype/isblank.hpp | myoukaku/bksge | 0f8b60e475a3f1709723906e4796b5e60decf06e | [
"MIT"
] | 4 | 2018-06-10T13:35:32.000Z | 2021-06-03T14:27:41.000Z | libs/fnd/cctype/include/bksge/fnd/cctype/isblank.hpp | myoukaku/bksge | 0f8b60e475a3f1709723906e4796b5e60decf06e | [
"MIT"
] | 566 | 2017-01-31T05:36:09.000Z | 2022-02-09T05:04:37.000Z | libs/fnd/cctype/include/bksge/fnd/cctype/isblank.hpp | myoukaku/bksge | 0f8b60e475a3f1709723906e4796b5e60decf06e | [
"MIT"
] | 1 | 2018-07-05T04:40:53.000Z | 2018-07-05T04:40:53.000Z | /**
* @file isblank.hpp
*
* @brief isblank の定義
*
* @author myoukaku
*/
#ifndef BKSGE_FND_CCTYPE_ISBLANK_HPP
#define BKSGE_FND_CCTYPE_ISBLANK_HPP
#include <bksge/fnd/config.hpp>
#include <type_traits>
namespace bksge
{
namespace detail
{
inline BKSGE_CONSTEXPR bool isblank(unsigned char c... | 18.567568 | 92 | 0.676856 | myoukaku |
3d4a51d4c25db1f1fa0e738020b6fccfc9819d7c | 382 | hpp | C++ | TicTacToe/Grid.hpp | djanko1337/TicTacToe | 6adcdf7b3a7ed947f36d473c965853edea4ddc8e | [
"MIT"
] | 1 | 2018-02-14T18:00:52.000Z | 2018-02-14T18:00:52.000Z | TicTacToe/Grid.hpp | djanko1337/TicTacToe | 6adcdf7b3a7ed947f36d473c965853edea4ddc8e | [
"MIT"
] | null | null | null | TicTacToe/Grid.hpp | djanko1337/TicTacToe | 6adcdf7b3a7ed947f36d473c965853edea4ddc8e | [
"MIT"
] | null | null | null | #pragma once
#include "Rectangle.hpp"
#include "Size.hpp"
namespace TicTacToe {
class Grid {
public:
Grid() noexcept = default;
Grid(Rectangle const& bounds, int rows, int columns, int padding) noexcept;
auto fieldBounds(int x, int y) const noexcept -> Rectangle;
private:
Rectangle mBounds;
Si... | 16.608696 | 79 | 0.693717 | djanko1337 |
3d4ad3a05cd687dc9d64f9808d2d5b0a4698cd0e | 54 | hpp | C++ | src/boost_geometry_multi_algorithms_within.hpp | miathedev/BoostForArduino | 919621dcd0c157094bed4df752b583ba6ea6409e | [
"BSL-1.0"
] | 10 | 2018-03-17T00:58:42.000Z | 2021-07-06T02:48:49.000Z | src/boost_geometry_multi_algorithms_within.hpp | miathedev/BoostForArduino | 919621dcd0c157094bed4df752b583ba6ea6409e | [
"BSL-1.0"
] | 2 | 2021-03-26T15:17:35.000Z | 2021-05-20T23:55:08.000Z | src/boost_geometry_multi_algorithms_within.hpp | miathedev/BoostForArduino | 919621dcd0c157094bed4df752b583ba6ea6409e | [
"BSL-1.0"
] | 4 | 2019-05-28T21:06:37.000Z | 2021-07-06T03:06:52.000Z | #include <boost/geometry/multi/algorithms/within.hpp>
| 27 | 53 | 0.814815 | miathedev |
3d4cf9d7c085692439c12ccfbaa53a6893910415 | 298 | hh | C++ | IntStr.hh | dimstamat/sto | e29d2eeffff5dbde9a81dfdbba473d1475a2676b | [
"MIT"
] | 38 | 2018-03-05T22:00:33.000Z | 2022-03-28T21:19:57.000Z | IntStr.hh | dimstamat/sto | e29d2eeffff5dbde9a81dfdbba473d1475a2676b | [
"MIT"
] | 5 | 2018-08-07T02:27:22.000Z | 2021-08-25T15:29:56.000Z | IntStr.hh | dimstamat/sto | e29d2eeffff5dbde9a81dfdbba473d1475a2676b | [
"MIT"
] | 17 | 2018-04-10T03:03:43.000Z | 2022-03-31T13:14:52.000Z | #pragma once
#include "str.hh"
struct IntStr {
char s_[16];
lcdf::Str str_;
IntStr(int i) {
int n = snprintf(s_, sizeof(s_), "%d", i);
str_.assign(s_, n);
}
lcdf::Str& str() {
return str_;
}
operator lcdf::Str&() {
return str_;
}
};
| 16.555556 | 50 | 0.486577 | dimstamat |
3d54f8c5123ac54cb5589e1bd91ae308fb836ced | 2,557 | cpp | C++ | tests/util.cpp | maghoff/jsonxx | c5edb3040d72a1251f5e96e2c3a3b0876bcf8652 | [
"MIT"
] | null | null | null | tests/util.cpp | maghoff/jsonxx | c5edb3040d72a1251f5e96e2c3a3b0876bcf8652 | [
"MIT"
] | null | null | null | tests/util.cpp | maghoff/jsonxx | c5edb3040d72a1251f5e96e2c3a3b0876bcf8652 | [
"MIT"
] | null | null | null | #include <sstream>
#include "test_util.hpp"
#include "util.hpp"
namespace {
bool simple_quoted_string() {
bool ok = true;
std::stringstream ss;
jsonxx::write_quoted_string(ss, "simple");
CHECK_EQUAL(ss.str(), "\"simple\"");
return ok;
}
bool quoted_string_with_control_chars() {
bool ok = tr... | 21.308333 | 67 | 0.638639 | maghoff |
3d5db5a9c995facfab7e331dbe5495d935c0fcd6 | 6,946 | cc | C++ | lite/kernels/host/deformable_conv_compute.cc | wanglei91/Paddle-Lite | 8b2479f4cdd6970be507203d791bede5a453c09d | [
"Apache-2.0"
] | 1,799 | 2019-08-19T03:29:38.000Z | 2022-03-31T14:30:50.000Z | lite/kernels/host/deformable_conv_compute.cc | wanglei91/Paddle-Lite | 8b2479f4cdd6970be507203d791bede5a453c09d | [
"Apache-2.0"
] | 3,767 | 2019-08-19T03:36:04.000Z | 2022-03-31T14:37:26.000Z | lite/kernels/host/deformable_conv_compute.cc | wanglei91/Paddle-Lite | 8b2479f4cdd6970be507203d791bede5a453c09d | [
"Apache-2.0"
] | 798 | 2019-08-19T02:28:23.000Z | 2022-03-31T08:31:54.000Z | // Copyright (c) 2020 PaddlePaddle Authors. All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required... | 36.946809 | 79 | 0.675641 | wanglei91 |
3d5dd3122282ceda104d373fdad4e8a565cbea72 | 7,908 | hh | C++ | src/mem/spm/spm_class/SPMPage.hh | danned/gem5spm-riscv | 4790fd1ec5972dae40c1871283121041296984e5 | [
"BSD-3-Clause"
] | 3 | 2019-03-26T14:51:39.000Z | 2021-12-23T04:47:09.000Z | src/mem/spm/spm_class/SPMPage.hh | danned/gem5spm-riscv | 4790fd1ec5972dae40c1871283121041296984e5 | [
"BSD-3-Clause"
] | null | null | null | src/mem/spm/spm_class/SPMPage.hh | danned/gem5spm-riscv | 4790fd1ec5972dae40c1871283121041296984e5 | [
"BSD-3-Clause"
] | 1 | 2019-04-01T03:22:57.000Z | 2019-04-01T03:22:57.000Z | #ifndef __MEM_SPMPAGE_HH__
#define __MEM_SPMPAGE_HH__
#include "base/types.hh"
#include "mem/packet.hh"
#include "mem/ruby/common/TypeDefines.hh"
#include <cassert>
#include <fstream>
#include <iomanip>
#include <iostream>
#include <inttypes.h>
class Annotations;
//TODO: Unused for now -- just placeholder
enum SPMP... | 25.184713 | 70 | 0.608118 | danned |
87ccf3aa1643475bb5dd4eabbca42bd503a8039c | 663 | cpp | C++ | project/src/default/StackLoader.cpp | CPTI/Exception | d65cbadd42d1dc4f700d15150e9b3f29f721323e | [
"MIT"
] | 4 | 2017-03-13T13:23:45.000Z | 2021-02-07T23:46:42.000Z | project/src/default/StackLoader.cpp | CPTI/Exception | d65cbadd42d1dc4f700d15150e9b3f29f721323e | [
"MIT"
] | null | null | null | project/src/default/StackLoader.cpp | CPTI/Exception | d65cbadd42d1dc4f700d15150e9b3f29f721323e | [
"MIT"
] | 1 | 2021-01-09T13:52:29.000Z | 2021-01-09T13:52:29.000Z | #include "StackAddressLoader.h"
namespace Backtrace {
// Interface for the stack provide backend.
class DefaultStackLoader: public IStackAddresLoader {
public:
// Returns the current callstack starting at the calling function
// At most depth addresses are loaded. The return value is the... | 26.52 | 80 | 0.683258 | CPTI |
87d22abb4633c2a1c0d201b9c26ccadec7670a6a | 24,956 | cpp | C++ | renderer/RendererCommon.cpp | turol/smaaDemo | d6e02955b1b5396162d2ba67b78798e43cebfc57 | [
"MIT"
] | 64 | 2015-10-30T10:06:24.000Z | 2022-03-10T01:47:25.000Z | renderer/RendererCommon.cpp | turol/smaaDemo | d6e02955b1b5396162d2ba67b78798e43cebfc57 | [
"MIT"
] | 7 | 2015-11-29T09:52:37.000Z | 2020-12-14T11:00:33.000Z | renderer/RendererCommon.cpp | turol/smaaDemo | d6e02955b1b5396162d2ba67b78798e43cebfc57 | [
"MIT"
] | 5 | 2015-12-28T21:07:20.000Z | 2021-01-28T09:25:36.000Z | /*
Copyright (c) 2015-2021 Alternative Games Ltd / Turo Lamminen
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, ... | 24.587192 | 162 | 0.686689 | turol |
87d303b790d81b7f4ac162e9f33d915daf7dd683 | 1,578 | cpp | C++ | src/testprog/sprite/bsprite.cpp | degarashi/revenant | 9e671320a5c8790f6bdd1b14934f81c37819f7b3 | [
"MIT"
] | null | null | null | src/testprog/sprite/bsprite.cpp | degarashi/revenant | 9e671320a5c8790f6bdd1b14934f81c37819f7b3 | [
"MIT"
] | null | null | null | src/testprog/sprite/bsprite.cpp | degarashi/revenant | 9e671320a5c8790f6bdd1b14934f81c37819f7b3 | [
"MIT"
] | null | null | null | #include "bsprite.hpp"
#include "../../object/drawgroup.hpp"
namespace rev::test {
// ----------------------- BoundingSprite -----------------------
BoundingSprite::BoundingSprite(const HDGroup& dg, const HTex& hTex, const frea::Vec2& pos, const frea::Vec2& svec):
Sprite2D(hTex, 0.f),
_dg(dg),
_svec(svec)
{
... | 23.552239 | 116 | 0.581749 | degarashi |
87d3681ac076fd26dfa383204fe9b4497650eb1a | 3,678 | cpp | C++ | ifft_mex.cpp | melihaltun/myFFT | 27e4dcace265ae58df30c981d8b24f474be9a40c | [
"MIT"
] | 3 | 2018-08-01T02:17:23.000Z | 2021-10-05T21:36:36.000Z | ifft_mex.cpp | melihaltun/myFFT | 27e4dcace265ae58df30c981d8b24f474be9a40c | [
"MIT"
] | null | null | null | ifft_mex.cpp | melihaltun/myFFT | 27e4dcace265ae58df30c981d8b24f474be9a40c | [
"MIT"
] | null | null | null |
#include "fft.h"
#include "C:\\Program Files\\MATLAB\\R2017b\\extern\\include\\mex.h" //The path may need to be be adjusted.
void convertMatlabImg2C(floating *out, floating *in, int N, int M)
{
int i, j, ii, jj;
ii = 0; jj = 0;
for (i = 0; i < N; i++) {
for (j = 0; j < M; j++) {
out[lin_index(ii, j... | 27.044118 | 208 | 0.570419 | melihaltun |
87d3aed090f2e8726711c7a4091ef1d3c14dcb46 | 1,756 | cpp | C++ | Nacro/SDK/FN_Plant_Shrub_01_functions.cpp | Milxnor/Nacro | eebabf662bbce6d5af41820ea0342d3567a0aecc | [
"BSD-2-Clause"
] | 11 | 2021-08-08T23:25:10.000Z | 2022-02-19T23:07:22.000Z | Nacro/SDK/FN_Plant_Shrub_01_functions.cpp | Milxnor/Nacro | eebabf662bbce6d5af41820ea0342d3567a0aecc | [
"BSD-2-Clause"
] | 1 | 2022-01-01T22:51:59.000Z | 2022-01-08T16:14:15.000Z | Nacro/SDK/FN_Plant_Shrub_01_functions.cpp | Milxnor/Nacro | eebabf662bbce6d5af41820ea0342d3567a0aecc | [
"BSD-2-Clause"
] | 8 | 2021-08-09T13:51:54.000Z | 2022-01-26T20:33:37.000Z | // Fortnite (1.8) SDK
#ifdef _MSC_VER
#pragma pack(push, 0x8)
#endif
#include "../SDK.hpp"
namespace SDK
{
//---------------------------------------------------------------------------
//Functions
//---------------------------------------------------------------------------
// Function Plant_Shrub_01.Plant_Shrub_0... | 23.72973 | 125 | 0.6959 | Milxnor |
87dd1156fb1455dda0cbd74d8a45ace02084fe1d | 436 | hpp | C++ | include/Instruction.hpp | Ge0/RecursiveTraversalx86 | ec7bc7dc3e21a1ef6d07e2325ba41a35cc2a8a3a | [
"MIT"
] | 2 | 2015-12-13T17:27:50.000Z | 2016-06-15T01:50:44.000Z | include/Instruction.hpp | Ge0/RecursiveTraversalx86 | ec7bc7dc3e21a1ef6d07e2325ba41a35cc2a8a3a | [
"MIT"
] | null | null | null | include/Instruction.hpp | Ge0/RecursiveTraversalx86 | ec7bc7dc3e21a1ef6d07e2325ba41a35cc2a8a3a | [
"MIT"
] | null | null | null | #ifndef _INSTRUCTION_HPP_
#define _INSTRUCTION_HPP_
#include <cstdio>
namespace RecursiveTraversal {
class AbstractInstructionProcessor;
class Instruction {
public:
Instruction(size_t length = 0);
inline size_t length() const {
return m_length;
}
void setLength(size_t length);
virtual void ... | 15.571429 | 58 | 0.738532 | Ge0 |
87e214777cac6fcc5486bfd267e3c2ee5ebe1a57 | 4,959 | cpp | C++ | Projeto/AEDAPROJ1/User.cpp | joanaferreira0011/MIEIC_AEDA_codedatabasemanagement | 1da4ad533bf57412515544da6a2e097e90ec01b5 | [
"MIT"
] | null | null | null | Projeto/AEDAPROJ1/User.cpp | joanaferreira0011/MIEIC_AEDA_codedatabasemanagement | 1da4ad533bf57412515544da6a2e097e90ec01b5 | [
"MIT"
] | null | null | null | Projeto/AEDAPROJ1/User.cpp | joanaferreira0011/MIEIC_AEDA_codedatabasemanagement | 1da4ad533bf57412515544da6a2e097e90ec01b5 | [
"MIT"
] | null | null | null | #include "stdafx.h"
#include "User.h"
User::User(string name, string birth, string email) {
User::name = name;
User::birth = Date(birth);
User::email = email;
}
Date User::getBirth() const {
return this->birth;
}
string User::getEmail() const {
return this->email;
}
string User::getName() const {
return this... | 22.643836 | 127 | 0.695906 | joanaferreira0011 |
87e6d8e775a54e545d1a41703ee1509a7d7a9db1 | 2,407 | hpp | C++ | src/core/broker/broker.hpp | YADRO-KNS/obmc-yadro-webapp | 09a77cb570596385b68b950f061aa2ac6a28e4db | [
"Apache-2.0"
] | null | null | null | src/core/broker/broker.hpp | YADRO-KNS/obmc-yadro-webapp | 09a77cb570596385b68b950f061aa2ac6a28e4db | [
"Apache-2.0"
] | null | null | null | src/core/broker/broker.hpp | YADRO-KNS/obmc-yadro-webapp | 09a77cb570596385b68b950f061aa2ac6a28e4db | [
"Apache-2.0"
] | null | null | null | // SPDX-License-Identifier: Apache-2.0
// Copyright (C) 2021 YADRO
#ifndef __BROKER_H__
#define __BROKER_H__
#include <logger/logger.hpp>
#include <map>
#include <memory>
#include <chrono>
namespace app
{
namespace broker
{
class IBrokerManager;
using namespace std::chrono;
using namespace std::literals;
class IB... | 22.287037 | 80 | 0.607395 | YADRO-KNS |
87e91983053d12b93c0f99d9f36971c2383e8b4f | 2,235 | cpp | C++ | src/Character.cpp | tntxtnt/infinite-curve | f50a81c9dcc183c3de3f21067d75fca2a52eaf46 | [
"MIT"
] | 2 | 2020-10-22T15:22:29.000Z | 2020-10-24T07:20:29.000Z | src/Character.cpp | tntxtnt/infinite-curve | f50a81c9dcc183c3de3f21067d75fca2a52eaf46 | [
"MIT"
] | null | null | null | src/Character.cpp | tntxtnt/infinite-curve | f50a81c9dcc183c3de3f21067d75fca2a52eaf46 | [
"MIT"
] | 1 | 2019-03-24T01:43:24.000Z | 2019-03-24T01:43:24.000Z | #include "Character.h"
#include "Common.h"
#include <SFML/Graphics/RenderTarget.hpp>
Character::Character(sf::Shape& shape, const Curve& curve, float moveSpeed)
: shape{shape},
moveSpeed{moveSpeed},
curve{curve},
segmentIndex{0},
segmentPercentage{0}
{
shape.setPosition(curve[0]);
fixRotation();
}
sf:... | 23.526316 | 77 | 0.638031 | tntxtnt |
87ead12cb2cc192e0a61a08e3a0f0e40f1a26fe9 | 1,080 | cpp | C++ | example/example.cpp | amitesh-singh/simplethreadpool | 619a0d953348ba69b1fa58ce44286503e06bcde7 | [
"MIT"
] | 1 | 2021-06-15T12:02:04.000Z | 2021-06-15T12:02:04.000Z | example/example.cpp | amitesh-singh/simplethreadpool | 619a0d953348ba69b1fa58ce44286503e06bcde7 | [
"MIT"
] | null | null | null | example/example.cpp | amitesh-singh/simplethreadpool | 619a0d953348ba69b1fa58ce44286503e06bcde7 | [
"MIT"
] | null | null | null | #include <iostream>
#include "threadpool.h"
#include <chrono>
#include <algorithm>
#include <ctime>
void doWork()
{
std::this_thread::sleep_for(std::chrono::seconds(5));
std::cout << __FUNCTION__ << std::endl;
}
class job
{
public:
void run(int index)
{
std::this_thread::sleep_for(std... | 18.947368 | 69 | 0.502778 | amitesh-singh |
87ec3511cfcce84dfed27305c060817212737708 | 7,959 | hh | C++ | src/Integrator/IntegratorInline.hh | jmikeowen/Spheral | 3e1082a7aefd6b328bd3ae24ca1a477108cfc3c4 | [
"BSD-Source-Code",
"BSD-3-Clause-LBNL",
"FSFAP"
] | 22 | 2018-07-31T21:38:22.000Z | 2020-06-29T08:58:33.000Z | src/Integrator/IntegratorInline.hh | markguozhiming/spheral | bbb982102e61edb8a1d00cf780bfa571835e1b61 | [
"BSD-Source-Code",
"BSD-3-Clause-LBNL",
"FSFAP"
] | 41 | 2020-09-28T23:14:27.000Z | 2022-03-28T17:01:33.000Z | src/Integrator/IntegratorInline.hh | markguozhiming/spheral | bbb982102e61edb8a1d00cf780bfa571835e1b61 | [
"BSD-Source-Code",
"BSD-3-Clause-LBNL",
"FSFAP"
] | 7 | 2019-12-01T07:00:06.000Z | 2020-09-15T21:12:39.000Z | #include "Utilities/DBC.hh"
namespace Spheral {
//------------------------------------------------------------------------------
// Access the current time.
//------------------------------------------------------------------------------
template<typename Dimension>
inline
typename Dimension::Scalar
Integrator<Dimens... | 27.163823 | 80 | 0.511245 | jmikeowen |
87f2966c761d5e2b8f4f2dd01e339e73f10ea6c4 | 716 | cpp | C++ | examples/regularexpression-multiple.cpp | davidwed/sqlrelay_rudiments | 6ccffdfc5fa29f8c0226f3edc2aa888aa1008347 | [
"BSD-2-Clause-NetBSD"
] | null | null | null | examples/regularexpression-multiple.cpp | davidwed/sqlrelay_rudiments | 6ccffdfc5fa29f8c0226f3edc2aa888aa1008347 | [
"BSD-2-Clause-NetBSD"
] | null | null | null | examples/regularexpression-multiple.cpp | davidwed/sqlrelay_rudiments | 6ccffdfc5fa29f8c0226f3edc2aa888aa1008347 | [
"BSD-2-Clause-NetBSD"
] | null | null | null | #include <rudiments/regularexpression.h>
#include <rudiments/stdio.h>
int main(int argc, const char **argv) {
const char *string="hello there everyone";
const char *pattern="(\\w+) (\\w+)";
regularexpression re;
re.compile(pattern);
re.match(string);
stdoutput.printf("\"%s\" matches \"%s\" %d times\n",
st... | 26.518519 | 55 | 0.662011 | davidwed |
87f3c130d8a35d0e2824e369b1400276cafaf783 | 503 | cpp | C++ | wpchanger_app/src/qt/thumbnailexplorer/thumbnailelement/thumbnailexplorerelement.cpp | VioletGiraffe/desktop-wallpaper-switcher | 0ad69f112d7472608b3c0f3495185cfcb097c743 | [
"MIT"
] | 9 | 2018-07-06T08:12:25.000Z | 2022-03-13T23:30:36.000Z | wpchanger_app/src/qt/thumbnailexplorer/thumbnailelement/thumbnailexplorerelement.cpp | VioletGiraffe/desktop-wallpaper-switcher | 0ad69f112d7472608b3c0f3495185cfcb097c743 | [
"MIT"
] | 9 | 2015-06-08T08:18:34.000Z | 2016-12-27T10:04:47.000Z | wpchanger_app/src/qt/thumbnailexplorer/thumbnailelement/thumbnailexplorerelement.cpp | VioletGiraffe/desktop-wallpaper-switcher | 0ad69f112d7472608b3c0f3495185cfcb097c743 | [
"MIT"
] | 2 | 2017-12-21T12:23:38.000Z | 2022-02-13T16:26:14.000Z | #include "thumbnailexplorerelement.h"
DISABLE_COMPILER_WARNINGS
#include "ui_thumbnailexplorerelement.h"
RESTORE_COMPILER_WARNINGS
ThumbnailExplorerElement::ThumbnailExplorerElement(const Image& img /*= Image()*/, QWidget *parent) :
QWidget(parent),
ui(new Ui::ThumbnailExplorerElement)
{
ui->setupUi(this);
ui->_... | 22.863636 | 101 | 0.785288 | VioletGiraffe |
87f4539463fee9f021fe7ab5f2f330cb967419cf | 6,613 | cpp | C++ | Source/OpenTournament/UR_ChatComponent.cpp | HAARP-art/OpenTournament | 1bb188983ba4d013a8ce00bbe1a333f2952814e8 | [
"OML"
] | 97 | 2020-05-24T23:09:26.000Z | 2022-01-22T13:35:58.000Z | Source/OpenTournament/UR_ChatComponent.cpp | HAARP-art/OpenTournament | 1bb188983ba4d013a8ce00bbe1a333f2952814e8 | [
"OML"
] | 165 | 2020-05-26T02:42:54.000Z | 2022-03-29T11:01:11.000Z | Source/OpenTournament/UR_ChatComponent.cpp | HAARP-art/OpenTournament | 1bb188983ba4d013a8ce00bbe1a333f2952814e8 | [
"OML"
] | 78 | 2020-05-24T23:10:29.000Z | 2022-03-14T13:54:09.000Z | // Copyright (c) 2019-2020 Open Tournament Project, All Rights Reserved.
#include "UR_ChatComponent.h"
#include "GameFramework/Controller.h"
#include "GameFramework/PlayerState.h"
#include "UR_GameModeBase.h"
#include "UR_GameState.h"
#include "UR_Character.h"
#include "UR_FunctionLibrary.h"
/**
* NO... | 30.059091 | 145 | 0.667927 | HAARP-art |
87fa04a73fe72828d01edd806cc32de39a2bda85 | 9,452 | cpp | C++ | Solver/Solver_main.cpp | ntrin/Linear-Solvers | 7fb80defd41fc59a19290f7a12dedaf74d27bcaa | [
"MIT"
] | null | null | null | Solver/Solver_main.cpp | ntrin/Linear-Solvers | 7fb80defd41fc59a19290f7a12dedaf74d27bcaa | [
"MIT"
] | null | null | null | Solver/Solver_main.cpp | ntrin/Linear-Solvers | 7fb80defd41fc59a19290f7a12dedaf74d27bcaa | [
"MIT"
] | null | null | null | /*
* Solver_main.cpp
*
* Created on: Jan 28, 2020
* Author: Nicolas
*/
/*
#include <iostream>
#include <vector>
#include <algorithm> // for copy
#include <iterator> // for ostream_iterator
#include <sstream>
#include "Matrix.cpp"
#include "Matrix.h"
#include "CSRMatrix.cpp"
#include "CSRMatrix... | 27.317919 | 131 | 0.514388 | ntrin |
87fef0e58ff234df8b538cf030421b2a834096ce | 1,521 | cpp | C++ | GameFramework/src/BehaviourTrees/Actions/NavigatePath.cpp | lcomstive/AIE_AIForGames | 4128b9984a86111871864c904a34da04c12c3293 | [
"MIT"
] | null | null | null | GameFramework/src/BehaviourTrees/Actions/NavigatePath.cpp | lcomstive/AIE_AIForGames | 4128b9984a86111871864c904a34da04c12c3293 | [
"MIT"
] | null | null | null | GameFramework/src/BehaviourTrees/Actions/NavigatePath.cpp | lcomstive/AIE_AIForGames | 4128b9984a86111871864c904a34da04c12c3293 | [
"MIT"
] | null | null | null | #include <vector>
#include <Framework/Pathfinding/AStar.hpp>
#include <Framework/BehaviourTrees/Actions/NavigatePath.hpp>
using namespace std;
using namespace Framework::BT;
using namespace Framework::Pathfinding;
BehaviourResult NavigatePath::Execute(GameObject* go)
{
if (!ContextExists("Path"))
return BehaviourR... | 27.654545 | 90 | 0.698225 | lcomstive |
e202d4e4d5ddcd72813e9f1a6d9eb043eee7b29f | 1,352 | cpp | C++ | src/json_writer.cpp | Querijn/Valunpak | c1eebe2bd7effc8afa45becfbcf383fe4ad9cdf9 | [
"MIT"
] | 3 | 2020-06-07T21:05:11.000Z | 2021-03-30T17:50:08.000Z | src/json_writer.cpp | Querijn/Valunpak | c1eebe2bd7effc8afa45becfbcf383fe4ad9cdf9 | [
"MIT"
] | null | null | null | src/json_writer.cpp | Querijn/Valunpak | c1eebe2bd7effc8afa45becfbcf383fe4ad9cdf9 | [
"MIT"
] | 1 | 2021-05-17T08:24:18.000Z | 2021-05-17T08:24:18.000Z | #include <valunpak/json_writer.hpp>
namespace valunpak
{
std::string to_json(const std::map<std::string, json_variable>& a_map)
{
std::string result = "{";
bool first = true;
for (auto entry : a_map)
{
if (first)
first = false;
else
result += ",";
// Key
result += to_json(entry.first);
... | 19.314286 | 79 | 0.630178 | Querijn |
e20b0a928214ddf31284b42716681570ee6d0766 | 1,631 | cpp | C++ | LeetCode/100/79.cpp | K-ona/C-_Training | d54970f7923607bdc54fc13677220d1b3daf09e5 | [
"Apache-2.0"
] | null | null | null | LeetCode/100/79.cpp | K-ona/C-_Training | d54970f7923607bdc54fc13677220d1b3daf09e5 | [
"Apache-2.0"
] | null | null | null | LeetCode/100/79.cpp | K-ona/C-_Training | d54970f7923607bdc54fc13677220d1b3daf09e5 | [
"Apache-2.0"
] | null | null | null | // created by Kona @VSCode
#include <algorithm>
#include <iostream>
#include <map>
#include <string>
#include <queue>
#include <vector>
#include <string.h>
#define LOCAL_TEST
typedef long long ll;
using std::cin;
using std::cout;
using std::endl;
using std::map;
using std::queue;
using std::string;
using std::vector;... | 23.637681 | 84 | 0.515021 | K-ona |
e20bb50316f40182ee26824d1ecd39d862945bec | 1,353 | cpp | C++ | hazelcast/src/hazelcast/client/protocol/UsernamePasswordCredentials.cpp | pirog-spb/hazelcast-cpp-client | 979cf38b85a8308dbcc75b7e94a2b79fffceae21 | [
"Apache-2.0"
] | null | null | null | hazelcast/src/hazelcast/client/protocol/UsernamePasswordCredentials.cpp | pirog-spb/hazelcast-cpp-client | 979cf38b85a8308dbcc75b7e94a2b79fffceae21 | [
"Apache-2.0"
] | null | null | null | hazelcast/src/hazelcast/client/protocol/UsernamePasswordCredentials.cpp | pirog-spb/hazelcast-cpp-client | 979cf38b85a8308dbcc75b7e94a2b79fffceae21 | [
"Apache-2.0"
] | null | null | null | /*
* Copyright (c) 2008-2018, Hazelcast, Inc. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required ... | 32.214286 | 127 | 0.684405 | pirog-spb |
e20bb7e6e477b70677bf871ea3a9fe05ebc496dd | 668 | cpp | C++ | solved/c-e/coin-change-iv/gen.cpp | abuasifkhan/pc-code | 77ce51d692acf6edcb9e47aeb7b7f06bf56e4e90 | [
"Unlicense"
] | 13 | 2015-09-30T19:18:04.000Z | 2021-06-26T21:11:30.000Z | solved/c-e/coin-change-iv/gen.cpp | sbmaruf/pc-code | 77ce51d692acf6edcb9e47aeb7b7f06bf56e4e90 | [
"Unlicense"
] | null | null | null | solved/c-e/coin-change-iv/gen.cpp | sbmaruf/pc-code | 77ce51d692acf6edcb9e47aeb7b7f06bf56e4e90 | [
"Unlicense"
] | 13 | 2015-01-04T09:49:54.000Z | 2021-06-03T13:18:44.000Z | #include <cstdio>
#include <cstdlib>
#include <ctime>
#include <set>
using namespace std;
#define MAXT 100
#define MAXK 1000000000
#define MAXA 10000000
void test_case()
{
int n = rand() % 18 + 1;
int K = rand() % MAXK + 1;
set<int> used;
printf("%d %d\n", n, K);
for (int i = 0; i < n; ++i) {
... | 14.212766 | 45 | 0.479042 | abuasifkhan |
e20e91ea71d767f5f6e58cf4cc9ed07f78509114 | 651 | cpp | C++ | editor/ui_font_manager.cpp | ArcheGraphics/Arche-cpp | da6770edd4556a920b3f7298f38176107caf7e3a | [
"MIT"
] | 8 | 2022-02-15T12:54:57.000Z | 2022-03-30T16:35:58.000Z | editor/ui_font_manager.cpp | yangfengzzz/DigitalArche | da6770edd4556a920b3f7298f38176107caf7e3a | [
"MIT"
] | null | null | null | editor/ui_font_manager.cpp | yangfengzzz/DigitalArche | da6770edd4556a920b3f7298f38176107caf7e3a | [
"MIT"
] | null | null | null | // Copyright (c) 2022 Feng Yang
//
// I am making my contributions/submissions to this project solely in my
// personal capacity and am not conveying any rights to any intellectual
// property of any third parties.
#include "ui_font_manager.h"
#include <unordered_map>
static std::unordered_map<std::string, ImFont... | 27.125 | 73 | 0.695853 | ArcheGraphics |
e210ee6f6e7942d00a3d156eef7014aefbb78e20 | 3,333 | cpp | C++ | libraries/script-engine/src/AudioScriptingInterface.cpp | polac/hifi | f18807862302a08577da72d38d341ec306ddfefb | [
"Apache-2.0"
] | null | null | null | libraries/script-engine/src/AudioScriptingInterface.cpp | polac/hifi | f18807862302a08577da72d38d341ec306ddfefb | [
"Apache-2.0"
] | null | null | null | libraries/script-engine/src/AudioScriptingInterface.cpp | polac/hifi | f18807862302a08577da72d38d341ec306ddfefb | [
"Apache-2.0"
] | null | null | null | //
// AudioScriptingInterface.cpp
// libraries/audio/src
//
// Created by Stephen Birarda on 1/2/2014.
// Copyright 2014 High Fidelity, Inc.
//
// Distributed under the Apache License, Version 2.0.
// See the accompanying file LICENSE or http://www.apache.org/licenses/LICENSE-2.0.html
//
#include "AudioScripting... | 34.360825 | 116 | 0.717972 | polac |
e215821cf7651fe6b36006135d87a4297eec9909 | 15,288 | hpp | C++ | include/Bit/Graphics/OpenGL/Win32/OpenGLGraphicDeviceWin32.hpp | jimmiebergmann/Bit-Engine | 39324a9e7fb5ab4b1cf3738f871470e0a9ef7575 | [
"Zlib"
] | null | null | null | include/Bit/Graphics/OpenGL/Win32/OpenGLGraphicDeviceWin32.hpp | jimmiebergmann/Bit-Engine | 39324a9e7fb5ab4b1cf3738f871470e0a9ef7575 | [
"Zlib"
] | null | null | null | include/Bit/Graphics/OpenGL/Win32/OpenGLGraphicDeviceWin32.hpp | jimmiebergmann/Bit-Engine | 39324a9e7fb5ab4b1cf3738f871470e0a9ef7575 | [
"Zlib"
] | null | null | null | // ///////////////////////////////////////////////////////////////////////////
// Copyright (C) 2013 Jimmie Bergmann - jimmiebergmann@gmail.com
//
// This software is provided 'as-is', without any express or
// implied warranty. In no event will the authors be held
// liable for any damages arising from the use of this... | 37.106796 | 109 | 0.426544 | jimmiebergmann |
e2182decdbb01839905fcff75bc012a085abbc35 | 2,091 | hpp | C++ | GD4GameWorld/Include/Book/State/LobbyState.hpp | Alex-Jay/2d_sfml_game | 3872c92d1e17b68c2bf2c78f13e32b2bf80a605a | [
"MIT"
] | 1 | 2018-12-18T12:00:57.000Z | 2018-12-18T12:00:57.000Z | GD4GameWorld/Include/Book/State/LobbyState.hpp | Alex-Jay/k-arnage_2d_sfml_game | 3872c92d1e17b68c2bf2c78f13e32b2bf80a605a | [
"MIT"
] | null | null | null | GD4GameWorld/Include/Book/State/LobbyState.hpp | Alex-Jay/k-arnage_2d_sfml_game | 3872c92d1e17b68c2bf2c78f13e32b2bf80a605a | [
"MIT"
] | null | null | null | #pragma once
#include "State/State.hpp"
#include "State/StateStack.hpp"
#include "Component/Container.hpp"
#include "Entity/Character.hpp"
#include "Networking/GameServer.hpp"
#include "Networking/NetworkProtocol.hpp"
#include "Entity/Player.hpp"
#include "Networking/PacketHandler.hpp"
#include <SFML/System/Clock.hpp>... | 24.6 | 61 | 0.775227 | Alex-Jay |
e21d22e89c4785d80cc60672cbecd3d728ceb625 | 2,284 | cpp | C++ | tests/polynomial/jacobi.cpp | piyueh/SimPoly | c3eb1627f784bed522c84b2c39555ba7e48582f2 | [
"BSD-3-Clause"
] | null | null | null | tests/polynomial/jacobi.cpp | piyueh/SimPoly | c3eb1627f784bed522c84b2c39555ba7e48582f2 | [
"BSD-3-Clause"
] | null | null | null | tests/polynomial/jacobi.cpp | piyueh/SimPoly | c3eb1627f784bed522c84b2c39555ba7e48582f2 | [
"BSD-3-Clause"
] | null | null | null | /**
* \file tests/polynomial/jacobi.cpp
* \brief Unit tests for functions creating Jacobi-family polynomial.
* \author Pi-Yueh Chuang
* \version beta
* \date 2018-02-13
*/
# include <gtest/gtest.h>
# include "exceptions.h"
# include "polynomial.h"
using namespace simpoly;
# ifndef NDEBUG
TEST(JacobiPoly, Test... | 33.101449 | 93 | 0.68958 | piyueh |
e221307717ee68aa8cc58d287216bea48e44c9c3 | 9,123 | cpp | C++ | src/filesystem/Uri.cpp | Aerijo/latex-language-server | fbd520e40e7878ca9b114e408b21b6b1e181a875 | [
"MIT"
] | 4 | 2019-04-08T17:03:24.000Z | 2019-09-13T17:20:20.000Z | src/filesystem/Uri.cpp | Aerijo/latex-language-server | fbd520e40e7878ca9b114e408b21b6b1e181a875 | [
"MIT"
] | null | null | null | src/filesystem/Uri.cpp | Aerijo/latex-language-server | fbd520e40e7878ca9b114e408b21b6b1e181a875 | [
"MIT"
] | null | null | null | #include <iostream>
#include <assert.h>
#include "Uri.h"
#ifdef _WIN32
#define IS_WINDOWS true
#else
#define IS_WINDOWS false
#endif
namespace Uri {
bool validUriScheme (const string &scheme) {
if (scheme.empty()) return false;
auto itr = scheme.begin();
char c = *itr;
if (!(std::isalnum(c) || c =... | 25.844193 | 111 | 0.468486 | Aerijo |
e224a7aa95ab890f48044eb7bcdb8d3dde3696c4 | 327 | cpp | C++ | common/texte.cpp | Phaeon/Parser-Json-Toml | 5830d9578b9532bdcd4c1418ba9c6c8d5ffc0d75 | [
"CC0-1.0"
] | null | null | null | common/texte.cpp | Phaeon/Parser-Json-Toml | 5830d9578b9532bdcd4c1418ba9c6c8d5ffc0d75 | [
"CC0-1.0"
] | null | null | null | common/texte.cpp | Phaeon/Parser-Json-Toml | 5830d9578b9532bdcd4c1418ba9c6c8d5ffc0d75 | [
"CC0-1.0"
] | null | null | null | #include "texte.h"
#include <iostream>
using namespace common;
Texte::Texte(const std::string &str):Valeur(), _value(str) {
}
std::string Texte::getValue() const {
return _value;
}
std::string Texte::toTXT() const {
std::string output(_value);
output = "<TEXTE>" + output + "</TEXTE>\n";
return out... | 16.35 | 60 | 0.639144 | Phaeon |
e22560d2805637244de91d1f770d1e644d4e5340 | 1,431 | cc | C++ | test_tree.cc | tuckertwo/cs221-hw06 | c83294b465feee8e9a9f564dc97c1596e168c930 | [
"MIT"
] | null | null | null | test_tree.cc | tuckertwo/cs221-hw06 | c83294b465feee8e9a9f564dc97c1596e168c930 | [
"MIT"
] | null | null | null | test_tree.cc | tuckertwo/cs221-hw06 | c83294b465feee8e9a9f564dc97c1596e168c930 | [
"MIT"
] | null | null | null | #define CATCH_CONFIG_MAIN
#include "catch.hh"
#include "tree.hh"
// These test cases were based on the specification given in `tree.hh`.
tree_ptr_t leaf = create_tree(16, 65536);
tree_ptr_t sequoia = create_tree(154, 65536,
create_tree(0, 1, create_tree(1, 2, create_tree(2, 4, nullptr, leaf))),
cre... | 32.522727 | 79 | 0.661076 | tuckertwo |
e226796f0d0bef62738cb4c0118b6848771cc73d | 914 | hpp | C++ | include/Client/Audio.hpp | semper24/R-Type | b91184d656ffcec39b0a43e7a42c1a1ecd236c9b | [
"MIT"
] | null | null | null | include/Client/Audio.hpp | semper24/R-Type | b91184d656ffcec39b0a43e7a42c1a1ecd236c9b | [
"MIT"
] | null | null | null | include/Client/Audio.hpp | semper24/R-Type | b91184d656ffcec39b0a43e7a42c1a1ecd236c9b | [
"MIT"
] | null | null | null | /*
** EPITECH PROJECT, 2020
** B-CPP-501-NAN-5-1-rtype-arthur.bertaud
** File description:
** Audio.hpp
*/
#ifndef AUDIO_HPP_
#define AUDIO_HPP_
#include <SFML/Audio.hpp>
#include <memory>
#include <map>
#include <iostream>
class Audio {
public:
enum audioType {
MENU,
GAME,
SHOOT,
... | 21.255814 | 81 | 0.59081 | semper24 |
e22bdeb710e3c2d9c7279152ef29d067f8cafcff | 1,934 | cpp | C++ | utils/sendblockcore.cpp | patflick/malms | 97a5fd1fce550800e8ffbfaa4d0eb391b4539b49 | [
"MIT"
] | null | null | null | utils/sendblockcore.cpp | patflick/malms | 97a5fd1fce550800e8ffbfaa4d0eb391b4539b49 | [
"MIT"
] | null | null | null | utils/sendblockcore.cpp | patflick/malms | 97a5fd1fce550800e8ffbfaa4d0eb391b4539b49 | [
"MIT"
] | null | null | null | /*
* Send Signals to Maleable-Scheduler
*
* Author: Patrick Flick
* Version: 0.1
*
* Description:
* Sends Signals to Maleable-Scheduler, telling it which cores
* are enabled and disabled.
* Target PID and Cores are defined by commandline arguments.
*/
#include <signal.h>
#include <cstring>
#i... | 20.574468 | 102 | 0.607032 | patflick |
e2303e42f4e9d033017fca894f0bbe886ce2a3d6 | 3,686 | cpp | C++ | tests/cplusplus/Routing/PathTree.cpp | ethanpeng/OSVR-Core | 59405fc1b1a25aea051dfbba0be5171fa19b8b30 | [
"Apache-2.0"
] | 2 | 2019-03-28T18:29:31.000Z | 2019-04-03T02:30:48.000Z | tests/cplusplus/Routing/PathTree.cpp | ethanpeng/OSVR-Core | 59405fc1b1a25aea051dfbba0be5171fa19b8b30 | [
"Apache-2.0"
] | 2 | 2018-03-19T21:47:26.000Z | 2018-04-10T22:50:38.000Z | tests/cplusplus/Routing/PathTree.cpp | ethanpeng/OSVR-Core | 59405fc1b1a25aea051dfbba0be5171fa19b8b30 | [
"Apache-2.0"
] | null | null | null | /** @file
@brief Test Implementation
@date 2014
@author
Sensics, Inc.
<http://sensics.com/osvr>
*/
// Copyright 2014 Sensics, 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... | 34.773585 | 79 | 0.680141 | ethanpeng |
e2328f7a45f7953c3df2b689f4a6da1e96ef46e1 | 12,580 | cpp | C++ | src/ofxMotionBlurCamera.cpp | hanasaan/ofxMotionBlurCamera | c365b1d920cf7dfb4768e80c6919e49526da6411 | [
"MIT"
] | 23 | 2015-08-22T14:10:35.000Z | 2022-01-29T03:19:18.000Z | src/ofxMotionBlurCamera.cpp | hanasaan/ofxMotionBlurCamera | c365b1d920cf7dfb4768e80c6919e49526da6411 | [
"MIT"
] | null | null | null | src/ofxMotionBlurCamera.cpp | hanasaan/ofxMotionBlurCamera | c365b1d920cf7dfb4768e80c6919e49526da6411 | [
"MIT"
] | 6 | 2016-12-07T13:14:04.000Z | 2022-03-28T14:27:00.000Z | //
// Created by Yuya Hanai, https://github.com/hanasaan
//
#include "ofxMotionBlurCamera.h"
#define STRINGIFY(A) #A
static inline void setupShaderWithHeader(ofShader& s, const string& str)
{
stringstream ss;
ss << "#version 120" << endl;
ss << "#extension GL_EXT_gpu_shader4 : enable" << endl;
ss << s... | 35.238095 | 117 | 0.611367 | hanasaan |
e2334acb96b594426f0609bb0bc37954628c0bef | 826 | cpp | C++ | src/libs/qlib/qpsize.cpp | 3dhater/Racer | d7fe4014b1efefe981528547649dc397da7fa780 | [
"Unlicense"
] | null | null | null | src/libs/qlib/qpsize.cpp | 3dhater/Racer | d7fe4014b1efefe981528547649dc397da7fa780 | [
"Unlicense"
] | null | null | null | src/libs/qlib/qpsize.cpp | 3dhater/Racer | d7fe4014b1efefe981528547649dc397da7fa780 | [
"Unlicense"
] | 1 | 2021-01-03T16:16:47.000Z | 2021-01-03T16:16:47.000Z | /*
* QProcessSize - process size determination
* 11-07-99: Created!
* (C) MarketGraph/RvG
*/
#include <qlib/psize.h>
#include <unistd.h>
#include <qlib/debug.h>
DEBUG_ENABLE
QProcessSize::QProcessSize()
{
UpdateBrk();
}
QProcessSize::~QProcessSize()
{
}
void QProcessSize::UpdateBrk()
{
lastBrk=sbrk(0);
}
in... | 16.857143 | 67 | 0.669492 | 3dhater |
e2343133d6235376c9ab8df6fac681d128563bd6 | 289 | cpp | C++ | main.cpp | Waywrong/gnuplot-example | a7710af3b97b81d6be2d8be3a49433561086567b | [
"Apache-2.0"
] | null | null | null | main.cpp | Waywrong/gnuplot-example | a7710af3b97b81d6be2d8be3a49433561086567b | [
"Apache-2.0"
] | null | null | null | main.cpp | Waywrong/gnuplot-example | a7710af3b97b81d6be2d8be3a49433561086567b | [
"Apache-2.0"
] | null | null | null | #include <stdio.h>
#include <stdlib.h>
int main(int argc, char **argv) {
FILE *command;
command = popen( "gnuplot", "w" );
fprintf( command, "a=-1; b=-2; c=3;" );
fprintf( command, "plot a*x*x+b*x+c\n");
fflush( command );
fgetc(stdin);
pclose( command );
return 0;
}
| 19.266667 | 42 | 0.581315 | Waywrong |
e236348b6b124c7c9fd16c9635f923e1a4149fe5 | 300 | cpp | C++ | Leetcode/1528_shuffle_string.cpp | prameetu/CP_codes | 41f8cfc188d2e08a8091bc5134247d05ba8a78f5 | [
"MIT"
] | null | null | null | Leetcode/1528_shuffle_string.cpp | prameetu/CP_codes | 41f8cfc188d2e08a8091bc5134247d05ba8a78f5 | [
"MIT"
] | null | null | null | Leetcode/1528_shuffle_string.cpp | prameetu/CP_codes | 41f8cfc188d2e08a8091bc5134247d05ba8a78f5 | [
"MIT"
] | null | null | null | #include<bits/stdc++.h>
using namespace std;
class Solution {
public:
string restoreString(string s, vector<int>& indices) {
string ans=s;
int n = indices.size();
for(int i=0;i<n;i++)
{
ans[indices[i]] = s[i];
}
return ans;
}
}; | 17.647059 | 58 | 0.506667 | prameetu |
e23e5cf3a8256191cdf4719f52738cd5ff5fb142 | 14,037 | cpp | C++ | projects/abuild/cpptokenizer/test/if_test.cpp | agnesoft/adev-alt | 3df0329939e3048bbf5db252efb5f74de9c0f061 | [
"Apache-2.0"
] | null | null | null | projects/abuild/cpptokenizer/test/if_test.cpp | agnesoft/adev-alt | 3df0329939e3048bbf5db252efb5f74de9c0f061 | [
"Apache-2.0"
] | 136 | 2020-03-29T11:15:38.000Z | 2020-10-14T06:21:23.000Z | projects/abuild/cpptokenizer/test/if_test.cpp | agnesoft/adev-alt | 3df0329939e3048bbf5db252efb5f74de9c0f061 | [
"Apache-2.0"
] | 1 | 2020-08-04T09:56:53.000Z | 2020-08-04T09:56:53.000Z | import atest;
import abuild.cpptokenizer;
using ::atest::assert_;
using ::atest::expect;
using ::atest::suite;
using ::atest::test;
static const auto S = suite("if", [] { // NOLINT(cert-err58-cpp)
test("equals", [] {
const std::vector<::abuild::Token> tokens = ::abuild::tokenize("#if MY_MACRO == 2\n#endif... | 44.420886 | 121 | 0.641804 | agnesoft |
f46dbf8dbb50b5e162308f10aa186ca9fde84495 | 1,278 | cpp | C++ | Final/question1.cpp | Chairmichael/ECC-CIS | 7559afc1656806e4ddb7e9df784a859d2e52395f | [
"MIT"
] | null | null | null | Final/question1.cpp | Chairmichael/ECC-CIS | 7559afc1656806e4ddb7e9df784a859d2e52395f | [
"MIT"
] | null | null | null | Final/question1.cpp | Chairmichael/ECC-CIS | 7559afc1656806e4ddb7e9df784a859d2e52395f | [
"MIT"
] | null | null | null | ////////////////////////////////////////////////////////////////////////////////
// ECC CIS-223-100 Fall 2020
//
// Type of Assignment: Final Programming
// Author: Jeff Henry
// File Name: question1.cpp
//
// Purpose of Program: Dynamic array allocation
// ... | 28.4 | 85 | 0.526604 | Chairmichael |
f47712ecbd8df4a8fc4d220a7ea9e5831c91e494 | 333 | cpp | C++ | src/problems/vrp.cpp | fonsecadeline/vroom | 215446c8010ce26c701233e72127bd29490ab412 | [
"BSD-2-Clause"
] | null | null | null | src/problems/vrp.cpp | fonsecadeline/vroom | 215446c8010ce26c701233e72127bd29490ab412 | [
"BSD-2-Clause"
] | null | null | null | src/problems/vrp.cpp | fonsecadeline/vroom | 215446c8010ce26c701233e72127bd29490ab412 | [
"BSD-2-Clause"
] | null | null | null | /*
This file is part of VROOM.
Copyright (c) 2015-2018, Julien Coupey.
All rights reserved (see LICENSE).
*/
#include "vrp.h"
#include "../structures/vroom/input/input.h"
vrp::vrp(const input& input) : _input(input) {
assert(_input._vehicles.size() > 0);
}
vrp::~vrp() {
}
solution vrp::solve() const {
return... | 14.478261 | 46 | 0.657658 | fonsecadeline |
f47892fbd80c397ab915ea48e33c78db916b5bbe | 1,105 | cc | C++ | Source/Plugins/SubsystemPlugins/BladeGraphics/source/AutoShaderVariable.cc | OscarGame/blade | 6987708cb011813eb38e5c262c7a83888635f002 | [
"MIT"
] | 146 | 2018-12-03T08:08:17.000Z | 2022-03-21T06:04:06.000Z | Source/Plugins/SubsystemPlugins/BladeGraphics/source/AutoShaderVariable.cc | huangx916/blade | 3fa398f4d32215bbc7e292d61e38bb92aad1ee1c | [
"MIT"
] | 1 | 2019-01-18T03:35:49.000Z | 2019-01-18T03:36:08.000Z | Source/Plugins/SubsystemPlugins/BladeGraphics/source/AutoShaderVariable.cc | huangx916/blade | 3fa398f4d32215bbc7e292d61e38bb92aad1ee1c | [
"MIT"
] | 31 | 2018-12-03T10:32:43.000Z | 2021-10-04T06:31:44.000Z | /********************************************************************
created: 2010/09/05
filename: AutoShaderVariable.cc
author: Crazii
purpose:
*********************************************************************/
#include <BladePCH.h>
#include <AutoShaderVariable.h>
namespace Blade
{
/////////////////////... | 28.333333 | 127 | 0.547511 | OscarGame |
f48956a7c59c21987db34f54a3371eec44977a60 | 7,565 | cpp | C++ | renderer/ddrawsurface_impl.cpp | caitisgreat/jkgfxmod | f861441a751e438e6bb1b930fb611e728bd44b61 | [
"MIT"
] | null | null | null | renderer/ddrawsurface_impl.cpp | caitisgreat/jkgfxmod | f861441a751e438e6bb1b930fb611e728bd44b61 | [
"MIT"
] | null | null | null | renderer/ddrawsurface_impl.cpp | caitisgreat/jkgfxmod | f861441a751e438e6bb1b930fb611e728bd44b61 | [
"MIT"
] | null | null | null | #include "ddrawsurface_impl.hpp"
#include "base/log.hpp"
#include "common/error_reporter.hpp"
#include "dxguids.hpp"
jkgm::DirectDrawSurface_impl::DirectDrawSurface_impl(char const *obj_name)
: obj_name(obj_name)
{
}
HRESULT WINAPI jkgm::DirectDrawSurface_impl::QueryInterface(REFIID riid, LPVOID *ppvObj)
{
re... | 36.902439 | 100 | 0.680767 | caitisgreat |
f48989f785cf8782059a869218818e10b99c805f | 84,009 | cc | C++ | branches/trunk/GUI/spot-on-rss.cc | textbrowser/spot-on | 4cf5628bc588cf2de6bd070abfdc78401a965cc0 | [
"PostgreSQL"
] | 61 | 2015-03-21T19:39:27.000Z | 2022-01-22T06:14:16.000Z | branches/trunk/GUI/spot-on-rss.cc | textbrowser/spot-on | 4cf5628bc588cf2de6bd070abfdc78401a965cc0 | [
"PostgreSQL"
] | 7 | 2016-10-18T18:26:11.000Z | 2021-10-08T14:50:04.000Z | branches/trunk/GUI/spot-on-rss.cc | textbrowser/spot-on | 4cf5628bc588cf2de6bd070abfdc78401a965cc0 | [
"PostgreSQL"
] | 14 | 2016-01-16T07:59:49.000Z | 2021-04-17T10:27:23.000Z | /*
** Copyright (c) 2011 - 10^10^10, Alexis Megas.
** All rights reserved.
**
** Redistribution and use in source and binary forms, with or without
** modification, are permitted provided that the following conditions
** are met:
** 1. Redistributions of source code must retain the above copyright
** notice, this li... | 24.322235 | 80 | 0.637051 | textbrowser |
f48a34d990bc947e9ff7d8cbc72e9e1ccf91f10d | 495 | hpp | C++ | gpio_handle.hpp | doylehuang/phosphor-hwmon | 04da055198fe03f119e53578ac80a6188461b748 | [
"Apache-2.0"
] | 14 | 2021-11-04T07:47:37.000Z | 2022-03-21T10:10:30.000Z | gpio_handle.hpp | doylehuang/phosphor-hwmon | 04da055198fe03f119e53578ac80a6188461b748 | [
"Apache-2.0"
] | 17 | 2015-10-21T03:34:51.000Z | 2021-09-27T17:24:07.000Z | gpio_handle.hpp | doylehuang/phosphor-hwmon | 04da055198fe03f119e53578ac80a6188461b748 | [
"Apache-2.0"
] | 22 | 2015-10-21T03:31:43.000Z | 2021-09-08T07:12:11.000Z | #pragma once
#include <gpioplus/handle.hpp>
#include <memory>
#include <string>
namespace gpio
{
/**
* Method called to validate inputs and create a GpioHandle.
*
* @param[in] gpiochip - gpiochip id as string, e.g. "0", or "1"
* @param[in] line - gpio line offset as string.
* @return A gpioplus::HandleInterface... | 23.571429 | 74 | 0.711111 | doylehuang |
f48cf72d1645335fa118079f15db3eadd6f8bc09 | 8,823 | cpp | C++ | oneEngine/oneGame/source/renderer/object/RrRenderObject.cpp | skarik/1Engine | 84e846544b4a89af8fd7e9236131363096538ef4 | [
"BSD-3-Clause"
] | 8 | 2017-12-08T02:59:31.000Z | 2022-02-02T04:30:03.000Z | oneEngine/oneGame/source/renderer/object/RrRenderObject.cpp | skarik/1Engine | 84e846544b4a89af8fd7e9236131363096538ef4 | [
"BSD-3-Clause"
] | 2 | 2021-04-16T03:44:42.000Z | 2021-08-30T06:48:44.000Z | oneEngine/oneGame/source/renderer/object/RrRenderObject.cpp | skarik/1Engine | 84e846544b4a89af8fd7e9236131363096538ef4 | [
"BSD-3-Clause"
] | 1 | 2021-04-16T02:09:54.000Z | 2021-04-16T02:09:54.000Z | #include "renderer/exceptions/exceptions.h"
#include "renderer/state/RrRenderer.h"
//#include "renderer/material/RrMaterial.h"
#include "renderer/material/RrPass.h"
#include "renderer/material/RrShaderProgram.h"
#include "renderer/texture/RrTexture.h"
//#include "renderer/system/glMainSystem.h"
#include "renderer/camer... | 30.010204 | 135 | 0.678454 | skarik |
f493a26c664410dbeb71362b10fb6a534533a7e2 | 13,560 | cpp | C++ | src/obproxy/opsql/dual_parser/ob_dual_parser.cpp | stutiredboy/obproxy | b5f98a6e1c45e6a878376df49b9c10b4249d3626 | [
"Apache-2.0"
] | 1 | 2021-06-01T01:59:48.000Z | 2021-06-01T01:59:48.000Z | src/obproxy/opsql/dual_parser/ob_dual_parser.cpp | stutiredboy/obproxy | b5f98a6e1c45e6a878376df49b9c10b4249d3626 | [
"Apache-2.0"
] | null | null | null | src/obproxy/opsql/dual_parser/ob_dual_parser.cpp | stutiredboy/obproxy | b5f98a6e1c45e6a878376df49b9c10b4249d3626 | [
"Apache-2.0"
] | null | null | null | /**
* Copyright (c) 2021 OceanBase
* OceanBase Database Proxy(ODP) is licensed under Mulan PubL v2.
* You can use this software according to the terms and conditions of the Mulan PubL v2.
* You may obtain a copy of Mulan PubL v2 at:
* http://license.coscl.org.cn/MulanPubL-2.0
* THIS SOFTWARE IS PROVIDED ... | 29.671772 | 103 | 0.652212 | stutiredboy |
f497544a47ae11807e79b644efec631097054b11 | 1,276 | hpp | C++ | inc/lmdb-wrapper/env.hpp | douderg/lmdb-wrapper | b37e46b8420b023baeabc0c9688ac5e07c3a6734 | [
"MIT"
] | null | null | null | inc/lmdb-wrapper/env.hpp | douderg/lmdb-wrapper | b37e46b8420b023baeabc0c9688ac5e07c3a6734 | [
"MIT"
] | null | null | null | inc/lmdb-wrapper/env.hpp | douderg/lmdb-wrapper | b37e46b8420b023baeabc0c9688ac5e07c3a6734 | [
"MIT"
] | null | null | null | #pragma once
#include "lmdb-wrapper/txn.hpp"
#include <lmdb.h>
#include <memory>
#include <string>
#include <optional>
namespace lmdb {
class env {
public:
class deleter;
class factory;
enum class flags : unsigned int {
fixedmap = MDB_FIXEDMAP,
nosubdir = MDB_NOSUBDIR,
rdonly = M... | 20.253968 | 45 | 0.644201 | douderg |
f49763b323c1f3e550d87995d0b2ad3830f8aa8e | 2,787 | hpp | C++ | worker/scripting_engine/project_control.hpp | 5cript/minide2 | 3464d84da3d6029450518de43ab15cecc9de75c7 | [
"MIT"
] | null | null | null | worker/scripting_engine/project_control.hpp | 5cript/minide2 | 3464d84da3d6029450518de43ab15cecc9de75c7 | [
"MIT"
] | null | null | null | worker/scripting_engine/project_control.hpp | 5cript/minide2 | 3464d84da3d6029450518de43ab15cecc9de75c7 | [
"MIT"
] | 1 | 2020-08-27T17:00:54.000Z | 2020-08-27T17:00:54.000Z | #pragma once
#include "state.hpp"
#include "../session/session_obtainer.hpp"
#include "../config.hpp"
#include <string>
#include <unordered_map>
#include <memory>
#include <functional>
namespace MinIDE::Scripting
{
/**
* Exposed to lua.
*/
class LuaProjectControl
{
public... | 28.151515 | 154 | 0.565483 | 5cript |
f49cb3ebe612322157487164a5ce70e57dfe4a53 | 15,867 | cpp | C++ | Arduino/Libraries/MenloRadioSerial/MenloRadioSerial.cpp | menloparkinnovation/openpux | d6c45124343675e2d6be60e968b763ea975b7b80 | [
"Apache-2.0"
] | 3 | 2016-01-04T16:17:00.000Z | 2019-12-24T14:09:58.000Z | Arduino/Libraries/MenloRadioSerial/MenloRadioSerial.cpp | menloparkinnovation/openpux | d6c45124343675e2d6be60e968b763ea975b7b80 | [
"Apache-2.0"
] | null | null | null | Arduino/Libraries/MenloRadioSerial/MenloRadioSerial.cpp | menloparkinnovation/openpux | d6c45124343675e2d6be60e968b763ea975b7b80 | [
"Apache-2.0"
] | 2 | 2019-09-27T04:42:42.000Z | 2019-12-24T14:10:00.000Z |
//
// 05/21/2017
//
// Cost is 4K code, few hundred bytes RAM.
//
// See MenloRadio.h for tradeoffs.
//
/*
* Copyright (C) 2015 Menlo Park Innovation LLC
*
* This is licensed software, all rights as to the software
* is reserved by Menlo Park Innovation LLC.
*
* A license included with the distribution provides... | 24.298622 | 98 | 0.667927 | menloparkinnovation |
f4a0b9e36ff877ce472805268fa968a32c5e8010 | 406 | cpp | C++ | cs161/labs/lab5/get_sentence.cpp | franzmk/Oregon-State-Schoolwork | 20f8a72e78ec4baa131add2dda8026cd47f36188 | [
"MIT"
] | null | null | null | cs161/labs/lab5/get_sentence.cpp | franzmk/Oregon-State-Schoolwork | 20f8a72e78ec4baa131add2dda8026cd47f36188 | [
"MIT"
] | null | null | null | cs161/labs/lab5/get_sentence.cpp | franzmk/Oregon-State-Schoolwork | 20f8a72e78ec4baa131add2dda8026cd47f36188 | [
"MIT"
] | null | null | null | #include <iostream>
#include <string>
using namespace std;
string get_sentence() {
string sentence;
cout << "Enter a sentence:" << endl;
getline(cin, sentence);
return sentence;
}
void get_sentence(string &s){
cout << "Enter a sentence:" << endl;
getline(cin, s);
}
int main() {
string sentence;
// sentenc... | 14 | 37 | 0.667488 | franzmk |
f4a3297ac57408edc3adb94b40be480e651e9ab1 | 1,835 | cpp | C++ | modules/task_3/soboleva_j_gauss_filter/main.cpp | 381706-1-DenisovVladislavL/pp_2020_spring | 52d640bd274920b1664414a5f9b0f27da6707f7d | [
"BSD-3-Clause"
] | 1 | 2021-03-22T16:28:34.000Z | 2021-03-22T16:28:34.000Z | modules/task_3/soboleva_j_gauss_filter/main.cpp | 381706-1-DenisovVladislavL/pp_2020_spring | 52d640bd274920b1664414a5f9b0f27da6707f7d | [
"BSD-3-Clause"
] | null | null | null | modules/task_3/soboleva_j_gauss_filter/main.cpp | 381706-1-DenisovVladislavL/pp_2020_spring | 52d640bd274920b1664414a5f9b0f27da6707f7d | [
"BSD-3-Clause"
] | 3 | 2020-07-28T13:12:29.000Z | 2021-03-24T20:22:40.000Z | // Copyright 2020 Soboleva Julia
#include <gtest/gtest.h>
#include <time.h>
#include <random>
#include <vector>
#include "./soboleva_j_gauss_filter.h"
TEST(Gauss_Filter, Get_Index_Is_Correct) {
int offset = 136;
int i = 120;
int j = 19;
EXPECT_EQ(GetIndex(i, j, offset), 16339);
}
TEST(Gauss_Filter, Get_Rand_M... | 26.594203 | 73 | 0.635967 | 381706-1-DenisovVladislavL |
f4a70acbd6c8f1f5df56a0d0169d5d4eebc1afe6 | 15,827 | hxx | C++ | painty/renderer/FootprintBrush.hxx | lindemeier/painty | 792cac6655b3707805ffc68d902f0e675a7770b8 | [
"MIT"
] | 15 | 2020-04-22T15:18:28.000Z | 2022-03-24T07:48:28.000Z | painty/renderer/FootprintBrush.hxx | lindemeier/painty | 792cac6655b3707805ffc68d902f0e675a7770b8 | [
"MIT"
] | 25 | 2020-04-18T18:55:50.000Z | 2021-05-30T21:26:39.000Z | painty/renderer/FootprintBrush.hxx | lindemeier/painty | 792cac6655b3707805ffc68d902f0e675a7770b8 | [
"MIT"
] | 2 | 2020-09-16T05:55:54.000Z | 2021-01-09T12:09:43.000Z | /**
* @file FootprintBrush.h
* @author thomas lindemeier
*
* @brief
*
* @date 2020-05-29
*
*/
#pragma once
#include <iostream>
#include <random>
#include "painty/core/Spline.hxx"
#include "painty/io/ImageIO.hxx"
#include "painty/renderer/BrushBase.hxx"
#include "painty/renderer/Canvas.hxx"
#include "painty/re... | 31.402778 | 120 | 0.587603 | lindemeier |
f4adb11987abc5ce6cc61666cbf12f423a0d6554 | 375 | hh | C++ | src/Zynga/Framework/Service/V2/Test/Router/Services/Mock/V1/Response.hh | chintan-j-patel/zynga-hacklang-framework | d9893b8873e3c8c7223772fd3c94d2531760172a | [
"MIT"
] | 19 | 2018-04-23T09:30:48.000Z | 2022-03-06T21:35:18.000Z | src/Zynga/Framework/Service/V2/Test/Router/Services/Mock/V1/Response.hh | chintan-j-patel/zynga-hacklang-framework | d9893b8873e3c8c7223772fd3c94d2531760172a | [
"MIT"
] | 22 | 2017-11-27T23:39:25.000Z | 2019-08-09T08:56:57.000Z | src/Zynga/Framework/Service/V2/Test/Router/Services/Mock/V1/Response.hh | chintan-j-patel/zynga-hacklang-framework | d9893b8873e3c8c7223772fd3c94d2531760172a | [
"MIT"
] | 28 | 2017-11-16T20:53:56.000Z | 2021-01-04T11:13:17.000Z | <?hh // strict
namespace Zynga\Framework\Service\V2\Test\Router\Services\Mock\V1;
use Zynga\Framework\Service\V2\Response\Base as ResponseBase;
use Zynga\Framework\Type\V1\StringBox;
class Response extends ResponseBase {
public StringBox $request_class;
public function __construct() {
parent::__construct()... | 18.75 | 66 | 0.744 | chintan-j-patel |
f4aff48719fd7da0c2fe114785666fd499824caa | 6,235 | cpp | C++ | tools/BeladyAlgo/BeladyAlgo.cpp | STEMHA/FlashGraph | a16ec7a31b2e0f167a2af76ce494d3dbb25ca256 | [
"Apache-2.0"
] | 3 | 2018-03-30T08:39:40.000Z | 2022-01-23T15:25:16.000Z | tools/BeladyAlgo/BeladyAlgo.cpp | Smerity/FlashGraph | 9c3509ad8e97236eab273b4db27f03c55a7887d8 | [
"Apache-2.0"
] | null | null | null | tools/BeladyAlgo/BeladyAlgo.cpp | Smerity/FlashGraph | 9c3509ad8e97236eab273b4db27f03c55a7887d8 | [
"Apache-2.0"
] | 2 | 2021-06-10T07:27:11.000Z | 2021-06-28T06:05:20.000Z | #include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <unistd.h>
#include <signal.h>
#include "BeladyAlgo.h"
#include "common.h"
#include "workload.h"
void indexed_offset_scanner::cache_offset(int off, int i)
{
std::tr1::unordered_map<int, std::deque<int> >::iterator it = cache.find(off);
if (it ... | 25.658436 | 92 | 0.667362 | STEMHA |
f4b15442f4b496930c0d6de1a736cc682914ed67 | 12,636 | cpp | C++ | src/SRKGraphics.cpp | nEDM-TUM/SRK | 523ebfc88dbc6f39f14fe37ba7a8f1570834cfc4 | [
"MIT"
] | null | null | null | src/SRKGraphics.cpp | nEDM-TUM/SRK | 523ebfc88dbc6f39f14fe37ba7a8f1570834cfc4 | [
"MIT"
] | null | null | null | src/SRKGraphics.cpp | nEDM-TUM/SRK | 523ebfc88dbc6f39f14fe37ba7a8f1570834cfc4 | [
"MIT"
] | null | null | null | #include "SRKGraphics.h"
#include <algorithm>
#include <iomanip>
#include "TFile.h"
#include "TTree.h"
#include "TStyle.h"
#include "TMath.h"
#include "TLegend.h"
#include "TF1.h"
using namespace std;
void convertTH1ToTXT(TH1* inpHist, TString outputFileName)
{
ofstream outFile;
outFile.open(outputFileName);
double... | 22.726619 | 153 | 0.659544 | nEDM-TUM |
f4b250f876174149e6154687b1f696e6ab244f74 | 1,646 | hpp | C++ | src/utils/union_find.hpp | WeeJang/fish-db | 4dc50568e0f531c76b8f44e531d0db8e1f6d158a | [
"MIT"
] | 2 | 2017-12-12T07:54:38.000Z | 2021-12-21T15:17:36.000Z | src/utils/union_find.hpp | WeeJang/fish-db | 4dc50568e0f531c76b8f44e531d0db8e1f6d158a | [
"MIT"
] | null | null | null | src/utils/union_find.hpp | WeeJang/fish-db | 4dc50568e0f531c76b8f44e531d0db8e1f6d158a | [
"MIT"
] | null | null | null | #ifndef UTILS_UNIONFIND_H_
#define UTILS_UNIONFIND_H_
#include <vector>
#include <unordered_map>
#include <set>
namespace utils{
template<typename T>
class UnionFind{
public:
UnionFind(const std::set<T>& vertex_set){
vertex_size_ = vertex_set.size();
group_id_vec_.resize(vertex_size_);
init(... | 22.547945 | 92 | 0.668894 | WeeJang |
f4b4c8f109cba6e075e2f126b5d034746ecf645d | 349 | cpp | C++ | src/templates/count.mako.cpp | wvervoorn/phosphor-dbus-monitor | 0ae48ae7144978f98376e4e8c3a39a570329a1f4 | [
"Apache-2.0"
] | 14 | 2021-11-04T07:47:37.000Z | 2022-03-21T10:10:30.000Z | src/templates/count.mako.cpp | wvervoorn/phosphor-dbus-monitor | 0ae48ae7144978f98376e4e8c3a39a570329a1f4 | [
"Apache-2.0"
] | 4 | 2018-08-22T12:27:38.000Z | 2022-03-04T06:44:48.000Z | src/templates/count.mako.cpp | wvervoorn/phosphor-dbus-monitor | 0ae48ae7144978f98376e4e8c3a39a570329a1f4 | [
"Apache-2.0"
] | 6 | 2021-11-02T10:56:19.000Z | 2022-03-06T11:58:20.000Z | std::make_unique<CountCondition<${c.datatype}>>(
${indent(1)}ConfigPropertyIndicies::get()[${c.instances}],
${indent(1)}[](const auto& item){return item ${c.countop} ${c.countbound};},
${indent(1)}[](const auto& item){return item ${c.op} ${c.bound.argument(loader, indent=indent +1)};},
${indent(1)}${c.oneshot.argument(... | 58.166667 | 101 | 0.676218 | wvervoorn |
f4b8b6c0ad3078debb63831177284876e03c9c27 | 315 | cpp | C++ | src/app.cpp | TamplierS1/pixel | a10371d9a55e829810f5304539dd3a9391ff50fc | [
"MIT"
] | null | null | null | src/app.cpp | TamplierS1/pixel | a10371d9a55e829810f5304539dd3a9391ff50fc | [
"MIT"
] | null | null | null | src/app.cpp | TamplierS1/pixel | a10371d9a55e829810f5304539dd3a9391ff50fc | [
"MIT"
] | null | null | null | #include <QFont>
#include <QWindow>
#include "app.h"
App::App(int argc, char** argv)
{
mApp = new QApplication{argc, argv};
mMainWindow = new MainWindow{800, 600, "Pixel"};
mMainWindow->show();
}
App::~App()
{
delete mMainWindow;
delete mApp;
}
int App::exec()
{
return mApp->exec();
}
| 13.125 | 52 | 0.609524 | TamplierS1 |
f4bdce87df9ae4b90e79a023b3ac1122438417e1 | 4,820 | hpp | C++ | include/tnt/linear/impl/dot_impl.hpp | JordanCheney/tnt | a0fd378079d36b2bd39960c34e5c83f9633db0c0 | [
"MIT"
] | null | null | null | include/tnt/linear/impl/dot_impl.hpp | JordanCheney/tnt | a0fd378079d36b2bd39960c34e5c83f9633db0c0 | [
"MIT"
] | 1 | 2018-06-09T04:40:01.000Z | 2018-06-09T04:40:01.000Z | include/tnt/linear/impl/dot_impl.hpp | JordanCheney/tnt | a0fd378079d36b2bd39960c34e5c83f9633db0c0 | [
"MIT"
] | null | null | null | #ifndef TNT_LINEAR_DOT_IMPL_HPP
#define TNT_LINEAR_DOT_IMPL_HPP
#include <tnt/linear/dot.hpp>
#include <tnt/utils/testing.hpp>
#include <tnt/utils/simd.hpp>
namespace tnt
{
namespace detail
{
template <typename LeftType, typename RightType>
struct OptimizedDot<LeftType, RightType,
typename std::enable_... | 33.013699 | 101 | 0.571992 | JordanCheney |
f4be08c99dc67d4ddd5b463037910cbd045075bd | 2,071 | cpp | C++ | DEM/Low/src/Scene/LODGroup.cpp | niello/deusexmachina | 2f698054fe82d8b40a0a0e58b86d64ffed0de06c | [
"MIT"
] | 15 | 2019-05-07T11:26:13.000Z | 2022-01-12T18:26:45.000Z | DEM/Low/src/Scene/LODGroup.cpp | niello/deusexmachina | 2f698054fe82d8b40a0a0e58b86d64ffed0de06c | [
"MIT"
] | 16 | 2021-10-04T17:15:31.000Z | 2022-03-20T09:34:29.000Z | DEM/Low/src/Scene/LODGroup.cpp | niello/deusexmachina | 2f698054fe82d8b40a0a0e58b86d64ffed0de06c | [
"MIT"
] | 2 | 2019-04-28T23:27:48.000Z | 2019-05-07T11:26:18.000Z | #include "LODGroup.h"
#include <Scene/SceneNode.h>
#include <IO/BinaryReader.h>
#include <Core/Factory.h>
namespace Scene
{
FACTORY_CLASS_IMPL(Scene::CLODGroup, 'LODG', Scene::CNodeAttribute);
bool CLODGroup::LoadDataBlocks(IO::CBinaryReader& DataReader, UPTR Count)
{
for (UPTR j = 0; j < Count; ++j)
{
const uin... | 24.654762 | 78 | 0.60647 | niello |
f4bf091e4496a547a83b150a1e49149986bdeb90 | 581 | cpp | C++ | Source/areaPerim.cpp | allhailthetail/cpp-itp-main | 43a33a3df68feac3a600b3a51af3fbe893225277 | [
"MIT"
] | null | null | null | Source/areaPerim.cpp | allhailthetail/cpp-itp-main | 43a33a3df68feac3a600b3a51af3fbe893225277 | [
"MIT"
] | null | null | null | Source/areaPerim.cpp | allhailthetail/cpp-itp-main | 43a33a3df68feac3a600b3a51af3fbe893225277 | [
"MIT"
] | null | null | null | #include<iostream>
#include<string>
using namespace std;
int main()
{
double sideOne, sideTwo, area, perimeter;
cout << "Length of Side #1: " << endl;
cin >> sideOne;
cout << "Please type your last name: " << endl;
cin >> sideTwo;
area = sideOne * sideTwo;
perimeter = 2 * (sideOne + sideTwo);
cout <... | 22.346154 | 78 | 0.597246 | allhailthetail |
f4c81c30fde6add0456c6f3adbd30bc1ab48c578 | 3,471 | cpp | C++ | gwen/src/Controls/HorizontalScrollBar.cpp | Oipo/GWork | 3dd70c090bf8708dd3e7b9cfbcb67163bb7166db | [
"MIT"
] | null | null | null | gwen/src/Controls/HorizontalScrollBar.cpp | Oipo/GWork | 3dd70c090bf8708dd3e7b9cfbcb67163bb7166db | [
"MIT"
] | null | null | null | gwen/src/Controls/HorizontalScrollBar.cpp | Oipo/GWork | 3dd70c090bf8708dd3e7b9cfbcb67163bb7166db | [
"MIT"
] | null | null | null | /*
* GWEN
* Copyright (c) 2010 Facepunch Studios
* See license in Gwen.h
*/
#include "Gwen/Controls/ScrollBar.h"
#include "Gwen/Controls/HorizontalScrollBar.h"
using namespace Gwen;
using namespace Gwen::Controls;
GWEN_CONTROL_CONSTRUCTOR(HorizontalScrollBar)
{
m_Bar->SetHorizontal();
m_ScrollButton[... | 26.496183 | 93 | 0.677615 | Oipo |
f4cdf2c91cc6406d9c62edc4207b0138fc641fbc | 3,591 | hpp | C++ | src/xpcc/architecture/platform/hosted/linux/tipc/tipc_receiver.hpp | walmis/xpcc | 1d87c4434530c6aeac923f57d379aeaf32e11e1e | [
"BSD-3-Clause"
] | 5 | 2016-02-06T14:57:35.000Z | 2018-01-02T23:34:18.000Z | src/xpcc/architecture/platform/hosted/linux/tipc/tipc_receiver.hpp | walmis/xpcc | 1d87c4434530c6aeac923f57d379aeaf32e11e1e | [
"BSD-3-Clause"
] | null | null | null | src/xpcc/architecture/platform/hosted/linux/tipc/tipc_receiver.hpp | walmis/xpcc | 1d87c4434530c6aeac923f57d379aeaf32e11e1e | [
"BSD-3-Clause"
] | 1 | 2020-04-19T13:16:31.000Z | 2020-04-19T13:16:31.000Z | // coding: utf-8
// ----------------------------------------------------------------------------
/* Copyright (c) 2009, Roboterclub Aachen e.V.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
... | 28.959677 | 84 | 0.670565 | walmis |
f4cf98a52c48e6c565114db4df23efb1d4033ea8 | 3,477 | cpp | C++ | isis/src/base/apps/ringsautomos/main.cpp | kdl222/ISIS3 | aab0e63088046690e6c031881825596c1c2cc380 | [
"CC0-1.0"
] | 134 | 2018-01-18T00:16:24.000Z | 2022-03-24T03:53:33.000Z | isis/src/base/apps/ringsautomos/main.cpp | kdl222/ISIS3 | aab0e63088046690e6c031881825596c1c2cc380 | [
"CC0-1.0"
] | 3,825 | 2017-12-11T21:27:34.000Z | 2022-03-31T21:45:20.000Z | isis/src/base/apps/ringsautomos/main.cpp | jlaura/isis3 | 2c40e08caed09968ea01d5a767a676172ad20080 | [
"CC0-1.0"
] | 164 | 2017-11-30T21:15:44.000Z | 2022-03-23T10:22:29.000Z | #define GUIHELPERS
#include "Isis.h"
#include "Application.h"
#include "FileList.h"
#include "IException.h"
#include "SpecialPixel.h"
#include "RingPlaneProjection.h"
#include "ProjectionFactory.h"
#include "ringsautomos.h" // replace with your new header
using namespace Isis;
using namespace std;
void helperButton... | 30.5 | 118 | 0.685936 | kdl222 |
f4d133884c9542590802ac508556c640df01713f | 16,877 | cpp | C++ | source/Cpp Files/tiles/TileMap.cpp | CooperRoalson/MapGeneratorSpringPracticum | ebdfd365c370d210ca9ecdd110bef451054640ba | [
"MIT"
] | 2 | 2021-05-19T16:22:33.000Z | 2021-05-26T20:21:46.000Z | source/Cpp Files/tiles/TileMap.cpp | CooperRoalson/MapGeneratorSpringPracticum | ebdfd365c370d210ca9ecdd110bef451054640ba | [
"MIT"
] | 4 | 2021-05-19T14:08:17.000Z | 2021-05-24T18:23:48.000Z | source/Cpp Files/tiles/TileMap.cpp | CooperRoalson/MapGeneratorSpringPracticum | ebdfd365c370d210ca9ecdd110bef451054640ba | [
"MIT"
] | null | null | null | //
// TileMap.cpp
// Map Generator
//
#include "TileMap.hpp"
#define _USE_MATH_DEFINES
#include <math.h>
unsigned int TileMap::randomInitialSeed() {
std::random_device rand;
return rand();
}
TileMap::TileMap(GenerationSettings settings) : TileMap(settings, randomInitialSeed()) {}
TileMap::TileMap(Generati... | 39.157773 | 258 | 0.600995 | CooperRoalson |
f4dc754a0407544b75b7441f751e2e29ee0ea081 | 3,665 | cpp | C++ | Modules/Nulstar/NulstarMain/NModuleInfo.cpp | Berzeck/Nulstar | d3a7f59ee617e045966071d19c39d1ab63b23114 | [
"MIT"
] | 17 | 2018-08-13T23:37:31.000Z | 2019-04-25T18:31:22.000Z | Modules/Nulstar/NulstarMain/NModuleInfo.cpp | Berzeck/Nulstar-v0 | d3a7f59ee617e045966071d19c39d1ab63b23114 | [
"MIT"
] | 7 | 2019-07-16T01:01:07.000Z | 2019-08-07T03:11:58.000Z | Modules/Nulstar/NulstarMain/NModuleInfo.cpp | CCC-NULS/Nulstar | f48d869254f4adb60e7c95f0e313bfb44ab8dc84 | [
"MIT"
] | 7 | 2018-09-07T10:05:08.000Z | 2020-02-03T12:18:49.000Z | #include <QDebug>
#include "NModuleInfo.h"
namespace NulstarNS {
const QString cModuleConfigGroupScript("Script");
const QString cModuleConfigGroupScripted("Scripted");
const QString cModuleConfigGroupScriptStart("StartScript");
const QString cModuleConfigGroupScriptStop("StopScript");
const QString cModuleC... | 41.647727 | 212 | 0.742428 | Berzeck |
f4e0454ffc4061bd87181fc5912089dd9548373b | 4,647 | cpp | C++ | source/hyphawebmanager/source/api/ConnectionsHandler.cpp | hyphaproject/hyphawebmanager | 342d88f62b510c567832c1f6aa5bc436a6d87e75 | [
"MIT"
] | null | null | null | source/hyphawebmanager/source/api/ConnectionsHandler.cpp | hyphaproject/hyphawebmanager | 342d88f62b510c567832c1f6aa5bc436a6d87e75 | [
"MIT"
] | null | null | null | source/hyphawebmanager/source/api/ConnectionsHandler.cpp | hyphaproject/hyphawebmanager | 342d88f62b510c567832c1f6aa5bc436a6d87e75 | [
"MIT"
] | null | null | null | // Copyright (c) 2015-2016 Hypha
#include "api/ConnectionsHandler.h"
#include <sstream>
#include "api/UriParser.h"
#include <Poco/Dynamic/Var.h>
#include <Poco/JSON/JSON.h>
#include <Poco/JSON/Object.h>
#include <Poco/JSON/Stringifier.h>
#include <Poco/Net/HTTPResponse.h>
#include <Poco/Net/HTTPServerRequest.h>
#inclu... | 32.725352 | 77 | 0.681945 | hyphaproject |
f4e63e4eca612e3192ec0abe87c584f0af47a6a2 | 2,670 | cpp | C++ | src/lang_generator_cutvm_functions.cpp | cuttle-system/cuttle-lang | 1b3ba8d81d2300dff1369801da2f712b77dcb6f4 | [
"MIT"
] | null | null | null | src/lang_generator_cutvm_functions.cpp | cuttle-system/cuttle-lang | 1b3ba8d81d2300dff1369801da2f712b77dcb6f4 | [
"MIT"
] | null | null | null | src/lang_generator_cutvm_functions.cpp | cuttle-system/cuttle-lang | 1b3ba8d81d2300dff1369801da2f712b77dcb6f4 | [
"MIT"
] | null | null | null | #include <algorithm>
#include "generator_presenters_map_methods.hpp"
#include "vm_context_methods.hpp"
#include "vm_value_methods.hpp"
#include "lang_generator_cutvm_functions.hpp"
#include "generator_config.hpp"
#include "generator_presenters_methods.hpp"
using namespace cuttle::vm;
std::string lang_generator_presen... | 37.605634 | 120 | 0.669663 | cuttle-system |
f4e666278fbbbc696b03e62ecada0907938608ff | 569 | cpp | C++ | C++/Algoritm/Sorting/Correctness_and_the_Loop_Invariant.cpp | nielchevo/HackerRank | 8a1eb45cc6621ec259ac12e9318164073991871e | [
"MIT"
] | null | null | null | C++/Algoritm/Sorting/Correctness_and_the_Loop_Invariant.cpp | nielchevo/HackerRank | 8a1eb45cc6621ec259ac12e9318164073991871e | [
"MIT"
] | 2 | 2020-07-17T14:59:43.000Z | 2021-05-11T02:25:10.000Z | C++/Algoritm/Sorting/Correctness_and_the_Loop_Invariant.cpp | nielchevo/HackerRank | 8a1eb45cc6621ec259ac12e9318164073991871e | [
"MIT"
] | null | null | null | #include <iostream>
#include <vector>
void insertionSort2(int n, std::vector<int> &arr)
{
int i,j;
int value;
for(i=1;i<n;i++)
{
value=arr[i];
j=i-1;
while(j>=0 && value<arr[j]) //use '>=' instead '>'
{
arr[j+1]=arr[j];
j=j-1;
}
a... | 17.242424 | 65 | 0.441125 | nielchevo |
f4ef89b887d563f46021e70cd5fad45595b31bf7 | 648 | cpp | C++ | src/J/J091A.cpp | wlhcode/lscct | 7fd112a9d1851ddcf41886d3084381a52e84a3ce | [
"MIT"
] | null | null | null | src/J/J091A.cpp | wlhcode/lscct | 7fd112a9d1851ddcf41886d3084381a52e84a3ce | [
"MIT"
] | null | null | null | src/J/J091A.cpp | wlhcode/lscct | 7fd112a9d1851ddcf41886d3084381a52e84a3ce | [
"MIT"
] | null | null | null | #include<bits/stdc++.h>
using namespace std;
int main(){
ios::sync_with_stdio(false);
cin.tie(0);
vector<pair<int, int> > v;
int n,m;
cin>>n;
for(int i=0;i<n;i++){
int a,b;
cin>>a>>b;
v.push_back(make_pair(a,b));
}
cin>>m;
for(int i=0;i<m;i++){
int a,b;
cin>>a>>b;
v.push_back(make_pair(a,b));
}
s... | 17.052632 | 57 | 0.529321 | wlhcode |
f4f1d5016f15c6d03081fbc22b9c880131124b2f | 24,893 | cpp | C++ | Smooth_Graphics/Source/GraphicsEngine.cpp | Glitch0011/DirectX11-Demo | 02b2ff51f4c936696ab25fb34da77cb4997980a9 | [
"MIT"
] | null | null | null | Smooth_Graphics/Source/GraphicsEngine.cpp | Glitch0011/DirectX11-Demo | 02b2ff51f4c936696ab25fb34da77cb4997980a9 | [
"MIT"
] | null | null | null | Smooth_Graphics/Source/GraphicsEngine.cpp | Glitch0011/DirectX11-Demo | 02b2ff51f4c936696ab25fb34da77cb4997980a9 | [
"MIT"
] | null | null | null | #include <GraphicsEngine.h>
#include <random>
#include <time.h>
#include <future>
#include <iostream>
#include <exception>
#include <PngFile.h>
using namespace SmoothGraphics;
using namespace SmoothHardware;
using namespace std;
struct QuadConstantBuffer
{
XMINT2 screenSize;
UINT lightCount;
... | 30.468788 | 157 | 0.726228 | Glitch0011 |
f4f6d1f65109c3b3b6f6e20ea179945b7c08fbeb | 2,362 | cpp | C++ | src/Encryption/BlockCiphers/CipherCascade.cpp | dmalysiak/Lazarus | 925d92843e311d2cd5afd437766563d0d5ab9052 | [
"Apache-2.0"
] | 1 | 2019-04-29T05:31:32.000Z | 2019-04-29T05:31:32.000Z | src/Encryption/BlockCiphers/CipherCascade.cpp | dmalysiak/Lazarus | 925d92843e311d2cd5afd437766563d0d5ab9052 | [
"Apache-2.0"
] | null | null | null | src/Encryption/BlockCiphers/CipherCascade.cpp | dmalysiak/Lazarus | 925d92843e311d2cd5afd437766563d0d5ab9052 | [
"Apache-2.0"
] | null | null | null | /*
* CipherCascade.cpp
*
* Created on: 15.12.2014
* Author: Darius Malysiak
*/
#include "CipherCascade.h"
namespace Lazarus {
CipherCascade::CipherCascade() {
// TODO Auto-generated constructor stub
}
CipherCascade::~CipherCascade() {
// TODO Auto-generated destructor stub
}
int CipherCascade::encryp... | 18.310078 | 87 | 0.659187 | dmalysiak |
f4fd156154af08b8011c6e02b2e6c41fbfa8e4a7 | 704 | hpp | C++ | src/root/win/WindowsGameLoader.hpp | sppmacd/CarGame | c6b7351daa94b692ab209a5035c85084eafb8a67 | [
"MIT"
] | 1 | 2020-05-13T18:19:17.000Z | 2020-05-13T18:19:17.000Z | src/root/win/WindowsGameLoader.hpp | sppmacd/CarGame | c6b7351daa94b692ab209a5035c85084eafb8a67 | [
"MIT"
] | 5 | 2019-07-15T15:43:38.000Z | 2020-04-18T17:46:24.000Z | src/root/win/WindowsGameLoader.hpp | sppmacd/CarGame | c6b7351daa94b692ab209a5035c85084eafb8a67 | [
"MIT"
] | null | null | null | #ifndef WINDOWSGAMELOADER_HPP
#define WINDOWSGAMELOADER_HPP
#include <string>
#include <cargame/GameLoader.hpp>
#include <SFML/System.hpp>
// GameLoader for Windows.
class WindowsGameLoader : public DesktopGameLoader
{
public:
sf::Thread loadingThread;
WindowsGameLoader();
virtual void preInit();
... | 21.333333 | 70 | 0.740057 | sppmacd |
f4fd39833e0b18f29cfa029a9c4bbf48317346aa | 46,799 | cpp | C++ | src/hdmc.cpp | dormrod/hard_disk_monte_carlo | 0e535cf1cfee16d767f711e40e3e76072736aa88 | [
"MIT"
] | null | null | null | src/hdmc.cpp | dormrod/hard_disk_monte_carlo | 0e535cf1cfee16d767f711e40e3e76072736aa88 | [
"MIT"
] | null | null | null | src/hdmc.cpp | dormrod/hard_disk_monte_carlo | 0e535cf1cfee16d767f711e40e3e76072736aa88 | [
"MIT"
] | null | null | null | #include "hdmc.h"
//-------- HARD DISK MONTE CARLO CLASS --------
//-------- CONSTRUCTORS, SETTERS --------
HDMC::HDMC() {
//Default constructor
n=0;
nA=0;
nB=0;
phi=0;
}
int HDMC::setParticles(int num, double packFrac, int disp, VecF<double> dispParams, int interact) {
//Set particle pa... | 31.261857 | 144 | 0.560909 | dormrod |
7605bcb3cd586eaf979a3ac37d8f9964e4339ed1 | 772 | hpp | C++ | include/murk/plod/php.hpp | Cyclic3/murk | fd2f71a4b258be71ef828f1223ddb76cc4ec8254 | [
"MIT"
] | 2 | 2019-08-06T21:02:12.000Z | 2021-12-22T16:12:38.000Z | include/murk/plod/php.hpp | Cyclic3/murk | fd2f71a4b258be71ef828f1223ddb76cc4ec8254 | [
"MIT"
] | null | null | null | include/murk/plod/php.hpp | Cyclic3/murk | fd2f71a4b258be71ef828f1223ddb76cc4ec8254 | [
"MIT"
] | null | null | null | #pragma once
#include "murk/flows/string.hpp"
#include <fmt/format.h>
namespace murk::plod {
inline std::string php_get_shell(std::string_view param = "cmd") {
return fmt::format("<?php echo shell_exec($_GET['{}']);?>", param);
}
inline std::string php_post_shell(std::string_view param = "cmd") {
retur... | 36.761905 | 150 | 0.660622 | Cyclic3 |
760642af2aabbfa02938a5fdd04e52e9c49b93c2 | 29,405 | cpp | C++ | src/game/server/hl2/item_ammo.cpp | cstom4994/SourceEngineRebuild | edfd7f8ce8af13e9d23586318350319a2e193c08 | [
"MIT"
] | 6 | 2022-01-23T09:40:33.000Z | 2022-03-20T20:53:25.000Z | src/game/server/hl2/item_ammo.cpp | cstom4994/SourceEngineRebuild | edfd7f8ce8af13e9d23586318350319a2e193c08 | [
"MIT"
] | null | null | null | src/game/server/hl2/item_ammo.cpp | cstom4994/SourceEngineRebuild | edfd7f8ce8af13e9d23586318350319a2e193c08 | [
"MIT"
] | 1 | 2022-02-06T21:05:23.000Z | 2022-02-06T21:05:23.000Z | //========= Copyright Valve Corporation, All rights reserved. ============//
//
// Purpose: The various ammo types for HL2
//
//=============================================================================//
#include "cbase.h"
#include "player.h"
#include "gamerules.h"
#include "items.h"
#include "ammodef.h"
#includ... | 30.252058 | 111 | 0.515287 | cstom4994 |
7613ca6cc934670cc3d140e525299df674bf0535 | 1,351 | hpp | C++ | cpp/audio-buffer-source-node.hpp | trxcllnt/webaudio-raub | 957d68c2612a3de88e50fb8655d3d700c5a6c001 | [
"MIT"
] | null | null | null | cpp/audio-buffer-source-node.hpp | trxcllnt/webaudio-raub | 957d68c2612a3de88e50fb8655d3d700c5a6c001 | [
"MIT"
] | null | null | null | cpp/audio-buffer-source-node.hpp | trxcllnt/webaudio-raub | 957d68c2612a3de88e50fb8655d3d700c5a6c001 | [
"MIT"
] | null | null | null | #ifndef _AUDIO_BUFFER_SOURCE_NODE_HPP_
#define _AUDIO_BUFFER_SOURCE_NODE_HPP_
#include "audio-scheduled-source-node.hpp"
class AudioBufferSourceNode : public AudioScheduledSourceNode {
public:
~AudioBufferSourceNode();
// Public V8 init
static void init(V8_VAR_OBJ target);
// Make a new instance from C+... | 19.57971 | 63 | 0.786084 | trxcllnt |
76173bc19ceea0ba51c95628c725ce38fc361858 | 1,601 | hpp | C++ | inc/Thread.hpp | tlucanti/webcore | 9e98a939105a9d5a26c0e28431919f3f10cc608d | [
"MIT"
] | null | null | null | inc/Thread.hpp | tlucanti/webcore | 9e98a939105a9d5a26c0e28431919f3f10cc608d | [
"MIT"
] | null | null | null | inc/Thread.hpp | tlucanti/webcore | 9e98a939105a9d5a26c0e28431919f3f10cc608d | [
"MIT"
] | null | null | null | /* ************************************************************************** */
/* */
/* ::: :::::::: */
/* Thread.hpp :+: :+: :+: ... | 32.02 | 80 | 0.367895 | tlucanti |
76183dc6eee5714a677ef168c4d8baa83dabe745 | 1,437 | cc | C++ | INET_EC/networklayer/common/IPSocket.cc | LarryNguyen/ECSim- | 0d3f848642e49845ed7e4c7b97dd16bd3d65ede5 | [
"Apache-2.0"
] | 12 | 2020-11-30T08:04:23.000Z | 2022-03-23T11:49:26.000Z | Simulation/OMNeT++/inet/src/inet/networklayer/common/IPSocket.cc | StarStuffSteve/masters-research-project | 47c1874913d0961508f033ca9a1144850eb8f8b7 | [
"Apache-2.0"
] | 4 | 2020-07-06T15:58:14.000Z | 2020-07-15T21:56:36.000Z | Simulation/OMNeT++/inet/src/inet/networklayer/common/IPSocket.cc | StarStuffSteve/masters-research-project | 47c1874913d0961508f033ca9a1144850eb8f8b7 | [
"Apache-2.0"
] | 8 | 2021-03-15T02:05:51.000Z | 2022-03-21T13:14:02.000Z | //
// Copyright (C) 2013 Andras Varga
//
// This program is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public License
// as published by the Free Software Foundation; either version 2
// of the License, or (at your option) any later version.
//
// This program i... | 33.418605 | 99 | 0.73904 | LarryNguyen |
761ca0ade947ecf1ecc1c43f7d27bbdf19b0c210 | 2,608 | cpp | C++ | cf/52C.cpp | jamesrayman/sport | a24b4512e3268f09574d6803fa71c98e9d7b50b1 | [
"MIT"
] | null | null | null | cf/52C.cpp | jamesrayman/sport | a24b4512e3268f09574d6803fa71c98e9d7b50b1 | [
"MIT"
] | null | null | null | cf/52C.cpp | jamesrayman/sport | a24b4512e3268f09574d6803fa71c98e9d7b50b1 | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
using namespace std;
using ll = long long;
template<typename T>
struct SegTree {
ll n;
vector<T> t, lazy;
T noval = 1e14;
T f (T a, T b) {
return min(a, b);
}
T at (int p, int lo, int hi) {
return t[p] + lazy[p];
}
void unlazy (int p, int lo, ... | 20.217054 | 68 | 0.383819 | jamesrayman |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.