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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
63a28920e4ba0045de7941f79cfc5ffca9df04e8 | 25,199 | cpp | C++ | oldsrc/mjpgserver.cpp | frc5431/Perception | d6284459b6df2a9455282629df330a43a054e10d | [
"MIT"
] | null | null | null | oldsrc/mjpgserver.cpp | frc5431/Perception | d6284459b6df2a9455282629df330a43a054e10d | [
"MIT"
] | null | null | null | oldsrc/mjpgserver.cpp | frc5431/Perception | d6284459b6df2a9455282629df330a43a054e10d | [
"MIT"
] | null | null | null | /**
CS-11 Format
File: mjpgserver.cpp
Purpose: Capture/process mats and display on http stream
@author David Smerkous
@version 1.0 8/11/2016
License: MIT License (MIT)
Copyright (c) 2016 David Smerkous
Permission is hereby granted, free of charge, to any person obtaining a copy of thi... | 32.556848 | 174 | 0.513949 | frc5431 |
63a50c9cf08b1770961cef79c5f9fc672cd1a602 | 692 | hpp | C++ | source/foundation/include/network_utils.hpp | maxcong001/cpp_rest_config | d30b3bab8b0c2b1285b7eca53e3b93fc2ae5ff6d | [
"MIT"
] | null | null | null | source/foundation/include/network_utils.hpp | maxcong001/cpp_rest_config | d30b3bab8b0c2b1285b7eca53e3b93fc2ae5ff6d | [
"MIT"
] | null | null | null | source/foundation/include/network_utils.hpp | maxcong001/cpp_rest_config | d30b3bab8b0c2b1285b7eca53e3b93fc2ae5ff6d | [
"MIT"
] | null | null | null |
#pragma once
#include <string>
#include "std_micro_service.hpp"
using namespace boost::asio;
using namespace boost::asio::ip;
namespace cfx {
using HostInetInfo = tcp::resolver::iterator;
class NetworkUtils {
private:
static HostInetInfo queryHostInetInfo();
static std::string hostIP(unsi... | 19.222222 | 55 | 0.624277 | maxcong001 |
63a6f9c4c4575242e95a808611e4738d63cf8df8 | 4,369 | hpp | C++ | 3rdparty/kdl/src/chainiksolvervel_pinv.hpp | rocos-sia/rocos-app | 83aa8aa31dd303d77693cfc5ad48055d051fa4bc | [
"MIT"
] | 3 | 2021-12-06T15:30:58.000Z | 2022-03-29T13:21:40.000Z | 3rdparty/kdl/src/chainiksolvervel_pinv.hpp | thinkexist1989/rocos-app | 7d6ab256c8212504b0a8bbe1ec1dea0c41ea3ff2 | [
"MIT"
] | null | null | null | 3rdparty/kdl/src/chainiksolvervel_pinv.hpp | thinkexist1989/rocos-app | 7d6ab256c8212504b0a8bbe1ec1dea0c41ea3ff2 | [
"MIT"
] | null | null | null | // Copyright (C) 2007 Ruben Smits <ruben dot smits at mech dot kuleuven dot be>
// Version: 1.0
// Author: Ruben Smits <ruben dot smits at mech dot kuleuven dot be>
// Maintainer: Ruben Smits <ruben dot smits at mech dot kuleuven dot be>
// URL: http://www.orocos.org/kdl
// This library is free software; you can r... | 36.714286 | 145 | 0.65713 | rocos-sia |
63b14fec965b5aaade086f26f0e77d66c8029494 | 43 | cpp | C++ | Software/CPU/myscrypt/build/cmake-3.12.3/Tests/CompileFeatures/cxx_alignof.cpp | duonglvtnaist/Multi-ROMix-Scrypt-Accelerator | 9cb9d96c72c3e912fb7cfd5a786e50e4844a1ee8 | [
"MIT"
] | 107 | 2021-08-28T20:08:42.000Z | 2022-03-22T08:02:16.000Z | Software/CPU/myscrypt/build/cmake-3.12.3/Tests/CompileFeatures/cxx_alignof.cpp | duonglvtnaist/Multi-ROMix-Scrypt-Accelerator | 9cb9d96c72c3e912fb7cfd5a786e50e4844a1ee8 | [
"MIT"
] | 3 | 2021-09-08T02:18:00.000Z | 2022-03-12T00:39:44.000Z | Software/CPU/myscrypt/build/cmake-3.12.3/Tests/CompileFeatures/cxx_alignof.cpp | duonglvtnaist/Multi-ROMix-Scrypt-Accelerator | 9cb9d96c72c3e912fb7cfd5a786e50e4844a1ee8 | [
"MIT"
] | 16 | 2021-08-30T06:57:36.000Z | 2022-03-22T08:05:52.000Z |
int someFunc()
{
return alignof(int);
}
| 7.166667 | 22 | 0.627907 | duonglvtnaist |
63b26a6a25939b81b22037480038dfeb120d4dca | 958 | cpp | C++ | codes/codechef/CHFNSWAP.cpp | smmehrab/problem-solving | 4aeab1673f18d3270ee5fc9b64ed6805eacf4af5 | [
"MIT"
] | null | null | null | codes/codechef/CHFNSWAP.cpp | smmehrab/problem-solving | 4aeab1673f18d3270ee5fc9b64ed6805eacf4af5 | [
"MIT"
] | null | null | null | codes/codechef/CHFNSWAP.cpp | smmehrab/problem-solving | 4aeab1673f18d3270ee5fc9b64ed6805eacf4af5 | [
"MIT"
] | null | null | null | /*
************************************************
username : smmehrab
fullname : s.m.mehrabul islam
email : mehrab.24csedu.001@gmail.com
institute : university of dhaka, bangladesh
session : 2017-2018
************************************************
*/
#include<bits/stdc++.h>
using namespa... | 23.365854 | 96 | 0.466597 | smmehrab |
63b488721f17a78b41de38e15bd8eea91c1bfb97 | 8,188 | cpp | C++ | obs-studio/plugins/win-capture/graphics-hook/d3d11-capture.cpp | noelemahcz/libobspp | 029472b973e5a1985f883242f249848385df83a3 | [
"MIT"
] | null | null | null | obs-studio/plugins/win-capture/graphics-hook/d3d11-capture.cpp | noelemahcz/libobspp | 029472b973e5a1985f883242f249848385df83a3 | [
"MIT"
] | null | null | null | obs-studio/plugins/win-capture/graphics-hook/d3d11-capture.cpp | noelemahcz/libobspp | 029472b973e5a1985f883242f249848385df83a3 | [
"MIT"
] | null | null | null | #include <d3d11.h>
#include <dxgi.h>
#include "dxgi-helpers.hpp"
#include "graphics-hook.h"
struct d3d11_data {
ID3D11Device *device; /* do not release */
ID3D11DeviceContext *context; /* do not release */
uint32_t cx;
uint32_t cy;
DXGI_FORMAT format;
bool using_shtex;
bool multisampled;
ID3D11Textur... | 22.070081 | 79 | 0.703102 | noelemahcz |
63bcab72a452811c8f9d5ea66266c5f66aece519 | 893 | hpp | C++ | libs/core/include/fcppt/math/dim/to_vector.hpp | freundlich/fcppt | 17df1b1ad08bf2435f6902d5465e3bc3fe5e3022 | [
"BSL-1.0"
] | 13 | 2015-02-21T18:35:14.000Z | 2019-12-29T14:08:29.000Z | libs/core/include/fcppt/math/dim/to_vector.hpp | cpreh/fcppt | 17df1b1ad08bf2435f6902d5465e3bc3fe5e3022 | [
"BSL-1.0"
] | 5 | 2016-08-27T07:35:47.000Z | 2019-04-21T10:55:34.000Z | libs/core/include/fcppt/math/dim/to_vector.hpp | freundlich/fcppt | 17df1b1ad08bf2435f6902d5465e3bc3fe5e3022 | [
"BSL-1.0"
] | 8 | 2015-01-10T09:22:37.000Z | 2019-12-01T08:31:12.000Z | // Copyright Carl Philipp Reh 2009 - 2021.
// Distributed under the Boost Software License, Version 1.0.
// (See accompanying file LICENSE_1_0.txt or copy at
// http://www.boost.org/LICENSE_1_0.txt)
#ifndef FCPPT_MATH_DIM_TO_VECTOR_HPP_INCLUDED
#define FCPPT_MATH_DIM_TO_VECTOR_HPP_INCLUDED
#inclu... | 28.806452 | 98 | 0.740202 | freundlich |
63c8f8b1ea31dfda8682020b417bfea4b5e42aca | 2,638 | cpp | C++ | C++/Algorithms/Maths/maxPairwiseProduct.cpp | Rr1901/AlgorithmsAndDataStructure | b5606bbdc2a8e924a111e3757d02b3aeb780e053 | [
"MIT"
] | 195 | 2020-05-09T02:26:13.000Z | 2022-03-30T06:12:07.000Z | C++/Algorithms/Maths/maxPairwiseProduct.cpp | Trombokendu-dev/AlgorithmsAndDataStructure | acdef5145e53f71281e8ae353f90bda98b100063 | [
"MIT"
] | 31 | 2021-06-15T19:00:57.000Z | 2022-02-02T15:51:25.000Z | C++/Algorithms/Maths/maxPairwiseProduct.cpp | Trombokendu-dev/AlgorithmsAndDataStructure | acdef5145e53f71281e8ae353f90bda98b100063 | [
"MIT"
] | 64 | 2020-05-09T02:26:15.000Z | 2022-02-23T16:02:01.000Z | /*
Find the maximum product of two distinct numbers in a sequence of non-negative integers
Input: A sequence of non-negative integers
Output: The maximum value that can be obtained by multiplying two different elements from the sequence.
Input format. The first line contains an integer n. The next line ... | 29.640449 | 140 | 0.583776 | Rr1901 |
63cf3bf684848e9ef41e5a46ec1c43a8ee729d1f | 1,067 | cpp | C++ | examples/google-code-jam/bcurcio/probb.cpp | rbenic-fer/progauthfp | d0fd96c31ab0aab1a9acdcb7c75f2b430f51c675 | [
"MIT"
] | null | null | null | examples/google-code-jam/bcurcio/probb.cpp | rbenic-fer/progauthfp | d0fd96c31ab0aab1a9acdcb7c75f2b430f51c675 | [
"MIT"
] | null | null | null | examples/google-code-jam/bcurcio/probb.cpp | rbenic-fer/progauthfp | d0fd96c31ab0aab1a9acdcb7c75f2b430f51c675 | [
"MIT"
] | null | null | null | #include <iostream>
#include <cstdio>
#include <cstring>
#include <algorithm>
#include <string>
#include <set>
#include <queue>
using namespace std;
typedef pair<int,int> pii;
typedef pair<int,pii> piii;
int in(){int r=0,c;for(c=getchar_unlocked();c<=32;c=getchar_unlocked());if(c=='-') return -in();for(;c>32;r=(r<<1)+... | 17.209677 | 160 | 0.501406 | rbenic-fer |
63d153a81a58c9e01d489f5923532357ee31c912 | 971 | cpp | C++ | week3/session2/class_template.cpp | horbosis556/CPP20-IntroductoryAssignments | efc8a3b88def3ce4847bcdf0d6f1f8009748caee | [
"MIT"
] | null | null | null | week3/session2/class_template.cpp | horbosis556/CPP20-IntroductoryAssignments | efc8a3b88def3ce4847bcdf0d6f1f8009748caee | [
"MIT"
] | null | null | null | week3/session2/class_template.cpp | horbosis556/CPP20-IntroductoryAssignments | efc8a3b88def3ce4847bcdf0d6f1f8009748caee | [
"MIT"
] | null | null | null | #include <iostream>
#include <string>
using namespace std;
template <class T>
class Larger {
private:
T first;
T second;
public:
T getFirst();
T getSecond();
void setFirst(T f);
void setSecond(T s);
T isLarger();
};
// your code here
template <class T>
T Larger<T>::get... | 15.171875 | 82 | 0.544799 | horbosis556 |
63d5631199b5c65322cea52ebaacbe5b0516e60c | 390 | cpp | C++ | codeforces/672/b.cpp | AadityaJ/Spoj | 61664c1925ef5bb072a3fe78fb3dac4fb68d77a1 | [
"MIT"
] | null | null | null | codeforces/672/b.cpp | AadityaJ/Spoj | 61664c1925ef5bb072a3fe78fb3dac4fb68d77a1 | [
"MIT"
] | null | null | null | codeforces/672/b.cpp | AadityaJ/Spoj | 61664c1925ef5bb072a3fe78fb3dac4fb68d77a1 | [
"MIT"
] | null | null | null | #include <iostream>
#include <string>
#include <vector>
#include <algorithm>
using namespace std;
int main(int argc, char const *argv[]) {
bool arr[26]={0};
string str;
int n;
cin>>n;
cin>>str;
int unique=0;
for(int i=0;i<str.length();i++){
if(arr[str[i]-'a']==0) unique++;
arr[str[i]-'a']=1;
}
int x=str.si... | 17.727273 | 40 | 0.602564 | AadityaJ |
63d73d707c892a7a78e1ae8a3653607485645493 | 4,508 | cpp | C++ | testcoasync4cpp/src/test_taskify.cpp | helgebetzinger/coasync4cpp | a1075948b742852771c5ac8fc893efa42bd87cd8 | [
"MIT"
] | 24 | 2015-01-25T13:12:06.000Z | 2020-05-23T14:12:43.000Z | testcoasync4cpp/src/test_taskify.cpp | helgebetzinger/coasync4cpp | a1075948b742852771c5ac8fc893efa42bd87cd8 | [
"MIT"
] | null | null | null | testcoasync4cpp/src/test_taskify.cpp | helgebetzinger/coasync4cpp | a1075948b742852771c5ac8fc893efa42bd87cd8 | [
"MIT"
] | 2 | 2016-08-11T09:20:34.000Z | 2020-04-14T03:03:40.000Z |
#include "stdafx.h"
#include "bind2thread.h"
#include "taskify.h"
class test_taskify : public ::testing::Test {
protected:
test_taskify() {
}
virtual void SetUp() {
thread.reset(new ThreadWithTasks());
}
virtual void TearDown() {
tearDown();
}
void awaitTasksDone() {
thread->sync().get();
}
void tea... | 22.427861 | 145 | 0.696318 | helgebetzinger |
63d851a4d0292d12a9852cabbb65d9daa1052345 | 10,877 | cpp | C++ | qt4/immodule/candidatewindow.cpp | NgoHuy/uim | aac432dc5d698cde6bade0b2fda70c036ba4879a | [
"BSD-3-Clause"
] | 1 | 2015-10-25T05:58:57.000Z | 2015-10-25T05:58:57.000Z | qt4/immodule/candidatewindow.cpp | NgoHuy/uim | aac432dc5d698cde6bade0b2fda70c036ba4879a | [
"BSD-3-Clause"
] | null | null | null | qt4/immodule/candidatewindow.cpp | NgoHuy/uim | aac432dc5d698cde6bade0b2fda70c036ba4879a | [
"BSD-3-Clause"
] | null | null | null | /*
Copyright (c) 2003-2013 uim Project http://code.google.com/p/uim/
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... | 31.991176 | 82 | 0.638136 | NgoHuy |
63d8d13350cc5dcd1163255a116ecfefb6f3d232 | 2,389 | hpp | C++ | source/FAST/Visualization/TriangleRenderer/TriangleRenderer.hpp | andreped/FAST | 361819190ea0ae5a2f068e7bd808a1c70af5a171 | [
"BSD-2-Clause"
] | null | null | null | source/FAST/Visualization/TriangleRenderer/TriangleRenderer.hpp | andreped/FAST | 361819190ea0ae5a2f068e7bd808a1c70af5a171 | [
"BSD-2-Clause"
] | null | null | null | source/FAST/Visualization/TriangleRenderer/TriangleRenderer.hpp | andreped/FAST | 361819190ea0ae5a2f068e7bd808a1c70af5a171 | [
"BSD-2-Clause"
] | null | null | null | #pragma once
#include "FAST/Data/Mesh.hpp"
#include "FAST/Data/Color.hpp"
#include "FAST/Visualization/Renderer.hpp"
namespace fast {
/**
* @brief Renders triangle Mesh data
*
* @ingroup renderers
*/
class FAST_EXPORT TriangleRenderer : public Renderer {
FAST_PROCESS_OBJECT(TriangleRenderer)
public:
... | 34.128571 | 117 | 0.628296 | andreped |
63dcc4615f116e8340a56350d7e50703e480b12f | 527 | cpp | C++ | Bootcamp/Practice/bubbleSort.cpp | sgpritam/DSAlgo | 3e0e6b19d4f8978b2fc3be48195705a285dbdce8 | [
"MIT"
] | 1 | 2020-03-06T21:05:14.000Z | 2020-03-06T21:05:14.000Z | Bootcamp/Session7/bubbleSort.cpp | sgpritam/DSAlgo | 3e0e6b19d4f8978b2fc3be48195705a285dbdce8 | [
"MIT"
] | 2 | 2020-03-09T05:08:14.000Z | 2020-03-09T05:14:09.000Z | Bootcamp/Session7/bubbleSort.cpp | sgpritam/DSAlgo | 3e0e6b19d4f8978b2fc3be48195705a285dbdce8 | [
"MIT"
] | null | null | null | #include<bits/stdc++.h>
using namespace std;
void bubbleSort(int a[],int n){
// Base case
if(n==1){
return;
}
for(int j=0;j<=n-2;j++){
if(a[j]>a[j+1]){
swap(a[j],a[j+1]);
}
}
bubbleSort(a,n-1);
}
int main(){
i... | 15.057143 | 34 | 0.345351 | sgpritam |
63de33f64626b5f62587e6aa54d8589f4fa72c85 | 735 | cpp | C++ | Before Summer 2017/SummerTrain Archieve/Amusing_num.cpp | mohamedGamalAbuGalala/Practice | 2a5fa3bdaf995d0c304f04231e1a69e6960f72c8 | [
"MIT"
] | 1 | 2019-12-19T06:51:20.000Z | 2019-12-19T06:51:20.000Z | Before Summer 2017/SummerTrain Archieve/Amusing_num.cpp | mohamedGamalAbuGalala/Practice | 2a5fa3bdaf995d0c304f04231e1a69e6960f72c8 | [
"MIT"
] | null | null | null | Before Summer 2017/SummerTrain Archieve/Amusing_num.cpp | mohamedGamalAbuGalala/Practice | 2a5fa3bdaf995d0c304f04231e1a69e6960f72c8 | [
"MIT"
] | null | null | null | #include "stdafx.h"
// Amusing_num.cpp : Defines the entry point for the console application.
//by :: bu galala
#include <iostream>
#include <algorithm>
#include <string>
using namespace std;
int n, inp[1000], dignum;
string res[1000], cur = "";
int main() {
cin >> n;
for (int i = 0; i < n && cin >> inp[i]; i++);... | 18.846154 | 73 | 0.517007 | mohamedGamalAbuGalala |
63e04841316739392e8bf6d8c0df6a340d9803db | 111,157 | cpp | C++ | GameServer/MuunSystem.cpp | millerp/IGC.GameServer | 0f67ec22d747a84d5934493939cada88a4e067db | [
"MIT"
] | 2 | 2017-03-09T09:42:59.000Z | 2020-11-18T07:58:58.000Z | GameServer/MuunSystem.cpp | millerp/IGC.GameServer | 0f67ec22d747a84d5934493939cada88a4e067db | [
"MIT"
] | 8 | 2017-03-08T13:26:53.000Z | 2017-03-09T13:37:43.000Z | GameServer/MuunSystem.cpp | millerp/IGC.GameServer | 0f67ec22d747a84d5934493939cada88a4e067db | [
"MIT"
] | 5 | 2017-11-21T13:22:52.000Z | 2022-02-17T07:41:34.000Z | #include "StdAfx.h"
#include "protocol.h"
#include "TLog.h"
#include "DSProtocol.h"
#include "GameMain.h"
#include "ItemSocketOptionSystem.h"
#include "PentagramSystem.h"
#include "winutil.h"
#include "NewPVP.h"
#include "ObjCalCharacter.h"
#include "MuunSystem.h"
#include "configread.h"
#include "gObjMonster.h"
#inclu... | 37.924599 | 233 | 0.59138 | millerp |
63e2bf869d290c99bead137280fe0d613809a6c7 | 15,512 | cpp | C++ | src/cmsnews.cpp | NuLL3rr0r/samsungdforum-ir | f293631bbb7b96f854e7b89b286251d56ea70690 | [
"MIT",
"Unlicense"
] | null | null | null | src/cmsnews.cpp | NuLL3rr0r/samsungdforum-ir | f293631bbb7b96f854e7b89b286251d56ea70690 | [
"MIT",
"Unlicense"
] | null | null | null | src/cmsnews.cpp | NuLL3rr0r/samsungdforum-ir | f293631bbb7b96f854e7b89b286251d56ea70690 | [
"MIT",
"Unlicense"
] | null | null | null | /**********************************
* = Header File Inclusion =
**********************************/
#include <boost/algorithm/string.hpp>
#include <boost/lexical_cast.hpp>
#include <boost/format.hpp>
#include <Wt/WApplication>
#include <Wt/WContainerWidget>
#include <Wt/WDialog>
#include <Wt/WGridLayout>
#include <... | 32.725738 | 116 | 0.60985 | NuLL3rr0r |
63e3d7893ec12ec79418597a0ba5be7211de5f48 | 5,786 | cpp | C++ | test/matrix.cpp | Mooxmirror/tmath | aef1a6ce5a121987c3d943e0de9ec4a8aafe5054 | [
"MIT"
] | 8 | 2016-03-29T04:37:57.000Z | 2020-10-29T16:53:48.000Z | test/matrix.cpp | lnsp/tmath | aef1a6ce5a121987c3d943e0de9ec4a8aafe5054 | [
"MIT"
] | 23 | 2016-04-06T14:50:04.000Z | 2018-07-10T22:51:33.000Z | test/matrix.cpp | Mooxmirror/tmath | aef1a6ce5a121987c3d943e0de9ec4a8aafe5054 | [
"MIT"
] | 1 | 2019-09-04T23:28:20.000Z | 2019-09-04T23:28:20.000Z | /*
This test checks the matrix functionality.
*/
#include "tmath.hpp"
#include "tmath_test.hpp"
int main(int argc, char const *argv[]) {
using TMathTest::assert;
using TMathTest::assertTrue;
using TMathTest::assertError;
using TMath::DOUBLE;
using TMath::Matrix;
using TMath::Vector;
Matrix nullMatrix1(1, 1);
... | 49.452991 | 135 | 0.642067 | Mooxmirror |
63e6b1608812a875408b5b3947f93ad1c8472bec | 2,076 | hpp | C++ | include/Global/global.hpp | Lucrecious/DungeonGame | 9e427c4eba18cdc0aa93a6e28e505a8ecb1357e5 | [
"MIT"
] | null | null | null | include/Global/global.hpp | Lucrecious/DungeonGame | 9e427c4eba18cdc0aa93a6e28e505a8ecb1357e5 | [
"MIT"
] | null | null | null | include/Global/global.hpp | Lucrecious/DungeonGame | 9e427c4eba18cdc0aa93a6e28e505a8ecb1357e5 | [
"MIT"
] | null | null | null | #ifndef GLOBALS_H
#define GLOBALS_H
#include <stdlib.h>
#include <vector>
#include <Global/kind.hpp>
#include <Global/information.hpp>
class Game;
class Player;
class Global {
public:
const static int levelHeight = 25;
const static int levelWidth = 79;
const static int maxChambers = 5;
const static int maxPotion... | 28.054054 | 76 | 0.72736 | Lucrecious |
63e70acd51eafd2e430847f7c35b5533faafd81d | 6,003 | cpp | C++ | Raven.CppClient.Tests/BoundingBoxIndexTest.cpp | mlawsonca/ravendb-cpp-client | c3a3d4960c8b810156547f62fa7aeb14a121bf74 | [
"MIT"
] | 3 | 2019-04-24T02:34:53.000Z | 2019-08-01T08:22:26.000Z | Raven.CppClient.Tests/BoundingBoxIndexTest.cpp | mlawsonca/ravendb-cpp-client | c3a3d4960c8b810156547f62fa7aeb14a121bf74 | [
"MIT"
] | 2 | 2019-03-21T09:00:02.000Z | 2021-02-28T23:49:26.000Z | Raven.CppClient.Tests/BoundingBoxIndexTest.cpp | mlawsonca/ravendb-cpp-client | c3a3d4960c8b810156547f62fa7aeb14a121bf74 | [
"MIT"
] | 3 | 2019-03-04T11:58:54.000Z | 2021-03-01T00:25:49.000Z | #include "pch.h"
#include "RavenTestDriver.h"
#include "raven_test_definitions.h"
#include "DocumentSession.h"
#include "EntityIdHelperUtil.h"
#include "AbstractIndexCreationTask.h"
namespace bounding_box_index_test
{
struct SpatialDoc
{
std::string id{};
std::string shape{};
};
void from_json(const nlohmann:... | 29.282927 | 109 | 0.707313 | mlawsonca |
63eb90e7e9eed6f79d78b493152dad272c67fdc9 | 7,330 | hpp | C++ | lab_control_center/src/commonroad_classes/TrafficSign.hpp | Durrrr95/cpm_lab | e2e6f4ace4ebc01e8ddd87e2f4acf13e6ffdcc67 | [
"MIT"
] | 9 | 2020-06-24T11:22:15.000Z | 2022-01-13T14:14:13.000Z | lab_control_center/src/commonroad_classes/TrafficSign.hpp | Durrrr95/cpm_lab | e2e6f4ace4ebc01e8ddd87e2f4acf13e6ffdcc67 | [
"MIT"
] | 1 | 2021-05-10T13:48:04.000Z | 2021-05-10T13:48:04.000Z | lab_control_center/src/commonroad_classes/TrafficSign.hpp | Durrrr95/cpm_lab | e2e6f4ace4ebc01e8ddd87e2f4acf13e6ffdcc67 | [
"MIT"
] | 2 | 2021-11-08T11:59:29.000Z | 2022-03-15T13:50:54.000Z | #pragma once
#include <libxml++-2.6/libxml++/libxml++.h>
#include <algorithm>
#include <functional>
#include <iterator>
#include <string>
#include <vector>
#include <optional>
//Optional is used for 3 reasons:
//1. Some values are optional according to the specification
//2. Some values might be missing if the file ... | 55.112782 | 237 | 0.751023 | Durrrr95 |
63ee3efdeba152e2bad0aff3ae06fac0773d8d19 | 2,107 | cpp | C++ | test/DoubleLinkedListTest.cpp | FeniksFire/aisd | 7e77a91b679ae129d16a4afeadb6fea09bf59af6 | [
"MIT"
] | null | null | null | test/DoubleLinkedListTest.cpp | FeniksFire/aisd | 7e77a91b679ae129d16a4afeadb6fea09bf59af6 | [
"MIT"
] | null | null | null | test/DoubleLinkedListTest.cpp | FeniksFire/aisd | 7e77a91b679ae129d16a4afeadb6fea09bf59af6 | [
"MIT"
] | null | null | null | #include "StdInc.h"
#include "DoubleLinkedList.h"
class DoubleLinkedListTest : public testing::Test
{
public:
DoubleLinkedList<int> list;
};
TEST_F(DoubleLinkedListTest, isFrontAndBackEqual)
{
list.insert(0, -3);
EXPECT_EQ(list.back()->getValue(), -3);
EXPECT_EQ(list.front()->getValue(), -3);
list.insert(3, 6);... | 20.259615 | 51 | 0.665401 | FeniksFire |
63ef71b74e29f52a8563a28b9fab5cd0df3f83b2 | 180 | hpp | C++ | src/object/scene/user.hpp | degarashi/revenant | 9e671320a5c8790f6bdd1b14934f81c37819f7b3 | [
"MIT"
] | null | null | null | src/object/scene/user.hpp | degarashi/revenant | 9e671320a5c8790f6bdd1b14934f81c37819f7b3 | [
"MIT"
] | null | null | null | src/object/scene/user.hpp | degarashi/revenant | 9e671320a5c8790f6bdd1b14934f81c37819f7b3 | [
"MIT"
] | null | null | null | #pragma once
#include "scene.hpp"
namespace rev {
class U_Scene : public Scene<U_Scene> {
private:
struct St_None;
public:
U_Scene();
};
}
DEF_LUAIMPORT(rev::U_Scene)
| 13.846154 | 40 | 0.683333 | degarashi |
63f1c3faba5c50a46c7d60322a34de57e24dbe25 | 3,506 | cpp | C++ | experiments/inc/inc.cpp | enjalot/adventures_in_opencl | c222d15c076ee3f5f81b529eb47e87c8d8057096 | [
"MIT"
] | 152 | 2015-01-04T00:58:08.000Z | 2022-02-02T00:11:58.000Z | experiments/inc/inc.cpp | ahmadm-atallah/adventures_in_opencl | c222d15c076ee3f5f81b529eb47e87c8d8057096 | [
"MIT"
] | 1 | 2017-09-21T13:36:15.000Z | 2017-09-21T13:36:15.000Z | experiments/inc/inc.cpp | ahmadm-atallah/adventures_in_opencl | c222d15c076ee3f5f81b529eb47e87c8d8057096 | [
"MIT"
] | 71 | 2015-02-11T17:12:09.000Z | 2021-12-06T14:05:28.000Z | #include <stdio.h>
#include "cll.h"
#include "util.h"
void CL::popCorn()
{
printf("in popCorn\n");
std::string a_path(CL_SOURCE_DIR);
a_path += "/a.cl";
std::string b_path(CL_SOURCE_DIR);
b_path += "/b.cl";
a_program = loadProgram(a_path);
b_program = loadProgram(b_path);
//i... | 31.585586 | 110 | 0.634912 | enjalot |
63f1f8438a3507d6cd9f35b45cc417fdd08d7952 | 4,164 | cpp | C++ | gpio.cpp | inspur-bmc/inspur-uuid | 703633f2e81ba4d59eef74910c019e91d2bac63c | [
"Apache-2.0"
] | 2 | 2019-02-20T06:19:15.000Z | 2021-09-15T08:24:09.000Z | gpio.cpp | inspur-bmc/inspur-uuid | 703633f2e81ba4d59eef74910c019e91d2bac63c | [
"Apache-2.0"
] | null | null | null | gpio.cpp | inspur-bmc/inspur-uuid | 703633f2e81ba4d59eef74910c019e91d2bac63c | [
"Apache-2.0"
] | 1 | 2020-06-05T07:40:34.000Z | 2020-06-05T07:40:34.000Z | #include "gpio.hpp"
#include "utility.hpp"
#include <iostream>
#include <thread>
namespace inspur
{
namespace identify
{
static constexpr auto consumer_label = "inspur-identify-led";
static constexpr auto PULS_TIME_MS = 100;
static constexpr auto BLINK_TIME_MS = 500;
GpioIdentify::GpioIdentify(EventPtr& event) : e... | 25.084337 | 80 | 0.618396 | inspur-bmc |
63faa1d1a9302a340165d0e7d7705fb1581d5aea | 1,673 | cpp | C++ | Core/Archive.cpp | newpolaris/Deferred | 8db64c64599345032001786fb2c8d3727a1e4194 | [
"MIT"
] | null | null | null | Core/Archive.cpp | newpolaris/Deferred | 8db64c64599345032001786fb2c8d3727a1e4194 | [
"MIT"
] | 1 | 2017-06-29T12:45:12.000Z | 2017-06-29T12:46:02.000Z | Core/Archive.cpp | newpolaris/Deferred | 8db64c64599345032001786fb2c8d3727a1e4194 | [
"MIT"
] | null | null | null | #include "pch.h"
#include "Archive.h"
#include "FileUtility.h"
#include <mutex>
#include <sstream>
using namespace Utility;
namespace Utility
{
bool isZip( fs::path path )
{
std::ifstream inputFile;
bool bZip = false;
inputFile.open( path.generic_wstring(), std::ios::binary );
if (!inputFile.is_open())
... | 22.608108 | 109 | 0.690377 | newpolaris |
63faa20ad82f51bce9760861ffa56ba9c192ce22 | 3,532 | cpp | C++ | day-12.cpp | MarioLiebisch/Advent-of-Code-2020 | da8b2e8e86fa473818a690df2219d4f9c7abd9b6 | [
"MIT"
] | null | null | null | day-12.cpp | MarioLiebisch/Advent-of-Code-2020 | da8b2e8e86fa473818a690df2219d4f9c7abd9b6 | [
"MIT"
] | null | null | null | day-12.cpp | MarioLiebisch/Advent-of-Code-2020 | da8b2e8e86fa473818a690df2219d4f9c7abd9b6 | [
"MIT"
] | null | null | null | #include <iostream>
#include <vector>
#include <algorithm>
#include <unordered_map>
#include "utility.h"
auto day12part1(const std::vector<aoc::NavInstruction>& instructions) -> std::size_t {
aoc::Position ship;
for (const auto& i : instructions) {
switch (i.type) {
case 'N':
ship.... | 33.320755 | 204 | 0.512458 | MarioLiebisch |
63fe4ed1239694add9ad46ab2488a68512b20701 | 1,200 | cpp | C++ | Sqrt.cpp | hgfeaon/leetcode | 1e2a562bd8341fc57a02ecff042379989f3361ea | [
"BSD-3-Clause"
] | null | null | null | Sqrt.cpp | hgfeaon/leetcode | 1e2a562bd8341fc57a02ecff042379989f3361ea | [
"BSD-3-Clause"
] | null | null | null | Sqrt.cpp | hgfeaon/leetcode | 1e2a562bd8341fc57a02ecff042379989f3361ea | [
"BSD-3-Clause"
] | null | null | null | #include <iostream>
#include <cstdlib>
using namespace std;
class Solution {
public:
int _sqrt(int x) {
int i = 0;
int m = 0;
while (i <= x) {
m = i * i;
if (m == x) {
break;
} else if (m > x) {
i--;
break;... | 19.047619 | 38 | 0.306667 | hgfeaon |
120134ae36d558e831b35dce1b078bb48bfde27f | 1,895 | hpp | C++ | include/boost/mysql/impl/error.hpp | madmongo1/mysql-asio | 26c57e92ddeebfee22e08e5ea05e7bb51248eba5 | [
"BSL-1.0"
] | 1 | 2020-03-31T11:48:12.000Z | 2020-03-31T11:48:12.000Z | include/boost/mysql/impl/error.hpp | madmongo1/mysql-asio | 26c57e92ddeebfee22e08e5ea05e7bb51248eba5 | [
"BSL-1.0"
] | null | null | null | include/boost/mysql/impl/error.hpp | madmongo1/mysql-asio | 26c57e92ddeebfee22e08e5ea05e7bb51248eba5 | [
"BSL-1.0"
] | null | null | null | #ifndef MYSQL_ASIO_IMPL_ERROR_HPP
#define MYSQL_ASIO_IMPL_ERROR_HPP
#include <boost/system/error_code.hpp>
#include <boost/system/system_error.hpp>
namespace boost {
namespace system {
template <>
struct is_error_code_enum<mysql::errc>
{
static constexpr bool value = true;
};
} // system
namespace mysql {
namespa... | 27.071429 | 122 | 0.768338 | madmongo1 |
1205ae6f0218d25459acbeb36ba606b4780dea25 | 19,010 | cc | C++ | dylocxx/src/topology.cc | fuchsto/dyloc | 87a5a203406d09b0fb446a4bb3237ce34100651a | [
"BSD-3-Clause"
] | 4 | 2017-05-16T11:50:05.000Z | 2020-08-12T16:47:28.000Z | dylocxx/src/topology.cc | fuchsto/dyloc | 87a5a203406d09b0fb446a4bb3237ce34100651a | [
"BSD-3-Clause"
] | null | null | null | dylocxx/src/topology.cc | fuchsto/dyloc | 87a5a203406d09b0fb446a4bb3237ce34100651a | [
"BSD-3-Clause"
] | 3 | 2017-04-27T02:01:44.000Z | 2018-11-27T11:21:57.000Z |
#include <dylocxx/topology.h>
#include <dylocxx/utility.h>
#include <dylocxx/hwinfo.h>
#include <dylocxx/internal/logging.h>
#include <dylocxx/internal/assert.h>
#include <boost/graph/connected_components.hpp>
#include <boost/graph/edge_list.hpp>
#include <boost/graph/adjacency_list.hpp>
#include <boost/graph/vector... | 33.646018 | 78 | 0.633877 | fuchsto |
120f2c3dfd11cb6196f3bf76e1458ee7d078f6ab | 10,370 | cpp | C++ | soundlib/Load_mus_km.cpp | sitomani/openmpt | 913396209c22a1fc6dfb29f0e34893dfb0ffa591 | [
"BSD-3-Clause"
] | null | null | null | soundlib/Load_mus_km.cpp | sitomani/openmpt | 913396209c22a1fc6dfb29f0e34893dfb0ffa591 | [
"BSD-3-Clause"
] | null | null | null | soundlib/Load_mus_km.cpp | sitomani/openmpt | 913396209c22a1fc6dfb29f0e34893dfb0ffa591 | [
"BSD-3-Clause"
] | null | null | null | /*
* Load_mus_km.cpp
* ---------------
* Purpose: Karl Morton Music Format module loader
* Notes : This is probably not the official name of this format.
* Karl Morton's engine has been used in Psycho Pinball and Micro Machines 2 and also Back To Baghdad
* but the latter game only uses its soun... | 26.795866 | 129 | 0.687464 | sitomani |
1210a93b447abbd4031c6035842d95a7a6b718d8 | 3,851 | hpp | C++ | include/fl/distribution/joint_distribution_id.hpp | aeolusbot-tommyliu/fl | a50d0c9620a8f86e0cd14a5e22ee0f022d00bd02 | [
"MIT"
] | 17 | 2015-07-03T06:53:05.000Z | 2021-05-15T20:55:12.000Z | include/fl/distribution/joint_distribution_id.hpp | aeolusbot-tommyliu/fl | a50d0c9620a8f86e0cd14a5e22ee0f022d00bd02 | [
"MIT"
] | 3 | 2015-02-20T12:48:17.000Z | 2019-12-18T08:45:13.000Z | include/fl/distribution/joint_distribution_id.hpp | aeolusbot-tommyliu/fl | a50d0c9620a8f86e0cd14a5e22ee0f022d00bd02 | [
"MIT"
] | 15 | 2015-02-20T11:34:14.000Z | 2021-05-15T20:55:13.000Z | /*
* This is part of the fl library, a C++ Bayesian filtering library
* (https://github.com/filtering-library)
*
* Copyright (c) 2015 Max Planck Society,
* Autonomous Motion Department,
* Institute for Intelligent Systems
*
* This Source Code Form is subject to the terms of the MIT License (MIT).
... | 24.528662 | 85 | 0.637237 | aeolusbot-tommyliu |
121249c4ef8cc194d5faeb2f4e84d84a1bd71695 | 1,513 | hpp | C++ | Sources/Sentry/include/SentryThreadMetadataCache.hpp | mrtnrst/sentry-cocoa | b8724668c3df2a41600d80b7bbde930f70c20f4a | [
"MIT"
] | null | null | null | Sources/Sentry/include/SentryThreadMetadataCache.hpp | mrtnrst/sentry-cocoa | b8724668c3df2a41600d80b7bbde930f70c20f4a | [
"MIT"
] | null | null | null | Sources/Sentry/include/SentryThreadMetadataCache.hpp | mrtnrst/sentry-cocoa | b8724668c3df2a41600d80b7bbde930f70c20f4a | [
"MIT"
] | null | null | null | #pragma once
#include "SentryProfilingConditionals.h"
#if SENTRY_TARGET_PROFILING_SUPPORTED
# include "SentryThreadHandle.hpp"
# include <memory>
# include <string>
namespace sentry {
namespace profiling {
struct ThreadMetadata {
thread::TIDType threadID;
std::string name;
int ... | 28.54717 | 99 | 0.663582 | mrtnrst |
1214dd82a59c04b979f821f48c34c4c4fef13b65 | 2,713 | cpp | C++ | src/proto/unit_test/trim_test.cpp | jonesholger/lbann | 3214f189a1438565d695542e076c4fa8e7332d34 | [
"Apache-2.0"
] | 194 | 2016-07-19T15:40:21.000Z | 2022-03-19T08:06:10.000Z | src/proto/unit_test/trim_test.cpp | jonesholger/lbann | 3214f189a1438565d695542e076c4fa8e7332d34 | [
"Apache-2.0"
] | 1,021 | 2016-07-19T12:56:31.000Z | 2022-03-29T00:41:47.000Z | src/proto/unit_test/trim_test.cpp | jonesholger/lbann | 3214f189a1438565d695542e076c4fa8e7332d34 | [
"Apache-2.0"
] | 74 | 2016-07-28T18:24:00.000Z | 2022-01-24T19:41:04.000Z | #include <catch2/catch.hpp>
#include <lbann/proto/proto_common.hpp>
#include <string>
TEST_CASE("Testing string trimming", "[proto][utilities]")
{
SECTION("Leading spaces")
{
CHECK(lbann::trim(" my string") == "my string");
CHECK(lbann::trim("\nmy string") == "my string");
CHECK(lbann::trim("\tmy str... | 36.173333 | 61 | 0.552156 | jonesholger |
121816faca874aade296c850755296d763619378 | 651 | cpp | C++ | src/GateNetworks.Parser/network/connection_parser.cpp | jurajtrappl/Gate-networks | 84c15684124a99bc16cf8ca20d1d39fc7c31b5b1 | [
"MIT"
] | null | null | null | src/GateNetworks.Parser/network/connection_parser.cpp | jurajtrappl/Gate-networks | 84c15684124a99bc16cf8ca20d1d39fc7c31b5b1 | [
"MIT"
] | null | null | null | src/GateNetworks.Parser/network/connection_parser.cpp | jurajtrappl/Gate-networks | 84c15684124a99bc16cf8ca20d1d39fc7c31b5b1 | [
"MIT"
] | null | null | null | #include "connection_parser.h"
#include "connection_definitions.h"
#include "../input_file_exceptions.h"
using namespace std;
namespace gate_networks::parser::network
{
void ConnectionParser::configure_strategy(const ArrowTokens& tokens)
{
strategy_->configure(tokens, current_line_number_);
}
void ConnectionPa... | 21.7 | 92 | 0.752688 | jurajtrappl |
12198d3531031bd482aeea6172fcc114735cc67d | 10,483 | cpp | C++ | src/render/debug/DebugRenderer.cpp | ErnestasJa/TheEngine2 | a16778e18b844c2044cf3bab31f661c1fb3da840 | [
"MIT"
] | 2 | 2015-12-16T22:02:53.000Z | 2018-04-10T14:43:26.000Z | src/render/debug/DebugRenderer.cpp | ErnestasJa/TheEngine2 | a16778e18b844c2044cf3bab31f661c1fb3da840 | [
"MIT"
] | 48 | 2015-12-20T14:23:49.000Z | 2016-07-18T12:15:37.000Z | src/render/debug/DebugRenderer.cpp | ErnestasJa/TheEngine2 | a16778e18b844c2044cf3bab31f661c1fb3da840 | [
"MIT"
] | 1 | 2015-12-20T14:30:26.000Z | 2015-12-20T14:30:26.000Z | #include "render/debug/DebugRenderer.h"
#include <render/BaseMaterial.h>
#include <render/BaseMesh.h>
#include <render/ICamera.h>
#include <render/IGpuBufferArrayObject.h>
#include <render/IGpuBufferObject.h>
#include <render/IRenderContext.h>
#include <render/IRenderer.h>
#include <resource_management/ResourceManageme... | 32.759375 | 125 | 0.66708 | ErnestasJa |
121a96388df6079465965fd1b2caad9b8459c814 | 7,980 | cpp | C++ | test/framework/tCommandLineArgs.cpp | xiaohongchen1991/clang-xform | bd0cf899760b53b24e10ca4baab3c4e281535b97 | [
"MIT"
] | 2 | 2020-02-18T18:09:45.000Z | 2020-05-10T18:38:38.000Z | test/framework/tCommandLineArgs.cpp | xiaohongchen1991/clang-xform | bd0cf899760b53b24e10ca4baab3c4e281535b97 | [
"MIT"
] | null | null | null | test/framework/tCommandLineArgs.cpp | xiaohongchen1991/clang-xform | bd0cf899760b53b24e10ca4baab3c4e281535b97 | [
"MIT"
] | 1 | 2020-02-18T18:09:48.000Z | 2020-02-18T18:09:48.000Z | /*
MIT License
Copyright (c) 2019 Xiaohong Chen
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merg... | 43.135135 | 96 | 0.709148 | xiaohongchen1991 |
121ede548c2fe7492bdbc2a87c62067dcd8fc9af | 7,371 | cpp | C++ | test/test_mlr.cpp | angeloskath/supervised-lda | fe3a39bb0d6c7d0c2a33f069440869ad70774da8 | [
"MIT"
] | 22 | 2017-05-25T11:59:02.000Z | 2021-08-30T08:51:41.000Z | test/test_mlr.cpp | angeloskath/supervised-lda | fe3a39bb0d6c7d0c2a33f069440869ad70774da8 | [
"MIT"
] | 22 | 2016-06-30T15:51:18.000Z | 2021-12-06T10:43:16.000Z | test/test_mlr.cpp | angeloskath/supervised-lda | fe3a39bb0d6c7d0c2a33f069440869ad70774da8 | [
"MIT"
] | 4 | 2017-09-28T14:58:01.000Z | 2020-12-21T14:22:38.000Z | #include <iostream>
#include <cmath>
#include <stdlib.h>
#include <Eigen/Core>
#include <gtest/gtest.h>
#include "test/utils.hpp"
#include "ldaplusplus/optimization/MultinomialLogisticRegression.hpp"
#include "ldaplusplus/optimization/GradientDescent.hpp"
using namespace Eigen;
using namespace ldaplusplus::optimiza... | 40.059783 | 108 | 0.559761 | angeloskath |
12215e92ec6ed2e86b4ec2ff910aef7c18afa9d6 | 5,414 | cpp | C++ | telnetpp/src/options/new_environ/detail/response_parser.cpp | CalielOfSeptem/septem | fe7a615eb6c279d3746ee78de8864b5e07bf7e3e | [
"MIT"
] | 1 | 2017-03-30T14:31:33.000Z | 2017-03-30T14:31:33.000Z | telnetpp/src/options/new_environ/detail/response_parser.cpp | HoraceWeebler/septem | fe7a615eb6c279d3746ee78de8864b5e07bf7e3e | [
"MIT"
] | null | null | null | telnetpp/src/options/new_environ/detail/response_parser.cpp | HoraceWeebler/septem | fe7a615eb6c279d3746ee78de8864b5e07bf7e3e | [
"MIT"
] | null | null | null | #include "telnetpp/options/new_environ/detail/response_parser.hpp"
#include "telnetpp/options/new_environ/detail/protocol.hpp"
namespace telnetpp { namespace options { namespace new_environ {
namespace detail {
namespace {
enum class parse_state
{
is_or_info,
type,
name,
name_esc,
value,
... | 25.064815 | 77 | 0.447728 | CalielOfSeptem |
122982be704273bd3bce1d02296fba328b354a39 | 22,225 | cpp | C++ | monsters/monster.cpp | Snekoff/Another_DnD_simulator | 8006f0585b25dbbb446ca3962f6938bc402d4831 | [
"MIT"
] | null | null | null | monsters/monster.cpp | Snekoff/Another_DnD_simulator | 8006f0585b25dbbb446ca3962f6938bc402d4831 | [
"MIT"
] | null | null | null | monsters/monster.cpp | Snekoff/Another_DnD_simulator | 8006f0585b25dbbb446ca3962f6938bc402d4831 | [
"MIT"
] | null | null | null | //
// MIT License
// Copyright (c) 2019 Snekoff. All rights reserved.
//
#include "monster.h"
using json = nlohmann::json;
Monster::Monster(Random_Generator_ *Rand_gen, int name_index, int challenge_rating_index) {
ifstream MonJson;
Existing_Monsters E_M;
E_M.fakeParameter = 1;
cout << "Control reach Monster::... | 47.693133 | 153 | 0.647649 | Snekoff |
122c583a196b4c2f98a6b503a1b831db87401658 | 9,386 | cpp | C++ | OcularCore/src/Renderer/Window/WindowManager.cpp | ssell/OcularEngine | c80cc4fcdb7dd7ce48d3af330bd33d05312076b1 | [
"Apache-2.0"
] | 8 | 2017-01-27T01:06:06.000Z | 2020-11-05T20:23:19.000Z | OcularCore/src/Renderer/Window/WindowManager.cpp | ssell/OcularEngine | c80cc4fcdb7dd7ce48d3af330bd33d05312076b1 | [
"Apache-2.0"
] | 39 | 2016-06-03T02:00:36.000Z | 2017-03-19T17:47:39.000Z | OcularCore/src/Renderer/Window/WindowManager.cpp | ssell/OcularEngine | c80cc4fcdb7dd7ce48d3af330bd33d05312076b1 | [
"Apache-2.0"
] | 4 | 2019-05-22T09:13:36.000Z | 2020-12-01T03:17:45.000Z | /**
* Copyright 2014-2017 Steven T Sell (ssell@vertexfragment.com)
*
* 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 requir... | 28.703364 | 118 | 0.441509 | ssell |
122cca8aaf6efe1eef38798071498e849d87bd69 | 193 | cpp | C++ | src/main/main.cpp | modeco80/ps2-cpp20-primer | 47db939c20e7f189ee8018ef2b767bdf66f37213 | [
"MIT"
] | null | null | null | src/main/main.cpp | modeco80/ps2-cpp20-primer | 47db939c20e7f189ee8018ef2b767bdf66f37213 | [
"MIT"
] | null | null | null | src/main/main.cpp | modeco80/ps2-cpp20-primer | 47db939c20e7f189ee8018ef2b767bdf66f37213 | [
"MIT"
] | null | null | null | /**
* PS2 C++20 Primer
*
* (C) 2022 Lily/modeco80 <lily.modeco80@protonmail.ch>
* under the terms of the MIT license.
*/
#include <stdio.h>
int main() {
printf("Hello PS2 World!\n");
}
| 14.846154 | 55 | 0.626943 | modeco80 |
122eaeb57d07396885dd15b462fbc77d5a91b636 | 67,902 | hpp | C++ | include/outcome/basic_outcome.hpp | libbboze/outcome | 248b05f75c723df56a5fa7988bb7de8b173a98ba | [
"Apache-2.0"
] | null | null | null | include/outcome/basic_outcome.hpp | libbboze/outcome | 248b05f75c723df56a5fa7988bb7de8b173a98ba | [
"Apache-2.0"
] | null | null | null | include/outcome/basic_outcome.hpp | libbboze/outcome | 248b05f75c723df56a5fa7988bb7de8b173a98ba | [
"Apache-2.0"
] | null | null | null | /* A less simple result type
(C) 2017 Niall Douglas <http://www.nedproductions.biz/> (59 commits)
File Created: June 2017
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 in the accompanying file
Licen... | 55.339853 | 272 | 0.694957 | libbboze |
1231177b23f567306fb5a337b5bbcb0bb24c19c9 | 367 | cpp | C++ | LeetCode/cpp/557.cpp | ZintrulCre/LeetCode_Archiver | de23e16ead29336b5ee7aa1898a392a5d6463d27 | [
"MIT"
] | 279 | 2019-02-19T16:00:32.000Z | 2022-03-23T12:16:30.000Z | LeetCode/cpp/557.cpp | ZintrulCre/LeetCode_Archiver | de23e16ead29336b5ee7aa1898a392a5d6463d27 | [
"MIT"
] | 2 | 2019-03-31T08:03:06.000Z | 2021-03-07T04:54:32.000Z | LeetCode/cpp/557.cpp | ZintrulCre/LeetCode_Crawler | de23e16ead29336b5ee7aa1898a392a5d6463d27 | [
"MIT"
] | 12 | 2019-01-29T11:45:32.000Z | 2019-02-04T16:31:46.000Z | class Solution {
public:
string reverseWords(string s) {
int n = s.size();
for (int i = 0; i < n; ++i) {
int j = i + 1;;
while (j < n && s[j] != ' ')
++j;
for (int k = i; k < (j + i) / 2; ++k)
swap(s[k], s[j + i - k - 1]);
... | 22.9375 | 49 | 0.307902 | ZintrulCre |
1233a9e44ecaaaefc354f105142d9f9c1080bb58 | 801 | cpp | C++ | Sid's Levels/Level - 2/Arrays/Merge2SortedVariation.cpp | Tiger-Team-01/DSA-A-Z-Practice | e08284ffdb1409c08158dd4e90dc75dc3a3c5b18 | [
"MIT"
] | 14 | 2021-08-22T18:21:14.000Z | 2022-03-08T12:04:23.000Z | Sid's Levels/Level - 2/Arrays/Merge2SortedVariation.cpp | Tiger-Team-01/DSA-A-Z-Practice | e08284ffdb1409c08158dd4e90dc75dc3a3c5b18 | [
"MIT"
] | 1 | 2021-10-17T18:47:17.000Z | 2021-10-17T18:47:17.000Z | Sid's Levels/Level - 2/Arrays/Merge2SortedVariation.cpp | Tiger-Team-01/DSA-A-Z-Practice | e08284ffdb1409c08158dd4e90dc75dc3a3c5b18 | [
"MIT"
] | 5 | 2021-09-01T08:21:12.000Z | 2022-03-09T12:13:39.000Z | class Solution {
public:
//OM GAN GANAPATHAYE NAMO NAMAH
//JAI SHRI RAM
//JAI BAJRANGBALI
//AMME NARAYANA, DEVI NARAYANA, LAKSHMI NARAYANA, BHADRE NARAYANA
void merge(vector<int>& nums1, int m, vector<int>& nums2, int n) {
int gap = m + n;
int i, j, k;
i = m - 1;
... | 21.648649 | 70 | 0.332085 | Tiger-Team-01 |
1234129e0f5f1094c19bf49f1e3700bae91fe5ed | 243,150 | hpp | C++ | include/metaf.hpp | nnaumenko/metaf | 9e7882649f1eb6bec9a031f30749e0843f3e424d | [
"MIT"
] | 10 | 2019-10-03T23:18:35.000Z | 2021-11-05T13:54:58.000Z | include/metaf.hpp | sthagen/metaf | 9e7882649f1eb6bec9a031f30749e0843f3e424d | [
"MIT"
] | 3 | 2019-10-03T23:24:11.000Z | 2020-02-17T23:44:52.000Z | include/metaf.hpp | sthagen/metaf | 9e7882649f1eb6bec9a031f30749e0843f3e424d | [
"MIT"
] | 6 | 2019-07-16T03:54:25.000Z | 2021-03-13T15:30:47.000Z | /*
* Copyright (C) 2018-2020 Nick Naumenko (https://gitlab.com/nnaumenko)
* All rights reserved.
* This software may be modified and distributed under the terms
* of the MIT license. See the LICENSE file for details.
*/
#ifndef METAF_HPP
#define METAF_HPP
#if defined(__clang__)
// No issues with clang
// But clang d... | 33.404314 | 117 | 0.712235 | nnaumenko |
12364060df01a71d8fda729a3115a586ba73a938 | 5,040 | cpp | C++ | src/programs/rexi_approximation.cpp | valentinaschueller/sweet | 27e99c7a110c99deeadee70688c186d82b39ac90 | [
"MIT"
] | 6 | 2017-11-20T08:12:46.000Z | 2021-03-11T15:32:36.000Z | src/programs/rexi_approximation.cpp | valentinaschueller/sweet | 27e99c7a110c99deeadee70688c186d82b39ac90 | [
"MIT"
] | 4 | 2018-02-02T21:46:33.000Z | 2022-01-11T11:10:27.000Z | src/programs/rexi_approximation.cpp | valentinaschueller/sweet | 27e99c7a110c99deeadee70688c186d82b39ac90 | [
"MIT"
] | 12 | 2016-03-01T18:33:34.000Z | 2022-02-08T22:20:31.000Z | /*
* Author: Martin Schreiber <SchreiberX@gmail.com>
*/
#include <rexi/EXPFunctions.hpp>
#include <iostream>
#include <rexi/REXI.hpp>
#include <rexi/REXICoefficients.hpp>
#include <rexi/REXICoefficientsSet.hpp>
#include <sweet/SimulationVariables.hpp>
#include <sweet/Timeloop.hpp>
#include <stdlib.h>
typedef doubl... | 25.2 | 111 | 0.670238 | valentinaschueller |
1238cce13bdfb99724889eb681b06d0f7bead895 | 2,942 | cpp | C++ | src/jk/cog/codegen/nonval_expression_gen_visitor.cpp | jdmclark/gorc | a03d6a38ab7684860c418dd3d2e77cbe6a6d9fc8 | [
"Apache-2.0"
] | 97 | 2015-02-24T05:09:24.000Z | 2022-01-23T12:08:22.000Z | src/jk/cog/codegen/nonval_expression_gen_visitor.cpp | annnoo/gorc | 1889b4de6380c30af6c58a8af60ecd9c816db91d | [
"Apache-2.0"
] | 8 | 2015-03-27T23:03:23.000Z | 2020-12-21T02:34:33.000Z | src/jk/cog/codegen/nonval_expression_gen_visitor.cpp | annnoo/gorc | 1889b4de6380c30af6c58a8af60ecd9c816db91d | [
"Apache-2.0"
] | 10 | 2016-03-24T14:32:50.000Z | 2021-11-13T02:38:53.000Z | #include "nonval_expression_gen_visitor.hpp"
#include "rval_expression_gen_visitor.hpp"
#include "lval_expression_gen_visitor.hpp"
using namespace gorc;
using namespace gorc::cog;
nonval_expression_gen_visitor::nonval_expression_gen_visitor(script &out_script,
... | 26.035398 | 93 | 0.699524 | jdmclark |
72eb1ad3e16231c824696ced741ea0bb5b80fa47 | 13,510 | cc | C++ | lighter/application/vulkan/planet.cc | VulkanWorks/lighter-Earth-Map-Spline | b3a8ab4b3ab0ce3027f337d7991015db8758ded9 | [
"Apache-2.0"
] | 3 | 2020-09-07T12:26:59.000Z | 2021-09-04T08:37:54.000Z | lighter/application/vulkan/planet.cc | lun0522/jessie-steamer | 74379c9bd685bb9f1b3197a798df40cde5ed4fb2 | [
"Apache-2.0"
] | null | null | null | lighter/application/vulkan/planet.cc | lun0522/jessie-steamer | 74379c9bd685bb9f1b3197a798df40cde5ed4fb2 | [
"Apache-2.0"
] | 1 | 2021-09-04T08:38:03.000Z | 2021-09-04T08:38:03.000Z | //
// planet.cc
//
// Created by Pujun Lun on 4/24/19.
// Copyright © 2019 Pujun Lun. All rights reserved.
//
#include <array>
#include <memory>
#include <numeric>
#include <optional>
#include <random>
#include <vector>
#include "lighter/application/vulkan/util.h"
namespace lighter {
namespace application {
names... | 36.415094 | 80 | 0.677942 | VulkanWorks |
72f26bde1c3eb0cf2c1bf4d6b778822731f9a097 | 467 | hpp | C++ | include/animation/transition_trigger_condition.hpp | hermet/rive-cpp | d69378d97e7d987930c3764655153bf8ddc65966 | [
"MIT"
] | 2 | 2021-04-21T08:25:07.000Z | 2021-04-21T08:48:42.000Z | include/animation/transition_trigger_condition.hpp | hermet/rive-cpp | d69378d97e7d987930c3764655153bf8ddc65966 | [
"MIT"
] | null | null | null | include/animation/transition_trigger_condition.hpp | hermet/rive-cpp | d69378d97e7d987930c3764655153bf8ddc65966 | [
"MIT"
] | null | null | null | #ifndef _RIVE_TRANSITION_TRIGGER_CONDITION_HPP_
#define _RIVE_TRANSITION_TRIGGER_CONDITION_HPP_
#include "generated/animation/transition_trigger_condition_base.hpp"
#include <stdio.h>
namespace rive
{
class TransitionTriggerCondition : public TransitionTriggerConditionBase
{
public:
bool evaluate(const SMIInput* i... | 27.470588 | 73 | 0.832976 | hermet |
72fa8b99497bc080fb7d448afe503cef782d4129 | 1,432 | hh | C++ | src/main/c++/novemberizing/concurrency/thread.hh | iticworld/reactive-lib | 9ab761376776e759390fa417d50921ec6e8a898a | [
"Apache-2.0"
] | 1 | 2020-10-10T11:57:15.000Z | 2020-10-10T11:57:15.000Z | src/main/c++/novemberizing/concurrency/thread.hh | iticworld/reactive-lib | 9ab761376776e759390fa417d50921ec6e8a898a | [
"Apache-2.0"
] | null | null | null | src/main/c++/novemberizing/concurrency/thread.hh | iticworld/reactive-lib | 9ab761376776e759390fa417d50921ec6e8a898a | [
"Apache-2.0"
] | null | null | null | #ifndef __NOVEMBERIZING_CONCURRENCY__THREAD__HH__
#define __NOVEMBERIZING_CONCURRENCY__THREAD__HH__
#include <pthread.h>
#include <string.h>
#include <signal.h>
#include <novemberizing.hh>
#include <novemberizing/util/log.hh>
#include <novemberizing/ds/runnable.hh>
namespace novemberizing { namespace concurren... | 28.078431 | 95 | 0.65852 | iticworld |
72fd0945ad674dca76a69e7772c04f8d6836e8dd | 1,720 | cpp | C++ | CodeChef/VANDH/solution.cpp | afifabroory/CompetitiveProgramming | 231883eeab5abbd84005e80c5065dd02fd8430ef | [
"Unlicense"
] | null | null | null | CodeChef/VANDH/solution.cpp | afifabroory/CompetitiveProgramming | 231883eeab5abbd84005e80c5065dd02fd8430ef | [
"Unlicense"
] | null | null | null | CodeChef/VANDH/solution.cpp | afifabroory/CompetitiveProgramming | 231883eeab5abbd84005e80c5065dd02fd8430ef | [
"Unlicense"
] | null | null | null | #include <iostream>
#include <cmath>
using namespace std;
void solve(unsigned hills, unsigned valley) {
unsigned short stringLength = hills+valley + 3;
// Odd for Valley. Even for Hills
unsigned short who;
if (hills > valley) {
who = 1; // Valley first
if (hills - valley > 1) {
... | 23.561644 | 98 | 0.503488 | afifabroory |
72ffde0b60dccaddee7807c08bfbf4e05494a262 | 5,957 | cpp | C++ | examples/swap_motes/dht22/main.cpp | ekoeppen/msp430-template-library | ee054ac66fd07f957f872db0db50aa20382483b8 | [
"MIT"
] | 6 | 2017-04-16T21:01:31.000Z | 2021-07-27T17:52:14.000Z | examples/swap_motes/dht22/main.cpp | ekoeppen/msp430-template-library | ee054ac66fd07f957f872db0db50aa20382483b8 | [
"MIT"
] | null | null | null | examples/swap_motes/dht22/main.cpp | ekoeppen/msp430-template-library | ee054ac66fd07f957f872db0db50aa20382483b8 | [
"MIT"
] | 2 | 2019-04-20T11:39:09.000Z | 2020-11-06T15:03:18.000Z | #define DEBUG
#include <msp430.h>
#include <stdint.h>
#include <string.h>
#include <gpio.h>
#include <clocks.h>
#include <wdt.h>
#include <io.h>
#include <timer.h>
#include <nrf24.h>
#include <flash.h>
#include <adc.h>
#include <dht22.h>
#include <utils.h>
#ifdef __MSP430_HAS_USCI__
#include <usci_spi.h>
#include <us... | 26.59375 | 94 | 0.717475 | ekoeppen |
f40707410b5480f0fe63b4e449861e946f042a25 | 4,599 | hpp | C++ | include/zisa/reconstruction/cached_local_reconstruction.hpp | 1uc/ZisaFVM | 75fcedb3bece66499e011228a39d8a364b50fd74 | [
"MIT"
] | null | null | null | include/zisa/reconstruction/cached_local_reconstruction.hpp | 1uc/ZisaFVM | 75fcedb3bece66499e011228a39d8a364b50fd74 | [
"MIT"
] | null | null | null | include/zisa/reconstruction/cached_local_reconstruction.hpp | 1uc/ZisaFVM | 75fcedb3bece66499e011228a39d8a364b50fd74 | [
"MIT"
] | 1 | 2021-08-24T11:52:51.000Z | 2021-08-24T11:52:51.000Z | // SPDX-License-Identifier: MIT
// Copyright (c) 2021 ETH Zurich, Luc Grosheintz-Laval
#ifndef ZISA_CACHED_LOCAL_RECONSTRUCTION_HPP_ZOQENI
#define ZISA_CACHED_LOCAL_RECONSTRUCTION_HPP_ZOQENI
#include <zisa/grid/grid.hpp>
#include <zisa/memory/array.hpp>
#include <zisa/memory/array_view.hpp>
#include <zisa/model/chara... | 28.565217 | 77 | 0.630354 | 1uc |
f40712521dd933d041417bc7dd64cd6ceecebb1e | 1,046 | cpp | C++ | src/pointcloud_publisher.cpp | DavidMerzJr/ros-cognex-demo | 818572cc4a2f36e8afdc221c287c83a31f3031b7 | [
"Apache-2.0"
] | 1 | 2021-06-21T23:01:41.000Z | 2021-06-21T23:01:41.000Z | src/pointcloud_publisher.cpp | DavidMerzJr/ros-cognex-demo | 818572cc4a2f36e8afdc221c287c83a31f3031b7 | [
"Apache-2.0"
] | null | null | null | src/pointcloud_publisher.cpp | DavidMerzJr/ros-cognex-demo | 818572cc4a2f36e8afdc221c287c83a31f3031b7 | [
"Apache-2.0"
] | 2 | 2021-06-24T00:30:39.000Z | 2021-09-27T07:40:23.000Z | #include <string>
#include <pcl/io/ply_io.h>
#include <pcl/point_cloud.h>
#include <pcl/point_types.h>
#include <pcl_ros/point_cloud.h>
#include <ros/package.h>
#include <ros/ros.h>
int main(int argc, char **argv)
{
ros::init(argc, argv, "pointcloud_publisher");
ros::NodeHandle nh;
// Get parameters
std::st... | 21.791667 | 95 | 0.646272 | DavidMerzJr |
f40ca280bdb514c3cef821796be2c049c7f5dada | 1,184 | hpp | C++ | src/libv/lma/time/time.hpp | bezout/LMA | 9555e41eed5f44690c5f6e3ea2d22d520ff1a9d2 | [
"BSL-1.0"
] | 29 | 2015-12-08T12:07:30.000Z | 2022-01-08T21:23:01.000Z | src/libv/lma/time/time.hpp | ayumizll/LMA | e945452e12a8b05bd17400b46a20a5322aeda01d | [
"BSL-1.0"
] | 3 | 2016-07-11T16:23:48.000Z | 2017-04-05T13:33:00.000Z | src/libv/lma/time/time.hpp | bezout/LMA | 9555e41eed5f44690c5f6e3ea2d22d520ff1a9d2 | [
"BSL-1.0"
] | 8 | 2015-12-21T01:52:27.000Z | 2017-12-26T02:26:55.000Z | /**
\file
\author Datta Ramadasan
//==============================================================================
// Copyright 2015 INSTITUT PASCAL UMR 6602 CNRS/Univ. Clermont II
//
// Distributed under the Boost Software License, Version 1.0.
// See accompanying file LICENSE.txt or ... | 25.191489 | 80 | 0.533784 | bezout |
f40f097472cfe7f26e7bc6099cc0492be03e5d16 | 2,284 | cpp | C++ | ui/src/ui_save_recall.cpp | starlingcode/via_archive | e83f5178529664e4c348f3c2a30d923eafa7f896 | [
"MIT"
] | 3 | 2017-09-15T13:38:01.000Z | 2018-03-20T03:30:48.000Z | ui/src/ui_save_recall.cpp | starlingcode/via_archive | e83f5178529664e4c348f3c2a30d923eafa7f896 | [
"MIT"
] | null | null | null | ui/src/ui_save_recall.cpp | starlingcode/via_archive | e83f5178529664e4c348f3c2a30d923eafa7f896 | [
"MIT"
] | null | null | null | /*
* ViaUI::save_recall.cpp
*
* Created on: Sep 11, 2018
* Author: willmitchell
*/
#include "user_interface.hpp"
/*
*
* Template routine for the UI state machine.
* Assign the button pointers to the address of the sensor state variables.
* Initialize the eeprom and read the last saved mode set.
* Init... | 29.282051 | 142 | 0.739054 | starlingcode |
f411662fbd7ae2c91da0a10e09fb1f2c4c7c9b2f | 5,410 | cpp | C++ | src/step2lon.cpp | whulizhen/iers2010 | 3b1c9587510074a7658e0042ce6b1e737560ca23 | [
"WTFPL"
] | null | null | null | src/step2lon.cpp | whulizhen/iers2010 | 3b1c9587510074a7658e0042ce6b1e737560ca23 | [
"WTFPL"
] | null | null | null | src/step2lon.cpp | whulizhen/iers2010 | 3b1c9587510074a7658e0042ce6b1e737560ca23 | [
"WTFPL"
] | 2 | 2017-08-01T22:01:45.000Z | 2018-10-13T09:06:04.000Z | #include "dehanttideinel.hpp"
/**
* @details This function gives the in-phase and out-of-phase corrections
* induced by mantle anelasticity in the long period band.
* This function is a translation/wrapper for the fortran STEP2LON
* subroutine, found here :
* http://maia.usno.... | 31.823529 | 86 | 0.543623 | whulizhen |
f414799cc9ae602c28104555cbd7a8a1f217a978 | 1,676 | cpp | C++ | Real Gas Equation/Peng Robinson.cpp | ArcFlux/Numerical-Method | 3e34eac71577ed4ddb2ab810ded45cff56d810f6 | [
"MIT"
] | null | null | null | Real Gas Equation/Peng Robinson.cpp | ArcFlux/Numerical-Method | 3e34eac71577ed4ddb2ab810ded45cff56d810f6 | [
"MIT"
] | null | null | null | Real Gas Equation/Peng Robinson.cpp | ArcFlux/Numerical-Method | 3e34eac71577ed4ddb2ab810ded45cff56d810f6 | [
"MIT"
] | null | null | null | #include <iostream>
#include <conio.h>
#include <math.h>
using namespace std;
double PR(double x, double b, double a, double al, double P, double R, double T){
return R*T/(x-b)-(a*al/(x*(x+b)+b*(x-b)))-P;
}
double dfun(double x, double h, double b, double a, double al, double P, double R, double T){
retur... | 28.40678 | 94 | 0.47673 | ArcFlux |
f416a7ae0257bc3b77bf66b1b54c01a4ebf8ab6b | 361 | hpp | C++ | NativePlugin/CaptainAsteroid/src/physics/systems/ReduceLifeTime.hpp | axoloto/CaptainAsteroid | fcdcb6bc6987ecf53226daa7027116e40d74401a | [
"Apache-2.0"
] | null | null | null | NativePlugin/CaptainAsteroid/src/physics/systems/ReduceLifeTime.hpp | axoloto/CaptainAsteroid | fcdcb6bc6987ecf53226daa7027116e40d74401a | [
"Apache-2.0"
] | null | null | null | NativePlugin/CaptainAsteroid/src/physics/systems/ReduceLifeTime.hpp | axoloto/CaptainAsteroid | fcdcb6bc6987ecf53226daa7027116e40d74401a | [
"Apache-2.0"
] | null | null | null | #pragma once
#include "entityx/System.h"
namespace CaptainAsteroidCPP
{
namespace Sys
{
class ReduceLifeTime : public entityx::System<ReduceLifeTime>
{
public:
ReduceLifeTime() = default;
void update(entityx::EntityManager &entities,
entityx::EventManager &events,
double dt);
};
}// names... | 19 | 63 | 0.717452 | axoloto |
f4197047faf6ee21fbf039cf534938f0c1b6b309 | 4,100 | cpp | C++ | source/sill/components/ui-select-component.cpp | Breush/lava | 1b1b1f0785300b93b4a9f35fca4490502fea6552 | [
"MIT"
] | 15 | 2018-02-26T08:20:03.000Z | 2022-03-06T03:25:46.000Z | source/sill/components/ui-select-component.cpp | Breush/lava | 1b1b1f0785300b93b4a9f35fca4490502fea6552 | [
"MIT"
] | 32 | 2018-02-26T08:26:38.000Z | 2020-09-12T17:09:38.000Z | source/sill/components/ui-select-component.cpp | Breush/lava | 1b1b1f0785300b93b4a9f35fca4490502fea6552 | [
"MIT"
] | null | null | null | #include <lava/sill/components/ui-select-component.hpp>
#include <lava/sill/components/flat-component.hpp>
#include <lava/sill/components/transform-component.hpp>
#include <lava/sill/game-engine.hpp>
#include <lava/sill/entity.hpp>
#include <lava/sill/makers/quad-flat.hpp>
#include <lava/sill/makers/text-flat.hpp>
us... | 29.078014 | 128 | 0.632439 | Breush |
f420a66180d32ae4bb81e0c288c63a29305baa8c | 1,183 | cpp | C++ | 01. Easy/03. Linked_List/06. Linked_List_Cycle.cpp | premnaaath/leetcode-TIQ | 90f9d7216b596dc42fe0d559f3ecdaa448b258d1 | [
"MIT"
] | null | null | null | 01. Easy/03. Linked_List/06. Linked_List_Cycle.cpp | premnaaath/leetcode-TIQ | 90f9d7216b596dc42fe0d559f3ecdaa448b258d1 | [
"MIT"
] | null | null | null | 01. Easy/03. Linked_List/06. Linked_List_Cycle.cpp | premnaaath/leetcode-TIQ | 90f9d7216b596dc42fe0d559f3ecdaa448b258d1 | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
struct ListNode
{
int val;
ListNode *next;
ListNode(int x) : val(x), next(NULL) {}
ListNode() : next(NULL) {}
};
void Insert(ListNode *head, int val)
{
ListNode *temp = new ListNode(val);
if (!head)
{
head = temp;... | 18.2 | 63 | 0.519019 | premnaaath |
f4224e1045fd368244db7ee504b7f28695695c01 | 5,322 | cpp | C++ | rosbag2_extensions_examples/src/sample_node.cpp | qetuo1098/rosbag2 | 2798428a1d542a75176c34a88db1b56206bb1a66 | [
"Apache-2.0"
] | null | null | null | rosbag2_extensions_examples/src/sample_node.cpp | qetuo1098/rosbag2 | 2798428a1d542a75176c34a88db1b56206bb1a66 | [
"Apache-2.0"
] | null | null | null | rosbag2_extensions_examples/src/sample_node.cpp | qetuo1098/rosbag2 | 2798428a1d542a75176c34a88db1b56206bb1a66 | [
"Apache-2.0"
] | null | null | null | #include <iostream>
#include <cstdio>
#include <memory>
#include <string>
#include "rclcpp/serialization.hpp"
#include "rclcpp/serialized_message.hpp"
#include "rcpputils/filesystem_helper.hpp"
#include "rcutils/time.h"
#include "rosbag2_cpp/reader.hpp"
#include "rosbag2_cpp/readers/sequential_reader.hpp"
#include "... | 35.48 | 98 | 0.704247 | qetuo1098 |
f4262167959e3aade709dd57a9f3ce9bceaa952b | 2,281 | cpp | C++ | pMarker/dockform.cpp | liuwons/pMarker | f0db49cd215383796957e9e7c192b8cb358c9e4e | [
"Apache-2.0"
] | 1 | 2016-12-20T10:13:53.000Z | 2016-12-20T10:13:53.000Z | pMarker/dockform.cpp | liuwons/pMarker | f0db49cd215383796957e9e7c192b8cb358c9e4e | [
"Apache-2.0"
] | null | null | null | pMarker/dockform.cpp | liuwons/pMarker | f0db49cd215383796957e9e7c192b8cb358c9e4e | [
"Apache-2.0"
] | null | null | null | #include "dockform.h"
DockForm::DockForm(QWidget *parent) :
QWidget(parent)
{
mainLayout = new QVBoxLayout;
preview_img = new Preview(*screen_size, Preview::PREVIEW_OVERALL);
preview_mrk = new Preview(*screen_size, Preview::PREVIEW_PART);
preview_img->setMaximumHeight(screen_size->width() / 8);
... | 33.057971 | 84 | 0.68961 | liuwons |
f4292c6daefcb862286f47b58b7c75782f8722f2 | 9,625 | cpp | C++ | QSidePanel/QSidePanel/SidePanel.cpp | inobelar/QSidePanel | 4554e1bcd3f0942df66ed1357cdac7afdd08597d | [
"MIT"
] | 16 | 2019-10-11T12:08:05.000Z | 2022-01-02T05:59:16.000Z | QSidePanel/QSidePanel/SidePanel.cpp | inobelar/QSidePanel | 4554e1bcd3f0942df66ed1357cdac7afdd08597d | [
"MIT"
] | null | null | null | QSidePanel/QSidePanel/SidePanel.cpp | inobelar/QSidePanel | 4554e1bcd3f0942df66ed1357cdac7afdd08597d | [
"MIT"
] | 9 | 2019-11-17T20:09:55.000Z | 2021-10-31T14:54:02.000Z | #include "SidePanel.hpp"
#include "math.hpp"
#include "side_panel_helpers.hpp"
#include <QDebug>
void SidePanel::_setState(const SidePanelState new_state) {
if(_state == new_state)
return;
_state = new_state;
emit stateChanged(_state);
}
// ----------------------------------------------------... | 28.731343 | 205 | 0.551792 | inobelar |
f42aecc0633dbeca7adedb8111865d5f6e63d758 | 1,581 | cpp | C++ | src/FCFS/fcfs.cpp | divshekhar/os_process_schedulers | 4bfe0accbbd97793d56e22235cfa2b1e8999a025 | [
"MIT"
] | 5 | 2022-01-17T05:40:25.000Z | 2022-01-27T16:01:27.000Z | src/FCFS/fcfs.cpp | divshekhar/os_process_schedulers | 4bfe0accbbd97793d56e22235cfa2b1e8999a025 | [
"MIT"
] | null | null | null | src/FCFS/fcfs.cpp | divshekhar/os_process_schedulers | 4bfe0accbbd97793d56e22235cfa2b1e8999a025 | [
"MIT"
] | null | null | null | #include "../../include/fcfs.hpp"
void FCFS::solve()
{
int total_turnaround_time = 0;
int total_waiting_time = 0;
int total_response_time = 0;
int total_idle_time = 0;
std::sort(p, p + n, osps::Process::compareArrival);
for (int i = 0; i < n; i++)
{
int maxStartTime = std::max(p[i... | 41.605263 | 124 | 0.649589 | divshekhar |
f42ca614d6572ddb779196310b210bd3cbcdde24 | 1,863 | hpp | C++ | include/private/coherence/component/net/extend/protocol/cache/ContainsAllRequest.hpp | chpatel3/coherence-cpp-extend-client | 4ea5267eae32064dff1e73339aa3fbc9347ef0f6 | [
"UPL-1.0",
"Apache-2.0"
] | 6 | 2020-07-01T21:38:30.000Z | 2021-11-03T01:35:11.000Z | include/private/coherence/component/net/extend/protocol/cache/ContainsAllRequest.hpp | chpatel3/coherence-cpp-extend-client | 4ea5267eae32064dff1e73339aa3fbc9347ef0f6 | [
"UPL-1.0",
"Apache-2.0"
] | 1 | 2020-07-24T17:29:22.000Z | 2020-07-24T18:29:04.000Z | include/private/coherence/component/net/extend/protocol/cache/ContainsAllRequest.hpp | chpatel3/coherence-cpp-extend-client | 4ea5267eae32064dff1e73339aa3fbc9347ef0f6 | [
"UPL-1.0",
"Apache-2.0"
] | 6 | 2020-07-10T18:40:58.000Z | 2022-02-18T01:23:40.000Z | /*
* Copyright (c) 2000, 2020, Oracle and/or its affiliates.
*
* Licensed under the Universal Permissive License v 1.0 as shown at
* http://oss.oracle.com/licenses/upl.
*/
#ifndef COH_CONTAINS_ALL_REQUEST_HPP
#define COH_CONTAINS_ALL_REQUEST_HPP
#include "coherence/lang.ns"
#include "private/coherence/component/... | 24.513158 | 90 | 0.582394 | chpatel3 |
f42fa4159224b3f20f918fe9f3ad16980a8717e8 | 5,169 | cc | C++ | tool/SecVerilog-1.0/SecVerilog/vvp/vpi_real.cc | gokulprasath7c/secure_i2c_using_ift | 124384983ba70e8164b7217db70c43dfdf302d4b | [
"MIT"
] | 1 | 2019-01-28T21:23:37.000Z | 2019-01-28T21:23:37.000Z | tool/SecVerilog-1.0/SecVerilog/vvp/vpi_real.cc | gokulprasath7c/secure_i2c_using_ift | 124384983ba70e8164b7217db70c43dfdf302d4b | [
"MIT"
] | null | null | null | tool/SecVerilog-1.0/SecVerilog/vvp/vpi_real.cc | gokulprasath7c/secure_i2c_using_ift | 124384983ba70e8164b7217db70c43dfdf302d4b | [
"MIT"
] | null | null | null | /*
* Copyright (c) 2003-2010 Stephen Williams (steve@icarus.com)
*
* This source code is free software; you can redistribute it
* and/or modify it in source code form under the terms of the GNU
* General Public License as published by the Free Software
* Foundation; either version 2 of the License, or... | 25.092233 | 79 | 0.660089 | gokulprasath7c |
f436ba7efc21c9dbcbcb048e0d1e963c3c533aa5 | 1,915 | cpp | C++ | Assignment/Weapon.cpp | qimmer/interrealms_test | 59099a920534aa4283dfb7a575a913faec081460 | [
"MIT"
] | null | null | null | Assignment/Weapon.cpp | qimmer/interrealms_test | 59099a920534aa4283dfb7a575a913faec081460 | [
"MIT"
] | null | null | null | Assignment/Weapon.cpp | qimmer/interrealms_test | 59099a920534aa4283dfb7a575a913faec081460 | [
"MIT"
] | null | null | null | #include "Assignment.h"
#include "Components/BoxComponent.h"
#include "Components/MeshComponent.h"
#include "Projectile.h"
#include "Weapon.h"
AWeapon::AWeapon(const class FObjectInitializer& PCIP)
: Super(PCIP)
{
PrimaryActorTick.bCanEverTick = true;
BoxCollider = PCIP.CreateDefaultSubobject<UBoxCompone... | 28.58209 | 150 | 0.609922 | qimmer |
f4370fe19a850645f785df252ba67add236e26c7 | 1,129 | cpp | C++ | src/unitiger/hydro.cpp | srinivasyadav18/octotiger | 4d93c50fe345a081b7985ecb4cb698d16c121565 | [
"BSL-1.0"
] | 35 | 2016-11-17T22:35:11.000Z | 2022-01-24T19:07:36.000Z | src/unitiger/hydro.cpp | srinivasyadav18/octotiger | 4d93c50fe345a081b7985ecb4cb698d16c121565 | [
"BSL-1.0"
] | 123 | 2016-11-17T21:29:25.000Z | 2022-03-03T21:40:04.000Z | src/unitiger/hydro.cpp | srinivasyadav18/octotiger | 4d93c50fe345a081b7985ecb4cb698d16c121565 | [
"BSL-1.0"
] | 10 | 2018-11-28T18:17:42.000Z | 2022-01-25T12:52:37.000Z | // Copyright (c) 2019 AUTHORS
//
// 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 "octotiger/unitiger/unitiger.hpp"
#include "octotiger/unitiger/hydro.hpp"
#include "octotiger/unitiger/physics.hpp"
#incl... | 30.513514 | 131 | 0.64659 | srinivasyadav18 |
f440058c246bb002326eebe48fddb5d5eb17f0b1 | 985 | cpp | C++ | lib/rdf/test/id_tracker_run.cpp | GreyMerlin/owl_cpp | ccc6128dbd08dcf7fcbe6679ec6acd714732bbb6 | [
"BSL-1.0"
] | 10 | 2017-12-21T05:20:40.000Z | 2021-09-18T05:14:01.000Z | lib/rdf/test/id_tracker_run.cpp | GreyMerlin/owl_cpp | ccc6128dbd08dcf7fcbe6679ec6acd714732bbb6 | [
"BSL-1.0"
] | 2 | 2017-12-21T07:31:54.000Z | 2021-06-23T08:52:35.000Z | lib/rdf/test/id_tracker_run.cpp | GreyMerlin/owl_cpp | ccc6128dbd08dcf7fcbe6679ec6acd714732bbb6 | [
"BSL-1.0"
] | 7 | 2016-02-17T13:20:31.000Z | 2021-11-08T09:30:43.000Z | /** @file "/owlcpp/lib/rdf/test/id_tracker_run.cpp"
part of %owlcpp project.
@n @n Distributed under the Boost Software License, Version 1.0; see doc/license.txt.
@n Copyright Mikhail K Levin 2011
*******************************************************************************/
#define BOOST_TEST_MODULE id_tracker_run
... | 33.965517 | 85 | 0.614213 | GreyMerlin |
f4403a15886c681ea8089726ed8563dd11fbc8e4 | 964,237 | cpp | C++ | spacy/morphology.cpp | gghilango/GGH.NLP | aa756d51c3f45ad9f71e131eee5a14941cef7677 | [
"MIT"
] | null | null | null | spacy/morphology.cpp | gghilango/GGH.NLP | aa756d51c3f45ad9f71e131eee5a14941cef7677 | [
"MIT"
] | null | null | null | spacy/morphology.cpp | gghilango/GGH.NLP | aa756d51c3f45ad9f71e131eee5a14941cef7677 | [
"MIT"
] | null | null | null | /* Generated by Cython 0.23.5 */
#define PY_SSIZE_T_CLEAN
#include "Python.h"
#ifndef Py_PYTHON_H
#error Python headers needed to compile C extensions, please install development version of Python.
#elif PY_VERSION_HEX < 0x02060000 || (0x03000000 <= PY_VERSION_HEX && PY_VERSION_HEX < 0x03020000)
#error Cython ... | 50.152762 | 453 | 0.6855 | gghilango |
f44159cdcddc184168d8712f8655d535d8b60f73 | 2,299 | cpp | C++ | POJ/24 - 26/poj2424.cpp | bilibiliShen/CodeBank | 49a69b2b2c3603bf105140a9d924946ed3193457 | [
"MIT"
] | 1 | 2017-08-19T16:02:15.000Z | 2017-08-19T16:02:15.000Z | POJ/24 - 26/poj2424.cpp | bilibiliShen/CodeBank | 49a69b2b2c3603bf105140a9d924946ed3193457 | [
"MIT"
] | null | null | null | POJ/24 - 26/poj2424.cpp | bilibiliShen/CodeBank | 49a69b2b2c3603bf105140a9d924946ed3193457 | [
"MIT"
] | 1 | 2018-01-05T23:37:23.000Z | 2018-01-05T23:37:23.000Z | /****
*@Polo-shen
*
*/
//#pragma comment(linker, "/STACK:1024000000,1024000000")
#include <iostream>
#include <string>
#include <cstring>
#include <cstdio>
//#include <algorithm>
#include <cmath>
//#include <iomanip>
//#include <fstream>
//#include <cstdlib>
#include <vector>
//#include <list>
//#include <set>
//#in... | 19.991304 | 64 | 0.535015 | bilibiliShen |
f4415d9c60c8b8bead0b2f5e0e10b0847385321f | 233 | cpp | C++ | src/main.cpp | xiyue-studio/Popsicle | d62304c573391fcd0cf04c058d1a31af54882046 | [
"MIT"
] | 3 | 2019-07-16T02:50:02.000Z | 2020-01-31T12:31:32.000Z | src/main.cpp | xiyue-studio/Popsicle | d62304c573391fcd0cf04c058d1a31af54882046 | [
"MIT"
] | null | null | null | src/main.cpp | xiyue-studio/Popsicle | d62304c573391fcd0cf04c058d1a31af54882046 | [
"MIT"
] | null | null | null | #include "stdafx.h"
#include "px_server.h"
int main(int argc, const char* argv[])
{
(void)argc;
(void)argv;
px_server::PxServer server;
if (!server.run(8080))
{
printf("PxServer can not run!\n");
return -1;
}
return 0;
}
| 14.5625 | 38 | 0.643777 | xiyue-studio |
f4447a6190884b46f36c98e0e4b0a90502605e1f | 1,277 | cpp | C++ | client/client/binaryConverter.cpp | CanOpener/PongPlusPlus-vcpp-Client | e3a8eef252b81f0c69fd646b1d39eefea1dd07da | [
"MIT"
] | null | null | null | client/client/binaryConverter.cpp | CanOpener/PongPlusPlus-vcpp-Client | e3a8eef252b81f0c69fd646b1d39eefea1dd07da | [
"MIT"
] | null | null | null | client/client/binaryConverter.cpp | CanOpener/PongPlusPlus-vcpp-Client | e3a8eef252b81f0c69fd646b1d39eefea1dd07da | [
"MIT"
] | null | null | null | #include "stdafx.h"
#include "binaryConverter.h"
#include <cstdint>
#include <string>
uint8_t binaryConverter::readUint8(BYTE** seeker) {
uint8_t retInt = **(seeker);
(*seeker)++;
return retInt;
}
uint16_t binaryConverter::readUint16(BYTE** seeker) {
uint16_t* p = (uint16_t*)*seeker;
uint16_t retInt = *p;
(*seek... | 26.061224 | 65 | 0.6852 | CanOpener |
f444b31a1eda4f58b65a995709e8f4affbbdb762 | 1,996 | cpp | C++ | Cpp/fostgres-fg/contains.cpp | amukha/fostgres | d908e80d6ebeafc456bae086dd397c216d59b001 | [
"BSL-1.0"
] | 17 | 2017-02-06T07:54:49.000Z | 2019-07-20T03:55:15.000Z | Cpp/fostgres-fg/contains.cpp | amukha/fostgres | d908e80d6ebeafc456bae086dd397c216d59b001 | [
"BSL-1.0"
] | 17 | 2017-06-01T08:51:26.000Z | 2019-09-02T13:46:23.000Z | Cpp/fostgres-fg/contains.cpp | amukha/fostgres | d908e80d6ebeafc456bae086dd397c216d59b001 | [
"BSL-1.0"
] | 6 | 2017-05-03T13:05:19.000Z | 2019-08-06T11:34:41.000Z | /**
Copyright 2016-2019 Red Anchor Trading Co. Ltd.
Distributed under the Boost Software License, Version 1.0.
See <http://www.boost.org/LICENSE_1_0.txt>
*/
#include <fostgres/fg/contains.hpp>
#include <fost/test>
namespace {
fostlib::nullable<fostlib::jcursor>
walk(fostlib::jcursor &p... | 31.68254 | 78 | 0.536072 | amukha |
f444f1a021b6959cfaa669aa4c05333b0d50a5fc | 1,883 | cpp | C++ | solver.cpp | banche/ski-in-singapore | 8d4039da879061e38450567fe7bdc7247858e850 | [
"MIT"
] | null | null | null | solver.cpp | banche/ski-in-singapore | 8d4039da879061e38450567fe7bdc7247858e850 | [
"MIT"
] | null | null | null | solver.cpp | banche/ski-in-singapore | 8d4039da879061e38450567fe7bdc7247858e850 | [
"MIT"
] | null | null | null | #include "solver.hpp"
namespace SkiChallenge {
//fit it inside 64bits
struct BoxState {
uint32_t pathLength;
uint32_t drop;
bool isVisited;
BoxState();
};
BoxState::BoxState()
: pathLength(0)
, drop(0)
, isVisited(0)
{
}
typedef std::vector<BoxState> BoxStates;
void lookNeighbors(const Mountain& m... | 22.963415 | 83 | 0.653744 | banche |
f4477343417009a6d56ce11003eb2d33d74bb35c | 207 | hpp | C++ | hiro/reference/widget/frame.hpp | mp-lee/higan | c38a771f2272c3ee10fcb99f031e982989c08c60 | [
"Intel",
"ISC"
] | 38 | 2018-04-05T05:00:05.000Z | 2022-02-06T00:02:02.000Z | hiro/reference/widget/frame.hpp | ameer-bauer/higan-097 | a4a28968173ead8251cfa7cd6b5bf963ee68308f | [
"Info-ZIP"
] | 2 | 2015-10-06T14:59:48.000Z | 2022-01-27T08:57:57.000Z | hiro/reference/widget/frame.hpp | ameer-bauer/higan-097 | a4a28968173ead8251cfa7cd6b5bf963ee68308f | [
"Info-ZIP"
] | 8 | 2018-04-16T22:37:46.000Z | 2021-02-10T07:37:03.000Z | namespace phoenix {
struct pFrame : public pWidget {
Frame& frame;
void setText(string text);
pFrame(Frame& frame) : pWidget(frame), frame(frame) {}
void constructor();
void destructor();
};
}
| 14.785714 | 56 | 0.671498 | mp-lee |
f453fcd3bb51b8ad656c7150af72ebc1dfb907c8 | 9,715 | cpp | C++ | TFV_PopulatingFunctions.cpp | budomino/task-feed-visualizer | 7c03f3530c867e3e1f7a1334f4eb06f24e8faf9c | [
"MIT"
] | null | null | null | TFV_PopulatingFunctions.cpp | budomino/task-feed-visualizer | 7c03f3530c867e3e1f7a1334f4eb06f24e8faf9c | [
"MIT"
] | null | null | null | TFV_PopulatingFunctions.cpp | budomino/task-feed-visualizer | 7c03f3530c867e3e1f7a1334f4eb06f24e8faf9c | [
"MIT"
] | null | null | null |
#include "TFV_PopulatingFunctions.h"
#include <alphanum.hpp>
using std::string;
using std::vector;
using std::cout;
using std::endl;
// summary of file: stores most of the actual custom class functions used to run the program
tab CreateTableItems(tab currentTab, bool printLog, bool veryVerbose)
{
// summ... | 37.655039 | 201 | 0.575399 | budomino |
f45e89170105de927958717e921db4ef9740121a | 3,050 | cpp | C++ | test/program-nn-test.cpp | huangjd/simit-staging | 6a1d7946e88c7bf383abe800ee835d3680e86559 | [
"MIT"
] | 496 | 2016-06-10T04:16:47.000Z | 2022-01-24T19:37:03.000Z | test/program-nn-test.cpp | huangjd/simit-staging | 6a1d7946e88c7bf383abe800ee835d3680e86559 | [
"MIT"
] | 91 | 2016-07-26T13:18:48.000Z | 2021-08-10T08:54:18.000Z | test/program-nn-test.cpp | huangjd/simit-staging | 6a1d7946e88c7bf383abe800ee835d3680e86559 | [
"MIT"
] | 63 | 2016-07-22T17:15:46.000Z | 2021-08-20T03:18:42.000Z | #include "simit-test.h"
#include <cmath>
#include <iostream>
#include "graph.h"
#include "program.h"
#include "error.h"
using namespace std;
using namespace simit;
TEST(Program, DISABLED_nn) {
// Points
Set nodes;
FieldRef<simit_float> outv = nodes.addField<simit_float>("outv");
FieldRef<simit_float> inv = ... | 26.99115 | 82 | 0.637705 | huangjd |
f46172ed427d5fa081a416293dd8d34f5007519a | 2,506 | hpp | C++ | include/boost/connector/vendor/ftx/channel_event.hpp | madmongo1/boost_connector | 4c51c0074a7604acae685365cdcd0258d9a32f8e | [
"BSL-1.0"
] | 6 | 2021-09-09T12:48:39.000Z | 2021-09-23T16:06:38.000Z | include/boost/connector/vendor/ftx/channel_event.hpp | madmongo1/boost_connector | 4c51c0074a7604acae685365cdcd0258d9a32f8e | [
"BSL-1.0"
] | null | null | null | include/boost/connector/vendor/ftx/channel_event.hpp | madmongo1/boost_connector | 4c51c0074a7604acae685365cdcd0258d9a32f8e | [
"BSL-1.0"
] | null | null | null | //
// Copyright (c) 2021 Richard Hodges (hodges.r@gmail.com)
//
// Distributed under the Boost Software License, Version 1.0. (See accompanying
// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
//
// Official repository: https://github.com/madmongo1/router
//
#ifndef BOOST_CONNECTOR_SRC_VENDOR_F... | 20.883333 | 79 | 0.614126 | madmongo1 |
c2e1531152064b0a4614be695c65923635e795a5 | 340 | cpp | C++ | src/ir/ir_exp_mem.cpp | Wassasin/splicpp | b88bf8ec18985bc6ee5a8ccb952f413f23d74c5a | [
"Beerware"
] | 2 | 2019-04-09T01:04:36.000Z | 2019-05-12T06:17:03.000Z | src/ir/ir_exp_mem.cpp | Wassasin/splicpp | b88bf8ec18985bc6ee5a8ccb952f413f23d74c5a | [
"Beerware"
] | null | null | null | src/ir/ir_exp_mem.cpp | Wassasin/splicpp | b88bf8ec18985bc6ee5a8ccb952f413f23d74c5a | [
"Beerware"
] | null | null | null | #include "ir_exp_mem.hpp"
#include "../mappers/generic/ir_exp_mapper.hpp"
namespace splicpp
{
void ir_exp_mem::map(ir_exp_mapper& t) const
{
t.map(std::static_pointer_cast<const ir_exp_mem>(shared_from_this()));
}
void ir_exp_mem::print(std::ostream& s, const uint tab) const
{
s << "MEM(";
e->print(s, tab... | 17.894737 | 72 | 0.670588 | Wassasin |
c2e2d5cb868fb888ca0d20f5a83a9ce2cc963f65 | 3,516 | cpp | C++ | src/c++/lib/flowcell/FastqLayout.cpp | Illumina/Isaac4 | 0924fba8b467868da92e1c48323b15d7cbca17dd | [
"BSD-3-Clause"
] | 13 | 2018-02-09T22:59:39.000Z | 2021-11-29T06:33:22.000Z | src/c++/lib/flowcell/FastqLayout.cpp | Illumina/Isaac4 | 0924fba8b467868da92e1c48323b15d7cbca17dd | [
"BSD-3-Clause"
] | 17 | 2018-01-26T11:36:07.000Z | 2022-02-03T18:48:43.000Z | src/c++/lib/flowcell/FastqLayout.cpp | Illumina/Isaac4 | 0924fba8b467868da92e1c48323b15d7cbca17dd | [
"BSD-3-Clause"
] | 4 | 2018-10-19T20:00:00.000Z | 2020-10-29T14:44:06.000Z | /**
** Isaac Genome Alignment Software
** Copyright (c) 2010-2017 Illumina, Inc.
** All rights reserved.
**
** This software is provided under the terms and conditions of the
** GNU GENERAL PUBLIC LICENSE Version 3
**
** You should have received a copy of the GNU GENERAL PUBLIC LICENSE Version 3
** along with ... | 35.877551 | 126 | 0.703925 | Illumina |
c2e5438191154e958b09e90d0734ad7588b949b7 | 6,687 | cpp | C++ | editor/source/widget/output/widget_output_bar.cpp | skarab/coffee-master | 6c3ff71b7f15735e41c9859b6db981b94414c783 | [
"MIT"
] | null | null | null | editor/source/widget/output/widget_output_bar.cpp | skarab/coffee-master | 6c3ff71b7f15735e41c9859b6db981b94414c783 | [
"MIT"
] | null | null | null | editor/source/widget/output/widget_output_bar.cpp | skarab/coffee-master | 6c3ff71b7f15735e41c9859b6db981b94414c783 | [
"MIT"
] | null | null | null | #include "widget/output/widget_output_bar.h"
namespace coffee_editor
{
//-META---------------------------------------------------------------------------------------//
COFFEE_BeginType(widget::OutputBar);
COFFEE_Ancestor(ui::Window);
COFFEE_EndType();
namespace widget
{
//-CONSTRUCTORS-----------... | 35.194737 | 123 | 0.490953 | skarab |
c2e73ccabe60819e09a9c081159fe8e971527f83 | 21,585 | cpp | C++ | shared/devdriver/apis/ddSocket/tests/ddSocketTests.cpp | GPUOpen-Drivers/pal | bcec463efe5260776d486a5e3da0c549bc0a75d2 | [
"MIT"
] | 268 | 2017-12-22T11:03:10.000Z | 2022-03-31T15:37:31.000Z | shared/devdriver/apis/ddSocket/tests/ddSocketTests.cpp | GPUOpen-Drivers/pal | bcec463efe5260776d486a5e3da0c549bc0a75d2 | [
"MIT"
] | 79 | 2017-12-22T12:26:52.000Z | 2022-03-30T13:06:30.000Z | shared/devdriver/apis/ddSocket/tests/ddSocketTests.cpp | GPUOpen-Drivers/pal | bcec463efe5260776d486a5e3da0c549bc0a75d2 | [
"MIT"
] | 92 | 2017-12-22T12:21:16.000Z | 2022-03-29T22:34:17.000Z |
#include <ddSocketTests.h>
#include <ddCommon.h>
#include <ddNet.h>
#include <string>
using namespace DevDriver;
/// Unit Tests /////////////////////////////////////////////////////////////////////////////////////
/// Arbitrary protocol id value used for testing
const DDProtocolId kTestProtocolId = 64;
/// Used t... | 34.045741 | 142 | 0.70864 | GPUOpen-Drivers |
c2eab50717a1559fa68a9e8c6751469299518772 | 3,807 | cpp | C++ | code/msvc/Versity/versity.cpp | akrzemi1/Mach7 | eef288eb9fe59712ff153dd70791365391b7b118 | [
"BSD-3-Clause"
] | 1,310 | 2015-01-04T03:44:04.000Z | 2022-03-18T04:44:01.000Z | code/msvc/Versity/versity.cpp | akrzemi1/Mach7 | eef288eb9fe59712ff153dd70791365391b7b118 | [
"BSD-3-Clause"
] | 62 | 2015-01-12T07:59:17.000Z | 2021-11-14T22:02:14.000Z | code/msvc/Versity/versity.cpp | akrzemi1/Mach7 | eef288eb9fe59712ff153dd70791365391b7b118 | [
"BSD-3-Clause"
] | 108 | 2015-02-13T17:39:07.000Z | 2021-11-18T11:06:59.000Z | //
// Mach7: Pattern Matching Library for C++
//
// Copyright 2011-2013, Texas A&M University.
// Copyright 2014 Yuriy Solodkyy.
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are met:
... | 33.991071 | 131 | 0.57762 | akrzemi1 |
c2f30b2de6682e61039db5ca962cb08941a559ec | 21,133 | cpp | C++ | src/image.cpp | trbauer/cls | 3709dfd2b670c703c0d7d7454c99378cc74dd057 | [
"MIT"
] | 2 | 2020-05-20T16:56:25.000Z | 2020-05-27T16:49:43.000Z | src/image.cpp | trbauer/cls | 3709dfd2b670c703c0d7d7454c99378cc74dd057 | [
"MIT"
] | 8 | 2018-12-10T18:34:33.000Z | 2020-05-19T17:58:43.000Z | src/image.cpp | trbauer/cls | 3709dfd2b670c703c0d7d7454c99378cc74dd057 | [
"MIT"
] | null | null | null | #include "image.hpp"
#include "system.hpp"
#ifdef USE_LODE_PNG
// up from src and in deps
#include "../deps/lodepng/lodepng.h"
#endif
#ifdef _WIN32
#include <Windows.h>
// #include <Wincodec.h>
#endif
#include <cmath>
#include <cstdlib>
#include <fstream>
#include <iomanip>
#include <string>
#include <vector>
uint8_t... | 28.989026 | 91 | 0.559362 | trbauer |
c2f8dc920bffb4c7ad64de06db5abec5dc3d4101 | 24,946 | cc | C++ | src/ascii_network_parser.cc | motis-project/rapid | 3b18e9a8169b663db891fe5de49ff5da2627e589 | [
"MIT"
] | 1 | 2020-08-05T08:38:43.000Z | 2020-08-05T08:38:43.000Z | src/ascii_network_parser.cc | motis-project/rapid | 3b18e9a8169b663db891fe5de49ff5da2627e589 | [
"MIT"
] | 1 | 2020-07-26T19:44:28.000Z | 2020-07-26T19:44:28.000Z | src/ascii_network_parser.cc | motis-project/rapid | 3b18e9a8169b663db891fe5de49ff5da2627e589 | [
"MIT"
] | null | null | null | #include "soro/ascii_network_parser.h"
#include <cassert>
#include <iostream>
#include <optional>
#include <sstream>
#include "cista/containers/hash_map.h"
#include "cista/containers/hash_set.h"
#include "cista/containers/pair.h"
#include "cista/containers/variant.h"
#include "utl/enumerate.h"
#include "utl/erase_if... | 32.023107 | 80 | 0.572076 | motis-project |
6c060efa119513d0ddf4f441ba263fbb6384c4e9 | 529 | cpp | C++ | Console3D/Source/Scene/Scene.cpp | l3ch4tno1r/Console3D | acb6b92555e01b8ada31cd426753b3a671a6afdd | [
"Apache-2.0"
] | 3 | 2020-11-01T18:17:26.000Z | 2021-03-19T21:40:50.000Z | Console3D/Source/Scene/Scene.cpp | l3ch4tno1r/Console3D | acb6b92555e01b8ada31cd426753b3a671a6afdd | [
"Apache-2.0"
] | null | null | null | Console3D/Source/Scene/Scene.cpp | l3ch4tno1r/Console3D | acb6b92555e01b8ada31cd426753b3a671a6afdd | [
"Apache-2.0"
] | null | null | null | #include <cmath>
#include "Scene.h"
#include "Entity.h"
#include "StdComponent.h"
#include "Console3D/Source/Core/Console.h"
namespace LCN
{
Entity Scene::Create2DEntity()
{
Entity result = { m_Registry.create(), this };
result.Add<Component::Transform2DCmp>();
return result;
}
Entity Scene::Create3DEn... | 15.114286 | 48 | 0.688091 | l3ch4tno1r |
6c08f9a8b0f49d4dc8f881d1dc8346562b67410d | 4,663 | cpp | C++ | test/test_tensor.cpp | kthur/he-transformer | 5d3294473edba10f2789197043b8d8704409719e | [
"Apache-2.0"
] | null | null | null | test/test_tensor.cpp | kthur/he-transformer | 5d3294473edba10f2789197043b8d8704409719e | [
"Apache-2.0"
] | null | null | null | test/test_tensor.cpp | kthur/he-transformer | 5d3294473edba10f2789197043b8d8704409719e | [
"Apache-2.0"
] | null | null | null | //*****************************************************************************
// Copyright 2018-2019 Intel Corporation
//
// 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://w... | 36.429688 | 79 | 0.64851 | kthur |
6c0b2820a9fd74e06aaefa76881747bc22c4e44f | 249 | cpp | C++ | Src/Util/Mutex.cpp | jan-van-bergen/GPU-Pathtracer | a1538ea910c431ad35d0b3d6a9db42a9ec56516f | [
"MIT"
] | 235 | 2020-05-26T22:33:27.000Z | 2022-02-08T22:25:57.000Z | Src/Util/Mutex.cpp | jan-van-bergen/GPU-Pathtracer | a1538ea910c431ad35d0b3d6a9db42a9ec56516f | [
"MIT"
] | 9 | 2020-09-16T12:55:36.000Z | 2022-01-23T08:21:47.000Z | Src/Util/Mutex.cpp | jan-van-bergen/GPU-Pathtracer | a1538ea910c431ad35d0b3d6a9db42a9ec56516f | [
"MIT"
] | 12 | 2020-05-11T21:46:57.000Z | 2022-01-28T17:46:13.000Z | #include "Mutex.h"
#include <mutex>
struct Impl { std::mutex mutex; };
void Mutex::init() {
impl = new Impl();
}
void Mutex::free() {
delete impl;
}
void Mutex::lock() {
impl->mutex.lock();
}
void Mutex::unlock() {
impl->mutex.unlock();
}
| 11.318182 | 34 | 0.606426 | jan-van-bergen |
6c0f5fee186f7576e3d6ef86ed35a3f1f58110d6 | 9,227 | cxx | C++ | Plugins/Mipf_Plugin_MitkStdWidgets/MultiViewsWidget/MultiViewsWidget.cxx | linson7017/MIPF | adf982ae5de69fca9d6599fbbbd4ca30f4ae9767 | [
"ECL-2.0",
"Apache-2.0"
] | 4 | 2017-04-13T06:01:49.000Z | 2019-12-04T07:23:53.000Z | Plugins/Mipf_Plugin_MitkStdWidgets/MultiViewsWidget/MultiViewsWidget.cxx | linson7017/MIPF | adf982ae5de69fca9d6599fbbbd4ca30f4ae9767 | [
"ECL-2.0",
"Apache-2.0"
] | 1 | 2017-10-27T02:00:44.000Z | 2017-10-27T02:00:44.000Z | Plugins/Mipf_Plugin_MitkStdWidgets/MultiViewsWidget/MultiViewsWidget.cxx | linson7017/MIPF | adf982ae5de69fca9d6599fbbbd4ca30f4ae9767 | [
"ECL-2.0",
"Apache-2.0"
] | 2 | 2017-09-06T01:59:07.000Z | 2019-12-04T07:23:54.000Z | #include "MultiViewsWidget.h"
#include "QmitkStdMultiWidget.h"
#include "mitkRenderingManager.h"
#include <QHBoxLayout>
#include <QVBoxLayout>
#include "mitkProperties.h"
#include "mitkRenderingManager.h"
#include "mitkPointSet.h"
#include "mitkPointSetDataInteractor.h"
#include "mitkImageAccessByItk.h"
#include "mit... | 35.902724 | 129 | 0.66067 | linson7017 |
6c11eec25354564f4f10c4c42946f459caffe75c | 9,476 | cpp | C++ | Sourcecode/private/mx/core/ElementInterface.cpp | Webern/MxOld | 822f5ccc92363ddff118e3aa3a048c63be1e857e | [
"MIT"
] | 45 | 2019-04-16T19:55:08.000Z | 2022-02-14T02:06:32.000Z | Sourcecode/private/mx/core/ElementInterface.cpp | Webern/MxOld | 822f5ccc92363ddff118e3aa3a048c63be1e857e | [
"MIT"
] | 70 | 2019-04-07T22:45:21.000Z | 2022-03-03T15:35:59.000Z | Sourcecode/private/mx/core/ElementInterface.cpp | Webern/MxOld | 822f5ccc92363ddff118e3aa3a048c63be1e857e | [
"MIT"
] | 21 | 2019-05-13T13:59:06.000Z | 2022-03-25T02:21:05.000Z | // MusicXML Class Library
// Copyright (c) by Matthew James Briggs
// Distributed under the MIT License
#include "mx/core/ElementInterface.h"
#include "ezxml/XElement.h"
#include "ezxml/XElementIterator.h"
#include "ezxml/XFactory.h"
#include <sstream>
namespace mx
{
namespace core
{
const char* INDEN... | 29.337461 | 147 | 0.469607 | Webern |
6c148adcabd11a2a58a27d6d4fac83edfc75cfba | 1,689 | cpp | C++ | src/jacoTests/jaco_joint_states.cpp | jpmerc/perception3d | f0eef9271afdf9b9100448b88ae1921a97bbba88 | [
"BSD-3-Clause"
] | null | null | null | src/jacoTests/jaco_joint_states.cpp | jpmerc/perception3d | f0eef9271afdf9b9100448b88ae1921a97bbba88 | [
"BSD-3-Clause"
] | null | null | null | src/jacoTests/jaco_joint_states.cpp | jpmerc/perception3d | f0eef9271afdf9b9100448b88ae1921a97bbba88 | [
"BSD-3-Clause"
] | null | null | null | #include <ros/ros.h>
// PCL specific includes
#include <jaco_msgs/JointAngles.h>
#include <angles/angles.h>
#include <sensor_msgs/JointState.h>
ros::Publisher pub;
using namespace std;
int seq = 0;
void angles_callback(const jaco_msgs::JointAnglesConstPtr& input_fingers){
seq++;
const char* nameArgs[] = {"... | 31.277778 | 126 | 0.722321 | jpmerc |
6c15aa39f08f8964fec29ebb9269aeb25097ee7a | 2,096 | hpp | C++ | Interface/plugininterface.hpp | MaxFork/Dynamic-Application | a5a5b8e1e572bd3686446252b20d1fd7cc3ae4d2 | [
"MIT"
] | 7 | 2021-04-12T09:54:06.000Z | 2021-12-24T19:33:41.000Z | Interface/plugininterface.hpp | MaxFork/Dynamic-Application | a5a5b8e1e572bd3686446252b20d1fd7cc3ae4d2 | [
"MIT"
] | 1 | 2021-04-12T21:08:23.000Z | 2021-12-02T22:44:08.000Z | Interface/plugininterface.hpp | MaxFork/Dynamic-Application | a5a5b8e1e572bd3686446252b20d1fd7cc3ae4d2 | [
"MIT"
] | 2 | 2021-04-12T09:46:46.000Z | 2021-04-12T12:37:57.000Z | #ifndef PLUGININTERFACE_HPP
#define PLUGININTERFACE_HPP
#include "common.hpp"
#include <vector>
#include <string>
#include <map>
//!JSON
#include "third-party/json/json.hpp"
//! TODO json configuration...
//! Add new feature for configuration plugins based on json file.
struct PluginDetail {
std::string name;
s... | 23.818182 | 79 | 0.6875 | MaxFork |
6c17b988f44e3268ead9d80edcd644c75bae8556 | 1,241 | hpp | C++ | core/BpNodeLib.hpp | lkpworkspace/SoftwareFactory | 578b7a7541b8e818097ca7948a1dbc7957e248ee | [
"MIT"
] | 2 | 2022-02-10T20:27:26.000Z | 2022-03-10T01:21:50.000Z | core/BpNodeLib.hpp | lkpworkspace/SoftwareFactory | 578b7a7541b8e818097ca7948a1dbc7957e248ee | [
"MIT"
] | null | null | null | core/BpNodeLib.hpp | lkpworkspace/SoftwareFactory | 578b7a7541b8e818097ca7948a1dbc7957e248ee | [
"MIT"
] | 1 | 2022-02-11T14:17:53.000Z | 2022-02-11T14:17:53.000Z | #pragma once
#include <functional>
#include <unordered_map>
#include "BpModule.hpp"
#include "BpVariable.hpp"
namespace bp {
class BpNode;
class BpNodeEv;
class BpGraph;
class BpNodeLib
{
typedef std::shared_ptr<BpNodeEv> create_ev_node_t();
typedef std::shared_ptr<BpNode> create_base_node_t();
public:
BpN... | 28.204545 | 100 | 0.702659 | lkpworkspace |
6c209acbd8209397ce1063aa474ae436526766b3 | 2,514 | hpp | C++ | src/d2d/io/dsv_reader.hpp | alexander-at-github/d2d | 304b4ab1b69ed336e558306f8ada64734798eab2 | [
"BSD-3-Clause"
] | null | null | null | src/d2d/io/dsv_reader.hpp | alexander-at-github/d2d | 304b4ab1b69ed336e558306f8ada64734798eab2 | [
"BSD-3-Clause"
] | null | null | null | src/d2d/io/dsv_reader.hpp | alexander-at-github/d2d | 304b4ab1b69ed336e558306f8ada64734798eab2 | [
"BSD-3-Clause"
] | null | null | null | #pragma once
#include <algorithm>
#include <fstream>
#include <string>
#include <vector>
#include "d2d/util/clo.hpp"
#include "d2d/util/utils.hpp"
namespace d2d { namespace io {
template<typename numeric_type>
class dsv_reader {
public:
dsv_reader(std::string infilename, bool filtercovered) :
infile... | 24.173077 | 77 | 0.560064 | alexander-at-github |
6c348194c80183a19e672dab21ace9b4eb50c4c9 | 1,846 | cpp | C++ | Geometry-Algorithms/Graham scan O(NlogN).cpp | Fresher001/Competitive-Programming-2 | e1e953bb1d4ade46cc670b2d0432f68504538ed2 | [
"MIT"
] | 86 | 2016-10-18T23:30:36.000Z | 2022-01-09T21:57:34.000Z | Geometry-Algorithms/Graham scan O(NlogN).cpp | Fresher001/Competitive-Programming-2 | e1e953bb1d4ade46cc670b2d0432f68504538ed2 | [
"MIT"
] | 1 | 2018-04-13T09:38:36.000Z | 2018-04-13T09:38:36.000Z | Geometry-Algorithms/Graham scan O(NlogN).cpp | Fresher001/Competitive-Programming-2 | e1e953bb1d4ade46cc670b2d0432f68504538ed2 | [
"MIT"
] | 39 | 2017-03-02T07:25:40.000Z | 2020-12-14T12:13:50.000Z | #include <bits/stdc++.h>
using namespace std;
#define Point pair<double,double>
#define x first
#define y second
/**
< 0 for counter-clockwise (trigonometric)
= 0 for collinear
> 0 for clockwise (anti-trigonometric)
**/
double CCW(const Point& A, const Point& B, const Point& C)
{
return (C.x - A.x) *... | 21.218391 | 95 | 0.524377 | Fresher001 |
6c35b79708d02bde48e01a80c2529151cfbb4782 | 41,050 | cpp | C++ | external/pcl/ProcessInterface.cpp | AstrocatApp/AstrocatApp | 0b3b33861260ed495bfcbd4c8601ab82ad247d37 | [
"MIT"
] | 2 | 2021-03-12T08:36:37.000Z | 2021-04-05T19:34:08.000Z | external/pcl/ProcessInterface.cpp | OzerOzdemir/AstrocatApp | 8da06ab819bc71010daa921f7a2c214c200d1ad3 | [
"MIT"
] | 9 | 2021-02-08T08:58:33.000Z | 2021-10-07T05:16:07.000Z | external/pcl/ProcessInterface.cpp | OzerOzdemir/AstrocatApp | 8da06ab819bc71010daa921f7a2c214c200d1ad3 | [
"MIT"
] | 1 | 2021-02-05T06:40:16.000Z | 2021-02-05T06:40:16.000Z | // ____ ______ __
// / __ \ / ____// /
// / /_/ // / / /
// / ____// /___ / /___ PixInsight Class Library
// /_/ \____//_____/ PCL 2.4.7
// ----------------------------------------------------------------------------
// pcl/ProcessInterface.cpp - Released 2020-12-17T15:46:35Z
// -----------------... | 32.945425 | 147 | 0.620512 | AstrocatApp |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.