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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
5081c7d33af9647d83b7b6a0905c91a566c1685a | 856 | cpp | C++ | codeforces/587div3/B.cpp | xenowits/cp | 963b3c7df65b5328d5ce5ef894a46691afefb98c | [
"MIT"
] | null | null | null | codeforces/587div3/B.cpp | xenowits/cp | 963b3c7df65b5328d5ce5ef894a46691afefb98c | [
"MIT"
] | null | null | null | codeforces/587div3/B.cpp | xenowits/cp | 963b3c7df65b5328d5ce5ef894a46691afefb98c | [
"MIT"
] | null | null | null | #include<bits/stdc++.h>
using namespace std;
#define fori(i,a,b) for (long int i = a; i <= b ; ++i)
#define ford(i,a,b) for(long int i = a;i >= b ; --i)
#define mk make_pair
#define mod 1000000007
#define pb push_back
#define vec vector<long long int>
#define ll long long
#define rnd mt19937_64 rng(chrono::high_resolu... | 17.12 | 91 | 0.593458 | xenowits |
5088bd07be39f03921292ee9a9af76c4f3883ed7 | 1,067 | cpp | C++ | competitive programming/leetcode/905. Sort Array By Parity.cpp | kashyap99saksham/Code | 96658d0920eb79c007701d2a3cc9dbf453d78f96 | [
"MIT"
] | 16 | 2020-06-02T19:22:45.000Z | 2022-02-05T10:35:28.000Z | competitive programming/leetcode/905. Sort Array By Parity.cpp | codezoned/Code | de91ffc7ef06812a31464fb40358e2436734574c | [
"MIT"
] | null | null | null | competitive programming/leetcode/905. Sort Array By Parity.cpp | codezoned/Code | de91ffc7ef06812a31464fb40358e2436734574c | [
"MIT"
] | 2 | 2020-08-27T17:40:06.000Z | 2022-02-05T10:33:52.000Z | Given an array A of non-negative integers, return an array consisting of all the even elements of A, followed by all the odd elements of A.
You may return any answer array that satisfies this condition.
Example 1:
Input: [3,1,2,4]
Output: [2,4,3,1]
The outputs [4,2,3,1], [2,4,1,3], and [4,2,1,3] would also be acce... | 16.936508 | 139 | 0.492971 | kashyap99saksham |
5089af9edf6629885ea3f89dd4f8105bc13337a7 | 1,585 | hpp | C++ | infra/util/Allocator.hpp | oguzcanphilips/embeddedinfralib | f1b083d61a34d123d34ab7cd51267377aa2f7855 | [
"Unlicense"
] | 54 | 2019-04-02T14:42:54.000Z | 2022-03-20T23:02:19.000Z | infra/util/Allocator.hpp | oguzcanphilips/embeddedinfralib | f1b083d61a34d123d34ab7cd51267377aa2f7855 | [
"Unlicense"
] | 32 | 2019-03-26T06:57:29.000Z | 2022-03-25T00:04:44.000Z | infra/util/Allocator.hpp | oguzcanphilips/embeddedinfralib | f1b083d61a34d123d34ab7cd51267377aa2f7855 | [
"Unlicense"
] | 20 | 2019-03-25T15:49:49.000Z | 2022-03-20T23:02:22.000Z | #ifndef INFRA_ALLOCATOR_HPP
#define INFRA_ALLOCATOR_HPP
#include <memory>
namespace infra
{
class AllocatorBase
{
protected:
AllocatorBase() = default;
AllocatorBase(const AllocatorBase& other) = delete;
AllocatorBase& operator=(const AllocatorBase& other) = delete;
~Alloca... | 22.323944 | 70 | 0.634069 | oguzcanphilips |
509162b1e05af53522a2ceacc5e9f25212b7add7 | 1,862 | hpp | C++ | Simple++/MemoryAllocation.hpp | Oriode/Simpleplusplus | 2ba44eeab5078d6dab66bdefdf73617696b8cb2e | [
"Apache-2.0"
] | null | null | null | Simple++/MemoryAllocation.hpp | Oriode/Simpleplusplus | 2ba44eeab5078d6dab66bdefdf73617696b8cb2e | [
"Apache-2.0"
] | null | null | null | Simple++/MemoryAllocation.hpp | Oriode/Simpleplusplus | 2ba44eeab5078d6dab66bdefdf73617696b8cb2e | [
"Apache-2.0"
] | null | null | null |
MemoryAllocation::MemoryAllocation( void ) {
}
MemoryAllocation::MemoryAllocation( unsigned long memoryAddress, unsigned long memorySize, const StringASCII & allocationFileName, unsigned int lineNumber ) {
this -> memoryAddress = memoryAddress;
this -> memorySize = memorySize;
this -> allocationFileName = allocati... | 25.861111 | 158 | 0.767991 | Oriode |
5092c1c3cc00fc3ec505ba5fe0f40c04f6f003dd | 1,891 | hpp | C++ | lab_4/matrixline_methods.hpp | DrStarland/bmstu_AA_2020 | acbb0c76d5763c06db0230025423e0fbb4382a9f | [
"Apache-2.0"
] | null | null | null | lab_4/matrixline_methods.hpp | DrStarland/bmstu_AA_2020 | acbb0c76d5763c06db0230025423e0fbb4382a9f | [
"Apache-2.0"
] | null | null | null | lab_4/matrixline_methods.hpp | DrStarland/bmstu_AA_2020 | acbb0c76d5763c06db0230025423e0fbb4382a9f | [
"Apache-2.0"
] | null | null | null | #ifndef MATRIXLINE_METHODS_HPP
#define MATRIXLINE_METHODS_HPP
#include "matrix.h"
template <typename T>
Matrix<T>::MatrixLine::MatrixLine(size_t len) : MatrixLine(len, nullptr) {}
template <typename T>
Matrix<T>::MatrixLine::MatrixLine(MatrixLine &©) { this->_move(std::move(copy)); }
template <typename T... | 32.603448 | 93 | 0.649392 | DrStarland |
50a14eb15659a1a668e106113a140777c86b501d | 5,979 | cpp | C++ | test/android/jni.cpp | 10110111/GLFFT | 78176d4480bc3675327bf2bcfd80d5dae1820081 | [
"MIT"
] | 176 | 2015-08-17T20:47:10.000Z | 2022-03-30T09:14:33.000Z | test/android/jni.cpp | 10110111/GLFFT | 78176d4480bc3675327bf2bcfd80d5dae1820081 | [
"MIT"
] | 6 | 2017-09-21T15:55:44.000Z | 2020-11-07T03:15:44.000Z | test/android/jni.cpp | 10110111/GLFFT | 78176d4480bc3675327bf2bcfd80d5dae1820081 | [
"MIT"
] | 28 | 2016-02-28T04:37:50.000Z | 2022-02-27T12:35:55.000Z | /* Copyright (C) 2015 Hans-Kristian Arntzen <maister@archlinux.us>
*
* 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... | 26.811659 | 129 | 0.646596 | 10110111 |
50a3fa8ab19998e82f47f1c1c383e3b87fac989a | 1,752 | hpp | C++ | src/ScreenServer.hpp | RobinSinghNanda/Home-assistant-display | 6f59104012c0956b54d4b55e190aa89941c2c1af | [
"MIT"
] | 2 | 2020-10-23T19:53:56.000Z | 2020-11-06T08:59:48.000Z | src/ScreenServer.hpp | RobinSinghNanda/Home-assistant-display | 6f59104012c0956b54d4b55e190aa89941c2c1af | [
"MIT"
] | null | null | null | src/ScreenServer.hpp | RobinSinghNanda/Home-assistant-display | 6f59104012c0956b54d4b55e190aa89941c2c1af | [
"MIT"
] | null | null | null | #ifndef __SCREENSERVER_H__
#define __SCREENSERVER_H__
#include "Arduino.h"
#include "TFT_eSPI.h"
//====================================================================================
// Definitions
//====================================================================================... | 42.731707 | 86 | 0.639269 | RobinSinghNanda |
50a62b87724180c6555f2d0fdc10c3b01f22255d | 2,388 | cpp | C++ | dia/ParserEditorUndoCommand.cpp | BKEngine/Creator | 5cc08fb828866cfa970951a14e41c38ecd471a8d | [
"CNRI-Python"
] | 25 | 2016-11-20T15:33:09.000Z | 2022-02-22T09:35:20.000Z | dia/ParserEditorUndoCommand.cpp | BKEngine/Creator | 5cc08fb828866cfa970951a14e41c38ecd471a8d | [
"CNRI-Python"
] | 3 | 2017-05-25T23:19:44.000Z | 2019-07-10T02:18:58.000Z | dia/ParserEditorUndoCommand.cpp | BKEngine/Creator | 5cc08fb828866cfa970951a14e41c38ecd471a8d | [
"CNRI-Python"
] | 8 | 2016-12-23T22:40:04.000Z | 2021-08-09T04:43:11.000Z | #include "ParserEditorUndoCommand.h"
#include "ParserEditorTreeModel.h"
#include "ParserEditorTreeItem.h"
InsertRowsCommand::InsertRowsCommand(ParserEditorTreeModel *model, int row, int count, const QModelIndex &parent)
: model(model)
, row(row)
, count(count)
, parent(parent)
{
}
void InsertRowsCommand::undo()
{... | 19.258065 | 147 | 0.730318 | BKEngine |
27084f8412eae86805d019686bfd70a04db14971 | 6,627 | hpp | C++ | dof-mgr/src/Panzer_IntrepidFieldPattern.hpp | hillyuan/Panzer | 13ece3ea4c145c4d7b6339e3ad6332a501932ea8 | [
"BSD-3-Clause"
] | 1 | 2022-03-22T03:49:50.000Z | 2022-03-22T03:49:50.000Z | dof-mgr/src/Panzer_IntrepidFieldPattern.hpp | hillyuan/Panzer | 13ece3ea4c145c4d7b6339e3ad6332a501932ea8 | [
"BSD-3-Clause"
] | null | null | null | dof-mgr/src/Panzer_IntrepidFieldPattern.hpp | hillyuan/Panzer | 13ece3ea4c145c4d7b6339e3ad6332a501932ea8 | [
"BSD-3-Clause"
] | null | null | null | // @HEADER
// ***********************************************************************
//
// Panzer: A partial differential equation assembly
// engine for strongly coupled complex multiphysics systems
// Copyright (2011) Sandia Corporation
//
// Under the terms of Contract DE-AC04-94AL85... | 43.598684 | 108 | 0.689 | hillyuan |
270aff09f7b49dba066873ece2b73065be1fbf58 | 13,021 | hpp | C++ | include/boost/gil/io/device.hpp | sdebionne/gil-reformated | 7065d600d7f84d9ef2ed4df9862c596ff7e8a8c2 | [
"BSL-1.0"
] | null | null | null | include/boost/gil/io/device.hpp | sdebionne/gil-reformated | 7065d600d7f84d9ef2ed4df9862c596ff7e8a8c2 | [
"BSL-1.0"
] | null | null | null | include/boost/gil/io/device.hpp | sdebionne/gil-reformated | 7065d600d7f84d9ef2ed4df9862c596ff7e8a8c2 | [
"BSL-1.0"
] | null | null | null | //
// Copyright 2007-2012 Christian Henning, Andreas Pokorny
//
// Distributed under the Boost Software License, Version 1.0
// See accompanying file LICENSE_1_0.txt or copy at
// http://www.boost.org/LICENSE_1_0.txt
//
#ifndef BOOST_GIL_IO_DEVICE_HPP
#define BOOST_GIL_IO_DEVICE_HPP
#include <boost/gil/detail/mp11.hpp... | 25.531373 | 80 | 0.651179 | sdebionne |
270e8b3df3b7bd8b52e67cb3eea40f08be838f4c | 1,135 | hpp | C++ | e-Paper/src/WiFiHandler.hpp | PDA-UR/Dumb-e-Paper | 99aecce5fbcb64d32b7e47809df393e0e2e7fab4 | [
"MIT"
] | 2 | 2019-01-30T13:48:14.000Z | 2021-10-30T16:11:03.000Z | e-Paper/src/WiFiHandler.hpp | PDA-UR/Dumb-e-Paper | 99aecce5fbcb64d32b7e47809df393e0e2e7fab4 | [
"MIT"
] | null | null | null | e-Paper/src/WiFiHandler.hpp | PDA-UR/Dumb-e-Paper | 99aecce5fbcb64d32b7e47809df393e0e2e7fab4 | [
"MIT"
] | 2 | 2018-02-14T12:45:59.000Z | 2021-12-17T20:57:02.000Z | #ifndef __WIFIHANDLER_H_INCLUDED__
#define __WIFIHANDLER_H_INCLUDED__
/**
* @defgroup WiFi Handler
*/
/** @addtogroup WiFi Handler */
/*@{*/
#include "main.hpp"
#include <WiFi.h>
#include <WiFiMulti.h>
/**
* @brief Could be anything but must also be changed in python script
*/
const int PORT = 1516;
enum class... | 17.461538 | 69 | 0.629956 | PDA-UR |
271977f61e3e2b952a3d340389cb5a28802382f2 | 2,378 | cpp | C++ | src/graphics/backend/depth_pass.cpp | NotAPenguin0/Andromeda | 69ac0e448dbc7d5ba8f5915177f333bd8cd1a1b4 | [
"MIT"
] | 7 | 2020-04-28T11:01:55.000Z | 2022-02-22T09:59:33.000Z | src/graphics/backend/depth_pass.cpp | NotAPenguin0/Andromeda | 69ac0e448dbc7d5ba8f5915177f333bd8cd1a1b4 | [
"MIT"
] | 2 | 2021-09-03T12:58:06.000Z | 2021-09-20T20:07:33.000Z | src/graphics/backend/depth_pass.cpp | NotAPenguin0/Andromeda | 69ac0e448dbc7d5ba8f5915177f333bd8cd1a1b4 | [
"MIT"
] | 1 | 2021-09-03T12:56:25.000Z | 2021-09-03T12:56:25.000Z | #include <andromeda/graphics/backend/depth_pass.hpp>
#include <andromeda/graphics/backend/mesh_draw.hpp>
namespace andromeda::gfx::backend {
void create_depth_only_pipeline(gfx::Context& ctx, VkSampleCountFlagBits samples, float sample_ratio) {
ph::PipelineCreateInfo pci = ph::PipelineBuilder::create(ctx, "depth_... | 48.530612 | 185 | 0.671152 | NotAPenguin0 |
271a6bb390cdea7444ec97670599d0ec5b539f6f | 344 | cpp | C++ | hilbert_mapper/src/hilbert_mapper_node.cpp | Jaeyoung-Lim/mav_hilbertmap_planning | 96df718a04953df3b39f080a7e33565407ad6be1 | [
"BSD-3-Clause"
] | 4 | 2019-01-16T16:18:16.000Z | 2019-06-06T14:30:56.000Z | hilbert_mapper/src/hilbert_mapper_node.cpp | Wayne-xixi/mav_hilbertmap_planning | 96df718a04953df3b39f080a7e33565407ad6be1 | [
"BSD-3-Clause"
] | 16 | 2019-01-24T12:44:28.000Z | 2021-01-08T01:44:41.000Z | hilbert_mapper/src/hilbert_mapper_node.cpp | Wayne-xixi/mav_hilbertmap_planning | 96df718a04953df3b39f080a7e33565407ad6be1 | [
"BSD-3-Clause"
] | 2 | 2020-01-10T09:31:49.000Z | 2021-01-02T23:25:53.000Z | // July/2018, ETHZ, Jaeyoung Lim, jalim@student.ethz.ch
#include "hilbert_mapper/hilbert_mapper.h"
//using namespace RAI;
int main(int argc, char** argv) {
ros::init(argc,argv,"geometric_controller");
ros::NodeHandle nh("");
ros::NodeHandle nh_private("~");
HilbertMapper Hilbertmapper(nh, nh_private);
ros... | 22.933333 | 56 | 0.700581 | Jaeyoung-Lim |
272ef38e2bdd26b398d8e764eadb4f729ee15768 | 3,715 | cpp | C++ | Src/Vessel/Atlantis/Common.cpp | Ybalrid/orbiter | 7bed82f845ea8347f238011367e07007b0a24099 | [
"MIT"
] | 1,040 | 2021-07-27T12:12:06.000Z | 2021-08-02T14:24:49.000Z | Src/Vessel/Atlantis/Common.cpp | Ybalrid/orbiter | 7bed82f845ea8347f238011367e07007b0a24099 | [
"MIT"
] | 20 | 2021-07-27T12:25:22.000Z | 2021-08-02T12:22:19.000Z | Src/Vessel/Atlantis/Common.cpp | Ybalrid/orbiter | 7bed82f845ea8347f238011367e07007b0a24099 | [
"MIT"
] | 71 | 2021-07-27T14:19:49.000Z | 2021-08-02T05:51:52.000Z | // ==============================================================
// ORBITER MODULE: Atlantis
// Part of the ORBITER SDK
// Copyright (C) 2001-2003 Martin Schweiger
// All rights reserved
//
// Common.cpp
// Utility functions common to multiple Atlantis-relate... | 40.380435 | 150 | 0.61319 | Ybalrid |
27305309e16b21f4b91241bdb63de3e3ea06e5ee | 6,215 | cxx | C++ | EVE/EveDet/AliEveEMCALSModuleData.cxx | AllaMaevskaya/AliRoot | c53712645bf1c7d5f565b0d3228e3a6b9b09011a | [
"BSD-3-Clause"
] | 52 | 2016-12-11T13:04:01.000Z | 2022-03-11T11:49:35.000Z | EVE/EveDet/AliEveEMCALSModuleData.cxx | AllaMaevskaya/AliRoot | c53712645bf1c7d5f565b0d3228e3a6b9b09011a | [
"BSD-3-Clause"
] | 1,388 | 2016-11-01T10:27:36.000Z | 2022-03-30T15:26:09.000Z | EVE/EveDet/AliEveEMCALSModuleData.cxx | AllaMaevskaya/AliRoot | c53712645bf1c7d5f565b0d3228e3a6b9b09011a | [
"BSD-3-Clause"
] | 275 | 2016-06-21T20:24:05.000Z | 2022-03-31T13:06:19.000Z | /**************************************************************************
* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
* *
* Author: The ALICE Off-line Project. *
* Contributors ... | 27.258772 | 124 | 0.684312 | AllaMaevskaya |
27307444b2da9e8959408ee53db2556cc14f1982 | 578 | cpp | C++ | codes/HDU/hdu5510.cpp | JeraKrs/ACM | edcd61ec6764b8cd804bf1538dfde53d0ff572b5 | [
"Apache-2.0"
] | null | null | null | codes/HDU/hdu5510.cpp | JeraKrs/ACM | edcd61ec6764b8cd804bf1538dfde53d0ff572b5 | [
"Apache-2.0"
] | null | null | null | codes/HDU/hdu5510.cpp | JeraKrs/ACM | edcd61ec6764b8cd804bf1538dfde53d0ff572b5 | [
"Apache-2.0"
] | null | null | null | #include <cstdio>
#include <cstring>
#include <algorithm>
using namespace std;
const int maxn = 505;
const int maxm = 2005;
int N, F[maxn];
char str[maxn][maxm];
int main () {
int cas;
scanf("%d", &cas);
for (int kcas = 1; kcas <= cas; kcas++) {
scanf("%d", &N);
for (int i = 0; i < N; i++) scanf("%s", str[i])... | 18.645161 | 55 | 0.50346 | JeraKrs |
27328566237e55700f7895bf93f686526d64ee99 | 3,341 | cpp | C++ | tests/src/QtSettingsUtilsTests.cpp | oclero/qtutils | 477d65211a15bffabe11d9f0b526c917893ae8ee | [
"MIT"
] | null | null | null | tests/src/QtSettingsUtilsTests.cpp | oclero/qtutils | 477d65211a15bffabe11d9f0b526c917893ae8ee | [
"MIT"
] | null | null | null | tests/src/QtSettingsUtilsTests.cpp | oclero/qtutils | 477d65211a15bffabe11d9f0b526c917893ae8ee | [
"MIT"
] | null | null | null | #include "QtSettingsUtilsTests.hpp"
#include <QTest>
#include <oclero/QtSettingsUtils.hpp>
constexpr auto SETTINGS_KEY = "Toto";
using namespace oclero;
void QtSettingsUtilsTests::init() {
{
QSettings qSettings;
qSettings.remove(SETTINGS_KEY);
}
}
void QtSettingsUtilsTests::cleanup() {
{
QSettin... | 29.052174 | 88 | 0.747082 | oclero |
2734ad912439e8edf65e2870e1d3906a68a2fbd6 | 13,656 | hpp | C++ | src/Memory/AffixAllocator.hpp | epicbrownie/Epic | c54159616b899bb24c6d59325d582e73f2803ab6 | [
"MIT"
] | null | null | null | src/Memory/AffixAllocator.hpp | epicbrownie/Epic | c54159616b899bb24c6d59325d582e73f2803ab6 | [
"MIT"
] | 29 | 2016-08-01T14:50:12.000Z | 2017-12-17T20:28:27.000Z | src/Memory/AffixAllocator.hpp | epicbrownie/Epic | c54159616b899bb24c6d59325d582e73f2803ab6 | [
"MIT"
] | null | null | null | //////////////////////////////////////////////////////////////////////////////
//
// Copyright (c) 2016 Ronnie Brohn (EpicBrownie)
//
// Distributed under The MIT License (MIT).
// (See accompanying file License.txt or copy at
// https://opensource.org/licens... | 33.80198 | 131 | 0.719098 | epicbrownie |
2738cad2ad0f4fd1993a2d3118846cbfdce350c9 | 6,275 | cpp | C++ | src/morda/widgets/label/NinePatch.cpp | Mactor2018/morda | 7194f973783b4472b8671fbb52e8c96e8c972b90 | [
"MIT"
] | 1 | 2018-10-27T05:07:05.000Z | 2018-10-27T05:07:05.000Z | src/morda/widgets/label/NinePatch.cpp | Mactor2018/morda | 7194f973783b4472b8671fbb52e8c96e8c972b90 | [
"MIT"
] | null | null | null | src/morda/widgets/label/NinePatch.cpp | Mactor2018/morda | 7194f973783b4472b8671fbb52e8c96e8c972b90 | [
"MIT"
] | null | null | null | #include <utki/util.hpp>
#include <utki/types.hpp>
#include "../../Morda.hpp"
#include "../../util/util.hpp"
#include "../proxy/ResizeProxy.hpp"
#include "NinePatch.hpp"
using namespace morda;
namespace{
const char* ninePatchLayout_c = R"qwertyuiop(
Row{
layout{dx{fill}}
Image{
name{morda_lt}
}
... | 23.501873 | 135 | 0.631076 | Mactor2018 |
27398d4050dfe38b74e7be92aaa139b91bd37c3e | 988 | cpp | C++ | src/input/InputConfiguration.cpp | jaspervdj/JVGS | 59be35ed61b355b445b82bf32796c0f229e21b60 | [
"WTFPL"
] | 31 | 2015-02-02T04:51:10.000Z | 2021-02-20T10:04:41.000Z | src/input/InputConfiguration.cpp | jaspervdj/JVGS | 59be35ed61b355b445b82bf32796c0f229e21b60 | [
"WTFPL"
] | 2 | 2016-08-30T09:26:31.000Z | 2016-09-14T20:01:20.000Z | src/input/InputConfiguration.cpp | jaspervdj/JVGS | 59be35ed61b355b445b82bf32796c0f229e21b60 | [
"WTFPL"
] | 7 | 2015-02-02T05:02:09.000Z | 2021-12-24T06:53:01.000Z | #include "InputConfiguration.h"
#include "../core/LogManager.h"
using namespace jvgs::core;
using namespace std;
namespace jvgs
{
namespace input
{
InputConfiguration::InputConfiguration()
{
}
InputConfiguration::~InputConfiguration()
{
}
InputConfigu... | 23.52381 | 77 | 0.554656 | jaspervdj |
273cc8c66a8ab4bb13e42655a91d801541d9d465 | 1,609 | hpp | C++ | src/Core/Window.hpp | llGuy/Ondine | 325c2d3ea5bd5ef5456b0181c53ad227571fada3 | [
"MIT"
] | 1 | 2022-01-24T18:15:56.000Z | 2022-01-24T18:15:56.000Z | src/Core/Window.hpp | llGuy/Ondine | 325c2d3ea5bd5ef5456b0181c53ad227571fada3 | [
"MIT"
] | null | null | null | src/Core/Window.hpp | llGuy/Ondine | 325c2d3ea5bd5ef5456b0181c53ad227571fada3 | [
"MIT"
] | null | null | null | #pragma once
#include "IO.hpp"
#include <string_view>
#include <GLFW/glfw3.h>
#include <glm/glm.hpp>
#include "Event.hpp"
#include "Time.hpp"
#include "Utils.hpp"
namespace Ondine::Core {
enum class WindowMode {
Fullscreen,
Windowed
};
using SurfaceCreationProc = void(*)(
struct VkInstance_T *instance,
stru... | 22.347222 | 70 | 0.747669 | llGuy |
2744efcee9ee1238eb1db6f9df77044fae3d1a37 | 156 | hpp | C++ | game_server/src/server_ui.hpp | CellWarsOfficial/CellWars | 40b1e956c871ee686062eba1251a9f9a43d86c2c | [
"Apache-2.0"
] | 5 | 2017-07-20T10:36:23.000Z | 2018-01-30T16:18:31.000Z | game_server/src/server_ui.hpp | CellWarsOfficial/CellWars | 40b1e956c871ee686062eba1251a9f9a43d86c2c | [
"Apache-2.0"
] | null | null | null | game_server/src/server_ui.hpp | CellWarsOfficial/CellWars | 40b1e956c871ee686062eba1251a9f9a43d86c2c | [
"Apache-2.0"
] | null | null | null | #ifndef SERVER_UI_H
#define SERVER_UI_H
#include <log.hpp>
extern Game *game;
void signal_interpreter(int s);
void init_server_ui(Logger *log);
#endif
| 12 | 33 | 0.762821 | CellWarsOfficial |
2746c88ef909c7345bcb0470a83a4b4fe1616962 | 69,161 | cpp | C++ | cdl/CDL_interface.cpp | disi33/libRetroReversing | 1c825a1971820dbb73fcc96aa444408f6b65803d | [
"MIT"
] | null | null | null | cdl/CDL_interface.cpp | disi33/libRetroReversing | 1c825a1971820dbb73fcc96aa444408f6b65803d | [
"MIT"
] | null | null | null | cdl/CDL_interface.cpp | disi33/libRetroReversing | 1c825a1971820dbb73fcc96aa444408f6b65803d | [
"MIT"
] | null | null | null | #include <stdio.h>
#include <stdlib.h>
#include <string.h>
#ifdef _WIN32
#ifndef _WIN32_WINNT
#define _WIN32_WINNT 0x0500
#endif
#include <windows.h>
#else
#include <sys/time.h>
#endif
#include <stdio.h>
#include <map>
#include <fstream>
#include <iostream>
#include <sstream>
#include "../cdl/CDL_FileWriting.hpp"
#i... | 40.186519 | 312 | 0.672836 | disi33 |
274859fcc3c14d6621bb5912b64e71495ce6c751 | 518 | cpp | C++ | C++/402.remove-k-digits.cpp | WilliamZhaoz/github | 2aa0eb17e272249fc225cf2e9861c4c44bd0e265 | [
"MIT"
] | 1 | 2018-03-06T05:07:22.000Z | 2018-03-06T05:07:22.000Z | C++/402.remove-k-digits.cpp | WilliamZhaoz/github | 2aa0eb17e272249fc225cf2e9861c4c44bd0e265 | [
"MIT"
] | 1 | 2021-12-24T16:41:02.000Z | 2021-12-24T16:41:02.000Z | C++/402.remove-k-digits.cpp | WilliamZhaoz/github | 2aa0eb17e272249fc225cf2e9861c4c44bd0e265 | [
"MIT"
] | null | null | null | class Solution {
public:
string removeKdigits(string num, int k) {
int n = num.size();
int leave = n - k;
string res = "";
for (int i = 0; i < num.size(); i++) {
while (k && res.back() > num[i]) {
k--;
res.pop_back();
}
... | 25.9 | 47 | 0.3861 | WilliamZhaoz |
27491f61d7399b5fc86b9abe57f70c2615370f62 | 1,688 | cpp | C++ | vs2017/ui/mainwindow/workbench/AppStoreList.cpp | cheechang/cppcc | 0292e9a9b27e0579970c83b4f6a75dcdae1558bf | [
"MIT"
] | null | null | null | vs2017/ui/mainwindow/workbench/AppStoreList.cpp | cheechang/cppcc | 0292e9a9b27e0579970c83b4f6a75dcdae1558bf | [
"MIT"
] | null | null | null | vs2017/ui/mainwindow/workbench/AppStoreList.cpp | cheechang/cppcc | 0292e9a9b27e0579970c83b4f6a75dcdae1558bf | [
"MIT"
] | null | null | null | #include "AppStoreList.h"
#include <QListWidgetItem>
#include "AppStoreListItem.h"
namespace ui{
AppStoreList::AppStoreList(QWidget *parent)
: QListWidget(parent)
{
m_pAppMgr = APPMGRCONTROL;
CONNECT_SERVICE(GetApplication(std::vector<data::AppInfo>));
if (m_pAppMgr != CNull)
{
m_pAppMgr->getAllApplic... | 25.969231 | 75 | 0.716232 | cheechang |
274b82dafccc64c402de9bd66315b1e8e8c56fd1 | 16,654 | cpp | C++ | regex_to_min_dfa.cpp | avinal/C_ode | f056da37c8c56a4a62a06351c2ea3773d16d1b11 | [
"MIT"
] | 1 | 2020-08-23T20:21:35.000Z | 2020-08-23T20:21:35.000Z | regex_to_min_dfa.cpp | avinal/C_ode | f056da37c8c56a4a62a06351c2ea3773d16d1b11 | [
"MIT"
] | null | null | null | regex_to_min_dfa.cpp | avinal/C_ode | f056da37c8c56a4a62a06351c2ea3773d16d1b11 | [
"MIT"
] | 2 | 2019-03-18T10:22:13.000Z | 2021-01-03T10:12:28.000Z | #include <iostream>
#include <vector>
#include <stack>
#include <set>
#include <queue>
#include <map>
#include<string>
using namespace std;
struct nst
{
vector<int> a[2], e;
bool f = 0;
};
vector<nst> nfa;
struct dst
{
int a[2] = {-1, -1};
bool f = 0;
};
vector<dst> dfa;
stack<int> st;
int nfa_si... | 25.119155 | 110 | 0.402066 | avinal |
27525b161306b860b02f28e342178932470bbecf | 21,657 | cpp | C++ | source/add-ons/Quantize/Quantize.cpp | thaflo/Becasso | 9a1411913ee46f4dfa5116def50ebc41495dad28 | [
"MIT"
] | 2 | 2020-10-05T14:18:09.000Z | 2021-08-05T02:56:43.000Z | source/add-ons/Quantize/Quantize.cpp | thaflo/Becasso | 9a1411913ee46f4dfa5116def50ebc41495dad28 | [
"MIT"
] | 26 | 2017-01-10T19:54:10.000Z | 2020-12-17T07:28:57.000Z | source/add-ons/Quantize/Quantize.cpp | thaflo/Becasso | 9a1411913ee46f4dfa5116def50ebc41495dad28 | [
"MIT"
] | 5 | 2017-12-14T18:46:08.000Z | 2020-12-13T18:22:34.000Z | // © 2000-2001 Sum Software
#define BUILDING_ADDON
#include "BecassoAddOn.h"
#include "AddOnSupport.h"
#include "Slider.h"
#include <string.h>
#include <CheckBox.h>
#include <RadioButton.h>
#include <Box.h>
#define bzero(p,n) memset (p, 0, n)
int16 *gLut = 0;
#define FOREGROUND 0
#define BACKGROUND 1
#define R_BIT... | 26.540441 | 128 | 0.586323 | thaflo |
27529bcb836fad9ead65325abb59bf5376582755 | 5,373 | cpp | C++ | 55479c656d65636fdb050000/code/RobotAI.cpp | MechEmpire/Mechempire-meches | aa95b15f061f4179c9061595e73c7127587cc4df | [
"Apache-2.0"
] | 1 | 2020-07-29T05:50:16.000Z | 2020-07-29T05:50:16.000Z | 55479ffa6d65636fdb0d0000/code/RobotAI.cpp | MechEmpire/Mechempire-meches | aa95b15f061f4179c9061595e73c7127587cc4df | [
"Apache-2.0"
] | null | null | null | 55479ffa6d65636fdb0d0000/code/RobotAI.cpp | MechEmpire/Mechempire-meches | aa95b15f061f4179c9061595e73c7127587cc4df | [
"Apache-2.0"
] | null | null | null | #include "RobotAI.h"
#include<math.h>
#include<iostream>
using namespace std;
RobotAI::RobotAI()
{
}
RobotAI::~RobotAI()
{
}
//-----------------------------------------------------
//1.必须完成的战斗核心
//-----------------------------------------------------
struct node
{
double x,y,dis;
};
d... | 17.166134 | 95 | 0.577703 | MechEmpire |
27535f079eb414837f11b815cca167a6b7fe7654 | 10,997 | cpp | C++ | webkit/WebCore/dom/Text.cpp | s1rcheese/nintendo-3ds-internetbrowser-sourcecode | 3dd05f035e0a5fc9723300623e9b9b359be64e11 | [
"Unlicense"
] | 15 | 2016-01-05T12:43:41.000Z | 2022-03-15T10:34:47.000Z | webkit/WebCore/dom/Text.cpp | s1rcheese/nintendo-3ds-internetbrowser-sourcecode | 3dd05f035e0a5fc9723300623e9b9b359be64e11 | [
"Unlicense"
] | null | null | null | webkit/WebCore/dom/Text.cpp | s1rcheese/nintendo-3ds-internetbrowser-sourcecode | 3dd05f035e0a5fc9723300623e9b9b359be64e11 | [
"Unlicense"
] | 2 | 2020-11-30T18:36:01.000Z | 2021-02-05T23:20:24.000Z | /*
* Copyright (C) 1999 Lars Knoll (knoll@kde.org)
* (C) 1999 Antti Koivisto (koivisto@kde.org)
* Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009 Apple Inc. All rights reserved.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Library Genera... | 29.964578 | 145 | 0.626807 | s1rcheese |
2753944f40611ce3b32bdff335d878da63ecb12b | 2,770 | cpp | C++ | Source/Planet/Map/PlanetMapTile.cpp | unconed/NFSpace | bbd544afb32a10bc4ee497e1d58cefe4bbbe7953 | [
"BSD-3-Clause"
] | 91 | 2015-01-19T11:03:56.000Z | 2022-03-12T15:54:06.000Z | Source/Planet/Map/PlanetMapTile.cpp | unconed/NFSpace | bbd544afb32a10bc4ee497e1d58cefe4bbbe7953 | [
"BSD-3-Clause"
] | null | null | null | Source/Planet/Map/PlanetMapTile.cpp | unconed/NFSpace | bbd544afb32a10bc4ee497e1d58cefe4bbbe7953 | [
"BSD-3-Clause"
] | 9 | 2015-03-16T03:36:50.000Z | 2021-06-17T09:47:26.000Z | /*
* PlanetMapTile.cpp
* NFSpace
*
* Created by Steven Wittens on 26/11/09.
* Copyright 2009 __MyCompanyName__. All rights reserved.
*
*/
#include "PlanetMapTile.h"
#include "Utility.h"
namespace NFSpace {
PlanetMapTile::PlanetMapTile(QuadTreeNode* node, TexturePtr heightTexture, Image heightImage... | 31.123596 | 135 | 0.651264 | unconed |
2755d2ac1baa5df3c2f5c744333f2853a896e547 | 1,579 | cpp | C++ | Graphs/dijkstra.cpp | adiletabs/Algos | fa2bb9edddb517f52b79fc712f70d6f8a0786e33 | [
"MIT"
] | 3 | 2020-01-29T18:26:37.000Z | 2021-01-19T06:26:34.000Z | Graphs/dijkstra.cpp | adiletabs/Algos | fa2bb9edddb517f52b79fc712f70d6f8a0786e33 | [
"MIT"
] | null | null | null | Graphs/dijkstra.cpp | adiletabs/Algos | fa2bb9edddb517f52b79fc712f70d6f8a0786e33 | [
"MIT"
] | 2 | 2019-03-06T03:40:42.000Z | 2019-09-23T03:48:21.000Z | #include <bits/stdc++.h>
using namespace std;
const int N = 2020, inf = INT_MAX;
vector<pair<int, int> > g[N];
int dist[N], par[N], n, m;
bool used[N];
vector<int> path;
void init(int s) {
for (int i = 0; i < N; i++)
dist[i] = inf;
dist[s] = 0;
}
void dijkstra(int s) {
init(s);
for (int i = 0; i < n; i++) {
... | 20.24359 | 50 | 0.559215 | adiletabs |
2756ebb0e82a9b58972a2a24859faf61057b140e | 5,107 | hpp | C++ | src/threepp/renderers/gl/GLClipping.hpp | maidamai0/threepp | 9b50e2c0f2a7bb3ebfd3ffeef61dbefcd54c7071 | [
"MIT"
] | null | null | null | src/threepp/renderers/gl/GLClipping.hpp | maidamai0/threepp | 9b50e2c0f2a7bb3ebfd3ffeef61dbefcd54c7071 | [
"MIT"
] | null | null | null | src/threepp/renderers/gl/GLClipping.hpp | maidamai0/threepp | 9b50e2c0f2a7bb3ebfd3ffeef61dbefcd54c7071 | [
"MIT"
] | null | null | null | // https://github.com/mrdoob/three.js/blob/r129/src/renderers/webgl/WebGLClipping.js
#ifndef THREEPP_GLCLIPPING_HPP
#define THREEPP_GLCLIPPING_HPP
#include "GLProperties.hpp"
#include "threepp/cameras/Camera.hpp"
#include "threepp/math/Plane.hpp"
#include "threepp/core/Uniform.hpp"
namespace threepp::gl {
str... | 27.907104 | 120 | 0.527511 | maidamai0 |
2758945d92d2bba295767c04dccf123ca71c6a50 | 960 | cpp | C++ | src/console/commands/environment/terrain/environmentTerrainValleys.cpp | fantasiorona/LGen | bb670278b7faf82154d6256e6a283fa3e226c00b | [
"MIT"
] | 22 | 2019-08-01T22:04:43.000Z | 2021-12-23T07:53:59.000Z | src/console/commands/environment/terrain/environmentTerrainValleys.cpp | fantasiorona/LGen | bb670278b7faf82154d6256e6a283fa3e226c00b | [
"MIT"
] | 15 | 2019-05-01T10:57:36.000Z | 2019-05-27T11:23:42.000Z | src/console/commands/environment/terrain/environmentTerrainValleys.cpp | fantasiorona/LGen | bb670278b7faf82154d6256e6a283fa3e226c00b | [
"MIT"
] | 4 | 2019-08-02T08:07:45.000Z | 2022-01-22T00:46:03.000Z | #include "environmentTerrainValleys.h"
#include "environment/terrain/terrainValleys.h"
using namespace LGen;
const std::string Command::Environment::Terrain::Valleys::KEYWORD = "valleys";
const std::string Command::Environment::Terrain::Valleys::FILE_HELP = "text/helpEnvironmentTerrainValleys.txt";
Command::Environm... | 27.428571 | 111 | 0.734375 | fantasiorona |
275af587f3742e93eef69ddd318501c98c79f037 | 3,214 | hpp | C++ | Code/Engine/Renderer/Effects/Tonemapping.hpp | ntaylorbishop/Copycat | c02f2881f0700a33a2630fd18bc409177d80b8cd | [
"MIT"
] | 2 | 2017-10-02T03:18:55.000Z | 2018-11-21T16:30:36.000Z | Code/Engine/Renderer/Effects/Tonemapping.hpp | ntaylorbishop/Copycat | c02f2881f0700a33a2630fd18bc409177d80b8cd | [
"MIT"
] | null | null | null | Code/Engine/Renderer/Effects/Tonemapping.hpp | ntaylorbishop/Copycat | c02f2881f0700a33a2630fd18bc409177d80b8cd | [
"MIT"
] | null | null | null | #pragma once
#include "Engine/General/Core/EngineCommon.hpp"
#include "Engine/Renderer/General/RenderCommon.hpp"
#include "Engine/Math/Objects/AABB3.hpp"
class TextureBuffer;
class Material;
class Framebuffer;
const float MIN_EXPOSURE = 1.6f;
const float MAX_EXPOSURE = 6.f;
////////////////////////////////////////... | 33.479167 | 125 | 0.47822 | ntaylorbishop |
275e4de2d23f93672a8e3a261c6cb895b631b1a2 | 18,965 | cpp | C++ | CaptureManagerSource/SampleAccumulatorNode/SampleAccumulator.cpp | luoyingwen/CaptureManagerSDK | e96395a120175a45c56ff4e2b3283b807a42fd75 | [
"MIT"
] | 64 | 2020-07-20T09:35:16.000Z | 2022-03-27T19:13:08.000Z | CaptureManagerSource/SampleAccumulatorNode/SampleAccumulator.cpp | luoyingwen/CaptureManagerSDK | e96395a120175a45c56ff4e2b3283b807a42fd75 | [
"MIT"
] | 8 | 2020-07-30T09:20:28.000Z | 2022-03-03T22:37:10.000Z | CaptureManagerSource/SampleAccumulatorNode/SampleAccumulator.cpp | luoyingwen/CaptureManagerSDK | e96395a120175a45c56ff4e2b3283b807a42fd75 | [
"MIT"
] | 28 | 2020-07-20T13:02:42.000Z | 2022-03-18T07:36:05.000Z | /*
MIT License
Copyright(c) 2020 Evgeny Pereguda
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, publish, ... | 22.443787 | 131 | 0.670393 | luoyingwen |
275e5f0f0c8ed2d36c61c7e308e3de6edd03bc34 | 11,634 | cpp | C++ | source/io/net/TlsServer.cpp | tarm-project/tarm-io | 6aebd85573f65017decf81be073c8b13ce6ac12c | [
"MIT"
] | 4 | 2021-01-14T15:19:35.000Z | 2022-01-09T09:22:18.000Z | source/io/net/TlsServer.cpp | ink-splatters/tarm-io | 6aebd85573f65017decf81be073c8b13ce6ac12c | [
"MIT"
] | null | null | null | source/io/net/TlsServer.cpp | ink-splatters/tarm-io | 6aebd85573f65017decf81be073c8b13ce6ac12c | [
"MIT"
] | 1 | 2020-08-05T21:14:59.000Z | 2020-08-05T21:14:59.000Z | /*----------------------------------------------------------------------------------------------
* Copyright (c) 2020 - present Alexander Voitenko
* Licensed under the MIT License. See License.txt in the project root for license information.
*------------------------------------------------------------------------... | 34.318584 | 144 | 0.670191 | tarm-project |
2763e7da0af34195ab15cee538b3c4b789795527 | 1,840 | cpp | C++ | docs/melb-cpp-talk-feb-2017/24a-cpp17-auto-template-parameter.cpp | RossBencina/StaticMode | 04eead233a6a03aa4f47c22f81c1d89b4e5cf5ca | [
"MIT"
] | 3 | 2017-02-15T22:49:40.000Z | 2018-04-19T15:42:57.000Z | docs/melb-cpp-talk-feb-2017/24a-cpp17-auto-template-parameter.cpp | RossBencina/StaticMode | 04eead233a6a03aa4f47c22f81c1d89b4e5cf5ca | [
"MIT"
] | 14 | 2017-02-19T14:25:30.000Z | 2017-02-20T10:11:42.000Z | docs/melb-cpp-talk-feb-2017/24a-cpp17-auto-template-parameter.cpp | RossBencina/StaticMode | 04eead233a6a03aa4f47c22f81c1d89b4e5cf5ca | [
"MIT"
] | null | null | null | //!clang++ -std=c++1z -Weverything -Wno-c++98-compat 24a-cpp17-auto-template-parameter.cpp -o z24a.out && ./z24a.out
// WARNING: bleeding edge. tested in gcc 7, possibly clang 4
// This file is optional. It's a side note about C++17 auto template parameters.
// It requires clang 4 or GCC 7 to compile.
// When C++17 a... | 27.462687 | 116 | 0.59837 | RossBencina |
2764a0b63daefb8e607a670a6a3612e9adc2079a | 2,885 | cpp | C++ | test/test_main.cpp | ChrizZhuang/3D_particle_simulator | cc2a0c75dc67ec7e4f89a270bca736d9425dbec0 | [
"MIT"
] | null | null | null | test/test_main.cpp | ChrizZhuang/3D_particle_simulator | cc2a0c75dc67ec7e4f89a270bca736d9425dbec0 | [
"MIT"
] | null | null | null | test/test_main.cpp | ChrizZhuang/3D_particle_simulator | cc2a0c75dc67ec7e4f89a270bca736d9425dbec0 | [
"MIT"
] | null | null | null | // File to test main functions
#include <iostream>
#include <fstream>
#include <iomanip>
#include <vector>
#include <math.h>
#include <cmath>
#include <assert.h>
#include <string>
#include "Vector3D.hpp"
#include "SimpleParticleList.hpp"
#include "Spring1DForce.hpp"
#include "LatticeParticleList.hpp"
#include "Lattice... | 29.141414 | 144 | 0.67383 | ChrizZhuang |
276533790d14865853af0f89f47ee160125a3ee4 | 169 | cpp | C++ | Code full house/buoi20 nguyen dinh trung duc/implement/bai 16 1352A.cpp | ducyb2001/CbyTrungDuc | 0e93394dce600876a098b90ae969575bac3788e1 | [
"Apache-2.0"
] | null | null | null | Code full house/buoi20 nguyen dinh trung duc/implement/bai 16 1352A.cpp | ducyb2001/CbyTrungDuc | 0e93394dce600876a098b90ae969575bac3788e1 | [
"Apache-2.0"
] | null | null | null | Code full house/buoi20 nguyen dinh trung duc/implement/bai 16 1352A.cpp | ducyb2001/CbyTrungDuc | 0e93394dce600876a098b90ae969575bac3788e1 | [
"Apache-2.0"
] | null | null | null | /*bai 16 1325A*/
#include<stdio.h>
int main(){
int T;
scanf("%d",&T);
while (T--)
{
int x;
scanf("%d",&x);
printf("1 %d\n",x-1);
}
}
| 12.071429 | 26 | 0.408284 | ducyb2001 |
2777883fc452b8b0d7f2cfb50caebc5a9ae8dcaa | 539 | cpp | C++ | leetcode/88/main.cpp | yukienomiya/competitive-programming | 6f5e502ba66da2f62fb37aaa786a841f64bb192a | [
"MIT"
] | null | null | null | leetcode/88/main.cpp | yukienomiya/competitive-programming | 6f5e502ba66da2f62fb37aaa786a841f64bb192a | [
"MIT"
] | null | null | null | leetcode/88/main.cpp | yukienomiya/competitive-programming | 6f5e502ba66da2f62fb37aaa786a841f64bb192a | [
"MIT"
] | null | null | null | #include <vector>
using namespace std;
class Solution {
public:
void merge(vector<int>& nums1, int m, vector<int>& nums2, int n) {
vector<int> nums3(m + n, 0);
int idx1 = 0, idx2 = 0, idx3 = 0;
while (idx1 < m && idx2 < n) {
if (nums1[idx1] <= nums2[idx2]) nums3[idx3++] = nums1[idx1++];
else... | 26.95 | 68 | 0.526902 | yukienomiya |
277797464e507b139fac06991ad4b81922a4e221 | 8,478 | cpp | C++ | projects/Phantom.Code/phantom/lang/Project.cpp | vlmillet/Phantom.Code | 05ed65bc4a456e76da4b2d9da1fe3dabe64ba1b3 | [
"MIT"
] | null | null | null | projects/Phantom.Code/phantom/lang/Project.cpp | vlmillet/Phantom.Code | 05ed65bc4a456e76da4b2d9da1fe3dabe64ba1b3 | [
"MIT"
] | null | null | null | projects/Phantom.Code/phantom/lang/Project.cpp | vlmillet/Phantom.Code | 05ed65bc4a456e76da4b2d9da1fe3dabe64ba1b3 | [
"MIT"
] | null | null | null | // license [
// This file is part of the Phantom project. Copyright 2011-2020 Vivien Millet.
// Distributed under the MIT license. Text available here at
// https://github.com/vlmillet/phantom
// ]
#include "Project.h"
#include "CompiledSource.h"
#include "Compiler.h"
#include "Solution.h"
#include <fstream>
#includ... | 28.935154 | 120 | 0.651215 | vlmillet |
277a4ebe107b13457f249f8345419ed6ebef086f | 19,986 | hpp | C++ | include/chobo/vector_view.hpp | mikke89/chobo-shl | 7f888d1c97e0a69da99ab147c7f691ca0c64038f | [
"MIT"
] | 147 | 2016-09-23T19:33:11.000Z | 2021-09-25T01:44:10.000Z | include/chobo/vector_view.hpp | mikke89/chobo-shl | 7f888d1c97e0a69da99ab147c7f691ca0c64038f | [
"MIT"
] | 14 | 2016-09-27T10:54:35.000Z | 2020-10-15T03:56:41.000Z | include/chobo/vector_view.hpp | mikke89/chobo-shl | 7f888d1c97e0a69da99ab147c7f691ca0c64038f | [
"MIT"
] | 19 | 2016-09-25T15:49:26.000Z | 2021-08-09T06:34:28.000Z | // chobo-vector-view v1.01
//
// A view of a std::vector which makes it look as a vector of another type
//
// MIT License:
// Copyright(c) 2016 Chobolabs Inc.
//
// Permission is hereby granted, free of charge, to any person obtaining
// a copy of this software and associated documentation files(the
// "Software"), to... | 26.262812 | 117 | 0.631992 | mikke89 |
277c302017dae8c7514180218fc0b1412a451c54 | 3,057 | cpp | C++ | array_inversion/main.cpp | 8alery/algorithms | 67cf12724f61cdae7eff1788062c1b7c26f98ca4 | [
"Apache-2.0"
] | null | null | null | array_inversion/main.cpp | 8alery/algorithms | 67cf12724f61cdae7eff1788062c1b7c26f98ca4 | [
"Apache-2.0"
] | null | null | null | array_inversion/main.cpp | 8alery/algorithms | 67cf12724f61cdae7eff1788062c1b7c26f98ca4 | [
"Apache-2.0"
] | null | null | null | #include <iostream>
#include <vector>
#include <random>
#include <algorithm>
#include <queue>
#include <limits>
void printVector(std::vector<int> array){
for (auto v:array){
std::cout << v << " ";
}
std::cout << std::endl;
}
int next_power_of_two(int v){
v--;
v |= v >> 1;
v |= v >> 2;
... | 26.815789 | 94 | 0.514884 | 8alery |
277d97de0c9342aa004f99d363161c6cd19d89b8 | 54 | cpp | C++ | App/FIFOServer/ClientB.cpp | Lw-Cui/Compression-server | 3501d746f14145d3764700d40d3672a0da0b2eae | [
"MIT"
] | 3 | 2016-12-10T16:06:20.000Z | 2017-06-25T12:47:06.000Z | App/FIFOServer/ClientB.cpp | Lw-Cui/Compression-server | 3501d746f14145d3764700d40d3672a0da0b2eae | [
"MIT"
] | 2 | 2017-05-15T15:22:36.000Z | 2017-05-20T15:01:25.000Z | App/FIFOServer/ClientB.cpp | Lw-Cui/Tiny-server | 3501d746f14145d3764700d40d3672a0da0b2eae | [
"MIT"
] | null | null | null |
#define CLIENT "ClientB"
#include "ClientBody.cpp"
| 9 | 25 | 0.722222 | Lw-Cui |
277ec282bacc3d331bb049b9c28b4d96dc43d669 | 4,003 | cpp | C++ | src/Samples/Synthetic_TwoView/main.cpp | eivan/one-ac-pose | 79451626238f47130578c18b65e37cabd7332de1 | [
"MIT"
] | 4 | 2020-07-31T19:12:44.000Z | 2022-02-22T14:34:48.000Z | src/Samples/Synthetic_TwoView/main.cpp | eivan/OneAC | 79451626238f47130578c18b65e37cabd7332de1 | [
"MIT"
] | null | null | null | src/Samples/Synthetic_TwoView/main.cpp | eivan/OneAC | 79451626238f47130578c18b65e37cabd7332de1 | [
"MIT"
] | null | null | null | #include <iostream>
#include <time.h>
#include <common/numeric.hpp>
#include <common/camera_radial.hpp>
#include <common/local_affine_frame.hpp>
#include <common/pose_estimation.hpp>
using namespace OneACPose;
void compute_synthetic_LAF(
const Mat34& P, const common::CameraPtr& cam,
const Vec3& X, const Mat32& d... | 36.390909 | 98 | 0.501624 | eivan |
95970213c76d95fd6fc8c0f6d18e242c1c502780 | 4,419 | cpp | C++ | code/clustered_setup/fgm-master/LSGMcode-master/algorithms/graphm-0.52/algorithm_umeyama.cpp | mk2510/jointGraphMatchingAndClustering | 52f579a07d106cb241d21dbc29a2ec9e9c77b254 | [
"Unlicense"
] | 10 | 2015-08-27T14:10:38.000Z | 2021-02-08T21:38:55.000Z | code/clustered_setup/fgm-master/LSGMcode-master/algorithms/graphm-0.52/algorithm_umeyama.cpp | mk2510/jointGraphMatchingAndClustering | 52f579a07d106cb241d21dbc29a2ec9e9c77b254 | [
"Unlicense"
] | 2 | 2015-02-20T01:53:58.000Z | 2016-08-24T11:14:00.000Z | code/clustered_setup/fgm-master/LSGMcode-master/algorithms/graphm-0.52/algorithm_umeyama.cpp | mk2510/jointGraphMatchingAndClustering | 52f579a07d106cb241d21dbc29a2ec9e9c77b254 | [
"Unlicense"
] | 7 | 2016-08-23T11:44:05.000Z | 2021-08-06T01:41:25.000Z | /***************************************************************************
* Copyright (C) 2008 by Mikhail Zaslavskiy *
* mikhail.zaslavskiy@ensmp.fr *
* *
* This program is free software; you can redistribute it and/or modify *
*... | 47.010638 | 113 | 0.661914 | mk2510 |
9598d34a7577c3b1097b2cdac4e5058f7affa603 | 683 | cpp | C++ | drivers/port_io/port_io.cpp | Tomer2003/ro-os | 843b0258e8d14de7cc24f9ae9bfa19fe02ccd00d | [
"MIT"
] | null | null | null | drivers/port_io/port_io.cpp | Tomer2003/ro-os | 843b0258e8d14de7cc24f9ae9bfa19fe02ccd00d | [
"MIT"
] | null | null | null | drivers/port_io/port_io.cpp | Tomer2003/ro-os | 843b0258e8d14de7cc24f9ae9bfa19fe02ccd00d | [
"MIT"
] | null | null | null | #include "port_io.hpp"
void portWriteByte(unsigned short portAddress, unsigned char data)
{
__asm__ __volatile__("out %%al, %%dx" :: "a"(data), "d"(portAddress));
}
unsigned char portReadByte(unsigned short portAddress)
{
unsigned char result;
__asm__ __volatile__("in %%dx, %%al" : "=a"(result) : "d"(port... | 27.32 | 76 | 0.679356 | Tomer2003 |
95a2502d0f83bdf392fc3037a78b0db10a6d1f06 | 15,415 | cpp | C++ | src/apps/mplayerc/EditListEditor.cpp | chinajeffery/MPC-BE--1.2.3 | 2229fde5535f565ba4a496a7f73267bd2c1ad338 | [
"MIT"
] | null | null | null | src/apps/mplayerc/EditListEditor.cpp | chinajeffery/MPC-BE--1.2.3 | 2229fde5535f565ba4a496a7f73267bd2c1ad338 | [
"MIT"
] | 1 | 2019-11-14T04:18:32.000Z | 2019-11-14T04:18:32.000Z | src/apps/mplayerc/EditListEditor.cpp | chinajeffery/MPC-BE--1.2.3 | 2229fde5535f565ba4a496a7f73267bd2c1ad338 | [
"MIT"
] | null | null | null | /*
* $Id: EditListEditor.cpp 2326 2013-03-21 12:41:26Z aleksoid $
*
* (C) 2006-2013 see Authors.txt
*
* This file is part of MPC-BE.
*
* MPC-BE is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either v... | 22.50365 | 128 | 0.69108 | chinajeffery |
95ac5b8bf81d55048ebc62024c8209171266b8cd | 7,064 | cpp | C++ | Nacro/SDK/FN_QuestUpdatesLog_functions.cpp | Milxnor/Nacro | eebabf662bbce6d5af41820ea0342d3567a0aecc | [
"BSD-2-Clause"
] | 11 | 2021-08-08T23:25:10.000Z | 2022-02-19T23:07:22.000Z | Nacro/SDK/FN_QuestUpdatesLog_functions.cpp | Milxnor/Nacro | eebabf662bbce6d5af41820ea0342d3567a0aecc | [
"BSD-2-Clause"
] | 1 | 2022-01-01T22:51:59.000Z | 2022-01-08T16:14:15.000Z | Nacro/SDK/FN_QuestUpdatesLog_functions.cpp | Milxnor/Nacro | eebabf662bbce6d5af41820ea0342d3567a0aecc | [
"BSD-2-Clause"
] | 8 | 2021-08-09T13:51:54.000Z | 2022-01-26T20:33:37.000Z | // Fortnite (1.8) SDK
#ifdef _MSC_VER
#pragma pack(push, 0x8)
#endif
#include "../SDK.hpp"
namespace SDK
{
//---------------------------------------------------------------------------
//Functions
//---------------------------------------------------------------------------
// Function QuestUpdatesLog.QuestUpdates... | 31.67713 | 163 | 0.76359 | Milxnor |
95afc1b5eb96e3c20a7a848421c691ce9c46a11a | 12,766 | cpp | C++ | EXAMPLES/Controls/SingleInst/singleinstance.cpp | earthsiege2/borland-cpp-ide | 09bcecc811841444338e81b9c9930c0e686f9530 | [
"Unlicense",
"FSFAP",
"Apache-1.1"
] | 1 | 2022-01-13T01:03:55.000Z | 2022-01-13T01:03:55.000Z | EXAMPLES/Controls/SingleInst/singleinstance.cpp | earthsiege2/borland-cpp-ide | 09bcecc811841444338e81b9c9930c0e686f9530 | [
"Unlicense",
"FSFAP",
"Apache-1.1"
] | null | null | null | EXAMPLES/Controls/SingleInst/singleinstance.cpp | earthsiege2/borland-cpp-ide | 09bcecc811841444338e81b9c9930c0e686f9530 | [
"Unlicense",
"FSFAP",
"Apache-1.1"
] | null | null | null | //---------------------------------------------------------------------------
#include <vcl.h>
#pragma hdrstop
#define NDEBUG
#include <cassert>
#include "SingleInstance.h"
#pragma package(smart_init)
//---------------------------------------------------------------------------
// ValidCtrCheck is used to a... | 26.819328 | 96 | 0.624315 | earthsiege2 |
95aff5bb20c5b67c58315b74f1a3c25b255d2b2f | 996 | hpp | C++ | library/ATF/_attack_selfdestruction_result_zoclInfo.hpp | lemkova/Yorozuya | f445d800078d9aba5de28f122cedfa03f26a38e4 | [
"MIT"
] | 29 | 2017-07-01T23:08:31.000Z | 2022-02-19T10:22:45.000Z | library/ATF/_attack_selfdestruction_result_zoclInfo.hpp | kotopes/Yorozuya | 605c97d3a627a8f6545cc09f2a1b0a8afdedd33a | [
"MIT"
] | 90 | 2017-10-18T21:24:51.000Z | 2019-06-06T02:30:33.000Z | library/ATF/_attack_selfdestruction_result_zoclInfo.hpp | kotopes/Yorozuya | 605c97d3a627a8f6545cc09f2a1b0a8afdedd33a | [
"MIT"
] | 44 | 2017-12-19T08:02:59.000Z | 2022-02-24T23:15:01.000Z | // This file auto generated by plugin for ida pro. Generated code only for x64. Please, dont change manually
#pragma once
#include <common/common.h>
#include <_attack_selfdestruction_result_zocl.hpp>
START_ATF_NAMESPACE
namespace Info
{
using _attack_selfdestruction_result_zoclctor__attack_s... | 55.333333 | 241 | 0.828313 | lemkova |
95b10c3e682f252f91eb832efa205268280b326f | 3,264 | cpp | C++ | NativePlugin/CaptainAsteroid/src/physics/Game.cpp | axoloto/CaptainAsteroid | fcdcb6bc6987ecf53226daa7027116e40d74401a | [
"Apache-2.0"
] | null | null | null | NativePlugin/CaptainAsteroid/src/physics/Game.cpp | axoloto/CaptainAsteroid | fcdcb6bc6987ecf53226daa7027116e40d74401a | [
"Apache-2.0"
] | null | null | null | NativePlugin/CaptainAsteroid/src/physics/Game.cpp | axoloto/CaptainAsteroid | fcdcb6bc6987ecf53226daa7027116e40d74401a | [
"Apache-2.0"
] | null | null | null | #include "Game.hpp"
#include "Logging.hpp"
#include "systems/ControlByPlayer.hpp"
#include "systems/Move.hpp"
#include "systems/Collide.hpp"
#include "systems/FireLaser.hpp"
#include "systems/ReduceLifeTime.hpp"
#include "systems/SplitAsteroid.hpp"
#include "systems/RemoveDead.hpp"
#include "components/Motion.hpp"
#... | 27.897436 | 109 | 0.739583 | axoloto |
95b24eb6996724fd198d8985c5323221ad48343b | 1,240 | cpp | C++ | dep/include/yse/synth/synthManager.cpp | ChrSacher/MyEngine | 8fe71fd9e84b9536148e0d4ebb4e53751ab49ce8 | [
"Apache-2.0"
] | 2 | 2015-10-27T21:36:59.000Z | 2017-03-17T21:52:19.000Z | dep/include/yse/synth/synthManager.cpp | ChrSacher/MyEngine | 8fe71fd9e84b9536148e0d4ebb4e53751ab49ce8 | [
"Apache-2.0"
] | null | null | null | dep/include/yse/synth/synthManager.cpp | ChrSacher/MyEngine | 8fe71fd9e84b9536148e0d4ebb4e53751ab49ce8 | [
"Apache-2.0"
] | null | null | null | /*
==============================================================================
synthManager.cpp
Created: 6 Jul 2014 10:01:40pm
Author: yvan
==============================================================================
*/
#include "synthManager.h"
#include "../internalHeaders.h"
YSE::SYNTH::mana... | 27.555556 | 117 | 0.560484 | ChrSacher |
95b3726da577384740325b9d5cb46370d37a5f58 | 789 | cpp | C++ | Applications/cli/commands/less.cpp | mschwartz/amos | 345a4f8f52b9805722c10ac4cedb24b480fe2dc7 | [
"MIT"
] | 4 | 2020-08-18T00:11:09.000Z | 2021-04-05T11:16:32.000Z | Applications/cli/commands/less.cpp | mschwartz/amos | 345a4f8f52b9805722c10ac4cedb24b480fe2dc7 | [
"MIT"
] | 1 | 2020-08-15T20:39:13.000Z | 2020-08-15T20:39:13.000Z | Applications/cli/commands/less.cpp | mschwartz/amos | 345a4f8f52b9805722c10ac4cedb24b480fe2dc7 | [
"MIT"
] | null | null | null | #include "commands.hpp"
TInt64 CliTask::command_less(TInt ac, char **av) {
if (ac != 2) {
return Error("%s requires 1 argument", av[0]);
}
FileDescriptor *fd;
fd = OpenFile(av[1]);
if (!fd) {
return Error("Could not open %s", av[1]);
}
else {
char buf[512];
TInt count = 0;
for (;;) {... | 20.230769 | 61 | 0.47275 | mschwartz |
95c156ec977b003837947dd71df125dc1385831e | 2,106 | cpp | C++ | cci/graph.cpp | vino-ebe/int-pgms | 124e63d46092bd974d44afe67bd17727892afefa | [
"BSD-2-Clause"
] | null | null | null | cci/graph.cpp | vino-ebe/int-pgms | 124e63d46092bd974d44afe67bd17727892afefa | [
"BSD-2-Clause"
] | null | null | null | cci/graph.cpp | vino-ebe/int-pgms | 124e63d46092bd974d44afe67bd17727892afefa | [
"BSD-2-Clause"
] | null | null | null | #include<iostream>
using namespace std;
struct graphNode {
int vertex;
struct graphNode* next;
};
class graph {
private:
static const int NUM_VERTEX = 10;
graphNode* V[NUM_VERTEX];
int numEdges[NUM_VERTEX];
bool visited[NUM_VERTEX];
graphNode* createNode(int verte... | 22.645161 | 55 | 0.420228 | vino-ebe |
95c32850a295113d071f24e4730031c3f0412056 | 2,712 | cpp | C++ | LinkDelay/LinkDelay.cpp | kravitz/transims4 | ea0848bf3dc71440d54724bb3ecba3947b982215 | [
"NASA-1.3"
] | 2 | 2018-04-27T11:07:02.000Z | 2020-04-24T06:53:21.000Z | LinkDelay/LinkDelay.cpp | idkravitz/transims4 | ea0848bf3dc71440d54724bb3ecba3947b982215 | [
"NASA-1.3"
] | null | null | null | LinkDelay/LinkDelay.cpp | idkravitz/transims4 | ea0848bf3dc71440d54724bb3ecba3947b982215 | [
"NASA-1.3"
] | null | null | null | //*********************************************************
// LinkDelay.cpp - manipulate the link delay file
//*********************************************************
#include "LinkDelay.hpp"
char * LinkDelay::PREVIOUS_LINK_DELAY_FILE = "PREVIOUS_LINK_DELAY_FILE";
char * LinkDelay::PREVIOUS_LINK_DELAY_FORMAT = "P... | 28.25 | 76 | 0.620575 | kravitz |
95c41364396c72ef419b126279ffe3586e0ae5df | 475 | cpp | C++ | Train/T.cpp | dangercard/Uva_Challenges | 735bf80da5d1995fece4614d38174d1ea276e7c2 | [
"Apache-2.0"
] | null | null | null | Train/T.cpp | dangercard/Uva_Challenges | 735bf80da5d1995fece4614d38174d1ea276e7c2 | [
"Apache-2.0"
] | null | null | null | Train/T.cpp | dangercard/Uva_Challenges | 735bf80da5d1995fece4614d38174d1ea276e7c2 | [
"Apache-2.0"
] | null | null | null | #include <iostream>
#include <stack>
#include <string>
using namespace std ;
int main()
{
string stI, stO ;
int j = 0 ;
cin >> stI ;
cin >> stO ;
stack <char> S ;
// S.push(stI[0]) ;
for(int i = 0; i < stI.length() ; i++)
{
if(stO[j] == S.top())
{
S.pop() ;
j++ ;
}
else
... | 11.046512 | 40 | 0.427368 | dangercard |
95cbec5d7d2291e6f2b109179f40f62aa22c908a | 623 | cpp | C++ | USACO Bronze/December 2016 Contest/cowsignal.cpp | Alecs-Li/Competitive-Programming | 39941ff8e2c8994abbae8c96a1ed0a04b10058b8 | [
"MIT"
] | 1 | 2021-07-06T02:14:03.000Z | 2021-07-06T02:14:03.000Z | USACO Bronze/December 2016 Contest/cowsignal.cpp | Alex01890-creator/competitive-programming | 39941ff8e2c8994abbae8c96a1ed0a04b10058b8 | [
"MIT"
] | null | null | null | USACO Bronze/December 2016 Contest/cowsignal.cpp | Alex01890-creator/competitive-programming | 39941ff8e2c8994abbae8c96a1ed0a04b10058b8 | [
"MIT"
] | null | null | null | #include <iostream>
#include <fstream>
using namespace std;
int main() {
ifstream fin("cowsignal.in");
ofstream fout("cowsignal.out");
int m, n, k; fin >> m >> n >> k;
char arr[m*n];
string temp = "";
char ans[(m*k)*(n*k)];
for(int a=0; a<m*n; a++){
fin >> arr[a];
}
for(int a=0; a<=m*n; a++){
... | 18.323529 | 34 | 0.410915 | Alecs-Li |
95d1cf50c77c13f8caa762f74792d59c3b2dcdb1 | 1,396 | hpp | C++ | framework/include/planet.hpp | der-freddy/computergrafik | c47e32de23edc1c2aff45f2c789286219afcbf8f | [
"MIT"
] | null | null | null | framework/include/planet.hpp | der-freddy/computergrafik | c47e32de23edc1c2aff45f2c789286219afcbf8f | [
"MIT"
] | null | null | null | framework/include/planet.hpp | der-freddy/computergrafik | c47e32de23edc1c2aff45f2c789286219afcbf8f | [
"MIT"
] | null | null | null | #ifndef PLANETS_HPP
#define PLANETS_HPP
#include <memory>
#include <map>
#include <glbinding/gl/gl.h>
#include <glm/gtc/type_precision.hpp>
#include <glm/gtc/matrix_transform.hpp>
#define GLFW_INCLUDE_NONE
#include <GLFW/glfw3.h>
// use gl definitions from glbinding
using namespace gl;
struct Planet{
Planet(glm::f... | 25.381818 | 117 | 0.699857 | der-freddy |
95dbd0f6c9879cd5d0f0fab70fffbcf8e675ba91 | 106 | hpp | C++ | src/health.hpp | BUDDGAF/eft-packet-1 | cd10a52f4ea6e98219a14e17a8a5ba6bd7d98cc0 | [
"MIT"
] | 13 | 2020-05-02T00:32:14.000Z | 2021-12-28T03:01:28.000Z | src/health.hpp | BUDDGAF/eft-packet-1 | cd10a52f4ea6e98219a14e17a8a5ba6bd7d98cc0 | [
"MIT"
] | null | null | null | src/health.hpp | BUDDGAF/eft-packet-1 | cd10a52f4ea6e98219a14e17a8a5ba6bd7d98cc0 | [
"MIT"
] | 8 | 2020-05-01T19:24:55.000Z | 2022-03-14T14:47:51.000Z | std::unordered_map<std::string, std::string> healthItems = {
{ "544fb45d4bdc2dee738b4568", "Salewa"},
}; | 35.333333 | 61 | 0.707547 | BUDDGAF |
95de790876c884e506a77dba01c034af8b4d3503 | 2,009 | cpp | C++ | libs/viewport/impl/src/viewport/impl/center.cpp | cpreh/spacegameengine | 313a1c34160b42a5135f8223ffaa3a31bc075a01 | [
"BSL-1.0"
] | 2 | 2016-01-27T13:18:14.000Z | 2018-05-11T01:11:32.000Z | libs/viewport/impl/src/viewport/impl/center.cpp | cpreh/spacegameengine | 313a1c34160b42a5135f8223ffaa3a31bc075a01 | [
"BSL-1.0"
] | null | null | null | libs/viewport/impl/src/viewport/impl/center.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/renderer/dim2.hpp>
#include <sge/renderer/pixel_rect.hpp>
#include <sge/renderer/pixe... | 39.392157 | 98 | 0.644102 | cpreh |
95df578aff1c8a74dd14af06aaf5eb825204fbf2 | 5,648 | cpp | C++ | node/silkworm/db/genesis_test.cpp | elmato/silkworm | 711c73547cd1f7632ff02d5f86dfac5b0d249344 | [
"Apache-2.0"
] | 87 | 2020-08-03T11:40:39.000Z | 2022-03-31T10:27:58.000Z | node/silkworm/db/genesis_test.cpp | elmato/silkworm | 711c73547cd1f7632ff02d5f86dfac5b0d249344 | [
"Apache-2.0"
] | 452 | 2020-08-17T16:32:00.000Z | 2022-03-28T19:19:59.000Z | node/silkworm/db/genesis_test.cpp | elmato/silkworm | 711c73547cd1f7632ff02d5f86dfac5b0d249344 | [
"Apache-2.0"
] | 28 | 2020-08-27T02:06:50.000Z | 2022-03-03T22:30:46.000Z | /*
Copyright 2021 The Silkworm Authors
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 ... | 47.066667 | 108 | 0.625354 | elmato |
95df962b0c35f50c2c5dd71789129eebb8683eed | 438 | cpp | C++ | src/ByteEngine/Utility/Shapes/ConeWithFalloff.cpp | Facundo961/Game-Studio | 8f404fd9b5659e65e7c5a7fe5f191d39b7a5a071 | [
"MIT"
] | 10 | 2020-05-05T03:21:34.000Z | 2022-01-22T23:01:22.000Z | src/ByteEngine/Utility/Shapes/ConeWithFalloff.cpp | Facundo961/Game-Studio | 8f404fd9b5659e65e7c5a7fe5f191d39b7a5a071 | [
"MIT"
] | null | null | null | src/ByteEngine/Utility/Shapes/ConeWithFalloff.cpp | Facundo961/Game-Studio | 8f404fd9b5659e65e7c5a7fe5f191d39b7a5a071 | [
"MIT"
] | 1 | 2020-09-07T03:04:48.000Z | 2020-09-07T03:04:48.000Z | #include "ConeWithFalloff.h"
#include <GTSL/Math/Math.hpp>
ConeWithFalloff::ConeWithFalloff(const float Radius, const float Length) : Cone(Radius, Length)
{
}
ConeWithFalloff::ConeWithFalloff(const float Radius, const float Length, const float ExtraRadius) : Cone(Radius, Length), ExtraRadius(ExtraRadius)
{
}
float ... | 25.764706 | 146 | 0.773973 | Facundo961 |
95e1341ada4a78caed6969a85bf6aa78612254b5 | 28,086 | cpp | C++ | __Source__/Jimara/Physics/PhysX/PhysXScene.cpp | TheDonsky/Jimara | d677090e61dc1ddfd8c1be61d5202fbf09b1e3ab | [
"MIT"
] | 1 | 2022-03-28T13:57:09.000Z | 2022-03-28T13:57:09.000Z | __Source__/Jimara/Physics/PhysX/PhysXScene.cpp | TheDonsky/Jimara | d677090e61dc1ddfd8c1be61d5202fbf09b1e3ab | [
"MIT"
] | null | null | null | __Source__/Jimara/Physics/PhysX/PhysXScene.cpp | TheDonsky/Jimara | d677090e61dc1ddfd8c1be61d5202fbf09b1e3ab | [
"MIT"
] | 1 | 2021-02-02T13:34:57.000Z | 2021-02-02T13:34:57.000Z | #include "PhysXScene.h"
#include "PhysXStaticBody.h"
#include "PhysXDynamicBody.h"
#include "../../Core/Unused.h"
#include "PhysXCollider.h"
#pragma warning(disable: 26812)
namespace Jimara {
namespace Physics {
namespace PhysX {
namespace {
#define JIMARA_PHYSX_LAYER_COUNT 256
#define JIMARA_PHYSX_LAYER_DATA_B... | 48.257732 | 166 | 0.719504 | TheDonsky |
95e4a43f68f6cc9a521e6035d8e96e5bf407b08a | 3,916 | hpp | C++ | include/polycalc/quadrature/gauss_lobatto.hpp | BryanFlynt/PolyCalc | 9fe70f83647c6f5683e6e8f5cfee23b417974ebb | [
"Apache-2.0"
] | null | null | null | include/polycalc/quadrature/gauss_lobatto.hpp | BryanFlynt/PolyCalc | 9fe70f83647c6f5683e6e8f5cfee23b417974ebb | [
"Apache-2.0"
] | null | null | null | include/polycalc/quadrature/gauss_lobatto.hpp | BryanFlynt/PolyCalc | 9fe70f83647c6f5683e6e8f5cfee23b417974ebb | [
"Apache-2.0"
] | null | null | null | /**
* \file gauss_lobatto.hpp
* \author Bryan Flynt
* \date Sep 02, 2021
* \copyright Copyright (C) 2021 Bryan Flynt - All Rights Reserved
*/
#pragma once
#include <cassert>
#include <vector>
#include "polycalc/parameters.hpp"
#include "polycalc/polynomial/jacobi.hpp"
namespace polycalc {
names... | 27.77305 | 106 | 0.522472 | BryanFlynt |
95e5037325108bcb3a68d454b1596a032466ddf7 | 1,277 | cpp | C++ | RPSolver/conditions/ColorConditionPosition.cpp | igui/OppositeRenderer | 2442741792b3f0f426025c2015002694fab692eb | [
"MIT"
] | 9 | 2016-06-25T15:52:05.000Z | 2020-01-15T17:31:49.000Z | RPSolver/conditions/ColorConditionPosition.cpp | igui/OppositeRenderer | 2442741792b3f0f426025c2015002694fab692eb | [
"MIT"
] | null | null | null | RPSolver/conditions/ColorConditionPosition.cpp | igui/OppositeRenderer | 2442741792b3f0f426025c2015002694fab692eb | [
"MIT"
] | 2 | 2018-10-17T18:33:37.000Z | 2022-03-14T20:17:30.000Z | #include "ColorConditionPosition.h"
#include "renderer/PMOptixRenderer.h"
#include <QLocale>
#include <QVector>
#include <QColor>
ColorConditionPosition::ColorConditionPosition(const QString& node, const optix::float3& hsvColor) :
m_node(node),
m_hsvColor(hsvColor)
{
}
/// adapted from http://www.cs.rit.edu/~ncs/c... | 23.648148 | 100 | 0.740016 | igui |
95e691961ebfa6bbdb05b501023cc8f9232bca74 | 470 | cpp | C++ | test/one_pole_test.cpp | hansen-audio/dsp-tool-box | 4b73b39c4149b1a160ff9baa58830d6a4478feef | [
"MIT"
] | null | null | null | test/one_pole_test.cpp | hansen-audio/dsp-tool-box | 4b73b39c4149b1a160ff9baa58830d6a4478feef | [
"MIT"
] | null | null | null | test/one_pole_test.cpp | hansen-audio/dsp-tool-box | 4b73b39c4149b1a160ff9baa58830d6a4478feef | [
"MIT"
] | null | null | null | // Copyright(c) 2021 Hansen Audio.
#include "ha/dsp_tool_box/filtering/one_pole.h"
#include "gtest/gtest.h"
using namespace ha::dtb::filtering;
/**
* @brief one_pole_test
*/
TEST(one_pole_test, test_one_pole_initialisation)
{
auto one_pole = OnePoleImpl::create();
EXPECT_FLOAT_EQ(one_pole.a, 0.9);
EXPE... | 24.736842 | 79 | 0.595745 | hansen-audio |
95ebda8d3be8708b52ecab9bc614b240388f153f | 944 | cpp | C++ | codeforces/1567B.cpp | sgrade/cpptest | 84ade6ec03ea394d4a4489c7559d12b4799c0b62 | [
"MIT"
] | null | null | null | codeforces/1567B.cpp | sgrade/cpptest | 84ade6ec03ea394d4a4489c7559d12b4799c0b62 | [
"MIT"
] | null | null | null | codeforces/1567B.cpp | sgrade/cpptest | 84ade6ec03ea394d4a4489c7559d12b4799c0b62 | [
"MIT"
] | null | null | null | // B. MEXor Mixup
#include <iostream>
using namespace std;
// Method to calculate xor
int computeXOR(int n) {
// Source - https://www.geeksforgeeks.org/calculate-xor-1-n/
// If n is a multiple of 4
if (n % 4 == 0) {
return n;
}
// If n%4 gives remainder 1
if (n % 4 == 1) {
r... | 15.225806 | 64 | 0.400424 | sgrade |
95ec924801c63c19c0604cdbd92f81fcfb7c89c5 | 2,081 | cpp | C++ | lib/netdata/fragments_server.cpp | siilky/catomania | cb3a05cbef523d16b8929b390e190e0cd5924ee9 | [
"MIT"
] | 1 | 2021-02-05T23:20:07.000Z | 2021-02-05T23:20:07.000Z | lib/netdata/fragments_server.cpp | siilky/catomania | cb3a05cbef523d16b8929b390e190e0cd5924ee9 | [
"MIT"
] | null | null | null | lib/netdata/fragments_server.cpp | siilky/catomania | cb3a05cbef523d16b8929b390e190e0cd5924ee9 | [
"MIT"
] | null | null | null | #include "stdafx.h"
#include "netdata/fragments_server.h"
namespace serverdata
{
static const fragmentCollection_t fragments[] =
{
COLLECTION_ELEMENT(Array),
COLLECTION_ELEMENT(ArrayPacked),
COLLECTION_ELEMENT(GameinfoSet),
COLLECTION_ELEMENT(AccInfo),
COLLECTION_ELEMEN... | 32.515625 | 97 | 0.702547 | siilky |
95eead97864fb897edd4dd8a2cbc86b300d5d66f | 775 | cpp | C++ | graph-source-code/296-D/10047350.cpp | AmrARaouf/algorithm-detection | 59f3028d2298804870b32729415d71eec6116557 | [
"MIT"
] | null | null | null | graph-source-code/296-D/10047350.cpp | AmrARaouf/algorithm-detection | 59f3028d2298804870b32729415d71eec6116557 | [
"MIT"
] | null | null | null | graph-source-code/296-D/10047350.cpp | AmrARaouf/algorithm-detection | 59f3028d2298804870b32729415d71eec6116557 | [
"MIT"
] | null | null | null | //Language: GNU C++
//In the name of God
#include <iostream>
#include <algorithm>
#include <vector>
#include <cstdlib>
#include <map>
#include <cstdio>
using namespace std;
#define mp make_pair
#define X first
#define Y second
#define lol long long
const int MAXN=510;
lol dis[MAXN][MAXN],a[MAXN],ans[MAXN];
int mai... | 17.613636 | 72 | 0.536774 | AmrARaouf |
95f63141ee8879d95b09b6d158efeaadc1b9224a | 981 | cpp | C++ | topic_wise/binarysearch/russianDollEnvelopes.cpp | archit-1997/LeetCode | 7c0f74da0836d3b0855f09bae8960f81a384f3f3 | [
"MIT"
] | 1 | 2021-01-27T16:37:36.000Z | 2021-01-27T16:37:36.000Z | topic_wise/binarysearch/russianDollEnvelopes.cpp | archit-1997/LeetCode | 7c0f74da0836d3b0855f09bae8960f81a384f3f3 | [
"MIT"
] | null | null | null | topic_wise/binarysearch/russianDollEnvelopes.cpp | archit-1997/LeetCode | 7c0f74da0836d3b0855f09bae8960f81a384f3f3 | [
"MIT"
] | null | null | null | /**
* @author : archit
* @GitHub : archit-1997
* @Email : architsingh456@gmail.com
* @file : russianDollEnvelopes.cpp
* @created : Friday Aug 20, 2021 19:49:02 IST
*/
#include <bits/stdc++.h>
using namespace std;
bool compare(const vector<int> &a,const vector<int> &b){
if(a[0]==b[... | 27.25 | 105 | 0.559633 | archit-1997 |
2507f8068640fc6f36eb0b4121359f400f7b1814 | 1,034 | cpp | C++ | C++/problem0125.cpp | 1050669722/LeetCode-Answers | c8f4d1ccaac09cda63b60d75144335347b06dc81 | [
"MIT"
] | null | null | null | C++/problem0125.cpp | 1050669722/LeetCode-Answers | c8f4d1ccaac09cda63b60d75144335347b06dc81 | [
"MIT"
] | null | null | null | C++/problem0125.cpp | 1050669722/LeetCode-Answers | c8f4d1ccaac09cda63b60d75144335347b06dc81 | [
"MIT"
] | null | null | null | class Solution {
public:
bool isPalindrome(string s) {
if (s.size() == 0)
{
return true;
}
vector<char> v;
for (int i = 0; i < s.size(); ++i)
{
if (isalnum(s[i]))
{
v.push_back(s[i]);
// cout << s[i]... | 22 | 71 | 0.305609 | 1050669722 |
2508bfcdb6b42e2a10b88a833dd0167bfe49dda3 | 476 | hpp | C++ | king/include/king/Math/VectorType.hpp | tobiasbu/king | 7a6892a93d5d4c5f14e2618104f2955281f0bada | [
"MIT"
] | 3 | 2017-03-10T13:57:25.000Z | 2017-05-31T19:05:35.000Z | king/include/king/Math/VectorType.hpp | tobiasbu/king | 7a6892a93d5d4c5f14e2618104f2955281f0bada | [
"MIT"
] | null | null | null | king/include/king/Math/VectorType.hpp | tobiasbu/king | 7a6892a93d5d4c5f14e2618104f2955281f0bada | [
"MIT"
] | null | null | null |
#ifndef KING_VECTORTYPE_HPP
#define KING_VECTORTYPE_HPP
namespace king {
// Vectors Types Predefinition
template <typename T> class Vector2;
template <typename T> class Vector3;
template <typename T> class Vector4;
// Most Commom Vectors Types
typedef Vector2<float> Vector2f;
typedef Vector2<int> Vector2i;... | 18.307692 | 41 | 0.771008 | tobiasbu |
250c942de9921b043307f0332d526be930225d62 | 1,961 | cpp | C++ | src/PrintHelper.cpp | TB989/Game | 9cf6e1267f1bc08b2e7f5f9a8278914f930c7c51 | [
"MIT"
] | null | null | null | src/PrintHelper.cpp | TB989/Game | 9cf6e1267f1bc08b2e7f5f9a8278914f930c7c51 | [
"MIT"
] | null | null | null | src/PrintHelper.cpp | TB989/Game | 9cf6e1267f1bc08b2e7f5f9a8278914f930c7c51 | [
"MIT"
] | null | null | null | #include <string>
#include <iostream>
void startHeader(std::string locationName){
std::cout << "**********" << locationName << "**********\n";
}
void finishHeader(std::string locationName){
std::cout << "**********";
for(unsigned int i=0;i<locationName.length();i++){
std::cout << "*";
}
st... | 28.42029 | 99 | 0.481387 | TB989 |
251e742f8655e82fa15cf61f177b17e665922ff0 | 4,157 | cpp | C++ | src/types/Criteria.cpp | Mostah/parallel-pymcda | d5f5bb0de95dec90b88be9d00a3860e52eed4003 | [
"MIT"
] | 2 | 2020-12-12T22:48:57.000Z | 2021-02-24T09:37:40.000Z | src/types/Criteria.cpp | Mostah/parallel-pymcda | d5f5bb0de95dec90b88be9d00a3860e52eed4003 | [
"MIT"
] | 5 | 2021-01-07T19:34:24.000Z | 2021-03-17T13:52:22.000Z | src/types/Criteria.cpp | Mostah/parallel-pymcda | d5f5bb0de95dec90b88be9d00a3860e52eed4003 | [
"MIT"
] | 3 | 2020-12-12T22:49:56.000Z | 2021-09-08T05:26:38.000Z | #include "../../include/types/Criteria.h"
#include "../../include/types/Criterion.h"
#include "../../include/utils.h"
#include <algorithm>
#include <iostream>
#include <numeric>
#include <string>
#include <vector>
Criteria::Criteria(std::vector<Criterion> &criterion_vect) {
std::vector<std::string> crit_id_vect;
f... | 28.087838 | 79 | 0.660573 | Mostah |
2520af0b6c32847350b4e715a9d45c750e9af6c2 | 15,144 | hpp | C++ | libmesh/include/sirikata/mesh/Meshdata.hpp | pathorn/sirikata | 5d366a822ef2fb57cd9f64cc4f6085c0a635fdfa | [
"BSD-3-Clause"
] | 1 | 2016-05-09T03:34:51.000Z | 2016-05-09T03:34:51.000Z | libmesh/include/sirikata/mesh/Meshdata.hpp | pathorn/sirikata | 5d366a822ef2fb57cd9f64cc4f6085c0a635fdfa | [
"BSD-3-Clause"
] | null | null | null | libmesh/include/sirikata/mesh/Meshdata.hpp | pathorn/sirikata | 5d366a822ef2fb57cd9f64cc4f6085c0a635fdfa | [
"BSD-3-Clause"
] | null | null | null | /* Sirikata
* Meshdata.hpp
*
* Copyright (c) 2010, Daniel B. Miller
* 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 copy... | 36.757282 | 138 | 0.719427 | pathorn |
2532703c98e156e338f8abd5c4d6dcc28a4dc5d0 | 8,616 | cpp | C++ | PrgApps4/17-MMFSparse/MMFSparse.cpp | JimYang365/samples | 920c2d98b1ef0dc3d3b861b9b73ab6a3d0e5ced0 | [
"MIT"
] | null | null | null | PrgApps4/17-MMFSparse/MMFSparse.cpp | JimYang365/samples | 920c2d98b1ef0dc3d3b861b9b73ab6a3d0e5ced0 | [
"MIT"
] | null | null | null | PrgApps4/17-MMFSparse/MMFSparse.cpp | JimYang365/samples | 920c2d98b1ef0dc3d3b861b9b73ab6a3d0e5ced0 | [
"MIT"
] | null | null | null | /******************************************************************************
Module: MMFSparse.cpp
Notices: Copyright (c) 2000 Jeffrey Richter
******************************************************************************/
#include "..\CmnHdr.h" /* See Appendix A. */
#include <tchar.h>
#include <Windo... | 31.445255 | 80 | 0.543988 | JimYang365 |
253595dff9926cc3c167493f95b92c4e424811a0 | 1,565 | cpp | C++ | treefunctions.cpp | waha99922/JuicyBros_TOOLBOX_V1.0 | ff59f3842e9a4bf1b40e18613f555b923cd9b949 | [
"MIT"
] | null | null | null | treefunctions.cpp | waha99922/JuicyBros_TOOLBOX_V1.0 | ff59f3842e9a4bf1b40e18613f555b923cd9b949 | [
"MIT"
] | null | null | null | treefunctions.cpp | waha99922/JuicyBros_TOOLBOX_V1.0 | ff59f3842e9a4bf1b40e18613f555b923cd9b949 | [
"MIT"
] | null | null | null | #include <iostream>
#include "Tree.h"
using namespace std;
Tree::Tree()
{
root = NULL;
}
void Tree::insert(double value)
{
Tnode* ptr = new Tnode(value);
Tnode* temp = root;
if (root == NULL)
{
root = ptr;
}
else
{
while (temp != NULL)
{
if (temp->data > value && temp->left == NULL... | 14.490741 | 55 | 0.532907 | waha99922 |
2536ba074888894f3711036500cd7a040eb22d84 | 4,865 | cpp | C++ | main.cpp | gnole/CG-HW3 | 9c0859bda43291d49a47b929352d6ba5da2bdae9 | [
"MIT"
] | null | null | null | main.cpp | gnole/CG-HW3 | 9c0859bda43291d49a47b929352d6ba5da2bdae9 | [
"MIT"
] | null | null | null | main.cpp | gnole/CG-HW3 | 9c0859bda43291d49a47b929352d6ba5da2bdae9 | [
"MIT"
] | null | null | null | #include <SFML/Graphics.hpp>
#include <unistd.h>
#include <cmath>
#include <iostream>
void drawLineRed(int x1, int y1, int x2, int y2, sf::RenderWindow &window) {
const int deltaX = abs(x2 - x1);
const int deltaY = abs(y2 - y1);
const int signX = x1 < x2 ? 1 : -1;
const int signY = y1 < y2 ? 1 : -1;
int error = ... | 29.131737 | 101 | 0.610277 | gnole |
2536d4a70dc875741c6131f4b37f41f5ebd314dd | 780 | cpp | C++ | Team01/Game/Project/SceneGame.cpp | OiCGame/GameJam03 | 535fff1e39a3c509c4104029bd40386c5d8b4a69 | [
"MIT"
] | null | null | null | Team01/Game/Project/SceneGame.cpp | OiCGame/GameJam03 | 535fff1e39a3c509c4104029bd40386c5d8b4a69 | [
"MIT"
] | null | null | null | Team01/Game/Project/SceneGame.cpp | OiCGame/GameJam03 | 535fff1e39a3c509c4104029bd40386c5d8b4a69 | [
"MIT"
] | 1 | 2021-02-01T02:48:17.000Z | 2021-02-01T02:48:17.000Z | #include "SceneGame.h"
CSceneGame::CSceneGame() {
}
CSceneGame::~CSceneGame() {
}
bool CSceneGame::Load() {
return false;
}
void CSceneGame::Initialize() {
m_Game.Initialize();
}
void CSceneGame::Update() {
FadeInOut();
if (m_bEndStart) { return; }
m_Game.Update();
// if (g_pInput->IsKeyPush(MOFKEY_F2)) {
i... | 15.6 | 41 | 0.664103 | OiCGame |
2538fdd3e154e6fe6f933447ee849fa4d272cdfc | 18 | cpp | C++ | src/root/root.cpp | keithalewis/libfms | 8389d2d022af2a23764653f13addf989d6d9e7fe | [
"MIT"
] | null | null | null | src/root/root.cpp | keithalewis/libfms | 8389d2d022af2a23764653f13addf989d6d9e7fe | [
"MIT"
] | null | null | null | src/root/root.cpp | keithalewis/libfms | 8389d2d022af2a23764653f13addf989d6d9e7fe | [
"MIT"
] | null | null | null | #include "root.h"
| 9 | 17 | 0.666667 | keithalewis |
253a85ba64ff7c4ced3e3c7c26e811efead82d1f | 1,306 | hh | C++ | elements/local/autodpaint.hh | MacWR/Click-changed-for-ParaGraph | 18285e5da578fbb7285d10380836146e738dee6e | [
"Apache-2.0"
] | null | null | null | elements/local/autodpaint.hh | MacWR/Click-changed-for-ParaGraph | 18285e5da578fbb7285d10380836146e738dee6e | [
"Apache-2.0"
] | null | null | null | elements/local/autodpaint.hh | MacWR/Click-changed-for-ParaGraph | 18285e5da578fbb7285d10380836146e738dee6e | [
"Apache-2.0"
] | null | null | null | #ifndef CLICK_AUTODPAINT_HH
#define CLICK_AUTODPAINT_HH
#include <click/element.hh>
CLICK_DECLS
/*
=c
AutoDPaint(COLORANGE,OPERATIONCOLOR)
=s autoDpaint
sets packet two layers' autodpaint annotations
=d
The first layer Paint is to protect the consistency of the packet copys:
Sets each packet's first Paint annota... | 24.185185 | 137 | 0.743492 | MacWR |
253ce622b9954c1ada6315da36f8d6ad38172cf0 | 388 | cpp | C++ | IOST14.cpp | aaryan0348/E-Lab-Object-Oriented-Programming | 29f3ca80dbf2268441b5b9e426415650a607195a | [
"MIT"
] | null | null | null | IOST14.cpp | aaryan0348/E-Lab-Object-Oriented-Programming | 29f3ca80dbf2268441b5b9e426415650a607195a | [
"MIT"
] | null | null | null | IOST14.cpp | aaryan0348/E-Lab-Object-Oriented-Programming | 29f3ca80dbf2268441b5b9e426415650a607195a | [
"MIT"
] | null | null | null | #include <iostream>
using namespace std;
int main()
{
float n;
float pi;
cin>>n;
int i=0;
int n1=n;
while(n>0)
{
pi=(float)22/7;
cout.precision(n);
cout<<pi;
while(i)
{
cout<<'*';
i--;
}
i=n1-n+1;
n--;
cout<<endl;
}
cout<<"3"<<endl<<"Fill Setting:*";
... | 12.125 | 37 | 0.466495 | aaryan0348 |
2540014eae291b7d481e70e6939ec48afa99fdfb | 200,731 | inl | C++ | 2d_samples/pmj02_180.inl | st-ario/rayme | 315c57c23f4aa4934a8a80e84e3243acd3400808 | [
"MIT"
] | 1 | 2021-12-10T23:35:04.000Z | 2021-12-10T23:35:04.000Z | 2d_samples/pmj02_180.inl | st-ario/rayme | 315c57c23f4aa4934a8a80e84e3243acd3400808 | [
"MIT"
] | null | null | null | 2d_samples/pmj02_180.inl | st-ario/rayme | 315c57c23f4aa4934a8a80e84e3243acd3400808 | [
"MIT"
] | null | null | null | {std::array<float,2>{0.407800078f, 0.8442536f},
std::array<float,2>{0.587527096f, 0.23548229f},
std::array<float,2>{0.978728712f, 0.646827936f},
std::array<float,2>{0.130732656f, 0.300448418f},
std::array<float,2>{0.103660405f, 0.522768974f},
std::array<float,2>{0.782684922f, 0.481478781f},
std::array<float,2>{0.713951... | 49.006592 | 51 | 0.734725 | st-ario |
2542029350b0b404fbb1ac81123e1b99e37bef78 | 1,206 | hpp | C++ | src/utils/io.hpp | aligungr/ue-ran-sim | 564f9d228723f03adfa2b02df2ea019bdf305085 | [
"MIT"
] | 16 | 2020-04-16T02:07:37.000Z | 2020-07-23T10:48:27.000Z | src/utils/io.hpp | aligungr/ue-ran-sim | 564f9d228723f03adfa2b02df2ea019bdf305085 | [
"MIT"
] | 8 | 2020-07-13T17:11:35.000Z | 2020-08-03T16:46:31.000Z | src/utils/io.hpp | aligungr/ue-ran-sim | 564f9d228723f03adfa2b02df2ea019bdf305085 | [
"MIT"
] | 9 | 2020-03-04T15:05:08.000Z | 2020-07-30T06:18:18.000Z | //
// This file is a part of UERANSIM open source project.
// Copyright (c) 2021 ALİ GÜNGÖR.
//
// The software and all associated files are licensed under GPL-3.0
// and subject to the terms and conditions defined in LICENSE file.
//
#pragma once
#include <string>
#include <vector>
namespace io
{
void CreateDirect... | 24.12 | 81 | 0.740464 | aligungr |
25434081e9cb5acc2e145d1a614574615f6f255f | 136 | cpp | C++ | cpp/pb_large_map/LargeMap.cpp | patrit/playground | 6ace43f81123a06e9b5820e1f75e5a9af0cb37b9 | [
"MIT"
] | null | null | null | cpp/pb_large_map/LargeMap.cpp | patrit/playground | 6ace43f81123a06e9b5820e1f75e5a9af0cb37b9 | [
"MIT"
] | null | null | null | cpp/pb_large_map/LargeMap.cpp | patrit/playground | 6ace43f81123a06e9b5820e1f75e5a9af0cb37b9 | [
"MIT"
] | null | null | null | #include "LargeMap.hpp"
LargeMap::Map LargeMap::_map{
{"foo",
{{"bar42", 42},
{"bar43", 43},
}
},
};
| 13.6 | 29 | 0.426471 | patrit |
25452d7b66752b9252960b9985a8b6186e1030b4 | 1,095 | hpp | C++ | src/engine/mapset.hpp | eXl-Nic/eXl | a5a0f77f47db3179365c107a184bb38b80280279 | [
"MIT"
] | null | null | null | src/engine/mapset.hpp | eXl-Nic/eXl | a5a0f77f47db3179365c107a184bb38b80280279 | [
"MIT"
] | null | null | null | src/engine/mapset.hpp | eXl-Nic/eXl | a5a0f77f47db3179365c107a184bb38b80280279 | [
"MIT"
] | null | null | null | #pragma once
#include <dunatk/map/map.hpp>
#include <dunatk/map/tile.hpp>
#include <dunatk/map/tileblock.hpp>
namespace eXl
{
class MapSet : public HeapObject
{
MapSet();
public:
IntrusivePtr<SpriteDesc const> texFloor;
IntrusivePtr<SpriteDesc const> texFloorBorder;
IntrusivePtr<SpriteDesc const... | 24.886364 | 53 | 0.742466 | eXl-Nic |
8584124fdaa67095b42aa00325694a65e9782bcb | 5,735 | cpp | C++ | cocos2dx_playground/Classes/step_rain_of_chaos_game_test_ActorMoveScene.cpp | R2Road/cocos2dx_playground | 6e6f349b5c9fc702558fe8720ba9253a8ba00164 | [
"Apache-2.0"
] | 9 | 2020-06-11T17:09:44.000Z | 2021-12-25T00:34:33.000Z | cocos2dx_playground/Classes/step_rain_of_chaos_game_test_ActorMoveScene.cpp | R2Road/cocos2dx_playground | 6e6f349b5c9fc702558fe8720ba9253a8ba00164 | [
"Apache-2.0"
] | 9 | 2019-12-21T15:01:01.000Z | 2020-12-05T15:42:43.000Z | cocos2dx_playground/Classes/step_rain_of_chaos_game_test_ActorMoveScene.cpp | R2Road/cocos2dx_playground | 6e6f349b5c9fc702558fe8720ba9253a8ba00164 | [
"Apache-2.0"
] | 1 | 2020-09-07T01:32:16.000Z | 2020-09-07T01:32:16.000Z | #include "step_rain_of_chaos_game_test_ActorMoveScene.h"
#include <new>
#include <numeric>
#include "2d/CCLabel.h"
#include "2d/CCLayer.h"
#include "base/CCDirector.h"
#include "base/CCEventDispatcher.h"
#include "base/CCEventListenerKeyboard.h"
#include "base/ccUTF8.h"
#include "cpg_SStream.h"
#include "cpg_StringT... | 26.068182 | 157 | 0.668178 | R2Road |
8587631e041c8479eaedc531b415d9a88ae52421 | 2,957 | cpp | C++ | src/io/serialPort.cpp | oblaser/omw | 3206f5faf8ec26c63004de358235ba7efbd10c4f | [
"MIT"
] | null | null | null | src/io/serialPort.cpp | oblaser/omw | 3206f5faf8ec26c63004de358235ba7efbd10c4f | [
"MIT"
] | null | null | null | src/io/serialPort.cpp | oblaser/omw | 3206f5faf8ec26c63004de358235ba7efbd10c4f | [
"MIT"
] | null | null | null | /*
author Oliver Blaser
date 17.12.2021
copyright MIT - Copyright (c) 2021 Oliver Blaser
*/
#include <algorithm>
#include <string>
#include <vector>
#include "omw/defs.h"
#include "omw/io/serialPort.h"
#include "omw/string.h"
#include "omw/windows/windows.h"
namespace
{
#ifdef OMW_PLAT_WI... | 22.233083 | 84 | 0.578627 | oblaser |
858b3f66f848eea4e5fe243506ea4b0584394681 | 531 | cpp | C++ | Source/URoboViz/Private/Controllers/RobotController.cpp | HoangGiang93/URoboViz | dcaab223c30827977d15300f7ae4b19ba0ddfa4f | [
"MIT"
] | null | null | null | Source/URoboViz/Private/Controllers/RobotController.cpp | HoangGiang93/URoboViz | dcaab223c30827977d15300f7ae4b19ba0ddfa4f | [
"MIT"
] | null | null | null | Source/URoboViz/Private/Controllers/RobotController.cpp | HoangGiang93/URoboViz | dcaab223c30827977d15300f7ae4b19ba0ddfa4f | [
"MIT"
] | null | null | null | // Copyright (c) 2022, Hoang Giang Nguyen - Institute for Artificial Intelligence, University Bremen
#include "Controllers/RobotController.h"
#include "Animation/SkeletalMeshActor.h"
DEFINE_LOG_CATEGORY_STATIC(LogRobotController, Log, All);
URobotController::URobotController()
{
}
void URobotController::... | 22.125 | 101 | 0.709981 | HoangGiang93 |
858d1219e9e1be331ca432ebb6a99d65c36bf1a1 | 2,023 | cpp | C++ | android/app/src/cpp/src/base/tools/Timer.cpp | FlameSalamander/react-native-xmrig | 6a6e3b301bd78b88459989f334d759f65e434082 | [
"MIT"
] | 28 | 2021-05-11T03:28:57.000Z | 2022-03-09T14:34:57.000Z | android/app/src/cpp/src/base/tools/Timer.cpp | FlameSalamander/react-native-xmrig | 6a6e3b301bd78b88459989f334d759f65e434082 | [
"MIT"
] | 10 | 2021-05-16T19:50:31.000Z | 2022-01-30T03:56:45.000Z | android/app/src/cpp/src/base/tools/Timer.cpp | FlameSalamander/react-native-xmrig | 6a6e3b301bd78b88459989f334d759f65e434082 | [
"MIT"
] | 12 | 2021-07-19T22:14:58.000Z | 2022-02-08T02:24:05.000Z | /* XMRig
* Copyright 2018-2020 SChernykh <https://github.com/SChernykh>
* Copyright 2016-2020 XMRig <https://github.com/xmrig>, <support@xmrig.com>
*
* 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 Fr... | 21.521277 | 82 | 0.695502 | FlameSalamander |
859144fe3502ca1d0a582301f21ac43a1abcc4b9 | 4,268 | hpp | C++ | include/codegen/include/System/DateTimeResult.hpp | Futuremappermydud/Naluluna-Modifier-Quest | bfda34370764b275d90324b3879f1a429a10a873 | [
"MIT"
] | 1 | 2021-11-12T09:29:31.000Z | 2021-11-12T09:29:31.000Z | include/codegen/include/System/DateTimeResult.hpp | Futuremappermydud/Naluluna-Modifier-Quest | bfda34370764b275d90324b3879f1a429a10a873 | [
"MIT"
] | null | null | null | include/codegen/include/System/DateTimeResult.hpp | Futuremappermydud/Naluluna-Modifier-Quest | bfda34370764b275d90324b3879f1a429a10a873 | [
"MIT"
] | 2 | 2021-10-03T02:14:20.000Z | 2021-11-12T09:29:36.000Z | // Autogenerated from CppHeaderCreator
// Created by Sc2ad
// =========================================================================
#pragma once
#pragma pack(push, 8)
// Begin includes
#include "extern/beatsaber-hook/shared/utils/typedefs.h"
// Including type: System.ValueType
#include "System/ValueType.hpp"
// Inc... | 43.55102 | 862 | 0.714855 | Futuremappermydud |
85930680ecaf000349ed02a841828353c188a384 | 10,830 | cc | C++ | Third-party/Sokol/src/d3d11/imgui-d3d11.cc | VLiance/Demos | fa8435c2fa0f46e1324a71501fdf646326936148 | [
"Unlicense"
] | null | null | null | Third-party/Sokol/src/d3d11/imgui-d3d11.cc | VLiance/Demos | fa8435c2fa0f46e1324a71501fdf646326936148 | [
"Unlicense"
] | null | null | null | Third-party/Sokol/src/d3d11/imgui-d3d11.cc | VLiance/Demos | fa8435c2fa0f46e1324a71501fdf646326936148 | [
"Unlicense"
] | null | null | null | //------------------------------------------------------------------------------
// imgui-d3d11.cc
// Dear ImGui integration sample with D3D11 backend.
//------------------------------------------------------------------------------
#include "d3d11entry.h"
#define SOKOL_IMPL
#define SOKOL_D3D11
#define SOKOL_D3D11_SH... | 39.525547 | 130 | 0.637027 | VLiance |
8594dcfafda4d2bda1e07bb9eb18ee8bd8228b10 | 2,771 | cpp | C++ | engine/RenderPipelineManager.cpp | shanysheng/orange3d | 9ee081a98e14fdeb3aaafd6bbb49fe027d4cd3c0 | [
"BSD-2-Clause"
] | 11 | 2017-06-06T17:22:30.000Z | 2022-03-23T11:56:49.000Z | engine/RenderPipelineManager.cpp | shanysheng/orange3d | 9ee081a98e14fdeb3aaafd6bbb49fe027d4cd3c0 | [
"BSD-2-Clause"
] | null | null | null | engine/RenderPipelineManager.cpp | shanysheng/orange3d | 9ee081a98e14fdeb3aaafd6bbb49fe027d4cd3c0 | [
"BSD-2-Clause"
] | 5 | 2018-02-07T02:48:59.000Z | 2021-08-23T05:16:59.000Z | #include "RenderPipelineManager.h"
namespace pipeline{
CRenderPipelineManager::CRenderPipelineManager():m_pRenderingEngine(NULL)
{
}
CRenderPipelineManager::~CRenderPipelineManager()
{
ClearRenderPipeline();
ClearPrototypes();
}
IRenderPipeline*CRenderPipelin... | 27.71 | 109 | 0.568748 | shanysheng |
85a95df74baa0d5171c000bcde253f924c623d5d | 4,791 | hpp | C++ | contrib/autoboost/autoboost/mpl/aux_/logical_op.hpp | CaseyCarter/autowiring | 48e95a71308318c8ffb7ed1348e034fd9110f70c | [
"Apache-2.0"
] | 87 | 2015-01-18T00:43:06.000Z | 2022-02-11T17:40:50.000Z | contrib/autoboost/autoboost/mpl/aux_/logical_op.hpp | CaseyCarter/autowiring | 48e95a71308318c8ffb7ed1348e034fd9110f70c | [
"Apache-2.0"
] | 274 | 2015-01-03T04:50:49.000Z | 2021-03-08T09:01:09.000Z | contrib/autoboost/autoboost/mpl/aux_/logical_op.hpp | CaseyCarter/autowiring | 48e95a71308318c8ffb7ed1348e034fd9110f70c | [
"Apache-2.0"
] | 15 | 2015-09-30T20:58:43.000Z | 2020-12-19T21:24:56.000Z |
// Copyright Aleksey Gurtovoy 2000-2004
//
// 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)
//
// See http://www.boost.org/libs/mpl for documentation.
// $Id$
// $Date$
// $Revision$
// NO INCLUDE GUARDS, THE H... | 28.861446 | 104 | 0.736798 | CaseyCarter |
85b0c4fb364783a7874cf6a4da39e9523835dede | 666 | cpp | C++ | server/memory.cpp | FaresMehanna/Monitor-And-Control-Server-Room | 29caea1501a5174c63ba87c47545c889b9cf2e51 | [
"MIT"
] | null | null | null | server/memory.cpp | FaresMehanna/Monitor-And-Control-Server-Room | 29caea1501a5174c63ba87c47545c889b9cf2e51 | [
"MIT"
] | null | null | null | server/memory.cpp | FaresMehanna/Monitor-And-Control-Server-Room | 29caea1501a5174c63ba87c47545c889b9cf2e51 | [
"MIT"
] | null | null | null | #include <stdio.h>
#include <pthread.h>
#include <unistd.h>
#include <stdlib.h>
#include "device.h"
#include "memory.h"
void acquire(DeviceData* device_data) {
printf("acquire.\n");
pthread_mutex_lock(&(device_data->itmes_mutex));
(device_data->memory_pointers)++;
pthread_mutex_unlock(&(device_data->itmes... | 26.64 | 54 | 0.71021 | FaresMehanna |
85c2389dec561ca7a80bd6c08f9934a6746ac57a | 7,736 | cpp | C++ | appsrc/DistributedConfigGenerator.cpp | slashdotted/PomaPure | c469efba9813b4b897129cff9699983c3f90b24b | [
"BSD-3-Clause"
] | 2 | 2017-12-11T01:07:45.000Z | 2021-08-21T20:57:04.000Z | appsrc/DistributedConfigGenerator.cpp | slashdotted/PomaPure | c469efba9813b4b897129cff9699983c3f90b24b | [
"BSD-3-Clause"
] | null | null | null | appsrc/DistributedConfigGenerator.cpp | slashdotted/PomaPure | c469efba9813b4b897129cff9699983c3f90b24b | [
"BSD-3-Clause"
] | 1 | 2017-08-29T17:53:20.000Z | 2017-08-29T17:53:20.000Z | /*
* Copyright (C)2015,2016,2017 Amos Brocco (amos.brocco@supsi.ch)
* Scuola Universitaria Professionale della
* Svizzera Italiana (SUPSI)
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are perm... | 47.460123 | 118 | 0.586608 | slashdotted |
85c3a32ec8a115fac835f0e829db3cbda2aa6e23 | 35,918 | cpp | C++ | csl/cslbase/arith07.cpp | arthurcnorman/general | 5e8fef0cc7999fa8ab75d8fdf79ad5488047282b | [
"BSD-2-Clause"
] | null | null | null | csl/cslbase/arith07.cpp | arthurcnorman/general | 5e8fef0cc7999fa8ab75d8fdf79ad5488047282b | [
"BSD-2-Clause"
] | null | null | null | csl/cslbase/arith07.cpp | arthurcnorman/general | 5e8fef0cc7999fa8ab75d8fdf79ad5488047282b | [
"BSD-2-Clause"
] | null | null | null | // arith07.cpp Copyright (C) 1990-2020 Codemist
//
// Arithmetic functions. negation plus a load of Common Lisp things
// for support of complex numbers.
//
//
/**************************************************************************
* Copyright (C) 2020, Codemist. ... | 36.914697 | 85 | 0.587143 | arthurcnorman |
85c99d2b6b4215afc6f0ae82c6234c5939f9b5cc | 7,056 | cpp | C++ | src/testcase/backtrace.cpp | jjg1914/testcase | 1edca3295ea65d654f0b363bd0bde8c0f0b653f3 | [
"MIT"
] | null | null | null | src/testcase/backtrace.cpp | jjg1914/testcase | 1edca3295ea65d654f0b363bd0bde8c0f0b653f3 | [
"MIT"
] | null | null | null | src/testcase/backtrace.cpp | jjg1914/testcase | 1edca3295ea65d654f0b363bd0bde8c0f0b653f3 | [
"MIT"
] | null | null | null | #include <bfd.h>
#include <execinfo.h>
#include <cxxabi.h>
#include <csignal>
#include <cmath>
#include <map>
#include <string>
#include <sstream>
#include <iostream>
#include <iomanip>
#include <memory>
#include "testcase/backtrace.h"
using namespace std;
using namespace testcase;
#define BACKTRACE_BUF_SIZE \
(s... | 21.512195 | 77 | 0.618906 | jjg1914 |
85cb6cbecfb350484fccd1aee3264ef374dbd7b6 | 4,152 | cpp | C++ | src/guacamole/guac_clipboard.cpp | unk0rrupt/collab-vm-server | 30a18cc91b757216a08e900826b589ce29bc3bf0 | [
"Apache-2.0"
] | 74 | 2020-12-20T19:29:21.000Z | 2021-12-04T14:59:29.000Z | src/guacamole/guac_clipboard.cpp | unk0rrupt/collab-vm-server | 30a18cc91b757216a08e900826b589ce29bc3bf0 | [
"Apache-2.0"
] | 2 | 2020-12-27T12:10:50.000Z | 2021-01-24T12:38:24.000Z | src/guacamole/guac_clipboard.cpp | unk0rrupt/collab-vm-server | 30a18cc91b757216a08e900826b589ce29bc3bf0 | [
"Apache-2.0"
] | 4 | 2020-12-20T14:28:11.000Z | 2021-08-20T17:01:11.000Z | /*
* Copyright (C) 2014 Glyptodon LLC
*
* 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, publi... | 32.692913 | 99 | 0.71315 | unk0rrupt |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.