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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
64f03746d73bb74c110767b0480a437cae920c73 | 9,774 | hpp | C++ | vgm2pre/vgm2pre.hpp | vgmtool/vgm2pre | f4f917df35d531512292541234a5c1722b8af96f | [
"MIT"
] | 21 | 2015-04-13T03:07:12.000Z | 2021-11-20T00:27:00.000Z | vgm2pre/vgm2pre.hpp | djtuBIG-MaliceX/vgm2pre | f4f917df35d531512292541234a5c1722b8af96f | [
"MIT"
] | 2 | 2015-10-06T14:59:48.000Z | 2022-01-27T08:57:57.000Z | vgm2pre/vgm2pre.hpp | vgmtool/vgm2pre | f4f917df35d531512292541234a5c1722b8af96f | [
"MIT"
] | 2 | 2021-11-19T08:36:57.000Z | 2022-03-04T16:03:16.000Z | #ifndef __VGM2_H__
#define __VGM2_H__
#include <nall/nall.hpp>
using namespace nall;
#include <phoenix/phoenix.hpp>
using namespace phoenix;
#include "fmt/vgm.hpp"
#include "ui/win.about.hpp"
#include "ui/win.opt.hpp"
#include "config.hpp"
#include "sub.ym2612.hpp"
struct Processor {
VGM::vgm_t vgm;
uint32_t _T_W... | 23.495192 | 92 | 0.602722 | vgmtool |
64f0b7ec76987e244f5398984c551cefcd0735aa | 15,531 | cpp | C++ | cpp/tests/opendnp3tests/src/TestAPDUParsing.cpp | SensusDA/opendnp3 | c9aab97279fa7461155fd583d3955853b3ad99a0 | [
"Apache-2.0"
] | null | null | null | cpp/tests/opendnp3tests/src/TestAPDUParsing.cpp | SensusDA/opendnp3 | c9aab97279fa7461155fd583d3955853b3ad99a0 | [
"Apache-2.0"
] | null | null | null | cpp/tests/opendnp3tests/src/TestAPDUParsing.cpp | SensusDA/opendnp3 | c9aab97279fa7461155fd583d3955853b3ad99a0 | [
"Apache-2.0"
] | null | null | null | /**
* Licensed to Green Energy Corp (www.greenenergycorp.com) under one or
* more contributor license agreements. See the NOTICE file distributed
* with this work for additional information regarding copyright ownership.
* Green Energy Corp licenses this file to you under the Apache License,
* Version 2.0 (the "Li... | 32.904661 | 145 | 0.709034 | SensusDA |
64f33eb2193d9c737d01e2ec7e63c331d8fc8b38 | 10,440 | cpp | C++ | tests/test_dyadic_multiply.cpp | tgonzalez89-intel/hexl-fpga | 2ac91d65cd623c03eb6b27708ddfbbffb2ed127a | [
"Apache-2.0"
] | 58 | 2021-11-16T21:29:01.000Z | 2022-03-26T10:49:30.000Z | tests/test_dyadic_multiply.cpp | tgonzalez89-intel/hexl-fpga | 2ac91d65cd623c03eb6b27708ddfbbffb2ed127a | [
"Apache-2.0"
] | 2 | 2022-02-09T08:21:16.000Z | 2022-02-24T17:53:09.000Z | tests/test_dyadic_multiply.cpp | tgonzalez89-intel/hexl-fpga | 2ac91d65cd623c03eb6b27708ddfbbffb2ed127a | [
"Apache-2.0"
] | 10 | 2021-12-20T13:04:12.000Z | 2022-03-14T01:59:29.000Z | // Copyright (C) 2020-2021 Intel Corporation
// SPDX-License-Identifier: Apache-2.0
#include <cstdlib>
#include <vector>
#include "gtest/gtest.h"
#include "hexl-fpga.h"
class dyadic_multiply_test : public ::testing::Test {
public:
void test_dyadic_multiply(uint64_t num_dyadic_multiply, uint64_t num_moduli,
... | 35.033557 | 80 | 0.596073 | tgonzalez89-intel |
64f57d522a198df4386594bf1273da4f03d5b580 | 13,907 | cpp | C++ | automated-tests/src/dali-toolkit/utc-Dali-NPatchUtilities.cpp | dalihub/dali-toolk | 980728a7e35b8ddd28f70c090243e8076e21536e | [
"Apache-2.0",
"BSD-3-Clause"
] | 7 | 2016-11-18T10:26:51.000Z | 2021-01-28T13:51:59.000Z | automated-tests/src/dali-toolkit/utc-Dali-NPatchUtilities.cpp | dalihub/dali-toolk | 980728a7e35b8ddd28f70c090243e8076e21536e | [
"Apache-2.0",
"BSD-3-Clause"
] | 13 | 2020-07-15T11:33:03.000Z | 2021-04-09T21:29:23.000Z | automated-tests/src/dali-toolkit/utc-Dali-NPatchUtilities.cpp | dalihub/dali-toolk | 980728a7e35b8ddd28f70c090243e8076e21536e | [
"Apache-2.0",
"BSD-3-Clause"
] | 10 | 2019-05-17T07:15:09.000Z | 2021-05-24T07:28:08.000Z | /*
* Copyright (c) 2020 Samsung Electronics Co., Ltd.
*
* 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... | 45.89769 | 167 | 0.739915 | dalihub |
64f795605a12c323cc5ac72303b005a3c567a308 | 1,572 | hpp | C++ | Include/Editor/EditorRenderer.hpp | amitukind/WebGL-Game-Engine | c78973803938c1cfba703d9bb437ec46a4c48045 | [
"Unlicense"
] | null | null | null | Include/Editor/EditorRenderer.hpp | amitukind/WebGL-Game-Engine | c78973803938c1cfba703d9bb437ec46a4c48045 | [
"Unlicense"
] | null | null | null | Include/Editor/EditorRenderer.hpp | amitukind/WebGL-Game-Engine | c78973803938c1cfba703d9bb437ec46a4c48045 | [
"Unlicense"
] | null | null | null | /*
Copyright (c) 2018-2021 Piotr Doan. All rights reserved.
Software distributed under the permissive MIT License.
*/
#pragma once
#include <Core/EngineSystem.hpp>
#include <Graphics/RenderContext.hpp>
#include <Graphics/Buffer.hpp>
#include <Graphics/VertexArray.hpp>
#include <Graphics/Texture.hpp>
#include ... | 24.5625 | 79 | 0.716285 | amitukind |
64ff27a33f021fdc1c9c98b0d309f663781ec2bf | 2,618 | cpp | C++ | mod/joystick_unix/joystick_unix.cpp | Lyatus/L | 0b594d722200d5ee0198b5d7b9ee72a5d1e12611 | [
"Unlicense"
] | 45 | 2018-08-24T12:57:38.000Z | 2021-11-12T11:21:49.000Z | mod/joystick_unix/joystick_unix.cpp | Lyatus/L | 0b594d722200d5ee0198b5d7b9ee72a5d1e12611 | [
"Unlicense"
] | null | null | null | mod/joystick_unix/joystick_unix.cpp | Lyatus/L | 0b594d722200d5ee0198b5d7b9ee72a5d1e12611 | [
"Unlicense"
] | 4 | 2019-09-16T02:48:42.000Z | 2020-07-10T03:50:31.000Z | #include <L/src/container/Array.h>
#include <L/src/engine/Engine.h>
#include <L/src/input/Device.h>
#include <L/src/system/File.h>
#include <stdio.h>
#include <unistd.h>
#include <fcntl.h>
using namespace L;
// Reference: https://github.com/drewnoakes/joystick/blob/master/joystick-api.txt
// If unavailable, search j... | 29.088889 | 88 | 0.644003 | Lyatus |
64ffcea7eb598d12dd84fbc9dd5ec3ccd045892e | 373 | cpp | C++ | Necromancer/PILFactory.cpp | myffx36/RenderingEngine | 38df29966b3126744fb40c2a97775ae44cea92f9 | [
"MIT"
] | null | null | null | Necromancer/PILFactory.cpp | myffx36/RenderingEngine | 38df29966b3126744fb40c2a97775ae44cea92f9 | [
"MIT"
] | null | null | null | Necromancer/PILFactory.cpp | myffx36/RenderingEngine | 38df29966b3126744fb40c2a97775ae44cea92f9 | [
"MIT"
] | null | null | null | #include "stdafx.h"
#include "PILFactory.h"
#include "Configuration.h"
#include "PIL.h"
#include "D3D11_1PIL.h"
namespace Necromancer{
PILFactory::~PILFactory(){
}
PIL* PILFactory::create_pil(Configuration* config){
String platform = config->get_value("Platform", "platform");
if(platform == "D11_1"){
retur... | 18.65 | 62 | 0.702413 | myffx36 |
8f04006425892e05e35416b41c62b49a8ae059ce | 3,319 | cpp | C++ | src/mainwindow.cpp | pawREP/Glacier-Prim-IO | 5c6a512656e526b5c5d859623c3670eaa802d88f | [
"MIT"
] | 12 | 2020-04-03T00:00:16.000Z | 2022-03-09T11:40:48.000Z | src/mainwindow.cpp | hitman-resources/Glacier-Prim-IO | 436c8c1d471af82af5cdc07134b6a74cad30fd44 | [
"MIT"
] | 2 | 2020-04-12T03:10:09.000Z | 2020-05-10T22:24:45.000Z | src/mainwindow.cpp | hitman-resources/Glacier-Prim-IO | 436c8c1d471af82af5cdc07134b6a74cad30fd44 | [
"MIT"
] | 4 | 2020-04-10T03:06:05.000Z | 2021-09-30T06:03:30.000Z | #include "mainwindow.h"
#include "GlacierFormats.h"
#include "ui_mainwindow.h"
#include "Console.h"
#include "textureImport.h"
#include "materialEditorWidget.h"
#include <regex>
#include <Windows.h>
#include <QtWidgets>
#include <QtConcurrent/qtconcurrentrun.h>
using namespace GlacierFormats;
MainWindow::MainWindow... | 33.867347 | 120 | 0.702019 | pawREP |
8f047b0f9ae2c766d746d46f6cfd6a8ef44a21df | 2,224 | hxx | C++ | painty/sbr/PathTracer.hxx | lindemeier/painty | 792cac6655b3707805ffc68d902f0e675a7770b8 | [
"MIT"
] | 15 | 2020-04-22T15:18:28.000Z | 2022-03-24T07:48:28.000Z | painty/sbr/PathTracer.hxx | lindemeier/painty | 792cac6655b3707805ffc68d902f0e675a7770b8 | [
"MIT"
] | 25 | 2020-04-18T18:55:50.000Z | 2021-05-30T21:26:39.000Z | painty/sbr/PathTracer.hxx | lindemeier/painty | 792cac6655b3707805ffc68d902f0e675a7770b8 | [
"MIT"
] | 2 | 2020-09-16T05:55:54.000Z | 2021-01-09T12:09:43.000Z | /**
* @file PathTracer.hxx
* @author Thomas Lindemeier
* @brief
*
* @date 2020-09-11
*
*/
#pragma once
#include <vector>
#include "painty/core/Vec.hxx"
#include "painty/image/Mat.hxx"
namespace painty {
class PathTracer {
struct Stepper {
vec2 p = vec2::Zero();
vec2 t = vec2::Zero();
doubl... | 18.847458 | 145 | 0.642086 | lindemeier |
8f049732adff58002fc80f825acb8af0e73248b5 | 1,156 | hpp | C++ | include/codegen/include/Unity/Collections/NativeLeakDetection.hpp | Futuremappermydud/Naluluna-Modifier-Quest | bfda34370764b275d90324b3879f1a429a10a873 | [
"MIT"
] | 1 | 2021-11-12T09:29:31.000Z | 2021-11-12T09:29:31.000Z | include/codegen/include/Unity/Collections/NativeLeakDetection.hpp | Futuremappermydud/Naluluna-Modifier-Quest | bfda34370764b275d90324b3879f1a429a10a873 | [
"MIT"
] | null | null | null | include/codegen/include/Unity/Collections/NativeLeakDetection.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:27 PM
// Created by Sc2ad
// =========================================================================
#pragma once
#pragma pack(push, 8)
// Begin includes
#include "utils/typedefs.h"
// Including type: System.Object
#include "System/Object.hpp"
#include "utils/i... | 38.533333 | 109 | 0.718858 | Futuremappermydud |
8f09f99f123b81732e770e0f86e4dc6eec1cc640 | 14,728 | cpp | C++ | modules/opengl/src/buffer/framebufferobject.cpp | ayubatif/inviwo | 7cfd00ba2c844983622185b2293848db22a32043 | [
"BSD-2-Clause"
] | 4 | 2018-01-21T20:38:47.000Z | 2021-01-10T03:16:16.000Z | modules/opengl/src/buffer/framebufferobject.cpp | ayubatif/inviwo | 7cfd00ba2c844983622185b2293848db22a32043 | [
"BSD-2-Clause"
] | null | null | null | modules/opengl/src/buffer/framebufferobject.cpp | ayubatif/inviwo | 7cfd00ba2c844983622185b2293848db22a32043 | [
"BSD-2-Clause"
] | 19 | 2018-09-09T19:43:30.000Z | 2022-02-01T07:59:30.000Z | /*********************************************************************************
*
* Inviwo - Interactive Visualization Workshop
*
* Copyright (c) 2012-2021 Inviwo Foundation
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided th... | 40.573003 | 100 | 0.694595 | ayubatif |
8f0a541ed181465d91298e42caa4d7070ae67d3c | 1,961 | cpp | C++ | src/tests/Main.cpp | rzvdaniel/GUI- | 1501b54a038f7e3f66d683f125fa53d3ab73672c | [
"MIT"
] | 2 | 2017-06-16T19:27:55.000Z | 2020-04-05T02:18:07.000Z | src/tests/Main.cpp | rzvdaniel/GUI- | 1501b54a038f7e3f66d683f125fa53d3ab73672c | [
"MIT"
] | null | null | null | src/tests/Main.cpp | rzvdaniel/GUI- | 1501b54a038f7e3f66d683f125fa53d3ab73672c | [
"MIT"
] | 2 | 2019-09-03T19:23:20.000Z | 2020-08-29T21:46:17.000Z | #include "tests/Test1.h"
#include "tests/Test2.h"
#include "tests/Test3.h"
#include "tests/Test4.h"
#include "tests/Test5.h"
#include "tests/Test6.h"
#include "tests/Test7.h"
#include "tests/Test8.h"
#include "tests/Test9.h"
#include "guide/screenindependent.h"
#include "guide/debug.h"
int main(void)
{
TScreenIndepen... | 23.345238 | 80 | 0.641509 | rzvdaniel |
5584df823b6b56b22bbf1915e7b3064d5f66295f | 796 | hpp | C++ | src/modules/IntegralImage.hpp | CloudCV/cloudcv-bootstrap | ae5363938a21fb97b0365f5c469245ff5018b673 | [
"BSD-3-Clause"
] | 89 | 2015-03-20T14:28:17.000Z | 2021-03-12T15:06:45.000Z | src/modules/IntegralImage.hpp | CloudCV/cloudcv-bootstrap | ae5363938a21fb97b0365f5c469245ff5018b673 | [
"BSD-3-Clause"
] | 9 | 2015-05-08T15:11:02.000Z | 2016-10-21T08:16:41.000Z | src/modules/IntegralImage.hpp | CloudCV/cloudcv-bootstrap | ae5363938a21fb97b0365f5c469245ff5018b673 | [
"BSD-3-Clause"
] | 30 | 2015-05-05T12:54:34.000Z | 2020-12-20T09:53:31.000Z | /**********************************************************************************
* CloudCV Bootstrap - A starter template for Node.js with OpenCV bindings.
* This project lets you to quickly prototype a REST API
* in a Node.js for a image processing service written in C++.
... | 29.481481 | 84 | 0.518844 | CloudCV |
55860768ddbce48b89241ddd65c3784f469a035f | 931 | cpp | C++ | Pong/Engine/src/Math/Hashes.cpp | Bounty556/Pong | c09878521a8b0321dbed66d933f91770e71aa86d | [
"Apache-2.0"
] | null | null | null | Pong/Engine/src/Math/Hashes.cpp | Bounty556/Pong | c09878521a8b0321dbed66d933f91770e71aa86d | [
"Apache-2.0"
] | null | null | null | Pong/Engine/src/Math/Hashes.cpp | Bounty556/Pong | c09878521a8b0321dbed66d933f91770e71aa86d | [
"Apache-2.0"
] | null | null | null | #include "Hashes.h"
#include <string>
namespace Soul
{
u64 hashPowers[] = {1,53,2809,148877,7890481,418195493,22164361129,1174711139837,62259690411361,3299763591802133,174887470365513060,9269035929372193000};
namespace Math
{
u64 Hash(const String& string)
{
u32 power = 0;
u64 hashValue = 0;
u64 m = ... | 17.903846 | 154 | 0.610097 | Bounty556 |
55868e96bfbb9bb33c696885b099ecd2f6a3422e | 2,408 | cpp | C++ | unsorted/cpp-ipc-test/main.cpp | vasukas/attic | ff4b570461af88cb9e04a6a458faf22c5912d0fd | [
"MIT"
] | null | null | null | unsorted/cpp-ipc-test/main.cpp | vasukas/attic | ff4b570461af88cb9e04a6a458faf22c5912d0fd | [
"MIT"
] | null | null | null | unsorted/cpp-ipc-test/main.cpp | vasukas/attic | ff4b570461af88cb9e04a6a458faf22c5912d0fd | [
"MIT"
] | null | null | null | #include <cstdio>
#include <cstring>
#include <thread>
#include "ipclib/AsioQueue.h"
#include "ipclib/SharedMemory.h"
void sleep(int ms) {
std::this_thread::sleep_for(std::chrono::milliseconds(ms));
}
void test_SharedMemory(bool is_writer) {
if (is_writer) {
auto shm = ipclib::SharedMemory::create("test");
... | 21.5 | 92 | 0.568937 | vasukas |
5586b7626b8ef00f2137934571933c1f195c1bbd | 1,119 | cpp | C++ | libs/image3d/src/image3d/algorithm/copy.cpp | cpreh/spacegameengine | 313a1c34160b42a5135f8223ffaa3a31bc075a01 | [
"BSL-1.0"
] | 2 | 2016-01-27T13:18:14.000Z | 2018-05-11T01:11:32.000Z | libs/image3d/src/image3d/algorithm/copy.cpp | cpreh/spacegameengine | 313a1c34160b42a5135f8223ffaa3a31bc075a01 | [
"BSL-1.0"
] | null | null | null | libs/image3d/src/image3d/algorithm/copy.cpp | cpreh/spacegameengine | 313a1c34160b42a5135f8223ffaa3a31bc075a01 | [
"BSL-1.0"
] | 3 | 2018-05-11T01:11:34.000Z | 2021-04-24T19:47:45.000Z | // Copyright Carl Philipp Reh 2006 - 2019.
// Distributed under the Boost Software License, Version 1.0.
// (See accompanying file LICENSE_1_0.txt or copy at
// http://www.boost.org/LICENSE_1_0.txt)
#include <sge/image/algorithm/may_overlap.hpp>
#include <sge/image/algorithm/uninitialized.hpp>
#in... | 39.964286 | 88 | 0.751564 | cpreh |
5587ba2fb4df3b226ddf12a9c8582e4d90ea48c6 | 2,696 | cpp | C++ | lib/heif/Srcs/writer/editwriter.cpp | anzksdk/tifig-by | 17a306b27e6e2dd2992e1c0896312047541f4be0 | [
"Apache-2.0"
] | null | null | null | lib/heif/Srcs/writer/editwriter.cpp | anzksdk/tifig-by | 17a306b27e6e2dd2992e1c0896312047541f4be0 | [
"Apache-2.0"
] | null | null | null | lib/heif/Srcs/writer/editwriter.cpp | anzksdk/tifig-by | 17a306b27e6e2dd2992e1c0896312047541f4be0 | [
"Apache-2.0"
] | null | null | null | /* Copyright (c) 2015, Nokia Technologies Ltd.
* All rights reserved.
*
* Licensed under the Nokia High-Efficiency Image File Format (HEIF) License (the "License").
*
* You may not use the High-Efficiency Image File Format except in compliance with the License.
* The License accompanies the software and can be fo... | 30.292135 | 99 | 0.696588 | anzksdk |
5593a7d9039a130ed7c5f00835474ccc1f55aefb | 3,883 | cpp | C++ | TubeDist/Source/PluginEditor.cpp | 34Audiovisual/Progetti_JUCE | d22d91d342939a8463823d7a7ec528bd2228e5f7 | [
"MIT"
] | null | null | null | TubeDist/Source/PluginEditor.cpp | 34Audiovisual/Progetti_JUCE | d22d91d342939a8463823d7a7ec528bd2228e5f7 | [
"MIT"
] | null | null | null | TubeDist/Source/PluginEditor.cpp | 34Audiovisual/Progetti_JUCE | d22d91d342939a8463823d7a7ec528bd2228e5f7 | [
"MIT"
] | null | null | null | /*
==============================================================================
This file contains the basic framework code for a JUCE plugin editor.
==============================================================================
*/
#include "PluginProcessor.h"
#include "PluginEditor.h"
//======... | 42.67033 | 148 | 0.64718 | 34Audiovisual |
55941dce6bb0b5d911d460dc34f0f298d375f1e1 | 464 | hpp | C++ | include/tao/pq/oid.hpp | huzaifanazir/taopq | 8f939d33840f14d7c08311729745fe7bb8cd9898 | [
"BSL-1.0"
] | 69 | 2016-08-05T19:16:04.000Z | 2018-11-24T15:13:46.000Z | include/tao/pq/oid.hpp | huzaifanazir/taopq | 8f939d33840f14d7c08311729745fe7bb8cd9898 | [
"BSL-1.0"
] | 13 | 2016-11-24T16:42:28.000Z | 2018-09-11T18:55:40.000Z | include/tao/pq/oid.hpp | huzaifanazir/taopq | 8f939d33840f14d7c08311729745fe7bb8cd9898 | [
"BSL-1.0"
] | 13 | 2016-09-22T17:31:10.000Z | 2018-10-18T02:56:49.000Z | // Copyright (c) 2021-2022 Daniel Frey and Dr. Colin Hirsch
// Distributed under the Boost Software License, Version 1.0.
// (See accompanying file LICENSE_1_0.txt or copy at https://www.boost.org/LICENSE_1_0.txt)
#ifndef TAO_PQ_OID_HPP
#define TAO_PQ_OID_HPP
#include <libpq-fe.h>
namespace tao::pq
{
static_asser... | 19.333333 | 91 | 0.670259 | huzaifanazir |
559a993db977a2fc0526e3915f0b63a6fda01ac1 | 1,010 | cpp | C++ | runa/foundation/widget_factory.cpp | walkinsky8/nana-runner | 103992e07e7e644d349437fdf959364ffe9cb653 | [
"BSL-1.0"
] | 5 | 2017-12-28T08:22:20.000Z | 2022-03-30T01:26:17.000Z | runa/foundation/widget_factory.cpp | walkinsky8/nana-runner | 103992e07e7e644d349437fdf959364ffe9cb653 | [
"BSL-1.0"
] | null | null | null | runa/foundation/widget_factory.cpp | walkinsky8/nana-runner | 103992e07e7e644d349437fdf959364ffe9cb653 | [
"BSL-1.0"
] | null | null | null | /**
* Runa C++ Library
* Copyright (c) 2017-2019 walkinsky:lyh6188(at)hotmail(dot)com
*
* Distributed under the Boost Software License, Version 1.0.
* (See accompanying file LICENSE_1_0.txt or copy at
* http://www.boost.org/LICENSE_1_0.txt)
*/
// Created on 2017/01/15
#include "stdafx.h"
#ifndef __NANA_RUNNER_LIB_ALL_... | 19.803922 | 87 | 0.687129 | walkinsky8 |
559d661c2081a468f0ba5c3d42c257984c7feaf6 | 21,773 | cpp | C++ | gen/blink/bindings/core/v8/V8HTMLFrameElement.cpp | gergul/MiniBlink | 7a11c52f141d54d5f8e1a9af31867cd120a2c3c4 | [
"Apache-2.0"
] | 8 | 2019-05-05T16:38:05.000Z | 2021-11-09T11:45:38.000Z | gen/blink/bindings/core/v8/V8HTMLFrameElement.cpp | gergul/MiniBlink | 7a11c52f141d54d5f8e1a9af31867cd120a2c3c4 | [
"Apache-2.0"
] | null | null | null | gen/blink/bindings/core/v8/V8HTMLFrameElement.cpp | gergul/MiniBlink | 7a11c52f141d54d5f8e1a9af31867cd120a2c3c4 | [
"Apache-2.0"
] | 4 | 2018-12-14T07:52:46.000Z | 2021-06-11T18:06:09.000Z | // Copyright 2014 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// This file has been auto-generated by code_generator_v8.py. DO NOT MODIFY!
#include "config.h"
#include "V8HTMLFrameElement.h"
#include "bindings/core... | 49.148984 | 561 | 0.779589 | gergul |
55a0a9f855aeed0f1112e4c97aa2557d8b534cad | 2,669 | hpp | C++ | src/lib/model/VolumeModel.hpp | gerickson/openhlx | f23a825ca56ee226db393da14d81a7d4e9ae0b33 | [
"Apache-2.0"
] | 1 | 2021-05-21T21:10:09.000Z | 2021-05-21T21:10:09.000Z | src/lib/model/VolumeModel.hpp | gerickson/openhlx | f23a825ca56ee226db393da14d81a7d4e9ae0b33 | [
"Apache-2.0"
] | 12 | 2021-06-12T16:42:30.000Z | 2022-02-01T18:44:42.000Z | src/lib/model/VolumeModel.hpp | gerickson/openhlx | f23a825ca56ee226db393da14d81a7d4e9ae0b33 | [
"Apache-2.0"
] | null | null | null | /*
* Copyright (c) 2019-2021 Grant Erickson
* 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... | 24.045045 | 84 | 0.68003 | gerickson |
55a691b05d937beaf4ed26a1d53b3fa1f54f344f | 739 | cc | C++ | CANTOR.cc | hkktr/POLSKI-SPOJ | 59f7e0be99fca6532681c2ca01c8a7d97c6b5eed | [
"Unlicense"
] | 1 | 2021-02-01T11:21:56.000Z | 2021-02-01T11:21:56.000Z | CANTOR.cc | hkktr/POLSKI-SPOJ | 59f7e0be99fca6532681c2ca01c8a7d97c6b5eed | [
"Unlicense"
] | null | null | null | CANTOR.cc | hkktr/POLSKI-SPOJ | 59f7e0be99fca6532681c2ca01c8a7d97c6b5eed | [
"Unlicense"
] | 1 | 2022-01-28T15:25:45.000Z | 2022-01-28T15:25:45.000Z | // C++ (gcc 8.3)
#include <cmath>
#include <iostream>
void PrintTriangle(int start, int difference, int n) {
std::cout << start << "\n";
int last{start};
while (--difference) {
last -= difference;
for (int next{last}, i{difference + 1}; next <= n; next += i, ++i) {
std::cout << next << " ";
}
... | 21.114286 | 74 | 0.56157 | hkktr |
55a746160ba90daa5007d5bb53c7b5f27ba20769 | 787 | cpp | C++ | competitive programming/leetcode/2020-August-Challenge/Day-12-Pascal's Triangle II.cpp | kashyap99saksham/Code | 96658d0920eb79c007701d2a3cc9dbf453d78f96 | [
"MIT"
] | 16 | 2020-06-02T19:22:45.000Z | 2022-02-05T10:35:28.000Z | competitive programming/leetcode/2020-August-Challenge/Day-12-Pascal's Triangle II.cpp | codezoned/Code | de91ffc7ef06812a31464fb40358e2436734574c | [
"MIT"
] | null | null | null | competitive programming/leetcode/2020-August-Challenge/Day-12-Pascal's Triangle II.cpp | codezoned/Code | de91ffc7ef06812a31464fb40358e2436734574c | [
"MIT"
] | 2 | 2020-08-27T17:40:06.000Z | 2022-02-05T10:33:52.000Z | Given a non-negative index k where k ≤ 33, return the kth index row of the Pascal's triangle.
Note that the row index starts from 0.
In Pascal's triangle, each number is the sum of the two numbers directly above it.
Example:
Input: 3
Output: [1,3,3,1]
Follow up:
Could you optimize your algorithm to use only O(k) ... | 15.431373 | 93 | 0.537484 | kashyap99saksham |
55a9fd3f214405df19a22fdd2dd20ca4c746b128 | 840 | cpp | C++ | acmicpc.net/5015.cpp | kbu1564/SimpleAlgorithm | 7e5b0d2fe19461417d88de0addd2235da55787d3 | [
"MIT"
] | 4 | 2016-04-15T07:54:39.000Z | 2021-01-11T09:02:16.000Z | acmicpc.net/5015.cpp | kbu1564/SimpleAlgorithm | 7e5b0d2fe19461417d88de0addd2235da55787d3 | [
"MIT"
] | null | null | null | acmicpc.net/5015.cpp | kbu1564/SimpleAlgorithm | 7e5b0d2fe19461417d88de0addd2235da55787d3 | [
"MIT"
] | null | null | null | #include <cstdio>
#include <cstring>
#include <iostream>
#include <algorithm>
using namespace std;
char P[101];
char FN[101];
int LCS[101][101];
int lcs(int i, int j) {
if (i < 0 || j < 0) return 0;
if (LCS[i][j] > 0) return LCS[i][j];
if (P[i] != '*') {
if (P[i] == FN[j]) return LCS[i][j] = max(LCS[i][j], lcs(i-1... | 22.105263 | 77 | 0.511905 | kbu1564 |
55ab96f1d04c3bfbafac389790411778e9f824a4 | 2,629 | cc | C++ | core/src/ceof/ceof_token.cc | centreon-lab/centreon-broker | b412470204eedc01422bbfd00bcc306dfb3d2ef5 | [
"Apache-2.0"
] | null | null | null | core/src/ceof/ceof_token.cc | centreon-lab/centreon-broker | b412470204eedc01422bbfd00bcc306dfb3d2ef5 | [
"Apache-2.0"
] | null | null | null | core/src/ceof/ceof_token.cc | centreon-lab/centreon-broker | b412470204eedc01422bbfd00bcc306dfb3d2ef5 | [
"Apache-2.0"
] | null | null | null | /*
** Copyright 2009-2013 Centreon
**
** Licensed under the Apache License, Version 2.0 (the "License");
** you may not use this file except in compliance with the License.
** You may obtain a copy of the License at
**
** http://www.apache.org/licenses/LICENSE-2.0
**
** Unless required by applicable law or agreed t... | 23.061404 | 75 | 0.650818 | centreon-lab |
55b2d56da56341adfbc91bcf26e0ef3ea2bca82a | 223 | cc | C++ | test/0001-include/test.cc | stfwi/duktape-cc | 5ce7e818bc080b011a5dbcefe5e643deea7cdcdb | [
"MIT"
] | 9 | 2018-06-21T06:35:02.000Z | 2021-05-11T00:36:34.000Z | test/0001-include/test.cc | stfwi/duktape-cc | 5ce7e818bc080b011a5dbcefe5e643deea7cdcdb | [
"MIT"
] | 4 | 2019-08-13T15:02:02.000Z | 2021-04-14T20:02:07.000Z | test/0001-include/test.cc | stfwi/duktape-cc | 5ce7e818bc080b011a5dbcefe5e643deea7cdcdb | [
"MIT"
] | 4 | 2018-03-09T15:19:31.000Z | 2019-08-13T05:45:24.000Z | /**
* Test: alert() and print().
*/
#include "../testenv.hh"
using namespace std;
void test(duktape::engine& js)
{
std::stringstream ssin, sout;
test_include_script(js);
test_pass("No exception.");
}
| 15.928571 | 32 | 0.61435 | stfwi |
55b801318689ee4e119139923269e41a572e1556 | 3,597 | cc | C++ | lesson6/src/gtsam_solver/gtsam_solver.cc | mlbo/Creating-2D-laser-slam-from-scratch | 087921692a770d88d73ec7ad2a46035d9c064e6e | [
"Apache-2.0"
] | null | null | null | lesson6/src/gtsam_solver/gtsam_solver.cc | mlbo/Creating-2D-laser-slam-from-scratch | 087921692a770d88d73ec7ad2a46035d9c064e6e | [
"Apache-2.0"
] | null | null | null | lesson6/src/gtsam_solver/gtsam_solver.cc | mlbo/Creating-2D-laser-slam-from-scratch | 087921692a770d88d73ec7ad2a46035d9c064e6e | [
"Apache-2.0"
] | null | null | null | /*********************************************************************
*
* Copyright (c) 2017, Saurav Agarwal
* All rights reserved.
*
*********************************************************************/
/* Authors: Saurav Agarwal */
#include <limits>
#include <open_karto/Karto.h>
#include <ros/console.h>
#incl... | 32.116071 | 128 | 0.683347 | mlbo |
55c01b434aa6c45492bc257c91767fe25cf06c38 | 1,270 | cpp | C++ | chp3_oscillation/NOC_3_11_spring/src/Mover.cpp | ikbenmacje/NatureOfCode | 98692398b0458765a6e77ae6f652392f99de050f | [
"MIT"
] | null | null | null | chp3_oscillation/NOC_3_11_spring/src/Mover.cpp | ikbenmacje/NatureOfCode | 98692398b0458765a6e77ae6f652392f99de050f | [
"MIT"
] | null | null | null | chp3_oscillation/NOC_3_11_spring/src/Mover.cpp | ikbenmacje/NatureOfCode | 98692398b0458765a6e77ae6f652392f99de050f | [
"MIT"
] | null | null | null | //
// Mover.cpp
// NOC_1_7_motion101
//
// Created by Machiel Veltkamp on 3/18/13.
//
//
#include "Mover.h"
Bob::Bob(float x, float y){
location.set(x,y);
velocity.set(0,0);
acceleration.set(0,0);
mass = 24;
damping = 0.98;
dragging = false;
}
void Bob::applyForce(ofVec2f force){
ofV... | 16.075949 | 50 | 0.574803 | ikbenmacje |
55d32f7c839c61e570ff9ce4389196c8c5849028 | 13,433 | hpp | C++ | include/quote/direct2d/impl/image.hpp | quartorz/quote | 610f891fb8be6993b0db773f718ae5e7f24b1f40 | [
"MIT"
] | null | null | null | include/quote/direct2d/impl/image.hpp | quartorz/quote | 610f891fb8be6993b0db773f718ae5e7f24b1f40 | [
"MIT"
] | null | null | null | include/quote/direct2d/impl/image.hpp | quartorz/quote | 610f891fb8be6993b0db773f718ae5e7f24b1f40 | [
"MIT"
] | null | null | null | #pragma once
#include <quote/direct2d/image.hpp>
#include <quote/direct2d/utils.hpp>
#include <quote/tmp/on_exit.hpp>
#include <wincodec.h>
#include <comdef.h>
#include <chrono>
namespace quote{ namespace direct2d{
inline bool image::create(ID2D1RenderTarget *t)
{
if(is_gif)
return create_gif(t);
if(!mo... | 23.080756 | 90 | 0.665749 | quartorz |
55d75e120fec639d1a531612d6c57b3bd41bb659 | 175 | cpp | C++ | SimulationEngineLib/distribution/DistributionSquare.cpp | KevinMcGin/Simulation | f1dbed05d6024274f6a69e0679f529feaae1e26e | [
"MIT"
] | 4 | 2021-12-11T17:59:07.000Z | 2021-12-24T11:08:55.000Z | SimulationEngineLib/distribution/DistributionSquare.cpp | KevinMcGin/Simulation | f1dbed05d6024274f6a69e0679f529feaae1e26e | [
"MIT"
] | 121 | 2021-12-11T09:20:47.000Z | 2022-03-13T18:36:48.000Z | SimulationEngineLib/distribution/DistributionSquare.cpp | KevinMcGin/Simulation | f1dbed05d6024274f6a69e0679f529feaae1e26e | [
"MIT"
] | null | null | null | #include "distribution/DistributionSquare.h"
DistributionSquare::DistributionSquare(Vector3D<float> mean, float delta) : DistributionCuboid(mean, { delta, delta, 0 })
{
}
| 19.444444 | 121 | 0.765714 | KevinMcGin |
55db856418a02813c0812abeec5996efd4792cf6 | 307 | hpp | C++ | Visitor/C++/DrawableShape.hpp | Ghabriel/DesignPatterns | d2a1933e3c75e4f48d0dae52795018012e17d22b | [
"Apache-2.0"
] | null | null | null | Visitor/C++/DrawableShape.hpp | Ghabriel/DesignPatterns | d2a1933e3c75e4f48d0dae52795018012e17d22b | [
"Apache-2.0"
] | null | null | null | Visitor/C++/DrawableShape.hpp | Ghabriel/DesignPatterns | d2a1933e3c75e4f48d0dae52795018012e17d22b | [
"Apache-2.0"
] | null | null | null | #ifndef DRAWABLE_SHAPE_HPP
#define DRAWABLE_SHAPE_HPP
class Renderer;
// Utilizes the Non-Virtual Interface (NVI) idiom
class DrawableShape {
public:
void draw(const Renderer& renderer) const {
onDraw(renderer);
}
private:
virtual void onDraw(const Renderer&) const = 0;
};
#endif
| 17.055556 | 51 | 0.713355 | Ghabriel |
55e6f72849b1d8b5268c761584aa2e45d54bfd5d | 2,272 | cpp | C++ | code/source/audio/audiosource.cpp | crafn/clover | 586acdbcdb34c3550858af125e9bb4a6300343fe | [
"MIT"
] | 12 | 2015-01-12T00:19:20.000Z | 2021-08-05T10:47:20.000Z | code/source/audio/audiosource.cpp | crafn/clover | 586acdbcdb34c3550858af125e9bb4a6300343fe | [
"MIT"
] | null | null | null | code/source/audio/audiosource.cpp | crafn/clover | 586acdbcdb34c3550858af125e9bb4a6300343fe | [
"MIT"
] | null | null | null | #include "audiosource.hpp"
#include "audio_mgr.hpp"
#include "audiosourcehandle.hpp"
#include "debug/draw.hpp"
#include "global/env.hpp"
#include "global/event.hpp"
#include "util/mutex.hpp"
namespace clover {
namespace audio {
AudioSource::AudioSource(Type type_)
: created(false)
, type(type_)
, volume(1.0){
}... | 21.433962 | 83 | 0.695863 | crafn |
55e88c32d4546466321417eb2ef431f44d2f097f | 487 | cpp | C++ | src/plugins/win32/videoEncoder/DebugLog.cpp | miahmie/krkrz | e4948f61393ca4a2acac0301a975165dd4efc643 | [
"Unlicense",
"Apache-2.0",
"Libpng",
"FTL",
"IJG"
] | 2 | 2020-02-25T15:18:53.000Z | 2020-08-24T13:30:34.000Z | src/plugins/win32/videoEncoder/DebugLog.cpp | miahmie/krkrz | e4948f61393ca4a2acac0301a975165dd4efc643 | [
"Unlicense",
"Apache-2.0",
"Libpng",
"FTL",
"IJG"
] | null | null | null | src/plugins/win32/videoEncoder/DebugLog.cpp | miahmie/krkrz | e4948f61393ca4a2acac0301a975165dd4efc643 | [
"Unlicense",
"Apache-2.0",
"Libpng",
"FTL",
"IJG"
] | 1 | 2019-11-25T05:29:30.000Z | 2019-11-25T05:29:30.000Z |
#include <windows.h>
#include <stdio.h>
#include "DebugLog.h"
void DebugLog( unsigned long type, unsigned long level, const char* format, ... )
{
va_list argp;
char pszBuf[ 512];
va_start(argp, format);
vsprintf_s( pszBuf, format, argp);
va_end(argp);
::OutputDebugStringA( pszBuf );
}
void DebugLog2( const ch... | 18.037037 | 81 | 0.689938 | miahmie |
55ef98c473b056e4994dd33dc3b55dfdf3629224 | 4,642 | cpp | C++ | main.cpp | bendem/SchoolStats | 59883f1ba1219d707fedf9a890c0357d2002a285 | [
"Unlicense"
] | null | null | null | main.cpp | bendem/SchoolStats | 59883f1ba1219d707fedf9a890c0357d2002a285 | [
"Unlicense"
] | null | null | null | main.cpp | bendem/SchoolStats | 59883f1ba1219d707fedf9a890c0357d2002a285 | [
"Unlicense"
] | null | null | null | #include <iostream>
#include <iomanip>
#include <qapplication.h>
#include "data/DataSource.hpp"
#include "data/Sample.hpp"
#include "formatters/Data1DListFormatter.hpp"
#include "formatters/StatisticalSerie1DFormatter.hpp"
#include "formatters/StatisticalSerie2DFormatter.hpp"
#include "statistics/StatisticalSerie1D.h... | 30.741722 | 92 | 0.543516 | bendem |
55f38d16aec8eada1bb89bd1cbdf3875ff4e8dd4 | 4,454 | cpp | C++ | src/statistics/computeL_2dd.cpp | FrancoisGaits/utk | 8c408dd79635f98c46ed075c098f15e23972aad0 | [
"BSD-2-Clause-FreeBSD"
] | 44 | 2018-01-09T19:56:29.000Z | 2022-03-03T06:38:54.000Z | src/statistics/computeL_2dd.cpp | FrancoisGaits/utk | 8c408dd79635f98c46ed075c098f15e23972aad0 | [
"BSD-2-Clause-FreeBSD"
] | 16 | 2018-01-29T18:01:42.000Z | 2022-03-31T07:01:09.000Z | src/statistics/computeL_2dd.cpp | FrancoisGaits/utk | 8c408dd79635f98c46ed075c098f15e23972aad0 | [
"BSD-2-Clause-FreeBSD"
] | 12 | 2018-03-14T00:24:14.000Z | 2022-03-03T06:40:07.000Z | /*
* Hélène Perrier helene.perrier@liris.cnrs.fr
* and David Coeurjolly david.coeurjolly@liris.cnrs.fr
*
* Copyright (c) 2018 CNRS Université de Lyon
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following condition... | 35.349206 | 174 | 0.716435 | FrancoisGaits |
55f613d5f1f73a2936b708ec0a45a0867c15a389 | 509 | cpp | C++ | 2504.cpp | gcjjyy/acmicpc | 763e7a3ec5aabdab6935b9e9970561baafb07729 | [
"MIT"
] | null | null | null | 2504.cpp | gcjjyy/acmicpc | 763e7a3ec5aabdab6935b9e9970561baafb07729 | [
"MIT"
] | null | null | null | 2504.cpp | gcjjyy/acmicpc | 763e7a3ec5aabdab6935b9e9970561baafb07729 | [
"MIT"
] | null | null | null | #include <stdio.h>
char A[31];
char *p;
int stack[100];
int sp;
// (()[[]])([])
int main() {
scanf("%s", A);
p = A;
int score = 0;
while(*p) {
switch(*p) {
case '(':
case '[':
stack[sp++] = *p;
break;
case ')':
i... | 16.419355 | 50 | 0.310413 | gcjjyy |
55f8e397113189ae98679774882cc53b8c3f9fcd | 16,203 | cpp | C++ | Gem/Code/Source/Utils/ImGuiAssetBrowser.cpp | Bindless-Chicken/o3de-atom-sampleviewer | 13b11996079675445ce4e321f53c3ac79e01702d | [
"Apache-2.0",
"MIT"
] | 15 | 2021-07-07T02:16:06.000Z | 2022-03-22T07:39:06.000Z | Gem/Code/Source/Utils/ImGuiAssetBrowser.cpp | Bindless-Chicken/o3de-atom-sampleviewer | 13b11996079675445ce4e321f53c3ac79e01702d | [
"Apache-2.0",
"MIT"
] | 66 | 2021-07-07T00:01:05.000Z | 2022-03-28T06:37:41.000Z | Gem/Code/Source/Utils/ImGuiAssetBrowser.cpp | Bindless-Chicken/o3de-atom-sampleviewer | 13b11996079675445ce4e321f53c3ac79e01702d | [
"Apache-2.0",
"MIT"
] | 13 | 2021-07-06T18:21:33.000Z | 2022-01-04T18:29:18.000Z | /*
* Copyright (c) Contributors to the Open 3D Engine Project.
* For complete copyright and license terms please see the LICENSE at the root of this distribution.
*
* SPDX-License-Identifier: Apache-2.0 OR MIT
*
*/
#include <Utils/ImGuiAssetBrowser.h>
#include <AzCore/IO/SystemFile.h>
#include <AzCore/std/sort.h... | 34.547974 | 205 | 0.589582 | Bindless-Chicken |
55fa1fe515c93f963536f94fad4673a850d74fdf | 6,421 | cpp | C++ | ns2/lib/string.cpp | agenium-scale/ns.tools | e4a5d560311f2965655e91903ce60b4375ae39c4 | [
"MIT"
] | 3 | 2020-08-26T08:13:40.000Z | 2021-04-14T02:27:30.000Z | ns2/lib/string.cpp | agenium-scale/ns.tools | e4a5d560311f2965655e91903ce60b4375ae39c4 | [
"MIT"
] | 4 | 2020-03-26T20:18:18.000Z | 2021-02-07T00:22:34.000Z | ns2/lib/string.cpp | agenium-scale/ns.tools | e4a5d560311f2965655e91903ce60b4375ae39c4 | [
"MIT"
] | 3 | 2019-12-02T14:50:55.000Z | 2021-07-10T23:36:03.000Z | // MIT License
//
// Copyright (c) 2019 Agenium Scale
//
// 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, modif... | 27.55794 | 80 | 0.508332 | agenium-scale |
55fd028c0999a62abd3ead76a6426c00a553ef55 | 2,527 | cpp | C++ | CPPOptions.cpp | Satervalley/Kamac-git | 83b916684c1397f10319793f87d8c3ab90edbad4 | [
"WTFPL"
] | 1 | 2019-12-08T02:20:12.000Z | 2019-12-08T02:20:12.000Z | CPPOptions.cpp | Satervalley/Kamac-git | 83b916684c1397f10319793f87d8c3ab90edbad4 | [
"WTFPL"
] | null | null | null | CPPOptions.cpp | Satervalley/Kamac-git | 83b916684c1397f10319793f87d8c3ab90edbad4 | [
"WTFPL"
] | null | null | null | // CPPOptions.cpp: 实现文件
//
#include "pch.h"
#include "Kamac.h"
#include "CPPOptions.h"
#include "afxdialogex.h"
UINT WM_OPTIONS_CHANGED = WM_USER + 2;
// CPPOptions 对话框
IMPLEMENT_DYNAMIC(CPPOptions, CPropertyPage)
//----------------------------------------------------------------------------------... | 29.045977 | 121 | 0.491096 | Satervalley |
360025d4787d94de292918148cc273847dbce634 | 3,393 | cpp | C++ | src/Tools/Math/Galois.cpp | codechecker123/aff3ct | 030af3e990027fa803fb2c68f974c9ec0ee79b5d | [
"MIT"
] | null | null | null | src/Tools/Math/Galois.cpp | codechecker123/aff3ct | 030af3e990027fa803fb2c68f974c9ec0ee79b5d | [
"MIT"
] | null | null | null | src/Tools/Math/Galois.cpp | codechecker123/aff3ct | 030af3e990027fa803fb2c68f974c9ec0ee79b5d | [
"MIT"
] | null | null | null | #include <cmath>
#include <iostream>
#include <sstream>
#include <cmath>
#include "Tools/Exception/exception.hpp"
#include "Galois.hpp"
using namespace aff3ct::tools;
Galois
::Galois(const int& K, const int& N)
: K(K), N(N), m((int)std::ceil(std::log2(N))), alpha_to(N +1), index_of(N +1), p(m +1, 0)
{
if (K <= 0)... | 20.815951 | 97 | 0.543767 | codechecker123 |
3605290a9e20e12a9b23c44aab074b95d39dc4d0 | 3,599 | cpp | C++ | eagle_mpc_2_control/src/mpc_runner_single.cpp | PepMS/eagle_mpc_ros2 | 19f9d23606524960ef2d4ad2ccf609c91f813b2e | [
"MIT"
] | 5 | 2021-08-07T06:16:20.000Z | 2022-02-27T21:43:33.000Z | eagle_mpc_2_control/src/mpc_runner_single.cpp | PepMS/px4_mpc | 19f9d23606524960ef2d4ad2ccf609c91f813b2e | [
"MIT"
] | null | null | null | eagle_mpc_2_control/src/mpc_runner_single.cpp | PepMS/px4_mpc | 19f9d23606524960ef2d4ad2ccf609c91f813b2e | [
"MIT"
] | 2 | 2021-01-05T03:12:13.000Z | 2021-01-05T03:12:13.000Z | #include "eagle_mpc_2_control/mpc_runner_single.hpp"
#include <inttypes.h>
using namespace std::chrono_literals;
namespace eagle_mpc_ros2 {
MpcTest::MpcTest(const std::string& node_name) : rclcpp::Node(node_name) {
actuator_direct_control_pub_ =
create_publisher<px4_msgs::msg::ActuatorDirectControl>("Act... | 36.353535 | 111 | 0.665185 | PepMS |
36055ac441036bf89a071608dfed5bf400aafe8d | 1,236 | hpp | C++ | src/Stack.hpp | ireina7/abyss | 643f69732b0464d223bc1aab28afb078e1e15a6e | [
"MIT"
] | null | null | null | src/Stack.hpp | ireina7/abyss | 643f69732b0464d223bc1aab28afb078e1e15a6e | [
"MIT"
] | null | null | null | src/Stack.hpp | ireina7/abyss | 643f69732b0464d223bc1aab28afb078e1e15a6e | [
"MIT"
] | null | null | null | #ifndef STACK_HPP
#define STACK_HPP
#include "Object.hpp"
//#include "VM.hpp"
//#include "GC.hpp"
namespace abyss {
/*
** Entries in the Abyss stack
*/
struct StackValue {
Value val;
StackValue() {}
StackValue(const Value &v): val(v) {}
object::Type getType() {
... | 19.015385 | 64 | 0.574434 | ireina7 |
3605c544c576d7117a7a15bbec3d782dead78cac | 13,743 | cc | C++ | trading-system/src/usergeneral.cc | platanifolia/AP-1 | 619ddad75d7929dba9b4f51342045415bca63b92 | [
"MIT"
] | null | null | null | trading-system/src/usergeneral.cc | platanifolia/AP-1 | 619ddad75d7929dba9b4f51342045415bca63b92 | [
"MIT"
] | null | null | null | trading-system/src/usergeneral.cc | platanifolia/AP-1 | 619ddad75d7929dba9b4f51342045415bca63b92 | [
"MIT"
] | null | null | null | #include "usergengral.h"
#include <iostream>
#include <fstream>
#include "strhandle.h"
using std::cerr;
using std::cin;
using std::cout;
using std::endl;
using std::string;
using std::to_string;
using std::ofstream;
using std::ios;
UserGeneral::UserGeneral()
{
sdb_ = nullptr;
nowuserid_ = "";
}
UserGeneral... | 26.841797 | 226 | 0.436804 | platanifolia |
3608029f3efb97b863caa095b45eb852bce4ded4 | 649 | cpp | C++ | Codeforces/1401/1401C.cpp | polarr/competitive-programming | 06e41fd72c785eb5621e20669d76ed99fafab901 | [
"CC0-1.0"
] | 1 | 2020-12-16T19:08:51.000Z | 2020-12-16T19:08:51.000Z | Codeforces/1401/1401C.cpp | polarr/competitive-programming | 06e41fd72c785eb5621e20669d76ed99fafab901 | [
"CC0-1.0"
] | null | null | null | Codeforces/1401/1401C.cpp | polarr/competitive-programming | 06e41fd72c785eb5621e20669d76ed99fafab901 | [
"CC0-1.0"
] | null | null | null | #include <bits/stdc++.h>
using namespace std;
int main(){
int t;
cin >> t;
while(t--){
int x;
cin >> x;
vector <int> n;
int mn = INT_MAX;
for (int i = 0; i < x; ++i){
int k;
cin >> k;
mn = min<int>(mn, k);
n.push_back(... | 20.28125 | 48 | 0.337442 | polarr |
3609b514900bfba6bcfb4b81bef4d0dc12c5bcd6 | 434 | cpp | C++ | test/tuple/to_tuple_reference.cpp | jonathanpoelen/falcon | 5b60a39787eedf15b801d83384193a05efd41a89 | [
"MIT"
] | 2 | 2018-02-02T14:19:59.000Z | 2018-05-13T02:48:24.000Z | test/tuple/to_tuple_reference.cpp | jonathanpoelen/falcon | 5b60a39787eedf15b801d83384193a05efd41a89 | [
"MIT"
] | null | null | null | test/tuple/to_tuple_reference.cpp | jonathanpoelen/falcon | 5b60a39787eedf15b801d83384193a05efd41a89 | [
"MIT"
] | null | null | null | #include <test/test.hpp>
#include <falcon/tuple/to_tuple_reference.hpp>
#include "to_tuple_reference.hpp"
#include <tuple>
void to_tuple_reference_test()
{
typedef std::tuple<int, int, long> tuple_type;
typedef std::tuple<int&, int&, long&> reference_type;
tuple_type t(5,9,10);
auto tref = falcon::to_tuple_refere... | 25.529412 | 55 | 0.771889 | jonathanpoelen |
360f125d4560a2d0a085a1774736052527843b97 | 4,761 | cpp | C++ | framework/box.cpp | Angrypotato0/RayTraycerDE | 3bc0bfbb86d1ccc929fbb5661e03b010914cf58f | [
"MIT"
] | null | null | null | framework/box.cpp | Angrypotato0/RayTraycerDE | 3bc0bfbb86d1ccc929fbb5661e03b010914cf58f | [
"MIT"
] | null | null | null | framework/box.cpp | Angrypotato0/RayTraycerDE | 3bc0bfbb86d1ccc929fbb5661e03b010914cf58f | [
"MIT"
] | null | null | null | #include "box.hpp"
#include "shape.hpp"
#include <cmath>
Box::Box() : Shape{"box",{}}, min_ {0.0f,0.0f,0.0f}, max_ {0.0f,0.0f,0.0f} {}
Box::Box(glm::vec3 const& min, glm::vec3 const& max) :
Shape{"box",{}}, max_{max}, min_{min}{
min_.x = std::min(min.x, max.x);
min_.y = std::min(min.y, max.y);
min_.z... | 29.030488 | 148 | 0.511657 | Angrypotato0 |
360fac9256d8cf28e34b54ed2c18f74bcae69f15 | 4,962 | hpp | C++ | include/adm/route.hpp | IRT-Open-Source/libadm | 442f51229e760db1caca4b962bfaad58a9c7d9b8 | [
"Apache-2.0"
] | 14 | 2018-07-24T12:18:05.000Z | 2020-05-11T19:14:49.000Z | include/adm/route.hpp | IRT-Open-Source/libadm | 442f51229e760db1caca4b962bfaad58a9c7d9b8 | [
"Apache-2.0"
] | 19 | 2018-07-30T15:02:54.000Z | 2020-05-21T10:13:19.000Z | include/adm/route.hpp | IRT-Open-Source/libadm | 442f51229e760db1caca4b962bfaad58a9c7d9b8 | [
"Apache-2.0"
] | 7 | 2018-07-24T12:18:12.000Z | 2020-02-14T11:18:12.000Z | #pragma once
#include "adm/element_variant.hpp"
#include "adm/elements.hpp"
#include <boost/functional/hash.hpp>
#include <vector>
#include <algorithm>
#include <memory>
namespace adm {
/**
* @brief Route along ADM elements within an ADM document
*
* Describes route along ADM elements within an ADM documen... | 31.807692 | 80 | 0.661024 | IRT-Open-Source |
36115885f95c5ef1414a5cbcaab704765ce3b05c | 8,170 | cpp | C++ | tests/TestUtils.cpp | maxblagay/idl-parser | 83fcecb1fd3885a242f70e40f5997f84f9cca951 | [
"BSD-2-Clause"
] | null | null | null | tests/TestUtils.cpp | maxblagay/idl-parser | 83fcecb1fd3885a242f70e40f5997f84f9cca951 | [
"BSD-2-Clause"
] | null | null | null | tests/TestUtils.cpp | maxblagay/idl-parser | 83fcecb1fd3885a242f70e40f5997f84f9cca951 | [
"BSD-2-Clause"
] | null | null | null | #include "TestUtils.hpp"
#include "Parser.hpp"
#include <assert.h>
#include <fstream>
namespace utils
{
bool
init(const std::string &path, const std::string_view &data)
{
auto fp = fopen(path.c_str(), "wb+");
if (!fp)
{
return false;
}
auto bytes = fwrite(data.data(), data.size(), 1, fp)... | 24.608434 | 99 | 0.41787 | maxblagay |
36185d1cbc617d8890a3344a477b6ddc7e0a095d | 2,870 | cpp | C++ | src/audio/FilterSource.cpp | kuroneko/AFV-Native | 6e333322badb5248bb5b37994815066838034bde | [
"BSD-3-Clause"
] | 6 | 2020-03-22T21:45:30.000Z | 2021-10-10T09:04:32.000Z | src/audio/FilterSource.cpp | xpilot-project/AFV-Native | b79feb90f31ded5f736234a58c6b07ee86cf9384 | [
"BSD-3-Clause"
] | 2 | 2019-11-24T20:58:29.000Z | 2020-06-27T07:41:50.000Z | src/audio/FilterSource.cpp | xpilot-project/AFV-Native | b79feb90f31ded5f736234a58c6b07ee86cf9384 | [
"BSD-3-Clause"
] | 3 | 2020-10-12T11:57:47.000Z | 2020-12-14T14:41:36.000Z | /* audio/FilterSource.cpp
*
* This file is part of AFV-Native.
*
* Copyright (c) 2020 Christopher Collins
*
* 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 ab... | 33.372093 | 80 | 0.723345 | kuroneko |
362463968135423d121184bea1d7004586ce344d | 397 | hpp | C++ | include/iologic.hpp | GenericMadScientist/DotR-Randomiser | b1b0ff8f0703fd884afb6cab0ccfdee7300b1a58 | [
"MIT"
] | 3 | 2017-06-01T06:02:17.000Z | 2020-08-03T21:41:09.000Z | include/iologic.hpp | GenericMadScientist/DotR-Randomiser | b1b0ff8f0703fd884afb6cab0ccfdee7300b1a58 | [
"MIT"
] | null | null | null | include/iologic.hpp | GenericMadScientist/DotR-Randomiser | b1b0ff8f0703fd884afb6cab0ccfdee7300b1a58 | [
"MIT"
] | 1 | 2021-11-19T17:47:44.000Z | 2021-11-19T17:47:44.000Z | #ifndef IOLOGIC_HPP
#define IOLOGIC_HPP
#include <cstdint>
#include <QFile>
#include "decks.hpp"
bool isFileValid(QFile*);
std::vector<int> readDeckCosts(QFile*);
void writeDeck(QFile*, const Deck&, qint64);
void createStarterDecks(QFile*, const DeckFactory&,
const std::vector<int>&, uint64_... | 20.894737 | 59 | 0.70529 | GenericMadScientist |
362b3141bf09df881cb83ba00a07dfd2c9d9ba6f | 1,459 | cc | C++ | game/src/core/event_effect_list.cc | ragmani/mengde | b6dad8e0e717a7fac1292b9595bdd6a67e9b4751 | [
"MIT"
] | 1 | 2018-03-02T03:36:59.000Z | 2018-03-02T03:36:59.000Z | game/src/core/event_effect_list.cc | ragmani/mengde | b6dad8e0e717a7fac1292b9595bdd6a67e9b4751 | [
"MIT"
] | 1 | 2018-04-17T01:43:02.000Z | 2018-04-17T01:43:02.000Z | game/src/core/event_effect_list.cc | chunseoklee/mengde | 7261e45dab9e02d4bf18b4542767f4b50a5616a0 | [
"MIT"
] | null | null | null | #include "event_effect_list.h"
#include "cmd.h" // TODO Only for CmdQueue
#include "event_effect.h"
#include "util/common.h"
namespace mengde {
namespace core {
EventEffectList::EventEffectList() {}
EventEffectList::~EventEffectList() {
for (auto e : general_elements_) {
delete e;
}
for (auto e : oncmd_e... | 23.15873 | 97 | 0.659356 | ragmani |
362cf7e1a6cebb6c517837c38334f327c5125088 | 2,813 | cpp | C++ | src/app/PlantArchitect.cpp | edisonlee0212/PlantArchitect | f01e48fb67291947407a45494178db982b9be0e3 | [
"BSD-3-Clause"
] | 1 | 2021-08-25T06:25:00.000Z | 2021-08-25T06:25:00.000Z | src/app/PlantArchitect.cpp | edisonlee0212/PlantArchitect-dev | f01e48fb67291947407a45494178db982b9be0e3 | [
"BSD-3-Clause"
] | null | null | null | src/app/PlantArchitect.cpp | edisonlee0212/PlantArchitect-dev | f01e48fb67291947407a45494178db982b9be0e3 | [
"BSD-3-Clause"
] | 1 | 2022-02-07T02:54:05.000Z | 2022-02-07T02:54:05.000Z | // PlantFactory.cpp : This file contains the 'main' function. Program execution
// begins and ends there.
//
#include <Application.hpp>
#ifdef RAYTRACERFACILITY
#include <CUDAModule.hpp>
#include <RayTracerLayer.hpp>
#include "MLVQRenderer.hpp"
#endif
#include <Editor.hpp>
#include <Utilities.hpp>
#include <Project... | 30.912088 | 102 | 0.734447 | edisonlee0212 |
362d7a08827e77e6f0c3650347e0f105f405cb07 | 4,593 | cpp | C++ | src/lib/tisix/tinyubsan.cpp | Abb1x/tisix | f79de11dae657b2b5e082c4a0057192763d6c15a | [
"MIT"
] | 13 | 2021-11-14T00:42:36.000Z | 2022-02-21T14:19:50.000Z | src/lib/tisix/tinyubsan.cpp | Abb1x/tisix | f79de11dae657b2b5e082c4a0057192763d6c15a | [
"MIT"
] | null | null | null | src/lib/tisix/tinyubsan.cpp | Abb1x/tisix | f79de11dae657b2b5e082c4a0057192763d6c15a | [
"MIT"
] | 1 | 2021-11-20T16:15:45.000Z | 2021-11-20T16:15:45.000Z | #include <stdint.h>
#include <tisix/arch.hpp>
extern "C"
{
struct tu_source_location
{
const char *file;
uint32_t line;
uint32_t column;
};
struct tu_type_descriptor
{
uint16_t kind;
uint16_t info;
char name[];
};
struct tu_overflow_data
... | 26.245714 | 103 | 0.659264 | Abb1x |
15693b0c363249767cfe9340e893dc04a861a01d | 5,157 | cpp | C++ | mainwindow.cpp | handsomefox/qt_notepad | a30d24048e45f5a82a71d069b5c4051c30aaad0d | [
"MIT"
] | 1 | 2021-07-30T16:00:53.000Z | 2021-07-30T16:00:53.000Z | mainwindow.cpp | handsomefox/qt_notepad | a30d24048e45f5a82a71d069b5c4051c30aaad0d | [
"MIT"
] | null | null | null | mainwindow.cpp | handsomefox/qt_notepad | a30d24048e45f5a82a71d069b5c4051c30aaad0d | [
"MIT"
] | null | null | null | #include "mainwindow.h"
#include "ui_mainwindow.h"
#include <QApplication>
#include <QFile>
#include <QFileDialog>
#include <QMessageBox>
#include <QPrintDialog>
#include <QPrinter>
#include <QStyleFactory>
#include <QTextStream>
void ApplyDarkTheme()
{
qApp->setStyle(QStyleFactory::create("Fusion"));
QPalet... | 26.446154 | 108 | 0.626527 | handsomefox |
156b89e64c1733eb78110e47bbf2f2316ef64a0a | 324 | cpp | C++ | main.cpp | dleliuhin/bucket-comb-sort | d6e87ce4de8b6b4116a5e0496cabc2bb47e01c59 | [
"MIT"
] | null | null | null | main.cpp | dleliuhin/bucket-comb-sort | d6e87ce4de8b6b4116a5e0496cabc2bb47e01c59 | [
"MIT"
] | null | null | null | main.cpp | dleliuhin/bucket-comb-sort | d6e87ce4de8b6b4116a5e0496cabc2bb47e01c59 | [
"MIT"
] | null | null | null | #include "node.h"
#include "omp.h"
#include <iostream>
using namespace std;
//=======================================================================================
int main( int argc, char **argv )
{
return EXIT_SUCCESS;
}
//====================================================================================... | 20.25 | 89 | 0.29321 | dleliuhin |
156e03a10e4f9c9570a3516b1ca5c71427ba828f | 4,842 | hpp | C++ | include/mpicxx/startup/thread_support.hpp | arkantos493/MPICXX | ffbaeaaa3c7248e2087c3716ec71e0612aafe689 | [
"MIT"
] | 1 | 2020-10-20T06:53:05.000Z | 2020-10-20T06:53:05.000Z | include/mpicxx/startup/thread_support.hpp | arkantos493/MPICXX | ffbaeaaa3c7248e2087c3716ec71e0612aafe689 | [
"MIT"
] | null | null | null | include/mpicxx/startup/thread_support.hpp | arkantos493/MPICXX | ffbaeaaa3c7248e2087c3716ec71e0612aafe689 | [
"MIT"
] | 1 | 2020-08-13T17:46:40.000Z | 2020-08-13T17:46:40.000Z | /**
* @file
* @author Marcel Breyer
* @date 2020-07-17
* @copyright This file is distributed under the MIT License.
*
* @brief Contains the level of thread support enum.
* @details Additionally adds various functions to perform conversions from and to
* [`std::string`](https://en.cppreference.com/w/cpp... | 38.428571 | 159 | 0.628046 | arkantos493 |
1570cde520ab80f621c61b880994dfea71147ca1 | 2,448 | cpp | C++ | src/binary/socket-server/test/SocketServerChildProcessTest.cpp | heaven-chp/base-server-cpp | 87213259c61c93a791d087f4b284f79f0f05574c | [
"Apache-2.0"
] | null | null | null | src/binary/socket-server/test/SocketServerChildProcessTest.cpp | heaven-chp/base-server-cpp | 87213259c61c93a791d087f4b284f79f0f05574c | [
"Apache-2.0"
] | 1 | 2021-12-19T13:36:19.000Z | 2021-12-19T14:07:14.000Z | src/binary/socket-server/test/SocketServerChildProcessTest.cpp | heaven-chp/base-server-cpp | 87213259c61c93a791d087f4b284f79f0f05574c | [
"Apache-2.0"
] | null | null | null | #include "test.h"
#include "../SocketServerChildProcess.h"
#include "gtest/gtest.h"
#include "Singleton.h"
#include "EnvironmentVariable.h"
class SocketServerChildProcessTest : public ::testing::Test {
protected:
void SetUp() override {
extern int optind;
optind = 1;
int iArgc = 4;
char *pcArgv[] = {(char... | 25.5 | 122 | 0.711193 | heaven-chp |
1577d7f82d1b639c3264c6ca997d5591f6842586 | 115 | hpp | C++ | include/Graph/Graphics.hpp | FinIsOro/grapher | dfeabdf7bc25dbb3c45705bde2f5f645ba9cb2e6 | [
"MIT"
] | null | null | null | include/Graph/Graphics.hpp | FinIsOro/grapher | dfeabdf7bc25dbb3c45705bde2f5f645ba9cb2e6 | [
"MIT"
] | null | null | null | include/Graph/Graphics.hpp | FinIsOro/grapher | dfeabdf7bc25dbb3c45705bde2f5f645ba9cb2e6 | [
"MIT"
] | null | null | null | #pragma once
#include <Graph/Core.hpp>
#include <Graph/Graphics/Chart.hpp>
#include <Graph/Graphics/ViewArea.hpp> | 19.166667 | 38 | 0.765217 | FinIsOro |
157e1ffe35ea7bf3bd6aad2560ad23ab9a42bd41 | 18 | cc | C++ | utils/list.cc | stryku/cougar | 5352860e89261a6dadd45a2b7b2c6ae421322c0c | [
"Apache-2.0"
] | null | null | null | utils/list.cc | stryku/cougar | 5352860e89261a6dadd45a2b7b2c6ae421322c0c | [
"Apache-2.0"
] | 4 | 2021-05-02T08:27:25.000Z | 2021-05-15T08:37:26.000Z | utils/list.cc | stryku/cougar | 5352860e89261a6dadd45a2b7b2c6ae421322c0c | [
"Apache-2.0"
] | 1 | 2021-04-24T20:20:58.000Z | 2021-04-24T20:20:58.000Z | #include "list.hh" | 18 | 18 | 0.722222 | stryku |
15820395c5f77d538273c87c4288fe1cca49d352 | 792 | cpp | C++ | map.cpp | onur-yildiz/cmd-pacman | 4b80a5a36c06ca9bb49c962ca56dcbd72274fb44 | [
"MIT"
] | null | null | null | map.cpp | onur-yildiz/cmd-pacman | 4b80a5a36c06ca9bb49c962ca56dcbd72274fb44 | [
"MIT"
] | null | null | null | map.cpp | onur-yildiz/cmd-pacman | 4b80a5a36c06ca9bb49c962ca56dcbd72274fb44 | [
"MIT"
] | null | null | null | #include "map.h"
#include <ncurses.h>
Map::Map(WINDOW * win) {
char map[22][24] = {
"XXXXXXXXXXXXXXXXXXXXXXX",
"X..........X..........X",
"X.XXX.XXXX.X.XXXX.XXX.X",
"X$XXX.XXXX.X.XXXX.XXX$X",
"X.....................X",
"X.XXX.X.XXXXXXX.X.XXX.X",
"X.....X....X....X.....X",
"XXXXX.XXXX X XXXX.XXXXX",
"XXXXX.X X... | 22 | 34 | 0.467172 | onur-yildiz |
15864e4d5e119b7292c3c7ce80e9eee86c7197f4 | 17,452 | cpp | C++ | lib/offline/MemoryStorage.cpp | dipatid/cpp_client_telemetry | da74d671d904395a1f4c52262c4d78f624d261e9 | [
"Apache-2.0"
] | null | null | null | lib/offline/MemoryStorage.cpp | dipatid/cpp_client_telemetry | da74d671d904395a1f4c52262c4d78f624d261e9 | [
"Apache-2.0"
] | null | null | null | lib/offline/MemoryStorage.cpp | dipatid/cpp_client_telemetry | da74d671d904395a1f4c52262c4d78f624d261e9 | [
"Apache-2.0"
] | null | null | null | //
// Copyright (c) 2015-2020 Microsoft Corporation and Contributors.
// SPDX-License-Identifier: Apache-2.0
//
#include "MemoryStorage.hpp"
#include "utils/Utils.hpp"
#include <climits>
namespace MAT_NS_BEGIN {
MATSDK_LOG_INST_COMPONENT_CLASS(MemoryStorage, "EventsSDK.MemoryStorage", "Events telemetry client - ... | 33.241905 | 165 | 0.54286 | dipatid |
158a5ffbd797d45357c824c77730c7a51c2351bf | 22,706 | cpp | C++ | code/ViewProperties.cpp | omerdagan84/neomem | 7d2f782bb37f1ab0ac6580d00672e114605afab7 | [
"MIT"
] | 1 | 2022-02-10T01:41:32.000Z | 2022-02-10T01:41:32.000Z | code/ViewProperties.cpp | omerdagan84/neomem | 7d2f782bb37f1ab0ac6580d00672e114605afab7 | [
"MIT"
] | null | null | null | code/ViewProperties.cpp | omerdagan84/neomem | 7d2f782bb37f1ab0ac6580d00672e114605afab7 | [
"MIT"
] | null | null | null |
// CViewProperties
#include "precompiled.h"
#include "NeoMem.h"
#include "ViewProperties.h"
#include "Constants.h"
#include "DialogSelectProperty.h"
#include "Hint.h"
#include "BObject.h"
#include "ConstantsDatabase.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endi... | 27.963054 | 112 | 0.72395 | omerdagan84 |
159178e01f49b61f056dcc9cb0210bdf49686001 | 12,893 | cpp | C++ | MiniEngine/Core/GraphicsCommon.cpp | Old-Fritz/DXRCaustics | c8006bd499c9a050b38a01d0715c0bdbfbfae3d4 | [
"MIT"
] | null | null | null | MiniEngine/Core/GraphicsCommon.cpp | Old-Fritz/DXRCaustics | c8006bd499c9a050b38a01d0715c0bdbfbfae3d4 | [
"MIT"
] | null | null | null | MiniEngine/Core/GraphicsCommon.cpp | Old-Fritz/DXRCaustics | c8006bd499c9a050b38a01d0715c0bdbfbfae3d4 | [
"MIT"
] | null | null | null | //
// Copyright (c) Microsoft. All rights reserved.
// This code is licensed under the MIT License (MIT).
// THIS CODE IS PROVIDED *AS IS* WITHOUT WARRANTY OF
// ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING ANY
// IMPLIED WARRANTIES OF FITNESS FOR A PARTICULAR
// PURPOSE, MERCHANTABILITY, OR NON-INFRINGEMENT.
... | 41.323718 | 109 | 0.823625 | Old-Fritz |
1594f383a79d4c36e908d48234747be0b8952001 | 4,150 | hpp | C++ | inugami/profiler.hpp | dbralir/ludum-dare-26 | 4fabf578ae73839cdf2d10c733138d4d6f8c6606 | [
"Unlicense",
"MIT"
] | null | null | null | inugami/profiler.hpp | dbralir/ludum-dare-26 | 4fabf578ae73839cdf2d10c733138d4d6f8c6606 | [
"Unlicense",
"MIT"
] | null | null | null | inugami/profiler.hpp | dbralir/ludum-dare-26 | 4fabf578ae73839cdf2d10c733138d4d6f8c6606 | [
"Unlicense",
"MIT"
] | null | null | null | /*******************************************************************************
* Inugami - An OpenGL framwork designed for rapid game development
* Version: 0.2.0
* https://github.com/DBRalir/Inugami
*
* Copyright (c) 2012 Jeramy Harrison <dbralir@gmail.com>
*
* This software is provided 'as-is', without any e... | 26.433121 | 80 | 0.617108 | dbralir |
15968dd07950578e2baafdabbfb907fe86a810bb | 10,119 | cpp | C++ | src/deva.cpp | jcd-as/deva | 54e988684d74bfae22870466ae6b6adc87f9c567 | [
"MIT"
] | null | null | null | src/deva.cpp | jcd-as/deva | 54e988684d74bfae22870466ae6b6adc87f9c567 | [
"MIT"
] | null | null | null | src/deva.cpp | jcd-as/deva | 54e988684d74bfae22870466ae6b6adc87f9c567 | [
"MIT"
] | null | null | null | // Copyright (c) 2010 Joshua C. Shepard
//
// Permission is hereby granted, free of charge, to any person
// obtaining a copy of this software and associated documentation
// files (the "Software"), to deal in the Software without
// restriction, including without limitation the rights to use,
// copy, modify, merge, ... | 24.092857 | 127 | 0.622097 | jcd-as |
159a12e735acde86273f5b466aeb158850289eaa | 406 | hpp | C++ | include/limitless/core/context_thread_pool.hpp | Tehsapper/graphics-engine | 5b7cd93c750ccce7b254c6bb4a13948b2b4ec975 | [
"MIT"
] | 9 | 2020-07-23T13:00:12.000Z | 2021-01-07T10:44:24.000Z | include/limitless/core/context_thread_pool.hpp | Tehsapper/graphics-engine | 5b7cd93c750ccce7b254c6bb4a13948b2b4ec975 | [
"MIT"
] | 7 | 2020-09-11T18:23:45.000Z | 2020-11-01T19:05:47.000Z | include/limitless/core/context_thread_pool.hpp | Tehsapper/graphics-engine | 5b7cd93c750ccce7b254c6bb4a13948b2b4ec975 | [
"MIT"
] | 3 | 2020-08-24T01:59:48.000Z | 2021-02-18T16:41:27.000Z | #pragma once
#include <limitless/util/thread_pool.hpp>
#include <limitless/core/context.hpp>
namespace Limitless {
class ContextThreadPool : public ThreadPool {
private:
std::vector<Context> context_workers;
public:
explicit ContextThreadPool(Context& shared, uint32_t pool_size = std::thre... | 29 | 110 | 0.714286 | Tehsapper |
159a49a8ef43db1c3c038f0210f5e5093a91cf3d | 522 | cpp | C++ | cpp/src/exercise/e0200/e0168.cpp | ajz34/LeetCodeLearn | 70ff8a3c17199a100819b356735cd9b13ff166a7 | [
"MIT"
] | null | null | null | cpp/src/exercise/e0200/e0168.cpp | ajz34/LeetCodeLearn | 70ff8a3c17199a100819b356735cd9b13ff166a7 | [
"MIT"
] | null | null | null | cpp/src/exercise/e0200/e0168.cpp | ajz34/LeetCodeLearn | 70ff8a3c17199a100819b356735cd9b13ff166a7 | [
"MIT"
] | null | null | null | // https://leetcode-cn.com/problems/excel-sheet-column-title/
#include "extern.h"
class S0168 {
public:
string convertToTitle(int n) {
string result;
while (n != 0) {
result += 'A' + ((n - 1) % 26);
n = (n - 1) / 26;
}
reverse(result.begin(), result.end());
... | 22.695652 | 61 | 0.544061 | ajz34 |
159b43c650b62b2678d78d6a6544ea0523594b33 | 587 | cpp | C++ | mission_editor/main.cpp | apemax/open-horizon | c9701767674c6361925e0aed434553c0ee837771 | [
"MIT"
] | 156 | 2015-01-04T00:48:00.000Z | 2021-12-08T18:03:18.000Z | mission_editor/main.cpp | apemax/open-horizon | c9701767674c6361925e0aed434553c0ee837771 | [
"MIT"
] | 8 | 2015-04-29T10:48:09.000Z | 2022-03-01T13:32:00.000Z | mission_editor/main.cpp | apemax/open-horizon | c9701767674c6361925e0aed434553c0ee837771 | [
"MIT"
] | 20 | 2015-04-05T21:36:02.000Z | 2022-02-18T19:17:05.000Z | //
// open horizon -- undefined_darkness@outlook.com
//
#include "main_window.h"
#include <QApplication>
#include <QStyleFactory>
#include "util/resources.h"
//------------------------------------------------------------
int main(int argc, char *argv[])
{
QApplication a(argc, argv);
a.setStyle(QStyleFactory:... | 20.964286 | 62 | 0.511073 | apemax |
15a43d4d90e8a8aacd26081b2bde8a94f56c50ca | 822 | cpp | C++ | src/example_ntuple.cpp | Allen319/TnPtuple | 16b389ad6fb6652ae5e8d5321137b015e7e6c5cc | [
"MIT"
] | 5 | 2015-07-03T12:16:09.000Z | 2019-09-20T15:53:42.000Z | src/example_ntuple.cpp | Allen319/TnPtuple | 16b389ad6fb6652ae5e8d5321137b015e7e6c5cc | [
"MIT"
] | null | null | null | src/example_ntuple.cpp | Allen319/TnPtuple | 16b389ad6fb6652ae5e8d5321137b015e7e6c5cc | [
"MIT"
] | 3 | 2020-03-22T13:36:34.000Z | 2021-03-01T15:13:10.000Z | #include <iostream>
#include <vector>
#include <TROOT.h>
#include <TH1F.h>
#include <TH1I.h>
#include <TCanvas.h>
#include "Ntuple.h"
int main(int argc, const char *argv[]) {
gROOT->SetBatch(kTRUE);
Ntuple n("DataTree");
n.add("data.root");
ULong64_t entries = n.GetEntries();
std::cout << "Entries: " << e... | 22.833333 | 65 | 0.636253 | Allen319 |
15a55aa729bcec2db0974d7214718e4be41d4700 | 2,198 | cpp | C++ | Source/NativeWindow/Windows/WinNativeDpiAwareness.cpp | cameled/GacUI | 939856c1045067dc7b78eb80cdb7174ae5c76799 | [
"RSA-MD"
] | 2,342 | 2015-04-01T22:12:53.000Z | 2022-03-31T07:00:33.000Z | Source/NativeWindow/Windows/WinNativeDpiAwareness.cpp | cameled/GacUI | 939856c1045067dc7b78eb80cdb7174ae5c76799 | [
"RSA-MD"
] | 68 | 2015-04-04T15:42:06.000Z | 2022-03-29T04:33:51.000Z | Source/NativeWindow/Windows/WinNativeDpiAwareness.cpp | cameled/GacUI | 939856c1045067dc7b78eb80cdb7174ae5c76799 | [
"RSA-MD"
] | 428 | 2015-04-02T00:25:48.000Z | 2022-03-25T16:37:56.000Z | #include "WinNativeDpiAwareness.h"
#pragma comment(lib, "Shcore.lib")
namespace vl
{
namespace presentation
{
namespace windows
{
#define USE_API(NAME, API) static auto proc_##API = (decltype(&API))(GetProcAddress(GetModuleHandle(L#NAME), #API))
void InitDpiAwareness(bool dpiAware)
{
USE_API(user32, ... | 22.20202 | 143 | 0.672884 | cameled |
15aa2dbd8c2f9a738daad8dd5d1a6ffaff8c1bae | 12,887 | cpp | C++ | _Side/KIAnalyzer/HOSCs/SingleHOSC.cpp | lasotek/PDDwithHOSC | 442bb32091c006dcdba3f7afdeb66a8bcf30eebc | [
"MIT"
] | 1 | 2021-02-01T18:38:50.000Z | 2021-02-01T18:38:50.000Z | _Side/KIAnalyzer/HOSCs/SingleHOSC.cpp | lasotek/PDDwithHOSC | 442bb32091c006dcdba3f7afdeb66a8bcf30eebc | [
"MIT"
] | null | null | null | _Side/KIAnalyzer/HOSCs/SingleHOSC.cpp | lasotek/PDDwithHOSC | 442bb32091c006dcdba3f7afdeb66a8bcf30eebc | [
"MIT"
] | null | null | null | /**
* @file SingleHOSC.cpp
* @author Sławomir Lasota (lasotek@gmail.com)
* @brief
* @version 0.1
* @date 2021-02-05
*
* @copyright Copyright (c) 2021
*
*/
#include "helpers/helpers.h"
#include "SingleHOSC.h"
#include "../Hash/hash_combine.h"
#include <memory>
#include <optional>
#include <cassert>
#include... | 30.830144 | 139 | 0.478467 | lasotek |
15aee5db2120a9d9297f6f68a2f748cda34b666d | 1,305 | cpp | C++ | Vector2.cpp | TMoCo/Thomath | 23c99efe07c37b1e8b2ba7dbbafd13acd762f76c | [
"MIT"
] | 1 | 2022-01-07T15:27:44.000Z | 2022-01-07T15:27:44.000Z | Vector2.cpp | TMoCo/thomath | 23c99efe07c37b1e8b2ba7dbbafd13acd762f76c | [
"MIT"
] | null | null | null | Vector2.cpp | TMoCo/thomath | 23c99efe07c37b1e8b2ba7dbbafd13acd762f76c | [
"MIT"
] | null | null | null | /*
* AUTHOR: THOMAS MOENO COOPER
* LAST MODIFIED: 13/12/2021
* COPYRIGHT UNDER THE MIT LICENSE
*/
//
// Vector2 class definition
//
#include "Vector2.h"
#include <cstring>
Vector2& Vector2::operator =(const Vector2& other)
{
std::memcpy(this->_v, other._v, SIZE_OF_VEC2); // 2 * sizeof(float) = 8
return *this;
}... | 18.125 | 73 | 0.642146 | TMoCo |
15b6742f6b5b58d2ef230c0805c17281c822c5ef | 8,442 | cpp | C++ | cpp/lazperf/detail/field_rgb14.cpp | gdt/laz-perf | 916901f3583bd858e0e2e0cf4e628f27e78ea5e9 | [
"Apache-2.0"
] | null | null | null | cpp/lazperf/detail/field_rgb14.cpp | gdt/laz-perf | 916901f3583bd858e0e2e0cf4e628f27e78ea5e9 | [
"Apache-2.0"
] | null | null | null | cpp/lazperf/detail/field_rgb14.cpp | gdt/laz-perf | 916901f3583bd858e0e2e0cf4e628f27e78ea5e9 | [
"Apache-2.0"
] | null | null | null | /*
===============================================================================
FILE: field_rgb14.cpp
CONTENTS:
PROGRAMMERS:
martin.isenburg@rapidlasso.com - http://rapidlasso.com
uday.karan@gmail.com - Hobu, Inc.
COPYRIGHT:
(c) 2007-2014, martin isenburg, rapidlasso - tools t... | 28.424242 | 90 | 0.544065 | gdt |
15b7912f51f40eaf0b468f1120a6a06eb5a83ef9 | 1,151 | cpp | C++ | src/plugin_test_main.cpp | zaoqi-clone/linuxdeploy-1 | c45cd46319db705d8337286a109ad7c03c29705f | [
"MIT"
] | 298 | 2018-07-25T00:04:10.000Z | 2022-03-31T15:26:28.000Z | src/plugin_test_main.cpp | zaoqi-clone/linuxdeploy-1 | c45cd46319db705d8337286a109ad7c03c29705f | [
"MIT"
] | 183 | 2018-07-18T19:35:07.000Z | 2022-03-31T13:38:50.000Z | src/plugin_test_main.cpp | zaoqi-clone/linuxdeploy-1 | c45cd46319db705d8337286a109ad7c03c29705f | [
"MIT"
] | 45 | 2018-08-19T14:01:12.000Z | 2022-03-17T06:35:20.000Z | #include <iostream>
#include <boost/filesystem.hpp>
#include <linuxdeploy/plugin/plugin.h>
namespace bf = boost::filesystem;
int main(const int argc, const char* const* const argv) {
auto plugins = linuxdeploy::plugin::findPlugins();
if (argc > 1) {
for (int i = 1; i < argc; i++) {
const ... | 32.885714 | 126 | 0.573414 | zaoqi-clone |
15b79a2bdd84786c325f84aee10a7689d431f66e | 3,592 | cpp | C++ | oopAsgn5/prob4.cpp | debargham14/Object-Oriented-Programming-Assignment | 25d7c87803e957c16188cac563eb238654c5a87b | [
"MIT"
] | null | null | null | oopAsgn5/prob4.cpp | debargham14/Object-Oriented-Programming-Assignment | 25d7c87803e957c16188cac563eb238654c5a87b | [
"MIT"
] | null | null | null | oopAsgn5/prob4.cpp | debargham14/Object-Oriented-Programming-Assignment | 25d7c87803e957c16188cac563eb238654c5a87b | [
"MIT"
] | null | null | null | #include<iostream>
using namespace std;
//designing the class CRIKETER
class CRIKETER{
protected:
char name[31];
char dateOfbirth[31];
int matchesPlayed;
public:
void getData() { //defining the method getData to take the details
cout << "Enter the name :- ";
scanf(" %[^\n]s", name);
... | 31.508772 | 99 | 0.605791 | debargham14 |
15bb5160141c890e0915dcacf6708ea0c4938e6d | 2,002 | cpp | C++ | Tests/DataOpTest/operation/tensor/test_reshape.cpp | Andijenny/MetaNN | 2dcd25471574ee06958154b2319f78a65dbe0791 | [
"BSL-1.0"
] | 87 | 2018-11-30T09:43:05.000Z | 2022-03-28T12:03:02.000Z | Tests/DataOpTest/operation/tensor/test_reshape.cpp | Andijenny/MetaNN | 2dcd25471574ee06958154b2319f78a65dbe0791 | [
"BSL-1.0"
] | 4 | 2020-07-27T15:16:01.000Z | 2022-01-31T02:47:00.000Z | Tests/DataOpTest/operation/tensor/test_reshape.cpp | Andijenny/MetaNN | 2dcd25471574ee06958154b2319f78a65dbe0791 | [
"BSL-1.0"
] | 37 | 2019-01-21T13:00:53.000Z | 2022-03-28T12:03:05.000Z | #include <data_gen.h>
#include <MetaNN/meta_nn.h>
#include <calculate_tags.h>
#include <cmath>
#include <iostream>
using namespace std;
using namespace MetaNN;
namespace
{
void test_reshape_case1()
{
cout << "Test reshape case 1 (scalar) ...\t";
auto ori = GenTensor<CheckElement>(0, 1, 1);
... | 27.424658 | 53 | 0.535465 | Andijenny |
15bbd55352ed245067bce7f522dad169c9f45775 | 9,460 | cpp | C++ | cls/src/v20201016/model/AlarmNotice.cpp | suluner/tencentcloud-sdk-cpp | a56c73cc3f488c4d1e10755704107bb15c5e000d | [
"Apache-2.0"
] | 43 | 2019-08-14T08:14:12.000Z | 2022-03-30T12:35:09.000Z | cls/src/v20201016/model/AlarmNotice.cpp | suluner/tencentcloud-sdk-cpp | a56c73cc3f488c4d1e10755704107bb15c5e000d | [
"Apache-2.0"
] | 12 | 2019-07-15T10:44:59.000Z | 2021-11-02T12:35:00.000Z | cls/src/v20201016/model/AlarmNotice.cpp | suluner/tencentcloud-sdk-cpp | a56c73cc3f488c4d1e10755704107bb15c5e000d | [
"Apache-2.0"
] | 28 | 2019-07-12T09:06:22.000Z | 2022-03-30T08:04:18.000Z | /*
* Copyright (c) 2017-2019 THL A29 Limited, a Tencent company. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
... | 29.470405 | 143 | 0.664165 | suluner |
15bd4d289b00dc0c5cdcb97eff3642eb87f1ab2a | 483 | hpp | C++ | cfuncs/includes/HighResTimer_class.hpp | JeppeDruedahl/LearningPerm | 439a4dc38f50a6632c5ee1ad790b7bdb99c0d679 | [
"MIT"
] | 1 | 2021-09-22T10:00:39.000Z | 2021-09-22T10:00:39.000Z | model/cfuncs/includes/HighResTimer_class.hpp | JeppeDruedahl/LongRunSavingDynamics | 438feb80a792f0a6ea81fbe30c2241558e1fa5e1 | [
"MIT"
] | null | null | null | model/cfuncs/includes/HighResTimer_class.hpp | JeppeDruedahl/LongRunSavingDynamics | 438feb80a792f0a6ea81fbe30c2241558e1fa5e1 | [
"MIT"
] | 1 | 2020-04-29T08:53:07.000Z | 2020-04-29T08:53:07.000Z | #include "windows.h"
class HighResTimer
{
LARGE_INTEGER start;
LARGE_INTEGER stop;
double frequency;
public:
HighResTimer()
{
LARGE_INTEGER freq;
QueryPerformanceFrequency(&freq);
frequency = (double)freq.QuadPart;
}
void StartTimer()
{
QueryPerformanc... | 17.25 | 60 | 0.614907 | JeppeDruedahl |
15c247e9cd373a8978a42362ddc956292e8028a9 | 10,708 | cc | C++ | src/tiny_http/http_model_cache.cc | swaroop0707/TinyWeb | 79d20f2bb858581cc5a0ea229bba3a54e5d1bd3e | [
"MIT"
] | 352 | 2018-02-07T08:24:43.000Z | 2022-03-31T12:35:17.000Z | src/tiny_http/http_model_cache.cc | zhouq3405/TinyWeb | 79d20f2bb858581cc5a0ea229bba3a54e5d1bd3e | [
"MIT"
] | 6 | 2018-02-08T11:52:12.000Z | 2022-01-20T03:37:41.000Z | src/tiny_http/http_model_cache.cc | zhouq3405/TinyWeb | 79d20f2bb858581cc5a0ea229bba3a54e5d1bd3e | [
"MIT"
] | 75 | 2018-02-07T08:24:42.000Z | 2021-10-03T08:20:24.000Z | /*
*Author:GeneralSandman
*Code:https://github.com/GeneralSandman/TinyWeb
*E-mail:generalsandman@163.com
*Web:www.dissigil.cn
*/
/*---XXX---
*
****************************************
*
*/
#include <tiny_base/api.h>
#include <tiny_base/log.h>
#include <tiny_base/md5.h>
#include <tiny_http/http_model_cache.h>... | 23.690265 | 112 | 0.587505 | swaroop0707 |
15c919ff12f7ea2f329a1c920126746c8c33bc19 | 56,356 | cpp | C++ | MATLAB/simulink/src/Ge_cassie_v4.cpp | noelc-s/cassie_description | 0a8afd785507d830761de5f72798dfb8bb799c63 | [
"MIT"
] | 3 | 2021-04-21T06:36:52.000Z | 2021-11-18T13:19:37.000Z | MATLAB/simulink/src/Ge_cassie_v4.cpp | noelc-s/cassie_description | 0a8afd785507d830761de5f72798dfb8bb799c63 | [
"MIT"
] | null | null | null | MATLAB/simulink/src/Ge_cassie_v4.cpp | noelc-s/cassie_description | 0a8afd785507d830761de5f72798dfb8bb799c63 | [
"MIT"
] | 2 | 2021-08-04T21:22:52.000Z | 2021-09-21T08:24:00.000Z | /*
* Automatically Generated from Mathematica.
* Wed 21 Aug 2019 14:41:50 GMT-07:00
*/
#include <stdexcept>
#include <cmath>
#include<math.h>
/**
* Copied from Wolfram Mathematica C Definitions file mdefs.hpp
* Changed marcos to inline functions (Eric Cousineau)
*/
inline double Power(double x, double y) { retur... | 28.826598 | 2,456 | 0.643481 | noelc-s |
15ce1974ad297347ff83f7137dcd90658e9c61b7 | 257 | cpp | C++ | Samples/Jumper/Main.cpp | zaphire/Monocle-Engine | a4558b5436681ab0ec95aec388cbb791b26f0b81 | [
"Unlicense"
] | 72 | 2015-02-09T06:24:57.000Z | 2022-02-05T20:02:49.000Z | Samples/Jumper/Main.cpp | zaphire/Monocle-Engine | a4558b5436681ab0ec95aec388cbb791b26f0b81 | [
"Unlicense"
] | null | null | null | Samples/Jumper/Main.cpp | zaphire/Monocle-Engine | a4558b5436681ab0ec95aec388cbb791b26f0b81 | [
"Unlicense"
] | 14 | 2015-02-14T05:04:17.000Z | 2022-03-09T19:55:33.000Z | #include "Monocle.h"
#include "Jumper.h"
using namespace Monocle;
int main(void)
{
Game *game = new Game();
Assets::SetContentPath(Assets::GetContentPath()+"/Jumper/");
game->SetScene(new Jumper::GameScene());
game->Main();
delete game;
return 0;
}
| 17.133333 | 61 | 0.688716 | zaphire |
15d77f988768bf240c467f9085c9dadf6d953d0c | 678 | hpp | C++ | src/vpg/gl/shader.hpp | RiscadoA/voxel-platformer | 4e7aadad978c333a59f452a8ee9f4612ee128614 | [
"MIT"
] | 3 | 2021-03-01T16:00:04.000Z | 2022-01-07T03:45:32.000Z | src/vpg/gl/shader.hpp | RiscadoA/voxel-platformer | 4e7aadad978c333a59f452a8ee9f4612ee128614 | [
"MIT"
] | null | null | null | src/vpg/gl/shader.hpp | RiscadoA/voxel-platformer | 4e7aadad978c333a59f452a8ee9f4612ee128614 | [
"MIT"
] | 2 | 2021-03-27T03:54:24.000Z | 2021-06-22T13:53:07.000Z | #pragma once
#include <string>
namespace vpg::gl {
class Shader final {
public:
static bool create(Shader& shader, const char* vs, const char* fs);
inline Shader() : program(0), vs(0), fs(0) {}
Shader(Shader&& rhs);
Shader& operator=(Shader&& rhs);
~Shader();
... | 27.12 | 79 | 0.610619 | RiscadoA |
15dbb0478419420fa67f2cda4aa11f7cb0273352 | 1,282 | cpp | C++ | src/account/address.cpp | iotexproject/arduino-sdk | b7f7d0337da17a6da839fe34ef614a6b034bdcd6 | [
"Apache-2.0"
] | 2 | 2021-12-13T08:04:53.000Z | 2021-12-20T06:12:02.000Z | src/account/address.cpp | iotexproject/arduino-sdk | b7f7d0337da17a6da839fe34ef614a6b034bdcd6 | [
"Apache-2.0"
] | 4 | 2021-12-06T09:37:42.000Z | 2022-03-09T14:09:35.000Z | src/account/address.cpp | iotexproject/arduino-sdk | b7f7d0337da17a6da839fe34ef614a6b034bdcd6 | [
"Apache-2.0"
] | 2 | 2021-12-14T20:52:02.000Z | 2022-03-27T03:45:58.000Z | #include "account/address.h"
#include "string.h"
#include <vector>
#include <string>
#include "signer/signer.h"
#include "encoder/encoder.h"
using namespace iotex;
iotex::Address::Address(const char* address, AddressFormat format)
{
memset(_io, 0, sizeof(_io));
memset(_eth, 0, sizeof(_eth));
memset(_byte... | 20.03125 | 72 | 0.625585 | iotexproject |
15e1aea8b49e54bdfff276f444bea20ed51689c6 | 795 | cpp | C++ | src/sql_parser/parse_errors.cpp | abhijat/matchboxdb | 77c055690054deb96dffc29499ad99928370ae99 | [
"BSD-2-Clause"
] | 9 | 2021-11-09T13:55:41.000Z | 2022-03-04T05:22:15.000Z | src/sql_parser/parse_errors.cpp | abhijat/matchboxdb | 77c055690054deb96dffc29499ad99928370ae99 | [
"BSD-2-Clause"
] | null | null | null | src/sql_parser/parse_errors.cpp | abhijat/matchboxdb | 77c055690054deb96dffc29499ad99928370ae99 | [
"BSD-2-Clause"
] | null | null | null | #include <sstream>
#include "parse_errors.h"
const char *parser::UnexpectedToken::what() const noexcept {
return _what.c_str();
}
parser::UnexpectedToken::UnexpectedToken(
const std::string &arg,
token::Kind expected,
token::Kind actual
) : invalid_argument(arg), _expected(expected),
_actual(actu... | 27.413793 | 99 | 0.703145 | abhijat |
15e7c0db7038ff30b4bba240a74788685a4534f6 | 10,787 | hpp | C++ | pe.ui.colorselector.hpp | FSMargoo/PhotoEditor | 5fdefd31c3a972003cc3d84a482dcb9c719acab8 | [
"MIT"
] | null | null | null | pe.ui.colorselector.hpp | FSMargoo/PhotoEditor | 5fdefd31c3a972003cc3d84a482dcb9c719acab8 | [
"MIT"
] | null | null | null | pe.ui.colorselector.hpp | FSMargoo/PhotoEditor | 5fdefd31c3a972003cc3d84a482dcb9c719acab8 | [
"MIT"
] | null | null | null | #pragma once
#include "pe.ui.radiuslabel.hpp"
#include "pe.ui.imagelabel.hpp"
namespace PDotE
{
namespace UI
{
namespace ColorSelectorPrivate
{
IMAGE* _ColorSelector_Lambda_Select_Map = nullptr;
}
class ColorSelectorTransparentButton : public Object
{
private:
IMAGE background_im... | 21.068359 | 133 | 0.540465 | FSMargoo |
15e80d88657ec8dcce9dea1948342b4acd920645 | 6,084 | hpp | C++ | test/GeorefPCLviewerTest.hpp | CBcidco/MBES-lib | 6b7759554db48c62d6b350d315283eb3fe0fd009 | [
"MIT"
] | 13 | 2019-10-29T14:16:13.000Z | 2022-02-24T06:44:37.000Z | test/GeorefPCLviewerTest.hpp | CBcidco/MBES-lib | 6b7759554db48c62d6b350d315283eb3fe0fd009 | [
"MIT"
] | 62 | 2019-04-16T13:53:50.000Z | 2022-03-07T19:44:23.000Z | test/GeorefPCLviewerTest.hpp | CBcidco/MBES-lib | 6b7759554db48c62d6b350d315283eb3fe0fd009 | [
"MIT"
] | 18 | 2019-04-10T19:51:21.000Z | 2022-01-31T21:42:22.000Z | /*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
/*
* File: GeorefPCLviewerTest.hpp
* Author: emile
*
* Created on May 9, 2019, 3:30 PM
*/
#include <Eigen/Dense>
#include <Eig... | 32.190476 | 132 | 0.686062 | CBcidco |
15ec90432aa1cb251d3a6bf2fb6793d18dc224bc | 11,009 | cpp | C++ | emitter/x86/x86call.cpp | DomHenderson/opt-genm | ba7134fbf08f86d1205e2099f0f76b99cadd6d33 | [
"MIT"
] | null | null | null | emitter/x86/x86call.cpp | DomHenderson/opt-genm | ba7134fbf08f86d1205e2099f0f76b99cadd6d33 | [
"MIT"
] | null | null | null | emitter/x86/x86call.cpp | DomHenderson/opt-genm | ba7134fbf08f86d1205e2099f0f76b99cadd6d33 | [
"MIT"
] | null | null | null | // This file if part of the genm-opt project.
// Licensing information can be found in the LICENSE file.
// (C) 2018 Nandor Licker. All rights reserved.
#include <optional>
#include <llvm/Target/X86/X86ISelLowering.h>
#include <llvm/Target/X86/X86InstrInfo.h>
#include "core/block.h"
#include "core/func.h"
#include "... | 30.495845 | 80 | 0.500863 | DomHenderson |
15f1586150ff1df2008599c00965da5cb7d6cb6c | 1,138 | cpp | C++ | net.ssa/Dima/bge.root/bge/bge/fpu.cpp | ixray-team/xray-vss-archive | b245c8601dcefb505b4b51f58142da6769d4dc92 | [
"Linux-OpenIB"
] | 1 | 2022-03-26T17:00:19.000Z | 2022-03-26T17:00:19.000Z | Dima/bge.root/bge/bge/fpu.cpp | ixray-team/xray-vss-archive | b245c8601dcefb505b4b51f58142da6769d4dc92 | [
"Linux-OpenIB"
] | null | null | null | Dima/bge.root/bge/bge/fpu.cpp | ixray-team/xray-vss-archive | b245c8601dcefb505b4b51f58142da6769d4dc92 | [
"Linux-OpenIB"
] | 1 | 2022-03-26T17:00:21.000Z | 2022-03-26T17:00:21.000Z | ////////////////////////////////////////////////////////////////////////////
// Module : fpu.cpp
// Created : 01.10.2004
// Modified : 01.10.2004
// Author : Dmitriy Iassenev
// Description : FPU namespace
////////////////////////////////////////////////////////////////////////////
#include "stdafx.h"
#... | 22.76 | 77 | 0.51406 | ixray-team |
c60110604ada34c2dbd2cb9b1c73936de6db1cae | 1,480 | cpp | C++ | Fusion/src/Fusion/Audio/OpenAL.cpp | WhoseTheNerd/Fusion | 35ab536388392b3ba2e14f288eecbc292abd7dea | [
"Apache-2.0"
] | 4 | 2018-11-12T18:43:02.000Z | 2020-02-02T10:18:56.000Z | Fusion/src/Fusion/Audio/OpenAL.cpp | WhoseTheNerd/Fusion | 35ab536388392b3ba2e14f288eecbc292abd7dea | [
"Apache-2.0"
] | 2 | 2018-12-22T13:18:05.000Z | 2019-07-24T20:15:45.000Z | Fusion/src/Fusion/Audio/OpenAL.cpp | WhoseTheNerd/Fusion | 35ab536388392b3ba2e14f288eecbc292abd7dea | [
"Apache-2.0"
] | null | null | null | #include "fpch.h"
#include "OpenAL.hpp"
#include <al.h>
#include <alc.h>
#include <cstdlib>
namespace Fusion { namespace Audio {
static void default_callback(const char* message) {}
error_cb_t error_callback = default_callback;
static std::vector<std::string_view> split(std::string_view str, char token) {
st... | 22.424242 | 80 | 0.691892 | WhoseTheNerd |
c603c738a7738a181c849cf46b8ee7eea565cec6 | 435 | cpp | C++ | src/scbinaryfunction.cpp | BryanMorfe/SciCalc | 1602c159c48013beb8dee09ff648923f37c69e09 | [
"Apache-2.0"
] | 1 | 2020-12-13T16:56:32.000Z | 2020-12-13T16:56:32.000Z | src/scbinaryfunction.cpp | BryanMorfe/SciCalc | 1602c159c48013beb8dee09ff648923f37c69e09 | [
"Apache-2.0"
] | null | null | null | src/scbinaryfunction.cpp | BryanMorfe/SciCalc | 1602c159c48013beb8dee09ff648923f37c69e09 | [
"Apache-2.0"
] | null | null | null | #include "include/scbinaryfunction.h"
SCBinaryFunction::SCBinaryFunction(const QString &tk, const SCTokenTypes::TokenType &tt, const QString &rep, std::function<double(double, double)> &&eval):
SCTokenRepresentable (tk, tt, rep),
evaluate(eval)
{}
SCBinaryFunction::SCBinaryFunction(const SCBinaryFunction &oth... | 36.25 | 155 | 0.767816 | BryanMorfe |
c60400161feea92b6a29985d619d95ce7bb683a2 | 217 | cpp | C++ | examples/example_null/unity_build.cpp | samkusin/imgui | 061650bd2ae21bfb085628fde781fe11df528b59 | [
"MIT"
] | 8 | 2018-07-03T08:34:24.000Z | 2020-10-27T13:59:40.000Z | examples/example_null/unity_build.cpp | samkusin/imgui | 061650bd2ae21bfb085628fde781fe11df528b59 | [
"MIT"
] | 2 | 2018-07-13T20:40:20.000Z | 2018-07-17T11:21:13.000Z | examples/example_null/unity_build.cpp | samkusin/imgui | 061650bd2ae21bfb085628fde781fe11df528b59 | [
"MIT"
] | 5 | 2019-02-20T21:41:15.000Z | 2019-08-29T20:59:32.000Z | // Unity build test - build this example as a single compilation unit.
#include "main.cpp"
#include "../../imgui.cpp"
#include "../../imgui_demo.cpp"
#include "../../imgui_draw.cpp"
#include "../../imgui_widgets.cpp"
| 31 | 70 | 0.672811 | samkusin |
c60447d2fa5a2677cdf343b213060ce4b618591d | 14,249 | cpp | C++ | plugins/datatools/src/ParticleColorSignedDistance.cpp | masrice/megamol | d48fc4889f500528609053a5445202a9c0f6e5fb | [
"BSD-3-Clause"
] | 49 | 2017-08-23T13:24:24.000Z | 2022-03-16T09:10:58.000Z | plugins/datatools/src/ParticleColorSignedDistance.cpp | masrice/megamol | d48fc4889f500528609053a5445202a9c0f6e5fb | [
"BSD-3-Clause"
] | 200 | 2018-07-20T15:18:26.000Z | 2022-03-31T11:01:44.000Z | plugins/datatools/src/ParticleColorSignedDistance.cpp | masrice/megamol | d48fc4889f500528609053a5445202a9c0f6e5fb | [
"BSD-3-Clause"
] | 31 | 2017-07-31T16:19:29.000Z | 2022-02-14T23:41:03.000Z | /*
* ParticleColorSignedDistance.h
*
* Copyright (C) 2015 by S. Grottel
* Alle Rechte vorbehalten.
*/
#include "ParticleColorSignedDistance.h"
#include "mmcore/param/BoolParam.h"
#include "stdafx.h"
#include <algorithm>
#include <cassert>
#include <cfloat>
#include <cstdint>
#include <nanoflann.hpp>
using namespa... | 37.997333 | 126 | 0.598147 | masrice |
c609df4752fde382aa231a0fba07f8a5c8438b29 | 1,152 | cpp | C++ | modules/futures_redis/examples/subscriber.cpp | chyh1990/futures_cpp | 8e60e74af0cffff0a9749682a4caf1768277c04b | [
"MIT"
] | 71 | 2017-12-18T10:35:41.000Z | 2021-12-11T19:57:34.000Z | modules/futures_redis/examples/subscriber.cpp | chyh1990/futures_cpp | 8e60e74af0cffff0a9749682a4caf1768277c04b | [
"MIT"
] | 1 | 2017-12-19T09:31:46.000Z | 2017-12-20T07:08:01.000Z | modules/futures_redis/examples/subscriber.cpp | chyh1990/futures_cpp | 8e60e74af0cffff0a9749682a4caf1768277c04b | [
"MIT"
] | 7 | 2017-12-20T01:55:44.000Z | 2019-12-06T12:25:55.000Z | #include <iostream>
#include <futures_redis/RedisFuture.h>
#include <futures/io/Signal.h>
#include <futures/Timer.h>
using namespace futures;
int main(int argc, char *argv[]) {
EventExecutor loop(true);
auto redis = std::make_shared<redis_io::AsyncContext>(&loop, "127.0.0.1", 6379);
#if 0
auto pull = tim... | 25.6 | 91 | 0.616319 | chyh1990 |
c60c36a9454367dfe7842ba4f598380be1e3b578 | 2,328 | cpp | C++ | code/math/mod-int/main.cpp | tonowak/acmlib | ec295b8c76c588914475ad42cff81a64a6f2ebd5 | [
"MIT"
] | 6 | 2019-06-25T14:07:08.000Z | 2022-01-04T12:28:55.000Z | code/math/mod-int/main.cpp | tonowak/acmlib | ec295b8c76c588914475ad42cff81a64a6f2ebd5 | [
"MIT"
] | null | null | null | code/math/mod-int/main.cpp | tonowak/acmlib | ec295b8c76c588914475ad42cff81a64a6f2ebd5 | [
"MIT"
] | 1 | 2021-11-12T01:40:38.000Z | 2021-11-12T01:40:38.000Z | /*
* Opis: Struktura do działań modulo
* Czas: O(1), dzielenie O(\log mod)
* Użycie: Ustaw modulo w ostatniej linii. Jeśli modulo nie jest const, usuń pierwszy wiersz i zadeklaruj mod
*/
template<int mod>
struct modular {
int val;
modular() { val = 0; }
modular(const LL& v) {
val = int((-mod <= v && v <= mod)... | 26.454545 | 109 | 0.59622 | tonowak |
c60ca1e3c3700b5badcf60ab75007cb5fb480947 | 830 | hpp | C++ | include/nowide/config.hpp | egorodet/Nowide | f0c7d64bef8285b3a6d41cba8224b4ff32cf3b15 | [
"BSL-1.0"
] | 10 | 2019-01-16T08:38:14.000Z | 2021-09-23T09:27:31.000Z | include/nowide/config.hpp | Nephatrine/nowide-standalone | 05d5311a8c93ca82230e6d635e791f38964736e5 | [
"BSL-1.0"
] | 2 | 2020-03-16T15:29:03.000Z | 2021-08-23T05:38:00.000Z | include/nowide/config.hpp | Nephatrine/nowide-standalone | 05d5311a8c93ca82230e6d635e791f38964736e5 | [
"BSL-1.0"
] | 1 | 2020-03-30T19:41:51.000Z | 2020-03-30T19:41:51.000Z | //
// Copyright (c) 2012 Artyom Beilis (Tonkikh)
//
// Distributed under the Boost Software License, Version 1.0. (See
// accompanying file LICENSE_1_0.txt or copy at
// http://www.boost.org/LICENSE_1_0.txt)
//
#ifndef NOWIDE_CONFIG_H_INCLUDED
#define NOWIDE_CONFIG_H_INCLUDED
#if (defined(__WIN32) || defined(_WIN3... | 21.282051 | 83 | 0.744578 | egorodet |
c6114010ec57b3a8ef125cde14665af7200921ba | 2,772 | cpp | C++ | src/context/box/simple_box/mouse_button.cpp | Damdoshi/LibLapin | 800e0f17ed8f3c47797c48feea4c280bb0e4bdc9 | [
"BSD-3-Clause"
] | 38 | 2016-07-30T09:35:19.000Z | 2022-03-04T10:13:48.000Z | src/context/box/simple_box/mouse_button.cpp | Elania-Marvers/LibLapin | 800e0f17ed8f3c47797c48feea4c280bb0e4bdc9 | [
"BSD-3-Clause"
] | 15 | 2017-02-12T19:20:52.000Z | 2021-06-09T09:30:52.000Z | src/context/box/simple_box/mouse_button.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
//
// Bibliothèque Lapin
#include "lapin_private.h"
t_bunny_response bunny_click_simple_box_dabsic(t_bunny_box_system *sys,
t_bunny_gui_box *box);
t_bunny_response bunny_mbutton_simple_box_transfer(t_bunny_event_state state,
t_bunn... | 28.285714 | 105 | 0.664141 | Damdoshi |
c611cd5f35818ed6cf992a76817c90b6eeaa1083 | 1,272 | cpp | C++ | UserManagementApp/UserManger.cpp | s-arme/UserManagementApp | 2c21143e7194867f532395e96312116befd74d85 | [
"Apache-2.0"
] | null | null | null | UserManagementApp/UserManger.cpp | s-arme/UserManagementApp | 2c21143e7194867f532395e96312116befd74d85 | [
"Apache-2.0"
] | null | null | null | UserManagementApp/UserManger.cpp | s-arme/UserManagementApp | 2c21143e7194867f532395e96312116befd74d85 | [
"Apache-2.0"
] | null | null | null | #include "UserManger.h"
#include<iostream>
#include<list>
using namespace std;
CurrentUser* CurrentUser::instance = 0;
User* CurrentUser::cu = nullptr;
std::list<User> userList({ User("cppadmin","q!Edf@42b"), });
CurrentUser* CurrentUser::getInstance() {
if (instance == 0) {
instance = new CurrentUser();
};
retur... | 20.516129 | 84 | 0.677673 | s-arme |
c611de02934c5a66fe00034506bb357c5c275d80 | 5,243 | cpp | C++ | Stp/Base/System/CpuInfo.cpp | markazmierczak/Polonite | 240f099cafc5c38dc1ae1cc6fc5773e13f65e9de | [
"MIT"
] | 1 | 2019-07-11T12:47:52.000Z | 2019-07-11T12:47:52.000Z | Stp/Base/System/CpuInfo.cpp | Polonite/Polonite | 240f099cafc5c38dc1ae1cc6fc5773e13f65e9de | [
"MIT"
] | null | null | null | Stp/Base/System/CpuInfo.cpp | Polonite/Polonite | 240f099cafc5c38dc1ae1cc6fc5773e13f65e9de | [
"MIT"
] | 1 | 2019-07-11T12:47:53.000Z | 2019-07-11T12:47:53.000Z | // Copyright 2017 Polonite Authors. All rights reserved.
// Distributed under MIT license that can be found in the LICENSE file.
#include "Base/System/CpuInfo.h"
#include "Base/Compiler/Config.h"
#include "Base/Compiler/Os.h"
#include "Base/Debug/Log.h"
#include <limits.h>
#if OS(WIN)
#include <windows.h>
#elif OS(... | 30.132184 | 88 | 0.639901 | markazmierczak |
723ec4abc370ca6bb268083a30e16b27d7cefb9c | 4,282 | hpp | C++ | src/modules/middleLayer/lua/events/LuaEvent.hpp | SoaringLoong/sloongnet | 1a4ef3068ede28363dcd8ac27a6bac11ea9a1077 | [
"MIT"
] | 2 | 2019-06-28T05:47:44.000Z | 2020-12-29T11:32:53.000Z | src/modules/middleLayer/lua/events/LuaEvent.hpp | SoaringLoong/sloongnet | 1a4ef3068ede28363dcd8ac27a6bac11ea9a1077 | [
"MIT"
] | null | null | null | src/modules/middleLayer/lua/events/LuaEvent.hpp | SoaringLoong/sloongnet | 1a4ef3068ede28363dcd8ac27a6bac11ea9a1077 | [
"MIT"
] | 1 | 2021-01-13T03:05:22.000Z | 2021-01-13T03:05:22.000Z | /***
* @Author: Chuanbin Wang - wcb@sloong.com
* @Date: 1970-01-01 08:00:00
* @LastEditTime: 2021-02-26 11:25:54
* @LastEditors: Chuanbin Wang
* @FilePath: /engine/src/modules/middleLayer/lua/events/LuaEvent.hpp
* @Copyright 2015-2020 Sloong.com. All Rights Reserved
* @Description:
*/
/***
* @................. | 47.054945 | 83 | 0.155068 | SoaringLoong |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.