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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
b4321a66c71eb330e56be972ea3e7833c9385273 | 24,647 | cpp | C++ | deps/libgdal/gdal/frmts/cals/calsdataset.cpp | jimgambale/node-gdal | dc5c89fb23f1004732106250c8b7d57f380f9b61 | [
"Apache-2.0"
] | 1 | 2021-08-02T10:56:18.000Z | 2021-08-02T10:56:18.000Z | deps/libgdal/gdal/frmts/cals/calsdataset.cpp | jimgambale/node-gdal | dc5c89fb23f1004732106250c8b7d57f380f9b61 | [
"Apache-2.0"
] | null | null | null | deps/libgdal/gdal/frmts/cals/calsdataset.cpp | jimgambale/node-gdal | dc5c89fb23f1004732106250c8b7d57f380f9b61 | [
"Apache-2.0"
] | 2 | 2019-03-31T06:51:24.000Z | 2019-06-07T01:56:42.000Z | /******************************************************************************
* $Id: calsdataset.cpp 33717 2016-03-14 06:29:14Z goatbar $
*
* Project: CALS driver
* Purpose: CALS driver
* Author: Even Rouault, <even dot rouault at spatialys dot com>
*
*******************************************************... | 39.946515 | 93 | 0.49714 | jimgambale |
b4329ed890ebebfbb0ee4738c654c77080fe7027 | 25,786 | cpp | C++ | _studio/shared/umc/codec/mpeg2_dec/src/umc_mpeg2_dec.cpp | TianmiChen/MediaSDK-1 | cff8ca88a06609685d37d86d47a31777448aaad8 | [
"MIT"
] | 1 | 2019-09-26T23:47:58.000Z | 2019-09-26T23:47:58.000Z | _studio/shared/umc/codec/mpeg2_dec/src/umc_mpeg2_dec.cpp | TianmiChen/MediaSDK-1 | cff8ca88a06609685d37d86d47a31777448aaad8 | [
"MIT"
] | null | null | null | _studio/shared/umc/codec/mpeg2_dec/src/umc_mpeg2_dec.cpp | TianmiChen/MediaSDK-1 | cff8ca88a06609685d37d86d47a31777448aaad8 | [
"MIT"
] | null | null | null | // Copyright (c) 2017-2018 Intel Corporation
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to use, copy, modify, merge... | 27.608137 | 118 | 0.65202 | TianmiChen |
b433eac0e67e0c6a8bed499fafba47b42edf6696 | 30,209 | cpp | C++ | gdal/ogr/ogrsf_frmts/elastic/ogrelasticdatasource.cpp | roman0yurin/gdal | 349a0992c7ebd0c71e8014e00897b098e4ca16fb | [
"MIT"
] | 9 | 2019-05-30T17:01:56.000Z | 2021-01-30T01:06:41.000Z | gdal/ogr/ogrsf_frmts/elastic/ogrelasticdatasource.cpp | roman0yurin/gdal | 349a0992c7ebd0c71e8014e00897b098e4ca16fb | [
"MIT"
] | 7 | 2018-04-09T09:35:42.000Z | 2018-05-22T06:54:05.000Z | gdal/ogr/ogrsf_frmts/elastic/ogrelasticdatasource.cpp | OpenGeoLabs/gdal | 7c397f8aee59df906fb51153f5a7980a8cc86d43 | [
"MIT"
] | 6 | 2019-02-03T14:19:32.000Z | 2021-12-19T06:36:49.000Z | /******************************************************************************
*
* Project: ElasticSearch Translator
* Purpose:
* Author:
*
******************************************************************************
* Copyright (c) 2011, Adam Estrada
* Copyright (c) 2012, Even Rouault <even dot rouault at ... | 37.526708 | 140 | 0.505512 | roman0yurin |
b434f34116d2a6bc1d41fba70072e15d0dfeb3f6 | 427 | hpp | C++ | thread/my_mtl/Mutex.hpp | hiraditya/fool | 922f794a4dba02132dcd8579de4b0108109097cb | [
"MIT"
] | null | null | null | thread/my_mtl/Mutex.hpp | hiraditya/fool | 922f794a4dba02132dcd8579de4b0108109097cb | [
"MIT"
] | null | null | null | thread/my_mtl/Mutex.hpp | hiraditya/fool | 922f794a4dba02132dcd8579de4b0108109097cb | [
"MIT"
] | 1 | 2018-05-08T21:07:35.000Z | 2018-05-08T21:07:35.000Z | /*
* @author Aditya Kumar
*
* This file is distributed under the MIT License. See
* LICENCE.txt attached with this project or visit
* http://www.opensource.org/licenses/mit-license.php
* for terms and conditions.
*/
#ifndef MUTEX_HPP
#define MUTEX_HPP
template<typename T>
class Mutex{
public:
Mut... | 17.791667 | 56 | 0.662763 | hiraditya |
b43513f0f0e91788d1f66ddd4b5ffaa59094f6a0 | 1,313 | hpp | C++ | src/Window.hpp | DomRe/eBookReaderNX | 991121aa7c9ee508496f7c75fb7a8a0965b7b28b | [
"Apache-2.0"
] | 14 | 2019-02-10T12:18:44.000Z | 2021-03-29T04:24:55.000Z | src/Window.hpp | DomRe/eBookReaderNX | 991121aa7c9ee508496f7c75fb7a8a0965b7b28b | [
"Apache-2.0"
] | 1 | 2018-09-18T17:56:16.000Z | 2018-09-19T02:47:06.000Z | src/Window.hpp | reworks/eBookReaderNX | 991121aa7c9ee508496f7c75fb7a8a0965b7b28b | [
"Apache-2.0"
] | 5 | 2019-05-21T19:15:58.000Z | 2021-03-16T15:49:24.000Z | ///
/// eBookReaderNX
/// reworks
/// Apache 2.0 License.
///
#ifndef EBRNX_WINDOW_HPP_
#define EBRNX_WINDOW_HPP_
#include <SDL2/SDL_video.h>
#include <SDL2/SDL_render.h>
///
/// The Window class to hold data about
/// an SDL_Window object.
///
class Window
{
public:
///
/// \brief Default constructor.
///
/// m... | 16.209877 | 112 | 0.635187 | DomRe |
b437c9e6f967dc73e8c6d5cc2d1aee79269a80bf | 1,231 | hpp | C++ | cpp/02/ex00/Fixed.hpp | maxdesalle/libft | 8845656e1f5cc1fec052cf97fc8f5839b2b590a8 | [
"Unlicense"
] | 3 | 2021-01-06T13:50:12.000Z | 2022-02-28T09:16:15.000Z | cpp/02/ex00/Fixed.hpp | maxdesalle/libft | 8845656e1f5cc1fec052cf97fc8f5839b2b590a8 | [
"Unlicense"
] | null | null | null | cpp/02/ex00/Fixed.hpp | maxdesalle/libft | 8845656e1f5cc1fec052cf97fc8f5839b2b590a8 | [
"Unlicense"
] | 1 | 2020-11-23T12:58:18.000Z | 2020-11-23T12:58:18.000Z | /* ************************************************************************** */
/* */
/* ::: :::::::: */
/* Fixed.hpp :+: :+: :+: ... | 31.564103 | 80 | 0.272949 | maxdesalle |
b438acae0c9ead6ca468b517c90c915689f526a1 | 2,897 | cc | C++ | libs/quadwild/libs/CoMISo/Solver/UMFPACKSolverT.cc | Pentacode-IAFA/Quad-Remeshing | f8fd4c10abf1c54656b38a00b8a698b952a85fe2 | [
"Apache-2.0"
] | 29 | 2019-11-27T00:43:07.000Z | 2020-02-25T14:35:54.000Z | libs/quadwild/libs/CoMISo/Solver/UMFPACKSolverT.cc | Pentacode-IAFA/Quad-Remeshing | f8fd4c10abf1c54656b38a00b8a698b952a85fe2 | [
"Apache-2.0"
] | 1 | 2018-11-14T23:14:58.000Z | 2018-11-14T23:14:58.000Z | libs/quadwild/libs/CoMISo/Solver/UMFPACKSolverT.cc | Pentacode-IAFA/Quad-Remeshing | f8fd4c10abf1c54656b38a00b8a698b952a85fe2 | [
"Apache-2.0"
] | 4 | 2019-11-27T05:19:03.000Z | 2020-03-23T22:49:53.000Z | /*===========================================================================*\
* *
* CoMISo *
* Copyright (C) 2008-2009 by Computer Graphics Group, RWTH Aachen *
* ... | 35.765432 | 81 | 0.409734 | Pentacode-IAFA |
b438d96cce2dc0c45bc9c31bcc256f854057c19e | 10,372 | cpp | C++ | test/unittest/transport/UDPv4Tests.cpp | nuclearsandwich/fastrtps-debian | c2919b4433b545ca7deb10d8c82cfdfb119b4960 | [
"Apache-2.0"
] | 3 | 2017-05-10T11:03:52.000Z | 2021-05-27T09:38:00.000Z | test/unittest/transport/UDPv4Tests.cpp | tedostrem/Fast-RTPS | f730847ff84a7980d5cb39bafa0158df73e3acbd | [
"Apache-2.0"
] | null | null | null | test/unittest/transport/UDPv4Tests.cpp | tedostrem/Fast-RTPS | f730847ff84a7980d5cb39bafa0158df73e3acbd | [
"Apache-2.0"
] | null | null | null | // Copyright 2016 Proyectos y Sistemas de Mantenimiento SL (eProsima).
//
// 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 re... | 34.458472 | 163 | 0.760509 | nuclearsandwich |
b4393706b290aa03365cdc16b6bc7c82636511e6 | 11,804 | cpp | C++ | src/graphics/ModelIO.cpp | caseymcc/Vorb | a2782bbff662c226002fa69bae688a44770deaf4 | [
"MIT"
] | 1 | 2018-10-17T06:37:17.000Z | 2018-10-17T06:37:17.000Z | src/graphics/ModelIO.cpp | caseymcc/Vorb | a2782bbff662c226002fa69bae688a44770deaf4 | [
"MIT"
] | null | null | null | src/graphics/ModelIO.cpp | caseymcc/Vorb | a2782bbff662c226002fa69bae688a44770deaf4 | [
"MIT"
] | null | null | null | #include "stdafx.h"
#include "graphics/ModelIO.h"
namespace vorb {
namespace graphics {
namespace impl {
static const cString traverseWhitespace(const cString s) {
while (true) {
switch (*s) {
case 0:
return nullptr... | 32.698061 | 138 | 0.439851 | caseymcc |
b4397660f7c8d9836e9f032121cc4919240858ac | 1,842 | cpp | C++ | src/engine/components/vgui2/dme_controls/AttributeMDLPickerPanel.cpp | cstom4994/SourceEngineRebuild | edfd7f8ce8af13e9d23586318350319a2e193c08 | [
"MIT"
] | 6 | 2022-01-23T09:40:33.000Z | 2022-03-20T20:53:25.000Z | src/engine/components/vgui2/dme_controls/AttributeMDLPickerPanel.cpp | cstom4994/SourceEngineRebuild | edfd7f8ce8af13e9d23586318350319a2e193c08 | [
"MIT"
] | null | null | null | src/engine/components/vgui2/dme_controls/AttributeMDLPickerPanel.cpp | cstom4994/SourceEngineRebuild | edfd7f8ce8af13e9d23586318350319a2e193c08 | [
"MIT"
] | 1 | 2022-02-06T21:05:23.000Z | 2022-02-06T21:05:23.000Z | //========= Copyright Valve Corporation, All rights reserved. ============//
//
// Purpose:
//
// $NoKeywords: $
//
//===========================================================================//
#include "dme_controls/AttributeMDLPickerPanel.h"
#include "filesystem.h"
#include "vgui_controls/Button.h"
#include "vgu... | 32.315789 | 108 | 0.494571 | cstom4994 |
b43ade6a4c58e29260b9245364e029d2d35704ca | 5,574 | hpp | C++ | include/htcw_data.hpp | codewitch-honey-crisis/htcw_data | 2cbbc318441a7380f31e60adbf3e1cf994034e5b | [
"MIT"
] | null | null | null | include/htcw_data.hpp | codewitch-honey-crisis/htcw_data | 2cbbc318441a7380f31e60adbf3e1cf994034e5b | [
"MIT"
] | null | null | null | include/htcw_data.hpp | codewitch-honey-crisis/htcw_data | 2cbbc318441a7380f31e60adbf3e1cf994034e5b | [
"MIT"
] | null | null | null | #pragma once
#include <stdlib.h>
namespace data {
// dynamic vector of scalar (constructorless) data
template <typename T>
class simple_vector final {
void* (*m_allocator)(size_t);
void* (*m_reallocator)(void*, size_t);
void (*m_deallocator)(void*);
size_t m_size; // size in... | 34.196319 | 103 | 0.468425 | codewitch-honey-crisis |
b43be8ab14f63fc59681ad842f6bcfcf2c78198b | 3,060 | hpp | C++ | lib/core/include/dns_cache.hpp | JustinKyleJames/irods | 59e9db75200e95796ec51ec20eb3b185d9e4b5f5 | [
"BSD-3-Clause"
] | 333 | 2015-01-15T15:42:29.000Z | 2022-03-19T19:16:15.000Z | lib/core/include/dns_cache.hpp | JustinKyleJames/irods | 59e9db75200e95796ec51ec20eb3b185d9e4b5f5 | [
"BSD-3-Clause"
] | 3,551 | 2015-01-02T19:55:40.000Z | 2022-03-31T21:24:56.000Z | lib/core/include/dns_cache.hpp | JustinKyleJames/irods | 59e9db75200e95796ec51ec20eb3b185d9e4b5f5 | [
"BSD-3-Clause"
] | 148 | 2015-01-31T16:13:46.000Z | 2022-03-23T20:23:43.000Z | #ifndef IRODS_DNS_CACHE_HPP
#define IRODS_DNS_CACHE_HPP
/// \file
#include <string>
#include <string_view>
#include <memory>
#include <chrono>
#include <sys/types.h>
#include <sys/socket.h>
#include <netdb.h>
namespace irods::experimental::net::dns_cache
{
/// The type of the deleter used by dns_lookup() and ot... | 31.546392 | 97 | 0.615686 | JustinKyleJames |
b43e6c8317c5f81cdd0d519bcc3e180e4fff14a0 | 5,300 | cc | C++ | chrome/browser/extensions/extension_idle_api.cc | Gitman1989/chromium | 2b1cceae1075ef012fb225deec8b4c8bbe4bc897 | [
"BSD-3-Clause"
] | 2 | 2017-09-02T19:08:28.000Z | 2021-11-15T15:15:14.000Z | chrome/browser/extensions/extension_idle_api.cc | Gitman1989/chromium | 2b1cceae1075ef012fb225deec8b4c8bbe4bc897 | [
"BSD-3-Clause"
] | null | null | null | chrome/browser/extensions/extension_idle_api.cc | Gitman1989/chromium | 2b1cceae1075ef012fb225deec8b4c8bbe4bc897 | [
"BSD-3-Clause"
] | 1 | 2020-04-13T05:45:10.000Z | 2020-04-13T05:45:10.000Z | // Copyright (c) 2010 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.
// This implementation supposes a single extension thread and synchronized
// method invokation.
#include "chrome/browser/extensions/extension_idle_a... | 33.544304 | 80 | 0.755283 | Gitman1989 |
b43f31f83fc784a15523b48c47afebdcc9392047 | 1,210 | cpp | C++ | tools/clang/test/Driver/cl-eh.cpp | spurious/safecode-mirror | 238e1a381674528f642e1ee6be1e1b7df465672e | [
"NCSA"
] | 5 | 2015-07-23T09:47:12.000Z | 2019-11-28T01:34:01.000Z | tools/clang/test/Driver/cl-eh.cpp | spurious/safecode-mirror | 238e1a381674528f642e1ee6be1e1b7df465672e | [
"NCSA"
] | 1 | 2016-02-10T15:40:03.000Z | 2016-02-10T15:40:03.000Z | 3.7.0/cfe-3.7.0.src/test/Driver/cl-eh.cpp | androm3da/clang_sles | 2ba6d0711546ad681883c42dfb8661b842806695 | [
"MIT"
] | 3 | 2015-10-28T18:21:02.000Z | 2019-05-06T18:35:41.000Z | // Don't attempt slash switches on msys bash.
// REQUIRES: shell-preserves-root
// Note: %s must be preceded by --, otherwise it may be interpreted as a
// command-line option, e.g. on Mac where %s is commonly under /Users.
// FIXME: When C++ EH works, we can make this flag turn things back on.
// RUN: %clang_cl /c ... | 37.8125 | 86 | 0.642149 | spurious |
b440eb3457418b27b7c98a5450b91897ed512c52 | 3,650 | cpp | C++ | src/msg_ping.cpp | Toxe/db-performance-test | 8f8d2a92a7a87fb11caea5335f72409a20be8278 | [
"MIT"
] | null | null | null | src/msg_ping.cpp | Toxe/db-performance-test | 8f8d2a92a7a87fb11caea5335f72409a20be8278 | [
"MIT"
] | null | null | null | src/msg_ping.cpp | Toxe/db-performance-test | 8f8d2a92a7a87fb11caea5335f72409a20be8278 | [
"MIT"
] | null | null | null | #include <chrono>
#include <csignal>
#include <string>
#include <thread>
#include <tuple>
#include <vector>
#include <clipp.h>
#include <cpr/cpr.h>
#include <fmt/core.h>
#include <fmt/ostream.h>
#include <nlohmann/json.hpp>
#include <spdlog/spdlog.h>
#include "common/combined_logger.h"
#include "common/msg.h"
#includ... | 31.196581 | 130 | 0.62137 | Toxe |
b443b1ff9dbd5262f3635c3f28960e8ef26992cb | 4,160 | cc | C++ | test/cpp/util/error_details_test.cc | echo80313/grpc | 93cdc8b77e7b3fe4a3afec1c9c7e29b3f02ec3cf | [
"Apache-2.0"
] | null | null | null | test/cpp/util/error_details_test.cc | echo80313/grpc | 93cdc8b77e7b3fe4a3afec1c9c7e29b3f02ec3cf | [
"Apache-2.0"
] | 4 | 2022-02-27T18:59:37.000Z | 2022-02-27T18:59:53.000Z | test/cpp/util/error_details_test.cc | echo80313/grpc | 93cdc8b77e7b3fe4a3afec1c9c7e29b3f02ec3cf | [
"Apache-2.0"
] | null | null | null | /*
*
* Copyright 2017 gRPC authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agree... | 32.755906 | 75 | 0.71899 | echo80313 |
b44449bef010ac258d84c8d0dca4ff34c38743ee | 5,369 | cpp | C++ | tests/ocltst/module/gl/OCLGLTexture.cpp | RadeonOpenCompute/ROCm-OpenCL-Runtime | 12d926d06d36fe74876a82f8f8e1ce8ce7902728 | [
"MIT"
] | 137 | 2017-05-12T14:49:38.000Z | 2022-02-21T06:46:40.000Z | tests/ocltst/module/gl/OCLGLTexture.cpp | RadeonOpenCompute/ROCm-OpenCL-Runtime | 12d926d06d36fe74876a82f8f8e1ce8ce7902728 | [
"MIT"
] | 103 | 2017-05-12T23:07:28.000Z | 2022-03-31T14:49:32.000Z | tests/ocltst/module/gl/OCLGLTexture.cpp | RadeonOpenCompute/ROCm-OpenCL-Runtime | 12d926d06d36fe74876a82f8f8e1ce8ce7902728 | [
"MIT"
] | 53 | 2017-05-13T11:36:32.000Z | 2022-03-27T09:29:42.000Z | /* Copyright (c) 2010 - 2021 Advanced Micro Devices, Inc.
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, mer... | 37.027586 | 80 | 0.57683 | RadeonOpenCompute |
b44492a2f3e9aee927d2f1da2caff6d97f4a97b9 | 707 | cpp | C++ | leetcode/two_sum/leetcode_59.cpp | HuangJingGitHub/PracMakePert_C-Cpp | 6ed39e757ad8ba7bdd75fffdaf28d17a294a11e5 | [
"Apache-2.0"
] | 1 | 2019-10-17T03:13:29.000Z | 2019-10-17T03:13:29.000Z | leetcode/two_sum/leetcode_59.cpp | HuangJingGitHub/PracMakePert_C-Cpp | 6ed39e757ad8ba7bdd75fffdaf28d17a294a11e5 | [
"Apache-2.0"
] | null | null | null | leetcode/two_sum/leetcode_59.cpp | HuangJingGitHub/PracMakePert_C-Cpp | 6ed39e757ad8ba7bdd75fffdaf28d17a294a11e5 | [
"Apache-2.0"
] | null | null | null | class Solution {
public:
vector<vector<int>> generateMatrix(int n) {
vector<vector<int>> res;
vector<int> onesRow(n, 1);
for (int i = 0; i < n; i++)
res.push_back(onesRow);
int row = 0, col = 0, num = 1;
for (int i = 0; i < n-1; i++){
for (row = i, co... | 30.73913 | 61 | 0.398868 | HuangJingGitHub |
b445868c69249d83885c0cb2a3f46d8d4d99c876 | 83,691 | cpp | C++ | Source/AllProjects/LangUtils/CIDMacroEng/CIDMacroEng_MethodImpl.cpp | eudora-jia/CIDLib | 02795d283d95f8a5a4fafa401b6189851901b81b | [
"MIT"
] | 1 | 2019-05-28T06:33:01.000Z | 2019-05-28T06:33:01.000Z | Source/AllProjects/LangUtils/CIDMacroEng/CIDMacroEng_MethodImpl.cpp | eudora-jia/CIDLib | 02795d283d95f8a5a4fafa401b6189851901b81b | [
"MIT"
] | null | null | null | Source/AllProjects/LangUtils/CIDMacroEng/CIDMacroEng_MethodImpl.cpp | eudora-jia/CIDLib | 02795d283d95f8a5a4fafa401b6189851901b81b | [
"MIT"
] | null | null | null | //
// FILE NAME: CIDMacroEng_MethodImpl.cpp
//
// AUTHOR: Dean Roddey
//
// CREATED: 01/12/2003
//
// COPYRIGHT: Charmed Quark Systems, Ltd @ 2019
//
// This software is copyrighted by 'Charmed Quark Systems, Ltd' and
// the author (Dean Roddey.) It is licensed under the MIT Open Source
// license:
//
// https://op... | 36.562254 | 99 | 0.455294 | eudora-jia |
b445e2dc9ca4ec109952580e39c90db270548522 | 2,410 | cpp | C++ | Exams/Regular Exam - 12 September 2021/03. Diablo/Barbarian.cpp | AleksievAleksandar/Cpp-OOP | 03b95e8378cc64e52bf49b4c719b5b1f2cd332a1 | [
"MIT"
] | null | null | null | Exams/Regular Exam - 12 September 2021/03. Diablo/Barbarian.cpp | AleksievAleksandar/Cpp-OOP | 03b95e8378cc64e52bf49b4c719b5b1f2cd332a1 | [
"MIT"
] | null | null | null | Exams/Regular Exam - 12 September 2021/03. Diablo/Barbarian.cpp | AleksievAleksandar/Cpp-OOP | 03b95e8378cc64e52bf49b4c719b5b1f2cd332a1 | [
"MIT"
] | null | null | null | #include "Barbarian.h"
#include <iostream>
#include <sstream>
#include <string>
Barbarian::Barbarian(const VitalData& vitalData) :
defendsTurns(1)
{
this->_name = BARBARIAN_NAME;
this->_vitalData = vitalData;
}
void Barbarian::readSpellFromInput(SpellType spellType)
{
switch (spellType)
{
cas... | 26.777778 | 138 | 0.679253 | AleksievAleksandar |
b447159c6c15d84f59f74f8dbdc8b13e4c967d8e | 1,866 | cc | C++ | cpp/common/statics.cc | nathanawmk/SPARTA | 6eeb28b2dd147088b6e851876b36eeba3e700f16 | [
"BSD-2-Clause"
] | 37 | 2017-06-09T13:55:23.000Z | 2022-01-28T12:51:17.000Z | cpp/common/statics.cc | nathanawmk/SPARTA | 6eeb28b2dd147088b6e851876b36eeba3e700f16 | [
"BSD-2-Clause"
] | null | null | null | cpp/common/statics.cc | nathanawmk/SPARTA | 6eeb28b2dd147088b6e851876b36eeba3e700f16 | [
"BSD-2-Clause"
] | 5 | 2017-06-09T13:55:26.000Z | 2021-11-11T03:51:56.000Z | //*****************************************************************
// Copyright 2015 MIT Lincoln Laboratory
// Project: SPAR
// Authors: OMD
// Description: Implementation of stuff in statics.h
//
// Modifications:
// Date Name Modification
// ---- ---- ... | 28.272727 | 77 | 0.644695 | nathanawmk |
b447d6c8653f4c4434ae41d81964325f6c402d0f | 3,561 | cpp | C++ | src/presolve/PresolveAnalysis.cpp | ogmundur/HiGHS | ed3a64f589b3a1962783caef793dc20b158210d4 | [
"MIT"
] | null | null | null | src/presolve/PresolveAnalysis.cpp | ogmundur/HiGHS | ed3a64f589b3a1962783caef793dc20b158210d4 | [
"MIT"
] | null | null | null | src/presolve/PresolveAnalysis.cpp | ogmundur/HiGHS | ed3a64f589b3a1962783caef793dc20b158210d4 | [
"MIT"
] | null | null | null | /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
/* */
/* This file is part of the HiGHS linear optimization suite */
/* */
/* Written an... | 46.246753 | 79 | 0.625948 | ogmundur |
b448d6988070721fc195dbe00ce828972096cdeb | 1,307 | cpp | C++ | src/ColumnsImpl.cpp | zhangf911/SPLib | 57ae498f61abe9c14670a974340251cd67ca99fb | [
"BSD-2-Clause"
] | 1 | 2015-11-06T03:40:44.000Z | 2015-11-06T03:40:44.000Z | src/ColumnsImpl.cpp | amyvmiwei/SPLib | 57ae498f61abe9c14670a974340251cd67ca99fb | [
"BSD-2-Clause"
] | null | null | null | src/ColumnsImpl.cpp | amyvmiwei/SPLib | 57ae498f61abe9c14670a974340251cd67ca99fb | [
"BSD-2-Clause"
] | 1 | 2020-12-16T03:20:45.000Z | 2020-12-16T03:20:45.000Z | // File: ColumnsImpl.cpp
// ColumnsImpl implementation file
//
#include "ColumnsImpl.h"
#include "IndexLimits.h"
#include "Util.h"
#include "splibint.h"
namespace splib {
Column& ColumnsImpl::get(int index) {
if (!IndexLimits::validateColumn(index)) {
throw IllegalArgumentException();
}... | 21.080645 | 49 | 0.648049 | zhangf911 |
b44fe190b5d4234bb78a800d5f59a9383a77fd4a | 2,909 | cc | C++ | L1Trigger/TrackFindingTMTT/src/KalmanState.cc | ckamtsikis/cmssw | ea19fe642bb7537cbf58451dcf73aa5fd1b66250 | [
"Apache-2.0"
] | 852 | 2015-01-11T21:03:51.000Z | 2022-03-25T21:14:00.000Z | L1Trigger/TrackFindingTMTT/src/KalmanState.cc | ckamtsikis/cmssw | ea19fe642bb7537cbf58451dcf73aa5fd1b66250 | [
"Apache-2.0"
] | 30,371 | 2015-01-02T00:14:40.000Z | 2022-03-31T23:26:05.000Z | L1Trigger/TrackFindingTMTT/src/KalmanState.cc | ckamtsikis/cmssw | ea19fe642bb7537cbf58451dcf73aa5fd1b66250 | [
"Apache-2.0"
] | 3,240 | 2015-01-02T05:53:18.000Z | 2022-03-31T17:24:21.000Z | #include "L1Trigger/TrackFindingTMTT/interface/KalmanState.h"
#include "L1Trigger/TrackFindingTMTT/interface/Settings.h"
#include "TMatrixD.h"
using namespace std;
namespace tmtt {
KalmanState::KalmanState(const Settings *settings,
const L1track3D &candidate,
u... | 27.971154 | 83 | 0.54933 | ckamtsikis |
b4506fd678ceca1db0f7d07f686bafc87d988133 | 6,542 | cpp | C++ | src/plugins_pkgs/car_plugin/src/carlikerobot.cpp | ZeroTheRed/Simulator | d3e05cfe9cb8ac33abcfb4b501f1b8da2ff5ed67 | [
"BSD-3-Clause"
] | 1 | 2021-11-16T16:53:25.000Z | 2021-11-16T16:53:25.000Z | src/plugins_pkgs/car_plugin/src/carlikerobot.cpp | ZeroTheRed/Simulator | d3e05cfe9cb8ac33abcfb4b501f1b8da2ff5ed67 | [
"BSD-3-Clause"
] | 4 | 2021-11-12T09:06:19.000Z | 2021-12-09T14:35:38.000Z | src/plugins_pkgs/car_plugin/src/carlikerobot.cpp | ZeroTheRed/Simulator | d3e05cfe9cb8ac33abcfb4b501f1b8da2ff5ed67 | [
"BSD-3-Clause"
] | 10 | 2021-11-25T10:39:51.000Z | 2022-03-09T10:21:26.000Z | #include "carlikerobot.hpp"
#define DEBUG false
namespace gazebo{
namespace carlikerobot{
/*
axletrack : the distance between the wheels as you look the car frontal
wheelbase : the distance between the wheels as you look the car from side
*/
/// FRONT
CFrontWheelsSpee... | 45.430556 | 155 | 0.503821 | ZeroTheRed |
b4530107b7876bf81974cc75b2e58f5fa33d34ca | 3,469 | cpp | C++ | SpaceFighter/main.cpp | issuran/SpaceFighter | d0ff09bcb4d91b003d9dba3a7386e39d5471bc00 | [
"MIT"
] | 7 | 2017-11-10T13:04:24.000Z | 2019-06-04T19:11:26.000Z | SpaceFighter/main.cpp | issuran/SpaceFighter | d0ff09bcb4d91b003d9dba3a7386e39d5471bc00 | [
"MIT"
] | null | null | null | SpaceFighter/main.cpp | issuran/SpaceFighter | d0ff09bcb4d91b003d9dba3a7386e39d5471bc00 | [
"MIT"
] | null | null | null | #include "SDL.h"
#include "Game.h"
#include "Splash.h"
#include "MainMenu.h"
#include "GameOver.h"
Game *game = nullptr;
Splash *splash = nullptr;
MainMenu *main_menu = nullptr;
GameOver *game_over = nullptr;
SDL_Window *window = nullptr;
SDL_Renderer* renderer = nullptr;
SDL_Surface* surfaces = nullptr;
SDL_Window... | 18.550802 | 106 | 0.6806 | issuran |
b45538c27aeaa03dfbc5201dddd787f282ae999f | 1,201 | hpp | C++ | api-cpp-grpc/src/CloudGRPCMacros.hpp | nuralogix/dfx-api-client-cpp | 6b45307ddf4b0036c107eebd7e8915f6c501c3b0 | [
"MIT"
] | null | null | null | api-cpp-grpc/src/CloudGRPCMacros.hpp | nuralogix/dfx-api-client-cpp | 6b45307ddf4b0036c107eebd7e8915f6c501c3b0 | [
"MIT"
] | null | null | null | api-cpp-grpc/src/CloudGRPCMacros.hpp | nuralogix/dfx-api-client-cpp | 6b45307ddf4b0036c107eebd7e8915f6c501c3b0 | [
"MIT"
] | null | null | null | // Copyright (c) Nuralogix. All rights reserved. Licensed under the MIT license.
// See LICENSE.txt in the project root for license information.
#ifndef DFX_API_CLOUD_GRPC_MACROS_H
#define DFX_API_CLOUD_GRPC_MACROS_H
#else
// This header should ONLY be used from source files and is not included from headers
// So this... | 60.05 | 120 | 0.422981 | nuralogix |
b458d8e963622189acbc0fca6921364527015177 | 3,941 | cpp | C++ | depends/work/build/i686-w64-mingw32/qt/5.9.7-f2560c1efa6/qttools/src/designer/src/components/tabordereditor/tabordereditor_plugin.cpp | GrinCash/Grinc-core | 1377979453ba84082f70f9c128be38e57b65a909 | [
"MIT"
] | null | null | null | depends/work/build/i686-w64-mingw32/qt/5.9.7-f2560c1efa6/qttools/src/designer/src/components/tabordereditor/tabordereditor_plugin.cpp | GrinCash/Grinc-core | 1377979453ba84082f70f9c128be38e57b65a909 | [
"MIT"
] | null | null | null | depends/work/build/i686-w64-mingw32/qt/5.9.7-f2560c1efa6/qttools/src/designer/src/components/tabordereditor/tabordereditor_plugin.cpp | GrinCash/Grinc-core | 1377979453ba84082f70f9c128be38e57b65a909 | [
"MIT"
] | null | null | null | /****************************************************************************
**
** Copyright (C) 2016 The Qt Company Ltd.
** Contact: https://www.qt.io/licensing/
**
** This file is part of the Qt Designer of the Qt Toolkit.
**
** $QT_BEGIN_LICENSE:GPL-EXCEPT$
** Commercial License Usage
** Licensees holding valid com... | 32.570248 | 105 | 0.722152 | GrinCash |
b459543c2154eada9979121297cf7d8d83bf8c66 | 18,687 | hxx | C++ | src/Registration/itktubeMergeAdjacentImagesFilter.hxx | thewtex/TubeTK | 7536c6c112e1785cead4d008e8fae5ca8f527f20 | [
"Apache-2.0"
] | null | null | null | src/Registration/itktubeMergeAdjacentImagesFilter.hxx | thewtex/TubeTK | 7536c6c112e1785cead4d008e8fae5ca8f527f20 | [
"Apache-2.0"
] | null | null | null | src/Registration/itktubeMergeAdjacentImagesFilter.hxx | thewtex/TubeTK | 7536c6c112e1785cead4d008e8fae5ca8f527f20 | [
"Apache-2.0"
] | null | null | null | /*=========================================================================
Library: TubeTK
Copyright Kitware Inc.
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
ht... | 29.017081 | 81 | 0.650987 | thewtex |
b45c624a480605f419d51f6820c67637dc6fb2da | 16,961 | cpp | C++ | src/tools/wasm-ctor-eval.cpp | brion/binaryen | 977aa84f357d051b0ddc60f204c6b743463c3c6f | [
"Apache-2.0"
] | null | null | null | src/tools/wasm-ctor-eval.cpp | brion/binaryen | 977aa84f357d051b0ddc60f204c6b743463c3c6f | [
"Apache-2.0"
] | null | null | null | src/tools/wasm-ctor-eval.cpp | brion/binaryen | 977aa84f357d051b0ddc60f204c6b743463c3c6f | [
"Apache-2.0"
] | null | null | null | /*
* Copyright 2017 WebAssembly Community Group participants
*
* 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... | 34.473577 | 80 | 0.638347 | brion |
b45c76c159dde7b08904e8bde372584caa32f7ef | 270 | cpp | C++ | Command/InputHandler.cpp | Notidman/DesignPatterns | 85f51dccde0f435b8837a6e985f16bbbe6165317 | [
"MIT"
] | null | null | null | Command/InputHandler.cpp | Notidman/DesignPatterns | 85f51dccde0f435b8837a6e985f16bbbe6165317 | [
"MIT"
] | 1 | 2022-02-02T13:09:27.000Z | 2022-02-02T13:09:27.000Z | Command/InputHandler.cpp | Notidman/DesignPatterns | 85f51dccde0f435b8837a6e985f16bbbe6165317 | [
"MIT"
] | null | null | null | #include "InputHandler.hpp"
void InputHandler::handleInput()
{
if(isPressed(BUTTON_X)) buttonX_->execute();
else if(isPressed(BUTTON_Y)) buttonY_->execute();
else if(isPressed(BUTTON_B)) buttonB_->execute();
else if(isPressed(BUTTON_A)) buttonA_->execute();
}
| 27 | 51 | 0.72963 | Notidman |
b45ea1aa735dad2ca78b59ed4def5f3f36398ef4 | 637 | hpp | C++ | impl/inc/defs.hpp | HMNoureldin/EmbeddedIntentRecognizer | 6684a6724c982299973f4f29673915b261803a07 | [
"Unlicense"
] | null | null | null | impl/inc/defs.hpp | HMNoureldin/EmbeddedIntentRecognizer | 6684a6724c982299973f4f29673915b261803a07 | [
"Unlicense"
] | null | null | null | impl/inc/defs.hpp | HMNoureldin/EmbeddedIntentRecognizer | 6684a6724c982299973f4f29673915b261803a07 | [
"Unlicense"
] | null | null | null | #ifndef _DEFS_H_
#define _DEFS_H_
#include<string>
/// Different types of intents that system can recognize.
enum IntentType { NONE, WEATHER, FACT};
/// Command for clearing the CMD.
namespace Cmd{
const std::string clear_cmd = "\033[2J\033[1;1H";
}
/// Different types of intents messages.
namespace Intents {
... | 27.695652 | 75 | 0.67033 | HMNoureldin |
b45eb090c56ac8649c230f76dba61ee9dd102455 | 3,176 | hpp | C++ | src/xray/Luabind/luabind/error.hpp | OLR-xray/OLR-3.0 | b6a9bb2a0c1fb849b8c6cea2e831e1ceea5cc611 | [
"Apache-2.0"
] | 8 | 2016-01-25T20:18:51.000Z | 2019-03-06T07:00:04.000Z | src/xray/Luabind/luabind/error.hpp | OLR-xray/OLR-3.0 | b6a9bb2a0c1fb849b8c6cea2e831e1ceea5cc611 | [
"Apache-2.0"
] | null | null | null | src/xray/Luabind/luabind/error.hpp | OLR-xray/OLR-3.0 | b6a9bb2a0c1fb849b8c6cea2e831e1ceea5cc611 | [
"Apache-2.0"
] | 3 | 2016-02-14T01:20:43.000Z | 2021-02-03T11:19:11.000Z | // Copyright (c) 2003 Daniel Wallin and Arvid Norberg
// Permission is hereby granted, free of charge, to any person obtaining a
// copy of this software and associated documentation files (the "Software"),
// to deal in the Software without restriction, including without limitation
// the rights to use, copy, modify,... | 34.150538 | 77 | 0.759446 | OLR-xray |
b45ee03d6ee0e24fbd6232a16f25ea2f9f06175e | 18,058 | cc | C++ | ui/base/x/x11_cursor_loader.cc | DamieFC/chromium | 54ce2d3c77723697efd22cfdb02aea38f9dfa25c | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 1 | 2020-10-18T02:33:40.000Z | 2020-10-18T02:33:40.000Z | ui/base/x/x11_cursor_loader.cc | DamieFC/chromium | 54ce2d3c77723697efd22cfdb02aea38f9dfa25c | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 3 | 2021-05-17T16:28:52.000Z | 2021-05-21T22:42:22.000Z | ui/base/x/x11_cursor_loader.cc | DamieFC/chromium | 54ce2d3c77723697efd22cfdb02aea38f9dfa25c | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | null | null | null | // Copyright 2020 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 "ui/base/x/x11_cursor_loader.h"
#include <dlfcn.h>
#include <limits>
#include <string>
#include "base/bind.h"
#include "base/compiler_specific... | 30.34958 | 97 | 0.678425 | DamieFC |
b46173abcdc67a8c457e30130c87b446217cbcb7 | 18,498 | cpp | C++ | src/unittest/cluster.cpp | fabbondanza/vg | 86edd831bd76b4c33e4cf51134f557c49736cf2b | [
"MIT"
] | null | null | null | src/unittest/cluster.cpp | fabbondanza/vg | 86edd831bd76b4c33e4cf51134f557c49736cf2b | [
"MIT"
] | null | null | null | src/unittest/cluster.cpp | fabbondanza/vg | 86edd831bd76b4c33e4cf51134f557c49736cf2b | [
"MIT"
] | null | null | null | #include <stdio.h>
#include <stdlib.h>
#include <iostream>
#include <fstream>
#include <set>
#include "json2pb.h"
#include "vg.hpp"
#include "xg.hpp"
#include "catch.hpp"
#include "snarls.hpp"
#include "cluster.hpp"
#include "min_distance.hpp"
#include "genotypekit.hpp"
#include "random_graph.hpp"
#include <fstream>
#i... | 43.524706 | 124 | 0.536058 | fabbondanza |
b4621d86929f24ee2360a3f9732f587d50f0d0f4 | 39,981 | cpp | C++ | tests/SelfTest/UsageTests/Matchers.tests.cpp | kjx98/Catch2 | e0808bd18607ccfc14f48eab8044e1bb877bb7cc | [
"BSL-1.0"
] | 1 | 2020-11-10T20:19:01.000Z | 2020-11-10T20:19:01.000Z | tests/SelfTest/UsageTests/Matchers.tests.cpp | kjx98/Catch2 | e0808bd18607ccfc14f48eab8044e1bb877bb7cc | [
"BSL-1.0"
] | null | null | null | tests/SelfTest/UsageTests/Matchers.tests.cpp | kjx98/Catch2 | e0808bd18607ccfc14f48eab8044e1bb877bb7cc | [
"BSL-1.0"
] | null | null | null | /*
* 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 <catch2/catch_test_macros.hpp>
#include <catch2/matchers/catch_matchers_exception.hpp>
#include <catch2/matchers/catch_matchers_floating.hpp>
#inclu... | 38.741279 | 127 | 0.563017 | kjx98 |
b463c42d2df0d435de6be37973e962e46494a9db | 12,460 | cpp | C++ | src/external_plugins/term_direct_gl_ui/default_term_window.cpp | stonewell/wxglterm | 27480ed01e2832e98785b517ac17037a71cefe7c | [
"MIT"
] | 12 | 2017-11-23T16:02:41.000Z | 2019-12-29T08:36:36.000Z | src/external_plugins/term_direct_gl_ui/default_term_window.cpp | stonewell/wxglterm | 27480ed01e2832e98785b517ac17037a71cefe7c | [
"MIT"
] | 9 | 2017-12-04T15:55:51.000Z | 2019-11-01T13:08:21.000Z | src/external_plugins/term_direct_gl_ui/default_term_window.cpp | stonewell/wxglterm | 27480ed01e2832e98785b517ac17037a71cefe7c | [
"MIT"
] | 5 | 2018-09-02T07:35:13.000Z | 2019-12-29T08:36:37.000Z | #include <pybind11/embed.h>
#include "opengl.h"
#include "default_term_window.h"
#include "term_ui.h"
#include "term_buffer.h"
#include "term_context.h"
#include "term_network.h"
#include "color_theme.h"
#include "task.h"
#include "char_width.h"
#include <iostream>
#include <iterator>
#include <functional>
#includ... | 25.532787 | 98 | 0.607544 | stonewell |
b463cfb4943abd37ed0ec839760eb7b1e73428d3 | 2,567 | cpp | C++ | codeforces/E - Kefa and Watch/Wrong answer on test 7 (2).cpp | kzvd4729/Problem-Solving | 13b105e725a4c2f8db7fecc5d7a8f932b9fef4ab | [
"MIT"
] | 1 | 2022-02-11T16:55:36.000Z | 2022-02-11T16:55:36.000Z | codeforces/E - Kefa and Watch/Wrong answer on test 7 (2).cpp | kzvd4729/Problem-Solving | 13b105e725a4c2f8db7fecc5d7a8f932b9fef4ab | [
"MIT"
] | null | null | null | codeforces/E - Kefa and Watch/Wrong answer on test 7 (2).cpp | kzvd4729/Problem-Solving | 13b105e725a4c2f8db7fecc5d7a8f932b9fef4ab | [
"MIT"
] | null | null | null | /****************************************************************************************
* @author: kzvd4729 created: Nov/16/2018 17:20
* solution_verdict: Wrong answer on test 7 language: GNU C++14
* run... | 25.67 | 111 | 0.479548 | kzvd4729 |
b46631edc9d66ac6944cd72ecfd73627d081e267 | 8,628 | hpp | C++ | include/primer/bound_function.hpp | cbeck88/lua-primer | f6b96a24f96bc3bf03896aea0f758d76ae388fb9 | [
"BSL-1.0"
] | 14 | 2016-07-27T18:14:47.000Z | 2018-06-15T19:54:10.000Z | include/primer/bound_function.hpp | garbageslam/lua-primer | f6b96a24f96bc3bf03896aea0f758d76ae388fb9 | [
"BSL-1.0"
] | 5 | 2016-11-01T23:20:35.000Z | 2016-11-29T21:09:53.000Z | include/primer/bound_function.hpp | cbeck88/lua-primer | f6b96a24f96bc3bf03896aea0f758d76ae388fb9 | [
"BSL-1.0"
] | 2 | 2021-02-07T03:42:22.000Z | 2021-02-10T14:12:00.000Z | // (C) Copyright 2015 - 2018 Christopher Beck
// Distributed under the Boost Software License, Version 1.0. (See accompanying
// file LICENSE or copy at http://www.boost.org/LICENSE_1_0.txt)
#pragma once
/***
* A bound_function is a reference to an object of function type in a lua VM.
*
* This is a safe and co... | 34.374502 | 80 | 0.642211 | cbeck88 |
b4665e38ca3d59babe575d1a6fb6e462c5de443c | 5,120 | cc | C++ | cpp/Closest_pair_points.cc | iskhanba/epicode | fda752e5e016ab64011083450be91bec9ee8358a | [
"MIT"
] | null | null | null | cpp/Closest_pair_points.cc | iskhanba/epicode | fda752e5e016ab64011083450be91bec9ee8358a | [
"MIT"
] | null | null | null | cpp/Closest_pair_points.cc | iskhanba/epicode | fda752e5e016ab64011083450be91bec9ee8358a | [
"MIT"
] | null | null | null | // Copyright (c) 2015 Elements of Programming Interviews. All rights reserved.
#include <algorithm>
#include <cassert>
#include <cmath>
#include <iostream>
#include <limits>
#include <random>
#include <utility>
#include <vector>
using std::cout;
using std::default_random_engine;
using std::endl;
using std::get;
using... | 31.411043 | 81 | 0.606836 | iskhanba |
b4687bb5b9a8415f2762eb03e9a0fc28328e5df6 | 7,019 | cxx | C++ | Modules/IO/TransformHDF5/test/itkThinPlateTransformWriteReadTest.cxx | dave3d/ITK | c1f266aa75ef95671ed4ca2062c97faad130cde1 | [
"Apache-2.0"
] | 1 | 2022-03-29T16:36:07.000Z | 2022-03-29T16:36:07.000Z | Modules/IO/TransformHDF5/test/itkThinPlateTransformWriteReadTest.cxx | dave3d/ITK | c1f266aa75ef95671ed4ca2062c97faad130cde1 | [
"Apache-2.0"
] | null | null | null | Modules/IO/TransformHDF5/test/itkThinPlateTransformWriteReadTest.cxx | dave3d/ITK | c1f266aa75ef95671ed4ca2062c97faad130cde1 | [
"Apache-2.0"
] | 1 | 2017-02-07T12:55:39.000Z | 2017-02-07T12:55:39.000Z | /*=========================================================================
*
* Copyright NumFOCUS
*
* 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.or... | 36.942105 | 112 | 0.724035 | dave3d |
b46990628e509dc6e86597599cf237a0307c0fb7 | 91 | cpp | C++ | max78000_fw/src/main.cpp | chcbaram/MAX78000_FTHR | f097e5ee69e7fbb4f022a6170b1e3cfde2394cb3 | [
"MIT"
] | null | null | null | max78000_fw/src/main.cpp | chcbaram/MAX78000_FTHR | f097e5ee69e7fbb4f022a6170b1e3cfde2394cb3 | [
"MIT"
] | null | null | null | max78000_fw/src/main.cpp | chcbaram/MAX78000_FTHR | f097e5ee69e7fbb4f022a6170b1e3cfde2394cb3 | [
"MIT"
] | null | null | null | #include "main.h"
int main()
{
hwInit();
apInit();
apMain();
return 0;
}
| 5.6875 | 17 | 0.483516 | chcbaram |
b46a961e0575af6af1b45cf503e6c6b7ac3fbf7c | 2,216 | cpp | C++ | lib/Instrument/InstrumentPass.cpp | grievejia/CostInstrument-llvm | 88fc0ba4cd4f17014261f318bfb54305e02d4a52 | [
"Apache-2.0"
] | 1 | 2019-04-27T22:55:40.000Z | 2019-04-27T22:55:40.000Z | lib/Instrument/InstrumentPass.cpp | grievejia/CostInstrument-llvm | 88fc0ba4cd4f17014261f318bfb54305e02d4a52 | [
"Apache-2.0"
] | null | null | null | lib/Instrument/InstrumentPass.cpp | grievejia/CostInstrument-llvm | 88fc0ba4cd4f17014261f318bfb54305e02d4a52 | [
"Apache-2.0"
] | null | null | null | #include "InstrumentPass.h"
#include "DynamicHooks.h"
#include <llvm/Analysis/LoopInfo.h>
#include <llvm/IR/Instructions.h>
#include <llvm/IR/Module.h>
using namespace llvm;
namespace costinstr {
namespace {
void instrumentFunctionEntry(Function& func, const DynamicHooks& hooks) {
auto& entryBlock = func.getEntry... | 29.157895 | 79 | 0.661101 | grievejia |
b46b18d9c3476c14497c896229d4ca728ff1ce68 | 4,618 | cpp | C++ | libs/apps/src/RBPF_SLAM_App_unittest.cpp | swt2c/mrpt | 9b4fd246530ff94bb93f5703e61844c6f67aa0b9 | [
"BSD-3-Clause"
] | null | null | null | libs/apps/src/RBPF_SLAM_App_unittest.cpp | swt2c/mrpt | 9b4fd246530ff94bb93f5703e61844c6f67aa0b9 | [
"BSD-3-Clause"
] | null | null | null | libs/apps/src/RBPF_SLAM_App_unittest.cpp | swt2c/mrpt | 9b4fd246530ff94bb93f5703e61844c6f67aa0b9 | [
"BSD-3-Clause"
] | 1 | 2020-12-30T14:06:37.000Z | 2020-12-30T14:06:37.000Z | /* +------------------------------------------------------------------------+
| Mobile Robot Programming Toolkit (MRPT) |
| https://www.mrpt.org/ |
| |
| Cop... | 33.223022 | 80 | 0.680165 | swt2c |
b46ba084abb1fb26564873fe18057063219bb422 | 3,210 | cpp | C++ | third_party/skia/tools/skhello.cpp | wenfeifei/miniblink49 | 2ed562ff70130485148d94b0e5f4c343da0c2ba4 | [
"Apache-2.0"
] | 5,964 | 2016-09-27T03:46:29.000Z | 2022-03-31T16:25:27.000Z | third_party/skia/tools/skhello.cpp | w4454962/miniblink49 | b294b6eacb3333659bf7b94d670d96edeeba14c0 | [
"Apache-2.0"
] | 459 | 2016-09-29T00:51:38.000Z | 2022-03-07T14:37:46.000Z | third_party/skia/tools/skhello.cpp | w4454962/miniblink49 | b294b6eacb3333659bf7b94d670d96edeeba14c0 | [
"Apache-2.0"
] | 1,006 | 2016-09-27T05:17:27.000Z | 2022-03-30T02:46:51.000Z | /*
* Copyright 2011 Google Inc.
*
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
#include "SkCanvas.h"
#include "SkCommandLineFlags.h"
#include "SkData.h"
#include "SkDocument.h"
#include "SkForceLinking.h"
#include "SkGraphics.h"
#include "SkSurface.h"
#i... | 28.660714 | 81 | 0.627103 | wenfeifei |
b46d486ba1961e9b0efa39bc2b25efa8b26cf3c8 | 27,018 | cpp | C++ | thorlcr/activities/join/thjoinslave.cpp | miguelvazq/HPCC-Platform | 22ad8e5fcb59626abfd8febecbdfccb1e9fb0aa5 | [
"Apache-2.0"
] | null | null | null | thorlcr/activities/join/thjoinslave.cpp | miguelvazq/HPCC-Platform | 22ad8e5fcb59626abfd8febecbdfccb1e9fb0aa5 | [
"Apache-2.0"
] | null | null | null | thorlcr/activities/join/thjoinslave.cpp | miguelvazq/HPCC-Platform | 22ad8e5fcb59626abfd8febecbdfccb1e9fb0aa5 | [
"Apache-2.0"
] | null | null | null | /*##############################################################################
HPCC SYSTEMS software Copyright (C) 2012 HPCC Systems®.
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... | 33.984906 | 285 | 0.624547 | miguelvazq |
b46eec1a84279ed38ce5003aef4c2576531c5a25 | 303 | cpp | C++ | Competitive-Coding/Assignment-0/Darshan/tricoin.cpp | darshanv6/SummerProjects17 | 573349fb8bd118131b437cff68259a23380c9bb8 | [
"MIT"
] | null | null | null | Competitive-Coding/Assignment-0/Darshan/tricoin.cpp | darshanv6/SummerProjects17 | 573349fb8bd118131b437cff68259a23380c9bb8 | [
"MIT"
] | null | null | null | Competitive-Coding/Assignment-0/Darshan/tricoin.cpp | darshanv6/SummerProjects17 | 573349fb8bd118131b437cff68259a23380c9bb8 | [
"MIT"
] | 1 | 2019-10-14T07:09:18.000Z | 2019-10-14T07:09:18.000Z | #include<bits/stdc++.h>
using namespace std;
int main()
{
int t;
long long s;
cin>>t;
while(t--)
{
cin>>s;
int p=sqrt(1+8*s);
p--;
p/=2;
cout<<p<<"\n";
}
return 0;
}
| 15.947368 | 30 | 0.310231 | darshanv6 |
b470ea92e97620d3c9eed06a22f0340504799ea0 | 549 | hpp | C++ | src/parser.hpp | claremacrae/eml | d10eb7fcfc51abb277c1edbec8f15a7ed806ceb1 | [
"MIT"
] | 3 | 2020-11-03T19:22:11.000Z | 2021-05-05T13:16:15.000Z | src/parser.hpp | claremacrae/eml | d10eb7fcfc51abb277c1edbec8f15a7ed806ceb1 | [
"MIT"
] | 2 | 2020-04-01T12:57:24.000Z | 2021-02-19T10:17:30.000Z | src/parser.hpp | claremacrae/eml | d10eb7fcfc51abb277c1edbec8f15a7ed806ceb1 | [
"MIT"
] | 2 | 2020-10-15T18:28:18.000Z | 2020-10-25T16:44:17.000Z | #ifndef EML_PARSER_HPP
#define EML_PARSER_HPP
#include <memory>
#include <optional>
#include <string_view>
#include "error.hpp"
#include "expected.hpp"
#include "memory.hpp"
/**
* @file parser.hpp
* @brief A simple [Pratt Parser](https://en.wikipedia.org/wiki/Pratt_parser)
* for Embedded ML
*/
namespace eml {
... | 18.3 | 77 | 0.73224 | claremacrae |
b47224875444aef713e05640c3e90b14dbf30588 | 325 | hpp | C++ | Engine/Code/Engine/Renderer/CubeMap.hpp | tonyatpeking/SmuSpecialTopic | b61d44e4efacb3c504847deb4d00234601bca49c | [
"MIT"
] | null | null | null | Engine/Code/Engine/Renderer/CubeMap.hpp | tonyatpeking/SmuSpecialTopic | b61d44e4efacb3c504847deb4d00234601bca49c | [
"MIT"
] | null | null | null | Engine/Code/Engine/Renderer/CubeMap.hpp | tonyatpeking/SmuSpecialTopic | b61d44e4efacb3c504847deb4d00234601bca49c | [
"MIT"
] | null | null | null | #pragma once
#include "Engine/Core/Types.hpp"
#include "Texture.hpp"
#include "Engine/Renderer/RendererEnums.hpp"
class CubeMap : public Texture
{
public:
virtual ~CubeMap();
CubeMap( const String& imageFilePath );
CubeMap( Image* image );
virtual void MakeFromImage( Image* image ) override;
private... | 18.055556 | 56 | 0.710769 | tonyatpeking |
b4749f6cc2b75193a33105d5d5a7e3dc1656f470 | 2,666 | cc | C++ | cc/subtle/test_util.cc | rohansingh/tink | c2338bef4663870d3855fb0236ab0092d976434d | [
"Apache-2.0"
] | 1 | 2022-03-15T03:21:44.000Z | 2022-03-15T03:21:44.000Z | cc/subtle/test_util.cc | frankfanslc/tink | fee9b771017baeaa65f13f82c8a10b3a1119d44d | [
"Apache-2.0"
] | null | null | null | cc/subtle/test_util.cc | frankfanslc/tink | fee9b771017baeaa65f13f82c8a10b3a1119d44d | [
"Apache-2.0"
] | null | null | null | // Copyright 2019 Google Inc.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in ... | 32.512195 | 79 | 0.676669 | rohansingh |
b4759c2eff117a654f09c1b7cb029cf17ff7b37f | 390 | cpp | C++ | 01-Recover/LT0704.cpp | odeinjul/Solution_New | 12593def5ae867e8193847184792b7fbe00aeff0 | [
"MIT"
] | null | null | null | 01-Recover/LT0704.cpp | odeinjul/Solution_New | 12593def5ae867e8193847184792b7fbe00aeff0 | [
"MIT"
] | null | null | null | 01-Recover/LT0704.cpp | odeinjul/Solution_New | 12593def5ae867e8193847184792b7fbe00aeff0 | [
"MIT"
] | null | null | null | class Solution {
public:
int search(vector<int>& nums, int target) {
//int help(int l, int r,int p){
int p = 0, l = 0, r = nums.size()-1;
while(l<=r){
p = (l + r) >> 1;
if(nums[p] == target) return p;
if(target < nums[p]) r = p - 1;
... | 27.857143 | 48 | 0.376923 | odeinjul |
b475c21a7411a8b663e99a9df5a80e8ea042d367 | 5,193 | cc | C++ | src/search/search_space.cc | nitinkaveriappa/downward | 5c9a1b5111d667bb96f94da61ca2a45b1b70bb83 | [
"MIT"
] | 4 | 2019-04-23T10:41:35.000Z | 2019-10-27T05:14:42.000Z | src/search/search_space.cc | nitinkaveriappa/downward | 5c9a1b5111d667bb96f94da61ca2a45b1b70bb83 | [
"MIT"
] | null | null | null | src/search/search_space.cc | nitinkaveriappa/downward | 5c9a1b5111d667bb96f94da61ca2a45b1b70bb83 | [
"MIT"
] | 4 | 2018-01-16T00:00:22.000Z | 2019-11-01T23:35:01.000Z | #include "search_space.h"
#include "global_operator.h"
#include "global_state.h"
#include "globals.h"
#include <cassert>
#include "search_node_info.h"
using namespace std;
SearchNode::SearchNode(StateID state_id_, SearchNodeInfo &info_,
OperatorCost cost_type_)
: state_id(state_id_), info... | 32.45625 | 92 | 0.667052 | nitinkaveriappa |
b477e234362130b408ea3783f9561e5a1981ec41 | 610 | cc | C++ | geom/test_pose.cc | tintor/sima | 7bc21cf1383ee81b7082158ce690befe025f0a4e | [
"Apache-2.0"
] | 1 | 2019-07-06T15:01:00.000Z | 2019-07-06T15:01:00.000Z | geom/test_pose.cc | tintor/sima | 7bc21cf1383ee81b7082158ce690befe025f0a4e | [
"Apache-2.0"
] | null | null | null | geom/test_pose.cc | tintor/sima | 7bc21cf1383ee81b7082158ce690befe025f0a4e | [
"Apache-2.0"
] | null | null | null | #include <core/exception.h>
#include <core/range.h>
#include <geom/pose.h>
#include <catch.hpp>
TEST_CASE("pose basic", "[pose]") {
pose2 a(d2(3, 1), PI / 5);
pose2 b = inv(a);
pose2 ab = mul(a, b);
REQUIRE_NEAR(ab.position, d2(0, 0), 1e-15);
REQUIRE_NEAR(ab.orientation, 0, 1e-15);
}
TEST_CASE("s... | 26.521739 | 65 | 0.565574 | tintor |
b478a70a6fee5eface9d584633480fcf0ef0139c | 707 | cc | C++ | src/service2/thread-class.cc | entn-at/ASR-decoder | a679ffb20081581897e1783734ac609adfbc332d | [
"MIT"
] | 15 | 2017-12-14T08:23:50.000Z | 2022-03-28T06:37:30.000Z | src/service2/thread-class.cc | entn-at/ASR-decoder | a679ffb20081581897e1783734ac609adfbc332d | [
"MIT"
] | 3 | 2019-07-08T05:38:14.000Z | 2020-09-25T05:29:14.000Z | src/service2/thread-class.cc | entn-at/ASR-decoder | a679ffb20081581897e1783734ac609adfbc332d | [
"MIT"
] | 12 | 2018-03-28T02:15:47.000Z | 2022-03-28T07:03:35.000Z | #include "src/service2/thread-class.h"
#include "src/util/log-message.h"
#include "src/util/namespace-start.h"
void* ThreadBase::ThreadFunc(void *para)
{
ThreadBase *th = static_cast<ThreadBase *>(para);
th->Run();
return NULL;
}
ThreadBase::int32 ThreadBase::Join(void **ret)
{
return pthread_join(_thread_id, re... | 18.128205 | 81 | 0.7157 | entn-at |
b479cff6f95fbced7b68c68cef8c8aca776d843b | 1,870 | hpp | C++ | native/external-libraries/boost/boost/container/detail/allocation_type.hpp | l3dlp-sandbox/airkinect-2-core | 49aecbd3c3fd9584434089dd2d9eef93567036e7 | [
"Apache-2.0"
] | 47 | 2015-01-01T14:37:36.000Z | 2021-04-25T07:38:07.000Z | native/external-libraries/boost/boost/container/detail/allocation_type.hpp | l3dlp-sandbox/airkinect-2-core | 49aecbd3c3fd9584434089dd2d9eef93567036e7 | [
"Apache-2.0"
] | 6 | 2016-01-11T05:20:05.000Z | 2021-02-06T11:37:24.000Z | native/external-libraries/boost/boost/container/detail/allocation_type.hpp | l3dlp-sandbox/airkinect-2-core | 49aecbd3c3fd9584434089dd2d9eef93567036e7 | [
"Apache-2.0"
] | 17 | 2015-01-05T15:10:43.000Z | 2021-06-22T04:59:16.000Z | ///////////////////////////////////////////////////////////////////////////////
//
// (C) Copyright Ion Gaztanaga 2005-2011. Distributed under the Boost
// Software License, Version 1.0. (See accompanying file
// LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
//
// See http://www.boost.org/libs/contai... | 34 | 89 | 0.701604 | l3dlp-sandbox |
b47a6639744fa202eb6d99b66be0d4ec6d411571 | 2,560 | cc | C++ | zircon/system/dev/board/nelson/nelson-light.cc | sunshinewithmoonlight/fuchsia-2003 | 02b23026dc7fecbad063210d5d45fa1b17feeb8b | [
"BSD-3-Clause"
] | null | null | null | zircon/system/dev/board/nelson/nelson-light.cc | sunshinewithmoonlight/fuchsia-2003 | 02b23026dc7fecbad063210d5d45fa1b17feeb8b | [
"BSD-3-Clause"
] | null | null | null | zircon/system/dev/board/nelson/nelson-light.cc | sunshinewithmoonlight/fuchsia-2003 | 02b23026dc7fecbad063210d5d45fa1b17feeb8b | [
"BSD-3-Clause"
] | null | null | null | // Copyright 2018 The Fuchsia Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include <ddk/binding.h>
#include <ddk/debug.h>
#include <ddk/device.h>
#include <ddk/metadata.h>
#include <ddk/platform-defs.h>
#include <ddk/protocol/pla... | 28.764045 | 82 | 0.707422 | sunshinewithmoonlight |
b47b31b51ec9e06d2d258fbc95d6b7ee687103c0 | 3,292 | cpp | C++ | dnn/src/cuda/matrix_mul/opr_impl.cpp | kxz18/MegEngine | 88c1eedbd716805244b35bdda57c3cea5efe734d | [
"Apache-2.0"
] | null | null | null | dnn/src/cuda/matrix_mul/opr_impl.cpp | kxz18/MegEngine | 88c1eedbd716805244b35bdda57c3cea5efe734d | [
"Apache-2.0"
] | null | null | null | dnn/src/cuda/matrix_mul/opr_impl.cpp | kxz18/MegEngine | 88c1eedbd716805244b35bdda57c3cea5efe734d | [
"Apache-2.0"
] | null | null | null | /**
* \file dnn/src/cuda/matrix_mul/opr_impl.cpp
* MegEngine is Licensed under the Apache License, Version 2.0 (the "License")
*
* Copyright (c) 2014-2021 Megvii Inc. All rights reserved.
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
... | 38.27907 | 89 | 0.663426 | kxz18 |
b47ec73dfcfed4b4f66bcdc0f0b6e34d7b59d8c9 | 5,692 | cpp | C++ | RayEngine/Source/DX11/DX11RenderTargetView.cpp | Mumsfilibaba/RayEngine | 68496966c1d7b91bc8fbdd305226ece9b9f596b2 | [
"Apache-2.0"
] | null | null | null | RayEngine/Source/DX11/DX11RenderTargetView.cpp | Mumsfilibaba/RayEngine | 68496966c1d7b91bc8fbdd305226ece9b9f596b2 | [
"Apache-2.0"
] | null | null | null | RayEngine/Source/DX11/DX11RenderTargetView.cpp | Mumsfilibaba/RayEngine | 68496966c1d7b91bc8fbdd305226ece9b9f596b2 | [
"Apache-2.0"
] | null | null | null | /*////////////////////////////////////////////////////////////
Copyright 2018 Alexander Dahlin
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
THIS SOF... | 34.49697 | 124 | 0.635453 | Mumsfilibaba |
b47f637825b873d09d6e49e2efdc7ec8a045feb8 | 895 | cpp | C++ | 149.直线上最多的点数/maxPoints.cpp | YichengZhong/Top-Interview-Questions | 124828d321f482a0eaa30012b3706267487bfd24 | [
"MIT"
] | 1 | 2019-10-21T14:40:39.000Z | 2019-10-21T14:40:39.000Z | 149.直线上最多的点数/maxPoints.cpp | YichengZhong/Top-Interview-Questions | 124828d321f482a0eaa30012b3706267487bfd24 | [
"MIT"
] | null | null | null | 149.直线上最多的点数/maxPoints.cpp | YichengZhong/Top-Interview-Questions | 124828d321f482a0eaa30012b3706267487bfd24 | [
"MIT"
] | 1 | 2020-11-04T07:33:34.000Z | 2020-11-04T07:33:34.000Z | class Solution {
public:
int maxPoints(vector<vector<int>>& points) {
int len = points.size();
// 点的数量不够
if(len < 3) {
return len;
}
int maxNum = 2;
// 遍历每两个点
for(int i = 0; i < len; i ++) {
unordered_map<double, int> count;
... | 29.833333 | 63 | 0.363128 | YichengZhong |
b47fb1a6bbe5ba7c273e2cd6eb64d31b13731e28 | 867 | hpp | C++ | ltl2fsm/base/exception/Invalid_Ltl_Syntax.hpp | arafato/ltl2fsm | 58d96c40fe0890c2bcc90593469668e6369c0f1b | [
"MIT"
] | 2 | 2016-11-23T14:31:55.000Z | 2018-05-10T01:11:54.000Z | ltl2fsm/base/exception/Invalid_Ltl_Syntax.hpp | arafato/ltl2fsm | 58d96c40fe0890c2bcc90593469668e6369c0f1b | [
"MIT"
] | null | null | null | ltl2fsm/base/exception/Invalid_Ltl_Syntax.hpp | arafato/ltl2fsm | 58d96c40fe0890c2bcc90593469668e6369c0f1b | [
"MIT"
] | null | null | null | /**
* @file ltl2fsm/base/exception/Invalid_Ltl_Syntax.hpp
*
* $Id$
*
* @author Oliver Arafat
*
* @brief @ref
*
* @note DOCUMENTED
*
* @test
*
* @todo
*/
#ifndef LTL2FSM__BASE__EXCEPTION__INVALID_LTL_SYNTAX__HPP
#define LTL2FSM__BASE__EXCEPTION__INVALID_LTL_SYNTAX__HPP
#include <ltl2fsm/base/exception/... | 16.358491 | 84 | 0.619377 | arafato |
b47fcfa6a4744a0e8242343ebf7e0e2aafd86adc | 14,898 | cxx | C++ | Filters/General/vtkEqualizerFilter.cxx | lfmc/VTK | 9999969f67745e9c1e2e0d606b637f1d7af21649 | [
"BSD-3-Clause"
] | null | null | null | Filters/General/vtkEqualizerFilter.cxx | lfmc/VTK | 9999969f67745e9c1e2e0d606b637f1d7af21649 | [
"BSD-3-Clause"
] | null | null | null | Filters/General/vtkEqualizerFilter.cxx | lfmc/VTK | 9999969f67745e9c1e2e0d606b637f1d7af21649 | [
"BSD-3-Clause"
] | 1 | 2021-05-03T23:51:31.000Z | 2021-05-03T23:51:31.000Z | /*=========================================================================
Program: Visualization Toolkit
Module: vtkEqualizerFilter.cxx
Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
All rights reserved.
See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
This softwa... | 32.814978 | 99 | 0.58632 | lfmc |
b480c8fb120b7b6a0382a57566897c98c75d0ecc | 9,307 | cpp | C++ | libs/full/resiliency_distributed/tests/performance/replay/1d_stencil_distributed.cpp | clayne/hpx | 022c4f6996433f048b79b15b50be2505481acd21 | [
"BSL-1.0"
] | 1 | 2021-05-31T12:59:52.000Z | 2021-05-31T12:59:52.000Z | libs/full/resiliency_distributed/tests/performance/replay/1d_stencil_distributed.cpp | Deepak-suresh14/hpx | 5ecf3cad298678021c77c825a9f54d7c119d9dd1 | [
"BSL-1.0"
] | 1 | 2021-08-09T14:08:44.000Z | 2021-08-10T13:02:44.000Z | libs/full/resiliency_distributed/tests/performance/replay/1d_stencil_distributed.cpp | Deepak-suresh14/hpx | 5ecf3cad298678021c77c825a9f54d7c119d9dd1 | [
"BSL-1.0"
] | null | null | null | // Copyright (c) 2020 Nikunj Gupta
//
// SPDX-License-Identifier: BSL-1.0
// Distributed under the Boost Software License, Version 1.0. (See accompanying
// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
// This is the a separate examples demonstrating the development
// of a fully distributed s... | 29.640127 | 80 | 0.571935 | clayne |
b48107a4215c8871bc333d313b3b53da709e85bf | 582 | cpp | C++ | src/nietacka/ReadBuffer.cpp | PiotrJander/sik-achtung-die-kurve | a44af3b20e5baccd18d388a0a29f412a2c5e5902 | [
"MIT"
] | null | null | null | src/nietacka/ReadBuffer.cpp | PiotrJander/sik-achtung-die-kurve | a44af3b20e5baccd18d388a0a29f412a2c5e5902 | [
"MIT"
] | null | null | null | src/nietacka/ReadBuffer.cpp | PiotrJander/sik-achtung-die-kurve | a44af3b20e5baccd18d388a0a29f412a2c5e5902 | [
"MIT"
] | null | null | null | //
// Created by Piotr Jander on 29/08/2017.
//
#include "ReadBuffer.h"
ReadBuffer::ReadBuffer(int length) : vector(length)
{}
ReadBuffer::ReadBuffer(const DynamicBuffer &dynamic) : vector(dynamic.getBuffer())
{}
std::string ReadBuffer::readString(int length)
{
length = std::min(length, static_cast<const int &>... | 25.304348 | 87 | 0.713058 | PiotrJander |
b481e6cdc7f6bb050bfff4acd0e29f0b70de2c47 | 11,851 | cpp | C++ | Userland/Services/SystemServer/Service.cpp | johanventer/serenity | cb8e4be3b5d9ce2225f4347efdaaf08423405b65 | [
"BSD-2-Clause"
] | null | null | null | Userland/Services/SystemServer/Service.cpp | johanventer/serenity | cb8e4be3b5d9ce2225f4347efdaaf08423405b65 | [
"BSD-2-Clause"
] | null | null | null | Userland/Services/SystemServer/Service.cpp | johanventer/serenity | cb8e4be3b5d9ce2225f4347efdaaf08423405b65 | [
"BSD-2-Clause"
] | 1 | 2021-06-10T00:18:29.000Z | 2021-06-10T00:18:29.000Z | /*
* Copyright (c) 2019-2020, Sergey Bugaev <bugaevc@serenityos.org>
* 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 no... | 31.435013 | 148 | 0.620876 | johanventer |
b4836a2b58e2729bf494b795d26e7413a483862e | 6,223 | cc | C++ | det2f-agent/CounterTest.cc | edauterman/u2f-ref-code | 50e7ad4ade3fdf82e52c1899c0d7f9f56b4dae40 | [
"BSD-3-Clause"
] | null | null | null | det2f-agent/CounterTest.cc | edauterman/u2f-ref-code | 50e7ad4ade3fdf82e52c1899c0d7f9f56b4dae40 | [
"BSD-3-Clause"
] | null | null | null | det2f-agent/CounterTest.cc | edauterman/u2f-ref-code | 50e7ad4ade3fdf82e52c1899c0d7f9f56b4dae40 | [
"BSD-3-Clause"
] | null | null | null | // Copyright 2018 Google Inc. All rights reserved.
//
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file or at
// https://developers.google.com/open-source/licenses/bsd
#include <stdlib.h>
#include <stdio.h>
#include <stdint.h>
#include "counter.h"
#include "common.... | 27.657778 | 83 | 0.627832 | edauterman |
b48388818357025c2823fe66e9ac86d50767d076 | 1,700 | cpp | C++ | libhwcutilsmodule/ExynosMPPModule.cpp | Exynos7580/android_hardware_samsung_slsi_exynos7580 | 58b51c5b5be6380065b511e686f6ad403887cb61 | [
"Apache-2.0"
] | 1 | 2019-12-17T15:56:57.000Z | 2019-12-17T15:56:57.000Z | libhwcutilsmodule/ExynosMPPModule.cpp | Exynos7580/android_hardware_samsung_slsi_exynos7580 | 58b51c5b5be6380065b511e686f6ad403887cb61 | [
"Apache-2.0"
] | null | null | null | libhwcutilsmodule/ExynosMPPModule.cpp | Exynos7580/android_hardware_samsung_slsi_exynos7580 | 58b51c5b5be6380065b511e686f6ad403887cb61 | [
"Apache-2.0"
] | 2 | 2019-12-26T20:17:17.000Z | 2020-02-02T00:40:43.000Z | #include "ExynosMPPModule.h"
#include "ExynosHWCUtils.h"
ExynosMPPModule::ExynosMPPModule()
: ExynosMPP()
{
}
ExynosMPPModule::ExynosMPPModule(ExynosDisplay *display, int gscIndex)
: ExynosMPP(display, gscIndex)
{
}
ExynosMPPModule::ExynosMPPModule(ExynosDisplay *display, unsigned int mppType, unsigned int m... | 29.310345 | 101 | 0.695294 | Exynos7580 |
b48517b2d899927b3b9907ce6cfd1b59db3c3326 | 5,128 | cpp | C++ | Modules/LegacyIO/vtkPointSetXMLParser.cpp | liu3xing3long/MITK-2016.11 | 385c506f9792414f40337e106e13d5fd61aa3ccc | [
"Apache-2.0",
"BSD-3-Clause"
] | null | null | null | Modules/LegacyIO/vtkPointSetXMLParser.cpp | liu3xing3long/MITK-2016.11 | 385c506f9792414f40337e106e13d5fd61aa3ccc | [
"Apache-2.0",
"BSD-3-Clause"
] | null | null | null | Modules/LegacyIO/vtkPointSetXMLParser.cpp | liu3xing3long/MITK-2016.11 | 385c506f9792414f40337e106e13d5fd61aa3ccc | [
"Apache-2.0",
"BSD-3-Clause"
] | null | null | null | /*===================================================================
The Medical Imaging Interaction Toolkit (MITK)
Copyright (c) German Cancer Research Center,
Division of Medical and Biological Informatics.
All rights reserved.
This software is distributed WITHOUT ANY WARRANTY; without
even the implied w... | 27.569892 | 118 | 0.668682 | liu3xing3long |
b48518c39c6bd392692e82d604dd85c816e73673 | 10,226 | cpp | C++ | src/net/tcp/tcp.cpp | pidEins/IncludeOS | b92339164a2ba61f03ca9a940b1e9a0907c08bea | [
"Apache-2.0"
] | 2 | 2017-04-28T17:29:25.000Z | 2017-05-03T07:36:22.000Z | src/net/tcp/tcp.cpp | lefticus/IncludeOS | b92339164a2ba61f03ca9a940b1e9a0907c08bea | [
"Apache-2.0"
] | null | null | null | src/net/tcp/tcp.cpp | lefticus/IncludeOS | b92339164a2ba61f03ca9a940b1e9a0907c08bea | [
"Apache-2.0"
] | 2 | 2017-05-01T18:16:28.000Z | 2019-11-15T19:48:01.000Z | // This file is a part of the IncludeOS unikernel - www.includeos.org
//
// Copyright 2015-2016 Oslo and Akershus University College of Applied Sciences
// and Alfred Bratterud
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// Yo... | 31.659443 | 119 | 0.680618 | pidEins |
b4857fde50dbf6ee40bc44a6aebfd1118b078ea5 | 2,258 | cc | C++ | jni-build/jni/include/tensorflow/core/ops/string_ops_test.cc | rcelebi/android-elfali | 4ea14a58a18356ef9e16aba2e7dae84c02afba12 | [
"Apache-2.0"
] | 680 | 2016-12-03T14:38:28.000Z | 2022-02-16T04:06:45.000Z | jni-build/jni/include/tensorflow/core/ops/string_ops_test.cc | rcelebi/android-elfali | 4ea14a58a18356ef9e16aba2e7dae84c02afba12 | [
"Apache-2.0"
] | 38 | 2016-11-17T08:43:51.000Z | 2019-11-12T12:27:04.000Z | jni-build/jni/include/tensorflow/core/ops/string_ops_test.cc | rcelebi/android-elfali | 4ea14a58a18356ef9e16aba2e7dae84c02afba12 | [
"Apache-2.0"
] | 250 | 2016-12-05T10:37:17.000Z | 2022-03-18T21:26:55.000Z | /* Copyright 2016 The TensorFlow Authors. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License");
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is d... | 35.28125 | 80 | 0.643933 | rcelebi |
b486ea92ff2f4067a50a501654a2aa68ef489993 | 414 | hpp | C++ | LPI/aula18/include/ClientePF.hpp | dayvisonmsilva/LPI | 0e3186e03b0ed438795f513dd968911c6845f5e4 | [
"Apache-2.0"
] | null | null | null | LPI/aula18/include/ClientePF.hpp | dayvisonmsilva/LPI | 0e3186e03b0ed438795f513dd968911c6845f5e4 | [
"Apache-2.0"
] | null | null | null | LPI/aula18/include/ClientePF.hpp | dayvisonmsilva/LPI | 0e3186e03b0ed438795f513dd968911c6845f5e4 | [
"Apache-2.0"
] | null | null | null | #ifndef CLIENTEPF_HPP
#define CLIENTEPF_HPP
#include <string>
#include "Cliente.hpp"
using namespace std;
class ClientePF : public Cliente {
private:
string cpf;
public:
static int quantidadeClientes;
ClientePF(string nome, string cpf);
ClientePF();
~ClientePF();
... | 16.56 | 43 | 0.618357 | dayvisonmsilva |
b4871194cf5a421996b4efae023b758c49ae6cae | 10,162 | cpp | C++ | ENGINE/src/Cuboid/Scene/SceneSerializer.cpp | tawandachiteshe/d3ngine | 8cb5b55f50aa65c3574e90c15cb0fb3c93012742 | [
"MIT"
] | 2 | 2020-07-11T22:25:10.000Z | 2020-10-05T10:44:19.000Z | ENGINE/src/Cuboid/Scene/SceneSerializer.cpp | tawandachiteshe/d3ngine | 8cb5b55f50aa65c3574e90c15cb0fb3c93012742 | [
"MIT"
] | null | null | null | ENGINE/src/Cuboid/Scene/SceneSerializer.cpp | tawandachiteshe/d3ngine | 8cb5b55f50aa65c3574e90c15cb0fb3c93012742 | [
"MIT"
] | null | null | null | #include "SceneSerializer.h"
#include <yaml-cpp/yaml.h>
#include "Entity.h"
#include "Components.h"
namespace YAML
{
template<>
struct convert<glm::vec3>
{
static Node encode(const glm::vec3& rhs)
{
Node node;
node.push_back(rhs.x);
node.push_back(rhs.y)... | 27.765027 | 131 | 0.528735 | tawandachiteshe |
b488e3d8c8fdb5e7c32ea5afd93f39db30ce72a2 | 190 | hpp | C++ | include/mruby_integration/models/image.hpp | HellRok/Taylor | aa9d901b4db77395a0bde896500016353adcd73b | [
"MIT"
] | 40 | 2021-05-25T04:21:49.000Z | 2022-02-19T05:05:45.000Z | include/mruby_integration/models/image.hpp | HellRok/Taylor | aa9d901b4db77395a0bde896500016353adcd73b | [
"MIT"
] | 4 | 2021-09-17T06:52:35.000Z | 2021-12-29T23:07:18.000Z | include/mruby_integration/models/image.hpp | HellRok/Taylor | aa9d901b4db77395a0bde896500016353adcd73b | [
"MIT"
] | 1 | 2021-12-23T00:59:27.000Z | 2021-12-23T00:59:27.000Z | #pragma once
#include "mruby.h"
#include "raylib.h"
extern RClass *Image_class;
void setup_Image(mrb_state*, mrb_value, Image*, int, int, int, int);
void append_models_Image(mrb_state*);
| 19 | 68 | 0.747368 | HellRok |
b488f3207fbb8fc9c6e68a6d6f44c074768f4d81 | 2,203 | hpp | C++ | src/msgpack/preprocessor/list/adt.hpp | Kronuz/Xapiand | a71570859dcfc9f48090d845053f359b07f4f78c | [
"MIT"
] | 370 | 2016-03-14T12:19:08.000Z | 2022-03-25T02:07:29.000Z | src/msgpack/preprocessor/list/adt.hpp | puer99miss/Xapiand | 480f312709d40e2b1deb244ff0761b79846ed608 | [
"MIT"
] | 34 | 2015-11-30T19:06:40.000Z | 2022-02-26T03:46:58.000Z | src/msgpack/preprocessor/list/adt.hpp | puer99miss/Xapiand | 480f312709d40e2b1deb244ff0761b79846ed608 | [
"MIT"
] | 31 | 2015-02-13T22:27:34.000Z | 2022-03-25T02:07:34.000Z | # /* Copyright (C) 2001
# * Housemarque Oy
# * http://www.housemarque.com
# *
# * Distributed under the Boost Software License, Version 1.0. (See
# * accompanying file LICENSE_1_0.txt or copy at
# * http://www.boost.org/LICENSE_1_0.txt)
# *
# * See http://www.boost.org for most recent version.
# */
#
# /* Revi... | 29.77027 | 88 | 0.759419 | Kronuz |
b4891e782ad01b2e6a0d97221f887acf1d5a258c | 19,949 | cc | C++ | apps/launcher.cc | Yannic/chromium | ab32e8aacb08c9fce0dc4bf09eec456ba46e3710 | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 76 | 2020-09-02T03:05:41.000Z | 2022-03-30T04:40:55.000Z | apps/launcher.cc | blueboxd/chromium-legacy | 07223bc94bd97499909c9ed3c3f5769d718fe2e0 | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 45 | 2020-09-02T03:21:37.000Z | 2022-03-31T22:19:45.000Z | apps/launcher.cc | Yannic/chromium | ab32e8aacb08c9fce0dc4bf09eec456ba46e3710 | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 8 | 2020-07-22T18:49:18.000Z | 2022-02-08T10:27:16.000Z | // Copyright 2013 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 "apps/launcher.h"
#include <memory>
#include <set>
#include <utility>
#include "base/bind.h"
#include "base/command_line.h"
#include "base/file... | 37.925856 | 80 | 0.700336 | Yannic |
b48b0e184ebd33690270e18ba2fb088024e43e0f | 9,654 | cpp | C++ | src/armadillo/armadillo2_controllers/joint_trajectory_controller/test/joint_trajectory_controller_wrapping_test.cpp | aosbgu/ROSPlan-ExperimentPDDL | 09de0ba980362606dd1269c6689cb59d6f8776c6 | [
"MIT"
] | 37 | 2017-12-13T16:14:32.000Z | 2022-02-19T03:12:52.000Z | src/armadillo/armadillo2_controllers/joint_trajectory_controller/test/joint_trajectory_controller_wrapping_test.cpp | aosbgu/ROSPlan-ExperimentPDDL | 09de0ba980362606dd1269c6689cb59d6f8776c6 | [
"MIT"
] | 71 | 2018-01-17T20:17:03.000Z | 2022-03-23T19:48:45.000Z | src/armadillo/armadillo2_controllers/joint_trajectory_controller/test/joint_trajectory_controller_wrapping_test.cpp | aosbgu/ROSPlan-ExperimentPDDL | 09de0ba980362606dd1269c6689cb59d6f8776c6 | [
"MIT"
] | 32 | 2018-01-08T03:21:18.000Z | 2022-02-19T03:12:47.000Z | ///////////////////////////////////////////////////////////////////////////////
// Copyright (C) 2013, PAL Robotics S.L.
//
// 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 reta... | 34.478571 | 118 | 0.677854 | aosbgu |
b48c958b1cb3f5312f0b147fe2c30ab0a0d71602 | 10,702 | cpp | C++ | TinyEngine/v2/Engine2D/Systems/RenderSystem.cpp | saldavonschwartz/TinyEngine | dbc1dfdf244f1380a90a8843af1508b50b30f0f6 | [
"MIT"
] | 1 | 2020-12-07T13:53:31.000Z | 2020-12-07T13:53:31.000Z | TinyEngine/v2/Engine2D/Systems/RenderSystem.cpp | saldavonschwartz/TinyEngine | dbc1dfdf244f1380a90a8843af1508b50b30f0f6 | [
"MIT"
] | null | null | null | TinyEngine/v2/Engine2D/Systems/RenderSystem.cpp | saldavonschwartz/TinyEngine | dbc1dfdf244f1380a90a8843af1508b50b30f0f6 | [
"MIT"
] | null | null | null | //
// RenderSystem.cpp
// TinyEngine
//
// Created by Federico Saldarini on 11/4/19.
// Copyright © 2019 0xfede. All rights reserved.
//
#include "RenderSystem.hpp"
#include "../World.hpp"
#include "../../Core/Utils.hpp"
#include <GL/glew.h>
#include <GLFW/glfw3.h>
#include <stdio.h>
#include <regex>
#include <fs... | 26.424691 | 111 | 0.643338 | saldavonschwartz |
b48e0d82157e825eca2231f877300493cc8a02e9 | 29,906 | cpp | C++ | src/cues/TStageMovieCue.cpp | mvfranz/UltraDV | fbe0e8a3ee079d5dcd7e6e5bf99687aa79d351c5 | [
"Unlicense"
] | null | null | null | src/cues/TStageMovieCue.cpp | mvfranz/UltraDV | fbe0e8a3ee079d5dcd7e6e5bf99687aa79d351c5 | [
"Unlicense"
] | null | null | null | src/cues/TStageMovieCue.cpp | mvfranz/UltraDV | fbe0e8a3ee079d5dcd7e6e5bf99687aa79d351c5 | [
"Unlicense"
] | 1 | 2021-08-19T20:20:37.000Z | 2021-08-19T20:20:37.000Z | //---------------------------------------------------------------------
//
// File: TStageMovieCue.cpp
//
// Author: Gene Z. Ragan
//
// Date: 06.12.98
//
// Desc: Visual representation of a movie cue on the stage
//
// Copyright ©1998 mediapede Software
//
//------------------------------------------------------------... | 25.194608 | 138 | 0.575503 | mvfranz |
b48e610aa99dbebeb390ed60b29c4862514e894a | 6,537 | hpp | C++ | include/NumCpp/Core/Slice.hpp | CiaranWelsh/NumCpp | 7bc37f2ea197624bf568446f991f4fd96de66864 | [
"MIT"
] | 2 | 2021-09-29T12:03:59.000Z | 2022-01-29T23:46:02.000Z | include/NumCpp/Core/Slice.hpp | inteliter/NumCpp | 370b6ea8852824c9dc270f86ae67e00d068bb7c6 | [
"MIT"
] | 9 | 2021-10-01T21:29:21.000Z | 2022-03-08T02:48:09.000Z | include/NumCpp/Core/Slice.hpp | Harvard-REACT/WSR-Toolbox-cpp | dec091982f7020c04ddd5deec7237e9ac0cf9ad8 | [
"BSD-2-Clause"
] | 1 | 2022-01-17T05:10:59.000Z | 2022-01-17T05:10:59.000Z | /// @file
/// @author David Pilger <dpilger26@gmail.com>
/// [GitHub Repository](https://github.com/dpilger26/NumCpp)
///
/// License
/// Copyright 2020 David Pilger
///
/// Permission is hereby granted, free of charge, to any person obtaining a copy of this
/// software and associated documentation files(the "... | 34.225131 | 125 | 0.429555 | CiaranWelsh |
b491481148198377710caa035ddc62e52bc9e815 | 332 | hpp | C++ | include/cgsw/cgsw.hpp | chikeen/CGSW | 10d159a9daf8ad1af5006602454b7e82c5e561c3 | [
"Apache-2.0"
] | 1 | 2021-04-12T07:12:23.000Z | 2021-04-12T07:12:23.000Z | include/cgsw/cgsw.hpp | chikeen/CGSW | 10d159a9daf8ad1af5006602454b7e82c5e561c3 | [
"Apache-2.0"
] | null | null | null | include/cgsw/cgsw.hpp | chikeen/CGSW | 10d159a9daf8ad1af5006602454b7e82c5e561c3 | [
"Apache-2.0"
] | null | null | null | //
// Created by Chi Keen Tan on 16/12/2020.
//
#pragma once
#include "encryptionparams.hpp"
#include "plaintext.hpp"
#include "publickey.hpp"
#include "secretkey.hpp"
#include "cgsw/utils/utils.hpp"
#include "ciphertext.hpp"
#include "decrypter.hpp"
#include "encrypter.hpp"
#include "evaluator.hpp"
#include "keyge... | 18.444444 | 41 | 0.737952 | chikeen |
b491a9db19b7faed01c1dd7cfc3728d65615b0ac | 5,757 | cpp | C++ | lib/bench/BM_lowpass.cpp | luk036/ellcpp | 3415e7ffb70b63edb9ce4d6c2b9fee92898538bc | [
"MIT"
] | 2 | 2020-07-26T04:58:11.000Z | 2021-01-26T06:29:59.000Z | lib/bench/BM_lowpass.cpp | luk036/ellcpp | 3415e7ffb70b63edb9ce4d6c2b9fee92898538bc | [
"MIT"
] | null | null | null | lib/bench/BM_lowpass.cpp | luk036/ellcpp | 3415e7ffb70b63edb9ce4d6c2b9fee92898538bc | [
"MIT"
] | 2 | 2018-06-03T08:20:20.000Z | 2019-06-30T10:41:49.000Z | // -*- coding: utf-8 -*-
#include "benchmark/benchmark.h"
#include <iostream>
#include <tuple>
#include <cmath>
#include <complex>
#include <ellcpp/cutting_plane.hpp>
#include <ellcpp/ell.hpp>
#include <ellcpp/oracles/lowpass_oracle.hpp>
#include <ellcpp/utility.hpp>
#include <limits>
#include <xtensor-bla... | 37.875 | 81 | 0.573389 | luk036 |
b492acdac156ac193a69110ab96edcecbea2f809 | 518 | cpp | C++ | Practice3/Task4.cpp | zuza-rzemieniewska/Cpp_Practices | 96cade6c757185a533ecbb5ffd26dff929df8d9a | [
"MIT"
] | null | null | null | Practice3/Task4.cpp | zuza-rzemieniewska/Cpp_Practices | 96cade6c757185a533ecbb5ffd26dff929df8d9a | [
"MIT"
] | null | null | null | Practice3/Task4.cpp | zuza-rzemieniewska/Cpp_Practices | 96cade6c757185a533ecbb5ffd26dff929df8d9a | [
"MIT"
] | null | null | null | #include <iostream>
using namespace std;
int main(){
float a, b, c;
do{
cout << "Please enter three segments a, b and c greater than 0:" << endl;
cin >> a >> b >> c;
}while(a<=0 || b<=0 || c<=0);
if(a+b>c && a+c>b && c+b>a)
cout << "From length segments: " << a << ", " << ... | 22.521739 | 113 | 0.459459 | zuza-rzemieniewska |
b493bf446fa06487959f5f4b90cec5ac7e9e3ecb | 24,614 | cpp | C++ | gui/duilib/duilib/Control/ScrollBar.cpp | pqgarden/PQBase | fe64dc937c2d86cb6363b2c0a394f0a9d794b116 | [
"MIT"
] | 1,461 | 2019-04-10T09:28:18.000Z | 2022-03-30T01:56:09.000Z | gui/duilib/duilib/Control/ScrollBar.cpp | pqgarden/PQBase | fe64dc937c2d86cb6363b2c0a394f0a9d794b116 | [
"MIT"
] | 331 | 2019-04-11T06:15:44.000Z | 2022-03-28T01:24:07.000Z | gui/duilib/duilib/Control/ScrollBar.cpp | pqgarden/PQBase | fe64dc937c2d86cb6363b2c0a394f0a9d794b116 | [
"MIT"
] | 678 | 2019-04-10T13:27:12.000Z | 2022-03-28T02:03:01.000Z | #include "stdafx.h"
#include "ScrollBar.h"
namespace ui
{
ScrollBar::ScrollBar() :
m_bHorizontal(false),
m_bShowButton1(true),
m_bShowButton2(true),
m_bAutoHide(true),
m_nRange(100),
m_nScrollPos(0),
m_nLineSize(8),
m_nThumbMinLength(30),
m_nLastScrollPos(0),
m_nLastScrollOffset(0),
m_nScrollRepeatDelay(0)... | 27.56327 | 125 | 0.707362 | pqgarden |
b4940a7be36f10da5352761daebfa57148e389a0 | 719 | cpp | C++ | librtsp/test/sdp-test.cpp | neonkingfr/MediaServer | 8dc2fbf275628ab306a0976ac54533dd0e181f65 | [
"MIT"
] | null | null | null | librtsp/test/sdp-test.cpp | neonkingfr/MediaServer | 8dc2fbf275628ab306a0976ac54533dd0e181f65 | [
"MIT"
] | null | null | null | librtsp/test/sdp-test.cpp | neonkingfr/MediaServer | 8dc2fbf275628ab306a0976ac54533dd0e181f65 | [
"MIT"
] | null | null | null | #include "sdp.h"
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
static char s_sdp[64 * 1024];
static const char* sdp_read(const char* file)
{
FILE* fp = fopen(file, "rb");
fread(s_sdp, 1, sizeof(s_sdp), fp);
fclose(fp);
return s_sdp;
}
void sdp_test(const char* file)
{
const char* t... | 19.972222 | 46 | 0.621697 | neonkingfr |
b495dbcb3466041d59cb48d10ac4cec5bf1cab0a | 2,700 | cpp | C++ | examples/chat_room/example_service.cpp | LoganBarnes/ltb-gvs | b1178e31c35aece434c7d47af955275fca9bb2a5 | [
"MIT"
] | 1 | 2020-04-04T16:57:25.000Z | 2020-04-04T16:57:25.000Z | examples/chat_room/example_service.cpp | LoganBarnes/ltb-gvs | b1178e31c35aece434c7d47af955275fca9bb2a5 | [
"MIT"
] | null | null | null | examples/chat_room/example_service.cpp | LoganBarnes/ltb-gvs | b1178e31c35aece434c7d47af955275fca9bb2a5 | [
"MIT"
] | null | null | null | // ///////////////////////////////////////////////////////////////////////////////////////
// LTB Geometry Visualization Server
// Copyright (c) 2020 Logan Barnes - All Rights Reserved
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation fil... | 42.1875 | 96 | 0.673704 | LoganBarnes |
b49639dffa01b58fee555c345ad97ab301885327 | 2,887 | cpp | C++ | webkit/WebCore/storage/chromium/QuotaTracker.cpp | s1rcheese/nintendo-3ds-internetbrowser-sourcecode | 3dd05f035e0a5fc9723300623e9b9b359be64e11 | [
"Unlicense"
] | 15 | 2016-01-05T12:43:41.000Z | 2022-03-15T10:34:47.000Z | webkit/WebCore/storage/chromium/QuotaTracker.cpp | s1rcheese/nintendo-3ds-internetbrowser-sourcecode | 3dd05f035e0a5fc9723300623e9b9b359be64e11 | [
"Unlicense"
] | null | null | null | webkit/WebCore/storage/chromium/QuotaTracker.cpp | s1rcheese/nintendo-3ds-internetbrowser-sourcecode | 3dd05f035e0a5fc9723300623e9b9b359be64e11 | [
"Unlicense"
] | 2 | 2020-11-30T18:36:01.000Z | 2021-02-05T23:20:24.000Z | /*
* Copyright (C) 2009 Google Inc. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditio... | 41.242857 | 99 | 0.771043 | s1rcheese |
b4991be7511f8ac143e2847fc043aef9bb1513e0 | 325 | cpp | C++ | src/memory.cpp | nick-valentine/Chip-8-Emulator | fff1e8f262e6ca7c1dde028da3db5e3e0dec0284 | [
"MIT"
] | null | null | null | src/memory.cpp | nick-valentine/Chip-8-Emulator | fff1e8f262e6ca7c1dde028da3db5e3e0dec0284 | [
"MIT"
] | null | null | null | src/memory.cpp | nick-valentine/Chip-8-Emulator | fff1e8f262e6ca7c1dde028da3db5e3e0dec0284 | [
"MIT"
] | null | null | null | #include "memory.hpp"
#include <cstdint>
#include <cstdio>
Memory::Memory(size_t size) : memory(size) {}
void Memory::dump() { dump(0, memory.size()); }
void Memory::dump(size_t low, size_t high) {
for (size_t i = low; i < memory.size() && i < high; i++) {
printf("mem[%#04x]=%#04x\n", (uint8_t)i, memory[i]);
... | 23.214286 | 60 | 0.609231 | nick-valentine |
a330f59d2cfe1b59880fb34a6ce4a16bc73f4b7d | 5,653 | cpp | C++ | SmartHydroponics/BMPFluidCalc.cpp | an0mali/SmartHydroponics | 2c3d862174e6c6f7c00623496c33c98edc343063 | [
"MIT"
] | 1 | 2022-02-16T18:57:55.000Z | 2022-02-16T18:57:55.000Z | SmartHydroponics/BMPFluidCalc.cpp | an0mali/SmartHydroponics | 2c3d862174e6c6f7c00623496c33c98edc343063 | [
"MIT"
] | null | null | null | SmartHydroponics/BMPFluidCalc.cpp | an0mali/SmartHydroponics | 2c3d862174e6c6f7c00623496c33c98edc343063 | [
"MIT"
] | null | null | null | #include "BMPFluidCalc.h"
#include "ProgMemStr.h"
#include "DualBMP.h"
#include "PlantData.h"
#include <Arduino.h>
/*Liquid meter uses the pressure difference between the atmosphere and a water tower to
* [precisely?] measure the amount of liquid remaining, and rate of loss, in a system over time.
* This modul... | 31.581006 | 166 | 0.676632 | an0mali |
a330fa68bbd83754d99d95be498148c52bf6c80b | 25,568 | cpp | C++ | trunk/src/app/srs_app_rtsp.cpp | daimaqiao/srs | f729bb9ac484a7ae452090e2583abb348385d2e9 | [
"MIT"
] | 2 | 2018-12-05T10:33:50.000Z | 2019-08-25T13:31:48.000Z | trunk/src/app/srs_app_rtsp.cpp | darcy-shimmer/srs | 14be74ca5ea8f1341900768984798cfdd12f759b | [
"MIT"
] | 1 | 2019-04-28T00:50:59.000Z | 2019-04-28T00:51:57.000Z | trunk/src/app/srs_app_rtsp.cpp | darcy-shimmer/srs | 14be74ca5ea8f1341900768984798cfdd12f759b | [
"MIT"
] | 2 | 2019-01-22T03:43:14.000Z | 2022-01-21T06:06:32.000Z | /*
The MIT License (MIT)
Copyright (c) 2013-2015 SRS(ossrs)
Permission is hereby granted, free of charge, to any person obtaining a copy of
this software and associated documentation files (the "Software"), to deal in
the Software without restriction, including without limitation the rights to
use, copy, modify, merg... | 30.438095 | 138 | 0.601259 | daimaqiao |
a33357029f9bd0a8d3306639cf5eeac92dfabff3 | 499 | cc | C++ | source/common/http/http1/header_formatter.cc | jaricftw/envoy | 766f3fb8dbdafce402631c43c16fda46ed003462 | [
"Apache-2.0"
] | 1 | 2019-11-19T22:27:58.000Z | 2019-11-19T22:27:58.000Z | source/common/http/http1/header_formatter.cc | jaricftw/envoy | 766f3fb8dbdafce402631c43c16fda46ed003462 | [
"Apache-2.0"
] | 1 | 2019-01-04T08:20:24.000Z | 2019-01-04T08:20:24.000Z | source/common/http/http1/header_formatter.cc | jaricftw/envoy | 766f3fb8dbdafce402631c43c16fda46ed003462 | [
"Apache-2.0"
] | 1 | 2019-11-03T03:46:51.000Z | 2019-11-03T03:46:51.000Z | #include "common/http/http1/header_formatter.h"
namespace Envoy {
namespace Http {
namespace Http1 {
std::string ProperCaseHeaderKeyFormatter::format(absl::string_view key) const {
auto copy = std::string(key);
bool should_capitalize = true;
for (char& c : copy) {
if (should_capitalize && isalpha(c)) {
... | 22.681818 | 79 | 0.677355 | jaricftw |
a33395f41dad86694dbc7ef36831fdf8dacb5a12 | 3,074 | cpp | C++ | src/coreclr/src/debug/createdump/threadinfomac.cpp | swaroop-sridhar/runtime | d0efddd932f6fb94c3e9436ab393fc390c7b2da9 | [
"MIT"
] | 11 | 2021-10-21T07:56:23.000Z | 2022-03-31T15:08:10.000Z | src/coreclr/src/debug/createdump/threadinfomac.cpp | swaroop-sridhar/runtime | d0efddd932f6fb94c3e9436ab393fc390c7b2da9 | [
"MIT"
] | 1 | 2021-11-23T11:04:19.000Z | 2021-12-21T06:41:19.000Z | src/coreclr/src/debug/createdump/threadinfomac.cpp | swaroop-sridhar/runtime | d0efddd932f6fb94c3e9436ab393fc390c7b2da9 | [
"MIT"
] | 2 | 2021-05-17T22:12:46.000Z | 2021-05-19T06:21:16.000Z | // Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
#include "createdump.h"
ThreadInfo::ThreadInfo(CrashInfo& crashInfo, pid_t tid, mach_port_t port) :
m_crashInfo(crashInfo),
m_tid(tid),
m_port(port)
{
}
ThreadInfo::~Th... | 32.702128 | 111 | 0.709824 | swaroop-sridhar |
a333bbbd96e777954386b06546fafb797cd981b4 | 17,953 | cpp | C++ | UnrealEngine-4.11.2-release/Engine/Source/Developer/CrashDebugHelper/Private/Windows/WindowsPlatformStackWalkExt.cpp | armroyce/Unreal | ea1cdebe70407d59af4e8366d7111c52ce4606df | [
"MIT"
] | 1 | 2016-10-01T21:35:52.000Z | 2016-10-01T21:35:52.000Z | UnrealEngine-4.11.2-release/Engine/Source/Developer/CrashDebugHelper/Private/Windows/WindowsPlatformStackWalkExt.cpp | armroyce/Unreal | ea1cdebe70407d59af4e8366d7111c52ce4606df | [
"MIT"
] | null | null | null | UnrealEngine-4.11.2-release/Engine/Source/Developer/CrashDebugHelper/Private/Windows/WindowsPlatformStackWalkExt.cpp | armroyce/Unreal | ea1cdebe70407d59af4e8366d7111c52ce4606df | [
"MIT"
] | 1 | 2021-04-27T08:48:33.000Z | 2021-04-27T08:48:33.000Z | // Copyright 1998-2016 Epic Games, Inc. All Rights Reserved.
#include "CrashDebugHelperPrivatePCH.h"
#include "GenericPlatform/GenericPlatformCrashContext.h"
#include "WindowsPlatformStackWalkExt.h"
#include "CrashDebugPDBCache.h"
#include "AllowWindowsPlatformTypes.h"
#include "dbgeng.h"
#include <DbgHelp.h>
#includ... | 31.331588 | 170 | 0.720938 | armroyce |
a335160ffb74e26911e429aac197b23c3c17630e | 3,617 | hxx | C++ | Modules/Filtering/Smoothing/include/itkBoxSigmaImageFilter.hxx | HongdaZ/ITK | f5d004fa3607b8e11edc30f1ba299df35af8aff8 | [
"Apache-2.0"
] | 1 | 2021-01-10T14:19:08.000Z | 2021-01-10T14:19:08.000Z | Modules/Filtering/Smoothing/include/itkBoxSigmaImageFilter.hxx | HongdaZ/ITK | f5d004fa3607b8e11edc30f1ba299df35af8aff8 | [
"Apache-2.0"
] | 1 | 2017-03-19T12:56:50.000Z | 2018-10-24T10:40:21.000Z | Modules/Filtering/Smoothing/include/itkBoxSigmaImageFilter.hxx | HongdaZ/ITK | f5d004fa3607b8e11edc30f1ba299df35af8aff8 | [
"Apache-2.0"
] | 1 | 2020-07-24T22:58:19.000Z | 2020-07-24T22:58:19.000Z | /*=========================================================================
*
* Copyright NumFOCUS
*
* 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.or... | 36.17 | 86 | 0.591651 | HongdaZ |
a3367252977c3b0d471760e8ba33c873a4f1d02d | 1,368 | hpp | C++ | sources/vggrab/grabber.hpp | SimonsRoad/seq2map | cc8cd20842b3c6db01f73d2e6ecf543189e56891 | [
"BSD-3-Clause"
] | null | null | null | sources/vggrab/grabber.hpp | SimonsRoad/seq2map | cc8cd20842b3c6db01f73d2e6ecf543189e56891 | [
"BSD-3-Clause"
] | null | null | null | sources/vggrab/grabber.hpp | SimonsRoad/seq2map | cc8cd20842b3c6db01f73d2e6ecf543189e56891 | [
"BSD-3-Clause"
] | 1 | 2018-11-01T13:11:39.000Z | 2018-11-01T13:11:39.000Z | #ifndef GRABBER_HPP
#define GRABBER_HPP
#include "syncbuf.hpp"
class ImageGrabber : public BufferWriter, public Indexed
{
public:
typedef boost::shared_ptr<ImageGrabber> Ptr;
typedef std::vector<Ptr> Ptrs;
ImageGrabber(const SyncBuffer::Ptr& buffer) : BufferWriter(buffer) {}
virtual ~ImageGrabber() {... | 27.36 | 95 | 0.709795 | SimonsRoad |
a337bb4ad63f289cac5d817e7732aebbf63b3abf | 4,057 | cxx | C++ | src/lcd/ssd1308.cxx | Wyliodrin/upm | 5aa09c5fcaafd5d6a05b63c7b7760d30c7acf33f | [
"MIT"
] | 1 | 2015-02-06T19:23:12.000Z | 2015-02-06T19:23:12.000Z | src/lcd/ssd1308.cxx | Wyliodrin/upm | 5aa09c5fcaafd5d6a05b63c7b7760d30c7acf33f | [
"MIT"
] | null | null | null | src/lcd/ssd1308.cxx | Wyliodrin/upm | 5aa09c5fcaafd5d6a05b63c7b7760d30c7acf33f | [
"MIT"
] | null | null | null | /*
* Author: Yevgeniy Kiveisha <yevgeniy.kiveisha@intel.com>
* Copyright (c) 2014 Intel Corporation.
*
* 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
* ... | 28.978571 | 121 | 0.664284 | Wyliodrin |
a3384c1250b4d752caa1905fc15ad8fa48a4a9b4 | 8,567 | cc | C++ | dcmtk-master2/dcmfg/tests/t_deriv_image.cc | happymanx/Weather_FFI | a7f9bf8f1bda2b50c9d9a875c08fccf58379ad9f | [
"MIT"
] | null | null | null | dcmtk-master2/dcmfg/tests/t_deriv_image.cc | happymanx/Weather_FFI | a7f9bf8f1bda2b50c9d9a875c08fccf58379ad9f | [
"MIT"
] | null | null | null | dcmtk-master2/dcmfg/tests/t_deriv_image.cc | happymanx/Weather_FFI | a7f9bf8f1bda2b50c9d9a875c08fccf58379ad9f | [
"MIT"
] | null | null | null | /*
*
* Copyright (C) 2019-2020, OFFIS e.V.
* All rights reserved. See COPYRIGHT file for details.
*
* This software and supporting documentation were developed by
*
* OFFIS e.V.
* R&D Division Health
* Escherweg 2
* D-26121 Oldenburg, Germany
*
*
* Module: dcmfg
*
* Author: Michael On... | 48.129213 | 119 | 0.646317 | happymanx |
a33da221d284643b9a07f8d6988fd1ee724e6ba4 | 3,031 | hpp | C++ | Day2.hpp | pauwell/Advent-Of-Code-2017 | 0d334f70b1a9b183ff5be9f4317c3bbaec7919ac | [
"MIT"
] | null | null | null | Day2.hpp | pauwell/Advent-Of-Code-2017 | 0d334f70b1a9b183ff5be9f4317c3bbaec7919ac | [
"MIT"
] | null | null | null | Day2.hpp | pauwell/Advent-Of-Code-2017 | 0d334f70b1a9b183ff5be9f4317c3bbaec7919ac | [
"MIT"
] | null | null | null | /**
--- AoC 2017 ---
--- Day 2: Corruption Checksum ---
http://adventofcode.com/2017/day/2
-------------------------------------------------------------------------------------------------------------
Part 1:
The spreadsheet consists of rows of apparently-random numbers. To make sure the recovery process is on... | 30.009901 | 121 | 0.553283 | pauwell |
a33da6d36b55415f64977fedd1e8522918a8c78e | 1,170 | cpp | C++ | GSLAM/plugins/gmap/main.cpp | qistout/GSLAM | 0dc339faffed1c17efa3ddb1da63442b53ec4618 | [
"BSD-2-Clause"
] | 875 | 2016-09-19T01:35:56.000Z | 2022-03-28T09:12:00.000Z | GSLAM/plugins/gmap/main.cpp | bhsphd/GSLAM | a2139d1c52ad70c282bc950b51876a0b0ba019e0 | [
"BSD-2-Clause"
] | 40 | 2017-08-01T02:32:35.000Z | 2021-05-31T13:45:59.000Z | GSLAM/plugins/gmap/main.cpp | bhsphd/GSLAM | a2139d1c52ad70c282bc950b51876a0b0ba019e0 | [
"BSD-2-Clause"
] | 259 | 2016-08-20T14:54:09.000Z | 2022-03-09T06:18:05.000Z | #include "MapHash.h"
using namespace GSLAM;
int run(Svar config){
std::string in =config.arg<std::string>("in","","the map to load");
std::string out=config.arg<std::string>("out","","the map file to save");
std::string map=config.arg<std::string>("map","map","the map topic to publish or subscribe");
... | 29.25 | 97 | 0.604274 | qistout |
a33dc5af8c61c21a8f804a79d17d309f8d76b407 | 1,453 | hpp | C++ | ReactNativeFrontend/ios/Pods/boost/boost/hana/fwd/is_empty.hpp | Harshitha91/Tmdb-react-native-node | e06e3f25a7ee6946ef07a1f524fdf62e48424293 | [
"Apache-2.0"
] | 12,278 | 2015-01-29T17:11:33.000Z | 2022-03-31T21:12:00.000Z | ReactNativeFrontend/ios/Pods/boost/boost/hana/fwd/is_empty.hpp | Harshitha91/Tmdb-react-native-node | e06e3f25a7ee6946ef07a1f524fdf62e48424293 | [
"Apache-2.0"
] | 9,469 | 2015-01-30T05:33:07.000Z | 2022-03-31T16:17:21.000Z | ReactNativeFrontend/ios/Pods/boost/boost/hana/fwd/is_empty.hpp | Harshitha91/Tmdb-react-native-node | e06e3f25a7ee6946ef07a1f524fdf62e48424293 | [
"Apache-2.0"
] | 1,343 | 2017-12-08T19:47:19.000Z | 2022-03-26T11:31:36.000Z | /*!
@file
Forward declares `boost::hana::is_empty`.
@copyright Louis Dionne 2013-2017
Distributed under the Boost Software License, Version 1.0.
(See accompanying file LICENSE.md or copy at http://boost.org/LICENSE_1_0.txt)
*/
#ifndef BOOST_HANA_FWD_IS_EMPTY_HPP
#define BOOST_HANA_FWD_IS_EMPTY_HPP
#include <boost/h... | 29.06 | 78 | 0.689608 | Harshitha91 |
a33e38d585cde1ecb634f89cb3c7a20905c1c274 | 2,829 | hpp | C++ | include/codegen/include/GlobalNamespace/NoteBasicCutInfo.hpp | Futuremappermydud/Naluluna-Modifier-Quest | bfda34370764b275d90324b3879f1a429a10a873 | [
"MIT"
] | 1 | 2021-11-12T09:29:31.000Z | 2021-11-12T09:29:31.000Z | include/codegen/include/GlobalNamespace/NoteBasicCutInfo.hpp | Futuremappermydud/Naluluna-Modifier-Quest | bfda34370764b275d90324b3879f1a429a10a873 | [
"MIT"
] | null | null | null | include/codegen/include/GlobalNamespace/NoteBasicCutInfo.hpp | Futuremappermydud/Naluluna-Modifier-Quest | bfda34370764b275d90324b3879f1a429a10a873 | [
"MIT"
] | 2 | 2021-10-03T02:14:20.000Z | 2021-11-12T09:29:36.000Z | // Autogenerated from CppHeaderCreator
// Created by Sc2ad
// =========================================================================
#pragma once
#pragma pack(push, 8)
// Begin includes
#include "extern/beatsaber-hook/shared/utils/typedefs.h"
// Including type: System.Single
#include "System/Single.hpp"
// Completed... | 47.949153 | 329 | 0.7614 | Futuremappermydud |
a33e8e9c3583e000d7894c7f6f415b261d32d960 | 2,894 | hh | C++ | tce/src/applibs/PlatformIntegrator/KoskiIntegrator.hh | kanishkan/tce | 430e764b4d43f46bd1dc754aeb1d5632fc742110 | [
"MIT"
] | 74 | 2015-10-22T15:34:10.000Z | 2022-03-25T07:57:23.000Z | tce/src/applibs/PlatformIntegrator/KoskiIntegrator.hh | kanishkan/tce | 430e764b4d43f46bd1dc754aeb1d5632fc742110 | [
"MIT"
] | 79 | 2015-11-19T09:23:08.000Z | 2022-01-12T14:15:16.000Z | tce/src/applibs/PlatformIntegrator/KoskiIntegrator.hh | kanishkan/tce | 430e764b4d43f46bd1dc754aeb1d5632fc742110 | [
"MIT"
] | 38 | 2015-11-17T10:12:23.000Z | 2022-03-25T07:57:24.000Z | /*
Copyright (c) 2002-2010 Tampere University.
This file is part of TTA-Based Codesign Environment (TCE).
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, ... | 28.653465 | 78 | 0.724257 | kanishkan |