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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
862dbd381c687467d22b0b25f68e05d5030ee81b | 828 | cc | C++ | src/engine/assets/audio_manager.cc | ProjectSulphur/ProjectSulphur | cb9ee8298f5020fda4a9130802e72034408f050f | [
"Apache-2.0"
] | 11 | 2017-12-19T14:33:02.000Z | 2022-03-26T00:34:48.000Z | src/engine/assets/audio_manager.cc | ProjectSulphur/ProjectSulphur | cb9ee8298f5020fda4a9130802e72034408f050f | [
"Apache-2.0"
] | 1 | 2018-05-28T10:32:32.000Z | 2018-05-28T10:32:35.000Z | src/engine/assets/audio_manager.cc | ProjectSulphur/ProjectSulphur | cb9ee8298f5020fda4a9130802e72034408f050f | [
"Apache-2.0"
] | 1 | 2021-01-25T11:31:57.000Z | 2021-01-25T11:31:57.000Z | #include "engine/assets/audio_manager.h"
#include "engine/audio/audio_bank.h"
#include <foundation/io/binary_reader.h>
#include <foundation/memory/memory.h>
#include <foundation/pipeline-assets/audio.h>
#include <foundation/io/filesystem.h>
namespace sulphur
{
namespace engine
{
//----------------------------... | 26.709677 | 86 | 0.621981 | ProjectSulphur |
863449e05350490113ac883727fff2a77329627f | 742 | cpp | C++ | plugins/x11input/src/device/valuator/make_absolute.cpp | cpreh/spacegameengine | 313a1c34160b42a5135f8223ffaa3a31bc075a01 | [
"BSL-1.0"
] | 2 | 2016-01-27T13:18:14.000Z | 2018-05-11T01:11:32.000Z | plugins/x11input/src/device/valuator/make_absolute.cpp | cpreh/spacegameengine | 313a1c34160b42a5135f8223ffaa3a31bc075a01 | [
"BSL-1.0"
] | null | null | null | plugins/x11input/src/device/valuator/make_absolute.cpp | cpreh/spacegameengine | 313a1c34160b42a5135f8223ffaa3a31bc075a01 | [
"BSL-1.0"
] | 3 | 2018-05-11T01:11:34.000Z | 2021-04-24T19:47:45.000Z | // Copyright Carl Philipp Reh 2006 - 2019.
// Distributed under the Boost Software License, Version 1.0.
// (See accompanying file LICENSE_1_0.txt or copy at
// http://www.boost.org/LICENSE_1_0.txt)
#include <sge/x11input/device/valuator/absolute.hpp>
#include <sge/x11input/device/valuator/make_ab... | 39.052632 | 80 | 0.747978 | cpreh |
863524fffb7b903b4b172c469a7f4f11c4fa1c22 | 4,199 | cpp | C++ | NbrhdNash/Scenes/scene_Settings.cpp | OlavJDigranes/groupD | 1d1fdd4ec0117162d777d0c020cbf4ae1718cf5f | [
"MIT"
] | null | null | null | NbrhdNash/Scenes/scene_Settings.cpp | OlavJDigranes/groupD | 1d1fdd4ec0117162d777d0c020cbf4ae1718cf5f | [
"MIT"
] | null | null | null | NbrhdNash/Scenes/scene_Settings.cpp | OlavJDigranes/groupD | 1d1fdd4ec0117162d777d0c020cbf4ae1718cf5f | [
"MIT"
] | null | null | null | #include <iostream>
#include <thread>
#include "LevelSystem.h"
#include "scene_Settings.h"
#include "scene_MainMenu.h"
#include "../lib_ecm/components/cmp_text.h"
#include "../game.h"
#include "SFML/Window.hpp"
#include "SFML/Window/Joystick.hpp"
#include <iostream>
#include <fstream>
#include <stdio.h>
using namespac... | 24.412791 | 163 | 0.652536 | OlavJDigranes |
8636367d660d21365ef92c917705ef5c797ce508 | 25,150 | cpp | C++ | src/runtime/Spprintf.cpp | normal-coder/polarphp | a06e1f8781b4b75a2ca8cf2c22e0aa62631866fe | [
"PHP-3.01"
] | 1 | 2019-01-28T01:33:49.000Z | 2019-01-28T01:33:49.000Z | src/runtime/Spprintf.cpp | normal-coder/polarphp | a06e1f8781b4b75a2ca8cf2c22e0aa62631866fe | [
"PHP-3.01"
] | null | null | null | src/runtime/Spprintf.cpp | normal-coder/polarphp | a06e1f8781b4b75a2ca8cf2c22e0aa62631866fe | [
"PHP-3.01"
] | null | null | null | // This source file is part of the polarphp.org open source project
//
// Copyright (c) 2017 - 2018 polarphp software foundation
// Copyright (c) 2017 - 2018 zzu_softboy <zzu_softboy@163.com>
// Licensed under Apache License v2.0 with Runtime Library Exception
//
// See https://polarphp.org/LICENSE.txt for license info... | 30.04779 | 151 | 0.484453 | normal-coder |
8636c6931c7698a57238c12fd7388e91097d6d4c | 5,189 | cpp | C++ | munin/src/tabbed_panel.cpp | KazDragon/paradice9 | bb89ce8bff2f99d2526f45b064bfdd3412feb992 | [
"MIT"
] | 9 | 2015-12-16T07:00:39.000Z | 2021-05-05T13:29:28.000Z | munin/src/tabbed_panel.cpp | KazDragon/paradice9 | bb89ce8bff2f99d2526f45b064bfdd3412feb992 | [
"MIT"
] | 43 | 2015-07-18T11:13:15.000Z | 2017-07-15T13:18:43.000Z | munin/src/tabbed_panel.cpp | KazDragon/paradice9 | bb89ce8bff2f99d2526f45b064bfdd3412feb992 | [
"MIT"
] | 3 | 2015-10-09T13:33:35.000Z | 2016-07-11T02:23:08.000Z | // ==========================================================================
// Munin Tabbed Panel.
//
// Copyright (C) 2013 Matthew Chaplain, All Rights Reserved.
//
// Permission to reproduce, distribute, perform, display, and to prepare
// derivitive works from this file under the following conditions:
//
/... | 35.541096 | 78 | 0.45847 | KazDragon |
863917c98697564a59eea3d227901fc2de184cfc | 10,843 | hpp | C++ | source/AsioExpress/EventHandling/ResourceCache.hpp | suhao/asioexpress | 2f3453465934afdcdf4a575a2d933d86929b23c7 | [
"BSL-1.0"
] | null | null | null | source/AsioExpress/EventHandling/ResourceCache.hpp | suhao/asioexpress | 2f3453465934afdcdf4a575a2d933d86929b23c7 | [
"BSL-1.0"
] | null | null | null | source/AsioExpress/EventHandling/ResourceCache.hpp | suhao/asioexpress | 2f3453465934afdcdf4a575a2d933d86929b23c7 | [
"BSL-1.0"
] | null | null | null | // Copyright Ross MacGregor 2013
// Distributed under the Boost Software License, Version 1.0.
// (See accompanying file LICENSE_1_0.txt or copy at
// http://www.boost.org/LICENSE_1_0.txt)
#pragma once
#include <vector>
#include <map>
#include <set>
#include <boost/shared_ptr.hpp>
... | 32.464072 | 107 | 0.654063 | suhao |
86401129457fcbf250bf9a7419dd6cdc1a1ec5ce | 5,602 | cpp | C++ | base/src/easywsclient/AndroidImplSockets.cpp | djdron/gamesparks-cpp-base | 00b8af5dc2b58b7954cfa5d99c5ea7ded7115af8 | [
"Apache-2.0"
] | 7 | 2019-07-11T02:05:32.000Z | 2020-11-01T18:57:51.000Z | base/src/easywsclient/AndroidImplSockets.cpp | djdron/gamesparks-cpp-base | 00b8af5dc2b58b7954cfa5d99c5ea7ded7115af8 | [
"Apache-2.0"
] | 3 | 2019-02-26T15:59:03.000Z | 2019-06-04T10:46:07.000Z | base/src/easywsclient/AndroidImplSockets.cpp | djdron/gamesparks-cpp-base | 00b8af5dc2b58b7954cfa5d99c5ea7ded7115af8 | [
"Apache-2.0"
] | 6 | 2020-05-18T08:44:47.000Z | 2022-02-26T12:18:17.000Z | #include "GameSparks/GSPlatformDeduction.h"
#include "easywsclient/easywsclient.hpp"
#if (GS_TARGET_PLATFORM == GS_PLATFORM_ANDROID)
#include <mbedtls/entropy.h>
#include <mbedtls/ctr_drbg.h>
#include <mbedtls/net.h>
#include <mbedtls/error.h>
#include <mbedtls/platform.h>
#include <mbedtls/debug.h>
#include <cassert>... | 21.546154 | 108 | 0.704927 | djdron |
864e9604f4ed17b0987e1fe2e820882fe20f0e11 | 17,996 | cpp | C++ | scripts/da_cratemanager.cpp | mpforums/RenSharp | 5b3fb8bff2a1772a82a4148bcf3e1265a11aa097 | [
"Apache-2.0"
] | 1 | 2021-10-04T02:34:33.000Z | 2021-10-04T02:34:33.000Z | scripts/da_cratemanager.cpp | TheUnstoppable/RenSharp | 2a123c6018c18f3fc73501737d600e291ac3afa7 | [
"Apache-2.0"
] | 9 | 2019-07-03T19:19:59.000Z | 2020-03-02T22:00:21.000Z | scripts/da_cratemanager.cpp | TheUnstoppable/RenSharp | 2a123c6018c18f3fc73501737d600e291ac3afa7 | [
"Apache-2.0"
] | 2 | 2019-08-14T08:37:36.000Z | 2020-09-29T06:44:26.000Z | /* Renegade Scripts.dll
Dragonade Crate Manager
Copyright 2017 Whitedragon, Tiberian Technologies
This file is part of the Renegade scripts.dll
The Renegade scripts.dll is free software; you can redistribute it and/or modify it under
the terms of the GNU General Public License as published by the Free
Softwar... | 33.890772 | 404 | 0.692487 | mpforums |
8653002418fe6aad40b27089ade30361e7127879 | 3,343 | cpp | C++ | MathTutorRevised.cpp | krisf01/Computer-Systems-and-C-Programming | e6c3f464bcd12e06c86b57ce7bc12aacc03e423a | [
"MIT"
] | null | null | null | MathTutorRevised.cpp | krisf01/Computer-Systems-and-C-Programming | e6c3f464bcd12e06c86b57ce7bc12aacc03e423a | [
"MIT"
] | null | null | null | MathTutorRevised.cpp | krisf01/Computer-Systems-and-C-Programming | e6c3f464bcd12e06c86b57ce7bc12aacc03e423a | [
"MIT"
] | null | null | null | #include <iostream>
#include <iomanip>
#include <cmath>
using namespace std;
int main()
{
const int MIN_VALUE = 100;
const int MAX_VALUE = 1000;
const int addition = 1, subtraction = 2, multiplication = 3, division = 4, quit = 5;
int randomnumber1, randomnumber2, useranswer, randnumanswer;
int choi... | 30.117117 | 88 | 0.417589 | krisf01 |
86586fa7d8409801b39c5a8d81f0ebfefcc6cd93 | 6,539 | hpp | C++ | fltl/include/tdop/Unbound.hpp | iambrosie/Grail-Plus | e102de735e86df241e4311394190ad39181f073b | [
"MIT"
] | null | null | null | fltl/include/tdop/Unbound.hpp | iambrosie/Grail-Plus | e102de735e86df241e4311394190ad39181f073b | [
"MIT"
] | null | null | null | fltl/include/tdop/Unbound.hpp | iambrosie/Grail-Plus | e102de735e86df241e4311394190ad39181f073b | [
"MIT"
] | 1 | 2020-07-14T03:58:19.000Z | 2020-07-14T03:58:19.000Z | /*
* Unbound.hpp
*
* Created on: May 11, 2012
* Author: petergoodman
* Version: $Id$
*/
#ifndef Grail_Plus_TDOP_UNBOUND_HPP_
#define Grail_Plus_TDOP_UNBOUND_HPP_
namespace fltl { namespace tdop {
template <typename, typename> class Unbound;
template <typename, typename> class Bound;
/// ... | 24.958015 | 74 | 0.605138 | iambrosie |
865a71163dedde3fcde4c7e3e55f582b7d27cef3 | 4,481 | cpp | C++ | PA3/lex.cpp | Elmojica/CS280 | 6feeb34ea4e577c09df77ded4e0e0d00638994d7 | [
"CC0-1.0"
] | null | null | null | PA3/lex.cpp | Elmojica/CS280 | 6feeb34ea4e577c09df77ded4e0e0d00638994d7 | [
"CC0-1.0"
] | null | null | null | PA3/lex.cpp | Elmojica/CS280 | 6feeb34ea4e577c09df77ded4e0e0d00638994d7 | [
"CC0-1.0"
] | null | null | null | /*
* lex.cpp
*
* CS280 - Fall 2021
*/
#include <cctype>
#include <map>
using std::map;
using namespace std;
#include "lex.h"
static map<Token,string> tokenPrint = {
{PROGRAM, "PROGRAM"},
{WRITE, "WRITE"},
{INT, "INT"},
{ END, "END" },
{ IF, "IF" },
{FLOAT, "FLOAT"},
{STRING, "STRING"},
{ REPEAT, ... | 16.782772 | 85 | 0.481143 | Elmojica |
86669d7d3fd632dcabacd5da344bf82a5807a691 | 444 | cpp | C++ | src/detail/flow.cpp | szdanowi/bflow | 71cb2e6d8e55b0cd07337815d690ced8a0cb583a | [
"MIT"
] | null | null | null | src/detail/flow.cpp | szdanowi/bflow | 71cb2e6d8e55b0cd07337815d690ced8a0cb583a | [
"MIT"
] | null | null | null | src/detail/flow.cpp | szdanowi/bflow | 71cb2e6d8e55b0cd07337815d690ced8a0cb583a | [
"MIT"
] | null | null | null | #include "flow.hpp"
#include <ostream>
namespace bflow
{
namespace
{
const char* to_str(result value) {
switch (value) {
case result::rejected: return "rejected";
case result::accepted: return "accepted";
case result::completed: return "completed";
default: return "[INVALID RESULT]";
}
}
} // names... | 19.304348 | 58 | 0.668919 | szdanowi |
866f2edae264cbdb37de5e4701e0fb4d6d3f0a44 | 2,517 | hpp | C++ | libvast/vast/system/start_command.hpp | a4z/vast | 2ce9ddbac61cc7f195434b06fe3605f0bdeec520 | [
"BSD-3-Clause"
] | null | null | null | libvast/vast/system/start_command.hpp | a4z/vast | 2ce9ddbac61cc7f195434b06fe3605f0bdeec520 | [
"BSD-3-Clause"
] | null | null | null | libvast/vast/system/start_command.hpp | a4z/vast | 2ce9ddbac61cc7f195434b06fe3605f0bdeec520 | [
"BSD-3-Clause"
] | null | null | null | /******************************************************************************
* _ _____ __________ *
* | | / / _ | / __/_ __/ Visibility *
* | |/ / __ |_\ \ / / Across *
... | 51.367347 | 80 | 0.57052 | a4z |
86725899a1ff01ae0ac03e5b7f105187ae1a3f86 | 1,260 | cc | C++ | tools/patch/tfs/util/net_http/server/internal/evhttp_request.cc | alecgunny/tensorrt-inference-server | 6a9ae2936489c681d5ab7b6589d8aff7dd48829a | [
"BSD-3-Clause"
] | 1 | 2019-02-25T22:50:58.000Z | 2019-02-25T22:50:58.000Z | tools/patch/tfs/util/net_http/server/internal/evhttp_request.cc | alecgunny/tensorrt-inference-server | 6a9ae2936489c681d5ab7b6589d8aff7dd48829a | [
"BSD-3-Clause"
] | null | null | null | tools/patch/tfs/util/net_http/server/internal/evhttp_request.cc | alecgunny/tensorrt-inference-server | 6a9ae2936489c681d5ab7b6589d8aff7dd48829a | [
"BSD-3-Clause"
] | null | null | null | --- tensorflow_serving/util/net_http/server/internal/evhttp_request.cc 2018-11-01 12:04:22.185086318 -0700
+++ /home/david/dev/gitlab/dgx/tensorrtserver/tools/patch/tfs/util/net_http/server/internal/evhttp_request.cc 2018-11-02 11:47:57.254526547 -0700
@@ -44,6 +44,8 @@
evhttp_uri_free(decoded_uri);
}
+ evht... | 26.25 | 145 | 0.688889 | alecgunny |
8672e2fd6634d5727b1d5434a132567378bfe01b | 2,495 | cpp | C++ | src/solo/stb/SoloSTBTrueTypeFont.cpp | 0xc0dec/solo | 381276451767690b5fdb5a50a6b74a92ba78aa15 | [
"Zlib"
] | 31 | 2015-02-20T04:03:43.000Z | 2022-03-07T19:04:02.000Z | src/solo/stb/SoloSTBTrueTypeFont.cpp | 0xc0dec/solo | 381276451767690b5fdb5a50a6b74a92ba78aa15 | [
"Zlib"
] | 14 | 2015-07-13T09:24:22.000Z | 2016-10-24T10:09:58.000Z | src/solo/stb/SoloSTBTrueTypeFont.cpp | 0xc0dec/solo | 381276451767690b5fdb5a50a6b74a92ba78aa15 | [
"Zlib"
] | 1 | 2020-02-22T15:09:36.000Z | 2020-02-22T15:09:36.000Z | /*
* Copyright (c) Aleksey Fedotov
* MIT license
*/
#include "SoloSTBTrueTypeFont.h"
#include "SoloTexture.h"
#include "SoloDevice.h"
#include "SoloFileSystem.h"
#include "SoloStringUtils.h"
#include "SoloTextureData.h"
#define STB_TRUETYPE_IMPLEMENTATION
#include <stb_truetype.h>
using namespace solo;
auto ST... | 30.426829 | 123 | 0.67976 | 0xc0dec |
867536b48253f6ae10e7ffc8e0c299e3229da0ba | 1,522 | cpp | C++ | mindsystem/mindsee/mindbase/baseDemo.cpp | Jack2Hub/mindproject | 7d0e3651711fa3e8234e91ada7c2767f87d687d5 | [
"BSD-2-Clause"
] | 2 | 2021-04-06T11:43:37.000Z | 2021-08-31T10:50:02.000Z | mindsystem/mindsee/mindbase/baseDemo.cpp | Jack2Hub/mindproject | 7d0e3651711fa3e8234e91ada7c2767f87d687d5 | [
"BSD-2-Clause"
] | null | null | null | mindsystem/mindsee/mindbase/baseDemo.cpp | Jack2Hub/mindproject | 7d0e3651711fa3e8234e91ada7c2767f87d687d5 | [
"BSD-2-Clause"
] | 2 | 2021-02-26T11:46:48.000Z | 2021-09-15T09:54:03.000Z | #include <iostream>
#include <unistd.h>
#include "stream.hpp"
using namespace std;
int main()
{
Stream testStream1;
testStream1.SetCtrlCb([](std::string _cmd, void* userdata){return;}); // the cmd callback function must be set, you can just return without doing anything
testStream1.SetFrameCb([](Stream::sF... | 32.382979 | 158 | 0.575558 | Jack2Hub |
867c8a204338df55f6778dd49c730737fdd07e19 | 3,882 | cpp | C++ | core/common/cstream.cpp | plonk/peercast-0.1218 | 30fc2401dc798336429a979fe7aaca8883e63ed9 | [
"PSF-2.0",
"Apache-2.0",
"OpenSSL",
"MIT"
] | 28 | 2017-04-30T13:56:13.000Z | 2022-03-20T06:54:37.000Z | core/common/cstream.cpp | plonk/peercast-0.1218 | 30fc2401dc798336429a979fe7aaca8883e63ed9 | [
"PSF-2.0",
"Apache-2.0",
"OpenSSL",
"MIT"
] | 72 | 2017-04-25T03:42:58.000Z | 2021-12-04T06:35:28.000Z | core/common/cstream.cpp | plonk/peercast-0.1218 | 30fc2401dc798336429a979fe7aaca8883e63ed9 | [
"PSF-2.0",
"Apache-2.0",
"OpenSSL",
"MIT"
] | 12 | 2017-04-16T06:25:24.000Z | 2021-07-07T13:28:27.000Z | // ------------------------------------------------
// File : cstream.cpp
// Date: 4-apr-2002
// Author: giles
// Desc:
// Channel streaming classes. These do the actual
// streaming of media between clients.
//
// (c) 2002 peercast.org
//
// ------------------------------------------------
// This program is... | 33.179487 | 186 | 0.600206 | plonk |
86849cf9a2c0ac1a5f11afdd2c94bb8083994bda | 19,319 | cc | C++ | notification/src/macro_generator.cc | sdelafond/centreon-broker | 21178d98ed8a061ca71317d23c2026dbc4edaca2 | [
"Apache-2.0"
] | null | null | null | notification/src/macro_generator.cc | sdelafond/centreon-broker | 21178d98ed8a061ca71317d23c2026dbc4edaca2 | [
"Apache-2.0"
] | null | null | null | notification/src/macro_generator.cc | sdelafond/centreon-broker | 21178d98ed8a061ca71317d23c2026dbc4edaca2 | [
"Apache-2.0"
] | null | null | null | /*
** Copyright 2011-2015 Centreon
**
** 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 t... | 29.138763 | 91 | 0.661266 | sdelafond |
868504c3b01afe7814aed8af1def27d945d7d3c4 | 2,989 | cpp | C++ | 2020/day24/main.cpp | bielskij/AOC-2019 | e98d660412037b3fdac4a6b49adcb9230f518c99 | [
"MIT"
] | null | null | null | 2020/day24/main.cpp | bielskij/AOC-2019 | e98d660412037b3fdac4a6b49adcb9230f518c99 | [
"MIT"
] | null | null | null | 2020/day24/main.cpp | bielskij/AOC-2019 | e98d660412037b3fdac4a6b49adcb9230f518c99 | [
"MIT"
] | null | null | null | #include <climits>
#include "common/types.h"
#include "utils/file.h"
#include "utils/utils.h"
#define DEBUG_LEVEL 5
#include "common/debug.h"
enum Color {
WHITE,
BLACK
};
struct Floor {
Floor() {
this->minX = INT_MAX;
this->maxX = INT_MIN;
this->minY = INT_MAX;
this->maxY = INT_MIN;
}
Color getColor... | 18.337423 | 75 | 0.526932 | bielskij |
8692cf354b00f73644524d8b25e9052a004d8043 | 12,880 | cpp | C++ | temoto_action_assistant/src/ta_package_generator.cpp | temoto-framework/temoto_utils | 208956e46a3d362a8db18c14ef0bcfc82bfb0b9a | [
"Apache-2.0"
] | null | null | null | temoto_action_assistant/src/ta_package_generator.cpp | temoto-framework/temoto_utils | 208956e46a3d362a8db18c14ef0bcfc82bfb0b9a | [
"Apache-2.0"
] | 1 | 2021-06-30T22:13:27.000Z | 2021-06-30T22:13:27.000Z | temoto_action_assistant/src/ta_package_generator.cpp | temoto-telerobotics/temoto_utils | 9492de31dbadeb7029e9746d55f934943acc3b99 | [
"Apache-2.0"
] | null | null | null | /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
* Copyright 2019 TeMoto Telerobotics
*
* 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://w... | 41.548387 | 129 | 0.700233 | temoto-framework |
86950f91a7985ee46b02d1481306e0d3e26c72c8 | 921 | cpp | C++ | ex_12/principal.cpp | mihaioltean/poo | 9c03eef52a0a03867af3e65f66f979b1ad702ccc | [
"MIT"
] | null | null | null | ex_12/principal.cpp | mihaioltean/poo | 9c03eef52a0a03867af3e65f66f979b1ad702ccc | [
"MIT"
] | null | null | null | ex_12/principal.cpp | mihaioltean/poo | 9c03eef52a0a03867af3e65f66f979b1ad702ccc | [
"MIT"
] | null | null | null | // ConsoleApplication15.cpp : This file contains the 'main' function. Program execution begins and ends there.
//
#include "complex.h"
#include <stdio.h>
int main()
{
t_complex c1;
printf("real = %f, imaginar = %f\n", c1.get_real(), c1.get_imaginar());
t_complex c2(1, 2);
printf("real = %f, imaginar = %f\n", ... | 22.463415 | 111 | 0.631922 | mihaioltean |
8695b55ae79442abf1e50bc76548f0d30957e7c1 | 5,288 | cpp | C++ | src/core/Log.cpp | ElmerDellson/deferred-shading-full | 4ed351028fe13432327164a551f71fd368b933b7 | [
"MIT"
] | null | null | null | src/core/Log.cpp | ElmerDellson/deferred-shading-full | 4ed351028fe13432327164a551f71fd368b933b7 | [
"MIT"
] | null | null | null | src/core/Log.cpp | ElmerDellson/deferred-shading-full | 4ed351028fe13432327164a551f71fd368b933b7 | [
"MIT"
] | null | null | null | #include "config.hpp"
#include "Log.h"
#include <cstring>
#include <cstdio>
#include <sstream>
#include <string>
#include <iostream>
#include <thread>
#include <unordered_map>
#ifdef _WIN32
# include <Windows.h>
#endif
#include <mutex>
namespace Log {
#define RESULT_MAX_STRING_LENGTH 16384
FILE *logfile = nullptr;
v... | 25.669903 | 101 | 0.559191 | ElmerDellson |
8695dbf74fe9a4aa6113a3ddb2ffb2d1c86f0238 | 2,025 | cpp | C++ | bin/libs/systemc-2.3.1/src/sysc/kernel/sc_main.cpp | buaawj/Research | 23bf0d0df67f80b7a860f9d2dc3f30b60554c26d | [
"OML"
] | 9 | 2019-07-15T10:05:29.000Z | 2022-03-14T12:55:19.000Z | bin/libs/systemc-2.3.1/src/sysc/kernel/sc_main.cpp | buaawj/Research | 23bf0d0df67f80b7a860f9d2dc3f30b60554c26d | [
"OML"
] | 2 | 2019-11-30T23:27:47.000Z | 2021-11-02T12:01:05.000Z | systemc-2.3.1/src/sysc/kernel/sc_main.cpp | tianzhuqiao/bsmedit | 3e443ed6db7b44b3b0da0e4bc024b65dcfe8e7a4 | [
"MIT"
] | null | null | null | /*****************************************************************************
The following code is derived, directly or indirectly, from the SystemC
source code Copyright (c) 1996-2014 by all Contributors.
All Rights reserved.
The contents of this file are subject to the restrictions and limitations
set f... | 35.526316 | 79 | 0.614321 | buaawj |
8697a4bc2ddf75656c2d4f98a5b5280861daa1b2 | 1,796 | cpp | C++ | vulkan/source/QueryPool.cpp | mtezych/cpp | 05c1b85eb89117a9b406f3f32470367937331614 | [
"BSD-3-Clause"
] | null | null | null | vulkan/source/QueryPool.cpp | mtezych/cpp | 05c1b85eb89117a9b406f3f32470367937331614 | [
"BSD-3-Clause"
] | null | null | null | vulkan/source/QueryPool.cpp | mtezych/cpp | 05c1b85eb89117a9b406f3f32470367937331614 | [
"BSD-3-Clause"
] | 2 | 2019-12-21T00:31:17.000Z | 2021-07-14T23:16:23.000Z |
#include <vulkan/QueryPool.h>
#include <vulkan/Symbols.h>
#include <vulkan/Device.h>
namespace vk
{
QueryPool::CreateInfo::CreateInfo
(
const VkQueryType queryType, const uint32_t queryCount
):
createInfo
{
VK_STRUCTURE_TYPE_QUERY_POOL_CREATE_INFO,
nullptr,
0,
queryType, queryCount,
VkQueryPi... | 20.179775 | 70 | 0.711581 | mtezych |
869d12cee80b66df20a9d0c75be4533dab9e912e | 18,679 | hpp | C++ | orb/include/morbid/handle_request_body.hpp | felipealmeida/mORBid | 3ebc133f9dbe8af1c5cfb39349a0fbf5c125229b | [
"BSL-1.0"
] | 2 | 2018-01-31T07:06:23.000Z | 2021-02-18T00:49:05.000Z | orb/include/morbid/handle_request_body.hpp | felipealmeida/mORBid | 3ebc133f9dbe8af1c5cfb39349a0fbf5c125229b | [
"BSL-1.0"
] | null | null | null | orb/include/morbid/handle_request_body.hpp | felipealmeida/mORBid | 3ebc133f9dbe8af1c5cfb39349a0fbf5c125229b | [
"BSL-1.0"
] | null | null | null | /* (c) Copyright 2012 Felipe Magno de Almeida
*
* Distributed under the Boost Software License, Version 1.0. (See
* accompanying file LICENSE_1_0.txt or copy at
* http://www.boost.org/LICENSE_1_0.txt)
*/
#ifndef MORBID_HANDLE_REQUEST_BODY_HPP
#define MORBID_HANDLE_REQUEST_BODY_HPP
#include <morbid/any.hpp>
#incl... | 38.198364 | 128 | 0.693506 | felipealmeida |
869f10223b79d175e5bdc5e96de65f67f7c57dfe | 2,050 | cpp | C++ | week 1/Arrays/10First_Repeating_Element.cpp | arpit456jain/gfg-11-Weeks-Workshop-on-DSA-in-CPP | ed7fd8bc0a581f54ba3a3588dd01013776c4ece6 | [
"MIT"
] | 6 | 2021-08-06T14:36:41.000Z | 2022-03-22T11:22:07.000Z | week 1/Arrays/10First_Repeating_Element.cpp | arpit456jain/11-Weeks-Workshop-on-DSA-in-CPP | ed7fd8bc0a581f54ba3a3588dd01013776c4ece6 | [
"MIT"
] | 1 | 2021-08-09T05:09:48.000Z | 2021-08-09T05:09:48.000Z | week 1/Arrays/10First_Repeating_Element.cpp | arpit456jain/11-Weeks-Workshop-on-DSA-in-CPP | ed7fd8bc0a581f54ba3a3588dd01013776c4ece6 | [
"MIT"
] | 1 | 2021-08-09T14:25:17.000Z | 2021-08-09T14:25:17.000Z | // Given an array arr[] of size n, find the first repeating element. The element should occurs more than once and the index of its first occurrence should be the smallest.
// Input:
// n = 7
// arr[] = {1, 5, 3, 4, 3, 5, 6}
// Output: 2
// Explanation:
// 5 is appearing twice and
// its first appearence is at index ... | 24.698795 | 171 | 0.46 | arpit456jain |
869fbf4e6e0ec99cada0c4b1137a78c2d16fe019 | 3,070 | cpp | C++ | trainings/2015-07-25-Multi-University-2015-1 /F.cpp | HcPlu/acm-icpc | ab1f1d58bf2b4bf6677a2e4282fd3dadb3effbf8 | [
"MIT"
] | 9 | 2017-10-07T13:35:45.000Z | 2021-06-07T17:36:55.000Z | trainings/2015-07-25-Multi-University-2015-1 /F.cpp | zhijian-liu/acm-icpc | ab1f1d58bf2b4bf6677a2e4282fd3dadb3effbf8 | [
"MIT"
] | null | null | null | trainings/2015-07-25-Multi-University-2015-1 /F.cpp | zhijian-liu/acm-icpc | ab1f1d58bf2b4bf6677a2e4282fd3dadb3effbf8 | [
"MIT"
] | 3 | 2018-04-24T05:27:21.000Z | 2019-04-25T06:06:00.000Z | #include <cstdio>
#include <algorithm>
#include <vector>
using namespace std;
const int N = 222222;
int n, m;
vector<int> adj[N];
int height[N], parent[N], dist[N], dp[N];
int father[N][20];
vector<pair<pair<int, int>, int> > chain[N];
int jump(int x, int k) {
for (int i = 0; i < 20; ++i) {
if (k >> i &... | 21.928571 | 77 | 0.400977 | HcPlu |
86a1de77dee7fd33df55aee618ae8d1601b75d41 | 191 | cpp | C++ | regression/esbmc-cpp/cbmc/Templates14/main.cpp | shmarovfedor/esbmc | 3226a3d68b009d44b9535a993ac0f25e1a1fbedd | [
"BSD-3-Clause"
] | 143 | 2015-06-22T12:30:01.000Z | 2022-03-21T08:41:17.000Z | regression/esbmc-cpp/cbmc/Templates14/main.cpp | shmarovfedor/esbmc | 3226a3d68b009d44b9535a993ac0f25e1a1fbedd | [
"BSD-3-Clause"
] | 542 | 2017-06-02T13:46:26.000Z | 2022-03-31T16:35:17.000Z | regression/esbmc-cpp/cbmc/Templates14/main.cpp | shmarovfedor/esbmc | 3226a3d68b009d44b9535a993ac0f25e1a1fbedd | [
"BSD-3-Clause"
] | 81 | 2015-10-21T22:21:59.000Z | 2022-03-24T14:07:55.000Z | #include<cassert>
namespace n1
{
template <class S>
struct A{
S a;
};
}
template <class T>
struct B{
n1::A<T> b;
};
int main()
{
B<bool> o;
o.b.a = true;
assert(o.b.a==true);
};
| 8.681818 | 22 | 0.560209 | shmarovfedor |
86a62e1bbf39a71c8842b26242f5954e67788ccd | 505 | cpp | C++ | test/TestCell.cpp | samsparks/climaze | a49dc0a926f86311212a61e837ebb46e2a387fe2 | [
"MIT"
] | null | null | null | test/TestCell.cpp | samsparks/climaze | a49dc0a926f86311212a61e837ebb46e2a387fe2 | [
"MIT"
] | null | null | null | test/TestCell.cpp | samsparks/climaze | a49dc0a926f86311212a61e837ebb46e2a387fe2 | [
"MIT"
] | null | null | null | #include <boost/test/unit_test.hpp>
#include "Cell.hpp"
BOOST_AUTO_TEST_SUITE(TestCell)
BOOST_AUTO_TEST_CASE( Initialization )
{
Cell c;
BOOST_CHECK_EQUAL( c.Visited(), false );
BOOST_CHECK_EQUAL( c.Opened(), false );
}
BOOST_AUTO_TEST_CASE( Accessors )
{
Cell c;
BOOST_CHECK_EQUAL( c.Visited(), f... | 21.956522 | 51 | 0.69901 | samsparks |
86a696f79263c4449c62684bb7931f717285dd35 | 3,711 | cpp | C++ | src/game/cmd/LsPlayers.cpp | jumptohistory/jaymod | 92d0a0334ac27da94b12280b0b42b615b8813c23 | [
"Apache-2.0"
] | 25 | 2016-05-27T11:53:58.000Z | 2021-10-17T00:13:41.000Z | src/game/cmd/LsPlayers.cpp | jumptohistory/jaymod | 92d0a0334ac27da94b12280b0b42b615b8813c23 | [
"Apache-2.0"
] | 1 | 2016-07-09T05:25:03.000Z | 2016-07-09T05:25:03.000Z | src/game/cmd/LsPlayers.cpp | jumptohistory/jaymod | 92d0a0334ac27da94b12280b0b42b615b8813c23 | [
"Apache-2.0"
] | 16 | 2016-05-28T23:06:50.000Z | 2022-01-26T13:47:12.000Z | #include <bgame/impl.h>
namespace cmd {
///////////////////////////////////////////////////////////////////////////////
LsPlayers::LsPlayers()
: AbstractBuiltin( "lsplayers" )
{
__usage << xvalue( "!" + _name );
__descr << "Display all players connected, their client numbers and admin levels.";
}
//////... | 25.244898 | 87 | 0.466451 | jumptohistory |
86ab04821b716af2f4d5e29a2f3d8159b6f8e943 | 1,255 | cc | C++ | src/constants.cc | IoanaIleana/SigmodContest | 589bc86deecea953b40c2ce07759d35e397bd9c8 | [
"MIT"
] | null | null | null | src/constants.cc | IoanaIleana/SigmodContest | 589bc86deecea953b40c2ce07759d35e397bd9c8 | [
"MIT"
] | null | null | null | src/constants.cc | IoanaIleana/SigmodContest | 589bc86deecea953b40c2ce07759d35e397bd9c8 | [
"MIT"
] | null | null | null | #include <sys/types.h>
#include <stdint.h>
#include "constants.h"
uint64_t one64 = (uint64_t)1;
uint64_t zero64 = (uint64_t)0;
uint64_t max64 = ~zero64;
uint64_t mod64mask=(uint64_t)63;
uint64_t masks64[(int)64] = {
one64<<(int)0, one64<<(int)1, one64<<(int)2, one64<<(int)3, one64<<(int)4, one64<<(int)5, one64<<... | 54.565217 | 129 | 0.627888 | IoanaIleana |
86bd7fc0594dfde72fb9d711ca70b6741b599ffe | 3,199 | cpp | C++ | src/basegui/TextViewControllerImplementor.cpp | 0of/WebOS-Magna | a0fe2c9708fd4dd07928c11fcb03fb29fdd2d511 | [
"Apache-2.0"
] | 1 | 2016-03-26T13:25:08.000Z | 2016-03-26T13:25:08.000Z | src/basegui/TextViewControllerImplementor.cpp | 0of/WebOS-Magna | a0fe2c9708fd4dd07928c11fcb03fb29fdd2d511 | [
"Apache-2.0"
] | null | null | null | src/basegui/TextViewControllerImplementor.cpp | 0of/WebOS-Magna | a0fe2c9708fd4dd07928c11fcb03fb29fdd2d511 | [
"Apache-2.0"
] | null | null | null | #include "TextViewControllerImplementor.h"
#include "TextViewController.h"
#include "qt_glue/FontMetrics.h"
using namespace Magna::Glue;
namespace Magna{
namespace GUI{
TextViewControllerImplementor::TextViewControllerImplementor( TextViewController & binding )
:m_textBoundingRect()
,m... | 33.673684 | 147 | 0.626758 | 0of |
f864a7c0098829c3fb06d77aee813880b0866700 | 4,521 | cpp | C++ | sources/test/Main.cpp | Naoki-Nakagawa/GameLibrary | 0b20938a19a293f76c177726a8e70ddce0dbeeb5 | [
"MIT"
] | 2 | 2017-05-23T17:19:17.000Z | 2017-05-30T10:28:38.000Z | sources/test/Main.cpp | Naoki-Nakagawa/GameDevelopmentKit | 0b20938a19a293f76c177726a8e70ddce0dbeeb5 | [
"MIT"
] | 61 | 2018-02-11T08:27:32.000Z | 2018-06-01T11:01:57.000Z | sources/test/Main.cpp | itukikikuti/GameLibrary | 0b20938a19a293f76c177726a8e70ddce0dbeeb5 | [
"MIT"
] | null | null | null | #define XLIBRARY_NAMESPACE_BEGIN
#define XLIBRARY_NAMESPACE_END
#include "../Library.hpp"
#include "../LibraryGenerator.cpp"
#include <sstream>
#include "Sub.hpp"
using namespace std;
int Main()
{
LibraryGenerator::Generate(L"sources/Library.hpp", L"XLibrary11.hpp");
Debug::OpenConsole();
printf("aaaaaa");
Spri... | 23.670157 | 94 | 0.65605 | Naoki-Nakagawa |
f874668564f613d9c24db90e684e040d5d3ee28e | 678 | hh | C++ | include/helper.hh | kretash/old_school_fps | c9c1951939fdf810fff58ebc04818972e92ffc77 | [
"MIT"
] | null | null | null | include/helper.hh | kretash/old_school_fps | c9c1951939fdf810fff58ebc04818972e92ffc77 | [
"MIT"
] | null | null | null | include/helper.hh | kretash/old_school_fps | c9c1951939fdf810fff58ebc04818972e92ffc77 | [
"MIT"
] | null | null | null | #pragma once
#include <stdint.h>
#include "math.hh"
static inline uint32_t create_color( float r, float g, float b, float a ) {
uint32_t color =
( uint8_t ) ( def_clamp( a * 255.0f, 0.0f, 255.0f ) ) << 24 |
( uint8_t ) ( def_clamp( b * 255.0f, 0.0f, 255.0f ) ) << 16 |
( uint8_t ) ( def_cl... | 27.12 | 75 | 0.591445 | kretash |
f87521729fac8e1404a245d2045aa299107a68f2 | 1,374 | cpp | C++ | Samples/ObjectInOffice/IDataObject.cpp | ntclark/Graphic | 86acc119d172bb53c1666432538836b461d8a3f2 | [
"BSD-3-Clause"
] | 12 | 2018-03-15T00:20:55.000Z | 2021-08-11T10:02:15.000Z | Samples/ObjectInOffice/IDataObject.cpp | ntclark/Graphic | 86acc119d172bb53c1666432538836b461d8a3f2 | [
"BSD-3-Clause"
] | null | null | null | Samples/ObjectInOffice/IDataObject.cpp | ntclark/Graphic | 86acc119d172bb53c1666432538836b461d8a3f2 | [
"BSD-3-Clause"
] | 2 | 2019-04-09T17:15:31.000Z | 2020-12-05T19:52:59.000Z | // Copyright 2018 InnoVisioNate Inc. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "ObjectInOffice.h"
STDMETHODIMP ObjectInOffice::GetData(FORMATETC *,STGMEDIUM *) {
return S_OK;
}
STDMETHODIMP ObjectInOffice::GetDat... | 28.040816 | 114 | 0.720524 | ntclark |
f8767f849911f1eca9300a2ea16e8808007407f3 | 476 | cc | C++ | 2021_1011_1017/887.cc | guohaoqiang/leetcode | 802447c029c36892e8dd7391c825bcfc7ac0fd0b | [
"MIT"
] | null | null | null | 2021_1011_1017/887.cc | guohaoqiang/leetcode | 802447c029c36892e8dd7391c825bcfc7ac0fd0b | [
"MIT"
] | null | null | null | 2021_1011_1017/887.cc | guohaoqiang/leetcode | 802447c029c36892e8dd7391c825bcfc7ac0fd0b | [
"MIT"
] | null | null | null | class Solution {
public:
int superEggDrop(int k, int n) {
vector<vector<int>> dp(10001,vector<int>(k+1,0));
int m = 0;
// m: #move
// dp[m][k]: the #floors can be tested using m moves and k eggs
while (dp[m][k]<n){
m++;
for (int j=1; j<=k; ++j){
... | 26.444444 | 71 | 0.413866 | guohaoqiang |
f879833a3b649dfc90b7f50ad0a2c0bbb8b3b7bf | 1,677 | cpp | C++ | solutions/c++/problems/[0017_Medium] Letter Combinations of a Phone Number.cpp | RageBill/leetcode | a11d411f4e38b5c3f05ca506a193f50b25294497 | [
"MIT"
] | 6 | 2021-02-20T14:00:22.000Z | 2022-03-31T15:26:44.000Z | solutions/c++/problems/[0017_Medium] Letter Combinations of a Phone Number.cpp | RageBill/leetcode | a11d411f4e38b5c3f05ca506a193f50b25294497 | [
"MIT"
] | null | null | null | solutions/c++/problems/[0017_Medium] Letter Combinations of a Phone Number.cpp | RageBill/leetcode | a11d411f4e38b5c3f05ca506a193f50b25294497 | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
using namespace std;
class Solution {
public:
vector<vector<char>> cart_product(const vector<vector<char>> &v) {
vector<vector<char>> s = {{}};
for (auto &u: v) {
vector<vector<char>> r;
for (auto &x: s) {
for (auto y: u) {
... | 27.95 | 78 | 0.408468 | RageBill |
f881f992d4faa5d20f4649883ba1b1a4687a8a1e | 1,037 | cpp | C++ | algorithm-challenges/baekjoon-online-judge/challenges/9000/9251.cpp | nbsp1221/algorithm | a227bbc7cf43dbf2cadc8d47052b9a92875dfa77 | [
"MIT"
] | null | null | null | algorithm-challenges/baekjoon-online-judge/challenges/9000/9251.cpp | nbsp1221/algorithm | a227bbc7cf43dbf2cadc8d47052b9a92875dfa77 | [
"MIT"
] | null | null | null | algorithm-challenges/baekjoon-online-judge/challenges/9000/9251.cpp | nbsp1221/algorithm | a227bbc7cf43dbf2cadc8d47052b9a92875dfa77 | [
"MIT"
] | null | null | null | #include <iostream>
#include <string>
#include <vector>
using namespace std;
int main()
{
ios::sync_with_stdio(false);
cin.tie(NULL);
string small, big, temponary;
cin >> small >> big;
if (small.size() > big.size()) {
temponary = small;
small = big;
big = temponary;
}... | 22.543478 | 68 | 0.427194 | nbsp1221 |
f8837cbfab9cd082989c2ec26848513a735149e4 | 1,490 | hpp | C++ | include/boost/mysql/detail/auth/auth_calculator.hpp | AlexAndDad/mysql-asio | a56d390a2ef4426744483dcbaeb54a65af524356 | [
"BSL-1.0"
] | null | null | null | include/boost/mysql/detail/auth/auth_calculator.hpp | AlexAndDad/mysql-asio | a56d390a2ef4426744483dcbaeb54a65af524356 | [
"BSL-1.0"
] | null | null | null | include/boost/mysql/detail/auth/auth_calculator.hpp | AlexAndDad/mysql-asio | a56d390a2ef4426744483dcbaeb54a65af524356 | [
"BSL-1.0"
] | null | null | null | //
// Copyright (c) 2019-2020 Ruben Perez Hidalgo (rubenperez038 at gmail dot com)
//
// Distributed under the Boost Software License, Version 1.0. (See accompanying
// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
//
#ifndef BOOST_MYSQL_DETAIL_AUTH_AUTH_CALCULATOR_HPP
#define BOOST_MYSQL_DETAI... | 24.42623 | 82 | 0.715436 | AlexAndDad |
f886b196bebdc5e2f992f0cf120344c37ba5a990 | 7,678 | cpp | C++ | case-studies/PoDoFo/podofo/cib/podofo/base/PdfDataType.h.cpp | satya-das/cib | 369333ea58b0530b8789a340e21096ba7d159d0e | [
"MIT"
] | 30 | 2018-03-05T17:35:29.000Z | 2022-03-17T18:59:34.000Z | case-studies/PoDoFo/podofo/cib/podofo/base/PdfDataType.h.cpp | satya-das/cib | 369333ea58b0530b8789a340e21096ba7d159d0e | [
"MIT"
] | 2 | 2016-05-26T04:47:13.000Z | 2019-02-15T05:17:43.000Z | case-studies/PoDoFo/podofo/cib/podofo/base/PdfDataType.h.cpp | satya-das/cib | 369333ea58b0530b8789a340e21096ba7d159d0e | [
"MIT"
] | 5 | 2019-02-15T05:09:22.000Z | 2021-04-14T12:10:16.000Z | #include "podofo/base/PdfDataType.h"
#include "podofo/base/PdfDefines.h"
#include "podofo/base/PdfEncrypt.h"
#include "podofo/base/PdfOutputDevice.h"
#include "__zz_cib_CibPoDoFo-class-down-cast.h"
#include "__zz_cib_CibPoDoFo-delegate-helper.h"
#include "__zz_cib_CibPoDoFo-generic.h"
#include "__zz_cib_CibPoDoFo-ids.... | 49.535484 | 267 | 0.784189 | satya-das |
f8890a3a056ff61efd82778c8997d1b70f77e01f | 2,267 | cpp | C++ | PolyEngine/UnitTests/Src/AllocatorTests.cpp | MuniuDev/PolyEngine | 9389537e4f551fa5dd621ebd3704e55b04c98792 | [
"MIT"
] | 1 | 2017-04-30T13:55:54.000Z | 2017-04-30T13:55:54.000Z | PolyEngine/UnitTests/Src/AllocatorTests.cpp | MuniuDev/PolyEngine | 9389537e4f551fa5dd621ebd3704e55b04c98792 | [
"MIT"
] | null | null | null | PolyEngine/UnitTests/Src/AllocatorTests.cpp | MuniuDev/PolyEngine | 9389537e4f551fa5dd621ebd3704e55b04c98792 | [
"MIT"
] | 3 | 2017-11-22T16:37:26.000Z | 2019-04-24T17:47:58.000Z | #include <catch.hpp>
#include <PoolAllocator.hpp>
#include <IterablePoolAllocator.hpp>
using namespace Poly;
TEST_CASE("Pool allocator", "[Allocator]") {
PoolAllocator<size_t> allocator(10);
REQUIRE(allocator.GetSize() == 0);
size_t* a = allocator.Alloc();
REQUIRE(a != nullptr);
REQUIRE(allocator.GetSize() ==... | 22.445545 | 70 | 0.659462 | MuniuDev |
f889a8743f81ad633163e794d37ae91c293f278d | 1,134 | cpp | C++ | c++/remove_duplicates_from_sorted_list.cpp | SongZhao/leetcode | 4a2b4f554e91f6a2167b336f8a69b80fa9f3f920 | [
"Apache-2.0"
] | null | null | null | c++/remove_duplicates_from_sorted_list.cpp | SongZhao/leetcode | 4a2b4f554e91f6a2167b336f8a69b80fa9f3f920 | [
"Apache-2.0"
] | null | null | null | c++/remove_duplicates_from_sorted_list.cpp | SongZhao/leetcode | 4a2b4f554e91f6a2167b336f8a69b80fa9f3f920 | [
"Apache-2.0"
] | null | null | null | /*
Given a sorted linked list, delete all duplicates such that each element appear only once.
For example,
Given 1->1->2, return 1->2.
Given 1->1->2->3->3, return 1->2->3.
*/
/*
* note how to free memory
*/
#include "helper.h"
/**
* Definition for singly-linked list.
* struct ListNode {
* int val;
* Li... | 21 | 90 | 0.534392 | SongZhao |
f88e19a2599b4d3b6e63bb590eb7da1478dcf03b | 480 | cpp | C++ | DP/746. Min Cost Climbing Stairs.cpp | sumiya-NJU/LeetCode- | 8e6065e160da3db423a51aaf3ae53b2023068d05 | [
"MIT"
] | 2 | 2019-10-28T06:40:09.000Z | 2022-03-09T10:50:06.000Z | DP/746. Min Cost Climbing Stairs.cpp | sumiya-NJU/LeetCode | 8e6065e160da3db423a51aaf3ae53b2023068d05 | [
"MIT"
] | null | null | null | DP/746. Min Cost Climbing Stairs.cpp | sumiya-NJU/LeetCode | 8e6065e160da3db423a51aaf3ae53b2023068d05 | [
"MIT"
] | 1 | 2018-12-09T13:46:06.000Z | 2018-12-09T13:46:06.000Z | // author: ypz
// 数组dp表示落地到第i位的最低代价,注意返回值取落地到第n位和第n-1位中代价的较小者。
class Solution {
public:
int minCostClimbingStairs(vector<int>& cost) {
if(cost.size() == 0) return 0;
if(cost.size() == 1) return cost[0];
vector<int> dp(cost.size(), 0);
dp[0] = cost[0];
dp[1] = cost[1];
... | 28.235294 | 57 | 0.520833 | sumiya-NJU |
f8901f6e1876b927d707f7faa558179dfdfb3f08 | 9,194 | cpp | C++ | examples/ex28.cpp | ajithvallabai/mfem | 5920fbf645f328c29a9d6489f2474d989f808451 | [
"BSD-3-Clause"
] | 969 | 2015-07-10T02:28:17.000Z | 2022-03-31T17:28:02.000Z | examples/ex28.cpp | ajithvallabai/mfem | 5920fbf645f328c29a9d6489f2474d989f808451 | [
"BSD-3-Clause"
] | 2,604 | 2015-07-14T08:22:22.000Z | 2022-03-31T23:51:41.000Z | examples/ex28.cpp | ajithvallabai/mfem | 5920fbf645f328c29a9d6489f2474d989f808451 | [
"BSD-3-Clause"
] | 407 | 2015-08-26T14:14:22.000Z | 2022-03-31T03:32:16.000Z | // MFEM Example 28
//
// Compile with: make ex28
//
// Sample runs: ex28
// ex28 --visit-datafiles
// ex28 --order 2
//
// Description: Demonstrates a sliding boundary condition in an elasticity
// problem. A trapezoid, roughly as pictured below... | 34.30597 | 80 | 0.618447 | ajithvallabai |
f8969197258efbec51f45e4510bdfccefbf47f61 | 1,350 | cpp | C++ | test/test_typed_test.cpp | ncihnegn/jctest | 92139e9b6362c2cb1d252caba4a268a852652554 | [
"MIT"
] | 38 | 2019-02-28T07:23:15.000Z | 2021-11-22T14:08:00.000Z | test/test_typed_test.cpp | ncihnegn/jctest | 92139e9b6362c2cb1d252caba4a268a852652554 | [
"MIT"
] | 5 | 2019-04-13T21:37:03.000Z | 2020-04-11T13:06:31.000Z | test/test_typed_test.cpp | ncihnegn/jctest | 92139e9b6362c2cb1d252caba4a268a852652554 | [
"MIT"
] | 4 | 2019-04-13T21:22:22.000Z | 2020-07-13T20:09:13.000Z |
#include <string.h>
#include <stdio.h>
#include "testutil.h"
// To test the testing framework /////////////
void GlobalTestSetup(); // to silence a warning
void GlobalTestSetup() {
printf("Setting up the test\n");
}
int GlobalTestTeardown(); // to silence a warning
int GlobalTestTeardown() {
printf("Verifying... | 18.493151 | 63 | 0.586667 | ncihnegn |
f897961b41157b5c190c4a8a80a8199a2030e1c3 | 2,734 | cpp | C++ | src/StoneCold.3D.Game/GameCore.cpp | krck/StoneCold_3D | 5661a96e5167922b0ba555714a6d337acdea48c5 | [
"BSD-3-Clause"
] | null | null | null | src/StoneCold.3D.Game/GameCore.cpp | krck/StoneCold_3D | 5661a96e5167922b0ba555714a6d337acdea48c5 | [
"BSD-3-Clause"
] | null | null | null | src/StoneCold.3D.Game/GameCore.cpp | krck/StoneCold_3D | 5661a96e5167922b0ba555714a6d337acdea48c5 | [
"BSD-3-Clause"
] | null | null | null | #include "GameCore.hpp"
using namespace StoneCold::Game;
//using namespace StoneCold::Resources;
GameCore::GameCore()
: _inputManager(InputManager())
, _windowManager(WindowManager())
{ };
bool GameCore::Initialize(const std::string& windowName) {
try {
if (_windowManager.Initialize(&_inputManager)) {
// G... | 26.288462 | 82 | 0.666057 | krck |
f8a085d06c69abbcb0c5afbf0d66bf04f7f7e40b | 833 | cpp | C++ | rt/rt/solids/sky.cpp | DasNaCl/old-university-projects | af1c82afec4805ea672e0c353369035b394cb69d | [
"Apache-2.0"
] | null | null | null | rt/rt/solids/sky.cpp | DasNaCl/old-university-projects | af1c82afec4805ea672e0c353369035b394cb69d | [
"Apache-2.0"
] | null | null | null | rt/rt/solids/sky.cpp | DasNaCl/old-university-projects | af1c82afec4805ea672e0c353369035b394cb69d | [
"Apache-2.0"
] | null | null | null | #include <rt/bbox.h>
#include <rt/intersection.h>
#include <rt/solids/sky.h>
namespace rt
{
Sky::Sky(CoordMapper* texMapper, Material* material)
: Solid(texMapper, material)
{
}
BBox Sky::getBounds() const
{
return BBox::full();
}
Intersection Sky::intersect(const Ray& ray, float previousBestDistance) const
{
i... | 23.8 | 79 | 0.70108 | DasNaCl |
f8a12320e7923737dd065eb25132e17ffc5a46dd | 1,353 | hpp | C++ | ntree/hashentry.hpp | degarashi/boomstick | 55dc5bfcfad6119d8401f578f91df7bbd44c192b | [
"MIT"
] | 1 | 2015-06-14T15:54:27.000Z | 2015-06-14T15:54:27.000Z | ntree/hashentry.hpp | degarashi/boomstick | 55dc5bfcfad6119d8401f578f91df7bbd44c192b | [
"MIT"
] | null | null | null | ntree/hashentry.hpp | degarashi/boomstick | 55dc5bfcfad6119d8401f578f91df7bbd44c192b | [
"MIT"
] | null | null | null | #pragma once
#include "ntree.hpp"
namespace boom {
namespace ntree {
//! ハッシュマップによるエントリ実装
/*! \tparam Ent エントリクラス
\tparam NDiv 分割度
\tparam NL 次元数(2 or 3) */
template <class Ent, int NDiv, int Dim>
class CTEnt_Hash : public CTEnt_Base<NDiv,Dim> {
public:
using Entry = Ent;
private:
using ... | 23.736842 | 68 | 0.593496 | degarashi |
f8a6e2740e2576bef26f842ac1bb9aaa0692e661 | 435 | hpp | C++ | src/world/timer.hpp | ComLarsic/FinishTheGame_Rayjam | a5ddb7af9c0c4fd285cad26b13f9b58440fe3a89 | [
"MIT"
] | null | null | null | src/world/timer.hpp | ComLarsic/FinishTheGame_Rayjam | a5ddb7af9c0c4fd285cad26b13f9b58440fe3a89 | [
"MIT"
] | null | null | null | src/world/timer.hpp | ComLarsic/FinishTheGame_Rayjam | a5ddb7af9c0c4fd285cad26b13f9b58440fe3a89 | [
"MIT"
] | null | null | null | #pragma once
/** Represents the game tumer */
class Timer {
public:
Timer();
~Timer();
/** Tick the timer */
void Tick();
/** Set the timer */
void Set(int minutes, int seconds);
/** Add time to the timer */
void Add(int minutes, int seconds);
/** Display the game timer */
void... | 19.772727 | 39 | 0.572414 | ComLarsic |
f8a8f59476c5abb81b72122783847f8e1da98b0a | 7,008 | cxx | C++ | TivaWare/third_party/windows/fltk-1.1.10/src/Fl_Menu_.cxx | bumblebee96/pacman | 1b82f1747765e807bef3040e4dac72c744fc3bc1 | [
"MIT"
] | 25 | 2015-04-20T13:03:05.000Z | 2022-01-06T07:25:02.000Z | TivaWare/third_party/windows/fltk-1.1.10/src/Fl_Menu_.cxx | bumblebee96/pacman | 1b82f1747765e807bef3040e4dac72c744fc3bc1 | [
"MIT"
] | 1 | 2021-03-21T03:00:58.000Z | 2021-03-22T10:05:45.000Z | TivaWare/third_party/windows/fltk-1.1.10/src/Fl_Menu_.cxx | bumblebee96/pacman | 1b82f1747765e807bef3040e4dac72c744fc3bc1 | [
"MIT"
] | 24 | 2015-09-22T12:08:11.000Z | 2021-12-30T10:17:30.000Z | //
// "$Id: Fl_Menu_.cxx 5190 2006-06-09 16:16:34Z mike $"
//
// Common menu code for the Fast Light Tool Kit (FLTK).
//
// Copyright 1998-2005 by Bill Spitzak and others.
//
// This library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Library General Public
// Licen... | 30.077253 | 99 | 0.60117 | bumblebee96 |
f8b59b44718cd2acb8e291ab8d87881e209617c8 | 1,518 | cpp | C++ | LeetCode/ThousandOne/0682-baseball_game.cpp | Ginkgo-Biloba/Cpp-Repo1-VS | 231c68a055e6bf69a3f7c224e7c0182b67ce5b67 | [
"Apache-2.0"
] | null | null | null | LeetCode/ThousandOne/0682-baseball_game.cpp | Ginkgo-Biloba/Cpp-Repo1-VS | 231c68a055e6bf69a3f7c224e7c0182b67ce5b67 | [
"Apache-2.0"
] | null | null | null | LeetCode/ThousandOne/0682-baseball_game.cpp | Ginkgo-Biloba/Cpp-Repo1-VS | 231c68a055e6bf69a3f7c224e7c0182b67ce5b67 | [
"Apache-2.0"
] | null | null | null | #include "leetcode.hpp"
/* 682. 棒球比赛
你现在是棒球比赛记录员。
给定一个字符串列表,每个字符串可以是以下四种类型之一:
1.整数(一轮的得分):直接表示您在本轮中获得的积分数。
2. "+"(一轮的得分):表示本轮获得的得分是前两轮有效 回合得分的总和。
3. "D"(一轮的得分):表示本轮获得的得分是前一轮有效 回合得分的两倍。
4. "C"(一个操作,这不是一个回合的分数):表示您获得的最后一个有效 回合的分数是无效的,应该被移除。
每一轮的操作都是永久性的,可能会对前一轮和后一轮产生影响。
你需要返回你在所有回合中得分的总和。
示例 1:
输入: ["5","2","C","D",... | 17.25 | 67 | 0.589592 | Ginkgo-Biloba |
f8b5f363224aafce2447cb956d9a6a3f4838c93e | 2,192 | cpp | C++ | Extensions/ZilchShaders/CodeRangeMapping.cpp | RachelWilSingh/ZeroCore | e9a2f82d395e5c89fb98eceac44ce60d016dbff3 | [
"MIT"
] | 52 | 2018-09-11T17:18:35.000Z | 2022-03-13T15:28:21.000Z | Extensions/ZilchShaders/CodeRangeMapping.cpp | RachelWilSingh/ZeroCore | e9a2f82d395e5c89fb98eceac44ce60d016dbff3 | [
"MIT"
] | 1,409 | 2018-09-19T18:03:43.000Z | 2021-06-09T08:33:33.000Z | Extensions/ZilchShaders/CodeRangeMapping.cpp | RachelWilSingh/ZeroCore | e9a2f82d395e5c89fb98eceac44ce60d016dbff3 | [
"MIT"
] | 26 | 2018-09-11T17:16:32.000Z | 2021-11-22T06:21:19.000Z | ///////////////////////////////////////////////////////////////////////////////
///
/// Authors: Joshua Davis
/// Copyright 2015, DigiPen Institute of Technology
///
///////////////////////////////////////////////////////////////////////////////
#include "Precompiled.hpp"
namespace Zero
{
//---------------... | 29.621622 | 205 | 0.635036 | RachelWilSingh |
f8be55bece8a975d5d896358b1dff13a14fb954c | 715 | cpp | C++ | src/Shared/Utils/Observer.cpp | Marukyu/NecroEdit | 4b2380cc3417c6578476a213e05f4cbc846e5a77 | [
"MIT",
"Unlicense"
] | 13 | 2016-04-02T14:21:49.000Z | 2021-01-10T17:32:43.000Z | src/Shared/Utils/Observer.cpp | Marukyu/NecroEdit | 4b2380cc3417c6578476a213e05f4cbc846e5a77 | [
"MIT",
"Unlicense"
] | 24 | 2016-04-02T12:08:39.000Z | 2021-01-27T01:21:58.000Z | src/Shared/Utils/Observer.cpp | Marukyu/NecroEdit | 4b2380cc3417c6578476a213e05f4cbc846e5a77 | [
"MIT",
"Unlicense"
] | 6 | 2016-04-02T12:05:28.000Z | 2017-05-10T14:13:39.000Z | #include "Shared/Utils/Observer.hpp"
Observer::~Observer()
{
while (!mySubjects.empty())
{
(*mySubjects.begin())->removeObserver(this);
}
}
Observable::~Observable()
{
while (!myObservers.empty())
{
removeObserver(*myObservers.begin());
}
}
void Observable::addObserver(Observer* observer)
{
myObservers.in... | 16.25 | 54 | 0.723077 | Marukyu |
f8c05003e5ea6b242a520651c161b3c4edf0b049 | 98,404 | cpp | C++ | STrenD/TrendHeatmapWindow.cpp | RoysamLab/STrend | 1e8d84adfb28c0a2ea78d311daeac6afd04bc275 | [
"BSD-4-Clause-UC"
] | null | null | null | STrenD/TrendHeatmapWindow.cpp | RoysamLab/STrend | 1e8d84adfb28c0a2ea78d311daeac6afd04bc275 | [
"BSD-4-Clause-UC"
] | null | null | null | STrenD/TrendHeatmapWindow.cpp | RoysamLab/STrend | 1e8d84adfb28c0a2ea78d311daeac6afd04bc275 | [
"BSD-4-Clause-UC"
] | null | null | null | #include "TrendHeatmapWindow.h"
#define pi 3.1415926
#define POWER_PARAM 0.2
TrendHeatmapWindow::TrendHeatmapWindow(const QString title, QWidget *parent)
: QMainWindow(parent)
{
this->mainQTRenderWidget;
this->view = NULL;
this->theme = NULL;
this->graph_Layout = NULL;
this->aPlane = NULL;
this->cellData = NULL... | 30.399753 | 246 | 0.689606 | RoysamLab |
f8c183669d511351d46bb0da7553277ff7b2d98b | 2,009 | cpp | C++ | src/base/throw_lock_exception.cpp | CoSoSys/cppdevtk | 99d6c3d328c05a55dae54e82fcbedad93d0cfaa0 | [
"BSL-1.0",
"Apache-2.0"
] | null | null | null | src/base/throw_lock_exception.cpp | CoSoSys/cppdevtk | 99d6c3d328c05a55dae54e82fcbedad93d0cfaa0 | [
"BSL-1.0",
"Apache-2.0"
] | null | null | null | src/base/throw_lock_exception.cpp | CoSoSys/cppdevtk | 99d6c3d328c05a55dae54e82fcbedad93d0cfaa0 | [
"BSL-1.0",
"Apache-2.0"
] | null | null | null | /////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
/// \file
///
/// \copyright Copyright (C) 2015 - 2020 CoSoSys Ltd <info@cososys.com>\n
/// Licensed under the Apache License, Version 2.0 (the "License");\n
/// you may not use this file e... | 37.203704 | 126 | 0.628173 | CoSoSys |
f8c629278f4b2e121781e1e7350441168f9c06a1 | 1,025 | hpp | C++ | a21/eeprom.hpp | biappi/a21 | 6d008bebdbd6c51816ed61aa45664fa3b2715d9b | [
"MIT"
] | 6 | 2017-07-28T13:36:24.000Z | 2022-01-30T14:00:32.000Z | a21/eeprom.hpp | carkang/a21 | 8f472e75de5734514f152828033a93b88401069a | [
"MIT"
] | 3 | 2018-10-26T20:10:49.000Z | 2021-05-15T20:31:45.000Z | a21/eeprom.hpp | carkang/a21 | 8f472e75de5734514f152828033a93b88401069a | [
"MIT"
] | 2 | 2021-02-14T14:12:58.000Z | 2022-01-13T23:08:26.000Z | //
// a21 — Arduino Toolkit.
// Copyright (C) 2016-2018, Aleh Dzenisiuk. http://github.com/aleh/a21
//
#pragma once
#include "Arduino.h"
namespace a21 {
/**
* Digispark boards have no EEPROM library, so here is a simple one.
* TODO: something is wrong here, investigate
*/
class EEPROM {
public:
static ui... | 21.354167 | 98 | 0.620488 | biappi |
f8c6dc2c4a65dcfd565e941fc5cb749c49236333 | 1,135 | cc | C++ | color_01.cc | bellcorreia/learn-gl | c9be56b1a9b7da984b0d499df8b92fbe11e8a75c | [
"MIT"
] | 3 | 2022-01-04T01:23:25.000Z | 2022-01-04T01:28:45.000Z | color_01.cc | bellcorreia/learn-gl | c9be56b1a9b7da984b0d499df8b92fbe11e8a75c | [
"MIT"
] | null | null | null | color_01.cc | bellcorreia/learn-gl | c9be56b1a9b7da984b0d499df8b92fbe11e8a75c | [
"MIT"
] | null | null | null | /*
* Source code written by Gabriel Correia
*/
#include <iostream>
#include <GLFW/glfw3.h>
constexpr GLint WINDOW_WIDTH = 640, WINDOW_HEIGHT = 480;
static GLfloat current_colors[3];
int main (int argc, char **argv)
{
GLFWwindow *main_window;
glfwInit ();
/* Creating a window to render into it */
... | 22.254902 | 69 | 0.626432 | bellcorreia |
f8c7df245a2677f66e71e3f19d199835a45839c7 | 661 | cpp | C++ | codeforces/cf584 div2/B.cpp | songhn233/ACM_Steps | 6f2edeca9bf4fc999a8148bc90b2d8d0e59d48fe | [
"CC0-1.0"
] | 1 | 2020-08-10T21:40:21.000Z | 2020-08-10T21:40:21.000Z | codeforces/cf584 div2/B.cpp | songhn233/Algorithm-Packages | 56d6f3c2467c175ab8a19b82bdfb25fc881e2206 | [
"CC0-1.0"
] | null | null | null | codeforces/cf584 div2/B.cpp | songhn233/Algorithm-Packages | 56d6f3c2467c175ab8a19b82bdfb25fc881e2206 | [
"CC0-1.0"
] | null | null | null | #include<cstdio>
#include<algorithm>
#include<cstring>
#include<iostream>
#define ll long long
using namespace std;
const int inf=0x3f3f3f3f;
int n;
string s;
int a[110],b[110],c[110];
int p[10500];
int main()
{
int ans=0;
cin>>n;
cin>>s;
for(int i=1;i<=n;i++) cin>>a[i]>>b[i];
for(int i=0;i<s.size();i++) c[i+1]=s[... | 16.525 | 45 | 0.526475 | songhn233 |
f8c980368e2aee02760aeed67828c6e39659f62c | 1,478 | cpp | C++ | samples/snippets/cpp/VS_Snippets_CLR/DateTime.ToLocalTime ToUniversalTime/CPP/class1.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/DateTime.ToLocalTime ToUniversalTime/CPP/class1.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/DateTime.ToLocalTime ToUniversalTime/CPP/class1.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 | // <Snippet1>
using namespace System;
void main()
{
Console::WriteLine("Enter a date and time.");
String^ strDateTime = Console::ReadLine();
DateTime localDateTime, univDateTime;
try
{
localDateTime = DateTime::Parse(strDateTime);
univDateTime = localDateTime.ToUniversalTime();
... | 30.163265 | 82 | 0.610961 | hamarb123 |
f8d257f0360fde0eb66b77bd3c933a66cf52e0bb | 5,483 | hpp | C++ | tools/material_munge/src/terrain_materials_config.hpp | SleepKiller/shaderpatch | 4bda848df0273993c96f1d20a2cf79161088a77d | [
"MIT"
] | 13 | 2019-03-25T09:40:12.000Z | 2022-03-13T16:12:39.000Z | tools/material_munge/src/terrain_materials_config.hpp | SleepKiller/shaderpatch | 4bda848df0273993c96f1d20a2cf79161088a77d | [
"MIT"
] | 110 | 2018-10-16T09:05:43.000Z | 2022-03-16T23:32:28.000Z | tools/material_munge/src/terrain_materials_config.hpp | SleepKiller/swbfii-shaderpatch | b49ce3349d4dd09b19237ff4766652166ba1ffd4 | [
"MIT"
] | 1 | 2020-02-06T20:32:50.000Z | 2020-02-06T20:32:50.000Z | #pragma once
#include "glm_yaml_adapters.hpp"
#include <map>
#include <string>
#include <yaml-cpp/yaml.h>
namespace sp {
enum class Terrain_bumpmapping {
normal_mapping,
parallax_offset_mapping,
parallax_occlusion_mapping
};
enum class Terrain_blending { height, basic };
enum class Terrain_rendertype { n... | 33.03012 | 87 | 0.658216 | SleepKiller |
f8dae235fa90e0545ee41a44ec680b491ded08e2 | 1,248 | cpp | C++ | src/cheat.cpp | trademarks/OpenTTD | fd7fca73cf61a2960e8df8fa221b179d23ae3ef0 | [
"Unlicense"
] | 8 | 2016-10-21T09:01:43.000Z | 2021-05-31T06:32:14.000Z | src/cheat.cpp | blackberry/OpenTTD | fd7fca73cf61a2960e8df8fa221b179d23ae3ef0 | [
"Unlicense"
] | null | null | null | src/cheat.cpp | blackberry/OpenTTD | fd7fca73cf61a2960e8df8fa221b179d23ae3ef0 | [
"Unlicense"
] | 4 | 2017-05-16T00:15:58.000Z | 2020-08-06T01:46:31.000Z | /* $Id$ */
/*
* This file is part of OpenTTD.
* OpenTTD is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, version 2.
* OpenTTD is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without... | 31.2 | 185 | 0.717147 | trademarks |
f8e5ce73263ee7d6e7301d3ce396c89339d5b702 | 715 | cc | C++ | roommanager.cc | goon-3/roguekarako | 8f745564dec9f17050eaff1097e52ae720695dd6 | [
"BSD-3-Clause"
] | null | null | null | roommanager.cc | goon-3/roguekarako | 8f745564dec9f17050eaff1097e52ae720695dd6 | [
"BSD-3-Clause"
] | null | null | null | roommanager.cc | goon-3/roguekarako | 8f745564dec9f17050eaff1097e52ae720695dd6 | [
"BSD-3-Clause"
] | null | null | null | //See the LICENSE file for details
#include <SDL/SDL.h>
#include <list>
#include <iostream>
#include "roommanager.h"
#include "roomkarakovillage.h"
RoomManager::RoomManager(int roomnr)
{
switch(roomnr) {
case 0:{
_current = RoomKarakoVillage();
}
default:
_current = RoomKarakoVillage();
}
}
RoomManager::~Ro... | 15.212766 | 49 | 0.67972 | goon-3 |
25c82a565ae26ce2539e1bc6dabf955d252d5ca0 | 12,802 | cpp | C++ | include/PKAssets/PKAsset.cpp | konstatoivanen/PKAssetTools | be14601ae31df164147e4ed8b8674b6deb0dbcb6 | [
"MIT"
] | 2 | 2022-02-05T20:32:01.000Z | 2022-02-13T10:50:05.000Z | include/PKAssets/PKAsset.cpp | konstatoivanen/PKAssetTools | be14601ae31df164147e4ed8b8674b6deb0dbcb6 | [
"MIT"
] | 1 | 2022-02-01T07:04:31.000Z | 2022-02-02T14:46:44.000Z | PKRenderer/include/PKAssets/PKAsset.cpp | konstatoivanen/PKRenderer | 90a2856bf79a117d099981b63aef28331d085625 | [
"MIT"
] | null | null | null | #include "PKAsset.h"
#include <string>
namespace PK::Assets
{
PKElementType GetElementType(const char* string)
{
std::string format(string);
if (format == "half")
{
return PKElementType::Half;
}
if (format == "half2")
{
return PKElementT... | 30.264775 | 61 | 0.524606 | konstatoivanen |
25d7e7e6d3bfb9512f36ced7dd1dd7638413ec53 | 4,380 | cc | C++ | test/alog_test1.cc | hfuj13/alog | 5443a60ffafb0e9767710185257bb9c27711a452 | [
"MIT"
] | null | null | null | test/alog_test1.cc | hfuj13/alog | 5443a60ffafb0e9767710185257bb9c27711a452 | [
"MIT"
] | null | null | null | test/alog_test1.cc | hfuj13/alog | 5443a60ffafb0e9767710185257bb9c27711a452 | [
"MIT"
] | null | null | null | #include <thread>
#include "gtest/gtest.h"
#include "alog.hpp"
using namespace std;
using namespace hf;
TEST(alog, init)
{
// いきなり使っても落ちないことを確認
alog log;
log << "no print" << endl;
// ログレベル初期値を確認
alog::level_t expected = alog::SILENT;
alog::level_t actual = log.level();
ASSERT_EQ(expected, actual);
}
... | 22.931937 | 53 | 0.502055 | hfuj13 |
25db27c8066e2357b4822e97522b298de28413d2 | 2,943 | cpp | C++ | examples/profiling/primitive_instrumentation.cpp | rhecto1/phylanx | 524eb7f2497afc9b67c76059767dfb2e4b694a47 | [
"BSL-1.0"
] | null | null | null | examples/profiling/primitive_instrumentation.cpp | rhecto1/phylanx | 524eb7f2497afc9b67c76059767dfb2e4b694a47 | [
"BSL-1.0"
] | null | null | null | examples/profiling/primitive_instrumentation.cpp | rhecto1/phylanx | 524eb7f2497afc9b67c76059767dfb2e4b694a47 | [
"BSL-1.0"
] | null | null | null | // Copyright (c) 2018 Parsa Amini
// Copyright (c) 2018 Hartmut Kaiser
// Copyright (c) 2018 Shahrzad Shirzad
//
// 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/phylanx.hpp>
#include <hpx/hp... | 29.138614 | 80 | 0.545362 | rhecto1 |
25e4b5938abbf299ec0c5b11f33fc4daaca7ad92 | 260 | cpp | C++ | src/cpu/insts/Jnb.cpp | ammubhave/emu | ff9501719f3cc53207a8931d85c19d24c86dccdc | [
"MIT"
] | null | null | null | src/cpu/insts/Jnb.cpp | ammubhave/emu | ff9501719f3cc53207a8931d85c19d24c86dccdc | [
"MIT"
] | null | null | null | src/cpu/insts/Jnb.cpp | ammubhave/emu | ff9501719f3cc53207a8931d85c19d24c86dccdc | [
"MIT"
] | null | null | null | #include "gen/Jnb.h"
#include "cpu/Cpu.h"
#include "cpu/insts/Util.h"
namespace emu::cpu::insts {
template <typename Op1>
void Jnb<Op1>::execute(Cpu& cpu) {
Jcc(cpu, op1_, [&]() { return !CF; });
}
} // namespace emu::cpu::insts
#include "gen/Jnb.cpp"
| 16.25 | 40 | 0.630769 | ammubhave |
25e528d4f4c3222df65af774f958cfcc5078435b | 955 | hpp | C++ | shared/include/req_file_helpers.hpp | SleepKiller/shaderpatch | 4bda848df0273993c96f1d20a2cf79161088a77d | [
"MIT"
] | 13 | 2019-03-25T09:40:12.000Z | 2022-03-13T16:12:39.000Z | shared/include/req_file_helpers.hpp | SleepKiller/shaderpatch | 4bda848df0273993c96f1d20a2cf79161088a77d | [
"MIT"
] | 110 | 2018-10-16T09:05:43.000Z | 2022-03-16T23:32:28.000Z | shared/include/req_file_helpers.hpp | SleepKiller/swbfii-shaderpatch | b49ce3349d4dd09b19237ff4766652166ba1ffd4 | [
"MIT"
] | 1 | 2020-02-06T20:32:50.000Z | 2020-02-06T20:32:50.000Z | #pragma once
#include "small_function.hpp"
#include <filesystem>
#include <string>
#include <string_view>
#include <vector>
namespace sp {
auto parse_req_file(const std::filesystem::path& filepath,
std::string_view platform = "pc")
-> std::vector<std::pair<std::string, std::vector<std::string... | 28.939394 | 102 | 0.66178 | SleepKiller |
25e689abd7027ed8b9992ce185f8a21d61141482 | 1,854 | cpp | C++ | libs/file/test/test_file.cpp | sabel83/just | cfe90c1997a000cd88481f5ea9f21a75130a2170 | [
"BSL-1.0"
] | 6 | 2016-05-21T17:15:17.000Z | 2018-04-24T13:03:16.000Z | libs/file/test/test_file.cpp | sabel83/just | cfe90c1997a000cd88481f5ea9f21a75130a2170 | [
"BSL-1.0"
] | null | null | null | libs/file/test/test_file.cpp | sabel83/just | cfe90c1997a000cd88481f5ea9f21a75130a2170 | [
"BSL-1.0"
] | null | null | null | // Copyright Abel Sinkovics (abel@sinkovics.hu) 2016.
// 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 <just/file.hpp>
#include <just/temp.hpp>
#include <just/test.hpp>
using namespace just... | 19.515789 | 68 | 0.65534 | sabel83 |
25f438ca798ef4a0e3e06805444bf5f438796120 | 948 | hpp | C++ | SDK/ARKSurvivalEvolved_TributeTerminal_Base_classes.hpp | 2bite/ARK-SDK | c38ca9925309516b2093ad8c3a70ed9489e1d573 | [
"MIT"
] | 10 | 2020-02-17T19:08:46.000Z | 2021-07-31T11:07:19.000Z | SDK/ARKSurvivalEvolved_TributeTerminal_Base_classes.hpp | 2bite/ARK-SDK | c38ca9925309516b2093ad8c3a70ed9489e1d573 | [
"MIT"
] | 9 | 2020-02-17T18:15:41.000Z | 2021-06-06T19:17:34.000Z | SDK/ARKSurvivalEvolved_TributeTerminal_Base_classes.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_TributeTerminal_Base_structs.hpp"
namespace sdk
{
//---------------------------------------------------------------------------
//Classes
//----------------------------------------------------... | 22.571429 | 110 | 0.665612 | 2bite |
25f668a08167d717905198f842e1b149ffcfa341 | 66,900 | cpp | C++ | lemu/tests/lconst_test.cpp | jsg831/livehd | 6a3fb84a8db2bdc3460bb391f82a796fef83d13b | [
"BSD-3-Clause"
] | 115 | 2019-09-28T13:39:41.000Z | 2022-03-24T11:08:53.000Z | lemu/tests/lconst_test.cpp | jsg831/livehd | 6a3fb84a8db2bdc3460bb391f82a796fef83d13b | [
"BSD-3-Clause"
] | 113 | 2019-10-08T23:51:29.000Z | 2021-12-12T06:47:38.000Z | lemu/tests/lconst_test.cpp | jsg831/livehd | 6a3fb84a8db2bdc3460bb391f82a796fef83d13b | [
"BSD-3-Clause"
] | 44 | 2019-09-28T07:53:21.000Z | 2022-02-13T23:21:12.000Z |
#include "lconst.hpp"
#include <cassert>
#include <functional>
#include <iomanip>
#include <iostream>
#include <iterator>
#include <vector>
#include "fmt/format.h"
#include "gtest/gtest.h"
#include "lbench.hpp"
#include "lrand.hpp"
#include "mmap_map.hpp"
#include "sint.hpp"
#include "uint.hpp"
/*
uint and sint ... | 37.968218 | 151 | 0.659955 | jsg831 |
25f671b1e42af154aa02b73a0b0d06059df26724 | 8,439 | cpp | C++ | case-studies/PoDoFo/podofo/cib/podofo/doc/PdfSignOutputDevice.h.cpp | satya-das/cib | 369333ea58b0530b8789a340e21096ba7d159d0e | [
"MIT"
] | 30 | 2018-03-05T17:35:29.000Z | 2022-03-17T18:59:34.000Z | case-studies/PoDoFo/podofo/cib/podofo/doc/PdfSignOutputDevice.h.cpp | satya-das/cib | 369333ea58b0530b8789a340e21096ba7d159d0e | [
"MIT"
] | 2 | 2016-05-26T04:47:13.000Z | 2019-02-15T05:17:43.000Z | case-studies/PoDoFo/podofo/cib/podofo/doc/PdfSignOutputDevice.h.cpp | satya-das/cib | 369333ea58b0530b8789a340e21096ba7d159d0e | [
"MIT"
] | 5 | 2019-02-15T05:09:22.000Z | 2021-04-14T12:10:16.000Z | #include "podofo/base/PdfData.h"
#include "podofo/base/PdfOutputDevice.h"
#include "podofo/doc/PdfSignOutputDevice.h"
#include "__zz_cib_CibPoDoFo-class-down-cast.h"
#include "__zz_cib_CibPoDoFo-delegate-helper.h"
#include "__zz_cib_CibPoDoFo-generic.h"
#include "__zz_cib_CibPoDoFo-ids.h"
#include "__zz_cib_CibPoDoFo-... | 57.408163 | 172 | 0.792748 | satya-das |
25fe59ddff0adb240ab78ee57e5b7a8b7427c200 | 40,960 | cpp | C++ | src/modules/processes/PixelMath/PixelMathInterface.cpp | fmeschia/pixinsight-class-library | 11b956e27d6eee3e119a7b1c337d090d7a03f436 | [
"JasPer-2.0",
"libtiff"
] | null | null | null | src/modules/processes/PixelMath/PixelMathInterface.cpp | fmeschia/pixinsight-class-library | 11b956e27d6eee3e119a7b1c337d090d7a03f436 | [
"JasPer-2.0",
"libtiff"
] | null | null | null | src/modules/processes/PixelMath/PixelMathInterface.cpp | fmeschia/pixinsight-class-library | 11b956e27d6eee3e119a7b1c337d090d7a03f436 | [
"JasPer-2.0",
"libtiff"
] | null | null | null | // ____ ______ __
// / __ \ / ____// /
// / /_/ // / / /
// / ____// /___ / /___ PixInsight Class Library
// /_/ \____//_____/ PCL 2.4.9
// ----------------------------------------------------------------------------
// Standard PixelMath Process Module Version 1.8.1
// --------------------------... | 40.394477 | 140 | 0.679858 | fmeschia |
d30093b03fff2c442567370546d8f79044540cd9 | 10,991 | cpp | C++ | impl/gamelib/level.cpp | runvs/Alakajam14 | 28ad5839dae9d26782f22f7d18e2dff42f4c0d1f | [
"CC0-1.0"
] | null | null | null | impl/gamelib/level.cpp | runvs/Alakajam14 | 28ad5839dae9d26782f22f7d18e2dff42f4c0d1f | [
"CC0-1.0"
] | null | null | null | impl/gamelib/level.cpp | runvs/Alakajam14 | 28ad5839dae9d26782f22f7d18e2dff42f4c0d1f | [
"CC0-1.0"
] | null | null | null | #include "level.hpp"
#include "dialog/dialog_serializer.hpp"
#include "enemies/enemy_serialization.hpp"
#include "game_interface.hpp"
#include "game_properties.hpp"
#include "guile.hpp"
#include "nlohmann.hpp"
#include "pathfinder/pathfinder.hpp"
#include "strutils.hpp"
#include "tilemap/node_layer.hpp"
#include "tilem... | 33.714724 | 98 | 0.689564 | runvs |
d3034982b3ad966046d0cf3dfc55ca84f55a7413 | 874 | cpp | C++ | Codeforces/1005A_Tanya and Stairways.cpp | lieahau/Online-Judge-Solution | 26d81d1783cbdd9294455f00b77fb3dbaedd0c01 | [
"MIT"
] | 1 | 2020-04-13T11:12:19.000Z | 2020-04-13T11:12:19.000Z | Codeforces/1005A_Tanya and Stairways.cpp | lieahau/Online-Judge-Solution | 26d81d1783cbdd9294455f00b77fb3dbaedd0c01 | [
"MIT"
] | null | null | null | Codeforces/1005A_Tanya and Stairways.cpp | lieahau/Online-Judge-Solution | 26d81d1783cbdd9294455f00b77fb3dbaedd0c01 | [
"MIT"
] | null | null | null | /*
People who don't work hard
don't have the right
to be envious of the people with talent.
People fail because
they don't understand
the hard work necessary to be successful.
*/
#include <bits/stdc++.h>
using namespace std;
int n, arr[1007], total;
vector<int> ans;
int main(... | 18.595745 | 46 | 0.44508 | lieahau |
d305fcafcaf30719fa92302b617b05d4bd433503 | 2,620 | hpp | C++ | hpx/util/logging/detail/raw_doc/namespace_concepts.hpp | Titzi90/hpx | 150fb0de1cfe40c26a722918097199147957b45c | [
"BSL-1.0"
] | null | null | null | hpx/util/logging/detail/raw_doc/namespace_concepts.hpp | Titzi90/hpx | 150fb0de1cfe40c26a722918097199147957b45c | [
"BSL-1.0"
] | null | null | null | hpx/util/logging/detail/raw_doc/namespace_concepts.hpp | Titzi90/hpx | 150fb0de1cfe40c26a722918097199147957b45c | [
"BSL-1.0"
] | null | null | null | // Boost Logging library
//
// Author: John Torjo, www.torjo.com
//
// Copyright (C) 2007 John Torjo (see www.torjo.com for email)
//
// 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)
//
// See http://w... | 38.529412 | 138 | 0.758397 | Titzi90 |
d309e838dfc29a7bcf2726c9b022b3a176384e5e | 1,058 | cpp | C++ | Mesh.cpp | refik-karic/ZSharp | 643d4d7603e91d5b9150bf8ddfed8b1eab930b92 | [
"MIT"
] | null | null | null | Mesh.cpp | refik-karic/ZSharp | 643d4d7603e91d5b9150bf8ddfed8b1eab930b92 | [
"MIT"
] | null | null | null | Mesh.cpp | refik-karic/ZSharp | 643d4d7603e91d5b9150bf8ddfed8b1eab930b92 | [
"MIT"
] | null | null | null | #include "Mesh.h"
#include "UtilMath.h"
#include <cstring>
namespace ZSharp {
Mesh::Mesh() {
}
Mesh::Mesh(size_t numVerts, size_t stride, size_t numTriangleFaces) :
mStride(stride) {
mVertTable.Resize(numVerts);
mTriangleFaceTable.Resize(numTriangleFaces);
}
Mesh::Mesh(const Mesh& copy) {
*this = copy;
}
... | 20.346154 | 79 | 0.73913 | refik-karic |
d30f89346ef520782d61df00a575e065f5245433 | 708 | hpp | C++ | lib/libcpp/Solvers/Solvers/model.hpp | beckerrh/simfemsrc | d857eb6f6f8627412d4f9d89a871834c756537db | [
"MIT"
] | null | null | null | lib/libcpp/Solvers/Solvers/model.hpp | beckerrh/simfemsrc | d857eb6f6f8627412d4f9d89a871834c756537db | [
"MIT"
] | 1 | 2019-01-31T10:59:11.000Z | 2019-01-31T10:59:11.000Z | lib/libcpp/Solvers/Solvers/model.hpp | beckerrh/simfemsrc | d857eb6f6f8627412d4f9d89a871834c756537db | [
"MIT"
] | null | null | null | #ifndef __Solvers_Model_hpp
#define __Solvers_Model_hpp
#include "modelinterface.hpp"
/*--------------------------------------------------------------------------*/
namespace solvers
{
class Model : public ModelInterface
{
protected:
public:
~Model();
Model();
Model( const Model& model);
Mode... | 26.222222 | 94 | 0.539548 | beckerrh |
d312f66bffa4fdefcc24ceff1d7ef11d29d6b6c5 | 3,363 | cpp | C++ | Photon Engine/Model.cpp | DeryabinIvan/Photon-Engine | b256486b4a6d92a5dce49b07e53c318b89aa3e71 | [
"MIT"
] | 1 | 2018-07-06T12:30:33.000Z | 2018-07-06T12:30:33.000Z | Photon Engine/Model.cpp | DeryabinIvan/Photon-Engine | b256486b4a6d92a5dce49b07e53c318b89aa3e71 | [
"MIT"
] | 3 | 2021-06-17T18:08:26.000Z | 2021-09-07T07:48:15.000Z | Photon Engine/Model.cpp | DeryabinIvan/Photon-Engine | b256486b4a6d92a5dce49b07e53c318b89aa3e71 | [
"MIT"
] | null | null | null | #include "Model.h"
#include "GLEW/glew.h"
#include "GLM/glm.hpp"
#include "GLM/gtc/matrix_transform.hpp"
namespace ph_engine {
Model::Model(){
}
Model::~Model(){
//TODO: AssImp unload
}
void Model::draw(ShaderProgram& program) {
for (int i = 0; i < meshes.size(); i++)
meshes[i].draw(pr... | 27.120968 | 114 | 0.626524 | DeryabinIvan |
d3190296515cab5c7d33357ca523486066171216 | 140 | cpp | C++ | inputs/condition.cpp | sparklingyo/compilers-final-project | 2538756af945750f552529856a22623716b13d44 | [
"MIT"
] | null | null | null | inputs/condition.cpp | sparklingyo/compilers-final-project | 2538756af945750f552529856a22623716b13d44 | [
"MIT"
] | null | null | null | inputs/condition.cpp | sparklingyo/compilers-final-project | 2538756af945750f552529856a22623716b13d44 | [
"MIT"
] | 2 | 2019-12-15T00:17:07.000Z | 2020-08-14T19:35:12.000Z | int main(){
int a = 1;
int b = 2;
int c;
if (b > a) {
c = b;
}
else {
c = a;
}
return c;
} | 10 | 16 | 0.285714 | sparklingyo |
d31b24145fe86a102e259aae1e9cb57bd9505097 | 558 | cpp | C++ | src/NovelRT/Experimental/Graphics/GraphicsPipelineResource.cpp | Exadon/NovelRT | 82000a25fd53157b26a6e6d6c71cbee0ebaa241b | [
"MIT"
] | 167 | 2019-02-12T14:12:04.000Z | 2022-03-25T17:14:24.000Z | src/NovelRT/Experimental/Graphics/GraphicsPipelineResource.cpp | BanalityOfSeeking/NovelRT | bbbe54f719acdc2fcee4604ee90fb43ff975aee9 | [
"MIT"
] | 270 | 2019-02-14T20:33:05.000Z | 2022-03-08T02:28:20.000Z | src/NovelRT/Experimental/Graphics/GraphicsPipelineResource.cpp | BanalityOfSeeking/NovelRT | bbbe54f719acdc2fcee4604ee90fb43ff975aee9 | [
"MIT"
] | 56 | 2019-08-22T15:57:00.000Z | 2022-03-03T19:52:18.000Z | // Copyright © Matt Jones and Contributors. Licensed under the MIT Licence (MIT). See LICENCE.md in the repository root
// for more information.
#include <NovelRT/Experimental/Graphics/Graphics.h>
namespace NovelRT::Experimental::Graphics
{
GraphicsPipelineResourceKind Graphics::GraphicsPipelineResource::GetKind... | 29.368421 | 119 | 0.752688 | Exadon |
d31b38df9d8fbd911dabf899e296e3fab6878048 | 426 | cpp | C++ | RiverAttack/Drawer.cpp | leonardola/RiverAttack | 511e8e8888b0fd96fa26a01289bd811a39dc5a8b | [
"MIT"
] | null | null | null | RiverAttack/Drawer.cpp | leonardola/RiverAttack | 511e8e8888b0fd96fa26a01289bd811a39dc5a8b | [
"MIT"
] | null | null | null | RiverAttack/Drawer.cpp | leonardola/RiverAttack | 511e8e8888b0fd96fa26a01289bd811a39dc5a8b | [
"MIT"
] | null | null | null | #include "Drawer.h"
Drawer::Drawer(int windowHeight, int windowWidth){
this->windowHeight = windowHeight;
this->startingPosition = -windowHeight/2;
this->mapBlocks[0]->get
}
void Drawer::createBaseMap(int windowHeight, int windowWidth){
for(int i = 0; i < 10; i++){
this->mapBlocks[i] = new Blocks(windowHei... | 12.171429 | 62 | 0.690141 | leonardola |
d31c21a47cca852d64579392e987ccfc18690fb7 | 55 | cpp | C++ | modules/electron/system-part1/src/export_socket_hal.cpp | zsoltmazlo/indoor-controller2 | 5fde9f40b30d087af03f6cccdb97821719941955 | [
"MIT"
] | 1 | 2019-02-24T07:13:51.000Z | 2019-02-24T07:13:51.000Z | modules/electron/system-part1/src/export_socket_hal.cpp | zsoltmazlo/indoor-controller2 | 5fde9f40b30d087af03f6cccdb97821719941955 | [
"MIT"
] | 1 | 2018-05-29T19:27:53.000Z | 2018-05-29T19:27:53.000Z | modules/electron/system-part1/src/export_socket_hal.cpp | zsoltmazlo/indoor-controller2 | 5fde9f40b30d087af03f6cccdb97821719941955 | [
"MIT"
] | null | null | null | #define DYNALIB_EXPORT
#include "hal_dynalib_socket.h"
| 18.333333 | 31 | 0.836364 | zsoltmazlo |
d3268f371126b8a9b4ef6bffc7bcaca84e8f82f1 | 1,162 | cpp | C++ | binary search/firstAndLastPosition.cpp | Gooner1886/DSA-101 | 44092e10ad39bebbf7da93e897927106d5a45ae7 | [
"MIT"
] | 20 | 2022-01-04T19:36:14.000Z | 2022-03-21T15:35:09.000Z | binary search/firstAndLastPosition.cpp | Gooner1886/DSA-101 | 44092e10ad39bebbf7da93e897927106d5a45ae7 | [
"MIT"
] | null | null | null | binary search/firstAndLastPosition.cpp | Gooner1886/DSA-101 | 44092e10ad39bebbf7da93e897927106d5a45ae7 | [
"MIT"
] | null | null | null | // Leetcode - 34 - Find First and Last Position of Element in Sorted Array
vector<int> searchRange(vector<int> &nums, int target)
{
vector<int> result(2);
result[0] = findStartIndex(nums, target);
result[1] = findEndIndex(nums, target);
return result;
}
int findStartIndex(vector<int> &nums, int target)... | 20.385965 | 74 | 0.457831 | Gooner1886 |
d330e85084822b6f1fa5573c84a797a247a3989b | 1,223 | cpp | C++ | src/game/Asteroid.cpp | MuniuDev/SpaceRush | 5a32ae5ca0ddcc3682a63ef0c0f3c534b921ce36 | [
"MIT"
] | null | null | null | src/game/Asteroid.cpp | MuniuDev/SpaceRush | 5a32ae5ca0ddcc3682a63ef0c0f3c534b921ce36 | [
"MIT"
] | null | null | null | src/game/Asteroid.cpp | MuniuDev/SpaceRush | 5a32ae5ca0ddcc3682a63ef0c0f3c534b921ce36 | [
"MIT"
] | null | null | null | #include "game/Asteroid.hpp"
#include "rendering/MeshFactory.hpp"
#include <cmath>
static const float kScale = 0.3f;
static const float kAsteroidMass = 10.0f;
Asteroid::Asteroid(const glm::vec3& pos, const glm::vec3& scale,
const glm::vec3& speed, const glm::vec3& rotSpeed) {
m_pos = pos;
m_sp... | 29.829268 | 79 | 0.639411 | MuniuDev |
d337ac107753f37fce256b12433bf43743028f81 | 53,642 | cpp | C++ | apps/hubo-ik-gui.cpp | mxgrey/protoHuboGUI | 3384c5e40c544bd472199da9cd6e90e28321a77f | [
"BSD-2-Clause"
] | null | null | null | apps/hubo-ik-gui.cpp | mxgrey/protoHuboGUI | 3384c5e40c544bd472199da9cd6e90e28321a77f | [
"BSD-2-Clause"
] | null | null | null | apps/hubo-ik-gui.cpp | mxgrey/protoHuboGUI | 3384c5e40c544bd472199da9cd6e90e28321a77f | [
"BSD-2-Clause"
] | null | null | null | /*
* Copyright (c) 2015, Georgia Tech Research Corporation
* All rights reserved.
*
* Author(s): Michael X. Grey <mxgrey@gatech.edu>
*
* Georgia Tech Graphics Lab and Humanoid Robotics Lab
*
* Directed by Prof. C. Karen Liu and Prof. Mike Stilman
* <karenliu@cc.gatech.edu> <mstilman@cc.gatech.edu>
*
* This f... | 28.367002 | 121 | 0.618023 | mxgrey |
d33a33240d8a178417fd46bada7263e30639b3bd | 12,320 | cpp | C++ | OldCode/CameraController - GenlCam.cpp | merfii/Slurry | 92b23ea2b764252fc90c2af741debdffb9a96106 | [
"MIT"
] | 4 | 2019-12-04T02:56:35.000Z | 2022-01-05T14:14:37.000Z | OldCode/CameraController - GenlCam.cpp | merfii/Slurry | 92b23ea2b764252fc90c2af741debdffb9a96106 | [
"MIT"
] | null | null | null | OldCode/CameraController - GenlCam.cpp | merfii/Slurry | 92b23ea2b764252fc90c2af741debdffb9a96106 | [
"MIT"
] | 2 | 2018-11-06T03:54:00.000Z | 2018-12-06T12:13:30.000Z | #pragma execution_character_set("utf-8")
#include "GlobalShared.h"
#include "CameraController.h"
//Settings for using Basler GigE cameras.
#include <pylon/PylonIncludes.h>
//#include <pylon/PylonGUI.h>
#include <pylon/gige/BaslerGigEInstantCamera.h>
#include <pylon/gige/BaslerGigEDeviceInfo.h>
typedef Pylon::CBasl... | 24.109589 | 121 | 0.701786 | merfii |
d33f8a44195f340f977f41dd7706425d5f71dfbd | 9,105 | cpp | C++ | third_party/openal-soft/alc/bsinc_tables.cpp | hporro/grafica_cpp | 1427bb6e8926b44be474b906e9f52cca77b3df9d | [
"MIT"
] | 2 | 2022-03-05T02:46:22.000Z | 2022-03-05T03:04:20.000Z | third_party/openal-soft/alc/bsinc_tables.cpp | hporro/grafica_cpp | 1427bb6e8926b44be474b906e9f52cca77b3df9d | [
"MIT"
] | null | null | null | third_party/openal-soft/alc/bsinc_tables.cpp | hporro/grafica_cpp | 1427bb6e8926b44be474b906e9f52cca77b3df9d | [
"MIT"
] | 4 | 2021-09-06T20:44:47.000Z | 2021-10-04T22:05:12.000Z |
#include "bsinc_tables.h"
#include <algorithm>
#include <array>
#include <cassert>
#include <cmath>
#include <limits>
#include <memory>
#include <stdexcept>
#include "math_defs.h"
#include "vector.h"
namespace {
/* The max points includes the doubling for downsampling, so the maximum number
* of base sample poin... | 31.50519 | 97 | 0.577924 | hporro |
d34c7917525df38039e1a69a08689de9bd8e14a8 | 299 | cpp | C++ | C语言程序设计基础/24.【中学】找出最大素数.cpp | xiabee/BIT-CS | 5d8d8331e6b9588773991a872c259e430ef1eae1 | [
"Apache-2.0"
] | 63 | 2021-01-10T02:32:17.000Z | 2022-03-30T04:08:38.000Z | C语言程序设计基础/24.【中学】找出最大素数.cpp | xiabee/BIT-CS | 5d8d8331e6b9588773991a872c259e430ef1eae1 | [
"Apache-2.0"
] | 2 | 2021-06-09T05:38:58.000Z | 2021-12-14T13:53:54.000Z | C语言程序设计基础/24.【中学】找出最大素数.cpp | xiabee/BIT-CS | 5d8d8331e6b9588773991a872c259e430ef1eae1 | [
"Apache-2.0"
] | 20 | 2021-01-12T11:49:36.000Z | 2022-03-26T11:04:58.000Z | #include <stdio.h>
int is_sushu(int n)
{
int i;
for ( i = 2; i*i <= n; i++)
if (n % i == 0) return 0;
if (i*i > n) return 1;
}
int main()
{
int n;
scanf ("%d", &n);
for (; n >= 0; n--)
{
if ( is_sushu(n) == 1)
{
printf ("The max prime number is %d.\n", n);
break;
}
}
} | 13.590909 | 47 | 0.448161 | xiabee |
d3578be326b1fd5095191108bfe615b4a133cbec | 842 | cpp | C++ | AdvancedCpp/StacksAndQueues/src/main.cpp | SebastianTirado/Cpp-Learning-Archive | fb83379d0cc3f9b2390cef00119464ec946753f4 | [
"MIT"
] | 19 | 2019-09-15T12:23:51.000Z | 2020-06-18T08:31:26.000Z | AdvancedCpp/StacksAndQueues/src/main.cpp | SebastianTirado/Cpp-Learning-Archive | fb83379d0cc3f9b2390cef00119464ec946753f4 | [
"MIT"
] | 15 | 2021-12-07T06:46:03.000Z | 2022-01-31T07:55:32.000Z | AdvancedCpp/StacksAndQueues/src/main.cpp | SebastianTirado/Cpp-Learning-Archive | fb83379d0cc3f9b2390cef00119464ec946753f4 | [
"MIT"
] | 13 | 2019-06-29T02:58:27.000Z | 2020-05-07T08:52:22.000Z | #include <iostream>
#include <string>
#include <stack>
#include <queue>
using namespace std;
class Test
{
string name;
public:
explicit Test(string name) : name(name)
{
}
~Test()
{
}
void print() const
{
cout << name << endl;
}
};
int main(int argc, char const *argv[])
{
//LIFO
stack<Test> test... | 12.953846 | 40 | 0.624703 | SebastianTirado |
d35c3d9a0a0767dccb5c2102fa6638f166482347 | 6,748 | cpp | C++ | Source/Ilum/Renderer/RenderPass/Shading/Deferred/MeshPass.cpp | Chaf-Libraries/Ilum | 83d0b7d4f2ba6cc3ba586f5442a09d55b69aedf8 | [
"MIT"
] | 11 | 2022-01-09T05:32:56.000Z | 2022-03-28T06:35:16.000Z | Source/Ilum/Renderer/RenderPass/Shading/Deferred/MeshPass.cpp | Chaf-Libraries/Ilum | 83d0b7d4f2ba6cc3ba586f5442a09d55b69aedf8 | [
"MIT"
] | null | null | null | Source/Ilum/Renderer/RenderPass/Shading/Deferred/MeshPass.cpp | Chaf-Libraries/Ilum | 83d0b7d4f2ba6cc3ba586f5442a09d55b69aedf8 | [
"MIT"
] | 1 | 2021-11-20T15:39:03.000Z | 2021-11-20T15:39:03.000Z | #include "MeshPass.hpp"
#include "Renderer/Renderer.hpp"
#include <imgui.h>
namespace Ilum::pass
{
MeshPass::MeshPass(bool jitter):
m_jitter(jitter)
{
}
void MeshPass::setupPipeline(PipelineState &state)
{
std::vector<std::string> macros;
if (m_jitter)
{
macros.push_back("USE_JITTER");
}
state.shader.lo... | 52.310078 | 193 | 0.783491 | Chaf-Libraries |
d35e146e39b63c0929e92cdc048d3c8d28bbf1a4 | 15,443 | cc | C++ | trader-desk/chart.cc | HitHub1991/-dmbcs-trader-desk | 365ad5a560564220398ba8ab4b900eb1ca26c8cd | [
"FSFAP"
] | 6 | 2020-03-23T12:32:32.000Z | 2022-01-02T22:17:12.000Z | trader-desk/chart.cc | HitHub1991/-dmbcs-trader-desk | 365ad5a560564220398ba8ab4b900eb1ca26c8cd | [
"FSFAP"
] | null | null | null | trader-desk/chart.cc | HitHub1991/-dmbcs-trader-desk | 365ad5a560564220398ba8ab4b900eb1ca26c8cd | [
"FSFAP"
] | 1 | 2022-02-27T19:07:50.000Z | 2022-02-27T19:07:50.000Z | /*
* Copyright (c) 2017, 2020 Dale Mellor
*
* This file is part of the trader-desk package.
*
* The trader-desk package is free software: you can redistribute it
* and/or modify it under the terms of the GNU General Public License as
* published by the Free Software Foundation, either version 3 of the
* L... | 31.907025 | 79 | 0.502364 | HitHub1991 |
d35ff97428c38b8c54774a3b9d974c990bb83677 | 747 | hpp | C++ | inc/SceneObjects/Plateau.hpp | KPO-2020-2021/zad5_2-delipl | b4bd2e673c8b7e92e85aed10919427a6704353ca | [
"Unlicense"
] | 1 | 2022-03-08T03:16:48.000Z | 2022-03-08T03:16:48.000Z | inc/SceneObjects/Plateau.hpp | KPO-2020-2021/zad5_2-delipl | b4bd2e673c8b7e92e85aed10919427a6704353ca | [
"Unlicense"
] | null | null | null | inc/SceneObjects/Plateau.hpp | KPO-2020-2021/zad5_2-delipl | b4bd2e673c8b7e92e85aed10919427a6704353ca | [
"Unlicense"
] | null | null | null | /**
* @file Plateau.hpp
* @author Delicat Jakub (delicat.kuba@gmail.com)
* @brief File describes obstacle like Plateau class
* @version 0.1
* @date 2021-06-24
*
* @copyright Copyright (c) 2021
*
*/
#ifndef PLATEAU_HPP
#define PLATEAU_HPP
#include "Cuboid.hpp"
/**
* @brief Plateau obstacle
*
*/
class Pla... | 20.189189 | 139 | 0.643909 | KPO-2020-2021 |
d362c50a81c7d34d9a2aab11c8e989aeb3fc2355 | 1,055 | cc | C++ | modules/ugdk-core/src/time/timeaccumulator.cc | uspgamedev/ugdk | 95885a70df282a8e8e6e5c72b28a7f2f21bf7e99 | [
"Zlib"
] | 11 | 2015-03-06T13:14:32.000Z | 2020-06-09T23:34:28.000Z | modules/ugdk-core/src/time/timeaccumulator.cc | uspgamedev/ugdk | 95885a70df282a8e8e6e5c72b28a7f2f21bf7e99 | [
"Zlib"
] | 62 | 2015-01-04T05:47:40.000Z | 2018-06-15T17:00:25.000Z | modules/ugdk-core/src/time/timeaccumulator.cc | uspgamedev/ugdk | 95885a70df282a8e8e6e5c72b28a7f2f21bf7e99 | [
"Zlib"
] | 2 | 2017-04-05T20:35:49.000Z | 2017-07-30T03:44:02.000Z | #include <ugdk/time/timeaccumulator.h>
#include "SDL.h"
#include "SDL_timer.h"
#include <ugdk/time/module.h>
namespace ugdk {
namespace time {
TimeAccumulator::TimeAccumulator(int duration_miliseconds) {
Restart(duration_miliseconds);
}
int TimeAccumulator::TimeLeft() {
return duration_ - (manager().TimeSi... | 19.90566 | 75 | 0.686256 | uspgamedev |
d3641e25f8c24bf81589940c825c3aa53256ed88 | 2,456 | cpp | C++ | src/main.cpp | TheDoctor314/tetris | 43875a617e263e8ab727405b7d38a6d11db1510d | [
"Unlicense"
] | null | null | null | src/main.cpp | TheDoctor314/tetris | 43875a617e263e8ab727405b7d38a6d11db1510d | [
"Unlicense"
] | null | null | null | src/main.cpp | TheDoctor314/tetris | 43875a617e263e8ab727405b7d38a6d11db1510d | [
"Unlicense"
] | null | null | null | #include <SFML/Graphics.hpp>
#include <chrono>
#include "game.hpp"
#include "grid.hpp"
#include "input.hpp"
#include "tetromino.hpp"
using namespace tetris;
void draw_grid(const GameGrid &grid, sf::RenderWindow &window,
sf::Shape &shape);
void draw_game_over(sf::RenderWindow &window, sf::Font &font);... | 26.408602 | 80 | 0.532166 | TheDoctor314 |
d36691306ef5b9f2489b71badaa8d37eeeda3678 | 3,749 | cpp | C++ | cg/src/graph/SceneObjectBuilder.cpp | MachSilva/Ds | a7da3d4ca3b00b19884bc64d9d7baefea809cb3d | [
"Zlib"
] | 2 | 2021-11-23T18:36:51.000Z | 2021-11-24T19:38:25.000Z | cg/src/graph/SceneObjectBuilder.cpp | MachSilva/Ds | a7da3d4ca3b00b19884bc64d9d7baefea809cb3d | [
"Zlib"
] | 1 | 2022-02-12T20:47:59.000Z | 2022-03-17T02:03:25.000Z | cg/src/graph/SceneObjectBuilder.cpp | MachSilva/Ds | a7da3d4ca3b00b19884bc64d9d7baefea809cb3d | [
"Zlib"
] | 1 | 2022-02-12T22:31:50.000Z | 2022-02-12T22:31:50.000Z | //[]---------------------------------------------------------------[]
//| |
//| Copyright (C) 2022 Paulo Pagliosa. |
//| |
//| This software is provided 'as-is', w... | 30.729508 | 73 | 0.552681 | MachSilva |
d3687c6c7fbd00aed4d9e1675e8efd823a2eb8d3 | 1,280 | hpp | C++ | include/MtlMaterial.hpp | andreasbank/MtlReader | 3f3b71dce520eaaab3bebbbf071ad85d6ff66479 | [
"MIT"
] | null | null | null | include/MtlMaterial.hpp | andreasbank/MtlReader | 3f3b71dce520eaaab3bebbbf071ad85d6ff66479 | [
"MIT"
] | null | null | null | include/MtlMaterial.hpp | andreasbank/MtlReader | 3f3b71dce520eaaab3bebbbf071ad85d6ff66479 | [
"MIT"
] | null | null | null | /**
* @copyright 2017 Andreas Bank, andreas.mikael.bank@gmail.com
*/
#ifndef MTLMATERIAL_HPP
#define MTLMATERIAL_HPP
#include <string>
#include "MtlMap.hpp"
class MtlObject;
struct MtlColor {
float red, green, blue;
};
class MtlMaterial {
public:
MtlMaterial(const std::string& matName = std::string());
vo... | 29.767442 | 81 | 0.691406 | andreasbank |
d36ab9f0209b2d1d352471056ac2b4d9f7d1abe8 | 36 | cc | C++ | chapter-11/11.3.cc | hongmi/cpp-primer-4-exercises | 98ddb98b41d457a1caa525d246dfb7453be0c8d2 | [
"MIT"
] | 1 | 2017-04-01T06:57:30.000Z | 2017-04-01T06:57:30.000Z | chapter-11/11.3.cc | hongmi/cpp-primer-4-exercises | 98ddb98b41d457a1caa525d246dfb7453be0c8d2 | [
"MIT"
] | null | null | null | chapter-11/11.3.cc | hongmi/cpp-primer-4-exercises | 98ddb98b41d457a1caa525d246dfb7453be0c8d2 | [
"MIT"
] | null | null | null | accumulate(vi.begin(), vi.end(), 0)
| 18 | 35 | 0.638889 | hongmi |
d36e4ca5f98caa992757e1e17c3db5e5da87c34f | 2,097 | cpp | C++ | src/modules/Eluna/GroupHooks.cpp | muscnx/Mangos021SD2 | 695bb6a4822bb9173ab8e9077cb6259869ca2f32 | [
"PostgreSQL",
"Zlib",
"OpenSSL"
] | null | null | null | src/modules/Eluna/GroupHooks.cpp | muscnx/Mangos021SD2 | 695bb6a4822bb9173ab8e9077cb6259869ca2f32 | [
"PostgreSQL",
"Zlib",
"OpenSSL"
] | null | null | null | src/modules/Eluna/GroupHooks.cpp | muscnx/Mangos021SD2 | 695bb6a4822bb9173ab8e9077cb6259869ca2f32 | [
"PostgreSQL",
"Zlib",
"OpenSSL"
] | null | null | null | /*
* Copyright (C) 2010 - 2015 Eluna Lua Engine <http://emudevs.com/>
* This program is free software licensed under GPL version 3
* Please see the included DOCS/LICENSE.md for more information
*/
#ifndef _GROUP_HOOKS_H
#define _GROUP_HOOKS_H
#include "Hooks.h"
#include "HookHelpers.h"
#include "LuaEngine.h"
#inc... | 24.103448 | 84 | 0.733429 | muscnx |
d3703728ad37a635aefb171635aaf68355ad2b0f | 275 | cpp | C++ | Aula08/ex-02-20.cpp | cgcosta/scaling-barnacle | 2477436768ccb75b66feb6c0a837314f1ffa9dd3 | [
"MIT"
] | null | null | null | Aula08/ex-02-20.cpp | cgcosta/scaling-barnacle | 2477436768ccb75b66feb6c0a837314f1ffa9dd3 | [
"MIT"
] | 1 | 2018-04-27T23:42:44.000Z | 2018-04-27T23:42:44.000Z | Aula08/ex-02-20.cpp | cgcosta/scaling-barnacle | 2477436768ccb75b66feb6c0a837314f1ffa9dd3 | [
"MIT"
] | null | null | null | /*
Morgana
*/
#include <iostream>
using namespace std;
int main()
{
int n;
cout << "Informe um numero: ";
cin >> n;
if (n % 2 == 0) {
cout << "é par" << endl;
} else {
cout << "é ímpar" << endl;
}
return 0;
}
| 7.432432 | 32 | 0.418182 | cgcosta |
d37222fc63ef8ccde5fccae209d09bec965ecb16 | 1,365 | hpp | C++ | source/common/vulkan/vkcAlloc.hpp | a-day-old-bagel/at3 | 868cec7672fd109760cae740b1acf26cec5eb85e | [
"MIT"
] | null | null | null | source/common/vulkan/vkcAlloc.hpp | a-day-old-bagel/at3 | 868cec7672fd109760cae740b1acf26cec5eb85e | [
"MIT"
] | null | null | null | source/common/vulkan/vkcAlloc.hpp | a-day-old-bagel/at3 | 868cec7672fd109760cae740b1acf26cec5eb85e | [
"MIT"
] | null | null | null | #pragma once
#include <cstdint>
#include <cstdlib>
#include "vkcTypes.hpp"
namespace at3::vkc::passthrough {
struct AllocatorState {
size_t *memTypeAllocSizes;
uint32_t totalAllocs;
Common *context;
};
extern AllocatorState state;
//ALLOCATOR INTERFACE / INSTALLATION
void activate(Common *co... | 19.782609 | 68 | 0.721612 | a-day-old-bagel |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.