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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
35854777eac8b0291e6b642caf52b9775e8c685a | 1,162 | cpp | C++ | 4_sort_0_1_2/4_Dutch_flag_algo.cpp | ManthanChoudhury/450_dsa | b776490a30d1039e2b1f3a42b7879d8d34ddce73 | [
"Apache-2.0"
] | 1 | 2021-03-11T00:17:39.000Z | 2021-03-11T00:17:39.000Z | 4_sort_0_1_2/4_Dutch_flag_algo.cpp | ManthanChoudhury/450_dsa | b776490a30d1039e2b1f3a42b7879d8d34ddce73 | [
"Apache-2.0"
] | null | null | null | 4_sort_0_1_2/4_Dutch_flag_algo.cpp | ManthanChoudhury/450_dsa | b776490a30d1039e2b1f3a42b7879d8d34ddce73 | [
"Apache-2.0"
] | null | null | null | // { Driver Code Starts
#include<bits/stdc++.h>
using namespace std;
void sort012(int[],int);
int main() {
int t;
cin >> t;
while(t--){
int n;
cin >>n;
int a[n];
for(int i=0;i<n;i++){
cin >> a[i];
}
sort012(a, n);
f... | 16.138889 | 40 | 0.303787 | ManthanChoudhury |
35893fb1c278ccd377860a42100d78011654bf45 | 579 | cpp | C++ | hello.cpp | wheel0012/Horner-algo | 288267e67a285a92d965f5c2a2f8fd149adf6f90 | [
"Unlicense"
] | null | null | null | hello.cpp | wheel0012/Horner-algo | 288267e67a285a92d965f5c2a2f8fd149adf6f90 | [
"Unlicense"
] | null | null | null | hello.cpp | wheel0012/Horner-algo | 288267e67a285a92d965f5c2a2f8fd149adf6f90 | [
"Unlicense"
] | null | null | null | #include <iostream>
#include <string.h>
class Tools
{
public:
Tools()
{
}
void Split(char* str)
{
std::cout<<strlen(str)<<std::endl;
for(int i = 0; i< strlen(str); i++)
{
std::cout<<str[i]<<std::endl;
}
std::cout<<"\n"<<std::endl;
//st... | 18.09375 | 51 | 0.481865 | wheel0012 |
3589c3b6f385168fedf2e731e748d226a469cc2e | 2,113 | hpp | C++ | capo/construct.hpp | mutouyun/capo | d90528cf5bb59bdf76cdf94dfa6a55bcb1bfdc13 | [
"MIT"
] | 58 | 2015-03-22T03:26:07.000Z | 2022-03-30T05:15:22.000Z | capo/construct.hpp | mutouyun/capo | d90528cf5bb59bdf76cdf94dfa6a55bcb1bfdc13 | [
"MIT"
] | 1 | 2019-03-07T12:32:41.000Z | 2019-03-16T15:01:55.000Z | capo/construct.hpp | mutouyun/capo | d90528cf5bb59bdf76cdf94dfa6a55bcb1bfdc13 | [
"MIT"
] | 21 | 2015-02-27T06:44:56.000Z | 2022-03-05T15:53:30.000Z | /*
The Capo Library
Code covered by the MIT License
Author: mutouyun (http://orzz.org)
*/
#pragma once
#include <new> // placement new
#include <utility> // std::forward
#include <cstddef> // size_t
namespace capo {
////////////////////////////////////////////////////////////////
/// Construct a... | 21.561224 | 77 | 0.471368 | mutouyun |
358d40594ff2238018899f70ffd82c915d584f32 | 742 | cpp | C++ | playground/main.cpp | MoustaphaSaad/tethys | 205be8060bdcadbca111d8222686e3b121cc90b7 | [
"BSD-3-Clause"
] | 4 | 2019-10-20T16:57:18.000Z | 2019-12-30T09:34:02.000Z | playground/main.cpp | MoustaphaSaad/tethys | 205be8060bdcadbca111d8222686e3b121cc90b7 | [
"BSD-3-Clause"
] | null | null | null | playground/main.cpp | MoustaphaSaad/tethys | 205be8060bdcadbca111d8222686e3b121cc90b7 | [
"BSD-3-Clause"
] | 1 | 2019-11-02T19:08:26.000Z | 2019-11-02T19:08:26.000Z | #include <mn/IO.h>
#include <mn/Library.h>
#include <ffi.h>
#include <ffi/FFI.h>
extern "C" int myadd(int a, int b)
{
return a + b;
}
int
main(int, char**)
{
auto l = mn::library_open("");
auto f = mn::library_proc(l, "myadd");
mn::print("{}, {}\n", l, f);
mn::library_close(l);
mn::print("Hello, World!");
ffi... | 19.526316 | 78 | 0.62938 | MoustaphaSaad |
3590d84f93ca6b77feb2982fe8575185247412f4 | 3,249 | cpp | C++ | src/sim/graphics/base/resource/buffers.cpp | wumo/SimGraphicsNative | f46153b20b1131930b07c9ebb44640978481e319 | [
"MIT"
] | null | null | null | src/sim/graphics/base/resource/buffers.cpp | wumo/SimGraphicsNative | f46153b20b1131930b07c9ebb44640978481e319 | [
"MIT"
] | null | null | null | src/sim/graphics/base/resource/buffers.cpp | wumo/SimGraphicsNative | f46153b20b1131930b07c9ebb44640978481e319 | [
"MIT"
] | null | null | null | #include "buffers.h"
namespace sim::graphics {
BufferBase::BufferBase(
const VmaAllocator &allocator, const vk::BufferUsageFlags &usageFlags,
vk::DeviceSize sizeInBytes, VmaAllocationCreateInfo allocInfo) {
std::vector<uint32_t> queueFamilyIndices = {0, 2};
vk::BufferCreateInfo bufferInfo;
bufferInfo.size = ... | 39.621951 | 89 | 0.729455 | wumo |
3590fb222e5b8f6f814e9026b8ef356eb2a5c419 | 946 | cpp | C++ | codeforces/A - Yet Another Dividing into Teams/Accepted.cpp | kzvd4729/Problem-Solving | 13b105e725a4c2f8db7fecc5d7a8f932b9fef4ab | [
"MIT"
] | 1 | 2022-02-11T16:55:36.000Z | 2022-02-11T16:55:36.000Z | codeforces/A - Yet Another Dividing into Teams/Accepted.cpp | kzvd4729/Problem-Solving | 13b105e725a4c2f8db7fecc5d7a8f932b9fef4ab | [
"MIT"
] | null | null | null | codeforces/A - Yet Another Dividing into Teams/Accepted.cpp | kzvd4729/Problem-Solving | 13b105e725a4c2f8db7fecc5d7a8f932b9fef4ab | [
"MIT"
] | null | null | null | /****************************************************************************************
* @author: * kzvd4729 created: Oct/22/2019 20:38
* solution_verdict: Accepted language: GNU C++14
* run... | 35.037037 | 111 | 0.363636 | kzvd4729 |
359381646aad150d93bbcfed18f01342ef88b04c | 1,476 | hpp | C++ | src/symbol.hpp | Stazer/zlisp | 43df64fd5941dd650e35cd93aa6f44b544f2da86 | [
"MIT"
] | null | null | null | src/symbol.hpp | Stazer/zlisp | 43df64fd5941dd650e35cd93aa6f44b544f2da86 | [
"MIT"
] | 2 | 2019-07-21T19:43:18.000Z | 2019-07-21T19:46:08.000Z | src/symbol.hpp | Stazer/zlisp | 43df64fd5941dd650e35cd93aa6f44b544f2da86 | [
"MIT"
] | null | null | null | #pragma once
#include <unordered_map>
#include <unordered_set>
#include <cstdint>
#include <vector>
#include <iosfwd>
#include <string>
#include <ostream>
struct symbol
{
symbol(const std::string& str);
symbol(const char* str);
symbol(const symbol& s);
symbol(symbol&& s);
~symbol() noexcept;
symbol& oper... | 26.357143 | 119 | 0.716802 | Stazer |
359778960c0ac3dc9d8e895e31b34f89b2e6677c | 2,044 | cpp | C++ | src/walker.cpp | nantha007/walker | ad705a5801888dea1459280326dc20e8580f1ba2 | [
"MIT"
] | null | null | null | src/walker.cpp | nantha007/walker | ad705a5801888dea1459280326dc20e8580f1ba2 | [
"MIT"
] | null | null | null | src/walker.cpp | nantha007/walker | ad705a5801888dea1459280326dc20e8580f1ba2 | [
"MIT"
] | null | null | null | /**
* MIT License
* Copyright (c) 2018 Nantha Kumar Sunder
*
* 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... | 32.444444 | 81 | 0.713307 | nantha007 |
35980febdc0c2227769327da687214cb05299a60 | 4,119 | hpp | C++ | SDK/ARKSurvivalEvolved_Task_ShakeOffBasedPlayers_classes.hpp | 2bite/ARK-SDK | c38ca9925309516b2093ad8c3a70ed9489e1d573 | [
"MIT"
] | 10 | 2020-02-17T19:08:46.000Z | 2021-07-31T11:07:19.000Z | SDK/ARKSurvivalEvolved_Task_ShakeOffBasedPlayers_classes.hpp | 2bite/ARK-SDK | c38ca9925309516b2093ad8c3a70ed9489e1d573 | [
"MIT"
] | 9 | 2020-02-17T18:15:41.000Z | 2021-06-06T19:17:34.000Z | SDK/ARKSurvivalEvolved_Task_ShakeOffBasedPlayers_classes.hpp | 2bite/ARK-SDK | c38ca9925309516b2093ad8c3a70ed9489e1d573 | [
"MIT"
] | 3 | 2020-07-22T17:42:07.000Z | 2021-06-19T17:16:13.000Z | #pragma once
// ARKSurvivalEvolved (329.9) SDK
#ifdef _MSC_VER
#pragma pack(push, 0x8)
#endif
#include "ARKSurvivalEvolved_Task_ShakeOffBasedPlayers_structs.hpp"
namespace sdk
{
//---------------------------------------------------------------------------
//Classes
//-----------------------------------------------... | 69.813559 | 231 | 0.590192 | 2bite |
359814abe32bf22c6d44dc60701f59e4556ec47f | 2,836 | cpp | C++ | ql/methods/finitedifferences/stepconditions/fdmsimpleswingcondition.cpp | quantosaurosProject/quantLib | 84b49913d3940cf80d6de8f70185867373f45e8d | [
"BSD-3-Clause"
] | null | null | null | ql/methods/finitedifferences/stepconditions/fdmsimpleswingcondition.cpp | quantosaurosProject/quantLib | 84b49913d3940cf80d6de8f70185867373f45e8d | [
"BSD-3-Clause"
] | null | null | null | ql/methods/finitedifferences/stepconditions/fdmsimpleswingcondition.cpp | quantosaurosProject/quantLib | 84b49913d3940cf80d6de8f70185867373f45e8d | [
"BSD-3-Clause"
] | 1 | 2022-03-29T05:44:27.000Z | 2022-03-29T05:44:27.000Z | /* -*- mode: c++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
/*
Copyright (C) 2010 Klaus Spanderen
This file is part of QuantLib, a free-software/open-source library
for financial quantitative analysts and developers - http://quantlib.org/
QuantLib is free software: you can redistribute it an... | 39.943662 | 82 | 0.608956 | quantosaurosProject |
35a2fa164c0b41bba1c63ad4b0ac64cd167b6775 | 1,239 | cpp | C++ | nd-coursework/books/cpp/FoundationsOfQtDev/Chapter01/Listing1_22-24.cpp | crdrisko/nd-grad | f1765e4f24d7a4b1b3a76c64eb8d88bcca0eaa44 | [
"MIT"
] | 1 | 2020-09-26T12:38:55.000Z | 2020-09-26T12:38:55.000Z | nd-coursework/books/cpp/FoundationsOfQtDev/Chapter01/Listing1_22-24.cpp | crdrisko/nd-research | f1765e4f24d7a4b1b3a76c64eb8d88bcca0eaa44 | [
"MIT"
] | null | null | null | nd-coursework/books/cpp/FoundationsOfQtDev/Chapter01/Listing1_22-24.cpp | crdrisko/nd-research | f1765e4f24d7a4b1b3a76c64eb8d88bcca0eaa44 | [
"MIT"
] | null | null | null | // Copyright (c) 2007 Johan Thelin. Some rights reserved.
// Licensed under the Freeware License. See the LICENSE file in the project root for more information.
//
// Name: Listing1_22-24.cpp
// Author: crdrisko
// Date: 08/02/2021-11:02:49
// Description: Mapping and Hashing (pt 2)
#include <iostream>
#include <vecto... | 27.533333 | 114 | 0.641646 | crdrisko |
35a5eaa99def6522de193575bfc961b95172d070 | 1,578 | hh | C++ | include/nauths/npl/pp/array_cat.hh | nicuveo/NPL | 1338729524708165a953d7ccf9b5de7b68d28588 | [
"MIT"
] | null | null | null | include/nauths/npl/pp/array_cat.hh | nicuveo/NPL | 1338729524708165a953d7ccf9b5de7b68d28588 | [
"MIT"
] | null | null | null | include/nauths/npl/pp/array_cat.hh | nicuveo/NPL | 1338729524708165a953d7ccf9b5de7b68d28588 | [
"MIT"
] | null | null | null | //
// Copyright Antoine Leblanc 2010 - 2015
// Distributed under the MIT license.
//
// http://nauths.fr
// http://github.com/nicuveo
// mailto://antoine.jp.leblanc@gmail.com
//
#ifndef NPL_PP_ARRAY_CAT_HH_
# define NPL_PP_ARRAY_CAT_HH_
//HHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHH
// Inclu... | 29.773585 | 154 | 0.775032 | nicuveo |
35a6c48e751611041e5d19bc8cd466f40cf856df | 1,560 | cpp | C++ | src/policy/consistency.cpp | kaiyuhou/neo | e75e42d7654afcd4606ceb7f60d122cc9aec44af | [
"NCSA"
] | null | null | null | src/policy/consistency.cpp | kaiyuhou/neo | e75e42d7654afcd4606ceb7f60d122cc9aec44af | [
"NCSA"
] | null | null | null | src/policy/consistency.cpp | kaiyuhou/neo | e75e42d7654afcd4606ceb7f60d122cc9aec44af | [
"NCSA"
] | null | null | null | #include "policy/consistency.hpp"
#include "model-access.hpp"
#include "model.h"
std::string ConsistencyPolicy::to_string() const
{
std::string ret = "consistency of ";
for (Policy *p : correlated_policies) {
ret += p->to_string() + ", ";
}
ret.pop_back();
ret.pop_back();
return ret;
}... | 27.368421 | 84 | 0.614103 | kaiyuhou |
35ad24c999909f4d96a861eb2046915116140caf | 213 | hpp | C++ | gearoenix/render/mesh/gx-rnd-msh-type.hpp | Hossein-Noroozpour/gearoenix | c8fa8b8946c03c013dad568d6d7a97d81097c051 | [
"BSD-Source-Code"
] | 35 | 2018-01-07T02:34:38.000Z | 2022-02-09T05:19:03.000Z | gearoenix/render/mesh/gx-rnd-msh-type.hpp | Hossein-Noroozpour/gearoenix | c8fa8b8946c03c013dad568d6d7a97d81097c051 | [
"BSD-Source-Code"
] | 111 | 2017-09-20T09:12:36.000Z | 2020-12-27T12:52:03.000Z | gearoenix/render/mesh/gx-rnd-msh-type.hpp | Hossein-Noroozpour/gearoenix | c8fa8b8946c03c013dad568d6d7a97d81097c051 | [
"BSD-Source-Code"
] | 5 | 2020-02-11T11:17:37.000Z | 2021-01-08T17:55:43.000Z | #ifndef GEAROENIX_RENDER_MESH_TYPE_HPP
#define GEAROENIX_RENDER_MESH_TYPE_HPP
#include "../../core/gx-cr-types.hpp"
namespace gearoenix::render::mesh {
enum struct Type : core::TypeId {
Basic = 1,
};
}
#endif
| 21.3 | 38 | 0.741784 | Hossein-Noroozpour |
35ae8006689d4ee0f6ce9b6d2cb2d1b581fefb36 | 6,898 | cpp | C++ | RtEthSample/configuration.cpp | Bhaskers-Blu-Org2/NetAdapter-Cx-Driver-Samples | 3fff35e05f5a299c487cc8c806728f5f936031a3 | [
"MIT"
] | 15 | 2019-06-14T14:02:12.000Z | 2022-02-07T11:38:30.000Z | RtEthSample/configuration.cpp | hauzlin/NetAdapter-Cx-Driver-Samples | 3fff35e05f5a299c487cc8c806728f5f936031a3 | [
"MIT"
] | 3 | 2017-05-03T19:07:15.000Z | 2017-09-27T23:13:38.000Z | RtEthSample/configuration.cpp | hauzlin/NetAdapter-Cx-Driver-Samples | 3fff35e05f5a299c487cc8c806728f5f936031a3 | [
"MIT"
] | 16 | 2019-08-19T10:03:03.000Z | 2022-02-21T08:27:21.000Z | /*++
THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF
ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO
THE IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A
PARTICULAR PURPOSE.
Copyright (c) Microsoft Corporation. All rights reserved
--*/
#... | 37.286486 | 226 | 0.584807 | Bhaskers-Blu-Org2 |
35b1a64d3ef993117da89e34222b167f6dd2e996 | 1,436 | cpp | C++ | accls/AES/AES-Synth/aes-rtl-uinst/sim/subfun_update.cpp | tinochinamora/iw_imdb | 89964024bee7f8eaaa25530a8d40155251345be0 | [
"MIT"
] | 3 | 2021-09-10T08:14:45.000Z | 2022-02-25T04:53:12.000Z | accls/AES/AES-Synth/aes-rtl-uinst/sim/subfun_update.cpp | PrincetonUniversity/ILA-Modeling-Verification | 88964aad8c465c9da82f1ec66425da9f16fc8d29 | [
"MIT"
] | 1 | 2018-06-25T08:49:22.000Z | 2018-06-25T08:49:22.000Z | accls/AES/AES-Synth/aes-rtl-uinst/sim/subfun_update.cpp | PrincetonUniversity/ILA-Modeling-Verification | 88964aad8c465c9da82f1ec66425da9f16fc8d29 | [
"MIT"
] | 3 | 2018-06-26T11:31:40.000Z | 2021-12-01T20:16:21.000Z | #include "common.hpp"
#include "model_aes_class.hpp"
void model_aes::update(BIT_VEC cmd, BIT_VEC cmdaddr, BIT_VEC cmddata)
{
BIT_VEC cppVar_61 = cppUpdateFun_aes_addr(cmd, cmdaddr, cmddata);
BIT_VEC cppVar_266 = cppUpdateFun_aes_ctr(cmd, cmdaddr, cmddata);
BIT_VEC cppVar_471 = cppUpdateFun_aes_key0(cmd, cmdaddr, cm... | 39.888889 | 73 | 0.791783 | tinochinamora |
35b5fad87fef902dc4e1b49bd61153b0265bb927 | 14,936 | cc | C++ | chrome/browser/enterprise/connectors/file_system/rename_handler.cc | zealoussnow/chromium | fd8a8914ca0183f0add65ae55f04e287543c7d4a | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 14,668 | 2015-01-01T01:57:10.000Z | 2022-03-31T23:33:32.000Z | chrome/browser/enterprise/connectors/file_system/rename_handler.cc | zealoussnow/chromium | fd8a8914ca0183f0add65ae55f04e287543c7d4a | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 86 | 2015-10-21T13:02:42.000Z | 2022-03-14T07:50:50.000Z | chrome/browser/enterprise/connectors/file_system/rename_handler.cc | zealoussnow/chromium | fd8a8914ca0183f0add65ae55f04e287543c7d4a | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 5,941 | 2015-01-02T11:32:21.000Z | 2022-03-31T16:35:46.000Z | // Copyright 2021 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "chrome/browser/enterprise/connectors/file_system/rename_handler.h"
#include <utility>
#include "base/files/file_util.h"
#include "chrome/brows... | 38.494845 | 99 | 0.733731 | zealoussnow |
35b6a5836ff39bd58fb90c6754abf509c22323e6 | 2,126 | hh | C++ | psdaq/psdaq/service/AlignmentAllocator.hh | JBlaschke/lcls2 | 30523ef069e823535475d68fa283c6387bcf817b | [
"BSD-3-Clause-LBNL"
] | 16 | 2017-11-09T17:10:56.000Z | 2022-03-09T23:03:10.000Z | psdaq/psdaq/service/AlignmentAllocator.hh | JBlaschke/lcls2 | 30523ef069e823535475d68fa283c6387bcf817b | [
"BSD-3-Clause-LBNL"
] | 6 | 2017-12-12T19:30:05.000Z | 2020-07-09T00:28:33.000Z | psdaq/psdaq/service/AlignmentAllocator.hh | JBlaschke/lcls2 | 30523ef069e823535475d68fa283c6387bcf817b | [
"BSD-3-Clause-LBNL"
] | 25 | 2017-09-18T20:02:43.000Z | 2022-03-27T22:27:42.000Z | // Modified from:
// https://stackoverflow.com/questions/8456236/how-is-a-vectors-data-aligned
//
// This allocator can be used with stdlib containers that can take an allocator.
#ifndef ALIGNMENT_ALLOCATOR_HH
#define ALIGNMENT_ALLOCATOR_HH
#include <stdlib.h>
namespace Pds
{
template <typename T, std::size_t N ... | 24.72093 | 80 | 0.651458 | JBlaschke |
35bb9b74c7e9a279758891f2ce60375cb7bade04 | 1,559 | cpp | C++ | bin/test-ok/3.cpp | badforlabor/tolua- | 15ae5789ef2a6295eb5af6c26f927a7572ec9864 | [
"MIT"
] | 8 | 2016-05-17T08:26:49.000Z | 2021-05-16T22:33:59.000Z | bin/test-ok/3.cpp | badforlabor/tolua- | 15ae5789ef2a6295eb5af6c26f927a7572ec9864 | [
"MIT"
] | null | null | null | bin/test-ok/3.cpp | badforlabor/tolua- | 15ae5789ef2a6295eb5af6c26f927a7572ec9864 | [
"MIT"
] | 6 | 2017-05-04T01:21:15.000Z | 2021-04-20T12:21:14.000Z | /*
** Lua binding: tconstant
** Generated automatically by tolua++-1.0.92 on 01/05/16 18:22:51.
*/
#ifndef __cplusplus
#include "stdlib.h"
#endif
#include "string.h"
#include "tolua++.h"
/* Exported function */
TOLUA_API int tolua_tconstant_open (lua_State* tolua_S);
#include "tconstant.h"
/* fun... | 25.983333 | 67 | 0.708146 | badforlabor |
35be9ff0c941ec10b5f7e97274e87751802c54e1 | 5,813 | cpp | C++ | Cookbook.cpp | dawithw/cookbook | 671150189d3caba0622f1c103aa8d91be8b861a7 | [
"MIT"
] | null | null | null | Cookbook.cpp | dawithw/cookbook | 671150189d3caba0622f1c103aa8d91be8b861a7 | [
"MIT"
] | null | null | null | Cookbook.cpp | dawithw/cookbook | 671150189d3caba0622f1c103aa8d91be8b861a7 | [
"MIT"
] | null | null | null | #include "COP3503su14_Proj3_Cookbook_WoldegiorigsD.h"
// -------------- SECTION ------------- //
// Constructor: Default
Section::Section()
{}
// This function initializes the title
void Section::add(std::string name)
{
title = name;
}
// This function adds a Recipe object to the recipes vector
voi... | 21.061594 | 107 | 0.599346 | dawithw |
35c10f6d6b53b35c243fe75e2ebaa813ae6fadc1 | 143 | hh | C++ | src/turing-digital-module-widget.hh | Chaircrusher/skylights-vcv | 04c66539824f8e4b4de4da824f2090470e8494ec | [
"BSD-3-Clause"
] | 16 | 2019-02-09T19:54:26.000Z | 2019-11-20T16:29:03.000Z | src/turing-digital-module-widget.hh | Chaircrusher/skylights-vcv | 04c66539824f8e4b4de4da824f2090470e8494ec | [
"BSD-3-Clause"
] | 15 | 2019-03-04T19:44:38.000Z | 2019-08-10T03:33:33.000Z | src/turing-digital-module-widget.hh | Chaircrusher/skylights-vcv | 04c66539824f8e4b4de4da824f2090470e8494ec | [
"BSD-3-Clause"
] | 5 | 2019-05-09T10:52:54.000Z | 2021-12-03T17:37:56.000Z | #pragma once
#include "skylights.hh"
struct turing_digital_module_widget : ModuleWidget {
turing_digital_module_widget(Module *module);
};
| 17.875 | 52 | 0.797203 | Chaircrusher |
35c2a5c6e9e225789bd6e8dce8bd96e9b98973ad | 1,333 | cpp | C++ | c1/dualpal.cpp | rodrigods/usaco | 8d95fd6a285e4f6f61199b9bef6af93fb087f63e | [
"Apache-2.0"
] | null | null | null | c1/dualpal.cpp | rodrigods/usaco | 8d95fd6a285e4f6f61199b9bef6af93fb087f63e | [
"Apache-2.0"
] | null | null | null | c1/dualpal.cpp | rodrigods/usaco | 8d95fd6a285e4f6f61199b9bef6af93fb087f63e | [
"Apache-2.0"
] | null | null | null | /*
ID: rodrigo40
PROG: dualpal
LANG: C++
*/
#include <iostream>
#include <fstream>
#include <string>
#include <algorithm>
using namespace std;
bool isPalindrome(string str) {
int l = 0;
int r = str.length() - 1;
while (l < r) {
if (str[l] != str[r]) {
return false;
}
l... | 19.042857 | 65 | 0.498875 | rodrigods |
35c2c46067311b269d299c2dd663b8afb4caec71 | 864 | cpp | C++ | vijos/p1143.cpp | huanghongxun/ACM | b7595bbe6c0d82ceb271e81fca3e787dc4060a55 | [
"Unlicense"
] | 3 | 2018-06-05T13:57:13.000Z | 2020-08-05T14:19:02.000Z | vijos/p1143.cpp | huanghongxun/ACM | b7595bbe6c0d82ceb271e81fca3e787dc4060a55 | [
"Unlicense"
] | null | null | null | vijos/p1143.cpp | huanghongxun/ACM | b7595bbe6c0d82ceb271e81fca3e787dc4060a55 | [
"Unlicense"
] | null | null | null | #include <iostream>
#include <cstdio>
#define FOR(i,j,k) for(i=j;i<=k;i++)
using namespace std;
const int maxn=25;
const int maxm=50;
int f[maxn][maxn][maxn][maxm];
int a[maxn][maxn];
int n,m;
int main()
{
cin>>n; int i,j,k,l;
FOR(i,1,n) FOR(j,1,n) cin>>a[i][j];
m=n+n-1;
FOR(l,1,m) FOR(i,1,n) FOR(j,1,n) FOR(k,1,n) ... | 27.870968 | 203 | 0.471065 | huanghongxun |
35c7229cb86b9597a6f3c5175052eed6a1f11b65 | 1,793 | cc | C++ | Codeforces/353 Division 2/Problem D/D.cc | VastoLorde95/Competitive-Programming | 6c990656178fb0cd33354cbe5508164207012f24 | [
"MIT"
] | 170 | 2017-07-25T14:47:29.000Z | 2022-01-26T19:16:31.000Z | Codeforces/353 Division 2/Problem D/D.cc | navodit15/Competitive-Programming | 6c990656178fb0cd33354cbe5508164207012f24 | [
"MIT"
] | null | null | null | Codeforces/353 Division 2/Problem D/D.cc | navodit15/Competitive-Programming | 6c990656178fb0cd33354cbe5508164207012f24 | [
"MIT"
] | 55 | 2017-07-28T06:17:33.000Z | 2021-10-31T03:06:22.000Z | #include <bits/stdc++.h>
#define sd(x) scanf("%d",&x)
#define sd2(x,y) scanf("%d%d",&x,&y)
#define sd3(x,y,z) scanf("%d%d%d",&x,&y,&z)
#define fi first
#define se second
#define pb push_back
#define mp make_pair
#define foreach(it, v) for(__typeof((v).begin()) it=(v).begin(); it != (v).end(); ++it)
#define meta __FUN... | 17.93 | 97 | 0.524819 | VastoLorde95 |
35ca9c6b564ae512f51315d95bafde014d5d967e | 68 | hpp | C++ | pom/terrain/coloration/tag/color.hpp | e-Sharp/pom_gen_proc | cef7a57620d52631c1e94f71c71e0455f9e1b653 | [
"MIT"
] | null | null | null | pom/terrain/coloration/tag/color.hpp | e-Sharp/pom_gen_proc | cef7a57620d52631c1e94f71c71e0455f9e1b653 | [
"MIT"
] | null | null | null | pom/terrain/coloration/tag/color.hpp | e-Sharp/pom_gen_proc | cef7a57620d52631c1e94f71c71e0455f9e1b653 | [
"MIT"
] | null | null | null | #pragma once
namespace pom::terrain::target {
struct color {};
}
| 8.5 | 32 | 0.676471 | e-Sharp |
35cb0eb3786696c1bde643ee55aba3041fbb309a | 6,240 | cpp | C++ | src/module/usModuleResource.cpp | azriel91/CppMicroServices | 13080ed60791940a6e0aef38fe5d89d53d97fb41 | [
"Apache-2.0"
] | 1 | 2021-06-27T05:11:08.000Z | 2021-06-27T05:11:08.000Z | src/module/usModuleResource.cpp | azriel91/CppMicroServices | 13080ed60791940a6e0aef38fe5d89d53d97fb41 | [
"Apache-2.0"
] | 3 | 2017-08-20T22:10:51.000Z | 2017-09-04T12:48:40.000Z | src/module/usModuleResource.cpp | MoonLightDE/mlde.l.cppmicroservices | cf471b30539d7e1a138d6308b2b249fe19df2302 | [
"Apache-2.0"
] | 2 | 2020-10-27T06:51:00.000Z | 2020-10-27T06:51:01.000Z | /*=============================================================================
Library: CppMicroServices
Copyright (c) German Cancer Research Center,
Division of Medical and Biological Informatics
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in complia... | 22.941176 | 100 | 0.668269 | azriel91 |
35d0bc7a119465d0510618a90389426afec39671 | 5,323 | cpp | C++ | src/Camera.cpp | jamino/SoftShadows | 75684963496c7f51179cdd48b3a65a1cc410404e | [
"0BSD"
] | 1 | 2019-08-20T21:48:34.000Z | 2019-08-20T21:48:34.000Z | src/Camera.cpp | jamino/SoftShadows | 75684963496c7f51179cdd48b3a65a1cc410404e | [
"0BSD"
] | null | null | null | src/Camera.cpp | jamino/SoftShadows | 75684963496c7f51179cdd48b3a65a1cc410404e | [
"0BSD"
] | null | null | null | ///////////////////////////////////////////////////////////////////////////////
// Copyright (c) 2012, Ben Lane
//
// Permission to use, copy, modify, and/or distribute this software for any
// purpose with or without fee is hereby granted, provided that the above
// copyright notice and this permission notice appear i... | 31.128655 | 86 | 0.685516 | jamino |
35d1bdf2324522e34a1a2b15db5d2c19822c20a2 | 6,119 | cpp | C++ | testing/unittests/jlibtests.cpp | emuharemagic/HPCC-Platform | bbd5423b25f6ba2d675521c8917f9ecfa97dace5 | [
"Apache-2.0"
] | 1 | 2020-08-01T19:54:56.000Z | 2020-08-01T19:54:56.000Z | testing/unittests/jlibtests.cpp | emuharemagic/HPCC-Platform | bbd5423b25f6ba2d675521c8917f9ecfa97dace5 | [
"Apache-2.0"
] | null | null | null | testing/unittests/jlibtests.cpp | emuharemagic/HPCC-Platform | bbd5423b25f6ba2d675521c8917f9ecfa97dace5 | [
"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 ... | 25.60251 | 102 | 0.511195 | emuharemagic |
35d52d51c8206672fe909c09c87f8504f7f1465b | 1,051 | cpp | C++ | Lab_01/src/Lab_01/Matrix.cpp | maxim-kozlov/AnalysisAlgorithms | ce9a859ad9f704735f902efb14c3117aaaa36817 | [
"MIT"
] | null | null | null | Lab_01/src/Lab_01/Matrix.cpp | maxim-kozlov/AnalysisAlgorithms | ce9a859ad9f704735f902efb14c3117aaaa36817 | [
"MIT"
] | null | null | null | Lab_01/src/Lab_01/Matrix.cpp | maxim-kozlov/AnalysisAlgorithms | ce9a859ad9f704735f902efb14c3117aaaa36817 | [
"MIT"
] | null | null | null | #include "Matrix.h"
Matrix::Matrix(std::size_t n, std::size_t m)
: n(n), m(m)
{
buffer = new std::size_t[n * m];
data = new std::size_t * [n];
for (size_t i = 0; i < n; i++)
data[i] = buffer + i * m;
}
Matrix& Matrix::operator = (Matrix&& matr)
{
delete[] buffer;
delete[] data;
buffer = matr.buffer;
data... | 17.229508 | 65 | 0.548049 | maxim-kozlov |
35d925661c300d909eaa4c4c4f5a50f3cd4d9ffc | 10,026 | cpp | C++ | main/NTP.cpp | liebman/esp32-gps-ntp | 75a73ee038aa825654ca1d235904e0fa9925be06 | [
"MIT"
] | 9 | 2020-12-26T23:20:44.000Z | 2022-03-05T17:55:14.000Z | main/NTP.cpp | liebman/esp32-gps-ntp | 75a73ee038aa825654ca1d235904e0fa9925be06 | [
"MIT"
] | 1 | 2022-01-27T19:29:57.000Z | 2022-02-10T13:19:44.000Z | main/NTP.cpp | liebman/esp32-gps-ntp | 75a73ee038aa825654ca1d235904e0fa9925be06 | [
"MIT"
] | null | null | null | /*
* MIT License
*
* Copyright (c) 2020 Christopher B. Liebman
*
* 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,... | 34.8125 | 117 | 0.623678 | liebman |
35ddb4eee48d27aa4c52b75f0def8106d873d2e0 | 1,478 | cpp | C++ | 4. Алгоритмы на графах/30. Цепочка из доминошек #782/[OK]232899.cpp | godnoTA/acm.bsu.by | 3e1cf1c545c691de82b5e1d2e0768b41ea581734 | [
"Unlicense"
] | 19 | 2018-05-19T16:37:14.000Z | 2022-03-23T20:13:43.000Z | 4. Алгоритмы на графах/30. Цепочка из доминошек #782/[OK]232899.cpp | godnoTA/acm.bsu.by | 3e1cf1c545c691de82b5e1d2e0768b41ea581734 | [
"Unlicense"
] | 6 | 2020-05-07T21:06:48.000Z | 2020-06-05T17:52:57.000Z | 4. Алгоритмы на графах/30. Цепочка из доминошек #782/[OK]232899.cpp | godnoTA/acm.bsu.by | 3e1cf1c545c691de82b5e1d2e0768b41ea581734 | [
"Unlicense"
] | 31 | 2019-03-01T21:41:38.000Z | 2022-03-27T17:56:39.000Z | #include <iostream>
#include <fstream>
#include <queue>
#include <set>
using namespace std;
int main() {
ifstream in("input.txt");
ofstream of("output.txt");
int n;
int bufferOne, bufferTwo;
in >> n;
set<int> *info = new set<int>[7];
int quantity[7] = { 0,0,0,0,0,0,0 };
bool isMarked[7] = {... | 19.447368 | 74 | 0.516915 | godnoTA |
35e4ba0dc1860954c0571cfef994903bc6be2a69 | 6,832 | cpp | C++ | iotvideo/src/v20201215/model/DataForward.cpp | suluner/tencentcloud-sdk-cpp | a56c73cc3f488c4d1e10755704107bb15c5e000d | [
"Apache-2.0"
] | 43 | 2019-08-14T08:14:12.000Z | 2022-03-30T12:35:09.000Z | iotvideo/src/v20201215/model/DataForward.cpp | suluner/tencentcloud-sdk-cpp | a56c73cc3f488c4d1e10755704107bb15c5e000d | [
"Apache-2.0"
] | 12 | 2019-07-15T10:44:59.000Z | 2021-11-02T12:35:00.000Z | iotvideo/src/v20201215/model/DataForward.cpp | suluner/tencentcloud-sdk-cpp | a56c73cc3f488c4d1e10755704107bb15c5e000d | [
"Apache-2.0"
] | 28 | 2019-07-12T09:06:22.000Z | 2022-03-30T08:04:18.000Z | /*
* Copyright (c) 2017-2019 THL A29 Limited, a Tencent company. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
... | 27.111111 | 141 | 0.682084 | suluner |
35e572c0b33c1cd8a1798256e47699556dd581db | 1,397 | cc | C++ | src/map/Map.cc | kallentu/pathos | 1914edbccc98baef79d98fb065119230072ac40d | [
"MIT"
] | 7 | 2019-05-09T15:38:55.000Z | 2021-12-07T03:13:29.000Z | src/map/Map.cc | kallentu/pathos | 1914edbccc98baef79d98fb065119230072ac40d | [
"MIT"
] | 1 | 2019-06-20T03:01:18.000Z | 2019-06-20T03:01:18.000Z | src/map/Map.cc | kallentu/pathos | 1914edbccc98baef79d98fb065119230072ac40d | [
"MIT"
] | null | null | null | #include "map/Map.h"
#include "map/Ground.h"
#include "map/MapObject.h"
#include "map/Wall.h"
#include "view/curses/MapView.h"
#include <memory>
#include <vector>
using namespace Pathos;
Map::Map(size_t y, size_t x) {
// Walls added for the corners of the map
// Initial fill with default MapObjects (ground)
for... | 20.850746 | 69 | 0.561203 | kallentu |
e305dd08705ee82c1b4ee18fb1c2e2b08bf9cb2a | 7,511 | hpp | C++ | src/core/basic_operator.hpp | cognitom/processwarp | 1c70e76578821907fa8ab28923041300232d32d2 | [
"MIT"
] | null | null | null | src/core/basic_operator.hpp | cognitom/processwarp | 1c70e76578821907fa8ab28923041300232d32d2 | [
"MIT"
] | null | null | null | src/core/basic_operator.hpp | cognitom/processwarp | 1c70e76578821907fa8ab28923041300232d32d2 | [
"MIT"
] | null | null | null | #pragma once
#include "type.hpp"
namespace processwarp {
/**
* 型依存の演算クラス。
*/
class BasicOperator {
public:
/**
* デストラクタ。
* 基底クラスなため、virtual宣言を行うが何もしない。
*/
virtual ~BasicOperator();
/**
* bit_cast命令に対応したキャスト演算を行う。
* @param dst 出力先
* @param size 出力サイズ
* @param src 入力元
*/
virtual void... | 19.408269 | 77 | 0.590867 | cognitom |
e3081c492fce81bfb255d751ffb60b93eaae1f65 | 2,219 | inl | C++ | c++/Ail/URL.inl | aamshukov/miscellaneous | 6fc0d2cb98daff70d14f87b2dfc4e58e61d2df60 | [
"MIT"
] | null | null | null | c++/Ail/URL.inl | aamshukov/miscellaneous | 6fc0d2cb98daff70d14f87b2dfc4e58e61d2df60 | [
"MIT"
] | null | null | null | c++/Ail/URL.inl | aamshukov/miscellaneous | 6fc0d2cb98daff70d14f87b2dfc4e58e61d2df60 | [
"MIT"
] | null | null | null | ////////////////////////////////////////////////////////////////////////////////////////
//......................................................................................
// This is a part of AI Library [Arthur's Interfaces Library]. .
// 1998-2001 Arthur Amshukov ... | 26.105882 | 88 | 0.452907 | aamshukov |
e309ef09be7edd6cca89caa5a3af15f9f25771fa | 12,986 | cpp | C++ | src/cbs/components/RubiksCube/RubiksCube.cpp | Nerovski/RubiksCube | a8ac27e50544a44a1790d0a6f1af07be05768454 | [
"MIT"
] | 6 | 2020-06-27T10:29:40.000Z | 2021-04-13T14:19:23.000Z | src/cbs/components/RubiksCube/RubiksCube.cpp | Nerovski/RubiksCube | a8ac27e50544a44a1790d0a6f1af07be05768454 | [
"MIT"
] | null | null | null | src/cbs/components/RubiksCube/RubiksCube.cpp | Nerovski/RubiksCube | a8ac27e50544a44a1790d0a6f1af07be05768454 | [
"MIT"
] | 3 | 2021-05-30T05:32:24.000Z | 2022-01-18T01:53:24.000Z | #include "RubiksCube.h"
#include "Tasks.h"
RubiksCube::RubiksCube()
: m_Front {
{
{ 0, 0, 0 },
{ 0, 0, 1 },
{ 0, 0, 2 },
{ 0, 1, 2 },
{ 0, 2, 2 },
{ 0, 2, 1 },
{ 0, 2, 0 },
{ 0, 1, 0 }
},
{ 0, 1... | 40.9653 | 202 | 0.56815 | Nerovski |
e30dc3f86621a61a237131a5324ebc1f40b3caaf | 418 | cpp | C++ | Chromatics.cpp | DoooReyn/chromatic4cpp | 31a7e31cd331728ad65280d5d57556c3bd0a8605 | [
"MIT"
] | 1 | 2017-02-18T20:50:41.000Z | 2017-02-18T20:50:41.000Z | Chromatics.cpp | DoooReyn/chromatic4cpp | 31a7e31cd331728ad65280d5d57556c3bd0a8605 | [
"MIT"
] | 4 | 2017-02-18T11:51:01.000Z | 2017-02-19T17:19:19.000Z | Chromatics.cpp | DoooReyn/chromatic4cpp | 31a7e31cd331728ad65280d5d57556c3bd0a8605 | [
"MIT"
] | null | null | null | //
// Chromatics.cpp
// Playground
//
// Created by Reyn-Mac on 2017/2/18.
// Copyright © 2017年 Reyn-Mac. All rights reserved.
//
#include "Chromatics.hpp"
unsigned char Chromatic::getColorVecFromHex(string hex)
{
if(hex.size() == 0) return 0;
int nhigh = StringUtils::hex01(hex.at(0)) * 16;
if(hex.siz... | 22 | 55 | 0.641148 | DoooReyn |
e312392584cad7896cf39cc8afdc4a33e8352531 | 96 | cpp | C++ | Vulkan/src/Vulkan/Core/Time.cpp | ilkeraktug/Vulkan | b736ba2e01dc8fdfd1aaf3dec334882f7467263f | [
"MIT"
] | null | null | null | Vulkan/src/Vulkan/Core/Time.cpp | ilkeraktug/Vulkan | b736ba2e01dc8fdfd1aaf3dec334882f7467263f | [
"MIT"
] | null | null | null | Vulkan/src/Vulkan/Core/Time.cpp | ilkeraktug/Vulkan | b736ba2e01dc8fdfd1aaf3dec334882f7467263f | [
"MIT"
] | null | null | null | #include "pch.h"
#include "Time.h"
float Time::deltaTime = 0.0f;
float Time::m_LastTime = 0.0f; | 19.2 | 30 | 0.6875 | ilkeraktug |
e31242d2de6d33f5a5bc57748211451ea5e4f456 | 194 | cpp | C++ | src/lexer/utils.cpp | YavaCoco/Hydrogen | ce7baf19e1fa1d705de99e86b4f116c30d737aa2 | [
"MIT"
] | 1 | 2022-01-22T00:57:49.000Z | 2022-01-22T00:57:49.000Z | src/lexer/utils.cpp | YavaCoco/Hydrogen | ce7baf19e1fa1d705de99e86b4f116c30d737aa2 | [
"MIT"
] | null | null | null | src/lexer/utils.cpp | YavaCoco/Hydrogen | ce7baf19e1fa1d705de99e86b4f116c30d737aa2 | [
"MIT"
] | null | null | null | #include <lexer.hpp>
namespace hyc::lex
{
// open parentheses/braces/brackets
int lexer::open_pbck()
{
return m_openps.size() + m_openbks.size() + m_openbcs.size();
}
}
| 17.636364 | 69 | 0.618557 | YavaCoco |
e312e63baa70dbe0945e9462625a4cec5708ffcb | 7,968 | cpp | C++ | src/UI/UiElement.cpp | Strife-AI/Strife.Engine | 6b83e762f28acb3f4440d5b7763beccfd08dfc8f | [
"NCSA"
] | 12 | 2020-12-27T22:13:58.000Z | 2021-03-14T09:03:02.000Z | src/UI/UiElement.cpp | Strife-AI/Strife.Engine | 6b83e762f28acb3f4440d5b7763beccfd08dfc8f | [
"NCSA"
] | 10 | 2021-01-14T15:14:31.000Z | 2021-05-24T22:01:09.000Z | src/UI/UiElement.cpp | Strife-AI/Strife.Engine | 6b83e762f28acb3f4440d5b7763beccfd08dfc8f | [
"NCSA"
] | null | null | null | #include "UiElement.hpp"
#include "Camera.hpp"
#include "UI.hpp"
void UiElement::RemoveChild(UiElementPtr child)
{
auto position = std::find(_children.begin(), _children.end(), child);
if (position != _children.end())
{
_children.erase(position);
RequireReformat();
}
}
void UiElemen... | 22.636364 | 109 | 0.619478 | Strife-AI |
e313eb0cc8e54a5122e9878a2e2061a088ba92b8 | 848 | cpp | C++ | Logger.cpp | cschladetsch/SimpleCppLogger | 4a1fa285f6895e7c2f9f72505e33287e9cbdb9e2 | [
"MIT"
] | null | null | null | Logger.cpp | cschladetsch/SimpleCppLogger | 4a1fa285f6895e7c2f9f72505e33287e9cbdb9e2 | [
"MIT"
] | null | null | null | Logger.cpp | cschladetsch/SimpleCppLogger | 4a1fa285f6895e7c2f9f72505e33287e9cbdb9e2 | [
"MIT"
] | null | null | null | #include <sstream>
#include <ctime>
#include <stdarg.h>
#include "Logger.h"
namespace KAI
{
Logger::Logger(const char *logFileName)
: _log(new std::ofstream(logFileName))
{
Log("Started at %s", GetTimeNow().c_str());
}
Logger::~Logger()
{
Log("Ended at %s", GetTimeNow().c_str());
_log.release();
}
... | 19.272727 | 60 | 0.634434 | cschladetsch |
e317b8d606c9e2559b622971d2eb880dd333c651 | 1,396 | cc | C++ | python_bindings.cc | JackMaguire/RobotsAsAGraph | 23208be8cfc34cd1f4db9f3cb7b680286e690f07 | [
"MIT"
] | null | null | null | python_bindings.cc | JackMaguire/RobotsAsAGraph | 23208be8cfc34cd1f4db9f3cb7b680286e690f07 | [
"MIT"
] | null | null | null | python_bindings.cc | JackMaguire/RobotsAsAGraph | 23208be8cfc34cd1f4db9f3cb7b680286e690f07 | [
"MIT"
] | null | null | null | //g++ python_bindings.cc -o robots_core$(python3-config --extension-suffix) -O3 -Wall -Wextra -Iinclude -Iextern/RobotsCore/extern/pybind11/include -std=c++17 -fPIC $(python3 -m pybind11 --includes) -shared -Iextern/RobotsCore/include/
#include "deserialize.hh"
#define RC_EXPAND_PYMODULE
#include "core_python_binding... | 30.347826 | 235 | 0.626791 | JackMaguire |
e31f11248c8434f5c5a9a6cb358445116bb99ab6 | 2,655 | cpp | C++ | src/permutationpool.cpp | sraaphorst/nibac | 288fcc4012065cf8b15dab4fc5f0c829b2b4a65c | [
"Apache-2.0"
] | null | null | null | src/permutationpool.cpp | sraaphorst/nibac | 288fcc4012065cf8b15dab4fc5f0c829b2b4a65c | [
"Apache-2.0"
] | 9 | 2018-05-06T20:27:49.000Z | 2018-10-24T23:28:24.000Z | src/permutationpool.cpp | sraaphorst/nibac | 288fcc4012065cf8b15dab4fc5f0c829b2b4a65c | [
"Apache-2.0"
] | null | null | null | /**
* permutationpool.cpp
*
* By Sebastian Raaphorst, 2003 - 2018.
*/
#include <assert.h>
#include <string.h>
#include "common.h"
#include "permutationpool.h"
namespace vorpal::nibac {
// Static initializer.
PermutationPool *PermutationPool::staticpool = nullptr;
PermutationPool::PermutationPool(int pper... | 23.918919 | 96 | 0.59774 | sraaphorst |
e31f7bc7a885b2f1066f920a505d15af345f84e3 | 4,233 | cpp | C++ | src/Services/NotificationService/NotificationService.cpp | irov/Mengine | b76e9f8037325dd826d4f2f17893ac2b236edad8 | [
"MIT"
] | 39 | 2016-04-21T03:25:26.000Z | 2022-01-19T14:16:38.000Z | src/Services/NotificationService/NotificationService.cpp | irov/Mengine | b76e9f8037325dd826d4f2f17893ac2b236edad8 | [
"MIT"
] | 23 | 2016-06-28T13:03:17.000Z | 2022-02-02T10:11:54.000Z | src/Services/NotificationService/NotificationService.cpp | irov/Mengine | b76e9f8037325dd826d4f2f17893ac2b236edad8 | [
"MIT"
] | 14 | 2016-06-22T20:45:37.000Z | 2021-07-05T12:25:19.000Z | #include "NotificationService.h"
#include "Interface/ThreadServiceInterface.h"
#include "Interface/LoggerServiceInterface.h"
#include "Kernel/Assertion.h"
#include "Kernel/AssertionMemoryPanic.h"
#include "Kernel/Logger.h"
#include "Kernel/DocumentHelper.h"
#include "Kernel/MixinDebug.h"
#include "Config/... | 34.137097 | 156 | 0.46799 | irov |
e31ff11040827b2d4431ccbf0a5f97e7212bbc3a | 1,397 | cpp | C++ | kattis/ceiling/ceiling.cpp | pi-guy-in-the-sky/competitive-programming | e079f6caf07b5de061ea4f56218f9b577e49a965 | [
"MIT"
] | null | null | null | kattis/ceiling/ceiling.cpp | pi-guy-in-the-sky/competitive-programming | e079f6caf07b5de061ea4f56218f9b577e49a965 | [
"MIT"
] | null | null | null | kattis/ceiling/ceiling.cpp | pi-guy-in-the-sky/competitive-programming | e079f6caf07b5de061ea4f56218f9b577e49a965 | [
"MIT"
] | 1 | 2020-10-25T05:46:57.000Z | 2020-10-25T05:46:57.000Z | #include <iostream>
#include <unordered_map>
#include <string>
using namespace std;
struct node {
int n;
node* left = nullptr;
node* right = nullptr;
};
string traverse(node* root, int depth) {
if (root == nullptr)
return "";
string ans;
ans += traverse(root->left, depth + 1);
... | 17.683544 | 44 | 0.435934 | pi-guy-in-the-sky |
e321a4e23afd384010e8cff78aa651118c22eb09 | 17,656 | cpp | C++ | source/tool/toolSettings/effects/TSet_Effects.cpp | chromaScript/chroma.io | c484354df6f3c84a049ffadfe37c677c0ccb6390 | [
"MIT"
] | null | null | null | source/tool/toolSettings/effects/TSet_Effects.cpp | chromaScript/chroma.io | c484354df6f3c84a049ffadfe37c677c0ccb6390 | [
"MIT"
] | null | null | null | source/tool/toolSettings/effects/TSet_Effects.cpp | chromaScript/chroma.io | c484354df6f3c84a049ffadfe37c677c0ccb6390 | [
"MIT"
] | null | null | null | #include "../../../include/tool/ToolSettings.h"
#include "../../../include/input/keys.h"
#include "../../../include/math/Color.h"
class CFunction;
#include "../../../include/cscript/CInterpreter.h"
#include "../../../include/cscript/CObject.h"
#include "../../../include/tool/Tool.h"
#include <glm.hpp>
#include <gtx/r... | 32.940299 | 149 | 0.649411 | chromaScript |
e328c8e786d0fdff885335a27bb7196783d9730c | 768 | cpp | C++ | algorithm/hw11v2.cpp | scott306lr/coding_exercise | 2bca11a1e68b468d6c5422f8cec2eb9e090664f7 | [
"MIT"
] | null | null | null | algorithm/hw11v2.cpp | scott306lr/coding_exercise | 2bca11a1e68b468d6c5422f8cec2eb9e090664f7 | [
"MIT"
] | null | null | null | algorithm/hw11v2.cpp | scott306lr/coding_exercise | 2bca11a1e68b468d6c5422f8cec2eb9e090664f7 | [
"MIT"
] | null | null | null | //#include <bits/stdc++.h>
#include <iostream>
#include <vector>
#include <algorithm>
#include <map>
#include <unordered_map>
#include <queue>
using namespace std;
typedef pair<int,int> pii;
int n;
string inpu;
int dp[7001][7001];
int main(){
cin.tie(0), cout.sync_with_stdio(0);
cin >> n ;
cin >> inpu;
for(int... | 17.860465 | 67 | 0.50651 | scott306lr |
e32a56901bc8e6b167f512cb99dde00a4a660f0f | 820 | cpp | C++ | Day24/stringpal.cpp | Yashdew/DSA | d211d3b53acd28879233e55b77745b60ff44410f | [
"MIT"
] | 4 | 2021-04-13T11:04:45.000Z | 2021-12-06T16:32:28.000Z | Day24/stringpal.cpp | Yashdew/DSA | d211d3b53acd28879233e55b77745b60ff44410f | [
"MIT"
] | null | null | null | Day24/stringpal.cpp | Yashdew/DSA | d211d3b53acd28879233e55b77745b60ff44410f | [
"MIT"
] | null | null | null | // { Driver Code Starts
#include <bits/stdc++.h>
using namespace std;
// } Driver Code Ends
//User function template for C++
class Solution{
public:
int isPlaindrome(string S)
{
string temp;
for(int i=S.length()-1;i>=0;i--)
{
temp=temp+S[i];
}
int flag=1;
for(int... | 14.137931 | 40 | 0.457317 | Yashdew |
e32c61f9390667d34a444ecd0e03e60c7811fd0b | 4,278 | cpp | C++ | Engine/Source/Editor/Kismet/Private/WorkflowCentricApplication.cpp | PopCap/GameIdea | 201e1df50b2bc99afc079ce326aa0a44b178a391 | [
"BSD-2-Clause"
] | null | null | null | Engine/Source/Editor/Kismet/Private/WorkflowCentricApplication.cpp | PopCap/GameIdea | 201e1df50b2bc99afc079ce326aa0a44b178a391 | [
"BSD-2-Clause"
] | 2 | 2015-06-21T17:38:11.000Z | 2015-06-22T20:54:42.000Z | Engine/Source/Editor/Kismet/Private/WorkflowCentricApplication.cpp | PopCap/GameIdea | 201e1df50b2bc99afc079ce326aa0a44b178a391 | [
"BSD-2-Clause"
] | null | null | null | // Copyright 1998-2015 Epic Games, Inc. All Rights Reserved.
#include "BlueprintEditorPrivatePCH.h"
#include "BlueprintEditor.h"
#include "Editor/WorkspaceMenuStructure/Public/WorkspaceMenuStructureModule.h"
#define LOCTEXT_NAMESPACE "WorkflowCentricApplication"
/////////////////////////////////////////////////////
... | 29.708333 | 184 | 0.765778 | PopCap |
e32d7b824fbdec67073908ec6c0473bc2e92d48b | 178 | hpp | C++ | include/kbrica.hpp | ktnyt/KBriCA | 1167d3ac08daae2858388a7e4db745c6e65fd3c7 | [
"MIT"
] | null | null | null | include/kbrica.hpp | ktnyt/KBriCA | 1167d3ac08daae2858388a7e4db745c6e65fd3c7 | [
"MIT"
] | null | null | null | include/kbrica.hpp | ktnyt/KBriCA | 1167d3ac08daae2858388a7e4db745c6e65fd3c7 | [
"MIT"
] | null | null | null | #ifndef __KBRICA_HPP__
#define __KBRICA_HPP__
#include "kbrica/buffer.hpp"
#include "kbrica/component.hpp"
#include "kbrica/functor.hpp"
#include "kbrica/scheduler.hpp"
#endif
| 17.8 | 31 | 0.786517 | ktnyt |
e32ec57092453a85db34f74630d5d7e470a2b474 | 5,803 | hpp | C++ | src/pyprx/utilities/spaces/space_py.hpp | aravindsiv/ML4KP | 064015a7545e1713cbcad3e79807b5cec0849f54 | [
"MIT"
] | 3 | 2021-05-31T11:28:03.000Z | 2021-05-31T13:49:30.000Z | src/pyprx/utilities/spaces/space_py.hpp | aravindsiv/ML4KP | 064015a7545e1713cbcad3e79807b5cec0849f54 | [
"MIT"
] | 1 | 2021-09-03T09:39:32.000Z | 2021-12-10T22:17:56.000Z | src/pyprx/utilities/spaces/space_py.hpp | aravindsiv/ML4KP | 064015a7545e1713cbcad3e79807b5cec0849f54 | [
"MIT"
] | 2 | 2021-09-03T09:17:45.000Z | 2021-10-04T15:52:58.000Z | #include <iostream>
#include <boost/python.hpp>
#include <boost/python/copy_const_reference.hpp>
#include <boost/python/return_value_policy.hpp>
#include "prx/utilities/spaces/space.hpp"
// #include "prx/simulation/plants/two_link_acrobot.hpp"
// #include "prx/simulation/plant.hpp"
using namespace boost::python;
in... | 41.45 | 168 | 0.666552 | aravindsiv |
e32f4aa2f96b990e21fa13f455fc4d5a2b554e43 | 410 | cpp | C++ | test_package/example.cpp | planetmarshall/h5jpegls | d7fc828c5d2467b1c5d2ff8aa342e0ecf98530f7 | [
"Apache-2.0"
] | null | null | null | test_package/example.cpp | planetmarshall/h5jpegls | d7fc828c5d2467b1c5d2ff8aa342e0ecf98530f7 | [
"Apache-2.0"
] | 1 | 2021-10-09T07:02:06.000Z | 2021-10-10T08:57:03.000Z | test_package/example.cpp | planetmarshall/jpegls-hdf-filter | d7fc828c5d2467b1c5d2ff8aa342e0ecf98530f7 | [
"Apache-2.0"
] | null | null | null | #include <h5jpegls/h5jpegls.h>
#include <hdf5.h>
#include <iostream>
int main() {
constexpr int filter_id = 32012;
h5jpegls::register_plugin();
auto filter_available = H5Zfilter_avail(filter_id);
if (filter_available <= 0 ) {
std::cerr << "JPEG-LS Filter not available" << std::endl;
re... | 22.777778 | 65 | 0.626829 | planetmarshall |
e3326e47ac9e818459de023d95fe37de8fef4a14 | 266 | cpp | C++ | cd_sect.cpp | k-team/xml-parser | 2da965da9338a62bd8f0cd7021b4a2893951deae | [
"MIT"
] | 1 | 2017-06-12T05:42:31.000Z | 2017-06-12T05:42:31.000Z | cd_sect.cpp | k-team/xml-parser | 2da965da9338a62bd8f0cd7021b4a2893951deae | [
"MIT"
] | null | null | null | cd_sect.cpp | k-team/xml-parser | 2da965da9338a62bd8f0cd7021b4a2893951deae | [
"MIT"
] | null | null | null | #include "cd_sect.h"
CDSect::CDSect(std::string const & s):
_sect(s)
{
}
CDSect::~CDSect()
{
}
std::string CDSect::str() const
{
return "<![CDATA[" + _sect + "]]>";
}
std::string const & CDSect::sect() const
{
return _sect;
}
// vim:ft=cpp et sw=2 sts=2:
| 11.565217 | 40 | 0.586466 | k-team |
e3361f47117bc99d9a5e0a1c0f2c70e4881d2f7d | 732 | cpp | C++ | MegaManKS/Kashif_MegaMan/BulletObject.cpp | Kashif-S/Megaman | bee2e9b72625834b16b3de119361187ff2510a98 | [
"MIT"
] | null | null | null | MegaManKS/Kashif_MegaMan/BulletObject.cpp | Kashif-S/Megaman | bee2e9b72625834b16b3de119361187ff2510a98 | [
"MIT"
] | null | null | null | MegaManKS/Kashif_MegaMan/BulletObject.cpp | Kashif-S/Megaman | bee2e9b72625834b16b3de119361187ff2510a98 | [
"MIT"
] | null | null | null | #include "StdAfx.h"
#include "BulletObject.h"
#include "resource.h"
#include <Math.h>
BulletObject::BulletObject(int i, int m) : GraphicsObject(i, m, 0, 0)
{
fired = false;
exploding = false;
height = 12;
width = 12;
hitHeight = 12;
hitWidth = 12;
distanceTravelled = 0;
maxDistance = 460;
xspeed = 0;
yspeed... | 14.352941 | 69 | 0.644809 | Kashif-S |
e336b96e710452136edad6c9de1a4da2630f1d88 | 2,890 | cpp | C++ | ospray/mpi/async/Messaging.cpp | mathstuf/ospray | 5c34884317b5bb84346e4e1e2e2bf8c7f50d307c | [
"Apache-2.0"
] | 1 | 2016-05-24T19:27:01.000Z | 2016-05-24T19:27:01.000Z | ospray/mpi/async/Messaging.cpp | mathstuf/ospray | 5c34884317b5bb84346e4e1e2e2bf8c7f50d307c | [
"Apache-2.0"
] | null | null | null | ospray/mpi/async/Messaging.cpp | mathstuf/ospray | 5c34884317b5bb84346e4e1e2e2bf8c7f50d307c | [
"Apache-2.0"
] | null | null | null | // ======================================================================== //
// Copyright 2009-2016 Intel Corporation //
// //
// Licensed under the Apache License, Version 2.0 (the "License"); //
// y... | 36.125 | 79 | 0.509343 | mathstuf |
e338683758915ac692d64ed7e2474aa9a32b8aa4 | 3,208 | hpp | C++ | include/amtrs/.driver/g3d-vulkan-api-vkimage.hpp | isaponsoft/libamtrs | 5adf821ee15592fc3280985658ca8a4b175ffcaa | [
"BSD-2-Clause-FreeBSD"
] | 1 | 2019-12-10T02:12:49.000Z | 2019-12-10T02:12:49.000Z | include/amtrs/.driver/g3d-vulkan-api-vkimage.hpp | isaponsoft/libamtrs | 5adf821ee15592fc3280985658ca8a4b175ffcaa | [
"BSD-2-Clause-FreeBSD"
] | null | null | null | include/amtrs/.driver/g3d-vulkan-api-vkimage.hpp | isaponsoft/libamtrs | 5adf821ee15592fc3280985658ca8a4b175ffcaa | [
"BSD-2-Clause-FreeBSD"
] | null | null | null | /* Copyright (c) 2019, isaponsoft (Isao Shibuya) All rights reserved. *
* Use of this source code is governed by a BSD-style license that *
* can be found in the LICENSE file. */
#ifndef __libamtrs__g3d__vulkan__vkimage__hpp
#define __libamtrs__g3d__vulkan__vkimage__hpp
AMTRS_G3D_... | 27.186441 | 140 | 0.674875 | isaponsoft |
e33a75ec8cce99e873e1abb44118b03437549e92 | 2,232 | hpp | C++ | bootloader/bootloader32/src/Bootloader32.hpp | Rzuwik/FunnyOS | a93a45babf575d08cf2704a8394ac1455f3ad4db | [
"MIT"
] | null | null | null | bootloader/bootloader32/src/Bootloader32.hpp | Rzuwik/FunnyOS | a93a45babf575d08cf2704a8394ac1455f3ad4db | [
"MIT"
] | null | null | null | bootloader/bootloader32/src/Bootloader32.hpp | Rzuwik/FunnyOS | a93a45babf575d08cf2704a8394ac1455f3ad4db | [
"MIT"
] | null | null | null | #ifndef FUNNYOS_BOOTLOADER_BOOTLOADER32_SRC_BOOTLOADER32_HPP
#define FUNNYOS_BOOTLOADER_BOOTLOADER32_SRC_BOOTLOADER32_HPP
#include <FunnyOS/Bootparams/Parameters.hpp>
#include <FunnyOS/Misc/MemoryAllocator/StaticMemoryAllocator.hpp>
namespace FunnyOS::Bootloader32 {
/**
* 32-bit implementation of Bootloader... | 30.575342 | 111 | 0.625448 | Rzuwik |
e34283713e63805eb7842b2bfc5a72bab85d211a | 819 | cpp | C++ | src/array19.lib/array19/Array.test.cpp | Fettpet/co-cpp19 | 928a835c4f66032aa88ce01df7899da86d37df22 | [
"MIT"
] | 8 | 2020-05-31T16:13:13.000Z | 2022-01-12T08:52:42.000Z | src/array19.lib/array19/Array.test.cpp | Fettpet/co-cpp19 | 928a835c4f66032aa88ce01df7899da86d37df22 | [
"MIT"
] | null | null | null | src/array19.lib/array19/Array.test.cpp | Fettpet/co-cpp19 | 928a835c4f66032aa88ce01df7899da86d37df22 | [
"MIT"
] | 2 | 2020-07-21T10:58:28.000Z | 2021-07-26T06:52:05.000Z | #include "Array.h"
using namespace array19;
void constexpr_Array_test() {
constexpr auto a = Array{1, 2, 3};
static_assert(a.count == 3);
static_assert(a[1] == 2);
constexpr auto s = [&] {
auto s = 0;
for (auto v : a) s += v;
return s;
}();
static_asser... | 19.5 | 41 | 0.481074 | Fettpet |
e34313b102e444a8e0b1c760606586592d5d38a7 | 2,227 | cpp | C++ | Server/src/orm/QueryBuilder.cpp | Vyraax/Linguini | f89ba9d030fea289347d9c99758231c86e3dbec0 | [
"MIT"
] | 3 | 2021-04-19T20:38:54.000Z | 2021-09-13T12:17:35.000Z | Server/src/orm/QueryBuilder.cpp | Vyraax/Linguini | f89ba9d030fea289347d9c99758231c86e3dbec0 | [
"MIT"
] | null | null | null | Server/src/orm/QueryBuilder.cpp | Vyraax/Linguini | f89ba9d030fea289347d9c99758231c86e3dbec0 | [
"MIT"
] | 1 | 2021-09-13T12:17:36.000Z | 2021-09-13T12:17:36.000Z | #include "QueryBuilder.h"
#include "../application/Model.h"
std::string QueryBuilder::createTable(Model* model)
{
std::string str = "CREATE TABLE IF NOT EXISTS " + Utils::upper(model->name) + " (\n";
std::vector<std::string> fields;
for (auto field : model->schema)
{
std::string out = " `" + field.name + '`';
... | 21.209524 | 115 | 0.5815 | Vyraax |
e34354ea40541f841beec5f72f7cbe0833cc1773 | 807 | hpp | C++ | include/disccord/rest/models/create_dm_channel_args.hpp | FiniteReality/disccord | 1b89cde8031a1d6f9d43fa8f39dbc0959c8639ff | [
"MIT"
] | 44 | 2016-09-19T15:28:25.000Z | 2018-08-09T13:17:40.000Z | include/disccord/rest/models/create_dm_channel_args.hpp | FiniteReality/disccord | 1b89cde8031a1d6f9d43fa8f39dbc0959c8639ff | [
"MIT"
] | 44 | 2016-11-03T17:27:30.000Z | 2017-12-10T16:17:31.000Z | include/disccord/rest/models/create_dm_channel_args.hpp | FiniteReality/disccord | 1b89cde8031a1d6f9d43fa8f39dbc0959c8639ff | [
"MIT"
] | 13 | 2016-11-01T00:17:20.000Z | 2018-08-03T19:51:16.000Z | #ifndef _create_dm_channel_args_hpp_
#define _create_dm_channel_args_hpp_
#include <disccord/models/model.hpp>
namespace disccord
{
namespace rest
{
namespace models
{
class create_dm_channel_args : public disccord::models::model
{
public:
... | 24.454545 | 79 | 0.536555 | FiniteReality |
e3437f9c2d621ce8c1b96dc6bdf4cb40898ae75e | 3,570 | tcc | C++ | pcre2++/private/format.tcc | sjinks/pcre2pp | f9d842075704e5383ad2d4ce3e3748e40bc0b070 | [
"MIT"
] | 5 | 2018-03-02T19:14:32.000Z | 2021-08-13T19:24:57.000Z | pcre2++/private/format.tcc | sjinks/pcre2pp | f9d842075704e5383ad2d4ce3e3748e40bc0b070 | [
"MIT"
] | 12 | 2017-08-08T07:18:25.000Z | 2021-08-14T08:33:49.000Z | pcre2++/private/format.tcc | sjinks/pcre2pp | f9d842075704e5383ad2d4ce3e3748e40bc0b070 | [
"MIT"
] | 1 | 2018-07-10T09:50:28.000Z | 2018-07-10T09:50:28.000Z | #ifndef PCRE2XX_MATCH_RESULTS_H
#error "Please include pcre2++/match_results.h instead"
#endif
#include <algorithm>
template<typename BiIter, typename Alloc>
template<typename OutIter>
OutIter pcre2::match_results<BiIter, Alloc>::format(OutIter out, const char_type* fmt_first, const char_type* fmt_last, match_flag_ty... | 25.683453 | 144 | 0.432213 | sjinks |
e34dbe3bf0221a26dbb30e993a60a15198a9d8b6 | 3,104 | cpp | C++ | GPcode04_01_2DRigid/GPcode04_01_2DRigid/Hovercraft.cpp | dknife/Lectures | cc00046bebd0d38c07a6442cd4d7af6c06624c1d | [
"Unlicense"
] | 1 | 2016-04-20T13:00:29.000Z | 2016-04-20T13:00:29.000Z | GPcode04_01_2DRigid/GPcode04_01_2DRigid/Hovercraft.cpp | dknife/Lectures | cc00046bebd0d38c07a6442cd4d7af6c06624c1d | [
"Unlicense"
] | null | null | null | GPcode04_01_2DRigid/GPcode04_01_2DRigid/Hovercraft.cpp | dknife/Lectures | cc00046bebd0d38c07a6442cd4d7af6c06624c1d | [
"Unlicense"
] | null | null | null | //
// Hovercraft.cpp
// GPcode0401_Xcode
//
// Created by young-min kang on 4/22/15.
// Copyright (c) 2015 young-min kang. All rights reserved.
//
#include "Hovercraft.h"
#include <math.h>
CHovercraft::CHovercraft() :
mass(1.0), inertia(0.1), angle(0.0), aVel(0.0), torque(0.0) {
loc.set(0.0, 0.0, 0.0);
... | 24.25 | 69 | 0.546714 | dknife |
e34f69e8be125a8e4133e8c75bdf984e39b6db7c | 3,891 | cpp | C++ | src/cuda/Testing/MDR/test_refactor.cpp | cjy7117/MGARD-Research | 34706abbdc99acaa69662fdba367ce9cd37f27b9 | [
"Apache-2.0"
] | null | null | null | src/cuda/Testing/MDR/test_refactor.cpp | cjy7117/MGARD-Research | 34706abbdc99acaa69662fdba367ce9cd37f27b9 | [
"Apache-2.0"
] | null | null | null | src/cuda/Testing/MDR/test_refactor.cpp | cjy7117/MGARD-Research | 34706abbdc99acaa69662fdba367ce9cd37f27b9 | [
"Apache-2.0"
] | null | null | null | #include <iostream>
#include <ctime>
#include <cstdlib>
#include <vector>
#include <iomanip>
#include <cmath>
#include <bitset>
// #include "utils.hpp"
#include "cuda/MDR/Refactor/Refactor.hpp"
using namespace std;
template <class T, class Refactor>
void evaluate(const vector<T>& data, const vector<uint32_t>& dims, i... | 45.244186 | 223 | 0.685942 | cjy7117 |
e35425c24d11cd3f1be368b1687569ecf3efb316 | 231 | cpp | C++ | test/ut/algo/empty_test.cpp | godsme/tl-ranges | 949270a40c6d9e57a2129c75cb0ee21886783dce | [
"Apache-2.0"
] | 1 | 2021-10-30T13:48:47.000Z | 2021-10-30T13:48:47.000Z | test/ut/algo/empty_test.cpp | godsme/type-list-2 | 949270a40c6d9e57a2129c75cb0ee21886783dce | [
"Apache-2.0"
] | null | null | null | test/ut/algo/empty_test.cpp | godsme/type-list-2 | 949270a40c6d9e57a2129c75cb0ee21886783dce | [
"Apache-2.0"
] | null | null | null | //
// Created by Darwin Yuan on 2021/7/28.
//
#include <type-list/algo/empty.h>
#include <catch.hpp>
using namespace holo;
SCENARIO("empty") {
static_assert(!empty(tuple_c<int, long>));
static_assert(empty(tuple_c<>));
}
| 17.769231 | 46 | 0.675325 | godsme |
e355d794905e9934b93e7b68230e075f2233d7b2 | 1,418 | hpp | C++ | src/libraries/sampling/include/buildPatch.hpp | MrAwesomeRocks/caelus-cml | 55b6dc5ba47d0e95c07412d9446ac72ac11d7fd7 | [
"mpich2"
] | null | null | null | src/libraries/sampling/include/buildPatch.hpp | MrAwesomeRocks/caelus-cml | 55b6dc5ba47d0e95c07412d9446ac72ac11d7fd7 | [
"mpich2"
] | null | null | null | src/libraries/sampling/include/buildPatch.hpp | MrAwesomeRocks/caelus-cml | 55b6dc5ba47d0e95c07412d9446ac72ac11d7fd7 | [
"mpich2"
] | null | null | null |
IOdictionary planeToPatchDict
(
IOobject
(
"planeToPatchDict",
runTime.system(),
runTime,
IOobject::MUST_READ_IF_MODIFIED,
IOobject::NO_WRITE
)
);
Switch planeMapping
(
planeToPatchDict.lookup("mappingPlane")
);
Info << "Constructing planePatch" << endl;
cuttin... | 17.084337 | 78 | 0.686178 | MrAwesomeRocks |
e356791ff030ab80a56f80c2b3608477f2854080 | 783 | hpp | C++ | test/control.hpp | cynodelic/mulinum | fc7b9e750aadaede2cee8d840e65fa3832787764 | [
"BSL-1.0"
] | null | null | null | test/control.hpp | cynodelic/mulinum | fc7b9e750aadaede2cee8d840e65fa3832787764 | [
"BSL-1.0"
] | null | null | null | test/control.hpp | cynodelic/mulinum | fc7b9e750aadaede2cee8d840e65fa3832787764 | [
"BSL-1.0"
] | null | null | null | // Copyright (c) 2019 Álvaro Ceballos
// Distributed under the Boost Software License, Version 1.0.
// See accompanying file LICENSE or copy at http://www.boost.org/LICENSE_1_0.txt
#ifndef CYNODELIC_MULINUM_TEST_CONTROL_HPP
#define CYNODELIC_MULINUM_TEST_CONTROL_HPP
CYNODELIC_TESTER_TEST_CASE_SINGLE_SECTION(control)... | 34.043478 | 86 | 0.780332 | cynodelic |
e35e9ea0fe934ea8f34c5ba38a8afebf7938a98c | 1,529 | cpp | C++ | 2020day18/test.cpp | AntonJoha/AdventOfCode | 3349f789adf3dc1d8062d56ba3efb20fbb0ee335 | [
"MIT"
] | null | null | null | 2020day18/test.cpp | AntonJoha/AdventOfCode | 3349f789adf3dc1d8062d56ba3efb20fbb0ee335 | [
"MIT"
] | null | null | null | 2020day18/test.cpp | AntonJoha/AdventOfCode | 3349f789adf3dc1d8062d56ba3efb20fbb0ee335 | [
"MIT"
] | null | null | null | #include <fstream>
#include <iostream>
#include <list>
#include "run.h"
typedef bool (*test)();
std::list<test> testcases;
void testRun(){
int i = 1;
for (test t : testcases){
if (t())
{
std::cout << "Passed test: " << i << "\n";
}
else
{
std::cout << "Didn't pass test: " << i << "\n";
}
++... | 12.532787 | 58 | 0.626553 | AntonJoha |
e3620eabfc5755933fc365f62e5355c3d1d97366 | 4,012 | hpp | C++ | include/slim/types/Regexp.hpp | wnewbery/cpp-slim | c7087294b55db5d7ca846438ebddfaec395d1a12 | [
"MIT"
] | 3 | 2017-12-24T23:35:04.000Z | 2019-03-16T09:35:46.000Z | include/slim/types/Regexp.hpp | wnewbery/cpp-slim | c7087294b55db5d7ca846438ebddfaec395d1a12 | [
"MIT"
] | 98 | 2016-07-01T14:55:03.000Z | 2020-03-13T14:12:49.000Z | include/slim/types/Regexp.hpp | wnewbery/cpp-slim | c7087294b55db5d7ca846438ebddfaec395d1a12 | [
"MIT"
] | 2 | 2019-04-03T12:16:14.000Z | 2020-03-13T14:13:25.000Z | #pragma once
#include "Object.hpp"
#include "Type.hpp"
#include <regex>
#include <unordered_map>
#include <vector>
#include <cassert>
namespace slim
{
class Array;
class Number;
class String;
class Regexp;
/**MatchData for Regexp.*/
class MatchData : public Object
{
public:
stati... | 31.590551 | 97 | 0.603938 | wnewbery |
e3629d4551983d66ecac534029cc457243546b04 | 17,491 | cpp | C++ | src/cryptopp/test/cryptor/tst_cryptortest.cpp | karagog/gutil | 43936af9bc4be1945e4f1a3656e91dfbf42cc35b | [
"Apache-2.0"
] | null | null | null | src/cryptopp/test/cryptor/tst_cryptortest.cpp | karagog/gutil | 43936af9bc4be1945e4f1a3656e91dfbf42cc35b | [
"Apache-2.0"
] | 2 | 2015-01-30T21:47:55.000Z | 2015-02-10T00:22:27.000Z | src/cryptopp/test/cryptor/tst_cryptortest.cpp | karagog/gutil | 43936af9bc4be1945e4f1a3656e91dfbf42cc35b | [
"Apache-2.0"
] | null | null | null | /*Copyright 2014 George Karagoulis
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 writing, softwar... | 30.525305 | 132 | 0.629238 | karagog |
e36316248b6eaf033e042bd80ed91df5fa0634b4 | 11,674 | cpp | C++ | utils/createGrid/main.cpp | basselin7u/GPU-Restricted-Power-Diagrams | 196e7d79125fb7edc75ed7b8f13990a7877c48f3 | [
"MIT"
] | 2 | 2021-04-06T20:29:42.000Z | 2021-04-08T12:37:13.000Z | utils/createGrid/main.cpp | basselin7u/GPU-Restricted-Power-Diagrams | 196e7d79125fb7edc75ed7b8f13990a7877c48f3 | [
"MIT"
] | null | null | null | utils/createGrid/main.cpp | basselin7u/GPU-Restricted-Power-Diagrams | 196e7d79125fb7edc75ed7b8f13990a7877c48f3 | [
"MIT"
] | 1 | 2022-01-24T12:42:52.000Z | 2022-01-24T12:42:52.000Z | /* -*- Mode: C++; c-default-style: "k&r"; indent-tabs-mode: nil; tab-width: 2; c-basic-offset: 2 -*- */
/*
* GEOGRAM example program:
* compute Restricted Voronoi diagrams, i.e.
* intersection between a Voronoi diagram and a
* tetrahedral mesh (or a triangulated mesh).
*/
/*
* Copyright (c) 2012-2014, Bruno L... | 38.150327 | 167 | 0.602279 | basselin7u |
e364e14e47809e5eef2dee638ffc418c30657ff9 | 1,119 | cpp | C++ | src/osgEarthBuildings/ElevationsLodNode.cpp | VTMAK/osgearth-buildings | 84e3f2cfb352bfeae27944ef62b68ffd8fd98a28 | [
"MIT"
] | 3 | 2017-12-05T06:38:28.000Z | 2021-12-07T06:19:39.000Z | src/osgEarthBuildings/ElevationsLodNode.cpp | VTMAK/osgearth-buildings | 84e3f2cfb352bfeae27944ef62b68ffd8fd98a28 | [
"MIT"
] | null | null | null | src/osgEarthBuildings/ElevationsLodNode.cpp | VTMAK/osgearth-buildings | 84e3f2cfb352bfeae27944ef62b68ffd8fd98a28 | [
"MIT"
] | 3 | 2017-12-03T09:48:04.000Z | 2021-12-07T06:19:41.000Z |
#include "ElevationsLodNode"
#include <osgDB/ObjectWrapper>
namespace osgEarth {
namespace Buildings
{
ElevationsLodNode::ElevationsLodNode() {
;
}
ElevationsLodNode::ElevationsLodNode(const ElevationsLodNode& rhs, const osg::CopyOp& copyop)
{
elevationsLOD = rhs.eleva... | 26.642857 | 99 | 0.631814 | VTMAK |
e368e025e8a43f2d44d3e8753bde8c6db5c0fef5 | 3,659 | cpp | C++ | src/ANM/Tools/Inout/Test/TestModesWriter.cpp | victor-gil-sepulveda/PhD-ANMInternalCoordinates | c49b8627f08f614cef764692dee8627c182d9b6c | [
"MIT"
] | 2 | 2018-01-16T22:37:46.000Z | 2019-07-25T01:08:59.000Z | src/ANM/Tools/Inout/Test/TestModesWriter.cpp | victor-gil-sepulveda/PhD-ANMInternalCoordinates | c49b8627f08f614cef764692dee8627c182d9b6c | [
"MIT"
] | null | null | null | src/ANM/Tools/Inout/Test/TestModesWriter.cpp | victor-gil-sepulveda/PhD-ANMInternalCoordinates | c49b8627f08f614cef764692dee8627c182d9b6c | [
"MIT"
] | null | null | null | /////////////////////////////////////////////////////////////////////////////
/// \file TestModesLoader.cpp
///
/// \brief bla
///
/// \copyright Copyright 2010-2014 BARCELONA SUPERCOMPUTING CENTER. See the COPYRIGHT file at the top-level directory of this distribution.
///
/// \author priera
/// \date May 2, 2014
////... | 31.008475 | 139 | 0.725881 | victor-gil-sepulveda |
e36925a74858e06658647e2c3d7e61995f2af31a | 5,818 | cpp | C++ | src/common/portmgr.cpp | kingtaurus/vogl | a7317fa38e9d909ada4e941ca7dc2df1e4415b37 | [
"MIT"
] | 497 | 2015-01-02T19:45:01.000Z | 2022-03-04T19:22:07.000Z | src/common/portmgr.cpp | kingtaurus/vogl | a7317fa38e9d909ada4e941ca7dc2df1e4415b37 | [
"MIT"
] | 40 | 2015-01-05T21:04:20.000Z | 2020-03-25T07:01:59.000Z | src/common/portmgr.cpp | kingtaurus/vogl | a7317fa38e9d909ada4e941ca7dc2df1e4415b37 | [
"MIT"
] | 85 | 2015-01-02T22:29:00.000Z | 2021-11-28T02:42:48.000Z | /**************************************************************************
*
* Copyright 2013-2014 RAD Game Tools and Valve Software
* 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 d... | 28.380488 | 156 | 0.654692 | kingtaurus |
e36d062523c35dbabb5a6398a663939cb38e33cd | 6,530 | cpp | C++ | CubeEngine/EngineSrc/Math/AABB.cpp | tigertv/Cube-Engine | 0677562bf1dfdb9dd0e35ee587874ac9788ad6ac | [
"MIT"
] | 1 | 2020-10-25T17:43:38.000Z | 2020-10-25T17:43:38.000Z | CubeEngine/EngineSrc/Math/AABB.cpp | multithread3/Cube-Engine | aa76db88fdace41b09cbfc51e5959a9686cca3f3 | [
"MIT"
] | null | null | null | CubeEngine/EngineSrc/Math/AABB.cpp | multithread3/Cube-Engine | aa76db88fdace41b09cbfc51e5959a9686cca3f3 | [
"MIT"
] | null | null | null | #include "AABB.h"
#include "math.h"
#include <algorithm>
namespace tzw {
AABB::AABB()
{
reset();
}
AABB::~AABB()
{
}
void AABB::update(vec3 *vec, int num)
{
for (size_t i = 0; i < num; i++)
{
// Leftmost point.
if (vec[i].x < m_min.x)
m_min.setX(vec[i].x);
// Lowest... | 22.832168 | 129 | 0.533231 | tigertv |
e36d993591fe76fbd15ab11ec8228d828faee3fd | 11,288 | cpp | C++ | mathlib/planefit.cpp | DannyParker0001/Kisak-Strike | 99ed85927336fe3aff2efd9b9382b2b32eb1d05d | [
"Unlicense"
] | 252 | 2020-12-16T15:34:43.000Z | 2022-03-31T23:21:37.000Z | cstrike15_src/mathlib/planefit.cpp | bahadiraraz/Counter-Strike-Global-Offensive | 9a0534100cb98ffa1cf0c32e138f0e7971e910d3 | [
"MIT"
] | 23 | 2020-12-20T18:02:54.000Z | 2022-03-28T16:58:32.000Z | cstrike15_src/mathlib/planefit.cpp | bahadiraraz/Counter-Strike-Global-Offensive | 9a0534100cb98ffa1cf0c32e138f0e7971e910d3 | [
"MIT"
] | 42 | 2020-12-19T04:32:33.000Z | 2022-03-30T06:00:28.000Z | //============ Copyright (c) Valve Corporation, All rights reserved. ============
//
// Code to compute the equation of a plane with a least-squares residual fit.
//
//===============================================================================
#include "vplane.h"
#include "mathlib.h"
#include <algorithm>
using nam... | 34.414634 | 264 | 0.634833 | DannyParker0001 |
e36ef2d2b03bbe5ec22bdb7bee6076697fd0f1b1 | 966 | cpp | C++ | widestring.cpp | jesse6548/peparser | 7c304b332739a7cd874c57d5cbede9252b44987a | [
"MIT"
] | 86 | 2016-04-15T21:50:39.000Z | 2022-03-09T05:48:02.000Z | widestring.cpp | jesse6548/peparser | 7c304b332739a7cd874c57d5cbede9252b44987a | [
"MIT"
] | 2 | 2017-07-17T23:27:34.000Z | 2019-05-31T22:28:03.000Z | widestring.cpp | jesse6548/peparser | 7c304b332739a7cd874c57d5cbede9252b44987a | [
"MIT"
] | 24 | 2016-04-15T22:00:07.000Z | 2021-02-13T03:32:29.000Z | // Copyright (c) 2016 SMART Technologies. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
#include "widestring.h"
namespace peparser
{
template<> const char Literals<char>::colon = ':';
template<> const wchar_t Literals<wchar_t>::colon = L':... | 42 | 155 | 0.652174 | jesse6548 |
e37dbef058ac81324252e8686c4165d6c40d1b3c | 800 | hpp | C++ | tui/window.hpp | sk2sat/libtui | 9c338201de2dee59cef2bd8f8788e10659b9b4ee | [
"MIT"
] | 2 | 2020-08-28T20:55:35.000Z | 2021-03-06T21:17:42.000Z | tui/window.hpp | sk2sat/libtui | 9c338201de2dee59cef2bd8f8788e10659b9b4ee | [
"MIT"
] | null | null | null | tui/window.hpp | sk2sat/libtui | 9c338201de2dee59cef2bd8f8788e10659b9b4ee | [
"MIT"
] | 1 | 2018-07-21T12:18:47.000Z | 2018-07-21T12:18:47.000Z | #ifndef TUI_WINDOW_HPP_
#define TUI_WINDOW_HPP_
#include "screen.hpp"
#include "color.hpp"
namespace tui {
class window {
public:
window() : col_bk(color::Black) {
// とりあえずスクリーンと同じサイズ
auto i = screen::get_info();
width = i.width;
height= i.height;
}
window(size_t w, size_t h) : width(w), height(h)... | 21.621622 | 83 | 0.6575 | sk2sat |
e3803317d9816d4d9a606a15755a38b833e5b08f | 2,470 | hpp | C++ | src/lib/spline/SplineGenerator.hpp | roboFiddle/7405M_TowerTakeover_Code | e16ffab17964ff61a25eac2074da78d0d7577caa | [
"MIT"
] | null | null | null | src/lib/spline/SplineGenerator.hpp | roboFiddle/7405M_TowerTakeover_Code | e16ffab17964ff61a25eac2074da78d0d7577caa | [
"MIT"
] | null | null | null | src/lib/spline/SplineGenerator.hpp | roboFiddle/7405M_TowerTakeover_Code | e16ffab17964ff61a25eac2074da78d0d7577caa | [
"MIT"
] | null | null | null | //
// Created by alexweiss on 7/4/19.
//
#ifndef INC_7405M_CODE_SPLINEGENERATOR_HPP
#define INC_7405M_CODE_SPLINEGENERATOR_HPP
#include "Spline.hpp"
#include "CubicHermiteSpline.hpp"
#include "QuinticHermiteSpline.hpp"
#include "../geometry/Pose2dWithCurvature.hpp"
#include <vector>
namespace spline {
class Spli... | 49.4 | 148 | 0.640486 | roboFiddle |
be659ebe792bfff199c19e5666811554721432b3 | 1,115 | cpp | C++ | Algorithms/0131.Palindrome_Partitioning.cpp | metehkaya/LeetCode | 52f4a1497758c6f996d515ced151e8783ae4d4d2 | [
"MIT"
] | 2 | 2020-07-20T06:40:22.000Z | 2021-11-20T01:23:26.000Z | Problems/LeetCode/Problems/0131.Palindrome_Partitioning.cpp | metehkaya/Algo-Archive | 03b5fdcf06f84a03125c57762c36a4e03ca6e756 | [
"MIT"
] | null | null | null | Problems/LeetCode/Problems/0131.Palindrome_Partitioning.cpp | metehkaya/Algo-Archive | 03b5fdcf06f84a03125c57762c36a4e03ca6e756 | [
"MIT"
] | null | null | null | class Solution {
public:
static const int maxn = 16;
bool var[maxn][maxn];
int n;
string s;
vector<string> v;
vector<vector<string>> ans;
void f(int idx) {
if(idx == n) {
ans.push_back(v);
return;
}
string str = "";
for( int i = idx ; i... | 24.777778 | 52 | 0.334529 | metehkaya |
be66ff22032f1aaecb9072748929b4ef5973a7df | 588 | cpp | C++ | src/app.cpp | Neckrome/vectorFieldSurface | 91afebadf9815e6a2dc658cdce82691fddd603ee | [
"MIT"
] | null | null | null | src/app.cpp | Neckrome/vectorFieldSurface | 91afebadf9815e6a2dc658cdce82691fddd603ee | [
"MIT"
] | null | null | null | src/app.cpp | Neckrome/vectorFieldSurface | 91afebadf9815e6a2dc658cdce82691fddd603ee | [
"MIT"
] | null | null | null | #include "app.hpp"
#include "geometry/utils.hpp"
#include "geometry/plane.hpp"
#include "test.hpp"
#include "optim/deformingMesh.hpp"
#include <functional>
#include "geometrycentral/surface/manifold_surface_mesh.h"
#include "geometrycentral/surface/meshio.h"
#include "geometrycentral/surface/vertex_position_g... | 20.275862 | 62 | 0.680272 | Neckrome |
be6bd61fac3d8645d0fefd06bef1360b2e31d4be | 650 | hpp | C++ | tests/helper.hpp | marwage/alzheimer | b58688ea91f9b2ca4ae5457858b0fcc2a6e3e041 | [
"CC0-1.0"
] | null | null | null | tests/helper.hpp | marwage/alzheimer | b58688ea91f9b2ca4ae5457858b0fcc2a6e3e041 | [
"CC0-1.0"
] | null | null | null | tests/helper.hpp | marwage/alzheimer | b58688ea91f9b2ca4ae5457858b0fcc2a6e3e041 | [
"CC0-1.0"
] | null | null | null | // Copyright 2020 Marcel Wagenländer
#ifndef HELPER_HPP
#define HELPER_HPP
#include "sage_linear.hpp"
#include "tensors.hpp"
void save_params(std::vector<Matrix<float> *> parameters);
void save_grads(SageLinearGradients *gradients, std::vector<Matrix<float> *> weight_gradients);
void save_grads(SageLinearGradient... | 26 | 118 | 0.776923 | marwage |
be6e7b4a381fde523f96db80dcaa8714550ad249 | 6,166 | cpp | C++ | z80emu/fuzix-arm/src/main.cpp | Paolo-Maffei/retro | bf30cec3d82672eb2805392e77f3b21705129fc0 | [
"Unlicense"
] | 1 | 2022-02-12T19:35:39.000Z | 2022-02-12T19:35:39.000Z | z80emu/fuzix-arm/src/main.cpp | Paolo-Maffei/retro | bf30cec3d82672eb2805392e77f3b21705129fc0 | [
"Unlicense"
] | null | null | null | z80emu/fuzix-arm/src/main.cpp | Paolo-Maffei/retro | bf30cec3d82672eb2805392e77f3b21705129fc0 | [
"Unlicense"
] | null | null | null | #include <jee.h>
#include <jee/spi-sdcard.h>
#include <string.h>
#include "cpmdate.h"
extern "C" {
#include "context.h"
#include "z80emu.h"
#include "macros.h"
}
UartBufDev< PinA<9>, PinA<10> > console;
int printf(const char* fmt, ...) {
va_list ap; va_start(ap, fmt); veprintf(console.putc, fmt, ap); va_end(ap);... | 30.676617 | 79 | 0.46432 | Paolo-Maffei |
be6f02055f535eaadbe98993a1ac00def5164452 | 3,285 | hpp | C++ | include/CobraModelParser/MatlabV5/ArrayFlags.hpp | qacwnfq/CobraModelParser | 9e03ff6e9f05e4a971b39a85360494925c72dbeb | [
"MIT"
] | null | null | null | include/CobraModelParser/MatlabV5/ArrayFlags.hpp | qacwnfq/CobraModelParser | 9e03ff6e9f05e4a971b39a85360494925c72dbeb | [
"MIT"
] | null | null | null | include/CobraModelParser/MatlabV5/ArrayFlags.hpp | qacwnfq/CobraModelParser | 9e03ff6e9f05e4a971b39a85360494925c72dbeb | [
"MIT"
] | null | null | null | #include <utility>
#ifndef COBRAMODELPARSER_MATLABV5_ARRAYFLAGS_HPP
#define COBRAMODELPARSER_MATLABV5_ARRAYFLAGS_HPP
#include <ostream>
#include <CobraModelParser/ByteParser.hpp>
#include "CobraModelParser/ByteQueue.hpp"
#include "CobraModelParser/MatlabV5/ArrayType.hpp"
#include "CobraModelParser/MatlabV5/ArrayTypeT... | 34.578947 | 119 | 0.526941 | qacwnfq |
be75a963db59fccca4dfef00231f29ab04f88b18 | 8,695 | cpp | C++ | Source/UI/Components/VirtualKeyboard/KeyboardViewport.cpp | vsicurella/SuperVirtualKeyboard | b59549281ea16b70f94b3136fe0b9a1f9fc355e2 | [
"Unlicense"
] | 22 | 2019-06-26T12:41:49.000Z | 2022-02-11T14:48:18.000Z | Source/UI/Components/VirtualKeyboard/KeyboardViewport.cpp | vsicurella/SuperVirtualKeyboard | b59549281ea16b70f94b3136fe0b9a1f9fc355e2 | [
"Unlicense"
] | 18 | 2019-06-22T21:49:21.000Z | 2021-05-15T01:33:57.000Z | Source/UI/Components/VirtualKeyboard/KeyboardViewport.cpp | vsicurella/SuperVirtualKeyboard | b59549281ea16b70f94b3136fe0b9a1f9fc355e2 | [
"Unlicense"
] | null | null | null | /*
==============================================================================
KeyboardViewPort.cpp
Created: 31 Oct 2019 2:41:37pm
Author: Vincenzo Sicurella
==============================================================================
*/
#include "KeyboardViewport.h"
KeyboardViewport::Keyboard... | 29.276094 | 138 | 0.686371 | vsicurella |
be76d6a9cbb134704e06a0ec5d1e498b01aff2e7 | 163 | cpp | C++ | ConcurrencyInAction/Chapter1/01-helloworld/main.cpp | Snowapril/ConcurrencyInAction | 7b6170935fead5c0bbe5e54a62c12a4dca9c4624 | [
"MIT"
] | null | null | null | ConcurrencyInAction/Chapter1/01-helloworld/main.cpp | Snowapril/ConcurrencyInAction | 7b6170935fead5c0bbe5e54a62c12a4dca9c4624 | [
"MIT"
] | null | null | null | ConcurrencyInAction/Chapter1/01-helloworld/main.cpp | Snowapril/ConcurrencyInAction | 7b6170935fead5c0bbe5e54a62c12a4dca9c4624 | [
"MIT"
] | null | null | null | #include <iostream>
#include <thread>
void hello()
{
std::cout << "Hello Concurrency In Action\n";
}
int main()
{
std::thread t(hello);
t.join();
return 0;
} | 11.642857 | 46 | 0.631902 | Snowapril |
be78588ad9ee08536576acf22278f74bcfa8456e | 2,938 | cpp | C++ | Util/OSM2ODR/src/utils/iodevices/OutputDevice_File.cpp | adelbennaceur/carla | 4d6fefe73d38f0ffaef8ffafccf71245699fc5db | [
"MIT"
] | 5 | 2020-12-14T00:33:42.000Z | 2021-12-22T07:41:49.000Z | Util/OSM2ODR/src/utils/iodevices/OutputDevice_File.cpp | adelbennaceur/carla | 4d6fefe73d38f0ffaef8ffafccf71245699fc5db | [
"MIT"
] | 2 | 2021-03-31T20:10:04.000Z | 2021-12-13T20:48:30.000Z | Util/OSM2ODR/src/utils/iodevices/OutputDevice_File.cpp | adelbennaceur/carla | 4d6fefe73d38f0ffaef8ffafccf71245699fc5db | [
"MIT"
] | 4 | 2021-04-15T03:45:53.000Z | 2021-12-24T13:13:39.000Z | /****************************************************************************/
// Eclipse SUMO, Simulation of Urban MObility; see https://eclipse.org/sumo
// Copyright (C) 2004-2020 German Aerospace Center (DLR) and others.
// This program and the accompanying materials are made available under the
// terms of the Ecli... | 35.829268 | 107 | 0.563308 | adelbennaceur |
be78722aa4cbc098dfbc73555cb53b0b1fed3b6e | 1,828 | cpp | C++ | datasets/github_cpp_10/2/55.cpp | yijunyu/demo-fast | 11c0c84081a3181494b9c469bda42a313c457ad2 | [
"BSD-2-Clause"
] | 1 | 2019-05-03T19:27:45.000Z | 2019-05-03T19:27:45.000Z | datasets/github_cpp_10/2/55.cpp | yijunyu/demo-vscode-fast | 11c0c84081a3181494b9c469bda42a313c457ad2 | [
"BSD-2-Clause"
] | null | null | null | datasets/github_cpp_10/2/55.cpp | yijunyu/demo-vscode-fast | 11c0c84081a3181494b9c469bda42a313c457ad2 | [
"BSD-2-Clause"
] | null | null | null |
#include "common/lru_cache.h"
#include "gtest/gtest.h"
const int NUM_OF_TEST1_RECORDS = 100;
const int NUM_OF_TEST2_RECORDS = 100;
const int TEST2_CACHE_CAPACITY = 50;
TEST(CacheTest, SimplePut) {
cache::lru_cache<int, int> cache(1);
cache.put(7, 777);
EXPECT_TRUE(cache.exists(7));
EXPECT_EQ(777, ... | 23.435897 | 94 | 0.644967 | yijunyu |
be7adbbff25a909c45d8b427fa5efe11574dc57f | 352 | hpp | C++ | example/openglGame.hpp | Withbini/game-engine | 40c28e994c00e4acd2ed41720eb24f6754031382 | [
"BSD-2-Clause"
] | null | null | null | example/openglGame.hpp | Withbini/game-engine | 40c28e994c00e4acd2ed41720eb24f6754031382 | [
"BSD-2-Clause"
] | null | null | null | example/openglGame.hpp | Withbini/game-engine | 40c28e994c00e4acd2ed41720eb24f6754031382 | [
"BSD-2-Clause"
] | null | null | null | #pragma once
#include "Game.hpp"
#include "Shader.hpp"
#include "VertexArray.hpp"
#include "Renderer.hpp"
class openglGame :
public Game
{
public:
openglGame();
~openglGame() override;
bool Initialize() override;
void LoadData() override;
private:
class Ship2* mShip;
VertexArray* mSpriteVerts;
int mSpriteFra... | 14.666667 | 28 | 0.735795 | Withbini |
be809adfe5283e2a5f0deeb588a883e360aa9f39 | 1,258 | cpp | C++ | LeetCode/105_construct_binary_tree_from_preoder_and_inorder_traversal.cpp | tanishq1g/cp_codes | 80b8ccc9e195a66d6d317076fdd54a02cd21275b | [
"MIT"
] | null | null | null | LeetCode/105_construct_binary_tree_from_preoder_and_inorder_traversal.cpp | tanishq1g/cp_codes | 80b8ccc9e195a66d6d317076fdd54a02cd21275b | [
"MIT"
] | null | null | null | LeetCode/105_construct_binary_tree_from_preoder_and_inorder_traversal.cpp | tanishq1g/cp_codes | 80b8ccc9e195a66d6d317076fdd54a02cd21275b | [
"MIT"
] | null | null | null | #include <iostream>
#include <vector>
#include <map>
#include <algorithm>
#include <unordered_map>
#include <string>
using namespace std;
struct TreeNode {
int val;
TreeNode *left;
TreeNode *right;
TreeNode(int x) : val(x), left(NULL), right(NULL) {}
};
// IMPORTANT
class Solution {
TreeNode * rec... | 32.25641 | 128 | 0.59221 | tanishq1g |
be816982618a5ba2577c6c5bfe30589cfb890641 | 951 | cc | C++ | benchmark/supermalloc/src/footprint.cc | jneuhauser/rpmalloc-benchmark | f492744530a349b9b6c831305b25aec0ec5a6a5b | [
"Unlicense"
] | 287 | 2015-05-13T22:37:29.000Z | 2022-03-31T01:56:53.000Z | benchmark/supermalloc/src/footprint.cc | jneuhauser/rpmalloc-benchmark | f492744530a349b9b6c831305b25aec0ec5a6a5b | [
"Unlicense"
] | 50 | 2015-06-08T02:13:25.000Z | 2019-07-17T22:41:02.000Z | benchmark/supermalloc/src/footprint.cc | jneuhauser/rpmalloc-benchmark | f492744530a349b9b6c831305b25aec0ec5a6a5b | [
"Unlicense"
] | 31 | 2015-07-24T10:20:49.000Z | 2022-01-17T18:30:51.000Z | /* Maintain a count of the footprint. */
#include <sched.h>
#include "malloc_internal.h"
#include "atomically.h"
static const int processor_number_limit = 128; // should be enough for now.
static uint64_t partitioned_footprint[processor_number_limit];
struct processor_id {
int cpuid;
int count;
} __attribute__(... | 25.026316 | 103 | 0.725552 | jneuhauser |
be8386895ec3c8ebca6b39cb8699e85d95c75409 | 10,267 | cpp | C++ | tf2_src/hammer/tool3d.cpp | d3fc0n6/TeamFortress2 | 1b81dded673d49adebf4d0958e52236ecc28a956 | [
"MIT"
] | 4 | 2021-10-03T05:16:55.000Z | 2021-12-28T16:49:27.000Z | tf2_src/hammer/tool3d.cpp | Counter2828/TeamFortress2 | 1b81dded673d49adebf4d0958e52236ecc28a956 | [
"MIT"
] | null | null | null | tf2_src/hammer/tool3d.cpp | Counter2828/TeamFortress2 | 1b81dded673d49adebf4d0958e52236ecc28a956 | [
"MIT"
] | 3 | 2022-02-02T18:09:58.000Z | 2022-03-06T18:54:39.000Z | //========= Copyright Valve Corporation, All rights reserved. ============//
//
// Purpose:
//
// $NoKeywords: $
//=============================================================================//
#include "stdafx.h"
#include "MapDoc.h"
#include "MapView2D.h"
#include "MapView3D.h"
#include "Tool3D.h"
#include "hammer_... | 22.714602 | 125 | 0.66105 | d3fc0n6 |
be83d70125f3ae766bda789572c5df973dbdf61d | 1,043 | hpp | C++ | include/hops/Model/UniformDummyModel.hpp | modsim/hops | 4285dd75a07dd844295440a0756b3ba25f5819ac | [
"MIT"
] | 7 | 2020-11-26T05:13:03.000Z | 2022-01-12T02:08:40.000Z | include/hops/Model/UniformDummyModel.hpp | modsim/hops | 4285dd75a07dd844295440a0756b3ba25f5819ac | [
"MIT"
] | 1 | 2021-02-20T23:16:34.000Z | 2021-02-20T23:16:34.000Z | include/hops/Model/UniformDummyModel.hpp | modsim/hops | 4285dd75a07dd844295440a0756b3ba25f5819ac | [
"MIT"
] | null | null | null | #ifndef HOPS_UNIFORMDUMMYMODEL_HPP
#define HOPS_UNIFORMDUMMYMODEL_HPP
#include <stdexcept>
namespace hops {
/**
* @details Uses MatrixType and VectorType types as defined by the first Model type.
* @tparam Models
*/
template<typename Matrix, typename Vector>
class UniformDummyModel {
pub... | 31.606061 | 95 | 0.689358 | modsim |
be83e7f6aeda564c839c5051221c5903337d879e | 4,525 | cpp | C++ | PROX/FOUNDATION/BIG/unit_tests/big_compute_index_reordering/unit_big_compute_index_reordering.cpp | diku-dk/PROX | c6be72cc253ff75589a1cac28e4e91e788376900 | [
"MIT"
] | null | null | null | PROX/FOUNDATION/BIG/unit_tests/big_compute_index_reordering/unit_big_compute_index_reordering.cpp | diku-dk/PROX | c6be72cc253ff75589a1cac28e4e91e788376900 | [
"MIT"
] | null | null | null | PROX/FOUNDATION/BIG/unit_tests/big_compute_index_reordering/unit_big_compute_index_reordering.cpp | diku-dk/PROX | c6be72cc253ff75589a1cac28e4e91e788376900 | [
"MIT"
] | null | null | null | #include <big_types.h>
#include <big_return_codes.h>
#include <min_map/big_compute_index_reordering.h>
#define BOOST_AUTO_TEST_MAIN
#include <boost/test/auto_unit_test.hpp>
#include <boost/test/unit_test_suite.hpp>
#include <boost/test/floating_point_comparison.hpp>
#include <boost/test/test_tools.hpp>
BOOST_AUTO_TES... | 28.28125 | 61 | 0.620331 | diku-dk |
be89246472310e794ad89bbd8e372a6d1c3941e4 | 6,508 | cpp | C++ | src/AStar.cpp | RomanoViolet/AStar | aa53130e69fec00eb404c78861661bafb29d808b | [
"MIT"
] | null | null | null | src/AStar.cpp | RomanoViolet/AStar | aa53130e69fec00eb404c78861661bafb29d808b | [
"MIT"
] | null | null | null | src/AStar.cpp | RomanoViolet/AStar | aa53130e69fec00eb404c78861661bafb29d808b | [
"MIT"
] | null | null | null | /*
* AStar.cpp
*
* Created on: Mar 14, 2018
* Author: dumbledore
*/
#include <cmath>
#include "AStar.hpp"
namespace Algo {
inline AStar::~AStar() {
}
void AStar::buildTerrainMap(const std::vector<uint8_t>& elevationData,
const std::vector<uint8_t>& overridesData) {
// fill th... | 28.17316 | 132 | 0.630148 | RomanoViolet |
be92326c9c6b7a7a87ad2680ad57ae4d2c334cb7 | 571 | cpp | C++ | slsv_cnc/tests-cpp/Tests.cpp | command-paul/slsv-master | a703bfaa8031e18e3fb74d3f1f2f4544c75a73ef | [
"BSD-3-Clause"
] | null | null | null | slsv_cnc/tests-cpp/Tests.cpp | command-paul/slsv-master | a703bfaa8031e18e3fb74d3f1f2f4544c75a73ef | [
"BSD-3-Clause"
] | null | null | null | slsv_cnc/tests-cpp/Tests.cpp | command-paul/slsv-master | a703bfaa8031e18e3fb74d3f1f2f4544c75a73ef | [
"BSD-3-Clause"
] | 1 | 2021-01-29T14:29:52.000Z | 2021-01-29T14:29:52.000Z | #include "../src/TestInstance.hpp"
#include <iostream>
// Append all of these to a Vector of test functions.
bool test_spike_interface(){
return true;
}
bool test_state(){
riscv* a = new riscv;
(*a).addHART();
(*a).addMemory();
(*a).addNHSV();
std::cout << (*a).HART_Vec[0].GPR[0] << std::endl;
delete a;
retu... | 14.641026 | 53 | 0.661996 | command-paul |
be9390b45e4fed2e7e9189991365ccecf6bafa3a | 24,851 | cpp | C++ | environment/half_cheetah/src/HalfCheetahWorld.cpp | matthieu637/ddrl | a454d09a3ac9be5db960ff180b3d075c2f9e4a70 | [
"MIT"
] | 27 | 2017-11-27T09:32:41.000Z | 2021-03-02T13:50:23.000Z | environment/half_cheetah/src/HalfCheetahWorld.cpp | matthieu637/ddrl | a454d09a3ac9be5db960ff180b3d075c2f9e4a70 | [
"MIT"
] | 10 | 2018-10-09T14:39:14.000Z | 2020-11-10T15:01:00.000Z | environment/half_cheetah/src/HalfCheetahWorld.cpp | matthieu637/ddrl | a454d09a3ac9be5db960ff180b3d075c2f9e4a70 | [
"MIT"
] | 3 | 2019-05-16T09:14:15.000Z | 2019-08-15T14:35:40.000Z | #include "HalfCheetahWorld.hpp"
#include <functional>
#include <vector>
#include <algorithm>
#include "ode/ode.h"
#include "bib/Utils.hpp"
#include "ODEFactory.hpp"
HalfCheetahWorld::HalfCheetahWorld(hcheetah_physics _phy) : odeworld(ODEFactory::getInstance()->createWorld()),
phy(_phy) {
dWorldSetGravity(odewor... | 34.90309 | 689 | 0.661422 | matthieu637 |
be9497a88db7a28553fb2fac51b78aa15d4e7fd6 | 5,348 | hpp | C++ | third_party/boost/simd/arch/x86/xop/simd/function/is_equal.hpp | SylvainCorlay/pythran | 908ec070d837baf77d828d01c3e35e2f4bfa2bfa | [
"BSD-3-Clause"
] | 6 | 2018-02-25T22:23:33.000Z | 2021-01-15T15:13:12.000Z | third_party/boost/simd/arch/x86/xop/simd/function/is_equal.hpp | SylvainCorlay/pythran | 908ec070d837baf77d828d01c3e35e2f4bfa2bfa | [
"BSD-3-Clause"
] | null | null | null | third_party/boost/simd/arch/x86/xop/simd/function/is_equal.hpp | SylvainCorlay/pythran | 908ec070d837baf77d828d01c3e35e2f4bfa2bfa | [
"BSD-3-Clause"
] | 7 | 2017-12-12T12:36:31.000Z | 2020-02-10T14:27:07.000Z | //==================================================================================================
/**
Copyright 2016 NumScale SAS
Distributed under the Boost Software License, Version 1.0.
(See accompanying file LICENSE.md or copy at http://boost.org/LICENSE_1_0.txt)
**/
//====================================... | 30.044944 | 100 | 0.512528 | SylvainCorlay |
be97dc752947c5278d721457ce45e1e0bc326407 | 2,431 | cpp | C++ | old/cumulative-sum.inc.cpp | kmyk/competitive-programming-library | 77efa23a69f06202bb43f4dc6b0550e4cdb48e0b | [
"MIT"
] | 55 | 2018-01-11T02:20:02.000Z | 2022-03-24T06:18:54.000Z | utils/cumulative-sum.inc.cpp | Mohammad-Yasser/competitive-programming-library | 4656ac0d625abce98b901965c7607c1b908b093f | [
"MIT"
] | 10 | 2016-10-29T08:20:04.000Z | 2021-02-27T13:14:53.000Z | utils/cumulative-sum.inc.cpp | Mohammad-Yasser/competitive-programming-library | 4656ac0d625abce98b901965c7607c1b908b093f | [
"MIT"
] | 11 | 2016-10-29T06:00:53.000Z | 2021-06-16T14:32:43.000Z | /**
* @brief cumulative sum
* @see std::partial_sum
*/
template <class T, class F>
vector<T> cumulative_sum(size_t n, F f) {
vector<T> acc(n + 1);
REP (i, n) {
acc[i + 1] = acc[i] + f(i);
}
return acc;
}
/**
* @brief 2D cumulative sum
*/
template <class T, class F>
vector<vector<T> > cumul... | 27.942529 | 77 | 0.418346 | kmyk |
be9971a02fd73e0fdeaeb0f7641ce70a05ed552f | 827 | cpp | C++ | cpp/src/FlattenBinaryTreeToLinkedList.cpp | qianbinbin/leetcode | 915cecab0c940cd13847683ec55b17b77eb0f39b | [
"MIT"
] | 4 | 2018-03-05T02:27:16.000Z | 2021-03-15T14:19:44.000Z | cpp/src/FlattenBinaryTreeToLinkedList.cpp | qianbinbin/leetcode | 915cecab0c940cd13847683ec55b17b77eb0f39b | [
"MIT"
] | null | null | null | cpp/src/FlattenBinaryTreeToLinkedList.cpp | qianbinbin/leetcode | 915cecab0c940cd13847683ec55b17b77eb0f39b | [
"MIT"
] | 2 | 2018-07-22T10:32:10.000Z | 2018-10-20T03:14:28.000Z | #include "FlattenBinaryTreeToLinkedList.h"
using namespace lcpp;
static void flattenPreOrder(TreeNode *Root, TreeNode *&Pre) {
if (Root == nullptr)
return;
if (Pre != nullptr) {
Pre->left = nullptr;
Pre->right = Root;
}
Pre = Root;
auto Right = Root->right;
flattenPreOrder(Root->left, Pre);
... | 22.351351 | 68 | 0.68682 | qianbinbin |
be99a543c56d95b3d0608df21a72cccb5f6e57c2 | 2,353 | cpp | C++ | gwen/UnitTest/ListBox.cpp | Oipo/GWork | 3dd70c090bf8708dd3e7b9cfbcb67163bb7166db | [
"MIT"
] | null | null | null | gwen/UnitTest/ListBox.cpp | Oipo/GWork | 3dd70c090bf8708dd3e7b9cfbcb67163bb7166db | [
"MIT"
] | null | null | null | gwen/UnitTest/ListBox.cpp | Oipo/GWork | 3dd70c090bf8708dd3e7b9cfbcb67163bb7166db | [
"MIT"
] | null | null | null | #include "Gwen/UnitTest/UnitTest.h"
#include "Gwen/Controls/ListBox.h"
using namespace Gwen;
class ListBox : public GUnit
{
public:
GWEN_CONTROL_INLINE(ListBox, GUnit)
{
{
Gwen::Controls::ListBox* ctrl = new Gwen::Controls::ListBox(this);
ctrl->SetBounds(10, 10, 100, 200);
... | 33.614286 | 89 | 0.523587 | Oipo |