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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
a79abfb2dd11f11cb2ae8984f1ae500f9f0db079 | 2,078 | hpp | C++ | include/codegen/include/Zenject/PrefabFactory_2.hpp | Futuremappermydud/Naluluna-Modifier-Quest | bfda34370764b275d90324b3879f1a429a10a873 | [
"MIT"
] | 1 | 2021-11-12T09:29:31.000Z | 2021-11-12T09:29:31.000Z | include/codegen/include/Zenject/PrefabFactory_2.hpp | Futuremappermydud/Naluluna-Modifier-Quest | bfda34370764b275d90324b3879f1a429a10a873 | [
"MIT"
] | null | null | null | include/codegen/include/Zenject/PrefabFactory_2.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:45 PM
// Created by Sc2ad
// =========================================================================
#pragma once
#pragma pack(push, 8)
// Begin includes
#include "utils/typedefs.h"
// Including type: System.Object
#include "System/Object.hpp"
// Including type... | 37.107143 | 156 | 0.701636 | Futuremappermydud |
a79b1bd867a53275bfffb01f3928b6c9c35be7e9 | 5,247 | cpp | C++ | main/arp_chain.cpp | dujeonglee/ESP32-WiFi-Extender | e7ffe97a87f73ae447f9bb305a4e9abae52b2d97 | [
"MIT"
] | 7 | 2020-02-15T08:45:11.000Z | 2021-05-14T00:39:05.000Z | main/arp_chain.cpp | dujeonglee/ESP32-WiFi-Extender | e7ffe97a87f73ae447f9bb305a4e9abae52b2d97 | [
"MIT"
] | 1 | 2021-04-21T18:20:46.000Z | 2021-05-12T20:24:40.000Z | main/arp_chain.cpp | dujeonglee/ESP32-WiFi-Extender | e7ffe97a87f73ae447f9bb305a4e9abae52b2d97 | [
"MIT"
] | 1 | 2021-10-08T14:39:11.000Z | 2021-10-08T14:39:11.000Z | #include "custom_netif.h"
#include "state_machine.h"
#include "arp_chain.h"
static err_t transmit_proxy_arp(const interface_t type, const struct eth_addr *ethsrc_addr,
const struct eth_addr *ethdst_addr,
const struct eth_addr *hwsrc_addr, const ip4_addr_t *ipsrc_addr,
... | 35.452703 | 198 | 0.603202 | dujeonglee |
a79e127b53675a9371a04d0a9692e7fe55bb3f45 | 3,765 | cpp | C++ | leg.cpp | cutlas62/robotic-dog-firmware | 16fba98da47623e52a17ad3b6851472262657ad5 | [
"MIT"
] | null | null | null | leg.cpp | cutlas62/robotic-dog-firmware | 16fba98da47623e52a17ad3b6851472262657ad5 | [
"MIT"
] | null | null | null | leg.cpp | cutlas62/robotic-dog-firmware | 16fba98da47623e52a17ad3b6851472262657ad5 | [
"MIT"
] | null | null | null | #include "leg.h"
const uint8_t servoNumbers [4][2] = {{9, 8}, {14, 15}, {6, 7}, {1, 0}};
/*******************************************
Constructors
******************************************/
Leg::Leg (enum legPosition pos, int hipOff, int kneeOff) {
footX = TIBIA_LENGTH;
footY = -FEMUR_LENGTH;
... | 26.145833 | 106 | 0.537849 | cutlas62 |
a79e3a6d382aca1ad9ea7bcaa7bed9885280418c | 1,080 | hpp | C++ | libs/core/include/fcppt/optional/make_if.hpp | freundlich/fcppt | 17df1b1ad08bf2435f6902d5465e3bc3fe5e3022 | [
"BSL-1.0"
] | 13 | 2015-02-21T18:35:14.000Z | 2019-12-29T14:08:29.000Z | libs/core/include/fcppt/optional/make_if.hpp | cpreh/fcppt | 17df1b1ad08bf2435f6902d5465e3bc3fe5e3022 | [
"BSL-1.0"
] | 5 | 2016-08-27T07:35:47.000Z | 2019-04-21T10:55:34.000Z | libs/core/include/fcppt/optional/make_if.hpp | freundlich/fcppt | 17df1b1ad08bf2435f6902d5465e3bc3fe5e3022 | [
"BSL-1.0"
] | 8 | 2015-01-10T09:22:37.000Z | 2019-12-01T08:31:12.000Z | // Copyright Carl Philipp Reh 2009 - 2021.
// Distributed under the Boost Software License, Version 1.0.
// (See accompanying file LICENSE_1_0.txt or copy at
// http://www.boost.org/LICENSE_1_0.txt)
#ifndef FCPPT_OPTIONAL_MAKE_IF_HPP_INCLUDED
#define FCPPT_OPTIONAL_MAKE_IF_HPP_INCLUDED
#include <... | 29.189189 | 78 | 0.762037 | freundlich |
a79ecfdebf5cae8d50ea1e0c0901bc8f7a60172f | 4,277 | cpp | C++ | src/main.cpp | dannymato/raytracing-opengl | 4f38b89bc813706cddb30e47d494fb5ddabbb14f | [
"MIT"
] | null | null | null | src/main.cpp | dannymato/raytracing-opengl | 4f38b89bc813706cddb30e47d494fb5ddabbb14f | [
"MIT"
] | null | null | null | src/main.cpp | dannymato/raytracing-opengl | 4f38b89bc813706cddb30e47d494fb5ddabbb14f | [
"MIT"
] | null | null | null | #include <glad/glad.h>
#include <GLFW/glfw3.h>
#include <chrono>
#include "GLWrapper.h"
#include "SceneManager.h"
static int wind_width = 660;
static int wind_height = 960;
int main()
{
#define FULLSCREEN 1
#if FULLSCREEN
GLWrapper glWrapper(true);
#else
GLWrapper glWrapper(wind_width, wind_height, false);
... | 47 | 152 | 0.671733 | dannymato |
a7a06c2c19eeab4cd96bbfe650b6882d5ced0805 | 7,747 | cpp | C++ | IfcPlusPlus/src/ifcpp/IFC4/IfcContext.cpp | linsipese/ifcppstudy | e09f05d276b5e129fcb6be65800472979cd4c800 | [
"MIT"
] | 1 | 2018-10-23T09:43:07.000Z | 2018-10-23T09:43:07.000Z | IfcPlusPlus/src/ifcpp/IFC4/IfcContext.cpp | linsipese/ifcppstudy | e09f05d276b5e129fcb6be65800472979cd4c800 | [
"MIT"
] | null | null | null | IfcPlusPlus/src/ifcpp/IFC4/IfcContext.cpp | linsipese/ifcppstudy | e09f05d276b5e129fcb6be65800472979cd4c800 | [
"MIT"
] | null | null | null | /* -*-c++-*- IfcPlusPlus - www.ifcplusplus.com - Copyright (C) 2011 Fabian Gerold
*
* This library is open source and may be redistributed and/or modified under
* the terms of the OpenSceneGraph Public License (OSGPL) version 0.0 or
* (at your option) any later version. The full license is in LICENSE file
* in... | 49.660256 | 218 | 0.727766 | linsipese |
a7a3b0a77c359911be91ae2b8bd29306f0a06e6e | 572 | cpp | C++ | projects/xrbase/src/igraphicsbinding.cpp | JoeLudwig/diligent_hello_openxr | f13f3073cabbe479744f63c9567ae37ecace93fd | [
"BSD-3-Clause"
] | 6 | 2021-07-09T22:45:57.000Z | 2021-08-16T01:00:46.000Z | projects/xrbase/src/igraphicsbinding.cpp | JoeLudwig/diligent_hello_openxr | f13f3073cabbe479744f63c9567ae37ecace93fd | [
"BSD-3-Clause"
] | 1 | 2022-02-15T19:09:36.000Z | 2022-02-15T19:09:36.000Z | projects/xrbase/src/igraphicsbinding.cpp | JoeLudwig/xrsandbox | 017e29f58dbd2707b63cb1e5b045aaa15a44a5fc | [
"BSD-3-Clause"
] | 1 | 2021-07-19T17:45:10.000Z | 2021-07-19T17:45:10.000Z | #include "igraphicsbinding.h"
#include "graphicsbinding_d3d11.h"
#include "graphicsbinding_d3d12.h"
using namespace Diligent;
std::unique_ptr<IGraphicsBinding> IGraphicsBinding::CreateBindingForDeviceType( Diligent::RENDER_DEVICE_TYPE deviceType )
{
std::unique_ptr< IGraphicsBinding > binding;
switch ( deviceType ... | 20.428571 | 121 | 0.77972 | JoeLudwig |
a7a56d79cc2b8e66eb806371487e5dd1d5bbc8c6 | 5,995 | cpp | C++ | Work/Source/Sparrow.DirectX/DirectX/Direct3D11/D3D11GeometryShaderPipelineStage.cpp | vinothsparrow/SparrowToolkit | 32b38281e47db5ab86bedaa801e6736722b244be | [
"MS-PL"
] | 1 | 2020-02-18T11:11:56.000Z | 2020-02-18T11:11:56.000Z | Work/Source/Sparrow.DirectX/DirectX/Direct3D11/D3D11GeometryShaderPipelineStage.cpp | vinothsparrow/SparrowToolkit | 32b38281e47db5ab86bedaa801e6736722b244be | [
"MS-PL"
] | null | null | null | Work/Source/Sparrow.DirectX/DirectX/Direct3D11/D3D11GeometryShaderPipelineStage.cpp | vinothsparrow/SparrowToolkit | 32b38281e47db5ab86bedaa801e6736722b244be | [
"MS-PL"
] | null | null | null | // Copyright (c) Microsoft Corporation. All rights reserved.
#include "stdafx.h"
#include "D3D11GeometryShaderPipelineStage.h"
#include "D3D11Buffer.h"
#include "D3D11SamplerState.h"
#include "D3D11ClassInstance.h"
#include "D3D11ShaderResourceView.h"
#include "D3D11GeometryShader.h"
using namespace Micr... | 38.928571 | 164 | 0.745621 | vinothsparrow |
a7a6a28b3001b7b20c9b65d3300f99780d9af79c | 200 | cpp | C++ | CPP/Hackerrank/FlippingBits.cpp | a-padhy/hacktoberfest2021-1 | 1ad29bfb2d09574b66fa6fbe392546c5e6aeff04 | [
"MIT"
] | null | null | null | CPP/Hackerrank/FlippingBits.cpp | a-padhy/hacktoberfest2021-1 | 1ad29bfb2d09574b66fa6fbe392546c5e6aeff04 | [
"MIT"
] | null | null | null | CPP/Hackerrank/FlippingBits.cpp | a-padhy/hacktoberfest2021-1 | 1ad29bfb2d09574b66fa6fbe392546c5e6aeff04 | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
using namespace std;
int t;
unsigned int x;
int main() {
cin >> t;
while (t--) {
cin >> x;
cout << (~x) << endl;
}
return 0;
}
| 13.333333 | 30 | 0.43 | a-padhy |
a7a7fe0889109cdfe1f207cc9bd0ffeeb3e1fa4d | 5,992 | hpp | C++ | bezGameEngine/src/bez/Events/Event.hpp | Gustvo/bezGameEngine | 8d0ac4613d1a1aac65cab51d337b9a77d56f29ec | [
"MIT"
] | null | null | null | bezGameEngine/src/bez/Events/Event.hpp | Gustvo/bezGameEngine | 8d0ac4613d1a1aac65cab51d337b9a77d56f29ec | [
"MIT"
] | null | null | null | bezGameEngine/src/bez/Events/Event.hpp | Gustvo/bezGameEngine | 8d0ac4613d1a1aac65cab51d337b9a77d56f29ec | [
"MIT"
] | null | null | null | #ifndef EVENT_H
#define EVENT_H
#include <functional>
#include <sstream>
namespace bez {
enum EventType {
FIRSTEVENT = 0, /**< Unused (do not remove) */
/* Application events */
QUIT = 0x100, /**< User-requested quit */
/* These application events have special meaning on iOS, see README-ios.md for
det... | 34.837209 | 90 | 0.570761 | Gustvo |
a7a85a2c21cdc3d4f011ea665fb358d1b3ca6d52 | 14,322 | hpp | C++ | Tests/unit-tests/Source/AddOns/Xfa/wali/xfa/class-xfa/fixtures.hpp | jusito/WALi-OpenNWA | 2bb4aca02c5a5d444fd038e8aa3eecd7d1ccbb99 | [
"MIT"
] | 15 | 2015-03-07T17:25:57.000Z | 2022-02-04T20:17:00.000Z | Tests/unit-tests/Source/AddOns/Xfa/wali/xfa/class-xfa/fixtures.hpp | jusito/WALi-OpenNWA | 2bb4aca02c5a5d444fd038e8aa3eecd7d1ccbb99 | [
"MIT"
] | 1 | 2018-03-03T05:58:55.000Z | 2018-03-03T12:26:10.000Z | Tests/unit-tests/Source/AddOns/Xfa/wali/xfa/class-xfa/fixtures.hpp | jusito/WALi-OpenNWA | 2bb4aca02c5a5d444fd038e8aa3eecd7d1ccbb99 | [
"MIT"
] | 15 | 2015-09-25T17:44:35.000Z | 2021-07-18T18:25:38.000Z | #include <wali/xfa/Xfa.hpp>
#include <wali/domains/binrel/ProgramBddContext.hpp>
#include <string>
namespace wali {
namespace xfa {
using wali::domains::binrel::ProgramBddContext;
using wali::domains::binrel::BinRel;
struct Relations {
sem_elem_t false_
, true... | 27.648649 | 104 | 0.385351 | jusito |
a7acebcc4fd15668adb2fa64e08237440713ba24 | 107,542 | cpp | C++ | Uber_Duper_Simulation_Haxe/bin/windows/cpp/obj/src/openfl/geom/Matrix3D.cpp | as3boyan/Uber-Duper-Simulation | a3942831a1acf08479f06fd8cfe8896ec00ac32c | [
"MIT"
] | null | null | null | Uber_Duper_Simulation_Haxe/bin/windows/cpp/obj/src/openfl/geom/Matrix3D.cpp | as3boyan/Uber-Duper-Simulation | a3942831a1acf08479f06fd8cfe8896ec00ac32c | [
"MIT"
] | null | null | null | Uber_Duper_Simulation_Haxe/bin/windows/cpp/obj/src/openfl/geom/Matrix3D.cpp | as3boyan/Uber-Duper-Simulation | a3942831a1acf08479f06fd8cfe8896ec00ac32c | [
"MIT"
] | null | null | null | #include <hxcpp.h>
#ifndef INCLUDED_Std
#include <Std.h>
#endif
#ifndef INCLUDED_Type
#include <Type.h>
#endif
#ifndef INCLUDED_hxMath
#include <hxMath.h>
#endif
#ifndef INCLUDED_openfl_errors_Error
#include <openfl/errors/Error.h>
#endif
#ifndef INCLUDED_openfl_geom_Matrix3D
#include <openfl/geom/Matrix3D.h>
#endif
#... | 41.861425 | 1,655 | 0.640884 | as3boyan |
a7af6d350c0701537a927a214aa18980535ade3e | 2,466 | cpp | C++ | NetcodeAssetEditor/Vector4Control.cpp | tyekx/netcode | c46fef1eeb33ad029d0c262d39309dfa83f76c4d | [
"MIT"
] | null | null | null | NetcodeAssetEditor/Vector4Control.cpp | tyekx/netcode | c46fef1eeb33ad029d0c262d39309dfa83f76c4d | [
"MIT"
] | null | null | null | NetcodeAssetEditor/Vector4Control.cpp | tyekx/netcode | c46fef1eeb33ad029d0c262d39309dfa83f76c4d | [
"MIT"
] | null | null | null | #include "pch.h"
#include "Vector4Control.h"
#if __has_include("Vector4Control.g.cpp")
#include "Vector4Control.g.cpp"
#endif
using namespace winrt;
using namespace Windows::UI::Xaml;
namespace winrt::NetcodeAssetEditor::implementation
{
Vector4Control::Vector4Control()
{
InitializeComponent();
... | 41.1 | 198 | 0.70073 | tyekx |
a7af80074021e93e008e488b8c76d0c607dbecc6 | 3,013 | cpp | C++ | src/plugins/otlozhu/core.cpp | devel29a/leechcraft | faf5e856010fb785e4bbf3ce7b5c6a5c49f3239a | [
"BSL-1.0"
] | null | null | null | src/plugins/otlozhu/core.cpp | devel29a/leechcraft | faf5e856010fb785e4bbf3ce7b5c6a5c49f3239a | [
"BSL-1.0"
] | null | null | null | src/plugins/otlozhu/core.cpp | devel29a/leechcraft | faf5e856010fb785e4bbf3ce7b5c6a5c49f3239a | [
"BSL-1.0"
] | null | null | null | /**********************************************************************
* LeechCraft - modular cross-platform feature rich internet client.
* Copyright (C) 2006-2014 Georg Rudoy
*
* Boost Software License - Version 1.0 - August 17th, 2003
*
* Permission is hereby granted, free of charge, to any person or organiz... | 29.252427 | 78 | 0.696648 | devel29a |
a7b1e09a1672c8b2a05460a35a47906d1d3b5412 | 3,151 | cpp | C++ | Bofiguration.cpp | DichromaticLB/boroll | b173aa0e4f46b5932e7f6d2ea501a63109f0ada7 | [
"MIT"
] | 1 | 2019-07-14T20:17:15.000Z | 2019-07-14T20:17:15.000Z | Bofiguration.cpp | DichromaticLB/boroll | b173aa0e4f46b5932e7f6d2ea501a63109f0ada7 | [
"MIT"
] | null | null | null | Bofiguration.cpp | DichromaticLB/boroll | b173aa0e4f46b5932e7f6d2ea501a63109f0ada7 | [
"MIT"
] | null | null | null | #include"include/Bofiguration.hpp"
#include<map>
using string=Bofiguration::string;
static std::map<Bofiguration::string,Bofiguration::string>& _dic()
{
static std::map<Bofiguration::string,Bofiguration::string> res;
return res;
}
std::string& Bofiguration::deff(std::string update)
{
static std::string defaultFi... | 20.594771 | 97 | 0.664868 | DichromaticLB |
a7b2e65de753bf330310f7aa9c2e9a4112ee1407 | 1,460 | hpp | C++ | include/range/v3/action/reverse.hpp | mydeveloperday/range-v3 | 66c9f5fb528f55b75c5737199bd7bd82a39b8613 | [
"MIT"
] | 1 | 2019-07-21T02:51:05.000Z | 2019-07-21T02:51:05.000Z | include/range/v3/action/reverse.hpp | mydeveloperday/range-v3 | 66c9f5fb528f55b75c5737199bd7bd82a39b8613 | [
"MIT"
] | null | null | null | include/range/v3/action/reverse.hpp | mydeveloperday/range-v3 | 66c9f5fb528f55b75c5737199bd7bd82a39b8613 | [
"MIT"
] | null | null | null | /// \file
// Range v3 library
//
// Copyright Eric Niebler 2013-present
// Copyright Gonzalo Brito Gadeschi 2017
//
// 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_1_0.txt)
//
// Pr... | 25.614035 | 80 | 0.628082 | mydeveloperday |
a7b603f546f1e27fe7f6e3a8f9783c0c72ec0004 | 511 | cpp | C++ | Source/main.cpp | yxbh/UUIDer | 0de7b0e310f78b284b4e9983901ea05bde4b730a | [
"MIT"
] | null | null | null | Source/main.cpp | yxbh/UUIDer | 0de7b0e310f78b284b4e9983901ea05bde4b730a | [
"MIT"
] | null | null | null | Source/main.cpp | yxbh/UUIDer | 0de7b0e310f78b284b4e9983901ea05bde4b730a | [
"MIT"
] | 2 | 2019-08-15T02:48:32.000Z | 2021-08-03T01:00:59.000Z | #include <QApplication>
#include "Controllers/UUIDerMainWindow.hpp"
#include "appinfo.hpp"
#include "version.hpp"
int main(int argc, char * argv[])
{
QCoreApplication::setOrganizationName(app::info::COMPANY);
QCoreApplication::setApplicationName(app::info::PRODUCT);
QCoreApplication::setApplicationVersion(... | 25.55 | 64 | 0.739726 | yxbh |
a7b750330dd9171f7a5de2dd441882c3ed7be1ac | 7,259 | cpp | C++ | src/CodeGen/Builtin.cpp | linvs/test | 9d9390e94ecebd1e3098167c553c86a2cddca289 | [
"MIT"
] | 428 | 2020-06-12T06:48:38.000Z | 2022-02-15T00:43:19.000Z | src/CodeGen/Builtin.cpp | linvs/test | 9d9390e94ecebd1e3098167c553c86a2cddca289 | [
"MIT"
] | null | null | null | src/CodeGen/Builtin.cpp | linvs/test | 9d9390e94ecebd1e3098167c553c86a2cddca289 | [
"MIT"
] | 18 | 2020-06-15T02:49:30.000Z | 2021-09-08T04:39:13.000Z | #include "CodeGen/Builtin.h"
void Builtin::initialize(LLVMModule &module, LLVMContext &context, const llvm::Twine &libDirArg) {
llvm::SmallString<256> libPath;
if (!libDirArg.str().empty()) {
libDirArg.toVector(libPath);
if (!llvm::sys::path::is_absolute(libPath)) {
if (llvm::sys::f... | 50.409722 | 111 | 0.745695 | linvs |
a7bb4c4ade3ef34000b480b96a17de608ae10548 | 1,395 | cpp | C++ | tests/juliet/testcases/CWE775_Missing_Release_of_File_Descriptor_or_Handle/CWE775_Missing_Release_of_File_Descriptor_or_Handle__open_no_close_62b.cpp | RanerL/analyzer | a401da4680f163201326881802ee535d6cf97f5a | [
"MIT"
] | 28 | 2017-01-20T15:25:54.000Z | 2020-03-17T00:28:31.000Z | testcases/CWE775_Missing_Release_of_File_Descriptor_or_Handle/CWE775_Missing_Release_of_File_Descriptor_or_Handle__open_no_close_62b.cpp | mellowCS/cwe_checker_juliet_suite | ae604f6fd94964251fbe88ef04d5287f6c1ffbe2 | [
"MIT"
] | 1 | 2021-07-12T02:57:17.000Z | 2021-07-16T02:07:29.000Z | testcases/CWE775_Missing_Release_of_File_Descriptor_or_Handle/CWE775_Missing_Release_of_File_Descriptor_or_Handle__open_no_close_62b.cpp | mellowCS/cwe_checker_juliet_suite | ae604f6fd94964251fbe88ef04d5287f6c1ffbe2 | [
"MIT"
] | 2 | 2019-07-15T19:07:04.000Z | 2019-09-07T14:21:04.000Z | /* TEMPLATE GENERATED TESTCASE FILE
Filename: CWE775_Missing_Release_of_File_Descriptor_or_Handle__open_no_close_62b.cpp
Label Definition File: CWE775_Missing_Release_of_File_Descriptor_or_Handle__open_no_close.label.xml
Template File: source-sinks-62b.tmpl.cpp
*/
/*
* @description
* CWE: 775 Missing Release o... | 26.320755 | 119 | 0.725448 | RanerL |
a7be6435f2b1d9595eecfd61671ce58f80b0d59d | 6,585 | cpp | C++ | Samples/UWP/D3D12Bundles/src/FrameResource.cpp | dsrour/DSX2 | e3489ff4bc3d49ed00480b4a6eb14ac08f6f98e7 | [
"MIT"
] | 52 | 2016-01-26T18:22:02.000Z | 2022-02-12T05:22:02.000Z | Samples/UWP/D3D12Bundles/src/FrameResource.cpp | dsrour/DSX2 | e3489ff4bc3d49ed00480b4a6eb14ac08f6f98e7 | [
"MIT"
] | 1 | 2019-07-14T07:22:52.000Z | 2019-07-14T07:22:52.000Z | Samples/UWP/D3D12Bundles/src/FrameResource.cpp | dsrour/DSX2 | e3489ff4bc3d49ed00480b4a6eb14ac08f6f98e7 | [
"MIT"
] | 22 | 2016-01-27T05:07:27.000Z | 2021-12-09T19:19:06.000Z | //*********************************************************
//
// Copyright (c) Microsoft. All rights reserved.
// This code is licensed under the MIT License (MIT).
// THIS CODE IS PROVIDED *AS IS* WITHOUT WARRANTY OF
// ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING ANY
// IMPLIED WARRANTIES OF FITNESS FOR A PA... | 44.795918 | 159 | 0.753986 | dsrour |
a7c241bc2047da460ac94f2984c9ab92601277f2 | 11,901 | cc | C++ | source/common/api/posix/os_sys_calls_impl.cc | seventhscream/envoy | d3bd9bbef64abbf1c02fe91231eac8841901131d | [
"Apache-2.0"
] | 1 | 2022-03-24T05:37:28.000Z | 2022-03-24T05:37:28.000Z | source/common/api/posix/os_sys_calls_impl.cc | seventhscream/envoy | d3bd9bbef64abbf1c02fe91231eac8841901131d | [
"Apache-2.0"
] | 52 | 2021-12-23T21:33:11.000Z | 2022-03-31T21:37:11.000Z | source/common/api/posix/os_sys_calls_impl.cc | seventhscream/envoy | d3bd9bbef64abbf1c02fe91231eac8841901131d | [
"Apache-2.0"
] | null | null | null | #include <fcntl.h>
#include <sys/stat.h>
#include <unistd.h>
#include <cerrno>
#include <string>
#include "source/common/api/os_sys_calls_impl.h"
#include "source/common/network/address_impl.h"
namespace Envoy {
namespace Api {
SysCallIntResult OsSysCallsImpl::bind(os_fd_t sockfd, const sockaddr* addr, socklen_t ad... | 32.252033 | 147 | 0.67591 | seventhscream |
a7c3ac98c561b3c3d3b21cd5f225c1dcf6f647b5 | 10,613 | cc | C++ | tensorflow/opencl-compiler/opencl-compiler.cc | supernovaremnant/TensorflowOpenCL-GPU | 8d443c9afb49064c4bdf68fc0c5217986077d24c | [
"Apache-2.0"
] | null | null | null | tensorflow/opencl-compiler/opencl-compiler.cc | supernovaremnant/TensorflowOpenCL-GPU | 8d443c9afb49064c4bdf68fc0c5217986077d24c | [
"Apache-2.0"
] | null | null | null | tensorflow/opencl-compiler/opencl-compiler.cc | supernovaremnant/TensorflowOpenCL-GPU | 8d443c9afb49064c4bdf68fc0c5217986077d24c | [
"Apache-2.0"
] | null | null | null | #include "CL/cl.h"
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <iostream>
using namespace std;
///
// Attempt to create the program object from a cached binary.
///
cl_program CreateProgramFromBinary(cl_context context, cl_device_id device, const char* fileName)
{
FILE *fp = fopen(fileNa... | 26.140394 | 98 | 0.630736 | supernovaremnant |
a7c67932bae78a904e08cca9c72636a949e06079 | 5,241 | cpp | C++ | src/tests/class_tests/openms/source/LinearRegression_test.cpp | mrurik/OpenMS | 3bf48247423dc28a7df7b12b72fbc7751965c321 | [
"Zlib",
"Apache-2.0"
] | null | null | null | src/tests/class_tests/openms/source/LinearRegression_test.cpp | mrurik/OpenMS | 3bf48247423dc28a7df7b12b72fbc7751965c321 | [
"Zlib",
"Apache-2.0"
] | null | null | null | src/tests/class_tests/openms/source/LinearRegression_test.cpp | mrurik/OpenMS | 3bf48247423dc28a7df7b12b72fbc7751965c321 | [
"Zlib",
"Apache-2.0"
] | null | null | null | // --------------------------------------------------------------------------
// OpenMS -- Open-Source Mass Spectrometry
// --------------------------------------------------------------------------
// Copyright The OpenMS Team -- Eberhard Karls University Tuebingen,
// ETH Zurich, and ... | 35.412162 | 178 | 0.664186 | mrurik |
a7c7b99599058f67259ef86a1bacaa78b12f7c18 | 3,384 | hpp | C++ | VVGL/include/GLQtCtxWrapper.hpp | mrRay/VVISF-GL | 96b00da11e4497da304041ea2a5ffc6e3a8c9454 | [
"BSD-3-Clause"
] | 24 | 2019-01-17T17:56:18.000Z | 2022-02-27T19:57:13.000Z | VVGL/include/GLQtCtxWrapper.hpp | mrRay/VVISF-GL | 96b00da11e4497da304041ea2a5ffc6e3a8c9454 | [
"BSD-3-Clause"
] | 6 | 2019-01-17T17:17:12.000Z | 2020-06-19T11:27:50.000Z | VVGL/include/GLQtCtxWrapper.hpp | mrRay/VVISF-GL | 96b00da11e4497da304041ea2a5ffc6e3a8c9454 | [
"BSD-3-Clause"
] | 2 | 2020-12-25T04:57:31.000Z | 2021-03-02T22:05:31.000Z | #ifndef VVGL_GLQTCTXWRAPPER_H
#define VVGL_GLQTCTXWRAPPER_H
#include "VVGL_Defines.hpp"
#if defined(VVGL_SDK_QT)
#include <QSurfaceFormat>
#include <QThread>
#include <memory>
class QOpenGLContext;
class QSurface;
/* this class was created to hold a shared_ptr to a QOpenGLContext, and prevent anything using
this ... | 36 | 238 | 0.783392 | mrRay |
a7c880a9438da3b049e6ed123da2cc38611025ff | 4,633 | cpp | C++ | UEPrototype/Source/UEPrototype/Private/ActorInfo/VPAmbientSound.cpp | Jaeguins/Prototype | faa6b2626c3cfc187a9f4e44fef641de527fe0ca | [
"MIT"
] | null | null | null | UEPrototype/Source/UEPrototype/Private/ActorInfo/VPAmbientSound.cpp | Jaeguins/Prototype | faa6b2626c3cfc187a9f4e44fef641de527fe0ca | [
"MIT"
] | null | null | null | UEPrototype/Source/UEPrototype/Private/ActorInfo/VPAmbientSound.cpp | Jaeguins/Prototype | faa6b2626c3cfc187a9f4e44fef641de527fe0ca | [
"MIT"
] | null | null | null | // Fill out your copyright notice in the Description page of Project Settings.
#include "VPAmbientSound.h"
#include <Components/AudioComponent.h>
#include <Sound/SoundBase.h>
AVPAmbientSound::AVPAmbientSound()
{
myAudioComponent = GetAudioComponent();
//Default Values
myAudioComponent->VolumeMultiplier = 2.f;
my... | 28.423313 | 118 | 0.773149 | Jaeguins |
a7c88afba2a30c9620497c712dd77531527d4097 | 7,222 | cpp | C++ | src/libc/freestanding/ctype.cpp | patrick-lafferty/saturn | 6dc36adb42ad9b647704dd19247423a522eeb551 | [
"BSD-3-Clause"
] | 26 | 2018-03-19T15:59:46.000Z | 2021-08-06T16:13:16.000Z | src/libc/freestanding/ctype.cpp | patrick-lafferty/saturn | 6dc36adb42ad9b647704dd19247423a522eeb551 | [
"BSD-3-Clause"
] | 34 | 2018-01-21T17:43:29.000Z | 2020-06-27T02:00:53.000Z | src/libc/freestanding/ctype.cpp | patrick-lafferty/saturn | 6dc36adb42ad9b647704dd19247423a522eeb551 | [
"BSD-3-Clause"
] | 3 | 2019-12-08T22:26:35.000Z | 2021-06-25T17:05:57.000Z | /*
Copyright (c) 2017, Patrick Lafferty
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 conditions and the... | 29.357724 | 81 | 0.595264 | patrick-lafferty |
a7c8ae86995300911a9e15b4309a1f6eb6ba7957 | 11,257 | cpp | C++ | src/test/TestExceptions.cpp | koltenb/stellar-core | 46fdead5e6f6b322c60b79b1b8d085eb56d53fe5 | [
"Apache-2.0",
"BSD-2-Clause",
"MIT",
"ECL-2.0",
"BSL-1.0",
"BSD-3-Clause"
] | 1 | 2019-05-17T05:31:35.000Z | 2019-05-17T05:31:35.000Z | src/test/TestExceptions.cpp | koltenb/stellar-core | 46fdead5e6f6b322c60b79b1b8d085eb56d53fe5 | [
"Apache-2.0",
"BSD-2-Clause",
"MIT",
"ECL-2.0",
"BSL-1.0",
"BSD-3-Clause"
] | null | null | null | src/test/TestExceptions.cpp | koltenb/stellar-core | 46fdead5e6f6b322c60b79b1b8d085eb56d53fe5 | [
"Apache-2.0",
"BSD-2-Clause",
"MIT",
"ECL-2.0",
"BSL-1.0",
"BSD-3-Clause"
] | null | null | null | // Copyright 2016 Stellar Development Foundation and contributors. Licensed
// under the Apache License, Version 2.0. See the COPYING file at the root
// of this distribution or at http://www.apache.org/licenses/LICENSE-2.0
#include "test/TestExceptions.h"
namespace stellar
{
namespace txtest
{
void
throwIf(CreateA... | 28.002488 | 75 | 0.702319 | koltenb |
a7cb7c598982f6975c22208f39db5ba4aaf4ab13 | 1,539 | cpp | C++ | networkit/cpp/distance/IncompleteDijkstra.cpp | fabratu/networkit | 95f270122165f9c8950aa2f4d4cf126fb8fb1400 | [
"MIT"
] | 2 | 2017-08-24T17:59:11.000Z | 2021-06-13T05:33:11.000Z | networkit/cpp/distance/IncompleteDijkstra.cpp | fabratu/networkit | 95f270122165f9c8950aa2f4d4cf126fb8fb1400 | [
"MIT"
] | 1 | 2020-06-12T23:14:09.000Z | 2020-06-12T23:14:09.000Z | networkit/cpp/distance/IncompleteDijkstra.cpp | fabratu/networkit | 95f270122165f9c8950aa2f4d4cf126fb8fb1400 | [
"MIT"
] | 2 | 2019-04-29T23:00:15.000Z | 2019-06-18T10:08:38.000Z | /*
* IncompleteDijkstra.cpp
*
* Created on: 15.07.2014
* Author: dhoske
*/
// networkit-format
#include <limits>
#include <type_traits>
#include <networkit/distance/IncompleteDijkstra.hpp>
namespace NetworKit {
IncompleteDijkstra::IncompleteDijkstra(const Graph *G, const std::vector<node> &sources,
... | 24.046875 | 88 | 0.587394 | fabratu |
a7d342e3483dd39655f5251078996ff4be6c9b4e | 1,581 | hpp | C++ | src/hardware/include/roboteq/position.hpp | ILT-HSR/boarai-firmware | 4e22918719571d901dd76b36a23fd41bff5a0694 | [
"BSD-3-Clause"
] | 1 | 2021-05-22T09:51:38.000Z | 2021-05-22T09:51:38.000Z | src/hardware/include/roboteq/position.hpp | ILT-HSR/boarai-firmware | 4e22918719571d901dd76b36a23fd41bff5a0694 | [
"BSD-3-Clause"
] | 1 | 2021-06-02T01:01:37.000Z | 2021-06-02T01:01:37.000Z | src/hardware/include/roboteq/position.hpp | ILT-HSR/boarai-firmware | 4e22918719571d901dd76b36a23fd41bff5a0694 | [
"BSD-3-Clause"
] | 1 | 2021-05-22T09:51:51.000Z | 2021-05-22T09:51:51.000Z | #ifndef BOARAI_HARDWARE_ROBOTEQ_POSITION_HPP
#define BOARAI_HARDWARE_ROBOTEQ_POSITION_HPP
#include <cassert>
#include <cstdint>
#include <limits>
namespace boarai::hardware::roboteq
{
enum struct position_type : bool
{
absolute,
relative,
};
struct position
{
constexpr position(std::int32_t enc... | 25.095238 | 101 | 0.677419 | ILT-HSR |
a7d3715ae75bcd2a892adc98142e9e9d17323c85 | 1,032 | cpp | C++ | src/4_spanning_tree.cpp | swook/SfM | a99ab9f8daaa74d668510488b3920f68a6a02810 | [
"MIT"
] | 18 | 2016-05-15T04:17:53.000Z | 2021-12-08T14:50:21.000Z | src/4_spanning_tree.cpp | swook/SfM | a99ab9f8daaa74d668510488b3920f68a6a02810 | [
"MIT"
] | null | null | null | src/4_spanning_tree.cpp | swook/SfM | a99ab9f8daaa74d668510488b3920f68a6a02810 | [
"MIT"
] | 9 | 2015-11-19T15:43:21.000Z | 2021-06-24T12:37:35.000Z | #include <list>
#include "opencv2/core.hpp"
using namespace cv;
#include "Pipeline.hpp"
#include "Associativity.hpp"
#include "util.hpp"
const int Pipeline::build_spanning_tree(const ImagePairs& pairs, Associativity& assocMat,
Associativity& tree)
{
Logger _log("Step 4 (spanning)");
const int old_n = assocMat.n;... | 21.957447 | 91 | 0.678295 | swook |
a7e29495bd7479659442a81d36a0e229277c97db | 1,781 | cpp | C++ | vulkan/Instance.cpp | enjiushi/VulkanLearn | 29fb429a3fb526f8de7406404a983685a7e87117 | [
"MIT"
] | 272 | 2019-06-27T12:21:49.000Z | 2022-03-23T07:18:33.000Z | vulkan/Instance.cpp | enjiushi/VulkanLearn | 29fb429a3fb526f8de7406404a983685a7e87117 | [
"MIT"
] | 9 | 2019-08-11T13:07:01.000Z | 2022-01-26T12:30:24.000Z | vulkan/Instance.cpp | enjiushi/VulkanLearn | 29fb429a3fb526f8de7406404a983685a7e87117 | [
"MIT"
] | 16 | 2019-09-29T01:41:02.000Z | 2022-03-29T15:51:35.000Z | #include "Instance.h"
#include "../common/Macros.h"
#ifdef _DEBUG
VKAPI_ATTR VkBool32 VKAPI_CALL MyDebugReportCallback(VkDebugReportFlagsEXT flags,
VkDebugReportObjectTypeEXT objectType, uint64_t object, size_t location,
int32_t messageCode, const char* pLayerPrefix, const char* pMessage, void* pUserData)
{
#if def... | 30.186441 | 117 | 0.816395 | enjiushi |
a7e2fa497899830198fee711ff833ca00edce91d | 974 | cpp | C++ | Source/Powers/Projectiles/Components/BeamTarget.cpp | thatguyabass/Kill-O-Byte-Source | 0d4dfea226514161bb9799f55359f91da0998256 | [
"Apache-2.0"
] | 2 | 2016-12-13T19:13:10.000Z | 2017-08-14T04:46:52.000Z | Source/Powers/Projectiles/Components/BeamTarget.cpp | thatguyabass/Kill-O-Byte-Source | 0d4dfea226514161bb9799f55359f91da0998256 | [
"Apache-2.0"
] | null | null | null | Source/Powers/Projectiles/Components/BeamTarget.cpp | thatguyabass/Kill-O-Byte-Source | 0d4dfea226514161bb9799f55359f91da0998256 | [
"Apache-2.0"
] | null | null | null | // Fill out your copyright notice in the Description page of Project Settings.
#include "Snake_Project.h"
#include "BeamTarget.h"
// Sets default values
ABeamTarget::ABeamTarget()
{
Speed = 2500.0f;
bMove = true;
// Set this actor to call Tick() every frame. You can turn this off to improve performance if you ... | 18.037037 | 115 | 0.724846 | thatguyabass |
a7e85003e3e78f3e4377b491389f5209b97ae687 | 47,068 | cpp | C++ | tf2_src/game/server/cstrike/bot/cs_bot_vision.cpp | IamIndeedGamingAsHardAsICan03489/TeamFortress2 | 1b81dded673d49adebf4d0958e52236ecc28a956 | [
"MIT"
] | 4 | 2020-04-28T06:32:14.000Z | 2022-02-16T17:38:35.000Z | tf2_src/game/server/cstrike/bot/cs_bot_vision.cpp | Counter2828/TeamFortress2 | 1b81dded673d49adebf4d0958e52236ecc28a956 | [
"MIT"
] | null | null | null | tf2_src/game/server/cstrike/bot/cs_bot_vision.cpp | Counter2828/TeamFortress2 | 1b81dded673d49adebf4d0958e52236ecc28a956 | [
"MIT"
] | 3 | 2022-02-02T18:09:58.000Z | 2022-03-06T18:54:39.000Z | //========= Copyright Valve Corporation, All rights reserved. ============//
//
// Purpose:
//
// $NoKeywords: $
//=============================================================================//
// Author: Michael S. Booth (mike@turtlerockstudios.com), 2003
#include "cbase.h"
#include "cs_bot.h"
#include "datacache/... | 25.650136 | 149 | 0.636717 | IamIndeedGamingAsHardAsICan03489 |
a7ebbafb423558c24a258f905fc7f4df7f343510 | 5,047 | hpp | C++ | src/mpmc_queue.hpp | Paycasso/cpp-driver | 9e6efd4842afc226d999baf890a55275e7e94cf8 | [
"Apache-2.0"
] | null | null | null | src/mpmc_queue.hpp | Paycasso/cpp-driver | 9e6efd4842afc226d999baf890a55275e7e94cf8 | [
"Apache-2.0"
] | null | null | null | src/mpmc_queue.hpp | Paycasso/cpp-driver | 9e6efd4842afc226d999baf890a55275e7e94cf8 | [
"Apache-2.0"
] | null | null | null | /*
Copyright 2014 DataStax
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 in writing, softwar... | 31.943038 | 78 | 0.641173 | Paycasso |
a7ec33996626ec8a60faf1cccf4f7a8c4604dc10 | 3,653 | cpp | C++ | soea/fitness.cpp | jleopold28/snippets-and-notes | 0a032ee6ecc31c1e626305464f6ca59bfec90275 | [
"MIT"
] | null | null | null | soea/fitness.cpp | jleopold28/snippets-and-notes | 0a032ee6ecc31c1e626305464f6ca59bfec90275 | [
"MIT"
] | null | null | null | soea/fitness.cpp | jleopold28/snippets-and-notes | 0a032ee6ecc31c1e626305464f6ca59bfec90275 | [
"MIT"
] | null | null | null | #include <iostream>
#include <vector>
#include <unistd.h>
#include "genetics.hpp"
#include "mysqlQuery.hpp"
#include "tmtXmlProcess.hpp"
using namespace std;
void fitness(int &generation, unsigned int numElites, unsigned int numGenomes, string flarePatternName, vector<genome> &genePool, vector<string> dispensers, std... | 37.659794 | 179 | 0.645223 | jleopold28 |
a7ed4f4a1404af412835b158b20f47df89d993de | 690 | cpp | C++ | examples/emf2pdf.cpp | hleuwer/cd | 3220fd277a07cd1ba26a1dba8e82912960d24ef9 | [
"MIT"
] | null | null | null | examples/emf2pdf.cpp | hleuwer/cd | 3220fd277a07cd1ba26a1dba8e82912960d24ef9 | [
"MIT"
] | null | null | null | examples/emf2pdf.cpp | hleuwer/cd | 3220fd277a07cd1ba26a1dba8e82912960d24ef9 | [
"MIT"
] | null | null | null | #include <stdlib.h>
#include <stdio.h>
#include "cd_plus.h"
int main(int argc, char** argv)
{
if (argc < 3)
{
printf("Missing parameters: emf_filename pdf_filename\n");
return 1;
}
const char* emf_filename = argv[1];
const char* pdf_filename = argv[2];
//use A4 paper, 300 D... | 20.294118 | 76 | 0.617391 | hleuwer |
a7ee819bc7d133541bc057181c8d8b38dd976b66 | 11,442 | cpp | C++ | GameEngineCore/Spire/Source/SpireCore/ConstantPool.cpp | csyonghe/GameEngine | 1ac8174714a3a52e22a935f573121dd1ab0fa546 | [
"MIT"
] | 196 | 2016-05-29T04:44:18.000Z | 2022-03-14T05:23:14.000Z | GameEngineCore/Spire/Source/SpireCore/ConstantPool.cpp | csyonghe/GameEngine | 1ac8174714a3a52e22a935f573121dd1ab0fa546 | [
"MIT"
] | 53 | 2016-06-03T17:47:03.000Z | 2017-08-26T22:18:38.000Z | GameEngineCore/Spire/Source/SpireCore/ConstantPool.cpp | csyonghe/GameEngine | 1ac8174714a3a52e22a935f573121dd1ab0fa546 | [
"MIT"
] | 23 | 2016-05-31T18:10:48.000Z | 2022-01-07T02:19:29.000Z | #ifndef CONSTANT_POOL_H
#define CONSTANT_POOL_H
#include "ShaderCompiler.h"
#include "IL.h"
namespace Spire
{
namespace Compiler
{
class ConstantPoolImpl
{
private:
ILUndefinedOperand undefOperand;
Dictionary<ConstKey<int>, ILConstOperand*> intConsts;
Dictionary<ConstKey<unsigned int>, ILConstOperand... | 27.97555 | 171 | 0.638175 | csyonghe |
a7eeb71889b69982752415d37fc4bf28e30346ca | 1,885 | cc | C++ | test/fuzzers/comfort_noise_decoder_fuzzer.cc | rtmpnewbie/webrtc | 23ffbe78f3b386769b2a2e3fc301df318988ece1 | [
"DOC",
"BSD-3-Clause"
] | 2,151 | 2020-04-18T07:31:17.000Z | 2022-03-31T08:39:18.000Z | test/fuzzers/comfort_noise_decoder_fuzzer.cc | modulesio/webrtc | ea143e774b4c00a74b617f272f5a8f71169cf24e | [
"DOC",
"BSD-3-Clause"
] | 395 | 2020-04-18T08:22:18.000Z | 2021-12-08T13:04:49.000Z | test/fuzzers/comfort_noise_decoder_fuzzer.cc | modulesio/webrtc | ea143e774b4c00a74b617f272f5a8f71169cf24e | [
"DOC",
"BSD-3-Clause"
] | 338 | 2020-04-18T08:03:10.000Z | 2022-03-29T12:33:22.000Z | /*
* Copyright (c) 2017 The WebRTC project authors. All Rights Reserved.
*
* Use of this source code is governed by a BSD-style license
* that can be found in the LICENSE file in the root of the source
* tree. An additional intellectual property rights grant can be found
* in the file PATENTS. All contribut... | 31.416667 | 71 | 0.712467 | rtmpnewbie |
a7f2b4bf539cfcbc3573bbd468a8c60a3973548f | 2,896 | hh | C++ | DbTables/inc/TstCalib3.hh | resnegfk/Offline | 4ba81dad54486188fa83fea8c085438d104afbbc | [
"Apache-2.0"
] | 9 | 2020-03-28T00:21:41.000Z | 2021-12-09T20:53:26.000Z | DbTables/inc/TstCalib3.hh | resnegfk/Offline | 4ba81dad54486188fa83fea8c085438d104afbbc | [
"Apache-2.0"
] | 684 | 2019-08-28T23:37:43.000Z | 2022-03-31T22:47:45.000Z | DbTables/inc/TstCalib3.hh | resnegfk/Offline | 4ba81dad54486188fa83fea8c085438d104afbbc | [
"Apache-2.0"
] | 61 | 2019-08-16T23:28:08.000Z | 2021-12-20T08:29:48.000Z | #ifndef DbTables_TstCalib3_hh
#define DbTables_TstCalib3_hh
#include <string>
#include <iomanip>
#include <sstream>
#include <map>
#include "Offline/DbTables/inc/DbTable.hh"
namespace mu2e {
class TstCalib3 : public DbTable {
public:
class Row {
public:
Row(int channel, float v0, float v1, float ... | 29.252525 | 95 | 0.56837 | resnegfk |
a7f4dd7e757df3a8647b5ce21f2b446aefc8443d | 1,705 | cpp | C++ | Plugins/UnLua/Source/UnLuaTestSuite/Private/Tests/Issue292Test.cpp | GotGimhong/UnLua | 8969f90e349700ba6e8afdb130f4c7b9aec24830 | [
"MIT"
] | 2 | 2022-01-05T06:42:51.000Z | 2022-03-10T07:19:11.000Z | Plugins/UnLua/Source/UnLuaTestSuite/Private/Tests/Issue292Test.cpp | GotGimhong/UnLua | 8969f90e349700ba6e8afdb130f4c7b9aec24830 | [
"MIT"
] | null | null | null | Plugins/UnLua/Source/UnLuaTestSuite/Private/Tests/Issue292Test.cpp | GotGimhong/UnLua | 8969f90e349700ba6e8afdb130f4c7b9aec24830 | [
"MIT"
] | null | null | null | // Tencent is pleased to support the open source community by making UnLua available.
//
// Copyright (C) 2019 THL A29 Limited, a Tencent company. All rights reserved.
//
// Licensed under the MIT License (the "License");
// you may not use this file except in compliance with the License. You may obtain a copy of the... | 32.169811 | 127 | 0.703812 | GotGimhong |
a7fd7c28b5542303dbc6f542e59037a0e17269e4 | 48 | hpp | C++ | src/boost_geometry_algorithms_buffer.hpp | miathedev/BoostForArduino | 919621dcd0c157094bed4df752b583ba6ea6409e | [
"BSL-1.0"
] | 10 | 2018-03-17T00:58:42.000Z | 2021-07-06T02:48:49.000Z | src/boost_geometry_algorithms_buffer.hpp | miathedev/BoostForArduino | 919621dcd0c157094bed4df752b583ba6ea6409e | [
"BSL-1.0"
] | 2 | 2021-03-26T15:17:35.000Z | 2021-05-20T23:55:08.000Z | src/boost_geometry_algorithms_buffer.hpp | miathedev/BoostForArduino | 919621dcd0c157094bed4df752b583ba6ea6409e | [
"BSL-1.0"
] | 4 | 2019-05-28T21:06:37.000Z | 2021-07-06T03:06:52.000Z | #include <boost/geometry/algorithms/buffer.hpp>
| 24 | 47 | 0.8125 | miathedev |
a7fe084b30d648afd0ad6fe1949afb205df8af60 | 2,656 | cpp | C++ | Engine/IO/Window.cpp | GreatIndieDeveloper/StrawEngine-Core | 4f4a89e1fb970b6a2963371b90fbfab64f45bba8 | [
"Apache-2.0"
] | 2 | 2019-05-07T06:50:33.000Z | 2019-05-07T14:25:50.000Z | Engine/IO/Window.cpp | GreatIndieDeveloper/StrawEngine-Core | 4f4a89e1fb970b6a2963371b90fbfab64f45bba8 | [
"Apache-2.0"
] | null | null | null | Engine/IO/Window.cpp | GreatIndieDeveloper/StrawEngine-Core | 4f4a89e1fb970b6a2963371b90fbfab64f45bba8 | [
"Apache-2.0"
] | null | null | null | #include "Window.h"
#include "../GUI/imgui.h"
#include "../GUI/imgui_impl_opengl3.h"
#include "../GUI/imgui_impl_sdl.h"
#include "../Game/Game.h"
#include <iostream>
#include <thread>
int Window::m_width, Window::m_height;
std::string Window::m_title;
int Window::S_WIDTH = 1000;
int Window::S_HEIGHT = 1000;
... | 31.247059 | 72 | 0.660015 | GreatIndieDeveloper |
a7fe60721ad72be2848f2741e537ddf43fbe3b7b | 403 | cc | C++ | perf/abstract_perf_test_disruptor.cc | jordanxlj/magic_bean | f225e74aa9c726d0ec27e2d258d266fdef48e554 | [
"Apache-2.0"
] | 1 | 2017-03-27T05:04:11.000Z | 2017-03-27T05:04:11.000Z | perf/abstract_perf_test_disruptor.cc | jordanxlj/magic_bean | f225e74aa9c726d0ec27e2d258d266fdef48e554 | [
"Apache-2.0"
] | null | null | null | perf/abstract_perf_test_disruptor.cc | jordanxlj/magic_bean | f225e74aa9c726d0ec27e2d258d266fdef48e554 | [
"Apache-2.0"
] | 2 | 2019-09-04T15:20:03.000Z | 2021-04-24T06:49:16.000Z | #include "abstract_perf_test_disruptor.h"
#include <iostream>
void AbstractPerfTestDisruptor::TestImplementations() {
int64_t* disruptor_ops = new int64_t[RUNS];
std::cout << "Starting Disruptor Tests." << std::endl;
for(int i = 0; i < RUNS; i++) {
disruptor_ops[i] = RunDisruptorPass();
std::cout << "Ru... | 31 | 96 | 0.645161 | jordanxlj |
a7ffe19e7011d347809808f753978469bec17e8b | 2,484 | cc | C++ | src/utils/input_utils.cc | danielkrupinski/zgui | 8508a1a99a682b3d8b264608a599a0439134ab59 | [
"MIT"
] | 9 | 2019-03-02T23:16:41.000Z | 2021-06-09T09:28:54.000Z | src/utils/input_utils.cc | danielkrupinski/zgui | 8508a1a99a682b3d8b264608a599a0439134ab59 | [
"MIT"
] | null | null | null | src/utils/input_utils.cc | danielkrupinski/zgui | 8508a1a99a682b3d8b264608a599a0439134ab59 | [
"MIT"
] | 3 | 2019-04-03T21:18:48.000Z | 2020-12-27T14:35:13.000Z | //@zgui_packer:ignore
#include "../zgui.hh"
using namespace zgui::globals;
//@zgui_packer:resume
// ========================================================================
// Function for starting our input loop.
void zgui::poll_input(std::string_view window_name) {
if (window_name.empty())
throw std::ex... | 38.215385 | 112 | 0.535427 | danielkrupinski |
c50079e86576ed0115b854fd01c872a5f427c24d | 101,728 | cpp | C++ | sourceCode/dotNet4.6/vb/language/compiler/semanticanalyzer/xmlsemantics.cpp | csoap/csoap.github.io | 2a8db44eb63425deff147652b65c5912f065334e | [
"Apache-2.0"
] | 5 | 2017-03-03T02:13:16.000Z | 2021-08-18T09:59:56.000Z | sourceCode/dotNet4.6/vb/language/compiler/semanticanalyzer/xmlsemantics.cpp | 295007712/295007712.github.io | 25241dbf774427545c3ece6534be6667848a6faf | [
"Apache-2.0"
] | null | null | null | sourceCode/dotNet4.6/vb/language/compiler/semanticanalyzer/xmlsemantics.cpp | 295007712/295007712.github.io | 25241dbf774427545c3ece6534be6667848a6faf | [
"Apache-2.0"
] | 4 | 2016-11-15T05:20:12.000Z | 2021-11-13T16:32:11.000Z | //-------------------------------------------------------------------------------------------------
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
//-------------------------------------------------------------------------------------------------
#include "StdAfx.h"
//---------------------------... | 32.438776 | 185 | 0.60532 | csoap |
c5017ee7f17fdd01ac398f975565ed99a7b8eb4e | 2,404 | cpp | C++ | msr145-tool/sources/msr145_com.cpp | StefanRvO/libmsr145 | f9e49c1b116cdb8bb991084e9de11d5df8cd3b37 | [
"Beerware"
] | null | null | null | msr145-tool/sources/msr145_com.cpp | StefanRvO/libmsr145 | f9e49c1b116cdb8bb991084e9de11d5df8cd3b37 | [
"Beerware"
] | null | null | null | msr145-tool/sources/msr145_com.cpp | StefanRvO/libmsr145 | f9e49c1b116cdb8bb991084e9de11d5df8cd3b37 | [
"Beerware"
] | null | null | null | /*
* ----------------------------------------------------------------------------
* "THE BEER-WARE LICENSE" (Revision 42):
* <stefan@stefanrvo.dk> wrote this file. As long as you retain this notice you
* can do whatever you want with this stuff. If we meet some day, and you think
* this stuff is worth it, you can... | 33.859155 | 87 | 0.526206 | StefanRvO |
c503411289d212e7385d2126488a75ccf16b7dca | 25,172 | cpp | C++ | IrrealEngine/ModuleImGui.cpp | albertmas/GameEngines | 1b14749d4ede8b58cfa2e2ae60aa8e1af3d7bac5 | [
"MIT"
] | null | null | null | IrrealEngine/ModuleImGui.cpp | albertmas/GameEngines | 1b14749d4ede8b58cfa2e2ae60aa8e1af3d7bac5 | [
"MIT"
] | null | null | null | IrrealEngine/ModuleImGui.cpp | albertmas/GameEngines | 1b14749d4ede8b58cfa2e2ae60aa8e1af3d7bac5 | [
"MIT"
] | null | null | null | #include "Application.h"
#include "ModuleImGui.h"
#include "ImGui/imgui_impl_sdl.h"
#include "ImGui/imgui_impl_opengl2.h"
#include "DeviceId/DeviceId.h"
#include "ModuleWindow.h"
#include "ModuleInput.h"
#include "ModuleRenderer3D.h"
#include "ModulePhysics3D.h"
#include "ModuleSceneLoader.h"
#include "ModuleMeshLoader... | 28.475113 | 175 | 0.662204 | albertmas |
c50d66128284ce157e949d9402c24643004616dd | 6,359 | cpp | C++ | tcaplusdb/src/v20190823/model/SnapshotInfo.cpp | sinjoywong/tencentcloud-sdk-cpp | 1b931d20956a90b15a6720f924e5c69f8786f9f4 | [
"Apache-2.0"
] | null | null | null | tcaplusdb/src/v20190823/model/SnapshotInfo.cpp | sinjoywong/tencentcloud-sdk-cpp | 1b931d20956a90b15a6720f924e5c69f8786f9f4 | [
"Apache-2.0"
] | null | null | null | tcaplusdb/src/v20190823/model/SnapshotInfo.cpp | sinjoywong/tencentcloud-sdk-cpp | 1b931d20956a90b15a6720f924e5c69f8786f9f4 | [
"Apache-2.0"
] | null | null | null | /*
* Copyright (c) 2017-2019 THL A29 Limited, a Tencent company. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
... | 29.304147 | 141 | 0.702312 | sinjoywong |
c5106e0e4e026256c3a21e651f3c9784f2c45a22 | 4,265 | cpp | C++ | src/LORE/Core/Platform/Timer_win.cpp | MemoryDealer/LORE | 2ce0c6cf03c119e5d1b0b90f3ee044901353283a | [
"MIT"
] | 2 | 2021-07-14T06:05:48.000Z | 2021-07-14T18:07:18.000Z | src/LORE/Core/Platform/Timer_win.cpp | MemoryDealer/LORE | 2ce0c6cf03c119e5d1b0b90f3ee044901353283a | [
"MIT"
] | null | null | null | src/LORE/Core/Platform/Timer_win.cpp | MemoryDealer/LORE | 2ce0c6cf03c119e5d1b0b90f3ee044901353283a | [
"MIT"
] | null | null | null | // ::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: //
// The MIT License (MIT)
// This source file is part of LORE
// ( Lightweight Object-oriented Rendering Engine )
//
// Copyright (c) 2017-2021 Jordan Sparks
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
... | 29.413793 | 82 | 0.527315 | MemoryDealer |
78a1d740aaed3868684416847b7ff3bdf8c7441c | 10,438 | cpp | C++ | phosphor-power-sequencer/src/power_control.cpp | ibm-openbmc/phosphor-power | cf8f658a6cf7e326d1b8ca7a58e8e8fe48f5a5d2 | [
"Apache-2.0"
] | null | null | null | phosphor-power-sequencer/src/power_control.cpp | ibm-openbmc/phosphor-power | cf8f658a6cf7e326d1b8ca7a58e8e8fe48f5a5d2 | [
"Apache-2.0"
] | 3 | 2022-01-04T22:50:18.000Z | 2022-03-24T23:42:57.000Z | phosphor-power-sequencer/src/power_control.cpp | ibm-openbmc/phosphor-power | cf8f658a6cf7e326d1b8ca7a58e8e8fe48f5a5d2 | [
"Apache-2.0"
] | 1 | 2021-12-27T16:54:29.000Z | 2021-12-27T16:54:29.000Z | /**
* Copyright © 2021 IBM Corporation
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agr... | 30.080692 | 92 | 0.597145 | ibm-openbmc |
78a47fc333d1d987301237faa2f6d916a922bb94 | 4,450 | cpp | C++ | src/test/evmdd/numeric/evaluation_tests_iversion.cpp | geisserf/lemon-dd | e7518886ce7dc5960f16d799c8ff6450ea67e7ae | [
"BSL-1.0"
] | 2 | 2018-10-26T11:21:13.000Z | 2020-06-04T11:31:03.000Z | src/test/evmdd/numeric/evaluation_tests_iversion.cpp | geisserf/lemon-dd | e7518886ce7dc5960f16d799c8ff6450ea67e7ae | [
"BSL-1.0"
] | 10 | 2018-11-28T08:55:51.000Z | 2018-12-04T09:15:17.000Z | src/test/evmdd/numeric/evaluation_tests_iversion.cpp | geisserf/lemon-dd | e7518886ce7dc5960f16d799c8ff6450ea67e7ae | [
"BSL-1.0"
] | null | null | null | #include "../../../polynomial.h"
#include "../../Catch/include/catch.hpp"
#include <iostream>
// Testing evmdd::evaluate() for expressions with logical propositions
SCENARIO(
"Testing numeric EVMDDs for concrete evaluation on iverson based input",
"[evmdd][evaluation][iverson]") {
GIVEN("Evmdd for expressi... | 34.496124 | 76 | 0.427191 | geisserf |
78a55be8ba854859783f18189fcf51f976077df7 | 1,244 | cpp | C++ | framework/sphere.cpp | GottaGoGitHub/programmiersprachen-raytracer | de485910a994c96965372734602da3bbe01392bb | [
"MIT"
] | null | null | null | framework/sphere.cpp | GottaGoGitHub/programmiersprachen-raytracer | de485910a994c96965372734602da3bbe01392bb | [
"MIT"
] | null | null | null | framework/sphere.cpp | GottaGoGitHub/programmiersprachen-raytracer | de485910a994c96965372734602da3bbe01392bb | [
"MIT"
] | null | null | null | #include "sphere.hpp"
#include <iostream>
#include <math.h>
Sphere::Sphere():
Shape{},
center_{0,0,0},
radius_{0}{}
Sphere::Sphere(std::string const& name, Material const& mat, glm::vec3 const& center, float const& radius):
Shape{name, mat},
center_{center},
radius_{radius}{}
Sphere::~Sphere(... | 23.037037 | 112 | 0.624598 | GottaGoGitHub |
78a74e3b454d6340d0a9e7f1309cda28815b22b2 | 29,706 | cpp | C++ | src/cmd_dir.cpp | PeterBortas/samdisk | 7a6f882c42f10093848cc3815453c143ac09f63a | [
"MIT"
] | 1 | 2018-12-13T14:56:30.000Z | 2018-12-13T14:56:30.000Z | src/cmd_dir.cpp | PeterBortas/samdisk | 7a6f882c42f10093848cc3815453c143ac09f63a | [
"MIT"
] | null | null | null | src/cmd_dir.cpp | PeterBortas/samdisk | 7a6f882c42f10093848cc3815453c143ac09f63a | [
"MIT"
] | null | null | null | // Dir command
#include "SAMdisk.h"
#include "JupiterAce.h"
#include "opd.h"
#include "trd.h"
#define MGT_DATE_COLUMN 48
template <typename T>
bool IsMgtDirEntry (const uint8_t *p, T &bitmap)
{
auto dir = reinterpret_cast<const MGT_DIR *>(p);
auto type = dir->bType & 0x3f;
// Unused entries are valid
if (!type... | 29.095005 | 187 | 0.613647 | PeterBortas |
78a8a968e7592eac24dacfff6628acc522de42fa | 110,817 | cpp | C++ | src/player.cpp | assasinwar9/Barony | c67c01de1168db1c5a2edad98b23cfff9f999187 | [
"FTL",
"Zlib",
"MIT"
] | 373 | 2016-06-28T06:56:46.000Z | 2022-03-23T02:32:54.000Z | src/player.cpp | assasinwar9/Barony | c67c01de1168db1c5a2edad98b23cfff9f999187 | [
"FTL",
"Zlib",
"MIT"
] | 361 | 2016-07-06T19:09:25.000Z | 2022-03-26T14:14:19.000Z | src/player.cpp | addictgamer/Barony | c67c01de1168db1c5a2edad98b23cfff9f999187 | [
"FTL",
"Zlib",
"MIT"
] | 129 | 2016-06-29T09:02:49.000Z | 2022-01-23T09:56:06.000Z | /*-------------------------------------------------------------------------------
BARONY
File: draw.cpp
Desc: contains various definitions for player code
Copyright 2013-2016 (c) Turning Wheel LLC, all rights reserved.
See LICENSE for details.
--------------------------------------------------------------------... | 26.309829 | 218 | 0.677107 | assasinwar9 |
78aa10527f9d313efe3118d974c5b60e7025937d | 112 | cpp | C++ | src/Ant.cpp | mpajkowski/cxx-project-bootstrap | 77b601a918161379899580cb1f1038de2c3c7614 | [
"MIT"
] | 1 | 2019-01-14T22:31:32.000Z | 2019-01-14T22:31:32.000Z | src/Ant.cpp | mpajkowski/cxx-project-bootstrap | 77b601a918161379899580cb1f1038de2c3c7614 | [
"MIT"
] | null | null | null | src/Ant.cpp | mpajkowski/cxx-project-bootstrap | 77b601a918161379899580cb1f1038de2c3c7614 | [
"MIT"
] | null | null | null | #include "Ant.hpp"
std::string Ant::toString() const
{
return {"Ant is a small and hard-working ally."};
}
| 16 | 53 | 0.651786 | mpajkowski |
78aa361d1c90f08b66469e985ce7decb8ca2fa7d | 1,224 | hpp | C++ | buyables/blu_rus_army/backpacks.hpp | gruppe-adler/TvT_HoldingPoint.Altis | 685a25e1cab315c877dcc0bbc41cf7d181fdd3f8 | [
"CC-BY-3.0"
] | 1 | 2020-08-31T15:48:28.000Z | 2020-08-31T15:48:28.000Z | buyables/opf_rus_army/backpacks.hpp | AdlerSalbei/TvT_HoldingPoint.Altis | 685a25e1cab315c877dcc0bbc41cf7d181fdd3f8 | [
"CC-BY-3.0"
] | 3 | 2017-01-16T09:25:39.000Z | 2017-02-15T08:35:16.000Z | buyables/opf_rus_army/backpacks.hpp | gruppe-adler/TvT_HoldingPoint.Altis | 685a25e1cab315c877dcc0bbc41cf7d181fdd3f8 | [
"CC-BY-3.0"
] | null | null | null | class backpacks {
displayName = "Backpacks";
kindOf = "Wearables";
class B_LIB_SOV_RA_GasBag{
displayName = "1";
price = 10;
stock = 10;
};
class B_LIB_SOV_RA_Paradrop{
displayName = "2";
price = 10;
stock = 10;
};
class B_LIB_SOV_RA_M... | 18.830769 | 37 | 0.48366 | gruppe-adler |
78ac9bc51da6532b0bc2c94394584accaeb70ae9 | 88 | hpp | C++ | Include/Components/gravity.hpp | guillaumelbf/ECS | fa4a817b6df08dbd922e285947a53d80d7a309e4 | [
"MIT"
] | null | null | null | Include/Components/gravity.hpp | guillaumelbf/ECS | fa4a817b6df08dbd922e285947a53d80d7a309e4 | [
"MIT"
] | null | null | null | Include/Components/gravity.hpp | guillaumelbf/ECS | fa4a817b6df08dbd922e285947a53d80d7a309e4 | [
"MIT"
] | null | null | null | #pragma once
#include "Maths/extendedTypes.hpp"
struct Gravity
{
Float3 force;
};
| 9.777778 | 34 | 0.704545 | guillaumelbf |
78acc1c99cc93fe55f81eb2106d0ad01639f13aa | 198 | cpp | C++ | 3_Arrays_and_Vectors/01_Array.cpp | Nikikapralov/C-PP | 19d72f52239314d50df43ed30c30b960fd29e9a5 | [
"MIT"
] | null | null | null | 3_Arrays_and_Vectors/01_Array.cpp | Nikikapralov/C-PP | 19d72f52239314d50df43ed30c30b960fd29e9a5 | [
"MIT"
] | null | null | null | 3_Arrays_and_Vectors/01_Array.cpp | Nikikapralov/C-PP | 19d72f52239314d50df43ed30c30b960fd29e9a5 | [
"MIT"
] | null | null | null | #include <vector>
using namespace std;
vector<int> use_array() {
int arr [10] {0};
arr[0] = 100;
arr[9] = 1000;
vector<int> v(arr, arr + sizeof arr / sizeof arr[0]);
return v;
} | 19.8 | 57 | 0.575758 | Nikikapralov |
78b01d8f98c67ea965ccb21283ae77ed0fa7fd3c | 792 | hpp | C++ | include/libtorrent/aux_/has_block.hpp | redchief/libtorrent | 42917790b1606b5ea0cf5385fde44536c7040a27 | [
"BSL-1.0",
"BSD-3-Clause"
] | null | null | null | include/libtorrent/aux_/has_block.hpp | redchief/libtorrent | 42917790b1606b5ea0cf5385fde44536c7040a27 | [
"BSL-1.0",
"BSD-3-Clause"
] | null | null | null | include/libtorrent/aux_/has_block.hpp | redchief/libtorrent | 42917790b1606b5ea0cf5385fde44536c7040a27 | [
"BSL-1.0",
"BSD-3-Clause"
] | null | null | null | /*
Copyright (c) 2016-2017, 2019-2020, Arvid Norberg
Copyright (c) 2018, Alden Torres
All rights reserved.
You may use, distribute and modify this code under the terms of the BSD license,
see LICENSE file.
*/
#ifndef TORRENT_HAS_BLOCK_HPP_INCLUDED
#define TORRENT_HAS_BLOCK_HPP_INCLUDED
#include "libtorrent/piece_bl... | 22.628571 | 80 | 0.752525 | redchief |
78b38c384489e0f42d89190d907e8d82917c01b3 | 559 | cpp | C++ | solutions/369.plus-one-linked-list.314166404.ac.cpp | satu0king/Leetcode-Solutions | 2edff60d76c2898d912197044f6284efeeb34119 | [
"MIT"
] | 78 | 2020-10-22T11:31:53.000Z | 2022-02-22T13:27:49.000Z | solutions/369.plus-one-linked-list.314166404.ac.cpp | satu0king/Leetcode-Solutions | 2edff60d76c2898d912197044f6284efeeb34119 | [
"MIT"
] | null | null | null | solutions/369.plus-one-linked-list.314166404.ac.cpp | satu0king/Leetcode-Solutions | 2edff60d76c2898d912197044f6284efeeb34119 | [
"MIT"
] | 26 | 2020-10-23T15:10:44.000Z | 2021-11-07T16:13:50.000Z | /**
* Definition for singly-linked list.
* struct ListNode {
* int val;
* ListNode *next;
* ListNode(int x) : val(x), next(NULL) {}
* };
*/
class Solution {
public:
ListNode *plusOne(ListNode *head) {
if (f(head)) {
ListNode *newHead = new ListNode(1);
newHead->next = head;
re... | 17.46875 | 46 | 0.502683 | satu0king |
78b3c05c92c319b9c56397d5488c4d479d2eec49 | 3,477 | cc | C++ | src/rule_message.cc | Peercraft/deb-modsecurity | 6d608c3ea5d762b370bf682ba24e2febffd4f382 | [
"Apache-2.0"
] | null | null | null | src/rule_message.cc | Peercraft/deb-modsecurity | 6d608c3ea5d762b370bf682ba24e2febffd4f382 | [
"Apache-2.0"
] | null | null | null | src/rule_message.cc | Peercraft/deb-modsecurity | 6d608c3ea5d762b370bf682ba24e2febffd4f382 | [
"Apache-2.0"
] | null | null | null | /*
* ModSecurity, http://www.modsecurity.org/
* Copyright (c) 2015 Trustwave Holdings, Inc. (http://www.trustwave.com/)
*
* 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
*
* If any of the files rela... | 34.088235 | 79 | 0.593615 | Peercraft |
78b3d5be81bb043b662a8f9d15798947cd0b0349 | 5,402 | cpp | C++ | GTEngine/Source/Applications/GteWindow2.cpp | pmjoniak/GeometricTools | ae6e933f9ab3a5474d830700ea8d9445cc78ef4b | [
"BSL-1.0"
] | 4 | 2019-03-03T18:13:30.000Z | 2020-08-25T18:15:30.000Z | GTEngine/Source/Applications/GteWindow2.cpp | pmjoniak/GeometricTools | ae6e933f9ab3a5474d830700ea8d9445cc78ef4b | [
"BSL-1.0"
] | null | null | null | GTEngine/Source/Applications/GteWindow2.cpp | pmjoniak/GeometricTools | ae6e933f9ab3a5474d830700ea8d9445cc78ef4b | [
"BSL-1.0"
] | 6 | 2016-07-15T11:04:52.000Z | 2021-12-07T03:11:42.000Z | // David Eberly, Geometric Tools, Redmond WA 98052
// Copyright (c) 1998-2018
// Distributed under the Boost Software License, Version 1.0.
// http://www.boost.org/LICENSE_1_0.txt
// http://www.geometrictools.com/License/Boost/LICENSE_1_0.txt
// File Version: 3.0.1 (2018/10/22)
#include <GTEnginePCH.h>
#include <Appli... | 28.282723 | 115 | 0.661792 | pmjoniak |
78b472bdae02bc89f08dcc2a44b395866e9954d8 | 14,055 | cpp | C++ | libraries/gpu/src/gpu/Context.cpp | trentpolack/hifi | 3b8636b75c3df242c0aeecbca6e01f386e238f45 | [
"Apache-2.0"
] | null | null | null | libraries/gpu/src/gpu/Context.cpp | trentpolack/hifi | 3b8636b75c3df242c0aeecbca6e01f386e238f45 | [
"Apache-2.0"
] | null | null | null | libraries/gpu/src/gpu/Context.cpp | trentpolack/hifi | 3b8636b75c3df242c0aeecbca6e01f386e238f45 | [
"Apache-2.0"
] | null | null | null | //
// Context.cpp
// interface/src/gpu
//
// Created by Sam Gateau on 10/27/2014.
// Copyright 2014 High Fidelity, Inc.
//
// Distributed under the Apache License, Version 2.0.
// See the accompanying file LICENSE or http://www.apache.org/licenses/LICENSE-2.0.html
//
#include "Context.h"
#include <shared/GlobalA... | 32.686047 | 197 | 0.723372 | trentpolack |
78c1de1b0a009d7edd48dbcab1cffb847ed80632 | 808 | hh | C++ | src/utils/checks.hh | rlofc/GameDevelopementTemplates | 5b52eafb7350c2bb51b3947db82cb8f908077925 | [
"Unlicense"
] | 42 | 2017-02-25T18:46:36.000Z | 2022-01-12T01:30:41.000Z | src/utils/checks.hh | rlofc/GameDevelopementTemplates | 5b52eafb7350c2bb51b3947db82cb8f908077925 | [
"Unlicense"
] | 5 | 2017-03-04T17:44:36.000Z | 2017-03-04T17:46:11.000Z | src/utils/checks.hh | rlofc/GameDevelopementTemplates | 5b52eafb7350c2bb51b3947db82cb8f908077925 | [
"Unlicense"
] | 2 | 2017-11-26T02:55:18.000Z | 2020-05-19T01:45:56.000Z | #ifndef GDT_CHECKS_HEADER_INCLUDED
#define GDT_CHECKS_HEADER_INCLUDED
#include "utils/logger.hh"
#define GL_CHECK(x) \
x; \
{ \
... | 47.529412 | 73 | 0.27104 | rlofc |
78c211ed9cd845db0d5e752b8e179bfd25d42540 | 1,189 | hpp | C++ | src/org/apache/poi/hssf/record/PaletteRecord_PColor.hpp | pebble2015/cpoi | 6dcc0c5e13e3e722b4ef9fd0baffbf62bf71ead6 | [
"Apache-2.0"
] | null | null | null | src/org/apache/poi/hssf/record/PaletteRecord_PColor.hpp | pebble2015/cpoi | 6dcc0c5e13e3e722b4ef9fd0baffbf62bf71ead6 | [
"Apache-2.0"
] | null | null | null | src/org/apache/poi/hssf/record/PaletteRecord_PColor.hpp | pebble2015/cpoi | 6dcc0c5e13e3e722b4ef9fd0baffbf62bf71ead6 | [
"Apache-2.0"
] | null | null | null | // Generated from /POI/java/org/apache/poi/hssf/record/PaletteRecord.java
#pragma once
#include <fwd-POI.hpp>
#include <java/lang/fwd-POI.hpp>
#include <org/apache/poi/hssf/record/fwd-POI.hpp>
#include <org/apache/poi/util/fwd-POI.hpp>
#include <java/lang/Object.hpp>
struct default_init_tag;
class poi::hssf::record... | 23.313725 | 73 | 0.703953 | pebble2015 |
78c2d09736880e4a3ab27566f7575370257bb3a2 | 3,099 | cpp | C++ | src/Data/Score.cpp | Subject38/jujube | 664b995cc65fa6045433b4837d765c62fe6490b4 | [
"MIT"
] | 19 | 2020-02-28T20:34:12.000Z | 2022-01-28T20:18:25.000Z | src/Data/Score.cpp | Subject38/jujube | 664b995cc65fa6045433b4837d765c62fe6490b4 | [
"MIT"
] | 7 | 2019-10-22T09:43:16.000Z | 2022-03-12T00:15:13.000Z | src/Data/Score.cpp | Subject38/jujube | 664b995cc65fa6045433b4837d765c62fe6490b4 | [
"MIT"
] | 5 | 2019-10-22T08:14:57.000Z | 2021-03-13T06:32:04.000Z | #include "Score.hpp"
#include <mutex>
#include <SFML/System/Time.hpp>
namespace Data {
std::size_t count_classic_scoring_events(const std::set<Note>& notes) {
std::size_t count = 0;
for (auto&& note : notes) {
if (note.duration > sf::Time::Zero) {
count += 2;
... | 29.235849 | 103 | 0.536947 | Subject38 |
78c426d7f0c823daf566c78767494490e18de4c6 | 3,209 | cpp | C++ | source/player.cpp | t0k3n1z3r/rps | d6bf3302cb17a060b5a52294a4e6697a1eff4279 | [
"Apache-2.0"
] | null | null | null | source/player.cpp | t0k3n1z3r/rps | d6bf3302cb17a060b5a52294a4e6697a1eff4279 | [
"Apache-2.0"
] | null | null | null | source/player.cpp | t0k3n1z3r/rps | d6bf3302cb17a060b5a52294a4e6697a1eff4279 | [
"Apache-2.0"
] | null | null | null | /**
********************************************************************************
* @file player.cpp
* @brief RPS player class implementation
* @author Maksym Koshel (maks.koshel@gmail.com)
* @date Sep 02, 2017
*****************************************************************************... | 23.947761 | 80 | 0.246806 | t0k3n1z3r |
78c61cc53d927b36c7cb4e918f0f34d450834692 | 1,538 | cpp | C++ | main.cpp | hcanIngo/pahoMqttHomieClient | be45f5271b7aa9837cf5f8b191df0bd75539d34a | [
"MIT"
] | 1 | 2019-04-04T13:00:32.000Z | 2019-04-04T13:00:32.000Z | main.cpp | hcanIngo/pahoMqttHomieClient | be45f5271b7aa9837cf5f8b191df0bd75539d34a | [
"MIT"
] | null | null | null | main.cpp | hcanIngo/pahoMqttHomieClient | be45f5271b7aa9837cf5f8b191df0bd75539d34a | [
"MIT"
] | null | null | null | #include <iostream>
#include <string>
#include <cstring> // strcmp
#include "mqtt_client.h"
#include "./include/homie-cpp/client.h"
#include "test_device.h"
int main(int argc, char** argv) try {
std::string brokerip = "127.0.0.1";
std::string username;
std::string password;
std::string basetopic = "test/";
std::s... | 27.963636 | 73 | 0.609883 | hcanIngo |
78c7397e79b323c16e54a1ba5b33fae32a2e885c | 16,943 | hpp | C++ | src/libs/optframe/src/OptFrame/Heuristics/EvolutionaryAlgorithms/GeneticAlgorithm.hpp | fellipessanha/LMRRC-Team-AIDA | 8076599427df0e35890caa7301972a53ae327edb | [
"MIT"
] | 1 | 2021-08-19T13:31:29.000Z | 2021-08-19T13:31:29.000Z | src/libs/optframe/src/OptFrame/Heuristics/EvolutionaryAlgorithms/GeneticAlgorithm.hpp | fellipessanha/LMRRC-Team-AIDA | 8076599427df0e35890caa7301972a53ae327edb | [
"MIT"
] | null | null | null | src/libs/optframe/src/OptFrame/Heuristics/EvolutionaryAlgorithms/GeneticAlgorithm.hpp | fellipessanha/LMRRC-Team-AIDA | 8076599427df0e35890caa7301972a53ae327edb | [
"MIT"
] | null | null | null | // OptFrame - Optimization Framework
// Copyright (C) 2009, 2010, 2011
// http://optframe.sourceforge.net/
//
// This file is part of the OptFrame optimization framework. This framework
// is free software; you can redistribute it and/or modify it under the
// terms of the GNU Lesser General Public License v3 as publi... | 51.187311 | 291 | 0.631175 | fellipessanha |
78c7b5da1e399ce30bd4936ca6bb939e64810eec | 609 | cpp | C++ | LeetCode/Word Break/main.cpp | Code-With-Aagam/competitive-programming | 610520cc396fb13a03c606b5fb6739cfd68cc444 | [
"MIT"
] | 2 | 2022-02-08T12:37:41.000Z | 2022-03-09T03:48:56.000Z | LeetCode/Word Break/main.cpp | ShubhamJagtap2000/competitive-programming-1 | 3a9a2e3dd08f8fa8ab823f295cd020d08d3bff84 | [
"MIT"
] | null | null | null | LeetCode/Word Break/main.cpp | ShubhamJagtap2000/competitive-programming-1 | 3a9a2e3dd08f8fa8ab823f295cd020d08d3bff84 | [
"MIT"
] | null | null | null | class Solution {
public:
bool wordBreak(string s, vector<string> &wordDict) {
unordered_set<string> wordDictionary(wordDict.begin(), wordDict.end());
return wordBreakUtil(s, wordDictionary);
}
private:
unordered_map<string, bool> dp;
bool wordBreakUtil(string s, unordered_set<string> &dictionary) {
if ... | 22.555556 | 88 | 0.619048 | Code-With-Aagam |
78cbcf209f30623cd6f009986900be9015aadd8a | 699 | hpp | C++ | src/scene_graph/text_node.hpp | razorbeard/classic-games | 01130f35d5d7538b17a9d447d63227a3cee00111 | [
"MIT"
] | null | null | null | src/scene_graph/text_node.hpp | razorbeard/classic-games | 01130f35d5d7538b17a9d447d63227a3cee00111 | [
"MIT"
] | null | null | null | src/scene_graph/text_node.hpp | razorbeard/classic-games | 01130f35d5d7538b17a9d447d63227a3cee00111 | [
"MIT"
] | null | null | null | #ifndef TEXT_NODE_HPP
#define TEXT_NODE_HPP
#include "scene_graph/scene_node.hpp"
#include "resources/resource_identifiers.hpp"
#include <SFML/Graphics/Text.hpp>
class TextNode : public SceneNode
{
public:
explicit TextNode(const FontHolder& fonts, const std::string& text);
TextNode(const FontHolder& fonts, Fonts:... | 26.884615 | 99 | 0.76824 | razorbeard |
78cc747c6093aa442a726387f62566c365d33583 | 2,145 | hpp | C++ | contracts/gxc.account/include/gxc.account/gxc.account.hpp | Game-X-Coin/gxc-contracts-v1 | cc5cc59cab0422238a44d2c4d909a31200817a35 | [
"MIT"
] | 1 | 2019-07-01T01:41:02.000Z | 2019-07-01T01:41:02.000Z | contracts/gxc.account/include/gxc.account/gxc.account.hpp | Game-X-Coin/gxc-contracts-v1 | cc5cc59cab0422238a44d2c4d909a31200817a35 | [
"MIT"
] | null | null | null | contracts/gxc.account/include/gxc.account/gxc.account.hpp | Game-X-Coin/gxc-contracts-v1 | cc5cc59cab0422238a44d2c4d909a31200817a35 | [
"MIT"
] | null | null | null | /**
* @file
* @copyright defined in gxc/LICENSE
*/
#pragma once
#include <eosio/eosio.hpp>
#include <eosio/system.hpp>
#include <eosio/crypto.hpp>
#include <utf8/utf8.h>
#include <gxclib/system.hpp>
#include <gxclib/game.hpp>
using namespace eosio;
using std::string;
namespace gxc {
class [[eosio::contract("gxc... | 25.843373 | 99 | 0.649883 | Game-X-Coin |
78cca4b48f78f90012df29ce65f6dcb5c99713b0 | 2,435 | cpp | C++ | aoj/1174/main.cpp | acm-icpc-training/acm-icpc-training | a4ee0f81a89cfe95b94c3de8521a11d61290bba3 | [
"MIT"
] | null | null | null | aoj/1174/main.cpp | acm-icpc-training/acm-icpc-training | a4ee0f81a89cfe95b94c3de8521a11d61290bba3 | [
"MIT"
] | null | null | null | aoj/1174/main.cpp | acm-icpc-training/acm-icpc-training | a4ee0f81a89cfe95b94c3de8521a11d61290bba3 | [
"MIT"
] | null | null | null | #include <iostream>
#include <vector>
using namespace std;
const int DXS[] = {1, 0, -1, 0};
const int DYS[] = {0, 1, 0, -1};
class Main {
int h, w, c;
vector<vector<int>> initial_board;
void DFS(const vector<vector<int>>& board, int x, int y,
vector<vector<bool>>* visited) {
if ((*visited)[y][x... | 24.35 | 80 | 0.522793 | acm-icpc-training |
78d398c86a10d40e03950910b202f77f7bdadfe6 | 2,363 | cc | C++ | 3074/4423790_TLE.cc | twilightgod/twilight-poj-solution | 3af3f0fb0c5f350cdf6421b943c6df02ee3f2f82 | [
"Apache-2.0"
] | 21 | 2015-05-26T10:18:12.000Z | 2021-06-01T09:39:47.000Z | 3074/4423790_TLE.cc | twilightgod/twilight-poj-solution | 3af3f0fb0c5f350cdf6421b943c6df02ee3f2f82 | [
"Apache-2.0"
] | null | null | null | 3074/4423790_TLE.cc | twilightgod/twilight-poj-solution | 3af3f0fb0c5f350cdf6421b943c6df02ee3f2f82 | [
"Apache-2.0"
] | 8 | 2015-09-30T08:41:15.000Z | 2020-03-11T03:49:42.000Z | /**********************************************************************
* Online Judge : POJ
* Problem Title : Sudoku
* ID : 3074
* Date : 11/26/2008
* Time : 9:44:32
* Computer Name : EVERLASTING-PC
************************************************... | 14.321212 | 72 | 0.426576 | twilightgod |
78d71c8b7cdcc5a247dd0526dcc40604d7983080 | 4,228 | cpp | C++ | StaticROWorker.cpp | EricAlex/structrock | 754d8c481d22a48ea7eb4e055eb16c64c44055ab | [
"BSD-3-Clause"
] | 11 | 2016-05-10T07:07:35.000Z | 2022-03-23T02:57:14.000Z | StaticROWorker.cpp | liuxinren456852/structrock | 1a5e660bdbb5f80fb2ab479b7398c072e2573fd1 | [
"BSD-3-Clause"
] | null | null | null | StaticROWorker.cpp | liuxinren456852/structrock | 1a5e660bdbb5f80fb2ab479b7398c072e2573fd1 | [
"BSD-3-Clause"
] | 11 | 2016-03-25T01:24:59.000Z | 2020-06-04T23:40:06.000Z | /*
* Software License Agreement (BSD License)
*
* Xin Wang
*
* 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 abo... | 29.985816 | 104 | 0.689451 | EricAlex |
78d853f5451edf2598e945992284b76c7400851c | 1,019 | hpp | C++ | Tries/trie.hpp | Sheharyar-Khalid/Data_Structures | b43b6d0c3a09df68f0cf4894bf8e78a1315fdbdc | [
"Apache-2.0"
] | null | null | null | Tries/trie.hpp | Sheharyar-Khalid/Data_Structures | b43b6d0c3a09df68f0cf4894bf8e78a1315fdbdc | [
"Apache-2.0"
] | null | null | null | Tries/trie.hpp | Sheharyar-Khalid/Data_Structures | b43b6d0c3a09df68f0cf4894bf8e78a1315fdbdc | [
"Apache-2.0"
] | null | null | null | #include "trie.cpp"
#ifndef __TRIE_HPP
#define __TRIE_HPP
#include <iostream>
#include <vector>
#include <memory>
using namespace std;
struct Node{
char value;
vector<shared_ptr<Node>>children;
};
class trie
{
shared_ptr<Node> root;
public:
// The explanation of what each function is supposed to do... | 29.114286 | 232 | 0.728165 | Sheharyar-Khalid |
78dccf53e9ba215be621930a0b65936ec7ee9865 | 3,674 | cpp | C++ | Arduino/ssd1306Menu/ssd1306Menu.cpp | greymattr/StashHouse | df51466c9cb98e99a0f253bc09e61be76d1b995d | [
"MIT"
] | 1 | 2021-06-21T17:23:36.000Z | 2021-06-21T17:23:36.000Z | Arduino/ssd1306Menu/ssd1306Menu.cpp | greymattr/StashHouse | df51466c9cb98e99a0f253bc09e61be76d1b995d | [
"MIT"
] | null | null | null | Arduino/ssd1306Menu/ssd1306Menu.cpp | greymattr/StashHouse | df51466c9cb98e99a0f253bc09e61be76d1b995d | [
"MIT"
] | null | null | null | #include "ssd1306Menu.hpp"
static int menu_select;
static int menu_display_offset = 0;
static int skip_advance = 0;
static unsigned int button_state = HIGH;
static unsigned int long_button_press_counter = 0;
//extern SSD1306Wire display;
int check_button( void )
{
unsigned int i;
i = digitalRead( BUTTON_PIN ); ... | 32.22807 | 105 | 0.576756 | greymattr |
78de02b5278c61779c9735bc8dafcaae97c4722e | 25,242 | cc | C++ | src/components/application_manager/rpc_plugins/sdl_rpc_plugin/src/commands/mobile/system_request.cc | vkushnirenko-luxoft/sdl_core | 946e25fa31411a4a00b547cee2d0f1dd12b94a7d | [
"BSD-3-Clause"
] | null | null | null | src/components/application_manager/rpc_plugins/sdl_rpc_plugin/src/commands/mobile/system_request.cc | vkushnirenko-luxoft/sdl_core | 946e25fa31411a4a00b547cee2d0f1dd12b94a7d | [
"BSD-3-Clause"
] | 2 | 2017-12-25T19:40:16.000Z | 2017-12-25T23:34:25.000Z | src/components/application_manager/rpc_plugins/sdl_rpc_plugin/src/commands/mobile/system_request.cc | vkushnirenko-luxoft/sdl_core | 946e25fa31411a4a00b547cee2d0f1dd12b94a7d | [
"BSD-3-Clause"
] | null | null | null | /*
Copyright (c) 2018, Ford Motor Company
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 conditions and the fol... | 36.008559 | 80 | 0.628397 | vkushnirenko-luxoft |
78e39899168c67de929021455d69e00f3b2177b1 | 5,583 | hpp | C++ | src/lib/logical_query_plan/lqp_translator.hpp | simonstadlinger/hyrise | 40a484861ee2e541389f937150f39f1c80bc097c | [
"MIT"
] | null | null | null | src/lib/logical_query_plan/lqp_translator.hpp | simonstadlinger/hyrise | 40a484861ee2e541389f937150f39f1c80bc097c | [
"MIT"
] | 1 | 2021-07-13T09:59:26.000Z | 2021-07-21T05:39:13.000Z | src/lib/logical_query_plan/lqp_translator.hpp | simonstadlinger/hyrise | 40a484861ee2e541389f937150f39f1c80bc097c | [
"MIT"
] | null | null | null | #pragma once
#include <memory>
#include <unordered_map>
#include "abstract_lqp_node.hpp"
#include "all_type_variant.hpp"
#include "operators/abstract_operator.hpp"
namespace opossum {
class AbstractOperator;
class TransactionContext;
class AbstractExpression;
class PredicateNode;
class TableScan;
struct OperatorSca... | 64.172414 | 118 | 0.799749 | simonstadlinger |
78e72298463e3a460461e3651e40c9e00f39786a | 1,007 | cpp | C++ | src/native/WeChatHelper/WeChatHelperLib/WechatOffset.cpp | xundididi/weicai-scraper | e0e0931f769814e04e8e3f8d7c670675f420b980 | [
"MIT"
] | 71 | 2019-11-30T08:37:15.000Z | 2022-02-09T02:33:08.000Z | src/native/WeChatHelper/WeChatHelperLib/WechatOffset.cpp | adams549659584/weicai-scraper | e0e0931f769814e04e8e3f8d7c670675f420b980 | [
"MIT"
] | 9 | 2020-03-04T08:18:46.000Z | 2021-05-10T22:38:05.000Z | src/native/WeChatHelper/WeChatHelperLib/WechatOffset.cpp | adams549659584/weicai-scraper | e0e0931f769814e04e8e3f8d7c670675f420b980 | [
"MIT"
] | 37 | 2019-12-12T11:22:30.000Z | 2021-11-10T14:42:15.000Z | #include "stdafx.h"
#include "WechatOffset.h"
WechatOffset::WechatOffset()
{
offsetReciveMessage = 0;
offsetReciveMessage = 0;
offsetReciveMessageParam = 0;
offsetReciveMessageParam_MsgType = 0;
offsetReciveMessageParam_MsgSourceType = 0;
offsetReciveMessageParam_MsgReciver = 0;
offsetReciveMessageParam_MsgCont... | 23.418605 | 44 | 0.80139 | xundididi |
78e9380e0be721849d33574268ece75f4102962c | 1,909 | cpp | C++ | cpp/21767.cpp | jinhan814/BOJ | 47d2a89a2602144eb08459cabac04d036c758577 | [
"MIT"
] | 9 | 2021-01-15T13:36:39.000Z | 2022-02-23T03:44:46.000Z | cpp/21767.cpp | jinhan814/BOJ | 47d2a89a2602144eb08459cabac04d036c758577 | [
"MIT"
] | 1 | 2021-07-31T17:11:26.000Z | 2021-08-02T01:01:03.000Z | cpp/21767.cpp | jinhan814/BOJ | 47d2a89a2602144eb08459cabac04d036c758577 | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
#define fastio cin.tie(0)->sync_with_stdio(0)
using namespace std;
int main() {
fastio;
// input
int n, m, k; cin >> n >> k >> m;
vector<int> v(n), equipment(m); // target_color, equipment
for (int i = 0; i < n; i++) cin >> v[i], --v[i];
for (int i = 0; i < m; i++) {
int t; cin >> t;
... | 28.073529 | 85 | 0.549502 | jinhan814 |
78e9ac6622059a85550c1ad55ef72890861e526f | 1,728 | hpp | C++ | libs/viewport/impl/include/sge/viewport/impl/detail/manager_impl.hpp | cpreh/spacegameengine | 313a1c34160b42a5135f8223ffaa3a31bc075a01 | [
"BSL-1.0"
] | 2 | 2016-01-27T13:18:14.000Z | 2018-05-11T01:11:32.000Z | libs/viewport/impl/include/sge/viewport/impl/detail/manager_impl.hpp | cpreh/spacegameengine | 313a1c34160b42a5135f8223ffaa3a31bc075a01 | [
"BSL-1.0"
] | null | null | null | libs/viewport/impl/include/sge/viewport/impl/detail/manager_impl.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_VIEWPORT_IMPL_DETAIL_MANAGER_IMPL_HPP_INCLUDED
#define SGE_VIEWPORT_IMPL_DETAIL_MANAGER... | 28.8 | 98 | 0.762153 | cpreh |
78eab560a45296ffeedf9316a439234efed6b5fe | 4,642 | cc | C++ | apps/TemplateVarFinder.cc | losalamos/CoARCT | 9fa4a96aa338bfdf78fed1cd1370942967562602 | [
"BSD-3-Clause"
] | 108 | 2017-02-09T17:56:35.000Z | 2022-02-14T12:35:45.000Z | apps/TemplateVarFinder.cc | losalamos/CoARCT | 9fa4a96aa338bfdf78fed1cd1370942967562602 | [
"BSD-3-Clause"
] | 3 | 2017-10-11T22:41:41.000Z | 2020-04-06T13:18:42.000Z | apps/TemplateVarFinder.cc | losalamos/CoARCT | 9fa4a96aa338bfdf78fed1cd1370942967562602 | [
"BSD-3-Clause"
] | 15 | 2017-02-15T22:55:32.000Z | 2022-01-25T12:00:39.000Z | // TemplateVarFinder.cc
// Nov 15, 2017
// (c) Copyright 2017 LANSLLC, all rights reserved
/* Find variables of a given template type, record the template type args for
* that variable, and then process that data. Current processing generates
* a tuple of the set of all types used in the template.
*
* For example,... | 29.194969 | 79 | 0.69302 | losalamos |
78eb335b8c271e74c8c19240da1a766d3f87e994 | 8,077 | hpp | C++ | include/ino/meta/VariantEnum/is_same.hpp | inobelar/ino_meta_lib | d502e4e6e3f82d1903cb9fe607d985c20f054c81 | [
"MIT"
] | 1 | 2021-12-07T08:37:30.000Z | 2021-12-07T08:37:30.000Z | include/ino/meta/VariantEnum/is_same.hpp | inobelar/ino_meta_lib | d502e4e6e3f82d1903cb9fe607d985c20f054c81 | [
"MIT"
] | null | null | null | include/ino/meta/VariantEnum/is_same.hpp | inobelar/ino_meta_lib | d502e4e6e3f82d1903cb9fe607d985c20f054c81 | [
"MIT"
] | null | null | null | #pragma once
#include <ino/meta/VariantEnum/VariantEnum.hpp>
namespace ino {
namespace meta {
namespace variant_enum {
namespace detail {
template <typename ... EnumsA>
struct compare
{
/*
Nested template structure, because we cannot declare `compare` struct
with two different parameter packs, l... | 35.270742 | 139 | 0.542033 | inobelar |
78f434c32cb6f030f9c8b02ce75d943d55f6d26c | 441 | cc | C++ | Intervals/435.cc | guohaoqiang/leetcode | 802447c029c36892e8dd7391c825bcfc7ac0fd0b | [
"MIT"
] | null | null | null | Intervals/435.cc | guohaoqiang/leetcode | 802447c029c36892e8dd7391c825bcfc7ac0fd0b | [
"MIT"
] | null | null | null | Intervals/435.cc | guohaoqiang/leetcode | 802447c029c36892e8dd7391c825bcfc7ac0fd0b | [
"MIT"
] | null | null | null | class Solution {
public:
static bool cmp(vector<int>& a, vector<int>& b){
return a[1]<b[1];
}
int eraseOverlapIntervals(vector<vector<int>>& t) {
sort(t.begin(),t.end(),cmp);
int r = t[0][1];
int ans = 1;
for (int i=1; i<t.size(); ++i){
if (t[i][0... | 22.05 | 55 | 0.396825 | guohaoqiang |
78f7282a7036c2322929b10afdac27cc96b118e6 | 682 | cpp | C++ | Source/FSD/Private/TreasureFunctionLibrary.cpp | Dr-Turtle/DRG_ModPresetManager | abd7ff98a820969504491a1fe68cf2f9302410dc | [
"MIT"
] | 8 | 2021-07-10T20:06:05.000Z | 2022-03-04T19:03:50.000Z | Source/FSD/Private/TreasureFunctionLibrary.cpp | Dr-Turtle/DRG_ModPresetManager | abd7ff98a820969504491a1fe68cf2f9302410dc | [
"MIT"
] | 9 | 2022-01-13T20:49:44.000Z | 2022-03-27T22:56:48.000Z | Source/FSD/Private/TreasureFunctionLibrary.cpp | Dr-Turtle/DRG_ModPresetManager | abd7ff98a820969504491a1fe68cf2f9302410dc | [
"MIT"
] | 2 | 2021-07-10T20:05:42.000Z | 2022-03-14T17:05:35.000Z | #include "TreasureFunctionLibrary.h"
class UItemSkin;
class UObject;
class AProceduralSetup;
class UItemID;
bool UTreasureFunctionLibrary::IsBoxInWall(UObject* WorldContextObject, AProceduralSetup* setup, float SizeX, float SizeY, float sizeZ, const FTransform& transorm) {
return false;
}
bool UTreasureFunctionL... | 31 | 173 | 0.81085 | Dr-Turtle |
78f9278480300fb699c336a04ad4a6f89c64b6e1 | 982 | hpp | C++ | test/benchmark/powell.hpp | KristerSJakobsson/cpp-solnp | 520498c1413815bb6db41f0514b5012ea796a01c | [
"BSL-1.0"
] | 3 | 2019-05-12T12:26:07.000Z | 2019-12-22T06:51:52.000Z | test/benchmark/powell.hpp | KristerSJakobsson/cpp-solnp | 520498c1413815bb6db41f0514b5012ea796a01c | [
"BSL-1.0"
] | null | null | null | test/benchmark/powell.hpp | KristerSJakobsson/cpp-solnp | 520498c1413815bb6db41f0514b5012ea796a01c | [
"BSL-1.0"
] | 1 | 2019-10-18T17:47:15.000Z | 2019-10-18T17:47:15.000Z |
dlib::matrix<double, 4, 1> powell(const dlib::matrix<double, 5, 1> &m)
/*
This function computes what the Powell function from the
original documentaiton of SOLNP.
*/
{
const double x1 = m(0);
const double x2 = m(1);
const double x3 = m(2);
const double x4 = m(3);
const double x5 = m(4);
// c... | 28.057143 | 123 | 0.619145 | KristerSJakobsson |
78f97cb2da2a70583a0af602f9e807efc9e479c8 | 3,054 | hpp | C++ | Project/Vulkan-Framework/Include/Renderer.hpp | ryandugie/Vulkan-Framework | 1dd695b4021c1ab0703db7f3e36bc41110df9aa6 | [
"Apache-2.0"
] | 1 | 2021-02-08T17:08:23.000Z | 2021-02-08T17:08:23.000Z | Project/Vulkan-Framework/Include/Renderer.hpp | ryandugie/Vulkan-Framework | 1dd695b4021c1ab0703db7f3e36bc41110df9aa6 | [
"Apache-2.0"
] | null | null | null | Project/Vulkan-Framework/Include/Renderer.hpp | ryandugie/Vulkan-Framework | 1dd695b4021c1ab0703db7f3e36bc41110df9aa6 | [
"Apache-2.0"
] | null | null | null | /****************************************************************************/
/*!
\Author
Ryan Dugie
\brief
Copyright (c) Ryan Dugie. All rights reserved.
Licensed under the Apache License 2.0
*/
/****************************************************************************/
#ifndef RENDERER_H
#define RENDE... | 23.492308 | 94 | 0.588081 | ryandugie |
60039ba9eb611a4621fba8168f18cbf34e6b236f | 4,222 | cxx | C++ | Servers/Filters/vtkCameraInterpolator2.cxx | matthb2/ParaView-beforekitwareswtichedtogit | e47e57d6ce88444d9e6af9ab29f9db8c23d24cef | [
"BSD-3-Clause"
] | 1 | 2021-07-31T19:38:03.000Z | 2021-07-31T19:38:03.000Z | Servers/Filters/vtkCameraInterpolator2.cxx | matthb2/ParaView-beforekitwareswtichedtogit | e47e57d6ce88444d9e6af9ab29f9db8c23d24cef | [
"BSD-3-Clause"
] | null | null | null | Servers/Filters/vtkCameraInterpolator2.cxx | matthb2/ParaView-beforekitwareswtichedtogit | e47e57d6ce88444d9e6af9ab29f9db8c23d24cef | [
"BSD-3-Clause"
] | 2 | 2019-01-22T19:51:40.000Z | 2021-07-31T19:38:05.000Z | /*=========================================================================
Program: ParaView
Module: $RCSfile$
Copyright (c) Kitware, Inc.
All rights reserved.
See Copyright.txt or http://www.paraview.org/HTML/Copyright.html for details.
This software is distributed WITHOUT ANY WARRANTY; without... | 30.374101 | 79 | 0.581004 | matthb2 |
60099cb5eee4a3cbbec2c411eed5802494047c9a | 7,710 | hpp | C++ | include/UnityEngine/Pose.hpp | marksteward/BeatSaber-Quest-Codegen | a76f063f71cef207a9f048ad7613835f554911a7 | [
"Unlicense"
] | null | null | null | include/UnityEngine/Pose.hpp | marksteward/BeatSaber-Quest-Codegen | a76f063f71cef207a9f048ad7613835f554911a7 | [
"Unlicense"
] | null | null | null | include/UnityEngine/Pose.hpp | marksteward/BeatSaber-Quest-Codegen | a76f063f71cef207a9f048ad7613835f554911a7 | [
"Unlicense"
] | null | null | null | // Autogenerated from CppHeaderCreator
// Created by Sc2ad
// =========================================================================
#pragma once
// Begin includes
#include "extern/beatsaber-hook/shared/utils/typedefs.h"
#include "extern/beatsaber-hook/shared/utils/byref.hpp"
// Including type: System.ValueTy... | 50.392157 | 152 | 0.715305 | marksteward |
600aa00757713eee5fbd7eb6a049877dc3573a0e | 2,218 | hpp | C++ | graphics/src/higanbana/graphics/desc/formats.hpp | jgavert/FazE | 7cf63655869c285a7e5ca8f5a48f296d9548bd6c | [
"MIT"
] | null | null | null | graphics/src/higanbana/graphics/desc/formats.hpp | jgavert/FazE | 7cf63655869c285a7e5ca8f5a48f296d9548bd6c | [
"MIT"
] | null | null | null | graphics/src/higanbana/graphics/desc/formats.hpp | jgavert/FazE | 7cf63655869c285a7e5ca8f5a48f296d9548bd6c | [
"MIT"
] | null | null | null | #pragma once
#include <higanbana/core/system/helperMacros.hpp>
#include <higanbana/core/math/math.hpp>
namespace higanbana
{
enum class ShadingRate
{
Rate_1x1,
Rate_1x2,
Rate_2x1,
Rate_2x2,
Rate_2x4,
Rate_4x2,
Rate_4x4,
Count
};
enum class FormatDimension
{
Unknown,
B... | 16.42963 | 82 | 0.660054 | jgavert |
60141fab2e58363a0cc481a820dd3ea3a613e095 | 166 | hh | C++ | kernel/ocl/material/absorbing.hh | nthend/hypertrace | 5072849f8a10465ba1260626fbef6b013d756f90 | [
"Apache-2.0",
"MIT"
] | 5 | 2020-05-20T21:04:49.000Z | 2021-07-08T05:29:41.000Z | kernel/ocl/material/absorbing.hh | nthend/hypertrace | 5072849f8a10465ba1260626fbef6b013d756f90 | [
"Apache-2.0",
"MIT"
] | 2 | 2021-01-27T09:07:22.000Z | 2021-02-22T11:17:11.000Z | kernel/ocl/material/absorbing.hh | nthend/hypertrace | 5072849f8a10465ba1260626fbef6b013d756f90 | [
"Apache-2.0",
"MIT"
] | 2 | 2020-04-30T04:46:07.000Z | 2021-02-02T21:11:39.000Z | #pragma once
#include "interface.hh"
typedef void Absorbing;
define_material_interface(Absorbing, absorbing)
#ifndef HOST
#include "absorbing.cc"
#endif // !HOST
| 13.833333 | 47 | 0.771084 | nthend |
6014e8a0b17049c86a6063aeb2f98b4454c35946 | 1,759 | cpp | C++ | aws-cpp-sdk-cloudtrail/source/model/Resource.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-cloudtrail/source/model/Resource.cpp | curiousjgeorge/aws-sdk-cpp | 09b65deba03cfbef9a1e5d5986aa4de71bc03cd8 | [
"Apache-2.0"
] | null | null | null | aws-cpp-sdk-cloudtrail/source/model/Resource.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... | 20.694118 | 78 | 0.733371 | curiousjgeorge |
6016dd327bd85a540bd215fd222d1a384704eb5f | 4,716 | cpp | C++ | src/cppad.git/example/utility/check_simple_vector.cpp | yinzixuan126/my_udacity | cada1bc047cd21282b008a0eb85a1df52fd94034 | [
"MIT"
] | 1 | 2019-11-05T02:23:47.000Z | 2019-11-05T02:23:47.000Z | src/cppad.git/example/utility/check_simple_vector.cpp | yinzixuan126/my_udacity | cada1bc047cd21282b008a0eb85a1df52fd94034 | [
"MIT"
] | null | null | null | src/cppad.git/example/utility/check_simple_vector.cpp | yinzixuan126/my_udacity | cada1bc047cd21282b008a0eb85a1df52fd94034 | [
"MIT"
] | 1 | 2019-11-05T02:23:51.000Z | 2019-11-05T02:23:51.000Z | /* --------------------------------------------------------------------------
CppAD: C++ Algorithmic Differentiation: Copyright (C) 2003-17 Bradley M. Bell
CppAD is distributed under the terms of the
Eclipse Public License Version 2.0.
This Source Code may also be made available under the following
Secon... | 25.770492 | 84 | 0.554495 | yinzixuan126 |
60172c3312dfe88a2c48a24349851cb8c4ab06d8 | 1,182 | cpp | C++ | toda-lattice-action-angle-sampling/tests/physical_quantities.cpp | FIshikawa/ClassicalStatPhys | e4010480d3c7977829c1b3fdeaf51401a2409373 | [
"MIT"
] | null | null | null | toda-lattice-action-angle-sampling/tests/physical_quantities.cpp | FIshikawa/ClassicalStatPhys | e4010480d3c7977829c1b3fdeaf51401a2409373 | [
"MIT"
] | 2 | 2020-01-21T08:54:05.000Z | 2020-01-21T09:29:10.000Z | toda-lattice-action-angle-sampling/tests/physical_quantities.cpp | FIshikawa/ClassicalStatPhys | e4010480d3c7977829c1b3fdeaf51401a2409373 | [
"MIT"
] | 2 | 2020-07-18T03:36:32.000Z | 2021-07-21T22:58:27.000Z | #include <gtest/gtest.h>
#include <clstatphys/tools/data_recorder.hpp>
#include <specific/toda_lattice_periodic_boundary_hybrid_monte_carlo.hpp>
#include <common/physical_quantities.hpp>
#include <common/sampling_process.hpp>
TEST(PhysicalQuantitesTest, BasicTest){
char *argv[32] = {"./test", "10", "10", "10", "100... | 35.818182 | 73 | 0.685279 | FIshikawa |
601849a72c2bdfc68c7a0ac1fe301250deeff779 | 491 | hpp | C++ | include/containers/associative_container.hpp | davidstone/bounded-integer | d4f9a88a12174ca8382af60b00c5affd19aa8632 | [
"BSL-1.0"
] | 44 | 2020-10-03T21:37:52.000Z | 2022-03-26T10:08:46.000Z | include/containers/associative_container.hpp | davidstone/bounded-integer | d4f9a88a12174ca8382af60b00c5affd19aa8632 | [
"BSL-1.0"
] | 1 | 2021-01-01T23:22:39.000Z | 2021-01-01T23:22:39.000Z | include/containers/associative_container.hpp | davidstone/bounded-integer | d4f9a88a12174ca8382af60b00c5affd19aa8632 | [
"BSL-1.0"
] | null | null | null | // Copyright David Stone 2020.
// 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)
#pragma once
#include <containers/is_range.hpp>
#include <type_traits>
namespace containers {
template<typename T>
concept assoc... | 24.55 | 61 | 0.765784 | davidstone |
60186a1e2856a96b14094fd316b5f453795c349b | 1,823 | cpp | C++ | UnitTests/TestVFuncSwapHook.cpp | DottieDot/PolyHook_2_0 | 157112f7991768eef51f262486d59c02f18413dc | [
"MIT"
] | null | null | null | UnitTests/TestVFuncSwapHook.cpp | DottieDot/PolyHook_2_0 | 157112f7991768eef51f262486d59c02f18413dc | [
"MIT"
] | null | null | null | UnitTests/TestVFuncSwapHook.cpp | DottieDot/PolyHook_2_0 | 157112f7991768eef51f262486d59c02f18413dc | [
"MIT"
] | null | null | null | #include <memory>
#include <Catch.hpp>
#include "polyhook2/Virtuals/VFuncSwapHook.hpp"
#include "polyhook2/Tests/TestEffectTracker.hpp"
EffectTracker vFuncSwapEffects;
class VirtualTest2 {
public:
virtual int NoParamVirt() {
return 4;
}
virtual int NoParamVirt2() {
return 7;
}
};
#pragma warning(disable: ... | 27.621212 | 114 | 0.742183 | DottieDot |
601934ea274f60a356099d4fee35e0b2244e2e3b | 9,093 | cpp | C++ | Source/FpsFramework/CPluginManager.cpp | shanefarris/CoreGameEngine | 5bef275d1cd4e84aa059f2f4f9e97bfa2414d000 | [
"MIT"
] | 3 | 2019-04-12T15:22:53.000Z | 2022-01-05T02:59:56.000Z | Source/FpsFramework/CPluginManager.cpp | shanefarris/CoreGameEngine | 5bef275d1cd4e84aa059f2f4f9e97bfa2414d000 | [
"MIT"
] | null | null | null | Source/FpsFramework/CPluginManager.cpp | shanefarris/CoreGameEngine | 5bef275d1cd4e84aa059f2f4f9e97bfa2414d000 | [
"MIT"
] | 2 | 2019-04-10T22:46:21.000Z | 2020-05-27T16:21:37.000Z | #include "CPluginManager.h"
#include "CConfiguration.h"
#include "CUtility.h"
#include "IO/CoreLogging.h"
// Plugins
#include "Plugins\PluginTypes.h"
#include "Plugins\IGameObjectFactory.h"
#include "Plugins\IConsoleParser.h"
#include "Plugins\IMissionFactory.h"
#include "Plugins\IAiStateFactory.h"
#include "Plugins\I... | 23.196429 | 88 | 0.733201 | shanefarris |
601d47840e4fecc0255ecfa9f869ba6879d613f6 | 14,834 | cpp | C++ | src/on_demand/aca_on_demand_engine.cpp | cj-chung/alcor-control-agent | bcdab74a47df4220b7d3f49a639853b91cbdcaff | [
"MIT"
] | null | null | null | src/on_demand/aca_on_demand_engine.cpp | cj-chung/alcor-control-agent | bcdab74a47df4220b7d3f49a639853b91cbdcaff | [
"MIT"
] | 1 | 2021-02-13T02:06:29.000Z | 2021-02-13T02:06:29.000Z | src/on_demand/aca_on_demand_engine.cpp | cj-chung/alcor-control-agent | bcdab74a47df4220b7d3f49a639853b91cbdcaff | [
"MIT"
] | null | null | null | // MIT License
// Copyright(c) 2020 Futurewei Cloud
//
// 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,... | 36.536946 | 168 | 0.654442 | cj-chung |
601d60924205f2801319556d755e6e31d82010c2 | 351 | cpp | C++ | LeetCode/Problems/Algorithms/#1662_CheckIfTwoStringArraysAreEquivalent_sol1_strings_O(N+M)_time_O(N+M)_extra_space_12ms_11.8MB.cpp | Tudor67/Competitive-Programming | ae4dc6ed8bf76451775bf4f740c16394913f3ff1 | [
"MIT"
] | 1 | 2022-01-26T14:50:07.000Z | 2022-01-26T14:50:07.000Z | LeetCode/Problems/Algorithms/#1662_CheckIfTwoStringArraysAreEquivalent_sol1_strings_O(N+M)_time_O(N+M)_extra_space_12ms_11.8MB.cpp | Tudor67/Competitive-Programming | ae4dc6ed8bf76451775bf4f740c16394913f3ff1 | [
"MIT"
] | null | null | null | LeetCode/Problems/Algorithms/#1662_CheckIfTwoStringArraysAreEquivalent_sol1_strings_O(N+M)_time_O(N+M)_extra_space_12ms_11.8MB.cpp | Tudor67/Competitive-Programming | ae4dc6ed8bf76451775bf4f740c16394913f3ff1 | [
"MIT"
] | null | null | null | class Solution {
private:
string vec2str(const vector<string>& V){
string s;
for(int i = 0; i < V.size(); ++i){
s += V[i];
}
return s;
}
public:
bool arrayStringsAreEqual(vector<string>& word1, vector<string>& word2) {
return vec2str(word1... | 23.4 | 78 | 0.504274 | Tudor67 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.