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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
a4a3f959d7315d280fa90acc6d0289d2cce27e5e | 1,028 | cpp | C++ | src/Math/PathFinding/IndexedPriorityQueue.cpp | scemino/EnggeFramework | 6526bff3c4e6e9ed2cad102f1e3a37d3ce19ef37 | [
"MIT"
] | 2 | 2021-11-02T06:47:50.000Z | 2021-12-16T09:55:06.000Z | src/Math/PathFinding/IndexedPriorityQueue.cpp | scemino/EnggeFramework | 6526bff3c4e6e9ed2cad102f1e3a37d3ce19ef37 | [
"MIT"
] | 2 | 2021-02-07T00:04:30.000Z | 2021-02-09T23:23:21.000Z | src/Math/PathFinding/IndexedPriorityQueue.cpp | scemino/EnggeFramework | 6526bff3c4e6e9ed2cad102f1e3a37d3ce19ef37 | [
"MIT"
] | null | null | null | #include <utility>
#include "IndexedPriorityQueue.h"
namespace ngf {
IndexedPriorityQueue::IndexedPriorityQueue(std::vector<float> &keys)
: _keys(keys) {
}
void IndexedPriorityQueue::insert(int index) {
_data.push_back(index);
reorderUp();
}
int IndexedPriorityQueue::pop() {
int r = _data[0];
_data[0] = ... | 20.156863 | 68 | 0.600195 | scemino |
a4b2aba75b02c06c37d5e6fe0930b469e1916cd7 | 1,540 | cpp | C++ | 2019.7.2/D_Persona5.cpp | wang2470616413/MyCode | 23f4d6c12d0475e67e892ce39745bcada9c10197 | [
"MIT"
] | 1 | 2019-04-20T09:52:50.000Z | 2019-04-20T09:52:50.000Z | 2019.7.2/D_Persona5.cpp | wang2470616413/MyCode | 23f4d6c12d0475e67e892ce39745bcada9c10197 | [
"MIT"
] | null | null | null | 2019.7.2/D_Persona5.cpp | wang2470616413/MyCode | 23f4d6c12d0475e67e892ce39745bcada9c10197 | [
"MIT"
] | null | null | null | #include<stdio.h>
#include<string.h>
#define ll long long
#define mmset(a,b) memset(a,b,sizeof(a))
#define error printf("error\n")
using namespace std;
const int N = 1e6 + 10;
const ll MOD = 1e9 + 7;
ll F[N];
ll data[N];
ll res = 1;
ll aux = 0;
void init(ll p)
{
F[0] = 1;
for(int i = 1;i <= p;i++)
F[i]... | 16.210526 | 54 | 0.416234 | wang2470616413 |
8a54e356bad832914b1ba3bc3cb2424e0312b24f | 753 | cpp | C++ | Sources/Scene/Component/SyrinxRenderer.cpp | LeptusHe/SyrinxEngine | 5ecdfdd53eb421bdfba61ed183a1ac688d117b97 | [
"MIT"
] | 3 | 2020-04-24T07:58:52.000Z | 2021-11-17T11:08:46.000Z | Sources/Scene/Component/SyrinxRenderer.cpp | LeptusHe/SyrinxEngine | 5ecdfdd53eb421bdfba61ed183a1ac688d117b97 | [
"MIT"
] | null | null | null | Sources/Scene/Component/SyrinxRenderer.cpp | LeptusHe/SyrinxEngine | 5ecdfdd53eb421bdfba61ed183a1ac688d117b97 | [
"MIT"
] | 2 | 2019-10-02T01:49:46.000Z | 2021-11-16T15:25:59.000Z | #include "Component/SyrinxRenderer.h"
#include <Common/SyrinxAssert.h>
namespace Syrinx {
Renderer::Renderer() : mMesh(nullptr), mMaterial(nullptr)
{
SYRINX_ENSURE(!mMesh);
SYRINX_ENSURE(!mMaterial);
}
void Renderer::setMesh(Mesh *mesh)
{
mMesh = mesh;
SYRINX_ENSURE(mMesh);
SYRIN... | 16.369565 | 58 | 0.652058 | LeptusHe |
8a5556acd077257946ce0108e924e6374f0a176b | 9,252 | cpp | C++ | lib/MagnetRTD/MagnetRTD.cpp | greenspaceexplorer/MagnetHSK | 41ab4758a21ecf7f980032ee0f2f569b120f8ebf | [
"MIT"
] | null | null | null | lib/MagnetRTD/MagnetRTD.cpp | greenspaceexplorer/MagnetHSK | 41ab4758a21ecf7f980032ee0f2f569b120f8ebf | [
"MIT"
] | null | null | null | lib/MagnetRTD/MagnetRTD.cpp | greenspaceexplorer/MagnetHSK | 41ab4758a21ecf7f980032ee0f2f569b120f8ebf | [
"MIT"
] | null | null | null | #include "MagnetRTD.h"
MagnetRTD::MagnetRTD(SPIClass *mySPI, uint8_t clock, uint8_t chip_select){
// Set internal variables
thisSPI = mySPI;
clk = clock;
cs = chip_select;
}
//------------------------------------------------------------------------------
MagnetRTD::~MagnetRTD(){}
//--------... | 27.535714 | 88 | 0.540208 | greenspaceexplorer |
8a57390a40c4eecd165993b213e765472047d571 | 10,553 | cpp | C++ | src/hash_value.cpp | MiguelBel/natalie | 8439d45982b0edb14e51cd1958a865bb7f540b2d | [
"MIT"
] | null | null | null | src/hash_value.cpp | MiguelBel/natalie | 8439d45982b0edb14e51cd1958a865bb7f540b2d | [
"MIT"
] | null | null | null | src/hash_value.cpp | MiguelBel/natalie | 8439d45982b0edb14e51cd1958a865bb7f540b2d | [
"MIT"
] | null | null | null | #include "natalie.hpp"
namespace Natalie {
// this is used by the hashmap library and assumes that obj->env has been set
size_t HashValue::hash(const void *key) {
return static_cast<const HashValue::Key *>(key)->hash;
}
// this is used by the hashmap library to compare keys
int HashValue::compare(const void *a, ... | 32.773292 | 111 | 0.548659 | MiguelBel |
8a5c3c9f98f315765a9fd560976ac5d593fff95e | 17,111 | cpp | C++ | NULL Engine/Source/E_Inspector.cpp | xsiro/NULL_Engine | bb8da3de7f507b27d895cf8066a03faa115ff3c6 | [
"MIT"
] | null | null | null | NULL Engine/Source/E_Inspector.cpp | xsiro/NULL_Engine | bb8da3de7f507b27d895cf8066a03faa115ff3c6 | [
"MIT"
] | null | null | null | NULL Engine/Source/E_Inspector.cpp | xsiro/NULL_Engine | bb8da3de7f507b27d895cf8066a03faa115ff3c6 | [
"MIT"
] | null | null | null | #include "MathGeoTransform.h"
#include "Color.h"
#include "Application.h"
#include "M_Renderer3D.h"
#include "M_Editor.h"
#include "GameObject.h"
#include "Component.h"
#include "C_Transform.h"
#include "C_Mesh.h"
#include "C_Material.h"
#include "C_Light.h"
#include "C_Camera.h"
#include "E_Inspector.h"
#define MA... | 28.143092 | 176 | 0.664952 | xsiro |
8a5f3971feb316dccd0cd8ae58e8d869d2235c68 | 317 | cpp | C++ | shared/test/common/helpers/kernel_binary_helper_hash_value.cpp | mattcarter2017/compute-runtime | 1f52802aac02c78c19d5493dd3a2402830bbe438 | [
"Intel",
"MIT"
] | null | null | null | shared/test/common/helpers/kernel_binary_helper_hash_value.cpp | mattcarter2017/compute-runtime | 1f52802aac02c78c19d5493dd3a2402830bbe438 | [
"Intel",
"MIT"
] | null | null | null | shared/test/common/helpers/kernel_binary_helper_hash_value.cpp | mattcarter2017/compute-runtime | 1f52802aac02c78c19d5493dd3a2402830bbe438 | [
"Intel",
"MIT"
] | null | null | null | /*
* Copyright (C) 2020-2022 Intel Corporation
*
* SPDX-License-Identifier: MIT
*
*/
#include "shared/test/common/helpers/kernel_binary_helper.h"
const std::string KernelBinaryHelper::BUILT_INS("7998916142903730155");
const std::string KernelBinaryHelper::BUILT_INS_WITH_IMAGES("16526264370178379440_images");
| 26.416667 | 91 | 0.785489 | mattcarter2017 |
8a63695aa047f3e4cb64fc8067433206277554de | 794 | cpp | C++ | examples/src/vertices.cpp | 311Volt/axxegro | 61d7a1fb48f9bb581e0f4171d58499cf8c543728 | [
"MIT"
] | null | null | null | examples/src/vertices.cpp | 311Volt/axxegro | 61d7a1fb48f9bb581e0f4171d58499cf8c543728 | [
"MIT"
] | null | null | null | examples/src/vertices.cpp | 311Volt/axxegro | 61d7a1fb48f9bb581e0f4171d58499cf8c543728 | [
"MIT"
] | null | null | null |
#include <axxegro/axxegro.hpp>
/**
* @file
*
* a quick example on how to create custom vertex declarations
* and use them to draw primitives
*/
struct MyVertex {
float x,y;
float u,v;
};
struct MyVertexDecl: public al::CustomVertexDecl<MyVertex> {
AXXEGRO_VERTEX_ATTR_BEGIN()
AXXEGRO_VERTEX_ATTR(x, ALLEGRO... | 19.365854 | 75 | 0.695214 | 311Volt |
8a6e329244309279560096772ea5c94eb91d0c85 | 524 | hpp | C++ | include/RED4ext/Scripting/Natives/Generated/ink/StreetSignsLayer.hpp | jackhumbert/RED4ext.SDK | 2c55eccb83beabbbe02abae7945af8efce638fca | [
"MIT"
] | 42 | 2020-12-25T08:33:00.000Z | 2022-03-22T14:47:07.000Z | include/RED4ext/Scripting/Natives/Generated/ink/StreetSignsLayer.hpp | jackhumbert/RED4ext.SDK | 2c55eccb83beabbbe02abae7945af8efce638fca | [
"MIT"
] | 38 | 2020-12-28T22:36:06.000Z | 2022-02-16T11:25:47.000Z | include/RED4ext/Scripting/Natives/Generated/ink/StreetSignsLayer.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/ink/WorldFluffLayer.hpp>
namespace RED4ext
{
namespace ink {
struct StreetSignsLayer : ink::WorldFluffLayer
{
static constexpr const char* NAME = ... | 23.818182 | 70 | 0.751908 | jackhumbert |
8a7302d7adb35de5efc2c033185697fdc3d159ff | 2,586 | hpp | C++ | src/SingleLayerOptics/src/BSDFLayerMaker.hpp | bakonyidani/Windows-CalcEngine | afa4c4a9f88199c6206af8bc994a073931fc8b91 | [
"BSD-3-Clause-LBNL"
] | null | null | null | src/SingleLayerOptics/src/BSDFLayerMaker.hpp | bakonyidani/Windows-CalcEngine | afa4c4a9f88199c6206af8bc994a073931fc8b91 | [
"BSD-3-Clause-LBNL"
] | null | null | null | src/SingleLayerOptics/src/BSDFLayerMaker.hpp | bakonyidani/Windows-CalcEngine | afa4c4a9f88199c6206af8bc994a073931fc8b91 | [
"BSD-3-Clause-LBNL"
] | null | null | null | #ifndef BSDFLAYERMAKER_H
#define BSDFLAYERMAKER_H
#include <memory>
namespace SingleLayerOptics
{
enum class DistributionMethod
{
UniformDiffuse,
DirectionalDiffuse
};
class ICellDescription;
class CMaterial;
class CBSDFHemisphere;
class CBSDFLayer;
class CBaseCell;
... | 35.424658 | 95 | 0.518948 | bakonyidani |
8a7fa64f68af68fa23cb3485066944c421347107 | 4,200 | cpp | C++ | src/concat_filter.cpp | shotahirama/velodyne_concat_filter | 999e4c1ebeef9918a7ae2dc568eda1bee858a502 | [
"Apache-2.0"
] | 1 | 2020-01-02T10:49:58.000Z | 2020-01-02T10:49:58.000Z | src/concat_filter.cpp | shotahirama/velodyne_concat_filter | 999e4c1ebeef9918a7ae2dc568eda1bee858a502 | [
"Apache-2.0"
] | null | null | null | src/concat_filter.cpp | shotahirama/velodyne_concat_filter | 999e4c1ebeef9918a7ae2dc568eda1bee858a502 | [
"Apache-2.0"
] | 1 | 2020-01-02T10:49:31.000Z | 2020-01-02T10:49:31.000Z | /*
* Copyright 2019 Shota Hirama
*
* 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... | 37.5 | 186 | 0.683333 | shotahirama |
8a820fcfc3bd86b8e71d8ad96dea49c5d181718b | 1,638 | hpp | C++ | jitstmt/StmtMatmul.hpp | cjang/chai | 7faba752cc4491d1b30590abef21edc4efffa0f6 | [
"Unlicense"
] | 11 | 2015-06-12T19:54:14.000Z | 2021-11-26T10:45:18.000Z | jitstmt/StmtMatmul.hpp | cjang/chai | 7faba752cc4491d1b30590abef21edc4efffa0f6 | [
"Unlicense"
] | null | null | null | jitstmt/StmtMatmul.hpp | cjang/chai | 7faba752cc4491d1b30590abef21edc4efffa0f6 | [
"Unlicense"
] | null | null | null | // Copyright 2012 Chris Jang (fastkor@gmail.com) under The Artistic License 2.0
#ifndef _CHAI_STMT_MATMUL_HPP_
#define _CHAI_STMT_MATMUL_HPP_
#include "VisitAst.hpp"
#include "StmtMatmulBase.hpp"
namespace chai_internal {
////////////////////////////////////////
// matrix multiplication
// (all cases except outer p... | 24.818182 | 79 | 0.675214 | cjang |
8a8952a551dfb9ad624e5e2246991539738e0ecc | 2,604 | cxx | C++ | AD/ADrec/AliADQAParam.cxx | AllaMaevskaya/AliRoot | c53712645bf1c7d5f565b0d3228e3a6b9b09011a | [
"BSD-3-Clause"
] | null | null | null | AD/ADrec/AliADQAParam.cxx | AllaMaevskaya/AliRoot | c53712645bf1c7d5f565b0d3228e3a6b9b09011a | [
"BSD-3-Clause"
] | 2 | 2016-11-25T08:40:56.000Z | 2019-10-11T12:29:29.000Z | AD/ADrec/AliADQAParam.cxx | AllaMaevskaya/AliRoot | c53712645bf1c7d5f565b0d3228e3a6b9b09011a | [
"BSD-3-Clause"
] | null | null | null | /**************************************************************************
* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
* *
* Author: The ALICE Off-line Project. *
* Contributors ... | 30.635294 | 79 | 0.637097 | AllaMaevskaya |
8a8fa5d0fc42b3a992a444ac8dcb44420a2cd8ac | 20,359 | cpp | C++ | language-extensions/python/test/src/PythonExecuteTests.cpp | rabryst/sql-server-language-extensions | a6a25890d1c3e449537eaaafab706c6c1e8b51cb | [
"MIT"
] | 82 | 2019-05-24T00:36:57.000Z | 2022-02-21T23:51:46.000Z | language-extensions/python/test/src/PythonExecuteTests.cpp | rabryst/sql-server-language-extensions | a6a25890d1c3e449537eaaafab706c6c1e8b51cb | [
"MIT"
] | 20 | 2019-07-05T06:12:28.000Z | 2022-03-31T20:48:30.000Z | language-extensions/python/test/src/PythonExecuteTests.cpp | rabryst/sql-server-language-extensions | a6a25890d1c3e449537eaaafab706c6c1e8b51cb | [
"MIT"
] | 35 | 2019-05-24T01:44:07.000Z | 2022-02-28T13:29:44.000Z | //*************************************************************************************************
// Copyright (C) Microsoft Corporation.
// 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)
//
// @File: Pyt... | 33.37541 | 109 | 0.707599 | rabryst |
8a945dfae0f130f1327ae1476642b45a88b5c71a | 597 | hpp | C++ | include/epiworld/location-bones.hpp | gvegayon/world-epi | 197d8cc0e8fb86c06ec1ac2df6316e89d4857218 | [
"MIT"
] | null | null | null | include/epiworld/location-bones.hpp | gvegayon/world-epi | 197d8cc0e8fb86c06ec1ac2df6316e89d4857218 | [
"MIT"
] | null | null | null | include/epiworld/location-bones.hpp | gvegayon/world-epi | 197d8cc0e8fb86c06ec1ac2df6316e89d4857218 | [
"MIT"
] | null | null | null | #ifndef EPIWORLD_LOCATION_BONES_HPP
#define EPIWORLD_LOCATION_BONES_HPP
template<typename TSeq>
class Person;
template<typename TSeq>
class Location {
private:
int capacity;
std::string location_name;
int id;
std::vector< Person<TSeq> * >;
/**
* @brief Spatial location parameters
... | 15.710526 | 41 | 0.633166 | gvegayon |
8a9dba15b91951c2a56486d36a5d2695ef2f2944 | 244 | cpp | C++ | fillingdiamonds.cpp | AaryamanBhardwaj/Codeforces-Solutions | d33c75bfa493b16a3c1dfc67e52b578a40872199 | [
"MIT"
] | 1 | 2021-04-29T20:06:55.000Z | 2021-04-29T20:06:55.000Z | fillingdiamonds.cpp | AaryamanBhardwaj/Competitive-Programming-Solutions | d33c75bfa493b16a3c1dfc67e52b578a40872199 | [
"MIT"
] | null | null | null | fillingdiamonds.cpp | AaryamanBhardwaj/Competitive-Programming-Solutions | d33c75bfa493b16a3c1dfc67e52b578a40872199 | [
"MIT"
] | null | null | null | #include<bits/stdc++.h>
using namespace std;
int main()
{
ios_base::sync_with_stdio;
cin.tie(NULL);
cout.tie(NULL);
int t,n;
cin>>t;
for(int i=0;i<t;i++)
{
cin>>n;
cout<<n<<endl;
}
} | 16.266667 | 31 | 0.479508 | AaryamanBhardwaj |
8aa27cdb4afdade9c5a921ddd8fcc678afff5575 | 8,236 | cpp | C++ | src/Services/RenderService/DecoderRenderImageLoader.cpp | irov/Mengine | b76e9f8037325dd826d4f2f17893ac2b236edad8 | [
"MIT"
] | 39 | 2016-04-21T03:25:26.000Z | 2022-01-19T14:16:38.000Z | src/Services/RenderService/DecoderRenderImageLoader.cpp | irov/Mengine | b76e9f8037325dd826d4f2f17893ac2b236edad8 | [
"MIT"
] | 23 | 2016-06-28T13:03:17.000Z | 2022-02-02T10:11:54.000Z | src/Services/RenderService/DecoderRenderImageLoader.cpp | irov/Mengine | b76e9f8037325dd826d4f2f17893ac2b236edad8 | [
"MIT"
] | 14 | 2016-06-22T20:45:37.000Z | 2021-07-05T12:25:19.000Z | #include "DecoderRenderImageLoader.h"
#include "Interface/PrefetcherServiceInterface.h"
#include "Interface/CodecServiceInterface.h"
#include "Interface/MemoryServiceInterface.h"
#include "Kernel/Logger.h"
#include "Kernel/DocumentHelper.h"
#include "Kernel/FileStreamHelper.h"
#include "Kernel/Assertion.h"
#include "... | 35.65368 | 184 | 0.559131 | irov |
8aac52f4140b0956ea099c9c6df0d59fb4333113 | 7,572 | hpp | C++ | include/MAS.hpp | arqueffe/cmapf-solver | 30f38f72ae278bdc6ca5cc6efc8cd53dbf13f119 | [
"MIT"
] | null | null | null | include/MAS.hpp | arqueffe/cmapf-solver | 30f38f72ae278bdc6ca5cc6efc8cd53dbf13f119 | [
"MIT"
] | 1 | 2021-07-29T15:13:42.000Z | 2021-07-29T15:13:42.000Z | include/MAS.hpp | arqueffe/cmapf-solver | 30f38f72ae278bdc6ca5cc6efc8cd53dbf13f119 | [
"MIT"
] | null | null | null | /* Copyright (c) 2021 Arthur Queffelec
*
* 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, modify, merge, ... | 37.86 | 120 | 0.612388 | arqueffe |
8aad8ca5d1849658a70c74ae1cc57250cc6efad7 | 3,350 | cpp | C++ | test/unit/testEkf.cpp | tmcg0/bioslam | d59f07733cb3a9a1de8e6dea4b1fb745d706da09 | [
"MIT"
] | 6 | 2021-01-26T19:31:46.000Z | 2022-03-10T15:33:49.000Z | test/unit/testEkf.cpp | tmcg0/bioslam | d59f07733cb3a9a1de8e6dea4b1fb745d706da09 | [
"MIT"
] | 8 | 2021-01-26T16:12:22.000Z | 2021-08-12T18:39:36.000Z | test/unit/testEkf.cpp | tmcg0/bioslam | d59f07733cb3a9a1de8e6dea4b1fb745d706da09 | [
"MIT"
] | 1 | 2021-05-02T18:47:42.000Z | 2021-05-02T18:47:42.000Z | // -------------------------------------------------------------------- //
// (c) Copyright 2021 Massachusetts Institute of Technology //
// Author: Tim McGrath //
// All rights reserved. See LICENSE file for license information. //
// -----------------... | 53.174603 | 207 | 0.61791 | tmcg0 |
8aae41844ee5e21fe31f4a1c2e2131d05b24499d | 4,686 | cpp | C++ | shaders/src/sib_color_hls_adjust.cpp | caron/sitoa | 52a0a4b35f51bccb6223a8206d04b40edc80071c | [
"Apache-2.0"
] | 34 | 2018-02-01T16:13:48.000Z | 2021-07-16T07:37:47.000Z | shaders/src/sib_color_hls_adjust.cpp | 625002974/sitoa | 46b7de8e3cf2e2c4cbc6bc391f11181cbac1a589 | [
"Apache-2.0"
] | 72 | 2018-02-16T17:30:41.000Z | 2021-11-22T11:41:45.000Z | shaders/src/sib_color_hls_adjust.cpp | 625002974/sitoa | 46b7de8e3cf2e2c4cbc6bc391f11181cbac1a589 | [
"Apache-2.0"
] | 15 | 2018-02-15T15:36:58.000Z | 2021-04-14T03:54:25.000Z | /************************************************************************************************************************************
Copyright 2017 Autodesk, Inc. 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 ... | 28.748466 | 134 | 0.611182 | caron |
8ab23b0cdc6b4efac8499f43265a76b33cf15f04 | 4,638 | cpp | C++ | SGPLibraryCode/modules/sgp_core/common/sgp_Colour.cpp | phoenixzz/VoronoiMapGen | 5afd852f8bb0212baba9d849178eb135f62df903 | [
"MIT"
] | 11 | 2017-03-03T03:31:15.000Z | 2019-03-01T17:09:12.000Z | SGPLibraryCode/modules/sgp_core/common/sgp_Colour.cpp | phoenixzz/VoronoiMapGen | 5afd852f8bb0212baba9d849178eb135f62df903 | [
"MIT"
] | null | null | null | SGPLibraryCode/modules/sgp_core/common/sgp_Colour.cpp | phoenixzz/VoronoiMapGen | 5afd852f8bb0212baba9d849178eb135f62df903 | [
"MIT"
] | 2 | 2017-03-03T03:31:17.000Z | 2021-05-27T21:50:43.000Z | namespace ColourHelpers
{
static uint8 floatToUInt8 (const float n) noexcept
{
return n <= 0.0f ? 0 : (n >= 1.0f ? 255 : (uint8) (n * 255.0f));
}
}
Colour BLACKCOLOR(0,0,0);
Colour WHITECOLOR(255,255,255);
Colour REDCOLOR(255,0,0);
Colour GREENCOLOR(0,255,0);
Colour BLUECOLOR(0,0,255);
//=========... | 28.109091 | 138 | 0.614489 | phoenixzz |
8ab4082a9063f74963159b25e5eb8dd16bab086c | 21,375 | hpp | C++ | Nostra Utils/src/header/nostrautils/core/StdIncludes.hpp | Lehks/NostraUtils | ef1b2d492a1358775752a2a7621c714d86bf96b2 | [
"MIT"
] | 10 | 2018-01-07T01:00:11.000Z | 2021-09-16T14:08:45.000Z | NostraUtils/Nostra Utils/src/header/nostrautils/core/StdIncludes.hpp | Lehks/NostraEngine | 0d610dcd97ba482fd8f183795140c38728c3a6b3 | [
"MIT"
] | 107 | 2018-04-06T10:15:47.000Z | 2018-09-28T07:13:46.000Z | NostraUtils/Nostra Utils/src/header/nostrautils/core/StdIncludes.hpp | Lehks/NostraEngine | 0d610dcd97ba482fd8f183795140c38728c3a6b3 | [
"MIT"
] | null | null | null | #ifndef NOU_CORE_STD_INCLUDES_HPP
#define NOU_CORE_STD_INCLUDES_HPP
#include <cstddef>
#include <cstdint>
#include <type_traits>
#if __has_include("Config.hpp")
#include "Config.hpp"
#endif
/**
\file core/StdIncludes.hpp
\author Lukas Reichmann
\version 1.0.1
\since 1.0.0
\brief A file that should be included i... | 25.753012 | 110 | 0.744281 | Lehks |
8ac9405fe0d63a0013f2279d0aa7667fec81f3d8 | 13,292 | cpp | C++ | DBProCompiler/DBPCompiler/StructTable.cpp | domydev/Dark-Basic-Pro | 237fd8d859782cb27b9d5994f3c34bc5372b6c04 | [
"MIT"
] | 231 | 2018-01-28T00:06:56.000Z | 2022-03-31T21:39:56.000Z | DBProCompiler/DBPCompiler/StructTable.cpp | domydev/Dark-Basic-Pro | 237fd8d859782cb27b9d5994f3c34bc5372b6c04 | [
"MIT"
] | 9 | 2016-02-10T10:46:16.000Z | 2017-12-06T17:27:51.000Z | DBProCompiler/DBPCompiler/StructTable.cpp | domydev/Dark-Basic-Pro | 237fd8d859782cb27b9d5994f3c34bc5372b6c04 | [
"MIT"
] | 66 | 2018-01-28T21:54:52.000Z | 2022-02-16T22:50:57.000Z | // StructTable.cpp: implementation of the CStructTable class.
//
//////////////////////////////////////////////////////////////////////
// Common Includes
#define _CRT_SECURE_NO_DEPRECATE
#pragma warning(disable : 4996)
#include "StructTable.h"
// Special access to global pointer to struct table (so can do full scan)... | 24.167273 | 220 | 0.68703 | domydev |
8acc45474017e9ba601ad3c32c234ded9cf26a09 | 3,163 | hpp | C++ | Examples/OpcPlcManager/src/OpcPlcManagerComponent.hpp | Siddu96/CppExamples | 7b890a7e387a6a1504982f610f8a886312d49854 | [
"MIT"
] | 18 | 2019-02-22T14:24:19.000Z | 2022-01-24T12:41:41.000Z | Examples/OpcPlcManager/src/OpcPlcManagerComponent.hpp | Siddu96/CppExamples | 7b890a7e387a6a1504982f610f8a886312d49854 | [
"MIT"
] | 25 | 2019-06-12T12:20:38.000Z | 2022-02-09T07:57:28.000Z | Examples/OpcPlcManager/src/OpcPlcManagerComponent.hpp | Siddu96/CppExamples | 7b890a7e387a6a1504982f610f8a886312d49854 | [
"MIT"
] | 18 | 2019-03-14T08:41:33.000Z | 2022-01-27T01:36:18.000Z | #pragma once
#include "Arp/System/Core/Arp.h"
#include "Arp/System/Acf/ComponentBase.hpp"
#include "Arp/System/Acf/IApplication.hpp"
#include "Arp/Plc/Commons/Meta/MetaComponentBase.hpp"
#include "Arp/System/Commons/Logging.h"
#include "Arp/System/Commons/Threading/WorkerThread.hpp"
#include "Arp/Plc/Domain/Services/I... | 27.99115 | 119 | 0.69902 | Siddu96 |
8ace25887d25917d2cdfb7b38d3adfc887ad773d | 2,611 | cpp | C++ | tsplp/src/LinearVariableComposition.cpp | sebrockm/mtsp-vrp | 28955855d253f51fcb9397a0b22c6774f66f8d55 | [
"MIT"
] | null | null | null | tsplp/src/LinearVariableComposition.cpp | sebrockm/mtsp-vrp | 28955855d253f51fcb9397a0b22c6774f66f8d55 | [
"MIT"
] | null | null | null | tsplp/src/LinearVariableComposition.cpp | sebrockm/mtsp-vrp | 28955855d253f51fcb9397a0b22c6774f66f8d55 | [
"MIT"
] | null | null | null | #include "LinearVariableComposition.hpp"
#include "Variable.hpp"
#include <algorithm>
tsplp::LinearVariableComposition tsplp::operator*(double factor, LinearVariableComposition linearComp)
{
for (auto& coef : linearComp.m_coefficients)
coef *= factor;
linearComp.m_constant *= factor;
return line... | 30.011494 | 127 | 0.695136 | sebrockm |
8acfa0924b6d75af5d6a02806fa3522c2625cab5 | 12,242 | cpp | C++ | src/linereader.cpp | px86/hush | a8837bd99799757395417cf2ec48ebf56107b145 | [
"MIT"
] | null | null | null | src/linereader.cpp | px86/hush | a8837bd99799757395417cf2ec48ebf56107b145 | [
"MIT"
] | 2 | 2022-02-28T05:24:22.000Z | 2022-02-28T06:38:46.000Z | src/linereader.cpp | px86/hush | a8837bd99799757395417cf2ec48ebf56107b145 | [
"MIT"
] | null | null | null | #include <cctype>
#include <fstream>
#include <iostream>
#include <string>
#include <sys/ioctl.h>
#include <unistd.h>
#include "linereader.hpp"
// Word delimeters
const char *delimeters = " \t\n:-_'\"()[]{}";
TermHandle::TermHandle()
{
m_raw_mode_enabled = false;
// Save default termios.
if (tcgetattr(STDIN_F... | 26.440605 | 88 | 0.611746 | px86 |
8ad24bf0de4c4a683c9d6568ba43b091a7658883 | 3,500 | cpp | C++ | tests/operators/glob.cpp | shlyamster/sqlite_orm | a6c07b588a173f93c9a818371dd07c199442791d | [
"BSD-3-Clause"
] | 1 | 2021-12-27T15:23:13.000Z | 2021-12-27T15:23:13.000Z | tests/operators/glob.cpp | shlyamster/sqlite_orm | a6c07b588a173f93c9a818371dd07c199442791d | [
"BSD-3-Clause"
] | null | null | null | tests/operators/glob.cpp | shlyamster/sqlite_orm | a6c07b588a173f93c9a818371dd07c199442791d | [
"BSD-3-Clause"
] | null | null | null | /**
* Obtained from here https://www.tutlane.com/tutorial/sqlite/sqlite-glob-operator
*/
#include <sqlite_orm/sqlite_orm.h>
#include <catch2/catch.hpp>
#include <vector> // std::vector
#include <algorithm> // std::find_if, std::count
using namespace sqlite_orm;
TEST_CASE("Glob") {
struct Employee {
... | 39.325843 | 112 | 0.542 | shlyamster |
e9d732db267539b08f646e55fea4cf543af7a048 | 1,785 | cc | C++ | daemon/cmdline.cc | BenHuddleston/kv_engine | 78123c9aa2c2feb24b7c31eecc862bf2ed6325e4 | [
"MIT",
"BSD-3-Clause"
] | 104 | 2017-05-22T20:41:57.000Z | 2022-03-24T00:18:34.000Z | daemon/cmdline.cc | BenHuddleston/kv_engine | 78123c9aa2c2feb24b7c31eecc862bf2ed6325e4 | [
"MIT",
"BSD-3-Clause"
] | 3 | 2017-11-14T08:12:46.000Z | 2022-03-03T11:14:17.000Z | daemon/cmdline.cc | BenHuddleston/kv_engine | 78123c9aa2c2feb24b7c31eecc862bf2ed6325e4 | [
"MIT",
"BSD-3-Clause"
] | 71 | 2017-05-22T20:41:59.000Z | 2022-03-29T10:34:32.000Z | /*
* Copyright 2021-Present Couchbase, Inc.
*
* Use of this software is governed by the Business Source License included
* in the file licenses/BSL-Couchbase.txt. As of the Change Date specified
* in that file, in accordance with the Business Source License, use of this
* software will be governed by... | 25.869565 | 78 | 0.594398 | BenHuddleston |
e9d89881e76248c58c7aaedebc10be0c0534fc2e | 934 | cpp | C++ | LiberoEngine/src/IComponent.cpp | Kair0z/LiberoEngine2D | 79fb93d7bbb5f5e6b805da6826c64ffa520989c3 | [
"MIT"
] | null | null | null | LiberoEngine/src/IComponent.cpp | Kair0z/LiberoEngine2D | 79fb93d7bbb5f5e6b805da6826c64ffa520989c3 | [
"MIT"
] | null | null | null | LiberoEngine/src/IComponent.cpp | Kair0z/LiberoEngine2D | 79fb93d7bbb5f5e6b805da6826c64ffa520989c3 | [
"MIT"
] | null | null | null | #include "PCH.h"
#include "IComponent.h"
#include "LiberoECS_EntityMaster.h"
namespace Libero
{
const ComponentID IComponent::GetID() const
{
return m_ID;
}
const EntityID IComponent::GetOwner() const
{
return m_Owner;
}
IEntity* IComponent::GetOwnerEntity() const
{
if (!m_pEntityMasterRef) return nullp... | 17.622642 | 65 | 0.687366 | Kair0z |
e9defe1ad3ba9ffbca335060dec63dec5ac82040 | 1,671 | cpp | C++ | demboyz/netmessages/svc_getcvarvalue.cpp | juniorsgithub/demboyz | 73ba4f105e5670ab07334e867a3f57fb1de2ff55 | [
"MIT"
] | 42 | 2015-09-24T01:14:26.000Z | 2021-12-25T14:28:40.000Z | demboyz/netmessages/svc_getcvarvalue.cpp | juniorsgithub/demboyz | 73ba4f105e5670ab07334e867a3f57fb1de2ff55 | [
"MIT"
] | 3 | 2015-10-11T17:51:07.000Z | 2018-07-14T01:04:05.000Z | demboyz/netmessages/svc_getcvarvalue.cpp | juniorsgithub/demboyz | 73ba4f105e5670ab07334e867a3f57fb1de2ff55 | [
"MIT"
] | 12 | 2015-07-16T02:26:34.000Z | 2021-09-13T23:29:36.000Z |
#include "svc_getcvarvalue.h"
#include "base/bitfile.h"
#include "base/jsonfile.h"
namespace NetHandlers
{
bool SVC_GetCvarValue_BitRead_Internal(BitRead& bitbuf, SourceGameContext& context, NetMsg::SVC_GetCvarValue* data)
{
data->cookie = bitbuf.ReadSBitLong(32);
bitbuf.ReadString(data->cvarN... | 35.553191 | 130 | 0.681029 | juniorsgithub |
e9e063d717b44e77c25c9861ddaa856f0258c513 | 768 | cpp | C++ | source/circle.cpp | Vani4ka/programmiersprachen_aufgabenblatt_4 | f1171f2c274f2d503691932a20fd0a31bc2f6ded | [
"MIT"
] | null | null | null | source/circle.cpp | Vani4ka/programmiersprachen_aufgabenblatt_4 | f1171f2c274f2d503691932a20fd0a31bc2f6ded | [
"MIT"
] | null | null | null | source/circle.cpp | Vani4ka/programmiersprachen_aufgabenblatt_4 | f1171f2c274f2d503691932a20fd0a31bc2f6ded | [
"MIT"
] | null | null | null | #include <iostream>
#include "circle.hpp"
#include <math.h>
#include <cmath>
Circle::Circle(Vec2 const& c, float r):
center_{c},
radius_{r},
color_{{0.0}}
{}
Circle::Circle(Vec2 const& c, float r, Color const& col):
center_{c},
radius_{r},
color_{col}
{}
Vec2 Circle::getCenter() const {
return center_;
}
float Cir... | 17.066667 | 57 | 0.66276 | Vani4ka |
e9e254b9a80e5608f03e319cceb11e38dedd2cdb | 7,869 | hpp | C++ | src/include/libmath/CVector2.hpp | pedrospeixoto/sweet | 224248181e92615467c94b4e163596017811b5eb | [
"MIT"
] | null | null | null | src/include/libmath/CVector2.hpp | pedrospeixoto/sweet | 224248181e92615467c94b4e163596017811b5eb | [
"MIT"
] | null | null | null | src/include/libmath/CVector2.hpp | pedrospeixoto/sweet | 224248181e92615467c94b4e163596017811b5eb | [
"MIT"
] | 1 | 2019-03-27T01:17:59.000Z | 2019-03-27T01:17:59.000Z | /*
* Copyright 2010 Martin Schreiber
*
* 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 agree... | 26.674576 | 118 | 0.617868 | pedrospeixoto |
e9e4e388634e975ce798ef203d17f703330834ee | 2,061 | hpp | C++ | include/wui/theme/theme_impl.hpp | ud84/wui | 354260df9882c3e582c2a337a4bbb8be6e030e13 | [
"BSL-1.0"
] | 1 | 2021-12-18T16:38:30.000Z | 2021-12-18T16:38:30.000Z | include/wui/theme/theme_impl.hpp | ud84/wui | 354260df9882c3e582c2a337a4bbb8be6e030e13 | [
"BSL-1.0"
] | null | null | null | include/wui/theme/theme_impl.hpp | ud84/wui | 354260df9882c3e582c2a337a4bbb8be6e030e13 | [
"BSL-1.0"
] | null | null | null | //
// Copyright (c) 2021-2022 Anton Golovkov (udattsk at gmail dot com)
//
// 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)
//
// Official repository: https://github.com/ud84/wui
//
#pragma once
#include <wui/theme... | 31.707692 | 106 | 0.716157 | ud84 |
e9e5000faa8a69367e000cbb2c571573836a9eda | 1,179 | cpp | C++ | 30.substring-with-concatenation-of-all-words.161398902.ac.cpp | blossom2017/Leetcode | 8bcfc2d5eeb344a1489b0d84a9a81a9f5d61281b | [
"Apache-2.0"
] | null | null | null | 30.substring-with-concatenation-of-all-words.161398902.ac.cpp | blossom2017/Leetcode | 8bcfc2d5eeb344a1489b0d84a9a81a9f5d61281b | [
"Apache-2.0"
] | null | null | null | 30.substring-with-concatenation-of-all-words.161398902.ac.cpp | blossom2017/Leetcode | 8bcfc2d5eeb344a1489b0d84a9a81a9f5d61281b | [
"Apache-2.0"
] | null | null | null | class Solution {
public:
vector<int> findSubstring(string s, vector<string>& words) {
vector<int> ans;
if(s.length()==0||words.size()==0)return ans;
int len = words[0].length();
unordered_map<string,int>mp;
for(int i=0;i<words.size();i++)mp[words[i]]++;
... | 24.5625 | 64 | 0.336726 | blossom2017 |
e9e62f7c86944755dd76b27b8f9776653deb0b4c | 4,630 | cpp | C++ | SharedMemory_ut.cpp | jfern2011/SharedMemory | 4b481b437159b6832c3095b49a182088e801cb74 | [
"MIT"
] | null | null | null | SharedMemory_ut.cpp | jfern2011/SharedMemory | 4b481b437159b6832c3095b49a182088e801cb74 | [
"MIT"
] | null | null | null | SharedMemory_ut.cpp | jfern2011/SharedMemory | 4b481b437159b6832c3095b49a182088e801cb74 | [
"MIT"
] | null | null | null | #include <csignal>
#include <cstdlib>
#include <iostream>
#include <utility>
#include <vector>
#include "util.h"
#include "SharedMemory.h"
bool sigint_raised = false;
void sig_hander(int num)
{
std::printf("caught signal [%d]. exiting...\n", num);
std::fflush(stdout);
sigint_raised = true;
}
namespace SharedMe... | 17.471698 | 58 | 0.534125 | jfern2011 |
e9e702d3b43f911b547cbb1a5951222ae323cc31 | 645 | cpp | C++ | 1400/50/1459a.cpp | actium/cf | d7be128c3a9adb014a231a399f1c5f19e1ab2a38 | [
"Unlicense"
] | 1 | 2020-07-03T15:55:52.000Z | 2020-07-03T15:55:52.000Z | 1400/50/1459a.cpp | actium/cf | d7be128c3a9adb014a231a399f1c5f19e1ab2a38 | [
"Unlicense"
] | null | null | null | 1400/50/1459a.cpp | actium/cf | d7be128c3a9adb014a231a399f1c5f19e1ab2a38 | [
"Unlicense"
] | 3 | 2020-10-01T14:55:28.000Z | 2021-07-11T11:33:58.000Z | #include <iostream>
#include <string>
void answer(size_t v)
{
constexpr const char* s[3] = { "EQUAL", "BLUE", "RED" };
std::cout << s[v] << '\n';
}
void solve(const std::string& r, const std::string& b)
{
const size_t n = r.length();
unsigned kr = 0, kb = 0;
for (size_t i = 0; i < n; ++i) {
... | 14.333333 | 60 | 0.458915 | actium |
e9e9385a5a8431fa61ce9b7951c11f58af218a45 | 22,672 | cpp | C++ | nfc/src/DOOM/neo/renderer/RenderWorld_defs.cpp | 1337programming/leviathan | ca9a31b45c25fd23f361d67136ae5ac6b98d2628 | [
"Apache-2.0"
] | null | null | null | nfc/src/DOOM/neo/renderer/RenderWorld_defs.cpp | 1337programming/leviathan | ca9a31b45c25fd23f361d67136ae5ac6b98d2628 | [
"Apache-2.0"
] | null | null | null | nfc/src/DOOM/neo/renderer/RenderWorld_defs.cpp | 1337programming/leviathan | ca9a31b45c25fd23f361d67136ae5ac6b98d2628 | [
"Apache-2.0"
] | null | null | null | /*
===========================================================================
Doom 3 BFG Edition GPL Source Code
Copyright (C) 1993-2012 id Software LLC, a ZeniMax Media company.
This file is part of the Doom 3 BFG Edition GPL Source Code ("Doom 3 BFG Edition Source Code").
Doom 3 BFG Edition Source Code is free... | 32.067893 | 366 | 0.663065 | 1337programming |
e9edde5b50c9f3d89fa09922086f558dba2df378 | 645 | cpp | C++ | atcoder/abc089_c.cpp | Doarakko/competitive-programming | 5ae78c501664af08a3f16c81dbd54c68310adec8 | [
"MIT"
] | 1 | 2017-07-11T16:47:29.000Z | 2017-07-11T16:47:29.000Z | atcoder/abc089_c.cpp | Doarakko/Competitive-Programming | 10642a4bd7266c828dd2fc6e311284e86bdf2968 | [
"MIT"
] | 1 | 2021-02-07T09:10:26.000Z | 2021-02-07T09:10:26.000Z | atcoder/abc089_c.cpp | Doarakko/Competitive-Programming | 10642a4bd7266c828dd2fc6e311284e86bdf2968 | [
"MIT"
] | null | null | null | #include <iostream>
using namespace std;
int main(int argc, const char * argv[]) {
int N;
cin >> N;
char c;
int a[4] = {0, 0, 0, 0};
for (int i = 0; i < N; i++) {
cin >> c;
if (c == 'P') {
a[0] = 1;
}else if (c == 'W'){
a[1] = 1;
}else if (c ==... | 19.545455 | 41 | 0.316279 | Doarakko |
e9ef881c8e5e58f168fe21988c1c3f1530fcdc88 | 13,862 | cc | C++ | util/ssc_planner/src/ssc_planner/ssc_visualizer.cc | GallopWind/epsilon-learn | 74dc723fbc9797f3bd05bee30f6f9b9acceeec17 | [
"MIT"
] | 186 | 2020-09-22T10:57:57.000Z | 2022-03-30T15:52:15.000Z | util/ssc_planner/src/ssc_planner/ssc_visualizer.cc | Yufei-Wei/EPSILON | 155f1b1c4dae3ae29287d5b0b967d7d6ce230c73 | [
"MIT"
] | 16 | 2020-10-19T02:55:49.000Z | 2022-01-14T08:17:06.000Z | util/ssc_planner/src/ssc_planner/ssc_visualizer.cc | Yufei-Wei/EPSILON | 155f1b1c4dae3ae29287d5b0b967d7d6ce230c73 | [
"MIT"
] | 66 | 2020-09-28T01:51:57.000Z | 2022-03-25T08:39:04.000Z | /**
* @file ssc_visualizer.cc
* @author HKUST Aerial Robotics Group
* @brief implementation for ssc visualizer
* @version 0.1
* @date 2019-02
* @copyright Copyright (c) 2019
*/
#include "ssc_planner/ssc_visualizer.h"
namespace planning {
SscVisualizer::SscVisualizer(ros::NodeHandle nh, int node_id)
: nh_(... | 42.391437 | 80 | 0.65171 | GallopWind |
e9f04c5099fe4f84319edcfc163033dcf4bf189d | 11,669 | cpp | C++ | tests/Move_strategies_test.cpp | mjcaisse/CDT-plusplus | fa11dd19c806a96afbb48e406234e82cae62029a | [
"BSD-3-Clause"
] | null | null | null | tests/Move_strategies_test.cpp | mjcaisse/CDT-plusplus | fa11dd19c806a96afbb48e406234e82cae62029a | [
"BSD-3-Clause"
] | null | null | null | tests/Move_strategies_test.cpp | mjcaisse/CDT-plusplus | fa11dd19c806a96afbb48e406234e82cae62029a | [
"BSD-3-Clause"
] | null | null | null | /// Causal Dynamical Triangulations in C++ using CGAL
///
/// Copyright © 2015-2020 Adam Getchell
///
/// Checks that Metropolis algorithm runs properly.
/// @file Move_strategies_test.cpp
/// @brief Tests for the Metropolis-Hastings algorithm
/// @author Adam Getchell
#include "Move_always.hpp"
//#include "Metropoli... | 41.675 | 80 | 0.607421 | mjcaisse |
e9f138b66379a299ac02d00c229cfbe3bc482fda | 3,071 | cpp | C++ | unit/src/RemovePlanarityTest.cpp | volkerschmidts/titania | 1ad441a7f9481392e21216a2be86b20b1d090a97 | [
"MIT"
] | null | null | null | unit/src/RemovePlanarityTest.cpp | volkerschmidts/titania | 1ad441a7f9481392e21216a2be86b20b1d090a97 | [
"MIT"
] | 1 | 2022-03-24T03:54:06.000Z | 2022-03-25T15:32:09.000Z | unit/src/RemovePlanarityTest.cpp | volkerschmidts/titania | 1ad441a7f9481392e21216a2be86b20b1d090a97 | [
"MIT"
] | null | null | null | #include "RemovePlanarityTest.hpp"
#include "StanIPC.h"
#include "main.h"
#include <Atom.hpp>
#include <Declarations.hpp>
#include <LinAlg.hpp>
#include <Molecule.hpp>
#include <Output.hpp>
#include <Structure.hpp>
#include <StructureSimulator.hpp>
CPPUNIT_TEST_SUITE_REGISTRATION(RemovePlanarityTest);
RemovePlanari... | 33.747253 | 80 | 0.727125 | volkerschmidts |
e9f2b90b29c56da8ae57cf0ed91c7ab47f6a8ba1 | 36,069 | hpp | C++ | src/cpp_json/cpp_json__document.hpp | mrange/cppjson | 553795705eeda5e2add18dd3345a4c01a9b4de99 | [
"Apache-2.0"
] | null | null | null | src/cpp_json/cpp_json__document.hpp | mrange/cppjson | 553795705eeda5e2add18dd3345a4c01a9b4de99 | [
"Apache-2.0"
] | null | null | null | src/cpp_json/cpp_json__document.hpp | mrange/cppjson | 553795705eeda5e2add18dd3345a4c01a9b4de99 | [
"Apache-2.0"
] | null | null | null | // ----------------------------------------------------------------------------------------------
// Copyright 2015 Mårten Rånge
//
// 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
//
// ... | 24.420447 | 125 | 0.535723 | mrange |
e9f3df48926e0b921adc4f4b77206fb004842a8c | 4,726 | cpp | C++ | src/desktop/app/ComponentManager.cpp | varunamachi/tanyatu | ce055e0fb0b688054fe19ef39b09a6ca655e2457 | [
"MIT"
] | 1 | 2018-01-07T18:11:04.000Z | 2018-01-07T18:11:04.000Z | src/desktop/app/ComponentManager.cpp | varunamachi/tanyatu | ce055e0fb0b688054fe19ef39b09a6ca655e2457 | [
"MIT"
] | null | null | null | src/desktop/app/ComponentManager.cpp | varunamachi/tanyatu | ce055e0fb0b688054fe19ef39b09a6ca655e2457 | [
"MIT"
] | null | null | null | /*******************************************************************************
* Copyright (c) 2014 Varuna L Amachi. All rights reserved.
*
* 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 Softw... | 30.688312 | 80 | 0.655946 | varunamachi |
e9f788748cb58234056260f15c69225482563ced | 29,958 | hpp | C++ | lighter_int.hpp | snake5/lighter | dfaaaeadf00d2a9302f937c9b8138202b4e58ef5 | [
"MIT"
] | 5 | 2015-08-31T15:37:47.000Z | 2020-09-30T11:57:24.000Z | lighter_int.hpp | snake5/lighter | dfaaaeadf00d2a9302f937c9b8138202b4e58ef5 | [
"MIT"
] | null | null | null | lighter_int.hpp | snake5/lighter | dfaaaeadf00d2a9302f937c9b8138202b4e58ef5 | [
"MIT"
] | null | null | null |
#pragma once
#define _USE_MATH_DEFINES
#include <math.h>
#include <string.h>
#include <stdio.h>
#include <float.h>
#include <vector>
#include <string>
#include <algorithm>
#include "lighter.h"
#ifdef _WIN32
# define WIN32_LEAN_AND_MEAN
# undef _WIN32_WINNT
# define _WIN32_WINNT 0x0600
# undef WINVER
# defin... | 28.42315 | 160 | 0.629047 | snake5 |
e9fc439729c3b1ac4817d0477d1e5c14bafa54f7 | 761 | cpp | C++ | hackerrank/problemSolving/caesarCipher.cpp | ravikiranmara/ProgrammingChallenges | dcd0e0b3997f05115fc1fab414818b7d9add54c4 | [
"MIT"
] | null | null | null | hackerrank/problemSolving/caesarCipher.cpp | ravikiranmara/ProgrammingChallenges | dcd0e0b3997f05115fc1fab414818b7d9add54c4 | [
"MIT"
] | null | null | null | hackerrank/problemSolving/caesarCipher.cpp | ravikiranmara/ProgrammingChallenges | dcd0e0b3997f05115fc1fab414818b7d9add54c4 | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
using namespace std;
// Complete the caesarCipher function below.
string caesarCipher(string s, int k) {
for (int i=0; i<s.size(); i++) {
if (islower(s[i]))
s[i] = 'a' + (k+s[i]-'a')%26;
else if (isupper(s[i]))
s[i] = 'A' + (k+s[i]-'A')%26;
}
... | 17.697674 | 56 | 0.532194 | ravikiranmara |
e9fdb5b02e274f8866dd1289c472aa2e46358793 | 19,976 | cpp | C++ | src/input/InputManager.cpp | MicahMartin/asdf | d430777603a6906b7117e422885c949b539865cf | [
"MIT"
] | null | null | null | src/input/InputManager.cpp | MicahMartin/asdf | d430777603a6906b7117e422885c949b539865cf | [
"MIT"
] | null | null | null | src/input/InputManager.cpp | MicahMartin/asdf | d430777603a6906b7117e422885c949b539865cf | [
"MIT"
] | null | null | null | #include "input/InputManager.h"
#include "input/VirtualController.h"
#include <iostream>
#include <fstream>
#include <sstream>
// input manager is gonna get all input events from SDL for all devices
// keep a map with input keycodes as the key and tuple of player number actual 'button code' as the value
// so lets say... | 36.720588 | 151 | 0.550511 | MicahMartin |
e9ffd7f0dd51dd1290181cd72dcd37c847186388 | 4,617 | cpp | C++ | apps/visualizer.cpp | aquibrash87/RecoridingTool | 1af39f7e6eb5bea2c649157003d7848b1f9cf4d8 | [
"Apache-2.0"
] | null | null | null | apps/visualizer.cpp | aquibrash87/RecoridingTool | 1af39f7e6eb5bea2c649157003d7848b1f9cf4d8 | [
"Apache-2.0"
] | null | null | null | apps/visualizer.cpp | aquibrash87/RecoridingTool | 1af39f7e6eb5bea2c649157003d7848b1f9cf4d8 | [
"Apache-2.0"
] | null | null | null | /****************************************************************
** **
** Copyright(C) 2016 Quanergy Systems. All Rights Reserved. **
** Contact: http://www.quanergy.com **
** ... | 35.790698 | 177 | 0.635911 | aquibrash87 |
1802e73bc9e102d64403cb942ccd1d9490c89b66 | 1,548 | cpp | C++ | io2d/src/device.cpp | cristianadam/N3888_RefImpl | d7975633ad0e66e32c2dea70b0952d48ed777e9b | [
"MIT"
] | 52 | 2016-02-28T23:00:45.000Z | 2021-11-28T06:13:02.000Z | io2d/src/device.cpp | cristianadam/N3888_RefImpl | d7975633ad0e66e32c2dea70b0952d48ed777e9b | [
"MIT"
] | null | null | null | io2d/src/device.cpp | cristianadam/N3888_RefImpl | d7975633ad0e66e32c2dea70b0952d48ed777e9b | [
"MIT"
] | 6 | 2018-01-08T08:21:11.000Z | 2022-03-11T03:18:54.000Z | #include "io2d.h"
#include "xio2dhelpers.h"
#include "xcairoenumhelpers.h"
using namespace std;
using namespace std::experimental::io2d;
device::native_handle_type device::native_handle() const noexcept {
return _Device.get();
}
device::device(device::native_handle_type nh) : _Device() {
_Device = shared_ptr<cairo... | 23.815385 | 84 | 0.739664 | cristianadam |
18070b669def585ee9fa55b3d2a3fc5333c9f3ef | 1,158 | cpp | C++ | Bridge/Cpp/main.cpp | john29917958/Design-Patterns | 86b0139d67769552a9b97d1d436b9915a513871c | [
"MIT"
] | null | null | null | Bridge/Cpp/main.cpp | john29917958/Design-Patterns | 86b0139d67769552a9b97d1d436b9915a513871c | [
"MIT"
] | null | null | null | Bridge/Cpp/main.cpp | john29917958/Design-Patterns | 86b0139d67769552a9b97d1d436b9915a513871c | [
"MIT"
] | null | null | null | #include "character.h"
int main()
{
std::unique_ptr<character> character = std::make_unique<human>(0, "Jack", 100, 100);
character->cast_spell();
character->set_spell(std::make_shared<fire_spell>(30, 100, 20));
character->cast_spell();
character->set_spell(std::make_shared<ice_spell>(30, 50, 20));
character->cas... | 35.090909 | 85 | 0.721071 | john29917958 |
1807818d667d2cbb291b49973ad6412d87550fc6 | 490 | cpp | C++ | Sphere_Online_Judge_soj/Classical/math_is_love.cpp | mushahadur/Competitive-Programming-Problem-Solving-Online-Judge | 66b49ee2564b85d7b42d91a977f3d57d437e43d5 | [
"Apache-2.0"
] | 1 | 2021-08-25T06:49:16.000Z | 2021-08-25T06:49:16.000Z | Sphere_Online_Judge_soj/Classical/math_is_love.cpp | mushahadur/Competitive-Programming-Problem-Solving-Online-Judge | 66b49ee2564b85d7b42d91a977f3d57d437e43d5 | [
"Apache-2.0"
] | null | null | null | Sphere_Online_Judge_soj/Classical/math_is_love.cpp | mushahadur/Competitive-Programming-Problem-Solving-Online-Judge | 66b49ee2564b85d7b42d91a977f3d57d437e43d5 | [
"Apache-2.0"
] | null | null | null | #include<bits/stdc++.h>
using namespace std;
int main()
{
int t;
long long int y,sum=0,i,arr[100],arry[1000];
for(i=0; i<10; i++)
{
sum=sum+i;
arr[i]=sum;
arry[sum]=i;
}
cout<<"check : "<<arr[6]<<endl;
cout<<"check 2 : "<<arry[21]<<endl;
cin>>t;
while(t--)
... | 16.333333 | 48 | 0.408163 | mushahadur |
18079d3658ce78314386c430ddb2cf88e2c3866b | 1,234 | inl | C++ | LibImagics/Images/Wm5Lattice.inl | CRIMSONCardiovascularModelling/WildMagic5 | fcf549bfb99a5c4b3d6ffbff18aabdc1a4e9085c | [
"BSL-1.0"
] | 1 | 2021-02-18T10:25:42.000Z | 2021-02-18T10:25:42.000Z | LibImagics/Images/Wm5Lattice.inl | CRIMSONCardiovascularModelling/WildMagic5 | fcf549bfb99a5c4b3d6ffbff18aabdc1a4e9085c | [
"BSL-1.0"
] | null | null | null | LibImagics/Images/Wm5Lattice.inl | CRIMSONCardiovascularModelling/WildMagic5 | fcf549bfb99a5c4b3d6ffbff18aabdc1a4e9085c | [
"BSL-1.0"
] | null | null | null | // Geometric Tools, LLC
// Copyright (c) 1998-2014
// 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: 5.0.0 (2010/01/01)
//--------------------------------------------------------------... | 30.85 | 78 | 0.388169 | CRIMSONCardiovascularModelling |
18121f2661b46c9ef94060e23bf73aa36410076e | 14,098 | cpp | C++ | src/terminal_renderer/DecorationRenderer.cpp | christianparpart/libterminal | 0e6d75a2042437084c9f9880a5c8b5661a02da07 | [
"Apache-2.0"
] | 4 | 2019-08-14T22:29:57.000Z | 2019-09-19T08:57:15.000Z | src/terminal_renderer/DecorationRenderer.cpp | christianparpart/libterminal | 0e6d75a2042437084c9f9880a5c8b5661a02da07 | [
"Apache-2.0"
] | 69 | 2019-08-17T18:57:16.000Z | 2019-09-22T23:25:49.000Z | src/terminal_renderer/DecorationRenderer.cpp | christianparpart/libterminal | 0e6d75a2042437084c9f9880a5c8b5661a02da07 | [
"Apache-2.0"
] | null | null | null | /**
* This file is part of the "contour" project.
* Copyright (c) 2020 Christian Parpart <christian@parpart.family>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
*
* Unless required by applicable law or agreed to in writin... | 43.782609 | 107 | 0.563839 | christianparpart |
1812243c839f98ba54f28bd5d6e08ccbd812977c | 4,280 | cc | C++ | libfabric/prov/sstmac/src/sstmac_wait.cc | sstsimulator/sst-transports | 6561e1ab001b3ee8ece1b97ee89360258cd4c75c | [
"BSD-3-Clause"
] | null | null | null | libfabric/prov/sstmac/src/sstmac_wait.cc | sstsimulator/sst-transports | 6561e1ab001b3ee8ece1b97ee89360258cd4c75c | [
"BSD-3-Clause"
] | 1 | 2021-08-05T17:24:36.000Z | 2021-08-05T17:24:36.000Z | libfabric/prov/sstmac/src/sstmac_wait.cc | sstsimulator/sst-transports | 6561e1ab001b3ee8ece1b97ee89360258cd4c75c | [
"BSD-3-Clause"
] | 2 | 2021-08-05T17:25:14.000Z | 2021-11-10T02:48:04.000Z | /**
Copyright 2009-2020 National Technology and Engineering Solutions of Sandia,
LLC (NTESS). Under the terms of Contract DE-NA-0003525, the U.S. Government
retains certain rights in this software.
Sandia National Laboratories is a multimission laboratory managed and operated
by National Technology and Engineering... | 31.703704 | 114 | 0.764953 | sstsimulator |
181290adcdcadb00e1457986b03d3982e0cbba0f | 5,759 | hpp | C++ | include/cadence/async/streamsocket.hpp | abbyssoul/libcadence | c9a49d95df608497e9551f7d62169d0c78a48737 | [
"Apache-2.0"
] | 2 | 2020-04-24T15:07:33.000Z | 2020-06-12T07:01:53.000Z | include/cadence/async/streamsocket.hpp | abbyssoul/libcadence | c9a49d95df608497e9551f7d62169d0c78a48737 | [
"Apache-2.0"
] | null | null | null | include/cadence/async/streamsocket.hpp | abbyssoul/libcadence | c9a49d95df608497e9551f7d62169d0c78a48737 | [
"Apache-2.0"
] | null | null | null | /*
* Copyright (C) Ivan Ryabov - All Rights Reserved
*
* Unauthorized copying of this file, via any medium is strictly prohibited.
* Proprietary and confidential.
*
* Written by Ivan Ryabov <abbyssoul@gmail.com>
*/
/*******************************************************************************
* libcadence: Async... | 28.092683 | 119 | 0.650113 | abbyssoul |
181c4ea39274ab564324aa2056b36512a31cec36 | 6,911 | cpp | C++ | addjobdiag.cpp | dayuanyuan1989/RemoteBinder | 6c07896828187bbb890115fa1326f9db4fbd7b68 | [
"MIT"
] | null | null | null | addjobdiag.cpp | dayuanyuan1989/RemoteBinder | 6c07896828187bbb890115fa1326f9db4fbd7b68 | [
"MIT"
] | null | null | null | addjobdiag.cpp | dayuanyuan1989/RemoteBinder | 6c07896828187bbb890115fa1326f9db4fbd7b68 | [
"MIT"
] | null | null | null | #include "addjobdiag.h"
#include "ui_addjobdiag.h"
#include <QSize>
#include <QString>
#include <QStringList>
#include <QTime>
#include <QDate>
#include <QColor>
#include <QFontDatabase>
#include <QDebug>
AddJobDiag::AddJobDiag(QWidget *parent) :
QWidget(parent),
ui(new Ui::AddJobDiag)
{
u... | 30.444934 | 170 | 0.610476 | dayuanyuan1989 |
1820eb9ae60047891661d8c8f9e02f9470c2d92a | 1,520 | hpp | C++ | zooTycoon.hpp | bolym/C-ZooGame | 33a66a4e7e3cccc731520471c2641cd8f901ae02 | [
"MIT"
] | null | null | null | zooTycoon.hpp | bolym/C-ZooGame | 33a66a4e7e3cccc731520471c2641cd8f901ae02 | [
"MIT"
] | null | null | null | zooTycoon.hpp | bolym/C-ZooGame | 33a66a4e7e3cccc731520471c2641cd8f901ae02 | [
"MIT"
] | null | null | null | #include <iostream>
#include <string>
#include <algorithm>
#include <stdio.h> /* printf, scanf, puts, NULL */
#include <stdlib.h> /* srand, rand */
#include <time.h> /* time */
using namespace std;
class Animal{
protected:
int age;
int price;
int numBabies;
int foodCost;... | 17.882353 | 56 | 0.576974 | bolym |
18218a4cb185430f140c18184eeea8088d3aea79 | 2,013 | cpp | C++ | torch/csrc/distributed/c10d/Ops.cpp | qqaatw/pytorch | 44764f131b040a41a6dcf1304bb635c574bf5a3b | [
"Intel"
] | null | null | null | torch/csrc/distributed/c10d/Ops.cpp | qqaatw/pytorch | 44764f131b040a41a6dcf1304bb635c574bf5a3b | [
"Intel"
] | null | null | null | torch/csrc/distributed/c10d/Ops.cpp | qqaatw/pytorch | 44764f131b040a41a6dcf1304bb635c574bf5a3b | [
"Intel"
] | null | null | null | #include <torch/csrc/distributed/c10d/Ops.hpp>
#include <ATen/core/dispatch/Dispatcher.h>
#include <torch/library.h>
namespace c10d {
namespace {
c10::intrusive_ptr<ProcessGroup::Work> broadcast(
const c10::intrusive_ptr<ProcessGroup>& process_group,
at::TensorList tensors,
int64_t root_rank = 0,
int6... | 32.467742 | 80 | 0.660209 | qqaatw |
18228eca0c71619b74e7395225bdc2da6e71e6d8 | 11,390 | cpp | C++ | src/stringarray.cpp | Sneedd/rush | a07eef74d1757f1995ea4f6ceafb7c328719f08d | [
"MIT"
] | null | null | null | src/stringarray.cpp | Sneedd/rush | a07eef74d1757f1995ea4f6ceafb7c328719f08d | [
"MIT"
] | null | null | null | src/stringarray.cpp | Sneedd/rush | a07eef74d1757f1995ea4f6ceafb7c328719f08d | [
"MIT"
] | null | null | null | /*
* stringarray.cpp - Implementation of StringArray class
*
* This file is part of the rush utility library.
* Licenced unter the terms of Lesser GPL v3.0 (see licence.txt).
* Copyright 2011-2012 - Steffen Ott
*
*/
#include <rush/stringarray.h>
#include <rush/log.h>
#include <rush/buildinexpect.h>
#include... | 25.311111 | 115 | 0.502809 | Sneedd |
182c4afc4644b7470626e4dda738c6446a7e2cd2 | 4,547 | cpp | C++ | C/Lista03.cpp | IzaacBaptista/ads-senac | 2a2fe89a88e2ac5a776302f464695e2537c2cd69 | [
"MIT"
] | 2 | 2021-03-14T13:27:28.000Z | 2021-09-29T19:09:37.000Z | C/Lista03.cpp | IzaacBaptista/ads-senac | 2a2fe89a88e2ac5a776302f464695e2537c2cd69 | [
"MIT"
] | null | null | null | C/Lista03.cpp | IzaacBaptista/ads-senac | 2a2fe89a88e2ac5a776302f464695e2537c2cd69 | [
"MIT"
] | null | null | null | // ************************************************************
//
// Exemplo de Estruturas Encadeadas
//
// ************************************************************
#include <stdio.h>
#include <string.h>
#include <conio.h>
#include <stdlib.h>
// define a estrutura do nodo
typedef struct Temp
{
int info;
... | 22.509901 | 68 | 0.485155 | IzaacBaptista |
1836e4e72fea2754d0112fa86bd8af8e9ab6e35b | 13,095 | hpp | C++ | sources/SceneGraph/spSceneLight.hpp | rontrek/softpixel | 73a13a67e044c93f5c3da9066eedbaf3805d6807 | [
"Zlib"
] | 14 | 2015-08-16T21:05:20.000Z | 2019-08-21T17:22:01.000Z | sources/SceneGraph/spSceneLight.hpp | rontrek/softpixel | 73a13a67e044c93f5c3da9066eedbaf3805d6807 | [
"Zlib"
] | null | null | null | sources/SceneGraph/spSceneLight.hpp | rontrek/softpixel | 73a13a67e044c93f5c3da9066eedbaf3805d6807 | [
"Zlib"
] | 3 | 2016-10-31T06:08:44.000Z | 2019-08-02T16:12:33.000Z | /*
* Light scene node header
*
* This file is part of the "SoftPixel Engine" (Copyright (c) 2008 by Lukas Hermanns)
* See "SoftPixelEngine.hpp" for license information.
*/
#ifndef __SP_SCENE_LIGHT_H__
#define __SP_SCENE_LIGHT_H__
#include "Base/spStandard.hpp"
#include "Base/spDimensionMatrix4.hpp"
#include "S... | 30.524476 | 133 | 0.590302 | rontrek |
1842df48aab0e75398e4ea449f3a5329268189d3 | 388 | cpp | C++ | if.cpp | yanfeng1012/CPlusPlusProgramList | 16dae9ece99407e2213b82bf6910202f07a4b6a3 | [
"Apache-2.0"
] | null | null | null | if.cpp | yanfeng1012/CPlusPlusProgramList | 16dae9ece99407e2213b82bf6910202f07a4b6a3 | [
"Apache-2.0"
] | null | null | null | if.cpp | yanfeng1012/CPlusPlusProgramList | 16dae9ece99407e2213b82bf6910202f07a4b6a3 | [
"Apache-2.0"
] | null | null | null | #include <iostream>
using namespace std;
int main() {
char ch;
int spaces, total = 0;
cin.get(ch);
while (ch != '.') {
if (ch == ' ') {
++spaces;
} else {
cout << ++ch;
}
++total;
cin.get(ch);
}
cout << spaces << " spaces, " << t... | 17.636364 | 46 | 0.427835 | yanfeng1012 |
18460dd8a23bad1b4e94b484815a94caa2881627 | 5,443 | cc | C++ | bench/add.cc | ajtulloch/XNNPACK | 7e955979fd57fff70b9208b82b3bb13d971b182d | [
"BSD-3-Clause"
] | 1 | 2019-11-26T06:26:29.000Z | 2019-11-26T06:26:29.000Z | bench/add.cc | Maratyszcza/XNNPACK | 791d01da82cecbc259eb396a19822f8f6a8b8219 | [
"BSD-3-Clause"
] | null | null | null | bench/add.cc | Maratyszcza/XNNPACK | 791d01da82cecbc259eb396a19822f8f6a8b8219 | [
"BSD-3-Clause"
] | 1 | 2019-10-10T00:49:20.000Z | 2019-10-10T00:49:20.000Z | // Copyright (c) Facebook, Inc. and its affiliates.
// All rights reserved.
//
// Copyright 2019 Google LLC
//
// This source code is licensed under the BSD-style license found in the
// LICENSE file in the root directory of this source tree.
#include <algorithm>
#include <cmath>
#include <functional>
#include <random... | 31.645349 | 107 | 0.67573 | ajtulloch |
184778e301bbd85ff50db12d846587406413f17e | 207 | cpp | C++ | win64/w_pch.cpp | Fjellstedt/dk30 | b9fea347620fafe2d9994b4be6e20be0b2cee6f2 | [
"MIT"
] | null | null | null | win64/w_pch.cpp | Fjellstedt/dk30 | b9fea347620fafe2d9994b4be6e20be0b2cee6f2 | [
"MIT"
] | null | null | null | win64/w_pch.cpp | Fjellstedt/dk30 | b9fea347620fafe2d9994b4be6e20be0b2cee6f2 | [
"MIT"
] | null | null | null | /* ========================================================================
$Creator: Patrik Fjellstedt $
======================================================================== */
#include "w_pch.h"
| 41.4 | 78 | 0.173913 | Fjellstedt |
184cfe058c3c3d71170ebad1942e2f05f49a85f1 | 20,162 | cpp | C++ | XRADGUI/Sources/GUI/MathFunctionGUI.cpp | Center-of-Diagnostics-and-Telemedicine/xrad | ec2dd3f1dcd164787e2a192cd1f2b78c3217f9ed | [
"BSD-3-Clause"
] | 1 | 2021-04-02T16:47:00.000Z | 2021-04-02T16:47:00.000Z | XRADGUI/Sources/GUI/MathFunctionGUI.cpp | Center-of-Diagnostics-and-Telemedicine/xrad | ec2dd3f1dcd164787e2a192cd1f2b78c3217f9ed | [
"BSD-3-Clause"
] | null | null | null | XRADGUI/Sources/GUI/MathFunctionGUI.cpp | Center-of-Diagnostics-and-Telemedicine/xrad | ec2dd3f1dcd164787e2a192cd1f2b78c3217f9ed | [
"BSD-3-Clause"
] | 3 | 2021-08-30T11:26:23.000Z | 2021-09-23T09:39:56.000Z | /*
Copyright (c) 2021, Moscow Center for Diagnostics & Telemedicine
All rights reserved.
This file is licensed under BSD-3-Clause license. See LICENSE file for details.
*/
#include "pre.h"
#include "MathFunctionGUI.h"
#include "XRADGUI.h"
#include "GraphSet.h"
#include <XRADBasic/Sources/SampleTypes/HLSColorSample... | 30.828746 | 194 | 0.694624 | Center-of-Diagnostics-and-Telemedicine |
184e07ea0495ab0b128ff5034b7c8da951c262d2 | 1,060 | cpp | C++ | YorozuyaGSLib/source/_chat_lock_inform_zoclDetail.cpp | lemkova/Yorozuya | f445d800078d9aba5de28f122cedfa03f26a38e4 | [
"MIT"
] | 29 | 2017-07-01T23:08:31.000Z | 2022-02-19T10:22:45.000Z | YorozuyaGSLib/source/_chat_lock_inform_zoclDetail.cpp | kotopes/Yorozuya | 605c97d3a627a8f6545cc09f2a1b0a8afdedd33a | [
"MIT"
] | 90 | 2017-10-18T21:24:51.000Z | 2019-06-06T02:30:33.000Z | YorozuyaGSLib/source/_chat_lock_inform_zoclDetail.cpp | kotopes/Yorozuya | 605c97d3a627a8f6545cc09f2a1b0a8afdedd33a | [
"MIT"
] | 44 | 2017-12-19T08:02:59.000Z | 2022-02-24T23:15:01.000Z | #include <_chat_lock_inform_zoclDetail.hpp>
#include <common/ATFCore.hpp>
START_ATF_NAMESPACE
namespace Detail
{
Info::_chat_lock_inform_zoclsize2_ptr _chat_lock_inform_zoclsize2_next(nullptr);
Info::_chat_lock_inform_zoclsize2_clbk _chat_lock_inform_zoclsize2_user(nullptr);
i... | 37.857143 | 110 | 0.682075 | lemkova |
184fea8bfef2f72570a06334c56751cda187a273 | 2,949 | cpp | C++ | NAS2D/Xml/XmlMemoryBuffer.cpp | Brett208/nas2d-core | f9506540f32d34f3c60bc83b87b34460d582ae81 | [
"Zlib"
] | null | null | null | NAS2D/Xml/XmlMemoryBuffer.cpp | Brett208/nas2d-core | f9506540f32d34f3c60bc83b87b34460d582ae81 | [
"Zlib"
] | null | null | null | NAS2D/Xml/XmlMemoryBuffer.cpp | Brett208/nas2d-core | f9506540f32d34f3c60bc83b87b34460d582ae81 | [
"Zlib"
] | null | null | null | // ==================================================================================
// = NAS2D
// = Copyright © 2008 - 2020 New Age Software
// ==================================================================================
// = NAS2D is distributed under the terms of the zlib license. You are free to copy,
// = m... | 21.215827 | 95 | 0.597491 | Brett208 |
18510d8907f8dee50b3fec59d629ad531ad02c5a | 8,449 | hpp | C++ | examples/pppbayestree/gpstk/FFTextStream.hpp | shaolinbit/minisam_lib | e2e904d1b6753976de1dee102f0b53e778c0f880 | [
"BSD-3-Clause"
] | 104 | 2019-06-23T14:45:20.000Z | 2022-03-20T12:45:29.000Z | examples/pppbayestree/gpstk/FFTextStream.hpp | shaolinbit/minisam_lib | e2e904d1b6753976de1dee102f0b53e778c0f880 | [
"BSD-3-Clause"
] | 2 | 2019-06-28T08:23:23.000Z | 2019-07-17T02:37:08.000Z | examples/pppbayestree/gpstk/FFTextStream.hpp | shaolinbit/minisam_lib | e2e904d1b6753976de1dee102f0b53e778c0f880 | [
"BSD-3-Clause"
] | 28 | 2019-06-23T14:45:19.000Z | 2022-03-20T12:45:24.000Z | #pragma ident "$Id$"
/**
* @file FFTextStream.hpp
* An FFStream for text files
*/
#ifndef GPSTK_FFTEXTSTREAM_HPP
#define GPSTK_FFTEXTSTREAM_HPP
//============================================================================
//
// This file is part of GPSTk, the GPS Toolkit.
//
// The GPSTk is free software; you ... | 30.835766 | 79 | 0.586578 | shaolinbit |
4c757cadf9f87fcd5866150038316d3a5d1b37db | 159 | cpp | C++ | source/ThreadControl.cpp | Gavin-Lijy/STAR | 4571190968fc134aa4bd0d4d7065490253b1a4c5 | [
"MIT"
] | 1,315 | 2015-01-07T02:03:15.000Z | 2022-03-30T09:48:17.000Z | source/ThreadControl.cpp | Gavin-Lijy/STAR | 4571190968fc134aa4bd0d4d7065490253b1a4c5 | [
"MIT"
] | 1,429 | 2015-01-08T00:09:17.000Z | 2022-03-31T08:12:14.000Z | source/ThreadControl.cpp | Gavin-Lijy/STAR | 4571190968fc134aa4bd0d4d7065490253b1a4c5 | [
"MIT"
] | 495 | 2015-01-23T20:00:45.000Z | 2022-03-31T13:24:50.000Z | #include "ThreadControl.h"
ThreadControl::ThreadControl() {
chunkInN=0;
chunkOutN=0;
// chunkOutBAMposition=new uint [MAX_chunkOutBAMposition];
}; | 22.714286 | 62 | 0.72327 | Gavin-Lijy |
4c762507c5a648221606a37bed8ab1360f98ec9b | 15,886 | cpp | C++ | src/det/scope.cpp | alta-lang/alta-core | 290ebcd94b4b2956fd34f5cd0e516e756d4fc219 | [
"MIT"
] | null | null | null | src/det/scope.cpp | alta-lang/alta-core | 290ebcd94b4b2956fd34f5cd0e516e756d4fc219 | [
"MIT"
] | 6 | 2019-03-04T01:37:27.000Z | 2019-09-07T20:12:36.000Z | src/det/scope.cpp | alta-lang/alta-core | 290ebcd94b4b2956fd34f5cd0e516e756d4fc219 | [
"MIT"
] | null | null | null | #include "../../include/altacore/det/scope.hpp"
#include "../../include/altacore/det/function.hpp"
#include "../../include/altacore/det/module.hpp"
#include "../../include/altacore/det/alias.hpp"
#include "../../include/altacore/det/namespace.hpp"
#include "../../include/altacore/det/variable.hpp"
#include "../../inclu... | 34.534783 | 209 | 0.629422 | alta-lang |
4c81875806e2ac936f9db43c67ac6ff124a06eba | 7,709 | cxx | C++ | PWGLF/STRANGENESS/Lifetimes/selectors/MiniV0efficiency.cxx | Tingchenxi/AliPhysics | 16ea676341c0d417efa849673baa54bed717cd54 | [
"BSD-3-Clause"
] | null | null | null | PWGLF/STRANGENESS/Lifetimes/selectors/MiniV0efficiency.cxx | Tingchenxi/AliPhysics | 16ea676341c0d417efa849673baa54bed717cd54 | [
"BSD-3-Clause"
] | null | null | null | PWGLF/STRANGENESS/Lifetimes/selectors/MiniV0efficiency.cxx | Tingchenxi/AliPhysics | 16ea676341c0d417efa849673baa54bed717cd54 | [
"BSD-3-Clause"
] | 1 | 2018-09-22T01:09:25.000Z | 2018-09-22T01:09:25.000Z | #define MiniV0efficiency_cxx
#include <TGraph.h>
#include "MiniV0efficiency.h"
#include <TH2.h>
#include <TAxis.h>
#include <TStyle.h>
#include <TF1.h>
#include <AliPDG.h>
#include "MiniV0.h"
#include "MCparticle.h"
#include "HyperTriton2Body.h"
#include "Riostream.h"
using namespace Lifetimes;
using namespace std;
M... | 35.200913 | 133 | 0.632767 | Tingchenxi |
4c85f35e4c49fdb180f8827821bb25dcaa73bc6a | 357 | cpp | C++ | src/sim/missile/flight.cpp | Terebinth/freefalcon-central | c28d807183ab447ef6a801068aa3769527d55deb | [
"BSD-2-Clause"
] | 117 | 2015-01-13T14:48:49.000Z | 2022-03-16T01:38:19.000Z | src/sim/missile/flight.cpp | darongE/freefalcon-central | c28d807183ab447ef6a801068aa3769527d55deb | [
"BSD-2-Clause"
] | 4 | 2015-05-01T13:09:53.000Z | 2017-07-22T09:11:06.000Z | src/sim/missile/flight.cpp | darongE/freefalcon-central | c28d807183ab447ef6a801068aa3769527d55deb | [
"BSD-2-Clause"
] | 78 | 2015-01-13T09:27:47.000Z | 2022-03-18T14:39:09.000Z | #include "stdhdr.h"
#include "missile.h"
#include "drawable.h"
void MissileClass::Flight(void)
{
if (inputData->displayType not_eq DisplayHTS and display)
{
display->DisplayExit();
display = NULL;
}
Atmosphere();
FlightControlSystem();
Aerodynamics();
Engine();
Accelero... | 17.85 | 61 | 0.633053 | Terebinth |
4c869658add13503aa2fb39346360ba3bc499304 | 1,329 | cpp | C++ | 20_Sources/IpcAdapter/Core/src/SimplePipelineFrame.cpp | ssproessig/ipc-adapter | 466b9c12aa15561e75742b61b88ce5732eb505af | [
"MIT"
] | 1 | 2019-12-04T08:06:52.000Z | 2019-12-04T08:06:52.000Z | 20_Sources/IpcAdapter/Core/src/SimplePipelineFrame.cpp | ssproessig/ipc-adapter | 466b9c12aa15561e75742b61b88ce5732eb505af | [
"MIT"
] | 16 | 2019-09-06T18:38:21.000Z | 2019-10-20T18:34:38.000Z | 20_Sources/IpcAdapter/Core/src/SimplePipelineFrame.cpp | ssproessig/ipc-adapter | 466b9c12aa15561e75742b61b88ce5732eb505af | [
"MIT"
] | null | null | null | #include "Core/api/SimplePipelineFrame.h"
#include <QByteArray>
#include <QMap>
#include <QString>
#include <QVariant>
using IpcAdapter::Core::IPipelineFrame;
using IpcAdapter::Core::SimplePipelineFrame;
struct SimplePipelineFrame::Data
{
IPipelineFrame::MetaDataMap metaData;
IPipelineFrame::RawData rawD... | 19.835821 | 92 | 0.753198 | ssproessig |
4c8842c49ecfa8362ef045f676e4899280e94206 | 4,443 | cpp | C++ | src/libtextmode/textmode.cpp | joelpob/ansilove-term | 2842c41bc2429a98d51e02e2d6eb55254afa79bb | [
"BSD-3-Clause"
] | null | null | null | src/libtextmode/textmode.cpp | joelpob/ansilove-term | 2842c41bc2429a98d51e02e2d6eb55254afa79bb | [
"BSD-3-Clause"
] | null | null | null | src/libtextmode/textmode.cpp | joelpob/ansilove-term | 2842c41bc2429a98d51e02e2d6eb55254afa79bb | [
"BSD-3-Clause"
] | null | null | null | #include "textmode.h"
#include "file_formats/ansi.h"
#include "file_formats/ansiedit.h"
#include "file_formats/artworx.h"
#include "file_formats/ascii.h"
#include "file_formats/binary_text.h"
#include "file_formats/ice_draw.h"
#include "file_formats/pc_board.h"
#include "file_formats/tundra_draw.h"
#include "file_forma... | 30.854167 | 80 | 0.635607 | joelpob |
4c889cd5d67439f9e8986c192c2f06c0adc81485 | 26 | cpp | C++ | source/pch/stdafx.cpp | chillpert/renderer | 9c953cef10ebec7a2c8fe5763a2c10105729deab | [
"Zlib"
] | 2 | 2020-11-18T18:20:12.000Z | 2020-12-18T19:24:00.000Z | source/pch/stdafx.cpp | chillpert/rayex | 9c953cef10ebec7a2c8fe5763a2c10105729deab | [
"Zlib"
] | null | null | null | source/pch/stdafx.cpp | chillpert/rayex | 9c953cef10ebec7a2c8fe5763a2c10105729deab | [
"Zlib"
] | null | null | null | #include "pch/stdafx.hpp"
| 13 | 25 | 0.730769 | chillpert |
4c8bbaf097e4c8fad91a90bf07dc5236a213b0d7 | 8,009 | hpp | C++ | Source/AllProjects/SecureUtils/CIDCrypto/CIDCrypto_BlockEncrypt.hpp | MarkStega/CIDLib | 82014e064eef51cad998bf2c694ed9c1c8cceac6 | [
"MIT"
] | 216 | 2019-03-09T06:41:28.000Z | 2022-02-25T16:27:19.000Z | Source/AllProjects/SecureUtils/CIDCrypto/CIDCrypto_BlockEncrypt.hpp | MarkStega/CIDLib | 82014e064eef51cad998bf2c694ed9c1c8cceac6 | [
"MIT"
] | 9 | 2020-09-27T08:00:52.000Z | 2021-07-02T14:27:31.000Z | Source/AllProjects/SecureUtils/CIDCrypto/CIDCrypto_BlockEncrypt.hpp | MarkStega/CIDLib | 82014e064eef51cad998bf2c694ed9c1c8cceac6 | [
"MIT"
] | 29 | 2019-03-09T10:12:24.000Z | 2021-03-03T22:25:29.000Z | //
// FILE NAME: CIDCrypto_BlockEncrypt.hpp
//
// AUTHOR: Dean Roddey
//
// CREATED: 10/21/1997
//
// COPYRIGHT: Charmed Quark Systems, Ltd @ 2019
//
// This software is copyrighted by 'Charmed Quark Systems, Ltd' and
// the author (Dean Roddey.) It is licensed under the MIT Open Source
// license:
//
// https://op... | 33.095041 | 78 | 0.443251 | MarkStega |
4c8c3eacfd4266cf60ba08a480bd518f47e422ac | 266 | hpp | C++ | Code/Class_headers/Collision.hpp | EnderRayquaza/DeltaEngine | 1f1c456d221c27e1a6e49095fe2819dca7994f13 | [
"MIT"
] | 2 | 2021-10-16T22:37:03.000Z | 2021-11-08T21:46:27.000Z | Code/Class_headers/Collision.hpp | EnderRayquaza/DeltaEngine | 1f1c456d221c27e1a6e49095fe2819dca7994f13 | [
"MIT"
] | null | null | null | Code/Class_headers/Collision.hpp | EnderRayquaza/DeltaEngine | 1f1c456d221c27e1a6e49095fe2819dca7994f13 | [
"MIT"
] | 2 | 2021-11-13T10:48:38.000Z | 2021-11-13T10:50:14.000Z | #pragma once
#include "../config.hpp"
namespace DeltaEngine
{
enum class moveType
{
Static,
Kinematic,
Dynamic
};
enum class collisionType
{
Nothing,
Decor,
Ground,
ObjectA,
ObjectB
};
typedef std::vector<collisionType> collisionTargets;
}
| 11.083333 | 53 | 0.691729 | EnderRayquaza |
4c8cf098b8628b570079b11ae7da2495560f2084 | 2,336 | cpp | C++ | GenesisX/dsa1Engine/Bullet.cpp | mray2014/GenesisX | 5bede0340c4c44f7217d4ffe1bde7e879aedfe2d | [
"MIT"
] | null | null | null | GenesisX/dsa1Engine/Bullet.cpp | mray2014/GenesisX | 5bede0340c4c44f7217d4ffe1bde7e879aedfe2d | [
"MIT"
] | null | null | null | GenesisX/dsa1Engine/Bullet.cpp | mray2014/GenesisX | 5bede0340c4c44f7217d4ffe1bde7e879aedfe2d | [
"MIT"
] | null | null | null | #include "Bullet.h"
#include "Renderer.h"
Bullet::Bullet()
{
}
Bullet::Bullet(float s, std::string file, Renderer* r)
{
speed = s;
glm::vec3 camPos = ((Renderer*)r)->cam->camCenter;
glm::vec3 foward = ((Renderer*)r)->cam->foward;
glm::vec4 color = glm::vec4(glm::normalize(glm::vec3(Engine::Random(), Engine::Ran... | 29.948718 | 149 | 0.693065 | mray2014 |
4c923e6a432823beda6c4a28a439b548a343fbeb | 514 | hpp | C++ | code/src/mupen64plus-rsp-paraLLEl/debug_jit.hpp | OotinnyoO1/N64Wasm | 1cc12b643e5f4a3ea8f499d21f08723cdf1d6c4b | [
"MIT"
] | 335 | 2021-10-16T14:56:14.000Z | 2022-03-31T15:50:11.000Z | code/src/mupen64plus-rsp-paraLLEl/debug_jit.hpp | OotinnyoO1/N64Wasm | 1cc12b643e5f4a3ea8f499d21f08723cdf1d6c4b | [
"MIT"
] | 10 | 2021-11-09T19:20:34.000Z | 2022-03-14T13:17:47.000Z | code/src/mupen64plus-rsp-paraLLEl/debug_jit.hpp | OotinnyoO1/N64Wasm | 1cc12b643e5f4a3ea8f499d21f08723cdf1d6c4b | [
"MIT"
] | 29 | 2021-10-19T00:38:18.000Z | 2022-03-31T19:03:47.000Z | #ifndef DEBUG_JIT_HPP__
#define DEBUG_JIT_HPP__
#include <memory>
#include <stdint.h>
#include <string>
#include <unordered_map>
namespace JIT
{
using Func = void (*)(void *, void *);
class DebugBlock
{
public:
DebugBlock(const std::unordered_map<std::string, uint64_t> &symbol_table);
~DebugBlock();
bool compile(... | 16.0625 | 75 | 0.715953 | OotinnyoO1 |
4c94a5851eaf7f12aba8316d5fa94c19056a780c | 2,074 | cpp | C++ | Gogaman/src/Platform/Vulkan/RenderHardwareInterface/VulkanDescriptorGroupLayout.cpp | FeodorVolguine/Gogaman | fb29d7f7924fecb5a31b04e8187689ecef46d347 | [
"Apache-2.0"
] | null | null | null | Gogaman/src/Platform/Vulkan/RenderHardwareInterface/VulkanDescriptorGroupLayout.cpp | FeodorVolguine/Gogaman | fb29d7f7924fecb5a31b04e8187689ecef46d347 | [
"Apache-2.0"
] | null | null | null | Gogaman/src/Platform/Vulkan/RenderHardwareInterface/VulkanDescriptorGroupLayout.cpp | FeodorVolguine/Gogaman | fb29d7f7924fecb5a31b04e8187689ecef46d347 | [
"Apache-2.0"
] | 1 | 2020-05-02T19:25:44.000Z | 2020-05-02T19:25:44.000Z | #include "pch.h"
#include "VulkanDescriptorGroupLayout.h"
#include "Gogaman/RenderHardwareInterface/Device.h"
namespace Gogaman
{
namespace RHI
{
DescriptorGroupLayout::DescriptorGroupLayout(const uint32_t bindingCount, Binding *bindings, const Shader::StageFlag shaderVisibilityFlags)
: AbstractDescriptorGroup... | 47.136364 | 170 | 0.804243 | FeodorVolguine |
4c983eb39f3003249805a1b1ba90e527c274b912 | 10,405 | cpp | C++ | src/cruxhom.cpp | Junology/khover | 1970689d4505ddd0887ec4f44888f91af816eae0 | [
"BSD-2-Clause"
] | 2 | 2021-05-19T06:48:04.000Z | 2021-05-19T06:50:39.000Z | src/cruxhom.cpp | Junology/khover | 1970689d4505ddd0887ec4f44888f91af816eae0 | [
"BSD-2-Clause"
] | null | null | null | src/cruxhom.cpp | Junology/khover | 1970689d4505ddd0887ec4f44888f91af816eae0 | [
"BSD-2-Clause"
] | null | null | null | /*!
* \file cruxhom.hpp
* \author Jun Yoshida
* \copyright (c) 2020 Jun Yoshida.
* The project is released under the 2-clause BSD License.
* \date August, 2020: created
*/
#include <thread>
#include "states.hpp"
#include "khovanov.hpp"
#include "enhancements.hpp"
#include "debug/debug.hpp"
using namespace kho... | 34.916107 | 83 | 0.547525 | Junology |
4c9a87344fbb7166a3209ccf49e0a1471e9dc3ce | 282 | cpp | C++ | problems/baekjoon/p10871.cpp | yejun614/algorithm-solve | ac7aca22e06a8aa39002c9bf6d6d39bbc6148ff9 | [
"MIT"
] | null | null | null | problems/baekjoon/p10871.cpp | yejun614/algorithm-solve | ac7aca22e06a8aa39002c9bf6d6d39bbc6148ff9 | [
"MIT"
] | null | null | null | problems/baekjoon/p10871.cpp | yejun614/algorithm-solve | ac7aca22e06a8aa39002c9bf6d6d39bbc6148ff9 | [
"MIT"
] | null | null | null | /**
* (210929) X보다 작은 수
* https://www.acmicpc.net/problem/10871
*/
#include <cstdio>
int main() {
int N, X;
scanf("%d %d", &N, &X);
int buf;
for (int i=0; i<N; i++) {
scanf("%d",&buf);
if (buf < X)
printf("%d ", buf);
}
printf("\n");
return 0;
}
| 12.26087 | 40 | 0.468085 | yejun614 |
4c9c3e8cc01a154e7ed32f1279c0b721dd58cb7b | 38,428 | cc | C++ | ion/remote/resourcehandler.cc | mdemoret/Snapshot | 987b3d45532f3644d35d858e036542d5691953ce | [
"Apache-2.0"
] | null | null | null | ion/remote/resourcehandler.cc | mdemoret/Snapshot | 987b3d45532f3644d35d858e036542d5691953ce | [
"Apache-2.0"
] | null | null | null | ion/remote/resourcehandler.cc | mdemoret/Snapshot | 987b3d45532f3644d35d858e036542d5691953ce | [
"Apache-2.0"
] | null | null | null | /**
Copyright 2016 Google Inc. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in... | 38.934144 | 80 | 0.605496 | mdemoret |
4c9d960feb65756eb35282dde7b24bdf61bb3e8b | 9,492 | cpp | C++ | platforms/linux/TTYLib.cpp | ICESat2-SlideRule/sliderule | 90776d7e174e151c5806077001f5f9c21ef81f48 | [
"BSD-3-Clause"
] | 2 | 2021-05-06T19:56:26.000Z | 2021-05-27T16:41:56.000Z | platforms/linux/TTYLib.cpp | ICESat2-SlideRule/sliderule | 90776d7e174e151c5806077001f5f9c21ef81f48 | [
"BSD-3-Clause"
] | 54 | 2021-03-30T18:45:12.000Z | 2022-03-17T20:13:04.000Z | platforms/linux/TTYLib.cpp | ICESat2-SlideRule/sliderule | 90776d7e174e151c5806077001f5f9c21ef81f48 | [
"BSD-3-Clause"
] | 1 | 2021-05-14T16:34:08.000Z | 2021-05-14T16:34:08.000Z | /*
* Copyright (c) 2021, University of Washington
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* 1. Redistributions of source code must retain the above copyright notice,
* this... | 33.659574 | 98 | 0.455225 | ICESat2-SlideRule |
4ca622cf63d1b2b43c3daf5161c35c4a64d8b9c5 | 55 | hpp | C++ | include/scapin/scapin.hpp | sbrisard/gollum | 25d5b9aea63a8f2812c4b41850450fcbead64da7 | [
"BSD-3-Clause"
] | null | null | null | include/scapin/scapin.hpp | sbrisard/gollum | 25d5b9aea63a8f2812c4b41850450fcbead64da7 | [
"BSD-3-Clause"
] | 4 | 2020-09-24T07:32:21.000Z | 2020-12-01T08:06:00.000Z | include/scapin/scapin.hpp | sbrisard/gollum | 25d5b9aea63a8f2812c4b41850450fcbead64da7 | [
"BSD-3-Clause"
] | 1 | 2020-02-02T18:05:15.000Z | 2020-02-02T18:05:15.000Z | #pragma once
#include "core.hpp"
#include "hooke.hpp"
| 11 | 20 | 0.709091 | sbrisard |
4ca7939ee1f48050997521e86ce834c26a8bd999 | 222 | cpp | C++ | HDUOJ/2107.cpp | LzyRapx/Competitive-Programming | 6b0eea727f9a6444700a6966209397ac7011226f | [
"Apache-2.0"
] | 81 | 2018-06-03T04:27:45.000Z | 2020-09-13T09:04:12.000Z | HDUOJ/2107.cpp | Walkerlzy/Competitive-algorithm | 6b0eea727f9a6444700a6966209397ac7011226f | [
"Apache-2.0"
] | null | null | null | HDUOJ/2107.cpp | Walkerlzy/Competitive-algorithm | 6b0eea727f9a6444700a6966209397ac7011226f | [
"Apache-2.0"
] | 21 | 2018-07-11T04:02:38.000Z | 2020-07-18T20:31:14.000Z | #include <stdio.h>
int main()
{
int t,a,max;
while(scanf("%d",&t)!=EOF &&t!=0)
{
max=0;
while(t--)
{
scanf("%d",&a);
if(a>max)
{
max=a;
}
}
printf("%d\n",max);
}
return 0;
} | 11.684211 | 35 | 0.405405 | LzyRapx |
4cac1a7f4b7e0ef3200dd3a2e1bda64bde60bf7b | 1,841 | cpp | C++ | 2018/cpp/src/day23.cpp | Chrinkus/advent-of-code | b2ae137dc7a1d6fc9e20f29549e891404591c47f | [
"MIT"
] | 1 | 2021-12-04T20:55:02.000Z | 2021-12-04T20:55:02.000Z | 2018/cpp/src/day23.cpp | Chrinkus/advent-of-code | b2ae137dc7a1d6fc9e20f29549e891404591c47f | [
"MIT"
] | null | null | null | 2018/cpp/src/day23.cpp | Chrinkus/advent-of-code | b2ae137dc7a1d6fc9e20f29549e891404591c47f | [
"MIT"
] | null | null | null | #include <iostream>
#include <vector>
#include <algorithm>
#include <sstream>
#include <get_input.hpp>
class Nanobot {
private:
int xx, yy, zz, rr;
public:
Nanobot() = default;
Nanobot(int x, int y, int z, int r)
: xx{x}, yy{y}, zz{z}, rr{r} { }
int x() const { return xx; }
int y() const ... | 21.658824 | 76 | 0.552417 | Chrinkus |
4cb6bb1a8df280830bf45e94a50807501bdfce34 | 11,650 | cpp | C++ | src/matOptimize/transpose_vcf/transposed_vcf_to_fa.cpp | abschneider/usher | 2ebfe7013d69097427cce59585a3ee2edd98773b | [
"MIT"
] | 67 | 2020-09-18T23:10:37.000Z | 2022-02-02T17:58:19.000Z | src/matOptimize/transpose_vcf/transposed_vcf_to_fa.cpp | abschneider/usher | 2ebfe7013d69097427cce59585a3ee2edd98773b | [
"MIT"
] | 132 | 2020-09-21T03:11:29.000Z | 2022-03-31T23:19:14.000Z | src/matOptimize/transpose_vcf/transposed_vcf_to_fa.cpp | abschneider/usher | 2ebfe7013d69097427cce59585a3ee2edd98773b | [
"MIT"
] | 22 | 2020-09-18T20:28:21.000Z | 2022-03-24T12:17:33.000Z | #include "../mutation_annotated_tree.hpp"
#include "src/matOptimize/tree_rearrangement_internal.hpp"
#include "transpose_vcf.hpp"
#include <algorithm>
#include <boost/program_options.hpp>
#include <boost/program_options/value_semantic.hpp>
#include <climits>
#include <cstddef>
#include <cstdio>
#include <cstdlib>
#incl... | 36.984127 | 161 | 0.587039 | abschneider |
4cb793464cc29ff53929ee5a538f85ec609d9828 | 3,614 | cpp | C++ | src/cpp/event/PeriodicEventHandler.cpp | rockstarartist/DDS-Router | 245099e5e1be584e9d37e9b16648183ab383d727 | [
"Apache-2.0"
] | 1 | 2021-11-15T08:16:58.000Z | 2021-11-15T08:16:58.000Z | src/cpp/event/PeriodicEventHandler.cpp | rockstarartist/DDS-Router | 245099e5e1be584e9d37e9b16648183ab383d727 | [
"Apache-2.0"
] | 18 | 2021-08-30T09:19:30.000Z | 2021-11-16T07:17:38.000Z | src/cpp/event/PeriodicEventHandler.cpp | rockstarartist/DDS-Router | 245099e5e1be584e9d37e9b16648183ab383d727 | [
"Apache-2.0"
] | null | null | null | // Copyright 2021 Proyectos y Sistemas de Mantenimiento SL (eProsima).
//
// 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 re... | 26.573529 | 103 | 0.676259 | rockstarartist |
4cb9fbf799d1276b3e2e8c3c7446c741e780dcf1 | 7,204 | cpp | C++ | hash.cpp | grasslog/HashFile | e584a0920037ef80dd155142dc39b03e38071430 | [
"MIT"
] | 3 | 2019-08-28T14:59:21.000Z | 2019-09-11T20:01:21.000Z | hash.cpp | grasslog/HashFile | e584a0920037ef80dd155142dc39b03e38071430 | [
"MIT"
] | null | null | null | hash.cpp | grasslog/HashFile | e584a0920037ef80dd155142dc39b03e38071430 | [
"MIT"
] | 1 | 2022-01-03T07:21:59.000Z | 2022-01-03T07:21:59.000Z | #include <stdio.h>
#include <stdlib.h>
#include <time.h>
#include <unistd.h> // access()
#include <string.h>
#include <string>
#include <unordered_map>
#include <vector>
#include <algorithm>
#include <regex>
#define HASH_FILE_PATH "/home/grasslog/tmp/IP/ip_data.dat"
#define HASH_GENERATION_PATH "/home/grasslog/tmp/... | 22.09816 | 94 | 0.605636 | grasslog |
4cc172bcf8fda07b80f44d708011859e28dac03d | 3,615 | cpp | C++ | source/fir/Types/UnionType.cpp | zhiayang/flax | a7ead8ad3ff4ea377297495751bd4802f809547b | [
"Apache-2.0"
] | 1 | 2021-02-07T08:42:06.000Z | 2021-02-07T08:42:06.000Z | source/fir/Types/UnionType.cpp | zhiayang/flax | a7ead8ad3ff4ea377297495751bd4802f809547b | [
"Apache-2.0"
] | null | null | null | source/fir/Types/UnionType.cpp | zhiayang/flax | a7ead8ad3ff4ea377297495751bd4802f809547b | [
"Apache-2.0"
] | null | null | null | // UnionType.cpp
// Copyright (c) 2014 - 2016, zhiayang@gmail.com
// Licensed under the Apache License Version 2.0.
#include "errors.h"
#include "ir/type.h"
#include "pts.h"
namespace fir
{
// structs
UnionType::UnionType(const Identifier& name, const std::unordered_map<std::string, std::pair<size_t, Type*>>& mems... | 18.634021 | 130 | 0.665007 | zhiayang |
4cc6d8d77fb76a8f2098c58bd1faa240ff981ee2 | 333 | hpp | C++ | example/include/my_components.hpp | wtfsystems/wtengine | 0fb56d6eb2ac6359509e7a52876c8656da6b3ce0 | [
"MIT"
] | 7 | 2020-06-16T18:47:35.000Z | 2021-08-25T13:41:13.000Z | example/include/my_components.hpp | wtfsystems/wtengine | 0fb56d6eb2ac6359509e7a52876c8656da6b3ce0 | [
"MIT"
] | 15 | 2020-07-23T14:03:39.000Z | 2022-01-28T02:32:07.000Z | example/include/my_components.hpp | wtfsystems/wtengine | 0fb56d6eb2ac6359509e7a52876c8656da6b3ce0 | [
"MIT"
] | null | null | null | /*
* WTEngine Demo
* By: Matthew Evans
* File: my_components.hpp
*
* See LICENSE.txt for copyright information
*
* Include all custom components here.
*/
#ifndef MY_COMPONENTS_HPP
#define MY_COMPONENTS_HPP
#include "damage.hpp"
#include "energy.hpp"
#include "health.hpp"
#include "size.hpp"
#include "stars.... | 15.857143 | 44 | 0.720721 | wtfsystems |
4cc7b5ebae3b2887407e1c7365e42cefabdf25f6 | 13,970 | cpp | C++ | src/bckp/08-12/a/waves.cpp | antocreo/BYO_Master | d92e049f10775d99fc6ef8aab7093c923142e664 | [
"MIT"
] | null | null | null | src/bckp/08-12/a/waves.cpp | antocreo/BYO_Master | d92e049f10775d99fc6ef8aab7093c923142e664 | [
"MIT"
] | 1 | 2017-02-12T15:28:29.000Z | 2017-02-23T10:34:04.000Z | src/bckp/08-12/a/waves.cpp | antocreo/BYO_Master | d92e049f10775d99fc6ef8aab7093c923142e664 | [
"MIT"
] | null | null | null | //
// Mfcc_obj.cpp
// OculusRenderingBasic
//
// Created by Let it Brain on 28/03/2015.
//
//
#include "Mfcc_obj.h"
#include "maximilian.h"/* include the lib */
#include "time.h"
//-------------------------------------------------------------
Mfcc_obj::Mfcc_obj() {
}
//--------------------------------------... | 26.358491 | 175 | 0.475734 | antocreo |
4cc7f3eb8d7ef3b806956583b7acec23cb238b21 | 2,133 | cpp | C++ | CmdPacketDownload.cpp | lotusczp/XcpMaster | 47cf2df7e111e823525347faf1cc6cbca6ec3c5d | [
"MIT"
] | 1 | 2021-09-04T12:23:20.000Z | 2021-09-04T12:23:20.000Z | CmdPacketDownload.cpp | lotusczp/XcpMaster | 47cf2df7e111e823525347faf1cc6cbca6ec3c5d | [
"MIT"
] | null | null | null | CmdPacketDownload.cpp | lotusczp/XcpMaster | 47cf2df7e111e823525347faf1cc6cbca6ec3c5d | [
"MIT"
] | 1 | 2021-11-16T06:57:56.000Z | 2021-11-16T06:57:56.000Z | #include "CmdPacketDownload.h"
CmdPacketDownload::CmdPacketDownload()
: CmdPacket()
{
m_idField.append(CTO::DOWNLOAD);
m_dataField.resize(5);
}
void CmdPacketDownload::setNumberOfDataElements(uint8_t a_byNum)
{
m_dataField[0] = a_byNum;
}
uint8_t CmdPacketDownload::getNumberOfDataElements()
{
ret... | 26.6625 | 141 | 0.524144 | lotusczp |
4cc7f41de52bf5dc37c2db2d46827347bc049e87 | 7,047 | cpp | C++ | src/BabylonCpp/src/cameras/inputs/follow_camera_keyboard_move_input.cpp | samdauwe/BabylonCpp | eea9f761a49bb460ff1324c20e4674ef120e94f1 | [
"Apache-2.0"
] | 277 | 2017-05-18T08:27:10.000Z | 2022-03-26T01:31:37.000Z | src/BabylonCpp/src/cameras/inputs/follow_camera_keyboard_move_input.cpp | samdauwe/BabylonCpp | eea9f761a49bb460ff1324c20e4674ef120e94f1 | [
"Apache-2.0"
] | 77 | 2017-09-03T15:35:02.000Z | 2022-03-28T18:47:20.000Z | src/BabylonCpp/src/cameras/inputs/follow_camera_keyboard_move_input.cpp | samdauwe/BabylonCpp | eea9f761a49bb460ff1324c20e4674ef120e94f1 | [
"Apache-2.0"
] | 37 | 2017-03-30T03:36:24.000Z | 2022-01-28T08:28:36.000Z | #include <babylon/cameras/inputs/follow_camera_keyboard_move_input.h>
#include <babylon/engines/engine.h>
#include <babylon/engines/scene.h>
#include <babylon/events/keyboard_event_types.h>
namespace BABYLON {
FollowCameraKeyboardMoveInput::FollowCameraKeyboardMoveInput()
: keysHeightOffsetModifierAlt{false}
... | 35.954082 | 100 | 0.660849 | samdauwe |
4cc87792db2800736bc48a6d16c62a5c8d2498e5 | 9,957 | cpp | C++ | p1-path-planning/class-quizzes/behavior-planner/behavior-planner/src/vehicle.cpp | Deborah-Digges/SDC-ND-term-3 | 23e879b6d6d0c2b3a3bb78802c50f6b023ba2076 | [
"Apache-2.0"
] | 1 | 2018-02-22T08:49:31.000Z | 2018-02-22T08:49:31.000Z | p1-path-planning/class-quizzes/behavior-planner/behavior-planner/src/vehicle.cpp | Deborah-Digges/SDC-ND-term-3 | 23e879b6d6d0c2b3a3bb78802c50f6b023ba2076 | [
"Apache-2.0"
] | null | null | null | p1-path-planning/class-quizzes/behavior-planner/behavior-planner/src/vehicle.cpp | Deborah-Digges/SDC-ND-term-3 | 23e879b6d6d0c2b3a3bb78802c50f6b023ba2076 | [
"Apache-2.0"
] | 4 | 2017-10-12T16:32:20.000Z | 2020-07-27T09:01:43.000Z | #include <iostream>
#include "vehicle.h"
#include <iostream>
#include <math.h>
#include <map>
#include <string>
#include <iterator>
/**
* Initializes Vehicle
*/
Vehicle::Vehicle(int lane, int s, int v, int a) {
this->lane = lane;
this->s = s;
this->v = v;
this->a = a;
state = "CS";
max_accel... | 25.335878 | 113 | 0.559506 | Deborah-Digges |
4cc95a026a02849a021e18ca1cf64d57ffdbea9f | 10,635 | cpp | C++ | src/RShaders.cpp | chilingg/Redopera | a898eb269d5d3eba9ba5b14ef9b4209f615f4547 | [
"MIT"
] | null | null | null | src/RShaders.cpp | chilingg/Redopera | a898eb269d5d3eba9ba5b14ef9b4209f615f4547 | [
"MIT"
] | null | null | null | src/RShaders.cpp | chilingg/Redopera | a898eb269d5d3eba9ba5b14ef9b4209f615f4547 | [
"MIT"
] | null | null | null | #include <RShaders.h>
#include <RDebug.h>
#include <stdexcept>
using namespace Redopera;
thread_local GLuint RRPI::current = 0;
thread_local int RRPI::count = 0;
RRPI::~RRPI()
{
--count;
if(count == 0)
{
glUseProgram(0);
current = 0;
}
}
void RRPI::setUniform(GLint loc, GLfloat v1) ... | 22.484144 | 110 | 0.653597 | chilingg |
4ccae1f6e170f819e22815cfdbf2b8839a4908f3 | 3,861 | cpp | C++ | GUIDialogs/HoldupsEditor/HoldupsEditor.cpp | FlowsheetSimulation/Dyssol-open | 557d57d959800868e1b3fd161b26cad16481382b | [
"BSD-3-Clause"
] | 7 | 2020-12-02T02:54:31.000Z | 2022-03-08T20:37:46.000Z | GUIDialogs/HoldupsEditor/HoldupsEditor.cpp | FlowsheetSimulation/Dyssol-open | 557d57d959800868e1b3fd161b26cad16481382b | [
"BSD-3-Clause"
] | 33 | 2021-03-26T12:20:18.000Z | 2022-02-23T11:37:56.000Z | GUIDialogs/HoldupsEditor/HoldupsEditor.cpp | FlowsheetSimulation/Dyssol-open | 557d57d959800868e1b3fd161b26cad16481382b | [
"BSD-3-Clause"
] | 6 | 2020-07-17T08:17:37.000Z | 2022-02-24T13:45:16.000Z | /* Copyright (c) 2020, Dyssol Development Team. All rights reserved. This file is part of Dyssol. See LICENSE file for license information. */
#include "HoldupsEditor.h"
#include "Flowsheet.h"
#include "BaseUnit.h"
#include "BaseStream.h"
CHoldupsEditor::CHoldupsEditor(CFlowsheet* _pFlowsheet, CMaterialsDataba... | 32.445378 | 182 | 0.72805 | FlowsheetSimulation |
4ccfeefe86cf13c8d9689491d05a34f89814a36e | 518 | cpp | C++ | LZL/Solution/codeforces/ok/A.cpp | xiyoulinuxgroup-2019-summer/TeamF | 7a661b172f7410583bd11335a3b049f9df8797a3 | [
"MIT"
] | null | null | null | LZL/Solution/codeforces/ok/A.cpp | xiyoulinuxgroup-2019-summer/TeamF | 7a661b172f7410583bd11335a3b049f9df8797a3 | [
"MIT"
] | null | null | null | LZL/Solution/codeforces/ok/A.cpp | xiyoulinuxgroup-2019-summer/TeamF | 7a661b172f7410583bd11335a3b049f9df8797a3 | [
"MIT"
] | 1 | 2019-07-15T06:28:11.000Z | 2019-07-15T06:28:11.000Z | #include<iostream>
#include<algorithm>
#include<string>
#include<map>
#include<set>
#include<unordered_map>
#include<list>
#include<vector>
#include<cstdlib>
#include<utility>
#include<cstring>
const int maxn=1010;
using namespace std;
map<int,int>mp;
int m,n,tmp;
int book[maxn];
int main()
{
cin >> m >> n;
for... | 16.1875 | 32 | 0.567568 | xiyoulinuxgroup-2019-summer |
4cd0d1b5223f8d472a242c18bec54efeb8e4b809 | 5,783 | cpp | C++ | test/src/tello/tello_test.cpp | LucaRitz/tello | 3874db477cc2ad6a7127494d4321baac440ac88e | [
"Apache-2.0"
] | 3 | 2021-01-05T15:49:12.000Z | 2021-06-30T12:42:04.000Z | test/src/tello/tello_test.cpp | LucaRitz/tello | 3874db477cc2ad6a7127494d4321baac440ac88e | [
"Apache-2.0"
] | 2 | 2020-08-15T09:47:44.000Z | 2020-08-29T12:52:17.000Z | test/src/tello/tello_test.cpp | LucaRitz/tello | 3874db477cc2ad6a7127494d4321baac440ac88e | [
"Apache-2.0"
] | 2 | 2021-01-12T12:00:14.000Z | 2021-02-11T12:50:42.000Z | #include <gtest/gtest.h>
#include <tello/tello.hpp>
#include <future>
#include <tello/response/query_response.hpp>
#define TELLO_IP_ADDRESS (ip_address)0xC0A80A01 // 192.168.10.1
using tello::Command;
using tello::Tello;
using tello::Response;
using tello::QueryResponse;
using tello::Status;
using std::string;
using ... | 36.14375 | 86 | 0.721771 | LucaRitz |
4cd592b82e5b2735686d0fc75528e0e179d03dea | 3,570 | cpp | C++ | samples/GuiAPI_PropertyWin/PropertyWin.cpp | odayibasi/swengine | ef07b7c9125d01596837a423a9f3dcbced1f5aa7 | [
"Zlib",
"MIT"
] | 3 | 2021-03-01T20:41:13.000Z | 2021-07-10T13:45:47.000Z | samples/GuiAPI_PropertyWin/PropertyWin.cpp | odayibasi/swengine | ef07b7c9125d01596837a423a9f3dcbced1f5aa7 | [
"Zlib",
"MIT"
] | null | null | null | samples/GuiAPI_PropertyWin/PropertyWin.cpp | odayibasi/swengine | ef07b7c9125d01596837a423a9f3dcbced1f5aa7 | [
"Zlib",
"MIT"
] | null | null | null | #include "../../include/SWEngine.h"
#pragma comment (lib,"../../lib/SWUtil.lib")
#pragma comment (lib,"../../lib/SWTypes.lib")
#pragma comment (lib,"../../lib/SWCore.lib")
#pragma comment (lib,"../../lib/SWEngine.lib")
#pragma comment (lib,"../../lib/SWGame.lib")
#pragma comment (lib,"../../lib/SWG... | 27.045455 | 93 | 0.721289 | odayibasi |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.