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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
40ce888fbae81e32ce9cff064709129d58a34930 | 3,063 | cpp | C++ | include/VTKObject.cpp | zkbreeze/KunPBR | 9f545a4e589998691b469bbcadb65a63ac826ebd | [
"BSD-3-Clause"
] | null | null | null | include/VTKObject.cpp | zkbreeze/KunPBR | 9f545a4e589998691b469bbcadb65a63ac826ebd | [
"BSD-3-Clause"
] | null | null | null | include/VTKObject.cpp | zkbreeze/KunPBR | 9f545a4e589998691b469bbcadb65a63ac826ebd | [
"BSD-3-Clause"
] | null | null | null | //
// VTKObject.cpp
//
//
// Created by Kun Zhao on 2015-12-01 16:52:03.
//
//
#include "VTKObject.h"
#include <iostream>
#include <fstream>
#include <kvs/ValueArray>
#include <kvs/PolygonObject>
namespace kun
{
VTKObject::VTKObject( std::string filename )
{
this->read( filename );
}
bool VTKObject::read( std::s... | 26.634783 | 131 | 0.639569 | zkbreeze |
40ceda7049e3b2dfe3b21b4da4a4760150299fa5 | 1,142 | cpp | C++ | Knuth_Fisher_Yates_Shuffle_inplace.cpp | wedusk101/CPP | 0221e272b7d71569967c685e3f99bbeb7930f823 | [
"MIT"
] | 1 | 2020-07-20T04:35:41.000Z | 2020-07-20T04:35:41.000Z | Knuth_Fisher_Yates_Shuffle_inplace.cpp | wedusk101/CPP | 0221e272b7d71569967c685e3f99bbeb7930f823 | [
"MIT"
] | null | null | null | Knuth_Fisher_Yates_Shuffle_inplace.cpp | wedusk101/CPP | 0221e272b7d71569967c685e3f99bbeb7930f823 | [
"MIT"
] | 2 | 2017-05-22T00:13:03.000Z | 2020-07-20T04:34:50.000Z | /*The following code implements the in-place version of the Knuth-Fisher-Yates linear time shuffling algorithm.*/
#include <iostream>
#include <random>
#include <ctime>
void swap(int &, int &);
void shuffle(int*, int);
int main()
{
int size = 0;
char ch;
std::cout << "Enter the size of the list." << std::endl;
st... | 21.54717 | 113 | 0.594571 | wedusk101 |
40d0a231831cf098accd69239d7a893de4b4810c | 4,197 | cpp | C++ | docs/examples/POP3Client/UserAuto.cpp | AleksaHeler/MRKiRM1-Projekat | 23848b14e02ca574c0eee97235b89cbae241af97 | [
"MIT"
] | null | null | null | docs/examples/POP3Client/UserAuto.cpp | AleksaHeler/MRKiRM1-Projekat | 23848b14e02ca574c0eee97235b89cbae241af97 | [
"MIT"
] | null | null | null | docs/examples/POP3Client/UserAuto.cpp | AleksaHeler/MRKiRM1-Projekat | 23848b14e02ca574c0eee97235b89cbae241af97 | [
"MIT"
] | null | null | null | #include <stdio.h>
#include <conio.h>
#include <time.h>
#include "const.h"
#include "UserAuto.h"
bool g_ProgramEnd = false;
#define StandardMessageCoding 0x00
UserAuto::UserAuto() : FiniteStateMachine(USER_AUTOMATE_TYPE_ID, USER_AUTOMATE_MBX_ID, 0, 3, 3) {
}
UserAuto::~UserAuto() {
}
uint8 UserAuto::GetAutomate(... | 21.859375 | 127 | 0.714796 | AleksaHeler |
40d14ca8cae6209d48494be5b9277dbdf0e55287 | 8,420 | cpp | C++ | modules/rgbd/samples/large_kinfu_demo.cpp | willsong/opencv_contrib_cat | 791e9413484cf0e1c8fcc8d15d409fefc72e4bcc | [
"Apache-2.0"
] | 35 | 2021-01-07T11:58:58.000Z | 2022-03-25T11:35:25.000Z | modules/rgbd/samples/large_kinfu_demo.cpp | willsong/opencv_contrib_cat | 791e9413484cf0e1c8fcc8d15d409fefc72e4bcc | [
"Apache-2.0"
] | 3 | 2020-05-22T19:23:38.000Z | 2020-06-29T12:32:24.000Z | modules/rgbd/samples/large_kinfu_demo.cpp | willsong/opencv_contrib_cat | 791e9413484cf0e1c8fcc8d15d409fefc72e4bcc | [
"Apache-2.0"
] | 9 | 2020-12-14T09:13:30.000Z | 2021-12-13T07:03:53.000Z | // This file is part of OpenCV project.
// It is subject to the license terms in the LICENSE file found in the top-level directory
// of this distribution and at http://opencv.org/license.html
// This code is also subject to the license terms in the LICENSE_KinectFusion.md file found in this
// module's directory
#in... | 32.260536 | 99 | 0.544656 | willsong |
40d2564cfad76ac99662b04ea221f0c4baa0da98 | 1,878 | cpp | C++ | soj/2107.cpp | huangshenno1/project_euler | 8a3c91fd11bcb6a6a830e963b1d5aed3f5ff787d | [
"MIT"
] | null | null | null | soj/2107.cpp | huangshenno1/project_euler | 8a3c91fd11bcb6a6a830e963b1d5aed3f5ff787d | [
"MIT"
] | null | null | null | soj/2107.cpp | huangshenno1/project_euler | 8a3c91fd11bcb6a6a830e963b1d5aed3f5ff787d | [
"MIT"
] | null | null | null | #include <cstdio>
#include <cstring>
int s,n;
char a[15][1000];
bool vis[11];
void Ban(char num[])
{
for (int i=0;num[i]!='\0';i++)
vis[num[i]-'0']=1;
}
int Judge(int i,int j)
{
memset(vis,0,sizeof(vis));
int k;
for (k=1;k<=s;k++)
{
if (a[i][j+k]=='-')
Ban("14");
... | 18.78 | 57 | 0.314164 | huangshenno1 |
40da53ec76a8e34788925ec301fa32148c5315a4 | 2,314 | cpp | C++ | Tests/src/testServer.cpp | ipab-slmc/RhIO | 45f5440a745d5ae9b256335a78ded799d3a02d4d | [
"MIT"
] | null | null | null | Tests/src/testServer.cpp | ipab-slmc/RhIO | 45f5440a745d5ae9b256335a78ded799d3a02d4d | [
"MIT"
] | 1 | 2018-12-11T18:36:07.000Z | 2018-12-11T18:36:07.000Z | Tests/src/testServer.cpp | ipab-slmc/RhIO | 45f5440a745d5ae9b256335a78ded799d3a02d4d | [
"MIT"
] | null | null | null | #include <math.h>
#include <iostream>
#include <cassert>
#include <chrono>
#include <thread>
#include "RhIO.hpp"
int main()
{
if (!RhIO::started()) {
RhIO::start();
}
assert(RhIO::started());
RhIO::Root.newChild("test");
RhIO::Root.newChild("test2/pouet");
RhIO::Root.newBool("test/para... | 26.597701 | 93 | 0.543215 | ipab-slmc |
40dea368f50ed09dbdc337a5f123b0a3f302183f | 8,253 | cpp | C++ | YoloDetectionHoloLensUnity/app3/Il2CppOutputProject/IL2CPP/libil2cpp/os/Posix/ThreadImpl.cpp | atolegen/YoloDetect | 30f230508d28859225bc9c199d69f7e723d12c0f | [
"MIT"
] | null | null | null | YoloDetectionHoloLensUnity/app3/Il2CppOutputProject/IL2CPP/libil2cpp/os/Posix/ThreadImpl.cpp | atolegen/YoloDetect | 30f230508d28859225bc9c199d69f7e723d12c0f | [
"MIT"
] | 1 | 2020-04-01T15:06:47.000Z | 2020-04-01T15:07:19.000Z | YoloDetectionHoloLensUnity/app3/Il2CppOutputProject/IL2CPP/libil2cpp/os/Posix/ThreadImpl.cpp | atolegen/YoloDetect | 30f230508d28859225bc9c199d69f7e723d12c0f | [
"MIT"
] | null | null | null | #include "il2cpp-config.h"
#if !IL2CPP_THREADS_STD && IL2CPP_THREADS_PTHREAD
#include <limits>
#include <unistd.h>
#include <map>
#include <pthread.h>
#if IL2CPP_TARGET_LINUX
#include <sys/prctl.h>
#endif
#include "ThreadImpl.h"
#include "PosixHelpers.h"
#include "os/Mutex.h"
namespace il2cpp
{
namespace os
{
///... | 27.148026 | 101 | 0.640494 | atolegen |
40e6298ebf4fe749d81b3998218ffa868d7f2e2e | 66 | cpp | C++ | src/ofxArgParser.cpp | keesjankoster/Presenter | 310c9b1c24bcbe644cbc81747cf2f4d237f80879 | [
"MIT"
] | 1 | 2015-06-10T14:54:02.000Z | 2015-06-10T14:54:02.000Z | src/ofxArgParser.cpp | keesjankoster/Presenter | 310c9b1c24bcbe644cbc81747cf2f4d237f80879 | [
"MIT"
] | null | null | null | src/ofxArgParser.cpp | keesjankoster/Presenter | 310c9b1c24bcbe644cbc81747cf2f4d237f80879 | [
"MIT"
] | null | null | null | #include "ofxArgParser.h"
map<string, string> ofxArgParser::args; | 22 | 39 | 0.772727 | keesjankoster |
40eae36968eb2f3764ce032ef2d13e27be17b8de | 1,356 | cpp | C++ | src/util/GlobalChecks.cpp | aiblocks/stellar-core | 6c3c28188564af87f8ebd4f810a4dada30a5a3dc | [
"Apache-2.0",
"BSD-2-Clause",
"MIT",
"ECL-2.0",
"BSL-1.0",
"BSD-3-Clause"
] | 1 | 2021-06-12T20:14:25.000Z | 2021-06-12T20:14:25.000Z | src/util/GlobalChecks.cpp | aiblocks/stellar-core | 6c3c28188564af87f8ebd4f810a4dada30a5a3dc | [
"Apache-2.0",
"BSD-2-Clause",
"MIT",
"ECL-2.0",
"BSL-1.0",
"BSD-3-Clause"
] | 2 | 2020-11-25T11:05:31.000Z | 2020-11-26T17:05:04.000Z | src/util/GlobalChecks.cpp | aiblocks/aiblocks-core | 6c3c28188564af87f8ebd4f810a4dada30a5a3dc | [
"Apache-2.0",
"BSD-2-Clause",
"MIT",
"ECL-2.0",
"BSL-1.0",
"BSD-3-Clause"
] | null | null | null | // Copyright 2020 AiBlocks Development Foundation and contributors. Licensed
// under the Apache License, Version 2.0. See the COPYING file at the root
// of this distribution or at http://www.apache.org/licenses/LICENSE-2.0
#include "GlobalChecks.h"
#ifdef _WIN32
#include <Windows.h>
#endif
#include <cstdio>
#includ... | 19.098592 | 76 | 0.671829 | aiblocks |
40ee67d133f048c17e003fa2b7ebdcfbbcfeed5e | 169,239 | cpp | C++ | lib/LARMORD.cpp | atfrank/LarmorD_New | d1d166c699f26be523557a10523be0f37cb188f5 | [
"BSD-4-Clause-UC"
] | null | null | null | lib/LARMORD.cpp | atfrank/LarmorD_New | d1d166c699f26be523557a10523be0f37cb188f5 | [
"BSD-4-Clause-UC"
] | 1 | 2021-09-17T18:51:38.000Z | 2021-09-18T15:49:20.000Z | lib/LARMORD.cpp | atfrank/Metallo | 0bce801cb127fb8557bf2599ae31d2611ebb0256 | [
"BSD-4-Clause-UC"
] | 1 | 2020-01-10T18:32:05.000Z | 2020-01-10T18:32:05.000Z | /*
Copyright University of Michigan.
This file is part of the Larmor software suite and is made available under license.
University of Michigan (UM) TECHtransfer: phone: 734-763-0614 email: techtransfer@umich.edu.
Author: Sean M. Law and Aaron T. Frank
*/
#include "LARMORD.hpp"
#include "Molecule.hp... | 66.524764 | 315 | 0.666708 | atfrank |
40eedfc9813b13049fa98dafb922b72306fde777 | 312 | cpp | C++ | ECOP03/LAB06/FigurasGeometricas/progTeste.cpp | gadfaria/unifei | bc85b8e9490845abb2cb72eb624e5a0f26cc1dc9 | [
"MIT"
] | 2 | 2020-10-26T23:22:22.000Z | 2022-03-22T23:12:17.000Z | ECOP03/LAB06/FigurasGeometricas/progTeste.cpp | gadfaria/unifei | bc85b8e9490845abb2cb72eb624e5a0f26cc1dc9 | [
"MIT"
] | null | null | null | ECOP03/LAB06/FigurasGeometricas/progTeste.cpp | gadfaria/unifei | bc85b8e9490845abb2cb72eb624e5a0f26cc1dc9 | [
"MIT"
] | null | null | null | #include <iostream>
#include "cilindro.h"
using namespace std;
int main()
{
Cilindro c1;
cout << "Digite x, y, raio e a altura para o cilindro: " << endl;
cin >> c1;
cout << c1 << endl;
cout << "Area da base do cilindro: " << c1.area() << endl;
cout << "Volume do cilindro: " << c1.volume() << endl;
}
| 18.352941 | 66 | 0.599359 | gadfaria |
40f06046a47fc8be275bda5c40e0e9b9585d63b9 | 1,155 | hpp | C++ | native/external-libraries/boost/boost/log/attributes.hpp | l3dlp-sandbox/airkinect-2-core | 49aecbd3c3fd9584434089dd2d9eef93567036e7 | [
"Apache-2.0"
] | null | null | null | native/external-libraries/boost/boost/log/attributes.hpp | l3dlp-sandbox/airkinect-2-core | 49aecbd3c3fd9584434089dd2d9eef93567036e7 | [
"Apache-2.0"
] | null | null | null | native/external-libraries/boost/boost/log/attributes.hpp | l3dlp-sandbox/airkinect-2-core | 49aecbd3c3fd9584434089dd2d9eef93567036e7 | [
"Apache-2.0"
] | null | null | null | /*
* Copyright Andrey Semashev 2007 - 2010.
* Distributed under the Boost Software License, Version 1.0.
* (See accompanying file LICENSE_1_0.txt or copy at
* http://www.boost.org/LICENSE_1_0.txt)
*/
/*!
* \file attributes.hpp
* \author Andrey Semashev
* \date 13.07.2009
*
* This head... | 30.394737 | 68 | 0.759307 | l3dlp-sandbox |
40f2c857dfdc233d85ce9f7a452a0341b4924a6d | 1,269 | hpp | C++ | src/game/master.hpp | HolyBlackCat/LD49 | 6fd67d0709600fdab1c7d4c6013047df58a26d67 | [
"Zlib"
] | 1 | 2021-11-11T13:49:32.000Z | 2021-11-11T13:49:32.000Z | src/game/master.hpp | HolyBlackCat/LD49-brimstone | 6fd67d0709600fdab1c7d4c6013047df58a26d67 | [
"Zlib"
] | null | null | null | src/game/master.hpp | HolyBlackCat/LD49-brimstone | 6fd67d0709600fdab1c7d4c6013047df58a26d67 | [
"Zlib"
] | null | null | null | #pragma once
#include <algorithm>
#include <array>
#include <deque>
#include <execution>
#include <functional>
#include <iostream>
#include <map>
#include <set>
#include <type_traits>
#include <utility>
#include <variant>
#include <vector>
#include "audio/complete.h"
#include "gameutils/adaptive_viewport.h"
#include ... | 25.38 | 40 | 0.761229 | HolyBlackCat |
40f756a977f84c09ce1e386705243603bf0b1a2f | 1,854 | hpp | C++ | Includes/MenuPointers.hpp | RedShyGuy/Vapecord-ACNL-Plugin | 811bb9a0011470c18af6ac920c3a5a9d5985906f | [
"MIT"
] | 52 | 2020-01-17T08:12:04.000Z | 2022-03-19T20:02:57.000Z | Includes/MenuPointers.hpp | RedShyGuy/Vapecord-ACNL-Plugin | 811bb9a0011470c18af6ac920c3a5a9d5985906f | [
"MIT"
] | 67 | 2020-05-06T04:47:27.000Z | 2022-03-31T16:25:19.000Z | Includes/MenuPointers.hpp | RedShyGuy/Vapecord-ACNL-Plugin | 811bb9a0011470c18af6ac920c3a5a9d5985906f | [
"MIT"
] | 7 | 2021-01-20T17:42:25.000Z | 2022-03-08T09:29:42.000Z | #ifndef MENUPOINTERS_HPP
#define MENUPOINTERS_HPP
#include <CTRPluginFramework.hpp>
namespace CTRPluginFramework {
//MenuEntry Names for Color Changer/Language Changer
extern MenuFolder *SAVEC; //SAVE_CODES
extern MenuFolder *PSAVEC; //PLAYER_SAVE_CODES
extern MenuFolder *MOVEC; //MOVEMENT_CODES
extern ... | 33.107143 | 58 | 0.760518 | RedShyGuy |
40fa943a80fa6fe4ddf779365a41c68201257e93 | 1,052 | cpp | C++ | YAD-Studio/Managers/HistoryManager.cpp | Yad-Studio/YAD-Studio | 3ff9be91a573fc189c5756068634e2c154f1cdbc | [
"MIT"
] | 22 | 2015-01-04T22:16:41.000Z | 2022-03-15T16:08:53.000Z | YAD-Studio/Managers/HistoryManager.cpp | Yad-Studio/YAD-Studio | 3ff9be91a573fc189c5756068634e2c154f1cdbc | [
"MIT"
] | 1 | 2015-02-26T12:08:14.000Z | 2015-02-27T07:38:38.000Z | YAD-Studio/Managers/HistoryManager.cpp | Yad-Studio/YAD-Studio | 3ff9be91a573fc189c5756068634e2c154f1cdbc | [
"MIT"
] | 2 | 2016-01-01T14:25:42.000Z | 2018-10-23T14:55:45.000Z | #include "HistoryManager.h"
HistoryManager* HistoryManager::_instance = nullptr;
HistoryManager::HistoryManager()
{
}
HistoryManager* HistoryManager::getInstance( )
{
if (_instance == nullptr)
_instance = new HistoryManager();
return _instance;
}
QVector<QString> HistoryManager::getHistory()
{
... | 19.849057 | 59 | 0.686312 | Yad-Studio |
40fabf8e3f6d1f9e8c6eab06dd7fbfe58ea080f6 | 9,569 | cpp | C++ | sparseconvnet/SCN/CUDA/IOLayers.cpp | THU-luvision/Occuseg | 163e1fba6f5d9afd4ee2a4202118bc81d8f7c5e4 | [
"BSD-3-Clause"
] | 1 | 2022-03-29T18:26:11.000Z | 2022-03-29T18:26:11.000Z | sparseconvnet/SCN/CUDA/IOLayers.cpp | THU-luvision/Occuseg | 163e1fba6f5d9afd4ee2a4202118bc81d8f7c5e4 | [
"BSD-3-Clause"
] | null | null | null | sparseconvnet/SCN/CUDA/IOLayers.cpp | THU-luvision/Occuseg | 163e1fba6f5d9afd4ee2a4202118bc81d8f7c5e4 | [
"BSD-3-Clause"
] | null | null | null | // Copyright 2016-present, Facebook, Inc.
// 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.
template <typename T>
void InputLayer_fp(T *input_features, T *output_features, Int nRows,
Int maxA... | 36.246212 | 108 | 0.621904 | THU-luvision |
40fb94d922fc28198ebfa7b46c0402d874c5f1df | 6,994 | cpp | C++ | geometric_shapes/test/test_loaded_meshes.cpp | NateWright/MoveItGrasps | 10330ff38c72075035a69ed754fa9ed40a7c846b | [
"BSD-3-Clause"
] | null | null | null | geometric_shapes/test/test_loaded_meshes.cpp | NateWright/MoveItGrasps | 10330ff38c72075035a69ed754fa9ed40a7c846b | [
"BSD-3-Clause"
] | null | null | null | geometric_shapes/test/test_loaded_meshes.cpp | NateWright/MoveItGrasps | 10330ff38c72075035a69ed754fa9ed40a7c846b | [
"BSD-3-Clause"
] | 2 | 2020-10-12T07:48:51.000Z | 2020-10-19T15:28:28.000Z | /*********************************************************************
* Software License Agreement (BSD License)
*
* Copyright (c) 2016, Jorge Santos
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following condit... | 35.502538 | 115 | 0.662282 | NateWright |
40fe7c75371f70aed5b1e8dcfa0503e490fe56b5 | 20,451 | hpp | C++ | include/eve/conditional.hpp | orao/eve | a8bdc6a9cab06d905e8749354cde63776ab76846 | [
"MIT"
] | null | null | null | include/eve/conditional.hpp | orao/eve | a8bdc6a9cab06d905e8749354cde63776ab76846 | [
"MIT"
] | null | null | null | include/eve/conditional.hpp | orao/eve | a8bdc6a9cab06d905e8749354cde63776ab76846 | [
"MIT"
] | null | null | null | //==================================================================================================
/**
EVE - Expressive Vector Engine
Copyright : EVE Contributors & Maintainers
SPDX-License-Identifier: MIT
**/
//==================================================================================================
#... | 33.416667 | 103 | 0.575571 | orao |
dc008e5d483353c8e0f46988316fcf4ab15d0695 | 2,936 | hpp | C++ | include/eve/function/exp_int.hpp | leha-bot/eve | 30e7a7f6bcc5cf524a6c2cc624234148eee847be | [
"MIT"
] | null | null | null | include/eve/function/exp_int.hpp | leha-bot/eve | 30e7a7f6bcc5cf524a6c2cc624234148eee847be | [
"MIT"
] | null | null | null | include/eve/function/exp_int.hpp | leha-bot/eve | 30e7a7f6bcc5cf524a6c2cc624234148eee847be | [
"MIT"
] | null | null | null | //==================================================================================================
/*
EVE - Expressive Vector Engine
Copyright : EVE Contributors & Maintainers
SPDX-License-Identifier: MIT
*/
//==================================================================================================
#pr... | 34.541176 | 146 | 0.445845 | leha-bot |
dc01d53c56883efcd267f7b9e8fc7a19cd7b9fb7 | 2,942 | cpp | C++ | qb_device_hardware_interface/src/test/unit_tests.cpp | NMMI/ROS-base | 9898dca0a3b51ba376b0e39a6531e1b0d1ed2c3d | [
"BSD-3-Clause"
] | null | null | null | qb_device_hardware_interface/src/test/unit_tests.cpp | NMMI/ROS-base | 9898dca0a3b51ba376b0e39a6531e1b0d1ed2c3d | [
"BSD-3-Clause"
] | null | null | null | qb_device_hardware_interface/src/test/unit_tests.cpp | NMMI/ROS-base | 9898dca0a3b51ba376b0e39a6531e1b0d1ed2c3d | [
"BSD-3-Clause"
] | null | null | null | /***
* Software License Agreement: BSD 3-Clause License
*
* Copyright (c) 2016-2018, qbrobotics®
* 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... | 43.264706 | 118 | 0.740653 | NMMI |
dc080ffdaebe950eeea671ffd4f2c07dc2d84039 | 14,684 | cc | C++ | gazebo/math/Quaternion.cc | thomas-moulard/gazebo-deb | 456da84cfb7b0bdac53241f6c4e86ffe1becfa7d | [
"ECL-2.0",
"Apache-2.0"
] | 8 | 2015-07-02T08:23:30.000Z | 2020-11-17T19:00:38.000Z | gazebo/math/Quaternion.cc | thomas-moulard/gazebo-deb | 456da84cfb7b0bdac53241f6c4e86ffe1becfa7d | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | gazebo/math/Quaternion.cc | thomas-moulard/gazebo-deb | 456da84cfb7b0bdac53241f6c4e86ffe1becfa7d | [
"ECL-2.0",
"Apache-2.0"
] | 10 | 2015-04-22T18:33:15.000Z | 2021-11-16T10:17:45.000Z | /*
* Copyright 2012 Open Source Robotics Foundation
*
* 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 applicab... | 24.432612 | 79 | 0.499183 | thomas-moulard |
dc09da8dfc7ada6980e6a2d0d4bb96ef809b0ff1 | 1,351 | cpp | C++ | test/source/contadapt/stack2.cpp | kensou24/CppStandardV2 | 3d801e93e76f765ba3ae579af8e4c8beb87fab94 | [
"Unlicense"
] | null | null | null | test/source/contadapt/stack2.cpp | kensou24/CppStandardV2 | 3d801e93e76f765ba3ae579af8e4c8beb87fab94 | [
"Unlicense"
] | 1 | 2021-12-19T23:46:02.000Z | 2021-12-19T23:46:02.000Z | test/source/contadapt/stack2.cpp | kensou24/CppStandardV2 | 3d801e93e76f765ba3ae579af8e4c8beb87fab94 | [
"Unlicense"
] | null | null | null | /* The following code example is taken from the book
* "The C++ Standard Library - A Tutorial and Reference, 2nd Edition"
* by Nicolai M. Josuttis, Addison-Wesley, 2012
*
* (C) Copyright Nicolai M. Josuttis 2012.
* Permission to copy, use, modify, sell and distribute this software
* is granted provided this copyr... | 26.490196 | 69 | 0.603997 | kensou24 |
dc0a1ae54dc6eb8f90946d486952ab71e0793786 | 613 | cpp | C++ | C++/Base Conversion.cpp | WilliamYue37/CPP-Competitive-Programming-Snippets | 9865816cff525f8ecacee687ed4fa8bdd4f56e26 | [
"MIT"
] | 4 | 2019-08-11T23:43:31.000Z | 2021-04-24T04:09:19.000Z | C++/Base Conversion.cpp | WilliamYue37/Competitive-Programming-CPP | 9865816cff525f8ecacee687ed4fa8bdd4f56e26 | [
"MIT"
] | 1 | 2018-08-17T02:49:07.000Z | 2018-08-17T03:01:45.000Z | C++/Base Conversion.cpp | WilliamYue37/Competitive-Programming-Snippets | 9865816cff525f8ecacee687ed4fa8bdd4f56e26 | [
"MIT"
] | 2 | 2019-11-05T17:54:22.000Z | 2020-05-28T22:35:00.000Z | int val(char c) {
if ('0' <= c && c <= '9') return c - '0';
return c - 'A' + 10;
}
int reVal(int num) {
if (0 <= num && num <= 9) return (char)(num + '0');
return (char)(num - 10 + 'A');
}
string baseChange(string num, int from_base, int to_base) {
ll base10 = 0, power = 1;
for (int i = num.size() -... | 21.892857 | 60 | 0.515498 | WilliamYue37 |
dc167e8673f74fbcf3836796047b2c1aecd6975a | 1,050 | hpp | C++ | include/wee/core/typelist.hpp | emdavoca/wee | 60344dd646a2e27d1cfdb1131dd679558d9cfa2b | [
"MIT"
] | 1 | 2019-02-11T12:18:39.000Z | 2019-02-11T12:18:39.000Z | include/wee/core/typelist.hpp | emdavoca/wee | 60344dd646a2e27d1cfdb1131dd679558d9cfa2b | [
"MIT"
] | 1 | 2021-11-11T07:27:58.000Z | 2021-11-11T07:27:58.000Z | include/wee/core/typelist.hpp | emdavoca/wee | 60344dd646a2e27d1cfdb1131dd679558d9cfa2b | [
"MIT"
] | 1 | 2021-11-11T07:22:12.000Z | 2021-11-11T07:22:12.000Z | #pragma once
namespace wee {
#include <vector>
#include <cstdint>
#include <tuple>
#include <iostream>
template <typename... Ts>
struct type_list
{
constexpr static std::size_t count{sizeof...(Ts)};
};
template<typename>
constexpr std::size_t locate(std::size_t ind) {
return static_cast<std::size_t>(-1);
}... | 23.863636 | 70 | 0.686667 | emdavoca |
dc18e9f8521e1de0823d88eca47a7f4445aae607 | 755 | cpp | C++ | 1471/d.cpp | basuki57/Codeforces | 5227c3deecf13d90e5ea45dab0dfc16b44bd028c | [
"MIT"
] | null | null | null | 1471/d.cpp | basuki57/Codeforces | 5227c3deecf13d90e5ea45dab0dfc16b44bd028c | [
"MIT"
] | null | null | null | 1471/d.cpp | basuki57/Codeforces | 5227c3deecf13d90e5ea45dab0dfc16b44bd028c | [
"MIT"
] | 2 | 2020-10-03T04:52:14.000Z | 2020-10-03T05:19:12.000Z | #include<bits/stdc++.h>
using namespace std;
typedef long long int ll;
void solve(){
int n;
cin >> n;
int val;
map<int, int> mp;
for(int i = 0; i < n; i++) {
cin >> val;
for(int i = 2; i*i <= val; i++) {
while(val%(i*i) == 0) val/=(i*i);
}
mp[val]++;
... | 19.358974 | 61 | 0.439735 | basuki57 |
dc19e87f656280bfbd03187f4e10e619f238c59f | 1,410 | cpp | C++ | UnitTest/ResourceSystem/ShaderParameterTest.cpp | LeptusHe/SyrinxEngine | 5ecdfdd53eb421bdfba61ed183a1ac688d117b97 | [
"MIT"
] | 3 | 2020-04-24T07:58:52.000Z | 2021-11-17T11:08:46.000Z | UnitTest/ResourceSystem/ShaderParameterTest.cpp | LeptusHe/SyrinxEngine | 5ecdfdd53eb421bdfba61ed183a1ac688d117b97 | [
"MIT"
] | null | null | null | UnitTest/ResourceSystem/ShaderParameterTest.cpp | LeptusHe/SyrinxEngine | 5ecdfdd53eb421bdfba61ed183a1ac688d117b97 | [
"MIT"
] | 2 | 2019-10-02T01:49:46.000Z | 2021-11-16T15:25:59.000Z | #include <gmock/gmock.h>
#include <RenderResource/SyrinxShaderParameter.h>
using namespace testing;
using namespace Syrinx;
class ShaderParameterTypeTest : public Test {
public:
void setType(const std::string& type)
{
mShaderParameter.setType(type);
}
int getType()
{
... | 21.044776 | 67 | 0.705674 | LeptusHe |
dc1a7d958eabe97cf960cb9aba91d9cae3f97299 | 543 | hpp | C++ | Swallow/src/Swallow/Audio/AudioCommand.hpp | justindd1994/SwallowEngine | 0cdb17bc8d91272fce8bab9b8966e17817d39d36 | [
"Apache-2.0"
] | null | null | null | Swallow/src/Swallow/Audio/AudioCommand.hpp | justindd1994/SwallowEngine | 0cdb17bc8d91272fce8bab9b8966e17817d39d36 | [
"Apache-2.0"
] | null | null | null | Swallow/src/Swallow/Audio/AudioCommand.hpp | justindd1994/SwallowEngine | 0cdb17bc8d91272fce8bab9b8966e17817d39d36 | [
"Apache-2.0"
] | null | null | null | #pragma once
#include "AudioAPI.hpp"
namespace Swallow
{
class AudioCommand
{
public:
inline static void Init() { s_AudioAPI->Init(); }
inline static void SetPosition(const glm::vec3& pos) { s_AudioAPI->SetPosition(pos); }
inline static void SetVelocity(const glm::vec3& pos) { s_AudioAPI->SetVel... | 27.15 | 89 | 0.685083 | justindd1994 |
dc2010c405cb6a3677d0a401534f89448b0b2344 | 1,201 | cpp | C++ | else/main.cpp | Dts0/code | 5dc2583f8346b83af80a7d1505d4e6b9ce4e54c0 | [
"MIT"
] | null | null | null | else/main.cpp | Dts0/code | 5dc2583f8346b83af80a7d1505d4e6b9ce4e54c0 | [
"MIT"
] | null | null | null | else/main.cpp | Dts0/code | 5dc2583f8346b83af80a7d1505d4e6b9ce4e54c0 | [
"MIT"
] | null | null | null | #include<stdio.h>
//#include<iostream>
#include<stdlib.h>
typedef struct node{
int value;
struct node* next;
} list;
void init(list* l);
void add(list* l,int v);
int del(list* l,int v);//只删除第一个
list* find(list* l,int v);
void print(list* l);
int main(){
list* l=(list*)malloc(sizeof(list));
init(l);
int num=0;
... | 13.494382 | 43 | 0.577852 | Dts0 |
dc20377fff6c7028c4871f1ba29d154067034cbf | 2,088 | cc | C++ | src/3d/interface/c/topo.cc | cedar-framework/cedar | 9fb53ec221738b8dd16dfb31dc9a18d69fc2cc44 | [
"BSD-3-Clause"
] | 9 | 2018-03-07T19:15:27.000Z | 2019-02-22T20:10:23.000Z | src/3d/interface/c/topo.cc | cedar-framework/cedar | 9fb53ec221738b8dd16dfb31dc9a18d69fc2cc44 | [
"BSD-3-Clause"
] | 5 | 2018-11-13T19:59:46.000Z | 2020-04-09T19:31:25.000Z | src/3d/interface/c/topo.cc | cedar-framework/cedar | 9fb53ec221738b8dd16dfb31dc9a18d69fc2cc44 | [
"BSD-3-Clause"
] | 2 | 2018-07-20T01:06:48.000Z | 2019-11-25T12:15:16.000Z | #include "cedar/2d/ftn/mpi/BMG_workspace_c.h"
#include <cedar/util/time_log.h>
#include <cedar/types.h>
#include <cedar/mpi/grid_topo.h>
#include <cedar/capi.h>
#include <cedar/interface/object.h>
extern "C"
{
int cedar_topo_create3d(MPI_Comm comm,
unsigned int ngx, unsigned int ngy, unsig... | 24.564706 | 84 | 0.597701 | cedar-framework |
dc20da96398edeb075b66bccec4f7aa872b58910 | 4,507 | hpp | C++ | src/SPHSimulation/SimulationState.hpp | Maetveis/SPHWaterPhysics | 1c6432af0ae19a3e7956fe3ab4015bb9bfdeaec7 | [
"MIT"
] | 3 | 2020-06-18T08:15:57.000Z | 2021-12-17T10:45:27.000Z | src/SPHSimulation/SimulationState.hpp | Maetveis/SPHWaterPhysics | 1c6432af0ae19a3e7956fe3ab4015bb9bfdeaec7 | [
"MIT"
] | null | null | null | src/SPHSimulation/SimulationState.hpp | Maetveis/SPHWaterPhysics | 1c6432af0ae19a3e7956fe3ab4015bb9bfdeaec7 | [
"MIT"
] | null | null | null | #ifndef SIMULATION_STATE_HPP
#define SIMULATION_STATE_HPP
#include "../Helper/Buffer.hpp"
#include "../Helper/ShaderStorage.hpp"
#include "../Helper/Program.hpp"
#include <GL/glew.h>
#include <glm/vec3.hpp>
class SimulationState
{
private:
GL::Buffer positionBuffer1;
GL::Buffer positionBuffer2;
GL::Buffer velocit... | 23.473958 | 149 | 0.765254 | Maetveis |
dc2e192a7c341c8870f99277957fb49ece35fe66 | 2,419 | cpp | C++ | test/acatl_network/http_query_parameter_test.cpp | fuersten/acatl | ef6c52b1203bbfe7013e8f2bbc48f1e9461fbea1 | [
"BSD-3-Clause"
] | 4 | 2019-12-02T10:45:43.000Z | 2020-04-04T07:40:03.000Z | test/acatl_network/http_query_parameter_test.cpp | fuersten/acatl | ef6c52b1203bbfe7013e8f2bbc48f1e9461fbea1 | [
"BSD-3-Clause"
] | null | null | null | test/acatl_network/http_query_parameter_test.cpp | fuersten/acatl | ef6c52b1203bbfe7013e8f2bbc48f1e9461fbea1 | [
"BSD-3-Clause"
] | 2 | 2019-12-02T10:45:46.000Z | 2020-01-08T13:31:53.000Z | //
// http_query_parameter_test.cpp
// acatl
//
// BSD 3-Clause License
// Copyright (c) 2019, Lars-Christian Fürstenberg
// 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. Redis... | 48.38 | 119 | 0.754444 | fuersten |
dc31dc2725407ac67998017356973e69fd56a12c | 885 | cpp | C++ | src/main.cpp | AdrienThierry/NeuralNetworks | eca03ace3e0c0de21e2b2609b3f0f766ea495032 | [
"MIT"
] | null | null | null | src/main.cpp | AdrienThierry/NeuralNetworks | eca03ace3e0c0de21e2b2609b3f0f766ea495032 | [
"MIT"
] | null | null | null | src/main.cpp | AdrienThierry/NeuralNetworks | eca03ace3e0c0de21e2b2609b3f0f766ea495032 | [
"MIT"
] | null | null | null | #include <stdio.h>
#include <stdlib.h>
#include <time.h>
#include <unistd.h>
#include <string.h>
#include <string>
#include "propagation.hpp"
#include "Network.hpp"
#include "math_functions.hpp"
#include "utility.hpp"
#include "plot.hpp"
#include "learning_sin.hpp"
#include "mnist.hpp"
int main (int argc, char *argv[... | 19.666667 | 144 | 0.649718 | AdrienThierry |
dc368ccaf973d67a8d110b7ad9aa670d9363a308 | 20,326 | cpp | C++ | Vic2ToHoI4/Source/HOI4World/HoI4Localisation.cpp | beerhall/paradoxGameConverters | 96b6f91ebc413795afd63f40f6ecf4ca83fa9460 | [
"MIT"
] | 1 | 2016-12-28T15:20:30.000Z | 2016-12-28T15:20:30.000Z | Vic2ToHoI4/Source/HOI4World/HoI4Localisation.cpp | wzh190015/paradoxGameConverters | 96b6f91ebc413795afd63f40f6ecf4ca83fa9460 | [
"MIT"
] | null | null | null | Vic2ToHoI4/Source/HOI4World/HoI4Localisation.cpp | wzh190015/paradoxGameConverters | 96b6f91ebc413795afd63f40f6ecf4ca83fa9460 | [
"MIT"
] | null | null | null | /*Copyright (c) 2017 The Paradox Game Converters Project
Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the
"Software"), to deal in the Software without restriction, including
without limitation the rights to use, copy, modify, merge, p... | 31.174847 | 211 | 0.768966 | beerhall |
dc3945c1f0466202f624948aab77ab34c9e2e1b6 | 18,495 | cpp | C++ | KCT202.cpp | linux-downey/Seeed_KCT202 | f089e198ed374bb024bc56e2aa061b2de3228eed | [
"MIT"
] | null | null | null | KCT202.cpp | linux-downey/Seeed_KCT202 | f089e198ed374bb024bc56e2aa061b2de3228eed | [
"MIT"
] | null | null | null | KCT202.cpp | linux-downey/Seeed_KCT202 | f089e198ed374bb024bc56e2aa061b2de3228eed | [
"MIT"
] | null | null | null | /*
*
* Copyright (c) 2019 Seeed Technology Co., Ltd.
* Website : www.seeed.cc
* Author : downey
* Create Time: Jun 2019
* Change Log :
*
* The MIT License (MIT)
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the... | 35.094877 | 169 | 0.668451 | linux-downey |
dc3dcdf206a0e1be423acde2580cfd0fb24c7a20 | 1,352 | cpp | C++ | TinTin/people_tracking/PeopleTracking.cpp | 3dtof/DemoApplications | 0eb35d76a72b3972d5c3eeea36274697c0ad82b3 | [
"BSD-3-Clause"
] | 14 | 2016-04-01T23:51:04.000Z | 2022-03-19T04:02:43.000Z | TinTin/people_tracking/PeopleTracking.cpp | 3dtof/DemoApplications | 0eb35d76a72b3972d5c3eeea36274697c0ad82b3 | [
"BSD-3-Clause"
] | 14 | 2016-05-31T05:16:52.000Z | 2019-07-04T02:48:31.000Z | TinTin/people_tracking/PeopleTracking.cpp | 3dtof/DemoApplications | 0eb35d76a72b3972d5c3eeea36274697c0ad82b3 | [
"BSD-3-Clause"
] | 14 | 2016-04-27T22:57:16.000Z | 2022-03-29T03:48:42.000Z | #include "Horus.h"
int getkey() {
int character;
struct termios orig_term_attr;
struct termios new_term_attr;
/* set the terminal to raw mode */
tcgetattr(fileno(stdin), &orig_term_attr);
memcpy(&new_term_attr, &orig_term_attr, sizeof(struct termios));
new_term_attr.c_lflag &= ~(ECHO|ICANO... | 23.719298 | 68 | 0.630178 | 3dtof |
dc3e84e6aaec18139e275e7d063055bceb3b893b | 976 | cpp | C++ | Arduino Sketchfolder/libraries/ArduinoJson/test/JsonArray_Basic_Tests.cpp | StefanHermannBerlin/Geeny-NodeMCU | 3d62305c5436b1fa4036a443938348ab4f736653 | [
"MIT"
] | 1 | 2017-02-03T21:34:48.000Z | 2017-02-03T21:34:48.000Z | libraries/ArduinoJson/test/JsonArray_Basic_Tests.cpp | Brawn1/Humidor_monitoring | ebc66dd31fdba7263ebb3bb8ab225c56f2d67e87 | [
"MIT"
] | null | null | null | libraries/ArduinoJson/test/JsonArray_Basic_Tests.cpp | Brawn1/Humidor_monitoring | ebc66dd31fdba7263ebb3bb8ab225c56f2d67e87 | [
"MIT"
] | 1 | 2018-04-09T12:25:51.000Z | 2018-04-09T12:25:51.000Z | // Copyright Benoit Blanchon 2014-2017
// MIT License
//
// Arduino JSON library
// https://bblanchon.github.io/ArduinoJson/
// If you like this project, please add a star!
#include <ArduinoJson.h>
#include <gtest/gtest.h>
#define TEST_(name) TEST(JsonArray_Basic_Tests, name)
TEST_(SuccessIsTrue) {
DynamicJsonBuff... | 23.238095 | 53 | 0.737705 | StefanHermannBerlin |
dc4191f546bf97ff8bf429ebe401aeef55401262 | 327 | cpp | C++ | src/VERGE/RenderSystem/RenderSystem.cpp | zrmyers/VERGE | 692f2c57191652054fbdf569230a84782c745ea8 | [
"MIT"
] | null | null | null | src/VERGE/RenderSystem/RenderSystem.cpp | zrmyers/VERGE | 692f2c57191652054fbdf569230a84782c745ea8 | [
"MIT"
] | null | null | null | src/VERGE/RenderSystem/RenderSystem.cpp | zrmyers/VERGE | 692f2c57191652054fbdf569230a84782c745ea8 | [
"MIT"
] | null | null | null | /*
* RenderSystem.cpp
*
* Created on: Sep 17, 2017
* Author: Zane
*/
#include "RenderSystem.h"
namespace VERGE {
RenderSystem::RenderSystem() {
// TODO Auto-generated constructor stub
}
RenderSystem::~RenderSystem() {
// TODO Auto-generated destructor stub
}
} /* namespace VERGE... | 13.625 | 41 | 0.617737 | zrmyers |
dc437bda2318ab05feec21efad6788ece03cd95b | 1,067 | cc | C++ | algospot/TRIANGLEPATH/solve.cc | ldy121/algorithm | 7939cb4c15e2bc655219c934f00c2bb74ddb4eec | [
"Apache-2.0"
] | 1 | 2020-04-11T22:04:23.000Z | 2020-04-11T22:04:23.000Z | algospot/TRIANGLEPATH/solve.cc | ldy121/algorithm | 7939cb4c15e2bc655219c934f00c2bb74ddb4eec | [
"Apache-2.0"
] | null | null | null | algospot/TRIANGLEPATH/solve.cc | ldy121/algorithm | 7939cb4c15e2bc655219c934f00c2bb74ddb4eec | [
"Apache-2.0"
] | null | null | null | #include <stdio.h>
#define MAX (100)
int triangle[MAX + 1][MAX + 1];
int answer[MAX + 1];
int temp[MAX + 1];
int N;
int main(void)
{
int tc, T;
int i, j, k;
// freopen("sample_input.txt", "r", stdin);
setbuf(stdout, NULL);
scanf("%d", &T);
for (tc = 0; tc < T; ++tc) {
scanf("%d\n", &N);
for (i = 1; i <= N... | 19.053571 | 55 | 0.450797 | ldy121 |
dc456b93d42b2af4dd5e0188599404c05e088df0 | 22,839 | cpp | C++ | X1nput/dllmain.cpp | geneccx/X1nput | c0e1932af7a21beaa2ea302c818c920811bfabb6 | [
"MIT"
] | null | null | null | X1nput/dllmain.cpp | geneccx/X1nput | c0e1932af7a21beaa2ea302c818c920811bfabb6 | [
"MIT"
] | null | null | null | X1nput/dllmain.cpp | geneccx/X1nput | c0e1932af7a21beaa2ea302c818c920811bfabb6 | [
"MIT"
] | null | null | null | /*
Thanks to r57zone for his Xinput emulation library
https://github.com/r57zone/XInput
*/
#include "stdafx.h"
#define XINPUT_GAMEPAD_DPAD_UP 0x0001
#define XINPUT_GAMEPAD_DPAD_DOWN 0x0002
#define XINPUT_GAMEPAD_DPAD_LEFT 0x0004
#define XINPUT_GAMEPAD_DPAD_RIGHT 0x0008
#defin... | 29.507752 | 149 | 0.695477 | geneccx |
dc4707aa12ece61d4cfb6eeec01097473a6a55ad | 24,030 | cpp | C++ | extensions/GUI/CCControlExtension/CCScale9Sprite.cpp | csy1988525/cocos2d-x | 2fae65f458e8b7c294ad39b91f0a1e44873ec284 | [
"Zlib",
"libtiff",
"BSD-2-Clause",
"Apache-2.0",
"MIT",
"Libpng",
"curl",
"BSD-3-Clause"
] | null | null | null | extensions/GUI/CCControlExtension/CCScale9Sprite.cpp | csy1988525/cocos2d-x | 2fae65f458e8b7c294ad39b91f0a1e44873ec284 | [
"Zlib",
"libtiff",
"BSD-2-Clause",
"Apache-2.0",
"MIT",
"Libpng",
"curl",
"BSD-3-Clause"
] | null | null | null | extensions/GUI/CCControlExtension/CCScale9Sprite.cpp | csy1988525/cocos2d-x | 2fae65f458e8b7c294ad39b91f0a1e44873ec284 | [
"Zlib",
"libtiff",
"BSD-2-Clause",
"Apache-2.0",
"MIT",
"Libpng",
"curl",
"BSD-3-Clause"
] | null | null | null | /****************************************************************************
Copyright (c) 2012 cocos2d-x.org
http://www.cocos2d-x.org
Created by Jung Sang-Taik on 12. 3. 16..
Copyright (c) 2012 Neofect. All rights reserved.
Permission is hereby granted, free of charge, to any person obtaining a copy
of this softwa... | 30.768246 | 115 | 0.664711 | csy1988525 |
dc48201917da537b7e6ef3050137e93e42a74d39 | 12,387 | cpp | C++ | src/mongo/tools/stat_util.cpp | moximoxiknight/mongolite | 6d3766ef6a31ec3c9cd629d2c0777d2aadbcc6f3 | [
"Apache-2.0"
] | null | null | null | src/mongo/tools/stat_util.cpp | moximoxiknight/mongolite | 6d3766ef6a31ec3c9cd629d2c0777d2aadbcc6f3 | [
"Apache-2.0"
] | null | null | null | src/mongo/tools/stat_util.cpp | moximoxiknight/mongolite | 6d3766ef6a31ec3c9cd629d2c0777d2aadbcc6f3 | [
"Apache-2.0"
] | null | null | null | // stat_util.cpp
/**
* Copyright (C) 2008 10gen Inc.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License, version 3,
* as published by the Free Software Foundation.
*
* This program is distributed in the hope that... | 35.391429 | 132 | 0.46355 | moximoxiknight |
dc4e63c57da4aaaa98f9ef2464690e30da366d28 | 491,170 | cpp | C++ | Unity-Project/App-HL2/Il2CppOutputProject/Source/il2cppOutput/Il2CppCCWs145.cpp | JBrentJ/mslearn-mixed-reality-and-azure-digital-twins-in-unity | 6e13b31a0b053443b9c93267d8f174f1554e79dd | [
"CC-BY-4.0",
"MIT"
] | 1 | 2021-06-01T19:33:53.000Z | 2021-06-01T19:33:53.000Z | Unity-Project/App-HL2/Il2CppOutputProject/Source/il2cppOutput/Il2CppCCWs145.cpp | JBrentJ/mslearn-mixed-reality-and-azure-digital-twins-in-unity | 6e13b31a0b053443b9c93267d8f174f1554e79dd | [
"CC-BY-4.0",
"MIT"
] | null | null | null | Unity-Project/App-HL2/Il2CppOutputProject/Source/il2cppOutput/Il2CppCCWs145.cpp | JBrentJ/mslearn-mixed-reality-and-azure-digital-twins-in-unity | 6e13b31a0b053443b9c93267d8f174f1554e79dd | [
"CC-BY-4.0",
"MIT"
] | null | null | null | #include "pch-cpp.hpp"
#ifndef _MSC_VER
# include <alloca.h>
#else
# include <malloc.h>
#endif
#include <stdint.h>
#include <limits>
#include "vm/CachedCCWBase.h"
#include "utils/New.h"
// System.Collections.Generic.IList`1<System.Linq.Expressions.Interpreter.InterpretedFrameInfo>
struct IList_1_t4E687A51C9D4F61... | 50.552697 | 1,004 | 0.852843 | JBrentJ |
dc50e1f4f39dfcf219a53c599b126fd085553fbb | 778 | cpp | C++ | src/cpp/lib/PlatformRestrictionValidator.cpp | rlankenau/config | 5f3d2fcbee71a20667abd82bf5b5bdf5a3a3af0d | [
"Apache-2.0"
] | 1 | 2015-02-05T11:51:53.000Z | 2015-02-05T11:51:53.000Z | src/cpp/lib/PlatformRestrictionValidator.cpp | rlankenau/config | 5f3d2fcbee71a20667abd82bf5b5bdf5a3a3af0d | [
"Apache-2.0"
] | null | null | null | src/cpp/lib/PlatformRestrictionValidator.cpp | rlankenau/config | 5f3d2fcbee71a20667abd82bf5b5bdf5a3a3af0d | [
"Apache-2.0"
] | null | null | null | #include "platform_validators/PlatformRestrictionValidator.h"
#include "ValidatorInterface.h"
#include "OptionInterface.h"
#include "Types.h"
#include <string>
namespace etw {
PlatformRestrictionValidator::PlatformRestrictionValidator(std::string platform, ValidatorInterface *v)
{
this->my_platform = platform;
... | 26.827586 | 104 | 0.769923 | rlankenau |
dc53ad113b780987a79a5ee32e4e7f406c089a19 | 510 | cpp | C++ | smidi/src/linux/MidiInPortLinux.cpp | dissabte/smidi | ef4b52c9d35693b184d7a1fdb66d48325b349815 | [
"MIT"
] | null | null | null | smidi/src/linux/MidiInPortLinux.cpp | dissabte/smidi | ef4b52c9d35693b184d7a1fdb66d48325b349815 | [
"MIT"
] | null | null | null | smidi/src/linux/MidiInPortLinux.cpp | dissabte/smidi | ef4b52c9d35693b184d7a1fdb66d48325b349815 | [
"MIT"
] | null | null | null | //! \cond INTERNAL
/*!
* \file MidiInPortLinux.cpp
*/
#include "MidiInPortLinux.h"
#ifdef SMIDI_USE_ALSA
#include "alsa/MidiInPortLinuxImpl.h"
#endif
MidiInPortLinux::MidiInPortLinux(std::unique_ptr<Implementation>&& implementation)
: MidiInPort()
, _impl(std::move(implementation))
{
_impl->open();
}
co... | 14.166667 | 82 | 0.694118 | dissabte |
dc57d1be674be682edaa03b669e86bd50ed23819 | 5,766 | hpp | C++ | include/System/Net/ServerCertValidationCallback_CallbackContext.hpp | Fernthedev/BeatSaber-Quest-Codegen | 716e4ff3f8608f7ed5b83e2af3be805f69e26d9e | [
"Unlicense"
] | null | null | null | include/System/Net/ServerCertValidationCallback_CallbackContext.hpp | Fernthedev/BeatSaber-Quest-Codegen | 716e4ff3f8608f7ed5b83e2af3be805f69e26d9e | [
"Unlicense"
] | null | null | null | include/System/Net/ServerCertValidationCallback_CallbackContext.hpp | Fernthedev/BeatSaber-Quest-Codegen | 716e4ff3f8608f7ed5b83e2af3be805f69e26d9e | [
"Unlicense"
] | null | null | null | // Autogenerated from CppHeaderCreator
// Created by Sc2ad
// =========================================================================
#pragma once
// Begin includes
#include "extern/beatsaber-hook/shared/utils/typedefs.h"
#include "extern/beatsaber-hook/shared/utils/byref.hpp"
// Including type: System.Net.Ser... | 61.340426 | 418 | 0.753555 | Fernthedev |
dc619c274646d9b22015ec443d921ca1c9b52a41 | 1,559 | hpp | C++ | data_structures/linkedlist.hpp | OtakuSenpai/CSAF-Library | b401d8ee4c156c1bd1c67163f2ab6fb0d6ba052f | [
"Unlicense"
] | null | null | null | data_structures/linkedlist.hpp | OtakuSenpai/CSAF-Library | b401d8ee4c156c1bd1c67163f2ab6fb0d6ba052f | [
"Unlicense"
] | null | null | null | data_structures/linkedlist.hpp | OtakuSenpai/CSAF-Library | b401d8ee4c156c1bd1c67163f2ab6fb0d6ba052f | [
"Unlicense"
] | null | null | null | #include <iostream>
using namespace std;
template <typename T>
class LinkedList {
template <typename T>
class Node {
T _data;
Node* _next;
Node() {}
~Node() {
delete _next;
_next = nullptr;
}
Node(const T& val): _data(val) {}
Node(const Node& other) {
this->_data ... | 21.356164 | 73 | 0.532393 | OtakuSenpai |
dc6507d08f7f726cf8ae27e9fec82efcd155b5c7 | 6,975 | cpp | C++ | MRSblackjack/MRSblackjack/MRSblackjack.cpp | msalazar266/ITSE-1307 | e224f535e2b2537833241df90877c1d9669db108 | [
"MIT"
] | 1 | 2019-09-11T04:55:06.000Z | 2019-09-11T04:55:06.000Z | MRSblackjack/MRSblackjack/MRSblackjack.cpp | msalazar266/ITSE-1307 | e224f535e2b2537833241df90877c1d9669db108 | [
"MIT"
] | null | null | null | MRSblackjack/MRSblackjack/MRSblackjack.cpp | msalazar266/ITSE-1307 | e224f535e2b2537833241df90877c1d9669db108 | [
"MIT"
] | null | null | null | // MRSblackjack.cpp : This file contains the 'main' function. Program execution begins and ends there.
//
/*
Matthew Salazar
ITSE - 1307 Spring 2019
20190501
This is BLACKJACK!
Pseudo Code :
1. Ask player for name.
2. Ask player for by in.
3. Deal cards.
4. Hit or not.
5. Win or lose.... | 29.43038 | 169 | 0.585663 | msalazar266 |
dc65deaa7ccc6a864050e6a6f55ba489ad579fb4 | 10,601 | cpp | C++ | apps/JAWS2/JAWS/Parse_Headers.cpp | azerothcore/lib-ace | c1fedd5f2033951eee9ecf898f6f2b75584aaefc | [
"DOC"
] | null | null | null | apps/JAWS2/JAWS/Parse_Headers.cpp | azerothcore/lib-ace | c1fedd5f2033951eee9ecf898f6f2b75584aaefc | [
"DOC"
] | null | null | null | apps/JAWS2/JAWS/Parse_Headers.cpp | azerothcore/lib-ace | c1fedd5f2033951eee9ecf898f6f2b75584aaefc | [
"DOC"
] | 1 | 2020-04-26T03:07:12.000Z | 2020-04-26T03:07:12.000Z | #include "JAWS/Parse_Headers.h"
#include "ace/OS_NS_string.h"
#include "ace/Log_Msg.h"
#define ACCESSOR(T,C,x) \
T C :: x (void) const { return this-> x##_; }\
void C :: x (T t) { this-> x##_ = t; }
int
JAWS_Parse_Headers::parse_headers (JAWS_Header_Info *info,
ACE_Message... | 24.258581 | 80 | 0.533346 | azerothcore |
dc665a9d6c2c26efd06fa2729e528a885479f9d7 | 924 | cc | C++ | prog/fuzzing/mask_fuzzer.cc | openfnord/leptonica | 4af068b56a9674da915debea4ed7e1b9885b17e8 | [
"BSD-2-Clause"
] | 1,239 | 2016-01-14T10:19:19.000Z | 2022-03-31T22:28:08.000Z | prog/fuzzing/mask_fuzzer.cc | openfnord/leptonica | 4af068b56a9674da915debea4ed7e1b9885b17e8 | [
"BSD-2-Clause"
] | 441 | 2016-01-26T20:46:53.000Z | 2022-03-31T18:00:03.000Z | prog/fuzzing/mask_fuzzer.cc | openfnord/leptonica | 4af068b56a9674da915debea4ed7e1b9885b17e8 | [
"BSD-2-Clause"
] | 395 | 2016-01-14T10:23:26.000Z | 2022-03-31T19:49:14.000Z | #include "leptfuzz.h"
PIX *
MakeReplacementMask(PIX *pixs)
{
PIX *pix1, *pix2, *pix3, *pix4;
pix1 = pixMaskOverColorPixels(pixs, 95, 3);
pix2 = pixMorphSequence(pix1, "o15.15", 0);
pixSeedfillBinary(pix2, pix2, pix1, 8);
pix3 = pixMorphSequence(pix2, "c15.15 + d61.31", 0);
pix4 = pixRemoveBorder... | 21.488372 | 70 | 0.643939 | openfnord |
dc67883bb0025cf40adb495b8f28e5179d941168 | 178 | cpp | C++ | programming-basics/simpleInterest.cpp | saksham-jain01/data-structures-algorithms | 7ce95dbd2fd31c693a4bc84b434d36fe397064da | [
"MIT"
] | null | null | null | programming-basics/simpleInterest.cpp | saksham-jain01/data-structures-algorithms | 7ce95dbd2fd31c693a4bc84b434d36fe397064da | [
"MIT"
] | null | null | null | programming-basics/simpleInterest.cpp | saksham-jain01/data-structures-algorithms | 7ce95dbd2fd31c693a4bc84b434d36fe397064da | [
"MIT"
] | null | null | null | #include<iostream>
using namespace std;
int main(){
int p,r,t;
float si;
cin>>p>>r>>t;
si = (p*r*t)/100.0;
cout<<"Simple Interest is "<<si<<endl;
return 0;
}
| 11.125 | 39 | 0.561798 | saksham-jain01 |
dc7201b8c00f89b20d53b1c912d10e20ada8ebb4 | 6,236 | cpp | C++ | media_driver/agnostic/common/cm/cm_group_space.cpp | lacc97/media-driver | 8aa1d74b80668f9963e691b1c01ab564f50aec85 | [
"Intel",
"BSD-3-Clause",
"MIT"
] | 4 | 2019-06-20T15:43:05.000Z | 2020-05-15T09:02:47.000Z | media_driver/agnostic/common/cm/cm_group_space.cpp | lacc97/media-driver | 8aa1d74b80668f9963e691b1c01ab564f50aec85 | [
"Intel",
"BSD-3-Clause",
"MIT"
] | 1 | 2019-01-05T02:54:19.000Z | 2019-01-05T02:54:19.000Z | media_driver/agnostic/common/cm/cm_group_space.cpp | lacc97/media-driver | 8aa1d74b80668f9963e691b1c01ab564f50aec85 | [
"Intel",
"BSD-3-Clause",
"MIT"
] | 1 | 2018-01-12T06:07:55.000Z | 2018-01-12T06:07:55.000Z | /*
* Copyright (c) 2017, Intel Corporation
*
* Permission is hereby granted, free of charge, to any person obtaining a
* copy of this software and associated documentation files (the "Software"),
* to deal in the Software without restriction, including without limitation
* the rights to use, copy, modify, merge, publis... | 38.975 | 272 | 0.649134 | lacc97 |
dc7211bd86ec4f51b36ee977aeef0c6af9d5e1c5 | 6,181 | cpp | C++ | source/Irrlicht/CSMFMeshFileLoader.cpp | vell001/Irrlicht-vell | 23d4f03dbcd35dd93681dc0751f327f584516709 | [
"IJG"
] | null | null | null | source/Irrlicht/CSMFMeshFileLoader.cpp | vell001/Irrlicht-vell | 23d4f03dbcd35dd93681dc0751f327f584516709 | [
"IJG"
] | null | null | null | source/Irrlicht/CSMFMeshFileLoader.cpp | vell001/Irrlicht-vell | 23d4f03dbcd35dd93681dc0751f327f584516709 | [
"IJG"
] | null | null | null | // Copyright (C) 2010-2012 Gaz Davidson / Joseph Ellis
// This file is part of the "Irrlicht Engine".
// For conditions of distribution and use, see copyright notice in irrlicht.h
#include "IrrCompileConfig.h"
#ifdef _IRR_COMPILE_WITH_SMF_LOADER_
#include "CSMFMeshFileLoader.h"
#include "CMeshTextureLoader.h"
#inclu... | 25.436214 | 110 | 0.713315 | vell001 |
dc72ce69ccadd23c200fcbd2b502ce6fb6c74e84 | 725 | hpp | C++ | lib/graph/cycle.hpp | kuhaku-space/atcoder-lib | 7fe1365e1be69d3eff11e122b2c7dff997a6c541 | [
"Apache-2.0"
] | null | null | null | lib/graph/cycle.hpp | kuhaku-space/atcoder-lib | 7fe1365e1be69d3eff11e122b2c7dff997a6c541 | [
"Apache-2.0"
] | 4 | 2022-01-05T14:40:40.000Z | 2022-03-05T08:03:19.000Z | lib/graph/cycle.hpp | kuhaku-space/atcoder-lib | 7fe1365e1be69d3eff11e122b2c7dff997a6c541 | [
"Apache-2.0"
] | null | null | null | #pragma once
#include "graph/graph.hpp"
#include "template/template.hpp"
/**
* @brief 閉路検出
*
* @tparam T 辺の重みの型
* @param g グラフ
* @retval true 閉路あり
* @retval false 閉路なし
*/
template <class T>
bool has_cycle(const Graph<T> &g) {
int n = g.size();
std::vector<bool> seen(n), finished(n);
bool res = false... | 20.138889 | 44 | 0.511724 | kuhaku-space |
dc7423d078c276ef3af730561ff671c110180e8c | 7,450 | cpp | C++ | library.cpp | Koncord/luaB2T | 8506c983f3c700401991017dd614661d83d89a1f | [
"MIT"
] | 1 | 2018-08-19T18:09:18.000Z | 2018-08-19T18:09:18.000Z | library.cpp | Koncord/luaB2T | 8506c983f3c700401991017dd614661d83d89a1f | [
"MIT"
] | null | null | null | library.cpp | Koncord/luaB2T | 8506c983f3c700401991017dd614661d83d89a1f | [
"MIT"
] | 1 | 2022-03-01T19:18:35.000Z | 2022-03-01T19:18:35.000Z | #include "library.h"
#include <nlohmann/json.hpp>
#define SOL_CHECK_ARGUMENTS 1
#include <sol/sol.hpp>
#include <fstream>
namespace B2T
{
sol::object jsonParseObj(const nlohmann::json::object_t &obj, sol::state_view &lua);
sol::object jsonParseArray(const nlohmann::json::array_t &obj, sol::state_view &lua);
... | 30.284553 | 128 | 0.51396 | Koncord |
dc7441129bbbca5a92a479505c9aa12e93ce389d | 5,834 | cpp | C++ | raptor/util/tests/test_repartition.cpp | lwhZJU/raptor | cc8a68f1998c180dd696cb4c6b5fb18987fa60df | [
"BSD-2-Clause"
] | 1 | 2019-03-28T08:05:11.000Z | 2019-03-28T08:05:11.000Z | raptor/util/tests/test_repartition.cpp | lwhZJU/raptor | cc8a68f1998c180dd696cb4c6b5fb18987fa60df | [
"BSD-2-Clause"
] | null | null | null | raptor/util/tests/test_repartition.cpp | lwhZJU/raptor | cc8a68f1998c180dd696cb4c6b5fb18987fa60df | [
"BSD-2-Clause"
] | null | null | null | // Copyright (c) 2015-2017, RAPtor Developer Team
// License: Simplified BSD, http://opensource.org/licenses/BSD-2-Clause
#include <assert.h>
#include <math.h>
#include "core/types.hpp"
#include "core/par_matrix.hpp"
#include "gallery/par_matrix_IO.hpp"
#include "util/linalg/repartition.hpp"
#include "util/linalg/exte... | 31.879781 | 86 | 0.585362 | lwhZJU |
dc791dc1ca9ceaafad03358d5842ef641e159afb | 1,573 | cc | C++ | fasta_parser.cc | reisub/sparseMEM | f29ecf86accab7fcda5cf655d981796cb53e093b | [
"MIT"
] | null | null | null | fasta_parser.cc | reisub/sparseMEM | f29ecf86accab7fcda5cf655d981796cb53e093b | [
"MIT"
] | null | null | null | fasta_parser.cc | reisub/sparseMEM | f29ecf86accab7fcda5cf655d981796cb53e093b | [
"MIT"
] | null | null | null | #include <fstream>
#include <iostream>
#include <algorithm>
#include <ctype.h>
#include "fasta_parser.h"
// Concatenate new sequences to set, keep track of lengths.
// NOTE: Concatenation using the '`' character to separate strings!
void fasta_parser(string filename, string &output_string, vector<string> &meta_data, ... | 28.089286 | 110 | 0.627463 | reisub |
dc7a6065f85d38c98c524f08428bb7bcf4b3c8ce | 763 | cpp | C++ | Factory Pattern/PizzaStoreFranchise/ChicagoPizzaStore.cpp | mrlegowatch/HeadFirstDesignPatternsCpp | 436ee8f0344b6a2ccfef6dcfa216a16a6ca7b482 | [
"MIT"
] | 43 | 2018-07-17T21:53:21.000Z | 2022-03-23T13:15:06.000Z | Factory Pattern/PizzaStoreFranchise/ChicagoPizzaStore.cpp | mrlegowatch/HeadFirstDesignPatternsCpp | 436ee8f0344b6a2ccfef6dcfa216a16a6ca7b482 | [
"MIT"
] | null | null | null | Factory Pattern/PizzaStoreFranchise/ChicagoPizzaStore.cpp | mrlegowatch/HeadFirstDesignPatternsCpp | 436ee8f0344b6a2ccfef6dcfa216a16a6ca7b482 | [
"MIT"
] | 14 | 2019-04-10T13:01:07.000Z | 2022-03-08T13:19:14.000Z | //
// ChicagoPizzaStore.cpp
// PizzaStoreFranchise
//
// Created by Cindy Solomon on 2/20/18.
// Copyright © 2018 Brian Arnold. All rights reserved.
//
#include "ChicagoPizzaStore.hpp"
#include "ChicagoStyleCheesePizza.hpp"
#include "ChicagoStylePepperoniPizza.hpp"
#include "ChicagoStyleVeggiePizza.hpp"
std::uniq... | 22.441176 | 69 | 0.669725 | mrlegowatch |
dc7ae905481e2aa171fa9c07762e0ad87362bbb3 | 976 | cpp | C++ | src/Math/Hash/Hash32.cpp | tak2004/RadonFramework | e916627a54a80fac93778d5010c50c09b112259b | [
"Apache-2.0"
] | 3 | 2015-09-15T06:57:50.000Z | 2021-03-16T19:05:02.000Z | src/Math/Hash/Hash32.cpp | tak2004/RadonFramework | e916627a54a80fac93778d5010c50c09b112259b | [
"Apache-2.0"
] | 2 | 2015-09-26T12:41:10.000Z | 2015-12-08T08:41:37.000Z | src/Math/Hash/Hash32.cpp | tak2004/RadonFramework | e916627a54a80fac93778d5010c50c09b112259b | [
"Apache-2.0"
] | 1 | 2015-07-09T02:56:34.000Z | 2015-07-09T02:56:34.000Z | #include "RadonFramework/precompiled.hpp"
#include "RadonFramework/Math/Hash/Hash32.hpp"
#include "RadonFramework/Math/Hash/HashfunctionServiceLocator.hpp"
#include "RadonFramework/Math/Hash/IHashfunction.hpp"
namespace RadonFramework::Math::Hash {
void Hash32::FromData(const RF_Type::UInt8 * Data, const RF_Type::Siz... | 26.378378 | 77 | 0.706967 | tak2004 |
dc7c0786af08194cf80f157ec44001e9f8b752a1 | 4,124 | cpp | C++ | src/client/client/Command_Client_Play.cpp | Kuga23/Projet-M2 | 85c879b8fd1ed4fdf89eedd9f89841cbd7a1e433 | [
"MIT"
] | null | null | null | src/client/client/Command_Client_Play.cpp | Kuga23/Projet-M2 | 85c879b8fd1ed4fdf89eedd9f89841cbd7a1e433 | [
"MIT"
] | null | null | null | src/client/client/Command_Client_Play.cpp | Kuga23/Projet-M2 | 85c879b8fd1ed4fdf89eedd9f89841cbd7a1e433 | [
"MIT"
] | null | null | null | #include "Command_Client_Play.h"
#include "state.h"
#include "engine.h"
#include "render.h"
#include <string>
#include <fstream>
#include <iostream>
using namespace client;
using namespace std;
using namespace Json;
Command_Client_Play::Command_Client_Play(){}
Command_Client_Play::~Command_Client_Play(){}
void Comma... | 37.490909 | 137 | 0.575412 | Kuga23 |
dc80160c9920c09169d5d5fd0c7c175a4b0b0f0e | 9,555 | cpp | C++ | src/TAO/API/names/create.cpp | beuschl/LLL-TAO | 639b9a3e010db3938095b015da35d3fd845d2666 | [
"MIT"
] | null | null | null | src/TAO/API/names/create.cpp | beuschl/LLL-TAO | 639b9a3e010db3938095b015da35d3fd845d2666 | [
"MIT"
] | null | null | null | src/TAO/API/names/create.cpp | beuschl/LLL-TAO | 639b9a3e010db3938095b015da35d3fd845d2666 | [
"MIT"
] | null | null | null | /*__________________________________________________________________________________________
(c) Hash(BEGIN(Satoshi[2010]), END(Sunny[2012])) == Videlicet[2014] ++
(c) Copyright The Nexus Developers 2014 - 2019
Distributed under the MIT software license, see the accompanying
... | 38.841463 | 147 | 0.578022 | beuschl |
dc81262036cb56b839b1479daa3360dc8970c50f | 2,698 | hpp | C++ | src/PCRegistration/mrob/factors/factor1PosePoint2Point.hpp | iakov/mrob | fdbb0cf1b2a0e32eb9bad655e54222c85279a91d | [
"Apache-2.0"
] | null | null | null | src/PCRegistration/mrob/factors/factor1PosePoint2Point.hpp | iakov/mrob | fdbb0cf1b2a0e32eb9bad655e54222c85279a91d | [
"Apache-2.0"
] | null | null | null | src/PCRegistration/mrob/factors/factor1PosePoint2Point.hpp | iakov/mrob | fdbb0cf1b2a0e32eb9bad655e54222c85279a91d | [
"Apache-2.0"
] | null | null | null | /* Copyright (c) 2018, Skolkovo Institute of Science and Technology (Skoltech)
*
* 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
*
* U... | 31.011494 | 125 | 0.704225 | iakov |
dc816b98555ff96bd24eac3c2a90645245e340c9 | 27,449 | cpp | C++ | src/core/lua/luamanager.cpp | eXl-Nic/eXl | a5a0f77f47db3179365c107a184bb38b80280279 | [
"MIT"
] | null | null | null | src/core/lua/luamanager.cpp | eXl-Nic/eXl | a5a0f77f47db3179365c107a184bb38b80280279 | [
"MIT"
] | null | null | null | src/core/lua/luamanager.cpp | eXl-Nic/eXl | a5a0f77f47db3179365c107a184bb38b80280279 | [
"MIT"
] | null | null | null | /*
Copyright 2009-2021 Nicolas Colombe
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute... | 25.557728 | 460 | 0.585413 | eXl-Nic |
dc821413cd8a0b141f1cbc38c18946a2b4936484 | 54,552 | cpp | C++ | src/main.cpp | ggerganov/wtf-tui | 002063e5ae7954764e73898d91c7004d8ca21782 | [
"MIT"
] | 39 | 2020-03-17T04:24:17.000Z | 2022-01-17T12:08:47.000Z | src/main.cpp | ggerganov/wtf-tui | 002063e5ae7954764e73898d91c7004d8ca21782 | [
"MIT"
] | null | null | null | src/main.cpp | ggerganov/wtf-tui | 002063e5ae7954764e73898d91c7004d8ca21782 | [
"MIT"
] | 5 | 2020-04-15T20:05:30.000Z | 2021-06-10T17:56:27.000Z | /*! \file main.cpp
* \brief wtf-tui : text-base UI for wtf
*/
#include "imtui/imtui.h"
#include "templates.h"
#include "ImGuiColorTextEdit/TextEditor.h"
#include "yaml-cpp/yaml.h"
#ifdef __EMSCRIPTEN__
#include "imtui/imtui-impl-emscripten.h"
#include <emscripten.h>
#include <emscripten/html5.h>
#else
#defi... | 39.049392 | 192 | 0.443082 | ggerganov |
dc8293644b3e95c5052204efa6af8cc2504ec468 | 3,004 | cpp | C++ | OGDF/src/ogdf/energybased/MultilevelLayout.cpp | shahnidhi/MetaCarvel | f3bea5fdbbecec4c9becc6bbdc9585a939eb5481 | [
"MIT"
] | 13 | 2017-12-21T03:35:41.000Z | 2022-01-31T13:45:25.000Z | OGDF/src/ogdf/energybased/MultilevelLayout.cpp | shahnidhi/MetaCarvel | f3bea5fdbbecec4c9becc6bbdc9585a939eb5481 | [
"MIT"
] | 7 | 2017-09-13T01:31:24.000Z | 2021-12-14T00:31:50.000Z | OGDF/src/ogdf/energybased/MultilevelLayout.cpp | shahnidhi/MetaCarvel | f3bea5fdbbecec4c9becc6bbdc9585a939eb5481 | [
"MIT"
] | 15 | 2017-09-07T18:28:55.000Z | 2022-01-18T14:17:43.000Z | /** \file
* \brief Implements class MultilevelLayout
*
* \author Karsten Klein
*
* \par License:
* This file is part of the Open Graph Drawing Framework (OGDF).
*
* \par
* Copyright (C)<br>
* See README.txt in the root directory of the OGDF installation for details.
*
* \par
* This program is free software... | 27.063063 | 77 | 0.731358 | shahnidhi |
dc844d13ee0b86a257ec21e85b7eb7ac312dc486 | 50,784 | cpp | C++ | src/backend/test/camera_service_impl_test.cpp | kayfour/MAVSDK | 48faf36a15ad9371b9e0a3c16ecac248e27e03ad | [
"BSD-3-Clause"
] | null | null | null | src/backend/test/camera_service_impl_test.cpp | kayfour/MAVSDK | 48faf36a15ad9371b9e0a3c16ecac248e27e03ad | [
"BSD-3-Clause"
] | null | null | null | src/backend/test/camera_service_impl_test.cpp | kayfour/MAVSDK | 48faf36a15ad9371b9e0a3c16ecac248e27e03ad | [
"BSD-3-Clause"
] | 1 | 2021-01-08T00:43:04.000Z | 2021-01-08T00:43:04.000Z | #include <gmock/gmock.h>
#include <future>
#include <grpc++/grpc++.h>
#include <grpc++/server.h>
#include <grpc++/server_builder.h>
#include <memory>
#include "camera/camera_service_impl.h"
#include "camera/mocks/camera_mock.h"
namespace {
using testing::_;
using testing::DoDefault;
using testing::NiceMock;
using t... | 39.428571 | 100 | 0.740095 | kayfour |
dc8915297118303eeeae4131ed21fe0feb2879f6 | 321 | cpp | C++ | src/AGC/AGCAlephs.cpp | FreeAllegiance/AllegianceDX7 | 3955756dffea8e7e31d3a55fcf6184232b792195 | [
"MIT"
] | 76 | 2015-08-18T19:18:40.000Z | 2022-01-08T12:47:22.000Z | src/AGC/AGCAlephs.cpp | StudentAlleg/Allegiance | e91660a471eb4e57e9cea4c743ad43a82f8c7b18 | [
"MIT"
] | 37 | 2015-08-14T22:44:12.000Z | 2020-01-21T01:03:06.000Z | src/AGC/AGCAlephs.cpp | FreeAllegiance/Allegiance-AZ | 1d8678ddff9e2efc79ed449de6d47544989bc091 | [
"MIT"
] | 42 | 2015-08-13T23:31:35.000Z | 2022-03-17T02:20:26.000Z | /////////////////////////////////////////////////////////////////////////////
// AdminAGCAlephs.cpp : Implementation of CAGCAlephs
//
#include "pch.h"
#include "AGCAlephs.h"
/////////////////////////////////////////////////////////////////////////////
// CAGCAlephs
TC_OBJECT_EXTERN_NON_CREATEABLE_IMPL(CAGCAlephs)
... | 21.4 | 77 | 0.395639 | FreeAllegiance |
dc8b41870327d8c0e0da81181a6ea65a6d764783 | 1,119 | cpp | C++ | libraries/utilities/src/IntegerList.cpp | siddu1998/ELL | 993d5370f0f7a274e8dfd8f43220c792be46f314 | [
"MIT"
] | 1 | 2018-11-08T06:19:31.000Z | 2018-11-08T06:19:31.000Z | libraries/utilities/src/IntegerList.cpp | vishnoitanuj/ELL | 993d5370f0f7a274e8dfd8f43220c792be46f314 | [
"MIT"
] | null | null | null | libraries/utilities/src/IntegerList.cpp | vishnoitanuj/ELL | 993d5370f0f7a274e8dfd8f43220c792be46f314 | [
"MIT"
] | 1 | 2019-12-19T10:02:48.000Z | 2019-12-19T10:02:48.000Z | ////////////////////////////////////////////////////////////////////////////////////////////////////
//
// Project: Embedded Learning Library (ELL)
// File: IntegerList.cpp (utilities)
// Authors: Ofer Dekel
//
////////////////////////////////////////////////////////////////////////////////////////////////////... | 22.38 | 100 | 0.49866 | siddu1998 |
dc8bdd2da8b672e881266f79578aa660913d9607 | 1,715 | cpp | C++ | src/Renderer/GL/LineRenderer.cpp | Strife-AI/Strife.Engine | 6b83e762f28acb3f4440d5b7763beccfd08dfc8f | [
"NCSA"
] | 12 | 2020-12-27T22:13:58.000Z | 2021-03-14T09:03:02.000Z | src/Renderer/GL/LineRenderer.cpp | Strife-AI/Strife.Engine | 6b83e762f28acb3f4440d5b7763beccfd08dfc8f | [
"NCSA"
] | 10 | 2021-01-14T15:14:31.000Z | 2021-05-24T22:01:09.000Z | src/Renderer/GL/LineRenderer.cpp | Strife-AI/Strife.Engine | 6b83e762f28acb3f4440d5b7763beccfd08dfc8f | [
"NCSA"
] | null | null | null | #include "LineRenderer.hpp"
#include "gl3w.h"
void LineRenderer::Initialize(Shader* shader_)
{
shader = shader_;
glGenVertexArrays(1, &voa);
glBindVertexArray(voa);
glGenBuffers(1, &vertexVbo);
glBindBuffer(GL_ARRAY_BUFFER, vertexVbo);
glBufferData(GL_ARRAY_BUFFER, sizeof(RenderVertex) * MaxV... | 25.597015 | 104 | 0.658309 | Strife-AI |
dc8fb617467af881e21e66df5e1fb1ccbbd75348 | 732 | cpp | C++ | B/1071.cpp | chenjiajia9411/PATest | 061c961f5d7bf7b23c3a1b70d3d443cb57263700 | [
"Apache-2.0"
] | 1 | 2017-11-24T15:06:29.000Z | 2017-11-24T15:06:29.000Z | B/1071.cpp | chenjiajia9411/PAT | 061c961f5d7bf7b23c3a1b70d3d443cb57263700 | [
"Apache-2.0"
] | null | null | null | B/1071.cpp | chenjiajia9411/PAT | 061c961f5d7bf7b23c3a1b70d3d443cb57263700 | [
"Apache-2.0"
] | null | null | null | //两个空格!
#include <iostream>
using namespace std;
int main()
{
int t,k;
cin>>t>>k;
for(int i = 0; i < k; i++)
{
int n1,b,t1,n2;
cin>>n1>>b>>t1>>n2;
if(t1 > t) cout<<"Not enough tokens. Total = "<<t<<"."<<endl;
else
{
if((b && n1 < n2) || (!b && n1 > n... | 21.529412 | 70 | 0.282787 | chenjiajia9411 |
dc910ba2ae22fd3d2d99dd2d99c1a0cd661dc60a | 5,388 | cpp | C++ | src/dlPipeline/BackgroundDrawable.cpp | AluminiumRat/mtt | 3052f8ad0ffabead05a1033e1d714a61e77d0aa8 | [
"MIT"
] | null | null | null | src/dlPipeline/BackgroundDrawable.cpp | AluminiumRat/mtt | 3052f8ad0ffabead05a1033e1d714a61e77d0aa8 | [
"MIT"
] | null | null | null | src/dlPipeline/BackgroundDrawable.cpp | AluminiumRat/mtt | 3052f8ad0ffabead05a1033e1d714a61e77d0aa8 | [
"MIT"
] | null | null | null | #include <mtt/dlPipeline/RenderPass/BackgroundPass.h>
#include <mtt/dlPipeline/constants.h>
#include <mtt/dlPipeline/BackgroundDrawable.h>
#include <mtt/render/DrawPlan/DrawMeshAction.h>
#include <mtt/utilities/Abort.h>
using namespace mtt;
using namespace mtt::dlPipeline;
BackgroundDrawable::DrawTechnique::DrawTechn... | 35.92 | 111 | 0.59948 | AluminiumRat |
dc95ea889f9e669f3219e0aa9dc602a9fcec353e | 45 | hpp | C++ | src/boost_preprocessor_array_enum.hpp | miathedev/BoostForArduino | 919621dcd0c157094bed4df752b583ba6ea6409e | [
"BSL-1.0"
] | 10 | 2018-03-17T00:58:42.000Z | 2021-07-06T02:48:49.000Z | src/boost_preprocessor_array_enum.hpp | miathedev/BoostForArduino | 919621dcd0c157094bed4df752b583ba6ea6409e | [
"BSL-1.0"
] | 2 | 2021-03-26T15:17:35.000Z | 2021-05-20T23:55:08.000Z | src/boost_preprocessor_array_enum.hpp | miathedev/BoostForArduino | 919621dcd0c157094bed4df752b583ba6ea6409e | [
"BSL-1.0"
] | 4 | 2019-05-28T21:06:37.000Z | 2021-07-06T03:06:52.000Z | #include <boost/preprocessor/array/enum.hpp>
| 22.5 | 44 | 0.8 | miathedev |
dc980dc4395e1dee60dca2d65534a34941bed332 | 11,721 | cpp | C++ | multislice/temsim/incostemcmd.cpp | ccp4/multislice | 3aaf9a16f6530e86565e0909527913781dbe5a45 | [
"BSD-2-Clause"
] | null | null | null | multislice/temsim/incostemcmd.cpp | ccp4/multislice | 3aaf9a16f6530e86565e0909527913781dbe5a45 | [
"BSD-2-Clause"
] | null | null | null | multislice/temsim/incostemcmd.cpp | ccp4/multislice | 3aaf9a16f6530e86565e0909527913781dbe5a45 | [
"BSD-2-Clause"
] | null | null | null | /* incostem.cpp
------------------------------------------------------------------------
Copyright 1998-2013 Earl J. Kirkland
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, ... | 34.98806 | 78 | 0.569491 | ccp4 |
dc9c769bf4ab111a531d0615d5a5ad0e333dae64 | 53,599 | cc | C++ | dash/test/container/MatrixTest.cc | MarkusVelten/dash | bbb703202aba2131e52b312a585225bf2b54c1f5 | [
"BSD-3-Clause"
] | null | null | null | dash/test/container/MatrixTest.cc | MarkusVelten/dash | bbb703202aba2131e52b312a585225bf2b54c1f5 | [
"BSD-3-Clause"
] | null | null | null | dash/test/container/MatrixTest.cc | MarkusVelten/dash | bbb703202aba2131e52b312a585225bf2b54c1f5 | [
"BSD-3-Clause"
] | null | null | null |
#include "MatrixTest.h"
#include <dash/Matrix.h>
#include <dash/Dimensional.h>
#include <dash/Cartesian.h>
#include <dash/Distribution.h>
#include <dash/algorithm/Copy.h>
#include <dash/algorithm/Fill.h>
#include <dash/algorithm/Generate.h>
#include <dash/pattern/internal/PatternLogging.h>
#include <iostream>
#inc... | 32.018519 | 112 | 0.596951 | MarkusVelten |
dc9df43e084d8af8f4e0072fc48c80d365473c97 | 3,993 | cpp | C++ | cppvolrend/volrendernull.cpp | danniesim/cpp_volume_rendering | 242c8917aea0a58c9851c2ae3e6c1555db51912e | [
"MIT"
] | 10 | 2020-05-15T23:50:19.000Z | 2022-02-17T09:54:44.000Z | cppvolrend/volrendernull.cpp | danniesim/cpp_volume_rendering | 242c8917aea0a58c9851c2ae3e6c1555db51912e | [
"MIT"
] | 1 | 2022-01-25T02:36:59.000Z | 2022-01-26T11:41:38.000Z | cppvolrend/volrendernull.cpp | danniesim/cpp_volume_rendering | 242c8917aea0a58c9851c2ae3e6c1555db51912e | [
"MIT"
] | 3 | 2021-11-01T10:32:46.000Z | 2021-12-28T16:40:10.000Z | #include "volrendernull.h"
#include "defines.h"
#include "volrenderbase.h"
#include <vis_utils/camera.h>
#include <volvis_utils/datamanager.h>
#include <glm/glm.hpp>
#include <glm/ext.hpp>
NullRenderer::NullRenderer ()
{
}
NullRenderer::~NullRenderer ()
{
}
const char* NullRenderer::GetName ()
{
return "Null ... | 24.347561 | 88 | 0.689707 | danniesim |
dc9f7b04cfc6e5f6e7075f63c8de08692c129aec | 7,923 | cpp | C++ | oj/acm11618.cpp | BPsoda/CS2602 | 94388afa6616625d357cfaf9637018d9609aaeb4 | [
"BSD-3-Clause"
] | 3 | 2021-12-16T09:07:07.000Z | 2021-12-31T16:19:51.000Z | oj/acm11618.cpp | BPsoda/CS2602 | 94388afa6616625d357cfaf9637018d9609aaeb4 | [
"BSD-3-Clause"
] | null | null | null | oj/acm11618.cpp | BPsoda/CS2602 | 94388afa6616625d357cfaf9637018d9609aaeb4 | [
"BSD-3-Clause"
] | 1 | 2022-01-29T07:06:19.000Z | 2022-01-29T07:06:19.000Z | #include <iostream>
#include <memory>
using namespace std;
template <class T>
class List
{
public:
virtual int length() const = 0;
virtual T& operator[](int i) = 0;
virtual const T& operator[](int i) const = 0;
virtual void insert(int i, const T& e) = 0;
virtual void remove(int i) = 0;
virtua... | 25.152381 | 76 | 0.456898 | BPsoda |
dca50f6ac01e0db5795d95e1bda12b33d7493ab0 | 25,417 | cpp | C++ | src/mtsgui/rendersettingsdlg.cpp | mmanzi/gradientdomain-mitsuba | c7c94e66e17bc41cca137717971164de06971bc7 | [
"Unlicense"
] | 92 | 2015-09-30T20:41:19.000Z | 2022-02-08T03:28:06.000Z | src/mtsgui/rendersettingsdlg.cpp | mmanzi/gradientdomain-mitsuba | c7c94e66e17bc41cca137717971164de06971bc7 | [
"Unlicense"
] | null | null | null | src/mtsgui/rendersettingsdlg.cpp | mmanzi/gradientdomain-mitsuba | c7c94e66e17bc41cca137717971164de06971bc7 | [
"Unlicense"
] | 21 | 2015-09-29T20:20:04.000Z | 2021-01-13T12:20:40.000Z | /*
This file is part of Mitsuba, a physically based rendering system.
Copyright (c) 2007-2014 by Wenzel Jakob and others.
Mitsuba is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License Version 3
as published by the Free Software Foundation.
... | 35.301389 | 166 | 0.705237 | mmanzi |
dca8e3775998f07ed82b2b04af36b6d52e351176 | 4,721 | cpp | C++ | Engine/source/platform/platformNetAsync.cpp | fr1tz/alux3d | 249a3b51751ce3184d52879b481f83eabe89e7e3 | [
"MIT"
] | null | null | null | Engine/source/platform/platformNetAsync.cpp | fr1tz/alux3d | 249a3b51751ce3184d52879b481f83eabe89e7e3 | [
"MIT"
] | null | null | null | Engine/source/platform/platformNetAsync.cpp | fr1tz/alux3d | 249a3b51751ce3184d52879b481f83eabe89e7e3 | [
"MIT"
] | 1 | 2018-10-26T03:18:22.000Z | 2018-10-26T03:18:22.000Z | // Copyright information can be found in the file named COPYING
// located in the root directory of this distribution.
#include "platform/platformNetAsync.h"
#include "core/strings/stringFunctions.h"
#include "platform/threads/threadPool.h"
#include "console/console.h"
#if defined(TORQUE_OS_WIN32)
# include <winsock... | 27.934911 | 91 | 0.583775 | fr1tz |
dcacc16c70dbb402e93d77a48b45ccd6d466e98b | 13,594 | cpp | C++ | designs/DVCON_2021/conv2d_window/testbench.cpp | hlslibs/ac_ml | 769b8562d68c264d4b47c4752bcb4037616a91d3 | [
"Apache-2.0"
] | 8 | 2021-06-18T09:10:57.000Z | 2022-02-28T15:07:01.000Z | designs/DVCON_2021/conv2d_window/testbench.cpp | hlslibs/ac_ml | 769b8562d68c264d4b47c4752bcb4037616a91d3 | [
"Apache-2.0"
] | 1 | 2021-07-24T20:49:58.000Z | 2021-07-24T20:49:58.000Z | designs/DVCON_2021/conv2d_window/testbench.cpp | hlslibs/ac_ml | 769b8562d68c264d4b47c4752bcb4037616a91d3 | [
"Apache-2.0"
] | 4 | 2021-06-22T17:51:00.000Z | 2022-03-02T03:23:03.000Z | /**************************************************************************
* *
* Algorithmic C (tm) Math Library *
* *
* Software Ver... | 36.347594 | 137 | 0.568633 | hlslibs |
dcaf9cdbadf80ad0803a1fbb4554a921f05ae4e6 | 2,985 | cpp | C++ | external/clownaudio/src/decoding/decoders/libopenmpt.cpp | haya3218/cse2-tweaks | 48bccbd58240942ed5f5b288a90ef092820698c0 | [
"MIT"
] | 12 | 2020-12-14T19:10:55.000Z | 2022-03-16T12:45:56.000Z | external/clownaudio/src/decoding/decoders/libopenmpt.cpp | haya3218/cse2-tweaks | 48bccbd58240942ed5f5b288a90ef092820698c0 | [
"MIT"
] | null | null | null | external/clownaudio/src/decoding/decoders/libopenmpt.cpp | haya3218/cse2-tweaks | 48bccbd58240942ed5f5b288a90ef092820698c0 | [
"MIT"
] | 6 | 2020-12-13T03:05:24.000Z | 2021-11-23T14:16:49.000Z | /*
* (C) 2019-2020 Clownacy
*
* This software is provided 'as-is', without any express or implied
* warranty. In no event will the authors be held liable for any damages
* arising from the use of this software.
*
* Permission is granted to anyone to use this software for any purpose,
* including ... | 28.980583 | 163 | 0.730318 | haya3218 |
dcb0cff820e47cfd9f9c2246fc8c4472b2af15f8 | 590 | cpp | C++ | 06. Searching/Binary Search/CeilingElement.cpp | samdev-py/100DaysOfCode | b0d96e42aeb657902153434c6a7ec8aec265f461 | [
"MIT"
] | 6 | 2021-10-30T10:18:11.000Z | 2021-12-27T17:25:30.000Z | 06. Searching/Binary Search/CeilingElement.cpp | samdev-py/Data-Structures-and-algorithms | b0d96e42aeb657902153434c6a7ec8aec265f461 | [
"MIT"
] | null | null | null | 06. Searching/Binary Search/CeilingElement.cpp | samdev-py/Data-Structures-and-algorithms | b0d96e42aeb657902153434c6a7ec8aec265f461 | [
"MIT"
] | null | null | null | #include <iostream>
using namespace std;
int CeilingElement(int arr[], int n, int x)
{
int s = 0;
int e = n - 1;
int ans = -1;
while (s <= e)
{
int mid = s + (e - s) / 2;
if (arr[mid] == x)
{
return arr[mid];
}
if (arr[mid] < x)
{
... | 15.945946 | 46 | 0.376271 | samdev-py |
dcb6fac3e3f39a1ea25aff5660ee36b61ccc6037 | 2,375 | hh | C++ | neb/inc/com/centreon/broker/neb/log_entry.hh | sdelafond/centreon-broker | 21178d98ed8a061ca71317d23c2026dbc4edaca2 | [
"Apache-2.0"
] | null | null | null | neb/inc/com/centreon/broker/neb/log_entry.hh | sdelafond/centreon-broker | 21178d98ed8a061ca71317d23c2026dbc4edaca2 | [
"Apache-2.0"
] | null | null | null | neb/inc/com/centreon/broker/neb/log_entry.hh | sdelafond/centreon-broker | 21178d98ed8a061ca71317d23c2026dbc4edaca2 | [
"Apache-2.0"
] | null | null | null | /*
** Copyright 2009-2013,2015 Centreon
**
** 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 agr... | 30.063291 | 75 | 0.648 | sdelafond |
dcbfa5d9cfe28743f3d76c3dabbd6fe963238d6f | 1,055 | cpp | C++ | Framework/memory.cpp | pmprog/TugOfWar | a09e76464a2a2a31f314fd995482c8d34a88c3ba | [
"MIT"
] | 4 | 2015-10-08T20:28:27.000Z | 2019-05-18T17:20:52.000Z | Framework/memory.cpp | pmprog/TugOfWar | a09e76464a2a2a31f314fd995482c8d34a88c3ba | [
"MIT"
] | 2 | 2021-08-11T10:29:34.000Z | 2021-09-18T19:14:57.000Z | Framework/memory.cpp | pmprog/TugOfWar | a09e76464a2a2a31f314fd995482c8d34a88c3ba | [
"MIT"
] | 3 | 2015-02-01T14:33:59.000Z | 2021-08-11T14:18:27.000Z |
#include "memory.h"
#include <stdio.h>
#include <string.h>
Memory::Memory( size_t InitialSize )
{
if( InitialSize <= 0 )
{
data_ptr = 0;
data_len = 0;
} else {
data_ptr = (char*)malloc( InitialSize );
data_len = InitialSize;
}
}
Memory::~Memory()
{
Clear();
}
size_t Memory::GetSize()
{
return data_len... | 13.881579 | 52 | 0.623697 | pmprog |
dcc1a238275794dc69d26ac72090bf93b99c22c9 | 4,358 | hxx | C++ | Modules/GPU/Common/include/itkGPUImage.hxx | CapeDrew/DCMTK-ITK | 440bf8ed100445396912cfd0aa72f36d4cdefe0c | [
"Apache-2.0"
] | 2 | 2015-06-19T07:18:36.000Z | 2019-04-18T07:28:23.000Z | Modules/GPU/Common/include/itkGPUImage.hxx | CapeDrew/DCMTK-ITK | 440bf8ed100445396912cfd0aa72f36d4cdefe0c | [
"Apache-2.0"
] | null | null | null | Modules/GPU/Common/include/itkGPUImage.hxx | CapeDrew/DCMTK-ITK | 440bf8ed100445396912cfd0aa72f36d4cdefe0c | [
"Apache-2.0"
] | 2 | 2017-05-02T07:18:49.000Z | 2020-04-30T01:37:35.000Z | /*=========================================================================
*
* Copyright Insight Software Consortium
*
* 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
*
* h... | 33.015152 | 99 | 0.701239 | CapeDrew |
dcc8d96c8ef8b36288246f0b90cf8a4ad744ccac | 5,059 | cpp | C++ | OctreeStart/MyOctant.cpp | sml5527/Unnamed-DSA2-Game | 25937abf7fc94ef063cdd518678a7834d17b29c8 | [
"MIT"
] | 1 | 2016-05-22T02:05:25.000Z | 2016-05-22T02:05:25.000Z | OctreeStart/MyOctant.cpp | sml5527/Unnamed-DSA2-Game | 25937abf7fc94ef063cdd518678a7834d17b29c8 | [
"MIT"
] | null | null | null | OctreeStart/MyOctant.cpp | sml5527/Unnamed-DSA2-Game | 25937abf7fc94ef063cdd518678a7834d17b29c8 | [
"MIT"
] | null | null | null | #include "MyOctant.h"
using namespace ReEng;
// MyOctant
bool MyOctant::m_bHead = true;
void MyOctant::Init(void)
{
m_v3Position = vector3(0.0f);
m_pMeshMngr = MeshManagerSingleton::GetInstance();
m_fSize = 0.0f;
m_nChildCount = 0;
m_pBOMngr = MyBOManager::GetInstance();
if (m_bHead)
{
int nObjectCont = m_pB... | 25.94359 | 110 | 0.691441 | sml5527 |
dccbd8e8178eac6b36251d82499eb6e8f0c8d328 | 3,002 | cpp | C++ | export/release/windows/obj/src/haxe/io/Error.cpp | SamuraiOfSecrets/Goatmeal-Time-v0.2 | 7b89cbaf6895495b90ee1a5679e9cc696a7fbb53 | [
"Apache-2.0"
] | null | null | null | export/release/windows/obj/src/haxe/io/Error.cpp | SamuraiOfSecrets/Goatmeal-Time-v0.2 | 7b89cbaf6895495b90ee1a5679e9cc696a7fbb53 | [
"Apache-2.0"
] | null | null | null | export/release/windows/obj/src/haxe/io/Error.cpp | SamuraiOfSecrets/Goatmeal-Time-v0.2 | 7b89cbaf6895495b90ee1a5679e9cc696a7fbb53 | [
"Apache-2.0"
] | null | null | null | // Generated by Haxe 4.2.2
#include <hxcpp.h>
#ifndef INCLUDED_haxe_io_Error
#include <haxe/io/Error.h>
#endif
namespace haxe{
namespace io{
::haxe::io::Error Error_obj::Blocked;
::haxe::io::Error Error_obj::Custom( ::Dynamic e)
{
return ::hx::CreateEnum< Error_obj >(HX_("Custom",d1,fb,26,74),3,1)->_hx_init(0,e);
}... | 30.323232 | 137 | 0.705197 | SamuraiOfSecrets |
dcd06e6fd8b246627134052d1b86958165239a48 | 334 | cc | C++ | Examens/Control 3/Torn 2/ex1.cc | angelgomezsa/Cplusplus | 9fd1ed5b1beffcf253019e8376b2bd41dac6e449 | [
"MIT"
] | null | null | null | Examens/Control 3/Torn 2/ex1.cc | angelgomezsa/Cplusplus | 9fd1ed5b1beffcf253019e8376b2bd41dac6e449 | [
"MIT"
] | null | null | null | Examens/Control 3/Torn 2/ex1.cc | angelgomezsa/Cplusplus | 9fd1ed5b1beffcf253019e8376b2bd41dac6e449 | [
"MIT"
] | null | null | null | #include <iostream>
#include <vector>
using namespace std;
int main() {
int n,k;
cin >> n >> k;
vector<int> v(n);
for (int i=0;i<n;i++)
cin >> v[i];
for (int i=n-k;i<n;i++) {
if (i!=n-k) cout << ' ';
cout << v[i];
}
cout << ' ';
for (int i=0;i<n-k;i++) {
if (i!=0) cout << ' ';
cout <<v[i];
}
c... | 14.521739 | 26 | 0.461078 | angelgomezsa |
dcd3cc79bb40a5067a5559354065b6f8846516d1 | 800 | cpp | C++ | doc/examples/clear.cpp | Hexlord/json | 66869458b5227170e052d01aa65b47ee8350b666 | [
"MIT"
] | 23 | 2016-01-20T07:50:24.000Z | 2021-09-08T05:08:19.000Z | json-master/doc/examples/clear.cpp | bobismijnnaam/bobetex | 9960eafd31c73b4070b236d5dfafd5734492aaf5 | [
"MIT"
] | 18 | 2016-06-01T11:56:54.000Z | 2016-06-06T10:58:53.000Z | json-master/doc/examples/clear.cpp | bobismijnnaam/bobetex | 9960eafd31c73b4070b236d5dfafd5734492aaf5 | [
"MIT"
] | 19 | 2016-01-24T13:05:24.000Z | 2021-06-25T01:36:47.000Z | #include <json.hpp>
using namespace nlohmann;
int main()
{
// create JSON values
json j_null;
json j_boolean = true;
json j_number_integer = 17;
json j_number_float = 23.42;
json j_object = {{"one", 1}, {"two", 2}};
json j_array = {1, 2, 4, 8, 16};
json j_string = "Hello, world";
... | 23.529412 | 45 | 0.5625 | Hexlord |
dcd4273f34120b447e1dc728e95d024077552c35 | 53,026 | inl | C++ | Engine/Core/Headers/Molten/Gui/Widgets/DockerWidget.inl | jimmiebergmann/CurseEngine | 74a0502e36327f893c8e4f3e7cbe5b9d38fbe194 | [
"MIT"
] | 2 | 2019-11-11T21:17:14.000Z | 2019-11-11T22:07:26.000Z | Engine/Core/Headers/Molten/Gui/Widgets/DockerWidget.inl | jimmiebergmann/CurseEngine | 74a0502e36327f893c8e4f3e7cbe5b9d38fbe194 | [
"MIT"
] | null | null | null | Engine/Core/Headers/Molten/Gui/Widgets/DockerWidget.inl | jimmiebergmann/CurseEngine | 74a0502e36327f893c8e4f3e7cbe5b9d38fbe194 | [
"MIT"
] | 1 | 2020-04-05T03:50:57.000Z | 2020-04-05T03:50:57.000Z | /*
* MIT License
*
* Copyright (c) 2022 Jimmie Bergmann
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files(the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, m... | 36.145876 | 155 | 0.549787 | jimmiebergmann |
dcd67271b633f052f3839caa99bd376fb7713cae | 1,856 | cpp | C++ | source/utopian/core/components/Actor.cpp | simplerr/Papageno | 7ec1da40dc0459e26f5b9a8a3f72d8962237040d | [
"MIT"
] | 62 | 2020-11-06T17:29:24.000Z | 2022-03-21T19:21:16.000Z | source/utopian/core/components/Actor.cpp | simplerr/Papageno | 7ec1da40dc0459e26f5b9a8a3f72d8962237040d | [
"MIT"
] | 134 | 2017-02-25T20:47:43.000Z | 2022-03-14T06:54:58.000Z | source/utopian/core/components/Actor.cpp | simplerr/Papageno | 7ec1da40dc0459e26f5b9a8a3f72d8962237040d | [
"MIT"
] | 6 | 2021-02-19T07:20:19.000Z | 2021-12-27T09:07:27.000Z | #include "Actor.h"
#include "core/ObjectManager.h"
#include "core/components/CTransform.h"
namespace Utopian
{
Actor::Actor(std::string name)
: Object(name)
{
SetAlive(true);
SetSerialize(true);
SetSceneLayer(0u);
}
Actor::~Actor()
{
}
SharedPtr<Actor> Actor::Create(std::... | 18.747475 | 80 | 0.590517 | simplerr |
dcd677d8c19f70e1f54ac7d7a45a3fb39bb1d75e | 311 | cpp | C++ | tests/scene_test.cpp | cnagda/id-pirated-vid | 95240154494eb94d74aa0f6d45ec160f73328a7f | [
"MIT"
] | 1 | 2020-02-19T10:09:16.000Z | 2020-02-19T10:09:16.000Z | tests/scene_test.cpp | cnagda/id-pirated-vid | 95240154494eb94d74aa0f6d45ec160f73328a7f | [
"MIT"
] | 10 | 2020-02-25T03:13:52.000Z | 2022-03-12T00:31:32.000Z | tests/scene_test.cpp | cnagda/id-pirated-vid | 95240154494eb94d74aa0f6d45ec160f73328a7f | [
"MIT"
] | null | null | null | #include "video.hpp"
#include "gtest/gtest.h"
TEST(SceneTest, Is_copiable) {
cv::Mat data{5, 6, 7, 7, 8};
SerializableScene s1{data, 5, 7};
SerializableScene s2(s1);
EXPECT_EQ(s1.startIdx, s2.startIdx);
EXPECT_EQ(s1.endIdx, s2.endIdx);
EXPECT_TRUE(matEqual(s1.frameBag, s2.frameBag));
} | 28.272727 | 52 | 0.675241 | cnagda |
dcd8f59cd5cdc4df55e1a03dc86557541e91f8e6 | 2,704 | hpp | C++ | external/armadillo-10.1.2/tmp/include/armadillo_bits/SizeMat_meat.hpp | hb407/libnome | cf11c6e34e6d147e28bfc6f54dd3ca81d2443438 | [
"MIT"
] | 675 | 2019-02-07T01:23:19.000Z | 2022-03-28T05:45:10.000Z | external/armadillo-10.1.2/tmp/include/armadillo_bits/SizeMat_meat.hpp | hb407/libnome | cf11c6e34e6d147e28bfc6f54dd3ca81d2443438 | [
"MIT"
] | 843 | 2019-01-25T01:06:46.000Z | 2022-03-16T11:15:53.000Z | external/armadillo-10.1.2/tmp/include/armadillo_bits/SizeMat_meat.hpp | hb407/libnome | cf11c6e34e6d147e28bfc6f54dd3ca81d2443438 | [
"MIT"
] | 83 | 2019-02-20T06:18:46.000Z | 2022-03-20T09:36:09.000Z | // Copyright 2008-2016 Conrad Sanderson (http://conradsanderson.id.au)
// Copyright 2008-2016 National ICT Australia (NICTA)
//
// 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... | 18.648276 | 80 | 0.644231 | hb407 |
dcdf6d3e30b87bef623a17c4da684aaf3d78078e | 8,104 | cc | C++ | nvm_library/nvm_file.cc | blueginah/nvlevelz | c70e46131181f365ebbf1dda66020e48e4a85218 | [
"BSD-3-Clause"
] | 2 | 2020-07-23T08:53:14.000Z | 2020-07-23T08:53:16.000Z | nvm_library/nvm_file.cc | blueginah/nvlevelz | c70e46131181f365ebbf1dda66020e48e4a85218 | [
"BSD-3-Clause"
] | 1 | 2020-02-13T08:18:47.000Z | 2020-02-13T08:18:47.000Z | nvm_library/nvm_file.cc | blueginah/nvlevelz | c70e46131181f365ebbf1dda66020e48e4a85218 | [
"BSD-3-Clause"
] | 2 | 2020-01-13T11:04:04.000Z | 2020-02-12T08:35:24.000Z | #include "nvm_file.h"
AbstractFile::~AbstractFile() {}
nvAddr SkiplistFile::NewPage(nvOffset num) {
nvAddr page = mng_->Allocate(SizePerBlock);
blocks_.Add(num, page);
return page;
}
void SkiplistFile::locate(ull pos, ul *page, ul *offset) {
pos += FileInfoSize;
*p... | 37.174312 | 98 | 0.567991 | blueginah |
dce1901dc61c011d4003f2eda04f39f6951f9eaa | 44,567 | cpp | C++ | groups/bsl/bslma/bslma_testallocatormonitor.t.cpp | adambde/bde | a2efe118da642be42b25e81ca986a0fe56078305 | [
"Apache-2.0"
] | 26 | 2015-05-07T04:22:06.000Z | 2022-01-26T09:10:12.000Z | groups/bsl/bslma/bslma_testallocatormonitor.t.cpp | adambde/bde | a2efe118da642be42b25e81ca986a0fe56078305 | [
"Apache-2.0"
] | 3 | 2015-05-07T21:06:36.000Z | 2015-08-28T20:02:18.000Z | groups/bsl/bslma/bslma_testallocatormonitor.t.cpp | adambde/bde | a2efe118da642be42b25e81ca986a0fe56078305 | [
"Apache-2.0"
] | 12 | 2015-05-06T08:41:07.000Z | 2021-11-09T12:52:19.000Z | // bslma_testallocatormonitor.t.cpp -*-C++-*-
#include <bslma_testallocatormonitor.h>
#include <bslma_allocator.h>
#include <bslma_default.h>
#include <bslma_defaultallocatorguard.h>
#include <bslma_testallocator.h>
#include <bsls_assert.h>
#include <bsls_asserttest.h>
#include <bsls... | 38.653079 | 79 | 0.531896 | adambde |
dce2aadc55a86dc2df98da00628b876fd85714dc | 5,701 | cpp | C++ | src/trajectory/SteamTrajPriorFactor.cpp | neophack/steam | 28f0637e3ae4ff2c21ad12b2331c535e9873c997 | [
"BSD-3-Clause"
] | null | null | null | src/trajectory/SteamTrajPriorFactor.cpp | neophack/steam | 28f0637e3ae4ff2c21ad12b2331c535e9873c997 | [
"BSD-3-Clause"
] | null | null | null | src/trajectory/SteamTrajPriorFactor.cpp | neophack/steam | 28f0637e3ae4ff2c21ad12b2331c535e9873c997 | [
"BSD-3-Clause"
] | null | null | null | //////////////////////////////////////////////////////////////////////////////////////////////
/// \file SteamTrajPriorFactor.cpp
///
/// \author Sean Anderson, ASRL
//////////////////////////////////////////////////////////////////////////////////////////////
#include <steam/trajectory/SteamTrajPriorFactor.hpp>
#inc... | 39.590278 | 112 | 0.563059 | neophack |
dce401fc306022d3f41a8348bfca09f07bfe8ebb | 12,092 | cpp | C++ | citrusleaf/cf_socket.cpp | bitbouncer/aerospike-asio | 501d33a2667878b09a291f6e34e58c86880c6e4d | [
"Apache-2.0"
] | null | null | null | citrusleaf/cf_socket.cpp | bitbouncer/aerospike-asio | 501d33a2667878b09a291f6e34e58c86880c6e4d | [
"Apache-2.0"
] | null | null | null | citrusleaf/cf_socket.cpp | bitbouncer/aerospike-asio | 501d33a2667878b09a291f6e34e58c86880c6e4d | [
"Apache-2.0"
] | null | null | null | /*
* A good, basic C client for the Aerospike protocol
* Creates a library which is linkable into a variety of systems
*
* First attempt is a very simple non-threaded blocking interface
* currently coded to C99 - in our tree, GCC 4.2 and 4.3 are used
*
* Brian Bulkowski, 2009
* All rights reserved
*/
#include... | 23.709804 | 117 | 0.626282 | bitbouncer |
dce86a87e2dc4e3086ac4270617e60a2aec2fa1d | 3,657 | cpp | C++ | main_test.cpp | goldbattle/stereo-lidar-fusion | 3777055bc2eac2976ce39170131fe2c89f5a617e | [
"MIT"
] | 41 | 2017-02-03T19:33:14.000Z | 2022-02-24T13:17:51.000Z | main_test.cpp | goldbattle/stereo-lidar-fusion | 3777055bc2eac2976ce39170131fe2c89f5a617e | [
"MIT"
] | null | null | null | main_test.cpp | goldbattle/stereo-lidar-fusion | 3777055bc2eac2976ce39170131fe2c89f5a617e | [
"MIT"
] | 20 | 2016-12-28T09:37:26.000Z | 2021-12-24T08:40:55.000Z | #include <cmath>
#include <iostream>
#include "image.h"
using namespace std;
// compute disparities of pgm image input pair file_1, file_2
void process (const char* file_1,const char* file_2) {
cout << "Processing: " << file_1 << ", " << file_2 << endl;
// load images
image<uchar> *I1,*I2;
I1 = loadPGM(fil... | 38.904255 | 119 | 0.654088 | goldbattle |
dcead0e2ac9b8e06c666c0d7b94f56d5a2e4cc78 | 1,960 | hxx | C++ | include/system/taskqueue.hxx | khorost/khorost-lib | 26da3a8911103c1a94b25fe95ecac9ee5d8e5924 | [
"Apache-2.0"
] | 2 | 2016-07-04T19:12:43.000Z | 2017-03-01T10:08:07.000Z | include/system/taskqueue.hxx | khorost/phreeber-lib | 26da3a8911103c1a94b25fe95ecac9ee5d8e5924 | [
"Apache-2.0"
] | null | null | null | include/system/taskqueue.hxx | khorost/phreeber-lib | 26da3a8911103c1a94b25fe95ecac9ee5d8e5924 | [
"Apache-2.0"
] | null | null | null | #pragma once
#include <list>
#include "boost/thread/thread.hpp"
#include "boost/thread/future.hpp"
#include "boost/asio/io_service.hpp"
#include "boost/shared_ptr.hpp"
#include "boost/make_shared.hpp"
#include "boost/foreach.hpp"
#include "boost/utility/result_of.hpp"
template <class TaskType>
class TaskQueue {
t... | 29.253731 | 112 | 0.642857 | khorost |
dcec66ade666845026fedb89cfc3b035b407cef7 | 8,175 | cc | C++ | Digit_Example/digit_dynamics_library/mex/Js_fleftToeBarA_vec_digit.cc | prem-chand/Cassie_CFROST | da4bd51442f86e852cbb630cc91c9a380a10b66d | [
"BSD-3-Clause"
] | null | null | null | Digit_Example/digit_dynamics_library/mex/Js_fleftToeBarA_vec_digit.cc | prem-chand/Cassie_CFROST | da4bd51442f86e852cbb630cc91c9a380a10b66d | [
"BSD-3-Clause"
] | null | null | null | Digit_Example/digit_dynamics_library/mex/Js_fleftToeBarA_vec_digit.cc | prem-chand/Cassie_CFROST | da4bd51442f86e852cbb630cc91c9a380a10b66d | [
"BSD-3-Clause"
] | null | null | null | /*
* Automatically Generated from Mathematica.
* Thu 4 Nov 2021 18:41:34 GMT-04:00
*/
#ifdef MATLAB_MEX_FILE
#include <stdexcept>
#include <cmath>
#include<math.h>
/**
* Copied from Wolfram Mathematica C Definitions file mdefs.hpp
* Changed marcos to inline functions (Eric Cousineau)
*/
inline double Power(doubl... | 21.015424 | 92 | 0.65737 | prem-chand |
dcecff8cfbfa66b94e1c27b759790594b5045d86 | 3,572 | cpp | C++ | Projects/Skylicht/Collision/Source/Collision/CCollisionBuilder.cpp | tsukoyumi/skylicht-engine | 3b88d9718e87e552152633ef60e3f889869b71de | [
"MIT"
] | 310 | 2019-11-25T04:14:11.000Z | 2022-03-31T23:39:19.000Z | Projects/Skylicht/Collision/Source/Collision/CCollisionBuilder.cpp | tsukoyumi/skylicht-engine | 3b88d9718e87e552152633ef60e3f889869b71de | [
"MIT"
] | 79 | 2019-11-17T07:51:02.000Z | 2022-03-22T08:49:41.000Z | Projects/Skylicht/Collision/Source/Collision/CCollisionBuilder.cpp | tsukoyumi/skylicht-engine | 3b88d9718e87e552152633ef60e3f889869b71de | [
"MIT"
] | 24 | 2020-05-10T09:37:55.000Z | 2022-03-05T13:19:31.000Z | /*
!@
MIT License
Copyright (c) 2021 Skylicht Technology CO., LTD
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files
(the "Software"), to deal in the Software without restriction, including without limitation the Rights to use, copy, modify... | 24.29932 | 141 | 0.677212 | tsukoyumi |
fd60b10b4998591fbb4a836c96fd2c1aba4eeaa2 | 656 | hpp | C++ | Chapter05-physics/011-path/src/Boid.hpp | jeffcrouse/ccof | d9c5773b9913209e3ff06a4777115d750487cb44 | [
"MIT"
] | 6 | 2017-09-27T14:13:44.000Z | 2020-06-24T18:16:22.000Z | Chapter05-physics/011-path/src/Boid.hpp | jeffcrouse/ccof | d9c5773b9913209e3ff06a4777115d750487cb44 | [
"MIT"
] | null | null | null | Chapter05-physics/011-path/src/Boid.hpp | jeffcrouse/ccof | d9c5773b9913209e3ff06a4777115d750487cb44 | [
"MIT"
] | 3 | 2017-10-27T20:33:33.000Z | 2019-09-17T05:42:13.000Z | //
// Boid.hpp
// path
//
// Created by Jeffrey Crouse on 10/27/17.
//
#pragma once
#include "ofMain.h"
#include "Path.hpp"
class Boid {
public:
Boid(ofPoint l, float ms, float mf);
void update();
void draw();
void seek(ofPoint target);
void arrive(ofPoint target);
ofPoint steer(ofPoi... | 16.4 | 60 | 0.61128 | jeffcrouse |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.