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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
7aa413252796834f146a532eb6f7c0d4d9c3a47f | 11,822 | cpp | C++ | Source/TinyEngine/Graphics3D/ModelNode.cpp | chenjinxian/FX-Studio | cc4afddc4bce688e8366b8e4ceb2708adffd6eb4 | [
"MIT"
] | 18 | 2016-10-19T00:40:56.000Z | 2021-10-03T16:45:11.000Z | Source/TinyEngine/Graphics3D/ModelNode.cpp | chenjinxian/FX-Studio | cc4afddc4bce688e8366b8e4ceb2708adffd6eb4 | [
"MIT"
] | null | null | null | Source/TinyEngine/Graphics3D/ModelNode.cpp | chenjinxian/FX-Studio | cc4afddc4bce688e8366b8e4ceb2708adffd6eb4 | [
"MIT"
] | 4 | 2017-02-10T09:08:59.000Z | 2021-02-15T08:39:27.000Z | #include "ModelNode.h"
#include "CameraNode.h"
#include "Scene.h"
#include "Model.h"
#include "Material.h"
#include "../Actors/Actor.h"
#include "../Actors/RenderComponent.h"
#include "../Actors/TransformComponent.h"
#include "../ResourceCache/ResCache.h"
#include "../ResourceCache/TextureResource.h"
#include "../Resou... | 28.834146 | 122 | 0.670868 | chenjinxian |
7ab3b27242585af42243c9a6a40815835e0942bf | 578 | cpp | C++ | a program to form combination of 0,S AND 1,S upon how much user enter the value of n.cpp | Faiquekhan15/C-C-conceptual-Questions | a75141bd5a58c32e2446f695e66ffbf979b8c8af | [
"MIT"
] | null | null | null | a program to form combination of 0,S AND 1,S upon how much user enter the value of n.cpp | Faiquekhan15/C-C-conceptual-Questions | a75141bd5a58c32e2446f695e66ffbf979b8c8af | [
"MIT"
] | null | null | null | a program to form combination of 0,S AND 1,S upon how much user enter the value of n.cpp | Faiquekhan15/C-C-conceptual-Questions | a75141bd5a58c32e2446f695e66ffbf979b8c8af | [
"MIT"
] | null | null | null | #include<iostream>
#include<vector>
using namespace std;
void printarray(vector<int>&comb)
{
for(int i=0;i<comb.size();i++)
{
cout<<comb[i];
}
cout<<endl;
}
void printallcomb(int n,vector<int>&comb)
{
if(n==0)
{
printarray(comb);
}
else
{
comb.push_back(0);
printallcomb(n-1,comb);
comb.pop_back();
... | 14.45 | 68 | 0.655709 | Faiquekhan15 |
7aba225364d6d3e40f27ea20d81556166219085c | 175 | cpp | C++ | test/system/test_socket.cpp | joydit/solidframe | 0539b0a1e77663ac4c701a88f56723d3e3688e8c | [
"BSL-1.0"
] | null | null | null | test/system/test_socket.cpp | joydit/solidframe | 0539b0a1e77663ac4c701a88f56723d3e3688e8c | [
"BSL-1.0"
] | null | null | null | test/system/test_socket.cpp | joydit/solidframe | 0539b0a1e77663ac4c701a88f56723d3e3688e8c | [
"BSL-1.0"
] | null | null | null | #include <iostream>
#include "system/cassert.hpp"
using namespace std;
int test_socket(int argc, char **argv){
cout<<"test_socket"<<endl;
//cassert(false);
return -1;
}
| 14.583333 | 39 | 0.697143 | joydit |
7abe82b9fc562589c3b86efa5a3796a0161f960e | 5,253 | cpp | C++ | time.cpp | komasaru/sun_moon | d4dee17f1164188f5c7686c76a9119e7688be10a | [
"MIT"
] | null | null | null | time.cpp | komasaru/sun_moon | d4dee17f1164188f5c7686c76a9119e7688be10a | [
"MIT"
] | null | null | null | time.cpp | komasaru/sun_moon | d4dee17f1164188f5c7686c76a9119e7688be10a | [
"MIT"
] | null | null | null | #include "time.hpp"
namespace sun_moon {
// 定数
static constexpr unsigned int kJstOffset = 9; // JST - UTC (hours)
static constexpr unsigned int kSecHour = 3600; // Seconds in an hour
static constexpr double kTtTai = 32.184; // TT - TAI
/*
* @brief 変換: JST -> UTC
*
* @param[in] JST (tim... | 24.661972 | 73 | 0.503522 | komasaru |
7ac4815337ebec182ca2ce2601cb7a81b1c55015 | 237 | cpp | C++ | src/Resources/config/parameters.cpp | Inlife/video-cube | 1caefa2b2cda7c1386c3b75796086cb7201f5e8d | [
"MIT"
] | 2 | 2015-08-19T13:52:43.000Z | 2016-09-02T23:12:32.000Z | src/Resources/config/parameters.cpp | Inlife/video-cube | 1caefa2b2cda7c1386c3b75796086cb7201f5e8d | [
"MIT"
] | null | null | null | src/Resources/config/parameters.cpp | Inlife/video-cube | 1caefa2b2cda7c1386c3b75796086cb7201f5e8d | [
"MIT"
] | 1 | 2018-05-25T11:29:45.000Z | 2018-05-25T11:29:45.000Z | using namespace Cooper;
// Set params for DB connection
void loadParams() {
config["dbname"] = "videocube";
config["user"] = "postgres";
config["password"] = "1we2q3";
config["hostaddr"] = "93.73.16.132";
config["port"] = "5432";
} | 23.7 | 37 | 0.649789 | Inlife |
7ac53260bea8f6577ff7db4b87860ab863908f89 | 2,468 | hh | C++ | src/renderer/font.hh | nilium/snow | 296466e49fd5ebd8d4d40dbf96b14903daa705a8 | [
"Zlib",
"BSD-2-Clause"
] | 4 | 2015-10-01T20:10:20.000Z | 2021-08-28T23:43:33.000Z | src/renderer/font.hh | nilium/snow | 296466e49fd5ebd8d4d40dbf96b14903daa705a8 | [
"Zlib",
"BSD-2-Clause"
] | null | null | null | src/renderer/font.hh | nilium/snow | 296466e49fd5ebd8d4d40dbf96b14903daa705a8 | [
"Zlib",
"BSD-2-Clause"
] | null | null | null | /*
font.hh -- Copyright (c) 2013 Noel Cower. All rights reserved.
See COPYING under the project root for the source code license. If this file
is not present, refer to <https://raw.github.com/nilium/snow/master/COPYING>.
*/
#ifndef __SNOW__FONT_HH__
#define __SNOW__FONT_HH__
#include "../config.hh"
#include <sno... | 25.443299 | 79 | 0.632091 | nilium |
7ad3497aa709ce5262daa48f6c5146f75093bbc8 | 4,785 | cpp | C++ | src/plugins/matrixops/matrixops.cpp | diehlpk/phylanx | 7eba54f0f22dc66d18addac0b24f006380d0f798 | [
"BSL-1.0"
] | null | null | null | src/plugins/matrixops/matrixops.cpp | diehlpk/phylanx | 7eba54f0f22dc66d18addac0b24f006380d0f798 | [
"BSL-1.0"
] | null | null | null | src/plugins/matrixops/matrixops.cpp | diehlpk/phylanx | 7eba54f0f22dc66d18addac0b24f006380d0f798 | [
"BSL-1.0"
] | null | null | null | // Copyright (c) 2018 Hartmut Kaiser
//
// Distributed under the Boost Software License, Version 1.0. (See accompanying
// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
#include <phylanx/config.hpp>
#include <phylanx/plugins/matrixops/matrixops.hpp>
#include <phylanx/plugins/plugin_factory.h... | 48.826531 | 80 | 0.814002 | diehlpk |
7ad81a440c2097e32d4f628938d66eda083dd01f | 344 | cpp | C++ | ycitoj/week2_div2/b.cpp | Zilanlann/cp-code | 0500acbf6fb05a66f7bdbdf0e0a8bd6170126a4a | [
"MIT"
] | 3 | 2022-03-30T14:14:57.000Z | 2022-03-31T04:30:32.000Z | ycitoj/week2_div2/b.cpp | Zilanlann/cp-code | 0500acbf6fb05a66f7bdbdf0e0a8bd6170126a4a | [
"MIT"
] | null | null | null | ycitoj/week2_div2/b.cpp | Zilanlann/cp-code | 0500acbf6fb05a66f7bdbdf0e0a8bd6170126a4a | [
"MIT"
] | null | null | null | #include <iostream>
#include <vector>
int main() {
int n;
std::cin >> n;
std::vector<int> ve(n);
for (auto& v : ve) std::cin >> v;
int l = 0, r = n - 1;
while (l < n || r >= 0) {
if (l < n) std::cout << ve[l] << " ";
if (r >= 0) std::cout << ve[r] << " ";
l += 2, r -= 2;... | 19.111111 | 46 | 0.389535 | Zilanlann |
7adedafade2a2f8465e127b09567f2f437531595 | 2,483 | cpp | C++ | rendu/src/Declaration.cpp | H4112/GrammairesLangages | 437a1b692217d85c7146404b0bdb7b8d292de6bd | [
"Apache-2.0"
] | null | null | null | rendu/src/Declaration.cpp | H4112/GrammairesLangages | 437a1b692217d85c7146404b0bdb7b8d292de6bd | [
"Apache-2.0"
] | null | null | null | rendu/src/Declaration.cpp | H4112/GrammairesLangages | 437a1b692217d85c7146404b0bdb7b8d292de6bd | [
"Apache-2.0"
] | null | null | null | /*************************************************************************
Declaration - Déclaration d'une variable/constante
-------------------
début : 8 mars 2016 11:21:34
copyright : (C) 2016 par H4112
**********************... | 28.54023 | 83 | 0.373339 | H4112 |
7aefcef675d734cdc99c8b7fe4152baee547564e | 7,706 | cpp | C++ | ropgenerator/cpp-core/Semantic.cpp | avltree9798/ropgenerator | c63c81f03e8653dc3911e21300c00003a4224f6a | [
"MIT"
] | 1 | 2021-01-07T13:16:19.000Z | 2021-01-07T13:16:19.000Z | ropgenerator/cpp-core/Semantic.cpp | avltree9798/ropgenerator | c63c81f03e8653dc3911e21300c00003a4224f6a | [
"MIT"
] | null | null | null | ropgenerator/cpp-core/Semantic.cpp | avltree9798/ropgenerator | c63c81f03e8653dc3911e21300c00003a4224f6a | [
"MIT"
] | null | null | null | #include "Semantic.hpp"
#include "Architecture.hpp"
// SPair
SPair::SPair(ExprObjectPtr e, CondObjectPtr c): _expr(e), _cond(c){};
ExprObjectPtr SPair::expr(){return _expr;}
CondObjectPtr SPair::cond(){return _cond;}
ExprPtr SPair::expr_ptr(){return _expr->expr_ptr();}
CondPtr SPair::cond_ptr(){return _cond->cond_ptr(... | 33.215517 | 83 | 0.482481 | avltree9798 |
7aefe6cf4324a86095607d412beed8d388d0e394 | 2,741 | cc | C++ | test/cow/surface-source/surface_source_test.cc | halleyzhao/alios-mm | bef2a6de0c207a5ae9bf4f63de2e562df864aa3e | [
"Apache-2.0"
] | null | null | null | test/cow/surface-source/surface_source_test.cc | halleyzhao/alios-mm | bef2a6de0c207a5ae9bf4f63de2e562df864aa3e | [
"Apache-2.0"
] | null | null | null | test/cow/surface-source/surface_source_test.cc | halleyzhao/alios-mm | bef2a6de0c207a5ae9bf4f63de2e562df864aa3e | [
"Apache-2.0"
] | null | null | null | /**
* Copyright (C) 2017 Alibaba Group Holding Limited. 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
*
* ... | 30.120879 | 90 | 0.686611 | halleyzhao |
7af39d6a6e3b660e00e08e3c35746696e18254fa | 1,629 | cpp | C++ | HideousGameEngine/utests/Utils/GLKMath_AdditionsTests.cpp | chunkyguy/hideous-engine | 45a37a262897847613022e9c0d7a797b158a29f2 | [
"MIT"
] | 1 | 2019-09-13T18:18:07.000Z | 2019-09-13T18:18:07.000Z | HideousGameEngine/utests/Utils/GLKMath_AdditionsTests.cpp | chunkyguy/hideous-engine | 45a37a262897847613022e9c0d7a797b158a29f2 | [
"MIT"
] | null | null | null | HideousGameEngine/utests/Utils/GLKMath_AdditionsTests.cpp | chunkyguy/hideous-engine | 45a37a262897847613022e9c0d7a797b158a29f2 | [
"MIT"
] | 1 | 2019-11-21T06:32:56.000Z | 2019-11-21T06:32:56.000Z | //
// GLKMath_Additions.cpp
// HideousGameEngine
//
// Created by Sid on 08/06/13.
// Copyright (c) 2013 whackylabs. All rights reserved.
//
#include <he/Utils/GLKMath_Additions.h>
#include <gtest.h>
TEST(GLKVector2, Equality){
GLKVector2 a = GLKVector2Make(0.5f, 0.5f);
GLKVector2 b = GLKVector2Make(0.5f, 0.5f... | 26.704918 | 95 | 0.715163 | chunkyguy |
7afa88bc487a030c3f58270a5bb0b8f13c7703c1 | 779 | hpp | C++ | include/SFPlot/CartesianData.hpp | MoriokaReimen/SFPlot | 64b50500076a683026e4e439a9315f3725f1236f | [
"MIT"
] | 3 | 2021-01-25T14:30:36.000Z | 2021-03-10T17:12:41.000Z | include/SFPlot/CartesianData.hpp | MoriokaReimen/SFPlot | 64b50500076a683026e4e439a9315f3725f1236f | [
"MIT"
] | 1 | 2021-06-11T10:35:07.000Z | 2021-06-11T10:35:07.000Z | include/SFPlot/CartesianData.hpp | MoriokaReimen/SFPlot | 64b50500076a683026e4e439a9315f3725f1236f | [
"MIT"
] | null | null | null | #pragma once
#include <vector>
#include <utility>
#include <SFML/Graphics.hpp>
namespace sf
{
/**
* @relates CartesianChart
* data class which holds data member of cartesian chart plot.
*
*/
struct CartesianData {
/**
* @relates CartesianData
* specifier switches plotting method of data
*/
en... | 24.34375 | 70 | 0.599487 | MoriokaReimen |
7afd08ef5616ddc983dffeba64830f44449b9cbe | 1,030 | hpp | C++ | src/version.hpp | pangenome/smoothxg | 0f383e5033c6af18d95f5d8dca0a6e17e5dbf524 | [
"MIT"
] | 18 | 2020-10-02T18:39:03.000Z | 2022-01-27T11:18:29.000Z | src/version.hpp | pangenome/smoothxg | 0f383e5033c6af18d95f5d8dca0a6e17e5dbf524 | [
"MIT"
] | 50 | 2020-09-30T17:52:18.000Z | 2022-03-17T10:14:21.000Z | src/version.hpp | ekg/smoothxg | 20fee54d5279dd8bb435fb95b93b386cc5eec997 | [
"MIT"
] | 2 | 2020-08-28T13:08:09.000Z | 2020-09-23T20:15:17.000Z | // version.hpp: Version reflection information for smoothxg builds.
// modified from https://github.com/vgteam/vg/blob/master/src/version.hpp
#include <string>
#include <unordered_map>
namespace smoothxg {
using namespace std;
/// Class for holding smoothxg version.
class Version {
public:
/// The Git versio... | 25.75 | 102 | 0.727184 | pangenome |
bb005b41189f732a97e04e3bba59b627948b006f | 8,103 | cc | C++ | impl-endpoints/boringssl/runner-src/transport_common.cc | mingtaoy/tls-interop-runner | 1d99bab0dabab21e27dd706b9e86448e4867b531 | [
"MIT",
"Apache-2.0",
"BSD-3-Clause"
] | 7 | 2020-12-12T00:05:52.000Z | 2021-05-12T06:59:36.000Z | impl-endpoints/boringssl/runner-src/transport_common.cc | mingtaoy/tls-interop-runner | 1d99bab0dabab21e27dd706b9e86448e4867b531 | [
"MIT",
"Apache-2.0",
"BSD-3-Clause"
] | 35 | 2020-12-11T18:30:41.000Z | 2022-01-20T21:58:00.000Z | impl-endpoints/boringssl/runner-src/transport_common.cc | mingtaoy/tls-interop-runner | 1d99bab0dabab21e27dd706b9e86448e4867b531 | [
"MIT",
"Apache-2.0",
"BSD-3-Clause"
] | 10 | 2020-12-12T00:05:58.000Z | 2021-12-02T21:47:07.000Z | // SPDX-FileCopyrightText: 2014 Google Inc.
// SPDX-License-Identifier: ISC
#include <openssl/base.h>
#include <string>
#include <vector>
#include <errno.h>
#include <limits.h>
#include <stddef.h>
#include <stdlib.h>
#include <string.h>
#include <sys/types.h>
#include <arpa/inet.h>
#include <fcntl.h>
#include <netd... | 29.790441 | 80 | 0.655066 | mingtaoy |
bb0151f5d0be04570308242c3e31d4e57f7f3d44 | 6,864 | cpp | C++ | Moco/Executable/opensim-moco.cpp | zhengsizehrb/opensim-moco | 9844abc640a34d818a4bb21ef4fea3c3cb0f34ed | [
"Apache-2.0"
] | 41 | 2019-11-13T10:29:20.000Z | 2022-03-10T17:42:30.000Z | Moco/Executable/opensim-moco.cpp | zhengsizehrb/opensim-moco | 9844abc640a34d818a4bb21ef4fea3c3cb0f34ed | [
"Apache-2.0"
] | 165 | 2019-11-13T00:55:57.000Z | 2022-03-04T19:02:26.000Z | Moco/Executable/opensim-moco.cpp | zhengsizehrb/opensim-moco | 9844abc640a34d818a4bb21ef4fea3c3cb0f34ed | [
"Apache-2.0"
] | 15 | 2020-01-24T23:57:57.000Z | 2021-12-10T21:59:46.000Z | /* -------------------------------------------------------------------------- *
* OpenSim Moco: opensim-moco.cpp *
* -------------------------------------------------------------------------- *
* Copyright (c) 2017-19 Stanford University and the Authors *
... | 37.102703 | 85 | 0.522436 | zhengsizehrb |
bb01eedfedaf302956552ab6d5207533c2c4ea93 | 9,359 | cpp | C++ | src/messages.cpp | wltr/maritime-sdr | 24f434d0fbdb89c627abcee2868c22f7aa78b48e | [
"MIT"
] | null | null | null | src/messages.cpp | wltr/maritime-sdr | 24f434d0fbdb89c627abcee2868c22f7aa78b48e | [
"MIT"
] | null | null | null | src/messages.cpp | wltr/maritime-sdr | 24f434d0fbdb89c627abcee2868c22f7aa78b48e | [
"MIT"
] | null | null | null | #include "messages.h"
#include <stdexcept>
#include <iostream>
uint32_t Messages::integer(const std::vector<bool>& bits, size_t begin, size_t length)
{
if (bits.size() < (begin + length)) {
throw std::runtime_error("Not enough data to extract integer");
}
if (length > 32) {
throw std::runtime_error("Can... | 27.937313 | 114 | 0.593546 | wltr |
bb0763d3768aa1125acca645e4769cff1f3ef28b | 1,356 | hpp | C++ | tools/train/source/transform/OpGrad.hpp | xindongzhang/MNN | f4740c78dc8fc67ee4596552d2257f12c48af067 | [
"Apache-2.0"
] | 1 | 2019-08-09T03:16:49.000Z | 2019-08-09T03:16:49.000Z | tools/train/source/transform/OpGrad.hpp | xindongzhang/MNN | f4740c78dc8fc67ee4596552d2257f12c48af067 | [
"Apache-2.0"
] | null | null | null | tools/train/source/transform/OpGrad.hpp | xindongzhang/MNN | f4740c78dc8fc67ee4596552d2257f12c48af067 | [
"Apache-2.0"
] | 1 | 2021-08-23T03:40:09.000Z | 2021-08-23T03:40:09.000Z | //
// OpGrad.hpp
// MNN
//
// Created by MNN on 2019/05/05.
// Copyright © 2018, Alibaba Group Holding Limited
//
#ifndef OpGrad_hpp
#define OpGrad_hpp
#include <map>
#include <vector>
#include "OpConverter.hpp"
#include "Tensor.hpp"
class MNN_PUBLIC OpGrad {
public:
enum Type { LINEAR, SEMI_LINEAR, NO_LINEAR... | 27.673469 | 116 | 0.571534 | xindongzhang |
bb076e91aa466d83ddc027c9e5ab24ccf6e8c803 | 344 | cpp | C++ | test/functional/args.cpp | jonathanpoelen/falcon | 5b60a39787eedf15b801d83384193a05efd41a89 | [
"MIT"
] | 2 | 2018-02-02T14:19:59.000Z | 2018-05-13T02:48:24.000Z | test/functional/args.cpp | jonathanpoelen/falcon | 5b60a39787eedf15b801d83384193a05efd41a89 | [
"MIT"
] | null | null | null | test/functional/args.cpp | jonathanpoelen/falcon | 5b60a39787eedf15b801d83384193a05efd41a89 | [
"MIT"
] | null | null | null | #include <test/test.hpp>
#include <falcon/functional/args.hpp>
#include "args.hpp"
void args_test()
{
const int i0 = 1;
const int i1 = 2;
const int i2 = 3;
CHECK((falcon::args<2, 0>()(i0, i1, i2) == std::make_tuple(i2, i0)));
CHECK((falcon::args<-1, -2>()(i0, i1, i2) == std::make_tuple(i2, i1)));
}
FALCON_... | 21.5 | 73 | 0.627907 | jonathanpoelen |
bb0b4994c0b46835f29d28be6d4e15dfc5501b8e | 8,071 | cpp | C++ | example/image/blitter/blitter.cpp | ufoym/mango | 9732fc528f66439f50a3a7cb72d4ba42a59a3d54 | [
"Zlib"
] | 3 | 2021-02-27T10:29:37.000Z | 2022-02-16T16:31:26.000Z | example/image/blitter/blitter.cpp | ufoym/mango | 9732fc528f66439f50a3a7cb72d4ba42a59a3d54 | [
"Zlib"
] | null | null | null | example/image/blitter/blitter.cpp | ufoym/mango | 9732fc528f66439f50a3a7cb72d4ba42a59a3d54 | [
"Zlib"
] | 5 | 2021-03-22T11:06:00.000Z | 2022-02-22T02:53:19.000Z | /*
MANGO Multimedia Development Platform
Copyright (C) 2012-2021 Twilight Finland 3D Oy Ltd. All rights reserved.
*/
#include <mango/core/core.hpp>
#include <mango/image/image.hpp>
using namespace mango;
using namespace mango::image;
struct Test
{
Format dest;
Format source;
const char* note;
};
... | 40.154229 | 132 | 0.548259 | ufoym |
bb0f150b890d7267e29e5a7d81e0396873740b41 | 2,479 | cpp | C++ | opencl/test/unit_test/xe_hpg_core/test_local_work_size_xe_hpg_core.cpp | againull/compute-runtime | 3ef1ab88a4d9fad5c72e343f349365817c54da17 | [
"Intel",
"MIT"
] | null | null | null | opencl/test/unit_test/xe_hpg_core/test_local_work_size_xe_hpg_core.cpp | againull/compute-runtime | 3ef1ab88a4d9fad5c72e343f349365817c54da17 | [
"Intel",
"MIT"
] | null | null | null | opencl/test/unit_test/xe_hpg_core/test_local_work_size_xe_hpg_core.cpp | againull/compute-runtime | 3ef1ab88a4d9fad5c72e343f349365817c54da17 | [
"Intel",
"MIT"
] | null | null | null | /*
* Copyright (C) 2021 Intel Corporation
*
* SPDX-License-Identifier: MIT
*
*/
#include "shared/source/helpers/hw_helper.h"
#include "shared/source/os_interface/hw_info_config.h"
#include "shared/test/common/helpers/debug_manager_state_restore.h"
#include "shared/test/common/test_macros/test.h"
#include "opencl... | 38.734375 | 145 | 0.745865 | againull |
bb19410f5cf40c9fa3fe15e135163e5a4fca5f77 | 9,502 | cpp | C++ | source/glraw/source/UniformParser.cpp | cginternals/glraw | 4c9930833e42404e74364b9b6eaf5afd98ac3096 | [
"MIT"
] | 48 | 2015-07-30T11:20:49.000Z | 2022-01-10T20:07:51.000Z | source/glraw/source/UniformParser.cpp | hpicgs/glraw | 4c9930833e42404e74364b9b6eaf5afd98ac3096 | [
"MIT"
] | 3 | 2015-08-08T08:51:36.000Z | 2017-01-17T17:26:54.000Z | source/glraw/source/UniformParser.cpp | cginternals/glraw | 4c9930833e42404e74364b9b6eaf5afd98ac3096 | [
"MIT"
] | 9 | 2015-07-06T15:51:22.000Z | 2019-04-24T06:23:12.000Z |
#include "UniformParser.h"
#include <QOpenGLShaderProgram>
#include <QOpenGLFunctions_3_2_Core>
namespace glraw
{
void UniformParser::setUniforms(
QOpenGLFunctions_3_2_Core & gl
, QOpenGLShaderProgram & program
, const QMap<QString, QString> & uniforms)
{
if (uniforms.isEmpty())
return;
if... | 27.865103 | 98 | 0.615028 | cginternals |
bb1b45f4c16786ec29a40f2e1cbfe0952e4ffbfc | 1,060 | cc | C++ | src/boson/test/shared_buffer.cc | duckie/boson | f3eb787f385c86b7735fcd7bc0ac0dc6a8fb7b1a | [
"MIT"
] | 174 | 2016-10-10T12:47:01.000Z | 2022-03-09T16:06:59.000Z | src/boson/test/shared_buffer.cc | duckie/boson | f3eb787f385c86b7735fcd7bc0ac0dc6a8fb7b1a | [
"MIT"
] | 5 | 2017-02-01T21:30:14.000Z | 2018-09-09T10:02:00.000Z | src/boson/test/shared_buffer.cc | duckie/boson | f3eb787f385c86b7735fcd7bc0ac0dc6a8fb7b1a | [
"MIT"
] | 13 | 2016-10-10T12:19:14.000Z | 2021-12-04T08:23:26.000Z | #include "catch.hpp"
#include "boson/boson.h"
#include <unistd.h>
#include "boson/logger.h"
#include "boson/shared_buffer.h"
#include <iostream>
using namespace boson;
/**
* This tests abuses of its knowledge of the framework
* to check that the buffer is effectively shared.
*
* The fact that data is shared betwe... | 25.853659 | 63 | 0.589623 | duckie |
bb2501ca5d5830dde00ac26ed5f0688544f056a9 | 1,858 | cc | C++ | src/commonTools.cc | MaximilienNaveau/EnergyComputation | f9fdefcff197f7527a7c686f990ff496562ebc5e | [
"BSD-3-Clause"
] | null | null | null | src/commonTools.cc | MaximilienNaveau/EnergyComputation | f9fdefcff197f7527a7c686f990ff496562ebc5e | [
"BSD-3-Clause"
] | null | null | null | src/commonTools.cc | MaximilienNaveau/EnergyComputation | f9fdefcff197f7527a7c686f990ff496562ebc5e | [
"BSD-3-Clause"
] | null | null | null | #include "commonTools.hh"
using namespace std ;
namespace fs = boost::filesystem;
// Return RC low-pass filter output samples, given input samples,
// time interval dt, and time constant RC
int lowpass( double x, double & y, double i, double a)
{
static double y_1 = 0.0 ;
if (i==0)
{
y = x ;
... | 22.119048 | 114 | 0.50592 | MaximilienNaveau |
bb25d550909e90a6daeb0462909734bff64f9492 | 3,319 | cpp | C++ | 20-iterators/readerEx.20.06/plot.cpp | heavy3/programming-abstractions | e10eab5fe7d9ca7d7d4cc96551524707214e43a8 | [
"MIT"
] | 81 | 2018-11-15T21:23:19.000Z | 2022-03-06T09:46:36.000Z | 20-iterators/readerEx.20.06/plot.cpp | heavy3/programming-abstractions | e10eab5fe7d9ca7d7d4cc96551524707214e43a8 | [
"MIT"
] | null | null | null | 20-iterators/readerEx.20.06/plot.cpp | heavy3/programming-abstractions | e10eab5fe7d9ca7d7d4cc96551524707214e43a8 | [
"MIT"
] | 41 | 2018-11-15T21:23:24.000Z | 2022-02-24T03:02:26.000Z | //
// plot.cpp
//
// --------------------------------------------------------------------------
// Attribution: "Programming Abstractions in C++" by Eric Roberts
// Chapter 20, Exercise 06
// Stanford University, Autumn Quarter 2012
// http://web.stanford.edu/class/archive/cs/cs106b/cs106b.1136/materials/CS106BX-Reader... | 31.018692 | 91 | 0.564628 | heavy3 |
bb25e0091145bd4cd265569e004fdcb6c0699333 | 4,564 | hpp | C++ | src/session.hpp | olekolek1000/multipixel | 74760f92c6d9cf2be5f05cebc5b10780136f2662 | [
"BSD-3-Clause"
] | 4 | 2022-02-07T09:57:58.000Z | 2022-02-27T23:03:07.000Z | src/session.hpp | olekolek1000/multipixel | 74760f92c6d9cf2be5f05cebc5b10780136f2662 | [
"BSD-3-Clause"
] | null | null | null | src/session.hpp | olekolek1000/multipixel | 74760f92c6d9cf2be5f05cebc5b10780136f2662 | [
"BSD-3-Clause"
] | null | null | null | #pragma once
#include "command.hpp"
#include "src/waiter.hpp"
#include "util/event_queue.hpp"
#include "util/mutex.hpp"
#include "util/optional.hpp"
#include "util/smartptr.hpp"
#include "util/timestep.hpp"
#include "util/types.hpp"
#include "ws_server.hpp"
#include <atomic>
#include <memory>
#include <mutex>
#include... | 23.895288 | 66 | 0.740578 | olekolek1000 |
bb28724008a65fcf4694e65e1b3b8d324ca9c76a | 11,466 | cc | C++ | src/structure.cc | DouglasRMiles/QuProlog | 798d86f87fb4372b8918ef582ef2f0fc0181af2d | [
"Apache-2.0"
] | 5 | 2019-11-20T02:05:31.000Z | 2022-01-06T18:59:16.000Z | src/structure.cc | logicmoo/QuProlog | 798d86f87fb4372b8918ef582ef2f0fc0181af2d | [
"Apache-2.0"
] | null | null | null | src/structure.cc | logicmoo/QuProlog | 798d86f87fb4372b8918ef582ef2f0fc0181af2d | [
"Apache-2.0"
] | 2 | 2022-01-08T13:52:24.000Z | 2022-03-07T17:41:37.000Z | // structrure.cc - Contains functions which retrieve information from and
// build up structures.
//
// ##Copyright##
//
// Copyright 2000-2016 Peter Robinson (pjr@itee.uq.edu.au)
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance wi... | 23.163636 | 83 | 0.597855 | DouglasRMiles |
bb28a7372d1be4a8dfc4cc9bd378d531af3a745d | 6,614 | cpp | C++ | src/postgres/backend/executor/nodeForeignscan.cpp | jessesleeping/my_peloton | a19426cfe34a04692a11008eaffc9c3c9b49abc4 | [
"Apache-2.0"
] | 6 | 2017-04-28T00:38:52.000Z | 2018-11-06T07:06:49.000Z | src/postgres/backend/executor/nodeForeignscan.cpp | jessesleeping/my_peloton | a19426cfe34a04692a11008eaffc9c3c9b49abc4 | [
"Apache-2.0"
] | 57 | 2016-03-19T22:27:55.000Z | 2017-07-08T00:41:51.000Z | src/postgres/backend/executor/nodeForeignscan.cpp | eric-haibin-lin/pelotondb | 904d6bbd041a0498ee0e034d4f9f9f27086c3cab | [
"Apache-2.0"
] | 14 | 2017-01-12T11:09:09.000Z | 2019-04-19T09:58:20.000Z | /*-------------------------------------------------------------------------
*
* nodeForeignscan.c
* Routines to support scans of foreign tables
*
* Portions Copyright (c) 1996-2015, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
*
* IDENTIFICATION... | 27.789916 | 77 | 0.641669 | jessesleeping |
bb29c8bdf374aa90b1e53803ac9ee5d21b500c75 | 1,270 | hpp | C++ | code/source/util/mem_pool_chunk.hpp | crafn/clover | 586acdbcdb34c3550858af125e9bb4a6300343fe | [
"MIT"
] | 12 | 2015-01-12T00:19:20.000Z | 2021-08-05T10:47:20.000Z | code/source/util/mem_pool_chunk.hpp | crafn/clover | 586acdbcdb34c3550858af125e9bb4a6300343fe | [
"MIT"
] | null | null | null | code/source/util/mem_pool_chunk.hpp | crafn/clover | 586acdbcdb34c3550858af125e9bb4a6300343fe | [
"MIT"
] | null | null | null | #ifndef CLOVER_UTIL_MEM_POOL_CHUNK_HPP
#define CLOVER_UTIL_MEM_POOL_CHUNK_HPP
#include "build.hpp"
#include "util/dyn_bitarray.hpp"
#include "util/dyn_array.hpp"
#include "util/mem_pool.hpp"
namespace clover {
namespace util {
/// Memory pool for equally sized chunks
class ENGINE_API ChunkMemPool : public MemPool {
... | 25.918367 | 70 | 0.770866 | crafn |
bb2cb095e6a3b2170c6f279b7a385772210ddebd | 559 | hpp | C++ | graphics/RawMesh.hpp | quyse/inanity | a39225c5a41f879abe5aa492bb22b500dbe77433 | [
"MIT"
] | 26 | 2015-04-22T05:25:25.000Z | 2020-11-15T11:07:56.000Z | graphics/RawMesh.hpp | quyse/inanity | a39225c5a41f879abe5aa492bb22b500dbe77433 | [
"MIT"
] | 2 | 2015-01-05T10:41:27.000Z | 2015-01-06T20:46:11.000Z | graphics/RawMesh.hpp | quyse/inanity | a39225c5a41f879abe5aa492bb22b500dbe77433 | [
"MIT"
] | 5 | 2016-08-02T11:13:57.000Z | 2018-10-26T11:19:27.000Z | #ifndef ___INANITY_GRAPHICS_RAW_MESH_HPP___
#define ___INANITY_GRAPHICS_RAW_MESH_HPP___
#include "graphics.hpp"
BEGIN_INANITY
class File;
END_INANITY
BEGIN_INANITY_GRAPHICS
class VertexLayout;
class RawMesh : public Object
{
private:
ptr<File> vertices;
ptr<VertexLayout> vertexLayout;
ptr<File> indices;
publ... | 15.971429 | 80 | 0.78712 | quyse |
bb315fdb065da3856cc2cca11cfc271d0b6d6b78 | 935 | cpp | C++ | src/saiga/opengl/uniformBuffer.cpp | SimonMederer/saiga | ff167e60c50b1cead4d19eb5ab2e93acce8c42a3 | [
"MIT"
] | null | null | null | src/saiga/opengl/uniformBuffer.cpp | SimonMederer/saiga | ff167e60c50b1cead4d19eb5ab2e93acce8c42a3 | [
"MIT"
] | null | null | null | src/saiga/opengl/uniformBuffer.cpp | SimonMederer/saiga | ff167e60c50b1cead4d19eb5ab2e93acce8c42a3 | [
"MIT"
] | null | null | null | /**
* Copyright (c) 2017 Darius Rückert
* Licensed under the MIT License.
* See LICENSE file for more information.
*/
#include "saiga/opengl/uniformBuffer.h"
namespace Saiga
{
UniformBuffer::UniformBuffer() : Buffer(GL_UNIFORM_BUFFER) {}
UniformBuffer::~UniformBuffer() {}
void UniformBuffer::init(std::shared_... | 19.893617 | 73 | 0.709091 | SimonMederer |
bb35e00a6e05f5e2d3836ef1ea79ddd49b070067 | 4,624 | cpp | C++ | src/prod/src/Management/healthmanager/PartitionAttributesStoreData.cpp | vishnuk007/service-fabric | d0afdea185ae932cc3c9eacf179692e6fddbc630 | [
"MIT"
] | 2,542 | 2018-03-14T21:56:12.000Z | 2019-05-06T01:18:20.000Z | src/prod/src/Management/healthmanager/PartitionAttributesStoreData.cpp | vishnuk007/service-fabric | d0afdea185ae932cc3c9eacf179692e6fddbc630 | [
"MIT"
] | 994 | 2019-05-07T02:39:30.000Z | 2022-03-31T13:23:04.000Z | src/prod/src/Management/healthmanager/PartitionAttributesStoreData.cpp | vishnuk007/service-fabric | d0afdea185ae932cc3c9eacf179692e6fddbc630 | [
"MIT"
] | 300 | 2018-03-14T21:57:17.000Z | 2019-05-06T20:07:00.000Z | // ------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License (MIT). See License.txt in the repo root for license information.
// ------------------------------------------------------------
#include "stdafx.h"
using nam... | 27.040936 | 117 | 0.661332 | vishnuk007 |
7d6b5fd35c6141c57502d5b66c11cbbbac6f515b | 1,542 | hpp | C++ | include/Boots/Utils/directory.hpp | Plaristote/Boots | ba6bd74fd06c5b26f1e159c6c861d46992db1145 | [
"BSD-3-Clause"
] | null | null | null | include/Boots/Utils/directory.hpp | Plaristote/Boots | ba6bd74fd06c5b26f1e159c6c861d46992db1145 | [
"BSD-3-Clause"
] | null | null | null | include/Boots/Utils/directory.hpp | Plaristote/Boots | ba6bd74fd06c5b26f1e159c6c861d46992db1145 | [
"BSD-3-Clause"
] | null | null | null | #ifndef DIRECTORY_HPP
# define DIRECTORY_HPP
# ifndef _WIN32
# include <dirent.h>
# include <sys/stat.h>
# include <unistd.h>
# include <string>
typedef struct dirent Dirent;
# else
# define _WINSOCKAPI_
//# include "semaphore.hpp"
# include <Windows.h>
# include <tchar.h>
# include <stdio.h>
# include <str... | 23.014925 | 84 | 0.677691 | Plaristote |
7d6b83b73a36810f36478732ba5859e1b324bd82 | 668 | cpp | C++ | UVa Online Judge/1176.cpp | xiezeju/ACM-Code-Archives | db135ed0953adcf5c7ab37a00b3f9458291ce0d7 | [
"MIT"
] | 1 | 2022-02-24T12:44:30.000Z | 2022-02-24T12:44:30.000Z | UVa Online Judge/1176.cpp | xiezeju/ACM-Code-Archives | db135ed0953adcf5c7ab37a00b3f9458291ce0d7 | [
"MIT"
] | null | null | null | UVa Online Judge/1176.cpp | xiezeju/ACM-Code-Archives | db135ed0953adcf5c7ab37a00b3f9458291ce0d7 | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
#define LSOne(S) ((S) & -(S))
using namespace std;
typedef long long ll;
typedef pair<int, int> ii;
typedef vector<int> vi;
typedef vector<ii> vii;
typedef vector<ll> vll;
const int INF = 0x3f3f3f3f;
const long long LLINF = 4e18;
const double EPS = 1e-9;
const int N = 1010;
int js(int n){
... | 16.7 | 42 | 0.549401 | xiezeju |
7d6cf5ff6852f32400c1059bcf4bf3cbc0277544 | 784 | cpp | C++ | cppPrime/classtemplate_c16/test_02.cpp | ilvcr/cpplgproject | d3dc492b37c3754e35669eee2dd96d83de63ead4 | [
"Apache-2.0"
] | null | null | null | cppPrime/classtemplate_c16/test_02.cpp | ilvcr/cpplgproject | d3dc492b37c3754e35669eee2dd96d83de63ead4 | [
"Apache-2.0"
] | null | null | null | cppPrime/classtemplate_c16/test_02.cpp | ilvcr/cpplgproject | d3dc492b37c3754e35669eee2dd96d83de63ead4 | [
"Apache-2.0"
] | null | null | null | /*************************************************************************
> File Name: test_02.cpp
> Author: yoghourt->ilvcr
> Mail: liyaoliu@foxmail.com @@ ilvcr@outlook.com
> Created Time: 2018年07月19日 星期四 23时06分28秒
> Description: 类模板 Queue 的定义, 其和类模板 QueueItem 的
定义都被放在一个名为 Queue.h的头文件
****... | 20.102564 | 74 | 0.516582 | ilvcr |
7d722438d8351238988776e121a68201fe43c49a | 1,355 | hpp | C++ | RubetekIOS-CPP.framework/Versions/A/Headers/libnet/rubetek/utility/multiform/to_property_value.hpp | yklishevich/RubetekIOS-CPP-releases | 7dfbbb45b8de7dbb6fa995ff5dcbca4ec06c2bdb | [
"MIT"
] | null | null | null | RubetekIOS-CPP.framework/Versions/A/Headers/libnet/rubetek/utility/multiform/to_property_value.hpp | yklishevich/RubetekIOS-CPP-releases | 7dfbbb45b8de7dbb6fa995ff5dcbca4ec06c2bdb | [
"MIT"
] | null | null | null | RubetekIOS-CPP.framework/Versions/A/Headers/libnet/rubetek/utility/multiform/to_property_value.hpp | yklishevich/RubetekIOS-CPP-releases | 7dfbbb45b8de7dbb6fa995ff5dcbca4ec06c2bdb | [
"MIT"
] | null | null | null | #pragma once
#include <rubetek/essence/property.hpp>
#include <rubetek/utility/noncopyable.hpp>
#include <rubetek/utility/multiform/multiform.hpp>
#include <rubetek/utility/multiform/apply_visitor.hpp>
namespace rubetek
{
struct multiform_to_property_value_visitor
: utility::noncopyable
{
sta... | 24.636364 | 135 | 0.58524 | yklishevich |
7d75ea708e9473eca02aab0546d590b94fd5cacc | 465 | hpp | C++ | includes/eeros/hal/DummyRealOutput.hpp | bajric/eeros | 157dcfa87f87f55bc2fec703ea2c4eb1c27a35c8 | [
"Apache-2.0"
] | null | null | null | includes/eeros/hal/DummyRealOutput.hpp | bajric/eeros | 157dcfa87f87f55bc2fec703ea2c4eb1c27a35c8 | [
"Apache-2.0"
] | null | null | null | includes/eeros/hal/DummyRealOutput.hpp | bajric/eeros | 157dcfa87f87f55bc2fec703ea2c4eb1c27a35c8 | [
"Apache-2.0"
] | null | null | null | #ifndef ORG_EEROS_HAL_DUMMYREALOUTPUT_HPP_
#define ORG_EEROS_HAL_DUMMYREALOUTPUT_HPP_
#include <string>
#include <eeros/hal/ScalablePeripheralOutput.hpp>
namespace eeros {
namespace hal {
class DummyRealOutput : public ScalablePeripheralOutput<double> {
public:
DummyRealOutput(std::string id, double scale = ... | 22.142857 | 72 | 0.76129 | bajric |
7d77c276d89dc7a8f4a4f478b612c557ecbbae0a | 1,998 | cpp | C++ | Solution/Source/Graphics/MeshExporter.cpp | TeeNik/GameEngine | 9a3893455f20e14f967e5df9b2168fa0f004c101 | [
"MIT"
] | null | null | null | Solution/Source/Graphics/MeshExporter.cpp | TeeNik/GameEngine | 9a3893455f20e14f967e5df9b2168fa0f004c101 | [
"MIT"
] | null | null | null | Solution/Source/Graphics/MeshExporter.cpp | TeeNik/GameEngine | 9a3893455f20e14f967e5df9b2168fa0f004c101 | [
"MIT"
] | null | null | null | #pragma once
#include "Graphics/MeshExporter.hpp"
#include "Graphics/Mesh.hpp"
#include "Graphics/SkeletalMesh.hpp"
#include "assimp/Importer.hpp"
#include "assimp/scene.h"
#include "assimp/postprocess.h"
#include "Engine/Engine.hpp"
#include "Graphics/Renderer.hpp"
MeshExporter::MeshExporter(Engine* e... | 25.291139 | 92 | 0.682182 | TeeNik |
7d82a505be293a1af29273caa9b907acb1bb0696 | 3,066 | cpp | C++ | avlme.cpp | Rajasuryaa/seven | 87a7e1aa801fa330deb585ba859a09da56c22e90 | [
"curl"
] | null | null | null | avlme.cpp | Rajasuryaa/seven | 87a7e1aa801fa330deb585ba859a09da56c22e90 | [
"curl"
] | null | null | null | avlme.cpp | Rajasuryaa/seven | 87a7e1aa801fa330deb585ba859a09da56c22e90 | [
"curl"
] | null | null | null | #include<stdio.h>
#include<stdlib.h>
using namespace std;
typedef struct node{
int data;
struct node *left;
struct node *right;
int ht;
}node;
int height(node * T)
{
int lh,rh;
if(T==NULL)
return(0);
if(T->left == NULL)
lh = 0;
else
lh = 1 + T->left->ht;
if(T->right == NULL)
... | 14.6 | 43 | 0.460535 | Rajasuryaa |
7d8957d617b3f89beb5b39a24f6fa1e9d4212437 | 291 | cpp | C++ | sources/lambda/main_functor.cpp | zussel/cpp-overview | 8a2f1ae7504ad2bb2a1ce8b284bb8a2fee448dbf | [
"MIT"
] | null | null | null | sources/lambda/main_functor.cpp | zussel/cpp-overview | 8a2f1ae7504ad2bb2a1ce8b284bb8a2fee448dbf | [
"MIT"
] | null | null | null | sources/lambda/main_functor.cpp | zussel/cpp-overview | 8a2f1ae7504ad2bb2a1ce8b284bb8a2fee448dbf | [
"MIT"
] | null | null | null | #include <iostream>
struct adder {
adder(int x) : x(x) {}
int operator()(int y) const { return x + y; }
int x;
};
int main()
{
// create an instance of the functor class
adder add42(42);
// and "call" it
std::cout << "8 + 42 = " << add42(8) << "\n";
return 0;
} | 16.166667 | 49 | 0.52921 | zussel |
7d8b95a50341cb59889d9654da14c7ffdea2db90 | 219 | cpp | C++ | OSE V2/OSE-Core/Resources/Mesh/MeshLoader.cpp | rexapex/OSE-V2-Game-Engine- | cbf8040d4b017275c073373f8438b227e691858d | [
"MIT"
] | 1 | 2019-09-29T17:45:11.000Z | 2019-09-29T17:45:11.000Z | OSE V2/OSE-Core/Resources/Mesh/MeshLoader.cpp | rexapex/OSE-V2-Game-Engine- | cbf8040d4b017275c073373f8438b227e691858d | [
"MIT"
] | 10 | 2020-11-13T13:41:26.000Z | 2020-11-16T18:46:57.000Z | OSE V2/OSE-Core/Resources/Mesh/MeshLoader.cpp | rexapex/OSE-Game-Engine | cbf8040d4b017275c073373f8438b227e691858d | [
"MIT"
] | null | null | null | #include "stdafx.h"
#include "MeshLoader.h"
namespace ose
{
MeshLoader::MeshLoader(std::string const & project_path) : project_path_(project_path)
{
}
MeshLoader::~MeshLoader() // Free all mesh resources
{
}
} | 14.6 | 87 | 0.707763 | rexapex |
7d8fbcd54bd2f868c61832ee14eaeb9b434c1bde | 6,368 | cpp | C++ | Base/Motor2D/DefenseAOE.cpp | stormhowlers/StormHowlers | e821d07d78e0eea1935828b16abf2b89c344eaa7 | [
"MIT"
] | 1 | 2019-03-08T16:59:43.000Z | 2019-03-08T16:59:43.000Z | Base/Motor2D/DefenseAOE.cpp | stormhowlers/StormHowlers | e821d07d78e0eea1935828b16abf2b89c344eaa7 | [
"MIT"
] | 14 | 2019-04-13T00:59:40.000Z | 2019-05-25T14:35:03.000Z | Base/Motor2D/DefenseAOE.cpp | Scarzard/StormHowlers | e821d07d78e0eea1935828b16abf2b89c344eaa7 | [
"MIT"
] | 1 | 2020-06-14T19:41:34.000Z | 2020-06-14T19:41:34.000Z | #include "DefenseAoe.h"
#include "Brofiler\Brofiler.h"
#include "Audio.h"
#include "Player.h"
#include "Render.h"
#include "Log.h"
#include "Transitions.h"
#include <map>
DefenseAoe::DefenseAoe()
{
// NOW IS A COPY OF DEFENSE TARGET WITH DIFERENT BEHAVIOUR (UPDATE)
// NEED TO CHANGE THE NAME INSIDE GetName() TO "de... | 23.411765 | 147 | 0.637406 | stormhowlers |
7d949ba7c63f157ee1a00e107876a852a1ea9cc9 | 4,249 | cpp | C++ | imp_core/test/linearmemory_test.cpp | mwerlberger/imp | 2a2e4d31fa59ca1c32ae7f415306b39e31fc1e85 | [
"MIT"
] | 8 | 2015-10-24T18:31:58.000Z | 2019-10-16T03:27:27.000Z | imp_core/test/linearmemory_test.cpp | henrywen2011/imp | 2a2e4d31fa59ca1c32ae7f415306b39e31fc1e85 | [
"MIT"
] | 7 | 2015-06-22T09:36:32.000Z | 2015-08-20T06:56:10.000Z | imp_core/test/linearmemory_test.cpp | henrywen2011/imp | 2a2e4d31fa59ca1c32ae7f415306b39e31fc1e85 | [
"MIT"
] | 3 | 2015-05-13T14:46:48.000Z | 2017-01-11T09:20:03.000Z | #include <gtest/gtest.h>
// system includes
#include <assert.h>
#include <cstdint>
#include <iostream>
#include <random>
#include <functional>
#include <limits>
#include <type_traits>
#include <imp/core/linearmemory.hpp>
template<class T>
typename std::enable_if<std::is_integral<T>::value, std::function<T()> >::type... | 23.870787 | 83 | 0.683926 | mwerlberger |
7d9a6ae9488c2272e562d773ce48947c04ab2736 | 5,633 | cpp | C++ | src/light.cpp | tenglvjun/geometry | b6615adaeb8c600cd1b75a604e6793e6a98e2fb3 | [
"MIT"
] | null | null | null | src/light.cpp | tenglvjun/geometry | b6615adaeb8c600cd1b75a604e6793e6a98e2fb3 | [
"MIT"
] | null | null | null | src/light.cpp | tenglvjun/geometry | b6615adaeb8c600cd1b75a604e6793e6a98e2fb3 | [
"MIT"
] | null | null | null | #include "light.h"
#include <cmath>
#include "tools.h"
#include "setting.h"
#include "shader_code_manage.h"
#include "math_tools.h"
GeoLight::GeoLight()
: m_ubo(0)
{
RestoreFromSetting();
m_bindingPoint = Shader::RequestBindingPoint();
InitShader();
InitUniformBuffer();
UpdateUniformBuffer();... | 22.898374 | 102 | 0.709746 | tenglvjun |
7da79adea403efc073b6d1f9603643b648a5ee12 | 133 | hpp | C++ | MyApp/tests/myapp.hpp | flowtr/chatlab-engine | ab79073d7fac93df49db8c02a07758f43d151fa6 | [
"Unlicense"
] | 3 | 2021-08-27T23:09:59.000Z | 2021-08-30T03:49:13.000Z | MyApp/tests/myapp.hpp | Zephilinox/emscripten-cpp-cmake-template | 90223195bf2386ed62e1f3e07c0d40baeab7fbef | [
"Unlicense"
] | null | null | null | MyApp/tests/myapp.hpp | Zephilinox/emscripten-cpp-cmake-template | 90223195bf2386ed62e1f3e07c0d40baeab7fbef | [
"Unlicense"
] | null | null | null | //SELF
#include "MyApp/Game.hpp"
//LIBS
#include <doctest/doctest.h>
//STD
TEST_CASE("test")
{
CHECK_EQ(Game::add(1, 2), 3);
} | 11.083333 | 33 | 0.62406 | flowtr |
7da9e1db1eb06a740bafdf4bd116e9412f2c3a8d | 631 | cc | C++ | 2019/d1s2.cc | danielrayali/adventofcode | 29bfd54013a4ba832b7c846d2770eb03692d67de | [
"MIT"
] | null | null | null | 2019/d1s2.cc | danielrayali/adventofcode | 29bfd54013a4ba832b7c846d2770eb03692d67de | [
"MIT"
] | null | null | null | 2019/d1s2.cc | danielrayali/adventofcode | 29bfd54013a4ba832b7c846d2770eb03692d67de | [
"MIT"
] | null | null | null | #include <iostream>
#include <fstream>
#include <set>
using namespace std;
int main(int argc, char* argv[]) {
if (argc != 2) {
cerr << "Give a file to parse" << endl;
return 0;
}
string path(argv[1]);
int total = 0;
set<int> history;
history.emplace(0);
while (true) {
ifstream in(path);
... | 17.527778 | 50 | 0.537242 | danielrayali |
7dad39c4f246ecb56a7b1b90958d3af8f9796d25 | 2,774 | cpp | C++ | src/Robot/leg.cpp | TheDarkPhoenix/HexapodRaspberry | 67116e06f80311b95124357892399e025675bff7 | [
"MIT"
] | null | null | null | src/Robot/leg.cpp | TheDarkPhoenix/HexapodRaspberry | 67116e06f80311b95124357892399e025675bff7 | [
"MIT"
] | 1 | 2018-06-08T15:30:36.000Z | 2018-06-08T15:35:57.000Z | src/Robot/leg.cpp | TheDarkPhoenix/HexapodRaspberry | 67116e06f80311b95124357892399e025675bff7 | [
"MIT"
] | null | null | null | #include "Robot/leg.h"
using namespace cv;
Leg::Leg(Point3f joint1, Point3f angles1, Point3f lengths1, cv::Point3f signals1)
{
legJoints.A = joint1;
angles = angles1;
lengths = lengths1;
signals = signals1;
}
void Leg::initJointPoints()
{
calculateJointPoints();
legEnd = legJoints.D;
init... | 29.827957 | 110 | 0.601298 | TheDarkPhoenix |
7daf90ae76c470170441dc43f9bb111d70a22978 | 237 | cpp | C++ | modules/common/src/visibility_reasoning.cpp | ToMadoRe/v4r | 7cb817e05cb9d99cb2f68db009c27d7144d07f09 | [
"MIT"
] | 17 | 2015-11-16T14:21:10.000Z | 2020-11-09T02:57:33.000Z | modules/common/src/visibility_reasoning.cpp | ToMadoRe/v4r | 7cb817e05cb9d99cb2f68db009c27d7144d07f09 | [
"MIT"
] | 35 | 2015-07-27T15:04:43.000Z | 2019-08-22T10:52:35.000Z | modules/common/src/visibility_reasoning.cpp | ToMadoRe/v4r | 7cb817e05cb9d99cb2f68db009c27d7144d07f09 | [
"MIT"
] | 18 | 2015-08-06T09:26:27.000Z | 2020-09-03T01:31:00.000Z | #include <v4r/common/visibility_reasoning.h>
#include <v4r/common/impl/visibility_reasoning.hpp>
template class V4R_EXPORTS v4r::VisibilityReasoning<pcl::PointXYZ>;
template class V4R_EXPORTS v4r::VisibilityReasoning<pcl::PointXYZRGB>;
| 39.5 | 70 | 0.831224 | ToMadoRe |
7db4d703919ef4d6f95092de9280e7128bfb5121 | 4,796 | hpp | C++ | addons/modules/modules/createTask/module.hpp | Krzyciu/A3CS | b7144fc9089b5ded6e37cc1fad79b1c2879521be | [
"MIT"
] | 1 | 2020-06-07T00:45:49.000Z | 2020-06-07T00:45:49.000Z | addons/modules/modules/createTask/module.hpp | Krzyciu/A3CS | b7144fc9089b5ded6e37cc1fad79b1c2879521be | [
"MIT"
] | 27 | 2020-05-24T11:09:56.000Z | 2020-05-25T12:28:10.000Z | addons/modules/modules/createTask/module.hpp | Krzyciu/A3CS | b7144fc9089b5ded6e37cc1fad79b1c2879521be | [
"MIT"
] | 2 | 2020-05-31T08:52:45.000Z | 2021-04-16T23:16:37.000Z | class GVAR(createTask): GVAR(base) {
scope = 2;
author = "SzwedzikPL";
displayName = CSTRING(createTask_displayName);
icon = "\a3\Modules_F\Data\iconTaskCreate_ca.paa";
category = QGVAR(tasks);
function = QFUNC(createTask_module);
functionPriority = 2;
GVAR(validator) = QFUNC(createTask_... | 38.677419 | 88 | 0.618015 | Krzyciu |
7dc2bf5ec8561caf0011e54db7d8718571d4d209 | 1,515 | cpp | C++ | contests/leetcode-155/b.cpp | Nightwish-cn/my_leetcode | 40f206e346f3f734fb28f52b9cde0e0041436973 | [
"MIT"
] | 23 | 2020-03-30T05:44:56.000Z | 2021-09-04T16:00:57.000Z | contests/leetcode-155/b.cpp | Nightwish-cn/my_leetcode | 40f206e346f3f734fb28f52b9cde0e0041436973 | [
"MIT"
] | 1 | 2020-05-10T15:04:05.000Z | 2020-06-14T01:21:44.000Z | contests/leetcode-155/b.cpp | Nightwish-cn/my_leetcode | 40f206e346f3f734fb28f52b9cde0e0041436973 | [
"MIT"
] | 6 | 2020-03-30T05:45:04.000Z | 2020-08-13T10:01:39.000Z | #include <bits/stdc++.h>
#define INF 2000000000
using namespace std;
typedef long long ll;
int read(){
int f = 1, x = 0;
char c = getchar();
while(c < '0' || c > '9'){if(c == '-') f = -f; c = getchar();}
while(c >= '0' && c <= '9')x = x * 10 + c - '0', c = getchar();
return f * x;
}
struct TreeNod... | 24.836066 | 113 | 0.490429 | Nightwish-cn |
7dc2dbd7c0514a3fe68684f455cda5b2224aab75 | 18,861 | cpp | C++ | GB_APU.cpp | mmmaolololo/hey | a889c58142b9c8a775a94b24420126b228d1a776 | [
"Apache-2.0"
] | null | null | null | GB_APU.cpp | mmmaolololo/hey | a889c58142b9c8a775a94b24420126b228d1a776 | [
"Apache-2.0"
] | null | null | null | GB_APU.cpp | mmmaolololo/hey | a889c58142b9c8a775a94b24420126b228d1a776 | [
"Apache-2.0"
] | null | null | null | #include "GB_APU.h"
const GB_BY APU::ReadTable[0x20] = {
0x80,0x3F,0x00,0xFF,0xBF,
0xFF,0x3F,0x00,0xFF,0xBF,
0x7F,0xFF,0x9F,0xFF,0xBF,
0xFF,0xFF,0x00,0x00,0xBF,
0x00,0x00,0x70,
0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF
};
const GB_BY APU::WaveTable[4][8] = {
{0,0,0,0,0,0,0,1},
{1,0,0,0,0,0,0,1},
... | 22.778986 | 139 | 0.503632 | mmmaolololo |
7dc7285309d6aa25f456f4ae5d5aa85cd52825a1 | 214 | hpp | C++ | libstdcxx/compare.hpp | F4doraOfDoom/juos | cdec685701c406defc9204dcadf154df9eefc879 | [
"MIT"
] | 3 | 2020-12-22T01:24:56.000Z | 2021-01-06T11:44:50.000Z | libstdcxx/compare.hpp | F4doraOfDoom/juos | cdec685701c406defc9204dcadf154df9eefc879 | [
"MIT"
] | null | null | null | libstdcxx/compare.hpp | F4doraOfDoom/juos | cdec685701c406defc9204dcadf154df9eefc879 | [
"MIT"
] | null | null | null | #ifndef _LIBCXX_COMPARE_H
#define _LIBCXX_COMPARE_H
template <class T>
struct Less
{
bool operator()(const T& x, const T& y) const
{
return x < y;
}
typedef bool result_type;
};
#endif // _LIBCXX_COMPARE_H | 14.266667 | 46 | 0.714953 | F4doraOfDoom |
7dc7b5f5217df8dc038fddd08964b198182da414 | 638 | cpp | C++ | world/tiles/source/DownStaircaseTile.cpp | sidav/shadow-of-the-wyrm | 747afdeebed885b1a4f7ab42f04f9f756afd3e52 | [
"MIT"
] | 60 | 2019-08-21T04:08:41.000Z | 2022-03-10T13:48:04.000Z | world/tiles/source/DownStaircaseTile.cpp | cleancoindev/shadow-of-the-wyrm | 51b23e98285ecb8336324bfd41ebf00f67b30389 | [
"MIT"
] | 3 | 2021-03-18T15:11:14.000Z | 2021-10-20T12:13:07.000Z | world/tiles/source/DownStaircaseTile.cpp | cleancoindev/shadow-of-the-wyrm | 51b23e98285ecb8336324bfd41ebf00f67b30389 | [
"MIT"
] | 8 | 2019-11-16T06:29:05.000Z | 2022-01-23T17:33:43.000Z | #include "DownStaircaseTile.hpp"
TileType DownStaircaseTile::get_tile_type() const
{
return TileType::TILE_TYPE_DOWN_STAIRCASE;
}
StaircaseType DownStaircaseTile::get_staircase_type() const
{
return StaircaseType::STAIRCASE_DOWN;
}
std::string DownStaircaseTile::get_tile_description_sid() const
{
return TileTe... | 20.580645 | 68 | 0.815047 | sidav |
7dc86d0384eed19d693f75c4f6528637eefbca70 | 1,792 | cc | C++ | pagespeed/controller/expensive_operation_rpc_handler.cc | dimitrilongo/mod_pagespeed | d0d3bc51aa4feddf010b7085872c64cc46b5aae0 | [
"Apache-2.0"
] | 2 | 2019-11-02T07:54:17.000Z | 2020-04-16T09:26:51.000Z | pagespeed/controller/expensive_operation_rpc_handler.cc | dimitrilongo/mod_pagespeed | d0d3bc51aa4feddf010b7085872c64cc46b5aae0 | [
"Apache-2.0"
] | 12 | 2017-03-14T18:26:11.000Z | 2021-10-01T15:33:50.000Z | pagespeed/controller/expensive_operation_rpc_handler.cc | dimitrilongo/mod_pagespeed | d0d3bc51aa4feddf010b7085872c64cc46b5aae0 | [
"Apache-2.0"
] | 1 | 2020-04-16T09:28:30.000Z | 2020-04-16T09:28:30.000Z | // Copyright 2016 Google Inc.
//
// 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... | 37.333333 | 80 | 0.781808 | dimitrilongo |
7dcd607ad8eaa0650739dcc8f7053a959dab4eb1 | 2,034 | cpp | C++ | Miscellaneous/tree_traversals.cpp | Alecs-Li/Competitive-Programming | 39941ff8e2c8994abbae8c96a1ed0a04b10058b8 | [
"MIT"
] | 1 | 2021-07-06T02:14:03.000Z | 2021-07-06T02:14:03.000Z | Miscellaneous/tree_traversals.cpp | Alex01890-creator/competitive-programming | 39941ff8e2c8994abbae8c96a1ed0a04b10058b8 | [
"MIT"
] | null | null | null | Miscellaneous/tree_traversals.cpp | Alex01890-creator/competitive-programming | 39941ff8e2c8994abbae8c96a1ed0a04b10058b8 | [
"MIT"
] | null | null | null | #include <iostream>
#include <vector>
#include <unordered_map>
using namespace std;
struct Node {
int key;
struct Node *left, *right;
Node(int key)
{
this->key = key;
left = right = NULL;
}
};
void inorder(struct Node* node){
if(node == NULL){
return;
}
inorder(node->left);
... | 17.384615 | 45 | 0.536382 | Alecs-Li |
7dce406ca670c41748a5a7137d3b860a57c83289 | 434 | cpp | C++ | Problem Solving/1. Simple Array Sum.cpp | ManthanUgemuge/Hackerrank | 9fccbf0164c2d33f3493b470c3fbef6edc2fcde1 | [
"MIT"
] | null | null | null | Problem Solving/1. Simple Array Sum.cpp | ManthanUgemuge/Hackerrank | 9fccbf0164c2d33f3493b470c3fbef6edc2fcde1 | [
"MIT"
] | null | null | null | Problem Solving/1. Simple Array Sum.cpp | ManthanUgemuge/Hackerrank | 9fccbf0164c2d33f3493b470c3fbef6edc2fcde1 | [
"MIT"
] | null | null | null | #include <cmath>
#include <cstdio>
#include <vector>
#include <iostream>
#include <algorithm>
using namespace std;
int main() {
/* Enter your code here. Read input from STDIN. Print output to STDOUT */
int numLines;
int currNumber, total = 0;
cin >> numLines;
for (int i=0; i<numLines;... | 17.36 | 80 | 0.576037 | ManthanUgemuge |
7dd30bac0d00404a0609d9c4f66884875c602b1c | 1,645 | cpp | C++ | thirdparty/sfs2x/Bitswarm/PendingPacket.cpp | godot-addons/godot-sfs2x | a8d52aa9d548f6d45bbb64bfdaacab0df10e67c1 | [
"MIT"
] | 2 | 2020-05-14T07:48:32.000Z | 2021-02-03T14:58:11.000Z | thirdparty/sfs2x/Bitswarm/PendingPacket.cpp | godot-addons/godot-sfs2x | a8d52aa9d548f6d45bbb64bfdaacab0df10e67c1 | [
"MIT"
] | 1 | 2020-05-28T16:39:20.000Z | 2020-05-28T16:39:20.000Z | thirdparty/sfs2x/Bitswarm/PendingPacket.cpp | godot-addons/godot-sfs2x | a8d52aa9d548f6d45bbb64bfdaacab0df10e67c1 | [
"MIT"
] | 2 | 2018-07-07T20:15:00.000Z | 2018-10-26T05:18:30.000Z | // ===================================================================
//
// Description
// Contains the implementation of PendingPacket
//
// Revision history
// Date Description
// 30-Nov-2012 First version
//
// ===================================================================
#include "PendingPacket.h"
n... | 27.881356 | 70 | 0.349544 | godot-addons |
7dd622328054eb24b4160a5d08cb31fbd06a7448 | 593 | cpp | C++ | FickleManette/FickleManette/WindowLoop.cpp | nicolasgustafsson/FickleManette | 9d5d5b58932a5a25b750432156c3acfb22f74d1e | [
"MIT"
] | null | null | null | FickleManette/FickleManette/WindowLoop.cpp | nicolasgustafsson/FickleManette | 9d5d5b58932a5a25b750432156c3acfb22f74d1e | [
"MIT"
] | null | null | null | FickleManette/FickleManette/WindowLoop.cpp | nicolasgustafsson/FickleManette | 9d5d5b58932a5a25b750432156c3acfb22f74d1e | [
"MIT"
] | null | null | null | #include "stdafx.h"
#include "WindowLoop.h"
WindowLoop::WindowLoop()
{
}
WindowLoop::~WindowLoop()
{
}
void WindowLoop::StartLoop()
{
sf::View view(sf::Vector2f(0.0f, 0.0f), sf::Vector2f(1920.f, 1080.f));
sf::RenderWindow window(sf::VideoMode(1280, 720), "Fickle Manette");
window.setView(view);
Drawer drawer... | 14.463415 | 71 | 0.647555 | nicolasgustafsson |
7dde048bfd615e1eacdb19a34352afc9d050b400 | 130 | cpp | C++ | test/custom_builds/cpp/rest/src/main.cpp | teh-cmc/flecs | ef6c366bae1142fa501d505ccb28d3e23d27ebc2 | [
"MIT"
] | 18 | 2021-09-17T16:41:14.000Z | 2022-02-01T15:22:20.000Z | test/custom_builds/cpp/rest/src/main.cpp | teh-cmc/flecs | ef6c366bae1142fa501d505ccb28d3e23d27ebc2 | [
"MIT"
] | 36 | 2021-09-21T10:22:16.000Z | 2022-01-22T10:25:11.000Z | test/custom_builds/cpp/rest/src/main.cpp | teh-cmc/flecs | ef6c366bae1142fa501d505ccb28d3e23d27ebc2 | [
"MIT"
] | 6 | 2021-09-26T11:06:32.000Z | 2022-01-21T15:07:05.000Z | #include <rest.h>
#include <iostream>
int main(int, char *[]) {
flecs::world world;
world.set<flecs::rest::Rest>({});
}
| 14.444444 | 37 | 0.592308 | teh-cmc |
7de6782886f8356a0906a37b47a5b1ab7d57d9cf | 728 | cpp | C++ | src/Application.cpp | kernelguy/HelloWorld | da2d2c3e17074f661c6ea5abac58d7d37efb98dc | [
"Zlib"
] | null | null | null | src/Application.cpp | kernelguy/HelloWorld | da2d2c3e17074f661c6ea5abac58d7d37efb98dc | [
"Zlib"
] | null | null | null | src/Application.cpp | kernelguy/HelloWorld | da2d2c3e17074f661c6ea5abac58d7d37efb98dc | [
"Zlib"
] | null | null | null | /*
* Application.cpp
*
* Created on: 20. aug. 2017
* Author: steffen
*/
#include <iostream>
#include "Application.h"
#include "contracts/ITranslations.h"
#include "ioc/IOC.h"
Application* Application::mpInstance = 0;
Contracts::IApplication& Contracts::IApplication::instance()
{
return *Application::mpIn... | 16.177778 | 90 | 0.68544 | kernelguy |
8fbd20e193a49576cbcda233c81171730253139d | 9,205 | cpp | C++ | Source/BossBattle/Characters/PlayerCharacter.cpp | mikirov/Unreal-RL | c99ec740c7ef4fd2088c9208b3ac82f3dc65e593 | [
"Apache-2.0"
] | 1 | 2020-06-11T13:19:21.000Z | 2020-06-11T13:19:21.000Z | Source/BossBattle/Characters/PlayerCharacter.cpp | mikirov/Unreal-RL | c99ec740c7ef4fd2088c9208b3ac82f3dc65e593 | [
"Apache-2.0"
] | null | null | null | Source/BossBattle/Characters/PlayerCharacter.cpp | mikirov/Unreal-RL | c99ec740c7ef4fd2088c9208b3ac82f3dc65e593 | [
"Apache-2.0"
] | null | null | null | // Copyright 1998-2019 Epic Games, Inc. All Rights Reserved.
#include "PlayerCharacter.h"
#include "HeadMountedDisplayFunctionLibrary.h"
#include "Camera/CameraComponent.h"
#include "Components/CapsuleComponent.h"
#include "Components/InputComponent.h"
#include "Components/SceneComponent.h"
#include "Components/ArrowC... | 34.219331 | 109 | 0.777838 | mikirov |
8fbee5e822b65fd36154fcb833f4839b3c5c0de1 | 107 | cpp | C++ | tests/TableEditorGlIssue4/libs/TableEditorHelpers/src/TableEditorHelpers.cpp | scandyna/mdt-cmake-modules | a6c4ad1ff5ce258ca2fb2bc4fe2875ba8fae1c03 | [
"BSD-3-Clause"
] | null | null | null | tests/TableEditorGlIssue4/libs/TableEditorHelpers/src/TableEditorHelpers.cpp | scandyna/mdt-cmake-modules | a6c4ad1ff5ce258ca2fb2bc4fe2875ba8fae1c03 | [
"BSD-3-Clause"
] | null | null | null | tests/TableEditorGlIssue4/libs/TableEditorHelpers/src/TableEditorHelpers.cpp | scandyna/mdt-cmake-modules | a6c4ad1ff5ce258ca2fb2bc4fe2875ba8fae1c03 | [
"BSD-3-Clause"
] | null | null | null | #include "TableEditorHelpers.h"
void TableEditorHelpers::setupSorting()
{
mSetupWidget.setup(mModel);
}
| 15.285714 | 39 | 0.775701 | scandyna |
8fc0a904c2cb3123842fe916263c79b614f91dd8 | 2,947 | cpp | C++ | Source/Core/Serialization/SerializeBase.cpp | frobro98/Musa | 6e7dcd5d828ca123ce8f43d531948a6486428a3d | [
"MIT"
] | null | null | null | Source/Core/Serialization/SerializeBase.cpp | frobro98/Musa | 6e7dcd5d828ca123ce8f43d531948a6486428a3d | [
"MIT"
] | null | null | null | Source/Core/Serialization/SerializeBase.cpp | frobro98/Musa | 6e7dcd5d828ca123ce8f43d531948a6486428a3d | [
"MIT"
] | null | null | null | // Copyright 2020, Nathan Blane
#include "SerializeBase.hpp"
#include "Debugging/Assertion.hpp"
void Serialize(SerializeBase & ser, tchar c)
{
ser.SerializeData(&c, sizeof(tchar));
}
void Serialize(SerializeBase& ser, u8 u)
{
ser.SerializeData(&u, sizeof(u8));
}
void Serialize(SerializeBase& ser, i8 i)
{
ser.Ser... | 21.510949 | 63 | 0.678317 | frobro98 |
8fc4083d0998d8d50e46048809c3f193cf275b25 | 1,404 | cpp | C++ | src/backtracker/IntervalHandlerBase.cpp | ndaniel/BEETL | 4f35e2f6a18be624c1159f3ffe042eb8490f94bf | [
"BSD-2-Clause"
] | 53 | 2015-02-05T02:26:15.000Z | 2022-01-13T05:37:06.000Z | src/backtracker/IntervalHandlerBase.cpp | ndaniel/BEETL | 4f35e2f6a18be624c1159f3ffe042eb8490f94bf | [
"BSD-2-Clause"
] | 9 | 2015-09-03T23:42:14.000Z | 2021-10-15T15:25:49.000Z | src/backtracker/IntervalHandlerBase.cpp | ndaniel/BEETL | 4f35e2f6a18be624c1159f3ffe042eb8490f94bf | [
"BSD-2-Clause"
] | 23 | 2015-01-08T13:43:07.000Z | 2021-05-19T17:35:42.000Z | /**
** Copyright (c) 2011-2014 Illumina, Inc.
**
** This file is part of the BEETL software package,
** covered by the "BSD 2-Clause License" (see accompanying LICENSE file)
**
** Citation: Markus J. Bauer, Anthony J. Cox and Giovanna Rosone
** Lightweight BWT Construction for Very Large String Collections.
** ... | 31.909091 | 154 | 0.645299 | ndaniel |
8fc8cd04b4591b692a48cda21277a7b66fa17aac | 660 | cpp | C++ | d3/a.cpp | webdeveloperukraine/adventofcode2020 | 4d4f36437da0fd4889f0fcbe28cad8fecb6f6f34 | [
"MIT"
] | null | null | null | d3/a.cpp | webdeveloperukraine/adventofcode2020 | 4d4f36437da0fd4889f0fcbe28cad8fecb6f6f34 | [
"MIT"
] | null | null | null | d3/a.cpp | webdeveloperukraine/adventofcode2020 | 4d4f36437da0fd4889f0fcbe28cad8fecb6f6f34 | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
using namespace std;
typedef long long int ll;
vector<string> input;
void prepare()
{
string resp;
while(getline(cin, resp)){
input.push_back(resp);
}
}
int encounter(int mx, int my)
{
int res = 0;
int x = 0;
int y = 0;
while(y < input.size()){
if(input[y][x] == '#'){
res++;
... | 13.469388 | 95 | 0.568182 | webdeveloperukraine |
8fd7061c13956c7783fe6778b3886be78ad97ce3 | 1,233 | cpp | C++ | src/data/test/ListFileDatasetTest.cpp | random-mud-pie/wav2letter | e6a543827738ce0d0dc39dedf578932c6f8b3fd1 | [
"BSD-3-Clause"
] | 21 | 2019-05-09T02:15:28.000Z | 2021-07-15T23:00:11.000Z | src/data/test/ListFileDatasetTest.cpp | random-mud-pie/wav2letter | e6a543827738ce0d0dc39dedf578932c6f8b3fd1 | [
"BSD-3-Clause"
] | 7 | 2020-04-03T16:11:06.000Z | 2020-12-24T03:25:45.000Z | src/data/test/ListFileDatasetTest.cpp | random-mud-pie/wav2letter | e6a543827738ce0d0dc39dedf578932c6f8b3fd1 | [
"BSD-3-Clause"
] | 8 | 2019-12-16T15:51:06.000Z | 2021-05-13T10:04:32.000Z | /**
* Copyright (c) Facebook, Inc. and its affiliates.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree.
*/
#include <fstream>
#include <iostream>
#include <string>
#include <arrayfire.h>
#include <flashligh... | 22.418182 | 72 | 0.669911 | random-mud-pie |
8fd8cdead876881a7169587444442b323924d3c4 | 15,534 | cpp | C++ | src/plugins/azoth/plugins/acetamide/channelclentry.cpp | devel29a/leechcraft | faf5e856010fb785e4bbf3ce7b5c6a5c49f3239a | [
"BSL-1.0"
] | null | null | null | src/plugins/azoth/plugins/acetamide/channelclentry.cpp | devel29a/leechcraft | faf5e856010fb785e4bbf3ce7b5c6a5c49f3239a | [
"BSL-1.0"
] | null | null | null | src/plugins/azoth/plugins/acetamide/channelclentry.cpp | devel29a/leechcraft | faf5e856010fb785e4bbf3ce7b5c6a5c49f3239a | [
"BSL-1.0"
] | null | null | null | /**********************************************************************
* LeechCraft - modular cross-platform feature rich internet client.
* Copyright (C) 2010-2011 Oleg Linkin
*
* Boost Software License - Version 1.0 - August 17th, 2003
*
* Permission is hereby granted, free of charge, to any person or organiza... | 25.014493 | 91 | 0.692288 | devel29a |
8fe06f309d158e0e1d83b1841ac621c8dccf6fa9 | 10,194 | cpp | C++ | lib/MultiI2C/MultiI2C.cpp | RDobrinov/espurna32 | b0bcf5bb80324e3c96a8a7f756014804b618730e | [
"NTP",
"Unlicense"
] | null | null | null | lib/MultiI2C/MultiI2C.cpp | RDobrinov/espurna32 | b0bcf5bb80324e3c96a8a7f756014804b618730e | [
"NTP",
"Unlicense"
] | null | null | null | lib/MultiI2C/MultiI2C.cpp | RDobrinov/espurna32 | b0bcf5bb80324e3c96a8a7f756014804b618730e | [
"NTP",
"Unlicense"
] | null | null | null | #include "MultiI2C.hpp"
#include <Arduino.h>
MultiI2C::MultiI2C(void)
{
_state.port[I2C_NUM_0].port_config.mode = I2C_MODE_MASTER;
_state.port[I2C_NUM_0].port_config.sda_io_num = I2C_SDA_IO_0;
_state.port[I2C_NUM_0].port_config.scl_io_num = I2C_SCL_IO_0;
_state.port[I2C_NUM_0].port_config.sda_pullup_en... | 38.179775 | 174 | 0.716206 | RDobrinov |
8fe19557712a5b45abba265059d4ffc27a728518 | 14,787 | cc | C++ | src/Fullerene.cc | maruinen/FullereneViewer | da1554af2de21e90bfa0380a5b635f8bab8e2d8c | [
"Apache-2.0"
] | null | null | null | src/Fullerene.cc | maruinen/FullereneViewer | da1554af2de21e90bfa0380a5b635f8bab8e2d8c | [
"Apache-2.0"
] | null | null | null | src/Fullerene.cc | maruinen/FullereneViewer | da1554af2de21e90bfa0380a5b635f8bab8e2d8c | [
"Apache-2.0"
] | null | null | null | /*
* Project: FullereneViewer
* Version: 1.0
* Copyright: (C) 2011-14 Dr.Sc.KAWAMOTO,Takuji (Ext)
*/
#define _CRT_SECURE_NO_WARNINGS
#include <string.h>
#include <stdlib.h>
#include <assert.h>
#include <limits.h>
#include "Config.h"
#include "Fullerene.h"
#include "CarbonAllotrope.h"
#include "BoundaryCarbons.h"
#... | 35.717391 | 89 | 0.547711 | maruinen |
8fe550b79e248ebe699151510079c4cd581ddd9d | 5,640 | hpp | C++ | src/Modules/GUIModule/Facades/ofxGuiFacade.hpp | danielfilipealmeida/Orange | e0118a7d1391e74c15c707e64a2e0458d51d318f | [
"MIT"
] | null | null | null | src/Modules/GUIModule/Facades/ofxGuiFacade.hpp | danielfilipealmeida/Orange | e0118a7d1391e74c15c707e64a2e0458d51d318f | [
"MIT"
] | null | null | null | src/Modules/GUIModule/Facades/ofxGuiFacade.hpp | danielfilipealmeida/Orange | e0118a7d1391e74c15c707e64a2e0458d51d318f | [
"MIT"
] | null | null | null | //
// ofxGuiFacade.hpp
// orange
//
// Created by Daniel Almeida on 04/12/2018.
//
#ifndef ofxGuiFacade_hpp
#define ofxGuiFacade_hpp
#include <stdio.h>
#include "ofxGui.h"
#include "GUIFacadeInterface.hpp"
#include "ofxPreview.hpp"
#include "ofxMatrix.hpp"
#include "ofxNavigator.hpp"
#include "ofxList.hpp"
#inclu... | 30.160428 | 109 | 0.456915 | danielfilipealmeida |
8fe5da76795e50a98ddc29f6d4e96e537f4b8430 | 203 | cc | C++ | src/FractalStruct/misc_class.cc | jmikeowen/Spheral | 3e1082a7aefd6b328bd3ae24ca1a477108cfc3c4 | [
"BSD-Source-Code",
"BSD-3-Clause-LBNL",
"FSFAP"
] | 22 | 2018-07-31T21:38:22.000Z | 2020-06-29T08:58:33.000Z | src/FractalStruct/misc_class.cc | markguozhiming/spheral | bbb982102e61edb8a1d00cf780bfa571835e1b61 | [
"BSD-Source-Code",
"BSD-3-Clause-LBNL",
"FSFAP"
] | 41 | 2020-09-28T23:14:27.000Z | 2022-03-28T17:01:33.000Z | src/FractalStruct/misc_class.cc | markguozhiming/spheral | bbb982102e61edb8a1d00cf780bfa571835e1b61 | [
"BSD-Source-Code",
"BSD-3-Clause-LBNL",
"FSFAP"
] | 7 | 2019-12-01T07:00:06.000Z | 2020-09-15T21:12:39.000Z | #include "libs.hh"
#include "classes.hh"
#include "headers.hh"
//
namespace FractalSpace
{
bool Misc::get_debug() const
{
return debug;
}
void Misc::set_debug(bool& d)
{
debug=d;
}
}
| 12.6875 | 31 | 0.625616 | jmikeowen |
8fe76332b2864d48b2aadadc68599cfa209765ee | 43,323 | cpp | C++ | src/MesaDLL/glut_hel18.cpp | OS2World/LIB-GRAPHICS-The_Mesa_3D_Graphics_Library | c0e0cfaeefa9e87e4978101fbac7d0372c39f1a3 | [
"MIT"
] | null | null | null | src/MesaDLL/glut_hel18.cpp | OS2World/LIB-GRAPHICS-The_Mesa_3D_Graphics_Library | c0e0cfaeefa9e87e4978101fbac7d0372c39f1a3 | [
"MIT"
] | null | null | null | src/MesaDLL/glut_hel18.cpp | OS2World/LIB-GRAPHICS-The_Mesa_3D_Graphics_Library | c0e0cfaeefa9e87e4978101fbac7d0372c39f1a3 | [
"MIT"
] | null | null | null |
/* GENERATED FILE -- DO NOT MODIFY */
#define glutBitmapHelvetica18 XXX
#include "glutbitmap.h"
#undef glutBitmapHelvetica18
/* char: 0xff */
static const GLubyte ch255data[] = {
0x70,0x70,0x18,0x18,0x18,0x18,0x3c,0x24,0x66,0x66,0x66,0xc3,0xc3,0xc3,0x0,0x66,
0x66,
};
static const BitmapCharRec ch255 = {8,17,-1,4,1... | 22.789584 | 80 | 0.70159 | OS2World |
8fef98cbec6853bbc7c0366cdf4e838fb3a3b313 | 20,883 | cpp | C++ | src/dasm/disassembler.cpp | RupertAvery/et3400 | 243c0ed407bee20f43e2f1c528f10cc6ffb12664 | [
"BSD-3-Clause"
] | 3 | 2020-11-06T22:30:32.000Z | 2021-12-24T06:30:32.000Z | src/dasm/disassembler.cpp | RupertAvery/et3400 | 243c0ed407bee20f43e2f1c528f10cc6ffb12664 | [
"BSD-3-Clause"
] | null | null | null | src/dasm/disassembler.cpp | RupertAvery/et3400 | 243c0ed407bee20f43e2f1c528f10cc6ffb12664 | [
"BSD-3-Clause"
] | 1 | 2021-12-24T06:30:38.000Z | 2021-12-24T06:30:38.000Z | #include "disassembler.h"
const char Disassembler::op_name_str_orig[128][8] =
{
"aba", "abx", "adca", "adcb", "adda", "addb", "addd", "aim",
"anda", "andb", "asl", "asla", "aslb", "asld", "asr", "asra",
"asrb", "bcc", "bcs", "beq", "bge", "bgt", "bhi", "bita",
"bitb", "ble", "bls", ... | 40.866928 | 92 | 0.586266 | RupertAvery |
8ffb96fc3fd94c26cbf553f6f4c866a95d552959 | 2,867 | cpp | C++ | src/EntitySystem/EntitySystem.cpp | dritory/Cog6 | a73afc1edbb5e9c0b9f8d97490f65e48aa167a79 | [
"MIT"
] | null | null | null | src/EntitySystem/EntitySystem.cpp | dritory/Cog6 | a73afc1edbb5e9c0b9f8d97490f65e48aa167a79 | [
"MIT"
] | null | null | null | src/EntitySystem/EntitySystem.cpp | dritory/Cog6 | a73afc1edbb5e9c0b9f8d97490f65e48aa167a79 | [
"MIT"
] | null | null | null | #include "EntitySystem.h"
#include "InteractableEntity.h"
EntitySystem::EntitySystem() : m_Next(0), m_SpriteBatcher(nullptr) {
}
EntitySystem::~EntitySystem() = default;
Entity* EntitySystem::Get(const EntityId& id) {
if (id >= m_Entities.size() || !m_Entities[id]) {
std::cout << "Tried to fetch entity that did... | 26.302752 | 116 | 0.686432 | dritory |
8ffc545cbf2b83030cbe4b8ec4f2e9b26a8a9270 | 5,520 | cpp | C++ | pronto/graphics/pc/d3d12_command_queue.cpp | MgBag/pronto | c10827e094726d8dc285c3da68c9c03be42d9a32 | [
"MIT"
] | null | null | null | pronto/graphics/pc/d3d12_command_queue.cpp | MgBag/pronto | c10827e094726d8dc285c3da68c9c03be42d9a32 | [
"MIT"
] | null | null | null | pronto/graphics/pc/d3d12_command_queue.cpp | MgBag/pronto | c10827e094726d8dc285c3da68c9c03be42d9a32 | [
"MIT"
] | null | null | null | #include "d3d12_command_queue.h"
#include "d3d12_command_list.h"
#include <d3d12.h>
#include <cstdint>
#include <assert.h>
namespace pronto
{
namespace graphics
{
//---------------------------------------------------------------------------------------------
CommandQueue::CommandQueue(ID3D12Device2* devic... | 31.363636 | 104 | 0.536594 | MgBag |
8ffd737654e556dd39348902a5905cb2764f93d8 | 1,623 | hh | C++ | CommTrackingObjects/smartsoft/src-gen/CommTrackingObjects/CommDetectedMarkerEventResultACE.hh | canonical-robots/DomainModelsRepositories | 68b9286d84837e5feb7b200833b158ab9c2922a4 | [
"BSD-3-Clause"
] | null | null | null | CommTrackingObjects/smartsoft/src-gen/CommTrackingObjects/CommDetectedMarkerEventResultACE.hh | canonical-robots/DomainModelsRepositories | 68b9286d84837e5feb7b200833b158ab9c2922a4 | [
"BSD-3-Clause"
] | 2 | 2020-08-20T14:49:47.000Z | 2020-10-07T16:10:07.000Z | CommTrackingObjects/smartsoft/src-gen/CommTrackingObjects/CommDetectedMarkerEventResultACE.hh | canonical-robots/DomainModelsRepositories | 68b9286d84837e5feb7b200833b158ab9c2922a4 | [
"BSD-3-Clause"
] | 8 | 2018-06-25T08:41:28.000Z | 2020-08-13T10:39:30.000Z | //--------------------------------------------------------------------------
// Code generated by the SmartSoft MDSD Toolchain
// The SmartSoft Toolchain has been developed by:
//
// Service Robotics Research Center
// University of Applied Sciences Ulm
// Prittwitzstr. 10
// 89075 Ulm (Germany)
//
// Information abo... | 45.083333 | 115 | 0.754775 | canonical-robots |
890a96e0376015d0bf96903b4aea008afebfe904 | 10,276 | cpp | C++ | samples/snippets/cpp/VS_Snippets_CLR_System/system.Security.Cryptography.Xml.XmlDsigXsltTransform/CPP/members.cpp | hamarb123/dotnet-api-docs | 6aeb55784944a2f1f5e773b657791cbd73a92dd4 | [
"CC-BY-4.0",
"MIT"
] | 421 | 2018-04-01T01:57:50.000Z | 2022-03-28T15:24:42.000Z | samples/snippets/cpp/VS_Snippets_CLR_System/system.Security.Cryptography.Xml.XmlDsigXsltTransform/CPP/members.cpp | hamarb123/dotnet-api-docs | 6aeb55784944a2f1f5e773b657791cbd73a92dd4 | [
"CC-BY-4.0",
"MIT"
] | 5,797 | 2018-04-02T21:12:23.000Z | 2022-03-31T23:54:38.000Z | samples/snippets/cpp/VS_Snippets_CLR_System/system.Security.Cryptography.Xml.XmlDsigXsltTransform/CPP/members.cpp | hamarb123/dotnet-api-docs | 6aeb55784944a2f1f5e773b657791cbd73a92dd4 | [
"CC-BY-4.0",
"MIT"
] | 1,482 | 2018-03-31T11:26:20.000Z | 2022-03-30T22:36:45.000Z | //<Snippet2>
#using <System.Security.dll>
#using <System.dll>
#using <System.Xml.dll>
using namespace System;
using namespace System::IO;
using namespace System::Xml;
using namespace System::Security::Cryptography;
using namespace System::Security::Cryptography::Xml;
using namespace System::Text;
ref class ... | 39.221374 | 84 | 0.624562 | hamarb123 |
890d8211e51a1394ea9268973cb6d846fe6e1dce | 684 | cpp | C++ | Codes/IF_Ternary.cpp | Felipe-Pereira-Barros/CPP | 050add96024c8e5b0d01ebb6cab52452cbb6dff5 | [
"MIT"
] | 2 | 2020-05-21T14:44:36.000Z | 2020-05-28T01:08:18.000Z | Codes/IF_Ternary.cpp | Felipe-Pereira-Barros/CPP | 050add96024c8e5b0d01ebb6cab52452cbb6dff5 | [
"MIT"
] | null | null | null | Codes/IF_Ternary.cpp | Felipe-Pereira-Barros/CPP | 050add96024c8e5b0d01ebb6cab52452cbb6dff5 | [
"MIT"
] | null | null | null | #include <iostream>
using namespace std;
int main()
{
//(expression) ? value : value2;
int n1,n2,note,x,n3;
string res,res2;
cout << "Enter the first note: ";
cin >> n1;
cout << "Enter the second note: ";
cin >> n2;
note=n1+n2;
/* note >= 60 Approved
<60 Not approved*/
... | 16.285714 | 55 | 0.495614 | Felipe-Pereira-Barros |
8910934bdcf11f09994d205e0e39faed02caa448 | 1,445 | cpp | C++ | listdevices/main.cpp | abolger/Andor-sCMOS-examples | 2e2aeab93c11317b7731ffc7ae0adb50fc854f60 | [
"MIT"
] | 8 | 2018-01-13T08:48:00.000Z | 2022-03-24T22:19:57.000Z | listdevices/main.cpp | abolger/Andor-sCMOS-examples | 2e2aeab93c11317b7731ffc7ae0adb50fc854f60 | [
"MIT"
] | 1 | 2021-04-24T09:02:36.000Z | 2021-04-24T10:04:10.000Z | listdevices/main.cpp | abolger/Andor-sCMOS-examples | 2e2aeab93c11317b7731ffc7ae0adb50fc854f60 | [
"MIT"
] | 5 | 2018-04-13T03:25:18.000Z | 2020-11-10T05:22:58.000Z | #include <stdlib.h>
#include <iostream>
#include "atcore.h"
int main()
{
int iErr = AT_InitialiseLibrary();
if (iErr != AT_SUCCESS) {
std::cout << "Error from AT_Initialise : " << iErr << std::endl;
}
long long DeviceCount = 0;
iErr = AT_GetInt(AT_HANDLE_SYSTEM, L"Device Count", &DeviceCount);
if (iEr... | 27.264151 | 87 | 0.565398 | abolger |
891251bf830e8e8941ddd796ad96cdd681b56174 | 944 | cc | C++ | keypress.cc | pmwheatley/dfterm2 | 81efc85d85c126b22d79be4499755a99119045bf | [
"ICU",
"BSD-3-Clause"
] | null | null | null | keypress.cc | pmwheatley/dfterm2 | 81efc85d85c126b22d79be4499755a99119045bf | [
"ICU",
"BSD-3-Clause"
] | null | null | null | keypress.cc | pmwheatley/dfterm2 | 81efc85d85c126b22d79be4499755a99119045bf | [
"ICU",
"BSD-3-Clause"
] | null | null | null | #include "interface.hpp"
using namespace trankesbel;
KeyPress::KeyPress(const KeyCode &kc, bool special_key)
{
alt_down = ctrl_down = shift_down = false;
setKeyCode(kc, special_key);
}
KeyPress::KeyPress(const KeyCode &kc, bool special_key, bool alt_down, bool ctrl_down, bool shift_down)
{
setKeyCode(kc,... | 20.521739 | 103 | 0.611229 | pmwheatley |
89125c77ce52b79308669f5242e98576fb6cf378 | 356 | hpp | C++ | src/Missle.hpp | AgaBuu/TankBotFight | 154b176b697b5d88fffb4b0c9c9c2f8dac334afb | [
"MIT"
] | null | null | null | src/Missle.hpp | AgaBuu/TankBotFight | 154b176b697b5d88fffb4b0c9c9c2f8dac334afb | [
"MIT"
] | null | null | null | src/Missle.hpp | AgaBuu/TankBotFight | 154b176b697b5d88fffb4b0c9c9c2f8dac334afb | [
"MIT"
] | null | null | null | #pragma once
#include <SFML/Graphics.hpp>
#include "MovementState.hpp"
class Missle {
public:
Missle(sf::Texture& texture, const MovementState& state);
void draw(sf::RenderWindow& window);
void update();
[[nodiscard]] sf::Vector2f get_pos() const;
private:
sf::Sprite mSprite;
float mSpeed = 20.0f;
sf... | 18.736842 | 59 | 0.696629 | AgaBuu |
891b0fee53d4ff6f9bd33ff208c696cccfce211b | 2,187 | cpp | C++ | src/core/map/level_generator/room_repo.cpp | MrPepperoni/Reaping2-1 | 4ffef3cca1145ddc06ca87d2968c7b0ffd3ba3fd | [
"MIT"
] | null | null | null | src/core/map/level_generator/room_repo.cpp | MrPepperoni/Reaping2-1 | 4ffef3cca1145ddc06ca87d2968c7b0ffd3ba3fd | [
"MIT"
] | null | null | null | src/core/map/level_generator/room_repo.cpp | MrPepperoni/Reaping2-1 | 4ffef3cca1145ddc06ca87d2968c7b0ffd3ba3fd | [
"MIT"
] | 1 | 2020-09-22T15:41:51.000Z | 2020-09-22T15:41:51.000Z | #include "platform/i_platform.h"
#include "room_repo.h"
#include "simple_room1.h"
#include "vdouble_room1.h"
#include "hdouble_room1.h"
#include "json_room.h"
using platform::AutoId;
namespace map {
DefaultRoom const RoomRepo::mDefault = DefaultRoom();
RoomRepo::RoomRepo()
: Repository<IRoom>(mDefault)
{
in... | 23.021053 | 88 | 0.55647 | MrPepperoni |
89203ac7f93b9a6ff4befa2aaada9e47c8835256 | 16,998 | cpp | C++ | NPlan/NPlan/file/NProjectCalendar.cpp | Avens666/NPlan | 726411b053ded26ce6c1b8c280c994d4c1bac71a | [
"Apache-2.0"
] | 16 | 2018-08-30T11:27:14.000Z | 2021-12-17T02:05:45.000Z | NPlan/NPlan/file/NProjectCalendar.cpp | Avens666/NPlan | 726411b053ded26ce6c1b8c280c994d4c1bac71a | [
"Apache-2.0"
] | null | null | null | NPlan/NPlan/file/NProjectCalendar.cpp | Avens666/NPlan | 726411b053ded26ce6c1b8c280c994d4c1bac71a | [
"Apache-2.0"
] | 14 | 2018-08-30T12:13:56.000Z | 2021-02-06T11:07:44.000Z | // File: NProjectCalendar.cpp
// Copyright: Copyright(C) 2013-2017 Wuhan KOTEI Informatics Co., Ltd. All rights reserved.
// Website: http://www.nuiengine.com
// Description: This code is part of NPlan Project (Powered by NUI Engine)
// Comments:
// Rev: 1
// Created: 2018/8/27
... | 22.573705 | 176 | 0.607719 | Avens666 |
89210885ff79188d7601554ce88e0c00112d1a5d | 2,809 | cpp | C++ | ResolutionSystemeDialogue.cpp | ElDawgerino/NF05lab | 62340e718f10e3f1864bee7e9637edc1a3fcae46 | [
"MIT"
] | 1 | 2016-02-24T13:51:13.000Z | 2016-02-24T13:51:13.000Z | ResolutionSystemeDialogue.cpp | ElDawgerino/NF05lab | 62340e718f10e3f1864bee7e9637edc1a3fcae46 | [
"MIT"
] | null | null | null | ResolutionSystemeDialogue.cpp | ElDawgerino/NF05lab | 62340e718f10e3f1864bee7e9637edc1a3fcae46 | [
"MIT"
] | null | null | null | #include "ResolutionSystemeDialogue.h"
ResolutionSystemeDialogue::ResolutionSystemeDialogue( wxWindow* parent)
:
ResolutionSystemeDialogueBase( parent )
{
}
/*
* La méthode ResolutionSystemeDialogue prend le nombre d'équation (nombreEquations) indiqué par l'utilisateur et s'en sert pour générer:
* - une grille nom... | 34.256098 | 187 | 0.765041 | ElDawgerino |
8921faa10942cdb468561ab6cfa1b2949a74759c | 3,791 | cpp | C++ | rmoss_cam/src/cam_client.cpp | TomwKang/rmoss_core | 058336a2825bbeddb5b6b865e22a7ddd8faad33e | [
"Apache-2.0"
] | null | null | null | rmoss_cam/src/cam_client.cpp | TomwKang/rmoss_core | 058336a2825bbeddb5b6b865e22a7ddd8faad33e | [
"Apache-2.0"
] | null | null | null | rmoss_cam/src/cam_client.cpp | TomwKang/rmoss_core | 058336a2825bbeddb5b6b865e22a7ddd8faad33e | [
"Apache-2.0"
] | null | null | null | // Copyright 2021 RoboMaster-OSS
//
// 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 ... | 35.429907 | 95 | 0.723556 | TomwKang |
8922b7fcb14905b3cfe92c7633eceb8f385378a4 | 7,947 | cpp | C++ | src/ImageProcessing.cpp | zimmers69/CppAss4 | eabf3f1810ddcefa93e31ddc6ccb3792036c873f | [
"MIT"
] | null | null | null | src/ImageProcessing.cpp | zimmers69/CppAss4 | eabf3f1810ddcefa93e31ddc6ccb3792036c873f | [
"MIT"
] | null | null | null | src/ImageProcessing.cpp | zimmers69/CppAss4 | eabf3f1810ddcefa93e31ddc6ccb3792036c873f | [
"MIT"
] | 1 | 2020-04-30T11:56:47.000Z | 2020-04-30T11:56:47.000Z | //
// Created by User on 2020-03-27.
//
#include <iostream>
#include <fstream>
#include "ImageProcessing.h"
#include "Image.h"
#include <experimental/filesystem>
#include <iomanip>
#include <cmath>
namespace fs = std::experimental::filesystem;
using ZMMALE001::ImageProcessing;
using ZMMALE001::Image;
using ZMMALE001::... | 32.703704 | 200 | 0.504593 | zimmers69 |
89261c8ee01c9533b1e1ab40fa3b599ae96e4152 | 1,082 | cpp | C++ | vendor/uncrustify-0.59/tests/output/cpp/30701-function-def.cpp | b4hand/sauce | 8e1528944bc1bd42f4c1cb36d1bebd04e4f0447b | [
"MIT"
] | null | null | null | vendor/uncrustify-0.59/tests/output/cpp/30701-function-def.cpp | b4hand/sauce | 8e1528944bc1bd42f4c1cb36d1bebd04e4f0447b | [
"MIT"
] | null | null | null | vendor/uncrustify-0.59/tests/output/cpp/30701-function-def.cpp | b4hand/sauce | 8e1528944bc1bd42f4c1cb36d1bebd04e4f0447b | [
"MIT"
] | null | null | null | int &
Function()
{
static int x;
return (x);
}
void
foo1(
int param1,
int param2,
char *param2
);
void
foo2(
int param1,
int param2,
char *param2
);
void
foo3(
int param1,
int param2, // comment
char *param2
);
struct whoopee *
... | 9.247863 | 74 | 0.505545 | b4hand |
892a270cd7de86ce345e63b0c6972c2a36cc4257 | 1,852 | cpp | C++ | Omniscript/src/Script.cpp | aaronh82/Omniscript | a072dad8a7a2e94032a144eb8e7115b9d4ccc29f | [
"MIT"
] | null | null | null | Omniscript/src/Script.cpp | aaronh82/Omniscript | a072dad8a7a2e94032a144eb8e7115b9d4ccc29f | [
"MIT"
] | null | null | null | Omniscript/src/Script.cpp | aaronh82/Omniscript | a072dad8a7a2e94032a144eb8e7115b9d4ccc29f | [
"MIT"
] | null | null | null | //
// Script.cpp
// OmniScript
//
// Created by Aaron Houghton on 8/26/14.
// Copyright (c) 2014 CCBAC. All rights reserved.
//
#include "Script.h"
#include "Logger.h"
namespace script {
Script::Script(std::string name, unsigned int id, std::string lastModified, std::istream *data, bool enabled):
name_(n... | 19.092784 | 113 | 0.655508 | aaronh82 |
8938a851c235271cad5eaf93bf0dd5d448b2fc7b | 3,945 | hpp | C++ | Maze/cell.hpp | CodeBulletin/Maze.Exe | 2cd3e7b2733f8f236dcd4f09e5048aba295f66e5 | [
"MIT"
] | 1 | 2021-09-07T11:53:16.000Z | 2021-09-07T11:53:16.000Z | Maze/cell.hpp | CodeBulletin/Maze.Exe | 2cd3e7b2733f8f236dcd4f09e5048aba295f66e5 | [
"MIT"
] | null | null | null | Maze/cell.hpp | CodeBulletin/Maze.Exe | 2cd3e7b2733f8f236dcd4f09e5048aba295f66e5 | [
"MIT"
] | null | null | null | #pragma once
#include "wall.hpp"
struct cell {
int i, j;
sf::Vector2f pos;
float size, wallSize;
sf::Color col, visitedCol, activeCol, currentCol, walkColor, PathColor, frontColor, wallActiveCol, cCol = { 0, 0, 0, 0 };
bool visited = false, inStack = false, current=false;
sf::Vertex v[4];
wall walls[4];... | 30.581395 | 124 | 0.591888 | CodeBulletin |
9f135f484649fa712521d8a6bfaa4d9a34529cf0 | 1,281 | hpp | C++ | sydney-2017-03-29/make_crowd.hpp | cjdb/cpp-conferences | bafe69cf11ca38451367553460e956cb52df3dd2 | [
"Apache-2.0"
] | 3 | 2017-09-15T00:10:25.000Z | 2018-09-22T12:50:18.000Z | sydney-2017-03-29/make_crowd.hpp | cjdb/cppcon | bafe69cf11ca38451367553460e956cb52df3dd2 | [
"Apache-2.0"
] | 1 | 2017-12-04T22:12:16.000Z | 2017-12-04T22:12:16.000Z | sydney-2017-03-29/make_crowd.hpp | cjdb/cppcon | bafe69cf11ca38451367553460e956cb52df3dd2 | [
"Apache-2.0"
] | 1 | 2017-12-04T10:50:54.000Z | 2017-12-04T10:50:54.000Z | #ifndef MAKE_CROWD_HPP
#define MAKE_CROWD_HPP
#include <experimental/ranges/algorithm>
#include <experimental/ranges/iterator>
#include <iostream>
#include <random>
namespace ranges = std::experimental::ranges;
template <ranges::InputRange Rng>
Rng make_crowd(const int children, const int adults, const int seniors)
... | 29.113636 | 96 | 0.697112 | cjdb |
9f157989e2003e03d1acf338cb9d60f7ae458cd2 | 567 | cc | C++ | test/regression/aarch64/Exception.cc | viper12590/SimEng | e9fc4d24a8823e553e042c60801aa0a0e3f077ca | [
"Apache-2.0"
] | null | null | null | test/regression/aarch64/Exception.cc | viper12590/SimEng | e9fc4d24a8823e553e042c60801aa0a0e3f077ca | [
"Apache-2.0"
] | null | null | null | test/regression/aarch64/Exception.cc | viper12590/SimEng | e9fc4d24a8823e553e042c60801aa0a0e3f077ca | [
"Apache-2.0"
] | null | null | null | #include "AArch64RegressionTest.hh"
namespace {
using Exception = AArch64RegressionTest;
// Test that branching to an address that is misaligned raises an exception.
TEST_P(Exception, misaligned_pc) {
RUN_AARCH64(R"(
mov x0, 5
br x0
)");
const char err[] = "\nEncountered misaligned program counter exce... | 25.772727 | 76 | 0.673721 | viper12590 |
9f1db262822705206e17c844efd4d2ef303535d9 | 3,744 | hpp | C++ | include/System/Diagnostics/CorrelationManager.hpp | RedBrumbler/BeatSaber-Quest-Codegen | 73dda50b5a3e51f10d86b766dcaa24b0c6226e25 | [
"Unlicense"
] | null | null | null | include/System/Diagnostics/CorrelationManager.hpp | RedBrumbler/BeatSaber-Quest-Codegen | 73dda50b5a3e51f10d86b766dcaa24b0c6226e25 | [
"Unlicense"
] | null | null | null | include/System/Diagnostics/CorrelationManager.hpp | RedBrumbler/BeatSaber-Quest-Codegen | 73dda50b5a3e51f10d86b766dcaa24b0c6226e25 | [
"Unlicense"
] | null | null | null | // Autogenerated from CppHeaderCreator
// Created by Sc2ad
// =========================================================================
#pragma once
// Begin includes
#include "beatsaber-hook/shared/utils/typedefs.h"
#include "beatsaber-hook/shared/utils/byref.hpp"
#include "beatsaber-hook/shared/utils/il2cpp-utils-met... | 49.92 | 218 | 0.753472 | RedBrumbler |
9f1fb38cdbba05f28499311ca0ad0b6682ac61bb | 2,393 | cpp | C++ | samples/tools/create_HV_registration_image_mask.cpp | v4r-tuwien/v4r | ff3fbd6d2b298b83268ba4737868bab258262a40 | [
"BSD-1-Clause",
"BSD-2-Clause"
] | 2 | 2021-02-22T11:36:33.000Z | 2021-07-20T11:31:08.000Z | samples/tools/create_HV_registration_image_mask.cpp | v4r-tuwien/v4r | ff3fbd6d2b298b83268ba4737868bab258262a40 | [
"BSD-1-Clause",
"BSD-2-Clause"
] | null | null | null | samples/tools/create_HV_registration_image_mask.cpp | v4r-tuwien/v4r | ff3fbd6d2b298b83268ba4737868bab258262a40 | [
"BSD-1-Clause",
"BSD-2-Clause"
] | 3 | 2018-10-19T10:39:23.000Z | 2021-04-07T13:39:03.000Z | #include <pcl/io/pcd_io.h>
#include <v4r/io/filesystem.h>
#include <opencv2/opencv.hpp>
#include <boost/program_options.hpp>
namespace po = boost::program_options;
int main(int argc, char **argv) {
typedef pcl::PointXYZRGB PointT;
bf::path input_dir;
bf::path output_file = "/tmp/depth_mask.png";
bool search_... | 34.185714 | 117 | 0.630171 | v4r-tuwien |
9f2006353b806e7fdc2fd4ee024dc538cdeb10e4 | 6,819 | hh | C++ | ncrystal_core/include/NCrystal/internal/NCString.hh | mctools/ncrystal | 33ec51187a3bef418046c30e591ff7d8f239d54f | [
"Apache-2.0"
] | 22 | 2017-08-31T08:44:10.000Z | 2022-03-21T08:18:26.000Z | ncrystal_core/include/NCrystal/internal/NCString.hh | XuShuqi7/ncrystal | acf26db3dfd5f0a95355c7c3bbfcbfee55040175 | [
"Apache-2.0"
] | 77 | 2018-01-23T10:19:45.000Z | 2022-03-21T07:57:32.000Z | ncrystal_core/include/NCrystal/internal/NCString.hh | XuShuqi7/ncrystal | acf26db3dfd5f0a95355c7c3bbfcbfee55040175 | [
"Apache-2.0"
] | 11 | 2017-09-14T19:49:50.000Z | 2022-02-28T11:07:00.000Z | #ifndef NCrystal_String_hh
#define NCrystal_String_hh
////////////////////////////////////////////////////////////////////////////////
// //
// This file is part of NCrystal (see https://mctools.github.io/ncrystal/) //
// ... | 41.579268 | 133 | 0.587476 | mctools |
9f28065ee8f60cb3b0ac482ee26eebb5c574507e | 3,654 | cpp | C++ | source/04_Geometry/05_Sutherland-Hodgman Algorithm.cpp | KerakTelor86/AlgoCopypasta | 900d989c0651b51b55c551d336c2e92faead0fc8 | [
"WTFPL"
] | 1 | 2021-06-25T05:46:11.000Z | 2021-06-25T05:46:11.000Z | source/04_Geometry/05_Sutherland-Hodgman Algorithm.cpp | KerakTelor86/AlgoCopypasta | 900d989c0651b51b55c551d336c2e92faead0fc8 | [
"WTFPL"
] | null | null | null | source/04_Geometry/05_Sutherland-Hodgman Algorithm.cpp | KerakTelor86/AlgoCopypasta | 900d989c0651b51b55c551d336c2e92faead0fc8 | [
"WTFPL"
] | null | null | null | // Complexity: linear time
// Ada 2 poligon, cari poligon intersectionnya
// poly_point = hasilnya, clipper = pemotongnya
#include<bits/stdc++.h>
using namespace std;
const double EPS = 1e-9;
struct point {
double x, y;
point(double _x, double _y): x(_x), y(_y) {}
};
struct vec {
double x, y;
vec(double _x, d... | 27.473684 | 82 | 0.552819 | KerakTelor86 |
9f2c023c6d4f8b815290948989696f2db3dea2a7 | 14,835 | cpp | C++ | src/RcppExports.cpp | lgaborini/rdirdirgamma | f3087f0a81c9e4b08ff56efcc260873eaa16232d | [
"MIT"
] | null | null | null | src/RcppExports.cpp | lgaborini/rdirdirgamma | f3087f0a81c9e4b08ff56efcc260873eaa16232d | [
"MIT"
] | null | null | null | src/RcppExports.cpp | lgaborini/rdirdirgamma | f3087f0a81c9e4b08ff56efcc260873eaa16232d | [
"MIT"
] | null | null | null | // Generated by using Rcpp::compileAttributes() -> do not edit by hand
// Generator token: 10BE3573-1514-4C36-9D1C-5A225CD40393
#include <RcppArmadillo.h>
#include <RcppGSL.h>
#include <Rcpp.h>
using namespace Rcpp;
// sample_ABC_rdirdirgamma_beta_cpp
Rcpp::NumericMatrix sample_ABC_rdirdirgamma_beta_cpp(const unsign... | 60.304878 | 366 | 0.786855 | lgaborini |
9f3455771192f590690b610b29c1f3c2da2f3f74 | 1,809 | cpp | C++ | 3DEngine/src/3D Engine/RenderingManager.cpp | tobbep1997/Bitfrost_2.0 | a092db19d4658062554b7df759f28439fc1ad4f8 | [
"Apache-2.0"
] | null | null | null | 3DEngine/src/3D Engine/RenderingManager.cpp | tobbep1997/Bitfrost_2.0 | a092db19d4658062554b7df759f28439fc1ad4f8 | [
"Apache-2.0"
] | null | null | null | 3DEngine/src/3D Engine/RenderingManager.cpp | tobbep1997/Bitfrost_2.0 | a092db19d4658062554b7df759f28439fc1ad4f8 | [
"Apache-2.0"
] | null | null | null | #include "3DEngine/EnginePCH.h"
#include "RenderingManager.h"
RenderingManager::RenderingManager()
{
m_wnd = new Window();
m_engine = new Engine3D();
}
RenderingManager::~RenderingManager()
{
delete m_wnd;
delete m_engine;
}
RenderingManager * RenderingManager::GetInstance()
{
static RenderingManager m_insta... | 15.868421 | 91 | 0.725815 | tobbep1997 |
9f3757a0fea66d0fe42392c4c74d3919750f0876 | 3,545 | cpp | C++ | src/Output/WebCamVJ.cpp | aurelijusb/webcam-games | cced15d3decdba637c41d1620a97e0a4f8ec3cb0 | [
"MIT"
] | 3 | 2017-02-05T21:14:42.000Z | 2017-04-11T22:46:09.000Z | src/Output/WebCamVJ.cpp | aurelijusb/webcam-games | cced15d3decdba637c41d1620a97e0a4f8ec3cb0 | [
"MIT"
] | null | null | null | src/Output/WebCamVJ.cpp | aurelijusb/webcam-games | cced15d3decdba637c41d1620a97e0a4f8ec3cb0 | [
"MIT"
] | null | null | null | #include <opencv/highgui.h>
#include "WebCamVJ.h"
#include "../Tracker/TrackerMotion.h"
#define INTESITY(x, y) { setIntensivity(x, y, getIntensity(x, y)); }
#define MAX_INTESITY(x, y) { setMaxIntensivity(x, y, getIntensity(x, y)); }
WebCamVJ::WebCamVJ(int webCamDevice): TrackerMotion(webCamDevice) {
for (int i=0;... | 23.476821 | 81 | 0.550071 | aurelijusb |
9f38777fb1f90919a0c58b2e79b574362fdcc321 | 2,460 | cpp | C++ | source/demo/src/keyboard_demo.cpp | DavideCorradiDev/houzi-game-engine | d704aa9c5b024300578aafe410b7299c4af4fcec | [
"MIT"
] | 2 | 2018-04-12T20:59:20.000Z | 2018-07-26T16:04:07.000Z | source/demo/src/keyboard_demo.cpp | DavideCorradiDev/houzi-game-engine | d704aa9c5b024300578aafe410b7299c4af4fcec | [
"MIT"
] | null | null | null | source/demo/src/keyboard_demo.cpp | DavideCorradiDev/houzi-game-engine | d704aa9c5b024300578aafe410b7299c4af4fcec | [
"MIT"
] | null | null | null | // Houzi Game Engine
// Copyright (c) 2018 Davide Corradi
// Licensed under the MIT license.
#include "hou/cor/cor_module.hpp"
#include "hou/mth/mth_module.hpp"
#include "hou/sys/sys_module.hpp"
#include "hou/cor/clock.hpp"
#include "hou/sys/event.hpp"
#include "hou/sys/keyboard.hpp"
#include "hou/sys/window.hpp"
#... | 25.625 | 79 | 0.594715 | DavideCorradiDev |
9f3aa8ed334745463f4a49aa3263097e79fd43ed | 1,219 | cpp | C++ | test/class/class.cpp | ExpLife0011/ezpp | 2c484155be17e4dda98bf082325ac1d6d79ea3bb | [
"MIT"
] | 26 | 2018-05-02T13:54:23.000Z | 2022-02-09T05:49:59.000Z | test/class/class.cpp | ez8-co/ezpp | 2c484155be17e4dda98bf082325ac1d6d79ea3bb | [
"MIT"
] | null | null | null | test/class/class.cpp | ez8-co/ezpp | 2c484155be17e4dda98bf082325ac1d6d79ea3bb | [
"MIT"
] | 6 | 2018-05-19T00:43:15.000Z | 2020-08-19T08:28:41.000Z | #include "../../ezpp.hpp"
#include <iostream>
#ifdef _MSC_VER
#include <windows.h>
#else
#define Sleep(ms) usleep(ms * 1000)
#endif
using namespace std;
class test
{
public:
EZPP_CLS_REGISTER();
test(void) {EZPP_CLS_INIT();}
};
void test_(void)
{
{
test all;
test all1;
test all2;
Sleep(2000);
}
test... | 12.313131 | 63 | 0.66694 | ExpLife0011 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.