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
e733c9ee77c621437afdbe5a4aa3be5902f3e1d4
18,686
cpp
C++
src/Toolbar.cpp
petterh/textedit
df59502fa5309834b2d2452af609ba6fb1dc97c2
[ "MIT" ]
6
2018-04-08T06:30:27.000Z
2021-12-19T12:52:28.000Z
src/Toolbar.cpp
petterh/textedit
df59502fa5309834b2d2452af609ba6fb1dc97c2
[ "MIT" ]
32
2017-11-03T09:39:48.000Z
2021-12-23T18:27:20.000Z
src/Toolbar.cpp
petterh/textedit
df59502fa5309834b2d2452af609ba6fb1dc97c2
[ "MIT" ]
1
2021-09-13T08:38:56.000Z
2021-09-13T08:38:56.000Z
/* * $Header: /Book/Toolbar.cpp 25 16.07.04 10:42 Oslph312 $ * * The toolbar automatically uses large icons when the user's * selected menu font gets above a suitable treshold. This treshold * is controlled by MenuFont::isLarge. */ #include "precomp.h" #include "String.h" #include "Exception.h" #include "Edit...
30.937086
100
0.618003
petterh
e7341b14d0a5d906432ed8f7a93af66faecb3dc6
6,063
cpp
C++
pwiz/analysis/peakdetect/PeakExtractorTest.cpp
edyp-lab/pwiz-mzdb
d13ce17f4061596c7e3daf9cf5671167b5996831
[ "Apache-2.0" ]
11
2015-01-08T08:33:44.000Z
2019-07-12T06:14:54.000Z
pwiz/analysis/peakdetect/PeakExtractorTest.cpp
shze/pwizard-deb
4822829196e915525029a808470f02d24b8b8043
[ "Apache-2.0" ]
61
2015-05-27T11:20:11.000Z
2019-12-20T15:06:21.000Z
pwiz/analysis/peakdetect/PeakExtractorTest.cpp
shze/pwizard-deb
4822829196e915525029a808470f02d24b8b8043
[ "Apache-2.0" ]
4
2016-02-03T09:41:16.000Z
2021-08-01T18:42:36.000Z
// // $Id: PeakExtractorTest.cpp 4129 2012-11-20 00:05:37Z chambm $ // // // Original author: Darren Kessner <darren@proteowizard.org> // // Copyright 2009 Center for Applied Molecular Medicine // University of Southern California, Los Angeles, CA // // Licensed under the Apache License, Version 2.0 (the "License"); ...
26.709251
88
0.555995
edyp-lab
e737bacd8c6470f39a8318e7f801c4e5ea1caa0a
16,241
hpp
C++
extlibs/SSVUtilsJson/extlibs/SSVUtils/include/SSVUtils/HandleVector/HandleVector.hpp
questor/git-ws
4c6db1dd6586be21baf74d97e3caf1006a239aec
[ "AFL-3.0" ]
null
null
null
extlibs/SSVUtilsJson/extlibs/SSVUtils/include/SSVUtils/HandleVector/HandleVector.hpp
questor/git-ws
4c6db1dd6586be21baf74d97e3caf1006a239aec
[ "AFL-3.0" ]
null
null
null
extlibs/SSVUtilsJson/extlibs/SSVUtils/include/SSVUtils/HandleVector/HandleVector.hpp
questor/git-ws
4c6db1dd6586be21baf74d97e3caf1006a239aec
[ "AFL-3.0" ]
null
null
null
// Copyright (c) 2013-2014 Vittorio Romeo // License: Academic Free License ("AFL") v. 3.0 // AFL License page: http://opensource.org/licenses/AFL-3.0 #ifndef SSVU_HANDLEVECTOR #define SSVU_HANDLEVECTOR #include "SSVUtils/Core/Core.hpp" #include "SSVUtils/Range/Range.hpp" #include "SSVUtils/GrowableArray/GrowableArra...
41.750643
147
0.708885
questor
8d44ce46a7a7fa91e0b1a4883810718ac4c5a8b9
8,915
hpp
C++
src/core/solver.hpp
thomasfoetisch/tfel
c67acabaf4acf4a93edb55a9f415c87fe6b56e89
[ "BSD-3-Clause" ]
1
2019-07-09T09:31:09.000Z
2019-07-09T09:31:09.000Z
src/core/solver.hpp
thomashilke/tfel
c67acabaf4acf4a93edb55a9f415c87fe6b56e89
[ "BSD-3-Clause" ]
null
null
null
src/core/solver.hpp
thomashilke/tfel
c67acabaf4acf4a93edb55a9f415c87fe6b56e89
[ "BSD-3-Clause" ]
null
null
null
#ifndef SOLVER_H #define SOLVER_H #include <map> #include <string> #include <memory> #include <iostream> #include <iomanip> #include <vector> #include <spikes/array.hpp> #include <lapacke.h> #include <petscksp.h> #include <petsc/private/kspimpl.h> #include <petscdmshell.h> #include "meta.hpp" #include "dictionary.h...
27.179878
109
0.581716
thomasfoetisch
8d45013cfd2c507254705d6887b484cd16748f0c
6,394
cpp
C++
src/render/Pipeline/Texture2D.cpp
AluminiumRat/mtt
3052f8ad0ffabead05a1033e1d714a61e77d0aa8
[ "MIT" ]
null
null
null
src/render/Pipeline/Texture2D.cpp
AluminiumRat/mtt
3052f8ad0ffabead05a1033e1d714a61e77d0aa8
[ "MIT" ]
null
null
null
src/render/Pipeline/Texture2D.cpp
AluminiumRat/mtt
3052f8ad0ffabead05a1033e1d714a61e77d0aa8
[ "MIT" ]
null
null
null
#include <stdexcept> #include <mtt/render/Pipeline/Texture2D.h> #include <mtt/render/LogicalDevice.h> #include <mtt/render/PlainBuffer.h> #include <mtt/utilities/Abort.h> using namespace mtt; Texture2D::Texture2D(LogicalDevice& device) noexcept : AbstractTexture(TEXTURE_2D, device), _dataFormat(VK_FORMAT_R8G8B8...
35.921348
95
0.514545
AluminiumRat
8d486df3bf2342d2543d9f85cd70e32330238dc5
4,647
hpp
C++
src/elona/enchantment.hpp
ElonaFoobar/ElonaFoobar
35864685dcca96c4c9ad683c4f5b3537e86bc06f
[ "MIT" ]
84
2018-03-03T02:44:32.000Z
2019-07-14T16:16:24.000Z
src/elona/enchantment.hpp
ki-foobar/ElonaFoobar
d251cf5bd8c21789db3b56b1c9b1302ce69b2c2e
[ "MIT" ]
685
2018-02-27T04:31:17.000Z
2019-07-12T13:43:00.000Z
src/elona/enchantment.hpp
ki-foobar/ElonaFoobar
d251cf5bd8c21789db3b56b1c9b1302ce69b2c2e
[ "MIT" ]
23
2019-07-26T08:52:38.000Z
2021-11-09T09:21:58.000Z
#pragma once #include <string> #include <vector> #include "../util/range.hpp" #include "enums.hpp" #include "eobject/forward.hpp" #include "optional.hpp" #include "serialization/concepts.hpp" namespace elona { struct Character; struct Item; struct Enchantment { int id = 0; int power = 0; bool op...
17.736641
78
0.581235
ElonaFoobar
8d4adae6f338d909989704e58826c1cf14bed604
961
cpp
C++
Plugins/Wwise/Source/AkAudio/Private/AkAuxBus.cpp
BeatItOtaku/Eclair3
a6129725918b63612fb4477d80305c930962974c
[ "MIT" ]
null
null
null
Plugins/Wwise/Source/AkAudio/Private/AkAuxBus.cpp
BeatItOtaku/Eclair3
a6129725918b63612fb4477d80305c930962974c
[ "MIT" ]
1
2019-08-18T15:57:03.000Z
2019-08-18T15:57:03.000Z
Plugins/Wwise/Source/AkAudio/Private/AkAuxBus.cpp
BeatItOtaku/Eclair3
a6129725918b63612fb4477d80305c930962974c
[ "MIT" ]
null
null
null
// Copyright (c) 2006-2012 Audiokinetic Inc. / All Rights Reserved /*============================================================================= AkReverbVolume.cpp: =============================================================================*/ #include "AkAuxBus.h" #include "AkAudioDevice.h" #include "AkAudioClas...
25.289474
86
0.478668
BeatItOtaku
8d4b6a97fd16279d753c84264d4a418ea8ee9ce1
483
cpp
C++
src/events/MyEndBaroCalCmd.cpp
LinuxDroneLab/MyDrone
33b8e9f15cebf79da0141e4d8aa5f4d57da73b3e
[ "Apache-2.0" ]
2
2021-05-31T09:46:39.000Z
2022-02-17T12:33:43.000Z
src/events/MyEndBaroCalCmd.cpp
LinuxDroneLab/MyLinuxDrone
33b8e9f15cebf79da0141e4d8aa5f4d57da73b3e
[ "Apache-2.0" ]
17
2018-09-03T05:41:37.000Z
2018-11-15T07:48:20.000Z
src/events/MyEndBaroCalCmd.cpp
LinuxDroneLab/MyLinuxDrone
33b8e9f15cebf79da0141e4d8aa5f4d57da73b3e
[ "Apache-2.0" ]
null
null
null
/* * MyEndBaroCalCmd.cpp * * Created on: 17 dic 2015 * Author: andrea */ #include <commons/MyPriority.h> #include <events/MyEndBaroCalCmd.h> MyEndBaroCalCmd::MyEndBaroCalCmd(boost::uuids::uuid origin, boost::uuids::uuid destination) : MyCmd(origin, destination) { this->setPriority(MyPriority::END_BARO_CAL...
23
122
0.747412
LinuxDroneLab
8d4bedf1528008024ed841b677393df56cc9fed4
547
cpp
C++
src/im_colorutil.cpp
hleuwer/im
178a9614868487689529b56d9cb3daedd98fc593
[ "MIT" ]
2
2022-03-04T13:33:48.000Z
2022-03-04T13:33:49.000Z
src/im_colorutil.cpp
hleuwer/im
178a9614868487689529b56d9cb3daedd98fc593
[ "MIT" ]
null
null
null
src/im_colorutil.cpp
hleuwer/im
178a9614868487689529b56d9cb3daedd98fc593
[ "MIT" ]
null
null
null
/** \file * \brief Color Utilities * * See Copyright Notice in im_lib.h */ #include <stdlib.h> #include <memory.h> #include <string.h> #include "im.h" #include "im_util.h" long imColorEncode(unsigned char Red, unsigned char Green, unsigned char Blue) { return (((long)Red) << 16) | (((long)Green) << 8) | ((long...
20.259259
93
0.648995
hleuwer
8d4c1695a3b9d5d473b044fdb1171a5c20fca83e
1,792
cpp
C++
4 - Roteadores/Roteadores.cpp
HomeniqueM/Atividades-LPA
1bc2f429d4d6afd807095be877145fbedf282329
[ "MIT" ]
null
null
null
4 - Roteadores/Roteadores.cpp
HomeniqueM/Atividades-LPA
1bc2f429d4d6afd807095be877145fbedf282329
[ "MIT" ]
null
null
null
4 - Roteadores/Roteadores.cpp
HomeniqueM/Atividades-LPA
1bc2f429d4d6afd807095be877145fbedf282329
[ "MIT" ]
null
null
null
#include <algorithm> #include <iostream> #include <vector> using namespace std; #define par pair<int, int> class Rede { private: vector<pair<int, par>> Rd; // Rede vector<pair<int, par>> mst; // mst int *parent; int V; // Numero de Vertice public: Rede(int V); void AddRoteadorComCusto(int u, int v, in...
15.316239
57
0.580915
HomeniqueM
8d4cc09f6f9f31f08b5fe555eac52e05a458d094
2,096
cpp
C++
src/TestSwitching.cpp
paulherman/cvm
af85bc6ccdd2e5db66f2ce7e1e6a8fde2051ad83
[ "MIT" ]
null
null
null
src/TestSwitching.cpp
paulherman/cvm
af85bc6ccdd2e5db66f2ce7e1e6a8fde2051ad83
[ "MIT" ]
null
null
null
src/TestSwitching.cpp
paulherman/cvm
af85bc6ccdd2e5db66f2ce7e1e6a8fde2051ad83
[ "MIT" ]
null
null
null
#include <fstream> #include <cds/init.h> #include <iostream> #include <ctime> #include "Program.h" int main(int argc, char **argv) { cds::Initialize(); std::vector<Instr> instructions = { Instr(Opcode::Spawn, (int64_t)1), Instr(Opcode::Spawn, (int64_t)1), Instr(Opcode::Spawn, (int64_t)1), Instr(Op...
30.823529
75
0.640267
paulherman
8d4e3d593a512bd68dabb0f37f046c52ed1a6a28
1,162
cpp
C++
QInt/QInt/StringFunction.cpp
vominhtrieu/QInt
4f6cedf17c55f16e9d032150b8dd72f21d5aca1b
[ "MIT" ]
null
null
null
QInt/QInt/StringFunction.cpp
vominhtrieu/QInt
4f6cedf17c55f16e9d032150b8dd72f21d5aca1b
[ "MIT" ]
null
null
null
QInt/QInt/StringFunction.cpp
vominhtrieu/QInt
4f6cedf17c55f16e9d032150b8dd72f21d5aca1b
[ "MIT" ]
null
null
null
#pragma once #include "StringFunction.h" string divideBy2(string num) { if (num == "1" || num == "0") return "0"; string result; char remainder = 0, temp; int i = 0; if (num[0] == '1') { remainder = 1; i++; } for (; i < num.length(); i++) { temp = remainder * 10 + num[i] - '0'; result.push_back(t...
18.15625
67
0.567986
vominhtrieu
8d4f758ada27559f95e9138e254a9c8188f44c18
2,859
hh
C++
gecode/int/exec.hh
Dekker1/gecode
bbefcea214fec798a0f5acc442581984555acd21
[ "MIT-feh" ]
null
null
null
gecode/int/exec.hh
Dekker1/gecode
bbefcea214fec798a0f5acc442581984555acd21
[ "MIT-feh" ]
null
null
null
gecode/int/exec.hh
Dekker1/gecode
bbefcea214fec798a0f5acc442581984555acd21
[ "MIT-feh" ]
null
null
null
/* -*- mode: C++; c-basic-offset: 2; indent-tabs-mode: nil -*- */ /* * Main authors: * Christian Schulte <schulte@gecode.org> * * Copyright: * Christian Schulte, 2009 * * This file is part of Gecode, the generic constraint * development environment: * http://www.gecode.org * * Permission is ...
32.123596
74
0.687303
Dekker1
8d512917c9c041c5c4429a8ca9dee0f74a78df04
2,032
cpp
C++
Singly Linked List/Reverse_in_groups_Recursive.cpp
susantabiswas/placementPrep
22a7574206ddc63eba89517f7b68a3d2f4d467f5
[ "MIT" ]
19
2018-12-02T05:59:44.000Z
2021-07-24T14:11:54.000Z
Singly Linked List/Reverse_in_groups_Recursive.cpp
susantabiswas/placementPrep
22a7574206ddc63eba89517f7b68a3d2f4d467f5
[ "MIT" ]
null
null
null
Singly Linked List/Reverse_in_groups_Recursive.cpp
susantabiswas/placementPrep
22a7574206ddc63eba89517f7b68a3d2f4d467f5
[ "MIT" ]
13
2019-04-25T16:20:00.000Z
2021-09-06T19:50:04.000Z
//Reverses the Linked List in Groups of K nodes using Recursion /*Example: Inputs: 1->2->3->4->5->6->7->8->NULL and k = 3 Output: 3->2->1->6->5->4->8->7->NULL. */ #include<iostream> using namespace std; struct Node { int data; Node *next; }; class List { public: Node *head; //head for the list List() { ...
15.278195
88
0.605807
susantabiswas
8d53f8856b0eb55e51ea0c6ff7d2bbe3004c1978
16,642
hxx
C++
rutil/dns/DnsStub.hxx
dulton/reSipServer
ac4241df81c1e3eef2e678271ffef4dda1fc6747
[ "Apache-2.0" ]
1
2019-04-15T14:10:58.000Z
2019-04-15T14:10:58.000Z
rutil/dns/DnsStub.hxx
dulton/reSipServer
ac4241df81c1e3eef2e678271ffef4dda1fc6747
[ "Apache-2.0" ]
null
null
null
rutil/dns/DnsStub.hxx
dulton/reSipServer
ac4241df81c1e3eef2e678271ffef4dda1fc6747
[ "Apache-2.0" ]
2
2019-10-31T09:11:09.000Z
2021-09-17T01:00:49.000Z
#ifndef RESIP_DNS_STUB_HXX #define RESIP_DNS_STUB_HXX #ifdef HAVE_CONFIG_H #include "config.h" #endif #include <vector> #include <list> #include <map> #include <set> #include "rutil/FdPoll.hxx" #include "rutil/Fifo.hxx" #include "rutil/GenericIPAddress.hxx" #include "rutil/SelectInterruptor.hxx" #include "rutil/Soc...
32.759843
157
0.589352
dulton
8d5acadbb783f3d5029c4a66a9171429822d0034
2,991
cpp
C++
src/Core/p2/iTRC.cpp
stravant/bfbbdecomp
2126be355a6bb8171b850f829c1f2731c8b5de08
[ "OLDAP-2.7" ]
1
2021-01-05T11:28:55.000Z
2021-01-05T11:28:55.000Z
src/Core/p2/iTRC.cpp
sonich2401/bfbbdecomp
5f58b62505f8929a72ccf2aa118a1539eb3a5bd6
[ "OLDAP-2.7" ]
null
null
null
src/Core/p2/iTRC.cpp
sonich2401/bfbbdecomp
5f58b62505f8929a72ccf2aa118a1539eb3a5bd6
[ "OLDAP-2.7" ]
1
2022-03-30T15:15:08.000Z
2022-03-30T15:15:08.000Z
#include "iTRC.h" #include <types.h> // func_80180038 #pragma GLOBAL_ASM("asm/Core/p2/iTRC.s", "Init__7ROMFontFv") // func_80180094 #pragma GLOBAL_ASM("asm/Core/p2/iTRC.s", "InitDisplay__7ROMFontFP16_GXRenderModeObj") // func_80180214 #pragma GLOBAL_ASM("asm/Core/p2/iTRC.s", "InitGX__7ROMFontFv") // func_80180338 ...
29.038835
87
0.774992
stravant
8d619a4ec671230363838c0e6311f5d538ab9217
381
cpp
C++
11.13.8.cpp
cubhe/C_Primer_Plus
7edc4b4f5c1afad60797f8f1ea11fb47f6fcdf77
[ "MIT" ]
null
null
null
11.13.8.cpp
cubhe/C_Primer_Plus
7edc4b4f5c1afad60797f8f1ea11fb47f6fcdf77
[ "MIT" ]
null
null
null
11.13.8.cpp
cubhe/C_Primer_Plus
7edc4b4f5c1afad60797f8f1ea11fb47f6fcdf77
[ "MIT" ]
null
null
null
#include<stdio.h> #include<stdlib.h> #include<string.h> #define MAX 40 void revers(char * one); int main(){ char one[MAX]; gets(one); revers(one); puts(one); system("pause"); return 0; } void revers(char * one){ char temp; int j = strlen(one); for (size_t i = 0; i < j/2; i++) { temp = one...
16.565217
34
0.545932
cubhe
8d62343482744e642fc44bcc082584c7dcf2c75c
2,463
cpp
C++
RFW/system/src/rfw/instance_ref.cpp
MeirBon/rendering-fw
dff775c816d19cd9e11eac2c2a2b3c608216ad4c
[ "Apache-2.0" ]
77
2020-01-03T18:32:47.000Z
2021-08-08T01:06:52.000Z
RFW/system/src/rfw/instance_ref.cpp
meirbon/rendering-fw
dff775c816d19cd9e11eac2c2a2b3c608216ad4c
[ "Apache-2.0" ]
1
2020-01-09T01:59:27.000Z
2020-01-09T08:47:28.000Z
RFW/system/src/rfw/instance_ref.cpp
MeirBon/rendering-fw
dff775c816d19cd9e11eac2c2a2b3c608216ad4c
[ "Apache-2.0" ]
2
2021-04-15T00:02:38.000Z
2021-08-08T01:06:47.000Z
#include "instance_ref.h" #include "system.h" namespace rfw { instance_ref::instance_ref(size_t index, geometry_ref reference, rfw::system &sys) { m_Members = std::make_shared<Members>(reference); m_Members->index = index; m_Members->geomReference = reference; m_Members->rSystem = &sys; assert(m_Members->rSyste...
35.185714
102
0.727162
MeirBon
8d678641bc9dc290bcaf9078bcb26142ffedfc67
2,706
cpp
C++
c++/en/dropbox/class_president/class_president/class_president.cpp
aimldl/coding
70ddbfaa454ab92fd072ee8dc614ecc330b34a70
[ "MIT" ]
null
null
null
c++/en/dropbox/class_president/class_president/class_president.cpp
aimldl/coding
70ddbfaa454ab92fd072ee8dc614ecc330b34a70
[ "MIT" ]
null
null
null
c++/en/dropbox/class_president/class_president/class_president.cpp
aimldl/coding
70ddbfaa454ab92fd072ee8dc614ecc330b34a70
[ "MIT" ]
null
null
null
// class_president.cpp #include "pch.h" #include <iostream> #include <fstream> #define DEBUG 1 //#define DEBUG 0 void show1darray(int* arr, int N); void show2darray(int** arr, int N, int Y); //any_match(int** row1, int** row2, int column_size) bool any_match(int* row1, int* row2, int column_size) { ...
17.571429
71
0.546563
aimldl
8d6a4fc48fc412bc7fe78d8ae17cd33bdacbd121
4,189
cpp
C++
src/QtlMovie/QtlMovieCcExtractorProcess.cpp
qtlmovie/qtlmovie
082ad5ea6522a02d5ac0d86f23cdd6152edff613
[ "BSD-2-Clause" ]
8
2016-08-09T14:05:58.000Z
2020-09-05T14:43:36.000Z
src/QtlMovie/QtlMovieCcExtractorProcess.cpp
qtlmovie/qtlmovie
082ad5ea6522a02d5ac0d86f23cdd6152edff613
[ "BSD-2-Clause" ]
15
2016-08-09T14:11:21.000Z
2022-01-15T23:39:07.000Z
src/QtlMovie/QtlMovieCcExtractorProcess.cpp
qtlmovie/qtlmovie
082ad5ea6522a02d5ac0d86f23cdd6152edff613
[ "BSD-2-Clause" ]
1
2017-08-26T22:08:58.000Z
2017-08-26T22:08:58.000Z
//---------------------------------------------------------------------------- // // Copyright (c) 2013-2017, Thierry Lelegard // 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. Redistri...
43.635417
161
0.553831
qtlmovie
8d712ffab02975e739efb021eba9e24470948991
19,712
cpp
C++
tcss/src/v20201101/model/DescribeAssetSummaryResponse.cpp
suluner/tencentcloud-sdk-cpp
a56c73cc3f488c4d1e10755704107bb15c5e000d
[ "Apache-2.0" ]
null
null
null
tcss/src/v20201101/model/DescribeAssetSummaryResponse.cpp
suluner/tencentcloud-sdk-cpp
a56c73cc3f488c4d1e10755704107bb15c5e000d
[ "Apache-2.0" ]
null
null
null
tcss/src/v20201101/model/DescribeAssetSummaryResponse.cpp
suluner/tencentcloud-sdk-cpp
a56c73cc3f488c4d1e10755704107bb15c5e000d
[ "Apache-2.0" ]
null
null
null
/* * Copyright (c) 2017-2019 THL A29 Limited, a Tencent company. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 ...
30.896552
137
0.683391
suluner
8d74aff2f92c14364cde3642214e623a0d313d44
1,300
cpp
C++
tests/allegro_flare/allegro_color_attribute_datatype_test.cpp
MarkOates/allegro_flare
b454cb85eb5e43d19c23c0c6fd2dc11b96666ce7
[ "MIT" ]
25
2015-03-30T02:02:43.000Z
2019-03-04T22:29:12.000Z
tests/allegro_flare/allegro_color_attribute_datatype_test.cpp
MarkOates/allegro_flare
b454cb85eb5e43d19c23c0c6fd2dc11b96666ce7
[ "MIT" ]
122
2015-04-01T08:15:26.000Z
2019-10-16T20:31:22.000Z
tests/allegro_flare/allegro_color_attribute_datatype_test.cpp
MarkOates/allegro_flare
b454cb85eb5e43d19c23c0c6fd2dc11b96666ce7
[ "MIT" ]
4
2016-09-02T12:14:09.000Z
2018-11-23T20:38:49.000Z
#define BOOST_TEST_DYN_LINK #define BOOST_TEST_MODULE AllegroColorAttributeDatatypeTestModule #include <boost/test/unit_test.hpp> #include <allegro_flare/attributes.h> #include <allegro_flare/allegro_color_attribute_datatype.h> using namespace allegro_flare; BOOST_AUTO_TEST_CASE(allegro_color_custom_attribu...
26.530612
119
0.797692
MarkOates
8d75ba28eb5e18b431b41f9605de3cfb2f9048c9
512
cpp
C++
CoreTest/src/FileVersionTest.cpp
ProtocolONE/cord.core
f8d16d095d3234144a1a6b46b5ed042363c4f549
[ "Apache-2.0" ]
1
2019-08-07T06:16:12.000Z
2019-08-07T06:16:12.000Z
CoreTest/src/FileVersionTest.cpp
ProtocolONE/cord.core
f8d16d095d3234144a1a6b46b5ed042363c4f549
[ "Apache-2.0" ]
null
null
null
CoreTest/src/FileVersionTest.cpp
ProtocolONE/cord.core
f8d16d095d3234144a1a6b46b5ed042363c4f549
[ "Apache-2.0" ]
null
null
null
#include <Core/System/FileInfo.h> #include <QtCore/QCoreApplication> #include <gtest/gtest.h> TEST(FileVersionTest, getSelfVersion) { QString selfExePath = QCoreApplication::applicationFilePath(); QString selfVersion = P1::Core::System::FileInfo::version(selfExePath); ASSERT_EQ("1.2.3.4", selfVersion); int h...
26.947368
73
0.736328
ProtocolONE
8d7a20d11e39bb5f0d7f05f46b91c2d8fcd358ce
461
cpp
C++
Leetcode/Practice/Remove All Adjacent Duplicates In String.cpp
coderanant/Competitive-Programming
45076af7894251080ac616c9581fbf2dc49604af
[ "MIT" ]
4
2019-06-04T11:03:38.000Z
2020-06-19T23:37:32.000Z
Leetcode/Practice/Remove All Adjacent Duplicates In String.cpp
coderanant/Competitive-Programming
45076af7894251080ac616c9581fbf2dc49604af
[ "MIT" ]
null
null
null
Leetcode/Practice/Remove All Adjacent Duplicates In String.cpp
coderanant/Competitive-Programming
45076af7894251080ac616c9581fbf2dc49604af
[ "MIT" ]
null
null
null
class Solution { public: string removeDuplicates(string S) { stack<char> st; for(int i = 0; i < S.size(); i++) { if(!st.empty() and S[i] == st.top()) st.pop(); else st.push(S[i]); } string ans; while(!st.empty())...
21.952381
48
0.37744
coderanant
8d7eae302f24679c43b7ad2a78ce5727d36e918b
1,549
cpp
C++
libs/geometry/test/core/assert.cpp
lijgame/boost
ec2214a19cdddd1048058321a8105dd0231dac47
[ "BSL-1.0" ]
1
2018-12-15T19:57:24.000Z
2018-12-15T19:57:24.000Z
thirdparty-cpp/boost_1_62_0/libs/geometry/test/core/assert.cpp
nxplatform/nx-mobile
0dc174c893f2667377cb2ef7e5ffeb212fa8b3e5
[ "Apache-2.0" ]
null
null
null
thirdparty-cpp/boost_1_62_0/libs/geometry/test/core/assert.cpp
nxplatform/nx-mobile
0dc174c893f2667377cb2ef7e5ffeb212fa8b3e5
[ "Apache-2.0" ]
1
2019-03-08T11:06:22.000Z
2019-03-08T11:06:22.000Z
// Boost.Geometry (aka GGL, Generic Geometry Library) // Unit Test // Copyright (c) 2015 Oracle and/or its affiliates. // Contributed and/or modified by Adam Wulkiewicz, on behalf of Oracle // Use, modification and distribution is subject to the Boost Software License, // Version 1.0. (See accompanying file ...
24.203125
123
0.684958
lijgame
8d7f0170121e4b41be8607dcb9582e84d180b36b
727
cpp
C++
nowcoder/317-B.cpp
PIPIKAI/ACM
b8e4416a29c0619946c9b73b0fe5699b6e96e782
[ "MIT" ]
null
null
null
nowcoder/317-B.cpp
PIPIKAI/ACM
b8e4416a29c0619946c9b73b0fe5699b6e96e782
[ "MIT" ]
null
null
null
nowcoder/317-B.cpp
PIPIKAI/ACM
b8e4416a29c0619946c9b73b0fe5699b6e96e782
[ "MIT" ]
null
null
null
#include<bits/stdc++.h> using namespace std; typedef long long ll; #define inf 1e9+7 #define ffr(i,a,b) for(int i=a;i<b;i++) #define mem(a,b) memset( a,b,sizeof a) ll n,m; ll cnt[5]={0}; ll ans=0; int main() { std::ios::sync_with_stdio(false); cin>>n; ans=0; for(int i=1;i<=n;i++) { int t; ...
17.731707
41
0.420908
PIPIKAI
8d89fe13e6f506e446486b79f31bddc496df98c1
1,014
cpp
C++
leetcode/HappyNumber.cpp
openluopworld/basic_algorithms
752de0c6b4899e657514f0228d6793b561a004de
[ "MIT" ]
1
2015-08-19T01:12:45.000Z
2015-08-19T01:12:45.000Z
leetcode/HappyNumber.cpp
openluopworld/Algorithms
752de0c6b4899e657514f0228d6793b561a004de
[ "MIT" ]
null
null
null
leetcode/HappyNumber.cpp
openluopworld/Algorithms
752de0c6b4899e657514f0228d6793b561a004de
[ "MIT" ]
null
null
null
/* * Problem: Happy Number * * Write an algorithm to determine if a number is "happy". * A happy number is a number defined by the following process: Starting with any positive integer, * replace the number by the sum of the squares of its digits, * and repeat the process until the number equals 1 (where it w...
26.684211
100
0.628205
openluopworld
8d8e0c867286fe8efe713bc790bb8ec0869f5c5d
1,067
cpp
C++
examples/00_helloworld/00_helloworld_qt.cpp
igor-krechetov/hsmcpp
5b0fcddacc43ad54a474c16767fa593ac0919393
[ "MIT" ]
10
2021-03-17T17:26:50.000Z
2022-03-30T17:33:23.000Z
examples/00_helloworld/00_helloworld_qt.cpp
igor-krechetov/hsmcpp
5b0fcddacc43ad54a474c16767fa593ac0919393
[ "MIT" ]
1
2022-03-30T16:29:01.000Z
2022-03-30T16:29:01.000Z
examples/00_helloworld/00_helloworld_qt.cpp
igor-krechetov/hsmcpp
5b0fcddacc43ad54a474c16767fa593ac0919393
[ "MIT" ]
null
null
null
#include <chrono> #include <thread> #include <hsmcpp/hsm.hpp> #include <hsmcpp/HsmEventDispatcherQt.hpp> #include <QCoreApplication> using namespace std::chrono_literals; using namespace hsmcpp; enum class States { OFF, ON }; enum class Events { SWITCH }; int main(int argc, char** argv) { QCoreAppli...
22.229167
70
0.665417
igor-krechetov
8d916e89ea106d60c42e8471d3cecaf3d4fa72e3
3,110
cc
C++
src/flutter/shell/platform/linux_embedded/surface/context_egl_stream.cc
TomohideMorimoto/flutter-embedded-linux
e7b1e98e646e88aa52dc1abe9f14444c2b070a39
[ "BSD-3-Clause" ]
null
null
null
src/flutter/shell/platform/linux_embedded/surface/context_egl_stream.cc
TomohideMorimoto/flutter-embedded-linux
e7b1e98e646e88aa52dc1abe9f14444c2b070a39
[ "BSD-3-Clause" ]
null
null
null
src/flutter/shell/platform/linux_embedded/surface/context_egl_stream.cc
TomohideMorimoto/flutter-embedded-linux
e7b1e98e646e88aa52dc1abe9f14444c2b070a39
[ "BSD-3-Clause" ]
null
null
null
// Copyright 2021 Sony Corporation. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "flutter/shell/platform/linux_embedded/surface/context_egl_stream.h" #include "flutter/shell/platform/linux_embedded/logger.h" #include "flutter/she...
35.340909
85
0.719614
TomohideMorimoto
8d92060bd9adab1f684310568b65baf7a549791c
885
cpp
C++
modules/complex-number/test/test_Elanskiy_Alexandr_complex_number.cpp
BalovaElena/devtools-course-practice
f8d5774dbb78ec50200c45fd17665ed40fc8c4c5
[ "CC-BY-4.0" ]
null
null
null
modules/complex-number/test/test_Elanskiy_Alexandr_complex_number.cpp
BalovaElena/devtools-course-practice
f8d5774dbb78ec50200c45fd17665ed40fc8c4c5
[ "CC-BY-4.0" ]
null
null
null
modules/complex-number/test/test_Elanskiy_Alexandr_complex_number.cpp
BalovaElena/devtools-course-practice
f8d5774dbb78ec50200c45fd17665ed40fc8c4c5
[ "CC-BY-4.0" ]
null
null
null
// Copyright 2022 Elanskiy Alexandr #include <gtest/gtest.h> #include "include/complex_number.h" TEST(Elanskiy_Alexandr_ComplexNumberTest, Create) { ASSERT_NO_THROW(ComplexNumber z(5.2, 1.7)); } TEST(Elanskiy_Alexandr_ComplexNumberTest, Subtraction) { double re1 = 5.0; double im1 = 1.0; double re2 = ...
22.692308
56
0.666667
BalovaElena
8d95c94770b12b1c7c07e8c957fd95ed5b3942d0
6,303
hpp
C++
src/xsi_shm.hpp
lcTls/levin
7c3768ba96c752fe30b721fcc3af0f7202d5b6b3
[ "Apache-2.0" ]
1
2019-08-31T03:16:19.000Z
2019-08-31T03:16:19.000Z
src/xsi_shm.hpp
msdgwzhy6/levin
082a21d29ac19acbd16c5874367e77a424b7d255
[ "Apache-2.0" ]
null
null
null
src/xsi_shm.hpp
msdgwzhy6/levin
082a21d29ac19acbd16c5874367e77a424b7d255
[ "Apache-2.0" ]
null
null
null
#ifndef LEVIN_XSI_SHM_H #define LEVIN_XSI_SHM_H #include <fstream> #include <boost/interprocess/xsi_shared_memory.hpp> #include <boost/interprocess/mapped_region.hpp> #include <boost/algorithm/string.hpp> #include "shared_utils.h" namespace levin { namespace bip = boost::interprocess; const size_t MAX_MEM_SIZE = 60...
34.07027
116
0.555291
lcTls
8d964f7efa18d3fac270bd72c4a14e418a555c02
2,731
cpp
C++
BinaryFiles.cpp
TheoRussell/Game-Engine
7cbb39012908c5bc9065fab9ccc6685b96bbc26e
[ "MIT" ]
null
null
null
BinaryFiles.cpp
TheoRussell/Game-Engine
7cbb39012908c5bc9065fab9ccc6685b96bbc26e
[ "MIT" ]
null
null
null
BinaryFiles.cpp
TheoRussell/Game-Engine
7cbb39012908c5bc9065fab9ccc6685b96bbc26e
[ "MIT" ]
null
null
null
#include "BinaryFiles.h" BinaryFiles::BinaryFiles() { } BinaryFiles::~BinaryFiles() { } std::string BinaryFiles::getString(std::ifstream &s) { unsigned int size = 0; //It reads the size of the string message to create the buffer. s.read(reinterpret_cast<char *>(&size), sizeof(size)); char *bu...
26.009524
106
0.659832
TheoRussell
8d9f3da48e80e445a6b336d31ff2c84ecb9c6f5d
2,497
cpp
C++
3rdparty/OculusSDKv1_8/Samples/OculusRoomTiny_Advanced/ORT (Protected Content)/main.cpp
PlusToolkit/OvrvisionPro
ed64cade144ce47d17423369476fb43ea69b124d
[ "MIT" ]
1
2017-10-27T14:01:39.000Z
2017-10-27T14:01:39.000Z
OculusSDK/Samples/OculusRoomTiny_Advanced/ORT (Protected Content)/main.cpp
Ybalrid/AnnwvynDeps
3309b126e6e501df5bd7f617cf3c47941b0754e5
[ "CECILL-B" ]
null
null
null
OculusSDK/Samples/OculusRoomTiny_Advanced/ORT (Protected Content)/main.cpp
Ybalrid/AnnwvynDeps
3309b126e6e501df5bd7f617cf3c47941b0754e5
[ "CECILL-B" ]
null
null
null
/************************************************************************************ Filename : Win32_RoomTiny_Main.cpp Content : First-person view test application for Oculus Rift Created : 3rd June 2016 Authors : Tom Heath Copyright : Copyright 2012 Oculus, Inc. All Rights reserved. Licen...
37.833333
100
0.640368
PlusToolkit
8da0c6fc947e003b3d1c888b04b6c13caeb73a5a
4,455
cpp
C++
src/src/dial.cpp
mohistH/nanogui_from_dalerank
ae4b5e04b2d8e2e85ab63b737fd13f8882243526
[ "MIT" ]
2
2021-01-05T08:50:59.000Z
2021-08-17T09:09:55.000Z
src/src/dial.cpp
mohistH/nanogui_from_dalerank
ae4b5e04b2d8e2e85ab63b737fd13f8882243526
[ "MIT" ]
null
null
null
src/src/dial.cpp
mohistH/nanogui_from_dalerank
ae4b5e04b2d8e2e85ab63b737fd13f8882243526
[ "MIT" ]
1
2021-08-17T09:09:57.000Z
2021-08-17T09:09:57.000Z
/* nanogui/dial.cpp -- Fractional dial widget with mouse control NanoGUI was developed by Wenzel Jakob <wenzel.jakob@epfl.ch>. The widget drawing code is based on the NanoVG demo application by Mikko Mononen. All rights reserved. Use of this source code is governed by a BSD-style license that ...
29.7
112
0.61459
mohistH
8da1236b715d2db4e5a8c5a262f13c6abecb5a7c
996
cpp
C++
niuke_HW/chapter4_HW/HW4-2.cpp
drt4243566/leetcode_learn
ef51f215079556895eec2252d84965cd1c3a7bf4
[ "MIT" ]
null
null
null
niuke_HW/chapter4_HW/HW4-2.cpp
drt4243566/leetcode_learn
ef51f215079556895eec2252d84965cd1c3a7bf4
[ "MIT" ]
null
null
null
niuke_HW/chapter4_HW/HW4-2.cpp
drt4243566/leetcode_learn
ef51f215079556895eec2252d84965cd1c3a7bf4
[ "MIT" ]
null
null
null
#include <unordered_map> #include <iostream> #include <vector> using namespace std; class Solution { public: vector<int> twoSum(vector<int> &numbers, int target) { // write code here int n = numbers.size(); vector<int> res; unordered_map<int, int> mp; // key值代表numbers数组中的元素,val...
22.133333
78
0.46988
drt4243566
8da90f2fc16acb3d8c68d11b3bb6c33508a5535e
1,415
cpp
C++
zappy/gfx_d/src/free.cpp
fflorens/portofolio42
4368c33460129beaebea0c983a133f717bc9fe13
[ "MIT" ]
null
null
null
zappy/gfx_d/src/free.cpp
fflorens/portofolio42
4368c33460129beaebea0c983a133f717bc9fe13
[ "MIT" ]
null
null
null
zappy/gfx_d/src/free.cpp
fflorens/portofolio42
4368c33460129beaebea0c983a133f717bc9fe13
[ "MIT" ]
null
null
null
// ************************************************************************** // // // // ::: :::::::: // // free.cpp :+: :+: :+: ...
44.21875
80
0.313074
fflorens
8dab25cce56947eaf5283ed7e37bd007d5fac664
2,250
hpp
C++
src/Time/StepChoosers/Increase.hpp
trami18/spectre
6b1f6497bf2e26d1474bfadf143b3321942c40b4
[ "MIT" ]
2
2021-04-11T04:07:42.000Z
2021-04-11T05:07:54.000Z
src/Time/StepChoosers/Increase.hpp
trami18/spectre
6b1f6497bf2e26d1474bfadf143b3321942c40b4
[ "MIT" ]
null
null
null
src/Time/StepChoosers/Increase.hpp
trami18/spectre
6b1f6497bf2e26d1474bfadf143b3321942c40b4
[ "MIT" ]
null
null
null
// Distributed under the MIT License. // See LICENSE.txt for details. #pragma once #include <cmath> #include <limits> #include <pup.h> #include <utility> #include "Options/Options.hpp" #include "Parallel/CharmPupable.hpp" #include "Time/StepChoosers/StepChooser.hpp" // IWYU pragma: keep #include "Time/Time.hpp" #in...
28.481013
80
0.738222
trami18
8dab492cb9c1f662ad7ec67a37fb357e99409726
4,069
cpp
C++
src/dis7/Association.cpp
AlphaPixel/open-dis-cpp
90634cade32ac98e2108be8799bd2ec949c4337e
[ "BSD-2-Clause" ]
42
2017-02-22T07:23:06.000Z
2022-03-07T12:34:11.000Z
src/dis7/Association.cpp
AlphaPixel/open-dis-cpp
90634cade32ac98e2108be8799bd2ec949c4337e
[ "BSD-2-Clause" ]
62
2017-07-14T11:06:55.000Z
2022-01-22T02:32:45.000Z
src/dis7/Association.cpp
AlphaPixel/open-dis-cpp
90634cade32ac98e2108be8799bd2ec949c4337e
[ "BSD-2-Clause" ]
51
2017-08-10T16:44:32.000Z
2021-12-16T09:57:42.000Z
#include <dis7/Association.h> using namespace DIS; Association::Association(): _associationType(0), _padding4(0), _associatedEntityID(), _associatedLocation() { } Association::~Association() { } unsigned char Association::getAssociationType() const { return _associationType; } void Association:...
29.485507
95
0.751536
AlphaPixel
8dabf0105cb9ff5a991c82a164d08e74c8c5fb2b
692
cpp
C++
Source/HacknSlash/Pickups/ShieldPickup.cpp
Andrew199617/HacknSlash
60fb4eb857223769db835f138734c7857b2e654f
[ "MIT" ]
null
null
null
Source/HacknSlash/Pickups/ShieldPickup.cpp
Andrew199617/HacknSlash
60fb4eb857223769db835f138734c7857b2e654f
[ "MIT" ]
null
null
null
Source/HacknSlash/Pickups/ShieldPickup.cpp
Andrew199617/HacknSlash
60fb4eb857223769db835f138734c7857b2e654f
[ "MIT" ]
null
null
null
// Fill out your copyright notice in the Description page of Project Settings. #include "HacknSlash.h" #include "ShieldPickup.h" #include "HacknSlashCharacter.h" AShieldPickup::AShieldPickup() : ABasePickup() { } void AShieldPickup::OnPickup(AActor* OtherActor) { if (OtherActor->GetName() == playerCharacter->GetNa...
17.74359
78
0.735549
Andrew199617
8daca50c6c76e3c3acc1da3de88c110360f269df
4,035
cc
C++
s2client-api/include/google/protobuf/drop_unknown_fields_test.cc
songchaow/starcrat2-ai
ac6fbdb0e3d7839a76addea4e6aa50a4545841f3
[ "MIT" ]
null
null
null
s2client-api/include/google/protobuf/drop_unknown_fields_test.cc
songchaow/starcrat2-ai
ac6fbdb0e3d7839a76addea4e6aa50a4545841f3
[ "MIT" ]
null
null
null
s2client-api/include/google/protobuf/drop_unknown_fields_test.cc
songchaow/starcrat2-ai
ac6fbdb0e3d7839a76addea4e6aa50a4545841f3
[ "MIT" ]
null
null
null
// Protocol Buffers - Google's data interchange format // Copyright 2008 Google Inc. All rights reserved. // https://developers.google.com/protocol-buffers/ // // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following conditions are // met: ...
45.337079
80
0.768773
songchaow
8db32893d035f244666876f00e69d2dd79676d1d
1,075
cpp
C++
cpp/euler056/euler056.cpp
marvins/ProjectEuler
55a377bb9702067bac6908c1316c578498402668
[ "MIT" ]
null
null
null
cpp/euler056/euler056.cpp
marvins/ProjectEuler
55a377bb9702067bac6908c1316c578498402668
[ "MIT" ]
null
null
null
cpp/euler056/euler056.cpp
marvins/ProjectEuler
55a377bb9702067bac6908c1316c578498402668
[ "MIT" ]
1
2020-12-16T09:25:19.000Z
2020-12-16T09:25:19.000Z
/** * @file euler56.cpp * @author Marvin Smith * @date 9/25/2013 */ // C++ Standard Libraries #include <iostream> // Common Libraries #include "../common/BigIntegerLibrary.hh" #include "../common/StringUtilities.hpp" using namespace std; /** * @brief Main Function */ int main( int argc, char* argv[] ){...
19.545455
62
0.492093
marvins
8db6be9a0dc545ff059d720b8b62046e02af7a01
897
cpp
C++
src/test/operators/get_table_test.cpp
tjjordan/DYOD_SoSe21
9cf7af43f10caccbfa2b0583a43e991f24cd336c
[ "MIT" ]
1
2022-01-25T09:03:56.000Z
2022-01-25T09:03:56.000Z
src/test/operators/get_table_test.cpp
tjjordan/DYOD_SoSe21
9cf7af43f10caccbfa2b0583a43e991f24cd336c
[ "MIT" ]
2
2022-02-10T14:25:25.000Z
2022-03-12T20:19:12.000Z
src/test/operators/get_table_test.cpp
tjjordan/DYOD_SoSe21
9cf7af43f10caccbfa2b0583a43e991f24cd336c
[ "MIT" ]
null
null
null
#include <memory> #include "../base_test.hpp" #include "gtest/gtest.h" #include "operators/get_table.hpp" #include "storage/storage_manager.hpp" #include "storage/table.hpp" namespace opossum { class OperatorsGetTableTest : public BaseTest { protected: void SetUp() override { _test_table = std::make_shared<Ta...
24.916667
93
0.732441
tjjordan
8db87de279588d10f3ae944e10afa44db6d3f6f1
2,625
cpp
C++
src/sbbs3/ctrl/EventsFormUnit.cpp
jonny290/synchronet
012a39d00a3160a593ef5923fdc1ee95e0497083
[ "Artistic-2.0" ]
1
2017-07-18T03:56:48.000Z
2017-07-18T03:56:48.000Z
src/sbbs3/ctrl/EventsFormUnit.cpp
jonny290/synchronet
012a39d00a3160a593ef5923fdc1ee95e0497083
[ "Artistic-2.0" ]
null
null
null
src/sbbs3/ctrl/EventsFormUnit.cpp
jonny290/synchronet
012a39d00a3160a593ef5923fdc1ee95e0497083
[ "Artistic-2.0" ]
null
null
null
/* Synchronet Control Panel (GUI Borland C++ Builder Project for Win32) */ /* $Id: EventsFormUnit.cpp,v 1.2 2004/10/18 00:04:40 rswindell Exp $ */ /**************************************************************************** * @format.tab-size 4 (Plain Text/Source Code File Header) * * @format.use-tabs true (see...
46.052632
78
0.518095
jonny290
8dbc305219738ae46896074c59e25e356e9115c5
2,389
hpp
C++
include/mantella_bits/randomNumberGenerator.hpp
OpusV/AstroMechanics
3fe7a5462fce575c465be372d1c69bf788784297
[ "MIT" ]
1
2019-11-08T22:06:56.000Z
2019-11-08T22:06:56.000Z
include/mantella_bits/randomNumberGenerator.hpp
OpusV/AstroMechanics
3fe7a5462fce575c465be372d1c69bf788784297
[ "MIT" ]
null
null
null
include/mantella_bits/randomNumberGenerator.hpp
OpusV/AstroMechanics
3fe7a5462fce575c465be372d1c69bf788784297
[ "MIT" ]
null
null
null
#pragma once // C++ standard library #include <array> #include <random> #include <stdexcept> // Armadillo #include <armadillo> // Mantella #include "mantella_bits/config.hpp" // IWYU pragma: keep namespace mant { class Rng { public: // The random number generator should act as a singleton, no need for defa...
43.436364
223
0.713269
OpusV
8dbf4c0aea31fc985301727077d5ba6e359997b2
8,136
cxx
C++
vtkm/filter/testing/UnitTestCrossProductFilter.cxx
rushah05/VTKm_FP16
487819a1dbdd8dc3f95cca2942e3f2706a2514b5
[ "BSD-3-Clause" ]
2
2021-07-07T22:53:19.000Z
2021-07-31T19:29:35.000Z
vtkm/filter/testing/UnitTestCrossProductFilter.cxx
rushah05/VTKm_FP16
487819a1dbdd8dc3f95cca2942e3f2706a2514b5
[ "BSD-3-Clause" ]
2
2020-11-18T16:50:34.000Z
2022-01-21T13:31:47.000Z
vtkm/filter/testing/UnitTestCrossProductFilter.cxx
rushah05/VTKm_FP16
487819a1dbdd8dc3f95cca2942e3f2706a2514b5
[ "BSD-3-Clause" ]
5
2020-10-02T10:14:35.000Z
2022-03-10T07:50:22.000Z
//============================================================================ // Copyright (c) Kitware, Inc. // All rights reserved. // See LICENSE.txt for details. // // This software is distributed WITHOUT ANY WARRANTY; without even // the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR // PURP...
38.197183
100
0.637537
rushah05
8dc5ee3062d82ad1f8e16a20c86f0f895e72e21f
423
hh
C++
mcg/src/external/BSR/include/config/safety.hh
mouthwater/rgb
3fafca24ecc133910923182581a2133b8568bf77
[ "BSD-2-Clause" ]
392
2015-01-14T13:19:40.000Z
2022-02-12T08:47:33.000Z
mcg/src/external/BSR/include/config/safety.hh
mouthwater/rgb
3fafca24ecc133910923182581a2133b8568bf77
[ "BSD-2-Clause" ]
45
2015-02-03T12:16:10.000Z
2022-03-07T00:25:09.000Z
mcg/src/external/BSR/include/config/safety.hh
mouthwater/rgb
3fafca24ecc133910923182581a2133b8568bf77
[ "BSD-2-Clause" ]
168
2015-01-05T02:29:53.000Z
2022-02-22T04:32:04.000Z
/* * Safety settings. */ #ifndef CONFIG__SAFETY_HH #define CONFIG__SAFETY_HH /* * Check smart pointer dereference? * If true, smart pointers should throw exceptions on null dereference. */ #define CONFIG__SAFETY__CHECK_DEREFERENCE (true) /* * Check bounds when accessing arrays? * If true, arrays should throw e...
21.15
79
0.761229
mouthwater
44ef487204d7a342be74d274dfdae403dacc75ce
3,596
hpp
C++
src/packet.hpp
GabrielLins64/custom-eoserv
4a08a4ff9dbdf6e5101eebd41573c0f2b6b412cf
[ "Zlib" ]
2
2021-12-10T17:17:45.000Z
2021-12-10T18:07:21.000Z
src/packet.hpp
GabrielLins64/custom-eoserv
4a08a4ff9dbdf6e5101eebd41573c0f2b6b412cf
[ "Zlib" ]
null
null
null
src/packet.hpp
GabrielLins64/custom-eoserv
4a08a4ff9dbdf6e5101eebd41573c0f2b6b412cf
[ "Zlib" ]
null
null
null
/* $Id: packet.hpp 490 2015-11-18 10:46:34Z sausage $ * EOSERV is released under the zlib license. * See LICENSE.txt for more info. */ #ifndef PACKET_HPP_INCLUDED #define PACKET_HPP_INCLUDED #include "fwd/packet.hpp" #include <array> #include <cstddef> #include <string> /** * Encodes and Decodes packets for a ...
24.134228
118
0.713293
GabrielLins64
44f24f550807a79dda122e1e569313ecc57bb54b
1,280
hpp
C++
include/UnityEngine/RemoteConfigSettingsHelper.hpp
RedBrumbler/virtuoso-codegen
e83f6f0f9b47bec4b6dd976b21edc1d46bf3cfe3
[ "Unlicense" ]
null
null
null
include/UnityEngine/RemoteConfigSettingsHelper.hpp
RedBrumbler/virtuoso-codegen
e83f6f0f9b47bec4b6dd976b21edc1d46bf3cfe3
[ "Unlicense" ]
null
null
null
include/UnityEngine/RemoteConfigSettingsHelper.hpp
RedBrumbler/virtuoso-codegen
e83f6f0f9b47bec4b6dd976b21edc1d46bf3cfe3
[ "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" // Completed includes // Begin forward declares // For...
35.555556
112
0.738281
RedBrumbler
44f39bcaed853494ae339afad053d71b936533f8
727
cpp
C++
test/openexr/bind/imf_imagechannel.cpp
luke-titley/cppmm
3c0dbc5539ab33706e63d4a518f85cb6a9a54ed7
[ "OLDAP-2.5", "OLDAP-2.3" ]
37
2020-11-03T19:51:36.000Z
2022-02-08T06:09:51.000Z
test/openexr/bind/imf_imagechannel.cpp
luke-titley/cppmm
3c0dbc5539ab33706e63d4a518f85cb6a9a54ed7
[ "OLDAP-2.5", "OLDAP-2.3" ]
61
2020-11-06T16:59:25.000Z
2021-09-08T20:48:47.000Z
test/openexr/bind/imf_imagechannel.cpp
luke-titley/cppmm
3c0dbc5539ab33706e63d4a518f85cb6a9a54ed7
[ "OLDAP-2.5", "OLDAP-2.3" ]
7
2020-11-05T04:53:22.000Z
2021-09-03T23:32:21.000Z
#include <OpenEXR/ImfImageChannel.h> #include <cppmm_bind.hpp> namespace cppmm_bind { namespace OPENEXR_IMF_INTERNAL_NAMESPACE { namespace Imf = ::OPENEXR_IMF_INTERNAL_NAMESPACE; struct ImageChannel { using BoundType = Imf::ImageChannel; // Inherited from ImageChannel virtual Imf::PixelType pixelType(...
22.71875
49
0.723521
luke-titley
44fdc11aa287ae0c46ec9ab923a9ff8bd6695f92
183
cpp
C++
src/homework/01_variables/variables.cpp
acc-cosc-1337-spring-2022/acc-cosc-1337-spring-2022-veysto2
c09be3d82d5984a7c2ae89e46047cf475c423245
[ "MIT" ]
null
null
null
src/homework/01_variables/variables.cpp
acc-cosc-1337-spring-2022/acc-cosc-1337-spring-2022-veysto2
c09be3d82d5984a7c2ae89e46047cf475c423245
[ "MIT" ]
null
null
null
src/homework/01_variables/variables.cpp
acc-cosc-1337-spring-2022/acc-cosc-1337-spring-2022-veysto2
c09be3d82d5984a7c2ae89e46047cf475c423245
[ "MIT" ]
null
null
null
#include "variables.h" //example int add_numbers(int num1, int num2) { return num1 + num2; } // multiply int multiply_numbers(int num1) { int num2 = 5; return num1 * num2; }
9.631579
35
0.666667
acc-cosc-1337-spring-2022
44fe6e0e26a8d9ceb5c8c422b4406897d874f620
901
hh
C++
estp/base/at.hh
dpalchak/estoppel
921e29865a9a558ea70a2329f16428a96935a90b
[ "MIT" ]
2
2018-07-23T17:40:47.000Z
2018-08-03T20:06:40.000Z
estp/base/at.hh
dpalchak/estoppel
921e29865a9a558ea70a2329f16428a96935a90b
[ "MIT" ]
null
null
null
estp/base/at.hh
dpalchak/estoppel
921e29865a9a558ea70a2329f16428a96935a90b
[ "MIT" ]
null
null
null
#pragma once #include "estp/base/assert.hh" #include "estp/base/casting.hh" #include "estp/base/types.hh" #include <array> // Basic implementation of the at() function as described in the C++ GSL namespace estp { template<typename T, Index N> constexpr decltype(auto) at(T (&arr)[N], Index index) { EXPECTS(0 <= in...
23.710526
72
0.688124
dpalchak
7802db912c3fd545e1dd2173b98764eb844bda63
6,891
cpp
C++
src/bin/obsidian.cpp
divad-nhok/obsidian_fork
e5bee2b706f78249564f06c88a18be086b17c895
[ "MIT" ]
2
2021-03-08T16:28:45.000Z
2022-03-04T14:55:59.000Z
src/bin/obsidian.cpp
divad-nhok/obsidian_fork
e5bee2b706f78249564f06c88a18be086b17c895
[ "MIT" ]
1
2018-08-16T00:46:58.000Z
2018-08-16T00:46:58.000Z
src/bin/obsidian.cpp
divad-nhok/obsidian_fork
e5bee2b706f78249564f06c88a18be086b17c895
[ "MIT" ]
2
2018-02-26T01:03:13.000Z
2021-02-01T02:31:37.000Z
//! //! A delegator that runs parallel tempering on several workers to perform an inversion. //! //! \file obsidian.cpp //! \author Lachlan McCalman //! \author Darren Shen //! \author Nahid Akbar //! \date February, 2014 //! \license Affero General Public License version 3 or later //! \copyright (c) 2014, NICTA //! ...
37.248649
120
0.679147
divad-nhok
780a910e89883b7a7bc3812ae710f25f15a681fe
64,448
cc
C++
third/libyuv/source/row_any.cc
onbings/bofstd
366ff7f7d8871d5fa5785d5690d90506a7714ecc
[ "MIT" ]
null
null
null
third/libyuv/source/row_any.cc
onbings/bofstd
366ff7f7d8871d5fa5785d5690d90506a7714ecc
[ "MIT" ]
1
2021-03-20T14:46:54.000Z
2021-03-20T14:47:10.000Z
third/libyuv/source/row_any.cc
onbings/bofstd
366ff7f7d8871d5fa5785d5690d90506a7714ecc
[ "MIT" ]
null
null
null
/* * Copyright 2012 The LibYuv Project Authors. All rights reserved. * * Use of this source code is governed by a BSD-style license * that can be found in the LICENSE file in the root of the source * tree. An additional intellectual property rights grant can be found * in the file PATENTS. All contribu...
41.233525
81
0.618049
onbings
78142d53c21ca7dfea78155d55bdb6ca0c106423
395
cc
C++
accumulate.cc
tonioc987/ejemplos-blog
315f8e8049953b076a0a8275413ff4ad568a705a
[ "MIT" ]
null
null
null
accumulate.cc
tonioc987/ejemplos-blog
315f8e8049953b076a0a8275413ff4ad568a705a
[ "MIT" ]
null
null
null
accumulate.cc
tonioc987/ejemplos-blog
315f8e8049953b076a0a8275413ff4ad568a705a
[ "MIT" ]
null
null
null
#include <iostream> #include <algorithm> using namespace std; int main() { #define N_ELEMENTS 100000000UL long * values = new long[N_ELEMENTS]; iota(values, values+N_ELEMENTS, 1); long result = accumulate(values, values+N_ELEMENTS, 0); cout << "resultado= " << result << endl; result = accumulate(val...
21.944444
57
0.670886
tonioc987
7816595fcf9ea3de92ea24ec598290198e633ec6
1,731
cpp
C++
Sources/Internal/Platform/TemplateAndroid/FileListAndroid.cpp
Serviak/dava.engine
d51a26173a3e1b36403f846ca3b2e183ac298a1a
[ "BSD-3-Clause" ]
1
2020-11-14T10:18:24.000Z
2020-11-14T10:18:24.000Z
Sources/Internal/Platform/TemplateAndroid/FileListAndroid.cpp
Serviak/dava.engine
d51a26173a3e1b36403f846ca3b2e183ac298a1a
[ "BSD-3-Clause" ]
null
null
null
Sources/Internal/Platform/TemplateAndroid/FileListAndroid.cpp
Serviak/dava.engine
d51a26173a3e1b36403f846ca3b2e183ac298a1a
[ "BSD-3-Clause" ]
1
2020-09-05T21:16:17.000Z
2020-09-05T21:16:17.000Z
#include "Platform/TemplateAndroid/FileListAndroid.h" #if defined(__DAVAENGINE_ANDROID__) #include "Logger/Logger.h" namespace DAVA { JniFileList::JniFileList() : jniFileList("com/dava/framework/JNIFileList") { getFileList = jniFileList.GetStaticMethod<jobjectArray, jstring>("GetFileList"); } Vector<JniFile...
33.288462
116
0.659157
Serviak
78195397b8537f10606ec21487fc7bfbcde17408
5,522
cpp
C++
amr-wind/wind_energy/actuator/turbine/turbine_utils.cpp
tonyinme/amr-wind
d04841d20082236e8afed860fdcfb7a69cd5591c
[ "BSD-3-Clause" ]
null
null
null
amr-wind/wind_energy/actuator/turbine/turbine_utils.cpp
tonyinme/amr-wind
d04841d20082236e8afed860fdcfb7a69cd5591c
[ "BSD-3-Clause" ]
null
null
null
amr-wind/wind_energy/actuator/turbine/turbine_utils.cpp
tonyinme/amr-wind
d04841d20082236e8afed860fdcfb7a69cd5591c
[ "BSD-3-Clause" ]
null
null
null
#include "amr-wind/wind_energy/actuator/turbine/turbine_utils.H" #include "amr-wind/utilities/ncutils/nc_interface.H" #include "amr-wind/utilities/io_utils.H" namespace amr_wind { namespace actuator { namespace utils { void read_inputs( TurbineBaseData& tdata, TurbineInfo& tinfo, const utils::ActParser& pp) { ...
37.060403
80
0.647954
tonyinme
781ecc2e7ba2332e24cb142ac2365bb59538bbdf
4,064
cc
C++
src/gpu-compute/register_manager.cc
fei-shan/gem5-experiment
70781db30d42b1fe50e495bd04f7755a4b0e0e59
[ "BSD-3-Clause" ]
1
2021-05-04T13:23:30.000Z
2021-05-04T13:23:30.000Z
src/gpu-compute/register_manager.cc
fei-shan/gem5-experiment
70781db30d42b1fe50e495bd04f7755a4b0e0e59
[ "BSD-3-Clause" ]
1
2021-04-17T17:13:56.000Z
2021-04-17T17:13:56.000Z
src/gpu-compute/register_manager.cc
fei-shan/gem5-experiment
70781db30d42b1fe50e495bd04f7755a4b0e0e59
[ "BSD-3-Clause" ]
1
2021-08-23T05:37:55.000Z
2021-08-23T05:37:55.000Z
/* * Copyright (c) 2016, 2017 Advanced Micro Devices, Inc. * All rights reserved. * * For use for simulation and test purposes only * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * 1. Redistributions of sour...
30.787879
79
0.71752
fei-shan
781f10cbb0551618fe311ff6297cbb2bb7fdfdc2
6,102
hpp
C++
read-excel/record.hpp
AlexZaikaSay/read-excel
2d33f324dbffc97d04096a01a6429ab045fce97c
[ "MIT" ]
null
null
null
read-excel/record.hpp
AlexZaikaSay/read-excel
2d33f324dbffc97d04096a01a6429ab045fce97c
[ "MIT" ]
null
null
null
read-excel/record.hpp
AlexZaikaSay/read-excel
2d33f324dbffc97d04096a01a6429ab045fce97c
[ "MIT" ]
null
null
null
/*! \file \brief Excel Record. \author Igor Mironchik (igor.mironchik at gmail dot com). Copyright (c) 2011-2021 Igor Mironchik 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...
19.009346
67
0.654703
AlexZaikaSay
782458cc510eaa4ce002c373d61d74af7fd518d6
22,080
cpp
C++
ME3/main.cpp
Erik-JS/masseffect-binkw32
1c80f3765f6290fc58aaa04b07b02cda3d12a5d4
[ "MIT" ]
128
2016-02-23T13:18:12.000Z
2021-10-09T21:43:32.000Z
ME3/main.cpp
Erik-JS/masseffect-binkw32
1c80f3765f6290fc58aaa04b07b02cda3d12a5d4
[ "MIT" ]
16
2016-02-06T20:57:50.000Z
2021-01-27T01:27:39.000Z
ME3/main.cpp
Erik-JS/masseffect-binkw32
1c80f3765f6290fc58aaa04b07b02cda3d12a5d4
[ "MIT" ]
41
2016-08-17T10:19:50.000Z
2022-02-12T19:36:14.000Z
// ME3 - binkw32 - main.cpp #include "header.h" #include <windows.h> #include <stdio.h> #include <ShlObj.h> HINSTANCE hOriginalBink = NULL; FARPROC p[72] = {0}; char exeBaseFolder[FILENAME_MAX]; BYTE pattern [] = { 0x8B, 0x11, 0x8B, 0x42, 0x0C, 0x57, 0x56, 0xFF, 0xD0, ...
23.096234
166
0.686096
Erik-JS
78259b894a27624003d95494f668a97d706c10c0
5,577
cpp
C++
source/thirdparty/irrpoly/gf.cpp
jointpoints/tms-nets
8cefe1868d2e696c100594e66d57380243856e16
[ "BSL-1.0" ]
5
2019-10-14T18:49:36.000Z
2020-10-22T06:03:57.000Z
source/thirdparty/irrpoly/gf.cpp
jointpoints/tms-nets
8cefe1868d2e696c100594e66d57380243856e16
[ "BSL-1.0" ]
8
2019-11-10T17:23:20.000Z
2020-12-01T18:00:45.000Z
source/thirdparty/irrpoly/gf.cpp
jointpoints/tms-nets
8cefe1868d2e696c100594e66d57380243856e16
[ "BSL-1.0" ]
16
2019-10-25T13:50:59.000Z
2021-06-24T13:55:23.000Z
#include "../../../include/tms-nets/thirdparty/irrpoly/gf.hpp" // Comparison operators for <gf> objects auto irrpoly::operator==(const gf &lb, const gf &rb) -> bool { return lb->base() == rb->base(); } auto irrpoly::operator!=(const gf &lb, const gf &rb) -> bool { return lb->base() != rb->base(); }...
17.319876
81
0.628653
jointpoints
782d75ef444418e774b6c4905cac55e0925bf40d
1,384
cc
C++
source/extensions/filters/http/transformation/body_header_transformer.cc
solo-io/envoy-gloo
7f48ec3820134dd26dd3b8ac3c1c56b3a2a58cc3
[ "Apache-2.0" ]
17
2019-03-06T01:44:39.000Z
2022-01-17T15:17:05.000Z
source/extensions/filters/http/transformation/body_header_transformer.cc
solo-io/envoy-gloo
7f48ec3820134dd26dd3b8ac3c1c56b3a2a58cc3
[ "Apache-2.0" ]
95
2018-12-19T19:22:26.000Z
2022-03-31T15:07:56.000Z
source/extensions/filters/http/transformation/body_header_transformer.cc
solo-io/envoy-gloo
7f48ec3820134dd26dd3b8ac3c1c56b3a2a58cc3
[ "Apache-2.0" ]
11
2019-06-23T20:05:57.000Z
2021-02-17T18:25:29.000Z
#include "source/extensions/filters/http/transformation/body_header_transformer.h" #include "source/common/http/headers.h" #include "nlohmann/json.hpp" // For convenience using json = nlohmann::json; namespace Envoy { namespace Extensions { namespace HttpFilters { namespace Transformation { void BodyHeaderTransfor...
28.244898
82
0.710983
solo-io
782eb9adde43d519b72f73c38b4915dca6a5f282
3,191
cpp
C++
09.05/main.cpp
AmaterasuOmikami/OOP-in-Cpp-book-exercises
7f7f02472446a9defd93e95de7e9c07048b5c400
[ "MIT" ]
null
null
null
09.05/main.cpp
AmaterasuOmikami/OOP-in-Cpp-book-exercises
7f7f02472446a9defd93e95de7e9c07048b5c400
[ "MIT" ]
null
null
null
09.05/main.cpp
AmaterasuOmikami/OOP-in-Cpp-book-exercises
7f7f02472446a9defd93e95de7e9c07048b5c400
[ "MIT" ]
null
null
null
#include <iostream> using namespace std; const int LEN = 30; class Employee { private: char name[LEN]; unsigned long number; public: void getData() { cout << "Enter name:"; cin >> name; cout << "Enter number:"; cin >> number; } void putData() const { cou...
18.994048
60
0.474773
AmaterasuOmikami
7833f211d05dc6c9f02cd6a9fa6b9acac7108600
3,070
cpp
C++
src/freedman.cpp
jaihyunp/HE_clustering
b4e04a1468428805e35c0c55a8e590b00baafa03
[ "MIT" ]
null
null
null
src/freedman.cpp
jaihyunp/HE_clustering
b4e04a1468428805e35c0c55a8e590b00baafa03
[ "MIT" ]
null
null
null
src/freedman.cpp
jaihyunp/HE_clustering
b4e04a1468428805e35c0c55a8e590b00baafa03
[ "MIT" ]
null
null
null
#include "plain.h" std::vector<long> freedman_cluster(std::vector<Point> &points, long dim, long num_of_dusts, long num_of_shiftings, long zeta_ms, long gamma_ms) { long num_of_points = points.size(); double max = (double) dim, tmp, dist; std::vector<Point> dusts, dusts2; std::vector<long> closest, mod...
28.165138
143
0.485016
jaihyunp
783602c1d2af171e1a81b25008e1136feb0c0793
3,932
cpp
C++
Alfa-Back-Console/rezept.cpp
haikelassaker/Backstr
56a1b85d83f633f41250b690f840bb884916cd67
[ "MIT" ]
null
null
null
Alfa-Back-Console/rezept.cpp
haikelassaker/Backstr
56a1b85d83f633f41250b690f840bb884916cd67
[ "MIT" ]
null
null
null
Alfa-Back-Console/rezept.cpp
haikelassaker/Backstr
56a1b85d83f633f41250b690f840bb884916cd67
[ "MIT" ]
null
null
null
#include "stdafx.h" #include "rezept.h" using namespace std; rezept::rezept(string teigName, double plaetzchenAnzahl, string form, string groesse, double backTemperatur, double backZeit) { tgName = teigName; basisAnzahlPlaetzchen = plaetzchenAnzahl; plaetzchenForm = form; plaetzchenGroesse = groesse; ba...
21.604396
126
0.655646
haikelassaker
7838730eb7f6b0875c3175d899862e299fbe2180
760
hpp
C++
include/nexus/global_init.hpp
cbodley/nexus
6e5b19b6c6c74007a0643c55eb0775eb86e38f9b
[ "BSL-1.0" ]
6
2021-10-31T10:33:30.000Z
2022-03-25T20:54:58.000Z
include/nexus/global_init.hpp
cbodley/nexus
6e5b19b6c6c74007a0643c55eb0775eb86e38f9b
[ "BSL-1.0" ]
null
null
null
include/nexus/global_init.hpp
cbodley/nexus
6e5b19b6c6c74007a0643c55eb0775eb86e38f9b
[ "BSL-1.0" ]
null
null
null
#pragma once #include <nexus/global/context.hpp> /// global initialization namespace nexus::global { /// initialize the library for clients only /// \relatesalso context context init_client(error_code& ec); /// initialize the library for clients only /// \relatesalso context context init_client(); /// initialize th...
25.333333
52
0.763158
cbodley
783af9f0aebf1e3ef1fe50f87d382cd310149fb1
1,291
cpp
C++
kernel/loader/elf64.cpp
qookei/quack
47808580dda218cb47d0c9ca04b51eb24f1e2266
[ "Zlib" ]
16
2019-06-25T15:18:03.000Z
2021-10-10T18:52:30.000Z
kernel/loader/elf64.cpp
qookei/quack
47808580dda218cb47d0c9ca04b51eb24f1e2266
[ "Zlib" ]
null
null
null
kernel/loader/elf64.cpp
qookei/quack
47808580dda218cb47d0c9ca04b51eb24f1e2266
[ "Zlib" ]
null
null
null
#include "elf64.h" #include <string.h> static bool elf64_check(elf64_ehdr *ehdr) { if(strncmp((const char *)ehdr->e_ident, ELF_MAGIC, 4)) { return false; } if(ehdr->e_ident[ELF_IDENT_CLASS] != ELF_CLASS_64) { return false; } if(ehdr->e_ident[ELF_IDENT_DATA] != ELF_DATA_LSB) { return false; } if(ehdr->e...
20.822581
72
0.664601
qookei
783b409c2f69adda9a17a21272ce2aaa41b56489
1,758
cpp
C++
BAC/exercises/ch7/UVa387.cpp
Anyrainel/aoapc-code
e787a01380698fb9236d933462052f97b20e6132
[ "Apache-2.0" ]
3
2017-08-15T06:00:01.000Z
2018-12-10T09:05:53.000Z
BAC/exercises/ch7/UVa387.cpp
Anyrainel/aoapc-related-code
e787a01380698fb9236d933462052f97b20e6132
[ "Apache-2.0" ]
null
null
null
BAC/exercises/ch7/UVa387.cpp
Anyrainel/aoapc-related-code
e787a01380698fb9236d933462052f97b20e6132
[ "Apache-2.0" ]
2
2017-09-16T18:46:27.000Z
2018-05-22T05:42:03.000Z
// UVa387 A Puzzling Problem // Rujia Liu // 题意:用n个积木块拼出一个4*4的正方形,要求每个块恰好用一次,不能旋转或者翻转。求任意一个方案 // 算法:本题写法有很多,由于规模非常小,这里给出一个效率不算高但较好实现的方法:每层搜索选一个可用积木,再枚举一个位置放上去 #include<cstdio> #include<cstring> const int maxn = 5; int n; int board[5][5]; // 要拼出的正方形 struct Piece { int r, c, size; char data[maxn][maxn]; void read...
24.082192
81
0.481229
Anyrainel
783ec127fd1fc493383592f29519d3f028b52046
18,646
cpp
C++
src/print.cpp
Maelic/libqi
0a92452be48376004e5e5ebfe2bd0683725d033e
[ "BSD-3-Clause" ]
null
null
null
src/print.cpp
Maelic/libqi
0a92452be48376004e5e5ebfe2bd0683725d033e
[ "BSD-3-Clause" ]
null
null
null
src/print.cpp
Maelic/libqi
0a92452be48376004e5e5ebfe2bd0683725d033e
[ "BSD-3-Clause" ]
null
null
null
/* ** Copyright (C) 2017 SoftBank Robotics ** See COPYING for the license */ #include <qi/detail/print.hpp> #include <qi/iocolor.hpp> #include <qi/numeric.hpp> #include <qi/type/metaobject.hpp> #include <qi/type/metamethod.hpp> #include <qi/type/detail/structtypeinterface.hxx> #include <boost/range/adaptor/filtered....
33.596396
118
0.641907
Maelic
7841344760bd042429bc06413fd888541321d7ab
2,282
cpp
C++
ODFAEG/src/odfaeg/Graphics/mesh.cpp
Cwc-Test/ODFAEG
5e5bd13e3145764c3d0182225aad591040691481
[ "Zlib" ]
5
2015-06-13T13:11:59.000Z
2020-04-17T23:10:23.000Z
ODFAEG/src/odfaeg/Graphics/mesh.cpp
Cwc-Test/ODFAEG
5e5bd13e3145764c3d0182225aad591040691481
[ "Zlib" ]
4
2019-01-07T11:46:21.000Z
2020-02-14T15:04:15.000Z
ODFAEG/src/odfaeg/Graphics/mesh.cpp
Cwc-Test/ODFAEG
5e5bd13e3145764c3d0182225aad591040691481
[ "Zlib" ]
4
2016-01-05T09:54:57.000Z
2021-01-06T18:52:26.000Z
#include "../../../include/odfaeg/Graphics/mesh.hpp" namespace odfaeg { namespace graphic { Mesh::Mesh() : Entity(math::Vec3f(0, 0, 0), math::Vec3f(0, 0, 0),math::Vec3f(0, 0, 0), "E_MESH") {} Mesh::Mesh(math::Vec3f position, math::Vec3f size, std::string type) : Entity(position, size, size*0.5f, typ...
43.884615
121
0.508764
Cwc-Test
7842ca9894501cc7da94c881f00315d3a03569d1
64
cpp
C++
src/base/database/models/relations/BelongsToMany.cpp
YuDe95/mcplayer
c43d7c6fcafef0f093efef9248e9cf69b56aee2f
[ "MIT" ]
18
2020-03-02T06:56:05.000Z
2022-03-31T11:05:40.000Z
src/base/database/models/relations/BelongsToMany.cpp
YuDe95/mcplayer
c43d7c6fcafef0f093efef9248e9cf69b56aee2f
[ "MIT" ]
1
2020-03-03T19:28:52.000Z
2020-03-03T19:28:52.000Z
src/base/database/models/relations/BelongsToMany.cpp
YuDe95/mcplayer
c43d7c6fcafef0f093efef9248e9cf69b56aee2f
[ "MIT" ]
4
2020-03-20T13:56:57.000Z
2021-06-16T09:48:23.000Z
#include "BelongsToMany.h" BelongsToMany::BelongsToMany() { }
9.142857
30
0.734375
YuDe95
7844838549efadd7bc71939e41512ec1930711eb
787
hpp
C++
src/datagrams/DatagramParserFactory.hpp
HugoValcourt/MBES-lib
1e3aaf873a03a2e57ebcd029a5f7461c26fc9bc8
[ "MIT" ]
null
null
null
src/datagrams/DatagramParserFactory.hpp
HugoValcourt/MBES-lib
1e3aaf873a03a2e57ebcd029a5f7461c26fc9bc8
[ "MIT" ]
null
null
null
src/datagrams/DatagramParserFactory.hpp
HugoValcourt/MBES-lib
1e3aaf873a03a2e57ebcd029a5f7461c26fc9bc8
[ "MIT" ]
null
null
null
/* * Copyright 2019 © Centre Interdisciplinaire de développement en Cartographie des Océans (CIDCO), Tous droits réservés */ #ifndef DATAGRAMPARSERFACTORY_HPP #define DATAGRAMPARSERFACTORY_HPP #include "DatagramParser.hpp" #include "kongsberg/KongsbergParser.hpp" #include "xtf/XtfParser.hpp" #include "s7k/S7kParser.h...
25.387097
118
0.772554
HugoValcourt
784535ea5b3d921b36d83a815b873d63f230d454
5,803
hpp
C++
FlexEngine/include/InputManager.hpp
ajweeks/Rendering-Engine
fe0f2cdb44a067fec875110572b3b91f5f4c659c
[ "MIT" ]
762
2017-11-07T23:40:58.000Z
2022-03-31T16:03:22.000Z
FlexEngine/include/InputManager.hpp
ajweeks/Rendering-Engine
fe0f2cdb44a067fec875110572b3b91f5f4c659c
[ "MIT" ]
5
2018-03-13T14:41:06.000Z
2020-11-01T12:02:29.000Z
FlexEngine/include/InputManager.hpp
ajweeks/Rendering-Engine
fe0f2cdb44a067fec875110572b3b91f5f4c659c
[ "MIT" ]
43
2017-11-17T11:22:37.000Z
2022-03-14T01:51:19.000Z
#pragma once #include "InputTypes.hpp" #include "Pair.hpp" #include <map> namespace flex { class ICallbackMouseButton; class ICallbackMouseMoved; class ICallbackKeyEvent; class ICallbackAction; enum class CursorMode; /* * There are three main ways of retrieving input: * 1. Call GetKey(Down/Pressed) with a...
36.961783
104
0.780286
ajweeks
78466b67624df1034ca45b046750e0fe454b9261
509
cpp
C++
Non-Ideone/Spoj/NSTEPS/NSTEPS-20015764.cpp
beingsushant/BunnyKeCodes
018cae93935ee30ce02561d05cda091ebb6e9643
[ "MIT" ]
1
2018-02-18T13:59:42.000Z
2018-02-18T13:59:42.000Z
Non-Ideone/Spoj/NSTEPS/NSTEPS-20015764.cpp
beingsushant/BunnyKeCodes
018cae93935ee30ce02561d05cda091ebb6e9643
[ "MIT" ]
null
null
null
Non-Ideone/Spoj/NSTEPS/NSTEPS-20015764.cpp
beingsushant/BunnyKeCodes
018cae93935ee30ce02561d05cda091ebb6e9643
[ "MIT" ]
2
2019-10-31T17:28:17.000Z
2019-10-31T17:52:11.000Z
#include<iostream> #include<cstdio> using namespace std; int main() { int x,y,r,t; cin>>t; while(t--) { cin>>x>>y; if(x==y) { if(x%2==0) r=2*x; else r=2*x-1; cout<<r<<endl; } else if(x==y+2) ...
16.419355
36
0.308448
beingsushant
784730e35cf449d2abf1010b5b3bdc53fca63974
2,370
cpp
C++
Week9/ParticleText/src/TextUtilities.cpp
bakercp/ExperimentalMedia2013
b0e748104c327d14e2231a0a98282503712702ed
[ "MIT" ]
4
2015-01-19T03:26:26.000Z
2015-06-03T04:00:04.000Z
Week9/ParticleText/src/TextUtilities.cpp
bakercp/ExperimentalMedia2013
b0e748104c327d14e2231a0a98282503712702ed
[ "MIT" ]
null
null
null
Week9/ParticleText/src/TextUtilities.cpp
bakercp/ExperimentalMedia2013
b0e748104c327d14e2231a0a98282503712702ed
[ "MIT" ]
null
null
null
#include "TextUtilities.h" #include "Poco/RegularExpression.h" #include "Poco/StringTokenizer.h" #include "Poco/TextIterator.h" #include "Poco/TextConverter.h" #include "Poco/UTF8Encoding.h" #include "Poco/UnicodeConverter.h" #include "Poco/Unicode.h" #include "ofUtils.h" #include "ofFileUtils.h" // a simple function...
28.902439
92
0.69789
bakercp
7849c406df4ab3b10ea82ff1a083643a71f1194c
4,466
cpp
C++
test/src/test_cases/composite_state.cpp
fgoujeon/fgfsm
ab3a4b244fb68854431891e5f084362589a41fc3
[ "BSL-1.0" ]
null
null
null
test/src/test_cases/composite_state.cpp
fgoujeon/fgfsm
ab3a4b244fb68854431891e5f084362589a41fc3
[ "BSL-1.0" ]
null
null
null
test/src/test_cases/composite_state.cpp
fgoujeon/fgfsm
ab3a4b244fb68854431891e5f084362589a41fc3
[ "BSL-1.0" ]
null
null
null
//Copyright Florian Goujeon 2021 - 2022. //Distributed under the Boost Software License, Version 1.0. //(See accompanying file LICENSE or copy at //https://www.boost.org/LICENSE_1_0.txt) //Official repository: https://github.com/fgoujeon/awesm #include <awesm.hpp> #include <catch2/catch.hpp> namespace { struct sm...
24.811111
111
0.515226
fgoujeon
784b543203a3474c485250046f9613ea783d928f
2,362
cpp
C++
Ethereal/Private/Gear/Armor/Body/LeatherVest.cpp
SoveranceStudios/EtherealLegends
4d03aba462cc3a51988e2776e182cea05f0e4376
[ "Apache-2.0" ]
216
2016-08-28T18:22:06.000Z
2022-03-22T09:08:15.000Z
Ethereal/Private/Gear/Armor/Body/LeatherVest.cpp
SoveranceStudios/EtherealLegends
4d03aba462cc3a51988e2776e182cea05f0e4376
[ "Apache-2.0" ]
1
2017-08-10T06:14:32.000Z
2017-08-12T00:16:27.000Z
Ethereal/Private/Gear/Armor/Body/LeatherVest.cpp
SoveranceStudios/EtherealLegends
4d03aba462cc3a51988e2776e182cea05f0e4376
[ "Apache-2.0" ]
49
2016-08-28T18:22:31.000Z
2022-02-23T16:22:37.000Z
// ÀšÃ‚© 2014 - 2016 Soverance Studios // http://www.soverance.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 requi...
38.096774
193
0.762913
SoveranceStudios
785285a78295a6066131e1faebc441c976bf061a
1,094
hpp
C++
problems/03_nested_resources/ResourceRecover.hpp
ciscoruiz/emc2
2fb4c5f0ac3cf8f62938f2d2fd8b9b16c0686613
[ "MIT" ]
null
null
null
problems/03_nested_resources/ResourceRecover.hpp
ciscoruiz/emc2
2fb4c5f0ac3cf8f62938f2d2fd8b9b16c0686613
[ "MIT" ]
null
null
null
problems/03_nested_resources/ResourceRecover.hpp
ciscoruiz/emc2
2fb4c5f0ac3cf8f62938f2d2fd8b9b16c0686613
[ "MIT" ]
null
null
null
#ifndef ResourceRecover_hpp #define ResourceRecover_hpp #include <condition_variable> #include <ResourceContainer.hpp> class ResourceRecover : public ResourceContainer { public: ResourceRecover () : m_stop (false) {;} ResourceRecover (const ResourceRecover&) = delete; void requestStop () noexcept { ...
24.311111
100
0.644424
ciscoruiz
7852964af8c36ecfa88637dc45283b1e20527be1
1,390
cpp
C++
Source/PakUtilities/Private/PakUtilitiesFunctionLibrary.cpp
calben/UnrealPakErrorDemoTmp
fa8d9124bad7e29e1387ca76a015ea021d566605
[ "MIT" ]
null
null
null
Source/PakUtilities/Private/PakUtilitiesFunctionLibrary.cpp
calben/UnrealPakErrorDemoTmp
fa8d9124bad7e29e1387ca76a015ea021d566605
[ "MIT" ]
null
null
null
Source/PakUtilities/Private/PakUtilitiesFunctionLibrary.cpp
calben/UnrealPakErrorDemoTmp
fa8d9124bad7e29e1387ca76a015ea021d566605
[ "MIT" ]
null
null
null
// Fill out your copyright notice in the Description page of Project Settings. #include "PakUtilitiesFunctionLibrary.h" //#include "Runtime/PakFile/Public/IPlatformFilePak.h" //TArray<FString> UPakUtilitiesFunctionLibrary::ListAvailablePakFiles() //{ // FPakPlatformFile* PakPlatformFile = new FPakPlatformFile(); // ...
30.888889
90
0.674101
calben
78546e5862873c9084c5869f33deafe64dff738c
239
cpp
C++
test/snippet/core/type_list/list_traits_front.cpp
marehr/nomchop
a88bfb6f5d4a291a71b6b3192eeac81fdc450d43
[ "CC-BY-4.0", "CC0-1.0" ]
1
2021-03-01T11:12:56.000Z
2021-03-01T11:12:56.000Z
test/snippet/core/type_list/list_traits_front.cpp
simonsasse/seqan3
0ff2e117952743f081735df9956be4c512f4ccba
[ "CC0-1.0", "CC-BY-4.0" ]
2
2017-05-17T07:16:19.000Z
2020-02-13T16:10:10.000Z
test/snippet/core/type_list/list_traits_front.cpp
simonsasse/seqan3
0ff2e117952743f081735df9956be4c512f4ccba
[ "CC0-1.0", "CC-BY-4.0" ]
null
null
null
#include <seqan3/core/type_list/traits.hpp> int main() { using list_t = seqan3::type_list<int, float, bool, int, float>; static_assert(std::same_as<int, seqan3::list_traits::front<list_t>>); // Check if the first value is int. }
26.555556
109
0.698745
marehr
7854e40f6861e6caf8a68aef05bcdf98f22a6ea8
734
cpp
C++
FlowGraph/FlowGraphWindow.cpp
grandpsykick/DataFlowGraph
d266d1706d800e9f414f809e9b5c116168667a56
[ "MIT" ]
1
2018-04-27T23:39:04.000Z
2018-04-27T23:39:04.000Z
FlowGraph/FlowGraphWindow.cpp
grandpsykick/DataFlowGraph
d266d1706d800e9f414f809e9b5c116168667a56
[ "MIT" ]
2
2017-05-23T15:33:01.000Z
2017-05-23T16:42:16.000Z
FlowGraph/FlowGraphWindow.cpp
grandpsykick/DataFlowGraph
d266d1706d800e9f414f809e9b5c116168667a56
[ "MIT" ]
null
null
null
#include "FlowGraphWindow.hpp" #include "ui_FlowGraphWindow.h" #include "FlowGraphScene.hpp" #include "FlowGraphView.hpp" #include "FlowGraphNode.hpp" FlowGraphWindow::FlowGraphWindow(FlowGraphScene * scene, FlowGraphView * view, QWidget * parent) : QMainWindow(parent), ui(new Ui::...
28.230769
84
0.666213
grandpsykick
785bf036dd88891e6168766266da333fb05be748
501
cpp
C++
dbt/csv_i.cpp
aki-ph-chem/rot_const
7f05e252d15e4b30bfd9ec0627a239154f7fb468
[ "MIT" ]
null
null
null
dbt/csv_i.cpp
aki-ph-chem/rot_const
7f05e252d15e4b30bfd9ec0627a239154f7fb468
[ "MIT" ]
null
null
null
dbt/csv_i.cpp
aki-ph-chem/rot_const
7f05e252d15e4b30bfd9ec0627a239154f7fb468
[ "MIT" ]
null
null
null
# include "csv_i.h" #include <fstream> #include <string> #include <sstream> #include <vector> #include <iostream> using string = std::string; //std::vector<string> csv::split(string& reading_now,char delimiter) std::vector<string> csv::split(string& reading_now) { std::istringstream stream(r...
20.04
69
0.646707
aki-ph-chem
785c7b6b61a629eac8e2f8eaa2b8406148ac7c9d
579
hpp
C++
src/main/include/StarDust/util/Math.hpp
4H-Botsmiths/InfiniteRecharge2020
811d71a49a50f38f44dcc7139786caaeaa99f739
[ "BSD-3-Clause" ]
null
null
null
src/main/include/StarDust/util/Math.hpp
4H-Botsmiths/InfiniteRecharge2020
811d71a49a50f38f44dcc7139786caaeaa99f739
[ "BSD-3-Clause" ]
1
2021-12-27T04:40:42.000Z
2021-12-27T04:40:42.000Z
src/main/include/StarDust/util/Math.hpp
4H-Botsmiths/InfiniteRecharge2020
811d71a49a50f38f44dcc7139786caaeaa99f739
[ "BSD-3-Clause" ]
null
null
null
//adds delta to value if positive. //subtracts delta from value if negative. double signedAdd(const double value, const double delta) { if (value < 0) { return value - delta; } else { return value + delta; } } //returns -1 if value is negative, 1 if value is positive. double...
23.16
60
0.594128
4H-Botsmiths
785e93e5cf62dd7bfed42331151d4ccb759659c4
1,363
cpp
C++
tools/VMakeList/src/main.cpp
SergeyStrukov/CCore-3-xx
820507e78f8aa35ca05761e00e060c8f64c59af5
[ "BSL-1.0" ]
8
2017-12-21T07:00:16.000Z
2020-04-02T09:05:55.000Z
tools/VMakeList/src/main.cpp
SergeyStrukov/CCore-3-xx
820507e78f8aa35ca05761e00e060c8f64c59af5
[ "BSL-1.0" ]
null
null
null
tools/VMakeList/src/main.cpp
SergeyStrukov/CCore-3-xx
820507e78f8aa35ca05761e00e060c8f64c59af5
[ "BSL-1.0" ]
1
2020-03-30T09:54:18.000Z
2020-03-30T09:54:18.000Z
/* main.cpp */ //---------------------------------------------------------------------------------------- // // Project: VMakeList 1.00 // // License: Boost Software License - Version 1.0 - August 17th, 2003 // // see http://www.boost.org/LICENSE_1_0.txt or the local copy // // Copyright (c) 2019 Sergey S...
19.197183
112
0.539252
SergeyStrukov
78603d7ec95558a3584503c770f965462b3dfd36
370
hpp
C++
include/hal/UART_base.hpp
suburbanembedded/emb_util
ded1f54e5c10ce962351416e6b6840dbedb112ba
[ "BSD-3-Clause" ]
null
null
null
include/hal/UART_base.hpp
suburbanembedded/emb_util
ded1f54e5c10ce962351416e6b6840dbedb112ba
[ "BSD-3-Clause" ]
null
null
null
include/hal/UART_base.hpp
suburbanembedded/emb_util
ded1f54e5c10ce962351416e6b6840dbedb112ba
[ "BSD-3-Clause" ]
null
null
null
#pragma once #include <cstdint> #include <cstddef> class UART_base { public: UART_base() { } virtual ~UART_base() { } virtual bool initialize() = 0; virtual bool open() = 0; virtual bool close() = 0; virtual size_t write(uint8_t const * const buf, const size_t len) = 0; virtual size_t read(uint8_t* ...
12.758621
72
0.667568
suburbanembedded
78639aea6d3d3699fa4bcfc13221885b88064e0f
5,081
cpp
C++
src/lib/ggpo/main.cpp
mangoes-git/ggpo
72d0219798ad058b8bdbcd7c78eec73a6b3d97d8
[ "MIT" ]
4
2021-11-16T19:37:28.000Z
2022-02-25T23:51:38.000Z
src/lib/ggpo/main.cpp
mangoes-git/ggpo-crossplatform
72d0219798ad058b8bdbcd7c78eec73a6b3d97d8
[ "MIT" ]
null
null
null
src/lib/ggpo/main.cpp
mangoes-git/ggpo-crossplatform
72d0219798ad058b8bdbcd7c78eec73a6b3d97d8
[ "MIT" ]
null
null
null
/* ----------------------------------------------------------------------- * GGPO.net (http://ggpo.net) - Copyright 2009 GroundStorm Studios, LLC. * * Use of this software is governed by the MIT license that can be found * in the LICENSE file. */ #include "types.h" #include "backends/p2p.h" #include "backends/s...
25.153465
77
0.547727
mangoes-git
786a6f6cd2a60db27a7fe974a680e71e027ffabb
9,178
hpp
C++
stan/math/opencl/prim/normal_id_glm_lpdf.hpp
bayesmix-dev/math
3616f7195adc95ef8e719a2af845d61102bc9272
[ "BSD-3-Clause" ]
1
2020-06-14T14:33:37.000Z
2020-06-14T14:33:37.000Z
stan/math/opencl/prim/normal_id_glm_lpdf.hpp
bayesmix-dev/math
3616f7195adc95ef8e719a2af845d61102bc9272
[ "BSD-3-Clause" ]
null
null
null
stan/math/opencl/prim/normal_id_glm_lpdf.hpp
bayesmix-dev/math
3616f7195adc95ef8e719a2af845d61102bc9272
[ "BSD-3-Clause" ]
1
2020-05-10T12:55:07.000Z
2020-05-10T12:55:07.000Z
#ifndef STAN_MATH_OPENCL_PRIM_NORMAL_ID_GLM_LPDF_HPP #define STAN_MATH_OPENCL_PRIM_NORMAL_ID_GLM_LPDF_HPP #ifdef STAN_OPENCL #include <stan/math/opencl/prim/size.hpp> #include <stan/math/opencl/rev/operands_and_partials.hpp> #include <stan/math/opencl/copy.hpp> #include <stan/math/opencl/matrix_cl.hpp> #include <stan/...
41.156951
78
0.706908
bayesmix-dev
786b95d59c70f2d995fff2e905ad4c2c662d2b64
2,998
cpp
C++
Sources/Plugins/Image_DevIL/DevILImagePlugin.cpp
jdelezenne/Sonata
fb1b1b64a78874a0ab2809995be4b6f14f9e4d56
[ "MIT" ]
null
null
null
Sources/Plugins/Image_DevIL/DevILImagePlugin.cpp
jdelezenne/Sonata
fb1b1b64a78874a0ab2809995be4b6f14f9e4d56
[ "MIT" ]
null
null
null
Sources/Plugins/Image_DevIL/DevILImagePlugin.cpp
jdelezenne/Sonata
fb1b1b64a78874a0ab2809995be4b6f14f9e4d56
[ "MIT" ]
null
null
null
/*============================================================================= DevILImagePlugin.cpp Project: Sonata Engine Author: Julien Delezenne =============================================================================*/ #include "DevILImagePlugin.h" #include "DevILImageReader.h" #include "DevILImageWriter.h" ...
17.739645
79
0.688793
jdelezenne
786ece9c41a0add9481bf2399f1c2ae23209a055
1,289
hpp
C++
src/rynx/graphics/mesh/collection.hpp
Apodus/rynx
3e1babc2f2957702ba2b09d78be3a959f2f4ea18
[ "MIT" ]
11
2019-08-19T08:44:14.000Z
2020-09-22T20:04:46.000Z
src/rynx/graphics/mesh/collection.hpp
Apodus/rynx
3e1babc2f2957702ba2b09d78be3a959f2f4ea18
[ "MIT" ]
null
null
null
src/rynx/graphics/mesh/collection.hpp
Apodus/rynx
3e1babc2f2957702ba2b09d78be3a959f2f4ea18
[ "MIT" ]
null
null
null
#pragma once #include <rynx/graphics/mesh/id.hpp> #include <rynx/tech/unordered_map.hpp> #include <rynx/math/geometry/polygon.hpp> #include <memory> namespace rynx { namespace graphics { class mesh; class GPUTextures; struct mesh_entry { std::string name; rynx::graphics::mesh_id id; }; class mesh_c...
26.854167
79
0.737781
Apodus
78717488868197856f00716acf0d39ce09277e21
2,797
cpp
C++
src/marathon.cpp
dsparber/algolab
9781eb5c7444236f796f167f1f39fc9d913e5c53
[ "MIT" ]
13
2021-01-01T17:19:24.000Z
2022-02-09T12:27:57.000Z
src/marathon.cpp
dsparber/algolab
9781eb5c7444236f796f167f1f39fc9d913e5c53
[ "MIT" ]
null
null
null
src/marathon.cpp
dsparber/algolab
9781eb5c7444236f796f167f1f39fc9d913e5c53
[ "MIT" ]
1
2021-01-28T10:55:25.000Z
2021-01-28T10:55:25.000Z
#include <iostream> #include <vector> #include <queue> #include <limits> #include <cmath> #include <boost/graph/adjacency_list.hpp> #include <boost/graph/push_relabel_max_flow.hpp> #include <boost/graph/dijkstra_shortest_paths.hpp> typedef boost::adjacency_list_traits<boost::vecS, boost::vecS, boost::directedS> trait...
26.638095
143
0.662853
dsparber
7871a98ae7712defd3df6155e7bcbc121b0c310c
8,495
cc
C++
code/render/physics/physx/physxcollider.cc
gscept/nebula-trifid
e7c0a0acb05eedad9ed37a72c1bdf2d658511b42
[ "BSD-2-Clause" ]
67
2015-03-30T19:56:16.000Z
2022-03-11T13:52:17.000Z
code/render/physics/physx/physxcollider.cc
gscept/nebula-trifid
e7c0a0acb05eedad9ed37a72c1bdf2d658511b42
[ "BSD-2-Clause" ]
5
2015-04-15T17:17:33.000Z
2016-02-11T00:40:17.000Z
code/render/physics/physx/physxcollider.cc
gscept/nebula-trifid
e7c0a0acb05eedad9ed37a72c1bdf2d658511b42
[ "BSD-2-Clause" ]
34
2015-03-30T15:08:00.000Z
2021-09-23T05:55:10.000Z
//------------------------------------------------------------------------------ // physxcollider.cc // (C) 2016 Individual contributors, see AUTHORS file //------------------------------------------------------------------------------ #include "stdneb.h" #include "physics/resource/managedphysicsmesh.h" #include "phy...
31.231618
209
0.623426
gscept
7874f3f8cc15c28f691459cc58dbdadc1cc29603
1,143
cpp
C++
util/MexWrapper.cpp
jacob-izr/drake
d8f0f1f231ecba83ed53b1a1c2f9f43da50396b9
[ "BSD-3-Clause" ]
4
2018-04-16T09:54:52.000Z
2021-03-29T21:59:27.000Z
util/MexWrapper.cpp
jacob-izr/drake
d8f0f1f231ecba83ed53b1a1c2f9f43da50396b9
[ "BSD-3-Clause" ]
null
null
null
util/MexWrapper.cpp
jacob-izr/drake
d8f0f1f231ecba83ed53b1a1c2f9f43da50396b9
[ "BSD-3-Clause" ]
1
2017-08-24T20:32:03.000Z
2017-08-24T20:32:03.000Z
#include "MexWrapper.h" #if defined(WIN32) || defined(WIN64) #else #include <dlfcn.h> #endif MexWrapper::MexWrapper(std::string const & filename) : m_mex_file(filename) { m_good = false; #if defined(WIN32) || defined(WIN64) #else //load the mexfile m_handle = dlopen(m_mex_file.c_str(), RTLD_NOW); if (!m...
20.410714
94
0.653543
jacob-izr
787b49c0e7c6ae15fcc42bea673de136597a5e9b
41,784
cpp
C++
source/ics/photoevaporating_multiclumps.cpp
jfbucas/PION
e0a66aa301e4d94d581ba4df078f1a3b82faab99
[ "BSD-3-Clause" ]
4
2020-08-20T11:31:22.000Z
2020-12-05T13:30:03.000Z
source/ics/photoevaporating_multiclumps.cpp
Mapoet/PION
51559b18f700c372974ac8658a266b6a647ec764
[ "BSD-3-Clause" ]
null
null
null
source/ics/photoevaporating_multiclumps.cpp
Mapoet/PION
51559b18f700c372974ac8658a266b6a647ec764
[ "BSD-3-Clause" ]
4
2020-08-20T14:33:19.000Z
2022-03-07T10:29:34.000Z
/// \file photoevaporating_multiclumps.cc /// \author Jonathan Mackey /// /// File for setting up photo-evaporation of many random clumps and some /// strategically positioned clumps. /// /// Modifications:\n /// - 2010-01-20 JM: line 714, corrected mass to be rho*(1+delta) [from rho*delta] /// - 2010-01-27 JM: comme...
31.487566
150
0.560023
jfbucas
787f3d958f61285014387999a526f7112f9e64e0
1,042
hpp
C++
lib/libcpp/FadalightMesh/FadalightMesh/hangingnodeinfo.hpp
beckerrh/simfemsrc
d857eb6f6f8627412d4f9d89a871834c756537db
[ "MIT" ]
null
null
null
lib/libcpp/FadalightMesh/FadalightMesh/hangingnodeinfo.hpp
beckerrh/simfemsrc
d857eb6f6f8627412d4f9d89a871834c756537db
[ "MIT" ]
1
2019-01-31T10:59:11.000Z
2019-01-31T10:59:11.000Z
lib/libcpp/FadalightMesh/FadalightMesh/hangingnodeinfo.hpp
beckerrh/simfemsrc
d857eb6f6f8627412d4f9d89a871834c756537db
[ "MIT" ]
null
null
null
#ifndef __FadalightMesh_HangingNodeInfo_h #define __FadalightMesh_HangingNodeInfo_h #include "FadalightMesh/geometryobject.hpp" #include "Alat/sparsitypattern.hpp" /*---------------------------------------------------------*/ namespace FadalightMesh { class HangingNodeInfo : public FadalightMesh::GeometryObject, ...
30.647059
92
0.701536
beckerrh
788034aa681e1bcfb9ac144e586d6560d159b5fc
17,258
cpp
C++
src/pyglue/PyDisplayTransform.cpp
mjmvisser/OpenColorIO
a557a85454ee1ffa8cb66f8a96238e079c452f08
[ "BSD-3-Clause" ]
4
2015-02-25T21:54:11.000Z
2020-12-22T13:58:27.000Z
src/pyglue/PyDisplayTransform.cpp
dictoon/OpenColorIO
64adcad300adfd166280d2e7b1fb5c3ce7dca482
[ "BSD-3-Clause" ]
null
null
null
src/pyglue/PyDisplayTransform.cpp
dictoon/OpenColorIO
64adcad300adfd166280d2e7b1fb5c3ce7dca482
[ "BSD-3-Clause" ]
null
null
null
/* Copyright (c) 2003-2010 Sony Pictures Imageworks Inc., et al. All Rights Reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this list of co...
47.5427
138
0.592653
mjmvisser
788985cc08b864e56b797e167946e9f51a63f653
764
cpp
C++
2020.09.24-Homework-2/Task3 Dynamic array/Task3 Dynamic array/Source.cpp
Atilin/1st-semester-SPBU
b6719d7cd2213aaded065d93ee000c4bb95568ad
[ "Apache-2.0" ]
null
null
null
2020.09.24-Homework-2/Task3 Dynamic array/Task3 Dynamic array/Source.cpp
Atilin/1st-semester-SPBU
b6719d7cd2213aaded065d93ee000c4bb95568ad
[ "Apache-2.0" ]
null
null
null
2020.09.24-Homework-2/Task3 Dynamic array/Task3 Dynamic array/Source.cpp
Atilin/1st-semester-SPBU
b6719d7cd2213aaded065d93ee000c4bb95568ad
[ "Apache-2.0" ]
1
2020-11-30T14:39:45.000Z
2020-11-30T14:39:45.000Z
#include <iostream> #include <clocale> using namespace std; void expandArray(int*& a, int& cap, int& count) { cap += 10; int* temp = new int[cap] {0}; for (int i = 0; i < count; ++i) { temp[i] = a[i]; } delete[] a; a = temp; } int main() { setlocale(LC_ALL, "Russian"); int cap = 10; int* a = new int[cap];...
14.148148
68
0.519634
Atilin
788d1286610f0ab0211d11becfb11fc32c09d40e
51,141
cc
C++
tests/core/test_core_playsync_manager.cc
JeanTracker/nugu-linux
28b5337b4f74442126ce5ec55001c2fe09271e40
[ "Apache-2.0" ]
null
null
null
tests/core/test_core_playsync_manager.cc
JeanTracker/nugu-linux
28b5337b4f74442126ce5ec55001c2fe09271e40
[ "Apache-2.0" ]
null
null
null
tests/core/test_core_playsync_manager.cc
JeanTracker/nugu-linux
28b5337b4f74442126ce5ec55001c2fe09271e40
[ "Apache-2.0" ]
1
2019-10-21T09:38:47.000Z
2019-10-21T09:38:47.000Z
/* * Copyright (c) 2019 SK Telecom Co., Ltd. All rights reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless requir...
44.625654
139
0.729356
JeanTracker
788e579c87b4ffe81350f00523e8d3862b21385c
582
cpp
C++
24_dynamic_1/6_largest_sum_subarray.cpp
meyash/dust
8f90d7f9cc42f61193c737cde14e9c4bb32884b4
[ "MIT" ]
1
2020-09-30T10:36:06.000Z
2020-09-30T10:36:06.000Z
24_dynamic_1/6_largest_sum_subarray.cpp
meyash/dust
8f90d7f9cc42f61193c737cde14e9c4bb32884b4
[ "MIT" ]
null
null
null
24_dynamic_1/6_largest_sum_subarray.cpp
meyash/dust
8f90d7f9cc42f61193c737cde14e9c4bb32884b4
[ "MIT" ]
null
null
null
#include<bits/stdc++.h> using namespace std; typedef long long ll; // this is kadane's algo // sample // 8 // -5 6 7 -20 3 5 8 -9 // output // 16 int kadane(int *a,int n){ int current_sum=0; int best_sum=0; for(int i=0;i<n;i++){ current_sum+=a[i]; if(best_sum<current_sum){ best...
17.117647
34
0.510309
meyash
788e852c032f48a781173c36fec2989d335d6a8e
22,555
cpp
C++
src/api/test/TestQuery.cpp
samprasyork/nebula
7184c4e76ef0cb65ca3dc4b6d98ca1ac66943928
[ "Apache-2.0" ]
null
null
null
src/api/test/TestQuery.cpp
samprasyork/nebula
7184c4e76ef0cb65ca3dc4b6d98ca1ac66943928
[ "Apache-2.0" ]
null
null
null
src/api/test/TestQuery.cpp
samprasyork/nebula
7184c4e76ef0cb65ca3dc4b6d98ca1ac66943928
[ "Apache-2.0" ]
null
null
null
/* * Copyright 2017-present Shawn Cao * * 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...
36.555916
143
0.550388
samprasyork
789260cfda9fcb54ccc257cdd2d0a0bb84b54268
8,557
cpp
C++
batch/src/v20170312/model/TaskTemplateView.cpp
sinjoywong/tencentcloud-sdk-cpp
1b931d20956a90b15a6720f924e5c69f8786f9f4
[ "Apache-2.0" ]
null
null
null
batch/src/v20170312/model/TaskTemplateView.cpp
sinjoywong/tencentcloud-sdk-cpp
1b931d20956a90b15a6720f924e5c69f8786f9f4
[ "Apache-2.0" ]
null
null
null
batch/src/v20170312/model/TaskTemplateView.cpp
sinjoywong/tencentcloud-sdk-cpp
1b931d20956a90b15a6720f924e5c69f8786f9f4
[ "Apache-2.0" ]
null
null
null
/* * Copyright (c) 2017-2019 THL A29 Limited, a Tencent company. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 ...
30.891697
152
0.694052
sinjoywong
789490e223299f18f13ca8d2b02ad88be32468b2
605
cpp
C++
WnCC/Week1/unord_subseq.cpp
AkashCherukuri/CC
b9c1617c28831197a3bf5fe846949fc03ae15507
[ "MIT" ]
null
null
null
WnCC/Week1/unord_subseq.cpp
AkashCherukuri/CC
b9c1617c28831197a3bf5fe846949fc03ae15507
[ "MIT" ]
null
null
null
WnCC/Week1/unord_subseq.cpp
AkashCherukuri/CC
b9c1617c28831197a3bf5fe846949fc03ae15507
[ "MIT" ]
null
null
null
# include "bits/stdc++.h" using namespace std; # define rep(i,a,b) for(int i=a; i<b; i++) int main(){ int n; cin >> n; vector<int> dat(n); rep(i,0,n) cin >> dat[i]; int st = 0; bool ord = true; int x,y,z; rep(i,1,n){ if(st==0){ if(dat[i]>dat[i-1]){ st=1; x=i-1; } else if(dat[i]<dat[i-1]){ st=2; x=i-1...
18.90625
77
0.48595
AkashCherukuri