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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
5df5dd9b588e787cca0c343de28b3cd84fa752b7 | 443 | cpp | C++ | lectures/week-02/calc.cpp | programming-workshop-2/course-material | 898ca41343f49c0c96e380bd569631e2be339a8c | [
"MIT"
] | 1 | 2017-01-13T17:44:15.000Z | 2017-01-13T17:44:15.000Z | lectures/week-02/calc.cpp | programming-workshop-2/course-material | 898ca41343f49c0c96e380bd569631e2be339a8c | [
"MIT"
] | null | null | null | lectures/week-02/calc.cpp | programming-workshop-2/course-material | 898ca41343f49c0c96e380bd569631e2be339a8c | [
"MIT"
] | 2 | 2017-02-01T00:36:54.000Z | 2017-03-14T16:01:00.000Z | #include <iostream>
#include <fstream>
using namespace std;
int main(int argc, char** argv)
{
char op;
double v1, v2, ans;
op = argv[1][0];
v1 = atof(argv[2]);
v2 = atof(argv[3]);
switch (op)
{
case '+': ans = v1 + v2; break;
case '-': ans = v1 - v2; break;
case '/': ans = v1 / v2; break;
... | 17.038462 | 63 | 0.48307 | programming-workshop-2 |
5df70854e8ea8137f0b0b570138c80120d0cbee3 | 1,013 | cpp | C++ | cpp_kernels/port_width_widening/src/krnl_base.cpp | kapil2099/Vitis_Accel_Examples | 05f898ab0fb808421316fad9fb7dd862d92eb623 | [
"Apache-2.0"
] | null | null | null | cpp_kernels/port_width_widening/src/krnl_base.cpp | kapil2099/Vitis_Accel_Examples | 05f898ab0fb808421316fad9fb7dd862d92eb623 | [
"Apache-2.0"
] | null | null | null | cpp_kernels/port_width_widening/src/krnl_base.cpp | kapil2099/Vitis_Accel_Examples | 05f898ab0fb808421316fad9fb7dd862d92eb623 | [
"Apache-2.0"
] | null | null | null | /**
* Copyright (C) 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 agreed to in writi... | 22.021739 | 75 | 0.641658 | kapil2099 |
5dfa47f3c8891104f93dbb311354153378ac67ab | 1,844 | cpp | C++ | LayZ/src/math/vec2.cpp | AliKhudiyev/LayZ-Renderer-Engine | 8e8943295f6f80a05c1ba2b7c7c1b3e51779a272 | [
"MIT"
] | 11 | 2020-06-25T20:52:56.000Z | 2021-04-27T05:37:22.000Z | LayZ/src/math/vec2.cpp | AliKhudiyev/LayZ-Renderer-Engine | 8e8943295f6f80a05c1ba2b7c7c1b3e51779a272 | [
"MIT"
] | 3 | 2020-06-29T14:21:52.000Z | 2020-07-06T17:41:45.000Z | LayZ/src/math/vec2.cpp | AliKhudiyev/LayZ-Renderer-Engine | 8e8943295f6f80a05c1ba2b7c7c1b3e51779a272 | [
"MIT"
] | 2 | 2020-07-09T22:07:14.000Z | 2021-02-05T22:04:57.000Z | #include "math/vec2.h"
#include <cassert>
namespace lyz { namespace math {
vec2::vec2(float x, float y) {
data[0] = x;
data[1] = y;
}
vec2::vec2(const float* fdata) {
data[0] = fdata[0];
data[1] = fdata[1];
}
vec2::vec2(const vec2& vec) {
data[0] = vec.data[0];
data[1] = vec.data[1];
}
vec2::~ve... | 17.730769 | 83 | 0.574837 | AliKhudiyev |
b9012a8282cdeded891a00442d30a674680ee591 | 1,041 | cpp | C++ | lib/LuaObject.cpp | indie-zen-plugins/ZLua | 6fff6e889a27152ed85b0c0c0786e6b8706f2247 | [
"MIT"
] | null | null | null | lib/LuaObject.cpp | indie-zen-plugins/ZLua | 6fff6e889a27152ed85b0c0c0786e6b8706f2247 | [
"MIT"
] | null | null | null | lib/LuaObject.cpp | indie-zen-plugins/ZLua | 6fff6e889a27152ed85b0c0c0786e6b8706f2247 | [
"MIT"
] | null | null | null | //-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~
// Lua plugin for Zen Scripting
//
// Copyright (C) 2001 - 2016 Raymond A. Richards
//-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~
#include "LuaObject.hpp"
//-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-... | 26.692308 | 81 | 0.225744 | indie-zen-plugins |
b90893dc93ae8e7389089097e352775b5ef4e2bc | 19,599 | cpp | C++ | src/pronet/pro_net/pro_net.cpp | libpronet/libpronet | 78f52fbe002767915553bdf58fb10453e63bf502 | [
"Apache-2.0"
] | 35 | 2018-10-29T06:31:09.000Z | 2022-03-21T08:13:39.000Z | src/pronet/pro_net/pro_net.cpp | libpronet/libpronet | 78f52fbe002767915553bdf58fb10453e63bf502 | [
"Apache-2.0"
] | null | null | null | src/pronet/pro_net/pro_net.cpp | libpronet/libpronet | 78f52fbe002767915553bdf58fb10453e63bf502 | [
"Apache-2.0"
] | 11 | 2018-11-03T04:45:29.000Z | 2021-11-23T06:09:20.000Z | /*
* Copyright (C) 2018-2019 Eric Tung <libpronet@gmail.com>
*
* 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 app... | 23.641737 | 90 | 0.537987 | libpronet |
b90b75b2c2ee62d27dd11fdb8f49398f1df80d9b | 65,944 | cpp | C++ | Samples/Win7Samples/netds/tapi/tapi3/cpp/tapirecv/Processing.cpp | windows-development/Windows-classic-samples | 96f883e4c900948e39660ec14a200a5164a3c7b7 | [
"MIT"
] | 8 | 2017-04-30T17:38:27.000Z | 2021-11-29T00:59:03.000Z | Samples/Win7Samples/netds/tapi/tapi3/cpp/tapirecv/Processing.cpp | TomeSq/Windows-classic-samples | 96f883e4c900948e39660ec14a200a5164a3c7b7 | [
"MIT"
] | null | null | null | Samples/Win7Samples/netds/tapi/tapi3/cpp/tapirecv/Processing.cpp | TomeSq/Windows-classic-samples | 96f883e4c900948e39660ec14a200a5164a3c7b7 | [
"MIT"
] | 2 | 2020-08-11T13:21:49.000Z | 2021-09-01T10:41:51.000Z | /*
Copyright (c) 1999 - 2000 Microsoft Corporation
Module Name:
Processing.cpp
Abstract:
Implementation of the ITTAPIEventNotification interface. An application
must implement and register this interface in order to receive calls and
events related to calls. See TAPI documentatio... | 22.762858 | 89 | 0.50919 | windows-development |
b90d71ff73fe564644ad817975cdc885fc3f1562 | 12,961 | cpp | C++ | test/libfilsc_test/c_codegen_tests.cpp | GuillermoHernan/fil-s | 33d2a8e1c0eb3a9fddd9e6e2dc02780a13fd2302 | [
"MIT"
] | null | null | null | test/libfilsc_test/c_codegen_tests.cpp | GuillermoHernan/fil-s | 33d2a8e1c0eb3a9fddd9e6e2dc02780a13fd2302 | [
"MIT"
] | null | null | null | test/libfilsc_test/c_codegen_tests.cpp | GuillermoHernan/fil-s | 33d2a8e1c0eb3a9fddd9e6e2dc02780a13fd2302 | [
"MIT"
] | null | null | null | /// <summary>
/// Tests for 'C' code generator
/// </summary>
#include "libfilsc_test_pch.h"
#include "c_codeGenerator_internal.h"
#include "codeGeneratorState.h"
#include "semanticAnalysis.h"
#include "utils.h"
//#include <time.h>
using namespace std;
/// <summary>
/// Fixture for code generation tests.
/// </summ... | 26.559426 | 126 | 0.505671 | GuillermoHernan |
b90f7ecd38578fe8fd5de93ffdebca63eb03daa9 | 1,542 | cpp | C++ | leetcode/Algorithms/available-captures-for-rook.cpp | Doarakko/competitive-programming | 5ae78c501664af08a3f16c81dbd54c68310adec8 | [
"MIT"
] | 1 | 2017-07-11T16:47:29.000Z | 2017-07-11T16:47:29.000Z | leetcode/Algorithms/available-captures-for-rook.cpp | Doarakko/Competitive-Programming | 10642a4bd7266c828dd2fc6e311284e86bdf2968 | [
"MIT"
] | 1 | 2021-02-07T09:10:26.000Z | 2021-02-07T09:10:26.000Z | leetcode/Algorithms/available-captures-for-rook.cpp | Doarakko/Competitive-Programming | 10642a4bd7266c828dd2fc6e311284e86bdf2968 | [
"MIT"
] | null | null | null | class Solution {
public:
int numRookCaptures(vector<vector<char>>& board) {
// search rook
int x, y;
for(int i = 0; i < board.size(); i++){
for(int j = 0; j < board[0].size(); j++){
if(board[i][j] == 'R'){
x = j;
y = i;
... | 24.870968 | 54 | 0.270428 | Doarakko |
b9114f53a4edef347073818413904c0a12028c20 | 2,005 | cpp | C++ | src/ripple/protocol/impl/Issue.cpp | yinchengtsinghua/RippleCPPChinese | a32a38a374547bdc5eb0fddcd657f45048aaad6a | [
"BSL-1.0"
] | 5 | 2019-01-23T04:36:03.000Z | 2020-02-04T07:10:39.000Z | src/ripple/protocol/impl/Issue.cpp | yinchengtsinghua/RippleCPPChinese | a32a38a374547bdc5eb0fddcd657f45048aaad6a | [
"BSL-1.0"
] | null | null | null | src/ripple/protocol/impl/Issue.cpp | yinchengtsinghua/RippleCPPChinese | a32a38a374547bdc5eb0fddcd657f45048aaad6a | [
"BSL-1.0"
] | 2 | 2019-05-14T07:26:59.000Z | 2020-06-15T07:25:01.000Z |
//此源码被清华学神尹成大魔王专业翻译分析并修改
//尹成QQ77025077
//尹成微信18510341407
//尹成所在QQ群721929980
//尹成邮箱 yinc13@mails.tsinghua.edu.cn
//尹成毕业于清华大学,微软区块链领域全球最有价值专家
//https://mvp.microsoft.com/zh-cn/PublicProfile/4033620
//————————————————————————————————————————————————————————————————————————————————————————————————————————————————
/*
... | 17.743363 | 114 | 0.583541 | yinchengtsinghua |
b918d115b957255720f7138fa9c2839a7c379849 | 10,057 | cpp | C++ | sdbq_parser/sdbq_parser/sdbq_parser.cpp | w1n5t0n99/SdbqParser | d92f21bebbaaf02028b40b73f052198eb2c11858 | [
"MIT"
] | null | null | null | sdbq_parser/sdbq_parser/sdbq_parser.cpp | w1n5t0n99/SdbqParser | d92f21bebbaaf02028b40b73f052198eb2c11858 | [
"MIT"
] | null | null | null | sdbq_parser/sdbq_parser/sdbq_parser.cpp | w1n5t0n99/SdbqParser | d92f21bebbaaf02028b40b73f052198eb2c11858 | [
"MIT"
] | null | null | null | #include "sdbq_parser.h"
#include <algorithm>
#include <iostream>
#include <unordered_set>
#include <map>
#include "csv.h"
namespace sdbq
{
struct QuestionDescriptorHasher
{
size_t operator() (const Question& val) const { return std::hash<std::string>()(val.descriptor+val.difficulty); }
};
struct QuestionDes... | 26.60582 | 151 | 0.68062 | w1n5t0n99 |
2c6e45870f582585cab579c82f1d9d0d79fcf9f5 | 3,387 | cpp | C++ | Nesis/Nesis/src/NesisBrowser.cpp | jpoirier/x-gauges | 8261b19a9678ad27db44eb8c354f5e66bd061693 | [
"BSD-3-Clause"
] | 3 | 2015-11-08T07:17:46.000Z | 2019-04-05T17:08:05.000Z | Nesis/Nesis/src/NesisBrowser.cpp | jpoirier/x-gauges | 8261b19a9678ad27db44eb8c354f5e66bd061693 | [
"BSD-3-Clause"
] | null | null | null | Nesis/Nesis/src/NesisBrowser.cpp | jpoirier/x-gauges | 8261b19a9678ad27db44eb8c354f5e66bd061693 | [
"BSD-3-Clause"
] | null | null | null | /***************************************************************************
* *
* Copyright (C) 2007 by Kanardia d.o.o. [see www.kanardia.eu] *
* Writen by: *
* Ales... | 29.710526 | 92 | 0.446118 | jpoirier |
2c6e46b7e07f7e232d9c0143b0f11f767452969a | 447 | hpp | C++ | include/Sprite/Wall.hpp | VisualGMQ/Chaos_Dungeon | 95f9b23934ee16573bf9289b9171958f750ffc93 | [
"MIT"
] | 2 | 2020-05-05T13:31:55.000Z | 2022-01-16T15:38:00.000Z | include/Sprite/Wall.hpp | VisualGMQ/Chaos_Dungeon | 95f9b23934ee16573bf9289b9171958f750ffc93 | [
"MIT"
] | null | null | null | include/Sprite/Wall.hpp | VisualGMQ/Chaos_Dungeon | 95f9b23934ee16573bf9289b9171958f750ffc93 | [
"MIT"
] | 1 | 2021-11-27T02:32:24.000Z | 2021-11-27T02:32:24.000Z | #ifndef WALL_HPP
#define WALL_HPP
#include "Sprite.hpp"
#include "Collision.hpp"
#include "Colliable.hpp"
#include "ColliSystem.hpp"
#include "Texture.hpp"
class Wall : public ColliableSprite{
public:
static Wall* Create();
void Init() override;
int Width() const;
int Height() const;
~Wall();
priva... | 17.88 | 36 | 0.666667 | VisualGMQ |
2c6e74a9e357f3bf89c4ce9ba98b700eeb860dce | 992 | hpp | C++ | src/micromamba/info.hpp | pbauwens-kbc/mamba | 243bf801e99fc2215f88fd87c66574aeb85a52e9 | [
"BSD-3-Clause"
] | null | null | null | src/micromamba/info.hpp | pbauwens-kbc/mamba | 243bf801e99fc2215f88fd87c66574aeb85a52e9 | [
"BSD-3-Clause"
] | null | null | null | src/micromamba/info.hpp | pbauwens-kbc/mamba | 243bf801e99fc2215f88fd87c66574aeb85a52e9 | [
"BSD-3-Clause"
] | null | null | null | // Copyright (c) 2019, QuantStack and Mamba Contributors
//
// Distributed under the terms of the BSD 3-Clause License.
//
// The full license is in the file LICENSE, distributed with this software.
#ifndef UMAMBA_INFO_HPP
#define UMAMBA_INFO_HPP
#include "mamba/context.hpp"
#ifdef VENDORED_CLI11
#include "mamba/CLI... | 20.666667 | 86 | 0.607863 | pbauwens-kbc |
2c70e4268ed74f579b99de7c886ecc0d7b0d8723 | 2,003 | cpp | C++ | Algorithms/0088.MergeSortedArray/solution.cpp | stdstring/leetcode | 84e6bade7d6fc1a737eb6796cb4e2565440db5e3 | [
"MIT"
] | null | null | null | Algorithms/0088.MergeSortedArray/solution.cpp | stdstring/leetcode | 84e6bade7d6fc1a737eb6796cb4e2565440db5e3 | [
"MIT"
] | null | null | null | Algorithms/0088.MergeSortedArray/solution.cpp | stdstring/leetcode | 84e6bade7d6fc1a737eb6796cb4e2565440db5e3 | [
"MIT"
] | null | null | null | #include <queue>
#include <vector>
#include "gtest/gtest.h"
namespace
{
class Solution
{
public:
void merge(std::vector<int>& nums1, int m, std::vector<int> const &nums2, int n)
{
const size_t size1 = m;
const size_t size2 = n;
std::queue<int> nums1Queue;
size_t index2 = 0;
... | 26.012987 | 126 | 0.529206 | stdstring |
2c7234a4936f1166cc531c5961dc59e848b59b0a | 2,657 | cc | C++ | cartographer_ros/cartographer_ros/node_options.cc | athtest800/cartographer | 566899786d21f11ceeb8b4d51d6a53eca73c4058 | [
"Apache-2.0"
] | null | null | null | cartographer_ros/cartographer_ros/node_options.cc | athtest800/cartographer | 566899786d21f11ceeb8b4d51d6a53eca73c4058 | [
"Apache-2.0"
] | null | null | null | cartographer_ros/cartographer_ros/node_options.cc | athtest800/cartographer | 566899786d21f11ceeb8b4d51d6a53eca73c4058 | [
"Apache-2.0"
] | 1 | 2019-07-11T01:12:15.000Z | 2019-07-11T01:12:15.000Z | /*
* Copyright 2016 The Cartographer Authors
*
* 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... | 40.257576 | 79 | 0.75988 | athtest800 |
2c73d6ed1bffe930c21c219d4bb3ac91bc8dbbd9 | 905 | cpp | C++ | 006/main.cpp | Ponz-Tofu-N/ModernCppChallengePractice | c2003fc180fc28448a3ff5b3e0f0c2788154af8c | [
"MIT"
] | null | null | null | 006/main.cpp | Ponz-Tofu-N/ModernCppChallengePractice | c2003fc180fc28448a3ff5b3e0f0c2788154af8c | [
"MIT"
] | null | null | null | 006/main.cpp | Ponz-Tofu-N/ModernCppChallengePractice | c2003fc180fc28448a3ff5b3e0f0c2788154af8c | [
"MIT"
] | null | null | null | // 6. Abundant Numbers
// Usage: Enter max number
#include <iostream>
#include <cmath>
#include <string>
int main(int argc, char const *argv[])
{
std::cout << "input max number: ";
unsigned int max; std::cin >> max;
/*pick a num*/
/*sum divisors*/
/*print if abundant num and its abu... | 22.073171 | 76 | 0.390055 | Ponz-Tofu-N |
2c74542b046b20d23af5c42548f57bc40a88334f | 5,842 | cc | C++ | Engine/foundation/io/memoryreader.cc | BikkyS/DreamEngine | 47da4e22c65188c72f44591f6a96505d8ba5f5f3 | [
"MIT"
] | 26 | 2015-01-15T12:57:40.000Z | 2022-02-16T10:07:12.000Z | Engine/foundation/io/memoryreader.cc | BikkyS/DreamEngine | 47da4e22c65188c72f44591f6a96505d8ba5f5f3 | [
"MIT"
] | null | null | null | Engine/foundation/io/memoryreader.cc | BikkyS/DreamEngine | 47da4e22c65188c72f44591f6a96505d8ba5f5f3 | [
"MIT"
] | 17 | 2015-02-18T07:51:31.000Z | 2020-06-01T01:10:12.000Z | /****************************************************************************
Copyright (c) 2006, Radon Labs GmbH
Copyright (c) 2011-2013,WebJet Business Division,CYOU
http://www.genesis-3d.com.cn
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentati... | 28.778325 | 102 | 0.534235 | BikkyS |
2c77a65f0d36f156d472f93c2e9c568c65111e61 | 6,757 | tcc | C++ | radiomicsfeatureextractionpipeline/conquest/src/dgate/dicomlib/array.tcc | Maastro-CDS-Imaging-Group/SQLite4Radiomics | e3a7afc181eec0fe04c18da00edc3772064e6758 | [
"Apache-2.0"
] | null | null | null | radiomicsfeatureextractionpipeline/conquest/src/dgate/dicomlib/array.tcc | Maastro-CDS-Imaging-Group/SQLite4Radiomics | e3a7afc181eec0fe04c18da00edc3772064e6758 | [
"Apache-2.0"
] | 6 | 2021-06-09T19:39:27.000Z | 2021-09-30T16:41:40.000Z | radiomicsfeatureextractionpipeline/conquest/src/dgate/dicomlib/array.tcc | Maastro-CDS-Imaging-Group/SQLite4Radiomics | e3a7afc181eec0fe04c18da00edc3772064e6758 | [
"Apache-2.0"
] | null | null | null | /*
20050125 ljz Added 'ReplaceAt()' to the 'Array' class
20100619 bcb Fix gcc4 warnings and improve speed.
20130429 lsp Corrected (unused) printf format string
20130812 mvh Removed non-thread safe caching of last value
Does not seem to affect speed, throughput remains
at 320 MB/s receive wi... | 20.537994 | 77 | 0.597159 | Maastro-CDS-Imaging-Group |
2c7b28cd370a850ec77649e471db05f1398aaa2e | 138 | hpp | C++ | source/framework/algorithm/include/lue/framework/algorithm/definition/greater_than.hpp | computationalgeography/lue | 71993169bae67a9863d7bd7646d207405dc6f767 | [
"MIT"
] | 2 | 2021-02-26T22:45:56.000Z | 2021-05-02T10:28:48.000Z | source/framework/algorithm/include/lue/framework/algorithm/definition/greater_than.hpp | pcraster/lue | e64c18f78a8b6d8a602b7578a2572e9740969202 | [
"MIT"
] | 262 | 2016-08-11T10:12:02.000Z | 2020-10-13T18:09:16.000Z | source/framework/algorithm/include/lue/framework/algorithm/definition/greater_than.hpp | computationalgeography/lue | 71993169bae67a9863d7bd7646d207405dc6f767 | [
"MIT"
] | 1 | 2020-03-11T09:49:41.000Z | 2020-03-11T09:49:41.000Z | #pragma once
#include "lue/framework/algorithm/greater_than.hpp"
#include "lue/framework/algorithm/definition/binary_local_operation.hpp"
| 34.5 | 72 | 0.84058 | computationalgeography |
2c7eccb92b8799dde7d139354e501a01f7145075 | 13,600 | cc | C++ | src/common/time.cc | sergeyfilip/objectstore | e2d0c86134c46c77fb143f7198d13fab7f5b1ea5 | [
"MIT"
] | null | null | null | src/common/time.cc | sergeyfilip/objectstore | e2d0c86134c46c77fb143f7198d13fab7f5b1ea5 | [
"MIT"
] | null | null | null | src/common/time.cc | sergeyfilip/objectstore | e2d0c86134c46c77fb143f7198d13fab7f5b1ea5 | [
"MIT"
] | null | null | null | //
//! \file common/time.cc
//
//! Implementation of our time routines
//
// $Id: time.cc,v 1.17 2013/05/23 08:54:57 joe Exp $
//
#include "time.hh"
#include "error.hh"
#include "string.hh"
#include <vector>
#include <iomanip>
#include <istream>
#include <ostream>
#include <math.h>
#include <time.h>
#include <string... | 23.776224 | 82 | 0.606691 | sergeyfilip |
2c8168440ba85f8160a3e3f7b75cfc16885e6fa2 | 1,957 | cpp | C++ | foe4.cpp | Loretac/ohlavache | 2cbe309433cca0f7a61d8c08f6f4f383dd934f10 | [
"MIT"
] | null | null | null | foe4.cpp | Loretac/ohlavache | 2cbe309433cca0f7a61d8c08f6f4f383dd934f10 | [
"MIT"
] | null | null | null | foe4.cpp | Loretac/ohlavache | 2cbe309433cca0f7a61d8c08f6f4f383dd934f10 | [
"MIT"
] | null | null | null | #include "foe4.h"
#include "game.h"
#include "bulletdirected.h"
#include "bulletminesmall.h"
#include <QTimer>
extern Game *game;
/*********************************************************************
**
*********************************************************************/
Foe4::Foe4()
{
setStartingHealth... | 20.385417 | 96 | 0.552376 | Loretac |
2c844a4d5b4b4f7aaf9c25dc955654683e53893b | 1,519 | hh | C++ | src/image/image.hh | kofuk/pixel-terrain | f39e2a0120aab5a11311f57cfd1ab46efa65fddd | [
"MIT"
] | 2 | 2020-10-16T08:46:45.000Z | 2020-11-04T02:19:19.000Z | src/image/image.hh | kofuk/minecraft-image-generator | ef2f7deb2daac7f7c2cfb468ef39e0cdc8b33db7 | [
"MIT"
] | null | null | null | src/image/image.hh | kofuk/minecraft-image-generator | ef2f7deb2daac7f7c2cfb468ef39e0cdc8b33db7 | [
"MIT"
] | null | null | null | // SPDX-License-Identifier: MIT
#ifndef IMAGE_HH
#define IMAGE_HH
#include <filesystem>
#include "image/containers.hh"
#include "image/worker.hh"
#include "logger/logger.hh"
#include "nbt/chunk.hh"
#include "nbt/region.hh"
#include "utils/path_hack.hh"
#include "utils/threaded_worker.hh"
namespace pixel_terrain::im... | 29.211538 | 77 | 0.593153 | kofuk |
2c8cac1b9c33c8497d87479093a357bebbfa92f4 | 2,459 | cc | C++ | src/simplesat/parsers/dimacs_parser.cc | evmaus/ClusterSAT | d26ff539fe9789611e9ecd8ef5c14a19e150105b | [
"Apache-2.0"
] | null | null | null | src/simplesat/parsers/dimacs_parser.cc | evmaus/ClusterSAT | d26ff539fe9789611e9ecd8ef5c14a19e150105b | [
"Apache-2.0"
] | null | null | null | src/simplesat/parsers/dimacs_parser.cc | evmaus/ClusterSAT | d26ff539fe9789611e9ecd8ef5c14a19e150105b | [
"Apache-2.0"
] | null | null | null | // Copyright 2019 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in ... | 30.7375 | 88 | 0.651891 | evmaus |
2c979c8325291c6061e2735370baa586ab05be42 | 234 | cpp | C++ | display/source/DisplayConstants.cpp | sidav/shadow-of-the-wyrm | 747afdeebed885b1a4f7ab42f04f9f756afd3e52 | [
"MIT"
] | null | null | null | display/source/DisplayConstants.cpp | sidav/shadow-of-the-wyrm | 747afdeebed885b1a4f7ab42f04f9f756afd3e52 | [
"MIT"
] | null | null | null | display/source/DisplayConstants.cpp | sidav/shadow-of-the-wyrm | 747afdeebed885b1a4f7ab42f04f9f756afd3e52 | [
"MIT"
] | null | null | null | #include "DisplayConstants.hpp"
using namespace std;
const string DisplayIdentifier::DISPLAY_IDENTIFIER_CURSES = "curses";
const string DisplayIdentifier::DISPLAY_IDENTIFIER_SDL = "sdl";
DisplayIdentifier::DisplayIdentifier()
{
}
| 19.5 | 69 | 0.807692 | sidav |
2ca15fdd61c0a58f78d82d0e92b823c8ba841b67 | 285 | cpp | C++ | src/kitti/common.cpp | dzyswy/kitti_player | 77f9d6266a05639da4ba9b943338a9f2304b9f5e | [
"MIT"
] | null | null | null | src/kitti/common.cpp | dzyswy/kitti_player | 77f9d6266a05639da4ba9b943338a9f2304b9f5e | [
"MIT"
] | null | null | null | src/kitti/common.cpp | dzyswy/kitti_player | 77f9d6266a05639da4ba9b943338a9f2304b9f5e | [
"MIT"
] | null | null | null | #include "kitti/common.h"
namespace kitti {
void GlobalInit(int* pargc, char*** pargv)
{
// Google logging.
::google::InitGoogleLogging(*(pargv)[0]);
// Provide a backtrace on segfault.
::google::InstallFailureSignalHandler();
}
}//namespace kitti
| 8.142857 | 43 | 0.631579 | dzyswy |
2ca2106ecd6bed73ee0215738d606f2a216e6f64 | 3,062 | cpp | C++ | src/Tools/ProjectBuilder/XmlToBinDecoder.cpp | irov/Mengine | b76e9f8037325dd826d4f2f17893ac2b236edad8 | [
"MIT"
] | 39 | 2016-04-21T03:25:26.000Z | 2022-01-19T14:16:38.000Z | src/Tools/ProjectBuilder/XmlToBinDecoder.cpp | irov/Mengine | b76e9f8037325dd826d4f2f17893ac2b236edad8 | [
"MIT"
] | 23 | 2016-06-28T13:03:17.000Z | 2022-02-02T10:11:54.000Z | src/Tools/ProjectBuilder/XmlToBinDecoder.cpp | irov/Mengine | b76e9f8037325dd826d4f2f17893ac2b236edad8 | [
"MIT"
] | 14 | 2016-06-22T20:45:37.000Z | 2021-07-05T12:25:19.000Z | #include "XmlToBinDecoder.h"
#include "Interface/ServiceInterface.h"
#include "Interface/StringizeServiceInterface.h"
#include "Interface/ArchivatorInterface.h"
#include "Interface/LoggerInterface.h"
#include "Interface/CodecInterface.h"
#include "Interface/ConverterInterface.h"
#include "Interface/FileServi... | 30.929293 | 142 | 0.599282 | irov |
2ca6a079c413fb203abe0b963e59036bf389350c | 17,757 | hpp | C++ | Datastructures/Tree.hpp | jlandess/LandessDevCore | 3319c36c3232415d6bdba7da8b4896c0638badf2 | [
"BSD-3-Clause"
] | 2 | 2021-06-09T00:38:46.000Z | 2021-09-04T21:55:33.000Z | Datastructures/Tree.hpp | jlandess/LandessDevCore | 3319c36c3232415d6bdba7da8b4896c0638badf2 | [
"BSD-3-Clause"
] | null | null | null | Datastructures/Tree.hpp | jlandess/LandessDevCore | 3319c36c3232415d6bdba7da8b4896c0638badf2 | [
"BSD-3-Clause"
] | 1 | 2021-08-30T00:46:12.000Z | 2021-08-30T00:46:12.000Z | //
// Created by phoenixflower on 9/26/21.
//
#ifndef LANDESSDEVCORE_TREE_HPP
#define LANDESSDEVCORE_TREE_HPP
//
// Tree.h
// Foundation
//
// Created by James Landess on 1/6/14.
// Copyright (c) 2014 LandessDev. All rights reserved.
//
#ifndef Foundation_Tree_h
#define Foundation_Tree_h
/*----------------------... | 31.822581 | 122 | 0.525933 | jlandess |
2ca7b5bd693fd0599d411fb3c96a2b6adfc57565 | 2,000 | hpp | C++ | engine/include/io/logger.hpp | ValtoForks/Terminus-Engine | 0c7381af84736ec7b029977843590453cde64b1d | [
"MIT"
] | 44 | 2017-01-25T05:57:21.000Z | 2021-09-21T13:36:49.000Z | engine/include/io/logger.hpp | ValtoForks/Terminus-Engine | 0c7381af84736ec7b029977843590453cde64b1d | [
"MIT"
] | 1 | 2017-04-05T01:50:18.000Z | 2017-04-05T01:50:18.000Z | engine/include/io/logger.hpp | ValtoForks/Terminus-Engine | 0c7381af84736ec7b029977843590453cde64b1d | [
"MIT"
] | 3 | 2017-09-28T08:11:00.000Z | 2019-03-27T03:38:47.000Z | #pragma once
#include <core/terminus_macros.hpp>
#include <string>
// Macros for quick access. File and line are added through the respective macros.
#define TE_LOG_INFO(x) te::logger::log(x, std::string(__FILE__), __LINE__, te::logger::LEVEL_INFO)
#define TE_LOG_WARNING(x) te::logger::log(x, std::string(__FILE__), _... | 29.411765 | 104 | 0.751 | ValtoForks |
2caa60a850f9f796a4bb0bf8d40e9537f2e24d5f | 424 | cpp | C++ | ieee_sep/RateComponentListLink.cpp | Tylores/ieee_sep | 1928bed8076f4bfe702d34e436c6a85f197b0832 | [
"BSD-2-Clause"
] | null | null | null | ieee_sep/RateComponentListLink.cpp | Tylores/ieee_sep | 1928bed8076f4bfe702d34e436c6a85f197b0832 | [
"BSD-2-Clause"
] | null | null | null | ieee_sep/RateComponentListLink.cpp | Tylores/ieee_sep | 1928bed8076f4bfe702d34e436c6a85f197b0832 | [
"BSD-2-Clause"
] | null | null | null | ///////////////////////////////////////////////////////////
// RateComponentListLink.cpp
// Implementation of the Class RateComponentListLink
// Created on: 13-Apr-2020 2:51:38 PM
// Original author: svanausdall
///////////////////////////////////////////////////////////
#include "RateComponentListLink.h"
R... | 22.315789 | 59 | 0.54717 | Tylores |
2caae092e04eda8fe3c4320d39f468ae13e0f99f | 3,705 | cpp | C++ | arduino/pcc2arduino.cpp | ncchandler42/pcc2arduino | ff67796d93760b1c2dd3dc9e9a02319d71ef6d7e | [
"MIT"
] | null | null | null | arduino/pcc2arduino.cpp | ncchandler42/pcc2arduino | ff67796d93760b1c2dd3dc9e9a02319d71ef6d7e | [
"MIT"
] | null | null | null | arduino/pcc2arduino.cpp | ncchandler42/pcc2arduino | ff67796d93760b1c2dd3dc9e9a02319d71ef6d7e | [
"MIT"
] | null | null | null | #include "pcc2arduino.h"
///////////////////////
// reads in bytes from serial
// returns true when the controller state is ready
///////////////////////
bool PCController::update()
{
if (!ser || !ser->available())
return false;
//find the start of a valid parsel
while (ser->peek() != '<')
{
byte b = ser->re... | 16.764706 | 67 | 0.516059 | ncchandler42 |
2caffe97249eed511b7f5a9ee7f0aa9e296ee893 | 6,582 | cpp | C++ | Ouroboros/Source/oGUI/menu.cpp | igHunterKiller/ouroboros | 5e2cde7e6365341da297da10d8927b091ecf5559 | [
"MIT"
] | null | null | null | Ouroboros/Source/oGUI/menu.cpp | igHunterKiller/ouroboros | 5e2cde7e6365341da297da10d8927b091ecf5559 | [
"MIT"
] | null | null | null | Ouroboros/Source/oGUI/menu.cpp | igHunterKiller/ouroboros | 5e2cde7e6365341da297da10d8927b091ecf5559 | [
"MIT"
] | null | null | null | // Copyright (c) 2016 Antony Arciuolo. See License.txt regarding use.
#include <oGUI/menu.h>
#include <oCore/assert.h>
#include <oSystem/windows/win_error.h>
namespace ouro { namespace gui { namespace menu {
#if 0
// not in use (yet?)
static int find_position(menu_handle parent, int item)
{
const int n = num_items... | 27.655462 | 333 | 0.721513 | igHunterKiller |
2cba4a9acdf0794ca520d5900be289868bff8ea8 | 5,192 | hpp | C++ | vlite/strided_ref_vector.hpp | verri/vlite | c4677dad17070b8fb0cbabd06018b3bcbb162860 | [
"Zlib"
] | null | null | null | vlite/strided_ref_vector.hpp | verri/vlite | c4677dad17070b8fb0cbabd06018b3bcbb162860 | [
"Zlib"
] | null | null | null | vlite/strided_ref_vector.hpp | verri/vlite | c4677dad17070b8fb0cbabd06018b3bcbb162860 | [
"Zlib"
] | null | null | null | #ifndef VLITE_STRIDED_REF_VECTOR_HPP_INCLUDED
#define VLITE_STRIDED_REF_VECTOR_HPP_INCLUDED
#include <vlite/common_vector_base.hpp>
#include <vlite/slice.hpp>
#include <vlite/strided_iterator.hpp>
namespace vlite
{
template <typename T>
class strided_ref_vector : public common_vector_base<strided_ref_vector<T>>
{
... | 27.764706 | 88 | 0.658128 | verri |
2cc40324de4e9508a348c23e4b8157b91237050a | 6,558 | cpp | C++ | eagleye_core/navigation/src/smoothing.cpp | shjzhang/eagleye | e4e105d3a5438cf5ee36f1cc525ff87313923fc5 | [
"BSD-3-Clause"
] | 1 | 2020-07-16T15:31:59.000Z | 2020-07-16T15:31:59.000Z | eagleye_core/navigation/src/smoothing.cpp | shjzhang/eagleye | e4e105d3a5438cf5ee36f1cc525ff87313923fc5 | [
"BSD-3-Clause"
] | null | null | null | eagleye_core/navigation/src/smoothing.cpp | shjzhang/eagleye | e4e105d3a5438cf5ee36f1cc525ff87313923fc5 | [
"BSD-3-Clause"
] | null | null | null | // Copyright (c) 2019, Map IV, 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 list of conditions and... | 44.310811 | 233 | 0.76319 | shjzhang |
2cc564d474ea0a6388fb3bc8a018f3293f77c791 | 291 | cpp | C++ | src/Client/MainClient.cpp | Marukyu/NecroEdit | 4b2380cc3417c6578476a213e05f4cbc846e5a77 | [
"MIT",
"Unlicense"
] | 13 | 2016-04-02T14:21:49.000Z | 2021-01-10T17:32:43.000Z | src/Client/MainClient.cpp | Marukyu/NecroEdit | 4b2380cc3417c6578476a213e05f4cbc846e5a77 | [
"MIT",
"Unlicense"
] | 24 | 2016-04-02T12:08:39.000Z | 2021-01-27T01:21:58.000Z | src/Client/MainClient.cpp | Marukyu/NecroEdit | 4b2380cc3417c6578476a213e05f4cbc846e5a77 | [
"MIT",
"Unlicense"
] | 6 | 2016-04-02T12:05:28.000Z | 2017-05-10T14:13:39.000Z | /**
* NecroEdit v1.0
*/
#include <Client/System/NEApplication.hpp>
#include <string>
#include <vector>
int main(int argc, char *argv[])
{
// put arguments into vector.
std::vector<std::string> args(argv, argv+argc);
// run client.
NEApplication client;
return client.run(args);
}
| 16.166667 | 48 | 0.680412 | Marukyu |
2ccd42cb5391a7f47e2769fe6befd68a23307375 | 2,348 | cpp | C++ | src/saveload/animated_tile_sl.cpp | trademarks/OpenTTD | fd7fca73cf61a2960e8df8fa221b179d23ae3ef0 | [
"Unlicense"
] | 8 | 2016-10-21T09:01:43.000Z | 2021-05-31T06:32:14.000Z | src/saveload/animated_tile_sl.cpp | blackberry/OpenTTD | fd7fca73cf61a2960e8df8fa221b179d23ae3ef0 | [
"Unlicense"
] | null | null | null | src/saveload/animated_tile_sl.cpp | blackberry/OpenTTD | fd7fca73cf61a2960e8df8fa221b179d23ae3ef0 | [
"Unlicense"
] | 4 | 2017-05-16T00:15:58.000Z | 2020-08-06T01:46:31.000Z | /* $Id$ */
/*
* This file is part of OpenTTD.
* OpenTTD is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, version 2.
* OpenTTD is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without... | 36.6875 | 185 | 0.758518 | trademarks |
2cd2c0adfce8b919bd91624d1a48b2a47ef0087e | 1,031 | cpp | C++ | alakajam13_states/State.InPlay.Next.cpp | playdeezgames/tggd_alakajam13 | e4433a14d4e74cc4f711c7bb6610c87e2fd9b377 | [
"MIT"
] | null | null | null | alakajam13_states/State.InPlay.Next.cpp | playdeezgames/tggd_alakajam13 | e4433a14d4e74cc4f711c7bb6610c87e2fd9b377 | [
"MIT"
] | null | null | null | alakajam13_states/State.InPlay.Next.cpp | playdeezgames/tggd_alakajam13 | e4433a14d4e74cc4f711c7bb6610c87e2fd9b377 | [
"MIT"
] | null | null | null | #include "UIState.h"
#include "States.h"
#include <Game.Audio.Mux.h>
#include <Application.OnEnter.h>
#include <Application.Update.h>
#include <Application.UIState.h>
#include <Game.Actors.h>
#include <Game.ActorTypes.h>
namespace state::in_play
{
static const ::UIState CURRENT_STATE = ::UIState::IN_PLAY_NEXT;
stati... | 23.976744 | 64 | 0.695441 | playdeezgames |
2cdb1d4f07e8ac447b1d5ba529a392cca7b05031 | 3,218 | cc | C++ | libcef_dll/cpptoc/media_event_callback_cpptoc.cc | frogbywyplay/appframeworks_cef | 12e3a6d32370b4f72707b493ab951a5d8cb3989d | [
"BSD-3-Clause"
] | null | null | null | libcef_dll/cpptoc/media_event_callback_cpptoc.cc | frogbywyplay/appframeworks_cef | 12e3a6d32370b4f72707b493ab951a5d8cb3989d | [
"BSD-3-Clause"
] | null | null | null | libcef_dll/cpptoc/media_event_callback_cpptoc.cc | frogbywyplay/appframeworks_cef | 12e3a6d32370b4f72707b493ab951a5d8cb3989d | [
"BSD-3-Clause"
] | null | null | null | // Copyright (c) 2016 The Chromium Embedded Framework Authors. All rights
// reserved. Use of this source code is governed by a BSD-style license that
// can be found in the LICENSE file.
//
// ---------------------------------------------------------------------------
//
// This file was generated by the CEF translato... | 28.732143 | 82 | 0.745183 | frogbywyplay |
2ce05467170d8885f088e2d9166c4194db95a873 | 19,961 | cpp | C++ | Core/burn/drv/pre90s/d_marineb.cpp | atship/FinalBurn-X | 3ee18ccd6efc1bbb3a807d2c206106a5a4000e8d | [
"Apache-2.0"
] | 17 | 2018-05-24T05:20:45.000Z | 2021-12-24T07:27:22.000Z | Core/burn/drv/pre90s/d_marineb.cpp | atship/FinalBurn-X | 3ee18ccd6efc1bbb3a807d2c206106a5a4000e8d | [
"Apache-2.0"
] | 6 | 2016-10-20T02:36:07.000Z | 2017-03-08T15:23:06.000Z | Core/burn/drv/pre90s/d_marineb.cpp | atship/FinalBurn-X | 3ee18ccd6efc1bbb3a807d2c206106a5a4000e8d | [
"Apache-2.0"
] | 5 | 2019-01-21T00:45:00.000Z | 2021-07-20T08:34:22.000Z | // Based on original MAME driver writen by Zsolt Vasvari
#include "tiles_generic.h"
#include "z80_intf.h"
#include "driver.h"
extern "C" {
#include "ay8910.h"
}
enum { SPRINGER = 0, MARINEB };
static UINT8 *AllMem;
static UINT8 *MemEnd;
static UINT8 *RamStart;
static UINT8 *RamEnd;
static UINT32 *TempPalette;
sta... | 23.791418 | 194 | 0.612645 | atship |
f8ea3449a2b90471a1688f3323dae99fd5cf10cc | 33,461 | cc | C++ | src/system/proto/heartbeat.pb.cc | yipeiw/pserver | 2a856ba0cda744e4b8adcd925238dd7d4609bea7 | [
"Apache-2.0"
] | null | null | null | src/system/proto/heartbeat.pb.cc | yipeiw/pserver | 2a856ba0cda744e4b8adcd925238dd7d4609bea7 | [
"Apache-2.0"
] | null | null | null | src/system/proto/heartbeat.pb.cc | yipeiw/pserver | 2a856ba0cda744e4b8adcd925238dd7d4609bea7 | [
"Apache-2.0"
] | null | null | null | // Generated by the protocol buffer compiler. DO NOT EDIT!
// source: system/proto/heartbeat.proto
#define INTERNAL_SUPPRESS_PROTOBUF_FIELD_DEPRECATION
#include "system/proto/heartbeat.pb.h"
#include <algorithm>
#include <google/protobuf/stubs/common.h>
#include <google/protobuf/stubs/once.h>
#include <google/proto... | 36.529476 | 122 | 0.677356 | yipeiw |
f8ee113d78812276f71e6cd6a599f54d34354199 | 729 | hpp | C++ | lib/DeviceConfigurator/DeviceConfigurator.hpp | OscarArgueyo/baliza-ic-dyasc | 33c9f8e577a2315982be5b223bbc3e3c38e23809 | [
"MIT"
] | null | null | null | lib/DeviceConfigurator/DeviceConfigurator.hpp | OscarArgueyo/baliza-ic-dyasc | 33c9f8e577a2315982be5b223bbc3e3c38e23809 | [
"MIT"
] | null | null | null | lib/DeviceConfigurator/DeviceConfigurator.hpp | OscarArgueyo/baliza-ic-dyasc | 33c9f8e577a2315982be5b223bbc3e3c38e23809 | [
"MIT"
] | null | null | null | #include <FS.h> //this needs to be first, or it all crashes and burns...
#include "SPIFFS.h"
#include <Arduino.h>
#include <ArduinoJson.h> //https://github.com/bblanchon/ArduinoJson
#include <WiFi.h>
//needed for library
#include <DNSServer.h>
#include <WebServer.h>
#include <WiFiM... | 23.516129 | 90 | 0.684499 | OscarArgueyo |
f8ee35e5a1fc89be617224c7ecc7149ca2a835c7 | 113 | hpp | C++ | examples/SimpleProject/src/simple_private.hpp | Neumann-A/CMakeJSON | 395c4fa4588f80727ddaddd7b61276c6823be6b8 | [
"BSL-1.0"
] | 10 | 2021-03-02T10:01:57.000Z | 2021-11-01T11:27:36.000Z | examples/SimpleProject/src/simple_private.hpp | Neumann-A/CMakeJSON | 395c4fa4588f80727ddaddd7b61276c6823be6b8 | [
"BSL-1.0"
] | 1 | 2021-03-03T10:02:28.000Z | 2021-03-03T14:17:16.000Z | examples/SimpleProject/src/simple_private.hpp | Neumann-A/CMakeJSON | 395c4fa4588f80727ddaddd7b61276c6823be6b8 | [
"BSL-1.0"
] | null | null | null |
#include <string_view>
static constexpr std::string_view hello_private = "Hello from the private libs parts!"; | 22.6 | 87 | 0.778761 | Neumann-A |
f8ef62c4ed42e265af5d6992862863bde4556aaa | 2,274 | hpp | C++ | libs/render/include/hamon/render/gl/wgl/context.hpp | shibainuudon/HamonEngine | 508a69b0cf589ccb2e5d403ce9e78ff2b85cc058 | [
"MIT"
] | null | null | null | libs/render/include/hamon/render/gl/wgl/context.hpp | shibainuudon/HamonEngine | 508a69b0cf589ccb2e5d403ce9e78ff2b85cc058 | [
"MIT"
] | 21 | 2022-03-02T13:11:59.000Z | 2022-03-30T15:12:41.000Z | libs/render/include/hamon/render/gl/wgl/context.hpp | shibainuudon/HamonEngine | 508a69b0cf589ccb2e5d403ce9e78ff2b85cc058 | [
"MIT"
] | null | null | null | /**
* @file context.hpp
*
* @brief Context
*/
#ifndef HAMON_RENDER_GL_WGL_CONTEXT_HPP
#define HAMON_RENDER_GL_WGL_CONTEXT_HPP
#include <hamon/window.hpp>
#include <hamon/render/gl/wgl/wglext.hpp>
namespace hamon
{
inline namespace render
{
namespace gl
{
class Context
{
public:
expli... | 19.947368 | 71 | 0.656992 | shibainuudon |
f8f4a9ff2bdd920ef8f40c94203b80965f96b06c | 1,913 | cpp | C++ | phxrpc/network/test_echo_client.cpp | bombshen/phxrpc | 465db10bd4c4bf6d95f6e8b431cc7abcda731ffb | [
"BSD-3-Clause"
] | 1,117 | 2017-08-02T06:03:59.000Z | 2022-03-31T18:36:53.000Z | phxrpc/network/test_echo_client.cpp | kuiwang/wechat-phxrpc | a5f5af70f27406880013d49780fc4819ba3b75ef | [
"BSD-3-Clause"
] | 31 | 2017-08-16T08:43:35.000Z | 2021-02-13T22:49:25.000Z | phxrpc/network/test_echo_client.cpp | kuiwang/wechat-phxrpc | a5f5af70f27406880013d49780fc4819ba3b75ef | [
"BSD-3-Clause"
] | 359 | 2017-08-04T07:32:41.000Z | 2022-03-31T10:19:45.000Z | /*
Tencent is pleased to support the open source community by making
PhxRPC available.
Copyright (C) 2016 THL A29 Limited, a Tencent company.
All rights reserved.
Licensed under the BSD 3-Clause License (the "License"); you may
not use this file except in compliance with the License. You may
obtain a copy of the L... | 25.171053 | 86 | 0.594354 | bombshen |
f8fb86fb22532022ed7a5dda52dbbeaf3a3fc9ac | 12,315 | cpp | C++ | Source/Diagnostics/FieldIO.cpp | MaxThevenet/WarpX | d9606e22c2feb35bf2cfcd8843db7dfcbaf6c2f6 | [
"BSD-3-Clause-LBNL"
] | null | null | null | Source/Diagnostics/FieldIO.cpp | MaxThevenet/WarpX | d9606e22c2feb35bf2cfcd8843db7dfcbaf6c2f6 | [
"BSD-3-Clause-LBNL"
] | 1 | 2019-09-09T22:37:32.000Z | 2019-09-09T22:37:32.000Z | Source/Diagnostics/FieldIO.cpp | MaxThevenet/WarpX | d9606e22c2feb35bf2cfcd8843db7dfcbaf6c2f6 | [
"BSD-3-Clause-LBNL"
] | null | null | null |
#include <WarpX.H>
#include <FieldIO.H>
using namespace amrex;
void
PackPlotDataPtrs (Vector<const MultiFab*>& pmf,
const std::array<std::unique_ptr<MultiFab>,3>& data)
{
BL_ASSERT(pmf.size() == AMREX_SPACEDIM);
#if (AMREX_SPACEDIM == 3)
pmf[0] = data[0].get();
pmf[1] = data[1].get();
... | 37.318182 | 94 | 0.571092 | MaxThevenet |
f8fc1b11572be70b4491f7245d385e3855af1bae | 2,892 | hpp | C++ | include/Error.hpp | auroralimin/montador-assembly-inventado | b7deeb4a00f27e941636921a84d5222dd7b008a5 | [
"Apache-2.0"
] | null | null | null | include/Error.hpp | auroralimin/montador-assembly-inventado | b7deeb4a00f27e941636921a84d5222dd7b008a5 | [
"Apache-2.0"
] | null | null | null | include/Error.hpp | auroralimin/montador-assembly-inventado | b7deeb4a00f27e941636921a84d5222dd7b008a5 | [
"Apache-2.0"
] | null | null | null | #ifndef MONT_ERROR_HPP
#define MONT_ERROR_HPP
#include <string>
namespace mont {
/**
* @enum mont::errorType
* @brief Enum para os tipos de erro a serem mostrados
*/
enum errorType {
lexical,
sintatic,
semantic,
warning
};
/**
* @brief Classe respo... | 33.241379 | 80 | 0.525242 | auroralimin |
f8fd44ee4ab5a777006ee2d55f567d2cfe3f847c | 549 | hpp | C++ | demos/glyph_paint/glyph_paint.hpp | thknepper/CPPurses | 4f35ba5284bc5ac563214f73f494bd75fd5bf73b | [
"MIT"
] | 1 | 2020-02-22T21:18:11.000Z | 2020-02-22T21:18:11.000Z | demos/glyph_paint/glyph_paint.hpp | thknepper/CPPurses | 4f35ba5284bc5ac563214f73f494bd75fd5bf73b | [
"MIT"
] | null | null | null | demos/glyph_paint/glyph_paint.hpp | thknepper/CPPurses | 4f35ba5284bc5ac563214f73f494bd75fd5bf73b | [
"MIT"
] | null | null | null | #ifndef DEMOS_GLYPH_PAINT_GLYPH_PAINT_HPP
#define DEMOS_GLYPH_PAINT_GLYPH_PAINT_HPP
#include "paint_area.hpp"
#include "side_pane.hpp"
#include <cppurses/widget/layouts/horizontal.hpp>
namespace demos {
namespace glyph_paint {
class Glyph_paint : public cppurses::layout::Horizontal<> {
public:
Glyph_paint();
... | 23.869565 | 59 | 0.763206 | thknepper |
5d06deaf663fa615ba011fd8b3608d128e365532 | 1,730 | cpp | C++ | source/generic/s3eYahooGamesAdTrack_register.cpp | salqadri/s3eYahooGamesAdTrack | 5183757b8fa03a6a1d368dc22e5364445209a290 | [
"MIT"
] | null | null | null | source/generic/s3eYahooGamesAdTrack_register.cpp | salqadri/s3eYahooGamesAdTrack | 5183757b8fa03a6a1d368dc22e5364445209a290 | [
"MIT"
] | null | null | null | source/generic/s3eYahooGamesAdTrack_register.cpp | salqadri/s3eYahooGamesAdTrack | 5183757b8fa03a6a1d368dc22e5364445209a290 | [
"MIT"
] | null | null | null | /*
* WARNING: this is an autogenerated file and will be overwritten by
* the extension interface script.
*/
/*
* This file contains the automatically generated loader-side
* functions that form part of the extension.
*
* This file is awlays compiled into all loaders but compiles
* to nothing if this extension i... | 27.03125 | 134 | 0.736416 | salqadri |
5d0833a25625749a373427e259501c8b3680a949 | 1,562 | hpp | C++ | src/org/apache/poi/wp/usermodel/CharacterRun.hpp | pebble2015/cpoi | 6dcc0c5e13e3e722b4ef9fd0baffbf62bf71ead6 | [
"Apache-2.0"
] | null | null | null | src/org/apache/poi/wp/usermodel/CharacterRun.hpp | pebble2015/cpoi | 6dcc0c5e13e3e722b4ef9fd0baffbf62bf71ead6 | [
"Apache-2.0"
] | null | null | null | src/org/apache/poi/wp/usermodel/CharacterRun.hpp | pebble2015/cpoi | 6dcc0c5e13e3e722b4ef9fd0baffbf62bf71ead6 | [
"Apache-2.0"
] | null | null | null | // Generated from /POI/java/org/apache/poi/wp/usermodel/CharacterRun.java
#pragma once
#include <fwd-POI.hpp>
#include <java/lang/fwd-POI.hpp>
#include <org/apache/poi/wp/usermodel/fwd-POI.hpp>
#include <java/lang/Object.hpp>
struct poi::wp::usermodel::CharacterRun
: public virtual ::java::lang::Object
{
vir... | 35.5 | 73 | 0.68758 | pebble2015 |
5d1418cc9a428bf63eb145d1ebb41f4dcee64a48 | 1,878 | cpp | C++ | Static_data_member/Static_data_member/main.cpp | b01703020/Financial_Computing | d98d4f6e784997129ece15cdaf33c506e0f35c9e | [
"MIT"
] | null | null | null | Static_data_member/Static_data_member/main.cpp | b01703020/Financial_Computing | d98d4f6e784997129ece15cdaf33c506e0f35c9e | [
"MIT"
] | null | null | null | Static_data_member/Static_data_member/main.cpp | b01703020/Financial_Computing | d98d4f6e784997129ece15cdaf33c506e0f35c9e | [
"MIT"
] | null | null | null | //
// main.cpp
// Static_data_member
//
// Created by wu yen sun on 2022/2/22.
//
#include <iostream>
using namespace std;
class Rectangle
{
private:
int length, width; // non static data members
static int count; // static data member
public:
// default constructor
... | 24.710526 | 98 | 0.528222 | b01703020 |
5d174d802d19486deba694a22ce7ff67af08559e | 724 | cpp | C++ | src/kernel/kernel_types.cpp | cbeck88/wes-kernel | 38296e9fcbda632b3cb332a807a590683dd26a1f | [
"MIT"
] | null | null | null | src/kernel/kernel_types.cpp | cbeck88/wes-kernel | 38296e9fcbda632b3cb332a807a590683dd26a1f | [
"MIT"
] | null | null | null | src/kernel/kernel_types.cpp | cbeck88/wes-kernel | 38296e9fcbda632b3cb332a807a590683dd26a1f | [
"MIT"
] | null | null | null | #include "kernel_types.hpp"
namespace wesnoth {
static map_location _helper(int x, int y) {
map_location ret;
ret.x = x;
ret.y = y;
return ret;
}
// TODO: Fix this to correct for C++ vs WML 0 - 1 difference
std::set<map_location> hex::neighbors(map_location a) {
std::set<map_location> res;
bool b = (a.x & 1) =... | 24.133333 | 60 | 0.629834 | cbeck88 |
5d1ca9dbd6f974892faa0bc4127f56a90289b8dd | 15,271 | cpp | C++ | src/tests/unittests/CommandAllocatorTests.cpp | faro-oss/Dawn | 0ac7aa3386b597742a45368a28a2e045c122cb8c | [
"Apache-2.0"
] | 1 | 2022-02-05T01:08:06.000Z | 2022-02-05T01:08:06.000Z | src/tests/unittests/CommandAllocatorTests.cpp | sunnyps/dawn | afe91384086551ea3156fc67c525fdf864aa8437 | [
"Apache-2.0"
] | 1 | 2021-12-18T01:33:44.000Z | 2021-12-18T01:33:44.000Z | src/tests/unittests/CommandAllocatorTests.cpp | sunnyps/dawn | afe91384086551ea3156fc67c525fdf864aa8437 | [
"Apache-2.0"
] | null | null | null | // Copyright 2017 The Dawn Authors
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed t... | 30.299603 | 99 | 0.669177 | faro-oss |
5d1d93acaa5a650f59709505279c3fd21c6b802a | 2,259 | cpp | C++ | base/SplashScreen.cpp | fmuecke/ipponboard_test | 2ba8f324af91bfcdd26e37940157a1796f3b1f64 | [
"BSD-2-Clause"
] | 3 | 2020-12-29T19:33:56.000Z | 2021-11-09T20:29:30.000Z | base/SplashScreen.cpp | fmuecke/ipponboard_test | 2ba8f324af91bfcdd26e37940157a1796f3b1f64 | [
"BSD-2-Clause"
] | 3 | 2020-12-30T10:34:26.000Z | 2021-01-05T08:55:12.000Z | base/SplashScreen.cpp | fmuecke/ipponboard_test | 2ba8f324af91bfcdd26e37940157a1796f3b1f64 | [
"BSD-2-Clause"
] | null | null | null | // Copyright 2018 Florian Muecke. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE.txt file.
#include "DonationManager.h"
#include "splashscreen.h"
#include "ui_splashscreen.h"
#include "versioninfo.h"
#include <algorithm>
using namespac... | 23.05102 | 95 | 0.665781 | fmuecke |
5d209da5ebc8fd0b040e73902be37e64d13111f5 | 6,756 | cc | C++ | src/latbin/lattice-align-words-lexicon.cc | brucerennie/kaldi | d366a93aad98127683b010fd01e145093c1e9e08 | [
"Apache-2.0"
] | 36 | 2019-11-12T22:41:43.000Z | 2022-02-01T15:24:02.000Z | src/latbin/lattice-align-words-lexicon.cc | brucerennie/kaldi | d366a93aad98127683b010fd01e145093c1e9e08 | [
"Apache-2.0"
] | 8 | 2017-09-06T00:12:00.000Z | 2019-03-22T08:03:19.000Z | src/latbin/lattice-align-words-lexicon.cc | brucerennie/kaldi | d366a93aad98127683b010fd01e145093c1e9e08 | [
"Apache-2.0"
] | 29 | 2020-01-03T22:28:27.000Z | 2022-03-30T23:00:27.000Z | // latbin/lattice-align-words-lexicon.cc
// Copyright 2012 Johns Hopkins University (Author: Daniel Povey)
// See ../../COPYING for clarification regarding multiple authors
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You... | 40.45509 | 121 | 0.623594 | brucerennie |
5d20b7caf134216cd8aec42ce48677e2ffb28593 | 255 | cpp | C++ | CCured/program-dependence-graph/SVF/Test-Suite/cpp_types/broken.cpp | Lightninghkm/DataGuard | 4ac1370f7607cec5fc81c3b57f5a62fb1d40f463 | [
"Apache-2.0"
] | 9 | 2022-02-25T01:48:43.000Z | 2022-03-20T04:48:44.000Z | CCured/program-dependence-graph/SVF/Test-Suite/cpp_types/broken.cpp | Lightninghkm/DataGuard | 4ac1370f7607cec5fc81c3b57f5a62fb1d40f463 | [
"Apache-2.0"
] | 1 | 2022-03-19T08:48:07.000Z | 2022-03-21T00:51:51.000Z | CCured/program-dependence-graph/SVF/Test-Suite/cpp_types/broken.cpp | Lightninghkm/DataGuard | 4ac1370f7607cec5fc81c3b57f5a62fb1d40f463 | [
"Apache-2.0"
] | null | null | null | void checkType(void* clz, char* ty){}
class A {
public:
A(){}
};
class B : public A {
public:
B(){}
};
class C : public B {
public:
C(){}
};
int main(void) {
A *a = new A();
checkType(a,"A");
}
| 11.086957 | 37 | 0.419608 | Lightninghkm |
5d2742c249ffa5a13b239bde8ab0b7ed8cb3b1d5 | 115 | cc | C++ | abc.cc | lh2debug/quartzmemkv2 | 664a85f4ee1869f4ff7fafd88f9cbe36ace30fc5 | [
"BSD-3-Clause"
] | null | null | null | abc.cc | lh2debug/quartzmemkv2 | 664a85f4ee1869f4ff7fafd88f9cbe36ace30fc5 | [
"BSD-3-Clause"
] | null | null | null | abc.cc | lh2debug/quartzmemkv2 | 664a85f4ee1869f4ff7fafd88f9cbe36ace30fc5 | [
"BSD-3-Clause"
] | null | null | null | #include "pmalloc.h"
int main(){
int *p = (int*)pmalloc(sizeof(int));
pfree((void*)p, sizeof(int));
return 0;
} | 16.428571 | 37 | 0.617391 | lh2debug |
5d278783c192dcee83bf53f80743a7fb618784fa | 3,031 | cpp | C++ | tools/fact-generator/src/PyFactGen.cpp | TheoKant/cclyzer-souffle | dfcd01daa592a2356e36aaeaa9c933305c253cba | [
"MIT"
] | 63 | 2016-02-06T21:06:40.000Z | 2021-11-16T19:58:27.000Z | tools/fact-generator/src/PyFactGen.cpp | TheoKant/cclyzer-souffle | dfcd01daa592a2356e36aaeaa9c933305c253cba | [
"MIT"
] | 11 | 2019-05-23T20:55:12.000Z | 2021-12-08T22:18:01.000Z | tools/fact-generator/src/PyFactGen.cpp | TheoKant/cclyzer-souffle | dfcd01daa592a2356e36aaeaa9c933305c253cba | [
"MIT"
] | 14 | 2016-02-21T17:12:36.000Z | 2021-09-26T02:48:41.000Z | /**
* This module is intended to provide a python interface to
* fact-generator, by leveraging the Boost.Python library.
**/
#include <boost/filesystem.hpp>
#include <boost/python.hpp>
#include "ParseException.hpp"
namespace fs = boost::filesystem;
namespace py = boost::python;
void
pyfactgen(py::list inputFiles,... | 26.356522 | 86 | 0.649951 | TheoKant |
5d2d63e0d058226c1e41194642b755d655e13334 | 2,244 | hh | C++ | src/EDepSimRootPersistencyManager.hh | andrewmogan/edep-sim | 4e9923ccba8b2f65f47b72cbb41ed683f19f1123 | [
"MIT"
] | 15 | 2017-04-25T14:20:22.000Z | 2022-03-15T19:39:43.000Z | src/EDepSimRootPersistencyManager.hh | andrewmogan/edep-sim | 4e9923ccba8b2f65f47b72cbb41ed683f19f1123 | [
"MIT"
] | 24 | 2017-11-08T21:16:48.000Z | 2022-03-04T13:33:18.000Z | src/EDepSimRootPersistencyManager.hh | andrewmogan/edep-sim | 4e9923ccba8b2f65f47b72cbb41ed683f19f1123 | [
"MIT"
] | 20 | 2017-11-09T15:41:46.000Z | 2022-01-25T20:52:32.000Z | ////////////////////////////////////////////////////////////
// $Id: EDepSim::RootPersistencyManager.hh,v 1.31 2011/09/06 18:58:35 mcgrew Exp $
//
#ifndef EDepSim_RootPersistencyManager_hh_seen
#define EDepSim_RootPersistencyManager_hh_seen
#include <string>
#include <vector>
#include <map>
class TFile;
class TTree;... | 33.492537 | 82 | 0.701872 | andrewmogan |
5d36a3a91d19830a053d6e2eb27a45be1dcff4d6 | 1,446 | cc | C++ | Player.cc | p-rivero/EDA-ThePurge2020 | 81a48df7bdaff6067792d037b9e6627739b959d1 | [
"MIT"
] | null | null | null | Player.cc | p-rivero/EDA-ThePurge2020 | 81a48df7bdaff6067792d037b9e6627739b959d1 | [
"MIT"
] | null | null | null | Player.cc | p-rivero/EDA-ThePurge2020 | 81a48df7bdaff6067792d037b9e6627739b959d1 | [
"MIT"
] | null | null | null | //////// STUDENTS DO NOT NEED TO READ BELOW THIS LINE ////////
#include "Player.hh"
void Player::reset (ifstream& is) {
// Should read what Board::print_state() prints.
// Should fill the same data structures as
// Board::Board (istream& is, int seed), except for settings and names.
// THESE DATA STRUCTURES ... | 27.283019 | 73 | 0.612033 | p-rivero |
5d37e21f1f2a113a54bbe005cd72b14b5fd908e9 | 1,396 | hpp | C++ | Code/Engine/Scene/D3D11Scene.hpp | ntaylorbishop/Copycat | c02f2881f0700a33a2630fd18bc409177d80b8cd | [
"MIT"
] | 2 | 2017-10-02T03:18:55.000Z | 2018-11-21T16:30:36.000Z | Code/Engine/Scene/D3D11Scene.hpp | ntaylorbishop/Copycat | c02f2881f0700a33a2630fd18bc409177d80b8cd | [
"MIT"
] | null | null | null | Code/Engine/Scene/D3D11Scene.hpp | ntaylorbishop/Copycat | c02f2881f0700a33a2630fd18bc409177d80b8cd | [
"MIT"
] | null | null | null | #pragma once
#include "Engine/General/Core/EngineCommon.hpp"
class D3D11Model;
class D3D11Material;
class D3D11MeshRenderer;
const float ANIMATION_FPS = 30.f;
const float MESH_LOAD_ENGINE_SCALE = 0.4f;
class D3D11Scene {
public:
//LOADING SAVING
void AddModelsFromDirectory(const char* dir);
static D3D11Scene*... | 28.489796 | 105 | 0.77149 | ntaylorbishop |
5d3976ed6c5b2959434579750f8e5ee37ca0872d | 3,045 | cpp | C++ | hoo/emitter/DefinitionEmitter.cpp | benoybose/hoolang | 4e280a03caec837be35c8aac948923e1bea96b85 | [
"BSD-3-Clause"
] | null | null | null | hoo/emitter/DefinitionEmitter.cpp | benoybose/hoolang | 4e280a03caec837be35c8aac948923e1bea96b85 | [
"BSD-3-Clause"
] | 14 | 2020-07-24T10:25:59.000Z | 2020-08-02T13:27:09.000Z | hoo/emitter/DefinitionEmitter.cpp | benoybose/hoolang | 4e280a03caec837be35c8aac948923e1bea96b85 | [
"BSD-3-Clause"
] | null | null | null | /*
* Copyright 2021 Benoy Bose
*
* 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, distri... | 39.038462 | 106 | 0.649589 | benoybose |
5d39b30e65c6aa79ab650860f8d001bd3dfb1d96 | 472 | cpp | C++ | ConsoleApplication1/ConsoleApplication1/JsonParser.cpp | AndrFran/CodeInstrumentation | e58ab6d4a6dd5e70d00b5915820af5b0cd9dc33c | [
"MIT"
] | null | null | null | ConsoleApplication1/ConsoleApplication1/JsonParser.cpp | AndrFran/CodeInstrumentation | e58ab6d4a6dd5e70d00b5915820af5b0cd9dc33c | [
"MIT"
] | null | null | null | ConsoleApplication1/ConsoleApplication1/JsonParser.cpp | AndrFran/CodeInstrumentation | e58ab6d4a6dd5e70d00b5915820af5b0cd9dc33c | [
"MIT"
] | null | null | null | #include "JsonParser.h"
namespace WpfApplication2
{
JsonParser::JsonParser()
{
serializer = new JavaScriptSerializer();
}
std::unordered_map<std::wstring, std::any> JsonParser::Deserialize(const std::wstring &json)
{
serializer->Deserialize<std::unordered_map<std::wstring, std::any>>(json);
std::unordere... | 26.222222 | 136 | 0.735169 | AndrFran |
5d41558a4723b240fe82cae068b4139894708bdb | 1,217 | cpp | C++ | unittest/vslib/test_sai_vs_vlan.cpp | vmittal-msft/sonic-sairedis | 6baff35880005aee2854fdcde105c4322c28d04f | [
"Apache-2.0"
] | 50 | 2016-03-23T08:04:44.000Z | 2022-03-25T05:06:16.000Z | unittest/vslib/test_sai_vs_vlan.cpp | vmittal-msft/sonic-sairedis | 6baff35880005aee2854fdcde105c4322c28d04f | [
"Apache-2.0"
] | 589 | 2016-04-01T04:09:09.000Z | 2022-03-31T00:38:10.000Z | unittest/vslib/test_sai_vs_vlan.cpp | vmittal-msft/sonic-sairedis | 6baff35880005aee2854fdcde105c4322c28d04f | [
"Apache-2.0"
] | 234 | 2016-03-28T20:59:21.000Z | 2022-03-23T09:26:22.000Z | #include <gtest/gtest.h>
extern "C" {
#include "sai.h"
}
#include "swss/logger.h"
TEST(libsaivs, vlan)
{
sai_vlan_api_t *api = nullptr;
sai_api_query(SAI_API_VLAN, (void**)&api);
EXPECT_NE(api, nullptr);
sai_object_id_t id;
EXPECT_NE(SAI_STATUS_SUCCESS, api->create_vlan(&id,0,0,0));
EXPEC... | 33.805556 | 109 | 0.750205 | vmittal-msft |
5d41b503b13fdb258fc80e6d5c1fe552b2ad1d56 | 3,234 | hpp | C++ | src/Property_reflect.hpp | cpp-ftw/tmp-lib | 6b4afd294b20d615abe9f409241409bed378eaa7 | [
"MIT"
] | null | null | null | src/Property_reflect.hpp | cpp-ftw/tmp-lib | 6b4afd294b20d615abe9f409241409bed378eaa7 | [
"MIT"
] | null | null | null | src/Property_reflect.hpp | cpp-ftw/tmp-lib | 6b4afd294b20d615abe9f409241409bed378eaa7 | [
"MIT"
] | null | null | null | #ifndef PROPERTY_HPP_INCLUDED
#define PROPERTY_HPP_INCLUDED
// mire jó: getter és setter helyettesítése egy publikus, fiktív adattaggal.
#define PROPERTY( parent, return_type, name) Property<parent, return_type, (& parent :: set ##name), (& parent :: get ##name)> name{this}
#define PROPERTY_(parent, return_type, name... | 27.40678 | 137 | 0.675943 | cpp-ftw |
5d467ab3ed5e73c364e210676a97cc7d1a1fcbcc | 12,126 | cpp | C++ | src/PFsLib/PFsLib.cpp | KurtE/UsbMscFat | 8c4f312b229af5db17a4b43852469466e542e3d0 | [
"MIT"
] | 2 | 2022-02-04T20:37:37.000Z | 2022-03-01T02:41:14.000Z | src/PFsLib/PFsLib.cpp | KurtE/UsbMscFat | 8c4f312b229af5db17a4b43852469466e542e3d0 | [
"MIT"
] | 1 | 2021-03-10T01:35:04.000Z | 2021-03-10T01:35:04.000Z | src/PFsLib/PFsLib.cpp | KurtE/UsbMscFat | 8c4f312b229af5db17a4b43852469466e542e3d0 | [
"MIT"
] | 3 | 2021-03-09T01:06:44.000Z | 2021-03-29T12:21:20.000Z | #include "PFsLib.h"
//Set to 0 for debug info
#define DBG_Print 1
#if defined(DBG_Print)
#define DBGPrintf Serial.printf
#else
void inline DBGPrintf(...) {};
#endif
//------------------------------------------------------------------------------
#define PRINT_FORMAT_PROGRESS 1
#if !PRINT_FORMAT_PROGRESS
#define write... | 33.131148 | 129 | 0.593023 | KurtE |
5d4b3af8036e4e9bcbfac2a2acb41882b3699e47 | 4,042 | cc | C++ | logga/fitness.cc | wahibium/KFF | 609e5afac8a9477dd1af31eacadbcd5b61530113 | [
"MIT"
] | 11 | 2015-06-08T22:16:47.000Z | 2022-03-19T15:11:14.000Z | logga/fitness.cc | wahibium/KFF | 609e5afac8a9477dd1af31eacadbcd5b61530113 | [
"MIT"
] | null | null | null | logga/fitness.cc | wahibium/KFF | 609e5afac8a9477dd1af31eacadbcd5b61530113 | [
"MIT"
] | 4 | 2015-06-12T21:24:47.000Z | 2021-04-23T09:58:33.000Z | // ================================================================================
// ================================================================================
//
// Instructions for adding a new fitness function:
// ------------------------------------------------
//
// 1. create a function with the same inpu... | 28.069444 | 84 | 0.621969 | wahibium |
5d53daf83387b633254466c89b432cdcb386f0ac | 1,225 | cpp | C++ | grammar/src/numExpression.cpp | troeggla/blocky | ef2e32369065f7aff7c7c807712c67d9eb25f75d | [
"BSD-2-Clause"
] | null | null | null | grammar/src/numExpression.cpp | troeggla/blocky | ef2e32369065f7aff7c7c807712c67d9eb25f75d | [
"BSD-2-Clause"
] | null | null | null | grammar/src/numExpression.cpp | troeggla/blocky | ef2e32369065f7aff7c7c807712c67d9eb25f75d | [
"BSD-2-Clause"
] | null | null | null | #include "numExpression.hpp"
NumExpression::NumExpression(double value) {
this->value = new double;
*(this->value) = value;
}
NumExpression::NumExpression(BlockScope* scope, std::string var) : scope(scope), var(var) {
}
NumExpression::NumExpression(NumExpression *ex1, NumExpression *ex2, char op) : ex1(ex1),... | 25 | 108 | 0.553469 | troeggla |
5d5fca61eb70013bfa5cfa0b88ec29791f68293e | 1,689 | cpp | C++ | src/generator/constant.cpp | ikitayama/cobi | e9bc4a5675ead1874ad9ffa953de8edb3a763479 | [
"BSD-3-Clause"
] | null | null | null | src/generator/constant.cpp | ikitayama/cobi | e9bc4a5675ead1874ad9ffa953de8edb3a763479 | [
"BSD-3-Clause"
] | null | null | null | src/generator/constant.cpp | ikitayama/cobi | e9bc4a5675ead1874ad9ffa953de8edb3a763479 | [
"BSD-3-Clause"
] | 1 | 2018-12-14T02:45:41.000Z | 2018-12-14T02:45:41.000Z | /*****************************************************************************
** Cobi http://www.scalasca.org/ **
*****************************************************************************
** Copyright (c) 2009-2010 **
... | 26.809524 | 80 | 0.492599 | ikitayama |
5d62dadacc9740ce55d885e4a0aa7d6751eb4b75 | 2,419 | cpp | C++ | Permissions/Permissions/Private/Permissions.cpp | forced1988/Ark-Server-Plugins | a5f05fa0b1df467d001f7ce09de2e7468e22e5eb | [
"MIT"
] | 1 | 2021-01-25T13:41:34.000Z | 2021-01-25T13:41:34.000Z | Permissions/Permissions/Private/Permissions.cpp | forced1988/Ark-Server-Plugins | a5f05fa0b1df467d001f7ce09de2e7468e22e5eb | [
"MIT"
] | null | null | null | Permissions/Permissions/Private/Permissions.cpp | forced1988/Ark-Server-Plugins | a5f05fa0b1df467d001f7ce09de2e7468e22e5eb | [
"MIT"
] | 1 | 2020-05-24T18:01:41.000Z | 2020-05-24T18:01:41.000Z | #ifdef PERMISSIONS_ARK
#include "../Public/ArkPermissions.h"
#else
#include "../Public/AtlasPermissions.h"
#endif
#include "Main.h"
namespace Permissions
{
TArray<FString> GetPlayerGroups(uint64 steam_id)
{
return database->GetPlayerGroups(steam_id);
}
TArray<FString> GetGroupPermissions(const F... | 23.038095 | 100 | 0.702356 | forced1988 |
5d63da1666829dbbde3b023b8dfce0c11ae41b22 | 6,867 | cpp | C++ | vendor/mysql-connector-c++-1.1.3/test/framework/test_listener.cpp | caiqingfeng/libmrock | bb7c94482a105e92b6d3e8640b13f9ff3ae49a83 | [
"Apache-2.0"
] | 1 | 2015-12-01T04:16:54.000Z | 2015-12-01T04:16:54.000Z | vendor/mysql-connector-c++-1.1.3/test/framework/test_listener.cpp | caiqingfeng/libmrock | bb7c94482a105e92b6d3e8640b13f9ff3ae49a83 | [
"Apache-2.0"
] | null | null | null | vendor/mysql-connector-c++-1.1.3/test/framework/test_listener.cpp | caiqingfeng/libmrock | bb7c94482a105e92b6d3e8640b13f9ff3ae49a83 | [
"Apache-2.0"
] | null | null | null | /*
Copyright (c) 2008, 2011, Oracle and/or its affiliates. All rights reserved.
The MySQL Connector/C++ is licensed under the terms of the GPLv2
<http://www.gnu.org/licenses/old-licenses/gpl-2.0.html>, like most
MySQL Connectors. There are special exceptions to the terms and
conditions of the GPLv2 as it is applied to... | 24.01049 | 93 | 0.631863 | caiqingfeng |
5d65cc6b1abef32c0c8e33f3ea14d46bbc57dc5a | 3,170 | cpp | C++ | editor/src/free_camera.cpp | trbflxr/xe | 13123869a848972e064cb8c6838c4215f034f3d9 | [
"MIT"
] | null | null | null | editor/src/free_camera.cpp | trbflxr/xe | 13123869a848972e064cb8c6838c4215f034f3d9 | [
"MIT"
] | null | null | null | editor/src/free_camera.cpp | trbflxr/xe | 13123869a848972e064cb8c6838c4215f034f3d9 | [
"MIT"
] | null | null | null | //
// Created by trbflxr on 3/31/2020.
//
#include "free_camera.hpp"
#include <xe/core/engine.hpp>
namespace xe {
FreeCamera::FreeCamera(const vec2u &resolution, float fovDeg, float aspect, float nearZ, float farZ,
float moveSpeed, float sprintSpeed, float mouseSensitivity) :
camera... | 31.386139 | 135 | 0.64511 | trbflxr |
5d67ed157395edff6549590a1c433b0315941bea | 14,999 | cc | C++ | INET_EC/common/IntervalTree.cc | LarryNguyen/ECSim- | 0d3f848642e49845ed7e4c7b97dd16bd3d65ede5 | [
"Apache-2.0"
] | 12 | 2020-11-30T08:04:23.000Z | 2022-03-23T11:49:26.000Z | Simulation/OMNeT++/inet/src/inet/common/IntervalTree.cc | StarStuffSteve/masters-research-project | 47c1874913d0961508f033ca9a1144850eb8f8b7 | [
"Apache-2.0"
] | 1 | 2021-01-26T10:49:56.000Z | 2021-01-31T16:58:52.000Z | Simulation/OMNeT++/inet/src/inet/common/IntervalTree.cc | StarStuffSteve/masters-research-project | 47c1874913d0961508f033ca9a1144850eb8f8b7 | [
"Apache-2.0"
] | 8 | 2021-03-15T02:05:51.000Z | 2022-03-21T13:14:02.000Z | /*
* Software License Agreement (BSD License)
*
* Copyright (c) 2011, 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 mu... | 26.5 | 110 | 0.521435 | LarryNguyen |
5d6caa686364a210fef45b77563ab8c435466a96 | 9,044 | hpp | C++ | src/shared/charov.hpp | gtaisbetterthanfn/modloader | 18f85c2766d4e052a452c7b1d8f5860a6daac24b | [
"MIT"
] | 186 | 2015-01-18T05:46:11.000Z | 2022-03-22T10:03:44.000Z | src/shared/charov.hpp | AlisonMDL/modloader | 18f85c2766d4e052a452c7b1d8f5860a6daac24b | [
"MIT"
] | 82 | 2015-01-14T01:02:04.000Z | 2022-03-20T23:55:59.000Z | src/shared/charov.hpp | AlisonMDL/modloader | 18f85c2766d4e052a452c7b1d8f5860a6daac24b | [
"MIT"
] | 34 | 2015-01-07T11:17:00.000Z | 2022-02-28T00:16:20.000Z | /*
* Wide char overload for char functions
* (C) 2012 Denilson das Mercês Amorim <dma_2012@hotmail.com>
*
* This source code is offered for use in the public domain. You may
* use, modify or distribute it freely.
*
* This code is distributed in the hope that it will be useful but
* WITHOUT ANY WARRANTY. AL... | 20.232662 | 112 | 0.655573 | gtaisbetterthanfn |
5d6f057de6f52fce9b6924a624470a38bbae2955 | 923 | cpp | C++ | 145_postorderTraversal.cpp | imxiaobo/leetcode-solutions | a59c4c9fa424787771c8faca7ba444cae4ed6a4e | [
"MIT"
] | null | null | null | 145_postorderTraversal.cpp | imxiaobo/leetcode-solutions | a59c4c9fa424787771c8faca7ba444cae4ed6a4e | [
"MIT"
] | null | null | null | 145_postorderTraversal.cpp | imxiaobo/leetcode-solutions | a59c4c9fa424787771c8faca7ba444cae4ed6a4e | [
"MIT"
] | null | null | null | /**
* Definition for a binary tree node.
* struct TreeNode {
* int val;
* TreeNode *left;
* TreeNode *right;
* TreeNode(int x) : val(x), left(NULL), right(NULL) {}
* };
*/
class Solution {
public:
vector<int> postorderTraversal(TreeNode *root) {
stack<std::pair<TreeNode *, int>> stack;
... | 23.666667 | 59 | 0.510293 | imxiaobo |
5d7132399c20435b79d204111ab0de85b6bd163c | 3,761 | hpp | C++ | core/src/api/Currency.hpp | tmpfork/lib-ledger-core | 8741e84f38f863fd941d3bd56a470f37eb36da04 | [
"MIT"
] | null | null | null | core/src/api/Currency.hpp | tmpfork/lib-ledger-core | 8741e84f38f863fd941d3bd56a470f37eb36da04 | [
"MIT"
] | null | null | null | core/src/api/Currency.hpp | tmpfork/lib-ledger-core | 8741e84f38f863fd941d3bd56a470f37eb36da04 | [
"MIT"
] | null | null | null | // AUTOGENERATED FILE - DO NOT MODIFY!
// This file generated by Djinni from currency.djinni
#ifndef DJINNI_GENERATED_CURRENCY_HPP
#define DJINNI_GENERATED_CURRENCY_HPP
#include "../utils/optional.hpp"
#include "BitcoinLikeNetworkParameters.hpp"
#include "CurrencyUnit.hpp"
#include "EthereumLikeNetworkParameters.hpp"... | 39.177083 | 135 | 0.727998 | tmpfork |
5d74b13656ffaa4a8a9ab331222acd315f1826fd | 2,901 | hpp | C++ | include/codegen/include/GlobalNamespace/OVRInput_OVRControllerTouchpad.hpp | Futuremappermydud/Naluluna-Modifier-Quest | bfda34370764b275d90324b3879f1a429a10a873 | [
"MIT"
] | 1 | 2021-11-12T09:29:31.000Z | 2021-11-12T09:29:31.000Z | include/codegen/include/GlobalNamespace/OVRInput_OVRControllerTouchpad.hpp | Futuremappermydud/Naluluna-Modifier-Quest | bfda34370764b275d90324b3879f1a429a10a873 | [
"MIT"
] | null | null | null | include/codegen/include/GlobalNamespace/OVRInput_OVRControllerTouchpad.hpp | Futuremappermydud/Naluluna-Modifier-Quest | bfda34370764b275d90324b3879f1a429a10a873 | [
"MIT"
] | 2 | 2021-10-03T02:14:20.000Z | 2021-11-12T09:29:36.000Z | // Autogenerated from CppHeaderCreator
// Created by Sc2ad
// =========================================================================
#pragma once
#pragma pack(push, 8)
// Begin includes
#include "extern/beatsaber-hook/shared/utils/typedefs.h"
// Including type: OVRInput
#include "GlobalNamespace/OVRInput.hpp"
// Inc... | 42.661765 | 112 | 0.728025 | Futuremappermydud |
5d850acb324df49c7a3df716382af314f38f2025 | 285 | cpp | C++ | solutions/1198.find-smallest-common-element-in-all-rows.326220064.ac.cpp | satu0king/Leetcode-Solutions | 2edff60d76c2898d912197044f6284efeeb34119 | [
"MIT"
] | 78 | 2020-10-22T11:31:53.000Z | 2022-02-22T13:27:49.000Z | solutions/1198.find-smallest-common-element-in-all-rows.326220064.ac.cpp | satu0king/Leetcode-Solutions | 2edff60d76c2898d912197044f6284efeeb34119 | [
"MIT"
] | null | null | null | solutions/1198.find-smallest-common-element-in-all-rows.326220064.ac.cpp | satu0king/Leetcode-Solutions | 2edff60d76c2898d912197044f6284efeeb34119 | [
"MIT"
] | 26 | 2020-10-23T15:10:44.000Z | 2021-11-07T16:13:50.000Z | class Solution {
public:
int smallestCommonElement(vector<vector<int>> &mat) {
int m[10001] = {};
for (auto j = 0; j < mat[0].size(); ++j)
for (auto i = 0; i < mat.size(); ++i)
if (++m[mat[i][j]] == mat.size())
return mat[i][j];
return -1;
}
};
| 23.75 | 55 | 0.491228 | satu0king |
5d850af6a4b8948f669234ddabaaf6e29b7f4058 | 1,134 | cpp | C++ | PokemanSafari_M1/Character.cpp | ilanisakov/RailShooter | 612945b96b37989927b99f50ffa96e2fe7e22e21 | [
"MIT"
] | null | null | null | PokemanSafari_M1/Character.cpp | ilanisakov/RailShooter | 612945b96b37989927b99f50ffa96e2fe7e22e21 | [
"MIT"
] | null | null | null | PokemanSafari_M1/Character.cpp | ilanisakov/RailShooter | 612945b96b37989927b99f50ffa96e2fe7e22e21 | [
"MIT"
] | null | null | null | /////////////////////////////////////////////////////////////////////
// File: Character.cpp
// DSA2 PokemanSafari_M1
// Authors:
// Ilan Isakov
// Marty Kurtz
// Mary Spencer
//
// Description:
//
/////////////////////////////////////////////////////////////////////
#include "Character.h"
////////////////////... | 28.35 | 69 | 0.368607 | ilanisakov |
5d872b50248f3d7876c6910e699d896450e89eb2 | 244 | cpp | C++ | examples/physics/cmsToyGV/TBBProcessingDemo/TBBTestModules/busy_wait_scale_factor.cpp | Geant-RnD/geant | ffff95e23547531f3254ada2857c062a31f33e8f | [
"ECL-2.0",
"Apache-2.0"
] | 2 | 2016-10-16T14:37:42.000Z | 2018-04-05T15:49:09.000Z | examples/physics/cmsToyGV/TBBProcessingDemo/TBBTestModules/busy_wait_scale_factor.cpp | Geant-RnD/geant | ffff95e23547531f3254ada2857c062a31f33e8f | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | examples/physics/cmsToyGV/TBBProcessingDemo/TBBTestModules/busy_wait_scale_factor.cpp | Geant-RnD/geant | ffff95e23547531f3254ada2857c062a31f33e8f | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | //
// busy_wait_scale_factor.cpp
// DispatchProcessingDemo
//
// Created by Chris Jones on 10/3/11.
// Copyright 2011 FNAL. All rights reserved.
//
#include "busy_wait_scale_factor.h"
double busy_wait_scale_factor = 2.2e+07; //counts/sec
| 20.333333 | 53 | 0.733607 | Geant-RnD |
5d8e06c6d5a7671d4c9bd59fce419b4a8e2aa8c4 | 11,187 | cp | C++ | Linux/Sources/Application/Calendar/Component_Editing/CNewToDoDialog.cp | mbert/mulberry-main | 6b7951a3ca56e01a7be67aa12e55bfeafc63950d | [
"ECL-2.0",
"Apache-2.0"
] | 12 | 2015-04-21T16:10:43.000Z | 2021-11-05T13:41:46.000Z | Linux/Sources/Application/Calendar/Component_Editing/CNewToDoDialog.cp | SpareSimian/mulberry-main | e868f3f4d86efae3351000818a3cb2d72ae5eac3 | [
"ECL-2.0",
"Apache-2.0"
] | 2 | 2015-11-02T13:32:11.000Z | 2019-07-10T21:11:21.000Z | Linux/Sources/Application/Calendar/Component_Editing/CNewToDoDialog.cp | SpareSimian/mulberry-main | e868f3f4d86efae3351000818a3cb2d72ae5eac3 | [
"ECL-2.0",
"Apache-2.0"
] | 6 | 2015-01-12T08:49:12.000Z | 2021-03-27T09:11:10.000Z | /*
Copyright (c) 2007-2011 Cyrus Daboo. 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
Unle... | 29.208877 | 160 | 0.729061 | mbert |
5d92bbd820187dea53283279f100927a6d8aeca3 | 969 | cpp | C++ | mogupro/game/src/Sound/cSE.cpp | desspert/mogupro | ac39f5ec3fb670cf5044ef501951270d7d92a748 | [
"MIT"
] | null | null | null | mogupro/game/src/Sound/cSE.cpp | desspert/mogupro | ac39f5ec3fb670cf5044ef501951270d7d92a748 | [
"MIT"
] | null | null | null | mogupro/game/src/Sound/cSE.cpp | desspert/mogupro | ac39f5ec3fb670cf5044ef501951270d7d92a748 | [
"MIT"
] | null | null | null | #include <Sound/cSE.h>
#include <cinder/app/App.h>
namespace Sound
{
using namespace cinder;
cSE::cSE( std::string const& assetsSePath )
{
auto ctx = audio::master( );
ctx->enable( );
mGainRef = ctx->makeNode( new audio::GainNode( 1.0F ) );
mBufferPlayerRef = ctx->makeNode( new audio::BufferPl... | 21.533333 | 83 | 0.625387 | desspert |
5d93a684b854063b4df7b8fedd29f58eeb77cecc | 10,716 | cc | C++ | targets/ARCH/ETHERNET/oran/5g/oran.cc | Ting-An-Lin/OAI_ORAN_FHI_integration | 0671d428ce5ad5d6040b393c90679d59c074bd2d | [
"Apache-2.0"
] | 1 | 2021-12-14T12:07:10.000Z | 2021-12-14T12:07:10.000Z | targets/ARCH/ETHERNET/oran/5g/oran.cc | Ting-An-Lin/OAI_ORAN_FHI_integration | 0671d428ce5ad5d6040b393c90679d59c074bd2d | [
"Apache-2.0"
] | null | null | null | targets/ARCH/ETHERNET/oran/5g/oran.cc | Ting-An-Lin/OAI_ORAN_FHI_integration | 0671d428ce5ad5d6040b393c90679d59c074bd2d | [
"Apache-2.0"
] | null | null | null | /*
* Licensed to the OpenAirInterface (OAI) Software Alliance under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The OpenAirInterface Software Alliance licenses this file to You under
* the OAI Public Lic... | 25.946731 | 99 | 0.616461 | Ting-An-Lin |
5d94c25e1c854ddf57fa85a8230f66057227d78c | 3,215 | cc | C++ | Engine/spcOpenGL/gl4/gl4texturecube.cc | marcellfischbach/SpiceEngine | e25e1e4145b7afaea9179bb8e33e4d184bd407c4 | [
"BSD-3-Clause"
] | null | null | null | Engine/spcOpenGL/gl4/gl4texturecube.cc | marcellfischbach/SpiceEngine | e25e1e4145b7afaea9179bb8e33e4d184bd407c4 | [
"BSD-3-Clause"
] | 1 | 2021-09-09T12:51:56.000Z | 2021-09-09T12:51:56.000Z | Engine/spcOpenGL/gl4/gl4texturecube.cc | marcellfischbach/SpiceEngine | e25e1e4145b7afaea9179bb8e33e4d184bd407c4 | [
"BSD-3-Clause"
] | null | null | null |
#include <spcOpenGL/gl4/gl4texturecube.hh>
#include <spcOpenGL/gl4/gl4pixelformatmap.hh>
#include <spcCore/graphics/image.hh>
#include <spcCore/graphics/isampler.hh>
#include <spcCore/math/math.hh>
#include <GL/glew.h>
namespace spc::opengl
{
GL4TextureCube::GL4TextureCube()
: iTextureCube()
, m_size(... | 21.870748 | 143 | 0.660653 | marcellfischbach |
4b690e38d0163d380e2cc6a60899ff1122c34528 | 1,382 | hpp | C++ | src-idgen/mode.hpp | bcrist/bengine-idgen | 33ef597d8ea533485516a212c3213111548a9742 | [
"MIT"
] | null | null | null | src-idgen/mode.hpp | bcrist/bengine-idgen | 33ef597d8ea533485516a212c3213111548a9742 | [
"MIT"
] | null | null | null | src-idgen/mode.hpp | bcrist/bengine-idgen | 33ef597d8ea533485516a212c3213111548a9742 | [
"MIT"
] | null | null | null | #pragma once
#ifndef BE_IDGEN_MODE_HPP_
#define BE_IDGEN_MODE_HPP_
#include <be/core/enum_traits.hpp>
/*!! include 'idgen/mode' !! 50 */
/* ################# !! GENERATED CODE -- DO NOT MODIFY !! ################# */
namespace be::idgen {
/////////////////////////////////////////////////////////////////////////////... | 23.033333 | 79 | 0.517366 | bcrist |
4b6a79fb2046884c1984d607d60f2a19147573eb | 2,381 | hpp | C++ | include/hydro/utility/terminal_format.hpp | hydraate/hydro | 42037a8278dcfdca68fb5cceaf6988da861f0eff | [
"Apache-2.0"
] | null | null | null | include/hydro/utility/terminal_format.hpp | hydraate/hydro | 42037a8278dcfdca68fb5cceaf6988da861f0eff | [
"Apache-2.0"
] | null | null | null | include/hydro/utility/terminal_format.hpp | hydraate/hydro | 42037a8278dcfdca68fb5cceaf6988da861f0eff | [
"Apache-2.0"
] | null | null | null | //
// __ __ __
// / / / /__ __ ____/ /_____ ____
// / /_/ // / / // __ // ___// __ \
// / __ // /_/ // /_/ // / / /_/ /
// /_/ /_/ \__, / \__,_//_/ \____/
// /____/
//
// ... | 30.525641 | 103 | 0.616128 | hydraate |
4b6ac20c0e87ef1a12f8badc7fd4de80944a19ea | 7,172 | hpp | C++ | c++/include/util/cache/icache_cf.hpp | OpenHero/gblastn | a0d6c1c288fe916ab85fc637a44cdd6e79ebd2a8 | [
"MIT"
] | 31 | 2016-12-09T04:56:59.000Z | 2021-12-31T17:19:10.000Z | c++/include/util/cache/icache_cf.hpp | OpenHero/gblastn | a0d6c1c288fe916ab85fc637a44cdd6e79ebd2a8 | [
"MIT"
] | 6 | 2017-03-10T17:25:13.000Z | 2021-09-22T15:49:49.000Z | c++/include/util/cache/icache_cf.hpp | OpenHero/gblastn | a0d6c1c288fe916ab85fc637a44cdd6e79ebd2a8 | [
"MIT"
] | 20 | 2015-01-04T02:15:17.000Z | 2021-12-03T02:31:43.000Z | #ifndef UTIL_ICACHE_CF__HPP
#define UTIL_ICACHE_CF__HPP
/* $Id: icache_cf.hpp 112045 2007-10-10 20:43:07Z ivanovp $
* ===========================================================================
*
* public DOMAIN NOTICE
* National Center for Biotechnolo... | 37.94709 | 83 | 0.55396 | OpenHero |
4b76480e75d23fa51b56931256f6b835a3be8d6a | 443 | cpp | C++ | C++ Practice Programs/Example_2.cpp | Ahtisham-Shakir/CPP_OOP | 308e7bdbd1e73c644a17f612fc5b919cb68c171c | [
"MIT"
] | null | null | null | C++ Practice Programs/Example_2.cpp | Ahtisham-Shakir/CPP_OOP | 308e7bdbd1e73c644a17f612fc5b919cb68c171c | [
"MIT"
] | null | null | null | C++ Practice Programs/Example_2.cpp | Ahtisham-Shakir/CPP_OOP | 308e7bdbd1e73c644a17f612fc5b919cb68c171c | [
"MIT"
] | null | null | null | #include <iostream>
#include <cstdio>
#include <bits/stdc++.h>
using namespace std;
int main() {
// Complete the code.
int a; long b; char c; float d; double e;
cout<<"Enter int, long, char, float, double: ";
cin >> a >> b >> c >> d >> e;
cout << a << endl;
cout << b << endl;
cout << c << e... | 24.611111 | 51 | 0.534989 | Ahtisham-Shakir |
4b7819b68b51209a0c8b01327b7735150af1ec0d | 42 | cpp | C++ | c++/Test/Naming.cpp | taku-xhift/labo | 89dc28fdb602c7992c6f31920714225f83a11218 | [
"MIT"
] | null | null | null | c++/Test/Naming.cpp | taku-xhift/labo | 89dc28fdb602c7992c6f31920714225f83a11218 | [
"MIT"
] | null | null | null | c++/Test/Naming.cpp | taku-xhift/labo | 89dc28fdb602c7992c6f31920714225f83a11218 | [
"MIT"
] | null | null | null |
int main() {
int 1st = 0;
}
| 4.666667 | 14 | 0.333333 | taku-xhift |
4b7879257a7d891d99249a431e32191493163496 | 874 | cpp | C++ | Engine/Renderer/GLES3/src/GLES3UniformBufferManager.cpp | LiangYue1981816/AresEngine | c1cf040a1dffaf2bc585ed75e70ddd9322fe3f67 | [
"BSD-2-Clause"
] | 3 | 2018-12-08T16:32:05.000Z | 2020-06-02T11:07:15.000Z | Engine/Renderer/GLES3/src/GLES3UniformBufferManager.cpp | LiangYue1981816/AresEngine | c1cf040a1dffaf2bc585ed75e70ddd9322fe3f67 | [
"BSD-2-Clause"
] | null | null | null | Engine/Renderer/GLES3/src/GLES3UniformBufferManager.cpp | LiangYue1981816/AresEngine | c1cf040a1dffaf2bc585ed75e70ddd9322fe3f67 | [
"BSD-2-Clause"
] | 1 | 2019-09-12T00:26:05.000Z | 2019-09-12T00:26:05.000Z | #include "GLES3Renderer.h"
CGLES3UniformBufferManager::CGLES3UniformBufferManager(void)
{
}
CGLES3UniformBufferManager::~CGLES3UniformBufferManager(void)
{
for (const auto& itUniformBuffer : m_pUniformBuffers) {
delete itUniformBuffer.second;
}
}
CGLES3UniformBuffer* CGLES3UniformBufferManager::Create(size_t s... | 20.325581 | 82 | 0.763158 | LiangYue1981816 |
4b78b37c7a82626e4f04199ef872148e5cd0d2ff | 679 | cpp | C++ | AndroidC++/jni/Sprite.cpp | BenjaminNitschke/MobileCourse | 802ce81f7cd9ee44b35f13e4da302a9fbd29a2b6 | [
"Apache-2.0"
] | 1 | 2015-06-20T09:09:29.000Z | 2015-06-20T09:09:29.000Z | AndroidC++/jni/Sprite.cpp | BenjaminNitschke/MobileCourse | 802ce81f7cd9ee44b35f13e4da302a9fbd29a2b6 | [
"Apache-2.0"
] | null | null | null | AndroidC++/jni/Sprite.cpp | BenjaminNitschke/MobileCourse | 802ce81f7cd9ee44b35f13e4da302a9fbd29a2b6 | [
"Apache-2.0"
] | null | null | null | #include "Sprite.h"
#include <GLES/gl.h>
using namespace SpaceInvaders;
void Sprite::Draw(float x, float y)
{
glBindTexture(GL_TEXTURE_2D, texture->GetHandle());
glTexCoordPointer(2, GL_FLOAT, 0, uvBuffer);
vertices[0] = initialX + x - width; vertices[1] = initialY + y + height; // top left
vertices[3] = initialX... | 42.4375 | 89 | 0.69514 | BenjaminNitschke |
4b80011363c33c66c08bae89d4b291682948401f | 2,911 | cpp | C++ | t/006_grapheme_iterator.t.cpp | pr8x/u5e | 3b970d5bc251fdef341d039d66c84ec5eaf4cb6a | [
"BSD-2-Clause"
] | 19 | 2015-09-18T14:06:40.000Z | 2021-07-20T19:51:34.000Z | t/006_grapheme_iterator.t.cpp | pr8x/u5e | 3b970d5bc251fdef341d039d66c84ec5eaf4cb6a | [
"BSD-2-Clause"
] | 6 | 2016-09-04T02:12:07.000Z | 2017-08-10T10:07:06.000Z | t/006_grapheme_iterator.t.cpp | pr8x/u5e | 3b970d5bc251fdef341d039d66c84ec5eaf4cb6a | [
"BSD-2-Clause"
] | 7 | 2015-10-12T15:36:34.000Z | 2021-02-19T05:15:25.000Z | #include "gtest/gtest.h"
#include <string>
#include <sstream>
#include <u5e/codepoint.hpp>
#include <u5e/utf8_string.hpp>
#include <u5e/utf8_string_grapheme.hpp>
#include <u5e/utf8_string_grapheme_iterator.hpp>
#include <u5e/utf32ne_string.hpp>
#include <u5e/utf32ne_string_grapheme.hpp>
#include <u5e/utf32ne_string_g... | 20.075862 | 61 | 0.655101 | pr8x |
4b81a5977bea4e6ed6c6ac939263c7d32fbbf2df | 121 | cpp | C++ | MultiMon.cpp | SegaraRai/EntisGLS4Build | 2587390738802394a38b3aaf2adc80295dde7ec4 | [
"CC0-1.0",
"Unlicense"
] | 3 | 2021-11-05T08:02:17.000Z | 2022-02-26T18:03:18.000Z | MultiMon.cpp | SegaraRai/EntisGLS4Build | 2587390738802394a38b3aaf2adc80295dde7ec4 | [
"CC0-1.0",
"Unlicense"
] | null | null | null | MultiMon.cpp | SegaraRai/EntisGLS4Build | 2587390738802394a38b3aaf2adc80295dde7ec4 | [
"CC0-1.0",
"Unlicense"
] | null | null | null | #ifdef DISABLE_ENTIS_GLS4_EXPORTS
# include <Windows.h>
# define COMPILE_MULTIMON_STUBS
# include <MultiMon.h>
#endif
| 13.444444 | 33 | 0.785124 | SegaraRai |
4b8268f37171d1ffc0aff29e21d11c6bdc320d67 | 2,872 | cpp | C++ | source/request.cpp | kociap/rpp | 1c0009c1abcd9416c75c75a981b235f2db551e89 | [
"MIT"
] | null | null | null | source/request.cpp | kociap/rpp | 1c0009c1abcd9416c75c75a981b235f2db551e89 | [
"MIT"
] | null | null | null | source/request.cpp | kociap/rpp | 1c0009c1abcd9416c75c75a981b235f2db551e89 | [
"MIT"
] | null | null | null | #include "rpp/request.hpp"
#include "curl/curl.h"
namespace rpp {
Request::Request() : handle(curl_easy_init()), headers(nullptr) {}
Request::Request(Request&& req) : handle(req.handle), headers(req.headers) {
req.handle = nullptr;
req.headers = nullptr;
}
Request& Request::operator=(... | 30.231579 | 94 | 0.60968 | kociap |
4b85fba9ab89f08a9661331e0e503d4c95690e88 | 1,928 | hpp | C++ | include/codegen/include/Zenject/PoolableStaticMemoryPool_1.hpp | Futuremappermydud/Naluluna-Modifier-Quest | bfda34370764b275d90324b3879f1a429a10a873 | [
"MIT"
] | 1 | 2021-11-12T09:29:31.000Z | 2021-11-12T09:29:31.000Z | include/codegen/include/Zenject/PoolableStaticMemoryPool_1.hpp | Futuremappermydud/Naluluna-Modifier-Quest | bfda34370764b275d90324b3879f1a429a10a873 | [
"MIT"
] | null | null | null | include/codegen/include/Zenject/PoolableStaticMemoryPool_1.hpp | Futuremappermydud/Naluluna-Modifier-Quest | bfda34370764b275d90324b3879f1a429a10a873 | [
"MIT"
] | 2 | 2021-10-03T02:14:20.000Z | 2021-11-12T09:29:36.000Z | // Autogenerated from CppHeaderCreator on 7/27/2020 3:10:44 PM
// Created by Sc2ad
// =========================================================================
#pragma once
#pragma pack(push, 8)
// Begin includes
// Including type: Zenject.StaticMemoryPool`1
#include "Zenject/StaticMemoryPool_1.hpp"
#include "utils/il2... | 42.844444 | 180 | 0.729253 | Futuremappermydud |
4b863e877773836ce1b1ce3d02a9bd36ba641089 | 1,816 | cpp | C++ | src/Events/OE_Event.cpp | antsouchlos/OxygenEngine2 | 5a123a2dacbc3b66ba9e97b9e5db7d8c17490ddb | [
"MIT"
] | null | null | null | src/Events/OE_Event.cpp | antsouchlos/OxygenEngine2 | 5a123a2dacbc3b66ba9e97b9e5db7d8c17490ddb | [
"MIT"
] | 22 | 2020-05-19T18:18:45.000Z | 2022-03-31T12:11:08.000Z | src/Events/OE_Event.cpp | antsouchlos/OxygenEngine2 | 5a123a2dacbc3b66ba9e97b9e5db7d8c17490ddb | [
"MIT"
] | null | null | null | #include <OE_Math.h>
#include <Events/OE_Event.h>
#include <Carbon/CSL_Interpreter.h>
using namespace std;
bool OE_Event::finished = false;
OE_Event::OE_Event(){
active_=false;
name_ = "";
}
OE_Event::~OE_Event(){}
void OE_Event::setFunc(const OE_EVENTFUNC a_func){
lockMutex();
func_ = a_func;
... | 17.461538 | 51 | 0.69163 | antsouchlos |
4b8bbbded467cad466b585b5f59ac99dee81a551 | 1,177 | cpp | C++ | android-31/android/drm/DrmConvertedStatus.cpp | YJBeetle/QtAndroidAPI | 1468b5dc6eafaf7709f0b00ba1a6ec2b70684266 | [
"Apache-2.0"
] | 12 | 2020-03-26T02:38:56.000Z | 2022-03-14T08:17:26.000Z | android-28/android/drm/DrmConvertedStatus.cpp | YJBeetle/QtAndroidAPI | 1468b5dc6eafaf7709f0b00ba1a6ec2b70684266 | [
"Apache-2.0"
] | 1 | 2021-01-27T06:07:45.000Z | 2021-11-13T19:19:43.000Z | android-30/android/drm/DrmConvertedStatus.cpp | YJBeetle/QtAndroidAPI | 1468b5dc6eafaf7709f0b00ba1a6ec2b70684266 | [
"Apache-2.0"
] | 3 | 2021-02-02T12:34:55.000Z | 2022-03-08T07:45:57.000Z | #include "../../JByteArray.hpp"
#include "./DrmConvertedStatus.hpp"
namespace android::drm
{
// Fields
jint DrmConvertedStatus::STATUS_ERROR()
{
return getStaticField<jint>(
"android.drm.DrmConvertedStatus",
"STATUS_ERROR"
);
}
jint DrmConvertedStatus::STATUS_INPUTDATA_ERROR()
{
return getStaticField... | 18.390625 | 78 | 0.692438 | YJBeetle |
4b8c0a1a8b99bfff9517b5566b0c5b6d66751cec | 1,553 | cpp | C++ | examples/Threads/token.cpp | azerothcore/lib-ace | c1fedd5f2033951eee9ecf898f6f2b75584aaefc | [
"DOC"
] | null | null | null | examples/Threads/token.cpp | azerothcore/lib-ace | c1fedd5f2033951eee9ecf898f6f2b75584aaefc | [
"DOC"
] | null | null | null | examples/Threads/token.cpp | azerothcore/lib-ace | c1fedd5f2033951eee9ecf898f6f2b75584aaefc | [
"DOC"
] | 1 | 2020-04-26T03:07:12.000Z | 2020-04-26T03:07:12.000Z | // Test out the ACE Token class.
#include "ace/OS_main.h"
#include "ace/Token.h"
#include "ace/Task.h"
#include "ace/OS_NS_time.h"
#if defined (ACE_HAS_THREADS)
class My_Task : public ACE_Task<ACE_MT_SYNCH>
{
public:
My_Task (int n);
virtual int svc (void);
static void sleep_hook (void *);
... | 20.168831 | 80 | 0.584031 | azerothcore |
4b91f517f4ea60bcd0000af4532094ca6a4d46e1 | 128,536 | cc | C++ | protocal/routing/routing.pb.cc | racestart/g2r | d115ebaab13829d716750eab2ebdcc51d79ff32e | [
"Apache-2.0"
] | 1 | 2020-03-05T12:49:21.000Z | 2020-03-05T12:49:21.000Z | protocal/routing/routing.pb.cc | gA4ss/g2r | a6e2ee5758ab59fd95704e3c3090dd234fbfb2c9 | [
"Apache-2.0"
] | null | null | null | protocal/routing/routing.pb.cc | gA4ss/g2r | a6e2ee5758ab59fd95704e3c3090dd234fbfb2c9 | [
"Apache-2.0"
] | 1 | 2020-03-25T15:06:39.000Z | 2020-03-25T15:06:39.000Z | // Generated by the protocol buffer compiler. DO NOT EDIT!
// source: routing/routing.proto
#define INTERNAL_SUPPRESS_PROTOBUF_FIELD_DEPRECATION
#include "routing/routing.pb.h"
#include <algorithm>
#include <google/protobuf/stubs/common.h>
#include <google/protobuf/stubs/port.h>
#include <google/protobuf/stubs/once... | 34.880868 | 125 | 0.711731 | racestart |
4b9686a3e5a95572d2db9aa9018c540c4c34bdef | 3,505 | hpp | C++ | lib/audiodev/AudioSubmix.hpp | Austint30/boo | e9b2c5f96c4d48e57ca5b8eb0aa41504f4a81672 | [
"MIT"
] | 7 | 2016-04-16T04:37:59.000Z | 2022-02-01T12:39:04.000Z | lib/audiodev/AudioSubmix.hpp | Jcw87/boo | c4bb325d059eb032c48a72a99a0b3f0a419d8017 | [
"MIT"
] | 8 | 2016-07-13T03:20:04.000Z | 2021-06-30T05:07:10.000Z | lib/audiodev/AudioSubmix.hpp | Jcw87/boo | c4bb325d059eb032c48a72a99a0b3f0a419d8017 | [
"MIT"
] | 11 | 2016-04-16T04:40:46.000Z | 2022-02-06T04:23:17.000Z | #pragma once
#include <array>
#include <cstddef>
#include <cstdint>
#include <list>
#include <mutex>
#include <unordered_map>
#include <vector>
#include "boo/audiodev/IAudioSubmix.hpp"
#include "lib/audiodev/Common.hpp"
#if defined(__x86_64__) || defined(_M_AMD64)
#include <immintrin.h>
#elif defined(__aarch64__) ||... | 27.382813 | 101 | 0.750357 | Austint30 |
4b976d2fcb1f0c18c51c96b07f21b0b3e0cd673f | 6,711 | cpp | C++ | tests/stress_block_in.cpp | zsummer/fn_log | bc06f15c1b1500684dbe556ee36f10f5caad32a8 | [
"MIT"
] | 4 | 2019-05-26T14:23:09.000Z | 2019-05-31T08:19:54.000Z | tests/stress_block_in.cpp | zsummer/fn_log | bc06f15c1b1500684dbe556ee36f10f5caad32a8 | [
"MIT"
] | null | null | null | tests/stress_block_in.cpp | zsummer/fn_log | bc06f15c1b1500684dbe556ee36f10f5caad32a8 | [
"MIT"
] | 1 | 2019-05-27T13:07:36.000Z | 2019-05-27T13:07:36.000Z |
#define FN_LOG_MAX_CHANNEL_SIZE 4
#define FN_LOG_MAX_LOG_SIZE 1000
#define FN_LOG_MAX_LOG_QUEUE_SIZE 100000
#include "fn_log.h"
static const std::string example_config_text =
R"----(
# 压测配表
# 0通道为异步模式写文件, info多线程文件输出和一个CATEGORY筛选的屏显输出
- channel: 0
sync: null
priority: trace
category: 0
categ... | 24.582418 | 123 | 0.539711 | zsummer |
4b986d6e2451f9ffa3f6e16c208b0675734d5c4a | 848 | hpp | C++ | tools/lib/completion_context_finder.hpp | stryku/cmakesl | e53bffed62ae9ca68c0c2de0de8e2a94bfe4d326 | [
"BSD-3-Clause"
] | 51 | 2019-05-06T01:33:34.000Z | 2021-11-17T11:44:54.000Z | tools/lib/completion_context_finder.hpp | stryku/cmakesl | e53bffed62ae9ca68c0c2de0de8e2a94bfe4d326 | [
"BSD-3-Clause"
] | 191 | 2019-05-06T18:31:24.000Z | 2020-06-19T06:48:06.000Z | tools/lib/completion_context_finder.hpp | stryku/cmakesl | e53bffed62ae9ca68c0c2de0de8e2a94bfe4d326 | [
"BSD-3-Clause"
] | 3 | 2019-10-12T21:03:29.000Z | 2020-06-19T06:22:25.000Z | #pragma once
#include "common/source_location.hpp"
#include "completion_contextes.hpp"
#include "sema/sema_node_visitor.hpp"
#include <variant>
namespace cmsl::tools {
class completion_context_finder : public sema::empty_sema_node_visitor
{
public:
explicit completion_context_finder(unsigned absolute_position);
... | 26.5 | 70 | 0.787736 | stryku |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.