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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
29631adc7b3945b2bf749588cc44638bd4bae912 | 6,270 | hpp | C++ | method_adaptor.hpp | v2lab/max-sick-lms100 | a92567a2314662bb7aefc836292181c784cbbc37 | [
"MIT"
] | 4 | 2015-05-01T18:05:20.000Z | 2019-11-26T07:38:00.000Z | method_adaptor.hpp | v2lab/max-sick-lms100 | a92567a2314662bb7aefc836292181c784cbbc37 | [
"MIT"
] | null | null | null | method_adaptor.hpp | v2lab/max-sick-lms100 | a92567a2314662bb7aefc836292181c784cbbc37 | [
"MIT"
] | 3 | 2017-10-12T00:19:06.000Z | 2019-10-29T21:38:34.000Z | /*
* Member function pointer to C-compatible function pointer conversion.
*
* The problem:
*
* - we want to register a member function to be called by C-based callback
* system, with 'this' pointer preserved in a callback registration mechanism.
*
* - we might also want to have function arguments be converted... | 33.351064 | 120 | 0.696651 | v2lab |
2968c3637024fa8a2a43a4e7bd6aa82f994e7391 | 2,861 | cpp | C++ | examples/script_error_handling.cpp | a1ien/sol2 | 358c34e5e978524d7c0dbf3f69987f57dfb30da6 | [
"MIT"
] | null | null | null | examples/script_error_handling.cpp | a1ien/sol2 | 358c34e5e978524d7c0dbf3f69987f57dfb30da6 | [
"MIT"
] | null | null | null | examples/script_error_handling.cpp | a1ien/sol2 | 358c34e5e978524d7c0dbf3f69987f57dfb30da6 | [
"MIT"
] | null | null | null | #define SOL_CHECK_ARGUMENTS 1
#include <sol.hpp>
#include "assert.hpp"
#include <iostream>
int main(int, char**) {
std::cout << "=== script error handling example ===" << std::endl;
sol::state lua;
std::string code = R"(
bad&$#*$syntax
bad.code = 2
return 24
)";
/* OPTION 1 */
// Handling code like this can b... | 32.885057 | 143 | 0.670045 | a1ien |
296c0148cc9d30e34b83f4f3911b36954176a43c | 5,965 | cc | C++ | src/Modules/Legacy/Inverse/SolveInverseProblemWithTikhonov.cc | Haydelj/SCIRun | f7ee04d85349b946224dbff183438663e54b9413 | [
"MIT"
] | 92 | 2015-02-09T22:42:11.000Z | 2022-03-25T09:14:50.000Z | src/Modules/Legacy/Inverse/SolveInverseProblemWithTikhonov.cc | Haydelj/SCIRun | f7ee04d85349b946224dbff183438663e54b9413 | [
"MIT"
] | 1,618 | 2015-01-05T19:39:13.000Z | 2022-03-27T20:28:45.000Z | src/Modules/Legacy/Inverse/SolveInverseProblemWithTikhonov.cc | Haydelj/SCIRun | f7ee04d85349b946224dbff183438663e54b9413 | [
"MIT"
] | 64 | 2015-02-20T17:51:23.000Z | 2021-11-19T07:08:08.000Z | /*
For more information, please see: http://software.sci.utah.edu
The MIT License
Copyright (c) 2020 Scientific Computing and Imaging Institute,
University of Utah.
Permission is hereby granted, free of charge, to any person obtaining a
copy of this software and associated documentation files (the ... | 43.860294 | 265 | 0.800838 | Haydelj |
296c9f6eea7ec7ba60a2f6812ade2ae325ca0cf7 | 11,473 | hpp | C++ | include/mpicxx/detail/source_location.hpp | arkantos493/MPICXX | ffbaeaaa3c7248e2087c3716ec71e0612aafe689 | [
"MIT"
] | 1 | 2020-10-20T06:53:05.000Z | 2020-10-20T06:53:05.000Z | include/mpicxx/detail/source_location.hpp | arkantos493/MPICXX | ffbaeaaa3c7248e2087c3716ec71e0612aafe689 | [
"MIT"
] | null | null | null | include/mpicxx/detail/source_location.hpp | arkantos493/MPICXX | ffbaeaaa3c7248e2087c3716ec71e0612aafe689 | [
"MIT"
] | 1 | 2020-08-13T17:46:40.000Z | 2020-08-13T17:46:40.000Z | /**
* @file
* @author Marcel Breyer
* @date 2020-07-21
* @copyright This file is distributed under the MIT License.
*
* @brief Provides a class similar to [`std::source_location`](https://en.cppreference.com/w/cpp/utility/source_location).
* @details Differences are:
* - The new macro `MPICXX_PRETTY_FU... | 45.892 | 140 | 0.580232 | arkantos493 |
296db7a44919414d9c4be57e139a5404cd2cafb0 | 11,225 | cpp | C++ | src/hybrid_a_star_flow.cpp | HongweiSunny/Hybrid_A_Star | bb02fd767a9136779117afb6d14b3a6ba18a8914 | [
"BSD-3-Clause"
] | 49 | 2022-03-26T14:32:10.000Z | 2022-03-31T23:29:34.000Z | src/hybrid_a_star_flow.cpp | HongweiSunny/Hybrid_A_Star | bb02fd767a9136779117afb6d14b3a6ba18a8914 | [
"BSD-3-Clause"
] | 1 | 2022-03-29T07:04:07.000Z | 2022-03-29T09:47:49.000Z | src/hybrid_a_star_flow.cpp | HongweiSunny/Hybrid_A_Star | bb02fd767a9136779117afb6d14b3a6ba18a8914 | [
"BSD-3-Clause"
] | 8 | 2022-03-26T14:33:45.000Z | 2022-03-31T05:27:12.000Z | /*******************************************************************************
* Software License Agreement (BSD License)
*
* Copyright (c) 2022 Zhang Zhimeng
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without modification,
* are permitted provided that the following ... | 38.706897 | 114 | 0.632962 | HongweiSunny |
2970a5c707ae6637dbdcd0828f2ad0bc1058fd29 | 2,498 | cpp | C++ | src/DisplayManager.cpp | Artemijs/OpenGL | b012e381c8800a117414108df8ba3f210e3b8398 | [
"MIT"
] | null | null | null | src/DisplayManager.cpp | Artemijs/OpenGL | b012e381c8800a117414108df8ba3f210e3b8398 | [
"MIT"
] | null | null | null | src/DisplayManager.cpp | Artemijs/OpenGL | b012e381c8800a117414108df8ba3f210e3b8398 | [
"MIT"
] | null | null | null | #include "DisplayManager.h"
#include <iostream>
#include <string>
DisplayManager* DisplayManager::m_instance = NULL;
DisplayManager::DisplayManager(){
//initialize sdls video subsystem
if(SDL_Init(SDL_INIT_VIDEO)<0){
std::cout<<"failed to init sdl\n";
}
//create window
m_window = SDL_Create... | 28.712644 | 126 | 0.689752 | Artemijs |
2971dcb3c6e53a44cd16313d7245645bedec2c85 | 8,238 | cpp | C++ | src/glbase/meshrenderer.cpp | traits/Traits3D | 09eb850ad4e1054a5574346a6b479dc2d60b1f09 | [
"Apache-2.0"
] | null | null | null | src/glbase/meshrenderer.cpp | traits/Traits3D | 09eb850ad4e1054a5574346a6b479dc2d60b1f09 | [
"Apache-2.0"
] | null | null | null | src/glbase/meshrenderer.cpp | traits/Traits3D | 09eb850ad4e1054a5574346a6b479dc2d60b1f09 | [
"Apache-2.0"
] | null | null | null | #include <algorithm>
#include "glb/shader_std.h"
#include "glb/meshrenderer.h"
namespace traits3d
{
namespace gl
{
const std::string MeshRenderer::v_core_delta_ = "v_core_delta";
const std::string MeshRenderer::v_seam_delta_ = "v_seam_delta";
const char *MeshRenderer::VertexCoreCode =
{
#ifdef GL... | 30.065693 | 138 | 0.55159 | traits |
297225d3536ae04e40a9f905ae879ad0228ce916 | 7,376 | cpp | C++ | TypeSafeNumber/TypeSafeNumber.cpp | jbcoe/CppSandbox | 574dc31bbd3640a8cf1b7642c4a449bee687cce5 | [
"MIT"
] | 7 | 2015-01-18T13:30:09.000Z | 2021-08-21T19:50:26.000Z | TypeSafeNumber/TypeSafeNumber.cpp | jbcoe/CppSandbox | 574dc31bbd3640a8cf1b7642c4a449bee687cce5 | [
"MIT"
] | 1 | 2016-03-13T21:26:37.000Z | 2016-03-13T21:26:37.000Z | TypeSafeNumber/TypeSafeNumber.cpp | jbcoe/CppSandbox | 574dc31bbd3640a8cf1b7642c4a449bee687cce5 | [
"MIT"
] | 1 | 2016-02-16T04:56:25.000Z | 2016-02-16T04:56:25.000Z | #include <iostream>
template <typename Object_t, typename Underlying_t>
struct StrongTypedef
{
StrongTypedef() : t_()
{
}
explicit StrongTypedef(Underlying_t t) : t_(std::move(t))
{
}
const auto& raw_data() const
{
return t_;
}
auto& raw_data()
{
return t_;
}
private:
Underlying_t... | 27.217712 | 80 | 0.625542 | jbcoe |
297715abf09ea3515cc07bbc46b92e81dbaea9a3 | 1,283 | cc | C++ | src/net/reporting/reporting_report.cc | lazymartin/naiveproxy | 696e8714278e85e67e56a2eaea11f26c53116f0c | [
"BSD-3-Clause"
] | null | null | null | src/net/reporting/reporting_report.cc | lazymartin/naiveproxy | 696e8714278e85e67e56a2eaea11f26c53116f0c | [
"BSD-3-Clause"
] | null | null | null | src/net/reporting/reporting_report.cc | lazymartin/naiveproxy | 696e8714278e85e67e56a2eaea11f26c53116f0c | [
"BSD-3-Clause"
] | null | null | null | // Copyright 2017 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "net/reporting/reporting_report.h"
#include <memory>
#include <string>
#include <utility>
#include "base/time/time.h"
#include "base/values.h"
... | 26.183673 | 73 | 0.68901 | lazymartin |
2979c0f092ca39085774a29e8479dba5543d7cf1 | 8,191 | cpp | C++ | Source/Graphics/Sprite/SpriteAnimationList.cpp | amitukind/WebGL-Game-Engine | c78973803938c1cfba703d9bb437ec46a4c48045 | [
"Unlicense"
] | null | null | null | Source/Graphics/Sprite/SpriteAnimationList.cpp | amitukind/WebGL-Game-Engine | c78973803938c1cfba703d9bb437ec46a4c48045 | [
"Unlicense"
] | null | null | null | Source/Graphics/Sprite/SpriteAnimationList.cpp | amitukind/WebGL-Game-Engine | c78973803938c1cfba703d9bb437ec46a4c48045 | [
"Unlicense"
] | null | null | null | /*
Copyright (c) 2018-2021 Piotr Doan. All rights reserved.
Software distributed under the permissive MIT License.
*/
#include "Graphics/Precompiled.hpp"
#include "Graphics/Sprite/SpriteAnimationList.hpp"
#include "Graphics/TextureAtlas.hpp"
#include <Core/SystemStorage.hpp>
#include <System/ResourceManager.hp... | 33.028226 | 100 | 0.62764 | amitukind |
297a948a50b208dbfa75c7f5ff4dc89c84ea355e | 72,717 | cpp | C++ | Source/Plugins/bsfSL/BsSLFXCompiler.cpp | bsf2dev/bsf | b318cd4eb1b0299773d625e6c870b8d503cf539e | [
"MIT"
] | 1,745 | 2018-03-16T02:10:28.000Z | 2022-03-26T17:34:21.000Z | Source/Plugins/bsfSL/BsSLFXCompiler.cpp | bsf2dev/bsf | b318cd4eb1b0299773d625e6c870b8d503cf539e | [
"MIT"
] | 395 | 2018-03-16T10:18:20.000Z | 2021-08-04T16:52:08.000Z | Source/Plugins/bsfSL/BsSLFXCompiler.cpp | bsf2dev/bsf | b318cd4eb1b0299773d625e6c870b8d503cf539e | [
"MIT"
] | 267 | 2018-03-17T19:32:54.000Z | 2022-02-17T16:55:50.000Z | //************************************ bs::framework - Copyright 2018 Marko Pintera **************************************//
//*********** Licensed under the MIT license. See LICENSE.md for full terms. This notice is not to be removed. ***********//
#include "BsSLFXCompiler.h"
#include "RenderAPI/BsGpuProgram.h"
#inclu... | 28.821641 | 131 | 0.696398 | bsf2dev |
297c3d309ff4cc577ce15346ed48509833efdcf8 | 3,307 | cpp | C++ | src/lib/logical_query_plan/stored_table_node.cpp | IanJamesMcKay/InMemoryDB | a267d9522926eca9add2ad4512f8ce352daac879 | [
"MIT"
] | 1 | 2021-04-14T11:16:52.000Z | 2021-04-14T11:16:52.000Z | src/lib/logical_query_plan/stored_table_node.cpp | IanJamesMcKay/InMemoryDB | a267d9522926eca9add2ad4512f8ce352daac879 | [
"MIT"
] | null | null | null | src/lib/logical_query_plan/stored_table_node.cpp | IanJamesMcKay/InMemoryDB | a267d9522926eca9add2ad4512f8ce352daac879 | [
"MIT"
] | 1 | 2020-11-30T13:11:04.000Z | 2020-11-30T13:11:04.000Z | #include "stored_table_node.hpp"
#include <memory>
#include <optional>
#include <string>
#include <vector>
#include "statistics/table_statistics.hpp"
#include "storage/storage_manager.hpp"
#include "storage/table.hpp"
#include "types.hpp"
namespace opossum {
StoredTableNode::StoredTableNode(const std::string& table... | 35.180851 | 117 | 0.75567 | IanJamesMcKay |
297c4610d2ecf5a6b5ce145df2ed76cd4d488e1d | 1,116 | cpp | C++ | yc5110_hw6/yc5110_hw6_q2.cpp | YiwenCui/NYU-Bridge-Winter-2021 | bcada20fc0fd7d940f556322dabc560f59259e57 | [
"MIT"
] | null | null | null | yc5110_hw6/yc5110_hw6_q2.cpp | YiwenCui/NYU-Bridge-Winter-2021 | bcada20fc0fd7d940f556322dabc560f59259e57 | [
"MIT"
] | null | null | null | yc5110_hw6/yc5110_hw6_q2.cpp | YiwenCui/NYU-Bridge-Winter-2021 | bcada20fc0fd7d940f556322dabc560f59259e57 | [
"MIT"
] | null | null | null | #include <iostream>
using namespace std;
void printShiftedTriangle(int n, int m, char symbol);
void printPineTree(int n, char symbol);
int main()
{
int numOfTree;
char symbol;
cout << "please enter the number of trees (int) and desired symbol(char), separate by space: " << endl;
cin >> numOfTree >> sy... | 23.25 | 126 | 0.607527 | YiwenCui |
2982f696b9a827b4da35f50983fa314bafd56610 | 8,864 | cpp | C++ | src/guide/glserver.cpp | rzvdaniel/GUI- | 1501b54a038f7e3f66d683f125fa53d3ab73672c | [
"MIT"
] | null | null | null | src/guide/glserver.cpp | rzvdaniel/GUI- | 1501b54a038f7e3f66d683f125fa53d3ab73672c | [
"MIT"
] | null | null | null | src/guide/glserver.cpp | rzvdaniel/GUI- | 1501b54a038f7e3f66d683f125fa53d3ab73672c | [
"MIT"
] | null | null | null | #define N_IMPLEMENTS TGlServer
//-------------------------------------------------------------------
// glserver.cpp
// (C) 2004 R.Predescu
//-------------------------------------------------------------------
#include "SDL.h"
#include "guide/glserver.h"
#include "guide/screen.h"
#include "guide/debug.h"
extern TKey... | 27.190184 | 99 | 0.531476 | rzvdaniel |
2983a8bb5d49c1615ee7837e8d5376d6d3ec7d53 | 10,346 | cpp | C++ | Engine/source/app/badWordFilter.cpp | vbillet/Torque3D | ece8823599424ea675e5f79d9bcb44e42cba8cae | [
"MIT"
] | 2,113 | 2015-01-01T11:23:01.000Z | 2022-03-28T04:51:46.000Z | Engine/source/app/badWordFilter.cpp | vbillet/Torque3D | ece8823599424ea675e5f79d9bcb44e42cba8cae | [
"MIT"
] | 948 | 2015-01-02T01:50:00.000Z | 2022-02-27T05:56:40.000Z | Engine/source/app/badWordFilter.cpp | vbillet/Torque3D | ece8823599424ea675e5f79d9bcb44e42cba8cae | [
"MIT"
] | 944 | 2015-01-01T09:33:53.000Z | 2022-03-15T22:23:03.000Z | //-----------------------------------------------------------------------------
// Copyright (c) 2012 GarageGames, LLC
//
// 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 restrictio... | 30.976048 | 295 | 0.61821 | vbillet |
2984839bcea56d0f3b6656b7124d96aa192f3f06 | 1,101 | cpp | C++ | src/synthetic_workload/src/mt_exec_concurrent_children.cpp | nightduck/ros2_synthetic_workload | 520afb02b30e763f3bcec8cef8e831be140eb922 | [
"Apache-2.0"
] | null | null | null | src/synthetic_workload/src/mt_exec_concurrent_children.cpp | nightduck/ros2_synthetic_workload | 520afb02b30e763f3bcec8cef8e831be140eb922 | [
"Apache-2.0"
] | null | null | null | src/synthetic_workload/src/mt_exec_concurrent_children.cpp | nightduck/ros2_synthetic_workload | 520afb02b30e763f3bcec8cef8e831be140eb922 | [
"Apache-2.0"
] | null | null | null | #include "nodes.hpp"
int main(int argc, char const *argv[])
{
rclcpp::init(argc, argv);
// Measure time to chew cycles on this machine
{
RCLCPP_INFO(rclcpp::get_logger("global_logger"), "Benchmarking...");
auto clock = rclcpp::Clock();
rclcpp::Time start = clock.now();
uin... | 26.214286 | 132 | 0.593097 | nightduck |
298649a23191026eb9769533e710d8febe7ec77f | 175 | hpp | C++ | src/agl/glsl/function/vector/all.hpp | the-last-willy/abstractgl | d685bef25ac18773d3eea48ca52806c3a3485ddb | [
"MIT"
] | null | null | null | src/agl/glsl/function/vector/all.hpp | the-last-willy/abstractgl | d685bef25ac18773d3eea48ca52806c3a3485ddb | [
"MIT"
] | null | null | null | src/agl/glsl/function/vector/all.hpp | the-last-willy/abstractgl | d685bef25ac18773d3eea48ca52806c3a3485ddb | [
"MIT"
] | null | null | null | #pragma once
#include "addition.hpp"
#include "division.hpp"
#include "multiplication.hpp"
#include "perpendicular.hpp"
#include "subtraction.hpp"
#include "unary_minus.hpp"
| 19.444444 | 29 | 0.771429 | the-last-willy |
298775ae40fd05efed586600ce96655e5ee2b6c3 | 9,665 | cc | C++ | src/compiler/gap-resolver.cc | YBApp-Bot/org_chromium_v8 | de9efd579907d75b4599b33cfcc8c00468a72b9b | [
"BSD-3-Clause"
] | null | null | null | src/compiler/gap-resolver.cc | YBApp-Bot/org_chromium_v8 | de9efd579907d75b4599b33cfcc8c00468a72b9b | [
"BSD-3-Clause"
] | null | null | null | src/compiler/gap-resolver.cc | YBApp-Bot/org_chromium_v8 | de9efd579907d75b4599b33cfcc8c00468a72b9b | [
"BSD-3-Clause"
] | null | null | null | // Copyright 2014 the V8 project authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "src/compiler/gap-resolver.h"
#include <algorithm>
#include <set>
namespace v8 {
namespace internal {
namespace compiler {
namespace {
stat... | 38.66 | 80 | 0.659493 | YBApp-Bot |
298b6ccaf76b244851bb90ebd22481d388b292b5 | 2,045 | hpp | C++ | shared_model/interfaces/iroha_internal/transaction_batch.hpp | e-ivkov/iroha | 5fec6c585721ec98a7e2e5220ca5525099e5f670 | [
"Apache-2.0"
] | 24 | 2016-09-26T17:11:46.000Z | 2020-03-03T13:42:58.000Z | shared_model/interfaces/iroha_internal/transaction_batch.hpp | e-ivkov/iroha | 5fec6c585721ec98a7e2e5220ca5525099e5f670 | [
"Apache-2.0"
] | 11 | 2016-10-13T10:09:55.000Z | 2019-06-13T08:49:11.000Z | shared_model/interfaces/iroha_internal/transaction_batch.hpp | e-ivkov/iroha | 5fec6c585721ec98a7e2e5220ca5525099e5f670 | [
"Apache-2.0"
] | 4 | 2016-09-27T13:18:28.000Z | 2019-08-05T20:47:15.000Z | /**
* Copyright Soramitsu Co., Ltd. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0
*/
#ifndef IROHA_TRANSACTION_BATCH_HPP
#define IROHA_TRANSACTION_BATCH_HPP
#include <boost/optional.hpp>
#include "cryptography/hash.hpp"
#include "interfaces/base/model_primitive.hpp"
#include "interfaces/common_object... | 31.461538 | 80 | 0.681663 | e-ivkov |
298b7a8f5e4b8db97cf8c4d8c8efed728fb493fd | 261 | cpp | C++ | lc/st/0015.cpp | Aeon113/Notes | 2fd9c9f7a94d79deacd9c6ae3edc13da11cb3a04 | [
"BSD-3-Clause"
] | null | null | null | lc/st/0015.cpp | Aeon113/Notes | 2fd9c9f7a94d79deacd9c6ae3edc13da11cb3a04 | [
"BSD-3-Clause"
] | null | null | null | lc/st/0015.cpp | Aeon113/Notes | 2fd9c9f7a94d79deacd9c6ae3edc13da11cb3a04 | [
"BSD-3-Clause"
] | null | null | null | class Solution {
public:
int hammingWeight(uint32_t n) {
int res = 0;
while (n) {
switch(n & 0x3u) {
case 0:
break;
case 1:
case 2:
++res;
break;
default:
res += 2;
break;
}
n = (n >> 2u);
}
return res;
}
};
| 10.875 | 32 | 0.478927 | Aeon113 |
298cda02a2bf49627a599618711396345ad1b60a | 7,055 | cpp | C++ | Source/Readers/ExperimentalHTKMLFReader/MLFDataDeserializer.cpp | Asahi300/aisample | fd5877eb06a594b6699b04342a8d95782e8f6e6e | [
"RSA-MD"
] | 1 | 2019-04-22T09:08:58.000Z | 2019-04-22T09:08:58.000Z | Source/Readers/ExperimentalHTKMLFReader/MLFDataDeserializer.cpp | JamesLinus/CNTK | 2854d878cfff08ba426e2387f087143f5a81e0a1 | [
"RSA-MD"
] | null | null | null | Source/Readers/ExperimentalHTKMLFReader/MLFDataDeserializer.cpp | JamesLinus/CNTK | 2854d878cfff08ba426e2387f087143f5a81e0a1 | [
"RSA-MD"
] | null | null | null | //
// Copyright (c) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE.md file in the project root for full license information.
//
#include "stdafx.h"
#include "MLFDataDeserializer.h"
#include "ConfigHelper.h"
#include "../HTKMLFReader/htkfeatio.h"
#include "../HTKMLFReader/msra_mgram.h"
#... | 33.755981 | 190 | 0.668887 | Asahi300 |
298e6ba25051d6fa4fe9e2f4467fb3ef4bf31faf | 166 | cpp | C++ | Official Windows Platform Sample/Windows 8.1 Store app samples/[C++]-Windows 8.1 Store app samples/ControlChannelTrigger HTTP client sample/C++/HttpClientTransportHelper/pch.cpp | zzgchina888/msdn-code-gallery-microsoft | 21cb9b6bc0da3b234c5854ecac449cb3bd261f29 | [
"MIT"
] | 2 | 2022-01-21T01:40:58.000Z | 2022-01-21T01:41:10.000Z | Official Windows Platform Sample/Windows 8.1 Store app samples/[C++]-Windows 8.1 Store app samples/ControlChannelTrigger HTTP client sample/C++/HttpClientTransportHelper/pch.cpp | zzgchina888/msdn-code-gallery-microsoft | 21cb9b6bc0da3b234c5854ecac449cb3bd261f29 | [
"MIT"
] | 1 | 2022-03-15T04:21:41.000Z | 2022-03-15T04:21:41.000Z | Official Windows Platform Sample/Windows 8.1 Store app samples/[C++]-Windows 8.1 Store app samples/ControlChannelTrigger HTTP client sample/C++/HttpClientTransportHelper/pch.cpp | zzgchina888/msdn-code-gallery-microsoft | 21cb9b6bc0da3b234c5854ecac449cb3bd261f29 | [
"MIT"
] | null | null | null | // Copyright (c) Microsoft Corporation. All rights reserved.
//
// pch.cpp
// Include the standard header and generate the precompiled header.
//
#include "pch.h"
| 18.444444 | 67 | 0.716867 | zzgchina888 |
298f4da94fa6892f614f1dec73429de7817453f9 | 1,035 | cpp | C++ | casbin/ip_parser/parser/parseIPv4.cpp | sheny1xuan/casbin-cpp | 5fd4056277d9ddb433b8db53dc5edd0a1a8a1237 | [
"Apache-2.0"
] | null | null | null | casbin/ip_parser/parser/parseIPv4.cpp | sheny1xuan/casbin-cpp | 5fd4056277d9ddb433b8db53dc5edd0a1a8a1237 | [
"Apache-2.0"
] | null | null | null | casbin/ip_parser/parser/parseIPv4.cpp | sheny1xuan/casbin-cpp | 5fd4056277d9ddb433b8db53dc5edd0a1a8a1237 | [
"Apache-2.0"
] | null | null | null | #include "casbin/pch.h"
#ifndef PARSEIPV4_CPP
#define PARSEIPV4_CPP
#include "casbin/ip_parser/parser/parseIPv4.h"
namespace casbin {
IP parseIPv4(std::string_view s) {
std::vector<byte> pb(IP ::IPv4len, 0);
IP ipv4;
for (int i = 0; i < IP ::IPv4len; i++) {
if (s.length() == 0) {
// ... | 23.522727 | 66 | 0.470531 | sheny1xuan |
299359f19c1ab43248bd0c342ed5a56de48cd833 | 10,064 | hh | C++ | hackt_docker/hackt/src/AST/PRS.hh | broken-wheel/hacktist | 36e832ae7dd38b27bca9be7d0889d06054dc2806 | [
"MIT"
] | null | null | null | hackt_docker/hackt/src/AST/PRS.hh | broken-wheel/hacktist | 36e832ae7dd38b27bca9be7d0889d06054dc2806 | [
"MIT"
] | null | null | null | hackt_docker/hackt/src/AST/PRS.hh | broken-wheel/hacktist | 36e832ae7dd38b27bca9be7d0889d06054dc2806 | [
"MIT"
] | null | null | null | /**
\file "AST/PRS.hh"
PRS-specific syntax tree classes.
$Id: PRS.hh,v 1.15 2011/02/08 02:06:44 fang Exp $
This used to be the following before it was renamed:
Id: art_parser_prs.h,v 1.15.12.1 2005/12/11 00:45:09 fang Exp
*/
#ifndef __HAC_AST_PRS_H__
#define __HAC_AST_PRS_H__
#include "AST/common.hh"
#include "... | 22.61573 | 79 | 0.673688 | broken-wheel |
29948fd48437b065114b31d2b2d9f42f89e9ae35 | 2,202 | hh | C++ | maxutils/maxbase/include/maxbase/pam_utils.hh | mariadb-ThienLy/MaxScale | 0ba6fb79b930ba90c544594e3580fc46054f6666 | [
"MIT"
] | null | null | null | maxutils/maxbase/include/maxbase/pam_utils.hh | mariadb-ThienLy/MaxScale | 0ba6fb79b930ba90c544594e3580fc46054f6666 | [
"MIT"
] | null | null | null | maxutils/maxbase/include/maxbase/pam_utils.hh | mariadb-ThienLy/MaxScale | 0ba6fb79b930ba90c544594e3580fc46054f6666 | [
"MIT"
] | null | null | null | /*
* Copyright (c) 2018 MariaDB Corporation Ab
*
* Use of this software is governed by the Business Source License included
* in the LICENSE.TXT file and at www.mariadb.com/bsl11.
*
* Change Date: 2026-01-04
*
* On the date above, in accordance with the Business Source License, use
* of this software will be g... | 33.876923 | 104 | 0.698002 | mariadb-ThienLy |
2994964070c06bf1431bce650253ff5235b584f0 | 79,825 | cpp | C++ | external/vulkancts/modules/vulkan/renderpass/vktRenderPassMultisampleTests.cpp | jljusten/VK-GL-CTS | 711e764f295a627eebe677a54ebc85d58d6e8920 | [
"Apache-2.0"
] | 1 | 2021-02-25T09:06:00.000Z | 2021-02-25T09:06:00.000Z | external/vulkancts/modules/vulkan/renderpass/vktRenderPassMultisampleTests.cpp | jljusten/VK-GL-CTS | 711e764f295a627eebe677a54ebc85d58d6e8920 | [
"Apache-2.0"
] | null | null | null | external/vulkancts/modules/vulkan/renderpass/vktRenderPassMultisampleTests.cpp | jljusten/VK-GL-CTS | 711e764f295a627eebe677a54ebc85d58d6e8920 | [
"Apache-2.0"
] | null | null | null | /*-------------------------------------------------------------------------
* Vulkan Conformance Tests
* ------------------------
*
* Copyright (c) 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 ob... | 38.120821 | 240 | 0.675102 | jljusten |
2994d67d3bbf366a8f0401d3b7f7fb238dd697bf | 476,963 | cpp | C++ | src/parser/SV3_1aPpParser.cpp | pieter3d/Surelog | 4c21d5791553cf23090b5c4cdfa61a56d9a38482 | [
"Apache-2.0"
] | null | null | null | src/parser/SV3_1aPpParser.cpp | pieter3d/Surelog | 4c21d5791553cf23090b5c4cdfa61a56d9a38482 | [
"Apache-2.0"
] | null | null | null | src/parser/SV3_1aPpParser.cpp | pieter3d/Surelog | 4c21d5791553cf23090b5c4cdfa61a56d9a38482 | [
"Apache-2.0"
] | null | null | null |
// Generated from SV3_1aPpParser.g4 by ANTLR 4.9.2
#include "SV3_1aPpParserListener.h"
#include "SV3_1aPpParser.h"
using namespace antlrcpp;
using namespace antlr4;
SV3_1aPpParser::SV3_1aPpParser(TokenStream *input) : Parser(input) {
_interpreter = new atn::ParserATNSimulator(this, _atn, _decisionToDFA, _share... | 35.628819 | 183 | 0.692337 | pieter3d |
2994f6aedab245f59c466dd74f25216a43ccd0f1 | 1,458 | cpp | C++ | src/Network/Timer.cpp | demonatic/Rinx | 6e89150ea1ee22a90534c682e32923a30ed044e8 | [
"MIT"
] | 3 | 2020-05-21T09:23:59.000Z | 2021-03-17T09:17:55.000Z | src/Network/Timer.cpp | demonatic/Rinx | 6e89150ea1ee22a90534c682e32923a30ed044e8 | [
"MIT"
] | null | null | null | src/Network/Timer.cpp | demonatic/Rinx | 6e89150ea1ee22a90534c682e32923a30ed044e8 | [
"MIT"
] | null | null | null | #include "Rinx/Network/Timer.h"
#include "Rinx/Network/EventLoop.h"
#include "Rinx/Network/TimerHeap.h"
namespace Rinx {
RxTimer::RxTimer(RxEventLoop *eventloop):_id(std::numeric_limits<uint64_t>::max()),
_heap_index(std::numeric_limits<size_t>::max()),_duration(0),
_is_active(false),_is_repeat(false),_eventl... | 19.184211 | 92 | 0.709877 | demonatic |
2995d8b0b827db402e30e324c0954f11c57155c4 | 887 | hpp | C++ | alpaka/include/alpaka/core/RemoveRestrict.hpp | ComputationalRadiationPhysics/mallocMC | bb2b32a4a56f7c892e14454bf6aa373a4870c32c | [
"MIT"
] | 25 | 2015-01-30T12:19:48.000Z | 2020-10-30T07:52:45.000Z | alpaka/include/alpaka/core/RemoveRestrict.hpp | ComputationalRadiationPhysics/mallocMC | bb2b32a4a56f7c892e14454bf6aa373a4870c32c | [
"MIT"
] | 101 | 2015-01-06T11:31:26.000Z | 2020-11-09T13:51:19.000Z | alpaka/include/alpaka/core/RemoveRestrict.hpp | ComputationalRadiationPhysics/mallocMC | bb2b32a4a56f7c892e14454bf6aa373a4870c32c | [
"MIT"
] | 10 | 2015-06-10T07:54:30.000Z | 2020-05-06T10:07:39.000Z | /* Copyright 2021 Rene Widera
*
* This file is part of alpaka.
*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*/
#pragma once
#include <alpaka/core/BoostPred... | 21.634146 | 70 | 0.659526 | ComputationalRadiationPhysics |
299723c4062ae1c9010a18020442c75dbb697dda | 22,970 | cpp | C++ | rts/c/DyLib/Renderer/AAPLMathUtilities.cpp | MilesLitteral/futhark | 338a524d4b9897257a963aa62e640ab6dc5532ef | [
"ISC"
] | 1 | 2022-02-13T15:11:20.000Z | 2022-02-13T15:11:20.000Z | rts/c/DyLib/Renderer/AAPLMathUtilities.cpp | MilesLitteral/futhark | 338a524d4b9897257a963aa62e640ab6dc5532ef | [
"ISC"
] | null | null | null | rts/c/DyLib/Renderer/AAPLMathUtilities.cpp | MilesLitteral/futhark | 338a524d4b9897257a963aa62e640ab6dc5532ef | [
"ISC"
] | null | null | null | /*
See LICENSE folder for this sample’s licensing information.
Abstract:
Implementation of vector, matrix, and quaternion math utility functions useful for 3D graphics
rendering with Metal
Metal uses column-major matrices and column-vector inputs.
linearIndex cr example with reference elements... | 36.059655 | 144 | 0.552852 | MilesLitteral |
2998287fdd5ba0d16182726e8e58792abd6895a0 | 1,337 | cpp | C++ | NGS_testing/utility/utilityTest.cpp | NGS-lib/NGSplusplus | 7fa9fff2453917f24e9e35dab1f04a9be67f7f13 | [
"BSL-1.0"
] | 3 | 2015-11-23T14:24:06.000Z | 2017-11-21T21:04:06.000Z | NGS_testing/utility/utilityTest.cpp | NGS-lib/NGSplusplus | 7fa9fff2453917f24e9e35dab1f04a9be67f7f13 | [
"BSL-1.0"
] | null | null | null | NGS_testing/utility/utilityTest.cpp | NGS-lib/NGSplusplus | 7fa9fff2453917f24e9e35dab1f04a9be67f7f13 | [
"BSL-1.0"
] | null | null | null | #include "NGS++.h"
#include "gtest.h"
#include "gnuplot_i.hpp"
using namespace std;
TEST(utility, MeanTest)
{
const vector<float> ourValues= {22, 11, 30, 0 ,50};
EXPECT_FLOAT_EQ(utility::getMean(ourValues),22.6);
}
TEST(utility, SDTest)
{
const vector<float> ourValues= {22, 11, 30, 0 ,50};
EXPECT_NEA... | 21.918033 | 86 | 0.691847 | NGS-lib |
29989d7fe323d9ae3c9ae0bc612f83d807c84f04 | 8,531 | cpp | C++ | cppcache/integration/test/PartitionRegionOpsTest.cpp | gaussianrecurrence/geode-native | fbecd6bc77b9c4d63ebacb8a74167bedb88d1414 | [
"Apache-2.0"
] | 1 | 2018-09-08T05:05:22.000Z | 2018-09-08T05:05:22.000Z | cppcache/integration/test/PartitionRegionOpsTest.cpp | pivotal-jbarrett/geode-native | 50a441c4c0f78679558d520eaf20022ae51de3ff | [
"Apache-2.0"
] | 1 | 2020-10-05T11:41:41.000Z | 2020-10-05T11:41:41.000Z | cppcache/integration/test/PartitionRegionOpsTest.cpp | pivotal-jbarrett/geode-native | 50a441c4c0f78679558d520eaf20022ae51de3ff | [
"Apache-2.0"
] | null | null | null | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may ... | 32.192453 | 80 | 0.707186 | gaussianrecurrence |
299ba99627f6fde9d05afedbabdbc5a072c5a0b9 | 9,531 | cpp | C++ | Game.cpp | veethebraun/ld42 | c0f183557883f125c9678eb5b73151a74524a699 | [
"MIT"
] | null | null | null | Game.cpp | veethebraun/ld42 | c0f183557883f125c9678eb5b73151a74524a699 | [
"MIT"
] | null | null | null | Game.cpp | veethebraun/ld42 | c0f183557883f125c9678eb5b73151a74524a699 | [
"MIT"
] | null | null | null | //
// Created by vbrau on 4/18/2018.
//
#include <iostream>
#include "Game.h"
#include "GUI/Commands/TileClickCommand.h"
#include "GUI/Commands/TimeTickCommand.h"
#include "GUI/Commands/SelectBuildingCommand.h"
#include "GUI/Commands/NewRowCommand.h"
#include "GUI/Commands/LaunchCommand.h"
#include "GUI/Commands/PlayG... | 26.475 | 155 | 0.577904 | veethebraun |
299bc19f65ea75308f4e8f085432b7b996bd1e88 | 6,666 | cc | C++ | ann_0.2/samples/ann_sample.cc | hrakaroo/soda-water-ray-tracer | 5a0e94db3601efe43e28d69249b8c822627a40e2 | [
"Unlicense"
] | 3 | 2019-03-22T20:50:37.000Z | 2019-06-26T21:13:50.000Z | ann_0.2/samples/ann_sample.cc | hrakaroo/soda-water-ray-tracer | 5a0e94db3601efe43e28d69249b8c822627a40e2 | [
"Unlicense"
] | null | null | null | ann_0.2/samples/ann_sample.cc | hrakaroo/soda-water-ray-tracer | 5a0e94db3601efe43e28d69249b8c822627a40e2 | [
"Unlicense"
] | 3 | 2019-06-26T21:13:44.000Z | 2020-05-26T22:03:46.000Z | //----------------------------------------------------------------------
// File: ann_sample.cc
// Programmer: Sunil Arya and David Mount
// Last modified: 03/04/98 (Release 0.1)
// Description: Sample program for ANN
//----------------------------------------------------------------------
// Copyright (c) 1997-1998 U... | 34.360825 | 77 | 0.546355 | hrakaroo |
299bda8a4f2e27ef2564f41758237be080a20ab4 | 2,832 | cpp | C++ | inject/breakpoint.cpp | CyrusVorazan/th09mp | c052633efda6254481b0bb96eaf4c3d01b1aa6fc | [
"MIT"
] | 5 | 2020-03-04T16:40:10.000Z | 2021-01-23T17:10:57.000Z | inject/breakpoint.cpp | CyrusVorazan/th09mp | c052633efda6254481b0bb96eaf4c3d01b1aa6fc | [
"MIT"
] | null | null | null | inject/breakpoint.cpp | CyrusVorazan/th09mp | c052633efda6254481b0bb96eaf4c3d01b1aa6fc | [
"MIT"
] | 1 | 2021-01-20T21:28:54.000Z | 2021-01-20T21:28:54.000Z | #include "breakpoint.h"
#include "inject.h"
#include <Windows.h>
#include <cstdio>
namespace th09mp {
uint32_t __stdcall BPProcess(struct th09mp::BPInfo* BPInfo, struct th09mp::x86Regs* Regs) {
uint32_t esp_previous = Regs->esp;
th09mp::BPCaveExec DoCaveExec = BPInfo->BPFunc(Regs, BPInfo->BPParams... | 33.714286 | 182 | 0.663842 | CyrusVorazan |
299dda8fbd59750e04f4455c99cd9f808f7f5206 | 34,084 | cc | C++ | internal/ceres/covariance_impl.cc | txstc55/ceres-solver | 95471f681b7e1b3354443bd02f1c2cdf2d8dd76d | [
"BSD-3-Clause"
] | 2 | 2020-04-04T15:12:13.000Z | 2021-06-10T10:50:00.000Z | internal/ceres/covariance_impl.cc | txstc55/ceres-solver | 95471f681b7e1b3354443bd02f1c2cdf2d8dd76d | [
"BSD-3-Clause"
] | null | null | null | internal/ceres/covariance_impl.cc | txstc55/ceres-solver | 95471f681b7e1b3354443bd02f1c2cdf2d8dd76d | [
"BSD-3-Clause"
] | 2 | 2020-01-21T02:07:11.000Z | 2021-06-10T10:50:32.000Z | // Ceres Solver - A fast non-linear least squares minimizer
// Copyright 2015 Google Inc. All rights reserved.
// http://ceres-solver.org/
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are met:
//
// * Redistributions of so... | 37.088139 | 80 | 0.685424 | txstc55 |
29a0d0b895ffca8b75cdc853c3c3bb7865089cc0 | 1,238 | cc | C++ | translator/attribute.cc | wahibium/KFF | 609e5afac8a9477dd1af31eacadbcd5b61530113 | [
"MIT"
] | 11 | 2015-06-08T22:16:47.000Z | 2022-03-19T15:11:14.000Z | translator/attribute.cc | wahibium/KFF | 609e5afac8a9477dd1af31eacadbcd5b61530113 | [
"MIT"
] | null | null | null | translator/attribute.cc | wahibium/KFF | 609e5afac8a9477dd1af31eacadbcd5b61530113 | [
"MIT"
] | 4 | 2015-06-12T21:24:47.000Z | 2021-04-23T09:58:33.000Z | #include "attribute.h"
#include "common.h"
#include "range.h"
namespace kff {
namespace translator {
const std::string GridCallAttribute::name = "GridCall";
GridCallAttribute::GridCallAttribute(SgInitializedName *grid_var,
KIND k):
grid_var_(grid_var), kind_(k) {
}
GridCallA... | 25.791667 | 68 | 0.693053 | wahibium |
29a1f87e589ddd72c40a242dbb70a3ec6f5b5507 | 4,679 | cpp | C++ | tc 160+/PointsGame.cpp | ibudiselic/contest-problem-solutions | 88082981b4d87da843472e3ca9ed5f4c42b3f0aa | [
"BSD-2-Clause"
] | 3 | 2015-05-25T06:24:37.000Z | 2016-09-10T07:58:00.000Z | tc 160+/PointsGame.cpp | ibudiselic/contest-problem-solutions | 88082981b4d87da843472e3ca9ed5f4c42b3f0aa | [
"BSD-2-Clause"
] | null | null | null | tc 160+/PointsGame.cpp | ibudiselic/contest-problem-solutions | 88082981b4d87da843472e3ca9ed5f4c42b3f0aa | [
"BSD-2-Clause"
] | 5 | 2015-05-25T06:24:40.000Z | 2021-08-19T19:22:29.000Z | #include <algorithm>
#include <cassert>
#include <cstdio>
#include <iostream>
#include <sstream>
#include <string>
#include <vector>
#include <cstring>
#include <cmath>
using namespace std;
vector<int> X, Y;
const int SZ = 531441;
bool a_done[SZ], b_done[SZ];
double a_dp[SZ], b_dp[SZ];
int n;
int all... | 30.782895 | 315 | 0.499466 | ibudiselic |
29a2be66a80ba00de24894c5d643cda4e492e37d | 2,988 | cpp | C++ | tc 160+/TrueFalse.cpp | ibudiselic/contest-problem-solutions | 88082981b4d87da843472e3ca9ed5f4c42b3f0aa | [
"BSD-2-Clause"
] | 3 | 2015-05-25T06:24:37.000Z | 2016-09-10T07:58:00.000Z | tc 160+/TrueFalse.cpp | ibudiselic/contest-problem-solutions | 88082981b4d87da843472e3ca9ed5f4c42b3f0aa | [
"BSD-2-Clause"
] | null | null | null | tc 160+/TrueFalse.cpp | ibudiselic/contest-problem-solutions | 88082981b4d87da843472e3ca9ed5f4c42b3f0aa | [
"BSD-2-Clause"
] | 5 | 2015-05-25T06:24:40.000Z | 2021-08-19T19:22:29.000Z | #include <algorithm>
#include <cassert>
#include <cstdio>
#include <iostream>
#include <sstream>
#include <string>
#include <vector>
#include <cstring>
using namespace std;
char cur[20];
bool ok[20];
int n;
vector<int> c;
vector<string> a;
int cnt(int x) {
int ret = 0;
for (int i=0; i<n; ++i)
i... | 28.457143 | 315 | 0.563253 | ibudiselic |
29a5cae4b561c912cc31fafd84e4382a3c1d69e1 | 1,367 | cpp | C++ | clickhouse/columns/uuid.cpp | inkrement/clickhouse-cpp | 4bdd041213196c6c3eb885ea6312b0bbe5545437 | [
"Apache-2.0"
] | null | null | null | clickhouse/columns/uuid.cpp | inkrement/clickhouse-cpp | 4bdd041213196c6c3eb885ea6312b0bbe5545437 | [
"Apache-2.0"
] | null | null | null | clickhouse/columns/uuid.cpp | inkrement/clickhouse-cpp | 4bdd041213196c6c3eb885ea6312b0bbe5545437 | [
"Apache-2.0"
] | null | null | null | #include "uuid.h"
#include "utils.h"
#include <stdexcept>
namespace clickhouse {
ColumnUUID::ColumnUUID()
: Column(Type::CreateUUID())
, data_(std::make_shared<ColumnUInt64>())
{
}
ColumnUUID::ColumnUUID(ColumnRef data)
: Column(Type::CreateUUID())
, data_(data->As<ColumnUInt64>())
{
if (data_->... | 21.359375 | 102 | 0.647403 | inkrement |
29a62417cd03ec6cb9be9eb57c21cbba91f2182c | 24,218 | cpp | C++ | openstudiocore/src/utilities/sql/Test/SqlFile_GTest.cpp | OpenStudioThailand/OpenStudio | 4e2173955e687ef1b934904acc10939ac0bed52f | [
"MIT"
] | 1 | 2017-10-13T09:23:04.000Z | 2017-10-13T09:23:04.000Z | openstudiocore/src/utilities/sql/Test/SqlFile_GTest.cpp | OpenStudioThailand/OpenStudio | 4e2173955e687ef1b934904acc10939ac0bed52f | [
"MIT"
] | null | null | null | openstudiocore/src/utilities/sql/Test/SqlFile_GTest.cpp | OpenStudioThailand/OpenStudio | 4e2173955e687ef1b934904acc10939ac0bed52f | [
"MIT"
] | 1 | 2022-03-20T13:19:42.000Z | 2022-03-20T13:19:42.000Z | /***********************************************************************************************************************
* OpenStudio(R), Copyright (c) 2008-2017, Alliance for Sustainable Energy, LLC. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without modification, are perm... | 48.436 | 159 | 0.697498 | OpenStudioThailand |
29a728478cd6638426e2eb471bc96ff1ca46f788 | 2,608 | cpp | C++ | solved/pharmacy.cpp | AudreyFelicio/Kattis-Solutions | bc5856e1c7d9b8d8c2677e2af5e84a37110200e8 | [
"MIT"
] | null | null | null | solved/pharmacy.cpp | AudreyFelicio/Kattis-Solutions | bc5856e1c7d9b8d8c2677e2af5e84a37110200e8 | [
"MIT"
] | null | null | null | solved/pharmacy.cpp | AudreyFelicio/Kattis-Solutions | bc5856e1c7d9b8d8c2677e2af5e84a37110200e8 | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
using namespace std;
struct Prescription {
int d;
int time;
};
bool cmp(const Prescription &p1, const Prescription &p2) {
if (p1.d == p2.d) {
return p1.time > p2.time;
}
return p1.d > p2.d;
}
int main() {
ios::sync_with_stdio(false);
cin.tie(NULL);
cout.tie(NULL);
int ... | 30.682353 | 84 | 0.616948 | AudreyFelicio |
29a7d24e4aef3b090714d6f11c7495e9f09a7e12 | 3,182 | cpp | C++ | pq-async-tests/type_tests/bin_types_test.cpp | micheldenommee/libpq-async | c490e36c686969e2edcac5cde5c05e5efec8d7fc | [
"MIT"
] | 1 | 2019-11-17T19:06:45.000Z | 2019-11-17T19:06:45.000Z | pq-async-tests/type_tests/bin_types_test.cpp | micheldenommee/libpq-async | c490e36c686969e2edcac5cde5c05e5efec8d7fc | [
"MIT"
] | null | null | null | pq-async-tests/type_tests/bin_types_test.cpp | micheldenommee/libpq-async | c490e36c686969e2edcac5cde5c05e5efec8d7fc | [
"MIT"
] | null | null | null | /*
MIT License
Copyright (c) 2011-2019 Michel Dénommée
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, pu... | 27.431034 | 78 | 0.594909 | micheldenommee |
29aad12ce60b535be7063b34f662c9184a9b6d0c | 10,963 | cpp | C++ | src/slg/kernels/materialdefs_funcs_carpaint_kernel.cpp | tschw/LuxCore | 111009811c31a74595e25c290bfaa7d715db4192 | [
"Apache-2.0"
] | null | null | null | src/slg/kernels/materialdefs_funcs_carpaint_kernel.cpp | tschw/LuxCore | 111009811c31a74595e25c290bfaa7d715db4192 | [
"Apache-2.0"
] | null | null | null | src/slg/kernels/materialdefs_funcs_carpaint_kernel.cpp | tschw/LuxCore | 111009811c31a74595e25c290bfaa7d715db4192 | [
"Apache-2.0"
] | null | null | null | #include <string>
namespace slg { namespace ocl {
std::string KernelSource_materialdefs_funcs_carpaint =
"#line 2 \"materialdefs_funcs_carpaint.cl\"\n"
"\n"
"/***************************************************************************\n"
" * Copyright 1998-2018 by authors (see AUTHORS.txt) *\n"
... | 36.421927 | 175 | 0.573018 | tschw |
29ae145b74d722e336c5d46383a35124c60b0575 | 1,597 | cpp | C++ | Engine/ac/dynobj/scriptset.cpp | Vikram1323/ags | 6fda61b3536533bab6572cebf1afec90bd69dc66 | [
"Artistic-2.0"
] | 11 | 2015-01-25T09:59:17.000Z | 2019-07-08T15:06:06.000Z | Engine/ac/dynobj/scriptset.cpp | jonreyno/ags-ios | 988cd091dcb8be8c069890b52235ff86af07117e | [
"Artistic-2.0"
] | 3 | 2019-05-09T01:24:14.000Z | 2019-06-12T12:16:33.000Z | Engine/ac/dynobj/scriptset.cpp | jonreyno/ags-ios | 988cd091dcb8be8c069890b52235ff86af07117e | [
"Artistic-2.0"
] | 1 | 2019-05-09T00:42:31.000Z | 2019-05-09T00:42:31.000Z | //=============================================================================
//
// Adventure Game Studio (AGS)
//
// Copyright (C) 1999-2011 Chris Jones and 2011-20xx others
// The full list of copyright holders can be found in the Copyright.txt
// file, which is part of this source code distribution.
//
// The AGS ... | 31.313725 | 84 | 0.636193 | Vikram1323 |
29af43aebf340ac15ac86508f2091910b2240dcf | 16,587 | cpp | C++ | Source/GUI/Qt/GUI_Main_Technical_Table.cpp | MediaArea/BWFMetaEdit | 9bac7edb79405fe49dc37609e73d72af82759724 | [
"0BSD"
] | 25 | 2017-10-16T05:16:42.000Z | 2022-03-19T09:30:14.000Z | Source/GUI/Qt/GUI_Main_Technical_Table.cpp | MediaArea/BWFMetaEdit | 9bac7edb79405fe49dc37609e73d72af82759724 | [
"0BSD"
] | 112 | 2017-10-18T18:10:37.000Z | 2022-02-15T11:19:03.000Z | Source/GUI/Qt/GUI_Main_Technical_Table.cpp | MediaArea/BWFMetaEdit | 9bac7edb79405fe49dc37609e73d72af82759724 | [
"0BSD"
] | 15 | 2017-10-31T00:02:48.000Z | 2021-11-13T21:00:15.000Z | // BWF MetaEdit GUI - A GUI for BWF MetaEdit
//
// This code was created in 2010 for the Library of Congress and the
// other federal government agencies participating in the Federal Agencies
// Digital Guidelines Initiative and it is in the public domain.
//
//++++++++++++++++++++++++++++++++++++++++++++++++++++... | 37.956522 | 382 | 0.516127 | MediaArea |
29b2f8cfdc3723dfd87739412655cc75ae0fa0b9 | 32,975 | cxx | C++ | TRD/AliTRDqaBlackEvents.cxx | AllaMaevskaya/AliRoot | c53712645bf1c7d5f565b0d3228e3a6b9b09011a | [
"BSD-3-Clause"
] | 52 | 2016-12-11T13:04:01.000Z | 2022-03-11T11:49:35.000Z | TRD/AliTRDqaBlackEvents.cxx | AllaMaevskaya/AliRoot | c53712645bf1c7d5f565b0d3228e3a6b9b09011a | [
"BSD-3-Clause"
] | 1,388 | 2016-11-01T10:27:36.000Z | 2022-03-30T15:26:09.000Z | TRD/AliTRDqaBlackEvents.cxx | AllaMaevskaya/AliRoot | c53712645bf1c7d5f565b0d3228e3a6b9b09011a | [
"BSD-3-Clause"
] | 275 | 2016-06-21T20:24:05.000Z | 2022-03-31T13:06:19.000Z | /**************************************************************************
* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
* *
* Author: The ALICE Off-line Project. *
* Contributors ... | 27.342454 | 114 | 0.528643 | AllaMaevskaya |
29b95b0e5692a4119f1477a545fcc57820c2cd55 | 1,284 | cc | C++ | awgn.cc | aicodix/disorders | dd82ccef185ed7746f732bbf85a10187095f3599 | [
"0BSD"
] | 1 | 2021-05-28T21:04:53.000Z | 2021-05-28T21:04:53.000Z | awgn.cc | aicodix/disorders | dd82ccef185ed7746f732bbf85a10187095f3599 | [
"0BSD"
] | null | null | null | awgn.cc | aicodix/disorders | dd82ccef185ed7746f732bbf85a10187095f3599 | [
"0BSD"
] | 2 | 2021-07-09T15:04:08.000Z | 2021-10-06T13:51:17.000Z | /*
Additive white Gaussian noise
Copyright 2020 Ahmet Inan <inan@aicodix.de>
*/
#include <iostream>
#include <cmath>
#include <random>
#include <functional>
#include "complex.hh"
#include "wav.hh"
int main(int argc, char **argv)
{
if (argc != 4) {
std::cerr << "usage: " << argv[0] << " OUTPUT INPUT AWGN" << std::... | 23.777778 | 96 | 0.668224 | aicodix |
29ba28f94c8318d0df42d635902ab45a9c6b8feb | 1,237 | hpp | C++ | demo_app/mipmap_pipelines.hpp | nvpro-samples/vk_compute_mipmaps | 613b94e4d36e6f357472e9c7a3163046deb55678 | [
"Apache-2.0"
] | 12 | 2021-07-24T18:33:22.000Z | 2022-03-12T16:20:49.000Z | demo_app/mipmap_pipelines.hpp | nvpro-samples/vk_compute_mipmaps | 613b94e4d36e6f357472e9c7a3163046deb55678 | [
"Apache-2.0"
] | null | null | null | demo_app/mipmap_pipelines.hpp | nvpro-samples/vk_compute_mipmaps | 613b94e4d36e6f357472e9c7a3163046deb55678 | [
"Apache-2.0"
] | 3 | 2021-08-04T02:27:12.000Z | 2022-03-13T08:43:24.000Z | // Copyright 2021 NVIDIA CORPORATION
// SPDX-License-Identifier: Apache-2.0
#ifndef VK_COMPUTE_MIPMAPS_DEMO_MIPMAP_PIPELINES_HPP_
#define VK_COMPUTE_MIPMAPS_DEMO_MIPMAP_PIPELINES_HPP_
#include "pipeline_alternative.hpp"
#include <vulkan/vulkan.h>
class ScopedImage;
struct PipelineAlternative;
// Class holding compu... | 32.552632 | 75 | 0.74131 | nvpro-samples |
29babc06881724e1bbeedbfee85646b6123ed545 | 2,437 | cpp | C++ | code/engine/xrGame/alife_online_offline_group_brain.cpp | InNoHurryToCode/xray-162 | fff9feb9ffb681b3c6ba1dc7c4534fe80006f87e | [
"Apache-2.0"
] | 58 | 2016-11-20T19:14:35.000Z | 2021-12-27T21:03:35.000Z | code/engine/xrGame/alife_online_offline_group_brain.cpp | InNoHurryToCode/xray-162 | fff9feb9ffb681b3c6ba1dc7c4534fe80006f87e | [
"Apache-2.0"
] | 59 | 2016-09-10T10:44:20.000Z | 2018-09-03T19:07:30.000Z | code/engine/xrGame/alife_online_offline_group_brain.cpp | InNoHurryToCode/xray-162 | fff9feb9ffb681b3c6ba1dc7c4534fe80006f87e | [
"Apache-2.0"
] | 39 | 2017-02-05T13:35:37.000Z | 2022-03-14T11:00:12.000Z | ////////////////////////////////////////////////////////////////////////////
// Module : alife_online_offline_group_brain.cpp
// Created : 25.10.2005
// Modified : 25.10.2005
// Author : Dmitriy Iassenev
// Description : ALife Online Offline Group brain class
//////////////////////////////////////////////////////... | 30.848101 | 99 | 0.733279 | InNoHurryToCode |
29bbce56dee1f5b2994a599318982a918db4cb80 | 4,387 | cc | C++ | Print/src/ComboHitPrinter.cc | resnegfk/Offline | 4ba81dad54486188fa83fea8c085438d104afbbc | [
"Apache-2.0"
] | 9 | 2020-03-28T00:21:41.000Z | 2021-12-09T20:53:26.000Z | Print/src/ComboHitPrinter.cc | resnegfk/Offline | 4ba81dad54486188fa83fea8c085438d104afbbc | [
"Apache-2.0"
] | 684 | 2019-08-28T23:37:43.000Z | 2022-03-31T22:47:45.000Z | Print/src/ComboHitPrinter.cc | resnegfk/Offline | 4ba81dad54486188fa83fea8c085438d104afbbc | [
"Apache-2.0"
] | 61 | 2019-08-16T23:28:08.000Z | 2021-12-20T08:29:48.000Z |
#include "Offline/Print/inc/ComboHitPrinter.hh"
#include "art/Framework/Principal/Provenance.h"
#include <string>
#include <iomanip>
void
mu2e::ComboHitPrinter::Print(art::Event const& event,
std::ostream& os) {
if(verbose()<1) return;
if(tags().empty()) {
// if a list of instances not specified, print a... | 33.48855 | 93 | 0.562115 | resnegfk |
29bc4030b814e84e526e18ca38935cd597eb4f17 | 5,758 | cpp | C++ | dbms/src/Processors/Transforms/CreatingSetsTransform.cpp | enriqueChen/ClickHouse | aef0e2c0a387e26645fca340e6ec7fc332562149 | [
"Apache-2.0"
] | null | null | null | dbms/src/Processors/Transforms/CreatingSetsTransform.cpp | enriqueChen/ClickHouse | aef0e2c0a387e26645fca340e6ec7fc332562149 | [
"Apache-2.0"
] | null | null | null | dbms/src/Processors/Transforms/CreatingSetsTransform.cpp | enriqueChen/ClickHouse | aef0e2c0a387e26645fca340e6ec7fc332562149 | [
"Apache-2.0"
] | 1 | 2020-05-22T18:44:44.000Z | 2020-05-22T18:44:44.000Z | #include <Processors/Transforms/CreatingSetsTransform.h>
#include <DataStreams/BlockStreamProfileInfo.h>
#include <DataStreams/IBlockInputStream.h>
#include <DataStreams/IBlockOutputStream.h>
#include <Interpreters/Set.h>
#include <Interpreters/Join.h>
#include <Storages/IStorage.h>
#include <iomanip>
#include <Data... | 25.705357 | 115 | 0.638242 | enriqueChen |
29bd3599ae02f304974873a076b7847649ed25cf | 531 | cpp | C++ | Chapter-6-Functions/Review Questions and Exercises/Algorithm Workbench/32.cpp | jesushilarioh/C-Plus-Plus | bbff921460ac4267af48558f040c7d82ccf42d5e | [
"MIT"
] | 3 | 2019-10-28T01:12:46.000Z | 2021-10-16T09:16:31.000Z | Chapter-6-Functions/Review Questions and Exercises/Algorithm Workbench/32.cpp | jesushilarioh/C-Plus-Plus | bbff921460ac4267af48558f040c7d82ccf42d5e | [
"MIT"
] | null | null | null | Chapter-6-Functions/Review Questions and Exercises/Algorithm Workbench/32.cpp | jesushilarioh/C-Plus-Plus | bbff921460ac4267af48558f040c7d82ccf42d5e | [
"MIT"
] | 4 | 2020-04-10T17:22:17.000Z | 2021-11-04T14:34:00.000Z | /********************************************************************
*
* 32. Examine the following function header, then write an example
* call to the function.
*
* void showValue(int quantity)
*
* Jesus Hilario Hernandez
* December 3, 2018
*
******************************************************... | 20.423077 | 69 | 0.45951 | jesushilarioh |
29c14e372539127879b1434f8bbd0de7ed4eef35 | 3,286 | hpp | C++ | include/cx/utility.hpp | zemasoft/wildcards | 5662507f01f5d0a4ec22f45749214276ed366d1b | [
"BSL-1.0"
] | 39 | 2018-04-17T08:25:12.000Z | 2022-03-08T17:15:50.000Z | 3rd/wildcards/include/cx/utility.hpp | CppCXY/EmmyLuaCodeStyle | ffd2205f59893e12ad07dc151edce26d1c599065 | [
"MIT"
] | 30 | 2022-01-28T06:03:31.000Z | 2022-03-26T04:33:44.000Z | include/cx/utility.hpp | zemasoft/wildcards | 5662507f01f5d0a4ec22f45749214276ed366d1b | [
"BSL-1.0"
] | 4 | 2019-10-29T23:29:39.000Z | 2021-02-06T10:52:13.000Z | // Copyright Tomas Zeman 2018.
// 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 CX_UTILITY_HPP
#define CX_UTILITY_HPP
#include <cstddef> // std::size_t
#include <type_traits> // std::integral_const... | 23.304965 | 94 | 0.716372 | zemasoft |
29c2b3ed50987ca7dd32892994185b58281efd5e | 4,888 | cpp | C++ | src/qt/ballotballotwindow.cpp | truthcoin/truthcoin-cpp | a85161e8a2bbb6bc4d0a5553403f0b8b1f9ac529 | [
"MIT"
] | 34 | 2015-06-23T16:06:35.000Z | 2021-04-02T20:34:11.000Z | src/qt/ballotballotwindow.cpp | truthcoin/truthcoin-cpp | a85161e8a2bbb6bc4d0a5553403f0b8b1f9ac529 | [
"MIT"
] | 2 | 2016-05-13T15:21:08.000Z | 2016-05-15T17:43:24.000Z | src/qt/ballotballotwindow.cpp | truthcoin/truthcoin-cpp | a85161e8a2bbb6bc4d0a5553403f0b8b1f9ac529 | [
"MIT"
] | 6 | 2015-06-23T18:12:18.000Z | 2015-09-16T13:45:35.000Z | // Copyright (c) 2015 The Truthcoin Core developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include <QApplication>
#include <QClipboard>
#include <QGridLayout>
#include <QHBoxLayout>
#include <QItemSelection>
#include <... | 33.251701 | 92 | 0.656097 | truthcoin |
29c386d0f424391b4d1ca8712f8d9f10da0f6462 | 421 | cpp | C++ | codeforces/450A.cpp | NafiAsib/competitive-programming | 3255b2fe3329543baf9e720e1ccaf08466d77303 | [
"MIT"
] | null | null | null | codeforces/450A.cpp | NafiAsib/competitive-programming | 3255b2fe3329543baf9e720e1ccaf08466d77303 | [
"MIT"
] | null | null | null | codeforces/450A.cpp | NafiAsib/competitive-programming | 3255b2fe3329543baf9e720e1ccaf08466d77303 | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
using namespace std;
int main()
{
int n, m, num, hi = 0, index = 0, i, calc;
cin>>n>>m;
for(i = 1; i <= n; i++) {
cin>>num;
calc = (num/m);
if(m*calc != num) calc += 1;
//i/nt temp = (num%m)>0;
//cout<<temp<<endl;
if(calc >= hi) {
... | 16.84 | 46 | 0.39905 | NafiAsib |
29c41843d1fe27d9fde81c980b816c2ccad90b84 | 25,635 | cc | C++ | src/core/ext/filters/http/client/http_client_filter.cc | swami-raj/grpc | d3ed278a3710efa557c52d22468d5dfc32a07ac0 | [
"Apache-2.0"
] | null | null | null | src/core/ext/filters/http/client/http_client_filter.cc | swami-raj/grpc | d3ed278a3710efa557c52d22468d5dfc32a07ac0 | [
"Apache-2.0"
] | null | null | null | src/core/ext/filters/http/client/http_client_filter.cc | swami-raj/grpc | d3ed278a3710efa557c52d22468d5dfc32a07ac0 | [
"Apache-2.0"
] | 1 | 2021-10-15T19:31:46.000Z | 2021-10-15T19:31:46.000Z | /*
* Copyright 2015 gRPC 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... | 42.02459 | 80 | 0.71024 | swami-raj |
29c49e2aa28cb26f20e30f4fc1289eeb738ed83a | 571 | cpp | C++ | C++/Polymorphism/Shape.cpp | Allenjonesing/tutorials | c729fdd655130b021ec7ca9b619e147ae636cfa5 | [
"MIT"
] | 367 | 2015-01-12T22:43:04.000Z | 2022-03-31T02:03:27.000Z | C++/Polymorphism/Shape.cpp | uag515/tutorials | c729fdd655130b021ec7ca9b619e147ae636cfa5 | [
"MIT"
] | 3 | 2016-04-17T06:02:01.000Z | 2019-01-20T16:07:53.000Z | C++/Polymorphism/Shape.cpp | uag515/tutorials | c729fdd655130b021ec7ca9b619e147ae636cfa5 | [
"MIT"
] | 212 | 2015-01-14T14:13:34.000Z | 2022-03-04T01:08:41.000Z | #include "Shape.h"
// You'll notice the implementation of these classes is just like usual,
// no "virtual" keywords or anything like that.
// Doesn't do a thing!
void CShape::draw() { return; }
// The CTriangle draw method draws an ASCII triangle
void CTriangle::draw()
{
cout << " * " << endl;
cout << " * * " <... | 19.689655 | 72 | 0.565674 | Allenjonesing |
29c4c425d12f80e3b43cedd39e21009bdc4c93c3 | 2,731 | cpp | C++ | test/select_if_test.cpp | audiohacked/gamgee | 772a095c5f0725c410e7c23e88f79d8b76e098a8 | [
"MIT"
] | 24 | 2015-01-20T16:15:46.000Z | 2019-09-16T07:53:54.000Z | test/select_if_test.cpp | audiohacked/gamgee | 772a095c5f0725c410e7c23e88f79d8b76e098a8 | [
"MIT"
] | 8 | 2015-01-30T07:27:00.000Z | 2017-07-11T21:37:17.000Z | test/select_if_test.cpp | audiohacked/gamgee | 772a095c5f0725c410e7c23e88f79d8b76e098a8 | [
"MIT"
] | 15 | 2015-01-11T05:28:26.000Z | 2022-01-18T08:47:10.000Z | #include <boost/test/unit_test.hpp>
#include <boost/dynamic_bitset.hpp>
#include "variant/variant_reader.h"
#include "variant/variant.h"
using namespace std;
using namespace gamgee;
using namespace boost;
constexpr auto GQ_THRESH = 35;
BOOST_AUTO_TEST_CASE( select_if_individual_fields ) {
const auto actual_gq_sel... | 45.516667 | 100 | 0.702307 | audiohacked |
29c5d7386046e9152e1605bb2875b42d1b8c0b61 | 20,601 | cc | C++ | MELA/src/MELANCSpline_3D_fast.cc | mostafa1993/JHUGenMELA | a28f39043d98319f1f27493cf899a13646221eda | [
"Apache-2.0"
] | null | null | null | MELA/src/MELANCSpline_3D_fast.cc | mostafa1993/JHUGenMELA | a28f39043d98319f1f27493cf899a13646221eda | [
"Apache-2.0"
] | 8 | 2020-10-02T20:02:44.000Z | 2022-01-19T15:41:05.000Z | MELA/src/MELANCSpline_3D_fast.cc | mostafa1993/JHUGenMELA | a28f39043d98319f1f27493cf899a13646221eda | [
"Apache-2.0"
] | 11 | 2020-10-07T17:15:30.000Z | 2022-03-19T10:41:52.000Z | #include "MELANCSpline_3D_fast.h"
#include <cmath>
#include "TMath.h"
#include "Riostream.h"
#include "RooAbsReal.h"
using namespace TMath;
using namespace RooFit;
using namespace std;
using namespace TNumericUtil;
ClassImp(MELANCSpline_3D_fast)
MELANCSpline_3D_fast::MELANCSpline_3D_fast() :
MELANCSplineCore()... | 37.320652 | 249 | 0.640794 | mostafa1993 |
29c74e3f2cb6c7464f17d654f431b6729d8dc157 | 3,604 | cpp | C++ | sockets/Socket.cpp | allmanaj/emojicode | 44b66adf7b50c80600a4397ccd70df6528d01aae | [
"Artistic-2.0"
] | null | null | null | sockets/Socket.cpp | allmanaj/emojicode | 44b66adf7b50c80600a4397ccd70df6528d01aae | [
"Artistic-2.0"
] | null | null | null | sockets/Socket.cpp | allmanaj/emojicode | 44b66adf7b50c80600a4397ccd70df6528d01aae | [
"Artistic-2.0"
] | null | null | null | //
// Created by Theo Weidmann on 26.03.18.
//
#include "../runtime/Runtime.h"
#include "../s/Data.h"
#include "../s/String.h"
#include "../s/Error.h"
#include <arpa/inet.h>
#include <cerrno>
#include <csignal>
#include <cstring>
#include <netdb.h>
#include <sys/socket.h>
#include <unistd.h>
using s::String;
using s:... | 29.064516 | 120 | 0.662042 | allmanaj |
29ca5633050c63589f7e31e31dd7dd8f8c51a47a | 4,033 | cpp | C++ | test/tree/tree.cpp | ho-ri1991/genetic-programming | 06d0c1f0719f4d2ddcf9c066d9de1d0bb67772b0 | [
"MIT"
] | null | null | null | test/tree/tree.cpp | ho-ri1991/genetic-programming | 06d0c1f0719f4d2ddcf9c066d9de1d0bb67772b0 | [
"MIT"
] | null | null | null | test/tree/tree.cpp | ho-ri1991/genetic-programming | 06d0c1f0719f4d2ddcf9c066d9de1d0bb67772b0 | [
"MIT"
] | null | null | null | #define BOOST_TEST_NO_LIB
#define BOOST_TEST_MAIN
#include <gp/node/node.hpp>
#include <gp/tree/tree.hpp>
#include <boost/test/unit_test.hpp>
using namespace gp;
BOOST_AUTO_TEST_SUITE(tree_test)
BOOST_AUTO_TEST_CASE(tree_test) {
auto var0 = node::NodeInterface::createInstance<node::LocalVariableNode<int>>... | 45.829545 | 135 | 0.601537 | ho-ri1991 |
29cab57d32aa22883e6804362b41524283bc8416 | 8,709 | cpp | C++ | tests/tdd/test_rsa.cpp | tjahn/mbedcrypto | 23ea27d1d7602e0f2c4e8c8c148b73ca7b4f1425 | [
"MIT"
] | 40 | 2016-04-01T15:20:24.000Z | 2022-03-24T08:38:12.000Z | tests/tdd/test_rsa.cpp | tjahn/mbedcrypto | 23ea27d1d7602e0f2c4e8c8c148b73ca7b4f1425 | [
"MIT"
] | 4 | 2017-12-12T09:04:38.000Z | 2021-01-30T04:19:05.000Z | tests/tdd/test_rsa.cpp | tjahn/mbedcrypto | 23ea27d1d7602e0f2c4e8c8c148b73ca7b4f1425 | [
"MIT"
] | 15 | 2016-07-22T02:46:23.000Z | 2020-12-23T15:57:37.000Z | #include <catch2/catch.hpp>
#include "mbedcrypto/hash.hpp"
#include "pk_common.hpp"
#include "mbedtls/bignum.h"
#include "mbedtls/rsa.h"
#include <iostream>
///////////////////////////////////////////////////////////////////////////////
namespace {
using namespace mbedcrypto;
////////////////////////////////////////... | 34.019531 | 80 | 0.582501 | tjahn |
29cc08022c891ead7f796ff870b2f64c5357bfb4 | 8,409 | cpp | C++ | grid-test/export/macos/obj/src/lime/graphics/opengl/ext/OES_compressed_paletted_texture.cpp | VehpuS/learning-haxe-and-haxeflixel | cb18c074720656797beed7333eeaced2cf323337 | [
"Apache-2.0"
] | null | null | null | grid-test/export/macos/obj/src/lime/graphics/opengl/ext/OES_compressed_paletted_texture.cpp | VehpuS/learning-haxe-and-haxeflixel | cb18c074720656797beed7333eeaced2cf323337 | [
"Apache-2.0"
] | null | null | null | grid-test/export/macos/obj/src/lime/graphics/opengl/ext/OES_compressed_paletted_texture.cpp | VehpuS/learning-haxe-and-haxeflixel | cb18c074720656797beed7333eeaced2cf323337 | [
"Apache-2.0"
] | null | null | null | // Generated by Haxe 4.1.4
#include <hxcpp.h>
#ifndef INCLUDED_lime_graphics_opengl_ext_OES_compressed_paletted_texture
#include <lime/graphics/opengl/ext/OES_compressed_paletted_texture.h>
#endif
HX_DEFINE_STACK_FRAME(_hx_pos_169dd139fd8d75fb_4_new,"lime.graphics.opengl.ext.OES_compressed_paletted_texture","new",0x4... | 49.464706 | 267 | 0.769414 | VehpuS |
29cd2e6611a04cb22090920d11b904d14c592074 | 5,004 | cpp | C++ | windows/radiobuttons.cpp | LeeDark/libui | 244c837fc510fdbaa4427be6d6a4b48e58aa000f | [
"MIT"
] | 9 | 2016-06-15T17:40:01.000Z | 2021-05-24T08:28:40.000Z | windows/radiobuttons.cpp | LeeDark/libui | 244c837fc510fdbaa4427be6d6a4b48e58aa000f | [
"MIT"
] | 1 | 2018-07-17T07:09:17.000Z | 2018-07-17T07:09:17.000Z | windows/radiobuttons.cpp | LeeDark/libui | 244c837fc510fdbaa4427be6d6a4b48e58aa000f | [
"MIT"
] | 2 | 2017-03-25T20:44:40.000Z | 2018-02-05T22:37:20.000Z | // 20 may 2015
#include "uipriv_windows.hpp"
// desired behavior:
// - tab moves between the radio buttons and the adjacent controls
// - arrow keys navigate between radio buttons
// - arrow keys do not leave the radio buttons (this is done in control.c)
// - arrow keys wrap around bare groups (if the previous control... | 25.401015 | 206 | 0.721023 | LeeDark |
29d02ac4c75905e2181f65d6566b6b064b820556 | 15,434 | cc | C++ | nurandom/RandomUtils/NuRandomService.cc | NuSoftHEP/nurandom | 9e02e51dd273d20cfd5940295a34cf82fc8707a9 | [
"Apache-2.0"
] | null | null | null | nurandom/RandomUtils/NuRandomService.cc | NuSoftHEP/nurandom | 9e02e51dd273d20cfd5940295a34cf82fc8707a9 | [
"Apache-2.0"
] | null | null | null | nurandom/RandomUtils/NuRandomService.cc | NuSoftHEP/nurandom | 9e02e51dd273d20cfd5940295a34cf82fc8707a9 | [
"Apache-2.0"
] | null | null | null | /**
* @file NuRandomService_service.cc
* @brief Assists in the distribution of guaranteed unique seeds to all engines within a job.
* @author Rob Kutschke (kutschke@fnal.gov)
* @see `nurandom/RandomUtils/NuRandomService.h`
* `nurandom/RandomUtils/Providers/SeedMaster.h`
*/
// NuRandomService header
#include... | 38.974747 | 94 | 0.643773 | NuSoftHEP |
29d27708d7907287819fd576685433bf6dbc6a0a | 13,178 | cpp | C++ | gdal/gcore/gdaldefaultasync.cpp | dtusk/gdal1 | 30dcdc1eccbca2331674f6421f1c5013807da609 | [
"MIT"
] | 3 | 2017-01-12T10:18:56.000Z | 2020-03-21T16:42:55.000Z | gdal/gcore/gdaldefaultasync.cpp | ShinNoNoir/gdal-1.11.5-vs2015 | 5d544e176a4c11f9bcd12a0fe66f97fd157824e6 | [
"MIT"
] | null | null | null | gdal/gcore/gdaldefaultasync.cpp | ShinNoNoir/gdal-1.11.5-vs2015 | 5d544e176a4c11f9bcd12a0fe66f97fd157824e6 | [
"MIT"
] | null | null | null | /******************************************************************************
* $Id: gdaldataset.cpp 16796 2009-04-17 23:35:04Z normanb $
*
* Project: GDAL Core
* Purpose: Implementation of GDALDefaultAsyncReader and the
* GDALAsyncReader base class.
* Author: Frank Warmerdam, warmerdam@pobox.com... | 41.18125 | 154 | 0.46183 | dtusk |
29d88bed151491adda2d93677ad7a2a8b32f853b | 7,640 | cpp | C++ | MavLinkCom/src/MavLinkMessageBase.cpp | JaganathSahu/Microsoft-Open-Source-Code | bf5cc70395da78f03d7af8592fad466088f9d84e | [
"MIT"
] | 2 | 2019-11-25T18:53:58.000Z | 2020-02-17T01:43:49.000Z | MavLinkCom/src/MavLinkMessageBase.cpp | spkdroid/AirSim | bf5cc70395da78f03d7af8592fad466088f9d84e | [
"MIT"
] | null | null | null | MavLinkCom/src/MavLinkMessageBase.cpp | spkdroid/AirSim | bf5cc70395da78f03d7af8592fad466088f9d84e | [
"MIT"
] | 2 | 2017-02-16T01:19:25.000Z | 2017-04-21T17:50:43.000Z | // Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
#include "MavLinkMessageBase.hpp"
#include "MavLinkConnection.hpp"
#include "Utils.hpp"
using namespace common_utils;
STRICT_MODE_OFF
#define MAVLINK_PACKED
#include "../mavlink/common/mavlink.h"
#include "../ma... | 39.381443 | 109 | 0.735733 | JaganathSahu |
29d8f61edd6b0945e14100e52f4fed417cb9c36a | 3,140 | cpp | C++ | source/perlin3d.cpp | max-pasichnyk/procedural_world | e197bf275f07043b688e68bdf07c9cb708386215 | [
"Apache-2.0"
] | null | null | null | source/perlin3d.cpp | max-pasichnyk/procedural_world | e197bf275f07043b688e68bdf07c9cb708386215 | [
"Apache-2.0"
] | null | null | null | source/perlin3d.cpp | max-pasichnyk/procedural_world | e197bf275f07043b688e68bdf07c9cb708386215 | [
"Apache-2.0"
] | null | null | null | /*
Copyright 2019 Maxim Pasichnyk
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, software... | 29.904762 | 81 | 0.638535 | max-pasichnyk |
29df169b06b1aa1a45b2ec77d2def7bab35e7b79 | 684 | cpp | C++ | Entregas/ACM_Tarea10/P02/HW10P02.cpp | cesar-magana/Advanced_Programming | 7b5ff09cd2816b67ca9f68d5ede211c73fb73de5 | [
"MIT"
] | null | null | null | Entregas/ACM_Tarea10/P02/HW10P02.cpp | cesar-magana/Advanced_Programming | 7b5ff09cd2816b67ca9f68d5ede211c73fb73de5 | [
"MIT"
] | null | null | null | Entregas/ACM_Tarea10/P02/HW10P02.cpp | cesar-magana/Advanced_Programming | 7b5ff09cd2816b67ca9f68d5ede211c73fb73de5 | [
"MIT"
] | null | null | null | /*------------------------------------------------------------
PROGRAMACIÓN AVANZADA I HW10P02
César Magaña
cesar@cimat.mx
--------------------------------------------------------------*/
#include <iostream>
#include <string>
using namespace std;
int tata(double &x);
//float tata(const string &s,const double &x);
/... | 28.5 | 64 | 0.426901 | cesar-magana |
29e180475781f6dbae00a274d67b6111cdc36177 | 3,564 | cpp | C++ | source/blender/compositor/operations/COM_ChromaMatteOperation.cpp | Scoan/blender | 9314d73d753750d5e20bb2ee1fa6ec3646bd25dc | [
"Naumen",
"Condor-1.1",
"MS-PL"
] | 33 | 2019-06-10T22:59:54.000Z | 2022-03-24T09:16:01.000Z | source/blender/compositor/operations/COM_ChromaMatteOperation.cpp | Scoan/blender | 9314d73d753750d5e20bb2ee1fa6ec3646bd25dc | [
"Naumen",
"Condor-1.1",
"MS-PL"
] | 5 | 2019-06-21T21:06:34.000Z | 2021-06-26T21:58:45.000Z | source/blender/compositor/operations/COM_ChromaMatteOperation.cpp | Scoan/blender | 9314d73d753750d5e20bb2ee1fa6ec3646bd25dc | [
"Naumen",
"Condor-1.1",
"MS-PL"
] | 14 | 2019-06-21T12:14:23.000Z | 2021-08-25T14:57:06.000Z | /*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* as published by the Free Software Foundation; either version 2
* of the License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be use... | 32.108108 | 90 | 0.645623 | Scoan |
29e2f6d1b3379c8f43a65510f199ac6ad76ef976 | 287 | hpp | C++ | sensact_firmware_stm32/lib/core/error.hpp | klaus-liebler/sensact | b8fc05eff67f23cf58c4fdf53e0026aab0966f6b | [
"Apache-2.0"
] | 2 | 2021-02-09T16:17:43.000Z | 2021-08-09T04:02:44.000Z | sensact_firmware_stm32/lib/core/error.hpp | klaus-liebler/sensact | b8fc05eff67f23cf58c4fdf53e0026aab0966f6b | [
"Apache-2.0"
] | 2 | 2016-05-17T20:45:10.000Z | 2020-03-10T07:03:39.000Z | sensact_firmware_stm32/lib/core/error.hpp | klaus-liebler/sensact | b8fc05eff67f23cf58c4fdf53e0026aab0966f6b | [
"Apache-2.0"
] | 1 | 2020-05-24T13:37:55.000Z | 2020-05-24T13:37:55.000Z | #pragma once
namespace sensactcore
{
enum Error
{
OK,
UNSPECIFIED_ERROR,
I2C_DeviceNotFound,
I2C_BusError,
CAN_BusError,
OneWireDeviceNotFound,
UNKNOWN_IO,
NOT_YET_IMPLEMENTED,
NO_MESSAGE_AVAILABLE,
};
} | 17.9375 | 30 | 0.592334 | klaus-liebler |
29e3ddb1b4bad5dbb1ffa2caa1087360a55d4bf5 | 5,753 | hpp | C++ | code/FIReader.hpp | PkXwmpgN/assimp | bb77f2b4e4c786000177f80fc3372606c882551f | [
"BSD-3-Clause"
] | 596 | 2019-07-30T03:07:57.000Z | 2022-03-31T07:45:20.000Z | external/assimp/code/FIReader.hpp | Guangehhhh/VulkanDemos | d3b9cc113aa3657689a0e7828892fb754f73361f | [
"MIT"
] | 9 | 2019-07-28T08:48:41.000Z | 2022-03-31T07:53:50.000Z | external/assimp/code/FIReader.hpp | Guangehhhh/VulkanDemos | d3b9cc113aa3657689a0e7828892fb754f73361f | [
"MIT"
] | 79 | 2019-08-05T03:05:01.000Z | 2022-03-31T07:45:22.000Z | /*
Open Asset Import Library (assimp)
----------------------------------------------------------------------
Copyright (c) 2006-2019, assimp team
All rights reserved.
Redistribution and use of this software in source and binary forms,
with or without modification, are permitted provided that the
following condition... | 30.439153 | 106 | 0.734399 | PkXwmpgN |
29ec4fd265c3fd1dad92e449ec37b6e90761ebb0 | 2,700 | cpp | C++ | FSE/Application.cpp | Alia5/FSE | e53565aa1bbf0235dfcd2c3209d18b64c1fb2df1 | [
"MIT"
] | 17 | 2017-04-02T00:17:47.000Z | 2021-11-23T21:42:48.000Z | FSE/Application.cpp | Alia5/FSE | e53565aa1bbf0235dfcd2c3209d18b64c1fb2df1 | [
"MIT"
] | null | null | null | FSE/Application.cpp | Alia5/FSE | e53565aa1bbf0235dfcd2c3209d18b64c1fb2df1 | [
"MIT"
] | 5 | 2017-08-06T12:47:18.000Z | 2020-08-14T14:16:22.000Z | #include "Application.h"
#include <imgui.h>
#include <imgui-SFML.h>
#include "FSEObject/FSEObject.h"
#include "FSEChaiLib.h"
#ifdef ANDROID
#include <android/log.h>
#define LOGI(...) ((void)__android_log_print(ANDROID_LOG_INFO, "native-activity", __VA_ARGS__))
#define LOGW(...) ((void)__android_log_print(ANDROID_LOG_W... | 17.532468 | 95 | 0.671852 | Alia5 |
29ed044763b5cd754a97459ea4d914fc63c87e15 | 81,897 | cpp | C++ | cstrike15_src/engine/host_cmd.cpp | 5R33CH4/-5R33CH4-CSGO-Source-Code | dafb3cafa88f37cd405df3a9ffbbcdcb1dba8f63 | [
"MIT"
] | 4 | 2020-11-25T11:45:10.000Z | 2021-03-17T15:22:01.000Z | cstrike15_src/engine/host_cmd.cpp | bahadiraraz/Counter-Strike-Global-Offensive | 9a0534100cb98ffa1cf0c32e138f0e7971e910d3 | [
"MIT"
] | null | null | null | cstrike15_src/engine/host_cmd.cpp | bahadiraraz/Counter-Strike-Global-Offensive | 9a0534100cb98ffa1cf0c32e138f0e7971e910d3 | [
"MIT"
] | 7 | 2021-08-22T11:29:02.000Z | 2022-03-29T11:59:15.000Z | //========= Copyright 1996-2005, Valve Corporation, All rights reserved. ============//
//
// Purpose:
//
//=============================================================================//
// HACKHACK fix this include
#if defined( _WIN32 ) && !defined( _X360 )
#define WIN32_LEAN_AND_MEAN
#include <windows.h>
#endif
#i... | 26.816306 | 223 | 0.62857 | 5R33CH4 |
29ed430f7a00a248465bbbbea5676f293488c6f9 | 16,491 | cpp | C++ | libraries/entities/src/UpdateEntityOperator.cpp | ey6es/hifi | 23f9c799dde439e4627eef45341fb0d53feff80b | [
"Apache-2.0"
] | null | null | null | libraries/entities/src/UpdateEntityOperator.cpp | ey6es/hifi | 23f9c799dde439e4627eef45341fb0d53feff80b | [
"Apache-2.0"
] | null | null | null | libraries/entities/src/UpdateEntityOperator.cpp | ey6es/hifi | 23f9c799dde439e4627eef45341fb0d53feff80b | [
"Apache-2.0"
] | null | null | null | //
// UpdateEntityOperator.cpp
// libraries/entities/src
//
// Created by Brad Hefta-Gaub on 8/11/2014.
// Copyright 2014 High Fidelity, Inc.
//
// Distributed under the Apache License, Version 2.0.
// See the accompanying file LICENSE or http://www.apache.org/licenses/LICENSE-2.0.html
//
#include "EntityItem.h"... | 44.093583 | 130 | 0.626281 | ey6es |
29ee6d4fa9ecc554257daf6e1755099f03259d47 | 4,950 | cpp | C++ | source/unittest/vmessageunit.cpp | xvela/code-vault | 780dad2d2855e28d802a64baf781927b7edd9ed9 | [
"MIT"
] | 2 | 2019-01-09T19:09:45.000Z | 2019-04-02T17:53:49.000Z | source/unittest/vmessageunit.cpp | xvela/code-vault | 780dad2d2855e28d802a64baf781927b7edd9ed9 | [
"MIT"
] | 17 | 2015-01-07T02:05:04.000Z | 2019-08-30T16:57:42.000Z | source/unittest/vmessageunit.cpp | xvela/code-vault | 780dad2d2855e28d802a64baf781927b7edd9ed9 | [
"MIT"
] | 3 | 2016-04-06T19:01:11.000Z | 2017-09-20T09:28:00.000Z | /*
Copyright c1997-2014 Trygve Isaacson. All rights reserved.
This file is part of the Code Vault version 4.1
http://www.bombaydigital.com/
License: MIT. See LICENSE.md in the Vault top level directory.
*/
/** @file */
#include "vmessageunit.h"
#include "vmessage.h"
#include "vcompactingdeque.h"
class TestMessage;
... | 30.745342 | 153 | 0.701818 | xvela |
29ef393e915a62bbb2a9ff1b232eae700508d2a0 | 2,162 | cpp | C++ | tests/System/ContextTests.cpp | GRIF-IT/Investcoin-CLI | 975be82e79b3b253bbb9aca9179fc63cee9d25c0 | [
"BSD-3-Clause"
] | 2 | 2018-12-18T13:14:21.000Z | 2019-03-11T17:16:40.000Z | tests/System/ContextTests.cpp | GRIF-IT/Investcoin-CLI | 975be82e79b3b253bbb9aca9179fc63cee9d25c0 | [
"BSD-3-Clause"
] | null | null | null | tests/System/ContextTests.cpp | GRIF-IT/Investcoin-CLI | 975be82e79b3b253bbb9aca9179fc63cee9d25c0 | [
"BSD-3-Clause"
] | null | null | null | // Copyright (c) 2018-2020, The Investcoin Project, GRIF-IT
#include <System/Context.h>
#include <System/Dispatcher.h>
#include <System/Event.h>
#include <System/InterruptedException.h>
#include <System/Timer.h>
#include <gtest/gtest.h>
using namespace System;
TEST(ContextTests, getReturnsResult) {
Dispatcher disp... | 20.205607 | 59 | 0.661887 | GRIF-IT |
29f0a2519c7598675d56ee178d8f7949131edfea | 570 | cpp | C++ | Tea Bubble Edition/Tea Bubble Edition Project/CupDispenser.cpp | Skyway666/Tea-Bubble-Edition | 3cffe55fa686ae34135e518bbc030de4040e13f7 | [
"MIT"
] | null | null | null | Tea Bubble Edition/Tea Bubble Edition Project/CupDispenser.cpp | Skyway666/Tea-Bubble-Edition | 3cffe55fa686ae34135e518bbc030de4040e13f7 | [
"MIT"
] | null | null | null | Tea Bubble Edition/Tea Bubble Edition Project/CupDispenser.cpp | Skyway666/Tea-Bubble-Edition | 3cffe55fa686ae34135e518bbc030de4040e13f7 | [
"MIT"
] | null | null | null | #include "CupDispenser.h"
#include "j1Entities.h"
CupDispenser::CupDispenser(iPoint position): StaticEntity(position) {
collider.x = position.x;
collider.y = position.y;
collider.w = 200;
collider.h = 400;
type = CUP_DISPENSER;
// Static entity: Inicialization
idle.PushBack({ 0,0, 200, 400 });
current_an... | 18.387097 | 69 | 0.712281 | Skyway666 |
29f1474526e479ca91f2c6d82ff9006fb7936daa | 1,767 | cc | C++ | benchmark/packet_source_benchmark.cc | epgdatacapbon/mirakc-arib | f50851ac1869599e95dcbefe115624b95e8274de | [
"Apache-2.0",
"MIT"
] | null | null | null | benchmark/packet_source_benchmark.cc | epgdatacapbon/mirakc-arib | f50851ac1869599e95dcbefe115624b95e8274de | [
"Apache-2.0",
"MIT"
] | null | null | null | benchmark/packet_source_benchmark.cc | epgdatacapbon/mirakc-arib | f50851ac1869599e95dcbefe115624b95e8274de | [
"Apache-2.0",
"MIT"
] | null | null | null | #include <algorithm>
#include <memory>
#include <benchmark/benchmark.h>
#include "packet_source.hh"
namespace {
class BenchmarkFile final : public File {
public:
static constexpr size_t kNumPackets = 10000;
BenchmarkFile() {
for (size_t i = 0; i < kBufSize; i += ts::PKT_SIZE) {
ts::NullPacket.copyTo... | 21.54878 | 77 | 0.665535 | epgdatacapbon |
29f2c065c8d24f143156cf9da4a592bf00c6cc27 | 3,083 | cpp | C++ | ares/component/processor/v30mz/instructions-group.cpp | CasualPokePlayer/ares | 58690cd5fc7bb6566c22935c5b80504a158cca29 | [
"BSD-3-Clause"
] | 153 | 2020-07-25T17:55:29.000Z | 2021-10-01T23:45:01.000Z | ares/component/processor/v30mz/instructions-group.cpp | CasualPokePlayer/ares | 58690cd5fc7bb6566c22935c5b80504a158cca29 | [
"BSD-3-Clause"
] | 245 | 2021-10-08T09:14:46.000Z | 2022-03-31T08:53:13.000Z | ares/component/processor/v30mz/instructions-group.cpp | CasualPokePlayer/ares | 58690cd5fc7bb6566c22935c5b80504a158cca29 | [
"BSD-3-Clause"
] | 44 | 2020-07-25T08:51:55.000Z | 2021-09-25T16:09:01.000Z | template<u32 size> auto V30MZ::instructionGroup1MemImm(bool sign) -> void {
wait(1);
modRM();
auto mem = getMemory<size>();
n16 imm = 0;
if(sign) imm = (i8)fetch<Byte>();
else if(size == Byte) imm = fetch<Byte>();
else imm = fetch<Word>();
switch(modrm.reg) {
case 0: setMemory<size>(ADD<size>(mem, imm... | 31.783505 | 117 | 0.606876 | CasualPokePlayer |
29f2c61daa34cae38e496e88d1eab93b6c9a8b10 | 8,619 | cc | C++ | rnacore/interval_map.cc | Shao-Group/meta-scallop | 3c546900060e9544541e865604e235f49366803b | [
"BSD-3-Clause"
] | null | null | null | rnacore/interval_map.cc | Shao-Group/meta-scallop | 3c546900060e9544541e865604e235f49366803b | [
"BSD-3-Clause"
] | 2 | 2021-11-28T17:19:43.000Z | 2022-01-17T09:02:55.000Z | rnacore/interval_map.cc | Shao-Group/meta-scallop | 3c546900060e9544541e865604e235f49366803b | [
"BSD-3-Clause"
] | 1 | 2020-06-22T12:31:00.000Z | 2020-06-22T12:31:00.000Z | /*
Part of Scallop Transcript Assembler
(c) 2017 by Mingfu Shao, Carl Kingsford, and Carnegie Mellon University.
See LICENSE for licensing.
*/
#include "interval_map.h"
int create_split(split_interval_map &imap, int32_t p)
{
SIMI it = imap.find(p);
if(it == imap.end()) return 0;
int32_t l = lower(it->first);
int3... | 22.1 | 109 | 0.576053 | Shao-Group |
29f32cf47cdbccbe32468f05bfb1a9c3bbafd409 | 3,987 | hpp | C++ | include/boost/beast/core/close_socket.hpp | bebuch/beast | 2454d671653844d8435f4f066946a7751a758db7 | [
"BSL-1.0"
] | null | null | null | include/boost/beast/core/close_socket.hpp | bebuch/beast | 2454d671653844d8435f4f066946a7751a758db7 | [
"BSL-1.0"
] | null | null | null | include/boost/beast/core/close_socket.hpp | bebuch/beast | 2454d671653844d8435f4f066946a7751a758db7 | [
"BSL-1.0"
] | null | null | null | //
// Copyright (c) 2018 Vinnie Falco (vinnie dot falco at gmail dot com)
//
// Distributed under the Boost Software License, Version 1.0. (See accompanying
// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
//
// Official repository: https://github.com/boostorg/beast
//
#ifndef BOOST_BEAST_CLOSE... | 29.753731 | 79 | 0.717081 | bebuch |
29f3635c8893e4558c5adf85872d9210a3912b6f | 314 | hpp | C++ | template/for-function/main/hello-greet.hpp | research-note/deep-learning-from-scratch-using-cpp | 5e11be85fa9c4c7672ce9c3ea2c5ffa8f27defd1 | [
"MIT"
] | 2 | 2021-08-15T12:38:41.000Z | 2021-08-15T12:38:51.000Z | template/for-function/main/hello-greet.hpp | research-note/deep-learning-from-scratch-using-modern-cpp | 5e11be85fa9c4c7672ce9c3ea2c5ffa8f27defd1 | [
"MIT"
] | null | null | null | template/for-function/main/hello-greet.hpp | research-note/deep-learning-from-scratch-using-modern-cpp | 5e11be85fa9c4c7672ce9c3ea2c5ffa8f27defd1 | [
"MIT"
] | null | null | null | /*
* Build obj linking with cc_library file example.
*
* Copyright Bazel organization
*
*/
#ifndef CPP_TUTORIAL_STAGE3_MAIN_HELLO_GREET_H_
#define CPP_TUTORIAL_STAGE3_MAIN_HELLO_GREET_H_
#include <string>
std::string get_greet(const std::string &thing);
#endif // CPP_TUTORIAL_STAGE3_MAIN_HELLO_GREET_H_
| 19.625 | 50 | 0.796178 | research-note |
29f56e4cb49d77ea4773b13f0548b0e9cfb8b5e1 | 1,224 | cpp | C++ | lab21/3 - istream.cpp | uiowa-cs-3210-0001/cs3210-labs | d6263d719a45257ba056a1ead7cc3dd428d377f3 | [
"MIT"
] | 1 | 2019-01-24T14:04:45.000Z | 2019-01-24T14:04:45.000Z | lab21/3 - istream.cpp | uiowa-cs-3210-0001/cs3210-labs | d6263d719a45257ba056a1ead7cc3dd428d377f3 | [
"MIT"
] | 1 | 2019-01-24T18:32:45.000Z | 2019-01-28T04:10:28.000Z | lab21/3 - istream.cpp | uiowa-cs-3210-0001/cs3210-labs | d6263d719a45257ba056a1ead7cc3dd428d377f3 | [
"MIT"
] | 1 | 2019-02-07T00:28:20.000Z | 2019-02-07T00:28:20.000Z | #include <iostream>
using namespace std;
template< typename T >
T read( std::istream& in )
{
T x;
in >> x;
return x;
}
int main()
{
// auto c = read<char>( std::cin );
// std::cout << "Read: " << c << endl;
// std::cin.ignore( std::numeric_limits<std::streamsize>::max(), '\n' );
// auto ... | 23.09434 | 76 | 0.46732 | uiowa-cs-3210-0001 |
29f92b44d2d20829231a22dff4e7f6c31aabd4f6 | 4,941 | cpp | C++ | test/trie.cpp | DldFw/ethereum | d45dc929b594add85d527236830037f01da0e8a3 | [
"MIT"
] | null | null | null | test/trie.cpp | DldFw/ethereum | d45dc929b594add85d527236830037f01da0e8a3 | [
"MIT"
] | null | null | null | test/trie.cpp | DldFw/ethereum | d45dc929b594add85d527236830037f01da0e8a3 | [
"MIT"
] | null | null | null | /*
This file is part of cpp-ethereum.
cpp-ethereum is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 2 of the License, or
(at your option) any later version.
Foobar is distributed in the hope ... | 23.641148 | 76 | 0.534305 | DldFw |
29fac8aa4a0c3a20a2793ed67843be19f73c7680 | 3,585 | cpp | C++ | EU4toV2/Source/Mappers/ProvinceMappings/ProvinceMapper.cpp | ParadoxGameConverters/EU4toVic2 | 17a61d5662da02abcb976403cb50da365ef7061d | [
"MIT"
] | 42 | 2018-12-22T03:59:43.000Z | 2022-02-03T10:45:42.000Z | EU4toV2/Source/Mappers/ProvinceMappings/ProvinceMapper.cpp | DrDudelsack/EU4toVic2 | 06da665b3eaa6e14d240f65f02caf9ffb7085b5b | [
"MIT"
] | 336 | 2018-12-22T17:15:27.000Z | 2022-03-02T11:19:32.000Z | EU4toV2/Source/Mappers/ProvinceMappings/ProvinceMapper.cpp | klorpa/EU4toVic2 | e3068eb2aa459f884c1929f162d0047a4cb5f4d4 | [
"MIT"
] | 56 | 2018-12-22T19:13:23.000Z | 2022-01-01T23:08:53.000Z | #include "ProvinceMapper.h"
#include "Configuration.h"
#include "GameVersion.h"
#include "Log.h"
#include "ParserHelpers.h"
#include "ProvinceMappingsVersion.h"
#include <filesystem>
#include <fstream>
#include <stdexcept>
namespace fs = std::filesystem;
#include "CommonRegexes.h"
mappers::ProvinceMapper::ProvinceMapp... | 33.504673 | 136 | 0.772106 | ParadoxGameConverters |
29ffd6be90971a18707ad2d2fc2940dc3bd78f52 | 2,514 | cpp | C++ | samples/Random/src/RandomSample.cpp | Daivuk/onut | b02c5969b36897813de9c574a26d9437b67f189e | [
"MIT"
] | 50 | 2015-06-01T19:23:24.000Z | 2021-12-22T02:14:23.000Z | samples/Random/src/RandomSample.cpp | Daivuk/onut | b02c5969b36897813de9c574a26d9437b67f189e | [
"MIT"
] | 109 | 2015-07-20T07:43:03.000Z | 2021-01-31T21:52:36.000Z | samples/Random/src/RandomSample.cpp | Daivuk/onut | b02c5969b36897813de9c574a26d9437b67f189e | [
"MIT"
] | 9 | 2015-07-02T21:36:20.000Z | 2019-10-19T04:18:02.000Z | // Oak Nut include
#include <onut/PrimitiveBatch.h>
#include <onut/Random.h>
#include <onut/Renderer.h>
#include <onut/Settings.h>
#include <onut/SpriteBatch.h>
void initSettings()
{
oSettings->setGameName("Random Sample");
oSettings->setIsRetroMode(true); // So we can see the points bigger
oSettings->setR... | 29.928571 | 115 | 0.619332 | Daivuk |
4b002a793f6d29e1a1c42b1fa3cbb5c643f5d2f2 | 724 | cpp | C++ | spoj0/contest-116/balanse.cpp | Rkhoiwal/Competitive-prog-Archive | 18a95a8b2b9ca1a28d6fe939c1db5450d541ddc9 | [
"MIT"
] | 1 | 2020-07-16T01:46:38.000Z | 2020-07-16T01:46:38.000Z | spoj0/contest-116/balanse.cpp | Rkhoiwal/Competitive-prog-Archive | 18a95a8b2b9ca1a28d6fe939c1db5450d541ddc9 | [
"MIT"
] | null | null | null | spoj0/contest-116/balanse.cpp | Rkhoiwal/Competitive-prog-Archive | 18a95a8b2b9ca1a28d6fe939c1db5450d541ddc9 | [
"MIT"
] | 1 | 2020-05-27T14:30:43.000Z | 2020-05-27T14:30:43.000Z | #include <iostream>
using namespace std;
inline void use_oi_optimizations()
{
ios_base::sync_with_stdio(false);
cin.tie(NULL);
}
int main()
{
use_oi_optimizations();
unsigned int test_cases;
cin >> test_cases;
for (unsigned int i = 0; i < test_cases; ++i)
{
unsigned long long co... | 16.454545 | 49 | 0.515193 | Rkhoiwal |
4b035d6ed2fcd81fdca32ebdc8f78cb0df942877 | 4,328 | cc | C++ | test/common/stream_info/utility_test.cc | kh-chang/envoy | dde79aea0ee6e069530a85c0fa43dcb977fd1c6f | [
"Apache-2.0"
] | 1 | 2018-12-18T06:58:00.000Z | 2018-12-18T06:58:00.000Z | test/common/stream_info/utility_test.cc | kh-chang/envoy | dde79aea0ee6e069530a85c0fa43dcb977fd1c6f | [
"Apache-2.0"
] | null | null | null | test/common/stream_info/utility_test.cc | kh-chang/envoy | dde79aea0ee6e069530a85c0fa43dcb977fd1c6f | [
"Apache-2.0"
] | 1 | 2018-12-18T07:03:38.000Z | 2018-12-18T07:03:38.000Z | #include "common/network/address_impl.h"
#include "common/stream_info/utility.h"
#include "test/mocks/stream_info/mocks.h"
#include "gmock/gmock.h"
#include "gtest/gtest.h"
using testing::_;
using testing::NiceMock;
using testing::Return;
namespace Envoy {
namespace StreamInfo {
TEST(ResponseFlagUtilsTest, toShort... | 42.851485 | 100 | 0.731285 | kh-chang |
4b04c2f2eb18e2341618c7a4e4f7101d2c90f8b9 | 1,267 | cpp | C++ | UVA00256.cpp | MaSteve/UVA-problems | 3a240fcca02e24a9c850b7e86062f8581df6f95f | [
"MIT"
] | 17 | 2015-12-08T18:50:03.000Z | 2022-03-16T01:23:20.000Z | UVA00256.cpp | MaSteve/UVA-problems | 3a240fcca02e24a9c850b7e86062f8581df6f95f | [
"MIT"
] | null | null | null | UVA00256.cpp | MaSteve/UVA-problems | 3a240fcca02e24a9c850b7e86062f8581df6f95f | [
"MIT"
] | 6 | 2017-04-04T18:16:23.000Z | 2020-06-28T11:07:22.000Z | #include <cstdio>
using namespace std;
int main() {
/*for (int i = 0; i <= 10000; i++) {
int sqrt = i*i;
if (sqrt < 100) {
int aux = sqrt%10 + sqrt/10;
aux *= aux;
if (aux == sqrt) printf("%d\n", sqrt);
} else if (sqrt < 10000) {
int aux = sqr... | 33.342105 | 108 | 0.47356 | MaSteve |
4b05c2b9b5fabd42fb4b8a8f354c05b209504907 | 6,787 | cpp | C++ | src/Entities/Pickup.cpp | skpub/cuberite | c2f8ceb554982a33bcd4a1e168f6c4e26d0b85dd | [
"Apache-2.0"
] | 1 | 2021-01-08T05:30:14.000Z | 2021-01-08T05:30:14.000Z | src/Entities/Pickup.cpp | skpub/cuberite | c2f8ceb554982a33bcd4a1e168f6c4e26d0b85dd | [
"Apache-2.0"
] | null | null | null | src/Entities/Pickup.cpp | skpub/cuberite | c2f8ceb554982a33bcd4a1e168f6c4e26d0b85dd | [
"Apache-2.0"
] | null | null | null |
#include "Globals.h" // NOTE: MSVC stupidness requires this to be the same across all modules
#ifndef _WIN32
#include <cstdlib>
#endif
#include "Pickup.h"
#include "Player.h"
#include "../ClientHandle.h"
#include "../World.h"
#include "../Server.h"
#include "../Bindings/PluginManager.h"
#include "../Root.h"
#includ... | 25.230483 | 138 | 0.685281 | skpub |
4b06a69d9beeccdb46427de28cba0328dce0e321 | 2,248 | cpp | C++ | runtime/utilities/linux/timer_util.cpp | PTS93/compute-runtime | 0655045c7962d551e29008547a802e398b646c6e | [
"MIT"
] | null | null | null | runtime/utilities/linux/timer_util.cpp | PTS93/compute-runtime | 0655045c7962d551e29008547a802e398b646c6e | [
"MIT"
] | null | null | null | runtime/utilities/linux/timer_util.cpp | PTS93/compute-runtime | 0655045c7962d551e29008547a802e398b646c6e | [
"MIT"
] | null | null | null | /*
* Copyright (C) 2017-2018 Intel Corporation
*
* SPDX-License-Identifier: MIT
*
*/
#include <chrono>
#include "runtime/utilities/timer_util.h"
namespace OCLRT {
class Timer::TimerImpl {
public:
TimerImpl() {
}
~TimerImpl() {
}
void start() {
*((std::chrono::high_resolution_clo... | 23.175258 | 276 | 0.644573 | PTS93 |
4b0deaa8c83cca315c67e6c842cb71a34a4e0fc2 | 1,635 | hpp | C++ | include/IBL.hpp | akoylasar/PBR | 17e6197fb5357220e2f1454898a18f8890844d4d | [
"MIT"
] | null | null | null | include/IBL.hpp | akoylasar/PBR | 17e6197fb5357220e2f1454898a18f8890844d4d | [
"MIT"
] | null | null | null | include/IBL.hpp | akoylasar/PBR | 17e6197fb5357220e2f1454898a18f8890844d4d | [
"MIT"
] | null | null | null | /*
* Copyright (c) Fouad Valadbeigi (akoylasar@gmail.com) */
#pragma once
#include <atomic>
#include "ShaderProgram.hpp"
#include "Mesh.hpp"
#include "Camera.hpp"
namespace Akoylasar
{
class IBLScene
{
private:
struct ImageData
{
int width, height;
float* image;
};
p... | 27.25 | 61 | 0.598165 | akoylasar |
4b0fa520e169bb57eabe192ad4ed5047ba25b9de | 13,411 | hpp | C++ | hpx/components/dataflow/server/detail/preprocessed/apply_helper_15.hpp | Titzi90/hpx | 150fb0de1cfe40c26a722918097199147957b45c | [
"BSL-1.0"
] | null | null | null | hpx/components/dataflow/server/detail/preprocessed/apply_helper_15.hpp | Titzi90/hpx | 150fb0de1cfe40c26a722918097199147957b45c | [
"BSL-1.0"
] | null | null | null | hpx/components/dataflow/server/detail/preprocessed/apply_helper_15.hpp | Titzi90/hpx | 150fb0de1cfe40c26a722918097199147957b45c | [
"BSL-1.0"
] | null | null | null | // Copyright (c) 2007-2013 Hartmut Kaiser
// Copyright (c) 2012-2013 Thomas Heller
//
// 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)
// This file has been automatically generated using the Boost.Wave tool.
// Do n... | 41.138037 | 663 | 0.513757 | Titzi90 |
4b114167c43fdfb8fc70dc66e81bbed3244fbfe7 | 31,984 | cc | C++ | test/cpp/microbenchmarks/bm_call_create.cc | galihputera/grpc | 36cbed1ef53bbd4374acb646005cefedbb4f180e | [
"Apache-2.0"
] | 3 | 2020-11-30T15:35:37.000Z | 2022-01-06T14:17:18.000Z | test/cpp/microbenchmarks/bm_call_create.cc | galihputera/grpc | 36cbed1ef53bbd4374acb646005cefedbb4f180e | [
"Apache-2.0"
] | 54 | 2020-06-23T17:34:04.000Z | 2022-03-31T02:04:06.000Z | test/cpp/microbenchmarks/bm_call_create.cc | galihputera/grpc | 36cbed1ef53bbd4374acb646005cefedbb4f180e | [
"Apache-2.0"
] | 12 | 2020-07-14T23:59:57.000Z | 2022-03-22T09:59:18.000Z | /*
*
* Copyright 2017 gRPC 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 agree... | 38.304192 | 80 | 0.701507 | galihputera |
4b15ce21d680717ea38a9fd013db35301e26d0dd | 3,889 | cpp | C++ | src/ofxMSATFVizUtils.cpp | marcel303/ofxMSATensorFlow | 512a6e9a929e397c0bddf8bf86ea7521a22dd593 | [
"Apache-2.0"
] | 481 | 2016-01-28T22:05:07.000Z | 2022-03-07T23:29:10.000Z | src/ofxMSATFVizUtils.cpp | marcel303/ofxMSATensorFlow | 512a6e9a929e397c0bddf8bf86ea7521a22dd593 | [
"Apache-2.0"
] | 37 | 2016-01-29T02:18:33.000Z | 2020-03-24T17:36:05.000Z | src/ofxMSATFVizUtils.cpp | marcel303/ofxMSATensorFlow | 512a6e9a929e397c0bddf8bf86ea7521a22dd593 | [
"Apache-2.0"
] | 110 | 2016-01-29T14:00:39.000Z | 2020-11-22T14:20:56.000Z | #include "ofxMSATFVizUtils.h"
namespace msa {
namespace tf {
//--------------------------------------------------------------
void draw_probs(const vector<float>& probs, const ofRectangle& rect, const ofColor& lo_color, const ofColor& hi_color) {
if(probs.size() == 0) return;
ofPushStyle();
ofFill();
... | 33.525862 | 128 | 0.550527 | marcel303 |
4b175e77903ba8ceaba5b44085d747c6b8ab0d18 | 16,189 | cpp | C++ | core_test/file_test.cpp | granitepenguin/wwiv | 30669b21f45c5f534014a251f55568c86904f87e | [
"Apache-2.0"
] | null | null | null | core_test/file_test.cpp | granitepenguin/wwiv | 30669b21f45c5f534014a251f55568c86904f87e | [
"Apache-2.0"
] | null | null | null | core_test/file_test.cpp | granitepenguin/wwiv | 30669b21f45c5f534014a251f55568c86904f87e | [
"Apache-2.0"
] | null | null | null | /**************************************************************************/
/* */
/* WWIV Version 5.x */
/* Copyright (C)2014-2021, WWIV Software Services */
/* ... | 32.313373 | 96 | 0.67132 | granitepenguin |
4b19207b80c7c3b104d61c04d0349239dc12b74f | 16,732 | cpp | C++ | obs-studio/UI/api-interface.cpp | noelemahcz/libobspp | 029472b973e5a1985f883242f249848385df83a3 | [
"MIT"
] | null | null | null | obs-studio/UI/api-interface.cpp | noelemahcz/libobspp | 029472b973e5a1985f883242f249848385df83a3 | [
"MIT"
] | null | null | null | obs-studio/UI/api-interface.cpp | noelemahcz/libobspp | 029472b973e5a1985f883242f249848385df83a3 | [
"MIT"
] | null | null | null | #include <obs-frontend-internal.hpp>
#include "obs-app.hpp"
#include "qt-wrappers.hpp"
#include "window-basic-main.hpp"
#include "window-basic-main-outputs.hpp"
#include <functional>
using namespace std;
Q_DECLARE_METATYPE(OBSScene);
Q_DECLARE_METATYPE(OBSSource);
template<typename T> static T GetOBSRef(QListWidget... | 25.085457 | 79 | 0.725795 | noelemahcz |
4b1bcd262ffccd0c65e429860aedd84411df8637 | 6,881 | hpp | C++ | hot/lib/hot/rowex/include/hot/rowex/HOTRowexInsertStack.hpp | jyizheng/hydralist | 910dad17eab4815057e3ea3e46b02f6ce45d7e46 | [
"Apache-2.0"
] | 99 | 2018-03-23T11:08:48.000Z | 2022-03-03T10:03:35.000Z | libs/hot/rowex/include/hot/rowex/HOTRowexInsertStack.hpp | SheldonZhong/hot | ec29331ecb4b0d5381b90d5b45ce2319b7cfeff0 | [
"ISC"
] | 3 | 2018-12-18T19:00:04.000Z | 2021-09-07T13:05:36.000Z | libs/hot/rowex/include/hot/rowex/HOTRowexInsertStack.hpp | SheldonZhong/hot | ec29331ecb4b0d5381b90d5b45ce2319b7cfeff0 | [
"ISC"
] | 29 | 2018-06-03T07:56:35.000Z | 2022-03-04T07:31:50.000Z | #ifndef __HOT__ROWEX__INSERT_STACK__
#define __HOT__ROWEX__INSERT_STACK__
#include <stdio.h>
#include <execinfo.h>
#include <signal.h>
#include <stdlib.h>
#include <unistd.h>
#include <hot/commons/InsertInformation.hpp>
#include <hot/commons/DiscriminativeBit.hpp>
#include <idx/contenthelpers/OptionalValue.hpp>
#inc... | 44.108974 | 198 | 0.775323 | jyizheng |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.