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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
0436cca5c3b1ade8eb879f856cb4e43ae6440918 | 58,563 | cpp | C++ | Sources/src/Characters.cpp | Tifox/Grog-Knight | 377a661286cda7ee3b2b2d0099641897938c2f8f | [
"Apache-2.0"
] | null | null | null | Sources/src/Characters.cpp | Tifox/Grog-Knight | 377a661286cda7ee3b2b2d0099641897938c2f8f | [
"Apache-2.0"
] | null | null | null | Sources/src/Characters.cpp | Tifox/Grog-Knight | 377a661286cda7ee3b2b2d0099641897938c2f8f | [
"Apache-2.0"
] | null | null | null | /**
* 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... | 39.330423 | 169 | 0.656455 | Tifox |
043ba0b1ee49e8128c31eac32bf9c71fdc03f996 | 696 | cpp | C++ | dev/src/host_core/bitset.cpp | FateForWindows/recompiler | a3f4ef5b0482c879826f97132eed9cd9273f8a59 | [
"MIT"
] | 1,473 | 2017-06-27T19:25:41.000Z | 2022-03-30T03:18:35.000Z | dev/src/host_core/bitset.cpp | Grima04/recompiler | 29c71bc26092c45508866bd7e7a0bd8a6160a898 | [
"MIT"
] | 20 | 2017-07-27T22:21:24.000Z | 2021-05-13T15:23:00.000Z | dev/src/host_core/bitset.cpp | Grima04/recompiler | 29c71bc26092c45508866bd7e7a0bd8a6160a898 | [
"MIT"
] | 113 | 2017-08-09T20:41:53.000Z | 2022-03-08T03:58:12.000Z | #include "build.h"
#include "bitset.h"
namespace utils
{
BitSet::BitSet(const uint32 numBits /*= 0*/)
: m_numBits(0)
{
Resize(numBits);
}
void BitSet::Resize(const uint32 numBits /*= 0*/)
{
if (m_numBits != numBits)
{
const auto oldBitCount = m_numBits;
const auto numWords = (numBits + 31) / 32;
... | 18.315789 | 74 | 0.622126 | FateForWindows |
043f3a4242dac41996321320f1ddbb56fa4c745c | 407 | cpp | C++ | 13_OCR/src/sf_extension.cpp | eduherminio/Academic_ArtificialIntelligence | f0ec4d35cef64a1bf6841ea7ecf1d33017b3745f | [
"MIT"
] | 3 | 2017-05-16T22:25:16.000Z | 2019-05-07T16:12:21.000Z | 13_OCR/src/sf_extension.cpp | eduherminio/Academic_ArtificialIntelligence | f0ec4d35cef64a1bf6841ea7ecf1d33017b3745f | [
"MIT"
] | null | null | null | 13_OCR/src/sf_extension.cpp | eduherminio/Academic_ArtificialIntelligence | f0ec4d35cef64a1bf6841ea7ecf1d33017b3745f | [
"MIT"
] | null | null | null | #include "../header/sf_extension.h"
namespace sf_extension
{
sf::Image raw_a_sfml(const std::vector<uint8_t>& m, const unsigned fil, const unsigned col)
{
sf::Image im;
im.create(col, fil); //Dimensiones cambiadas
for (unsigned i = 0; i != fil; ++i)
for (unsigned j = 0; j != col; ++j)
im.setPixel(j, i,... | 25.4375 | 92 | 0.626536 | eduherminio |
0442e34caf29fcaee50509b2f44ffe80b3dd76e8 | 3,780 | cpp | C++ | OSHStudio/oshbuttonw.cpp | loryx636/PedalButtonController | 5ec5d9bf58cd4decebd338a7adf7045ff7bcd7ec | [
"MIT"
] | 77 | 2016-07-23T21:47:44.000Z | 2022-02-02T07:50:36.000Z | OSHStudio/oshbuttonw.cpp | loryx636/PedalButtonController | 5ec5d9bf58cd4decebd338a7adf7045ff7bcd7ec | [
"MIT"
] | 16 | 2018-03-27T14:56:32.000Z | 2021-05-13T15:26:21.000Z | OSHStudio/oshbuttonw.cpp | hliendo/PedalButtonController | cf28b5ca3ac601808d2e77f97c44fee625e4c8c2 | [
"MIT"
] | 26 | 2016-08-20T23:38:28.000Z | 2022-01-24T08:25:04.000Z | #include "oshbuttonw.h"
#include "ui_oshbuttonw.h"
#include <QMenu>
#include <QPainter>
oshbuttonw::oshbuttonw(QWidget *parent) :
QWidget(parent),
ui(new Ui::oshbuttonw)
{
ui->setupUi(this);
QMenu *xmenu = new QMenu();
QMenu* submenuJ = xmenu->addMenu( "Joystick" );
QMenu*... | 43.448276 | 141 | 0.636243 | loryx636 |
0447904b65d990d532b2545dce62b007d840e69c | 316 | cpp | C++ | unittest/TestBool.cpp | degustaf/lisp-compiler | e176d5b07d68456b07fda516b722213b07f46248 | [
"MIT"
] | null | null | null | unittest/TestBool.cpp | degustaf/lisp-compiler | e176d5b07d68456b07fda516b722213b07f46248 | [
"MIT"
] | null | null | null | unittest/TestBool.cpp | degustaf/lisp-compiler | e176d5b07d68456b07fda516b722213b07f46248 | [
"MIT"
] | null | null | null | #include "Bool.hpp"
#include "unity.h"
void test_true() {
TEST_ASSERT_EQUAL_STRING("true", T->toString().c_str());
}
void test_false() {
TEST_ASSERT_EQUAL_STRING("false", F->toString().c_str());
}
int main(void) {
UNITY_BEGIN();
RUN_TEST(test_true);
RUN_TEST(test_false);
return UNITY_END();
}
| 16.631579 | 58 | 0.667722 | degustaf |
0449b1bf182f07e1393eda76fedfe5861ab993b4 | 8,323 | cpp | C++ | winrt/lib/utils/DxgiUtilities.cpp | r2d2rigo/Win2D | 3f06d4f19b7d16b67859a1b30ac770215ef3e52d | [
"MIT"
] | 1,002 | 2015-01-09T19:40:01.000Z | 2019-05-04T12:05:09.000Z | winrt/lib/utils/DxgiUtilities.cpp | r2d2rigo/Win2D | 3f06d4f19b7d16b67859a1b30ac770215ef3e52d | [
"MIT"
] | 667 | 2015-01-02T19:04:11.000Z | 2019-05-03T14:43:51.000Z | winrt/lib/utils/DxgiUtilities.cpp | SunburstApps/Win2D.WinUI | 75a33f8f4c0c785c2d1b478589fd4d3a9c5b53df | [
"MIT"
] | 258 | 2015-01-06T07:44:49.000Z | 2019-05-01T15:50:59.000Z | // Copyright (c) Microsoft Corporation. All rights reserved.
//
// Licensed under the MIT License. See LICENSE.txt in the project root for license information.
#include "pch.h"
namespace ABI { namespace Microsoft { namespace Graphics { namespace Canvas
{
ComPtr<ID3D11Texture2D> GetTexture2DForDXGISurface(IDXGISur... | 37.15625 | 98 | 0.678481 | r2d2rigo |
044ad7911ef6e781ae36d43cf581ecd3f588db82 | 10,194 | cpp | C++ | numerics/fast_fourier_transform_test.cpp | erplsf/Principia | 1f2a1fc53f8a73c1bc67f12213169e6969c8488f | [
"MIT"
] | 565 | 2015-01-04T21:47:18.000Z | 2022-03-22T12:04:58.000Z | numerics/fast_fourier_transform_test.cpp | erplsf/Principia | 1f2a1fc53f8a73c1bc67f12213169e6969c8488f | [
"MIT"
] | 1,019 | 2015-01-03T11:42:27.000Z | 2022-03-29T21:02:15.000Z | numerics/fast_fourier_transform_test.cpp | erplsf/Principia | 1f2a1fc53f8a73c1bc67f12213169e6969c8488f | [
"MIT"
] | 92 | 2015-02-11T23:08:58.000Z | 2022-03-21T03:35:37.000Z | #include "numerics/fast_fourier_transform.hpp"
#include <algorithm>
#include <random>
#include <vector>
#include "geometry/complexification.hpp"
#include "geometry/frame.hpp"
#include "geometry/named_quantities.hpp"
#include "gmock/gmock.h"
#include "gtest/gtest.h"
#include "quantities/elementary_functions.hpp"
#inc... | 42.298755 | 79 | 0.597312 | erplsf |
044f4718ff317c63650ca203b098803f3c64edf9 | 5,461 | hpp | C++ | Engine/Renderer/EditorUI/Editor.hpp | MadLadSquad/UntitledVulkanGameEngine | e7d41ab7fe6e104ad4aed6363cb384032ff6c184 | [
"MIT"
] | 16 | 2020-12-13T09:38:04.000Z | 2022-03-20T14:33:55.000Z | Engine/Renderer/EditorUI/Editor.hpp | MadLadSquad/UntitledVulkanGameEngine | e7d41ab7fe6e104ad4aed6363cb384032ff6c184 | [
"MIT"
] | 8 | 2020-12-25T14:49:41.000Z | 2021-08-25T01:21:53.000Z | Engine/Renderer/EditorUI/Editor.hpp | MadLadSquad/UntitledVulkanGameEngine | e7d41ab7fe6e104ad4aed6363cb384032ff6c184 | [
"MIT"
] | 4 | 2021-04-05T13:19:53.000Z | 2022-03-18T10:56:35.000Z | // Editor.hpp
// Last update 17/10/2021 by Madman10K
#pragma once
#include <Renderer/Camera/Camera.hpp>
#include <Renderer/Textures/Texture.hpp>
#include <Renderer/OpenGL/Components/GLFrameBuffer.hpp>
#include <Core/Actor.hpp>
#include <UVKLogImGui.h>
namespace UVK
{
#ifndef PRODUCTION
/**
* @brief Controls t... | 31.028409 | 114 | 0.57224 | MadLadSquad |
0451f5c6c7c037acd5294977ba773faee1373a76 | 1,300 | hpp | C++ | test/elias_delta_test.hpp | lewisgdljr/toy_compression | d8c047ce08a38445cbe1dfeab6e489de7855b823 | [
"CC0-1.0"
] | null | null | null | test/elias_delta_test.hpp | lewisgdljr/toy_compression | d8c047ce08a38445cbe1dfeab6e489de7855b823 | [
"CC0-1.0"
] | null | null | null | test/elias_delta_test.hpp | lewisgdljr/toy_compression | d8c047ce08a38445cbe1dfeab6e489de7855b823 | [
"CC0-1.0"
] | null | null | null | /*
* Toy Compression - Toy Compression Code
* Written in 2018 by Gerald Lewis <lewisgdljr@gmail.com>
*
* To the extent possible under law, the author(s) have dedicated all copyright
* and related and neighboring rights to this software to the public domain
* worldwide. This software is distributed without any war... | 34.210526 | 79 | 0.655385 | lewisgdljr |
0453c3e600289def5e2d96e431d3f4e3d79099ef | 1,887 | cpp | C++ | codes/leetcode/StampingTheSequence.cpp | smmehrab/problem-solving | 4aeab1673f18d3270ee5fc9b64ed6805eacf4af5 | [
"MIT"
] | null | null | null | codes/leetcode/StampingTheSequence.cpp | smmehrab/problem-solving | 4aeab1673f18d3270ee5fc9b64ed6805eacf4af5 | [
"MIT"
] | null | null | null | codes/leetcode/StampingTheSequence.cpp | smmehrab/problem-solving | 4aeab1673f18d3270ee5fc9b64ed6805eacf4af5 | [
"MIT"
] | null | null | null | /*
************************************************
username : smmehrab
fullname : s.m.mehrabul islam
email : mehrab.24csedu.001@gmail.com
institute : university of dhaka, bangladesh
session : 2017-2018
************************************************
*/
class Solution {
private:
enum St... | 26.577465 | 68 | 0.418654 | smmehrab |
045792140d9b3b4518aa0d13176176024559fa04 | 4,331 | cpp | C++ | dialogallenamento.cpp | bibi-the-brave/QONTAINER | 81ca5920febcff88ac1dffd75b82c89bf0e56842 | [
"MIT"
] | 3 | 2019-07-26T18:23:14.000Z | 2020-06-10T11:50:33.000Z | dialogallenamento.cpp | bibi-the-brave/QONTAINER | 81ca5920febcff88ac1dffd75b82c89bf0e56842 | [
"MIT"
] | null | null | null | dialogallenamento.cpp | bibi-the-brave/QONTAINER | 81ca5920febcff88ac1dffd75b82c89bf0e56842 | [
"MIT"
] | null | null | null | /*
* Andrea Favero
* 1125545
* andrea.favero.8@studenti.unipd.it
*/
#include "dialogallenamento.h"
#include <QStringList>
#include <QMessageBox>
#include "contenitore.h"
#include <memory>
#include "persona.h"
#include <QDate>
#include <QDateEdit>
#include "allenamento.h"
DialogAllenamento::DialogAllenamento(
... | 32.320896 | 101 | 0.674902 | bibi-the-brave |
045cf2f7920d8a78aff468254931864521a416d5 | 13,627 | cpp | C++ | src/realm/sync/noinst/protocol_codec.cpp | forkkit/realm-core | e385baa30b2b1820bb2322d545f133e6101ee85b | [
"Apache-2.0"
] | null | null | null | src/realm/sync/noinst/protocol_codec.cpp | forkkit/realm-core | e385baa30b2b1820bb2322d545f133e6101ee85b | [
"Apache-2.0"
] | null | null | null | src/realm/sync/noinst/protocol_codec.cpp | forkkit/realm-core | e385baa30b2b1820bb2322d545f133e6101ee85b | [
"Apache-2.0"
] | null | null | null | #include <realm/util/assert.hpp>
#include <realm/util/base64.hpp>
#include <realm/util/from_chars.hpp>
#include <realm/sync/noinst/protocol_codec.hpp>
namespace realm::_impl {
using OutputBuffer = util::ResettableExpandableBufferOutputStream;
// Client protocol
void ClientProtocol::make_bind_message(int protocol_ve... | 46.667808 | 118 | 0.626697 | forkkit |
045e5825136a9c0f11cb7e76d71d69a26394ce00 | 788 | cpp | C++ | archive/3/kafelki.cpp | Aleshkev/algoritmika | fc95b0c0f318d9eb4ef1fef4cc3c6e85d2417189 | [
"MIT"
] | 2 | 2019-05-04T09:37:09.000Z | 2019-05-22T18:07:28.000Z | archive/3/kafelki.cpp | Aleshkev/algoritmika | fc95b0c0f318d9eb4ef1fef4cc3c6e85d2417189 | [
"MIT"
] | null | null | null | archive/3/kafelki.cpp | Aleshkev/algoritmika | fc95b0c0f318d9eb4ef1fef4cc3c6e85d2417189 | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
using namespace std;
typedef int I;
int main()
{
ios_base::sync_with_stdio(false);
cin.tie(0); cout.tie(0);
I n, m;
cin >> n >> m;
const I lim = 1000000;
vector<I> ntiles(lim + 1);
for(I i = 0; i < n; ++i) {
I x;
cin >> x;
++ntiles[x];
... | 17.130435 | 50 | 0.388325 | Aleshkev |
045f2d5b45da70b390f5c264c81a578fd328b25e | 2,797 | cpp | C++ | array-min-amount-lines-to-draw-chart/min_lines.cpp | JBlakd/self-study | 71cb86d43fe7f6514657958db0c0e81113bd4c43 | [
"MIT"
] | null | null | null | array-min-amount-lines-to-draw-chart/min_lines.cpp | JBlakd/self-study | 71cb86d43fe7f6514657958db0c0e81113bd4c43 | [
"MIT"
] | null | null | null | array-min-amount-lines-to-draw-chart/min_lines.cpp | JBlakd/self-study | 71cb86d43fe7f6514657958db0c0e81113bd4c43 | [
"MIT"
] | null | null | null | #include <algorithm>
#include <cmath>
#include <iostream>
#include <string>
#include <vector>
using namespace std;
class Solution {
public:
int minimumLines(vector<vector<int>>& stockPrices) {
if (stockPrices.size() == 1) {
return 0;
}
sort(stockPrices.begin(), stockPrices.... | 36.324675 | 314 | 0.5463 | JBlakd |
0461291fbff3ef601a7f19db2251e0c6fd763036 | 6,787 | cpp | C++ | src/demos/multicore/demo_MCORE_particlesNSC.cpp | iicfcii/chrono | d42e58d6e7fb2a2b254510c1c174789dc9f95dfe | [
"BSD-3-Clause"
] | 3 | 2019-01-15T07:40:33.000Z | 2019-01-15T09:16:45.000Z | src/demos/multicore/demo_MCORE_particlesNSC.cpp | iicfcii/chrono | d42e58d6e7fb2a2b254510c1c174789dc9f95dfe | [
"BSD-3-Clause"
] | 1 | 2019-10-25T10:35:29.000Z | 2019-10-25T10:35:29.000Z | src/demos/multicore/demo_MCORE_particlesNSC.cpp | iicfcii/chrono | d42e58d6e7fb2a2b254510c1c174789dc9f95dfe | [
"BSD-3-Clause"
] | null | null | null | // =============================================================================
// PROJECT CHRONO - http://projectchrono.org
//
// Copyright (c) 2014 projectchrono.org
// All rights reserved.
//
// Use of this source code is governed by a BSD-style license that can be found
// in the LICENSE file at the top level of t... | 36.101064 | 119 | 0.606896 | iicfcii |
046b0b7f1b4ddb93b3b735842a64a9a6f1a3f68e | 111,473 | cpp | C++ | src/interp/iz3proof_itp.cpp | wangpengmit/z3 | a951ff076976587dcadfd863ca779c0c215cc8b7 | [
"MIT"
] | 1 | 2021-09-07T03:24:22.000Z | 2021-09-07T03:24:22.000Z | src/interp/iz3proof_itp.cpp | wangpengmit/z3 | a951ff076976587dcadfd863ca779c0c215cc8b7 | [
"MIT"
] | null | null | null | src/interp/iz3proof_itp.cpp | wangpengmit/z3 | a951ff076976587dcadfd863ca779c0c215cc8b7 | [
"MIT"
] | null | null | null | /*++
Copyright (c) 2011 Microsoft Corporation
Module Name:
iz3proof.cpp
Abstract:
This class defines a simple interpolating proof system.
Author:
Ken McMillan (kenmcmil)
Revision History:
--*/
#ifdef _WINDOWS
#pragma warning(disable:4996)
#pragma warning(disable:4800)
#pragma warning(disable:... | 35.959032 | 133 | 0.530514 | wangpengmit |
046be77e3d5494c50397cb3cea0a1b51612e7c00 | 11,364 | cpp | C++ | user/MIT_Controller/Controllers/VisionMPC/VisionSolverMPC.cpp | zbwu/Cheetah-Software | 286ca1eac576c61df76c71979f4e8940537ee084 | [
"MIT"
] | 1 | 2021-11-18T03:36:47.000Z | 2021-11-18T03:36:47.000Z | user/MIT_Controller/Controllers/VisionMPC/VisionSolverMPC.cpp | zbwu/Cheetah-Software | 286ca1eac576c61df76c71979f4e8940537ee084 | [
"MIT"
] | null | null | null | user/MIT_Controller/Controllers/VisionMPC/VisionSolverMPC.cpp | zbwu/Cheetah-Software | 286ca1eac576c61df76c71979f4e8940537ee084 | [
"MIT"
] | null | null | null | #include "VisionSolverMPC.h"
#include "../convexMPC/common_types.h"
#include "VisionMPC_interface.h"
#include "VisionRobotState.h"
#include <Eigen/Dense>
#include <cmath>
#include <unsupported/Eigen/MatrixFunctions>
#include <qpOASES.hpp>
#include <stdio.h>
#include <sys/time.h>
#define V_BIG_NUMBER 5e10
//big enough ... | 24.334047 | 122 | 0.606213 | zbwu |
046c3beec9586190ca957b554148e76734fa7217 | 3,327 | cpp | C++ | code/engine.vc2008/xrRender/xrRender/RenderTargetPhaseGamma.cpp | icetorch2001/xray-oxygen | 8c210ac2824f794cea69266048fe12d584ee3f04 | [
"Apache-2.0"
] | 1 | 2021-09-14T14:28:56.000Z | 2021-09-14T14:28:56.000Z | code/engine.vc2008/xrRender/xrRender/RenderTargetPhaseGamma.cpp | ArtemGen/xray-oxygen | f62d3e1f4e211986c057fd37e97fd03c98b5e275 | [
"Apache-2.0"
] | null | null | null | code/engine.vc2008/xrRender/xrRender/RenderTargetPhaseGamma.cpp | ArtemGen/xray-oxygen | f62d3e1f4e211986c057fd37e97fd03c98b5e275 | [
"Apache-2.0"
] | 3 | 2021-11-01T06:21:26.000Z | 2022-01-08T16:13:23.000Z | #include "stdafx.h"
#include "dxRenderDeviceRender.h"
void CRenderTarget::PhaseGammaGenerateLUT()
{
u32 Offset = 0;
Fvector2 p0, p1;
#ifdef USE_DX11
p0.set(0.0f, 0.0f);
p1.set(1.0f, 1.0f);
#else
float _w = float(Device.dwWidth);
float _h = float(Device.dwHeight);
p0.set(0.5f/_w, 0.5f/_h);
p1.set((_w+0.5f)/_w... | 29.184211 | 107 | 0.700631 | icetorch2001 |
04712d5d90d19783db5a63cf406cf4ad8da860ff | 750 | hpp | C++ | TeensyRoomLighting/include/led_strip_runtime.hpp | william-redenbaugh/TeensyApartmentCenter | 1f0b053d25f2c7ab55ed9ef796c9c9b2fd7e3eaf | [
"MIT"
] | null | null | null | TeensyRoomLighting/include/led_strip_runtime.hpp | william-redenbaugh/TeensyApartmentCenter | 1f0b053d25f2c7ab55ed9ef796c9c9b2fd7e3eaf | [
"MIT"
] | null | null | null | TeensyRoomLighting/include/led_strip_runtime.hpp | william-redenbaugh/TeensyApartmentCenter | 1f0b053d25f2c7ab55ed9ef796c9c9b2fd7e3eaf | [
"MIT"
] | null | null | null | #ifndef _LED_STRIP_RUNTIME_HPP
#define _LED_STRIP_RUNTIME_HPP
// Arduino runtime
#include <Arduino.h>
// Operating System stuff
#include "OS/OSMutexKernel.h"
#include "OS/OSSignalKernel.h"
#include "OS/OSThreadKernel.h"
// Proto Message Callbacks
#include "MODULES/PROTOCALLBACKS/teensy_coms.h"
// Serial DMA buffer... | 19.230769 | 48 | 0.752 | william-redenbaugh |
04739ff7efb7786f8e1a72a6b236447a64b864e6 | 7,435 | cpp | C++ | 8.cpp | user3984/Data-Structure | 96d48e512c3f4151597fd00a25d0343e100c5a58 | [
"MIT"
] | 1 | 2021-06-12T18:17:36.000Z | 2021-06-12T18:17:36.000Z | 8.cpp | user3984/Data-Structure | 96d48e512c3f4151597fd00a25d0343e100c5a58 | [
"MIT"
] | null | null | null | 8.cpp | user3984/Data-Structure | 96d48e512c3f4151597fd00a25d0343e100c5a58 | [
"MIT"
] | null | null | null | #include <iostream>
using namespace std;
const int MAXNUM = 10000;
class UFSet {
private:
int currentSize; //当前元素个数
int maxSize; //最大元素个数
int * parent; //双亲数组
public:
UFSet(int sz); //构造函数
~UFSet(); //析构函数
int findRoot(int n); //寻找n所在树的根结点
void Union(int root1, int root2); //合并
... | 24.061489 | 130 | 0.522932 | user3984 |
04768981acf2cd1a48f59fa230b7a3ce1fa65cf6 | 4,860 | cpp | C++ | test/algorithm/ends_with.cpp | mydeveloperday/range-v3 | 66c9f5fb528f55b75c5737199bd7bd82a39b8613 | [
"MIT"
] | 1 | 2019-07-21T02:51:05.000Z | 2019-07-21T02:51:05.000Z | test/algorithm/ends_with.cpp | mydeveloperday/range-v3 | 66c9f5fb528f55b75c5737199bd7bd82a39b8613 | [
"MIT"
] | null | null | null | test/algorithm/ends_with.cpp | mydeveloperday/range-v3 | 66c9f5fb528f55b75c5737199bd7bd82a39b8613 | [
"MIT"
] | null | null | null | // Range v3 library
//
// Copyright Johel Guerrero 2019
//
// Use, modification and distribution is subject to the
// Boost Software License, Version 0.0. (See accompanying
// file LICENSE_0_0.txt or copy at
// http://www.boost.org/LICENSE_0_0.txt)
//
// Project home: https://github.com/ericniebler/range-v3
//
#i... | 43.392857 | 78 | 0.575309 | mydeveloperday |
047893e20575d6ed7b742c1f69c41f301cfbd526 | 991 | cpp | C++ | CodeForces/1155B/19582077_AC_31ms_112kB.cpp | BakaErii/ACM_Collection | d368b15c7f1c84472424d5e61e5ebc667f589025 | [
"WTFPL"
] | null | null | null | CodeForces/1155B/19582077_AC_31ms_112kB.cpp | BakaErii/ACM_Collection | d368b15c7f1c84472424d5e61e5ebc667f589025 | [
"WTFPL"
] | null | null | null | CodeForces/1155B/19582077_AC_31ms_112kB.cpp | BakaErii/ACM_Collection | d368b15c7f1c84472424d5e61e5ebc667f589025 | [
"WTFPL"
] | null | null | null | /**
* @author Moe_Sakiya sakiya@tun.moe
* @date 2019-05-04 10:11:15
*
*/
#include <iostream>
#include <string>
#include <algorithm>
#include <set>
#include <map>
#include <vector>
#include <stack>
#include <queue>
#include <cstdio>
#include <cstring>
#include <cstdlib>
#include <cmath>
using namespace std;
... | 15.730159 | 38 | 0.545913 | BakaErii |
0479269ed477672d57379e6c06d272d576f9effb | 2,590 | cc | C++ | src/windows/libraries/advapi32/functions/CryptSetKeyParam.cc | srpape/IntroVirt | fe553221c40b8ef71f06e79c9d54d9e123a06c89 | [
"Apache-2.0"
] | null | null | null | src/windows/libraries/advapi32/functions/CryptSetKeyParam.cc | srpape/IntroVirt | fe553221c40b8ef71f06e79c9d54d9e123a06c89 | [
"Apache-2.0"
] | null | null | null | src/windows/libraries/advapi32/functions/CryptSetKeyParam.cc | srpape/IntroVirt | fe553221c40b8ef71f06e79c9d54d9e123a06c89 | [
"Apache-2.0"
] | null | null | null | /*
* Copyright 2021 Assured Information Security, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by a... | 33.205128 | 94 | 0.699614 | srpape |
047b47738ef402700f480187b052450e769e5f17 | 2,328 | cpp | C++ | Current/364_Nested_List_Weight_Sum_II/main.cpp | camelboat/LeetCode_Archive | c29d263e068752a9ad355925f326b56f672bb584 | [
"MIT"
] | 3 | 2019-09-21T16:25:44.000Z | 2021-08-29T20:43:57.000Z | Current/364_Nested_List_Weight_Sum_II/main.cpp | camelboat/LeetCode_Archive | c29d263e068752a9ad355925f326b56f672bb584 | [
"MIT"
] | null | null | null | Current/364_Nested_List_Weight_Sum_II/main.cpp | camelboat/LeetCode_Archive | c29d263e068752a9ad355925f326b56f672bb584 | [
"MIT"
] | null | null | null | /**
* // This is the interface that allows for creating nested lists.
* // You should not implement it, or speculate about its implementation
* class NestedInteger {
* public:
* // Constructor initializes an empty nested list.
* NestedInteger();
*
* // Constructor initializes a single integer.
* ... | 32.333333 | 95 | 0.590636 | camelboat |
047e1c11272b2b9559b74f49b04888a53c086204 | 1,845 | hpp | C++ | bulletgba/generator/data/code/kotuanzenx/bb11-sp.hpp | pqrs-org/BulletGBA | a294007902970242b496f2528b4762cfef22bc86 | [
"Unlicense"
] | 5 | 2020-03-24T07:44:49.000Z | 2021-08-30T14:43:31.000Z | bulletgba/generator/data/code/kotuanzenx/bb11-sp.hpp | pqrs-org/BulletGBA | a294007902970242b496f2528b4762cfef22bc86 | [
"Unlicense"
] | null | null | null | bulletgba/generator/data/code/kotuanzenx/bb11-sp.hpp | pqrs-org/BulletGBA | a294007902970242b496f2528b4762cfef22bc86 | [
"Unlicense"
] | null | null | null | #ifndef GENERATED_a005748f8f92904d2311dfe3b414a7f4_HPP
#define GENERATED_a005748f8f92904d2311dfe3b414a7f4_HPP
#include "bullet.hpp"
void stepfunc_9ddc4354b3b6352fd89ab4e2f0c31324_e66975fd8c5d22625d6b85355b0e95bf(BulletInfo *p);
void stepfunc_0ef30cf0a3b34c9f0171b4f4595a2dcf_e66975fd8c5d22625d6b85355b0e95bf(Bullet... | 63.62069 | 104 | 0.911111 | pqrs-org |
0483ca47a0de70e75aba6d9a8cb61dfa1e9bc09b | 4,273 | cpp | C++ | openr/kvstore/KvStorePublisher.cpp | jstrizich/openr | d3c9038f41d1fc94ab9248b96a24de15517af22e | [
"MIT"
] | null | null | null | openr/kvstore/KvStorePublisher.cpp | jstrizich/openr | d3c9038f41d1fc94ab9248b96a24de15517af22e | [
"MIT"
] | null | null | null | openr/kvstore/KvStorePublisher.cpp | jstrizich/openr | d3c9038f41d1fc94ab9248b96a24de15517af22e | [
"MIT"
] | null | null | null | /**
* Copyright (c) 2014-present, Facebook, Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
#include <openr/kvstore/KvStorePublisher.h>
#include <re2/re2.h>
#include <folly/ExceptionString.h>
#include <folly/io/async/SSLContex... | 33.124031 | 79 | 0.69436 | jstrizich |
04849c7543dbda174460a08149b89ac2ac543d94 | 2,372 | hpp | C++ | include/actl/geometry/algorithm/point/sort_by_angle.hpp | AlCash07/ACTL | 15de4e2783d8e39dbd8e10cd635aaab328ca4f5b | [
"BSL-1.0"
] | 17 | 2018-08-22T06:48:20.000Z | 2022-02-22T21:20:09.000Z | include/actl/geometry/algorithm/point/sort_by_angle.hpp | AlCash07/ACTL | 15de4e2783d8e39dbd8e10cd635aaab328ca4f5b | [
"BSL-1.0"
] | null | null | null | include/actl/geometry/algorithm/point/sort_by_angle.hpp | AlCash07/ACTL | 15de4e2783d8e39dbd8e10cd635aaab328ca4f5b | [
"BSL-1.0"
] | null | null | null | // Copyright 2017 Oleksandr Bacherikov.
//
// Distributed under the Boost Software License, Version 1.0
// (see accompanying file LICENSE.txt or copy at
// http://www.boost.org/LICENSE_1_0.txt).
#pragma once
#include <actl/geometry/algorithm/orientation/point_point.hpp>
#include <actl/geometry/multi_point.hpp>
#inc... | 29.283951 | 80 | 0.626476 | AlCash07 |
048e0cc3a10eb2116c53a2068e3b4c69a71ccdb3 | 1,422 | cpp | C++ | array/leetcode_array/119_pascal_triangle_2.cpp | Hadleyhzy/data_structure_and_algorithm | 0e610ba78dcb216323d9434a0f182756780ce5c0 | [
"MIT"
] | 1 | 2020-10-12T19:18:19.000Z | 2020-10-12T19:18:19.000Z | array/leetcode_array/119_pascal_triangle_2.cpp | Hadleyhzy/data_structure_and_algorithm | 0e610ba78dcb216323d9434a0f182756780ce5c0 | [
"MIT"
] | null | null | null | array/leetcode_array/119_pascal_triangle_2.cpp | Hadleyhzy/data_structure_and_algorithm | 0e610ba78dcb216323d9434a0f182756780ce5c0 | [
"MIT"
] | 1 | 2020-10-12T19:18:04.000Z | 2020-10-12T19:18:04.000Z | //
// 119_pascal_triangle_2.cpp
// leetcode_array
//
// Created by Hadley on 17.04.20.
// Copyright © 2020 Hadley. All rights reserved.
//
#include <stdio.h>
#include <iostream>
#include <vector>
#include <deque>
using namespace std;
class Solution119 {
public:
vector<int> getRow(int rowIndex) {
vect... | 23.311475 | 59 | 0.4782 | Hadleyhzy |
049406592b2421339ca4282e1032b09f88e23e7b | 5,872 | cpp | C++ | src/individual.cpp | mraggi/ForbiddenConfigurations | afc6b9e7e8e3dfb5cfb58de2c8c44ecbba848f54 | [
"MIT"
] | null | null | null | src/individual.cpp | mraggi/ForbiddenConfigurations | afc6b9e7e8e3dfb5cfb58de2c8c44ecbba848f54 | [
"MIT"
] | null | null | null | src/individual.cpp | mraggi/ForbiddenConfigurations | afc6b9e7e8e3dfb5cfb58de2c8c44ecbba848f54 | [
"MIT"
] | null | null | null | #include "individual.h"
#include <algorithm>
#include <cassert>
#include <cstdio>
#include <cstdlib>
#include <utility>
Config Individual::Complete(Config::K(2));
vector<Config> Individual::m_F;
Individual::Individual()
: m_VSUI(RandomPermutation(Complete.NumColumns()))
,
m_Config(0, 0)
{
SeparateCol... | 25.419913 | 80 | 0.536614 | mraggi |
0496e9808fdb6b4a1174f4991346650e19f890b2 | 1,912 | hh | C++ | xhp/functions.hh | appertly/hphpdoc | 2bb855a11588ff2bfa39c3309f0ca81b147cc4f6 | [
"Apache-2.0"
] | 4 | 2016-06-13T15:33:16.000Z | 2018-10-18T18:48:47.000Z | xhp/functions.hh | appertly/hphpdoc | 2bb855a11588ff2bfa39c3309f0ca81b147cc4f6 | [
"Apache-2.0"
] | 2 | 2016-12-23T16:28:23.000Z | 2017-02-26T17:52:53.000Z | xhp/functions.hh | appertly/hphpdoc | 2bb855a11588ff2bfa39c3309f0ca81b147cc4f6 | [
"Apache-2.0"
] | 3 | 2017-02-25T16:57:11.000Z | 2018-10-18T18:49:03.000Z | <?hh // strict
/**
* Hphpdoc
*
* 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 writ... | 30.349206 | 97 | 0.639121 | appertly |
0499337c159578da2cb823ec4b9ff7ff921db5ff | 825 | cpp | C++ | 684.redundant-connection.cpp | bsmsnd/LeetCode-CharlieChen | db72f0a3463c9e723aac800cdbe38218b36aa639 | [
"MIT"
] | null | null | null | 684.redundant-connection.cpp | bsmsnd/LeetCode-CharlieChen | db72f0a3463c9e723aac800cdbe38218b36aa639 | [
"MIT"
] | null | null | null | 684.redundant-connection.cpp | bsmsnd/LeetCode-CharlieChen | db72f0a3463c9e723aac800cdbe38218b36aa639 | [
"MIT"
] | null | null | null | /*
* @lc app=leetcode id=684 lang=cpp
*
* [684] Redundant Connection
*/
#include <unordered_map>
#include <vector>
using namespace std;
class Solution {
public:
// unordered_map<int, int> parent;
int parent[1001];
int find(int x)
{
return parent[x] == -1 ? x : parent[x] = find(parent[x]);
... | 23.571429 | 74 | 0.492121 | bsmsnd |
049b51e7376dc7ee0d0363037f8de07ae3d17fe4 | 6,767 | cpp | C++ | tests/test_Special_Functions.cpp | temken/libphysica | 0b0f3d4377cfd1ab0ec5a25a3753848d6e6ea657 | [
"MIT"
] | 1 | 2021-08-13T12:55:16.000Z | 2021-08-13T12:55:16.000Z | tests/test_Special_Functions.cpp | temken/libphysica | 0b0f3d4377cfd1ab0ec5a25a3753848d6e6ea657 | [
"MIT"
] | 22 | 2020-05-11T10:01:19.000Z | 2022-03-31T12:33:17.000Z | tests/test_Special_Functions.cpp | temken/libphysica | 0b0f3d4377cfd1ab0ec5a25a3753848d6e6ea657 | [
"MIT"
] | 1 | 2021-09-29T15:49:59.000Z | 2021-09-29T15:49:59.000Z | #include "gtest/gtest.h"
#include <cmath>
#include <functional>
#include <random>
#include "libphysica/Special_Functions.hpp"
// #include "libphysica/Statistics.hpp"
// #include "libphysica/Utilities.hpp"
using namespace libphysica;
//1. Simple functions
TEST(TestNumerics, TestSign)
{
// ARRANGE
double positive_n... | 28.432773 | 128 | 0.667652 | temken |
049e8ffcd16f2b683e4289a5b03bda76438e5c9a | 516 | cc | C++ | practica2.1/ejercicio6.cc | LlucBonet/asor-repo | a546318e6571bbce07febcb6b6e586b2d07368df | [
"MIT"
] | null | null | null | practica2.1/ejercicio6.cc | LlucBonet/asor-repo | a546318e6571bbce07febcb6b6e586b2d07368df | [
"MIT"
] | null | null | null | practica2.1/ejercicio6.cc | LlucBonet/asor-repo | a546318e6571bbce07febcb6b6e586b2d07368df | [
"MIT"
] | null | null | null | #include <unistd.h>
#include <limits.h>
#include <stdio.h>
// Escribir un programa que obtenga, con sysconf(3), información de configuración del sistema e imprima, por ejemplo, la longitud máxima de los argumentos, el número máximo de hijos y el número máximo de ficheros.
int main() {
printf("Longitud máxima de lo... | 36.857143 | 213 | 0.74031 | LlucBonet |
04a09533028864fc9ed5953d2b3be9e16967d9c6 | 260 | cpp | C++ | engine/libs/tweeny/examples/multitype/multitype.cpp | kkitsune/GoblinEngine | f69a82b13b418391554f1aeb8957f445352184b6 | [
"MIT"
] | 9 | 2016-02-04T16:42:31.000Z | 2016-12-05T04:34:03.000Z | engine/libs/tweeny/examples/multitype/multitype.cpp | kkitsune/GoblinEngine | f69a82b13b418391554f1aeb8957f445352184b6 | [
"MIT"
] | null | null | null | engine/libs/tweeny/examples/multitype/multitype.cpp | kkitsune/GoblinEngine | f69a82b13b418391554f1aeb8957f445352184b6 | [
"MIT"
] | null | null | null | #include "tweeny.h"
int main(int argc, char ** argv) {
auto tween = tweeny::from(0, 0.0f).to(2, 2.0f).during(100).onStep([](int i, float f) { printf("i=%d f=%f\n", i, f); return false; });
while(tween.progress() < 1.0f) tween.step(1);
return 0;
}
| 32.5 | 137 | 0.584615 | kkitsune |
04a19c59b9b4230108b077a5b62a0d8c62293a28 | 14,608 | cpp | C++ | Zephyr_Algorithm/src/Segmentation/TriDualGraph.cpp | Naimin/Zephyr | ab33eeef9bbf73e61aca50894f77cef0c2a7a4af | [
"MIT"
] | 2 | 2019-11-29T08:01:00.000Z | 2021-05-07T03:33:16.000Z | Zephyr_Algorithm/src/Segmentation/TriDualGraph.cpp | Naimin/Zephyr | ab33eeef9bbf73e61aca50894f77cef0c2a7a4af | [
"MIT"
] | null | null | null | Zephyr_Algorithm/src/Segmentation/TriDualGraph.cpp | Naimin/Zephyr | ab33eeef9bbf73e61aca50894f77cef0c2a7a4af | [
"MIT"
] | 2 | 2019-11-29T08:01:13.000Z | 2021-11-21T04:54:23.000Z | #include "TriDualGraph.h"
#include <iostream>
#include <sstream>
#include <set>
#include <tbb/parallel_for.h>
#include <tbb/parallel_for_each.h>
#include <tbb/blocked_range2d.h>
#include <tbb/concurrent_vector.h>
//#include <Eigen/SparseCholesky>
//#include <Eigen/CholmodSupport>
//#include <Eigen/SparseLU>
#include ... | 27.771863 | 132 | 0.655737 | Naimin |
04a4cf7b84ba4e712d7d209af46ad4dae53a4116 | 1,561 | cpp | C++ | src/hbst/visualization/map_viewer.cpp | ICRA-2019/srrg_bench | f71a4b9500eb25cda9204e6e37dffaa6baa03087 | [
"BSD-3-Clause"
] | null | null | null | src/hbst/visualization/map_viewer.cpp | ICRA-2019/srrg_bench | f71a4b9500eb25cda9204e6e37dffaa6baa03087 | [
"BSD-3-Clause"
] | null | null | null | src/hbst/visualization/map_viewer.cpp | ICRA-2019/srrg_bench | f71a4b9500eb25cda9204e6e37dffaa6baa03087 | [
"BSD-3-Clause"
] | null | null | null | #include "../../hbst/visualization/map_viewer.h"
#include "srrg_gl_helpers/opengl_primitives.h"
namespace srrg_bench {
void MapViewer::draw(){
//ds no specific lighting
glDisable(GL_LIGHTING);
glDisable(GL_BLEND);
//ds set ego perspective head
Eigen::Isometry3d world_to_robot = _robot_viewpoint*_world_to... | 27.875 | 120 | 0.70852 | ICRA-2019 |
04a93f23a46792def49f32f40b1d5ace79237d20 | 1,736 | cpp | C++ | src/plugins/models/gameOfLife/plugin.cpp | evoplex/evoplex | c6e78af5fb0d2fc5a5ce7b02e5e4ec61de8934b6 | [
"Apache-2.0"
] | 101 | 2018-06-21T04:29:18.000Z | 2022-03-09T13:04:15.000Z | src/plugins/models/gameOfLife/plugin.cpp | ElsevierSoftwareX/SOFTX_2018_211 | cbfac5af0ad76b7c88a7ea296d94785692da3048 | [
"Apache-2.0"
] | 30 | 2018-06-26T15:12:03.000Z | 2019-10-10T04:02:13.000Z | src/plugins/models/gameOfLife/plugin.cpp | ElsevierSoftwareX/SOFTX_2018_211 | cbfac5af0ad76b7c88a7ea296d94785692da3048 | [
"Apache-2.0"
] | 23 | 2018-06-23T16:10:24.000Z | 2021-11-03T15:12:51.000Z | /**
* Copyright (c) 2018 - Marcos Cardinot <marcos@cardinot.net>
* Copyright (c) 2018 - Ethan Padden <e.padden1@nuigalway.ie>
*
* This source code is licensed under the MIT license found in
* the LICENSE file in the root directory of this source tree.
*/
#include "plugin.h"
namespace evoplex {
bool GameOfLife:... | 28.933333 | 82 | 0.60023 | evoplex |
04ac7ea159bccd9d88901983a9a295273019e5ae | 3,386 | cpp | C++ | fb.cpp | ankiiitraj/questionsSolved | 8452b120935a9c3d808b45f27dcdc05700d902fc | [
"MIT"
] | null | null | null | fb.cpp | ankiiitraj/questionsSolved | 8452b120935a9c3d808b45f27dcdc05700d902fc | [
"MIT"
] | 1 | 2020-02-24T19:45:57.000Z | 2020-02-24T19:45:57.000Z | fb.cpp | ankiiitraj/questionsSolved | 8452b120935a9c3d808b45f27dcdc05700d902fc | [
"MIT"
] | null | null | null | // #include<bits/stdc++.h>
// using namespace std;
// using int=long long;
// using ld=long double;
// #define fast ios_base::sync_with_stdio(0); cin.tie(0); cout.tie(0)
// #define ordered_set tree<pint, nuint_type,less<pint>, rb_tree_tag,tree_order_statistics_node_update>
// #define endl "\n"
//... | 16.93 | 103 | 0.500591 | ankiiitraj |
04b0914f7f9abdbdb00b05adeaf9d364271e2764 | 586 | hpp | C++ | include/RED4ext/Scripting/Natives/Generated/AI/AdjustableStreamingRangeTarget.hpp | WSSDude420/RED4ext.SDK | eaca8bdf7b92c48422b18431ed8cd0876f53bdb3 | [
"MIT"
] | null | null | null | include/RED4ext/Scripting/Natives/Generated/AI/AdjustableStreamingRangeTarget.hpp | WSSDude420/RED4ext.SDK | eaca8bdf7b92c48422b18431ed8cd0876f53bdb3 | [
"MIT"
] | null | null | null | include/RED4ext/Scripting/Natives/Generated/AI/AdjustableStreamingRangeTarget.hpp | WSSDude420/RED4ext.SDK | eaca8bdf7b92c48422b18431ed8cd0876f53bdb3 | [
"MIT"
] | null | null | null | #pragma once
// This file is generated from the Game's Reflection data
#include <cstdint>
#include <RED4ext/Common.hpp>
#include <RED4ext/Scripting/Natives/Generated/game/Object.hpp>
namespace RED4ext
{
namespace AI {
struct AdjustableStreamingRangeTarget : game::Object
{
static constexpr const char* NAME = "AI... | 25.478261 | 75 | 0.759386 | WSSDude420 |
04b2a4e18d847865768402105ad5e4adc604486a | 5,074 | cpp | C++ | Coursework/VerticalBlurShader.cpp | gamereat/DX11_Procedural_Terrain | bf5d80d45d4baa1244310c3a7b5cd46db075e9fa | [
"MIT"
] | 5 | 2019-05-06T19:27:20.000Z | 2021-02-13T12:30:51.000Z | Coursework/VerticalBlurShader.cpp | gamereat/procedural-methods | bf5d80d45d4baa1244310c3a7b5cd46db075e9fa | [
"MIT"
] | null | null | null | Coursework/VerticalBlurShader.cpp | gamereat/procedural-methods | bf5d80d45d4baa1244310c3a7b5cd46db075e9fa | [
"MIT"
] | 1 | 2021-04-12T05:28:42.000Z | 2021-04-12T05:28:42.000Z | // Vertical blur shader
#include "verticalblurshader.h"
VerticalBlurShader::VerticalBlurShader(ID3D11Device* device, HWND hwnd) : BaseShader(device, hwnd)
{
InitShader(L"shaders/verticalBlur_vs.hlsl", L"shaders/verticalBlur_ps.hlsl");
}
VerticalBlurShader::~VerticalBlurShader()
{
// Release the sampler state.
if... | 31.91195 | 247 | 0.785968 | gamereat |
04b41fd3390a490fbd174a9b4f763730563c23c3 | 5,670 | cpp | C++ | test/unit/math/opencl/rev/scaled_inv_chi_square_lpdf_test.cpp | bayesmix-dev/math | 3616f7195adc95ef8e719a2af845d61102bc9272 | [
"BSD-3-Clause"
] | 1 | 2020-06-14T14:33:37.000Z | 2020-06-14T14:33:37.000Z | test/unit/math/opencl/rev/scaled_inv_chi_square_lpdf_test.cpp | bayesmix-dev/math | 3616f7195adc95ef8e719a2af845d61102bc9272 | [
"BSD-3-Clause"
] | null | null | null | test/unit/math/opencl/rev/scaled_inv_chi_square_lpdf_test.cpp | bayesmix-dev/math | 3616f7195adc95ef8e719a2af845d61102bc9272 | [
"BSD-3-Clause"
] | 1 | 2020-05-10T12:55:07.000Z | 2020-05-10T12:55:07.000Z | #ifdef STAN_OPENCL
#include <stan/math/opencl/rev.hpp>
#include <stan/math.hpp>
#include <gtest/gtest.h>
#include <test/unit/math/opencl/util.hpp>
#include <vector>
TEST(ProbDistributionsScaledInvChiSquare, error_checking) {
int N = 3;
Eigen::VectorXd y(N);
y << 0.3, 0.8, 1.0;
Eigen::VectorXd y_size(N - 1);
... | 32.586207 | 80 | 0.686243 | bayesmix-dev |
04b48c5c9ae6f4cac30e68a0c7a23c0aeb182453 | 1,907 | cpp | C++ | src/0.3.7-R1/CPlayerTags.cpp | DarkP1xel/SAMP-API | 0d43a3603239f2f4bc65b8305ffc72177386cc29 | [
"MIT"
] | 7 | 2019-09-23T10:19:40.000Z | 2021-07-25T06:17:27.000Z | src/0.3.7-R1/CPlayerTags.cpp | DarkP1xel/SAMP-API | 0d43a3603239f2f4bc65b8305ffc72177386cc29 | [
"MIT"
] | null | null | null | src/0.3.7-R1/CPlayerTags.cpp | DarkP1xel/SAMP-API | 0d43a3603239f2f4bc65b8305ffc72177386cc29 | [
"MIT"
] | 1 | 2021-04-11T17:13:00.000Z | 2021-04-11T17:13:00.000Z | /*
This is a SAMP (0.3.7-R1) API project file.
Developer: LUCHARE <luchare.dev@gmail.com>
See more here https://github.com/LUCHARE/SAMP-API
Copyright (c) 2018 BlastHack Team <BlastHack.Net>. All rights reserved.
*/
#include "CPlayerTags.h"
SAMP::CPlayerTags *&SAMP::pPlayerTags = *(SAMP::CPlayerTags... | 36.673077 | 186 | 0.712638 | DarkP1xel |
04b51a44207d366c099ed4f7bdb30b68834d6177 | 325 | cpp | C++ | MIC/tasker/3-5 (untested)/submain.cpp | TheHunterDog/WindesheimESA | 970c3c5f3022ab7f4c9f3adb7dd5eeb5b61290fe | [
"Apache-2.0"
] | 1 | 2021-09-09T07:12:26.000Z | 2021-09-09T07:12:26.000Z | MIC/tasker/3-5 (untested)/submain.cpp | TheHunterDog/WindesheimESA | 970c3c5f3022ab7f4c9f3adb7dd5eeb5b61290fe | [
"Apache-2.0"
] | null | null | null | MIC/tasker/3-5 (untested)/submain.cpp | TheHunterDog/WindesheimESA | 970c3c5f3022ab7f4c9f3adb7dd5eeb5b61290fe | [
"Apache-2.0"
] | null | null | null | #include <avr/interrupt.h>
#include <Wire.h>
#include <HardwareSerial.h>
uint8_t const SUBMAIN = 0x52;
int main(int argc, char const *argv[])
{
Serial.begin(9600);
Wire.begin(SUBMAIN);
sei();
while (1)
{
uint8_t data;
Wire.read();
if(~(data & 0)){
Serial.println(data);
}
}
return ... | 14.130435 | 38 | 0.596923 | TheHunterDog |
04b53d69c713ae8601aa8c4aec2af7407889639d | 7,468 | cpp | C++ | src/RotationTool.cpp | macetini/SnapshotShare | 078c3786725eb84e974e2db5e8ef1502907f76ca | [
"MIT"
] | null | null | null | src/RotationTool.cpp | macetini/SnapshotShare | 078c3786725eb84e974e2db5e8ef1502907f76ca | [
"MIT"
] | null | null | null | src/RotationTool.cpp | macetini/SnapshotShare | 078c3786725eb84e974e2db5e8ef1502907f76ca | [
"MIT"
] | null | null | null | #include <FApp.h>
#include "RotationTool.h"
#include "Editor.h"
using namespace Osp::App;
using namespace Osp::Base;
using namespace Osp::Base::Collection;
using namespace Osp::Ui;
using namespace Osp::Ui::Controls;
using namespace Osp::Graphics;
using namespace Osp::Media;
using namespace Osp::Io;
RotationTool::Rota... | 24.976589 | 114 | 0.742769 | macetini |
04b8dc2a593ee4390ec06c4daf26238f35e7df25 | 1,600 | cpp | C++ | Library-Management-System/borrowerdialog.cpp | JingzeWang/Library-Management-System | 77eed5c411b47873580d2fe010835d8748697b09 | [
"MIT"
] | null | null | null | Library-Management-System/borrowerdialog.cpp | JingzeWang/Library-Management-System | 77eed5c411b47873580d2fe010835d8748697b09 | [
"MIT"
] | null | null | null | Library-Management-System/borrowerdialog.cpp | JingzeWang/Library-Management-System | 77eed5c411b47873580d2fe010835d8748697b09 | [
"MIT"
] | null | null | null | #include "borrowerdialog.h"
#include "ui_borrowerdialog.h"
#include <QDebug>
#include "testh.h"
borrowerDialog::borrowerDialog(QWidget* parent) :
QDialog(parent),
ui(new Ui::borrowerDialog)
{
ui->setupUi(this);
//绑定三个按钮
connect(ui->pushButton_1, SIGNAL(clicked(bool)), this, SLOT(on_pushButton_1_clicked));
conne... | 21.621622 | 87 | 0.726875 | JingzeWang |
04ba509f5777c0f8f4837174da2e7e005514061f | 1,635 | cpp | C++ | online-judge/00401.cpp | kirillgashkov/cp-solutions | 863603b076e94b324b0d44a9adff4099e3131513 | [
"MIT"
] | null | null | null | online-judge/00401.cpp | kirillgashkov/cp-solutions | 863603b076e94b324b0d44a9adff4099e3131513 | [
"MIT"
] | null | null | null | online-judge/00401.cpp | kirillgashkov/cp-solutions | 863603b076e94b324b0d44a9adff4099e3131513 | [
"MIT"
] | null | null | null | #include <iostream>
#include <cmath>
#include <unordered_map>
using namespace std;
bool is_palindrome(string& word) {
int last_i = int(word.size()) - 1;
for (int i = 0; i < ceil(word.size() / 2.0); ++i) {
if (word[i] != word[last_i - i]) return false;
}
return true;
}
const unordered_map<c... | 22.094595 | 79 | 0.424465 | kirillgashkov |
04c0404dec63b3bf5367244144f005d0e5fc5556 | 4,440 | cpp | C++ | SparseMem.cpp | tenstorrent/SweRV-ISS | b5153e1df368f10e431a403e0e521c180bb36375 | [
"Apache-2.0"
] | 49 | 2020-05-27T10:14:02.000Z | 2022-03-30T15:49:31.000Z | SparseMem.cpp | tenstorrent/SweRV-ISS | b5153e1df368f10e431a403e0e521c180bb36375 | [
"Apache-2.0"
] | 19 | 2020-06-30T08:26:02.000Z | 2022-03-22T05:18:14.000Z | SparseMem.cpp | tenstorrent/SweRV-ISS | b5153e1df368f10e431a403e0e521c180bb36375 | [
"Apache-2.0"
] | 18 | 2020-08-30T02:55:25.000Z | 2022-03-30T13:58:15.000Z | // Copyright 2020 Western Digital Corporation or its affiliates.
//
// 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 requi... | 25.227273 | 87 | 0.534685 | tenstorrent |
04c4b2b68a4b932e3666a254c738f256a414bf56 | 3,019 | hh | C++ | gazebo/gui/viewers/ViewFactory.hh | otamachan/ros-indigo-gazebo7-deb | abc6b40247cdce14d9912096a0ad5135d420ce04 | [
"ECL-2.0",
"Apache-2.0"
] | 5 | 2017-07-14T19:36:51.000Z | 2020-04-01T06:47:59.000Z | gazebo/gui/viewers/ViewFactory.hh | otamachan/ros-indigo-gazebo7-deb | abc6b40247cdce14d9912096a0ad5135d420ce04 | [
"ECL-2.0",
"Apache-2.0"
] | 20 | 2017-07-20T21:04:49.000Z | 2017-10-19T19:32:38.000Z | gazebo/gui/viewers/ViewFactory.hh | otamachan/ros-indigo-gazebo7-deb | abc6b40247cdce14d9912096a0ad5135d420ce04 | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | /*
* Copyright (C) 2012-2016 Open Source Robotics Foundation
*
* 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... | 32.462366 | 75 | 0.651209 | otamachan |
04c5d921d38394d542639b4f997565278f61240c | 2,192 | hpp | C++ | lab/mpllibs/metaparse/v1/impl/nth_of_c_impl.hpp | sabel83/metaparse_tutorial | 819fddf6bf06736861adbeabeb30967f56b7e8d0 | [
"BSL-1.0"
] | 24 | 2015-07-14T01:56:03.000Z | 2021-09-16T07:48:46.000Z | lab/mpllibs/metaparse/v1/impl/nth_of_c_impl.hpp | sabel83/metaparse_tutorial | 819fddf6bf06736861adbeabeb30967f56b7e8d0 | [
"BSL-1.0"
] | 1 | 2017-10-01T12:31:25.000Z | 2017-10-04T12:16:47.000Z | lab/mpllibs/metaparse/v1/impl/nth_of_c_impl.hpp | sabel83/metaparse_tutorial | 819fddf6bf06736861adbeabeb30967f56b7e8d0 | [
"BSL-1.0"
] | 2 | 2017-08-22T20:31:11.000Z | 2019-02-23T07:32:29.000Z | #ifndef MPLLIBS_METAPARSE_V1_IMPL_NTH_OF_C_IMPL_HPP
#define MPLLIBS_METAPARSE_V1_IMPL_NTH_OF_C_IMPL_HPP
// Copyright Abel Sinkovics (abel@sinkovics.hu) 2013.
// 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... | 26.731707 | 80 | 0.529653 | sabel83 |
04d0e9cb128e2d6b3135ccee143197780ebd5770 | 1,073 | cpp | C++ | include/cpp17/main.cpp | gharveymn/cpp-extensions | e8aa123ba0cdfa6f0f11a4fc8958935ff29dc4e0 | [
"Apache-2.0",
"MIT"
] | null | null | null | include/cpp17/main.cpp | gharveymn/cpp-extensions | e8aa123ba0cdfa6f0f11a4fc8958935ff29dc4e0 | [
"Apache-2.0",
"MIT"
] | null | null | null | include/cpp17/main.cpp | gharveymn/cpp-extensions | e8aa123ba0cdfa6f0f11a4fc8958935ff29dc4e0 | [
"Apache-2.0",
"MIT"
] | null | null | null | #include <iostream>
#include <random>
#include "algorithm"
#include "cmath"
#include "cstddef"
#include "memory"
#include "numeric"
#include "type_traits"
#include "variant"
#include <variant>
double L1(unsigned m, double x) { return -x + m + 1; }
double L2(unsigned m, double x) { return 0.5*(x*x-2*(m+2)*x+(m+1)*(m+2)... | 29.805556 | 84 | 0.594595 | gharveymn |
04d10dddabfe41f061d2138e01bab7cd4dc7d143 | 1,951 | cpp | C++ | HW 2 - Ziv-Lempel Algorithm with Hash Tables/decompress-program/main.cpp | furkankyildirim/CS300-Data_Structures | 38c3600d1820e079943dab743b43c31208a952fe | [
"MIT"
] | null | null | null | HW 2 - Ziv-Lempel Algorithm with Hash Tables/decompress-program/main.cpp | furkankyildirim/CS300-Data_Structures | 38c3600d1820e079943dab743b43c31208a952fe | [
"MIT"
] | null | null | null | HW 2 - Ziv-Lempel Algorithm with Hash Tables/decompress-program/main.cpp | furkankyildirim/CS300-Data_Structures | 38c3600d1820e079943dab743b43c31208a952fe | [
"MIT"
] | null | null | null | //
// Created by Furkan K. Yıldırım on 11.11.2021.
// furkanyildirim 28138
#include <iostream>
#include <string>
#include <sstream>
#include <fstream>
#include "HashTable.cpp"
using namespace std;
int main() {
// Initializes code list and hash table
int pos = 0; vector<int> list;
string notFound =... | 26.364865 | 81 | 0.555613 | furkankyildirim |
04d38d7fcb28a48a1df83c6cc8995ca424e420ee | 3,003 | cc | C++ | src/developer/feedback/feedback_agent/system_log_recorder.cc | zarelaky/fuchsia | 858cc1914de722b13afc2aaaee8a6bd491cd8d9a | [
"BSD-3-Clause"
] | null | null | null | src/developer/feedback/feedback_agent/system_log_recorder.cc | zarelaky/fuchsia | 858cc1914de722b13afc2aaaee8a6bd491cd8d9a | [
"BSD-3-Clause"
] | null | null | null | src/developer/feedback/feedback_agent/system_log_recorder.cc | zarelaky/fuchsia | 858cc1914de722b13afc2aaaee8a6bd491cd8d9a | [
"BSD-3-Clause"
] | null | null | null | // Copyright 2019 The Fuchsia Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "src/developer/feedback/feedback_agent/system_log_recorder.h"
#include <fuchsia/logger/cpp/fidl.h>
#include <lib/zx/time.h>
#include <cinttypes>... | 32.290323 | 98 | 0.709624 | zarelaky |
04d5735d3c39a5387c6a87586bb41898fbaadd17 | 12,648 | cpp | C++ | 05-Binary-Search-Tree/Optional-06-Predecessor-and-Successor-in-BST/main.cpp | leverTsui/Embrace-with-Algorithms | 87d50f0216c5cbd682c055096ae62a1f23cf1948 | [
"MIT"
] | null | null | null | 05-Binary-Search-Tree/Optional-06-Predecessor-and-Successor-in-BST/main.cpp | leverTsui/Embrace-with-Algorithms | 87d50f0216c5cbd682c055096ae62a1f23cf1948 | [
"MIT"
] | null | null | null | 05-Binary-Search-Tree/Optional-06-Predecessor-and-Successor-in-BST/main.cpp | leverTsui/Embrace-with-Algorithms | 87d50f0216c5cbd682c055096ae62a1f23cf1948 | [
"MIT"
] | null | null | null | #include <iostream>
#include <queue>
#include <cassert>
using namespace std;
// 二分搜索树
template <typename Key, typename Value>
class BST{
private:
// 树中的节点为私有的结构体, 外界不需要了解二分搜索树节点的具体实现
struct Node{
Key key;
Value value;
Node *left;
Node *right;
Node(Key key, Value value... | 23.335793 | 72 | 0.498261 | leverTsui |
04d61527c73554434fdaa95f08382d64ccd9f4fb | 822 | hxx | C++ | matchline/src/game/gem.hxx | GloryOfNight/dreco-engine | 1d29b747dc9277cbc5952b31833403a65a4d9c71 | [
"MIT"
] | 1 | 2020-02-27T13:29:15.000Z | 2020-02-27T13:29:15.000Z | matchline/src/game/gem.hxx | GloryOfNight/dreco-engine | 1d29b747dc9277cbc5952b31833403a65a4d9c71 | [
"MIT"
] | null | null | null | matchline/src/game/gem.hxx | GloryOfNight/dreco-engine | 1d29b747dc9277cbc5952b31833403a65a4d9c71 | [
"MIT"
] | null | null | null | #pragma once
#include "board_cell.hxx"
#include "game_objects/mesh_object.hxx"
#include "gem_types.hxx"
class game_board;
class gem_fall_component;
class gem : public dreco::mesh_object
{
public:
gem(dreco::game_world* _w, const dreco::mesh_data* _mesh_data, const dreco::gl_shader_info& _s,
game_board& _b);
~ge... | 17.125 | 96 | 0.746959 | GloryOfNight |
3e23bc07680af63e5958141648decfd0e707bd8a | 12,650 | cpp | C++ | Lib/Runtime/Exception.cpp | InDieTasten/WAVM | c79bd0ef2c30d45d30842fadacff9af479615c9e | [
"BSD-3-Clause"
] | null | null | null | Lib/Runtime/Exception.cpp | InDieTasten/WAVM | c79bd0ef2c30d45d30842fadacff9af479615c9e | [
"BSD-3-Clause"
] | null | null | null | Lib/Runtime/Exception.cpp | InDieTasten/WAVM | c79bd0ef2c30d45d30842fadacff9af479615c9e | [
"BSD-3-Clause"
] | null | null | null | #include <stdlib.h>
#include <string.h>
#include <string>
#include <utility>
#include <vector>
#include "RuntimePrivate.h"
#include "WAVM/IR/Types.h"
#include "WAVM/IR/Value.h"
#include "WAVM/Inline/Assert.h"
#include "WAVM/Inline/BasicTypes.h"
#include "WAVM/Inline/Errors.h"
#include "WAVM/Inline/HashSet.h"
#include ... | 31.004902 | 100 | 0.717075 | InDieTasten |
3e279cb108919b0a490e680509566eb3db40132e | 3,941 | cpp | C++ | apps/calc/calc.cpp | Remco123/CactusOS | de4c61211c2908cf1a27d8ccbeb6340133772454 | [
"MIT"
] | 87 | 2019-03-04T21:16:20.000Z | 2022-01-30T15:10:44.000Z | apps/calc/calc.cpp | Remco123/CactusOS | de4c61211c2908cf1a27d8ccbeb6340133772454 | [
"MIT"
] | 5 | 2019-04-24T10:33:55.000Z | 2021-06-13T09:46:28.000Z | apps/calc/calc.cpp | Remco123/CactusOS | de4c61211c2908cf1a27d8ccbeb6340133772454 | [
"MIT"
] | 2 | 2020-11-13T08:56:09.000Z | 2021-08-01T06:38:31.000Z | #include <new.h>
#include <gui/gui.h>
#include <gui/widgets/button.h>
#include <gui/widgets/control.h>
#include <gui/widgets/window.h>
#include <gui/widgets/label.h>
#include <gui/directgui.h>
#include <convert.h>
#include <string.h>
#include <log.h>
#include <proc.h>
using namespace LIBCactusOS;
void ButtonClickHand... | 27.368056 | 87 | 0.604161 | Remco123 |
3e2890df10ab711173c57480df29d6b8f6f983da | 446 | cpp | C++ | src/AsyncMqttClient/Packets/Out/Disconn.cpp | sander1988/async-mqtt-client | 89bf46485d5b60ce1e8e5e4d265a9c1570de3dc5 | [
"MIT"
] | 697 | 2016-05-11T18:57:19.000Z | 2022-03-28T11:06:16.000Z | src/AsyncMqttClient/Packets/Out/Disconn.cpp | crosaalive/async-mqtt-client | 89bf46485d5b60ce1e8e5e4d265a9c1570de3dc5 | [
"MIT"
] | 259 | 2016-05-11T19:07:55.000Z | 2022-03-14T12:51:14.000Z | src/AsyncMqttClient/Packets/Out/Disconn.cpp | crosaalive/async-mqtt-client | 89bf46485d5b60ce1e8e5e4d265a9c1570de3dc5 | [
"MIT"
] | 256 | 2016-05-15T11:05:26.000Z | 2022-03-18T13:25:59.000Z | #include "Disconn.hpp"
using AsyncMqttClientInternals::DisconnOutPacket;
DisconnOutPacket::DisconnOutPacket() {
_data[0] = AsyncMqttClientInternals::PacketType.DISCONNECT;
_data[0] = _data[0] << 4;
_data[0] = _data[0] | AsyncMqttClientInternals::HeaderFlag.DISCONNECT_RESERVED;
_data[1] = 0;
}
const uint8_t* ... | 23.473684 | 81 | 0.742152 | sander1988 |
3e2d27868a0613b78ed2d09ebf229c94177882cc | 1,650 | cpp | C++ | Daxa/src/gpu/Sampler.cpp | Ipotrick/Daxa | 07f3f9717f43b32cbe60761602fc16b3a2789b5a | [
"MIT"
] | 3 | 2021-03-24T21:26:59.000Z | 2021-12-28T01:54:17.000Z | Daxa/src/gpu/Sampler.cpp | Ipotrick/Daxa | 07f3f9717f43b32cbe60761602fc16b3a2789b5a | [
"MIT"
] | 1 | 2021-12-10T01:08:15.000Z | 2021-12-15T23:38:33.000Z | Daxa/src/gpu/Sampler.cpp | Ipotrick/Daxa | 07f3f9717f43b32cbe60761602fc16b3a2789b5a | [
"MIT"
] | 1 | 2022-02-18T16:07:19.000Z | 2022-02-18T16:07:19.000Z | #include "Sampler.hpp"
namespace daxa {
namespace gpu {
Sampler::Sampler(VkDevice device, SamplerCreateInfo const& createInfo)
: device{ device }
, flags{ 0 }
, magFilter{ createInfo.magFilter }
, minFilter{ createInfo.minFilter }
, mipmapMode{ createInfo.mipmapMode }
, addressModeU{ createInfo.... | 29.464286 | 73 | 0.705455 | Ipotrick |
3e309840d22bfe85896f22ff46be051c44af5e06 | 4,682 | cpp | C++ | src/tum_ardrone/src/stateestimation/Predictor.cpp | rob5a/2015_initial_workspace | e0f2dfc91eb43166e8424b723ece94ea1adcc859 | [
"MIT"
] | null | null | null | src/tum_ardrone/src/stateestimation/Predictor.cpp | rob5a/2015_initial_workspace | e0f2dfc91eb43166e8424b723ece94ea1adcc859 | [
"MIT"
] | null | null | null | src/tum_ardrone/src/stateestimation/Predictor.cpp | rob5a/2015_initial_workspace | e0f2dfc91eb43166e8424b723ece94ea1adcc859 | [
"MIT"
] | 1 | 2019-07-21T10:47:13.000Z | 2019-07-21T10:47:13.000Z | /**
* This file is part of tum_ardrone.
*
* Copyright 2012 Jakob Engel <jajuengel@gmail.com> (Technical University of Munich)
* For more information see <https://vision.in.tum.de/data/software/tum_ardrone>.
*
* tum_ardrone is free software: you can redistribute it and/or modify
* it under the terms ... | 31.635135 | 155 | 0.695856 | rob5a |
3e3141402b482e0695a79dbe285f93f249546e76 | 4,248 | cpp | C++ | Tankerfield/Tankerfield/Pause_Menu.cpp | gamificalostudio/Tankerfield | f3801c5286ae836c0fd62392cc14be081b5c74e8 | [
"MIT"
] | 7 | 2019-03-11T11:31:36.000Z | 2019-05-18T08:03:35.000Z | Tankerfield/Tankerfield/Pause_Menu.cpp | gamificalostudio/Tankerfield | f3801c5286ae836c0fd62392cc14be081b5c74e8 | [
"MIT"
] | 86 | 2019-03-27T14:36:16.000Z | 2019-06-10T18:43:52.000Z | Tankerfield/Tankerfield/Pause_Menu.cpp | gamificalostudio/Tankerfield | f3801c5286ae836c0fd62392cc14be081b5c74e8 | [
"MIT"
] | 1 | 2019-09-10T17:37:44.000Z | 2019-09-10T17:37:44.000Z | #include "App.h"
#include "Log.h"
#include "Pause_Menu.h"
#include "M_Render.h"
#include "M_Textures.h"
#include "M_Fonts.h"
#include "M_SceneManager.h"
#include "M_Window.h"
#include "M_Audio.h"
#include "M_Scene.h"
#include "Log.h"
#include <string.h>
#include "M_MainMenu.h"
#include "Options_Menu.h"
#include "UI_Im... | 32.930233 | 168 | 0.707627 | gamificalostudio |
3e328654012f65e1649e68695709469022b1c454 | 3,090 | cpp | C++ | unreal/Puerts/Source/JsEnv/Private/DataTransfer.cpp | Justin-sky/puerts | a043167e04a5adfd04a11639dc16c51f3a7b8031 | [
"BSD-3-Clause"
] | 1 | 2022-03-18T06:54:12.000Z | 2022-03-18T06:54:12.000Z | unreal/Puerts/Source/JsEnv/Private/DataTransfer.cpp | Justin-sky/puerts | a043167e04a5adfd04a11639dc16c51f3a7b8031 | [
"BSD-3-Clause"
] | null | null | null | unreal/Puerts/Source/JsEnv/Private/DataTransfer.cpp | Justin-sky/puerts | a043167e04a5adfd04a11639dc16c51f3a7b8031 | [
"BSD-3-Clause"
] | 2 | 2021-12-01T08:29:19.000Z | 2021-12-14T09:21:15.000Z | /*
* Tencent is pleased to support the open source community by making Puerts available.
* Copyright (C) 2020 THL A29 Limited, a Tencent company. All rights reserved.
* Puerts is licensed under the BSD 3-Clause License, except for the third-party components listed in the file 'LICENSE' which may
* be subject to th... | 38.625 | 130 | 0.744013 | Justin-sky |
3e341ea56fe5e53db3f52789bc7c8cad1572016d | 1,849 | cpp | C++ | geos-3.7.0beta1/src/noding/BasicSegmentString.cpp | litbangbungamayang/SIMTR | 23435e829f6c766ec8483c88005daac654de4057 | [
"MIT"
] | null | null | null | geos-3.7.0beta1/src/noding/BasicSegmentString.cpp | litbangbungamayang/SIMTR | 23435e829f6c766ec8483c88005daac654de4057 | [
"MIT"
] | null | null | null | geos-3.7.0beta1/src/noding/BasicSegmentString.cpp | litbangbungamayang/SIMTR | 23435e829f6c766ec8483c88005daac654de4057 | [
"MIT"
] | null | null | null | /**********************************************************************
*
* GEOS - Geometry Engine Open Source
* http://geos.osgeo.org
*
* Copyright (C) 2009 Sandro Santilli <strk@kbt.io>
*
* This is free software; you can redistribute and/or modify it under
* the terms of the GNU Lesser General Licence as publ... | 22.011905 | 72 | 0.630611 | litbangbungamayang |
3e3631e9bfdec5b8dd55f3d67935995abc343b0a | 1,809 | cpp | C++ | COVID-Game/Source/GameEngine/EntitySystem/Components/GravityPhysicsComponent.cpp | sudoerena/HackersNest | ecfc36390cd8152a1a2d9b1a63c6dbca89cc6657 | [
"MIT"
] | 1 | 2021-09-21T00:06:13.000Z | 2021-09-21T00:06:13.000Z | COVID-Game/Source/GameEngine/EntitySystem/Components/GravityPhysicsComponent.cpp | sudoerena/HackersNest | ecfc36390cd8152a1a2d9b1a63c6dbca89cc6657 | [
"MIT"
] | null | null | null | COVID-Game/Source/GameEngine/EntitySystem/Components/GravityPhysicsComponent.cpp | sudoerena/HackersNest | ecfc36390cd8152a1a2d9b1a63c6dbca89cc6657 | [
"MIT"
] | 1 | 2021-09-21T00:08:20.000Z | 2021-09-21T00:08:20.000Z | #include "GravityPhysicsComponent.h"
#include "GameEngine/Util/CollisionManager.h"
#include "GameEngine/EntitySystem/Entity.h"
#include "GameEngine/GameEngineMain.h"
#include <vector>
using namespace GameEngine;
GravityPhysicsComponent::GravityPhysicsComponent()
{
}
GravityPhysicsComponent::~GravityPhysicsCompone... | 24.445946 | 97 | 0.638474 | sudoerena |
3e3a9c53838ccd4a4562d371fbe26f9d76abc036 | 1,209 | hpp | C++ | src/prepare_request.hpp | planetbeing/cpp-driver | 90b683cb7fce9ab480765f8ed50185af53df791c | [
"Apache-2.0"
] | null | null | null | src/prepare_request.hpp | planetbeing/cpp-driver | 90b683cb7fce9ab480765f8ed50185af53df791c | [
"Apache-2.0"
] | null | null | null | src/prepare_request.hpp | planetbeing/cpp-driver | 90b683cb7fce9ab480765f8ed50185af53df791c | [
"Apache-2.0"
] | null | null | null | /*
Copyright (c) 2015 DataStax
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 writing, sof... | 23.705882 | 74 | 0.744417 | planetbeing |
3e3c10cf3227cc2a1ba594f0190f2221945e1021 | 431 | hpp | C++ | cpp/src/socket/socket_detail_manager.hpp | zlnov/quick-pack | 4fffcc56045852b034b60a1185901a001eff87a7 | [
"MIT"
] | null | null | null | cpp/src/socket/socket_detail_manager.hpp | zlnov/quick-pack | 4fffcc56045852b034b60a1185901a001eff87a7 | [
"MIT"
] | null | null | null | cpp/src/socket/socket_detail_manager.hpp | zlnov/quick-pack | 4fffcc56045852b034b60a1185901a001eff87a7 | [
"MIT"
] | null | null | null | #ifndef QUICK_PACK_SOCKET_DETAIL_MANAGER_HPP
#define QUICK_PACK_SOCKET_DETAIL_MANAGER_HPP
#include "socket/socket_detail.hpp"
#include <unordered_map>
namespace quick_pack{
class SocketDetailManager{
uint32_t m_last_id_count;
public:
SocketDetailManager();
~SocketDetailManager();
std::unordered_map<uint32_t, S... | 23.944444 | 65 | 0.816705 | zlnov |
3e3f791c69ab2e718724131c9771e05e89f81e71 | 7,244 | cpp | C++ | ims/src/v20201229/model/LibDetail.cpp | suluner/tencentcloud-sdk-cpp | a56c73cc3f488c4d1e10755704107bb15c5e000d | [
"Apache-2.0"
] | 43 | 2019-08-14T08:14:12.000Z | 2022-03-30T12:35:09.000Z | ims/src/v20201229/model/LibDetail.cpp | suluner/tencentcloud-sdk-cpp | a56c73cc3f488c4d1e10755704107bb15c5e000d | [
"Apache-2.0"
] | 12 | 2019-07-15T10:44:59.000Z | 2021-11-02T12:35:00.000Z | ims/src/v20201229/model/LibDetail.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
... | 25.240418 | 135 | 0.651436 | suluner |
3e405daac02ed2026a5c670af833d3f7cfd996e1 | 317 | hpp | C++ | src/dsp-noise/base.hpp | jsmonzani/FrozenWasteland | 60d2212ce16cd4407496f654d27c3cbe8e53e7a4 | [
"CC0-1.0"
] | 233 | 2018-07-02T16:49:36.000Z | 2022-02-27T21:45:39.000Z | src/dsp-noise/base.hpp | jsmonzani/FrozenWasteland | 60d2212ce16cd4407496f654d27c3cbe8e53e7a4 | [
"CC0-1.0"
] | 24 | 2018-07-09T11:32:15.000Z | 2022-01-07T01:45:43.000Z | src/dsp-noise/base.hpp | jsmonzani/FrozenWasteland | 60d2212ce16cd4407496f654d27c3cbe8e53e7a4 | [
"CC0-1.0"
] | 24 | 2018-07-14T21:55:30.000Z | 2021-05-04T04:20:34.000Z | #pragma once
namespace frozenwasteland {
namespace dsp {
struct Generator {
float _current = 0.0;
Generator() {}
virtual ~Generator() {}
float current() {
return _current;
}
float next() {
return _current = _next();
}
virtual float _next() = 0;
};
} // namespace dsp
} // namespace frozenwasteland
| 12.68 | 30 | 0.659306 | jsmonzani |
3e413d5901f97b0f16b29ebe766c20cf310f5770 | 2,380 | hpp | C++ | include/ensmallen_bits/cmaes/random_selection.hpp | walragatver/ensmallen | 7c37b614e35bd1e8f2131d5ee631013493be53bf | [
"BSL-1.0",
"BSD-3-Clause"
] | null | null | null | include/ensmallen_bits/cmaes/random_selection.hpp | walragatver/ensmallen | 7c37b614e35bd1e8f2131d5ee631013493be53bf | [
"BSL-1.0",
"BSD-3-Clause"
] | null | null | null | include/ensmallen_bits/cmaes/random_selection.hpp | walragatver/ensmallen | 7c37b614e35bd1e8f2131d5ee631013493be53bf | [
"BSL-1.0",
"BSD-3-Clause"
] | null | null | null | /**
* @file random_selection.hpp
* @author Marcus Edel
*
* Randomly select dataset points for use in the Evaluation step.
*
* ensmallen is free software; you may redistribute it and/or modify it under
* the terms of the 3-clause BSD license. You should have received a copy of
* the 3-clause BSD license along w... | 29.382716 | 79 | 0.686975 | walragatver |
3e451eba03f201ad93b8300f059d7d69bd38706f | 246 | hpp | C++ | Source/AliveLibCommon/Types.hpp | THEONLYDarkShadow/alive_reversing | 680d87088023f2d5f2a40c42d6543809281374fb | [
"MIT"
] | 1 | 2021-04-11T23:44:43.000Z | 2021-04-11T23:44:43.000Z | Source/AliveLibCommon/Types.hpp | THEONLYDarkShadow/alive_reversing | 680d87088023f2d5f2a40c42d6543809281374fb | [
"MIT"
] | null | null | null | Source/AliveLibCommon/Types.hpp | THEONLYDarkShadow/alive_reversing | 680d87088023f2d5f2a40c42d6543809281374fb | [
"MIT"
] | null | null | null | #pragma once
#include <stdint.h>
using u8 = uint8_t;
using s8 = int8_t;
using u16 = uint16_t;
using s16 = int16_t;
using u32 = uint32_t;
using s32 = int32_t;
using f32 = float;
using f64 = double;
using u64 = uint64_t;
using s64 = int64_t;
| 12.947368 | 21 | 0.695122 | THEONLYDarkShadow |
3e47e4606bc00a467ae9c312b2f952b52e23c451 | 5,826 | hpp | C++ | src/frontend/transfer/Session.hpp | common-tools-interface/cti | 53ae8cbbc847060098e1594343cc6aef4b834737 | [
"Linux-OpenIB"
] | 8 | 2019-07-25T15:18:35.000Z | 2021-12-09T07:21:12.000Z | src/frontend/transfer/Session.hpp | common-tools-interface/cti | 53ae8cbbc847060098e1594343cc6aef4b834737 | [
"Linux-OpenIB"
] | 10 | 2019-07-25T15:28:32.000Z | 2022-01-20T12:25:01.000Z | src/frontend/transfer/Session.hpp | common-tools-interface/cti | 53ae8cbbc847060098e1594343cc6aef4b834737 | [
"Linux-OpenIB"
] | null | null | null | /*********************************************************************************\
* Session: state object representing a remote staging directory where packages
* of files to support CTI programs are unpacked and stored. Manages conflicts
* between files present on remote systems and in-progress, unshipped file
... | 43.477612 | 100 | 0.667525 | common-tools-interface |
3e482beb0ddc1d825b792232f6deb83d93f2946c | 8,991 | cpp | C++ | src/src/problems/eulerproblems_71_80.cpp | N4G170/project_euler | 0ab6a9252016b1150730149ce013106af212705e | [
"MIT"
] | null | null | null | src/src/problems/eulerproblems_71_80.cpp | N4G170/project_euler | 0ab6a9252016b1150730149ce013106af212705e | [
"MIT"
] | null | null | null | src/src/problems/eulerproblems_71_80.cpp | N4G170/project_euler | 0ab6a9252016b1150730149ce013106af212705e | [
"MIT"
] | null | null | null | #include "eulerproblems.hpp"
#include "utils.hpp"
#include "message_writer.hpp"
#include "fraction.hpp"
#include "clock.hpp"
#include <map>
#include <unordered_map>
#include <stack>
#include <set>
#include <array>
#include <vector>
#include <string>
#include <iostream>
#include "defines.hpp"//big numbers
#include <fs... | 34.186312 | 190 | 0.593149 | N4G170 |
3e49d6640137613e6167d913672e13db24993af2 | 662 | cpp | C++ | Lab 2/Chapter 3 Source Code/Ch3_ProgrammingEx2_Code.cpp | candr002/CS150 | 8270f60769fc8a9c18e5c5c46879b63663ba2117 | [
"Unlicense"
] | null | null | null | Lab 2/Chapter 3 Source Code/Ch3_ProgrammingEx2_Code.cpp | candr002/CS150 | 8270f60769fc8a9c18e5c5c46879b63663ba2117 | [
"Unlicense"
] | null | null | null | Lab 2/Chapter 3 Source Code/Ch3_ProgrammingEx2_Code.cpp | candr002/CS150 | 8270f60769fc8a9c18e5c5c46879b63663ba2117 | [
"Unlicense"
] | null | null | null | #include <iomanip>
#include <cmath>
int main()
{}
double height;
cout << "Volume of the cylinder = "
<< PI * pow(radius, 2.0) * height << endl;
cout << "Enter the height of the cylinder: ";
cin >> radius;
cout << endl;
return 0;
double radius;
cout... | 20.060606 | 66 | 0.521148 | candr002 |
3e5257f25cca38b1a4df44afb864de388b54f33a | 2,618 | hpp | C++ | iceoryx_utils/include/ac3log/simplelogger.hpp | surendra210/iceoryx | f964c2435f65585784b2d77af0ce39f88670fb36 | [
"Apache-2.0"
] | null | null | null | iceoryx_utils/include/ac3log/simplelogger.hpp | surendra210/iceoryx | f964c2435f65585784b2d77af0ce39f88670fb36 | [
"Apache-2.0"
] | null | null | null | iceoryx_utils/include/ac3log/simplelogger.hpp | surendra210/iceoryx | f964c2435f65585784b2d77af0ce39f88670fb36 | [
"Apache-2.0"
] | 1 | 2020-04-06T04:56:24.000Z | 2020-04-06T04:56:24.000Z | // Copyright (c) 2019 by Robert Bosch GmbH. 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... | 22.765217 | 75 | 0.700535 | surendra210 |
3e56b7efcb111ca59bb7c2eeb0edec02eb4b6968 | 1,536 | cpp | C++ | code/display.cpp | visualizersdotnl/cookiedough | bcd7dda042a5060be942bcf26b821d6ee0fa5f17 | [
"MIT"
] | 2 | 2015-12-15T23:04:56.000Z | 2022-02-10T09:21:12.000Z | code/display.cpp | visualizersdotnl/cookiedough | bcd7dda042a5060be942bcf26b821d6ee0fa5f17 | [
"MIT"
] | 6 | 2015-08-05T17:31:23.000Z | 2021-08-04T09:14:47.000Z | code/display.cpp | visualizersdotnl/cookiedough | bcd7dda042a5060be942bcf26b821d6ee0fa5f17 | [
"MIT"
] | null | null | null |
// cookiedough -- SDL software display window (32-bit)
#include "main.h"
#include "display.h"
Display::Display() :
m_window(nullptr),
m_renderer(nullptr),
m_texture(nullptr)
{
// smooth scaling (if necessary)
SDL_SetHint(SDL_HINT_RENDER_SCALE_QUALITY, "linear");
}
Display::~Display()
{
SDL_DestroyTexture(m_te... | 24.380952 | 120 | 0.745443 | visualizersdotnl |
3e5a8005112706cf1255fad89954dc75c9814c4d | 991 | cc | C++ | src/c4/global_containers_pt.cc | rspavel/Draco | b279b1afbfbb39f2d521579697172394c5efd81d | [
"BSD-3-Clause-Open-MPI"
] | null | null | null | src/c4/global_containers_pt.cc | rspavel/Draco | b279b1afbfbb39f2d521579697172394c5efd81d | [
"BSD-3-Clause-Open-MPI"
] | null | null | null | src/c4/global_containers_pt.cc | rspavel/Draco | b279b1afbfbb39f2d521579697172394c5efd81d | [
"BSD-3-Clause-Open-MPI"
] | null | null | null | //----------------------------------*-C++-*----------------------------------//
/*!
* \file c4/global_containers_pt.cc
* \author Kent Budge
* \date Mon Mar 24 10:17:40 2008
* \brief Explicit template instatiations for class global_containers.
* \note Copyright (C) 2016-2019 Triad National Security, LLC.
* ... | 31.967742 | 79 | 0.487386 | rspavel |
3e5de2acf62b36f79a8282501f5c40ac9d9005fb | 1,047 | cpp | C++ | PolyDock/PolyDock/src/pd/ecs/sys/tabbedWindowControl/TabbedWindowControlWidgetUpdate.cpp | PolyEngineTeam/PolyDock | 27a105b2cc80db4286e03a2a1e5bee64438d37c8 | [
"MIT"
] | 3 | 2020-05-16T16:33:51.000Z | 2021-08-05T18:48:13.000Z | PolyDock/PolyDock/src/pd/ecs/sys/tabbedWindowControl/TabbedWindowControlWidgetUpdate.cpp | Qt-Widgets/PolyDock | f32def214753ca0f6bab9968bc2bb5e451cb6e4f | [
"MIT"
] | 30 | 2020-03-25T17:22:51.000Z | 2020-08-17T00:33:04.000Z | PolyDock/PolyDock/src/pd/ecs/sys/tabbedWindowControl/TabbedWindowControlWidgetUpdate.cpp | Qt-Widgets/PolyDock | f32def214753ca0f6bab9968bc2bb5e451cb6e4f | [
"MIT"
] | 5 | 2020-03-26T17:12:34.000Z | 2021-03-05T08:08:39.000Z | #include <pd/pch/PCH.h>
#include <pd/ecs/sys/tabbedWindowControl/TabbedWindowControlWidgetUpdate.hpp>
#include <pd/ecs/cmp/tabbedWindowControl/TabbedWindowControl.hpp>
#include <pd/ecs/cmp/tabbedWindowControl/TabbedWindowControlWidget.hpp>
using namespace ::pd::ecs::sys;
using namespace ::pd::ecs::cmp::tabbedWindowCo... | 36.103448 | 108 | 0.684814 | PolyEngineTeam |
3e5faadcc3a4450af2a2eef103eb2365acecb0c7 | 550 | hpp | C++ | project_challenge_3/src/Piece.hpp | WenheLI/advanced_creative_code_19 | 1480c6ff8b7f5f53cc0f3ff8677138e70cff5269 | [
"MIT"
] | null | null | null | project_challenge_3/src/Piece.hpp | WenheLI/advanced_creative_code_19 | 1480c6ff8b7f5f53cc0f3ff8677138e70cff5269 | [
"MIT"
] | null | null | null | project_challenge_3/src/Piece.hpp | WenheLI/advanced_creative_code_19 | 1480c6ff8b7f5f53cc0f3ff8677138e70cff5269 | [
"MIT"
] | null | null | null | //
// Piece.hpp
// project_challenge_3
//
// Created by Casey Pan on 3/8/19.
//
#ifndef Piece_hpp
#define Piece_hpp
#include <stdio.h>
#include "ofMain.h"
class Piece{
public:
string FILE_PATH;
ofImage graph;
ofVec2f pos;
ofVec2f size;
int counter = 0;
bool isTouched=fa... | 14.102564 | 56 | 0.603636 | WenheLI |
3e612be80f6ff9bb1ba167bd826ea9bc72cc8c12 | 1,957 | hpp | C++ | include/kiwi/Context.hpp | alurin/kiwi | d428b6e70fb79f80caa096916dd570f4fc9725cf | [
"MIT"
] | null | null | null | include/kiwi/Context.hpp | alurin/kiwi | d428b6e70fb79f80caa096916dd570f4fc9725cf | [
"MIT"
] | null | null | null | include/kiwi/Context.hpp | alurin/kiwi | d428b6e70fb79f80caa096916dd570f4fc9725cf | [
"MIT"
] | null | null | null | /*
*******************************************************************************
* Copyright (C) 2012 Vasiliy Sheredeko
* MIT license. All Rights Reserved.
*******************************************************************************
*/
#ifndef KIWI_CONTEXT_INCLUDED
#define KIWI_CONTEXT_INCLUDED
#include ... | 26.093333 | 95 | 0.546244 | alurin |
3e62f2ec6cbde33cee413fbe624b1c16e083dd20 | 551 | cpp | C++ | mua.cpp | Locietta/mua-lang | d82a64fa2bdd6b8adfc57bfb9c362b5c87ed497e | [
"MIT"
] | null | null | null | mua.cpp | Locietta/mua-lang | d82a64fa2bdd6b8adfc57bfb9c362b5c87ed497e | [
"MIT"
] | null | null | null | mua.cpp | Locietta/mua-lang | d82a64fa2bdd6b8adfc57bfb9c362b5c87ed497e | [
"MIT"
] | null | null | null | #include "lexer.h"
#include "parser.h"
#include "token_stream.h"
#include <fstream>
#include <iostream>
using namespace std;
void mua(istream &in); // NOLINT
int main(int argc, char *argv[]) {
if (argc > 1) {
ifstream fin(argv[1]);
if (!fin) {
cerr << "Couldn't open file " << argv[1] <... | 18.366667 | 62 | 0.528131 | Locietta |
3e633bb4916f115fa70876f9ccc3ddcace3e46c0 | 4,789 | hpp | C++ | test/transformations/crop.hpp | cynodelic/tesela | 3b86a7b9501c7136d5168c7e314740fa7f72f7a7 | [
"BSL-1.0"
] | null | null | null | test/transformations/crop.hpp | cynodelic/tesela | 3b86a7b9501c7136d5168c7e314740fa7f72f7a7 | [
"BSL-1.0"
] | null | null | null | test/transformations/crop.hpp | cynodelic/tesela | 3b86a7b9501c7136d5168c7e314740fa7f72f7a7 | [
"BSL-1.0"
] | null | null | null | // Copyright (c) 2019 Álvaro Ceballos
// Distributed under the Boost Software License, Version 1.0.
// See accompanying file LICENSE or copy at http://www.boost.org/LICENSE_1_0.txt
#ifndef CYNODELIC_TESELA_TEST_TRANSFORMATIONS_CROP_HPP
#define CYNODELIC_TESELA_TEST_TRANSFORMATIONS_CROP_HPP
CYNODELIC_TESTER_TEST_CASE... | 25.886486 | 80 | 0.631865 | cynodelic |
3e65f313c1322c7ad4bdabf01a7dcc33b137c200 | 14,998 | cpp | C++ | mesh/src/reader/GmshMeshReader.cpp | ktunya/ChasteMod | 88ac65b00473cd730d348c783bd74b2b39de5f69 | [
"Apache-2.0"
] | null | null | null | mesh/src/reader/GmshMeshReader.cpp | ktunya/ChasteMod | 88ac65b00473cd730d348c783bd74b2b39de5f69 | [
"Apache-2.0"
] | null | null | null | mesh/src/reader/GmshMeshReader.cpp | ktunya/ChasteMod | 88ac65b00473cd730d348c783bd74b2b39de5f69 | [
"Apache-2.0"
] | null | null | null | /*
Copyright (c) 2005-2015, University of Oxford.
All rights reserved.
University of Oxford means the Chancellor, Masters and Scholars of the
University of Oxford, having an administrative office at Wellington
Square, Oxford OX1 2JD, UK.
This file is part of Chaste.
Redistribution and use in source and binary forms... | 30.608163 | 142 | 0.696626 | ktunya |
3e66b77500e4aeb92867c85896fbca20390a2adf | 5,145 | cpp | C++ | src/drivers/uart_megapi.cpp | kelceydamage/xavier | 1b14e5280f48c5d0087efe50bf6eb23333a11174 | [
"Apache-2.0"
] | 1 | 2020-01-22T18:54:38.000Z | 2020-01-22T18:54:38.000Z | src/drivers/uart_megapi.cpp | kelceydamage/xavier | 1b14e5280f48c5d0087efe50bf6eb23333a11174 | [
"Apache-2.0"
] | null | null | null | src/drivers/uart_megapi.cpp | kelceydamage/xavier | 1b14e5280f48c5d0087efe50bf6eb23333a11174 | [
"Apache-2.0"
] | null | null | null | /* ------------------------------------------------------------------------ 79->
* Author: Kelcey Damage
* c++: 17
* Doc
*
* 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:/... | 28.114754 | 97 | 0.567347 | kelceydamage |
3e66dd1e00f6bfc078008f180e5237603b366ddf | 1,695 | cpp | C++ | RDR2Extension/MenuSettingsPage.cpp | luca1337/RDR2Extension | ff786053eb1189b603e6e0d1929f3220d1d45b1d | [
"MIT"
] | 4 | 2021-02-13T10:21:29.000Z | 2021-10-09T03:05:09.000Z | RDR2Extension/MenuSettingsPage.cpp | luca1337/RDR2Extension | ff786053eb1189b603e6e0d1929f3220d1d45b1d | [
"MIT"
] | null | null | null | RDR2Extension/MenuSettingsPage.cpp | luca1337/RDR2Extension | ff786053eb1189b603e6e0d1929f3220d1d45b1d | [
"MIT"
] | 6 | 2021-03-05T14:25:35.000Z | 2021-10-09T04:11:52.000Z | #include "MenuSettingsPage.h"
#include "MenuItemSwitchPage.h"
#include "MenuController.h"
#include "Registry.h"
// pages
#include "PlayerPage.h"
class MenuItemSaveSettings : public MenuItemSwitchOnOff
{
public:
MenuItemSaveSettings(const Vector3& screenPos, const std::string& caption, const ColorRGBA8& switchColor)
... | 27.786885 | 129 | 0.717994 | luca1337 |
3e6a01f822603d39a14b5621badb50a49bca2af6 | 2,202 | cpp | C++ | Tool/memedit/static-library-install/install.cpp | qianxingmolu/c4droid-code | 07b27a3060178ba7f8c63e28d15ded75ccb4a0a8 | [
"MIT"
] | 54 | 2020-11-27T17:57:59.000Z | 2022-03-28T01:48:09.000Z | Tool/memedit/static-library-install/install.cpp | fangtao331/c4droid-code | 6fe69111bc6f9da2f7ff8c5b75be8e2638fa3819 | [
"MIT"
] | null | null | null | Tool/memedit/static-library-install/install.cpp | fangtao331/c4droid-code | 6fe69111bc6f9da2f7ff8c5b75be8e2638fa3819 | [
"MIT"
] | 17 | 2020-11-28T06:36:19.000Z | 2022-01-28T03:05:27.000Z | /*
memedit00安装程序 支持32位和64位手机,暂时不支持电脑模拟器
1.运行即可安装成功
2.修改g++参数(设置->G++参数)如下 (直接复制粘贴)
cd (c4droid:GCCROOT)tmpdir
export TEMP=(c4droid:GCCROOT)tmpdir
(c4droid:GCCROOT)bin/(c4droid:PREFIX)-g++ (c4droid:SRC) -lm -ldl -llog -lz -lmemedit00 -I(c4droid:CURSRCDIR) -std=c++14 -Wfatal-errors (c4droid:MODEARGS) -o (c4droid:B... | 23.934783 | 170 | 0.636694 | qianxingmolu |
3e6e73e41ebc93cbb35be45e76cbf05eedcd5485 | 869 | hpp | C++ | include/networkit/components/RandomSpanningForest.hpp | acalio/networkit | ca03b04555c1fd100041b341ac832fe71de44f8e | [
"MIT"
] | 1 | 2020-04-03T01:27:01.000Z | 2020-04-03T01:27:01.000Z | include/networkit/components/RandomSpanningForest.hpp | alouhaha/networkit | 10f8f89a88762d4657bcf6fdcaecc23f07971321 | [
"MIT"
] | null | null | null | include/networkit/components/RandomSpanningForest.hpp | alouhaha/networkit | 10f8f89a88762d4657bcf6fdcaecc23f07971321 | [
"MIT"
] | null | null | null | /*
* RandomSpanningForest.hpp
*
* Created on: 06.09.2015
* Author: Henning
*/
#ifndef NETWORKIT_COMPONENTS_RANDOM_SPANNING_FOREST_HPP_
#define NETWORKIT_COMPONENTS_RANDOM_SPANNING_FOREST_HPP_
#include <networkit/graph/Graph.hpp>
#include <networkit/graph/SpanningForest.hpp>
namespace NetworKit {
/**
* C... | 23.486486 | 63 | 0.734177 | acalio |
3e6e817fb0244dcde79e3e21954ff3c2312dc661 | 12,557 | cpp | C++ | Source/SVWidgetsLib/FilterParameterWidgets/LinkedDataContainerSelectionWidget.cpp | jmarquisbq/SIMPL | 375653013742cfe9aed603fc9a6bab6d9c96be31 | [
"NRL"
] | null | null | null | Source/SVWidgetsLib/FilterParameterWidgets/LinkedDataContainerSelectionWidget.cpp | jmarquisbq/SIMPL | 375653013742cfe9aed603fc9a6bab6d9c96be31 | [
"NRL"
] | null | null | null | Source/SVWidgetsLib/FilterParameterWidgets/LinkedDataContainerSelectionWidget.cpp | jmarquisbq/SIMPL | 375653013742cfe9aed603fc9a6bab6d9c96be31 | [
"NRL"
] | null | null | null | /* ============================================================================
* Copyright (c) 2009-2016 BlueQuartz Software, LLC
*
* 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... | 35.774929 | 165 | 0.597515 | jmarquisbq |
3e70873a0c4df18c28881dfdd707159128841829 | 7,151 | cpp | C++ | src/third_party/WebKit/Source/core/dom/DOMException.cpp | amd/Chromium-WebCL | 41baee31a8e6e3241e097db4047025a3ecbfc9f4 | [
"MIT"
] | 49 | 2015-01-07T04:37:04.000Z | 2022-03-25T08:37:14.000Z | src/third_party/WebKit/Source/core/dom/DOMException.cpp | mcanthony/Chromium-WebCL | 41baee31a8e6e3241e097db4047025a3ecbfc9f4 | [
"MIT"
] | 1 | 2016-03-22T11:48:22.000Z | 2016-12-05T15:26:52.000Z | src/third_party/WebKit/Source/core/dom/DOMException.cpp | mcanthony/Chromium-WebCL | 41baee31a8e6e3241e097db4047025a3ecbfc9f4 | [
"MIT"
] | 8 | 2015-06-29T21:53:18.000Z | 2019-11-01T21:22:47.000Z | /*
* Copyright (C) 2011 Google Inc. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
*
* 1. Redistributions of source code must retain the above copyright
* notice, this list of condit... | 46.435065 | 169 | 0.714865 | amd |
3e70e3fb885c085adf24aced03c991485465a2a2 | 398 | cpp | C++ | problems/acmicpc_15651.cpp | qawbecrdtey/BOJ-sol | e3f410e8f4e3a6ade51b68ce2024529870edac64 | [
"MIT"
] | null | null | null | problems/acmicpc_15651.cpp | qawbecrdtey/BOJ-sol | e3f410e8f4e3a6ade51b68ce2024529870edac64 | [
"MIT"
] | null | null | null | problems/acmicpc_15651.cpp | qawbecrdtey/BOJ-sol | e3f410e8f4e3a6ade51b68ce2024529870edac64 | [
"MIT"
] | null | null | null | #include <stdio.h>
void f(int const n,int const m,int *const a, int const idx){
if(idx==m){
for(int i=0;i<m;i++){
printf("%d ",a[i]+1);
}
printf("\n");
return;
}
for(int i=0;i<n;i++){
a[idx]=i;
f(n,m,a,idx+1);
}
}
int main(){
int n,m;
s... | 18.952381 | 60 | 0.41206 | qawbecrdtey |
3e722ae01c181178eec7d1fcfb9fd6d42081d9f6 | 17,361 | cpp | C++ | libvast/test/convertible.cpp | rdettai/vast | 0b3cf41011df5fe8a4e8430fa6a1d6f1c50a18fa | [
"BSD-3-Clause"
] | 63 | 2016-04-22T01:50:03.000Z | 2019-07-31T15:50:36.000Z | libvast/test/convertible.cpp | rdettai/vast | 0b3cf41011df5fe8a4e8430fa6a1d6f1c50a18fa | [
"BSD-3-Clause"
] | 216 | 2017-01-24T16:25:43.000Z | 2019-08-01T19:37:00.000Z | libvast/test/convertible.cpp | rdettai/vast | 0b3cf41011df5fe8a4e8430fa6a1d6f1c50a18fa | [
"BSD-3-Clause"
] | 28 | 2016-05-19T13:09:19.000Z | 2019-04-12T15:11:42.000Z | // _ _____ __________
// | | / / _ | / __/_ __/ Visibility
// | |/ / __ |_\ \ / / Across
// |___/_/ |_/___/ /_/ Space and Time
//
// SPDX-FileCopyrightText: (c) 2021 The VAST Contributors
// SPDX-License-Identifier: BSD-3-Clause
#include <caf/meta/type_name.hpp>
#include <iterator>
#... | 26.424658 | 80 | 0.585911 | rdettai |
3e7624a5da4786dff98171f33bd625f2515a011e | 2,020 | cpp | C++ | codeforces/anirudhak47/835/C.cpp | anirudhakulkarni/codes | d7a907951033b57314dfc0b837123aaa5c25a39a | [
"MIT"
] | 3 | 2020-07-09T16:15:42.000Z | 2020-07-17T13:19:42.000Z | codeforces/anirudhak47/835/C.cpp | anirudhakulkarni/codes | d7a907951033b57314dfc0b837123aaa5c25a39a | [
"MIT"
] | null | null | null | codeforces/anirudhak47/835/C.cpp | anirudhakulkarni/codes | d7a907951033b57314dfc0b837123aaa5c25a39a | [
"MIT"
] | 1 | 2020-07-17T13:19:48.000Z | 2020-07-17T13:19:48.000Z | #include "bits/stdc++.h"
using namespace std;
typedef long long ll;
typedef vector<int> vi;
typedef vector< vi > vvi;
/////////////////////////
#define F first
#define S second
#define PB push_back
#define MP make_pair
#define loop(i,a,b) for (int i = a; i < b; i++)
//////////////////////////
#define prin... | 23.488372 | 79 | 0.497525 | anirudhakulkarni |
3e762d3948be707778842957696bed168297ed2e | 2,833 | cpp | C++ | src/Microsoft.DotNet.Wpf/src/WpfGfx/core/resources/geometrymodel3d.cpp | txlos/wpf | 4004b4e8c8d5c0d5e9de0f1be1fd929c3dee6fa1 | [
"MIT"
] | 5,937 | 2018-12-04T16:32:50.000Z | 2022-03-31T09:48:37.000Z | src/Microsoft.DotNet.Wpf/src/WpfGfx/core/resources/geometrymodel3d.cpp | txlos/wpf | 4004b4e8c8d5c0d5e9de0f1be1fd929c3dee6fa1 | [
"MIT"
] | 4,151 | 2018-12-04T16:38:19.000Z | 2022-03-31T18:41:14.000Z | src/Microsoft.DotNet.Wpf/src/WpfGfx/core/resources/geometrymodel3d.cpp | txlos/wpf | 4004b4e8c8d5c0d5e9de0f1be1fd929c3dee6fa1 | [
"MIT"
] | 1,084 | 2018-12-04T16:24:21.000Z | 2022-03-30T13:52:03.000Z | // Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
//+-----------------------------------------------------------------------
//
//
//-------------------------------... | 27.77451 | 105 | 0.575009 | txlos |
3e769502fc22679a63afef66e1c3e08f902bcce3 | 3,829 | hpp | C++ | src/lib/storage/value_segment/null_value_vector_iterable.hpp | mrcl-tst/hyrise | eec50b39de9f530b0a1732ceb5822b7222f3fe17 | [
"MIT"
] | 583 | 2015-01-10T00:55:32.000Z | 2022-03-25T12:24:30.000Z | src/lib/storage/value_segment/null_value_vector_iterable.hpp | mrcl-tst/hyrise | eec50b39de9f530b0a1732ceb5822b7222f3fe17 | [
"MIT"
] | 1,573 | 2015-01-07T15:47:22.000Z | 2022-03-31T11:48:03.000Z | src/lib/storage/value_segment/null_value_vector_iterable.hpp | mrcl-tst/hyrise | eec50b39de9f530b0a1732ceb5822b7222f3fe17 | [
"MIT"
] | 145 | 2015-03-09T16:26:07.000Z | 2022-02-15T12:53:23.000Z | #pragma once
#include <iterator>
#include <utility>
#include "storage/segment_iterables.hpp"
#include "types.hpp"
namespace opossum {
/**
* This is an iterable for the null value vector of a value segment.
* It is used for example in the IS NULL implementation of the table scan.
*/
class NullValueVectorIterable ... | 39.071429 | 117 | 0.709062 | mrcl-tst |
3e7e85b87ea3d8883510d7f579a185829d880dd6 | 4,260 | cpp | C++ | src/components/transmission/miprtpsilkencoder.cpp | xchbx/fox | 12787683ba10db8f5eedf21e2d0e7a63bebc1664 | [
"Apache-2.0"
] | 2 | 2019-04-12T10:26:43.000Z | 2019-06-21T15:20:11.000Z | src/components/transmission/miprtpsilkencoder.cpp | xchbx/NetCamera | 12787683ba10db8f5eedf21e2d0e7a63bebc1664 | [
"Apache-2.0"
] | 1 | 2019-08-06T16:57:49.000Z | 2019-08-06T16:57:49.000Z | src/components/transmission/miprtpsilkencoder.cpp | xchbx/NetCamera | 12787683ba10db8f5eedf21e2d0e7a63bebc1664 | [
"Apache-2.0"
] | 1 | 2020-12-31T08:52:03.000Z | 2020-12-31T08:52:03.000Z | /*
This file is a part of EMIPLIB, the EDM Media over IP Library.
Copyright (C) 2006-2016 Hasselt University - Expertise Centre for
Digital Media (EDM) (http://www.edm.uhasselt.be)
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU ... | 25.662651 | 129 | 0.73615 | xchbx |
3e8cfe1ac944d6d891779990927862aafd08ef34 | 1,656 | cpp | C++ | components/BLE/test/TestBLEUuid.cpp | xmrhaelan/turpial-firmware | 1ac3fd01448e2bf1061cb67f47d20d12d9b2e13c | [
"Apache-2.0"
] | null | null | null | components/BLE/test/TestBLEUuid.cpp | xmrhaelan/turpial-firmware | 1ac3fd01448e2bf1061cb67f47d20d12d9b2e13c | [
"Apache-2.0"
] | null | null | null | components/BLE/test/TestBLEUuid.cpp | xmrhaelan/turpial-firmware | 1ac3fd01448e2bf1061cb67f47d20d12d9b2e13c | [
"Apache-2.0"
] | null | null | null | /**
* @file test_ble_uuid.cpp
* @author Locha Mesh Developers (contact@locha.io)
* @brief
* @version 0.1
* @date 2019-12-02
*
* @copyright Copyright (c) 2019 Locha Mesh project developers
* @license Apache 2.0, see LICENSE file for details
*/
#include "Uuid.h"
#include <unity.h>
TEST_CASE("Construct Uuid fr... | 28.067797 | 149 | 0.679348 | xmrhaelan |
3e8f00305c5bddb683fd6bc54635060551d6f472 | 2,327 | cpp | C++ | src/boards/mcu/nrf52832/board.cpp | luisgcu/SX126x-Arduino | 072acaa9f5cdcc8cdf582bd4d2248c232b1c2b08 | [
"MIT"
] | 118 | 2019-10-02T14:30:43.000Z | 2022-03-25T10:31:04.000Z | src/boards/mcu/nrf52832/board.cpp | luisgcu/SX126x-Arduino | 072acaa9f5cdcc8cdf582bd4d2248c232b1c2b08 | [
"MIT"
] | 58 | 2019-08-21T15:30:41.000Z | 2022-03-04T02:42:14.000Z | src/boards/mcu/nrf52832/board.cpp | luisgcu/SX126x-Arduino | 072acaa9f5cdcc8cdf582bd4d2248c232b1c2b08 | [
"MIT"
] | 49 | 2019-09-08T15:44:00.000Z | 2022-03-20T22:42:41.000Z | /*
/ _____) _ | |
( (____ _____ ____ _| |_ _____ ____| |__
\____ \| ___ | (_ _) ___ |/ ___) _ \
_____) ) ____| | | || |_| ____( (___| | | |
(______/|_____)_|_|_| \__)_____)\____)_| |_|
(C)2013 Semtech
Description: Target board general functions implementation
License: Revised B... | 29.455696 | 82 | 0.621401 | luisgcu |
3e9121d2023ce6fc2e9d4bfdf9b8fe2e55913eb2 | 603 | cpp | C++ | 2021/11. Sorting/20311022/zad6.cpp | RumiChausheva/CS104 | 95f4df990f1a9d1397fc7da7cf137aa092498ea1 | [
"MIT"
] | 7 | 2021-03-24T16:30:45.000Z | 2022-03-27T09:02:15.000Z | 2021/11. Sorting/20311022/zad6.cpp | RumiChausheva/CS104 | 95f4df990f1a9d1397fc7da7cf137aa092498ea1 | [
"MIT"
] | null | null | null | 2021/11. Sorting/20311022/zad6.cpp | RumiChausheva/CS104 | 95f4df990f1a9d1397fc7da7cf137aa092498ea1 | [
"MIT"
] | 17 | 2021-03-22T09:42:22.000Z | 2022-03-28T03:24:07.000Z | #include <iostream>
using namespace std;
int main()
{
int arr[20], even[20], odd[20], i, j = 0, k = 0, no;
cout << "Size of Array: ";
cin >> no;
cout << "Enter " << no << " elements in the Array: ";
for (i = 0; i < no; i++)
{
cin >> arr[i];
}
for (i = 0; i < no; i++)
{
... | 18.272727 | 57 | 0.328358 | RumiChausheva |
3e92d0d2d02ee75e03415bb1a52b742edef91e6b | 83,709 | cpp | C++ | xfa/fxfa/parser/cxfa_localemgr.cpp | yanxijian/pdfium | aba53245bf116a1d908f851a93236b500988a1ee | [
"Apache-2.0"
] | null | null | null | xfa/fxfa/parser/cxfa_localemgr.cpp | yanxijian/pdfium | aba53245bf116a1d908f851a93236b500988a1ee | [
"Apache-2.0"
] | null | null | null | xfa/fxfa/parser/cxfa_localemgr.cpp | yanxijian/pdfium | aba53245bf116a1d908f851a93236b500988a1ee | [
"Apache-2.0"
] | null | null | null | // Copyright 2014 PDFium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com
#include "xfa/fxfa/parser/cxfa_localemgr.h"
#include <time.h>
#include <memo... | 65.808962 | 80 | 0.637004 | yanxijian |
3e93755f7cb11b770392344814fb8f69d1108d87 | 219,031 | cpp | C++ | src/getRslt.cpp | buaazhouxingyu/topoana | 50a235614efe48cc17d9691c3cc150564e6e60f7 | [
"MIT"
] | 15 | 2020-01-13T01:30:14.000Z | 2022-01-17T03:22:34.000Z | src/getRslt.cpp | buaazhouxingyu/topoana | 50a235614efe48cc17d9691c3cc150564e6e60f7 | [
"MIT"
] | 5 | 2019-06-01T13:38:44.000Z | 2021-06-19T09:26:12.000Z | src/getRslt.cpp | buaazhouxingyu/topoana | 50a235614efe48cc17d9691c3cc150564e6e60f7 | [
"MIT"
] | 9 | 2019-06-01T10:19:25.000Z | 2022-01-10T15:00:21.000Z | #include "../include/topoana.h"
#include <iostream>
#include <cstdlib>
#include <cmath>
#include <iomanip>
#include <cstring>
#include "TFile.h"
#include "TChain.h"
#include "TTree.h"
#include "TBranch.h"
#include <ctime>
#include "TTreeFormula.h"
#include <sstream>
#include <algorithm>
void topoana::getRslt()
{
uns... | 69.116756 | 705 | 0.570362 | buaazhouxingyu |
3e9813ba07ae5af1f8daed5f7782dff1cf7ff210 | 1,462 | hpp | C++ | src/nnfusion/core/operators/op_define/fused.hpp | nox-410/nnfusion | 0777e297299c4e7a5071dc2ee97b87adcd22840e | [
"MIT"
] | 639 | 2020-09-05T10:00:59.000Z | 2022-03-30T08:42:39.000Z | src/nnfusion/core/operators/op_define/fused.hpp | nox-410/nnfusion | 0777e297299c4e7a5071dc2ee97b87adcd22840e | [
"MIT"
] | 252 | 2020-09-09T05:35:36.000Z | 2022-03-29T04:58:41.000Z | src/nnfusion/core/operators/op_define/fused.hpp | nox-410/nnfusion | 0777e297299c4e7a5071dc2ee97b87adcd22840e | [
"MIT"
] | 104 | 2020-09-05T10:01:08.000Z | 2022-03-23T10:59:13.000Z | //*****************************************************************************
// Copyright 2017-2020 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://w... | 33.227273 | 81 | 0.566347 | nox-410 |
3e98451e9c79dec0afcd326fbbf39265b3c85a14 | 2,981 | cpp | C++ | system-test/test_kafkacdc.cpp | AnneStrasserMDB/MaxScale | f0c0d391d8a77dea595ddb0e1563b1c06472987c | [
"BSD-3-Clause"
] | null | null | null | system-test/test_kafkacdc.cpp | AnneStrasserMDB/MaxScale | f0c0d391d8a77dea595ddb0e1563b1c06472987c | [
"BSD-3-Clause"
] | null | null | null | system-test/test_kafkacdc.cpp | AnneStrasserMDB/MaxScale | f0c0d391d8a77dea595ddb0e1563b1c06472987c | [
"BSD-3-Clause"
] | null | null | null | #include <future>
#include <iostream>
#include <librdkafka/rdkafkacpp.h>
#include <maxtest/testconnections.hh>
using namespace std::literals::string_literals;
std::unique_ptr<RdKafka::KafkaConsumer> consumer;
void prepare_consumer(TestConnections& test)
{
std::string err;
auto cnf = RdKafka::Conf::create(RdK... | 26.855856 | 108 | 0.619926 | AnneStrasserMDB |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.