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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
519af0bb8773e8de5c2cbfc9b74fb03c11fd88a2 | 397,694 | cc | C++ | src/libmess/model_new.cc | dsjense/MESS | b54c161327e2e35a40bb3b71555bdc2eef7cd7f9 | [
"Apache-2.0"
] | 9 | 2020-03-03T07:34:35.000Z | 2021-12-08T13:12:16.000Z | src/libmess/model_new.cc | dsjense/MESS | b54c161327e2e35a40bb3b71555bdc2eef7cd7f9 | [
"Apache-2.0"
] | 1 | 2022-03-23T10:57:25.000Z | 2022-03-31T12:30:44.000Z | src/libmess/model_new.cc | dsjense/MESS | b54c161327e2e35a40bb3b71555bdc2eef7cd7f9 | [
"Apache-2.0"
] | 9 | 2019-12-18T19:59:13.000Z | 2022-01-31T01:49:43.000Z | /*
Chemical Kinetics and Dynamics Library
Copyright (C) 2008-2013, Yuri Georgievski <ygeorgi@anl.gov>
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Library General Public
License as published by the Free Software Foundation; e... | 25.948976 | 144 | 0.548125 | dsjense |
51a14d02558f707c4624efbe47890ef46fae1130 | 401 | cpp | C++ | src/Tema 05.03.2021/#2748/main.cpp | andrew-miroiu/Cpp-projects | d0917a7f78aef929c25dc9b019e910951c2050ac | [
"MIT"
] | 2 | 2021-11-27T18:29:32.000Z | 2021-11-28T14:35:47.000Z | src/Tema 05.03.2021/#2748/main.cpp | andrew-miroiu/Cpp-projects | d0917a7f78aef929c25dc9b019e910951c2050ac | [
"MIT"
] | null | null | null | src/Tema 05.03.2021/#2748/main.cpp | andrew-miroiu/Cpp-projects | d0917a7f78aef929c25dc9b019e910951c2050ac | [
"MIT"
] | null | null | null | #include <iostream>
using namespace std;
int main()
{
int n, p1, p2, p3, cmm=0, c1, c2, c3;
cin>>n;
p1=(n-1)*4;
p2=(n-3)*4;
p3=(n-5)*4;
for(int d=p1; d<p1*p1; d++)
{
if(d%p1==0 && d%p2==0 && d%p3==0)
{
cmm=d;
break;
}
}
c1=cmm/p1;
... | 12.935484 | 41 | 0.38404 | andrew-miroiu |
51a2b2dceda32f7fd108e31c1445602717f6d87a | 2,350 | hpp | C++ | library/include/ux/TextFileArea.hpp | StratifyLabs/UxAPI | 4dc043b132452896ed9626038d53439b0def786a | [
"MIT"
] | null | null | null | library/include/ux/TextFileArea.hpp | StratifyLabs/UxAPI | 4dc043b132452896ed9626038d53439b0def786a | [
"MIT"
] | null | null | null | library/include/ux/TextFileArea.hpp | StratifyLabs/UxAPI | 4dc043b132452896ed9626038d53439b0def786a | [
"MIT"
] | null | null | null | // Copyright 2016-2021 Tyler Gilbert and Stratify Labs, Inc; see LICENSE.md
#ifndef UXAPI_UX_TEXT_FILE_AREA_HPP
#define UXAPI_UX_TEXT_FILE_AREA_HPP
#include "Component.hpp"
#include "TouchGesture.hpp"
#include "draw/TextBox.hpp"
namespace ux {
class TextFileArea : public ComponentAccess<TextFileArea> {
public:
e... | 24.736842 | 91 | 0.737872 | StratifyLabs |
51aaf6ea2d104827ccaa3cbde7af03fa2d10b0f8 | 473 | cpp | C++ | FieldExtract/AsmUtils.cpp | HFTrader/AssemblyTales | f141164a929da5783563feee810283f361de7314 | [
"Apache-2.0"
] | 6 | 2022-01-02T12:54:56.000Z | 2022-01-11T18:44:48.000Z | FieldExtract/AsmUtils.cpp | HFTrader/AssemblyTales | f141164a929da5783563feee810283f361de7314 | [
"Apache-2.0"
] | null | null | null | FieldExtract/AsmUtils.cpp | HFTrader/AssemblyTales | f141164a929da5783563feee810283f361de7314 | [
"Apache-2.0"
] | null | null | null | #include <cstddef>
#include <cstdint>
#include <unistd.h>
#include <sys/mman.h>
// Makes the memory pointed executable
void makeExecutable(void *code, size_t size)
{
size_t pagesize = getpagesize();
uint64_t codeaddr = uint64_t(code);
uint64_t offset = codeaddr % pagesize;
codeaddr -= offset;
size ... | 27.823529 | 77 | 0.682875 | HFTrader |
51ab001d07e1092c1a3440b7884b7b1be8dbdaa6 | 3,649 | cpp | C++ | module_loader.cpp | TuliMyrskyTaivas/Lyngvi | c96a4c06b743e64cb83045f3fdb4d9271f184dca | [
"MIT"
] | null | null | null | module_loader.cpp | TuliMyrskyTaivas/Lyngvi | c96a4c06b743e64cb83045f3fdb4d9271f184dca | [
"MIT"
] | null | null | null | module_loader.cpp | TuliMyrskyTaivas/Lyngvi | c96a4c06b743e64cb83045f3fdb4d9271f184dca | [
"MIT"
] | null | null | null | //////////////////////////////////////////////////////////////////////////
/// file: module_loader.h
///
/// summary: Declares the loader of message domains
//////////////////////////////////////////////////////////////////////////
#include <cstdint>
#include <fstream>
#include <stdexcept>
#include "module_loader.... | 31.456897 | 120 | 0.597424 | TuliMyrskyTaivas |
51ac7d3894b15480465f99cd536ee43ec7bd22c8 | 7,004 | cpp | C++ | sources/dialogs/resizedialog.cpp | wh-hack/Qt-EasyPaint | ad6cf88762dfa4f2faf36a8cd1fb89be306beff3 | [
"MIT"
] | 51 | 2015-03-27T02:00:13.000Z | 2021-11-10T13:31:43.000Z | sources/dialogs/resizedialog.cpp | wh-hack/Qt-EasyPaint | ad6cf88762dfa4f2faf36a8cd1fb89be306beff3 | [
"MIT"
] | 12 | 2015-06-14T13:56:58.000Z | 2020-12-16T12:02:59.000Z | sources/dialogs/resizedialog.cpp | wh-hack/Qt-EasyPaint | ad6cf88762dfa4f2faf36a8cd1fb89be306beff3 | [
"MIT"
] | 25 | 2015-06-03T12:53:37.000Z | 2022-02-28T09:30:42.000Z | /*
* This source file is part of EasyPaint.
*
* Copyright (c) 2012 EasyPaint <https://github.com/Gr1N/EasyPaint>
*
* 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, ... | 33.194313 | 95 | 0.681611 | wh-hack |
51adb46b2a01e454d677c25c402890590b85054b | 2,170 | cpp | C++ | ReactQt/runtime/src/reactbuttonmanager.cpp | dmgctrl/react-native-linux | 3b05fb169f0242a9c6084064c26bccecf2a4aefa | [
"CC-BY-4.0",
"BSD-3-Clause"
] | 15 | 2018-03-11T23:50:11.000Z | 2021-12-24T08:41:05.000Z | ReactQt/runtime/src/reactbuttonmanager.cpp | dmgctrl/react-native-linux | 3b05fb169f0242a9c6084064c26bccecf2a4aefa | [
"CC-BY-4.0",
"BSD-3-Clause"
] | null | null | null | ReactQt/runtime/src/reactbuttonmanager.cpp | dmgctrl/react-native-linux | 3b05fb169f0242a9c6084064c26bccecf2a4aefa | [
"CC-BY-4.0",
"BSD-3-Clause"
] | 2 | 2018-04-14T19:47:35.000Z | 2020-07-30T21:48:29.000Z |
/**
* Copyright (c) 2017-present, Status Research and Development GmbH.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same di... | 29.726027 | 113 | 0.7447 | dmgctrl |
51aef4985bd32625c0668d79849efb209e8458d3 | 444 | hpp | C++ | include/tcframe/runner/logger/BaseLogger.hpp | tcgen/tcgen | d3b79585b40995ea8fc8091ecc6b6b19c2cb46ad | [
"MIT"
] | 76 | 2015-03-31T01:36:17.000Z | 2021-12-29T08:16:25.000Z | include/tcframe/runner/logger/BaseLogger.hpp | tcgen/tcgen | d3b79585b40995ea8fc8091ecc6b6b19c2cb46ad | [
"MIT"
] | 68 | 2016-11-28T18:58:26.000Z | 2018-08-10T13:33:35.000Z | include/tcframe/runner/logger/BaseLogger.hpp | tcgen/tcgen | d3b79585b40995ea8fc8091ecc6b6b19c2cb46ad | [
"MIT"
] | 17 | 2015-04-24T03:52:32.000Z | 2022-03-11T23:28:02.000Z | #pragma once
#include <map>
#include <stdexcept>
#include <string>
#include "tcframe/runner/os.hpp"
using std::map;
using std::runtime_error;
using std::string;
namespace tcframe {
class BaseLogger {
public:
virtual ~BaseLogger() = default;
virtual void logTestGroupIntroduction(int testGroupId) = 0;
v... | 17.76 | 73 | 0.727477 | tcgen |
51af2a13796703c45f45c7c0e1b458772b861759 | 2,247 | cpp | C++ | Capítulo7/Vector.cpp | Batheusz/AprendendoCPP | 0821d81e33857e4fa09459e0afdf4d23f172739e | [
"MIT"
] | null | null | null | Capítulo7/Vector.cpp | Batheusz/AprendendoCPP | 0821d81e33857e4fa09459e0afdf4d23f172739e | [
"MIT"
] | null | null | null | Capítulo7/Vector.cpp | Batheusz/AprendendoCPP | 0821d81e33857e4fa09459e0afdf4d23f172739e | [
"MIT"
] | null | null | null | #include <iostream>
#include <vector>
using namespace std;
//Vector vs Array
//Vector é um armazenamento sequencial de elementos sem ser baseado em endereços de memória. Já Array é uma sequencia de mesmo tipo baseada em endereço de memória.
//Array é de tamanho fixo e vector é dinâmico.
//Vector ocupa mais memória e d... | 34.045455 | 163 | 0.662216 | Batheusz |
51afea4d1ab8abea1b702813dc3287e102d52997 | 2,707 | cpp | C++ | AGVCCON/fRCT_YEAR.cpp | jluzardo1971/ActiveGanttVC | 4748cb4d942551dc64c9017f279c90969cdcc634 | [
"MIT"
] | null | null | null | AGVCCON/fRCT_YEAR.cpp | jluzardo1971/ActiveGanttVC | 4748cb4d942551dc64c9017f279c90969cdcc634 | [
"MIT"
] | null | null | null | AGVCCON/fRCT_YEAR.cpp | jluzardo1971/ActiveGanttVC | 4748cb4d942551dc64c9017f279c90969cdcc634 | [
"MIT"
] | null | null | null | // ----------------------------------------------------------------------------------------
// COPYRIGHT NOTICE
// ----------------------------------------------------------------------------------------
//
// The Source Code Store LLC
// ACTIVEGANTT SCHEDULER COMPONENT FOR C++ - ActiveGan... | 30.41573 | 104 | 0.650166 | jluzardo1971 |
51afebec2fb58290725232724dcd646652ad4070 | 230 | cpp | C++ | if/diag.cpp | anacomo/Clasa9 | bd293b4ca0f16452d1a1830f702618ae89ccd60c | [
"MIT"
] | null | null | null | if/diag.cpp | anacomo/Clasa9 | bd293b4ca0f16452d1a1830f702618ae89ccd60c | [
"MIT"
] | null | null | null | if/diag.cpp | anacomo/Clasa9 | bd293b4ca0f16452d1a1830f702618ae89ccd60c | [
"MIT"
] | 1 | 2021-07-09T20:39:39.000Z | 2021-07-09T20:39:39.000Z | #include <iostream>
#include <math.h>
using namespace std;
int main()
{
float B, b, l;
cin >> B >> b >> l;
float a = (B - b) / 2;
float d = l * l + (b + a) * (b + a);
d = sqrt(d);
cout << d;
return 0;
} | 17.692308 | 40 | 0.452174 | anacomo |
51b502db76dfa1616b351a080b60465149980a64 | 5,826 | hpp | C++ | source/rs-format/floating.hpp | CaptainCrowbar/rs-format | ef9cf9fcfe1ad74aba9e4eefd48f83b8d0d1f57c | [
"BSL-1.0"
] | null | null | null | source/rs-format/floating.hpp | CaptainCrowbar/rs-format | ef9cf9fcfe1ad74aba9e4eefd48f83b8d0d1f57c | [
"BSL-1.0"
] | null | null | null | source/rs-format/floating.hpp | CaptainCrowbar/rs-format | ef9cf9fcfe1ad74aba9e4eefd48f83b8d0d1f57c | [
"BSL-1.0"
] | null | null | null | #pragma once
#include "rs-format/numeric.hpp"
#include "rs-format/spec.hpp"
#include "rs-format/string.hpp"
#include <algorithm>
#include <cstdio>
#include <cstdlib>
#include <string>
#include <type_traits>
namespace RS::Format {
namespace Detail {
template <typename T, typename U>
std::string n... | 34.070175 | 105 | 0.481291 | CaptainCrowbar |
51b56e8fde006dd2216043661569bef5829ee5ba | 879 | cpp | C++ | leetcode/1360. Number of Days Between Two Dates/s1.cpp | zhuohuwu0603/leetcode_cpp_lzl124631x | 6a579328810ef4651de00fde0505934d3028d9c7 | [
"Fair"
] | 787 | 2017-05-12T05:19:57.000Z | 2022-03-30T12:19:52.000Z | leetcode/1360. Number of Days Between Two Dates/s1.cpp | aerlokesh494/LeetCode | 0f2cbb28d5a9825b51a8d3b3a0ae0c30d7ff155f | [
"Fair"
] | 8 | 2020-03-16T05:55:38.000Z | 2022-03-09T17:19:17.000Z | leetcode/1360. Number of Days Between Two Dates/s1.cpp | aerlokesh494/LeetCode | 0f2cbb28d5a9825b51a8d3b3a0ae0c30d7ff155f | [
"Fair"
] | 247 | 2017-04-30T15:07:50.000Z | 2022-03-30T09:58:57.000Z | // OJ: https://leetcode.com/problems/number-of-days-between-two-dates/
// Author: github.com/lzl124631x
// Time: O(1)
// Space: O(1)
// Ref: https://leetcode.com/problems/number-of-days-between-two-dates/discuss/517605/Similar-to-day-of-the-year
class Solution {
const int days[12] = { 31, 28, 31, 30, 31, 30, 31, 31... | 43.95 | 112 | 0.593857 | zhuohuwu0603 |
51b69d6dd84d7fc2577ad5d5d69ffd443956dded | 2,324 | cpp | C++ | MegaManX3/StageController.cpp | bboyturtles13/Mega-Man-X3 | b84b35176d72cf43cbce6fd34c5e8e28638a442a | [
"MIT"
] | 7 | 2019-09-19T06:59:47.000Z | 2022-01-26T10:21:49.000Z | MegaManX3/StageController.cpp | bboyturtles13/Mega-Man-X3 | b84b35176d72cf43cbce6fd34c5e8e28638a442a | [
"MIT"
] | 3 | 2020-01-20T04:28:59.000Z | 2020-01-20T05:01:43.000Z | MegaManX3/StageController.cpp | bboyturtles13/Mega-Man-X3 | b84b35176d72cf43cbce6fd34c5e8e28638a442a | [
"MIT"
] | 6 | 2019-11-15T02:13:12.000Z | 2022-01-27T12:30:29.000Z | #include "StageController.h"
StageController::StageController()
{
camera = cameraGlobal;
main = dynamic_cast<MegamanX*>(mainGlobal);
stages[1] = new StageElevator();
stages[2] = stages[1];
stages[3] = stages[2];
stages[4] = new Stage4();
stages[5] = new StageMiniBoss1();
stages[6] = new StageMiniBoss2();
stag... | 19.529412 | 86 | 0.682444 | bboyturtles13 |
51b8619500f1be444ad1694f6302fc4effff4d96 | 4,392 | cc | C++ | Sources/String.cc | TaliskerPlatform/FoundationKit.framework | 9bac5ae0c54a79c1a2d80619d75b41b71919895b | [
"Apache-2.0"
] | 1 | 2019-02-22T05:35:32.000Z | 2019-02-22T05:35:32.000Z | Sources/String.cc | TaliskerPlatform/FoundationKit.framework | 9bac5ae0c54a79c1a2d80619d75b41b71919895b | [
"Apache-2.0"
] | null | null | null | Sources/String.cc | TaliskerPlatform/FoundationKit.framework | 9bac5ae0c54a79c1a2d80619d75b41b71919895b | [
"Apache-2.0"
] | null | null | null | /* Talisker
* Foundation Toolkit
*/
/* Copyright 2012-2017 Mo McRoberts.
*
* 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
*
* ... | 17.291339 | 76 | 0.657332 | TaliskerPlatform |
51b88088b5d06a2ac65292ded402d1dfb3a95f8b | 735 | cpp | C++ | Arrays/setmatrix.cpp | riti2409/DSA-sheet | 3fa298ae540db5ab178d70352377c86c04cc3ee0 | [
"MIT"
] | 5 | 2021-12-03T14:29:03.000Z | 2022-02-04T09:06:21.000Z | Arrays/setmatrix.cpp | riti2409/DSA-sheet | 3fa298ae540db5ab178d70352377c86c04cc3ee0 | [
"MIT"
] | null | null | null | Arrays/setmatrix.cpp | riti2409/DSA-sheet | 3fa298ae540db5ab178d70352377c86c04cc3ee0 | [
"MIT"
] | null | null | null | class Solution {
public:
void setZeroes(vector<vector<int>>& matrix) {
set <int> a;
set <int> b;
int i, j, row = matrix.size( ), col = matrix[0].size( );
for( i = 0; i < row; i++){
for(j = 0; j < col; j++){
if(matrix[i][j] == 0){
... | 18.846154 | 61 | 0.280272 | riti2409 |
51bd48fcd9b9259d5b1e2712d2673660b5f07a1a | 2,124 | hpp | C++ | third_party/boost/simd/arch/x86/sse2/scalar/stream.hpp | xmar/pythran | dbf2e8b70ed1e4d4ac6b5f26ead4add940a72592 | [
"BSD-3-Clause"
] | null | null | null | third_party/boost/simd/arch/x86/sse2/scalar/stream.hpp | xmar/pythran | dbf2e8b70ed1e4d4ac6b5f26ead4add940a72592 | [
"BSD-3-Clause"
] | null | null | null | third_party/boost/simd/arch/x86/sse2/scalar/stream.hpp | xmar/pythran | dbf2e8b70ed1e4d4ac6b5f26ead4add940a72592 | [
"BSD-3-Clause"
] | null | null | null | //==============================================================================
// Copyright 2003 - 2011 LASMEA UMR 6602 CNRS/Univ. Clermont II
// Copyright 2009 - 2011 LRI UMR 8623 CNRS/Univ Paris Sud XI
//
// Distributed under the Boost Software License, Version 1.0.
// Se... | 37.928571 | 80 | 0.531544 | xmar |
51c29bccc4a1ded63da3bdf226d2713083c6bbf9 | 8,486 | cc | C++ | src/parser/tokens/goto_dfa_emitter.cc | blutmond/danach | 0cd3b27f03d2d2cf563f90a14628b8bf5bb36283 | [
"Apache-2.0"
] | null | null | null | src/parser/tokens/goto_dfa_emitter.cc | blutmond/danach | 0cd3b27f03d2d2cf563f90a14628b8bf5bb36283 | [
"Apache-2.0"
] | null | null | null | src/parser/tokens/goto_dfa_emitter.cc | blutmond/danach | 0cd3b27f03d2d2cf563f90a14628b8bf5bb36283 | [
"Apache-2.0"
] | null | null | null | #include "parser/tokens-passes.h"
#include "gen/parser/parser-spec.h"
#include "gen/parser/tokenizer-spec.h"
#include <unordered_set>
#include <unordered_map>
#include <memory>
namespace parser_spec {
struct GotoDFACPPEmitter {
explicit GotoDFACPPEmitter(std::ostream& stream): stream(stream) {}
std::ostream& stre... | 28.47651 | 112 | 0.542541 | blutmond |
51c5b7b1bf544809738a5df8e46aa70a34034347 | 1,467 | hpp | C++ | third_party/boost/simd/function/max.hpp | xmar/pythran | dbf2e8b70ed1e4d4ac6b5f26ead4add940a72592 | [
"BSD-3-Clause"
] | 1 | 2018-01-14T12:49:14.000Z | 2018-01-14T12:49:14.000Z | third_party/boost/simd/function/max.hpp | xmar/pythran | dbf2e8b70ed1e4d4ac6b5f26ead4add940a72592 | [
"BSD-3-Clause"
] | null | null | null | third_party/boost/simd/function/max.hpp | xmar/pythran | dbf2e8b70ed1e4d4ac6b5f26ead4add940a72592 | [
"BSD-3-Clause"
] | 2 | 2017-12-12T12:29:52.000Z | 2019-04-08T15:55:25.000Z | //==================================================================================================
/*!
@file
@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)
*/
//===========================... | 25.293103 | 113 | 0.601227 | xmar |
51cb4cf7d8ede834c9699d7f044681ca4d45f7ff | 361 | cpp | C++ | ytu_exam_cpp_files/exam_13_file.cpp | harunkurtme/cpp_working_examples | 28ffac87820bf1839d8e1137f8bb777bb0363ca1 | [
"MIT"
] | null | null | null | ytu_exam_cpp_files/exam_13_file.cpp | harunkurtme/cpp_working_examples | 28ffac87820bf1839d8e1137f8bb777bb0363ca1 | [
"MIT"
] | null | null | null | ytu_exam_cpp_files/exam_13_file.cpp | harunkurtme/cpp_working_examples | 28ffac87820bf1839d8e1137f8bb777bb0363ca1 | [
"MIT"
] | null | null | null | #include <iostream>
int main(int argc, char const *argv[])
{
/* code */
int n,fibarr=0;
int a,b=1;
std::cout << "you have must n number " << '\n';
std::cin >> n;
for(int index = 0;index < n;index++)
{
a=b;
b=fibarr;
fibarr=a+b;
std::cout <<... | 15.041667 | 51 | 0.434903 | harunkurtme |
51cfdec67cff78d20e5b5339074bfc44b9847003 | 8,139 | cpp | C++ | iOS/libraries/ags2clientstub/ags2clientstub/AGS2ClientStub.cpp | jonreyno/AGS | 6922847542401f451a26c6cc31b9d51b5889a008 | [
"Artistic-2.0"
] | null | null | null | iOS/libraries/ags2clientstub/ags2clientstub/AGS2ClientStub.cpp | jonreyno/AGS | 6922847542401f451a26c6cc31b9d51b5889a008 | [
"Artistic-2.0"
] | null | null | null | iOS/libraries/ags2clientstub/ags2clientstub/AGS2ClientStub.cpp | jonreyno/AGS | 6922847542401f451a26c6cc31b9d51b5889a008 | [
"Artistic-2.0"
] | null | null | null | // AGS2ClientStub
// Game-client plugin stub for AGS
// Copyright � 2014-2018 MonkeyMoto Productions, Inc.
#include <string>
#include "agsplugin.h"
#include "ags2client/IClientAchievements.h"
#include "ags2client/IClientLeaderboards.h"
#include "ags2client/IClientStats.h"
#include "AGS2ClientStub.h"
using namespace A... | 51.188679 | 157 | 0.795184 | jonreyno |
51d000a87efec159cafa81412465428ac6e8beeb | 999 | cpp | C++ | MOXY/Dialog5.cpp | simonyhong/Blip | 49b280b061470037edb672d4d2a7d434909dc039 | [
"Unlicense"
] | null | null | null | MOXY/Dialog5.cpp | simonyhong/Blip | 49b280b061470037edb672d4d2a7d434909dc039 | [
"Unlicense"
] | null | null | null | MOXY/Dialog5.cpp | simonyhong/Blip | 49b280b061470037edb672d4d2a7d434909dc039 | [
"Unlicense"
] | null | null | null | // Dialogue5.cpp : implementation file
//
#include "stdafx.h"
#include "MOS.h"
#include "Dialogue5.h"
// CDialogue5 dialog
IMPLEMENT_DYNAMIC(CDialogue5, CDialog)
CDialogue5::CDialogue5(CWnd* pParent /*=NULL*/)
: CDialog(CDialogue5::IDD, pParent)
, m_D5Var1(0)
, m_D5Var2(0)
{
}
CDialogue5::... | 19.98 | 90 | 0.718719 | simonyhong |
51d85f77b9750f2985aaa0d7d736ae128d3a9af8 | 1,003 | cpp | C++ | src/request/http_method_request_test.cpp | kokabe2/linc | 1fc1b5acf91c9dbc960075ae8bf96bc502c5e206 | [
"MIT"
] | null | null | null | src/request/http_method_request_test.cpp | kokabe2/linc | 1fc1b5acf91c9dbc960075ae8bf96bc502c5e206 | [
"MIT"
] | null | null | null | src/request/http_method_request_test.cpp | kokabe2/linc | 1fc1b5acf91c9dbc960075ae8bf96bc502c5e206 | [
"MIT"
] | null | null | null | // Copyright(c) 2020 Ken Okabe
// This software is released under the MIT License, see LICENSE.
#include "gtest/gtest.h"
extern "C" {
#include "http_method_request.h"
}
class HttpMethodRequestTest : public ::testing::Test {
protected:
char dummy_data[8];
Request req;
virtual void SetUp() {
... | 31.34375 | 110 | 0.703888 | kokabe2 |
51db449851b2a3658bd6ed766ce92e50ee5d653d | 46,741 | cpp | C++ | Official Windows Platform Sample/Windows 8.1 desktop samples/[C++]-Windows 8.1 desktop samples/Setting central access control and resource attributes sample/C++/ResourceAttributesSample.cpp | zzgchina888/msdn-code-gallery-microsoft | 21cb9b6bc0da3b234c5854ecac449cb3bd261f29 | [
"MIT"
] | 8 | 2017-04-30T17:38:27.000Z | 2021-11-29T00:59:03.000Z | Samples/Security/ResourceAttributes/cpp/ResourceAttributesSample.cpp | TomeSq/Windows-classic-samples | 96f883e4c900948e39660ec14a200a5164a3c7b7 | [
"MIT"
] | 1 | 2022-03-15T04:21:41.000Z | 2022-03-15T04:21:41.000Z | Samples/Security/ResourceAttributes/cpp/ResourceAttributesSample.cpp | TomeSq/Windows-classic-samples | 96f883e4c900948e39660ec14a200a5164a3c7b7 | [
"MIT"
] | 2 | 2020-08-11T13:21:49.000Z | 2021-09-01T10:41:51.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.
//
// ... | 31.992471 | 93 | 0.529578 | zzgchina888 |
51dca2e9bfe94fa453489faf6be4a4675ae1c9e2 | 1,538 | cpp | C++ | src/fs.cpp | amireh/jsq | 270273e6a57615a53671fac97b22c321b167d74b | [
"MIT"
] | 2 | 2019-07-29T01:31:35.000Z | 2020-06-18T07:23:03.000Z | src/fs.cpp | amireh/jsgrep | 270273e6a57615a53671fac97b22c321b167d74b | [
"MIT"
] | 1 | 2017-08-06T09:44:14.000Z | 2017-08-06T09:44:14.000Z | src/fs.cpp | amireh/jsgrep | 270273e6a57615a53671fac97b22c321b167d74b | [
"MIT"
] | null | null | null | #include <fstream>
#include <glob.h>
#include <ftw.h>
#include "jsgrep/fs.hpp"
namespace jsgrep {
fs::fs()
{
}
fs::~fs() {
}
bool fs::load_file(std::ifstream &fs, string_t& out_buf) const
{
if (!fs.is_open() || !fs.good()) return false;
while (fs.good()) {
out_buf.push_back(fs.get());
... | 18.756098 | 99 | 0.56567 | amireh |
51deec258ff59577c259b01ff280dfbdd8e8f118 | 8,933 | cpp | C++ | src/FrameGraph.cpp | skaarj1989/FrameGraph | 326e6762dcec39e6dbe529fb1be88910f7e33377 | [
"MIT"
] | 3 | 2022-03-17T06:55:17.000Z | 2022-03-25T06:08:11.000Z | src/FrameGraph.cpp | skaarj1989/FrameGraph | 326e6762dcec39e6dbe529fb1be88910f7e33377 | [
"MIT"
] | null | null | null | src/FrameGraph.cpp | skaarj1989/FrameGraph | 326e6762dcec39e6dbe529fb1be88910f7e33377 | [
"MIT"
] | 2 | 2022-03-17T06:55:05.000Z | 2022-03-25T05:06:50.000Z | #include "fg/FrameGraph.hpp"
#include <stack>
#include <sstream>
namespace {
struct StyleSheet {
bool useClusters{true};
const char *rankDir{"TB"}; // TB, LR, BT, RL
struct {
const char *name{"helvetica"};
int32_t size{10};
} font;
struct {
// https://graphviz.org/doc/info/colors.html
struc... | 30.697595 | 80 | 0.62577 | skaarj1989 |
51e172a0aa2afad2080630070810aa236c7ea91b | 294 | cpp | C++ | src/api/encoders/apiencoder.cpp | DavidPerezSanchez/GOS | 8621f319f2fa174af89771db861c93fbb6a2a684 | [
"Apache-2.0"
] | 5 | 2020-12-29T07:56:09.000Z | 2022-01-04T03:11:34.000Z | src/api/encoders/apiencoder.cpp | DavidPerezSanchez/GOS | 8621f319f2fa174af89771db861c93fbb6a2a684 | [
"Apache-2.0"
] | 4 | 2020-04-15T06:41:56.000Z | 2020-04-21T07:34:13.000Z | src/api/encoders/apiencoder.cpp | roger21gm/CSP2SAT | 8621f319f2fa174af89771db861c93fbb6a2a684 | [
"Apache-2.0"
] | 2 | 2021-01-07T18:15:26.000Z | 2022-03-07T11:54:08.000Z | #include "apiencoder.h"
APIEncoder::APIEncoder(Encoding * encoding) : Encoder(encoding){
}
void APIEncoder::initAssumptionOptimization(int lb, int ub){
workingFormula = EncodedFormula(enc->encode(lb,ub),lb,ub);
lastLB = lb;
lastUB = ub;
}
APIEncoder::~APIEncoder(){
}
| 17.294118 | 65 | 0.680272 | DavidPerezSanchez |
51e19addd93e39f6171a394e470dba261ecd0536 | 675 | cpp | C++ | _cpp_samples/template/auto.cpp | b1tank/leetcode | 0b71eb7a4f52291ff072b1280d6b76e68f7adfee | [
"MIT"
] | null | null | null | _cpp_samples/template/auto.cpp | b1tank/leetcode | 0b71eb7a4f52291ff072b1280d6b76e68f7adfee | [
"MIT"
] | 4 | 2020-09-26T01:04:01.000Z | 2022-02-10T01:58:28.000Z | _cpp_samples/template/auto.cpp | b1tank/leetcode | 0b71eb7a4f52291ff072b1280d6b76e68f7adfee | [
"MIT"
] | null | null | null | // auto.cpp by Bill Weinman <http://bw.org/>
// updated 2018-11-02
#include <iostream>
#include <typeinfo>
#include <string>
using namespace std;
int main() {
int i = 47;
const char * cstr = "this is a c-string";
const string sclass = string("this is a string class string");
auto x = "this is a c-... | 28.125 | 66 | 0.567407 | b1tank |
51e27435fa8187c38af65a972a6607d4041811c6 | 14,900 | cxx | C++ | ITS/ITSbase/AliITSVertexerZD.cxx | AllaMaevskaya/AliRoot | c53712645bf1c7d5f565b0d3228e3a6b9b09011a | [
"BSD-3-Clause"
] | 52 | 2016-12-11T13:04:01.000Z | 2022-03-11T11:49:35.000Z | ITS/ITSbase/AliITSVertexerZD.cxx | AllaMaevskaya/AliRoot | c53712645bf1c7d5f565b0d3228e3a6b9b09011a | [
"BSD-3-Clause"
] | 1,388 | 2016-11-01T10:27:36.000Z | 2022-03-30T15:26:09.000Z | ITS/ITSbase/AliITSVertexerZD.cxx | AllaMaevskaya/AliRoot | c53712645bf1c7d5f565b0d3228e3a6b9b09011a | [
"BSD-3-Clause"
] | 275 | 2016-06-21T20:24:05.000Z | 2022-03-31T13:06:19.000Z | /**************************************************************************
* Copyright(c) 1998-2003, ALICE Experiment at CERN, All rights reserved. *
* *
* Author: The ALICE Off-line Project. *
* Contributors ... | 33.333333 | 108 | 0.648456 | AllaMaevskaya |
51e3ba184749cde9509a4667d68cd46ce203bb89 | 1,822 | cpp | C++ | tools/paint/mybitarray.cpp | shouhengli/drishti | 46558d12adcc1d365b7e2125d28190e3be2181c3 | [
"MIT"
] | 118 | 2016-11-01T06:01:44.000Z | 2022-03-30T05:20:19.000Z | tools/paint/mybitarray.cpp | shouhengli/drishti | 46558d12adcc1d365b7e2125d28190e3be2181c3 | [
"MIT"
] | 56 | 2016-09-30T09:29:36.000Z | 2022-03-31T17:15:32.000Z | tools/paint/mybitarray.cpp | shouhengli/drishti | 46558d12adcc1d365b7e2125d28190e3be2181c3 | [
"MIT"
] | 28 | 2016-07-31T23:48:51.000Z | 2021-05-25T05:32:47.000Z | #include "mybitarray.h"
#include <QMessageBox>
MyBitArray::MyBitArray()
{
m_size = 0;
m_bits = 0;
}
MyBitArray::~MyBitArray() { clear(); }
void
MyBitArray::clear()
{
m_size = 0;
if (m_bits) delete [] m_bits;
m_bits = 0;
}
qint64
MyBitArray::resize(qint64 sz)
{
if (sz <= 0)
{
clear();
re... | 16.267857 | 93 | 0.558178 | shouhengli |
51e3c18b023bb09b293e444d79019e71838437e1 | 11,587 | cpp | C++ | Nyx/Cache/resource.cpp | rickmarson/phoenix | ecd551c18748db2ad4ab6f4725ea8d955e49063c | [
"MIT"
] | null | null | null | Nyx/Cache/resource.cpp | rickmarson/phoenix | ecd551c18748db2ad4ab6f4725ea8d955e49063c | [
"MIT"
] | null | null | null | Nyx/Cache/resource.cpp | rickmarson/phoenix | ecd551c18748db2ad4ab6f4725ea8d955e49063c | [
"MIT"
] | null | null | null | /*
Resource types and relative handles
*/
#include "resource.h"
#define STB_IMAGE_IMPLEMENTATION
#include "stb_image.h"
#include "Renderer/texture.h"
#include "Utils/log_manager.h"
#include "physfs.h"
#include "model.h"
//---------------------------------------------------------------------------
// Resources and H... | 22.944554 | 148 | 0.627859 | rickmarson |
51e61fac3fa72712208e4cb1a279d044661ece9e | 373 | hpp | C++ | src/frontend/internal/define_user_funcs.hpp | BastianBlokland/novus | 3b984c36855aa84d6746c14ff7e294ab7d9c1575 | [
"MIT"
] | 14 | 2020-04-14T17:00:56.000Z | 2021-08-30T08:29:26.000Z | src/frontend/internal/define_user_funcs.hpp | BastianBlokland/novus | 3b984c36855aa84d6746c14ff7e294ab7d9c1575 | [
"MIT"
] | 27 | 2020-12-27T16:00:44.000Z | 2021-08-01T13:12:14.000Z | src/frontend/internal/define_user_funcs.hpp | BastianBlokland/novus | 3b984c36855aa84d6746c14ff7e294ab7d9c1575 | [
"MIT"
] | 1 | 2020-05-29T18:33:37.000Z | 2020-05-29T18:33:37.000Z | #pragma once
#include "internal/context.hpp"
#include "internal/type_substitution_table.hpp"
namespace frontend::internal {
template <typename FuncParseNode>
auto defineFunc(
Context* ctx,
const TypeSubstitutionTable* typeSubTable,
prog::sym::FuncId id,
std::string funcDisplayName,
const FuncParse... | 23.3125 | 47 | 0.747989 | BastianBlokland |
51e9d779b3f6a53b0b432f42f0804efab702978a | 1,980 | cpp | C++ | Loong/LoongEditor/src/LoongEditorProjectManager.cpp | carlcc/Loong | 577e89b436eb0e5899295c95ee4587c0270cea94 | [
"Apache-2.0"
] | 9 | 2020-08-14T02:01:02.000Z | 2022-01-28T08:51:12.000Z | Loong/LoongEditor/src/LoongEditorProjectManager.cpp | carlcc/Loong | 577e89b436eb0e5899295c95ee4587c0270cea94 | [
"Apache-2.0"
] | null | null | null | Loong/LoongEditor/src/LoongEditorProjectManager.cpp | carlcc/Loong | 577e89b436eb0e5899295c95ee4587c0270cea94 | [
"Apache-2.0"
] | null | null | null | //
// Copyright (c) 2020 Carl Chen. All rights reserved.
//
#include "LoongEditorProjectManager.h"
#include "LoongApp/LoongApp.h"
#include "LoongFoundation/LoongDefer.h"
#include "LoongFoundation/LoongLogger.h"
#include <imgui.h>
#include <nfd.h>
namespace Loong::Editor {
LoongEditorProjectManager::LoongEditorProjec... | 31.428571 | 91 | 0.668182 | carlcc |
51ecd33b8927bf31412172b99dc12b26ceae30e5 | 5,546 | hpp | C++ | src/menuGUI.hpp | gbl08ma/imageviewer | 8c7d24af0a5bc6bfa90d00fe58aca3b24df90d71 | [
"BSD-2-Clause"
] | 9 | 2016-01-17T21:24:17.000Z | 2021-11-23T17:39:38.000Z | src/menuGUI.hpp | gbl08ma/imageviewer | 8c7d24af0a5bc6bfa90d00fe58aca3b24df90d71 | [
"BSD-2-Clause"
] | null | null | null | src/menuGUI.hpp | gbl08ma/imageviewer | 8c7d24af0a5bc6bfa90d00fe58aca3b24df90d71 | [
"BSD-2-Clause"
] | null | null | null | /*----------------------------------------------------------------------------/
/ JPEG and PNG Image Viewer for the Casio Prizm
/ Copyright 2014 tny. internet media
/ http://i.tny.im / admin@tny.im
/-----------------------------------------------------------------------------/
/ Copyright (c) 2014, Gabriel Maia and t... | 51.831776 | 239 | 0.733862 | gbl08ma |
51ecf6051e697716135d4eaa7eb953ac6990483e | 2,320 | cpp | C++ | Source/Rosbridge2Unreal/Private/Messages/geometry_msgs/ROSMsgTwist.cpp | peetonn/ROSBridge2Unreal | 6c8b4d70f3c6c884c33cf6da6ada7c39c644f59a | [
"BSD-3-Clause"
] | 3 | 2020-10-12T20:31:11.000Z | 2021-08-04T17:48:24.000Z | Source/Rosbridge2Unreal/Private/Messages/geometry_msgs/ROSMsgTwist.cpp | peetonn/ROSBridge2Unreal | 6c8b4d70f3c6c884c33cf6da6ada7c39c644f59a | [
"BSD-3-Clause"
] | 2 | 2021-08-16T09:00:39.000Z | 2021-12-07T20:47:16.000Z | Source/Rosbridge2Unreal/Private/Messages/geometry_msgs/ROSMsgTwist.cpp | peetonn/ROSBridge2Unreal | 6c8b4d70f3c6c884c33cf6da6ada7c39c644f59a | [
"BSD-3-Clause"
] | 1 | 2021-09-10T06:08:35.000Z | 2021-09-10T06:08:35.000Z | #include "Messages/geometry_msgs/ROSMsgTwist.h"
#include "DataHelpers.h"
UROSMsgTwist* UROSMsgTwist::Create(double Lx, double Ly, double Lz, double Ax, double Ay, double Az)
{
UROSMsgTwist* Message = NewObject<UROSMsgTwist>();
Message->LinearX = Lx;
Message->LinearY = Ly;
Message->LinearZ = Lz;
Message->... | 30.933333 | 101 | 0.72069 | peetonn |
51f12e0625dde80a79967ca777909e74d30c25ee | 2,877 | cpp | C++ | service_cluster_util.cpp | phaistos-networks/TANK | 2e351f3321cf6339b327a6889836a2b4b6a29a0a | [
"Apache-2.0"
] | 1,006 | 2016-06-29T14:53:54.000Z | 2022-03-05T16:02:07.000Z | service_cluster_util.cpp | phaistos-networks/TANK | 2e351f3321cf6339b327a6889836a2b4b6a29a0a | [
"Apache-2.0"
] | 64 | 2016-06-29T14:56:05.000Z | 2022-02-05T17:32:28.000Z | service_cluster_util.cpp | phaistos-networks/TANK | 2e351f3321cf6339b327a6889836a2b4b6a29a0a | [
"Apache-2.0"
] | 76 | 2016-07-03T09:38:30.000Z | 2021-02-17T09:36:14.000Z | #include "service_common.h"
uint8_t topic::replication_factor() const noexcept {
return cluster.rf_;
}
bool cluster_node::is_replica_for(const topic_partition *p) const TANK_NOEXCEPT_IF_NORUNTIME_CHECKS {
// this works because we always std::sort() whenever replica_for is dirty
// this is sort... | 27.141509 | 124 | 0.464025 | phaistos-networks |
51f1d2a09e885c255bcef53fa3a81b20a262a266 | 174 | cpp | C++ | simsync/src/synchronization/event.cpp | mariobadr/simsync-pmam | c541d2bf3a52eec8579e254a0300442bc3d6f1d4 | [
"Apache-2.0"
] | null | null | null | simsync/src/synchronization/event.cpp | mariobadr/simsync-pmam | c541d2bf3a52eec8579e254a0300442bc3d6f1d4 | [
"Apache-2.0"
] | null | null | null | simsync/src/synchronization/event.cpp | mariobadr/simsync-pmam | c541d2bf3a52eec8579e254a0300442bc3d6f1d4 | [
"Apache-2.0"
] | null | null | null | #include "simsync/synchronization/event.hpp"
namespace simsync {
event::event(int32_t const thread_id, thread_model &tm) : m_thread_id(thread_id), m_thread_model(tm)
{
}
}
| 19.333333 | 100 | 0.770115 | mariobadr |
51f4bac3b66a39cc073c1372f991fbfbee657f25 | 582 | cpp | C++ | source/Pictus/cnt_colorpreview.cpp | poppeman/Pictus | 0e58285b89292d0b221ab4d09911ef439711cc59 | [
"MIT"
] | 73 | 2015-01-19T17:38:26.000Z | 2022-02-15T06:16:08.000Z | source/Pictus/cnt_colorpreview.cpp | poppeman/Pictus | 0e58285b89292d0b221ab4d09911ef439711cc59 | [
"MIT"
] | 75 | 2015-01-01T17:32:24.000Z | 2018-10-18T08:19:08.000Z | source/Pictus/cnt_colorpreview.cpp | poppeman/Pictus | 0e58285b89292d0b221ab4d09911ef439711cc59 | [
"MIT"
] | 18 | 2015-01-05T04:57:18.000Z | 2022-03-06T01:35:10.000Z | #include "cnt_colorpreview.h"
#include "wintypes.h"
namespace App
{
BEGIN_EVENT_TABLE(ControlColorPreview, wxPanel)
EVT_SYS_COLOUR_CHANGED(ControlColorPreview::OnSysColor)
END_EVENT_TABLE()
void ControlColorPreview::SetColor(Img::Color color)
{
SetBackgroundColour(Win::ColorToWx(color));
Refresh();
Update... | 22.384615 | 118 | 0.766323 | poppeman |
51f4dc2cde8db839a80f197e66853c4c7dfaa689 | 1,996 | cpp | C++ | yave/graphics/commands/CmdBuffer.cpp | gan74/Yave | a35a68d388729d02f9793cc0fe9a530c010cf432 | [
"MIT"
] | 259 | 2016-12-02T03:06:19.000Z | 2022-03-13T19:21:00.000Z | yave/graphics/commands/CmdBuffer.cpp | gan74/Yave | a35a68d388729d02f9793cc0fe9a530c010cf432 | [
"MIT"
] | 3 | 2019-05-02T04:09:13.000Z | 2021-12-27T02:27:33.000Z | yave/graphics/commands/CmdBuffer.cpp | gan74/Yave | a35a68d388729d02f9793cc0fe9a530c010cf432 | [
"MIT"
] | 17 | 2019-01-04T10:07:23.000Z | 2021-09-15T08:41:04.000Z | /*******************************
Copyright (c) 2016-2021 Grégoire Angerand
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... | 28.514286 | 78 | 0.728958 | gan74 |
51f652bc11da4fe75f9255347359bce22c0019f6 | 3,116 | cpp | C++ | c++/discord/DiscordWebSocketConnection.cpp | sylar-la/libre_kgb | 4ddd66ea842bbbe3c4333d35d6d4964d2bc6c9b6 | [
"Unlicense"
] | 1 | 2020-04-19T17:21:15.000Z | 2020-04-19T17:21:15.000Z | c++/discord/DiscordWebSocketConnection.cpp | sylar-la/libre_kgb | 4ddd66ea842bbbe3c4333d35d6d4964d2bc6c9b6 | [
"Unlicense"
] | null | null | null | c++/discord/DiscordWebSocketConnection.cpp | sylar-la/libre_kgb | 4ddd66ea842bbbe3c4333d35d6d4964d2bc6c9b6 | [
"Unlicense"
] | null | null | null | #include "DiscordWebSocketConnection.h"
DiscordWebSocketConnection::DiscordWebSocketConnection(QString strName)
: m_strName(strName)
{
connect(&m_webSocket, &QWebSocket::connected, this, &DiscordWebSocketConnection::onSocketConnected);
connect(&m_webSocket, &QWebSocket::disconnected, this, &DiscordWebSoc... | 25.540984 | 131 | 0.675225 | sylar-la |
51faec558adf166b191aa5ceabf49d94421ef2c0 | 5,617 | cpp | C++ | src/libutil/paramlist.cpp | cometyang/oiio | e9ecdcff847d4c38533d603179c42853f8a38bb2 | [
"BSD-3-Clause"
] | 1 | 2021-01-22T21:12:24.000Z | 2021-01-22T21:12:24.000Z | src/libutil/paramlist.cpp | LumaPictures/oiio | f29faced1ffa035df3b3ba13028800966f55c0b1 | [
"BSD-3-Clause"
] | null | null | null | src/libutil/paramlist.cpp | LumaPictures/oiio | f29faced1ffa035df3b3ba13028800966f55c0b1 | [
"BSD-3-Clause"
] | null | null | null | /*
Copyright 2008 Larry Gritz and the other authors and contributors.
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
noti... | 30.527174 | 80 | 0.593911 | cometyang |
a40513074683d57a6366a422237d392dcdc7a51d | 2,068 | hpp | C++ | include/spl/primitives/rectangle.hpp | momokrono/spl | 36c2e2ceb6c0d51a57423e5422054aae09c58f83 | [
"MIT"
] | 5 | 2020-04-25T15:42:31.000Z | 2022-03-31T09:11:45.000Z | include/spl/primitives/rectangle.hpp | momokrono/spl | 36c2e2ceb6c0d51a57423e5422054aae09c58f83 | [
"MIT"
] | 6 | 2020-04-24T17:09:22.000Z | 2020-07-31T13:43:09.000Z | include/spl/primitives/rectangle.hpp | momokrono/spl | 36c2e2ceb6c0d51a57423e5422054aae09c58f83 | [
"MIT"
] | null | null | null | /**
* @author : rbrugo, momokrono
* @file : rectangle
* @created : Friday Mar 05, 2021 12:40:48 CET
* @license : MIT
* */
#ifndef PRIMITIVES_RECTANGLE_HPP
#define PRIMITIVES_RECTANGLE_HPP
#include <cstdint>
#include <utility>
#include "spl/primitives/vertex.hpp"
#include "spl/viewport.hpp"
... | 24.329412 | 117 | 0.65087 | momokrono |
a40583448e335e3241a68c0c4da7bd6bb0d42ef9 | 7,259 | cpp | C++ | src/xray/rtp/sources/test_grasping_controller.cpp | ixray-team/ixray-2.0 | 85c3a544175842323fc82f42efd96c66f0fc5abb | [
"Linux-OpenIB"
] | 3 | 2021-10-30T09:36:14.000Z | 2022-03-26T17:00:06.000Z | src/xray/rtp/sources/test_grasping_controller.cpp | acidicMercury8/ixray-2.0 | 85c3a544175842323fc82f42efd96c66f0fc5abb | [
"Linux-OpenIB"
] | null | null | null | src/xray/rtp/sources/test_grasping_controller.cpp | acidicMercury8/ixray-2.0 | 85c3a544175842323fc82f42efd96c66f0fc5abb | [
"Linux-OpenIB"
] | 1 | 2022-03-26T17:00:08.000Z | 2022-03-26T17:00:08.000Z | ////////////////////////////////////////////////////////////////////////////
// Created : 18.11.2009
// Author : Konstantin Slipchenko
// Copyright (C) GSC Game World - 2009
////////////////////////////////////////////////////////////////////////////
#include "pch.h"
#include "test_grasping_controller.h"
#in... | 27.392453 | 117 | 0.518115 | ixray-team |
a40a8c8c49b5b50a3c2f5482d62d4ceb0e07d548 | 383 | cpp | C++ | src/TritonRoute/src/db/drObj/drNet.cpp | mooredan/OpenROAD | ab235a982f49c6ce063b36d750fb4132d0046c8b | [
"BSD-3-Clause-Clear"
] | 1 | 2021-08-01T11:22:50.000Z | 2021-08-01T11:22:50.000Z | src/TritonRoute/src/db/drObj/drNet.cpp | mooredan/OpenROAD | ab235a982f49c6ce063b36d750fb4132d0046c8b | [
"BSD-3-Clause-Clear"
] | null | null | null | src/TritonRoute/src/db/drObj/drNet.cpp | mooredan/OpenROAD | ab235a982f49c6ce063b36d750fb4132d0046c8b | [
"BSD-3-Clause-Clear"
] | 1 | 2021-10-09T05:59:38.000Z | 2021-10-09T05:59:38.000Z | /*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
#include "../../dr/FlexDR.h"
void fr::drNet::incNdrRipupThresh()
{
if (hasNDR()) {
ndrRipupThresh_++;
}
}
bool fr::drNet::has... | 20.157895 | 79 | 0.67624 | mooredan |
a40f9d07d55af212d14341abe6b2eb91ee2d5961 | 1,741 | cpp | C++ | Source/HardTime2/Private/PlayerRegistry.cpp | ThomasWilliamWallace/PrisonGame | 243ffd5d587086775c094d3dc72ff29987aa9bce | [
"MIT"
] | 1 | 2018-12-30T15:35:50.000Z | 2018-12-30T15:35:50.000Z | Source/HardTime2/Private/PlayerRegistry.cpp | ThomasWilliamWallace/PrisonGame | 243ffd5d587086775c094d3dc72ff29987aa9bce | [
"MIT"
] | null | null | null | Source/HardTime2/Private/PlayerRegistry.cpp | ThomasWilliamWallace/PrisonGame | 243ffd5d587086775c094d3dc72ff29987aa9bce | [
"MIT"
] | null | null | null | #include "PlayerRegistry.h"
#include "PlayerData.h"
void UPlayerRegistry::RegisterPlayer(UPlayerData* addPlayerData)
{
//add to player registry
int addKey = 0;
do {
addKey += 1;
} while (Contains(m_playerMap, addKey));
Add(m_playerMap, addKey, addPlayerData);
addPlayerData->m_key = addK... | 32.240741 | 186 | 0.684664 | ThomasWilliamWallace |
a4147f4e79d76e13a49741143adf736b9c46164a | 2,417 | cpp | C++ | src/Ontology/Address.cpp | dappstore123/wallet-core | f885df47d4837ae43773447dac58a31713d90d67 | [
"MIT"
] | 7 | 2019-05-29T02:56:59.000Z | 2021-08-31T16:58:29.000Z | src/Ontology/Address.cpp | dappstore123/wallet-core | f885df47d4837ae43773447dac58a31713d90d67 | [
"MIT"
] | 2 | 2019-08-31T22:56:54.000Z | 2021-08-10T12:07:44.000Z | src/Ontology/Address.cpp | dappstore123/wallet-core | f885df47d4837ae43773447dac58a31713d90d67 | [
"MIT"
] | 5 | 2020-03-07T14:54:39.000Z | 2021-09-25T03:27:31.000Z | // Copyright © 2017-2019 Trust Wallet.
//
// This file is part of Trust. The full Trust copyright notice, including
// terms governing use, modification, and redistribution, is contained in the
// file LICENSE at the root of the source code distribution tree.
#include "Address.h"
#include "OpCode.h"
#include "ParamsBu... | 32.662162 | 99 | 0.683492 | dappstore123 |
a414a0ff614a38e32c3c9b034f5c3f1b0bcbca53 | 4,065 | cpp | C++ | test/basic_operations.cpp | tretre91/ccalc | 3e13365855018314b798287967a978f4951783da | [
"Zlib"
] | null | null | null | test/basic_operations.cpp | tretre91/ccalc | 3e13365855018314b798287967a978f4951783da | [
"Zlib"
] | null | null | null | test/basic_operations.cpp | tretre91/ccalc | 3e13365855018314b798287967a978f4951783da | [
"Zlib"
] | null | null | null | #include "test_helper.hpp"
#include <catch2/catch.hpp>
TEST_CASE("addition", "[basic operations]") {
ccalc::Driver driver;
driver.setMode(ccalc::Mode::test);
auto a_ = GENERATE(take(20, random(std::numeric_limits<double>::min(), std::numeric_limits<double>::max())));
auto b_ = GENERATE(take(20, random... | 44.184783 | 113 | 0.59877 | tretre91 |
a414b0d06dbdbbe41f4dcf814432996b2fc4fa37 | 879 | cpp | C++ | leetcode257.cpp | SJTUGavinLiu/Leetcodes | 99d4010bc34e78d22e3c8b6436e4489a7d1338da | [
"MIT"
] | null | null | null | leetcode257.cpp | SJTUGavinLiu/Leetcodes | 99d4010bc34e78d22e3c8b6436e4489a7d1338da | [
"MIT"
] | null | null | null | leetcode257.cpp | SJTUGavinLiu/Leetcodes | 99d4010bc34e78d22e3c8b6436e4489a7d1338da | [
"MIT"
] | null | null | null | /**
* Definition for a binary tree node.
* struct TreeNode {
* int val;
* TreeNode *left;
* TreeNode *right;
* TreeNode(int x) : val(x), left(NULL), right(NULL) {}
* };
*/
class Solution {
private:
vector<string> res;
void dfs(string s, TreeNode* root)
{
string cur = s + "->"... | 25.852941 | 72 | 0.533561 | SJTUGavinLiu |
a420874db2ace38be0f46629fee9e7dae18243e5 | 67 | cpp | C++ | PsythonRenderer/Ui/2D/PsythonButton.cpp | TheFungineer/PsythonToolbox | 95b2437e5cc3b3a3b99e7ba3dc4baad4c4c5bec9 | [
"MIT"
] | null | null | null | PsythonRenderer/Ui/2D/PsythonButton.cpp | TheFungineer/PsythonToolbox | 95b2437e5cc3b3a3b99e7ba3dc4baad4c4c5bec9 | [
"MIT"
] | 1 | 2021-11-15T17:48:37.000Z | 2021-11-15T17:48:37.000Z | PsythonRenderer/Ui/PsythonSceneView.cpp | TheFungineer/PsythonToolbox | 95b2437e5cc3b3a3b99e7ba3dc4baad4c4c5bec9 | [
"MIT"
] | null | null | null | #include "PsythonScene.hpp"
namespace psy {
} // namespace psy | 9.571429 | 27 | 0.686567 | TheFungineer |
a4264962431ef7a44dcfef126569e2daa616e0ab | 1,341 | cpp | C++ | fracc/program.cpp | jbeder/fractran | d18bf3f940e80eb44202781e6131c5e49f9e8023 | [
"MIT"
] | 22 | 2015-06-03T14:13:27.000Z | 2021-07-31T04:52:23.000Z | fracc/program.cpp | Acidburn0zzz/fractran | d18bf3f940e80eb44202781e6131c5e49f9e8023 | [
"MIT"
] | null | null | null | fracc/program.cpp | Acidburn0zzz/fractran | d18bf3f940e80eb44202781e6131c5e49f9e8023 | [
"MIT"
] | 3 | 2017-09-19T08:10:05.000Z | 2020-11-15T20:55:26.000Z | #include "program.h"
#include "fn.h"
#include "simplefn.h"
#include "whilefn.h"
#include "iffn.h"
#include "util.h"
#include "yaml-cpp/yaml.h"
Program::Program(const YAML::Node& fns) {
for (YAML::Iterator it = fns.begin(); it != fns.end(); ++it) {
std::string name;
it.first() >> name;
ReadFn(name, it.sec... | 21.983607 | 69 | 0.641312 | jbeder |
a42d65d3de0b53a9c47e7ef99a51063f43373986 | 6,219 | cxx | C++ | Dockerized/rdpstack/cmake-3.17.2/Source/cmNinjaUtilityTargetGenerator.cxx | nsimbi/Proconsul | 70cb520463bf9d9e36b37c57db5c7798a8604c03 | [
"MIT"
] | null | null | null | Dockerized/rdpstack/cmake-3.17.2/Source/cmNinjaUtilityTargetGenerator.cxx | nsimbi/Proconsul | 70cb520463bf9d9e36b37c57db5c7798a8604c03 | [
"MIT"
] | null | null | null | Dockerized/rdpstack/cmake-3.17.2/Source/cmNinjaUtilityTargetGenerator.cxx | nsimbi/Proconsul | 70cb520463bf9d9e36b37c57db5c7798a8604c03 | [
"MIT"
] | null | null | null | /* Distributed under the OSI-approved BSD 3-Clause License. See accompanying
file Copyright.txt or https://cmake.org/licensing for details. */
#include "cmNinjaUtilityTargetGenerator.h"
#include <algorithm>
#include <array>
#include <iterator>
#include <string>
#include <utility>
#include <vector>
#include "cmCu... | 36.582353 | 79 | 0.673099 | nsimbi |
a42f48853fc92fe318feae9412d9fc509b83e5d8 | 582 | hh | C++ | src/sound/SNPSG.hh | D15C0DE/openMSX | 5119a9657de4b82115c745f670cdc55dc7363133 | [
"Naumen",
"Condor-1.1",
"MS-PL"
] | 7 | 2019-10-11T21:47:05.000Z | 2021-10-05T19:58:18.000Z | src/sound/SNPSG.hh | D15C0DE/openMSX | 5119a9657de4b82115c745f670cdc55dc7363133 | [
"Naumen",
"Condor-1.1",
"MS-PL"
] | 1 | 2016-01-02T15:55:29.000Z | 2016-01-02T15:55:29.000Z | src/sound/SNPSG.hh | D15C0DE/openMSX | 5119a9657de4b82115c745f670cdc55dc7363133 | [
"Naumen",
"Condor-1.1",
"MS-PL"
] | 2 | 2020-01-17T02:06:13.000Z | 2021-06-10T17:13:07.000Z | #ifndef SNPSG_HH
#define SNPSG_HH
#include "MSXDevice.hh"
#include <memory>
namespace openmsx {
class SN76489;
/** Device that puts the Texas Instruments SN76489 sound chip at
* a fixed I/O address.
*/
class SNPSG final : public MSXDevice
{
public:
SNPSG(const DeviceConfig& config);
~SNPSG() override;
void ... | 17.636364 | 67 | 0.738832 | D15C0DE |
bfa3b49a0039de1e6fca1851dcf59856496d571f | 5,989 | cpp | C++ | source/plum/platform/plaidaudio/audio.cpp | Bananattack/Plum | 60ae0b07c0ef25dfa4bda6e81fe646ace6042664 | [
"BSD-3-Clause"
] | 5 | 2015-02-10T03:50:28.000Z | 2017-08-23T08:49:49.000Z | source/plum/platform/plaidaudio/audio.cpp | Bananattack/Plum | 60ae0b07c0ef25dfa4bda6e81fe646ace6042664 | [
"BSD-3-Clause"
] | null | null | null | source/plum/platform/plaidaudio/audio.cpp | Bananattack/Plum | 60ae0b07c0ef25dfa4bda6e81fe646ace6042664 | [
"BSD-3-Clause"
] | 1 | 2019-10-05T08:54:56.000Z | 2019-10-05T08:54:56.000Z | #include <iostream>
#include <unordered_set>
#include <functional>
#include <plaid/audio.h>
#include <plaid/audio/effects.h>
#include "../../core/file.h"
#include "../../core/audio.h"
#include "../../core/engine.h"
namespace
{
}
namespace plum
{
class Channel::Impl
{
public:
... | 22.94636 | 126 | 0.458173 | Bananattack |
bfa6625ebd2a9a1776e39783f3ec9072c8732f8d | 8,809 | cpp | C++ | Kross/src/Kross/Scene/SceneSerializer.cpp | WillianKoessler/KROSS-ENGINE | 0e680b455ffd071565fe8b99343805ad16ca1e91 | [
"Apache-2.0"
] | null | null | null | Kross/src/Kross/Scene/SceneSerializer.cpp | WillianKoessler/KROSS-ENGINE | 0e680b455ffd071565fe8b99343805ad16ca1e91 | [
"Apache-2.0"
] | null | null | null | Kross/src/Kross/Scene/SceneSerializer.cpp | WillianKoessler/KROSS-ENGINE | 0e680b455ffd071565fe8b99343805ad16ca1e91 | [
"Apache-2.0"
] | null | null | null | #include <Kross_pch.h>
#include "Kross/Core/Stack.h"
#include "SceneSerializer.h"
#include "Entity.h"
#include "Components.h"
#include <yaml-cpp/yaml.h>
#include <filesystem>
namespace YAML {
template<> struct convert<glm::vec4>
{
static Node encode(const glm::vec4 &v)
{
Node node;
node.push_back(v.x);
... | 32.032727 | 111 | 0.629924 | WillianKoessler |
bfaa048b4ce9bd62f3d37259802eac71a2133797 | 1,233 | hpp | C++ | rmoss_cam/include/rmoss_cam/register_node_macro.hpp | Ericsii/rmoss_core | f7c68373c738f82480c31032dab7bdffef218bab | [
"Apache-2.0"
] | null | null | null | rmoss_cam/include/rmoss_cam/register_node_macro.hpp | Ericsii/rmoss_core | f7c68373c738f82480c31032dab7bdffef218bab | [
"Apache-2.0"
] | null | null | null | rmoss_cam/include/rmoss_cam/register_node_macro.hpp | Ericsii/rmoss_core | f7c68373c738f82480c31032dab7bdffef218bab | [
"Apache-2.0"
] | null | null | null | // Copyright 2022 RoboMaster-OSS
//
// 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 ... | 38.53125 | 75 | 0.78751 | Ericsii |
bfaecfe5c39b399596e571fd150705742dfb6b29 | 3,713 | cpp | C++ | src/wmtk/utils/ManifoldUtils.cpp | wildmeshing/wildmeshing-toolkit | 7f4c60e5a6d366d9c3850b720b42b610e10600c2 | [
"MIT"
] | 8 | 2021-12-10T08:26:45.000Z | 2022-03-24T00:19:41.000Z | src/wmtk/utils/ManifoldUtils.cpp | wildmeshing/wildmeshing-toolkit | 7f4c60e5a6d366d9c3850b720b42b610e10600c2 | [
"MIT"
] | 86 | 2021-12-03T01:46:30.000Z | 2022-03-23T19:33:17.000Z | src/wmtk/utils/ManifoldUtils.cpp | wildmeshing/wildmeshing-toolkit | 7f4c60e5a6d366d9c3850b720b42b610e10600c2 | [
"MIT"
] | 2 | 2021-11-26T08:29:38.000Z | 2022-01-03T22:10:42.000Z | #include "ManifoldUtils.hpp"
#include <wmtk/utils/VectorUtils.h>
// clang-format off
#include <wmtk/utils/DisableWarnings.hpp>
#include <lagrange/mesh_cleanup/resolve_nonmanifoldness.h>
#include <wmtk/utils/EnableWarnings.hpp>
// clang-format on
#include <igl/extract_manifold_patches.h>
#include <igl/is_edge_manifol... | 34.37963 | 99 | 0.66146 | wildmeshing |
bfb712f9c38f68a9cd6af9e31bf43228910692bc | 1,232 | cpp | C++ | CSES/DP/RemovalGame.cpp | Harry-kp/Cp | 94e687a3a5256913467f50d8f757b12640529513 | [
"MIT"
] | 2 | 2020-11-19T19:21:24.000Z | 2021-04-22T10:53:16.000Z | CSES/DP/RemovalGame.cpp | Harry-kp/Cp | 94e687a3a5256913467f50d8f757b12640529513 | [
"MIT"
] | null | null | null | CSES/DP/RemovalGame.cpp | Harry-kp/Cp | 94e687a3a5256913467f50d8f757b12640529513 | [
"MIT"
] | 1 | 2021-12-02T06:03:17.000Z | 2021-12-02T06:03:17.000Z | #include <bits/stdc++.h>
using namespace std;
#define fastio \
ios_base::sync_with_stdio(0); \
cin.tie(NULL); \
cout.tie(NULL)
#define PI(a, b) pair<a, b>
#define MP make_pair
#define EB emplace_back
#define MOD 1000000007
#define int long long int
#define S second
#define... | 20.196721 | 57 | 0.496753 | Harry-kp |
bfb9d35a3c73d2678692c4758a10f727f46c66af | 8,047 | cpp | C++ | arduino/libraries/LovyanGFX/src/lgfx/v1/platforms/esp8266/Bus_SPI.cpp | Mchaney3/AXSResearch | 6843b833a95010014bb3113ca59dda3b5e1c3663 | [
"Unlicense"
] | 46 | 2021-05-28T10:43:21.000Z | 2022-03-30T11:47:54.000Z | arduino/libraries/LovyanGFX/src/lgfx/v1/platforms/esp8266/Bus_SPI.cpp | Mchaney3/AXSResearch | 6843b833a95010014bb3113ca59dda3b5e1c3663 | [
"Unlicense"
] | 10 | 2021-05-30T10:37:30.000Z | 2022-03-27T22:08:05.000Z | arduino/libraries/LovyanGFX/src/lgfx/v1/platforms/esp8266/Bus_SPI.cpp | Mchaney3/AXSResearch | 6843b833a95010014bb3113ca59dda3b5e1c3663 | [
"Unlicense"
] | 10 | 2021-05-29T12:07:14.000Z | 2022-01-22T18:33:46.000Z | /*----------------------------------------------------------------------------/
Lovyan GFX - Graphics library for embedded devices.
Original Source:
https://github.com/lovyan03/LovyanGFX/
Licence:
[FreeBSD](https://github.com/lovyan03/LovyanGFX/blob/master/license.txt)
Author:
[lovyan03](https://twitter.com/lov... | 24.020896 | 121 | 0.564807 | Mchaney3 |
bfbd25cddd9aedae50ffa482df341d191b803c0f | 2,736 | cpp | C++ | SpaceCadetPinball/timer.cpp | Nixola/SpaceCadetPinball | 7ee508118c124b2ac889eadc0e1b81ecc3e9830f | [
"MIT"
] | 1,175 | 2021-02-13T05:26:56.000Z | 2022-03-31T21:17:56.000Z | SpaceCadetPinball/timer.cpp | Nixola/SpaceCadetPinball | 7ee508118c124b2ac889eadc0e1b81ecc3e9830f | [
"MIT"
] | 109 | 2021-06-11T03:44:50.000Z | 2022-03-31T09:53:15.000Z | SpaceCadetPinball/timer.cpp | Nixola/SpaceCadetPinball | 7ee508118c124b2ac889eadc0e1b81ecc3e9830f | [
"MIT"
] | 76 | 2021-07-25T17:15:30.000Z | 2022-03-28T21:44:58.000Z | #include "pch.h"
#include "timer.h"
#include "pb.h"
int timer::SetCount;
timer_struct* timer::ActiveList;
int timer::MaxCount;
int timer::Count;
timer_struct* timer::FreeList;
timer_struct* timer::TimerBuffer;
int timer::init(int count)
{
auto buf = new timer_struct[count];
TimerBuffer = buf;
if (!buf)
return 1... | 19 | 81 | 0.660088 | Nixola |
bfc0965eaa0b17b9ba7abb141ac94f744464b776 | 1,691 | cpp | C++ | Spoj/TRYCOMP_Trytocomplete.cpp | seeva92/Competitive-Programming | 69061c5409bb806148616fe7d86543e94bf76edd | [
"Apache-2.0"
] | null | null | null | Spoj/TRYCOMP_Trytocomplete.cpp | seeva92/Competitive-Programming | 69061c5409bb806148616fe7d86543e94bf76edd | [
"Apache-2.0"
] | null | null | null | Spoj/TRYCOMP_Trytocomplete.cpp | seeva92/Competitive-Programming | 69061c5409bb806148616fe7d86543e94bf76edd | [
"Apache-2.0"
] | null | null | null | #include <bits/stdc++.h>
typedef long long ll;
const int mod = 1e9 + 7;
const int MAX = 1e5 + 7;
using namespace std;
typedef vector<int> vi;
struct node {
node *child[26];
int flag;
int res;
string s;
};
node * head;
int n, q; string s;
string result; int resc = 0;
inline node * newnode() {
node *temp = new node(... | 20.876543 | 78 | 0.559432 | seeva92 |
bfc2da023b4d43ca724e27f8735e2c5814bd1152 | 19,992 | cpp | C++ | src/win_updater.cpp | mq1n/WinQuickUpdater | 6dd1db6c6ee01b91074e9e32eec7eaf3b4811ccf | [
"MIT"
] | 8 | 2020-09-25T23:42:20.000Z | 2021-12-31T17:12:58.000Z | src/win_updater.cpp | mq1n/WinQuickUpdater | 6dd1db6c6ee01b91074e9e32eec7eaf3b4811ccf | [
"MIT"
] | null | null | null | src/win_updater.cpp | mq1n/WinQuickUpdater | 6dd1db6c6ee01b91074e9e32eec7eaf3b4811ccf | [
"MIT"
] | 2 | 2020-09-26T01:01:07.000Z | 2020-12-11T07:25:40.000Z | #include "../include/pch.hpp"
#include "../include/win_updater.hpp"
#include "../include/log_helper.hpp"
#include "../include/application.hpp"
#include "../include/main_ui.hpp"
#ifndef SAFE_RELEASE
#define SAFE_RELEASE(p) { if(p) { (p)->Release(); (p)=NULL; } }
#endif
namespace WinQuickUpdater
{
volatile bool g_upda... | 34.057922 | 175 | 0.679872 | mq1n |
bfc8f7aac3f242dedabd92d4dde18d3726139b2b | 2,520 | cpp | C++ | tests/core/object_pool_tests.cpp | irisengine/iris | 0deb12f5d00c67bf0dde1a702344a2cf73925db6 | [
"BSL-1.0"
] | 85 | 2021-10-16T14:58:23.000Z | 2022-03-26T11:05:37.000Z | tests/core/object_pool_tests.cpp | irisengine/iris | 0deb12f5d00c67bf0dde1a702344a2cf73925db6 | [
"BSL-1.0"
] | null | null | null | tests/core/object_pool_tests.cpp | irisengine/iris | 0deb12f5d00c67bf0dde1a702344a2cf73925db6 | [
"BSL-1.0"
] | 2 | 2021-10-17T16:57:13.000Z | 2021-11-14T19:11:30.000Z | #include "core/object_pool.h"
#include <gtest/gtest.h>
#include "core/thread.h"
#include "core/vector3.h"
TEST(object_pool, single)
{
iris::ObjectPool<iris::Vector3> pool{};
const auto *v = pool.next(1.0f, 2.0f, 3.0f);
ASSERT_EQ(*v, iris::Vector3(1.0f, 2.0f, 3.0f));
}
TEST(object_pool, multiple)
{
... | 23.551402 | 111 | 0.564683 | irisengine |
bfd88ffb7afdbc5f39be2f30e8febaacdbc51338 | 1,141 | cpp | C++ | Codeforces/Good Bye 2020/D.cpp | python-programmer1512/Code_of_gunwookim | e72e6724fb9ee6ccf2e1064583956fa954ba0282 | [
"MIT"
] | 4 | 2021-01-27T11:51:30.000Z | 2021-01-30T17:02:55.000Z | Codeforces/Good Bye 2020/D.cpp | python-programmer1512/Code_of_gunwookim | e72e6724fb9ee6ccf2e1064583956fa954ba0282 | [
"MIT"
] | null | null | null | Codeforces/Good Bye 2020/D.cpp | python-programmer1512/Code_of_gunwookim | e72e6724fb9ee6ccf2e1064583956fa954ba0282 | [
"MIT"
] | 5 | 2021-01-27T11:46:12.000Z | 2021-05-06T05:37:47.000Z | #include <bits/stdc++.h>
#define x first
#define y second
#define pb push_back
#define all(v) v.begin(),v.end()
#pragma gcc optimize("O3")
#pragma gcc optimize("Ofast")
#pragma gcc optimize("unroll-loops")
using namespace std;
const int INF = 1e9;
const int TMX = 1 << 18;
const long long llINF = 2e18;
const long long ... | 20.745455 | 47 | 0.575811 | python-programmer1512 |
bfd97104e47f759da7aa054b398a73797cd81291 | 2,413 | cpp | C++ | lib/src/MFTools/MFAliasFactory.cpp | rmrsk/Chombo-3.3 | f2119e396460c1bb19638effd55eb71c2b35119e | [
"BSD-3-Clause-LBNL"
] | null | null | null | lib/src/MFTools/MFAliasFactory.cpp | rmrsk/Chombo-3.3 | f2119e396460c1bb19638effd55eb71c2b35119e | [
"BSD-3-Clause-LBNL"
] | null | null | null | lib/src/MFTools/MFAliasFactory.cpp | rmrsk/Chombo-3.3 | f2119e396460c1bb19638effd55eb71c2b35119e | [
"BSD-3-Clause-LBNL"
] | 1 | 2021-04-13T19:06:43.000Z | 2021-04-13T19:06:43.000Z | #ifdef CH_LANG_CC
/*
* _______ __
* / ___/ / ___ __ _ / / ___
* / /__/ _ \/ _ \/ V \/ _ \/ _ \
* \___/_//_/\___/_/_/_/_.__/\___/
* Please refer to Copyright.txt, in Chombo's root directory.
*/
#endif
#include "MFAliasFactory.H"
#include "NamespaceHeader.H"
MFAliasFactory::MFA... | 30.544304 | 86 | 0.631579 | rmrsk |
bfded911bdd2d1a1802291bb4fb83f1c6a39eabe | 7,317 | cpp | C++ | libraries/C68000Cpu/CKonamiTwin16BaseGame.cpp | porchio/arduino-mega-ict | dcc4b37cdbae2966d5736589bea776bf286df9ee | [
"BSD-2-Clause"
] | 19 | 2016-01-14T10:54:07.000Z | 2021-06-29T17:47:54.000Z | libraries/C68000Cpu/CKonamiTwin16BaseGame.cpp | Judder/arduino-mega-ict-atom | 409453565a6f535d2e16ac9f86c6f43027b10786 | [
"BSD-2-Clause"
] | 11 | 2016-01-20T23:30:34.000Z | 2021-05-22T18:06:55.000Z | libraries/C68000Cpu/CKonamiTwin16BaseGame.cpp | Judder/arduino-mega-ict-atom | 409453565a6f535d2e16ac9f86c6f43027b10786 | [
"BSD-2-Clause"
] | 16 | 2016-01-03T18:29:09.000Z | 2021-08-18T14:09:36.000Z | //
// Copyright (c) 2017, Paul R. Swan
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without modification,
// are permitted provided that the following conditions are met:
//
// 1. Redistributions of source code must retain the above copyright notice,
// this list of condit... | 48.138158 | 132 | 0.549952 | porchio |
bfe9c1faf968ae7d7b801eb829aae97cb81cabf3 | 9,961 | cpp | C++ | coconut-pulp-renderer/src/main/c++/coconut/pulp/renderer/Model.cpp | mikosz/coconut | 547bfd55062f09d7af853043c393fc51e8a7a8b6 | [
"Apache-2.0"
] | 1 | 2017-05-02T12:01:54.000Z | 2017-05-02T12:01:54.000Z | coconut-pulp-renderer/src/main/c++/coconut/pulp/renderer/Model.cpp | mikosz/coconut | 547bfd55062f09d7af853043c393fc51e8a7a8b6 | [
"Apache-2.0"
] | null | null | null | coconut-pulp-renderer/src/main/c++/coconut/pulp/renderer/Model.cpp | mikosz/coconut | 547bfd55062f09d7af853043c393fc51e8a7a8b6 | [
"Apache-2.0"
] | null | null | null | #include "Model.hpp"
#include <algorithm>
#include <iterator>
#include <numeric>
#include "Actor.hpp"
using namespace coconut;
using namespace coconut::pulp;
using namespace coconut::pulp::renderer;
namespace /* anonymous */ {
milk::graphics::Buffer::Configuration vertexBufferConfiguration(
size_t vertexCount,
s... | 32.028939 | 139 | 0.724827 | mikosz |
bfecc512616b693e4fc7668b72c50312b2383a21 | 2,743 | cpp | C++ | tests/enumerate_test.cpp | alessandro90/cpputils | 45ebd28be73cabc3a38f09cfc08779f72f518772 | [
"MIT"
] | null | null | null | tests/enumerate_test.cpp | alessandro90/cpputils | 45ebd28be73cabc3a38f09cfc08779f72f518772 | [
"MIT"
] | 3 | 2022-02-26T23:37:11.000Z | 2022-03-13T17:48:03.000Z | tests/enumerate_test.cpp | alessandro90/cpputils | 45ebd28be73cabc3a38f09cfc08779f72f518772 | [
"MIT"
] | null | null | null | #include "catch2/catch_test_macros.hpp"
#include "cpputils/functional/enumerate.hpp"
#include "cpputils/types/number.hpp"
#include <cstddef>
#include <ranges>
#include <vector>
using namespace cpputils;
using namespace cpputils::literals;
TEST_CASE("enumerate test", "[from_vector]") {
{
std::vector cons... | 29.815217 | 93 | 0.526066 | alessandro90 |
bff1d119a1633ac7b172932c133486169334e693 | 3,004 | cpp | C++ | vpViper/ControlAlgDisplay.cpp | SomayehNorouzi/EyeToHand_VPC_Continuum_Robot | 791a14040025e666d308be487a50018ca1a2e11d | [
"MIT"
] | null | null | null | vpViper/ControlAlgDisplay.cpp | SomayehNorouzi/EyeToHand_VPC_Continuum_Robot | 791a14040025e666d308be487a50018ca1a2e11d | [
"MIT"
] | null | null | null | vpViper/ControlAlgDisplay.cpp | SomayehNorouzi/EyeToHand_VPC_Continuum_Robot | 791a14040025e666d308be487a50018ca1a2e11d | [
"MIT"
] | null | null | null | #include "stdafx.h"
#include "ControlAlgDisplay.h"
/****************************************************************************
*
* ViSP, open source Visual Servoing Platform software.
* Copyright(C) 2005 - 2019 by Inria.All rights reserved.
*
* This software is free software; you can redistribute it and / or modify
*... | 34.136364 | 117 | 0.696405 | SomayehNorouzi |
bffa066a81eaaf32bd1fc3f23c0f67d2ea510bbe | 1,157 | cpp | C++ | test/mpdef/group_by.cpp | ricejasonf/nbdl | ae63717c96ab2c36107bc17b2b00115f96e9d649 | [
"BSL-1.0"
] | 47 | 2016-06-20T01:41:24.000Z | 2021-11-16T10:53:27.000Z | test/mpdef/group_by.cpp | ricejasonf/nbdl | ae63717c96ab2c36107bc17b2b00115f96e9d649 | [
"BSL-1.0"
] | 21 | 2015-11-12T23:05:47.000Z | 2019-07-17T19:01:40.000Z | test/mpdef/group_by.cpp | ricejasonf/nbdl | ae63717c96ab2c36107bc17b2b00115f96e9d649 | [
"BSL-1.0"
] | 6 | 2015-11-12T21:23:29.000Z | 2019-05-09T17:54:25.000Z | //
// Copyright Jason Rice 2017
// 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 <mpdef/group_by.hpp>
#include <mpdef/pair.hpp>
#include <type_traits>
namespace hana = boost::hana;
namespace
{
te... | 23.612245 | 75 | 0.624892 | ricejasonf |
bffe358ae1d2b97f12eb9676c85365562e2bfb1a | 7,558 | cpp | C++ | PrismaticPathTracer/Source/Tracers/pePathTracer.cpp | Mortano/Prismatic | e2e931e1ee8bfd3899b26f8c91e593f0d7213d64 | [
"BSD-3-Clause"
] | null | null | null | PrismaticPathTracer/Source/Tracers/pePathTracer.cpp | Mortano/Prismatic | e2e931e1ee8bfd3899b26f8c91e593f0d7213d64 | [
"BSD-3-Clause"
] | null | null | null | PrismaticPathTracer/Source/Tracers/pePathTracer.cpp | Mortano/Prismatic | e2e931e1ee8bfd3899b26f8c91e593f0d7213d64 | [
"BSD-3-Clause"
] | null | null | null | #include "Tracers\pePathTracer.h"
#include "Components/peCameraComponent.h"
#include "Integration/peDebugIntegrator.h"
#include "Integration/peDirectLightIntegrator.h"
#include "Integration/pePathTracingIntegrator.h"
#include "Math/MathUtil.h"
#include "Math/peCoordSys.h"
#include "Sampling/peSampler.h"
#include "Util/... | 33.442478 | 80 | 0.643689 | Mortano |
bfff3c65e83a25fe02104e454cca94bc69d49d58 | 726 | hpp | C++ | include/ez/geo/Line.hpp | errata-c/ez-geo | 9d45a411dd226d016d9475df380de9cf80a130de | [
"MIT"
] | null | null | null | include/ez/geo/Line.hpp | errata-c/ez-geo | 9d45a411dd226d016d9475df380de9cf80a130de | [
"MIT"
] | null | null | null | include/ez/geo/Line.hpp | errata-c/ez-geo | 9d45a411dd226d016d9475df380de9cf80a130de | [
"MIT"
] | null | null | null | #pragma once
#include <glm/vec2.hpp>
#include <ez/math/constants.hpp>
namespace ez {
// Generic line segment
template<typename T, int N>
struct Line {
using vec_t = glm::vec<N, T>;
Line()
: start(T(0))
, end(T(0))
{}
Line(const vec_t& p0, const vec_t& p1)
: start(p0)
, end(p0)
{}
~Line() =... | 18.615385 | 48 | 0.614325 | errata-c |
87016d789c2c611a8dd3d8319e356df90b91e23f | 2,906 | cpp | C++ | test/err/Exception.1.main.cpp | AnantaYudica/basic | dcbf8c9eebb42a4e6a66b3c56ebc3a7e30626950 | [
"MIT"
] | null | null | null | test/err/Exception.1.main.cpp | AnantaYudica/basic | dcbf8c9eebb42a4e6a66b3c56ebc3a7e30626950 | [
"MIT"
] | 178 | 2018-08-08T04:04:27.000Z | 2019-12-15T01:47:58.000Z | test/err/Exception.1.main.cpp | AnantaYudica/basic | dcbf8c9eebb42a4e6a66b3c56ebc3a7e30626950 | [
"MIT"
] | null | null | null | #define USING_BASIC_TEST_MEMORY
#define USING_BASIC_ERR_EXCEPTION
#include "Exception.test.h"
BASIC_TEST_CONSTRUCT;
BASIC_TEST_TYPE_NAME("basic::err::Exception", basic::err::Exception);
const char * exception_name = "basic::err::Exception";
using Case1 = basic::test::type::Parameter<TestBaseOfT>;
using Case2 = basi... | 31.934066 | 75 | 0.734343 | AnantaYudica |
87025c1ac5112fe1b24a2b831ed12c9dff95a05e | 3,677 | cpp | C++ | API/GameEngineContents/TurtleDead.cpp | YoonHB98/portfolio | 9b922bf1ebdcdff8f22c0c90ccab5c69276b6add | [
"MIT"
] | null | null | null | API/GameEngineContents/TurtleDead.cpp | YoonHB98/portfolio | 9b922bf1ebdcdff8f22c0c90ccab5c69276b6add | [
"MIT"
] | null | null | null | API/GameEngineContents/TurtleDead.cpp | YoonHB98/portfolio | 9b922bf1ebdcdff8f22c0c90ccab5c69276b6add | [
"MIT"
] | null | null | null | #include "TurtleDead.h"
#include <GameEngineBase/GameEngineSound.h>
#include "Point100.h"
#include "Pause.h"
#include "WorldCount.h"
TurtleDead::TurtleDead()
:Speed_(500.0f)
{
}
TurtleDead::~TurtleDead()
{
}
void TurtleDead::Start()
{
Actor = CreateRenderer("Turtle.bmp");
Actor->SetIndex(0);
Actor->CreateAni... | 23.570513 | 99 | 0.652434 | YoonHB98 |
870a5fee20102f407ccbcaa2f4e8a7787d58afb4 | 5,870 | cpp | C++ | thirdparty/qtiplot/qtiplot/src/plot2D/QwtBarCurve.cpp | hoehnp/SpaceDesignTool | 9abd34048274b2ce9dbbb685124177b02d6a34ca | [
"IJG"
] | 6 | 2018-09-05T12:41:59.000Z | 2021-07-01T05:34:23.000Z | thirdparty/qtiplot/qtiplot/src/plot2D/QwtBarCurve.cpp | hoehnp/SpaceDesignTool | 9abd34048274b2ce9dbbb685124177b02d6a34ca | [
"IJG"
] | 2 | 2015-02-07T19:09:21.000Z | 2015-08-14T03:15:42.000Z | thirdparty/qtiplot/qtiplot/src/plot2D/QwtBarCurve.cpp | hoehnp/SpaceDesignTool | 9abd34048274b2ce9dbbb685124177b02d6a34ca | [
"IJG"
] | 2 | 2015-03-25T15:50:31.000Z | 2017-12-06T12:16:47.000Z | /***************************************************************************
File : QwtBarCurve.cpp
Project : QtiPlot
--------------------------------------------------------------------
Copyright : (C) 2006 by Ion Vasilief, Tilman Hoener zu Siederdissen
Email... | 28.357488 | 123 | 0.547189 | hoehnp |
870c26d64a448f4b140b83e5deb2fbc9431f2ad7 | 15,449 | cc | C++ | test/unittests/interpreter/bytecode-array-builder-unittest.cc | ivladak/llv8 | 5cefc2a221fb24acf8d41bd631ccba2c474ac3c4 | [
"BSD-3-Clause"
] | 239 | 2016-04-01T14:49:28.000Z | 2022-01-19T21:15:11.000Z | test/unittests/interpreter/bytecode-array-builder-unittest.cc | ispras/llv8 | 5cefc2a221fb24acf8d41bd631ccba2c474ac3c4 | [
"BSD-3-Clause"
] | 8 | 2016-03-30T11:06:29.000Z | 2020-06-29T01:18:51.000Z | test/unittests/interpreter/bytecode-array-builder-unittest.cc | ivladak/llv8 | 5cefc2a221fb24acf8d41bd631ccba2c474ac3c4 | [
"BSD-3-Clause"
] | 11 | 2016-09-08T01:05:45.000Z | 2021-09-28T07:45:05.000Z | // Copyright 2014 the V8 project 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 "src/v8.h"
#include "src/interpreter/bytecode-array-builder.h"
#include "src/interpreter/bytecode-array-iterator.h"
#include "test/unittests/t... | 32.940299 | 78 | 0.717393 | ivladak |
870c35f624eedfc87a5d34b4dc89ae928dc43928 | 10,064 | cpp | C++ | src/setka/tcp_socket.cpp | cppfw/setka | 050be1355eaf150d2c86433fba5c5d3d410d56c1 | [
"MIT"
] | null | null | null | src/setka/tcp_socket.cpp | cppfw/setka | 050be1355eaf150d2c86433fba5c5d3d410d56c1 | [
"MIT"
] | 2 | 2015-09-29T15:07:35.000Z | 2020-05-09T20:07:05.000Z | src/setka/tcp_socket.cpp | cppfw/setka | 050be1355eaf150d2c86433fba5c5d3d410d56c1 | [
"MIT"
] | 1 | 2020-12-15T01:42:48.000Z | 2020-12-15T01:42:48.000Z | /*
The MIT License (MIT)
Copyright (c) 2015-2021 Ivan Gagis <igagis@gmail.com>
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,... | 31.45 | 171 | 0.67339 | cppfw |
870e07f806ea535c2b3a35775ede06e314a8a8c3 | 4,292 | hpp | C++ | include/Mesh.hpp | icebreakersentertainment/ice_engine | 52a8313bc266c053366bdf554b5dc27a54ddcb25 | [
"MIT"
] | null | null | null | include/Mesh.hpp | icebreakersentertainment/ice_engine | 52a8313bc266c053366bdf554b5dc27a54ddcb25 | [
"MIT"
] | null | null | null | include/Mesh.hpp | icebreakersentertainment/ice_engine | 52a8313bc266c053366bdf554b5dc27a54ddcb25 | [
"MIT"
] | 1 | 2019-06-11T03:41:48.000Z | 2019-06-11T03:41:48.000Z | #ifndef MESH_H_
#define MESH_H_
#include <vector>
#include <unordered_map>
#include <string>
#define GLM_FORCE_RADIANS
#include <glm/glm.hpp>
#include "graphics/IMesh.hpp"
#include "graphics/ISkeleton.hpp"
#include "logger/ILogger.hpp"
#include "fs/IFileSystem.hpp"
#include "exceptions/RuntimeException.hpp"
#incl... | 22.829787 | 220 | 0.721109 | icebreakersentertainment |
8711a621eb02eeab9bd0ec222b8b302182ea2cb1 | 992 | cpp | C++ | Dynamic Programming/Longestpalindromicsequuence.cpp | acheiveer/CPP-Questions-and-Solutions | 17097bfb25a75568122ce313d571cb473d55fdf3 | [
"MIT"
] | 42 | 2021-09-26T18:02:52.000Z | 2022-03-15T01:52:15.000Z | Dynamic Programming/Longestpalindromicsequuence.cpp | acheiveer/CPP-Questions-and-Solutions | 17097bfb25a75568122ce313d571cb473d55fdf3 | [
"MIT"
] | 404 | 2021-09-24T19:55:10.000Z | 2021-11-03T05:47:47.000Z | Dynamic Programming/Longestpalindromicsequuence.cpp | acheiveer/CPP-Questions-and-Solutions | 17097bfb25a75568122ce313d571cb473d55fdf3 | [
"MIT"
] | 140 | 2021-09-22T20:50:04.000Z | 2022-01-22T16:59:09.000Z | //Given a sequence, find the length of the longest palindromic subsequence in it.
#include <iostream>
#include<bits/stdc++.h>
using namespace std;
int lps(char*seq,int i,int j)
{
if(i==j) //If string has only one value then return 1;
{
return 1;
}
if(seq[i]==seq[j] && i+1==j) ... | 22.545455 | 154 | 0.5625 | acheiveer |
871328e33fcdf85cc58e02c3e786aafe66127c84 | 1,728 | cpp | C++ | openstudiocore/src/model/test/SetpointManagerWarmest_GTest.cpp | bobzabcik/OpenStudio | 858321dc0ad8d572de15858d2ae487b029a8d847 | [
"blessing"
] | null | null | null | openstudiocore/src/model/test/SetpointManagerWarmest_GTest.cpp | bobzabcik/OpenStudio | 858321dc0ad8d572de15858d2ae487b029a8d847 | [
"blessing"
] | null | null | null | openstudiocore/src/model/test/SetpointManagerWarmest_GTest.cpp | bobzabcik/OpenStudio | 858321dc0ad8d572de15858d2ae487b029a8d847 | [
"blessing"
] | null | null | null | /**********************************************************************
* Copyright (c) 2008-2013, Alliance for Sustainable Energy.
* All rights reserved.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by t... | 34.56 | 82 | 0.704861 | bobzabcik |
26b700a0dfa46030c40599f9736656ebd9654a5c | 431 | hh | C++ | build/ARM/params/ExternalMaster.hh | Jakgn/gem5_test | 0ba7cc5213cf513cf205af7fc995cf679ebc1a3f | [
"BSD-3-Clause"
] | null | null | null | build/ARM/params/ExternalMaster.hh | Jakgn/gem5_test | 0ba7cc5213cf513cf205af7fc995cf679ebc1a3f | [
"BSD-3-Clause"
] | 1 | 2020-08-20T05:53:30.000Z | 2020-08-20T05:53:30.000Z | build/ARM/params/ExternalMaster.hh | Jakgn/gem5_test | 0ba7cc5213cf513cf205af7fc995cf679ebc1a3f | [
"BSD-3-Clause"
] | null | null | null | #ifndef __PARAMS__ExternalMaster__
#define __PARAMS__ExternalMaster__
class ExternalMaster;
#include <cstddef>
#include <string>
#include <cstddef>
#include <string>
#include "params/MemObject.hh"
struct ExternalMasterParams
: public MemObjectParams
{
ExternalMaster * create();
std::string port_data;
... | 18.73913 | 44 | 0.770302 | Jakgn |
26cc29fd88af342d4b5715a6b22b53ea3a55f37c | 2,105 | hpp | C++ | test/core/tdouble_stream.hpp | cynodelic/tesela | 3b86a7b9501c7136d5168c7e314740fa7f72f7a7 | [
"BSL-1.0"
] | null | null | null | test/core/tdouble_stream.hpp | cynodelic/tesela | 3b86a7b9501c7136d5168c7e314740fa7f72f7a7 | [
"BSL-1.0"
] | null | null | null | test/core/tdouble_stream.hpp | cynodelic/tesela | 3b86a7b9501c7136d5168c7e314740fa7f72f7a7 | [
"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_TESELA_TEST_CORE_TDOUBLE_STREAM_HPP
#define CYNODELIC_TESELA_TEST_CORE_TDOUBLE_STREAM_HPP
CYNODELIC_TESTER_TEST_CASE(t... | 28.835616 | 103 | 0.721615 | cynodelic |
26cc81959fec316a8b53af74f919ae2086cd42d0 | 417 | cpp | C++ | test/fake_data.cpp | wrazik/raw_png_saver | 502fa92195b1a6ccd1bdce78d9d91bc61107a66f | [
"MIT"
] | null | null | null | test/fake_data.cpp | wrazik/raw_png_saver | 502fa92195b1a6ccd1bdce78d9d91bc61107a66f | [
"MIT"
] | null | null | null | test/fake_data.cpp | wrazik/raw_png_saver | 502fa92195b1a6ccd1bdce78d9d91bc61107a66f | [
"MIT"
] | null | null | null | #include "fake_data.h"
#include <algorithm>
#include <random>
namespace fake_data {
std::byte RandomByte() {
return std::byte(255);
}
std::vector<std::byte> RawPng(uint32_t width, uint32_t height) {
uint64_t const size = width * height * 4;
std::vector<std::byte> pixels;
pixels.reserve(size);
std::generat... | 19.857143 | 64 | 0.702638 | wrazik |
26d077b11cfdfd74310986bda90c181526372ce0 | 16,167 | cpp | C++ | src/aquarium-optimized/dawn/imgui_impl_dawn.cpp | JiangYizhou/aquarium-test | 40e0a93f3cd68e2598104d61a13529ceeb9c7e70 | [
"BSD-3-Clause"
] | 6 | 2019-01-23T02:11:08.000Z | 2021-04-20T19:20:16.000Z | src/aquarium-optimized/dawn/imgui_impl_dawn.cpp | JiangYizhou/aquarium-test | 40e0a93f3cd68e2598104d61a13529ceeb9c7e70 | [
"BSD-3-Clause"
] | 31 | 2019-04-05T16:07:59.000Z | 2019-07-23T09:15:54.000Z | src/aquarium-optimized/dawn/imgui_impl_dawn.cpp | JiangYizhou/aquarium-test | 40e0a93f3cd68e2598104d61a13529ceeb9c7e70 | [
"BSD-3-Clause"
] | 3 | 2019-03-14T02:01:44.000Z | 2019-06-25T08:40:52.000Z | // dear imgui: Renderer for Dawn
// This needs to be used along with a Platform Binding (e.g. GLFW)
#include "ProgramDawn.h"
#include "imgui_impl_dawn.h"
#include "imgui.h"
#include "utils/ComboRenderPipelineDescriptor.h"
// Dawn data
dawn::RenderPipeline mPipeline(nullptr);
dawn::BindGroup mBindGroup(nullptr);
dawn... | 41.88342 | 100 | 0.669388 | JiangYizhou |
26d2d24fd51806c4b65640d85181d73222269f68 | 1,333 | cpp | C++ | dotVawx_Editor/Menu.cpp | Vawx/dotVawx2D_Editor | d7b7ef0492b863c81e3eee5ebda52ebc72ea1459 | [
"Unlicense"
] | null | null | null | dotVawx_Editor/Menu.cpp | Vawx/dotVawx2D_Editor | d7b7ef0492b863c81e3eee5ebda52ebc72ea1459 | [
"Unlicense"
] | null | null | null | dotVawx_Editor/Menu.cpp | Vawx/dotVawx2D_Editor | d7b7ef0492b863c81e3eee5ebda52ebc72ea1459 | [
"Unlicense"
] | null | null | null | #include "Menu.h"
Menu::Menu( ){}
Menu::Menu( int MenuWidth, int MenuHeight, int MenuX, int MenuY, char* Background, SDL_Window *GameWindow, SDL_Renderer *GameRenderer )
{
m_Width = MenuWidth;
m_Height = MenuHeight;
m_X = MenuX;
m_Y = MenuY;
m_MenuRenderer = GameRenderer;
if( m_MenuRenderer )
{
if ( SDL_SetR... | 22.982759 | 135 | 0.67892 | Vawx |
26d854b6f69b1668d43a7774f2fec553d5a1b6db | 1,262 | hpp | C++ | src/subheaders.hpp | olivia76/cpp-sas7bdat | 1cd22561a13ee3df6bcec0b057f928de2014b81f | [
"Apache-2.0"
] | 4 | 2021-12-23T13:24:03.000Z | 2022-02-24T10:20:12.000Z | src/subheaders.hpp | olivia76/cpp-sas7bdat | 1cd22561a13ee3df6bcec0b057f928de2014b81f | [
"Apache-2.0"
] | 6 | 2022-02-23T14:05:53.000Z | 2022-03-17T13:47:46.000Z | src/subheaders.hpp | olivia76/cpp-sas7bdat | 1cd22561a13ee3df6bcec0b057f928de2014b81f | [
"Apache-2.0"
] | null | null | null | /**
* \file src/subheaders.hpp
*
* \brief Definition of subheaders
*
* \author Olivia Quinet
*/
#ifndef _CPP_SAS7BDAT_SRC_SUBHEADERS_HPP_
#define _CPP_SAS7BDAT_SRC_SUBHEADERS_HPP_
#include <cppsas7bdat/properties.hpp>
#include <vector>
namespace cppsas7bdat {
namespace INTERNAL {
struct PAGE_SUBHEADER {
... | 24.269231 | 65 | 0.720285 | olivia76 |
26ddc3e74ddedd3afc8cc7938ce56b704f0a2601 | 68,950 | cpp | C++ | src/test/representations/SupportFunctionNewTest.cpp | hypro/hypro | 52ae4ffe0a8427977fce8d7979fffb82a1bc28f6 | [
"MIT"
] | 22 | 2016-10-05T12:19:01.000Z | 2022-01-23T09:14:41.000Z | src/test/representations/SupportFunctionNewTest.cpp | hypro/hypro | 52ae4ffe0a8427977fce8d7979fffb82a1bc28f6 | [
"MIT"
] | 23 | 2017-05-08T15:02:39.000Z | 2021-11-03T16:43:39.000Z | src/test/representations/SupportFunctionNewTest.cpp | hypro/hypro | 52ae4ffe0a8427977fce8d7979fffb82a1bc28f6 | [
"MIT"
] | 12 | 2017-06-07T23:51:09.000Z | 2022-01-04T13:06:21.000Z | /**
* Tests for new SupportFunctions
*
* @author Phillip Tse
*/
#include "../../hypro/representations/GeometricObjectBase.h"
#include "../defines.h"
#include "gtest/gtest.h"
#include <cmath>
using namespace hypro;
template <typename Number>
class SupportFunctionNewTest : public ::testing::Test {
protected:
vi... | 44.743673 | 148 | 0.688165 | hypro |
26e07ca5cbb32fbd1e05f3a144f90135b05d1e3e | 5,153 | hpp | C++ | src/uml/src_gen/uml/impl/TemplateableElementImpl.hpp | dataliz9r/MDE4CPP | 9c5ce01c800fb754c371f1a67f648366eeabae49 | [
"MIT"
] | null | null | null | src/uml/src_gen/uml/impl/TemplateableElementImpl.hpp | dataliz9r/MDE4CPP | 9c5ce01c800fb754c371f1a67f648366eeabae49 | [
"MIT"
] | 1 | 2019-03-01T00:54:13.000Z | 2019-03-04T02:15:50.000Z | src/uml/src_gen/uml/impl/TemplateableElementImpl.hpp | vallesch/MDE4CPP | 7f8a01dd6642820913b2214d255bef2ea76be309 | [
"MIT"
] | null | null | null | //********************************************************************
//*
//* Warning: This file was generated by ecore4CPP Generator
//*
//********************************************************************
#ifndef UML_TEMPLATEABLEELEMENTTEMPLATEABLEELEMENTIMPL_HPP
#define UML_TEMPLATEABLEELEMENTTEMPLATEABLEELE... | 41.556452 | 328 | 0.66175 | dataliz9r |
26e14c36edf8872430963d1495b018447619ada5 | 948 | hpp | C++ | opaleye/sensor_thread.hpp | suburbanmarine/opaleye | c3843716ffc31956f2499987d3fdb9e31a7de0c9 | [
"BSD-3-Clause"
] | 4 | 2021-08-16T22:23:38.000Z | 2022-02-16T15:49:26.000Z | opaleye/sensor_thread.hpp | suburbanmarine/opaleye | c3843716ffc31956f2499987d3fdb9e31a7de0c9 | [
"BSD-3-Clause"
] | 3 | 2021-11-15T03:35:00.000Z | 2022-01-15T19:06:34.000Z | opaleye/sensor_thread.hpp | suburbanmarine/opaleye | c3843716ffc31956f2499987d3fdb9e31a7de0c9 | [
"BSD-3-Clause"
] | null | null | null | /**
* @author Jacob Schloss <jacob.schloss@suburbanmarine.io>
* @copyright Copyright (c) 2021 Suburban Marine, Inc. All rights reserved.
* @license Licensed under the 3-Clause BSD LICENSE. See LICENSE.txt for details.
*/
#pragma once
#include "MS5837-30BA.hpp"
#include "TSYS01.hpp"
#include "thread_base.hpp"
#in... | 18.588235 | 81 | 0.738397 | suburbanmarine |
26ea428a6fff0f5eff74cb8a4961de8413091552 | 19,518 | hpp | C++ | solid/frame/aio/aiodatagram.hpp | vipalade/solidframe | cff130652127ca9607019b4db508bc67f8bbecff | [
"BSL-1.0"
] | 26 | 2015-08-25T16:07:58.000Z | 2019-07-05T15:21:22.000Z | solid/frame/aio/aiodatagram.hpp | vipalade/solidframe | cff130652127ca9607019b4db508bc67f8bbecff | [
"BSL-1.0"
] | 5 | 2016-10-15T22:55:15.000Z | 2017-09-19T12:41:10.000Z | solid/frame/aio/aiodatagram.hpp | vipalade/solidframe | cff130652127ca9607019b4db508bc67f8bbecff | [
"BSL-1.0"
] | 5 | 2016-09-15T10:34:52.000Z | 2018-10-30T11:46:46.000Z | // solid/frame/aio/aiodatagram.hpp
//
// Copyright (c) 2014 Valentin Palade (vipalade @ gmail . com)
//
// This file is part of SolidFrame framework.
//
// 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.
//
#pragma onc... | 29.394578 | 126 | 0.492981 | vipalade |
26f2a2e02b1473931e2abd3762c00d3cb1034903 | 2,436 | cc | C++ | src/vm-profiler.cc | emptyland/mio | 77ec9737b4002820c31fca241aaa6711a7391285 | [
"BSD-2-Clause"
] | null | null | null | src/vm-profiler.cc | emptyland/mio | 77ec9737b4002820c31fca241aaa6711a7391285 | [
"BSD-2-Clause"
] | null | null | null | src/vm-profiler.cc | emptyland/mio | 77ec9737b4002820c31fca241aaa6711a7391285 | [
"BSD-2-Clause"
] | null | null | null | #include "vm-profiler.h"
#include "vm.h"
#include "vm-thread.h"
#include "vm-objects.h"
namespace mio {
Profiler::Profiler(VM *vm, int max_hot_points)
: vm_(DCHECK_NOTNULL(vm))
, max_hot_points_(max_hot_points) {
DCHECK_GT(max_hot_points, 0);
hot_points_ = new HotPointInformation[max_hot_points_];
... | 25.642105 | 102 | 0.531199 | emptyland |
26f2e5467dc1719316b7e484cc672070f0c1cec3 | 1,956 | cpp | C++ | Hackerrank/codere4.cpp | ronayumik/Learning-c- | b754d5e6ce92f091f1175a866c99c49561e87f22 | [
"MIT"
] | null | null | null | Hackerrank/codere4.cpp | ronayumik/Learning-c- | b754d5e6ce92f091f1175a866c99c49561e87f22 | [
"MIT"
] | 3 | 2019-04-13T16:27:37.000Z | 2019-04-13T16:52:57.000Z | Hackerrank/codere4.cpp | ronayumik/Learning-c- | b754d5e6ce92f091f1175a866c99c49561e87f22 | [
"MIT"
] | 1 | 2018-12-05T23:17:35.000Z | 2018-12-05T23:17:35.000Z | // C++ program to find value of f(n) where f(n)
// is defined as
// F(n) = F(n-1) + F(n-2) + F(n-3), n >= 3
// Base Cases :
// F(0) = 0, F(1) = 1, F(2) = 1
#include<bits/stdc++.h>
using namespace std;
#define ll long long
ll fstmtrx[3][3]={{3,1,1}, {0,0,0}, {0,0,0}};
long long M[3][3] = {{8/3,-2/3,2/3}, {0,0,0}... | 22.744186 | 71 | 0.48773 | ronayumik |
26fa60964b563c307a9e8388479abb14de5debcb | 2,769 | cpp | C++ | cache/lru_cache.cpp | kongshuiJ/practice_algorithm | be850ff29eaea1d07d6750d3a4068acd76a4954c | [
"MIT"
] | null | null | null | cache/lru_cache.cpp | kongshuiJ/practice_algorithm | be850ff29eaea1d07d6750d3a4068acd76a4954c | [
"MIT"
] | null | null | null | cache/lru_cache.cpp | kongshuiJ/practice_algorithm | be850ff29eaea1d07d6750d3a4068acd76a4954c | [
"MIT"
] | null | null | null | // Least Recently Used
#include <iostream>
#include <unordered_map>
#include <list>
#include <cstddef>
#include <stdexcept>
template<typename key_t, typename value_t>
class LRUCache
{
public:
typedef typename std::pair<key_t, value_t> key_value_pair;
typedef typename std::list<key_value_pair>::itera... | 26.122642 | 91 | 0.564103 | kongshuiJ |
f8027d5fd06f36fd65c075d11b9e12d6f3117e55 | 1,269 | cpp | C++ | src/cell-simulation/core/console.cpp | firestack/cell-simulation | 11eacc685afe7c283c1fc2ed6f8b312785f45f98 | [
"MIT"
] | null | null | null | src/cell-simulation/core/console.cpp | firestack/cell-simulation | 11eacc685afe7c283c1fc2ed6f8b312785f45f98 | [
"MIT"
] | null | null | null | src/cell-simulation/core/console.cpp | firestack/cell-simulation | 11eacc685afe7c283c1fc2ed6f8b312785f45f98 | [
"MIT"
] | null | null | null | #include "console.h"
#include <util/log.h>
sf::Clock Console::m_consoleClock;
std::vector<Console::ConsoleItem*> Console::m_lines;
void Console::destroy()
{
for (auto& line : m_lines) {
delete line;
}
m_lines.clear();
}
void Console::write(sf::String text, sf::Color color, uint32 size)
{
m_l... | 21.87931 | 111 | 0.606777 | firestack |
f802dc822d55e7b4073c0980723bafc7c2db6232 | 10,795 | cpp | C++ | Source/Modules/BasicGeneratorModule.cpp | JanMalitschek/ParkerSynth | ff9e14ff8b806350667ff7236e5065cc66651260 | [
"MIT"
] | 1 | 2020-03-03T23:41:21.000Z | 2020-03-03T23:41:21.000Z | Source/Modules/BasicGeneratorModule.cpp | JanMalitschek/ParkerSynth | ff9e14ff8b806350667ff7236e5065cc66651260 | [
"MIT"
] | null | null | null | Source/Modules/BasicGeneratorModule.cpp | JanMalitschek/ParkerSynth | ff9e14ff8b806350667ff7236e5065cc66651260 | [
"MIT"
] | null | null | null | #include "BasicGeneratorModule.hpp"
#include "..\LookAndFeel\Colors.hpp"
#include "..\NodeGraphEditor.h"
#include "..\NodeGraphProcessor.h"
BasicGeneratorModule::BasicGeneratorModule() : Module(ModuleColorScheme::Blue, "Generator", 2, 1, 1, Point<int>(6, 4), 3) {
shapeKnob.setSliderStyle(Slider::SliderStyle::LinearVe... | 36.224832 | 274 | 0.701158 | JanMalitschek |
f80508bf92c2930e6e531d219fd67e9b11318610 | 11,213 | cpp | C++ | src/view/windows/SettingsEditor.cpp | pinam45/MagicPlayer | 963549c88cf3c7f6b1b6b62c556ea2adaa40634e | [
"MIT"
] | 3 | 2019-04-16T06:47:43.000Z | 2020-10-14T07:52:24.000Z | src/view/windows/SettingsEditor.cpp | pinam45/MagicPlayer | 963549c88cf3c7f6b1b6b62c556ea2adaa40634e | [
"MIT"
] | null | null | null | src/view/windows/SettingsEditor.cpp | pinam45/MagicPlayer | 963549c88cf3c7f6b1b6b62c556ea2adaa40634e | [
"MIT"
] | null | null | null | //
// Copyright (c) 2019 Maxime Pinard
//
// Distributed under the MIT license
// See accompanying file LICENSE or copy at
// https://opensource.org/licenses/MIT
//
#include "view/windows/SettingsEditor.hpp"
#include <imgui.h>
#include <imgui_internal.h>
#include <IconsFontAwesome5.h>
#include <sstream>
namespace
{
... | 28.751282 | 97 | 0.726389 | pinam45 |
f8073126212bd86a216bd5acca2a2f92f783dae1 | 125 | cpp | C++ | Engine/Runtime/Renderer/RenderCommand.cpp | kaiwangm/Engine | 12467c2eed5c11a42311a48c0bba2d95a9f2a861 | [
"Apache-2.0"
] | 2 | 2022-03-05T08:42:47.000Z | 2022-03-20T07:59:42.000Z | Engine/Runtime/Renderer/RenderCommand.cpp | kaiwangm/Engine | 12467c2eed5c11a42311a48c0bba2d95a9f2a861 | [
"Apache-2.0"
] | null | null | null | Engine/Runtime/Renderer/RenderCommand.cpp | kaiwangm/Engine | 12467c2eed5c11a42311a48c0bba2d95a9f2a861 | [
"Apache-2.0"
] | null | null | null | #include "RenderCommand.h"
namespace Engine
{
Scope<RendererAPI> RenderCommand::s_RendererAPI = RendererAPI::Create();
} | 20.833333 | 76 | 0.76 | kaiwangm |
f819e3a996eec2de9d9ff951b19696740e1961de | 1,623 | cpp | C++ | unit/testing-utils/smt2irep.cpp | jimgrundy/cbmc | 8d314eb3448e63d9baf2430ba42326b67f830b92 | [
"BSD-4-Clause"
] | 412 | 2016-04-02T01:14:27.000Z | 2022-03-27T09:24:09.000Z | unit/testing-utils/smt2irep.cpp | jimgrundy/cbmc | 8d314eb3448e63d9baf2430ba42326b67f830b92 | [
"BSD-4-Clause"
] | 4,671 | 2016-02-25T13:52:16.000Z | 2022-03-31T22:14:46.000Z | unit/testing-utils/smt2irep.cpp | jimgrundy/cbmc | 8d314eb3448e63d9baf2430ba42326b67f830b92 | [
"BSD-4-Clause"
] | 266 | 2016-02-23T12:48:00.000Z | 2022-03-22T18:15:51.000Z | /// Author: Diffblue Ltd.
#include <testing-utils/smt2irep.h>
#include <solvers/smt2/smt2irep.h>
#include <util/message.h>
#include <sstream>
bool operator==(
const smt2_parser_test_resultt &left,
const smt2_parser_test_resultt &right)
{
return left.parsed_output == right.parsed_output &&
left.messag... | 26.177419 | 72 | 0.72212 | jimgrundy |
f81a4105d3690de28a650f2960854d6d92acc583 | 248 | hpp | C++ | src/Toolkit/EasingFunctions.hpp | Subject38/jujube | 664b995cc65fa6045433b4837d765c62fe6490b4 | [
"MIT"
] | 19 | 2020-02-28T20:34:12.000Z | 2022-01-28T20:18:25.000Z | src/Toolkit/EasingFunctions.hpp | Subject38/jujube | 664b995cc65fa6045433b4837d765c62fe6490b4 | [
"MIT"
] | 7 | 2019-10-22T09:43:16.000Z | 2022-03-12T00:15:13.000Z | src/Toolkit/EasingFunctions.hpp | Subject38/jujube | 664b995cc65fa6045433b4837d765c62fe6490b4 | [
"MIT"
] | 5 | 2019-10-22T08:14:57.000Z | 2021-03-13T06:32:04.000Z | #pragma once
#include <cmath>
namespace Toolkit {
class EaseExponential {
public:
EaseExponential(float t_easing_factor) : easing_factor(t_easing_factor) {};
float transform(float in);
float easing_factor;
};
} | 20.666667 | 83 | 0.669355 | Subject38 |
f81b7be34bdbf2c2735341453b2e2afc68d267fb | 14,818 | hpp | C++ | libraries/app/include/futurepia/app/futurepia_api_objects.hpp | futurepia/futurepia | 31163047b18082223a86ec4f95a820748275ceaa | [
"MIT"
] | 3 | 2019-12-24T13:49:22.000Z | 2021-01-02T08:26:13.000Z | libraries/app/include/futurepia/app/futurepia_api_objects.hpp | futurepia/futurepia | 31163047b18082223a86ec4f95a820748275ceaa | [
"MIT"
] | 4 | 2020-01-01T20:41:39.000Z | 2021-11-30T16:31:10.000Z | libraries/app/include/futurepia/app/futurepia_api_objects.hpp | futurepia/futurepia | 31163047b18082223a86ec4f95a820748275ceaa | [
"MIT"
] | 5 | 2019-03-30T12:53:31.000Z | 2021-06-10T16:22:11.000Z | #pragma once
#include <futurepia/chain/account_object.hpp>
#include <futurepia/chain/block_summary_object.hpp>
#include <futurepia/chain/comment_object.hpp>
#include <futurepia/chain/global_property_object.hpp>
#include <futurepia/chain/history_object.hpp>
#include <futurepia/chain/futurepia_objects.hpp>
#include <futu... | 30.935282 | 120 | 0.623633 | futurepia |
f81ee5cdb0fc5f333b338b65915902c6ced976ef | 75 | cc | C++ | src/libctp/xinteractor.cc | jimbach/ctp | e5b33f074f81c6e6859dfaacada1b6c992c67c2b | [
"Apache-2.0"
] | null | null | null | src/libctp/xinteractor.cc | jimbach/ctp | e5b33f074f81c6e6859dfaacada1b6c992c67c2b | [
"Apache-2.0"
] | null | null | null | src/libctp/xinteractor.cc | jimbach/ctp | e5b33f074f81c6e6859dfaacada1b6c992c67c2b | [
"Apache-2.0"
] | null | null | null | #include "votca/ctp/xinteractor.h"
namespace votca { namespace ctp {
}} | 10.714286 | 34 | 0.706667 | jimbach |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.