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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
794609cf6020f4b3698e159c60031e6884b9ca3d | 2,469 | cpp | C++ | sources/dScreen.cpp | HaikuArchives/backslash_n | 6f5befb7758d6693622491ffd018709a99c2fcad | [
"MIT"
] | null | null | null | sources/dScreen.cpp | HaikuArchives/backslash_n | 6f5befb7758d6693622491ffd018709a99c2fcad | [
"MIT"
] | null | null | null | sources/dScreen.cpp | HaikuArchives/backslash_n | 6f5befb7758d6693622491ffd018709a99c2fcad | [
"MIT"
] | 1 | 2020-10-26T08:44:41.000Z | 2020-10-26T08:44:41.000Z | #include <Application.h>
#include <View.h>
#include <Window.h>
#include <Bitmap.h>
#include "dScreen.h"
dScreen::dScreen(const char *title):
BWindow(BRect(10,10,10 + 639, 10 + 399),title,B_TITLED_WINDOW_LOOK,B_NORMAL_WINDOW_FEEL,B_NOT_RESIZABLE|B_NOT_ZOOMABLE)
{
disconnected=create_sem(1,"drawing_sem");
ready_to_... | 23.514286 | 121 | 0.694613 | HaikuArchives |
79475fba94a26bc3f6e79f1d00570877f5b02197 | 3,911 | cpp | C++ | shared/source/command_stream/preemption.cpp | troels/compute-runtime | 3269e719a3ee7bcd97c50ec2cfe78fc8674adec0 | [
"Intel",
"MIT"
] | 778 | 2017-09-29T20:02:43.000Z | 2022-03-31T15:35:28.000Z | shared/source/command_stream/preemption.cpp | troels/compute-runtime | 3269e719a3ee7bcd97c50ec2cfe78fc8674adec0 | [
"Intel",
"MIT"
] | 478 | 2018-01-26T16:06:45.000Z | 2022-03-30T10:19:10.000Z | shared/source/command_stream/preemption.cpp | troels/compute-runtime | 3269e719a3ee7bcd97c50ec2cfe78fc8674adec0 | [
"Intel",
"MIT"
] | 215 | 2018-01-30T08:39:32.000Z | 2022-03-29T11:08:51.000Z | /*
* Copyright (C) 2018-2021 Intel Corporation
*
* SPDX-License-Identifier: MIT
*
*/
#include "shared/source/command_stream/preemption.h"
#include "shared/source/debug_settings/debug_settings_manager.h"
#include "shared/source/device/device.h"
#include "shared/source/helpers/string.h"
#include "shared/source/ker... | 41.168421 | 160 | 0.757607 | troels |
7948cca5e54affa4c2fdff25e108b2fd91355d1d | 378 | cc | C++ | src/jast/ir/module.cc | PrinceDhaliwal/copta | 396404bc7ecc3e28cc2582acd9d1c19857e6b471 | [
"MIT"
] | null | null | null | src/jast/ir/module.cc | PrinceDhaliwal/copta | 396404bc7ecc3e28cc2582acd9d1c19857e6b471 | [
"MIT"
] | null | null | null | src/jast/ir/module.cc | PrinceDhaliwal/copta | 396404bc7ecc3e28cc2582acd9d1c19857e6b471 | [
"MIT"
] | null | null | null | #include "jast/ir/module.h"
#include "jast/ir/value.h"
#include "jast/ir/instruction.h"
#include "jast/ir/basic-block.h"
#include "jast/ir/function.h"
#include <iostream>
namespace jast {
void Module::dump(std::ostream &os) const {
os << "module" << std::endl;
os << "\n";
for (auto &function : functions_) {
... | 17.181818 | 43 | 0.626984 | PrinceDhaliwal |
794c0ebf6f4d7a295c53635914b2eea9e755cdc8 | 1,734 | hpp | C++ | SimplePointLight.hpp | itachoco19/graphics-lib-template-project | a395126c7c1cf4734332c255b8c04be2c8a8d7a2 | [
"MIT"
] | null | null | null | SimplePointLight.hpp | itachoco19/graphics-lib-template-project | a395126c7c1cf4734332c255b8c04be2c8a8d7a2 | [
"MIT"
] | null | null | null | SimplePointLight.hpp | itachoco19/graphics-lib-template-project | a395126c7c1cf4734332c255b8c04be2c8a8d7a2 | [
"MIT"
] | 1 | 2020-12-15T15:20:56.000Z | 2020-12-15T15:20:56.000Z | #pragma once
#include <GraphicsLib.hpp>
#include "ShaderConstant.hpp"
#include "ConstantWithImGuiComponents.hpp"
class SimplePointLight
: public cg::PointLight
{
public:
const static std::string type;
private:
class ColorConstant
: public cg::Constant
{
public:
ColorConstant(std::shared_ptr<void> rawSource... | 26.272727 | 95 | 0.764706 | itachoco19 |
794d4b48a720360973692d34a2a64325a13dcc9b | 4,021 | cpp | C++ | src/NetProtocol/XML/nXmlText.cpp | Vladimir-Lin/QtNetProtocol | 907cc8b5acf96a04d89eb8e68faede77c4a2df1b | [
"MIT"
] | null | null | null | src/NetProtocol/XML/nXmlText.cpp | Vladimir-Lin/QtNetProtocol | 907cc8b5acf96a04d89eb8e68faede77c4a2df1b | [
"MIT"
] | null | null | null | src/NetProtocol/XML/nXmlText.cpp | Vladimir-Lin/QtNetProtocol | 907cc8b5acf96a04d89eb8e68faede77c4a2df1b | [
"MIT"
] | null | null | null | #include <netprotocol.h>
N::XmlText:: XmlText ( const char * initValue )
: XmlNode ( xmlText )
{
SetValue ( initValue ) ;
cdata = false ;
script_bool = false ;
}
N::XmlText:: XmlText ( const XmlText & copy )
: XmlNode ( xmlText )
{
copy . CopyTo( t... | 34.965217 | 87 | 0.342452 | Vladimir-Lin |
79504fd9dec6c557ef8260244cc7b996a5114f96 | 2,715 | cpp | C++ | C++/source/neural.cpp | StxGuy/NobleNeuron | 03660c837c004e2871054e2ce9b1af14650ab8ed | [
"MIT"
] | 2 | 2021-04-12T06:40:59.000Z | 2021-12-09T16:43:05.000Z | C++/source/neural.cpp | StxGuy/NobleNeuron | 03660c837c004e2871054e2ce9b1af14650ab8ed | [
"MIT"
] | null | null | null | C++/source/neural.cpp | StxGuy/NobleNeuron | 03660c837c004e2871054e2ce9b1af14650ab8ed | [
"MIT"
] | null | null | null |
#include "neural.hpp"
/*---------------------------*/
/* CONSTRUCTOR & DESTRUCTORS */
/*---------------------------*/
NeuralNetwork::NeuralNetwork(int isize) {
head = nullptr;
tail = nullptr;
input_size = isize;
}
NeuralNetwork::~NeuralNetwork(void) {
layer *current,*next;
current = he... | 22.073171 | 73 | 0.502394 | StxGuy |
79582dc602a83fdfa99c21964c2d25e034892db2 | 625 | hpp | C++ | src/plans/delete_plan.hpp | farleyknight/PotatoDB | cf8e39a76caf8a66a0182310509756737c624cfa | [
"MIT"
] | 3 | 2021-06-24T01:05:42.000Z | 2021-07-23T07:24:16.000Z | src/plans/delete_plan.hpp | farleyknight/PotatoDB | cf8e39a76caf8a66a0182310509756737c624cfa | [
"MIT"
] | 5 | 2021-06-25T00:13:51.000Z | 2021-07-23T14:26:01.000Z | src/plans/delete_plan.hpp | farleyknight/PotatoDB | cf8e39a76caf8a66a0182310509756737c624cfa | [
"MIT"
] | null | null | null | #pragma once
#include "plans/base_plan.hpp"
#include "plans/table_plan.hpp"
#include "plans/query_schema_plan.hpp"
#include "plans/has_child_plan.hpp"
class DeletePlan : public BasePlan,
public TablePlan,
public QuerySchemaPlan,
public HasChildPlan
{
public:
... | 23.148148 | 42 | 0.6112 | farleyknight |
7959531e4157af4cddcd4f28a52e7a192262503d | 469 | cpp | C++ | swalib_example/Code/Game/Entities/Components/fire_comp.cpp | KikeAjani/DragonFires | 2e3998a2ef510857236e54383daa91c73eb3fe9f | [
"BSD-2-Clause"
] | null | null | null | swalib_example/Code/Game/Entities/Components/fire_comp.cpp | KikeAjani/DragonFires | 2e3998a2ef510857236e54383daa91c73eb3fe9f | [
"BSD-2-Clause"
] | null | null | null | swalib_example/Code/Game/Entities/Components/fire_comp.cpp | KikeAjani/DragonFires | 2e3998a2ef510857236e54383daa91c73eb3fe9f | [
"BSD-2-Clause"
] | null | null | null | #include "fire_comp.h"
#include <windows.h>
#include "../entity.h"
#include <assert.h>
#include "../../Managers/world.h"
void cFireComp::Slot(double fTimeDiff)
{
fTimeSinceLastShot += fTimeDiff;
if (KeyPressed(VK_UP) && fTimeSinceLastShot>=fMinTimeBetweenShots) {
cWorld::GetInstance().AddBullet();
fTimeSinceLast... | 20.391304 | 69 | 0.720682 | KikeAjani |
795b5d89aacc9ca1084a6b358065f46c973b6f2c | 5,236 | cpp | C++ | materialsystem/stdshaders/debugnormalmap.cpp | DannyParker0001/Kisak-Strike | 99ed85927336fe3aff2efd9b9382b2b32eb1d05d | [
"Unlicense"
] | 252 | 2020-12-16T15:34:43.000Z | 2022-03-31T23:21:37.000Z | cstrike15_src/materialsystem/stdshaders/debugnormalmap.cpp | bahadiraraz/Counter-Strike-Global-Offensive | 9a0534100cb98ffa1cf0c32e138f0e7971e910d3 | [
"MIT"
] | 23 | 2020-12-20T18:02:54.000Z | 2022-03-28T16:58:32.000Z | cstrike15_src/materialsystem/stdshaders/debugnormalmap.cpp | bahadiraraz/Counter-Strike-Global-Offensive | 9a0534100cb98ffa1cf0c32e138f0e7971e910d3 | [
"MIT"
] | 42 | 2020-12-19T04:32:33.000Z | 2022-03-30T06:00:28.000Z | //===== Copyright (c) 1996-2005, Valve Corporation, All rights reserved. ======//
//
// Purpose:
//
// $Header: $
// $NoKeywords: $
//===========================================================================//
#include "BaseVSShader.h"
#include "convar.h"
#include "unlitgeneric_vs20.inc"
#include "unlitgeneric_ps2... | 31.926829 | 145 | 0.726127 | DannyParker0001 |
795cf71dceec1c4bc0a19ff2c2d963a82b15ee27 | 28,899 | cpp | C++ | src/frameworks/av/media/libstagefright/codecs/m4v_h263/dec/src/chvr_filter.cpp | dAck2cC2/m3e | 475b89b59d5022a94e00b636438b25e27e4eaab2 | [
"Apache-2.0"
] | 10 | 2020-04-17T04:02:36.000Z | 2021-11-23T11:38:42.000Z | src/frameworks/av/media/libstagefright/codecs/m4v_h263/dec/src/chvr_filter.cpp | dAck2cC2/m3e | 475b89b59d5022a94e00b636438b25e27e4eaab2 | [
"Apache-2.0"
] | 3 | 2020-02-19T16:53:25.000Z | 2021-04-29T07:28:40.000Z | src/frameworks/av/media/libstagefright/codecs/m4v_h263/dec/src/chvr_filter.cpp | dAck2cC2/m3e | 475b89b59d5022a94e00b636438b25e27e4eaab2 | [
"Apache-2.0"
] | 5 | 2019-12-25T04:05:02.000Z | 2022-01-14T16:57:55.000Z | /* ------------------------------------------------------------------
* Copyright (C) 1998-2009 PacketVideo
*
* 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.o... | 51.058304 | 114 | 0.298384 | dAck2cC2 |
796cd3906c1da3bbc35119f93687500b1b662e73 | 3,481 | hxx | C++ | include/numcxx/util.hxx | j-fu/numcxx | 463ef36ee0744af5513e6b5b24342f5323be6ff0 | [
"MIT"
] | null | null | null | include/numcxx/util.hxx | j-fu/numcxx | 463ef36ee0744af5513e6b5b24342f5323be6ff0 | [
"MIT"
] | null | null | null | include/numcxx/util.hxx | j-fu/numcxx | 463ef36ee0744af5513e6b5b24342f5323be6ff0 | [
"MIT"
] | null | null | null | #ifndef NUMCXX_UTIL_HXX
#define NUMCXX_UTIL_HXX
/// untility functions
namespace numcxx
{
/// Evaluate expression as array
///
/// This shall help with the issue with type inference for expression templates
/// For two vectors A,B of type ``TArray<double>``,
/// ````
/// auto C=A+B
/// ````
/// resu... | 31.36036 | 95 | 0.666762 | j-fu |
796dc671a3601364428befe3666409a057f13479 | 646 | hpp | C++ | hipacc_kernels/point/thresholdbinary_u8_s16.hpp | HipaccVX/HipaccVX | 0d469748df11c95f916b5a70f0006878f8550e3c | [
"MIT"
] | 1 | 2021-06-08T08:58:54.000Z | 2021-06-08T08:58:54.000Z | hipacc_kernels/point/thresholdbinary_u8_s16.hpp | HipaccVX/HipaccVX | 0d469748df11c95f916b5a70f0006878f8550e3c | [
"MIT"
] | 1 | 2021-11-13T14:55:55.000Z | 2021-11-13T14:55:55.000Z | hipacc_kernels/point/thresholdbinary_u8_s16.hpp | HipaccVX/HipaccVX | 0d469748df11c95f916b5a70f0006878f8550e3c | [
"MIT"
] | null | null | null | class ThresholdBinary_u8_s16 : public Kernel<unsigned char> {
private:
Accessor<short> &input;
const int true_value;
const int false_value;
const int binary_threshold;
public:
ThresholdBinary_u8_s16(IterationSpace<unsigned char> &iter, Accessor<short> &input,
int true_value, int false_value, i... | 29.363636 | 125 | 0.684211 | HipaccVX |
79700f3a7f5a5f813898564014abc6e31ef36c6e | 285 | cpp | C++ | CodeForces/Watermelon.cpp | a4org/Angorithm4 | d2227d36608491bed270375bcea67fbde134209a | [
"MIT"
] | 3 | 2021-07-26T15:58:45.000Z | 2021-09-08T14:55:11.000Z | CodeForces/Watermelon.cpp | a4org/Angorithm4 | d2227d36608491bed270375bcea67fbde134209a | [
"MIT"
] | null | null | null | CodeForces/Watermelon.cpp | a4org/Angorithm4 | d2227d36608491bed270375bcea67fbde134209a | [
"MIT"
] | 2 | 2021-05-31T11:27:59.000Z | 2021-10-03T13:26:00.000Z | /*
* 4A Watermelon
* Jiawei Wang
* 15 May 2021
*/
#include <iostream>
using namespace::std;
int main() {
int w;
cin >> w;
if (w % 2 == 0 && w != 2) cout << "YES";
else cout << "NO" << endl;
return 0; // Cannot return -1, that will cause runtime error
}
| 12.391304 | 64 | 0.529825 | a4org |
7978720f156723c218ae8b780af31e49e9191875 | 2,370 | cpp | C++ | homework7/ex2/rational.cpp | codeworm96/SE105-Programming-1 | 9b82316d33779befcef8c641a85df7137006450a | [
"MIT"
] | 4 | 2015-08-04T03:37:16.000Z | 2016-10-11T06:50:24.000Z | homework7/ex2/rational.cpp | codeworm96/SE105-Programming-1 | 9b82316d33779befcef8c641a85df7137006450a | [
"MIT"
] | null | null | null | homework7/ex2/rational.cpp | codeworm96/SE105-Programming-1 | 9b82316d33779befcef8c641a85df7137006450a | [
"MIT"
] | null | null | null | #include "rational.h"
#include <cmath>
#include <iostream>
long long gcd(long long a, long long b)
{
while (b){ //b != 0
long long c = a%b;
a = b;
b = c;
}
return a;
}
int convert_to_int(long long x)//checked convert
{
int y = x;
if (x != y){
throw Rational::out_of_range();
}
return y;
}
Rationa... | 26.333333 | 115 | 0.64346 | codeworm96 |
7979eba109836b6d0c1cb7d6475e263dd67a5205 | 1,378 | hpp | C++ | include/epiworld/persontools-bones.hpp | gvegayon/world-epi | 197d8cc0e8fb86c06ec1ac2df6316e89d4857218 | [
"MIT"
] | null | null | null | include/epiworld/persontools-bones.hpp | gvegayon/world-epi | 197d8cc0e8fb86c06ec1ac2df6316e89d4857218 | [
"MIT"
] | null | null | null | include/epiworld/persontools-bones.hpp | gvegayon/world-epi | 197d8cc0e8fb86c06ec1ac2df6316e89d4857218 | [
"MIT"
] | null | null | null | #ifndef EPIWORLD_PERSONTOOLS_BONES_HPP
#define EPIWORLD_PERSONTOOLS_BONES_HPP
/**
* @brief List of tools available for the individual to
*
* @tparam TSeq
*/
template<typename TSeq = bool>
class PersonTools {
friend class Person<TSeq>;
friend class Model<TSeq>;
private:
Person<TSeq> * person;
s... | 28.122449 | 66 | 0.725689 | gvegayon |
797c8797e4f600f4e5672aae087b834b2da66060 | 3,148 | cpp | C++ | utils/usrcat_binary_reader_similarity_lab.cpp | stevenshave/SimilarityLab | 2c5e22c9d698cba6df9c8d48ba2d1b8f9ebd50d6 | [
"MIT"
] | 1 | 2022-01-06T20:18:32.000Z | 2022-01-06T20:18:32.000Z | utils/usrcat_binary_reader_similarity_lab.cpp | stevenshave/SimilarityLab | 2c5e22c9d698cba6df9c8d48ba2d1b8f9ebd50d6 | [
"MIT"
] | null | null | null | utils/usrcat_binary_reader_similarity_lab.cpp | stevenshave/SimilarityLab | 2c5e22c9d698cba6df9c8d48ba2d1b8f9ebd50d6 | [
"MIT"
] | 1 | 2022-01-06T20:18:33.000Z | 2022-01-06T20:18:33.000Z | #include <array>
#include <iostream>
#include <fstream>
#include <iterator>
#include <algorithm>
#include <set>
#include "KeepN.hpp"
#include <vector>
#include <sstream>
#include <string>
#include <unordered_map>
struct USRCAT_SL_Descriptor {
unsigned long linenum;
float usrcatvals[60];
};
inline float scor... | 32.122449 | 110 | 0.672808 | stevenshave |
797dab37d3fa3a61886faf2b10f676f6ef6c4f07 | 6,764 | cpp | C++ | assignment/ass2/euclidean_vector.cpp | Yyyyyyyao/COMP6771---Advanced-CPP | 948dc1b566d7547b5a03dbfa9edf6d2791e13df4 | [
"Apache-2.0"
] | null | null | null | assignment/ass2/euclidean_vector.cpp | Yyyyyyyao/COMP6771---Advanced-CPP | 948dc1b566d7547b5a03dbfa9edf6d2791e13df4 | [
"Apache-2.0"
] | null | null | null | assignment/ass2/euclidean_vector.cpp | Yyyyyyyao/COMP6771---Advanced-CPP | 948dc1b566d7547b5a03dbfa9edf6d2791e13df4 | [
"Apache-2.0"
] | null | null | null | // Copyright (c) Christopher Di Bella.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
//
#include "comp6771/euclidean_vector.hpp"
namespace comp6771 {
// Implement solution here
// test line
// copy assignment
auto euclidean_vector::operator=(euclidean_vector const& orig) noexcept -> euclidean_vector&... | 31.460465 | 95 | 0.64385 | Yyyyyyyao |
797e04549646dcb7248aafc9b69dee21a20d0eac | 254 | hpp | C++ | src/mediasystem/util/TypeID.hpp | m1keall1son/ofxMediaSystem | c4b1619111b43996aabcb5c123af90824f8eee63 | [
"MIT"
] | 6 | 2018-06-15T11:50:38.000Z | 2018-09-13T19:44:12.000Z | src/mediasystem/util/TypeID.hpp | m1keall1son/ofxMediaSystem | c4b1619111b43996aabcb5c123af90824f8eee63 | [
"MIT"
] | null | null | null | src/mediasystem/util/TypeID.hpp | m1keall1son/ofxMediaSystem | c4b1619111b43996aabcb5c123af90824f8eee63 | [
"MIT"
] | 1 | 2018-06-28T16:39:17.000Z | 2018-06-28T16:39:17.000Z | //
// TypeID.hpp
// WallTest
//
// Created by Michael Allison on 6/13/18.
//
#pragma once
#include <memory>
namespace mediasystem {
template<typename>
void type_id(){}
using type_id_t = void(*)();
}//end namespace media system
| 14.111111 | 42 | 0.622047 | m1keall1son |
7983bbc4db9ab22a7562af4efdfacc91a3472fbb | 3,381 | hpp | C++ | src/configuration/config_options.hpp | bburns/cppagent | c1891c631465ebc9b63a4b3c627727ca3da14ee8 | [
"Apache-2.0"
] | null | null | null | src/configuration/config_options.hpp | bburns/cppagent | c1891c631465ebc9b63a4b3c627727ca3da14ee8 | [
"Apache-2.0"
] | null | null | null | src/configuration/config_options.hpp | bburns/cppagent | c1891c631465ebc9b63a4b3c627727ca3da14ee8 | [
"Apache-2.0"
] | null | null | null | //
// Copyright Copyright 2009-2022, AMT – The Association For Manufacturing Technology (“AMT”)
// 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
//
// ... | 37.566667 | 92 | 0.777876 | bburns |
79892d356a213bf4a8595f63c0824b2dc45bc0fa | 2,243 | cpp | C++ | UVA/872.cpp | DT3264/ProgrammingContestsSolutions | a297f2da654c2ca2815b9aa375c2b4ca0052269d | [
"MIT"
] | null | null | null | UVA/872.cpp | DT3264/ProgrammingContestsSolutions | a297f2da654c2ca2815b9aa375c2b4ca0052269d | [
"MIT"
] | null | null | null | UVA/872.cpp | DT3264/ProgrammingContestsSolutions | a297f2da654c2ca2815b9aa375c2b4ca0052269d | [
"MIT"
] | null | null | null |
// Problem : 872 - Ordering
// Contest : UVa Online Judge
// URL : https://onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=24&page=show_problem&problem=813
// Memory Limit : 32 MB
// Time Limit : 3000 ms
// Powered by CP Editor (https://github.com/cpeditor/cpeditor)
#include<bits/stdc++.h>
#define ... | 20.390909 | 116 | 0.554614 | DT3264 |
798a1f4653d08bab6649fcb9cbbc912ff595cbe0 | 4,570 | cpp | C++ | src/elements/components/MachineInfoExploration.cpp | FlorianEith/rcll_status_board | 2358ca07d72ad090408c0810071b95c03416b02c | [
"MIT"
] | null | null | null | src/elements/components/MachineInfoExploration.cpp | FlorianEith/rcll_status_board | 2358ca07d72ad090408c0810071b95c03416b02c | [
"MIT"
] | null | null | null | src/elements/components/MachineInfoExploration.cpp | FlorianEith/rcll_status_board | 2358ca07d72ad090408c0810071b95c03416b02c | [
"MIT"
] | 2 | 2019-10-31T14:18:12.000Z | 2021-01-18T14:40:06.000Z | /*
The MIT License (MIT)
Copyright (c) 2017-2018 Florian Eith <florian.eith@web.de>
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... | 36.854839 | 140 | 0.698687 | FlorianEith |
798c323aa40b494ab742e72aa8615aba71cd6a30 | 147 | cpp | C++ | examples/tensor/new/main.cpp | Seraphid/eddl | f627585a05edb91aaf991b898163cbe8cca66caf | [
"MIT"
] | null | null | null | examples/tensor/new/main.cpp | Seraphid/eddl | f627585a05edb91aaf991b898163cbe8cca66caf | [
"MIT"
] | null | null | null | examples/tensor/new/main.cpp | Seraphid/eddl | f627585a05edb91aaf991b898163cbe8cca66caf | [
"MIT"
] | null | null | null | #include <iostream>
#include <eddl/tensor/tensor.h>
int main(){
Tensor *t1 = Tensor::ones({5, 1});
std::cout << t1->sum() << std::endl;
}
| 18.375 | 40 | 0.578231 | Seraphid |
798d684cead2b50ace14f6d709e810495a04fc6b | 5,599 | cpp | C++ | deepfacetrack/utils/process.cpp | ShakI13/deep_face_track | 36aec8873844459d43ab17a6dfe9f475fa5cbd99 | [
"Apache-2.0",
"MIT"
] | null | null | null | deepfacetrack/utils/process.cpp | ShakI13/deep_face_track | 36aec8873844459d43ab17a6dfe9f475fa5cbd99 | [
"Apache-2.0",
"MIT"
] | null | null | null | deepfacetrack/utils/process.cpp | ShakI13/deep_face_track | 36aec8873844459d43ab17a6dfe9f475fa5cbd99 | [
"Apache-2.0",
"MIT"
] | 1 | 2021-01-30T16:51:29.000Z | 2021-01-30T16:51:29.000Z | #include "process.h"
#include <conio.h>
#include <Windows.h>
#include <sstream>
#define bzero(a) memset(a,0,sizeof(a)) //easier -- shortcut
bool _isWinNT() //check if we're running NT
{
OSVERSIONINFO osv;
osv.dwOSVersionInfoSize = sizeof(osv);
GetVersionEx(&osv);
return (osv.dwPlatformId == VER_PLATFORM_WIN32_N... | 23.232365 | 82 | 0.656189 | ShakI13 |
798dc82c7802cb20eb94cc9bebb59a04466fc9fa | 1,642 | cc | C++ | mimosa/net/io.cc | abique/mimosa | 42c0041b570b55a24c606a7da79c70c9933c07d4 | [
"MIT"
] | 24 | 2015-01-19T16:38:24.000Z | 2022-01-15T01:25:30.000Z | mimosa/net/io.cc | abique/mimosa | 42c0041b570b55a24c606a7da79c70c9933c07d4 | [
"MIT"
] | 2 | 2017-01-07T10:47:06.000Z | 2018-01-16T07:19:57.000Z | mimosa/net/io.cc | abique/mimosa | 42c0041b570b55a24c606a7da79c70c9933c07d4 | [
"MIT"
] | 7 | 2015-01-19T16:38:31.000Z | 2020-12-12T19:10:30.000Z | #include <climits>
#include <cerrno>
#include "common.hh"
#include "io.hh"
namespace mimosa
{
namespace net
{
bool
waitForFdReady(int fd, int events, Time timeout)
{
::pollfd pfd{};
int ret;
if (timeout == 0)
return true;
pfd.fd = fd;
pfd.events = event... | 20.525 | 69 | 0.551766 | abique |
798fe4bac642805ed8d473ab77fe3bc3d110abf4 | 5,106 | cpp | C++ | src/parallax/read_parallax.cpp | Damdoshi/LibLapin | 800e0f17ed8f3c47797c48feea4c280bb0e4bdc9 | [
"BSD-3-Clause"
] | 38 | 2016-07-30T09:35:19.000Z | 2022-03-04T10:13:48.000Z | src/parallax/read_parallax.cpp | Elania-Marvers/LibLapin | 800e0f17ed8f3c47797c48feea4c280bb0e4bdc9 | [
"BSD-3-Clause"
] | 15 | 2017-02-12T19:20:52.000Z | 2021-06-09T09:30:52.000Z | src/parallax/read_parallax.cpp | Elania-Marvers/LibLapin | 800e0f17ed8f3c47797c48feea4c280bb0e4bdc9 | [
"BSD-3-Clause"
] | 12 | 2016-10-06T09:06:59.000Z | 2022-03-04T10:14:00.000Z | // Jason Brillante "Damdoshi"
// Hanged Bunny Studio 2014-2018
//
// Lapin library
#include "lapin_private.h"
t_bunny_parallax *bunny_read_parallax_wh(t_bunny_configuration *cnf,
unsigned int width,
unsigned int height)
{
struct bunny_parallax *px;
if ((px = new (std::nothrow) struct bunny_paralla... | 31.518519 | 104 | 0.6604 | Damdoshi |
799099b47850ccb3e3bb26985885504713407aee | 1,090 | cpp | C++ | TicTacToeWithServer/src/main.cpp | Bousk/GamesSamples | 93d89216b48da3844df20df94a231344279c4e15 | [
"MIT"
] | 1 | 2020-09-21T08:22:37.000Z | 2020-09-21T08:22:37.000Z | TicTacToeWithServer/src/main.cpp | Bousk/GamesSamples | 93d89216b48da3844df20df94a231344279c4e15 | [
"MIT"
] | null | null | null | TicTacToeWithServer/src/main.cpp | Bousk/GamesSamples | 93d89216b48da3844df20df94a231344279c4e15 | [
"MIT"
] | null | null | null | #include <main.hpp>
#include <string>
extern int main_p2p(bool isHost);
extern int main_merged(bool isNetworked, bool isHost);
extern int main_solo();
enum class MainType
{
Unknown,
Solo,
P2P_Host,
P2P_Client,
};
int SDL_main(int argc, char* argv[])
{
MainType type = MainType::Unknown;
for (i... | 23.695652 | 104 | 0.537615 | Bousk |
799294daf75ce59141f5aa33c84892e0d28ab0b3 | 4,432 | cpp | C++ | WheresMyOutput/OutWatch/process_util.cpp | vix597/OutWatch | baaa68fb176d3cd6219ffaedd721cb48fa1b907b | [
"WTFPL"
] | null | null | null | WheresMyOutput/OutWatch/process_util.cpp | vix597/OutWatch | baaa68fb176d3cd6219ffaedd721cb48fa1b907b | [
"WTFPL"
] | null | null | null | WheresMyOutput/OutWatch/process_util.cpp | vix597/OutWatch | baaa68fb176d3cd6219ffaedd721cb48fa1b907b | [
"WTFPL"
] | null | null | null | #include "process_util.h"
#include "status.h"
#include <Windows.h>
#include <Shlwapi.h>
#include <TlHelp32.h>
#include <iostream>
#pragma comment(lib,"shlwapi.lib")
#pragma comment(lib,"advapi32.lib")
using namespace std;
//
//Compute the offset to a function within a module
//
Status GetFunctionOff... | 29.350993 | 129 | 0.706453 | vix597 |
799327f542d6c032a128517f76c99dfa7ad44b90 | 1,006 | cpp | C++ | App/Source/Threading/LoadMeshAction.cpp | Clymiaru/GDPARCM_RealtimeSceneViewer | caf399dc819fe5fcc9c7445f74b1958af09e21de | [
"MIT"
] | null | null | null | App/Source/Threading/LoadMeshAction.cpp | Clymiaru/GDPARCM_RealtimeSceneViewer | caf399dc819fe5fcc9c7445f74b1958af09e21de | [
"MIT"
] | null | null | null | App/Source/Threading/LoadMeshAction.cpp | Clymiaru/GDPARCM_RealtimeSceneViewer | caf399dc819fe5fcc9c7445f74b1958af09e21de | [
"MIT"
] | null | null | null | #include "pch.h"
#include "LoadMeshAction.h"
#include "AssetManagement/Model/Model.h"
LoadMeshAction::LoadMeshAction(StringRef assetName,
StringRef filepath,
StringRef basepath,
StringRef sceneOwner,
std::mutex& resourceMutex,
AssetTable& assetTable,
HashTabl... | 28.742857 | 60 | 0.714712 | Clymiaru |
79959561acb764bc12b9549a292bc905dd403d3a | 212 | cpp | C++ | ch3/ex3-37.cpp | hellokangning/cpp-primer-exercises | 9d5eb46699d925130031dd02b2bada6cf87029b3 | [
"MIT"
] | null | null | null | ch3/ex3-37.cpp | hellokangning/cpp-primer-exercises | 9d5eb46699d925130031dd02b2bada6cf87029b3 | [
"MIT"
] | null | null | null | ch3/ex3-37.cpp | hellokangning/cpp-primer-exercises | 9d5eb46699d925130031dd02b2bada6cf87029b3 | [
"MIT"
] | null | null | null | #include <iostream>
using std::cout;
using std::endl;
int main()
{
const char ca[] = {'h', 'e', 'l', 'l', 'o'};
const char *cp = ca;
while (*cp) {
cout << *cp << endl;
++cp;
}
}
| 14.133333 | 48 | 0.443396 | hellokangning |
7998d263b11785ab85049c410530f2565e4675e0 | 845 | cpp | C++ | dep/include/yse/synth/samplerSound.cpp | ChrSacher/MyEngine | 8fe71fd9e84b9536148e0d4ebb4e53751ab49ce8 | [
"Apache-2.0"
] | 2 | 2015-10-27T21:36:59.000Z | 2017-03-17T21:52:19.000Z | dep/include/yse/synth/samplerSound.cpp | ChrSacher/MyEngine | 8fe71fd9e84b9536148e0d4ebb4e53751ab49ce8 | [
"Apache-2.0"
] | null | null | null | dep/include/yse/synth/samplerSound.cpp | ChrSacher/MyEngine | 8fe71fd9e84b9536148e0d4ebb4e53751ab49ce8 | [
"Apache-2.0"
] | null | null | null | /*
==============================================================================
samplerSound.cpp
Created: 8 Jul 2014 6:18:27pm
Author: yvan
==============================================================================
*/
#include "samplerSound.h"
YSE::SYNTH::samplerSoundWithChannel::samplerSound... | 35.208333 | 255 | 0.626036 | ChrSacher |
799960995aa8c94a326e9342c3047fb3d9530bc6 | 1,689 | cpp | C++ | src/defensive_line.cpp | dsparber/algolab | 9781eb5c7444236f796f167f1f39fc9d913e5c53 | [
"MIT"
] | 13 | 2021-01-01T17:19:24.000Z | 2022-02-09T12:27:57.000Z | src/defensive_line.cpp | dsparber/algolab | 9781eb5c7444236f796f167f1f39fc9d913e5c53 | [
"MIT"
] | null | null | null | src/defensive_line.cpp | dsparber/algolab | 9781eb5c7444236f796f167f1f39fc9d913e5c53 | [
"MIT"
] | 1 | 2021-01-28T10:55:25.000Z | 2021-01-28T10:55:25.000Z | #include <iostream>
#include <vector>
#include <cmath>
using namespace std;
void solve() {
int n, m, k;
cin >> n;
cin >> m;
cin >> k;
vector<int> v(n);
for (int i = 0; i < n; ++i) {
cin >> v[i];
}
vector<int> sum(n + 1);
sum[0] = 0;
for (int i = 0; i < n; ++i) {
sum[i + 1] = v[i] + sum[... | 19.639535 | 63 | 0.42984 | dsparber |
799aee01e81827a4b63db4daed8f3b319c0c5bde | 1,309 | cpp | C++ | cpp/1.two-sum.cpp | vermouth1992/Leetcode | 0d7dda52b12f9e01d88fc279243742cd8b4bcfd1 | [
"MIT"
] | null | null | null | cpp/1.two-sum.cpp | vermouth1992/Leetcode | 0d7dda52b12f9e01d88fc279243742cd8b4bcfd1 | [
"MIT"
] | null | null | null | cpp/1.two-sum.cpp | vermouth1992/Leetcode | 0d7dda52b12f9e01d88fc279243742cd8b4bcfd1 | [
"MIT"
] | null | null | null | /*
* @lc app=leetcode id=1 lang=cpp
*
* [1] Two Sum
*
* https://leetcode.com/problems/two-sum/description/
*
* algorithms
* Easy (44.52%)
* Total Accepted: 2.1M
* Total Submissions: 4.8M
* Testcase Example: '[2,7,11,15]\n9'
*
* Given an array of integers, return indices of the two numbers such that the... | 22.568966 | 79 | 0.556914 | vermouth1992 |
799ccd00c3a091c559685a0e24cf14ed770136e9 | 17,507 | cpp | C++ | src/runtime/nodes/node_position_impl.cpp | jsoniq/jsoniq | f7af29417f809d64d1f0b2622d880bc4d87f2e42 | [
"Apache-2.0"
] | 94 | 2015-01-18T09:40:36.000Z | 2022-03-02T21:14:55.000Z | src/runtime/nodes/node_position_impl.cpp | jsoniq/jsoniq | f7af29417f809d64d1f0b2622d880bc4d87f2e42 | [
"Apache-2.0"
] | 72 | 2015-01-05T22:00:31.000Z | 2021-07-17T11:35:03.000Z | src/runtime/nodes/node_position_impl.cpp | jsoniq/jsoniq | f7af29417f809d64d1f0b2622d880bc4d87f2e42 | [
"Apache-2.0"
] | 27 | 2015-01-18T20:20:54.000Z | 2020-11-01T18:01:07.000Z | /*
* Copyright 2006-2008 The FLWOR Foundation.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law... | 23.188079 | 103 | 0.554293 | jsoniq |
799dc45e16ba0dd4ad95bb4692bc16b620763e3a | 45,003 | cc | C++ | Pythia8_1_62/src/PartonLevel.cc | klendathu2k/StarGenerator | 7dd407c41d4eea059ca96ded80d30bda0bc014a4 | [
"MIT"
] | 2 | 2018-12-24T19:37:00.000Z | 2022-02-28T06:57:20.000Z | Pythia8_1_62/src/PartonLevel.cc | klendathu2k/StarGenerator | 7dd407c41d4eea059ca96ded80d30bda0bc014a4 | [
"MIT"
] | null | null | null | Pythia8_1_62/src/PartonLevel.cc | klendathu2k/StarGenerator | 7dd407c41d4eea059ca96ded80d30bda0bc014a4 | [
"MIT"
] | null | null | null | // PartonLevel.cc is a part of the PYTHIA event generator.
// Copyright (C) 2012 Torbjorn Sjostrand.
// PYTHIA is licenced under the GNU GPL version 2, see COPYING for details.
// Please respect the MCnet Guidelines, see GUIDELINES for details.
// Function definitions (not found in the header) for the PartonLevel clas... | 35.379717 | 79 | 0.600027 | klendathu2k |
799f44b313e4d607f10f476325a54592cdbd09f3 | 4,124 | cc | C++ | Codeforces/MemSQL Start[c]UP 2.0 - Round 1/Problem E/E.cc | VastoLorde95/Competitive-Programming | 6c990656178fb0cd33354cbe5508164207012f24 | [
"MIT"
] | 170 | 2017-07-25T14:47:29.000Z | 2022-01-26T19:16:31.000Z | Codeforces/MemSQL Start[c]UP 2.0 - Round 1/Problem E/E.cc | navodit15/Competitive-Programming | 6c990656178fb0cd33354cbe5508164207012f24 | [
"MIT"
] | null | null | null | Codeforces/MemSQL Start[c]UP 2.0 - Round 1/Problem E/E.cc | navodit15/Competitive-Programming | 6c990656178fb0cd33354cbe5508164207012f24 | [
"MIT"
] | 55 | 2017-07-28T06:17:33.000Z | 2021-10-31T03:06:22.000Z | #include <bits/stdc++.h>
#define sd(x) scanf("%d",&x)
#define sd2(x,y) scanf("%d%d",&x,&y)
#define sd3(x,y,z) scanf("%d%d%d",&x,&y,&z)
#define fi first
#define se second
#define pb push_back
#define mp make_pair
#define foreach(it, v) for(__typeof((v).begin()) it=(v).begin(); it != (v).end(); ++it)
#define meta __FUN... | 19.732057 | 97 | 0.509214 | VastoLorde95 |
79a1e026d182505ab7dc459e78b244ec91ac005f | 1,444 | cc | C++ | vowpalwabbit/io/logger.cc | vainbaum/vowpal_wabbit | 3df4973eb6eba5f3bf0690bf15abb9317691c9cf | [
"BSD-3-Clause"
] | 2 | 2021-06-03T22:30:52.000Z | 2021-07-18T15:45:44.000Z | vowpalwabbit/io/logger.cc | vainbaum/vowpal_wabbit | 3df4973eb6eba5f3bf0690bf15abb9317691c9cf | [
"BSD-3-Clause"
] | null | null | null | vowpalwabbit/io/logger.cc | vainbaum/vowpal_wabbit | 3df4973eb6eba5f3bf0690bf15abb9317691c9cf | [
"BSD-3-Clause"
] | 1 | 2021-07-18T15:45:51.000Z | 2021-07-18T15:45:51.000Z | // Copyright (c) by respective owners including Yahoo!, Microsoft, and
// individual contributors. All rights reserved. Released under a BSD (revised)
// license as described in the file LICENSE.
#include "logger.h"
#include "spdlog/sinks/stdout_sinks.h"
namespace VW
{
namespace io
{
namespace logger
{
// FIXME: the ... | 24.474576 | 120 | 0.732687 | vainbaum |
79a604d66a4f6f2981509cb2467a0cf8a1223267 | 4,589 | cc | C++ | src/all_logs_vtab.cc | thedataflows/lnav | 30c603c1c846e8b3718d6617e279a0bfa6ca76c3 | [
"BSD-2-Clause"
] | 4,184 | 2015-01-09T23:30:28.000Z | 2022-03-31T04:28:33.000Z | src/all_logs_vtab.cc | thedataflows/lnav | 30c603c1c846e8b3718d6617e279a0bfa6ca76c3 | [
"BSD-2-Clause"
] | 699 | 2015-01-18T21:07:22.000Z | 2022-03-31T16:36:18.000Z | src/all_logs_vtab.cc | thedataflows/lnav | 30c603c1c846e8b3718d6617e279a0bfa6ca76c3 | [
"BSD-2-Clause"
] | 288 | 2015-03-12T07:26:27.000Z | 2022-03-26T01:33:17.000Z | /**
* Copyright (c) 2020, Timothy Stack
*
* 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 condi... | 36.712 | 101 | 0.685988 | thedataflows |
79af510a6730647a62be13e8d3d91f4485f057a8 | 1,657 | hpp | C++ | D3DWorkshop/D3DWFloatAnimation.hpp | Lovesan/D3DWorkshop | e9355d0851afc5c03ec42442a31796d39c2bbdfc | [
"MIT"
] | 2 | 2015-05-08T17:35:44.000Z | 2020-10-26T18:03:16.000Z | D3DWorkshop/D3DWFloatAnimation.hpp | Lovesan/D3DWorkshop | e9355d0851afc5c03ec42442a31796d39c2bbdfc | [
"MIT"
] | null | null | null | D3DWorkshop/D3DWFloatAnimation.hpp | Lovesan/D3DWorkshop | e9355d0851afc5c03ec42442a31796d39c2bbdfc | [
"MIT"
] | null | null | null | #ifndef __D3DWFLOAT_ANIMATION_HPP__
#define __D3DWFLOAT_ANIMATION_HPP__
#include <windows.h>
#include "ComUtils.hpp"
#include "D3DW.h"
#ifndef __D3DWCONTEXT_DEFINED__
class D3DWContext;
#endif // __D3DWCONTEXT_DEFINED__
class COM_NO_VTABLE D3DWFloatAnimation : public ID3DWFloatAnimation
{
public:
BEG... | 28.568966 | 127 | 0.735063 | Lovesan |
79b39c7025bea8762def0b8ae20f76a1708459bc | 3,051 | cpp | C++ | src/primitive/vertex_shader.cpp | wilkie/apsis | 9e6a37ad9dfc8931b25b9429d7e4a770b4e760bf | [
"WTFPL"
] | 2 | 2015-11-05T03:47:29.000Z | 2020-01-24T18:48:09.000Z | src/primitive/vertex_shader.cpp | wilkie/apsis | 9e6a37ad9dfc8931b25b9429d7e4a770b4e760bf | [
"WTFPL"
] | null | null | null | src/primitive/vertex_shader.cpp | wilkie/apsis | 9e6a37ad9dfc8931b25b9429d7e4a770b4e760bf | [
"WTFPL"
] | null | null | null | #include "apsis/primitive/vertex_shader.h"
#include "apsis/backend/sdl.h"
#include <stdio.h>
#include "apsis/engine/log.h"
static void _throwError(const char* function, const char* message) {
Apsis::Engine::Log::error("Primitive", "VertexShader", function, message);
}
#ifdef DEBUG_THROW_GL_ERRORS
static void _th... | 26.763158 | 98 | 0.713209 | wilkie |
79b44dfbbe3e1fd5d138e751abbacacf4dd033c6 | 418 | hpp | C++ | include/widgets/uploadwidget.hpp | iamOgunyinka/TragelPC | 27c46cc7d845c71740c2cec895e5f7bef82bef31 | [
"Apache-2.0"
] | 6 | 2019-07-07T15:07:28.000Z | 2019-07-12T15:02:04.000Z | include/widgets/uploadwidget.hpp | iamOgunyinka/TragelPC | 27c46cc7d845c71740c2cec895e5f7bef82bef31 | [
"Apache-2.0"
] | null | null | null | include/widgets/uploadwidget.hpp | iamOgunyinka/TragelPC | 27c46cc7d845c71740c2cec895e5f7bef82bef31 | [
"Apache-2.0"
] | null | null | null | #ifndef UPLOADWIDGET_HPP
#define UPLOADWIDGET_HPP
#include <QWidget>
namespace Ui {
class UploadWidget;
}
class UploadWidget : public QWidget
{
Q_OBJECT
public:
explicit UploadWidget(QWidget *parent = nullptr);
~UploadWidget();
void SetMessage( QString const & message );
void SetProgress( qint64... | 17.416667 | 59 | 0.727273 | iamOgunyinka |
79b60fb8fb7a3df6a111b32ce9dab8234d4d850b | 1,147 | hpp | C++ | src/threading/ThreadWrapper.hpp | LordLambda/MTLib | a421bc477e0a6dbe9ff0a1f9bf0f7b62fb9fbe68 | [
"MIT"
] | null | null | null | src/threading/ThreadWrapper.hpp | LordLambda/MTLib | a421bc477e0a6dbe9ff0a1f9bf0f7b62fb9fbe68 | [
"MIT"
] | 1 | 2016-08-20T16:26:04.000Z | 2016-08-20T16:26:04.000Z | src/threading/ThreadWrapper.hpp | SecurityInsanity/MTLib | a421bc477e0a6dbe9ff0a1f9bf0f7b62fb9fbe68 | [
"MIT"
] | null | null | null | #ifndef THREADWRAPPER_HPP
#define THREADWRAPPER_HPP
// Class ThreadWrapper - A Wrapper around the threading Class
// that allows for ease of use in a Thread Manager, and creation
// of threads.
enum ThreadState {
THREADSTATE_TERMINATE = 0,
THREADSTATE_PAUSED = 1,
THREADSTATE_SLEEPING = 2,
THREADSTATE... | 24.404255 | 97 | 0.726242 | LordLambda |
79bf8a36b6fae075957804343c20dc34b4777dd9 | 4,007 | hpp | C++ | Siv3D/include/Siv3D/Hash.hpp | Fuyutsubaki/OpenSiv3D | 4370f6ebe28addd39bfdd75915c5a18e3e5e9273 | [
"MIT"
] | 1 | 2018-05-23T10:57:32.000Z | 2018-05-23T10:57:32.000Z | Siv3D/include/Siv3D/Hash.hpp | Fuyutsubaki/OpenSiv3D | 4370f6ebe28addd39bfdd75915c5a18e3e5e9273 | [
"MIT"
] | null | null | null | Siv3D/include/Siv3D/Hash.hpp | Fuyutsubaki/OpenSiv3D | 4370f6ebe28addd39bfdd75915c5a18e3e5e9273 | [
"MIT"
] | 1 | 2019-10-06T17:09:26.000Z | 2019-10-06T17:09:26.000Z | //-----------------------------------------------
//
// This file is part of the Siv3D Engine.
//
// Copyright (c) 2008-2018 Ryo Suzuki
// Copyright (c) 2016-2018 OpenSiv3D Project
//
// Licensed under the MIT License.
//
//-----------------------------------------------
# pragma once
# include "Platform.hpp"
# inclu... | 19.357488 | 84 | 0.562016 | Fuyutsubaki |
79c4f3e1cb48e10b2b6494267fb882e8bf0ca489 | 252 | cpp | C++ | recursion/firstindex.cpp | AyushVerma-code/DSA-in-C- | 4694ad771a1cff8dd81cb127887804d7c67fcb83 | [
"MIT"
] | 1 | 2021-06-01T03:20:42.000Z | 2021-06-01T03:20:42.000Z | recursion/firstindex.cpp | AyushVerma-code/DSA-in-C- | 4694ad771a1cff8dd81cb127887804d7c67fcb83 | [
"MIT"
] | null | null | null | recursion/firstindex.cpp | AyushVerma-code/DSA-in-C- | 4694ad771a1cff8dd81cb127887804d7c67fcb83 | [
"MIT"
] | null | null | null | int firstIndex(int input[], int size, int x) {
int static b=0;
if(size==b)
{
return -1;
}
if(input[b]==x)
{
return b;
}
b=b+1;
int ansa=firstIndex(input+1,size-1,x);
return ansa;
}
| 14 | 46 | 0.456349 | AyushVerma-code |
79c5d29127787ccee2fecb45973976fba47e1a2c | 2,237 | cpp | C++ | ivld/src/v20210903/model/Data.cpp | suluner/tencentcloud-sdk-cpp | a56c73cc3f488c4d1e10755704107bb15c5e000d | [
"Apache-2.0"
] | null | null | null | ivld/src/v20210903/model/Data.cpp | suluner/tencentcloud-sdk-cpp | a56c73cc3f488c4d1e10755704107bb15c5e000d | [
"Apache-2.0"
] | null | null | null | ivld/src/v20210903/model/Data.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
... | 26.317647 | 123 | 0.69021 | suluner |
79ca83ae82c76d889938eb2488a76e4af2b8fda8 | 6,972 | cpp | C++ | src/objects/author.cpp | Maledictus/harbour-sailreads | 2c58aa266ef2dacb790b857c3b6aced937da5c0e | [
"MIT"
] | 3 | 2019-01-05T09:54:19.000Z | 2019-02-26T09:20:23.000Z | src/objects/author.cpp | Maledictus/harbour-sailreads | 2c58aa266ef2dacb790b857c3b6aced937da5c0e | [
"MIT"
] | 1 | 2019-01-03T10:02:01.000Z | 2019-01-03T14:08:16.000Z | src/objects/author.cpp | Maledictus/harbour-sailreads | 2c58aa266ef2dacb790b857c3b6aced937da5c0e | [
"MIT"
] | null | null | null | /*
Copyright (c) 2018-2019 Oleg Linkin <maledictusdemagog@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, modi... | 20.445748 | 92 | 0.711991 | Maledictus |
79cc6c1a70768639a2e7731cccb41b41127ba3ab | 10,684 | cpp | C++ | test/unit/math/rev/mat/fun/mdivide_left_ldlt_test.cpp | jrmie/math | 2850ec262181075a5843968e805dc9ad1654e069 | [
"BSD-3-Clause"
] | 1 | 2019-09-06T15:53:17.000Z | 2019-09-06T15:53:17.000Z | test/unit/math/rev/mat/fun/mdivide_left_ldlt_test.cpp | jrmie/math | 2850ec262181075a5843968e805dc9ad1654e069 | [
"BSD-3-Clause"
] | 8 | 2019-01-17T18:51:16.000Z | 2019-01-17T18:51:39.000Z | test/unit/math/rev/mat/fun/mdivide_left_ldlt_test.cpp | jrmie/math | 2850ec262181075a5843968e805dc9ad1654e069 | [
"BSD-3-Clause"
] | null | null | null | #include <stan/math/rev/mat.hpp>
#include <gtest/gtest.h>
#include <test/unit/math/rev/mat/fun/util.hpp>
#include <test/unit/math/rev/mat/util.hpp>
#include <vector>
std::vector<double> finite_differences(const size_t row, const size_t col,
const stan::math::matrix_d A,
... | 28.643432 | 80 | 0.551011 | jrmie |
79ccde1879613006fecd5429fe64a886ff7d89de | 2,115 | cpp | C++ | util/clock_source_bm.cpp | RedBeard0531/mongo_utils | 402c2023df7d67609ce9da8e405bf13cdd270e20 | [
"Apache-2.0"
] | 1 | 2018-03-14T21:48:43.000Z | 2018-03-14T21:48:43.000Z | util/clock_source_bm.cpp | RedBeard0531/mongo_utils | 402c2023df7d67609ce9da8e405bf13cdd270e20 | [
"Apache-2.0"
] | null | null | null | util/clock_source_bm.cpp | RedBeard0531/mongo_utils | 402c2023df7d67609ce9da8e405bf13cdd270e20 | [
"Apache-2.0"
] | null | null | null | /**
* Copyright (C) 2018 MongoDB Inc.
*
* 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 applicabl... | 31.102941 | 83 | 0.675177 | RedBeard0531 |
79cd02e462e012c8d8594edd01556ac27738d677 | 1,953 | hpp | C++ | include/elemental/matrices/Hanowa.hpp | ahmadia/Elemental-1 | f9a82c76a06728e9e04a4316e41803efbadb5a19 | [
"BSD-3-Clause"
] | null | null | null | include/elemental/matrices/Hanowa.hpp | ahmadia/Elemental-1 | f9a82c76a06728e9e04a4316e41803efbadb5a19 | [
"BSD-3-Clause"
] | null | null | null | include/elemental/matrices/Hanowa.hpp | ahmadia/Elemental-1 | f9a82c76a06728e9e04a4316e41803efbadb5a19 | [
"BSD-3-Clause"
] | null | null | null | /*
Copyright (c) 2009-2013, Jack Poulson
All rights reserved.
This file is part of Elemental and is under the BSD 2-Clause License,
which can be found in the LICENSE file in the root directory, or at
http://opensource.org/licenses/BSD-2-Clause
*/
#pragma once
#ifndef MATRICES_HANOWA_HPP
#define MATRIC... | 22.709302 | 73 | 0.558628 | ahmadia |
79dc7ef3960dfb131e5cba8f60690cbcbc0c8747 | 10,249 | cpp | C++ | BSCWindow.cpp | humdingerb/bescreencapture | 6649bd70569503c494cbdb2626f36439123c046a | [
"BSD-3-Clause"
] | null | null | null | BSCWindow.cpp | humdingerb/bescreencapture | 6649bd70569503c494cbdb2626f36439123c046a | [
"BSD-3-Clause"
] | null | null | null | BSCWindow.cpp | humdingerb/bescreencapture | 6649bd70569503c494cbdb2626f36439123c046a | [
"BSD-3-Clause"
] | null | null | null | #include "AdvancedOptionsView.h"
#include "BSCApp.h"
#include "BSCWindow.h"
#include "CamStatusView.h"
#include "Controller.h"
#include "ControllerObserver.h"
#include "Constants.h"
#include "InfoView.h"
#include "OptionsWindow.h"
#include "OutputView.h"
#include "SelectionWindow.h"
#include "Settings.h"
#include <Ale... | 26.07888 | 105 | 0.717533 | humdingerb |
076567f7f6654cdbb7c2c01483a9acd0e8d4c1b0 | 2,177 | cpp | C++ | 2020/05.cpp | wgevaert/AOC | aaa9c06f9817e338cca01bbf37b6ba81256dd5ba | [
"WTFPL"
] | 2 | 2020-08-06T22:14:51.000Z | 2020-08-10T19:42:36.000Z | 2020/05.cpp | wgevaert/AOC | aaa9c06f9817e338cca01bbf37b6ba81256dd5ba | [
"WTFPL"
] | null | null | null | 2020/05.cpp | wgevaert/AOC | aaa9c06f9817e338cca01bbf37b6ba81256dd5ba | [
"WTFPL"
] | null | null | null | #include <iostream>
#include <fstream>
#include <chrono>
// Because I'm too lazy to type
typedef unsigned long long ull_t;
typedef unsigned u_t;
typedef long long ll_t;
unsigned verb_lvl = 0;
int real_main(int argc, char** argv) {
if (argc < 2) {
std::cerr<<"Usage: "<<argv[0]<<" [-v {verbosity_level}] {i... | 26.228916 | 116 | 0.486909 | wgevaert |
076b464f276adbe6acd5b60d16a5745aa1681a46 | 525 | hpp | C++ | shoggoth/src/PageManager.hpp | RobertZ2011/yith | 3522fe6389a36a142e54bfde16d746a67f91abf6 | [
"BSD-3-Clause"
] | null | null | null | shoggoth/src/PageManager.hpp | RobertZ2011/yith | 3522fe6389a36a142e54bfde16d746a67f91abf6 | [
"BSD-3-Clause"
] | null | null | null | shoggoth/src/PageManager.hpp | RobertZ2011/yith | 3522fe6389a36a142e54bfde16d746a67f91abf6 | [
"BSD-3-Clause"
] | null | null | null | #ifndef PAGE_MANAGER
#define PAGE_MANAGER
#include <stddef.h>
#include <stdint.h>
#include "Multiboot2Info.hpp"
class Arch;
class PageManager {
public:
virtual void init(Arch&, Multiboot2Info&) = 0;
virtual void *allocPages(size_t pages) = 0;
virtual void freePages(void*, size_t pages) = 0;
virtual ... | 22.826087 | 66 | 0.71619 | RobertZ2011 |
076b550f41706ca2502097e2e4065d167f94b402 | 319 | cpp | C++ | android-ndk-r10b/tests/device/test-stlport_static-exception/jni/unwind1.cpp | perezite/Boost4Android | 9ed03a45815aead156c129da1927cc04b8caa6a3 | [
"BSL-1.0"
] | 7 | 2020-05-02T17:34:05.000Z | 2021-10-17T10:15:18.000Z | android-ndk-r10b/tests/device/test-stlport_static-exception/jni/unwind1.cpp | perezite/Boost4Android | 9ed03a45815aead156c129da1927cc04b8caa6a3 | [
"BSL-1.0"
] | null | null | null | android-ndk-r10b/tests/device/test-stlport_static-exception/jni/unwind1.cpp | perezite/Boost4Android | 9ed03a45815aead156c129da1927cc04b8caa6a3 | [
"BSL-1.0"
] | 2 | 2020-07-27T00:22:36.000Z | 2021-04-01T09:41:02.000Z | // { dg-do run }
// Test that unwinding properly restores SP.
// Contributed by Jason Merrill <jason@cygnus.com>
void f (int i)
{
throw i;
}
int main ()
{
void *sp1 = __builtin_alloca (0);
try
{
f (0);
}
catch (int)
{
}
void *sp2 = __builtin_alloca (0);
return (sp1 != sp2);
}
| 12.269231 | 50 | 0.551724 | perezite |
076d5f4547b77517ccf5ab839a987299dece0f92 | 919 | cpp | C++ | common/protocol/event/player_reach_cake_event.cpp | dima1997/PORTAL_2D_copy | 7618d970feded3fc05fda0c422a5d76a1d3056c7 | [
"MIT"
] | null | null | null | common/protocol/event/player_reach_cake_event.cpp | dima1997/PORTAL_2D_copy | 7618d970feded3fc05fda0c422a5d76a1d3056c7 | [
"MIT"
] | null | null | null | common/protocol/event/player_reach_cake_event.cpp | dima1997/PORTAL_2D_copy | 7618d970feded3fc05fda0c422a5d76a1d3056c7 | [
"MIT"
] | null | null | null | #include "player_reach_cake_event.h"
#include "connector/connector.h"
#include "event.h"
#include <cstdint>
/*
PRE: Recibe el id del jugador que llego a la torta.
POST: Inicializa un evento de jugador que llego a torta.
*/
PlayerReachCakeEvent::PlayerReachCakeEvent(uint32_t id)
: Event(player_reach_cake), id(id) {... | 24.837838 | 63 | 0.726877 | dima1997 |
076fb4b0f2835b6a5caf87f9a51087382c47d3d0 | 2,704 | cpp | C++ | defplugins/textinput/textinput/interface.cpp | danielbrendel/AquaShell | 2f1ba45d4cb9afeda260a8f06131334b5507e879 | [
"MIT"
] | null | null | null | defplugins/textinput/textinput/interface.cpp | danielbrendel/AquaShell | 2f1ba45d4cb9afeda260a8f06131334b5507e879 | [
"MIT"
] | null | null | null | defplugins/textinput/textinput/interface.cpp | danielbrendel/AquaShell | 2f1ba45d4cb9afeda260a8f06131334b5507e879 | [
"MIT"
] | null | null | null | #include "dnyas_sdk.h"
IShellPluginAPI* g_pShellPluginAPI;
class IInputVoidCommandInterface : public IVoidCommandInterface {
public:
IInputVoidCommandInterface() {}
virtual bool CommandCallback(void* pArg1, void* pArg2)
{
ICodeContext* pCodeContext = (ICodeContext*)pArg1;
if (pCodeContext->GetPartCount() <= ... | 24.142857 | 110 | 0.751109 | danielbrendel |
077117b8ba52ec1d0c1acebbb9abe90a14c2ef10 | 1,162 | cpp | C++ | Luogu/P1541.cpp | SsorryQaQ/Algorithm-competition | ee2ed79438ecaf15015d9b043d3e099cfa3829c5 | [
"MIT"
] | 1 | 2019-12-01T01:37:56.000Z | 2019-12-01T01:37:56.000Z | Luogu/P1541.cpp | SsorryQaQ/Algorithm-competition | ee2ed79438ecaf15015d9b043d3e099cfa3829c5 | [
"MIT"
] | null | null | null | Luogu/P1541.cpp | SsorryQaQ/Algorithm-competition | ee2ed79438ecaf15015d9b043d3e099cfa3829c5 | [
"MIT"
] | null | null | null | #include <iostream>
#include <cstring>
using namespace std;
const int maxn = 350 + 10;
int a[maxn];
int f[44][44][44][44];
int main(){
int n,m; cin >> n >> m;
for (int i=1;i<=n;i++) cin >> a[i];
int i_max=0,j_max=0,m_max=0,n_max=0;
int tmp;
for (int i=0;i<m;i++){
cin >> tmp;
switch (tmp)
{
cas... | 22.346154 | 61 | 0.418244 | SsorryQaQ |
07734d6eb87d204dc41470bb751b805381efb6f9 | 3,836 | cpp | C++ | OrionUO/RenderWorldObject.cpp | shiryux/UOA-OrionUO | fd81d57db51efd39ecfaaa19fd0fb881bde8fef8 | [
"MIT"
] | 1 | 2019-04-13T09:30:27.000Z | 2019-04-13T09:30:27.000Z | OrionUO/RenderWorldObject.cpp | shiryux/UOA-OrionUO | fd81d57db51efd39ecfaaa19fd0fb881bde8fef8 | [
"MIT"
] | null | null | null | OrionUO/RenderWorldObject.cpp | shiryux/UOA-OrionUO | fd81d57db51efd39ecfaaa19fd0fb881bde8fef8 | [
"MIT"
] | null | null | null | // This is an open source non-commercial project. Dear PVS-Studio, please check it.
// PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com
/***********************************************************************************
**
** RenderWorldObject.cpp
**
** Copyright (C) August 2016 Hotride
**
***... | 29.507692 | 183 | 0.480448 | shiryux |
07762fcab185bbc892fa0ff0ec7e99487e516d73 | 1,067 | cpp | C++ | 76.最小覆盖子串/minWindow.cpp | YichengZhong/Top-Interview-Questions | 124828d321f482a0eaa30012b3706267487bfd24 | [
"MIT"
] | 1 | 2019-10-21T14:40:39.000Z | 2019-10-21T14:40:39.000Z | 76.最小覆盖子串/minWindow.cpp | YichengZhong/Top-Interview-Questions | 124828d321f482a0eaa30012b3706267487bfd24 | [
"MIT"
] | null | null | null | 76.最小覆盖子串/minWindow.cpp | YichengZhong/Top-Interview-Questions | 124828d321f482a0eaa30012b3706267487bfd24 | [
"MIT"
] | 1 | 2020-11-04T07:33:34.000Z | 2020-11-04T07:33:34.000Z | class Solution {
public:
string minWindow(string s, string t) {
// 记录最短子串的开始位置和长度
int start = 0, minLen = INT_MAX;
int left = 0, right = 0;
unordered_map<char, int> window;
unordered_map<char, int> needs;
for (char c : t)
needs[c]++;
int match = 0;
while (... | 22.702128 | 59 | 0.390815 | YichengZhong |
0779f379202ff8c99fa17c593747c149c833e39e | 2,328 | cpp | C++ | GameMath/Transform.cpp | TimothyJR/GameMath | 7f39ecd7d4b5d8a7b033410949a1fe6668cd6edc | [
"MIT"
] | null | null | null | GameMath/Transform.cpp | TimothyJR/GameMath | 7f39ecd7d4b5d8a7b033410949a1fe6668cd6edc | [
"MIT"
] | null | null | null | GameMath/Transform.cpp | TimothyJR/GameMath | 7f39ecd7d4b5d8a7b033410949a1fe6668cd6edc | [
"MIT"
] | null | null | null | #include "Transform.h"
Transform::Transform() :
position(DirectX::XMFLOAT3(0.0f, 0.0f, 0.0f)),
rotation(Quaternion()),
scale(DirectX::XMFLOAT3(1.0f, 1.0f, 1.0f)),
isDirty(false)
{
DirectX::XMStoreFloat4x4(&worldMatrix, DirectX::XMMatrixIdentity());
}
Transform::Transform(const DirectX::XMFLOAT3& pos) :
position... | 22.823529 | 150 | 0.737973 | TimothyJR |
077f86497a3aa089bd511cb9348ba67295de921d | 17,541 | cpp | C++ | PopSyn/Control.cpp | kravitz/transims4 | ea0848bf3dc71440d54724bb3ecba3947b982215 | [
"NASA-1.3"
] | 2 | 2018-04-27T11:07:02.000Z | 2020-04-24T06:53:21.000Z | PopSyn/Control.cpp | idkravitz/transims4 | ea0848bf3dc71440d54724bb3ecba3947b982215 | [
"NASA-1.3"
] | null | null | null | PopSyn/Control.cpp | idkravitz/transims4 | ea0848bf3dc71440d54724bb3ecba3947b982215 | [
"NASA-1.3"
] | null | null | null | //*********************************************************
// Control.cpp - process the control parameters
//*********************************************************
#include "PopSyn.hpp"
#include "Utility.hpp"
#include "Location_File.hpp"
#include "Data_Range.hpp"
//-----------------------------------------------... | 25.757709 | 99 | 0.648823 | kravitz |
07800a02396d479ce88c216859ac1d78b0e0a342 | 10,674 | cc | C++ | example/efvi_ping.cc | MengRao/pollnet | 471af1cf4828ab17de428fd0e56f0b670e5c8804 | [
"MIT"
] | 95 | 2019-05-16T10:06:39.000Z | 2022-03-09T03:28:45.000Z | example/efvi_ping.cc | itana/pollnet | 471af1cf4828ab17de428fd0e56f0b670e5c8804 | [
"MIT"
] | 4 | 2019-07-24T02:35:49.000Z | 2021-06-06T11:01:15.000Z | example/efvi_ping.cc | itana/pollnet | 471af1cf4828ab17de428fd0e56f0b670e5c8804 | [
"MIT"
] | 40 | 2019-05-31T07:14:38.000Z | 2022-01-26T03:50:34.000Z | #include <bits/stdc++.h>
#include <sys/ioctl.h>
#include <net/if.h>
#include "../Efvi.h"
#include "Statistic.h"
#include "timestamp.h"
using namespace std;
#pragma pack(push, 1)
struct ci_ether_hdr
{
uint8_t ether_dhost[6];
uint8_t ether_shost[6];
uint16_t ether_type;
};
struct ci_ip4_hdr
{
uint8_t ip_ihl_ve... | 27.229592 | 120 | 0.61083 | MengRao |
0783f0ce779dc67daf3594523e83af02ca16d70b | 9,764 | cpp | C++ | print/XPSDrvSmpl/src/filters/nup/nuptprps.cpp | ixjf/Windows-driver-samples | 38985ba91feb685095754775e101389ad90c2aa6 | [
"MS-PL"
] | 3,084 | 2015-03-18T04:40:32.000Z | 2019-05-06T17:14:33.000Z | print/XPSDrvSmpl/src/filters/nup/nuptprps.cpp | ixjf/Windows-driver-samples | 38985ba91feb685095754775e101389ad90c2aa6 | [
"MS-PL"
] | 275 | 2015-03-19T18:44:41.000Z | 2019-05-06T14:13:26.000Z | print/XPSDrvSmpl/src/filters/nup/nuptprps.cpp | ixjf/Windows-driver-samples | 38985ba91feb685095754775e101389ad90c2aa6 | [
"MS-PL"
] | 3,091 | 2015-03-19T00:08:54.000Z | 2019-05-06T16:42:01.000Z | /*++
Copyright (c) 2005 Microsoft Corporation
All rights reserved.
THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF
ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO
THE IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A
PARTICULAR PURPOSE.
File Name:
nupt... | 21.697778 | 98 | 0.63898 | ixjf |
0785132292fae316daa5ecb6d293485c1faf8edb | 1,772 | cpp | C++ | engine/kotek.render.gl3/src/kotek_render_shader_manager.cpp | wh1t3lord/kotek | 1e3eb61569974538661ad121ed8eb28c9e608ae6 | [
"Apache-2.0"
] | null | null | null | engine/kotek.render.gl3/src/kotek_render_shader_manager.cpp | wh1t3lord/kotek | 1e3eb61569974538661ad121ed8eb28c9e608ae6 | [
"Apache-2.0"
] | null | null | null | engine/kotek.render.gl3/src/kotek_render_shader_manager.cpp | wh1t3lord/kotek | 1e3eb61569974538661ad121ed8eb28c9e608ae6 | [
"Apache-2.0"
] | null | null | null | #include "../include/kotek_render_shader_manager.h"
#include <kotek.core/include/kotek_main_manager.h>
namespace Kotek
{
namespace Render
{
namespace gl
{
ktkRenderShaderManager::ktkRenderShaderManager(
Core::ktkMainManager* p_main_manager) :
m_p_main_manager(p_main_manager)
{
KOTEK_ASSERT(p_ma... | 23.626667 | 71 | 0.723476 | wh1t3lord |
078562ffd29351c4cf385cbef1718d1807ed176e | 1,083 | hpp | C++ | libs/systems/impl/include/sge/systems/impl/audio/loader.hpp | cpreh/spacegameengine | 313a1c34160b42a5135f8223ffaa3a31bc075a01 | [
"BSL-1.0"
] | 2 | 2016-01-27T13:18:14.000Z | 2018-05-11T01:11:32.000Z | libs/systems/impl/include/sge/systems/impl/audio/loader.hpp | cpreh/spacegameengine | 313a1c34160b42a5135f8223ffaa3a31bc075a01 | [
"BSL-1.0"
] | null | null | null | libs/systems/impl/include/sge/systems/impl/audio/loader.hpp | cpreh/spacegameengine | 313a1c34160b42a5135f8223ffaa3a31bc075a01 | [
"BSL-1.0"
] | 3 | 2018-05-11T01:11:34.000Z | 2021-04-24T19:47:45.000Z | // Copyright Carl Philipp Reh 2006 - 2019.
// 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 SGE_SYSTEMS_IMPL_AUDIO_LOADER_HPP_INCLUDED
#define SGE_SYSTEMS_IMPL_AUDIO_LOADER_HPP_INCLUD... | 25.186047 | 77 | 0.748846 | cpreh |
078aa94dd507ef6dde6c59d46d6358e940b28d32 | 540 | cpp | C++ | daily/42.cpp | tuket/challenges | 456979020c78dfcae2f8681245000bb64a6aaf38 | [
"Unlicense"
] | null | null | null | daily/42.cpp | tuket/challenges | 456979020c78dfcae2f8681245000bb64a6aaf38 | [
"Unlicense"
] | null | null | null | daily/42.cpp | tuket/challenges | 456979020c78dfcae2f8681245000bb64a6aaf38 | [
"Unlicense"
] | null | null | null | #include <iostream>
#include <vector>
#include <unordered_map>
using namespace std;
class C
{
public:
C(const vector<int>& v, int k)
: v(v), k(k), N(v.size()) {}
vector<int> calcInds()
{
calcInds(N, k);
auto it = D.find({N, k});
if(it != D.end())
return it-... | 15 | 49 | 0.494444 | tuket |
078c5603d82ca51d456512be857cb93264c5ac18 | 174 | cpp | C++ | STL/list.cpp | parvsharmaa/Programming-Basics | 9955206887dfdcaf9ddb9b5d927c1fcd0d8fe182 | [
"MIT"
] | 1 | 2021-10-01T09:49:15.000Z | 2021-10-01T09:49:15.000Z | STL/list.cpp | parvsharmaa/Programming-Basics | 9955206887dfdcaf9ddb9b5d927c1fcd0d8fe182 | [
"MIT"
] | null | null | null | STL/list.cpp | parvsharmaa/Programming-Basics | 9955206887dfdcaf9ddb9b5d927c1fcd0d8fe182 | [
"MIT"
] | null | null | null | #include<iostream>
#include<list>
using namespace std;
int main(){
list <int> l;
l.push_back(23);
l.push_front(34);
for (int i:l){
cout<<i;
}
return 0;
} | 14.5 | 21 | 0.591954 | parvsharmaa |
0795c6ea1b727334d5d63dc6e3de4f8ee1fc38b3 | 8,826 | inl | C++ | Libraries/SpatialPartition/StaticAabbTree.inl | RyanTylerRae/WelderEngineRevamp | 3efdad59dd1821ddb1c09b59520e8e2d7023bb10 | [
"MIT"
] | 3 | 2022-02-11T10:34:33.000Z | 2022-02-24T17:44:17.000Z | Libraries/SpatialPartition/StaticAabbTree.inl | RyanTylerRae/WelderEngineRevamp | 3efdad59dd1821ddb1c09b59520e8e2d7023bb10 | [
"MIT"
] | null | null | null | Libraries/SpatialPartition/StaticAabbTree.inl | RyanTylerRae/WelderEngineRevamp | 3efdad59dd1821ddb1c09b59520e8e2d7023bb10 | [
"MIT"
] | null | null | null | // MIT Licensed (see LICENSE.md).
namespace Zero
{
template <typename ClientDataType>
StaticAabbTree<ClientDataType>::StaticAabbTree()
{
mRoot = nullptr;
mProxyCount = 0;
mConstructMethod = TopDown;
mStopCriteria = XPrimitives;
SetPartitionMethod(PartitionMethods::MinimizeVolumeSum);
}
template <typename ... | 26.504505 | 92 | 0.717086 | RyanTylerRae |
079ba79f20fd64babffa1a3b392a0e4ae1ab59cd | 94,102 | cpp | C++ | elena_lang/elenasrc2/tools/asm2bin/x86assembler.cpp | bencz/cpu-simulator | f704c1d12156dfd79a4b07d8210141f1acff2d38 | [
"Apache-2.0"
] | 2 | 2015-12-13T07:19:01.000Z | 2018-06-19T09:13:55.000Z | elena_lang/elenasrc2/tools/asm2bin/x86assembler.cpp | bencz/cpu-simulator | f704c1d12156dfd79a4b07d8210141f1acff2d38 | [
"Apache-2.0"
] | null | null | null | elena_lang/elenasrc2/tools/asm2bin/x86assembler.cpp | bencz/cpu-simulator | f704c1d12156dfd79a4b07d8210141f1acff2d38 | [
"Apache-2.0"
] | null | null | null | //---------------------------------------------------------------------------
// E L E N A P r o j e c t: ELENA Assembler Compiler
//
// This file contains the implementation of ELENA x86Compiler
// classes.
// (C)2005-2015, by Alexei Rakov
//--------------------------... | 29.703914 | 140 | 0.651856 | bencz |
079f810072672f9f64d6aa13c51d4b2b16c31bcc | 2,425 | cpp | C++ | tranquil/src/tranquil/native.cpp | VoltusApp/BoxJS | c647dfc2ade662fa9d8142d6b89636760a717eca | [
"MIT"
] | 3 | 2020-11-22T03:40:42.000Z | 2020-11-25T14:01:19.000Z | tranquil/src/tranquil/native.cpp | VoltusApp/BoxJS | c647dfc2ade662fa9d8142d6b89636760a717eca | [
"MIT"
] | 1 | 2021-03-02T00:28:12.000Z | 2021-03-05T00:32:26.000Z | tranquil/src/tranquil/native.cpp | ScytheApp/tranquil | c647dfc2ade662fa9d8142d6b89636760a717eca | [
"MIT"
] | null | null | null | #include "native.h"
#include "runtime.h"
namespace tranquil {
thread_local JsValueRef Native::jsonStringify = JS_INVALID_REFERENCE;
thread_local JsValueRef Native::jsonParse = JS_INVALID_REFERENCE;
thread_local JsValueRef Native::objectAssign = JS_INVALID_REFERENCE;
thread_local JsValueRef Native::obje... | 32.77027 | 109 | 0.672165 | VoltusApp |
07a3640ecbbeb60b3ce81e2d1926bb762ae31361 | 66 | hpp | C++ | include/simple.hpp | freesurfer-rge/gcovr-learn | 41222e418b8981c9af18526e40b24e980f0aa445 | [
"Unlicense"
] | null | null | null | include/simple.hpp | freesurfer-rge/gcovr-learn | 41222e418b8981c9af18526e40b24e980f0aa445 | [
"Unlicense"
] | null | null | null | include/simple.hpp | freesurfer-rge/gcovr-learn | 41222e418b8981c9af18526e40b24e980f0aa445 | [
"Unlicense"
] | null | null | null | #pragma once
int plusone(const int i);
int plustwo(const int i);
| 13.2 | 25 | 0.727273 | freesurfer-rge |
07a5675edd0836e7d6688080b0ab6f30b739a6e5 | 6,884 | cc | C++ | examples.cc | unclearness/currender | e3397be6b9435e02f301b5685e09c1a208108e66 | [
"BSD-3-Clause"
] | 26 | 2019-01-28T15:57:56.000Z | 2021-02-21T21:07:13.000Z | examples.cc | unclearness/currender | e3397be6b9435e02f301b5685e09c1a208108e66 | [
"BSD-3-Clause"
] | 4 | 2019-08-22T12:47:47.000Z | 2019-10-12T11:23:50.000Z | examples.cc | unclearness/currender | e3397be6b9435e02f301b5685e09c1a208108e66 | [
"BSD-3-Clause"
] | 2 | 2020-11-04T10:10:48.000Z | 2021-09-10T03:13:18.000Z | /*
* Copyright (C) 2019, unclearness
* All rights reserved.
*/
#include <stdio.h>
#include <fstream>
#include <iostream>
#include <vector>
#include "currender/rasterizer.h"
#include "currender/raytracer.h"
#include "ugu/util.h"
// #define USE_RASTERIZER
using currender::Camera;
using currender::Depth2Gray;
using... | 30.869955 | 80 | 0.693492 | unclearness |
07a95f224b3371ce2104a61033ecab97bb60b63c | 4,255 | cpp | C++ | src/stl_eval_mex.cpp | decyphir/RobonTL | 4ac7beab52cd8128c9ce3fd9c9439860327353dc | [
"BSD-3-Clause"
] | 1 | 2022-03-09T18:28:18.000Z | 2022-03-09T18:28:18.000Z | src/stl_eval_mex.cpp | decyphir/RobonTL | 4ac7beab52cd8128c9ce3fd9c9439860327353dc | [
"BSD-3-Clause"
] | null | null | null | src/stl_eval_mex.cpp | decyphir/RobonTL | 4ac7beab52cd8128c9ce3fd9c9439860327353dc | [
"BSD-3-Clause"
] | null | null | null | // include stuff
#include "mex.h"
#include <string>
#include <iostream>
#include <sstream>
#include "stl_driver.h"
using namespace std;
using namespace RobonTL;
void mexFunction(int nlhs, mxArray *plhs[],
int nrhs, const mxArray *prhs[] ) {
stringstream fcout;
if (nrhs<=1)
mexE... | 28.557047 | 131 | 0.499882 | decyphir |
07adf16cc09b9135571b7d7b52ddb29bd6456f9e | 93,402 | cpp | C++ | Compiler/ibc_parser.cpp | yurablok/IndexBuffers | c5efd3758d63968a5d48c7db3bec2d3c3a28551a | [
"BSL-1.0"
] | 4 | 2019-12-30T22:02:41.000Z | 2021-01-15T08:52:08.000Z | Compiler/ibc_parser.cpp | yurablok/IndexBuffers | c5efd3758d63968a5d48c7db3bec2d3c3a28551a | [
"BSL-1.0"
] | null | null | null | Compiler/ibc_parser.cpp | yurablok/IndexBuffers | c5efd3758d63968a5d48c7db3bec2d3c3a28551a | [
"BSL-1.0"
] | null | null | null | #include "stdafx.h"
#include "ibc.h"
#include "Utf8Ucs2Converter.h"
namespace {
//constexpr std::string_view strEndl("\n"); //C++17
static const std::string strEndl("\n");
}
bool INBCompiler::loadFileToLines(const std::string& filename, lines_t& lines,
bool isFromUtf8) {
lines.clear();
#ifdef _WIN32
... | 36.917787 | 102 | 0.406769 | yurablok |
07ae1a03a03120e2b888ed655abdabd6a3d9035b | 1,251 | cpp | C++ | course_project/surfacesettingswidget.cpp | Dukend/Computer-graphics | b8a575f3e56e49399d2be1c62ebb96e85236971f | [
"MIT"
] | null | null | null | course_project/surfacesettingswidget.cpp | Dukend/Computer-graphics | b8a575f3e56e49399d2be1c62ebb96e85236971f | [
"MIT"
] | null | null | null | course_project/surfacesettingswidget.cpp | Dukend/Computer-graphics | b8a575f3e56e49399d2be1c62ebb96e85236971f | [
"MIT"
] | null | null | null | #include "surfacesettingswidget.h"
#include<QLabel>
SurfaceSettingsWidget::SurfaceSettingsWidget(RuledSurfaceByCardinalSpline* s) :
vLayout(this),
sbK(Qt::Horizontal),
sbPrecision(Qt::Horizontal),
fLineWidget(&s->fLine),
sLineWidget(&s->sLine)
{
sbPrecision.setValue(s->getPrecision());
... | 41.7 | 95 | 0.673062 | Dukend |
07b678dfa5a56f74c76015fa405bcfa1ead136fd | 782 | cpp | C++ | hooks/tech_target_check_inject.cpp | Lucifirius/yzoriansteampunk | 7b629ffd9740f0ff3db1fb8cffe07f45b7528854 | [
"Unlicense"
] | null | null | null | hooks/tech_target_check_inject.cpp | Lucifirius/yzoriansteampunk | 7b629ffd9740f0ff3db1fb8cffe07f45b7528854 | [
"Unlicense"
] | null | null | null | hooks/tech_target_check_inject.cpp | Lucifirius/yzoriansteampunk | 7b629ffd9740f0ff3db1fb8cffe07f45b7528854 | [
"Unlicense"
] | null | null | null | //Injector source file for the Tech Target Check hook module.
#include "tech_target_check.h"
#include <hook_tools.h>
namespace {
const u32 Func_GetTechUseErrorMessage = 0x00491E80;
void __declspec(naked) getTechUseErrorMessageWrapper() {
static CUnit* target;
static u8 castingPlayer;
static u16 techId;
static u... | 17 | 81 | 0.749361 | Lucifirius |
07b7295d2984cb837db8be27a3e1bd8d4a7f6760 | 727 | hh | C++ | cc/log.hh | acorg/acmacs-chart-2 | 0e95cf11ee71d9c383a0ef5cc619edc8afbeda76 | [
"MIT"
] | null | null | null | cc/log.hh | acorg/acmacs-chart-2 | 0e95cf11ee71d9c383a0ef5cc619edc8afbeda76 | [
"MIT"
] | null | null | null | cc/log.hh | acorg/acmacs-chart-2 | 0e95cf11ee71d9c383a0ef5cc619edc8afbeda76 | [
"MIT"
] | null | null | null | #pragma once
#include "acmacs-virus/log.hh"
// ----------------------------------------------------------------------
#pragma GCC diagnostic push
#ifdef __clang__
#pragma GCC diagnostic ignored "-Wexit-time-destructors"
#pragma GCC diagnostic ignored "-Wglobal-constructors"
#endif
namespace acmacs::log::inline v1
{... | 25.964286 | 73 | 0.579092 | acorg |
07b76dbe176da49245ca66c029a033b3c2de806f | 1,226 | cpp | C++ | ema-tools/estimate-front-mapping/src/bin/main.cpp | ahewer/mri-shape-tools | 4268499948f1330b983ffcdb43df62e38ca45079 | [
"MIT"
] | null | null | null | ema-tools/estimate-front-mapping/src/bin/main.cpp | ahewer/mri-shape-tools | 4268499948f1330b983ffcdb43df62e38ca45079 | [
"MIT"
] | 2 | 2017-05-29T09:43:01.000Z | 2017-05-29T09:50:05.000Z | ema-tools/estimate-front-mapping/src/bin/main.cpp | ahewer/mri-shape-tools | 4268499948f1330b983ffcdb43df62e38ca45079 | [
"MIT"
] | 4 | 2017-05-17T11:56:02.000Z | 2022-03-05T09:12:24.000Z | #include <cfloat>
#include <json/json.h>
#include "ema/Ema.h"
#include "settings.h"
void output_json(
const arma::vec& front,
const std::string& outputFile
) {
Json::Value root(Json::arrayValue);
Json::Value translate(Json::objectValue);
translate["action"... | 18.298507 | 81 | 0.578303 | ahewer |
07b8750d333b6b2b84e6aa5e75fe9629aa2427da | 2,840 | hpp | C++ | lib/asio-fiber/include/pushkin/asio/wait.hpp | zmij/pg_async | 08e4078588827c87297168102d7ed6b9807ab818 | [
"Artistic-2.0"
] | 25 | 2016-02-12T14:06:23.000Z | 2021-12-20T02:45:35.000Z | lib/asio-fiber/include/pushkin/asio/wait.hpp | zmij/wire | 9981eb9ea182fc49ef7243eed26b9d37be70a395 | [
"Artistic-2.0"
] | 9 | 2016-11-21T08:49:19.000Z | 2019-07-02T10:52:35.000Z | lib/asio-fiber/include/pushkin/asio/wait.hpp | zmij/pg_async | 08e4078588827c87297168102d7ed6b9807ab818 | [
"Artistic-2.0"
] | 5 | 2018-03-16T11:46:23.000Z | 2022-03-06T06:58:57.000Z | /*
* wait.hpp
*
* Created on: Mar 26, 2017
* Author: zmij
*/
#ifndef PUSHKIN_ASIO_FIBER_INCLUDE_PUSHKIN_ASIO_WAIT_HPP_
#define PUSHKIN_ASIO_FIBER_INCLUDE_PUSHKIN_ASIO_WAIT_HPP_
#include <pushkin/asio/asio_config.hpp>
#include <thread>
#include <type_traits>
#ifdef WITH_BOOST_FIBERS
#include <boost/fiber/f... | 20.431655 | 91 | 0.638732 | zmij |
07c12e5fc05cde93b56327559d6e842cdcd107ba | 7,340 | cpp | C++ | frameworks/net/modules/basic/dmzNetModulePacketCodecBasicHeaderCodec.cpp | shillcock/dmz | 02174b45089e12cd7f0840d5259a00403cd1ccff | [
"MIT"
] | 2 | 2015-11-05T03:03:40.000Z | 2016-02-03T21:50:40.000Z | frameworks/net/modules/basic/dmzNetModulePacketCodecBasicHeaderCodec.cpp | dmzgroup/dmz | fc2d9ddcb04ed71f4106b8d33539529807b3dea6 | [
"MIT"
] | null | null | null | frameworks/net/modules/basic/dmzNetModulePacketCodecBasicHeaderCodec.cpp | dmzgroup/dmz | fc2d9ddcb04ed71f4106b8d33539529807b3dea6 | [
"MIT"
] | null | null | null | #include "dmzNetModulePacketCodecBasic.h"
#include <dmzRuntimeConfig.h>
#include <dmzRuntimeConfigToTypesBase.h>
#include <dmzSystemMarshal.h>
#include <dmzSystemUnmarshal.h>
using namespace dmz;
namespace {
template <class T> class constElement :
public NetModulePacketCodecBasic::HeaderElement {
... | 27.185185 | 85 | 0.576431 | shillcock |
07c1f6c25e34a1a749416080cd3fc56d29aad8fb | 1,681 | hpp | C++ | src/shader.hpp | juliantorreno/opengl-demo | c199c487907833e52ff5c3083aed51956e6ac693 | [
"MIT"
] | 2 | 2018-01-06T19:27:07.000Z | 2018-10-11T07:07:10.000Z | src/shader.hpp | jtorreno/opengl-demo | c199c487907833e52ff5c3083aed51956e6ac693 | [
"MIT"
] | 8 | 2018-01-03T13:45:25.000Z | 2018-01-08T01:35:49.000Z | src/shader.hpp | juliantorreno/opengl-demo | c199c487907833e52ff5c3083aed51956e6ac693 | [
"MIT"
] | null | null | null | #pragma once
#include <fstream>
#include <stdexcept>
#include <sstream>
#include <string>
#include <utility>
#include <tdpi/tdpi.h>
namespace ogld {
enum class shader_type : GLenum {
vertex = GL_VERTEX_SHADER,
fragment = GL_FRAGMENT_SHADER
};
template <shader_type S>
class shader {
... | 29.491228 | 129 | 0.609161 | juliantorreno |
07c54165aa5de8b713ba86c9048fe5859d97774b | 9,495 | cpp | C++ | CsPlugin/Source/CsCore/Public/Coordinators/ConsoleCommand/CsCoordinator_ConsoleCommand.cpp | closedsum/core | c3cae44a177b9684585043a275130f9c7b67fef0 | [
"Unlicense"
] | 2 | 2019-03-17T10:43:53.000Z | 2021-04-20T21:24:19.000Z | CsPlugin/Source/CsCore/Public/Coordinators/ConsoleCommand/CsCoordinator_ConsoleCommand.cpp | closedsum/core | c3cae44a177b9684585043a275130f9c7b67fef0 | [
"Unlicense"
] | null | null | null | CsPlugin/Source/CsCore/Public/Coordinators/ConsoleCommand/CsCoordinator_ConsoleCommand.cpp | closedsum/core | c3cae44a177b9684585043a275130f9c7b67fef0 | [
"Unlicense"
] | null | null | null | // Copyright 2017-2021 Closed Sum Games, LLC. All Rights Reserved.
#include "Coordinators/ConsoleCommand/CsCoordinator_ConsoleCommand.h"
#include "CsCore.h"
// Managers
#include "Managers/ConsoleCommand/CsManager_ConsoleCommand.h"
#if WITH_EDITOR
#include "Managers/Singleton/CsGetManagerSingleton.h"
#include "Manager... | 31.755853 | 284 | 0.802844 | closedsum |
07dec20418727dbf448c3f4eae30ba425b38570e | 2,484 | cpp | C++ | src/optimizer/memo.cpp | AhnJaeChan/terrier | 21ef01353439cddb8643b5fc2a5a304813809585 | [
"MIT"
] | 1 | 2022-01-02T06:58:50.000Z | 2022-01-02T06:58:50.000Z | src/optimizer/memo.cpp | AhnJaeChan/terrier | 21ef01353439cddb8643b5fc2a5a304813809585 | [
"MIT"
] | 7 | 2020-04-06T19:31:12.000Z | 2020-05-12T23:05:09.000Z | src/optimizer/memo.cpp | AhnJaeChan/terrier | 21ef01353439cddb8643b5fc2a5a304813809585 | [
"MIT"
] | 1 | 2020-11-24T10:00:01.000Z | 2020-11-24T10:00:01.000Z | #include <string>
#include <unordered_set>
#include <utility>
#include "optimizer/group_expression.h"
#include "optimizer/logical_operators.h"
#include "optimizer/memo.h"
namespace terrier::optimizer {
GroupExpression *Memo::InsertExpression(GroupExpression *gexpr, group_id_t target_group, bool enforced) {
// If l... | 32.684211 | 105 | 0.702496 | AhnJaeChan |
07e0d2f66cee56c96c470eec5d80a9eedfcaac35 | 2,148 | cc | C++ | src/solvers/test/test_SpectrumPinCell.cc | baklanovp/libdetran | 820efab9d03ae425ccefb9520bdb6c086fdbf939 | [
"MIT"
] | 4 | 2015-03-07T16:20:23.000Z | 2020-02-10T13:40:16.000Z | src/solvers/test/test_SpectrumPinCell.cc | baklanovp/libdetran | 820efab9d03ae425ccefb9520bdb6c086fdbf939 | [
"MIT"
] | 3 | 2018-02-27T21:24:22.000Z | 2020-12-16T00:56:44.000Z | src/solvers/test/test_SpectrumPinCell.cc | baklanovp/libdetran | 820efab9d03ae425ccefb9520bdb6c086fdbf939 | [
"MIT"
] | 9 | 2015-03-07T16:20:26.000Z | 2022-01-29T00:14:23.000Z | //----------------------------------*-C++-*-----------------------------------//
/**
* @file test_SpectrumPinCell.cc
* @brief Test of SpectrumPinCell
* @note Copyright(C) 2012-2013 Jeremy Roberts
*/
//----------------------------------------------------------------------------//
// LIST OF TEST FUNCTIONS
#def... | 29.833333 | 80 | 0.485102 | baklanovp |
07e3564d4f38dad566d0783633c65628196224bc | 840 | cpp | C++ | S11/MemPtr.cpp | stevekeol/-Thinking-in-Cpp-PracticeCode | 5b147e704015bbda364ab069f1de58dcef7ab14a | [
"MIT"
] | 2 | 2017-06-20T12:16:30.000Z | 2021-11-12T12:06:57.000Z | S11/MemPtr.cpp | stevekeol/-Thinking-in-Cpp-PracticeCode | 5b147e704015bbda364ab069f1de58dcef7ab14a | [
"MIT"
] | null | null | null | S11/MemPtr.cpp | stevekeol/-Thinking-in-Cpp-PracticeCode | 5b147e704015bbda364ab069f1de58dcef7ab14a | [
"MIT"
] | null | null | null | //: S11:MemPtr.cpp
// From "Thinking in C++, 2nd Edition, Volume 1, Annotated Solutions Guide"
// by Chuck Allison, (c) 2001 MindView, Inc. all rights reserved
// Available at www.BruceEckel.com.
#include <iostream>
using namespace std;
class HasDouble {
public:
double x;
HasDouble(double x) {
... | 19.090909 | 76 | 0.528571 | stevekeol |
07e4a3da52e2c0a5ab420beb15504e6a372b045a | 10,185 | cpp | C++ | src/apps.cpp | nicovanbentum/Raekor | 131e68490aa119213467ef295d3bfb94e5dd7046 | [
"MIT"
] | 6 | 2019-07-16T05:39:18.000Z | 2022-02-17T10:10:18.000Z | src/apps.cpp | nicovanbentum/Raekor | 131e68490aa119213467ef295d3bfb94e5dd7046 | [
"MIT"
] | null | null | null | src/apps.cpp | nicovanbentum/Raekor | 131e68490aa119213467ef295d3bfb94e5dd7046 | [
"MIT"
] | null | null | null | #include "pch.h"
#include "apps.h"
#include "input.h"
#include "platform/OS.h"
#include "gui/viewportWidget.h"
namespace Raekor {
RayTraceApp::RayTraceApp() : Application(RendererFlags::OPENGL), renderer(window, viewport) {
// initialize ImGui
IMGUI_CHECKVERSION();
ImGui::CreateContext();
ImGui::Styl... | 36.636691 | 132 | 0.658616 | nicovanbentum |
2e387b9b1477aa58fabeff2522034ab79a4ee96d | 3,500 | cpp | C++ | part3/Task3.3/Task3.3.cpp | Matvey1703/Homework | 4599a5a5a1bdaeb819eee13a6233c72ce544c179 | [
"Apache-2.0"
] | 1 | 2020-09-30T17:17:41.000Z | 2020-09-30T17:17:41.000Z | part3/Task3.3/Task3.3.cpp | Matvey1703/Homework | 4599a5a5a1bdaeb819eee13a6233c72ce544c179 | [
"Apache-2.0"
] | null | null | null | part3/Task3.3/Task3.3.cpp | Matvey1703/Homework | 4599a5a5a1bdaeb819eee13a6233c72ce544c179 | [
"Apache-2.0"
] | null | null | null | #include <stdio.h>
#include <stdlib.h>
void swap(int* firstElement, int* secondElement)
{
int tmp = *firstElement;
*firstElement = *secondElement;
*secondElement = tmp;
}
void insertionSort(int* array, int lo, int hi)
{
for (int i = lo; i <= hi; i++)
{
for (int j = i; j > lo && array[j - 1] > array[j]; j--)
... | 18.518519 | 88 | 0.618 | Matvey1703 |
2e3912403bfea7abaf24650a5ff50ac2e975ceb9 | 2,955 | cpp | C++ | DataConfig/Source/DataConfigCore/Private/DataConfig/Source/DcHighlightFormatter.cpp | slowburn-dev/DataConfig | cd4a494b5d83fae40cad094cf33fda0c7c11fde0 | [
"MIT"
] | 45 | 2021-04-03T03:49:31.000Z | 2022-03-17T07:52:06.000Z | DataConfig/Source/DataConfigCore/Private/DataConfig/Source/DcHighlightFormatter.cpp | slowburn-dev/DataConfig | cd4a494b5d83fae40cad094cf33fda0c7c11fde0 | [
"MIT"
] | null | null | null | DataConfig/Source/DataConfigCore/Private/DataConfig/Source/DcHighlightFormatter.cpp | slowburn-dev/DataConfig | cd4a494b5d83fae40cad094cf33fda0c7c11fde0 | [
"MIT"
] | 11 | 2021-04-14T20:37:01.000Z | 2022-03-21T01:09:01.000Z | #include "DataConfig/Source/DcHighlightFormatter.h"
template<class CharType>
FString THightlightFormatter<CharType>::FormatHighlight(const SourceRef& SpanRef, const FDcSourceLocation& Loc)
{
if (!SpanRef.IsValid())
return TEXT("");
LineHighlight = FindLine(SpanRef);
check(LineHighlight.IsValid());
{
SourceRe... | 25.921053 | 111 | 0.679526 | slowburn-dev |
2e3b3256c4d881f86232d09e3bd6e04254edd616 | 38,657 | hpp | C++ | include/jau/octets.hpp | sgothel/jaucpp | c2dbc8cb9fc2752afdbe2b4734650af0ac3fdd4d | [
"MIT"
] | 1 | 2020-12-02T18:14:10.000Z | 2020-12-02T18:14:10.000Z | include/jau/octets.hpp | sgothel/jaucpp | c2dbc8cb9fc2752afdbe2b4734650af0ac3fdd4d | [
"MIT"
] | null | null | null | include/jau/octets.hpp | sgothel/jaucpp | c2dbc8cb9fc2752afdbe2b4734650af0ac3fdd4d | [
"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... | 41.300214 | 165 | 0.526063 | sgothel |
2e3e21e833d140c0d9eeb6df5e9de15461cf378f | 4,876 | cpp | C++ | source/rho/crypt/tWritableAES.cpp | Rhobota/librho | d540cba6227e15ac6ef3dcb6549ed9557f6fee04 | [
"BSD-3-Clause"
] | 1 | 2016-09-22T03:27:33.000Z | 2016-09-22T03:27:33.000Z | source/rho/crypt/tWritableAES.cpp | Rhobota/librho | d540cba6227e15ac6ef3dcb6549ed9557f6fee04 | [
"BSD-3-Clause"
] | null | null | null | source/rho/crypt/tWritableAES.cpp | Rhobota/librho | d540cba6227e15ac6ef3dcb6549ed9557f6fee04 | [
"BSD-3-Clause"
] | null | null | null | #include <rho/crypt/tWritableAES.h>
#include <rho/crypt/tSecureRandom.h>
#include <rho/eRho.h>
#include <cstdlib>
namespace rho
{
namespace crypt
{
tWritableAES::tWritableAES(iWritable* internalStream, nOperationModeAES opmode,
const u8 key[], nKeyLengthAES keylen)
: m_stream(internalStream), m_bu... | 27.704545 | 97 | 0.577728 | Rhobota |
2e40e02b0327e2f3966f8fc0882c2e21525bba8e | 6,938 | hpp | C++ | src/ascent/runtimes/expressions/ascent_derived_jit.hpp | goodbadwolf/ascent | 70662ebc6fd550d2d13349cb750022d9ce3b29a6 | [
"BSD-3-Clause"
] | 97 | 2017-10-23T23:59:46.000Z | 2022-03-02T22:21:00.000Z | src/ascent/runtimes/expressions/ascent_derived_jit.hpp | goodbadwolf/ascent | 70662ebc6fd550d2d13349cb750022d9ce3b29a6 | [
"BSD-3-Clause"
] | 475 | 2017-09-12T22:46:37.000Z | 2022-03-18T19:19:04.000Z | src/ascent/runtimes/expressions/ascent_derived_jit.hpp | goodbadwolf/ascent | 70662ebc6fd550d2d13349cb750022d9ce3b29a6 | [
"BSD-3-Clause"
] | 39 | 2017-09-12T20:18:29.000Z | 2022-01-20T00:22:55.000Z | //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~//
// Copyright (c) 2015-2019, Lawrence Livermore National Security, LLC.
//
// Produced at the Lawrence Livermore National Laboratory
//
// LLNL-CODE-716457
//
// All rights reserved.
//
// This file is part of Ascent.
//
// For details, see:... | 33.679612 | 79 | 0.557654 | goodbadwolf |
2e456d20945e6da88d6a11f893b190a359f1c70f | 384 | cpp | C++ | src/main.cpp | SamFare/status-code-finder | 3defaaefc471cdd522ee4c6b1c33f6dc93748713 | [
"MIT"
] | null | null | null | src/main.cpp | SamFare/status-code-finder | 3defaaefc471cdd522ee4c6b1c33f6dc93748713 | [
"MIT"
] | null | null | null | src/main.cpp | SamFare/status-code-finder | 3defaaefc471cdd522ee4c6b1c33f6dc93748713 | [
"MIT"
] | null | null | null | #include <iostream>
#include <map>
#include <string>
#include "status-code-finder/status-code-finder.hpp"
#include "status-code-pretty-print/status-code-pretty-print.hpp"
int main(int argc, char* argv[]) {
auto finder = new StatusCodeFinder();
auto prettyPrint = new StatusCodePrettyPrint();
std::cout <... | 27.428571 | 77 | 0.703125 | SamFare |
2e461dc6134f5d83ca26a4c476cd08889bd9ab63 | 757 | hpp | C++ | include/network/protocol/http/client/macros.hpp | iBeacons/cpp-netlib | 9d03a037e465df96a98c1db5f3e50a865f501b64 | [
"BSL-1.0"
] | 1 | 2017-04-11T17:27:38.000Z | 2017-04-11T17:27:38.000Z | include/network/protocol/http/client/macros.hpp | iBeacons/cpp-netlib | 9d03a037e465df96a98c1db5f3e50a865f501b64 | [
"BSL-1.0"
] | null | null | null | include/network/protocol/http/client/macros.hpp | iBeacons/cpp-netlib | 9d03a037e465df96a98c1db5f3e50a865f501b64 | [
"BSL-1.0"
] | null | null | null | // Copyright 2011 Dean Michael Berris <dberris@google.com>.
// Copyright 2012 Google, Inc.
// 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 NETWORK_PROTOCOL_HTTP_CLIENT_MACROS_HPP_20110430
#define NETWOR... | 37.85 | 128 | 0.805812 | iBeacons |
2e4ddcd7f5beab1454b5866e75a9f1a45a7746d3 | 4,763 | cpp | C++ | cocos2dx/platform/airplay/CCAccelerometer_airplay.cpp | RAJA40/Cocos2dxSimpleGame | 5323463b48bb98b23e72a6e2e036ba434048ae13 | [
"MIT"
] | 5 | 2015-03-06T06:30:49.000Z | 2018-10-01T04:31:19.000Z | cocos2dx/platform/airplay/CCAccelerometer_airplay.cpp | wingver/cocos2d-x | 1e7a0d18a90cc8bb859b876528677e7119b04a49 | [
"Zlib",
"MIT"
] | null | null | null | cocos2dx/platform/airplay/CCAccelerometer_airplay.cpp | wingver/cocos2d-x | 1e7a0d18a90cc8bb859b876528677e7119b04a49 | [
"Zlib",
"MIT"
] | 5 | 2015-02-26T14:18:07.000Z | 2020-10-03T02:02:57.000Z | /****************************************************************************
Copyright (c) 2011 cocos2d-x.org http://cocos2d-x.org
Copyright (c) 2011 Максим Аксенов
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (t... | 29.042683 | 104 | 0.611799 | RAJA40 |
2e524041bb813323478eb1690df3ce096c86a855 | 541 | cpp | C++ | libs/vm/src/registers.cpp | tiaanl/emulator | a962f5136972a272294795579a2966f1af221f61 | [
"MIT"
] | null | null | null | libs/vm/src/registers.cpp | tiaanl/emulator | a962f5136972a272294795579a2966f1af221f61 | [
"MIT"
] | null | null | null | libs/vm/src/registers.cpp | tiaanl/emulator | a962f5136972a272294795579a2966f1af221f61 | [
"MIT"
] | null | null | null | #include "vm/registers.h"
#include <cassert>
namespace vm {
const char* register_to_string(Register reg) {
switch (reg) {
case Register::R1:
return "R1";
case Register::R2:
return "R2";
case Register::R3:
return "R3";
case Register::R4:
return "R4";
case Register::IP... | 13.195122 | 46 | 0.550832 | tiaanl |
2e53c079012256d6976180c5d59b6dea089da9e8 | 23,088 | cc | C++ | src/models/Octree.cc | ilMartoo/LiDAR-based_anomaly_detector | a5364992f906fe1eec8106bebdfa1fa99932e89e | [
"MIT"
] | null | null | null | src/models/Octree.cc | ilMartoo/LiDAR-based_anomaly_detector | a5364992f906fe1eec8106bebdfa1fa99932e89e | [
"MIT"
] | null | null | null | src/models/Octree.cc | ilMartoo/LiDAR-based_anomaly_detector | a5364992f906fe1eec8106bebdfa1fa99932e89e | [
"MIT"
] | null | null | null | /**
* @file Octree.cc
* @author Miguel Yermo (miguel.yermo@usc.es)
* @date 05/03/2020
*
* Implementación del objeto Octree
*
*/
#include <limits>
#include "models/Octree.hh"
#include "models/Kernel.hh"
#include "logging/debug.hh"
Octree::Octree() {}
Octree::Octree(std::vector<Point> &points) {
center_ =... | 29.868047 | 140 | 0.583247 | ilMartoo |
2e56be80b5245a7e5bd9fd7da5934429253a5116 | 8,572 | cpp | C++ | src/sql/MultiStatement.cpp | blumf/flamerobin | 3b442c6786d916383f885d81f0303171fd8ce7c2 | [
"MIT"
] | 2 | 2019-05-29T08:32:18.000Z | 2021-02-17T08:19:00.000Z | src/sql/MultiStatement.cpp | blumf/flamerobin | 3b442c6786d916383f885d81f0303171fd8ce7c2 | [
"MIT"
] | null | null | null | src/sql/MultiStatement.cpp | blumf/flamerobin | 3b442c6786d916383f885d81f0303171fd8ce7c2 | [
"MIT"
] | 1 | 2020-06-15T06:49:18.000Z | 2020-06-15T06:49:18.000Z | /*
Copyright (c) 2004-2016 The FlameRobin Development Team
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, modi... | 28.959459 | 140 | 0.55308 | blumf |
2e58c6fd4207c0d22f9378e2a376030bc9344bc9 | 1,523 | cpp | C++ | tests/codegen/ternary_int.cpp | cyphar/bpftrace | d3cb095a6ef19388bc33b3d8811d84353be7fff3 | [
"Apache-2.0"
] | null | null | null | tests/codegen/ternary_int.cpp | cyphar/bpftrace | d3cb095a6ef19388bc33b3d8811d84353be7fff3 | [
"Apache-2.0"
] | null | null | null | tests/codegen/ternary_int.cpp | cyphar/bpftrace | d3cb095a6ef19388bc33b3d8811d84353be7fff3 | [
"Apache-2.0"
] | null | null | null | #include "common.h"
namespace bpftrace {
namespace test {
namespace codegen {
TEST(codegen, ternary_int)
{
test("kprobe:f { @x = pid < 10000 ? 1 : 2; }",
R"EXPECTED(; Function Attrs: nounwind
declare i64 @llvm.bpf.pseudo(i64, i64) #0
; Function Attrs: argmemonly nounwind
declare void @llvm.lifetime.start.p... | 31.729167 | 141 | 0.669074 | cyphar |
2e5a392009f5a48f68c5dde5738dc6ec4f6c1bbe | 505 | hpp | C++ | src/Commons/get_input_from_user.hpp | clarablz/POO_S4 | 6fe29e78c346f74c2e25e2628c44496e7f6ced03 | [
"MIT"
] | null | null | null | src/Commons/get_input_from_user.hpp | clarablz/POO_S4 | 6fe29e78c346f74c2e25e2628c44496e7f6ced03 | [
"MIT"
] | 2 | 2022-03-19T23:05:28.000Z | 2022-03-23T15:24:37.000Z | src/Commons/get_input_from_user.hpp | clarablz/POO_S4 | 6fe29e78c346f74c2e25e2628c44496e7f6ced03 | [
"MIT"
] | null | null | null | #pragma once
#include <iostream>
#include <string>
template<typename T>
T get_input_from_user(std::string display_message)
{
T user_input;
while (true) {
std::cout << display_message;
if (std::cin >> user_input) {
break;
}
else {
std::cout << "Please ente... | 21.956522 | 79 | 0.548515 | clarablz |
2e5a6a8fd75e10120da0bc9e345d5ce22b77dc38 | 916 | cc | C++ | src/splitpath.cc | xet7/JadeLib | f1b2d7d9179904103baf70c29b5029500fb55bf9 | [
"MIT"
] | null | null | null | src/splitpath.cc | xet7/JadeLib | f1b2d7d9179904103baf70c29b5029500fb55bf9 | [
"MIT"
] | null | null | null | src/splitpath.cc | xet7/JadeLib | f1b2d7d9179904103baf70c29b5029500fb55bf9 | [
"MIT"
] | null | null | null | #include "include/jade.hpp"
FUNCTION STRING SPLITPATH$ (STRING FPATH, INT mask) DO
STRING fullPath(FPATH);
STRING path, filename, extension;
STRING::size_type lastSlashPos, extPos;
lastSlashPos=fullPath.find_last_of("/");
extPos=fullPath.find_last_of(".");
IF (lastSlashPos==STRING::npos) THEN
pat... | 19.083333 | 71 | 0.655022 | xet7 |
2e60c06e324f7a84c30b06799f588333ba82dca5 | 15,282 | cpp | C++ | Chapter4_StructureFromMotion/FindCameraMatrices.cpp | nic-c-cc-txt/code-master | 97f4f1da5f27b2af4d2faee51436ecdaef662a24 | [
"MIT"
] | 54 | 2017-05-16T02:28:16.000Z | 2021-11-19T14:03:53.000Z | Chapter4_StructureFromMotion/FindCameraMatrices.cpp | nic-c-cc-txt/code-master | 97f4f1da5f27b2af4d2faee51436ecdaef662a24 | [
"MIT"
] | 3 | 2017-05-18T19:11:24.000Z | 2020-11-05T08:59:25.000Z | Chapter02/FindCameraMatrices.cpp | Pandinosaurus/Mastering-OpenCV3-Second-Edition | 3347366025d7551f42eb55940aac629629000d42 | [
"MIT"
] | 35 | 2017-05-21T17:59:43.000Z | 2021-04-22T22:20:22.000Z | /*****************************************************************************
* ExploringSfMWithOpenCV
******************************************************************************
* by Roy Shilkrot, 5th Dec 2012
* http://www.morethantechnical.com/
***************************************************************... | 33.366812 | 147 | 0.625376 | nic-c-cc-txt |
2e646b6d3ba1075fade0fa96a1ac1c0423b97675 | 2,875 | cpp | C++ | adhoc/706_lc_display/lc_display_706.cpp | tricktron/Programming-Challenges | 0ece339a789529731eac8b908aa37d084fcdfe2a | [
"MIT"
] | null | null | null | adhoc/706_lc_display/lc_display_706.cpp | tricktron/Programming-Challenges | 0ece339a789529731eac8b908aa37d084fcdfe2a | [
"MIT"
] | null | null | null | adhoc/706_lc_display/lc_display_706.cpp | tricktron/Programming-Challenges | 0ece339a789529731eac8b908aa37d084fcdfe2a | [
"MIT"
] | null | null | null | /*
copyright: 2018, Thibault Gagnaux
uva: 706 lc-display
link: https://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&page=show_problem&problem=647
problem: Print numbers in the LED format.
category: adhoc
solution: 1. Use this representation for each number:
-0- upper part
| |
2 ... | 30.263158 | 106 | 0.550609 | tricktron |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.