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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
a7639aa9219011d216e1f621411328d10d3cf144 | 5,922 | cpp | C++ | samples/Events/Events.cpp | amaiorano/Vulkan-Hpp | 3c481ba37409a71d92b6f1e93386b5031921453b | [
"Apache-2.0"
] | 2 | 2018-03-26T10:49:16.000Z | 2019-07-25T12:08:32.000Z | samples/Events/Events.cpp | amaiorano/Vulkan-Hpp | 3c481ba37409a71d92b6f1e93386b5031921453b | [
"Apache-2.0"
] | null | null | null | samples/Events/Events.cpp | amaiorano/Vulkan-Hpp | 3c481ba37409a71d92b6f1e93386b5031921453b | [
"Apache-2.0"
] | 1 | 2020-01-30T07:25:25.000Z | 2020-01-30T07:25:25.000Z | // Copyright(c) 2019, NVIDIA CORPORATION. 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 b... | 35.461078 | 120 | 0.670719 | amaiorano |
a7671f70f4843dc4e7cc6c6e9f7638ecc9ec8d1a | 800 | cpp | C++ | MozJpegGUI/MozJpegGUI/GetLastErrorToString.cpp | nibasya/MozJpegGUI | 26e37f4c0c028800142ebeaa3470f3cc2a228475 | [
"IJG",
"Unlicense"
] | 3 | 2021-06-05T11:43:44.000Z | 2022-03-19T04:03:58.000Z | MozJpegGUI/MozJpegGUI/GetLastErrorToString.cpp | nibasya/MozJpegGUI | 26e37f4c0c028800142ebeaa3470f3cc2a228475 | [
"IJG",
"Unlicense"
] | null | null | null | MozJpegGUI/MozJpegGUI/GetLastErrorToString.cpp | nibasya/MozJpegGUI | 26e37f4c0c028800142ebeaa3470f3cc2a228475 | [
"IJG",
"Unlicense"
] | 2 | 2020-07-20T06:04:45.000Z | 2022-03-19T04:03:57.000Z | #include "pch.h" // enable for visual studio version >= 2019
// #include "stdafx.h" // enable for visual studio version < 2019
#include "GetLastErrorToString.h"
GetLastErrorToString::operator CString()
{
CreateMsg();
return m_msg;
}
GetLastErrorToString::operator LPCTSTR()
{
CreateMsg();
return (LPCTSTR)m_msg;
... | 26.666667 | 188 | 0.73 | nibasya |
a767b58cea305262300f3e21ce74318c33292bc1 | 446 | cpp | C++ | src/qak_plugin.cpp | Larpon/Qak | a91cafddaa77dcdaeaff1bb1e8b8e4436acee67a | [
"MIT"
] | 23 | 2017-01-06T15:31:13.000Z | 2021-11-21T13:58:19.000Z | src/qak_plugin.cpp | Larpon/Qak | a91cafddaa77dcdaeaff1bb1e8b8e4436acee67a | [
"MIT"
] | 3 | 2021-09-08T09:37:48.000Z | 2022-01-19T13:53:20.000Z | src/qak_plugin.cpp | Larpon/Qak | a91cafddaa77dcdaeaff1bb1e8b8e4436acee67a | [
"MIT"
] | 3 | 2018-01-16T23:57:51.000Z | 2019-11-02T07:44:09.000Z | #include "qak_plugin.h"
#include "maskedmousearea.h"
#include "propertytoggle.h"
#include "resource.h"
#include "store.h"
#include <qqml.h>
void QakPlugin::registerTypes(const char *uri)
{
// @uri Qak
qmlRegisterType<MaskedMouseArea>(uri, 1, 0, "MaskedMouseArea");
qmlRegisterType<Resource>(uri, 1, 0, "Res... | 24.777778 | 67 | 0.699552 | Larpon |
a76921d32cde3d80c4a94502831a99a2d2ba5c9b | 9,980 | cpp | C++ | src/xalanc/XercesParserLiaison/Deprecated/FormatterToDeprecatedXercesDOM.cpp | ulisesten/xalanc | a722de08e61ce66965c4a828242f7d1250950621 | [
"Apache-2.0"
] | 24 | 2015-07-29T22:49:17.000Z | 2022-03-25T10:14:17.000Z | src/xalanc/XercesParserLiaison/Deprecated/FormatterToDeprecatedXercesDOM.cpp | ulisesten/xalanc | a722de08e61ce66965c4a828242f7d1250950621 | [
"Apache-2.0"
] | 14 | 2019-05-10T16:25:50.000Z | 2021-11-24T18:04:47.000Z | src/xalanc/XercesParserLiaison/Deprecated/FormatterToDeprecatedXercesDOM.cpp | ulisesten/xalanc | a722de08e61ce66965c4a828242f7d1250950621 | [
"Apache-2.0"
] | 28 | 2015-04-20T15:50:51.000Z | 2022-01-26T14:56:55.000Z | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the "License");
* you m... | 20.835073 | 104 | 0.647295 | ulisesten |
a76b080776c0582331328d0da8f40a9423bd8258 | 11,142 | cpp | C++ | src/test/cpp/pistis/util/ImmutableListTests.cpp | tomault/pistis-util | 0008e8193e210e582201ae906f6933bf82288355 | [
"Apache-2.0"
] | null | null | null | src/test/cpp/pistis/util/ImmutableListTests.cpp | tomault/pistis-util | 0008e8193e210e582201ae906f6933bf82288355 | [
"Apache-2.0"
] | null | null | null | src/test/cpp/pistis/util/ImmutableListTests.cpp | tomault/pistis-util | 0008e8193e210e582201ae906f6933bf82288355 | [
"Apache-2.0"
] | null | null | null | /** @file ImmutableListTests.cpp
*
* Unit tests for pistis::util::ImmutableList
*/
#include <pistis/util/ImmutableList.hpp>
#include <pistis/exceptions/OutOfRangeError.hpp>
#include <pistis/testing/Allocator.hpp>
#include <gtest/gtest.h>
#include <sstream>
#include <stdint.h>
using namespace pistis::exceptions;
u... | 32.770588 | 76 | 0.662179 | tomault |
a76fb6bb8c0cbb05e44c24489d39382f2cd13ca2 | 9,138 | cpp | C++ | xx_tool_sprite/main.cpp | aconstlink/natus_examples | 2716ce7481172bcd14035b18d09b44b74ec78a7e | [
"MIT"
] | null | null | null | xx_tool_sprite/main.cpp | aconstlink/natus_examples | 2716ce7481172bcd14035b18d09b44b74ec78a7e | [
"MIT"
] | null | null | null | xx_tool_sprite/main.cpp | aconstlink/natus_examples | 2716ce7481172bcd14035b18d09b44b74ec78a7e | [
"MIT"
] | null | null | null |
#include "main.h"
#include <natus/application/global.h>
#include <natus/application/app.h>
#include <natus/tool/imgui/sprite_editor.h>
#include <natus/device/global.h>
#include <natus/gfx/camera/pinhole_camera.h>
#include <natus/graphics/shader/nsl_bridge.hpp>
#include <natus/graphics/variable/variable_set.hpp>
#i... | 36.552 | 121 | 0.552637 | aconstlink |
a770b77f699c26e5194a4be7cadaf389a2a99c75 | 7,019 | cc | C++ | Simulation/OMNeT++/inet/src/inet/transportlayer/tcp_common/TCPSegment.cc | StarStuffSteve/masters-research-project | 47c1874913d0961508f033ca9a1144850eb8f8b7 | [
"Apache-2.0"
] | 1 | 2017-03-13T15:51:22.000Z | 2017-03-13T15:51:22.000Z | Simulation/OMNeT++/inet/src/inet/transportlayer/tcp_common/TCPSegment.cc | StarStuffSteve/masters-research-project | 47c1874913d0961508f033ca9a1144850eb8f8b7 | [
"Apache-2.0"
] | null | null | null | Simulation/OMNeT++/inet/src/inet/transportlayer/tcp_common/TCPSegment.cc | StarStuffSteve/masters-research-project | 47c1874913d0961508f033ca9a1144850eb8f8b7 | [
"Apache-2.0"
] | null | null | null | //
// Copyright (C) 2004 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... | 25.805147 | 109 | 0.682576 | StarStuffSteve |
a77174a760f57f32c171183044d4196695837821 | 505 | cpp | C++ | tests/csimsbw/csimsbw.cpp | OpenCMISS-Dependencies/csim | 74ec3c767afcb4a6dc900aeb4d8c5bc1812ea0f1 | [
"Apache-2.0"
] | null | null | null | tests/csimsbw/csimsbw.cpp | OpenCMISS-Dependencies/csim | 74ec3c767afcb4a6dc900aeb4d8c5bc1812ea0f1 | [
"Apache-2.0"
] | 2 | 2016-01-07T00:03:00.000Z | 2016-01-25T21:08:00.000Z | tests/csimsbw/csimsbw.cpp | OpenCMISS-Dependencies/csim | 74ec3c767afcb4a6dc900aeb4d8c5bc1812ea0f1 | [
"Apache-2.0"
] | 2 | 2015-11-29T06:02:19.000Z | 2021-03-29T06:00:22.000Z | #include "gtest/gtest.h"
#include <string>
#include "csimsbw.h"
#include "csim/error_codes.h"
// generated with test resource locations
#include "test_resources.h"
TEST(SBW, model_string) {
char* modelString;
int length;
int code = csim_serialiseCellmlFromUrl(
TestResources::getLocation(... | 22.954545 | 71 | 0.659406 | OpenCMISS-Dependencies |
a777ace1664fd926477699b879b9b96a9a4f2e1d | 1,822 | cpp | C++ | src/Algorand/Signer.cpp | Khaos-Labs/khaos-wallet-core | 2c06d49fddf978e0815b208dddef50ee2011c551 | [
"MIT"
] | 2 | 2020-11-16T08:06:30.000Z | 2021-06-18T03:21:44.000Z | src/Algorand/Signer.cpp | Khaos-Labs/khaos-wallet-core | 2c06d49fddf978e0815b208dddef50ee2011c551 | [
"MIT"
] | null | null | null | src/Algorand/Signer.cpp | Khaos-Labs/khaos-wallet-core | 2c06d49fddf978e0815b208dddef50ee2011c551 | [
"MIT"
] | null | null | null | // Copyright © 2017-2020 Khaos Wallet.
//
// This file is part of Trust. The full Trust copyright notice, including
// terms governing use, modification, and redistribution, is contained in the
// file LICENSE at the root of the source code distribution tree.
#include "Signer.h"
#include "Address.h"
#include "../Publi... | 38.765957 | 104 | 0.694841 | Khaos-Labs |
a77823a4d029474d69084e3fa30e4490328e92a6 | 748 | cpp | C++ | Medium/C++/229. Majority Element II.cpp | Hussein-A/Leetcode | 20e46b9adb3a4929d0b2eee1ff120fb2348be96d | [
"MIT"
] | null | null | null | Medium/C++/229. Majority Element II.cpp | Hussein-A/Leetcode | 20e46b9adb3a4929d0b2eee1ff120fb2348be96d | [
"MIT"
] | null | null | null | Medium/C++/229. Majority Element II.cpp | Hussein-A/Leetcode | 20e46b9adb3a4929d0b2eee1ff120fb2348be96d | [
"MIT"
] | null | null | null | /*
Given an integer array of size n, find all elements that appear more than ? n/3 ? times.
Note: The algorithm should run in linear time and in O(1) space.
Runtime: 16 ms, faster than 87.33% of C++ online submissions for Majority Element II.
Memory Usage: 10.7 MB, less than 50.89% of C++ online submissions for Majori... | 27.703704 | 90 | 0.673797 | Hussein-A |
a778c2ff335d175f25a2d199f1367bda500ad831 | 2,934 | cc | C++ | parma/diffMC/parma_dcpartFixer.cc | Thomas-Ulrich/core | 1c7bc7ff994c3570ab22b96d37be0c4c993e5940 | [
"BSD-3-Clause"
] | 138 | 2015-01-05T15:50:20.000Z | 2022-02-25T01:09:58.000Z | parma/diffMC/parma_dcpartFixer.cc | Thomas-Ulrich/core | 1c7bc7ff994c3570ab22b96d37be0c4c993e5940 | [
"BSD-3-Clause"
] | 337 | 2015-08-07T18:24:58.000Z | 2022-03-31T14:39:03.000Z | parma/diffMC/parma_dcpartFixer.cc | Thomas-Ulrich/core | 1c7bc7ff994c3570ab22b96d37be0c4c993e5940 | [
"BSD-3-Clause"
] | 70 | 2015-01-17T00:58:41.000Z | 2022-02-13T04:58:20.000Z | #include "PCU.h"
#include "parma_dcpart.h"
#include "parma_commons.h"
#include "parma_convert.h"
#include <maximalIndependentSet/mis.h>
#include <pcu_util.h>
typedef std::map<unsigned, unsigned> muu;
namespace {
bool isInMis(muu& mt) {
unsigned seed = TO_UINT(PCU_Comm_Self()+1);
mis_init(seed);
misLuby:... | 27.942857 | 81 | 0.582481 | Thomas-Ulrich |
a77959f0e89a7b99097f2af7afbdd048e8b7d490 | 2,457 | cc | C++ | ofstd/tests/tststack.cc | chrisvana/dcmtk_copy | f929ab8590aca5b7a319c95af4fe2ee31be52f46 | [
"Apache-2.0"
] | 24 | 2015-07-22T05:07:51.000Z | 2019-02-28T04:52:33.000Z | ofstd/tests/tststack.cc | chrisvana/dcmtk_copy | f929ab8590aca5b7a319c95af4fe2ee31be52f46 | [
"Apache-2.0"
] | 13 | 2015-07-23T05:43:02.000Z | 2021-07-17T17:14:45.000Z | ofstd/tests/tststack.cc | chrisvana/dcmtk_copy | f929ab8590aca5b7a319c95af4fe2ee31be52f46 | [
"Apache-2.0"
] | 13 | 2015-07-23T01:07:30.000Z | 2021-01-05T09:49:30.000Z | /*
*
* Copyright (C) 1997-2010, OFFIS e.V.
* All rights reserved. See COPYRIGHT file for details.
*
* This software and supporting documentation were developed by
*
* OFFIS e.V.
* R&D Division Health
* Escherweg 2
* D-26121 Oldenburg, Germany
*
*
* Module: ofstd
*
* Author: Andreas Ba... | 24.57 | 85 | 0.638991 | chrisvana |
a779e73de1486642d329cc195c088afd6bc82c0c | 9,172 | cpp | C++ | libraries/disp3D/engine/model/items/sensordata/gpuinterpolationitem.cpp | ChunmingGu/mne-cpp-master | 36f21b3ab0c65a133027da83fa8e2a652acd1485 | [
"BSD-3-Clause"
] | null | null | null | libraries/disp3D/engine/model/items/sensordata/gpuinterpolationitem.cpp | ChunmingGu/mne-cpp-master | 36f21b3ab0c65a133027da83fa8e2a652acd1485 | [
"BSD-3-Clause"
] | null | null | null | libraries/disp3D/engine/model/items/sensordata/gpuinterpolationitem.cpp | ChunmingGu/mne-cpp-master | 36f21b3ab0c65a133027da83fa8e2a652acd1485 | [
"BSD-3-Clause"
] | null | null | null | //=============================================================================================================
/**
* @file gpuinterpolationitem.cpp
* @author Lars Debor <lars.debor@tu-ilmenau.de>;
* Matti Hamalainen <msh@nmr.mgh.harvard.edu>
* @version 1.0
* @date October, 2017
*
* @section LICEN... | 39.878261 | 116 | 0.490188 | ChunmingGu |
a77b539c8e18e780822445d43a7e28e2c127b9e6 | 25,800 | inl | C++ | include/eagine/app/opengl_eglplus.inl | matus-chochlik/eagine-app | 7aeecbf765a6e4316adfe145f9116aded6cdb550 | [
"BSL-1.0"
] | null | null | null | include/eagine/app/opengl_eglplus.inl | matus-chochlik/eagine-app | 7aeecbf765a6e4316adfe145f9116aded6cdb550 | [
"BSL-1.0"
] | null | null | null | include/eagine/app/opengl_eglplus.inl | matus-chochlik/eagine-app | 7aeecbf765a6e4316adfe145f9116aded6cdb550 | [
"BSL-1.0"
] | null | null | null | /// @file
///
/// Copyright Matus Chochlik.
/// 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 <eagine/app/context.hpp>
#include <eagine/extract.hpp>
#include <eagine/integer_range.hpp>
#include <eag... | 40 | 81 | 0.496783 | matus-chochlik |
a77d5d08599b35023ed74a3c445c214264380b15 | 9,544 | cpp | C++ | Applications/CLI/ogs.cpp | OlafKolditz/ogs | e33400e1d9503d33ce80509a3441a873962ad675 | [
"BSD-4-Clause"
] | 1 | 2020-03-24T13:33:52.000Z | 2020-03-24T13:33:52.000Z | Applications/CLI/ogs.cpp | OlafKolditz/ogs | e33400e1d9503d33ce80509a3441a873962ad675 | [
"BSD-4-Clause"
] | 1 | 2021-09-02T14:21:33.000Z | 2021-09-02T14:21:33.000Z | Applications/CLI/ogs.cpp | OlafKolditz/ogs | e33400e1d9503d33ce80509a3441a873962ad675 | [
"BSD-4-Clause"
] | 1 | 2020-07-15T05:55:55.000Z | 2020-07-15T05:55:55.000Z | /**
* \date 2014-08-04
* \brief Implementation of OpenGeoSys simulation application
*
* \copyright
* Copyright (c) 2012-2020, OpenGeoSys Community (http://www.opengeosys.org)
* Distributed under a Modified BSD License.
* See accompanying file LICENSE.txt or
* http://www.o... | 32.462585 | 80 | 0.576907 | OlafKolditz |
a77df707c2889771045e50b016329560b5f64f4d | 2,289 | cpp | C++ | src/defaultroleweight.cpp | Alatun-Rom/Dwarf-Therapist | 99b8e0783ec4fa21359f7b148524fec574c1fba1 | [
"MIT"
] | 362 | 2017-09-30T09:35:01.000Z | 2022-02-24T14:45:48.000Z | src/defaultroleweight.cpp | Alatun-Rom/Dwarf-Therapist | 99b8e0783ec4fa21359f7b148524fec574c1fba1 | [
"MIT"
] | 170 | 2017-09-18T16:11:23.000Z | 2022-03-31T21:36:21.000Z | src/defaultroleweight.cpp | Alatun-Rom/Dwarf-Therapist | 99b8e0783ec4fa21359f7b148524fec574c1fba1 | [
"MIT"
] | 54 | 2017-09-20T08:30:21.000Z | 2022-03-29T02:55:24.000Z | /*
Dwarf Therapist
Copyright (c) 2018 Clement Vuchener
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, pub... | 36.919355 | 79 | 0.771953 | Alatun-Rom |
a7809b99d206bc39ac2a402fd7f708d07dd1c1e0 | 4,989 | cpp | C++ | src/execution/operator/set/physical_recursive_cte.cpp | kimmolinna/duckdb | f46c5e5d2162ac3163e76985a01fb6a049eb170f | [
"MIT"
] | 1 | 2022-01-06T17:44:07.000Z | 2022-01-06T17:44:07.000Z | src/execution/operator/set/physical_recursive_cte.cpp | kimmolinna/duckdb | f46c5e5d2162ac3163e76985a01fb6a049eb170f | [
"MIT"
] | 32 | 2021-09-24T23:50:09.000Z | 2022-03-29T09:37:26.000Z | src/execution/operator/set/physical_recursive_cte.cpp | kimmolinna/duckdb | f46c5e5d2162ac3163e76985a01fb6a049eb170f | [
"MIT"
] | null | null | null | #include "duckdb/execution/operator/set/physical_recursive_cte.hpp"
#include "duckdb/common/vector_operations/vector_operations.hpp"
#include "duckdb/common/types/chunk_collection.hpp"
#include "duckdb/execution/aggregate_hashtable.hpp"
#include "duckdb/parallel/pipeline.hpp"
#include "duckdb/storage/buffer_manager.h... | 33.26 | 119 | 0.676889 | kimmolinna |
a782c7e4694aa5e8f9c94f0a891038ca5f6f0422 | 13,904 | hpp | C++ | zeccup/zeccup/military/desert/medical.hpp | LISTINGS09/ZECCUP | e0ad1fae580dde6e5d90903b1295fecc41684f63 | [
"Naumen",
"Condor-1.1",
"MS-PL"
] | 3 | 2016-08-29T09:23:49.000Z | 2019-06-13T20:29:28.000Z | zeccup/zeccup/military/desert/medical.hpp | LISTINGS09/ZECCUP | e0ad1fae580dde6e5d90903b1295fecc41684f63 | [
"Naumen",
"Condor-1.1",
"MS-PL"
] | null | null | null | zeccup/zeccup/military/desert/medical.hpp | LISTINGS09/ZECCUP | e0ad1fae580dde6e5d90903b1295fecc41684f63 | [
"Naumen",
"Condor-1.1",
"MS-PL"
] | null | null | null | class MedicalLarge
{
name = $STR_ZECCUP_MedicalLarge;
// EAST
class Hospital_CUP_O_TK {
name = $STR_ZECCUP_MilitaryDesert_MedicalLarge_Hospital_CUP_O_TK; // Credit: 2600K
icon = "\ca\data\flag_rus_co.paa";
side = 8;
class Object0 {side = 8; vehicle = "TK_WarfareBFieldhHospital_Base_EP1";... | 101.489051 | 135 | 0.610256 | LISTINGS09 |
a78408805c9ef2a4fb93d43a039d7c3ce3294dfe | 2,170 | cpp | C++ | example/19_multi_viewport/19_multi_viewport.cpp | alecnunn/mud | 9e204e2dc65f4a8ab52da3d11e6a261ff279d353 | [
"Zlib"
] | 1 | 2019-03-28T20:45:32.000Z | 2019-03-28T20:45:32.000Z | example/19_multi_viewport/19_multi_viewport.cpp | alecnunn/mud | 9e204e2dc65f4a8ab52da3d11e6a261ff279d353 | [
"Zlib"
] | null | null | null | example/19_multi_viewport/19_multi_viewport.cpp | alecnunn/mud | 9e204e2dc65f4a8ab52da3d11e6a261ff279d353 | [
"Zlib"
] | null | null | null | #include <mud/core.h>
#include <19_multi_viewport/19_multi_viewport.h>
#include <03_materials/03_materials.h>
using namespace mud;
size_t viewport_mode(Widget& parent)
{
std::vector<size_t> num_viewer_vals = { 1, 2, 4 };
ui::label(parent, "num viewports : ");
static uint32_t choice = 1;
ui::radio_switch(parent,... | 25.529412 | 79 | 0.64977 | alecnunn |
a78490ca22772fbbe23e1b65bd705acf34432e8a | 5,922 | hpp | C++ | src/DataStructures/Tensor/EagerMath/Determinant.hpp | macedo22/spectre | 97b2b7ae356cf86830258cb5f689f1191fdb6ddd | [
"MIT"
] | 1 | 2018-10-01T06:07:16.000Z | 2018-10-01T06:07:16.000Z | src/DataStructures/Tensor/EagerMath/Determinant.hpp | macedo22/spectre | 97b2b7ae356cf86830258cb5f689f1191fdb6ddd | [
"MIT"
] | 4 | 2018-06-04T20:26:40.000Z | 2018-07-27T14:54:55.000Z | src/DataStructures/Tensor/EagerMath/Determinant.hpp | macedo22/spectre | 97b2b7ae356cf86830258cb5f689f1191fdb6ddd | [
"MIT"
] | null | null | null | // Distributed under the MIT License.
// See LICENSE.txt for details.
/// \file
/// Defines function for taking the determinant of a rank-2 tensor
#pragma once
#include "DataStructures/Tensor/Tensor.hpp"
#include "Utilities/Gsl.hpp"
namespace detail {
template <typename Symm, typename Index, typename = std::nullptr... | 37.245283 | 80 | 0.614826 | macedo22 |
a784bc499e303988d8a73b3303a9d4355e58e35f | 1,861 | cc | C++ | books/principles/search/test-search.cc | BONITA-KWKim/algorithm | 94a45c929505e574c06d235d18da4625cc243343 | [
"Unlicense"
] | 1 | 2020-06-24T07:34:55.000Z | 2020-06-24T07:34:55.000Z | books/principles/search/test-search.cc | BONITA-KWKim/algorithm | 94a45c929505e574c06d235d18da4625cc243343 | [
"Unlicense"
] | null | null | null | books/principles/search/test-search.cc | BONITA-KWKim/algorithm | 94a45c929505e574c06d235d18da4625cc243343 | [
"Unlicense"
] | null | null | null | #include <iostream>
#include <string>
#include "gtest/gtest.h"
#include "sequential-search.h"
#include "binary-search-tree.h"
#include "red-black-tree.h"
TEST (SEQUENTIAL, TEST_CASE_001) {
BaseSearch *search = new SequentialSearch();
EXPECT_EQ(0, 0);
}
TEST (BINARY_SEARCH_TREE, TEST_CASE_001) {
int sear... | 28.630769 | 70 | 0.68619 | BONITA-KWKim |
a786202d692a972fd9b5663ff265857d3848244c | 8,040 | cpp | C++ | src/wolf3d_shaders/ws_deferred.cpp | Daivuk/wolf3d-shaders | 0f3c0ab82422d068f6440af6649603774f0543b2 | [
"DOC",
"Unlicense"
] | 5 | 2019-09-14T14:08:46.000Z | 2021-04-27T11:21:43.000Z | src/wolf3d_shaders/ws_deferred.cpp | Daivuk/wolf3d-shaders | 0f3c0ab82422d068f6440af6649603774f0543b2 | [
"DOC",
"Unlicense"
] | null | null | null | src/wolf3d_shaders/ws_deferred.cpp | Daivuk/wolf3d-shaders | 0f3c0ab82422d068f6440af6649603774f0543b2 | [
"DOC",
"Unlicense"
] | 1 | 2019-10-19T04:19:46.000Z | 2019-10-19T04:19:46.000Z | #include "ws.h"
#include "WL_DEF.H"
ws_GBuffer ws_gbuffer;
std::vector<ws_PointLight> ws_active_lights;
GLuint ws_create_sphere()
{
GLuint handle;
glGenBuffers(1, &handle);
glBindBuffer(GL_ARRAY_BUFFER, handle);
ws_Vector3 *pVertices = new ws_Vector3[WS_SPHERE_VERT_COUNT];
int hseg... | 36.545455 | 124 | 0.606468 | Daivuk |
a7875e99e239cd4ad711fd5d736f2f8b94b57109 | 23,026 | cpp | C++ | src/smt/proto_model/proto_model.cpp | flowingcloudbackup/z3 | 83d84dcedde7b1fd3c7f05da25da8fbfa819c708 | [
"MIT"
] | 1 | 2018-06-15T00:27:24.000Z | 2018-06-15T00:27:24.000Z | src/smt/proto_model/proto_model.cpp | flowingcloudbackup/z3 | 83d84dcedde7b1fd3c7f05da25da8fbfa819c708 | [
"MIT"
] | null | null | null | src/smt/proto_model/proto_model.cpp | flowingcloudbackup/z3 | 83d84dcedde7b1fd3c7f05da25da8fbfa819c708 | [
"MIT"
] | null | null | null | /*++
Copyright (c) 2006 Microsoft Corporation
Module Name:
proto_model.cpp
Abstract:
<abstract>
Author:
Leonardo de Moura (leonardo) 2007-03-08.
Revision History:
--*/
#include"proto_model.h"
#include"model_params.hpp"
#include"ast_pp.h"
#include"ast_ll_pp.h"
#include"var_subst.h"
#include"array_dec... | 33.812041 | 117 | 0.5228 | flowingcloudbackup |
a78e291fec91811edf30eb4e01b9dd7d602b798f | 681 | cpp | C++ | mooslcm/src/test_lcm_publish_moos_double_t.cpp | aspears1935/moos-lcm-bridge | f74218ab2c0c7bbd454b6f20d93db6986ec49c49 | [
"MIT"
] | null | null | null | mooslcm/src/test_lcm_publish_moos_double_t.cpp | aspears1935/moos-lcm-bridge | f74218ab2c0c7bbd454b6f20d93db6986ec49c49 | [
"MIT"
] | null | null | null | mooslcm/src/test_lcm_publish_moos_double_t.cpp | aspears1935/moos-lcm-bridge | f74218ab2c0c7bbd454b6f20d93db6986ec49c49 | [
"MIT"
] | null | null | null | // file: send_message.cpp
//
// LCM example program.
//
// compile with:
// $ g++ -o send_message send_message.cpp -llcm
//
// On a system with pkg-config, you can also use:
// $ g++ -o send_message send_message.cpp `pkg-config --cflags --libs lcm`
#include <ctime>
#include <lcm/lcm-cpp.hpp>
#include <unistd.h>
#inc... | 21.28125 | 75 | 0.631424 | aspears1935 |
a78ec63364b2bcdc87c1a7ed8458d904f4065cc0 | 5,491 | cpp | C++ | ProcessLib/VectorMatrixAssembler.cpp | yingtaohu/ogs | 651ca2f903ee0bf5a8cfb505e8e2fd0562b4ce8e | [
"BSD-4-Clause"
] | null | null | null | ProcessLib/VectorMatrixAssembler.cpp | yingtaohu/ogs | 651ca2f903ee0bf5a8cfb505e8e2fd0562b4ce8e | [
"BSD-4-Clause"
] | null | null | null | ProcessLib/VectorMatrixAssembler.cpp | yingtaohu/ogs | 651ca2f903ee0bf5a8cfb505e8e2fd0562b4ce8e | [
"BSD-4-Clause"
] | null | null | null | /**
* \copyright
* Copyright (c) 2012-2017, OpenGeoSys Community (http://www.opengeosys.org)
* Distributed under a Modified BSD License.
* See accompanying file LICENSE.txt or
* http://www.opengeosys.org/project/license
*
*/
#include "VectorMatrixAssembler.h"
#include <cass... | 33.481707 | 80 | 0.675651 | yingtaohu |
a78ffce8e4ff64c892ee4e8be84ed153b4e98f48 | 2,091 | cpp | C++ | Surface_mesh_topology/examples/Surface_mesh_topology/edgewidth_surface_mesh.cpp | yemaedahrav/cgal | ef771049b173007f2c566375bbd85a691adcee17 | [
"CC0-1.0"
] | 1 | 2019-04-08T23:06:26.000Z | 2019-04-08T23:06:26.000Z | Surface_mesh_topology/examples/Surface_mesh_topology/edgewidth_surface_mesh.cpp | yemaedahrav/cgal | ef771049b173007f2c566375bbd85a691adcee17 | [
"CC0-1.0"
] | 1 | 2021-03-12T14:38:20.000Z | 2021-03-12T14:38:20.000Z | Surface_mesh_topology/examples/Surface_mesh_topology/edgewidth_surface_mesh.cpp | szobov/cgal | e7b91b92b8c6949e3b62023bdd1e9f3ad8472626 | [
"CC0-1.0"
] | 1 | 2022-03-05T04:18:59.000Z | 2022-03-05T04:18:59.000Z | #include <CGAL/Simple_cartesian.h>
#include <CGAL/Surface_mesh.h>
#include <CGAL/Curves_on_surface_topology.h>
#include <CGAL/Path_on_surface.h>
#include <CGAL/squared_distance_3.h>
#include <CGAL/draw_face_graph_with_paths.h>
#include <fstream>
using Mesh = CGAL::Surface_mesh<CGAL::Simple_cartesian<doubl... | 36.051724 | 90 | 0.683405 | yemaedahrav |
a790c61c43f1fa8b82035b8605f11a51d41f37b1 | 9,253 | cpp | C++ | ContentTools/PrimitiveMesh.cpp | ZackShrout/HavanaEngine | b8869acfff27e41bd37079716d152c2df9674fe2 | [
"Apache-2.0"
] | null | null | null | ContentTools/PrimitiveMesh.cpp | ZackShrout/HavanaEngine | b8869acfff27e41bd37079716d152c2df9674fe2 | [
"Apache-2.0"
] | null | null | null | ContentTools/PrimitiveMesh.cpp | ZackShrout/HavanaEngine | b8869acfff27e41bd37079716d152c2df9674fe2 | [
"Apache-2.0"
] | null | null | null | #include "PrimitiveMesh.h"
#include "Geometry.h"
namespace Havana::Tools
{
namespace
{
using namespace Math;
using namespace DirectX;
using primitive_mesh_creator = void(*)(Scene&, const PrimitiveInitInfo& info);
void CreatePlane(Scene& scene, const PrimitiveInitInfo& info);
void CreateCube(Scene& scene, ... | 30.238562 | 108 | 0.602832 | ZackShrout |
0427bd33aa17e82efd3c0f572e58865a8f46b5c5 | 16,935 | cpp | C++ | sdl1/cannonball/src/main/frontend/config.cpp | pdpdds/sdldualsystem | d74ea84cbea705fef62868ba8c693bf7d2555636 | [
"BSD-2-Clause"
] | null | null | null | sdl1/cannonball/src/main/frontend/config.cpp | pdpdds/sdldualsystem | d74ea84cbea705fef62868ba8c693bf7d2555636 | [
"BSD-2-Clause"
] | null | null | null | sdl1/cannonball/src/main/frontend/config.cpp | pdpdds/sdldualsystem | d74ea84cbea705fef62868ba8c693bf7d2555636 | [
"BSD-2-Clause"
] | null | null | null | /***************************************************************************
XML Configuration File Handling.
Load Settings.
Load & Save Hi-Scores.
Copyright Chris White.
See license.txt for more details.
***************************************************************************/
// see: http://... | 40.611511 | 138 | 0.58943 | pdpdds |
042c8582ce7be8f2c9d239da2727d8384847d5b2 | 22,847 | cpp | C++ | src/protocol/Connection.cpp | garrettr/ricochet | a22c729b3e912794a8af65879ed1b38573385657 | [
"OpenSSL"
] | 3,461 | 2015-01-01T09:44:50.000Z | 2022-03-26T06:24:41.000Z | src/protocol/Connection.cpp | infocoms/Ricochet-DarkMode | 0d3513965aac61f0af10369d05fc3a8cfa6f6d1c | [
"BSD-3-Clause"
] | 498 | 2015-01-02T07:32:06.000Z | 2022-01-22T16:44:07.000Z | src/protocol/Connection.cpp | infocoms/Ricochet-DarkMode | 0d3513965aac61f0af10369d05fc3a8cfa6f6d1c | [
"BSD-3-Clause"
] | 447 | 2015-01-08T01:19:39.000Z | 2022-01-27T19:07:39.000Z | /* Ricochet - https://ricochet.im/
* Copyright (C) 2014, John Brooks <john.brooks@dereferenced.net>
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above ... | 34.616667 | 130 | 0.600823 | garrettr |
042c9dc2cd0d2405799a6e5b0ca994ce53a07029 | 1,136 | hpp | C++ | src/ui/Font.hpp | PegasusEpsilon/Barony | 6311f7e5da4835eaea65a95b5cc258409bb0dfa4 | [
"FTL",
"Zlib",
"MIT"
] | null | null | null | src/ui/Font.hpp | PegasusEpsilon/Barony | 6311f7e5da4835eaea65a95b5cc258409bb0dfa4 | [
"FTL",
"Zlib",
"MIT"
] | null | null | null | src/ui/Font.hpp | PegasusEpsilon/Barony | 6311f7e5da4835eaea65a95b5cc258409bb0dfa4 | [
"FTL",
"Zlib",
"MIT"
] | null | null | null | //! @file Font.hpp
#pragma once
#include "../main.hpp"
class Font {
private:
Font() = default;
Font(const char* _name);
Font(const Font&) = delete;
Font(Font&&) = delete;
virtual ~Font();
Font& operator=(const Font&) = delete;
Font& operator=(Font&&) = delete;
public:
//! built-in font
static const char* ... | 23.666667 | 61 | 0.672535 | PegasusEpsilon |
042cf49955f381c33af736b13f3712813964bf1c | 876 | cc | C++ | apps/solve.cc | CS126SP20/sudoku-hecht3 | a7f6a453eb7be8782167418c8c64dc293d1e3a8c | [
"MIT"
] | null | null | null | apps/solve.cc | CS126SP20/sudoku-hecht3 | a7f6a453eb7be8782167418c8c64dc293d1e3a8c | [
"MIT"
] | null | null | null | apps/solve.cc | CS126SP20/sudoku-hecht3 | a7f6a453eb7be8782167418c8c64dc293d1e3a8c | [
"MIT"
] | null | null | null | // Copyright (c) 2020 [Your Name]. All rights reserved.
#include <sudoku/sudoku_parser.h>
#include <iostream>
#include <fstream>
void HandleFile(std::string puzzle);
int main(int argc, char** argv) {
// There is always at least 1 argument -- the name of the program which we
// don't care about
if (argc == 1) {... | 25.028571 | 76 | 0.627854 | CS126SP20 |
042f62b522d5c4e94a3a91d40ff19f6170803aee | 329 | cpp | C++ | 1-6-11z.cpp | Kaermor/stepik-course363-cpp | 7df3381ee5460565754745b6d48ed3f1324e73ef | [
"Apache-2.0"
] | null | null | null | 1-6-11z.cpp | Kaermor/stepik-course363-cpp | 7df3381ee5460565754745b6d48ed3f1324e73ef | [
"Apache-2.0"
] | null | null | null | 1-6-11z.cpp | Kaermor/stepik-course363-cpp | 7df3381ee5460565754745b6d48ed3f1324e73ef | [
"Apache-2.0"
] | null | null | null | #include <iostream>
#include <cmath>
#include <iomanip>
using namespace std;
int foo_1_6_11z() {
double a, b, c, d, e, f, x, y;
cin >> a;
cin >> b;
cin >> c;
cin >> d;
cin >> e;
cin >> f;
x = (e*d - b*f) / (d*a - b*c);
y = (a*f - e*c) / (d*a - b*c);
cout << x << " " << y <... | 14.954545 | 34 | 0.419453 | Kaermor |
042f890043cf1be0dcd3612270f70377536110a1 | 53,038 | cpp | C++ | src/renderer/editor/terrain_editor.cpp | santaclose/LumixEngine | f163e673d7ebc451c134db8d2fbb55ac38962137 | [
"MIT"
] | null | null | null | src/renderer/editor/terrain_editor.cpp | santaclose/LumixEngine | f163e673d7ebc451c134db8d2fbb55ac38962137 | [
"MIT"
] | null | null | null | src/renderer/editor/terrain_editor.cpp | santaclose/LumixEngine | f163e673d7ebc451c134db8d2fbb55ac38962137 | [
"MIT"
] | null | null | null | #include <imgui/imgui.h>
#include "terrain_editor.h"
#include "editor/asset_browser.h"
#include "editor/asset_compiler.h"
#include "editor/entity_folders.h"
#include "editor/prefab_system.h"
#include "editor/studio_app.h"
#include "editor/utils.h"
#include "engine/crc32.h"
#include "engine/crt.h"
#include "engine/engi... | 30.359473 | 165 | 0.678419 | santaclose |
04326480283816f6e982b697093aab4f31b36529 | 21,971 | hpp | C++ | include/UnityEngine/Networking/UnityWebRequest_UnityWebRequestError.hpp | Fernthedev/BeatSaber-Quest-Codegen | 716e4ff3f8608f7ed5b83e2af3be805f69e26d9e | [
"Unlicense"
] | null | null | null | include/UnityEngine/Networking/UnityWebRequest_UnityWebRequestError.hpp | Fernthedev/BeatSaber-Quest-Codegen | 716e4ff3f8608f7ed5b83e2af3be805f69e26d9e | [
"Unlicense"
] | null | null | null | include/UnityEngine/Networking/UnityWebRequest_UnityWebRequestError.hpp | Fernthedev/BeatSaber-Quest-Codegen | 716e4ff3f8608f7ed5b83e2af3be805f69e26d9e | [
"Unlicense"
] | null | null | null | // Autogenerated from CppHeaderCreator
// Created by Sc2ad
// =========================================================================
#pragma once
// Begin includes
#include "extern/beatsaber-hook/shared/utils/typedefs.h"
#include "extern/beatsaber-hook/shared/utils/byref.hpp"
// Including type: UnityEngine.Ne... | 99.41629 | 158 | 0.823449 | Fernthedev |
04375a304f2cd29a9b0c5eb3ce8b357124ad381c | 11,956 | hh | C++ | src/lib/MeshFEM/EnergyDensities/TensionFieldTheory.hh | MeshFEM/MeshFEM | 9b3619fa450d83722879bfd0f5a3fe69d927bd63 | [
"MIT"
] | 19 | 2020-10-21T10:05:17.000Z | 2022-03-20T13:41:50.000Z | src/lib/MeshFEM/EnergyDensities/TensionFieldTheory.hh | MeshFEM/MeshFEM | 9b3619fa450d83722879bfd0f5a3fe69d927bd63 | [
"MIT"
] | 4 | 2021-01-01T15:58:15.000Z | 2021-09-19T03:31:09.000Z | src/lib/MeshFEM/EnergyDensities/TensionFieldTheory.hh | MeshFEM/MeshFEM | 9b3619fa450d83722879bfd0f5a3fe69d927bd63 | [
"MIT"
] | 4 | 2020-10-05T09:01:50.000Z | 2022-01-11T03:02:39.000Z | ////////////////////////////////////////////////////////////////////////////////
// TensionFieldTheory.hh
////////////////////////////////////////////////////////////////////////////////
/*! @file
// Implements a field theory relaxed energy density for a fully generic,
// potentially anisotropic, 2D "C-based" energy ... | 39.328947 | 113 | 0.613499 | MeshFEM |
04380da30516f9931c814f7e57999f699f2103d4 | 7,764 | cpp | C++ | Blizzlike/Trinity/Scripts/Dungeons/Stratholme/boss_dathrohan_balnazzar.cpp | 499453466/Lua-Other | 43fd2b72405faf3f2074fd2a2706ef115d16faa6 | [
"Unlicense"
] | 2 | 2015-06-23T16:26:32.000Z | 2019-06-27T07:45:59.000Z | Blizzlike/Trinity/Scripts/Dungeons/Stratholme/boss_dathrohan_balnazzar.cpp | Eduardo-Silla/Lua-Other | db610f946dbcaf81b3de9801f758e11a7bf2753f | [
"Unlicense"
] | null | null | null | Blizzlike/Trinity/Scripts/Dungeons/Stratholme/boss_dathrohan_balnazzar.cpp | Eduardo-Silla/Lua-Other | db610f946dbcaf81b3de9801f758e11a7bf2753f | [
"Unlicense"
] | 3 | 2015-01-10T18:22:59.000Z | 2021-04-27T21:28:28.000Z | /*
* Copyright (C) 2008-2012 TrinityCore <http://www.trinitycore.org/>
* Copyright (C) 2006-2009 ScriptDev2 <https://scriptdev2.svn.sourceforge.net/>
*
* This program is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License as published by the
* Free Software ... | 34.816143 | 122 | 0.551391 | 499453466 |
0438c5e47926dbfe5ee9f60971e30e206204d7fa | 3,624 | cpp | C++ | league_skin_changer/game_classes.cpp | slowptr/LeagueSkinChanger | c37d505c4062b1acc1a7012650d6a33d5d8a3bce | [
"MIT"
] | 1 | 2020-11-24T14:51:20.000Z | 2020-11-24T14:51:20.000Z | league_skin_changer/game_classes.cpp | devzhai/LeagueSkinChanger | aaad169c8b74756c0ceb668fa003577aedc62965 | [
"MIT"
] | null | null | null | league_skin_changer/game_classes.cpp | devzhai/LeagueSkinChanger | aaad169c8b74756c0ceb668fa003577aedc62965 | [
"MIT"
] | null | null | null | /* This file is part of LeagueSkinChanger by b3akers, licensed under the MIT license:
*
* MIT License
*
* Copyright (c) b3akers 2020
*
* 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 ... | 45.873418 | 337 | 0.73234 | slowptr |
043ac0b5c34ad8ecec530d8db83cb7eba171b072 | 2,298 | cpp | C++ | lib/spdk/BdevStats.cpp | janlt/daqdb | 04ff602fe0a6c199a782b877203b8b8b9d3fec66 | [
"Apache-2.0"
] | 22 | 2019-02-08T17:23:12.000Z | 2021-10-12T06:35:37.000Z | lib/spdk/BdevStats.cpp | janlt/daqdb | 04ff602fe0a6c199a782b877203b8b8b9d3fec66 | [
"Apache-2.0"
] | 8 | 2019-02-11T06:30:47.000Z | 2020-04-22T09:49:44.000Z | lib/spdk/BdevStats.cpp | daq-db/daqdb | e30afe8a9a4727e60d0c1122d28679a4ce326844 | [
"Apache-2.0"
] | 10 | 2019-02-11T10:26:52.000Z | 2019-09-16T20:49:25.000Z | /**
* Copyright (c) 2019 Intel Corporation
*
* 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... | 31.916667 | 79 | 0.60705 | janlt |
043cb4f04d9e8e2afacf1f781cc1f86786d7a247 | 551 | hpp | C++ | include/lol/def/LolLootPlayerLootMap.hpp | Maufeat/LeagueAPI | be7cb5093aab3f27d95b3c0e1d5700aa50126c47 | [
"BSD-3-Clause"
] | 1 | 2020-07-22T11:14:55.000Z | 2020-07-22T11:14:55.000Z | include/lol/def/LolLootPlayerLootMap.hpp | Maufeat/LeagueAPI | be7cb5093aab3f27d95b3c0e1d5700aa50126c47 | [
"BSD-3-Clause"
] | null | null | null | include/lol/def/LolLootPlayerLootMap.hpp | Maufeat/LeagueAPI | be7cb5093aab3f27d95b3c0e1d5700aa50126c47 | [
"BSD-3-Clause"
] | 4 | 2018-12-01T22:48:21.000Z | 2020-07-22T11:14:56.000Z | #pragma once
#include "../base_def.hpp"
#include "LolLootPlayerLoot.hpp"
namespace lol {
struct LolLootPlayerLootMap {
int64_t version;
std::map<std::string, LolLootPlayerLoot> playerLoot;
};
inline void to_json(json& j, const LolLootPlayerLootMap& v) {
j["version"] = v.version;
j["playerLoot"... | 32.411765 | 87 | 0.675136 | Maufeat |
04429fd235d6659428bd0141cf64515cf9d012af | 3,328 | hpp | C++ | source/external/mongo-cxx-driver/include/mongocxx/v_noabi/mongocxx/options/insert.hpp | VincentPT/vschk | f8f40a7666d80224a9a24c097a4d52f5507d03de | [
"MIT"
] | null | null | null | source/external/mongo-cxx-driver/include/mongocxx/v_noabi/mongocxx/options/insert.hpp | VincentPT/vschk | f8f40a7666d80224a9a24c097a4d52f5507d03de | [
"MIT"
] | null | null | null | source/external/mongo-cxx-driver/include/mongocxx/v_noabi/mongocxx/options/insert.hpp | VincentPT/vschk | f8f40a7666d80224a9a24c097a4d52f5507d03de | [
"MIT"
] | 1 | 2021-06-18T05:00:10.000Z | 2021-06-18T05:00:10.000Z | // Copyright 2014 MongoDB Inc.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in wri... | 31.102804 | 100 | 0.682091 | VincentPT |
04458d4bd362c54a9a27195322e1ad616d5d4a14 | 2,320 | cpp | C++ | test/test_tree/test_splits.cpp | guillempalou/eigenml | 3991ddbfd01032cbbe698f6ec35eecbfe127e9b4 | [
"Apache-2.0"
] | null | null | null | test/test_tree/test_splits.cpp | guillempalou/eigenml | 3991ddbfd01032cbbe698f6ec35eecbfe127e9b4 | [
"Apache-2.0"
] | null | null | null | test/test_tree/test_splits.cpp | guillempalou/eigenml | 3991ddbfd01032cbbe698f6ec35eecbfe127e9b4 | [
"Apache-2.0"
] | null | null | null | #include <gtest/gtest.h>
#include <eigenml/decision_tree/decision_tree_traits.hpp>
#include <eigenml/decision_tree/splitting/find_thresholds.hpp>
#include <eigenml/decision_tree/splitting/criteria.hpp>
using namespace eigenml;
using namespace eigenml::decision_tree;
typedef tree_traits<ModelType::kSupervisedClassifie... | 30.12987 | 97 | 0.731466 | guillempalou |
044d0c1fd78751ffbea415337b6b2fc0c75051ec | 29,450 | cc | C++ | icing/index/main/posting-list-used_test.cc | PixelPlusUI-SnowCone/external_icing | 206a7d6b4ab83c6acdb8b14565e2431751c9e4cf | [
"Apache-2.0"
] | null | null | null | icing/index/main/posting-list-used_test.cc | PixelPlusUI-SnowCone/external_icing | 206a7d6b4ab83c6acdb8b14565e2431751c9e4cf | [
"Apache-2.0"
] | null | null | null | icing/index/main/posting-list-used_test.cc | PixelPlusUI-SnowCone/external_icing | 206a7d6b4ab83c6acdb8b14565e2431751c9e4cf | [
"Apache-2.0"
] | null | null | null | // Copyright (C) 2019 Google LLC
//
// 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 to... | 41.304348 | 80 | 0.67399 | PixelPlusUI-SnowCone |
0452941871a83af5ba88c83fbedd86ff43b8d988 | 25,244 | cpp | C++ | modules/core/src/split.cpp | liqingshan/opencv | 5e68f35500a859838ab8688bd3487cf9edece3f7 | [
"BSD-3-Clause"
] | 17 | 2016-03-16T08:48:30.000Z | 2022-02-21T12:09:28.000Z | modules/core/src/split.cpp | nurisis/opencv | 4378b4d03d8415a132b6675883957243f95d75ee | [
"BSD-3-Clause"
] | 5 | 2017-10-15T15:44:47.000Z | 2022-02-17T11:31:32.000Z | modules/core/src/split.cpp | nurisis/opencv | 4378b4d03d8415a132b6675883957243f95d75ee | [
"BSD-3-Clause"
] | 25 | 2018-09-26T08:51:13.000Z | 2022-02-24T13:43:58.000Z | // This file is part of OpenCV project.
// It is subject to the license terms in the LICENSE file found in the top-level directory
// of this distribution and at http://opencv.org/license.html
#include "precomp.hpp"
#include "opencl_kernels_core.hpp"
namespace cv { namespace hal {
#if CV_NEON
template<typename T> s... | 42.786441 | 185 | 0.393797 | liqingshan |
0452ae4a768900c322fe1193c624b23be4479254 | 1,464 | hpp | C++ | src/aspell-60/common/filter_char.hpp | reydajp/build-spell | a88ffbb9ffedae3f20933b187c95851e47e0e4c3 | [
"MIT"
] | 31 | 2016-11-08T05:13:02.000Z | 2022-02-23T19:13:01.000Z | src/aspell-60/common/filter_char.hpp | reydajp/build-spell | a88ffbb9ffedae3f20933b187c95851e47e0e4c3 | [
"MIT"
] | 6 | 2017-01-17T20:21:55.000Z | 2021-09-02T07:36:18.000Z | src/aspell-60/common/filter_char.hpp | reydajp/build-spell | a88ffbb9ffedae3f20933b187c95851e47e0e4c3 | [
"MIT"
] | 5 | 2017-07-11T11:10:55.000Z | 2022-02-14T01:55:16.000Z | #ifndef acommon_filter_char_hh
#define acommon_filter_char_hh
// This file is part of The New Aspell
// Copyright (C) 2002 by Kevin Atkinson under the GNU LGPL license
// version 2.0 or 2.1. You should have received a copy of the LGPL
// license along with this library if you did not you can find
// it at http://www.... | 28.705882 | 69 | 0.638661 | reydajp |
0455e1b953175e5fa7f25afc9b03beefbaadcd2b | 3,559 | inl | C++ | runnable/Stack.inl | eladraz/morph | e80b93af449471fb2ca9e256188f9a92f631fbc2 | [
"BSD-3-Clause"
] | 4 | 2017-01-24T09:32:23.000Z | 2021-08-20T03:29:54.000Z | runnable/Stack.inl | eladraz/morph | e80b93af449471fb2ca9e256188f9a92f631fbc2 | [
"BSD-3-Clause"
] | null | null | null | runnable/Stack.inl | eladraz/morph | e80b93af449471fb2ca9e256188f9a92f631fbc2 | [
"BSD-3-Clause"
] | 1 | 2021-08-20T03:29:55.000Z | 2021-08-20T03:29:55.000Z | /*
* Copyright (c) 2008-2016, Integrity Project Ltd. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
*
* Redistributions of source code must retain the above copyright notice,
* this list ... | 25.421429 | 78 | 0.692329 | eladraz |
0455f1414c402e8cfef678358dc0fa8b56e2ad54 | 2,229 | cpp | C++ | FMODStudio/Source/FMODStudio/Private/FMODEvent.cpp | alessandrofama/ue4integration | 074118424f95fde7455ca6de4e992a2608ead146 | [
"MIT"
] | null | null | null | FMODStudio/Source/FMODStudio/Private/FMODEvent.cpp | alessandrofama/ue4integration | 074118424f95fde7455ca6de4e992a2608ead146 | [
"MIT"
] | null | null | null | FMODStudio/Source/FMODStudio/Private/FMODEvent.cpp | alessandrofama/ue4integration | 074118424f95fde7455ca6de4e992a2608ead146 | [
"MIT"
] | null | null | null | // Copyright (c), Firelight Technologies Pty, Ltd. 2012-2019.
#include "FMODEvent.h"
#include "FMODStudioModule.h"
#include "fmod_studio.hpp"
UFMODEvent::UFMODEvent(const FObjectInitializer &ObjectInitializer)
: Super(ObjectInitializer)
{
}
/** Get tags to show in content view */
void UFMODEvent::Get... | 37.779661 | 147 | 0.665321 | alessandrofama |
0459c857420fa66ea62ffc1905429b1cee9363d5 | 1,379 | cpp | C++ | include/igl/png/readPNG.cpp | rushmash/libwetcloth | 24f16481c68952c3d2a91acd6e3b74eb091b66bc | [
"BSD-3-Clause-Clear"
] | 28 | 2017-03-01T04:09:18.000Z | 2022-02-01T13:33:50.000Z | include/igl/png/readPNG.cpp | rushmash/libwetcloth | 24f16481c68952c3d2a91acd6e3b74eb091b66bc | [
"BSD-3-Clause-Clear"
] | 3 | 2017-03-09T05:22:49.000Z | 2017-08-02T18:38:05.000Z | include/igl/png/readPNG.cpp | rushmash/libwetcloth | 24f16481c68952c3d2a91acd6e3b74eb091b66bc | [
"BSD-3-Clause-Clear"
] | 17 | 2017-03-01T14:00:01.000Z | 2022-02-08T06:36:54.000Z | // This file is part of libigl, a simple c++ geometry processing library.
//
// Copyright (C) 2016 Daniele Panozzo <daniele.panozzo@gmail.com>
//
// This Source Code Form is subject to the terms of the Mozilla Public License
// v. 2.0. If a copy of the MPL was not distributed with this file, You can
// obtain one at ht... | 28.729167 | 78 | 0.647571 | rushmash |
045c0ec66c0e55f83e66ae30b656194e5ba64852 | 2,841 | cpp | C++ | test/unit/adl/oct/cpu/add_cons_close_oper.unit.cpp | flisboac/adl | a29f4ab2652e8146d4f97fd10f52526e4bc3563c | [
"MIT"
] | 2 | 2021-01-12T12:04:09.000Z | 2022-03-21T10:09:54.000Z | test/unit/adl/oct/cpu/add_cons_close_oper.unit.cpp | flisboac/adl | a29f4ab2652e8146d4f97fd10f52526e4bc3563c | [
"MIT"
] | 70 | 2017-02-25T16:37:48.000Z | 2018-01-28T22:15:42.000Z | test/unit/adl/oct/cpu/add_cons_close_oper.unit.cpp | flisboac/adl | a29f4ab2652e8146d4f97fd10f52526e4bc3563c | [
"MIT"
] | null | null | null | // $flisboac 2018-01-14
#include "adl_catch.hpp"
#include "adl/oct/cpu/closure_oper.hpp"
#include "adl/oct/cpu/add_cons_close_oper.hpp"
#include "adl/oct/cons.hpp"
#include "adl/oct/system.hpp"
#include "adl/oct/cpu/dense_dbm.hpp"
#include "adl/oct/cpu/seq_context.hpp"
using namespace adl::oct;
using namespace adl::o... | 35.074074 | 139 | 0.613868 | flisboac |
045c1f5e1a51ba243bb541b7645cabb7237e545e | 2,032 | cpp | C++ | plugins/opengl/src/texture/funcs/set_2d.cpp | cpreh/spacegameengine | 313a1c34160b42a5135f8223ffaa3a31bc075a01 | [
"BSL-1.0"
] | 2 | 2016-01-27T13:18:14.000Z | 2018-05-11T01:11:32.000Z | plugins/opengl/src/texture/funcs/set_2d.cpp | cpreh/spacegameengine | 313a1c34160b42a5135f8223ffaa3a31bc075a01 | [
"BSL-1.0"
] | null | null | null | plugins/opengl/src/texture/funcs/set_2d.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/opengl/call.hpp>
#include <sge/opengl/check_state.hpp>
#include <sge/opengl/color_bas... | 38.339623 | 92 | 0.718012 | cpreh |
045c670d8919bd4d658a5b55e884390a99fe6a0a | 4,818 | cpp | C++ | mainwindow.cpp | rossomah/waifu2x-converter-qt | 1e203ad160f6e69874f1dd391cec534abdc36324 | [
"MIT"
] | null | null | null | mainwindow.cpp | rossomah/waifu2x-converter-qt | 1e203ad160f6e69874f1dd391cec534abdc36324 | [
"MIT"
] | null | null | null | mainwindow.cpp | rossomah/waifu2x-converter-qt | 1e203ad160f6e69874f1dd391cec534abdc36324 | [
"MIT"
] | null | null | null | #include "mainwindow.h"
#include "ui_mainwindow.h"
#include "droplabel.h"
#include "processdialog.h"
#include "preferencesdialog.h"
#include "aboutdialog.h"
#include "processmodemodel.h"
#include <QFileDialog>
MainWindow::MainWindow(QWidget *parent) :
QMainWindow(parent),
ui(new Ui::MainWindow),
m_settings... | 34.170213 | 103 | 0.679743 | rossomah |
045d4d63848b049e7e86e47f4a829b066701d3df | 454 | cpp | C++ | WonderMake/Object/DependencyDestructor.cpp | nicolasgustafsson/WonderMake | 9661d5dab17cf98e06daf6ea77c5927db54d62f9 | [
"MIT"
] | 3 | 2020-03-27T15:25:19.000Z | 2022-01-18T14:12:25.000Z | WonderMake/Object/DependencyDestructor.cpp | nicolasgustafsson/WonderMake | 9661d5dab17cf98e06daf6ea77c5927db54d62f9 | [
"MIT"
] | null | null | null | WonderMake/Object/DependencyDestructor.cpp | nicolasgustafsson/WonderMake | 9661d5dab17cf98e06daf6ea77c5927db54d62f9 | [
"MIT"
] | null | null | null | #include "pch.h"
#include "DependencyDestructor.h"
DependencyDestructor::DependencyDestructor(UniqueFunction<void(Object&, void*)> aDestroyFunc) noexcept
: myDestroyFunc(std::move(aDestroyFunc))
{}
void DependencyDestructor::Destroy(Object& aObject, SComponent& aComponent)
{
myDestroyFunc(aObject, &aComponent);
}
... | 26.705882 | 102 | 0.799559 | nicolasgustafsson |
0460535ea80b720c029d52957f7462d8f1437044 | 1,991 | hpp | C++ | src/main/include/cyng/async/task/task_builder.hpp | solosTec/cyng | 3862a6b7a2b536d1f00fef20700e64170772dcff | [
"MIT"
] | null | null | null | src/main/include/cyng/async/task/task_builder.hpp | solosTec/cyng | 3862a6b7a2b536d1f00fef20700e64170772dcff | [
"MIT"
] | null | null | null | src/main/include/cyng/async/task/task_builder.hpp | solosTec/cyng | 3862a6b7a2b536d1f00fef20700e64170772dcff | [
"MIT"
] | null | null | null | /*
* The MIT License (MIT)
*
* Copyright (c) 2017 Sylko Olzscher
*
*/
#ifndef CYNG_ASYNC_TASK_BUILDER_HPP
#define CYNG_ASYNC_TASK_BUILDER_HPP
#include <cyng/async/task/task.hpp>
#include <cyng/async/mux.h>
#include <chrono>
namespace cyng
{
namespace async
{
/**
* Create a new task class
*/
t... | 23.987952 | 105 | 0.618282 | solosTec |
04618b56167c2afb23b07fc7a8c03d94ac5d020e | 4,753 | cpp | C++ | spaceship.cpp | shaungoh01/-Uni-Computer-Graphic-Assignemny | ec5098c1c2f30f3abacb8de663511f25a8b64d0b | [
"MIT"
] | null | null | null | spaceship.cpp | shaungoh01/-Uni-Computer-Graphic-Assignemny | ec5098c1c2f30f3abacb8de663511f25a8b64d0b | [
"MIT"
] | null | null | null | spaceship.cpp | shaungoh01/-Uni-Computer-Graphic-Assignemny | ec5098c1c2f30f3abacb8de663511f25a8b64d0b | [
"MIT"
] | null | null | null | #include <GL/glut.h>
#include <stdlib.h>
#include <time.h>
#include <ctime>
#include "spaceship.hpp"
MySpaceShip::MySpaceShip()
{
//Setup Quadric Object
pObj = gluNewQuadric();
gluQuadricNormals(pObj, GLU_SMOOTH);
posx = 0.0f;
posy = 10.0f;
posz = 2.0f;
roty = 0.0f;
//initial velocity (in u... | 24.626943 | 62 | 0.553124 | shaungoh01 |
0461d4b23fd08dadbc6ccba03f980035da92353d | 2,006 | hpp | C++ | libraries/chain/include/graphene/chain/protocol/son_wallet_withdraw.hpp | vampik33/peerplays | 9fd18b32c413ad978f38f95a09b7eff7235a9c1b | [
"MIT"
] | 45 | 2018-12-13T21:11:23.000Z | 2022-03-28T09:21:44.000Z | libraries/chain/include/graphene/chain/protocol/son_wallet_withdraw.hpp | vampik33/peerplays | 9fd18b32c413ad978f38f95a09b7eff7235a9c1b | [
"MIT"
] | 279 | 2018-12-18T08:52:43.000Z | 2022-03-24T19:03:29.000Z | libraries/chain/include/graphene/chain/protocol/son_wallet_withdraw.hpp | vampik33/peerplays | 9fd18b32c413ad978f38f95a09b7eff7235a9c1b | [
"MIT"
] | 25 | 2018-12-13T20:38:51.000Z | 2022-03-25T09:45:58.000Z | #pragma once
#include <graphene/chain/protocol/base.hpp>
#include <graphene/chain/sidechain_defs.hpp>
#include <fc/safe.hpp>
namespace graphene { namespace chain {
struct son_wallet_withdraw_create_operation : public base_operation
{
struct fee_parameters_type { uint64_t fee = 0; };
asset fe... | 35.192982 | 95 | 0.720339 | vampik33 |
046339ccd708b23e61fa5cc526dd7bf97a3512d7 | 2,633 | cc | C++ | lite/arm/math/im2sequence.cc | banbishan/Paddle-Lite | 02517c12c31609f413a1c47a83e25d3fbff07074 | [
"Apache-2.0"
] | 1 | 2019-08-21T05:54:42.000Z | 2019-08-21T05:54:42.000Z | lite/arm/math/im2sequence.cc | banbishan/Paddle-Lite | 02517c12c31609f413a1c47a83e25d3fbff07074 | [
"Apache-2.0"
] | null | null | null | lite/arm/math/im2sequence.cc | banbishan/Paddle-Lite | 02517c12c31609f413a1c47a83e25d3fbff07074 | [
"Apache-2.0"
] | 1 | 2019-10-11T09:34:49.000Z | 2019-10-11T09:34:49.000Z | // Copyright (c) 2019 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.068493 | 77 | 0.590961 | banbishan |
0463ff21ce8758867f178b840135651d22ddf08f | 1,305 | cpp | C++ | codeforce6/1079C. Playing Piano.cpp | khaled-farouk/My_problem_solving_solutions | 46ed6481fc9b424d0714bc717cd0ba050a6638ef | [
"MIT"
] | null | null | null | codeforce6/1079C. Playing Piano.cpp | khaled-farouk/My_problem_solving_solutions | 46ed6481fc9b424d0714bc717cd0ba050a6638ef | [
"MIT"
] | null | null | null | codeforce6/1079C. Playing Piano.cpp | khaled-farouk/My_problem_solving_solutions | 46ed6481fc9b424d0714bc717cd0ba050a6638ef | [
"MIT"
] | null | null | null | /*
Idea:
- Dynamic Programming
- If you reach the base case in the recursion, then
you have an answer, so print it.
- This method work if the dynamic programming answer
is true or false.
*/
#include <bits/stdc++.h>
using namespace std;
int const N = 1e5 + 1;
int n, a[N], dp[N][6];
vector<in... | 17.4 | 56 | 0.45977 | khaled-farouk |
04652172919828de08f918ebb22c9ccef7308f03 | 555 | cpp | C++ | src/gui/PlayingScreen.cpp | ballcue/meanshift-motion-tracking | f59886a88626ace8b6fb1fb167690072c24cc17c | [
"MIT"
] | null | null | null | src/gui/PlayingScreen.cpp | ballcue/meanshift-motion-tracking | f59886a88626ace8b6fb1fb167690072c24cc17c | [
"MIT"
] | null | null | null | src/gui/PlayingScreen.cpp | ballcue/meanshift-motion-tracking | f59886a88626ace8b6fb1fb167690072c24cc17c | [
"MIT"
] | null | null | null | #include "../../include/gui/PlayingScreen.h"
/* Derived-screen-specific additional frame processing for display*/
void PlayingScreen::processFrame(Mat& frame, const TrackingInfo& tracker) const {
drawTrackingMarker (
frame,
tracker.current()
);
}
void PlayingScreen::drawTrackingMarker(Mat& fra... | 25.227273 | 81 | 0.652252 | ballcue |
046afc267fd2a398fe420ba1b20c4d957d9ecb61 | 2,075 | cpp | C++ | fft.cpp | SJ-magic-youtube-VisualProgrammer/46__oF_Audio_InOut | c98349955f2a516fafd2f72b303128cf305e74bf | [
"MIT"
] | 1 | 2022-02-13T15:34:33.000Z | 2022-02-13T15:34:33.000Z | fft.cpp | SJ-magic-youtube-VisualProgrammer/46__oF_Audio_InOut | c98349955f2a516fafd2f72b303128cf305e74bf | [
"MIT"
] | null | null | null | fft.cpp | SJ-magic-youtube-VisualProgrammer/46__oF_Audio_InOut | c98349955f2a516fafd2f72b303128cf305e74bf | [
"MIT"
] | null | null | null | /************************************************************
************************************************************/
#include "fft.h"
/************************************************************
************************************************************/
/******************************
*********************... | 20.75 | 89 | 0.360482 | SJ-magic-youtube-VisualProgrammer |
046b065236406a07667a6ee6c8e615215e77a1ec | 1,132 | cpp | C++ | CLRS/String/LongestPalindrome.cpp | ComputerProgrammerStorager/DataStructureAlgorithm | 508f7e37898c907ea7ea6ec40749621a2349e93f | [
"MIT"
] | null | null | null | CLRS/String/LongestPalindrome.cpp | ComputerProgrammerStorager/DataStructureAlgorithm | 508f7e37898c907ea7ea6ec40749621a2349e93f | [
"MIT"
] | null | null | null | CLRS/String/LongestPalindrome.cpp | ComputerProgrammerStorager/DataStructureAlgorithm | 508f7e37898c907ea7ea6ec40749621a2349e93f | [
"MIT"
] | null | null | null | /*
Given a string s which consists of lowercase or uppercase letters, return the length of the longest palindrome that can be built with those letters.
Letters are case sensitive, for example, "Aa" is not considered a palindrome here.
Example 1:
Input: s = "abccccdd"
Output: 7
Explanation:
One longest palindrome ... | 21.358491 | 148 | 0.590989 | ComputerProgrammerStorager |
046bd4036f74b99487b2080e76d1afa8bbe8fdb2 | 1,385 | cpp | C++ | Desktop/CCore/src/video/GammaTable.cpp | SergeyStrukov/CCore-2-99 | 1eca5b9b2de067bbab43326718b877465ae664fe | [
"BSL-1.0"
] | 1 | 2016-05-22T07:51:02.000Z | 2016-05-22T07:51:02.000Z | Desktop/CCore/src/video/GammaTable.cpp | SergeyStrukov/CCore-2-99 | 1eca5b9b2de067bbab43326718b877465ae664fe | [
"BSL-1.0"
] | null | null | null | Desktop/CCore/src/video/GammaTable.cpp | SergeyStrukov/CCore-2-99 | 1eca5b9b2de067bbab43326718b877465ae664fe | [
"BSL-1.0"
] | null | null | null | /* GammaTable.cpp */
//----------------------------------------------------------------------------------------
//
// Project: CCore 3.00
//
// Tag: Desktop
//
// License: Boost Software License - Version 1.0 - August 17th, 2003
//
// see http://www.boost.org/LICENSE_1_0.txt or the local copy
//
// Copyr... | 19.507042 | 90 | 0.555235 | SergeyStrukov |
0475e337dbdad96a692616f58bd13ae0ef379153 | 5,797 | cpp | C++ | Source/AllProjects/Drivers/GenProto/Server/GenProtoS_CallResponse.cpp | MarkStega/CQC | c1d0e01ec2abcaa5b8eb1899b9f0522fecee4b07 | [
"MIT"
] | 51 | 2020-12-26T18:17:16.000Z | 2022-03-15T04:29:35.000Z | Source/AllProjects/Drivers/GenProto/Server/GenProtoS_CallResponse.cpp | MarkStega/CQC | c1d0e01ec2abcaa5b8eb1899b9f0522fecee4b07 | [
"MIT"
] | null | null | null | Source/AllProjects/Drivers/GenProto/Server/GenProtoS_CallResponse.cpp | MarkStega/CQC | c1d0e01ec2abcaa5b8eb1899b9f0522fecee4b07 | [
"MIT"
] | 4 | 2020-12-28T07:24:39.000Z | 2021-12-29T12:09:37.000Z | //
// FILE NAME: GenProtoS_CallResponse.cpp
//
// AUTHOR: Dean Roddey
//
// CREATED: 11/24/2003
//
// COPYRIGHT: Charmed Quark Systems, Ltd @ 2020
//
// This software is copyrighted by 'Charmed Quark Systems, Ltd' and
// the author (Dean Roddey.) It is licensed under the MIT Open Source
// license:
//
// https://op... | 26.962791 | 78 | 0.558737 | MarkStega |
04779e597994f9724d6ccdd8b42e5a4fb6b7c904 | 8,607 | cpp | C++ | drivers/ltr559/ltr559.cpp | graeme-winter/pimoroni-pico | b36784c03bf39e829f9c0b3444eb6051181bb76c | [
"MIT"
] | null | null | null | drivers/ltr559/ltr559.cpp | graeme-winter/pimoroni-pico | b36784c03bf39e829f9c0b3444eb6051181bb76c | [
"MIT"
] | null | null | null | drivers/ltr559/ltr559.cpp | graeme-winter/pimoroni-pico | b36784c03bf39e829f9c0b3444eb6051181bb76c | [
"MIT"
] | null | null | null | #include "ltr559.hpp"
#include <algorithm>
namespace pimoroni {
lookup::lookup(std::initializer_list<uint16_t> values) : lut(values) {
}
uint8_t lookup::index(uint16_t value) {
auto it = find(lut.begin(), lut.end(), value);
if(it == lut.end())
return 0;
return it - lut.begin();
}
uint16... | 29.782007 | 134 | 0.6748 | graeme-winter |
04793ebe7db7522cc1ddf61cec31cbe68b55cba3 | 916 | cpp | C++ | src/widget.cpp | FuSoftware/QOsuBut | cf89ee66a23efcddf94b6e38b7c708059e026995 | [
"MIT"
] | null | null | null | src/widget.cpp | FuSoftware/QOsuBut | cf89ee66a23efcddf94b6e38b7c708059e026995 | [
"MIT"
] | null | null | null | src/widget.cpp | FuSoftware/QOsuBut | cf89ee66a23efcddf94b6e38b7c708059e026995 | [
"MIT"
] | null | null | null | #include "widget.h"
Widget::Widget(QWidget *parent): QWidget(parent)
{
QVBoxLayout *l = new QVBoxLayout(this);
le = new QLineEdit(this);
label = new QLabel("Placeholder",this);
labelTime = new QLabel(this);
le->setValidator(new QIntValidator(0,100000,this));
l->addWidget(le);
l->addWidget(... | 20.818182 | 69 | 0.635371 | FuSoftware |
047abf09bdf3505d2fa2557e82e6bf7802596554 | 4,918 | cpp | C++ | aes_main.cpp | cxrasdfg/aes-des | d634da18b5dbf02e99fafd71c6d925e855291f21 | [
"MIT"
] | null | null | null | aes_main.cpp | cxrasdfg/aes-des | d634da18b5dbf02e99fafd71c6d925e855291f21 | [
"MIT"
] | null | null | null | aes_main.cpp | cxrasdfg/aes-des | d634da18b5dbf02e99fafd71c6d925e855291f21 | [
"MIT"
] | null | null | null | //
// Created by theppsh on 17-4-13.
//
#include <iostream>
#include <iomanip>
#include "src/aes.hpp"
#include "src/triple_des.hpp"
int main(int argc,char ** args){
/**aes 加密*/
/// 128位全0的秘钥
u_char key_block[]={0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0
};
u_char plain_block[] = {0... | 33.917241 | 123 | 0.603904 | cxrasdfg |
047fb2c64eae3736eec741f519400de9348f1f1f | 960 | cpp | C++ | Cpp/145_binary_tree_postorder_traversal/solution2.cpp | zszyellow/leetcode | 2ef6be04c3008068f8116bf28d70586e613a48c2 | [
"MIT"
] | 1 | 2015-12-19T23:05:35.000Z | 2015-12-19T23:05:35.000Z | Cpp/145_binary_tree_postorder_traversal/solution2.cpp | zszyellow/leetcode | 2ef6be04c3008068f8116bf28d70586e613a48c2 | [
"MIT"
] | null | null | null | Cpp/145_binary_tree_postorder_traversal/solution2.cpp | zszyellow/leetcode | 2ef6be04c3008068f8116bf28d70586e613a48c2 | [
"MIT"
] | null | null | null | /**
* Definition for a binary tree node.
* struct TreeNode {
* int val;
* TreeNode *left;
* TreeNode *right;
* TreeNode(int x) : val(x), left(NULL), right(NULL) {}
* };
*/
class Solution {
public:
vector<int> postorderTraversal(TreeNode* root)
{
vector<int> res;
if (!roo... | 23.414634 | 82 | 0.402083 | zszyellow |
0481fc084fe09bf1a197622a2abe5288d0e392f8 | 1,659 | hpp | C++ | core/storage/trie/impl/polkadot_trie_batch.hpp | Lederstrumpf/kagome | a5050ca04577c0570e21ce7322cc010153b6fe29 | [
"Apache-2.0"
] | null | null | null | core/storage/trie/impl/polkadot_trie_batch.hpp | Lederstrumpf/kagome | a5050ca04577c0570e21ce7322cc010153b6fe29 | [
"Apache-2.0"
] | null | null | null | core/storage/trie/impl/polkadot_trie_batch.hpp | Lederstrumpf/kagome | a5050ca04577c0570e21ce7322cc010153b6fe29 | [
"Apache-2.0"
] | null | null | null | /**
* Copyright Soramitsu Co., Ltd. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0
*/
#ifndef KAGOME_CORE_STORAGE_TRIE_IMPL_POLKADOT_TRIE_BATCH_HPP
#define KAGOME_CORE_STORAGE_TRIE_IMPL_POLKADOT_TRIE_BATCH_HPP
#include "common/buffer.hpp"
#include "storage/face/write_batch.hpp"
#include "storage/trie/i... | 30.163636 | 104 | 0.694394 | Lederstrumpf |
0483595ad4e4751bb81fe67379e81b88004ac9d7 | 17,761 | cpp | C++ | test/uri_builder_test.cpp | chfast/uri | c6dd135801061b641531bf23e971131904cb15a3 | [
"BSL-1.0"
] | null | null | null | test/uri_builder_test.cpp | chfast/uri | c6dd135801061b641531bf23e971131904cb15a3 | [
"BSL-1.0"
] | null | null | null | test/uri_builder_test.cpp | chfast/uri | c6dd135801061b641531bf23e971131904cb15a3 | [
"BSL-1.0"
] | null | null | null | // Copyright (c) Glyn Matthews 2012, 2013, 2014.
// Copyright 2012 Google, Inc.
// 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 <gtest/gtest.h>
#include <network/uri.hpp>
#include "string_utility.hpp"... | 23.776439 | 90 | 0.659422 | chfast |
04839dfd4e02508c8895013f0fcaf725a3d87a91 | 200 | cpp | C++ | content/rcpp_advanced_I/rnorm_manual.cpp | mfasiolo/sc2-2019 | 0fe0c4e1f65ac35c1f38e8f4ea071c76bce4a586 | [
"MIT"
] | 5 | 2020-02-25T07:38:08.000Z | 2021-06-22T16:15:03.000Z | content/rcpp_advanced_I/rnorm_manual.cpp | mfasiolo/sc2-2019 | 0fe0c4e1f65ac35c1f38e8f4ea071c76bce4a586 | [
"MIT"
] | null | null | null | content/rcpp_advanced_I/rnorm_manual.cpp | mfasiolo/sc2-2019 | 0fe0c4e1f65ac35c1f38e8f4ea071c76bce4a586 | [
"MIT"
] | 2 | 2020-02-25T07:38:10.000Z | 2020-04-26T06:02:14.000Z | #include <Rcpp.h>
using namespace Rcpp;
RcppExport SEXP rnorm_manual(SEXP n) {
NumericVector out( as<int>(n) );
RNGScope rngScope;
out = rnorm(as<int>(n), 0.0, 1.0);
return out;
} | 15.384615 | 38 | 0.63 | mfasiolo |
04848621f09ec43b5e6fd5bfa67a27a3096fd2b9 | 2,807 | hpp | C++ | include/chapter-4/square_matrix_multiply/square_matrix_multiply_recursive.hpp | zero4drift/CLRS_Cpp_Implementations | efafbb34fb9f83dedecdcf01395def27fd64a33a | [
"MIT"
] | null | null | null | include/chapter-4/square_matrix_multiply/square_matrix_multiply_recursive.hpp | zero4drift/CLRS_Cpp_Implementations | efafbb34fb9f83dedecdcf01395def27fd64a33a | [
"MIT"
] | null | null | null | include/chapter-4/square_matrix_multiply/square_matrix_multiply_recursive.hpp | zero4drift/CLRS_Cpp_Implementations | efafbb34fb9f83dedecdcf01395def27fd64a33a | [
"MIT"
] | null | null | null | // Only for matrix with dimension 2, 4, 8, 16...
#ifndef SQUARE_MATRIX_MULTIPLY_RECURSIVE_H
#define SQUARE_MATRIX_MULTIPLY_RECURSIVE_H
#include <utility>
namespace CLRS
{
template <typename T, std::size_t n>
void divide_matrix_4(T (&a)[n][n],
T (&b)[n/2][n/2],
T (&c)[n/2][n/2],
T (&d)[... | 28.07 | 82 | 0.526541 | zero4drift |
0486ad6de881a87ab53291a8a8d2f8c110f20b2e | 3,996 | hpp | C++ | includes/tools.hpp | Antip003/irc | 973c4e1ee3d231c6aca1a434a735f236d4d55e77 | [
"MIT"
] | 1 | 2021-11-29T21:41:10.000Z | 2021-11-29T21:41:10.000Z | includes/tools.hpp | Antip003/irc | 973c4e1ee3d231c6aca1a434a735f236d4d55e77 | [
"MIT"
] | null | null | null | includes/tools.hpp | Antip003/irc | 973c4e1ee3d231c6aca1a434a735f236d4d55e77 | [
"MIT"
] | null | null | null | #ifndef TOOLS_HPP
# define TOOLS_HPP
# include <string>
# include <vector>
# include "client.hpp"
# include <list>
# include "ircserv.hpp"
typedef std::vector<std::string> t_strvect;
typedef std::list<Client>::iterator t_citer;
/****************************************************/
/* additional tools helping the ... | 44.4 | 94 | 0.689189 | Antip003 |
0496310fb225f7616890d7c45f263ff8ff9a1313 | 2,205 | cpp | C++ | Tema1-2/ED11/source.cpp | Yule1223/Data-Structure | 90197a9f9d19332f3d2e240185bba6540eaa754d | [
"MIT"
] | null | null | null | Tema1-2/ED11/source.cpp | Yule1223/Data-Structure | 90197a9f9d19332f3d2e240185bba6540eaa754d | [
"MIT"
] | null | null | null | Tema1-2/ED11/source.cpp | Yule1223/Data-Structure | 90197a9f9d19332f3d2e240185bba6540eaa754d | [
"MIT"
] | null | null | null |
// Yule Zhang
#include <iostream>
#include <fstream>
using namespace std;
#include "queue_eda.h"
template <typename T>
class listaPlus : public queue<T> {
using Nodo = typename queue<T>::Nodo;
public:
void mezclar(listaPlus<T> & l1, listaPlus<T> & l2) {
if (l1.nelems == 0) {//Si l1 es vacia
this->prim = l2.p... | 18.22314 | 61 | 0.569161 | Yule1223 |
0496a3661681dbbbe22c4edf4d044121fb63df10 | 4,217 | hpp | C++ | Assignment7/Material.hpp | fuzhanzhan/Games101 | 9345d70283c44649e0fd99975361a2909ef4bdbe | [
"MIT"
] | 9 | 2020-07-27T12:03:38.000Z | 2021-11-01T09:26:31.000Z | Assignment7/Material.hpp | fuzhanzhan/Games101 | 9345d70283c44649e0fd99975361a2909ef4bdbe | [
"MIT"
] | null | null | null | Assignment7/Material.hpp | fuzhanzhan/Games101 | 9345d70283c44649e0fd99975361a2909ef4bdbe | [
"MIT"
] | 8 | 2020-08-20T02:56:56.000Z | 2022-03-06T12:09:35.000Z | #ifndef RAYTRACING_MATERIAL_H
#define RAYTRACING_MATERIAL_H
#include "Vector.hpp"
enum class MaterialType { DIFFUSE };
class Material
{
private:
// Compute reflection direction
Vector3f reflect(const Vector3f &I, const Vector3f &N) const
{
return I - 2 * I.dot(N) * N;
}
// Compute refraction direction using... | 24.805882 | 91 | 0.626749 | fuzhanzhan |
0496d38d5ca036a3d9eb921750231320620b7f96 | 1,726 | hpp | C++ | Headers/Internal/position.hpp | YarikTH/cpp-io-impl | faf62a578ceeae2ce41818aae8172da67ec00456 | [
"BSL-1.0"
] | 1 | 2022-02-15T02:58:58.000Z | 2022-02-15T02:58:58.000Z | Headers/Internal/position.hpp | YarikTH/cpp-io-impl | faf62a578ceeae2ce41818aae8172da67ec00456 | [
"BSL-1.0"
] | null | null | null | Headers/Internal/position.hpp | YarikTH/cpp-io-impl | faf62a578ceeae2ce41818aae8172da67ec00456 | [
"BSL-1.0"
] | 1 | 2021-12-19T13:25:43.000Z | 2021-12-19T13:25:43.000Z | /// \file
/// \brief Internal header file that contains implementation of the position
/// class.
/// \author Lyberta
/// \copyright BSLv1.
#pragma once
namespace std::io
{
constexpr position::position(streamoff off) noexcept
: m_position{off}
{
}
constexpr position::position(offset off) noexcept
: m_position{off... | 17.089109 | 76 | 0.715527 | YarikTH |
0496d52dffcf4e9d830b241efcac8cc3b80f8d64 | 3,271 | hh | C++ | hackt_docker/hackt/src/Object/inst/null_collection_type_manager.hh | broken-wheel/hacktist | 36e832ae7dd38b27bca9be7d0889d06054dc2806 | [
"MIT"
] | null | null | null | hackt_docker/hackt/src/Object/inst/null_collection_type_manager.hh | broken-wheel/hacktist | 36e832ae7dd38b27bca9be7d0889d06054dc2806 | [
"MIT"
] | null | null | null | hackt_docker/hackt/src/Object/inst/null_collection_type_manager.hh | broken-wheel/hacktist | 36e832ae7dd38b27bca9be7d0889d06054dc2806 | [
"MIT"
] | null | null | null | /**
\file "Object/inst/null_collection_type_manager.hh"
Template class for instance_collection's type manager.
$Id: null_collection_type_manager.hh,v 1.12 2007/04/15 05:52:19 fang Exp $
*/
#ifndef __HAC_OBJECT_INST_NULL_COLLECTION_TYPE_MANAGER_H__
#define __HAC_OBJECT_INST_NULL_COLLECTION_TYPE_MANAGER_H__
#incl... | 25.960317 | 79 | 0.751758 | broken-wheel |
0498d8a8dc6e8deff8fcd2f26aff14da0ddabebe | 1,447 | cc | C++ | DNSRecordType.cc | shuLhan/libvos | 831491b197fa8f267fd94966d406596896e6f25c | [
"BSD-3-Clause"
] | 1 | 2017-09-14T13:31:16.000Z | 2017-09-14T13:31:16.000Z | DNSRecordType.cc | shuLhan/libvos | 831491b197fa8f267fd94966d406596896e6f25c | [
"BSD-3-Clause"
] | null | null | null | DNSRecordType.cc | shuLhan/libvos | 831491b197fa8f267fd94966d406596896e6f25c | [
"BSD-3-Clause"
] | 5 | 2015-04-11T02:59:06.000Z | 2021-03-03T19:45:39.000Z | /**
* Copyright 2017 M. Shulhan (ms@kilabit.info). All rights reserved.
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
#include "DNSRecordType.hh"
namespace vos {
const char* DNSRecordType::__cname = "DNSRecordType";
const int DNSRecordType::SIZE = 22;
... | 19.039474 | 75 | 0.615757 | shuLhan |
049949e220d8f31825a76a600514a0de3d2b3cdd | 10,584 | cpp | C++ | Source/System/auth/nsal.cpp | blgrossMS/xbox-live-api | 17c586336e11f0fa3a2a3f3acd665b18c5487b24 | [
"MIT"
] | 2 | 2021-07-17T13:34:20.000Z | 2022-01-09T00:55:51.000Z | Source/System/auth/nsal.cpp | blgrossMS/xbox-live-api | 17c586336e11f0fa3a2a3f3acd665b18c5487b24 | [
"MIT"
] | null | null | null | Source/System/auth/nsal.cpp | blgrossMS/xbox-live-api | 17c586336e11f0fa3a2a3f3acd665b18c5487b24 | [
"MIT"
] | 1 | 2018-11-18T08:32:40.000Z | 2018-11-18T08:32:40.000Z | //*********************************************************
//
// Copyright (c) Microsoft. All rights reserved.
// 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.
/... | 29.157025 | 125 | 0.616875 | blgrossMS |
049c7c6bf5fa81b209230f55f8236cdcf3fd46e6 | 13,043 | cpp | C++ | tesseract-ocr/wordrec/seam.cpp | danauclair/CardScan | bc8cad5485e67d78419bb757d668bf5b73231b8d | [
"BSD-3-Clause",
"MIT"
] | 28 | 2015-04-09T04:17:29.000Z | 2019-05-28T11:59:22.000Z | tesseract-ocr/wordrec/seam.cpp | danauclair/CardScan | bc8cad5485e67d78419bb757d668bf5b73231b8d | [
"BSD-3-Clause",
"MIT"
] | 2 | 2017-03-23T11:44:57.000Z | 2017-12-09T04:02:54.000Z | tesseract-ocr/wordrec/seam.cpp | danauclair/CardScan | bc8cad5485e67d78419bb757d668bf5b73231b8d | [
"BSD-3-Clause",
"MIT"
] | 17 | 2015-01-20T08:37:00.000Z | 2019-02-04T02:55:30.000Z | /* -*-C-*-
********************************************************************************
*
* File: seam.c (Formerly seam.c)
* Description:
* Author: Mark Seaman, OCR Technology
* Created: Fri Oct 16 14:37:00 1987
* Modified: Fri May 17 16:30:13 1991 (Mark Seaman) marks@hpgrlt
* Languag... | 26.892784 | 83 | 0.602162 | danauclair |
04a2bea699c47c2db9a3cd4905a84798ec55ef08 | 9,011 | hh | C++ | include/maxscale/server.hh | crspecter/MaxScale | 471fa20a09ebc954fc3304500037b6b55dbbf9f1 | [
"BSD-3-Clause"
] | 1 | 2021-02-07T01:57:32.000Z | 2021-02-07T01:57:32.000Z | include/maxscale/server.hh | crspecter/MaxScale | 471fa20a09ebc954fc3304500037b6b55dbbf9f1 | [
"BSD-3-Clause"
] | null | null | null | include/maxscale/server.hh | crspecter/MaxScale | 471fa20a09ebc954fc3304500037b6b55dbbf9f1 | [
"BSD-3-Clause"
] | null | null | null | /*
* Copyright (c) 2018 MariaDB Corporation Ab
*
* Use of this software is governed by the Business Source License included
* in the LICENSE.TXT file and at www.mariadb.com/bsl11.
*
* Change Date: 2025-01-25
*
* On the date above, in accordance with the Business Source License, use
* of this software will be g... | 28.247649 | 106 | 0.610032 | crspecter |
04a5b3d2a1ab865d6ffc452ef13cb12de16bfc01 | 2,144 | cpp | C++ | working-plan/delegates/date-delegate.cpp | lgsilva3087/working-plan | cd79f45dc23ac997c9a48d23c3a373461a11ae58 | [
"MIT"
] | null | null | null | working-plan/delegates/date-delegate.cpp | lgsilva3087/working-plan | cd79f45dc23ac997c9a48d23c3a373461a11ae58 | [
"MIT"
] | null | null | null | working-plan/delegates/date-delegate.cpp | lgsilva3087/working-plan | cd79f45dc23ac997c9a48d23c3a373461a11ae58 | [
"MIT"
] | null | null | null | /*
* Created on: Sept 15, 2012
* Author: guille
*/
#include "date-delegate.h"
#include <utils.h>
#include <QDateEdit>
DateDelegate::DateDelegate()
: QStyledItemDelegate()
{
}
void DateDelegate::paint(QPainter *painter, const QStyleOptionViewItem &option,
const QModelIndex &index... | 28.586667 | 94 | 0.623134 | lgsilva3087 |
04a827c85eee25d051ca1e13b0d6f68c263a4f04 | 642 | cc | C++ | code/render/physics/physicsbody.cc | gscept/nebula-trifid | e7c0a0acb05eedad9ed37a72c1bdf2d658511b42 | [
"BSD-2-Clause"
] | 67 | 2015-03-30T19:56:16.000Z | 2022-03-11T13:52:17.000Z | code/render/physics/physicsbody.cc | gscept/nebula-trifid | e7c0a0acb05eedad9ed37a72c1bdf2d658511b42 | [
"BSD-2-Clause"
] | 5 | 2015-04-15T17:17:33.000Z | 2016-02-11T00:40:17.000Z | code/render/physics/physicsbody.cc | gscept/nebula-trifid | e7c0a0acb05eedad9ed37a72c1bdf2d658511b42 | [
"BSD-2-Clause"
] | 34 | 2015-03-30T15:08:00.000Z | 2021-09-23T05:55:10.000Z | //------------------------------------------------------------------------------
// physicsbody.cc
// (C) 2012-2016 Individual contributors, see AUTHORS file
//------------------------------------------------------------------------------
#include "stdneb.h"
#include "physics/physicsbody.h"
namespace Physics
{
#if (... | 33.789474 | 80 | 0.573209 | gscept |
04aa6d5d23d6a0cd6eeaf4f8339101ab1adf2c54 | 6,105 | cc | C++ | test/main.cc | michaelkuk/uv-secnet | 2048f63dcafa6713fbc0e7c7d258cfa6ca74a7a5 | [
"MIT"
] | 1 | 2019-04-27T15:24:13.000Z | 2019-04-27T15:24:13.000Z | test/main.cc | michaelkuk/uv-secnet | 2048f63dcafa6713fbc0e7c7d258cfa6ca74a7a5 | [
"MIT"
] | null | null | null | test/main.cc | michaelkuk/uv-secnet | 2048f63dcafa6713fbc0e7c7d258cfa6ca74a7a5 | [
"MIT"
] | null | null | null | #include "uv_secnet.hh"
#include <iostream>
#include <functional>
#include <string>
#include <sstream>
#include <uv.h>
#include <memory.h>
#include <memory>
#include <http_parser.h>
typedef struct {
int counter = 0;
std::shared_ptr<uv_secnet::IConnection> conn = 0;
uv_timer_t* timer = nullptr;
uv_tcp_t* tcpH... | 27.5 | 169 | 0.642588 | michaelkuk |
04abc62efa52d9dcd6d838c93265f6fc16bea6d9 | 5,461 | cpp | C++ | src/OSGB.cpp | embarktrucks/GeographicLib | 1521a463e44843790abbf21aa6e214b93bbf01df | [
"MIT"
] | null | null | null | src/OSGB.cpp | embarktrucks/GeographicLib | 1521a463e44843790abbf21aa6e214b93bbf01df | [
"MIT"
] | null | null | null | src/OSGB.cpp | embarktrucks/GeographicLib | 1521a463e44843790abbf21aa6e214b93bbf01df | [
"MIT"
] | null | null | null | /**
* \file OSGB.cpp
* \brief Implementation for geographic_lib::OSGB class
*
* Copyright (c) Charles Karney (2010-2017) <charles@karney.com> and licensed
* under the MIT/X11 License. For more information, see
* https://geographiclib.sourceforge.io/
**************************************************************... | 32.313609 | 77 | 0.505951 | embarktrucks |
04ae3908f29be5c0b731c7f52f54c893af83da0e | 16,195 | cpp | C++ | src/formula.cpp | fcimeson/cbTSP | aaf102c7a6a9f3b36a8b5f0c62570c40409ec7c8 | [
"Apache-2.0"
] | 7 | 2018-08-11T15:46:14.000Z | 2022-01-28T18:39:19.000Z | src/formula.cpp | fcimeson/cbTSP | aaf102c7a6a9f3b36a8b5f0c62570c40409ec7c8 | [
"Apache-2.0"
] | null | null | null | src/formula.cpp | fcimeson/cbTSP | aaf102c7a6a9f3b36a8b5f0c62570c40409ec7c8 | [
"Apache-2.0"
] | 1 | 2019-01-18T20:38:53.000Z | 2019-01-18T20:38:53.000Z | /********************************************************************************
Copyright 2017 Frank Imeson and Stephen L. Smith
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:... | 26.946755 | 91 | 0.367768 | fcimeson |
04ae6528676f31336a1509fc10ce4187a0f93f18 | 4,486 | hpp | C++ | mtlpp_ue4_ex_03/renderer/mtlpp/depth_stencil.hpp | dtonna/mtlpp_ue4_ex_03 | 80b945c5b5dbbf6efbe525fb371a2e77657cd595 | [
"Unlicense"
] | null | null | null | mtlpp_ue4_ex_03/renderer/mtlpp/depth_stencil.hpp | dtonna/mtlpp_ue4_ex_03 | 80b945c5b5dbbf6efbe525fb371a2e77657cd595 | [
"Unlicense"
] | null | null | null | mtlpp_ue4_ex_03/renderer/mtlpp/depth_stencil.hpp | dtonna/mtlpp_ue4_ex_03 | 80b945c5b5dbbf6efbe525fb371a2e77657cd595 | [
"Unlicense"
] | null | null | null | /*
* Copyright 2016-2017 Nikolay Aleksiev. All rights reserved.
* License: https://github.com/naleksiev/mtlpp/blob/master/LICENSE
*/
// Copyright Epic Games, Inc. All Rights Reserved.
// Modifications for Unreal Engine
#pragma once
#include "declare.hpp"
#include "imp_DepthStencil.hpp"
#include "ns.hpp"
#include ... | 34.244275 | 295 | 0.689924 | dtonna |
04b24bfd53799b832594a74becbe2d41bc106104 | 3,097 | cpp | C++ | utils.cpp | jaypadath/openpower-pnor-code-mgmt | 10e915abf1bd31d8b1dae8d01c731ac8dd76c7c0 | [
"Apache-2.0"
] | null | null | null | utils.cpp | jaypadath/openpower-pnor-code-mgmt | 10e915abf1bd31d8b1dae8d01c731ac8dd76c7c0 | [
"Apache-2.0"
] | 2 | 2019-07-30T15:36:06.000Z | 2021-09-28T15:45:27.000Z | utils.cpp | jaypadath/openpower-pnor-code-mgmt | 10e915abf1bd31d8b1dae8d01c731ac8dd76c7c0 | [
"Apache-2.0"
] | 2 | 2019-07-30T14:06:52.000Z | 2019-09-26T15:25:05.000Z | #include "config.h"
#include "utils.hpp"
#include <phosphor-logging/elog-errors.hpp>
#include <phosphor-logging/elog.hpp>
#include <phosphor-logging/log.hpp>
#include <xyz/openbmc_project/Common/error.hpp>
#if OPENSSL_VERSION_NUMBER < 0x10100000L
#include <string.h>
static void* OPENSSL_zalloc(size_t num)
{
vo... | 26.470085 | 78 | 0.621569 | jaypadath |
04b35c8cf7b9118dee19bc892bcd69cf302380cd | 5,463 | cpp | C++ | ext/stub/java/text/DateFormat_Field-stub.cpp | pebble2015/cpoi | 6dcc0c5e13e3e722b4ef9fd0baffbf62bf71ead6 | [
"Apache-2.0"
] | null | null | null | ext/stub/java/text/DateFormat_Field-stub.cpp | pebble2015/cpoi | 6dcc0c5e13e3e722b4ef9fd0baffbf62bf71ead6 | [
"Apache-2.0"
] | null | null | null | ext/stub/java/text/DateFormat_Field-stub.cpp | pebble2015/cpoi | 6dcc0c5e13e3e722b4ef9fd0baffbf62bf71ead6 | [
"Apache-2.0"
] | null | null | null | // Generated from /Library/Java/JavaVirtualMachines/jdk1.8.0_144.jdk/Contents/Home/jre/lib/rt.jar
#include <java/text/DateFormat_Field.hpp>
extern void unimplemented_(const char16_t* name);
java::text::DateFormat_Field::DateFormat_Field(const ::default_init_tag&)
: super(*static_cast< ::default_init_tag* >(0))
{
... | 31.039773 | 122 | 0.730551 | pebble2015 |
04b682e2bee638e6058c378a04e2f6ce49c9266e | 6,969 | cpp | C++ | modules/juce_gui_extra/misc/juce_PushNotifications.cpp | studiobee/JUCE6-Svalbard-Fork | 2bcd2101811f6a3a803a7f68d3bac2d0d53f4146 | [
"ISC"
] | 2,270 | 2020-04-15T15:14:37.000Z | 2022-03-31T19:13:53.000Z | modules/juce_gui_extra/misc/juce_PushNotifications.cpp | studiobee/JUCE6-Svalbard-Fork | 2bcd2101811f6a3a803a7f68d3bac2d0d53f4146 | [
"ISC"
] | 471 | 2017-04-25T07:57:02.000Z | 2020-04-08T21:06:47.000Z | modules/juce_gui_extra/misc/juce_PushNotifications.cpp | studiobee/JUCE6-Svalbard-Fork | 2bcd2101811f6a3a803a7f68d3bac2d0d53f4146 | [
"ISC"
] | 633 | 2020-04-15T16:45:55.000Z | 2022-03-31T13:32:29.000Z | /*
==============================================================================
This file is part of the JUCE library.
Copyright (c) 2020 - Raw Material Software Limited
JUCE is an open source library subject to commercial or open-source
licensing.
By using JUCE, you agree to the terms of... | 30.3 | 112 | 0.638686 | studiobee |
04b7bba6077c701cfe3ba87b19eb7a5b761f9e5a | 1,018 | cpp | C++ | runtime/src/events/ExplosionEvent.cpp | Timo972/altv-go-module | 9762938c019d47b52eceba6761bb6f900ea4f2e8 | [
"MIT"
] | null | null | null | runtime/src/events/ExplosionEvent.cpp | Timo972/altv-go-module | 9762938c019d47b52eceba6761bb6f900ea4f2e8 | [
"MIT"
] | null | null | null | runtime/src/events/ExplosionEvent.cpp | Timo972/altv-go-module | 9762938c019d47b52eceba6761bb6f900ea4f2e8 | [
"MIT"
] | null | null | null | #include "ExplosionEvent.h"
Go::ExplosionEvent::ExplosionEvent(ModuleLibrary *module) : IEvent(module) { }
void Go::ExplosionEvent::Call(const alt::CEvent *ev)
{
static auto call = GET_FUNC(Library, "altExplosionEvent", bool (*)(alt::IPlayer* source, Entity target, Position position, short explosionType, unsigned... | 29.085714 | 175 | 0.649312 | Timo972 |
04b8560c82b0f92dd8c621ce7934ca440540a3be | 59,762 | cpp | C++ | Source/VirtualDirectInputDevice.cpp | hamzahamidi/Xidi | d7585ecf23fd17dd5be4e69f63bae08aa0e96988 | [
"BSD-3-Clause"
] | 1 | 2021-06-05T00:22:08.000Z | 2021-06-05T00:22:08.000Z | Source/VirtualDirectInputDevice.cpp | hamzahamidi/Xidi | d7585ecf23fd17dd5be4e69f63bae08aa0e96988 | [
"BSD-3-Clause"
] | null | null | null | Source/VirtualDirectInputDevice.cpp | hamzahamidi/Xidi | d7585ecf23fd17dd5be4e69f63bae08aa0e96988 | [
"BSD-3-Clause"
] | null | null | null | /*****************************************************************************
* Xidi
* DirectInput interface for XInput controllers.
*****************************************************************************
* Authored by Samuel Grossman
* Copyright (c) 2016-2021
********************************************... | 47.354992 | 309 | 0.652555 | hamzahamidi |
04bc038e7a46f22a3c8533cca80fe11a4e90bb20 | 25,705 | hpp | C++ | Common_3/ThirdParty/OpenSource/entt/entity/snapshot.hpp | pixowl/The-Forge | 0df6d608ed7ec556f17b91a749e2f19d75973dc9 | [
"Apache-2.0"
] | 2 | 2019-12-05T20:43:33.000Z | 2020-12-01T02:57:44.000Z | Common_3/ThirdParty/OpenSource/entt/entity/snapshot.hpp | guillaumeblanc/The-Forge | 0df6d608ed7ec556f17b91a749e2f19d75973dc9 | [
"Apache-2.0"
] | null | null | null | Common_3/ThirdParty/OpenSource/entt/entity/snapshot.hpp | guillaumeblanc/The-Forge | 0df6d608ed7ec556f17b91a749e2f19d75973dc9 | [
"Apache-2.0"
] | 2 | 2020-05-10T08:41:12.000Z | 2020-05-24T18:58:47.000Z | #ifndef ENTT_ENTITY_SNAPSHOT_HPP
#define ENTT_ENTITY_SNAPSHOT_HPP
#include "../../TinySTL/array.h"
#include <cstddef>
#include <utility>
#include <cassert>
#include <iterator>
#include <type_traits>
#include "../../TinySTL/unordered_map.h"
#include "../config/config.h"
#include "entt_traits.hpp"
#include "utility.hpp... | 35.455172 | 127 | 0.642482 | pixowl |
04bc831052d4cdf3976f4c818e371795872dbb1e | 21,081 | hpp | C++ | libs/pika/executors/include/pika/executors/dataflow.hpp | pika-org/pika | c80f542b2432a7f108fcfba31a5fe5073ad2b3e1 | [
"BSL-1.0"
] | 13 | 2022-01-17T12:01:48.000Z | 2022-03-16T10:03:14.000Z | libs/pika/executors/include/pika/executors/dataflow.hpp | pika-org/pika | c80f542b2432a7f108fcfba31a5fe5073ad2b3e1 | [
"BSL-1.0"
] | 163 | 2022-01-17T17:36:45.000Z | 2022-03-31T17:42:57.000Z | libs/pika/executors/include/pika/executors/dataflow.hpp | pika-org/pika | c80f542b2432a7f108fcfba31a5fe5073ad2b3e1 | [
"BSL-1.0"
] | 4 | 2022-01-19T08:44:22.000Z | 2022-01-31T23:16:21.000Z | // Copyright (c) 2007-2021 Hartmut Kaiser
//
// SPDX-License-Identifier: BSL-1.0
// 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)
#pragma once
#include <pika/config.hpp>
#include <pika/allocator_support/interna... | 38.468978 | 80 | 0.590342 | pika-org |
04c38aa757ac89e639ef2dc40de352a9681f2ef4 | 1,509 | cpp | C++ | Sources/Kore/Display.cpp | foundry2D/Kinc | 890baf38d0be53444ebfdeac8662479b23d169ea | [
"Zlib"
] | 203 | 2019-05-30T22:40:19.000Z | 2022-03-16T22:01:09.000Z | Sources/Kore/Display.cpp | foundry2D/Kinc | 890baf38d0be53444ebfdeac8662479b23d169ea | [
"Zlib"
] | 136 | 2019-06-01T04:39:33.000Z | 2022-03-14T12:38:03.000Z | Sources/Kore/Display.cpp | foundry2D/Kinc | 890baf38d0be53444ebfdeac8662479b23d169ea | [
"Zlib"
] | 211 | 2019-06-05T12:22:57.000Z | 2022-03-24T08:44:18.000Z | #include "Display.h"
#include <kinc/display.h>
using namespace Kore;
namespace {
const int MAXIMUM_DISPLAYS = 16;
Display displays[MAXIMUM_DISPLAYS];
}
void Display::init() {
kinc_display_init();
}
Display *Display::primary() {
displays[kinc_primary_display()]._index = kinc_primary_display();
return &displays... | 19.597403 | 72 | 0.75613 | foundry2D |
04c6e26e243767d876a118491c35ca4de1595f39 | 32,524 | cpp | C++ | miniapps/meshing/mesh-explorer.cpp | liruipeng/mfem | bf3f1f1327f064baae40693256c9559feae1a99a | [
"BSD-3-Clause"
] | null | null | null | miniapps/meshing/mesh-explorer.cpp | liruipeng/mfem | bf3f1f1327f064baae40693256c9559feae1a99a | [
"BSD-3-Clause"
] | 1 | 2020-04-21T00:30:35.000Z | 2020-04-21T00:32:28.000Z | miniapps/meshing/mesh-explorer.cpp | liruipeng/mfem | bf3f1f1327f064baae40693256c9559feae1a99a | [
"BSD-3-Clause"
] | null | null | null | // Copyright (c) 2010-2020, Lawrence Livermore National Security, LLC. Produced
// at the Lawrence Livermore National Laboratory. All Rights reserved. See files
// LICENSE and NOTICE for details. LLNL-CODE-806117.
//
// This file is part of the MFEM library. For more information and source code
// availability visit ht... | 30.114815 | 82 | 0.432388 | liruipeng |
04cc4144cb271c7f973845fba2c60cfc12d382c7 | 2,145 | cpp | C++ | linear_structures/linked_list/138_copy-list-with-random-pointer.cpp | b1tank/leetcode | 0b71eb7a4f52291ff072b1280d6b76e68f7adfee | [
"MIT"
] | null | null | null | linear_structures/linked_list/138_copy-list-with-random-pointer.cpp | b1tank/leetcode | 0b71eb7a4f52291ff072b1280d6b76e68f7adfee | [
"MIT"
] | null | null | null | linear_structures/linked_list/138_copy-list-with-random-pointer.cpp | b1tank/leetcode | 0b71eb7a4f52291ff072b1280d6b76e68f7adfee | [
"MIT"
] | null | null | null | // Author: b1tank
// Email: b1tank@outlook.com
//=================================
/*
138_copy-list-with-random-pointer LeetCode
Solution:
- hashmap
- "DNA" replication
- for the original linked list: cut and splice
*/
#include <iostream>
#include <unordered_map>
using namespace std... | 23.315217 | 75 | 0.432168 | b1tank |
04d19bf9db73b0092e647a6310b8fa8531f1bb61 | 1,943 | cpp | C++ | src/entities/Entity.cpp | MatthiasvZ/Gesneria | c60f041460a0c3f91a2d0cd34c7e2209fefdee9e | [
"Unlicense"
] | null | null | null | src/entities/Entity.cpp | MatthiasvZ/Gesneria | c60f041460a0c3f91a2d0cd34c7e2209fefdee9e | [
"Unlicense"
] | null | null | null | src/entities/Entity.cpp | MatthiasvZ/Gesneria | c60f041460a0c3f91a2d0cd34c7e2209fefdee9e | [
"Unlicense"
] | null | null | null | #include "Entity.h"
Entity::Entity(float x, float y, float hitboxSize)
: x(x), y(y), hitboxSize(hitboxSize), acceleration(0.0f), velocity(0.0f), angle(0.0f), speedCap(0.0f), frictionF(0.0f), active(true)
{
}
void Entity::moveTo(float x, float y)
{
this->x = x;
this->y = y;
updateVertices();
}
void E... | 26.986111 | 136 | 0.633042 | MatthiasvZ |
04d3892ce1f9010dd8d3b6675ad7d8e02b095211 | 652 | cpp | C++ | math/two_sat/gen/cycle_unsat.cpp | tko919/library-checker-problems | 007a3ef79d1a1824e68545ab326d1523d9c05262 | [
"Apache-2.0"
] | 290 | 2019-06-06T22:20:36.000Z | 2022-03-27T12:45:04.000Z | math/two_sat/gen/cycle_unsat.cpp | tko919/library-checker-problems | 007a3ef79d1a1824e68545ab326d1523d9c05262 | [
"Apache-2.0"
] | 536 | 2019-06-06T18:25:36.000Z | 2022-03-29T11:46:36.000Z | math/two_sat/gen/cycle_unsat.cpp | tko919/library-checker-problems | 007a3ef79d1a1824e68545ab326d1523d9c05262 | [
"Apache-2.0"
] | 82 | 2019-06-06T18:17:55.000Z | 2022-03-21T07:40:31.000Z | #include "random.h"
#include <iostream>
using namespace std;
int main(int, char* argv[]) {
long long seed = atoll(argv[1]);
auto gen = Random(seed);
int n = 500'000 - 2;
int m = 500'000;
printf("p cnf %d %d\n", n, m);
// all same
for (int i = 1; i < n; i++) {
printf("%d %d 0\n"... | 20.375 | 42 | 0.48773 | tko919 |
04d3b8565fc9d41b44169ea856f352d83d8d5623 | 2,482 | cpp | C++ | src/objects/boid/Bird.cpp | asilvaigor/opengl_winter | 0081c6ee39d493eb4f9e0ac92222937062866776 | [
"MIT"
] | 1 | 2020-04-24T22:55:51.000Z | 2020-04-24T22:55:51.000Z | src/objects/boid/Bird.cpp | asilvaigor/opengl_winter | 0081c6ee39d493eb4f9e0ac92222937062866776 | [
"MIT"
] | null | null | null | src/objects/boid/Bird.cpp | asilvaigor/opengl_winter | 0081c6ee39d493eb4f9e0ac92222937062866776 | [
"MIT"
] | null | null | null | //
// Created by Aloysio Galvão Lopes on 2020-05-30.
//
#include "utils/Texture.h"
#include "Bird.h"
std::vector<GLuint> Bird::textures;
Bird::Bird(Shaders &shaders, vcl::vec3 pos, float scale, vcl::vec3 speed, float turning) :
Object(true), dp(speed), turining(turning),
bird("../src/assets/models/bird.fbx",... | 25.587629 | 103 | 0.67083 | asilvaigor |
04d3d197efa085417590304d3cc73499fef2ac3c | 27,756 | cpp | C++ | Export/macos/obj/src/fracs/_Fraction/Fraction_Impl_.cpp | TrilateralX/TrilateralLimeTriangle | 219d8e54fc3861dc1ffeb3da25da6eda349847c1 | [
"MIT"
] | null | null | null | Export/macos/obj/src/fracs/_Fraction/Fraction_Impl_.cpp | TrilateralX/TrilateralLimeTriangle | 219d8e54fc3861dc1ffeb3da25da6eda349847c1 | [
"MIT"
] | null | null | null | Export/macos/obj/src/fracs/_Fraction/Fraction_Impl_.cpp | TrilateralX/TrilateralLimeTriangle | 219d8e54fc3861dc1ffeb3da25da6eda349847c1 | [
"MIT"
] | null | null | null | // Generated by Haxe 4.2.0-rc.1+cb30bd580
#include <hxcpp.h>
#ifndef INCLUDED_95f339a1d026d52c
#define INCLUDED_95f339a1d026d52c
#include "hxMath.h"
#endif
#ifndef INCLUDED_Std
#include <Std.h>
#endif
#ifndef INCLUDED_fracs_Fracs
#include <fracs/Fracs.h>
#endif
#ifndef INCLUDED_fracs__Fraction_Fraction_Impl_
#include ... | 43.36875 | 292 | 0.60931 | TrilateralX |
04d5de7bf0de3f81eb9a1ed908f07980b15a5999 | 832 | hpp | C++ | SDEngine/include/Utility/Timing.hpp | xubury/SDEngine | 31e44fc5c78ce6b8f0c3b128fd5e0158150590e8 | [
"BSD-3-Clause"
] | null | null | null | SDEngine/include/Utility/Timing.hpp | xubury/SDEngine | 31e44fc5c78ce6b8f0c3b128fd5e0158150590e8 | [
"BSD-3-Clause"
] | 4 | 2021-12-10T05:01:49.000Z | 2022-03-19T10:16:14.000Z | SDEngine/include/Utility/Timing.hpp | xubury/SDEngine | 31e44fc5c78ce6b8f0c3b128fd5e0158150590e8 | [
"BSD-3-Clause"
] | null | null | null | #ifndef SD_TIMING_HPP
#define SD_TIMING_HPP
#include "Utility/Base.hpp"
#include <cstdint>
#include <queue>
#include <chrono>
namespace SD {
using ClockType = std::chrono::high_resolution_clock;
class SD_UTILITY_API Clock {
public:
Clock();
float GetElapsedMS() const;
// Restart the clock, and ret... | 17.333333 | 57 | 0.6875 | xubury |
04d8921962bfed4a4e66aa1b8f2dc444f4b2c589 | 4,743 | cpp | C++ | basic-cpp/Stacks&Queues/BucketMeasures/src/main.cpp | gramai/school-related | 152d67b4e475c3ba7c9370d6de39b38fc453392d | [
"MIT"
] | null | null | null | basic-cpp/Stacks&Queues/BucketMeasures/src/main.cpp | gramai/school-related | 152d67b4e475c3ba7c9370d6de39b38fc453392d | [
"MIT"
] | null | null | null | basic-cpp/Stacks&Queues/BucketMeasures/src/main.cpp | gramai/school-related | 152d67b4e475c3ba7c9370d6de39b38fc453392d | [
"MIT"
] | null | null | null | #include <iostream>
#include <stack>
#define NMAX=10
using namespace std;
// A class is created to better implement the problem
class Bucket{
private:
stack <int> liter_list; // Is a stack where each element can be int(1)
int bucket_size;// Max size of bucket
public:
Bucket(int bucket_s... | 32.710345 | 109 | 0.580223 | gramai |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.