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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
21ccb13453d5a3cbdb1cf3c52e4392b59befa2db | 1,937 | cpp | C++ | objLoader/main.cpp | ComradeKeys/kc_lib | 589f355f62b0e4660ec3109ea9c81cd6e60dbae1 | [
"Zlib"
] | null | null | null | objLoader/main.cpp | ComradeKeys/kc_lib | 589f355f62b0e4660ec3109ea9c81cd6e60dbae1 | [
"Zlib"
] | null | null | null | objLoader/main.cpp | ComradeKeys/kc_lib | 589f355f62b0e4660ec3109ea9c81cd6e60dbae1 | [
"Zlib"
] | null | null | null | //This example program is created by thecplusplusuy for demonstration purposes. It's a simple 3D model loader (wavefront (.obj)), which is capable to load materials and UV textures:
//http://www.youtube.com/user/thecplusplusguy
//Free source, modify if you want, LGPL licence (I guess), I would be happy, if you would no... | 25.155844 | 181 | 0.675787 | ComradeKeys |
21ceb61b912411afdcac867428878c2f65db44d5 | 4,047 | cpp | C++ | VecRegs.cpp | antoniocgj/SweRV-ISS-1 | bc32016a0b92d6240b5963457c4403b498200403 | [
"Apache-2.0"
] | 49 | 2020-05-27T10:14:02.000Z | 2022-03-30T15:49:31.000Z | VecRegs.cpp | antoniocgj/SweRV-ISS-1 | bc32016a0b92d6240b5963457c4403b498200403 | [
"Apache-2.0"
] | 19 | 2020-06-30T08:26:02.000Z | 2022-03-22T05:18:14.000Z | VecRegs.cpp | antoniocgj/SweRV-ISS-1 | bc32016a0b92d6240b5963457c4403b498200403 | [
"Apache-2.0"
] | 18 | 2020-08-30T02:55:25.000Z | 2022-03-30T13:58:15.000Z | // Copyright 2020 Western Digital Corporation or its affiliates.
//
// 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 requi... | 26.801325 | 86 | 0.650111 | antoniocgj |
21d0062dd7bae756e34740bc6b948c19724e6f74 | 874 | cpp | C++ | Utils/FileOperations.cpp | ebithril/Cerberus | 8c5034bbb4fcdcc2cdb4495631176a2595c22dc7 | [
"MIT"
] | 1 | 2017-08-13T20:41:57.000Z | 2017-08-13T20:41:57.000Z | Utils/FileOperations.cpp | ebithril/Cerberus | 8c5034bbb4fcdcc2cdb4495631176a2595c22dc7 | [
"MIT"
] | null | null | null | Utils/FileOperations.cpp | ebithril/Cerberus | 8c5034bbb4fcdcc2cdb4495631176a2595c22dc7 | [
"MIT"
] | null | null | null | #include "FileOperations.h"
#include <stdio.h>
#include "UString.h"
typedef FILE FileHandle;
FileHandle* OpenFile(const String& FileName, const String& Mode)
{
return fopen(FileName.CString(), Mode.CString());
}
void CloseFile(FileHandle* Handle)
{
fclose(Handle);
}
int32 GetFileSize(FileHandle*... | 20.325581 | 74 | 0.695652 | ebithril |
21d1d9951dc25cbedabf0e350329a100dffa0bde | 305 | hpp | C++ | src/Key.hpp | PymZoR/gbcEmulator | 4b7f7dd645a83aae792767a91b2d7def5d239c70 | [
"MIT"
] | null | null | null | src/Key.hpp | PymZoR/gbcEmulator | 4b7f7dd645a83aae792767a91b2d7def5d239c70 | [
"MIT"
] | null | null | null | src/Key.hpp | PymZoR/gbcEmulator | 4b7f7dd645a83aae792767a91b2d7def5d239c70 | [
"MIT"
] | null | null | null | #ifndef KEY_HPP
#define KEY_HPP
#include <SDL/SDL.h>
class Key
{
public:
Key();
~Key();
//Uint8 readByte(Uint16 addr); TODO: correct
Uint8 readByte();
//void writeByte(Uint16 addr, Uint16 value); TODO: correct
void writeByte(Uint16 addr);
};
#endif
| 16.052632 | 66 | 0.590164 | PymZoR |
21db548ede130611ed74743b91cc67ce0c549e70 | 2,646 | cpp | C++ | Ref/SignalGen/test/ut/Tester.cpp | AlperenCetin0/fprime | 7e20febd34019c730da1358567e7a512592de4d8 | [
"Apache-2.0"
] | 9,182 | 2017-07-06T15:51:35.000Z | 2022-03-30T11:20:33.000Z | Ref/SignalGen/test/ut/Tester.cpp | AlperenCetin0/fprime | 7e20febd34019c730da1358567e7a512592de4d8 | [
"Apache-2.0"
] | 719 | 2017-07-14T17:56:01.000Z | 2022-03-31T02:41:35.000Z | Ref/SignalGen/test/ut/Tester.cpp | AlperenCetin0/fprime | 7e20febd34019c730da1358567e7a512592de4d8 | [
"Apache-2.0"
] | 1,216 | 2017-07-12T15:41:08.000Z | 2022-03-31T21:44:37.000Z | // ======================================================================
// \title SignalGen.hpp
// \author mstarch
// \brief cpp file for SignalGen test harness implementation class
//
// \copyright
// Copyright 2009-2015, by the California Institute of Technology.
// ALL RIGHTS RESERVED. United States Government ... | 21 | 75 | 0.474301 | AlperenCetin0 |
21db941990f5c12abc5e1a4ab9173023ce024a1c | 1,309 | cpp | C++ | allocgc/src/details/compacting/forwarding.cpp | eucpp/allocgc | 8d134d58515e0e2a7348fdd1fdbe8c2e8423cfef | [
"Apache-2.0"
] | null | null | null | allocgc/src/details/compacting/forwarding.cpp | eucpp/allocgc | 8d134d58515e0e2a7348fdd1fdbe8c2e8423cfef | [
"Apache-2.0"
] | 2 | 2017-01-17T16:24:59.000Z | 2017-06-08T17:39:26.000Z | allocgc/src/details/compacting/forwarding.cpp | eucpp/allocgc | 8d134d58515e0e2a7348fdd1fdbe8c2e8423cfef | [
"Apache-2.0"
] | null | null | null | #include <liballocgc/details/compacting/forwarding.hpp>
#include <cassert>
#include <liballocgc/details/allocators/gc_box.hpp>
#include <liballocgc/details/logging.hpp>
#include <liballocgc/details/gc_cell.hpp>
#include <liballocgc/details/allocators/memory_index.hpp>
namespace allocgc { namespace details { namespac... | 28.456522 | 91 | 0.689076 | eucpp |
21e26cf47313fe01fc5d803b860ecbe44ec5d0f3 | 31,727 | hpp | C++ | include/Matrix11.hpp | Chrinkus/advent-of-code-2020 | 15feedc68ddffe51ff2005e0cc8ab9f28fea97d8 | [
"MIT"
] | 1 | 2021-12-04T20:55:02.000Z | 2021-12-04T20:55:02.000Z | 2020/cpp/include/Matrix11.hpp | Chrinkus/advent-of-code | b2ae137dc7a1d6fc9e20f29549e891404591c47f | [
"MIT"
] | null | null | null | 2020/cpp/include/Matrix11.hpp | Chrinkus/advent-of-code | b2ae137dc7a1d6fc9e20f29549e891404591c47f | [
"MIT"
] | 1 | 2020-12-17T20:00:37.000Z | 2020-12-17T20:00:37.000Z |
/*
warning: this small multidimensional matrix library uses a few features
not taught in ENGR112 and not explained in elementary textbooks
C++11 version
(c) Bjarne Stroustrup, Texas A&M University.
Use as you like as long as you acknowledge the source.
*/
#ifndef MATRIX_LIB
#define MATRIX_LIB
#i... | 35.330735 | 133 | 0.527154 | Chrinkus |
21f0ead7b9852c9196611c01f55c43cb6f2fe46e | 12,955 | cpp | C++ | tests/misc.cpp | JackWolfard/cash | a646c0b94d075fa424a93904b7499a0dee90ac89 | [
"BSD-3-Clause"
] | 14 | 2018-08-08T19:02:21.000Z | 2022-01-07T14:42:43.000Z | tests/misc.cpp | JackWolfard/cash | a646c0b94d075fa424a93904b7499a0dee90ac89 | [
"BSD-3-Clause"
] | null | null | null | tests/misc.cpp | JackWolfard/cash | a646c0b94d075fa424a93904b7499a0dee90ac89 | [
"BSD-3-Clause"
] | 3 | 2020-04-20T20:58:34.000Z | 2021-11-23T14:50:14.000Z | #include "common.h"
#include <htl/complex.h>
#include <htl/queue.h>
#include <htl/fixed.h>
using namespace ch::htl;
using namespace ch::extension;
namespace {
__enum (my_enum, 4, (
(idle, 0),
execute,
stats,
done
));
__struct (Person, (
(ch_int4) age,
(ch_int4) height
));
template... | 24.818008 | 190 | 0.487302 | JackWolfard |
21f2e7464d3b4ea4c9a746f1c2094769de755994 | 3,667 | cpp | C++ | src/libcvpg/videoproc/stage_data_handler.cpp | franz-alt/cv-playground | d6c3bbdb500bf121c28299d117e459730b2b912d | [
"MIT"
] | null | null | null | src/libcvpg/videoproc/stage_data_handler.cpp | franz-alt/cv-playground | d6c3bbdb500bf121c28299d117e459730b2b912d | [
"MIT"
] | null | null | null | src/libcvpg/videoproc/stage_data_handler.cpp | franz-alt/cv-playground | d6c3bbdb500bf121c28299d117e459730b2b912d | [
"MIT"
] | null | null | null | // Copyright (c) 2020-2021 Franz Alt
// This code is licensed under MIT license (see LICENSE.txt for details).
#include <libcvpg/videoproc/stage_data_handler.hpp>
#include <algorithm>
#include <iterator>
namespace cvpg::videoproc {
template<typename T> stage_data_handler<T>::stage_data_handler(std::string name,
... | 30.305785 | 144 | 0.620944 | franz-alt |
21f3135df82752e03bd87bf652f63f8a95b83923 | 1,088 | cpp | C++ | block_statistics/rows-nnz-stdev.cpp | DanielLangr/abhsf | 1f8083d474ac634d6301d0736b187acdd5b557cd | [
"MIT"
] | null | null | null | block_statistics/rows-nnz-stdev.cpp | DanielLangr/abhsf | 1f8083d474ac634d6301d0736b187acdd5b557cd | [
"MIT"
] | null | null | null | block_statistics/rows-nnz-stdev.cpp | DanielLangr/abhsf | 1f8083d474ac634d6301d0736b187acdd5b557cd | [
"MIT"
] | 1 | 2021-11-09T08:19:35.000Z | 2021-11-09T08:19:35.000Z | #include <algorithm>
#include <cmath>
#include <cstdint>
#include <fstream>
#include <iostream>
#include <string>
#include <vector>
#include <abhsf/utils/colors.h>
double stdev(const std::string& filename, uintmax_t m)
{
std::vector<uintmax_t> rows_nnz(m);
std::ifstream f(filename);
for (uintmax_t k = 0;... | 23.652174 | 86 | 0.575368 | DanielLangr |
21f5bdeb6b8f2ea262bfdd5d6c89a3f228be7bac | 59 | hpp | C++ | src/boost_units_systems_si_angular_acceleration.hpp | miathedev/BoostForArduino | 919621dcd0c157094bed4df752b583ba6ea6409e | [
"BSL-1.0"
] | 10 | 2018-03-17T00:58:42.000Z | 2021-07-06T02:48:49.000Z | src/boost_units_systems_si_angular_acceleration.hpp | miathedev/BoostForArduino | 919621dcd0c157094bed4df752b583ba6ea6409e | [
"BSL-1.0"
] | 2 | 2021-03-26T15:17:35.000Z | 2021-05-20T23:55:08.000Z | src/boost_units_systems_si_angular_acceleration.hpp | miathedev/BoostForArduino | 919621dcd0c157094bed4df752b583ba6ea6409e | [
"BSL-1.0"
] | 4 | 2019-05-28T21:06:37.000Z | 2021-07-06T03:06:52.000Z | #include <boost/units/systems/si/angular_acceleration.hpp>
| 29.5 | 58 | 0.830508 | miathedev |
21f5d568c76595344ed2d0d17fc4820791e15ac3 | 6,552 | cpp | C++ | src/drift_velocity.cpp | jdpetticrew/Simple-Monte-Carlo-Simulator | 548d7cfe5f7a16e4095db7da27f61eca4dce6d98 | [
"Apache-2.0"
] | 8 | 2018-07-12T11:07:02.000Z | 2022-02-18T06:34:17.000Z | src/drift_velocity.cpp | jdpetticrew/Simple-Monte-Carlo-Simulator | 548d7cfe5f7a16e4095db7da27f61eca4dce6d98 | [
"Apache-2.0"
] | 2 | 2019-10-21T09:45:57.000Z | 2022-01-18T09:48:51.000Z | src/drift_velocity.cpp | jdpetticrew/Simple-Monte-Carlo-Simulator | 548d7cfe5f7a16e4095db7da27f61eca4dce6d98 | [
"Apache-2.0"
] | 1 | 2019-05-24T07:59:16.000Z | 2019-05-24T07:59:16.000Z | /* Copyright 2017 Advanced Detector Centre, Department of Electronic and
Electrical Engineering, University of Sheffield, UK.
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... | 33.773196 | 119 | 0.699176 | jdpetticrew |
21f84c9bcecf8423f128899aedf9efd2873c1cea | 7,408 | hpp | C++ | include/RunStatistics.hpp | pixie-net/pixie-net-api | 743e473845fc6c6d674d454b3a419d55372d99d4 | [
"Unlicense"
] | null | null | null | include/RunStatistics.hpp | pixie-net/pixie-net-api | 743e473845fc6c6d674d454b3a419d55372d99d4 | [
"Unlicense"
] | 3 | 2019-04-07T17:18:47.000Z | 2019-11-10T22:08:18.000Z | include/RunStatistics.hpp | spaulaus/pixie-net | 743e473845fc6c6d674d454b3a419d55372d99d4 | [
"Unlicense"
] | null | null | null | /// @file RunStatistics.hpp
/// @brief
/// @author S. V. Paulauskas
/// @date March 01, 2020
#ifndef PIXIE_NET_RUNSTATISTICS_HPP
#define PIXIE_NET_RUNSTATISTICS_HPP
#include <map>
class RunStatistics {
public:
double getRunTime() const;
double getTotalTime() const;
double getEventRate() const;... | 31.257384 | 82 | 0.701674 | pixie-net |
21f982f74156cbc1137e8f05b33a013398d2ee66 | 11,172 | cpp | C++ | src/device.cpp | madl3x/miflora_rbs | ad893ea2aeaa15529ec6dde7823c2e833b82f884 | [
"MIT"
] | null | null | null | src/device.cpp | madl3x/miflora_rbs | ad893ea2aeaa15529ec6dde7823c2e833b82f884 | [
"MIT"
] | null | null | null | src/device.cpp | madl3x/miflora_rbs | ad893ea2aeaa15529ec6dde7823c2e833b82f884 | [
"MIT"
] | null | null | null | /*
* MIT License
*
* 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, distribute,... | 33.151335 | 101 | 0.676871 | madl3x |
21fbeb3529983db45ed0249a8854be985fe1afe3 | 536 | hpp | C++ | main/util/stdextend.hpp | michaelsimon101/Homepoint | c197bd8f5e84a4cb366cb6e1f2ce0ef5d77092bd | [
"MIT"
] | 506 | 2019-05-26T10:03:12.000Z | 2022-03-30T16:01:14.000Z | main/util/stdextend.hpp | michaelsimon101/Homepoint | c197bd8f5e84a4cb366cb6e1f2ce0ef5d77092bd | [
"MIT"
] | 113 | 2019-05-26T11:33:06.000Z | 2022-01-19T09:25:07.000Z | main/util/stdextend.hpp | michaelsimon101/Homepoint | c197bd8f5e84a4cb366cb6e1f2ce0ef5d77092bd | [
"MIT"
] | 74 | 2019-05-26T23:14:11.000Z | 2022-03-24T22:07:11.000Z | #pragma once
#include <iterator>
#include <sstream>
#include <string>
namespace estd
{
// ESP32 STL is missing std::string::to_string
template <typename T>
std::string to_string(T value)
{
std::ostringstream os ;
os << value ;
return os.str() ;
}
} // namespace estd
namespace util
{
//... | 17.866667 | 66 | 0.61194 | michaelsimon101 |
1d0058b844d1dac98b3445a19a0cb93e3bd5b7ba | 681 | cpp | C++ | LeetCode Problem-Set/24. Swap Nodes in Pairs (Medium)/Solution1.cpp | ankuralld5999/LeetCode-Problems | 2f9a767a0effbb2a50672e102925fbbb65034083 | [
"FSFAP"
] | 2 | 2021-01-06T20:43:59.000Z | 2021-01-11T15:42:59.000Z | LeetCode Problem-Set/24. Swap Nodes in Pairs (Medium)/Solution1.cpp | ankuralld5999/LeetCode-Problems | 2f9a767a0effbb2a50672e102925fbbb65034083 | [
"FSFAP"
] | null | null | null | LeetCode Problem-Set/24. Swap Nodes in Pairs (Medium)/Solution1.cpp | ankuralld5999/LeetCode-Problems | 2f9a767a0effbb2a50672e102925fbbb65034083 | [
"FSFAP"
] | null | null | null | // Problem: https://leetcode.com/problems/swap-nodes-in-pairs/
// Author: github.com/ankuralld5999
// Time: O(N)
// Space: O(1)
class Solution {
public:
ListNode* swapPairs(ListNode* head) {
if(head==NULL || head->next==NULL)
return head;
ListNode *p=NULL, *q=NULL, *r=head;
int n... | 23.482759 | 62 | 0.422907 | ankuralld5999 |
1d0779a548ba928c3e951dd5082b7ca87c2163cf | 958 | hpp | C++ | src/rooms/level.hpp | snailbaron/rooms | 03496c3cd30e2020e1b0f1ad7d96bfba4e000eaa | [
"MIT"
] | null | null | null | src/rooms/level.hpp | snailbaron/rooms | 03496c3cd30e2020e1b0f1ad7d96bfba4e000eaa | [
"MIT"
] | null | null | null | src/rooms/level.hpp | snailbaron/rooms | 03496c3cd30e2020e1b0f1ad7d96bfba4e000eaa | [
"MIT"
] | null | null | null | #pragma once
#include "cellar.hpp"
#include "geometry.hpp"
#include "types.hpp"
#include <filesystem>
#include <istream>
#include <iterator>
#include <string>
#include <vector>
enum class Cell : unsigned char {
Empty,
Full,
SmallColumn,
LargeColumn,
HalfHeight,
TallHeight,
};
class Level {
p... | 19.958333 | 61 | 0.67119 | snailbaron |
1d0960f04530f276c37a982476e95a9005c38d33 | 1,776 | cpp | C++ | src/plugins/snails/accountlogger.cpp | Maledictus/leechcraft | 79ec64824de11780b8e8bdfd5d8a2f3514158b12 | [
"BSL-1.0"
] | 120 | 2015-01-22T14:10:39.000Z | 2021-11-25T12:57:16.000Z | src/plugins/snails/accountlogger.cpp | Maledictus/leechcraft | 79ec64824de11780b8e8bdfd5d8a2f3514158b12 | [
"BSL-1.0"
] | 8 | 2015-02-07T19:38:19.000Z | 2017-11-30T20:18:28.000Z | src/plugins/snails/accountlogger.cpp | Maledictus/leechcraft | 79ec64824de11780b8e8bdfd5d8a2f3514158b12 | [
"BSL-1.0"
] | 33 | 2015-02-07T16:59:55.000Z | 2021-10-12T00:36:40.000Z | /**********************************************************************
* LeechCraft - modular cross-platform feature rich internet client.
* Copyright (C) 2006-2014 Georg Rudoy
*
* Distributed under the Boost Software License, Version 1.0.
* (See accompanying file LICENSE or copy at https://www.boost.org/LICENSE... | 23.064935 | 91 | 0.586712 | Maledictus |
1d0c6cc6acf6407d35237ac5f98c450d1ba7f7dd | 478 | cpp | C++ | week5/MoneyChangeAgain.cpp | leohr/coursera-algorithmic-toolbox | 53894f826f00b0776859174d45395eab48180dde | [
"MIT"
] | null | null | null | week5/MoneyChangeAgain.cpp | leohr/coursera-algorithmic-toolbox | 53894f826f00b0776859174d45395eab48180dde | [
"MIT"
] | null | null | null | week5/MoneyChangeAgain.cpp | leohr/coursera-algorithmic-toolbox | 53894f826f00b0776859174d45395eab48180dde | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
using namespace std;
int main(){
int n; cin >> n;
vector<int> sols(n+1);
for (int x=1; x<n+1; ++x){
if (x == 1)
sols[x] = 1;
else if (x == 2)
sols[x] = 2;
else if (x == 3)
sols[x] = 1;
else if (x == 4)
... | 22.761905 | 70 | 0.378661 | leohr |
1d17ec08510aaa84286abb18c17663b136f5c8c3 | 1,255 | cpp | C++ | src/lesson_2/changing.cpp | tarcisioe/cpp-mdbook | 61ddab9ba126328f618574d427ede7121146de15 | [
"MIT"
] | 2 | 2020-03-16T04:14:15.000Z | 2021-07-07T22:33:58.000Z | src/lesson_2/changing.cpp | tarcisioe/cpp-mdbook | 61ddab9ba126328f618574d427ede7121146de15 | [
"MIT"
] | null | null | null | src/lesson_2/changing.cpp | tarcisioe/cpp-mdbook | 61ddab9ba126328f618574d427ede7121146de15 | [
"MIT"
] | null | null | null | #include <vector>
#include <iostream>
int main()
{
auto v = std::vector<int>{1, 2, 3, 4};
auto w = std::vector<int>{4, 3, 2, 1};
std::cout << "Before: v[3] = " << v[3] << "\n";
v[3] = 42;
std::cout << "Now: v[3] = " << v[3] << "\n";
auto n = v.size();
std::cout << "n = v.size() = " <<... | 23.679245 | 77 | 0.404781 | tarcisioe |
1d1ccc514214e4b497c0d8e43387381d414fb48d | 1,203 | cpp | C++ | raytrace/HitList.cpp | lede701/raytrace | 79b0082c6cd90fd1381263c3795ece6bdf3e6cfa | [
"Unlicense"
] | null | null | null | raytrace/HitList.cpp | lede701/raytrace | 79b0082c6cd90fd1381263c3795ece6bdf3e6cfa | [
"Unlicense"
] | null | null | null | raytrace/HitList.cpp | lede701/raytrace | 79b0082c6cd90fd1381263c3795ece6bdf3e6cfa | [
"Unlicense"
] | null | null | null | #include "HitList.h"
HitList::HitList()
{
}
HitList::HitList(Hitable **l, int n)
{
hList = l;
hSize = n;
eSize = -1;
}
HitList::HitList(Entity **e, int n)
{
eList = e;
eSize = n;
hSize = -1;
}
HitList::~HitList()
{
}
bool HitList::hit(const Ray& r, float t_min, float t_max, HitRecord& hit) const
{
bool b... | 15.623377 | 80 | 0.632585 | lede701 |
1d1d3cb324ec29b123e60314b0b0ea694ffac672 | 3,100 | hh | C++ | include/core/IAgent.hh | thingthing/smart-agent | f4c41432b1bab3283b00237b0208676acb0a00b1 | [
"MIT"
] | null | null | null | include/core/IAgent.hh | thingthing/smart-agent | f4c41432b1bab3283b00237b0208676acb0a00b1 | [
"MIT"
] | null | null | null | include/core/IAgent.hh | thingthing/smart-agent | f4c41432b1bab3283b00237b0208676acb0a00b1 | [
"MIT"
] | null | null | null | #ifndef _IAGENT_HH_
# define _IAGENT_HH_
#include <string>
#include <pcl/common/transforms.h>
#include <pcl/common/common.h>
#include <pcl/impl/point_types.hpp>
#include <pcl/common/projection_matrix.h>
#include "event/Dispatcher.h"
#include "ICapture.hh"
class IAgent : public Utils::Dispatcher
{
publi... | 32.631579 | 90 | 0.610968 | thingthing |
1d21e0f999e9650fab0e94b8d429d225f203031a | 1,807 | cpp | C++ | app/crawler/srcs/main.cpp | team-irc/twitch-chat-analyzer | 4af175ec5dfd3dc43ad7b1e401f65d6cc4858bd7 | [
"MIT"
] | 1 | 2022-01-13T07:12:47.000Z | 2022-01-13T07:12:47.000Z | app/crawler/srcs/main.cpp | team-irc/twitch-chat-analyzer | 4af175ec5dfd3dc43ad7b1e401f65d6cc4858bd7 | [
"MIT"
] | 10 | 2021-12-18T12:33:45.000Z | 2022-02-07T20:14:00.000Z | app/crawler/srcs/main.cpp | team-irc/twitch-chat-analyzer | 4af175ec5dfd3dc43ad7b1e401f65d6cc4858bd7 | [
"MIT"
] | null | null | null | #include "IrcClient.hpp"
#include "IrcSocket.hpp"
#include "utils.hpp"
#define LOGGING_INTERVAL 60
IrcClient *g_client; // 입력용 thread와 공유할 변수
void announce()
{
std::cout << "채널 참여: join #twitch_id" << std::endl;
std::cout << "채널 나가기: part #twitch_id" << std::endl;
}
void input_thread()
{
std::string msg;
whil... | 18.822917 | 74 | 0.596569 | team-irc |
1d22621add933a8dbe6aebe2a2ebe969866741e0 | 1,481 | cc | C++ | src/solvers/wg/WGSolverSI.cc | baklanovp/libdetran | 820efab9d03ae425ccefb9520bdb6c086fdbf939 | [
"MIT"
] | 4 | 2015-03-07T16:20:23.000Z | 2020-02-10T13:40:16.000Z | src/solvers/wg/WGSolverSI.cc | baklanovp/libdetran | 820efab9d03ae425ccefb9520bdb6c086fdbf939 | [
"MIT"
] | 3 | 2018-02-27T21:24:22.000Z | 2020-12-16T00:56:44.000Z | src/solvers/wg/WGSolverSI.cc | baklanovp/libdetran | 820efab9d03ae425ccefb9520bdb6c086fdbf939 | [
"MIT"
] | 9 | 2015-03-07T16:20:26.000Z | 2022-01-29T00:14:23.000Z | //----------------------------------*-C++-*-----------------------------------//
/**
* @file WGSolverSI.cc
* @brief WGSolverSI member definitions
* @note Copyright(C) 2012-2013 Jeremy Roberts
*/
//----------------------------------------------------------------------------//
#include "WGSolverSI.hh"
namespac... | 36.121951 | 80 | 0.33761 | baklanovp |
1d2265afc047596b4b5b7c72bcfdf714e446044e | 69,104 | cc | C++ | cnn/nodes.cc | kaishengyao/cnn | a034b837e88f82bd8adf2c5b0a5defb26fd52096 | [
"Apache-2.0"
] | 16 | 2015-09-10T07:50:50.000Z | 2017-09-17T03:02:38.000Z | cnn/nodes.cc | kaishengyao/cnn | a034b837e88f82bd8adf2c5b0a5defb26fd52096 | [
"Apache-2.0"
] | null | null | null | cnn/nodes.cc | kaishengyao/cnn | a034b837e88f82bd8adf2c5b0a5defb26fd52096 | [
"Apache-2.0"
] | 10 | 2015-09-08T12:43:13.000Z | 2018-09-26T07:32:47.000Z | #include "cnn/nodes.h"
#include <limits>
#include <cmath>
#include <stdexcept>
#include "cnn/macros.h"
#include "cnn/simd-functors.h"
#include "cnn/functors.h"
#if HAVE_CUDA
#include <thrust/host_vector.h>
#include <thrust/device_vector.h>
#include "cnn/cuda.h"
#include "cnn/gpu-ops.h"
using namespace cnn::gpu;
#endif... | 33.127517 | 224 | 0.593236 | kaishengyao |
918d6a4d650f78d1c5af8bccf9b6525406a8c969 | 2,056 | hpp | C++ | include/DREAM/Equations/Fluid/IonSpeciesTransientTerm.hpp | chalmersplasmatheory/DREAM | 715637ada94f5e35db16f23c2fd49bb7401f4a27 | [
"MIT"
] | 12 | 2020-09-07T11:19:10.000Z | 2022-02-17T17:40:19.000Z | include/DREAM/Equations/Fluid/IonSpeciesTransientTerm.hpp | chalmersplasmatheory/DREAM | 715637ada94f5e35db16f23c2fd49bb7401f4a27 | [
"MIT"
] | 110 | 2020-09-02T15:29:24.000Z | 2022-03-09T09:50:01.000Z | include/DREAM/Equations/Fluid/IonSpeciesTransientTerm.hpp | chalmersplasmatheory/DREAM | 715637ada94f5e35db16f23c2fd49bb7401f4a27 | [
"MIT"
] | 3 | 2021-05-21T13:24:31.000Z | 2022-02-11T14:43:12.000Z | #ifndef _DREAM_EQUATION_FLUID_ION_SPECIES_TRANSIENT_TERM_HPP
#define _DREAM_EQUATION_FLUID_ION_SPECIES_TRANSIENT_TERM_HPP
/**
* Implementation of an equation term representing the
* (backward euler) time derivative on an ion species
* with index iz. (which can be scaled using scalefactor)
*/
#include "FVM/Equati... | 39.538462 | 122 | 0.646401 | chalmersplasmatheory |
9190e35ac7cfa37484b1cf23e47cf1fc419812e9 | 9,819 | hpp | C++ | src/Shay/Shay.hpp | MajorArkwolf/stonks | 5671f7811f19af33450e5fd07ab61c700f71ee69 | [
"0BSD"
] | null | null | null | src/Shay/Shay.hpp | MajorArkwolf/stonks | 5671f7811f19af33450e5fd07ab61c700f71ee69 | [
"0BSD"
] | null | null | null | src/Shay/Shay.hpp | MajorArkwolf/stonks | 5671f7811f19af33450e5fd07ab61c700f71ee69 | [
"0BSD"
] | null | null | null | #pragma once
#include <time.h>
#include <SDL2/SDL.h>
#include "Camera.hpp"
#include "ObjLoader/ObjLoader.hpp"
#include "Stonk/BaseState.hpp"
#include "TexturedPolygons.hpp"
/**
* @namespace Shay
* @brief The global Shay namespace
*/
namespace Shay {
/**
* @brief A shay enum, no one knows
*/
en... | 21.771619 | 80 | 0.571749 | MajorArkwolf |
9191ae109f05d86c4a9677efb3a038cdebeb4c0b | 1,266 | cpp | C++ | cmake/tests/pthread_affinity_np.cpp | akemp/hpx | 1ddf7282e322c30d82f2be044071aed14807ebe1 | [
"BSL-1.0"
] | null | null | null | cmake/tests/pthread_affinity_np.cpp | akemp/hpx | 1ddf7282e322c30d82f2be044071aed14807ebe1 | [
"BSL-1.0"
] | null | null | null | cmake/tests/pthread_affinity_np.cpp | akemp/hpx | 1ddf7282e322c30d82f2be044071aed14807ebe1 | [
"BSL-1.0"
] | null | null | null | ////////////////////////////////////////////////////////////////////////////////
// Copyright (c) 2011 Bryce Lelbach
//
// 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)
////////////////////////////////////////////... | 30.878049 | 81 | 0.57425 | akemp |
9191d00a83bf0157b47fd6054fd9a31f2bf7eeb4 | 6,015 | cpp | C++ | Source/Api/Vulkan/PipelineLayout.cpp | Filippo-BSW/AdHoc | 2559fa6f563283af24ae1da26b4b9164c8206503 | [
"MIT"
] | null | null | null | Source/Api/Vulkan/PipelineLayout.cpp | Filippo-BSW/AdHoc | 2559fa6f563283af24ae1da26b4b9164c8206503 | [
"MIT"
] | null | null | null | Source/Api/Vulkan/PipelineLayout.cpp | Filippo-BSW/AdHoc | 2559fa6f563283af24ae1da26b4b9164c8206503 | [
"MIT"
] | null | null | null | // *********************************************************************************
// MIT License
//
// Copyright (c) 2021 Filippo-BSW
//
// 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 ... | 42.062937 | 143 | 0.615129 | Filippo-BSW |
9197dcdd7db83b3ebcb993601323afe1286da0fc | 5,169 | cpp | C++ | src/BamToFastq/main.cpp | BeneKenobi/ngs-bits | cf849deb1c80e87b734d748f37f5878536277386 | [
"MIT"
] | 85 | 2016-04-26T17:24:20.000Z | 2022-03-11T12:33:39.000Z | src/BamToFastq/main.cpp | BeneKenobi/ngs-bits | cf849deb1c80e87b734d748f37f5878536277386 | [
"MIT"
] | 104 | 2016-08-09T22:18:32.000Z | 2022-03-31T12:39:12.000Z | src/BamToFastq/main.cpp | BeneKenobi/ngs-bits | cf849deb1c80e87b734d748f37f5878536277386 | [
"MIT"
] | 28 | 2016-05-10T14:34:20.000Z | 2021-10-14T07:22:39.000Z | #include "ToolBase.h"
#include "FastqFileStream.h"
#include "NGSHelper.h"
#include "Helper.h"
#include <QThreadPool>
#include "OutputWorker.h"
class ConcreteTool
: public ToolBase
{
Q_OBJECT
public:
ConcreteTool(int& argc, char *argv[])
: ToolBase(argc, argv)
{
}
virtual void setup()
{
setDescription("Co... | 30.767857 | 143 | 0.655252 | BeneKenobi |
91a19688e5139be41a558ee365cb2b434c6db4e7 | 5,086 | hpp | C++ | include/ygp/win/gui/button.hpp | qaqwqaqwq-0/YGP | 928d53aff1c8ca1327b0cf7ad6e6836d44c3447f | [
"MIT"
] | 5 | 2020-12-07T08:58:24.000Z | 2021-03-22T08:21:16.000Z | include/ygp/win/gui/button.hpp | qaqwqaqwq-0/YGP | 928d53aff1c8ca1327b0cf7ad6e6836d44c3447f | [
"MIT"
] | null | null | null | include/ygp/win/gui/button.hpp | qaqwqaqwq-0/YGP | 928d53aff1c8ca1327b0cf7ad6e6836d44c3447f | [
"MIT"
] | 2 | 2021-01-26T07:45:52.000Z | 2021-02-14T15:54:54.000Z | //Windows Common Controls Wrapper - The Button Control
#ifndef _YGP_WIN_GUI_BUTTON_HPP_
#define _YGP_WIN_GUI_BUTTON_HPP_
#include"window.hpp"
#include<commctrl.h>
BEGIN_NAMESPACE_YGP
class basic_button:public window
{
public:
using window::create;
basic_button(){}
basic_button(HWND hParent,L... | 37.674074 | 76 | 0.597719 | qaqwqaqwq-0 |
91a234e13558671ae7f0614663b0bd36cf26f424 | 521 | cpp | C++ | Source/Tank_To_Target/MyPlayerController.cpp | Mati-C/Tank_To_Target | e506dc0744dff975a3d2f555656adf874b395962 | [
"Apache-2.0"
] | null | null | null | Source/Tank_To_Target/MyPlayerController.cpp | Mati-C/Tank_To_Target | e506dc0744dff975a3d2f555656adf874b395962 | [
"Apache-2.0"
] | null | null | null | Source/Tank_To_Target/MyPlayerController.cpp | Mati-C/Tank_To_Target | e506dc0744dff975a3d2f555656adf874b395962 | [
"Apache-2.0"
] | null | null | null | // Fill out your copyright notice in the Description page of Project Settings.
#include "MyPlayerController.h"
#include "Blueprint/UserWidget.h"
void AMyPlayerController::BeginPlay()
{
Super::BeginPlay();
if (GetWorld()->GetMapName() == "UEDPIE_0_Level_3")
hud = CreateWidget<UUserWidget>(this, hudComponentLevel3... | 32.5625 | 107 | 0.735125 | Mati-C |
91a38f8f28ab879faa98399ce1e5ddf7dace99e8 | 768 | cpp | C++ | Yoshi-DLC/app/Objects/CSharedObjInfo.cpp | DeaTh-G/Yoshi-DLC | 56a86350df9b79d14f83f6f0f65500ed12dc17a1 | [
"MIT"
] | 12 | 2021-02-02T20:52:33.000Z | 2022-02-09T15:27:40.000Z | slw-dlc-restoration/app/Objects/CSharedObjInfo.cpp | DeaTh-G/slw-dlc-restoration | dadcc7812af2dc6ec6a3ddcf14d8fa7f3f217f25 | [
"MIT"
] | 2 | 2021-04-15T14:34:16.000Z | 2021-04-16T10:48:28.000Z | slw-dlc-restoration/app/Objects/CSharedObjInfo.cpp | DeaTh-G/slw-dlc-restoration | dadcc7812af2dc6ec6a3ddcf14d8fa7f3f217f25 | [
"MIT"
] | 3 | 2021-04-15T14:12:44.000Z | 2022-01-30T02:57:33.000Z | #include "pch.h"
HOOK(int*, __fastcall, CSharedObjInfoInitialize, ASLR(0x00666C90), char* This, void* edx, app::GameDocument* gameDocument)
{
int* result = originalCSharedObjInfoInitialize(This, edx, gameDocument);
const char* packFileName = app::ObjUtil::GetStagePackName(gameDocument);
if (strncmp(packFi... | 28.444444 | 122 | 0.677083 | DeaTh-G |
91a5efbcaa131c467e05c7923436c5580bfbb8db | 2,750 | cpp | C++ | NewtonRuntime/NewtonRuntime.cpp | pguyot/mbedtls-NewtonOS | fb33e29239173006b9f2a43622192e47a2dd2643 | [
"Apache-2.0"
] | 7 | 2020-06-13T21:04:40.000Z | 2021-05-15T21:28:55.000Z | NewtonRuntime/NewtonRuntime.cpp | pguyot/mbedtls-NewtonOS | fb33e29239173006b9f2a43622192e47a2dd2643 | [
"Apache-2.0"
] | null | null | null | NewtonRuntime/NewtonRuntime.cpp | pguyot/mbedtls-NewtonOS | fb33e29239173006b9f2a43622192e47a2dd2643 | [
"Apache-2.0"
] | null | null | null | // =========== Header ===========
// File: NewtonRuntime.cpp
// Project: DCL / ToolchainUtils
// Written by: Paul Guyot (pguyot@kallisys.net)
//
// Created on: 25/05/2020
// Internal version: 1
//
// Copyright: © 2020 by Paul Guyot.
// All r... | 27.777778 | 81 | 0.599273 | pguyot |
91bbeab682671a67926a6782dab5b13da1f08f02 | 2,482 | cpp | C++ | src/async_web_server_cpp/http_request.cpp | iche033/ign-video-server | a280eb08a3b8023af74d5d41d2e1d3a792a69dec | [
"BSD-3-Clause"
] | 1 | 2020-12-14T22:40:28.000Z | 2020-12-14T22:40:28.000Z | src/async_web_server_cpp/http_request.cpp | iche033/ign-video-server | a280eb08a3b8023af74d5d41d2e1d3a792a69dec | [
"BSD-3-Clause"
] | 1 | 2021-01-19T22:04:02.000Z | 2021-02-02T03:37:58.000Z | src/async_web_server_cpp/http_request.cpp | iche033/ign-video-server | a280eb08a3b8023af74d5d41d2e1d3a792a69dec | [
"BSD-3-Clause"
] | 1 | 2021-01-19T21:40:01.000Z | 2021-01-19T21:40:01.000Z | #include "ignition/async_web_server_cpp/http_request.hh"
#include <regex>
std::vector<std::string> split_string(const std::string &input, char delim) {
std::vector<std::string> tokens;
std::string token;
std::istringstream tokenStream(input);
while (std::getline(tokenStream, token, delim)) {
tokens.push_b... | 24.333333 | 91 | 0.645044 | iche033 |
91bbfd35872f463ddc44954f1556670b12d280c0 | 1,031 | cpp | C++ | QCIFSServer/QCIFSFwk/cCallbackChangeListener.cpp | rodrigomr/VFS | 6b68b00df8cb668106c2d0841cbcd46138298717 | [
"Apache-2.0"
] | 38 | 2018-09-24T09:37:41.000Z | 2022-02-21T04:16:43.000Z | QCIFSServer/QCIFSFwk/cCallbackChangeListener.cpp | rodrigomr/VFS | 6b68b00df8cb668106c2d0841cbcd46138298717 | [
"Apache-2.0"
] | 1 | 2018-10-02T17:57:44.000Z | 2018-10-07T06:55:44.000Z | QCIFSServer/QCIFSFwk/cCallbackChangeListener.cpp | rodrigomr/VFS | 6b68b00df8cb668106c2d0841cbcd46138298717 | [
"Apache-2.0"
] | 6 | 2018-10-02T17:12:38.000Z | 2021-01-27T10:01:30.000Z | // Copyright 2018 Grass Valley, A Belden Brand
// 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 ag... | 29.457143 | 124 | 0.776916 | rodrigomr |
91c3639ace40f7d179d7847ecb36b80f73938f3d | 5,855 | cpp | C++ | src/Parsers/Kusto/KustoFunctions/KQLAggregationFunctions.cpp | DevTeamBK/ClickHouse | f65b5d21594a07afb017a7cdaa718c5d1caa257d | [
"Apache-2.0"
] | null | null | null | src/Parsers/Kusto/KustoFunctions/KQLAggregationFunctions.cpp | DevTeamBK/ClickHouse | f65b5d21594a07afb017a7cdaa718c5d1caa257d | [
"Apache-2.0"
] | 1 | 2021-12-22T12:08:09.000Z | 2021-12-22T12:08:09.000Z | src/Parsers/Kusto/KustoFunctions/KQLAggregationFunctions.cpp | DevTeamBK/ClickHouse | f65b5d21594a07afb017a7cdaa718c5d1caa257d | [
"Apache-2.0"
] | null | null | null | #include <Parsers/IParserBase.h>
#include <Parsers/ParserSetQuery.h>
#include <Parsers/ASTExpressionList.h>
#include <Parsers/ASTSelectWithUnionQuery.h>
#include <Parsers/Kusto/ParserKQLQuery.h>
#include <Parsers/Kusto/ParserKQLStatement.h>
#include <Parsers/Kusto/KustoFunctions/IParserKQLFunction.h>
#include <Parsers/... | 21.928839 | 66 | 0.67088 | DevTeamBK |
91c51789f34e7b9b3e1fda4db790619f8bc421eb | 65,002 | cpp | C++ | Modular/library/source/TTApplication.cpp | jamoma/JamomaCore | 7b1becc7f6ae2bc1f283a34af0b3986ce20f3a43 | [
"BSD-3-Clause"
] | 31 | 2015-02-28T23:51:10.000Z | 2021-12-25T04:16:01.000Z | Modular/library/source/TTApplication.cpp | jamoma/JamomaCore | 7b1becc7f6ae2bc1f283a34af0b3986ce20f3a43 | [
"BSD-3-Clause"
] | 126 | 2015-01-01T13:42:05.000Z | 2021-07-13T14:11:42.000Z | Modular/library/source/TTApplication.cpp | jamoma/JamomaCore | 7b1becc7f6ae2bc1f283a34af0b3986ce20f3a43 | [
"BSD-3-Clause"
] | 14 | 2015-02-10T15:08:32.000Z | 2019-09-17T01:21:25.000Z | /** @file
*
* @ingroup modularLibrary
*
* @brief TTObjectBase to handle application data structure like a TTNodeDirectory and a hash tables of names
*
* @details
*
* @authors Théo de la Hogue
*
* @copyright © 2010, Théo de la Hogue @n
* This code is licensed under the terms of the "New BSD License" @n
* htt... | 34.575532 | 183 | 0.557229 | jamoma |
91cd8deef9188f6bd7be7bc181888d2249af114d | 1,041 | cpp | C++ | others/ancestor.cpp | anu9901998/competitive-programming | 2a3325bc42d027197449d85c519a74d104a5461c | [
"MIT"
] | 6 | 2020-04-08T00:25:44.000Z | 2021-09-04T20:39:15.000Z | others/ancestor.cpp | anu9901998/competitive-programming | 2a3325bc42d027197449d85c519a74d104a5461c | [
"MIT"
] | 2 | 2020-04-09T06:59:12.000Z | 2020-04-09T14:56:32.000Z | others/ancestor.cpp | anu9901998/competitive-programming | 2a3325bc42d027197449d85c519a74d104a5461c | [
"MIT"
] | 6 | 2020-04-16T03:47:06.000Z | 2021-09-07T10:21:32.000Z | #include <bits/stdc++.h>
using namespace std;
const int maxn = 1e5;
vector<int>adj[maxn+7];
int timein[maxn+7] = {};
int timeout[maxn+7] = {};
int curr_time = 0;
void dfs(int a, int parent){
timein[a] = curr_time++;
for(int b:adj[a]){
if (b == parent) continue;
dfs(b, a);
}
timeout[... | 18.927273 | 99 | 0.473583 | anu9901998 |
91ce383ea79beac5aa1778bedb9641e2ba8cd436 | 1,884 | cpp | C++ | USACO Bronze/December 2017 Contest/milk.cpp | Alecs-Li/Competitive-Programming | 39941ff8e2c8994abbae8c96a1ed0a04b10058b8 | [
"MIT"
] | 1 | 2021-07-06T02:14:03.000Z | 2021-07-06T02:14:03.000Z | USACO Bronze/December 2017 Contest/milk.cpp | Alex01890-creator/competitive-programming | 39941ff8e2c8994abbae8c96a1ed0a04b10058b8 | [
"MIT"
] | null | null | null | USACO Bronze/December 2017 Contest/milk.cpp | Alex01890-creator/competitive-programming | 39941ff8e2c8994abbae8c96a1ed0a04b10058b8 | [
"MIT"
] | null | null | null | #include <iostream>
#include <vector>
#include <fstream>
using namespace std;
int main(){
ifstream fin("measurement.in");
ofstream fout("measurement.out");
int N, ans = 0, count = 0, cap = 0; fin >> N;
int day[N], change[N], b = 7, m = 7, e = 7, mostM = 0;
string cows[] = {"Bessie, Mildred, Elsie"}, temp;
... | 27.304348 | 56 | 0.376327 | Alecs-Li |
91d175b58e372795786052e9ef4a82afc1c71d19 | 1,929 | cpp | C++ | src/coreclr/src/pal/tests/palsuite/file_io/GetStdHandle/test2/GetStdHandle.cpp | swaroop-sridhar/runtime | d0efddd932f6fb94c3e9436ab393fc390c7b2da9 | [
"MIT"
] | 52 | 2017-03-15T08:16:52.000Z | 2019-04-26T07:53:29.000Z | src/coreclr/src/pal/tests/palsuite/file_io/GetStdHandle/test2/GetStdHandle.cpp | swaroop-sridhar/runtime | d0efddd932f6fb94c3e9436ab393fc390c7b2da9 | [
"MIT"
] | 2 | 2020-03-25T06:25:42.000Z | 2022-02-25T21:30:33.000Z | src/coreclr/src/pal/tests/palsuite/file_io/GetStdHandle/test2/GetStdHandle.cpp | swaroop-sridhar/runtime | d0efddd932f6fb94c3e9436ab393fc390c7b2da9 | [
"MIT"
] | 14 | 2019-05-09T13:15:41.000Z | 2021-11-16T02:54:09.000Z | // Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
/*=====================================================================
**
** Source: GetStdHandle.c (test 2)
**
** Purpose: Smoke Tests the PAL implementation of the GetStdHandle f... | 24.417722 | 76 | 0.567652 | swaroop-sridhar |
91d7960b37ae3114f179b49ef7db1d472584d226 | 1,045 | cpp | C++ | SlidingWindow/longestsubarraywithsumk.cpp | thisisnitish/cp-dsa- | 9ae94930b65f8dc293d088e9148960939b9f6fa4 | [
"MIT"
] | 4 | 2020-12-29T09:27:10.000Z | 2022-02-12T14:20:23.000Z | SlidingWindow/longestsubarraywithsumk.cpp | thisisnitish/cp-dsa- | 9ae94930b65f8dc293d088e9148960939b9f6fa4 | [
"MIT"
] | 1 | 2021-11-27T06:15:28.000Z | 2021-11-27T06:15:28.000Z | SlidingWindow/longestsubarraywithsumk.cpp | thisisnitish/cp-dsa- | 9ae94930b65f8dc293d088e9148960939b9f6fa4 | [
"MIT"
] | 1 | 2021-11-17T21:42:57.000Z | 2021-11-17T21:42:57.000Z | /*
Longest Sub-Array with Sum K
https://practice.geeksforgeeks.org/problems/longest-sub-array-with-sum-k0809/1#
*/
class Solution
{
public:
int lenOfLongSubarr(int A[], int N, int K)
{
int i = 0, j = 0, sum = 0, ans = 0;
while (j < N)
{
sum += A[j];
//here we h... | 23.75 | 80 | 0.344498 | thisisnitish |
91d89092db3a0bdd638a80bdc4fdd0b7d47d2184 | 4,174 | cpp | C++ | client/include/game/CQuadTreeNode.cpp | MayconFelipeA/sampvoiceatt | 3fae8a2cf37dfad2e3925d56aebfbbcd4162b0ff | [
"MIT"
] | 368 | 2015-01-01T21:42:00.000Z | 2022-03-29T06:22:22.000Z | client/include/game/CQuadTreeNode.cpp | MayconFelipeA/sampvoiceatt | 3fae8a2cf37dfad2e3925d56aebfbbcd4162b0ff | [
"MIT"
] | 92 | 2019-01-23T23:02:31.000Z | 2022-03-23T19:59:40.000Z | client/include/game/CQuadTreeNode.cpp | MayconFelipeA/sampvoiceatt | 3fae8a2cf37dfad2e3925d56aebfbbcd4162b0ff | [
"MIT"
] | 179 | 2015-02-03T23:41:17.000Z | 2022-03-26T08:27:16.000Z | /*
Plugin-SDK (Grand Theft Auto San Andreas) source file
Authors: GTA Community. See more here
https://github.com/DK22Pac/plugin-sdk
Do not delete this comment block. Respect others' work!
*/
#include "CQuadTreeNode.h"
// Converted from thiscall void CQuadTreeNode::AddItem(void *item,CRect const&rect) ... | 47.977011 | 125 | 0.763776 | MayconFelipeA |
91d942e502a55a0e9d2050fa54b6b8bd75a523da | 5,255 | cpp | C++ | src/Configuration.cpp | CastMi/warped2 | 86c2fa5ddf777530b637dba800641b30ccee7aa7 | [
"MIT"
] | null | null | null | src/Configuration.cpp | CastMi/warped2 | 86c2fa5ddf777530b637dba800641b30ccee7aa7 | [
"MIT"
] | null | null | null | src/Configuration.cpp | CastMi/warped2 | 86c2fa5ddf777530b637dba800641b30ccee7aa7 | [
"MIT"
] | null | null | null | #include "Configuration.hpp"
#include <cstdlib>
#include <fstream>
#include <iostream>
#include <memory>
#include <stdexcept>
#include <string>
#include <tuple>
#include <utility>
#include <vector>
#include <iostream>
#include "json/json.h"
#include "config.h"
#include "CommandLineConfiguration.hpp"
#include "EventD... | 26.948718 | 103 | 0.646432 | CastMi |
91d96346166f89e285e73a00156322a6cfcbcb69 | 1,408 | cpp | C++ | libkiml/src/states.cpp | alexanderdna/KimL | 58915197ac5a85686a9d6126c4c2fe0374419fde | [
"MIT"
] | null | null | null | libkiml/src/states.cpp | alexanderdna/KimL | 58915197ac5a85686a9d6126c4c2fe0374419fde | [
"MIT"
] | 1 | 2020-07-13T03:44:19.000Z | 2020-07-14T08:32:03.000Z | libkiml/src/states.cpp | alexanderdna/KimL | 58915197ac5a85686a9d6126c4c2fe0374419fde | [
"MIT"
] | null | null | null | #include "stdafx.h"
#include "states.h"
#include "utils.h"
#include <string.h>
bool States::loadByteCode(const KIMLBYTE *byteCodeContent, KIMLUINT byteCodeSize)
{
if (byteCodeSize < 24)
return false;
if (this->code)
{
delete []this->code;
this->code = nullptr;
this->codesize = 0;
}
KIMLCHAR magic[4];
... | 22 | 93 | 0.681818 | alexanderdna |
91daae02c393c77c19acca4b8046968a861a8348 | 1,331 | cpp | C++ | 1273 Drainage Ditches/main.cpp | sqc1999-oi/POJ | 450afa9485bcf5398f9cb7efd5a3b8c40de60e03 | [
"MIT"
] | 1 | 2016-07-18T12:05:16.000Z | 2016-07-18T12:05:16.000Z | 1273 Drainage Ditches/main.cpp | sqc1999/POJ | 450afa9485bcf5398f9cb7efd5a3b8c40de60e03 | [
"MIT"
] | null | null | null | 1273 Drainage Ditches/main.cpp | sqc1999/POJ | 450afa9485bcf5398f9cb7efd5a3b8c40de60e03 | [
"MIT"
] | null | null | null | #include<iostream>
#include<algorithm>
#include<vector>
#include<queue>
using namespace std;
struct Edge { int from, to, cap, flow; };
struct EK
{
static const int INF = 0x7fffffff;
int n, m, a[201], p[201];
vector<int> G[201];
vector<Edge> Edges;
int MaxFlow()
{
int flow = 0;
while (true)
... | 19.289855 | 49 | 0.458302 | sqc1999-oi |
91e29c83725890c5c0c3d62ee5a66e83320e3194 | 1,534 | hpp | C++ | external/plate/gpu/webgl/scissor.hpp | DisQS/AniMolViewer | c56293067672a453a3cf3490c0e86004df0130dc | [
"BSD-3-Clause"
] | 2 | 2021-11-21T23:26:00.000Z | 2021-12-18T10:33:17.000Z | external/plate/gpu/webgl/scissor.hpp | DisQS/AniMolViewer | c56293067672a453a3cf3490c0e86004df0130dc | [
"BSD-3-Clause"
] | 5 | 2021-11-28T18:26:25.000Z | 2021-12-06T08:15:06.000Z | external/plate/gpu/webgl/scissor.hpp | DisQS/animol-viewer | c56293067672a453a3cf3490c0e86004df0130dc | [
"BSD-3-Clause"
] | null | null | null | #pragma once
#include <cstddef>
#include <cstdlib>
#include <GLES3/gl3.h>
#include "../gpu.hpp"
namespace plate {
class scissor {
public:
void push(gpu::int_box box) noexcept
{
if (enabled_) // scissor into a scissor area..
{
add_current_to_stack();
box_.p1.x = std::max(box.p1.x, box_.... | 17.431818 | 84 | 0.576923 | DisQS |
91e3c11c437e6a8113f5841b6dd9066dbe442e15 | 1,426 | cpp | C++ | C++/Variable Sized Arrays/variable sized arrays.cpp | IsaacAsante/hackerrank | 76c430b341ce1e2ab427eda57508eb309d3b215b | [
"MIT"
] | 108 | 2021-03-29T05:04:16.000Z | 2022-03-19T15:11:52.000Z | C++/Variable Sized Arrays/variable sized arrays.cpp | IsaacAsante/hackerrank | 76c430b341ce1e2ab427eda57508eb309d3b215b | [
"MIT"
] | null | null | null | C++/Variable Sized Arrays/variable sized arrays.cpp | IsaacAsante/hackerrank | 76c430b341ce1e2ab427eda57508eb309d3b215b | [
"MIT"
] | 32 | 2021-03-30T03:56:54.000Z | 2022-03-27T14:41:32.000Z | /* Author: Isaac Asante
* HackerRank URL for this exercise: https://www.hackerrank.com/challenges/variable-sized-arrays/problem
* Original video explanation: https://www.youtube.com/watch?v=JcFUgBOCGKA
* Last verified on: April 17, 2021
*/
/* IMPORTANT:
* This is the full code for the solution.
* Some headers we... | 23.766667 | 104 | 0.547686 | IsaacAsante |
91e3f126ad303b16b71fdb606b930a6a5e5318f8 | 942 | hpp | C++ | sprout/compost/effects.hpp | osyo-manga/Sprout | 8885b115f739ef255530f772067475d3bc0dcef7 | [
"BSL-1.0"
] | 1 | 2020-02-04T05:16:01.000Z | 2020-02-04T05:16:01.000Z | sprout/compost/effects.hpp | osyo-manga/Sprout | 8885b115f739ef255530f772067475d3bc0dcef7 | [
"BSL-1.0"
] | null | null | null | sprout/compost/effects.hpp | osyo-manga/Sprout | 8885b115f739ef255530f772067475d3bc0dcef7 | [
"BSL-1.0"
] | null | null | null | #ifndef SPROUT_COMPOST_EFFECTS_HPP
#define SPROUT_COMPOST_EFFECTS_HPP
#include <sprout/config.hpp>
#include <sprout/compost/effects/clipped.hpp>
#include <sprout/compost/effects/rectified.hpp>
#include <sprout/compost/effects/changed_volume.hpp>
#include <sprout/compost/effects/reverbed.hpp>
#include <sprout/c... | 40.956522 | 54 | 0.799363 | osyo-manga |
91ef43b688c4f48b3c2c7ec28174130ad54197a3 | 510 | cpp | C++ | Codeforces/902A - Visiting a Friend.cpp | naimulcsx/online-judge-solutions | 0b80f81bcfb05a7cfe7fc925304c70b19eff1d6f | [
"MIT"
] | null | null | null | Codeforces/902A - Visiting a Friend.cpp | naimulcsx/online-judge-solutions | 0b80f81bcfb05a7cfe7fc925304c70b19eff1d6f | [
"MIT"
] | null | null | null | Codeforces/902A - Visiting a Friend.cpp | naimulcsx/online-judge-solutions | 0b80f81bcfb05a7cfe7fc925304c70b19eff1d6f | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
using namespace std;
int main() {
int n, m;
scanf("%d %d", &n, &m);
vector<pair<int, int>> arr(n + 1);
arr.push_back({0, 0});
for (int i = 1; i <= n; ++i) scanf("%d %d", &arr[i].first, &arr[i].second);
int curr_pos = 0;
for (int i = 0; i < n; ++i) {
if ... | 24.285714 | 79 | 0.486275 | naimulcsx |
91f003b282553ce1aac84637dc099e10952128e0 | 129 | hpp | C++ | dependencies/all_include/glm/detail/type_vec.hpp | o-micron/IntroToRendering | 7f1d8a02b2064b96334cbdef519af2048503722b | [
"MIT"
] | null | null | null | dependencies/all_include/glm/detail/type_vec.hpp | o-micron/IntroToRendering | 7f1d8a02b2064b96334cbdef519af2048503722b | [
"MIT"
] | null | null | null | dependencies/all_include/glm/detail/type_vec.hpp | o-micron/IntroToRendering | 7f1d8a02b2064b96334cbdef519af2048503722b | [
"MIT"
] | null | null | null | /// @ref core
/// @file glm/detail/type_vec.hpp
#pragma once
#include "qualifier.hpp"
#include "compute_vector_relational.hpp"
| 16.125 | 40 | 0.736434 | o-micron |
91f2809e96bed0678f08f50276eb08c83dc4af19 | 3,746 | cpp | C++ | lmeditor/src/component/entity_list/entity_list_component.cpp | Lawrencemm/LM-Engine | 9c5e59e64e2a5a24c347538fa49046ab5a88d1f5 | [
"MIT"
] | 40 | 2020-03-13T06:12:11.000Z | 2022-01-16T21:05:34.000Z | lmeditor/src/component/entity_list/entity_list_component.cpp | Lawrencemm/LM-Engine | 9c5e59e64e2a5a24c347538fa49046ab5a88d1f5 | [
"MIT"
] | 31 | 2020-02-09T06:25:12.000Z | 2021-12-31T04:37:08.000Z | lmeditor/src/component/entity_list/entity_list_component.cpp | Lawrencemm/LM-Engine | 9c5e59e64e2a5a24c347538fa49046ab5a88d1f5 | [
"MIT"
] | 2 | 2020-03-13T06:12:12.000Z | 2020-11-21T15:41:17.000Z | #include "entity_list_component.h"
#include <entt/entt.hpp>
#include <lmng/hierarchy.h>
#include <lmng/name.h>
#include <lmtk/vlayout.h>
namespace lmeditor
{
component entity_list_init::operator()()
{
return std::make_unique<entity_list_component>(*this);
}
entity_list_component::entity_list_component(entity_list... | 26.757143 | 79 | 0.694875 | Lawrencemm |
91f6dfba1c37281bf0732e562680e61665b43a72 | 1,376 | cpp | C++ | spectral/quadrature/gauss_hermite_roots.cpp | simonpp/2dRidgeletBTE | 5d08cbb5c57fc276c7a528f128615d23c37ef6a0 | [
"BSD-3-Clause"
] | 1 | 2019-11-08T03:15:56.000Z | 2019-11-08T03:15:56.000Z | spectral/quadrature/gauss_hermite_roots.cpp | simonpp/2dRidgeletBTE | 5d08cbb5c57fc276c7a528f128615d23c37ef6a0 | [
"BSD-3-Clause"
] | null | null | null | spectral/quadrature/gauss_hermite_roots.cpp | simonpp/2dRidgeletBTE | 5d08cbb5c57fc276c7a528f128615d23c37ef6a0 | [
"BSD-3-Clause"
] | 1 | 2019-11-08T03:15:56.000Z | 2019-11-08T03:15:56.000Z | #include <Eigen/Core>
#include <Eigen/Eigenvalues>
#include <Eigen/MPRealSupport>
#include <boost/math/constants/constants.hpp>
#include <boost/math/special_functions/gamma.hpp>
#include <boost/multiprecision/mpfr.hpp>
#include <iomanip>
#include <iostream>
#include "gauss_hermite_quadrature.hpp"
#include "spectral/mp... | 25.962264 | 84 | 0.698401 | simonpp |
91f6f67124a4c6f0298b8cb4bd954eb81dc45e06 | 239 | cpp | C++ | src/main.cpp | ATiltedTree/APASSTools | 1702e082ae3b95ec10f3c5c084ef9396de5c3833 | [
"MIT"
] | null | null | null | src/main.cpp | ATiltedTree/APASSTools | 1702e082ae3b95ec10f3c5c084ef9396de5c3833 | [
"MIT"
] | 4 | 2020-02-25T00:21:58.000Z | 2020-07-03T11:12:03.000Z | src/main.cpp | ATiltedTree/APASSTools | 1702e082ae3b95ec10f3c5c084ef9396de5c3833 | [
"MIT"
] | null | null | null | #include "ui/APASSTools/APASSTools.hpp"
#include <QApplication>
auto main(int argc, char *argv[]) -> int {
QApplication a(argc, argv);
APASSTools apasstools = APASSTools(nullptr);
apasstools.show();
return QApplication::exec();
}
| 23.9 | 46 | 0.715481 | ATiltedTree |
91f7b3f67addd15cb1202107a01569737872616b | 402 | cc | C++ | src/SourceRange.cc | MarcSeebold/libclangmm | a882bec8d15715486d11affac5479fba42b1cce2 | [
"MIT"
] | null | null | null | src/SourceRange.cc | MarcSeebold/libclangmm | a882bec8d15715486d11affac5479fba42b1cce2 | [
"MIT"
] | null | null | null | src/SourceRange.cc | MarcSeebold/libclangmm | a882bec8d15715486d11affac5479fba42b1cce2 | [
"MIT"
] | null | null | null | #include "SourceRange.h"
clang::SourceRange::
SourceRange(clang::SourceLocation &start, clang::SourceLocation &end) {
cx_range = clang_getRange(start.cx_location, end.cx_location);
}
std::pair<clang::Offset, clang::Offset> clang::SourceRange::get_offsets() {
SourceLocation start(clang_getRangeStart(cx_range)), en... | 36.545455 | 88 | 0.766169 | MarcSeebold |
91fa0c05a84a334b9697bc2b356175a4fcd34361 | 1,282 | cpp | C++ | 3111/7809563_AC_547MS_1356K.cpp | vandreas19/POJ_sol | 4895764ab800e8c2c4b2334a562dec2f07fa243e | [
"MIT"
] | 18 | 2017-08-14T07:34:42.000Z | 2022-01-29T14:20:29.000Z | 3111/7809563_AC_547MS_1356K.cpp | pinepara/poj_solutions | 4895764ab800e8c2c4b2334a562dec2f07fa243e | [
"MIT"
] | null | null | null | 3111/7809563_AC_547MS_1356K.cpp | pinepara/poj_solutions | 4895764ab800e8c2c4b2334a562dec2f07fa243e | [
"MIT"
] | 14 | 2016-12-21T23:37:22.000Z | 2021-07-24T09:38:57.000Z | #define _CRT_SECURE_NO_WARNINGS
#define DEBUG
#include<cstdio>
#include<cmath>
#include<algorithm>
const int JEWEL_NUM_MAX=100000;
int jewelNum,keep;
double averageValue;
struct Jewel{
int index,value,weight;
bool operator<(const Jewel &another){
//return value-weight*averageValue>another.value-a... | 22.892857 | 80 | 0.670827 | vandreas19 |
6206a2b774ccb49cfcacd192dcd8004656402025 | 2,026 | cpp | C++ | src/Compiler/DumpFile.cpp | cstanze/blossom | 2be90c6f16897a2acc1c40dad933a973e1ef2f57 | [
"MIT"
] | 3 | 2021-08-16T22:22:02.000Z | 2021-11-15T02:39:38.000Z | src/Compiler/DumpFile.cpp | cstanze/blossom | 2be90c6f16897a2acc1c40dad933a973e1ef2f57 | [
"MIT"
] | 1 | 2021-09-27T19:22:37.000Z | 2022-03-29T12:41:24.000Z | src/Compiler/DumpFile.cpp | cstanze/blossom | 2be90c6f16897a2acc1c40dad933a973e1ef2f57 | [
"MIT"
] | null | null | null | #include "Compiler/DumpFile.hpp"
Errors bmod_dump_file(Bytecode &bc, const char* filename) {
FILE* fp = fopen(filename, "wb");
if (fp == NULL) {
Err::set(E_FILE_IO, 0,
"Failed to open file '%s' for writing",
filename);
return E_FILE_IO;
}
// Write magic header
fwrite("BLSM... | 30.69697 | 127 | 0.628825 | cstanze |
620816532ff99c8f0343d4570b5ab995e3fe64c6 | 311 | cpp | C++ | Semester_1/Assignment 2/UVa 11934 - Magic Formula.cpp | ryankert01/Programming-1--1-hw7 | c0b7fcf35000406d0bb3ae6cc862e71ea986d796 | [
"Apache-2.0"
] | 2 | 2022-03-06T17:37:00.000Z | 2022-03-06T17:37:02.000Z | Semester_1/Assignment 2/UVa 11934 - Magic Formula.cpp | ryankert01/Programming-1--1-hw7 | c0b7fcf35000406d0bb3ae6cc862e71ea986d796 | [
"Apache-2.0"
] | null | null | null | Semester_1/Assignment 2/UVa 11934 - Magic Formula.cpp | ryankert01/Programming-1--1-hw7 | c0b7fcf35000406d0bb3ae6cc862e71ea986d796 | [
"Apache-2.0"
] | null | null | null | #include <iostream>
#include <algorithm>
using namespace std;
int main() {
int a, b, c, d, L;
while (cin >> a >> b >> c >> d >> L) {
if (!(a+b+c+d+L)) {
break;
}
int t=0;
for (int i=0; i <= L; ++i) {
if ((i * i * a + i * b + c) % d == 0) {
t++;
}
}
cout << t << endl;
}
return 0;
} | 15.55 | 42 | 0.421222 | ryankert01 |
6209be364ddfb249cd8b8a87e6d670776edc1feb | 1,930 | cpp | C++ | Starters 17/PARPERM.cpp | Jks08/CodeChef | a8aec8a563c441176a36b8581031764e99f09833 | [
"MIT"
] | 1 | 2021-09-17T13:10:04.000Z | 2021-09-17T13:10:04.000Z | Starters 17/PARPERM.cpp | Jks08/CodeChef | a8aec8a563c441176a36b8581031764e99f09833 | [
"MIT"
] | null | null | null | Starters 17/PARPERM.cpp | Jks08/CodeChef | a8aec8a563c441176a36b8581031764e99f09833 | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
using namespace std;
#define ll long long int
#define pb push_back
#define show(v) for(int i=0; i<(int)v.size(); ++i) cout<<v[i]<<" "
const ll max_size = 1e5+5;
bool prime[max_size];
void prime_seive(ll n)
{
memset(prime, true, sizeof(prime));
for(ll i=2; i*i<=n; i++)
{
if(prime[i]... | 16.495726 | 66 | 0.371503 | Jks08 |
620c9b649176f3d40f4093fbba8b0ab088ffc87a | 11,912 | cpp | C++ | tests/sim_sample.cpp | QuarticCat/toy-mips-simulator-in-800-lines | a3fe2cdb93789ef6971d89ca05d54d05bdd1d3dd | [
"MIT"
] | null | null | null | tests/sim_sample.cpp | QuarticCat/toy-mips-simulator-in-800-lines | a3fe2cdb93789ef6971d89ca05d54d05bdd1d3dd | [
"MIT"
] | null | null | null | tests/sim_sample.cpp | QuarticCat/toy-mips-simulator-in-800-lines | a3fe2cdb93789ef6971d89ca05d54d05bdd1d3dd | [
"MIT"
] | null | null | null | #include <filesystem>
#include <fstream>
#include <iostream>
#include <iterator>
#include "test_util.hpp"
// clang-format off
SIM_TEST(SimSample, a_plus_b,
R"(
.text
addi $v0, $zero, 5
syscall
add $t0, $zero, $v0
addi $v0, $zero, 5
syscall
add $t1, $zero, $v0
add $... | 27.702326 | 107 | 0.453156 | QuarticCat |
62172d42da6b75c0194c3031a134c460a356d5c0 | 1,149 | hpp | C++ | libs/PhiCore/include/phi/type_traits/integral_constant.hpp | AMS21/Phi | d62d7235dc5307dd18607ade0f95432ae3a73dfd | [
"MIT"
] | 3 | 2020-12-21T13:47:35.000Z | 2022-03-16T23:53:21.000Z | libs/PhiCore/include/phi/type_traits/integral_constant.hpp | AMS21/Phi | d62d7235dc5307dd18607ade0f95432ae3a73dfd | [
"MIT"
] | 53 | 2020-08-07T07:46:57.000Z | 2022-02-12T11:07:08.000Z | libs/PhiCore/include/phi/type_traits/integral_constant.hpp | AMS21/Phi | d62d7235dc5307dd18607ade0f95432ae3a73dfd | [
"MIT"
] | 1 | 2020-08-19T15:50:02.000Z | 2020-08-19T15:50:02.000Z | #ifndef INCG_PHI_CORE_TYPE_TRAITS_INTEGRAL_CONSTANT_HPP
#define INCG_PHI_CORE_TYPE_TRAITS_INTEGRAL_CONSTANT_HPP
#include "phi/phi_config.hpp"
#if PHI_HAS_EXTENSION_PRAGMA_ONCE()
# pragma once
#endif
#include "phi/compiler_support/inline.hpp"
#include "phi/compiler_support/nodiscard.hpp"
DETAIL_PHI_BEGIN_NAMESPAC... | 24.446809 | 79 | 0.770235 | AMS21 |
6217a718561673d06e74609a13b11fa8d6881b42 | 1,409 | cpp | C++ | Engine/lib/collada/src/dae/daeDatabase.cpp | vbillet/Torque3D | ece8823599424ea675e5f79d9bcb44e42cba8cae | [
"MIT"
] | 2,113 | 2015-01-01T11:23:01.000Z | 2022-03-28T04:51:46.000Z | Engine/lib/collada/src/dae/daeDatabase.cpp | vbillet/Torque3D | ece8823599424ea675e5f79d9bcb44e42cba8cae | [
"MIT"
] | 948 | 2015-01-02T01:50:00.000Z | 2022-02-27T05:56:40.000Z | Engine/lib/collada/src/dae/daeDatabase.cpp | vbillet/Torque3D | ece8823599424ea675e5f79d9bcb44e42cba8cae | [
"MIT"
] | 944 | 2015-01-01T09:33:53.000Z | 2022-03-15T22:23:03.000Z | /*
* Copyright 2007 Sony Computer Entertainment Inc.
*
* Licensed under the SCEA Shared Source License, Version 1.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://research.scea.com/scea_shared_source_license.html
*
* Unless r... | 30.630435 | 103 | 0.733854 | vbillet |
621e73ce4b81cb4dff1bd04561944dfe138fc541 | 1,204 | cpp | C++ | NWNXLib/API/Mac/API/CCallbackImplTemplated8.cpp | acaos/nwnxee-unified | 0e4c318ede64028c1825319f39c012e168e0482c | [
"MIT"
] | 1 | 2019-06-04T04:30:24.000Z | 2019-06-04T04:30:24.000Z | NWNXLib/API/Mac/API/CCallbackImplTemplated8.cpp | presscad/nwnee | 0f36b281524e0b7e9796bcf30f924792bf9b8a38 | [
"MIT"
] | null | null | null | NWNXLib/API/Mac/API/CCallbackImplTemplated8.cpp | presscad/nwnee | 0f36b281524e0b7e9796bcf30f924792bf9b8a38 | [
"MIT"
] | 1 | 2019-10-20T07:54:45.000Z | 2019-10-20T07:54:45.000Z | #include "CCallbackImplTemplated8.hpp"
#include "API/Functions.hpp"
#include "Platform/ASLR.hpp"
namespace NWNXLib {
namespace API {
int32_t CCallbackImplTemplated8::GetCallbackSizeBytes()
{
return CCallbackImplTemplated8__GetCallbackSizeBytes(this);
}
void CCallbackImplTemplated8::Run(void* a0, int32_t a1, uin... | 31.684211 | 118 | 0.784884 | acaos |
621fa679dda988188b6892a287d4b40f6a50a8c4 | 1,027 | cpp | C++ | src/core/primitives.cpp | YottaYocta/Asc3 | 48e654461a2ec7ccde3f06145a1af13cde34dcbb | [
"MIT"
] | null | null | null | src/core/primitives.cpp | YottaYocta/Asc3 | 48e654461a2ec7ccde3f06145a1af13cde34dcbb | [
"MIT"
] | null | null | null | src/core/primitives.cpp | YottaYocta/Asc3 | 48e654461a2ec7ccde3f06145a1af13cde34dcbb | [
"MIT"
] | null | null | null | #include <core/primitives.h>
sphere::sphere() : sphere(vec3 {0, 0, -1}, 1) {}
sphere::sphere(const vec3& c, double r) : center {c}, radius {r} {}
const vec3& sphere::get_center() const
{
return center;
}
void sphere::set_center(const vec3& c)
{
center = c;
}
double sphere::get_radius() const
{
return radius;... | 20.959184 | 72 | 0.602726 | YottaYocta |
622497b005a416e7314722aac575eb8a7da833dc | 4,826 | cpp | C++ | sfml/src/Audio/SFMLAudioMusicSource.cpp | hhsaez/crimild | e3efee09489939338df55e8af9a1f9ddc01301f7 | [
"BSD-3-Clause"
] | 36 | 2015-03-12T10:42:36.000Z | 2022-01-12T04:20:40.000Z | sfml/src/Audio/SFMLAudioMusicSource.cpp | hhsaez/crimild | e3efee09489939338df55e8af9a1f9ddc01301f7 | [
"BSD-3-Clause"
] | 1 | 2015-12-17T00:25:43.000Z | 2016-02-20T12:00:57.000Z | sfml/src/Audio/SFMLAudioMusicSource.cpp | hhsaez/crimild | e3efee09489939338df55e8af9a1f9ddc01301f7 | [
"BSD-3-Clause"
] | 6 | 2017-06-17T07:57:53.000Z | 2019-04-09T21:11:24.000Z | /*
* Copyright (c) 2013, Hernan Saez
* 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 list of con... | 26.086486 | 84 | 0.750725 | hhsaez |
622c8cf4dd5b43a53dd025b2bda0e12fd5ce8aa4 | 19,031 | cpp | C++ | src/hwenc_msdk/msdk_video_encoder.cpp | tetsu-koba/momo | 0082e8cdcaba988d1e4ae3e79f57066b4a2857c5 | [
"Apache-2.0"
] | null | null | null | src/hwenc_msdk/msdk_video_encoder.cpp | tetsu-koba/momo | 0082e8cdcaba988d1e4ae3e79f57066b4a2857c5 | [
"Apache-2.0"
] | null | null | null | src/hwenc_msdk/msdk_video_encoder.cpp | tetsu-koba/momo | 0082e8cdcaba988d1e4ae3e79f57066b4a2857c5 | [
"Apache-2.0"
] | null | null | null | #include "msdk_video_encoder.h"
#include <iostream>
// libyuv
#include <libyuv.h>
#include "msdk_utils.h"
const int kLowH264QpThreshold = 34;
const int kHighH264QpThreshold = 40;
MsdkVideoEncoder::MsdkVideoEncoder(std::shared_ptr<MsdkSession> session,
mfxU32 codec)
: session_... | 37.242661 | 212 | 0.678892 | tetsu-koba |
622cad24b8e01326a0ac4dd75c2a8afc90985632 | 86 | cpp | C++ | src/KawaiiEngine/src/widgets/ComponentInspector.cpp | Mathieu-Lala/Cute_Solar_System_-3 | 0bfe496991344709481995af348da2be37a19cac | [
"MIT"
] | 4 | 2021-06-03T11:20:09.000Z | 2022-02-11T06:52:54.000Z | src/KawaiiEngine/src/widgets/ComponentInspector.cpp | Mathieu-Lala/Cute_Solar_System_-3 | 0bfe496991344709481995af348da2be37a19cac | [
"MIT"
] | 35 | 2021-05-29T09:25:57.000Z | 2021-06-28T04:49:22.000Z | src/KawaiiEngine/src/widgets/ComponentInspector.cpp | Mathieu-Lala/Kawaii_Engine | 0bfe496991344709481995af348da2be37a19cac | [
"MIT"
] | null | null | null | #include "widgets/ComponentInspector.hpp"
int kawe::ComponentInspector::s_count = 0;
| 21.5 | 42 | 0.790698 | Mathieu-Lala |
623674142e8b82e64bd21731bcaee49b267a8105 | 3,062 | hpp | C++ | include/nana/gui/widgets/form.hpp | StillGreen-san/nana | 87ffd31013f031ef2a36331a7f776b3a00cd54b8 | [
"BSL-1.0"
] | null | null | null | include/nana/gui/widgets/form.hpp | StillGreen-san/nana | 87ffd31013f031ef2a36331a7f776b3a00cd54b8 | [
"BSL-1.0"
] | null | null | null | include/nana/gui/widgets/form.hpp | StillGreen-san/nana | 87ffd31013f031ef2a36331a7f776b3a00cd54b8 | [
"BSL-1.0"
] | null | null | null | /**
* A Form Implementation
* Nana C++ Library(http://www.nanapro.org)
* Copyright(C) 2003-2020 Jinhao(cnjinhao@hotmail.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)
*
* @file nana/gui/widgets/fo... | 32.924731 | 180 | 0.703462 | StillGreen-san |
623955d76285060ccded346d8bb5da05d86dcd07 | 2,548 | hpp | C++ | engine/engine/core/allocator/cached_allocator.hpp | ddr95070/RMIsaac | ee3918f685f0a88563248ddea11d089581077973 | [
"FSFAP"
] | 1 | 2020-04-14T13:55:16.000Z | 2020-04-14T13:55:16.000Z | engine/engine/core/allocator/cached_allocator.hpp | ddr95070/RMIsaac | ee3918f685f0a88563248ddea11d089581077973 | [
"FSFAP"
] | 4 | 2020-09-25T22:34:29.000Z | 2022-02-09T23:45:12.000Z | engine/engine/core/allocator/cached_allocator.hpp | ddr95070/RMIsaac | ee3918f685f0a88563248ddea11d089581077973 | [
"FSFAP"
] | 1 | 2020-07-02T11:51:17.000Z | 2020-07-02T11:51:17.000Z | /*
Copyright (c) 2019, NVIDIA CORPORATION. All rights reserved.
NVIDIA CORPORATION and its licensors retain all intellectual property
and proprietary rights in and to this software, related documentation
and any modifications thereto. Any use, reproduction, disclosure or
distribution of this software and related docum... | 36.927536 | 99 | 0.770801 | ddr95070 |
623ab620ed280b234dd754e12f1adab97004b048 | 1,023 | cpp | C++ | Samples/Windows/View/CheckBox.cpp | Topsens/3DVision | a694cf36df3883a5e2d55173e02d865972b8dee2 | [
"Apache-2.0"
] | 2 | 2020-11-12T07:47:06.000Z | 2020-11-12T11:49:07.000Z | Samples/Windows/View/CheckBox.cpp | Topsens/3DVision | a694cf36df3883a5e2d55173e02d865972b8dee2 | [
"Apache-2.0"
] | null | null | null | Samples/Windows/View/CheckBox.cpp | Topsens/3DVision | a694cf36df3883a5e2d55173e02d865972b8dee2 | [
"Apache-2.0"
] | null | null | null | #include "CheckBox.h"
#include <CommCtrl.h>
using namespace std;
CheckBox CheckBox::Create(HWND parent, UINT id, const wstring& text, DWORD type, HINSTANCE instance)
{
DialogItem di;
if (parent)
{
auto hwnd = CreateWindowExW(0, WC_BUTTONW, text.c_str(), type | BS_CHECKBOX | WS_CHILD | WS_TABSTOP,... | 20.46 | 159 | 0.664712 | Topsens |
623ac25f59d19f7dfcda4878a63e0a8e056b5f6c | 5,747 | hpp | C++ | core/src/cogs/math/measurement_types.hpp | cogmine/cogs | ef1c369a36a4f811704e0ced0493c3a6f8eca821 | [
"MIT"
] | 5 | 2019-02-08T15:59:14.000Z | 2022-01-22T19:12:33.000Z | core/src/cogs/math/measurement_types.hpp | cogmine/cogs | ef1c369a36a4f811704e0ced0493c3a6f8eca821 | [
"MIT"
] | 1 | 2019-12-03T03:11:34.000Z | 2019-12-03T03:11:34.000Z | core/src/cogs/math/measurement_types.hpp | cogmine/cogs | ef1c369a36a4f811704e0ced0493c3a6f8eca821 | [
"MIT"
] | null | null | null | //
// Copyright (C) 2000-2020 - Colen M. Garoutte-Carson <colen at cogmine.com>, Cog Mine LLC
//
// Status: WorkInProgress
#ifndef COGS_HEADER_MATH_MEASUREMENT_TYPES
#define COGS_HEADER_MATH_MEASUREMENT_TYPES
#include <type_traits>
#include "cogs/env.hpp"
#include "cogs/operators.hpp"
#include "cogs/math/fixed_in... | 26.122727 | 147 | 0.761963 | cogmine |
9a8cd0be49323a2f7cea2ca0d5ff6e4680d281d0 | 1,003 | cpp | C++ | src/examples/012Chapter/12-3-2-Query-Classes/text_query.cpp | artgonzalez/cpp-primer | 0317e11b5821860d38a236f24c6f7d76638386f3 | [
"MIT"
] | null | null | null | src/examples/012Chapter/12-3-2-Query-Classes/text_query.cpp | artgonzalez/cpp-primer | 0317e11b5821860d38a236f24c6f7d76638386f3 | [
"MIT"
] | null | null | null | src/examples/012Chapter/12-3-2-Query-Classes/text_query.cpp | artgonzalez/cpp-primer | 0317e11b5821860d38a236f24c6f7d76638386f3 | [
"MIT"
] | null | null | null | #include "text_query.h"
using std::getline; using std::ifstream; using std::istringstream;
using std::set; using std::string; using std::vector;
using std::shared_ptr;
TextQuery::TextQuery(ifstream& is) : file(new vector<string>)
{
string text;
while(getline(is, text))
{
file->push_back(text);
... | 22.288889 | 66 | 0.575274 | artgonzalez |
9a8d9a0d5e0c99f187fc301323b904ac885b4207 | 744 | cpp | C++ | 3rdparty/rdestl/Test/StringTest.cpp | navta/opendcd | 04995312259322815307d3992bbcd1993a7c481c | [
"Apache-2.0"
] | 72 | 2015-04-23T10:12:52.000Z | 2022-03-28T04:46:01.000Z | 3rdparty/rdestl/Test/StringTest.cpp | navta/opendcd | 04995312259322815307d3992bbcd1993a7c481c | [
"Apache-2.0"
] | 4 | 2015-02-03T05:26:44.000Z | 2020-04-03T09:13:45.000Z | 3rdparty/rdestl/Test/StringTest.cpp | opendcd/opendcd | 04995312259322815307d3992bbcd1993a7c481c | [
"Apache-2.0"
] | 35 | 2015-05-20T04:36:10.000Z | 2022-03-02T01:39:59.000Z | #include <UnitTest++/src/UnitTest++.h>
#include "rdestl/rde_string.h"
#include "rdestl/cow_string_storage.h"
#include <cstdio>
namespace
{
typedef rde::basic_string<char, rde::allocator, rde::simple_string_storage<char, rde::allocator> > simple_string;
typedef rde::basic_string<char, rde::allocator, rde::cow_string_... | 24.8 | 114 | 0.762097 | navta |
9a942ee3573e2b314f4ea00b17fc8d46f3479e93 | 2,088 | cpp | C++ | contrib/autoboost/libs/serialization/src/shared_ptr_helper.cpp | CaseyCarter/autowiring | 48e95a71308318c8ffb7ed1348e034fd9110f70c | [
"Apache-2.0"
] | 87 | 2015-01-18T00:43:06.000Z | 2022-02-11T17:40:50.000Z | contrib/autoboost/libs/serialization/src/shared_ptr_helper.cpp | CaseyCarter/autowiring | 48e95a71308318c8ffb7ed1348e034fd9110f70c | [
"Apache-2.0"
] | 274 | 2015-01-03T04:50:49.000Z | 2021-03-08T09:01:09.000Z | contrib/autoboost/libs/serialization/src/shared_ptr_helper.cpp | CaseyCarter/autowiring | 48e95a71308318c8ffb7ed1348e034fd9110f70c | [
"Apache-2.0"
] | 15 | 2015-09-30T20:58:43.000Z | 2020-12-19T21:24:56.000Z | /////////1/////////2/////////3/////////4/////////5/////////6/////////7/////////8
// shared_ptr_helper.hpp: serialization for autoboost shared pointern
// (C) Copyright 2004-2009 Robert Ramey, Martin Ecker and Takatoshi Kondo
// Use, modification and distribution is subject to the Boost Software
// License, Version 1.0... | 32.625 | 80 | 0.722701 | CaseyCarter |
9a951c29d410837ae8abc7ed02013f1ce3f154ef | 2,277 | cpp | C++ | server/cotsb/tile.cpp | astrellon/cotsb | a04336da54543d95b330e40a67b439f65b036f49 | [
"MIT"
] | null | null | null | server/cotsb/tile.cpp | astrellon/cotsb | a04336da54543d95b330e40a67b439f65b036f49 | [
"MIT"
] | null | null | null | server/cotsb/tile.cpp | astrellon/cotsb | a04336da54543d95b330e40a67b439f65b036f49 | [
"MIT"
] | null | null | null | #include "tile.h"
#include <cotsb/logging.h>
namespace cotsb
{
// Tile {{{
Tile::Tile(const std::string &name, uint16_t id) :
_name(name),
_id(id),
_passable(true),
_colour(sf::Color(255, 0, 255, 255))
{
}
void Tile::init(bool passable, const sf::Color &colour)
... | 23 | 85 | 0.536232 | astrellon |
9a982cfcfa160381742bcc3f36033e29beef8e9d | 1,578 | cpp | C++ | src/testprog/gltf2/litrot.cpp | degarashi/revenant | 9e671320a5c8790f6bdd1b14934f81c37819f7b3 | [
"MIT"
] | null | null | null | src/testprog/gltf2/litrot.cpp | degarashi/revenant | 9e671320a5c8790f6bdd1b14934f81c37819f7b3 | [
"MIT"
] | null | null | null | src/testprog/gltf2/litrot.cpp | degarashi/revenant | 9e671320a5c8790f6bdd1b14934f81c37819f7b3 | [
"MIT"
] | null | null | null | #include "litrot.hpp"
#include "../../input/input.hpp"
#include "../../imgui_sdl2.hpp"
namespace rev::test {
// -------------- LitRot --------------
LitRot::LitRot():
_rot(frea::Quat::Identity())
{}
void LitRot::update(
const HActC& dir_x,
const HActC& dir_y,
const frea::Vec3& right,
const frea::Vec3& up... | 26.3 | 63 | 0.60583 | degarashi |
9a9dd4a644c6079bccb86e2519b6b997c16578df | 7,361 | hpp | C++ | source/Actor.hpp | CyberSys/vaultmp | 341d62202eb47c5f8795c3b93391fd799c6a4ca8 | [
"MIT"
] | 67 | 2015-01-08T10:40:31.000Z | 2022-03-29T21:16:51.000Z | source/Actor.hpp | CyberSys/vaultmp | 341d62202eb47c5f8795c3b93391fd799c6a4ca8 | [
"MIT"
] | 20 | 2015-01-05T21:04:05.000Z | 2018-04-15T11:50:37.000Z | source/Actor.hpp | CyberSys/vaultmp | 341d62202eb47c5f8795c3b93391fd799c6a4ca8 | [
"MIT"
] | 60 | 2015-02-17T00:12:11.000Z | 2021-08-21T22:16:58.000Z | #ifndef ACTOR_H
#define ACTOR_H
#include "vaultmp.hpp"
#include "Container.hpp"
#ifdef VAULTMP_DEBUG
#include "Debug.hpp"
#endif
const unsigned int FLAG_ALIVE = FLAG_SELF << 1;
/**
* \brief Derives from Container class and represents an actor in-game
*
* Data specific to Actors are actor values, animations and v... | 28.531008 | 250 | 0.708192 | CyberSys |
9aa1f9fe7c0a4ef5d7449129fe4a6e92133f34c3 | 936 | hpp | C++ | include/basicpp/basicpp_config.hpp | avinal/basicpp | e7d042c11de73eef4314fe002574f2fddab2df12 | [
"CC0-1.0"
] | null | null | null | include/basicpp/basicpp_config.hpp | avinal/basicpp | e7d042c11de73eef4314fe002574f2fddab2df12 | [
"CC0-1.0"
] | null | null | null | include/basicpp/basicpp_config.hpp | avinal/basicpp | e7d042c11de73eef4314fe002574f2fddab2df12 | [
"CC0-1.0"
] | null | null | null | //
// Created by Avinal on 23-11-2020.
//
#ifndef BASICPP_BASICPP_CONFIG_HPP
#define BASICPP_BASICPP_CONFIG_HPP
#define BASICPP_VERSION_MAJOR 0
#define BASICPP_VERSION_MINOR 1
#define BASICPP_VERSION_PATCH 1
// Composing the version string from major, minor and patch
#define BASICPP_CONCATENATE(A, B) BASICPP_CONCATE... | 28.363636 | 88 | 0.779915 | avinal |
9aaa8f08c9f508d1ca169831c989341355e817f0 | 32,739 | cpp | C++ | redist/deps/tangelo/tangelo.cpp | VIGGEEN/bundle | 9a7a392ea31780660d5b5c34fbe143693c8f0d7b | [
"Zlib"
] | 443 | 2018-01-30T13:36:46.000Z | 2022-03-30T18:26:26.000Z | redist/deps/tangelo/tangelo.cpp | VIGGEEN/bundle | 9a7a392ea31780660d5b5c34fbe143693c8f0d7b | [
"Zlib"
] | 3 | 2019-04-18T08:15:34.000Z | 2022-02-13T00:33:07.000Z | redist/deps/tangelo/tangelo.cpp | VIGGEEN/bundle | 9a7a392ea31780660d5b5c34fbe143693c8f0d7b | [
"Zlib"
] | 58 | 2018-01-20T12:57:10.000Z | 2022-03-22T22:10:02.000Z | /* TANGELO file compressor 2.41 based on PAQ8 by Matt Mahoney
Release by Jan Ondrus and r-lyeh, Nov. 03, 2015
2.41 - thread safe, std::istream based, MSC friendly (r-lyeh)
2.40 - latest source code available (Jan Ondrus)
Copyright (C) 2013 Matt Mahoney, Serge Osnach, Alexander Ratushnyak,
Bill P... | 66.139394 | 2,335 | 0.603989 | VIGGEEN |
9aaa99d169b73cf6fa5fa041b898a58591681359 | 261 | hpp | C++ | source/library/progrock/c/fenv.hpp | progrock-libraries/C-header-wrappers | 9b0e870f9833a66becac3379633e8818c0be19b3 | [
"MIT"
] | 2 | 2021-09-21T18:34:27.000Z | 2022-02-13T02:50:57.000Z | source/library/kickstart/c/fenv.hpp | progrock-libraries/kickstart | d62c22efc92006dd76d455cf8f9d4f2a045e9126 | [
"MIT"
] | null | null | null | source/library/kickstart/c/fenv.hpp | progrock-libraries/kickstart | d62c22efc92006dd76d455cf8f9d4f2a045e9126 | [
"MIT"
] | null | null | null | #pragma once // Source encoding: UTF-8 (π is a lowercase Greek "pi").
// #include <c/fenv.hpp>
//
// Floating-point environment access functions.
// Copyright © 2017 Alf P. Steinbach, distributed under Boost license 1.0.
#include <cfenv>
#include <fenv.h>
| 29 | 74 | 0.697318 | progrock-libraries |
9aaca5e0c452f2b8bbf69057aa4a80d9602e5b41 | 8,285 | hpp | C++ | include/kfusion/internal.hpp | chenguowen/dynfu | 5991e43144e9b3a95005c820f87900a6b21c7826 | [
"BSD-3-Clause"
] | 34 | 2018-10-10T05:56:53.000Z | 2022-03-02T09:17:05.000Z | include/kfusion/internal.hpp | chenguowen/dynfu | 5991e43144e9b3a95005c820f87900a6b21c7826 | [
"BSD-3-Clause"
] | 1 | 2019-04-29T12:29:22.000Z | 2019-05-14T15:33:12.000Z | include/kfusion/internal.hpp | chenguowen/dynfu | 5991e43144e9b3a95005c820f87900a6b21c7826 | [
"BSD-3-Clause"
] | 11 | 2018-08-13T02:27:29.000Z | 2021-12-02T06:43:18.000Z | #pragma once
#include <kfusion/cuda/device_array.hpp>
#include <kfusion/safe_call.hpp>
#include <pcl/point_types.h>
//#define USE_DEPTH
namespace kfusion {
namespace device {
typedef float4 Normal;
typedef float4 Point;
typedef unsigned short ushort;
typedef unsigned char uchar;
typedef PtrStepSz<ushort> Dists;
t... | 34.957806 | 118 | 0.719493 | chenguowen |
9ab078947313d036adb7cb3bc42672e65b870bd0 | 855 | hxx | C++ | Client/gui/dialogs/AddNewServerConnectionDialog.hxx | voldemarz/OppositeRenderer | 691817c5ea67b0f5b81c1a2680e07e0e8cd05f13 | [
"MIT"
] | 5 | 2018-05-10T06:16:57.000Z | 2021-11-19T11:40:43.000Z | Client/gui/dialogs/AddNewServerConnectionDialog.hxx | voldemarz/OppositeRenderer | 691817c5ea67b0f5b81c1a2680e07e0e8cd05f13 | [
"MIT"
] | null | null | null | Client/gui/dialogs/AddNewServerConnectionDialog.hxx | voldemarz/OppositeRenderer | 691817c5ea67b0f5b81c1a2680e07e0e8cd05f13 | [
"MIT"
] | 2 | 2018-02-18T12:36:12.000Z | 2021-11-19T01:52:53.000Z | #pragma once
#include <QDialog>
#include <QTcpSocket>
#include <QHostAddress>
#include "client/RenderServerConnection.hxx"
namespace Ui
{
class AddNewServerConnectionDialog;
}
class QTimer;
class AddNewServerConnectionDialog : public QDialog
{
Q_OBJECT
public:
explicit AddNewServerConnectionDialog(... | 21.375 | 85 | 0.753216 | voldemarz |
9ab4ae9caac164997c45cbd29e04a9b1ba384e8e | 16,069 | cc | C++ | src/ASP.cc | alviano/zuccherino | d264ef53cca78382dc08dbe3e236a2670658ba0f | [
"Apache-2.0"
] | 1 | 2018-01-29T10:27:13.000Z | 2018-01-29T10:27:13.000Z | src/ASP.cc | alviano/zuccherino | d264ef53cca78382dc08dbe3e236a2670658ba0f | [
"Apache-2.0"
] | null | null | null | src/ASP.cc | alviano/zuccherino | d264ef53cca78382dc08dbe3e236a2670658ba0f | [
"Apache-2.0"
] | 1 | 2017-09-20T09:14:42.000Z | 2017-09-20T09:14:42.000Z | /*
* Copyright (C) 2017 Mario Alviano (mario@alviano.net)
*
* 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 ... | 31.384766 | 214 | 0.564752 | alviano |
9abfbe0cea25e84e352703c27167b2db2ced38eb | 1,724 | cpp | C++ | main.cpp | aprithul/SDL-Software-Renderer | 3eea2b6e363d691ec1c206b35b24321f9882203f | [
"MIT"
] | null | null | null | main.cpp | aprithul/SDL-Software-Renderer | 3eea2b6e363d691ec1c206b35b24321f9882203f | [
"MIT"
] | null | null | null | main.cpp | aprithul/SDL-Software-Renderer | 3eea2b6e363d691ec1c206b35b24321f9882203f | [
"MIT"
] | null | null | null | #include <iostream>
#include <SDL2/SDL.h>
#include "Display.h"
#include "Event_Handler.h"
bool is_running = true; // to determine when to quit game
SDL_Event sdl_event; //event handler
Event_Handler event_handler;
int main( int argc, char* args[] )
{
// initial setups------------------------------... | 22.986667 | 166 | 0.62239 | aprithul |
9ac6b20d2c5e201bca0e7dd44e94aea53acb0aaa | 368 | hpp | C++ | library/ATF/_NLA_CONNECTIVITY_TYPE.hpp | lemkova/Yorozuya | f445d800078d9aba5de28f122cedfa03f26a38e4 | [
"MIT"
] | 29 | 2017-07-01T23:08:31.000Z | 2022-02-19T10:22:45.000Z | library/ATF/_NLA_CONNECTIVITY_TYPE.hpp | kotopes/Yorozuya | 605c97d3a627a8f6545cc09f2a1b0a8afdedd33a | [
"MIT"
] | 90 | 2017-10-18T21:24:51.000Z | 2019-06-06T02:30:33.000Z | library/ATF/_NLA_CONNECTIVITY_TYPE.hpp | kotopes/Yorozuya | 605c97d3a627a8f6545cc09f2a1b0a8afdedd33a | [
"MIT"
] | 44 | 2017-12-19T08:02:59.000Z | 2022-02-24T23:15:01.000Z | // This file auto generated by plugin for ida pro. Generated code only for x64. Please, dont change manually
#pragma once
#include <common/common.h>
START_ATF_NAMESPACE
enum _NLA_CONNECTIVITY_TYPE
{
NLA_NETWORK_AD_HOC = 0x0,
NLA_NETWORK_MANAGED = 0x1,
NLA_NETWORK_UNMANAGED = 0x2,
NLA_... | 23 | 108 | 0.722826 | lemkova |
9ac6c996a6f005b38a54b38d6fe8b2975aae4277 | 1,393 | cpp | C++ | ch16/ex16.4/main.cpp | regconfi/Cpp-Primer | 6e59f24f4c7f3be4f679b7d29084d9d859a463d9 | [
"CC0-1.0"
] | 46 | 2015-07-07T11:13:12.000Z | 2022-03-27T10:20:54.000Z | ch16/ex16.4/main.cpp | lafener/Cpp-Primer | 8cf1568f2d27622bce2d41493158f58527e5072f | [
"CC0-1.0"
] | 11 | 2015-03-10T12:52:06.000Z | 2015-04-20T12:24:00.000Z | ch16/ex16.4/main.cpp | lafener/Cpp-Primer | 8cf1568f2d27622bce2d41493158f58527e5072f | [
"CC0-1.0"
] | 65 | 2015-07-01T14:15:48.000Z | 2021-04-10T08:44:19.000Z | /***************************************************************************
* @file main.cpp
* @author Alan.W
* @date 02 Feb 2014
* @remark This code is for the exercises from C++ Primer 5th Edition
* @note
***************************************************************************/
//!... | 26.788462 | 82 | 0.543431 | regconfi |
9ac7d5bcd8db249fac32b0191f994723434910d3 | 3,666 | hpp | C++ | src/referenced/libsysinfo/lib/linux_memoryload.hpp | SoaringLoong/sloongnet | 1a4ef3068ede28363dcd8ac27a6bac11ea9a1077 | [
"MIT"
] | 2 | 2019-06-28T05:47:44.000Z | 2020-12-29T11:32:53.000Z | src/referenced/libsysinfo/lib/linux_memoryload.hpp | SoaringLoong/sloongnet | 1a4ef3068ede28363dcd8ac27a6bac11ea9a1077 | [
"MIT"
] | null | null | null | src/referenced/libsysinfo/lib/linux_memoryload.hpp | SoaringLoong/sloongnet | 1a4ef3068ede28363dcd8ac27a6bac11ea9a1077 | [
"MIT"
] | 1 | 2021-01-13T03:05:22.000Z | 2021-01-13T03:05:22.000Z | /***
* @Author: Chuanbin Wang - wcb@sloong.com
* @Date: 2021-09-23 17:27:14
* @LastEditTime: 2021-09-24 11:24:01
* @LastEditors: Chuanbin Wang
* @FilePath: /engine/src/referenced/libsysinfo/lib/linux_memoryload.hpp
* @Copyright 2015-2020 Sloong.com. All Rights Reserved
* @Description:
*/
/**
* @author: Daniel ... | 29.804878 | 118 | 0.624932 | SoaringLoong |
9acc3e30d824bd999f1bced4670ff9c426bcbf68 | 21,957 | cpp | C++ | src/Engine/ChuShogi.cpp | jweathers777/mShogi | 941cd4dc37e6e6210d4f993c96a553753e228b19 | [
"BSD-3-Clause"
] | 4 | 2015-12-24T04:52:48.000Z | 2021-11-09T11:31:36.000Z | src/Engine/ChuShogi.cpp | jweathers777/mShogi | 941cd4dc37e6e6210d4f993c96a553753e228b19 | [
"BSD-3-Clause"
] | null | null | null | src/Engine/ChuShogi.cpp | jweathers777/mShogi | 941cd4dc37e6e6210d4f993c96a553753e228b19 | [
"BSD-3-Clause"
] | null | null | null | ////////////////////////////////////////////////////////////////////////////
// Name: ChuShogi.cpp
// Description: Interface for a class that represents the
// game of Chu Shogi
// Created: 02/04/2005 11:10:32 Eastern Standard Time
// Last Updated: $Date$
// Revision: $Revision$
// Auth... | 33.522137 | 83 | 0.559138 | jweathers777 |
9aceaf1cd1869beb5c0a03abe7e4ac593152a726 | 1,155 | cpp | C++ | c++/leetcode/0849-Maximize_Distance_to_Closest_Person-E.cpp | levendlee/leetcode | 35e274cb4046f6ec7112cd56babd8fb7d437b844 | [
"Apache-2.0"
] | 1 | 2020-03-02T10:56:22.000Z | 2020-03-02T10:56:22.000Z | c++/leetcode/0849-Maximize_Distance_to_Closest_Person-E.cpp | levendlee/leetcode | 35e274cb4046f6ec7112cd56babd8fb7d437b844 | [
"Apache-2.0"
] | null | null | null | c++/leetcode/0849-Maximize_Distance_to_Closest_Person-E.cpp | levendlee/leetcode | 35e274cb4046f6ec7112cd56babd8fb7d437b844 | [
"Apache-2.0"
] | null | null | null | // 849 Maximize Distance to Closest Person
// https://leetcode.com/problems/maximize-distance-to-closest-person
// version: 1; create time: 2020-01-30 21:48:14;
class Solution {
public:
int maxDistToClosest(vector<int>& seats) {
const int n = seats.size();
/*
vector<int> ldist(n, 0);
... | 27.5 | 74 | 0.406926 | levendlee |
9ad369805f423f314d75e414303e38bca834d1da | 2,341 | cpp | C++ | UT_MOS_6502_Emulator/ProcessingUnitTest_Logic.cpp | yu830425/MOS-6502-Simulator | b08495e1225b65df51ba2ad561f27b048a506c31 | [
"MIT"
] | null | null | null | UT_MOS_6502_Emulator/ProcessingUnitTest_Logic.cpp | yu830425/MOS-6502-Simulator | b08495e1225b65df51ba2ad561f27b048a506c31 | [
"MIT"
] | null | null | null | UT_MOS_6502_Emulator/ProcessingUnitTest_Logic.cpp | yu830425/MOS-6502-Simulator | b08495e1225b65df51ba2ad561f27b048a506c31 | [
"MIT"
] | null | null | null | #include "gtest/gtest.h"
#include "../MOS_6502_Emulator/ProcessingUnit.h"
using ::testing::Test;
TEST(ProcessingUnit, AND_0xFFAnd0x01_ResultShouldBe0x01)
{
ProcessingUnit testItem;
testItem.LDA(0xFF);
testItem.AND(0x01);
auto accumulator = testItem.getAccumulator();
ASSERT_EQ(0x01, accumulator);
}
TEST(Proces... | 19.188525 | 58 | 0.770184 | yu830425 |
9ae4e7d8e894e61a567eee34bb5e78ef4c2c6056 | 2,376 | cpp | C++ | runner-app/runner-app.cpp | sgrottel/open-here | 4834e7064d92c49592585e83c930015a7b407615 | [
"Apache-2.0"
] | null | null | null | runner-app/runner-app.cpp | sgrottel/open-here | 4834e7064d92c49592585e83c930015a7b407615 | [
"Apache-2.0"
] | null | null | null | runner-app/runner-app.cpp | sgrottel/open-here | 4834e7064d92c49592585e83c930015a7b407615 | [
"Apache-2.0"
] | null | null | null | //
// Open Here
// runner-app.cpp -- Runner app main entry point
// This app is to be triggered by the hot key.
//
// Copyright 2022 SGrottel (https://www.sgrottel.de)
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with t... | 33 | 173 | 0.671717 | sgrottel |
9ae747b25fc041232e217a0dc36484ab0b0472ec | 210 | hpp | C++ | sprout/weed/parser/string.hpp | osyo-manga/Sprout | 8885b115f739ef255530f772067475d3bc0dcef7 | [
"BSL-1.0"
] | 1 | 2020-02-04T05:16:01.000Z | 2020-02-04T05:16:01.000Z | sprout/weed/parser/string.hpp | jwakely/Sprout | a64938fad0a64608f22d39485bc55a1e0dc07246 | [
"BSL-1.0"
] | null | null | null | sprout/weed/parser/string.hpp | jwakely/Sprout | a64938fad0a64608f22d39485bc55a1e0dc07246 | [
"BSL-1.0"
] | null | null | null | #ifndef SPROUT_WEED_PARSER_STRING_HPP
#define SPROUT_WEED_PARSER_STRING_HPP
#include <sprout/config.hpp>
#include <sprout/weed/parser/string/string.hpp>
#endif // #ifndef SPROUT_WEED_PARSER_STRING_HPP
| 26.25 | 48 | 0.809524 | osyo-manga |
9af242420da16a4c011c59bcf7d66fe1ca433b84 | 739 | hh | C++ | modules/Robbie/RobbieModule.hh | ElonKou/genetic | 507f739b44399b8dbae1bde4523fbb718704e223 | [
"MIT"
] | 11 | 2020-04-12T19:53:40.000Z | 2022-01-28T16:56:22.000Z | modules/Robbie/RobbieModule.hh | ElonKou/genetic | 507f739b44399b8dbae1bde4523fbb718704e223 | [
"MIT"
] | null | null | null | modules/Robbie/RobbieModule.hh | ElonKou/genetic | 507f739b44399b8dbae1bde4523fbb718704e223 | [
"MIT"
] | 2 | 2020-03-14T08:48:19.000Z | 2021-04-22T06:56:01.000Z | #pragma once
#ifndef ROBBIE_MODULE_HH_
#define ROBBIE_MODULE_HH_
#include "InspectWindow.hh"
#include "ModuleBase.hh"
#include "RobbieControlWindow.hh"
#include "RobbieController.hh"
#include "SimpleMap.hh"
#include "SimpleMapWindow.hh"
typedef struct RobbieModuleData {
vector<SimpleMap*> maps;
SimpleMap* ... | 21.114286 | 40 | 0.710419 | ElonKou |
9af475eb6dc4aaa627b9e46a5a633ab3185af9ea | 3,516 | cpp | C++ | src/compiler.cpp | martinogden/mer | 33b4b39b1604ce0708b0d3d1c809b95683a2f4cb | [
"Unlicense"
] | 2 | 2019-11-17T22:54:16.000Z | 2020-08-07T20:53:25.000Z | src/compiler.cpp | martinogden/mer | 33b4b39b1604ce0708b0d3d1c809b95683a2f4cb | [
"Unlicense"
] | null | null | null | src/compiler.cpp | martinogden/mer | 33b4b39b1604ce0708b0d3d1c809b95683a2f4cb | [
"Unlicense"
] | null | null | null | #include <memory>
#include <sstream>
#include <set>
#include "compiler.hpp"
#include "generator.hpp"
#include "parser/lexer.hpp"
#include "parser/parser.hpp"
#include "sca/return-checker.hpp"
#include "sca/init-checker.hpp"
#include "sca/use-checker.hpp"
#include "type/checker.hpp"
#include "inst/codegen.hpp"
#include ... | 21.180723 | 68 | 0.641069 | martinogden |
9af6a6510bcd11cdafcf9c23398eb64f5a7c1543 | 2,433 | cpp | C++ | models/maxcut-random/code/src/learning/graph.cpp | qcappart/learning-DD | 93094c450f8f0929168b303b4d0680889deeb9b0 | [
"MIT"
] | 23 | 2018-09-18T20:04:32.000Z | 2022-03-24T19:31:36.000Z | models/maxcut-random/code/src/learning/graph.cpp | qcappart/learning-DD | 93094c450f8f0929168b303b4d0680889deeb9b0 | [
"MIT"
] | null | null | null | models/maxcut-random/code/src/learning/graph.cpp | qcappart/learning-DD | 93094c450f8f0929168b303b4d0680889deeb9b0 | [
"MIT"
] | 3 | 2019-07-26T01:22:29.000Z | 2022-03-10T13:48:18.000Z | /* MIT License
[Initial work] Copyright (c) 2018 Dai, Hanjun and Khalil, Elias B and Zhang, Yuyu and Dilkina, Bistra and Song, Le
[Adaptation] Copyright (c) 2018 Quentin Cappart, Emmanuel Goutierre, David Bergman and Louis-Martin Rousseau
Permission is hereby granted, free of charge, to any person obtaining a copy
of... | 31.192308 | 126 | 0.7164 | qcappart |
9afa3a324470aa730a985a63c907f109ff7f453c | 18,490 | cpp | C++ | src/v8binder/V8Context.cpp | daphnis-kau/XScript | 8dabb5f1138c2f5ee7a7aa5605c053d18ef72bba | [
"MIT"
] | 43 | 2020-03-09T02:09:09.000Z | 2022-02-25T01:29:57.000Z | src/v8binder/V8Context.cpp | daphnis-kau/XScript | 8dabb5f1138c2f5ee7a7aa5605c053d18ef72bba | [
"MIT"
] | 1 | 2021-07-22T05:01:10.000Z | 2021-10-15T09:57:52.000Z | src/v8binder/V8Context.cpp | daphnis-kau/XScript | 8dabb5f1138c2f5ee7a7aa5605c053d18ef72bba | [
"MIT"
] | 5 | 2020-03-09T01:55:14.000Z | 2020-08-28T23:12:03.000Z | #include "V8Context.h"
#include "CScriptJS.h"
#include "CDebugJS.h"
#include "CTypeJS.h"
#include "core/CClassInfo.h"
#include "core/CCallInfo.h"
#define MAX_STRING_BUFFER_SIZE 65536
namespace XS
{
SV8Context::SV8Context( CScriptJS* pScript )
: m_pScript(pScript)
, m_platform(nullptr)
, m_pIsolate(nullptr)
... | 35.694981 | 135 | 0.662304 | daphnis-kau |
9afb396ed5145b36f6d5b74f009da25f29cd4ebc | 1,177 | hpp | C++ | Checklist.hpp | Aerobreaker/ChecklistLoader | 54ce95d541331c644a9711e4e24eee65295a0ee8 | [
"Unlicense"
] | null | null | null | Checklist.hpp | Aerobreaker/ChecklistLoader | 54ce95d541331c644a9711e4e24eee65295a0ee8 | [
"Unlicense"
] | null | null | null | Checklist.hpp | Aerobreaker/ChecklistLoader | 54ce95d541331c644a9711e4e24eee65295a0ee8 | [
"Unlicense"
] | null | null | null | #pragma once
#include <string>
#include <map>
#include <unordered_map>
#include <vector>
#include <memory>
class Checklist;
class Node {
public:
std::string key {};
std::string value {};
Checklist *sublist {};
Node();
Node(const std::string &key);
Node(const std::string &key, const std::string &val);
bool o... | 21.796296 | 69 | 0.669499 | Aerobreaker |
b108c289612443f1b2eca3906c04a18503b4cff6 | 2,502 | hpp | C++ | Source/AliveLibAE/Renderer/IRenderer.hpp | mouzedrift/alive_reversing | be7dfbaed3be99b452459e974bc4e79f9503c178 | [
"MIT"
] | 208 | 2018-06-06T13:14:03.000Z | 2022-03-30T02:21:27.000Z | Source/AliveLibAE/Renderer/IRenderer.hpp | mouzedrift/alive_reversing | be7dfbaed3be99b452459e974bc4e79f9503c178 | [
"MIT"
] | 537 | 2018-06-06T16:50:45.000Z | 2022-03-31T16:41:15.000Z | Source/AliveLibAE/Renderer/IRenderer.hpp | mouzedrift/alive_reversing | be7dfbaed3be99b452459e974bc4e79f9503c178 | [
"MIT"
] | 42 | 2018-06-06T00:40:08.000Z | 2022-03-23T08:38:55.000Z | #pragma once
#include "../AliveLibCommon/Sys_common.hpp"
#include "Primitives.hpp"
#include "../AliveLibCommon/Psx_common.hpp"
#include <SDL.h>
struct PrimHeader;
class IRenderer
{
public:
enum class Renderers
{
Software,
DirectX9,
OpenGL,
};
enum class BitDepth
{
... | 27.195652 | 101 | 0.657074 | mouzedrift |
6248383ac011f9aa17f6c6ff58f76bae5ead3d0f | 2,663 | cpp | C++ | phenomenon/SceneLoader.cpp | Limvot/Phenomenon-Engine | 3476a45124cf33b80748c488038ca43a23b160dc | [
"Zlib",
"MIT"
] | 1 | 2016-05-02T22:00:18.000Z | 2016-05-02T22:00:18.000Z | phenomenon/SceneLoader.cpp | Limvot/Phenomenon-Engine | 3476a45124cf33b80748c488038ca43a23b160dc | [
"Zlib",
"MIT"
] | null | null | null | phenomenon/SceneLoader.cpp | Limvot/Phenomenon-Engine | 3476a45124cf33b80748c488038ca43a23b160dc | [
"Zlib",
"MIT"
] | null | null | null | #include "SceneLoader.h"
namespace phen {
SceneLoader::SceneLoader()
{
}
SceneLoader::~SceneLoader()
{
}
int SceneLoader::loadScene(Scene* scene, std::string file_path)
{
FILE * file = fopen(file_path.c_str(), "r");
if (file == NULL)
{
std::cout << "Could not open the scene file " << file_path... | 32.084337 | 251 | 0.622606 | Limvot |
625381d20511f4023aee0620a57a371db92bd936 | 2,147 | hpp | C++ | source/Container.hpp | CyberSys/vaultmp | 341d62202eb47c5f8795c3b93391fd799c6a4ca8 | [
"MIT"
] | 67 | 2015-01-08T10:40:31.000Z | 2022-03-29T21:16:51.000Z | source/Container.hpp | CyberSys/vaultmp | 341d62202eb47c5f8795c3b93391fd799c6a4ca8 | [
"MIT"
] | 20 | 2015-01-05T21:04:05.000Z | 2018-04-15T11:50:37.000Z | source/Container.hpp | CyberSys/vaultmp | 341d62202eb47c5f8795c3b93391fd799c6a4ca8 | [
"MIT"
] | 60 | 2015-02-17T00:12:11.000Z | 2021-08-21T22:16:58.000Z | #ifndef CONTAINER_H
#define CONTAINER_H
#include "vaultmp.hpp"
#include "Object.hpp"
#include "ItemList.hpp"
#ifdef VAULTMP_DEBUG
#include "Debug.hpp"
#endif
class Container : public Object, public ItemList
{
friend class GameFactory;
private:
#ifdef VAULTMP_DEBUG
static DebugInput<Container> debug;
#endif
... | 25.559524 | 142 | 0.7415 | CyberSys |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.