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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
6e2e1340dd2c865bbb622e8844181cc7ed1a2831 | 5,857 | hpp | C++ | src/cxx/soSpan.hpp | BenSolus/vulkan-engine | 04a7114b7f9b2617cf6b5133e71190b1f48c0575 | [
"MIT"
] | null | null | null | src/cxx/soSpan.hpp | BenSolus/vulkan-engine | 04a7114b7f9b2617cf6b5133e71190b1f48c0575 | [
"MIT"
] | null | null | null | src/cxx/soSpan.hpp | BenSolus/vulkan-engine | 04a7114b7f9b2617cf6b5133e71190b1f48c0575 | [
"MIT"
] | null | null | null | /*
* Copyright (C) 2017-2018 by Bennet Carstensen
*
* 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, ... | 27.497653 | 79 | 0.668943 | BenSolus |
6e36a39e3edd4160ef1a80034b5197bff757d96a | 5,263 | cpp | C++ | vts-libs/vts0/encoder.cpp | melowntech/vts-libs | ffbf889b6603a8f95d3c12a2602232ff9c5d2236 | [
"BSD-2-Clause"
] | 2 | 2020-04-20T01:44:46.000Z | 2021-01-15T06:54:51.000Z | externals/browser/externals/browser/externals/vts-libs/vts-libs/vts0/encoder.cpp | HanochZhu/vts-browser-unity-plugin | 32a22d41e21b95fb015326f95e401d87756d0374 | [
"BSD-2-Clause"
] | 2 | 2020-01-29T16:30:49.000Z | 2020-06-03T15:21:29.000Z | externals/browser/externals/browser/externals/vts-libs/vts-libs/vts0/encoder.cpp | HanochZhu/vts-browser-unity-plugin | 32a22d41e21b95fb015326f95e401d87756d0374 | [
"BSD-2-Clause"
] | 1 | 2019-09-25T05:10:07.000Z | 2019-09-25T05:10:07.000Z | /**
* Copyright (c) 2017 Melown Technologies SE
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* * Redistributions of source code must retain the above copyright notice,
* this list of conditions and the f... | 30.074286 | 78 | 0.629869 | melowntech |
6e3d83a95a0c8fced9101c0ca753565062e0e0f1 | 1,348 | cpp | C++ | higan/sfc/controller/controller.cpp | ameer-bauer/higan-097 | a4a28968173ead8251cfa7cd6b5bf963ee68308f | [
"Info-ZIP"
] | 3 | 2016-03-23T01:17:36.000Z | 2019-10-25T06:41:09.000Z | higan/sfc/controller/controller.cpp | ameer-bauer/higan-097 | a4a28968173ead8251cfa7cd6b5bf963ee68308f | [
"Info-ZIP"
] | null | null | null | higan/sfc/controller/controller.cpp | ameer-bauer/higan-097 | a4a28968173ead8251cfa7cd6b5bf963ee68308f | [
"Info-ZIP"
] | null | null | null | #include <sfc/sfc.hpp>
namespace SuperFamicom {
#include "gamepad/gamepad.cpp"
#include "multitap/multitap.cpp"
#include "mouse/mouse.cpp"
#include "superscope/superscope.cpp"
#include "justifier/justifier.cpp"
#include "usart/usart.cpp"
Controller::Controller(bool port) : port(port) {
if(!thread) create(Controlle... | 25.433962 | 94 | 0.672107 | ameer-bauer |
6e3fc43bb43615486d7317f69e9a0ada86c8d6b0 | 3,061 | cpp | C++ | SQLComponents/SQLMessage.cpp | edwig/Kwatta | ce1ca2907608e65ed62d7dbafa9ab1d030caccfe | [
"MIT"
] | 1 | 2021-12-31T17:20:01.000Z | 2021-12-31T17:20:01.000Z | SQLComponents/SQLMessage.cpp | edwig/Kwatta | ce1ca2907608e65ed62d7dbafa9ab1d030caccfe | [
"MIT"
] | 10 | 2022-01-14T13:28:32.000Z | 2022-02-13T12:46:34.000Z | SQLComponents/SQLMessage.cpp | edwig/Kwatta | ce1ca2907608e65ed62d7dbafa9ab1d030caccfe | [
"MIT"
] | null | null | null | ////////////////////////////////////////////////////////////////////////
//
// File: SQLMessage.h
//
// Copyright (c) 1998-2022 ir. W.E. Huisman
// All rights reserved
//
// Permission is hereby granted, free of charge, to any person obtaining a copy of
// this software and associated documentation files (the "Softwar... | 34.393258 | 107 | 0.648154 | edwig |
6e416ce57e8f621ad5e75d9138d0d60d0eddbf94 | 992 | cpp | C++ | SnowEng/Material.cpp | Xeais/SnowEng | 6fa1b583be40e69ae590580a8baa04038d2d990f | [
"BSD-3-Clause-Clear"
] | 1 | 2020-09-30T02:40:37.000Z | 2020-09-30T02:40:37.000Z | SnowEng/Material.cpp | Xeais/SnowEng | 6fa1b583be40e69ae590580a8baa04038d2d990f | [
"BSD-3-Clause-Clear"
] | null | null | null | SnowEng/Material.cpp | Xeais/SnowEng | 6fa1b583be40e69ae590580a8baa04038d2d990f | [
"BSD-3-Clause-Clear"
] | null | null | null | #include "Material.h"
Material::Material(SimpleVertexShader* VertexShader, SimplePixelShader* PixelShader, ID3D11ShaderResourceView* Albedo, ID3D11ShaderResourceView* Normal,
ID3D11ShaderResourceView* Roughness, ID3D11ShaderResourceView* Metal, ID3D11SamplerState* Sampler)
{
vertexShader = Vertex... | 34.206897 | 153 | 0.787298 | Xeais |
6e47cbc4856ba1f424b46c6cc35d7fd40c0f0cea | 2,649 | hpp | C++ | libs/LibRest/JsonParser.hpp | julienlopez/LolAnalyzer | 11c0f98d413878f5ba828c4760e794cf1e8a3e52 | [
"MIT"
] | 1 | 2022-03-24T03:19:52.000Z | 2022-03-24T03:19:52.000Z | libs/LibRest/JsonParser.hpp | julienlopez/LolAnalyzer | 11c0f98d413878f5ba828c4760e794cf1e8a3e52 | [
"MIT"
] | 2 | 2022-02-23T22:17:06.000Z | 2022-03-03T21:00:48.000Z | libs/LibRest/JsonParser.hpp | julienlopez/LolAnalyzer | 11c0f98d413878f5ba828c4760e794cf1e8a3e52 | [
"MIT"
] | null | null | null | #pragma once
#include "Algorithms.hpp"
#include "Result.hpp"
#include <expected_task/expected_optional_bridge.hpp>
#include <cpprest/json.h>
namespace LibRest::JsonParser
{
template <class T> inline Result<T> cast(const web::json::value& value)
{
return tl::make_unexpected(U("unsupported type"));
}
template <... | 33.961538 | 118 | 0.639487 | julienlopez |
6e4ad5662226f5dfde1c79c5f5795ca771120dc0 | 985 | cpp | C++ | src/Net.cpp | edelkas/pfdb | f492767cb1fce18e737cdd6beeca23293a6acab4 | [
"MIT"
] | null | null | null | src/Net.cpp | edelkas/pfdb | f492767cb1fce18e737cdd6beeca23293a6acab4 | [
"MIT"
] | null | null | null | src/Net.cpp | edelkas/pfdb | f492767cb1fce18e737cdd6beeca23293a6acab4 | [
"MIT"
] | null | null | null | #include <iostream>
#include "Net.hpp"
#include "FilmAffinity.hpp"
Net::Net() : downloader(true), parser() {
//downloader = new Downloader(true);
//parser = new Parser;
}
Net::~Net() {
}
Website Net::Host(const std::string& url) {
if (url.find("imdb") != std::string::npos) {
return IMDB;
} else if (url.... | 20.520833 | 64 | 0.608122 | edelkas |
6e4e875358e1ec900eccb961feb26ccc944b9c01 | 840 | cpp | C++ | Prim.cpp | HarshithGP/Algorithm_Diary | 6997d20d0e9221ee628f257ecf53dbe23811021b | [
"Apache-2.0"
] | null | null | null | Prim.cpp | HarshithGP/Algorithm_Diary | 6997d20d0e9221ee628f257ecf53dbe23811021b | [
"Apache-2.0"
] | null | null | null | Prim.cpp | HarshithGP/Algorithm_Diary | 6997d20d0e9221ee628f257ecf53dbe23811021b | [
"Apache-2.0"
] | null | null | null | #include<iostream>
#include<conio.h>
using namespace std;
void prim(int n,int a[][10])
{
int i,j,u,v,visit[10],e=0,mincost=0,min;
for(i=1;i<=n;i++)
visit[i]=0;
visit[1]=1;
cout<<"Edges of spanning tree are \n";
while(e!=n-1)
{
min=999;
for(i=1;i<=n;i++)
{
for(j=1;j<=n;j++)
{
i... | 15 | 42 | 0.442857 | HarshithGP |
6e4ec12dff6db43913c9a1687b4c44dfb7cd725a | 1,228 | cpp | C++ | Sources/Overload/OvTools/src/OvTools/Time/Clock.cpp | kmqwerty/Overload | f3b8c751a05815400ed35dd2be20a3900f3454fd | [
"MIT"
] | 755 | 2019-07-10T01:26:39.000Z | 2022-03-31T12:43:19.000Z | Sources/Overload/OvTools/src/OvTools/Time/Clock.cpp | kmqwerty/Overload | f3b8c751a05815400ed35dd2be20a3900f3454fd | [
"MIT"
] | 111 | 2020-02-28T23:30:10.000Z | 2022-01-18T13:57:30.000Z | Sources/Overload/OvTools/src/OvTools/Time/Clock.cpp | kmqwerty/Overload | f3b8c751a05815400ed35dd2be20a3900f3454fd | [
"MIT"
] | 97 | 2019-11-06T15:19:56.000Z | 2022-03-25T08:40:04.000Z | /**
* @project: Overload
* @author: Overload Tech.
* @licence: MIT
*/
#include "OvTools/Time/Clock.h"
float OvTools::Time::Clock::GetFramerate()
{
return 1.0f / (__DELTA_TIME);
}
float OvTools::Time::Clock::GetDeltaTime()
{
return __DELTA_TIME * __TIME_SCALE;
}
float OvTools::Time::Clock::GetDeltaTimeUnscaled()
{... | 18.058824 | 88 | 0.720684 | kmqwerty |
6e5881c11667ee77b58afdab9f9bd3a25839c0f3 | 549 | hpp | C++ | src/parser/types/zero_or_more_type.hpp | dondieselkopf/tmp-parser | 50a9a6238bb67e6998404825572d5d7f915db841 | [
"MIT"
] | null | null | null | src/parser/types/zero_or_more_type.hpp | dondieselkopf/tmp-parser | 50a9a6238bb67e6998404825572d5d7f915db841 | [
"MIT"
] | null | null | null | src/parser/types/zero_or_more_type.hpp | dondieselkopf/tmp-parser | 50a9a6238bb67e6998404825572d5d7f915db841 | [
"MIT"
] | null | null | null | /*
* zero_or_more_type.hpp
*
* Created on: 08.11.2015
* Author: sohrmann
*/
#ifndef ZERO_OR_MORE_TYPE_HPP_
#define ZERO_OR_MORE_TYPE_HPP_
namespace parser {
/// match any number of T
template <typename T>
struct zero_or_more_type {
template <typename ParserType>
static bool match(ParserType& parser) {
... | 17.15625 | 40 | 0.714026 | dondieselkopf |
6e5919beac013431dc5089f075f07913a72c82d0 | 18,815 | cpp | C++ | test/unit/io/structure_file/structure_file_input_test.cpp | giesselmann/seqan3 | 3a26b42b7066ac424b6e604115fe516607c308c0 | [
"BSD-3-Clause"
] | null | null | null | test/unit/io/structure_file/structure_file_input_test.cpp | giesselmann/seqan3 | 3a26b42b7066ac424b6e604115fe516607c308c0 | [
"BSD-3-Clause"
] | null | null | null | test/unit/io/structure_file/structure_file_input_test.cpp | giesselmann/seqan3 | 3a26b42b7066ac424b6e604115fe516607c308c0 | [
"BSD-3-Clause"
] | null | null | null | // ==========================================================================
// SeqAn - The Library for Sequence Analysis
// ==========================================================================
//
// Copyright (c) 2006-2018, Knut Reinert, FU Berlin
// Copyright (c) 2016-2018, Knut Reinert & MPI M... | 40.202991 | 112 | 0.621632 | giesselmann |
6e5bed6f2f4169b78d8b3612ad39df6c12159dd0 | 2,265 | cpp | C++ | 0139_Word_Break.cpp | 21PIRLO21/LeetCode2020 | ccf318749067214ff3cdf9964a81d6b8422f986e | [
"MIT"
] | null | null | null | 0139_Word_Break.cpp | 21PIRLO21/LeetCode2020 | ccf318749067214ff3cdf9964a81d6b8422f986e | [
"MIT"
] | null | null | null | 0139_Word_Break.cpp | 21PIRLO21/LeetCode2020 | ccf318749067214ff3cdf9964a81d6b8422f986e | [
"MIT"
] | null | null | null | #include <iostream>
#include <vector>
#include <queue>
#include <unordered_set>
using namespace std;
/* Medium */
class Solution_1 {
public:
bool wordBreak(string s, vector<string>& wordDict) {
// 学习一下auto的用法
auto wordDictSet = unordered_set<string>();
for (auto word: wordDict... | 29.802632 | 103 | 0.442826 | 21PIRLO21 |
6e5bf8e3c97dc4caee79182f3300e2996d71aac0 | 212 | cpp | C++ | tsMuxer/AbstractDemuxer.cpp | MattL0/tsMuxer | f9f866cde1e71a915caccddea4982b9518247b14 | [
"Apache-2.0"
] | 459 | 2019-07-23T23:46:51.000Z | 2022-03-30T12:20:38.000Z | tsMuxer/AbstractDemuxer.cpp | MattL0/tsMuxer | f9f866cde1e71a915caccddea4982b9518247b14 | [
"Apache-2.0"
] | 387 | 2019-07-31T16:45:37.000Z | 2022-03-31T19:56:35.000Z | tsMuxer/AbstractDemuxer.cpp | MattL0/tsMuxer | f9f866cde1e71a915caccddea4982b9518247b14 | [
"Apache-2.0"
] | 123 | 2019-07-23T23:46:53.000Z | 2022-03-06T17:55:39.000Z |
#include "abstractDemuxer.h"
#include "subTrackFilter.h"
AbstractDemuxer::~AbstractDemuxer()
{
for (PIDFilters::iterator itr = m_pidFilters.begin(); itr != m_pidFilters.end(); ++itr) delete itr->second;
}
| 21.2 | 111 | 0.716981 | MattL0 |
6e5d2da957ff7a36fa80b730e1f745c088d4f1f8 | 1,354 | cpp | C++ | source/std/functions.cpp | Venkster123/Zhetapi | 9a034392c06733c57d892afde300e90c4b7036f9 | [
"MIT"
] | 27 | 2020-06-05T15:39:31.000Z | 2022-01-07T05:03:01.000Z | source/std/functions.cpp | Venkster123/Zhetapi | 9a034392c06733c57d892afde300e90c4b7036f9 | [
"MIT"
] | 1 | 2021-02-12T04:51:40.000Z | 2021-02-12T04:51:40.000Z | source/std/functions.cpp | Venkster123/Zhetapi | 9a034392c06733c57d892afde300e90c4b7036f9 | [
"MIT"
] | 4 | 2021-02-12T04:39:55.000Z | 2021-11-15T08:00:06.000Z | #include <std/functions.hpp>
namespace zhetapi {
namespace special {
double ln_gamma(double x)
{
if (x <= 0)
throw("ln_gamma: expected a positive argument.");
static const int N = 14;
static const double C[] = {
57.1562356658629235,
-59.5979603554754912,
14.1360979747417471,
-0.491913816097620199,
0... | 17.139241 | 58 | 0.663959 | Venkster123 |
6e6159da39b4ddb90d9463e53d1830c39ec66970 | 2,829 | cpp | C++ | src/uFldTagManagerAgent/VTag.cpp | Joe-Doyle/moos-ivp-agent | 164d590808bcac6242dd22d1f25aa4248f7d9c2d | [
"MIT"
] | 1 | 2021-11-22T00:20:18.000Z | 2021-11-22T00:20:18.000Z | src/uFldTagManagerAgent/VTag.cpp | Joe-Doyle/moos-ivp-agent | 164d590808bcac6242dd22d1f25aa4248f7d9c2d | [
"MIT"
] | 15 | 2021-08-09T05:38:26.000Z | 2021-11-11T17:16:48.000Z | src/uFldTagManagerAgent/VTag.cpp | Joe-Doyle/moos-ivp-agent | 164d590808bcac6242dd22d1f25aa4248f7d9c2d | [
"MIT"
] | 3 | 2021-08-09T23:55:51.000Z | 2021-11-11T01:29:37.000Z | /*****************************************************************/
/* NAME: Michael Benjamin */
/* ORGN: Dept of Mechanical Eng / CSAIL, MIT Cambridge MA */
/* FILE: VTag.cpp */
/* DATE: Sep 21st, 2015 ... | 29.46875 | 67 | 0.461647 | Joe-Doyle |
6e6e5199213649025c0df69b2e5b564e133abc19 | 897 | hpp | C++ | Tools/ReflectionGenerator/ReflectionGeneratorTypes.hpp | gunstarpl/Game-Engine | b800ff84b4c5487a33a6c86fca6dcac1e584e223 | [
"Unlicense"
] | 10 | 2018-10-12T12:20:11.000Z | 2022-01-20T17:13:50.000Z | Tools/ReflectionGenerator/ReflectionGeneratorTypes.hpp | gunstarpl/Game-Engine | b800ff84b4c5487a33a6c86fca6dcac1e584e223 | [
"Unlicense"
] | null | null | null | Tools/ReflectionGenerator/ReflectionGeneratorTypes.hpp | gunstarpl/Game-Engine | b800ff84b4c5487a33a6c86fca6dcac1e584e223 | [
"Unlicense"
] | null | null | null | /*
Copyright (c) 2018-2021 Piotr Doan. All rights reserved.
Software distributed under the permissive MIT License.
*/
#pragma once
/*
Reflection Generator Types
*/
struct ReflectionGeneratorParameters
{
std::string_view targetType;
std::string_view targetName;
std::vector<std::string_view> ta... | 22.425 | 60 | 0.717949 | gunstarpl |
6e7dafe51de933ee0d53cad31d2820ea5645c9b4 | 1,297 | cpp | C++ | sources/Cursor.cpp | prfcto2/noName | e179d49282755039f2acb267931ef445aff5000b | [
"MIT"
] | 3 | 2019-08-05T13:33:01.000Z | 2022-02-14T12:55:18.000Z | sources/Cursor.cpp | prfcto2/noName | e179d49282755039f2acb267931ef445aff5000b | [
"MIT"
] | null | null | null | sources/Cursor.cpp | prfcto2/noName | e179d49282755039f2acb267931ef445aff5000b | [
"MIT"
] | null | null | null | # include <Cursor.hpp>
Cursor::Cursor()
: m_player(nullptr)
{
# ifdef RELEASE
shoot_music = &AssetManager::getMusic("shoot.wav");
# endif // RELEASE
# ifdef DEBUG
Report::report_id(Report::report::extra, "Cursor created");
# endif // DEBUG
}
Cursor::~Cursor()
{
# ifdef RELEASE
shoot_music = nullptr... | 19.358209 | 71 | 0.609869 | prfcto2 |
6e7e182754876125b676ff64102613d7c4ec7336 | 93 | hpp | C++ | OpenGL/include/texture.hpp | eryeden/AmoebaSim | ed497ada57daa1041df2b0d4c46c900898e9e239 | [
"MIT"
] | 1 | 2016-04-03T09:10:45.000Z | 2016-04-03T09:10:45.000Z | OpenGL/include/texture.hpp | eryeden/AmoebaSim | ed497ada57daa1041df2b0d4c46c900898e9e239 | [
"MIT"
] | null | null | null | OpenGL/include/texture.hpp | eryeden/AmoebaSim | ed497ada57daa1041df2b0d4c46c900898e9e239 | [
"MIT"
] | null | null | null | #ifndef TEXTURE_HPP
#define TEXTURE_HPP
GLuint createTexture(char const* Filename);
#endif
| 13.285714 | 43 | 0.806452 | eryeden |
6e817f719ed3d4d40dba08c1651f1522d7d956ce | 1,486 | cpp | C++ | CommonGame/GameConnection.cpp | automaton82/pspace | 34c3aaaf4dadb63df3183d39535aae0ac0560599 | [
"BSD-3-Clause"
] | null | null | null | CommonGame/GameConnection.cpp | automaton82/pspace | 34c3aaaf4dadb63df3183d39535aae0ac0560599 | [
"BSD-3-Clause"
] | null | null | null | CommonGame/GameConnection.cpp | automaton82/pspace | 34c3aaaf4dadb63df3183d39535aae0ac0560599 | [
"BSD-3-Clause"
] | null | null | null | //David Millman
#include "GameConnection.h"
GameConnection::GameConnection()
{
}
GameConnection::~GameConnection()
{
}
bool GameConnection::connect(const string& host, Uint16 port)
{
if(!socket.initUDP(host, port))
{
this->debugLog("UDP startup failed!\n");
return false;
}
struct sockaddr_in server;
st... | 17.903614 | 86 | 0.699192 | automaton82 |
6e81d2fb695bb712d69bb6d466db2ea1dd99886a | 4,489 | cpp | C++ | src/dtrun/RunWindow.cpp | Arquivotheca/OpenCDE | 4bb0f65dab345790bcf8d8422a05dda495990cd1 | [
"BSD-2-Clause-FreeBSD"
] | 11 | 2015-05-30T14:58:42.000Z | 2021-10-12T04:50:00.000Z | src/dtrun/RunWindow.cpp | idunham/opencde | 376f7ba54f8b384a5a0b2104ff2b26f9c8ab3582 | [
"BSD-2-Clause-FreeBSD"
] | 1 | 2021-11-30T08:11:39.000Z | 2021-11-30T08:11:39.000Z | src/dtrun/RunWindow.cpp | idunham/opencde | 376f7ba54f8b384a5a0b2104ff2b26f9c8ab3582 | [
"BSD-2-Clause-FreeBSD"
] | 3 | 2015-05-30T14:58:44.000Z | 2017-09-28T21:58:50.000Z | /*
* RunWindow.cpp
*
* Copyright 2011 Robert Tomsick. 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
* n... | 32.528986 | 112 | 0.724438 | Arquivotheca |
6e84a661139581bed830aafa99fbf3c95b464b91 | 164 | cpp | C++ | src/utilities.cpp | jumpmanmv/pixeltetris | 4a40543e5919b3ca3b35c2310da258a6cf5d224f | [
"MIT"
] | 2 | 2021-05-07T15:05:56.000Z | 2021-11-16T17:33:46.000Z | src/utilities.cpp | jumpmanmv/pixeltetris | 4a40543e5919b3ca3b35c2310da258a6cf5d224f | [
"MIT"
] | null | null | null | src/utilities.cpp | jumpmanmv/pixeltetris | 4a40543e5919b3ca3b35c2310da258a6cf5d224f | [
"MIT"
] | null | null | null | #include "utilities.hpp"
#include "piece.hpp"
// Simple function to swap two pieces
void swap(Piece &a, Piece &b)
{
Piece temp = a;
a = b;
b = temp;
} | 14.909091 | 37 | 0.609756 | jumpmanmv |
6e8677ceffb907d1c12ded8ccc4b665217e69e97 | 4,429 | hpp | C++ | include/System/Event/Event.hpp | TheIllusionistMirage/iridescent | 68bc3b310298ab764cdd5772c5bc95be0ad5e768 | [
"Zlib"
] | 1 | 2018-04-22T06:08:42.000Z | 2018-04-22T06:08:42.000Z | include/System/Event/Event.hpp | TheIllusionistMirage/iridescent | 68bc3b310298ab764cdd5772c5bc95be0ad5e768 | [
"Zlib"
] | null | null | null | include/System/Event/Event.hpp | TheIllusionistMirage/iridescent | 68bc3b310298ab764cdd5772c5bc95be0ad5e768 | [
"Zlib"
] | null | null | null | #ifndef EVENT_HPP
#define EVENT_HPP
#include <iostream>
#include <tuple>
#include <utility>
#include <functional>
#include <typeinfo>
#include "System/Types.hpp"
//#include "System/Event/Keyboard.hpp"
//#include "System/Event/Mouse.hpp"
#include "System/Input/Keyboard.hpp"
namespace Iridescent
{
namespace System
{
... | 21.817734 | 79 | 0.525401 | TheIllusionistMirage |
6e8690b9b3ff79e06efd133f8e5414bf99b7511b | 2,627 | cpp | C++ | globally_aligned_events/event_publisher/src/Image.cpp | Haram-kim/Globally_Aligned_Events | 30a7d9d321f528897c437ed5ec6d88718592ab93 | [
"MIT"
] | 11 | 2020-10-19T05:04:16.000Z | 2022-03-08T03:09:06.000Z | globally_aligned_events/event_publisher/src/Image.cpp | Haram-kim/Globally_Aligned_Events | 30a7d9d321f528897c437ed5ec6d88718592ab93 | [
"MIT"
] | 3 | 2021-04-27T16:18:41.000Z | 2021-12-28T05:49:28.000Z | globally_aligned_events/event_publisher/src/Image.cpp | Haram-kim/Globally_Aligned_Events | 30a7d9d321f528897c437ed5ec6d88718592ab93 | [
"MIT"
] | 3 | 2021-03-22T14:21:12.000Z | 2021-09-14T01:02:19.000Z | #include "Image.h"
Image::Image(std::string yaml)
{
isEmpty = false;
isRunning = true;
count = 0;
// read yaml file
cv::FileStorage fSettings(yaml, cv::FileStorage::READ);
if (!fSettings.isOpened())
{
throw std::runtime_error(std::string("Could not open file: ") + yaml);
}
h... | 25.259615 | 85 | 0.52303 | Haram-kim |
6e86e892e6a1a19daf50c419e6401788c7e8260a | 2,854 | cpp | C++ | Src/System/BitFlag_wait.cpp | Gjoll/OpSys | ebba2d8856d21a1f6cefe59c781ce7b9ff1430cf | [
"Apache-2.0"
] | null | null | null | Src/System/BitFlag_wait.cpp | Gjoll/OpSys | ebba2d8856d21a1f6cefe59c781ce7b9ff1430cf | [
"Apache-2.0"
] | null | null | null | Src/System/BitFlag_wait.cpp | Gjoll/OpSys | ebba2d8856d21a1f6cefe59c781ce7b9ff1430cf | [
"Apache-2.0"
] | null | null | null | /*
Copyright 1992 Kurt W. Allen.
This is an unpublished work by Kurt W. Allen. All
rights are reserved, and no part of this work may be
distributed or released with out the express permission
of Kurt W. Allen, 3540 43'rd Ave S., Mpls, Mn 55406.
*/
/*
$Revision: 1.1 $
$Modtime: 01 May 1993 09:30:36 $
$Workfil... | 32.067416 | 73 | 0.622635 | Gjoll |
6e8820e0d35b3151c54b22a5ff9ccbfc0c8282cc | 5,503 | cc | C++ | ecclesia/magent/lib/nvme/sanitize_log_page_test.cc | pefoley2/ecclesia-machine-management | e795faafd9d43233a67765daff43bff887c27549 | [
"Apache-2.0"
] | 22 | 2020-06-05T22:21:54.000Z | 2021-12-09T07:13:14.000Z | ecclesia/magent/lib/nvme/sanitize_log_page_test.cc | pefoley2/ecclesia-machine-management | e795faafd9d43233a67765daff43bff887c27549 | [
"Apache-2.0"
] | 9 | 2020-06-11T17:14:29.000Z | 2021-06-23T09:28:44.000Z | ecclesia/magent/lib/nvme/sanitize_log_page_test.cc | pefoley2/ecclesia-machine-management | e795faafd9d43233a67765daff43bff887c27549 | [
"Apache-2.0"
] | 11 | 2020-06-24T19:44:26.000Z | 2021-10-04T00:51:37.000Z | /*
* Copyright 2020 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to ... | 44.024 | 80 | 0.678902 | pefoley2 |
6e8adc8957f8e68dc193328086ab2dcdc396c262 | 4,212 | cpp | C++ | apps/unit_tests/test_splindex.cpp | mtaillefumier/SIRIUS | 50ec1c202c019113c5660f1966b170dec9dfd4d4 | [
"BSD-2-Clause"
] | 77 | 2016-03-18T08:38:30.000Z | 2022-03-11T14:06:25.000Z | apps/unit_tests/test_splindex.cpp | simonpintarelli/SIRIUS | f4b5c4810af2a3ea1e67992d65750535227da84b | [
"BSD-2-Clause"
] | 240 | 2016-04-12T16:39:11.000Z | 2022-03-31T08:46:12.000Z | apps/unit_tests/test_splindex.cpp | simonpintarelli/SIRIUS | f4b5c4810af2a3ea1e67992d65750535227da84b | [
"BSD-2-Clause"
] | 43 | 2016-03-18T17:45:07.000Z | 2022-02-28T05:27:59.000Z | #include <sirius.hpp>
#include "testing.hpp"
using namespace sirius;
int test1()
{
for (int num_ranks = 1; num_ranks < 20; num_ranks++) {
for (int N = 1; N < 1130; N++) {
splindex<splindex_t::block> spl(N, num_ranks, 0);
int sz = 0;
for (int i = 0; i < num_ranks; i++) {... | 36.947368 | 98 | 0.406933 | mtaillefumier |
6e8b6727def99af8d620ec78ebad4cf7d4d966b5 | 57 | hpp | C++ | src/boost_units_physical_dimensions_luminance.hpp | miathedev/BoostForArduino | 919621dcd0c157094bed4df752b583ba6ea6409e | [
"BSL-1.0"
] | 10 | 2018-03-17T00:58:42.000Z | 2021-07-06T02:48:49.000Z | src/boost_units_physical_dimensions_luminance.hpp | miathedev/BoostForArduino | 919621dcd0c157094bed4df752b583ba6ea6409e | [
"BSL-1.0"
] | 2 | 2021-03-26T15:17:35.000Z | 2021-05-20T23:55:08.000Z | src/boost_units_physical_dimensions_luminance.hpp | miathedev/BoostForArduino | 919621dcd0c157094bed4df752b583ba6ea6409e | [
"BSL-1.0"
] | 4 | 2019-05-28T21:06:37.000Z | 2021-07-06T03:06:52.000Z | #include <boost/units/physical_dimensions/luminance.hpp>
| 28.5 | 56 | 0.842105 | miathedev |
6e8c2f8309d929ed795d22164131b25db3e7ba31 | 1,987 | hpp | C++ | src/config.hpp | karimdavoodi/iptv_out | ad1b3282456d42ec0ace4213e98a2014b648cfaf | [
"MIT"
] | 3 | 2020-09-16T01:45:01.000Z | 2021-11-02T14:34:45.000Z | src/config.hpp | karimdavoodi/iptv_out | ad1b3282456d42ec0ace4213e98a2014b648cfaf | [
"MIT"
] | null | null | null | src/config.hpp | karimdavoodi/iptv_out | ad1b3282456d42ec0ace4213e98a2014b648cfaf | [
"MIT"
] | null | null | null | /*
* Copyright (c) 2020 Karim, karimdavoodi@gmail.com
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, mod... | 45.159091 | 81 | 0.735783 | karimdavoodi |
6e929fa03f00fe6eb51cf9103ec03ee96f84c394 | 4,720 | hpp | C++ | Variable.hpp | jancarlsson/kapital | 90f232e85b0f7b259eb56adf16f47c519be47ed8 | [
"MIT"
] | 4 | 2015-07-07T19:20:29.000Z | 2017-12-02T12:56:47.000Z | Variable.hpp | jancarlsson/kapital | 90f232e85b0f7b259eb56adf16f47c519be47ed8 | [
"MIT"
] | null | null | null | Variable.hpp | jancarlsson/kapital | 90f232e85b0f7b259eb56adf16f47c519be47ed8 | [
"MIT"
] | 4 | 2017-07-18T23:08:52.000Z | 2019-07-23T20:30:35.000Z | #ifndef _KAPITAL_VARIABLE_HPP_
#define _KAPITAL_VARIABLE_HPP_
#include <array>
#include <cstdint>
#include <istream>
#include <ostream>
#include <vector>
#include <snarkfront.hpp>
#include <kapital/Coin.hpp>
namespace kapital {
////////////////////////////////////////////////////////////////////////////////
// con... | 22.912621 | 80 | 0.569703 | jancarlsson |
6e96832930feba245e233e446a62bc6b3dc5fc1c | 8,195 | hh | C++ | cc/range.hh | acorg/acmacs-base | a1a6e5b346ea3746f3fc1750ed4b7f29c7c0d049 | [
"MIT"
] | null | null | null | cc/range.hh | acorg/acmacs-base | a1a6e5b346ea3746f3fc1750ed4b7f29c7c0d049 | [
"MIT"
] | null | null | null | cc/range.hh | acorg/acmacs-base | a1a6e5b346ea3746f3fc1750ed4b7f29c7c0d049 | [
"MIT"
] | null | null | null | #pragma once
#include <iterator>
#include <stdexcept>
#include <limits>
#include <functional>
#include <numeric>
// ----------------------------------------------------------------------
namespace acmacs
{
namespace internal
{
template <typename T, typename Increment> class input_iterator // deprecat... | 34.578059 | 167 | 0.517877 | acorg |
6e9b9eb3d47c0d45ebe3dc9177eb61c6c202a4c2 | 2,875 | hpp | C++ | include/boost/gil/image_processing/hessian.hpp | sdebionne/gil-reformated | 7065d600d7f84d9ef2ed4df9862c596ff7e8a8c2 | [
"BSL-1.0"
] | null | null | null | include/boost/gil/image_processing/hessian.hpp | sdebionne/gil-reformated | 7065d600d7f84d9ef2ed4df9862c596ff7e8a8c2 | [
"BSL-1.0"
] | null | null | null | include/boost/gil/image_processing/hessian.hpp | sdebionne/gil-reformated | 7065d600d7f84d9ef2ed4df9862c596ff7e8a8c2 | [
"BSL-1.0"
] | null | null | null | #ifndef BOOST_GIL_IMAGE_PROCESSING_HESSIAN_HPP
#define BOOST_GIL_IMAGE_PROCESSING_HESSIAN_HPP
#include <boost/gil/extension/numeric/kernel.hpp>
#include <boost/gil/image_view.hpp>
#include <boost/gil/typedefs.hpp>
#include <stdexcept>
namespace boost {
namespace gil {
/// \brief Computes Hessian response
///
/// Com... | 39.930556 | 80 | 0.621217 | sdebionne |
6ea8ef886b4ec1af060a804fce751e2ec43f29f0 | 1,413 | hpp | C++ | three/objects/line.hpp | jdduke/three_cpp | c902f9eadeb4fbdeb9f662e88959f034efd89654 | [
"MIT"
] | 214 | 2015-01-11T06:34:35.000Z | 2022-03-26T18:32:32.000Z | three/objects/line.hpp | silky/three_cpp | dfaa824eed1f5c4180d961072807a05c4826eef8 | [
"MIT"
] | 11 | 2015-03-07T14:08:16.000Z | 2021-03-11T20:58:44.000Z | three/objects/line.hpp | silky/three_cpp | dfaa824eed1f5c4180d961072807a05c4826eef8 | [
"MIT"
] | 47 | 2015-01-24T11:30:13.000Z | 2022-03-08T05:44:32.000Z | #ifndef THREE_LINE_HPP
#define THREE_LINE_HPP
#include <three/common.hpp>
#include <three/core/object3d.hpp>
#include <three/core/geometry.hpp>
#include <three/materials/line_basic_material.hpp>
namespace three {
class Line : public Object3D {
public:
typedef std::shared_ptr<Line> Ptr;
static Ptr create( cons... | 24.362069 | 96 | 0.58528 | jdduke |
6ea8f8a20ff33a7a3bbdc63ccf2a46ea78d70d24 | 1,045 | cpp | C++ | src/trunc.cpp | zaalang/zrt | a5acc9d3d395cf06bdfcbbd34e26da8912e875c7 | [
"BSD-2-Clause"
] | null | null | null | src/trunc.cpp | zaalang/zrt | a5acc9d3d395cf06bdfcbbd34e26da8912e875c7 | [
"BSD-2-Clause"
] | null | null | null | src/trunc.cpp | zaalang/zrt | a5acc9d3d395cf06bdfcbbd34e26da8912e875c7 | [
"BSD-2-Clause"
] | null | null | null | //
// trunc
//
#include <cstddef>
#include <cstdint>
#if defined _MSC_VER
extern "C" void* memcpy(void* dst, const void* src, size_t n);
#define __builtin_memcpy memcpy
#pragma intrinsic(memcpy)
#endif
//|///////////////////// truncf /////////////////////////////////////////////
extern "C" float truncf(float x)
{
... | 15.144928 | 77 | 0.47177 | zaalang |
6ea9125f024b9f685b1135d9ff1b653ff4a923af | 3,179 | cpp | C++ | MT/MT_Core/primitives/R3.cpp | leonard-lab/MADTraC | f1830c377a075aa5ddff9342c4851d0715cdd6a4 | [
"MIT"
] | 5 | 2015-07-26T22:54:34.000Z | 2018-08-21T16:15:33.000Z | MT/MT_Core/primitives/R3.cpp | leonard-lab/MADTraC | f1830c377a075aa5ddff9342c4851d0715cdd6a4 | [
"MIT"
] | null | null | null | MT/MT_Core/primitives/R3.cpp | leonard-lab/MADTraC | f1830c377a075aa5ddff9342c4851d0715cdd6a4 | [
"MIT"
] | 1 | 2021-09-22T08:12:40.000Z | 2021-09-22T08:12:40.000Z | //------------------------------------------------------------
// R3.cpp - glswarm/robofish - D.Swain 8/12/07
//
// Implementation of a 3 dimensional cartesian vector space.
// Supports standard operations.
//
//------------------------------------------------------------
//-----------------Headers-------------... | 19.623457 | 69 | 0.522806 | leonard-lab |
6eab9abf61c6394336832eda9f5dcf7071af09b3 | 4,872 | cpp | C++ | SeriousSkaStudio/DlgCSkaEffectProperty.cpp | openlastchaos/lastchaos-source-client | 3d88594dba7347b1bb45378136605e31f73a8555 | [
"Apache-2.0"
] | 1 | 2022-02-14T15:46:44.000Z | 2022-02-14T15:46:44.000Z | SeriousSkaStudio/DlgCSkaEffectProperty.cpp | openlastchaos/lastchaos-source-client | 3d88594dba7347b1bb45378136605e31f73a8555 | [
"Apache-2.0"
] | null | null | null | SeriousSkaStudio/DlgCSkaEffectProperty.cpp | openlastchaos/lastchaos-source-client | 3d88594dba7347b1bb45378136605e31f73a8555 | [
"Apache-2.0"
] | 2 | 2022-01-10T22:17:06.000Z | 2022-01-17T09:34:08.000Z | // DlgCSkaEffectProperty.cpp : implementation file
//
#include "stdafx.h"
#include "seriousskastudio.h"
#include "DlgCSkaEffectProperty.h"
#include <Engine/Effect/CSkaEffect.h>
#include <Engine/Effect/CEffectManager.h>
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
//... | 27.84 | 98 | 0.742406 | openlastchaos |
6eac74325df189e331c8df3faa6e955f289fc2f8 | 2,197 | hpp | C++ | src/stan/variational/base_family.hpp | drezap/stan | 9b319ed125e2a7d14d0c9c246d2f462dad668537 | [
"BSD-3-Clause"
] | 1 | 2019-07-05T01:40:40.000Z | 2019-07-05T01:40:40.000Z | src/stan/variational/base_family.hpp | drezap/stan | 9b319ed125e2a7d14d0c9c246d2f462dad668537 | [
"BSD-3-Clause"
] | null | null | null | src/stan/variational/base_family.hpp | drezap/stan | 9b319ed125e2a7d14d0c9c246d2f462dad668537 | [
"BSD-3-Clause"
] | 1 | 2018-08-28T12:09:08.000Z | 2018-08-28T12:09:08.000Z | #ifndef STAN_VARIATIONAL_BASE_FAMILY_HPP
#define STAN_VARIATIONAL_BASE_FAMILY_HPP
#include <stan/callbacks/logger.hpp>
#include <stan/math/prim/mat.hpp>
#include <algorithm>
#include <ostream>
namespace stan {
namespace variational {
class base_family {
public:
// Constructors
base_family() {}
... | 31.385714 | 70 | 0.618116 | drezap |
6eb02767f1a95e9c87a1b41b9f4a82fbbbed7e09 | 50 | hpp | C++ | addons/wp/functions/script_component.hpp | veteran29/LambsDanger | c66464fdbedfccdc641fc107642eb812d305a309 | [
"Unlicense"
] | null | null | null | addons/wp/functions/script_component.hpp | veteran29/LambsDanger | c66464fdbedfccdc641fc107642eb812d305a309 | [
"Unlicense"
] | null | null | null | addons/wp/functions/script_component.hpp | veteran29/LambsDanger | c66464fdbedfccdc641fc107642eb812d305a309 | [
"Unlicense"
] | null | null | null | #include "\z\lambs\addons\wp\script_component.hpp" | 50 | 50 | 0.8 | veteran29 |
6eb0ae661ad8f94c96ae26c10e15e2fd0ef101f3 | 476 | cpp | C++ | solutions-PAT/B1036.cpp | Ki-Seki/solutions | e4329712d664180d850e0a48d7d0f637215f13d0 | [
"MIT"
] | 1 | 2022-02-26T10:33:24.000Z | 2022-02-26T10:33:24.000Z | solutions-PAT/B1036.cpp | Ki-Seki/solutions | e4329712d664180d850e0a48d7d0f637215f13d0 | [
"MIT"
] | null | null | null | solutions-PAT/B1036.cpp | Ki-Seki/solutions | e4329712d664180d850e0a48d7d0f637215f13d0 | [
"MIT"
] | 1 | 2021-12-01T14:54:33.000Z | 2021-12-01T14:54:33.000Z | #include <iostream>
using namespace std;
int main()
{
int n, rows;
char c;
cin >> n >> c;
rows = n/2.0+0.5;
for (int i = 0; i < rows; i++)
{
if (i == 0 || i == rows - 1)
{
for (int j = 0; j < n; j++) printf("%c", c);
printf("\n");
}
else
... | 19.833333 | 56 | 0.340336 | Ki-Seki |
6eb4fe9fadd4135aadfebfca3ff2391b947460ac | 1,546 | cpp | C++ | examples/08-basic3d.cpp | cyrilcode/cyfw-examples | 18fde906b606ff0b9e589a4ef53125186fe5a578 | [
"MIT"
] | null | null | null | examples/08-basic3d.cpp | cyrilcode/cyfw-examples | 18fde906b606ff0b9e589a4ef53125186fe5a578 | [
"MIT"
] | null | null | null | examples/08-basic3d.cpp | cyrilcode/cyfw-examples | 18fde906b606ff0b9e589a4ef53125186fe5a578 | [
"MIT"
] | null | null | null | #include <cyfw/main.h>
#include <cyfw/Shaders/CyrilShader.h>
using namespace std;
using namespace cy;
class MyApp : public cy::App
{
shader::CyrilShader shader;
Camera camera;
public:
void setup()
{
window->setClearColor({0,0,0,1});
shader.init();
camera.reset({0,0,-3});
}... | 20.891892 | 75 | 0.552393 | cyrilcode |
6ebd12caef03a22f667a4b3ff0de158874c29415 | 2,263 | cpp | C++ | Engine/src/XEON/core/application.cpp | Quatroctus/XEON | 9f970cd21dabe26dd8e7783cd7df653c22ec4bb5 | [
"Apache-2.0"
] | null | null | null | Engine/src/XEON/core/application.cpp | Quatroctus/XEON | 9f970cd21dabe26dd8e7783cd7df653c22ec4bb5 | [
"Apache-2.0"
] | null | null | null | Engine/src/XEON/core/application.cpp | Quatroctus/XEON | 9f970cd21dabe26dd8e7783cd7df653c22ec4bb5 | [
"Apache-2.0"
] | null | null | null | #include "xeonpch.h"
#include "XEON/core/application.h"
#include "XEON/renderer/renderer.h"
#include <GLFW/glfw3.h>
namespace XEON {
Application* Application::Instance = nullptr;
Application::Application(ApplicationData data) : applicationData(data) {
XEON_PROFILE_FN();
XEON_ASSERT(!Instance, "Application al... | 22.63 | 90 | 0.692002 | Quatroctus |
6ebd68313bfca075fa9fc4cfd3a127d7c6b427e2 | 779 | cpp | C++ | src/ivec2.cpp | Loddgrimner/test | 75e961a0a3dd4fbcb17273687b35afa801d11222 | [
"MIT"
] | 1 | 2015-11-02T19:59:21.000Z | 2015-11-02T19:59:21.000Z | src/ivec2.cpp | Loddgrimner/test | 75e961a0a3dd4fbcb17273687b35afa801d11222 | [
"MIT"
] | null | null | null | src/ivec2.cpp | Loddgrimner/test | 75e961a0a3dd4fbcb17273687b35afa801d11222 | [
"MIT"
] | null | null | null | #include "ivec2.h"
ivec2::ivec2()
{
this->x = 0;
this->y = 0;
}
ivec2::ivec2(int x, int y)
{
this->x = x;
this->y = y;
}
void ivec2::setx(int x)
{
this->x = x;
}
void ivec2::sety(int y)
{
this->y = y;
}
void ivec2::set(ivec2 v)
{
this->x = v.getx();
this->y = v.gety();
}
int ivec2::getx()
{
return this->... | 11.455882 | 55 | 0.578947 | Loddgrimner |
6ec1a4b22fdebf8090c5e4a7cfa507953f26b7b9 | 609 | cpp | C++ | Assignment 5/Program 3.cpp | ANSEduGroup/collegecpp | 168050e59da7e8bffcc518f80c48dcf10459d0c4 | [
"MIT"
] | null | null | null | Assignment 5/Program 3.cpp | ANSEduGroup/collegecpp | 168050e59da7e8bffcc518f80c48dcf10459d0c4 | [
"MIT"
] | null | null | null | Assignment 5/Program 3.cpp | ANSEduGroup/collegecpp | 168050e59da7e8bffcc518f80c48dcf10459d0c4 | [
"MIT"
] | null | null | null | #include<iostream>
using namespace std;
class abc
{
int a,b;
public:
abc(){}
void input()
{
cout<<"\nEnter values:";
cin>>a>>b;
}
void show()
{
cout<<"\n a= "<<a<<"b= "<<b<<endl;
}
abc(abc &obj)
{
cout<<"\nCopy constructor\n";
a=obj.a;
b=obj.... | 14.853659 | 41 | 0.45156 | ANSEduGroup |
6ec231d3ebde730bfdff590e0833c9ab3729b1b2 | 3,270 | cpp | C++ | src/Selection.cpp | zhengxiuyu/pbf | 3b81c0de890dd1dfea9f383f811c8d47a368cb9b | [
"MIT"
] | 23 | 2015-03-29T12:04:00.000Z | 2022-03-17T17:58:09.000Z | src/Selection.cpp | zhengxiuyu/pbf | 3b81c0de890dd1dfea9f383f811c8d47a368cb9b | [
"MIT"
] | 3 | 2016-01-17T03:47:29.000Z | 2018-02-19T16:11:12.000Z | src/Selection.cpp | zhengxiuyu/pbf | 3b81c0de890dd1dfea9f383f811c8d47a368cb9b | [
"MIT"
] | 10 | 2015-04-05T08:11:05.000Z | 2020-09-10T07:31:14.000Z | /*
* Copyright (c) 2013-2014 Daniel Kirchner
*
* 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... | 38.023256 | 109 | 0.743731 | zhengxiuyu |
6ed4ea6e63e5833043a61761cd02c062e5db8d5c | 21,816 | cpp | C++ | src/teacherprocess.cpp | caozx1110/ThunderClass | e7e06a6cefa63887e2ebcbf34c2d855c06651aee | [
"Apache-2.0"
] | 1 | 2022-03-31T06:27:32.000Z | 2022-03-31T06:27:32.000Z | src/teacherprocess.cpp | caozx1110/ThunderClass | e7e06a6cefa63887e2ebcbf34c2d855c06651aee | [
"Apache-2.0"
] | null | null | null | src/teacherprocess.cpp | caozx1110/ThunderClass | e7e06a6cefa63887e2ebcbf34c2d855c06651aee | [
"Apache-2.0"
] | null | null | null | /*************************************************************************
【文件名】teacherprocess.cpp
【功能模块和目的】教师业务流程类定义
【开发者及日期】范静涛(fanjingtao@tsinghua.edu.cn) 2020-5-12
【版权信息】开发者范静涛(fanjingtao@tsinghua.edu.cn)声明放弃任何版权诉求,任何使用者可做出任何修改、用于任何目的
【更改记录】
2020-05-19 由范静涛修改为信号机制通知界面更新
*****************************************... | 32.954683 | 196 | 0.549276 | caozx1110 |
6edb73a9362e77c5941d26558f8be95d745473f8 | 14,827 | cpp | C++ | .MeshSync/Plugin/MeshSync/SceneGraph/msAnimation.cpp | bitinn/MeshSync | 71686b6962c6177af15f980c6fa718ed6676c9f1 | [
"MIT"
] | 1 | 2019-08-03T20:33:37.000Z | 2019-08-03T20:33:37.000Z | .MeshSync/Plugin/MeshSync/SceneGraph/msAnimation.cpp | bitinn/MeshSync | 71686b6962c6177af15f980c6fa718ed6676c9f1 | [
"MIT"
] | null | null | null | .MeshSync/Plugin/MeshSync/SceneGraph/msAnimation.cpp | bitinn/MeshSync | 71686b6962c6177af15f980c6fa718ed6676c9f1 | [
"MIT"
] | null | null | null | #include "pch.h"
#include "msSceneGraph.h"
#include "msAnimation.h"
namespace ms {
template<class T>
struct Equals
{
bool operator()(const T& a, const T& b) const
{
return mu::near_equal(a, b);
}
};
template<>
struct Equals<int>
{
bool operator()(int a, int b) const
{
return a == ... | 26.012281 | 130 | 0.671073 | bitinn |
6ee04ddf238ef73ef88488e04e672ef9cbd47b98 | 496 | hpp | C++ | library/ATF/$EEC2CF0CE9A8D2E77412C49A5289D564.hpp | lemkova/Yorozuya | f445d800078d9aba5de28f122cedfa03f26a38e4 | [
"MIT"
] | 29 | 2017-07-01T23:08:31.000Z | 2022-02-19T10:22:45.000Z | library/ATF/$EEC2CF0CE9A8D2E77412C49A5289D564.hpp | kotopes/Yorozuya | 605c97d3a627a8f6545cc09f2a1b0a8afdedd33a | [
"MIT"
] | 90 | 2017-10-18T21:24:51.000Z | 2019-06-06T02:30:33.000Z | library/ATF/$EEC2CF0CE9A8D2E77412C49A5289D564.hpp | kotopes/Yorozuya | 605c97d3a627a8f6545cc09f2a1b0a8afdedd33a | [
"MIT"
] | 44 | 2017-12-19T08:02:59.000Z | 2022-02-24T23:15:01.000Z | // This file auto generated by plugin for ida pro. Generated code only for x64. Please, dont change manually
#pragma once
#include <common/common.h>
#include <$5CC4D6FD2BF4E5B80FE1FD714DCA0CFA.hpp>
START_ATF_NAMESPACE
union $EEC2CF0CE9A8D2E77412C49A5289D564
{
$5CC4D6FD2BF4E5B80FE1FD714DCA0CFA __s0;
... | 31 | 111 | 0.766129 | lemkova |
6ee130e01e36de5d4ffce61f95e876a58aff3fbc | 9,653 | hpp | C++ | include/VRVisuals/SetSpectrogramShaderValues.hpp | v0idp/virtuoso-codegen | 6f560f04822c67f092d438a3f484249072c1d21d | [
"Unlicense"
] | null | null | null | include/VRVisuals/SetSpectrogramShaderValues.hpp | v0idp/virtuoso-codegen | 6f560f04822c67f092d438a3f484249072c1d21d | [
"Unlicense"
] | null | null | null | include/VRVisuals/SetSpectrogramShaderValues.hpp | v0idp/virtuoso-codegen | 6f560f04822c67f092d438a3f484249072c1d21d | [
"Unlicense"
] | 1 | 2022-03-30T21:07:35.000Z | 2022-03-30T21:07:35.000Z | // Autogenerated from CppHeaderCreator
// Created by Sc2ad
// =========================================================================
#pragma once
// Begin includes
#include "beatsaber-hook/shared/utils/typedefs.h"
#include "beatsaber-hook/shared/utils/byref.hpp"
// Including type: UnityEngine.MonoBehaviour
#include ... | 49.502564 | 219 | 0.742671 | v0idp |
6ee536509801e8a2255c834990f517c09c8ae6e0 | 13,919 | cpp | C++ | code/source/physics/grid.cpp | crafn/clover | 586acdbcdb34c3550858af125e9bb4a6300343fe | [
"MIT"
] | 12 | 2015-01-12T00:19:20.000Z | 2021-08-05T10:47:20.000Z | code/source/physics/grid.cpp | crafn/clover | 586acdbcdb34c3550858af125e9bb4a6300343fe | [
"MIT"
] | null | null | null | code/source/physics/grid.cpp | crafn/clover | 586acdbcdb34c3550858af125e9bb4a6300343fe | [
"MIT"
] | null | null | null | #include "chunk_util.hpp"
#include "collision/shape.hpp"
#include "fixture.hpp"
#include "grid.hpp"
#include "util/boundingbox.hpp"
#include "util/profiling.hpp"
#include "util/time.hpp"
// Debug
#include "game/physics.hpp"
#include "game/worldentity.hpp"
/// @todo Remove
#include "game/world_mgr.hpp"
#include "global... | 25.633517 | 80 | 0.648107 | crafn |
6ee58c0911197975407af0ba07e27f37f99ccda8 | 288 | cpp | C++ | alocacaoDinamica.cpp | PedroHenrique-git/data-structures | 4252751328a6ab5e993ff1f58fa70c13ecbafed2 | [
"MIT"
] | null | null | null | alocacaoDinamica.cpp | PedroHenrique-git/data-structures | 4252751328a6ab5e993ff1f58fa70c13ecbafed2 | [
"MIT"
] | null | null | null | alocacaoDinamica.cpp | PedroHenrique-git/data-structures | 4252751328a6ab5e993ff1f58fa70c13ecbafed2 | [
"MIT"
] | null | null | null | #include <iostream>
#include <stdlib.h>
using namespace std;
main() {
int *p;
char *s;
p = (int *) malloc(sizeof(int));
*p = 7;
s = (char *) malloc(20*sizeof(char));
cout<<"Digite um caracter: ";
cin>>s;
cout<<endl<<"Conteudo de p: "<<*p<<endl<<"Conteudo de s: "<<s;
}
| 14.4 | 63 | 0.565972 | PedroHenrique-git |
6ee93cb92edb45fa6f957086648cbf1d4b42b893 | 4,071 | cpp | C++ | kernel/src/system/components/apm.cpp | Remco123/CactusOS | de4c61211c2908cf1a27d8ccbeb6340133772454 | [
"MIT"
] | 87 | 2019-03-04T21:16:20.000Z | 2022-01-30T15:10:44.000Z | kernel/src/system/components/apm.cpp | Remco123/CactusOS | de4c61211c2908cf1a27d8ccbeb6340133772454 | [
"MIT"
] | 5 | 2019-04-24T10:33:55.000Z | 2021-06-13T09:46:28.000Z | kernel/src/system/components/apm.cpp | Remco123/CactusOS | de4c61211c2908cf1a27d8ccbeb6340133772454 | [
"MIT"
] | 2 | 2020-11-13T08:56:09.000Z | 2021-08-01T06:38:31.000Z | #include <system/components/apm.h>
#include <system/system.h>
using namespace CactusOS;
using namespace CactusOS::common;
using namespace CactusOS::core;
using namespace CactusOS::system;
APMController::APMController()
: SystemComponent("APM Controller", "Controls Advanced Power Management via BIOS calls")
{
Log... | 34.5 | 147 | 0.682633 | Remco123 |
6ef061b5c97639a915a4911d1875dec1568caa6f | 443 | hpp | C++ | src/aspell-60/common/char_vector.hpp | reydajp/build-spell | a88ffbb9ffedae3f20933b187c95851e47e0e4c3 | [
"MIT"
] | 31 | 2016-11-08T05:13:02.000Z | 2022-02-23T19:13:01.000Z | src/aspell-60/common/char_vector.hpp | reydajp/build-spell | a88ffbb9ffedae3f20933b187c95851e47e0e4c3 | [
"MIT"
] | 6 | 2017-01-17T20:21:55.000Z | 2021-09-02T07:36:18.000Z | src/aspell-60/common/char_vector.hpp | reydajp/build-spell | a88ffbb9ffedae3f20933b187c95851e47e0e4c3 | [
"MIT"
] | 5 | 2017-07-11T11:10:55.000Z | 2022-02-14T01:55:16.000Z | // This file is part of The New Aspell
// Copyright (C) 2001-2003 by Kevin Atkinson under the GNU LGPL license
// version 2.0 or 2.1. You should have received a copy of the LGPL
// license along with this library if you did not you can find
// it at http://www.gnu.org/.
#ifndef ASPELL_CHAR_VECTOR__HPP
#define ASPELL_... | 23.315789 | 71 | 0.747178 | reydajp |
3e03cba154d427487b762f69cab2b038ce34d161 | 311 | cpp | C++ | entity/entity_plugins/src/bicycle_entity.cpp | cvasfi/scenario_runner.iv.universe | b8a6388faf502478fdc217ad7a30d8cab2dcae39 | [
"Apache-2.0"
] | 2 | 2020-09-25T08:53:18.000Z | 2020-10-23T09:42:49.000Z | entity/entity_plugins/src/bicycle_entity.cpp | cvasfi/scenario_runner.iv.universe | b8a6388faf502478fdc217ad7a30d8cab2dcae39 | [
"Apache-2.0"
] | 36 | 2020-10-23T07:40:37.000Z | 2021-02-19T09:24:46.000Z | entity/entity_plugins/src/bicycle_entity.cpp | cvasfi/scenario_runner.iv.universe | b8a6388faf502478fdc217ad7a30d8cab2dcae39 | [
"Apache-2.0"
] | 15 | 2020-09-30T16:37:57.000Z | 2021-12-03T07:06:17.000Z | #include <entity_plugins/bicycle_entity.h>
namespace entity_plugins
{
BicycleEntity::BicycleEntity()
: scenario_entities::EntityBase {"Bicycle"}
{}
} // namespace entity_plugins
#include <pluginlib/class_list_macros.h>
PLUGINLIB_EXPORT_CLASS(entity_plugins::BicycleEntity, scenario_entities::EntityBase)
| 20.733333 | 84 | 0.810289 | cvasfi |
3e04ab31845112a47bf9458f76e10477e4ef4884 | 7,010 | hpp | C++ | source/List.hpp | Rogi1246/programmiersprachen-aufgabenblatt-4 | 69b772f3a7d3aec644cc5d5ae9040f5a1bd93577 | [
"MIT"
] | null | null | null | source/List.hpp | Rogi1246/programmiersprachen-aufgabenblatt-4 | 69b772f3a7d3aec644cc5d5ae9040f5a1bd93577 | [
"MIT"
] | null | null | null | source/List.hpp | Rogi1246/programmiersprachen-aufgabenblatt-4 | 69b772f3a7d3aec644cc5d5ae9040f5a1bd93577 | [
"MIT"
] | null | null | null | #ifndef BUW_LIST_HPP
#define BUW_LIST_HPP
#include <cstddef>
#include <initializer_list>
using namespace std;
// List .hpp
template <typename T>
class List;
template <typename T>
struct ListNode
{
T value = T();
ListNode *prev = nullptr;
ListNode *next = nullptr;
};
template <typename T>
class ListIte... | 18.020566 | 73 | 0.473181 | Rogi1246 |
3e0695cf7926ae51f0ae096f3e3e7210d2bf78b7 | 1,939 | cpp | C++ | mounts/src/linux/MountInfoReader.cpp | dissabte/mounts | 72cdde6709e9e3bb48ecac43492504c379e81ada | [
"MIT"
] | null | null | null | mounts/src/linux/MountInfoReader.cpp | dissabte/mounts | 72cdde6709e9e3bb48ecac43492504c379e81ada | [
"MIT"
] | null | null | null | mounts/src/linux/MountInfoReader.cpp | dissabte/mounts | 72cdde6709e9e3bb48ecac43492504c379e81ada | [
"MIT"
] | null | null | null | //! \cond INTERNAL
/*!
* \file MountInfoReader.cpp
* Contains MountInfoReader implementation.
* \warning This file is not a part of watcher library public interface.
*/
#include "MountInfoReader.h"
const std::string MountInfoReader::kMediaPrefix = "/media";
MountInfoReader::MountInfoReader()
: _file("/proc/... | 25.181818 | 157 | 0.72821 | dissabte |
3e06d16e4fb2f845eadae148996f6bd27dacb6bf | 1,585 | cpp | C++ | src/test/test_line_search.cpp | ReFantasy/NumericalOptimizationLibrary | 5848e800c558c463dfbe50d4cf2fed228bcfee4a | [
"MIT"
] | null | null | null | src/test/test_line_search.cpp | ReFantasy/NumericalOptimizationLibrary | 5848e800c558c463dfbe50d4cf2fed228bcfee4a | [
"MIT"
] | null | null | null | src/test/test_line_search.cpp | ReFantasy/NumericalOptimizationLibrary | 5848e800c558c463dfbe50d4cf2fed228bcfee4a | [
"MIT"
] | null | null | null | #include "global.h"
#include "line_search.h"
#include <gtest/gtest.h>
#include <iostream>
using namespace NOL;
TEST(UnitTestLineSearch, AdvanceAndRetreat)
{
class TLineSearch : public LinearSearch
{
public:
TLineSearch(TargetFunctor *functor = nullptr) : LinearSearch(functor)
{
}... | 21.418919 | 95 | 0.547003 | ReFantasy |
3e0b852aefbe637432d1551fb95209dc4c889a12 | 611 | cpp | C++ | demos/button-test.cpp | biocomp/ev3dev-lang-cpp | ec08953fee86ffec4165e49d0a85b57e647eb3b2 | [
"MIT"
] | null | null | null | demos/button-test.cpp | biocomp/ev3dev-lang-cpp | ec08953fee86ffec4165e49d0a85b57e647eb3b2 | [
"MIT"
] | null | null | null | demos/button-test.cpp | biocomp/ev3dev-lang-cpp | ec08953fee86ffec4165e49d0a85b57e647eb3b2 | [
"MIT"
] | null | null | null | #include <unistd.h>
#include <cstdio>
#include "ev3dev.h"
using namespace ev3dev;
int main()
{
bool escape = false;
while (escape == 0)
{
const auto up = button::up.pressed ();
const auto down = button::down.pressed ();
const auto left = button::left.pressed ();
const auto... | 21.821429 | 106 | 0.559738 | biocomp |
3e0ce9e07851f7b98f8570533ade5077cede7583 | 18,093 | cpp | C++ | src/gs/context.cpp | jwurzer/glslScene | 54fd57e640a8e80fe1b9d571e9f3d6360caf68ea | [
"MIT"
] | 8 | 2019-09-03T20:03:29.000Z | 2021-01-23T17:48:20.000Z | src/gs/context.cpp | jwurzer/glslScene | 54fd57e640a8e80fe1b9d571e9f3d6360caf68ea | [
"MIT"
] | null | null | null | src/gs/context.cpp | jwurzer/glslScene | 54fd57e640a8e80fe1b9d571e9f3d6360caf68ea | [
"MIT"
] | null | null | null | #include <gs/context.h>
#include <gs/rendering/gl_api.h>
#include <gs/rendering/renderer.h>
#include <gs/rendering/render_pass_manager.h>
#include <gs/system/file_change_monitoring.h>
#include <gs/system/log.h>
#include <gs/ecs/entity.h>
#include <gs/res/mesh.h>
#include <gs/res/resource_manager.h>
#include <gs/scene/... | 33.016423 | 118 | 0.729288 | jwurzer |
3e1098261f45aec44310240d4599343bc7383610 | 923 | hpp | C++ | cppsrc/generator/compare_pairs.hpp | gateship1/mazesolver | d7ee07df68e6bd30223ba95c77f5d4ad8456364e | [
"Apache-2.0"
] | null | null | null | cppsrc/generator/compare_pairs.hpp | gateship1/mazesolver | d7ee07df68e6bd30223ba95c77f5d4ad8456364e | [
"Apache-2.0"
] | null | null | null | cppsrc/generator/compare_pairs.hpp | gateship1/mazesolver | d7ee07df68e6bd30223ba95c77f5d4ad8456364e | [
"Apache-2.0"
] | null | null | null | #ifndef COMPARE_PAIRS_HEADER_FILE
#define COMPARE_PAIRS_HEADER_FILE
#include <utility> // std::pair
/* compare_pairs
compares a pair by compairing the first elements, and if necessary, the second
parameters:
pair1, pair2, the pairs to compare
return:
if the first element of both pairs are equal, ... | 35.5 | 109 | 0.731311 | gateship1 |
3e17ba022c6ed3fda28e6de8bf4655b786ec1c21 | 2,214 | cpp | C++ | src/entity/RCircleData.cpp | ouxianghui/ezcam | 195fb402202442b6d035bd70853f2d8c3f615de1 | [
"MIT"
] | 12 | 2021-03-26T03:23:30.000Z | 2021-12-31T10:05:44.000Z | src/entity/RCircleData.cpp | 15831944/ezcam | 195fb402202442b6d035bd70853f2d8c3f615de1 | [
"MIT"
] | null | null | null | src/entity/RCircleData.cpp | 15831944/ezcam | 195fb402202442b6d035bd70853f2d8c3f615de1 | [
"MIT"
] | 9 | 2021-06-23T08:26:40.000Z | 2022-01-20T07:18:10.000Z | /**
* Copyright (c) 2011-2016 by Andrew Mustun. All rights reserved.
*
* This file is part of the QCAD project.
*
* QCAD is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License,... | 34.061538 | 90 | 0.702349 | ouxianghui |
3e1cf96d1e36a10697779c90691857cad2662c6b | 15,386 | cpp | C++ | src/ship/shipsystem.cpp | P-Sc/Pirateers | 440e477d33bbbcd79d291700c369f74fd0a6cc7d | [
"MIT"
] | null | null | null | src/ship/shipsystem.cpp | P-Sc/Pirateers | 440e477d33bbbcd79d291700c369f74fd0a6cc7d | [
"MIT"
] | null | null | null | src/ship/shipsystem.cpp | P-Sc/Pirateers | 440e477d33bbbcd79d291700c369f74fd0a6cc7d | [
"MIT"
] | null | null | null | #include "shipsystem.h"
#include "physics/physicssystem.h"
#include "graphics/graphicssystem.h"
#include "input/inputsystem.h"
#include "debug/modeldisplaysystem.h"
#include "ship/weaponsystem.h"
#include "ship/weapon.h"
#include "camera/camerasystem.h"
#include "gui/tagsystem.h"
#include "ship/shieldsystem.h"
#include... | 45.120235 | 103 | 0.656506 | P-Sc |
3e1f24077423fa7700880f2a058b3076caba107e | 2,921 | hpp | C++ | Simpleton/Utils/endian.hpp | Kerndog73/Simpleton-Engine | ab1905f805d1e1c951d96775d0d6646a3548b4ce | [
"MIT"
] | 52 | 2017-08-12T14:41:58.000Z | 2022-01-12T01:18:57.000Z | include/Simpleton/Utils/endian.hpp | KUflower/EnTT-Pacman | ebcbc5e6005e44ea89711ced913333ae7fa468bd | [
"MIT"
] | null | null | null | include/Simpleton/Utils/endian.hpp | KUflower/EnTT-Pacman | ebcbc5e6005e44ea89711ced913333ae7fa468bd | [
"MIT"
] | 5 | 2018-11-20T04:02:15.000Z | 2020-03-02T19:15:16.000Z | //
// endian.hpp
// Simpleton Engine
//
// Created by Indi Kernick on 24/2/18.
// Copyright © 2018 Indi Kernick. All rights reserved.
//
#ifndef engine_utils_endian_hpp
#define engine_utils_endian_hpp
#include <SDL_endian.h>
#include "int least.hpp"
namespace Utils {
template <typename T>
uint_exact_t<sizeof... | 24.546218 | 82 | 0.649093 | Kerndog73 |
4a3b5801c45148d98f3b191474584d7a1ab652c1 | 39,460 | cpp | C++ | FindSecret/Classes/Native/Il2CppCompilerCalculateTypeValues_32Table.cpp | GodIsWord/NewFindSecret | 4f98f316d29936380f9665d6a6d89962d9ee5478 | [
"MIT"
] | null | null | null | FindSecret/Classes/Native/Il2CppCompilerCalculateTypeValues_32Table.cpp | GodIsWord/NewFindSecret | 4f98f316d29936380f9665d6a6d89962d9ee5478 | [
"MIT"
] | null | null | null | FindSecret/Classes/Native/Il2CppCompilerCalculateTypeValues_32Table.cpp | GodIsWord/NewFindSecret | 4f98f316d29936380f9665d6a6d89962d9ee5478 | [
"MIT"
] | null | null | null | #include "il2cpp-config.h"
#ifndef _MSC_VER
# include <alloca.h>
#else
# include <malloc.h>
#endif
#include <cstring>
#include <string.h>
#include <stdio.h>
#include <cmath>
#include <limits>
#include <assert.h>
#include "class-internals.h"
#include "codegen/il2cpp-codegen.h"
#include "DOTween_DG_Tw... | 58.372781 | 302 | 0.848606 | GodIsWord |
4a3c7bdeb1c8075908b7d8a8fc1640940dd5a426 | 697 | cpp | C++ | src/function_call.cpp | HardwareIR/netlistDB | 2c52a1c88b7be712d6cdc9146f1a9dbf26441198 | [
"MIT"
] | 14 | 2019-03-27T00:53:06.000Z | 2021-12-13T15:18:04.000Z | src/function_call.cpp | PDFxy/netlistDB | 2c52a1c88b7be712d6cdc9146f1a9dbf26441198 | [
"MIT"
] | 11 | 2019-02-25T18:43:48.000Z | 2019-06-13T15:00:33.000Z | src/function_call.cpp | HardwareIR/hardwareIr | 2c52a1c88b7be712d6cdc9146f1a9dbf26441198 | [
"MIT"
] | 2 | 2020-03-12T06:01:13.000Z | 2021-04-09T10:00:32.000Z | #include <netlistDB/netlist.h>
namespace netlistDB {
FunctionCall::FunctionCall(FunctionDef & fn, Net & arg0, Net & res) :
fn(fn), args( { &arg0 }), res(res) {
arg0.ctx.register_node(*this);
arg0.endpoints.push_back(this);
res.drivers.push_back(this);
}
FunctionCall::FunctionCall(FunctionDef & fn, Net & arg0, N... | 21.78125 | 81 | 0.677188 | HardwareIR |
4a48160802cec4ca21b79452753907a4798a1040 | 8,049 | cpp | C++ | sdl2/blobwars/src/entities.cpp | pdpdds/SDLGameProgramming | 3af68e2133296f3e7bc3d7454d9301141bca2d5a | [
"BSD-2-Clause"
] | null | null | null | sdl2/blobwars/src/entities.cpp | pdpdds/SDLGameProgramming | 3af68e2133296f3e7bc3d7454d9301141bca2d5a | [
"BSD-2-Clause"
] | null | null | null | sdl2/blobwars/src/entities.cpp | pdpdds/SDLGameProgramming | 3af68e2133296f3e7bc3d7454d9301141bca2d5a | [
"BSD-2-Clause"
] | null | null | null | /*
Copyright (C) 2004-2011 Parallel Realities
Copyright (C) 2011-2015 Perpendicular Dimensions
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; either version 2
of the License, or (at your option) any... | 21.464 | 139 | 0.582557 | pdpdds |
4a489f559838138d55e1b6d5ef1116e9ce9db07c | 1,431 | cpp | C++ | samples/Ch18_using_libs/fig_18_13_binary_search.cpp | arkantos493/data-parallel-CPP | 314f94587917d233ea1d7c522fed196da67fb843 | [
"MIT"
] | 1 | 2022-02-02T11:35:57.000Z | 2022-02-02T11:35:57.000Z | samples/Ch18_using_libs/fig_18_13_binary_search.cpp | RSPwFPGAs/data-parallel-CPP | ced82e587022a995cb5c4192671d99c32c9f5e84 | [
"MIT"
] | null | null | null | samples/Ch18_using_libs/fig_18_13_binary_search.cpp | RSPwFPGAs/data-parallel-CPP | ced82e587022a995cb5c4192671d99c32c9f5e84 | [
"MIT"
] | null | null | null | // Copyright (C) 2020 Intel Corporation
// SPDX-License-Identifier: MIT
#include <iostream>
#include <CL/sycl.hpp>
#include <oneapi/dpl/execution>
#include <oneapi/dpl/algorithm>
#include <oneapi/dpl/iterator>
using namespace sycl;
int main()
{
buffer<uint64_t, 1> kB{ range<1>(10) };
buffer<uint64_t, 1> vB{... | 27 | 104 | 0.556953 | arkantos493 |
4a4aed7478cfdeca5b4497e63ce6d82b1a814abb | 16,054 | cpp | C++ | ast.cpp | apfeltee/element | 3243acf857e7cf6a0d848ca01d4ca470481ad8e5 | [
"MIT"
] | null | null | null | ast.cpp | apfeltee/element | 3243acf857e7cf6a0d848ca01d4ca470481ad8e5 | [
"MIT"
] | null | null | null | ast.cpp | apfeltee/element | 3243acf857e7cf6a0d848ca01d4ca470481ad8e5 | [
"MIT"
] | null | null | null | #include "element.h"
#include <sstream>
namespace element
{
namespace ast
{
Node::Node(const Location& coords) : type(N_Nil), coords(coords)
{
}
Node::Node(NodeType type, const Location& coords) : type(type), coords(coords)
{
}
Node::~Node()
{
... | 33.869198 | 180 | 0.459948 | apfeltee |
4a4f2c558e465e541da2c389cf954f2f4dea136b | 446 | hpp | C++ | src/Data-Structures/HashTable/HashTable.hpp | ForeignHuman/Data-Structures | d0c641a7c17e921ed4d02e7829e072374dc4b96a | [
"MIT"
] | 1 | 2021-06-09T20:40:14.000Z | 2021-06-09T20:40:14.000Z | src/Data-Structures/HashTable/HashTable.hpp | ForeignHuman/Data-Structures | d0c641a7c17e921ed4d02e7829e072374dc4b96a | [
"MIT"
] | null | null | null | src/Data-Structures/HashTable/HashTable.hpp | ForeignHuman/Data-Structures | d0c641a7c17e921ed4d02e7829e072374dc4b96a | [
"MIT"
] | null | null | null | #pragma once
#include "../List/List.hpp"
template<typename T, uint64_t B_SIZE>
struct Dictionary
{
public:
Dictionary()=default;
~Dictionary();
private:
struct Bucket
{
public:
Bucket() : m_items(B_SIZE);
~Bucket();
public:
struct Item
{
const char* key;
T val... | 13.515152 | 37 | 0.58296 | ForeignHuman |
4a4fd0b95c02925cdd2e56df6c12e6495b82d965 | 6,526 | cpp | C++ | TerraForge3D/src/ExportManager.cpp | ExcitedElf/TerraForge3D | 8436ed79ef5841446c5e3d76f0d830fcaf9d19da | [
"CC0-1.0"
] | 1 | 2021-11-21T03:56:59.000Z | 2021-11-21T03:56:59.000Z | TerraForge3D/src/ExportManager.cpp | tay10r/TerraForge3D | 9f8e508662ceb99255d818a35d8f6da24517b51b | [
"CC0-1.0"
] | null | null | null | TerraForge3D/src/ExportManager.cpp | tay10r/TerraForge3D | 9f8e508662ceb99255d818a35d8f6da24517b51b | [
"CC0-1.0"
] | null | null | null | #define _CRT_SECURE_NO_WARNINGS
#include "ExportManager.h"
#include <Utils.h>
#include <fstream>
#include <iostream>
#include <atomic>
#include <thread>
#include <MathUtils.h>
#include <Model.h>
#include <stb/stb_image.h>
#include "stb/stb_image_write.h"
#undef __cplusplus // Temporary
#include <assimp/scene.h>
#inc... | 25.592157 | 161 | 0.6327 | ExcitedElf |
4a511d48f2c74ded1a3d18ef4d76c42dfff8c258 | 4,041 | hpp | C++ | include/nuls/system/chain/payment_record.hpp | ccccbjcn/nuls-v2-cplusplus-sdk | 3d5a76452fe0673eba490b26e5a95fea3d5788df | [
"MIT"
] | 1 | 2020-04-26T07:32:52.000Z | 2020-04-26T07:32:52.000Z | include/nuls/system/chain/payment_record.hpp | CCC-NULS/nuls-cplusplus-sdk | 3d5a76452fe0673eba490b26e5a95fea3d5788df | [
"MIT"
] | null | null | null | include/nuls/system/chain/payment_record.hpp | CCC-NULS/nuls-cplusplus-sdk | 3d5a76452fe0673eba490b26e5a95fea3d5788df | [
"MIT"
] | null | null | null | /**
* Copyright (c) 2020 libnuls developers (see AUTHORS)
*
* This file is part of libnuls.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
*... | 29.933333 | 79 | 0.642415 | ccccbjcn |
4a5831064034e65062276e218a30e0b962e67dbe | 2,438 | cpp | C++ | math/RSqrt.cpp | willcode/PothosComms | 6c6ae8ccb6a9c996a67e2ca646aff79c74bb83fa | [
"BSL-1.0"
] | 14 | 2017-10-28T08:40:08.000Z | 2022-03-19T06:08:55.000Z | math/RSqrt.cpp | BelmY/PothosComms | 9aa48b827b3813b3ba2b98773f3359b30ebce346 | [
"BSL-1.0"
] | 22 | 2015-08-25T21:18:13.000Z | 2016-12-31T02:23:47.000Z | math/RSqrt.cpp | pothosware/pothos-comms | cff998cca2c9610d3e7e5480fd4fc692c13d3066 | [
"BSL-1.0"
] | 13 | 2018-01-03T15:29:44.000Z | 2022-03-19T06:09:00.000Z | // Copyright (c) 2020 Nicholas Corgan
// SPDX-License-Identifier: BSL-1.0
#ifdef POTHOS_XSIMD
#include "SIMD/MathBlocks_SIMD.hpp"
#else
#include "RSqrt.hpp"
#endif
#include <Pothos/Exception.hpp>
#include <Pothos/Framework.hpp>
//
// Templated getter to be called on class construction
//
template <typename T>
using... | 20.837607 | 83 | 0.590238 | willcode |
4a58ef092498b856623285545be675e9882062b5 | 608 | hpp | C++ | SparCraft/source/Random.hpp | abeshry/StarcraftAI | 2eca612783d1b4c06469885ebc3cce46cc0c6fce | [
"Apache-2.0"
] | null | null | null | SparCraft/source/Random.hpp | abeshry/StarcraftAI | 2eca612783d1b4c06469885ebc3cce46cc0c6fce | [
"Apache-2.0"
] | null | null | null | SparCraft/source/Random.hpp | abeshry/StarcraftAI | 2eca612783d1b4c06469885ebc3cce46cc0c6fce | [
"Apache-2.0"
] | null | null | null | #pragma once
#include <ctime>
#include <boost/random/mersenne_twister.hpp>
#include <boost/random/uniform_int_distribution.hpp>
#include <limits>
namespace SparCraft
{
class RandomInt;
}
class SparCraft::RandomInt
{
boost::random::mt19937 gen;
boost::random::uniform_int_distribution<> dist;
public:
RandomInt(... | 14.47619 | 61 | 0.689145 | abeshry |
4a5bda194310f53cc6139ba5acafebe376f289b8 | 250 | cpp | C++ | test/TrisurfPlot_Test.cpp | CalebCintary/pyplot_cpp | de33c3e921229e5efd72a7fc4fdb17212edc9aa9 | [
"MIT"
] | 1 | 2022-03-29T10:52:21.000Z | 2022-03-29T10:52:21.000Z | test/TrisurfPlot_Test.cpp | CalebCintary/pyplot_cpp | de33c3e921229e5efd72a7fc4fdb17212edc9aa9 | [
"MIT"
] | 1 | 2022-03-20T12:17:11.000Z | 2022-03-20T17:50:12.000Z | test/TrisurfPlot_Test.cpp | CalebCintary/pyplot_cpp | de33c3e921229e5efd72a7fc4fdb17212edc9aa9 | [
"MIT"
] | 1 | 2022-03-29T19:40:59.000Z | 2022-03-29T19:40:59.000Z | //
// Created by calebcintary on 3/27/22.
//
#include <boost/test/unit_test.hpp>
#include <cmath>
#include "pyplot_cpp/TrisurfPlot.hpp"
#include "pyplot_cpp/plt/Properties.hpp"
BOOST_AUTO_TEST_SUITE(TrisurfPlot_Test)
BOOST_AUTO_TEST_SUITE_END() | 16.666667 | 40 | 0.776 | CalebCintary |
4a5eadfeaa47ab6f4a621be69d1f0110f509a2cf | 6,785 | cpp | C++ | CsBlockchain/Source/CsBlockchain/Library/CsBlockchainLibrary_Blueprint_Enum.cpp | closedsum/core | c3cae44a177b9684585043a275130f9c7b67fef0 | [
"Unlicense"
] | 2 | 2019-03-17T10:43:53.000Z | 2021-04-20T21:24:19.000Z | CsBlockchain/Source/CsBlockchain/Library/CsBlockchainLibrary_Blueprint_Enum.cpp | closedsum/core | c3cae44a177b9684585043a275130f9c7b67fef0 | [
"Unlicense"
] | null | null | null | CsBlockchain/Source/CsBlockchain/Library/CsBlockchainLibrary_Blueprint_Enum.cpp | closedsum/core | c3cae44a177b9684585043a275130f9c7b67fef0 | [
"Unlicense"
] | null | null | null | // Copyright 2017-2019 Closed Sum Games, LLC. All Rights Reserved.
#include "Library/CsBlockchainLibrary_Blueprint_Enum.h"
#include "CsBlockchain.h"
// Library
#include "Library/CsLibrary_Enum.h"
// Cache
#pragma region
namespace NCsBlockchainLibraryBlueprintEnumCached
{
namespace Str
{
// Blockchain
// Comm... | 39.219653 | 276 | 0.859248 | closedsum |
4a623010cd7920100a5f7e4ea25ef8bc7ea68af1 | 7,286 | cpp | C++ | Source/Gui3D-master/Gui3DListbox.cpp | shanefarris/CoreGameEngine | 5bef275d1cd4e84aa059f2f4f9e97bfa2414d000 | [
"MIT"
] | 3 | 2019-04-12T15:22:53.000Z | 2022-01-05T02:59:56.000Z | Source/Gui3D-master/Gui3DListbox.cpp | shanefarris/CoreGameEngine | 5bef275d1cd4e84aa059f2f4f9e97bfa2414d000 | [
"MIT"
] | null | null | null | Source/Gui3D-master/Gui3DListbox.cpp | shanefarris/CoreGameEngine | 5bef275d1cd4e84aa059f2f4f9e97bfa2414d000 | [
"MIT"
] | 2 | 2019-04-10T22:46:21.000Z | 2020-05-27T16:21:37.000Z | /*
Gui3D
-------
Copyright (c) 2012 Valentin Frechaud
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
... | 28.24031 | 102 | 0.584683 | shanefarris |
4a64ab43e898b6d9f749c8b9150aaab717083bb7 | 636 | hpp | C++ | cpp_rush2_2019/Object.hpp | AdamCyffka/cpp-pool-tek2 | a12d80007199b89da72b56f5995c7f69d0494f15 | [
"MIT"
] | null | null | null | cpp_rush2_2019/Object.hpp | AdamCyffka/cpp-pool-tek2 | a12d80007199b89da72b56f5995c7f69d0494f15 | [
"MIT"
] | null | null | null | cpp_rush2_2019/Object.hpp | AdamCyffka/cpp-pool-tek2 | a12d80007199b89da72b56f5995c7f69d0494f15 | [
"MIT"
] | 1 | 2021-01-23T15:47:13.000Z | 2021-01-23T15:47:13.000Z | /*
** EPITECH PROJECT, 2020
** Object.hpp
** File description:
** Object.hpp
*/
#ifndef TMP_RUSH_OBJECT_HPP
#define TMP_RUSH_OBJECT_HPP
#include <string>
#include <iostream>
class Object {
public:
enum objectType {
OBJECT,
TOY,
WRAP,
GIFTPAPER,
BOX
};
// Cons... | 17.189189 | 49 | 0.600629 | AdamCyffka |
4a68a9826318459cc5f28eac89a9d4634bf40fd6 | 5,251 | tcc | C++ | src/RetCodeWrapper.tcc | sodmitriev/RetCodeWrapper | 48f9166ac6516cb73aa456f25a64d62e68885d27 | [
"BSL-1.0"
] | null | null | null | src/RetCodeWrapper.tcc | sodmitriev/RetCodeWrapper | 48f9166ac6516cb73aa456f25a64d62e68885d27 | [
"BSL-1.0"
] | null | null | null | src/RetCodeWrapper.tcc | sodmitriev/RetCodeWrapper | 48f9166ac6516cb73aa456f25a64d62e68885d27 | [
"BSL-1.0"
] | null | null | null | // Copyright 2019 Sviatoslav Dmitriev
// 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 RETCODEWRAPPER_RETCODEWRAPPER_TCC
#define RETCODEWRAPPER_RETCODEWRAPPER_TCC
#include <cassert>
//Return by value
templa... | 24.423256 | 109 | 0.708056 | sodmitriev |
4a7aea643da4e872c55d9264dbea3d18e4b54b0d | 1,743 | cpp | C++ | 010_RegularExpressionMatching.cpp | kun2012/Leetcode | fa6bbe3f559176911ebb12c9b911b969c6ec85fb | [
"MIT"
] | null | null | null | 010_RegularExpressionMatching.cpp | kun2012/Leetcode | fa6bbe3f559176911ebb12c9b911b969c6ec85fb | [
"MIT"
] | null | null | null | 010_RegularExpressionMatching.cpp | kun2012/Leetcode | fa6bbe3f559176911ebb12c9b911b969c6ec85fb | [
"MIT"
] | null | null | null | /****************************************************************
Implement regular expression matching with support for '.' and '*'.
'.' Matches any single character.
'*' Matches zero or more of the preceding element.
The matching should cover the entire input string (not partial).
The function prototype should be:
bo... | 32.886792 | 67 | 0.37751 | kun2012 |
4a85ebd3322f732c4399c9c9851d14fa74e39db8 | 285 | cpp | C++ | matcher.hexadecimal_digit.cpp | michalfita/hexadecimal-conversion-benchmark | ae884486b19672b9097a0359508591b4a4348bd1 | [
"CC0-1.0"
] | null | null | null | matcher.hexadecimal_digit.cpp | michalfita/hexadecimal-conversion-benchmark | ae884486b19672b9097a0359508591b4a4348bd1 | [
"CC0-1.0"
] | null | null | null | matcher.hexadecimal_digit.cpp | michalfita/hexadecimal-conversion-benchmark | ae884486b19672b9097a0359508591b4a4348bd1 | [
"CC0-1.0"
] | null | null | null | #include "matcher.hexadecimal_digit.h"
bool HexadecimalDigit::match(char const& c) const
{
return (c >= '0' && c <= '9')
|| (c >= 'A' && c <= 'Z')
|| (c >= 'a' && c <= 'z');
}
std::string HexadecimalDigit::describe() const
{
return "is hexadecimal digit";
}
| 19 | 49 | 0.533333 | michalfita |
4a906fb43cef8dbee09f71598f98c7a53116c0dd | 6,616 | cpp | C++ | Refureku/Generator/LibraryGenerator/main.cpp | Angelysse/Refureku | 1f01107c94cd81998068ce3fde02bb21c180166b | [
"MIT"
] | null | null | null | Refureku/Generator/LibraryGenerator/main.cpp | Angelysse/Refureku | 1f01107c94cd81998068ce3fde02bb21c180166b | [
"MIT"
] | null | null | null | Refureku/Generator/LibraryGenerator/main.cpp | Angelysse/Refureku | 1f01107c94cd81998068ce3fde02bb21c180166b | [
"MIT"
] | null | null | null | #include <utility> //std::forward
#include <vector>
#include <Kodgen/Misc/Filesystem.h>
#include <Kodgen/Misc/DefaultLogger.h>
#include <Kodgen/Parsing/FileParser.h>
#include <Kodgen/CodeGen/CodeGenManager.h>
#include <Kodgen/CodeGen/Macro/MacroCodeGenUnit.h>
#include <Kodgen/CodeGen/Macro/MacroCodeGenUnitSettings.h>
... | 38.690058 | 218 | 0.783857 | Angelysse |
4a95d27ef0f07f166eab25b9cc1c05532874fd15 | 2,083 | cpp | C++ | ShootingState.cpp | thomasvt/stuck | eb590f4218d8eb00199518c8f0c1d3225216d412 | [
"MIT"
] | 1 | 2022-03-13T09:02:50.000Z | 2022-03-13T09:02:50.000Z | ShootingState.cpp | thomasvt/stuck | eb590f4218d8eb00199518c8f0c1d3225216d412 | [
"MIT"
] | 1 | 2022-03-13T09:04:33.000Z | 2022-03-13T18:56:32.000Z | ShootingState.cpp | thomasvt/stuck | eb590f4218d8eb00199518c8f0c1d3225216d412 | [
"MIT"
] | null | null | null | #include "ShootingState.h"
#include "HeroAnimations.h"
#include <Hero.h>
#include <Vector.h>
#include <HeroFsm.h>
#include <Game.h>
namespace actors
{
namespace hero {
constexpr int max_aim_angle = 14;
constexpr int min_shot_duration = 20; // frames
void ShootingState::update(Hero& hero)
{
hero.state_dat... | 32.546875 | 235 | 0.703313 | thomasvt |
4a9ac5855328363c8c0bdac3bbcef8455f227796 | 1,687 | hpp | C++ | include/GaussianWindModel.hpp | SwiftEngineering/avionics_sim | 8fa3ef497137dd54966ff9de43cbcf2bfbf82d96 | [
"MIT"
] | null | null | null | include/GaussianWindModel.hpp | SwiftEngineering/avionics_sim | 8fa3ef497137dd54966ff9de43cbcf2bfbf82d96 | [
"MIT"
] | null | null | null | include/GaussianWindModel.hpp | SwiftEngineering/avionics_sim | 8fa3ef497137dd54966ff9de43cbcf2bfbf82d96 | [
"MIT"
] | null | null | null | /**
* @brief GaussianWindModel
* @file GaussianWindModel.hpp
* @author Nicholas Luzuriaga <nluzuriaga@swiftengineering.com>
* @copyright Copyright (c) 2019, Swift Engineering Inc.
* @license Licensed under the MIT license. See LICENSE for details.
*/
#pragma once
#include <random>
#inclu... | 29.086207 | 101 | 0.752223 | SwiftEngineering |
4a9bc174b6a2b3b59760cac5062c085d521c815b | 3,123 | cxx | C++ | java/jni/direct_bt/DBTNativeDownlink.cxx | xranby/direct_bt | 135a8cce2307df1c899eac5f25527aadcd529687 | [
"MIT"
] | 1 | 2020-09-04T18:44:13.000Z | 2020-09-04T18:44:13.000Z | java/jni/direct_bt/DBTNativeDownlink.cxx | xranby/direct_bt-1 | 135a8cce2307df1c899eac5f25527aadcd529687 | [
"MIT"
] | null | null | null | java/jni/direct_bt/DBTNativeDownlink.cxx | xranby/direct_bt-1 | 135a8cce2307df1c899eac5f25527aadcd529687 | [
"MIT"
] | null | null | null | /*
* Author: Sven Gothel <sgothel@jausoft.com>
* Copyright (c) 2020 Gothel Software e.K.
* Copyright (c) 2020 ZAFENA AB
*
* 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 restri... | 42.202703 | 140 | 0.729427 | xranby |
4a9bfa229a1401900e799b718f99562a638f4e2d | 11,039 | cc | C++ | libcef/browser/url_network_delegate.cc | tonttu/cef | 7820726709ddfe6101f3f1314189a8b6ad04f85e | [
"BSD-3-Clause"
] | null | null | null | libcef/browser/url_network_delegate.cc | tonttu/cef | 7820726709ddfe6101f3f1314189a8b6ad04f85e | [
"BSD-3-Clause"
] | null | null | null | libcef/browser/url_network_delegate.cc | tonttu/cef | 7820726709ddfe6101f3f1314189a8b6ad04f85e | [
"BSD-3-Clause"
] | 3 | 2015-10-21T07:39:45.000Z | 2018-10-10T04:48:54.000Z | // Copyright (c) 2012 The Chromium Embedded Framework Authors. All rights
// reserved. Use of this source code is governed by a BSD-style license that can
// be found in the LICENSE file.
#include "libcef/browser/url_network_delegate.h"
#include <string>
#include "include/cef_urlrequest.h"
#include "libcef/browser/b... | 31.904624 | 87 | 0.645167 | tonttu |
4a9d2ab76ac6fe03b023bb8009a301ff14a5d7f6 | 1,350 | cpp | C++ | perfwatcher/perfwatcher.cpp | NutshellySima/gomoku | 679a94c30719a3deeb21077ebd16d5482d055beb | [
"Apache-2.0"
] | 5 | 2017-06-01T15:21:12.000Z | 2018-06-12T07:50:26.000Z | perfwatcher/perfwatcher.cpp | NutshellySima/gomoku | 679a94c30719a3deeb21077ebd16d5482d055beb | [
"Apache-2.0"
] | 2 | 2018-02-02T07:12:25.000Z | 2018-02-08T18:53:28.000Z | perfwatcher/perfwatcher.cpp | NutshellySima/gomoku | 679a94c30719a3deeb21077ebd16d5482d055beb | [
"Apache-2.0"
] | 1 | 2018-03-02T07:47:53.000Z | 2018-03-02T07:47:53.000Z | // Copyright 2017-2018 Chijun Sima
//
// Use of this source code is governed by an MIT-style
// license that can be found in the LICENSE file or at
// https://opensource.org/licenses/MIT.
#include "stdafx.h"
using namespace std;
int main()
{
cin.tie(0);
cout.tie(0);
ios::sync_with_stdio(false);
__int64 maxnum = ... | 27.55102 | 129 | 0.585926 | NutshellySima |
4aa108f1516add5d5525151cb137a10e1743272c | 5,207 | hpp | C++ | include/Vector2.hpp | TheExeQ/CommonUtilities | 3abf9f9575b925aaa592d9eb7ce86665eecbba6f | [
"MIT"
] | null | null | null | include/Vector2.hpp | TheExeQ/CommonUtilities | 3abf9f9575b925aaa592d9eb7ce86665eecbba6f | [
"MIT"
] | null | null | null | include/Vector2.hpp | TheExeQ/CommonUtilities | 3abf9f9575b925aaa592d9eb7ce86665eecbba6f | [
"MIT"
] | null | null | null | #pragma once
#include <cassert>
#include <cmath>
#define PI 3.1415926535f
namespace CommonUtilities
{
template<class T>
class Vector2
{
public:
T x, y;
//Creates a null-vector
Vector2<T>();
//Creates a vector (aX, aY, aZ)
Vector2<T>(const T& aX, const T& aY);
//Copy constructor (compiler generate... | 26.840206 | 161 | 0.675821 | TheExeQ |
4aa1c074d9e7d26c2f910aa223c2e9808f09eec6 | 1,158 | cpp | C++ | NewEnvironmentDialog.cpp | jambolo/ConfettiMachine | 02512f43e5a613dd972bdb06fa6a17acfc7d7ef8 | [
"MIT"
] | null | null | null | NewEnvironmentDialog.cpp | jambolo/ConfettiMachine | 02512f43e5a613dd972bdb06fa6a17acfc7d7ef8 | [
"MIT"
] | null | null | null | NewEnvironmentDialog.cpp | jambolo/ConfettiMachine | 02512f43e5a613dd972bdb06fa6a17acfc7d7ef8 | [
"MIT"
] | null | null | null | /********************************************************************************************************************
NewEnvironmentDialog.cpp
Copyright 2003, John J. Bolton
----------------------------------------------------------------------... | 26.318182 | 118 | 0.501727 | jambolo |
4aa32855d9659f110a0f8ac056bcd782ef91fe1f | 2,701 | hh | C++ | src/dirman/ops/OpDirManCentralized.hh | faodel/faodel | ef2bd8ff335433e695eb561d7ecd44f233e58bf0 | [
"MIT"
] | 2 | 2019-01-25T21:21:07.000Z | 2021-04-29T17:24:00.000Z | src/dirman/ops/OpDirManCentralized.hh | faodel/faodel | ef2bd8ff335433e695eb561d7ecd44f233e58bf0 | [
"MIT"
] | 8 | 2018-10-09T14:35:30.000Z | 2020-09-30T20:09:42.000Z | src/dirman/ops/OpDirManCentralized.hh | faodel/faodel | ef2bd8ff335433e695eb561d7ecd44f233e58bf0 | [
"MIT"
] | 2 | 2019-04-23T19:01:36.000Z | 2021-05-11T07:44:55.000Z | // Copyright 2021 National Technology & Engineering Solutions of Sandia, LLC
// (NTESS). Under the terms of Contract DE-NA0003525 with NTESS, the U.S.
// Government retains certain rights in this software.
#ifndef DIRMAN_OPDIRMANCENTRALIZED_HH
#define DIRMAN_OPDIRMANCENTRALIZED_HH
#include <future>
#include "faodel... | 29.043011 | 102 | 0.734173 | faodel |
4aa75f7169dadc6aedb5c80d3c637469ec037b4a | 1,171 | hpp | C++ | projects/y64/src/y64lib/y64lexer.hpp | syn1w/Toys | aebe4b4c2904d1722c2335a93a546a8d893c2af3 | [
"MIT"
] | 4 | 2022-03-01T03:28:19.000Z | 2022-03-01T03:33:47.000Z | projects/y64/src/y64lib/y64lexer.hpp | vczn/Toys | 741e9ca97e8e700a1cece67df5bd907b0f37d0f9 | [
"MIT"
] | null | null | null | projects/y64/src/y64lib/y64lexer.hpp | vczn/Toys | 741e9ca97e8e700a1cece67df5bd907b0f37d0f9 | [
"MIT"
] | null | null | null | #ifndef Y64_LIB_Y64_LEXER_HPP
#define Y64_LIB_Y64_LEXER_HPP
#include <vector>
#include "asmtoken.hpp"
namespace y64 {
class AsmLexer {
public:
AsmLexer(const std::string &source)
: AsmLexer(source.data(), source.data() + source.size()) {}
AsmToken::Kind lookahead();
const AsmToken &lex();
int getLin... | 22.960784 | 77 | 0.698548 | syn1w |
4aa92ee35a3d31536af0a9d928284b6b24597e35 | 465 | cpp | C++ | Puzzles/p7-src/pizzabuilder.cpp | r-hurtado/RussT | 861e0150bf7e5cf9eb629fbd58a22c9c21b6d2c6 | [
"MIT"
] | null | null | null | Puzzles/p7-src/pizzabuilder.cpp | r-hurtado/RussT | 861e0150bf7e5cf9eb629fbd58a22c9c21b6d2c6 | [
"MIT"
] | null | null | null | Puzzles/p7-src/pizzabuilder.cpp | r-hurtado/RussT | 861e0150bf7e5cf9eb629fbd58a22c9c21b6d2c6 | [
"MIT"
] | null | null | null | #include "pizzabuilder.h"
#include "pizzaprovider.h"
PizzaBuilder::PizzaBuilder(PizzaProvider *provider, QObject *parent) : QObject(parent), mPizzaProvider(provider)
{
connect(mPizzaProvider, &PizzaProvider::readyForUpdate, this, PizzaBuilder::updateLivePizza);
}
void PizzaBuilder::chooseTopping(QString topping)
... | 25.833333 | 112 | 0.782796 | r-hurtado |
4aaa5b5772862f79ed1d897299c8efcb2ec35821 | 3,729 | cpp | C++ | test/bytecode/interpreter/src/410BytecodeInterpreter_conditional_test.cpp | Scorbutics/skalang | c8d1869a2f0c7857ee05ef45bd3aa4e537d39558 | [
"MIT"
] | 3 | 2019-04-08T17:34:19.000Z | 2020-01-03T04:47:06.000Z | test/bytecode/interpreter/src/410BytecodeInterpreter_conditional_test.cpp | Scorbutics/skalang | c8d1869a2f0c7857ee05ef45bd3aa4e537d39558 | [
"MIT"
] | 4 | 2020-04-19T22:09:06.000Z | 2020-11-06T15:47:08.000Z | test/bytecode/interpreter/src/410BytecodeInterpreter_conditional_test.cpp | Scorbutics/skalang | c8d1869a2f0c7857ee05ef45bd3aa4e537d39558 | [
"MIT"
] | null | null | null | #include <doctest.h>
#include <tuple>
#include "Config/LoggerConfigLang.h"
#include "BytecodeInterpreterTest.h"
TEST_CASE("[BytecodeInterpreter] equal int (false)") {
static constexpr auto progStr = "t= 4 == 1\n";
auto [script, data] = Interpret(progStr);
auto& gen = data.generator->generate(*data.storage, std::mov... | 38.84375 | 73 | 0.703406 | Scorbutics |
385f5780b2b34dda22eedc61633484f034799ec6 | 10,118 | cpp | C++ | AcStatDialog.cpp | Interkarma/daggerfallexplorer | f5faa90d8549d8e9edc0a120c6e51b815537ab6e | [
"MIT"
] | 2 | 2019-06-30T22:32:01.000Z | 2021-05-05T13:09:12.000Z | AcStatDialog.cpp | Interkarma/daggerfallexplorer | f5faa90d8549d8e9edc0a120c6e51b815537ab6e | [
"MIT"
] | null | null | null | AcStatDialog.cpp | Interkarma/daggerfallexplorer | f5faa90d8549d8e9edc0a120c6e51b815537ab6e | [
"MIT"
] | 1 | 2019-12-04T05:04:13.000Z | 2019-12-04T05:04:13.000Z | /*************************************************************************************************\
*
* Filename: AcStatDialog.cpp
* Purpose: Implement CAcStatDialog class
* Version: 1.0
* Author: Gavin Clayton
*
* Last Updated: 29/08/2002
*
* Copyright 2002. Gavin Clayton. All Rights Reserved.
*
* If changes are m... | 28.826211 | 101 | 0.703795 | Interkarma |
3862d50cd4ec3119cf3b451129ca0a9eedacfec2 | 3,276 | cpp | C++ | project2D/Box.cpp | Eldernash/LinearForceMomentum | 0f0af3d52e798589cb86ef1adf2d657db043234c | [
"MIT"
] | null | null | null | project2D/Box.cpp | Eldernash/LinearForceMomentum | 0f0af3d52e798589cb86ef1adf2d657db043234c | [
"MIT"
] | null | null | null | project2D/Box.cpp | Eldernash/LinearForceMomentum | 0f0af3d52e798589cb86ef1adf2d657db043234c | [
"MIT"
] | null | null | null | #include "Box.h"
Box::Box(glm::vec2 position, glm::vec2 extents, glm::vec2 velocity, float mass, glm::vec4 colour) : RigidBody(BOX, position, velocity, 0, mass) {
m_extents = extents;
m_colour = colour;
m_elasticity = 1;
m_isKinematic = false;
m_linearDrag = 0;
m_angularDrag = 0;
m_moment = 1.0f / 12.0f * ma... | 28.99115 | 161 | 0.634921 | Eldernash |
386adf1b9218e33899c386f05cc0e61312faa766 | 4,192 | cpp | C++ | Code/GUI/Windows/MainMenuWindow.cpp | karaul0f/antEngine | 9a32ed07f2a47bc9edd6e12757e0053cccc6b9d1 | [
"MIT"
] | 3 | 2021-08-03T14:57:41.000Z | 2021-08-09T16:04:23.000Z | Code/GUI/Windows/MainMenuWindow.cpp | karaul0f/antEngine | 9a32ed07f2a47bc9edd6e12757e0053cccc6b9d1 | [
"MIT"
] | 2 | 2021-08-21T14:32:14.000Z | 2021-08-24T14:27:31.000Z | Code/GUI/Windows/MainMenuWindow.cpp | karaul0f/antEngine | 9a32ed07f2a47bc9edd6e12757e0053cccc6b9d1 | [
"MIT"
] | null | null | null | #include "MainMenuWindow.h"
#include "Gameplay/Gameplay.h"
#include "Gameplay/States/GameState.h"
#include "Resources/ResourceManager.h"
#include "TGUI/TGUI.hpp"
namespace GUI
{
//-----------------------------------------------------------------
void MainMenuWindow::Activate(tgui::GuiSFML* gui)
{
m_gui = gui;
m_gui... | 34.644628 | 119 | 0.625716 | karaul0f |
3877420588a2eb5809bf55527519fb64f644412f | 391 | cpp | C++ | codes/HDU/hdu4493.cpp | JeraKrs/ACM | edcd61ec6764b8cd804bf1538dfde53d0ff572b5 | [
"Apache-2.0"
] | null | null | null | codes/HDU/hdu4493.cpp | JeraKrs/ACM | edcd61ec6764b8cd804bf1538dfde53d0ff572b5 | [
"Apache-2.0"
] | null | null | null | codes/HDU/hdu4493.cpp | JeraKrs/ACM | edcd61ec6764b8cd804bf1538dfde53d0ff572b5 | [
"Apache-2.0"
] | null | null | null | #include <cstdio>
#include <cstring>
int main () {
int cas;
double s, a;
scanf("%d", &cas);
while (cas--) {
s = 0;
for (int i = 0; i < 12; i++) {
scanf("%lf", &a);
s += a;
}
s /= 12;
printf("$%d", (int)s);
s -= (int)s;
s *= 100;
int k = (int)(s + 0.5);
if (k) {
printf(".%d", k/10);
... | 12.612903 | 32 | 0.419437 | JeraKrs |
3881679512877859ba41aaf1ef586c1c9c23268d | 3,077 | cpp | C++ | examples/TestUtility/CommandCore/TestCommandController.cpp | Michal-Bugno/ThunderNanoServices | 9b328519a363c602823f9d1f101d47f0a2482a23 | [
"BSD-2-Clause"
] | 7 | 2020-03-24T15:26:23.000Z | 2021-12-21T21:42:38.000Z | examples/TestUtility/CommandCore/TestCommandController.cpp | Michal-Bugno/ThunderNanoServices | 9b328519a363c602823f9d1f101d47f0a2482a23 | [
"BSD-2-Clause"
] | 224 | 2020-03-05T17:40:39.000Z | 2022-03-23T13:18:56.000Z | examples/TestUtility/CommandCore/TestCommandController.cpp | Michal-Bugno/ThunderNanoServices | 9b328519a363c602823f9d1f101d47f0a2482a23 | [
"BSD-2-Clause"
] | 52 | 2020-03-05T17:24:05.000Z | 2022-03-31T02:13:40.000Z | /*
* If not stated otherwise in this file or this component's LICENSE file the
* following copyright and licenses apply:
*
* Copyright 2020 Metrological
*
* 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 ... | 34.188889 | 136 | 0.656809 | Michal-Bugno |
3886c1c1c5d3041e1a66cf9bd6ad9465ee0f7f06 | 14,879 | cpp | C++ | src/engine_core/wme_base/utils.cpp | segafan/wme1_jankavan_tlc_edition-repo | 72163931f348d5a2132577930362d297cc375a26 | [
"MIT"
] | 3 | 2021-03-28T00:11:48.000Z | 2022-01-12T13:10:52.000Z | src/engine_core/wme_base/utils.cpp | segafan/wme1_jankavan_tlc_edition-repo | 72163931f348d5a2132577930362d297cc375a26 | [
"MIT"
] | null | null | null | src/engine_core/wme_base/utils.cpp | segafan/wme1_jankavan_tlc_edition-repo | 72163931f348d5a2132577930362d297cc375a26 | [
"MIT"
] | null | null | null | // This file is part of Wintermute Engine
// For conditions of distribution and use, see copyright notice in license.txt
// http://dead-code.org/redir.php?target=wme
#include "dcgf.h"
#include "rgbpixel.h"
#include <direct.h>
#ifdef _DEBUG
#include <Psapi.h>
#pragma comment(lib, "psapi.lib")
#endif
... | 24.552805 | 96 | 0.486054 | segafan |
388ba88e235cd2643ceb0e4ebec823fb20bd4745 | 1,270 | cpp | C++ | common/SoapyHTTPUtils.cpp | kerel-fs/SoapyRemote | 29a08cc7b50ab9bb1f9d1509dff2feaaff3ef95f | [
"BSL-1.0"
] | 89 | 2015-09-13T14:48:08.000Z | 2022-03-26T17:32:18.000Z | common/SoapyHTTPUtils.cpp | kerel-fs/SoapyRemote | 29a08cc7b50ab9bb1f9d1509dff2feaaff3ef95f | [
"BSL-1.0"
] | 77 | 2015-09-17T05:50:45.000Z | 2022-03-09T14:53:58.000Z | common/SoapyHTTPUtils.cpp | kerel-fs/SoapyRemote | 29a08cc7b50ab9bb1f9d1509dff2feaaff3ef95f | [
"BSL-1.0"
] | 24 | 2015-09-26T04:54:36.000Z | 2022-02-05T15:10:08.000Z | // Copyright (c) 2015-2015 Josh Blum
// SPDX-License-Identifier: BSL-1.0
#include "SoapyHTTPUtils.hpp"
#include <cctype>
SoapyHTTPHeader::SoapyHTTPHeader(const std::string &line0)
{
_storage = line0 + "\r\n";
}
void SoapyHTTPHeader::addField(const std::string &key, const std::string &value)
{
_storage += key... | 23.962264 | 80 | 0.650394 | kerel-fs |
388e20bde79b8a0031cc36bf337643d26c425677 | 1,581 | cpp | C++ | C++/redundant-connection-ii.cpp | jaiskid/LeetCode-Solutions | a8075fd69087c5463f02d74e6cea2488fdd4efd1 | [
"MIT"
] | 3,269 | 2018-10-12T01:29:40.000Z | 2022-03-31T17:58:41.000Z | C++/redundant-connection-ii.cpp | jaiskid/LeetCode-Solutions | a8075fd69087c5463f02d74e6cea2488fdd4efd1 | [
"MIT"
] | 53 | 2018-12-16T22:54:20.000Z | 2022-02-25T08:31:20.000Z | C++/redundant-connection-ii.cpp | jaiskid/LeetCode-Solutions | a8075fd69087c5463f02d74e6cea2488fdd4efd1 | [
"MIT"
] | 1,236 | 2018-10-12T02:51:40.000Z | 2022-03-30T13:30:37.000Z | // Time: O(nlog*n) ~= O(n), n is the length of the positions
// Space: O(n)
class Solution {
public:
vector<int> findRedundantDirectedConnection(vector<vector<int>>& edges) {
vector<int> cand1, cand2;
unordered_map<int, int> parent;
for (const auto& edge : edges) {
if (!parent.... | 27.736842 | 77 | 0.4358 | jaiskid |
389875c4d56985dcc15198f527686cde3347d2cf | 1,129 | hpp | C++ | rpt-tests/include/RpT-Testing/MinigamesServicesTestingUtils.hpp | ThisALV/RpT-Minigames-Server | 311738bea6e7025944c1d723217a878c29b20695 | [
"BSL-1.0",
"MIT"
] | null | null | null | rpt-tests/include/RpT-Testing/MinigamesServicesTestingUtils.hpp | ThisALV/RpT-Minigames-Server | 311738bea6e7025944c1d723217a878c29b20695 | [
"BSL-1.0",
"MIT"
] | null | null | null | rpt-tests/include/RpT-Testing/MinigamesServicesTestingUtils.hpp | ThisALV/RpT-Minigames-Server | 311738bea6e7025944c1d723217a878c29b20695 | [
"BSL-1.0",
"MIT"
] | null | null | null | #ifndef RPT_MINIGAMES_SERVER_MINIGAMESSERVICESTESTINGUTILS_HPP
#define RPT_MINIGAMES_SERVER_MINIGAMESSERVICESTESTINGUTILS_HPP
#include <Minigames-Services/BoardGame.hpp>
#include <Minigames-Services/Grid.hpp>
/*
* Testing functions utilities for minigames-services static library unit tests
*/
// Required for ADL ... | 38.931034 | 117 | 0.798051 | ThisALV |
389e06daef8c2a976a9af7408f055e7e81c0d977 | 9,638 | hpp | C++ | include/petra/detail/chd.hpp | jacquelinekay/petra | 7db7eef381a20c91664553c28f57dfed96e32a50 | [
"MIT"
] | 118 | 2017-06-02T06:39:34.000Z | 2022-01-05T07:34:10.000Z | include/petra/detail/chd.hpp | jacquelinekay/petra | 7db7eef381a20c91664553c28f57dfed96e32a50 | [
"MIT"
] | 1 | 2017-10-11T05:31:15.000Z | 2017-11-04T17:05:02.000Z | include/petra/detail/chd.hpp | jacquelinekay/petra | 7db7eef381a20c91664553c28f57dfed96e32a50 | [
"MIT"
] | 6 | 2017-06-09T21:04:42.000Z | 2019-12-25T10:47:37.000Z | // Copyright Jacqueline Kay 2017
// Distributed under the MIT License.
// See accompanying LICENSE.md or https://opensource.org/licenses/MIT
#pragma once
#include <limits>
#include <tuple>
#include "petra/linear_hash.hpp"
#include "petra/string_literal.hpp"
#include "petra/switch_table.hpp"
#include "petra/utilities... | 38.706827 | 80 | 0.588919 | jacquelinekay |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.