hexsha stringlengths 40 40 | size int64 7 1.05M | ext stringclasses 13
values | lang stringclasses 1
value | max_stars_repo_path stringlengths 4 269 | max_stars_repo_name stringlengths 5 108 | max_stars_repo_head_hexsha stringlengths 40 40 | max_stars_repo_licenses listlengths 1 9 | max_stars_count int64 1 191k ⌀ | max_stars_repo_stars_event_min_datetime stringlengths 24 24 ⌀ | max_stars_repo_stars_event_max_datetime stringlengths 24 24 ⌀ | max_issues_repo_path stringlengths 4 269 | max_issues_repo_name stringlengths 5 116 | max_issues_repo_head_hexsha stringlengths 40 40 | max_issues_repo_licenses listlengths 1 9 | max_issues_count int64 1 67k ⌀ | max_issues_repo_issues_event_min_datetime stringlengths 24 24 ⌀ | max_issues_repo_issues_event_max_datetime stringlengths 24 24 ⌀ | max_forks_repo_path stringlengths 4 269 | max_forks_repo_name stringlengths 5 116 | max_forks_repo_head_hexsha stringlengths 40 40 | max_forks_repo_licenses listlengths 1 9 | max_forks_count int64 1 105k ⌀ | max_forks_repo_forks_event_min_datetime stringlengths 24 24 ⌀ | max_forks_repo_forks_event_max_datetime stringlengths 24 24 ⌀ | content stringlengths 7 1.05M | avg_line_length float64 1.21 330k | max_line_length int64 6 990k | alphanum_fraction float64 0.01 0.99 | author_id stringlengths 2 40 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
53495f590979cc66e517e3171fb33d2e012114a7 | 1,171 | cpp | C++ | src/xray/render/core/sources/res_input_layout.cpp | ixray-team/ixray-2.0 | 85c3a544175842323fc82f42efd96c66f0fc5abb | [
"Linux-OpenIB"
] | 3 | 2021-10-30T09:36:14.000Z | 2022-03-26T17:00:06.000Z | src/xray/render/core/sources/res_input_layout.cpp | acidicMercury8/ixray-2.0 | 85c3a544175842323fc82f42efd96c66f0fc5abb | [
"Linux-OpenIB"
] | null | null | null | src/xray/render/core/sources/res_input_layout.cpp | acidicMercury8/ixray-2.0 | 85c3a544175842323fc82f42efd96c66f0fc5abb | [
"Linux-OpenIB"
] | 1 | 2022-03-26T17:00:08.000Z | 2022-03-26T17:00:08.000Z | ////////////////////////////////////////////////////////////////////////////
// Created : 15.04.2010
// Author : Armen Abroyan
// Copyright (C) GSC Game World - 2010
////////////////////////////////////////////////////////////////////////////
#include "pch.h"
#include <xray/render/core/device.h>
#include <xr... | 30.815789 | 196 | 0.631939 | ixray-team |
5349a6d934becdfef483c00121583fd84b5f141f | 11,113 | cpp | C++ | CppExpressionParser/expressionparser.cpp | mrexodia/ExpressionParser | d7e7e05144385d4189632f3d3b9a06d87a9688df | [
"MIT"
] | 2 | 2015-06-07T18:25:26.000Z | 2019-06-27T08:08:54.000Z | CppExpressionParser/expressionparser.cpp | mrexodia/ExpressionParser | d7e7e05144385d4189632f3d3b9a06d87a9688df | [
"MIT"
] | null | null | null | CppExpressionParser/expressionparser.cpp | mrexodia/ExpressionParser | d7e7e05144385d4189632f3d3b9a06d87a9688df | [
"MIT"
] | null | null | null | #include "expressionparser.h"
#include <stdio.h>
ExpressionParser::Token::Token(const std::string & data, const Type type)
{
_data = data;
_type = type;
}
const std::string ExpressionParser::Token::data() const
{
return _data;
}
const ExpressionParser::Token::Type ExpressionParser::Token::t... | 29.3219 | 154 | 0.517682 | mrexodia |
534a82d8c6a982769797022e90b004fb6640d9c3 | 2,900 | cpp | C++ | test/api/src/api.cpp | bielskij/uCoroutine | 321138dd11008254e648194c2b90e9865950a465 | [
"MIT"
] | null | null | null | test/api/src/api.cpp | bielskij/uCoroutine | 321138dd11008254e648194c2b90e9865950a465 | [
"MIT"
] | null | null | null | test/api/src/api.cpp | bielskij/uCoroutine | 321138dd11008254e648194c2b90e9865950a465 | [
"MIT"
] | null | null | null | ////////////////////////////////////////////////////////////////////////////////
// MIT License
//
// Copyright (c) 2021 Jaroslaw Bielski (bielski.j@gmail.com)
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to... | 25.663717 | 97 | 0.687586 | bielskij |
c72a85cc45f95655f6af75767efd5013069622c6 | 447 | cpp | C++ | src/ecnu/2017/02.cpp | adolphlwq/java-algorithms | 43983a5583479e44e7a9b9d7fbeb495896e8f205 | [
"Apache-2.0"
] | 4 | 2017-07-07T04:38:41.000Z | 2019-02-23T04:48:01.000Z | src/ecnu/2017/02.cpp | adolphlwq/java-algorithms | 43983a5583479e44e7a9b9d7fbeb495896e8f205 | [
"Apache-2.0"
] | 13 | 2017-05-23T15:37:29.000Z | 2020-02-24T14:12:28.000Z | src/ecnu/2017/02.cpp | adolphlwq/algorithms | 43983a5583479e44e7a9b9d7fbeb495896e8f205 | [
"Apache-2.0"
] | null | null | null | #include <stdio.h>
bool valid(long long x) {
if(x%7 == 0) return true;
int m;
long long ret=0;
while(x) {
m = x%10;
ret += m;
if(m == 7) return true;
x /= 10;
}
if(ret%7 == 0) return true;
return false;
}
int main() {
long long m, n;
scanf("%lld %... | 14.9 | 33 | 0.442953 | adolphlwq |
c733b2b9fbcc48cfa3a80dc3c8f13fba4bcda580 | 930 | cpp | C++ | code/utils/communication/ClientCommandSender.cpp | ashmrtn/crashmonkey | ab21ec11f1b181f354c6ca8dc3f72804302173f8 | [
"Apache-2.0"
] | 160 | 2017-07-08T17:16:49.000Z | 2022-02-23T03:07:05.000Z | code/utils/communication/ClientCommandSender.cpp | ashmrtn/crashmonkey | ab21ec11f1b181f354c6ca8dc3f72804302173f8 | [
"Apache-2.0"
] | 95 | 2017-07-11T04:58:12.000Z | 2021-09-10T16:21:38.000Z | code/utils/communication/ClientCommandSender.cpp | ashmrtn/crashmonkey | ab21ec11f1b181f354c6ca8dc3f72804302173f8 | [
"Apache-2.0"
] | 30 | 2017-07-23T17:13:51.000Z | 2021-11-30T10:06:12.000Z | #include <string>
#include "ClientCommandSender.h"
#include "ClientSocket.h"
#include "SocketUtils.h"
namespace fs_testing {
namespace utils {
namespace communication {
using std::string;
ClientCommandSender::ClientCommandSender(
string socket_addr,
SocketMessage::CmCommand send,
SocketMessage::CmComman... | 23.25 | 74 | 0.626882 | ashmrtn |
c735541f920a18f2cfc6d9ddf02ee79a0100238b | 2,983 | cpp | C++ | src/obstacle_avoidance.cpp | anubhavparas/ros-walker-bot | 7c352d17fd3fb3cf2713eb325b9fad28d56b2a69 | [
"MIT"
] | null | null | null | src/obstacle_avoidance.cpp | anubhavparas/ros-walker-bot | 7c352d17fd3fb3cf2713eb325b9fad28d56b2a69 | [
"MIT"
] | null | null | null | src/obstacle_avoidance.cpp | anubhavparas/ros-walker-bot | 7c352d17fd3fb3cf2713eb325b9fad28d56b2a69 | [
"MIT"
] | 1 | 2021-11-29T19:18:27.000Z | 2021-11-29T19:18:27.000Z | /**
* MIT License
*
* Copyright (c) 2021 Anubhav Paras
*
* 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, m... | 34.287356 | 81 | 0.693932 | anubhavparas |
c73c57d3e9d4bcb9af63078d592e1e66de9e609c | 947 | hpp | C++ | PPreflector/base_class.hpp | Petkr/PPreflection | 9e2e3fd3dcae0b1acf75e6c0913a22d257a9c805 | [
"MIT"
] | null | null | null | PPreflector/base_class.hpp | Petkr/PPreflection | 9e2e3fd3dcae0b1acf75e6c0913a22d257a9c805 | [
"MIT"
] | null | null | null | PPreflector/base_class.hpp | Petkr/PPreflection | 9e2e3fd3dcae0b1acf75e6c0913a22d257a9c805 | [
"MIT"
] | null | null | null | #pragma once
// clang-format off
#include "pragma_push.hpp"
#include "clang/AST/Type.h"
#include "pragma_pop.hpp"
// clang-format on
#include "node_descriptor.hpp"
namespace PPreflector
{
///
/// @brief Represents a base class declaration.
///
///
class base_class : public node_descriptor<clang::Type, descriptor... | 26.305556 | 74 | 0.732841 | Petkr |
c73dc6f83c692337febca4887fdfb35f3ff8f383 | 683 | hpp | C++ | libs/plugin/impl/include/sge/plugin/impl/manager_impl.hpp | cpreh/spacegameengine | 313a1c34160b42a5135f8223ffaa3a31bc075a01 | [
"BSL-1.0"
] | 2 | 2016-01-27T13:18:14.000Z | 2018-05-11T01:11:32.000Z | libs/plugin/impl/include/sge/plugin/impl/manager_impl.hpp | cpreh/spacegameengine | 313a1c34160b42a5135f8223ffaa3a31bc075a01 | [
"BSL-1.0"
] | null | null | null | libs/plugin/impl/include/sge/plugin/impl/manager_impl.hpp | cpreh/spacegameengine | 313a1c34160b42a5135f8223ffaa3a31bc075a01 | [
"BSL-1.0"
] | 3 | 2018-05-11T01:11:34.000Z | 2021-04-24T19:47:45.000Z | // Copyright Carl Philipp Reh 2006 - 2019.
// Distributed under the Boost Software License, Version 1.0.
// (See accompanying file LICENSE_1_0.txt or copy at
// http://www.boost.org/LICENSE_1_0.txt)
#ifndef SGE_PLUGIN_IMPL_MANAGER_IMPL_HPP_INCLUDED
#define SGE_PLUGIN_IMPL_MANAGER_IMPL_HPP_INCLUDED... | 31.045455 | 69 | 0.743777 | cpreh |
c73ed0759075fad835f6508ce886bdbac6de2528 | 1,175 | cpp | C++ | RDM-Converter/src/Log.cpp | kskudlik/Anno-1800-Model-Converter | 32185564bdf8e9258970e91c50515ee2ab4e815d | [
"MIT"
] | 9 | 2019-08-08T11:02:21.000Z | 2021-05-24T13:37:35.000Z | RDM-Converter/src/Log.cpp | kskudlik/Anno-1800-Model-Converter | 32185564bdf8e9258970e91c50515ee2ab4e815d | [
"MIT"
] | 3 | 2019-10-08T19:30:09.000Z | 2021-02-09T21:31:20.000Z | RDM-Converter/src/Log.cpp | kskudlik/Anno-1800-Model-Converter | 32185564bdf8e9258970e91c50515ee2ab4e815d | [
"MIT"
] | 2 | 2019-08-09T21:36:23.000Z | 2020-08-24T16:25:02.000Z | #include "Log.h"
#include <fstream>
#include <filesystem>
bool is_empty(const char* logfile)
{
std::ifstream pFile(logfile);
return pFile.peek() == std::ifstream::traits_type::eof();
}
Log::Log(const char* logfile) : logfile(logfile)
{
auto console_logger = spdlog::stdout_color_mt("console");
spdlog::... | 26.111111 | 125 | 0.622128 | kskudlik |
c74a8cd0151cf48ac1f2af62b149c1eea0d9acc9 | 13,182 | cpp | C++ | TGMarbles/AI/MoveRanker.cpp | toadgee/marbles | 044f0f4eebe37ba72e0c99f2841f42a55fe20d70 | [
"MIT"
] | null | null | null | TGMarbles/AI/MoveRanker.cpp | toadgee/marbles | 044f0f4eebe37ba72e0c99f2841f42a55fe20d70 | [
"MIT"
] | null | null | null | TGMarbles/AI/MoveRanker.cpp | toadgee/marbles | 044f0f4eebe37ba72e0c99f2841f42a55fe20d70 | [
"MIT"
] | null | null | null | #include "precomp.h"
#include "Card.h"
#include "DebugAssert.h"
#include "Move.h"
#include "Game.h"
#include "ComputerPlayer.h"
#include "MoveGenerator.h"
#include "MoveRanker.h"
#include "Board.h"
// by creating a move ranker struct, we don't have to recalculate some of the same data over and over
#define TGMMoveRank... | 29.424107 | 136 | 0.716811 | toadgee |
c74ab5d6d9a9bede0e88bd7cf3de82f6edf62ef9 | 3,383 | cpp | C++ | qtxmlpatterns/src/xmlpatterns/api/qresourcedelegator.cpp | wgnet/wds_qt | 8db722fd367d2d0744decf99ac7bafaba8b8a3d3 | [
"Apache-2.0"
] | 1 | 2020-04-30T15:47:35.000Z | 2020-04-30T15:47:35.000Z | qtxmlpatterns/src/xmlpatterns/api/qresourcedelegator.cpp | wgnet/wds_qt | 8db722fd367d2d0744decf99ac7bafaba8b8a3d3 | [
"Apache-2.0"
] | null | null | null | qtxmlpatterns/src/xmlpatterns/api/qresourcedelegator.cpp | wgnet/wds_qt | 8db722fd367d2d0744decf99ac7bafaba8b8a3d3 | [
"Apache-2.0"
] | null | null | null | /****************************************************************************
**
** Copyright (C) 2015 The Qt Company Ltd.
** Contact: http://www.qt.io/licensing/
**
** This file is part of the QtXmlPatterns module of the Qt Toolkit.
**
** $QT_BEGIN_LICENSE:LGPL21$
** Commercial License Usage
** Licensees holding valid... | 35.239583 | 93 | 0.686964 | wgnet |
c751c896dc2d1eab1f3bd1ed171809e224fa206e | 17,760 | cpp | C++ | jtagclient/main.cpp | azonenberg/jtaghal-apps | 53f9abc66a354df2d74cb253a81f1ee2d1780bb0 | [
"BSD-3-Clause"
] | 4 | 2018-07-04T11:35:32.000Z | 2021-05-18T18:06:18.000Z | jtagclient/main.cpp | azonenberg/jtaghal-apps | 53f9abc66a354df2d74cb253a81f1ee2d1780bb0 | [
"BSD-3-Clause"
] | 1 | 2018-03-21T11:17:00.000Z | 2018-03-21T11:17:00.000Z | jtagclient/main.cpp | azonenberg/jtaghal-apps | 53f9abc66a354df2d74cb253a81f1ee2d1780bb0 | [
"BSD-3-Clause"
] | 1 | 2018-03-21T10:40:29.000Z | 2018-03-21T10:40:29.000Z | /***********************************************************************************************************************
* *
* ANTIKERNEL v0.1 ... | 26.389302 | 143 | 0.546059 | azonenberg |
c75430aeacf977cce437989b2923d2d59591f609 | 2,374 | cpp | C++ | scrimmage/plugins/metrics/SimpleCollisionMetrics/SimpleCollisionScore.cpp | ddfan/swarm_evolve | cd2d972c021e9af5946673363fbfd39cff18f13f | [
"MIT"
] | 10 | 2019-04-29T03:01:19.000Z | 2022-03-22T03:11:30.000Z | scrimmage/plugins/metrics/SimpleCollisionMetrics/SimpleCollisionScore.cpp | lyers179/swarm_evolve | cd2d972c021e9af5946673363fbfd39cff18f13f | [
"MIT"
] | 3 | 2018-10-29T02:14:10.000Z | 2020-11-23T02:36:14.000Z | scrimmage/plugins/metrics/SimpleCollisionMetrics/SimpleCollisionScore.cpp | lyers179/swarm_evolve | cd2d972c021e9af5946673363fbfd39cff18f13f | [
"MIT"
] | 8 | 2018-10-29T02:07:56.000Z | 2022-01-04T06:37:53.000Z | /// ---------------------------------------------------------------------------
/// @section LICENSE
///
/// Copyright (c) 2016 Georgia Tech Research Institute (GTRI)
/// All Rights Reserved
///
/// The above copyright notice and this permission notice shall be included in
/// all copies or substantial po... | 38.918033 | 87 | 0.621314 | ddfan |
c755986347597bb6e447e0f02da8bcb5b0de6403 | 134 | hpp | C++ | scripts/scripts/mulHLS/para.hpp | dicecco1/fpga_caffe | 7a191704efd7873071cfef35772d7e7bf3e3cfd6 | [
"Intel",
"BSD-2-Clause"
] | 134 | 2016-10-05T22:10:19.000Z | 2022-03-26T07:13:55.000Z | scripts/scripts/mulHLS/para.hpp | honorpeter/fpga_caffe | 7a191704efd7873071cfef35772d7e7bf3e3cfd6 | [
"Intel",
"BSD-2-Clause"
] | 14 | 2016-11-20T21:16:38.000Z | 2020-04-14T04:58:32.000Z | scripts/scripts/mulHLS/para.hpp | honorpeter/fpga_caffe | 7a191704efd7873071cfef35772d7e7bf3e3cfd6 | [
"Intel",
"BSD-2-Clause"
] | 58 | 2016-10-03T01:23:47.000Z | 2021-11-24T12:17:30.000Z | #define HALF 1
#define NO_PARTITION 1
#define EXP_SIZE 7
#define MANT_SIZE 20
#define ROUND_NEAREST_MULT 1
#define ROUND_NEAREST_ADD 1 | 22.333333 | 28 | 0.828358 | dicecco1 |
c7559f50ae41b6d365db68672eb06edd86b92af8 | 18,964 | hpp | C++ | Hittable.hpp | JohnHynes/Thesis | e4b5ed0cc4f5e1465d449db343eb429d2872bbe4 | [
"MIT"
] | 4 | 2021-02-19T23:48:35.000Z | 2022-01-10T01:42:07.000Z | Hittable.hpp | JohnHynes/Thesis | e4b5ed0cc4f5e1465d449db343eb429d2872bbe4 | [
"MIT"
] | 1 | 2021-03-24T16:52:16.000Z | 2021-03-24T16:52:16.000Z | Hittable.hpp | JohnHynes/Thesis | e4b5ed0cc4f5e1465d449db343eb429d2872bbe4 | [
"MIT"
] | 1 | 2021-04-19T14:16:09.000Z | 2021-04-19T14:16:09.000Z | #ifndef GPU_RAY_TRACER_HITTABLE_HPP_
#define GPU_RAY_TRACER_HITTABLE_HPP_
#include <algorithm>
#include <glm/geometric.hpp>
#include <iostream>
#include <iterator>
#include <limits>
#include "Preprocessor.hpp"
#include "Random.hpp"
#include "Ray.hpp"
#include "constants.hpp"
#include "types.hpp"
struct hittable;
st... | 29.677621 | 80 | 0.625132 | JohnHynes |
c75925f41861b56bce60f427cd5b497814e84a87 | 4,629 | cc | C++ | trex/python/exception_helper.cc | miatauro/trex2-agent | d896f8335f3194237a8bba49949e86f5488feddb | [
"BSD-3-Clause"
] | null | null | null | trex/python/exception_helper.cc | miatauro/trex2-agent | d896f8335f3194237a8bba49949e86f5488feddb | [
"BSD-3-Clause"
] | null | null | null | trex/python/exception_helper.cc | miatauro/trex2-agent | d896f8335f3194237a8bba49949e86f5488feddb | [
"BSD-3-Clause"
] | null | null | null | /*********************************************************************
* Software License Agreement (BSD License)
*
* Copyright (c) 2015, Frederic Py.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following condit... | 29.864516 | 85 | 0.650248 | miatauro |
c7594e1ce2d07fc85c6dc559e845cae8d4a17da6 | 2,484 | cpp | C++ | Codes/jxdeng3264/401-500/445.Add-Two-Numbers-II/Solution.cpp | liuxiaohui1221/algorithm | d80e64185ceb4798ac5389bfbd226dc1d406f6b5 | [
"Apache-2.0"
] | 256 | 2017-10-25T13:02:15.000Z | 2022-02-25T13:47:59.000Z | Codes/jxdeng3264/401-500/445.Add-Two-Numbers-II/Solution.cpp | liuxiaohui1221/algorithm | d80e64185ceb4798ac5389bfbd226dc1d406f6b5 | [
"Apache-2.0"
] | 56 | 2017-10-27T01:34:20.000Z | 2022-03-01T00:20:55.000Z | Codes/jxdeng3264/401-500/445.Add-Two-Numbers-II/Solution.cpp | liuxiaohui1221/algorithm | d80e64185ceb4798ac5389bfbd226dc1d406f6b5 | [
"Apache-2.0"
] | 83 | 2017-10-25T12:51:53.000Z | 2022-02-15T08:27:03.000Z | /**
* Definition for singly-linked list.
* struct ListNode {
* int val;
* ListNode *next;
* ListNode(int x) : val(x), next(NULL) {}
* };
*/
// 思路:结果链表反向构建,高位在最后,遍历好l1,l2 之后得到结果链表,最后再反转
class Solution {
public:
ListNode* addTwoNumbers(ListNode* l1, ListNode* l2) {
ListNode *p = NULL;
... | 23 | 57 | 0.332126 | liuxiaohui1221 |
c75d697783e9c9fbf5a2c6e33c70ed7edd33ce3a | 13,114 | cpp | C++ | Universe/engine/src/core/math.cpp | SmirnovVyacheslav/Universe_1.0 | 6210c57664796f653c2fe54c737caf615b7b58c9 | [
"Apache-2.0"
] | null | null | null | Universe/engine/src/core/math.cpp | SmirnovVyacheslav/Universe_1.0 | 6210c57664796f653c2fe54c737caf615b7b58c9 | [
"Apache-2.0"
] | null | null | null | Universe/engine/src/core/math.cpp | SmirnovVyacheslav/Universe_1.0 | 6210c57664796f653c2fe54c737caf615b7b58c9 | [
"Apache-2.0"
] | null | null | null | // Copyright: (C) 2021-2022 Vyacheslav Smirnov. All rights reserved.
#include "math.h"
namespace engine
{
float factorial(int n)
{
if (n == 0 || n == 1)
return 1.0f;
float result = 1.0f;
for (int i = 1; i <= n; ++i)
{
result *= static_cast<float>(i);
... | 28.949227 | 109 | 0.521351 | SmirnovVyacheslav |
c761106c64a8403db0b6e91db714072e0e971750 | 53 | cpp | C++ | swimps-test/benchmark/source/swimps-benchmark-test.cpp | OMGtechy/swimps | 5ad9643eb94347042aa2d29d834543c3df3732aa | [
"MIT"
] | null | null | null | swimps-test/benchmark/source/swimps-benchmark-test.cpp | OMGtechy/swimps | 5ad9643eb94347042aa2d29d834543c3df3732aa | [
"MIT"
] | 43 | 2020-05-29T22:33:50.000Z | 2021-05-05T23:22:33.000Z | swimps-test/benchmark/source/swimps-benchmark-test.cpp | OMGtechy/swimps | 5ad9643eb94347042aa2d29d834543c3df3732aa | [
"MIT"
] | 2 | 2020-05-29T20:50:47.000Z | 2020-11-15T18:50:55.000Z | #include "swimps-benchmark-test.h"
BENCHMARK_MAIN(); | 17.666667 | 34 | 0.773585 | OMGtechy |
c7614542eea1aa3765544a873af7c4bef129aa9a | 1,048 | cpp | C++ | src/CaseCreator/UIComponents/LocationTab/LocationZoomedViewsPage.cpp | Thisisderpys/my-little-investigations | 0689f2ca3e808ba39864f024280abd2e77f8ad20 | [
"MIT"
] | 41 | 2015-01-24T17:33:16.000Z | 2022-01-08T19:36:40.000Z | src/CaseCreator/UIComponents/LocationTab/LocationZoomedViewsPage.cpp | Thisisderpys/my-little-investigations | 0689f2ca3e808ba39864f024280abd2e77f8ad20 | [
"MIT"
] | 15 | 2015-01-05T21:00:41.000Z | 2016-10-18T14:37:03.000Z | src/CaseCreator/UIComponents/LocationTab/LocationZoomedViewsPage.cpp | Thisisderpys/my-little-investigations | 0689f2ca3e808ba39864f024280abd2e77f8ad20 | [
"MIT"
] | 6 | 2016-01-14T21:07:22.000Z | 2020-11-28T09:51:15.000Z | #include "LocationZoomedViewsPage.h"
#include <QVBoxLayout>
LocationZoomedViewsPage::LocationZoomedViewsPage(QWidget *parent)
: Page<Location>(parent)
{
isActive = false;
QVBoxLayout *pMainLayout = new QVBoxLayout();
pZoomedViewManipulator = new ListManipulator<ZoomedView>();
pMainLayout->addWid... | 20.153846 | 65 | 0.734733 | Thisisderpys |
c7662bee86679f84f906ba38088b6d8038cffbb2 | 17,218 | cpp | C++ | Misc/UnusedCode/RSLibAndTests/RSLibTests/Code/Experiments/Misc/PlotterExperiments.cpp | RobinSchmidt/RS-MET-Preliminary | 6c01cbaad7cce3daa3293c444dd9e4b74e5ebfbe | [
"FTL"
] | 34 | 2017-04-19T18:26:02.000Z | 2022-02-15T17:47:26.000Z | Misc/UnusedCode/RSLibAndTests/RSLibTests/Code/Experiments/Misc/PlotterExperiments.cpp | RobinSchmidt/RS-MET-Preliminary | 6c01cbaad7cce3daa3293c444dd9e4b74e5ebfbe | [
"FTL"
] | 307 | 2017-05-04T21:45:01.000Z | 2022-02-03T00:59:01.000Z | Misc/UnusedCode/RSLibAndTests/RSLibTests/Code/Experiments/Misc/PlotterExperiments.cpp | RobinSchmidt/RS-MET-Preliminary | 6c01cbaad7cce3daa3293c444dd9e4b74e5ebfbe | [
"FTL"
] | 4 | 2017-09-05T17:04:31.000Z | 2021-12-15T21:24:28.000Z | //// code has become obsolete - delete soon
//
//#include "PlotterExperiments.h"
//
//void createDataFiveFunctions(int N, double xMin, double xMax, double *x, double *y1, double *y2,
// double *y3, double *y4, double *y5)
//{
// rsFillWithRangeLinear(x, N, xMin, xMax);
// for(int n = 0; n < N; n++)
// {
// y1[n]... | 32.671727 | 104 | 0.52387 | RobinSchmidt |
c768dcac9a2dec0d965eae3c4b319b028ec14f9d | 2,640 | cpp | C++ | src/Emulators/nestopiaue/core/api/NstApiRewinder.cpp | slajerek/RetroDebugger | e761e4f9efd103a05e65ef283423b142fa4324c7 | [
"Apache-2.0",
"MIT"
] | 34 | 2021-05-29T07:04:17.000Z | 2022-03-10T20:16:03.000Z | src/Emulators/nestopiaue/core/api/NstApiRewinder.cpp | slajerek/RetroDebugger | e761e4f9efd103a05e65ef283423b142fa4324c7 | [
"Apache-2.0",
"MIT"
] | 6 | 2021-12-25T13:05:21.000Z | 2022-01-19T17:35:17.000Z | src/Emulators/nestopiaue/core/api/NstApiRewinder.cpp | slajerek/RetroDebugger | e761e4f9efd103a05e65ef283423b142fa4324c7 | [
"Apache-2.0",
"MIT"
] | 6 | 2021-12-24T18:37:41.000Z | 2022-02-06T23:06:02.000Z | ////////////////////////////////////////////////////////////////////////////////////////
//
// Nestopia - NES/Famicom emulator written in C++
//
// Copyright (C) 2003-2008 Martin Freij
//
// This file is part of Nestopia.
//
// Nestopia is free software; you can redistribute it and/or modify
// it under the te... | 25.384615 | 89 | 0.619697 | slajerek |
c76a827f118259dca54abb0642df3a63c44f999f | 3,925 | hpp | C++ | include/nbla/utils/nd_index.hpp | yuhonghong66/nnabla | 7841efa0736ade01ad066070568072b50c53e87e | [
"Apache-2.0"
] | 1 | 2019-08-30T04:19:29.000Z | 2019-08-30T04:19:29.000Z | include/nbla/utils/nd_index.hpp | agrooo-dev/nnabla | 7841efa0736ade01ad066070568072b50c53e87e | [
"Apache-2.0"
] | 4 | 2018-12-24T23:33:06.000Z | 2019-02-13T02:15:45.000Z | include/nbla/utils/nd_index.hpp | agrooo-dev/nnabla | 7841efa0736ade01ad066070568072b50c53e87e | [
"Apache-2.0"
] | null | null | null | // Copyright (c) 2018 Sony Corporation. All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by ... | 32.172131 | 79 | 0.65172 | yuhonghong66 |
c76b1d8c95fc16a96df1d9e9a51d0d4bbe013bb5 | 1,695 | cpp | C++ | 01_current/Vital_Clues/src/main.cpp | r0oland/Baltopia | a772733a73fd54ad837f079b525bf8c7c09712bf | [
"MIT"
] | null | null | null | 01_current/Vital_Clues/src/main.cpp | r0oland/Baltopia | a772733a73fd54ad837f079b525bf8c7c09712bf | [
"MIT"
] | null | null | null | 01_current/Vital_Clues/src/main.cpp | r0oland/Baltopia | a772733a73fd54ad837f079b525bf8c7c09712bf | [
"MIT"
] | null | null | null | #include "..\lib\vital_lib.cpp"
#include "..\lib\iot_lib.cpp"
#include "..\include\secrets.h"
uint_fast32_t updateIOTInterval = 10000;
Iot MyIot(IO_USERNAME,IO_KEY,WIFI_SSID,WIFI_PASS,updateIOTInterval);
Vital MyVital(ONE_WIRE_BUS,LCD_ADDRESS,LCD_COLS,LCD_ROWS);
DeviceAddress PAD_SENS = {0x28, 0xFF, 0x67, 0x98, 0x9... | 33.9 | 106 | 0.585841 | r0oland |
c76d4b044b1da3187db0547bcf244e5271e149f4 | 2,641 | hpp | C++ | Rootkits/vault/hoglund/He4Hook215b6/He4HookInv/He4Boot/He4HookBootDriverHide/He4HookBootDriverHide.hpp | dendisuhubdy/grokmachine | 120a21a25c2730ed356739231ec8b99fc0575c8b | [
"BSD-3-Clause"
] | 46 | 2017-05-15T11:15:08.000Z | 2018-07-02T03:32:52.000Z | Rootkits/vault/hoglund/He4Hook215b6/He4HookInv/He4Boot/He4HookBootDriverHide/He4HookBootDriverHide.hpp | dendisuhubdy/grokmachine | 120a21a25c2730ed356739231ec8b99fc0575c8b | [
"BSD-3-Clause"
] | null | null | null | Rootkits/vault/hoglund/He4Hook215b6/He4HookInv/He4Boot/He4HookBootDriverHide/He4HookBootDriverHide.hpp | dendisuhubdy/grokmachine | 120a21a25c2730ed356739231ec8b99fc0575c8b | [
"BSD-3-Clause"
] | 24 | 2017-05-17T03:26:17.000Z | 2018-07-09T07:00:50.000Z | #ifndef __HE4HOOK_BOOT_DRIVER_HIDE
#define __HE4HOOK_BOOT_DRIVER_HIDE
#define STRICT
#include "..\ntdll.h"
#include "..\NtBootDriverControlHide\NtBootDriverControlHide.hpp"
#define PETHREAD PVOID
#include "..\..\He4Command.h"
typedef struct _W32_FILEINFO
{
char *lpszName;
char *lpszChangedName;... | 28.706522 | 132 | 0.667172 | dendisuhubdy |
c7725d1bed22a70d6f42417dc6948b218d24f0f4 | 698 | cpp | C++ | TC/423-DIV2-500.cpp | aajjbb/contest-files | b8842681b96017063a7baeac52ae1318bf59d74d | [
"Apache-2.0"
] | 1 | 2018-08-28T19:58:40.000Z | 2018-08-28T19:58:40.000Z | TC/423-DIV2-500.cpp | aajjbb/contest-files | b8842681b96017063a7baeac52ae1318bf59d74d | [
"Apache-2.0"
] | 2 | 2017-04-16T00:48:05.000Z | 2017-08-03T20:12:26.000Z | TC/423-DIV2-500.cpp | aajjbb/contest-files | b8842681b96017063a7baeac52ae1318bf59d74d | [
"Apache-2.0"
] | 4 | 2016-03-04T19:42:00.000Z | 2018-01-08T11:42:00.000Z | #include <bits/stdc++.h>
using namespace std;
class LampsGrid {
public:
int mostLit(vector <string>, int);
};
bool can(string line, int N, int K) {
int ans = 0;
for (int i = 0; i < N; i++) {
if (line[i] == '0') {
ans += 1;
}
}
if (ans <= K && (K - ans) % 2 == 0) {
return true;
} else {
return fa... | 14.541667 | 56 | 0.528653 | aajjbb |
c772bd3c111a0805a95e67984d49abf9503e94cd | 11,111 | hpp | C++ | include/eepp/graphics/cbatchrenderer.hpp | weimingtom/eepp | dd672ff0e108ae1e08449ca918dc144018fb4ba4 | [
"MIT"
] | null | null | null | include/eepp/graphics/cbatchrenderer.hpp | weimingtom/eepp | dd672ff0e108ae1e08449ca918dc144018fb4ba4 | [
"MIT"
] | null | null | null | include/eepp/graphics/cbatchrenderer.hpp | weimingtom/eepp | dd672ff0e108ae1e08449ca918dc144018fb4ba4 | [
"MIT"
] | null | null | null | #ifndef EE_GRAPHICSCBATCHRENDERER_H
#define EE_GRAPHICSCBATCHRENDERER_H
#include <eepp/graphics/base.hpp>
#include <eepp/math/polygon2.hpp>
#include <eepp/math/originpoint.hpp>
namespace EE { namespace Graphics {
struct eeTexCoord {
eeFloat u;
eeFloat v;
};
struct eeVertex {
eeVector2f pos;
eeTexCoord tex;
eeC... | 44.444 | 235 | 0.724327 | weimingtom |
c775a8a4e05fb4d060f7d55ccab140e9d9af142a | 3,044 | hpp | C++ | utils/stringUtils.hpp | jasonnaldi/htmlvalidator-cpp | 80ecd5ac823b685b6490136ed8d289c8ec7477a0 | [
"MIT"
] | null | null | null | utils/stringUtils.hpp | jasonnaldi/htmlvalidator-cpp | 80ecd5ac823b685b6490136ed8d289c8ec7477a0 | [
"MIT"
] | 2 | 2020-10-14T17:58:14.000Z | 2020-10-14T18:58:18.000Z | utils/stringUtils.hpp | jasonnaldi/htmlvalidator | 80ecd5ac823b685b6490136ed8d289c8ec7477a0 | [
"MIT"
] | null | null | null | /*
MIT License
Copyright (c) 2016 Jason Naldi
- direct contact: dev@jasonnaldi.com
- web: https://jasonnaldi.com
- github: https://github.com/jasonnaldi
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal... | 34.202247 | 120 | 0.702365 | jasonnaldi |
c777d7b961ff701321c1270752ebc2a7ecf79abe | 10,566 | cpp | C++ | Listen/upd-example2/Clisten.cpp | righthalfplane/SdrGult | f6a082939d7922c08cef1f53104a84841be80910 | [
"MIT"
] | 55 | 2019-12-13T07:32:26.000Z | 2022-03-18T13:50:05.000Z | Listen/upd-example2/Clisten.cpp | righthalfplane/SdrGult | f6a082939d7922c08cef1f53104a84841be80910 | [
"MIT"
] | 27 | 2019-12-30T11:01:03.000Z | 2022-02-10T20:08:08.000Z | Listen/upd-example2/Clisten.cpp | righthalfplane/SdrGult | f6a082939d7922c08cef1f53104a84841be80910 | [
"MIT"
] | 13 | 2019-12-10T21:20:38.000Z | 2022-03-18T13:50:08.000Z | #include "Clisten.h"
#include <cstdio>
#include <chrono>
#include <thread>
#include <complex>
#include <iostream>
#include <string.h>
#include <stdio.h>
#include <stdlib.h>
#include <liquid/liquid.h>
#include <rtaudio/RtAudio.h>
// #include <unistd.h>
using namespace std;
#include <stdl... | 21.875776 | 126 | 0.582529 | righthalfplane |
c778c162f7934dd7fa32a227511539004c6d3cff | 3,441 | cpp | C++ | tests/rect_spec.cpp | Polynominal/bump.hpp | a53e9d5c4d8079aa86ed9a73d36ea7188901215e | [
"MIT"
] | null | null | null | tests/rect_spec.cpp | Polynominal/bump.hpp | a53e9d5c4d8079aa86ed9a73d36ea7188901215e | [
"MIT"
] | null | null | null | tests/rect_spec.cpp | Polynominal/bump.hpp | a53e9d5c4d8079aa86ed9a73d36ea7188901215e | [
"MIT"
] | null | null | null | #include <gtest/gtest.h>
#include <gmock/gmock.h>
#include "../Rectangle.hpp"
#include "../Collision.hpp"
using namespace plugin::physics::bump;
TEST(RECTANGLE, StaticIntersectTest)
{
{
std::shared_ptr<Collision> col = std::make_shared<Collision>();
ASSERT_FALSE(Rectangle(0,0,1,1).DetectCollision... | 32.158879 | 114 | 0.642546 | Polynominal |
c77cf327a7dabc6ff652f91640e3986a76f91c2b | 340 | cc | C++ | src/transport_sweep/Sweep_Fixed_Source_None.cc | pgmaginot/DARK_ARTS | f04b0a30dcac911ef06fe0916921020826f5c42b | [
"MIT"
] | null | null | null | src/transport_sweep/Sweep_Fixed_Source_None.cc | pgmaginot/DARK_ARTS | f04b0a30dcac911ef06fe0916921020826f5c42b | [
"MIT"
] | null | null | null | src/transport_sweep/Sweep_Fixed_Source_None.cc | pgmaginot/DARK_ARTS | f04b0a30dcac911ef06fe0916921020826f5c42b | [
"MIT"
] | null | null | null | #include "Sweep_Fixed_Source_None.h"
Sweep_Fixed_Source_None::Sweep_Fixed_Source_None(const Fem_Quadrature& fem_quadrature)
:
V_Sweep_Fixed_Source(fem_quadrature)
{
}
void Sweep_Fixed_Source_None::get_source(Eigen::VectorXd& source_vec)
{
for(int i=0; i< m_n_dfem_pts ; i++)
source_vec(i) = 0.;
... | 18.888889 | 87 | 0.717647 | pgmaginot |
c7808a8537a1814f13059d5b37dccc348f2c27da | 2,581 | cc | C++ | test/json_formatter_test.cc | NilFoundation/actorio | 49ac3e87902d4388cd0bb29267207f89fb057e85 | [
"MIT"
] | null | null | null | test/json_formatter_test.cc | NilFoundation/actorio | 49ac3e87902d4388cd0bb29267207f89fb057e85 | [
"MIT"
] | 3 | 2020-04-17T17:00:16.000Z | 2020-07-13T20:19:11.000Z | test/json_formatter_test.cc | NilFoundation/actorio | 49ac3e87902d4388cd0bb29267207f89fb057e85 | [
"MIT"
] | null | null | null | //---------------------------------------------------------------------------//
// Copyright (c) 2018-2021 Mikhail Komarov <nemo@nil.foundation>
//
// MIT License
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), t... | 46.089286 | 114 | 0.666021 | NilFoundation |
c780d63763d689da712811418e40c29e1ed0fb13 | 4,489 | cpp | C++ | src/runtime/NEON/functions/NEGEMMConvolutionLayer.cpp | MaximMilashchenko/ComputeLibrary | 91ee4d0a9ef128b16936921470a0e3ffef347536 | [
"MIT"
] | 1 | 2022-02-10T11:06:25.000Z | 2022-02-10T11:06:25.000Z | src/runtime/NEON/functions/NEGEMMConvolutionLayer.cpp | 0xgpapad/ComputeLibrary | 91ee4d0a9ef128b16936921470a0e3ffef347536 | [
"MIT"
] | null | null | null | src/runtime/NEON/functions/NEGEMMConvolutionLayer.cpp | 0xgpapad/ComputeLibrary | 91ee4d0a9ef128b16936921470a0e3ffef347536 | [
"MIT"
] | 1 | 2022-02-04T10:22:53.000Z | 2022-02-04T10:22:53.000Z | /*
* Copyright (c) 2017-2021 Arm Limited.
*
* SPDX-License-Identifier: MIT
*
* 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
* ri... | 44.445545 | 196 | 0.709067 | MaximMilashchenko |
c784cc15a590a3cd34d039cce7678aea6d485fb9 | 746 | hpp | C++ | include/RadonFramework/Core/Types/Int16.hpp | tak2004/RadonFramework | e916627a54a80fac93778d5010c50c09b112259b | [
"Apache-2.0"
] | 3 | 2015-09-15T06:57:50.000Z | 2021-03-16T19:05:02.000Z | include/RadonFramework/Core/Types/Int16.hpp | tak2004/RadonFramework | e916627a54a80fac93778d5010c50c09b112259b | [
"Apache-2.0"
] | 2 | 2015-09-26T12:41:10.000Z | 2015-12-08T08:41:37.000Z | include/RadonFramework/Core/Types/Int16.hpp | tak2004/RadonFramework | e916627a54a80fac93778d5010c50c09b112259b | [
"Apache-2.0"
] | 1 | 2015-07-09T02:56:34.000Z | 2015-07-09T02:56:34.000Z | #ifndef RF_CORE_TYPES_INT16_HPP
#define RF_CORE_TYPES_INT16_HPP
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
#include <cstdint>
namespace RadonFramework::Core::Types {
/// A Int16 have always the size of 2 byte and represent a signed number.
using Int16 = int16_t;
/// The maximum value which can be co... | 23.3125 | 73 | 0.784182 | tak2004 |
c7854e9ca003f8ecc22f0e7db1c156961afa4a68 | 2,796 | cpp | C++ | ExercicioGerandoImagem/hello.cpp | ViniciusArnhold/ProcessamentoGrafico | 1c794da80925ff266b4889befd31a12759e063f8 | [
"MIT"
] | 1 | 2019-09-17T00:50:07.000Z | 2019-09-17T00:50:07.000Z | ExercicioGerandoImagem/hello.cpp | ViniciusArnhold/ProcessamentoGrafico | 1c794da80925ff266b4889befd31a12759e063f8 | [
"MIT"
] | null | null | null | ExercicioGerandoImagem/hello.cpp | ViniciusArnhold/ProcessamentoGrafico | 1c794da80925ff266b4889befd31a12759e063f8 | [
"MIT"
] | null | null | null | #include <Windows.h>
#include <GL/gl.h>
#include <GL/glut.h>
#include <stdio.h>
#include <stdlib.h>
#include "Image.h"
#include "PTMReader.h"
#include <iostream>
using namespace std;
//Core
/*int inicioPersonagem = 0;
int posicaoPersonagemX = 200;
int sentido = 0;*/
//Sprites
int numSpritesLargura = 4;
int numSprit... | 23.897436 | 92 | 0.699928 | ViniciusArnhold |
c78793f4e62ea6de3050b5876919aaed302d8d0e | 1,271 | cpp | C++ | src/component/DomainFilter.cpp | NicoSchlw/easi | a05f647667d8274587b5e9a5a6b1ca0c7b2d2d37 | [
"BSD-3-Clause"
] | 1 | 2022-01-18T05:18:52.000Z | 2022-01-18T05:18:52.000Z | src/component/DomainFilter.cpp | NicoSchlw/easi | a05f647667d8274587b5e9a5a6b1ca0c7b2d2d37 | [
"BSD-3-Clause"
] | 16 | 2019-11-13T14:32:24.000Z | 2022-02-23T16:08:12.000Z | src/component/DomainFilter.cpp | NicoSchlw/easi | a05f647667d8274587b5e9a5a6b1ca0c7b2d2d37 | [
"BSD-3-Clause"
] | 5 | 2019-08-07T14:02:08.000Z | 2022-02-25T08:10:48.000Z | #include "easi/component/DomainFilter.h"
#include "easi/util/Slice.h"
#include <memory>
#include <set>
namespace easi {
bool AxisAlignedCuboidalDomainFilter::accept(int, Slice<double> const& x) const {
bool acc = true;
for (unsigned d = 0; d < dimDomain(); ++d) {
acc = acc && (x(d) >= m_limits[d].fir... | 25.938776 | 81 | 0.622345 | NicoSchlw |
c788c97c8b91dbd1a009e0a89af3f86f2b0b8956 | 179 | hpp | C++ | engine/widgets.hpp | jpmorris33/ire | d6a0a9468c1f98010c5959be301b717f02336895 | [
"BSD-3-Clause"
] | null | null | null | engine/widgets.hpp | jpmorris33/ire | d6a0a9468c1f98010c5959be301b717f02336895 | [
"BSD-3-Clause"
] | 8 | 2020-03-29T21:03:23.000Z | 2020-04-11T23:28:14.000Z | engine/widgets.hpp | jpmorris33/ire | d6a0a9468c1f98010c5959be301b717f02336895 | [
"BSD-3-Clause"
] | 1 | 2020-06-11T16:54:37.000Z | 2020-06-11T16:54:37.000Z | extern int GetLoadSaveSlot(int saving); // Menu
extern int GetTextBox(char *text, const char *prompt, int maxlen);
extern int GetFileSelect(char *prompt, char *newfile, char *x);
| 44.75 | 66 | 0.759777 | jpmorris33 |
c78bdbabeb68bdb01222fbfbc657bdb27e4c72a3 | 188 | cpp | C++ | ABC/abc121/a.cpp | EnsekiTT/atcoder | 6b40332d1b2493d1b6c00c9f1912895a67a3bbcb | [
"MIT"
] | null | null | null | ABC/abc121/a.cpp | EnsekiTT/atcoder | 6b40332d1b2493d1b6c00c9f1912895a67a3bbcb | [
"MIT"
] | null | null | null | ABC/abc121/a.cpp | EnsekiTT/atcoder | 6b40332d1b2493d1b6c00c9f1912895a67a3bbcb | [
"MIT"
] | null | null | null | #include<iostream>
#include<string>
using namespace std;
int main()
{
int H, W, h, w;
cin >> H >> W;
cin >> h >> w;
cout << H*W - ((H-h)*w + (W-w)*h + h*w) << endl;
return 0;
}
| 14.461538 | 50 | 0.5 | EnsekiTT |
c78d87f7123ff76823f249a4ea72d7c50777b65b | 3,670 | cc | C++ | example/manual.cc | google/capture-thread | a780de1c20e2442139b3f06fede68d41161849be | [
"Apache-2.0"
] | 106 | 2017-04-20T11:39:38.000Z | 2021-09-28T09:31:26.000Z | example/manual.cc | google/capture-thread | a780de1c20e2442139b3f06fede68d41161849be | [
"Apache-2.0"
] | 2 | 2017-10-03T16:35:32.000Z | 2017-11-14T17:53:12.000Z | example/manual.cc | google/capture-thread | a780de1c20e2442139b3f06fede68d41161849be | [
"Apache-2.0"
] | 36 | 2017-04-19T17:50:57.000Z | 2022-01-20T13:48:34.000Z | /* -----------------------------------------------------------------------------
Copyright 2017 Google Inc.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENS... | 34.622642 | 80 | 0.689918 | google |
c78df3511a8f0f914342fe0931c4b9ee0ba82d49 | 10,356 | cc | C++ | QTProject/window.cc | jtorres6/MeshColors | bef99c377bbca9d35532d589d4b7434764fc9bd0 | [
"MIT"
] | null | null | null | QTProject/window.cc | jtorres6/MeshColors | bef99c377bbca9d35532d589d4b7434764fc9bd0 | [
"MIT"
] | null | null | null | QTProject/window.cc | jtorres6/MeshColors | bef99c377bbca9d35532d589d4b7434764fc9bd0 | [
"MIT"
] | null | null | null | /*! \file
* Copyright Domingo Martín Perandres
* email: dmartin@ugr.es
* web: http://calipso.ugr.es/dmartin
* 2003-2019
* GPL 3
*/
#include <QApplication>
#include <QAction>
#include <QMenuBar>
#include <QFrame>
#include <QWheelEvent>
#include <QPushButton>
#include <QLabel>
#include <QColorDialog>
#include <QS... | 29.504274 | 145 | 0.639146 | jtorres6 |
c78e552a8351b21e7df47a56c0c332f15d1396d0 | 164,196 | cpp | C++ | Source/Rhi/Private/NullRhi/NullRhi.cpp | cofenberg/unrimp | 90310657f106eb83f3a9688329b78619255a1042 | [
"MIT"
] | 187 | 2015-11-02T21:27:57.000Z | 2022-02-17T21:39:17.000Z | Source/Rhi/Private/NullRhi/NullRhi.cpp | cofenberg/unrimp | 90310657f106eb83f3a9688329b78619255a1042 | [
"MIT"
] | null | null | null | Source/Rhi/Private/NullRhi/NullRhi.cpp | cofenberg/unrimp | 90310657f106eb83f3a9688329b78619255a1042 | [
"MIT"
] | 20 | 2015-11-04T19:17:01.000Z | 2021-11-18T11:23:25.000Z | /*********************************************************\
* Copyright (c) 2012-2021 The Unrimp Team
*
* 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 wit... | 35.656026 | 501 | 0.587536 | cofenberg |
c790cdbe16a715901f6687178f94f780038ca323 | 2,945 | cpp | C++ | TAO/tests/Bug_2936_Regression/bug2936.cpp | cflowe/ACE | 5ff60b41adbe1772372d1a43bcc1f2726ff8f810 | [
"DOC"
] | 36 | 2015-01-10T07:27:33.000Z | 2022-03-07T03:32:08.000Z | TAO/tests/Bug_2936_Regression/bug2936.cpp | cflowe/ACE | 5ff60b41adbe1772372d1a43bcc1f2726ff8f810 | [
"DOC"
] | 2 | 2018-08-13T07:30:51.000Z | 2019-02-25T03:04:31.000Z | TAO/tests/Bug_2936_Regression/bug2936.cpp | cflowe/ACE | 5ff60b41adbe1772372d1a43bcc1f2726ff8f810 | [
"DOC"
] | 38 | 2015-01-08T14:12:06.000Z | 2022-01-19T08:33:00.000Z | // $Id: bug2936.cpp 96398 2012-11-28 07:33:51Z johnnyw $
#include "ace/Service_Config.h"
#include "ace/Log_Msg.h"
#include "ace/OS_NS_unistd.h"
char const * const scpc_orbId = "testDllOrb";
ACE_TCHAR const * const scpc_loadOrb = ACE_DYNAMIC_SERVICE_DIRECTIVE(
"testDllOrb",
"bug2936",
"_make_DllORB",
"testDll... | 22.142857 | 101 | 0.64584 | cflowe |
c79423b4a3e1f6d808ad197c16dd24e8336a8ac6 | 6,480 | cpp | C++ | examples/sobelfilter/xf_sobel_tb.cpp | lt23yuan/test | 5fe36b0d1dd5b182fc03b7849d53a88936331860 | [
"BSD-3-Clause"
] | null | null | null | examples/sobelfilter/xf_sobel_tb.cpp | lt23yuan/test | 5fe36b0d1dd5b182fc03b7849d53a88936331860 | [
"BSD-3-Clause"
] | null | null | null | examples/sobelfilter/xf_sobel_tb.cpp | lt23yuan/test | 5fe36b0d1dd5b182fc03b7849d53a88936331860 | [
"BSD-3-Clause"
] | null | null | null | /***************************************************************************
Copyright (c) 2016, Xilinx, 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:
1. Redistributions of source code must reta... | 31.609756 | 162 | 0.696914 | lt23yuan |
c798df2371f8e388642e9bdc05594fa4ca860514 | 223 | hpp | C++ | src/modules/osgManipulator/generated_code/Scale2DCommand.pypp.hpp | JaneliaSciComp/osgpyplusplus | a5ae3f69c7e9101a32d8cc95fe680dab292f75ac | [
"BSD-3-Clause"
] | 17 | 2015-06-01T12:19:46.000Z | 2022-02-12T02:37:48.000Z | src/modules/osgManipulator/generated_code/Scale2DCommand.pypp.hpp | cmbruns/osgpyplusplus | f8bfca2cf841e15f6ddb41c958f3ad0d0b9e4b75 | [
"BSD-3-Clause"
] | 7 | 2015-07-04T14:36:49.000Z | 2015-07-23T18:09:49.000Z | src/modules/osgManipulator/generated_code/Scale2DCommand.pypp.hpp | cmbruns/osgpyplusplus | f8bfca2cf841e15f6ddb41c958f3ad0d0b9e4b75 | [
"BSD-3-Clause"
] | 7 | 2015-11-28T17:00:31.000Z | 2020-01-08T07:00:59.000Z | // This file has been generated by Py++.
#ifndef Scale2DCommand_hpp__pyplusplus_wrapper
#define Scale2DCommand_hpp__pyplusplus_wrapper
void register_Scale2DCommand_class();
#endif//Scale2DCommand_hpp__pyplusplus_wrapper
| 24.777778 | 46 | 0.860987 | JaneliaSciComp |
c79a2d0280a7bd566deb803c269f52dde466fff2 | 5,714 | cpp | C++ | src/design_editor/reg/overriders/RelativeBoxes.cpp | TheMrButcher/opengl_lessons | 76ac96c45773a54a85d49c6994770b0c3496303f | [
"MIT"
] | 1 | 2016-10-25T21:15:16.000Z | 2016-10-25T21:15:16.000Z | src/design_editor/reg/overriders/RelativeBoxes.cpp | TheMrButcher/gamebase | 76ac96c45773a54a85d49c6994770b0c3496303f | [
"MIT"
] | 375 | 2016-06-04T11:27:40.000Z | 2019-04-14T17:11:09.000Z | src/design_editor/reg/overriders/RelativeBoxes.cpp | TheMrButcher/gamebase | 76ac96c45773a54a85d49c6994770b0c3496303f | [
"MIT"
] | null | null | null | /**
* Copyright (c) 2018 Slavnejshev Filipp
* This file is licensed under the terms of the MIT license.
*/
#include "RelativeBoxes.h"
#include "RelativeValueInUI.h"
#include <reg/tools.h>
#include <gamebase/impl/relpos/AligningOffset.h>
#include <gamebase/impl/relpos/FixedOffset.h>
namespace gamebase { namespace e... | 36.864516 | 99 | 0.681309 | TheMrButcher |
c79a7df374db07a684110a7de92e2ea78812528f | 554 | cpp | C++ | bloc/Ground.cpp | Dracks977/FDI-COBJ- | 349900d8d4c9b704e47aa9354b12cf95ce0e327d | [
"Apache-2.0"
] | null | null | null | bloc/Ground.cpp | Dracks977/FDI-COBJ- | 349900d8d4c9b704e47aa9354b12cf95ce0e327d | [
"Apache-2.0"
] | null | null | null | bloc/Ground.cpp | Dracks977/FDI-COBJ- | 349900d8d4c9b704e47aa9354b12cf95ce0e327d | [
"Apache-2.0"
] | null | null | null | //
// Ground.cpp for cpp in /home/annibal/cpp/cp_2/anniba_c/bloc
//
// Made by ANNIBAL Celine
// Login <anniba_c@etna-alternance.net>
//
// Started on Mon Feb 13 09:41:25 2017 ANNIBAL Celine
// Last update Tue Feb 14 09:54:38 2017 ANNIBAL Celine
//
#include "Ground.hh"
Ground::Ground(char x) : ABloc(x), ASteppabl... | 16.294118 | 68 | 0.66426 | Dracks977 |
c7a1da19b39165485552bd529a2039817930d4c5 | 16,051 | cpp | C++ | src/racer/pacejka/mrun.cpp | 3dhater/Racer | d7fe4014b1efefe981528547649dc397da7fa780 | [
"Unlicense"
] | null | null | null | src/racer/pacejka/mrun.cpp | 3dhater/Racer | d7fe4014b1efefe981528547649dc397da7fa780 | [
"Unlicense"
] | null | null | null | src/racer/pacejka/mrun.cpp | 3dhater/Racer | d7fe4014b1efefe981528547649dc397da7fa780 | [
"Unlicense"
] | 1 | 2021-01-03T16:16:47.000Z | 2021-01-03T16:16:47.000Z | /*
* Pacejka Player - visually checking Pacejka curves
* 02-04-01: Created!
* 16-10-01: Picked up the project again for some better editing.
* NOTES:
* (C) MarketGraph/RvG
*/
#include "main.h"
#pragma hdrstop
#include <d3/global.h>
#include <racer/pacejka.h>
#include <qlib/debug.h>
DEBUG_ENABLE
#define DRW ... | 22.767376 | 76 | 0.578406 | 3dhater |
c7a81945aff87e861add89a6e3e024632b3ef2ef | 301 | cpp | C++ | Assignments/capitabazi-solution.cpp | mobilal951/DSA-Bootcamp-Cpp | a6d073388998cad98447a0837dbc1fcf5bf8b4c2 | [
"MIT"
] | 1 | 2022-02-11T16:12:36.000Z | 2022-02-11T16:12:36.000Z | Assignments/capitabazi-solution.cpp | mobilal951/DSA-Bootcamp-Cpp | a6d073388998cad98447a0837dbc1fcf5bf8b4c2 | [
"MIT"
] | null | null | null | Assignments/capitabazi-solution.cpp | mobilal951/DSA-Bootcamp-Cpp | a6d073388998cad98447a0837dbc1fcf5bf8b4c2 | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
using namespace std;
int main() {
ios_base::sync_with_stdio(false);
cin.tie(NULL);
string c;
getline(cin, c);
for(int i=0;i<c.size();i++){
if( c[i] >= 'a' && c[i] <= 'z') cout<< (char)(c[i]-32);
else cout<<endl;
}
return 0;
}; | 15.842105 | 58 | 0.498339 | mobilal951 |
c7aba5c291c6435fba54eab0fff1e3e42d0a0ea9 | 1,403 | cpp | C++ | engine/collision/Collider.cpp | ohms83/GLRayTrace | 4a77049f0a41585727d47711a90287592667caf6 | [
"Unlicense"
] | null | null | null | engine/collision/Collider.cpp | ohms83/GLRayTrace | 4a77049f0a41585727d47711a90287592667caf6 | [
"Unlicense"
] | null | null | null | engine/collision/Collider.cpp | ohms83/GLRayTrace | 4a77049f0a41585727d47711a90287592667caf6 | [
"Unlicense"
] | null | null | null | #include "Collider.h"
#include <iostream>
Collider::Collider()
{
}
Collider::~Collider()
{
}
bool Collider::checkSphereCollision(const glm::vec3& center1, float radius1,
const glm::vec3& center2, float radius2)
{
float distance = glm::length(center1 - center2);
return dis... | 28.06 | 90 | 0.518888 | ohms83 |
c7af1185f6e464b77d81e37548999ec0e36b9520 | 11,345 | cpp | C++ | tests/restapi/test_rest_api_patch.cpp | jeptechnology/jude | 65f54da7a1b9edab985cb0bb7da30c37dc906fbc | [
"MIT"
] | null | null | null | tests/restapi/test_rest_api_patch.cpp | jeptechnology/jude | 65f54da7a1b9edab985cb0bb7da30c37dc906fbc | [
"MIT"
] | null | null | null | tests/restapi/test_rest_api_patch.cpp | jeptechnology/jude | 65f54da7a1b9edab985cb0bb7da30c37dc906fbc | [
"MIT"
] | null | null | null | #include <gtest/gtest.h>
#include <jude/restapi/jude_rest_api.h>
#include <algorithm>
#include <ctype.h>
#include "streams/mock_istream.h"
#include "streams/mock_ostream.h"
#include "autogen/alltypes_test/AllOptionalTypes.h"
#include "autogen/alltypes_test/AllRepeatedTypes.h"
using namespace std;
class RestApiPatchT... | 39.256055 | 173 | 0.65747 | jeptechnology |
c7b236b83ef964747711ab185db70ec3c00c6c76 | 1,076 | hpp | C++ | dometer/metrics/handler/prometheus/metric_cache.hpp | maxenglander/dometer | baf9ed81f9d1e8bb67750ac278af5a9e0c4b89b9 | [
"MIT"
] | null | null | null | dometer/metrics/handler/prometheus/metric_cache.hpp | maxenglander/dometer | baf9ed81f9d1e8bb67750ac278af5a9e0c4b89b9 | [
"MIT"
] | null | null | null | dometer/metrics/handler/prometheus/metric_cache.hpp | maxenglander/dometer | baf9ed81f9d1e8bb67750ac278af5a9e0c4b89b9 | [
"MIT"
] | null | null | null | #pragma once
#include "dometer/util/lru_map.hpp"
#include "prometheus/counter.h"
#include "prometheus/x/types.hpp"
namespace util = dometer::util;
namespace dometer::metrics::handler::prometheus {
class metric_cache
: public util::lru_map<::prometheus::x::AnyMetricPtr, ::prometheus::x::FamilyNameAnd... | 29.888889 | 114 | 0.605948 | maxenglander |
c7b2cceb971767f5ea1d92625e9dd859c5da3a1a | 2,379 | cpp | C++ | src/prod/src/Naming/EseStoreTestHelper.cpp | AnthonyM/service-fabric | c396ea918714ea52eab9c94fd62e018cc2e09a68 | [
"MIT"
] | 2,542 | 2018-03-14T21:56:12.000Z | 2019-05-06T01:18:20.000Z | src/prod/src/Naming/EseStoreTestHelper.cpp | AnthonyM/service-fabric | c396ea918714ea52eab9c94fd62e018cc2e09a68 | [
"MIT"
] | 994 | 2019-05-07T02:39:30.000Z | 2022-03-31T13:23:04.000Z | src/prod/src/Naming/EseStoreTestHelper.cpp | AnthonyM/service-fabric | c396ea918714ea52eab9c94fd62e018cc2e09a68 | [
"MIT"
] | 300 | 2018-03-14T21:57:17.000Z | 2019-05-06T20:07:00.000Z | // ------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License (MIT). See License.txt in the repo root for license information.
// ------------------------------------------------------------
#include "stdafx.h"
#include ... | 32.148649 | 134 | 0.474569 | AnthonyM |
c7b2f9c342e8d15f003bf9c159ae58f65a2797f0 | 2,235 | hpp | C++ | include/ip_list.hpp | MDFreak/md_util | 6f3f983f57b85199ab874b67a8b6b7a9dcf528c8 | [
"MIT"
] | null | null | null | include/ip_list.hpp | MDFreak/md_util | 6f3f983f57b85199ab874b67a8b6b7a9dcf528c8 | [
"MIT"
] | null | null | null | include/ip_list.hpp | MDFreak/md_util | 6f3f983f57b85199ab874b67a8b6b7a9dcf528c8 | [
"MIT"
] | null | null | null | /*************************************************************************
| Filename..............: ip_list.hpp
* Project...............: part of standard utilities
* Autor.................: Martin Dorfner (MD)
* Date .................: 20.11.2020
*-----------------------------------------------------------------... | 31.041667 | 100 | 0.462192 | MDFreak |
c7b3818a5639d4522e238f60bad4f20a49635289 | 2,183 | cpp | C++ | dev/RemotePC.QT/Server/UsersManager/DUsersManagerStub.cpp | androidNdk/iremote_copy | a0b263bed4d3664da7ce1a4e8adc93ea831e7fbf | [
"MIT"
] | 9 | 2016-04-11T14:58:52.000Z | 2021-10-08T21:58:24.000Z | dev/RemotePC.QT/Server/UsersManager/DUsersManagerStub.cpp | androidNdk/iremote_copy | a0b263bed4d3664da7ce1a4e8adc93ea831e7fbf | [
"MIT"
] | 1 | 2018-02-14T23:38:01.000Z | 2018-03-16T21:21:01.000Z | dev/RemotePC.QT/Server/UsersManager/DUsersManagerStub.cpp | androidNdk/iremote_copy | a0b263bed4d3664da7ce1a4e8adc93ea831e7fbf | [
"MIT"
] | 5 | 2015-07-06T09:17:01.000Z | 2020-02-10T06:30:23.000Z | /**
* Copyright (c) 2013 Egor Pushkin. All rights reserved.
*
* 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, cop... | 31.185714 | 85 | 0.722858 | androidNdk |
c7b3f5aebf2227960a03ca749fc3a03f51d6062a | 6,844 | cpp | C++ | fortune_weighted_points/algorithm/fortune.cpp | matheusdallrosa/voronoi-diagram-construction | 46c08f6aa24f5cff74978eb45014c511cb8a3abb | [
"MIT"
] | 2 | 2018-05-22T14:22:50.000Z | 2020-12-29T20:25:25.000Z | fortune_weighted_points/algorithm/fortune.cpp | matheusdallrosa/voronoi-diagram-construction | 46c08f6aa24f5cff74978eb45014c511cb8a3abb | [
"MIT"
] | null | null | null | fortune_weighted_points/algorithm/fortune.cpp | matheusdallrosa/voronoi-diagram-construction | 46c08f6aa24f5cff74978eb45014c511cb8a3abb | [
"MIT"
] | null | null | null | #include <stdio.h>
#include <math.h>
#include <algorithm>
#include <vector>
#include "common/floating_point.h"
#include "fortune_weighted_points/geom/hyperbole.h"
#include "fortune_weighted_points/geom/distance.h"
#include "inter_detector.h"
#include "inter_queue.h"
#include "boundary.h"
#include "status.h"
#includ... | 38.666667 | 126 | 0.68235 | matheusdallrosa |
c7b4ae8d784c9502673c855f4b2675a7bb7b8fa4 | 318 | cpp | C++ | src/logging/abstract_logger.cpp | AndrSar/scgicxx | 7ef793fd245ea8b629eb966fc1f3466c29c914e7 | [
"BSL-1.0"
] | null | null | null | src/logging/abstract_logger.cpp | AndrSar/scgicxx | 7ef793fd245ea8b629eb966fc1f3466c29c914e7 | [
"BSL-1.0"
] | null | null | null | src/logging/abstract_logger.cpp | AndrSar/scgicxx | 7ef793fd245ea8b629eb966fc1f3466c29c914e7 | [
"BSL-1.0"
] | null | null | null | #include "../include/logging/abstract_logger.hpp"
namespace scgicxx
{
namespace logging
{
abstract_logger::abstract_logger(level_enum level) : level(level)
{
}
level_enum abstract_logger::get_level() const
{
return level;
}
void abstract_logger::set_level(level_enum level)
{
this->level = level;
}
}
} | 12.230769 | 65 | 0.732704 | AndrSar |
c7c10c8eb480e3d3656b4b9480a53d2868293798 | 1,072 | hpp | C++ | src/core/material.hpp | AndreJFBico/RadRts_BGFX | c8d37d95e68e2fc2b3db09a94f2817533e4aa700 | [
"MIT"
] | null | null | null | src/core/material.hpp | AndreJFBico/RadRts_BGFX | c8d37d95e68e2fc2b3db09a94f2817533e4aa700 | [
"MIT"
] | null | null | null | src/core/material.hpp | AndreJFBico/RadRts_BGFX | c8d37d95e68e2fc2b3db09a94f2817533e4aa700 | [
"MIT"
] | null | null | null | #pragma once
#include <functional>
#include <variant>
#include <bgfx/bgfx.h>
#include "materials/wireframe.hpp"
#include "materials/texture.hpp"
// Base where all the material types rely upon
struct Material {
using MaterialCustomContent = std::variant<wireframe::Wireframe, Texture>;
using MaterialFunctor =... | 30.628571 | 95 | 0.718284 | AndreJFBico |
c7c44a6abbdcbf6bb15047f5fe72ad6b7b8a165e | 2,154 | cpp | C++ | source/directinput/MouseState.cpp | HeavenWu/slimdx | e014bb34b89bbf694d01c8f6d6b6dfa3cba58aac | [
"MIT"
] | 85 | 2015-04-06T05:37:10.000Z | 2022-03-22T19:53:03.000Z | source/directinput/MouseState.cpp | HeavenWu/slimdx | e014bb34b89bbf694d01c8f6d6b6dfa3cba58aac | [
"MIT"
] | 10 | 2016-03-17T11:18:24.000Z | 2021-05-11T09:21:43.000Z | source/directinput/MouseState.cpp | HeavenWu/slimdx | e014bb34b89bbf694d01c8f6d6b6dfa3cba58aac | [
"MIT"
] | 45 | 2015-09-14T03:54:01.000Z | 2022-03-22T19:53:09.000Z | #include "stdafx.h"
/*
* Copyright (c) 2007-2012 SlimDX Group
*
* 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, ... | 27.615385 | 80 | 0.675487 | HeavenWu |
c7c8e1eb09250e5bbe96bb11c05c1f31774a8719 | 2,299 | hpp | C++ | NightEngine2/src/Core/Message/MessageObjectList.hpp | rittikornt/NightEngine2 | 14004b48d1708736373010a3fe47d05d876e0baa | [
"MIT"
] | 2 | 2020-03-09T06:24:46.000Z | 2022-02-04T23:09:23.000Z | NightEngine2/src/Core/Message/MessageObjectList.hpp | rittikornt/NightEngine2 | 14004b48d1708736373010a3fe47d05d876e0baa | [
"MIT"
] | null | null | null | NightEngine2/src/Core/Message/MessageObjectList.hpp | rittikornt/NightEngine2 | 14004b48d1708736373010a3fe47d05d876e0baa | [
"MIT"
] | 2 | 2020-09-07T03:04:36.000Z | 2022-02-04T23:09:24.000Z | /*!
@file MessageObjectList.hpp
@author Rittikorn Tangtrongchit
@brief Contain the Interface of MessageObjectList
*/
#pragma once
#include <sstream>
#include <glm/vec3.hpp>
#include "Core/Message/MessageObject.hpp"
#include "Core/Message/MessageTypeEnum.hpp" //Enum List
namespace NightEngine
{
struct TestMes... | 22.320388 | 95 | 0.717268 | rittikornt |
c7cf2b1dd64353d0c655ce2615b7facda498a300 | 7,604 | cpp | C++ | GraphHPC/mst_reference_mpi.cpp | zaic/mst | 455134f212c597da85aaa5fac1ff6ce87982b04d | [
"MIT"
] | null | null | null | GraphHPC/mst_reference_mpi.cpp | zaic/mst | 455134f212c597da85aaa5fac1ff6ce87982b04d | [
"MIT"
] | null | null | null | GraphHPC/mst_reference_mpi.cpp | zaic/mst | 455134f212c597da85aaa5fac1ff6ce87982b04d | [
"MIT"
] | null | null | null | #include <vector>
#include <mpi.h>
#include <float.h>
#include <stdlib.h>
#include <assert.h>
#include "defs.h"
#define UINT32_MAX (0xffffffff)
using namespace std;
/* returns global number of edge */
edge_id_t edge_to_global(edge_id_t edge, graph_t *G) {
int rank = G->rank;
int size = G->nproc;
edge_id_t... | 38.795918 | 136 | 0.555234 | zaic |
c7d20952e1aa470763b449627804d6af76cf7fbd | 1,716 | cpp | C++ | include/types/has_interface.cpp | nathanmullenax83/rhizome | e7410341fdc4d38ab5aaecc55c94d3ac6efd51da | [
"MIT"
] | 1 | 2020-07-11T14:53:38.000Z | 2020-07-11T14:53:38.000Z | include/types/has_interface.cpp | nathanmullenax83/rhizome | e7410341fdc4d38ab5aaecc55c94d3ac6efd51da | [
"MIT"
] | 1 | 2020-07-04T16:45:49.000Z | 2020-07-04T16:45:49.000Z | include/types/has_interface.cpp | nathanmullenax83/rhizome | e7410341fdc4d38ab5aaecc55c94d3ac6efd51da | [
"MIT"
] | null | null | null | #include "has_interface.hpp"
namespace rhizome {
namespace types {
HasInterface::HasInterface( string const &name )
: interface_name(name) {
}
bool
HasInterface::contains( Thing *t ) const {
return t->has_interface(interface_name);
}
// Thing ... | 28.6 | 85 | 0.501748 | nathanmullenax83 |
c7d37d2de0058f78f0b09da1d2a593349c99160a | 7,889 | cpp | C++ | mp/src/game/server/hl1/hl1_monstermaker.cpp | tyabus/source-sdk-2013-hl1dm | b500739c541232bceea77d5d10da085c05f34633 | [
"Unlicense"
] | 4 | 2021-10-03T05:16:55.000Z | 2021-12-28T16:49:27.000Z | tf2_src/game/server/hl1/hl1_monstermaker.cpp | Counter2828/TeamFortress2 | 1b81dded673d49adebf4d0958e52236ecc28a956 | [
"MIT"
] | null | null | null | tf2_src/game/server/hl1/hl1_monstermaker.cpp | Counter2828/TeamFortress2 | 1b81dded673d49adebf4d0958e52236ecc28a956 | [
"MIT"
] | 3 | 2022-02-02T18:09:58.000Z | 2022-03-06T18:54:39.000Z | //========= Copyright Valve Corporation, All rights reserved. ============//
//
// Purpose: An entity that creates NPCs in the game.
//
//=============================================================================//
#include "cbase.h"
#include "entityapi.h"
#include "entityoutput.h"
#include "ai_basenpc.h"
#include... | 26.742373 | 134 | 0.489416 | tyabus |
c7d6c18cd3a50d10dc89e7ef771035c2ae813d05 | 1,714 | hpp | C++ | src/Dusk/Graphics/Sprite.hpp | WhoBrokeTheBuild/Dusk-mk2 | 7326fdd60d398ad7d90243eb33eab6428df59c5e | [
"MIT"
] | null | null | null | src/Dusk/Graphics/Sprite.hpp | WhoBrokeTheBuild/Dusk-mk2 | 7326fdd60d398ad7d90243eb33eab6428df59c5e | [
"MIT"
] | null | null | null | src/Dusk/Graphics/Sprite.hpp | WhoBrokeTheBuild/Dusk-mk2 | 7326fdd60d398ad7d90243eb33eab6428df59c5e | [
"MIT"
] | null | null | null | #ifndef DUSK_GRAPHICS_SPRITE_HPP
#define DUSK_GRAPHICS_SPRITE_HPP
#include <Dusk/Config.hpp>
#include <Dusk/Graphics/Actor.hpp>
#include <Dusk/Graphics/Texture.hpp>
#include <Dusk/Geometry/Rect.hpp>
#include <Dusk/Geometry/Vector2.hpp>
#include <Dusk/Scripting/Scripting.hpp>
#include <Dusk/Types.hpp>
#include <SFML/G... | 28.566667 | 98 | 0.732789 | WhoBrokeTheBuild |
c7d85acbae86781f0222764777ee57a817799559 | 10,458 | cpp | C++ | net/socket_lib_old_bound_io_thread.cpp | AlexRuzin/CPP_API | 404e2c298244e0e29cf06b8e1def4ed59a149cb2 | [
"MIT"
] | 14 | 2018-01-04T18:30:59.000Z | 2021-07-07T15:15:15.000Z | net/socket_lib_old_bound_io_thread.cpp | AlexRuzin/CPP_API | 404e2c298244e0e29cf06b8e1def4ed59a149cb2 | [
"MIT"
] | null | null | null | net/socket_lib_old_bound_io_thread.cpp | AlexRuzin/CPP_API | 404e2c298244e0e29cf06b8e1def4ed59a149cb2 | [
"MIT"
] | 6 | 2018-08-31T03:45:43.000Z | 2019-06-05T02:55:46.000Z | #define _WINSOCKAPI_
#include <WinSock2.h>
#include <Windows.h>
#include <vector>
#include "socket_lib.h"
#include "../../_api/common/mem.h"
#include "../../_api/common/str.h"
#include "../../_api/api.h"
#pragma comment (lib, "ws2_32.lib")
using namespace socket_tools;
socket_tools::SOCKET_THREAD_ENTRY __st_thre... | 27.163636 | 120 | 0.710461 | AlexRuzin |
939e5568e4197e373801c2f960027543e96bf9d9 | 2,365 | cpp | C++ | sample/EC_SDK_Demo/APP_UI/code/src/Meeting/DemoMeetingJoinDlg.cpp | Huawei/CloudEC_Client_API_Demo_Windows_C | bde3c0f43c533a76cc93de7247967484cb303a69 | [
"Apache-2.0"
] | 1 | 2018-10-21T01:35:53.000Z | 2018-10-21T01:35:53.000Z | sample/EC_SDK_Demo/APP_UI/code/src/Meeting/DemoMeetingJoinDlg.cpp | Huawei/CloudEC_Client_API_Demo_Windows_C | bde3c0f43c533a76cc93de7247967484cb303a69 | [
"Apache-2.0"
] | null | null | null | sample/EC_SDK_Demo/APP_UI/code/src/Meeting/DemoMeetingJoinDlg.cpp | Huawei/CloudEC_Client_API_Demo_Windows_C | bde3c0f43c533a76cc93de7247967484cb303a69 | [
"Apache-2.0"
] | 2 | 2018-10-21T01:35:56.000Z | 2019-11-06T03:04:02.000Z | //
// DemoMeetingJoinDlg.cpp
// EC_SDK_DEMO
//
// Created by EC Open support team.
// Copyright(C), 2018, Huawei Tech. Co., Ltd. ALL RIGHTS RESERVED.
//
#include "stdafx.h"
#include "DemoMeetingJoinDlg.h"
#include "DemoApp.h"
#include "DemoMainDlg.h"
#include "DemoCommonTools.h"
#include "service_conf... | 27.823529 | 90 | 0.718816 | Huawei |
939ff9a9b13179a6049d2b2b4c15ed1d7191183b | 37,264 | cxx | C++ | main/dbaccess/source/filter/xml/xmlfilter.cxx | Grosskopf/openoffice | 93df6e8a695d5e3eac16f3ad5e9ade1b963ab8d7 | [
"Apache-2.0"
] | 679 | 2015-01-06T06:34:58.000Z | 2022-03-30T01:06:03.000Z | main/dbaccess/source/filter/xml/xmlfilter.cxx | Grosskopf/openoffice | 93df6e8a695d5e3eac16f3ad5e9ade1b963ab8d7 | [
"Apache-2.0"
] | 102 | 2017-11-07T08:51:31.000Z | 2022-03-17T12:13:49.000Z | main/dbaccess/source/filter/xml/xmlfilter.cxx | Grosskopf/openoffice | 93df6e8a695d5e3eac16f3ad5e9ade1b963ab8d7 | [
"Apache-2.0"
] | 331 | 2015-01-06T11:40:55.000Z | 2022-03-14T04:07:51.000Z | /**************************************************************
*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to y... | 38.102249 | 203 | 0.647112 | Grosskopf |
93a2de848588a3caffc0c42210ebba7706538fbc | 1,213 | cpp | C++ | ext/libigl/external/cgal/src/CGAL_Project/examples/Polygon_mesh_processing/self_intersections_example.cpp | liminchen/OptCuts | cb85b06ece3a6d1279863e26b5fd17a5abb0834d | [
"MIT"
] | 187 | 2019-01-23T04:07:11.000Z | 2022-03-27T03:44:58.000Z | ext/libigl/external/cgal/src/CGAL_Project/examples/Polygon_mesh_processing/self_intersections_example.cpp | xiaoxie5002/OptCuts | 1f4168fc867f47face85fcfa3a572be98232786f | [
"MIT"
] | 8 | 2019-03-22T13:27:38.000Z | 2020-06-18T13:23:23.000Z | ext/libigl/external/cgal/src/CGAL_Project/examples/Polygon_mesh_processing/self_intersections_example.cpp | xiaoxie5002/OptCuts | 1f4168fc867f47face85fcfa3a572be98232786f | [
"MIT"
] | 34 | 2019-02-13T01:11:12.000Z | 2022-02-28T03:29:40.000Z | #include <CGAL/Exact_predicates_inexact_constructions_kernel.h>
#include <CGAL/Surface_mesh.h>
#include <CGAL/Polygon_mesh_processing/self_intersections.h>
#include <fstream>
typedef CGAL::Exact_predicates_inexact_constructions_kernel K;
typedef CGAL::Surface_mesh<K::Point_3> Mesh;
typedef boost::graph_t... | 30.325 | 90 | 0.710635 | liminchen |
93a33d608375d1a8f2b52070446a28d86e8ebff7 | 1,896 | cc | C++ | src/main.cc | sidheswar12/opengl_cube_triangle | 1ed52bddff2b3cecce3476fb338769c9f01b1035 | [
"MIT"
] | 1 | 2020-04-25T14:41:56.000Z | 2020-04-25T14:41:56.000Z | src/main.cc | sidheswar12/opengl_cube_triangle | 1ed52bddff2b3cecce3476fb338769c9f01b1035 | [
"MIT"
] | null | null | null | src/main.cc | sidheswar12/opengl_cube_triangle | 1ed52bddff2b3cecce3476fb338769c9f01b1035 | [
"MIT"
] | null | null | null |
#include <iostream>
#include <bits/stdc++.h>
#include <vector>
#include "cube.h"
#include "triangle.h"
#include "rotatecube.h"
#include "readImage.h"
#include "listDirectory.h"
#include <IL/il.h>
using namespace std;
int main(int argc, char **argv)
{
if( argc!=3)
{
cout<<"Usage: Ple... | 25.28 | 94 | 0.503692 | sidheswar12 |
93a6f07a625009e6086938069f03b462a55635f7 | 896 | cpp | C++ | ConsoleApplication14/ConsoleApplication14/ConsoleApplication14.cpp | Hramkanvas/needandnotneed | f28ef4a4be428370e2148883c06126f5be9ccd4e | [
"MIT"
] | 1 | 2019-12-28T13:57:09.000Z | 2019-12-28T13:57:09.000Z | ConsoleApplication14/ConsoleApplication14/ConsoleApplication14.cpp | Hramkanvas/needandnotneed | f28ef4a4be428370e2148883c06126f5be9ccd4e | [
"MIT"
] | null | null | null | ConsoleApplication14/ConsoleApplication14/ConsoleApplication14.cpp | Hramkanvas/needandnotneed | f28ef4a4be428370e2148883c06126f5be9ccd4e | [
"MIT"
] | null | null | null | // ConsoleApplication14.cpp : Defines the entry point for the console application.
//
#include "stdafx.h"
#include <iostream>
#include <cmath>
#include <math.h>
using namespace std;
int mxdiflg(
const char **firstArray, size_t firstArrayLength,
const char **secondArray, size_t secondArrayLength)
{
int xMax = 0, yM... | 22.4 | 83 | 0.626116 | Hramkanvas |
93a786cab0c9f01d2d6ea2450932ee20dcd9ea70 | 2,835 | cpp | C++ | src/simulator/memory/sram/sram6t_cell.cpp | JamalMulla/JSS | 35d5669e9b76505da7250c62671432f9c0003be3 | [
"MIT"
] | 2 | 2021-12-09T22:37:27.000Z | 2021-12-09T22:37:35.000Z | src/simulator/memory/sram/sram6t_cell.cpp | JamalMulla/JSS | 35d5669e9b76505da7250c62671432f9c0003be3 | [
"MIT"
] | null | null | null | src/simulator/memory/sram/sram6t_cell.cpp | JamalMulla/JSS | 35d5669e9b76505da7250c62671432f9c0003be3 | [
"MIT"
] | 1 | 2021-05-22T13:14:35.000Z | 2021-05-22T13:14:35.000Z | //
// Created by jm1417 on 08/02/2021.
//
#include "simulator/memory/sram6t_cell.h"
#include <opencv2/core.hpp>
#include "simulator/base/config.h"
void Sram6tCell::init() {
process_node_ = 180;
internal_mask = cv::Mat(rows_, cols_, CV_8U, cv::Scalar(0));
#ifdef TRACK_STATISTICS
transistor_count_ = calc_... | 28.35 | 136 | 0.718166 | JamalMulla |
93b2cace6c42eb54077548e5a420ef9e9ac8ca7e | 6,206 | cpp | C++ | sussit.cpp | csaether/sussit | 6471af56b0dea8ffb7d84a5c063d10e3e9b00d9d | [
"BSD-3-Clause-Clear"
] | null | null | null | sussit.cpp | csaether/sussit | 6471af56b0dea8ffb7d84a5c063d10e3e9b00d9d | [
"BSD-3-Clause-Clear"
] | null | null | null | sussit.cpp | csaether/sussit | 6471af56b0dea8ffb7d84a5c063d10e3e9b00d9d | [
"BSD-3-Clause-Clear"
] | null | null | null | // sussit.cpp : Defines the entry point for the console application.
//
#include "stdafx.h"
#include <string.h>
#include <errno.h>
#include <sys/wait.h>
#ifdef WIN32
int _tmain(int argc,
_TCHAR* argv[])
#else
int main(int argc,
char *argv[])
#endif
// <directory> [p | pr | pc | r | ... | 27.954955 | 103 | 0.488398 | csaether |
93b364e546c6427a82673472cd7e7d5f630b721d | 5,198 | hpp | C++ | include/siplasplas/reflection/parser/api/core/clang/diagnostic.hpp | roscopecoltran/siplasplas | 9fae7559f87087cf8ef34f04bd1e774b84b2ea9c | [
"MIT"
] | 182 | 2016-07-19T19:31:47.000Z | 2022-02-22T13:54:25.000Z | include/siplasplas/reflection/parser/api/core/clang/diagnostic.hpp | roscopecoltran/siplasplas | 9fae7559f87087cf8ef34f04bd1e774b84b2ea9c | [
"MIT"
] | 50 | 2016-07-13T16:49:31.000Z | 2018-06-15T13:39:49.000Z | include/siplasplas/reflection/parser/api/core/clang/diagnostic.hpp | GueimUCM/ceplusplus | 9fae7559f87087cf8ef34f04bd1e774b84b2ea9c | [
"MIT"
] | 26 | 2015-12-14T11:35:41.000Z | 2022-02-22T19:13:48.000Z | #ifndef SIPLASPLAS_REFLECTION_PARSER_CORE_CLANG_DIAGNOSTIC_HPP
#define SIPLASPLAS_REFLECTION_PARSER_CORE_CLANG_DIAGNOSTIC_HPP
#include <clang-c/Index.h>
#include "handle.hpp"
#include "string.hpp"
#include <siplasplas/reflection/parser/api/core/clang/export.hpp>
#include "handleentity.hpp"
namespace cpp
{
namespace ... | 30.22093 | 172 | 0.690843 | roscopecoltran |
93b7b5d43683b610bc14bf8cc044005e031d8e14 | 783 | cpp | C++ | WRK-V1.2/TOOLS/crt/src/cin.cpp | intj-t/openvmsft | 0d17fbce8607ab2b880be976c2e86d8cfc3e83bb | [
"Intel"
] | null | null | null | WRK-V1.2/TOOLS/crt/src/cin.cpp | intj-t/openvmsft | 0d17fbce8607ab2b880be976c2e86d8cfc3e83bb | [
"Intel"
] | null | null | null | WRK-V1.2/TOOLS/crt/src/cin.cpp | intj-t/openvmsft | 0d17fbce8607ab2b880be976c2e86d8cfc3e83bb | [
"Intel"
] | null | null | null | // cin -- initialize standard input stream
#include <fstream>
#include <iostream>
#pragma warning(disable: 4074)
#pragma init_seg(compiler)
static std::_Init_locks initlocks;
_STD_BEGIN
// OBJECT DECLARATIONS
__PURE_APPDOMAIN_GLOBAL static filebuf fin(_cpp_stdin);
__PURE_APPDOMAIN_GLOBAL extern _CRTDATA2 istream ... | 21.75 | 65 | 0.754789 | intj-t |
93b831781e97af174ec8a26f9af1d365d6ad7ea4 | 4,750 | cpp | C++ | Source/UEImgui/Private/ImguiWrap/ImguiResourceManager.cpp | ZhuRong-HomoStation/UEImgui | a4cf1fb940d3898a3ed6c48648f8ab2e6739975a | [
"MIT"
] | 36 | 2020-12-25T05:57:39.000Z | 2022-03-15T16:09:16.000Z | Source/UEImgui/Private/ImguiWrap/ImguiResourceManager.cpp | zhurongjun/UEImgui | a4cf1fb940d3898a3ed6c48648f8ab2e6739975a | [
"MIT"
] | 11 | 2020-12-31T14:03:14.000Z | 2021-03-05T07:19:06.000Z | Source/UEImgui/Private/ImguiWrap/ImguiResourceManager.cpp | zhurongjun/UEImgui | a4cf1fb940d3898a3ed6c48648f8ab2e6739975a | [
"MIT"
] | 10 | 2020-12-24T07:14:38.000Z | 2022-03-15T06:45:08.000Z | #include "ImguiWrap/ImguiResourceManager.h"
#include "imgui.h"
#include "Logging.h"
#include "Config/ImguiConfig.h"
#include "ImguiWrap/ImguiContext.h"
#include "Slate/SlateTextureAtlasInterface.h"
FImguiResource::FImguiResource(const FName& InName, UTexture* SourceObject)
: Name(InName)
, Source(SourceObject)
{
c... | 28.787879 | 124 | 0.762737 | ZhuRong-HomoStation |
93bc62aad3e862b55661de0c9a3e14edc8cefffe | 411 | cpp | C++ | RangeQueries/RangeUpdateQueries/short_m.cpp | 0x5eba/CSES-solutions | c18b66262f5dbef44b58d793f5185c3d0cf3a77c | [
"MIT"
] | 27 | 2019-12-23T21:20:00.000Z | 2022-02-06T04:28:27.000Z | RangeQueries/RangeUpdateQueries/short_m.cpp | 0x5eba/CSES-solutions | c18b66262f5dbef44b58d793f5185c3d0cf3a77c | [
"MIT"
] | 2 | 2020-04-14T21:40:43.000Z | 2020-09-06T11:15:42.000Z | RangeQueries/RangeUpdateQueries/short_m.cpp | 0x5eba/CSES-solutions | c18b66262f5dbef44b58d793f5185c3d0cf3a77c | [
"MIT"
] | 9 | 2020-05-22T08:00:29.000Z | 2021-09-14T09:01:58.000Z | #include<iostream>
using namespace std;typedef long long ll;ll t[10000000];int N,Q,v,q,l,z,u,a;
ll query(int r){ll s=0;for(;r>=0;r=(r&(r+1))-1)s+=t[r];return s;}
void update(int i,int m){for(;i<N;i=i|(i+1))t[i]+=m;}
int main(){cin>>N>>Q;for(a=0;a<N;++a){cin>>v;update(a,v);update(a+1,-v);}for(a=0;a<Q;++a){cin>>q;if(q==1... | 82.2 | 195 | 0.579075 | 0x5eba |
93bdb02753841f4a453f0a068372e893379bcf3d | 2,860 | cc | C++ | test/TestGenomicRange.cc | yiq/SubcloneSeeker | e01e9bc8425899581d64edc491461f65c9f7e0b0 | [
"MIT"
] | 7 | 2015-04-28T04:42:08.000Z | 2022-02-02T10:39:44.000Z | test/TestGenomicRange.cc | yiq/SubcloneSeeker | e01e9bc8425899581d64edc491461f65c9f7e0b0 | [
"MIT"
] | 1 | 2018-12-27T07:45:04.000Z | 2018-12-27T07:45:04.000Z | test/TestGenomicRange.cc | yiq/SubcloneSeeker | e01e9bc8425899581d64edc491461f65c9f7e0b0 | [
"MIT"
] | 5 | 2015-02-25T02:47:49.000Z | 2019-11-25T10:16:08.000Z | /**
* @file Unit tests for class GenomicLocation
*
* @see GenomicLocation
* @author Yi Qiao
*/
/*
The MIT License (MIT)
Copyright (c) 2013 Yi Qiao
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 Sof... | 23.636364 | 77 | 0.686713 | yiq |
93bf279a4b02823d7bf2d21a84dce6e5d64c2731 | 234 | cpp | C++ | Source/Minigold/Minigold.cpp | Entalpi/unreal-project | 71de6292591f45a0855f90a0da5d13a48caabfaa | [
"MIT"
] | null | null | null | Source/Minigold/Minigold.cpp | Entalpi/unreal-project | 71de6292591f45a0855f90a0da5d13a48caabfaa | [
"MIT"
] | null | null | null | Source/Minigold/Minigold.cpp | Entalpi/unreal-project | 71de6292591f45a0855f90a0da5d13a48caabfaa | [
"MIT"
] | null | null | null | // Copyright 1998-2019 Epic Games, Inc. All Rights Reserved.
#include "Minigold.h"
#include "Modules/ModuleManager.h"
IMPLEMENT_PRIMARY_GAME_MODULE( FDefaultGameModuleImpl, Minigold, "Minigold" );
DEFINE_LOG_CATEGORY(LogMinigold)
| 26 | 78 | 0.799145 | Entalpi |
93bf28aee7c2c78c4d286ab4c84f4d78140e7a47 | 29,635 | cpp | C++ | src/game/server/swarm/asw_squadformation.cpp | BlueNovember/alienswarm-reactivedrop | ffaca58157f9fdd36e5c48e8d7d34d8ca958017e | [
"CC0-1.0"
] | null | null | null | src/game/server/swarm/asw_squadformation.cpp | BlueNovember/alienswarm-reactivedrop | ffaca58157f9fdd36e5c48e8d7d34d8ca958017e | [
"CC0-1.0"
] | null | null | null | src/game/server/swarm/asw_squadformation.cpp | BlueNovember/alienswarm-reactivedrop | ffaca58157f9fdd36e5c48e8d7d34d8ca958017e | [
"CC0-1.0"
] | null | null | null | #include "cbase.h"
#include "asw_marine.h"
#include "asw_marine_profile.h"
#include "ai_hint.h"
#include "asw_marine_hint.h"
#include "asw_weapon_healgrenade_shared.h"
#include "asw_shieldbug.h"
#include "asw_boomer_blob.h"
#include "ai_network.h"
#include "triggers.h"
// memdbgon must be the last include f... | 31.161935 | 203 | 0.649671 | BlueNovember |
93ca2e05aed8828a593a45c7365891fb06507dcf | 426 | hpp | C++ | ZumoKit/NativeLibs/universal/include/card_callback.hpp | zumo/zumokit-ios | 6981dbeaec723262c400d5b3872ace2e08f17997 | [
"MIT"
] | null | null | null | ZumoKit/NativeLibs/universal/include/card_callback.hpp | zumo/zumokit-ios | 6981dbeaec723262c400d5b3872ace2e08f17997 | [
"MIT"
] | null | null | null | ZumoKit/NativeLibs/universal/include/card_callback.hpp | zumo/zumokit-ios | 6981dbeaec723262c400d5b3872ace2e08f17997 | [
"MIT"
] | null | null | null | // AUTOGENERATED FILE - DO NOT MODIFY!
// This file generated by Djinni from user.djinni
#pragma once
#include "exceptions.hpp"
namespace zumo {
struct Card;
/** Callback interface used by methods in User class. */
class CardCallback {
public:
virtual ~CardCallback() {}
virtual void on_error(const ::zumo:... | 18.521739 | 66 | 0.697183 | zumo |
93ca6241ad4d403fa0bc94d84106af5665e3047b | 392 | cpp | C++ | Server/HttpHandlerHolder/HttpHandlerHolder.cpp | Dnnd/tp-http-server | ef76152ac740227c09c6a073aaa5858e36a4b536 | [
"MIT"
] | 1 | 2019-02-12T12:45:28.000Z | 2019-02-12T12:45:28.000Z | Server/HttpHandlerHolder/HttpHandlerHolder.cpp | Dnnd/tp-http-server | ef76152ac740227c09c6a073aaa5858e36a4b536 | [
"MIT"
] | null | null | null | Server/HttpHandlerHolder/HttpHandlerHolder.cpp | Dnnd/tp-http-server | ef76152ac740227c09c6a073aaa5858e36a4b536 | [
"MIT"
] | null | null | null | #include <QtNetwork/QTcpSocket>
#include "HttpHandlerHolder.h"
#include "../HttpHandler/HttpHandler.h"
Handler *HttpHandlerHolder::createHandler(QTcpSocket *socket, QObject *parent) const {
Handler *handler = new HttpHandler(documentRoot_, socket, parent);
return handler;
}
HttpHandlerHolder::HttpHandlerHolde... | 28 | 86 | 0.772959 | Dnnd |
93d02202e8fe7f3a088b7b77831cd67cb2d441d9 | 31 | cpp | C++ | Inheritance/MyLowestClass.cpp | joshy409/Code-Design-and-Data-Structures | 7c095242fe0dc0c6b0319dc07ac4c99b4c6d204f | [
"MIT"
] | null | null | null | Inheritance/MyLowestClass.cpp | joshy409/Code-Design-and-Data-Structures | 7c095242fe0dc0c6b0319dc07ac4c99b4c6d204f | [
"MIT"
] | null | null | null | Inheritance/MyLowestClass.cpp | joshy409/Code-Design-and-Data-Structures | 7c095242fe0dc0c6b0319dc07ac4c99b4c6d204f | [
"MIT"
] | null | null | null | #include "MyLowestClass.h"
| 5.166667 | 26 | 0.677419 | joshy409 |
93d02a96652b15c9de8bc5a4745afb5ad6d538f2 | 1,686 | cpp | C++ | 1021.cpp | YukiMuraRindon/LeetcodePractice | 3c9f84b677e4bc7be1d6b54009768d25536c4c12 | [
"MIT"
] | null | null | null | 1021.cpp | YukiMuraRindon/LeetcodePractice | 3c9f84b677e4bc7be1d6b54009768d25536c4c12 | [
"MIT"
] | null | null | null | 1021.cpp | YukiMuraRindon/LeetcodePractice | 3c9f84b677e4bc7be1d6b54009768d25536c4c12 | [
"MIT"
] | null | null | null | /*
有效括号字符串为空 ("")、"(" + A + ")" 或 A + B,其中 A 和 B 都是有效的括号字符串,+ 代表字符串的连接。例如,"","()","(())()" 和 "(()(()))" 都是有效的括号字符串。
如果有效字符串 S 非空,且不存在将其拆分为 S = A+B 的方法,我们称其为原语(primitive),其中 A 和 B 都是非空有效括号字符串。
给出一个非空有效字符串 S,考虑将其进行原语化分解,使得:S = P_1 + P_2 + ... + P_k,其中 P_i 是有效括号字符串原语。
对 S 进行原语化分解,删除分解中每个原语字符串的最外层括号,返回 S 。
示例 1:
输入... | 19.37931 | 112 | 0.467378 | YukiMuraRindon |
93d4faf09855451a3c698d5326ec5c5b5a845825 | 1,208 | cpp | C++ | scsdk/c++/scsdk_test/standard_cyborg/io/pbio/PlanePBIOTest.cpp | StandardCyborg/scsdk | 92f80bf2a580ebaafa6b0d1052d90d5c8f6682f7 | [
"Apache-2.0"
] | 7 | 2020-11-26T01:07:26.000Z | 2021-12-14T07:45:19.000Z | scsdk/c++/scsdk_test/standard_cyborg/io/pbio/PlanePBIOTest.cpp | StandardCyborg/scsdk | 92f80bf2a580ebaafa6b0d1052d90d5c8f6682f7 | [
"Apache-2.0"
] | null | null | null | scsdk/c++/scsdk_test/standard_cyborg/io/pbio/PlanePBIOTest.cpp | StandardCyborg/scsdk | 92f80bf2a580ebaafa6b0d1052d90d5c8f6682f7 | [
"Apache-2.0"
] | null | null | null | /*
Copyright 2020 Standard Cyborg
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 writing, sof... | 24.16 | 78 | 0.730132 | StandardCyborg |
93d74d5d46700833a72a4416b64d3d05d998fa18 | 6,856 | cpp | C++ | ODFAEG/src/odfaeg/Core/utilities.cpp | Mechap/ODFAEG | ad4bf026ee7055aaf168c5a8e3dc57baaaf42e40 | [
"Zlib"
] | null | null | null | ODFAEG/src/odfaeg/Core/utilities.cpp | Mechap/ODFAEG | ad4bf026ee7055aaf168c5a8e3dc57baaaf42e40 | [
"Zlib"
] | 1 | 2020-02-14T14:19:44.000Z | 2020-12-04T17:39:17.000Z | ODFAEG/src/odfaeg/Core/utilities.cpp | Mechap/ODFAEG | ad4bf026ee7055aaf168c5a8e3dc57baaaf42e40 | [
"Zlib"
] | 2 | 2021-05-23T13:45:28.000Z | 2021-07-24T13:36:13.000Z | #include "../../../include/odfaeg/Core/utilities.h"
#include <iostream>
#include <filesystem>
namespace odfaeg {
namespace core {
using namespace std;
using namespace sf;
std::vector<std::string> split(const std::string& stringToBeSplitted, const std::string& delimeter)
{
... | 36.468085 | 108 | 0.402713 | Mechap |
93dad0738fb741b34ecb19c95bc2a1b6f8f486cf | 14,798 | cpp | C++ | qtfred/src/ui/dialogs/ShipInitialStatusDialog.cpp | trgswe/fs2open.github.com | a159eba0cebca911ad14a118412fddfe5be8e9f8 | [
"Unlicense"
] | null | null | null | qtfred/src/ui/dialogs/ShipInitialStatusDialog.cpp | trgswe/fs2open.github.com | a159eba0cebca911ad14a118412fddfe5be8e9f8 | [
"Unlicense"
] | 1 | 2019-02-03T04:53:12.000Z | 2019-02-03T04:53:12.000Z | qtfred/src/ui/dialogs/ShipInitialStatusDialog.cpp | trgswe/fs2open.github.com | a159eba0cebca911ad14a118412fddfe5be8e9f8 | [
"Unlicense"
] | 1 | 2021-05-31T01:41:35.000Z | 2021-05-31T01:41:35.000Z | #include "ShipInitialStatusDialog.h"
#include "globalincs/alphacolors.h"
#include "ui_ShipInitialStatus.h"
#include "object/objectdock.h"
#include <globalincs/linklist.h>
#include <mission/object.h>
#include <ui/util/SignalBlockers.h>
#include <QCloseEvent>
namespace fso {
namespace fred {
namespace dialogs {
... | 33.404063 | 119 | 0.684755 | trgswe |
93de8771c2d80df71642549251e05045b038008c | 3,595 | cpp | C++ | Sources/ImageTool.cpp | KTXSoftware/hake | f118e0a902546d3355cb337c29928135c886c3bd | [
"Zlib"
] | 2 | 2017-11-26T22:33:38.000Z | 2018-05-11T21:58:38.000Z | Sources/ImageTool.cpp | KTXSoftware/hake | f118e0a902546d3355cb337c29928135c886c3bd | [
"Zlib"
] | null | null | null | Sources/ImageTool.cpp | KTXSoftware/hake | f118e0a902546d3355cb337c29928135c886c3bd | [
"Zlib"
] | null | null | null | #include "ImageTool.h"
#include "Files.h"
#include "KhaExporter.h"
#include "stb_image.h"
#include "stb_image_write.h"
#include <algorithm>
#include <cmath>
using namespace kmd;
using namespace kake;
namespace {
typedef unsigned char u8;
typedef unsigned int u32;
int k_round(float value) {
retur... | 33.598131 | 174 | 0.560779 | KTXSoftware |
93e0e0453873453db5020f9322d933c27702be79 | 294 | cpp | C++ | json-parser002/lib/json_exception.cpp | syohex/cpp-study | 598c2afbe77c6d4ba88f549d3e99f97b5bf81acb | [
"MIT"
] | null | null | null | json-parser002/lib/json_exception.cpp | syohex/cpp-study | 598c2afbe77c6d4ba88f549d3e99f97b5bf81acb | [
"MIT"
] | null | null | null | json-parser002/lib/json_exception.cpp | syohex/cpp-study | 598c2afbe77c6d4ba88f549d3e99f97b5bf81acb | [
"MIT"
] | null | null | null | #include "json_exception.h"
#include <sstream>
JsonException::JsonException(const std::string &message, int line, int column) {
std::stringstream ss;
ss << message << " at " << line << ':' << column;
}
const char *JsonException::what() const noexcept {
return message_.c_str();
}
| 24.5 | 80 | 0.663265 | syohex |
93e17997cba7c978b1fd06583f82e53e23c1deec | 1,665 | cpp | C++ | Rpg/src/InputHandler.cpp | babu-thomas/heros-quest | f9ed4d864caf3d81aad9fba86b4d65f14bd7a48f | [
"MIT"
] | null | null | null | Rpg/src/InputHandler.cpp | babu-thomas/heros-quest | f9ed4d864caf3d81aad9fba86b4d65f14bd7a48f | [
"MIT"
] | null | null | null | Rpg/src/InputHandler.cpp | babu-thomas/heros-quest | f9ed4d864caf3d81aad9fba86b4d65f14bd7a48f | [
"MIT"
] | null | null | null | #include "InputHandler.h"
InputHandler::InputHandler()
{
kb_state = SDL_GetKeyboardState(nullptr);
mouse_button_states = vector<bool>(3, false);
}
InputHandler::~InputHandler()
{
delete kb_state;
}
void InputHandler::update(bool *quit)
{
SDL_Event event;
while (SDL_PollEvent(&event))
{
switch (event.type)
... | 15.857143 | 54 | 0.729129 | babu-thomas |
93e2b6a988dc7c2161a3339802bf7cc56db7d1d4 | 1,316 | cpp | C++ | src/print.cpp | vivkin/jzon | 49a7d1d4da166c7570679abaae8a1977f03bb0d4 | [
"MIT"
] | 7 | 2015-02-22T20:19:34.000Z | 2021-03-08T14:09:02.000Z | src/print.cpp | vivkin/jzon | 49a7d1d4da166c7570679abaae8a1977f03bb0d4 | [
"MIT"
] | 1 | 2017-08-05T18:49:13.000Z | 2017-08-05T18:49:13.000Z | src/print.cpp | vivkin/jzon | 49a7d1d4da166c7570679abaae8a1977f03bb0d4 | [
"MIT"
] | 1 | 2018-10-06T10:01:43.000Z | 2018-10-06T10:01:43.000Z | #include "gason2.h"
#include "gason2dump.h"
#include <stdio.h>
#include <stdlib.h>
int main(int argc, char **argv) {
if (argc < 2) {
fprintf(stderr, "usage: %s [-v] [file ...]\n", argv[0]);
exit(EXIT_FAILURE);
}
bool verbose = false;
for (int i = 1; i < argc; ++i) {
if (!strcmp... | 25.803922 | 71 | 0.461246 | vivkin |
93e4fff45d18e9041286d94ef47ed3d8ef9d7ed8 | 2,676 | cpp | C++ | src/emulator/Debugger.cpp | Wycube/Fish-8 | b68b78ce348232364862b8df9737066d02ddfcd2 | [
"MIT"
] | null | null | null | src/emulator/Debugger.cpp | Wycube/Fish-8 | b68b78ce348232364862b8df9737066d02ddfcd2 | [
"MIT"
] | null | null | null | src/emulator/Debugger.cpp | Wycube/Fish-8 | b68b78ce348232364862b8df9737066d02ddfcd2 | [
"MIT"
] | null | null | null | #include "Debugger.hpp"
#include <fmt/printf.h>
namespace fish {
static std::array<const char*, 35> mnemonics = {
"NOP/SYS", "CLS", "RET", "JP %03X",
"CALL %03X", "SE V%X, %i", "SNE V%X, %i", "SE V%X, V%X",
"LD V%X, %i", "ADD V%X, %i", "LD V%X, V%X", "OR V%X, V%X",
"AND V%X, V%X", "XOR V%X,... | 23.068966 | 70 | 0.55867 | Wycube |
93e6aac3365d5663d9ad3b0304756150227009bc | 319 | hpp | C++ | addons/headgear/script_component.hpp | JeffPerk/HavocTeam | 6fb616c41da4baece79ebac941bac72a78c715f9 | [
"MIT"
] | null | null | null | addons/headgear/script_component.hpp | JeffPerk/HavocTeam | 6fb616c41da4baece79ebac941bac72a78c715f9 | [
"MIT"
] | 7 | 2021-11-22T04:36:52.000Z | 2021-12-13T18:55:24.000Z | addons/headgear/script_component.hpp | JeffPerk/HavocTeam | 6fb616c41da4baece79ebac941bac72a78c715f9 | [
"MIT"
] | null | null | null | #define COMPONENT headgear
#define COMPONENT_BEAUTIFIED Headgear
#include "\z\havoc\addons\main\script_mod.hpp"
#ifdef DEBUG_ENABLED_HEADGEAR
#define DEBUG_MODE_FULL
#endif
#ifdef DEBUG_SETTINGS_HEADGEAR
#define DEBUG_SETTINGS DEBUG_SETTINGS_HEADGEAR
#endif
#include "\z\havoc\addons\main\script_macros.hpp"
| 22.785714 | 50 | 0.818182 | JeffPerk |
93e7ae288beea19aca824c6dbce2618bf13c0008 | 5,360 | cc | C++ | src/preproc/do_prover3.cc | nerdling/SBSAT | 6328c6aa105b75693d06bf0dae4a3b5ca220318b | [
"Unlicense"
] | 4 | 2015-03-08T07:56:29.000Z | 2017-10-12T04:19:27.000Z | src/preproc/do_prover3.cc | nerdling/SBSAT | 6328c6aa105b75693d06bf0dae4a3b5ca220318b | [
"Unlicense"
] | null | null | null | src/preproc/do_prover3.cc | nerdling/SBSAT | 6328c6aa105b75693d06bf0dae4a3b5ca220318b | [
"Unlicense"
] | null | null | null | /* =========FOR INTERNAL USE ONLY. NO DISTRIBUTION PLEASE ========== */
/*********************************************************************
Copyright 1999-2007, University of Cincinnati. All rights reserved.
By using this software the USER indicates that he or she has read,
understood and will comply with the f... | 32.883436 | 103 | 0.680597 | nerdling |
93e9737656bf1132822675a1768fcf7337a24b42 | 24,512 | hh | C++ | src/yajlpp.hh | emilianobonassi/lnav | 37f46af7a691192fba4a889e4e4da6cbfcaac8e4 | [
"BSD-2-Clause"
] | null | null | null | src/yajlpp.hh | emilianobonassi/lnav | 37f46af7a691192fba4a889e4e4da6cbfcaac8e4 | [
"BSD-2-Clause"
] | null | null | null | src/yajlpp.hh | emilianobonassi/lnav | 37f46af7a691192fba4a889e4e4da6cbfcaac8e4 | [
"BSD-2-Clause"
] | null | null | null | /**
* Copyright (c) 2013, Timothy Stack
*
* 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 condi... | 33.03504 | 111 | 0.638014 | emilianobonassi |
93e9a9c992e17a73ce2b75f3ddab73e852f4f608 | 3,154 | cpp | C++ | tst/RewatchTest.cpp | edmund-troche/etcd-cpp-apiv3 | f21c45b362297131b191ea8fc5033f8ffca4cc04 | [
"BSD-3-Clause"
] | 139 | 2016-09-20T00:28:04.000Z | 2020-09-27T15:05:11.000Z | tst/RewatchTest.cpp | edmund-troche/etcd-cpp-apiv3 | f21c45b362297131b191ea8fc5033f8ffca4cc04 | [
"BSD-3-Clause"
] | 12 | 2016-12-09T02:58:47.000Z | 2020-09-04T09:17:22.000Z | tst/RewatchTest.cpp | edmund-troche/etcd-cpp-apiv3 | f21c45b362297131b191ea8fc5033f8ffca4cc04 | [
"BSD-3-Clause"
] | 63 | 2016-12-06T11:42:29.000Z | 2020-09-24T06:15:49.000Z | #define CATCH_CONFIG_MAIN
#include <catch.hpp>
#include <chrono>
#include <thread>
#include "etcd/Watcher.hpp"
#include "etcd/SyncClient.hpp"
static std::string etcd_uri("http://127.0.0.1:2379");
static int watcher_called = 0;
void print_response(etcd::Response const & resp)
{
++watcher_called;
std::cout << "pr... | 31.227723 | 93 | 0.609702 | edmund-troche |
93e9eb5e09550a28edea5d894f466eaac4a1725c | 17,619 | cpp | C++ | Test_ArrayRangeAnalyzer/test_analyzer.cpp | petrenko-alex/array-range-analyzer | 551d3bb9d32d74085c6915d61e5e0e8efdb4c7b7 | [
"BSD-3-Clause"
] | null | null | null | Test_ArrayRangeAnalyzer/test_analyzer.cpp | petrenko-alex/array-range-analyzer | 551d3bb9d32d74085c6915d61e5e0e8efdb4c7b7 | [
"BSD-3-Clause"
] | null | null | null | Test_ArrayRangeAnalyzer/test_analyzer.cpp | petrenko-alex/array-range-analyzer | 551d3bb9d32d74085c6915d61e5e0e8efdb4c7b7 | [
"BSD-3-Clause"
] | null | null | null | #include "test_analyzer.h"
void Test_analyzer::analyzeExpression_data()
{
QStringList indexNames;
QVector<double> indexValues;
QStringList fileNames;
Input inp;
/*! Колонки таблицы */
QTest::addColumn <QVector<Index> >("vars");
QTest::addColumn <QVector<Array> >("arrs");
QTest::addColumn <QS... | 39.153333 | 191 | 0.670753 | petrenko-alex |
93ec5f362e476cb97595a28befabb8daab5acf30 | 210 | cpp | C++ | src/implementation/Product.cpp | harryprabowo/engifarm-destructor | 8d57107fa819da7ba6986bbeaec02ba760a994d8 | [
"BSD-3-Clause"
] | null | null | null | src/implementation/Product.cpp | harryprabowo/engifarm-destructor | 8d57107fa819da7ba6986bbeaec02ba760a994d8 | [
"BSD-3-Clause"
] | null | null | null | src/implementation/Product.cpp | harryprabowo/engifarm-destructor | 8d57107fa819da7ba6986bbeaec02ba760a994d8 | [
"BSD-3-Clause"
] | null | null | null | #include "../class/Product/Product.h"
using namespace std;
int Product::getPrice(){
return price;
}
string Product::getProdName()
{
return prodName;
}
void Product::setProdName(string S)
{
prodName = S;
} | 13.125 | 37 | 0.709524 | harryprabowo |
93ed52711b43e56b8f78459b4daf2c40f084e15d | 279 | cc | C++ | ch06/ex6_9_fact_main.cc | bashell/Cpp-Primer | 405c5c43edc4bc734ee2a445b7a1f135e33c7f2b | [
"Apache-2.0"
] | null | null | null | ch06/ex6_9_fact_main.cc | bashell/Cpp-Primer | 405c5c43edc4bc734ee2a445b7a1f135e33c7f2b | [
"Apache-2.0"
] | null | null | null | ch06/ex6_9_fact_main.cc | bashell/Cpp-Primer | 405c5c43edc4bc734ee2a445b7a1f135e33c7f2b | [
"Apache-2.0"
] | null | null | null | // factMain.cc
#include <iostream>
#include "ex6_8.h"
using std::cin;
using std::cout;
using std::endl;
int main()
{
int val;
cout << "Input a integer: " << endl;
cin >> val;
cout << "The factorial of " << val << " is " << MyFact(val) << endl;
return 0;
}
| 15.5 | 72 | 0.55914 | bashell |
93f080d783b8643adebce1dfaa349ba8fa9ac88e | 859 | cpp | C++ | Olympiad Solutions/DMOJ/mec16p5.cpp | Ashwanigupta9125/code-DS-ALGO | 49f6cf7d0c682da669db23619aef3f80697b352b | [
"MIT"
] | 36 | 2019-12-27T08:23:08.000Z | 2022-01-24T20:35:47.000Z | Olympiad Solutions/DMOJ/mec16p5.cpp | Ashwanigupta9125/code-DS-ALGO | 49f6cf7d0c682da669db23619aef3f80697b352b | [
"MIT"
] | 10 | 2019-11-13T02:55:18.000Z | 2021-10-13T23:28:09.000Z | Olympiad Solutions/DMOJ/mec16p5.cpp | Ashwanigupta9125/code-DS-ALGO | 49f6cf7d0c682da669db23619aef3f80697b352b | [
"MIT"
] | 53 | 2020-08-15T11:08:40.000Z | 2021-10-09T15:51:38.000Z | // Ivan Carvalho
// Solution to https://dmoj.ca/problem/mec16p5
#include <bits/stdc++.h>
#define F first
#define S second
using namespace std;
typedef long long ll;
typedef pair<ll,ll> point;
int ccw(point A,point B,point C){
ll val = A.F*(B.S - C.S) - A.S*(B.F - C.F) + B.F*C.S - B.S*C.F;
if(val > 0) return 1;
if(va... | 21.475 | 72 | 0.53085 | Ashwanigupta9125 |
93f1d21d4a7702cbbda371ba6e6e69df9974ccad | 647 | cpp | C++ | 144_preorderTraversal.cpp | imxiaobo/leetcode-solutions | a59c4c9fa424787771c8faca7ba444cae4ed6a4e | [
"MIT"
] | null | null | null | 144_preorderTraversal.cpp | imxiaobo/leetcode-solutions | a59c4c9fa424787771c8faca7ba444cae4ed6a4e | [
"MIT"
] | null | null | null | 144_preorderTraversal.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> preorderTraversal(TreeNode *root) {
std::stack<TreeNode *> stack;
std::vector... | 21.566667 | 59 | 0.528594 | imxiaobo |
93f20a846ff5f1ef0cc4db5e03fa676b9a79a707 | 6,062 | cpp | C++ | tests/matrices.cpp | pdm-pcb/pdmath | 6c8ac4288c68bbe547e71f5bb7d1e44d3f1e35ab | [
"MIT"
] | null | null | null | tests/matrices.cpp | pdm-pcb/pdmath | 6c8ac4288c68bbe547e71f5bb7d1e44d3f1e35ab | [
"MIT"
] | null | null | null | tests/matrices.cpp | pdm-pcb/pdmath | 6c8ac4288c68bbe547e71f5bb7d1e44d3f1e35ab | [
"MIT"
] | null | null | null | #include "pdmath/Matrix3.hpp"
#include "pdmath/Vector3.hpp"
#include "pdmath/Matrix4.hpp"
#include "pdmath/Vector4.hpp"
#include "catch2/catch_test_macros.hpp"
#include "catch2/catch_approx.hpp"
using namespace pdm;
using namespace Catch;
TEST_CASE("Matrices can multiply", "[matrices]") {
Mat3 m( 3.0f, -5.0f, ... | 30.009901 | 80 | 0.423458 | pdm-pcb |