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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
08a8b25904d305e39dceace1ce1e0c6d96131f5d | 112 | hpp | C++ | FirstOrderLogic/libfol-basictypes/variable.hpp | s3ponia/FOL-parser | 5cbfc1bf02acae78104238781b9c5c4e71ffe925 | [
"MIT"
] | null | null | null | FirstOrderLogic/libfol-basictypes/variable.hpp | s3ponia/FOL-parser | 5cbfc1bf02acae78104238781b9c5c4e71ffe925 | [
"MIT"
] | null | null | null | FirstOrderLogic/libfol-basictypes/variable.hpp | s3ponia/FOL-parser | 5cbfc1bf02acae78104238781b9c5c4e71ffe925 | [
"MIT"
] | null | null | null | #pragma once
#include <string>
namespace fol::types {
using Variable = std::string;
} // namespace fol::types
| 16 | 29 | 0.705357 | s3ponia |
08ab76ca3c0ca3f8ab82aa7833aa8cd8883d7e82 | 7,091 | cpp | C++ | test/rocprim/test_thread.cpp | stanleytsang-amd/rocPRIM | 1a4135dfc43f90f465c336a551bccbe359d40f11 | [
"MIT"
] | null | null | null | test/rocprim/test_thread.cpp | stanleytsang-amd/rocPRIM | 1a4135dfc43f90f465c336a551bccbe359d40f11 | [
"MIT"
] | null | null | null | test/rocprim/test_thread.cpp | stanleytsang-amd/rocPRIM | 1a4135dfc43f90f465c336a551bccbe359d40f11 | [
"MIT"
] | null | null | null | // MIT License
//
// Copyright (c) 2020 Advanced Micro Devices, Inc. All rights reserved.
//
// 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 limitati... | 32.231818 | 117 | 0.659145 | stanleytsang-amd |
08ad68ed8a061fe0c92070d98e01f28801f24c23 | 541 | cpp | C++ | source/365.cpp | narikbi/LeetCode | 835215c21d1bd6820b20c253026bcb6f889ed3fc | [
"MIT"
] | 2 | 2017-02-28T11:39:13.000Z | 2019-12-07T17:23:20.000Z | source/365.cpp | narikbi/LeetCode | 835215c21d1bd6820b20c253026bcb6f889ed3fc | [
"MIT"
] | null | null | null | source/365.cpp | narikbi/LeetCode | 835215c21d1bd6820b20c253026bcb6f889ed3fc | [
"MIT"
] | null | null | null | //
// 365.cpp
// LeetCode
//
// Created by Narikbi on 19.04.17.
// Copyright © 2017 app.leetcode.kz. All rights reserved.
//
#include <stdio.h>
#include <iostream>
#include <vector>
#include <string>
#include <algorithm>
#include <deque>
#include <queue>
#include <set>
#include <map>
#include <stack>
#include <cma... | 17.451613 | 58 | 0.656192 | narikbi |
08b3ce0e16746a951c5b63cc25ca988acd273a75 | 13,128 | hpp | C++ | include/state_saver.hpp | Neargye/yacppl | 032d8c044c84e0942607220679ca2d4da48631bd | [
"MIT"
] | 10 | 2018-12-13T06:52:13.000Z | 2022-02-21T16:39:58.000Z | include/state_saver.hpp | Neargye/yacppl | 032d8c044c84e0942607220679ca2d4da48631bd | [
"MIT"
] | null | null | null | include/state_saver.hpp | Neargye/yacppl | 032d8c044c84e0942607220679ca2d4da48631bd | [
"MIT"
] | 1 | 2020-06-02T08:05:13.000Z | 2020-06-02T08:05:13.000Z | // _____ _ _ _____ _____
// / ____| | | | / ____| / ____|_ _
// | (___ | |_ __ _| |_ ___ | (___ __ ___ _____ _ __ | | _| |_ _| |_
// \___ \| __/ _` | __/ _ \ \___ \ / _` \ \ / / _ \ '__| | | |_ _|_ _|
// ____) | || (_| | ||... | 39.542169 | 175 | 0.722273 | Neargye |
08be2b29cbe58b463019d929c190fd62ce6dd37a | 2,238 | cpp | C++ | src/mlpack/methods/gmm/gmm_probability_main.cpp | NaxAlpha/mlpack-build | 1f0c1454d4b35eb97ff115669919c205cee5bd1c | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 2 | 2018-05-21T11:08:36.000Z | 2022-03-12T07:52:14.000Z | src/mlpack/methods/gmm/gmm_probability_main.cpp | okmegy/Mlpack | ac9abef3c1353f483ed1af42ba5a7432f291ca1a | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | null | null | null | src/mlpack/methods/gmm/gmm_probability_main.cpp | okmegy/Mlpack | ac9abef3c1353f483ed1af42ba5a7432f291ca1a | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | null | null | null | /**
* @file gmm_probability_main.cpp
* @author Ryan Curtin
*
* Given a GMM, calculate the probability of points coming from it.
*
* mlpack is free software; you may redistribute it and/or modify it under the
* terms of the 3-clause BSD license. You should have received a copy of the
* 3-clause BSD license alon... | 34.430769 | 79 | 0.703753 | NaxAlpha |
08bec8b14d8f7c6c750f4cab4eafaed88a6db114 | 2,028 | cpp | C++ | wide-IDE/cpwin.cpp | nickmain/Amzi-Prolog | 6ce17a494fc93f3f27e02896a6a5ff7ac4b33c3e | [
"MIT"
] | 86 | 2016-04-16T06:35:44.000Z | 2021-04-14T05:46:32.000Z | wide-IDE/cpwin.cpp | nickmain/Amzi-Prolog | 6ce17a494fc93f3f27e02896a6a5ff7ac4b33c3e | [
"MIT"
] | 20 | 2021-05-09T20:54:54.000Z | 2021-05-14T13:12:05.000Z | wide-IDE/cpwin.cpp | nickmain/Amzi-Prolog | 6ce17a494fc93f3f27e02896a6a5ff7ac4b33c3e | [
"MIT"
] | 15 | 2016-04-16T19:10:45.000Z | 2020-11-04T04:07:21.000Z | //-----------------------------------------------------------
// Extended Windows Predicates, MFC version
//
#include "stdafx.h"
#include <direct.h>
#include <io.h>
#include "amzi.h"
#include "conview.h"
#include "proprog.h"
#include "cpwin.h"
/*
TF EXPFUNC p_keyb(ENGid);
PRED_INIT winPreds[] =
{
//... | 20.28 | 64 | 0.496055 | nickmain |
08c2f4a2a8b272af322be5139ca8ca252d73d27b | 270 | cpp | C++ | src/CountingBits.cpp | yanzhe-chen/LeetCode | d82f0b9721ea613ab216c78e7286671d0e9e4187 | [
"MIT"
] | 43 | 2015-10-10T12:59:52.000Z | 2018-07-11T18:07:00.000Z | src/CountingBits.cpp | yanzhe-chen/LeetCode | d82f0b9721ea613ab216c78e7286671d0e9e4187 | [
"MIT"
] | null | null | null | src/CountingBits.cpp | yanzhe-chen/LeetCode | d82f0b9721ea613ab216c78e7286671d0e9e4187 | [
"MIT"
] | 11 | 2015-10-10T14:41:11.000Z | 2018-07-28T06:03:16.000Z | #include "CountingBits.hpp"
vector<int> CountingBits::countBits(int num) {
vector<int> ret(num + 1, 0);
if (num == 0) return ret;
ret[1] = 1;
for (int i = 2; i <= num; i++)
ret[i] = (i & 0x1) ? ret[i / 2] + 1 : ret[i / 2];
return ret;
}
| 18 | 57 | 0.503704 | yanzhe-chen |
c0934c3e35e6384d025f570650d814fc9101700a | 2,717 | hpp | C++ | ql/experimental/exoticoptions/writerextensibleoption.hpp | urgu00/QuantLib | fecce0abb0ff3d50da29c129f8f9e73176e20ab9 | [
"BSD-3-Clause"
] | 2 | 2021-12-12T01:27:45.000Z | 2022-01-25T17:44:12.000Z | ql/experimental/exoticoptions/writerextensibleoption.hpp | urgu00/QuantLib | fecce0abb0ff3d50da29c129f8f9e73176e20ab9 | [
"BSD-3-Clause"
] | 19 | 2020-11-23T08:36:10.000Z | 2022-03-28T10:06:53.000Z | ql/experimental/exoticoptions/writerextensibleoption.hpp | urgu00/QuantLib | fecce0abb0ff3d50da29c129f8f9e73176e20ab9 | [
"BSD-3-Clause"
] | 5 | 2020-06-04T15:19:22.000Z | 2020-06-18T08:24:37.000Z | /* -*- mode: c++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
/*
Copyright (C) 2011 Master IMAFA - Polytech'Nice Sophia - Université de Nice Sophia Antipolis
This file is part of QuantLib, a free-software/open-source library
for financial quantitative analysts and developers - http://quantlib.org... | 35.285714 | 93 | 0.691204 | urgu00 |
c09e50a22c50058c83d458917f2448e63981aad9 | 3,919 | cpp | C++ | src/placeholder.cpp | matt-harvey/swx | e7b10fe7d4bf0bd6581ceada53ad14b08bc1d852 | [
"Apache-2.0"
] | 7 | 2017-10-08T08:08:25.000Z | 2020-04-27T09:25:00.000Z | src/placeholder.cpp | matt-harvey/swx | e7b10fe7d4bf0bd6581ceada53ad14b08bc1d852 | [
"Apache-2.0"
] | null | null | null | src/placeholder.cpp | matt-harvey/swx | e7b10fe7d4bf0bd6581ceada53ad14b08bc1d852 | [
"Apache-2.0"
] | 1 | 2020-04-27T09:24:42.000Z | 2020-04-27T09:24:42.000Z | /*
* Copyright 2014 Matthew Harvey
*
* 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 agre... | 27.405594 | 92 | 0.592498 | matt-harvey |
c0a474de71bc395d6c17a885e849620c4148b3ec | 965 | cpp | C++ | src/physical_device.cpp | QSXW/VKCPP | c3fed2159dca0d63b4eb5e15b9a1e5fbcf05bfb8 | [
"Apache-2.0"
] | null | null | null | src/physical_device.cpp | QSXW/VKCPP | c3fed2159dca0d63b4eb5e15b9a1e5fbcf05bfb8 | [
"Apache-2.0"
] | null | null | null | src/physical_device.cpp | QSXW/VKCPP | c3fed2159dca0d63b4eb5e15b9a1e5fbcf05bfb8 | [
"Apache-2.0"
] | null | null | null | #include "physical_device.h"
namespace VKCPP
{
PFN_vkGetPhysicalDeviceFeatures PhysicalDevice::GetFeatures;
PFN_vkGetPhysicalDeviceFormatProperties PhysicalDevice::GetFormatProperties;
PFN_vkGetPhysicalDeviceImageFormatProperties PhysicalDevice::GetImageFormatProperties;
PF... | 38.6 | 99 | 0.781347 | QSXW |
c0a85d85b9a9db48247620e73d9af2698fa24d24 | 3,101 | cpp | C++ | libs/fnd/algorithm/test/src/ranges/unit_test_fnd_algorithm_ranges_copy_n.cpp | myoukaku/bksge | 0f8b60e475a3f1709723906e4796b5e60decf06e | [
"MIT"
] | 4 | 2018-06-10T13:35:32.000Z | 2021-06-03T14:27:41.000Z | libs/fnd/algorithm/test/src/ranges/unit_test_fnd_algorithm_ranges_copy_n.cpp | myoukaku/bksge | 0f8b60e475a3f1709723906e4796b5e60decf06e | [
"MIT"
] | 566 | 2017-01-31T05:36:09.000Z | 2022-02-09T05:04:37.000Z | libs/fnd/algorithm/test/src/ranges/unit_test_fnd_algorithm_ranges_copy_n.cpp | myoukaku/bksge | 0f8b60e475a3f1709723906e4796b5e60decf06e | [
"MIT"
] | 1 | 2018-07-05T04:40:53.000Z | 2018-07-05T04:40:53.000Z | /**
* @file unit_test_fnd_algorithm_ranges_copy_n.cpp
*
* @brief ranges::copy_n のテスト
*
* @author myoukaku
*/
#include <bksge/fnd/algorithm/ranges/copy_n.hpp>
#include <bksge/fnd/algorithm/ranges/equal.hpp>
#include <bksge/fnd/iterator/ranges/next.hpp>
#include <gtest/gtest.h>
#include "constexpr_tes... | 25.418033 | 79 | 0.610448 | myoukaku |
c0ac3c7e1842e42aa82dc05fc477a5a50b9e0e4f | 400 | cpp | C++ | MaxConsecutiveOnes/main.cpp | warjiang/leetcode | 2c00b1406fc3680a7a0ecf1842b3544a0ca28185 | [
"MIT"
] | null | null | null | MaxConsecutiveOnes/main.cpp | warjiang/leetcode | 2c00b1406fc3680a7a0ecf1842b3544a0ca28185 | [
"MIT"
] | null | null | null | MaxConsecutiveOnes/main.cpp | warjiang/leetcode | 2c00b1406fc3680a7a0ecf1842b3544a0ca28185 | [
"MIT"
] | null | null | null | #include <iostream>
#include <vector>
#include "Solution.cpp"
using namespace std;
void tranverseVector(vector<int> v){
for(int i = 0; i < v.size(); i++){
cout << v[i] << endl;
}
}
int main(){
Solution* s = new Solution;
int arr[] = {1,1,0,1,1,1};
vector<int> v(arr, arr+sizeof(arr)/sizeof(int));
int n = s->fi... | 20 | 49 | 0.625 | warjiang |
c0b22e9afc40aa14c293cad55ca091272311ddba | 5,413 | cpp | C++ | src/statespace/SO3.cpp | usc-csci-545/aikido | afd8b203c17cb0b05d7db436f8bffbbe2111a75a | [
"BSD-3-Clause"
] | null | null | null | src/statespace/SO3.cpp | usc-csci-545/aikido | afd8b203c17cb0b05d7db436f8bffbbe2111a75a | [
"BSD-3-Clause"
] | null | null | null | src/statespace/SO3.cpp | usc-csci-545/aikido | afd8b203c17cb0b05d7db436f8bffbbe2111a75a | [
"BSD-3-Clause"
] | null | null | null | #include <iostream>
#include <dart/math/Geometry.hpp>
#include <aikido/statespace/SO3.hpp>
namespace aikido {
namespace statespace {
//==============================================================================
SO3::SO3::State::State() : mValue(1., 0., 0., 0.)
{
}
//================================================... | 30.240223 | 80 | 0.493257 | usc-csci-545 |
c0b700887c45e60309776b904abf5458b0837f04 | 3,267 | cpp | C++ | Projects/HW1P3/URLParser.cpp | iamjeffx/CSCE-463 | c9724a993909db2f9cb58e9835e8c0ec6efa49e5 | [
"MIT"
] | null | null | null | Projects/HW1P3/URLParser.cpp | iamjeffx/CSCE-463 | c9724a993909db2f9cb58e9835e8c0ec6efa49e5 | [
"MIT"
] | null | null | null | Projects/HW1P3/URLParser.cpp | iamjeffx/CSCE-463 | c9724a993909db2f9cb58e9835e8c0ec6efa49e5 | [
"MIT"
] | 1 | 2022-01-24T09:01:59.000Z | 2022-01-24T09:01:59.000Z | /** CSCE 463 Homework 1 Part 3: Spring 2021
*
Author: Jeffrey Xu
UIN: 527008162
Email: jeffreyxu@tamu.edu
Professor Dmitri Loguinov
Filename: URLParser.cpp
Definition of URLParser functions. Note that fragments are not included in this parser.
**/
#include "pch.h"
#include "URLParser.h"
using namespace std;
#d... | 25.130769 | 92 | 0.655647 | iamjeffx |
c0b7a6df226bbee4791a4cd6732a3f240379872e | 6,489 | cpp | C++ | src/mf.cpp | durgeshra/libDAI-1 | f72414d4381e302c0655f4055dbf526c738bf485 | [
"BSD-2-Clause"
] | null | null | null | src/mf.cpp | durgeshra/libDAI-1 | f72414d4381e302c0655f4055dbf526c738bf485 | [
"BSD-2-Clause"
] | null | null | null | src/mf.cpp | durgeshra/libDAI-1 | f72414d4381e302c0655f4055dbf526c738bf485 | [
"BSD-2-Clause"
] | null | null | null | /* This file is part of libDAI - http://www.libdai.org/
*
* Copyright (c) 2006-2011, The libDAI 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 <iostream>
#include <sstream>
#include <map>
#include <set>
#include <... | 28.213043 | 169 | 0.540145 | durgeshra |
c0b9bc1b7d09c268d1fee8a9f49be94cc20c2e44 | 9,923 | cpp | C++ | Modules/Core/src/Controllers/mitkVtkLayerController.cpp | zhaomengxiao/MITK | a09fd849a4328276806008bfa92487f83a9e2437 | [
"BSD-3-Clause"
] | 1 | 2022-03-03T12:03:32.000Z | 2022-03-03T12:03:32.000Z | Modules/Core/src/Controllers/mitkVtkLayerController.cpp | zhaomengxiao/MITK | a09fd849a4328276806008bfa92487f83a9e2437 | [
"BSD-3-Clause"
] | 1 | 2021-12-22T10:19:02.000Z | 2021-12-22T10:19:02.000Z | Modules/Core/src/Controllers/mitkVtkLayerController.cpp | zhaomengxiao/MITK_lancet | a09fd849a4328276806008bfa92487f83a9e2437 | [
"BSD-3-Clause"
] | 1 | 2020-11-27T09:41:18.000Z | 2020-11-27T09:41:18.000Z | /*============================================================================
The Medical Imaging Interaction Toolkit (MITK)
Copyright (c) German Cancer Research Center (DKFZ)
All rights reserved.
Use of this source code is governed by a 3-clause BSD license that can be
found in the LICENSE file.
=================... | 29.709581 | 117 | 0.695354 | zhaomengxiao |
c0bb66c2a0e4b93c897664e3a62284459aeac8ee | 3,683 | cpp | C++ | libraries/animation/src/AnimStateMachine.cpp | stojce/hifi | 8e6c860a243131859c0706424097db56e6a604bd | [
"Apache-2.0"
] | null | null | null | libraries/animation/src/AnimStateMachine.cpp | stojce/hifi | 8e6c860a243131859c0706424097db56e6a604bd | [
"Apache-2.0"
] | null | null | null | libraries/animation/src/AnimStateMachine.cpp | stojce/hifi | 8e6c860a243131859c0706424097db56e6a604bd | [
"Apache-2.0"
] | null | null | null | //
// AnimStateMachine.cpp
//
// Created by Anthony J. Thibault on 9/2/15.
// Copyright (c) 2015 High Fidelity, Inc. All rights reserved.
//
// Distributed under the Apache License, Version 2.0.
// See the accompanying file LICENSE or http://www.apache.org/licenses/LICENSE-2.0.html
//
#include "AnimStateMachine.h... | 32.026087 | 196 | 0.661146 | stojce |
c0bf83e3248888e2752193872664437f5be09efd | 156 | cc | C++ | cmake/code_tests/rt_test.cc | liubangchen/seastar | 5bf108406ae79a5f30383bf8e498dd9d4b51d1a5 | [
"Apache-2.0"
] | 6,526 | 2015-09-22T16:47:59.000Z | 2022-03-31T07:31:07.000Z | cmake/code_tests/rt_test.cc | liubangchen/seastar | 5bf108406ae79a5f30383bf8e498dd9d4b51d1a5 | [
"Apache-2.0"
] | 925 | 2015-09-23T13:52:53.000Z | 2022-03-31T21:33:25.000Z | cmake/code_tests/rt_test.cc | liubangchen/seastar | 5bf108406ae79a5f30383bf8e498dd9d4b51d1a5 | [
"Apache-2.0"
] | 1,473 | 2015-09-22T23:19:04.000Z | 2022-03-31T21:09:00.000Z | extern "C" {
#include <signal.h>
#include <time.h>
}
int main() {
timer_t td;
struct sigevent sev;
timer_create(CLOCK_MONOTONIC, &sev, &td);
}
| 14.181818 | 45 | 0.628205 | liubangchen |
c0c2e51ef67a2a61b1673bba69cb9de169a89972 | 1,089 | hpp | C++ | libs/core/include/fcppt/type_traits/is_value.hpp | pmiddend/fcppt | 9f437acbb10258e6df6982a550213a05815eb2be | [
"BSL-1.0"
] | null | null | null | libs/core/include/fcppt/type_traits/is_value.hpp | pmiddend/fcppt | 9f437acbb10258e6df6982a550213a05815eb2be | [
"BSL-1.0"
] | null | null | null | libs/core/include/fcppt/type_traits/is_value.hpp | pmiddend/fcppt | 9f437acbb10258e6df6982a550213a05815eb2be | [
"BSL-1.0"
] | null | null | null | // Copyright Carl Philipp Reh 2009 - 2018.
// Distributed under the Boost Software License, Version 1.0.
// (See accompanying file LICENSE_1_0.txt or copy at
// http://www.boost.org/LICENSE_1_0.txt)
#ifndef FCPPT_TYPE_TRAITS_IS_VALUE_HPP_INCLUDED
#define FCPPT_TYPE_TRAITS_IS_VALUE_HPP_INCLUDED
#... | 16.753846 | 78 | 0.707989 | pmiddend |
c0c6351340585eb3f4d5f036d9ee6128112a4c4d | 4,167 | cpp | C++ | src/http/File.cpp | amoscykl98/Catrine | 300b3bcf33cedd73b634526a581a3fb82e4dd71e | [
"MIT"
] | 4 | 2019-03-22T23:26:49.000Z | 2020-10-14T11:53:26.000Z | src/http/File.cpp | amoscykl98/Catrine | 300b3bcf33cedd73b634526a581a3fb82e4dd71e | [
"MIT"
] | null | null | null | src/http/File.cpp | amoscykl98/Catrine | 300b3bcf33cedd73b634526a581a3fb82e4dd71e | [
"MIT"
] | null | null | null | /*************************************************************************
> File Name: File.cpp
> Author: amoscykl
> Mail: amoscykl@163.com
************************************************************************/
#include "File.h"
#include "Util.h"
#include "Iobuffer.h"
#include <sys/mman.h>
#include <fcntl.h>
... | 21.152284 | 88 | 0.551956 | amoscykl98 |
c0c6fdce0e03179fef9911f56f741873be3dff85 | 15,491 | cpp | C++ | src/lexer/handlers.cpp | Zoxc/mirb | 14c2fe2d2a026fb3bb62c883e8839e1078ebc3b6 | [
"BSD-3-Clause"
] | 10 | 2016-10-06T06:22:20.000Z | 2022-02-28T05:33:09.000Z | src/lexer/handlers.cpp | Zoxc/mirb | 14c2fe2d2a026fb3bb62c883e8839e1078ebc3b6 | [
"BSD-3-Clause"
] | null | null | null | src/lexer/handlers.cpp | Zoxc/mirb | 14c2fe2d2a026fb3bb62c883e8839e1078ebc3b6 | [
"BSD-3-Clause"
] | 3 | 2018-01-08T03:34:34.000Z | 2021-09-12T12:12:22.000Z | #include "lexer.hpp"
#include "../symbol-pool.hpp"
#include "../parser/parser.hpp"
#include "../tree/nodes.hpp"
namespace Mirb
{
bool Lexer::is_white()
{
return (input.in(1, 9) || input.in(11, 12) || input.in(14, 32));
}
void Lexer::white()
{
input++;
while(is_white())
input++;
restep(true);
}
... | 16.05285 | 107 | 0.556646 | Zoxc |
c0c89e38a9d4bd865f6e0071a68f7328077bd4d3 | 633 | cpp | C++ | src/Distance.cpp | SeanStarkey/map-utilities | bb3b29722c24a784d3f3ad34947042fb7449a1f0 | [
"Apache-2.0"
] | 1 | 2015-06-03T21:59:01.000Z | 2015-06-03T21:59:01.000Z | src/Distance.cpp | SeanStarkey/map-utilities | bb3b29722c24a784d3f3ad34947042fb7449a1f0 | [
"Apache-2.0"
] | null | null | null | src/Distance.cpp | SeanStarkey/map-utilities | bb3b29722c24a784d3f3ad34947042fb7449a1f0 | [
"Apache-2.0"
] | null | null | null |
#include "Distance.h"
#include <math.h>
#include <iostream>
#include "Constants.h"
double distance(const Location* c1, const Location* c2)
{
double dLat = toRadians(c1->getLatitude() - c2->getLatitude());
double dLon = toRadians(c1->getLongitude() - c2->getLongitude());
double lat1 = toRadians(c1->getLati... | 28.772727 | 69 | 0.661927 | SeanStarkey |
c0d3b7e4daae0a18dda73585d91461202d75845e | 6,336 | hpp | C++ | include/Bit/Graphics/TextureProperties.hpp | jimmiebergmann/Bit-Engine | 39324a9e7fb5ab4b1cf3738f871470e0a9ef7575 | [
"Zlib"
] | null | null | null | include/Bit/Graphics/TextureProperties.hpp | jimmiebergmann/Bit-Engine | 39324a9e7fb5ab4b1cf3738f871470e0a9ef7575 | [
"Zlib"
] | null | null | null | include/Bit/Graphics/TextureProperties.hpp | jimmiebergmann/Bit-Engine | 39324a9e7fb5ab4b1cf3738f871470e0a9ef7575 | [
"Zlib"
] | null | null | null | // ///////////////////////////////////////////////////////////////////////////
// Copyright (C) 2013 Jimmie Bergmann - jimmiebergmann@gmail.com
//
// This software is provided 'as-is', without any express or
// implied warranty. In no event will the authors be held
// liable for any damages arising from the use of this... | 33.882353 | 78 | 0.395991 | jimmiebergmann |
c0d7f59b8f82d16052ae48c3a72b1ac5ff05af37 | 209 | cpp | C++ | extras/general_pipelines/py2_10_20_20/py2_10_20_20.cpp | nvpro-samples/vk_compute_mipmaps | 613b94e4d36e6f357472e9c7a3163046deb55678 | [
"Apache-2.0"
] | 12 | 2021-07-24T18:33:22.000Z | 2022-03-12T16:20:49.000Z | extras/general_pipelines/py2_10_20_20/py2_10_20_20.cpp | nvpro-samples/vk_compute_mipmaps | 613b94e4d36e6f357472e9c7a3163046deb55678 | [
"Apache-2.0"
] | null | null | null | extras/general_pipelines/py2_10_20_20/py2_10_20_20.cpp | nvpro-samples/vk_compute_mipmaps | 613b94e4d36e6f357472e9c7a3163046deb55678 | [
"Apache-2.0"
] | 3 | 2021-08-04T02:27:12.000Z | 2022-03-13T08:43:24.000Z | #include "nvpro_pyramid_dispatch_alternative.hpp"
#include "../py2_dispatch_impl.hpp"
NVPRO_PYRAMID_ADD_GENERAL_DISPATCHER(py2_10_20_20,
(py2_dispatch_impl<10, 20, 20>))
| 29.857143 | 69 | 0.679426 | nvpro-samples |
c0d80a3d569a6a3522b2ebc38a601525ece54649 | 518 | hpp | C++ | src/Tools/Display/Dumper/Dumper_reduction.hpp | codechecker123/aff3ct | 030af3e990027fa803fb2c68f974c9ec0ee79b5d | [
"MIT"
] | null | null | null | src/Tools/Display/Dumper/Dumper_reduction.hpp | codechecker123/aff3ct | 030af3e990027fa803fb2c68f974c9ec0ee79b5d | [
"MIT"
] | null | null | null | src/Tools/Display/Dumper/Dumper_reduction.hpp | codechecker123/aff3ct | 030af3e990027fa803fb2c68f974c9ec0ee79b5d | [
"MIT"
] | null | null | null | #ifndef DUMPER_REDUCTION_HPP_
#define DUMPER_REDUCTION_HPP_
#include "Dumper.hpp"
namespace aff3ct
{
namespace tools
{
class Dumper_reduction : Dumper
{
protected:
std::vector<Dumper*> dumpers;
public:
explicit Dumper_reduction(std::vector<Dumper*> &dumpers);
virtual ~Dumper_reduction();
virtual void dump (cons... | 17.266667 | 58 | 0.694981 | codechecker123 |
c0d97772a1c1e4eaf6658cb081639fc2fea493a0 | 10,506 | cpp | C++ | src/maxon_epos_ethercat_sdk/Configuration.cpp | zoenglinghou/maxon_epos_ethercat_sdk | 4127085e33dfdbe08061b30941eaac4f5a5e0686 | [
"BSD-3-Clause"
] | 5 | 2021-04-06T13:42:34.000Z | 2022-02-22T08:37:20.000Z | src/maxon_epos_ethercat_sdk/Configuration.cpp | zoenglinghou/maxon_epos_ethercat_sdk | 4127085e33dfdbe08061b30941eaac4f5a5e0686 | [
"BSD-3-Clause"
] | 2 | 2021-04-29T15:42:38.000Z | 2022-02-23T15:07:31.000Z | src/maxon_epos_ethercat_sdk/Configuration.cpp | zoenglinghou/maxon_epos_ethercat_sdk | 4127085e33dfdbe08061b30941eaac4f5a5e0686 | [
"BSD-3-Clause"
] | 5 | 2021-04-28T15:06:15.000Z | 2022-02-23T09:09:55.000Z | // clang-format off
/*
** Copyright 2021 Robotic Systems Lab - ETH Zurich:
** Linghao Zhang, Jonas Junger, Lennart Nachtigall
**
** 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 mu... | 35.137124 | 113 | 0.63202 | zoenglinghou |
c0db91560356c7a14f2665a38bc5f060cfdfe65c | 389 | cpp | C++ | test_Graph/main.cpp | Dieupix/Graph | c57f17808e274f3c0f9d2829ecf58daec8983fd6 | [
"MIT"
] | 4 | 2021-11-30T18:21:06.000Z | 2022-01-05T19:01:57.000Z | test_Graph/main.cpp | Dieupix/Graph | c57f17808e274f3c0f9d2829ecf58daec8983fd6 | [
"MIT"
] | null | null | null | test_Graph/main.cpp | Dieupix/Graph | c57f17808e274f3c0f9d2829ecf58daec8983fd6 | [
"MIT"
] | null | null | null | #define DOCTEST_CONFIG_IMPLEMENT
#include "doctest.h"
int main() {
doctest::Context context;
context.setOption("order-by", "name"); // sort the test cases by their name
//context.setOption("duration", true); // print the duration of each test case
//context.setOption("success", true); // pri... | 29.923077 | 85 | 0.627249 | Dieupix |
c0de1d6831a09889f4f65cf431903ff4700f369f | 28,755 | cpp | C++ | tests/unit/utils/test_mem.cpp | bruingineer/sACN-1 | aef4a38f025f3800248ac24e377485dba27ed16f | [
"Apache-2.0"
] | null | null | null | tests/unit/utils/test_mem.cpp | bruingineer/sACN-1 | aef4a38f025f3800248ac24e377485dba27ed16f | [
"Apache-2.0"
] | null | null | null | tests/unit/utils/test_mem.cpp | bruingineer/sACN-1 | aef4a38f025f3800248ac24e377485dba27ed16f | [
"Apache-2.0"
] | null | null | null | /******************************************************************************
* Copyright 2021 ETC 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/l... | 36.215365 | 120 | 0.738028 | bruingineer |
c0e29d1aa63bcd5ba3fc737bcaeac7f0ab055c62 | 5,929 | cpp | C++ | Acrylic_Backend/BackendAPIs/Plexi2DRenderer/PlexiBackend/PlexiBackend_Vulkan/vulkanMain.cpp | TriHardStudios/TSA-Software-2019 | c64a1462640124f750ee1d33239f4476ace7fcb6 | [
"Apache-2.0"
] | 2 | 2019-09-03T16:48:20.000Z | 2019-09-03T23:00:48.000Z | Acrylic_Backend/BackendAPIs/Plexi2DRenderer/PlexiBackend/PlexiBackend_Vulkan/vulkanMain.cpp | TriHardStudios/TSA-Software-2019 | c64a1462640124f750ee1d33239f4476ace7fcb6 | [
"Apache-2.0"
] | 8 | 2019-11-22T21:34:15.000Z | 2020-02-24T16:25:21.000Z | Acrylic_Backend/BackendAPIs/Plexi2DRenderer/PlexiBackend/PlexiBackend_Vulkan/vulkanMain.cpp | TriHardStudios/TSA-Software-2019 | c64a1462640124f750ee1d33239f4476ace7fcb6 | [
"Apache-2.0"
] | null | null | null | //Dependencies
//#include "./../../plexi_usrStructs.hpp"
#include "../plexi_shaders.hpp"
#include "../plexi_buffer.hpp"
#include "../plexi_helper.hpp"
#include "vulkanMain.hpp"
#include "./VulkanHelpers/validationLayers.hpp"
#include "./VulkanHelpers/queueFamilies.hpp"
#include "./VulkanHelpers/swapChains.hpp"
bool... | 31.876344 | 174 | 0.708889 | TriHardStudios |
c0e3aa189fef7d1f17301079c7f7547aed289bec | 458 | cpp | C++ | oj/sp/ACPC10A.cpp | shivanib01/codes | f0761472a4b4bea3667c0c13b1c9bcfe5b2597a3 | [
"MIT"
] | null | null | null | oj/sp/ACPC10A.cpp | shivanib01/codes | f0761472a4b4bea3667c0c13b1c9bcfe5b2597a3 | [
"MIT"
] | null | null | null | oj/sp/ACPC10A.cpp | shivanib01/codes | f0761472a4b4bea3667c0c13b1c9bcfe5b2597a3 | [
"MIT"
] | null | null | null | /*
* Created by
* Shivani Bhardwaj <shivanib134@gmail.com>
*/
#include<bits/stdc++.h>
using namespace std;
int main()
{
float a1,a2,a3;
while(1){
cin>>a1>>a2>>a3;
if(a1==0 && a2==0 &&a3==0)
break;
float APExp=(a3+a1)/2;
if(a2==APExp){
cout<<"AP "<<a1+... | 16.962963 | 44 | 0.427948 | shivanib01 |
c0e4eb218634e84afa44387f81e6e2b349175b78 | 317 | hpp | C++ | include/tdc/util/likely.hpp | herlez/tdc | 3b85ae183c21410e65f1e739736287df46c38d1d | [
"MIT"
] | 1 | 2021-05-06T13:39:22.000Z | 2021-05-06T13:39:22.000Z | include/tdc/util/likely.hpp | herlez/tdc | 3b85ae183c21410e65f1e739736287df46c38d1d | [
"MIT"
] | 1 | 2020-03-07T08:05:20.000Z | 2020-03-07T08:05:20.000Z | include/tdc/util/likely.hpp | herlez/tdc | 3b85ae183c21410e65f1e739736287df46c38d1d | [
"MIT"
] | 2 | 2020-05-27T07:54:43.000Z | 2021-11-18T13:29:14.000Z | #pragma once
namespace tdc {
/// \brief Shortcut for \c __builtin_expect for expressions that are likely \c true.
#define tdc_likely(x) __builtin_expect(x, 1)
/// \brief Shortcut for \c __builtin_expect for expressions that are likely \c false.
#define tdc_unlikely(x) __builtin_expect(x, 0)
} // namespace tdc
| 26.416667 | 85 | 0.747634 | herlez |
c0e664b82f99587986a9e57bec939117aa6be51e | 12,806 | cc | C++ | src/tests/numerics/test_fvm_nabla_validation.cc | wdeconinck/atlas | 8949d2b362b9b5431023a967bcf4ca84f6b8ce05 | [
"Apache-2.0"
] | 3 | 2020-04-28T20:07:25.000Z | 2020-05-01T19:07:00.000Z | src/tests/numerics/test_fvm_nabla_validation.cc | pmarguinaud/atlas | 7e0a1251685e07a5dcccc84f4d9251d5a066e2ee | [
"Apache-2.0"
] | null | null | null | src/tests/numerics/test_fvm_nabla_validation.cc | pmarguinaud/atlas | 7e0a1251685e07a5dcccc84f4d9251d5a066e2ee | [
"Apache-2.0"
] | null | null | null | /*
* (C) Copyright 2013 ECMWF.
*
* 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.
* In applying this licence, ECMWF does not waive the privileges and immunities
* granted to it by virtue of its status as an intergo... | 37.887574 | 118 | 0.559972 | wdeconinck |
c0e6c3ab3b5ff7369e7cd7df4378d65641c6d183 | 1,522 | hpp | C++ | include/xtd/wrapped_type.hpp | djmott/xtl | cadb963a3d1ad292033f08f4754c545066be75f7 | [
"BSL-1.0"
] | 6 | 2016-06-30T11:23:33.000Z | 2019-10-22T13:09:49.000Z | include/xtd/wrapped_type.hpp | djmott/xtl | cadb963a3d1ad292033f08f4754c545066be75f7 | [
"BSL-1.0"
] | null | null | null | include/xtd/wrapped_type.hpp | djmott/xtl | cadb963a3d1ad292033f08f4754c545066be75f7 | [
"BSL-1.0"
] | 4 | 2016-07-24T10:38:43.000Z | 2021-04-02T11:18:09.000Z | /** @file
* wraps a type in a class for compiler type deductive distinction
* @copyright David Mott (c) 2016. Distributed under the Boost Software License Version 1.0. See LICENSE.md or http://boost.org/LICENSE_1_0.txt for details.
*/
#pragma once
namespace xtd {
#define WRAPPED(_type) xtd::wrapped<_type, __C... | 29.843137 | 156 | 0.630092 | djmott |
c0ebf25c626bacc9378ff2cebfc441db711850ee | 633 | cpp | C++ | arch/m68k/m68k_isa.cpp | ismaell/libcpu | 3a82a1ab0b99e439e6fbcafca71e9d3d7fe06b12 | [
"BSD-2-Clause"
] | 277 | 2015-01-04T23:33:37.000Z | 2022-03-24T20:38:51.000Z | arch/m68k/m68k_isa.cpp | farmdve/libcpu | d624f5863f49b059726bce83e4da944ed4b4764c | [
"BSD-2-Clause"
] | 7 | 2015-02-18T12:41:18.000Z | 2021-08-21T14:07:53.000Z | arch/m68k/m68k_isa.cpp | farmdve/libcpu | d624f5863f49b059726bce83e4da944ed4b4764c | [
"BSD-2-Clause"
] | 44 | 2015-02-03T09:08:14.000Z | 2022-03-14T16:35:31.000Z | #include "m68k_isa.h"
const char sizechar[] = { '?', 'b', 'l', 'w' };
const char *condstr[] = {
/*[0]*/ "ra",
/*[1]*/ "sr", // 68030?
/*[2]*/ "hi",
/*[3]*/ "ls",
/*[4]*/ "cc",
/*[5]*/ "cs",
/*[6]*/ "ne",
/*[7]*/ "eq",
/*[8]*/ "vc",
/*[9]*/ "vs",
/*[10]*/ "pl",
/*[11]*/ "mi",
/*[12]*/ "ge",
/*[13]*/ "lt"... | 14.72093 | 47 | 0.28752 | ismaell |
c0ecdbbab19f7b8861f0406f0fed157d4ae24848 | 2,557 | cpp | C++ | ural/1901.cpp | jffifa/algo-solution | af2400d6071ee8f777f9473d6a34698ceef08355 | [
"MIT"
] | 5 | 2015-07-14T10:29:25.000Z | 2016-10-11T12:45:18.000Z | ural/1901.cpp | jffifa/algo-solution | af2400d6071ee8f777f9473d6a34698ceef08355 | [
"MIT"
] | null | null | null | ural/1901.cpp | jffifa/algo-solution | af2400d6071ee8f777f9473d6a34698ceef08355 | [
"MIT"
] | 3 | 2016-08-23T01:05:26.000Z | 2017-05-28T02:04:20.000Z | #include<cstdio>
#include<iostream>
#include<cstdlib>
#include<algorithm>
#include<vector>
#include<map>
#include<set>
#include<queue>
#include<stack>
#include<cstring>
#include<string>
#include<ctime>
#include<cmath>
using namespace std;
typedef long long ll;
multiset<int> S;
int n,m;
int a[120000];
int b[120000];
bo... | 23.036036 | 65 | 0.332421 | jffifa |
c0ee95d13b958a8311145cd416d1753cf104af42 | 12,504 | cpp | C++ | object_detection/haar_detection.cpp | dustsigns/lecture-demos | 50d5abb252e7e467e9648b61310ce93b85c6c5f0 | [
"BSD-3-Clause"
] | 14 | 2018-03-26T13:43:58.000Z | 2022-03-03T13:04:36.000Z | object_detection/haar_detection.cpp | dustsigns/lecture-demos | 50d5abb252e7e467e9648b61310ce93b85c6c5f0 | [
"BSD-3-Clause"
] | null | null | null | object_detection/haar_detection.cpp | dustsigns/lecture-demos | 50d5abb252e7e467e9648b61310ce93b85c6c5f0 | [
"BSD-3-Clause"
] | 1 | 2019-08-03T23:12:08.000Z | 2019-08-03T23:12:08.000Z | //Illustration of Haar features for object detection
// Andreas Unterweger, 2017-2022
//This code is licensed under the 3-Clause BSD License. See LICENSE file for details.
#include <iostream>
#include <limits>
#include <atomic>
#include <opencv2/core.hpp>
#include <opencv2/highgui.hpp>
#include <opencv2/imgproc.hpp>
... | 48.465116 | 228 | 0.646673 | dustsigns |
c0ef885aa2104d510a2717b2c41affc74db88100 | 734 | cpp | C++ | Example/Source/Main.cpp | eugen-bondarev/AssetSupplier | 90e3d3e5fd7890c945dfc1975e7767d87221e53f | [
"MIT"
] | null | null | null | Example/Source/Main.cpp | eugen-bondarev/AssetSupplier | 90e3d3e5fd7890c945dfc1975e7767d87221e53f | [
"MIT"
] | null | null | null | Example/Source/Main.cpp | eugen-bondarev/AssetSupplier | 90e3d3e5fd7890c945dfc1975e7767d87221e53f | [
"MIT"
] | null | null | null | #include <SRM/SRM.h>
#ifndef EXAMPLE_ROOT_DIR
# define EXAMPLE_ROOT_DIR
#endif
int main(const int argc, const char* argv[])
{
const srm::String root{ EXAMPLE_ROOT_DIR "/Assets" };
srm::ResourceManager resourceManager{
root,
"table.asu",
"data.asu",
srm::ResourceManager::Mode::Create
};
srm::Resourc... | 17.902439 | 64 | 0.651226 | eugen-bondarev |
c0f21a781ccc0dd88313ea39ebb33c5485bd0b6b | 427 | cpp | C++ | legend/legend/App.cpp | Sathorael/legendary-computing-machine | 34273b6e50edb9211f11488d247df74aef56448a | [
"MIT"
] | null | null | null | legend/legend/App.cpp | Sathorael/legendary-computing-machine | 34273b6e50edb9211f11488d247df74aef56448a | [
"MIT"
] | null | null | null | legend/legend/App.cpp | Sathorael/legendary-computing-machine | 34273b6e50edb9211f11488d247df74aef56448a | [
"MIT"
] | 1 | 2019-05-28T18:32:30.000Z | 2019-05-28T18:32:30.000Z | #include "App.h"
#include "SDL\SDL.h"
#include "Window.h"
App::App()
{
}
App::~App()
{
}
void App::run()
{
bool running = true;
SDL_Event e;
Window* window = new Window();
window->init();
while (running)
{
// Handle events in queue
while (SDL_PollEvent(&e) != 0)
{
// Quit if the user requests it... | 10.414634 | 36 | 0.559719 | Sathorael |
c0f21db838e35070a41786bf0221e8599672e95f | 3,836 | cc | C++ | src/server/server_unix_socket.cc | kofuk/pixel-terrain | f39e2a0120aab5a11311f57cfd1ab46efa65fddd | [
"MIT"
] | 2 | 2020-10-16T08:46:45.000Z | 2020-11-04T02:19:19.000Z | src/server/server_unix_socket.cc | kofuk/minecraft-image-generator | ef2f7deb2daac7f7c2cfb468ef39e0cdc8b33db7 | [
"MIT"
] | null | null | null | src/server/server_unix_socket.cc | kofuk/minecraft-image-generator | ef2f7deb2daac7f7c2cfb468ef39e0cdc8b33db7 | [
"MIT"
] | null | null | null | // SPDX-License-Identifier: MIT
#include <csignal>
#include <cstring>
#include <iostream>
#include <mutex>
#include <sys/socket.h>
#include <sys/stat.h>
#include <sys/types.h>
#include <sys/un.h>
#include <sys/wait.h>
#include <unistd.h>
#include "server/reader.hh"
#include "server/reader_unix.hh"
#include "server/r... | 26.638889 | 79 | 0.486184 | kofuk |
c0f4d5e77c83ae6a7e9d85781c216756d877646c | 4,789 | cpp | C++ | src/rtplugins/SuperSampleAdaptiveRenderer.cpp | potato3d/rtrt2 | 5c135c1aea0ded2898e16220cec5ed2860dcc9b3 | [
"MIT"
] | 1 | 2021-11-06T06:13:05.000Z | 2021-11-06T06:13:05.000Z | src/rtplugins/SuperSampleAdaptiveRenderer.cpp | potato3d/rtrt2 | 5c135c1aea0ded2898e16220cec5ed2860dcc9b3 | [
"MIT"
] | null | null | null | src/rtplugins/SuperSampleAdaptiveRenderer.cpp | potato3d/rtrt2 | 5c135c1aea0ded2898e16220cec5ed2860dcc9b3 | [
"MIT"
] | null | null | null | #include <rtp/SuperSampleAdaptiveRenderer.h>
#include <rt/Context.h>
#include <rti/ICamera.h>
#include <vr/random.h>
#include <omp.h>
using namespace rtp;
SuperSampleAdaptiveRenderer::SuperSampleAdaptiveRenderer()
{
vr::Random::autoSeed();
_epsilon = 0.01f;
_maxRecursionDepth = 3;
}
void SuperSampleAdaptiveRender... | 34.207143 | 120 | 0.647108 | potato3d |
c0f841ff3bfcf22e1244e3fc2bfd9b3193a62b29 | 367 | cpp | C++ | src/jitcat/TypeInfoDeleter.cpp | Zueuk/JitCat | 04eb77a9acf6f8b36689c0aabcb6d68edd28f0fc | [
"MIT"
] | 14 | 2019-03-16T07:00:44.000Z | 2021-10-20T23:36:51.000Z | src/jitcat/TypeInfoDeleter.cpp | Zueuk/JitCat | 04eb77a9acf6f8b36689c0aabcb6d68edd28f0fc | [
"MIT"
] | 13 | 2019-11-22T12:43:55.000Z | 2020-05-25T13:09:08.000Z | src/jitcat/TypeInfoDeleter.cpp | Zueuk/JitCat | 04eb77a9acf6f8b36689c0aabcb6d68edd28f0fc | [
"MIT"
] | 1 | 2019-11-23T17:59:58.000Z | 2019-11-23T17:59:58.000Z | /*
This file is part of the JitCat library.
Copyright (C) Machiel van Hooren 2020
Distributed under the MIT License (license terms are at http://opensource.org/licenses/MIT).
*/
#include "jitcat/TypeInfoDeleter.h"
#include "jitcat/TypeInfo.h"
void jitcat::Reflection::TypeInfoDeleter::operator()(TypeInfo* typ... | 22.9375 | 94 | 0.746594 | Zueuk |
c0f94c1d95812e041af5802cf0bc130c2bb8c249 | 1,635 | cpp | C++ | Chapter_03/sample6.cpp | expoli/Learn-OpenCV-4-By-Building-Projects-Second-Edition | f0288b6a303923da100393b60b79f8eaf3a03165 | [
"MIT"
] | 1 | 2020-07-30T10:30:29.000Z | 2020-07-30T10:30:29.000Z | Chapter_03/sample6.cpp | expoli/Learn-OpenCV-4-By-Building-Projects-Second-Edition | f0288b6a303923da100393b60b79f8eaf3a03165 | [
"MIT"
] | null | null | null | Chapter_03/sample6.cpp | expoli/Learn-OpenCV-4-By-Building-Projects-Second-Edition | f0288b6a303923da100393b60b79f8eaf3a03165 | [
"MIT"
] | null | null | null | #include <opencv2/viz.hpp>
#include <opencv2/calib3d.hpp>
#include <iostream>
using namespace cv;
using namespace std;
/*
* @function main
*/
int main() {
/// Create a window
viz::Viz3d myWindow("Coordinate Frame");
/// Add coordinate axes
myWindow.showWidget("Coordinate Widget", viz::WCoordinateSy... | 29.196429 | 102 | 0.620795 | expoli |
c0fb9efba1193e769ef84210ae216e8c50113513 | 844 | hpp | C++ | src/main/include/StarDust/file/ConfigParser.hpp | 4H-Botsmiths/InfiniteRecharge2020 | 811d71a49a50f38f44dcc7139786caaeaa99f739 | [
"BSD-3-Clause"
] | null | null | null | src/main/include/StarDust/file/ConfigParser.hpp | 4H-Botsmiths/InfiniteRecharge2020 | 811d71a49a50f38f44dcc7139786caaeaa99f739 | [
"BSD-3-Clause"
] | 1 | 2021-12-27T04:40:42.000Z | 2021-12-27T04:40:42.000Z | src/main/include/StarDust/file/ConfigParser.hpp | 4H-Botsmiths/InfiniteRecharge2020 | 811d71a49a50f38f44dcc7139786caaeaa99f739 | [
"BSD-3-Clause"
] | null | null | null | #pragma once
#include <iostream>
#include <vector>
#include <memory>
#include <string>
#include "StarDust\core\StarDustComponent.hpp"
#include "StarDust\file\ParserParamBase.hpp"
#include "StarDust\file\ParserParam.hpp"
#define CONFIG_FILE_PATH "/home/lvuser/config.dat"
class ConfigParser : public Star... | 27.225806 | 82 | 0.722749 | 4H-Botsmiths |
8d0634b3b1f3d755352f283a3da9cd691f7b4425 | 2,011 | hpp | C++ | include/psinc/handlers/helpers/Filter.hpp | emergent-design/libpsinc | 8a30ebc2838d205b214e5f2e523b6bf558b0a41e | [
"MIT"
] | 2 | 2017-02-28T11:27:38.000Z | 2019-01-23T06:10:49.000Z | include/psinc/handlers/helpers/Filter.hpp | emergent-design/libpsinc | 8a30ebc2838d205b214e5f2e523b6bf558b0a41e | [
"MIT"
] | 6 | 2015-06-26T13:01:49.000Z | 2020-07-31T15:08:55.000Z | include/psinc/handlers/helpers/Filter.hpp | emergent-design/libpsinc | 8a30ebc2838d205b214e5f2e523b6bf558b0a41e | [
"MIT"
] | 1 | 2017-02-28T10:55:30.000Z | 2017-02-28T10:55:30.000Z | #pragma once
#include <emergent/Maths.hpp>
#include <emergent/image/Image.hpp>
namespace psinc
{
class Filter
{
public:
enum Mode
{
Disabled,
RowOffset, // Adjust brightness of specific rows by a fixed offset
RowGain // Adjust brightness of specific rows by a gain multiplier
};
struct ... | 28.728571 | 145 | 0.637991 | emergent-design |
8d0b5e39b44128a906a78b45bce4c9f8933b89f4 | 830 | cpp | C++ | platform/OSP/JS/Web/src/JSServletExecutorCache.cpp | gboyraz/macchina.io | 3e26fea95e87512459693831242b297f0780cc21 | [
"Apache-2.0"
] | 2 | 2020-11-23T23:37:00.000Z | 2020-12-22T04:02:41.000Z | platform/OSP/JS/Web/src/JSServletExecutorCache.cpp | bas524/cmake.macchina.io | 22a21d78f8075fd145b788b41a23603591e91c9f | [
"Apache-2.0"
] | null | null | null | platform/OSP/JS/Web/src/JSServletExecutorCache.cpp | bas524/cmake.macchina.io | 22a21d78f8075fd145b788b41a23603591e91c9f | [
"Apache-2.0"
] | 1 | 2020-11-23T23:37:09.000Z | 2020-11-23T23:37:09.000Z | //
// JSServletExecutorCache.cpp
//
// Copyright (c) 2016, Applied Informatics Software Engineering GmbH.
// and Contributors.
//
// SPDX-License-Identifier: Apache-2.0
//
#include "JSServletExecutorCache.h"
#include "Poco/SingletonHolder.h"
namespace Poco {
namespace OSP {
namespace JS {
namespace Web {
//
// JS... | 14.821429 | 83 | 0.745783 | gboyraz |
8d0b96f3958c3e97495049259b1da3186b50642a | 7,013 | cpp | C++ | abcg/abcg_image.cpp | guiarqueiro/entrega3 | 48d7d9828b44f232b51044269a4164056fbe95b8 | [
"MIT"
] | 11 | 2021-03-23T00:06:20.000Z | 2021-10-02T22:13:37.000Z | abcg/abcg_image.cpp | guiarqueiro/entrega3 | 48d7d9828b44f232b51044269a4164056fbe95b8 | [
"MIT"
] | 2 | 2021-03-11T23:31:39.000Z | 2021-10-04T22:21:57.000Z | abcg/abcg_image.cpp | guiarqueiro/entrega3 | 48d7d9828b44f232b51044269a4164056fbe95b8 | [
"MIT"
] | 101 | 2021-02-08T18:48:02.000Z | 2022-03-16T03:51:09.000Z | /**
* @file abcg_image.cpp
* @brief Definition of texture loading helper functions.
*
* This project is released under the MIT License.
*/
#include "abcg_image.hpp"
#include <fmt/core.h>
#include <cppitertools/itertools.hpp>
#include <fstream>
#include <gsl/gsl>
#include <span>
#include <vector>
#include "SDL_... | 34.377451 | 80 | 0.67988 | guiarqueiro |
8d10dad0aa7ca5f8ea463a773574078df5b9e9ad | 5,235 | hpp | C++ | include/SSVOpenHexagon/Global/Config.hpp | AlphaPromethium/SSVOpenHexagon | f9e15e9397d6188e3dced97da97d5c6e2de4186a | [
"AFL-3.0"
] | null | null | null | include/SSVOpenHexagon/Global/Config.hpp | AlphaPromethium/SSVOpenHexagon | f9e15e9397d6188e3dced97da97d5c6e2de4186a | [
"AFL-3.0"
] | null | null | null | include/SSVOpenHexagon/Global/Config.hpp | AlphaPromethium/SSVOpenHexagon | f9e15e9397d6188e3dced97da97d5c6e2de4186a | [
"AFL-3.0"
] | null | null | null | // Copyright (c) 2013-2020 Vittorio Romeo
// License: Academic Free License ("AFL") v. 3.0
// AFL License page: http://opensource.org/licenses/AFL-3.0
#pragma once
#include <vector>
#include <string>
namespace ssvs
{
class GameWindow;
} // namespace ssvs
namespace ssvs::Input
{
class Trigger;
} // namespace ssvs::I... | 34.668874 | 74 | 0.762751 | AlphaPromethium |
8d148b40414b0e2292a3fc9ef685f0d63a0d7cfc | 9,383 | hpp | C++ | far/uuids.far.dialogs.hpp | skipik/FarManager | 0080534fd8b8246b31f9587d8e15fe313849e801 | [
"BSD-3-Clause"
] | null | null | null | far/uuids.far.dialogs.hpp | skipik/FarManager | 0080534fd8b8246b31f9587d8e15fe313849e801 | [
"BSD-3-Clause"
] | null | null | null | far/uuids.far.dialogs.hpp | skipik/FarManager | 0080534fd8b8246b31f9587d8e15fe313849e801 | [
"BSD-3-Clause"
] | null | null | null | #ifndef UUIDS_FAR_DIALOGS_HPP_760BACF0_E0D8_4C67_A732_5C075A1CC176
#define UUIDS_FAR_DIALOGS_HPP_760BACF0_E0D8_4C67_A732_5C075A1CC176
#pragma once
/*
uuids.far.dialogs.hpp
UUIDs of common dialogs
*/
/*
Copyright © 2010 Far Group
All rights reserved.
Redistribution and use in source and binary forms, with or without... | 62.553333 | 81 | 0.688905 | skipik |
8d14c8506388bf847a1dd3203ede096ac4aa2f20 | 6,671 | cc | C++ | server/core/maxpasswd.cc | Daniel-Xu/MaxScale | 35d12c0c9b75c4571dbbeb983c740de098661de6 | [
"BSD-3-Clause"
] | null | null | null | server/core/maxpasswd.cc | Daniel-Xu/MaxScale | 35d12c0c9b75c4571dbbeb983c740de098661de6 | [
"BSD-3-Clause"
] | null | null | null | server/core/maxpasswd.cc | Daniel-Xu/MaxScale | 35d12c0c9b75c4571dbbeb983c740de098661de6 | [
"BSD-3-Clause"
] | null | null | null | /*
* Copyright (c) 2016 MariaDB Corporation Ab
*
* Use of this software is governed by the Business Source License included
* in the LICENSE.TXT file and at www.mariadb.com/bsl11.
*
* Change Date: 2025-04-28
*
* On the date above, in accordance with the Business Source License, use
* of this software will be g... | 24.258182 | 88 | 0.519412 | Daniel-Xu |
8d16fababc5043fac3767090f8c0966ed4bd9480 | 6,194 | cpp | C++ | cpp/template/template.cpp | HieuuuLeee/WorldFinal | ea1b1e697e6e7987018a5a79402d1a2659270591 | [
"MIT"
] | null | null | null | cpp/template/template.cpp | HieuuuLeee/WorldFinal | ea1b1e697e6e7987018a5a79402d1a2659270591 | [
"MIT"
] | null | null | null | cpp/template/template.cpp | HieuuuLeee/WorldFinal | ea1b1e697e6e7987018a5a79402d1a2659270591 | [
"MIT"
] | null | null | null | #include<bits/stdc++.h>
using namespace std;
#define fi first
#define se second
#define pb push_back
#define pf push_front
#define pp push
#define et empty
#define mp make_pair
#define For(i,a,b) for (int i=a;i<=b;i++)
#define Fod(i,b,a) for (int i=b;i>=a;i--)
#define Forl(i,a,b) for (ll i=a;i<=b;i++)
#define Fodl(i,... | 26.583691 | 160 | 0.45092 | HieuuuLeee |
8d17a9708f7d382445bdde2d7b06c3fbb2d322ae | 347 | cpp | C++ | test/compute/Main.cpp | craft095/sere | b7ce9aafe5390a0bf48ade7ebe0a1a09bf0396b9 | [
"MIT"
] | null | null | null | test/compute/Main.cpp | craft095/sere | b7ce9aafe5390a0bf48ade7ebe0a1a09bf0396b9 | [
"MIT"
] | null | null | null | test/compute/Main.cpp | craft095/sere | b7ce9aafe5390a0bf48ade7ebe0a1a09bf0396b9 | [
"MIT"
] | null | null | null | #ifdef GTEST
#include "gtest/gtest.h"
#endif
#define CATCH_CONFIG_RUNNER
#include "catch2/catch.hpp"
int main(int argc, char **argv) {
#ifdef GTEST
::testing::InitGoogleTest(&argc, argv);
int result = RUN_ALL_TESTS();
if (result != 0) {
return result;
}
#endif
int result = Catch::Session().run( argc, a... | 16.52381 | 50 | 0.668588 | craft095 |
8d180d3c6da645841f0beecc34ec1e85de2879dc | 18,738 | hpp | C++ | examples/experimental/nvshmem/matrix/grb_util.hpp | ge49nuk/BCLmatrix | f04368cc88ff9b2b652a403c69075a036b2b5586 | [
"BSD-3-Clause"
] | null | null | null | examples/experimental/nvshmem/matrix/grb_util.hpp | ge49nuk/BCLmatrix | f04368cc88ff9b2b652a403c69075a036b2b5586 | [
"BSD-3-Clause"
] | 1 | 2021-05-21T20:27:02.000Z | 2021-05-21T21:54:46.000Z | examples/experimental/nvshmem/matrix/grb_util.hpp | ge49nuk/BCLmatrix | f04368cc88ff9b2b652a403c69075a036b2b5586 | [
"BSD-3-Clause"
] | null | null | null | #pragma once
#include <matrix_sum.cuh>
namespace BCL {
template <typename T>
struct max {
T operator()(const T& a, const T& b) const {
if (a < b) {
return b;
} else {
return a;
}
}
};
template <typename T>
struct min {
T operator()(const T& a, const T& b) const {
if (a < b) {
... | 33.223404 | 126 | 0.631871 | ge49nuk |
8d1a59c4632d463f2ba79946c7d246130b41d12c | 57,743 | cpp | C++ | fsck/source/modes/ModeCheckFS.cpp | TomatoYoung/beegfs | edf287940175ecded493183209719d2d90d45374 | [
"BSD-3-Clause"
] | null | null | null | fsck/source/modes/ModeCheckFS.cpp | TomatoYoung/beegfs | edf287940175ecded493183209719d2d90d45374 | [
"BSD-3-Clause"
] | null | null | null | fsck/source/modes/ModeCheckFS.cpp | TomatoYoung/beegfs | edf287940175ecded493183209719d2d90d45374 | [
"BSD-3-Clause"
] | null | null | null | #include "ModeCheckFS.h"
#include <common/toolkit/DisposalCleaner.h>
#include <common/toolkit/ListTk.h>
#include <common/toolkit/UnitTk.h>
#include <common/toolkit/UiTk.h>
#include <common/toolkit/ZipIterator.h>
#include <components/DataFetcher.h>
#include <components/worker/RetrieveChunksWork.h>
#include <net/msghelp... | 33.319677 | 108 | 0.667423 | TomatoYoung |
8d1a7ec064dc8cea90086e0320845f0c256f8aa0 | 371 | cpp | C++ | LeetCode/Problems/Algorithms/#848_ShiftingLetters_sol2_suffix_sum_O(N)_time_O(1)_extra_space_193ms_68MB.cpp | Tudor67/Competitive-Programming | ae4dc6ed8bf76451775bf4f740c16394913f3ff1 | [
"MIT"
] | 1 | 2022-01-26T14:50:07.000Z | 2022-01-26T14:50:07.000Z | LeetCode/Problems/Algorithms/#848_ShiftingLetters_sol2_suffix_sum_O(N)_time_O(1)_extra_space_193ms_68MB.cpp | Tudor67/Competitive-Programming | ae4dc6ed8bf76451775bf4f740c16394913f3ff1 | [
"MIT"
] | null | null | null | LeetCode/Problems/Algorithms/#848_ShiftingLetters_sol2_suffix_sum_O(N)_time_O(1)_extra_space_193ms_68MB.cpp | Tudor67/Competitive-Programming | ae4dc6ed8bf76451775bf4f740c16394913f3ff1 | [
"MIT"
] | null | null | null | class Solution {
public:
string shiftingLetters(string s, vector<int>& shifts) {
const int N = shifts.size();
int suffixShifts = 0;
for(int i = N - 1; i >= 0; --i){
suffixShifts += shifts[i];
suffixShifts %= 26;
s[i] = 'a' + (s[i] - 'a' + suffixShi... | 28.538462 | 60 | 0.455526 | Tudor67 |
8d1e0ee582941eb03c4ad82eaea4a2f8c1bebe61 | 1,391 | cpp | C++ | BeanDogEngine/cVortex.cpp | RoyFilipchuk56/BeanDogEngine | 189ff606b1568b8c2228602b545767bb827d3065 | [
"MIT"
] | null | null | null | BeanDogEngine/cVortex.cpp | RoyFilipchuk56/BeanDogEngine | 189ff606b1568b8c2228602b545767bb827d3065 | [
"MIT"
] | null | null | null | BeanDogEngine/cVortex.cpp | RoyFilipchuk56/BeanDogEngine | 189ff606b1568b8c2228602b545767bb827d3065 | [
"MIT"
] | null | null | null | #include "cFirework.h"
namespace nPhysics
{
cVortex::cVortex(float mass, const glm::vec3& position) : cFirework(mass, position)
{
}
cVortex::~cVortex()
{
}
void cVortex::GenerateChildren(std::vector<cFirework*>& childrenOut, glm::vec3 location)
{
//Genereate 50 new stage 2 particles
for (int i = 0; i < 5... | 20.455882 | 89 | 0.640546 | RoyFilipchuk56 |
8d22fb1052419774d27b3cbb4147b5040b5933f1 | 35,544 | cpp | C++ | src/superscalar.cpp | Teredic/DefyX | 5d71a3e8076e850acfeb18ec3612a2ec2a5b1308 | [
"BSD-3-Clause"
] | 2 | 2020-01-04T02:35:40.000Z | 2021-11-29T19:11:27.000Z | src/superscalar.cpp | Teredic/DefyX | 5d71a3e8076e850acfeb18ec3612a2ec2a5b1308 | [
"BSD-3-Clause"
] | null | null | null | src/superscalar.cpp | Teredic/DefyX | 5d71a3e8076e850acfeb18ec3612a2ec2a5b1308 | [
"BSD-3-Clause"
] | 2 | 2019-07-30T18:40:07.000Z | 2019-12-22T11:01:13.000Z | /*
Copyright (c) 2018-2019, tevador <tevador@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:
* Redistributions of source code must retain the above copyright
notice, this list of conditio... | 39.581292 | 381 | 0.71064 | Teredic |
8d23bd7fec398c47e83030a985c02a77263b4609 | 390 | cpp | C++ | all/native/datasources/components/VectorData.cpp | JianYT/mobile-sdk | 1835603e6cb7994222fea681928dc90055816628 | [
"BSD-3-Clause"
] | 155 | 2016-10-20T08:39:13.000Z | 2022-02-27T14:08:32.000Z | all/native/datasources/components/VectorData.cpp | JianYT/mobile-sdk | 1835603e6cb7994222fea681928dc90055816628 | [
"BSD-3-Clause"
] | 448 | 2016-10-20T12:33:06.000Z | 2022-03-22T14:42:58.000Z | all/native/datasources/components/VectorData.cpp | JianYT/mobile-sdk | 1835603e6cb7994222fea681928dc90055816628 | [
"BSD-3-Clause"
] | 64 | 2016-12-05T16:04:31.000Z | 2022-02-07T09:36:22.000Z | #include "VectorData.h"
#include "vectorelements/VectorElement.h"
namespace carto {
VectorData::VectorData(std::vector<std::shared_ptr<VectorElement> > elements) :
_elements(std::move(elements))
{
}
VectorData::~VectorData() {
}
const std::vector<std::shared_ptr<VectorElement> >&... | 20.526316 | 89 | 0.653846 | JianYT |
8d306544728dd80129b583599067b3b815bd7faf | 11,675 | cpp | C++ | src/gateway/ocg_bss/virtual_ocg/ocg_encoder.cpp | liutongwei/ft | c75c1ea6b4e53128248113f9810b997d2f7ff236 | [
"MIT"
] | null | null | null | src/gateway/ocg_bss/virtual_ocg/ocg_encoder.cpp | liutongwei/ft | c75c1ea6b4e53128248113f9810b997d2f7ff236 | [
"MIT"
] | null | null | null | src/gateway/ocg_bss/virtual_ocg/ocg_encoder.cpp | liutongwei/ft | c75c1ea6b4e53128248113f9810b997d2f7ff236 | [
"MIT"
] | null | null | null | // Copyright [2020] <Copyright Kevin, kevin.lau.gd@gmail.com>
#include "virtual_ocg/ocg_encoder.h"
using namespace ft::bss;
void OcgEncoder::encode_msg(const ExecutionReport& report, MsgBuffer* buffer) {
buffer->size = 0;
cur_msg_buf_ = buffer;
auto header = encode_header(EXECUTION_REPORT);
header->body_fiel... | 32.34072 | 79 | 0.719572 | liutongwei |
8d31fe997730fd6090d6480468af8a0edfcd27e4 | 4,788 | cpp | C++ | GerchbergSaxton/test.cpp | daelsepara/hipSLM | bb85cc24413e2bb7517b85e9cca45dd42fd2baf7 | [
"MIT"
] | 1 | 2021-08-30T15:26:22.000Z | 2021-08-30T15:26:22.000Z | GerchbergSaxton/test.cpp | daelsepara/hipSLM | bb85cc24413e2bb7517b85e9cca45dd42fd2baf7 | [
"MIT"
] | 1 | 2021-09-30T19:23:14.000Z | 2021-09-30T19:23:22.000Z | GerchbergSaxton/test.cpp | daelsepara/hipSLM | bb85cc24413e2bb7517b85e9cca45dd42fd2baf7 | [
"MIT"
] | null | null | null | #define _USE_MATH_DEFINES
#include "../Includes/lodepng.h"
#include <algorithm>
#include <cmath>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <dlfcn.h>
#include <stdexcept>
#ifndef M_PI
#define M_PI 3.14159265358979323846
#endif // !M_PI
#undef min
#undef max
// Allocate double array on host
dou... | 19.703704 | 146 | 0.606099 | daelsepara |
8d33cce301e5c6bec2ee950e812d8b47ca6892c8 | 12,594 | cpp | C++ | test/window/comoment_suite.cpp | breese/trial.online | d28f8025082682ce10d9eb97c63ed0d4e62c7511 | [
"BSL-1.0"
] | 6 | 2017-11-19T15:12:33.000Z | 2021-12-18T08:21:45.000Z | test/window/comoment_suite.cpp | breese/trial.online | d28f8025082682ce10d9eb97c63ed0d4e62c7511 | [
"BSL-1.0"
] | 1 | 2019-02-20T11:28:49.000Z | 2019-02-20T11:28:49.000Z | test/window/comoment_suite.cpp | breese/trial.online | d28f8025082682ce10d9eb97c63ed0d4e62c7511 | [
"BSL-1.0"
] | 2 | 2019-02-19T16:00:03.000Z | 2020-10-29T08:26:44.000Z | ///////////////////////////////////////////////////////////////////////////////
//
// Copyright (C) 2018 Bjorn Reese <breese@users.sourceforge.net>
//
// 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)
/... | 33.31746 | 93 | 0.607035 | breese |
8d34c7bae19e7362e8219977ccad3b3ffe386c1c | 468 | cpp | C++ | map/extra features.cpp | FirdausJawed/DSA | caf72a4606746009bc4616bfe11cdcb6ca103dcd | [
"MIT"
] | 2 | 2021-08-31T11:20:29.000Z | 2021-09-05T10:51:36.000Z | map/extra features.cpp | FirdausJawed/DSA | caf72a4606746009bc4616bfe11cdcb6ca103dcd | [
"MIT"
] | null | null | null | map/extra features.cpp | FirdausJawed/DSA | caf72a4606746009bc4616bfe11cdcb6ca103dcd | [
"MIT"
] | 1 | 2021-09-01T14:30:49.000Z | 2021-09-01T14:30:49.000Z | #include<bits/stdc++.h>
using namespace std;
void print (map<int,string>&m){
cout<<m.size()<<endl;
for(auto pr:m){
cout<<pr.first<<" "<<pr.second<<endl;
}
}
int main(){
map<int,string>m;
m[1]="fj";
m[5]="fird";
m[3]="muskan";
m[2]="tgb";
m[7]="firdaus";
m.insert({4,"the great fj"});
int x;... | 14.625 | 45 | 0.510684 | FirdausJawed |
8d3983fdcc301d428f164a2773dacad7b52f6844 | 742 | hpp | C++ | src/hash_map.hpp | ecnerwala/cp-book | 89ba206e1d65ab48819d956d76073057fb43434e | [
"CC0-1.0"
] | 351 | 2019-11-26T14:56:22.000Z | 2022-03-30T10:40:13.000Z | src/hash_map.hpp | Mastermind-git/cp-book | 53d97ec192a60e2956c2b4fbe17840ab74c066d6 | [
"CC0-1.0"
] | 8 | 2019-12-24T21:37:19.000Z | 2021-05-17T07:33:55.000Z | src/hash_map.hpp | Mastermind-git/cp-book | 53d97ec192a60e2956c2b4fbe17840ab74c066d6 | [
"CC0-1.0"
] | 57 | 2020-04-28T09:20:17.000Z | 2022-02-13T09:35:31.000Z | #pragma once
#include<bits/stdc++.h>
#include<bits/extc++.h>
struct splitmix64_hash {
static uint64_t splitmix64(uint64_t x) {
// http://xorshift.di.unimi.it/splitmix64.c
x += 0x9e3779b97f4a7c15;
x = (x ^ (x >> 30)) * 0xbf58476d1ce4e5b9;
x = (x ^ (x >> 27)) * 0x94d049bb133111eb;
return x ^ (x >> 31);
}
... | 28.538462 | 99 | 0.700809 | ecnerwala |
8d3d220db6678fa822eb0358f6a79288b9a21f3f | 624 | cpp | C++ | Nmeetings.cpp | KaranKaira/Questions-Algorithms | c6416592d335be94656f3d58a01c972059d41528 | [
"MIT"
] | null | null | null | Nmeetings.cpp | KaranKaira/Questions-Algorithms | c6416592d335be94656f3d58a01c972059d41528 | [
"MIT"
] | null | null | null | Nmeetings.cpp | KaranKaira/Questions-Algorithms | c6416592d335be94656f3d58a01c972059d41528 | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
using namespace std;
struct job{
int st, end,ind;
};
bool comp(job a,job b)
{
return a.end < b.end;
}
int main() {
int t;cin>>t;while(t--)
{
int n;cin>>n;
job a[n];
for(int i=0;i<n;i++) cin>>a[i].st;
for(int i=0;i<n;i++) {cin>>a[i].end;a[i].ind... | 18.909091 | 60 | 0.375 | KaranKaira |
8d3d9425d2a317b010def452cc92830e97ca601e | 18,622 | cpp | C++ | Plugins/Main/mcplugin_main.cpp | alexanderoster/AutodeskMachineControlFramework | 17aec986c2cb3c9ea46bbe583bdc0e766e6f980b | [
"BSD-3-Clause"
] | null | null | null | Plugins/Main/mcplugin_main.cpp | alexanderoster/AutodeskMachineControlFramework | 17aec986c2cb3c9ea46bbe583bdc0e766e6f980b | [
"BSD-3-Clause"
] | null | null | null | Plugins/Main/mcplugin_main.cpp | alexanderoster/AutodeskMachineControlFramework | 17aec986c2cb3c9ea46bbe583bdc0e766e6f980b | [
"BSD-3-Clause"
] | null | null | null | /*++
Copyright (C) 2020 Autodesk 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 conditions and the follow... | 31.509306 | 136 | 0.619106 | alexanderoster |
8d408677d1cfba6b8bae0aa9395cf5ca37691f5c | 4,016 | cpp | C++ | 14.image_text_glut/text.cpp | JackeyLea/OpenGL_Freshman | d17468d7f2faf752c9a0ccb8f12a2ca4cb8e3a91 | [
"MIT"
] | 1 | 2022-02-08T01:24:50.000Z | 2022-02-08T01:24:50.000Z | 14.image_text_glut/text.cpp | JackeyLea/OpenGL_Beginner | d17468d7f2faf752c9a0ccb8f12a2ca4cb8e3a91 | [
"MIT"
] | null | null | null | 14.image_text_glut/text.cpp | JackeyLea/OpenGL_Beginner | d17468d7f2faf752c9a0ccb8f12a2ca4cb8e3a91 | [
"MIT"
] | null | null | null | ///
/// \note 加载字体并显示文字
///
#include <GL/gl.h>
#include <GL/glut.h>
#include <GL/glx.h>
#include <unistd.h>//延时
#include <cmath>
#include <iostream>
#include <string>
#include <cstring>
#define ESCAPE 27//esc键ASCII码值
int window; //glut窗口标识号
GLuint base;//字体集的基本显示列表
GLfloat cnt1;//用于移动文字和颜色的计数器
GL... | 23.213873 | 104 | 0.630976 | JackeyLea |
8d42dc7dba9c7cc3254acac2957982f28f1dec98 | 3,075 | cpp | C++ | src/game/localization.cpp | ftk/XXLDDRace | 68ae75092f4483f003e165d93e6334524015dfec | [
"Zlib"
] | 2 | 2015-04-23T16:38:41.000Z | 2016-05-24T00:59:25.000Z | src/game/localization.cpp | ftk/XXLDDRace | 68ae75092f4483f003e165d93e6334524015dfec | [
"Zlib"
] | null | null | null | src/game/localization.cpp | ftk/XXLDDRace | 68ae75092f4483f003e165d93e6334524015dfec | [
"Zlib"
] | 1 | 2019-10-21T23:12:12.000Z | 2019-10-21T23:12:12.000Z | /* (c) Magnus Auvinen. See licence.txt in the root of the distribution for more information. */
/* If you are missing that file, acquire a complete release at teeworlds.com. */
#include "localization.h"
#include <base/tl/algorithm.h>
#include <engine/shared/linereader.h>
#include <engine/console.h>
#in... | 23.837209 | 95 | 0.708618 | ftk |
1d26a58741cb817f07b0c97e73cfc5dc972dbd2f | 1,428 | cpp | C++ | BAC_2nd/ch6/UVa12657.cpp | Anyrainel/aoapc-code | e787a01380698fb9236d933462052f97b20e6132 | [
"Apache-2.0"
] | 3 | 2017-08-15T06:00:01.000Z | 2018-12-10T09:05:53.000Z | BAC_2nd/ch6/UVa12657.cpp | Anyrainel/aoapc-related-code | e787a01380698fb9236d933462052f97b20e6132 | [
"Apache-2.0"
] | null | null | null | BAC_2nd/ch6/UVa12657.cpp | Anyrainel/aoapc-related-code | e787a01380698fb9236d933462052f97b20e6132 | [
"Apache-2.0"
] | 2 | 2017-09-16T18:46:27.000Z | 2018-05-22T05:42:03.000Z | // UVa12657 Boxes in a Line
// Rujia Liu
#include<cstdio>
#include<algorithm>
using namespace std;
const int maxn = 100000 + 5;
int n, left[maxn], right[maxn];
inline void link(int L, int R) {
right[L] = R; left[R] = L;
}
int main() {
int m, kase = 0;
while(scanf("%d%d", &n, &m) == 2) {
for(int i = 1; i <=... | 24.20339 | 70 | 0.418768 | Anyrainel |
1d28926caaf9e51f33d11cdb62bc7da6eb24f800 | 919 | cpp | C++ | Day 03/day3.cpp | holaguz/AdventOfCode2021 | 349b7a33ab1128264dceb7aaf604030b0df842df | [
"Unlicense"
] | null | null | null | Day 03/day3.cpp | holaguz/AdventOfCode2021 | 349b7a33ab1128264dceb7aaf604030b0df842df | [
"Unlicense"
] | null | null | null | Day 03/day3.cpp | holaguz/AdventOfCode2021 | 349b7a33ab1128264dceb7aaf604030b0df842df | [
"Unlicense"
] | null | null | null | /* https://adventofcode.com/2021/day/3 */
#include <iostream>
#include <bitset>
#include <vector>
int main(){
int n;
int gamma = 0, epsilon = 0;
std::cin >> n;
std::vector<int> count(64);
std::vector<long long> input(n);
long long max = 0;
for(auto& v: input){
std::cin >> v;
... | 21.880952 | 57 | 0.425462 | holaguz |
1d2b2781fd183efc7741f9e3b155a1647c395c0c | 6,361 | cpp | C++ | src/discovery/window.cpp | amin-amani/QtNetDiscovery | cdc09ddd4813536c45944b388772f7afc8472d80 | [
"MIT"
] | null | null | null | src/discovery/window.cpp | amin-amani/QtNetDiscovery | cdc09ddd4813536c45944b388772f7afc8472d80 | [
"MIT"
] | null | null | null | src/discovery/window.cpp | amin-amani/QtNetDiscovery | cdc09ddd4813536c45944b388772f7afc8472d80 | [
"MIT"
] | null | null | null | /**************************************************************************************************
---------------------------------------------------------------------------------------------------
Copyright (C) 2015 Jonathan Bagg
This file is part of QtZeroConf.
QtZeroConf is free software: you can red... | 33.130208 | 130 | 0.617513 | amin-amani |
1d30a0ad65cde45076d2fd379cc9cab1a93619ae | 145 | cpp | C++ | Source/FSD/Private/SchematicSave.cpp | Dr-Turtle/DRG_ModPresetManager | abd7ff98a820969504491a1fe68cf2f9302410dc | [
"MIT"
] | 8 | 2021-07-10T20:06:05.000Z | 2022-03-04T19:03:50.000Z | Source/FSD/Private/SchematicSave.cpp | Dr-Turtle/DRG_ModPresetManager | abd7ff98a820969504491a1fe68cf2f9302410dc | [
"MIT"
] | 9 | 2022-01-13T20:49:44.000Z | 2022-03-27T22:56:48.000Z | Source/FSD/Private/SchematicSave.cpp | Dr-Turtle/DRG_ModPresetManager | abd7ff98a820969504491a1fe68cf2f9302410dc | [
"MIT"
] | 2 | 2021-07-10T20:05:42.000Z | 2022-03-14T17:05:35.000Z | #include "SchematicSave.h"
FSchematicSave::FSchematicSave() {
this->SkinFixupCounter = 0;
this->bFirstSchematicMessageShown = false;
}
| 18.125 | 46 | 0.731034 | Dr-Turtle |
1d31480315eafacec7b9f2a2c70652e55b7f128c | 544 | cpp | C++ | OGMM/gui/MenuItem.cpp | Moneyl/OGMM | 52a4bcc051fab160c55f0cc7228bd99de3ff5c47 | [
"MIT"
] | 3 | 2020-08-26T17:53:47.000Z | 2020-09-13T07:48:40.000Z | OGMM/gui/MenuItem.cpp | Moneyl/OGMM | 52a4bcc051fab160c55f0cc7228bd99de3ff5c47 | [
"MIT"
] | 2 | 2020-09-01T06:08:28.000Z | 2020-11-14T02:14:41.000Z | OGMM/gui/MenuItem.cpp | Moneyl/OGMM | 52a4bcc051fab160c55f0cc7228bd99de3ff5c47 | [
"MIT"
] | null | null | null | #include "MenuItem.h"
#include "IGuiPanel.h"
#include <string_view>
#include <imgui.h>
MenuItem* MenuItem::GetItem(std::string_view text)
{
for (auto& item : Items)
{
if (item.Text == text)
return &item;
}
return nullptr;
}
void MenuItem::Draw()
{
if (panel)
{
ImGui... | 17 | 56 | 0.512868 | Moneyl |
1d31b033e30bcb077e3621fc38a330a885a47ff4 | 2,971 | cpp | C++ | test/molch-init-test.cpp | 1984not-GmbH/molch | c7f1f646c800ef3388f36e8805a3b94d33d85b12 | [
"MIT"
] | 15 | 2016-04-12T17:12:19.000Z | 2019-08-14T17:46:17.000Z | test/molch-init-test.cpp | 1984not-GmbH/molch | c7f1f646c800ef3388f36e8805a3b94d33d85b12 | [
"MIT"
] | 63 | 2016-03-22T14:35:31.000Z | 2018-07-04T22:17:07.000Z | test/molch-init-test.cpp | 1984not-GmbH/molch | c7f1f646c800ef3388f36e8805a3b94d33d85b12 | [
"MIT"
] | 1 | 2017-08-17T09:27:30.000Z | 2017-08-17T09:27:30.000Z | /*
* Molch, an implementation of the axolotl ratchet based on libsodium
*
* ISC License
*
* Copyright (C) 2015-2016 1984not Security GmbH
* Author: Max Bruckner (FSMaxB)
*
* Permission to use, copy, modify, and/or distribute this software for any
* purpose with or without fee is hereby granted, provided that t... | 27.509259 | 75 | 0.682262 | 1984not-GmbH |
1d3395e3d9d641245b8029878dc07a1013fc5aae | 3,215 | hpp | C++ | hpx/performance_counters/stubs/performance_counter.hpp | bremerm31/hpx | a9d22b8eb2e443d2e95991da9b1a621f94d4ebaa | [
"BSL-1.0"
] | 1 | 2019-07-04T10:18:01.000Z | 2019-07-04T10:18:01.000Z | hpx/performance_counters/stubs/performance_counter.hpp | bremerm31/hpx | a9d22b8eb2e443d2e95991da9b1a621f94d4ebaa | [
"BSL-1.0"
] | 1 | 2017-07-24T07:16:26.000Z | 2017-07-24T08:03:33.000Z | hpx/performance_counters/stubs/performance_counter.hpp | biddisco/hpx | 2d244e1e27c6e014189a6cd59c474643b31fad4b | [
"BSL-1.0"
] | null | null | null | // Copyright (c) 2007-2018 Hartmut Kaiser
//
// 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)
#if !defined(HPX_PERFORMANCE_COUNTERS_STUBS_COUNTER_MAR_03_2009_0745M)
#define HPX_PERFORMANCE_COUNTERS_STUBS_COUNTER_... | 45.28169 | 80 | 0.609642 | bremerm31 |
1d36e90b89b62099851d1cb7c07dbf2a0fbb5f7b | 5,555 | cpp | C++ | src/network/ChannelSocketClient.cpp | vitorjna/LoggerClient | b447f36224e98919045138bb08a849df211e5491 | [
"MIT"
] | null | null | null | src/network/ChannelSocketClient.cpp | vitorjna/LoggerClient | b447f36224e98919045138bb08a849df211e5491 | [
"MIT"
] | null | null | null | src/network/ChannelSocketClient.cpp | vitorjna/LoggerClient | b447f36224e98919045138bb08a849df211e5491 | [
"MIT"
] | null | null | null | #include "ChannelSocketClient.h"
#include "network/TcpSocketThreadable.h"
#include "util/MemoryUtils.h"
#include "util/NetworkUtils.h"
#include "util/TimeUtils.h"
ChannelSocketClient::ChannelSocketClient(QObject *parent)
: QObject(parent)
, bKeepRetrying(false)
, nPort(0)
, mySocket(new TcpSocketThread... | 29.08377 | 92 | 0.672367 | vitorjna |
1d384e0091b3dbbc6d71ea5629b8e16111aff5e9 | 1,359 | hpp | C++ | include/Taus88.hpp | michaeldzjap/MDAudio | 70f9b75eeb39062fe9483fa4240274dcbfce68e3 | [
"MIT"
] | null | null | null | include/Taus88.hpp | michaeldzjap/MDAudio | 70f9b75eeb39062fe9483fa4240274dcbfce68e3 | [
"MIT"
] | null | null | null | include/Taus88.hpp | michaeldzjap/MDAudio | 70f9b75eeb39062fe9483fa4240274dcbfce68e3 | [
"MIT"
] | null | null | null | #ifndef MD_AUDIO_TAUS_88_HPP
#define MD_AUDIO_TAUS_88_HPP
#include <cstdint>
namespace md_audio {
// Original source: https://github.com/supercollider/supercollider/blob/develop/include/plugin_interface/SC_RGen.h
class Taus88 {
public:
explicit Taus88();
explicit Taus88(std::int32_t);
... | 27.18 | 118 | 0.534952 | michaeldzjap |
1d3a7864125a9f8653c1e33370a551b3b100b823 | 1,401 | hpp | C++ | external/boost_1_60_0/qsboost/type_traits/decay.hpp | wouterboomsma/quickstep | a33447562eca1350c626883f21c68125bd9f776c | [
"MIT"
] | 1 | 2019-06-27T17:54:13.000Z | 2019-06-27T17:54:13.000Z | external/boost_1_60_0/qsboost/type_traits/decay.hpp | wouterboomsma/quickstep | a33447562eca1350c626883f21c68125bd9f776c | [
"MIT"
] | null | null | null | external/boost_1_60_0/qsboost/type_traits/decay.hpp | wouterboomsma/quickstep | a33447562eca1350c626883f21c68125bd9f776c | [
"MIT"
] | null | null | null | // (C) Copyright John Maddock & Thorsten Ottosen 2005.
// Use, modification and distribution are subject to 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/type_traits for most recent version... | 31.840909 | 129 | 0.729479 | wouterboomsma |
1d44e69ebf330562f5585661a267f67a4e94c7b1 | 10,210 | cpp | C++ | CrazyCanvas/Source/ECS/Systems/Player/WeaponSystemClient.cpp | IbexOmega/CrazyCanvas | f60f01aaf9c988e4da8990dc1ef3caac20cecf7e | [
"MIT"
] | 18 | 2020-09-04T08:00:54.000Z | 2021-08-29T23:04:45.000Z | CrazyCanvas/Source/ECS/Systems/Player/WeaponSystemClient.cpp | IbexOmega/LambdaEngine | f60f01aaf9c988e4da8990dc1ef3caac20cecf7e | [
"MIT"
] | 32 | 2020-09-12T19:24:50.000Z | 2020-12-11T14:29:44.000Z | CrazyCanvas/Source/ECS/Systems/Player/WeaponSystemClient.cpp | IbexOmega/LambdaEngine | f60f01aaf9c988e4da8990dc1ef3caac20cecf7e | [
"MIT"
] | 2 | 2020-12-15T15:36:13.000Z | 2021-03-27T14:27:02.000Z | #include "ECS/Systems/Player/WeaponSystemClient.h"
#include "ECS/Components/Player/Player.h"
#include "ECS/ECSCore.h"
#include "Application/API/Events/EventQueue.h"
#include "Resources/Material.h"
#include "Resources/ResourceManager.h"
#include "Input/API/InputActionSystem.h"
#include "Math/Random.h"
#include "Lob... | 33.47541 | 204 | 0.760333 | IbexOmega |
1d490289541c1f9a95e8a96554b9e424bf3d146d | 5,187 | cpp | C++ | test/Math/Test_Statistics.cpp | petiaccja/DSPBB | 405d43c4458adfc16ffad68dac4bcd7e1735407f | [
"MIT"
] | 2 | 2021-03-11T13:34:33.000Z | 2022-02-08T20:25:20.000Z | test/Math/Test_Statistics.cpp | MoeSzyslak98/DSPBB | 405d43c4458adfc16ffad68dac4bcd7e1735407f | [
"MIT"
] | 56 | 2021-08-14T11:02:23.000Z | 2022-02-25T15:41:31.000Z | test/Math/Test_Statistics.cpp | MoeSzyslak98/DSPBB | 405d43c4458adfc16ffad68dac4bcd7e1735407f | [
"MIT"
] | 2 | 2021-03-29T14:32:16.000Z | 2022-02-08T20:25:15.000Z | #include <dspbb/Math/Statistics.hpp>
#include <dspbb/Primitives/Signal.hpp>
#include <catch2/catch.hpp>
#include <complex>
using namespace dspbb;
using namespace std::complex_literals;
TEST_CASE("CentralMoment #0 and #1", "[Statistics]") {
Signal<float> s = { 2, 4, 4, 4, 5, 5, 7, 9 };
REQUIRE(0 == CentralMoment(s,... | 27.887097 | 68 | 0.585117 | petiaccja |
1d4b0293cf006e7061b39800d8f7c57d62a36701 | 17,122 | cpp | C++ | libs/leaf/test/error_code_test.cpp | armdevvel/boost | 30d0930951181ef5bc5aad2231ebac8575db0720 | [
"BSL-1.0"
] | 1 | 2020-04-28T15:15:28.000Z | 2020-04-28T15:15:28.000Z | libs/leaf/test/error_code_test.cpp | armdevvel/boost | 30d0930951181ef5bc5aad2231ebac8575db0720 | [
"BSL-1.0"
] | 2 | 2017-05-23T08:01:11.000Z | 2019-09-06T20:49:05.000Z | libs/leaf/test/error_code_test.cpp | armdevvel/boost | 30d0930951181ef5bc5aad2231ebac8575db0720 | [
"BSL-1.0"
] | 8 | 2015-11-03T14:12:19.000Z | 2020-09-22T19:20:54.000Z | // Copyright (c) 2018-2020 Emil Dotchevski and Reverge Studios, Inc.
// 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 <boost/leaf/handle_errors.hpp>
#include <boost/leaf/pred.hpp>
#include <boost/leaf/resu... | 28.632107 | 111 | 0.414846 | armdevvel |
1d4d7f8023f673b3f184d1aed3d450aa2550d4ca | 1,797 | cpp | C++ | DNS with Benefits/main.cpp | SFaghihi/DNSWithBenefits | 2553866c0a634313eab00f1a6eb485fa3eb7ab14 | [
"Apache-2.0"
] | null | null | null | DNS with Benefits/main.cpp | SFaghihi/DNSWithBenefits | 2553866c0a634313eab00f1a6eb485fa3eb7ab14 | [
"Apache-2.0"
] | null | null | null | DNS with Benefits/main.cpp | SFaghihi/DNSWithBenefits | 2553866c0a634313eab00f1a6eb485fa3eb7ab14 | [
"Apache-2.0"
] | null | null | null | //
// main.cpp
// DNS with Benefits
//
// Created by Soroush Faghihi on 5/26/18.
// Copyright © 2018 sorco. All rights reserved.
//
#include <iostream>
#include <arpa/inet.h>
#include <sys/time.h>
#include "cxxopts.hpp"
#include "DBRoutingSystem.hpp"
#include "DBDNSHypervisor.hpp"
// Cammand line options struc... | 26.043478 | 108 | 0.64552 | SFaghihi |
1d4e88fb7edf1f44f945bbe7d41d4cdab68cec8d | 1,662 | cpp | C++ | BlockChain.cpp | tryingsomestuff/blockchain | c3fb445d4e3512282dc05f59159d17e531c16eaa | [
"MIT"
] | null | null | null | BlockChain.cpp | tryingsomestuff/blockchain | c3fb445d4e3512282dc05f59159d17e531c16eaa | [
"MIT"
] | null | null | null | BlockChain.cpp | tryingsomestuff/blockchain | c3fb445d4e3512282dc05f59159d17e531c16eaa | [
"MIT"
] | null | null | null | #include "BlockChain.h"
#include <cassert>
#include <iostream>
BlockChain::BlockChain(const uint32_t difficulty): difficulty(difficulty > 0 ? difficulty : defaultDifficulty_) {
Block b0(0, "Zero!");
b0.prevHash = std::string(64,'0');
b0.mine(BlockChain::difficulty);
chain_.push_back(b0);
}
void BlockChai... | 25.96875 | 113 | 0.628761 | tryingsomestuff |
1d563649559e46343699dff0a1ae835fef984928 | 141,826 | cpp | C++ | src/gmatutil/util/FileManager.cpp | saichikine/GMAT | 80bde040e12946a61dae90d9fc3538f16df34190 | [
"Apache-2.0"
] | null | null | null | src/gmatutil/util/FileManager.cpp | saichikine/GMAT | 80bde040e12946a61dae90d9fc3538f16df34190 | [
"Apache-2.0"
] | null | null | null | src/gmatutil/util/FileManager.cpp | saichikine/GMAT | 80bde040e12946a61dae90d9fc3538f16df34190 | [
"Apache-2.0"
] | 1 | 2021-12-05T05:40:15.000Z | 2021-12-05T05:40:15.000Z | //$Id$
//------------------------------------------------------------------------------
// FileManager
//------------------------------------------------------------------------------
// GMAT: General Mission Analysis Tool
//
// Copyright (c) 2002 - 2018 United States Government as repr... | 36.217058 | 113 | 0.510774 | saichikine |
1d59edc709c378b84a287bcf43f2028ea41d680f | 1,326 | cpp | C++ | sevenfw/anti_arp_tab.cpp | codereba/bittrace | 6826559565aaafc9412d20427d21b73e23febcfe | [
"Unlicense"
] | 10 | 2018-11-09T01:08:15.000Z | 2020-06-21T05:39:54.000Z | sevenfw/anti_arp_tab.cpp | codereba/bittrace | 6826559565aaafc9412d20427d21b73e23febcfe | [
"Unlicense"
] | null | null | null | sevenfw/anti_arp_tab.cpp | codereba/bittrace | 6826559565aaafc9412d20427d21b73e23febcfe | [
"Unlicense"
] | 4 | 2018-11-09T03:29:52.000Z | 2021-07-23T03:30:03.000Z | /*
* Copyright 2010 JiJie Shi
*
* This file is part of NetMonitor.
*
* NetMonitor 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 3 of the License, or
* (at your option) any late... | 25.5 | 72 | 0.674208 | codereba |
1d5a74b971140fa7f04ed54d1d66f635bf3bfb49 | 439 | cpp | C++ | GlacierFormats/src/Export/PNGExporter.cpp | pawREP/GlacierFormats | 9eece4541d863e288fc950087c4f6ec111258fe9 | [
"MIT"
] | 3 | 2020-04-03T00:01:35.000Z | 2021-02-04T04:20:58.000Z | GlacierFormats/src/Export/PNGExporter.cpp | pawREP/GlacierFormats | 9eece4541d863e288fc950087c4f6ec111258fe9 | [
"MIT"
] | 1 | 2021-03-02T05:31:10.000Z | 2021-03-02T05:31:10.000Z | GlacierFormats/src/Export/PNGExporter.cpp | pawREP/GlacierFormats | 9eece4541d863e288fc950087c4f6ec111258fe9 | [
"MIT"
] | null | null | null | #include "PNGExporter.h"
using namespace GlacierFormats;
using namespace GlacierFormats::Export;
void PNGExporter::operator()(const IRenderAsset& asset, const std::filesystem::path& export_dir) const {
for (const auto& material : asset.materials()) {
for (int i = 0; i < material->getTextureCount(); ++i) {
auto ... | 29.266667 | 104 | 0.712984 | pawREP |
1d5ca670aaa3d5ded10453cc0fa0951db647dca4 | 9,287 | hpp | C++ | src/include/miopen/conv/asm_implicit_gemm.hpp | j4yan/MIOpen | dc38f79bee97e047d866d9c1e25289cba86fab56 | [
"MIT"
] | 745 | 2017-07-01T22:03:25.000Z | 2022-03-26T23:46:27.000Z | src/include/miopen/conv/asm_implicit_gemm.hpp | j4yan/MIOpen | dc38f79bee97e047d866d9c1e25289cba86fab56 | [
"MIT"
] | 1,348 | 2017-07-02T12:37:48.000Z | 2022-03-31T23:45:51.000Z | src/include/miopen/conv/asm_implicit_gemm.hpp | j4yan/MIOpen | dc38f79bee97e047d866d9c1e25289cba86fab56 | [
"MIT"
] | 158 | 2017-07-01T19:37:04.000Z | 2022-03-30T11:57:04.000Z | /*******************************************************************************
*
* MIT License
*
* Copyright (c) 2020 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
* ... | 37.447581 | 100 | 0.555077 | j4yan |
1d5d88e523272fa832c7c041a317b8b86657295f | 3,916 | cpp | C++ | test/test_list.cpp | Junology/tsukimade | f76ca34f54796c3254655d5fba9015a60604d890 | [
"MIT"
] | null | null | null | test/test_list.cpp | Junology/tsukimade | f76ca34f54796c3254655d5fba9015a60604d890 | [
"MIT"
] | null | null | null | test/test_list.cpp | Junology/tsukimade | f76ca34f54796c3254655d5fba9015a60604d890 | [
"MIT"
] | null | null | null | /*!
* \file test_list.cpp
* \brief A test with elementary operations on simple lists.
* \details
* The aim of the test is to verify the following functionality of the library:
* - to pass pointers to data structures to Lua;
* - to manipulate passed data structures in Lua;
* - to receive functions as arguments;
... | 27.77305 | 79 | 0.586568 | Junology |
1d62174fbed0986cfa385a1edbbd3852aac7e5e8 | 851 | cpp | C++ | public/plagiarism_plugin/input/24/24/24 24 5113100152--Bounce.cpp | laurensiusadi/elearning-pweb | c72ae1fc414895919ef71ae370686353d9086bce | [
"MIT"
] | null | null | null | public/plagiarism_plugin/input/24/24/24 24 5113100152--Bounce.cpp | laurensiusadi/elearning-pweb | c72ae1fc414895919ef71ae370686353d9086bce | [
"MIT"
] | null | null | null | public/plagiarism_plugin/input/24/24/24 24 5113100152--Bounce.cpp | laurensiusadi/elearning-pweb | c72ae1fc414895919ef71ae370686353d9086bce | [
"MIT"
] | null | null | null | #include "wx/wx.h"
#include "Bounce.h"
Bounce::Bounce(void)
{
// TODO Auto-generated constructor stub
}
Bounce::~Bounce(void)
{
// TODO Auto-generated destructor stub
}
void Bounce::Render(wxDc *dc){
dc->SetPen(*wxWHITE_PEN);
dc->Setbrush(*this->brush);
x = x + speedX;
y = y + speedY;
dc = DrawCircle(x, y, ... | 16.056604 | 56 | 0.608696 | laurensiusadi |
1d6d076af710df8b40ce11d5a994c9143cebbf99 | 4,875 | cpp | C++ | modules/core/statistics/unit/scalar/expinv.cpp | psiha/nt2 | 5e829807f6b57b339ca1be918a6b60a2507c54d0 | [
"BSL-1.0"
] | 34 | 2017-05-19T18:10:17.000Z | 2022-01-04T02:18:13.000Z | modules/core/statistics/unit/scalar/expinv.cpp | psiha/nt2 | 5e829807f6b57b339ca1be918a6b60a2507c54d0 | [
"BSL-1.0"
] | null | null | null | modules/core/statistics/unit/scalar/expinv.cpp | psiha/nt2 | 5e829807f6b57b339ca1be918a6b60a2507c54d0 | [
"BSL-1.0"
] | 7 | 2017-12-02T12:59:17.000Z | 2021-07-31T12:46:14.000Z | //==============================================================================
// Copyright 2003 - 2012 LASMEA UMR 6602 CNRS/Univ. Clermont II
// Copyright 2009 - 2012 LRI UMR 8623 CNRS/Univ Paris Sud XI
//
// Distributed under the Boost Software License, Version 1.0.
// ... | 50.78125 | 137 | 0.592615 | psiha |
1d71f2fc2d32771424c328540fda08a7d035076f | 1,388 | hpp | C++ | Examples/Telemetry/recorder.hpp | raving-bots/expansim-sdk | 22f5c794523abbe9c27688963b607b13671ff118 | [
"BSL-1.0"
] | 1 | 2020-01-17T14:10:22.000Z | 2020-01-17T14:10:22.000Z | Examples/Telemetry/recorder.hpp | raving-bots/expansim-sdk | 22f5c794523abbe9c27688963b607b13671ff118 | [
"BSL-1.0"
] | null | null | null | Examples/Telemetry/recorder.hpp | raving-bots/expansim-sdk | 22f5c794523abbe9c27688963b607b13671ff118 | [
"BSL-1.0"
] | null | null | null | // Copyright Raving Bots 2018-2020
//
// Distributed under the Boost Software License, Version 1.0.
// (See accompanying file SDK-LICENSE or copy at https://www.boost.org/LICENSE_1_0.txt)
#pragma once
#include <fstream>
#include <filesystem>
namespace xsim
{
struct BodyTelemetryDataV1;
struct RigidTra... | 25.703704 | 88 | 0.731988 | raving-bots |
1d72f491b71728130b623288a39f21da371c1c83 | 18,794 | cc | C++ | mozy/src/help/help_cache.cc | wrcad/xictools | f46ba6d42801426739cc8b2940a809b74f1641e2 | [
"Apache-2.0"
] | 73 | 2017-10-26T12:40:24.000Z | 2022-03-02T16:59:43.000Z | mozy/src/help/help_cache.cc | chris-ayala/xictools | 4ea72c118679caed700dab3d49a8d36445acaec3 | [
"Apache-2.0"
] | 12 | 2017-11-01T10:18:22.000Z | 2022-03-20T19:35:36.000Z | mozy/src/help/help_cache.cc | chris-ayala/xictools | 4ea72c118679caed700dab3d49a8d36445acaec3 | [
"Apache-2.0"
] | 34 | 2017-10-06T17:04:21.000Z | 2022-02-18T16:22:03.000Z |
/*========================================================================*
* *
* Distributed by Whiteley Research Inc., Sunnyvale, California, USA *
* http://wrcad.com *
* Copyright (... | 31.375626 | 76 | 0.481803 | wrcad |
1d76067a750b361e65b85753922d415b7dac0769 | 987 | hpp | C++ | include/boost/sql/detail/service_base.hpp | purpleKarrot/async-db | 172124e5657e3085e8ac7729c4e578c0d766bf7b | [
"BSL-1.0"
] | 5 | 2016-09-19T01:02:33.000Z | 2019-10-23T07:15:00.000Z | include/boost/sql/detail/service_base.hpp | purpleKarrot/async-db | 172124e5657e3085e8ac7729c4e578c0d766bf7b | [
"BSL-1.0"
] | null | null | null | include/boost/sql/detail/service_base.hpp | purpleKarrot/async-db | 172124e5657e3085e8ac7729c4e578c0d766bf7b | [
"BSL-1.0"
] | null | null | null | /**************************************************************
* Copyright (c) 2008-2009 Daniel Pfeifer *
* *
* Distributed under the Boost Software License, Version 1.0. *
**************************************************************/... | 21.933333 | 64 | 0.599797 | purpleKarrot |
1d7b2fe6b0f1d1621736cc7491c56aaf6abb0c71 | 164 | cpp | C++ | Society2.0/Society2.0/ProposeMeetingToPersonUI.cpp | simsim314/Society2.0 | a95e42122e2541b7544dd641247681996f1e625a | [
"Unlicense"
] | 1 | 2019-07-11T13:10:43.000Z | 2019-07-11T13:10:43.000Z | Society2.0/Society2.0/ProposeMeetingToPersonUI.cpp | mdheller/Society2.0 | a95e42122e2541b7544dd641247681996f1e625a | [
"Unlicense"
] | 1 | 2019-02-19T12:32:52.000Z | 2019-03-07T20:49:50.000Z | Society2.0/Society2.0/ProposeMeetingToPersonUI.cpp | mdheller/Society2.0 | a95e42122e2541b7544dd641247681996f1e625a | [
"Unlicense"
] | 1 | 2020-01-10T12:37:30.000Z | 2020-01-10T12:37:30.000Z | #include "ProposeMeetingToPersonUI.h"
ProposeMeetingToPersonUI::ProposeMeetingToPersonUI()
{
}
ProposeMeetingToPersonUI::~ProposeMeetingToPersonUI()
{
}
| 16.4 | 54 | 0.780488 | simsim314 |
1d7bb55de785b8146ac241ca0fe4c04b117bbddf | 820 | cpp | C++ | naive_simulation_works/systemc_for_dummies/full_adder/main.cpp | VSPhaneendraPaluri/pvsdrudgeworks | 5827f45567eecbcf0bb606de6adb1fb94fe2d8c6 | [
"MIT"
] | null | null | null | naive_simulation_works/systemc_for_dummies/full_adder/main.cpp | VSPhaneendraPaluri/pvsdrudgeworks | 5827f45567eecbcf0bb606de6adb1fb94fe2d8c6 | [
"MIT"
] | null | null | null | naive_simulation_works/systemc_for_dummies/full_adder/main.cpp | VSPhaneendraPaluri/pvsdrudgeworks | 5827f45567eecbcf0bb606de6adb1fb94fe2d8c6 | [
"MIT"
] | null | null | null | #include <systemc.h>
#include "Full_Adder.h"
#include "MyTestBenchDriver.h"
#include "MyTestBenchMonitor.h"
int sc_main(int sc_argc, char* sc_argv[])
{
sc_signal<bool> pb_a, pb_b, pb_c_in, pb_sum, pb_c_out;
Full_Adder MyFullAdder("MyFullAdder");
MyFullAdder.a(pb_a);
MyFullAdder.b(pb_b);
MyFullAdder.c_in(pb_c_in)... | 24.117647 | 55 | 0.780488 | VSPhaneendraPaluri |
1d7e864e133c0e01805f410caad1669adec00b6b | 2,131 | cpp | C++ | src/utils.cpp | SohilZidan/point-cloud-registration | 5e7f52fbf04f3a58238a2c92393143d5e110c8e4 | [
"MIT"
] | null | null | null | src/utils.cpp | SohilZidan/point-cloud-registration | 5e7f52fbf04f3a58238a2c92393143d5e110c8e4 | [
"MIT"
] | 1 | 2021-11-27T17:52:07.000Z | 2021-11-28T07:04:05.000Z | src/utils.cpp | SohilZidan/point-cloud-registration | 5e7f52fbf04f3a58238a2c92393143d5e110c8e4 | [
"MIT"
] | null | null | null | #include <vector>
#include <tuple>
#include <cmath>
#include <numeric>
#include <Eigen/Dense>
#include "../happly.h"
#include "../nanoflann.hpp"
#include "utils.hpp"
float icp::mse_cost(std::vector<std::tuple<float, int, int>>& distances, float xi)
{
size_t Np = distances.size();
size_t Npo = xi*Np;
... | 27.320513 | 117 | 0.610042 | SohilZidan |
1d86650d1d6904f114f7114b4d8211bde89cc8de | 5,315 | hpp | C++ | include/ssGUI/GUIObjectClasses/GUIObject.hpp | Neko-Box-Coder/ssGUI | 25e218fd79fea105a30737a63381cf8d0be943f6 | [
"Apache-2.0"
] | 15 | 2022-01-21T10:48:04.000Z | 2022-03-27T17:55:11.000Z | include/ssGUI/GUIObjectClasses/GUIObject.hpp | Neko-Box-Coder/ssGUI | 25e218fd79fea105a30737a63381cf8d0be943f6 | [
"Apache-2.0"
] | null | null | null | include/ssGUI/GUIObjectClasses/GUIObject.hpp | Neko-Box-Coder/ssGUI | 25e218fd79fea105a30737a63381cf8d0be943f6 | [
"Apache-2.0"
] | 4 | 2022-01-21T10:48:05.000Z | 2022-01-22T15:42:34.000Z | #ifndef SSGUI_GUI_OBJECT
#define SSGUI_GUI_OBJECT
#include "ssGUI/Enums/GUIObjectType.hpp"
#include "ssGUI/DataClasses/Transform.hpp"
#include "ssGUI/DataClasses/Renderer.hpp"
#include "ssGUI/DataClasses/Hierarchy.hpp"
#include "ssGUI/DataClasses/ExtensionManager.hpp"
#include "ssGUI/DataClasses/EventCallbackM... | 45.42735 | 211 | 0.621825 | Neko-Box-Coder |
1d87cdc304e12262f8bd72bc10ce67210914e054 | 427 | hpp | C++ | library/ATF/CCheckSumBaseConverter.hpp | lemkova/Yorozuya | f445d800078d9aba5de28f122cedfa03f26a38e4 | [
"MIT"
] | 29 | 2017-07-01T23:08:31.000Z | 2022-02-19T10:22:45.000Z | library/ATF/CCheckSumBaseConverter.hpp | kotopes/Yorozuya | 605c97d3a627a8f6545cc09f2a1b0a8afdedd33a | [
"MIT"
] | 90 | 2017-10-18T21:24:51.000Z | 2019-06-06T02:30:33.000Z | library/ATF/CCheckSumBaseConverter.hpp | kotopes/Yorozuya | 605c97d3a627a8f6545cc09f2a1b0a8afdedd33a | [
"MIT"
] | 44 | 2017-12-19T08:02:59.000Z | 2022-02-24T23:15:01.000Z | // This file auto generated by plugin for ida pro. Generated code only for x64. Please, dont change manually
#pragma once
#include <common/common.h>
START_ATF_NAMESPACE
struct CCheckSumBaseConverter
{
public:
long double ProcCode(char byIndex, unsigned int dwSerial, long double dValue);
... | 28.466667 | 108 | 0.740047 | lemkova |
1d8a38af7e296e995cbd7a78019d63a48fed2a82 | 1,954 | cpp | C++ | prismdll/menu_nodes/BGCheckbox.cpp | MagneticPrism/prismdll | d00d45fa7017d48cae8ce9e30542ac43ed3936cd | [
"CC0-1.0"
] | null | null | null | prismdll/menu_nodes/BGCheckbox.cpp | MagneticPrism/prismdll | d00d45fa7017d48cae8ce9e30542ac43ed3936cd | [
"CC0-1.0"
] | null | null | null | prismdll/menu_nodes/BGCheckbox.cpp | MagneticPrism/prismdll | d00d45fa7017d48cae8ce9e30542ac43ed3936cd | [
"CC0-1.0"
] | null | null | null | #include "BGCheckbox.hpp"
bool BGCheckbox::init(const char* _text) {
if (!cocos2d::CCNode::init())
return false;
this->m_pBGLayer = cocos2d::extension::CCScale9Sprite::create(
"square02b_001.png", { 0.0f, 0.0f, 80.0f, 80.0f }
);
this->m_pBGLayer->setScale(.5f);
this->m_pBGLayer->s... | 25.710526 | 93 | 0.642784 | MagneticPrism |
1d8e16a65d2c190eb51fdfcf0198278739ee2b9f | 9,172 | cc | C++ | src/demo/hud.cc | auygun/kaliber | c6501323cf5c447334a2bfb6b7a5899dea0776e6 | [
"MIT"
] | 3 | 2020-06-22T19:37:49.000Z | 2020-11-14T10:45:27.000Z | src/demo/hud.cc | auygun/kaliber | c6501323cf5c447334a2bfb6b7a5899dea0776e6 | [
"MIT"
] | 1 | 2020-06-03T13:05:24.000Z | 2020-06-03T13:05:24.000Z | src/demo/hud.cc | auygun/kaliber | c6501323cf5c447334a2bfb6b7a5899dea0776e6 | [
"MIT"
] | null | null | null | #include "hud.h"
#include "../base/interpolation.h"
#include "../base/log.h"
#include "../base/vecmath.h"
#include "../engine/engine.h"
#include "../engine/font.h"
#include "../engine/image.h"
#include "demo.h"
using namespace std::string_literals;
using namespace base;
using namespace eng;
namespace {
constexpr f... | 30.986486 | 80 | 0.646097 | auygun |
1d924e4a4b07e61bcfe8b3c5a376d846f332bdd7 | 72,472 | inl | C++ | GameJam_v3.2/GameEngineBase/externals/Havok/includes/Source/Common/Base/Math/Vector/Fpu/hkFpuVector4d.inl | aditgoyal19/Tropical-Go-Kart-Bananas | ed3c0489402f8a559c77b56545bd8ebc79c4c563 | [
"MIT"
] | null | null | null | GameJam_v3.2/GameEngineBase/externals/Havok/includes/Source/Common/Base/Math/Vector/Fpu/hkFpuVector4d.inl | aditgoyal19/Tropical-Go-Kart-Bananas | ed3c0489402f8a559c77b56545bd8ebc79c4c563 | [
"MIT"
] | null | null | null | GameJam_v3.2/GameEngineBase/externals/Havok/includes/Source/Common/Base/Math/Vector/Fpu/hkFpuVector4d.inl | aditgoyal19/Tropical-Go-Kart-Bananas | ed3c0489402f8a559c77b56545bd8ebc79c4c563 | [
"MIT"
] | null | null | null | /*
*
* Confidential Information of Telekinesys Research Limited (t/a Havok). Not for disclosure or distribution without Havok's
* prior written consent. This software contains code, techniques and know-how which is confidential and proprietary to Havok.
* Product and Trade Secret source code contains trade secrets ... | 41.014148 | 251 | 0.711682 | aditgoyal19 |
1d93653231cf943e781ad1604b86d76d83d0a698 | 1,150 | cpp | C++ | src/btr/native_io.win.cpp | vector-of-bool/batteries | 8be07c729e0461e8e0b50c89c5ac9b90e48452a8 | [
"BSL-1.0"
] | 2 | 2021-08-02T15:04:33.000Z | 2021-08-10T05:07:46.000Z | src/btr/native_io.win.cpp | vector-of-bool/batteries | 8be07c729e0461e8e0b50c89c5ac9b90e48452a8 | [
"BSL-1.0"
] | null | null | null | src/btr/native_io.win.cpp | vector-of-bool/batteries | 8be07c729e0461e8e0b50c89c5ac9b90e48452a8 | [
"BSL-1.0"
] | null | null | null | #include "./native_io.hpp"
#include "./syserror.hpp"
using namespace btr;
#if _WIN32
#include <windows.h>
void win32_handle_traits::close(HANDLE h) noexcept { ::CloseHandle(h); }
std::size_t win32_handle_traits::write(HANDLE h, const_buffer buf) {
neo_assert(expects,
h != null_handle,
... | 28.04878 | 100 | 0.607826 | vector-of-bool |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.