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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
6647e8e1a937c948e484c3ace1332e62285bd87c | 6,862 | cpp | C++ | Implementation/Core/amc_statejournalstream.cpp | GibbekAdsk/AutodeskMachineControlFramework | 48c220c1acfbc2c4c33f636354e9372100f7c896 | [
"BSD-3-Clause"
] | null | null | null | Implementation/Core/amc_statejournalstream.cpp | GibbekAdsk/AutodeskMachineControlFramework | 48c220c1acfbc2c4c33f636354e9372100f7c896 | [
"BSD-3-Clause"
] | null | null | null | Implementation/Core/amc_statejournalstream.cpp | GibbekAdsk/AutodeskMachineControlFramework | 48c220c1acfbc2c4c33f636354e9372100f7c896 | [
"BSD-3-Clause"
] | null | null | null | /*++
Copyright (C) 2020 Autodesk Inc.
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 follow... | 28.473029 | 117 | 0.773244 | GibbekAdsk |
664b6287154d6c4e004e6a20788376ba4ee6b901 | 751 | cpp | C++ | Solution/045.Jump Game II/solution1-16ms.cpp | zhufei2805801318/352_Leetcode | fc9bfdd7eb462684b1345c953de843d6cfffabd0 | [
"MIT"
] | 6 | 2018-11-08T06:16:19.000Z | 2019-09-07T13:39:00.000Z | Solution/045.Jump Game II/solution1-16ms.cpp | zhufei2805801318/352_Leetcode | fc9bfdd7eb462684b1345c953de843d6cfffabd0 | [
"MIT"
] | 10 | 2018-11-09T12:17:55.000Z | 2018-12-03T18:11:49.000Z | Solution/045.Jump Game II/solution1-16ms.cpp | zhufei2805801318/352_Leetcode | fc9bfdd7eb462684b1345c953de843d6cfffabd0 | [
"MIT"
] | 7 | 2018-11-08T14:31:49.000Z | 2018-11-23T14:55:45.000Z | class Solution {
public:
int jump(vector<int>& nums) {
int i,j,cnt,ref_i,ref;
int n=nums.size();
if(n==0)
return 0;
if(n==1)
return 0;
cnt=0;
i=0;
while(i<n-1&&nums[i]){
ref_i=i;
ref=-1;
for(j=1;j<=nu... | 20.861111 | 36 | 0.28229 | zhufei2805801318 |
593f227284280d7f48dcdc48795a96427bafca17 | 3,012 | cpp | C++ | src/Renderer/EskyDisplay.cpp | danielofdaniels/ProjectEskyLLAPI | 9278ea025f1a392adf563364ff7ee87b8223b262 | [
"BSD-3-Clause"
] | 5 | 2020-12-29T03:37:17.000Z | 2022-02-20T10:58:25.000Z | src/Renderer/EskyDisplay.cpp | danielofdaniels/ProjectEskyLLAPI | 9278ea025f1a392adf563364ff7ee87b8223b262 | [
"BSD-3-Clause"
] | 1 | 2021-01-14T04:30:31.000Z | 2021-01-14T04:30:31.000Z | src/Renderer/EskyDisplay.cpp | danielofdaniels/ProjectEskyLLAPI | 9278ea025f1a392adf563364ff7ee87b8223b262 | [
"BSD-3-Clause"
] | 3 | 2020-12-13T03:52:52.000Z | 2021-10-30T04:00:36.000Z | #include "EskyDisplay.h"
#include <iostream>
#include <sstream>
#include "EskyRenderer.h"
EskyDisplay::EskyDisplay() {
_debugCallback("Creating EskyDisplay");
if (SDL_Init(SDL_INIT_VIDEO) < 0) {
std::ostringstream error_message;
error_message << "Failed to initialize SDL: ";
error_message << SDL_Get... | 23.348837 | 80 | 0.642098 | danielofdaniels |
5942524eb41163d677b22ea26f59b95749d8c17b | 1,166 | cpp | C++ | src/catch2/internal/catch_debug_console.cpp | nicramage/Catch2 | 6f21a3609cea360846a0ca93be55877cca14c86d | [
"BSL-1.0"
] | 9,861 | 2017-11-03T13:11:42.000Z | 2022-03-31T23:50:03.000Z | src/catch2/internal/catch_debug_console.cpp | nicramage/Catch2 | 6f21a3609cea360846a0ca93be55877cca14c86d | [
"BSL-1.0"
] | 1,409 | 2017-11-03T13:42:48.000Z | 2022-03-31T14:46:42.000Z | src/catch2/internal/catch_debug_console.cpp | nicramage/Catch2 | 6f21a3609cea360846a0ca93be55877cca14c86d | [
"BSL-1.0"
] | 2,442 | 2017-11-03T14:48:53.000Z | 2022-03-31T23:07:09.000Z |
// Copyright Catch2 Authors
// 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)
// SPDX-License-Identifier: BSL-1.0
#include <catch2/internal/catch_debug_console.hpp>
#include <catch2/interna... | 28.439024 | 76 | 0.669811 | nicramage |
59508a1ecb70d9ae1f395bafc9412e474711623a | 1,681 | cc | C++ | code30/cpp/20190821/v4/SocketIO.cc | stdbilly/CS_Note | a8a87e135a525d53c283a4c70fb942c9ca59a758 | [
"MIT"
] | 2 | 2020-12-09T09:55:51.000Z | 2021-01-08T11:38:22.000Z | mycode/cpp/0820/networklib/v4/SocketIO.cc | stdbilly/CS_Note | a8a87e135a525d53c283a4c70fb942c9ca59a758 | [
"MIT"
] | null | null | null | mycode/cpp/0820/networklib/v4/SocketIO.cc | stdbilly/CS_Note | a8a87e135a525d53c283a4c70fb942c9ca59a758 | [
"MIT"
] | null | null | null | ///
/// @file SocketIO.cc
/// @author lemon(haohb13@gmail.com)
/// @date 2019-05-07 16:01:31
///
#include "SocketIO.h"
#include <stdio.h>
#include <unistd.h>
#include <stdlib.h>
#include <errno.h>
#include <sys/types.h>
#include <sys/socket.h>
namespace wd
{
SocketIO::SocketIO(int fd)
: _fd(fd)
{}
in... | 15.858491 | 48 | 0.53599 | stdbilly |
59628f001d2d6570df31489ca32702486fd303b5 | 3,813 | cpp | C++ | src/plugProjectOgawaU/ogCallBackScreen.cpp | projectPiki/pikmin2 | a431d992acde856d092889a515ecca0e07a3ea7c | [
"Unlicense"
] | 33 | 2021-12-08T11:10:59.000Z | 2022-03-26T19:59:37.000Z | src/plugProjectOgawaU/ogCallBackScreen.cpp | projectPiki/pikmin2 | a431d992acde856d092889a515ecca0e07a3ea7c | [
"Unlicense"
] | 6 | 2021-12-22T17:54:31.000Z | 2022-01-07T21:43:18.000Z | src/plugProjectOgawaU/ogCallBackScreen.cpp | projectPiki/pikmin2 | a431d992acde856d092889a515ecca0e07a3ea7c | [
"Unlicense"
] | 2 | 2022-01-04T06:00:49.000Z | 2022-01-26T07:27:28.000Z | #include "types.h"
#include "og/Screen/callbackNodes.h"
/*
Generated from dpostproc
.section .data, "wa" # 0x8049E220 - 0x804EFC20
.global __vt__Q32og6Screen15CallBack_Screen
__vt__Q32og6Screen15CallBack_Screen:
.4byte 0
.4byte 0
.4byte __dt__Q32og6Screen15CallBack_ScreenFv
... | 19.654639 | 78 | 0.603724 | projectPiki |
5963f24acd88fe3ba388ed949339e130ebe68fb1 | 535 | cpp | C++ | Week-4/Day-24-bagOfTokensScore.cpp | utkarshavardhana/october-leetcoding-challenge | f2303421ee02539141a1bb78840e03a669ee6e2b | [
"MIT"
] | null | null | null | Week-4/Day-24-bagOfTokensScore.cpp | utkarshavardhana/october-leetcoding-challenge | f2303421ee02539141a1bb78840e03a669ee6e2b | [
"MIT"
] | null | null | null | Week-4/Day-24-bagOfTokensScore.cpp | utkarshavardhana/october-leetcoding-challenge | f2303421ee02539141a1bb78840e03a669ee6e2b | [
"MIT"
] | null | null | null | class Solution {
public:
int bagOfTokensScore(vector<int>& tokens, int P) {
sort(tokens.begin(), tokens.end());
int res = 0, points = 0, i = 0, j = tokens.size() - 1;
while (i <= j) {
if (P >= tokens[i]) {
P -= tokens[i++];
res = max(res, +... | 26.75 | 63 | 0.362617 | utkarshavardhana |
5966da95d284eb4206a6b9e4d320bc2a1735c3f5 | 6,818 | cpp | C++ | bullet-2.81-rev2613/src/BulletFluids/Hf/btFluidHfBuoyantConvexShape.cpp | rtrius/Bullet-FLUIDS | b58dbc5108512e5a4bb0a532284a98128fd8f8ce | [
"Zlib"
] | 19 | 2015-01-18T09:34:48.000Z | 2021-07-22T08:00:17.000Z | bullet-2.81-rev2613/src/BulletFluids/Hf/btFluidHfBuoyantConvexShape.cpp | rtrius/Bullet-FLUIDS | b58dbc5108512e5a4bb0a532284a98128fd8f8ce | [
"Zlib"
] | null | null | null | bullet-2.81-rev2613/src/BulletFluids/Hf/btFluidHfBuoyantConvexShape.cpp | rtrius/Bullet-FLUIDS | b58dbc5108512e5a4bb0a532284a98128fd8f8ce | [
"Zlib"
] | 8 | 2015-02-09T08:03:04.000Z | 2021-07-22T08:01:54.000Z | /*
Bullet Continuous Collision Detection and Physics Library
Copyright (c) 2003-2009 Erwin Coumans http://bulletphysics.com
This software is provided 'as-is', without any express or implied warranty.
In no event will the authors be held liable for any damages arising from the use of this software.
Permission is grant... | 35.326425 | 243 | 0.74318 | rtrius |
5967d5ed66f583f9d40666f5e47c58d595999e24 | 2,264 | hpp | C++ | include/poike/core/CommandBuffers.hpp | florianvazelle/poike | 2ff7313c994b888dd83e22a0a9703c08b4a3a361 | [
"MIT"
] | null | null | null | include/poike/core/CommandBuffers.hpp | florianvazelle/poike | 2ff7313c994b888dd83e22a0a9703c08b4a3a361 | [
"MIT"
] | null | null | null | include/poike/core/CommandBuffers.hpp | florianvazelle/poike | 2ff7313c994b888dd83e22a0a9703c08b4a3a361 | [
"MIT"
] | null | null | null | /**
* @file CommandBuffers.hpp
* @brief Define CommandBuffers base class
*/
#ifndef COMMANDBUFFERS_HPP
#define COMMANDBUFFERS_HPP
#include <poike/core/CommandPool.hpp>
#include <poike/core/DescriptorSets.hpp>
#include <poike/core/Device.hpp>
#include <poike/core/GraphicsPipeline.hpp>
#include <poike/meta/NoCopy.hp... | 31.887324 | 99 | 0.660336 | florianvazelle |
5969418dbac4ccf9e9ecabcd8be076aaf0932974 | 3,380 | hpp | C++ | src/Engine/Drawables/Light/QuadLight.hpp | DaftMat/Daft-Engine | e3d918b4b876d17abd889b9b6b13bd858a079538 | [
"MIT"
] | 1 | 2020-10-26T02:36:58.000Z | 2020-10-26T02:36:58.000Z | src/Engine/Drawables/Light/QuadLight.hpp | DaftMat/Daft-Engine | e3d918b4b876d17abd889b9b6b13bd858a079538 | [
"MIT"
] | 6 | 2020-02-14T21:45:52.000Z | 2020-09-23T17:58:58.000Z | src/Engine/Drawables/Light/QuadLight.hpp | DaftMat/Daft-Engine | e3d918b4b876d17abd889b9b6b13bd858a079538 | [
"MIT"
] | null | null | null | //
// Created by mathis on 28/11/2020.
//
#pragma once
#include <API.hpp>
#include "Light.hpp"
namespace daft::engine {
class ENGINE_API QuadLight : public Light {
public:
/**
* Default/standard constructor.
* @param mesh - line mesh that represents the light.
* @param color - color emitted by t... | 26.20155 | 119 | 0.596154 | DaftMat |
5969c9ba2cccb63ef5754687545e6ff6acd0c737 | 106,008 | cpp | C++ | coreLibrary_300/source/meshUtil/dgMeshEffect1.cpp | wivlaro/newton-dynamics | 2bafd29aea919f237e56784510db1cb8011d0f40 | [
"Zlib"
] | null | null | null | coreLibrary_300/source/meshUtil/dgMeshEffect1.cpp | wivlaro/newton-dynamics | 2bafd29aea919f237e56784510db1cb8011d0f40 | [
"Zlib"
] | null | null | null | coreLibrary_300/source/meshUtil/dgMeshEffect1.cpp | wivlaro/newton-dynamics | 2bafd29aea919f237e56784510db1cb8011d0f40 | [
"Zlib"
] | null | null | null | /* Copyright (c) <2003-2011> <Julio Jerez, Newton Game Dynamics>
*
* This software is provided 'as-is', without any express or implied
* warranty. In no event will the authors be held liable for any damages
* arising from the use of this software.
*
* Permission is granted to anyone to use this software for any... | 30.479586 | 234 | 0.644234 | wivlaro |
596c733ed7598fbf307a9324884bdb5b95bf66e1 | 538 | cpp | C++ | test/test_symbol_load.cpp | lingjf/h2un | 7735c2f07f58ea8b92a9e9608c9b45c98c94c670 | [
"Apache-2.0"
] | 5 | 2015-03-02T22:29:00.000Z | 2020-06-28T08:52:00.000Z | test/test_symbol_load.cpp | lingjf/h2un | 7735c2f07f58ea8b92a9e9608c9b45c98c94c670 | [
"Apache-2.0"
] | 5 | 2019-05-10T02:28:00.000Z | 2021-07-17T00:53:18.000Z | test/test_symbol_load.cpp | lingjf/h2un | 7735c2f07f58ea8b92a9e9608c9b45c98c94c670 | [
"Apache-2.0"
] | 5 | 2016-05-25T07:31:16.000Z | 2021-08-29T04:25:18.000Z | #include "../source/h2_unit.cpp"
void say_something1()
{
::printf("hello world\n");
}
#if 0
SUITE(load)
{
Case(addr_to_ptr)
{
h2::h2_symbol* res[16];
int n = h2::h2_nm::get_by_name("say_something1", res, 16);
OK(1, n);
OK(Nq((unsigned long long)say_something1), (unsigned long long)res... | 24.454545 | 107 | 0.644981 | lingjf |
597fefef7cb4bddfa4c1c0b181b1ce8f5d300357 | 495 | hpp | C++ | Plus7/Modules/Gfx/Include/RasterizerProperties.hpp | txfx/plus7 | 44df3622ea8abe296d921759144e5f0d630b2945 | [
"MIT"
] | null | null | null | Plus7/Modules/Gfx/Include/RasterizerProperties.hpp | txfx/plus7 | 44df3622ea8abe296d921759144e5f0d630b2945 | [
"MIT"
] | null | null | null | Plus7/Modules/Gfx/Include/RasterizerProperties.hpp | txfx/plus7 | 44df3622ea8abe296d921759144e5f0d630b2945 | [
"MIT"
] | null | null | null | #pragma once
namespace p7 {
namespace gfx {
enum class PolygonMode
{
Fill,
Line,
Point
};
enum class CullMode
{
None,
Front,
Back,
Front_And_Back
};
enum class FrontFace
{
ClockWise,
CounterClockWise
};
struct RasterizerProperties
{
PolygonMode fillmode = PolygonMode::Fill;
... | 14.558824 | 56 | 0.652525 | txfx |
59950b49010124aa885e437363e451e6bb05f30e | 5,431 | cpp | C++ | src/final_chain/replay_protection_service.cpp | agrebin/taraxa-node | a594b01f52e727c8fc5dc87c9c325510c2a6f1cb | [
"MIT"
] | null | null | null | src/final_chain/replay_protection_service.cpp | agrebin/taraxa-node | a594b01f52e727c8fc5dc87c9c325510c2a6f1cb | [
"MIT"
] | 7 | 2021-06-08T12:40:38.000Z | 2021-06-16T12:11:15.000Z | src/final_chain/replay_protection_service.cpp | agrebin/taraxa-node | a594b01f52e727c8fc5dc87c9c325510c2a6f1cb | [
"MIT"
] | null | null | null | #include "replay_protection_service.hpp"
#include <libdevcore/CommonJS.h>
#include <libdevcore/RLP.h>
#include <optional>
#include <shared_mutex>
#include <sstream>
#include <string>
#include <unordered_map>
#include "util/util.hpp"
namespace taraxa::final_chain {
using namespace dev;
using namespace util;
using na... | 37.455172 | 117 | 0.69582 | agrebin |
59976f90689a1ebd7daa77a7d18111f1108d5707 | 3,586 | inl | C++ | Base/PLCore/include/PLCore/Application/ApplicationContext.inl | ktotheoz/pixellight | 43a661e762034054b47766d7e38d94baf22d2038 | [
"MIT"
] | 83 | 2015-01-08T15:06:14.000Z | 2021-07-20T17:07:00.000Z | Base/PLCore/include/PLCore/Application/ApplicationContext.inl | PixelLightFoundation/pixellight | 43a661e762034054b47766d7e38d94baf22d2038 | [
"MIT"
] | 27 | 2019-06-18T06:46:07.000Z | 2020-02-02T11:11:28.000Z | Base/PLCore/include/PLCore/Application/ApplicationContext.inl | naetherm/PixelLight | d7666f5b49020334cbb5debbee11030f34cced56 | [
"MIT"
] | 40 | 2015-02-25T18:24:34.000Z | 2021-03-06T09:01:48.000Z | /*********************************************************\
* File: ApplicationContext.inl *
*
* Copyright (C) 2002-2013 The PixelLight Team (http://www.pixellight.org/)
*
* This file is part of PixelLight.
*
* Permission is hereby granted, free of charge, to any person obtaining a co... | 29.393443 | 97 | 0.578639 | ktotheoz |
599a66bc13ffa4630c6484be6cdf9ffce4394696 | 7,939 | cpp | C++ | Frame/Server/ProxyServer/ProxyNetClientPlugin/AFCProxyServerToGameModule.cpp | yebing115/ARK | f1c61b222dacc83e95ffb623b4ce99cbb8e386d5 | [
"Apache-2.0"
] | 1 | 2021-07-09T04:50:39.000Z | 2021-07-09T04:50:39.000Z | Frame/Server/ProxyServer/ProxyNetClientPlugin/AFCProxyServerToGameModule.cpp | yigao/ARK | f1c61b222dacc83e95ffb623b4ce99cbb8e386d5 | [
"Apache-2.0"
] | 1 | 2018-12-19T08:58:25.000Z | 2018-12-19T08:59:07.000Z | Frame/Server/ProxyServer/ProxyNetClientPlugin/AFCProxyServerToGameModule.cpp | yigao/ARK | f1c61b222dacc83e95ffb623b4ce99cbb8e386d5 | [
"Apache-2.0"
] | null | null | null | /*
* This source file is part of ArkGameFrame
* For the latest info, see https://github.com/ArkGame
*
* Copyright (c) 2013-2018 ArkGame authors.
*
* 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 a... | 39.108374 | 171 | 0.70034 | yebing115 |
599c11f5305faeb0f97c4072f6b1c2288de4d551 | 8,865 | cpp | C++ | Plugins/PLParticleGroups/src/PGFume.cpp | ktotheoz/pixellight | 43a661e762034054b47766d7e38d94baf22d2038 | [
"MIT"
] | 83 | 2015-01-08T15:06:14.000Z | 2021-07-20T17:07:00.000Z | Plugins/PLParticleGroups/src/PGFume.cpp | PixelLightFoundation/pixellight | 43a661e762034054b47766d7e38d94baf22d2038 | [
"MIT"
] | 19 | 2018-08-24T08:10:13.000Z | 2018-11-29T06:39:08.000Z | Plugins/PLParticleGroups/src/PGFume.cpp | ktotheoz/pixellight | 43a661e762034054b47766d7e38d94baf22d2038 | [
"MIT"
] | 40 | 2015-02-25T18:24:34.000Z | 2021-03-06T09:01:48.000Z | /*********************************************************\
* File: PGFume.cpp *
*
* Copyright (C) 2002-2013 The PixelLight Team (http://www.pixellight.org/)
*
* This file is part of PixelLight.
*
* Permission is hereby granted, free of charge, to any person obtaining a co... | 31.774194 | 110 | 0.593909 | ktotheoz |
599f7a6db73425a6b163880e7a94cfff1b1d45f7 | 640 | cpp | C++ | prob03/main.cpp | CSUF-CPSC120-2019F23-24/labex02-romanharv1 | 7d40d08235a36a78539c9bd21d6512a1d58c1410 | [
"MIT"
] | null | null | null | prob03/main.cpp | CSUF-CPSC120-2019F23-24/labex02-romanharv1 | 7d40d08235a36a78539c9bd21d6512a1d58c1410 | [
"MIT"
] | null | null | null | prob03/main.cpp | CSUF-CPSC120-2019F23-24/labex02-romanharv1 | 7d40d08235a36a78539c9bd21d6512a1d58c1410 | [
"MIT"
] | null | null | null | // Name: Restaurant Bill Calculator
// This program calculates the tax and tip on a restaurant bill.
#include <iostream>
int main()
{
double price, tax, tip;
double total;
//Get value of price.
std::cout << "Welcome to the Restaurant Bill Calculator!\n";
std::cout << "What is the total meal cost? $";
std... | 22.857143 | 64 | 0.598438 | CSUF-CPSC120-2019F23-24 |
59a2bdcb7fa24d28a4eb324ad0cdd199a914270c | 1,988 | cpp | C++ | LudumGame/Source/LudumGame/Private/Flocking/OtherTeamGoalBehaviourComponent.cpp | inbetweengames/TheMammoth_Public | d12d644266076ff739d912def6bc127827c82dc9 | [
"MIT"
] | 21 | 2015-11-05T07:26:27.000Z | 2021-06-01T11:35:05.000Z | LudumGame/Source/LudumGame/Private/Flocking/OtherTeamGoalBehaviourComponent.cpp | inbetweengames/TheMammoth_Public | d12d644266076ff739d912def6bc127827c82dc9 | [
"MIT"
] | null | null | null | LudumGame/Source/LudumGame/Private/Flocking/OtherTeamGoalBehaviourComponent.cpp | inbetweengames/TheMammoth_Public | d12d644266076ff739d912def6bc127827c82dc9 | [
"MIT"
] | 6 | 2015-11-06T08:54:36.000Z | 2017-01-21T18:40:30.000Z | // copyright 2015 inbetweengames GBR
#include "LudumGame.h"
#include "OtherTeamGoalBehaviourComponent.h"
#include "FlockingGameMode.h"
#include "AI/Navigation/NavigationPath.h"
#include "DrawDebugHelpers.h"
#include "../FlockingDataCache.h"
#include "BasicAIAgent.h"
DECLARE_CYCLE_STAT(TEXT("Goal Behaviour"),STAT_AI_G... | 23.951807 | 195 | 0.748994 | inbetweengames |
59bb1f985a4264e2a094a4db98c4c4685b2409b3 | 5,059 | hpp | C++ | RX600/src.hpp | duybang140494/RX | 7fed06a9d8295f4504e8a08fa589d4a52792095f | [
"BSD-3-Clause"
] | 1 | 2020-01-16T03:38:30.000Z | 2020-01-16T03:38:30.000Z | RX600/src.hpp | duybang140494/RX | 7fed06a9d8295f4504e8a08fa589d4a52792095f | [
"BSD-3-Clause"
] | null | null | null | RX600/src.hpp | duybang140494/RX | 7fed06a9d8295f4504e8a08fa589d4a52792095f | [
"BSD-3-Clause"
] | null | null | null | #pragma once
//=====================================================================//
/*! @file
@brief RX600 グループ・SRC 定義
@author 平松邦仁 (hira@rvf-rc45.net)
@copyright Copyright (C) 2017, 2018 Kunihito Hiramatsu @n
Released under the MIT license @n
https://github.com/hirakuni45/RX/blob/master/LICENSE... | 29.584795 | 75 | 0.426369 | duybang140494 |
59bbcc558f0645f6af83f3f8b5515150be75f2bc | 18,251 | cpp | C++ | engine/gui/Widgets.cpp | taida957789/ouzel | a8c1cc74e6151a0f7d7d2c534f8747cba46a36af | [
"Unlicense"
] | 1 | 2021-03-01T13:17:49.000Z | 2021-03-01T13:17:49.000Z | engine/gui/Widgets.cpp | taida957789/ouzel | a8c1cc74e6151a0f7d7d2c534f8747cba46a36af | [
"Unlicense"
] | null | null | null | engine/gui/Widgets.cpp | taida957789/ouzel | a8c1cc74e6151a0f7d7d2c534f8747cba46a36af | [
"Unlicense"
] | null | null | null | // Copyright 2015-2020 Elviss Strazdins. All rights reserved.
#if defined(__APPLE__)
# include <TargetConditionals.h>
#endif
#include <algorithm>
#include <functional>
#include "Widgets.hpp"
#include "BMFont.hpp"
#include "../core/Engine.hpp"
#include "../events/EventHandler.hpp"
#include "../events/EventDispatcher.h... | 28.606583 | 123 | 0.508958 | taida957789 |
59bc0a74db0ec01862fd96606385adfbb287e688 | 606 | cpp | C++ | PML/Renderer/Mesh.cpp | NickAOndo/PML | bcb228d012ffc99a4701afed5a05692df85c1ffa | [
"MIT"
] | null | null | null | PML/Renderer/Mesh.cpp | NickAOndo/PML | bcb228d012ffc99a4701afed5a05692df85c1ffa | [
"MIT"
] | null | null | null | PML/Renderer/Mesh.cpp | NickAOndo/PML | bcb228d012ffc99a4701afed5a05692df85c1ffa | [
"MIT"
] | null | null | null | /*******************************************************************
** Author: Nicholas Ondo
** License: MIT
** Description: DEPRECATED. Template-class, src in header only.
*******************************************************************/
#include "PML/Renderer/Mesh.h"
#include <iostream> // STL
#include <... | 24.24 | 68 | 0.551155 | NickAOndo |
59bdf98b722003e92ff6cb50555881c6d0d68b0c | 5,675 | hpp | C++ | oddgravitysdk/controls/TreePropSheetEx/TreePropSheetUtil.hpp | mschulze46/PlaylistCreator | d1fb60c096eecb816f469754cada3e5c8901157b | [
"MIT"
] | 1 | 2020-05-18T13:47:35.000Z | 2020-05-18T13:47:35.000Z | oddgravitysdk/controls/TreePropSheetEx/TreePropSheetUtil.hpp | mschulze46/PlaylistCreator | d1fb60c096eecb816f469754cada3e5c8901157b | [
"MIT"
] | null | null | null | oddgravitysdk/controls/TreePropSheetEx/TreePropSheetUtil.hpp | mschulze46/PlaylistCreator | d1fb60c096eecb816f469754cada3e5c8901157b | [
"MIT"
] | null | null | null | // TreePropSheetUtil.hpp
//
/////////////////////////////////////////////////////////////////////////////
//
// Copyright (C) 2004 by Yves Tkaczyk
// (http://www.tkaczyk.net - yves@tkaczyk.net)
//
// The contents of this file are subject to the Artistic License (the "License").
// You may not use this file exce... | 28.375 | 133 | 0.589427 | mschulze46 |
59bfd68b1a341f6732aee395051546d10a3af2ea | 6,929 | cpp | C++ | Source/SpaceHorror/Private/MasterWeapons.cpp | littlefalcon/ISS_Columbus | f4192d19a0350553de317041ec1c17aa280dc1d0 | [
"MIT"
] | null | null | null | Source/SpaceHorror/Private/MasterWeapons.cpp | littlefalcon/ISS_Columbus | f4192d19a0350553de317041ec1c17aa280dc1d0 | [
"MIT"
] | null | null | null | Source/SpaceHorror/Private/MasterWeapons.cpp | littlefalcon/ISS_Columbus | f4192d19a0350553de317041ec1c17aa280dc1d0 | [
"MIT"
] | null | null | null | // Copyright (c) 2017 LittleFalcon.
#include "MasterWeapons.h"
#include "FireMechanicAuto.h" // Handle Automatic Mechanic for Weapon
#include "FireMechanicBeam.h" // Handle Beam Mechanic for Weapon
#include "FireMechanicCharge.h" // Handle Charge Mechanic for Weapon
#include "Animation/AnimInstance.h" // Handle Skelet... | 25.662963 | 173 | 0.7408 | littlefalcon |
59c4ac56f7c757e9e516594bc026bdd4ba25ffe6 | 305 | cpp | C++ | RVTuto1/main.cpp | josnelihurt/qt-3d-cube | 1abc8b36ee23f9137a8ddaae115e0067367f18bf | [
"Unlicense"
] | null | null | null | RVTuto1/main.cpp | josnelihurt/qt-3d-cube | 1abc8b36ee23f9137a8ddaae115e0067367f18bf | [
"Unlicense"
] | null | null | null | RVTuto1/main.cpp | josnelihurt/qt-3d-cube | 1abc8b36ee23f9137a8ddaae115e0067367f18bf | [
"Unlicense"
] | null | null | null | // Cours de Réalité Virtuelle
// leo.donati@univ-cotedazur.fr
//
// EPU 2019-20
//
#include "mainwindow.h"
#include <QApplication>
int main(int argc, char *argv[])
{
QApplication a(argc, argv);
MainWindow w;
w.setWindowTitle("Réalité Virtuelle: Tuto1");
w.show();
return a.exec();
}
| 16.944444 | 49 | 0.652459 | josnelihurt |
59c4ad9b4b49e643275f5a8aa0b405e17fe9fd04 | 2,350 | hpp | C++ | Util/std_hash.hpp | cypox/devacus-backend | ba3d2ca8d72843560c4ff754780482dfe8a67c6b | [
"BSD-2-Clause"
] | 1 | 2015-03-16T12:49:12.000Z | 2015-03-16T12:49:12.000Z | Util/std_hash.hpp | antoinegiret/osrm-backend | ebe34da5428c2bfdb2b227392248011c757822e5 | [
"BSD-2-Clause"
] | 1 | 2015-02-25T18:27:19.000Z | 2015-02-25T18:27:19.000Z | Util/std_hash.hpp | antoinegiret/osrm-backend | ebe34da5428c2bfdb2b227392248011c757822e5 | [
"BSD-2-Clause"
] | null | null | null | /*
Copyright (c) 2014, Project OSRM, Dennis Luxen, others
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 ... | 30.128205 | 80 | 0.744255 | cypox |
59c8835b1263d6bd3797b429097aa06d69199e59 | 4,530 | cpp | C++ | src/plugins/lmp/mpris/fdopropsadaptor.cpp | MellonQ/leechcraft | 71cbb238d2dade56b3865278a6a8e6a58c217fc5 | [
"BSL-1.0"
] | 1 | 2017-01-12T07:05:45.000Z | 2017-01-12T07:05:45.000Z | src/plugins/lmp/mpris/fdopropsadaptor.cpp | MellonQ/leechcraft | 71cbb238d2dade56b3865278a6a8e6a58c217fc5 | [
"BSL-1.0"
] | null | null | null | src/plugins/lmp/mpris/fdopropsadaptor.cpp | MellonQ/leechcraft | 71cbb238d2dade56b3865278a6a8e6a58c217fc5 | [
"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... | 30 | 131 | 0.675717 | MellonQ |
59cb0df0bc7759b79c2c078dbbb5396876505e60 | 19 | cpp | C++ | AYK/src/aykpch.cpp | AreYouReal/AYK | c6859047cfed674291692cc31095d8bb61b27a35 | [
"Apache-2.0"
] | null | null | null | AYK/src/aykpch.cpp | AreYouReal/AYK | c6859047cfed674291692cc31095d8bb61b27a35 | [
"Apache-2.0"
] | null | null | null | AYK/src/aykpch.cpp | AreYouReal/AYK | c6859047cfed674291692cc31095d8bb61b27a35 | [
"Apache-2.0"
] | null | null | null | #include "aykpch.h" | 19 | 19 | 0.736842 | AreYouReal |
59ccd694bb7c96479c2108da5e8212eafff2c7f4 | 883 | cpp | C++ | Chapter01/Source_Code/GCC_CLANG/QtSimple.cpp | ngdzu/CPP-Reactive-Programming | e1a19feb40be086d47227587b8ed3d509b7518ca | [
"MIT"
] | 98 | 2018-07-03T08:55:31.000Z | 2022-03-21T22:16:58.000Z | Chapter01/Source_Code/GCC_CLANG/QtSimple.cpp | ngdzu/CPP-Reactive-Programming | e1a19feb40be086d47227587b8ed3d509b7518ca | [
"MIT"
] | 1 | 2020-11-30T10:38:58.000Z | 2020-12-15T06:56:20.000Z | Chapter01/Source_Code/GCC_CLANG/QtSimple.cpp | ngdzu/CPP-Reactive-Programming | e1a19feb40be086d47227587b8ed3d509b7518ca | [
"MIT"
] | 54 | 2018-07-06T02:09:27.000Z | 2021-11-10T08:42:50.000Z | /////////////////////////////////////
//
// The following program can be compiled using
// QtCreator or Qt Console.
//
#include <qapplication.h>
#include <qdialog.h>
#include <qmessagebox.h>
#include <qobject.h>
#include <qpushbutton.h>
class MyApp : public QDialog {
Q_OBJECT
public:
MyApp(QObject* /*parent*/ = 0):... | 19.195652 | 56 | 0.643262 | ngdzu |
59cf718ba0bd0efa05e8ed87cd3eadd7926c1d57 | 6,070 | cpp | C++ | tests/client/AsyncClient.cpp | wnewbery/cpphttp | adfc148716bc65aff29e881d1872c9dea6fc6af9 | [
"MIT"
] | 19 | 2017-03-28T02:17:42.000Z | 2021-02-12T03:26:58.000Z | tests/client/AsyncClient.cpp | wnewbery/cpphttp | adfc148716bc65aff29e881d1872c9dea6fc6af9 | [
"MIT"
] | 3 | 2016-07-14T10:15:06.000Z | 2016-11-22T21:04:01.000Z | tests/client/AsyncClient.cpp | wnewbery/cpphttp | adfc148716bc65aff29e881d1872c9dea6fc6af9 | [
"MIT"
] | 9 | 2017-10-19T07:15:42.000Z | 2019-09-17T07:08:25.000Z | #include <boost/test/unit_test.hpp>
#include "client/AsyncClient.hpp"
#include "../TestSocket.hpp"
#include "../TestSocketFactory.hpp"
#include "net/Net.hpp"
#include <chrono>
using namespace http;
BOOST_AUTO_TEST_SUITE(TestClient)
BOOST_AUTO_TEST_CASE(construct)
{
TestSocketFactory socket_factory;
socket_fac... | 23.897638 | 111 | 0.616145 | wnewbery |
59d80f38c8254363b4e2489f86e3efcf0d6e0058 | 3,315 | cpp | C++ | Src/InputUtils.cpp | Remag/GraphicsInversed | 6dff72130891010774c37d1e44080261db3cdb8e | [
"MIT"
] | null | null | null | Src/InputUtils.cpp | Remag/GraphicsInversed | 6dff72130891010774c37d1e44080261db3cdb8e | [
"MIT"
] | null | null | null | Src/InputUtils.cpp | Remag/GraphicsInversed | 6dff72130891010774c37d1e44080261db3cdb8e | [
"MIT"
] | null | null | null | #include <common.h>
#pragma hdrstop
#include <InputUtils.h>
#include <InputHandler.h>
#include <InputController.h>
#include <GinGlobals.h>
#include <NullMouseController.h>
namespace Gin {
//////////////////////////////////////////////////////////////////////////
CPtrOwner<TUserAction> CInputTranslator:... | 30.981308 | 110 | 0.652187 | Remag |
59dacd31a9c2c21f71e45db0602c827ac200b05d | 10,482 | cpp | C++ | src/vm/ds/NumericVariant.cpp | normal-coder/polarphp | a06e1f8781b4b75a2ca8cf2c22e0aa62631866fe | [
"PHP-3.01"
] | 1 | 2019-01-28T01:33:49.000Z | 2019-01-28T01:33:49.000Z | src/vm/ds/NumericVariant.cpp | normal-coder/polarphp | a06e1f8781b4b75a2ca8cf2c22e0aa62631866fe | [
"PHP-3.01"
] | null | null | null | src/vm/ds/NumericVariant.cpp | normal-coder/polarphp | a06e1f8781b4b75a2ca8cf2c22e0aa62631866fe | [
"PHP-3.01"
] | null | null | null | // This source file is part of the polarphp.org open source project
//
// Copyright (c) 2017 - 2018 polarphp software foundation
// Copyright (c) 2017 - 2018 zzu_softboy <zzu_softboy@163.com>
// Licensed under Apache License v2.0 with Runtime Library Exception
//
// See https://polarphp.org/LICENSE.txt for license info... | 24.263889 | 100 | 0.691471 | normal-coder |
59db45fa198c6034b549628f7da768b00013db4a | 382 | cpp | C++ | A-FF/BaseEntity.cpp | Aeomi/A-FF | f0f1d0fc71776880575020cd4d0a4506e3e11aea | [
"MIT"
] | null | null | null | A-FF/BaseEntity.cpp | Aeomi/A-FF | f0f1d0fc71776880575020cd4d0a4506e3e11aea | [
"MIT"
] | null | null | null | A-FF/BaseEntity.cpp | Aeomi/A-FF | f0f1d0fc71776880575020cd4d0a4506e3e11aea | [
"MIT"
] | null | null | null | #include "BaseEntity.h"
#include "RenderHandler.h"
#include "EntityHandler.h"
#include "Transform.h"
#include "Collider.h"
#include "Renderer.h"
BaseEntity::BaseEntity() {
_transform = new Transform();
_collider = new Collider();
_renderer = new Renderer(this);
EntityHandler::registerEntity(this);
}
BaseEnti... | 15.28 | 37 | 0.717277 | Aeomi |
59dc49779e45098555fc2ec43748426d7f416ff2 | 21,459 | cpp | C++ | src/bricklet_ambient_light_v3.cpp | davidplotzki/sensorlogger | 8ee255fba5f8560650e2b79fc967aeec8d8ec7b7 | [
"MIT"
] | null | null | null | src/bricklet_ambient_light_v3.cpp | davidplotzki/sensorlogger | 8ee255fba5f8560650e2b79fc967aeec8d8ec7b7 | [
"MIT"
] | null | null | null | src/bricklet_ambient_light_v3.cpp | davidplotzki/sensorlogger | 8ee255fba5f8560650e2b79fc967aeec8d8ec7b7 | [
"MIT"
] | null | null | null | /* ***********************************************************
* This file was automatically generated on 2021-05-06. *
* *
* C/C++ Bindings Version 2.1.32 *
* *
* If... | 28.310026 | 232 | 0.785265 | davidplotzki |
59dd89ff9e6cf68ba0d66c6d42daac72d1eea72b | 1,413 | hpp | C++ | lib/expected.hpp | 1984not-GmbH/molch | c7f1f646c800ef3388f36e8805a3b94d33d85b12 | [
"MIT"
] | 15 | 2016-04-12T17:12:19.000Z | 2019-08-14T17:46:17.000Z | lib/expected.hpp | 1984not-GmbH/molch | c7f1f646c800ef3388f36e8805a3b94d33d85b12 | [
"MIT"
] | 63 | 2016-03-22T14:35:31.000Z | 2018-07-04T22:17:07.000Z | lib/expected.hpp | 1984not-GmbH/molch | c7f1f646c800ef3388f36e8805a3b94d33d85b12 | [
"MIT"
] | 1 | 2017-08-17T09:27:30.000Z | 2017-08-17T09:27:30.000Z | /*
* Molch, an implementation of the axolotl ratchet based on libsodium
*
* ISC License
*
* Copyright (C) 2015-2018 1984not Security GmbH
* Author: Max Bruckner (FSMaxB)
*
* Permission to use, copy, modify, and/or distribute this software for any
* purpose with or without fee is hereby granted, provided that t... | 37.184211 | 75 | 0.776362 | 1984not-GmbH |
59e478aded0f667bbfff21dc33c1242c48e51cc9 | 973 | hpp | C++ | TorchLib/Source/ReLU.hpp | DoDoENT/jtorch | 2f92d397c8dc6fd7f17fe682cb7ce38314086c8e | [
"BSD-2-Clause"
] | null | null | null | TorchLib/Source/ReLU.hpp | DoDoENT/jtorch | 2f92d397c8dc6fd7f17fe682cb7ce38314086c8e | [
"BSD-2-Clause"
] | null | null | null | TorchLib/Source/ReLU.hpp | DoDoENT/jtorch | 2f92d397c8dc6fd7f17fe682cb7ce38314086c8e | [
"BSD-2-Clause"
] | null | null | null | //
// Threshold.hpp
//
// Created by Jonathan Tompson on 4/1/13.
//
#pragma once
#include <string> // for string, istream
#include "TorchStage.hpp" // for ::THRESHOLD_STAGE, TorchStage, TorchStageType
namespace mtorch {
class TorchData;
class Threshold : public TorchStage {
public:
// Constru... | 24.325 | 79 | 0.68037 | DoDoENT |
59e91ad6cf5506263f2b9e83649098d59b5b8013 | 858 | cpp | C++ | Binary Tree/Print_Nodes_k_Distance_From_Root.cpp | susantabiswas/placementPrep | 22a7574206ddc63eba89517f7b68a3d2f4d467f5 | [
"MIT"
] | 19 | 2018-12-02T05:59:44.000Z | 2021-07-24T14:11:54.000Z | Binary Tree/Print_Nodes_k_Distance_From_Root.cpp | susantabiswas/placementPrep | 22a7574206ddc63eba89517f7b68a3d2f4d467f5 | [
"MIT"
] | null | null | null | Binary Tree/Print_Nodes_k_Distance_From_Root.cpp | susantabiswas/placementPrep | 22a7574206ddc63eba89517f7b68a3d2f4d467f5 | [
"MIT"
] | 13 | 2019-04-25T16:20:00.000Z | 2021-09-06T19:50:04.000Z | //Print all the nodes which are at 'k' distance from the root
#include<iostream>
using namespace std;
struct Node
{
int data;
Node *left;
Node *right;
};
//creates node for the tree
Node *create(int data)
{
try{
Node *node=new Node;
node->data=data;
node->left=NULL;
node->right=NULL;
return node;
}
c... | 15.052632 | 61 | 0.649184 | susantabiswas |
59f44574beffa4bea5beeba69bcdd600dc02b603 | 7,666 | hh | C++ | include/BasePhantomBuilder.hh | ZiliasTheSaint/DoseInHumanBody | 26818b808ba3ad7740b321e9f82466c29f4385ee | [
"BSD-3-Clause"
] | 1 | 2019-07-27T11:22:16.000Z | 2019-07-27T11:22:16.000Z | include/BasePhantomBuilder.hh | ZiliasTheSaint/DoseInHumanBody | 26818b808ba3ad7740b321e9f82466c29f4385ee | [
"BSD-3-Clause"
] | null | null | null | include/BasePhantomBuilder.hh | ZiliasTheSaint/DoseInHumanBody | 26818b808ba3ad7740b321e9f82466c29f4385ee | [
"BSD-3-Clause"
] | 1 | 2019-10-12T05:41:52.000Z | 2019-10-12T05:41:52.000Z | //
// ********************************************************************
// * License and Disclaimer *
// * *
// * The Geant4 software is copyright of the Copyright Holders of *
// * the Geant4 Collaboration... | 71.64486 | 132 | 0.73102 | ZiliasTheSaint |
59f523def5be92f9471c26d4892c30eefa45baa9 | 1,000 | cpp | C++ | moontamer/four_wheel_steering_odometry/src/four_wheel_steering_odometry_node.cpp | cagrikilic/simulation-environment | 459ded470c708a423fc8bcc6157b57399ae89c03 | [
"MIT"
] | 1 | 2021-11-20T14:57:44.000Z | 2021-11-20T14:57:44.000Z | moontamer/four_wheel_steering_odometry/src/four_wheel_steering_odometry_node.cpp | cagrikilic/simulation-environment | 459ded470c708a423fc8bcc6157b57399ae89c03 | [
"MIT"
] | null | null | null | moontamer/four_wheel_steering_odometry/src/four_wheel_steering_odometry_node.cpp | cagrikilic/simulation-environment | 459ded470c708a423fc8bcc6157b57399ae89c03 | [
"MIT"
] | 1 | 2021-11-20T14:57:48.000Z | 2021-11-20T14:57:48.000Z | /*
Ce noeud a pour but de récupérer les informations du topic Joint_States pour reconstruire les données odométriques du modèle bicyclette et de les publier dans un topic.
Ces données sont les braquages avant et arrière, les vitesses de braquage avant et arrière, la vitesse du véhicule, son accélération et son jerk.
*/... | 30.30303 | 168 | 0.75 | cagrikilic |
59f564a3289a564d897b5a9993ad1361af281e48 | 497 | cpp | C++ | modules/polygon/src/polygon.cpp | gurylev-nikita/devtools-course-practice | bab6ba4e39f04940e27c9ac148505eb152c05d17 | [
"CC-BY-4.0"
] | null | null | null | modules/polygon/src/polygon.cpp | gurylev-nikita/devtools-course-practice | bab6ba4e39f04940e27c9ac148505eb152c05d17 | [
"CC-BY-4.0"
] | 2 | 2021-03-12T15:09:25.000Z | 2021-04-19T21:01:31.000Z | modules/polygon/src/polygon.cpp | gurylev-nikita/devtools-course-practice | bab6ba4e39f04940e27c9ac148505eb152c05d17 | [
"CC-BY-4.0"
] | null | null | null | // Copyright 2021 Alibekov Murad
#include "include/polygon.h"
double Polygon::PolygonArea(const Points2D& polygon) {
double area = 0.;
int N = polygon.size();
if (N <= 2)
return area;
for (int i = 0; i < N - 1; i++)
area += polygon[i].first * polygon[i + 1].second
- pol... | 23.666667 | 57 | 0.561368 | gurylev-nikita |
59fd2460f68cd9dd834253c7422a65ec613bb62b | 873 | cpp | C++ | glfw3_app/common/collada/dae_lights.cpp | hirakuni45/glfw3_app | d9ceeef6d398229fda4849afe27f8b48d1597fcf | [
"BSD-3-Clause"
] | 9 | 2015-09-22T21:36:57.000Z | 2021-04-01T09:16:53.000Z | glfw3_app/common/collada/dae_lights.cpp | hirakuni45/glfw3_app | d9ceeef6d398229fda4849afe27f8b48d1597fcf | [
"BSD-3-Clause"
] | null | null | null | glfw3_app/common/collada/dae_lights.cpp | hirakuni45/glfw3_app | d9ceeef6d398229fda4849afe27f8b48d1597fcf | [
"BSD-3-Clause"
] | 2 | 2019-02-21T04:22:13.000Z | 2021-03-02T17:24:32.000Z | //=====================================================================//
/*! @file
@brief collada lights のパーサー
@author 平松邦仁 (hira@rvf-rc45.net)
*/
//=====================================================================//
#include "dae_lights.hpp"
#include <boost/format.hpp>
namespace collada {
using namespace boo... | 21.292683 | 97 | 0.426117 | hirakuni45 |
94003a2ce9a8bef6b4f5ee2ac56fe3b2da2c5b77 | 648 | hpp | C++ | include/RED4ext/Scripting/Natives/Generated/anim/AnimNode_AnimSetTagValue.hpp | jackhumbert/RED4ext.SDK | 2c55eccb83beabbbe02abae7945af8efce638fca | [
"MIT"
] | 42 | 2020-12-25T08:33:00.000Z | 2022-03-22T14:47:07.000Z | include/RED4ext/Scripting/Natives/Generated/anim/AnimNode_AnimSetTagValue.hpp | jackhumbert/RED4ext.SDK | 2c55eccb83beabbbe02abae7945af8efce638fca | [
"MIT"
] | 38 | 2020-12-28T22:36:06.000Z | 2022-02-16T11:25:47.000Z | include/RED4ext/Scripting/Natives/Generated/anim/AnimNode_AnimSetTagValue.hpp | jackhumbert/RED4ext.SDK | 2c55eccb83beabbbe02abae7945af8efce638fca | [
"MIT"
] | 20 | 2020-12-28T22:17:38.000Z | 2022-03-22T17:19:01.000Z | #pragma once
// This file is generated from the Game's Reflection data
#include <cstdint>
#include <RED4ext/Common.hpp>
#include <RED4ext/Scripting/Natives/Generated/anim/AnimNode_FloatValue.hpp>
#include <RED4ext/Scripting/Natives/Generated/red/TagList.hpp>
namespace RED4ext
{
namespace anim {
struct AnimNode_Anim... | 27 | 75 | 0.762346 | jackhumbert |
9412cc3661a29eeb0d38fcaec79dac0a032b0fda | 309 | cpp | C++ | archive/1.12.03.cpp | woshiluo/oi | 5637fb81b0e25013314783dc387f7fc93bf9d4b9 | [
"Apache-2.0"
] | null | null | null | archive/1.12.03.cpp | woshiluo/oi | 5637fb81b0e25013314783dc387f7fc93bf9d4b9 | [
"Apache-2.0"
] | null | null | null | archive/1.12.03.cpp | woshiluo/oi | 5637fb81b0e25013314783dc387f7fc93bf9d4b9 | [
"Apache-2.0"
] | null | null | null | #include <stdio.h>
bool jl(double a,int b){
if(a>=37.5&&b==1) return true;
else return false;
}
int main(){
int n,ans=0;
scanf("%d",&n);
for(int i=0;i<n;i++){
char a[10];
double b;
int c;
scanf("%s %lf %d",a,&b,&c);
if(jl(b,c)){
ans++;
printf("%s\n",a);
}
}
printf("%d",ans);
}
| 12.36 | 31 | 0.498382 | woshiluo |
9412ed794324257006b770e7629811d01e438cfb | 2,970 | cpp | C++ | CODECHEF/Long/MAY15/devhand.cpp | henviso/contests | aa8a5ce9ed4524e6c3130ee73af7640e5a86954c | [
"Apache-2.0"
] | null | null | null | CODECHEF/Long/MAY15/devhand.cpp | henviso/contests | aa8a5ce9ed4524e6c3130ee73af7640e5a86954c | [
"Apache-2.0"
] | null | null | null | CODECHEF/Long/MAY15/devhand.cpp | henviso/contests | aa8a5ce9ed4524e6c3130ee73af7640e5a86954c | [
"Apache-2.0"
] | null | null | null | #include <iostream>
#include <cstdio>
#include <cstdlib>
#include <stack>
#include <algorithm>
#include <cctype>
#include <vector>
#include <queue>
#include <tr1/unordered_map>
#include <cmath>
#include <map>
#include <bitset>
#include <set>
#include <iomanip>
#include <cstring>
#include <unistd.h>
using namespace std;... | 26.517857 | 91 | 0.49596 | henviso |
9413258b1c6e346bb18d88bbedc77325fb0086f7 | 703 | hpp | C++ | MessageLevelModel/sobel/utils.hpp | Blinded4Review/ASPDAC | f1567cff39b4f11fe61cd463fb742b990b927170 | [
"Apache-2.0"
] | null | null | null | MessageLevelModel/sobel/utils.hpp | Blinded4Review/ASPDAC | f1567cff39b4f11fe61cd463fb742b990b927170 | [
"Apache-2.0"
] | null | null | null | MessageLevelModel/sobel/utils.hpp | Blinded4Review/ASPDAC | f1567cff39b4f11fe61cd463fb742b990b927170 | [
"Apache-2.0"
] | null | null | null | #ifndef UTILS_H
#define UTILS_H
#include <gsl/gsl_rng.h>
#include <gsl/gsl_randist.h>
#include <gsl/gsl_cdf.h>
// get max
double get_max(const double x, const double y);
// general discrete distributions
size_t get_discrete(const gsl_rng *r, size_t K, const double *P);
// gaussian distribution
double get_gaussian(... | 21.96875 | 65 | 0.755334 | Blinded4Review |
94173586915ead9c50b4fa91eaf7cae4a1a714ad | 2,752 | hpp | C++ | include/wee/core/zip.hpp | emdavoca/wee | 60344dd646a2e27d1cfdb1131dd679558d9cfa2b | [
"MIT"
] | 1 | 2019-02-11T12:18:39.000Z | 2019-02-11T12:18:39.000Z | include/wee/core/zip.hpp | emdavoca/wee | 60344dd646a2e27d1cfdb1131dd679558d9cfa2b | [
"MIT"
] | 1 | 2021-11-11T07:27:58.000Z | 2021-11-11T07:27:58.000Z | include/wee/core/zip.hpp | emdavoca/wee | 60344dd646a2e27d1cfdb1131dd679558d9cfa2b | [
"MIT"
] | 1 | 2021-11-11T07:22:12.000Z | 2021-11-11T07:22:12.000Z | #pragma once
#include <algorithm>
#include <iterator>
#include <iostream>
#include <tuple>
namespace wee {
template<typename T>
class zip_impl
{
public:
typedef std::vector<T> container_t;
template<typename... Args>
zip_impl(con... | 30.577778 | 81 | 0.411701 | emdavoca |
9428181d5f9dd6931046151f9c4e85cfda6f3554 | 1,610 | cpp | C++ | learncpp.com/09_Operator_Overloading/Question04/src/Main.cpp | KoaLaYT/Learn-Cpp | 0bfc98c3eca9c2fde5bff609c67d7e273fde5196 | [
"MIT"
] | null | null | null | learncpp.com/09_Operator_Overloading/Question04/src/Main.cpp | KoaLaYT/Learn-Cpp | 0bfc98c3eca9c2fde5bff609c67d7e273fde5196 | [
"MIT"
] | null | null | null | learncpp.com/09_Operator_Overloading/Question04/src/Main.cpp | KoaLaYT/Learn-Cpp | 0bfc98c3eca9c2fde5bff609c67d7e273fde5196 | [
"MIT"
] | null | null | null | /**
* Chapter 9 :: Question 4
*
* implement a two point fixed floating number
*
* KoaLaYT 20:37 02/02/2020
*
*/
#include "FixedPoint2.h"
void testAddition() {
// h/t to reader Sharjeel Safdar for this function
std::cout << std::boolalpha;
std::cout << (FixedPoint2{0.75} + FixedPoint2{1.23} == FixedPoin... | 33.541667 | 78 | 0.579503 | KoaLaYT |
9429d01e1468a0ae36da7c95621233ccda44effb | 3,831 | cpp | C++ | src/InputManager.cpp | rage-of-the-elders/rage-of-the-elders | 8f07c37c174813beef1658277c3b1b31a8fe2020 | [
"MIT"
] | 7 | 2019-05-20T17:26:15.000Z | 2021-09-03T01:18:29.000Z | src/InputManager.cpp | rage-of-the-elders/rage-of-the-elders | 8f07c37c174813beef1658277c3b1b31a8fe2020 | [
"MIT"
] | 38 | 2019-05-20T17:18:23.000Z | 2019-07-12T01:53:47.000Z | src/InputManager.cpp | rage-of-the-elders/rage-of-the-elders | 8f07c37c174813beef1658277c3b1b31a8fe2020 | [
"MIT"
] | null | null | null | #define INCLUDE_SDL
#include "SDL_include.h"
#include "InputManager.h"
#include "Camera.h"
#include <cstring>
#include <iostream>
InputManager::InputManager() {
memset(this->mouseState, false, sizeof this->mouseState);
memset(this->mouseUpdate, 0, sizeof this->mouseUpdate);
this->updateCounter = 0;
this->qui... | 23.648148 | 94 | 0.633255 | rage-of-the-elders |
942a04131e853de76706c5171ee407741a8f1167 | 2,216 | hpp | C++ | include/Lys/WorkingModule/WorkingTask.hpp | Tigole/Lys-Framework | c7a51261b78c69fbfd823c1d20617ef13ca83a39 | [
"MIT"
] | null | null | null | include/Lys/WorkingModule/WorkingTask.hpp | Tigole/Lys-Framework | c7a51261b78c69fbfd823c1d20617ef13ca83a39 | [
"MIT"
] | null | null | null | include/Lys/WorkingModule/WorkingTask.hpp | Tigole/Lys-Framework | c7a51261b78c69fbfd823c1d20617ef13ca83a39 | [
"MIT"
] | null | null | null | #ifndef _LYS_WORKING_TASK_HPP
#define _LYS_WORKING_TASK_HPP 1
#include <functional>
#include <queue>
#include <vector>
#include <mutex>
#include "Lys/Core/Core.hpp"
#include "WorkingThread.hpp"
namespace lys
{
class AWorkingTask
{
LYS_CLASS_NO_COPY(AWorkingTask)
friend WorkingThread;
public:
AWorkingTa... | 18.940171 | 76 | 0.581227 | Tigole |
94322b1761f37df86914c6326a526f9da51fe1aa | 68 | cpp | C++ | examples/simple-sfml/main.cpp | snailbaron/wiggle | 10266aca77d8bbfc32965fc45c5601323a66573e | [
"MIT"
] | null | null | null | examples/simple-sfml/main.cpp | snailbaron/wiggle | 10266aca77d8bbfc32965fc45c5601323a66573e | [
"MIT"
] | null | null | null | examples/simple-sfml/main.cpp | snailbaron/wiggle | 10266aca77d8bbfc32965fc45c5601323a66573e | [
"MIT"
] | null | null | null | #include <wiggle.hpp>
#include <SFML/Graphics.hpp>
int main()
{
}
| 8.5 | 28 | 0.661765 | snailbaron |
94331746a3d8c8b2c373b7e9ba216331c5d36347 | 335 | cpp | C++ | baekjoon/1427.cpp | 3-24/Competitive-Programming | 8cb3b85bf89db2c173cb0b136de27f2983f335fc | [
"MIT"
] | 1 | 2019-07-15T00:27:37.000Z | 2019-07-15T00:27:37.000Z | baekjoon/1427.cpp | 3-24/Competitive-Programming | 8cb3b85bf89db2c173cb0b136de27f2983f335fc | [
"MIT"
] | null | null | null | baekjoon/1427.cpp | 3-24/Competitive-Programming | 8cb3b85bf89db2c173cb0b136de27f2983f335fc | [
"MIT"
] | null | null | null | #include <stdio.h>
#include <stdlib.h>
int compare(const void *a, const void *b){
return *(int *)b - *(int *)a;
}
int main(){
int arr[11];
int i = 0;
int n;
scanf("%d",&n);
while (n){
arr[i] = n % 10;
i++;
n/=10;
}
qsort(arr,i,sizeof(int),compare);
for (int j=0;j<i;j++){
printf("%d",... | 14.565217 | 42 | 0.495522 | 3-24 |
9435f506082f1fb33469b163d7d738784c661cc3 | 2,834 | cpp | C++ | typekits/rtt_ros2_rclcpp_typekit/src/ros2_duration_type.cpp | gborghesan/rtt_ros2_integration | 6c03adc69e1bac3c8ad07d19e1814054f30f6936 | [
"Apache-2.0"
] | 14 | 2020-06-12T14:48:40.000Z | 2022-03-22T08:57:41.000Z | typekits/rtt_ros2_rclcpp_typekit/src/ros2_duration_type.cpp | gborghesan/rtt_ros2_integration | 6c03adc69e1bac3c8ad07d19e1814054f30f6936 | [
"Apache-2.0"
] | 15 | 2020-06-12T15:57:09.000Z | 2021-09-08T18:26:19.000Z | typekits/rtt_ros2_rclcpp_typekit/src/ros2_duration_type.cpp | gborghesan/rtt_ros2_integration | 6c03adc69e1bac3c8ad07d19e1814054f30f6936 | [
"Apache-2.0"
] | 3 | 2020-12-02T09:11:23.000Z | 2021-11-29T11:06:27.000Z | // Copyright 2020 Intermodalics BVBA
//
// 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... | 33.341176 | 96 | 0.743825 | gborghesan |
943e1165f6af3582510740b7f76c632fbb768f7f | 2,707 | cpp | C++ | src/components/ImageListScroll.cpp | hhyyrylainen/DualViewPP | 1fb4a1db85a8509342e16d68c75d4ec7721ced9e | [
"MIT"
] | null | null | null | src/components/ImageListScroll.cpp | hhyyrylainen/DualViewPP | 1fb4a1db85a8509342e16d68c75d4ec7721ced9e | [
"MIT"
] | null | null | null | src/components/ImageListScroll.cpp | hhyyrylainen/DualViewPP | 1fb4a1db85a8509342e16d68c75d4ec7721ced9e | [
"MIT"
] | null | null | null | // ------------------------------------ //
#include "ImageListScroll.h"
using namespace DV;
// ------------------------------------ //
bool ImageListScroll::HasCount() const{
return false;
}
size_t ImageListScroll::GetCount() const{
return 0;
}
// ------------------------------------ //
bool ImageListScroll... | 20.201493 | 94 | 0.550055 | hhyyrylainen |
9448dfeac03bfb125821e227d926e331a3a84db3 | 11,730 | cc | C++ | src/XrdHttpLcmaps.cc | matyasselmeci/xrootd-lcmaps | c796009b20794e3d179776b03e8095a0c3e32631 | [
"Apache-2.0"
] | 3 | 2018-11-22T12:16:31.000Z | 2020-02-23T15:15:47.000Z | src/XrdHttpLcmaps.cc | matyasselmeci/xrootd-lcmaps | c796009b20794e3d179776b03e8095a0c3e32631 | [
"Apache-2.0"
] | 20 | 2017-07-25T03:15:21.000Z | 2021-05-31T14:38:27.000Z | src/XrdHttpLcmaps.cc | matyasselmeci/xrootd-lcmaps | c796009b20794e3d179776b03e8095a0c3e32631 | [
"Apache-2.0"
] | 10 | 2017-07-21T16:56:43.000Z | 2021-12-26T20:10:38.000Z |
#include <iostream>
#include <map>
#include <mutex>
#include <time.h>
#include <openssl/ssl.h>
#include <XrdHttp/XrdHttpSecXtractor.hh>
#include <XrdVersion.hh>
#include <XrdSec/XrdSecEntity.hh>
#include "GlobusSupport.hh"
extern "C" {
#include "lcmaps.h"
}
#include "XrdLcmapsConfig.hh"
#include "XrdLcmapsKey.hh"... | 28.962963 | 114 | 0.576812 | matyasselmeci |
94495b4c1bb77f9089e667bb63463183a4aee49a | 786 | hpp | C++ | etl/_type_traits/conjunction.hpp | tobanteEmbedded/tetl | fc3272170843bcab47971191bcd269a86c5b5101 | [
"BSL-1.0"
] | 4 | 2021-11-28T08:48:11.000Z | 2021-12-14T09:53:51.000Z | etl/_type_traits/conjunction.hpp | tobanteEmbedded/tetl | fc3272170843bcab47971191bcd269a86c5b5101 | [
"BSL-1.0"
] | null | null | null | etl/_type_traits/conjunction.hpp | tobanteEmbedded/tetl | fc3272170843bcab47971191bcd269a86c5b5101 | [
"BSL-1.0"
] | null | null | null | /// \copyright Tobias Hienzsch 2019-2021
/// Distributed under the Boost Software License, Version 1.0.
/// See accompanying file LICENSE or copy at http://boost.org/LICENSE_1_0.txt
#ifndef TETL_TYPE_TRAITS_CONJUNCTION_HPP
#define TETL_TYPE_TRAITS_CONJUNCTION_HPP
#include "etl/_type_traits/bool_constant.hpp"
#include... | 30.230769 | 77 | 0.760814 | tobanteEmbedded |
944b4a65cb5a1f942b7044f7f5b83c5a6f845a69 | 10,080 | cpp | C++ | asc/src/input_structure.cpp | inquisitor101/ASC2D | 73ea575496340ad2486014525c6aec9c42c5d453 | [
"MIT"
] | null | null | null | asc/src/input_structure.cpp | inquisitor101/ASC2D | 73ea575496340ad2486014525c6aec9c42c5d453 | [
"MIT"
] | null | null | null | asc/src/input_structure.cpp | inquisitor101/ASC2D | 73ea575496340ad2486014525c6aec9c42c5d453 | [
"MIT"
] | null | null | null | #include "input_structure.hpp"
CInput::CInput
(
CConfig *config_container,
CGeometry *geometry_container
)
/*
* Constructor, used to initialize CInput class.
*/
{
// Extract number of zones.
nZone = config_container->GetnZone();
}
CInput::~CInput
(
void
)
/*
* Deconstructor for CInput class.
*/
{
}
... | 35.121951 | 97 | 0.632242 | inquisitor101 |
944fdb467148c7977f4755a671ec53a9a2796e7d | 5,347 | hpp | C++ | newweb/utility/ipc/generic_ipc_channel.hpp | cauthu/shadow-browser-plugin | e1eb930b1bdf71cb3cdcbb1d70467e6e6203c298 | [
"BSD-3-Clause"
] | null | null | null | newweb/utility/ipc/generic_ipc_channel.hpp | cauthu/shadow-browser-plugin | e1eb930b1bdf71cb3cdcbb1d70467e6e6203c298 | [
"BSD-3-Clause"
] | null | null | null | newweb/utility/ipc/generic_ipc_channel.hpp | cauthu/shadow-browser-plugin | e1eb930b1bdf71cb3cdcbb1d70467e6e6203c298 | [
"BSD-3-Clause"
] | null | null | null | #ifndef generic_ipc_channel_hpp
#define generic_ipc_channel_hpp
// #include <event2/event.h>
// #include <event2/bufferevent.h>
#include <memory>
#include <map>
#include <set>
#include <boost/function.hpp>
#include "../object.hpp"
#include "../timer.hpp"
#include "../stream_channel.hpp"
#include "../generic_message_... | 34.057325 | 87 | 0.66037 | cauthu |
9451c2e411c998ba5103437f2d36cced49ba0142 | 679 | hpp | C++ | core/stl_reader.hpp | fritzio/libstl | 0709e54e4b13576edf84e393db211fb77efd7f72 | [
"MIT"
] | null | null | null | core/stl_reader.hpp | fritzio/libstl | 0709e54e4b13576edf84e393db211fb77efd7f72 | [
"MIT"
] | null | null | null | core/stl_reader.hpp | fritzio/libstl | 0709e54e4b13576edf84e393db211fb77efd7f72 | [
"MIT"
] | null | null | null | #ifndef LIBSTL_STL_READER_HPP
#define LIBSTL_STL_READER_HPP
#include <string>
#include <vector>
#include <memory>
#include "triangle.hpp"
#include "parser_option.hpp"
#include "utilities/box.hpp"
namespace libstl {
class stl_reader {
const std::vector<triangle> surface_mesh;
const utilities::box<float, 3... | 19.970588 | 70 | 0.734904 | fritzio |
945283652800b96e55e7e7d16d98215205a54355 | 53 | hpp | C++ | src/boost_mpl_aux__reverse_fold_impl_body.hpp | miathedev/BoostForArduino | 919621dcd0c157094bed4df752b583ba6ea6409e | [
"BSL-1.0"
] | 10 | 2018-03-17T00:58:42.000Z | 2021-07-06T02:48:49.000Z | src/boost_mpl_aux__reverse_fold_impl_body.hpp | miathedev/BoostForArduino | 919621dcd0c157094bed4df752b583ba6ea6409e | [
"BSL-1.0"
] | 2 | 2021-03-26T15:17:35.000Z | 2021-05-20T23:55:08.000Z | src/boost_mpl_aux__reverse_fold_impl_body.hpp | miathedev/BoostForArduino | 919621dcd0c157094bed4df752b583ba6ea6409e | [
"BSL-1.0"
] | 4 | 2019-05-28T21:06:37.000Z | 2021-07-06T03:06:52.000Z | #include <boost/mpl/aux_/reverse_fold_impl_body.hpp>
| 26.5 | 52 | 0.830189 | miathedev |
9455ec897a968cc908f398633dd6ba709e9f0413 | 3,349 | cpp | C++ | src/filter/Temperature.cpp | Kuhlwein/Demiurge | 0981f1d267efed87d51e2b328a93e1fa0be1158d | [
"MIT"
] | 6 | 2020-09-23T19:49:07.000Z | 2022-01-08T15:53:55.000Z | src/filter/Temperature.cpp | Kuhlwein/Demiurge | 0981f1d267efed87d51e2b328a93e1fa0be1158d | [
"MIT"
] | null | null | null | src/filter/Temperature.cpp | Kuhlwein/Demiurge | 0981f1d267efed87d51e2b328a93e1fa0be1158d | [
"MIT"
] | 1 | 2020-09-23T17:53:26.000Z | 2020-09-23T17:53:26.000Z | //
// Created by kuhlwein on 6/29/21.
//
#include <iostream>
#include "Project.h"
#include "Temperature.h"
void TemperatureMenu::update_self(Project *p) {
}
std::shared_ptr<BackupFilter> TemperatureMenu::makeFilter(Project *p) {
return std::make_shared<ProgressFilter>(p, [](Project* p){return p->get_terrain();},... | 20.546012 | 135 | 0.62138 | Kuhlwein |
945a543d4c8ea0ad7bf7038f16d20c14ac098add | 6,023 | cpp | C++ | hexprinter.cpp | eva-rubio/CPU-simulator | b897e935c578b048e5945fda57f647a799f07655 | [
"MIT"
] | null | null | null | hexprinter.cpp | eva-rubio/CPU-simulator | b897e935c578b048e5945fda57f647a799f07655 | [
"MIT"
] | null | null | null | hexprinter.cpp | eva-rubio/CPU-simulator | b897e935c578b048e5945fda57f647a799f07655 | [
"MIT"
] | null | null | null | #include <iostream>
#include <stdlib.h>
#include <time.h>
#include <stdint.h>
// Eva Rubio
using namespace std;
/*
' #define ' - A type of Preprocessor Directive: MACRO.
Preprocessors are programs that process our source code before compilation.
Macros are a piece of code in a program which is given some name.
... | 20.347973 | 88 | 0.589739 | eva-rubio |
945a574fc62b8a929ce2c32d8000ed47c0178891 | 947 | cpp | C++ | src/Projectile.cpp | tobiaswinter/asteroids-game | 761d1c7ae1ae03762b8b8c4dc18468b4df164d61 | [
"MIT"
] | null | null | null | src/Projectile.cpp | tobiaswinter/asteroids-game | 761d1c7ae1ae03762b8b8c4dc18468b4df164d61 | [
"MIT"
] | null | null | null | src/Projectile.cpp | tobiaswinter/asteroids-game | 761d1c7ae1ae03762b8b8c4dc18468b4df164d61 | [
"MIT"
] | null | null | null | #include "Projectile.h"
#include <random>
#include <iostream>
Projectile::Projectile(Participant* owner, Type type) : Rigidbody(type), owner(owner)
{
Reset();
}
Projectile::~Projectile()
{
}
void Projectile::Reset()
{
if (type == Asteroid)
{
radius = ASTEROID_RADIUS;
if (velocity.x < 0)... | 17.867925 | 85 | 0.459345 | tobiaswinter |
945b2ab4f7910a796ced6492bf74684995355e71 | 1,065 | hpp | C++ | software/include/species.hpp | A283le/ExoskeletonAI | dfb4ff5639d84dea69577764af2b151f309bbb3b | [
"Apache-2.0"
] | 7 | 2020-06-03T05:48:47.000Z | 2022-01-08T22:30:26.000Z | software/include/species.hpp | A283le/ExoskeletonAI | dfb4ff5639d84dea69577764af2b151f309bbb3b | [
"Apache-2.0"
] | 21 | 2018-01-16T17:05:30.000Z | 2018-04-01T18:14:18.000Z | software/include/species.hpp | A283le/ExoskeletonAI | dfb4ff5639d84dea69577764af2b151f309bbb3b | [
"Apache-2.0"
] | 6 | 2018-01-22T15:35:26.000Z | 2021-12-17T15:32:09.000Z | #ifndef SPECIES_HPP
#define SPECIES_HPP
/** @brief Class for the species.
This class will hold of the functions that deal
with species, and their necessary actions.
@author Dominguez, Alejandro
@date Feburary, 2018
*/
#include <iostream>
#include <list>
#include <network.hpp>
using namespace st... | 21.734694 | 83 | 0.675117 | A283le |
945c8acf3a5afff032341822a079b8196e8f3fa9 | 3,238 | cpp | C++ | src/Config/PropertiesMap.cpp | eiji-shimizu/eihire | 3996cf9d0c5d4fd8201141093aea6bb8017e7657 | [
"MIT"
] | null | null | null | src/Config/PropertiesMap.cpp | eiji-shimizu/eihire | 3996cf9d0c5d4fd8201141093aea6bb8017e7657 | [
"MIT"
] | null | null | null | src/Config/PropertiesMap.cpp | eiji-shimizu/eihire | 3996cf9d0c5d4fd8201141093aea6bb8017e7657 | [
"MIT"
] | null | null | null | #include "Config/PropertiesMap.h"
#include "Exception/Exception.h"
#include <filesystem>
#include <fstream>
#include <sstream>
namespace Eihire::Config {
namespace {
std::string getFileName(const std::string &filePath)
{
std::filesystem::path p{filePath};
return p.filename... | 28.910714 | 79 | 0.512044 | eiji-shimizu |
9466c9f41e9d9a74e251d8536071f33b322a69fa | 929 | cpp | C++ | src/engine/graphics/model/vertex.cpp | dmfedorin/ubiquitility | f3a1062d2489ffd48889bff5fc8062c05706a946 | [
"MIT"
] | null | null | null | src/engine/graphics/model/vertex.cpp | dmfedorin/ubiquitility | f3a1062d2489ffd48889bff5fc8062c05706a946 | [
"MIT"
] | null | null | null | src/engine/graphics/model/vertex.cpp | dmfedorin/ubiquitility | f3a1062d2489ffd48889bff5fc8062c05706a946 | [
"MIT"
] | null | null | null | #include "vertex.hpp"
auto Vertex::get_binding_desc(
void) noexcept -> VkVertexInputBindingDescription
{
VkVertexInputBindingDescription binding_desc{};
binding_desc.binding = 0;
binding_desc.stride = sizeof(Vertex);
binding_desc.inputRate = VK_VERTEX_INPUT_RATE_VERTEX;
... | 29.03125 | 70 | 0.668461 | dmfedorin |
9469376a9120212715f945fbf16eb07ba750a193 | 1,433 | cpp | C++ | test/memory/TestObjectPool.cpp | CltKitakami/MyLib | d2dc4fb06ea5c3379a1818b49b0ecf13f8cd2b36 | [
"MIT"
] | null | null | null | test/memory/TestObjectPool.cpp | CltKitakami/MyLib | d2dc4fb06ea5c3379a1818b49b0ecf13f8cd2b36 | [
"MIT"
] | null | null | null | test/memory/TestObjectPool.cpp | CltKitakami/MyLib | d2dc4fb06ea5c3379a1818b49b0ecf13f8cd2b36 | [
"MIT"
] | null | null | null | #include <vector>
#include <list>
#include <map>
#include "common/Log.hpp"
#include "common/Stopwatch.hpp"
#include "memory/ObjectPool.hpp"
template<size_t DUMP_SIZE>
class Test
{
public:
char dump[DUMP_SIZE];
Test() {}
~Test() {}
};
void testNewDelete();
void testMap();
template <typename T> void testStl();
in... | 16.101124 | 63 | 0.598744 | CltKitakami |
946aa8147a1642149d5040bad13609964b9d9e98 | 154 | cpp | C++ | ME625_NURBS_SweptSurfaces/vector3D.cpp | houes/ME625_NURBS_SweptSurfaces | 0b3062a0ae5c7dbb885ac35ad12bcf2afaeec66e | [
"MIT"
] | 3 | 2020-04-10T22:55:20.000Z | 2022-02-08T11:10:28.000Z | ME625_NURBS_SweptSurfaces/vector3D.cpp | houes/ME625_NURBS_SweptSurfaces | 0b3062a0ae5c7dbb885ac35ad12bcf2afaeec66e | [
"MIT"
] | null | null | null | ME625_NURBS_SweptSurfaces/vector3D.cpp | houes/ME625_NURBS_SweptSurfaces | 0b3062a0ae5c7dbb885ac35ad12bcf2afaeec66e | [
"MIT"
] | null | null | null | #include "vector3D.h"
vector3D vector3D::crossp(const vector3D &v) const
{
return vector3D( y*v.z - z*v.y,
z*v.x - x*v.z,
x*v.y - y*v.x );
} | 19.25 | 50 | 0.577922 | houes |
946c659c0d072af4cbd7920c2a715444029456f5 | 7,972 | cpp | C++ | src/libc9/gc_markcompact.cpp | stormbrew/channel9 | 626b42c208ce1eb54fff09ebd9f9e9fd0311935d | [
"MIT"
] | 1 | 2015-02-13T02:03:29.000Z | 2015-02-13T02:03:29.000Z | src/libc9/gc_markcompact.cpp | stormbrew/channel9 | 626b42c208ce1eb54fff09ebd9f9e9fd0311935d | [
"MIT"
] | null | null | null | src/libc9/gc_markcompact.cpp | stormbrew/channel9 | 626b42c208ce1eb54fff09ebd9f9e9fd0311935d | [
"MIT"
] | null | null | null | #include "c9/channel9.hpp"
#include "c9/gc.hpp"
#include "c9/value.hpp"
#include "c9/string.hpp"
#include "c9/tuple.hpp"
#include "c9/message.hpp"
#include "c9/context.hpp"
#include "c9/variable_frame.hpp"
#include "c9/gc_markcompact.hpp"
namespace Channel9
{
GC::Markcompact::Markcompact()
: m_gc_phase(Running),... | 26.223684 | 222 | 0.626066 | stormbrew |
946f19f00cf4eab2d5a6005a896597dc4f44a60d | 6,775 | cpp | C++ | src/singletons/SettingsManager.cpp | nforro/chatterino2 | e9868fdd84bd5799b9689fc9d7ee4abed792ecec | [
"MIT"
] | null | null | null | src/singletons/SettingsManager.cpp | nforro/chatterino2 | e9868fdd84bd5799b9689fc9d7ee4abed792ecec | [
"MIT"
] | null | null | null | src/singletons/SettingsManager.cpp | nforro/chatterino2 | e9868fdd84bd5799b9689fc9d7ee4abed792ecec | [
"MIT"
] | null | null | null | #include "singletons/SettingsManager.hpp"
#include "Application.hpp"
#include "debug/Log.hpp"
#include "singletons/PathManager.hpp"
#include "singletons/ResourceManager.hpp"
#include "singletons/WindowManager.hpp"
namespace chatterino {
std::vector<std::weak_ptr<pajlada::Settings::ISettingData>> _settings;
void _ac... | 29.714912 | 100 | 0.621993 | nforro |
20e161cb316498b0574394a4b65e75ff2bfbf59b | 10,838 | cpp | C++ | data/744.cpp | TianyiChen/rdcpp-data | 75c6868c876511e3ce143fdc3c08ddd74c7aa4ea | [
"MIT"
] | null | null | null | data/744.cpp | TianyiChen/rdcpp-data | 75c6868c876511e3ce143fdc3c08ddd74c7aa4ea | [
"MIT"
] | null | null | null | data/744.cpp | TianyiChen/rdcpp-data | 75c6868c876511e3ce143fdc3c08ddd74c7aa4ea | [
"MIT"
] | null | null | null | int Fdbtu
,ui//3
,RS
, xyWC , fiNac ,M , NFNo
,
Awep ,
J ,Kbl
,
yf, ccQ , FCrrd ,qfA0 ,
s13Xh ,g9,rYQA
,Z
,on , Vsy5Q, Hwc, AiG , qH
,//Eb
DH
,/*aqa*/ DU,lJZ//d
,pRlwI
, /*aI*/ tAP,FyD,NS ,d0OG
,Y3c
,
O1Q,
oyq,//
Va , yFufL
,
Hd
,
//zq
lqX,/*aRZ*/ iXv
,
xRV ,
BL6//
,DY ,EKsr,//qE
KZ,vL... | 10.411143 | 64 | 0.453128 | TianyiChen |
20e424f0ec449846174a9ce7873e219f0b96a115 | 1,737 | hh | C++ | include/Cc/Instruction.hh | Stalker2106x/Mini8BVM | d384ad30f6c870b32aa8e4b9d00705a1406779ad | [
"MIT"
] | 1 | 2021-11-30T06:52:58.000Z | 2021-11-30T06:52:58.000Z | include/Cc/Instruction.hh | Stalker2106x/Mini8BVM | d384ad30f6c870b32aa8e4b9d00705a1406779ad | [
"MIT"
] | null | null | null | include/Cc/Instruction.hh | Stalker2106x/Mini8BVM | d384ad30f6c870b32aa8e4b9d00705a1406779ad | [
"MIT"
] | null | null | null | #ifndef INSTRUCTION_HH_
#define INSTRUCTION_HH_
#include <string>
#include <bitset>
#include <algorithm>
#include "Cc/InstructionDef.hh"
#include "config.h"
#include "utils.hh"
template <wordSizeType CodeSize, wordSizeType OperandSize>
class Instruction
{
public:
Instruction(InstructionDef definition, std::strin... | 29.948276 | 153 | 0.558434 | Stalker2106x |
20e87cbc4eef81e118a052d281aba838728bb868 | 500 | hpp | C++ | source/Minesweeper.hpp | rincew1nd/Minesweeper-Switch | 6a441c4bbcc33cdbd0fe17fd5b9d4fb7e7cb0467 | [
"MIT"
] | 8 | 2018-06-27T00:34:11.000Z | 2018-09-07T06:56:20.000Z | source/Minesweeper.hpp | rincew1nd/Minesweeper-Switch | 6a441c4bbcc33cdbd0fe17fd5b9d4fb7e7cb0467 | [
"MIT"
] | null | null | null | source/Minesweeper.hpp | rincew1nd/Minesweeper-Switch | 6a441c4bbcc33cdbd0fe17fd5b9d4fb7e7cb0467 | [
"MIT"
] | 2 | 2018-06-28T03:02:07.000Z | 2019-01-26T06:02:17.000Z | #pragma once
#include <switch.h>
#include <SDL2/SDL.h>
#include <SDL2/SDL_ttf.h>
#include "Engine/Defaults.hpp"
#include "Engine/Input.hpp"
#include "Scenes/GameScene.hpp"
class Minesweeper
{
public:
Minesweeper();
void Start();
private:
bool InitSDL();
void InitGame();
... | 17.857143 | 32 | 0.6 | rincew1nd |
20f09bdb0db7add4d0b0d033fb7af3e5ae9f37d5 | 2,414 | cpp | C++ | game/scripting.cpp | NixonSiagian/samp-client | 7a10dfeddc806e199688c645b12f3bf37eaa4f61 | [
"FSFAP"
] | null | null | null | game/scripting.cpp | NixonSiagian/samp-client | 7a10dfeddc806e199688c645b12f3bf37eaa4f61 | [
"FSFAP"
] | null | null | null | game/scripting.cpp | NixonSiagian/samp-client | 7a10dfeddc806e199688c645b12f3bf37eaa4f61 | [
"FSFAP"
] | null | null | null | #include "../main.h"
#include "scripting.h"
#include "../chatwindow.h"
extern CChatWindow *pChatWindow;
GAME_SCRIPT_THREAD* gst;
char ScriptBuf[0xFF];
uintptr_t *pdwParamVars[18];
bool bExceptionDisplayed = false;
uint8_t ExecuteScriptBuf()
{
gst->dwScriptIP = (uintptr_t)ScriptBuf;
(( void (*)(GAME_SCRIPT_THREAD*... | 20.285714 | 92 | 0.612262 | NixonSiagian |
20f46db2fd4df5330804939d7b39154c4aa301ee | 1,293 | cpp | C++ | libs/libplatform/MouseGrabber.cpp | ps-group/modern-gl-samples | 53e075ec21418597b37c71c895111c0c77cab72b | [
"MIT"
] | 1 | 2017-06-20T06:56:57.000Z | 2017-06-20T06:56:57.000Z | libs/libplatform/MouseGrabber.cpp | ps-group/modern-gl-samples | 53e075ec21418597b37c71c895111c0c77cab72b | [
"MIT"
] | null | null | null | libs/libplatform/MouseGrabber.cpp | ps-group/modern-gl-samples | 53e075ec21418597b37c71c895111c0c77cab72b | [
"MIT"
] | null | null | null | #include "MouseGrabber.h"
#include <glm/vec2.hpp>
#if 0
namespace ps
{
MouseGrabber::MouseGrabber(SDL_Window& window)
: m_windowRef(window)
{
// Включаем режим спрятанного курсора.
SDL_SetRelativeMouseMode(SDL_TRUE);
}
bool MouseGrabber::OnMouseMove(const SDL_MouseMotionEvent &event)
{
const glm::iv... | 23.944444 | 76 | 0.690642 | ps-group |
20f5a25594090fe2ef36d667fc018abcdadaf532 | 4,834 | cpp | C++ | UltraDV/Source/TTimeBevelTextView.cpp | ModeenF/UltraDV | 30474c60880de541b33687c96293766fe0dc4aef | [
"Unlicense"
] | null | null | null | UltraDV/Source/TTimeBevelTextView.cpp | ModeenF/UltraDV | 30474c60880de541b33687c96293766fe0dc4aef | [
"Unlicense"
] | null | null | null | UltraDV/Source/TTimeBevelTextView.cpp | ModeenF/UltraDV | 30474c60880de541b33687c96293766fe0dc4aef | [
"Unlicense"
] | null | null | null | //---------------------------------------------------------------------
//
// File: TTimeBevelTextView.cpp
//
// Author: Gene Z. Ragan
//
// Date: 03.24.98
//
// Desc: Enhanced version of TTimeBevelTextView drawn with a beveled
// indentation and a focus highlight
//
// Copyright ©1998 mediapede Software
//
//-------... | 22.37963 | 134 | 0.477038 | ModeenF |
1f06a020d40f05b994aeb2e1f98587c8d3a3b5dc | 1,692 | hpp | C++ | janela_principal.hpp | marcio-mutti/msscellparse | 2b9ff0a5a59a5ba090eaf6c7e6614b6bd278b5f5 | [
"Apache-2.0"
] | null | null | null | janela_principal.hpp | marcio-mutti/msscellparse | 2b9ff0a5a59a5ba090eaf6c7e6614b6bd278b5f5 | [
"Apache-2.0"
] | null | null | null | janela_principal.hpp | marcio-mutti/msscellparse | 2b9ff0a5a59a5ba090eaf6c7e6614b6bd278b5f5 | [
"Apache-2.0"
] | null | null | null | #ifndef JANELA_PRINCIPAL
#define JANELA_PRINCIPAL
#include <memory>
#include <gtkmm-3.0/gtkmm.h>
#include <boost/thread.hpp>
# include "loader_thread.hpp"
class janela_principal : public Gtk::ApplicationWindow {
public:
janela_principal();
~janela_principal();
protected:
Glib::RefPtr<Gtk::Builder> ja... | 31.924528 | 91 | 0.699764 | marcio-mutti |
1f06c9929d44e6ba4a5a4beac65f793444f3c500 | 1,509 | hpp | C++ | src/Platform.Cocoa/GameHostMetal.hpp | ValtoForks/pomdog | 73798ae5f4a4c3b9b1e1e96239187c4b842c93b2 | [
"MIT"
] | null | null | null | src/Platform.Cocoa/GameHostMetal.hpp | ValtoForks/pomdog | 73798ae5f4a4c3b9b1e1e96239187c4b842c93b2 | [
"MIT"
] | null | null | null | src/Platform.Cocoa/GameHostMetal.hpp | ValtoForks/pomdog | 73798ae5f4a4c3b9b1e1e96239187c4b842c93b2 | [
"MIT"
] | null | null | null | // Copyright (c) 2013-2018 mogemimi. Distributed under the MIT license.
#pragma once
#include "Pomdog/Application/GameHost.hpp"
#include "Pomdog/Signals/EventQueue.hpp"
#include <memory>
#import <MetalKit/MTKView.h>
namespace Pomdog {
class Game;
struct PresentationParameters;
namespace Detail {
namespace Cocoa {... | 22.522388 | 77 | 0.720345 | ValtoForks |
1f07805d8b09bf1ed4c9c66c11902695dcbf7eb8 | 5,637 | cpp | C++ | embedded_deformables/Embedded_Deformables_Driver.cpp | yanshil/Nova_Examples | 0807c5a3bc24e4f3efc399f424e2e4fb0da2d4fe | [
"Apache-2.0"
] | 1 | 2022-02-01T18:04:45.000Z | 2022-02-01T18:04:45.000Z | embedded_deformables/Embedded_Deformables_Driver.cpp | yanshil/Nova_Examples | 0807c5a3bc24e4f3efc399f424e2e4fb0da2d4fe | [
"Apache-2.0"
] | null | null | null | embedded_deformables/Embedded_Deformables_Driver.cpp | yanshil/Nova_Examples | 0807c5a3bc24e4f3efc399f424e2e4fb0da2d4fe | [
"Apache-2.0"
] | 1 | 2018-12-30T00:49:36.000Z | 2018-12-30T00:49:36.000Z | //!#####################################################################
//! \file Embedded_Deformables_Driver.cpp
//!#####################################################################
#include <nova/Tools/Krylov_Solvers/Conjugate_Gradient.h>
#include "CG_System.h"
#include "Embedded_Deformables_Driver.h"
using name... | 47.369748 | 154 | 0.63846 | yanshil |
1f095b0008f38943fe66c5df9cf7359ddf136787 | 5,096 | cpp | C++ | driver/response.cpp | symmetryinvestments/ldc | cac8eddfc68cfe5c972df0ede31d8975fb1c5fb2 | [
"Apache-2.0"
] | 858 | 2015-01-02T10:06:15.000Z | 2022-03-30T18:26:49.000Z | driver/response.cpp | symmetryinvestments/ldc | cac8eddfc68cfe5c972df0ede31d8975fb1c5fb2 | [
"Apache-2.0"
] | 2,533 | 2015-01-04T14:31:13.000Z | 2022-03-31T22:12:24.000Z | driver/response.cpp | symmetryinvestments/ldc | cac8eddfc68cfe5c972df0ede31d8975fb1c5fb2 | [
"Apache-2.0"
] | 220 | 2015-01-06T05:24:36.000Z | 2022-03-13T10:47:32.000Z | //===-- response.cpp ------------------------------------------------------===//
//
// LDC – the LLVM D compiler
//
// This file is distributed under the BSD-style LDC license. See the LICENSE
// file for details.
//
//===----------------------------------------------------------------------===/... | 26.962963 | 80 | 0.557104 | symmetryinvestments |
1f110276ddaf6ecd5bc30d78aafc2915730ca827 | 16,858 | cpp | C++ | plugins/hgl_parser/src/hgl_parser.cpp | The6P4C/hal | 09ce5ba7012e293ce004b1ca5c94f553c9cbddae | [
"MIT"
] | null | null | null | plugins/hgl_parser/src/hgl_parser.cpp | The6P4C/hal | 09ce5ba7012e293ce004b1ca5c94f553c9cbddae | [
"MIT"
] | null | null | null | plugins/hgl_parser/src/hgl_parser.cpp | The6P4C/hal | 09ce5ba7012e293ce004b1ca5c94f553c9cbddae | [
"MIT"
] | null | null | null | #include "hgl_parser/hgl_parser.h"
#include "hal_core/netlist/boolean_function.h"
#include "hal_core/utilities/log.h"
#include "rapidjson/filereadstream.h"
#include "rapidjson/stringbuffer.h"
namespace hal
{
std::unique_ptr<GateLibrary> HGLParser::parse(const std::filesystem::path& file_path)
{
m_path... | 37.132159 | 199 | 0.564836 | The6P4C |
1f1132570a7d148410512482329930a8f00b6828 | 502 | cpp | C++ | codeforces/667.3/B.cpp | swwind/code | 25c4c5ca2f8578ba792b44cbdf44286d39dfb7e0 | [
"WTFPL"
] | 3 | 2017-09-17T09:12:50.000Z | 2018-04-06T01:18:17.000Z | codeforces/667.3/B.cpp | swwind/code | 25c4c5ca2f8578ba792b44cbdf44286d39dfb7e0 | [
"WTFPL"
] | null | null | null | codeforces/667.3/B.cpp | swwind/code | 25c4c5ca2f8578ba792b44cbdf44286d39dfb7e0 | [
"WTFPL"
] | null | null | null | #include <bits/stdc++.h>
using namespace std;
int main() {
int t, x, y, a, b, n;
scanf("%d", &t);
while (t --) {
scanf("%d%d%d%d%d", &a, &b, &x, &y, &n);
if (n >= a - x + b - y) {
printf("%lld\n", (long long) x * y);
continue;
}
long long res1 = n >= (a - x) ? (long long) x * (b - (n ... | 29.529412 | 98 | 0.420319 | swwind |
1f11f7ff0ee57eacd12da2befda877353db09b60 | 2,065 | hpp | C++ | app/include/shared/util/ResourceUtil.hpp | paulo-coutinho/cef-sample | ed6f400c1ecf5ec86454c963578ba27c5194afe0 | [
"MIT"
] | 5 | 2021-07-09T15:16:13.000Z | 2022-01-27T13:47:16.000Z | app/include/shared/util/ResourceUtil.hpp | paulo-coutinho/cef-sample | ed6f400c1ecf5ec86454c963578ba27c5194afe0 | [
"MIT"
] | null | null | null | app/include/shared/util/ResourceUtil.hpp | paulo-coutinho/cef-sample | ed6f400c1ecf5ec86454c963578ba27c5194afe0 | [
"MIT"
] | null | null | null | #pragma once
#include "include/cef_parser.h"
#include "include/wrapper/cef_stream_resource_handler.h"
#if defined(OS_WIN)
#include "include/wrapper/cef_resource_manager.h"
#endif
namespace shared
{
namespace util
{
class ResourceUtil
{
public:
// returns URL without the query or fragment components, if any
... | 29.927536 | 104 | 0.7477 | paulo-coutinho |
1f17c691b218143baff7673c402e90ac5b212d50 | 12,607 | hpp | C++ | Engine/Includes/Lua/Modules/wxLua/bindings/wxwidgets/wxadv_override.hpp | GCourtney27/Retina-Engine | 5358b9c499f4163a209024dc303c3efe6c520c01 | [
"MIT"
] | null | null | null | Engine/Includes/Lua/Modules/wxLua/bindings/wxwidgets/wxadv_override.hpp | GCourtney27/Retina-Engine | 5358b9c499f4163a209024dc303c3efe6c520c01 | [
"MIT"
] | null | null | null | Engine/Includes/Lua/Modules/wxLua/bindings/wxwidgets/wxadv_override.hpp | GCourtney27/Retina-Engine | 5358b9c499f4163a209024dc303c3efe6c520c01 | [
"MIT"
] | null | null | null | // ----------------------------------------------------------------------------
// Overridden functions for the wxWidgets binding for wxLua
//
// Please keep these functions in the same order as the .i file and in the
// same order as the listing of the functions in that file.
// ---------------------------------------... | 32.160714 | 143 | 0.728405 | GCourtney27 |
1f1c4c97ab8919946e69cd923d2a814799cf37d8 | 874 | cpp | C++ | Matrix Multiplication.cpp | sayanroy058/C-Programs | 2bb591d5a322d1bf10e8a1627d92db05cb0ece75 | [
"CC0-1.0"
] | 2 | 2019-09-11T16:22:30.000Z | 2019-09-19T18:29:42.000Z | Matrix Multiplication.cpp | sayanroy058/C-Programs | 2bb591d5a322d1bf10e8a1627d92db05cb0ece75 | [
"CC0-1.0"
] | null | null | null | Matrix Multiplication.cpp | sayanroy058/C-Programs | 2bb591d5a322d1bf10e8a1627d92db05cb0ece75 | [
"CC0-1.0"
] | null | null | null | #include<stdio.h>
int main()
{
int i,j,k,r1,r2,c1,c2,sum=0,a[10][10],b[10][10],p[10][10];
printf("Enter the row and column of the 1st matrics:");
scanf("%d%d",&r1,&c1);
printf("Enter the row and column of the 2nd matrics:");
scanf("%d%d",&r2,&c2);
printf("Enter elements of first matrix:\n");
for(i=0;i<r... | 18.595745 | 60 | 0.442792 | sayanroy058 |
1f1d72c14c8761610c791ecea8fa1f858adfe114 | 247 | cpp | C++ | pub/1104.cpp | BashuMiddleSchool/Bashu_OnlineJudge_Code | 4707a271e6658158a1910b0e6e27c75f96841aca | [
"MIT"
] | 2 | 2021-05-01T15:51:58.000Z | 2021-05-02T15:19:49.000Z | pub/1104.cpp | BashuMiddleSchool/Bashu_OnlineJudge_Code | 4707a271e6658158a1910b0e6e27c75f96841aca | [
"MIT"
] | 1 | 2021-05-16T15:04:38.000Z | 2021-09-19T09:49:00.000Z | pub/1104.cpp | BashuMiddleSchool/Bashu_OnlineJudge_Code | 4707a271e6658158a1910b0e6e27c75f96841aca | [
"MIT"
] | null | null | null | #include<iostream>
using namespace std;
int main()
{
int a[100001]={0};
int n,i,b=-1000000,m;
cin>>n;
for(i=1;i<=n;i++)
{
cin>>a[i];
}
for(i=1;i<=n;i++)
{
if(a[i]>=b) {
b=a[i];m=i;
}
}
cout<<b<<endl;
cout<<m;
return 0;
} | 11.761905 | 22 | 0.48583 | BashuMiddleSchool |
1f212f1f35be9cb4fa950adaaaf9c31200466c69 | 1,043 | cpp | C++ | cplus/BacterialExperimentGroup.cpp | chtld/Programming-and-Algorithm-Course | 669f266fc97db9050013ffbb388517667de33433 | [
"MIT"
] | 2 | 2019-06-10T11:50:06.000Z | 2019-10-14T08:00:41.000Z | cplus/BacterialExperimentGroup.cpp | chtld/Programming-and-Algorithm-Course | 669f266fc97db9050013ffbb388517667de33433 | [
"MIT"
] | null | null | null | cplus/BacterialExperimentGroup.cpp | chtld/Programming-and-Algorithm-Course | 669f266fc97db9050013ffbb388517667de33433 | [
"MIT"
] | null | null | null | #include <iostream>
int main(){
int n = 0, initial = 0, final = 0;
std::cin >> n;
int id[100] = {0};
double rate[100] = {0.0};
for (int i = 0; i < n; i++) {
std::cin >> id[i] >> initial >> final;
rate [i] = (double) final/initial;
}
for (int i = 0; i < n; i++) {
for (int j = 0; j < n - i - 1... | 22.673913 | 49 | 0.449664 | chtld |
1f289f3a64863a9def62c79b27dae01a400b4167 | 8,280 | cpp | C++ | src/editor/src/resource/name_resource_pool.cpp | AirGuanZ/Atrc | a0c4bc1b7bb96ddffff8bb1350f88b651b94d993 | [
"MIT"
] | 358 | 2018-11-29T08:15:05.000Z | 2022-03-31T07:48:37.000Z | src/editor/src/resource/name_resource_pool.cpp | happyfire/Atrc | 74cac111e277be53eddea5638235d97cec96c378 | [
"MIT"
] | 23 | 2019-04-06T17:23:58.000Z | 2022-02-08T14:22:46.000Z | src/editor/src/resource/name_resource_pool.cpp | happyfire/Atrc | 74cac111e277be53eddea5638235d97cec96c378 | [
"MIT"
] | 22 | 2019-03-04T01:47:56.000Z | 2022-01-13T06:06:49.000Z | #include <agz/editor/editor.h>
#include <agz/editor/resource/pool/name_resource_pool.h>
#include <agz/tracer/utility/logger.h>
AGZ_EDITOR_BEGIN
namespace
{
constexpr int WIDGET_ITEM_HEIGHT = 35;
}
template<typename TracerObject>
NameResourcePool<TracerObject>::NameResourcePool(
ObjectContext &obj_ctx, Editor... | 30.32967 | 87 | 0.633937 | AirGuanZ |
1f2a14b538c40588484eb426a9886a93e77a21fd | 283 | cc | C++ | jax/training/21-03/21-03-23-night/c.cc | JaxVanYang/acm | ee41f1cbf692b7b1463a9467401bb6e7d38aecce | [
"MIT"
] | 2 | 2022-01-01T16:55:02.000Z | 2022-03-16T14:47:29.000Z | jax/training/21-03/21-03-23-night/c.cc | JaxVanYang/acm | ee41f1cbf692b7b1463a9467401bb6e7d38aecce | [
"MIT"
] | null | null | null | jax/training/21-03/21-03-23-night/c.cc | JaxVanYang/acm | ee41f1cbf692b7b1463a9467401bb6e7d38aecce | [
"MIT"
] | null | null | null | #include <iostream>
using namespace std;
const int maxn = 505;
const int maxl = 2000;
char strs[maxn][maxl];
int main() {
int t;
cin >> t;
for (int i = 1; i <= t; ++i) {
int n;
for (int i = 1; i <= n; ++i) scanf("%s", strs + i);
string s;
}
} | 18.866667 | 59 | 0.487633 | JaxVanYang |
1f2a8e876145e8e862f63845b45959c03eba270d | 2,221 | cpp | C++ | Tests/UnitTests/Core/Time/SecondTests.cpp | SapphireSuite/Engine | f29821853aec6118508f31d3e063e83e603f52dd | [
"MIT"
] | 1 | 2022-01-20T23:17:18.000Z | 2022-01-20T23:17:18.000Z | Tests/UnitTests/Core/Time/SecondTests.cpp | SapphireSuite/Engine | f29821853aec6118508f31d3e063e83e603f52dd | [
"MIT"
] | null | null | null | Tests/UnitTests/Core/Time/SecondTests.cpp | SapphireSuite/Engine | f29821853aec6118508f31d3e063e83e603f52dd | [
"MIT"
] | null | null | null | // Copyright (c) 2021 Sapphire's Suite. All Rights Reserved.
#include <UnitTestHelper>
#include <SA/Collections/Time>
using namespace Sa;
namespace Sa::Second_UT
{
void Constants()
{
static_assert(1.0f / Second::ToTicks == Tick::ToSeconds, "1 / Second::ToTicks != Tick::ToSeconds");
static_assert(1.0f / Second:... | 24.141304 | 130 | 0.683926 | SapphireSuite |
1f2b33c45d51597918953f78724114fb628f0d30 | 566 | cpp | C++ | sg/generator/Generator.cpp | ebachard/ospray_studio | 78928c93b482f9f95aa300c8f58c728dadedbe2f | [
"Apache-2.0"
] | null | null | null | sg/generator/Generator.cpp | ebachard/ospray_studio | 78928c93b482f9f95aa300c8f58c728dadedbe2f | [
"Apache-2.0"
] | null | null | null | sg/generator/Generator.cpp | ebachard/ospray_studio | 78928c93b482f9f95aa300c8f58c728dadedbe2f | [
"Apache-2.0"
] | null | null | null | // Copyright 2009-2022 Intel Corporation
// SPDX-License-Identifier: Apache-2.0
#include "Generator.h"
namespace ospray {
namespace sg {
Generator::Generator()
{
createChild("parameters");
}
NodeType Generator::type() const
{
return NodeType::GENERATOR;
}
void Generator::preCommit()
{
... | 15.722222 | 54 | 0.64841 | ebachard |
1f2c827f768c52a73e73bf70aaf2df3859142f33 | 717 | hpp | C++ | Code/Engine/Math/FloatRange.hpp | yixuan-wei/PersonalEngine | 6f3b1df3ddeb662fbf65ca8b3ea7ddb446ef5a20 | [
"MIT"
] | 1 | 2021-06-11T06:41:29.000Z | 2021-06-11T06:41:29.000Z | Code/Engine/Math/FloatRange.hpp | yixuan-wei/PersonalEngine | 6f3b1df3ddeb662fbf65ca8b3ea7ddb446ef5a20 | [
"MIT"
] | 1 | 2022-02-25T07:46:54.000Z | 2022-02-25T07:46:54.000Z | Code/Engine/Math/FloatRange.hpp | yixuan-wei/PersonalEngine | 6f3b1df3ddeb662fbf65ca8b3ea7ddb446ef5a20 | [
"MIT"
] | null | null | null | #pragma once
#include <string>
class RandomNumberGenerator;
struct FloatRange
{
public:
float minimum = 0.f;
float maximum = 0.f;
public:
FloatRange() = default;
explicit FloatRange( float minAndMax );
explicit FloatRange( float initStart, float initEnd );
explicit FloatRange( const char* asText );
~FloatRan... | 23.129032 | 66 | 0.72106 | yixuan-wei |
1f3596186c8cea10fc791379045527980248c44c | 817 | cpp | C++ | Chapter1/Section1.5/numtri/numtri.cpp | suzyz/USACO | c7f58850f20693fedfc30ef462f898d20d002396 | [
"MIT"
] | null | null | null | Chapter1/Section1.5/numtri/numtri.cpp | suzyz/USACO | c7f58850f20693fedfc30ef462f898d20d002396 | [
"MIT"
] | null | null | null | Chapter1/Section1.5/numtri/numtri.cpp | suzyz/USACO | c7f58850f20693fedfc30ef462f898d20d002396 | [
"MIT"
] | null | null | null | /*
ID: suzyzha1
PROG: numtri
LANG: C++
*/
#include <iostream>
#include <fstream>
#include <cstring>
using namespace std;
const int maxn = 1010;
int n;
int tri[maxn][maxn];
int max_sum[maxn][maxn];
void dfs(int row,int col)
{
if(max_sum[row][col]>=0) return;
if(row==n-1)
{
max_sum[row][col]=tri[row][col];
... | 14.589286 | 56 | 0.618115 | suzyz |
1f36a77bb5faea0d972992b2527dbe14682829f3 | 2,218 | cpp | C++ | libraries/wtf-gcit/src/module.cpp | flynnwt/espgc | a538c8e6ef5dc42a104b79b222bffa1a9364d11e | [
"MIT"
] | 9 | 2016-08-21T14:42:54.000Z | 2020-11-04T10:13:19.000Z | libraries/wtf-gcit/src/module.cpp | flynnwt/espgc | a538c8e6ef5dc42a104b79b222bffa1a9364d11e | [
"MIT"
] | null | null | null | libraries/wtf-gcit/src/module.cpp | flynnwt/espgc | a538c8e6ef5dc42a104b79b222bffa1a9364d11e | [
"MIT"
] | 2 | 2017-12-10T19:52:57.000Z | 2021-03-15T12:13:58.000Z | #include "module.h"
// for true gc, must have 1 eth/wifi and 1 ir/serial/relay
Module::Module(GCIT *p, unsigned int a, ModuleType t) {
int i;
parent = p;
type = t;
address = a;
numConnectors = 0;
for (i = 0; i < MODULE_MAX_CONNECTORS; i++) {
connectors[i] = NULL;
}
switch (type) {
case ModuleTyp... | 25.494253 | 120 | 0.640216 | flynnwt |
1f37974613799c4cd991138584048575b97ee9ce | 398 | cpp | C++ | TP3/Projectile.cpp | JonathanRN/TP3_prog | 194c364bf81cd8f83af184af8a49acbdf36b19ea | [
"MIT"
] | null | null | null | TP3/Projectile.cpp | JonathanRN/TP3_prog | 194c364bf81cd8f83af184af8a49acbdf36b19ea | [
"MIT"
] | null | null | null | TP3/Projectile.cpp | JonathanRN/TP3_prog | 194c364bf81cd8f83af184af8a49acbdf36b19ea | [
"MIT"
] | null | null | null | #include "Projectile.h"
using namespace tp3;
tp3::Projectile::Projectile(const Vector2f& position, const Color& couleur, const int animationMaximale)
: ANIMATION_MAXIMALE(animationMaximale),
animation(0), actif(false)
{
setPosition(position);
setColor(couleur);
}
Projectile::~Projectile()
{
}
void tp3::Projectil... | 15.92 | 104 | 0.738693 | JonathanRN |
1f39a8900751f84fe1e7319942122594d03bfbf8 | 238 | cpp | C++ | solutions/119.pascals-triangle-ii.241467849.ac.cpp | satu0king/Leetcode-Solutions | 2edff60d76c2898d912197044f6284efeeb34119 | [
"MIT"
] | 78 | 2020-10-22T11:31:53.000Z | 2022-02-22T13:27:49.000Z | solutions/119.pascals-triangle-ii.241467849.ac.cpp | satu0king/Leetcode-Solutions | 2edff60d76c2898d912197044f6284efeeb34119 | [
"MIT"
] | null | null | null | solutions/119.pascals-triangle-ii.241467849.ac.cpp | satu0king/Leetcode-Solutions | 2edff60d76c2898d912197044f6284efeeb34119 | [
"MIT"
] | 26 | 2020-10-23T15:10:44.000Z | 2021-11-07T16:13:50.000Z | class Solution {
public:
vector<int> getRow(int rowIndex) {
vector<int> DP(rowIndex + 1);
DP[0] = 1;
while (rowIndex--) {
for (int i = DP.size() - 1; i > 0; i--)
DP[i] += DP[i - 1];
}
return DP;
}
};
| 18.307692 | 45 | 0.478992 | satu0king |
1f3ec6ed763ba4ea345265f4236e89ad73044c73 | 16,091 | cpp | C++ | units/hw.cpp | rgbond/zapping-ants | 9f96fa07b4caacce91f5b0b4acd5235af1e2a67b | [
"Apache-2.0"
] | 3 | 2016-11-16T18:28:42.000Z | 2020-01-10T09:49:12.000Z | units/hw.cpp | rgbond/zapping-ants | 9f96fa07b4caacce91f5b0b4acd5235af1e2a67b | [
"Apache-2.0"
] | null | null | null | units/hw.cpp | rgbond/zapping-ants | 9f96fa07b4caacce91f5b0b4acd5235af1e2a67b | [
"Apache-2.0"
] | null | null | null | /*
* Copyright 2016 Robert Bond
*
* 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 ... | 24.793529 | 89 | 0.57181 | rgbond |
1f3fc0f7be93156f2a4b34b7d9fcba362be7ce6d | 2,958 | cpp | C++ | Code/Avernakis Nodejs/Avernakis-Nodejs/Private/ImgCodec.cpp | qber-soft/Ave-Nodejs | 80b843d22b0e0620b6a5af329a851ce9921d8d85 | [
"MIT"
] | 39 | 2022-03-25T17:21:17.000Z | 2022-03-31T18:24:12.000Z | Code/Avernakis Nodejs/Avernakis-Nodejs/Private/ImgCodec.cpp | qber-soft/Ave-Nodejs | 80b843d22b0e0620b6a5af329a851ce9921d8d85 | [
"MIT"
] | 1 | 2022-03-20T00:35:07.000Z | 2022-03-20T01:06:20.000Z | Code/Avernakis Nodejs/Avernakis-Nodejs/Private/ImgCodec.cpp | qber-soft/Ave-Nodejs | 80b843d22b0e0620b6a5af329a851ce9921d8d85 | [
"MIT"
] | 3 | 2022-03-26T01:08:06.000Z | 2022-03-27T23:12:40.000Z | #include "StdAfx.h"
#include "ImgCodec.h"
#include "ImgCommon.h"
#include "ImgImage.h"
#define ThisMethod($x) &ImgCodec::$x
#define AutoAddMethod($x, ...) AddMethod<__VA_ARGS__>( #$x, ThisMethod( $x ) )
#define MakeThisFunc($x) MakeFunc( this, &ImgCodec::$x )
namespace Nav
{
namespace
{
ObjectRegister<ImgCodec>... | 28.171429 | 96 | 0.669371 | qber-soft |
1f3fd874f2da74209926821372fe62724ed7f302 | 253,956 | inl | C++ | src/fonts/stb_font_times_bold_47_latin_ext.inl | stetre/moonfonts | 5c8010c02ea62edcf42902e09478b0cd14af56ea | [
"MIT"
] | 3 | 2018-03-13T12:51:57.000Z | 2021-10-11T11:32:17.000Z | src/fonts/stb_font_times_bold_47_latin_ext.inl | stetre/moonfonts | 5c8010c02ea62edcf42902e09478b0cd14af56ea | [
"MIT"
] | null | null | null | src/fonts/stb_font_times_bold_47_latin_ext.inl | stetre/moonfonts | 5c8010c02ea62edcf42902e09478b0cd14af56ea | [
"MIT"
] | null | null | null | // Font generated by stb_font_inl_generator.c (4/1 bpp)
//
// Following instructions show how to use the only included font, whatever it is, in
// a generic way so you can replace it with any other font by changing the include.
// To use multiple fonts, replace STB_SOMEFONT_* below with STB_FONT_times_bold_47_latin... | 71.136134 | 131 | 0.819571 | stetre |
1f4861b660c7ac97c5873e63c199efa7e74de58e | 732 | cc | C++ | src/ipcz/node_name.cc | krockot/ipcz | 6a6ebe43c2cb86882b0df9bf888dc5d34037f015 | [
"BSD-3-Clause"
] | null | null | null | src/ipcz/node_name.cc | krockot/ipcz | 6a6ebe43c2cb86882b0df9bf888dc5d34037f015 | [
"BSD-3-Clause"
] | null | null | null | src/ipcz/node_name.cc | krockot/ipcz | 6a6ebe43c2cb86882b0df9bf888dc5d34037f015 | [
"BSD-3-Clause"
] | null | null | null | // Copyright 2022 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 "ipcz/node_name.h"
#include <cinttypes>
#include <cstdint>
#include <cstdio>
#include <string>
#include <type_traits>
#include "third_party/abs... | 24.4 | 78 | 0.693989 | krockot |
1f4f0cdbbf93f934fe37d224274fc9cbf041f2c3 | 1,556 | cc | C++ | src/platform/unix_thread.cc | AnthonyBrunasso/test_games | 31354d2bf95aae9a880e7292bc78ad8577b3f09c | [
"MIT"
] | null | null | null | src/platform/unix_thread.cc | AnthonyBrunasso/test_games | 31354d2bf95aae9a880e7292bc78ad8577b3f09c | [
"MIT"
] | null | null | null | src/platform/unix_thread.cc | AnthonyBrunasso/test_games | 31354d2bf95aae9a880e7292bc78ad8577b3f09c | [
"MIT"
] | 2 | 2019-11-12T23:15:18.000Z | 2020-01-15T17:49:27.000Z | #include "thread.h"
#include <pthread.h>
#include <sched.h>
#include <climits>
#include <cstddef>
static_assert(offsetof(Thread, id) == 0 &&
sizeof(Thread::id) >= sizeof(pthread_t),
"Thread_t layout must be compatible with pthread_t");
namespace platform
{
void*
pthread_shim(void* pthrea... | 14.961538 | 67 | 0.647172 | AnthonyBrunasso |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.