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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
5d05bfa4f32e7235c65d9029879de6feed905603 | 3,745 | cpp | C++ | script/move_back_and_forth.cpp | PenguinLemma/udacity-robond-p1 | 3f98e17517a9ffd5cdc1461b1544a7dceaec0e75 | [
"MIT"
] | null | null | null | script/move_back_and_forth.cpp | PenguinLemma/udacity-robond-p1 | 3f98e17517a9ffd5cdc1461b1544a7dceaec0e75 | [
"MIT"
] | null | null | null | script/move_back_and_forth.cpp | PenguinLemma/udacity-robond-p1 | 3f98e17517a9ffd5cdc1461b1544a7dceaec0e75 | [
"MIT"
] | null | null | null | #include "move_back_and_forth.hpp"
namespace gazebo
{
GZ_REGISTER_MODEL_PLUGIN(MoveBackAndForthPlugin)
MoveBackAndForthPlugin::MoveBackAndForthPlugin()
{
std::cout << "MoveBackAndForthPlugin has be loaded" << std::endl;
data_ = std::make_unique<MoveBackAndForthPluginPrivate>();
}
MoveBackAndForthPlugin::~M... | 32.565217 | 138 | 0.677704 | PenguinLemma |
5d0662a0df2228eddeac771fdb5cdba355d89447 | 303 | cpp | C++ | src/Network/IPv4Header.cpp | dmalysiak/Lazarus | 925d92843e311d2cd5afd437766563d0d5ab9052 | [
"Apache-2.0"
] | 1 | 2019-04-29T05:31:32.000Z | 2019-04-29T05:31:32.000Z | src/Network/IPv4Header.cpp | dmalysiak/Lazarus | 925d92843e311d2cd5afd437766563d0d5ab9052 | [
"Apache-2.0"
] | null | null | null | src/Network/IPv4Header.cpp | dmalysiak/Lazarus | 925d92843e311d2cd5afd437766563d0d5ab9052 | [
"Apache-2.0"
] | null | null | null | /*
* IPHeader.cpp
*
* Created on: Feb 25, 2014
* Author: Darius Malysiak
*/
#include "IPv4Header.h"
namespace Lazarus {
IPv4Header::IPv4Header() {
// TODO Auto-generated constructor stub
}
IPv4Header::~IPv4Header() {
// TODO Auto-generated destructor stub
}
} /* namespace Lazarus */
| 13.772727 | 40 | 0.666667 | dmalysiak |
5d09a568ae691da5f49e48ffd3f6b796101ba043 | 556 | cpp | C++ | tests/2017/02.cpp | voivoid/advent-of-code | efc02f558ad7718d02dfc205fadeba6b857ce4ae | [
"MIT"
] | 6 | 2019-03-01T14:15:38.000Z | 2021-12-10T21:39:23.000Z | tests/2017/02.cpp | voivoid/advent-of-code | efc02f558ad7718d02dfc205fadeba6b857ce4ae | [
"MIT"
] | 3 | 2018-10-22T09:42:26.000Z | 2018-10-22T11:45:06.000Z | tests/2017/02.cpp | voivoid/advent-of-code | efc02f558ad7718d02dfc205fadeba6b857ce4ae | [
"MIT"
] | null | null | null | #include "boost/test/unit_test.hpp"
#include "aoc_fixture.h"
#include "AoC/2017/problem_02.h"
using namespace AoC_2017::problem_02;
BOOST_FIXTURE_TEST_CASE( problem2017_02_1, AocFixture )
{
const auto input = R"(5 1 9 5
7 5 3
2 4 6 8)";
BOOST_CHECK_EQUAL( 18, run... | 21.384615 | 55 | 0.579137 | voivoid |
5d0a7ed6850083944701a652974369b3f82e25e7 | 13,372 | cpp | C++ | SMGE/Objects/CMap.cpp | cuwaki/MonoMax.GLPlayground | c14eb6879ca5d36bdff443ae244d6a58da7613ff | [
"MIT"
] | null | null | null | SMGE/Objects/CMap.cpp | cuwaki/MonoMax.GLPlayground | c14eb6879ca5d36bdff443ae244d6a58da7613ff | [
"MIT"
] | null | null | null | SMGE/Objects/CMap.cpp | cuwaki/MonoMax.GLPlayground | c14eb6879ca5d36bdff443ae244d6a58da7613ff | [
"MIT"
] | null | null | null | #include "CMap.h"
#include "../GECommonIncludes.h"
#include "../Assets/CAssetManager.h"
#include "../CEngineBase.h"
#include "../CGameBase.h"
#include "CCameraActor.h"
#define ENABLE_FRUSTUM_CULLING
#define ENABLE_OCTREE
//#define DRAW_FRUSTUM
//#define FRUSTUM_TEST_CAMERA
//#define ENABLE_OCTREE_WITH_AABB /* ์ฅํธ๋ฆฌ์ ํฌ๊ธฐ๋ก... | 26.219608 | 157 | 0.663925 | cuwaki |
5d10483ed96dbdeab359e6d40ef8508fe11f0446 | 2,705 | cpp | C++ | Trabajos Practicos/Trabajo Practico N3/server_src/parser.cpp | stephanieizquierdo/FIUBA-TallerDeProgramacionI | 830c241cb7ed317775dd4eef3e1e15257eefea9a | [
"MIT"
] | 3 | 2021-07-24T14:27:32.000Z | 2021-08-01T21:37:43.000Z | Trabajos Practicos/Trabajo Practico N3/server_src/parser.cpp | stephanieizquierdo/FIUBA-TallerDeProgramacionI | 830c241cb7ed317775dd4eef3e1e15257eefea9a | [
"MIT"
] | null | null | null | Trabajos Practicos/Trabajo Practico N3/server_src/parser.cpp | stephanieizquierdo/FIUBA-TallerDeProgramacionI | 830c241cb7ed317775dd4eef3e1e15257eefea9a | [
"MIT"
] | 1 | 2021-08-01T19:33:07.000Z | 2021-08-01T19:33:07.000Z | #include "parser.h"
#include "metodo.h"
#include <iostream>
#include <string>
#define ESPACIO ' '
#define TAB '\t'
#define SLASH '/'
#define PROTOCOLO "HTTP"
#define PROTOCOLO_SIN_RECURSO "/ HTTP"
Parser::Parser(){}
Parser::~Parser(){}
static std::string limpiar_string(const std::string &linea){
std::string nueva_... | 28.776596 | 79 | 0.731608 | stephanieizquierdo |
5d1343d610bd78bee3979fae368b32508b27081c | 130 | cpp | C++ | arch/common/smc/noop.cpp | tspink/captive | 9db853df410e06ddb6384dc5e319b92f90483065 | [
"MIT"
] | 24 | 2017-01-02T18:46:34.000Z | 2022-01-10T09:37:58.000Z | arch/common/smc/noop.cpp | tspink/captive | 9db853df410e06ddb6384dc5e319b92f90483065 | [
"MIT"
] | 4 | 2019-09-19T17:48:03.000Z | 2020-09-17T11:01:29.000Z | arch/common/smc/noop.cpp | tspink/captive | 9db853df410e06ddb6384dc5e319b92f90483065 | [
"MIT"
] | 8 | 2017-04-28T04:53:42.000Z | 2022-01-10T10:11:29.000Z | /* SPDX-License-Identifier: MIT */
#include <smc/noop.h>
#include <mmu/strategy/strategy.h>
using namespace captive::arch::smc;
| 18.571429 | 35 | 0.723077 | tspink |
5d152433df5a49c6b87d422e5b6848d348fd615c | 5,859 | cpp | C++ | fceu/mappers/69.cpp | jaeger401/tasbot | a16b5b9639633d27145b76f3ecfd45b859062f6c | [
"Xnet",
"X11"
] | null | null | null | fceu/mappers/69.cpp | jaeger401/tasbot | a16b5b9639633d27145b76f3ecfd45b859062f6c | [
"Xnet",
"X11"
] | null | null | null | fceu/mappers/69.cpp | jaeger401/tasbot | a16b5b9639633d27145b76f3ecfd45b859062f6c | [
"Xnet",
"X11"
] | null | null | null | /* FCE Ultra - NES/Famicom Emulator
*
* Copyright notice for this file:
* Copyright (C) 2002 Xodnizel
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, o... | 23.158103 | 85 | 0.572453 | jaeger401 |
5d16d7f931d72bedb164a19a804bd0590f50c853 | 464 | cpp | C++ | KT_phan cap_oop.cpp | baongo1230/QuocBao | 0ca83a37b31d51a3afa9b30f4b34c29b77d4882c | [
"Unlicense"
] | null | null | null | KT_phan cap_oop.cpp | baongo1230/QuocBao | 0ca83a37b31d51a3afa9b30f4b34c29b77d4882c | [
"Unlicense"
] | null | null | null | KT_phan cap_oop.cpp | baongo1230/QuocBao | 0ca83a37b31d51a3afa9b30f4b34c29b77d4882c | [
"Unlicense"
] | null | null | null | #include<iostream>
// ke thua phan cap
using namespace std;
class A{
protected:
int x;
int y;
public:
void read(){
cout<<"Nhap gia tri cua x va y : ";
cin>>x>>y;
}
};
class B: public A{
public:
void prod(){
cout<<"Tich "<<x*y<<endl;
}
};
class C:public A{
public:
void su... | 12.540541 | 40 | 0.50431 | baongo1230 |
5d2794829397bcf18386bb93e3836ff6d27f4f43 | 3,328 | cpp | C++ | test/ops_create_dir_test.cpp | abdes/asap_filesystem | 44b8ab19900db6ce58a8802817a5b42d6ab6a4b3 | [
"BSD-3-Clause"
] | 3 | 2019-05-20T14:21:11.000Z | 2019-05-21T19:09:13.000Z | test/ops_create_dir_test.cpp | abdes/asap_filesystem | 44b8ab19900db6ce58a8802817a5b42d6ab6a4b3 | [
"BSD-3-Clause"
] | null | null | null | test/ops_create_dir_test.cpp | abdes/asap_filesystem | 44b8ab19900db6ce58a8802817a5b42d6ab6a4b3 | [
"BSD-3-Clause"
] | null | null | null | // Copyright The Authors 2018.
// Distributed under the 3-Clause BSD License.
// (See accompanying file LICENSE or copy at
// https://opensource.org/licenses/BSD-3-Clause)
#if defined(__clang__)
#pragma clang diagnostic push
// Catch2 uses a lot of macro names that will make clang go crazy
#if (__clang_... | 28.444444 | 88 | 0.620493 | abdes |
5d2855bb71a193f469f2a47d96ef351b0cdf7f28 | 18,955 | cpp | C++ | src/fmMain.cpp | mmottaghi/Jerdy-Inspector | 8b2a68e391287476daf446238216ac0f6e835a63 | [
"MIT"
] | null | null | null | src/fmMain.cpp | mmottaghi/Jerdy-Inspector | 8b2a68e391287476daf446238216ac0f6e835a63 | [
"MIT"
] | null | null | null | src/fmMain.cpp | mmottaghi/Jerdy-Inspector | 8b2a68e391287476daf446238216ac0f6e835a63 | [
"MIT"
] | null | null | null | /***********************************************************************************
Copyright (C) 2016 Mohammad D. Mottaghi
Under the terms of the MIT license, permission is granted to anyone to use, copy,
modify, publish, redistribute, and/or sell copies of this source code for any
commercial and non-commerci... | 36.877432 | 187 | 0.585967 | mmottaghi |
5d2afe61ccbc010628de98d405405d8eee1c7481 | 846 | cpp | C++ | Travnikova/sum_by_cols.cpp | annsamokhina/msu_cpp_autumn_2018 | 91b60256ad7f7a1fdf2ff95e8e1d194a936e6d77 | [
"MIT"
] | 16 | 2018-09-27T13:59:59.000Z | 2019-10-01T21:33:40.000Z | Travnikova/sum_by_cols.cpp | annsamokhina/msu_cpp_autumn_2018 | 91b60256ad7f7a1fdf2ff95e8e1d194a936e6d77 | [
"MIT"
] | 2 | 2018-10-17T20:56:15.000Z | 2018-10-24T00:02:42.000Z | Travnikova/sum_by_cols.cpp | annsamokhina/msu_cpp_autumn_2018 | 91b60256ad7f7a1fdf2ff95e8e1d194a936e6d77 | [
"MIT"
] | 22 | 2018-09-27T14:00:16.000Z | 2019-12-17T19:44:33.000Z | #include <chrono>
#include <iostream>
enum { BUF_SIZE = 10000 };
class Timer
{
using clock_t = std::chrono::high_resolution_clock;
using microseconds = std::chrono::microseconds;
public:
Timer()
: start_(clock_t::now())
{
}
~Timer()
{
const auto finish = clock_t::now();
const auto us =
std::chrono... | 17.265306 | 52 | 0.58156 | annsamokhina |
5d2beb95342fa2501b2eefd036515c8c6c7894c0 | 3,365 | cpp | C++ | aws-cpp-sdk-macie2/source/model/SensitiveDataItemCategory.cpp | orinem/aws-sdk-cpp | f38413cc1f278689ef14e9ebdd74a489a48776be | [
"Apache-2.0"
] | 1 | 2020-07-16T19:02:58.000Z | 2020-07-16T19:02:58.000Z | aws-cpp-sdk-macie2/source/model/SensitiveDataItemCategory.cpp | novaquark/aws-sdk-cpp | a0969508545bec9ae2864c9e1e2bb9aff109f90c | [
"Apache-2.0"
] | null | null | null | aws-cpp-sdk-macie2/source/model/SensitiveDataItemCategory.cpp | novaquark/aws-sdk-cpp | a0969508545bec9ae2864c9e1e2bb9aff109f90c | [
"Apache-2.0"
] | null | null | null | ๏ปฟ/*
* Copyright 2010-2017 Amazon.com, Inc. or its affiliates. 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.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" fil... | 35.421053 | 104 | 0.674591 | orinem |
5d3511231c33ab58c9ee99218408f2a6530cbdb2 | 231 | cpp | C++ | Lista1/lista1_tp1_ex17.cpp | NatalhaSantanna/C | 74af7064a7821f9d94a26bbf0f96090d94744a6b | [
"MIT"
] | 2 | 2022-01-02T22:54:04.000Z | 2022-01-03T00:44:08.000Z | Lista1/lista1_tp1_ex17.cpp | NatalhaSantanna/C | 74af7064a7821f9d94a26bbf0f96090d94744a6b | [
"MIT"
] | null | null | null | Lista1/lista1_tp1_ex17.cpp | NatalhaSantanna/C | 74af7064a7821f9d94a26bbf0f96090d94744a6b | [
"MIT"
] | null | null | null | #include <stdio.h>
int main()
{
int x, y, multiplo;
printf("Digite dois numeros quaisquer: ");
scanf("%d", &x);
scanf("%d", &y);
multiplo = y / x * x;
printf("Maior multiplo de x de y: %d", multiplo);
}
| 15.4 | 53 | 0.536797 | NatalhaSantanna |
5d3eb0ebc99baac80b0d5e44ce200d5ede05af2f | 12,697 | hpp | C++ | jerome/scripting/javascript/impl/context_imp.hpp | leuski-ict/jerome | 6141a21c50903e98a04c79899164e7d0e82fe1c2 | [
"Apache-2.0"
] | 3 | 2018-06-11T10:48:54.000Z | 2021-05-30T07:10:15.000Z | jerome/scripting/javascript/impl/context_imp.hpp | leuski-ict/jerome | 6141a21c50903e98a04c79899164e7d0e82fe1c2 | [
"Apache-2.0"
] | null | null | null | jerome/scripting/javascript/impl/context_imp.hpp | leuski-ict/jerome | 6141a21c50903e98a04c79899164e7d0e82fe1c2 | [
"Apache-2.0"
] | null | null | null | //
// context_imp.hpp
//
// Created by Anton Leuski on 8/11/14.
// Copyright (c) 2015 Anton Leuski & ICT/USC. All rights reserved.
//
// This file is part of Jerome.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You ma... | 32.390306 | 117 | 0.64976 | leuski-ict |
5d3fa899f4df012c27c3585ca637e91a8dd3aab1 | 863 | hpp | C++ | libs/fnd/variant/include/bksge/fnd/variant/detail/raw_idx_visit.hpp | myoukaku/bksge | 0f8b60e475a3f1709723906e4796b5e60decf06e | [
"MIT"
] | 4 | 2018-06-10T13:35:32.000Z | 2021-06-03T14:27:41.000Z | libs/fnd/variant/include/bksge/fnd/variant/detail/raw_idx_visit.hpp | myoukaku/bksge | 0f8b60e475a3f1709723906e4796b5e60decf06e | [
"MIT"
] | 566 | 2017-01-31T05:36:09.000Z | 2022-02-09T05:04:37.000Z | libs/fnd/variant/include/bksge/fnd/variant/detail/raw_idx_visit.hpp | myoukaku/bksge | 0f8b60e475a3f1709723906e4796b5e60decf06e | [
"MIT"
] | 1 | 2018-07-05T04:40:53.000Z | 2018-07-05T04:40:53.000Z | ๏ปฟ/**
* @file raw_idx_visit.hpp
*
* @brief raw_idx_visit ใฎๅฎ็พฉ
*
* @author myoukaku
*/
#ifndef BKSGE_FND_VARIANT_DETAIL_RAW_IDX_VISIT_HPP
#define BKSGE_FND_VARIANT_DETAIL_RAW_IDX_VISIT_HPP
#include <bksge/fnd/variant/detail/do_visit.hpp>
#include <bksge/fnd/variant/detail/variant_cookie.hpp>
#include ... | 23.324324 | 75 | 0.746234 | myoukaku |
5d406dc3b9a6ec78c8957d923397cc03aacf5d56 | 5,005 | cpp | C++ | point_cloud/source/main.cpp | mwkpe/apeiron-examples | dc28324479b4583478b68ee0251af8969b0ff5cf | [
"MIT"
] | null | null | null | point_cloud/source/main.cpp | mwkpe/apeiron-examples | dc28324479b4583478b68ee0251af8969b0ff5cf | [
"MIT"
] | null | null | null | point_cloud/source/main.cpp | mwkpe/apeiron-examples | dc28324479b4583478b68ee0251af8969b0ff5cf | [
"MIT"
] | null | null | null | #include <iostream>
#include <memory>
#ifdef _WIN32
#define WIN32_LEAN_AND_MEAN
#include <windows.h>
#endif
#include "SDL2/SDL.h"
#include "GL/glew.h"
#include "engine/error.h"
#include "engine/input.h"
#include "world.h"
namespace {
void disable_dpi_scaling()
{
#ifdef _WIN32
// Silence gcc >= 8 warning a... | 29.441176 | 98 | 0.671928 | mwkpe |
5d44ab19137a74db8f45db6ae50b47611246d6bc | 6,294 | cpp | C++ | src/operators/processing/meteosat/reflectance.cpp | EmanuelHerrendorf/mapping-core | d28d85547e8ed08df37dad1da142594d3f07a366 | [
"MIT"
] | null | null | null | src/operators/processing/meteosat/reflectance.cpp | EmanuelHerrendorf/mapping-core | d28d85547e8ed08df37dad1da142594d3f07a366 | [
"MIT"
] | 10 | 2018-03-02T13:58:32.000Z | 2020-06-05T11:12:42.000Z | src/operators/processing/meteosat/reflectance.cpp | EmanuelHerrendorf/mapping-core | d28d85547e8ed08df37dad1da142594d3f07a366 | [
"MIT"
] | 3 | 2018-02-26T14:01:43.000Z | 2019-12-09T10:03:17.000Z |
#include "datatypes/raster.h"
#include "datatypes/raster/typejuggling.h"
#include "raster/profiler.h"
#include "raster/opencl.h"
#include "operators/operator.h"
#include "msg_constants.h"
#include "util/sunpos.h"
#include <limits>
#include <memory>
#include <math.h>
#include <ctime> // struct std::tm
#include <str... | 34.393443 | 167 | 0.722593 | EmanuelHerrendorf |
5d4720f45f47701fb52fec67b02aad5b832daada | 629 | hpp | C++ | headers/Events/MouseEvents/MouseMovedEvent.hpp | Gilqamesh/GameEngineDemo | 796bb107df5c01b875c2ae73fcfd44e7c07e3a87 | [
"MIT"
] | null | null | null | headers/Events/MouseEvents/MouseMovedEvent.hpp | Gilqamesh/GameEngineDemo | 796bb107df5c01b875c2ae73fcfd44e7c07e3a87 | [
"MIT"
] | null | null | null | headers/Events/MouseEvents/MouseMovedEvent.hpp | Gilqamesh/GameEngineDemo | 796bb107df5c01b875c2ae73fcfd44e7c07e3a87 | [
"MIT"
] | null | null | null | #ifndef MOUSEMOVED_HPP
# define MOUSEMOVED_HPP
# include "Interfaces/Events/IEvent.hpp"
namespace NAMESPACE
{
class MouseMovedEvent : public IEvent
{
float posX;
float posY;
public:
MouseMovedEvent(float x, float y);
inline float getX() const { return (posX); }
inline float getY() const { return (posY); ... | 25.16 | 107 | 0.736089 | Gilqamesh |
5d5b711927bdd2fb3e92cdfd1e67eb7b35cb3f72 | 581 | cpp | C++ | test/apps/unit/Layout/src/tests/VerticalLayoutTest.cpp | ssaracut/titanium_mobile_blackberry | 952a8100086dcc625584e33abc2dc03340cbb219 | [
"Apache-2.0"
] | 3 | 2015-03-07T15:41:18.000Z | 2015-11-05T05:07:45.000Z | test/apps/unit/Layout/src/tests/VerticalLayoutTest.cpp | ssaracut/titanium_mobile_blackberry | 952a8100086dcc625584e33abc2dc03340cbb219 | [
"Apache-2.0"
] | 1 | 2015-04-12T11:50:33.000Z | 2015-04-12T21:13:19.000Z | test/apps/unit/Layout/src/tests/VerticalLayoutTest.cpp | ssaracut/titanium_mobile_blackberry | 952a8100086dcc625584e33abc2dc03340cbb219 | [
"Apache-2.0"
] | 5 | 2015-01-13T17:14:41.000Z | 2015-05-25T16:54:26.000Z |
#include <stdio.h>
#include <math.h>
#include "CUnit.h"
#include "../Layout/ParseProperty.h"
#include "../Layout/Element.h"
#include "../Layout/Common.h"
#include "../Layout/Vertical.h"
std::string _test_measure_vertical_node_fill_properties() {
return "";
}
std::string _test_measure_vertical_node() {
return "";
... | 20.034483 | 60 | 0.743546 | ssaracut |
5d5c21152213d652caaec11722759770f20ac1b5 | 389 | cpp | C++ | ENativePhysics/src/DbvtBroadphase.cpp | rGovers/Erde-Engine | 3f0550a72aa7cb951da6b4411a4a93bb2503e88e | [
"MIT"
] | null | null | null | ENativePhysics/src/DbvtBroadphase.cpp | rGovers/Erde-Engine | 3f0550a72aa7cb951da6b4411a4a93bb2503e88e | [
"MIT"
] | null | null | null | ENativePhysics/src/DbvtBroadphase.cpp | rGovers/Erde-Engine | 3f0550a72aa7cb951da6b4411a4a93bb2503e88e | [
"MIT"
] | null | null | null | // C++ to C# wrapper functions
#include "BulletCollision/BroadphaseCollision/btDbvtBroadphase.h"
#include "Export.h"
EExportFunc(btDbvtBroadphase*, DbvtBroadphase_new());
EExportFunc(void, DbvtBroadphaser_delete(btDbvtBroadphase* a_ptr));
btDbvtBroadphase* DbvtBroadphase_new() { return new btDbvtBroadphase(); }
v... | 35.363636 | 74 | 0.802057 | rGovers |
5d5f1ae6dd86cded92e8de20828ffedf4cee1a24 | 7,938 | cpp | C++ | Stardust/src/ui/UI.cpp | LucidSigma/stardust | 7012b46b0e75fa272e0bd39f3a1cc483c29fc10c | [
"MIT"
] | 7 | 2020-10-08T11:40:53.000Z | 2022-03-30T10:40:06.000Z | Stardust/src/ui/UI.cpp | LucidSigma/stardust | 7012b46b0e75fa272e0bd39f3a1cc483c29fc10c | [
"MIT"
] | 1 | 2020-10-08T11:44:27.000Z | 2020-12-01T08:43:19.000Z | Stardust/src/ui/UI.cpp | LucidSigma/stardust | 7012b46b0e75fa272e0bd39f3a1cc483c29fc10c | [
"MIT"
] | null | null | null | #include "stardust/ui/UI.h"
#include <cstdio>
#include <cstring>
#include <utility>
#include <RmlUi/Core.h>
#include "stardust/application/Application.h"
#include "stardust/data/MathTypes.h"
#include "stardust/data/Pointers.h"
#include "stardust/data/Types.h"
#include "stardust/filesystem/vfs/VirtualFileHandle.h"
#i... | 33.075 | 214 | 0.480978 | LucidSigma |
5d68b6e81388af5d2330e5e3afc9f9e55eef528c | 25,085 | cpp | C++ | src/epoll/kernel2.cpp | kevindelafield/minerva | 264a198bb3f05c87e26ec28bb93d312b8eaf23f4 | [
"MIT"
] | null | null | null | src/epoll/kernel2.cpp | kevindelafield/minerva | 264a198bb3f05c87e26ec28bb93d312b8eaf23f4 | [
"MIT"
] | null | null | null | src/epoll/kernel2.cpp | kevindelafield/minerva | 264a198bb3f05c87e26ec28bb93d312b8eaf23f4 | [
"MIT"
] | null | null | null | #include <map>
#include <atomic>
#include <cassert>
#include <cstring>
#include <iterator>
#include <thread>
#include <sys/epoll.h>
#include <unistd.h>
#include <ovhttpd/log.h>
#include <ovhttpd/connection.h>
#include "kernel2.h"
namespace epoll
{
connection_state::connection_state(std::shared_ptr<ovhttpd::connec... | 31.914758 | 93 | 0.466255 | kevindelafield |
5d6b5df38008a36913092a9535b8d15513ee1498 | 1,994 | cpp | C++ | Source/Computational Geometry/Two-dimension/Graham Scanning Algorithm.cpp | lmxyy/Code-Library-for-lmxyy | e7740402076588624e2fb3dff7ed916851b2eb76 | [
"MIT"
] | 3 | 2019-06-27T14:14:32.000Z | 2021-01-11T11:36:47.000Z | Source/Computational Geometry/Two-dimension/Graham Scanning Algorithm.cpp | lmxyy/Code-Library-for-lmxyy | e7740402076588624e2fb3dff7ed916851b2eb76 | [
"MIT"
] | null | null | null | Source/Computational Geometry/Two-dimension/Graham Scanning Algorithm.cpp | lmxyy/Code-Library-for-lmxyy | e7740402076588624e2fb3dff7ed916851b2eb76 | [
"MIT"
] | 1 | 2021-04-27T00:26:54.000Z | 2021-04-27T00:26:54.000Z | // BZOJ1069
// ๅธๅ
ไธๆๅคงๅ่พนๅฝข้ข็งฏ
#include<cmath>
#include<algorithm>
#include<cstring>
#include<iostream>
#include<cstdio>
#include<cstdlib>
using namespace std;
const int maxn = 2010;
int N,M; double ans;
struct Point
{
double x,y;
Point() = default;
Point(double _x,double _y):x(_x),y(_y) {}
inline void read() { scanf(... | 23.458824 | 97 | 0.538616 | lmxyy |
5d7155f1c04a425468cec4c2c633ec24779fc0f7 | 3,370 | cpp | C++ | quine/main.cpp | fez2000/shell | cc425e162c17edefc965309de7f11e41270f1696 | [
"MIT"
] | 1 | 2020-10-06T20:34:27.000Z | 2020-10-06T20:34:27.000Z | quine/main.cpp | fez2000/shell | cc425e162c17edefc965309de7f11e41270f1696 | [
"MIT"
] | null | null | null | quine/main.cpp | fez2000/shell | cc425e162c17edefc965309de7f11e41270f1696 | [
"MIT"
] | null | null | null | #include <iostream>
#include <fstream>
#include <string>
#include "header.h"
#include "fonctionlogique.h"
using namespace std;
int main(int argc, char**argv)
{
long start(-1), end(-1), first(1) , seconde(2), nbOfNb(0);
long* numbersListe, *fiboTable;
string file;
string option;
char* separa... | 32.403846 | 108 | 0.297923 | fez2000 |
5d73aaf20c00f28ec822c7aad0dc06fe42335a1b | 218 | cpp | C++ | src/ch01/030401.cpp | polossk/Standard-Code-Library-of-Algorithm-Competition | 18492308515b0447e8a4b5103ce919b56afc2a07 | [
"MIT"
] | 6 | 2017-05-22T10:51:17.000Z | 2020-06-30T01:41:43.000Z | src/ch01/030401.cpp | polossk/Standard-Code-Library-of-Algorithm-Competition | 18492308515b0447e8a4b5103ce919b56afc2a07 | [
"MIT"
] | 1 | 2018-04-23T01:15:23.000Z | 2018-04-23T12:13:48.000Z | src/ch01/030401.cpp | polossk/Standard-Code-Library-of-Algorithm-Competition | 18492308515b0447e8a4b5103ce919b56afc2a07 | [
"MIT"
] | null | null | null | int64 calcPhi(int64 n)
{
int64 ans = n;
for (int64 i = 2; i * i <= n; i++) if (n % i == 0)
{
ans -= ans / i;
while (n % i == 0) n /= i;
}
if (n > 1) ans -= ans / n;
return ans;
} | 19.818182 | 54 | 0.380734 | polossk |
5d74ce21d9f0c7b69fbabc5d0ab241684e575aa0 | 2,536 | hpp | C++ | src/config.hpp | AmbrSb/LServer | 97fde72db060bcc4a5ea4e6fd6d9fff603a23fcf | [
"BSD-2-Clause"
] | 1 | 2021-09-01T08:57:10.000Z | 2021-09-01T08:57:10.000Z | src/config.hpp | AmbrSb/LServer | 97fde72db060bcc4a5ea4e6fd6d9fff603a23fcf | [
"BSD-2-Clause"
] | null | null | null | src/config.hpp | AmbrSb/LServer | 97fde72db060bcc4a5ea4e6fd6d9fff603a23fcf | [
"BSD-2-Clause"
] | null | null | null | /*
* BSD 2-Clause License
*
* Copyright (c) 2021, Amin Saba
* 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,
... | 34.27027 | 79 | 0.73265 | AmbrSb |
5d7707e74f144ac24b0c95a9da5f3eddd51c2c10 | 2,203 | hpp | C++ | include/gba/allocator/mode0.hpp | felixjones/gba-plusplus | 79dce6c3095b52de72f96a17871b4d6c8b9aaf2f | [
"Zlib"
] | 33 | 2020-11-02T22:03:27.000Z | 2022-03-25T04:40:29.000Z | include/gba/allocator/mode0.hpp | felixjones/gbaplusplus | 79dce6c3095b52de72f96a17871b4d6c8b9aaf2f | [
"Zlib"
] | 21 | 2019-09-05T15:10:52.000Z | 2020-06-21T15:08:54.000Z | include/gba/allocator/mode0.hpp | felixjones/gba-plusplus | 79dce6c3095b52de72f96a17871b4d6c8b9aaf2f | [
"Zlib"
] | 3 | 2020-11-02T21:44:46.000Z | 2022-02-23T17:37:00.000Z | #ifndef GBAXX_ALLOCATOR_MODE0_HPP
#define GBAXX_ALLOCATOR_MODE0_HPP
#include <gba/allocator/bitset_types.hpp>
#include <gba/allocator/buffer.hpp>
#include <gba/allocator/object_tile.hpp>
#include <gba/allocator/screen_regular.hpp>
#include <gba/allocator/tile_4bpp.hpp>
#include <gba/allocator/tile_8bpp.hpp>
#include <... | 27.5375 | 107 | 0.638221 | felixjones |
5d79b1fc858115dfcd3a403cf0197708ff8a5d87 | 1,525 | cpp | C++ | Code/1521_yy12/1521.cpp | TomoyoSang/Online-Judge | a7259aeb3149beb4d5f94d3f0358cbd6410a14b9 | [
"MIT"
] | 1 | 2019-08-11T15:16:11.000Z | 2019-08-11T15:16:11.000Z | Code/1521_yy12/1521.cpp | TomoyoSang/Online-Judge | a7259aeb3149beb4d5f94d3f0358cbd6410a14b9 | [
"MIT"
] | null | null | null | Code/1521_yy12/1521.cpp | TomoyoSang/Online-Judge | a7259aeb3149beb4d5f94d3f0358cbd6410a14b9 | [
"MIT"
] | null | null | null | #include <iostream>
#include <cstdio>
using namespace std;
struct node
{
node* next = NULL;
int node_num = 0;
int dep = 0;
};
node* nodelist[30009];
bool vis[30009] = { 0 };
int dep_dep[30009] = { 0 };
void insert(int a, int b)
{
node* p = new node;
p->node_num = b;
p->next = nodelist[a]->next;
nodelist[a]-... | 14.663462 | 72 | 0.534426 | TomoyoSang |
5d7eae2bc566e422d023087ae725665c7e8e4c97 | 917 | cpp | C++ | Userland/Libraries/LibPthread/forward.cpp | r00ster91/serenity | f8387dea2689d564aff612bfd4ec5086393fac35 | [
"BSD-2-Clause"
] | 19,438 | 2019-05-20T15:11:11.000Z | 2022-03-31T23:31:32.000Z | Userland/Libraries/LibPthread/forward.cpp | r00ster91/serenity | f8387dea2689d564aff612bfd4ec5086393fac35 | [
"BSD-2-Clause"
] | 7,882 | 2019-05-20T01:03:52.000Z | 2022-03-31T23:26:31.000Z | Userland/Libraries/LibPthread/forward.cpp | r00ster91/serenity | f8387dea2689d564aff612bfd4ec5086393fac35 | [
"BSD-2-Clause"
] | 2,721 | 2019-05-23T00:44:57.000Z | 2022-03-31T22:49:34.000Z | /*
* Copyright (c) 2021, Gunnar Beutner <gunnar@beutner.name>
*
* SPDX-License-Identifier: BSD-2-Clause
*/
#include <LibC/bits/pthread_forward.h>
static const PthreadFunctions s_functions = {
.pthread_mutex_trylock = pthread_mutex_trylock,
.pthread_mutex_destroy = pthread_mutex_destroy,
.pthread_mute... | 29.580645 | 60 | 0.776445 | r00ster91 |
5d8085a34bb90623674c20ce4d7797099582ce07 | 1,881 | cpp | C++ | tests/test087.cpp | elishacloud/rapidcsv | 676e622a3d84de19af5528918e14f50f1c525b82 | [
"BSD-3-Clause"
] | null | null | null | tests/test087.cpp | elishacloud/rapidcsv | 676e622a3d84de19af5528918e14f50f1c525b82 | [
"BSD-3-Clause"
] | null | null | null | tests/test087.cpp | elishacloud/rapidcsv | 676e622a3d84de19af5528918e14f50f1c525b82 | [
"BSD-3-Clause"
] | null | null | null | // test087.cpp - numeric locale
#include <clocale>
#include <rapidcsv.h>
#include "unittest.h"
int main()
{
int rv = 0;
std::string loc = "de_DE.UTF-8"; // uses comma (,) as decimal separator
if (std::setlocale(LC_ALL, loc.c_str()) == nullptr)
{
std::cout << "locale " << loc << " not available, skipping ... | 27.26087 | 82 | 0.591175 | elishacloud |
5d833af484815daa58979de7b4f64879d9619b4d | 10,990 | cpp | C++ | src/ProcessorScript.cpp | MyunginLee/tinc | d5d681d6fddca5fe9c194df0ba25902d785c895f | [
"BSD-3-Clause"
] | null | null | null | src/ProcessorScript.cpp | MyunginLee/tinc | d5d681d6fddca5fe9c194df0ba25902d785c895f | [
"BSD-3-Clause"
] | 2 | 2020-12-22T19:22:37.000Z | 2020-12-22T19:44:09.000Z | src/ProcessorScript.cpp | MyunginLee/tinc | d5d681d6fddca5fe9c194df0ba25902d785c895f | [
"BSD-3-Clause"
] | 3 | 2020-07-23T00:16:54.000Z | 2022-02-05T08:28:34.000Z |
#include "tinc/ProcessorScript.hpp"
#include "nlohmann/json.hpp"
#include <array>
#include <atomic>
#include <cstdio>
#include <ctime>
#include <fstream>
#include <iomanip> // setprecision
#include <iostream>
#include <mutex>
#include <thread>
#include <utility> // For pair
#if defined(AL_OSX) || defined(AL_LINUX) ... | 27.475 | 78 | 0.621019 | MyunginLee |
5d8515e56f0e0be223461c5c5f7be8fe554b99ab | 2,889 | cpp | C++ | src/can_msg_wrapper.cpp | mh-Robotics/jimmbot_base | 3703203a0b213d58700ce1860fd60a13042b1cb5 | [
"MIT"
] | null | null | null | src/can_msg_wrapper.cpp | mh-Robotics/jimmbot_base | 3703203a0b213d58700ce1860fd60a13042b1cb5 | [
"MIT"
] | null | null | null | src/can_msg_wrapper.cpp | mh-Robotics/jimmbot_base | 3703203a0b213d58700ce1860fd60a13042b1cb5 | [
"MIT"
] | null | null | null | #include "jimmbot_base/can_msg_wrapper.hpp"
namespace jimmbot_base
{
void CanMsgWrapper::setSpeed(uint8_t command, double speed)
{
this->_command = command;
this->_speed = speed;
}
double CanMsgWrapper::getSpeed(void)
{
return this->_speed;
}
jimmbot_msgs::canFrame CanMsgWrapper::getSpeedI... | 28.048544 | 112 | 0.702665 | mh-Robotics |
5d870921ed073c9f0d45b04a270f540c799530a1 | 3,161 | hpp | C++ | include/luacxx/core/type_traits.hpp | EVaillant/luacxx | c0b2bea96d1b5acff6782271ccb177c3eb759393 | [
"BSL-1.0"
] | 1 | 2022-01-22T15:47:25.000Z | 2022-01-22T15:47:25.000Z | include/luacxx/core/type_traits.hpp | EVaillant/luacxx | c0b2bea96d1b5acff6782271ccb177c3eb759393 | [
"BSL-1.0"
] | 1 | 2015-11-26T00:27:04.000Z | 2015-11-26T20:21:00.000Z | include/luacxx/core/type_traits.hpp | EVaillant/luacxx | c0b2bea96d1b5acff6782271ccb177c3eb759393 | [
"BSL-1.0"
] | 1 | 2022-01-22T16:11:41.000Z | 2022-01-22T16:11:41.000Z | #ifndef LUACXX_CORE_TYPE_TRAITS_HPP
# define LUACXX_CORE_TYPE_TRAITS_HPP
# include <memory>
struct lua_State;
namespace luacxx
{
typedef lua_State* state_type;
//
//
// register_type
template <class T> struct register_type
{
typedef T type;
};
template <class T> struct register_type<std::unique_... | 27.486957 | 119 | 0.676368 | EVaillant |
5d888f16724e68ec5d7febbf157fd480275d25d4 | 2,981 | cpp | C++ | examples/lib_and_noinst_test_programs/examples/python/pucker.cpp | tjgiese/atizer | b8cdb8f4bac7cedfb566d766acee5fe0cc7a7bd3 | [
"MIT"
] | null | null | null | examples/lib_and_noinst_test_programs/examples/python/pucker.cpp | tjgiese/atizer | b8cdb8f4bac7cedfb566d766acee5fe0cc7a7bd3 | [
"MIT"
] | null | null | null | examples/lib_and_noinst_test_programs/examples/python/pucker.cpp | tjgiese/atizer | b8cdb8f4bac7cedfb566d766acee5fe0cc7a7bd3 | [
"MIT"
] | null | null | null | //
// Copyright 2013 Timothy John Giese
//
#include "pucker.hpp"
#include "exceptions.hpp"
#include <sstream>
#include <fstream>
pucker::pucker( char const * fname )
{
int ndata = tdbsc_readdatasize_(fname);
data.resize(ndata);
tdbsc_readdata_(fname,&order,
dimsize.data(),minmax.data(),
periodic.data(),d... | 22.081481 | 70 | 0.561557 | tjgiese |
5d8fb91bece4141fc98288fe72204cd901e935d5 | 4,412 | cpp | C++ | herald-tests/nordicuart-tests.cpp | theheraldproject/herald-for-cpp | 571e92f5c3bb363df40dba98b7e88ffe4609cdc2 | [
"Apache-2.0"
] | 8 | 2021-04-02T22:39:50.000Z | 2022-03-05T21:50:54.000Z | herald-tests/nordicuart-tests.cpp | theheraldproject/herald-for-cpp | 571e92f5c3bb363df40dba98b7e88ffe4609cdc2 | [
"Apache-2.0"
] | 49 | 2021-04-02T10:59:42.000Z | 2021-12-30T16:44:46.000Z | herald-tests/nordicuart-tests.cpp | theheraldproject/herald-for-cpp | 571e92f5c3bb363df40dba98b7e88ffe4609cdc2 | [
"Apache-2.0"
] | 8 | 2021-03-31T18:57:49.000Z | 2021-09-19T08:53:11.000Z | // Copyright 2021 Herald Project Contributors
// SPDX-License-Identifier: Apache-2.0
//
#include "catch.hpp"
#include "test-templates.h"
#include "herald/herald.h"
#include <cstring>
TEST_CASE("nordicuart-callbacks-basics", "[nordicuart][callbacks][basics]") {
SECTION("nordicuart-callbacks-basics") {
Dummy... | 44.565657 | 222 | 0.695376 | theheraldproject |
5d92a53e03c26758782a7def1decbcf6cfa45c75 | 33,994 | hpp | C++ | include/System/Text/UnicodeEncoding.hpp | RedBrumbler/BeatSaber-Quest-Codegen | 73dda50b5a3e51f10d86b766dcaa24b0c6226e25 | [
"Unlicense"
] | null | null | null | include/System/Text/UnicodeEncoding.hpp | RedBrumbler/BeatSaber-Quest-Codegen | 73dda50b5a3e51f10d86b766dcaa24b0c6226e25 | [
"Unlicense"
] | null | null | null | include/System/Text/UnicodeEncoding.hpp | RedBrumbler/BeatSaber-Quest-Codegen | 73dda50b5a3e51f10d86b766dcaa24b0c6226e25 | [
"Unlicense"
] | null | null | null | // Autogenerated from CppHeaderCreator
// Created by Sc2ad
// =========================================================================
#pragma once
// Begin includes
#include "beatsaber-hook/shared/utils/typedefs.h"
#include "beatsaber-hook/shared/utils/byref.hpp"
// Including type: System.Text.Encoding
#inclu... | 66.007767 | 218 | 0.726893 | RedBrumbler |
5d9505bb09f4797e424ce266825a76e06b663190 | 1,005 | cpp | C++ | 3DApp/main.cpp | aleios/3dapp | 1593ebd58ef1fd143752481ff1f0b8ce6b69a5ed | [
"MIT"
] | null | null | null | 3DApp/main.cpp | aleios/3dapp | 1593ebd58ef1fd143752481ff1f0b8ce6b69a5ed | [
"MIT"
] | null | null | null | 3DApp/main.cpp | aleios/3dapp | 1593ebd58ef1fd143752481ff1f0b8ce6b69a5ed | [
"MIT"
] | null | null | null | ๏ปฟ#include <iostream>
#include <time.h>
#include <GL/glew.h>
#include "Game.hpp"
#include "Matrix.hpp"
#include "SceneController.hpp"
int main(int argc, char** argv)
{
srand(static_cast<unsigned int>(time(0)));
// Enable Flush to Zero (FTZ) and Denormals are Zero (DAZ) to reduce impact caused by a denormali... | 22.840909 | 121 | 0.656716 | aleios |
5d9777937ecae8f3c408437b075d43a165439891 | 6,418 | hpp | C++ | mjolnir/omp/BAOABLangevinIntegrator.hpp | yutakasi634/Mjolnir | ab7a29a47f994111e8b889311c44487463f02116 | [
"MIT"
] | null | null | null | mjolnir/omp/BAOABLangevinIntegrator.hpp | yutakasi634/Mjolnir | ab7a29a47f994111e8b889311c44487463f02116 | [
"MIT"
] | 2 | 2020-04-07T11:41:45.000Z | 2020-04-08T10:01:38.000Z | mjolnir/omp/BAOABLangevinIntegrator.hpp | yutakasi634/Mjolnir | ab7a29a47f994111e8b889311c44487463f02116 | [
"MIT"
] | null | null | null | #ifndef MJOLNIR_OMP_BAOAB_LANGEVIN_INTEGRATOR_HPP
#define MJOLNIR_OMP_BAOAB_LANGEVIN_INTEGRATOR_HPP
#include <mjolnir/omp/OpenMPSimulatorTraits.hpp>
#include <mjolnir/omp/System.hpp>
#include <mjolnir/omp/RandomNumberGenerator.hpp>
#include <mjolnir/omp/SystemMotionRemover.hpp>
#include <mjolnir/core/BAOABLangevinInteg... | 35.458564 | 103 | 0.602213 | yutakasi634 |
5d985561b06acf5de4e29f57b2253ddeb157afd2 | 4,690 | cc | C++ | src/ufo/filters/TrackCheckUtils.cc | fmahebert/ufo | 2af9b91433553ca473c72fcd131400a01c3aabdb | [
"Apache-2.0"
] | 1 | 2021-10-08T16:37:25.000Z | 2021-10-08T16:37:25.000Z | src/ufo/filters/TrackCheckUtils.cc | fmahebert/ufo | 2af9b91433553ca473c72fcd131400a01c3aabdb | [
"Apache-2.0"
] | 9 | 2021-06-25T17:18:06.000Z | 2021-10-08T17:40:31.000Z | src/ufo/filters/TrackCheckUtils.cc | fmahebert/ufo | 2af9b91433553ca473c72fcd131400a01c3aabdb | [
"Apache-2.0"
] | 31 | 2021-06-24T18:07:53.000Z | 2021-10-08T15:40:39.000Z | /*
* (C) Copyright 2020 Met Office UK
*
* This software is licensed under the terms of the Apache Licence Version 2.0
* which can be obtained at http://www.apache.org/licenses/LICENSE-2.0.
*/
#include <algorithm>
#include <cmath>
#include <memory>
#include <string>
#include "eckit/exception/Exceptions.h"
#includ... | 37.822581 | 98 | 0.720896 | fmahebert |
4b6a31c2c17bf1917d075659f8d4afbcf909e7d8 | 1,187 | cpp | C++ | test/modbus/adu/message/client_message_test.cpp | activesys/asps | 36cc90a192d13df8669f9743f80a0662fe888d16 | [
"MIT"
] | null | null | null | test/modbus/adu/message/client_message_test.cpp | activesys/asps | 36cc90a192d13df8669f9743f80a0662fe888d16 | [
"MIT"
] | null | null | null | test/modbus/adu/message/client_message_test.cpp | activesys/asps | 36cc90a192d13df8669f9743f80a0662fe888d16 | [
"MIT"
] | null | null | null | // Copyright (c) 2021 The asps Authors. All rights reserved.
// Use of this source code is governed by a MIT license that can be
// found in the LICENSE file. See the AUTHORS file for names of contributors.
//
// Unit test for Modbus ADU Client Message.
#include <gtest/gtest.h>
#include <asps/modbus/adu/message/client... | 28.95122 | 77 | 0.700927 | activesys |
4b6d88432e8cbfbde294a26b89faad34e4256ab7 | 2,213 | hpp | C++ | bia/compiler/elve/helpers.hpp | bialang/bia | b54fff096b4fe91ddb0b1d509ea828daa11cee7e | [
"BSD-3-Clause"
] | 2 | 2017-09-09T17:03:18.000Z | 2018-03-02T20:02:02.000Z | bia/compiler/elve/helpers.hpp | terrakuh/Bia | 412b7e8aeb259f4925c3b588f6025760a43cd0b7 | [
"BSD-3-Clause"
] | 7 | 2018-10-11T18:14:19.000Z | 2018-12-26T15:31:04.000Z | bia/compiler/elve/helpers.hpp | terrakuh/Bia | 412b7e8aeb259f4925c3b588f6025760a43cd0b7 | [
"BSD-3-Clause"
] | null | null | null | #ifndef BIA_COMPILER_ELVE_HELPERS_HPP_
#define BIA_COMPILER_ELVE_HELPERS_HPP_
#include "../errors.hpp"
#include "../flow_controller.hpp"
#include "../symbol/manager.hpp"
#include "../warnings.hpp"
#include <bia/bytecode/instructor.hpp>
#include <bia/internal/context.hpp>
#include <bia/internal/type/definition.hpp>
#i... | 33.029851 | 109 | 0.76864 | bialang |
4b778ff428b43f0a495f295b6c4f849f9440fa62 | 5,353 | hpp | C++ | src/CompareStore.hpp | JBenda/PictureSorter | daa7b2af3ac1ec5202df47e12af607510f612493 | [
"MIT"
] | null | null | null | src/CompareStore.hpp | JBenda/PictureSorter | daa7b2af3ac1ec5202df47e12af607510f612493 | [
"MIT"
] | null | null | null | src/CompareStore.hpp | JBenda/PictureSorter | daa7b2af3ac1ec5202df47e12af607510f612493 | [
"MIT"
] | null | null | null | #include <fstream>
#include <vector>
#include <cassert>
#include <iostream>
#include <set>
template <typename T>
class CompareStore {
public:
CompareStore(T nullValue) : _decode{nullptr}, _null{nullValue} {
}
/* CompareStore(std::size_t elemnets, T nullValue) : _decode{nullptr}, _null{nullValue} {
std::size_t... | 29.412088 | 106 | 0.560247 | JBenda |
4b78941b97ca1b8757c21e10d21b76f148a6f1bd | 1,049 | cpp | C++ | library/lattice/test/src/test_tetengo.lattice.connection.cpp | kaorut/tetengo | 3360cce3e3f4c92b18154927685986c1fa7b4e8e | [
"MIT"
] | null | null | null | library/lattice/test/src/test_tetengo.lattice.connection.cpp | kaorut/tetengo | 3360cce3e3f4c92b18154927685986c1fa7b4e8e | [
"MIT"
] | 153 | 2019-08-11T05:26:36.000Z | 2021-06-23T17:24:04.000Z | library/lattice/test/src/test_tetengo.lattice.connection.cpp | kaorut/tetengo | 3360cce3e3f4c92b18154927685986c1fa7b4e8e | [
"MIT"
] | null | null | null | /*! \file
\brief A connection.
Copyright (C) 2019-2021 kaoru https://www.tetengo.org/
*/
#include <boost/preprocessor.hpp>
#include <boost/test/unit_test.hpp>
#include <tetengo/lattice/connection.h>
#include <tetengo/lattice/connection.hpp>
BOOST_AUTO_TEST_SUITE(test_tetengo)
BOOST_AUTO_TEST... | 19.792453 | 79 | 0.666349 | kaorut |
4b79200fb3e8071fac3dcd04ccc9e839157ce681 | 131 | cpp | C++ | acwing/0026.cpp | zyzisyz/OJ | 55221a55515231182b6bd133edbdb55501a565fc | [
"Apache-2.0"
] | null | null | null | acwing/0026.cpp | zyzisyz/OJ | 55221a55515231182b6bd133edbdb55501a565fc | [
"Apache-2.0"
] | null | null | null | acwing/0026.cpp | zyzisyz/OJ | 55221a55515231182b6bd133edbdb55501a565fc | [
"Apache-2.0"
] | 2 | 2020-01-01T13:49:08.000Z | 2021-03-06T06:54:26.000Z | #include<bitset>
class Solution {
public:
int NumberOf1(int n) {
bitset<32> bs(n);
return bs.count();
}
};
| 14.555556 | 26 | 0.549618 | zyzisyz |
4b7b2a713084dfccebaf78defff0597ef990e597 | 578 | cpp | C++ | 0043.MultiplyStrings/main.cpp | SumanSudhir/LeetCode | cab5205747b8c1a9d5c27f0e821cf6e6d9ac10d6 | [
"MIT"
] | 1 | 2020-01-13T11:10:35.000Z | 2020-01-13T11:10:35.000Z | 0043.MultiplyStrings/main.cpp | SumanSudhir/LeetCode | cab5205747b8c1a9d5c27f0e821cf6e6d9ac10d6 | [
"MIT"
] | 4 | 2020-01-01T09:47:39.000Z | 2020-04-08T08:34:29.000Z | 0043.MultiplyStrings/main.cpp | SumanSudhir/LeetCode | cab5205747b8c1a9d5c27f0e821cf6e6d9ac10d6 | [
"MIT"
] | null | null | null | class Solution {
public:
string multiply(string num1, string num2) {
int n1 = num1.size();
int n2 = num2.size();
string prod(n1+n2, '0');
int temp;
for(int i=n2-1; i>=0; i--){
for(int j=n1-1;j>=0; j--){
temp = (num1[j]- '0')*(num2[i] - '0') + (pr... | 23.12 | 76 | 0.385813 | SumanSudhir |
4b84ce7db9814f91381cdf5a1d0fee193f332c86 | 573 | cpp | C++ | if-statements-2.cpp | u1tbmo/cpp-basics | d2d0d3f2c4c7de128f4359ad936a58ceb15fc5d7 | [
"MIT"
] | null | null | null | if-statements-2.cpp | u1tbmo/cpp-basics | d2d0d3f2c4c7de128f4359ad936a58ceb15fc5d7 | [
"MIT"
] | null | null | null | if-statements-2.cpp | u1tbmo/cpp-basics | d2d0d3f2c4c7de128f4359ad936a58ceb15fc5d7 | [
"MIT"
] | null | null | null | //If Statements 2 by u1tbmo
#include <iostream>
using namespace std;
int get_max(int x, int y, int z){
int result;
if(x >= y && x >= z){
result = x;
}
else if(y >= x && y >= z){
result = y;
}
else if(z >= x && z >= y){
result = z;
}
return result;
}
int main()... | 17.363636 | 62 | 0.465969 | u1tbmo |
4b8ca650617c96b0138888e1f2ffd06f534d6614 | 1,870 | hpp | C++ | library/include/tndev/geo/latlng_elevation.hpp | tndev/geolib | 3edaa22fcfe031165c276a3d075bdd7ff9934f99 | [
"BSD-3-Clause"
] | 3 | 2020-06-15T13:59:27.000Z | 2021-12-06T12:31:24.000Z | library/include/tndev/geo/latlng_elevation.hpp | tndev/geolib | 3edaa22fcfe031165c276a3d075bdd7ff9934f99 | [
"BSD-3-Clause"
] | null | null | null | library/include/tndev/geo/latlng_elevation.hpp | tndev/geolib | 3edaa22fcfe031165c276a3d075bdd7ff9934f99 | [
"BSD-3-Clause"
] | 1 | 2021-12-06T12:31:45.000Z | 2021-12-06T12:31:45.000Z | #pragma once
#include <tndev/geo/extent.hpp>
#include <tndev/geo/latlng.hpp>
namespace tndev::geo {
struct latlng_elevation_trait;
template <angle_unit T>
struct latlng_elevation : public latlng<T> {
using trait = latlng_elevation_trait;
using value_type = double;
using type = latlng_elevation;
using... | 34 | 77 | 0.674866 | tndev |
4b939c349bf76bd3755e2cb659db0da58e152828 | 1,690 | hpp | C++ | pwiz/analysis/eharmony/Matcher.hpp | edyp-lab/pwiz-mzdb | d13ce17f4061596c7e3daf9cf5671167b5996831 | [
"Apache-2.0"
] | 11 | 2015-01-08T08:33:44.000Z | 2019-07-12T06:14:54.000Z | pwiz/analysis/eharmony/Matcher.hpp | shze/pwizard-deb | 4822829196e915525029a808470f02d24b8b8043 | [
"Apache-2.0"
] | 61 | 2015-05-27T11:20:11.000Z | 2019-12-20T15:06:21.000Z | pwiz/analysis/eharmony/Matcher.hpp | shze/pwizard-deb | 4822829196e915525029a808470f02d24b8b8043 | [
"Apache-2.0"
] | 4 | 2016-02-03T09:41:16.000Z | 2021-08-01T18:42:36.000Z | //
// $Id: Matcher.hpp 1539 2009-11-19 20:12:28Z khoff $
//
//
// Original author: Kate Hoff <katherine.hoff@proteowizard.org>
//
// Copyright 2009 Center for Applied Molecular Medicine
// University of Southern California, Los Angeles, CA
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you m... | 24.492754 | 136 | 0.737278 | edyp-lab |
4b9700f77f9c3eacfed8a543226f634cf6e0b746 | 1,551 | cpp | C++ | core/sources/Config.cpp | Rertsyd/LumiRT | d562fd786f769b385bc051e2ea8bcd26162a9dc6 | [
"MIT"
] | null | null | null | core/sources/Config.cpp | Rertsyd/LumiRT | d562fd786f769b385bc051e2ea8bcd26162a9dc6 | [
"MIT"
] | null | null | null | core/sources/Config.cpp | Rertsyd/LumiRT | d562fd786f769b385bc051e2ea8bcd26162a9dc6 | [
"MIT"
] | null | null | null | /* ************************************************************************** */
/* ,, */
/* `7MMF' db `7MM"""Mq. MMP""MM""YMM */
/* MM MM `MM.P' MM `7 ... | 33.717391 | 80 | 0.373308 | Rertsyd |
4b97dcda749da5e709e744360bb5702d9dbe9a46 | 3,813 | cpp | C++ | Classes/pages/RootPage.cpp | elloop/cocos2d-x-cpp-demos | 607dd445ddac752a06823cc7addf8979b59f351b | [
"MIT"
] | 3 | 2015-12-08T16:38:06.000Z | 2021-08-13T02:12:52.000Z | Classes/pages/RootPage.cpp | elloop/cocos2d-x-cpp-demos | 607dd445ddac752a06823cc7addf8979b59f351b | [
"MIT"
] | null | null | null | Classes/pages/RootPage.cpp | elloop/cocos2d-x-cpp-demos | 607dd445ddac752a06823cc7addf8979b59f351b | [
"MIT"
] | 1 | 2021-08-13T02:12:53.000Z | 2021-08-13T02:12:53.000Z | #include "pages/RootPage.h"
#include "PageManager.h"
#include "message/Message.h"
#include "message/MessageCenter.h"
#include "pages/MainPage.h"
#include "customs/Menu.h"
#include "GUI/CCScrollView/CCScrollView.h"
#include <functional>
USING_NS_CC;
USING_NS_CC_EXT;
RootPage::RootPage()
: _backLayer(nullptr)
, _middl... | 25.251656 | 79 | 0.681091 | elloop |
4ba6655e0f38d564188c7516182bdc5346654ac0 | 1,764 | hpp | C++ | ffftpgui/myfilesystemmodel.hpp | hatomania/ffftp | 01bd2e6cf1bf49b3209503bcdcb16580b2fe4c9f | [
"BSD-2-Clause"
] | null | null | null | ffftpgui/myfilesystemmodel.hpp | hatomania/ffftp | 01bd2e6cf1bf49b3209503bcdcb16580b2fe4c9f | [
"BSD-2-Clause"
] | null | null | null | ffftpgui/myfilesystemmodel.hpp | hatomania/ffftp | 01bd2e6cf1bf49b3209503bcdcb16580b2fe4c9f | [
"BSD-2-Clause"
] | null | null | null | ๏ปฟ#pragma once
#include <QtCore/QAbstractItemModel>
#include <QtCore/QFileInfo>
class MyDirList {
public:
explicit MyDirList();
};
class MyDir {
public:
explicit MyDir(const QString& path, bool isshowndot);
void setShowDot(bool isshowndot);
bool showDot() const;
void setSorting(int flags);
con... | 29.898305 | 111 | 0.720522 | hatomania |
4ba68d8da75f9e243efa264535f19bcfd8485a8f | 2,577 | hpp | C++ | Common/CUDA/RandomNumberGenerator.hpp | tsadakane/TIGRE | a853cd2d4a6bc9509c01414b85ca75b4448fd700 | [
"BSD-3-Clause"
] | 326 | 2016-07-01T10:48:09.000Z | 2022-03-20T07:34:52.000Z | Common/CUDA/RandomNumberGenerator.hpp | tsadakane/TIGRE | a853cd2d4a6bc9509c01414b85ca75b4448fd700 | [
"BSD-3-Clause"
] | 311 | 2016-07-05T16:00:06.000Z | 2022-03-30T12:14:55.000Z | Common/CUDA/RandomNumberGenerator.hpp | tsadakane/TIGRE | a853cd2d4a6bc9509c01414b85ca75b4448fd700 | [
"BSD-3-Clause"
] | 157 | 2016-08-08T12:13:09.000Z | 2022-03-17T00:37:45.000Z | /*-------------------------------------------------------------------------
*
* Header CUDA functions for random number generator
*
* Adds noise of Poisson and normal distribution to the input.
*
* CODE by Tomoyuki SADAKANE
* --------------------------------------------------------------------------... | 51.54 | 130 | 0.636399 | tsadakane |
4ba779d6eb9a0337a69f42b52f09d809df362f5c | 4,372 | cpp | C++ | src/vcStringFormat.cpp | zengweicheng666/vaultclient | 7b2c929bf5d77f98e9414765520e84cdd9ac8dc8 | [
"MIT"
] | 1 | 2020-07-15T14:04:47.000Z | 2020-07-15T14:04:47.000Z | src/vcStringFormat.cpp | zengweicheng666/vaultclient | 7b2c929bf5d77f98e9414765520e84cdd9ac8dc8 | [
"MIT"
] | null | null | null | src/vcStringFormat.cpp | zengweicheng666/vaultclient | 7b2c929bf5d77f98e9414765520e84cdd9ac8dc8 | [
"MIT"
] | null | null | null | #include "vcStringFormat.h"
#include "udPlatformUtil.h"
#include "udStringUtil.h"
const char *vcStringFormat(const char *pFormatString, const char **ppStrings, size_t numStrings)
{
int len;
for (len = 0; pFormatString[len] != '\0'; ++len)
if (pFormatString[len] == '|')
++len;
char *pBuf = nullptr;
i... | 23.255319 | 126 | 0.528591 | zengweicheng666 |
4babcab49002d417be8c841a81475aac6ef1ed75 | 773 | cpp | C++ | algorithm/binary_tree.cpp | rickard1117/recipes | 6b0d38b0076a2a85e9eb64a5d20ca1eef088004d | [
"BSD-3-Clause"
] | null | null | null | algorithm/binary_tree.cpp | rickard1117/recipes | 6b0d38b0076a2a85e9eb64a5d20ca1eef088004d | [
"BSD-3-Clause"
] | null | null | null | algorithm/binary_tree.cpp | rickard1117/recipes | 6b0d38b0076a2a85e9eb64a5d20ca1eef088004d | [
"BSD-3-Clause"
] | null | null | null | #include <iostream>
#include <queue>
#include <memory>
// ๅไบๅๆ ็ธๅ
ณ็ไธไบ็ฎๆณ็ๅฎ็ฐ
using namespace std;
struct Node {
explicit Node(int v): left(nullptr), right(nullptr), val(v) {
}
const Node *add_left(int v) {
left = make_unique<Node>(v);
return left.get();
}
const Node *add_right(int v) {
right = m... | 17.568182 | 63 | 0.652005 | rickard1117 |
4bac788775dd06694d573e9bbc600420efa5a7f1 | 5,330 | cpp | C++ | Userland/Utilities/unzip.cpp | andrigamerita/serenity | cf44bbdd0d5f1aaa58fd8c8f40de57addc65e858 | [
"BSD-2-Clause"
] | 1 | 2021-06-11T03:11:11.000Z | 2021-06-11T03:11:11.000Z | Userland/Utilities/unzip.cpp | andrigamerita/serenity | cf44bbdd0d5f1aaa58fd8c8f40de57addc65e858 | [
"BSD-2-Clause"
] | null | null | null | Userland/Utilities/unzip.cpp | andrigamerita/serenity | cf44bbdd0d5f1aaa58fd8c8f40de57addc65e858 | [
"BSD-2-Clause"
] | null | null | null | /*
* Copyright (c) 2020, Andrรฉs Vieira <anvieiravazquez@gmail.com>
* 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 noti... | 38.071429 | 127 | 0.664728 | andrigamerita |
4badce1c9580e3bc9e12ee5a08cde1bcc8b81cfa | 1,931 | cc | C++ | examples/ffmpeg.cc | hhool/libcrtc | ba1488043032c727b4a129574bf2f328ca3c1213 | [
"MIT"
] | 111 | 2017-04-24T08:07:52.000Z | 2022-02-24T09:40:43.000Z | examples/ffmpeg.cc | hhool/libcrtc | ba1488043032c727b4a129574bf2f328ca3c1213 | [
"MIT"
] | 1 | 2020-03-04T14:04:19.000Z | 2020-03-04T14:04:19.000Z | examples/ffmpeg.cc | hhool/libcrtc | ba1488043032c727b4a129574bf2f328ca3c1213 | [
"MIT"
] | 45 | 2017-08-13T14:41:51.000Z | 2022-03-29T11:11:11.000Z | #include <stdio.h>
#include <string>
#include <utility>
#include "crtc.h"
using namespace crtc;
const size_t byteLength = 1382400;
// ffmpeg -f avfoundation -pix_fmt nv12 -s 1280x720 -i "0x7ffb5e40e8a0" -c:v rawvideo -f rawvideo -pix_fmt yuv420p -s 1280x720 - | ./out/ffmpeg | ffmpeg -f rawvideo -pix_fmt yuv420p -s:... | 29.257576 | 232 | 0.620922 | hhool |
4baff01c3acd3c387bb408b4cdeec2333f52f23a | 283 | cpp | C++ | src/lib/iotaap/iotaap_hall/IoTaaP_Hall.cpp | iotaap/iotaap-core | 207ead71d1459c0ff74d6ff25be7c6c02a86c178 | [
"Apache-2.0"
] | 2 | 2021-02-10T08:39:32.000Z | 2021-02-10T08:48:49.000Z | src/lib/iotaap/iotaap_hall/IoTaaP_Hall.cpp | iotaap/iotaap-core | 207ead71d1459c0ff74d6ff25be7c6c02a86c178 | [
"Apache-2.0"
] | 1 | 2021-02-10T09:33:23.000Z | 2021-02-10T09:33:23.000Z | src/lib/iotaap/iotaap_hall/IoTaaP_Hall.cpp | iotaap/iotaap-core | 207ead71d1459c0ff74d6ff25be7c6c02a86c178 | [
"Apache-2.0"
] | 3 | 2021-02-10T08:39:34.000Z | 2021-02-10T11:34:43.000Z | #include "IoTaaP_Hall.h"
/**
* @brief Construct a new IoTaaP_Hall::IoTaaP_Hall object
*
*/
IoTaaP_Hall::IoTaaP_Hall()
{
}
/**
* @brief Reads onboard hall sensor value
*
* @return int Value for HALL sensor (without LNA)
*/
int IoTaaP_Hall::read()
{
return hallRead();
} | 14.894737 | 57 | 0.664311 | iotaap |
4bb1e57c0d6712c2bfd38df374e7b095a2bd10fe | 391 | cpp | C++ | Codeforces/1183A.cpp | DT3264/ProgrammingContestsSolutions | a297f2da654c2ca2815b9aa375c2b4ca0052269d | [
"MIT"
] | null | null | null | Codeforces/1183A.cpp | DT3264/ProgrammingContestsSolutions | a297f2da654c2ca2815b9aa375c2b4ca0052269d | [
"MIT"
] | null | null | null | Codeforces/1183A.cpp | DT3264/ProgrammingContestsSolutions | a297f2da654c2ca2815b9aa375c2b4ca0052269d | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
#include<string>
using namespace std;
bool interesting(int n){
string s=to_string(n);
int x=0;
for(int i=0; i<s.length(); i++){
x+=s[i]-'0';
}
//cout << "*" << s << "*" << n << "-" << x << endl;
return x%4==0;
}
int main(){
int n;
cin >> n;
while(!int... | 18.619048 | 55 | 0.452685 | DT3264 |
4bb6622aa6448365352050f886c2478366b31411 | 1,665 | cpp | C++ | src/zerocash/tests/utilTest.cpp | ebfull/zcash | 1dd8ce9ba5ad97ced474c19dc859fbceed620247 | [
"MIT"
] | 2 | 2017-07-01T17:39:33.000Z | 2019-02-07T07:48:41.000Z | src/zerocash/tests/utilTest.cpp | ebfull/zcash | 1dd8ce9ba5ad97ced474c19dc859fbceed620247 | [
"MIT"
] | 1 | 2016-12-09T06:17:49.000Z | 2016-12-09T06:17:49.000Z | src/zerocash/tests/utilTest.cpp | ebfull/zcash | 1dd8ce9ba5ad97ced474c19dc859fbceed620247 | [
"MIT"
] | null | null | null |
#define BOOST_TEST_MODULE utilTest
#include <boost/test/included/unit_test.hpp>
#include "zerocash/utils/util.h"
#include "crypto/sha256.h"
#include "uint256.h"
#include "utilstrencodings.h"
BOOST_AUTO_TEST_CASE( testConvertVectorToInt ) {
BOOST_CHECK(libzerocash::convertVectorToInt({0}) == 0);
BOOST_CHECK(... | 31.415094 | 98 | 0.637237 | ebfull |
4bb721ea964b2860ac510292cdc5637273334e39 | 5,942 | cpp | C++ | core/src/bind/window/select_window.cpp | pit-ray/win-vind | 7386f6f7528d015ce7f1a5ae230d6e63f9492df9 | [
"MIT"
] | 731 | 2020-05-07T06:22:59.000Z | 2022-03-31T16:36:03.000Z | core/src/bind/window/select_window.cpp | pit-ray/win-vind | 7386f6f7528d015ce7f1a5ae230d6e63f9492df9 | [
"MIT"
] | 67 | 2020-07-20T19:46:42.000Z | 2022-03-31T15:34:47.000Z | core/src/bind/window/select_window.cpp | pit-ray/win-vind | 7386f6f7528d015ce7f1a5ae230d6e63f9492df9 | [
"MIT"
] | 15 | 2021-01-29T04:49:11.000Z | 2022-03-04T22:16:31.000Z | #include "bind/window/select_window.hpp"
#include <map>
#include "bind/mouse/jump_actwin.hpp"
#include "bind/window/window_utility.hpp"
#include "io/screen_metrics.hpp"
#include "key/ntype_logger.hpp"
#include "util/box_2d.hpp"
#include "util/rect.hpp"
namespace
{
using namespace vind ;
std::unordered_map<H... | 30.162437 | 87 | 0.583474 | pit-ray |
4bbb290e1d7fe08a0c2b87146e432e81333215d1 | 20,700 | cpp | C++ | dipimage/private/dip_math.cpp | jbj/diplib | 3141b641c6b2749a35008085b3d298896168df66 | [
"Apache-2.0"
] | 140 | 2017-04-04T23:10:16.000Z | 2022-03-24T18:21:34.000Z | dipimage/private/dip_math.cpp | KDAB/diplib | e55d56fab4982dfaeb0cc080d68e199973fec0e1 | [
"Apache-2.0"
] | 98 | 2018-01-13T23:16:00.000Z | 2022-03-14T14:45:37.000Z | dipimage/private/dip_math.cpp | KDAB/diplib | e55d56fab4982dfaeb0cc080d68e199973fec0e1 | [
"Apache-2.0"
] | 40 | 2017-04-11T20:41:58.000Z | 2022-03-24T18:21:36.000Z | /*
* DIPimage 3.0
*
* (c)2017-2019, Cris Luengo.
* Based on original DIPlib code: (c)1995-2014, Delft University of Technology.
* Based on original DIPimage code: (c)1999-2014, Delft University of Technology.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except ... | 39.428571 | 154 | 0.585169 | jbj |
4bbce5f2fe038b8c0738036d4231500a3e5cb6d4 | 814 | hpp | C++ | include/natalie/abstract_method_object.hpp | G-flat/natalie | ae0cf5105c69d01565d057fa4caf112d4fa90701 | [
"MIT"
] | 7 | 2022-03-08T08:47:54.000Z | 2022-03-29T15:08:36.000Z | include/natalie/abstract_method_object.hpp | G-flat/natalie | ae0cf5105c69d01565d057fa4caf112d4fa90701 | [
"MIT"
] | 12 | 2022-03-10T13:04:42.000Z | 2022-03-24T01:40:23.000Z | include/natalie/abstract_method_object.hpp | G-flat/natalie | ae0cf5105c69d01565d057fa4caf112d4fa90701 | [
"MIT"
] | 5 | 2022-03-13T17:46:16.000Z | 2022-03-31T07:28:26.000Z | #pragma once
#include "natalie/class_object.hpp"
#include "natalie/env.hpp"
#include "natalie/forward.hpp"
#include "natalie/global_env.hpp"
#include "natalie/method.hpp"
#include "natalie/object.hpp"
#include "natalie/proc_object.hpp"
#include "natalie/string_object.hpp"
#include "natalie/symbol_object.hpp"
namespac... | 26.258065 | 83 | 0.701474 | G-flat |
4bc13167c04ff2257ff3e9274484d35594c63b34 | 1,222 | cpp | C++ | opencv_beginners/source/basicImgOps/imageDraw.cpp | ratnadeepb/FaceDetectionBasics | 538e1a0bd9c6895f7f730db736767a213d140476 | [
"MIT"
] | null | null | null | opencv_beginners/source/basicImgOps/imageDraw.cpp | ratnadeepb/FaceDetectionBasics | 538e1a0bd9c6895f7f730db736767a213d140476 | [
"MIT"
] | null | null | null | opencv_beginners/source/basicImgOps/imageDraw.cpp | ratnadeepb/FaceDetectionBasics | 538e1a0bd9c6895f7f730db736767a213d140476 | [
"MIT"
] | null | null | null | #include "imageDraw.hpp"
int imageDraw(char* name)
{
Mat img = imread(name, 1);
// Get number of rows and columns in the image
int rows = img.rows;
int cols = img.cols;
if(img.empty()){
return EXIT_FAILURE;
}
// Draw a line
Mat imgLine = img.clone(); // Clone the image - both header and data is copie... | 24.938776 | 84 | 0.63748 | ratnadeepb |
4bcce167964add94bebd116f5f7046cd1f77d055 | 3,842 | cpp | C++ | UI/ViewPane/CheckPane.cpp | stephenegriffin/mfcmapi | bffbff6da9a8c292891568159c8088aac9b2052c | [
"MIT"
] | 655 | 2016-10-13T20:18:52.000Z | 2022-03-28T21:25:14.000Z | UI/ViewPane/CheckPane.cpp | stephenegriffin/mfcmapi | bffbff6da9a8c292891568159c8088aac9b2052c | [
"MIT"
] | 285 | 2016-10-18T19:03:31.000Z | 2022-03-10T11:02:33.000Z | UI/ViewPane/CheckPane.cpp | stephenegriffin/mfcmapi | bffbff6da9a8c292891568159c8088aac9b2052c | [
"MIT"
] | 129 | 2016-10-14T14:27:24.000Z | 2022-03-30T12:34:01.000Z | #include <StdAfx.h>
#include <UI/ViewPane/CheckPane.h>
#include <UI/UIFunctions.h>
#include <core/utility/output.h>
namespace viewpane
{
std::shared_ptr<CheckPane>
CheckPane::Create(const int paneID, const UINT uidLabel, const bool bVal, const bool bReadOnly)
{
auto pane = std::make_shared<CheckPane>();
if (pan... | 27.640288 | 111 | 0.686101 | stephenegriffin |
4bd2c7902e8d467c05cd8d94810c91a987e14766 | 590 | cpp | C++ | CLAS/StringEdit.cpp | simonyhong/Blip | 49b280b061470037edb672d4d2a7d434909dc039 | [
"Unlicense"
] | null | null | null | CLAS/StringEdit.cpp | simonyhong/Blip | 49b280b061470037edb672d4d2a7d434909dc039 | [
"Unlicense"
] | null | null | null | CLAS/StringEdit.cpp | simonyhong/Blip | 49b280b061470037edb672d4d2a7d434909dc039 | [
"Unlicense"
] | null | null | null | // StringEdit.cpp : implementation file
//
#include "stdafx.h"
#include "CLAS.h"
#include "StringEdit.h"
// StringEdit dialog
IMPLEMENT_DYNAMIC(StringEdit, CDialog)
StringEdit::StringEdit(CWnd* pParent /*=NULL*/)
: CDialog(StringEdit::IDD, pParent)
, m_UserInputString1(_T(""))
{
}
StringEdit... | 16.388889 | 54 | 0.701695 | simonyhong |
4bd795061efe009518d0c7ace1dae4804a7ecb89 | 1,377 | hpp | C++ | ext/src/java/awt/Insets.hpp | pebble2015/cpoi | 6dcc0c5e13e3e722b4ef9fd0baffbf62bf71ead6 | [
"Apache-2.0"
] | null | null | null | ext/src/java/awt/Insets.hpp | pebble2015/cpoi | 6dcc0c5e13e3e722b4ef9fd0baffbf62bf71ead6 | [
"Apache-2.0"
] | null | null | null | ext/src/java/awt/Insets.hpp | pebble2015/cpoi | 6dcc0c5e13e3e722b4ef9fd0baffbf62bf71ead6 | [
"Apache-2.0"
] | null | null | null | // Generated from /Library/Java/JavaVirtualMachines/jdk1.8.0_144.jdk/Contents/Home/jre/lib/rt.jar
#pragma once
#include <fwd-POI.hpp>
#include <java/awt/fwd-POI.hpp>
#include <java/lang/fwd-POI.hpp>
#include <java/lang/Object.hpp>
#include <java/lang/Cloneable.hpp>
#include <java/io/Serializable.hpp>
struct default_... | 25.036364 | 97 | 0.688453 | pebble2015 |
4bd8a4fc34889a124c37b1181a71877c3b4f5d97 | 1,145 | cpp | C++ | src/main.cpp | Khsime-Marwane/indie_studio | 75a84dd70f33a655a4f15ea7a9a3b8845bd39dfc | [
"MIT"
] | null | null | null | src/main.cpp | Khsime-Marwane/indie_studio | 75a84dd70f33a655a4f15ea7a9a3b8845bd39dfc | [
"MIT"
] | null | null | null | src/main.cpp | Khsime-Marwane/indie_studio | 75a84dd70f33a655a4f15ea7a9a3b8845bd39dfc | [
"MIT"
] | null | null | null | //
// Author: Marwane Khsime
// Date: 2017-05-03 01:50:31
//
// Last Modified by: Marwane Khsime
// Last Modified time: 2017-05-03 01:50:31
//
#include <iostream>
#include <chrono>
#include <thread>
//#include "irrKlang/irrKlang.h"
#include "Core/Core.hpp"
#ifdef _MSC_VER
#define _CRT_SECURE_NO_WARNINGS
... | 20.818182 | 95 | 0.627074 | Khsime-Marwane |
4bd8c5296352de0f632904f427c7526a1bc42725 | 9,537 | hxx | C++ | source/OOSQL/include/OOSQL_MinMaxHeap_Internal.hxx | odysseus-oosql/ODYSSEUS-OOSQL | 49a5e32b6f73cea611dafdcc0e6767f80d4450ae | [
"BSD-3-Clause"
] | 6 | 2016-08-29T08:03:21.000Z | 2022-03-25T09:56:23.000Z | source/OOSQL/include/OOSQL_MinMaxHeap_Internal.hxx | odysseus-oosql/ODYSSEUS-OOSQL | 49a5e32b6f73cea611dafdcc0e6767f80d4450ae | [
"BSD-3-Clause"
] | null | null | null | source/OOSQL/include/OOSQL_MinMaxHeap_Internal.hxx | odysseus-oosql/ODYSSEUS-OOSQL | 49a5e32b6f73cea611dafdcc0e6767f80d4450ae | [
"BSD-3-Clause"
] | null | null | null | /******************************************************************************/
/* */
/* Copyright (c) 1990-2016, KAIST */
/* All rights reserved. ... | 51.274194 | 112 | 0.4514 | odysseus-oosql |
4bdb888fa6f3f9bac81024e01ce470d83e3646bc | 2,295 | cpp | C++ | maze/maze.cpp | chenhongqiao/OI-Solutions | 009a3c4b713b62658b835b52e0f61f882b5a6ffe | [
"MIT"
] | 1 | 2020-12-15T20:25:21.000Z | 2020-12-15T20:25:21.000Z | maze/maze.cpp | chenhongqiao/OI-Solutions | 009a3c4b713b62658b835b52e0f61f882b5a6ffe | [
"MIT"
] | null | null | null | maze/maze.cpp | chenhongqiao/OI-Solutions | 009a3c4b713b62658b835b52e0f61f882b5a6ffe | [
"MIT"
] | null | null | null | #include <iostream>
#include <algorithm>
using namespace std;
char ma[105][105];
bool u[105][105];
bool bad_way[105][105];
int n, m;
string dfs(int x, int y)
{
if (x < 0 || y < 0 || x >= n || y >= m)
{
return "";
}
if (ma[x][y] == '#')
{
return "";
}
if (bad_way[x][y])
{
... | 18.36 | 43 | 0.276253 | chenhongqiao |
4be740dca2d1a4bacb7287182d95ddd24357178d | 825 | cpp | C++ | samples/snippets/cpp/VS_Snippets_Data/XmlWriter.WriteAttributeString/CPP/writeattrstring.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/XmlWriter.WriteAttributeString/CPP/writeattrstring.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/XmlWriter.WriteAttributeString/CPP/writeattrstring.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;
void main()
{
XmlWriter^ writer = nullptr;
writer = XmlWriter::Create( L"sampledata.xml" );
// Write the root element.
writer->WriteStartElement( L"book" );
// Writ... | 27.5 | 74 | 0.635152 | hamarb123 |
4be77ebf4744ecb66470d4552f24a5892b74c24d | 4,332 | hpp | C++ | BoostSharp/include/boost/log/utility/functional/matches.hpp | Icenium/BoostSharp | 1dd31065fcd65ae6304b182c558bac7c7a738ad5 | [
"Apache-2.0"
] | 3 | 2017-05-11T05:30:19.000Z | 2019-04-24T05:41:33.000Z | src/third_party/boost/boost/log/utility/functional/matches.hpp | wugh7125/installwizard | 42f8aeb78026ff81838528968b1503e73f6c2864 | [
"Apache-2.0"
] | null | null | null | src/third_party/boost/boost/log/utility/functional/matches.hpp | wugh7125/installwizard | 42f8aeb78026ff81838528968b1503e73f6c2864 | [
"Apache-2.0"
] | 1 | 2022-03-26T17:00:08.000Z | 2022-03-26T17:00:08.000Z | /*
* Copyright Andrey Semashev 2007 - 2013.
* Distributed under the Boost Software License, Version 1.0.
* (See accompanying file LICENSE_1_0.txt or copy at
* http://www.boost.org/LICENSE_1_0.txt)
*/
/*!
* \file matches.hpp
* \author Andrey Semashev
* \date 30.03.2008
*
* T... | 33.323077 | 108 | 0.684441 | Icenium |
4beb96ff59a4a6c7e0802bbb710b7520063af7c6 | 5,076 | cpp | C++ | src/QtAIV/AIV/nSpecialFilter.cpp | Vladimir-Lin/QtAIV | a96b52a1df9c85dbadfc1dfcfc38d60948462c89 | [
"MIT"
] | null | null | null | src/QtAIV/AIV/nSpecialFilter.cpp | Vladimir-Lin/QtAIV | a96b52a1df9c85dbadfc1dfcfc38d60948462c89 | [
"MIT"
] | null | null | null | src/QtAIV/AIV/nSpecialFilter.cpp | Vladimir-Lin/QtAIV | a96b52a1df9c85dbadfc1dfcfc38d60948462c89 | [
"MIT"
] | null | null | null | #include <qtaiv.h>
N::SpecialFilter:: SpecialFilter (int row, int column)
: AbstractFilter (N::SpecialFilter::Type, row, column)
{
setProperty("caseSensitivity", Qt::CaseInsensitive);
setProperty("matchFlag", Qt::MatchContains);
}
N::SpecialFilter::~SpecialFilter(void)
{
}
QWidget * N::Spec... | 42.3 | 162 | 0.713751 | Vladimir-Lin |
4bf260f74b61c9f25585cc27dccb55059e9e47cf | 259 | cpp | C++ | src/stationapi/StringUtils.cpp | seefo/swg-stationapi | ae46b8a6177ea800b0dde00630051a19876cffae | [
"MIT"
] | null | null | null | src/stationapi/StringUtils.cpp | seefo/swg-stationapi | ae46b8a6177ea800b0dde00630051a19876cffae | [
"MIT"
] | null | null | null | src/stationapi/StringUtils.cpp | seefo/swg-stationapi | ae46b8a6177ea800b0dde00630051a19876cffae | [
"MIT"
] | 1 | 2022-03-09T23:57:59.000Z | 2022-03-09T23:57:59.000Z |
#include "StreamUtils.hpp"
std::string FromWideString(const std::u16string& str) {
return std::string{std::begin(str), std::end(str)};
}
std::u16string ToWideString(const std::string& str) {
return std::u16string{std::begin(str), std::end(str)};
}
| 23.545455 | 58 | 0.687259 | seefo |
4bf3d13ae4ff8045a517aac3134ac88ac3e7242b | 5,154 | cpp | C++ | libs/ofxHap/src/AudioResampler.cpp | akspect/ofxHapPlayer | 22c595f27bc193bdf8e53c9d10ee68be0d529ee6 | [
"BSD-2-Clause"
] | 113 | 2015-01-10T23:58:01.000Z | 2021-12-23T14:41:56.000Z | libs/ofxHap/src/AudioResampler.cpp | akspect/ofxHapPlayer | 22c595f27bc193bdf8e53c9d10ee68be0d529ee6 | [
"BSD-2-Clause"
] | 72 | 2015-01-17T07:14:18.000Z | 2022-03-13T12:24:07.000Z | libs/ofxHap/src/AudioResampler.cpp | akspect/ofxHapPlayer | 22c595f27bc193bdf8e53c9d10ee68be0d529ee6 | [
"BSD-2-Clause"
] | 37 | 2015-01-28T02:07:27.000Z | 2022-01-20T07:43:55.000Z | /*
AudioResampler.cpp
ofxHapPlayer
Copyright (c) 2016, Tom Butterworth. All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright
notice, th... | 32.012422 | 157 | 0.619131 | akspect |
4bf3fcfec5a8fb14d1b0de8e25c92f27dcf9a265 | 9,043 | cpp | C++ | src/asuraResModel.cpp | ProjectAsura/adk | 12021ee25dd050e33bdcb652c5a4da28e11eefc9 | [
"MIT"
] | null | null | null | src/asuraResModel.cpp | ProjectAsura/adk | 12021ee25dd050e33bdcb652c5a4da28e11eefc9 | [
"MIT"
] | null | null | null | src/asuraResModel.cpp | ProjectAsura/adk | 12021ee25dd050e33bdcb652c5a4da28e11eefc9 | [
"MIT"
] | null | null | null | ๏ปฟ//-----------------------------------------------------------------------------
// File : asuraResModel.cpp
// Desc : Resource Model.
// Copyright(c) Project Asura. All right reserved.
//-----------------------------------------------------------------------------
//---------------------------------------------------... | 31.954064 | 96 | 0.433706 | ProjectAsura |
ef0478f27000e0fe51d49cb8369e5d6a4132daae | 30,257 | cpp | C++ | ovum/test/module.cpp | tayloia/egg | 99c6e03dfbc19864b3de364f7d4b3de6d9db5dbc | [
"MIT"
] | 3 | 2018-10-11T18:11:23.000Z | 2020-11-05T01:28:45.000Z | ovum/test/module.cpp | tayloia/egg | 99c6e03dfbc19864b3de364f7d4b3de6d9db5dbc | [
"MIT"
] | 1 | 2018-06-20T15:29:03.000Z | 2018-06-21T15:35:01.000Z | ovum/test/module.cpp | tayloia/egg | 99c6e03dfbc19864b3de364f7d4b3de6d9db5dbc | [
"MIT"
] | 1 | 2020-11-05T02:45:43.000Z | 2020-11-05T02:45:43.000Z | #include "ovum/test.h"
#include "ovum/node.h"
#include "ovum/module.h"
#include <cmath>
#define EGG_VM_MAGIC_BYTE(byte) byte,
#define MAGIC EGG_VM_MAGIC(EGG_VM_MAGIC_BYTE)
using namespace egg::ovum;
namespace {
void expectFailureFromMemory(const uint8_t memory[], size_t bytes, const char* needle) {
egg::test:... | 50.512521 | 150 | 0.778002 | tayloia |
ef0592736ed369b1cf613565c69b467f5b8ff50c | 1,229 | cpp | C++ | ui/visitor/render/render_2d.cpp | aconstlink/snakeoil | 3c6e02655e1134f8422f01073090efdde80fc109 | [
"MIT"
] | 1 | 2017-08-11T19:12:24.000Z | 2017-08-11T19:12:24.000Z | ui/visitor/render/render_2d.cpp | aconstlink/snakeoil | 3c6e02655e1134f8422f01073090efdde80fc109 | [
"MIT"
] | 11 | 2018-07-07T20:09:44.000Z | 2020-02-16T22:45:09.000Z | ui/visitor/render/render_2d.cpp | aconstlink/snakeoil | 3c6e02655e1134f8422f01073090efdde80fc109 | [
"MIT"
] | null | null | null | //------------------------------------------------------------
// snakeoil (c) Alexis Constantin Link
// Distributed under the MIT license
//------------------------------------------------------------
#include "render_2d.h"
#include <snakeoil/math/matrix/matrix4.hpp>
#include <snakeoil/core/macros/move.h>
using name... | 31.512821 | 87 | 0.37917 | aconstlink |
ef06f9c6f7659cdbd05d889dcd683aef18078f39 | 1,416 | cpp | C++ | node_fw/node-keypad-and-knock/app/project/knocker.cpp | cometurrata/mad-hatter-escape-game | 2e3aac5dbd9c01d4e0a1087ea9b689c63595087b | [
"MIT"
] | 2 | 2020-05-24T23:34:02.000Z | 2020-06-01T08:25:49.000Z | node_fw/node-keypad-and-knock/app/project/knocker.cpp | cometurrata/mad-hatter-escape-game | 2e3aac5dbd9c01d4e0a1087ea9b689c63595087b | [
"MIT"
] | 2 | 2019-09-17T08:54:42.000Z | 2019-09-17T14:02:03.000Z | node_fw/node-keypad-and-knock/app/project/knocker.cpp | cometurrata/mad-hatter-escape-game | 2e3aac5dbd9c01d4e0a1087ea9b689c63595087b | [
"MIT"
] | null | null | null | #include "knocker.h"
KnockerClass knocker;
// 0 1 2 3 4 5 6 7 8 9
const uint8_t KnockerClass::knockPerFigure[10] = {4, 0, 3, 0, 2, 0, 0, 0, 1, 0};
void KnockerClass::knock()
{
switch (knockingStep)
{
case 0:
digitalWrite(14, HIGH);
... | 25.285714 | 101 | 0.507062 | cometurrata |
ef0d5e29fe85681136873b08f30fc1bc0f2da1a0 | 1,256 | cpp | C++ | COMP330-Assignment1/Util/MathUtil.cpp | evanhollins/COMP330Assignment1 | dfd7d62ab9985fbe871bfcc6059b5e5f99f7d319 | [
"MIT"
] | null | null | null | COMP330-Assignment1/Util/MathUtil.cpp | evanhollins/COMP330Assignment1 | dfd7d62ab9985fbe871bfcc6059b5e5f99f7d319 | [
"MIT"
] | null | null | null | COMP330-Assignment1/Util/MathUtil.cpp | evanhollins/COMP330Assignment1 | dfd7d62ab9985fbe871bfcc6059b5e5f99f7d319 | [
"MIT"
] | null | null | null | //
// MathUtil.cpp
// COMP330-Assignment1
//
// Created by Evan Hollins on 4/3/18.
// Copyright ยฉ 2018 Evan Hollins. All rights reserved.
//
#include "MathUtil.hpp"
int quadrantSignX(int angle) {
if(angle >= HALF_CIRLCE_DEG) {
return -1;
}
return 1;
}
int quadrantSignY(int angle) {
if(ang... | 17.444444 | 72 | 0.549363 | evanhollins |
ef0e61256975006ccf4fe38fe6c12f87ada0067e | 13,724 | cpp | C++ | camera/hal/intel/ipu6/modules/sandboxing/client/IntelPGParam.cpp | dgreid/platform2 | 9b8b30df70623c94f1c8aa634dba94195343f37b | [
"BSD-3-Clause"
] | 4 | 2020-07-24T06:54:16.000Z | 2021-06-16T17:13:53.000Z | camera/hal/intel/ipu6/modules/sandboxing/client/IntelPGParam.cpp | dgreid/platform2 | 9b8b30df70623c94f1c8aa634dba94195343f37b | [
"BSD-3-Clause"
] | 1 | 2021-04-02T17:35:07.000Z | 2021-04-02T17:35:07.000Z | camera/hal/intel/ipu6/modules/sandboxing/client/IntelPGParam.cpp | dgreid/platform2 | 9b8b30df70623c94f1c8aa634dba94195343f37b | [
"BSD-3-Clause"
] | null | null | null | /*
* Copyright (C) 2019-2020 Intel Corporation.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable ... | 46.053691 | 100 | 0.695643 | dgreid |
ef116bb411555b1cb43c268c8a8430ff801f874a | 3,320 | hh | C++ | include/vector.hh | KPO-2020-2021/zad4-259355 | 3090b8aca05b95d22e456edd147d29541fdf58bd | [
"Unlicense"
] | null | null | null | include/vector.hh | KPO-2020-2021/zad4-259355 | 3090b8aca05b95d22e456edd147d29541fdf58bd | [
"Unlicense"
] | null | null | null | include/vector.hh | KPO-2020-2021/zad4-259355 | 3090b8aca05b95d22e456edd147d29541fdf58bd | [
"Unlicense"
] | null | null | null | #pragma once
#include "size.hh"
#include <iostream>
#include <math.h>
#include <iomanip>
/**
* \brief Klasa Wektora
*
* Klasa pozwalajaca operowac na argumentach wektora
* Klasa jest szablonem ktory dziala dla wektora2D i wektora3D
* Szablon przyjmuje wartoลci <typ danych, rozmiar macierzy>
*
*/
template <ty... | 23.546099 | 89 | 0.593675 | KPO-2020-2021 |
ef169cf1cc9cf45d2bfbd1d460eba3675e6172bd | 475 | cpp | C++ | BAC/exercises/ch8/UVa10714.cpp | Anyrainel/aoapc-code | e787a01380698fb9236d933462052f97b20e6132 | [
"Apache-2.0"
] | 3 | 2017-08-15T06:00:01.000Z | 2018-12-10T09:05:53.000Z | BAC/exercises/ch8/UVa10714.cpp | Anyrainel/aoapc-related-code | e787a01380698fb9236d933462052f97b20e6132 | [
"Apache-2.0"
] | null | null | null | BAC/exercises/ch8/UVa10714.cpp | Anyrainel/aoapc-related-code | e787a01380698fb9236d933462052f97b20e6132 | [
"Apache-2.0"
] | 2 | 2017-09-16T18:46:27.000Z | 2018-05-22T05:42:03.000Z | // UVa10714 Ants
// Rujia Liu
// ้ขๆ๏ผ็ฑปไผผไบใ่ฎญ็ปๆๅใไธญ็่่้ฎ้ข๏ผ่พๅ
ฅๆจๆฟ้ฟๅบฆLๅ่่ไธชๆฐn๏ผไปฅๅๅไธช่่ๅฐๆจๆฟๅทฆ็ซฏ็น็ไฝ็ฝฎใ่่้ๅบฆไธบ1๏ผๆฑๆ็ญๆถ้ดๅๆ้ฟๆถ้ด
// ็ฎๆณ๏ผ
#include<cstdio>
#include<algorithm>
using namespace std;
int main() {
int T, L, n, x;
scanf("%d", &T);
while(T--) {
scanf("%d%d", &L, &n);
int mint = 0, maxt = 0;
for(int i = 0; i < n; i++) {
... | 19.791667 | 69 | 0.530526 | Anyrainel |
faa137efad028d0a790126780dd3c48da1418ce7 | 892 | cpp | C++ | Array/llb/1. Two Sum.cpp | cls1991/leetcode | 0fd165afa2ec339a6f194bc57f8810e66cd2822b | [
"MIT"
] | 180 | 2018-01-25T01:50:04.000Z | 2021-11-09T11:47:45.000Z | Array/llb/1. Two Sum.cpp | cls1991/leetcode | 0fd165afa2ec339a6f194bc57f8810e66cd2822b | [
"MIT"
] | 6 | 2018-01-25T07:51:51.000Z | 2019-10-26T14:10:53.000Z | Array/llb/1. Two Sum.cpp | cls1991/leetcode | 0fd165afa2ec339a6f194bc57f8810e66cd2822b | [
"MIT"
] | 29 | 2018-01-25T01:55:58.000Z | 2019-09-02T07:19:59.000Z | /*
Given an array of integers, return indices of the two numbers such that they add up to a specific target.
You may assume that each input would have exactly one solution, and you may not use the same element twice.
Example:
Given nums = [2, 7, 11, 15], target = 9,
Because nums[0] + nums[1] = 2 + 7 = 9,
return [0, ... | 26.235294 | 107 | 0.542601 | cls1991 |
faa2b5fd79f28dba4d11429920cbe6756f40c280 | 2,437 | cc | C++ | test/Parser.cc | matthin/forthan | 4db4e7b3e9780151f4ed9ee6aa719242e7806c1e | [
"MIT"
] | null | null | null | test/Parser.cc | matthin/forthan | 4db4e7b3e9780151f4ed9ee6aa719242e7806c1e | [
"MIT"
] | null | null | null | test/Parser.cc | matthin/forthan | 4db4e7b3e9780151f4ed9ee6aa719242e7806c1e | [
"MIT"
] | null | null | null | #include "Parser.h"
#include "Interpreter.h"
#include <catch.hpp>
#include <string>
TEST_CASE("Discards comments") {
std::string instructions(
"3 5 *\n"
"\\ Example comment\n"
" (Example inline comment) 2 +"
);
ft::Parser parser(&instructions);
REQUIRE(instructions.find("\\ Example comment\n") == s... | 25.925532 | 74 | 0.586377 | matthin |
faa74f7ef18c20c64f6ef23793a1d422ec70ab3b | 13,527 | cpp | C++ | src/cache/index/indexserver.cpp | EmanuelHerrendorf/mapping-core | d28d85547e8ed08df37dad1da142594d3f07a366 | [
"MIT"
] | null | null | null | src/cache/index/indexserver.cpp | EmanuelHerrendorf/mapping-core | d28d85547e8ed08df37dad1da142594d3f07a366 | [
"MIT"
] | 10 | 2018-03-02T13:58:32.000Z | 2020-06-05T11:12:42.000Z | src/cache/index/indexserver.cpp | EmanuelHerrendorf/mapping-core | d28d85547e8ed08df37dad1da142594d3f07a366 | [
"MIT"
] | 3 | 2018-02-26T14:01:43.000Z | 2019-12-09T10:03:17.000Z | /*
* indexserver.cpp
*
* Created on: 26.05.2015
* Author: mika
*/
#include "cache/index/indexserver.h"
#include "cache/index/reorg_strategy.h"
#include "util/concat.h"
#include <memory>
#include <stdlib.h>
#include <stdio.h>
// socket() etc
#include <sys/types.h>
#include <sys/socket.h>
#include <unistd... | 30.604072 | 155 | 0.655504 | EmanuelHerrendorf |
fab6c193d825a4cbc7494544412bd0e926e458b0 | 12,516 | hh | C++ | include/oxli/hashgraph.hh | Dmarch28/khmer | 86ce40a6619fc6f6e9c4ce18ce1e89de93ba2f83 | [
"CNRI-Python"
] | null | null | null | include/oxli/hashgraph.hh | Dmarch28/khmer | 86ce40a6619fc6f6e9c4ce18ce1e89de93ba2f83 | [
"CNRI-Python"
] | 4 | 2021-03-19T08:45:22.000Z | 2022-02-18T21:25:42.000Z | include/oxli/hashgraph.hh | Dmarch28/khmer | 86ce40a6619fc6f6e9c4ce18ce1e89de93ba2f83 | [
"CNRI-Python"
] | 1 | 2021-03-16T12:01:37.000Z | 2021-03-16T12:01:37.000Z | /*
This file is part of khmer, https://github.com/dib-lab/khmer/, and is
Copyright (C) 2010-2015, Michigan State University.
Copyright (C) 2015-2016, The Regents of the University of California.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following c... | 29.242991 | 81 | 0.627197 | Dmarch28 |
fabf4377422af0089d30c5b30bbd9d7dfad7195e | 811 | hpp | C++ | src/WidgetDebugTraceFunction.hpp | MustafaSabur/RobotWereld | e696e6e7ad890abb719a78fc1a0c111a680d27e0 | [
"BSD-2-Clause"
] | null | null | null | src/WidgetDebugTraceFunction.hpp | MustafaSabur/RobotWereld | e696e6e7ad890abb719a78fc1a0c111a680d27e0 | [
"BSD-2-Clause"
] | null | null | null | src/WidgetDebugTraceFunction.hpp | MustafaSabur/RobotWereld | e696e6e7ad890abb719a78fc1a0c111a680d27e0 | [
"BSD-2-Clause"
] | null | null | null | #ifndef WIDGETDEBUGTRACEFUNCTION_HPP_
#define WIDGETDEBUGTRACEFUNCTION_HPP_
#include "Config.hpp"
#include "Widgets.hpp"
#include "DebugTraceFunction.hpp"
class LogTextCtrl;
/**
*
*/
class WidgetDebugTraceFunction : public DebugTraceFunction
{
public:
/**
* @param aLogTextCtrl The TextCtrl derived class that... | 20.794872 | 97 | 0.7164 | MustafaSabur |
fac0b71c41c1dd287500296819840877f96f6485 | 3,965 | cpp | C++ | XiamiQt5/main_page.cpp | a1q123456/XiamiQt5 | f665b1be29248363105aabbddac546feec7fb6bd | [
"MIT"
] | 1 | 2017-08-14T15:06:45.000Z | 2017-08-14T15:06:45.000Z | XiamiQt5/main_page.cpp | a1q123456/XiamiQt5 | f665b1be29248363105aabbddac546feec7fb6bd | [
"MIT"
] | null | null | null | XiamiQt5/main_page.cpp | a1q123456/XiamiQt5 | f665b1be29248363105aabbddac546feec7fb6bd | [
"MIT"
] | null | null | null | #include "pch.h"
#include <QDebug>
#include <QQuickItem>
#include "mainwindow.h"
#include "playlisttablemodel.h"
main_page::main_page(QWidget *parent, QWidget * context) :
QWidget(parent),
ui(new Ui::main_page)
{
ui->setupUi(parent);
xiamiapi::IGenericArray *recommend_list;
this->context = context;... | 37.056075 | 123 | 0.674401 | a1q123456 |
fac2c685071ffe51a74099b89f784cdd2fd1507e | 400 | cpp | C++ | Easy/35_Search_Insert_Position.cpp | ShehabMMohamed/LeetCodeCPP | 684340f29ac15c5e8fa9f6ef5c3f99d4c95ce780 | [
"MIT"
] | 1 | 2021-03-15T10:02:10.000Z | 2021-03-15T10:02:10.000Z | Easy/35_Search_Insert_Position.cpp | ShehabMMohamed/LeetCodeCPP | 684340f29ac15c5e8fa9f6ef5c3f99d4c95ce780 | [
"MIT"
] | null | null | null | Easy/35_Search_Insert_Position.cpp | ShehabMMohamed/LeetCodeCPP | 684340f29ac15c5e8fa9f6ef5c3f99d4c95ce780 | [
"MIT"
] | null | null | null | class Solution {
public:
int searchInsert(vector<int>& nums, int target) {
int low = 0, high = nums.size() - 1;
while(low <= high) {
int m = low + (high-low/2);
if(nums[m] == target)
return m;
if(nums[m] < target)
low = m + 1;
... | 25 | 53 | 0.4 | ShehabMMohamed |
fac447ad5d847cb552f56ae1ba2c07a1d56532ac | 2,044 | hh | C++ | neb/inc/com/centreon/engine/xdddefault.hh | joe4568/centreon-broker | daf454371520989573c810be1f6dfca40979a75d | [
"Apache-2.0"
] | null | null | null | neb/inc/com/centreon/engine/xdddefault.hh | joe4568/centreon-broker | daf454371520989573c810be1f6dfca40979a75d | [
"Apache-2.0"
] | null | null | null | neb/inc/com/centreon/engine/xdddefault.hh | joe4568/centreon-broker | daf454371520989573c810be1f6dfca40979a75d | [
"Apache-2.0"
] | null | null | null | /*
** Copyright 2001-2006 Ethan Galstad
** Copyright 2011-2013 Merethis
**
** This file is part of Centreon Engine.
**
** Centreon Engine is free software: you can redistribute it and/or
** modify it under the terms of the GNU General Public License version 2
** as published by the Free Software Foundation.
**
** Centr... | 28.388889 | 72 | 0.733366 | joe4568 |
fac819cf54e7e9a9e1ff0ba55b6a1a0851eb344c | 661 | cc | C++ | iv/test/test_ast_pre_order_visitor.cc | ste72phen/iv | 64c3a9c7c517063f29d90d449180ea8f6f4d946f | [
"MIT",
"BSD-2-Clause",
"BSD-3-Clause"
] | 248 | 2015-01-06T00:05:11.000Z | 2022-03-03T23:33:32.000Z | iv/test/test_ast_pre_order_visitor.cc | ste72phen/iv | 64c3a9c7c517063f29d90d449180ea8f6f4d946f | [
"MIT",
"BSD-2-Clause",
"BSD-3-Clause"
] | 3 | 2015-01-10T09:37:33.000Z | 2018-08-17T14:28:22.000Z | iv/test/test_ast_pre_order_visitor.cc | mmalinin/iv | e73342707510436254a4120ae1f9ff19a2b88083 | [
"MIT",
"BSD-2-Clause",
"BSD-3-Clause"
] | 32 | 2015-07-19T13:32:12.000Z | 2022-03-17T19:52:45.000Z | #include <string>
#include <iterator>
#include <algorithm>
#include <memory>
#include <gtest/gtest.h>
#include <iv/detail/cstdint.h>
#include <iv/ast_pre_order_visitor.h>
#include <iv/ast_factory.h>
namespace {
class Factory : public iv::core::ast::AstFactory<Factory> {
};
} // namespace annonymous
TEST(AstPreOrde... | 23.607143 | 59 | 0.751891 | ste72phen |
fade255d0f13f678a949d4d6bfd905394495c9dc | 1,578 | cpp | C++ | Engine/Source/Entity/Components/CCamera.cpp | hipiPan/GearEngine | 4ef60bf309603c8ee439c23c60fc644651d417fb | [
"MIT"
] | 12 | 2018-12-30T14:40:54.000Z | 2021-12-27T15:10:11.000Z | Engine/Source/Entity/Components/CCamera.cpp | hipiPan/GearEngine | 4ef60bf309603c8ee439c23c60fc644651d417fb | [
"MIT"
] | 1 | 2022-01-02T17:30:28.000Z | 2022-01-02T17:40:31.000Z | Engine/Source/Entity/Components/CCamera.cpp | hipiPan/GearEngine | 4ef60bf309603c8ee439c23c60fc644651d417fb | [
"MIT"
] | null | null | null | #include "CCamera.h"
#include "CTransform.h"
#include "GearEngine.h"
#include "Entity/Entity.h"
namespace gear {
CCamera::CCamera(Entity* entity)
:Component(entity) {
}
CCamera::~CCamera() {
}
void CCamera::SetProjection(ProjectionType type, double left, double right, double bottom, d... | 25.868852 | 133 | 0.58365 | hipiPan |
fade6dac377010f95d4ad9e04de6db36c5114b9f | 2,277 | cpp | C++ | tests/log.cpp | casparant/bpftrace | a6823165a521e894b3fb028733131878cf70d3a7 | [
"Apache-2.0"
] | 5 | 2020-01-09T23:01:37.000Z | 2020-01-10T08:08:28.000Z | tests/log.cpp | casparant/bpftrace | a6823165a521e894b3fb028733131878cf70d3a7 | [
"Apache-2.0"
] | null | null | null | tests/log.cpp | casparant/bpftrace | a6823165a521e894b3fb028733131878cf70d3a7 | [
"Apache-2.0"
] | 3 | 2019-06-20T21:38:14.000Z | 2020-06-15T06:51:18.000Z | #include "log.h"
#include "mocks.h"
#include "gmock/gmock.h"
#include "gtest/gtest.h"
#include <iostream>
namespace bpftrace {
namespace test {
namespace log {
TEST(LogStream, basic)
{
std::ostringstream ss;
const std::string content_1 = "hello world";
const std::string content_2 = "some messages 100###**";
... | 31.191781 | 79 | 0.610013 | casparant |
fae0cb5b85c47417804e9377fbb652623b6542ce | 378 | hpp | C++ | examples/pong/gamedata.hpp | VSantiM/CG-2021.03-UFABC | 72e827295873d57f72c34f58e91ca13e96e1e55f | [
"MIT"
] | null | null | null | examples/pong/gamedata.hpp | VSantiM/CG-2021.03-UFABC | 72e827295873d57f72c34f58e91ca13e96e1e55f | [
"MIT"
] | null | null | null | examples/pong/gamedata.hpp | VSantiM/CG-2021.03-UFABC | 72e827295873d57f72c34f58e91ca13e96e1e55f | [
"MIT"
] | null | null | null | #ifndef GAMEDATA_HPP_
#define GAMEDATA_HPP_
#include <bitset>
enum class Input { DownR, UpR, Down, Up };
enum class State { Playing, Score, VermelhoWin, AzulWin };
enum class BallState { Playing, BallStop };
struct GameData {
State m_state{State::Playing};
BallState m_ballState{BallState::BallStop};
std::bitse... | 23.625 | 59 | 0.719577 | VSantiM |
fae23ba21099a4bb297be376f765e94725b72ede | 790 | hpp | C++ | includes/Game.hpp | LightCollective/OneLight | 523678cacdc027efe3d4afa5d2558ad85b739d7f | [
"MIT"
] | null | null | null | includes/Game.hpp | LightCollective/OneLight | 523678cacdc027efe3d4afa5d2558ad85b739d7f | [
"MIT"
] | null | null | null | includes/Game.hpp | LightCollective/OneLight | 523678cacdc027efe3d4afa5d2558ad85b739d7f | [
"MIT"
] | null | null | null | #ifndef ONELIGHT_GAME_H
#define ONELIGHT_GAME_H
#include <iostream>
#include <stack>
#include <vector>
#include <math.h>
#include "FluxRoot.hpp"
#include "FluxNormalMaterial.hpp"
class State;
class Game
{
public:
Game();
~Game();
Flux::Root* getRoot();
void initialise();
... | 16.458333 | 52 | 0.588608 | LightCollective |
fae436e11e71b42f29e291875582edb5bebff58b | 4,303 | hpp | C++ | cppcache/src/FairQueue.hpp | mreddington/geode-native | bfcfac5be1bb64e7b2f149202ab568f5233947ad | [
"Apache-2.0"
] | null | null | null | cppcache/src/FairQueue.hpp | mreddington/geode-native | bfcfac5be1bb64e7b2f149202ab568f5233947ad | [
"Apache-2.0"
] | null | null | null | cppcache/src/FairQueue.hpp | mreddington/geode-native | bfcfac5be1bb64e7b2f149202ab568f5233947ad | [
"Apache-2.0"
] | null | null | null | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may ... | 23.642857 | 79 | 0.632814 | mreddington |
fae518f406c9d34a1b23ae185a2989c5c2e356ad | 3,475 | cpp | C++ | code/code/BOM.cpp | WarzesProject/0003_LostIslands | a349228ace5646726a12ef4d394c5388c0b80e44 | [
"MIT"
] | null | null | null | code/code/BOM.cpp | WarzesProject/0003_LostIslands | a349228ace5646726a12ef4d394c5388c0b80e44 | [
"MIT"
] | null | null | null | code/code/BOM.cpp | WarzesProject/0003_LostIslands | a349228ace5646726a12ef4d394c5388c0b80e44 | [
"MIT"
] | null | null | null | ๏ปฟ// This is an independent project of an individual developer. Dear PVS-Studio, please check it.
// PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com
#include "stdafx.h"
#include "BOM.h"
//-----------------------------------------------------------------------------
static uint8_t BOM_Bytes[][4]... | 27.8 | 96 | 0.585324 | WarzesProject |
fae60e085b2432fc698af27ba56c5571f8171e98 | 929 | cpp | C++ | src/ComponentModelSetOnPlayerNumber.cpp | foxostro/CheeseTesseract | 737ebbd19cee8f5a196bf39a11ca793c561e56cb | [
"MIT"
] | 1 | 2016-05-17T03:36:52.000Z | 2016-05-17T03:36:52.000Z | src/ComponentModelSetOnPlayerNumber.cpp | foxostro/CheeseTesseract | 737ebbd19cee8f5a196bf39a11ca793c561e56cb | [
"MIT"
] | null | null | null | src/ComponentModelSetOnPlayerNumber.cpp | foxostro/CheeseTesseract | 737ebbd19cee8f5a196bf39a11ca793c561e56cb | [
"MIT"
] | null | null | null | #include "stdafx.h"
#include "World.h"
#include "SDLinput.h"
#include "ComponentModelSetOnPlayerNumber.h"
#include "ActionSetModel.h"
ComponentModelSetOnPlayerNumber::
ComponentModelSetOnPlayerNumber(UID uid, ScopedEventHandler *parentScope)
: Component(uid, parentScope) {
REGISTER_HANDLER(ComponentModelSetOnPlaye... | 32.034483 | 103 | 0.781485 | foxostro |
fae61e87248f74edd0fcb9b049377f9fb9bc699c | 19,744 | hpp | C++ | sdr/sdr_ad9361_api.hpp | GinoBogo/gUIO | b0265710b800e713fb231a8b0936da5c172d475e | [
"MIT"
] | null | null | null | sdr/sdr_ad9361_api.hpp | GinoBogo/gUIO | b0265710b800e713fb231a8b0936da5c172d475e | [
"MIT"
] | null | null | null | sdr/sdr_ad9361_api.hpp | GinoBogo/gUIO | b0265710b800e713fb231a8b0936da5c172d475e | [
"MIT"
] | null | null | null | /* ************************************************************************** */
/** SDR AD9361 API (SPI based)
@Company
Airbus Italia S.p.A.
@File Name
sdr_ad9361_api.hpp
@Summary
SDR AD9361 API (SPI based)
@Description
AD9361 API (SPI based).
... | 57.395349 | 117 | 0.625912 | GinoBogo |
fae68e29004259b1d106a294db997ac104fb37fc | 775 | cpp | C++ | Buildr/Source/Game/GameEntities/UI/TransparentRectangle.cpp | Hack-the-North-2021/Builder-V2 | b812370919e422e54107b6e991c12b7494915fa1 | [
"MIT"
] | null | null | null | Buildr/Source/Game/GameEntities/UI/TransparentRectangle.cpp | Hack-the-North-2021/Builder-V2 | b812370919e422e54107b6e991c12b7494915fa1 | [
"MIT"
] | 1 | 2021-09-19T09:46:11.000Z | 2021-09-19T09:46:11.000Z | Buildr/Source/Game/GameEntities/UI/TransparentRectangle.cpp | Hack-the-North-2021/Builder-V2 | b812370919e422e54107b6e991c12b7494915fa1 | [
"MIT"
] | null | null | null | #include "TransparentRectangle.h"
#include "GameEngine/GameEngineMain.h"
using namespace Game;
TransparentRectangle::TransparentRectangle()
{
//Render
m_renderComponent = AddComponent<GameEngine::SpriteRenderComponent>();
SetSize(sf::Vector2f(200.f, 600.f));
m_renderComponent->SetTexture(GameEngine::... | 18.902439 | 72 | 0.729032 | Hack-the-North-2021 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.