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 108 | 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 67k ⌀ | 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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
9689bf7cdb4a419310b90dbf8e3fabc7c0f0af22 | 68,541 | cpp | C++ | main_d2/gameseg.cpp | Kreeblah/ChocolateDescent | ce575a8193c4fa560731203d9aea66355c41cc0d | [
"MIT"
] | 22 | 2019-08-19T21:09:29.000Z | 2022-03-25T23:19:15.000Z | main_d2/gameseg.cpp | Kreeblah/ChocolateDescent | ce575a8193c4fa560731203d9aea66355c41cc0d | [
"MIT"
] | 6 | 2019-11-08T22:17:03.000Z | 2022-03-10T05:02:59.000Z | main_d2/gameseg.cpp | Kreeblah/ChocolateDescent | ce575a8193c4fa560731203d9aea66355c41cc0d | [
"MIT"
] | 6 | 2019-08-24T08:03:14.000Z | 2022-02-04T15:04:52.000Z | /*
THE COMPUTER CODE CONTAINED HEREIN IS THE SOLE PROPERTY OF PARALLAX
SOFTWARE CORPORATION ("PARALLAX"). PARALLAX, IN DISTRIBUTING THE CODE TO
END-USERS, AND SUBJECT TO ALL OF THE TERMS AND CONDITIONS HEREIN, GRANTS A
ROYALTY-FREE, PERPETUAL LICENSE TO SUCH END-USERS FOR USE BY SUCH END-USERS
IN USING, DISPLAYING, A... | 30.694581 | 219 | 0.634525 | Kreeblah |
968c396fc3be636ce57ca53eae55cc1abc49e699 | 358 | cpp | C++ | 6. Heaps/Function_operator.cpp | suraj0803/DSA | 6ea21e452d7662e2351ee2a7b0415722e1bbf094 | [
"MIT"
] | null | null | null | 6. Heaps/Function_operator.cpp | suraj0803/DSA | 6ea21e452d7662e2351ee2a7b0415722e1bbf094 | [
"MIT"
] | null | null | null | 6. Heaps/Function_operator.cpp | suraj0803/DSA | 6ea21e452d7662e2351ee2a7b0415722e1bbf094 | [
"MIT"
] | null | null | null | #include<iostream>
using namespace std;
class Func
{
public:
void operator()(){
cout<<"Having Fun inside Operator() func.";
}
};
int main()
{
Func f;// Constructor
f();// Overloaded() Operator = Function call f is an object. As it is a object but it is behaving like a fu... | 16.272727 | 126 | 0.583799 | suraj0803 |
968c4e4d936965d36e0e8e9fc2f6cf999205efaa | 3,579 | cpp | C++ | src/reduced_alphabet_coder.cpp | metaVariable/ghostz | 273cc1efe6278f8012fa9232d854e392b467477f | [
"BSD-2-Clause"
] | null | null | null | src/reduced_alphabet_coder.cpp | metaVariable/ghostz | 273cc1efe6278f8012fa9232d854e392b467477f | [
"BSD-2-Clause"
] | null | null | null | src/reduced_alphabet_coder.cpp | metaVariable/ghostz | 273cc1efe6278f8012fa9232d854e392b467477f | [
"BSD-2-Clause"
] | null | null | null | /*
* reduced_alphabet_coder.cpp
*
* Created on: 2012/11/29
* Author: shu
*/
#include <iostream>
#include <stdint.h>
#include <vector>
#include <string.h>
#include <string>
#include <algorithm>
#include <limits.h>
#include "alphabet_type.h"
#include "alphabet_coder.h"
#include "reduced_alphabet_coder.h"
usi... | 31.955357 | 117 | 0.703828 | metaVariable |
96907c79e30112aaa62c8163758696a7b9830acd | 1,806 | cpp | C++ | Sample/main.cpp | Skycoder42/QXmlCodeGen | e82366439fcb7e5fb3435b9a07961d4c4f07169c | [
"BSD-3-Clause"
] | 1 | 2019-04-02T21:05:21.000Z | 2019-04-02T21:05:21.000Z | Sample/main.cpp | Skycoder42/QXmlCodeGen | e82366439fcb7e5fb3435b9a07961d4c4f07169c | [
"BSD-3-Clause"
] | 1 | 2019-02-17T09:20:59.000Z | 2019-02-17T10:34:31.000Z | Sample/main.cpp | Skycoder42/QXmlCodeGen | e82366439fcb7e5fb3435b9a07961d4c4f07169c | [
"BSD-3-Clause"
] | null | null | null | #include <QCoreApplication>
#include <QDebug>
#include <QtTest>
#include "testreader.h"
class TestXmlCodeGen : public QObject
{
Q_OBJECT
private Q_SLOTS:
void testParser_data();
void testParser();
};
void TestXmlCodeGen::testParser_data()
{
QTest::addColumn<QString>("path");
QTest::addColumn<bool>("success");
... | 25.083333 | 92 | 0.621262 | Skycoder42 |
96944eca5fdd3a75a08c5fe0b20976bf108c3e22 | 716 | cpp | C++ | Algorithm/algorithm-easy/List/5.cpp | TommyGong08/Leetcode | 5359dfcb6b846e18e21efde07914027e958c0073 | [
"MIT"
] | null | null | null | Algorithm/algorithm-easy/List/5.cpp | TommyGong08/Leetcode | 5359dfcb6b846e18e21efde07914027e958c0073 | [
"MIT"
] | null | null | null | Algorithm/algorithm-easy/List/5.cpp | TommyGong08/Leetcode | 5359dfcb6b846e18e21efde07914027e958c0073 | [
"MIT"
] | null | null | null | /**
* Definition for singly-linked list.
* struct ListNode {
* int val;
* ListNode *next;
* ListNode(int x) : val(x), next(NULL) {}
* };
*/
class Solution {
public:
bool isPalindrome(ListNode* head) {
//将每个值压入堆栈
vector<int> v;
ListNode* p = head;
while(p != NULL){
... | 21.058824 | 46 | 0.393855 | TommyGong08 |
f7b93aaf28a8669274d072a0108f84f111f06677 | 4,046 | hpp | C++ | include/glimpse/renderbuffer.hpp | fabianishere/glimpse | 12a16f4f254152a6ed8f64f143d058a269000aaf | [
"MIT"
] | null | null | null | include/glimpse/renderbuffer.hpp | fabianishere/glimpse | 12a16f4f254152a6ed8f64f143d058a269000aaf | [
"MIT"
] | null | null | null | include/glimpse/renderbuffer.hpp | fabianishere/glimpse | 12a16f4f254152a6ed8f64f143d058a269000aaf | [
"MIT"
] | null | null | null | #ifndef GLIMPSE_RENDERBUFFER_H
#define GLIMPSE_RENDERBUFFER_H
#include <glimpse/buffer.hpp>
#include <glimpse/gl.hpp>
#include <functional>
namespace gl {
/**
* {@link Renderbuffer} objects are OpenGL objects that contain images.
*
* They are created and used specifically with {@link Framebuffer} objects. They
... | 28.097222 | 90 | 0.629016 | fabianishere |
f7b9a5ba0cc3bb12e0efd5f74638123a0b2f1f7b | 551 | cc | C++ | src/gb/utils/log.cc | jonatan-ekstrom/FreshBoy | 228302e720f4a8fe4bf5c911e86588e412c0ce0a | [
"MIT"
] | 3 | 2021-11-30T20:37:33.000Z | 2022-01-06T20:26:52.000Z | src/gb/utils/log.cc | jonatan-ekstrom/FreshBoy | 228302e720f4a8fe4bf5c911e86588e412c0ce0a | [
"MIT"
] | null | null | null | src/gb/utils/log.cc | jonatan-ekstrom/FreshBoy | 228302e720f4a8fe4bf5c911e86588e412c0ce0a | [
"MIT"
] | null | null | null | #include "log.h"
#include <iostream>
namespace {
bool Enabled{false};
}
namespace gb::log {
void Enable() { Enabled = true; }
std::string Hex(const u16 address) {
constexpr char c[]{"0123456789ABCDEF"};
std::string res{"0x"};
res.push_back(c[(address >> 12) & 0x0F]);
res.push_back(c[(address >> ... | 19.678571 | 45 | 0.598911 | jonatan-ekstrom |
f7bd6786d3a823303b0c3fbfe741d49f43adf94d | 5,972 | hpp | C++ | include/svgpp/parser/external_function/parse_misc_impl.hpp | RichardCory/svgpp | 801e0142c61c88cf2898da157fb96dc04af1b8b0 | [
"BSL-1.0"
] | 428 | 2015-01-05T17:13:54.000Z | 2022-03-31T08:25:47.000Z | include/svgpp/parser/external_function/parse_misc_impl.hpp | andrew2015/svgpp | 1d2f15ab5e1ae89e74604da08f65723f06c28b3b | [
"BSL-1.0"
] | 61 | 2015-01-08T14:32:27.000Z | 2021-12-06T16:55:11.000Z | include/svgpp/parser/external_function/parse_misc_impl.hpp | andrew2015/svgpp | 1d2f15ab5e1ae89e74604da08f65723f06c28b3b | [
"BSL-1.0"
] | 90 | 2015-05-19T04:56:46.000Z | 2022-03-26T16:42:50.000Z | // Copyright Oleg Maximenko 2016.
// 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://github.com/svgpp/svgpp for library home page.
#pragma once
#include <boost/spirit/include/qi.hpp>
#include <svg... | 40.90411 | 139 | 0.708138 | RichardCory |
f7c0b4f3b57ecb89c975c1f0a90b0e89490bbaf1 | 3,477 | cpp | C++ | src/jaegertracing/thrift-gen/aggregation_validator_types.cpp | ankit-varma10/jaeger-client-cpp | 855cddb1352347f8199be7e10c69fe970a020e22 | [
"Apache-2.0"
] | null | null | null | src/jaegertracing/thrift-gen/aggregation_validator_types.cpp | ankit-varma10/jaeger-client-cpp | 855cddb1352347f8199be7e10c69fe970a020e22 | [
"Apache-2.0"
] | null | null | null | src/jaegertracing/thrift-gen/aggregation_validator_types.cpp | ankit-varma10/jaeger-client-cpp | 855cddb1352347f8199be7e10c69fe970a020e22 | [
"Apache-2.0"
] | 1 | 2020-03-09T04:52:07.000Z | 2020-03-09T04:52:07.000Z | /**
* Autogenerated by Thrift Compiler (0.9.2)
*
* DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
* @generated
*/
#include "aggregation_validator_types.h"
#include <algorithm>
#include <ostream>
#include <thrift/TToString.h>
namespace jaegertracing { namespace thrift {
ValidateTraceResponse... | 26.746154 | 144 | 0.672131 | ankit-varma10 |
f7c382e80177b562fce854ba29f2d1edafda717d | 6,226 | cc | C++ | chrome/installer/setup/installer_state.cc | mghgroup/Glide-Browser | 6a4c1eaa6632ec55014fee87781c6bbbb92a2af5 | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | null | null | null | chrome/installer/setup/installer_state.cc | mghgroup/Glide-Browser | 6a4c1eaa6632ec55014fee87781c6bbbb92a2af5 | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | null | null | null | chrome/installer/setup/installer_state.cc | mghgroup/Glide-Browser | 6a4c1eaa6632ec55014fee87781c6bbbb92a2af5 | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 2 | 2021-01-05T23:43:46.000Z | 2021-01-07T23:36:34.000Z | // Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "chrome/installer/setup/installer_state.h"
#include <stddef.h>
#include <string>
#include "base/command_line.h"
#include "base/files/file_... | 32.092784 | 80 | 0.721169 | mghgroup |
f7c45f73c39c805ff526925261f3072636578c6e | 1,447 | cc | C++ | components/ucloud_ai/src/model/aliyun-openapi/imagerecog/src/model/RecognizeImageColorRequest.cc | wstong999/AliOS-Things | 6554769cb5b797e28a30a4aa89b3f4cb2ef2f5d9 | [
"Apache-2.0"
] | 4,538 | 2017-10-20T05:19:03.000Z | 2022-03-30T02:29:30.000Z | components/ucloud_ai/src/model/aliyun-openapi/imagerecog/src/model/RecognizeImageColorRequest.cc | wstong999/AliOS-Things | 6554769cb5b797e28a30a4aa89b3f4cb2ef2f5d9 | [
"Apache-2.0"
] | 1,088 | 2017-10-21T07:57:22.000Z | 2022-03-31T08:15:49.000Z | components/ucloud_ai/src/model/aliyun-openapi/imagerecog/src/model/RecognizeImageColorRequest.cc | wstong999/AliOS-Things | 6554769cb5b797e28a30a4aa89b3f4cb2ef2f5d9 | [
"Apache-2.0"
] | 1,860 | 2017-10-20T05:22:35.000Z | 2022-03-27T10:54:14.000Z | /*
* Copyright 2009-2017 Alibaba Cloud 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... | 27.826923 | 75 | 0.757429 | wstong999 |
f7c4ab92496fa5c7064134eae25f005cc2e84a66 | 132 | hpp | C++ | InvalidCardException.hpp | FrankBotos/PokerHandStrength | bd11de0f90bbf517b3b4cd10d7d6c933478047a9 | [
"MIT"
] | null | null | null | InvalidCardException.hpp | FrankBotos/PokerHandStrength | bd11de0f90bbf517b3b4cd10d7d6c933478047a9 | [
"MIT"
] | null | null | null | InvalidCardException.hpp | FrankBotos/PokerHandStrength | bd11de0f90bbf517b3b4cd10d7d6c933478047a9 | [
"MIT"
] | null | null | null | #pragma once
#include <stdexcept>
class InvalidCardException : public std::runtime_error
{
public:
InvalidCardException();
};
| 13.2 | 54 | 0.75 | FrankBotos |
f7c4eba1bdad99a4c70e547792f470a7e111a6ae | 9,101 | cpp | C++ | microcontroller/laserInterface.cpp | jrahlf/3D-Non-Contact-Laser-Profilometer | 912eb8890442f897c951594c79a8a594096bc119 | [
"MIT"
] | 5 | 2016-02-06T14:57:35.000Z | 2018-01-02T23:34:18.000Z | microcontroller/laserInterface.cpp | jrahlf/3D-Non-Contact-Laser-Profilometer | 912eb8890442f897c951594c79a8a594096bc119 | [
"MIT"
] | null | null | null | microcontroller/laserInterface.cpp | jrahlf/3D-Non-Contact-Laser-Profilometer | 912eb8890442f897c951594c79a8a594096bc119 | [
"MIT"
] | 1 | 2020-04-19T13:16:31.000Z | 2020-04-19T13:16:31.000Z | /*
* laserInterface.cpp
*
* Created on: Dec 30, 2013
* Author: jonas
*
* UART DMA source: http://www.mikrocontroller.net/topic/243265
* UART interrupt source: http://eliaselectronics.com/stm32f4-usart-example-with-interrupt/
*/
#pragma GCC push_options
#pragma GCC optimize ("O0")
#include <xpcc/archit... | 29.644951 | 134 | 0.729261 | jrahlf |
f7c4ed699c8b50d7aa69b2a6e9cdc331830bdc6e | 744 | hpp | C++ | cpp/include/example/AsioTcpClient.hpp | skydiveuas/skylync | 73db7fe4593e262a1fc1a7b61c18190275abe723 | [
"MIT"
] | 1 | 2018-06-06T20:33:28.000Z | 2018-06-06T20:33:28.000Z | cpp/include/example/AsioTcpClient.hpp | skydiveuas/skylync | 73db7fe4593e262a1fc1a7b61c18190275abe723 | [
"MIT"
] | null | null | null | cpp/include/example/AsioTcpClient.hpp | skydiveuas/skylync | 73db7fe4593e262a1fc1a7b61c18190275abe723 | [
"MIT"
] | 1 | 2020-07-31T03:39:15.000Z | 2020-07-31T03:39:15.000Z | #ifndef EXAMPLE_ASIOTCPCLIENT_HPP
#define EXAMPLE_ASIOTCPCLIENT_HPP
#include "ICommInterface.hpp"
#include "asio.hpp"
#include <array>
namespace sl
{
namespace example
{
class AsioTcpClient : public sl::ICommInterface
{
public:
AsioTcpClient(ICommInterface::Listener* _listener, asio::io_context& _ioContext);
... | 17.714286 | 85 | 0.735215 | skydiveuas |
f7cf9513215406093d090b3305e6927d77e21171 | 1,007 | hpp | C++ | doc/quickbook/oglplus/quickref/enums/ext/debug_output_source.hpp | matus-chochlik/oglplus | 76dd964e590967ff13ddff8945e9dcf355e0c952 | [
"BSL-1.0"
] | 364 | 2015-01-01T09:38:23.000Z | 2022-03-22T05:32:00.000Z | doc/quickbook/oglplus/quickref/enums/ext/debug_output_source.hpp | matus-chochlik/oglplus | 76dd964e590967ff13ddff8945e9dcf355e0c952 | [
"BSL-1.0"
] | 55 | 2015-01-06T16:42:55.000Z | 2020-07-09T04:21:41.000Z | doc/quickbook/oglplus/quickref/enums/ext/debug_output_source.hpp | matus-chochlik/oglplus | 76dd964e590967ff13ddff8945e9dcf355e0c952 | [
"BSL-1.0"
] | 57 | 2015-01-07T18:35:49.000Z | 2022-03-22T05:32:04.000Z | // File doc/quickbook/oglplus/quickref/enums/ext/debug_output_source.hpp
//
// Automatically generated file, DO NOT modify manually.
// Edit the source 'source/enums/oglplus/ext/debug_output_source.txt'
// or the 'source/enums/make_enum.py' script instead.
//
// Copyright 2010-2019 Matus Chochlik.
// Distributed ... | 33.566667 | 73 | 0.784508 | matus-chochlik |
f7cfff6dd03f729f81f5df153e563d7bb50caacf | 648 | cpp | C++ | MPAGS-CIPHER/writeOutput.cpp | MPAGS-CPP-2019/mpags-day-2-JamesDownsLab | 9039e31b21c46008b4759e06a9e2cadff1b05014 | [
"MIT"
] | null | null | null | MPAGS-CIPHER/writeOutput.cpp | MPAGS-CPP-2019/mpags-day-2-JamesDownsLab | 9039e31b21c46008b4759e06a9e2cadff1b05014 | [
"MIT"
] | 1 | 2019-10-31T18:00:48.000Z | 2019-10-31T18:00:48.000Z | MPAGS-CIPHER/writeOutput.cpp | MPAGS-CPP-2019/mpags-day-2-JamesDownsLab | 9039e31b21c46008b4759e06a9e2cadff1b05014 | [
"MIT"
] | 1 | 2019-10-31T09:23:24.000Z | 2019-10-31T09:23:24.000Z | #include "writeOutput.hpp"
#include <string>
#include <fstream>
#include <iostream>
void write_output(
const std::string &outputFile,
const std::string &outputText) {
/*
* Writes outputText to outputFile. If outputFile is an empty string
* write the output to the console.
*/
if ... | 24.923077 | 72 | 0.57716 | MPAGS-CPP-2019 |
f7d09690c76197e30d4bb019fdd51dfe7b72b611 | 2,039 | cpp | C++ | samples/snippets/cpp/VS_Snippets_Data/Classic WebData XmlTextWriter.WriteEndElement Example/CPP/source.cpp | hamarb123/dotnet-api-docs | 6aeb55784944a2f1f5e773b657791cbd73a92dd4 | [
"CC-BY-4.0",
"MIT"
] | 421 | 2018-04-01T01:57:50.000Z | 2022-03-28T15:24:42.000Z | samples/snippets/cpp/VS_Snippets_Data/Classic WebData XmlTextWriter.WriteEndElement Example/CPP/source.cpp | hamarb123/dotnet-api-docs | 6aeb55784944a2f1f5e773b657791cbd73a92dd4 | [
"CC-BY-4.0",
"MIT"
] | 5,797 | 2018-04-02T21:12:23.000Z | 2022-03-31T23:54:38.000Z | samples/snippets/cpp/VS_Snippets_Data/Classic WebData XmlTextWriter.WriteEndElement Example/CPP/source.cpp | hamarb123/dotnet-api-docs | 6aeb55784944a2f1f5e773b657791cbd73a92dd4 | [
"CC-BY-4.0",
"MIT"
] | 1,482 | 2018-03-31T11:26:20.000Z | 2022-03-30T22:36:45.000Z |
// <Snippet1>
#using <System.Xml.dll>
using namespace System;
using namespace System::IO;
using namespace System::Xml;
int main()
{
XmlTextWriter^ writer = nullptr;
String^ filename = "sampledata.xml";
writer = gcnew XmlTextWriter( filename, nullptr );
//Use indenting for readability.
... | 26.828947 | 82 | 0.62972 | hamarb123 |
f7d0a156d1a840df1a733e12ecaeb962021e42c7 | 1,522 | cpp | C++ | shared/vkRenderers/VulkanClear.cpp | adoug/3D-Graphics-Rendering-Cookbook | dabffed670b8be5a619f0f62b10e0cc8ccdd5a36 | [
"MIT"
] | 399 | 2021-06-03T02:42:20.000Z | 2022-03-27T23:23:15.000Z | shared/vkRenderers/VulkanClear.cpp | adoug/3D-Graphics-Rendering-Cookbook | dabffed670b8be5a619f0f62b10e0cc8ccdd5a36 | [
"MIT"
] | 7 | 2021-07-13T02:36:01.000Z | 2022-03-26T03:46:37.000Z | shared/vkRenderers/VulkanClear.cpp | adoug/3D-Graphics-Rendering-Cookbook | dabffed670b8be5a619f0f62b10e0cc8ccdd5a36 | [
"MIT"
] | 53 | 2021-06-02T20:02:24.000Z | 2022-03-29T15:36:30.000Z | #include "shared/Utils.h"
#include "shared/UtilsMath.h"
#include "shared/vkRenderers/VulkanClear.h"
#include "shared/EasyProfilerWrapper.h"
VulkanClear::VulkanClear(VulkanRenderDevice& vkDev, VulkanImage depthTexture)
: RendererBase(vkDev, depthTexture)
, shouldClearDepth(depthTexture.image != VK_NULL_HANDLE)
{
if (!... | 32.382979 | 139 | 0.761498 | adoug |
f7d69ac314df9f0d7e36c1472107ed435f235080 | 1,384 | cc | C++ | tests/elle/Printable.cc | infinitio/elle | d9bec976a1217137436db53db39cda99e7024ce4 | [
"Apache-2.0"
] | 521 | 2016-02-14T00:39:01.000Z | 2022-03-01T22:39:25.000Z | tests/elle/Printable.cc | infinitio/elle | d9bec976a1217137436db53db39cda99e7024ce4 | [
"Apache-2.0"
] | 8 | 2017-02-21T11:47:33.000Z | 2018-11-01T09:37:14.000Z | tests/elle/Printable.cc | infinitio/elle | d9bec976a1217137436db53db39cda99e7024ce4 | [
"Apache-2.0"
] | 48 | 2017-02-21T10:18:13.000Z | 2022-03-25T02:35:20.000Z | #include <elle/test.hh>
#include <elle/Printable.hh>
#include <iostream>
#include <sstream>
namespace elle
{
class ComplexNumber : public Printable
{
public:
ComplexNumber(int real, int imag);
~ComplexNumber();
void
set(int real, int imag);
void
print(std::ostream& stream) const;
... | 17.74359 | 67 | 0.615607 | infinitio |
f7d7561837a92999a315ff140df0d9893a61cd26 | 1,109 | cpp | C++ | Engine/Source/Rendering/VertexArray.cpp | wdrDarx/DEngine3 | 27e2de3b56b6d4c8705e8a0e36f5911d8651caa2 | [
"MIT"
] | 2 | 2022-01-11T21:15:31.000Z | 2022-02-22T21:14:33.000Z | Engine/Source/Rendering/VertexArray.cpp | wdrDarx/DEngine3 | 27e2de3b56b6d4c8705e8a0e36f5911d8651caa2 | [
"MIT"
] | null | null | null | Engine/Source/Rendering/VertexArray.cpp | wdrDarx/DEngine3 | 27e2de3b56b6d4c8705e8a0e36f5911d8651caa2 | [
"MIT"
] | null | null | null | #pragma once
#include "VertexArray.h"
#include "VertexBufferLayout.h"
#include "Vertexbuffer.h"
VertexArray::VertexArray()
{
glGenVertexArrays(1, &m_RendererID);
}
VertexArray::~VertexArray()
{
glDeleteVertexArrays(1, &m_RendererID);
}
void VertexArray::Addbuffer(const VertexBuffer& vb, const VertexBufferLayout& l... | 24.644444 | 133 | 0.74752 | wdrDarx |
f7d813c47898857d7f483f3d86bcdc4f637aac01 | 1,447 | cpp | C++ | exercises/C01-Beginner_Exercises/S06-fwcTools2/Solutions/160_ChangeTextSOLN.cpp | rdholder/FeetWetCoding | c0106009eae0ff0fadd7e96b8adfe3a815d5dcfb | [
"BSD-2-Clause-FreeBSD"
] | 2 | 2016-04-28T19:31:51.000Z | 2016-05-22T06:57:47.000Z | exercises/C01-Beginner_Exercises/S06-fwcTools2/Solutions/160_ChangeTextSOLN.cpp | rdholder/FeetWetCoding | c0106009eae0ff0fadd7e96b8adfe3a815d5dcfb | [
"BSD-2-Clause-FreeBSD"
] | null | null | null | exercises/C01-Beginner_Exercises/S06-fwcTools2/Solutions/160_ChangeTextSOLN.cpp | rdholder/FeetWetCoding | c0106009eae0ff0fadd7e96b8adfe3a815d5dcfb | [
"BSD-2-Clause-FreeBSD"
] | null | null | null | // copyright (c) 2011 Robert Holder, Janice Dugger.
// See HELP.html included in this distribution.
#include <exercises/C01_S06.h>
// ==========================================
// = THIS IS THE SOLUTION CODE =
// = THIS IS *NOT* THE EXERCISE CODE =
// = (If you meant to look at the exercise =
// ... | 30.787234 | 104 | 0.514858 | rdholder |
f7e15c976119ea8f370ce1e1037c6aeb883717a6 | 4,000 | cpp | C++ | server/Server/Packets/CGUnEquipHandler.cpp | viticm/web-pap | 7c9b1f49d9ba8d8e40f8fddae829c2e414ccfeca | [
"BSD-3-Clause"
] | 3 | 2018-06-19T21:37:38.000Z | 2021-07-31T21:51:40.000Z | server/Server/Packets/CGUnEquipHandler.cpp | viticm/web-pap | 7c9b1f49d9ba8d8e40f8fddae829c2e414ccfeca | [
"BSD-3-Clause"
] | null | null | null | server/Server/Packets/CGUnEquipHandler.cpp | viticm/web-pap | 7c9b1f49d9ba8d8e40f8fddae829c2e414ccfeca | [
"BSD-3-Clause"
] | 13 | 2015-01-30T17:45:06.000Z | 2022-01-06T02:29:34.000Z | #include "stdafx.h"
#include "CGUnEquip.h"
#include "Type.h"
#include "Log.h"
#include "GamePlayer.h"
#include "Scene.h"
#include "Obj_Human.h"
#include "GCUnEquipResult.h"
#include "GCCharEquipment.h"
#include "HumanItemLogic.h"
#include "ItemOperator.h"
extern UINT GetEquipmentMaxLevelGemID(Item *pEquipment);
UIN... | 27.39726 | 89 | 0.5575 | viticm |
f7e9214f5404730203b8a466a580e6b2cfa105fa | 2,075 | cpp | C++ | qt/code/QEditVector.cpp | nvxden/cpp-lib | 472303879a7831f8e4144e882423f0be0e6b5f91 | [
"MIT"
] | null | null | null | qt/code/QEditVector.cpp | nvxden/cpp-lib | 472303879a7831f8e4144e882423f0be0e6b5f91 | [
"MIT"
] | null | null | null | qt/code/QEditVector.cpp | nvxden/cpp-lib | 472303879a7831f8e4144e882423f0be0e6b5f91 | [
"MIT"
] | null | null | null | #include <nvx/qt/QEditVector.hpp>
using namespace nvx;
QEditVector::QEditVector(Type type, QWidget *parent) : QWidget(parent)
{
// layout->addLayout(sizelay);
// layout->setMargin(0);
// sizelay->setMargin(0);
// sizelay->addWidget(sizelabel);
// sizelay->addWidget(sizeedit);
// sizeedit->setFixedWidth(60);
// co... | 17.584746 | 70 | 0.646265 | nvxden |
f7e9ec9db344b25b9553fee2fdad35f3de141b20 | 464 | hpp | C++ | renderboi/toolbox/mesh_generators/mesh_type.hpp | deqyra/GLSandbox | 40d641ebbf6af694e8640a584d283876d128748c | [
"MIT"
] | null | null | null | renderboi/toolbox/mesh_generators/mesh_type.hpp | deqyra/GLSandbox | 40d641ebbf6af694e8640a584d283876d128748c | [
"MIT"
] | null | null | null | renderboi/toolbox/mesh_generators/mesh_type.hpp | deqyra/GLSandbox | 40d641ebbf6af694e8640a584d283876d128748c | [
"MIT"
] | null | null | null | #ifndef RENDERBOI__TOOLBOX__MESH_GENERATORS__MESH_TYPE_HPP
#define RENDERBOI__TOOLBOX__MESH_GENERATORS__MESH_TYPE_HPP
namespace Renderboi
{
/// @brief Collection of literals describing the different shapes a mesh can
// come in. Each of these can be mapped to a concrete MeshGenerator subclass.
enum class MeshType
{
... | 23.2 | 77 | 0.797414 | deqyra |
f7ed264042caccf0b2df1c7d7acfbb8d9262ae47 | 918 | cpp | C++ | C_CPP/final/tree.cpp | dengchongsen/study_codes | 29d74c05d340117f76aafcc320766248a0f8386b | [
"MulanPSL-1.0"
] | null | null | null | C_CPP/final/tree.cpp | dengchongsen/study_codes | 29d74c05d340117f76aafcc320766248a0f8386b | [
"MulanPSL-1.0"
] | null | null | null | C_CPP/final/tree.cpp | dengchongsen/study_codes | 29d74c05d340117f76aafcc320766248a0f8386b | [
"MulanPSL-1.0"
] | null | null | null | #include<iostream>
#include<cstring>
#include<queue>
using namespace std;
char ans[99];
int lans = 0;
char ca[99];
char cb[99];
int la, lb;
void dfs(int index){
if( ca[index] == '\0' || ca[index] == '#') {
ans[lans++] = '#';
return ;
}
ans[lans++] = ca[index];
dfs( 2*index+1 );
dfs( 2*index+2);
}
... | 16.105263 | 46 | 0.446623 | dengchongsen |
f7ed53fd00e37b1c22771b8f2b0161564afed229 | 1,002 | cpp | C++ | Basic/Calculate Nth Fibonacci Number/SolutionByPiyush.cpp | rajethanm4/Programmers-Community | d16083eb0e84403159d999d4d1a8bbf652ca51f6 | [
"MIT"
] | 8 | 2020-11-07T10:29:21.000Z | 2020-12-26T16:54:13.000Z | Basic/Calculate Nth Fibonacci Number/SolutionByPiyush.cpp | rajethanm4/Programmers-Community | d16083eb0e84403159d999d4d1a8bbf652ca51f6 | [
"MIT"
] | null | null | null | Basic/Calculate Nth Fibonacci Number/SolutionByPiyush.cpp | rajethanm4/Programmers-Community | d16083eb0e84403159d999d4d1a8bbf652ca51f6 | [
"MIT"
] | 2 | 2019-12-18T13:06:19.000Z | 2021-01-05T18:47:18.000Z | #include<iostream>
using namespace std;
/*
Program Description: A positive number N is given to you and You need to calculate Nth Number in Fibonacci Series.
Input: Positive Number
Return: Nth number of the fibonacci series where N represents the given "Positive Number".
Solution Description: I will follow a recursive... | 33.4 | 184 | 0.706587 | rajethanm4 |
f7edf7b2b27d08a886d369f0bf63b52a5fe87b87 | 5,030 | cpp | C++ | PrinterContextNativeRuntimeComponent/PrinterProperty.cpp | Ganeshcoep/print-oem-samples | 0508c31e2881ee0d4379cd7ff830e0062e818a6c | [
"MIT"
] | 4 | 2020-03-25T20:39:20.000Z | 2021-04-20T16:11:17.000Z | PrinterContextNativeRuntimeComponent/PrinterProperty.cpp | Ganeshcoep/print-oem-samples | 0508c31e2881ee0d4379cd7ff830e0062e818a6c | [
"MIT"
] | 2 | 2017-12-13T16:44:29.000Z | 2018-11-14T16:01:37.000Z | PrinterContextNativeRuntimeComponent/PrinterProperty.cpp | Ganeshcoep/print-oem-samples | 0508c31e2881ee0d4379cd7ff830e0062e818a6c | [
"MIT"
] | 7 | 2019-06-13T23:15:42.000Z | 2020-08-05T14:57:37.000Z | /*
* Copyright (c) Microsoft Corporation. All rights reserved.
*
* THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF
* ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO
* THE IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A
* PARTICULAR PURPOSE.
*
* This class re... | 33.986486 | 105 | 0.541948 | Ganeshcoep |
f7ee4202ddab6e84df18e5c6803e277c8f5e1019 | 4,734 | hpp | C++ | include/helper/pose_helper.hpp | Tobi2001/asr_direct_search_manager | d24847477a37e29a1224f7261a27f91d2a2faebf | [
"BSD-3-Clause"
] | null | null | null | include/helper/pose_helper.hpp | Tobi2001/asr_direct_search_manager | d24847477a37e29a1224f7261a27f91d2a2faebf | [
"BSD-3-Clause"
] | null | null | null | include/helper/pose_helper.hpp | Tobi2001/asr_direct_search_manager | d24847477a37e29a1224f7261a27f91d2a2faebf | [
"BSD-3-Clause"
] | 2 | 2017-04-06T13:36:46.000Z | 2019-12-19T18:54:01.000Z | /**
Copyright (c) 2016, Borella Jocelyn, Karrenbauer Oliver, Meißner Pascal
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, thi... | 42.267857 | 755 | 0.764681 | Tobi2001 |
f7ef46b21439489c8caa208e04fb2175b74b4130 | 11,891 | cpp | C++ | MQUVCopyByVCol.cpp | devil-tamachan/MQUVCopyByVCol | d1a2d16df137a7759b7b13d2dcd2573c2ddf47d7 | [
"BSD-3-Clause"
] | null | null | null | MQUVCopyByVCol.cpp | devil-tamachan/MQUVCopyByVCol | d1a2d16df137a7759b7b13d2dcd2573c2ddf47d7 | [
"BSD-3-Clause"
] | null | null | null | MQUVCopyByVCol.cpp | devil-tamachan/MQUVCopyByVCol | d1a2d16df137a7759b7b13d2dcd2573c2ddf47d7 | [
"BSD-3-Clause"
] | null | null | null | //---------------------------------------------------------------------------
//
// MQUVCopyByVCol
//
// Copyright(C) 1999-2013, tetraface Inc.
//
// Sample for Object plug-in for deleting faces with reserving lines
// in the faces.
// Created DLL must be installed in "Plugins\Object" directory.
... | 26.307522 | 305 | 0.570516 | devil-tamachan |
f7f14c072123066b3863735cf881deb6aecd6db0 | 1,411 | cpp | C++ | lib/mayaUsd/undo/UsdUndoManager.cpp | smithw-adsk/maya-usd | 3a2278111e631423ffa9bae28158a6d2299a200e | [
"Apache-2.0"
] | null | null | null | lib/mayaUsd/undo/UsdUndoManager.cpp | smithw-adsk/maya-usd | 3a2278111e631423ffa9bae28158a6d2299a200e | [
"Apache-2.0"
] | 4 | 2020-05-04T19:21:26.000Z | 2020-05-08T15:30:38.000Z | lib/mayaUsd/undo/UsdUndoManager.cpp | smithw-adsk/maya-usd | 3a2278111e631423ffa9bae28158a6d2299a200e | [
"Apache-2.0"
] | 1 | 2020-05-04T22:14:09.000Z | 2020-05-04T22:14:09.000Z | //
// Copyright 2020 Autodesk
//
// 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 ... | 26.12963 | 92 | 0.744862 | smithw-adsk |
f7f4961c679525497c2980665598f0c615d4197d | 5,802 | inl | C++ | Core/DianYing/Include/Dy/Management/Inline/MWindowImpl.inl | liliilli/DianYing | 6e19f67e5d932e346a0ce63a648bed1a04ef618e | [
"MIT"
] | 4 | 2019-03-17T19:46:54.000Z | 2019-12-09T20:11:01.000Z | Core/DianYing/Include/Dy/Management/Inline/MWindowImpl.inl | liliilli/DianYing | 6e19f67e5d932e346a0ce63a648bed1a04ef618e | [
"MIT"
] | null | null | null | Core/DianYing/Include/Dy/Management/Inline/MWindowImpl.inl | liliilli/DianYing | 6e19f67e5d932e346a0ce63a648bed1a04ef618e | [
"MIT"
] | null | null | null | #ifndef GUARD_DY_MANAGEMENT_WINDOWMANAGER_IMPL_INL
#define GUARD_DY_MANAGEMENT_WINDOWMANAGER_IMPL_INL
///
/// MIT License
/// Copyright (c) 2018-2019 Jongmin Yun
///
/// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
/// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY... | 35.814815 | 121 | 0.715615 | liliilli |
f7f58db89fe142ca9d96f959f2d7e378874a53fc | 7,046 | cpp | C++ | emulator/src/devices/machine/vt82c496.cpp | rjw57/tiw-computer | 5ef1c79893165b8622d1114d81cd0cded58910f0 | [
"MIT"
] | 1 | 2022-01-15T21:38:38.000Z | 2022-01-15T21:38:38.000Z | emulator/src/devices/machine/vt82c496.cpp | rjw57/tiw-computer | 5ef1c79893165b8622d1114d81cd0cded58910f0 | [
"MIT"
] | null | null | null | emulator/src/devices/machine/vt82c496.cpp | rjw57/tiw-computer | 5ef1c79893165b8622d1114d81cd0cded58910f0 | [
"MIT"
] | null | null | null | // license:BSD-3-Clause
// copyright-holders:Barry Rodewald
/*
VIA VT82C496G "Green PC" system chipset
*/
#include "emu.h"
#include "vt82c496.h"
/***************************************************************************
IMPLEMENTATION
***********************************************************************... | 31.039648 | 159 | 0.710048 | rjw57 |
f7f5e739d6d881d28940dd7fe11e1b1508d19b4a | 749 | cpp | C++ | Sources/LibRT/source/RTBufferDescriptor.cpp | Rominitch/MouCaLab | d8c24de479b1bc11509df8456e0071d394fbeab9 | [
"Unlicense"
] | null | null | null | Sources/LibRT/source/RTBufferDescriptor.cpp | Rominitch/MouCaLab | d8c24de479b1bc11509df8456e0071d394fbeab9 | [
"Unlicense"
] | null | null | null | Sources/LibRT/source/RTBufferDescriptor.cpp | Rominitch/MouCaLab | d8c24de479b1bc11509df8456e0071d394fbeab9 | [
"Unlicense"
] | null | null | null | /// https://github.com/Rominitch/MouCaLab
/// \author Rominitch
/// \license No license
#include "Dependencies.h"
#include <LibRT/include/RTBufferDescriptor.h>
namespace RT
{
ComponentDescriptor::ComponentDescriptor(const uint64_t nbComponents, const Type formatType, const ComponentUsage componentUsage, const bool ... | 32.565217 | 155 | 0.781041 | Rominitch |
f7f811321f9e8fc5459641b58262b596b9d77852 | 2,524 | cpp | C++ | application/game.cpp | YoeyT/IPASS-SSD1351-Tron | 9f01b8ac84fe3304bcc711dd43e3211b178bb9c0 | [
"BSL-1.0"
] | null | null | null | application/game.cpp | YoeyT/IPASS-SSD1351-Tron | 9f01b8ac84fe3304bcc711dd43e3211b178bb9c0 | [
"BSL-1.0"
] | null | null | null | application/game.cpp | YoeyT/IPASS-SSD1351-Tron | 9f01b8ac84fe3304bcc711dd43e3211b178bb9c0 | [
"BSL-1.0"
] | null | null | null | #include "game.hpp"
void StartGame(SSD1351& screen, hwlib::pin_in& upKey, hwlib::pin_in& downKey, hwlib::pin_in& leftKey, hwlib::pin_in& rightKey)
{
//setup
screen.Init();
screen.FillScreen(0);
//player
bike player(12, 12, color(0, 0xFF, 0xFF));
player.Draw(screen);
//AI
AIBike AI(111... | 26.020619 | 126 | 0.596276 | YoeyT |
f7f9223443bfb7b281cba54c2b4da1ac000e67dd | 267 | cpp | C++ | cppabi/src/adapterold.cpp | ivanmurashko/articles | 522db3ad21e96084490acd39a146a335763e5beb | [
"MIT"
] | 1 | 2019-09-27T08:59:55.000Z | 2019-09-27T08:59:55.000Z | cppabi/src/adapterold.cpp | ivanmurashko/articles | 522db3ad21e96084490acd39a146a335763e5beb | [
"MIT"
] | null | null | null | cppabi/src/adapterold.cpp | ivanmurashko/articles | 522db3ad21e96084490acd39a146a335763e5beb | [
"MIT"
] | null | null | null | #define _GLIBCXX_USE_CXX11_ABI 0
#include "adapter.h"
#include "old.h"
namespace testadapter {
std::vector<char> func(std::vector<char> input){
auto res = test::func(std::string(input.data(), input.size()));
return std::vector<char>(res.begin(), res.end());
}
}
| 24.272727 | 65 | 0.692884 | ivanmurashko |
f7fab0ab8126e6982361b4bbd2a0ea4f501bb302 | 5,085 | cpp | C++ | tests/lexy/dsl/capture.cpp | netcan/lexy | 775e3d6bf1169ce13b08598d774e707c253f0792 | [
"BSL-1.0"
] | null | null | null | tests/lexy/dsl/capture.cpp | netcan/lexy | 775e3d6bf1169ce13b08598d774e707c253f0792 | [
"BSL-1.0"
] | null | null | null | tests/lexy/dsl/capture.cpp | netcan/lexy | 775e3d6bf1169ce13b08598d774e707c253f0792 | [
"BSL-1.0"
] | null | null | null | // Copyright (C) 2020 Jonathan Müller <jonathanmueller.dev@gmail.com>
// This file is subject to the license terms in the LICENSE file
// found in the top-level directory of this distribution.
#include <lexy/dsl/capture.hpp>
#include "verify.hpp"
#include <lexy/callback.hpp>
#include <lexy/dsl/label.hpp>
#include <le... | 31.006098 | 96 | 0.532153 | netcan |
790079afd1a1eaf04f5a1d286c1994e5d4839518 | 94 | hpp | C++ | include/Towers/Towers.hpp | sarahkittyy/BloonsTDS | 07a00f01db49077f0a3c555fc629de4775f11124 | [
"MIT"
] | null | null | null | include/Towers/Towers.hpp | sarahkittyy/BloonsTDS | 07a00f01db49077f0a3c555fc629de4775f11124 | [
"MIT"
] | null | null | null | include/Towers/Towers.hpp | sarahkittyy/BloonsTDS | 07a00f01db49077f0a3c555fc629de4775f11124 | [
"MIT"
] | null | null | null | #pragma once
#include "Towers/Manager.hpp"
#include "Towers/Tower.hpp"
namespace Towers
{
} | 10.444444 | 29 | 0.734043 | sarahkittyy |
7901240c1580bfaa28c775b4e754cdbd074a422a | 270 | cpp | C++ | frontend/typing/types/meta.cpp | NicolaiLS/becarre | cf23e80041f856f50b9f96c087819780dfe1792c | [
"MIT"
] | null | null | null | frontend/typing/types/meta.cpp | NicolaiLS/becarre | cf23e80041f856f50b9f96c087819780dfe1792c | [
"MIT"
] | null | null | null | frontend/typing/types/meta.cpp | NicolaiLS/becarre | cf23e80041f856f50b9f96c087819780dfe1792c | [
"MIT"
] | null | null | null | #include <becarre/frontend/typing/types/meta.hpp>
#include <becarre/frontend/typing/types.hpp>
namespace becarre::frontend::typing::types
{
Type meta(Type const & value) noexcept
{
return Type(types::Meta{value});
}
} // namespace becarre::frontend::typing::types
| 19.285714 | 49 | 0.740741 | NicolaiLS |
7903fcb0a505e1afe2adbec3030a92f354b3c8dd | 36,384 | cpp | C++ | plugins/Rembed/Rembed.cpp | oxhead/HPCC-Platform | 62e092695542a9bbea1bb3672f0d1ff572666cfc | [
"Apache-2.0"
] | null | null | null | plugins/Rembed/Rembed.cpp | oxhead/HPCC-Platform | 62e092695542a9bbea1bb3672f0d1ff572666cfc | [
"Apache-2.0"
] | null | null | null | plugins/Rembed/Rembed.cpp | oxhead/HPCC-Platform | 62e092695542a9bbea1bb3672f0d1ff572666cfc | [
"Apache-2.0"
] | null | null | null | /*##############################################################################
HPCC SYSTEMS software Copyright (C) 2015 HPCC Systems®.
Licensed under the GPL, Version 2.0 or later
you may not use this file except in compliance with the License.
Unless required by applicable law or agreed to in writing, softwar... | 32.572963 | 152 | 0.587456 | oxhead |
790447cc78fa125da041f588d6d0229913035315 | 1,628 | cpp | C++ | leetcode.com/0710 Random Pick with Blacklist/main.cpp | sky-bro/AC | 29bfa3f13994612887e18065fa6e854b9a29633d | [
"MIT"
] | 1 | 2020-08-20T11:02:49.000Z | 2020-08-20T11:02:49.000Z | leetcode.com/0710 Random Pick with Blacklist/main.cpp | sky-bro/AC | 29bfa3f13994612887e18065fa6e854b9a29633d | [
"MIT"
] | null | null | null | leetcode.com/0710 Random Pick with Blacklist/main.cpp | sky-bro/AC | 29bfa3f13994612887e18065fa6e854b9a29633d | [
"MIT"
] | 1 | 2022-01-01T23:23:13.000Z | 2022-01-01T23:23:13.000Z | #include <iostream>
#include <vector>
#include <random>
#include <unordered_map>
using namespace std;
// ref: Java O(B) / O(1), HashMap
// https://leetcode.com/problems/random-pick-with-blacklist/discuss/144624/Java-O(B)-O(1)-HashMap
// this should be the right way to approch this problem
// I don't think other binar... | 27.59322 | 97 | 0.562039 | sky-bro |
79071baa18a4f9615d7747c08a4ed592dbb72c5f | 132 | cpp | C++ | Modules/Nulstar/NulstarMain/NPluginManger.cpp | Berzeck/Nulstar | d3a7f59ee617e045966071d19c39d1ab63b23114 | [
"MIT"
] | 17 | 2018-08-13T23:37:31.000Z | 2019-04-25T18:31:22.000Z | Modules/Nulstar/NulstarMain/NPluginManger.cpp | Berzeck/Nulstar-v0 | d3a7f59ee617e045966071d19c39d1ab63b23114 | [
"MIT"
] | 7 | 2018-09-03T22:43:15.000Z | 2019-07-14T06:57:16.000Z | Modules/Nulstar/NulstarMain/NPluginManger.cpp | CCC-NULS/Nulstar | f48d869254f4adb60e7c95f0e313bfb44ab8dc84 | [
"MIT"
] | 7 | 2018-09-07T10:05:08.000Z | 2020-02-03T12:18:49.000Z | #include "NPluginManger.h"
NPluginManger::NPluginManger(QObject* parent)
: QObject(parent)
{
}
void NPluginManger::scan()
{
}
| 12 | 45 | 0.712121 | Berzeck |
790e3b95739046c5c4aa15e12e5f987bc2b75c5f | 1,501 | cpp | C++ | examples/NUCLEO-G070RB/ADC/Main.cpp | marangisto/HAL | fa56b539f64b277fa122a010e4ee643463f58498 | [
"MIT"
] | 2 | 2019-09-12T04:12:16.000Z | 2020-09-23T19:13:06.000Z | examples/NUCLEO-G070RB/ADC/Main.cpp | marangisto/HAL | fa56b539f64b277fa122a010e4ee643463f58498 | [
"MIT"
] | 2 | 2019-09-10T13:47:50.000Z | 2020-02-24T03:27:47.000Z | examples/NUCLEO-G070RB/ADC/Main.cpp | marangisto/HAL | fa56b539f64b277fa122a010e4ee643463f58498 | [
"MIT"
] | 3 | 2019-08-31T12:58:28.000Z | 2020-03-26T22:56:34.000Z | #include <timer.h>
#include <dac.h>
#include <adc.h>
#include <dma.h>
using hal::sys_tick;
using hal::sys_clock;
using namespace hal::gpio;
using namespace hal::timer;
using namespace hal::adc;
using namespace hal::dma;
typedef hal::timer::timer_t<3> trig;
typedef hal::dac::dac_t<1> dac;
typedef hal::dma::dma_t<1> dm... | 22.402985 | 62 | 0.655563 | marangisto |
7912e35c058c92610901e5d8cbd7a53cc35be4be | 1,965 | cpp | C++ | engine/source/Actions/ActionParallel.cpp | MaxSigma/SGEngine | 68a01012911b8d91c9ff6d960a0f7d1163940e09 | [
"MIT"
] | 11 | 2020-10-21T15:03:41.000Z | 2020-11-03T09:15:28.000Z | engine/source/Actions/ActionParallel.cpp | MaxSigma/SGEngine | 68a01012911b8d91c9ff6d960a0f7d1163940e09 | [
"MIT"
] | null | null | null | engine/source/Actions/ActionParallel.cpp | MaxSigma/SGEngine | 68a01012911b8d91c9ff6d960a0f7d1163940e09 | [
"MIT"
] | 1 | 2020-10-27T00:13:41.000Z | 2020-10-27T00:13:41.000Z | /////////////////////////////////////////////////////
// 2016 © Max Gittel //
/////////////////////////////////////////////////////
// SGEngine
#include "ActionParallel.h"
namespace sge {
ActionParallel::ActionParallel(){
_time=0;
}
ActionParalle... | 23.674699 | 73 | 0.410178 | MaxSigma |
79152e544084796175ebb9289bda22bdfce58aae | 1,733 | hpp | C++ | cxx/graphidx/bits/weights.hpp | EQt/graphidx | 9716488cf29f6235072fc920fa1a473bf88e954f | [
"MIT"
] | 4 | 2020-04-03T15:18:30.000Z | 2022-01-06T15:22:48.000Z | cxx/graphidx/bits/weights.hpp | EQt/graphidx | 9716488cf29f6235072fc920fa1a473bf88e954f | [
"MIT"
] | null | null | null | cxx/graphidx/bits/weights.hpp | EQt/graphidx | 9716488cf29f6235072fc920fa1a473bf88e954f | [
"MIT"
] | null | null | null | #pragma once
#include <cstddef> // for size_t
/** A value that cannot be assigned a new value */
template <typename T = double>
struct Ignore
{
const T val;
const T operator=(const T) const { return val; }
bool operator==(const T other) const { return other == val; }
explicit operator T() const {... | 17.505051 | 70 | 0.636469 | EQt |
79197bd50f1a481121720400a0547845e64b525d | 233 | cpp | C++ | atcoder/92B.cpp | freedomDR/coding | 310a68077de93ef445ccd2929e90ba9c22a9b8eb | [
"MIT"
] | null | null | null | atcoder/92B.cpp | freedomDR/coding | 310a68077de93ef445ccd2929e90ba9c22a9b8eb | [
"MIT"
] | null | null | null | atcoder/92B.cpp | freedomDR/coding | 310a68077de93ef445ccd2929e90ba9c22a9b8eb | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
using namespace std;
int main()
{
int n,d,x,ans;
cin>>n>>d>>x;
ans = 0;
while(n--){
int a;
cin>>a;
ans += ((d-1)/a + 1);
}
cout<<ans+x<<endl;
return 0;
}
| 12.944444 | 29 | 0.424893 | freedomDR |
791a8064653daf73b14ccdc4aa8ddcac77f432c1 | 159,543 | cpp | C++ | cisco-ios-xe/ydk/models/cisco_ios_xe/CISCO_UNIFIED_FIREWALL_MIB.cpp | CiscoDevNet/ydk-cpp | ef7d75970f2ef1154100e0f7b0a2ee823609b481 | [
"ECL-2.0",
"Apache-2.0"
] | 17 | 2016-12-02T05:45:49.000Z | 2022-02-10T19:32:54.000Z | cisco-ios-xe/ydk/models/cisco_ios_xe/CISCO_UNIFIED_FIREWALL_MIB.cpp | CiscoDevNet/ydk-cpp | ef7d75970f2ef1154100e0f7b0a2ee823609b481 | [
"ECL-2.0",
"Apache-2.0"
] | 2 | 2017-03-27T15:22:38.000Z | 2019-11-05T08:30:16.000Z | cisco-ios-xe/ydk/models/cisco_ios_xe/CISCO_UNIFIED_FIREWALL_MIB.cpp | CiscoDevNet/ydk-cpp | ef7d75970f2ef1154100e0f7b0a2ee823609b481 | [
"ECL-2.0",
"Apache-2.0"
] | 11 | 2016-12-02T05:45:52.000Z | 2019-11-07T08:28:17.000Z |
#include <sstream>
#include <iostream>
#include <ydk/entity_util.hpp>
#include "bundle_info.hpp"
#include "generated_entity_lookup.hpp"
#include "CISCO_UNIFIED_FIREWALL_MIB.hpp"
using namespace ydk;
namespace cisco_ios_xe {
namespace CISCO_UNIFIED_FIREWALL_MIB {
CISCOUNIFIEDFIREWALLMIB::CISCOUNIFIEDFIREWALLMIB()
... | 41.396731 | 786 | 0.761224 | CiscoDevNet |
791a8085867aca9e5606d061a6769ac8bb911637 | 2,066 | cpp | C++ | Tropelet.cpp | mls-m5/NoMaintenance | c54c702b658c6a3abe36ff2d175b5c923d4ca55f | [
"Apache-2.0"
] | null | null | null | Tropelet.cpp | mls-m5/NoMaintenance | c54c702b658c6a3abe36ff2d175b5c923d4ca55f | [
"Apache-2.0"
] | null | null | null | Tropelet.cpp | mls-m5/NoMaintenance | c54c702b658c6a3abe36ff2d175b5c923d4ca55f | [
"Apache-2.0"
] | null | null | null | /*
* Tropelet.cpp
*
* Created on: 6 feb 2013
* Author: mattias
*/
#include "Tropelet.h"
#include "Screen.h"
struct Position{
double X, Y;
};
Tropelet::Tropelet() {
// TODO Auto-generated constructor stub
}
Tropelet::~Tropelet() {
// TODO Auto-generated destructor stub
}
void Tropelet::Fire(double X,... | 29.098592 | 89 | 0.580348 | mls-m5 |
791d3950b76d2178ea875ff6285ee47bc895dd2c | 3,959 | cpp | C++ | source/net/tcp/sockettcpserver.cpp | lwIoT/lwIoT | 07d2a3ba962aef508911e453268427b006c57701 | [
"Apache-2.0"
] | 1 | 2019-07-05T21:39:23.000Z | 2019-07-05T21:39:23.000Z | source/net/tcp/sockettcpserver.cpp | lwIoT/lwiot-core | 07d2a3ba962aef508911e453268427b006c57701 | [
"Apache-2.0"
] | null | null | null | source/net/tcp/sockettcpserver.cpp | lwIoT/lwiot-core | 07d2a3ba962aef508911e453268427b006c57701 | [
"Apache-2.0"
] | null | null | null | /*
* TCP server wrapper
*
* @author Michel Megens
* @email dev@bietje.net
*/
#include <stdlib.h>
#include <stdio.h>
#include <lwiot.h>
#include <lwiot/types.h>
#include <lwiot/log.h>
#include <lwiot/error.h>
#include <lwiot/stl/string.h>
#include <lwiot/stream.h>
#include <lwiot/network/ipaddr... | 22.241573 | 119 | 0.675423 | lwIoT |
791f9f712e7bfca11b7601af6cfffbcd9ae19c64 | 3,784 | hpp | C++ | include/navigation.hpp | maarufvazifdar/shamazon_robot | ffdbacf649dcac604e5366e9ac8ae3b519b9599d | [
"BSD-3-Clause"
] | null | null | null | include/navigation.hpp | maarufvazifdar/shamazon_robot | ffdbacf649dcac604e5366e9ac8ae3b519b9599d | [
"BSD-3-Clause"
] | 1 | 2021-12-13T21:15:09.000Z | 2021-12-13T21:15:09.000Z | include/navigation.hpp | maarufvazifdar/shamazon_robot | ffdbacf649dcac604e5366e9ac8ae3b519b9599d | [
"BSD-3-Clause"
] | 8 | 2021-11-28T00:00:03.000Z | 2021-12-13T18:59:55.000Z | /**
* BSD-3 Clause
*
* Copyright (c) 2021 Maaruf Vazifdar, Maitreya Kulkarni, Pratik Bhujnbal
*
* 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 ... | 29.795276 | 80 | 0.701903 | maarufvazifdar |
7920a3179398f183c0a1fd5e77ff82528aa06912 | 2,355 | cpp | C++ | PhysicsSandbox/SandboxGeometry/Shapes2d/SatShape2d.cpp | jodavis42/PhysicsSandbox | 3119caaa77721041440cdc1b3cf96d4bd9e2d98b | [
"MIT"
] | 1 | 2022-03-26T21:08:19.000Z | 2022-03-26T21:08:19.000Z | PhysicsSandbox/SandboxGeometry/Shapes2d/SatShape2d.cpp | jodavis42/PhysicsSandbox | 3119caaa77721041440cdc1b3cf96d4bd9e2d98b | [
"MIT"
] | null | null | null | PhysicsSandbox/SandboxGeometry/Shapes2d/SatShape2d.cpp | jodavis42/PhysicsSandbox | 3119caaa77721041440cdc1b3cf96d4bd9e2d98b | [
"MIT"
] | null | null | null | #include "Precompiled.hpp"
#include "SatShape2d.hpp"
#include "SandboxGeometry/Shapes2d/Line2d.hpp"
namespace SandboxGeometry
{
//-------------------------------------------------------------------SatShape2d
size_t SatShape2d::PointCount() const
{
return mPoints.Size();
}
size_t SatShape2d::EdgeCount() const
{
... | 27.068966 | 127 | 0.693418 | jodavis42 |
792286095a28e6b42b9bd4b8b9efe1c808a9d413 | 6,038 | cpp | C++ | LibXDK/src/_BaseXValue.cpp | sim9108/SDKS | 2823124fa0a22f8a77d131e7a2fb7f4aba59129c | [
"MIT"
] | 2 | 2015-03-23T01:08:49.000Z | 2015-03-23T02:28:17.000Z | LibXDK/src/_BaseXValue.cpp | sim9108/SDKS | 2823124fa0a22f8a77d131e7a2fb7f4aba59129c | [
"MIT"
] | null | null | null | LibXDK/src/_BaseXValue.cpp | sim9108/SDKS | 2823124fa0a22f8a77d131e7a2fb7f4aba59129c | [
"MIT"
] | null | null | null | #include <LibXtra/_BaseXValue.h>
_BaseXValue::_BaseXValue(_MOAFactory* mobj, const char* title)
:refcnt_(1), moa_obj_{ mobj }, utils_{ moa_obj_ }, xtra_name_{ title }
{
this->moa_obj_->AddRef();
++DllgXtraInterfaceCount;
}
_BaseXValue::~_BaseXValue(void)
{
this->moa_obj_->Release();
--DllgXtraInterfaceCount;
}
... | 22.784906 | 147 | 0.753395 | sim9108 |
79237159bf0cf8b68cf304d0e5157ebb636176e3 | 5,753 | cpp | C++ | android/android_9/frameworks/native/opengl/libs/EGL/FileBlobCache.cpp | yakuizhao/intel-vaapi-driver | b2bb0383352694941826543a171b557efac2219b | [
"MIT"
] | null | null | null | android/android_9/frameworks/native/opengl/libs/EGL/FileBlobCache.cpp | yakuizhao/intel-vaapi-driver | b2bb0383352694941826543a171b557efac2219b | [
"MIT"
] | null | null | null | android/android_9/frameworks/native/opengl/libs/EGL/FileBlobCache.cpp | yakuizhao/intel-vaapi-driver | b2bb0383352694941826543a171b557efac2219b | [
"MIT"
] | null | null | null | /*
** Copyright 2017, The Android Open Source Project
**
** Licensed under the Apache License, Version 2.0 (the "License");
** you may not use this file except in compliance with the License.
** You may obtain a copy of the License at
**
** http://www.apache.org/licenses/LICENSE-2.0
**
** Unless required b... | 30.764706 | 89 | 0.51434 | yakuizhao |
7924f71f624649dd618883c3138e8cfb96b4f59d | 6,030 | cpp | C++ | lib/Analysis/Memory/BitMemoryTrait.cpp | yukatan1701/tsar | a6f95cdaeb117ccd5fcb775b471b1aa17c45f4e8 | [
"Apache-2.0"
] | 14 | 2019-11-04T15:03:40.000Z | 2021-09-07T17:29:40.000Z | lib/Analysis/Memory/BitMemoryTrait.cpp | yukatan1701/tsar | a6f95cdaeb117ccd5fcb775b471b1aa17c45f4e8 | [
"Apache-2.0"
] | 11 | 2019-11-29T21:18:12.000Z | 2021-12-22T21:36:40.000Z | lib/Analysis/Memory/BitMemoryTrait.cpp | yukatan1701/tsar | a6f95cdaeb117ccd5fcb775b471b1aa17c45f4e8 | [
"Apache-2.0"
] | 17 | 2019-10-15T13:56:35.000Z | 2021-10-20T17:21:14.000Z | //=== BitMemoryTrait.cpp Bitwise Representation of Memory Traits *- C++ -*===//
//
// Traits Static Analyzer (SAPFOR)
//
// Copyright 2018 DVM System Group
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// ... | 32.95082 | 80 | 0.626368 | yukatan1701 |
7929cea169311bc2fde7346938709643748fc68e | 2,782 | hpp | C++ | hotspot/src/share/vm/utilities/ticks.inline.hpp | dbac/jdk8 | abfce42ff6d4b8b77d622157519ecd211ba0aa8f | [
"MIT"
] | 1 | 2020-12-26T04:52:15.000Z | 2020-12-26T04:52:15.000Z | hotspot/src/share/vm/utilities/ticks.inline.hpp | dbac/jdk8 | abfce42ff6d4b8b77d622157519ecd211ba0aa8f | [
"MIT"
] | 1 | 2020-12-26T04:57:19.000Z | 2020-12-26T04:57:19.000Z | hotspot/src/share/vm/utilities/ticks.inline.hpp | dbac/jdk8 | abfce42ff6d4b8b77d622157519ecd211ba0aa8f | [
"MIT"
] | 1 | 2021-12-06T01:13:18.000Z | 2021-12-06T01:13:18.000Z | /*
* Copyright (c) 2013, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Softwa... | 28.387755 | 76 | 0.719267 | dbac |
7929fcdd5ac7f3a03fa9080aae7dc118b8fd1d84 | 183 | cpp | C++ | src/model/Eph.cpp | guilherme-araujo/gsop-dist | 15da82ffa8add74cc61b95d3544ec3aaa0e71a32 | [
"MIT"
] | null | null | null | src/model/Eph.cpp | guilherme-araujo/gsop-dist | 15da82ffa8add74cc61b95d3544ec3aaa0e71a32 | [
"MIT"
] | null | null | null | src/model/Eph.cpp | guilherme-araujo/gsop-dist | 15da82ffa8add74cc61b95d3544ec3aaa0e71a32 | [
"MIT"
] | null | null | null | #include "Eph.h"
Eph::Eph(double b){
this->bonus = b;
this->time = 0;
this->type = 'A';
}
Eph::Eph(double b, char t){
this->bonus = b;
this->time = 0;
this->type = t;
}
| 13.071429 | 27 | 0.535519 | guilherme-araujo |
792b8821b0ac064577728047657f8979b7885d7b | 885 | cpp | C++ | CONTESTS/HACKER RANK/Multiply.cpp | priojeetpriyom/competitive-programming | 0024328972d4e14c04c0fd5d6dd3cdf131d84f9d | [
"MIT"
] | 1 | 2021-11-22T02:26:43.000Z | 2021-11-22T02:26:43.000Z | CONTESTS/HACKER RANK/Multiply.cpp | priojeetpriyom/competitive-programming | 0024328972d4e14c04c0fd5d6dd3cdf131d84f9d | [
"MIT"
] | null | null | null | CONTESTS/HACKER RANK/Multiply.cpp | priojeetpriyom/competitive-programming | 0024328972d4e14c04c0fd5d6dd3cdf131d84f9d | [
"MIT"
] | null | null | null | #include <iostream>
#include <cstdio>
#include <string.h>
#include <math.h>
#include <algorithm>
#include <stack>
#include <queue>
#include <climits>
#define INT_MAX;
using namespace std;
int main() {
int n;
int q,x;
while (scanf("%d %d",&n,&q)==2) {
while(q--)
{
long l... | 18.829787 | 45 | 0.39322 | priojeetpriyom |
792b9d0a3a28be8eaf1d3b49354f7a1da7d2f58f | 19,951 | cxx | C++ | src/external/marray/test/indexed_dpd_varray.cxx | xrq-phys/tblis | fc9be95ddb7906853c85931b5029b3011fe60587 | [
"BSD-3-Clause"
] | null | null | null | src/external/marray/test/indexed_dpd_varray.cxx | xrq-phys/tblis | fc9be95ddb7906853c85931b5029b3011fe60587 | [
"BSD-3-Clause"
] | null | null | null | src/external/marray/test/indexed_dpd_varray.cxx | xrq-phys/tblis | fc9be95ddb7906853c85931b5029b3011fe60587 | [
"BSD-3-Clause"
] | null | null | null | #include "gtest/gtest.h"
#include "indexed_dpd_varray.hpp"
using namespace std;
using namespace MArray;
static dpd_layout layouts[6] =
{
PREFIX_ROW_MAJOR,
PREFIX_COLUMN_MAJOR,
BLOCKED_ROW_MAJOR,
BLOCKED_COLUMN_MAJOR,
BALANCED_ROW_MAJOR,
BALANCED_COLUMN_MAJOR,
};
static dim_vector perms[6] =
... | 33.031457 | 105 | 0.478272 | xrq-phys |
792eef6bec38f4ac702f6857dfe889116b1e3181 | 8,757 | cpp | C++ | data/121.cpp | TianyiChen/rdcpp-data | 75c6868c876511e3ce143fdc3c08ddd74c7aa4ea | [
"MIT"
] | null | null | null | data/121.cpp | TianyiChen/rdcpp-data | 75c6868c876511e3ce143fdc3c08ddd74c7aa4ea | [
"MIT"
] | null | null | null | data/121.cpp | TianyiChen/rdcpp-data | 75c6868c876511e3ce143fdc3c08ddd74c7aa4ea | [
"MIT"
] | null | null | null | int v, g4U , WW
, WtYKC,Yu,Fuf /*7q*/,aDKMr, U3 ,
fQ,
Hnl8
,
kII , wd,kAx,d5,dt83
,
Ax
,//M
m,
se
,jX ,
hX6 ,
pNn,tuaf, W4
,
HD,
Pr,//e
yIm9
,P7A ,/*d*/esSeWz ,Yi8NA, tT ,
k1E6,CM, Wp ,eGQ/*HZ*/, S, LLm
, mO ,tnO3//6
, PRO, k9td, GCN; void
f_f0(){
{ { return
;
return ; /*wtv7*... | 10.588875 | 82 | 0.444787 | TianyiChen |
79304246b4aa17ff848ca3fb5d38677493231890 | 4,242 | cpp | C++ | src/hooks/VRController.cpp | Lythium4848/SmoothedController | 97fb5cb547637f41565b563a13dc6a1e90f1e51f | [
"MIT"
] | null | null | null | src/hooks/VRController.cpp | Lythium4848/SmoothedController | 97fb5cb547637f41565b563a13dc6a1e90f1e51f | [
"MIT"
] | null | null | null | src/hooks/VRController.cpp | Lythium4848/SmoothedController | 97fb5cb547637f41565b563a13dc6a1e90f1e51f | [
"MIT"
] | null | null | null | #include "SmoothedController.hpp"
#include "SmoothedControllerConfig.hpp"
#include "Wrapper.hpp"
#include <map>
#include "GlobalNamespace/IVRPlatformHelper.hpp"
#include "GlobalNamespace/VRController.hpp"
#include "GlobalNamespace/VRControllerTransformOffset.hpp"
#include "System/Math.hpp"
#include "UnityEngine/Mathf... | 42.42 | 183 | 0.7157 | Lythium4848 |
79310b5ae511e49799a3979344f4ec74764770f6 | 1,217 | cpp | C++ | codeforces/C - Meme Problem/Accepted.cpp | kzvd4729/Problem-Solving | 13b105e725a4c2f8db7fecc5d7a8f932b9fef4ab | [
"MIT"
] | 1 | 2022-02-11T16:55:36.000Z | 2022-02-11T16:55:36.000Z | codeforces/C - Meme Problem/Accepted.cpp | kzvd4729/Problem-Solving | 13b105e725a4c2f8db7fecc5d7a8f932b9fef4ab | [
"MIT"
] | null | null | null | codeforces/C - Meme Problem/Accepted.cpp | kzvd4729/Problem-Solving | 13b105e725a4c2f8db7fecc5d7a8f932b9fef4ab | [
"MIT"
] | null | null | null | /****************************************************************************************
* @author: * kzvd4729 created: Nov/12/2018 21:14
* solution_verdict: Accepted language: GNU C++14
* run... | 28.97619 | 111 | 0.384552 | kzvd4729 |
7932a58c90fe486bea90a3f67d3fbe32025c38d3 | 11,397 | cpp | C++ | CodeGenere/photogram/cEqAppui_X_C2MPolyn7.cpp | kikislater/micmac | 3009dbdad62b3ad906ec882b74b85a3db86ca755 | [
"CECILL-B"
] | 451 | 2016-11-25T09:40:28.000Z | 2022-03-30T04:20:42.000Z | CodeGenere/photogram/cEqAppui_X_C2MPolyn7.cpp | kikislater/micmac | 3009dbdad62b3ad906ec882b74b85a3db86ca755 | [
"CECILL-B"
] | 143 | 2016-11-25T20:35:57.000Z | 2022-03-01T11:58:02.000Z | CodeGenere/photogram/cEqAppui_X_C2MPolyn7.cpp | kikislater/micmac | 3009dbdad62b3ad906ec882b74b85a3db86ca755 | [
"CECILL-B"
] | 139 | 2016-12-02T10:26:21.000Z | 2022-03-10T19:40:29.000Z | // File Automatically generated by eLiSe
#include "general/all.h"
#include "private/all.h"
#include "cEqAppui_X_C2MPolyn7.h"
cEqAppui_X_C2MPolyn7::cEqAppui_X_C2MPolyn7():
cElCompiledFonc(1)
{
AddIntRef (cIncIntervale("Intr",0,69));
AddIntRef (cIncIntervale("Orient",69,75));
Close(false);
}
void cEqApp... | 42.211111 | 1,123 | 0.697903 | kikislater |
a6a89fa8355feac8f43f05f3960f766db13c8997 | 489 | cpp | C++ | src/Source/Chunks/Shex/SyncFlags.cpp | tgjones/slimshader-cpp | a1833e2eccf32cccfe33aa7613772503eca963ee | [
"MIT"
] | 20 | 2015-03-29T02:14:03.000Z | 2021-11-14T12:27:02.000Z | src/Source/Chunks/Shex/SyncFlags.cpp | tgjones/slimshader-cpp | a1833e2eccf32cccfe33aa7613772503eca963ee | [
"MIT"
] | null | null | null | src/Source/Chunks/Shex/SyncFlags.cpp | tgjones/slimshader-cpp | a1833e2eccf32cccfe33aa7613772503eca963ee | [
"MIT"
] | 12 | 2015-05-04T06:39:10.000Z | 2022-02-23T06:48:04.000Z | #include "PCH.h"
#include "SyncFlags.h"
#include "Decoder.h"
using namespace std;
using namespace SlimShader;
string SlimShader::ToString(SyncFlags value)
{
string result;
if (HasFlag(value, SyncFlags::UnorderedAccessViewGlobal))
result += "_uglobal";
if (HasFlag(value, SyncFlags::UnorderedAccessViewGroup))
... | 21.26087 | 58 | 0.728016 | tgjones |
a6a8ceb77adb2c3b96880b5d88bdb570f2046c04 | 1,660 | cpp | C++ | cpu_version/convert/bvec_line.cpp | takanokage/Product-Quantization-Tree | 2651ba871100ff4c0ccef42ba57e871fbc6181f8 | [
"MIT"
] | 98 | 2016-07-18T07:38:07.000Z | 2022-02-02T15:28:01.000Z | cpu_version/convert/bvec_line.cpp | takanokage/Product-Quantization-Tree | 2651ba871100ff4c0ccef42ba57e871fbc6181f8 | [
"MIT"
] | 14 | 2016-08-03T08:43:36.000Z | 2017-11-02T14:39:41.000Z | cpu_version/convert/bvec_line.cpp | takanokage/Product-Quantization-Tree | 2651ba871100ff4c0ccef42ba57e871fbc6181f8 | [
"MIT"
] | 36 | 2016-07-27T13:47:12.000Z | 2020-07-13T14:34:46.000Z | #include <iostream>
#include <fstream>
#include <string>
#include <stdexcept>
#include <cassert>
#include "../helper.hpp"
#include "../filehelper.hpp"
#include "../iterator/memiterator.hpp"
#include "../iterator/bvecsiterator.hpp"
using namespace std;
int main(int argc, char const *argv[]) {
int line = atoi(arg... | 24.776119 | 94 | 0.535542 | takanokage |
a6ad7d04af16f841c3f6d589f8cfa2d216c17457 | 2,226 | cpp | C++ | deform_control/external_libs/OpenSceneGraph-2.8.5/examples/osgwidgetstyled/osgwidgetstyled.cpp | UM-ARM-Lab/mab_ms | f199f05b88060182cfbb47706bd1ff3479032c43 | [
"BSD-2-Clause"
] | 3 | 2018-08-20T12:12:43.000Z | 2021-06-06T09:43:27.000Z | deform_control/external_libs/OpenSceneGraph-2.8.5/examples/osgwidgetstyled/osgwidgetstyled.cpp | UM-ARM-Lab/mab_ms | f199f05b88060182cfbb47706bd1ff3479032c43 | [
"BSD-2-Clause"
] | null | null | null | deform_control/external_libs/OpenSceneGraph-2.8.5/examples/osgwidgetstyled/osgwidgetstyled.cpp | UM-ARM-Lab/mab_ms | f199f05b88060182cfbb47706bd1ff3479032c43 | [
"BSD-2-Clause"
] | 1 | 2022-03-31T03:12:23.000Z | 2022-03-31T03:12:23.000Z | // -*-c++-*- osgWidget - Code by: Jeremy Moles (cubicool) 2007-2008
// $Id: osgwidgetshader.cpp 28 2008-03-26 15:26:48Z cubicool $
#include <osgWidget/Util>
#include <osgWidget/WindowManager>
#include <osgWidget/StyleManager>
#include <osgWidget/Box>
const unsigned int MASK_2D = 0xF0000000;
const std::string& STYLE1... | 26.5 | 83 | 0.642408 | UM-ARM-Lab |
a6adc86952e2aaaf222165215ac13cab3edc4f07 | 651 | cpp | C++ | data/ias_perception/cop_sr4_plugins/src/swissRangerRemoteSensor.cpp | khairulislam/phys | fc702520fcd3b23022b9253e7d94f878978b4500 | [
"MIT"
] | null | null | null | data/ias_perception/cop_sr4_plugins/src/swissRangerRemoteSensor.cpp | khairulislam/phys | fc702520fcd3b23022b9253e7d94f878978b4500 | [
"MIT"
] | null | null | null | data/ias_perception/cop_sr4_plugins/src/swissRangerRemoteSensor.cpp | khairulislam/phys | fc702520fcd3b23022b9253e7d94f878978b4500 | [
"MIT"
] | null | null | null | #include "pluginlib/class_list_macros.h"
#include "RangeSensor.h"
#include "SegmentPrototype.h"
class SwissRangerRemoteSensor : public cop::RangeSensor
{
public:
virtual std::string GetName() const{return XML_NODE_SWISSRANGER;};
};
/** Sensor Plugin*/
PLUGINLIB_REGISTER_CLASS(SwissRangerRemoteSensor, SwissRangerR... | 32.55 | 87 | 0.806452 | khairulislam |
a6ae01a0d384bdfa265c3da954710c2fb0cd6037 | 636 | cpp | C++ | server/src/main.cpp | silverthreadk/Mafia2 | 275f7e9fb63a98bcb5781c4d388a63da16a63213 | [
"BSL-1.0"
] | null | null | null | server/src/main.cpp | silverthreadk/Mafia2 | 275f7e9fb63a98bcb5781c4d388a63da16a63213 | [
"BSL-1.0"
] | null | null | null | server/src/main.cpp | silverthreadk/Mafia2 | 275f7e9fb63a98bcb5781c4d388a63da16a63213 | [
"BSL-1.0"
] | null | null | null | #include <iostream>
#include "server.h"
int main(int argc, char* argv[]) {
try {
if (argc < 2) {
std::cerr << "Usage: Server <port> [<port> ...]\n";
return 1;
}
boost::asio::io_context io_context;
std::list<Server> servers;
for (int i = 1; i < argc... | 23.555556 | 100 | 0.492138 | silverthreadk |
a6af98ea81cf6041f60789187af3f22c0bf4658f | 8,684 | hxx | C++ | src/lapack_wrapper/code++/trid.hxx | ceccocats/LapackWrapper | fea6aa41849ffe5440fa3195c36f74e45e36b414 | [
"BSD-4-Clause"
] | 3 | 2021-05-19T14:33:59.000Z | 2022-03-14T02:12:47.000Z | src/lapack_wrapper/code++/trid.hxx | ceccocats/LapackWrapper | fea6aa41849ffe5440fa3195c36f74e45e36b414 | [
"BSD-4-Clause"
] | null | null | null | src/lapack_wrapper/code++/trid.hxx | ceccocats/LapackWrapper | fea6aa41849ffe5440fa3195c36f74e45e36b414 | [
"BSD-4-Clause"
] | 1 | 2020-01-24T15:10:34.000Z | 2020-01-24T15:10:34.000Z | /*--------------------------------------------------------------------------*\
| |
| Copyright (C) 2019 |
| |
| ... | 24.461972 | 80 | 0.376324 | ceccocats |
a6b04db6b50d7a607d55726b59212303ae9477ff | 2,721 | cpp | C++ | server/src/MediaLibraryServer.cpp | jabaa/MediaLibraryServer | 52caf9adc40694300adade33f89d86cf32960efd | [
"MIT"
] | null | null | null | server/src/MediaLibraryServer.cpp | jabaa/MediaLibraryServer | 52caf9adc40694300adade33f89d86cf32960efd | [
"MIT"
] | null | null | null | server/src/MediaLibraryServer.cpp | jabaa/MediaLibraryServer | 52caf9adc40694300adade33f89d86cf32960efd | [
"MIT"
] | null | null | null | #include "MediaLibraryServer.hpp"
MediaLibraryServer::MediaLibraryServer() : configs(), help(false) {}
void MediaLibraryServer::initialize(Application &self) {
loadConfiguration();
logger().information(fmt::format("Configs: {}", configs.size()));
for (const auto &c : configs) {
try {
l... | 33.592593 | 79 | 0.639838 | jabaa |
a6b22e3fd5edcee8e9d457fa79fc3283767ac12d | 777 | hpp | C++ | Bibliotecas_e_Drives/Bibliot_ESP8266_ESP32_IDE-Arduino/ArduinoWebsockets/src/tiny_websockets/network/windows/win_tcp_server.hpp | francenylson/Robotica_ESP8266 | 882568b2656d319144aa19b3f34a0caf3c132b22 | [
"MIT"
] | null | null | null | Bibliotecas_e_Drives/Bibliot_ESP8266_ESP32_IDE-Arduino/ArduinoWebsockets/src/tiny_websockets/network/windows/win_tcp_server.hpp | francenylson/Robotica_ESP8266 | 882568b2656d319144aa19b3f34a0caf3c132b22 | [
"MIT"
] | null | null | null | Bibliotecas_e_Drives/Bibliot_ESP8266_ESP32_IDE-Arduino/ArduinoWebsockets/src/tiny_websockets/network/windows/win_tcp_server.hpp | francenylson/Robotica_ESP8266 | 882568b2656d319144aa19b3f34a0caf3c132b22 | [
"MIT"
] | null | null | null | #pragma once
#ifdef _WIN32
#include <tiny_websockets/internals/ws_common.hpp>
#include <tiny_websockets/network/tcp_server.hpp>
#define WIN32_LEAN_AND_MEAN
#undef _WIN32_WINNT
#define _WIN32_WINNT 0x501
#include <winsock2.h>
#include <windows.h>
#include <ws2tcpip.h>
#include <stdlib.h>
#include <stdio.h>
namesp... | 20.447368 | 50 | 0.682111 | francenylson |
a6b23fcdce80779e333deb13b4de4e1d8816c3c4 | 2,088 | cpp | C++ | Analysis/MapLab/min_common_lib_test/test_temp_file.cpp | konradotto/TS | bf088bd8432b1e3f4b8c8c083650a30d9ef2ae2e | [
"Apache-2.0"
] | 125 | 2015-01-22T05:43:23.000Z | 2022-03-22T17:15:59.000Z | Analysis/MapLab/min_common_lib_test/test_temp_file.cpp | konradotto/TS | bf088bd8432b1e3f4b8c8c083650a30d9ef2ae2e | [
"Apache-2.0"
] | 59 | 2015-02-10T09:13:06.000Z | 2021-11-11T02:32:38.000Z | Analysis/MapLab/min_common_lib_test/test_temp_file.cpp | konradotto/TS | bf088bd8432b1e3f4b8c8c083650a30d9ef2ae2e | [
"Apache-2.0"
] | 98 | 2015-01-17T01:25:10.000Z | 2022-03-18T17:29:42.000Z | /* Copyright (C) 2015 Ion Torrent Systems, Inc. All Rights Reserved. */
//////////////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////////////////
#include "test_temp_file.h"
#include <unistd.h>
#include <fcntl.h>
#include <fileutils.h... | 40.941176 | 91 | 0.55795 | konradotto |
a6b2aa30c32d3e2c41525105c5e27b15eb01670a | 593 | cpp | C++ | hooks/weapons/weapon_fire_inject.cpp | Lucifirius/yzoriansteampunk | 7b629ffd9740f0ff3db1fb8cffe07f45b7528854 | [
"Unlicense"
] | null | null | null | hooks/weapons/weapon_fire_inject.cpp | Lucifirius/yzoriansteampunk | 7b629ffd9740f0ff3db1fb8cffe07f45b7528854 | [
"Unlicense"
] | null | null | null | hooks/weapons/weapon_fire_inject.cpp | Lucifirius/yzoriansteampunk | 7b629ffd9740f0ff3db1fb8cffe07f45b7528854 | [
"Unlicense"
] | null | null | null | //Injector source file for the Weapon Fire hook module.
#include "weapon_fire.h"
#include <hook_tools.h>
namespace {
void __declspec(naked) fireWeaponWrapper() {
static CUnit* unit;
static u8 weaponId;
__asm {
PUSH EBP
MOV EBP, ESP
MOVZX EAX, [EBP+0x08]
MOV weaponId, AL
MOV unit, ESI
PUSHAD
}
hook... | 13.790698 | 55 | 0.709949 | Lucifirius |
a6b383c81ac60616678be98f148ad798a3755cec | 200,736 | inl | C++ | 2d_samples/pmj02_344.inl | st-ario/rayme | 315c57c23f4aa4934a8a80e84e3243acd3400808 | [
"MIT"
] | 1 | 2021-12-10T23:35:04.000Z | 2021-12-10T23:35:04.000Z | 2d_samples/pmj02_344.inl | st-ario/rayme | 315c57c23f4aa4934a8a80e84e3243acd3400808 | [
"MIT"
] | null | null | null | 2d_samples/pmj02_344.inl | st-ario/rayme | 315c57c23f4aa4934a8a80e84e3243acd3400808 | [
"MIT"
] | null | null | null | {std::array<float,2>{0.228854537f, 0.699147999f},
std::array<float,2>{0.952923894f, 0.237815425f},
std::array<float,2>{0.70954746f, 0.808866024f},
std::array<float,2>{0.422894925f, 0.445519507f},
std::array<float,2>{0.30648163f, 0.966786563f},
std::array<float,2>{0.569666564f, 0.372576654f},
std::array<float,2>{0.80805... | 49.007813 | 53 | 0.734731 | st-ario |
a6b7cfc432faae582fa25bf2fae88f1bc236ce4f | 1,541 | cpp | C++ | source/ListFileRecursively_For_Compare.cpp | Linux-pt/escan-backup | bfaed321201e512974e70c305beba53892428efc | [
"Unlicense"
] | null | null | null | source/ListFileRecursively_For_Compare.cpp | Linux-pt/escan-backup | bfaed321201e512974e70c305beba53892428efc | [
"Unlicense"
] | null | null | null | source/ListFileRecursively_For_Compare.cpp | Linux-pt/escan-backup | bfaed321201e512974e70c305beba53892428efc | [
"Unlicense"
] | null | null | null | #include<stdio.h>
#include<string.h>
#include<string>
#include<iostream>
#include<stdlib.h>
#include<unistd.h>
#include<signal.h>
#include"Compare_File_Present_In_Backup.h"
#include<dirent.h>
#include<sqlite3.h>
#include"CalculateSha1sum.h"
#include"ListFileRecursively_For_Compare.h"
#include"HandleSigint.h"
using name... | 24.854839 | 153 | 0.693056 | Linux-pt |
a6bd5cba82e46dbedbfb5c03305447c672894f8c | 248 | hpp | C++ | src/Meta/AuxiliaryTypes/check.hpp | NagiSenbon/Algorithm | e8044820a2cdd6a26d58097fd84512f3231d8dd6 | [
"Apache-2.0"
] | 2 | 2019-10-07T01:48:53.000Z | 2019-10-13T08:24:22.000Z | src/Meta/AuxiliaryTypes/check.hpp | NagiSenbon/Algorithm | e8044820a2cdd6a26d58097fd84512f3231d8dd6 | [
"Apache-2.0"
] | null | null | null | src/Meta/AuxiliaryTypes/check.hpp | NagiSenbon/Algorithm | e8044820a2cdd6a26d58097fd84512f3231d8dd6 | [
"Apache-2.0"
] | null | null | null | #pragma once
#include "../../Headers.hpp"
__ALG__MAT__BEGIN__
template <std::size_t D, std::size_t B>
struct same_size_check;
template <std::size_t D>
struct same_size_check<D, D>
{
};
template <auto... T>
struct false_type;
__ALG__MAT__END__
| 13.777778 | 39 | 0.733871 | NagiSenbon |
a6c22243e61255bbf774e0eb06a0a7f7bb1b5d8c | 4,028 | cpp | C++ | lib/smack/SmackWarnings.cpp | Guoanshisb/smack | 6fee210b1cb272cb9f596ea53e08935c159ec2f2 | [
"MIT"
] | 2 | 2021-10-08T00:50:26.000Z | 2021-12-17T07:18:15.000Z | lib/smack/SmackWarnings.cpp | Guoanshisb/smack | 6fee210b1cb272cb9f596ea53e08935c159ec2f2 | [
"MIT"
] | 1 | 2021-09-29T07:21:20.000Z | 2021-09-29T07:21:20.000Z | lib/smack/SmackWarnings.cpp | Guoanshisb/smack | 6fee210b1cb272cb9f596ea53e08935c159ec2f2 | [
"MIT"
] | 1 | 2021-10-12T09:02:40.000Z | 2021-10-12T09:02:40.000Z | #include "llvm/IR/DebugInfoMetadata.h"
#include "llvm/IR/DebugLoc.h"
#include "llvm/Support/raw_ostream.h"
#include "smack/SmackOptions.h"
#include "smack/SmackWarnings.h"
#include <algorithm>
#include <set>
namespace smack {
using namespace llvm;
std::string buildDebugInfo(const Instruction *i) {
std::stringstre... | 35.646018 | 80 | 0.59434 | Guoanshisb |
a6c3afb8b0d9b79b258b3b169d1743872bc4af57 | 1,647 | hpp | C++ | Crisp/Animation/Animator.hpp | FallenShard/Crisp | d4cf22c0f9af73a6c4ba2b7d67696f1a188fd423 | [
"MIT"
] | 6 | 2017-09-14T03:26:49.000Z | 2021-09-18T05:40:59.000Z | Crisp/Animation/Animator.hpp | FallenShard/Crisp | d4cf22c0f9af73a6c4ba2b7d67696f1a188fd423 | [
"MIT"
] | null | null | null | Crisp/Animation/Animator.hpp | FallenShard/Crisp | d4cf22c0f9af73a6c4ba2b7d67696f1a188fd423 | [
"MIT"
] | null | null | null | #pragma once
#include "Animation/Animation.hpp"
#include <memory>
#include <vector>
#include <unordered_map>
#include <unordered_set>
namespace crisp
{
class Animator
{
public:
Animator();
~Animator() = default;
Animator(const Animator& animator) = delete;
Animator(Animat... | 34.3125 | 96 | 0.690346 | FallenShard |
a6c482f53f26f26847571a3e58cfab955df67f44 | 2,258 | cpp | C++ | libv8/ruby/1.9.1/gems/therubyracer-0.9.4/ext/v8/v8_callbacks.cpp | tcmaker/ConOnRails | 97656120dbc9a5bf773538e021b768d0515ae333 | [
"Apache-2.0"
] | 1 | 2021-02-07T21:33:42.000Z | 2021-02-07T21:33:42.000Z | libv8/ruby/1.9.1/gems/therubyracer-0.9.4/ext/v8/v8_callbacks.cpp | tcmaker/ConOnRails | 97656120dbc9a5bf773538e021b768d0515ae333 | [
"Apache-2.0"
] | null | null | null | libv8/ruby/1.9.1/gems/therubyracer-0.9.4/ext/v8/v8_callbacks.cpp | tcmaker/ConOnRails | 97656120dbc9a5bf773538e021b768d0515ae333 | [
"Apache-2.0"
] | null | null | null | #include "v8_callbacks.h"
#include "rr.h"
using namespace v8;
namespace {
VALUE ArgumentsClass;
VALUE AccessorInfoClass;
VALUE _Data(VALUE self) {
return rb_iv_get(self, "data");
}
namespace Accessor {
AccessorInfo *info(VALUE value) {
AccessorInfo* i = 0;
Data_Get_Struct(value, cla... | 27.536585 | 80 | 0.670948 | tcmaker |
a6c4da6eb438be1445b8c3a428b6148ec1d4d42e | 3,405 | cpp | C++ | External/xlLib/Projects/UnitTest/Common/Containers/xlSetTest.cpp | Streamlet/RCVersion | f34d01d84bdb58c6a989c88e3cb1d75d04aefd21 | [
"MIT"
] | 5 | 2015-10-13T15:04:09.000Z | 2021-12-30T00:07:05.000Z | External/xlLib/Projects/UnitTest/Common/Containers/xlSetTest.cpp | Streamlet/RCVersion | f34d01d84bdb58c6a989c88e3cb1d75d04aefd21 | [
"MIT"
] | null | null | null | External/xlLib/Projects/UnitTest/Common/Containers/xlSetTest.cpp | Streamlet/RCVersion | f34d01d84bdb58c6a989c88e3cb1d75d04aefd21 | [
"MIT"
] | 1 | 2016-06-22T12:32:51.000Z | 2016-06-22T12:32:51.000Z | //------------------------------------------------------------------------------
//
// Copyright (C) Streamlet. All rights reserved.
//
// File Name: xlSetTest.cpp
// Author: Streamlet
// Create Time: 2011-04-30
// Description:
//
//-------------------------------------------------------... | 20.889571 | 81 | 0.408811 | Streamlet |
a6c5f99c3e9c524b163d245bd93e4ddfd6778a2c | 1,352 | cpp | C++ | libs/renderer/src/renderer/state/ffp/misc/parameters.cpp | cpreh/spacegameengine | 313a1c34160b42a5135f8223ffaa3a31bc075a01 | [
"BSL-1.0"
] | 2 | 2016-01-27T13:18:14.000Z | 2018-05-11T01:11:32.000Z | libs/renderer/src/renderer/state/ffp/misc/parameters.cpp | cpreh/spacegameengine | 313a1c34160b42a5135f8223ffaa3a31bc075a01 | [
"BSL-1.0"
] | null | null | null | libs/renderer/src/renderer/state/ffp/misc/parameters.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/state/ffp/misc/enable_point_sprites.hpp>
#include <sge/renderer/state/ffp/mi... | 35.578947 | 86 | 0.756657 | cpreh |
a6c61ab0eae05cbe0124dc12803f06f296b892c4 | 914 | cpp | C++ | book_2e_code/chapter4_tutorials/src/c4_example1.cpp | gtraines/robot1-ros | cb26c4c99223c4b09f92ef3f48a4c0dd649091f4 | [
"BSD-3-Clause"
] | 4 | 2021-08-23T00:46:40.000Z | 2021-08-23T05:57:43.000Z | book_2e_code/chapter4_tutorials/src/c4_example1.cpp | gtraines/robot1-ros | cb26c4c99223c4b09f92ef3f48a4c0dd649091f4 | [
"BSD-3-Clause"
] | null | null | null | book_2e_code/chapter4_tutorials/src/c4_example1.cpp | gtraines/robot1-ros | cb26c4c99223c4b09f92ef3f48a4c0dd649091f4 | [
"BSD-3-Clause"
] | 2 | 2021-04-22T23:39:29.000Z | 2021-08-23T00:47:02.000Z | #include<ros/ros.h>
#include<geometry_msgs/Twist.h>
#include<sensor_msgs/Joy.h>
#include<iostream>
using namespace std;
class TeleopJoy{
public:
TeleopJoy();
private:
void callBack(const sensor_msgs::Joy::ConstPtr& joy);
ros::NodeHandle n;
ros::Publisher pub;
ros::Subscriber sub;
int i_velLinear, i_velAng... | 22.292683 | 76 | 0.721007 | gtraines |
a6cb8a676ed34194a0da709b53eb3f3b558c463e | 4,562 | cpp | C++ | DPMI.cpp | fringpfe/BBSETUP | eb9d96e7223797e5c4170301f0120baace25424c | [
"MIT"
] | null | null | null | DPMI.cpp | fringpfe/BBSETUP | eb9d96e7223797e5c4170301f0120baace25424c | [
"MIT"
] | null | null | null | DPMI.cpp | fringpfe/BBSETUP | eb9d96e7223797e5c4170301f0120baace25424c | [
"MIT"
] | null | null | null | /**
*
* Copyright (C) 2021 Fabian Ringpfeil
*
* 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, m... | 29.816993 | 154 | 0.603463 | fringpfe |
a6d2ca41a9848773de508407966b96f6846fd538 | 1,145 | cpp | C++ | src/common.cpp | baldinialberto/awiGame | 88937014bcbacdac6766fad8696384fa84f91582 | [
"Unlicense"
] | null | null | null | src/common.cpp | baldinialberto/awiGame | 88937014bcbacdac6766fad8696384fa84f91582 | [
"Unlicense"
] | null | null | null | src/common.cpp | baldinialberto/awiGame | 88937014bcbacdac6766fad8696384fa84f91582 | [
"Unlicense"
] | null | null | null | #include "../include/common.hpp"
me::fIt::fIt(const char *path, const char *flags)
: _file{path, flags[0] == 'r' ? std::ios_base::in : std::ios_base::out}
{
}
me::fIt::~fIt()
{
if (_file.is_open())
_file.close();
}
bool me::fIt::opened() const { return _file.is_open(); }
const me::fIt &me::fIt::load... | 25.444444 | 79 | 0.625328 | baldinialberto |
a6d58d9b0214e41a42dbaa83a564295859ca3b57 | 7,865 | cpp | C++ | SCProjects/MetaBot/Source/AIloop.cpp | andertavares/OpprimoBot | da75bc0bf65b2b12d7184ffef88b2dbfa0d6110b | [
"MIT"
] | null | null | null | SCProjects/MetaBot/Source/AIloop.cpp | andertavares/OpprimoBot | da75bc0bf65b2b12d7184ffef88b2dbfa0d6110b | [
"MIT"
] | null | null | null | SCProjects/MetaBot/Source/AIloop.cpp | andertavares/OpprimoBot | da75bc0bf65b2b12d7184ffef88b2dbfa0d6110b | [
"MIT"
] | null | null | null | #include <BWTA.h>
#include "AIloop.h"
#include "Managers/BuildingPlacer.h"
#include "Utils/Profiler.h"
#include "Managers/Upgrader.h"
#include "Pathfinding/NavigationAgent.h"
#include "Managers/AgentManager.h"
#include "Influencemap/MapManager.h"
#include "Managers/ExplorationManager.h"
#include "Managers/Constructor.... | 23.761329 | 179 | 0.640305 | andertavares |
a6d798c6fb715eba650afabe3cac2f422078818c | 497 | cpp | C++ | StudyBookCXXPrimer/chapters16/p16.61/main.cpp | MDGSF/CppPractice | 96d7f05031ebd5f4616c3ccee2a5ab3f51b986d2 | [
"MIT"
] | null | null | null | StudyBookCXXPrimer/chapters16/p16.61/main.cpp | MDGSF/CppPractice | 96d7f05031ebd5f4616c3ccee2a5ab3f51b986d2 | [
"MIT"
] | null | null | null | StudyBookCXXPrimer/chapters16/p16.61/main.cpp | MDGSF/CppPractice | 96d7f05031ebd5f4616c3ccee2a5ab3f51b986d2 | [
"MIT"
] | null | null | null | #include <iostream>
#include <memory>
// 声明
template <typename T, typename... Args>
std::shared_ptr<T> my_make_shared(Args&&...);
// 定义
template <typename T, typename... Args>
inline std::shared_ptr<T>
my_make_shared(Args&&... args) {
std::shared_ptr<T> ret( new T(std::forward<Args>(args)...) );
return ret;
}
in... | 20.708333 | 63 | 0.629779 | MDGSF |
a6deafbd898d888a78c7b9599213462e460f7cae | 9,141 | cpp | C++ | shmem.cpp | shawwn/node-shared-memory | dcf624444d441d5d60bc023ced745d269f090656 | [
"MIT"
] | null | null | null | shmem.cpp | shawwn/node-shared-memory | dcf624444d441d5d60bc023ced745d269f090656 | [
"MIT"
] | null | null | null | shmem.cpp | shawwn/node-shared-memory | dcf624444d441d5d60bc023ced745d269f090656 | [
"MIT"
] | null | null | null | #define _LARGEFILE64_SOURCE
#define _USE_FILE_OFFSET64
#define _USE_LARGEFILE64
#include "shmem.h"
#include "util.h"
#include "zmalloc.h"
#include <string.h>
#include <stdio.h>
#include <errno.h>
#include <stdarg.h>
struct shmem
{
char* name;
int64_t size;
int flags;
/* platform-specific. */
#i... | 24.18254 | 130 | 0.480363 | shawwn |
a6dee0dbf1fac1d4e4a8c8bd64759b178250ccbb | 1,824 | cpp | C++ | source/tests.cpp | MarianFriedrich/3_programmiersprachen-blatt | 0bd4087b29fa628a7e9ff0a0f489402b08685bd1 | [
"MIT"
] | null | null | null | source/tests.cpp | MarianFriedrich/3_programmiersprachen-blatt | 0bd4087b29fa628a7e9ff0a0f489402b08685bd1 | [
"MIT"
] | null | null | null | source/tests.cpp | MarianFriedrich/3_programmiersprachen-blatt | 0bd4087b29fa628a7e9ff0a0f489402b08685bd1 | [
"MIT"
] | null | null | null | #define CATCH_CONFIG_RUNNER
#include <catch.hpp>
#include <list>
#include <cstdlib>
#include "circle.hpp"
// Circle Operatoren
TEST_CASE("describe_circle_operator_same","[circle_operator_same]")
{
Circle test1{{0,0},5,{0.0,0.0,0.0}};
Circle test2{{0,0},5,{0.0,0.0,0.0}};
REQUIRE(test1 == test2);
}
TEST_CASE("descri... | 28.061538 | 81 | 0.64693 | MarianFriedrich |
a6e168ffa3f2e4d0af9106ebf3f99089d0e2af7f | 5,215 | hxx | C++ | Projects/7.SmartBuilding/smartbuilding_server/inc/inl/thread.hxx | NatanMeirov/ExperisAcademyBootcamp | 6608ef5571e6dc4eb1f481695da3476ecd4f7547 | [
"MIT"
] | null | null | null | Projects/7.SmartBuilding/smartbuilding_server/inc/inl/thread.hxx | NatanMeirov/ExperisAcademyBootcamp | 6608ef5571e6dc4eb1f481695da3476ecd4f7547 | [
"MIT"
] | null | null | null | Projects/7.SmartBuilding/smartbuilding_server/inc/inl/thread.hxx | NatanMeirov/ExperisAcademyBootcamp | 6608ef5571e6dc4eb1f481695da3476ecd4f7547 | [
"MIT"
] | null | null | null | #ifndef NM_THREAD_HXX
#define NM_THREAD_HXX
#include <cstddef> // size_t
#include <memory> // std:shared_ptr
#include <exception> // std::current_exception
#include <pthread.h>
#include <cxxabi.h> // abi::__forced_unwind
#include "icallable.hpp"
namespace advcpp
{
template <typename DestructionPolicy>
void* Thread... | 25.072115 | 191 | 0.691659 | NatanMeirov |
a6e2a2806d8ee5c1a94caab136a98daab2f282e4 | 883 | cpp | C++ | src/tests/test-datetime.cpp | cshnick/liteSql_custom_generator | 31f81ab13b689616672ab45805c3ffdfab3a1057 | [
"BSD-3-Clause"
] | 11 | 2017-04-19T03:01:13.000Z | 2020-08-03T05:21:31.000Z | src/tests/test-datetime.cpp | cshnick/liteSql_custom_generator | 31f81ab13b689616672ab45805c3ffdfab3a1057 | [
"BSD-3-Clause"
] | 14 | 2016-05-24T00:20:42.000Z | 2019-02-11T18:36:36.000Z | src/tests/test-datetime.cpp | cshnick/liteSql_custom_generator | 31f81ab13b689616672ab45805c3ffdfab3a1057 | [
"BSD-3-Clause"
] | 4 | 2017-04-03T08:03:11.000Z | 2019-08-20T04:48:50.000Z | /* LiteSQL - test-datetime
*
* The list of contributors at http://litesql.sf.net/
*
* See LICENSE for copyright information. */
#include <assert.h>
#include "litesql/datetime.hpp"
/*
Datetime unit tester
TC1: test for equality on load/ save (see ticket #13)
*/
using namespace litesql;
int main(int argc, ... | 19.195652 | 61 | 0.629672 | cshnick |
a6e2d9423376abcc324028e622ac725301c75476 | 873 | cpp | C++ | Olympiad Solutions/DMOJ/ioi10p6.cpp | Ashwanigupta9125/code-DS-ALGO | 49f6cf7d0c682da669db23619aef3f80697b352b | [
"MIT"
] | 36 | 2019-12-27T08:23:08.000Z | 2022-01-24T20:35:47.000Z | Olympiad Solutions/DMOJ/ioi10p6.cpp | Ashwanigupta9125/code-DS-ALGO | 49f6cf7d0c682da669db23619aef3f80697b352b | [
"MIT"
] | 10 | 2019-11-13T02:55:18.000Z | 2021-10-13T23:28:09.000Z | Olympiad Solutions/DMOJ/ioi10p6.cpp | Ashwanigupta9125/code-DS-ALGO | 49f6cf7d0c682da669db23619aef3f80697b352b | [
"MIT"
] | 53 | 2020-08-15T11:08:40.000Z | 2021-10-09T15:51:38.000Z | // Ivan Carvalho
// Solution to https://dmoj.ca/problem/ioi10p6
#include <cstdio>
#include <vector>
#include <algorithm>
using namespace std;
typedef long long ll;
const ll MAXN = 1e6 + 10;
vector<ll> grafo[MAXN];
ll tam[MAXN],soma,maior[MAXN],n,num[MAXN],resp,vertice,total;
void dfs(ll v,ll p){
tam[v] = num[v];
for(... | 17.816327 | 61 | 0.562428 | Ashwanigupta9125 |
a6e422508141ebac8748f387c343b07046835c8b | 18 | cpp | C++ | Gear/src/grpch.cpp | GearEngine/GearEngine | fa5ed49ca6289a215799a7b84ece1241eb33bd36 | [
"Apache-2.0"
] | 3 | 2020-03-05T06:56:51.000Z | 2020-03-12T09:36:20.000Z | Gear/src/grpch.cpp | GearEngine/GearEngine | fa5ed49ca6289a215799a7b84ece1241eb33bd36 | [
"Apache-2.0"
] | 2 | 2020-03-05T15:40:28.000Z | 2020-03-11T16:04:44.000Z | Gear/src/grpch.cpp | GearEngine/GearEngine | fa5ed49ca6289a215799a7b84ece1241eb33bd36 | [
"Apache-2.0"
] | null | null | null | #include "grpch.h" | 18 | 18 | 0.722222 | GearEngine |
a6e4335cee2c7c8f2861130b1e96a7ea0097a991 | 3,025 | cpp | C++ | Examples/Cpp/source/IMAP/SupportIMAPIdleCommand.cpp | kashifiqb/Aspose.Email-for-C | 96684cb6ed9f4e321a00c74ca219440baaef8ba8 | [
"MIT"
] | 4 | 2019-12-01T16:19:12.000Z | 2022-03-28T18:51:42.000Z | Examples/Cpp/source/IMAP/SupportIMAPIdleCommand.cpp | kashifiqb/Aspose.Email-for-C | 96684cb6ed9f4e321a00c74ca219440baaef8ba8 | [
"MIT"
] | 1 | 2022-02-15T01:02:15.000Z | 2022-02-15T01:02:15.000Z | Examples/Cpp/source/IMAP/SupportIMAPIdleCommand.cpp | kashifiqb/Aspose.Email-for-C | 96684cb6ed9f4e321a00c74ca219440baaef8ba8 | [
"MIT"
] | 5 | 2017-09-27T14:43:20.000Z | 2021-11-16T06:47:11.000Z | /*
This project uses Automatic Package Restore feature of NuGet to resolve Aspose.Email for .NET API reference
when the project is build. Please check https://Docs.nuget.org/consume/nuget-faq for more information.
If you do not wish to use NuGet, you can manually download Aspose.Email for .NET API from https://www.n... | 50.416667 | 277 | 0.749421 | kashifiqb |
a6e4ba642814a30f44103539de9f6b48663fd03d | 3,118 | cpp | C++ | FireCube/Audio/Sound.cpp | ashleygwinnell/firecube | ea6bec6bab98d922dce76610a739beb5f7f88b61 | [
"MIT"
] | 1 | 2020-03-31T20:41:48.000Z | 2020-03-31T20:41:48.000Z | FireCube/Audio/Sound.cpp | ashleygwinnell/firecube | ea6bec6bab98d922dce76610a739beb5f7f88b61 | [
"MIT"
] | null | null | null | FireCube/Audio/Sound.cpp | ashleygwinnell/firecube | ea6bec6bab98d922dce76610a739beb5f7f88b61 | [
"MIT"
] | null | null | null | #include <fstream>
#include <SDL.h>
#include "Audio/Sound.h"
#include "Utils/Logger.h"
#include "Utils/Filesystem.h"
#include "OggVorbisSoundDecoder.h"
#define STB_VORBIS_HEADER_ONLY
#include "ThirdParty/STB/stb_vorbis.c"
using namespace FireCube;
Sound::Sound(Engine *engine) : Resource(engine)
{
}
bool Sound::Load... | 17.91954 | 105 | 0.702373 | ashleygwinnell |
a6ec95078cdd6a6eb6ffdf181bf90086478bbe17 | 1,146 | cpp | C++ | src/searchparameters.cpp | nemishkor/harbour-otpusk | 225fa040426a654249ba45e33efe3f169911fc14 | [
"MIT"
] | null | null | null | src/searchparameters.cpp | nemishkor/harbour-otpusk | 225fa040426a654249ba45e33efe3f169911fc14 | [
"MIT"
] | null | null | null | src/searchparameters.cpp | nemishkor/harbour-otpusk | 225fa040426a654249ba45e33efe3f169911fc14 | [
"MIT"
] | null | null | null | #include "searchparameters.h"
SearchParameters::SearchParameters(QObject *parent) : QObject(parent)
{
}
int SearchParameters::getLocationId() const
{
return locationId;
}
int SearchParameters::getFromCityId() const
{
return fromCityId;
}
QString SearchParameters::getStartDate() const
{
return startDate... | 14.883117 | 69 | 0.729494 | nemishkor |
a6f04893187e9082b96f40c22f27ab7029a6b0e5 | 5,081 | hpp | C++ | sampml/sampml/random_forest.hpp | YashasSamaga/sampml | dc84110b53b120caeeb4c0234fcfd6ab16793c59 | [
"MIT"
] | 12 | 2018-12-01T18:30:32.000Z | 2021-12-08T21:53:36.000Z | sampml/sampml/random_forest.hpp | YashasSamaga/sampml | dc84110b53b120caeeb4c0234fcfd6ab16793c59 | [
"MIT"
] | 2 | 2019-08-21T17:52:59.000Z | 2022-01-17T03:28:11.000Z | sampml/sampml/random_forest.hpp | YashasSamaga/sampml | dc84110b53b120caeeb4c0234fcfd6ab16793c59 | [
"MIT"
] | 3 | 2020-09-04T14:53:46.000Z | 2022-03-18T17:53:33.000Z | #include <cassert>
#include <dlib/random_forest.h>
#include <dlib/global_optimization.h>
#include "common.hpp"
#include "data.hpp"
namespace SAMPML_NAMESPACE {
namespace trainer {
template <class sample_type>
class random_forest {
public:
random_forest() { }
templ... | 44.570175 | 135 | 0.550679 | YashasSamaga |
a6f57fdc05ee6ccd28ebb735663ca9077fea5bbb | 321 | cpp | C++ | cpp/cpp-introduction/c-tutorial-basic-data-types.cpp | th3c0d3br34ker/hackerrank-solutions | c61e987cbb359fd27e41051c39ffd7f377f0c5f2 | [
"MIT"
] | 1 | 2020-08-04T18:31:24.000Z | 2020-08-04T18:31:24.000Z | cpp/cpp-introduction/c-tutorial-basic-data-types.cpp | th3c0d3br34ker/hackerrank-solutions | c61e987cbb359fd27e41051c39ffd7f377f0c5f2 | [
"MIT"
] | null | null | null | cpp/cpp-introduction/c-tutorial-basic-data-types.cpp | th3c0d3br34ker/hackerrank-solutions | c61e987cbb359fd27e41051c39ffd7f377f0c5f2 | [
"MIT"
] | null | null | null | #include <iostream>
#include <cstdio>
using namespace std;
int main() {
int a;
long b;
char c;
float d;
double e;
scanf("%d %ld %c %f %lf", &a, &b, &c, &d, &e);
printf("%d\n", a);
printf("%ld\n", b);
printf("%c\n", c);
printf("%f\n", d);
printf("%lf", e);
return 0;
}
... | 13.956522 | 50 | 0.464174 | th3c0d3br34ker |
a6fb7419f48c6292d2989cde3c96e655af968985 | 24,270 | cpp | C++ | com/netfx/src/clr/jit/ia64/utils.cpp | npocmaka/Windows-Server-2003 | 5c6fe3db626b63a384230a1aa6b92ac416b0765f | [
"Unlicense"
] | 17 | 2020-11-13T13:42:52.000Z | 2021-09-16T09:13:13.000Z | com/netfx/src/clr/jit/ia64/utils.cpp | sancho1952007/Windows-Server-2003 | 5c6fe3db626b63a384230a1aa6b92ac416b0765f | [
"Unlicense"
] | 2 | 2020-10-19T08:02:06.000Z | 2020-10-19T08:23:18.000Z | com/netfx/src/clr/jit/ia64/utils.cpp | sancho1952007/Windows-Server-2003 | 5c6fe3db626b63a384230a1aa6b92ac416b0765f | [
"Unlicense"
] | 14 | 2020-11-14T09:43:20.000Z | 2021-08-28T08:59:57.000Z | // ==++==
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
// ==--==
/*XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XX ... | 27.147651 | 99 | 0.46885 | npocmaka |
a6fcf23a162cf5c2b01314d375102f526ba1796a | 1,127 | cpp | C++ | CodeAssist/CodeAssistLib/complete/Proposal/DefaultCompletionProposal.cpp | kuafuwang/JCDT | 2b009ea887b4816303fed9e6e1dc104a90c67d16 | [
"MIT"
] | 1 | 2021-04-17T01:55:27.000Z | 2021-04-17T01:55:27.000Z | CodeAssist/CodeAssistLib/complete/Proposal/DefaultCompletionProposal.cpp | kuafuwang/JCDT | 2b009ea887b4816303fed9e6e1dc104a90c67d16 | [
"MIT"
] | null | null | null | CodeAssist/CodeAssistLib/complete/Proposal/DefaultCompletionProposal.cpp | kuafuwang/JCDT | 2b009ea887b4816303fed9e6e1dc104a90c67d16 | [
"MIT"
] | 1 | 2022-02-18T12:02:00.000Z | 2022-02-18T12:02:00.000Z | #include "DefaultCompletionProposal.h"
namespace Jikes { // Open namespace Jikes block
namespace CodeAssist {
const wstring& DefaultCompletionProposal::GetDisplayString()
{
if (fDisplayString.empty())
{
if (otheTag == NORMAL)
{
fDisplayString = L"default:";
}
else if(WITH_BREAK == othe... | 20.125 | 66 | 0.621118 | kuafuwang |
a6fd4b0c75385f0cde9941adcae2168cdf874e04 | 1,225 | cpp | C++ | source/tools/editor/dropzonebrush.cpp | mechasource/mechcommander2 | b2c7cecf001cec1f535aa8d29c31bdc30d9aa983 | [
"BSD-2-Clause"
] | 38 | 2015-04-10T13:31:03.000Z | 2021-09-03T22:34:05.000Z | source/tools/editor/dropzonebrush.cpp | mechasource/mechcommander2 | b2c7cecf001cec1f535aa8d29c31bdc30d9aa983 | [
"BSD-2-Clause"
] | 1 | 2020-07-09T09:48:44.000Z | 2020-07-12T12:41:43.000Z | source/tools/editor/dropzonebrush.cpp | mechasource/mechcommander2 | b2c7cecf001cec1f535aa8d29c31bdc30d9aa983 | [
"BSD-2-Clause"
] | 12 | 2015-06-29T08:06:57.000Z | 2021-10-13T13:11:41.000Z | /*************************************************************************************************\
dropZoneBrush.cpp : Implementation of the dropZoneBrush component.
//---------------------------------------------------------------------------//
// Copyright (C) Microsoft Corporation. All rights reserved. ... | 31.410256 | 99 | 0.520816 | mechasource |
4708133bb2dd9ae9152e118d1320adef4ae581e0 | 29,038 | cc | C++ | multibody/parsing/test/detail_urdf_geometry_test.cc | RobotLocomotion/drake-python3.7 | ae397a4c6985262d23e9675b9bf3927c08d027f5 | [
"BSD-3-Clause"
] | 2 | 2021-02-25T02:01:02.000Z | 2021-03-17T04:52:04.000Z | multibody/parsing/test/detail_urdf_geometry_test.cc | RobotLocomotion/drake-python3.7 | ae397a4c6985262d23e9675b9bf3927c08d027f5 | [
"BSD-3-Clause"
] | null | null | null | multibody/parsing/test/detail_urdf_geometry_test.cc | RobotLocomotion/drake-python3.7 | ae397a4c6985262d23e9675b9bf3927c08d027f5 | [
"BSD-3-Clause"
] | 1 | 2021-06-13T12:05:39.000Z | 2021-06-13T12:05:39.000Z | #include "drake/multibody/parsing/detail_urdf_geometry.h"
#include <memory>
#include <vector>
#include <gtest/gtest.h>
#include "drake/common/filesystem.h"
#include "drake/common/find_resource.h"
#include "drake/common/test_utilities/eigen_matrix_compare.h"
#include "drake/common/test_utilities/expect_no_throw.h"
#i... | 40.274619 | 80 | 0.704732 | RobotLocomotion |
470837c3c5ee105a07e9ac189bc4bd4305c05c14 | 995 | cpp | C++ | cpp/TimeLimitedAssert.cpp | som-dev/ShowMeCode | c17ecf7d69738942fe7134e8d963d1862b78a757 | [
"MIT"
] | 1 | 2018-08-12T04:48:55.000Z | 2018-08-12T04:48:55.000Z | cpp/TimeLimitedAssert.cpp | som-dev/ShowMeCode | c17ecf7d69738942fe7134e8d963d1862b78a757 | [
"MIT"
] | null | null | null | cpp/TimeLimitedAssert.cpp | som-dev/ShowMeCode | c17ecf7d69738942fe7134e8d963d1862b78a757 | [
"MIT"
] | null | null | null | /// @file
/// @brief
#include "TimeLimitedAssert.hpp"
#include <iostream>
#include <thread>
#include <chrono>
/// @brief simply sleep for the provided time and set the flag to true
void RunThread(bool& flag, size_t sleepSeconds)
{
std::this_thread::sleep_for(std::chrono::seconds(sleepSeconds));
flag = true;
... | 28.428571 | 86 | 0.636181 | som-dev |