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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
663fdd1735b8195e4879844f2a98db8037ecdd06 | 4,596 | hpp | C++ | src/atmosphere/Atmosphere.hpp | dat14jpe/mulen | 33beeb8a38e5556ddd44efba909e18aab9a3d401 | [
"MIT"
] | 5 | 2020-01-15T12:49:45.000Z | 2021-11-24T05:15:59.000Z | src/atmosphere/Atmosphere.hpp | dat14jpe/mulen | 33beeb8a38e5556ddd44efba909e18aab9a3d401 | [
"MIT"
] | null | null | null | src/atmosphere/Atmosphere.hpp | dat14jpe/mulen | 33beeb8a38e5556ddd44efba909e18aab9a3d401 | [
"MIT"
] | null | null | null | #pragma once
#include "Common.hpp"
#include <vector>
#include "util/VertexArray.hpp"
#include "util/Framebuffer.hpp"
#include "Updater.hpp"
namespace Util {
class Timer;
}
namespace Mulen {
class Camera;
class LightSource;
}
namespace Mulen::Atmosphere {
class Atmosphere : public Object
{
... | 34.556391 | 159 | 0.631201 | dat14jpe |
6645b5fa3cfcb1b8f7806fc04811b36862d2bf2e | 1,155 | hpp | C++ | include/Xor.hpp | gryffyn/USW20_P2 | bfad201375a6388453b5b03633a12b5bba45c141 | [
"MIT"
] | null | null | null | include/Xor.hpp | gryffyn/USW20_P2 | bfad201375a6388453b5b03633a12b5bba45c141 | [
"MIT"
] | null | null | null | include/Xor.hpp | gryffyn/USW20_P2 | bfad201375a6388453b5b03633a12b5bba45c141 | [
"MIT"
] | null | null | null | //
// Created by gryffyn on 17/03/2020.
//
#ifndef USW20_P2_XOR_HPP
#define USW20_P2_XOR_HPP
#include <bitset>
#include <fstream>
#include <iostream>
#include <string>
#include <sstream>
#include <vector>
using namespace std;
namespace Xor {
vector<char> string_to_vector_char(string str) {
vector<char> cVector;... | 27.5 | 120 | 0.645022 | gryffyn |
664a7eee61a296bdb76ea53ae98e1a4faa3a9c5a | 2,170 | cpp | C++ | src/objects/data/variant.cpp | rationalis-petra/modulus | 194e4029b3085e89b7e35bb925fcba079905ef80 | [
"MIT"
] | 1 | 2021-09-24T19:45:18.000Z | 2021-09-24T19:45:18.000Z | src/objects/data/variant.cpp | rationalis-petra/modulus | 194e4029b3085e89b7e35bb925fcba079905ef80 | [
"MIT"
] | null | null | null | src/objects/data/variant.cpp | rationalis-petra/modulus | 194e4029b3085e89b7e35bb925fcba079905ef80 | [
"MIT"
] | null | null | null | #include "objects/data/variant.hpp"
#include "globals/parents.hpp"
using obj::Object;
using obj::Variant;
using obj::VariantCtor;
using obj::VariantCtorCurry;
using obj::VariantType;
mod::set<Object*> Variant::ps;
Variant::Variant(mod::vector<Object *> _vals, size_t _discriminator,
VariantType *_var... | 24.382022 | 94 | 0.692166 | rationalis-petra |
66506ca517c60c7db100817351c683de27aebe34 | 480 | cpp | C++ | project_source/source/unit_tests/test_SimpleBiquad.cpp | rpuhalovich/VPEQ | ea3fc1c19418c62d482ce8d0142cd69748c08b49 | [
"Apache-2.0"
] | null | null | null | project_source/source/unit_tests/test_SimpleBiquad.cpp | rpuhalovich/VPEQ | ea3fc1c19418c62d482ce8d0142cd69748c08b49 | [
"Apache-2.0"
] | null | null | null | project_source/source/unit_tests/test_SimpleBiquad.cpp | rpuhalovich/VPEQ | ea3fc1c19418c62d482ce8d0142cd69748c08b49 | [
"Apache-2.0"
] | null | null | null | // created by Ryan Puhalovich - http://github.com/rpuhalovich
// testing the simple biquad against the provided Biquad in fxobjects.h
#include <fxobjects.h>
#include "pch.hpp"
#include "unit_tests_utils.hpp"
#include "SimpleBiquad.hpp"
Biquad bi;
BiquadParameters biparams;
SimpleBiquad simpbi;
/*
void set_defaults(... | 20.869565 | 71 | 0.75625 | rpuhalovich |
5948820288e10e78289868463b15294f8bc32ab4 | 1,867 | cpp | C++ | solutions/lis.cpp | JDCRecomendable/online-judge-answers | 24234457c8b33f2ff7a412c928d88b55c9645b86 | [
"MIT"
] | 1 | 2021-07-14T01:23:54.000Z | 2021-07-14T01:23:54.000Z | solutions/lis.cpp | JDCRecomendable/online-judge-answers | 24234457c8b33f2ff7a412c928d88b55c9645b86 | [
"MIT"
] | null | null | null | solutions/lis.cpp | JDCRecomendable/online-judge-answers | 24234457c8b33f2ff7a412c928d88b55c9645b86 | [
"MIT"
] | null | null | null | /**
* Copyright (c) 2018 Jared Daniel Carbonell Recomendable.
*/
// #include <bits/stdc++.h> // non-standard, use only when compiling with G++
// <bits/stdc++.h> includes most header files from the C++ standard libraries,
// making it suitable for programming contests where speed determines rank, but
// not for task... | 25.575342 | 79 | 0.390466 | JDCRecomendable |
594a654de4285ae49db421fb96d6e22038777d7d | 4,334 | cpp | C++ | src/caffe/test/test_images_layer.cpp | RyanLiuNtust/caffe | b2b709b1491f745e18cfe2fdb843fefa4be57e51 | [
"BSD-2-Clause"
] | 1 | 2019-06-27T11:33:25.000Z | 2019-06-27T11:33:25.000Z | src/caffe/test/test_images_layer.cpp | silky/caffe | 86a3263fe5035a0caa341f88663d61c60efcddad | [
"BSD-2-Clause"
] | null | null | null | src/caffe/test/test_images_layer.cpp | silky/caffe | 86a3263fe5035a0caa341f88663d61c60efcddad | [
"BSD-2-Clause"
] | null | null | null | // Copyright 2014 Sergio Guadarrama
#include <cuda_runtime.h>
#include <iostream> // NOLINT(readability/streams)
#include <fstream> // NOLINT(readability/streams)
#include <string>
#include <vector>
#include "gtest/gtest.h"
#include "caffe/blob.hpp"
#include "caffe/common.hpp"
#include "caffe/filler.hpp"
#include ... | 32.833333 | 79 | 0.698892 | RyanLiuNtust |
594b54638fbe5a363f28f21b95333eb6a453619d | 902 | cpp | C++ | node_modules/lzz-gyp/lzz-source/smtc_PrintTmplClassDefn.cpp | SuperDizor/dizornator | 9f57dbb3f6af80283b4d977612c95190a3d47900 | [
"ISC"
] | 3 | 2019-09-18T16:44:33.000Z | 2021-03-29T13:45:27.000Z | node_modules/lzz-gyp/lzz-source/smtc_PrintTmplClassDefn.cpp | SuperDizor/dizornator | 9f57dbb3f6af80283b4d977612c95190a3d47900 | [
"ISC"
] | null | null | null | node_modules/lzz-gyp/lzz-source/smtc_PrintTmplClassDefn.cpp | SuperDizor/dizornator | 9f57dbb3f6af80283b4d977612c95190a3d47900 | [
"ISC"
] | 2 | 2019-03-29T01:06:38.000Z | 2019-09-18T16:44:34.000Z | // smtc_PrintTmplClassDefn.cpp
//
#include "smtc_PrintTmplClassDefn.h"
// semantic
#include "smtc_PrintClassDefn.h"
#include "smtc_PrintNsClose.h"
#include "smtc_PrintNsOpen.h"
#include "smtc_PrintTmplSpecSet.h"
#include "smtc_TmplClassDefn.h"
#define LZZ_INLINE inline
namespace smtc
{
void PrintTmplClassDefn::print... | 30.066667 | 121 | 0.748337 | SuperDizor |
594e204264f9f006c16c23241225d8ae5971f20c | 3,817 | cpp | C++ | src/LORE/Scene/Model.cpp | MemoryDealer/LORE | 2ce0c6cf03c119e5d1b0b90f3ee044901353283a | [
"MIT"
] | 2 | 2021-07-14T06:05:48.000Z | 2021-07-14T18:07:18.000Z | src/LORE/Scene/Model.cpp | MemoryDealer/LORE | 2ce0c6cf03c119e5d1b0b90f3ee044901353283a | [
"MIT"
] | null | null | null | src/LORE/Scene/Model.cpp | MemoryDealer/LORE | 2ce0c6cf03c119e5d1b0b90f3ee044901353283a | [
"MIT"
] | null | null | null | // ::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: //
// The MIT License (MIT)
// This source file is part of LORE
// ( Lightweight Object-oriented Rendering Engine )
//
// Copyright (c) 2017-2021 Jordan Sparks
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
... | 31.808333 | 126 | 0.537595 | MemoryDealer |
5951255929940b868162cdda29c2a27c0106ca90 | 1,562 | hpp | C++ | include/rivers/of.hpp | brevzin/rivers | cfbd4c3e0ca9fcde03075327d6dd628e57589342 | [
"BSL-1.0"
] | 5 | 2022-02-25T05:40:52.000Z | 2022-03-30T21:41:47.000Z | include/rivers/of.hpp | BRevzin/rivers | cfbd4c3e0ca9fcde03075327d6dd628e57589342 | [
"BSL-1.0"
] | null | null | null | include/rivers/of.hpp | BRevzin/rivers | cfbd4c3e0ca9fcde03075327d6dd628e57589342 | [
"BSL-1.0"
] | null | null | null | #ifndef RIVERS_OF_HPP
#define RIVERS_OF_HPP
#include <rivers/core.hpp>
#include <rivers/from.hpp>
////////////////////////////////////////////////////////////////////////////
// Convert specifically provided values to a River
// * from_values({1, 2, 3})
// * from_values(4, 5, 6)
// In each case, a vector is created f... | 24.40625 | 76 | 0.560819 | brevzin |
5958a6d058db26fd8d45d9a7be4d698f7f92b08b | 509 | hpp | C++ | include/ieompp/types/blaze.hpp | qftphys/Simulate-the-non-equilibrium-dynamics-of-Fermionic-systems | 48d36fecbe4bc12af90f104cdf1f9f68352c508c | [
"MIT"
] | 2 | 2021-01-18T14:35:43.000Z | 2022-03-22T15:12:49.000Z | include/ieompp/types/blaze.hpp | f-koehler/ieompp | 48d36fecbe4bc12af90f104cdf1f9f68352c508c | [
"MIT"
] | null | null | null | include/ieompp/types/blaze.hpp | f-koehler/ieompp | 48d36fecbe4bc12af90f104cdf1f9f68352c508c | [
"MIT"
] | null | null | null | #ifndef IEOMPP_TYPES_BLAZE_HPP_
#define IEOMPP_TYPES_BLAZE_HPP_
#include "ieompp/string.hpp"
#include "ieompp/types/blaze/dot_product.hpp"
#include "ieompp/types/blaze/matrix_insert.hpp"
#include "ieompp/types/blaze/multiply_assign.hpp"
#include "ieompp/types/blaze/traits.hpp"
#include <blaze/system/Version.h>
names... | 23.136364 | 87 | 0.744597 | qftphys |
596fd5baa25bb1c4379a37a2e94923961de2a88a | 12,759 | hpp | C++ | src/framework/include/uima/language.hpp | RoboSherlock/uimacpp_ros | 35acda4aa91f2203de9aae1ea31141a6710c8d1e | [
"Apache-2.0"
] | null | null | null | src/framework/include/uima/language.hpp | RoboSherlock/uimacpp_ros | 35acda4aa91f2203de9aae1ea31141a6710c8d1e | [
"Apache-2.0"
] | null | null | null | src/framework/include/uima/language.hpp | RoboSherlock/uimacpp_ros | 35acda4aa91f2203de9aae1ea31141a6710c8d1e | [
"Apache-2.0"
] | 1 | 2018-06-25T18:59:52.000Z | 2018-06-25T18:59:52.000Z | #ifndef UIMA_LANGUAGE_HPP
#define UIMA_LANGUAGE_HPP
/** \file language.hpp .
-----------------------------------------------------------------------------
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for ad... | 29.130137 | 93 | 0.573399 | RoboSherlock |
59710e0d650aea9cec5f60e8852d6fd1d31e0b1f | 11,767 | cpp | C++ | projects/Phantom.Code/phantom/lang/CompiledSource.cpp | vlmillet/Phantom.Code | 05ed65bc4a456e76da4b2d9da1fe3dabe64ba1b3 | [
"MIT"
] | null | null | null | projects/Phantom.Code/phantom/lang/CompiledSource.cpp | vlmillet/Phantom.Code | 05ed65bc4a456e76da4b2d9da1fe3dabe64ba1b3 | [
"MIT"
] | null | null | null | projects/Phantom.Code/phantom/lang/CompiledSource.cpp | vlmillet/Phantom.Code | 05ed65bc4a456e76da4b2d9da1fe3dabe64ba1b3 | [
"MIT"
] | null | null | null | // license [
// This file is part of the Phantom project. Copyright 2011-2020 Vivien Millet.
// Distributed under the MIT license. Text available here at
// https://github.com/vlmillet/phantom
// ]
#include "CompiledSource.h"
#include "Compiler.h"
#include "CppLite.h"
#include "Label.h"
#include "Language.h"
#include... | 29.4175 | 119 | 0.64171 | vlmillet |
59779a8ca6b32826e52b69bcfffa84193f9ba906 | 709 | hpp | C++ | Quadrilateral.hpp | tuanngocfun/Quadrilateral_Class_simple | 660059df418d43d48780cbada7d2ab0ac86a1a05 | [
"MIT"
] | null | null | null | Quadrilateral.hpp | tuanngocfun/Quadrilateral_Class_simple | 660059df418d43d48780cbada7d2ab0ac86a1a05 | [
"MIT"
] | null | null | null | Quadrilateral.hpp | tuanngocfun/Quadrilateral_Class_simple | 660059df418d43d48780cbada7d2ab0ac86a1a05 | [
"MIT"
] | null | null | null | #ifndef QUADRILATERAL_H
#define QUADRILATERAL_H
#include <iostream>
using namespace std;
class Quadrilateral
{
public:
Quadrilateral(double w1 = 1, double w2 = 1, double h = 1);
double getWidth1_() const;
void setWidth1_(double );
double getWidth2_() const;
void setWidth2_(double );
double get... | 24.448276 | 69 | 0.700987 | tuanngocfun |
597886cd81d48e207177faf17ba697660d0f55ec | 3,328 | hpp | C++ | datastructures/BinaryTreeNode.hpp | arupa-loka/lrep | 7ef6ce39e7527693f8fb7d62b80a69fa29adc295 | [
"Apache-2.0"
] | null | null | null | datastructures/BinaryTreeNode.hpp | arupa-loka/lrep | 7ef6ce39e7527693f8fb7d62b80a69fa29adc295 | [
"Apache-2.0"
] | null | null | null | datastructures/BinaryTreeNode.hpp | arupa-loka/lrep | 7ef6ce39e7527693f8fb7d62b80a69fa29adc295 | [
"Apache-2.0"
] | null | null | null | #ifndef _BINARY_TREE_NODE_HPP
#define _BINARY_TREE_NODE_HPP
#include <iostream>
template<class T>
class BinaryTreeNode
{
public:
BinaryTreeNode();
BinaryTreeNode(T iObj);
inline T getObj() const;
inline void setObj(T iObj);
inline BinaryTreeNode<T>* getLeft();
inline void setLeft(BinaryTreeNode<T>* iNode);
i... | 26.83871 | 123 | 0.689904 | arupa-loka |
59798714762ed0d5492e945a4f12e1342c1aeca2 | 4,195 | cpp | C++ | src/models/friendssortfilterproxymodel.cpp | Maledictus/mnemosy | d5fdc5fb3a23e82afede51f0390b77f0459a9d4d | [
"MIT"
] | 2 | 2016-08-28T18:15:07.000Z | 2017-04-25T23:16:40.000Z | src/models/friendssortfilterproxymodel.cpp | Maledictus/mnemosy | d5fdc5fb3a23e82afede51f0390b77f0459a9d4d | [
"MIT"
] | 16 | 2016-08-16T15:13:18.000Z | 2016-10-08T15:48:55.000Z | src/models/friendssortfilterproxymodel.cpp | Maledictus/harbour-mnemosy | d5fdc5fb3a23e82afede51f0390b77f0459a9d4d | [
"MIT"
] | null | null | null | /*
The MIT License(MIT)
Copyright (c) 2016-2018 Oleg Linkin <maledictusdemagog@gmail.com>
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files(the "Software"), to deal
in the Software without restriction, including without limitation the righ... | 28.154362 | 87 | 0.656257 | Maledictus |
59876b29a2b5b059757fea48c8a919496a4e24b9 | 1,833 | cpp | C++ | VIIL/src/renderer/OpenGL/OpenGLVertexArray.cpp | Vixnil/VIIL | 0057464a1bc6e938825cfdf59a977cbe53c03a00 | [
"Apache-2.0"
] | null | null | null | VIIL/src/renderer/OpenGL/OpenGLVertexArray.cpp | Vixnil/VIIL | 0057464a1bc6e938825cfdf59a977cbe53c03a00 | [
"Apache-2.0"
] | null | null | null | VIIL/src/renderer/OpenGL/OpenGLVertexArray.cpp | Vixnil/VIIL | 0057464a1bc6e938825cfdf59a977cbe53c03a00 | [
"Apache-2.0"
] | null | null | null | #include "core/standardUse.h"
#include "renderer/OpenGL/OpenGLVertexArray.h"
#include "renderer/OpenGL/OpenGLVertexBuffer.h"
namespace VIIL
{
OpenGLVertexArray::OpenGLVertexArray()
{
glGenVertexArrays(1, &vertexArray);
VL_ENGINE_TRACE("OpenGL Vertex Array constructed");
}
OpenGLVertexArray::~OpenGLVertexArray... | 24.118421 | 114 | 0.727223 | Vixnil |
599274603a676bd633398c09e086b45eae5957bd | 99 | hpp | C++ | source/blockarray2d.hpp | InjectorGames/TetrisGame | 9b80610e175b4efc3b804bd2efd284cb4e8e3608 | [
"Apache-2.0"
] | 2 | 2020-01-16T17:43:13.000Z | 2020-01-18T18:53:08.000Z | source/blockarray2d.hpp | InjectorGames/TetrisGame | 9b80610e175b4efc3b804bd2efd284cb4e8e3608 | [
"Apache-2.0"
] | 1 | 2020-01-16T19:08:51.000Z | 2020-01-16T20:47:11.000Z | source/blockarray2d.hpp | InjectorGames/TetrisGame | 9b80610e175b4efc3b804bd2efd284cb4e8e3608 | [
"Apache-2.0"
] | null | null | null | #pragma once
//#include "array2.h"
//class BlockArray2D
//{
//public:
// BlockArray2D();
//};
| 9.9 | 21 | 0.59596 | InjectorGames |
5996d09869d6d2aa83b262e9cedbe8d91c68c57f | 529 | cpp | C++ | src/ByteArray.cpp | smartdu/kafkaclient-cpp | 03d108808a50a13d7a26e63461a1ac27c5bc141c | [
"Apache-2.0"
] | 5 | 2019-04-29T11:09:55.000Z | 2019-11-28T02:53:59.000Z | src/ByteArray.cpp | smartdu/kafkaclient-cpp | 03d108808a50a13d7a26e63461a1ac27c5bc141c | [
"Apache-2.0"
] | 2 | 2019-05-10T09:37:49.000Z | 2019-05-14T02:40:16.000Z | src/ByteArray.cpp | smartdu/kafkaclient-cpp | 03d108808a50a13d7a26e63461a1ac27c5bc141c | [
"Apache-2.0"
] | 1 | 2019-05-10T10:07:50.000Z | 2019-05-10T10:07:50.000Z | #include "ByteArray.h"
#include <string>
#include <string.h>
#include "String0.h"
ByteArray::ByteArray(const char *data, int size)
{
size_ = size;
data_ = (char*)malloc(size);
memcpy(data_, data, size_);
}
ByteArray::ByteArray(String *o)
{
size_ = *o;
data_ = (char*)malloc(size_);
memcpy(data_, ... | 16.53125 | 49 | 0.616257 | smartdu |
599dcc017278c2f41f508e28ea46ae6b8b979b4f | 5,914 | cpp | C++ | Source/WebCore/platform/graphics/GLContext.cpp | ijsf/DeniseEmbeddableWebKit | 57dfc6783d60f8f59b7129874e60f84d8c8556c9 | [
"BSD-3-Clause"
] | 1 | 2020-05-25T16:06:49.000Z | 2020-05-25T16:06:49.000Z | WebLayoutCore/Source/WebCore/platform/graphics/GLContext.cpp | gubaojian/trylearn | 74dd5c6c977f8d867d6aa360b84bc98cb82f480c | [
"MIT"
] | 9 | 2020-04-18T18:47:18.000Z | 2020-04-18T18:52:41.000Z | Source/WebCore/platform/graphics/GLContext.cpp | ijsf/DeniseEmbeddableWebKit | 57dfc6783d60f8f59b7129874e60f84d8c8556c9 | [
"BSD-3-Clause"
] | 1 | 2018-07-10T10:53:18.000Z | 2018-07-10T10:53:18.000Z | /*
* Copyright (C) 2011, 2012 Igalia, S.L.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2 of the License, or (at your option) any later version.
*
* Thi... | 29.57 | 127 | 0.70257 | ijsf |
599ec8434819ce532dd9a06f5a216a675a6bc5e9 | 2,431 | cpp | C++ | Src/lunaui/launcher/QuicklaunchLayout.cpp | ericblade/luna-sysmgr | 82d5d7ced4ba21d3802eb2c8ae063236b6562331 | [
"Apache-2.0"
] | 3 | 2018-11-16T14:51:17.000Z | 2019-11-21T10:55:24.000Z | Src/lunaui/launcher/QuicklaunchLayout.cpp | penk/luna-sysmgr | 60c7056a734cdb55a718507f3a739839c9d74edf | [
"Apache-2.0"
] | 1 | 2021-02-20T13:12:15.000Z | 2021-02-20T13:12:15.000Z | Src/lunaui/launcher/QuicklaunchLayout.cpp | ericblade/luna-sysmgr | 82d5d7ced4ba21d3802eb2c8ae063236b6562331 | [
"Apache-2.0"
] | null | null | null | /* @@@LICENSE
*
* Copyright (c) 2010-2012 Hewlett-Packard Development Company, L.P.
*
* 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
*
* Unl... | 21.324561 | 102 | 0.706294 | ericblade |
59a009cfd60f6478711963821082edc2ad101936 | 6,162 | cpp | C++ | Geometry/Delaunay Triangulation.cpp | bazzyadb/all-code | cf3039641b5aa84b1c5b184a95d69bd4091974c9 | [
"MIT"
] | 1,639 | 2021-09-15T09:12:06.000Z | 2022-03-31T22:58:57.000Z | Geometry/Delaunay Triangulation.cpp | bazzyadb/all-code | cf3039641b5aa84b1c5b184a95d69bd4091974c9 | [
"MIT"
] | 16 | 2022-01-15T17:50:08.000Z | 2022-01-28T12:55:21.000Z | Geometry/Delaunay Triangulation.cpp | bazzyadb/all-code | cf3039641b5aa84b1c5b184a95d69bd4091974c9 | [
"MIT"
] | 444 | 2021-09-15T09:17:41.000Z | 2022-03-29T18:21:46.000Z | #include<bits/stdc++.h>
using namespace std;
const int N = 3e5 + 9;
int sign(long long x) { return (x > 0) - (x < 0); }
struct PT {
long long x, y;
PT() { x = 0, y = 0; }
PT(long long x, long long y) : x(x), y(y) {}
PT(const PT &p) : x(p.x), y(p.y) {}
PT operator + (const PT &a) cons... | 38.754717 | 94 | 0.472898 | bazzyadb |
59a167403b230fce33f885e406d43fa0dbd53f2e | 2,178 | cpp | C++ | Code/Client/ClientUI/Source/MobileStatusDlg.cpp | MarvinGeng/TinyIM | 01c1c2e257e85caf8afa5ac5ecc4d5295fb0d710 | [
"MIT"
] | null | null | null | Code/Client/ClientUI/Source/MobileStatusDlg.cpp | MarvinGeng/TinyIM | 01c1c2e257e85caf8afa5ac5ecc4d5295fb0d710 | [
"MIT"
] | null | null | null | Code/Client/ClientUI/Source/MobileStatusDlg.cpp | MarvinGeng/TinyIM | 01c1c2e257e85caf8afa5ac5ecc4d5295fb0d710 | [
"MIT"
] | 1 | 2022-01-15T03:18:26.000Z | 2022-01-15T03:18:26.000Z | #include "stdafx.h"
#include "MobileStatusDlg.h"
#include "Utils.h"
#include "GDIFactory.h"
#define ID_AUTO_DISAPPEAR_TIMER_ID 0xD0
CMobileStatusDlg::CMobileStatusDlg(void)
{
memset(m_szWindowTitle, 0, sizeof(m_szWindowTitle));
memset(m_szInfoText, 0, sizeof(m_szInfoText));
m_bEnableAutoDisappear = TRUE;
m_Time... | 22.6875 | 138 | 0.772268 | MarvinGeng |
59a1a1833a0d2b70517fe89e39bd560d2dc81348 | 7,410 | hpp | C++ | Match3/include/Match3/Board.hpp | Mizux/match3 | 2c818389d2037b38364bc53404faed18a2371920 | [
"Apache-2.0"
] | null | null | null | Match3/include/Match3/Board.hpp | Mizux/match3 | 2c818389d2037b38364bc53404faed18a2371920 | [
"Apache-2.0"
] | null | null | null | Match3/include/Match3/Board.hpp | Mizux/match3 | 2c818389d2037b38364bc53404faed18a2371920 | [
"Apache-2.0"
] | null | null | null | //! @file
#pragma once
#include "Cell.hpp"
#include "Item.hpp"
#include "Size.hpp"
#include "Types.hpp"
#include <memory>
#include <ostream>
#include <unordered_set>
namespace match3 {
class Cell;
using CellPtr = std::shared_ptr<match3::Cell>;
using ConstCellPtr = std::shared_ptr<const match3::Cell>;
class Item;... | 39.83871 | 81 | 0.708097 | Mizux |
59a302c75d62e064688042a7b36b11ed031098a6 | 435 | cpp | C++ | cppLib/code/Map/TransformMap.cpp | DrYaling/ProcedureContentGenerationForUnity | 3c4f1e70b01e4fe2b9f847324b60b15016b9a740 | [
"MIT"
] | 3 | 2019-05-14T07:19:59.000Z | 2019-05-14T08:08:25.000Z | cppLib/code/Map/TransformMap.cpp | DrYaling/ProcedureContentGenerationForUnity | 3c4f1e70b01e4fe2b9f847324b60b15016b9a740 | [
"MIT"
] | null | null | null | cppLib/code/Map/TransformMap.cpp | DrYaling/ProcedureContentGenerationForUnity | 3c4f1e70b01e4fe2b9f847324b60b15016b9a740 | [
"MIT"
] | 1 | 2018-08-08T07:39:16.000Z | 2018-08-08T07:39:16.000Z | #include "TransformMap.h"
namespace transformMap
{
static std::string pEngineDir;
void Initilize(std::string dir)
{
pEngineDir = dir;
}
std::string GetEngineDir()
{
return pEngineDir;
}
void ClearTransformMapTrees()
{
}
void InitTransformMap(const char * engineDir)
{
Initilize(engineDir);
}
void... | 14.032258 | 54 | 0.714943 | DrYaling |
59a621dc2ff8455c98ac9b015dc10bea896e95d9 | 2,469 | hpp | C++ | include/LogUtilities/LogFilterLevel.hpp | Nuovations/LogUtilities | 8a367c33757dcf5a7df9ad5abbdc833e6cc21437 | [
"Apache-2.0"
] | 1 | 2021-03-02T20:55:22.000Z | 2021-03-02T20:55:22.000Z | include/LogUtilities/LogFilterLevel.hpp | Nuovations/LogUtilities | 8a367c33757dcf5a7df9ad5abbdc833e6cc21437 | [
"Apache-2.0"
] | null | null | null | include/LogUtilities/LogFilterLevel.hpp | Nuovations/LogUtilities | 8a367c33757dcf5a7df9ad5abbdc833e6cc21437 | [
"Apache-2.0"
] | null | null | null | /*
* Copyright (c) 2008-2021 Nuovation System Designs, LLC
* 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/licen... | 31.653846 | 215 | 0.597003 | Nuovations |
59aa199f0a6681e00c43a25be90c28e0d0755926 | 3,402 | cpp | C++ | TestGround/src/Application.cpp | dovker/Clap | 24e45bbad8ac96099c912cb924cf620b9882612d | [
"Apache-2.0"
] | 1 | 2021-09-17T23:30:52.000Z | 2021-09-17T23:30:52.000Z | TestGround/src/Application.cpp | dovker/Clap | 24e45bbad8ac96099c912cb924cf620b9882612d | [
"Apache-2.0"
] | null | null | null | TestGround/src/Application.cpp | dovker/Clap | 24e45bbad8ac96099c912cb924cf620b9882612d | [
"Apache-2.0"
] | null | null | null | #include <glm/glm.hpp>
#include "Clap.h"
using namespace Clap;
bool running = true;
void OnEvent(Event& e)
{
switch(e.Type)
{
case EventType::WindowClose:
running = false;
break;
default: break;
}
}
struct CameraBuffer
{
glm::mat4 ViewProjection;
};
struct ModelD... | 28.35 | 150 | 0.581129 | dovker |
59b117ad12f7d12b64974ee78963bd0a48167af1 | 3,962 | cpp | C++ | src/core/dist_tensor/redistribute/reduceRedist.cpp | mdschatz/rote | 111e965c6365c605f9872ee8302b1170565a3002 | [
"BSD-3-Clause"
] | null | null | null | src/core/dist_tensor/redistribute/reduceRedist.cpp | mdschatz/rote | 111e965c6365c605f9872ee8302b1170565a3002 | [
"BSD-3-Clause"
] | null | null | null | src/core/dist_tensor/redistribute/reduceRedist.cpp | mdschatz/rote | 111e965c6365c605f9872ee8302b1170565a3002 | [
"BSD-3-Clause"
] | 2 | 2018-07-21T15:39:45.000Z | 2021-02-09T20:34:50.000Z | /*
Copyright (c) 2009-2013, Jack Poulson
2013, Jeff Hammond
2013, Jed Brown
All rights reserved.
This file is part of Elemental and is under the BSD 2-Clause License,
which can be found in the LICENSE file in the root directory, or at
http://opensource.org/lic... | 31.951613 | 145 | 0.630742 | mdschatz |
59b87ac0a81f32c6482ca38e0eb3d7b86e3a4f34 | 4,987 | cpp | C++ | src/packagesmodel.cpp | black-sheep-dev/harbour-mlsmanager | 83cb7d608fff5137978bbde05e81a3ba94644c4e | [
"MIT"
] | 3 | 2021-02-06T21:45:45.000Z | 2021-03-12T12:42:52.000Z | src/packagesmodel.cpp | black-sheep-dev/harbour-mlsmanager | 83cb7d608fff5137978bbde05e81a3ba94644c4e | [
"MIT"
] | 5 | 2021-02-06T18:23:59.000Z | 2021-07-15T17:13:55.000Z | src/packagesmodel.cpp | black-sheep-dev/harbour-mlsmanager | 83cb7d608fff5137978bbde05e81a3ba94644c4e | [
"MIT"
] | 3 | 2021-02-06T21:46:05.000Z | 2021-07-14T13:32:04.000Z | #include "packagesmodel.h"
PackagesModel::PackagesModel(QObject *parent) :
QAbstractListModel(parent)
{
}
Package PackagesModel::packageByCode(const QString &code) const
{
for (const auto &pkg : m_packages) {
if (pkg.code == code)
return pkg;
}
return Package();
}
QList<Package>... | 23.303738 | 96 | 0.585322 | black-sheep-dev |
59bcf487fb846325dfe326e6891596adea976119 | 7,624 | hpp | C++ | src/common/KokkosKernels_ExecSpaceUtils.hpp | kyungjoo-kim/kokkos-kernels | 92396a43e47e39db36bc33e3806209f38a6eb829 | [
"BSD-3-Clause"
] | null | null | null | src/common/KokkosKernels_ExecSpaceUtils.hpp | kyungjoo-kim/kokkos-kernels | 92396a43e47e39db36bc33e3806209f38a6eb829 | [
"BSD-3-Clause"
] | 1 | 2022-01-04T17:45:35.000Z | 2022-01-04T17:45:35.000Z | src/common/KokkosKernels_ExecSpaceUtils.hpp | vqd8a/kokkos-kernels | fe439b2100bfd1a8913f66506bfe14ce94552237 | [
"BSD-3-Clause"
] | null | null | null | /*
//@HEADER
// ************************************************************************
//
// Kokkos v. 3.0
// Copyright (2020) National Technology & Engineering
// Solutions of Sandia, LLC (NTESS).
//
// Under the terms of Contract DE-NA0003525 with NTESS,
// the U.S. Govern... | 28.447761 | 138 | 0.712749 | kyungjoo-kim |
59c0741677b27dd215ccaf4248a6ffd6f143ed8e | 3,235 | hpp | C++ | PolyEngine/Core/Src/Math/Vector2f.hpp | PiotrMoscicki/PolyEngine | 573c453e9d1ae0a351ad14410595ff844e3b4620 | [
"MIT"
] | 65 | 2017-04-04T20:33:44.000Z | 2019-12-02T23:06:58.000Z | PolyEngine/Core/Src/Math/Vector2f.hpp | PiotrMoscicki/PolyEngine | 573c453e9d1ae0a351ad14410595ff844e3b4620 | [
"MIT"
] | 46 | 2017-04-21T12:26:38.000Z | 2019-12-15T05:31:47.000Z | PolyEngine/Core/Src/Math/Vector2f.hpp | PiotrMoscicki/PolyEngine | 573c453e9d1ae0a351ad14410595ff844e3b4620 | [
"MIT"
] | 51 | 2017-04-12T10:53:32.000Z | 2019-11-20T13:05:54.000Z | #pragma once
#include <Defines.hpp>
#include <Math/BasicMath.hpp>
namespace Poly
{
class Vector2i;
/// <summary>Class representing 2D float vector.</summary>
class CORE_DLLEXPORT Vector2f final : public BaseObjectLiteralType<>
{
public:
static const Vector2f ZERO;
static const Vector2f ONE;
static const ... | 32.029703 | 93 | 0.693354 | PiotrMoscicki |
59c2cc6ec2336747ecf3661002119f4f6c09b649 | 778 | cpp | C++ | src/main.cpp | gilliardrodrigues/tp3_alg1 | 15e20c4958750e259de81db37f4847dc263eee4c | [
"MIT"
] | null | null | null | src/main.cpp | gilliardrodrigues/tp3_alg1 | 15e20c4958750e259de81db37f4847dc263eee4c | [
"MIT"
] | null | null | null | src/main.cpp | gilliardrodrigues/tp3_alg1 | 15e20c4958750e259de81db37f4847dc263eee4c | [
"MIT"
] | null | null | null | #include <iostream>
#include "escala.h"
#include "sistema.h"
using namespace std;
int main()
{
int N; // Quantidade de escalas a serem percorridas até chegar ao destino final;
int D; // Quantidade máxima de escalas com descontos cumulativos no intervalo T;
int T; // Intervalo máximo para aplicação dos des... | 33.826087 | 89 | 0.619537 | gilliardrodrigues |
59c3181c9127106b61be7f5cd829638a3ddb74f4 | 1,480 | cpp | C++ | src/Plugins/MetabufLoaderPlugin/LoaderResourceSound.cpp | irov/Mengine | b76e9f8037325dd826d4f2f17893ac2b236edad8 | [
"MIT"
] | 39 | 2016-04-21T03:25:26.000Z | 2022-01-19T14:16:38.000Z | src/Plugins/MetabufLoaderPlugin/LoaderResourceSound.cpp | irov/Mengine | b76e9f8037325dd826d4f2f17893ac2b236edad8 | [
"MIT"
] | 23 | 2016-06-28T13:03:17.000Z | 2022-02-02T10:11:54.000Z | src/Plugins/MetabufLoaderPlugin/LoaderResourceSound.cpp | irov/Mengine | b76e9f8037325dd826d4f2f17893ac2b236edad8 | [
"MIT"
] | 14 | 2016-06-22T20:45:37.000Z | 2021-07-05T12:25:19.000Z | #include "LoaderResourceSound.h"
#include "Kernel/ResourceSound.h"
#include "Metacode/Metacode.h"
namespace Mengine
{
//////////////////////////////////////////////////////////////////////////
LoaderResourceSound::LoaderResourceSound()
{
}
/////////////////////////////////////////////////////////... | 38.947368 | 109 | 0.561486 | irov |
59c979e883dbcd7ed40466e047e5fdaba82c0e8d | 2,866 | cpp | C++ | Datatypes/Tests/PointTests.cpp | DeltaEngine/DeltaEngineCpp | 7be036473927750a89b8ccaefd425c07d7dd3319 | [
"Apache-2.0"
] | 7 | 2015-02-01T21:03:22.000Z | 2021-06-29T03:27:28.000Z | Datatypes/Tests/PointTests.cpp | DeltaEngine/DeltaEngineCpp | 7be036473927750a89b8ccaefd425c07d7dd3319 | [
"Apache-2.0"
] | null | null | null | Datatypes/Tests/PointTests.cpp | DeltaEngine/DeltaEngineCpp | 7be036473927750a89b8ccaefd425c07d7dd3319 | [
"Apache-2.0"
] | 7 | 2015-02-19T11:46:56.000Z | 2019-08-17T12:37:04.000Z | #include "CppUnitTest.h"
#include "Core/Tests/CppUnitTestCoreSupport.h"
#include "CppUnitTestDatatypesSupport.h"
#include "Datatypes/Point.h"
#include "Datatypes/Size.h"
using namespace Microsoft::VisualStudio::CppUnitTestFramework;
using namespace DeltaEngine::Datatypes;
using namespace DeltaEngine::Core;
namespace ... | 23.300813 | 83 | 0.633636 | DeltaEngine |
59c9948c6771048cf59bd9a1f745ca95511e8566 | 599 | hpp | C++ | src/game/server/entities/nade.hpp | inherited/gravctf | 52e09d190a7464dfeb320e95e9ea1d690c8986b9 | [
"Zlib"
] | 1 | 2016-05-09T10:39:37.000Z | 2016-05-09T10:39:37.000Z | src/game/server/entities/nade.hpp | inherited/gravctf | 52e09d190a7464dfeb320e95e9ea1d690c8986b9 | [
"Zlib"
] | null | null | null | src/game/server/entities/nade.hpp | inherited/gravctf | 52e09d190a7464dfeb320e95e9ea1d690c8986b9 | [
"Zlib"
] | null | null | null | /* nade launcher projectile */
#ifndef NADE_H
#define NADE_H
#include <game/server/entity.hpp>
#include <game/generated/gs_data.hpp>
#include <game/generated/g_protocol.hpp>
#include <game/gamecore.hpp>
#include "physentity.hpp"
class projectileNade : public PHYS_ENTITY
{
protected:
virtual bool _is_colliding... | 22.185185 | 69 | 0.72788 | inherited |
59c9ac06e6043e54b0557a99d3c09c2696b32457 | 917 | cc | C++ | src/sim/mysql/mysql.cc | varqox/sim | b115a4e858dda1288917243e511751b835c28482 | [
"MIT"
] | 12 | 2017-11-05T21:02:58.000Z | 2022-03-28T23:11:51.000Z | src/sim/mysql/mysql.cc | varqox/sim | b115a4e858dda1288917243e511751b835c28482 | [
"MIT"
] | 11 | 2017-01-05T18:11:41.000Z | 2019-11-01T12:40:55.000Z | src/sim/mysql/mysql.cc | krzyk240/sim | b115a4e858dda1288917243e511751b835c28482 | [
"MIT"
] | 6 | 2016-12-25T11:22:34.000Z | 2020-10-20T16:03:51.000Z | #include "sim/mysql/mysql.hh"
#include "simlib/config_file.hh"
namespace sim::mysql {
Connection make_conn_with_credential_file(FilePath filename) {
ConfigFile cf;
cf.add_vars("host", "user", "password", "db");
cf.load_config_from_file(filename);
for (const auto& it : cf.get_vars()) {
if (it.... | 26.970588 | 88 | 0.570338 | varqox |
59ca631ff99fa8b13abde6a09016baeb89e6c8e6 | 2,329 | cpp | C++ | YorozuyaGSLib/source/CMoveMapLimitRightInfoList.cpp | lemkova/Yorozuya | f445d800078d9aba5de28f122cedfa03f26a38e4 | [
"MIT"
] | 29 | 2017-07-01T23:08:31.000Z | 2022-02-19T10:22:45.000Z | YorozuyaGSLib/source/CMoveMapLimitRightInfoList.cpp | kotopes/Yorozuya | 605c97d3a627a8f6545cc09f2a1b0a8afdedd33a | [
"MIT"
] | 90 | 2017-10-18T21:24:51.000Z | 2019-06-06T02:30:33.000Z | YorozuyaGSLib/source/CMoveMapLimitRightInfoList.cpp | kotopes/Yorozuya | 605c97d3a627a8f6545cc09f2a1b0a8afdedd33a | [
"MIT"
] | 44 | 2017-12-19T08:02:59.000Z | 2022-02-24T23:15:01.000Z | #include <CMoveMapLimitRightInfoList.hpp>
START_ATF_NAMESPACE
CMoveMapLimitRightInfoList::CMoveMapLimitRightInfoList()
{
using org_ptr = void (WINAPIV*)(struct CMoveMapLimitRightInfoList*);
(org_ptr(0x1403a1e10L))(this);
};
void CMoveMapLimitRightInfoList::ctor_CMoveMapLimitRightInfoLi... | 41.589286 | 123 | 0.701589 | lemkova |
59ce490e63c511b5fc40eccd1e961646976afefa | 1,356 | cxx | C++ | quiz/find_duplicate_number/O_N.cxx | qgp9/codes_book | 7acd46201a79a31e6d36083b61a05cb0180c2169 | [
"MIT"
] | null | null | null | quiz/find_duplicate_number/O_N.cxx | qgp9/codes_book | 7acd46201a79a31e6d36083b61a05cb0180c2169 | [
"MIT"
] | null | null | null | quiz/find_duplicate_number/O_N.cxx | qgp9/codes_book | 7acd46201a79a31e6d36083b61a05cb0180c2169 | [
"MIT"
] | null | null | null | /*
https://leetcode.com/problems/find-the-duplicate-number/
287. Find the Duplicate Number
*/
#include <cstdio>
#include <iostream>
#include <vector>
#include <cstdlib>
#include <ctime>
using namespace std;
class Solution {
public:
int findDuplicate(vector<int>& nums) {
int slow_ptr = 0;
int fas... | 24.214286 | 91 | 0.533186 | qgp9 |
59e397d8aeb8f6f0303c07a1bb9334fcb8d1995c | 8,083 | cc | C++ | flag/flag.cc | eaugeas/crossroads | 9dc1ea074a9bf59e4b6aa61ce75f93ee953ee05d | [
"MIT"
] | null | null | null | flag/flag.cc | eaugeas/crossroads | 9dc1ea074a9bf59e4b6aa61ce75f93ee953ee05d | [
"MIT"
] | null | null | null | flag/flag.cc | eaugeas/crossroads | 9dc1ea074a9bf59e4b6aa61ce75f93ee953ee05d | [
"MIT"
] | null | null | null | // Copyright (c) 2019, tlblanc <tlblanc1490 at gmail dot com>
#include <string.h>
#include "flag.hpp"
#include "value/string_utils.hpp"
static uint8_t _ascii_to_flag(uint8_t ascii) {
if (ascii >= 48 && ascii <= 57) {
return ascii - 48;
} else if (ascii >= 65 && ascii <= 90) {
return ascii - 65 + 10;
... | 25.742038 | 77 | 0.519238 | eaugeas |
59e857e27ad069edcfdc9181c65de5424f094dc1 | 3,356 | cpp | C++ | src/main.cpp | maelhos/Factor | b67e5cc268170e06aa1e6109b48b91873f8c8d89 | [
"MIT"
] | null | null | null | src/main.cpp | maelhos/Factor | b67e5cc268170e06aa1e6109b48b91873f8c8d89 | [
"MIT"
] | null | null | null | src/main.cpp | maelhos/Factor | b67e5cc268170e06aa1e6109b48b91873f8c8d89 | [
"MIT"
] | null | null | null | #include <iostream>
#include <gmp.h>
#include <chrono>
#include <ctype.h>
#include <cstring>
#include "util.h"
#include "benchmark.h"
#include "autofactor.h"
#include "FactorLookup.h"
#include "Fermat.h"
#include "PollarRho.h"
#include "Brent.h"
#include "Dixon.h"
uint64_t benchMarkBitLength = 10;
void print_usage... | 27.735537 | 124 | 0.571216 | maelhos |
59f0c6acba409113e0eac311d259fc1c18fc7c73 | 413 | cpp | C++ | ass5/Point.cpp | starcraft66/COEN244-Winter-2020-Assignments | b4497a0fd6c916c5beedd52ea39da5b40c692a2d | [
"BSD-3-Clause"
] | 2 | 2020-07-01T01:10:57.000Z | 2021-07-24T15:01:33.000Z | ass5/Point.cpp | starcraft66/COEN244-Winter-2020-Assignments | b4497a0fd6c916c5beedd52ea39da5b40c692a2d | [
"BSD-3-Clause"
] | null | null | null | ass5/Point.cpp | starcraft66/COEN244-Winter-2020-Assignments | b4497a0fd6c916c5beedd52ea39da5b40c692a2d | [
"BSD-3-Clause"
] | null | null | null | #include "Point.hpp"
#include <iostream>
Point::Point()
{
this->x_coor = 0.0;
this->y_coor = 0.0;
}
Point::Point(double x, double y)
{
this->x_coor = x;
this->y_coor = y;
}
double Point::GetX()
{
return this->x_coor;
}
double Point::GetY()
{
return this->y_coor;
}
std::string Point::Print()... | 14.241379 | 88 | 0.595642 | starcraft66 |
59f6b2ca38c72d24402cf3863423049d1e7068a2 | 4,655 | hpp | C++ | include/neolib/optional.hpp | AndreasMartin72/neolib | fc0144cc208a5f7444d3fe70007f77f80d51a505 | [
"BSD-3-Clause"
] | null | null | null | include/neolib/optional.hpp | AndreasMartin72/neolib | fc0144cc208a5f7444d3fe70007f77f80d51a505 | [
"BSD-3-Clause"
] | null | null | null | include/neolib/optional.hpp | AndreasMartin72/neolib | fc0144cc208a5f7444d3fe70007f77f80d51a505 | [
"BSD-3-Clause"
] | null | null | null | // optional.hpp - v1.3
/*
* Copyright (c) 2007 Leigh Johnston.
*
* 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 ... | 28.558282 | 100 | 0.668314 | AndreasMartin72 |
59f7d440a60a48a935738205e07d6aadbe96b981 | 1,771 | cpp | C++ | Neural_Network_Library_Windows/Source_Files/Neural_Network/Neural_Network__Batch_Renormalization.cpp | SebastienKeroack/MyEA | 5130056735199595c28c274cf67e7addb280aabc | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | Neural_Network_Library_Windows/Source_Files/Neural_Network/Neural_Network__Batch_Renormalization.cpp | SebastienKeroack/MyEA | 5130056735199595c28c274cf67e7addb280aabc | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | Neural_Network_Library_Windows/Source_Files/Neural_Network/Neural_Network__Batch_Renormalization.cpp | SebastienKeroack/MyEA | 5130056735199595c28c274cf67e7addb280aabc | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | /* Copyright 2020 Sébastien Kéroack. 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... | 37.680851 | 120 | 0.778091 | SebastienKeroack |
59fa3e1872a4a4fdfd05390a7645f1a6fe96600a | 2,464 | cpp | C++ | FdStream.cpp | jotolo2/vncmanager | ea26a243314b3325f7789c520741af0cc7fe2497 | [
"MIT"
] | 4 | 2017-05-05T15:33:44.000Z | 2020-04-17T08:41:51.000Z | FdStream.cpp | jotolo2/vncmanager | ea26a243314b3325f7789c520741af0cc7fe2497 | [
"MIT"
] | 3 | 2018-02-20T12:43:38.000Z | 2019-10-28T13:34:40.000Z | FdStream.cpp | jotolo2/vncmanager | ea26a243314b3325f7789c520741af0cc7fe2497 | [
"MIT"
] | 3 | 2019-09-19T08:17:28.000Z | 2020-07-10T17:51:22.000Z | /*
* Copyright (c) 2016 Michal Srb <michalsrb@gmail.com>
*
* Permission is hereby granted, free of charge, to any person
* obtaining a copy of this software and associated documentation
* files (the "Software"), to deal in the Software without
* restriction, including without limitation the rights to use,
* copy... | 24.156863 | 104 | 0.626218 | jotolo2 |
59fb20d24646ad904023fa5e51342b21b08748b3 | 562 | hpp | C++ | include/CppNet2/System.hpp | kmc7468/CppNet2 | 29b7279b6f4bf10a88e513b97acef02e2159cae9 | [
"MIT"
] | 8 | 2017-04-05T13:07:47.000Z | 2021-09-05T20:22:20.000Z | include/CppNet2/System.hpp | kmc7468/CppNet2 | 29b7279b6f4bf10a88e513b97acef02e2159cae9 | [
"MIT"
] | 1 | 2019-02-25T16:01:13.000Z | 2019-02-25T16:01:13.000Z | include/CppNet2/System.hpp | kmc7468/CppNet2 | 29b7279b6f4bf10a88e513b97acef02e2159cae9 | [
"MIT"
] | null | null | null | #include <CppNet2/System/ArgumentException.hpp>
#include <CppNet2/System/Boolean.hpp>
#include <CppNet2/System/Char.hpp>
#include <CppNet2/System/Double.hpp>
#include <CppNet2/System/Exception.hpp>
#include <CppNet2/System/ICloneable.hpp>
#include <CppNet2/System/IComparable.hpp>
#include <CppNet2/System/IDisposab... | 23.416667 | 47 | 0.784698 | kmc7468 |
59fde66aea580e41e2ed4bb9326862264540942f | 11,276 | cpp | C++ | src/scenes/mgsRileyDescending/mgsRileyDescending.cpp | SFPC/recoded | 934e1184c7502d192435c406e56b8a2106e9b6b4 | [
"MIT"
] | 64 | 2017-06-12T19:24:08.000Z | 2022-01-27T19:14:48.000Z | src/scenes/mgsRileyDescending/mgsRileyDescending.cpp | colaplate/recoded | 934e1184c7502d192435c406e56b8a2106e9b6b4 | [
"MIT"
] | 10 | 2017-06-13T10:38:39.000Z | 2017-11-15T11:21:05.000Z | src/scenes/mgsRileyDescending/mgsRileyDescending.cpp | colaplate/recoded | 934e1184c7502d192435c406e56b8a2106e9b6b4 | [
"MIT"
] | 24 | 2017-06-11T08:14:46.000Z | 2020-04-16T20:28:46.000Z |
#include "mgsRileyDescending.h"
#include "appConstants.h"
int lineColor = 0;
int strokeColor = 0;
int fillColor = 0;
//<<<<<<< HEAD
//=======
int rows=107;
int columns=10;
int numOfWaves=5;
// vector<vector<float>> myLines;
// myLines = { x, y, columns, rows, speed, accel, wavePeriod, wavePhase, distance };
// void... | 36.025559 | 151 | 0.580791 | SFPC |
940694c0719126c0e630fbcc833bb977ff552ba8 | 636 | hpp | C++ | cpp_d06_2019/hospital/SickKoalaList.hpp | AdamCyffka/cpp-pool-tek2 | a12d80007199b89da72b56f5995c7f69d0494f15 | [
"MIT"
] | null | null | null | cpp_d06_2019/hospital/SickKoalaList.hpp | AdamCyffka/cpp-pool-tek2 | a12d80007199b89da72b56f5995c7f69d0494f15 | [
"MIT"
] | null | null | null | cpp_d06_2019/hospital/SickKoalaList.hpp | AdamCyffka/cpp-pool-tek2 | a12d80007199b89da72b56f5995c7f69d0494f15 | [
"MIT"
] | 1 | 2021-01-23T15:47:13.000Z | 2021-01-23T15:47:13.000Z | /*
** EPITECH PROJECT, 2019
** cpp_d06_2019
** File description:
** SickKoalaList.hpp
*/
#ifndef SICK_KOALA_LIST_H
# define SICK_KOALA_LIST_H
#include <iostream>
#include <string>
#include "SickKoala.hpp"
class SickKoalaList
{
public:
SickKoalaList(SickKoala *koala);
~SickKoalaList();
bool isEnd();
void... | 19.272727 | 55 | 0.724843 | AdamCyffka |
940f85c75c57278249b011ba8fdbb832356b8f0d | 5,704 | cpp | C++ | KeshUI/Public/KeshUI/Container/KUIListRowContainer.cpp | Daekesh/KeshUI | 9cae4a74aab5bd33c526fedcb76264a66414a0dd | [
"MIT"
] | 19 | 2015-03-12T20:30:42.000Z | 2021-12-08T18:33:25.000Z | KeshUI/Public/KeshUI/Container/KUIListRowContainer.cpp | Daekesh/KeshUI | 9cae4a74aab5bd33c526fedcb76264a66414a0dd | [
"MIT"
] | 4 | 2015-03-14T12:26:54.000Z | 2016-04-21T12:51:02.000Z | KeshUI/Public/KeshUI/Container/KUIListRowContainer.cpp | Daekesh/KeshUI | 9cae4a74aab5bd33c526fedcb76264a66414a0dd | [
"MIT"
] | 10 | 2015-03-12T15:04:06.000Z | 2020-06-30T18:52:26.000Z | // Copyright 2014-2015 Matt Chapman. All Rights Reserved.
#include "KeshUI/KeshUI.h"
#include "KeshUI/Component/KUITextureInterfaceComponent.h"
#include "KeshUI/Component/KUITextInterfaceComponent.h"
#include "KeshUI/Container/KUIListContainer.h"
#include "KeshUI/Container/KUIListRowContainer.h"
UKUIListRowContainer... | 23.766667 | 122 | 0.758766 | Daekesh |
940fa5c24a1902b743fa5084e9d3fb2d514aec51 | 590 | hpp | C++ | include/stmt_cache.hpp | magicmoremagic/bengine-sqlite | 4e777cbbca9e64be5c49a24778847bf8e23fd99d | [
"MIT"
] | null | null | null | include/stmt_cache.hpp | magicmoremagic/bengine-sqlite | 4e777cbbca9e64be5c49a24778847bf8e23fd99d | [
"MIT"
] | null | null | null | include/stmt_cache.hpp | magicmoremagic/bengine-sqlite | 4e777cbbca9e64be5c49a24778847bf8e23fd99d | [
"MIT"
] | null | null | null | #pragma once
#ifndef BE_SQLITE_STMT_CACHE_HPP_
#define BE_SQLITE_STMT_CACHE_HPP_
#include "stmt_proxy.hpp"
namespace be::sqlite {
///////////////////////////////////////////////////////////////////////////////
class StmtCache {
public:
StmtProxy obtain(const S& sql);
StmtProxy obtain(const char* sql);
StmtP... | 21.071429 | 79 | 0.611864 | magicmoremagic |
9413c58451b10f4c1b1f9b93ca3c9f92141356dd | 113 | hxx | C++ | src/Providers/UNIXProviders/POTSModem/UNIX_POTSModem_STUB.hxx | brunolauze/openpegasus-providers-old | b00f1aad575bae144b8538bf57ba5fd5582a4ec7 | [
"MIT"
] | 1 | 2020-10-12T09:00:09.000Z | 2020-10-12T09:00:09.000Z | src/Providers/UNIXProviders/POTSModem/UNIX_POTSModem_STUB.hxx | brunolauze/openpegasus-providers-old | b00f1aad575bae144b8538bf57ba5fd5582a4ec7 | [
"MIT"
] | null | null | null | src/Providers/UNIXProviders/POTSModem/UNIX_POTSModem_STUB.hxx | brunolauze/openpegasus-providers-old | b00f1aad575bae144b8538bf57ba5fd5582a4ec7 | [
"MIT"
] | null | null | null | #ifdef PEGASUS_OS_STUB
#ifndef __UNIX_POTSMODEM_PRIVATE_H
#define __UNIX_POTSMODEM_PRIVATE_H
#endif
#endif
| 9.416667 | 34 | 0.831858 | brunolauze |
941ad1a93e5a162d9a370e21f1494914d9f65963 | 3,211 | cpp | C++ | Rogy/Engine/scripting/LuaScriptSerializer.cpp | FOLOME/Rogy-Engine- | fa85d501b813c6492046e15dce50521f817a244d | [
"Apache-2.0"
] | 65 | 2021-01-06T12:36:22.000Z | 2021-06-21T10:30:09.000Z | Rogy/Engine/scripting/LuaScriptSerializer.cpp | RogyDev/Rogy-Engine- | fa85d501b813c6492046e15dce50521f817a244d | [
"Apache-2.0"
] | 4 | 2021-12-06T16:00:00.000Z | 2022-03-18T07:40:33.000Z | Rogy/Engine/scripting/LuaScriptSerializer.cpp | FOLOME/Rogy-Engine- | fa85d501b813c6492046e15dce50521f817a244d | [
"Apache-2.0"
] | 11 | 2021-01-07T02:57:02.000Z | 2021-05-31T06:10:56.000Z | #include "LuaScriptSerializer.h"
// ---------------------------------------------------------------------
ScriptSerializer::ScriptSerializer()
{
}
// ---------------------------------------------------------------------
ScriptSerializer::~ScriptSerializer()
{
}
// ------------------------------------------------------... | 33.103093 | 85 | 0.569916 | FOLOME |
941c0d3336ecee5ba53450fdb2967f6aebec9b9b | 7,812 | cpp | C++ | libtrackerboy/src/data/Module.cpp | thebigG/trackerboy | c6a818954b2a57bb1d883ad1d52764c6bd29de6d | [
"MIT"
] | null | null | null | libtrackerboy/src/data/Module.cpp | thebigG/trackerboy | c6a818954b2a57bb1d883ad1d52764c6bd29de6d | [
"MIT"
] | null | null | null | libtrackerboy/src/data/Module.cpp | thebigG/trackerboy | c6a818954b2a57bb1d883ad1d52764c6bd29de6d | [
"MIT"
] | null | null | null |
#include "trackerboy/data/Module.hpp"
#include "internal/endian.hpp"
#include "internal/enumutils.hpp"
#include "internal/fileformat/fileformat.hpp"
#include "internal/fileformat/payload/payload.hpp"
#include <algorithm>
#include <cstddef>
#include <limits>
namespace trackerboy {
Module::Module() noexcept :
... | 25.697368 | 91 | 0.658986 | thebigG |
941e41f70fec4c3ff876b727fc8cdc086641f5ac | 3,688 | cpp | C++ | src/DataWidgets/Files/nWatchFiles.cpp | Vladimir-Lin/QtDataWidgets | 67372e2a807d47082d3130d16857476d7020facc | [
"MIT"
] | null | null | null | src/DataWidgets/Files/nWatchFiles.cpp | Vladimir-Lin/QtDataWidgets | 67372e2a807d47082d3130d16857476d7020facc | [
"MIT"
] | null | null | null | src/DataWidgets/Files/nWatchFiles.cpp | Vladimir-Lin/QtDataWidgets | 67372e2a807d47082d3130d16857476d7020facc | [
"MIT"
] | null | null | null | #include <datawidgets.h>
N::WatchFiles:: WatchFiles ( QObject * parent , Plan * p )
: QObject ( parent )
, Thread ( )
, watcher ( NULL )
, plan ( p )... | 30.229508 | 60 | 0.36551 | Vladimir-Lin |
94228a15710c218e7b6aeebde05c7f12087525bb | 8,113 | cpp | C++ | FastGFX/src/PBRPolygonBuffer.cpp | MLaszczewski/cross-platform-base | 2a4c88ae85b324e8c34ac6ec644a22324fbb9c4b | [
"BSD-2-Clause"
] | 1 | 2018-09-27T03:54:19.000Z | 2018-09-27T03:54:19.000Z | FastGFX/src/PBRPolygonBuffer.cpp | MLaszczewski/cross-platform-base | 2a4c88ae85b324e8c34ac6ec644a22324fbb9c4b | [
"BSD-2-Clause"
] | null | null | null | FastGFX/src/PBRPolygonBuffer.cpp | MLaszczewski/cross-platform-base | 2a4c88ae85b324e8c34ac6ec644a22324fbb9c4b | [
"BSD-2-Clause"
] | null | null | null | //
// Created by Michał Łaszczewski on 20/04/16.
//
#include "PBRPolygonBuffer.h"
#include <fastgfx.h>
#include "Shader.h"
namespace fgfx {
ShaderBindingRequest PBRPolygonBuffer::shaderBindingRequest = {
.attribNames = { "aPosition", "aColor", "aNormal", "aMaterial" },
.uniformNames = { "uProjectionM... | 37.215596 | 145 | 0.662024 | MLaszczewski |
942a43edbe12768534698df2ae59647a02b44990 | 485 | cpp | C++ | topcoder/SRM746-PairProduct.cpp | vsmolyakov/competitive_programming | ec7891eee86b5d051bcb4d9eff056d4cafab668e | [
"MIT"
] | 1 | 2020-04-21T05:12:34.000Z | 2020-04-21T05:12:34.000Z | topcoder/SRM746-PairProduct.cpp | rossanag/competitive_programming | 5d1bd3d00f2fa8589bdbeee07abeacceb693e930 | [
"MIT"
] | null | null | null | topcoder/SRM746-PairProduct.cpp | rossanag/competitive_programming | 5d1bd3d00f2fa8589bdbeee07abeacceb693e930 | [
"MIT"
] | 2 | 2019-08-13T21:27:05.000Z | 2019-12-30T02:32:09.000Z | #include <bits/stdc++.h>
using namespace std;
class PairProduct
{
public:
vector<int> findPair(int n, int a0, int step, long long p)
{
map<int, int> I;
for (int i = 0; i < n; ++i)
{
I[a0] = i;
if (a0 == 0) { if (p == 0) return {i,i}; }
else if (p % a0 == 0)
... | 21.086957 | 63 | 0.408247 | vsmolyakov |
942ad8b43b08d1804c3ae245a326f813c0c0a699 | 38,618 | cpp | C++ | projects/mpiAnalysis/staticMatching/src/rankAnalysis.cpp | stoerotug/mt001 | 4f2b38f03b1af18cd3e5c87c8c4ec9b15bb8b8c8 | [
"BSD-3-Clause"
] | 1 | 2021-03-14T18:09:43.000Z | 2021-03-14T18:09:43.000Z | projects/mpiAnalysis/staticMatching/src/rankAnalysis.cpp | stoerotug/mt001 | 4f2b38f03b1af18cd3e5c87c8c4ec9b15bb8b8c8 | [
"BSD-3-Clause"
] | null | null | null | projects/mpiAnalysis/staticMatching/src/rankAnalysis.cpp | stoerotug/mt001 | 4f2b38f03b1af18cd3e5c87c8c4ec9b15bb8b8c8 | [
"BSD-3-Clause"
] | 1 | 2019-12-25T10:18:01.000Z | 2019-12-25T10:18:01.000Z | #include "rankAnalysis.h"
//#include <boost/bind.hpp>
//#include <boost/mem_fn.hpp>
int rankAnalysisDebugLevel = 2;
// **********************************************************************
// RankLattice
// **********************************************************************
////===========... | 33.063356 | 253 | 0.525144 | stoerotug |
94350610ce4276a40e75c498225027c73574c392 | 749 | cpp | C++ | src/rx/math/vec4.cpp | BuckeyeSoftware/rex | a0380e2e3ce26e610b4c9fcbe0ece19ecc8c3531 | [
"MIT"
] | 37 | 2019-02-17T06:31:22.000Z | 2022-01-13T12:08:13.000Z | src/rx/math/vec4.cpp | BuckeyeSoftware/rex | a0380e2e3ce26e610b4c9fcbe0ece19ecc8c3531 | [
"MIT"
] | 47 | 2019-10-28T07:23:41.000Z | 2020-07-25T22:36:16.000Z | src/rx/math/vec4.cpp | BuckeyeSoftware/rex | a0380e2e3ce26e610b4c9fcbe0ece19ecc8c3531 | [
"MIT"
] | 7 | 2019-03-03T12:08:52.000Z | 2020-11-21T22:01:51.000Z | #include <stdio.h> // snprintf
#include "rx/core/math/sqrt.h"
#include "rx/math/vec4.h" // vec4
namespace Rx {
const char* FormatNormalize<Math::Vec4f>::operator()(const Math::Vec4f& _value) {
snprintf(scratch, sizeof scratch, "{%f, %f, %f, %f}", _value.x, _value.y,
_value.z, _value.w);
return scratch;
}
c... | 26.75 | 81 | 0.658211 | BuckeyeSoftware |
943b44c1b813dfe1af59170ac16d37e5bb46358f | 862 | cpp | C++ | Binary_Search/searching_a_circularly_sorted_array.cpp | manish1822510059/Algo_Ds_Notes-masters | 0e0234ac26469b28161bf9b1c94a27ca05c8395f | [
"MIT"
] | null | null | null | Binary_Search/searching_a_circularly_sorted_array.cpp | manish1822510059/Algo_Ds_Notes-masters | 0e0234ac26469b28161bf9b1c94a27ca05c8395f | [
"MIT"
] | null | null | null | Binary_Search/searching_a_circularly_sorted_array.cpp | manish1822510059/Algo_Ds_Notes-masters | 0e0234ac26469b28161bf9b1c94a27ca05c8395f | [
"MIT"
] | null | null | null | #include <iostream>
using namespace std;
int searchCircular(int arr[], int len, int num)
{
int low = 0;
int high = len - 1;
while(low <= high){
int mid = (low + (high - low) / 2);
if(arr[mid] == num) return mid;
else if(arr[mid] <= arr[high]){
if(num > arr[m... | 24.628571 | 111 | 0.422274 | manish1822510059 |
943b6938b938126d6f50aafdad2ac6c60dd20fe7 | 2,187 | cpp | C++ | test/custom_operator/op.cpp | jaiswinsundar/pytorch | 67e003f09bd1c2a578ee0e48ed1314e69a8ca115 | [
"Intel"
] | null | null | null | test/custom_operator/op.cpp | jaiswinsundar/pytorch | 67e003f09bd1c2a578ee0e48ed1314e69a8ca115 | [
"Intel"
] | null | null | null | test/custom_operator/op.cpp | jaiswinsundar/pytorch | 67e003f09bd1c2a578ee0e48ed1314e69a8ca115 | [
"Intel"
] | null | null | null | #include <c10/util/irange.h>
#include <torch/script.h>
#include "op.h"
#include <cstddef>
#include <string>
torch::List<torch::Tensor> custom_op(
torch::Tensor tensor,
double scalar,
int64_t repeat) {
torch::List<torch::Tensor> output;
output.reserve(repeat);
for (const auto i : c10::irange(repeat)... | 30.802817 | 133 | 0.666209 | jaiswinsundar |
944107cdd72fd4151f65681eff7dbe1c49714d0d | 939 | cpp | C++ | src/main.cpp | aliyavuzkahveci/parallel_concurrent_transformation | 193fdd8847171836f11647e26ec7ca8acc12965f | [
"MIT"
] | null | null | null | src/main.cpp | aliyavuzkahveci/parallel_concurrent_transformation | 193fdd8847171836f11647e26ec7ca8acc12965f | [
"MIT"
] | null | null | null | src/main.cpp | aliyavuzkahveci/parallel_concurrent_transformation | 193fdd8847171836f11647e26ec7ca8acc12965f | [
"MIT"
] | null | null | null | #include <iostream>
#include "matrix_multiplication.h"
#include "merge_sort.h"
#include "image_download.h"
int main()
{
std::cout << "starting main" << std::endl;
std::cout << "===============================================================" << std::endl;
matrix::matrixMultiplication_trials();
std::c... | 36.115385 | 96 | 0.343983 | aliyavuzkahveci |
9447b0e9b15d3f216862707b624f79fb575b1da0 | 2,121 | cpp | C++ | GameEngine/SpaceInvaders.cpp | pawan-nirpal-031/Graphics-Lab | 71004285c4ebb99f82e75e76bc1b46b2a0a70038 | [
"MIT"
] | null | null | null | GameEngine/SpaceInvaders.cpp | pawan-nirpal-031/Graphics-Lab | 71004285c4ebb99f82e75e76bc1b46b2a0a70038 | [
"MIT"
] | null | null | null | GameEngine/SpaceInvaders.cpp | pawan-nirpal-031/Graphics-Lab | 71004285c4ebb99f82e75e76bc1b46b2a0a70038 | [
"MIT"
] | null | null | null | #include <graphics.h>
#include <cmath>
using namespace std;
int WIN_HEIGHT = 900;
int WIN_WIDTH = 1600;
int STD_RADIUS = 15;
const double PI = 3.1415926535897932384626433832795;
class GraphicsEngine{
public:
void StartGraphics(int winx = WIN_WIDTH,int winy = WIN_HEIGHT){
// int gd = DETECT,gm;... | 24.37931 | 86 | 0.549741 | pawan-nirpal-031 |
944dbfc1eac66d35fb2f5a90d645063a2fb22f7e | 4,588 | cc | C++ | ix/ixtest_pe_01.cc | harrynp/Record-Based-Database | bb54c3ff6c936a3bea936593ff3ecbaa80c9627e | [
"MIT"
] | 3 | 2018-06-11T09:20:26.000Z | 2019-02-24T18:26:02.000Z | databaseBuild/codebase/ix/ixtest_pe_01.cc | AllenInWood/databaseBuild | 7eb0e4588f3b797ddceec6f3be6cb74a11e5447d | [
"Apache-2.0"
] | null | null | null | databaseBuild/codebase/ix/ixtest_pe_01.cc | AllenInWood/databaseBuild | 7eb0e4588f3b797ddceec6f3be6cb74a11e5447d | [
"Apache-2.0"
] | 1 | 2020-01-17T23:04:55.000Z | 2020-01-17T23:04:55.000Z | #include <iostream>
#include <cstdlib>
#include <cstdio>
#include <cstring>
#include "ix.h"
#include "ix_test_util.h"
IndexManager *indexManager;
int testCase_extra_1(const string &indexFileName, const Attribute &attribute)
{
// Checks whether duplicated entries spanning multiple page are handled properly or no... | 29.6 | 104 | 0.602877 | harrynp |
9453551c0c1b9a2a5a2319dd24318bd3629b532c | 257 | hpp | C++ | native/sample/headers/mcpe/item/Item.hpp | Molybdocene-dichloride/GregTech_BE | b19171ff4e41826c0bd4cf2dbdd9916f46254d67 | [
"MIT"
] | 4 | 2021-01-15T08:33:44.000Z | 2022-03-13T19:11:08.000Z | native/sample/headers/mcpe/item/Item.hpp | Molybdocene-dichloride/GregTech_BE | b19171ff4e41826c0bd4cf2dbdd9916f46254d67 | [
"MIT"
] | null | null | null | native/sample/headers/mcpe/item/Item.hpp | Molybdocene-dichloride/GregTech_BE | b19171ff4e41826c0bd4cf2dbdd9916f46254d67 | [
"MIT"
] | null | null | null | #pragma once
//#include <stl/string>
class Item {
public:
char filler0[64-4]; //4
short itemId; //64
char filler1[98-66]; // 66
short flags; // 98
char filler3[168-100]; // 100
virtual ~Item();
//Item(std::__ndk1::string const&, short);
}; | 19.769231 | 46 | 0.614786 | Molybdocene-dichloride |
9453d80ac9dd446d42a6471ea90c18c1e96b0be2 | 1,622 | cpp | C++ | sonar/tests/test_buffer_chain.cpp | rideskip/anchor | fbd52aa2b049ba210619ab9e714fa43ce43f2081 | [
"MIT"
] | 53 | 2020-02-05T19:44:58.000Z | 2022-03-11T20:59:17.000Z | sonar/tests/test_buffer_chain.cpp | AudigoLabs/anchor | 713365f3f8126c48d0f23e03a1d76215406da6ac | [
"MIT"
] | 3 | 2020-03-29T17:16:55.000Z | 2022-01-09T20:31:46.000Z | sonar/tests/test_buffer_chain.cpp | rideskip/anchor | fbd52aa2b049ba210619ab9e714fa43ce43f2081 | [
"MIT"
] | 13 | 2020-03-02T08:55:14.000Z | 2022-03-19T07:40:24.000Z | #include "gtest/gtest.h"
#include "test_common.h"
extern "C" {
#include "src/common/buffer_chain.h"
};
#define EXPECT_CHAIN_DATA(START_ENTRY_PTR, ...) do { \
const uint8_t _expected_data[] = {__VA_ARGS__}; \
EXPECT_TRUE(DataMatches(buffer_chain_to_vector(START_ENTRY_PTR), _expected_data, sizeof(_expected_d... | 31.192308 | 112 | 0.719482 | rideskip |
945d3aee9a097814862897c2c56fa293a861d525 | 7,997 | cpp | C++ | Kernel/FileSystem/DiskCache.cpp | UltraOS/Ultra | 287035fea303767285e48e5c7867d147790ff55b | [
"Apache-2.0"
] | 44 | 2020-07-09T07:31:43.000Z | 2022-03-29T20:55:01.000Z | Kernel/FileSystem/DiskCache.cpp | 8infy/UltraOS | 2ed2879c96a7095b5077df5ba5db5b30a6565417 | [
"Apache-2.0"
] | 3 | 2021-04-24T13:53:53.000Z | 2021-09-27T05:50:28.000Z | Kernel/FileSystem/DiskCache.cpp | 8infy/UltraOS | 2ed2879c96a7095b5077df5ba5db5b30a6565417 | [
"Apache-2.0"
] | 3 | 2021-03-01T09:29:12.000Z | 2021-06-25T17:06:27.000Z | #include "DiskCache.h"
#include "Memory/MemoryManager.h"
#include "Memory/SafeOperations.h"
#define DC_DEBUG_MODE
#define DC_LOG log("DiskCache")
#define DC_WARN warning("DiskCache")
#ifdef DC_DEBUG_MODE
#define DC_DEBUG log("DiskCache")
#else
#define DC_DEBUG DummyLogger()
#endif
namespace kernel {
DiskCache::Dis... | 30.177358 | 127 | 0.701763 | UltraOS |
946236adffb5ab2ae2a6686b4013fede24680eb0 | 3,125 | cc | C++ | astra-sim/system/topology/GeneralComplexTopology.cc | AnandS09/astra-sim | 1aa8c5c6fe1f25c4b47269ede6abc36c6f9ca102 | [
"MIT"
] | null | null | null | astra-sim/system/topology/GeneralComplexTopology.cc | AnandS09/astra-sim | 1aa8c5c6fe1f25c4b47269ede6abc36c6f9ca102 | [
"MIT"
] | null | null | null | astra-sim/system/topology/GeneralComplexTopology.cc | AnandS09/astra-sim | 1aa8c5c6fe1f25c4b47269ede6abc36c6f9ca102 | [
"MIT"
] | null | null | null | /******************************************************************************
This source code is licensed under the MIT license found in the
LICENSE file in the root directory of this source tree.
*******************************************************************************/
#include "GeneralComplexTopology.hh"
#... | 48.076923 | 134 | 0.58688 | AnandS09 |
94676c808adf08d5dad10428f665839ae42510b8 | 5,074 | tpp | C++ | FriendFunctions/friendDiagonal.tpp | Milosz08/Matrix_Calculator | 0534b3bb59962312e83273a744356dc598b08a43 | [
"MIT"
] | null | null | null | FriendFunctions/friendDiagonal.tpp | Milosz08/Matrix_Calculator | 0534b3bb59962312e83273a744356dc598b08a43 | [
"MIT"
] | null | null | null | FriendFunctions/friendDiagonal.tpp | Milosz08/Matrix_Calculator | 0534b3bb59962312e83273a744356dc598b08a43 | [
"MIT"
] | null | null | null | #include "../Matrix Classes/src/packages/diagonalMatrixPackage/DiagonalMatrix.hpp"
/*!
* @overload Operator dodawania (+) - macierze diagonalne
*
* @brief Przeciążenie operatora "+" (dodawania) pod kątem dodania do
* siebie dwóch macierzy przekazywanych w argumentach funkcji.
*
* @throw logic_error -> Br... | 34.517007 | 116 | 0.678557 | Milosz08 |
946b55f780befe2c71a7390784ed22d4dac9b00c | 130 | cpp | C++ | tests/TestSTM.cpp | cbforks/sfl | 21a28acc9fdbb578200e0289688610cdedb646d9 | [
"BSD-2-Clause"
] | 6 | 2015-04-14T19:04:15.000Z | 2015-10-16T13:03:08.000Z | tests/TestSTM.cpp | zsszatmari/sfl | 21a28acc9fdbb578200e0289688610cdedb646d9 | [
"BSD-2-Clause"
] | null | null | null | tests/TestSTM.cpp | zsszatmari/sfl | 21a28acc9fdbb578200e0289688610cdedb646d9 | [
"BSD-2-Clause"
] | 1 | 2015-10-16T13:03:11.000Z | 2015-10-16T13:03:11.000Z | #include "stf.h"
#include "sfl/STM.h"
using namespace sfl;
TEST(STM, Basic)
{
TVar<float> val(3);
ASSERT_EQ(3, (float)val);
} | 11.818182 | 26 | 0.653846 | cbforks |
20e1e3018f52a7fa0f08e0d1a35474a727e04e91 | 2,833 | cpp | C++ | 2017 JUST Programming Contest 4.0/F.cpp | lajiyuan/segmentation-fault-training | 71dfeeed52b18071a5c8c4d02f5e74fc01c53322 | [
"Apache-2.0"
] | 5 | 2019-04-07T05:39:11.000Z | 2020-07-23T01:43:02.000Z | 2017 JUST Programming Contest 4.0/F.cpp | lajiyuan/segmentation-fault-training | 71dfeeed52b18071a5c8c4d02f5e74fc01c53322 | [
"Apache-2.0"
] | null | null | null | 2017 JUST Programming Contest 4.0/F.cpp | lajiyuan/segmentation-fault-training | 71dfeeed52b18071a5c8c4d02f5e74fc01c53322 | [
"Apache-2.0"
] | null | null | null | #include<stdio.h>
#include<iostream>
#include<algorithm>
#include<string.h>
#include<map>
#include<unordered_map>
using namespace std;
typedef pair<int,int> pii;
#define dbg2(x1,x2) cout<<#x1<<" = "<<x1<<" "<<#x2<<" = "<<x2<<endl
#define dbg(x) cout<<#x<<" = "<<x<<endl
#define ok cout<<"OK"<<endl
const int m... | 22.132813 | 76 | 0.440522 | lajiyuan |
20e72f45be3d394042f982c91a2a8d32351ac560 | 1,031 | cpp | C++ | P/1364.cpp | langonginc/cfile | 46458897b8a4a8d58a2bc63ecb6ef84f76bdb61f | [
"MIT"
] | 1 | 2020-09-13T02:51:25.000Z | 2020-09-13T02:51:25.000Z | P/1364.cpp | langonginc/cfile | 46458897b8a4a8d58a2bc63ecb6ef84f76bdb61f | [
"MIT"
] | null | null | null | P/1364.cpp | langonginc/cfile | 46458897b8a4a8d58a2bc63ecb6ef84f76bdb61f | [
"MIT"
] | 1 | 2021-06-05T03:37:57.000Z | 2021-06-05T03:37:57.000Z | #include <iostream>
#include <cstdio>
#include <cstring>
#include <cstdlib>
#include <vector>
#include <climits>
using namespace std;
const int inf = 505;
int n, size[inf], w[inf], dep[inf], dp[inf], ans = INT_MAX;
vector<int> adj[inf];
void dfs (int u, int f)
{
dep[u] = dep[f] + 1;
size[u] = w[u];
dp[1] += dep... | 16.901639 | 74 | 0.451018 | langonginc |
20e8815f90cc05ce23dafd9d7a7a046eb88ed666 | 2,374 | cpp | C++ | Source/TsuRuntime/Private/TsuTryCatch.cpp | mihe/tsu | 5656ace9cb631b1ec60346b833e9233ded78e2c1 | [
"Apache-2.0"
] | 72 | 2019-03-25T18:01:55.000Z | 2022-01-24T05:22:51.000Z | Source/TsuRuntime/Private/TsuTryCatch.cpp | shakirullah7892/tsu | 5656ace9cb631b1ec60346b833e9233ded78e2c1 | [
"Apache-2.0"
] | 39 | 2019-03-25T19:03:13.000Z | 2019-05-12T10:17:41.000Z | Source/TsuRuntime/Private/TsuTryCatch.cpp | shakirullah7892/tsu | 5656ace9cb631b1ec60346b833e9233ded78e2c1 | [
"Apache-2.0"
] | 9 | 2019-04-30T03:08:32.000Z | 2022-03-13T03:13:36.000Z | #include "TsuTryCatch.h"
#include "TsuRuntimeLog.h"
#include "TsuStringConv.h"
#include "TsuUtilities.h"
#if WITH_EDITOR
#include "Framework/Notifications/NotificationManager.h"
#include "Widgets/Notifications/SNotificationList.h"
#endif // WITH_EDITOR
FTsuTryCatch::FTsuTryCatch(v8::Isolate* Isolate)
: ... | 29.675 | 106 | 0.727464 | mihe |
20e9b885a3a46e1591b61d3e2820dee22e8d031b | 1,973 | cpp | C++ | Gems/Cesium/Code/Source/MatrixWidget.cpp | CesiumGS/o3de | 39af04fd03b3b29f4fd9a0470a3cd60381ed88c2 | [
"Apache-2.0",
"MIT"
] | 8 | 2021-08-31T02:14:19.000Z | 2021-12-28T19:20:59.000Z | Gems/Cesium/Code/Source/MatrixWidget.cpp | CesiumGS/o3de | 39af04fd03b3b29f4fd9a0470a3cd60381ed88c2 | [
"Apache-2.0",
"MIT"
] | 8 | 2021-07-12T13:55:00.000Z | 2021-10-04T14:53:21.000Z | Gems/Cesium/Code/Source/MatrixWidget.cpp | CesiumGS/o3de | 39af04fd03b3b29f4fd9a0470a3cd60381ed88c2 | [
"Apache-2.0",
"MIT"
] | 1 | 2021-09-16T05:06:18.000Z | 2021-09-16T05:06:18.000Z | #include "MatrixWidget.h"
#include <QGridLayout>
namespace Cesium
{
MatrixInput::MatrixInput(QWidget* parent, std::size_t numOfCols, std::size_t numOfRows)
: QWidget(parent)
{
// Set up Qt layout
QGridLayout* pLayout = new QGridLayout(this);
pLayout->setMargin(0);
pLayou... | 29.014706 | 124 | 0.610745 | CesiumGS |
20f05a6813d14f0a2e8c11e7acb4e3eab3c08581 | 2,491 | hpp | C++ | jerome/type/matrix.hpp | leuski-ict/jerome | 6141a21c50903e98a04c79899164e7d0e82fe1c2 | [
"Apache-2.0"
] | 3 | 2018-06-11T10:48:54.000Z | 2021-05-30T07:10:15.000Z | jerome/type/matrix.hpp | leuski-ict/jerome | 6141a21c50903e98a04c79899164e7d0e82fe1c2 | [
"Apache-2.0"
] | null | null | null | jerome/type/matrix.hpp | leuski-ict/jerome | 6141a21c50903e98a04c79899164e7d0e82fe1c2 | [
"Apache-2.0"
] | null | null | null | //
// matrix.hpp
//
// Created by Anton Leuski on 7/22/14.
// Copyright (c) 2015 Anton Leuski & ICT/USC. All rights reserved.
//
// This file is part of Jerome.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obt... | 30.012048 | 77 | 0.765556 | leuski-ict |
20f1e8e376709b9772aeb252089f039da2bb9c0a | 814 | hpp | C++ | SDK/ARKSurvivalEvolved_Sign_Wall_Wood_parameters.hpp | 2bite/ARK-SDK | c38ca9925309516b2093ad8c3a70ed9489e1d573 | [
"MIT"
] | 10 | 2020-02-17T19:08:46.000Z | 2021-07-31T11:07:19.000Z | SDK/ARKSurvivalEvolved_Sign_Wall_Wood_parameters.hpp | 2bite/ARK-SDK | c38ca9925309516b2093ad8c3a70ed9489e1d573 | [
"MIT"
] | 9 | 2020-02-17T18:15:41.000Z | 2021-06-06T19:17:34.000Z | SDK/ARKSurvivalEvolved_Sign_Wall_Wood_parameters.hpp | 2bite/ARK-SDK | c38ca9925309516b2093ad8c3a70ed9489e1d573 | [
"MIT"
] | 3 | 2020-07-22T17:42:07.000Z | 2021-06-19T17:16:13.000Z | #pragma once
// ARKSurvivalEvolved (329.9) SDK
#ifdef _MSC_VER
#pragma pack(push, 0x8)
#endif
#include "ARKSurvivalEvolved_Sign_Wall_Wood_classes.hpp"
namespace sdk
{
//---------------------------------------------------------------------------
//Parameters
//-------------------------------------------------------... | 24.666667 | 152 | 0.570025 | 2bite |
20f384fdd8251fb2377dee1187c886d31b770e78 | 237 | cpp | C++ | src/UOJ_1612 - (1100409) Accepted.cpp | miguelarauj1o/UOJ | eb195754829c42c3dcf1a68616e63da1386cb5a9 | [
"MIT"
] | 80 | 2015-01-07T01:18:40.000Z | 2021-05-04T15:23:18.000Z | src/UOJ_1612 - (1100409) Accepted.cpp | miguelarauj1o/OJ | eb195754829c42c3dcf1a68616e63da1386cb5a9 | [
"MIT"
] | 1 | 2019-01-07T01:13:32.000Z | 2019-01-07T01:13:32.000Z | src/UOJ_1612 - (1100409) Accepted.cpp | miguelarauj1o/OJ | eb195754829c42c3dcf1a68616e63da1386cb5a9 | [
"MIT"
] | 28 | 2015-03-05T11:53:23.000Z | 2020-07-05T15:50:42.000Z | #include <cstdio>
#include <cmath>
using namespace std;
int main()
{
int n, r;
double x;
scanf("%i", &n);
for (int i = 0; i < n; ++i)
{
scanf("%lf", &x);
r = ceil(x/2);
printf("%i\n", r);
}
return 0;
} | 11.85 | 29 | 0.464135 | miguelarauj1o |
20f9bcdd10124f0b7a8fe43fb25df2434b6ee7cf | 260 | hpp | C++ | include/rpp/response.hpp | kociap/rpp | 1c0009c1abcd9416c75c75a981b235f2db551e89 | [
"MIT"
] | null | null | null | include/rpp/response.hpp | kociap/rpp | 1c0009c1abcd9416c75c75a981b235f2db551e89 | [
"MIT"
] | null | null | null | include/rpp/response.hpp | kociap/rpp | 1c0009c1abcd9416c75c75a981b235f2db551e89 | [
"MIT"
] | null | null | null | #ifndef RPP_RESPONSE_HPP_INCLUDE
#define RPP_RESPONSE_HPP_INCLUDE
#include <cstdint>
#include <string>
namespace rpp {
struct Response {
std::int32_t status;
std::string text;
};
} // namespace rpp
#endif // !RPP_RESPONSE_HPP_INCLUDE | 18.571429 | 35 | 0.703846 | kociap |
20f9f3eadbfcffd5896e7277347c79233a5d014e | 3,495 | hh | C++ | vaittama.hh | WhiteDeathFIN/Labyrinttipeli | f89b62d17f6b4bddd5a5df4729c157649b8f64b4 | [
"Apache-2.0"
] | null | null | null | vaittama.hh | WhiteDeathFIN/Labyrinttipeli | f89b62d17f6b4bddd5a5df4729c157649b8f64b4 | [
"Apache-2.0"
] | null | null | null | vaittama.hh | WhiteDeathFIN/Labyrinttipeli | f89b62d17f6b4bddd5a5df4729c157649b8f64b4 | [
"Apache-2.0"
] | null | null | null | #ifndef JULKINEN_VAITTAMA_HH
#define JULKINEN_VAITTAMA_HH
/**
* \file vaittama.hh
* \brief Väittämien tarkistustyökalujen esittelyt.
* \author ©2010 Jarmo Jaakkola <jarmo.jaakkola@tut.fi>,
* TTY Ohjelmistotekniikka
*/
namespace
Julkinen
{
/**
* \brief Luettelotyyppi julkisenrajpinnan assertioille.
... | 29.125 | 75 | 0.63176 | WhiteDeathFIN |
20fc3134473b37b3531e8fab932e41226b8cc674 | 282,641 | cpp | C++ | src/hooks/scene_end.cpp | notchrisy/noViolence | 70384d5341e6e5390d25fd3954e364ab452252f5 | [
"MIT"
] | 9 | 2019-10-16T18:49:05.000Z | 2019-11-18T21:27:47.000Z | src/hooks/scene_end.cpp | notchrisy/noViolence | 70384d5341e6e5390d25fd3954e364ab452252f5 | [
"MIT"
] | 1 | 2019-11-07T20:22:25.000Z | 2019-11-08T09:28:34.000Z | src/hooks/scene_end.cpp | notchrisy/noViolence | 70384d5341e6e5390d25fd3954e364ab452252f5 | [
"MIT"
] | 7 | 2019-10-17T15:21:24.000Z | 2020-11-04T07:16:19.000Z | #include "hooks.h"
#include "../globals.h"
#include "../options.hpp"
#include "../render/render.h"
#include "../helpers/console.h"
#include "../features/features.h"
namespace hooks
{
blackbone::Detour<scene_end::fn> scene_end::hook;
void __stdcall scene_end::hooked(IVRenderView*& thisptr)
{
if (!interfaces::engi... | 36.535807 | 59 | 0.636362 | notchrisy |
20fcaae65c1354ae35222a6f5d6ef64ff9d02c12 | 876 | cc | C++ | CrackingTheCodeInterview/2_3_delete_middle_node.cc | ryanorz/code-camp | 041eb6443a3f0963a7778d3ddfb03a7557257094 | [
"Apache-2.0"
] | null | null | null | CrackingTheCodeInterview/2_3_delete_middle_node.cc | ryanorz/code-camp | 041eb6443a3f0963a7778d3ddfb03a7557257094 | [
"Apache-2.0"
] | null | null | null | CrackingTheCodeInterview/2_3_delete_middle_node.cc | ryanorz/code-camp | 041eb6443a3f0963a7778d3ddfb03a7557257094 | [
"Apache-2.0"
] | null | null | null | /**
* Qestion: Delete Middle Node
* Implement an algorithm to delete a node in the middle
* (i.e., any node but the first and last node, not necessarily the exact middle)
* of a singly linked list, given only access to that node.
* EXAMPLE
* lnput:the node c from the linked lista->b->c->d->e->f
* Result: nothi... | 25.028571 | 82 | 0.614155 | ryanorz |
20fd6999ac8e8fd00b507b1c7176c078b8ceaa53 | 993 | cpp | C++ | Arrays/p29 - trapping rain water/p29.cpp | savvysiddharth/dsa-practice-sheet | 7862f15579fcf28879ef79d4b02da71ff63ef8d6 | [
"MIT"
] | 1 | 2022-01-30T00:00:01.000Z | 2022-01-30T00:00:01.000Z | Arrays/p29 - trapping rain water/p29.cpp | savvysiddharth/dsa-practice-sheet | 7862f15579fcf28879ef79d4b02da71ff63ef8d6 | [
"MIT"
] | null | null | null | Arrays/p29 - trapping rain water/p29.cpp | savvysiddharth/dsa-practice-sheet | 7862f15579fcf28879ef79d4b02da71ff63ef8d6 | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
using namespace std;
// Array Preprocessing method
// Time Complexity : O(n)
// Space Complexity : O(n)
int trappingWater(int input[], int length) {
int left[length];
int right[length];
// Preparing left and right arrow
for(int i=0; i<length; i++) {
if(i-1 >= 0) left[i... | 28.371429 | 62 | 0.589124 | savvysiddharth |
20fd8f042cbfb9240b298f68c280b3d4d9db6088 | 2,753 | cpp | C++ | src/private/hmac-sha256.cpp | andriyadi/AzureIoTLiteClient | 23039c9ae6b000a81e53a380dd1f3fb7d7bb440c | [
"MIT"
] | 4 | 2020-04-15T06:18:00.000Z | 2021-09-13T05:09:24.000Z | src/private/hmac-sha256.cpp | andriyadi/AzureIoTLiteClient | 23039c9ae6b000a81e53a380dd1f3fb7d7bb440c | [
"MIT"
] | 1 | 2021-06-18T09:48:17.000Z | 2021-06-18T09:48:17.000Z | src/private/hmac-sha256.cpp | andriyadi/AzureIoTLiteClient | 23039c9ae6b000a81e53a380dd1f3fb7d7bb440c | [
"MIT"
] | 1 | 2020-04-15T07:27:47.000Z | 2020-04-15T07:27:47.000Z | /*
* hmac-sha256.c
* Copyright (C) 2017 Adrian Perez <aperez@igalia.com>
*
* Distributed under terms of the MIT license.
*/
#include <Arduino.h>
#if defined(RISCV)
#include "hmac-sha256.h"
#include <sha256.h>
/*
* HMAC(H, K) == H(K ^ opad, H(K ^ ipad, text))
*
* H: Hash function (sha256)
* K: Secret k... | 26.728155 | 74 | 0.590992 | andriyadi |
1f00e0e1dda4e2fac7245369ab063363ec690aeb | 626 | cpp | C++ | Development/SDKs/1.7.1/SDK/BP_Crystal_functions.cpp | ResaloliPT/HydroneerReleases | 3a3501f04608cea77ccbf7229f94089295128ea7 | [
"Unlicense"
] | null | null | null | Development/SDKs/1.7.1/SDK/BP_Crystal_functions.cpp | ResaloliPT/HydroneerReleases | 3a3501f04608cea77ccbf7229f94089295128ea7 | [
"Unlicense"
] | null | null | null | Development/SDKs/1.7.1/SDK/BP_Crystal_functions.cpp | ResaloliPT/HydroneerReleases | 3a3501f04608cea77ccbf7229f94089295128ea7 | [
"Unlicense"
] | null | null | null | // Name: Hydroneer, Version: 1.7.1
#include "../pch.h"
/*!!DEFINE!!*/
/*!!HELPER_DEF!!*/
/*!!HELPER_INC!!*/
#ifdef _MSC_VER
#pragma pack(push, 0x01)
#endif
namespace CG
{
//---------------------------------------------------------------------------
// Functions
//------------------------------------------------... | 15.65 | 77 | 0.525559 | ResaloliPT |
1f026e4b8e5b851a4c1cdef9162e04d81dcc9567 | 19,010 | cpp | C++ | test/ConversionTests.cpp | Mookel/VC4C | d72978253820e4175fa591206dedda6c586068b3 | [
"MIT"
] | 111 | 2017-11-02T14:46:45.000Z | 2022-03-15T21:32:59.000Z | test/ConversionTests.cpp | Mookel/VC4C | d72978253820e4175fa591206dedda6c586068b3 | [
"MIT"
] | 139 | 2017-10-09T07:39:01.000Z | 2021-11-20T15:31:27.000Z | test/ConversionTests.cpp | Mookel/VC4C | d72978253820e4175fa591206dedda6c586068b3 | [
"MIT"
] | 33 | 2017-10-10T10:19:58.000Z | 2022-02-27T15:59:50.000Z | /*
* Author: doe300
*
* See the file "LICENSE" for the full license governing this code.
*/
#include "TestEntries.h"
#include <algorithm>
#include <cfenv>
#include <climits>
#include <cmath>
#include <cstring>
#include <functional>
#include <limits>
#include <stdexcept>
// TODO skip testing for all the out-of-bou... | 44.519906 | 148 | 0.621305 | Mookel |
1f06c0e9c8f9d39c86b87d6774020232ceb44780 | 3,558 | cpp | C++ | SatelliteLib/GitProxy.cpp | StanleySoftware/Satellite | 7c4c985e6af12b0005c74b06e8a38ae36c22ff06 | [
"MIT"
] | null | null | null | SatelliteLib/GitProxy.cpp | StanleySoftware/Satellite | 7c4c985e6af12b0005c74b06e8a38ae36c22ff06 | [
"MIT"
] | null | null | null | SatelliteLib/GitProxy.cpp | StanleySoftware/Satellite | 7c4c985e6af12b0005c74b06e8a38ae36c22ff06 | [
"MIT"
] | null | null | null | #include "GitProxy.h"
#include <stdexcept>
#include <DllLoad.h>
#include <Utility.h>
namespace Sat
{
namespace GitProxy
{
static constexpr char const * s_libgitFilename = "git2-6777db8.dll";
static LibLoad::LibObject s_libgit(s_libgitFilename);
using GitLibGitInitFn = int (*) ();
static_assert(std::is_same_v<declty... | 36.680412 | 160 | 0.785554 | StanleySoftware |
1f0b41fecbfd0c6786f928bd78d9dccd0dd08631 | 10,434 | cpp | C++ | src/simulator/simulator_utils.cpp | h2ssh/Vulcan | cc46ec79fea43227d578bee39cb4129ad9bb1603 | [
"MIT"
] | 6 | 2020-03-29T09:37:01.000Z | 2022-01-20T08:56:31.000Z | src/simulator/simulator_utils.cpp | h2ssh/Vulcan | cc46ec79fea43227d578bee39cb4129ad9bb1603 | [
"MIT"
] | 1 | 2021-03-05T08:00:50.000Z | 2021-03-05T08:00:50.000Z | src/simulator/simulator_utils.cpp | h2ssh/Vulcan | cc46ec79fea43227d578bee39cb4129ad9bb1603 | [
"MIT"
] | 11 | 2019-05-13T00:04:38.000Z | 2022-01-20T08:56:38.000Z | /* Copyright (C) 2010-2019, The Regents of The University of Michigan.
All rights reserved.
This software was developed as part of the The Vulcan project in the Intelligent Robotics Lab
under the direction of Benjamin Kuipers, kuipers@umich.edu. Use of this code is governed by an
MIT-style License that can be foun... | 43.115702 | 165 | 0.691873 | h2ssh |
1f130e8d24772be9ca67d0e261f76c1c37d4034d | 1,394 | cpp | C++ | src-programs/fyp.cpp | yingchen0505/midifile | 7de49b6169921c209fe8415d23d98eb2cbf9a0b8 | [
"BSD-2-Clause"
] | null | null | null | src-programs/fyp.cpp | yingchen0505/midifile | 7de49b6169921c209fe8415d23d98eb2cbf9a0b8 | [
"BSD-2-Clause"
] | null | null | null | src-programs/fyp.cpp | yingchen0505/midifile | 7de49b6169921c209fe8415d23d98eb2cbf9a0b8 | [
"BSD-2-Clause"
] | null | null | null | #include "MidiFile.h"
#include <iostream>
#include <vector>
#include <cmath>
#include <map>
#include <string>
#include <list>
#include <unistd.h>
#include "EmotionState.h"
#include "MidiExcerptByBar.h"
#include "MusicSegmentManager.h"
#define INPUT_PATH "./input"
#define OUTPUT_PATH "./output"
using namespace midi_ex... | 23.233333 | 82 | 0.737446 | yingchen0505 |
1f1a137b1d1962e0f48e0016f05a4e747dfbea30 | 1,888 | cpp | C++ | LazyBuffer/LazyBufferTest.cpp | zoenolan/JitterBuffer | 167014c029d5aedd8cd23f3ae521431322465b64 | [
"MIT"
] | 4 | 2018-02-21T10:51:42.000Z | 2021-07-04T01:52:05.000Z | LazyBuffer/LazyBufferTest.cpp | zoenolan/JitterBuffer | 167014c029d5aedd8cd23f3ae521431322465b64 | [
"MIT"
] | null | null | null | LazyBuffer/LazyBufferTest.cpp | zoenolan/JitterBuffer | 167014c029d5aedd8cd23f3ae521431322465b64 | [
"MIT"
] | 4 | 2018-11-29T16:39:59.000Z | 2020-09-03T03:28:44.000Z |
#include <cstddef>
#include <cstdio>
#include <cstring>
#include "LazyBuffer.h"
int main(int argc, char* argv[])
{
CLazyBuffer lazyBuffer;
if (0 != lazyBuffer.Size())
{
printf("Failed: The Buffer should start as zero sized\n");
return (-1);
}
if (NULL != lazyBuffer.Pointer())
{
printf("Failed: The Buff... | 19.873684 | 85 | 0.663136 | zoenolan |
1f1ca18f622c2139c0d1bf3cf2aeb1cf8c2ba283 | 22,518 | cpp | C++ | Source/Rade/Character/RadePlayer.cpp | VitaliyTalyh/Rade | e716b550f222c7ac36caf3a2fe1613afd0c033f3 | [
"Apache-2.0"
] | 2 | 2020-04-22T03:33:55.000Z | 2021-04-05T05:22:10.000Z | Source/Rade/Character/RadePlayer.cpp | VitaliyTalyh/Rade | e716b550f222c7ac36caf3a2fe1613afd0c033f3 | [
"Apache-2.0"
] | null | null | null | Source/Rade/Character/RadePlayer.cpp | VitaliyTalyh/Rade | e716b550f222c7ac36caf3a2fe1613afd0c033f3 | [
"Apache-2.0"
] | 1 | 2020-04-22T03:34:11.000Z | 2020-04-22T03:34:11.000Z | // Copyright 2015-2017 Vagen Ayrapetyan
#include "RadePlayer.h"
//#include "Engine.h"
#include "Rade.h"
#include "UnrealNetwork.h"
#include "RadeGameMode.h"
#include "BaseHUD.h"
#include "RadePC.h"
#include "Character/RadeAnimInstance.h"
#include "Weapon/Projectile.h"
#include "Weapon/Weapon.h"
#... | 25.244395 | 154 | 0.679812 | VitaliyTalyh |
1f23e851cdb58367b4dd4dcb911a14f83caf964e | 9,718 | cxx | C++ | ITSMFT/ITS/compression/topology/Topology.cxx | AllaMaevskaya/AliRoot | c53712645bf1c7d5f565b0d3228e3a6b9b09011a | [
"BSD-3-Clause"
] | 52 | 2016-12-11T13:04:01.000Z | 2022-03-11T11:49:35.000Z | ITSMFT/ITS/compression/topology/Topology.cxx | AllaMaevskaya/AliRoot | c53712645bf1c7d5f565b0d3228e3a6b9b09011a | [
"BSD-3-Clause"
] | 1,388 | 2016-11-01T10:27:36.000Z | 2022-03-30T15:26:09.000Z | ITSMFT/ITS/compression/topology/Topology.cxx | AllaMaevskaya/AliRoot | c53712645bf1c7d5f565b0d3228e3a6b9b09011a | [
"BSD-3-Clause"
] | 275 | 2016-06-21T20:24:05.000Z | 2022-03-31T13:06:19.000Z | #include <Riostream.h>
#include "TObject.h"
#include "TMath.h"
#include "TBits.h"
#include "AliITSUClusterPix.h"
#include "TH2F.h"
#include "TH1F.h"
#include "Topology.h"
#include "AliLog.h"
#include "TString.h"
ClassImp(Topology)
Int_t Topology::fMode = Topology::kHashes;
Topology::Topology():TObject(), fPattern(),... | 27.297753 | 128 | 0.636448 | AllaMaevskaya |
1f27c3203602d408534d0b3d04712fe176f48bdb | 364 | cpp | C++ | cormen/searching/linearsearch.cpp | Binary-bug/Algorithms | 39a1d8c7836b73350c5c13f74cf6e5eac15e7380 | [
"MIT"
] | null | null | null | cormen/searching/linearsearch.cpp | Binary-bug/Algorithms | 39a1d8c7836b73350c5c13f74cf6e5eac15e7380 | [
"MIT"
] | null | null | null | cormen/searching/linearsearch.cpp | Binary-bug/Algorithms | 39a1d8c7836b73350c5c13f74cf6e5eac15e7380 | [
"MIT"
] | null | null | null | #include<iostream>
using namespace std;
int main(){
int n,i,x;
cin >> n >> x;
int a[12345];
for(i = 0; i < n; i++) scanf("%d",&a[i]);
int index = -1;
for(i=0; i < n; i++){
if(a[i] == x){
index = i;
break;
}
}
if(index == -1) cout << "Element not found";
else cout << "element is at " << index ... | 14 | 68 | 0.491758 | Binary-bug |
1f2b30a1f5605ea6af0c72dc56ee6745911bc41c | 240 | inl | C++ | src/shaders/fragment.inl | armak/pbr-introsystem | 68031496033ca59b8650a6bc25fdf9a7987e349d | [
"MIT"
] | 9 | 2016-04-14T09:37:32.000Z | 2020-01-31T13:08:28.000Z | src/shaders/fragment.inl | armak/pbr-introsystem | 68031496033ca59b8650a6bc25fdf9a7987e349d | [
"MIT"
] | null | null | null | src/shaders/fragment.inl | armak/pbr-introsystem | 68031496033ca59b8650a6bc25fdf9a7987e349d | [
"MIT"
] | 1 | 2016-07-30T11:34:17.000Z | 2016-07-30T11:34:17.000Z | static const char* fragment = \
"uniform int m;\n"
"float time = m*.001;\n"
"void main(){\n"
"vec2 res = vec2(1280,720), uv = 1.-2.*gl_FragCoord.xy/res.xy;\n"
"uv.y *= res.y/res.x;\n"
"gl_FragColor = vec4(uv,.5+.5*sin(time),1);\n"
"}\n"; | 30 | 66 | 0.591667 | armak |
1f36652bfae96882d5835b0e078e75b53af87a45 | 9,067 | cpp | C++ | tests/matrix_tests/matrix_tests.cpp | mateka/yala | d5dd1643a06fc91d028ac336608b2817ff6f1a58 | [
"MIT"
] | null | null | null | tests/matrix_tests/matrix_tests.cpp | mateka/yala | d5dd1643a06fc91d028ac336608b2817ff6f1a58 | [
"MIT"
] | null | null | null | tests/matrix_tests/matrix_tests.cpp | mateka/yala | d5dd1643a06fc91d028ac336608b2817ff6f1a58 | [
"MIT"
] | null | null | null | #define CATCH_CONFIG_MAIN
#include <catch2/catch.hpp>
#include <compare>
#include <yala/matrix.h>
using namespace yala;
TEMPLATE_TEST_CASE("matrix can be created and accessed", "[matrix]", float, double) {
SECTION("Created with default constructor") {
matrix<TestType, 5, 4> m;
REQUIRE(5 == m.x_... | 46.737113 | 95 | 0.510974 | mateka |
1f3912fc254185b4e86e162a4634157a5cba4cbc | 1,753 | hpp | C++ | header/camera.hpp | HiddenNode/SOWI | 1cfec855e3441d283db839c2acfec7e2a960e2c3 | [
"MIT"
] | null | null | null | header/camera.hpp | HiddenNode/SOWI | 1cfec855e3441d283db839c2acfec7e2a960e2c3 | [
"MIT"
] | null | null | null | header/camera.hpp | HiddenNode/SOWI | 1cfec855e3441d283db839c2acfec7e2a960e2c3 | [
"MIT"
] | null | null | null | #ifndef CAMERA_HPP
#define CAMERA_HPP
#include <GL/glew.h>
#include <glm/glm.hpp>
namespace sw
{
class Camera
{
public:
Camera(glm::fvec3 pos, glm::fvec3 looatAt, glm::fvec3 yAxis);
const GLfloat* getModelViewMatrixData();
const GLfloat* getPerspectiveMatrixData();... | 24.690141 | 70 | 0.573873 | HiddenNode |
1f426b01daf09ce3f36b16ec2184674f48c6f1c9 | 295 | cpp | C++ | ccpc/ccpcguilin/a.cpp | Zilanlann/cp-code | 0500acbf6fb05a66f7bdbdf0e0a8bd6170126a4a | [
"MIT"
] | 3 | 2022-03-30T14:14:57.000Z | 2022-03-31T04:30:32.000Z | ccpc/ccpcguilin/a.cpp | Zilanlann/cp-code | 0500acbf6fb05a66f7bdbdf0e0a8bd6170126a4a | [
"MIT"
] | null | null | null | ccpc/ccpcguilin/a.cpp | Zilanlann/cp-code | 0500acbf6fb05a66f7bdbdf0e0a8bd6170126a4a | [
"MIT"
] | null | null | null | #include <iostream>
typedef long long ll;
#define endl "\n"
using namespace std;
int main(){
ios::sync_with_stdio(false);
cin.tie(0);
//IO
int t;
cin >> t;
while (t--) {
ll ans;
cin >> ans;
cout << 2 * ans - 1 << endl;
}
return 0;
}
| 12.291667 | 36 | 0.488136 | Zilanlann |
1f43066afa7e3188e200d24376d45ee3dfb84a43 | 2,626 | cpp | C++ | libraries/contract-engine/engine/wasm-jit/Source/UnitTest/TestChainBase/TestChainBase.cpp | AAAChain/AAAChain | 42929fe8d165c13e79e8fb7215d0918620a499e2 | [
"MIT"
] | 3 | 2018-06-05T12:42:22.000Z | 2018-07-17T04:06:55.000Z | libraries/contract-engine/engine/wasm-jit/Source/UnitTest/TestChainBase/TestChainBase.cpp | AAAChain/AAAChain | 42929fe8d165c13e79e8fb7215d0918620a499e2 | [
"MIT"
] | 2 | 2018-05-25T09:42:51.000Z | 2018-05-25T09:46:00.000Z | libraries/contract-engine/engine/wasm-jit/Source/UnitTest/TestChainBase/TestChainBase.cpp | AAAChain/AAAChain | 42929fe8d165c13e79e8fb7215d0918620a499e2 | [
"MIT"
] | null | null | null | #include "chainbase.hpp"
#include "TestChainBase.h"
#include <boost/multi_index_container.hpp>
#include <boost/multi_index/ordered_index.hpp>
#include <boost/multi_index/member.hpp>
#include <iostream>
using namespace chainbase;
using namespace boost::multi_index;
struct book : public chainbase::object<0, book> {
... | 20.84127 | 78 | 0.562452 | AAAChain |
1f4692d40aeb55ec57ee3762e55486f92d44bbd1 | 651 | cpp | C++ | BeanDogEngine/Doors.cpp | RoyFilipchuk56/BeanDogEngine | 189ff606b1568b8c2228602b545767bb827d3065 | [
"MIT"
] | null | null | null | BeanDogEngine/Doors.cpp | RoyFilipchuk56/BeanDogEngine | 189ff606b1568b8c2228602b545767bb827d3065 | [
"MIT"
] | null | null | null | BeanDogEngine/Doors.cpp | RoyFilipchuk56/BeanDogEngine | 189ff606b1568b8c2228602b545767bb827d3065 | [
"MIT"
] | null | null | null | #include "Doors.h"
Doors::Doors(std::vector<std::vector<cMesh*>> mesh, float distance)
{
meshList = mesh;
//position = mesh->transformXYZ;
startingPoint1 = position;
this->distance = distance;
this->direction = direction;
open = false;
bool isInAnimation = false;
}
void Doors::update(float deltaTime)
{
/*
if... | 21.7 | 72 | 0.671275 | RoyFilipchuk56 |
1f47217b8c936f75cd98ba2fc53b0ce5fcad9bef | 1,414 | cpp | C++ | CLRS/String/ReverseWordsinaStringIII.cpp | ComputerProgrammerStorager/DataStructureAlgorithm | 508f7e37898c907ea7ea6ec40749621a2349e93f | [
"MIT"
] | null | null | null | CLRS/String/ReverseWordsinaStringIII.cpp | ComputerProgrammerStorager/DataStructureAlgorithm | 508f7e37898c907ea7ea6ec40749621a2349e93f | [
"MIT"
] | null | null | null | CLRS/String/ReverseWordsinaStringIII.cpp | ComputerProgrammerStorager/DataStructureAlgorithm | 508f7e37898c907ea7ea6ec40749621a2349e93f | [
"MIT"
] | null | null | null | /*
Given a string s, reverse the order of characters in each word within a sentence while still preserving whitespace and initial word order.
Example 1:
Input: s = "Let's take LeetCode contest"
Output: "s'teL ekat edoCteeL tsetnoc"
Example 2:
Input: s = "God Ding"
Output: "doG gniD"
Constraints:
1 <= s.length... | 22.444444 | 138 | 0.51768 | ComputerProgrammerStorager |
1f4b22b1a15af882dc682191fed3bad911c4e065 | 3,478 | cpp | C++ | raptor/multilevel/tests/test_par_sparsify.cpp | lukeolson/raptor | 526c88d0801634e6fb41375ae077f2d4aa3241a4 | [
"BSD-2-Clause"
] | 25 | 2017-11-20T21:45:43.000Z | 2019-01-27T15:03:25.000Z | raptor/multilevel/tests/test_par_sparsify.cpp | raptor-library/raptor | b34bd194674294a34d1984c1035f7549c1dfaca8 | [
"BSD-2-Clause"
] | 3 | 2019-12-04T18:18:59.000Z | 2022-03-22T08:27:14.000Z | raptor/multilevel/tests/test_par_sparsify.cpp | lukeolson/raptor | 526c88d0801634e6fb41375ae077f2d4aa3241a4 | [
"BSD-2-Clause"
] | 5 | 2017-11-20T22:03:57.000Z | 2018-12-05T10:30:22.000Z | // Copyright (c) 2015-2017, RAPtor Developer Team
// License: Simplified BSD, http://opensource.org/licenses/BSD-2-Clause
#include "gtest/gtest.h"
#include "raptor.hpp"
#include "tests/par_compare.hpp"
using namespace raptor;
int argc;
char **argv;
int main(int _argc, char** _argv)
{
MPI_Init(&_argc, &_argv);
... | 26.753846 | 96 | 0.586832 | lukeolson |
1f571688f57dd025c841a0ded8e73cb19c3020ea | 1,414 | cpp | C++ | tggdhj2/Data.Game.Avatar.Counter.cpp | playdeezgames/tggdhj2 | 41c76ce27087bb4e53a6adc69c5b3fe7dcfbb7f7 | [
"MIT"
] | null | null | null | tggdhj2/Data.Game.Avatar.Counter.cpp | playdeezgames/tggdhj2 | 41c76ce27087bb4e53a6adc69c5b3fe7dcfbb7f7 | [
"MIT"
] | null | null | null | tggdhj2/Data.Game.Avatar.Counter.cpp | playdeezgames/tggdhj2 | 41c76ce27087bb4e53a6adc69c5b3fe7dcfbb7f7 | [
"MIT"
] | null | null | null | #include "Common.Data.h"
#include "Data.Game.Common.h"
#include "Data.Game.Avatar.Counter.h"
#include <format>
namespace data::game::avatar::Counter
{
const std::string FIELD_COUNTER_VALUE = "CounterValue";
const std::string CREATE_TABLE = "CREATE TABLE IF NOT EXISTS [AvatarCounters]([AvatarId] INT NOT NULL, [Counter... | 38.216216 | 193 | 0.734088 | playdeezgames |
1f59b1bca5b2ff37822d655b71e8a87e4e81b92a | 4,301 | hpp | C++ | Blik2D/core/blik_math.hpp | BonexGu/Blik2D | 8e0592787e5c8e8a28682d0e1826b8223eae5983 | [
"MIT"
] | 13 | 2017-02-22T02:20:06.000Z | 2018-06-06T04:18:03.000Z | Blik2D/core/blik_math.hpp | BonexGu/Blik2D | 8e0592787e5c8e8a28682d0e1826b8223eae5983 | [
"MIT"
] | null | null | null | Blik2D/core/blik_math.hpp | BonexGu/Blik2D | 8e0592787e5c8e8a28682d0e1826b8223eae5983 | [
"MIT"
] | null | null | null | #pragma once
#define BLIK_NOT_INCLUDE_FOR_INTELLIGENCE
#include <blik.hpp>
namespace BLIK
{
//! \brief 수학함수지원
class Math
{
public:
/*!
\brief 절대값 구하기
\param v : 인수
\return 절대값
*/
inline static sint32 Abs(const sint32 v)
{return (v < 0)? -v : v;}
... | 21.943878 | 94 | 0.464543 | BonexGu |
1f5d821ab7415bcb8ffcaf5ebc372c31630df6ab | 8,435 | cpp | C++ | src/nfc-lib/lib-rt/rt-lang/src/main/cpp/Logger.cpp | josevcm/nfc-spy | ef5a401ce14d2206d51208dabaa75c5d810a6b35 | [
"MIT"
] | 32 | 2021-09-13T07:32:54.000Z | 2022-03-17T14:53:19.000Z | src/nfc-lib/lib-rt/rt-lang/src/main/cpp/Logger.cpp | josevcm/nfc-spy | ef5a401ce14d2206d51208dabaa75c5d810a6b35 | [
"MIT"
] | 8 | 2021-09-16T11:08:29.000Z | 2022-02-13T09:39:45.000Z | src/nfc-lib/lib-rt/rt-lang/src/main/cpp/Logger.cpp | josevcm/nfc-spy | ef5a401ce14d2206d51208dabaa75c5d810a6b35 | [
"MIT"
] | 10 | 2021-09-17T12:02:40.000Z | 2022-03-17T11:07:17.000Z | /*
Copyright (c) 2021 Jose Vicente Campos Martinez - <josevcm@gmail.com>
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to ... | 25.483384 | 203 | 0.636989 | josevcm |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.