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 108 | 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 67k ⌀ | 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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
30b7613e495a3ba0622183a934e056c17799a602 | 1,127 | cpp | C++ | gueepo2D/engine/utils/ImageUtils.cpp | guilhermepo2/gueepo2D | deb03ff39c871710c07d36c366b53b34dbfebf08 | [
"MIT"
] | 1 | 2022-02-03T19:24:47.000Z | 2022-02-03T19:24:47.000Z | gueepo2D/engine/utils/ImageUtils.cpp | guilhermepo2/gueepo2D | deb03ff39c871710c07d36c366b53b34dbfebf08 | [
"MIT"
] | 4 | 2021-10-30T19:03:07.000Z | 2022-02-10T01:06:02.000Z | gueepo2D/engine/utils/ImageUtils.cpp | guilhermepo2/gueepo2D | deb03ff39c871710c07d36c366b53b34dbfebf08 | [
"MIT"
] | 1 | 2021-10-01T03:08:21.000Z | 2021-10-01T03:08:21.000Z | #include "gueepo2Dpch.h"
#include "ImageUtils.h"
#include "core/Log.h"
#define STB_IMAGE_IMPLEMENTATION
#include "stb_image.h"
#define STB_IMAGE_WRITE_IMPLEMENTATION
#include "stb_image_write.h"
namespace gueepo {
unsigned char* g_LoadImage(const char* path, int& outImageWidth, int& outImageHeight, int& outComponen... | 25.044444 | 139 | 0.705413 | guilhermepo2 |
30b871b79bb71b1d92d6785798dc82f0e2213812 | 1,359 | cpp | C++ | src/TableItens/Player.cpp | edubrunaldi/poker-bot | b851aa86c73a5b1b6c586439fbc01ccecac8c0f1 | [
"MIT"
] | null | null | null | src/TableItens/Player.cpp | edubrunaldi/poker-bot | b851aa86c73a5b1b6c586439fbc01ccecac8c0f1 | [
"MIT"
] | null | null | null | src/TableItens/Player.cpp | edubrunaldi/poker-bot | b851aa86c73a5b1b6c586439fbc01ccecac8c0f1 | [
"MIT"
] | 2 | 2019-09-08T10:40:21.000Z | 2021-01-06T16:17:37.000Z | //
// Created by xima on 07/07/19.
//
#include "../../includes/TableItens/Player.hpp"
Player::Player(PlayerPosition position, TableSize tableSize) {
if (position == P0) {
this->card1 = std::make_unique<Card>(Card(HAND_LEFT));
this->card2 = std::make_unique<Card>(Card(HAND_RIGHT));
this->stack = std::mak... | 27.734694 | 91 | 0.667403 | edubrunaldi |
30ba6049b3b6769cc2f07fd9703e992768b678f2 | 29,354 | cc | C++ | SimFbcm/SiPadDigitizer/plugins/SiPadDigitizerAlgorithm.cc | m-sedghi/cmssw | 859df8affee372c53be79cdd2d8a5ff001eae841 | [
"Apache-2.0"
] | null | null | null | SimFbcm/SiPadDigitizer/plugins/SiPadDigitizerAlgorithm.cc | m-sedghi/cmssw | 859df8affee372c53be79cdd2d8a5ff001eae841 | [
"Apache-2.0"
] | null | null | null | SimFbcm/SiPadDigitizer/plugins/SiPadDigitizerAlgorithm.cc | m-sedghi/cmssw | 859df8affee372c53be79cdd2d8a5ff001eae841 | [
"Apache-2.0"
] | null | null | null | ///-------------------------------------------
// Author: Mohammad Sedghi, msedghi@cern.ch
// Isfahan University of Technology
// Date created: September 2020
///-------------------------------------------
#include <typeinfo>
#include <iostream>
#include <cmath>
#include "SiPadDigitizerAlgorithm.h"
using namespa... | 44.34139 | 163 | 0.630919 | m-sedghi |
30bee41ba1cbd7e910014b47efdf680937bacbdf | 316 | cpp | C++ | CommandLine.cpp | tgustafsson/myeditor | c2add8e01664cf58301058af017a9249cfd8832a | [
"Apache-2.0"
] | null | null | null | CommandLine.cpp | tgustafsson/myeditor | c2add8e01664cf58301058af017a9249cfd8832a | [
"Apache-2.0"
] | null | null | null | CommandLine.cpp | tgustafsson/myeditor | c2add8e01664cf58301058af017a9249cfd8832a | [
"Apache-2.0"
] | null | null | null | #include "CommandLine.h"
using namespace std;
KeyCord::command_return_t CommandLine::my_command_line_insert(shared_ptr<Model> model, shared_ptr<View> view, shared_ptr<Control> control, shared_ptr<Control> command_line_control, shared_ptr<Model> command_line_model)
{
return make_tuple(&my_empty_undo, false);
}
| 35.111111 | 218 | 0.816456 | tgustafsson |
30c0aa91aeb32f96ad916cde7284830562bfa3c1 | 2,390 | cpp | C++ | applications/physbam/physbam-lib/Public_Library/PhysBAM_Fluids/PhysBAM_Compressible/Euler_Equations/EULER.cpp | schinmayee/nimbus | 170cd15e24a7a88243a6ea80aabadc0fc0e6e177 | [
"BSD-3-Clause"
] | 20 | 2017-07-03T19:09:09.000Z | 2021-09-10T02:53:56.000Z | applications/physbam/physbam-lib/Public_Library/PhysBAM_Fluids/PhysBAM_Compressible/Euler_Equations/EULER.cpp | schinmayee/nimbus | 170cd15e24a7a88243a6ea80aabadc0fc0e6e177 | [
"BSD-3-Clause"
] | null | null | null | applications/physbam/physbam-lib/Public_Library/PhysBAM_Fluids/PhysBAM_Compressible/Euler_Equations/EULER.cpp | schinmayee/nimbus | 170cd15e24a7a88243a6ea80aabadc0fc0e6e177 | [
"BSD-3-Clause"
] | 9 | 2017-09-17T02:05:06.000Z | 2020-01-31T00:12:01.000Z | //#####################################################################
// Copyright 2002-2007, Doug Enright, Ronald Fedkiw, Jon Gretarsson, Nipun Kwatra, Jonathan Su.
// This file is part of PhysBAM whose distribution is governed by the license contained in the accompanying file PHYSBAM_COPYRIGHT.txt.
//##############... | 43.454545 | 135 | 0.547699 | schinmayee |
30c0b32673f3e1ae21fa57a9f715df32ace30cc0 | 310 | cpp | C++ | 08. Test One/20321009/F/F.cpp | dimitarminchev/CS104 | e42144196b346cb394f0118c833fa2b1e4f06ea5 | [
"MIT"
] | 7 | 2021-03-24T16:30:45.000Z | 2022-03-27T09:02:15.000Z | 08. Test One/20321009/F/F.cpp | dimitarminchev/CS104 | e42144196b346cb394f0118c833fa2b1e4f06ea5 | [
"MIT"
] | null | null | null | 08. Test One/20321009/F/F.cpp | dimitarminchev/CS104 | e42144196b346cb394f0118c833fa2b1e4f06ea5 | [
"MIT"
] | 17 | 2021-03-22T09:42:22.000Z | 2022-03-28T03:24:07.000Z | #include <iostream>
using namespace std;
int main()
{
int a, b;
cin >> a >> b;
for (int i = a; i <= b; i++)
{
if (i % 15 == 0)
{
cout << "fizzbuzz ";
}
else if (i % 5 == 0)
{
cout << "buzz ";
}
else if (i % 3 == 0)
{
cout << "fizz ";
}
else cout << i << " ";
}
return 0;
} | 12.4 | 29 | 0.412903 | dimitarminchev |
30c292fa4ff9a9dacb3f83b7984bc59778bc6671 | 3,719 | cc | C++ | source/gpu_perf_api_cl/cl_gpa_pass.cc | AdamJMiles/gpu_performance_api | 7bd0c8b484b2a658610581e2e48b615606130fdc | [
"MIT"
] | 61 | 2020-03-17T12:30:11.000Z | 2022-03-01T18:59:11.000Z | source/gpu_perf_api_cl/cl_gpa_pass.cc | AdamJMiles/gpu_performance_api | 7bd0c8b484b2a658610581e2e48b615606130fdc | [
"MIT"
] | 12 | 2020-03-24T15:46:54.000Z | 2022-01-08T02:03:31.000Z | source/gpu_perf_api_cl/cl_gpa_pass.cc | AdamJMiles/gpu_performance_api | 7bd0c8b484b2a658610581e2e48b615606130fdc | [
"MIT"
] | 19 | 2020-03-16T17:32:09.000Z | 2022-03-29T23:35:31.000Z | //==============================================================================
// Copyright (c) 2018-2020 Advanced Micro Devices, Inc. All rights reserved.
/// @author AMD Developer Tools Team
/// @file
/// @brief CL GPA Pass Object Implementation
//===================================================================... | 33.809091 | 129 | 0.708255 | AdamJMiles |
30c3aba06a0cc3b1c91fec618dfa49d3f800fac8 | 6,924 | hpp | C++ | 3DGE/include/tools/ResourceLoader.hpp | nflsilva/C3DGE | 9f1596c8e3842aeb095ad57d01f7d2e5e1587c3c | [
"Apache-2.0"
] | null | null | null | 3DGE/include/tools/ResourceLoader.hpp | nflsilva/C3DGE | 9f1596c8e3842aeb095ad57d01f7d2e5e1587c3c | [
"Apache-2.0"
] | null | null | null | 3DGE/include/tools/ResourceLoader.hpp | nflsilva/C3DGE | 9f1596c8e3842aeb095ad57d01f7d2e5e1587c3c | [
"Apache-2.0"
] | null | null | null | #ifndef RESOURCES_HPP
#define RESOURCES_HPP
#include <set>
#include <list>
#include <map>
#include <vector>
#include <iostream>
#include <fstream>
#include <sstream>
#include <stdio.h>
#include <string>
#include <string.h>
#include "tools/Log.hpp"
#include "stb_image/stb_image.h"
#include "tiny_obj_loader/tiny_obj_l... | 32.971429 | 93 | 0.566869 | nflsilva |
30c762bbffb059bf7166ecdef8371179a1c63968 | 2,473 | cpp | C++ | cpp/ip-device/src/main.cpp | PetarZecevic/smart-farm | d118e30cfdaacf75969013c25cd732e31a9345f0 | [
"Apache-2.0"
] | null | null | null | cpp/ip-device/src/main.cpp | PetarZecevic/smart-farm | d118e30cfdaacf75969013c25cd732e31a9345f0 | [
"Apache-2.0"
] | null | null | null | cpp/ip-device/src/main.cpp | PetarZecevic/smart-farm | d118e30cfdaacf75969013c25cd732e31a9345f0 | [
"Apache-2.0"
] | null | null | null | #include <iostream>
//#include <chrono>
#include <unistd.h>
#include "ssdp_client.hpp"
#include "mqtt_client.hpp"
#define WAIT_TIME 1000*1000 // one second in microseconds
using namespace std;
//TODO: 1. Add virtual destructor to ReportFunction
//TODO: 2. Modify parameters and return value so it does not depend on J... | 24.485149 | 91 | 0.66114 | PetarZecevic |
30c97213c9d48459d40df217fe979f0e6374f4d7 | 3,081 | cpp | C++ | contrib/su4/cpp2tex/source/wtf/bsql.cpp | agrishutin/teambook | 7e9ca28cd10241edbf9cd04ebdc1df3fa1c4b107 | [
"MIT"
] | 13 | 2017-07-04T14:58:47.000Z | 2022-03-23T09:04:41.000Z | contrib/su4/cpp2tex/source/wtf/bsql.cpp | agrishutin/teambook | 7e9ca28cd10241edbf9cd04ebdc1df3fa1c4b107 | [
"MIT"
] | null | null | null | contrib/su4/cpp2tex/source/wtf/bsql.cpp | agrishutin/teambook | 7e9ca28cd10241edbf9cd04ebdc1df3fa1c4b107 | [
"MIT"
] | 5 | 2017-10-14T21:48:20.000Z | 2018-06-18T12:12:15.000Z | /*
* wtf/bsql.cpp — some improvements for sql api
*/
#include "../../include/wtf/bsql.h"
using tamias::chartype;
using tamias::sizetype;
using tamias::uinttype32;
using tamias::Pair;
using tamias::String;
using tamias::Vector;
using tamias::sql::Connection;
using tamias::sql::Result;
using tamias::wtf::BSqlConnecti... | 25.04878 | 91 | 0.59234 | agrishutin |
30c9bdca28e17cb40ac0dd49cc9f0fa24cfb3dde | 5,099 | cpp | C++ | test/test_ccl_coloring.cpp | tuan1225/parconnect_sc16 | bcd6f99101685d746cf30e22fa3c3f63ddd950c9 | [
"Apache-2.0"
] | null | null | null | test/test_ccl_coloring.cpp | tuan1225/parconnect_sc16 | bcd6f99101685d746cf30e22fa3c3f63ddd950c9 | [
"Apache-2.0"
] | null | null | null | test/test_ccl_coloring.cpp | tuan1225/parconnect_sc16 | bcd6f99101685d746cf30e22fa3c3f63ddd950c9 | [
"Apache-2.0"
] | null | null | null | /*
* Copyright 2016 Georgia Institute of Technology
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicab... | 24.995098 | 76 | 0.654638 | tuan1225 |
30cb0cb5e8df96ebf9ac2fd4ad2467795c603fa5 | 733 | cpp | C++ | IrrlichtCLR/BillboardW.cpp | twesd/editor | 10ea9f535115dadab5694fecdb0c499d0013ac1b | [
"MIT"
] | null | null | null | IrrlichtCLR/BillboardW.cpp | twesd/editor | 10ea9f535115dadab5694fecdb0c499d0013ac1b | [
"MIT"
] | null | null | null | IrrlichtCLR/BillboardW.cpp | twesd/editor | 10ea9f535115dadab5694fecdb0c499d0013ac1b | [
"MIT"
] | null | null | null | #include "StdAfx.h"
#include "BillboardW.h"
#include "Convertor.h"
BillboardW::BillboardW(ISceneNode* node, SharedParams_t* shareParams):
SceneNodeW(node, shareParams)
{
_billboard = dynamic_cast<Billboard*>(node);
}
void BillboardW::SetDimension(f32 width, f32 height)
{
_billboard->SetDimension(dimension2df(width,... | 19.810811 | 70 | 0.758527 | twesd |
30cb583082e1d532477a628c1003d1f61e615e52 | 753 | cpp | C++ | chewbot_gui/QT_widgets/jogAxisWidget/jogaxiswidget.cpp | drewhamiltonasdf/chewbot | 8fcbc8cf5890db2675e0af2c6b85fcd2825397cd | [
"MIT"
] | null | null | null | chewbot_gui/QT_widgets/jogAxisWidget/jogaxiswidget.cpp | drewhamiltonasdf/chewbot | 8fcbc8cf5890db2675e0af2c6b85fcd2825397cd | [
"MIT"
] | null | null | null | chewbot_gui/QT_widgets/jogAxisWidget/jogaxiswidget.cpp | drewhamiltonasdf/chewbot | 8fcbc8cf5890db2675e0af2c6b85fcd2825397cd | [
"MIT"
] | null | null | null | #include "jogaxiswidget.h"
/*
*
* If you make modifications to the form,
* you have to re-make the project, to
* install the QT designer plugin into the
* appropriate directory.
*
* cd ~/ros_ws/src/chewbot/QT_widgets/jogAxisWidget
* sudo qmake
* sudo make
* sudo make insta... | 22.147059 | 56 | 0.657371 | drewhamiltonasdf |
30cfea63786d16f703813270099aa3c88db77628 | 4,960 | hpp | C++ | tcob/include/tcob/gfx/drawables/ParticleSystem.hpp | TobiasBohnen/tcob | 53092b3c8e657f1ff5e48ce961659edf7cb1cb05 | [
"MIT"
] | 2 | 2021-08-18T19:14:35.000Z | 2021-12-01T14:14:49.000Z | tcob/include/tcob/gfx/drawables/ParticleSystem.hpp | TobiasBohnen/tcob | 53092b3c8e657f1ff5e48ce961659edf7cb1cb05 | [
"MIT"
] | null | null | null | tcob/include/tcob/gfx/drawables/ParticleSystem.hpp | TobiasBohnen/tcob | 53092b3c8e657f1ff5e48ce961659edf7cb1cb05 | [
"MIT"
] | null | null | null | // Copyright (c) 2021 Tobias Bohnen
//
// This software is released under the MIT License.
// https://opensource.org/licenses/MIT
#pragma once
#include <tcob/tcob_config.hpp>
#include <functional>
#include <list>
#include <mutex>
#include <optional>
#include <vector>
#include <tcob/core/Random.hpp>
#include <tcob/co... | 28.505747 | 97 | 0.664315 | TobiasBohnen |
30d5d34c0f616e32d4e047aca59d485dfe9b909c | 1,803 | inl | C++ | include/bit/stl/containers/detail/set_view.inl | bitwizeshift/bit-stl | cec555fbda2ea1b6e126fa719637dde8d3f2ddd3 | [
"MIT"
] | 6 | 2017-03-29T07:20:30.000Z | 2021-12-28T20:17:33.000Z | include/bit/stl/containers/detail/set_view.inl | bitwizeshift/bit-stl | cec555fbda2ea1b6e126fa719637dde8d3f2ddd3 | [
"MIT"
] | 6 | 2017-10-11T02:26:07.000Z | 2018-04-16T03:09:48.000Z | include/bit/stl/containers/detail/set_view.inl | bitwizeshift/bit-stl | cec555fbda2ea1b6e126fa719637dde8d3f2ddd3 | [
"MIT"
] | 1 | 2018-08-27T15:03:47.000Z | 2018-08-27T15:03:47.000Z | #ifndef BIT_STL_CONTAINERS_DETAIL_SET_VIEW_INL
#define BIT_STL_CONTAINERS_DETAIL_SET_VIEW_INL
//------------------------------------------------------------------------
// Constructor
//------------------------------------------------------------------------
template<typename T>
inline constexpr bit::stl::set_view<T>... | 24.04 | 80 | 0.538547 | bitwizeshift |
30d68a3a7649a66e3bdd328840f4597bcb9be833 | 12,208 | cpp | C++ | kcgistream.cpp | ridgeware/dekaf2 | b914d880d1a5b7f5c8f89dedd36b13b7f4b0ee33 | [
"MIT"
] | null | null | null | kcgistream.cpp | ridgeware/dekaf2 | b914d880d1a5b7f5c8f89dedd36b13b7f4b0ee33 | [
"MIT"
] | null | null | null | kcgistream.cpp | ridgeware/dekaf2 | b914d880d1a5b7f5c8f89dedd36b13b7f4b0ee33 | [
"MIT"
] | 1 | 2021-08-20T16:15:01.000Z | 2021-08-20T16:15:01.000Z |
/*
//
// DEKAF(tm): Lighter, Faster, Smarter (tm)
//
// Copyright (c) 2018, Ridgeware, Inc.
//
// +-------------------------------------------------------------------------+
// | /\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\|
// |/+----------------------------------------------------... | 32.468085 | 96 | 0.573231 | ridgeware |
30d7585356ab37aa28950b5d6addd78897d85f7c | 4,301 | cpp | C++ | src/tex_op/to_io.cpp | cewbost/texgen | f572ea5590457f37b72286c50c020eee25bddc78 | [
"MIT"
] | null | null | null | src/tex_op/to_io.cpp | cewbost/texgen | f572ea5590457f37b72286c50c020eee25bddc78 | [
"MIT"
] | null | null | null | src/tex_op/to_io.cpp | cewbost/texgen | f572ea5590457f37b72286c50c020eee25bddc78 | [
"MIT"
] | null | null | null |
#include "../tex_op.h"
#include "to_common.h"
namespace
{
void _copyc2t(Texture* dest, const uint8_t* src, int from, int to)
{
auto dest_p = dest->data() + from;
src += from * 4;
for(int i = from; i < to; ++i)
{
(*dest_p)[0] = (float)src[0] / 255;
(*dest_p)[1] = (float)src[1] / 255;
... | 26.22561 | 78 | 0.54778 | cewbost |
30d899ca74d1dde448d552d9b35075be06fa696c | 1,374 | cpp | C++ | src/prod/src/ktllogger/Constants.cpp | leikong/service-fabric | 6b81daab914c8cf02801073fe6b6e5bf97270e9b | [
"MIT"
] | null | null | null | src/prod/src/ktllogger/Constants.cpp | leikong/service-fabric | 6b81daab914c8cf02801073fe6b6e5bf97270e9b | [
"MIT"
] | null | null | null | src/prod/src/ktllogger/Constants.cpp | leikong/service-fabric | 6b81daab914c8cf02801073fe6b6e5bf97270e9b | [
"MIT"
] | null | null | null | // ------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License (MIT). See License.txt in the repo root for license information.
// ------------------------------------------------------------
#include "stdafx.h"
//
// Do ... | 65.428571 | 119 | 0.754003 | leikong |
30da6d2fad8bd80666e653358d10ab0091e4bd90 | 2,208 | cc | C++ | src/sys/fuzzing/framework/coverage/provider-unittest.cc | allansrc/fuchsia | a2c235b33fc4305044d496354a08775f30cdcf37 | [
"BSD-2-Clause"
] | 2 | 2022-02-24T16:24:29.000Z | 2022-02-25T22:33:10.000Z | src/sys/fuzzing/framework/coverage/provider-unittest.cc | allansrc/fuchsia | a2c235b33fc4305044d496354a08775f30cdcf37 | [
"BSD-2-Clause"
] | 1 | 2022-03-01T01:12:04.000Z | 2022-03-01T01:17:26.000Z | src/sys/fuzzing/framework/coverage/provider-unittest.cc | allansrc/fuchsia | a2c235b33fc4305044d496354a08775f30cdcf37 | [
"BSD-2-Clause"
] | null | null | null | // Copyright 2021 The Fuchsia Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "src/sys/fuzzing/framework/coverage/provider.h"
#include <lib/zx/eventpair.h>
#include <stdint.h>
#include <atomic>
#include <memory>
#include <... | 24.808989 | 78 | 0.720562 | allansrc |
30dc2ac9fad5105724e2208182a2dfe5340ad24b | 898 | cpp | C++ | Questions Level-Wise/Easy/second-minimum-node-in-a-binary-tree.cpp | PrakharPipersania/LeetCode-Solutions | ea74534bbdcf1ca3ea4d88a1081582e0e15f50c7 | [
"MIT"
] | 2 | 2021-03-05T22:32:23.000Z | 2021-03-05T22:32:29.000Z | Tree/second-minimum-node-in-a-binary-tree.cpp | PrakharPipersania/LeetCode-Solutions | ea74534bbdcf1ca3ea4d88a1081582e0e15f50c7 | [
"MIT"
] | null | null | null | Tree/second-minimum-node-in-a-binary-tree.cpp | PrakharPipersania/LeetCode-Solutions | ea74534bbdcf1ca3ea4d88a1081582e0e15f50c7 | [
"MIT"
] | null | null | null | /**
* Definition for a binary tree node.
* struct TreeNode {
* int val;
* TreeNode *left;
* TreeNode *right;
* TreeNode() : val(0), left(nullptr), right(nullptr) {}
* TreeNode(int x) : val(x), left(nullptr), right(nullptr) {}
* TreeNode(int x, TreeNode *left, TreeNode *right) : val(x), l... | 24.27027 | 93 | 0.483296 | PrakharPipersania |
30dd75be385ea73f4275b82fc72512ed61758c32 | 31,374 | cpp | C++ | apps/mysql-5.1.65/storage/ndb/src/kernel/blocks/trix/Trix.cpp | vusec/firestarter | 2048c1f731b8f3c5570a920757f9d7730d5f716a | [
"Apache-2.0"
] | 3 | 2021-04-29T07:59:16.000Z | 2021-12-10T02:23:05.000Z | apps/mysql-5.1.65/storage/ndb/src/kernel/blocks/trix/Trix.cpp | vusec/firestarter | 2048c1f731b8f3c5570a920757f9d7730d5f716a | [
"Apache-2.0"
] | null | null | null | apps/mysql-5.1.65/storage/ndb/src/kernel/blocks/trix/Trix.cpp | vusec/firestarter | 2048c1f731b8f3c5570a920757f9d7730d5f716a | [
"Apache-2.0"
] | null | null | null | /* Copyright (C) 2003 MySQL AB
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; version 2 of the License.
This program is distributed in the hope that it will be useful,
but WITHOUT AN... | 31.468405 | 98 | 0.706062 | vusec |
30de6b0fa4fa143ee02937bc8b690c1b1edc5f77 | 2,749 | cpp | C++ | deps/webservice/examples/websocket_server.cpp | kindlychung/mediasoup-sfu-cpp | f69d2f48f7edbf4f0c57244280a47bea985f39cf | [
"Apache-2.0"
] | 80 | 2021-09-07T12:44:32.000Z | 2022-03-29T01:22:19.000Z | deps/webservice/examples/websocket_server.cpp | kindlychung/mediasoup-sfu-cpp | f69d2f48f7edbf4f0c57244280a47bea985f39cf | [
"Apache-2.0"
] | 4 | 2018-02-22T17:17:02.000Z | 2021-01-21T07:14:10.000Z | deps/webservice/examples/websocket_server.cpp | kindlychung/mediasoup-sfu-cpp | f69d2f48f7edbf4f0c57244280a47bea985f39cf | [
"Apache-2.0"
] | 25 | 2021-09-14T06:24:25.000Z | 2022-03-20T06:55:07.000Z | //-----------------------------------------------------------------------------
// Copyright (c) 2018 Benjamin Buch
//
// https://github.com/bebuch/http
//
// Distributed under the Boost Software License, Version 1.0. (See accompanying
// file LICENSE_1_0.txt or copy at https://www.boost.org/LICENSE_1_0.txt)
//--------... | 25.933962 | 79 | 0.640597 | kindlychung |
30df4eda43fdf8556e736e678516520d4a58ef95 | 19,844 | cpp | C++ | tests/tr1/tests/type_traits7/test.cpp | isra-fel/STL | 6ae9a578b4f52193dc523922c943a2214a873577 | [
"Apache-2.0"
] | 8,232 | 2019-09-16T22:51:24.000Z | 2022-03-31T03:55:39.000Z | tests/tr1/tests/type_traits7/test.cpp | isra-fel/STL | 6ae9a578b4f52193dc523922c943a2214a873577 | [
"Apache-2.0"
] | 2,263 | 2019-09-17T05:19:55.000Z | 2022-03-31T21:05:47.000Z | tests/tr1/tests/type_traits7/test.cpp | isra-fel/STL | 6ae9a578b4f52193dc523922c943a2214a873577 | [
"Apache-2.0"
] | 1,276 | 2019-09-16T22:51:40.000Z | 2022-03-31T03:30:05.000Z | // Copyright (c) Microsoft Corporation.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
// test <type_traits> header, part 7
#define TEST_NAME "<type_traits>, part 7"
#define _HAS_DEPRECATED_IS_LITERAL_TYPE 1
#define _SILENCE_CXX17_IS_LITERAL_TYPE_DEPRECATION_WARNING
#include "tdefs.h"
#include ... | 43.902655 | 97 | 0.719815 | isra-fel |
30e143e4c458dc136bb57367b085c985badd0523 | 4,972 | hpp | C++ | warpcoil/update_generated_file.hpp | TyRoXx/warpcoil | e0454a7880fa644dfb6e77968a37f8547590c15f | [
"MIT"
] | 2 | 2018-06-04T06:44:00.000Z | 2018-09-14T09:45:12.000Z | warpcoil/update_generated_file.hpp | TyRoXx/warpcoil | e0454a7880fa644dfb6e77968a37f8547590c15f | [
"MIT"
] | 40 | 2016-05-01T12:51:47.000Z | 2016-09-04T14:21:51.000Z | warpcoil/update_generated_file.hpp | TyRoXx/warpcoil | e0454a7880fa644dfb6e77968a37f8547590c15f | [
"MIT"
] | 2 | 2018-06-04T06:44:06.000Z | 2018-09-14T09:45:19.000Z | #pragma once
#include <boost/range/algorithm/equal.hpp>
#include <ventura/open.hpp>
#include <ventura/read_file.hpp>
#include <ventura/write_file.hpp>
namespace warpcoil
{
inline bool update_generated_file(char const *file, Si::memory_range new_content,
std::ostream &log)
... | 42.135593 | 97 | 0.504626 | TyRoXx |
30e5591beb92bc041843428a9aa754e426be867e | 1,157 | hpp | C++ | reg/stm32/f0/timer.hpp | pavelrevak/io | c071af35fd0a2b5978e604555a170e48ac698f35 | [
"MIT"
] | 20 | 2018-03-14T11:05:00.000Z | 2022-03-13T13:28:26.000Z | reg/stm32/f0/timer.hpp | pavelrevak/io | c071af35fd0a2b5978e604555a170e48ac698f35 | [
"MIT"
] | null | null | null | reg/stm32/f0/timer.hpp | pavelrevak/io | c071af35fd0a2b5978e604555a170e48ac698f35 | [
"MIT"
] | 5 | 2018-07-15T11:44:03.000Z | 2020-11-08T18:06:33.000Z | /**
* Peripheral Definition File
*
* TIMER - Timers
*
* MCUs containing this peripheral:
* - STM32F0xx
*/
#pragma once
#include <cstdint>
#include <cstddef>
#include "io/reg/stm32/_common/timer.hpp"
namespace io {
namespace base {
static const size_t TIM1 = 0x40012c00;
static const size_t TIM2 = 0x40000000;
stat... | 26.295455 | 62 | 0.737252 | pavelrevak |
30e6c0f70a0771445a978297b9216dc992f58398 | 1,269 | cpp | C++ | vsr/private/vsr_framebuffer.cpp | sanglin307/vsr_dev | 21fe9a3cbdc003c51092702bc9445acc49016277 | [
"MIT"
] | null | null | null | vsr/private/vsr_framebuffer.cpp | sanglin307/vsr_dev | 21fe9a3cbdc003c51092702bc9445acc49016277 | [
"MIT"
] | null | null | null | vsr/private/vsr_framebuffer.cpp | sanglin307/vsr_dev | 21fe9a3cbdc003c51092702bc9445acc49016277 | [
"MIT"
] | null | null | null | #include "vsr_common.h"
#include "vsr_framebuffer.h"
#include "vsr_device.h"
VkAllocationCallbacks *MemoryAlloc<VkFramebuffer_T, VK_SYSTEM_ALLOCATION_SCOPE_OBJECT>::_pAllocator = nullptr;
VkFramebuffer_T::VkFramebuffer_T(const VkFramebufferCreateInfo* pCreateInfo)
:_renderPass(pCreateInfo->renderPass),_width(pCreat... | 29.511628 | 123 | 0.687155 | sanglin307 |
30e7a9b8f2ac46a7e3851262dd3bc88c0428216f | 20,945 | cxx | C++ | JETAN/JETAN/AliJetBkg.cxx | maroozm/AliPhysics | 22ec256928cfdf8f800e05bfc1a6e124d90b6eaf | [
"BSD-3-Clause"
] | 114 | 2017-03-03T09:12:23.000Z | 2022-03-03T20:29:42.000Z | JETAN/JETAN/AliJetBkg.cxx | maroozm/AliPhysics | 22ec256928cfdf8f800e05bfc1a6e124d90b6eaf | [
"BSD-3-Clause"
] | 19,637 | 2017-01-16T12:34:41.000Z | 2022-03-31T22:02:40.000Z | JETAN/JETAN/AliJetBkg.cxx | maroozm/AliPhysics | 22ec256928cfdf8f800e05bfc1a6e124d90b6eaf | [
"BSD-3-Clause"
] | 1,021 | 2016-07-14T22:41:16.000Z | 2022-03-31T05:15:51.000Z | /**************************************************************************
* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
* *
* Author: The ALICE Off-line Project. *
* Contributors ... | 37.0053 | 153 | 0.59747 | maroozm |
30e83e86ed41aa598e132975f1358b910ae76be1 | 2,222 | cc | C++ | src/demo/sky_quad.cc | auygun/kaliber | c6501323cf5c447334a2bfb6b7a5899dea0776e6 | [
"MIT"
] | 3 | 2020-06-22T19:37:49.000Z | 2020-11-14T10:45:27.000Z | src/demo/sky_quad.cc | auygun/kaliber | c6501323cf5c447334a2bfb6b7a5899dea0776e6 | [
"MIT"
] | 1 | 2020-06-03T13:05:24.000Z | 2020-06-03T13:05:24.000Z | src/demo/sky_quad.cc | auygun/kaliber | c6501323cf5c447334a2bfb6b7a5899dea0776e6 | [
"MIT"
] | null | null | null | #include "sky_quad.h"
#include "../base/interpolation.h"
#include "../base/log.h"
#include "../base/random.h"
#include "../engine/engine.h"
#include "../engine/renderer/geometry.h"
#include "../engine/renderer/shader.h"
#include "../engine/shader_source.h"
using namespace base;
using namespace eng;
SkyQuad::SkyQuad(... | 27.097561 | 80 | 0.687219 | auygun |
30e8ea3c1b89c5433e48d27a2a86ef5669a5e345 | 8,028 | cpp | C++ | src/slib/ui/web_view_android.cpp | inogroup/SLib | 6c053c8f47f04240b8444eac5f316effdee2eb01 | [
"MIT"
] | 2 | 2021-07-29T18:29:25.000Z | 2021-09-07T08:51:14.000Z | src/slib/ui/web_view_android.cpp | inogroup/SLib | 6c053c8f47f04240b8444eac5f316effdee2eb01 | [
"MIT"
] | 1 | 2021-07-29T18:22:35.000Z | 2021-07-29T18:59:41.000Z | src/slib/ui/web_view_android.cpp | inogroup/SLib | 6c053c8f47f04240b8444eac5f316effdee2eb01 | [
"MIT"
] | 3 | 2021-07-29T17:08:12.000Z | 2021-12-14T06:21:41.000Z | /*
* Copyright (c) 2008-2018 SLIBIO <https://github.com/SLIBIO>
*
* 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
* ... | 32.502024 | 138 | 0.696687 | inogroup |
30e92252e1e4be175594ef8c1581df2677d67148 | 551 | cpp | C++ | src/compiler/sources/expressions/ExpValInteger.cpp | MYnimef/dsl | 9f07337423b37b41c76e4b1be4eb15cd5534260b | [
"MIT"
] | null | null | null | src/compiler/sources/expressions/ExpValInteger.cpp | MYnimef/dsl | 9f07337423b37b41c76e4b1be4eb15cd5534260b | [
"MIT"
] | null | null | null | src/compiler/sources/expressions/ExpValInteger.cpp | MYnimef/dsl | 9f07337423b37b41c76e4b1be4eb15cd5534260b | [
"MIT"
] | null | null | null | //
// Created by Ivan Markov on 07.04.2022.
//
#include "ExpValInteger.h"
#include "VarInteger.h"
ExpValInteger::ExpValInteger(const int& lineNum, const long long value):
Exp(EXP_INTEGER, lineNum),
value(value) {}
ExpValInteger::ExpValInteger(const int& lineNum, const std::string& value):
Exp(EXP_INTEGER, lineNum),
... | 23.956522 | 75 | 0.735027 | MYnimef |
30edfa2c47c22a98787740b358212b5adce9ea90 | 3,570 | cpp | C++ | Blue-Flame-Engine/Core/BF/Graphics/TerrainGenerator.cpp | FantasyVII/Blue-Flame-Engine | b0e44ccffdd41539fa9075e5d6a2b3c1cc811d96 | [
"MIT"
] | 2 | 2020-10-12T13:40:05.000Z | 2021-09-17T08:37:03.000Z | Blue-Flame-Engine/Core/BF/Graphics/TerrainGenerator.cpp | FantasyVII/Blue-Flame-Engine | b0e44ccffdd41539fa9075e5d6a2b3c1cc811d96 | [
"MIT"
] | null | null | null | Blue-Flame-Engine/Core/BF/Graphics/TerrainGenerator.cpp | FantasyVII/Blue-Flame-Engine | b0e44ccffdd41539fa9075e5d6a2b3c1cc811d96 | [
"MIT"
] | null | null | null | #include "TerrainGenerator.h"
#include "BF/Engine.h"
#include "BF/Graphics/Mesh.h"
#include "BF/Math/Math.h"
#include "BF/IO/ImageLoader.h"
#include "BF/System/Debug.h"
#define TERRAIN_WIDTH 256
#define TERRAIN_HEIGHT 256
#define QUAD_INDICES 6
#define ROW_VERTICES (TERRAIN_WIDTH + 1)
#define COLUMN_VERTICES (T... | 29.02439 | 211 | 0.660784 | FantasyVII |
30f296a8f13e25ddbfadf1510a2947350f646505 | 732 | hpp | C++ | lib/filesystem/include/filesystem/detail.hpp | mbwatson/irods | c242db4cb20155500767d76b62bcbc4d4032b6cf | [
"BSD-3-Clause"
] | null | null | null | lib/filesystem/include/filesystem/detail.hpp | mbwatson/irods | c242db4cb20155500767d76b62bcbc4d4032b6cf | [
"BSD-3-Clause"
] | null | null | null | lib/filesystem/include/filesystem/detail.hpp | mbwatson/irods | c242db4cb20155500767d76b62bcbc4d4032b6cf | [
"BSD-3-Clause"
] | null | null | null | #ifndef IRODS_FILESYSTEM_DETAIL_HPP
#define IRODS_FILESYSTEM_DETAIL_HPP
#include "filesystem/path.hpp"
#include "filesystem/filesystem_error.hpp"
#include "rodsDef.h"
#include <cstring>
namespace irods::experimental::filesystem::detail
{
inline void throw_if_path_length_exceeds_limit(const irods::experimental::... | 27.111111 | 111 | 0.718579 | mbwatson |
30f3bfd1cc119978cf3e18485240268ca99b2c08 | 6,550 | hpp | C++ | HEIG_PRG1_labo32/Sint.hpp | DrC0okie/HEIG_PRG1_Labos | c8433a1bd171946cc68ecb95c1a54dc60e832d9b | [
"MIT"
] | null | null | null | HEIG_PRG1_labo32/Sint.hpp | DrC0okie/HEIG_PRG1_Labos | c8433a1bd171946cc68ecb95c1a54dc60e832d9b | [
"MIT"
] | null | null | null | HEIG_PRG1_labo32/Sint.hpp | DrC0okie/HEIG_PRG1_Labos | c8433a1bd171946cc68ecb95c1a54dc60e832d9b | [
"MIT"
] | null | null | null | // File: Sint.hpp
// Author: Timothee Van Hove
// Date: 15.01.2022
// Description: Header of the Sint class
#ifndef SINT_HPP
#define SINT_HPP
#include "Uint.hpp"
class Sint
{
private:
Uint iValue;
bool isPositive;
/** @brief Compares if the left Sint is <, >, or ==
* @param left ... | 41.455696 | 80 | 0.651756 | DrC0okie |
30f45d85af8471e1c6c25c4e37dfb2c8901214bc | 5,763 | cpp | C++ | packages/scenex/src/ek/scenex/2d/Atlas.cpp | highduck/ekx | 928300bd2af88dfddd92cc4e1754b9e53969640f | [
"0BSD"
] | 12 | 2021-04-10T18:39:19.000Z | 2022-02-01T05:21:42.000Z | packages/scenex/src/ek/scenex/2d/Atlas.cpp | highduck/ekx | 928300bd2af88dfddd92cc4e1754b9e53969640f | [
"0BSD"
] | 109 | 2021-09-09T23:53:45.000Z | 2022-03-31T23:21:28.000Z | packages/scenex/src/ek/scenex/2d/Atlas.cpp | highduck/ekx | 928300bd2af88dfddd92cc4e1754b9e53969640f | [
"0BSD"
] | 3 | 2021-05-20T03:23:10.000Z | 2022-01-10T14:22:31.000Z | #include "Atlas.hpp"
#include "Sprite.hpp"
#include <ek/log.h>
#include <ek/util/Res.hpp>
#include <ek/serialize/serialize.hpp>
#include <ek/util/Path.hpp>
#include <ek/local_res.h>
#include <ek/gfx.h>
#include <ek/print.h>
namespace ek {
/**** DTO *****/
struct SpriteInfo {
enum Flags : uint8_t {
None ... | 26.43578 | 105 | 0.545202 | highduck |
30f7a34e7ea9b1c8998252d21e081466ed32cd3c | 2,734 | cpp | C++ | examples/inclusivescan/apps/withmess/main.cpp | LouisCharlesC/mess | 4ecae6ff5cfc3313e4d30ca2681f75eb89705d7e | [
"MIT"
] | 22 | 2019-04-08T15:34:13.000Z | 2022-02-13T08:26:07.000Z | examples/inclusivescan/apps/withmess/main.cpp | LouisCharlesC/mess | 4ecae6ff5cfc3313e4d30ca2681f75eb89705d7e | [
"MIT"
] | null | null | null | examples/inclusivescan/apps/withmess/main.cpp | LouisCharlesC/mess | 4ecae6ff5cfc3313e4d30ca2681f75eb89705d7e | [
"MIT"
] | null | null | null | /**
* @file main.cpp
* @author L.-C. C.
* @brief
* @version 0.1
* @date 2020-02-06
*
* @copyright Copyright (c) 2020
*
*/
#include <checker.h>
#include <scanner.h>
#include <source.h>
#include <mess/mess.h>
#include <cassert>
#include <chrono>
#include <cstddef>
#include <iostream>
#include <iterator>
#i... | 27.897959 | 141 | 0.694587 | LouisCharlesC |
30f7f8444719827755239028f97ea1848831bba4 | 2,632 | cpp | C++ | tools/vsimporter/src/PBX/XCConfigurationList.cpp | Art52123103/WinObjC | 5672d1c99851b6125514381c39f4243692514b0b | [
"MIT"
] | 1 | 2016-02-08T02:29:19.000Z | 2016-02-08T02:29:19.000Z | tools/vsimporter/src/PBX/XCConfigurationList.cpp | Art52123103/WinObjC | 5672d1c99851b6125514381c39f4243692514b0b | [
"MIT"
] | null | null | null | tools/vsimporter/src/PBX/XCConfigurationList.cpp | Art52123103/WinObjC | 5672d1c99851b6125514381c39f4243692514b0b | [
"MIT"
] | null | null | null | //******************************************************************************
//
// Copyright (c) 2015 Microsoft Corporation. All rights reserved.
//
// This code is licensed under the MIT License (MIT).
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
// IMPLIED, INCLUDING BUT NOT LI... | 37.6 | 143 | 0.713146 | Art52123103 |
30f94b254fca39547831a67579d31c760bb000c0 | 4,402 | cpp | C++ | import/scanner2.cpp | kfsone/new-amul | 3f6feef6efd9fe0a800e2e328b22c6f7cdac834a | [
"BSD-3-Clause"
] | null | null | null | import/scanner2.cpp | kfsone/new-amul | 3f6feef6efd9fe0a800e2e328b22c6f7cdac834a | [
"BSD-3-Clause"
] | null | null | null | import/scanner2.cpp | kfsone/new-amul | 3f6feef6efd9fe0a800e2e328b22c6f7cdac834a | [
"BSD-3-Clause"
] | null | null | null | #include <ctype.h>
#define REF(name) *name[static 0]
struct AtomSet {
Atom REF(atoms);
size_t numAtoms;
Atom REF(cur), REF(end);
};
typedef bool (*ASPredicate)(const Atom REF(*cur), const Atom REF(end))
// PREDICATE declares a function prototype as an atom predicate
#define PREDICATE(name) bool name... | 26.678788 | 100 | 0.44298 | kfsone |
30fcb8b653eedd9869c3fce02ab2ea28bfe5deca | 4,805 | cpp | C++ | trajectory_planner/src/trajectory_planner_nodelet_aux.cpp | ricardolfsilva/trajectory_planner | 0840d74921feb79569de67a765c7d3c011ff8868 | [
"MIT"
] | 1 | 2021-09-25T15:05:04.000Z | 2021-09-25T15:05:04.000Z | trajectory_planner/src/trajectory_planner_nodelet_aux.cpp | ricardolfsilva/trajectory_planner | 0840d74921feb79569de67a765c7d3c011ff8868 | [
"MIT"
] | null | null | null | trajectory_planner/src/trajectory_planner_nodelet_aux.cpp | ricardolfsilva/trajectory_planner | 0840d74921feb79569de67a765c7d3c011ff8868 | [
"MIT"
] | null | null | null | /**************************************************************************************************
Software License Agreement (BSD License)
Copyright (c) 2011-2013, LAR toolkit developers - University of Aveiro - http://lars.mec.ua.pt
All rights reserved.
Redistribution and use in source and binary forms, with o... | 35.858209 | 100 | 0.713424 | ricardolfsilva |
30fdfdc570d46c64ac40f7438577bcbdd2f94584 | 612 | cpp | C++ | sources/laba06-5.cpp | aleksandrbezzubenko/Sort_set | 2c57005ae5662f3e1e83a8101dd7740235cabd40 | [
"MIT"
] | null | null | null | sources/laba06-5.cpp | aleksandrbezzubenko/Sort_set | 2c57005ae5662f3e1e83a8101dd7740235cabd40 | [
"MIT"
] | null | null | null | sources/laba06-5.cpp | aleksandrbezzubenko/Sort_set | 2c57005ae5662f3e1e83a8101dd7740235cabd40 | [
"MIT"
] | null | null | null | // Copyright 2018 Your Name <your_email>
#include <iostream>
#include <vector>
#include <string>
#include "header.hpp"
#include "student.hpp"
std::vector<Student> VectorMathExcellent(const std::vector<Student>& studmath)
{
std::vector<Student> math5 = {};
for (int i = 0; i < studmath.size(); ++i) {
int ... | 26.608696 | 78 | 0.535948 | aleksandrbezzubenko |
a50134dcbb341271cadf5150ff6c6ea7de1dfca4 | 9,019 | cpp | C++ | test/cpp/test_rrule.cpp | russor/uICAL | e5d23b963876185e7e5bb263d18aad99bce365a5 | [
"MIT"
] | 8 | 2020-11-20T18:10:24.000Z | 2022-03-19T01:37:20.000Z | test/cpp/test_rrule.cpp | russor/uICAL | e5d23b963876185e7e5bb263d18aad99bce365a5 | [
"MIT"
] | null | null | null | test/cpp/test_rrule.cpp | russor/uICAL | e5d23b963876185e7e5bb263d18aad99bce365a5 | [
"MIT"
] | 5 | 2021-10-08T04:52:32.000Z | 2022-03-14T22:05:13.000Z | #include "../catch.hpp"
#include <iostream>
#include <string>
#include <vector>
#include <sstream>
#include <algorithm>
#include <fstream>
#include <map>
#include "uICAL.h"
using test_f = std::function<void(std::string, std::string, std::string, std::vector<std::string>, std::vector<std::string>)>;
static void run_... | 33.779026 | 146 | 0.519015 | russor |
a509f63d0cc3daeb84d705f9fb7b2e7f6d8d0804 | 11,261 | cpp | C++ | src/kernel.cpp | v-dobrev/occa | 58e47f5ccf0d87f5b91e6851b2d74a9456c46b2c | [
"MIT"
] | null | null | null | src/kernel.cpp | v-dobrev/occa | 58e47f5ccf0d87f5b91e6851b2d74a9456c46b2c | [
"MIT"
] | null | null | null | src/kernel.cpp | v-dobrev/occa | 58e47f5ccf0d87f5b91e6851b2d74a9456c46b2c | [
"MIT"
] | null | null | null | /* The MIT License (MIT)
*
* Copyright (c) 2014-2018 David Medina and Tim Warburton
*
* 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 t... | 27.266344 | 85 | 0.593375 | v-dobrev |
a50b360c877ccb2bcd385ecdc9dfa0f6a4991d86 | 3,140 | cpp | C++ | src/Soldier.cpp | sunverwerth/olcjamj2020 | cefb7cc4d586cac50653e4073e67d0954071ee46 | [
"MIT"
] | 4 | 2020-09-27T11:46:14.000Z | 2022-01-08T19:08:06.000Z | src/Soldier.cpp | sunverwerth/olcjam2020 | cefb7cc4d586cac50653e4073e67d0954071ee46 | [
"MIT"
] | null | null | null | src/Soldier.cpp | sunverwerth/olcjam2020 | cefb7cc4d586cac50653e4073e67d0954071ee46 | [
"MIT"
] | null | null | null | /*
Copyright(c) 2020 Stephan Unverwerth
Permission is hereby granted, free of charge, to any person obtaining a copy
of this softwareand associated documentation files(the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distr... | 30.485437 | 170 | 0.658917 | sunverwerth |
a510507e881367d066522d09f575b6664d99df68 | 1,091 | cpp | C++ | test/assert/optional_error.cpp | freundlich/fcppt | 17df1b1ad08bf2435f6902d5465e3bc3fe5e3022 | [
"BSL-1.0"
] | 13 | 2015-02-21T18:35:14.000Z | 2019-12-29T14:08:29.000Z | test/assert/optional_error.cpp | cpreh/fcppt | 17df1b1ad08bf2435f6902d5465e3bc3fe5e3022 | [
"BSL-1.0"
] | 5 | 2016-08-27T07:35:47.000Z | 2019-04-21T10:55:34.000Z | test/assert/optional_error.cpp | freundlich/fcppt | 17df1b1ad08bf2435f6902d5465e3bc3fe5e3022 | [
"BSL-1.0"
] | 8 | 2015-01-10T09:22:37.000Z | 2019-12-01T08:31:12.000Z | // Copyright Carl Philipp Reh 2009 - 2021.
// Distributed under the Boost Software License, Version 1.0.
// (See accompanying file LICENSE_1_0.txt or copy at
// http://www.boost.org/LICENSE_1_0.txt)
#include <fcppt/assert/optional_error.hpp>
#include <fcppt/catch/begin.hpp>
#include <fcppt/catch/e... | 27.974359 | 90 | 0.738772 | freundlich |
a51140fffe69b0aa80f263e22aa044e3291bded0 | 1,104 | cpp | C++ | CSCommon/Source/MPacketHShieldCrypter.cpp | WhyWolfie/source2007 | 324257e9c69bbaec872ebb7ae4f96ab2ce98f520 | [
"FSFAP"
] | null | null | null | CSCommon/Source/MPacketHShieldCrypter.cpp | WhyWolfie/source2007 | 324257e9c69bbaec872ebb7ae4f96ab2ce98f520 | [
"FSFAP"
] | null | null | null | CSCommon/Source/MPacketHShieldCrypter.cpp | WhyWolfie/source2007 | 324257e9c69bbaec872ebb7ae4f96ab2ce98f520 | [
"FSFAP"
] | null | null | null | #include "stdafx.h"
#include "MPacketHShieldCrypter.h"
HSCRYPT_KEYINFO MPacketHShieldCrypter::m_HsKeyInfo;
unsigned char MPacketHShieldCrypter::m_OutputBuf[MAX_PACKET_SIZE];
MPacketHShieldCrypter::MPacketHShieldCrypter(void)
{
}
MPacketHShieldCrypter::~MPacketHShieldCrypter(void)
{
}
DWORD MPacketHShieldCrypter::In... | 26.926829 | 100 | 0.811594 | WhyWolfie |
a5138000b24c1e3673b5dadd61be606caa1c8b1a | 3,229 | cpp | C++ | cobs/file/classic_index_header.cpp | danielf-93/cobs | 56157f93f4564f5ef2c5f62401a2e75a6994687f | [
"MIT"
] | 5 | 2019-02-21T10:42:44.000Z | 2020-01-29T01:56:00.000Z | cobs/file/classic_index_header.cpp | danielf-93/cobs | 56157f93f4564f5ef2c5f62401a2e75a6994687f | [
"MIT"
] | null | null | null | cobs/file/classic_index_header.cpp | danielf-93/cobs | 56157f93f4564f5ef2c5f62401a2e75a6994687f | [
"MIT"
] | 2 | 2019-02-10T21:35:06.000Z | 2019-07-14T01:46:09.000Z | /*******************************************************************************
* cobs/file/classic_index_header.cpp
*
* Copyright (c) 2018 Florian Gauger
*
* All rights reserved. Published under the MIT License in the LICENSE file.
******************************************************************************/
... | 35.877778 | 132 | 0.632704 | danielf-93 |
a51551a1da25a001349d4466de4dc5c6557a12cc | 3,000 | hpp | C++ | include/nmp/concepts.hpp | gnzlbg/nmp | a3c1f286abfabaa043f47ea61ab052c54901be2b | [
"BSL-1.0"
] | 21 | 2015-11-24T16:32:35.000Z | 2020-11-24T13:20:06.000Z | include/nmp/concepts.hpp | gnzlbg/nmp | a3c1f286abfabaa043f47ea61ab052c54901be2b | [
"BSL-1.0"
] | null | null | null | include/nmp/concepts.hpp | gnzlbg/nmp | a3c1f286abfabaa043f47ea61ab052c54901be2b | [
"BSL-1.0"
] | 3 | 2017-08-25T15:42:53.000Z | 2019-10-21T06:36:14.000Z | #pragma once
////////////////////////////////////////////////////////////////////////////////
// Copyright (C) 2014 Gonzalo Brito Gadeschi.
//
// Use, modification and distribution is subject to the Boost Software
// License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at
// http://www.boost.org/LICENSE... | 31.25 | 80 | 0.557 | gnzlbg |
a5157e45c8bfe77eb04abbcd9dd4997c3377849e | 2,309 | cpp | C++ | source/direct3d9/EffectDefault.cpp | HeavenWu/slimdx | e014bb34b89bbf694d01c8f6d6b6dfa3cba58aac | [
"MIT"
] | 85 | 2015-04-06T05:37:10.000Z | 2022-03-22T19:53:03.000Z | source/direct3d9/EffectDefault.cpp | HeavenWu/slimdx | e014bb34b89bbf694d01c8f6d6b6dfa3cba58aac | [
"MIT"
] | 10 | 2016-03-17T11:18:24.000Z | 2021-05-11T09:21:43.000Z | source/direct3d9/EffectDefault.cpp | HeavenWu/slimdx | e014bb34b89bbf694d01c8f6d6b6dfa3cba58aac | [
"MIT"
] | 45 | 2015-09-14T03:54:01.000Z | 2022-03-22T19:53:09.000Z | #include "stdafx.h"
/*
* Copyright (c) 2007-2012 SlimDX Group
*
* 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, ... | 32.069444 | 121 | 0.71243 | HeavenWu |
a51eb91f0a613879611dbdb39f9f0bb382c780ee | 20,182 | cpp | C++ | src/Engine/CameraSystem.cpp | fgagamedev/voID | 37cd56fe2878d036c36dafcf595e48ed85408d02 | [
"MIT"
] | null | null | null | src/Engine/CameraSystem.cpp | fgagamedev/voID | 37cd56fe2878d036c36dafcf595e48ed85408d02 | [
"MIT"
] | null | null | null | src/Engine/CameraSystem.cpp | fgagamedev/voID | 37cd56fe2878d036c36dafcf595e48ed85408d02 | [
"MIT"
] | null | null | null | /*
@file CameraSystem.cpp
@brief Class that manages the game image,
including the scenes the zoom and speed that the screen moves.
@copyright LGPL. MIT License.
*/
#include "Engine/CameraSystem.hpp"
#include "Customs/MapScript.hpp"
CameraSystem *CameraSystem::m_instance = nullptr;
/*
@brief Sets... | 37.304991 | 141 | 0.596125 | fgagamedev |
a522b6e8176227d7ac73230884e6a4d50397e71a | 3,733 | cpp | C++ | Chapter24/BasicOption.cpp | alamlam1982/fincpp | 470469d35d90fc0fde96f119e329aedbc5f68f89 | [
"CECILL-B"
] | null | null | null | Chapter24/BasicOption.cpp | alamlam1982/fincpp | 470469d35d90fc0fde96f119e329aedbc5f68f89 | [
"CECILL-B"
] | null | null | null | Chapter24/BasicOption.cpp | alamlam1982/fincpp | 470469d35d90fc0fde96f119e329aedbc5f68f89 | [
"CECILL-B"
] | null | null | null | // BasicOption.cpp
//
// Author: Daniel Duffy
//
// 2005-10-15 DD new class for C++ book
// 2006-2-1 DD pathological cases U = 0 and T = 0 for C and P
// 2006-2-2 DD implemented the payoff function for call and put
//
// (C) Datasim Component Technology BV 2003-2006
//
#ifndef BasicOption_cpp
#define BasicOption_cpp
... | 15.236735 | 90 | 0.566033 | alamlam1982 |
a52400eeada2ce2a31e06ee49030abf05b6c9785 | 69,471 | cc | C++ | src/translation/translator_naiad.cc | ingomueller-net/Musketeer | 3ed41d93b0a61f00aa8a0b8ec084973b20956b3d | [
"Apache-2.0"
] | 42 | 2015-04-22T07:37:16.000Z | 2021-07-21T02:38:32.000Z | src/translation/translator_naiad.cc | ingomueller-net/Musketeer | 3ed41d93b0a61f00aa8a0b8ec084973b20956b3d | [
"Apache-2.0"
] | 7 | 2016-05-26T11:41:31.000Z | 2016-07-27T15:46:15.000Z | src/translation/translator_naiad.cc | ingomueller-net/Musketeer | 3ed41d93b0a61f00aa8a0b8ec084973b20956b3d | [
"Apache-2.0"
] | 13 | 2015-06-05T02:46:15.000Z | 2022-01-21T07:05:51.000Z | // Copyright (c) 2015 Ionel Gog <ionel.gog@cl.cam.ac.uk>
/*
* 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
*
* THIS CODE IS PROVIDED ... | 44.277247 | 100 | 0.624217 | ingomueller-net |
a52455b6c92045cbf9825130c3d08513df96cf92 | 5,820 | cxx | C++ | Qt/Core/Testing/Cxx/BasicApp2.cxx | mathstuf/ParaView | e867e280545ada10c4ed137f6a966d9d2f3db4cb | [
"Apache-2.0"
] | 17 | 2015-02-17T00:30:26.000Z | 2022-03-17T06:13:02.000Z | Qt/Core/Testing/Cxx/BasicApp2.cxx | mathstuf/ParaView | e867e280545ada10c4ed137f6a966d9d2f3db4cb | [
"Apache-2.0"
] | null | null | null | Qt/Core/Testing/Cxx/BasicApp2.cxx | mathstuf/ParaView | e867e280545ada10c4ed137f6a966d9d2f3db4cb | [
"Apache-2.0"
] | 10 | 2015-08-31T18:20:17.000Z | 2022-02-02T15:16:21.000Z | // This is a simple application for testing new view framework.
// This is for developement purposes only, must be removed once the new views
// are developed.
#include <QMainWindow>
#include <QApplication>
#include <QPointer>
#include <QVTKWidget.h>
#include "pqMain.h"
#include "pqProcessModuleGUIHelper.h"
#include... | 28.115942 | 94 | 0.707388 | mathstuf |
a525350263d1c9a0e77db32dc0eb9fe7d7e0917b | 1,309 | hpp | C++ | include/codegen/include/UnityEngine/MeshFilter.hpp | Futuremappermydud/Naluluna-Modifier-Quest | bfda34370764b275d90324b3879f1a429a10a873 | [
"MIT"
] | 1 | 2021-11-12T09:29:31.000Z | 2021-11-12T09:29:31.000Z | include/codegen/include/UnityEngine/MeshFilter.hpp | Futuremappermydud/Naluluna-Modifier-Quest | bfda34370764b275d90324b3879f1a429a10a873 | [
"MIT"
] | null | null | null | include/codegen/include/UnityEngine/MeshFilter.hpp | Futuremappermydud/Naluluna-Modifier-Quest | bfda34370764b275d90324b3879f1a429a10a873 | [
"MIT"
] | 2 | 2021-10-03T02:14:20.000Z | 2021-11-12T09:29:36.000Z | // Autogenerated from CppHeaderCreator on 7/27/2020 3:10:28 PM
// Created by Sc2ad
// =========================================================================
#pragma once
#pragma pack(push, 8)
// Begin includes
// Including type: UnityEngine.Component
#include "UnityEngine/Component.hpp"
#include "utils/il2cpp-utils.... | 33.564103 | 78 | 0.698243 | Futuremappermydud |
a5268b36b7b379b1b344cfb16f18cb97042deb8f | 10,009 | cpp | C++ | cpp/test/src/DataHolder_test.cpp | LLNL/Sina | f3e9bb3a122cfae2a9fd82c3c5613cff939d3aa1 | [
"MIT"
] | 5 | 2019-06-28T22:52:19.000Z | 2021-09-03T04:28:24.000Z | cpp/test/src/DataHolder_test.cpp | LLNL/Sina | f3e9bb3a122cfae2a9fd82c3c5613cff939d3aa1 | [
"MIT"
] | 2 | 2019-07-03T11:40:38.000Z | 2020-10-28T17:26:50.000Z | cpp/test/src/DataHolder_test.cpp | LLNL/Sina | f3e9bb3a122cfae2a9fd82c3c5613cff939d3aa1 | [
"MIT"
] | 1 | 2019-06-28T22:52:25.000Z | 2019-06-28T22:52:25.000Z | #include <stdexcept>
#include <typeinfo>
#include "gtest/gtest.h"
#include "gmock/gmock.h"
#include "sina/DataHolder.hpp"
#include "sina/testing/ConduitTestUtils.hpp"
namespace sina { namespace testing { namespace {
using ::testing::Contains;
using ::testing::ElementsAre;
using ::testing::Key;
using ::testing::Has... | 34.753472 | 102 | 0.639724 | LLNL |
a528e65715c8d631d23bc836ad4c8ebe924ae2f3 | 2,718 | cpp | C++ | source/gui/program_data.cpp | korteelko/asp_therm | 4e6aa6e2551bb36418d83b7b5450b42d6896f461 | [
"MIT"
] | 1 | 2018-12-11T09:06:47.000Z | 2018-12-11T09:06:47.000Z | source/gui/program_data.cpp | korteelko/asp_therm | 4e6aa6e2551bb36418d83b7b5450b42d6896f461 | [
"MIT"
] | 3 | 2019-11-10T21:08:59.000Z | 2020-01-23T03:05:21.000Z | source/gui/program_data.cpp | korteelko/asp_therm | 4e6aa6e2551bb36418d83b7b5450b42d6896f461 | [
"MIT"
] | null | null | null | /**
* asp_therm - implementation of real gas equations of state
*
*
* Copyright (c) 2020-2021 Mishutinski Yurii
*
* This library is distributed under the MIT License.
* See LICENSE file in the project root for full license information.
*/
#include "program_data.h"
#include "target_sys.h"
#include <QDir>
#inc... | 24.053097 | 76 | 0.681015 | korteelko |
a528e68c3fc61ab15a5811780b05f291eccbf43a | 17,042 | cpp | C++ | arangod/Aql/DistributeExecutor.cpp | corona3000/arangodb | e4d5a5d2d7e83b1a094c5ac01706a13fdecfc1da | [
"Apache-2.0"
] | null | null | null | arangod/Aql/DistributeExecutor.cpp | corona3000/arangodb | e4d5a5d2d7e83b1a094c5ac01706a13fdecfc1da | [
"Apache-2.0"
] | null | null | null | arangod/Aql/DistributeExecutor.cpp | corona3000/arangodb | e4d5a5d2d7e83b1a094c5ac01706a13fdecfc1da | [
"Apache-2.0"
] | null | null | null | ////////////////////////////////////////////////////////////////////////////////
/// DISCLAIMER
///
/// Copyright 2019 ArangoDB GmbH, Cologne, Germany
///
/// 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... | 36.105932 | 106 | 0.67627 | corona3000 |
a52ba2c4cd59adb19c93dcb09574706031780438 | 454 | hpp | C++ | Game/lib/include/core/text.hpp | eliseuegewarth/seven-keys | 7afcd9d9af6d99117bf949e328099ad5f07acef8 | [
"MIT"
] | null | null | null | Game/lib/include/core/text.hpp | eliseuegewarth/seven-keys | 7afcd9d9af6d99117bf949e328099ad5f07acef8 | [
"MIT"
] | null | null | null | Game/lib/include/core/text.hpp | eliseuegewarth/seven-keys | 7afcd9d9af6d99117bf949e328099ad5f07acef8 | [
"MIT"
] | 1 | 2017-08-25T14:37:52.000Z | 2017-08-25T14:37:52.000Z | /*
* Class which represents a text.
*
* Licença: LGPL. Sem copyright.
*/
#ifndef TEXT_H
#define TEXT_H
#include "core/object.hpp"
#include "core/color.hpp"
#include <memory>
using std::unique_ptr;
class Text : public Object
{
public:
Text(Object *parent, const string& text, const Color& color = Col... | 14.645161 | 84 | 0.623348 | eliseuegewarth |
a52bee6770aa24e0bf125bd1404ccb1532f66628 | 414 | cpp | C++ | Gateway/main/src/graphics/API/OGL/VertexBuffer_GL.cpp | Idogftw/ProjectRev | cf3b78d211f0bc38480801bcc3e91b692a6879f4 | [
"MIT"
] | null | null | null | Gateway/main/src/graphics/API/OGL/VertexBuffer_GL.cpp | Idogftw/ProjectRev | cf3b78d211f0bc38480801bcc3e91b692a6879f4 | [
"MIT"
] | null | null | null | Gateway/main/src/graphics/API/OGL/VertexBuffer_GL.cpp | Idogftw/ProjectRev | cf3b78d211f0bc38480801bcc3e91b692a6879f4 | [
"MIT"
] | null | null | null | #include "graphics/API/OGL/VertexBuffer_GL.hpp"
namespace Gateway
{
VertexBuffer_GL::VertexBuffer_GL(VertexObjectTypes m_object_type, VertexDrawTypes t_draw_type, VertexStorageTypes m_storage_type)
: m_draw_type(t_draw_type), IVertexBuffer(m_object_type, t_draw_type, m_storage_type)
{
}
VertexBuffer_GL::~Vertex... | 21.789474 | 130 | 0.782609 | Idogftw |
a52d3e30f73b7d2ce696d5f7383e357de4e7c68f | 794 | hpp | C++ | src/external.hpp | mdraven/terrafirmacraft_alloys | b96b47fbbfcc30d1be2b346049814fc47131e82b | [
"MIT"
] | null | null | null | src/external.hpp | mdraven/terrafirmacraft_alloys | b96b47fbbfcc30d1be2b346049814fc47131e82b | [
"MIT"
] | null | null | null | src/external.hpp | mdraven/terrafirmacraft_alloys | b96b47fbbfcc30d1be2b346049814fc47131e82b | [
"MIT"
] | null | null | null |
#ifndef _EXTERNAL_H_917E67ED622B_
#define _EXTERNAL_H_917E67ED622B_
#ifdef __GNUC__
#pragma GCC system_header
#endif
// Qt5
#include <QtCore/QFile>
#include <QtCore/QJsonDocument>
#include <QtCore/QJsonObject>
#include <QtCore/QMap>
#include <QtCore/QString>
#include <QtCore/QtDebug>
#include <QtGui/QPixmap>
#includ... | 19.85 | 38 | 0.7733 | mdraven |
a5311f43636a12976478872610ee503b8375ee19 | 126 | hpp | C++ | Core/Game/Enum/GameCommand.hpp | LinkClinton/MinesweeperVersus | fc5d4fa8aa7e2b6d4fd798d52a1614c243f4e308 | [
"MIT"
] | 1 | 2019-11-30T07:12:32.000Z | 2019-11-30T07:12:32.000Z | Core/Game/Enum/GameCommand.hpp | LinkClinton/MinesweeperVersus | fc5d4fa8aa7e2b6d4fd798d52a1614c243f4e308 | [
"MIT"
] | null | null | null | Core/Game/Enum/GameCommand.hpp | LinkClinton/MinesweeperVersus | fc5d4fa8aa7e2b6d4fd798d52a1614c243f4e308 | [
"MIT"
] | null | null | null | #pragma once
namespace Minesweeper {
enum class GameCommand : unsigned {
eCheckAll = 0,
eCheck = 1,
eFlag = 2
};
} | 11.454545 | 36 | 0.642857 | LinkClinton |
a53282620a38d44b270769c19209c87daa7e1f9a | 464 | cpp | C++ | problem_solving/CodeForces/463A/11651884_AC_15ms_4kB.cpp | cosmicray001/academic | 6aa142baeba4bb1ad73b8669e37305ca0b5102a7 | [
"MIT"
] | 2 | 2020-09-02T12:07:47.000Z | 2020-11-17T11:17:16.000Z | problem_solving/CodeForces/463A/11651884_AC_15ms_4kB.cpp | cosmicray001/academic | 6aa142baeba4bb1ad73b8669e37305ca0b5102a7 | [
"MIT"
] | null | null | null | problem_solving/CodeForces/463A/11651884_AC_15ms_4kB.cpp | cosmicray001/academic | 6aa142baeba4bb1ad73b8669e37305ca0b5102a7 | [
"MIT"
] | 4 | 2020-08-11T14:23:34.000Z | 2020-11-17T10:52:31.000Z | #include <bits/stdc++.h>
using namespace std;
int main()
{
int len, s;
scanf("%d %d", &len, &s);
int max_ve = 0;
int a, b;
bool f = 0;
for(int i = 0; i < len; i++){
scanf("%d %d", &a, &b);
if(a < s && (100 - b) > max_ve && b){
max_ve = max(max_ve, (100 - b));
f = 1;
}
else if(b... | 16.571429 | 41 | 0.43319 | cosmicray001 |
a534f14b8dc66f7d0140eb112c0e65ed19c36fea | 2,346 | cpp | C++ | gw2-discordlink/RpcClient.cpp | Raffy23/gw2-discordlink | e215af10f192efd5395780f30ca47c29faaaa845 | [
"MIT"
] | 2 | 2019-04-14T17:41:16.000Z | 2019-04-21T22:58:39.000Z | gw2-discordlink/RpcClient.cpp | Raffy23/gw2-discordlink | e215af10f192efd5395780f30ca47c29faaaa845 | [
"MIT"
] | null | null | null | gw2-discordlink/RpcClient.cpp | Raffy23/gw2-discordlink | e215af10f192efd5395780f30ca47c29faaaa845 | [
"MIT"
] | null | null | null | #include "stdafx.h"
#include "RpcClient.h"
size_t curlCallbackResponse(void *contents, size_t size, size_t nmemb, std::string *s);
size_t curlCallbackHeaders(char* b, size_t size, size_t nitems, std::map<std::string, std::string> *userdata);
RpcClient::RpcClient(const std::string &language, const std::string &apikey)... | 33.514286 | 117 | 0.734868 | Raffy23 |
a5383954a101ef638414811375f09c8094cc182a | 2,529 | ipp | C++ | include/benchmarks/implementation/component/BenchmarkParticleSystemSimple.ipp | thorbenlouw/CUP-CFD | d06f7673a1ed12bef24de4f1b828ef864fa45958 | [
"MIT"
] | null | null | null | include/benchmarks/implementation/component/BenchmarkParticleSystemSimple.ipp | thorbenlouw/CUP-CFD | d06f7673a1ed12bef24de4f1b828ef864fa45958 | [
"MIT"
] | null | null | null | include/benchmarks/implementation/component/BenchmarkParticleSystemSimple.ipp | thorbenlouw/CUP-CFD | d06f7673a1ed12bef24de4f1b828ef864fa45958 | [
"MIT"
] | null | null | null | /**
* @file
* @author University of Warwick
* @version 1.0
*
* @section LICENSE
*
* @section DESCRIPTION
*
* Header level definitions for the BenchmarkParticleSystem class.
*/
#ifndef CUPCFD_BENCHMARK_BENCHMARK_PARTICLESYSTEM_SIMPLE_IPP_H
#define CUPCFD_BENCHMARK_BENCHMARK_PARTICLESYSTEM_SIMPLE_IPP_H
#inclu... | 29.406977 | 113 | 0.697113 | thorbenlouw |
a53f22692db61fddc8b87bb8977d87ccc0fd8a1a | 3,354 | hpp | C++ | games/saloon/young_gun.hpp | JackLimes/Joueur.cpp | d7dc45b5f95d9b3fc8c9cb846d63d6f44c83a61b | [
"MIT"
] | 9 | 2015-12-09T18:49:55.000Z | 2021-01-08T21:45:54.000Z | games/saloon/young_gun.hpp | JackLimes/Joueur.cpp | d7dc45b5f95d9b3fc8c9cb846d63d6f44c83a61b | [
"MIT"
] | 14 | 2015-11-06T19:26:56.000Z | 2019-10-19T07:45:11.000Z | games/saloon/young_gun.hpp | JackLimes/Joueur.cpp | d7dc45b5f95d9b3fc8c9cb846d63d6f44c83a61b | [
"MIT"
] | 21 | 2015-10-16T03:57:23.000Z | 2020-11-08T16:48:16.000Z | #ifndef GAMES_SALOON_YOUNG_GUN_H
#define GAMES_SALOON_YOUNG_GUN_H
// YoungGun
// An eager young person that wants to join your gang, and will call in the veteran Cowboys you need to win the brawl in the saloon.
// DO NOT MODIFY THIS FILE
// Never try to directly create an instance of this class, or modify its member ... | 32.882353 | 143 | 0.66458 | JackLimes |
a53f97a4fe6b0cb9078bec0ac5db51d578e78b9e | 5,905 | tcc | C++ | libraries/nodes/tcc/MultiplexerNode.tcc | siddu1998/ELL | 993d5370f0f7a274e8dfd8f43220c792be46f314 | [
"MIT"
] | 1 | 2018-11-08T06:19:31.000Z | 2018-11-08T06:19:31.000Z | libraries/nodes/tcc/MultiplexerNode.tcc | vishnoitanuj/ELL | 993d5370f0f7a274e8dfd8f43220c792be46f314 | [
"MIT"
] | null | null | null | libraries/nodes/tcc/MultiplexerNode.tcc | vishnoitanuj/ELL | 993d5370f0f7a274e8dfd8f43220c792be46f314 | [
"MIT"
] | 1 | 2019-12-19T10:02:48.000Z | 2019-12-19T10:02:48.000Z | ////////////////////////////////////////////////////////////////////////////////////////////////////
//
// Project: Embedded Learning Library (ELL)
// File: MultiplexerNode.tcc (nodes)
// Authors: Ofer Dekel
//
////////////////////////////////////////////////////////////////////////////////////////////////////... | 44.398496 | 194 | 0.657917 | siddu1998 |
a5411101df727829f26e685e806b84c1a319c403 | 395 | hpp | C++ | include/pkg/deb/preinst.hpp | naughtybikergames/pkg | 9a78380c6cf82c95dec3968a7ed69000b349113d | [
"MIT"
] | null | null | null | include/pkg/deb/preinst.hpp | naughtybikergames/pkg | 9a78380c6cf82c95dec3968a7ed69000b349113d | [
"MIT"
] | null | null | null | include/pkg/deb/preinst.hpp | naughtybikergames/pkg | 9a78380c6cf82c95dec3968a7ed69000b349113d | [
"MIT"
] | null | null | null | #ifndef PKG_DEB_PREINST_HPP
#define PKG_DEB_PREINST_HPP
#include <string>
namespace pkg {
namespace deb {
class preinst {
private:
std::string _preinst;
public:
preinst();
std::string to_string() const;
};
}
}
std::ostre... | 18.809524 | 77 | 0.556962 | naughtybikergames |
a542bf3623e94562e2ad36d7a27ec2c15bc72343 | 4,507 | cpp | C++ | position-receiver-qt/src/positionreceiver.cpp | keithel/helloworld-capnproto-streamer | 946b14465af4ea7ee5bea4d7e521b38abd6f4d1e | [
"Apache-2.0"
] | 1 | 2017-11-03T08:13:04.000Z | 2017-11-03T08:13:04.000Z | position-receiver-qt/src/positionreceiver.cpp | keithel/helloworld-capnproto-streamer | 946b14465af4ea7ee5bea4d7e521b38abd6f4d1e | [
"Apache-2.0"
] | null | null | null | position-receiver-qt/src/positionreceiver.cpp | keithel/helloworld-capnproto-streamer | 946b14465af4ea7ee5bea4d7e521b38abd6f4d1e | [
"Apache-2.0"
] | null | null | null | #include "positionreceiver.h"
#include <QUdpSocket>
#include <capnp/message.h>
#include <capnp/serialize.h>
#include "position.capnp.h"
#include <QtConcurrent/QtConcurrent>
using ::capnp::word;
PositionReceiver::PositionReceiver(QObject* parent, bool enableTesting)
: QObject(parent)
, m_nPerSecCounter(0)
... | 31.298611 | 164 | 0.658753 | keithel |
a543bf12b8bfb56239611159a144ce6c7d0cd549 | 1,941 | cpp | C++ | aws-cpp-sdk-appstream/source/model/SharedImagePermissions.cpp | curiousjgeorge/aws-sdk-cpp | 09b65deba03cfbef9a1e5d5986aa4de71bc03cd8 | [
"Apache-2.0"
] | 2 | 2019-03-11T15:50:55.000Z | 2020-02-27T11:40:27.000Z | aws-cpp-sdk-appstream/source/model/SharedImagePermissions.cpp | curiousjgeorge/aws-sdk-cpp | 09b65deba03cfbef9a1e5d5986aa4de71bc03cd8 | [
"Apache-2.0"
] | null | null | null | aws-cpp-sdk-appstream/source/model/SharedImagePermissions.cpp | curiousjgeorge/aws-sdk-cpp | 09b65deba03cfbef9a1e5d5986aa4de71bc03cd8 | [
"Apache-2.0"
] | 1 | 2019-01-18T13:03:55.000Z | 2019-01-18T13:03:55.000Z | /*
* Copyright 2010-2017 Amazon.com, Inc. or its affiliates. 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.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" fil... | 22.835294 | 78 | 0.756826 | curiousjgeorge |
a5470e0033e2faf088392f6744563ef2d0c86f0a | 823 | cpp | C++ | Reverse Engineering/C++/Medium/Abyss/source/index.cpp | Original-Psych0/SweetChallenges | 828cb622a9320abb0676964e595fb2a95525864e | [
"MIT"
] | 2 | 2021-11-27T06:31:22.000Z | 2022-03-25T02:14:41.000Z | Reverse Engineering/C++/Medium/Abyss/source/index.cpp | Original-Psych0/SweetChallenges | 828cb622a9320abb0676964e595fb2a95525864e | [
"MIT"
] | null | null | null | Reverse Engineering/C++/Medium/Abyss/source/index.cpp | Original-Psych0/SweetChallenges | 828cb622a9320abb0676964e595fb2a95525864e | [
"MIT"
] | 1 | 2022-03-25T02:14:42.000Z | 2022-03-25T02:14:42.000Z | //Dependencies
#include <iostream>
//Workspaces
using namespace std;
//Variables
string the_password = "awnrawraw";
//Functions
int adder(){
the_password += "_21n52859112";
return 0;
}
//Main
int main(){
the_password += "a";
the_password += "c";
the_password += "d";
the_password += "f";
... | 18.704545 | 101 | 0.583232 | Original-Psych0 |
a54859cacb068f67bdb9013c387bc1369287231d | 721 | cpp | C++ | example/main.cpp | martin-olivier/dylib | e06af0f3b5c780d35659c54ea3f7aad9ae008494 | [
"MIT"
] | 19 | 2022-01-24T12:42:48.000Z | 2022-03-26T05:37:48.000Z | example/main.cpp | martin-olivier/Dylib | e06af0f3b5c780d35659c54ea3f7aad9ae008494 | [
"MIT"
] | 1 | 2022-03-01T10:09:51.000Z | 2022-03-02T17:16:58.000Z | example/main.cpp | martin-olivier/dylib | e06af0f3b5c780d35659c54ea3f7aad9ae008494 | [
"MIT"
] | 2 | 2022-01-13T02:50:19.000Z | 2022-01-18T04:22:24.000Z | #include <iostream>
#include "dylib.hpp"
int main() {
try {
dylib lib("./dynamic_lib", dylib::extension);
auto adder = lib.get_function<double(double, double)>("adder");
std::cout << adder(5, 10) << std::endl;
auto printer = lib.get_function<void()>("print_hello");
... | 28.84 | 72 | 0.539528 | martin-olivier |
a549258617852e8cb6b12eafc1dd0009411e6cd8 | 501 | cpp | C++ | source/radeon_gpu_analyzer_gui/rg_browse_button.cpp | clayne/RGA | 7ed370e00b635c5b558d4af4eb050e2a38f77e53 | [
"MIT"
] | 97 | 2020-03-12T01:47:49.000Z | 2022-03-16T02:29:04.000Z | source/radeon_gpu_analyzer_gui/rg_browse_button.cpp | clayne/RGA | 7ed370e00b635c5b558d4af4eb050e2a38f77e53 | [
"MIT"
] | 34 | 2020-03-10T16:38:48.000Z | 2022-03-19T04:05:04.000Z | source/radeon_gpu_analyzer_gui/rg_browse_button.cpp | clayne/RGA | 7ed370e00b635c5b558d4af4eb050e2a38f77e53 | [
"MIT"
] | 14 | 2020-03-13T00:50:23.000Z | 2022-01-31T09:06:54.000Z | // Local.
#include "radeon_gpu_analyzer_gui/qt/rg_browse_button.h"
RgBrowseButton::RgBrowseButton(QWidget* parent) : QPushButton(parent)
{
}
void RgBrowseButton::focusInEvent(QFocusEvent* event)
{
emit BrowseButtonFocusInEvent();
// Pass the event onto the base class.
QPushButton::focusInEvent(event);
}
... | 21.782609 | 69 | 0.748503 | clayne |
a549391dbcc1e656f320def31201b10150472bbc | 2,580 | hpp | C++ | ueye.cpp/include/trigger.hpp | fallfromgrace/ueye.cpp | 775069bca16a6eeea5bb8e5dcda347328f8f2f49 | [
"MIT"
] | null | null | null | ueye.cpp/include/trigger.hpp | fallfromgrace/ueye.cpp | 775069bca16a6eeea5bb8e5dcda347328f8f2f49 | [
"MIT"
] | null | null | null | ueye.cpp/include/trigger.hpp | fallfromgrace/ueye.cpp | 775069bca16a6eeea5bb8e5dcda347328f8f2f49 | [
"MIT"
] | null | null | null | #pragma once
#include <stdexcept>
#include "uEye.h"
#include "includes.hpp"
#include "error.hpp"
namespace ids
{
//
enum trigger_mode
{
// trigger is generated by the driver
software,
// trigger is generated by the hardware.
freerun,
// trigger is external, from hi to lo.
hi_lo,
};
namespace de... | 18.297872 | 63 | 0.698062 | fallfromgrace |
a549a7d98c971e1f32e3ca794368414acfeecc8c | 5,758 | cpp | C++ | ardupilot_sitl_gazebo_plugin/aruco_mark_plugin/src/mark_plugin.cpp | adarshrs/Drone-Simulator-for-ROS-Kinetic | a44eef1bcaacc55539325bba663f0c8abfd7c75b | [
"MIT"
] | null | null | null | ardupilot_sitl_gazebo_plugin/aruco_mark_plugin/src/mark_plugin.cpp | adarshrs/Drone-Simulator-for-ROS-Kinetic | a44eef1bcaacc55539325bba663f0c8abfd7c75b | [
"MIT"
] | null | null | null | ardupilot_sitl_gazebo_plugin/aruco_mark_plugin/src/mark_plugin.cpp | adarshrs/Drone-Simulator-for-ROS-Kinetic | a44eef1bcaacc55539325bba663f0c8abfd7c75b | [
"MIT"
] | null | null | null | #include <boost/bind.hpp>
#include <gazebo/gazebo.hh>
#include <gazebo/physics/physics.hh>
#include <gazebo/common/common.hh>
#include <stdio.h>
// Circle radius
#define RADIUS 3
// Square height and width
#define HEIGHT 3
#define WIDTH 3
// Define shapes
#define CIRCLE 0
#define SQUARE 1
#define STOP 2
#define D... | 25.591111 | 142 | 0.492185 | adarshrs |
a54b163236b066236f43f2cc172d628c9bbe95a6 | 9,014 | cpp | C++ | Source/Engine/Resources/tiledMap/tiledSet.cpp | SirRamEsq/LEngine | 24f748a4f9e29cd5d35d012b46e1bc7a2c285f9c | [
"Apache-2.0"
] | 1 | 2020-05-24T14:04:12.000Z | 2020-05-24T14:04:12.000Z | Source/Engine/Resources/tiledMap/tiledSet.cpp | SirRamEsq/LEngine | 24f748a4f9e29cd5d35d012b46e1bc7a2c285f9c | [
"Apache-2.0"
] | 21 | 2017-09-20T13:39:12.000Z | 2018-01-27T22:21:13.000Z | Source/Engine/Resources/tiledMap/tiledSet.cpp | SirRamEsq/LEngine | 24f748a4f9e29cd5d35d012b46e1bc7a2c285f9c | [
"Apache-2.0"
] | null | null | null | #include "tiledSet.h"
#include "../../Kernel.h"
#include "math.h"
TileAnimation::TileAnimation() {
cachedLength = 0;
cachedSize = 0;
}
int TileAnimation::Length() const {
// update cahcedLength if needed
if (frames.size() != cachedSize) {
int totalLength = 0;
for (auto i = frames.begin(); i != frames.... | 28.080997 | 80 | 0.577546 | SirRamEsq |
a54d732ae2ee09b3333c4c9192e32cbed733f148 | 2,451 | cc | C++ | components/viz/service/display/delegated_ink_point_renderer_base.cc | mghgroup/Glide-Browser | 6a4c1eaa6632ec55014fee87781c6bbbb92a2af5 | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | null | null | null | components/viz/service/display/delegated_ink_point_renderer_base.cc | mghgroup/Glide-Browser | 6a4c1eaa6632ec55014fee87781c6bbbb92a2af5 | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | null | null | null | components/viz/service/display/delegated_ink_point_renderer_base.cc | mghgroup/Glide-Browser | 6a4c1eaa6632ec55014fee87781c6bbbb92a2af5 | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 2 | 2021-01-05T23:43:46.000Z | 2021-01-07T23:36:34.000Z | // Copyright 2020 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "components/viz/service/display/delegated_ink_point_renderer_base.h"
#include "base/trace_event/trace_event.h"
#include "components/viz/common/d... | 37.707692 | 80 | 0.748674 | mghgroup |
a54fdaae001d52c4982090fb98c07f1ee0d67862 | 12,524 | cc | C++ | src/mesh/mesh_logical/test/test_mesh_logical.cc | fmyuan/amanzi | edb7b815ae6c22956c8519acb9d87b92a9915ed4 | [
"RSA-MD"
] | 37 | 2017-04-26T16:27:07.000Z | 2022-03-01T07:38:57.000Z | src/mesh/mesh_logical/test/test_mesh_logical.cc | fmyuan/amanzi | edb7b815ae6c22956c8519acb9d87b92a9915ed4 | [
"RSA-MD"
] | 494 | 2016-09-14T02:31:13.000Z | 2022-03-13T18:57:05.000Z | src/mesh/mesh_logical/test/test_mesh_logical.cc | fmyuan/amanzi | edb7b815ae6c22956c8519acb9d87b92a9915ed4 | [
"RSA-MD"
] | 43 | 2016-09-26T17:58:40.000Z | 2022-03-25T02:29:59.000Z | /* -*- mode: c++; c-default-style: "google"; indent-tabs-mode: nil -*- */
#include <UnitTest++.h>
#include <mpi.h>
#include <iostream>
#include "Teuchos_RCP.hpp"
#include "AmanziComm.hh"
#include "RegionEnumerated.hh"
#include "MeshLogical.hh"
#include "MeshLogicalFactory.hh"
#include "Geometry.hh"
#include "MeshL... | 31.706329 | 89 | 0.633424 | fmyuan |
a5501944071accdf8d67cebf61a60eeb19fa0483 | 20,101 | inl | C++ | extensions/winrt/_winrt/include/convert.inl | ms-iot/python | a8f8fba1214289572713520f83409762a4446fea | [
"BSD-3-Clause"
] | 70 | 2015-06-20T17:59:24.000Z | 2021-05-03T02:01:49.000Z | extensions/winrt/_winrt/include/convert.inl | ms-iot/python | a8f8fba1214289572713520f83409762a4446fea | [
"BSD-3-Clause"
] | 16 | 2015-06-11T14:57:43.000Z | 2016-12-03T00:22:13.000Z | extensions/winrt/_winrt/include/convert.inl | ms-iot/python | a8f8fba1214289572713520f83409762a4446fea | [
"BSD-3-Clause"
] | 36 | 2015-05-15T20:30:44.000Z | 2020-11-14T19:31:40.000Z | #pragma once
#include "Python.h"
#include "ExceptionGuard.h"
#include "Windows.Foundation.h"
#include <inspectable.h>
inline PyObjectPtr PyUnicode_FromPlatformString(Platform::String^ str)
{
if (!str)
{
return PyObjectPtr::CreateAttach(PyUnicode_FromUnicode(NULL, 0));
}
return PyObjectPtr::Cre... | 27.200271 | 180 | 0.571215 | ms-iot |
a550d54270f00620cc18cef8367724c4e8ebd5ef | 128 | cpp | C++ | tensorflow-yolo-ios/dependencies/eigen/doc/examples/Tutorial_BlockOperations_colrow.cpp | initialz/tensorflow-yolo-face-ios | ba74cf39168d0128e91318e65a1b88ce4d65a167 | [
"MIT"
] | 27 | 2017-06-07T19:07:32.000Z | 2020-10-15T10:09:12.000Z | tensorflow-yolo-ios/dependencies/eigen/doc/examples/Tutorial_BlockOperations_colrow.cpp | initialz/tensorflow-yolo-face-ios | ba74cf39168d0128e91318e65a1b88ce4d65a167 | [
"MIT"
] | 3 | 2017-08-25T17:39:46.000Z | 2017-11-18T03:40:55.000Z | tensorflow-yolo-ios/dependencies/eigen/doc/examples/Tutorial_BlockOperations_colrow.cpp | initialz/tensorflow-yolo-face-ios | ba74cf39168d0128e91318e65a1b88ce4d65a167 | [
"MIT"
] | 10 | 2017-06-16T18:04:45.000Z | 2018-07-05T17:33:01.000Z | version https://git-lfs.github.com/spec/v1
oid sha256:6eee36fb9361edc0af6f8605621c45995ebc169735c71ca31c82ac7f243142b3
size 390
| 32 | 75 | 0.882813 | initialz |
a555cb2599585abdee7f98b052c1dfc10a30c904 | 1,871 | cpp | C++ | Sid's Contests/LeetCode contests/Virtual Contests/Weekly Contest 244/Determine Whether Matrix Can Be Obtained By Rotation.cpp | Tiger-Team-01/DSA-A-Z-Practice | e08284ffdb1409c08158dd4e90dc75dc3a3c5b18 | [
"MIT"
] | 14 | 2021-08-22T18:21:14.000Z | 2022-03-08T12:04:23.000Z | Sid's Contests/LeetCode contests/Virtual Contests/Weekly Contest 244/Determine Whether Matrix Can Be Obtained By Rotation.cpp | Tiger-Team-01/DSA-A-Z-Practice | e08284ffdb1409c08158dd4e90dc75dc3a3c5b18 | [
"MIT"
] | 1 | 2021-10-17T18:47:17.000Z | 2021-10-17T18:47:17.000Z | Sid's Contests/LeetCode contests/Virtual Contests/Weekly Contest 244/Determine Whether Matrix Can Be Obtained By Rotation.cpp | Tiger-Team-01/DSA-A-Z-Practice | e08284ffdb1409c08158dd4e90dc75dc3a3c5b18 | [
"MIT"
] | 5 | 2021-09-01T08:21:12.000Z | 2022-03-09T12:13:39.000Z | class Solution {
public:
//OM GAN GANAPATHAYE NAMO NAMAH
//JAI SHRI RAM
//JAI BAJRANGBALI
//AMME NARAYANA, DEVI NARAYANA, LAKSHMI NARAYANA, BHADRE NARAYANA
vector<vector<int>> rotateMatrix(vector<vector<int>> grid)
{
vector<vector<int>> res;
int m = grid.size();
int n ... | 31.183333 | 78 | 0.490647 | Tiger-Team-01 |
a224bc436814edb111471057f2485c01eb7699b6 | 266 | cpp | C++ | Sandbox/Source/Thread/IETThread.cpp | Clymiaru/GDPARCM_Sandbox | 21d6d7ccaef1b03a4d631e757cb824341e84e5d6 | [
"MIT"
] | null | null | null | Sandbox/Source/Thread/IETThread.cpp | Clymiaru/GDPARCM_Sandbox | 21d6d7ccaef1b03a4d631e757cb824341e84e5d6 | [
"MIT"
] | null | null | null | Sandbox/Source/Thread/IETThread.cpp | Clymiaru/GDPARCM_Sandbox | 21d6d7ccaef1b03a4d631e757cb824341e84e5d6 | [
"MIT"
] | null | null | null | #include "pch.h"
#include <thread>
#include "IETThread.h"
namespace Thread
{
void IETThread::Start()
{
std::thread(&IETThread::Run, this).detach();
}
void IETThread::Sleep(const int ms)
{
std::this_thread::sleep_for(std::chrono::milliseconds(ms));
}
}
| 14.777778 | 61 | 0.672932 | Clymiaru |
a224d409d24fbd96a51321d4450ead11c2b21ecc | 2,371 | cpp | C++ | QScreenshot/ScreenshotCreator.cpp | dbautsch/QScreenshot | 80fc3113a342eb4498d8f24aa77230a0d8bbc170 | [
"MIT"
] | 2 | 2018-04-10T06:32:26.000Z | 2021-04-23T14:50:04.000Z | QScreenshot/ScreenshotCreator.cpp | dbautsch/QScreenshot | 80fc3113a342eb4498d8f24aa77230a0d8bbc170 | [
"MIT"
] | 2 | 2016-06-10T12:55:45.000Z | 2016-07-08T14:25:48.000Z | QScreenshot/ScreenshotCreator.cpp | dbautsch/QScreenshot | 80fc3113a342eb4498d8f24aa77230a0d8bbc170 | [
"MIT"
] | 1 | 2018-12-07T06:02:24.000Z | 2018-12-07T06:02:24.000Z | /*!
* Copyright (c) 2016 Dawid Bautsch dawid.bautsch@gmail.com
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
* NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
* HO... | 27.569767 | 101 | 0.707296 | dbautsch |
a22837c986bbed983a482bd1a48ba871980f1fc2 | 10,625 | cc | C++ | spatial_pyramid/validate_cli.cc | sanchom/sjm | e6ed4c9f3abcf04a6b02b97b6f14dd50af47364a | [
"BSD-2-Clause"
] | 9 | 2015-06-01T11:47:30.000Z | 2021-09-06T02:36:28.000Z | spatial_pyramid/validate_cli.cc | sanchom/sjm | e6ed4c9f3abcf04a6b02b97b6f14dd50af47364a | [
"BSD-2-Clause"
] | null | null | null | spatial_pyramid/validate_cli.cc | sanchom/sjm | e6ed4c9f3abcf04a6b02b97b6f14dd50af47364a | [
"BSD-2-Clause"
] | 8 | 2015-05-02T03:57:10.000Z | 2017-10-05T06:38:13.000Z | // Copyright 2011 Sancho McCann
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are
// met:
// - Redistributions of source code must retain the above copyright
// notice, this list of conditions and the following disclaimer.... | 36.764706 | 79 | 0.681035 | sanchom |
a2286e6a1ddaffdfd7874775169539a4217dd602 | 1,356 | cpp | C++ | DP/MED.cpp | chhanganivarun/DS | 13b9ed64a2bfd7fb443d99153568bf6261ae31c6 | [
"MIT"
] | 1 | 2018-01-26T07:49:05.000Z | 2018-01-26T07:49:05.000Z | DP/MED.cpp | chhanganivarun/DS | 13b9ed64a2bfd7fb443d99153568bf6261ae31c6 | [
"MIT"
] | null | null | null | DP/MED.cpp | chhanganivarun/DS | 13b9ed64a2bfd7fb443d99153568bf6261ae31c6 | [
"MIT"
] | null | null | null | //Minimum Edit Distance
#include <bits/stdc++.h>
using namespace std;
std::vector<std::vector<int> > med_arr;
int MED(string a, string b,int m,int n,int subscost,int inscost,int delcost)
{
if(!n)
return m;
if(!m)
return n;
if(med_arr[m-1][n-1]!=-1)
return med_arr[m-1][n-1];
if(... | 27.673469 | 186 | 0.580383 | chhanganivarun |
a22a57077ee4c09670e77e4a7886380002097908 | 586 | cpp | C++ | ch11/fill1.cpp | bashell/CppStandardLibrary | 2aae03019288132c911036aeb9ba36edc56e510b | [
"MIT"
] | null | null | null | ch11/fill1.cpp | bashell/CppStandardLibrary | 2aae03019288132c911036aeb9ba36edc56e510b | [
"MIT"
] | null | null | null | ch11/fill1.cpp | bashell/CppStandardLibrary | 2aae03019288132c911036aeb9ba36edc56e510b | [
"MIT"
] | null | null | null | #include "algostuff.hpp"
using namespace std;
int main()
{
fill_n(ostream_iterator<float>(cout, " "), 10, 7.7);
cout << endl;
list<string> coll;
fill_n(back_inserter(coll), 9, "hello");
PRINT_ELEMENTS(coll, "coll: ");
fill(coll.begin(), coll.end(), "again");
PRINT_ELEMENTS(coll, "col... | 20.928571 | 56 | 0.581911 | bashell |
a22a839e34b8e3f4f80249728666222205463618 | 410 | cpp | C++ | Dataset/Leetcode/test/83/111.cpp | kkcookies99/UAST | fff81885aa07901786141a71e5600a08d7cb4868 | [
"MIT"
] | null | null | null | Dataset/Leetcode/test/83/111.cpp | kkcookies99/UAST | fff81885aa07901786141a71e5600a08d7cb4868 | [
"MIT"
] | null | null | null | Dataset/Leetcode/test/83/111.cpp | kkcookies99/UAST | fff81885aa07901786141a71e5600a08d7cb4868 | [
"MIT"
] | null | null | null | class Solution {
public:
ListNode* XXX(ListNode* head)
{
ListNode*node=head;
if(head==NULL || head->next==NULL)
return head;
while(node->next)
{
if(node->next->val==node->val)
{
node->next=node->next->next;
cont... | 19.52381 | 44 | 0.421951 | kkcookies99 |
a22be83a993d7edfef7f06e6a0308bbde087d778 | 1,423 | cpp | C++ | src/provider/uaNodeSetXml/sasModelProvider/HaXmlUaNodeFactoryManager.cpp | peramic/OPC-UA.Server | ebfafb0f9a1943fc1f2d44f20a0497a59e5bfd97 | [
"Apache-2.0"
] | null | null | null | src/provider/uaNodeSetXml/sasModelProvider/HaXmlUaNodeFactoryManager.cpp | peramic/OPC-UA.Server | ebfafb0f9a1943fc1f2d44f20a0497a59e5bfd97 | [
"Apache-2.0"
] | null | null | null | src/provider/uaNodeSetXml/sasModelProvider/HaXmlUaNodeFactoryManager.cpp | peramic/OPC-UA.Server | ebfafb0f9a1943fc1f2d44f20a0497a59e5bfd97 | [
"Apache-2.0"
] | null | null | null | #include "HaXmlUaNodeFactoryManager.h"
class HaXmlUaNodeFactoryManagerPrivate {
friend class HaXmlUaNodeFactoryManager;
private:
};
HaXmlUaNodeFactoryManager::HaXmlUaNodeFactoryManager() {
d = new HaXmlUaNodeFactoryManagerPrivate();
}
HaXmlUaNodeFactoryManager::~HaXmlUaNodeFactoryManager() {
delete d;
}
... | 33.880952 | 78 | 0.770204 | peramic |
a23217c2690fcea436489cb93c343daff1d1d9bc | 2,196 | hxx | C++ | com/oleutest/perform/cairole/ui/hlp_app.hxx | npocmaka/Windows-Server-2003 | 5c6fe3db626b63a384230a1aa6b92ac416b0765f | [
"Unlicense"
] | 17 | 2020-11-13T13:42:52.000Z | 2021-09-16T09:13:13.000Z | com/oleutest/perform/cairole/ui/hlp_app.hxx | sancho1952007/Windows-Server-2003 | 5c6fe3db626b63a384230a1aa6b92ac416b0765f | [
"Unlicense"
] | 2 | 2020-10-19T08:02:06.000Z | 2020-10-19T08:23:18.000Z | com/oleutest/perform/cairole/ui/hlp_app.hxx | sancho1952007/Windows-Server-2003 | 5c6fe3db626b63a384230a1aa6b92ac416b0765f | [
"Unlicense"
] | 14 | 2020-11-14T09:43:20.000Z | 2021-08-28T08:59:57.000Z | //**********************************************************************
// File name: hlp_app.hxx
//
// Definition of CSimpleApp
//
// Copyright (c) 1992 - 1993 Microsoft Corporation. All rights reserved.
//**********************************************************************
#if !defined( _HLP_APP_HXX_... | 28.894737 | 79 | 0.648452 | npocmaka |
a234eae579c1b05a9c63e83b04793ae92c68b4c8 | 1,986 | cpp | C++ | src/test/esperanza/admincommand_tests.cpp | frolosofsky/unit-e | d3d12508b915986841bd19c4dee9e50dd662a112 | [
"MIT"
] | 36 | 2019-04-17T18:58:51.000Z | 2022-01-18T12:16:27.000Z | src/test/esperanza/admincommand_tests.cpp | frolosofsky/unit-e | d3d12508b915986841bd19c4dee9e50dd662a112 | [
"MIT"
] | 109 | 2019-04-17T17:19:45.000Z | 2019-06-19T15:16:37.000Z | src/test/esperanza/admincommand_tests.cpp | frolosofsky/unit-e | d3d12508b915986841bd19c4dee9e50dd662a112 | [
"MIT"
] | 16 | 2019-04-17T17:35:42.000Z | 2020-01-09T17:51:05.000Z | // Copyright (c) 2018 The Unit-e developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include <addrman.h>
#include <esperanza/admincommand.h>
#include <test/test_unite.h>
#include <boost/test/unit_test.hpp>
BOOST_FIXTURE... | 30.553846 | 79 | 0.75428 | frolosofsky |
a235e26ddc3bd4fea4756555978b06196f356ab3 | 1,091 | cpp | C++ | C++/competitive/CodeChef/hack_it/main.cpp | dipakpawar152000/programming | f343857d413c7dcce876c7720c0ffc4e44b63a48 | [
"Apache-2.0"
] | 33 | 2019-10-20T15:28:26.000Z | 2021-12-17T22:34:22.000Z | C++/competitive/CodeChef/hack_it/main.cpp | dipakpawar152000/programming | f343857d413c7dcce876c7720c0ffc4e44b63a48 | [
"Apache-2.0"
] | 111 | 2019-05-10T18:52:55.000Z | 2022-02-04T08:53:42.000Z | C++/competitive/CodeChef/hack_it/main.cpp | dipakpawar152000/programming | f343857d413c7dcce876c7720c0ffc4e44b63a48 | [
"Apache-2.0"
] | 141 | 2019-10-20T15:00:02.000Z | 2021-03-23T05:51:12.000Z | // Copyright 2020 Shubham Kumar
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to i... | 24.795455 | 75 | 0.584785 | dipakpawar152000 |
a23b236fbd21e850bb7502c93ea7115222da7eb3 | 3,715 | cpp | C++ | filters/Spectrum.cpp | GuMiner/lux | ea8ee83fe88dc2905ba80dcc9082cddfb835f739 | [
"MIT"
] | null | null | null | filters/Spectrum.cpp | GuMiner/lux | ea8ee83fe88dc2905ba80dcc9082cddfb835f739 | [
"MIT"
] | null | null | null | filters/Spectrum.cpp | GuMiner/lux | ea8ee83fe88dc2905ba80dcc9082cddfb835f739 | [
"MIT"
] | null | null | null | #include <algorithm>
#include "Spectrum.h"
Spectrum::Spectrum(glm::vec2 startPosition, glm::vec2 startSize, SdrBuffer* dataBuffer)
: lastPosition(startPosition), lastSize(startSize),
updateGraphics(false), spectrumLines(true),
windowedSincFilter(), FilterBase(dataBuffer)
{
FormDecimator();
... | 34.398148 | 185 | 0.622611 | GuMiner |
a23ec7e80ae2448ac6517fb71d055e2e6188a910 | 585 | cpp | C++ | LAB 1 ASSIGNMENTS/Task_10 Lab_01.cpp | ZapeeoSheikh/Cppfactory | 7bdf9c6dd8053a506f17fc4a0aa2093f06d2be70 | [
"MIT"
] | null | null | null | LAB 1 ASSIGNMENTS/Task_10 Lab_01.cpp | ZapeeoSheikh/Cppfactory | 7bdf9c6dd8053a506f17fc4a0aa2093f06d2be70 | [
"MIT"
] | null | null | null | LAB 1 ASSIGNMENTS/Task_10 Lab_01.cpp | ZapeeoSheikh/Cppfactory | 7bdf9c6dd8053a506f17fc4a0aa2093f06d2be70 | [
"MIT"
] | null | null | null | //task_10 (stock commission)
#include <iostream>
using namespace std;
main()
{
float total_share,price_per_share,commission;
total_share = 600;
price_per_share = 21.77;
commission = 0.02;
cout<<"Amount paid for stock: "<<total_share*price_per_share<<endl;
cout<<"Amount of commission:... | 30.789474 | 108 | 0.697436 | ZapeeoSheikh |
a24284e738e84aa9102fc8f70073f3b9b462a802 | 3,172 | cpp | C++ | solved_problems/399A.cpp | archit-1997/codeforces | 6f78a3ed5930531159ae22f7b70dc56e37a9e240 | [
"MIT"
] | 1 | 2021-01-27T16:37:31.000Z | 2021-01-27T16:37:31.000Z | solved_problems/399A.cpp | archit-1997/codeforces | 6f78a3ed5930531159ae22f7b70dc56e37a9e240 | [
"MIT"
] | null | null | null | solved_problems/399A.cpp | archit-1997/codeforces | 6f78a3ed5930531159ae22f7b70dc56e37a9e240 | [
"MIT"
] | null | null | null | /*
User ainta is making a web site. This time he is going to make a navigation of
the pages. In his site, there are n pages numbered by integers from 1 to n.
Assume that somebody is on the p-th page now. The navigation will look like
this:
<< p - k p - k + 1 ... p - 1 (p) p + 1 ... p + k - 1 p + k >>
When someo... | 24.4 | 81 | 0.576293 | archit-1997 |
a243e53acc87ddf6b4b7b0ed57d73d3adb73f100 | 2,702 | cc | C++ | aos/util/math_test.cc | Ewpratten/frc_971_mirror | 3a8a0c4359f284d29547962c2b4c43d290d8065c | [
"BSD-2-Clause"
] | 39 | 2021-06-18T03:22:30.000Z | 2022-03-21T15:23:43.000Z | aos/util/math_test.cc | Ewpratten/frc_971_mirror | 3a8a0c4359f284d29547962c2b4c43d290d8065c | [
"BSD-2-Clause"
] | 10 | 2021-06-18T03:22:19.000Z | 2022-03-18T22:14:15.000Z | aos/util/math_test.cc | Ewpratten/frc_971_mirror | 3a8a0c4359f284d29547962c2b4c43d290d8065c | [
"BSD-2-Clause"
] | 4 | 2021-08-19T19:20:04.000Z | 2022-03-08T07:33:18.000Z | #include "aos/util/math.h"
#include "gtest/gtest.h"
namespace aos {
namespace math {
namespace testing {
bool AngleEqual(double a1, double a2) {
double diff = a1 - a2;
return ::std::fmod(diff, 2 * M_PI) == 0.0;
}
bool AngleInBounds(double a) { return a <= M_PI && a > -M_PI; }
// Check that something
void Expec... | 30.022222 | 80 | 0.701702 | Ewpratten |
a2455e8d2adc5f2358a2dde98c44074507903f43 | 542 | hpp | C++ | include/geolocation.hpp | afkummer/ovig | eaf5334d19e687a70011a2fa44b5d78d1e44c63b | [
"MIT"
] | 3 | 2021-04-16T22:40:17.000Z | 2021-11-03T13:18:57.000Z | include/geolocation.hpp | afkummer/ovig | eaf5334d19e687a70011a2fa44b5d78d1e44c63b | [
"MIT"
] | 4 | 2021-07-31T14:32:28.000Z | 2021-07-31T14:40:25.000Z | include/geolocation.hpp | afkummer/ovig | eaf5334d19e687a70011a2fa44b5d78d1e44c63b | [
"MIT"
] | 4 | 2019-09-19T09:52:57.000Z | 2021-06-16T18:55:56.000Z | #ifndef __H_GEOLOCATION_H__
#define __H_GEOLOCATION_H__
/*
* Data strucutre to hold a geographic location in (lat,lon) coordinates.
* It contains some associated functions as well.
*
*/
struct GeoLocation {
double lat;
double lon;
GeoLocation to_rad() const;
GeoLocation to_deg() const;
double haversine_dist... | 20.846154 | 73 | 0.776753 | afkummer |
a248d01b4c2d89338a03859c7043621189def205 | 431 | cpp | C++ | acmicpc/13417.cpp | juseongkr/BOJ | 8f10a2bf9a7d695455493fbe7423347a8b648416 | [
"Apache-2.0"
] | 7 | 2020-02-03T10:00:19.000Z | 2021-11-16T11:03:57.000Z | acmicpc/13417.cpp | juseongkr/Algorithm-training | 8f10a2bf9a7d695455493fbe7423347a8b648416 | [
"Apache-2.0"
] | 1 | 2021-01-03T06:58:24.000Z | 2021-01-03T06:58:24.000Z | acmicpc/13417.cpp | juseongkr/Algorithm-training | 8f10a2bf9a7d695455493fbe7423347a8b648416 | [
"Apache-2.0"
] | 1 | 2020-01-22T14:34:03.000Z | 2020-01-22T14:34:03.000Z | #include <iostream>
using namespace std;
#define MAX 1001
int T, n;
string s[MAX];
int main()
{
ios_base::sync_with_stdio(0);
cout.tie(0);
cin.tie(0);
cin >> T;
while (T--) {
cin >> n;
for (int i=0; i<n; ++i)
cin >> s[i];
string ans = s[0], l = s[0];
for (int i=1; i<n; ++i) {
if (l >= s[i]) {
... | 12.676471 | 30 | 0.466357 | juseongkr |
a24a2f8d8cdfa2c91252ab2cc9d9a16af76a1906 | 3,929 | cpp | C++ | util/screenrect.cpp | degarashi/resonant | f1a8c86c4d2c89d2397b0c1db55c7dfe7a317f6a | [
"MIT"
] | null | null | null | util/screenrect.cpp | degarashi/resonant | f1a8c86c4d2c89d2397b0c1db55c7dfe7a317f6a | [
"MIT"
] | null | null | null | util/screenrect.cpp | degarashi/resonant | f1a8c86c4d2c89d2397b0c1db55c7dfe7a317f6a | [
"MIT"
] | null | null | null | #include "screenrect.hpp"
#include "../glx.hpp"
#include "../drawtag.hpp"
#include "../sys_uniform.hpp"
#include "../systeminfo.hpp"
namespace rs {
namespace util {
namespace {
HLVb MakeVertex_Base(float minv, float maxv) {
HLVb hlVb = mgr_gl.makeVBuffer(GL_STATIC_DRAW);
const vertex::screen c_vertex[] =... | 30.457364 | 76 | 0.577501 | degarashi |
a24f62b61053b959f186237a84efb1c423680eec | 1,053 | hpp | C++ | plugins/ecs_plugin/include/components/TransformComponent.hpp | fuchstraumer/Caelestis | 9c4b76288220681bb245d84e5d7bf8c7f69b2716 | [
"MIT"
] | 5 | 2018-08-16T00:55:33.000Z | 2020-06-19T14:30:17.000Z | plugins/ecs_plugin/include/components/TransformComponent.hpp | fuchstraumer/Caelestis | 9c4b76288220681bb245d84e5d7bf8c7f69b2716 | [
"MIT"
] | null | null | null | plugins/ecs_plugin/include/components/TransformComponent.hpp | fuchstraumer/Caelestis | 9c4b76288220681bb245d84e5d7bf8c7f69b2716 | [
"MIT"
] | null | null | null | #pragma once
#ifndef VPSK_TRANSFORM_COMPONENT_HPP
#define VPSK_TRANSFORM_COMPONENT_HPP
#define GLM_SWIZZLE
#include "glm/mat4x4.hpp"
#include "glm/vec4.hpp"
namespace vpsk {
struct WorldTransformComponent {
WorldTransformComponent(glm::vec3 p, glm::vec3 s = glm::vec3(1.0f), glm::vec3 rot = glm::vec3(0.0f... | 27.710526 | 109 | 0.643875 | fuchstraumer |
a25369a8666a26e116f90f3dd26a1902f5f8335f | 3,669 | cpp | C++ | Source/Dreemchest/Threads/Windows/WindowsThread.cpp | dmsovetov/Dreemchest | 39255c88943abc69c7fa0710b7ca8486c08260e0 | [
"MIT"
] | 11 | 2016-02-18T15:24:49.000Z | 2021-01-30T18:26:04.000Z | Source/Dreemchest/Threads/Windows/WindowsThread.cpp | dmsovetov/dreemchest | 39255c88943abc69c7fa0710b7ca8486c08260e0 | [
"MIT"
] | 2 | 2016-05-23T22:48:35.000Z | 2017-02-13T16:43:32.000Z | Source/Dreemchest/Threads/Windows/WindowsThread.cpp | dmsovetov/dreemchest | 39255c88943abc69c7fa0710b7ca8486c08260e0 | [
"MIT"
] | 3 | 2016-08-19T13:26:59.000Z | 2018-08-03T04:28:14.000Z | /**************************************************************************
The MIT License (MIT)
Copyright (c) 2015 Dmitry Sovetov
https://github.com/dmsovetov
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to ... | 27.586466 | 89 | 0.705097 | dmsovetov |
a25405fd90595b2e8c8684d45af1bf4a80b5406d | 141 | cpp | C++ | cnd/cnd.modelimpl/test/unit/data/org/netbeans/modules/cnd/modelimpl/trace/FileModel2Test/bug224027.cpp | leginee/netbeans | 814ad30e2d0a094f4aa3813bcbb5323a95a0b1d6 | [
"Apache-2.0"
] | null | null | null | cnd/cnd.modelimpl/test/unit/data/org/netbeans/modules/cnd/modelimpl/trace/FileModel2Test/bug224027.cpp | leginee/netbeans | 814ad30e2d0a094f4aa3813bcbb5323a95a0b1d6 | [
"Apache-2.0"
] | null | null | null | cnd/cnd.modelimpl/test/unit/data/org/netbeans/modules/cnd/modelimpl/trace/FileModel2Test/bug224027.cpp | leginee/netbeans | 814ad30e2d0a094f4aa3813bcbb5323a95a0b1d6 | [
"Apache-2.0"
] | null | null | null | namespace {
struct A {};
struct B {
friend A::A();
friend A::~A();
friend A &A::operator=(const A&);
};
}
| 11.75 | 39 | 0.432624 | leginee |
a254c513960ca0babc7672cd654504805a691408 | 10,216 | cpp | C++ | grim-code/Engine/DXGfx.cpp | ariabonczek/GrimoireEngine | 94952b98232b4baac8caa1189dac7c38672c6ae0 | [
"MIT"
] | null | null | null | grim-code/Engine/DXGfx.cpp | ariabonczek/GrimoireEngine | 94952b98232b4baac8caa1189dac7c38672c6ae0 | [
"MIT"
] | null | null | null | grim-code/Engine/DXGfx.cpp | ariabonczek/GrimoireEngine | 94952b98232b4baac8caa1189dac7c38672c6ae0 | [
"MIT"
] | null | null | null | #include "Precompiled.h"
#include <Engine/Gfx.h>
#include <Engine/DXGfx.h>
#include <Engine/EngineGlobals.h>
#include <Engine/DrawElement.h>
#include <Engine/GraphicsState.h>
#include <Engine/Surface.h>
#include <Engine/grimInput.h>
#include <Engine/d3dx12.h>
#include <string>
#include <d3dcompiler.h>
namespace plat... | 29.022727 | 214 | 0.744323 | ariabonczek |
a25a6e0d7f11fa90692ec1156c8d0eb82d198c01 | 2,023 | cpp | C++ | problems/127.Word_Ladder/AC_two_end_BFS_n.cpp | subramp-prep/leetcode | d125201d9021ab9b1eea5e5393c2db4edd84e740 | [
"Unlicense"
] | null | null | null | problems/127.Word_Ladder/AC_two_end_BFS_n.cpp | subramp-prep/leetcode | d125201d9021ab9b1eea5e5393c2db4edd84e740 | [
"Unlicense"
] | null | null | null | problems/127.Word_Ladder/AC_two_end_BFS_n.cpp | subramp-prep/leetcode | d125201d9021ab9b1eea5e5393c2db4edd84e740 | [
"Unlicense"
] | null | null | null | /*
* Author: illuz <iilluzen[at]gmail.com>
* File: AC_two_end_BFS_n.cpp
* Create Date: 2015-03-29 14:11:47
* Descripton:
*/
#include <bits/stdc++.h>
using namespace std;
const int N = 0;
class Solution {
// it cost a lot of time
// private:
// bool checkChar(string &str1, string &str2) {
// ... | 26.618421 | 77 | 0.393475 | subramp-prep |