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 108 | 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 67k ⌀ | 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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
fc826aee74ffc0649076ce046a283b385db9bbfc | 1,488 | cpp | C++ | dev/Gems/CryLegacy/Code/Source/CryAISystem/PersonalLog.cpp | jeikabu/lumberyard | 07228c605ce16cbf5aaa209a94a3cb9d6c1a4115 | [
"AML"
] | 1,738 | 2017-09-21T10:59:12.000Z | 2022-03-31T21:05:46.000Z | dev/Gems/CryLegacy/Code/Source/CryAISystem/PersonalLog.cpp | jeikabu/lumberyard | 07228c605ce16cbf5aaa209a94a3cb9d6c1a4115 | [
"AML"
] | 427 | 2017-09-29T22:54:36.000Z | 2022-02-15T19:26:50.000Z | dev/Gems/CryLegacy/Code/Source/CryAISystem/PersonalLog.cpp | jeikabu/lumberyard | 07228c605ce16cbf5aaa209a94a3cb9d6c1a4115 | [
"AML"
] | 671 | 2017-09-21T08:04:01.000Z | 2022-03-29T14:30:07.000Z | /*
* All or portions of this file Copyright (c) Amazon.com, Inc. or its affiliates or
* its licensors.
*
* For complete copyright and license terms please see the LICENSE at the root of this
* distribution (the "License"). All use of this software is governed by the License,
* or, if provided, by the license below or t... | 30.367347 | 85 | 0.672715 | jeikabu |
fc82d0036df81fb62197e707b6316d2f8db37882 | 2,182 | hpp | C++ | src/sysc/packages/boost/config/compiler/hp_acc.hpp | veeYceeY/systemc | 1bd5598ed1a8cf677ebb750accd5af485bc1085a | [
"Apache-2.0"
] | 194 | 2019-07-25T21:27:23.000Z | 2022-03-22T00:08:06.000Z | src/sysc/packages/boost/config/compiler/hp_acc.hpp | veeYceeY/systemc | 1bd5598ed1a8cf677ebb750accd5af485bc1085a | [
"Apache-2.0"
] | 24 | 2019-12-03T18:26:07.000Z | 2022-02-17T09:38:25.000Z | src/sysc/packages/boost/config/compiler/hp_acc.hpp | veeYceeY/systemc | 1bd5598ed1a8cf677ebb750accd5af485bc1085a | [
"Apache-2.0"
] | 64 | 2019-08-02T19:28:25.000Z | 2022-03-30T10:21:22.000Z | // (C) Copyright John Maddock 2001 - 2003.
// (C) Copyright Jens Maurer 2001 - 2003.
// (C) Copyright Aleksey Gurtovoy 2002.
// (C) Copyright David Abrahams 2002 - 2003.
// (C) Copyright Toon Knapen 2003.
// Use, modification and distribution are subject to the
// Boost Software License, Version 1.0. (See ... | 30.732394 | 94 | 0.754354 | veeYceeY |
fc877512a8e7717a036ba3b43217ac2c1cdffa46 | 24,317 | cpp | C++ | core/StarcraftBot/BWSAL_0.9.12/BasicAIModule/Sparcraft/source/Display.cpp | dtdannen/LUiGi-2 | 6e31f7178a48ffb886475fc59d6469d8262874c9 | [
"MIT"
] | null | null | null | core/StarcraftBot/BWSAL_0.9.12/BasicAIModule/Sparcraft/source/Display.cpp | dtdannen/LUiGi-2 | 6e31f7178a48ffb886475fc59d6469d8262874c9 | [
"MIT"
] | null | null | null | core/StarcraftBot/BWSAL_0.9.12/BasicAIModule/Sparcraft/source/Display.cpp | dtdannen/LUiGi-2 | 6e31f7178a48ffb886475fc59d6469d8262874c9 | [
"MIT"
] | null | null | null | #include "Display.h"
#ifdef USING_VISUALIZATION_LIBRARIES
using namespace SparCraft;
#ifdef WIN32
// disable vsync in windows
#include "glext/wglext.h"
#include "glext/glext.h"
#include "glfont/glfont.h"
typedef BOOL (APIENTRY *PFNWGLSWAPINTERVALFARPROC)( int );
PFNWGLSWAPINTERVALFARPROC wglS... | 24.889458 | 124 | 0.628655 | dtdannen |
fc87c7685cc79f6c4db4aebcc9f186b25c85e353 | 3,963 | cpp | C++ | src/x11/atoms.cpp | HughJass/polybar | a78edc667b2c347898787348c27322710d357ce6 | [
"MIT"
] | 6,283 | 2019-05-06T01:10:56.000Z | 2022-03-31T23:42:59.000Z | src/x11/atoms.cpp | HughJass/polybar | a78edc667b2c347898787348c27322710d357ce6 | [
"MIT"
] | 997 | 2019-05-05T20:09:11.000Z | 2022-03-31T22:58:40.000Z | src/x11/atoms.cpp | HughJass/polybar | a78edc667b2c347898787348c27322710d357ce6 | [
"MIT"
] | 506 | 2019-05-08T18:36:25.000Z | 2022-03-25T03:04:39.000Z | #include "x11/atoms.hpp"
#include <xcb/xcb.h>
#include <xcb/xcb_atom.h>
xcb_atom_t _NET_SUPPORTED;
xcb_atom_t _NET_CURRENT_DESKTOP;
xcb_atom_t _NET_ACTIVE_WINDOW;
xcb_atom_t _NET_WM_NAME;
xcb_atom_t _NET_WM_DESKTOP;
xcb_atom_t _NET_WM_VISIBLE_NAME;
xcb_atom_t _NET_WM_WINDOW_TYPE;
xcb_atom_t _NET_WM_WINDOW_TYPE_DOCK;
... | 47.746988 | 110 | 0.779208 | HughJass |
fc882ee71b7b5a6472f4a9c219234fdc0880cf1d | 7,593 | cpp | C++ | Source/Applications/BakerApp.cpp | Marsel24/fonline | 83c10c315ea6f2c5ce6a83a608f287d9c619fa9d | [
"MIT"
] | null | null | null | Source/Applications/BakerApp.cpp | Marsel24/fonline | 83c10c315ea6f2c5ce6a83a608f287d9c619fa9d | [
"MIT"
] | null | null | null | Source/Applications/BakerApp.cpp | Marsel24/fonline | 83c10c315ea6f2c5ce6a83a608f287d9c619fa9d | [
"MIT"
] | null | null | null | // __________ ___ ______ _
// / ____/ __ \____ / (_)___ ___ / ____/___ ____ _(_)___ ___
// / /_ / / / / __ \/ / / __ \/ _ \ / __/ / __ \/ __ `/ / __ \/ _ \
// / __/ / /_/ / / / / / / / / / __/ / /___/ / / / /_/ / / / / / __/
// /_/ \____/_/ /_/_/_/_/ /... | 39.341969 | 117 | 0.539313 | Marsel24 |
fc8a7ab0cae187e0fa4842574676f7b29c924e63 | 843 | cpp | C++ | libhpx/process/allreduce_actions.cpp | luglio/hpx5 | 6cbeebb8e730ee9faa4487dba31a38e3139e1ce7 | [
"BSD-3-Clause"
] | 1 | 2019-11-05T21:11:32.000Z | 2019-11-05T21:11:32.000Z | libhpx/process/allreduce_actions.cpp | ldalessa/hpx | c8888c38f5c12c27bfd80026d175ceb3839f0b40 | [
"BSD-3-Clause"
] | null | null | null | libhpx/process/allreduce_actions.cpp | ldalessa/hpx | c8888c38f5c12c27bfd80026d175ceb3839f0b40 | [
"BSD-3-Clause"
] | 3 | 2019-06-21T07:05:43.000Z | 2020-11-21T15:24:04.000Z | // =============================================================================
// High Performance ParalleX Library (libhpx)
//
// Copyright (c) 2013-2017, Trustees of Indiana University,
// All rights reserved.
//
// This software may be modified and distributed under the terms of the BSD
// license. See the C... | 25.545455 | 80 | 0.558719 | luglio |
fc8be0f362f7f6205147245cf71f563e2072da42 | 10,700 | cpp | C++ | AcfDetect/acfDetect.cpp | Ewenwan/RVAF | 4f6dd3e3fa0ca55b43582995b8eff83c864163eb | [
"BSD-2-Clause"
] | 22 | 2017-08-23T04:46:08.000Z | 2021-11-08T08:51:59.000Z | AcfDetect/acfDetect.cpp | Ewenwan/RVAF | 4f6dd3e3fa0ca55b43582995b8eff83c864163eb | [
"BSD-2-Clause"
] | 1 | 2017-08-23T12:31:24.000Z | 2017-08-23T13:42:09.000Z | AcfDetect/acfDetect.cpp | P-Chao/RVAF | 3b7ad68cf1bc4003d9c5ccd62ac45b7d4103fc2a | [
"BSD-2-Clause"
] | 12 | 2017-10-10T01:52:12.000Z | 2020-01-05T14:02:55.000Z | /*
* acfDetect.cpp
* for VisualStudio & opencv3.0.0
*
* Created on: Aug 2, 2015
* Author: Peng Chao
*
*/
#include <stdio.h>
#include <vector>
#include <opencv2\opencv.hpp>
#include "acfDetect.h"
#include "chnsPyramid.h"
#include "disp.h"
#include <glog\logging.h>
using namespace std;
... | 24.044944 | 109 | 0.573551 | Ewenwan |
fc8c3b670af0d9055a5985eb3a9501ce91d7936b | 3,561 | cpp | C++ | src/system/keyboard.cpp | SakuraLife/utility | b9bf26198917b6dc415520f74eb3eebf8aa8195e | [
"Unlicense"
] | 2 | 2017-12-10T10:59:48.000Z | 2017-12-13T04:11:14.000Z | src/system/keyboard.cpp | SakuraLife/utility | b9bf26198917b6dc415520f74eb3eebf8aa8195e | [
"Unlicense"
] | null | null | null | src/system/keyboard.cpp | SakuraLife/utility | b9bf26198917b6dc415520f74eb3eebf8aa8195e | [
"Unlicense"
] | null | null | null |
#include"keyboard.hpp"
#if defined(__linux__)
#include<cstdio>
#include<termios.h>
#include<unistd.h>
#include<fcntl.h>
namespace utility
{
namespace system
{
namespace keyboard
{
char read_one_char() noexcept
{
using std::getchar;
static termios __old, __new;
tcgetat... | 22.826923 | 74 | 0.508846 | SakuraLife |
fc8cae25931eb5d02501e6c69c2e012d9290587e | 33,137 | cpp | C++ | Ca3DE/Server/Server.cpp | dns/Cafu | 77b34014cc7493d6015db7d674439fe8c23f6493 | [
"MIT"
] | 3 | 2020-04-11T13:00:31.000Z | 2020-12-07T03:19:10.000Z | Ca3DE/Server/Server.cpp | DNS/Cafu | 77b34014cc7493d6015db7d674439fe8c23f6493 | [
"MIT"
] | null | null | null | Ca3DE/Server/Server.cpp | DNS/Cafu | 77b34014cc7493d6015db7d674439fe8c23f6493 | [
"MIT"
] | 1 | 2020-04-11T13:00:04.000Z | 2020-04-11T13:00:04.000Z | /*
Cafu Engine, http://www.cafu.de/
Copyright (c) Carsten Fuchs and other contributors.
This project is licensed under the terms of the MIT license.
*/
#include "Server.hpp"
#include "ServerWorld.hpp"
#include "ClientInfo.hpp"
#include "../GameInfo.hpp"
#include "../NetConst.hpp"
#include "../PlayerCommand.hpp"
#inclu... | 42.159033 | 204 | 0.600235 | dns |
475acc180a8a8ecd7f6d0ee5c09eca216228a616 | 477 | cpp | C++ | src/os/mock_os_functions.cpp | juruen/cavalieri | c3451579193fc8f081b6228ae295b463a0fd23bd | [
"MIT"
] | 54 | 2015-01-14T21:11:56.000Z | 2021-06-27T13:29:40.000Z | src/os/mock_os_functions.cpp | juruen/cavalieri | c3451579193fc8f081b6228ae295b463a0fd23bd | [
"MIT"
] | null | null | null | src/os/mock_os_functions.cpp | juruen/cavalieri | c3451579193fc8f081b6228ae295b463a0fd23bd | [
"MIT"
] | 10 | 2015-07-15T05:09:34.000Z | 2019-01-10T07:32:02.000Z | #include <os/mock_os_functions.h>
#include <algorithm>
ssize_t mock_os_functions::recv(int, void *buf, size_t len, int) {
auto min = std::min(len, buffer.size());
std::copy(buffer.begin(), buffer.begin() + min, static_cast<char*>(buf));
return min;
}
ssize_t mock_os_functions::write(int, void *buf, size_t count... | 29.8125 | 75 | 0.685535 | juruen |
475b396719f1106cc50c18ca28a10e414a6d9012 | 1,809 | cpp | C++ | hydrogels/theory/models/_cxx/engine.cpp | debeshmandal/brownian | bc5b2e00a04d11319c85e749f9c056b75b450ff7 | [
"MIT"
] | 3 | 2020-05-13T01:07:30.000Z | 2021-02-12T13:37:23.000Z | hydrogels/theory/models/_cxx/engine.cpp | debeshmandal/brownian | bc5b2e00a04d11319c85e749f9c056b75b450ff7 | [
"MIT"
] | 24 | 2020-06-04T13:48:57.000Z | 2021-12-31T18:46:52.000Z | hydrogels/theory/models/_cxx/engine.cpp | debeshmandal/brownian | bc5b2e00a04d11319c85e749f9c056b75b450ff7 | [
"MIT"
] | 1 | 2020-07-23T17:15:23.000Z | 2020-07-23T17:15:23.000Z | #include <Python.h>
#include "functions.hpp"
#include "utils.hpp"
static PyObject*
engine_addNumbers(PyObject* self, PyObject* args) {
// declare variables
double n1, n2, result;
// parse arguments
if (!PyArg_ParseTuple(args, "dd", &n1, &n2)) {
return NULL;
};
// function here
re... | 25.842857 | 114 | 0.669431 | debeshmandal |
475ee9725fc5adaa535dd74ba7df3dbd495ff209 | 5,667 | cpp | C++ | src/coroutine.cpp | raitechnology/aekv | 0c5cc2effbe6fc7a76a62b3094a09face327fe0a | [
"Apache-2.0"
] | null | null | null | src/coroutine.cpp | raitechnology/aekv | 0c5cc2effbe6fc7a76a62b3094a09face327fe0a | [
"Apache-2.0"
] | null | null | null | src/coroutine.cpp | raitechnology/aekv | 0c5cc2effbe6fc7a76a62b3094a09face327fe0a | [
"Apache-2.0"
] | null | null | null |
/* derived from: https://github.com/cloudwu/coroutine */
#include <stdio.h>
#include <stdlib.h>
#include <assert.h>
#include <stddef.h>
#include <string.h>
#include <stdint.h>
#include <aekv/coroutine.h>
#if __APPLE__ && __MACH__
#include <sys/ucontext.h>
#else
#include <ucontext.h>
#endif
static const size_t STA... | 24.114894 | 74 | 0.556203 | raitechnology |
476035f1a5f85ea33f3730d25bc046f6d95450c4 | 6,510 | cpp | C++ | thirdparty/ULib/tests/ulib/http2/hdecode.cpp | liftchampion/nativejson-benchmark | 6d575ffa4359a5c4230f74b07d994602a8016fb5 | [
"MIT"
] | null | null | null | thirdparty/ULib/tests/ulib/http2/hdecode.cpp | liftchampion/nativejson-benchmark | 6d575ffa4359a5c4230f74b07d994602a8016fb5 | [
"MIT"
] | null | null | null | thirdparty/ULib/tests/ulib/http2/hdecode.cpp | liftchampion/nativejson-benchmark | 6d575ffa4359a5c4230f74b07d994602a8016fb5 | [
"MIT"
] | null | null | null | // hdecode.cpp
#include <ulib/utility/http2.h>
#undef PACKAGE
#define PACKAGE "hdecode"
#define ARGS "[dump file...]" // The file contains a dump of HPACK octets
#define U_OPTIONS \
"purpose 'simple HPACK decoder'\n" \
"option e expect-error 1 '<ERR>' ''\n" \
"option d decoding-spec 1 'Spec format: <letter><size>... | 25.529412 | 166 | 0.5 | liftchampion |
4761271200d0d82dd4c939d76cc840c052adcab1 | 2,112 | hpp | C++ | test/test01_server.hpp | correlllab/isaac_ros_service | a13630f1a2ca52f8f37b3086b9d07504719c0269 | [
"MIT"
] | null | null | null | test/test01_server.hpp | correlllab/isaac_ros_service | a13630f1a2ca52f8f37b3086b9d07504719c0269 | [
"MIT"
] | null | null | null | test/test01_server.hpp | correlllab/isaac_ros_service | a13630f1a2ca52f8f37b3086b9d07504719c0269 | [
"MIT"
] | null | null | null | #ifndef TSTSVR1_H
#define TSTSVR1_H
/* ### NOTES ###
*/
#include <cstdlib>
#include <iostream>
#include <thread>
#include <utility>
#include <boost/asio.hpp>
#include <queue>
#include <string>
#include <vector>
#include <memory>
#include <set>
#include <algorithm>
#include <boost/array.hpp>
#include "../helpers/he... | 22.468085 | 119 | 0.567235 | correlllab |
4761cb66b4f2de03bc45edd28436658709e15eb6 | 132,416 | cpp | C++ | tools/objc2winmd/objc2winmd.cpp | crossmob/WinObjC | 7bec24671c4c18b81aaf85eff2887438f18a697c | [
"MIT"
] | 6,717 | 2015-08-06T18:04:37.000Z | 2019-05-04T12:38:51.000Z | tools/objc2winmd/objc2winmd.cpp | Michael-Young48/WinObjC | 7bec24671c4c18b81aaf85eff2887438f18a697c | [
"MIT"
] | 2,711 | 2015-08-06T18:41:09.000Z | 2019-04-29T12:14:23.000Z | tools/objc2winmd/objc2winmd.cpp | Michael-Young48/WinObjC | 7bec24671c4c18b81aaf85eff2887438f18a697c | [
"MIT"
] | 1,021 | 2015-08-06T18:08:56.000Z | 2019-04-14T06:50:57.000Z | //******************************************************************************
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
// This code is licensed under the MIT License (MIT).
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
// IMPLIED, INCLUDING BUT NOT LIMITED... | 45.834545 | 140 | 0.598583 | crossmob |
47636b833a9010110d14e0b9194c2b98f402cc3f | 2,652 | cpp | C++ | raw-examples/my_epoll.cpp | Jayhello/handy-copy | f6b1be65a5372cb42e6479c0b413216a9a689e1f | [
"BSD-2-Clause"
] | null | null | null | raw-examples/my_epoll.cpp | Jayhello/handy-copy | f6b1be65a5372cb42e6479c0b413216a9a689e1f | [
"BSD-2-Clause"
] | null | null | null | raw-examples/my_epoll.cpp | Jayhello/handy-copy | f6b1be65a5372cb42e6479c0b413216a9a689e1f | [
"BSD-2-Clause"
] | null | null | null | //
// Created by root on 18-11-21.
//
/*
* Mainly test for server end.
*/
#include <sys/socket.h>
#include <vector>
#include <iostream>
#include <netinet/in.h>
#include <handy/handy.h>
#include <arpa/inet.h>
using namespace handy;
using namespace std;
/*
* Note: Simple test for max socket num.
*/
void testMax... | 21.737705 | 84 | 0.563725 | Jayhello |
4767a60e01d3a1b0bef6a71f7941455efc452fdf | 1,028 | cpp | C++ | Sid's Levels/Level - 2/Graphs/BFS.cpp | Tiger-Team-01/DSA-A-Z-Practice | e08284ffdb1409c08158dd4e90dc75dc3a3c5b18 | [
"MIT"
] | 14 | 2021-08-22T18:21:14.000Z | 2022-03-08T12:04:23.000Z | Sid's Levels/Level - 2/Graphs/BFS.cpp | Tiger-Team-01/DSA-A-Z-Practice | e08284ffdb1409c08158dd4e90dc75dc3a3c5b18 | [
"MIT"
] | 1 | 2021-10-17T18:47:17.000Z | 2021-10-17T18:47:17.000Z | Sid's Levels/Level - 2/Graphs/BFS.cpp | Tiger-Team-01/DSA-A-Z-Practice | e08284ffdb1409c08158dd4e90dc75dc3a3c5b18 | [
"MIT"
] | 5 | 2021-09-01T08:21:12.000Z | 2022-03-09T12:13:39.000Z | class Solution
{
public:
//Function to return Breadth First Traversal of given graph.
void bfsHelper(vector<int> &bfs, bool visited[], vector<int> adj[], int src)
{
queue<int> q;
q.push(src);
visited[src] = true;
while(!q.empty())
{
int cur = q.front()... | 25.7 | 80 | 0.474708 | Tiger-Team-01 |
47692a35ba87389e363a8e763496408888586d82 | 1,463 | cpp | C++ | src/runtime_src/xdp/profile/plugin/vp_base/vp_base_plugin.cpp | houlz0507/XRT-1 | 1b66ba8a5031ac1f694b0686774218c0d7286c52 | [
"Apache-2.0"
] | null | null | null | src/runtime_src/xdp/profile/plugin/vp_base/vp_base_plugin.cpp | houlz0507/XRT-1 | 1b66ba8a5031ac1f694b0686774218c0d7286c52 | [
"Apache-2.0"
] | null | null | null | src/runtime_src/xdp/profile/plugin/vp_base/vp_base_plugin.cpp | houlz0507/XRT-1 | 1b66ba8a5031ac1f694b0686774218c0d7286c52 | [
"Apache-2.0"
] | null | null | null | /**
* Copyright (C) 2016-2020 Xilinx, Inc
*
* Licensed under the Apache License, Version 2.0 (the "License"). You may
* not use this file except in compliance with the License. A copy of the
* License is located at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agre... | 26.6 | 76 | 0.688995 | houlz0507 |
4769892825000c71007faa865c2f0155d8a2bcfc | 1,953 | cc | C++ | Ex05_Prototype/src/1_document_manager/docmanager.cc | kks32/cpp-software-development | 3ce0c66d812d9a166191a1007111501615c97a2c | [
"MIT"
] | 64 | 2015-01-18T17:53:56.000Z | 2022-03-06T11:37:25.000Z | Ex05_Prototype/src/1_document_manager/docmanager.cc | kks32/cpp-software-development | 3ce0c66d812d9a166191a1007111501615c97a2c | [
"MIT"
] | null | null | null | Ex05_Prototype/src/1_document_manager/docmanager.cc | kks32/cpp-software-development | 3ce0c66d812d9a166191a1007111501615c97a2c | [
"MIT"
] | 24 | 2015-03-22T02:00:10.000Z | 2022-01-18T13:17:26.000Z | #include <iostream>
#include <vector>
#include <algorithm>
#include <functional>
const int N = 4; // # of document types + 1
// Prototype
class Document
{
public:
virtual Document* clone() const = 0;
virtual void store() const = 0;
virtual ~Document() { }
};
// Concrete prototypes : xmlDoc, plainDoc, ... | 21.461538 | 76 | 0.623144 | kks32 |
476d1350ae2cab66a8a9c2084888ad85656d2015 | 10,118 | cpp | C++ | emulator/src/devices/bus/amiga/zorro/buddha.cpp | rjw57/tiw-computer | 5ef1c79893165b8622d1114d81cd0cded58910f0 | [
"MIT"
] | 1 | 2022-01-15T21:38:38.000Z | 2022-01-15T21:38:38.000Z | emulator/src/devices/bus/amiga/zorro/buddha.cpp | rjw57/tiw-computer | 5ef1c79893165b8622d1114d81cd0cded58910f0 | [
"MIT"
] | null | null | null | emulator/src/devices/bus/amiga/zorro/buddha.cpp | rjw57/tiw-computer | 5ef1c79893165b8622d1114d81cd0cded58910f0 | [
"MIT"
] | null | null | null | // license:GPL-2.0+
// copyright-holders:Dirk Best
/***************************************************************************
Buddha
Zorro-II IDE controller
The 'speed' register is used to select the IDE timing according to
the following table (bits 7-5 are used):
0 497ns 7c to select, I... | 29.327536 | 136 | 0.618996 | rjw57 |
47705c1796084733843018e789d6030866a69d30 | 4,486 | cpp | C++ | source/polyvec/curve-tracer/measure_accuracy_polygon.cpp | ShnitzelKiller/polyfit | 51ddc6365a794db1678459140658211cb78f65b1 | [
"MIT"
] | 27 | 2020-08-17T17:25:59.000Z | 2022-03-01T05:49:12.000Z | source/polyvec/curve-tracer/measure_accuracy_polygon.cpp | ShnitzelKiller/polyfit | 51ddc6365a794db1678459140658211cb78f65b1 | [
"MIT"
] | 4 | 2020-08-26T13:54:59.000Z | 2020-09-21T07:19:22.000Z | source/polyvec/curve-tracer/measure_accuracy_polygon.cpp | ShnitzelKiller/polyfit | 51ddc6365a794db1678459140658211cb78f65b1 | [
"MIT"
] | 5 | 2020-08-26T23:26:48.000Z | 2021-01-04T09:06:07.000Z | // polyvec
#include <polyvec/curve-tracer/measure_accuracy_polygon.hpp>
#include <polyvec/curve-tracer/find-fitting-points.hpp>
#include <polyvec/utils/matrix.hpp>
#include <polyvec/curve-tracer/spline.hpp>
#include <polyvec/utils/directions.hpp>
// remove todo
#include <polyvec/geom.hpp> // nop
#include <polyvec/debu... | 25.488636 | 94 | 0.664958 | ShnitzelKiller |
477282ca9786016074b6ba825d03c81872570987 | 1,941 | hpp | C++ | data-structures-and-algorithms/project-hashmap/tests/test_map_hash.hpp | vampy/university | 9496cb63594dcf1cc2cec8650b8eee603f85fdab | [
"MIT"
] | 6 | 2015-06-22T19:43:13.000Z | 2019-07-15T18:08:41.000Z | data-structures-and-algorithms/project-hashmap/tests/test_map_hash.hpp | vampy/university | 9496cb63594dcf1cc2cec8650b8eee603f85fdab | [
"MIT"
] | null | null | null | data-structures-and-algorithms/project-hashmap/tests/test_map_hash.hpp | vampy/university | 9496cb63594dcf1cc2cec8650b8eee603f85fdab | [
"MIT"
] | 1 | 2015-09-26T09:01:54.000Z | 2015-09-26T09:01:54.000Z | #ifndef TEST_MAP_HASH_H_
#define TEST_MAP_HASH_H_
#include <cassert>
#include <string>
#include "../map_hash.hpp"
using namespace std;
static void testMapHashInit()
{
auto test = new MapHash::Map<int>;
assert(test->isEmpty() == true);
assert(test->containsKey("A") == false);
assert(test->getLength() ... | 22.056818 | 58 | 0.575992 | vampy |
4773f6d904dd964414634842934b3ac94122ba3d | 1,438 | cpp | C++ | PE/ch07/7.3.cpp | DustOfStars/CppPrimerPlus6 | 391e3ad76eaa99f331981cee72139d83115fc93d | [
"MIT"
] | null | null | null | PE/ch07/7.3.cpp | DustOfStars/CppPrimerPlus6 | 391e3ad76eaa99f331981cee72139d83115fc93d | [
"MIT"
] | null | null | null | PE/ch07/7.3.cpp | DustOfStars/CppPrimerPlus6 | 391e3ad76eaa99f331981cee72139d83115fc93d | [
"MIT"
] | null | null | null | /*
* Here is a structure declaration:
* struct box
* {
* char maker[40];
* float height;
* float width;
* float length;
* float volume;
* };
* a. Write a function that passes a box structure by value and that
* displays the value of each member.
* b. Write a function that passes the a... | 23.193548 | 74 | 0.599444 | DustOfStars |
477c043a83046e8df11f1c09270247b327afbaf7 | 525 | hpp | C++ | src/picotorrent/sessionstate.hpp | kamyarpour/picotorrent | bc33ca2f84d95b431ff62bbeb64fcb8f15d94c73 | [
"MIT"
] | 1 | 2020-01-13T23:33:44.000Z | 2020-01-13T23:33:44.000Z | src/picotorrent/sessionstate.hpp | kamyarpour/picotorrent | bc33ca2f84d95b431ff62bbeb64fcb8f15d94c73 | [
"MIT"
] | null | null | null | src/picotorrent/sessionstate.hpp | kamyarpour/picotorrent | bc33ca2f84d95b431ff62bbeb64fcb8f15d94c73 | [
"MIT"
] | null | null | null | #pragma once
#include <map>
#include <memory>
#include <unordered_set>
#include <libtorrent/fwd.hpp>
#include <libtorrent/sha1_hash.hpp>
namespace pt
{
struct SessionState
{
bool isSelected(libtorrent::sha1_hash const& hash);
std::unordered_set<libtorrent::sha1_hash> pauseAfterChecking;
... | 23.863636 | 77 | 0.712381 | kamyarpour |
4780cee7220596d117c7561435c2612e9579fab3 | 382 | cpp | C++ | exe6.cpp | priya29jps/top-100-code-in-cpp | 22d9328217a7f2ecbd09e62e750d8cad37baf046 | [
"Apache-2.0"
] | null | null | null | exe6.cpp | priya29jps/top-100-code-in-cpp | 22d9328217a7f2ecbd09e62e750d8cad37baf046 | [
"Apache-2.0"
] | null | null | null | exe6.cpp | priya29jps/top-100-code-in-cpp | 22d9328217a7f2ecbd09e62e750d8cad37baf046 | [
"Apache-2.0"
] | null | null | null | //problem in linear search
#include<iostream>
using namespace std;
int linearSearch(int arry[],int n,int key)
{
for(int i=0;i<=n;i++)
if(arry[i]==key){
return i;
}
return -1;
}
int main(){
int n;
cin>>n;
int arry[n];
for(int i=0;i<=n;i++)
{
cin>>arry[i];
}
int ke... | 11.9375 | 43 | 0.536649 | priya29jps |
4783265799cbd7bf20ce6043d7246983f38d937c | 16,464 | cc | C++ | tensorflow/c/experimental/filesystem/plugins/s3/s3_filesystem_test.cc | eee4017/tensorflow | deba51f80e05775bb4cc83647b475802be58f1e4 | [
"Apache-2.0"
] | null | null | null | tensorflow/c/experimental/filesystem/plugins/s3/s3_filesystem_test.cc | eee4017/tensorflow | deba51f80e05775bb4cc83647b475802be58f1e4 | [
"Apache-2.0"
] | null | null | null | tensorflow/c/experimental/filesystem/plugins/s3/s3_filesystem_test.cc | eee4017/tensorflow | deba51f80e05775bb4cc83647b475802be58f1e4 | [
"Apache-2.0"
] | null | null | null | /* Copyright 2020 The TensorFlow Authors. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or a... | 34.807611 | 80 | 0.65786 | eee4017 |
4784d18bb6726d8bb62bc800653c711e433dedde | 34 | cpp | C++ | libs/gfxtk_core/src/gfxtk/VertexBufferLayout.cpp | NostalgicGhoul/gfxtk | 6662d6d1b285e20806ecfef3cdcb620d6605e478 | [
"BSD-2-Clause"
] | null | null | null | libs/gfxtk_core/src/gfxtk/VertexBufferLayout.cpp | NostalgicGhoul/gfxtk | 6662d6d1b285e20806ecfef3cdcb620d6605e478 | [
"BSD-2-Clause"
] | null | null | null | libs/gfxtk_core/src/gfxtk/VertexBufferLayout.cpp | NostalgicGhoul/gfxtk | 6662d6d1b285e20806ecfef3cdcb620d6605e478 | [
"BSD-2-Clause"
] | null | null | null | #include "VertexBufferLayout.hpp"
| 17 | 33 | 0.823529 | NostalgicGhoul |
47870e015675b95affca3b32252f7cf0dbf909c0 | 1,635 | cpp | C++ | cpp/src/bitmask/is_element_valid.cpp | sperlingxx/cudf | c681211df6253e1ceee9203658108980e7e93e3c | [
"Apache-2.0"
] | 4,012 | 2018-10-29T00:11:19.000Z | 2022-03-31T19:20:19.000Z | cpp/src/bitmask/is_element_valid.cpp | sperlingxx/cudf | c681211df6253e1ceee9203658108980e7e93e3c | [
"Apache-2.0"
] | 9,865 | 2018-10-29T12:52:07.000Z | 2022-03-31T23:09:21.000Z | cpp/src/bitmask/is_element_valid.cpp | sperlingxx/cudf | c681211df6253e1ceee9203658108980e7e93e3c | [
"Apache-2.0"
] | 588 | 2018-10-29T05:52:44.000Z | 2022-03-28T06:13:09.000Z |
/*
* Copyright (c) 2021, NVIDIA CORPORATION.
*
* 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... | 34.0625 | 89 | 0.670948 | sperlingxx |
4788a1215a9a1949583f450665725a926e64be85 | 1,367 | cpp | C++ | Source/Runtime/Private/Asset/JointMaskResource.cpp | redchew-fork/BlueshiftEngine | fbc374cbc391e1147c744649f405a66a27c35d89 | [
"Apache-2.0"
] | 410 | 2017-03-03T08:56:54.000Z | 2022-03-29T07:18:46.000Z | Source/Runtime/Private/Asset/JointMaskResource.cpp | redchew-fork/BlueshiftEngine | fbc374cbc391e1147c744649f405a66a27c35d89 | [
"Apache-2.0"
] | 31 | 2017-03-05T11:37:44.000Z | 2021-09-15T21:28:34.000Z | Source/Runtime/Private/Asset/JointMaskResource.cpp | redchew-fork/BlueshiftEngine | fbc374cbc391e1147c744649f405a66a27c35d89 | [
"Apache-2.0"
] | 48 | 2017-03-18T05:28:21.000Z | 2022-03-05T12:27:17.000Z | // Copyright(c) 2017 POLYGONTEK
//
// 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 i... | 27.34 | 81 | 0.746159 | redchew-fork |
478a0527bdc45ef2cfa205d878d9237ab61ce245 | 1,554 | cpp | C++ | GodGame/GodGame/SDLEngine/Renderers/RendererOpenGL/TextureOpenGL.cpp | NeutralNoise/GodGame | 454c94e361868ca169ca1d9268ad6737fa8e1741 | [
"MIT"
] | null | null | null | GodGame/GodGame/SDLEngine/Renderers/RendererOpenGL/TextureOpenGL.cpp | NeutralNoise/GodGame | 454c94e361868ca169ca1d9268ad6737fa8e1741 | [
"MIT"
] | null | null | null | GodGame/GodGame/SDLEngine/Renderers/RendererOpenGL/TextureOpenGL.cpp | NeutralNoise/GodGame | 454c94e361868ca169ca1d9268ad6737fa8e1741 | [
"MIT"
] | null | null | null | #include "TextureOpenGL.h"
#include <iostream>
#include <GL/glew.h>
//#include <SDL2/SDL.h>
//#include <SDL2/SDL_image.h>
#define STB_IMAGE_IMPLEMENTATION
#include <STB/stb_image.h>
#include "ErrorOpenGL.h"
Texture * TextureOpenGL::LoadTexture(const std::string & path)
{
unsigned char* m_LocalBuffer;
//stbi_set_flip... | 25.9 | 122 | 0.756113 | NeutralNoise |
478a2e65b1f8dc81c23d45027f87a26a5e7ac065 | 832 | cc | C++ | deprected/src/util/point.cc | RobertWeber1/cli | 5cb67325610be41014403e9342dddbe942511c2b | [
"MIT"
] | null | null | null | deprected/src/util/point.cc | RobertWeber1/cli | 5cb67325610be41014403e9342dddbe942511c2b | [
"MIT"
] | null | null | null | deprected/src/util/point.cc | RobertWeber1/cli | 5cb67325610be41014403e9342dddbe942511c2b | [
"MIT"
] | null | null | null | #include "point.h"
namespace CLI
{
namespace util
{
Point::Point( unsigned int x, unsigned int y )
: _x(x)
, _y(y)
{}
Point::Point( Point const& point )
: _x( point.x() )
, _y( point.y() )
{}
unsigned int Point::x() const
{
return _x;
}
unsigned int Point::y() const
{
return _y;
}
void Point::x( unsigned int n... | 11.093333 | 57 | 0.623798 | RobertWeber1 |
478b6811f16f37bb2bdf56a284e79b54b9b6aa4e | 479 | cpp | C++ | telColorCode.cpp | Engin-Boot/modularity-cpp-univac-os | 36c62a6977eea2e4b14976cd2d45c1bd234102eb | [
"MIT"
] | null | null | null | telColorCode.cpp | Engin-Boot/modularity-cpp-univac-os | 36c62a6977eea2e4b14976cd2d45c1bd234102eb | [
"MIT"
] | null | null | null | telColorCode.cpp | Engin-Boot/modularity-cpp-univac-os | 36c62a6977eea2e4b14976cd2d45c1bd234102eb | [
"MIT"
] | null | null | null | #include "telColorCode.h"
#include<string.h>
using namespace std;
//defination of class
namespace TelCoColorCoder {
MajorColor ColorPair::getMajor() {
return majorColor;
}
MinorColor ColorPair::getMinor() {
return minorColor;
}
string ColorPair::ToString() {
string colo... | 23.95 | 58 | 0.649269 | Engin-Boot |
478bcdd1b72fef6c2dac52463c6c7beaddcb9f7d | 1,804 | cpp | C++ | rel-lib/src/Logger.cpp | sscit/rel | d9e6815012334dfc4c99b8020ae42a9ca9860458 | [
"MIT"
] | 2 | 2020-12-26T20:18:46.000Z | 2021-05-01T03:55:22.000Z | rel-lib/src/Logger.cpp | sscit/rel | d9e6815012334dfc4c99b8020ae42a9ca9860458 | [
"MIT"
] | 2 | 2021-01-04T00:01:51.000Z | 2021-04-07T18:25:10.000Z | rel-lib/src/Logger.cpp | sscit/rel | d9e6815012334dfc4c99b8020ae42a9ca9860458 | [
"MIT"
] | 2 | 2021-01-03T00:32:20.000Z | 2021-01-04T01:06:18.000Z | /* SPDX-License-Identifier: MIT */
/* Copyright (c) 2020-present Stefan Schlichthärle */
#include "Logger.h"
Logger::Logger() : current_loglevel(LogLevel::WARNING) {}
Logger::Logger(std::string const filename) : Logger() {
file_access.open(filename);
}
Logger::~Logger() {
if (file_access.is_open()) file_acc... | 29.57377 | 75 | 0.533259 | sscit |
478c7e0be4858a8dd3ed9cb329da8a316b1a0b30 | 11,045 | cpp | C++ | applications/PfemFluidDynamicsApplication/custom_elements/updated_lagrangian_V_implicit_solid_element.cpp | clazaro/Kratos | b947b82c90dfcbf13d60511427f85990d36b90be | [
"BSD-4-Clause"
] | null | null | null | applications/PfemFluidDynamicsApplication/custom_elements/updated_lagrangian_V_implicit_solid_element.cpp | clazaro/Kratos | b947b82c90dfcbf13d60511427f85990d36b90be | [
"BSD-4-Clause"
] | 3 | 2021-08-18T16:12:20.000Z | 2021-09-02T07:36:15.000Z | applications/PfemFluidDynamicsApplication/custom_elements/updated_lagrangian_V_implicit_solid_element.cpp | clazaro/Kratos | b947b82c90dfcbf13d60511427f85990d36b90be | [
"BSD-4-Clause"
] | 1 | 2017-05-02T00:52:44.000Z | 2017-05-02T00:52:44.000Z | //
// Project Name: KratosFluidDynamicsApplication $
// Last modified by: $Author: AFranci $
// Date: $Date: February 2016 $
// Revision: $Revision: 0.0 $
//
//
// System includes
// External includes
// Project includes
#include "cu... | 55.782828 | 125 | 0.759167 | clazaro |
478dafe437dee50cd92e62e59ca5f1548d108f24 | 6,832 | hpp | C++ | src/ns.hpp | MilesLitteral/mtlpp | 0915732f9bb958bea476c19b2d9de3637d857c92 | [
"MIT"
] | 1 | 2022-01-11T05:44:44.000Z | 2022-01-11T05:44:44.000Z | src/ns.hpp | MilesLitteral/mtlpp | 0915732f9bb958bea476c19b2d9de3637d857c92 | [
"MIT"
] | null | null | null | src/ns.hpp | MilesLitteral/mtlpp | 0915732f9bb958bea476c19b2d9de3637d857c92 | [
"MIT"
] | null | null | null | /*
* Copyright 2016-2017 Nikolay Aleksiev. All rights reserved.
* License: https://github.com/naleksiev/mtlpp/blob/master/LICENSE
*/
#pragma once
#include "defines.hpp"
namespace ns
{
struct Handle
{
const void* ptr;
};
class Object
{
public:
... | 32.075117 | 158 | 0.525907 | MilesLitteral |
479bb457a7688a4e84e3b543344618597ad7dbe3 | 9,461 | cpp | C++ | rviz-groovy-devel/src/rviz/default_plugin/odometry_display.cpp | tuw-cpsg/dynamic_mapping | 12c5c9a9e66e16cb451c457d46a4d6cab5e2213b | [
"CC0-1.0"
] | 9 | 2017-12-17T07:43:15.000Z | 2021-10-10T15:03:39.000Z | rviz-groovy-devel/src/rviz/default_plugin/odometry_display.cpp | tuw-cpsg/dynamic_mapping | 12c5c9a9e66e16cb451c457d46a4d6cab5e2213b | [
"CC0-1.0"
] | null | null | null | rviz-groovy-devel/src/rviz/default_plugin/odometry_display.cpp | tuw-cpsg/dynamic_mapping | 12c5c9a9e66e16cb451c457d46a4d6cab5e2213b | [
"CC0-1.0"
] | 6 | 2016-01-27T03:40:58.000Z | 2021-06-15T08:12:14.000Z | /*
* Copyright (c) 2008, Willow Garage, Inc.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* * Redistributions of source code must retain the above copyright
* notice, this l... | 32.400685 | 218 | 0.653525 | tuw-cpsg |
47a1a30bd4acc32ed3f845e767fda1a52c1cca1f | 3,748 | cpp | C++ | modules/task_3/kulemin_p_linear_vertical_filtration/main.cpp | Stepakrap/pp_2021_autumn | 716803a14183172337d51712fb28fe8e86891a3d | [
"BSD-3-Clause"
] | 1 | 2021-12-09T17:20:25.000Z | 2021-12-09T17:20:25.000Z | modules/task_3/kulemin_p_linear_vertical_filtration/main.cpp | Stepakrap/pp_2021_autumn | 716803a14183172337d51712fb28fe8e86891a3d | [
"BSD-3-Clause"
] | null | null | null | modules/task_3/kulemin_p_linear_vertical_filtration/main.cpp | Stepakrap/pp_2021_autumn | 716803a14183172337d51712fb28fe8e86891a3d | [
"BSD-3-Clause"
] | 3 | 2022-02-23T14:20:50.000Z | 2022-03-30T09:00:02.000Z | // Copyright 2021 Zaytsev Mikhail
#include <gtest/gtest.h>
#include <vector>
#include "./linear_vectrical_filtration.h"
#include <gtest-mpi-listener.hpp>
TEST(Parallel_Matrix_Multiplacition, mRows_Eq_mColumns_50) {
int currentProcess;
MPI_Comm_rank(MPI_COMM_WORLD, ¤tProcess);
std::vector<float> matr... | 28.610687 | 78 | 0.68143 | Stepakrap |
47a1e56747c70b5c2eee49c012072302a80a848f | 2,670 | cpp | C++ | synthts_et/lib/fsc/fsdata.cpp | martnoumees/synthts_et | 8845b33514edef3e54ae0b45404615704c418142 | [
"Unlicense"
] | 19 | 2015-10-27T22:21:49.000Z | 2022-02-07T11:54:35.000Z | synthts_vr/lib/fsc/fsdata.cpp | ikiissel/synthts_vr | 33f2686dc9606aa95697ac0cf7e9031668bc34e8 | [
"Unlicense"
] | 8 | 2015-10-28T08:38:08.000Z | 2021-03-25T21:26:59.000Z | synthts_vr/lib/fsc/fsdata.cpp | ikiissel/synthts_vr | 33f2686dc9606aa95697ac0cf7e9031668bc34e8 | [
"Unlicense"
] | 11 | 2016-01-03T11:47:08.000Z | 2021-03-17T18:59:54.000Z | #include "stdfsc.h"
#include "fstype.h"
#include "fsdata.h"
#include "fstrace.h"
#include "fsmemory.h"
#include "fsutil.h"
#define __FSDATAMAXOVERHEAD (50*1024) // 50K
//////////////////////////////////////////////////////////////////////
// Construction/Destruction
//////////////////////////////////////... | 20.697674 | 101 | 0.646816 | martnoumees |
47a1fe5a5547d1bb9969e28fd314231d21f05b9e | 10,508 | cpp | C++ | demo/cpp/color_match.cpp | berak/opencv_smallfry | fd8f64980dff0527523791984d6cb3dfcd2bc9bc | [
"BSD-3-Clause"
] | 57 | 2015-02-16T06:43:24.000Z | 2022-03-16T06:21:36.000Z | demo/cpp/color_match.cpp | berak/opencv_smallfry | fd8f64980dff0527523791984d6cb3dfcd2bc9bc | [
"BSD-3-Clause"
] | 4 | 2016-03-08T09:51:09.000Z | 2021-03-29T10:18:55.000Z | demo/cpp/color_match.cpp | berak/opencv_smallfry | fd8f64980dff0527523791984d6cb3dfcd2bc9bc | [
"BSD-3-Clause"
] | 27 | 2015-03-28T19:55:34.000Z | 2022-01-09T15:03:15.000Z | #include <opencv2/opencv.hpp>
#include <opencv2/ximgproc.hpp>
using namespace std;
using namespace cv;
void createQuaternionImage(InputArray _img, OutputArray _qimg)
{
int type = _img.type(), depth = CV_MAT_DEPTH(type), cn = CV_MAT_CN(type);
CV_Assert((depth == CV_8U || depth == CV_32F || depth == CV_64F) && ... | 35.026667 | 146 | 0.575752 | berak |
47a81afe6e0e20ccda4eeeec15d1792aed98e01a | 490 | hh | C++ | libqpdf/qpdf/InsecureRandomDataProvider.hh | m-holger/qpdf | f1a9ba0c622deee0ed05004949b34f0126b12b6a | [
"Apache-2.0"
] | null | null | null | libqpdf/qpdf/InsecureRandomDataProvider.hh | m-holger/qpdf | f1a9ba0c622deee0ed05004949b34f0126b12b6a | [
"Apache-2.0"
] | 3 | 2021-11-19T15:59:21.000Z | 2021-12-10T20:44:33.000Z | libqpdf/qpdf/InsecureRandomDataProvider.hh | m-holger/qpdf | f1a9ba0c622deee0ed05004949b34f0126b12b6a | [
"Apache-2.0"
] | null | null | null | #ifndef INSECURERANDOMDATAPROVIDER_HH
#define INSECURERANDOMDATAPROVIDER_HH
#include <qpdf/RandomDataProvider.hh>
class InsecureRandomDataProvider: public RandomDataProvider
{
public:
InsecureRandomDataProvider();
virtual ~InsecureRandomDataProvider() = default;
virtual void provideRandomData(unsigned c... | 23.333333 | 68 | 0.783673 | m-holger |
47a9f49ecfd31535be660f54e9576575e7329bb5 | 1,687 | cpp | C++ | aech/src/ecs/engine.cpp | markomijolovic/aech | 6e2ea36146596dff6f92e451a598aab535b03d3c | [
"BSD-3-Clause"
] | 4 | 2021-05-25T13:58:30.000Z | 2021-05-26T20:13:15.000Z | aech/src/ecs/engine.cpp | markomijolovic/aech | 6e2ea36146596dff6f92e451a598aab535b03d3c | [
"BSD-3-Clause"
] | null | null | null | aech/src/ecs/engine.cpp | markomijolovic/aech | 6e2ea36146596dff6f92e451a598aab535b03d3c | [
"BSD-3-Clause"
] | null | null | null | #include "engine.hpp"
#include "camera.hpp"
#include "directional_light.hpp"
#include "light_probe.hpp"
#include "mesh_filter.hpp"
#include "point_light.hpp"
#include "reflection_probe.hpp"
#include "scene_node.hpp"
#include "shading_tags.hpp"
#include "shadow_caster.hpp"
namespace aech {
engine_t::engine_t() noexce... | 27.209677 | 127 | 0.760522 | markomijolovic |
47b15c2740bd5087d10242354a76aab58a878d86 | 566 | cpp | C++ | riscv/llvm/3.5/cfe-3.5.0.src/test/Modules/macro-reexport/macro-reexport.cpp | tangyibin/goblin-core | 1940db6e95908c81687b2b22ddd9afbc8db9cdfe | [
"BSD-3-Clause"
] | null | null | null | riscv/llvm/3.5/cfe-3.5.0.src/test/Modules/macro-reexport/macro-reexport.cpp | tangyibin/goblin-core | 1940db6e95908c81687b2b22ddd9afbc8db9cdfe | [
"BSD-3-Clause"
] | null | null | null | riscv/llvm/3.5/cfe-3.5.0.src/test/Modules/macro-reexport/macro-reexport.cpp | tangyibin/goblin-core | 1940db6e95908c81687b2b22ddd9afbc8db9cdfe | [
"BSD-3-Clause"
] | 1 | 2021-03-24T06:40:32.000Z | 2021-03-24T06:40:32.000Z | // RUN: rm -rf %t
// RUN: %clang_cc1 -fsyntax-only -DD2 -I. %s -fmodules-cache-path=%t -verify
// RUN: %clang_cc1 -fsyntax-only -DD2 -I. -fmodules %s -fmodules-cache-path=%t -verify
// RUN: %clang_cc1 -fsyntax-only -DC1 -I. %s -fmodules-cache-path=%t -verify
// RUN: %clang_cc1 -fsyntax-only -DC1 -I. -fmodules %s -fmodu... | 40.428571 | 86 | 0.667845 | tangyibin |
47b3777228507d8e607d053d1b53f147fad2659b | 2,420 | cpp | C++ | src/KRAverager.cpp | AFriemann/LowCarb | 073e036a5fd6787943c4cbd76ab388dbd830e7d3 | [
"MIT"
] | null | null | null | src/KRAverager.cpp | AFriemann/LowCarb | 073e036a5fd6787943c4cbd76ab388dbd830e7d3 | [
"MIT"
] | 1 | 2018-12-15T13:57:26.000Z | 2018-12-15T13:57:26.000Z | src/KRAverager.cpp | AFriemann/LowCarb | 073e036a5fd6787943c4cbd76ab388dbd830e7d3 | [
"MIT"
] | null | null | null | /**
* @file KRAverager.cpp
* @author see AUTHORS
* @brief KRAverager definitions file.
*/
#include "KRAverager.hpp"
KRAverager::KRAverager() {}
KRAverager::KRAverager(int threshold){
this->threshold = threshold;
this->use_threshold = true;
}
void KRAverager::add_force_constant_tuple(const double forc... | 24.444444 | 115 | 0.604959 | AFriemann |
47b4e05940ac5f24462ab393bb1a8a52609d693f | 6,663 | cc | C++ | board.cc | juliusikkala/Pack-Against-The-Machine | 74fdf36ea7e9f0369e5b4a101f5e5aa43817c8ff | [
"MIT"
] | null | null | null | board.cc | juliusikkala/Pack-Against-The-Machine | 74fdf36ea7e9f0369e5b4a101f5e5aa43817c8ff | [
"MIT"
] | null | null | null | board.cc | juliusikkala/Pack-Against-The-Machine | 74fdf36ea7e9f0369e5b4a101f5e5aa43817c8ff | [
"MIT"
] | null | null | null | /*
MIT License
Copyright (c) 2019 Julius Ikkala
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, ... | 27.419753 | 79 | 0.579169 | juliusikkala |
47b518b1abc4f1f490c66a367ee50db7426244af | 2,783 | cpp | C++ | Immortal/Platform/D3D12/GuiLayer.cpp | QSXW/Immortal | 32adcc8609b318752dd97f1c14dc7368b47d47d1 | [
"Apache-2.0"
] | 6 | 2021-09-15T08:56:28.000Z | 2022-03-29T15:55:02.000Z | Immortal/Platform/D3D12/GuiLayer.cpp | DaShi-Git/Immortal | e3345b4ff2a2b9d215c682db2b4530e24cc3b203 | [
"Apache-2.0"
] | null | null | null | Immortal/Platform/D3D12/GuiLayer.cpp | DaShi-Git/Immortal | e3345b4ff2a2b9d215c682db2b4530e24cc3b203 | [
"Apache-2.0"
] | 4 | 2021-12-05T17:28:57.000Z | 2022-03-29T15:55:05.000Z | #include "impch.h"
#include "GuiLayer.h"
#ifndef _UNICODE
#define _UNICODE
#endif
#include <backends/imgui_impl_win32.h>
#include <backends/imgui_impl_dx12.cpp>
#include <backends/imgui_impl_glfw.h>
#include <GLFW/glfw3.h>
#include "Render/Render.h"
#include "Barrier.h"
#include "Event/ApplicationEvent.h"
namespace... | 25.3 | 91 | 0.683794 | QSXW |
47b55a245279ee6706aab62df9d1ad31bdf4374b | 1,626 | cpp | C++ | cpp/example/interpolate.cpp | mustafabar/RedSeaInterpolation | 5d40cbc6e54df7a867445e8fadd11f9f1cce8556 | [
"MIT"
] | null | null | null | cpp/example/interpolate.cpp | mustafabar/RedSeaInterpolation | 5d40cbc6e54df7a867445e8fadd11f9f1cce8556 | [
"MIT"
] | null | null | null | cpp/example/interpolate.cpp | mustafabar/RedSeaInterpolation | 5d40cbc6e54df7a867445e8fadd11f9f1cce8556 | [
"MIT"
] | null | null | null | #include "referencefunctions.h"
#include "interpolation.h"
#include <cmath>
#include <iostream>
#include <random>
void print_gradient(const Eigen::Vector3d &grad)
{
for (int i = 0; i < 3; i++) {
std::cout << grad(i) << ' ';
}
std::cout << std::endl;
}
void print_hessian(const Eigen::Matrix3d &hess)
{
for... | 23.911765 | 70 | 0.550431 | mustafabar |
47b9faa2f4d833ca5051111bf2f5b494edbebde7 | 17,617 | cpp | C++ | app/source/core/albumwrapper.cpp | iUltimateLP/NXGallery | 0b9085c789478e28b67dcce0f4902f11e135522d | [
"MIT"
] | 38 | 2020-05-10T14:03:25.000Z | 2022-02-17T09:11:21.000Z | app/source/core/albumwrapper.cpp | iUltimateLP/NXGallery | 0b9085c789478e28b67dcce0f4902f11e135522d | [
"MIT"
] | 14 | 2020-05-15T18:47:19.000Z | 2022-03-27T12:06:37.000Z | app/source/core/albumwrapper.cpp | iUltimateLP/NXGallery | 0b9085c789478e28b67dcce0f4902f11e135522d | [
"MIT"
] | null | null | null | /*
NXGallery for Nintendo Switch
Made with love by Jonathan Verbeek (jverbeek.de)
MIT License
Copyright (c) 2020-2021 Jonathan Verbeek
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
... | 34.611002 | 152 | 0.675768 | iUltimateLP |
47bb95da3c24f525aecff41fd0ef971fad3c6114 | 586 | cpp | C++ | source/chapter_05/listings/listing_05_14_waiting.cpp | ShinyGreenRobot/CPP-Primer-Plus-Sixth-Edition | ce2c8fca379508929dfd24dce10eff2c09117999 | [
"MIT"
] | null | null | null | source/chapter_05/listings/listing_05_14_waiting.cpp | ShinyGreenRobot/CPP-Primer-Plus-Sixth-Edition | ce2c8fca379508929dfd24dce10eff2c09117999 | [
"MIT"
] | null | null | null | source/chapter_05/listings/listing_05_14_waiting.cpp | ShinyGreenRobot/CPP-Primer-Plus-Sixth-Edition | ce2c8fca379508929dfd24dce10eff2c09117999 | [
"MIT"
] | null | null | null | /**
* \file
* listing_05_14_waiting.cpp
*
* \brief
* Using clock() in a time-delay loop.
*/
#include <ctime> // describes clock() function, clock_t type
#include <iostream>
int main()
{
using namespace std;
cout << "Enter the delay time, in seconds: ";
float secs;
cin >> secs;
clock_t delay = secs * CLO... | 20.206897 | 68 | 0.581911 | ShinyGreenRobot |
47bee0a2e539c092ccc7de0698b37716f69b4d28 | 722 | cpp | C++ | benchmark/benchmark.cpp | ortfero/pulse | 08cd78c20f16101b553e4e15f1a04011bb32722c | [
"MIT"
] | null | null | null | benchmark/benchmark.cpp | ortfero/pulse | 08cd78c20f16101b553e4e15f1a04011bb32722c | [
"MIT"
] | null | null | null | benchmark/benchmark.cpp | ortfero/pulse | 08cd78c20f16101b553e4e15f1a04011bb32722c | [
"MIT"
] | null | null | null | #include <stdio.h>
#include <pulse/pulse.hpp>
#include <ubench/ubench.hpp>
struct listener {
}; // listener
using slot_type = void(listener::*)();
bool flag = true;
struct handler: listener {
void slot() {
flag = !flag;
}
}; // handler
int main() {
handler h;
listener* l = &h;
slot_type s = slo... | 18.05 | 63 | 0.609418 | ortfero |
47bf81bc6c0b6c52ed41b6571e87789df5f4b611 | 5,009 | cpp | C++ | node_modules/ammo.js/bullet/Extras/CDTestFramework/Opcode/Ice/IceHPoint.cpp | Xielifen/three.js-master | 58467f729243d90da4b758b0fe130eb40458bc39 | [
"MIT"
] | 8 | 2015-02-28T15:33:39.000Z | 2019-06-12T19:59:34.000Z | node_modules/ammo.js/bullet/Extras/CDTestFramework/Opcode/Ice/IceHPoint.cpp | Xielifen/three.js-master | 58467f729243d90da4b758b0fe130eb40458bc39 | [
"MIT"
] | null | null | null | node_modules/ammo.js/bullet/Extras/CDTestFramework/Opcode/Ice/IceHPoint.cpp | Xielifen/three.js-master | 58467f729243d90da4b758b0fe130eb40458bc39 | [
"MIT"
] | 5 | 2016-04-13T12:22:36.000Z | 2022-01-14T19:18:52.000Z | /*
* ICE / OPCODE - Optimized Collision Detection
* http://www.codercorner.com/Opcode.htm
*
* Copyright (c) 2001-2008 Pierre Terdiman, pierre@codercorner.com
This software is provided 'as-is', without any express or implied warranty.
In no event will the authors be held liable for any damages arising from... | 56.920455 | 244 | 0.345578 | Xielifen |
47c023f0b5dcfc051c95481e24887c61fe759af6 | 427 | hpp | C++ | comp-project/global.hpp | 180254/TK-lab | 25436df5b93b174b75c89afda7f999b75c448e37 | [
"MIT"
] | 1 | 2017-05-17T09:20:06.000Z | 2017-05-17T09:20:06.000Z | comp-project/global.hpp | 180254/TK-lab | 25436df5b93b174b75c89afda7f999b75c448e37 | [
"MIT"
] | null | null | null | comp-project/global.hpp | 180254/TK-lab | 25436df5b93b174b75c89afda7f999b75c448e37 | [
"MIT"
] | 5 | 2018-06-05T20:00:42.000Z | 2021-11-22T17:53:54.000Z | #pragma once
#define YYDEBUG 0
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <iostream>
#include <string>
#include <sstream>
#include <vector>
#include <algorithm>
#include "main.hpp"
#include "node.hpp"
#include "inter.hpp"
#include "error.hpp"
#include "parser.m.hpp"
#include "lexer.hpp"
#defi... | 14.724138 | 23 | 0.648712 | 180254 |
47cb9d0b97b1426b29f3e5e58983f1836f85c062 | 5,697 | cpp | C++ | src/server/tests/httpserv.cpp | Ooggle/MUSIC-exclamation-mark | 55f4dd750d57227fac29d887d90e0c8ec2ad7397 | [
"MIT"
] | 7 | 2020-08-28T21:47:54.000Z | 2021-01-01T17:54:27.000Z | src/server/tests/httpserv.cpp | Ooggle/MUSIC-exclamation-mark | 55f4dd750d57227fac29d887d90e0c8ec2ad7397 | [
"MIT"
] | null | null | null | src/server/tests/httpserv.cpp | Ooggle/MUSIC-exclamation-mark | 55f4dd750d57227fac29d887d90e0c8ec2ad7397 | [
"MIT"
] | 1 | 2020-12-26T17:08:54.000Z | 2020-12-26T17:08:54.000Z | #include <unistd.h>
#include <regex.h>
#include <stdio.h>
#include <string.h>
#include <iostream>
#include <fstream>
#include <filesystem>
#include <string>
#include <vector>
#include "ServeurTcp.h"
int regexTwo(std::string paramsSource);
std::string getRequestLine(ServeurTcp *server) {
uint8_t data = 0;
std... | 27.128571 | 154 | 0.583289 | Ooggle |
47cd1e37825f8e92a0b03115f40569d7b50fb9da | 19,034 | cpp | C++ | src/mayaToAppleseed/src/mtap_common/mtap_mayaScene.cpp | haggi/OpenMaya | 746e0740f480d9ef8d2173f31b3c99b9b0ea0d24 | [
"MIT"
] | 42 | 2015-01-03T15:07:25.000Z | 2021-12-09T03:56:59.000Z | src/mayaToAppleseed/src/mtap_common/mtap_mayaScene.cpp | haggi/OpenMaya | 746e0740f480d9ef8d2173f31b3c99b9b0ea0d24 | [
"MIT"
] | 66 | 2015-01-02T13:28:44.000Z | 2022-03-16T14:00:57.000Z | src/mayaToAppleseed/src/mtap_common/mtap_mayaScene.cpp | haggi/OpenMaya | 746e0740f480d9ef8d2173f31b3c99b9b0ea0d24 | [
"MIT"
] | 12 | 2015-02-07T05:02:17.000Z | 2020-07-10T17:21:44.000Z | //#include <maya/MGlobal.h>
//#include <maya/MSelectionList.h>
//#include <maya/MFnDagNode.h>
//#include <maya/MFnMesh.h>
//
//#include "mtap_mayaScene.h"
//#include "utilities/logging.h"
//#include "utilities/tools.h"
//
//static Logging logger;
//
//
//mtap_MayaScene::mtap_MayaScene()
//{
// this->renderGlobals = nul... | 33.569665 | 170 | 0.651571 | haggi |
47cf00fae5011998560ada03737950ac7bb62787 | 10,474 | cpp | C++ | src/vizdoom/src/stringtable.cpp | johny-c/ViZDoom | 6fe0d2470872adbfa5d18c53c7704e6ff103cacc | [
"MIT"
] | 1,102 | 2017-02-02T15:39:57.000Z | 2022-03-23T09:43:29.000Z | src/stringtable.cpp | Leonan8995/Xenomia | 3f3743dd5aff047608ec31fb71186d177812c7df | [
"Unlicense"
] | 339 | 2017-02-17T09:55:38.000Z | 2022-03-29T11:44:01.000Z | src/stringtable.cpp | Leonan8995/Xenomia | 3f3743dd5aff047608ec31fb71186d177812c7df | [
"Unlicense"
] | 331 | 2017-02-02T15:34:42.000Z | 2022-03-23T02:42:24.000Z | /*
** stringtable.cpp
** Implements the FStringTable class
**
**---------------------------------------------------------------------------
** Copyright 1998-2006 Randy Heit
** All rights reserved.
**
** Redistribution and use in source and binary forms, with or without
** modification, are permitted provided ... | 24.35814 | 105 | 0.582776 | johny-c |
47d05694290c4feb5306e4ca153e7f48be286ece | 7,758 | cpp | C++ | sourceCode/fairport/branch/ankopp/samples/nameprop/main.cpp | enrondata/pstsdk | 70701d755f52412f0f21ed216968e314433a324e | [
"Apache-2.0"
] | 6 | 2019-07-11T23:24:55.000Z | 2021-08-03T16:31:12.000Z | sourceCode/fairport/trunk/samples/nameprop/main.cpp | Lingchar/pstsdk | 70701d755f52412f0f21ed216968e314433a324e | [
"Apache-2.0"
] | null | null | null | sourceCode/fairport/trunk/samples/nameprop/main.cpp | Lingchar/pstsdk | 70701d755f52412f0f21ed216968e314433a324e | [
"Apache-2.0"
] | 4 | 2019-04-17T07:08:30.000Z | 2020-10-12T22:35:19.000Z | #include <iostream>
#include <iomanip>
#include <string>
#include <vector>
#include "pstsdk/util/primitives.h"
#include "pstsdk/ltp/propbag.h"
#include "pstsdk/pst/pst.h"
using namespace std;
using namespace pstsdk;
void pretty_print(const guid& g, bool special)
{
cout << "{" << hex << setw(8) ... | 33.296137 | 143 | 0.526811 | enrondata |
47d13181a98c2598e4a158028c34d03f36fd8823 | 1,036 | cpp | C++ | tests/helics/core/FilterFederateTests.cpp | GMLC-TDC/HELICS-src | 5e37168bca0ea9e16b939e052e257182ca6e24bd | [
"BSD-3-Clause"
] | 31 | 2017-06-29T19:50:25.000Z | 2019-05-17T14:10:14.000Z | tests/helics/core/FilterFederateTests.cpp | GMLC-TDC/HELICS-src | 5e37168bca0ea9e16b939e052e257182ca6e24bd | [
"BSD-3-Clause"
] | 511 | 2017-08-18T02:14:00.000Z | 2019-06-18T20:11:02.000Z | tests/helics/core/FilterFederateTests.cpp | GMLC-TDC/HELICS-src | 5e37168bca0ea9e16b939e052e257182ca6e24bd | [
"BSD-3-Clause"
] | 11 | 2017-10-27T15:03:37.000Z | 2019-05-03T19:35:14.000Z | /*
Copyright (c) 2017-2022,
Battelle Memorial Institute; Lawrence Livermore National Security, LLC; Alliance for Sustainable
Energy, LLC. See the top-level NOTICE for additional details. All rights reserved.
SPDX-License-Identifier: BSD-3-Clause
*/
#include "helics/core/FilterFederate.hpp"
#include "gtest/gtest.h"
#i... | 34.533333 | 96 | 0.640927 | GMLC-TDC |
47d4584ca3bb595c6f631bc4e0efb3c1e688ab7d | 21,357 | cpp | C++ | cc/playground/sum_store-dir/FH_MicroTest.cpp | yangzheng2115/demofaster | 8968db65cf60a68f61c55e1e9becdbf226dc8d36 | [
"MIT"
] | null | null | null | cc/playground/sum_store-dir/FH_MicroTest.cpp | yangzheng2115/demofaster | 8968db65cf60a68f61c55e1e9becdbf226dc8d36 | [
"MIT"
] | null | null | null | cc/playground/sum_store-dir/FH_MicroTest.cpp | yangzheng2115/demofaster | 8968db65cf60a68f61c55e1e9becdbf226dc8d36 | [
"MIT"
] | null | null | null | #include <iostream>
#include <sstream>
#include <fstream>
#include <numa.h>
#include <experimental/filesystem>
#include "../../src/device/tracer.h"
#include <stdio.h>
#include <stdlib.h>
#include "../../src/core/faster.h"
#include "../../src/core/address.h"
#include "../../src/device/file_system_disk.h"
#include "../..... | 31.923767 | 118 | 0.565576 | yangzheng2115 |
47d65eeb0c3253b89dcdee21b395e44f7dd9baf0 | 12,056 | cpp | C++ | dev/Code/CryEngine/CryAISystem/Cover/EntityCoverSampler.cpp | crazyskateface/lumberyard | 164512f8d415d6bdf37e195af319ffe5f96a8f0b | [
"AML"
] | 5 | 2018-08-17T21:05:55.000Z | 2021-04-17T10:48:26.000Z | dev/Code/CryEngine/CryAISystem/Cover/EntityCoverSampler.cpp | JulianoCristian/Lumberyard-3 | dc523dd780f3cd1874251181b7cf6848b8db9959 | [
"AML"
] | null | null | null | dev/Code/CryEngine/CryAISystem/Cover/EntityCoverSampler.cpp | JulianoCristian/Lumberyard-3 | dc523dd780f3cd1874251181b7cf6848b8db9959 | [
"AML"
] | 5 | 2017-12-05T16:36:00.000Z | 2021-04-27T06:33:54.000Z | /*
* All or portions of this file Copyright (c) Amazon.com, Inc. or its affiliates or
* its licensors.
*
* For complete copyright and license terms please see the LICENSE at the root of this
* distribution (the "License"). All use of this software is governed by the License,
* or, if provided, by the license below or t... | 32.76087 | 118 | 0.492618 | crazyskateface |
47d7ca270d873f86db4cc6a614f4d6c07bfd46dc | 536 | cpp | C++ | 0402-Remove K Digits/0402-Remove K Digits.cpp | zhuangli1987/LeetCode-1 | e81788abf9e95e575140f32a58fe983abc97fa4a | [
"MIT"
] | 49 | 2018-05-05T02:53:10.000Z | 2022-03-30T12:08:09.000Z | 0401-0500/0402-Remove K Digits/0402-Remove K Digits.cpp | jolly-fellow/LeetCode | ab20b3ec137ed05fad1edda1c30db04ab355486f | [
"MIT"
] | 11 | 2017-12-15T22:31:44.000Z | 2020-10-02T12:42:49.000Z | 0401-0500/0402-Remove K Digits/0402-Remove K Digits.cpp | jolly-fellow/LeetCode | ab20b3ec137ed05fad1edda1c30db04ab355486f | [
"MIT"
] | 28 | 2017-12-05T10:56:51.000Z | 2022-01-26T18:18:27.000Z | class Solution {
public:
string removeKdigits(string num, int k) {
string result;
vector<char> St;
for (int i : num) {
while (!St.empty() && i < St.back() && k) {
St.pop_back();
--k;
}
St.push_back(i);
}
... | 23.304348 | 55 | 0.360075 | zhuangli1987 |
c51363e83136d67b82ce6d7ef937ed8359e3b71b | 1,018 | cpp | C++ | c/template/Template_Reverse.cpp | WeAreChampion/notes | 6c0f726d1003e5083d9cf1b75ac6905dc1c19c07 | [
"Apache-2.0"
] | 2 | 2018-11-17T15:36:00.000Z | 2022-03-16T09:01:16.000Z | c/template/Template_Reverse.cpp | WeAreChampion/notes | 6c0f726d1003e5083d9cf1b75ac6905dc1c19c07 | [
"Apache-2.0"
] | null | null | null | c/template/Template_Reverse.cpp | WeAreChampion/notes | 6c0f726d1003e5083d9cf1b75ac6905dc1c19c07 | [
"Apache-2.0"
] | null | null | null | #include<iostream>
using namespace std;
template<class Type>
void Reverse(Type array[], int length) {
for(int i = 0; i < length / 2; i++) {
Type temp;
temp = array[i];
array[i] = array[length - 1 - i];
array[length - 1 - i] = temp;
}
}
template<class Type>
void Reverse(Type array[], int start, int end) {
for... | 22.130435 | 50 | 0.600196 | WeAreChampion |
c5149b1ab96144b9c0660b342b4cf0bb4b3ada12 | 19,329 | cpp | C++ | src/freeSurface.cpp | krenzland/FreeSurfaceLBM | 5619edcf318623c3a4feac478db66663687bca94 | [
"MIT"
] | 8 | 2017-12-12T19:39:29.000Z | 2022-02-03T13:37:53.000Z | src/freeSurface.cpp | krenzland/FreeSurfaceLBM | 5619edcf318623c3a4feac478db66663687bca94 | [
"MIT"
] | 1 | 2020-07-23T13:51:06.000Z | 2020-07-23T20:16:56.000Z | src/freeSurface.cpp | krenzland/FreeSurfaceLBM | 5619edcf318623c3a4feac478db66663687bca94 | [
"MIT"
] | 3 | 2019-05-09T07:50:48.000Z | 2020-11-05T12:28:43.000Z | #include "freeSurface.hpp"
#include <iostream>
#include <numeric>
double computeFluidFraction(const std::vector<double> &fluidFraction, const std::vector<flag_t> &flags, int idx,
const std::vector<double> &mass) {
if (flags[idx] == flag_t::EMPTY) {
return 0.0;
} else if (fla... | 47.143902 | 140 | 0.569197 | krenzland |
c515da3d7291436f423257dc94f38d5e3e9913b8 | 2,874 | cpp | C++ | tool/keyinfo.cpp | drypot/san-2.x | 44e626793b1dc50826ba0f276d5cc69b7c9ca923 | [
"MIT"
] | 5 | 2019-12-27T07:30:03.000Z | 2020-10-13T01:08:55.000Z | tool/keyinfo.cpp | drypot/san-2.x | 44e626793b1dc50826ba0f276d5cc69b7c9ca923 | [
"MIT"
] | null | null | null | tool/keyinfo.cpp | drypot/san-2.x | 44e626793b1dc50826ba0f276d5cc69b7c9ca923 | [
"MIT"
] | 1 | 2020-07-27T22:36:40.000Z | 2020-07-27T22:36:40.000Z | /*
keyinfo.cpp
1995.08.18
*/
#include <pub/config.hpp>
#include <pub/common.hpp>
#include <pub/misc.hpp>
LRESULT CALLBACK _export WndProcpcs_main(HWND, UINT, WPARAM, LPARAM);
void pcs_main()
{
HWND hWnd;
MSG msg;
WNDCLASS wndclass;
wndclass.style = CS_OWNDC | CS_HREDRAW | CS_VREDRAW;... | 21.772727 | 134 | 0.691371 | drypot |
c51bd70ec717e6f7785a0665fb5ea391712fc42d | 16,884 | cpp | C++ | tests/TestAppMain.cpp | jakjinak/jj | d1d49cd75a63b7ec2b2497ed061e8c1145ff2eb7 | [
"MIT"
] | null | null | null | tests/TestAppMain.cpp | jakjinak/jj | d1d49cd75a63b7ec2b2497ed061e8c1145ff2eb7 | [
"MIT"
] | null | null | null | tests/TestAppMain.cpp | jakjinak/jj | d1d49cd75a63b7ec2b2497ed061e8c1145ff2eb7 | [
"MIT"
] | null | null | null | #include "jj/gui/application.h"
#include "jj/gui/window.h"
#include "jj/gui/textLabel.h"
#include "jj/gui/textInput.h"
#include "jj/gui/comboBox.h"
#include "jj/gui/tree.h"
#include "jj/gui/button.h"
#include "jj/gui/sizer.h"
#include "jj/stream.h"
#include <sstream>
#include "jj/directories.h"
class myTreeThing : pub... | 43.181586 | 252 | 0.529377 | jakjinak |
c51db82bae8d0851f4241bf6ab66fcaeba33b9a9 | 3,424 | cpp | C++ | projects/view3d/textures/texture_base.cpp | psryland/rylogic_code | f79e471fe0d6714c5e0cf8385ddc2a88ab2e082b | [
"CNRI-Python"
] | 2 | 2020-11-11T16:19:04.000Z | 2021-01-19T01:53:29.000Z | projects/view3d/textures/texture_base.cpp | psryland/rylogic_code | f79e471fe0d6714c5e0cf8385ddc2a88ab2e082b | [
"CNRI-Python"
] | 1 | 2020-07-27T09:00:21.000Z | 2020-07-27T10:58:10.000Z | projects/view3d/textures/texture_base.cpp | psryland/rylogic_code | f79e471fe0d6714c5e0cf8385ddc2a88ab2e082b | [
"CNRI-Python"
] | 1 | 2021-04-04T01:39:55.000Z | 2021-04-04T01:39:55.000Z | //*********************************************
// Renderer
// Copyright (c) Rylogic Ltd 2012
//*********************************************
#include "pr/view3d/forward.h"
#include "pr/view3d/render/renderer.h"
#include "pr/view3d/textures/texture_base.h"
#include "pr/view3d/textures/texture_manager.h"
namespace pr:... | 32.923077 | 166 | 0.722255 | psryland |
c51e318a927fd1b3ae31dc7e4b176093e98838dc | 571 | cc | C++ | src/connectivity/network/testing/netemul/runner/format.cc | yanyushr/fuchsia | 98e70672a81a206d235503e398f37b7b65581f79 | [
"BSD-3-Clause"
] | 1 | 2019-10-09T10:50:57.000Z | 2019-10-09T10:50:57.000Z | src/connectivity/network/testing/netemul/runner/format.cc | bootingman/fuchsia2 | 04012f0aa1edd1d4108a2ac647a65e59730fc4c2 | [
"BSD-3-Clause"
] | null | null | null | src/connectivity/network/testing/netemul/runner/format.cc | bootingman/fuchsia2 | 04012f0aa1edd1d4108a2ac647a65e59730fc4c2 | [
"BSD-3-Clause"
] | null | null | null | // Copyright 2019 The Fuchsia Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "format.h"
#include <iomanip>
namespace netemul {
namespace internal {
void FormatTime(std::ostream* stream, zx_time_t timestamp) {
if (strea... | 25.954545 | 73 | 0.625219 | yanyushr |
c5210172b004b41944ea57f390439356a017af8a | 12,696 | cpp | C++ | M5StickTest-IoTHub/src/main.cpp | tkopacz/2019M5StickC | 1435fb81c4b2b52315eca82f2c824db5c412d946 | [
"MIT"
] | null | null | null | M5StickTest-IoTHub/src/main.cpp | tkopacz/2019M5StickC | 1435fb81c4b2b52315eca82f2c824db5c412d946 | [
"MIT"
] | null | null | null | M5StickTest-IoTHub/src/main.cpp | tkopacz/2019M5StickC | 1435fb81c4b2b52315eca82f2c824db5c412d946 | [
"MIT"
] | null | null | null | /**
* A simple Azure IoT example for sending telemetry.
* Watchdog
* Interupt on GPIO
* Read almost all parameters from M5StickC
* Commands: start | stop, ledon | ledoff, delay {"ms":1000}
*/
#include <Arduino.h>
#include <M5StickC.h>
#include <WiFi.h>
#include <ArduinoJson.h>
#include "Esp32MQTTClient.h"
#includ... | 30.446043 | 171 | 0.625236 | tkopacz |
c52424c8d38cf9406241a25a52a4b317ab0f7fb3 | 20,372 | cpp | C++ | CastingEssentials/Modules/CameraTools.cpp | PazerOP/CastingEssentials | d0bd4265233a6fa8d428cdcba326ac0574354a03 | [
"BSD-2-Clause"
] | 30 | 2016-11-13T00:50:34.000Z | 2022-01-28T04:16:19.000Z | CastingEssentials/Modules/CameraTools.cpp | PazerOP/CastingEssentials | d0bd4265233a6fa8d428cdcba326ac0574354a03 | [
"BSD-2-Clause"
] | 92 | 2016-11-11T18:33:02.000Z | 2020-11-14T13:06:56.000Z | CastingEssentials/Modules/CameraTools.cpp | PazerOP/CastingEssentials | d0bd4265233a6fa8d428cdcba326ac0574354a03 | [
"BSD-2-Clause"
] | 12 | 2017-04-27T18:27:20.000Z | 2022-03-16T08:45:35.000Z | #include "CameraTools.h"
#include "Misc/CCvar.h"
#include "Misc/HLTVCameraHack.h"
#include "Modules/Camera/SimpleCameraSmooth.h"
#include "Modules/CameraSmooths.h"
#include "Modules/CameraState.h"
#include "PluginBase/Entities.h"
#include "PluginBase/HookManager.h"
#include "PluginBase/Interfaces.h"
#include "PluginBas... | 28.452514 | 256 | 0.6828 | PazerOP |
c52514166be8497b2091345590192675581da905 | 2,434 | hpp | C++ | Camera.hpp | Adrijaned/oglPlaygorund | ce3c31669263545650efcc4b12dd22e6517ccaa7 | [
"MIT"
] | null | null | null | Camera.hpp | Adrijaned/oglPlaygorund | ce3c31669263545650efcc4b12dd22e6517ccaa7 | [
"MIT"
] | null | null | null | Camera.hpp | Adrijaned/oglPlaygorund | ce3c31669263545650efcc4b12dd22e6517ccaa7 | [
"MIT"
] | null | null | null | //
// Created by adrijarch on 5/11/19.
//
#ifndef OGLPLAYGROUND_CAMERA_HPP
#define OGLPLAYGROUND_CAMERA_HPP
#include <glm/glm.hpp>
/**
* OGL style camera for computing view matrix for use by shaders.
*/
class Camera {
/**
* Position of the camera itself in the source coordinate system.
*/
glm::vec3 posit... | 26.456522 | 80 | 0.672555 | Adrijaned |
c52f1092a61bc918798d7d1d82e3255581c72fa1 | 2,158 | cpp | C++ | dictionary_std_vector/src/dictionary_std_vector.cpp | Arghnews/wordsearch_solver | cf25db64ca3d1facd9191aad075654f124f0d580 | [
"MIT"
] | null | null | null | dictionary_std_vector/src/dictionary_std_vector.cpp | Arghnews/wordsearch_solver | cf25db64ca3d1facd9191aad075654f124f0d580 | [
"MIT"
] | null | null | null | dictionary_std_vector/src/dictionary_std_vector.cpp | Arghnews/wordsearch_solver | cf25db64ca3d1facd9191aad075654f124f0d580 | [
"MIT"
] | null | null | null | #include "wordsearch_solver/dictionary_std_vector/dictionary_std_vector.hpp"
#include <fmt/format.h>
#include <fmt/ostream.h>
#include <fmt/ranges.h>
#include <range/v3/view/all.hpp>
#include <range/v3/view/transform.hpp>
#include <algorithm>
#include <cassert>
#include <cstddef>
#include <ostream>
#include <string>... | 30.394366 | 76 | 0.68165 | Arghnews |
c532c00b414b4ddb9685037a54ae024dc92ae6f4 | 3,943 | cpp | C++ | libcaf_core/test/node_id.cpp | jsiwek/actor-framework | 06cd2836f4671725cb7eaa22b3cc115687520fc1 | [
"BSL-1.0",
"BSD-3-Clause"
] | 4 | 2019-05-03T05:38:15.000Z | 2020-08-25T15:23:19.000Z | libcaf_core/test/node_id.cpp | jsiwek/actor-framework | 06cd2836f4671725cb7eaa22b3cc115687520fc1 | [
"BSL-1.0",
"BSD-3-Clause"
] | null | null | null | libcaf_core/test/node_id.cpp | jsiwek/actor-framework | 06cd2836f4671725cb7eaa22b3cc115687520fc1 | [
"BSL-1.0",
"BSD-3-Clause"
] | null | null | null | /******************************************************************************
* ____ _ _____ *
* / ___| / \ | ___| C++ *
* | | / _ \ | |_ Actor *
... | 39.43 | 80 | 0.503677 | jsiwek |
c533328548e5885b901f2ad1f6377d57a4c1c195 | 6,034 | cpp | C++ | code/src/utils/CommandLineParser.cpp | reuqlauQemoN/streamopenacc | c8d74dcea6b28e1038d76ab27fca5c23e21ecead | [
"Apache-1.1"
] | 69 | 2015-07-02T05:25:29.000Z | 2022-01-10T08:54:46.000Z | code/src/utils/CommandLineParser.cpp | xiaguoyang/streamDM-Cpp | 0304d03393f6987596aa445a0506631655297e79 | [
"Apache-1.1"
] | 3 | 2015-08-15T06:42:17.000Z | 2021-05-17T09:30:51.000Z | code/src/utils/CommandLineParser.cpp | xiaguoyang/streamDM-Cpp | 0304d03393f6987596aa445a0506631655297e79 | [
"Apache-1.1"
] | 40 | 2015-07-02T06:03:26.000Z | 2021-12-16T02:07:29.000Z | /*
* Copyright (C) 2015 Holmes Team at HUAWEI Noah's Ark Lab.
*
* 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 ap... | 23.118774 | 136 | 0.592973 | reuqlauQemoN |
c53412834662148177d1887ff675abd21587750b | 519 | hpp | C++ | bullpen_sketch/state.hpp | estriz27/bullpen | 11ee415d7f2b2b211a2c9e34a173e016f298b85c | [
"MIT"
] | null | null | null | bullpen_sketch/state.hpp | estriz27/bullpen | 11ee415d7f2b2b211a2c9e34a173e016f298b85c | [
"MIT"
] | null | null | null | bullpen_sketch/state.hpp | estriz27/bullpen | 11ee415d7f2b2b211a2c9e34a173e016f298b85c | [
"MIT"
] | null | null | null | #ifndef __STATE__
#define __STATE__
#include "person.hpp"
#include <stdlib.h>
#include <vector>
#include <algorithm>
class State{
//Has a vector of class Person
std::vector<Person> people;
public:
State(std::vector<Person> people):people(people){}
std::vector<Person> getInList();
std::vector<Person> getOutL... | 21.625 | 92 | 0.739884 | estriz27 |
c535f8431ab336b1c7aa31b25ddd5ee5ce0c85b4 | 21,474 | cpp | C++ | lc7/src/CLC7ColorManager.cpp | phixion/l0phtcrack | 48ee2f711134e178dbedbd925640f6b3b663fbb5 | [
"Apache-2.0",
"MIT"
] | 2 | 2021-10-18T22:14:22.000Z | 2021-11-08T12:52:42.000Z | lc7/src/CLC7ColorManager.cpp | Brute-f0rce/l0phtcrack | 25f681c07828e5e68e0dd788d84cc13c154aed3d | [
"Apache-2.0",
"MIT"
] | null | null | null | lc7/src/CLC7ColorManager.cpp | Brute-f0rce/l0phtcrack | 25f681c07828e5e68e0dd788d84cc13c154aed3d | [
"Apache-2.0",
"MIT"
] | 1 | 2022-03-14T06:41:16.000Z | 2022-03-14T06:41:16.000Z | #include"stdafx.h"
#define QT_QTPROPERTYBROWSER_IMPORT
#include"../../external/qtpropertybrowser/src/QtPropertyManager.h"
#undef TR
#define TR
CLC7ColorManager::CLC7ColorManager()
{
TR;
m_currentScreen = qApp->primaryScreen();
ILC7Settings *settings = CLC7App::getInstance()->GetController()->GetS... | 29.866481 | 142 | 0.699776 | phixion |
c537dafd6762760c817d86e1c313e8b73f3d8d93 | 946 | inl | C++ | TAO/orbsvcs/orbsvcs/FtRtEvent/Utils/Log.inl | cflowe/ACE | 5ff60b41adbe1772372d1a43bcc1f2726ff8f810 | [
"DOC"
] | 36 | 2015-01-10T07:27:33.000Z | 2022-03-07T03:32:08.000Z | TAO/orbsvcs/orbsvcs/FtRtEvent/Utils/Log.inl | cflowe/ACE | 5ff60b41adbe1772372d1a43bcc1f2726ff8f810 | [
"DOC"
] | 2 | 2018-08-13T07:30:51.000Z | 2019-02-25T03:04:31.000Z | TAO/orbsvcs/orbsvcs/FtRtEvent/Utils/Log.inl | cflowe/ACE | 5ff60b41adbe1772372d1a43bcc1f2726ff8f810 | [
"DOC"
] | 38 | 2015-01-08T14:12:06.000Z | 2022-01-19T08:33:00.000Z | // -*- C++ -*-
//
// $Id: Log.inl 97014 2013-04-12 22:47:02Z mitza $
#include "orbsvcs/Log_Macros.h"
#include "orbsvcs/Log_Macros.h"
#include "orbsvcs/Log_Macros.h"
TAO_BEGIN_VERSIONED_NAMESPACE_DECL
namespace TAO_FTRTEC {
#ifndef NDEBUG
ACE_INLINE
void Log::level(unsigned int log_level)
{
log_level_ = log... | 16.892857 | 90 | 0.668076 | cflowe |
c539f8932a5650fab69b759c1a2de0beda728576 | 4,151 | hpp | C++ | include/lemon/deprecated/old_hadoop.hpp | frodofine/lemon | f874857cb8f1851313257b25681ad2a254ada8dc | [
"BSD-3-Clause"
] | 43 | 2018-07-21T22:08:48.000Z | 2022-03-23T22:19:02.000Z | include/lemon/deprecated/old_hadoop.hpp | frodofine/lemon | f874857cb8f1851313257b25681ad2a254ada8dc | [
"BSD-3-Clause"
] | 22 | 2018-08-01T19:13:11.000Z | 2020-06-02T17:04:03.000Z | include/lemon/deprecated/old_hadoop.hpp | frodofine/lemon | f874857cb8f1851313257b25681ad2a254ada8dc | [
"BSD-3-Clause"
] | 9 | 2018-07-21T19:13:55.000Z | 2020-12-22T09:12:43.000Z | #ifndef OLD_HADOOP_HPP
#define OLD_HADOOP_HPP
#include <cassert>
#include <cstdint>
#include <fstream>
#include <string>
#include <vector>
namespace lemon {
namespace deprecated {
class Hadoop {
public:
Hadoop(std::istream& stream) : stream_(stream) { initialize_(); }
bool has_next() { return stream_.pee... | 25.623457 | 89 | 0.544929 | frodofine |
c53e98d98e08647802a598c9c84c29967bd12389 | 1,159 | cpp | C++ | c++/srcs/box.cpp | takurooo/heif | d07c0fd06a9ed34d3ad981cc285f50d1a952534c | [
"MIT"
] | null | null | null | c++/srcs/box.cpp | takurooo/heif | d07c0fd06a9ed34d3ad981cc285f50d1a952534c | [
"MIT"
] | null | null | null | c++/srcs/box.cpp | takurooo/heif | d07c0fd06a9ed34d3ad981cc285f50d1a952534c | [
"MIT"
] | null | null | null | // -----------------------------------------
// include
// -----------------------------------------
#include <iostream>
#include "util.h"
#include "fourcc.h"
#include "box.h"
// -----------------------------------------
// define
// -----------------------------------------
// ----------------------------------------... | 19.644068 | 75 | 0.397757 | takurooo |
c540bf573606c9af6e567af44d851c02dc0cb358 | 641 | cpp | C++ | Dataset/Leetcode/train/13/918.cpp | kkcookies99/UAST | fff81885aa07901786141a71e5600a08d7cb4868 | [
"MIT"
] | null | null | null | Dataset/Leetcode/train/13/918.cpp | kkcookies99/UAST | fff81885aa07901786141a71e5600a08d7cb4868 | [
"MIT"
] | null | null | null | Dataset/Leetcode/train/13/918.cpp | kkcookies99/UAST | fff81885aa07901786141a71e5600a08d7cb4868 | [
"MIT"
] | null | null | null | class Solution {
public:
int getValue(const char c){
switch(c){
case 'I': return 1;
case 'V': return 5;
case 'X': return 10;
case 'L': return 50;
case 'C': return 100;
case 'D': return 500;
case 'M': return 1000;
} ... | 24.653846 | 55 | 0.413417 | kkcookies99 |
c54393a37db674bfcfe6d7486fac8702e6001909 | 6,356 | cpp | C++ | vs_net/lesson30/Tmatrix.cpp | neozhou2009/nehe-opengl | 9f073e5b092ad8dbcb21393871a2855fe86a65c6 | [
"MIT"
] | 177 | 2017-12-31T04:44:27.000Z | 2022-03-23T10:08:03.000Z | vs_net/lesson30/Tmatrix.cpp | neozhou2009/nehe-opengl | 9f073e5b092ad8dbcb21393871a2855fe86a65c6 | [
"MIT"
] | 2 | 2018-06-28T20:28:33.000Z | 2018-09-09T17:34:44.000Z | vs_net/lesson30/Tmatrix.cpp | neozhou2009/nehe-opengl | 9f073e5b092ad8dbcb21393871a2855fe86a65c6 | [
"MIT"
] | 72 | 2018-01-07T16:41:29.000Z | 2022-03-18T17:57:38.000Z | /*******************************************************************************/
/*********************************21/09/200*************************************/
/**********************Programmer: Dimitrios Christopoulos**********************/
/**********************for the oglchallenge contest***********************... | 21.767123 | 102 | 0.509912 | neozhou2009 |
c54479b8a4b55c8b35b98b297f3c33a6792bb2fa | 40,773 | cxx | C++ | main/slideshow/source/engine/shapes/viewshape.cxx | Grosskopf/openoffice | 93df6e8a695d5e3eac16f3ad5e9ade1b963ab8d7 | [
"Apache-2.0"
] | 679 | 2015-01-06T06:34:58.000Z | 2022-03-30T01:06:03.000Z | main/slideshow/source/engine/shapes/viewshape.cxx | Grosskopf/openoffice | 93df6e8a695d5e3eac16f3ad5e9ade1b963ab8d7 | [
"Apache-2.0"
] | 102 | 2017-11-07T08:51:31.000Z | 2022-03-17T12:13:49.000Z | main/slideshow/source/engine/shapes/viewshape.cxx | Grosskopf/openoffice | 93df6e8a695d5e3eac16f3ad5e9ade1b963ab8d7 | [
"Apache-2.0"
] | 331 | 2015-01-06T11:40:55.000Z | 2022-03-14T04:07:51.000Z | /**************************************************************
*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to y... | 45.556425 | 137 | 0.473009 | Grosskopf |
c544e038a050d0f02a4c8bd73294457099d108a9 | 660 | hpp | C++ | include/SplayLibrary/Core/RenderWindow.hpp | Reiex/SplayLibrary | 94b68f371ea4c662c84dfe2dd0a6d1625b60fb04 | [
"MIT"
] | 1 | 2021-12-14T21:36:39.000Z | 2021-12-14T21:36:39.000Z | include/SplayLibrary/Core/RenderWindow.hpp | Reiex/SplayLibrary | 94b68f371ea4c662c84dfe2dd0a6d1625b60fb04 | [
"MIT"
] | null | null | null | include/SplayLibrary/Core/RenderWindow.hpp | Reiex/SplayLibrary | 94b68f371ea4c662c84dfe2dd0a6d1625b60fb04 | [
"MIT"
] | null | null | null | #pragma once
#include <SplayLibrary/Core/types.hpp>
namespace spl
{
class RenderWindow : public Window
{
public:
RenderWindow(const uvec2& size, const std::string& title);
RenderWindow(const RenderWindow& window) = delete;
RenderWindow(RenderWindow&& window) = delete;
const RenderWindo... | 20.625 | 71 | 0.680303 | Reiex |
c5460a64ed3932f8d78a3dacd0971d66ec8f8c82 | 5,631 | hpp | C++ | core/include/component/ComponentManager.hpp | Floriantoine/MyHunter_Sfml | 8744e1b03d9d5fb621f9cba7619d9d5dd943e428 | [
"MIT"
] | null | null | null | core/include/component/ComponentManager.hpp | Floriantoine/MyHunter_Sfml | 8744e1b03d9d5fb621f9cba7619d9d5dd943e428 | [
"MIT"
] | null | null | null | core/include/component/ComponentManager.hpp | Floriantoine/MyHunter_Sfml | 8744e1b03d9d5fb621f9cba7619d9d5dd943e428 | [
"MIT"
] | null | null | null |
#pragma once
#include "../assert.hpp"
#include "../types.hpp"
#include "./ComponentBase.hpp"
#include "tools/Chrono.hpp"
#include "tools/jsonTools.hpp"
#include <cassert>
#include <functional>
#include <iostream>
#include <memory>
#include <unordered_map>
#include <vector>
namespace fa {
class ComponentManager {
... | 30.603261 | 78 | 0.604866 | Floriantoine |
c54a1e61064a6e382807f76565563f4de81af472 | 2,104 | hpp | C++ | include/sysmakeshift/detail/transaction.hpp | mbeutel/sysmakeshift | d6451315281b229222cb77f916c36b831acb054c | [
"BSL-1.0"
] | 2 | 2020-11-15T14:09:17.000Z | 2022-01-14T15:20:02.000Z | include/sysmakeshift/detail/transaction.hpp | mbeutel/sysmakeshift | d6451315281b229222cb77f916c36b831acb054c | [
"BSL-1.0"
] | 2 | 2020-02-16T02:20:22.000Z | 2020-02-16T20:49:03.000Z | include/sysmakeshift/detail/transaction.hpp | mbeutel/sysmakeshift | d6451315281b229222cb77f916c36b831acb054c | [
"BSL-1.0"
] | 1 | 2021-09-02T07:44:42.000Z | 2021-09-02T07:44:42.000Z |
#ifndef INCLUDED_SYSMAKESHIFT_DETAIL_TRANSACTION_HPP_
#define INCLUDED_SYSMAKESHIFT_DETAIL_TRANSACTION_HPP_
#include <utility> // for move(), exchange()
#include <type_traits> // for integral_constant<>
namespace sysmakeshift {
namespace detail {
// TODO: Should this be in gsl-lite? B. Stroustrup rightf... | 23.909091 | 163 | 0.710076 | mbeutel |
c54a6db60416ac3dcb710cdfae8fc0cd9c344f24 | 394 | hpp | C++ | common/cxx/adstutil_cxx/include/adstutil_cxx/make_array.hpp | csitarichie/someip_cyclone_dds_bridge | 2ccaaa6e2484a938b08562497431df61ab23769f | [
"MIT"
] | null | null | null | common/cxx/adstutil_cxx/include/adstutil_cxx/make_array.hpp | csitarichie/someip_cyclone_dds_bridge | 2ccaaa6e2484a938b08562497431df61ab23769f | [
"MIT"
] | null | null | null | common/cxx/adstutil_cxx/include/adstutil_cxx/make_array.hpp | csitarichie/someip_cyclone_dds_bridge | 2ccaaa6e2484a938b08562497431df61ab23769f | [
"MIT"
] | null | null | null | #pragma once
#include <array>
namespace adst::common {
template <typename... T>
constexpr auto make_array(T&&... values)
-> std::array<typename std::decay<typename std::common_type<T...>::type>::type, sizeof...(T)>
{
return std::array<typename std::decay<typename std::common_type<T...>::type>::type, sizeof..... | 26.266667 | 102 | 0.64467 | csitarichie |
c54b7a848a2452a52969d35624503c2a453077a4 | 8,895 | cpp | C++ | src/ISOBMFF.cpp | Ultraschall/ultraschall-3 | 7e2479fc0eb877a9b4979bedaf92f95bad627073 | [
"MIT"
] | 11 | 2018-07-08T09:14:22.000Z | 2019-11-08T02:54:42.000Z | src/ISOBMFF.cpp | Ultraschall/ultraschall-3 | 7e2479fc0eb877a9b4979bedaf92f95bad627073 | [
"MIT"
] | 17 | 2018-01-18T23:12:15.000Z | 2019-02-03T07:47:51.000Z | src/ISOBMFF.cpp | Ultraschall/ultraschall-3 | 7e2479fc0eb877a9b4979bedaf92f95bad627073 | [
"MIT"
] | 4 | 2018-03-07T19:38:29.000Z | 2019-01-10T09:04:05.000Z | ////////////////////////////////////////////////////////////////////////////////
//
// Copyright (c) The Ultraschall Project (http://ultraschall.fm)
//
// The MIT License (MIT)
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the ... | 33.821293 | 109 | 0.665318 | Ultraschall |
c54d606e4e2bd9db74ad536c7b00ae70bbc1a342 | 3,540 | cpp | C++ | components/events-comp/event_loop.cpp | chegewara/esp32sx-c-plus-wrappers | dcc61fc057d6d07b354b4bd352956240707ca482 | [
"MIT"
] | 3 | 2021-12-15T10:24:08.000Z | 2022-03-10T14:34:10.000Z | components/events-comp/event_loop.cpp | chegewara/esp32sx-c-plus-wrappers | dcc61fc057d6d07b354b4bd352956240707ca482 | [
"MIT"
] | null | null | null | components/events-comp/event_loop.cpp | chegewara/esp32sx-c-plus-wrappers | dcc61fc057d6d07b354b4bd352956240707ca482 | [
"MIT"
] | null | null | null | #include <stdio.h>
#include "events.h"
bool EventLoop::default_running = false;
EventLoop::EventLoop() {}
EventLoop::~EventLoop() {}
esp_err_t EventLoop::init(const char* name)
{
if(event_loop != NULL) return ESP_FAIL;
esp_event_loop_args_t event_loop_args = {};
event_loop_args.queue_size = 5;
event... | 32.181818 | 152 | 0.781356 | chegewara |
c54dedd28857f908927db90eab10f5938387c41e | 1,430 | hpp | C++ | cppcache/integration-test/TimeBomb.hpp | alb3rtobr/geode-native | bab0b5238b6b7688645a935bbaa74532f0f4d9b8 | [
"Apache-2.0"
] | null | null | null | cppcache/integration-test/TimeBomb.hpp | alb3rtobr/geode-native | bab0b5238b6b7688645a935bbaa74532f0f4d9b8 | [
"Apache-2.0"
] | null | null | null | cppcache/integration-test/TimeBomb.hpp | alb3rtobr/geode-native | bab0b5238b6b7688645a935bbaa74532f0f4d9b8 | [
"Apache-2.0"
] | null | null | null | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may ... | 28.039216 | 75 | 0.739161 | alb3rtobr |
c54e48b694238e9352bda8d66173e8da7373209b | 1,541 | cpp | C++ | shape.cpp | anthony-bartman/Painting-Pixels | ec820fc1fa422c0d4ca10dedfe83d8a9bce61b92 | [
"MIT"
] | null | null | null | shape.cpp | anthony-bartman/Painting-Pixels | ec820fc1fa422c0d4ca10dedfe83d8a9bce61b92 | [
"MIT"
] | null | null | null | shape.cpp | anthony-bartman/Painting-Pixels | ec820fc1fa422c0d4ca10dedfe83d8a9bce61b92 | [
"MIT"
] | null | null | null | /**
* Anthony Bartman
* Dr. Varnell
* Computer Graphics: CS 3210 021
* 05/03/2020
*
* Desc:
* This file handles all of the shape method functions.
*/
#include "shape.h"
/*********************************************************
* Construction / Destruction
*************************************************... | 23.707692 | 74 | 0.491239 | anthony-bartman |
c55a096e83e4da80b2c6fd24b9ba7cd94c0f4319 | 1,139 | cpp | C++ | chapter11/ex09_binary_io.cpp | ClassAteam/stroustrup-ppp | ea9e85d4ea9890038eb5611c3bc82734c8706ce7 | [
"MIT"
] | 124 | 2018-06-23T10:16:56.000Z | 2022-03-19T15:16:12.000Z | chapter11/ex09_binary_io.cpp | therootfolder/stroustrup-ppp | b1e936c9a67b9205fdc9712c42496b45200514e2 | [
"MIT"
] | 23 | 2018-02-08T20:57:46.000Z | 2021-10-08T13:58:29.000Z | chapter11/ex09_binary_io.cpp | ClassAteam/stroustrup-ppp | ea9e85d4ea9890038eb5611c3bc82734c8706ce7 | [
"MIT"
] | 65 | 2019-05-27T03:05:56.000Z | 2022-03-26T03:43:05.000Z | #include "../text_lib/std_lib_facilities.h"
vector<int> binary_in(const string& fname)
// read in a file and store as binary in vector
{
ifstream ifs {fname, ios_base::binary};
if (!ifs) error("can't read from file ", fname);
vector<int> v;
for (int x; ifs.read(as_bytes(x), sizeof(int)); )
... | 22.333333 | 58 | 0.604039 | ClassAteam |
c55be2e5e9ee6dc51a87ffc337c01cc48707c056 | 3,284 | cpp | C++ | frame_dropper/src/frame_dropper.cpp | robotics-upo/siar_packages | 2b9b3e7acbc9bc5845b03d63eb18dbc50bfd3c98 | [
"BSD-3-Clause"
] | 3 | 2020-02-06T13:36:38.000Z | 2020-11-10T08:52:23.000Z | frame_dropper/src/frame_dropper.cpp | robotics-upo/siar_packages | 2b9b3e7acbc9bc5845b03d63eb18dbc50bfd3c98 | [
"BSD-3-Clause"
] | null | null | null | frame_dropper/src/frame_dropper.cpp | robotics-upo/siar_packages | 2b9b3e7acbc9bc5845b03d63eb18dbc50bfd3c98 | [
"BSD-3-Clause"
] | 2 | 2017-03-20T16:08:37.000Z | 2018-04-22T04:26:12.000Z | #include <ros/ros.h>
#include <image_transport/image_transport.h>
// OpenCV stuff
#include <opencv2/core/core.hpp>
#include <opencv2/imgproc/imgproc.hpp>
// OpenCV to ROS stuff
#include <cv_bridge/cv_bridge.h>
class FrameDropper
{
public:
FrameDropper(void) : it(nh)
{
// Resolve the camera topic
cameraTo... | 26.272 | 129 | 0.654385 | robotics-upo |
c55c929cdfd49640ca3edc33507edc00a4002221 | 22,593 | cpp | C++ | src/OpcUaStackCore/Base/DataMemArray.cpp | gianricardo/OpcUaStack | ccdef574175ffe8b7e82b886abc5e5403968b280 | [
"Apache-2.0"
] | 108 | 2018-10-08T17:03:32.000Z | 2022-03-21T00:52:26.000Z | src/OpcUaStackCore/Base/DataMemArray.cpp | gianricardo/OpcUaStack | ccdef574175ffe8b7e82b886abc5e5403968b280 | [
"Apache-2.0"
] | 287 | 2018-09-18T14:59:12.000Z | 2022-01-13T12:28:23.000Z | src/OpcUaStackCore/Base/DataMemArray.cpp | gianricardo/OpcUaStack | ccdef574175ffe8b7e82b886abc5e5403968b280 | [
"Apache-2.0"
] | 32 | 2018-10-19T14:35:03.000Z | 2021-11-12T09:36:46.000Z | /*
Copyright 2017 Kai Huebl (kai@huebl-sgh.de)
Lizenziert gemäß Apache Licence Version 2.0 (die „Lizenz“); Nutzung dieser
Datei nur in Übereinstimmung mit der Lizenz erlaubt.
Eine Kopie der Lizenz erhalten Sie auf http://www.apache.org/licenses/LICENSE-2.0.
Sofern nicht gemäß geltendem Recht vorgeschri... | 24.909592 | 118 | 0.653565 | gianricardo |
c55d3b2b1b9849962d00f948cc8c4610eef73a73 | 426 | cpp | C++ | srcs/tc.common/byte_buffer.cpp | aoziczero/libtc | 7f5afc2324bc91bf38e53b474d80804b48b546a5 | [
"MIT"
] | null | null | null | srcs/tc.common/byte_buffer.cpp | aoziczero/libtc | 7f5afc2324bc91bf38e53b474d80804b48b546a5 | [
"MIT"
] | null | null | null | srcs/tc.common/byte_buffer.cpp | aoziczero/libtc | 7f5afc2324bc91bf38e53b474d80804b48b546a5 | [
"MIT"
] | null | null | null | #include "stdafx.h"
#include "byte_buffer.hpp"
namespace tc {
namespace buffer {
position::position(void)
: read(0), write(0) {}
position::position(const position& rhs)
: read(rhs.read), write(rhs.write) {}
position& position::operator=(const position& rhs) {
read = rhs.read;
write = rhs.write;
return *this;... | 17.04 | 52 | 0.673709 | aoziczero |
c55d9db6533c167fc2bf63e3b8a21726e575a300 | 7,205 | cpp | C++ | audioeffect/deps/avs/src/audio_effect/chorus.cpp | commonprogress/mediasoupdemo | 435d9c5cea81fbe2fb979eb10ecc1f9a45302c01 | [
"MIT"
] | 5 | 2020-04-18T15:29:27.000Z | 2020-09-21T02:47:49.000Z | mediasoup-client/deps/avs/src/audio_effect/chorus.cpp | commonprogress/mediasoupdemo | 435d9c5cea81fbe2fb979eb10ecc1f9a45302c01 | [
"MIT"
] | null | null | null | mediasoup-client/deps/avs/src/audio_effect/chorus.cpp | commonprogress/mediasoupdemo | 435d9c5cea81fbe2fb979eb10ecc1f9a45302c01 | [
"MIT"
] | 4 | 2020-05-17T08:15:12.000Z | 2021-08-23T08:47:10.000Z | /*
* Wire
* Copyright (C) 2016 Wire Swiss GmbH
*
* This program 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 License, or
* (at your option) any later version.
*
* This program is dis... | 28.035019 | 106 | 0.618598 | commonprogress |
c5616bc52ef596f1e13ae3119a9f081d71454c08 | 6,722 | cpp | C++ | RogueEngine/Source/LightingSystem.cpp | silferysky/RogueArcher | 3c77696260f773a0b7adb88b991e09bb35069901 | [
"FSFAP"
] | 1 | 2019-06-18T20:07:47.000Z | 2019-06-18T20:07:47.000Z | RogueEngine/Source/LightingSystem.cpp | silferysky/RogueArcher | 3c77696260f773a0b7adb88b991e09bb35069901 | [
"FSFAP"
] | null | null | null | RogueEngine/Source/LightingSystem.cpp | silferysky/RogueArcher | 3c77696260f773a0b7adb88b991e09bb35069901 | [
"FSFAP"
] | null | null | null | /* Start Header ************************************************************************/
/*!
\file LightingSystem.cpp
\project Exale
\author Javier Foo, javier.foo, 440002318 (100%)
\par javier.foo\@digipen.edu
\date 3 April,2020
\brief This file contains the func... | 35.566138 | 135 | 0.728652 | silferysky |
c5618218a5567b0c742550c8da8eb15e33e41a31 | 2,541 | cpp | C++ | src/system/boot/platform/riscv/mmu.cpp | X547/haiku | 87555a1f4f2fdab7617c670ef0b5875698e5db63 | [
"MIT"
] | 2 | 2021-06-05T20:29:57.000Z | 2021-06-20T10:46:56.000Z | src/system/boot/platform/riscv/mmu.cpp | X547/haiku | 87555a1f4f2fdab7617c670ef0b5875698e5db63 | [
"MIT"
] | null | null | null | src/system/boot/platform/riscv/mmu.cpp | X547/haiku | 87555a1f4f2fdab7617c670ef0b5875698e5db63 | [
"MIT"
] | null | null | null | /*
* Copyright 2004-2007, Axel Dörfler, axeld@pinc-software.de.
* Based on code written by Travis Geiselbrecht for NewOS.
*
* Distributed under the terms of the MIT License.
*/
#include "mmu.h"
#include <boot/platform.h>
#include <boot/stdio.h>
#include <boot/kernel_args.h>
#include <boot/stage2.h>
#include <ar... | 23.971698 | 111 | 0.748524 | X547 |
c573887528dbd30b420c869862d371f8393ea45f | 3,599 | cpp | C++ | src/gravity/grav3D.cpp | capybaras-only/cholla | e82d88440f530adca00e5acdb9ee0da9ba8874de | [
"MIT"
] | 42 | 2016-07-19T02:07:16.000Z | 2022-02-22T15:20:07.000Z | src/gravity/grav3D.cpp | capybaras-only/cholla | e82d88440f530adca00e5acdb9ee0da9ba8874de | [
"MIT"
] | 34 | 2018-10-23T04:03:25.000Z | 2022-03-24T15:23:36.000Z | src/gravity/grav3D.cpp | capybaras-only/cholla | e82d88440f530adca00e5acdb9ee0da9ba8874de | [
"MIT"
] | 30 | 2016-04-14T17:52:34.000Z | 2022-02-25T15:52:02.000Z | #ifdef GRAVITY
#include<stdio.h>
#include<stdlib.h>
#include<string.h>
#include<math.h>
#include"../global.h"
#include "../io.h"
#include"grav3D.h"
#ifdef PARALLEL_OMP
#include "../parallel_omp.h"
#endif
Grav3D::Grav3D( void ){}
void Grav3D::Initialize( Real x_min, Real y_min, Real z_min, Real Lx, Real Ly, Real Lz... | 27.684615 | 239 | 0.684357 | capybaras-only |
c577745f7b251e3cc806bdab313a588d8658dd06 | 558 | cpp | C++ | gym/102343/A.cpp | albexl/codeforces-gym-submissions | 2a51905c50fcf5d7f417af81c4c49ca5217d0753 | [
"MIT"
] | 1 | 2021-07-16T19:59:39.000Z | 2021-07-16T19:59:39.000Z | gym/102343/A.cpp | albexl/codeforces-gym-submissions | 2a51905c50fcf5d7f417af81c4c49ca5217d0753 | [
"MIT"
] | null | null | null | gym/102343/A.cpp | albexl/codeforces-gym-submissions | 2a51905c50fcf5d7f417af81c4c49ca5217d0753 | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
using namespace std;
#ifdef Adrian
#include "debug.h"
#else
#define debug(...)
#endif
typedef long long ll;
typedef long double ld;
typedef complex<ll> point;
#define F first
#define S second
int main()
{
#ifdef Adrian
freopen("a.txt", "r", stdin);
//freopen("b.txt", "w", stdout);
#e... | 13.285714 | 42 | 0.605735 | albexl |
c57a3fca23220599107fc435834ed25300d0e4e8 | 3,492 | hpp | C++ | src/transformations.hpp | RedErr404/cprocessing | ab8ef25ea3e4bcd915f9c086b649696866ea77ca | [
"BSD-2-Clause"
] | 12 | 2015-01-12T07:43:22.000Z | 2022-03-08T06:43:20.000Z | src/transformations.hpp | RedErr404/cprocessing | ab8ef25ea3e4bcd915f9c086b649696866ea77ca | [
"BSD-2-Clause"
] | null | null | null | src/transformations.hpp | RedErr404/cprocessing | ab8ef25ea3e4bcd915f9c086b649696866ea77ca | [
"BSD-2-Clause"
] | 7 | 2015-02-09T15:44:10.000Z | 2019-07-07T11:48:10.000Z | #include "cprocessing.hpp"
#ifndef CPROCESSING_TRANSFORMATIONS_
#define CPROCESSING_TRANSFORMATIONS_
using namespace cprocessing;
namespace cprocessing {
/// Applies a translation transformation
void translate (double dx, double dy, double dz);
void translate(double dx, double dy);
/// Applies a sca... | 36.757895 | 91 | 0.702463 | RedErr404 |
c57c25237f51093201dc7a67043e3023da3bc325 | 3,002 | cpp | C++ | aws-cpp-sdk-kafkaconnect/source/model/CustomPluginRevisionSummary.cpp | perfectrecall/aws-sdk-cpp | fb8cbebf2fd62720b65aeff841ad2950e73d8ebd | [
"Apache-2.0"
] | 1 | 2022-02-12T08:09:30.000Z | 2022-02-12T08:09:30.000Z | aws-cpp-sdk-kafkaconnect/source/model/CustomPluginRevisionSummary.cpp | perfectrecall/aws-sdk-cpp | fb8cbebf2fd62720b65aeff841ad2950e73d8ebd | [
"Apache-2.0"
] | 1 | 2021-10-14T16:57:00.000Z | 2021-10-18T10:47:24.000Z | aws-cpp-sdk-kafkaconnect/source/model/CustomPluginRevisionSummary.cpp | ravindra-wagh/aws-sdk-cpp | 7d5ff01b3c3b872f31ca98fb4ce868cd01e97696 | [
"Apache-2.0"
] | 1 | 2021-11-09T11:58:03.000Z | 2021-11-09T11:58:03.000Z | /**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/kafkaconnect/model/CustomPluginRevisionSummary.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <utility>
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
name... | 21.912409 | 121 | 0.747169 | perfectrecall |
c5803d143bab4da00ffd9db701bfe609cde46cd0 | 2,818 | cpp | C++ | tightvnc/server-config-lib/PortMapping.cpp | jjzhang166/qmlvncviewer2 | b888c416ab88b81fe802ab0559bb87361833a0b5 | [
"Apache-2.0"
] | 47 | 2016-08-17T03:18:32.000Z | 2022-01-14T01:33:15.000Z | tightvnc/server-config-lib/PortMapping.cpp | jjzhang166/qmlvncviewer2 | b888c416ab88b81fe802ab0559bb87361833a0b5 | [
"Apache-2.0"
] | 3 | 2018-06-29T06:13:28.000Z | 2020-11-26T02:31:49.000Z | tightvnc/server-config-lib/PortMapping.cpp | jjzhang166/qmlvncviewer2 | b888c416ab88b81fe802ab0559bb87361833a0b5 | [
"Apache-2.0"
] | 15 | 2016-08-17T07:03:55.000Z | 2021-08-02T14:42:02.000Z | // Copyright (C) 2008,2009,2010,2011,2012 GlavSoft LLC.
// All rights reserved.
//
//-------------------------------------------------------------------------
// This file is part of the TightVNC software. Please visit our Web site:
//
// http://www.tightvnc.com/
//
// This program is free softwa... | 23.483333 | 75 | 0.648332 | jjzhang166 |
c5816c489ad6d191622911f0ed29136689f2752d | 2,767 | cpp | C++ | Eldritch-Source/Code/Libraries/3D/src/D3D9/d3d9vertexdeclaration.cpp | inferno986return/eldritch-mirror | fefdb06f392b3f8c17f0617a1101c503620bc6fd | [
"Zlib",
"Unlicense"
] | 91 | 2015-01-27T22:56:26.000Z | 2022-03-25T13:33:18.000Z | Code/Libraries/3D/src/D3D9/d3d9vertexdeclaration.cpp | rohit-n/Eldritch | b1d2a200eac9c8026e696bdac1f7d2ca629dd38c | [
"Zlib"
] | 2 | 2019-01-04T21:42:26.000Z | 2019-01-06T14:34:08.000Z | Code/Libraries/3D/src/D3D9/d3d9vertexdeclaration.cpp | Neb-Software/mEldritch | 7d07a845b3f04242ddf1f0abbad606c830ac8f20 | [
"Zlib"
] | 21 | 2015-04-06T17:41:17.000Z | 2021-06-15T00:26:18.000Z | #include "core.h"
#include "3d.h"
#include "D3D9/d3d9vertexdeclaration.h"
#include "map.h"
#include "mathcore.h"
#include <d3d9.h>
D3D9VertexDeclaration::D3D9VertexDeclaration( IDirect3DDevice9* pD3DDevice )
: m_D3DDevice( pD3DDevice )
, m_VertexDeclaration( NULL )
, m_VertexSignature( 0 ) {}
D3D9Vertex... | 37.391892 | 90 | 0.733647 | inferno986return |