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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
e1c75968b3118e4a48c37dc4d7adce28e6325393 | 441 | hpp | C++ | include/dish2/debug/LogStackFrame.hpp | mmore500/dishtiny | 9fcb52c4e56c74a4e17f7d577143ed40c158c92e | [
"MIT"
] | 29 | 2019-02-04T02:39:52.000Z | 2022-01-28T10:06:26.000Z | include/dish2/debug/LogStackFrame.hpp | schregardusc/dishtiny | b0b1841a457a955fa4c22f36a050d91f12484f9e | [
"MIT"
] | 95 | 2020-02-22T19:48:14.000Z | 2021-09-14T19:17:53.000Z | include/dish2/debug/LogStackFrame.hpp | schregardusc/dishtiny | b0b1841a457a955fa4c22f36a050d91f12484f9e | [
"MIT"
] | 6 | 2019-11-19T10:13:09.000Z | 2021-03-25T17:35:32.000Z | #pragma once
#ifndef DISH2_DEBUG_LOGSTACKFRAME_HPP_INCLUDE
#define DISH2_DEBUG_LOGSTACKFRAME_HPP_INCLUDE
#include <string>
namespace dish2 {
struct LogStackFrame {
std::string name;
std::string detail;
LogStackFrame() = default;
LogStackFrame( const std::string& name_, const std::string& detail_="" )
: ... | 17.64 | 74 | 0.741497 | mmore500 |
e1ca41216b08cfbd94905a4887abe5db86569af4 | 334 | hpp | C++ | src/ast/expr_ast.hpp | sethitow/stc | 28894bda001f00828613941d1a6da7cc3720dd52 | [
"MIT"
] | null | null | null | src/ast/expr_ast.hpp | sethitow/stc | 28894bda001f00828613941d1a6da7cc3720dd52 | [
"MIT"
] | 3 | 2021-07-24T23:06:37.000Z | 2021-08-21T03:24:58.000Z | src/ast/expr_ast.hpp | sethitow/stc | 28894bda001f00828613941d1a6da7cc3720dd52 | [
"MIT"
] | null | null | null | #ifndef EXPRAST_H
#define EXPRAST_H
#include <memory>
#include <string>
#include <vector>
#include "llvm/IR/Value.h"
#include "../code_gen_context.hpp"
/// ExprAST - Base class for all expression nodes.
class ExprAST
{
public:
virtual ~ExprAST() = default;
virtual llvm::Value *codegen(CodeGenContext &) =... | 15.904762 | 55 | 0.697605 | sethitow |
e1d0ef4bf77d0d0634e08785d22c90eb8cba720c | 1,491 | cc | C++ | tests/libtests/friction/data/FrictionModelData.cc | cehanagan/pylith | cf5c1c34040460a82f79b6eb54df894ed1b1ee93 | [
"MIT"
] | 93 | 2015-01-08T16:41:22.000Z | 2022-02-25T13:40:02.000Z | tests/libtests/friction/data/FrictionModelData.cc | sloppyjuicy/pylith | ac2c1587f87e45c948638b19560813d4d5b6a9e3 | [
"MIT"
] | 277 | 2015-02-20T16:27:35.000Z | 2022-03-30T21:13:09.000Z | tests/libtests/friction/data/FrictionModelData.cc | sloppyjuicy/pylith | ac2c1587f87e45c948638b19560813d4d5b6a9e3 | [
"MIT"
] | 71 | 2015-03-24T12:11:08.000Z | 2022-03-03T04:26:02.000Z | // -*- C++ -*-
//
// ======================================================================
//
// Brad T. Aagaard, U.S. Geological Survey
// Charles A. Williams, GNS Science
// Matthew G. Knepley, University at Buffalo
//
// This code was developed as part of the Computational Infrastructure
// for Geodynamics (http://... | 24.048387 | 73 | 0.56271 | cehanagan |
e1d14506beb052784912d088c0acb10381e183ec | 12,719 | cpp | C++ | src/airplane.cpp | RohanChacko/Jet-FIghter-3D | 3ad72ad71315f9e1f4e301d3e98385822de7c6e5 | [
"MIT"
] | 1 | 2022-03-27T12:31:25.000Z | 2022-03-27T12:31:25.000Z | src/airplane.cpp | RohanChacko/Jet-Fighter-3D | 3ad72ad71315f9e1f4e301d3e98385822de7c6e5 | [
"MIT"
] | null | null | null | src/airplane.cpp | RohanChacko/Jet-Fighter-3D | 3ad72ad71315f9e1f4e301d3e98385822de7c6e5 | [
"MIT"
] | null | null | null | #include "airplane.h"
#include "main.h"
Airplane::Airplane(float xs, float ys, float zs, color_t color) {
this->position = glm::vec3(xs, ys, 0);
this->rotation_x = 0;
this->rotation_z = 0;
this->rotation_y = 0;
this->fuel = 1000;
this->orc[0][0] = 1;
this->orc[0][1] = 0;
this->orc[0][2... | 35.627451 | 108 | 0.553345 | RohanChacko |
e1d1d4ac8fd09177ce45c72413a2342d012587d4 | 3,524 | hpp | C++ | src/concepts.hpp | Aertalon/optimizer | 32afad1dc5c1640cd2869a7575f43584ad6390bd | [
"MIT"
] | 1 | 2022-01-27T16:57:10.000Z | 2022-01-27T16:57:10.000Z | src/concepts.hpp | Aertalon/optimizer | 32afad1dc5c1640cd2869a7575f43584ad6390bd | [
"MIT"
] | 27 | 2022-01-27T17:46:56.000Z | 2022-02-15T22:37:43.000Z | src/concepts.hpp | Aertalon/optimizer | 32afad1dc5c1640cd2869a7575f43584ad6390bd | [
"MIT"
] | 1 | 2022-02-05T09:36:56.000Z | 2022-02-05T09:36:56.000Z | #pragma once
#include <concepts>
#include <cstddef>
#include <type_traits>
#include <utility>
namespace opt {
// clang-format off
template <class T, class U = T, class R = T>
concept Addable =
requires (T a, U b) { { a + b } -> std::same_as<R>; };
template <class T, class U = T, class R = T>
concept Subtractible ... | 24.643357 | 98 | 0.630533 | Aertalon |
e1d2c21af6c478b9b48be555acbc7f568826d3c3 | 3,316 | cpp | C++ | PlayerInfo/Dolby/DolbyOutput.cpp | Michal-Bugno/ThunderNanoServices | 9b328519a363c602823f9d1f101d47f0a2482a23 | [
"BSD-2-Clause"
] | 7 | 2020-03-24T15:26:23.000Z | 2021-12-21T21:42:38.000Z | PlayerInfo/Dolby/DolbyOutput.cpp | Michal-Bugno/ThunderNanoServices | 9b328519a363c602823f9d1f101d47f0a2482a23 | [
"BSD-2-Clause"
] | 224 | 2020-03-05T17:40:39.000Z | 2022-03-23T13:18:56.000Z | PlayerInfo/Dolby/DolbyOutput.cpp | Michal-Bugno/ThunderNanoServices | 9b328519a363c602823f9d1f101d47f0a2482a23 | [
"BSD-2-Clause"
] | 52 | 2020-03-05T17:24:05.000Z | 2022-03-31T02:13:40.000Z | /*
* If not stated otherwise in this file or this component's LICENSE file the
* following copyright and licenses apply:
*
* Copyright 2020 Metrological
*
* 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 ... | 32.509804 | 147 | 0.59228 | Michal-Bugno |
e1d5168d3aa19f1f78a5dd2ca476f5e488922a01 | 2,154 | cpp | C++ | OpenRPG/Components/SoundComponent.cpp | OpenRPGs/OpenRPG | 0baed49c1d7e6f871457c441aa0209ec4280265a | [
"MIT"
] | 28 | 2019-08-09T04:07:04.000Z | 2022-01-16T05:56:22.000Z | OpenRPG/Components/SoundComponent.cpp | OpenRPGs/OpenRPG | 0baed49c1d7e6f871457c441aa0209ec4280265a | [
"MIT"
] | 29 | 2019-08-09T04:02:59.000Z | 2019-09-16T05:01:33.000Z | OpenRPG/Components/SoundComponent.cpp | OpenRPGs/OpenRPG | 0baed49c1d7e6f871457c441aa0209ec4280265a | [
"MIT"
] | 18 | 2019-08-09T02:42:09.000Z | 2022-01-16T06:03:32.000Z | #include "stdafx.h"
#include "SoundComponent.h"
bool SoundComponent::isSame(sf::SoundBuffer& buffer) {
return &buffer == this->sound->getBuffer();
}
bool SoundComponent::Loaded() {
return this->sound != NULL;
}
#pragma region Play, Pause, Stop
SoundComponent* SoundComponent::play() {
if (this->sound == NULL)
r... | 19.944444 | 64 | 0.697307 | OpenRPGs |
e1d85a375708100cbe46b34ba007e78a9792128a | 877 | hpp | C++ | HiLo/Game.hpp | JankoDedic/Hi-Lo | b9d73b7a50deb76b6282c5541d496335d749a0f5 | [
"MIT"
] | 1 | 2019-09-18T01:32:23.000Z | 2019-09-18T01:32:23.000Z | HiLo/Game.hpp | JankoDedic/Hi-Lo | b9d73b7a50deb76b6282c5541d496335d749a0f5 | [
"MIT"
] | null | null | null | HiLo/Game.hpp | JankoDedic/Hi-Lo | b9d73b7a50deb76b6282c5541d496335d749a0f5 | [
"MIT"
] | null | null | null | #pragma once
#include "CreditsView.hpp"
#include "GameScene.hpp"
#include "MenuSceneView.hpp"
namespace HiLo {
class Game
: public Observer<MenuSceneView>
, public Observer<GameScene>
, public Observer<CreditsView> {
public:
auto receiveEvent(MenuSceneView*, MenuSceneView::Event const&) noexcept
... | 21.390244 | 75 | 0.686431 | JankoDedic |
e1d96168d8b9d6714174e84c3b866df100f59f73 | 1,044 | cpp | C++ | src/mettle/run_test_files.cpp | jimporter/mettle | c65aa75b04a08b550b3572f4c080c68e26ad86fa | [
"BSD-3-Clause"
] | 82 | 2015-01-05T10:06:44.000Z | 2022-03-07T01:41:28.000Z | src/mettle/run_test_files.cpp | JohnGalbraith/mettle | 38b70fe1dc0f30e98b768a37108196328182b5f4 | [
"BSD-3-Clause"
] | 44 | 2015-01-08T08:40:54.000Z | 2021-10-29T23:28:56.000Z | src/mettle/run_test_files.cpp | jimporter/mettle | c65aa75b04a08b550b3572f4c080c68e26ad86fa | [
"BSD-3-Clause"
] | 13 | 2015-06-23T07:41:54.000Z | 2020-02-14T15:35:07.000Z | #include "run_test_files.hpp"
#include "log_pipe.hpp"
#ifndef _WIN32
# include "posix/run_test_file.hpp"
namespace platform = mettle::posix;
#else
# include "windows/run_test_file.hpp"
namespace platform = mettle::windows;
#endif
namespace mettle {
void run_test_files(
const std::vector<test_command> &comma... | 24.857143 | 72 | 0.65613 | jimporter |
e1d9f6248ede03dddee6e14ead9b6d6f3fa8e193 | 3,989 | cc | C++ | tests/unit/termination/test_termination_action_callable.extended.cc | rbuch/vt | 74c2e0cae3201dfbcbfda7644c354703ddaed6bb | [
"BSD-3-Clause"
] | 26 | 2019-11-26T08:36:15.000Z | 2022-02-15T17:13:21.000Z | tests/unit/termination/test_termination_action_callable.extended.cc | rbuch/vt | 74c2e0cae3201dfbcbfda7644c354703ddaed6bb | [
"BSD-3-Clause"
] | 1,215 | 2019-09-09T14:31:33.000Z | 2022-03-30T20:20:14.000Z | tests/unit/termination/test_termination_action_callable.extended.cc | rbuch/vt | 74c2e0cae3201dfbcbfda7644c354703ddaed6bb | [
"BSD-3-Clause"
] | 12 | 2019-09-08T00:03:05.000Z | 2022-02-23T21:28:35.000Z | /*
//@HEADER
// *****************************************************************************
//
// test_termination_action_callable.extended.cc
// DARMA/vt => Virtual Transport
//
// Copyright 2019-2021 National Technology & Engineering Solutions of Sandia, LLC
// (NTESS). Under t... | 33.521008 | 81 | 0.686388 | rbuch |
e1da9319c9add4892f817be61434d71d464f15b8 | 745 | cpp | C++ | Shape Information/DNAshapeR-2nd-order/src/map.cpp | felixekn/MuANN | 06bf80e2901e46faf77632b6240bde18199a21ab | [
"MIT"
] | 1 | 2017-12-04T06:12:23.000Z | 2017-12-04T06:12:23.000Z | Shape Information/DNAshapeR-2nd-order/src/map.cpp | felixekn/MuANN | 06bf80e2901e46faf77632b6240bde18199a21ab | [
"MIT"
] | 3 | 2017-05-03T17:27:35.000Z | 2018-05-17T05:10:53.000Z | Shape Information/DNAshapeR-2nd-order/src/map.cpp | felixekn/MuANN | 06bf80e2901e46faf77632b6240bde18199a21ab | [
"MIT"
] | null | null | null | #include "map.h"
#include "utilities.h"
void build_unique_pentamers(DNA_to_properties& pentamers){
std::string alphabet[4]={"A","T","G","C"};
pentamers.clear();
std::string t="";
for (int i=0;i<4;i++)
for (int j=0;j<4;j++)
for (int k=0;k<4;k++)
for (int l=0;l<4;l++)
for (int m=0;m<4;m++){
t=... | 26.607143 | 96 | 0.62953 | felixekn |
e1dad46882ae8f68205a619dbdea20c4bdf66f40 | 5,152 | cc | C++ | cc/aead/kms_envelope_aead.cc | BearerPipelineTest/tink | cb814f1e1b69caf6211046bee083a730625a3cf9 | [
"Apache-2.0"
] | null | null | null | cc/aead/kms_envelope_aead.cc | BearerPipelineTest/tink | cb814f1e1b69caf6211046bee083a730625a3cf9 | [
"Apache-2.0"
] | null | null | null | cc/aead/kms_envelope_aead.cc | BearerPipelineTest/tink | cb814f1e1b69caf6211046bee083a730625a3cf9 | [
"Apache-2.0"
] | null | null | null | // Copyright 2019 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in w... | 37.333333 | 79 | 0.693711 | BearerPipelineTest |
e1db765306c8fd4c768e4e067f6a786bb72a6504 | 6,932 | cxx | C++ | Testing/Code/Libraries/Old/TestStringMsg_General.cxx | NifTK/NiftyLink | b8b794afb682ffcdcf5181661fcf167989369a5d | [
"BSD-3-Clause"
] | 5 | 2015-05-10T14:09:34.000Z | 2021-02-23T03:35:51.000Z | Testing/Code/Libraries/Old/TestStringMsg_General.cxx | NifTK/NiftyLink | b8b794afb682ffcdcf5181661fcf167989369a5d | [
"BSD-3-Clause"
] | null | null | null | Testing/Code/Libraries/Old/TestStringMsg_General.cxx | NifTK/NiftyLink | b8b794afb682ffcdcf5181661fcf167989369a5d | [
"BSD-3-Clause"
] | 1 | 2021-02-23T03:35:52.000Z | 2021-02-23T03:35:52.000Z | /*=============================================================================
NiftyLink: A software library to facilitate communication over OpenIGTLink.
Copyright (c) University College London (UCL). All rights reserved.
This software is distributed WITHOUT ANY WARRANTY; without even
the implied warranty ... | 25.207273 | 117 | 0.515436 | NifTK |
e1dbf5f086f8b244c45ebe419a1c02834a7f6330 | 11,583 | cpp | C++ | src/Gaffer/Loop.cpp | sebaDesmet/gaffer | 47b2d093c40452bd77947e3b5bd0722a366c8d59 | [
"BSD-3-Clause"
] | null | null | null | src/Gaffer/Loop.cpp | sebaDesmet/gaffer | 47b2d093c40452bd77947e3b5bd0722a366c8d59 | [
"BSD-3-Clause"
] | null | null | null | src/Gaffer/Loop.cpp | sebaDesmet/gaffer | 47b2d093c40452bd77947e3b5bd0722a366c8d59 | [
"BSD-3-Clause"
] | null | null | null | //////////////////////////////////////////////////////////////////////////
//
// Copyright (c) 2015, John Haddon. All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are
// met:
//
// * Redistributio... | 30.085714 | 151 | 0.693085 | sebaDesmet |
e1e44441baa81a3b81111f8dafa04a4ce0840b82 | 18 | cpp | C++ | tools/datadic_template_tail.cpp | mariusherzog/dicom | 826a1dadb294637f350a665b9c4f97f2cd46439d | [
"MIT"
] | 15 | 2016-01-28T16:54:57.000Z | 2021-04-16T08:28:21.000Z | tools/datadic_template_tail.cpp | mariusherzog/dicom | 826a1dadb294637f350a665b9c4f97f2cd46439d | [
"MIT"
] | null | null | null | tools/datadic_template_tail.cpp | mariusherzog/dicom | 826a1dadb294637f350a665b9c4f97f2cd46439d | [
"MIT"
] | 3 | 2016-07-16T05:22:11.000Z | 2020-04-03T08:59:26.000Z |
}
}
}
#endif
| 1.8 | 6 | 0.277778 | mariusherzog |
e1e4b1ff626da2248eafe06ab928efcd07af6081 | 1,507 | cpp | C++ | mpid/nt2unix/tests/test_threads_2.cpp | RWTH-OS/MP-MPICH | f2ae296477bb9d812fda587221b3419c09f85b4a | [
"mpich2"
] | null | null | null | mpid/nt2unix/tests/test_threads_2.cpp | RWTH-OS/MP-MPICH | f2ae296477bb9d812fda587221b3419c09f85b4a | [
"mpich2"
] | null | null | null | mpid/nt2unix/tests/test_threads_2.cpp | RWTH-OS/MP-MPICH | f2ae296477bb9d812fda587221b3419c09f85b4a | [
"mpich2"
] | 1 | 2021-01-23T11:01:01.000Z | 2021-01-23T11:01:01.000Z | /* $id$ */
#include <windows.h>
#include <stdio.h>
#include <iostream>
using namespace std;
#define Size 8192
LPVOID Address;
volatile unsigned long counter;
DWORD __stdcall threadFunc(void *) {
fprintf(stderr, "Thread start \n");
getc(stdin);
return 0;
}
LONG MemoryExceptionFilter(_EXCEPTION_POINTERS *... | 20.643836 | 120 | 0.707366 | RWTH-OS |
e1e586520cdaecdacf771e0c7269c75e3eaad61c | 3,940 | cpp | C++ | src/MetricsUploader/CaptureMetric.cpp | hrkrx/orbit | 47621f2ea6e5bba055861e1111addcb1d913a440 | [
"BSD-2-Clause"
] | 2 | 2020-07-31T08:18:58.000Z | 2021-12-26T06:43:07.000Z | src/MetricsUploader/CaptureMetric.cpp | hrkrx/orbit | 47621f2ea6e5bba055861e1111addcb1d913a440 | [
"BSD-2-Clause"
] | null | null | null | src/MetricsUploader/CaptureMetric.cpp | hrkrx/orbit | 47621f2ea6e5bba055861e1111addcb1d913a440 | [
"BSD-2-Clause"
] | null | null | null | // Copyright (c) 2021 The Orbit 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 "MetricsUploader/CaptureMetric.h"
#include <chrono>
#include <cstdint>
#include <filesystem>
#include "OrbitBase/File.h"
#include "OrbitBase/L... | 45.813953 | 98 | 0.816497 | hrkrx |
e1e669e49acbe07063387bad419876c82e6f925c | 1,354 | hpp | C++ | include/kobuki_core/modules/sound.hpp | kobuki-base/kobuki_core | 5fb88169d010c3a23f24ff0ba7e9cb45b46b24e8 | [
"BSD-3-Clause"
] | 10 | 2020-06-01T05:05:27.000Z | 2022-01-18T13:19:58.000Z | include/kobuki_core/modules/sound.hpp | clalancette/kobuki_core | e5bef97d3c1db24441508673e08c67be599faa84 | [
"BSD-3-Clause"
] | 28 | 2020-01-10T14:42:54.000Z | 2021-07-28T08:01:44.000Z | include/kobuki_core/modules/sound.hpp | clalancette/kobuki_core | e5bef97d3c1db24441508673e08c67be599faa84 | [
"BSD-3-Clause"
] | 8 | 2020-02-04T09:59:18.000Z | 2021-08-29T01:59:38.000Z | /**
* @file /kobuki_core/include/kobuki_core/modules/sound.hpp
*
* @brief Flags and id's for commanding sound sequences.
*
* License: BSD
* https://raw.githubusercontent.com/kobuki-base/kobuki_core/license/LICENSE
**/
/*****************************************************************************
** Ifdefs
****... | 30.772727 | 78 | 0.350812 | kobuki-base |
e1e6ace46bd157efc2be7f99b06c0770221c0e2b | 8,282 | hh | C++ | grasp/run_trials.hh | el-cangrejo/grasp | 492dd14928b0072beecf752075b712db96f06834 | [
"MIT"
] | 70 | 2018-10-17T17:37:22.000Z | 2022-02-28T15:19:47.000Z | grasp/run_trials.hh | el-cangrejo/grasp | 492dd14928b0072beecf752075b712db96f06834 | [
"MIT"
] | 3 | 2020-12-08T13:02:17.000Z | 2022-02-22T11:59:00.000Z | grasp/run_trials.hh | el-cangrejo/grasp | 492dd14928b0072beecf752075b712db96f06834 | [
"MIT"
] | 17 | 2018-10-29T04:09:45.000Z | 2022-03-19T11:34:55.000Z | /*!
\file grasp/run_trials.hh
\brief Performs grasp trials
Run full dynamic simulated grasp trials in Gazebo
\author João Borrego : jsbruglie
*/
#ifndef _RUN_TRIALS_HH_
#define _RUN_TRIALS_HH_
// Gazebo
#include <gazebo/gazebo_client.hh>
#include <gazebo/gazebo_config.h>
#include <gazebo/transport/t... | 30.226277 | 68 | 0.746921 | el-cangrejo |
e1e6c3c90222d21e2cd1183d7dbcbe9a2f00091f | 504 | cpp | C++ | applications/image-viewer/main.cpp | harsh-kakasaniya55/skift | 79ccaf5398cfb7921599105607ad6688ece452d8 | [
"MIT"
] | 2 | 2021-08-14T16:03:48.000Z | 2021-11-09T10:29:36.000Z | applications/image-viewer/main.cpp | harsh-kakasaniya55/skift | 79ccaf5398cfb7921599105607ad6688ece452d8 | [
"MIT"
] | null | null | null | applications/image-viewer/main.cpp | harsh-kakasaniya55/skift | 79ccaf5398cfb7921599105607ad6688ece452d8 | [
"MIT"
] | 2 | 2020-10-13T14:25:30.000Z | 2020-10-13T14:39:40.000Z | #include <libwidget/Application.h>
#include <libwidget/Widgets.h>
int main(int argc, char **argv)
{
if (argc == 1)
return -1;
if (application_initialize(argc, argv) != SUCCESS)
return -1;
Window *window = new Window(WINDOW_RESIZABLE);
window->icon(Icon::get("image"));
window->tit... | 21 | 73 | 0.634921 | harsh-kakasaniya55 |
e1ebe397a5498ffb928acb3bcdcba8ff0e5b1ec0 | 435 | cpp | C++ | src/logic/wire_get_inputs.cpp | nanolith/homesim | 693cd77c9ecd0fb8bbaf1848609a63eb56fa4b86 | [
"MIT"
] | null | null | null | src/logic/wire_get_inputs.cpp | nanolith/homesim | 693cd77c9ecd0fb8bbaf1848609a63eb56fa4b86 | [
"MIT"
] | null | null | null | src/logic/wire_get_inputs.cpp | nanolith/homesim | 693cd77c9ecd0fb8bbaf1848609a63eb56fa4b86 | [
"MIT"
] | null | null | null | /**
* \file logic/wire_get_inputs.cpp
*
* \brief Get the number of input connections on this wire.
*
* \copyright Copyright 2020 Justin Handville. All rights reserved.
*/
#include <homesim/wire.h>
using namespace homesim;
using namespace std;
/**
* \brief Get the number of input connections associated with thi... | 19.772727 | 72 | 0.710345 | nanolith |
e1ec110d998274f5a5c52cc4d6f51dad04dfb176 | 999 | cpp | C++ | ojcpp/leetcode/200/231_e_poweroftwo.cpp | softarts/oj | 2f51f360a7a6c49e865461755aec2f3a7e721b9e | [
"Apache-2.0"
] | 3 | 2019-05-04T03:26:02.000Z | 2019-08-29T01:20:44.000Z | ojcpp/leetcode/200/231_e_poweroftwo.cpp | softarts/oj | 2f51f360a7a6c49e865461755aec2f3a7e721b9e | [
"Apache-2.0"
] | null | null | null | ojcpp/leetcode/200/231_e_poweroftwo.cpp | softarts/oj | 2f51f360a7a6c49e865461755aec2f3a7e721b9e | [
"Apache-2.0"
] | null | null | null | //
// Created by Rui Zhou on 30/3/18.
//
/*
* https://leetcode.com/problems/power-of-two/description/
*
*/
#include <codech/codech_def.h>
using namespace std;
//这题目好像不对
//namespace yt {
// int Count(const vector<int>& nums)
// {
// int count = 0;
// for (int i = 0;i < nums.size();i++) {
// ... | 17.839286 | 58 | 0.443443 | softarts |
e1f0eabc86e95178e3bf794c4208cdec17c6d142 | 1,540 | cpp | C++ | source files/StringTest.cpp | SABERGLOW/String_Class | 407ca5d7640417e756eeb5e0742a447c035df9fb | [
"MIT"
] | 4 | 2020-07-28T16:57:11.000Z | 2020-08-26T16:33:43.000Z | source files/StringTest.cpp | SABERGLOW/String_Class | 407ca5d7640417e756eeb5e0742a447c035df9fb | [
"MIT"
] | null | null | null | source files/StringTest.cpp | SABERGLOW/String_Class | 407ca5d7640417e756eeb5e0742a447c035df9fb | [
"MIT"
] | null | null | null | #include <iostream>
#include "String.h"
#include "String.cpp"
using namespace std;
using namespace HomeMadeString;
int main()
{
// Test the default constructor
String s1;
// Test the conversion constructor
String s2="Hello, hello!";
// Let's see the results
cout<<endl<<"TESTING s1: "<<endl;
... | 23.692308 | 97 | 0.657143 | SABERGLOW |
e1f6799a75aa244a8dce78e19b3602a504d02528 | 307 | cpp | C++ | aql/benchmark/lib_7/class_4.cpp | menify/sandbox | 32166c71044f0d5b414335b2b6559adc571f568c | [
"MIT"
] | null | null | null | aql/benchmark/lib_7/class_4.cpp | menify/sandbox | 32166c71044f0d5b414335b2b6559adc571f568c | [
"MIT"
] | null | null | null | aql/benchmark/lib_7/class_4.cpp | menify/sandbox | 32166c71044f0d5b414335b2b6559adc571f568c | [
"MIT"
] | null | null | null | #include "class_4.h"
#include "class_6.h"
#include "class_1.h"
#include "class_0.h"
#include "class_3.h"
#include "class_4.h"
#include <lib_6/class_6.h>
#include <lib_5/class_9.h>
#include <lib_6/class_2.h>
#include <lib_3/class_1.h>
#include <lib_3/class_7.h>
class_4::class_4() {}
class_4::~class_4() {}
| 20.466667 | 26 | 0.710098 | menify |
e1f7492f415d27eb623bdbd87f7ec7406853a1ad | 2,747 | hpp | C++ | OcularEditor/include/Widgets/Standard/LineEdit.hpp | ssell/OcularEngine | c80cc4fcdb7dd7ce48d3af330bd33d05312076b1 | [
"Apache-2.0"
] | 8 | 2017-01-27T01:06:06.000Z | 2020-11-05T20:23:19.000Z | OcularEditor/include/Widgets/Standard/LineEdit.hpp | ssell/OcularEngine | c80cc4fcdb7dd7ce48d3af330bd33d05312076b1 | [
"Apache-2.0"
] | 39 | 2016-06-03T02:00:36.000Z | 2017-03-19T17:47:39.000Z | OcularEditor/include/Widgets/Standard/LineEdit.hpp | ssell/OcularEngine | c80cc4fcdb7dd7ce48d3af330bd33d05312076b1 | [
"Apache-2.0"
] | 4 | 2019-05-22T09:13:36.000Z | 2020-12-01T03:17:45.000Z | /**
* Copyright 2014-2017 Steven T Sell (ssell@vertexfragment.com)
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless requir... | 23.478632 | 92 | 0.488533 | ssell |
e1f81cb8a2e4ced1b30a218e97e87951e1d3ad0b | 10,511 | hh | C++ | Include/OpenMesh/Tools/Decimater/ModNormalDeviationT.hh | 565353780/peeling-art | 7427321c8cbf076361c8de2281a0f0cde7fd38bb | [
"MIT"
] | null | null | null | Include/OpenMesh/Tools/Decimater/ModNormalDeviationT.hh | 565353780/peeling-art | 7427321c8cbf076361c8de2281a0f0cde7fd38bb | [
"MIT"
] | null | null | null | Include/OpenMesh/Tools/Decimater/ModNormalDeviationT.hh | 565353780/peeling-art | 7427321c8cbf076361c8de2281a0f0cde7fd38bb | [
"MIT"
] | null | null | null | /* ========================================================================= *
* *
* OpenMesh *
* Copyright (c) 2001-2015, RWTH-Aachen University *
... | 39.367041 | 151 | 0.508229 | 565353780 |
e1fa970b57e33dfee8949461c014256eba122678 | 7,196 | cc | C++ | server.cc | ctiller/ced-1 | 8aa0bb3431988c7f13a0e5a40f378e8e9fa0066b | [
"Apache-2.0"
] | null | null | null | server.cc | ctiller/ced-1 | 8aa0bb3431988c7f13a0e5a40f378e8e9fa0066b | [
"Apache-2.0"
] | null | null | null | server.cc | ctiller/ced-1 | 8aa0bb3431988c7f13a0e5a40f378e8e9fa0066b | [
"Apache-2.0"
] | 1 | 2021-11-29T13:02:11.000Z | 2021-11-29T13:02:11.000Z | // Copyright 2017 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// https://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in ... | 33.16129 | 80 | 0.61159 | ctiller |
e1fbbb0c416b02c0f612fd77c7f33b56e69190bc | 1,723 | cpp | C++ | src/Translater/PassManager.cpp | elite-lang/Elite | f65998863bb13c247c27c781b0cdb4cfc6ba8ae3 | [
"MIT"
] | 48 | 2015-12-28T01:42:57.000Z | 2022-03-11T02:59:17.000Z | src/Translater/PassManager.cpp | elite-lang/Elite | f65998863bb13c247c27c781b0cdb4cfc6ba8ae3 | [
"MIT"
] | 17 | 2015-12-16T07:43:52.000Z | 2016-04-17T12:30:48.000Z | src/Translater/PassManager.cpp | elite-lang/Elite | f65998863bb13c247c27c781b0cdb4cfc6ba8ae3 | [
"MIT"
] | 14 | 2015-12-22T06:54:14.000Z | 2020-12-02T06:39:45.000Z |
#include "Elite/Translater/PassManager.h"
#include "Elite/CodeGen/ICodeGenContext.h"
PassManager::PassManager () {
}
PassManager::~PassManager () {
}
void PassManager::NewPassList(const string& name, const vector<Pass*>& vec) {
NewPassList(name, list<Pass*>(vec.begin(), vec.end()));
}
void PassManager::Ne... | 24.971014 | 105 | 0.641323 | elite-lang |
e1fce58e5800d269900e1bbac7ce48afad5b300b | 437 | cpp | C++ | hal/src/driver/null/eplibrary_null.cpp | Euclideon/udshell | 795e2d832429c8e5e47196742afc4b452aa23ec3 | [
"MIT"
] | null | null | null | hal/src/driver/null/eplibrary_null.cpp | Euclideon/udshell | 795e2d832429c8e5e47196742afc4b452aa23ec3 | [
"MIT"
] | null | null | null | hal/src/driver/null/eplibrary_null.cpp | Euclideon/udshell | 795e2d832429c8e5e47196742afc4b452aa23ec3 | [
"MIT"
] | null | null | null | #include "driver.h"
#if EPSYSTEM_DRIVER == EPDRIVER_NULL
#include "hal/library.h"
bool epLibrary_Open(epLibrary *pLibrary, const char *filename)
{
return false;
}
bool epLibrary_Close(epLibrary library)
{
return false;
}
void *epLibrary_GetFunction(epLibrary library, const char *funcName)
{
return nullptr;
}... | 14.566667 | 68 | 0.75286 | Euclideon |
e1fdf3d085af806f32cd1bd4beaa15f487a45f64 | 2,975 | cpp | C++ | src/process_start.cpp | ValentinSidorov/DeLorean_Team | 921eb12d96d202c4c19fded3cf190abcbd075af0 | [
"MIT"
] | null | null | null | src/process_start.cpp | ValentinSidorov/DeLorean_Team | 921eb12d96d202c4c19fded3cf190abcbd075af0 | [
"MIT"
] | 20 | 2022-01-29T13:13:09.000Z | 2022-02-23T09:52:55.000Z | src/process_start.cpp | ValentinSidorov/DeLorean_Team | 921eb12d96d202c4c19fded3cf190abcbd075af0 | [
"MIT"
] | 1 | 2022-02-01T20:43:35.000Z | 2022-02-01T20:43:35.000Z | #include "process_start.h"
pid_t start_process(set_prog_start &program) {
pid_t process_pid;
// create new process
process_pid = fork();
if (process_pid == -1) {
// error of creation process
LOG("Error in process_start. Function fork(), couldn't do fork, for "
"program_name: " +
pro... | 33.806818 | 79 | 0.594286 | ValentinSidorov |
c006290aa4aef27a1aea1ab0b9a1e1cd5939ffed | 827 | cpp | C++ | old_solutions/maximising_xor.cpp | DSC-JSS-NOIDA/competitive | aa8807db24df389e52ba66dd0c5847e60237930b | [
"Apache-2.0"
] | null | null | null | old_solutions/maximising_xor.cpp | DSC-JSS-NOIDA/competitive | aa8807db24df389e52ba66dd0c5847e60237930b | [
"Apache-2.0"
] | null | null | null | old_solutions/maximising_xor.cpp | DSC-JSS-NOIDA/competitive | aa8807db24df389e52ba66dd0c5847e60237930b | [
"Apache-2.0"
] | 7 | 2018-10-25T12:13:25.000Z | 2020-10-01T18:09:05.000Z | #include <bits/stdc++.h>
using namespace std;
// Complete the maximizingXor function below.
int maximizingXor(int l, int r) {
// get xor of limits
int LXR = L ^ R;
// loop to get msb position of L^R
int msbPos = 0;
while (LXR)
{
msbPos++;
LXR >>= 1;
}
// construct... | 15.603774 | 56 | 0.523579 | DSC-JSS-NOIDA |
c008cb026c37e421c9857f545fa8321eb5b33ec0 | 6,641 | cxx | C++ | Rendering/OpenGL2/vtkToneMappingPass.cxx | fluentgcc/VTK | dcbfc0df70212ef9f01cbc2a68387b2d44dce808 | [
"BSD-3-Clause"
] | null | null | null | Rendering/OpenGL2/vtkToneMappingPass.cxx | fluentgcc/VTK | dcbfc0df70212ef9f01cbc2a68387b2d44dce808 | [
"BSD-3-Clause"
] | null | null | null | Rendering/OpenGL2/vtkToneMappingPass.cxx | fluentgcc/VTK | dcbfc0df70212ef9f01cbc2a68387b2d44dce808 | [
"BSD-3-Clause"
] | null | null | null | /*=========================================================================
Program: Visualization Toolkit
Module: vtkToneMappingPass.cxx
Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
All rights reserved.
See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
This softwa... | 29.127193 | 96 | 0.630778 | fluentgcc |
c00c3d39850e3716f921bc54dd0b9ab7d3e5b388 | 3,179 | cc | C++ | trng/yarn4.cc | sthagen/rabauke-trng4 | 5ef09d7e4ac149ad4e1c0a3817e5dace7eb12d55 | [
"BSD-3-Clause"
] | null | null | null | trng/yarn4.cc | sthagen/rabauke-trng4 | 5ef09d7e4ac149ad4e1c0a3817e5dace7eb12d55 | [
"BSD-3-Clause"
] | null | null | null | trng/yarn4.cc | sthagen/rabauke-trng4 | 5ef09d7e4ac149ad4e1c0a3817e5dace7eb12d55 | [
"BSD-3-Clause"
] | null | null | null | // Copyright (c) 2000-2022, Heiko Bauke
// 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 ... | 34.934066 | 93 | 0.674426 | sthagen |
c00c44b3e79aee6709158d4e5a40ec54b0ace1fc | 401 | hh | C++ | PacDisplay/PacDispCyl.hh | brownd1978/FastSim | 05f590d72d8e7f71856fd833114a38b84fc7fd48 | [
"Apache-2.0"
] | null | null | null | PacDisplay/PacDispCyl.hh | brownd1978/FastSim | 05f590d72d8e7f71856fd833114a38b84fc7fd48 | [
"Apache-2.0"
] | null | null | null | PacDisplay/PacDispCyl.hh | brownd1978/FastSim | 05f590d72d8e7f71856fd833114a38b84fc7fd48 | [
"Apache-2.0"
] | null | null | null | #ifndef PacDispCyl_HH
#define PacDispCyl_HH
#include <stdio.h>
#include <Rtypes.h>
#define STRINGSIZE 100
struct PacDispCyl {
virtual ~PacDispCyl() {;}
Double_t radius,thickness,lowZ,hiZ;
Int_t imat;
PacDispCyl():radius(-1.0),thickness(-1.0),lowZ(-1.0),hiZ(1.0){}
static const char* rootnames() {
return ... | 19.095238 | 65 | 0.690773 | brownd1978 |
84fed91bc7e65bdaacb76e5e3d29b1e08aa706d0 | 3,592 | cpp | C++ | GitCommit.cpp | simoc/wyag | e94edb6e9ef2aa650d88b59c428a667ef7fe3d59 | [
"MIT"
] | null | null | null | GitCommit.cpp | simoc/wyag | e94edb6e9ef2aa650d88b59c428a667ef7fe3d59 | [
"MIT"
] | null | null | null | GitCommit.cpp | simoc/wyag | e94edb6e9ef2aa650d88b59c428a667ef7fe3d59 | [
"MIT"
] | null | null | null | #include <algorithm>
#include "GitCommit.h"
GitCommit::GitCommit(GitRepository *repo) :
GitObject(repo, "commit")
{
}
GitCommit::GitCommit(GitRepository *repo, const std::string &fmt) :
GitObject(repo, fmt)
{
}
std::vector<unsigned char>
GitCommit::serialize()
{
return kvlm_serialize();
}
void
GitCommit::deseri... | 20.525714 | 74 | 0.618875 | simoc |
84feeddd9fc64f33ff581e2c95eadc893772466f | 6,128 | cpp | C++ | src/Extensions/Sampler/SamplerPanel.cpp | Freaxed/xrs-haiku | 74617bc5740fc15b165686a14894d4382096fad3 | [
"BSD-3-Clause"
] | 1 | 2022-03-25T15:40:45.000Z | 2022-03-25T15:40:45.000Z | src/Extensions/Sampler/SamplerPanel.cpp | Freaxed/xrs-haiku | 74617bc5740fc15b165686a14894d4382096fad3 | [
"BSD-3-Clause"
] | null | null | null | src/Extensions/Sampler/SamplerPanel.cpp | Freaxed/xrs-haiku | 74617bc5740fc15b165686a14894d4382096fad3 | [
"BSD-3-Clause"
] | null | null | null | /*
*
* Copyright 2006-2022, Andrea Anzani.
* Distributed under the terms of the MIT License.
*
* Authors:
* Andrea Anzani <andrea.anzani@gmail.com>
*/
#include "SamplerPanel.h"
#include "Sample.h"
#include "SamplerTrackBoost.h"
#include "GlobalDef.h"
#include "GfxMsg.h"
#include "SamplerTrack.h"
#include "Xed... | 23.212121 | 122 | 0.678362 | Freaxed |
1701a6d200d0577106576d73da7ab1b6306ca2fa | 700 | cpp | C++ | src/urls/resolver.cpp | YuriyLisovskiy/xalwart | ee50f0ff991f76192291e9f8f16928ab1428632e | [
"Apache-2.0"
] | null | null | null | src/urls/resolver.cpp | YuriyLisovskiy/xalwart | ee50f0ff991f76192291e9f8f16928ab1428632e | [
"Apache-2.0"
] | null | null | null | src/urls/resolver.cpp | YuriyLisovskiy/xalwart | ee50f0ff991f76192291e9f8f16928ab1428632e | [
"Apache-2.0"
] | null | null | null | /**
* urls/resolver.cpp
*
* Copyright (c) 2019-2021 Yuriy Lisovskiy
*/
#include "./resolver.h"
__URLS_BEGIN__
std::function<std::unique_ptr<http::IResponse>(http::IRequest*, conf::Settings*)> resolve(
const std::string& path, const std::vector<std::shared_ptr<IPattern>>& urlpatterns
)
{
std::function<std::uni... | 20.588235 | 96 | 0.678571 | YuriyLisovskiy |
1701ffe8d4f5942086414b702aa67bf7d6bd5d51 | 6,580 | cpp | C++ | srrg2_solver/tests/test_se2_icp.cpp | daoran/srrg2_solver | 244fd8f260dfc62b145c9a4e6494775dfe5a8caa | [
"BSD-3-Clause"
] | 124 | 2020-02-26T14:40:45.000Z | 2022-03-29T11:11:48.000Z | srrg2_solver/tests/test_se2_icp.cpp | daoran/srrg2_solver | 244fd8f260dfc62b145c9a4e6494775dfe5a8caa | [
"BSD-3-Clause"
] | null | null | null | srrg2_solver/tests/test_se2_icp.cpp | daoran/srrg2_solver | 244fd8f260dfc62b145c9a4e6494775dfe5a8caa | [
"BSD-3-Clause"
] | 16 | 2020-03-03T00:57:43.000Z | 2022-03-15T00:50:12.000Z | #include <gtest/gtest.h>
#include <srrg_system_utils/parse_command_line.h>
#include <srrg_system_utils/shell_colors.h>
#include "srrg_solver/solver_core/instances.h"
#include "srrg_solver/solver_core/internals/linear_solvers/instances.h"
#include "srrg_solver/solver_core/solver.h"
#include "srrg_solver/variables_and_... | 35.187166 | 92 | 0.730395 | daoran |
17043eba8eec97e5fcf6e4937bcf362c0a06dea8 | 26,955 | cc | C++ | Geometry/TrackerCommonData/plugins/DDTECModuleAlgo.cc | nistefan/cmssw | ea13af97f7f2117a4f590a5e654e06ecd9825a5b | [
"Apache-2.0"
] | 3 | 2018-08-24T19:10:26.000Z | 2019-02-19T11:45:32.000Z | Geometry/TrackerCommonData/plugins/DDTECModuleAlgo.cc | nistefan/cmssw | ea13af97f7f2117a4f590a5e654e06ecd9825a5b | [
"Apache-2.0"
] | 3 | 2018-08-23T13:40:24.000Z | 2019-12-05T21:16:03.000Z | Geometry/TrackerCommonData/plugins/DDTECModuleAlgo.cc | nistefan/cmssw | ea13af97f7f2117a4f590a5e654e06ecd9825a5b | [
"Apache-2.0"
] | 5 | 2018-08-21T16:37:52.000Z | 2020-01-09T13:33:17.000Z | ///////////////////////////////////////////////////////////////////////////////
// File: DDTECModuleAlgo .cc
// Description: Creation of a TEC Test
///////////////////////////////////////////////////////////////////////////////
#include <cmath>
#include <algorithm>
#include <cstdio>
#include <string>
#include <utility... | 40.533835 | 171 | 0.604044 | nistefan |
17087a984bfb322409d3626a78449479d9737aef | 1,328 | cpp | C++ | test/unit/DeviceConfigParserTest.cpp | aetas/RoomHub | 9661c5a04a572ae99a812492db7091da07cf5789 | [
"MIT"
] | 8 | 2019-06-10T19:44:48.000Z | 2021-06-10T23:03:24.000Z | test/unit/DeviceConfigParserTest.cpp | aetas/RoomHub | 9661c5a04a572ae99a812492db7091da07cf5789 | [
"MIT"
] | 10 | 2019-05-15T21:01:54.000Z | 2021-01-16T23:08:53.000Z | test/unit/DeviceConfigParserTest.cpp | aetas/RoomHub | 9661c5a04a572ae99a812492db7091da07cf5789 | [
"MIT"
] | 2 | 2021-09-17T08:20:07.000Z | 2022-03-29T01:17:07.000Z | #include "../main/catch.hpp"
#include "config/device/DeviceConfigParser.hpp"
#include <typeinfo>
#include <iostream>
#include <string.h>
using namespace std;
TEST_CASE("DeviceConfigParser")
{
DeviceConfigParser parser;
SECTION("should parse semicolon-separated-values to DeviceConfig") {
// given:
... | 30.883721 | 77 | 0.61747 | aetas |
1708b690b4c5e013ba67090bdc435196a1e047cf | 4,795 | hh | C++ | optixrap/OGeo.hh | seriksen/opticks | 2173ea282bdae0bbd1abf4a3535bede334413ec1 | [
"Apache-2.0"
] | 1 | 2020-05-13T06:55:49.000Z | 2020-05-13T06:55:49.000Z | optixrap/OGeo.hh | seriksen/opticks | 2173ea282bdae0bbd1abf4a3535bede334413ec1 | [
"Apache-2.0"
] | null | null | null | optixrap/OGeo.hh | seriksen/opticks | 2173ea282bdae0bbd1abf4a3535bede334413ec1 | [
"Apache-2.0"
] | null | null | null | /*
* Copyright (c) 2019 Opticks Team. All Rights Reserved.
*
* This file is part of Opticks
* (see https://bitbucket.org/simoncblyth/opticks).
*
* 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 ... | 30.935484 | 202 | 0.682586 | seriksen |
17090b5cda62448df1a289b222a3d91e1f151305 | 3,740 | cpp | C++ | mod/xlib/xlib.cpp | Lyatus/L | 0b594d722200d5ee0198b5d7b9ee72a5d1e12611 | [
"Unlicense"
] | 45 | 2018-08-24T12:57:38.000Z | 2021-11-12T11:21:49.000Z | mod/xlib/xlib.cpp | Lyatus/L | 0b594d722200d5ee0198b5d7b9ee72a5d1e12611 | [
"Unlicense"
] | null | null | null | mod/xlib/xlib.cpp | Lyatus/L | 0b594d722200d5ee0198b5d7b9ee72a5d1e12611 | [
"Unlicense"
] | 4 | 2019-09-16T02:48:42.000Z | 2020-07-10T03:50:31.000Z | #include <L/src/engine/Engine.h>
#include <L/src/rendering/Renderer.h>
#include <L/src/system/System.h>
#include <L/src/system/Window.h>
#include <L/src/text/String.h>
#include "xlib.h"
static class XWindow* instance(nullptr);
L::Symbol xlib_window_type("xlib");
class XWindow : public L::Window {
protected:
::Dis... | 29.92 | 132 | 0.632353 | Lyatus |
170ae6ad1523f514c387578f4e59dad41166fc9f | 5,620 | cpp | C++ | SpaceShooter/src/Game/Entities/EShipControllable.cpp | tomasmartinsantos/SpaceShooter | 2d930cd9061ca7dbb8f00386cb26ead902f69eff | [
"Apache-2.0"
] | null | null | null | SpaceShooter/src/Game/Entities/EShipControllable.cpp | tomasmartinsantos/SpaceShooter | 2d930cd9061ca7dbb8f00386cb26ead902f69eff | [
"Apache-2.0"
] | null | null | null | SpaceShooter/src/Game/Entities/EShipControllable.cpp | tomasmartinsantos/SpaceShooter | 2d930cd9061ca7dbb8f00386cb26ead902f69eff | [
"Apache-2.0"
] | null | null | null | #include "../../Engine/Input/InputEvent.h"
#include "../../Engine/Input/InputManager.h"
#include "../Components/CWeapon.h"
#include "../../Engine/Math.h"
#include "../UI/WLifebar.h"
#include "../Components/HeadersComponents.h"
#include "../../Engine/Audio/Audiosource.h"
#include "../../Engine/Input/Controller.h"
#inclu... | 31.222222 | 187 | 0.625089 | tomasmartinsantos |
170dbe21f8030fd7cf7f65fe085eded46ed9565b | 330 | cpp | C++ | Code full house/buoi20 nguyen dinh trung duc/newbie/prob C.cpp | ducyb2001/CbyTrungDuc | 0e93394dce600876a098b90ae969575bac3788e1 | [
"Apache-2.0"
] | null | null | null | Code full house/buoi20 nguyen dinh trung duc/newbie/prob C.cpp | ducyb2001/CbyTrungDuc | 0e93394dce600876a098b90ae969575bac3788e1 | [
"Apache-2.0"
] | null | null | null | Code full house/buoi20 nguyen dinh trung duc/newbie/prob C.cpp | ducyb2001/CbyTrungDuc | 0e93394dce600876a098b90ae969575bac3788e1 | [
"Apache-2.0"
] | null | null | null | /*problem C*/
#include<stdio.h>
#include<string.h>
int main(){
int n;
scanf("%d",&n);
int a[n];
int sum=0;
for(int i=0;i<n;i++){
scanf("%d",&a[i]);
sum+=a[i];
}
float tbc=(float)sum/n;
int kq=0;
for(int i=0;i<n;i++){
if(a[i]>tbc){
kq+=a[i];
}
}
if(kq==0){
printf("-1");
return 0;
}
printf("%... | 12.222222 | 24 | 0.490909 | ducyb2001 |
170e458b5971a4e0bb7b0a3db6b5436c1aa66c5c | 702 | hpp | C++ | src/renderer/pipelines/events/BIND.hpp | hexoctal/zenith | eeef065ed62f35723da87c8e73a6716e50d34060 | [
"MIT"
] | 2 | 2021-03-18T16:25:04.000Z | 2021-11-13T00:29:27.000Z | src/renderer/pipelines/events/BIND.hpp | hexoctal/zenith | eeef065ed62f35723da87c8e73a6716e50d34060 | [
"MIT"
] | null | null | null | src/renderer/pipelines/events/BIND.hpp | hexoctal/zenith | eeef065ed62f35723da87c8e73a6716e50d34060 | [
"MIT"
] | 1 | 2021-11-13T00:29:30.000Z | 2021-11-13T00:29:30.000Z | /**
* @file
* @author __AUTHOR_NAME__ <mail@host.com>
* @copyright 2021 __COMPANY_LTD__
* @license <a href="https://opensource.org/licenses/MIT">MIT License</a>
*/
#ifndef ZEN_RENDERER_PIPELINES_EVENTS_BIND_HPP
#define ZEN_RENDERER_PIPELINES_EVENTS_BIND_HPP
#include <string>
namespace Zen {
namespace Events {... | 21.9375 | 82 | 0.730769 | hexoctal |
170e4c2736749d042c444e034419918e75733a7a | 226 | cpp | C++ | MegamanX3/MegamanX3/main.cpp | quangnghiauit/game | 3c0537f96342c6fcb89cf5f3541acfef75b558f1 | [
"MIT"
] | null | null | null | MegamanX3/MegamanX3/main.cpp | quangnghiauit/game | 3c0537f96342c6fcb89cf5f3541acfef75b558f1 | [
"MIT"
] | null | null | null | MegamanX3/MegamanX3/main.cpp | quangnghiauit/game | 3c0537f96342c6fcb89cf5f3541acfef75b558f1 | [
"MIT"
] | null | null | null | #include<Windows.h>
#include"MyGame.h"
int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nCmdShow)
{
MyGame *game = new MyGame(nCmdShow);
game->InitGame();
game->GameRun();
return 0;
} | 20.545455 | 95 | 0.738938 | quangnghiauit |
170fbf11cedf367fac4916f8ecb202f04eec0a67 | 7,724 | cpp | C++ | dynamorio/clients/drcachesim/tools/view.cpp | andre-motta/Project3Compilers | fa366d93ec8d49768fbc86f0c1431391822baf12 | [
"MIT"
] | null | null | null | dynamorio/clients/drcachesim/tools/view.cpp | andre-motta/Project3Compilers | fa366d93ec8d49768fbc86f0c1431391822baf12 | [
"MIT"
] | null | null | null | dynamorio/clients/drcachesim/tools/view.cpp | andre-motta/Project3Compilers | fa366d93ec8d49768fbc86f0c1431391822baf12 | [
"MIT"
] | null | null | null | /* **********************************************************
* Copyright (c) 2017-2020 Google, Inc. All rights reserved.
* **********************************************************/
/*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following ... | 39.408163 | 90 | 0.648628 | andre-motta |
171167a943cfbfe20cfdc4ddf432f82a95d7d6a9 | 140 | cpp | C++ | darknet-master/build/modules/imgproc/color_hsv.sse4_1.cpp | mcyy23633/ship_YOLOv4 | 2eb53e578546fce663a2f3fa153481ce4f82c588 | [
"MIT"
] | null | null | null | darknet-master/build/modules/imgproc/color_hsv.sse4_1.cpp | mcyy23633/ship_YOLOv4 | 2eb53e578546fce663a2f3fa153481ce4f82c588 | [
"MIT"
] | null | null | null | darknet-master/build/modules/imgproc/color_hsv.sse4_1.cpp | mcyy23633/ship_YOLOv4 | 2eb53e578546fce663a2f3fa153481ce4f82c588 | [
"MIT"
] | null | null | null |
#include "C:/opencv/opencv-4.5.1/modules/imgproc/src/precomp.hpp"
#include "C:/opencv/opencv-4.5.1/modules/imgproc/src/color_hsv.simd.hpp"
| 35 | 72 | 0.757143 | mcyy23633 |
1718aea0480f5a310eed75e199d928d4e108e9a3 | 1,212 | cpp | C++ | AdvancedDataStructures/rp_heap_testing_ec504/rp_heap_testbench.cpp | pdvnny/DataStructures-Algorithms | 9c1adbb77126011274129715c1ba589317d4479c | [
"Apache-2.0"
] | null | null | null | AdvancedDataStructures/rp_heap_testing_ec504/rp_heap_testbench.cpp | pdvnny/DataStructures-Algorithms | 9c1adbb77126011274129715c1ba589317d4479c | [
"Apache-2.0"
] | null | null | null | AdvancedDataStructures/rp_heap_testing_ec504/rp_heap_testbench.cpp | pdvnny/DataStructures-Algorithms | 9c1adbb77126011274129715c1ba589317d4479c | [
"Apache-2.0"
] | null | null | null | /**********************************************
Parker Dunn (pgdunn@bu.edu)
EC 504 Final Project
Testbench for my first version of rp_heap.h
***********************************************/
#include <iostream>
#include "rp_heap.h"
using namespace std;
int main() {
rp_heap* myHeap = new rp_heap();
int siz... | 20.896552 | 73 | 0.499175 | pdvnny |
1718bcb3e0909a56d7df2cb1c57df98a0b461be0 | 7,616 | cc | C++ | release/src-rt-6.x.4708/router/mysql/sql/sql_error.cc | afeng11/tomato-arm | 1ca18a88480b34fd495e683d849f46c2d47bb572 | [
"FSFAP"
] | 278 | 2015-11-03T03:01:20.000Z | 2022-01-20T18:21:05.000Z | release/src-rt-6.x.4708/router/mysql/sql/sql_error.cc | afeng11/tomato-arm | 1ca18a88480b34fd495e683d849f46c2d47bb572 | [
"FSFAP"
] | 374 | 2015-11-03T12:37:22.000Z | 2021-12-17T14:18:08.000Z | release/src-rt-6.x.4708/router/mysql/sql/sql_error.cc | afeng11/tomato-arm | 1ca18a88480b34fd495e683d849f46c2d47bb572 | [
"FSFAP"
] | 96 | 2015-11-22T07:47:26.000Z | 2022-01-20T19:52:19.000Z | /*
Copyright (c) 2002-2008 MySQL AB, 2008, 2009 Sun Microsystems, Inc.
Use is subject to license terms.
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; version 2 of the License.
Th... | 28.848485 | 79 | 0.675945 | afeng11 |
17192f89651302fb794b091406686f43367251a8 | 4,124 | cpp | C++ | src/+cv/fisheyeStereoCalibrate.cpp | 1123852253/mexopencv | 17db690133299f561924a45e9092673a4df66c5b | [
"BSD-3-Clause"
] | 571 | 2015-01-04T06:23:19.000Z | 2022-03-31T07:37:19.000Z | src/+cv/fisheyeStereoCalibrate.cpp | 1123852253/mexopencv | 17db690133299f561924a45e9092673a4df66c5b | [
"BSD-3-Clause"
] | 362 | 2015-01-06T14:20:46.000Z | 2022-01-20T08:10:46.000Z | src/+cv/fisheyeStereoCalibrate.cpp | 1123852253/mexopencv | 17db690133299f561924a45e9092673a4df66c5b | [
"BSD-3-Clause"
] | 300 | 2015-01-20T03:21:27.000Z | 2022-03-31T07:36:37.000Z | /**
* @file fisheyeStereoCalibrate.cpp
* @brief mex interface for cv::fisheye::stereoCalibrate
* @ingroup calib3d
* @author Amro
* @date 2017
*/
#include "mexopencv.hpp"
#include "opencv2/calib3d.hpp"
using namespace std;
using namespace cv;
namespace {
/** Create a new MxArray from stereo calibration results.
... | 39.27619 | 90 | 0.626819 | 1123852253 |
171bf164f43b1e782f78ad5548fe47fd9cb27cdb | 11,359 | cpp | C++ | src/turtlecoin-crypto-js.cpp | CASH2-js/cash2-crypto | 1b1386253d5c032ac5a0d619481bff7931c979e9 | [
"BSD-3-Clause"
] | null | null | null | src/turtlecoin-crypto-js.cpp | CASH2-js/cash2-crypto | 1b1386253d5c032ac5a0d619481bff7931c979e9 | [
"BSD-3-Clause"
] | null | null | null | src/turtlecoin-crypto-js.cpp | CASH2-js/cash2-crypto | 1b1386253d5c032ac5a0d619481bff7931c979e9 | [
"BSD-3-Clause"
] | null | null | null | // Copyright (c) 2018-2020, The TurtleCoin Developers
//
// Please see the included LICENSE file for more information.
#include <emscripten/bind.h>
#include <stdio.h>
#include <stdlib.h>
#include <turtlecoin-crypto.h>
using namespace emscripten;
struct Keys
{
std::string publicKey;
std::string secretKey;
};
... | 33.907463 | 120 | 0.758341 | CASH2-js |
171c90f5c8adf93ca64d2d238b50c87cc49cb239 | 724 | cpp | C++ | cpp/G3M/GPUAttributeValueVec1Float.cpp | glob3mobile/g3m | 2b2c6422f05d13e0855b1dbe4e0afed241184193 | [
"BSD-2-Clause"
] | 70 | 2015-02-06T14:39:14.000Z | 2022-01-07T08:32:48.000Z | cpp/G3M/GPUAttributeValueVec1Float.cpp | glob3mobile/g3m | 2b2c6422f05d13e0855b1dbe4e0afed241184193 | [
"BSD-2-Clause"
] | 118 | 2015-01-21T10:18:00.000Z | 2018-10-16T15:00:57.000Z | cpp/G3M/GPUAttributeValueVec1Float.cpp | glob3mobile/g3m | 2b2c6422f05d13e0855b1dbe4e0afed241184193 | [
"BSD-2-Clause"
] | 41 | 2015-01-10T22:29:27.000Z | 2021-06-08T11:56:16.000Z | //
// GPUAttributeValueVec1Float.cpp
// G3M
//
// Created by DIEGO RAMIRO GOMEZ-DECK on 1/4/19.
//
#include "GPUAttributeValueVec1Float.hpp"
GPUAttributeValueVec1Float::GPUAttributeValueVec1Float(IFloatBuffer* buffer,
int arrayElementSize,
... | 30.166667 | 76 | 0.403315 | glob3mobile |
17240c96ec8014dce5c349c2c2097b70997aa4e5 | 2,465 | cpp | C++ | vpnor/test/create_read_window_size.cpp | ibm-openbmc/hiomapd | 8cef63e3a3652b25f6a310800c1e0bf09aeed4c6 | [
"Apache-2.0"
] | 14 | 2021-11-04T07:47:37.000Z | 2022-03-21T10:10:30.000Z | vpnor/test/create_read_window_size.cpp | ibm-openbmc/hiomapd | 8cef63e3a3652b25f6a310800c1e0bf09aeed4c6 | [
"Apache-2.0"
] | 17 | 2018-09-20T02:29:41.000Z | 2019-04-05T04:43:11.000Z | vpnor/test/create_read_window_size.cpp | ibm-openbmc/hiomapd | 8cef63e3a3652b25f6a310800c1e0bf09aeed4c6 | [
"Apache-2.0"
] | 9 | 2017-02-14T03:05:09.000Z | 2019-01-07T20:39:42.000Z | // SPDX-License-Identifier: Apache-2.0
// Copyright (C) 2018 IBM Corp.
#include "config.h"
extern "C" {
#include "test/mbox.h"
#include "test/system.h"
}
#include "vpnor/test/tmpd.hpp"
#include <cassert>
#include <experimental/filesystem>
#include "vpnor/backend.h"
static const auto BLOCK_SIZE = 4096;
static cons... | 31.202532 | 73 | 0.593509 | ibm-openbmc |
172628daaa456b00c9286a0db48929d1559a021f | 958 | hpp | C++ | include/ygp/rng.hpp | qaqwqaqwq-0/YGP | 928d53aff1c8ca1327b0cf7ad6e6836d44c3447f | [
"MIT"
] | 5 | 2020-12-07T08:58:24.000Z | 2021-03-22T08:21:16.000Z | include/ygp/rng.hpp | qaqwqaqwq-0/YGP | 928d53aff1c8ca1327b0cf7ad6e6836d44c3447f | [
"MIT"
] | null | null | null | include/ygp/rng.hpp | qaqwqaqwq-0/YGP | 928d53aff1c8ca1327b0cf7ad6e6836d44c3447f | [
"MIT"
] | 2 | 2021-01-26T07:45:52.000Z | 2021-02-14T15:54:54.000Z | #ifndef _YGP_RNG_HPP_
#define _YGP_RNG_HPP_
#include"configure.hpp"
#include<cstdint>
BEGIN_NAMESPACE_YGP
template<typename _Tp>
class rng/*range*/
{
public:
using t=_Tp;
struct iterator
{
t tc,td;
iterator(t B,t D):tc{B},td{D}{}
t operator++(){return tc+=... | 25.210526 | 71 | 0.515658 | qaqwqaqwq-0 |
17273c77358e8d22cf1f6a9964f5eed94c1b3785 | 2,327 | cpp | C++ | libmarch/tests/core_types.cpp | j8xixo12/solvcon | a8bf3a54d4b1ed91d292e0cdbcb6f2710d33d99a | [
"BSD-3-Clause"
] | 16 | 2015-12-09T02:54:42.000Z | 2021-04-20T11:26:39.000Z | libmarch/tests/core_types.cpp | j8xixo12/solvcon | a8bf3a54d4b1ed91d292e0cdbcb6f2710d33d99a | [
"BSD-3-Clause"
] | 95 | 2015-12-09T00:49:40.000Z | 2022-02-14T13:34:55.000Z | libmarch/tests/core_types.cpp | j8xixo12/solvcon | a8bf3a54d4b1ed91d292e0cdbcb6f2710d33d99a | [
"BSD-3-Clause"
] | 13 | 2015-05-08T04:16:42.000Z | 2021-01-15T09:28:06.000Z | /*
* Copyright (c) 2016, Yung-Yu Chen <yyc@solvcon.net>
* BSD 3-Clause License, see LICENSE.txt
*/
#include <cstdint>
#include <type_traits>
#include <gtest/gtest.h>
#include "march/core/types.hpp"
using namespace march;
TEST(typesTest, TypeId) {
DataTypeId val;
val = type_to<bool>::id;
EXPECT_EQ(va... | 37.532258 | 101 | 0.676407 | j8xixo12 |
172aba938345b6741eb65fd95c87a4fcacf42f84 | 1,913 | cpp | C++ | src/device/controllerNvidia.cpp | ISilence/delirium_cl | d54499af2556511eb47ae90b2420788ca914d314 | [
"MIT"
] | 2 | 2017-06-02T08:08:47.000Z | 2017-08-24T06:43:40.000Z | src/device/controllerNvidia.cpp | ISilence/delirium_cl | d54499af2556511eb47ae90b2420788ca914d314 | [
"MIT"
] | 9 | 2016-11-17T18:46:30.000Z | 2017-05-13T20:16:50.000Z | src/device/controllerNvidia.cpp | ISilence/delirium_cl | d54499af2556511eb47ae90b2420788ca914d314 | [
"MIT"
] | null | null | null | #if !defined(DLM_CL_SKIP_VENDOR_NVIDIA)
#include "dlm/env/macro.h"
DLM_CMODULE_START
#include "cl/cl_ext_nvidia.h"
DLM_CMODULE_END
#include "dlm/cl/device.hpp"
#include "dlm/cl/controllers.hpp"
using namespace dlmcl;
static void getPCITopology(DeviceInfo &info, cl_device_id device) noexcept
{
// undocumented Nvid... | 28.984848 | 112 | 0.721903 | ISilence |
172b56c34f9c16feadc8d7e7a2301c7e8af139fa | 2,051 | cpp | C++ | Development/nmos/node_resource.cpp | EwoutH/nmos-cpp | e8cf0e2322bb4ae343f10638abf6035206620fe6 | [
"Apache-2.0"
] | null | null | null | Development/nmos/node_resource.cpp | EwoutH/nmos-cpp | e8cf0e2322bb4ae343f10638abf6035206620fe6 | [
"Apache-2.0"
] | null | null | null | Development/nmos/node_resource.cpp | EwoutH/nmos-cpp | e8cf0e2322bb4ae343f10638abf6035206620fe6 | [
"Apache-2.0"
] | null | null | null | #include "nmos/node_resource.h"
#include "cpprest/host_utils.h"
#include "cpprest/uri_builder.h"
#include "nmos/is04_versions.h"
#include "nmos/resource.h"
namespace nmos
{
// See https://github.com/AMWA-TV/nmos-discovery-registration/blob/v1.2/schemas/node.json
nmos::resource make_node(const nmos::id& id, c... | 37.981481 | 166 | 0.627986 | EwoutH |
172db5a9f7c0bc205531e64a301ba183d7857f33 | 1,187 | cpp | C++ | cpp/leetcode/FindCommonCharacters.cpp | danyfang/SourceCode | 8168f6058648f2a330a7354daf3a73a4d8a4e730 | [
"MIT"
] | null | null | null | cpp/leetcode/FindCommonCharacters.cpp | danyfang/SourceCode | 8168f6058648f2a330a7354daf3a73a4d8a4e730 | [
"MIT"
] | null | null | null | cpp/leetcode/FindCommonCharacters.cpp | danyfang/SourceCode | 8168f6058648f2a330a7354daf3a73a4d8a4e730 | [
"MIT"
] | null | null | null | //Leetcode Problem No 1002 Find Common Characters
//Solution written by Xuqiang Fang on 5 Mar, 2019
#include <iostream>
#include <vector>
#include <string>
#include <algorithm>
#include <unordered_map>
#include <unordered_set>
#include <stack>
#include <queue>
using namespace std;
class Solution{
public:
vector<str... | 19.145161 | 49 | 0.557709 | danyfang |
172edd1de0d19cdafc6ec5825400f61a8e4f2035 | 2,268 | cpp | C++ | MMVII/src/RamImages/cIm2d.cpp | dronemapper-io/micmac | d15d33de48a76575b6555399bc3bf9d89e31baa2 | [
"CECILL-B"
] | 8 | 2019-05-08T21:43:53.000Z | 2021-07-27T20:01:46.000Z | MMVII/src/RamImages/cIm2d.cpp | dronemapper-io/micmac | d15d33de48a76575b6555399bc3bf9d89e31baa2 | [
"CECILL-B"
] | 2 | 2019-05-24T17:11:33.000Z | 2019-06-30T17:55:28.000Z | MMVII/src/RamImages/cIm2d.cpp | dronemapper-io/micmac | d15d33de48a76575b6555399bc3bf9d89e31baa2 | [
"CECILL-B"
] | 2 | 2020-08-01T00:27:16.000Z | 2022-02-04T10:24:54.000Z | #include "include/MMVII_all.h"
namespace MMVII
{
/* ========================== */
/* cDataIm2D */
/* ========================== */
template <class Type> cDataIm2D<Type>::cDataIm2D(const cPt2di & aP0,const cPt2di & aP1,Type * aRawDataLin,eModeInitImage aModeInit) :
cDataTypedIm<Type,2> (aP0,a... | 23.381443 | 135 | 0.645944 | dronemapper-io |
173146c0cba0fa47527e4d530ca230027e9051f4 | 1,944 | cpp | C++ | source/directinput/CapabilitiesDI.cpp | HeavenWu/slimdx | e014bb34b89bbf694d01c8f6d6b6dfa3cba58aac | [
"MIT"
] | 85 | 2015-04-06T05:37:10.000Z | 2022-03-22T19:53:03.000Z | source/directinput/CapabilitiesDI.cpp | HeavenWu/slimdx | e014bb34b89bbf694d01c8f6d6b6dfa3cba58aac | [
"MIT"
] | 10 | 2016-03-17T11:18:24.000Z | 2021-05-11T09:21:43.000Z | source/directinput/CapabilitiesDI.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, ... | 35.345455 | 80 | 0.736626 | HeavenWu |
17330f1c438b9f64ae39ac15d8a76615d4e8c423 | 1,031 | cpp | C++ | tests/circuit_test/circuittest.cpp | Ignotus/circuitmod | 6e2b0c949df9c40e77d56f5fc0e890a54e1c7a17 | [
"BSD-2-Clause"
] | null | null | null | tests/circuit_test/circuittest.cpp | Ignotus/circuitmod | 6e2b0c949df9c40e77d56f5fc0e890a54e1c7a17 | [
"BSD-2-Clause"
] | null | null | null | tests/circuit_test/circuittest.cpp | Ignotus/circuitmod | 6e2b0c949df9c40e77d56f5fc0e890a54e1c7a17 | [
"BSD-2-Clause"
] | null | null | null | #include <QtTest>
#include <circuits/nand2.h>
#include <circuits/nor2.h>
#include <circuits/or2.h>
#include "circuittest.h"
#define TEST_ELEMENT(CLASS_NAME, FUNCTION) \
CLASS_NAME circuit;\
const bool i[] = {true, true, false, false};\
const bool j[] = {true, false, true, false};\
\
const QList<QSt... | 25.775 | 59 | 0.631426 | Ignotus |
173323212ed343e557833be6bf3d775b3bb0da62 | 4,503 | hpp | C++ | src/libraries/core/finiteVolume/fvc/fvcSmooth/smoothDataI.hpp | MrAwesomeRocks/caelus-cml | 55b6dc5ba47d0e95c07412d9446ac72ac11d7fd7 | [
"mpich2"
] | null | null | null | src/libraries/core/finiteVolume/fvc/fvcSmooth/smoothDataI.hpp | MrAwesomeRocks/caelus-cml | 55b6dc5ba47d0e95c07412d9446ac72ac11d7fd7 | [
"mpich2"
] | null | null | null | src/libraries/core/finiteVolume/fvc/fvcSmooth/smoothDataI.hpp | MrAwesomeRocks/caelus-cml | 55b6dc5ba47d0e95c07412d9446ac72ac11d7fd7 | [
"mpich2"
] | null | null | null | /*---------------------------------------------------------------------------*\
Copyright (C) 2011 OpenFOAM Foundation
-------------------------------------------------------------------------------
License
This file is part of CAELUS.
CAELUS is free software: you can redistribute it and/or modify it
under... | 20.751152 | 80 | 0.585165 | MrAwesomeRocks |
1734742849aac8e69573038dbb7818081164c22c | 816 | cc | C++ | adlik_serving/framework/manager/boarding_loop.cc | zhaohainan666/Adlik | 51e8c798720d1b9139fc9660a4fa40aa644ac451 | [
"Apache-2.0"
] | 1 | 2019-09-27T00:49:30.000Z | 2019-09-27T00:49:30.000Z | adlik_serving/framework/manager/boarding_loop.cc | zhaohainan666/Adlik | 51e8c798720d1b9139fc9660a4fa40aa644ac451 | [
"Apache-2.0"
] | null | null | null | adlik_serving/framework/manager/boarding_loop.cc | zhaohainan666/Adlik | 51e8c798720d1b9139fc9660a4fa40aa644ac451 | [
"Apache-2.0"
] | null | null | null | #include "adlik_serving/framework/manager/boarding_loop.h"
#include "adlik_serving/framework/manager/boarding_functor.h"
#include "cub/env/concurrent/auto_lock.h"
namespace adlik {
namespace serving {
BoardingLoop::BoardingLoop() {
// auto action = [this] { this->poll(); };
// loop.reset(new cub::LoopThread(acti... | 24 | 65 | 0.678922 | zhaohainan666 |
1734cd367bde7adaa4ca92a36bd65474366fffd3 | 3,564 | cpp | C++ | src/hdk/ui/hdCheckbox.cpp | cdave1/hdk | 7c00dcbb255a48ab4a77d808cda0096c7e0a0fa6 | [
"Zlib"
] | 2 | 2016-06-15T17:47:50.000Z | 2019-07-29T10:33:05.000Z | src/hdk/ui/hdCheckbox.cpp | cdave1/hdk | 7c00dcbb255a48ab4a77d808cda0096c7e0a0fa6 | [
"Zlib"
] | null | null | null | src/hdk/ui/hdCheckbox.cpp | cdave1/hdk | 7c00dcbb255a48ab4a77d808cda0096c7e0a0fa6 | [
"Zlib"
] | null | null | null | /*
* Copyright (c) 2014 Hackdirt Ltd.
* Author: David Petrie (david@davidpetrie.com)
*
* This software is provided 'as-is', without any express or implied warranty.
* In no event will the authors be held liable for any damages arising from the
* use of this software. Permission is granted to anyone to use this so... | 24.081081 | 91 | 0.650954 | cdave1 |
17355ed0de9e9dcea7114cf843555260fdaff62f | 1,005 | cpp | C++ | XiaomiOJ/013.cpp | windcry1/My-ACM-ICPC | b85b1c83b72c6b51731dae946a0df57c31d3e7a1 | [
"MIT"
] | null | null | null | XiaomiOJ/013.cpp | windcry1/My-ACM-ICPC | b85b1c83b72c6b51731dae946a0df57c31d3e7a1 | [
"MIT"
] | null | null | null | XiaomiOJ/013.cpp | windcry1/My-ACM-ICPC | b85b1c83b72c6b51731dae946a0df57c31d3e7a1 | [
"MIT"
] | null | null | null | //Author:LanceYu
#include<cstring>
#include<cmath>
#include<cstdio>
#include<cctype>
#include<cstdlib>
#include<ctime>
#include<vector>
#include<iostream>
#include<string>
#include<queue>
#include<set>
#include<algorithm>
#include<complex>
#include<stack>
#include<bitset>
#include<iomanip>
#define ll long long
using na... | 17.631579 | 61 | 0.648756 | windcry1 |
173b921fda55206dbe026d881b58c7644dc57173 | 3,519 | cc | C++ | src/uDepot/rwlock-pagefault-trt.cc | nik-io/uDepot | 06b94b7f2438b38b46572ede28072e24997e40c6 | [
"BSD-3-Clause"
] | null | null | null | src/uDepot/rwlock-pagefault-trt.cc | nik-io/uDepot | 06b94b7f2438b38b46572ede28072e24997e40c6 | [
"BSD-3-Clause"
] | null | null | null | src/uDepot/rwlock-pagefault-trt.cc | nik-io/uDepot | 06b94b7f2438b38b46572ede28072e24997e40c6 | [
"BSD-3-Clause"
] | null | null | null | /*
* Copyright (c) 2020 International Business Machines
* All rights reserved.
*
* SPDX-License-Identifier: BSD-3-Clause
*
* Authors: Nikolas Ioannou (nio@zurich.ibm.com),
* Kornilios Kourtis (kou@zurich.ibm.com, kornilios@gmail.com)
*
*/
#include <stdio.h>
#include <signal.h>
#include "util/de... | 23.46 | 74 | 0.709577 | nik-io |
173c520dcab7811eaf918e0861331b720bcedaa9 | 517 | hpp | C++ | src/include/vuh/core/core.hpp | wangqiang1588/vuh | 20450436022b5386a0da3a82062bd49813993180 | [
"MIT"
] | null | null | null | src/include/vuh/core/core.hpp | wangqiang1588/vuh | 20450436022b5386a0da3a82062bd49813993180 | [
"MIT"
] | null | null | null | src/include/vuh/core/core.hpp | wangqiang1588/vuh | 20450436022b5386a0da3a82062bd49813993180 | [
"MIT"
] | null | null | null | #pragma once
#include "vnh.hpp"
namespace vuh {
class core {
public:
core() : _res(vhn::Result::eSuccess) { }
explicit core(vhn::Result res) : _res(res) { }
public:
virtual vhn::Result error() const { return _res; };
virtual bool success() const { return vhn::Result::eSuc... | 23.5 | 85 | 0.572534 | wangqiang1588 |
173f67545228c863bfb4dfd4f32544c6a47b7beb | 848 | cpp | C++ | world/source/Currency.cpp | sidav/shadow-of-the-wyrm | 747afdeebed885b1a4f7ab42f04f9f756afd3e52 | [
"MIT"
] | null | null | null | world/source/Currency.cpp | sidav/shadow-of-the-wyrm | 747afdeebed885b1a4f7ab42f04f9f756afd3e52 | [
"MIT"
] | null | null | null | world/source/Currency.cpp | sidav/shadow-of-the-wyrm | 747afdeebed885b1a4f7ab42f04f9f756afd3e52 | [
"MIT"
] | null | null | null | #include "Currency.hpp"
using namespace std;
Currency::Currency()
{
type = ItemType::ITEM_TYPE_CURRENCY;
symbol = '$';
status = ItemStatus::ITEM_STATUS_UNCURSED;
status_identified = true;
}
Currency::~Currency()
{
}
// Currency is always generated uncursed and shouldn't ever be set to another
// status.
voi... | 16.627451 | 77 | 0.760613 | sidav |
174181d9ea03e20a47edfd7776d7362926c81837 | 6,617 | cpp | C++ | SdkCore/SdkCore/Environment/EnvironmentWindowsMsvc/Implementation/Atom.cpp | DexterDreeeam/DxtSdk2021 | 2dd8807b4ebe1d65221095191eaa7938bc5e9e78 | [
"MIT"
] | 1 | 2021-11-18T03:57:54.000Z | 2021-11-18T03:57:54.000Z | SdkCore/SdkCore/Environment/EnvironmentWindowsMsvc/Implementation/Atom.cpp | DexterDreeeam/P9 | 2dd8807b4ebe1d65221095191eaa7938bc5e9e78 | [
"MIT"
] | null | null | null | SdkCore/SdkCore/Environment/EnvironmentWindowsMsvc/Implementation/Atom.cpp | DexterDreeeam/P9 | 2dd8807b4ebe1d65221095191eaa7938bc5e9e78 | [
"MIT"
] | null | null | null |
#include "../../_Interface.hpp"
#include "../EnvironmentHeader.hpp"
template<typename Ty>
class shadow_class
{
public:
using DataType = volatile Ty;
DataType _data;
};
atom<s64>::atom()
{
assert(_mem_sz >= sizeof(shadow_class<s64>));
new (_mem) volatile s64(0);
}
atom<s64>::atom(const atom<s64>& rh... | 22.130435 | 123 | 0.664652 | DexterDreeeam |
1743046c5a4b7ffe2ae6dac0b5741976c495f261 | 4,200 | cpp | C++ | proxygen/lib/http/codec/compress/HPACKDecodeBuffer.cpp | autoantwort/proxygen | 1cedfc101966163f647241b8c2564d55e4f31454 | [
"BSD-3-Clause"
] | 5,852 | 2015-01-01T06:12:49.000Z | 2022-03-31T07:28:30.000Z | proxygen/lib/http/codec/compress/HPACKDecodeBuffer.cpp | autoantwort/proxygen | 1cedfc101966163f647241b8c2564d55e4f31454 | [
"BSD-3-Clause"
] | 345 | 2015-01-02T22:15:43.000Z | 2022-03-28T23:33:28.000Z | proxygen/lib/http/codec/compress/HPACKDecodeBuffer.cpp | autoantwort/proxygen | 1cedfc101966163f647241b8c2564d55e4f31454 | [
"BSD-3-Clause"
] | 1,485 | 2015-01-04T14:39:26.000Z | 2022-03-22T02:32:08.000Z | /*
* Copyright (c) Facebook, Inc. and its affiliates.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree.
*/
#include <proxygen/lib/http/codec/compress/HPACKDecodeBuffer.h>
#include <limits>
#include <memory>
... | 27.45098 | 79 | 0.65619 | autoantwort |
1743bd2d1a4b7ffc0f888302fc11f462591f5f0d | 3,489 | cc | C++ | 3rdparty/pytorch/caffe2/operators/experimental/c10/cpu/concat_cpu.cc | WoodoLee/TorchCraft | 999f68aab9e7d50ed3ae138297226dc95fefc458 | [
"MIT"
] | null | null | null | 3rdparty/pytorch/caffe2/operators/experimental/c10/cpu/concat_cpu.cc | WoodoLee/TorchCraft | 999f68aab9e7d50ed3ae138297226dc95fefc458 | [
"MIT"
] | null | null | null | 3rdparty/pytorch/caffe2/operators/experimental/c10/cpu/concat_cpu.cc | WoodoLee/TorchCraft | 999f68aab9e7d50ed3ae138297226dc95fefc458 | [
"MIT"
] | null | null | null | #include <c10/core/dispatch/KernelRegistration.h>
#include "caffe2/operators/experimental/c10/schemas/concat.h"
#include "caffe2/utils/math.h"
#include "caffe2/core/tensor.h"
using caffe2::BaseContext;
using caffe2::CPUContext;
using caffe2::Tensor;
using caffe2::TensorCPU;
using std::vector;
namespace caffe2 {
names... | 30.605263 | 80 | 0.602752 | WoodoLee |
174900a72e262fd0c8609f175b386fa1246d7392 | 5,335 | cpp | C++ | CxxProfiler/SyntaxHighlighter.cpp | mmozeiko/CxxProfiler | 5836f2a948cf97ad87bef0e357fd39c95d07189f | [
"Unlicense"
] | 110 | 2016-05-06T09:17:55.000Z | 2022-03-30T02:34:41.000Z | CxxProfiler/SyntaxHighlighter.cpp | mmozeiko/CxxProfiler | 5836f2a948cf97ad87bef0e357fd39c95d07189f | [
"Unlicense"
] | null | null | null | CxxProfiler/SyntaxHighlighter.cpp | mmozeiko/CxxProfiler | 5836f2a948cf97ad87bef0e357fd39c95d07189f | [
"Unlicense"
] | 5 | 2017-10-27T10:59:53.000Z | 2022-01-10T02:24:41.000Z | #include "SyntaxHighlighter.h"
// TODO http://www.kate-editor.org/syntax/3.9/isocpp.xml
SyntaxHighlighter::SyntaxHighlighter(QTextDocument* parent)
: QSyntaxHighlighter(parent)
{
HighlightingRule rule;
{
QTextCharFormat quotationFormat;
quotationFormat.setForeground(Qt::darkRed);
... | 34.869281 | 80 | 0.582193 | mmozeiko |
174b7f091a9b143d165e798c5b75ccf3a04ed8ec | 3,908 | cpp | C++ | PyQt6-6.0.0/qpy/QtCore/qpycore_init.cpp | sonerkcardak/python-detailed-assistant | 161b82289c5ae7149fe638ba6a5192b6aa6833d8 | [
"Apache-2.0"
] | null | null | null | PyQt6-6.0.0/qpy/QtCore/qpycore_init.cpp | sonerkcardak/python-detailed-assistant | 161b82289c5ae7149fe638ba6a5192b6aa6833d8 | [
"Apache-2.0"
] | null | null | null | PyQt6-6.0.0/qpy/QtCore/qpycore_init.cpp | sonerkcardak/python-detailed-assistant | 161b82289c5ae7149fe638ba6a5192b6aa6833d8 | [
"Apache-2.0"
] | null | null | null | // This is the initialisation support code for the QtCore module.
//
// Copyright (c) 2021 Riverbank Computing Limited <info@riverbankcomputing.com>
//
// This file is part of PyQt6.
//
// This file may be used under the terms of the GNU General Public License
// version 3.0 as published by the Free Software Foundati... | 36.523364 | 79 | 0.730297 | sonerkcardak |
174c9629aab8e0ea818e6c47f1e9614bb651452a | 3,457 | hpp | C++ | src/contrib/mlir/runtime/cpu/cpu_runtime.hpp | pqLee/ngraph | ddfa95b26a052215baf9bf5aa1ca5d1f92aa00f7 | [
"Apache-2.0"
] | null | null | null | src/contrib/mlir/runtime/cpu/cpu_runtime.hpp | pqLee/ngraph | ddfa95b26a052215baf9bf5aa1ca5d1f92aa00f7 | [
"Apache-2.0"
] | null | null | null | src/contrib/mlir/runtime/cpu/cpu_runtime.hpp | pqLee/ngraph | ddfa95b26a052215baf9bf5aa1ca5d1f92aa00f7 | [
"Apache-2.0"
] | null | null | null | //*****************************************************************************
// Copyright 2017-2020 Intel Corporation
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://w... | 38.411111 | 91 | 0.581429 | pqLee |
174dd2d6948632aafc858872c8c037ac8ba992be | 10,164 | cpp | C++ | spindash/spindash.cpp | Kazade/Spindash | 45ccbafe1941d65823a67880270c165d3888de21 | [
"BSD-2-Clause-FreeBSD"
] | 3 | 2015-12-20T20:59:29.000Z | 2019-02-24T00:54:28.000Z | spindash/spindash.cpp | Kazade/Spindash | 45ccbafe1941d65823a67880270c165d3888de21 | [
"BSD-2-Clause-FreeBSD"
] | null | null | null | spindash/spindash.cpp | Kazade/Spindash | 45ccbafe1941d65823a67880270c165d3888de21 | [
"BSD-2-Clause-FreeBSD"
] | null | null | null | #include "kazbase/logging.h"
#include "spindash.h"
#include "character.h"
#include "world.h"
void sdCharacterLeftPressed(SDuint character) {
Character* c = Character::get(character);
c->move_left();
}
void sdCharacterRightPressed(SDuint character) {
Character* c = Character::get(character);
c->move_ri... | 27.923077 | 108 | 0.66647 | Kazade |
174e28567b7f8f09e81209419631ecd072a5b649 | 1,523 | cpp | C++ | src/TaskManager/src/system2.cpp | RemiMattheyDoret/TaskManager | bea51ba9fcdf7390b57148bfa8adba75f25dddaa | [
"MIT"
] | null | null | null | src/TaskManager/src/system2.cpp | RemiMattheyDoret/TaskManager | bea51ba9fcdf7390b57148bfa8adba75f25dddaa | [
"MIT"
] | null | null | null | src/TaskManager/src/system2.cpp | RemiMattheyDoret/TaskManager | bea51ba9fcdf7390b57148bfa8adba75f25dddaa | [
"MIT"
] | null | null | null |
/*
system2 runs a shell command in the background and return the PID.
I stole this piece of code from https://stackoverflow.com/questions/22802902/how-to-get-pid-of-process-executed-with-system-command-in-c and modified it a little bit to fit my needs
system2() does not pauses like system(). It is theref... | 22.397059 | 185 | 0.560079 | RemiMattheyDoret |
17562622d3119f56a683652e446b6d9e8af2cb2f | 13,271 | cpp | C++ | src/3ds/Graphics.cpp | mysterypaint/Hmm2 | 61e7b6566c1bf3590dde055a7107d486db03b077 | [
"MIT"
] | null | null | null | src/3ds/Graphics.cpp | mysterypaint/Hmm2 | 61e7b6566c1bf3590dde055a7107d486db03b077 | [
"MIT"
] | null | null | null | src/3ds/Graphics.cpp | mysterypaint/Hmm2 | 61e7b6566c1bf3590dde055a7107d486db03b077 | [
"MIT"
] | null | null | null | #include "Graphics.hpp"
#include "../PHL.hpp"
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "../Resources.hpp"
PHL_Surface db = {0};
PHL_Surface backBuffer = {0};
PHL_Surface dbAlt = {0};
PHL_Surface backBufferAlt = {0};
const int cWidth = 320;
const int cHeight = 240;
Screen scrnTop = {
GF... | 28.057082 | 164 | 0.490619 | mysterypaint |
1757288b370f17004e7f385e0f07db58febb9e40 | 289 | cpp | C++ | Decorator/Decorator/Color.cpp | jayavardhanravi/DesignPatterns | aa6a37790f447c7caf69c6a1a9c6107074309a03 | [
"BSD-2-Clause"
] | 8 | 2020-01-23T23:20:40.000Z | 2022-01-08T13:04:08.000Z | Decorator/Decorator/Color.cpp | jayavardhanravi/DesignPatterns | aa6a37790f447c7caf69c6a1a9c6107074309a03 | [
"BSD-2-Clause"
] | null | null | null | Decorator/Decorator/Color.cpp | jayavardhanravi/DesignPatterns | aa6a37790f447c7caf69c6a1a9c6107074309a03 | [
"BSD-2-Clause"
] | 1 | 2020-01-28T14:27:54.000Z | 2020-01-28T14:27:54.000Z | #include "Color.h"
Color::Color(Mesh *mesh): MeshDecorator(mesh)
{
}
Color::~Color()
{
}
void Color::AddMeshProperties()
{
MeshDecorator::AddMeshProperties();
ColorFeatures();
}
void Color::ColorFeatures()
{
std::cout << "Added the Color Features" << std::endl;
} | 14.45 | 55 | 0.636678 | jayavardhanravi |
175c2174517af83e300abaeefe37cb2a15311bbe | 1,988 | cpp | C++ | BeakJoon/c++/solved/1000/1260.cpp | heeboy007/PS-MyAnswers | e5e02972ab64279d96eb43e85941a46b82315fbd | [
"MIT"
] | null | null | null | BeakJoon/c++/solved/1000/1260.cpp | heeboy007/PS-MyAnswers | e5e02972ab64279d96eb43e85941a46b82315fbd | [
"MIT"
] | null | null | null | BeakJoon/c++/solved/1000/1260.cpp | heeboy007/PS-MyAnswers | e5e02972ab64279d96eb43e85941a46b82315fbd | [
"MIT"
] | null | null | null | #include<iostream>
#include<vector>
#include<algorithm>
#include<queue>
#include<cstring>
using namespace std;
int dots, cons, start;
bool is_visited[1001];
int matrix[1001][1001];
/*
const int MAX = 1000 + 1;
int N, M, V;
int adjacent[MAX][MAX];
bool visited[MAX];
queue<int> q;
void DFS(int idx)
{
cout << ... | 18.579439 | 65 | 0.41499 | heeboy007 |
1760a377c4ee0615e42f6597479223048a9c81cd | 26,783 | cpp | C++ | code/steps/source/model/wtg_models/wt_turbine_model/wt_turbine_model_test.cpp | changgang/steps | 9b8ea474581885129d1c1a1c3ad40bc8058a7e0a | [
"MIT"
] | 29 | 2019-10-30T07:04:10.000Z | 2022-02-22T06:34:32.000Z | code/steps/source/model/wtg_models/wt_turbine_model/wt_turbine_model_test.cpp | cuihantao/steps | 60327bf42299cb7117ed5907a931583d7cdf590d | [
"MIT"
] | 1 | 2021-09-25T15:29:59.000Z | 2022-01-05T14:04:18.000Z | code/steps/source/model/wtg_models/wt_turbine_model/wt_turbine_model_test.cpp | changgang/steps | 9b8ea474581885129d1c1a1c3ad40bc8058a7e0a | [
"MIT"
] | 8 | 2019-12-20T16:13:46.000Z | 2022-03-20T14:58:23.000Z | #include "header/basic/test_macro.h"
#include "header/model/wtg_models/wt_turbine_model/wt_turbine_model_test.h"
#include "header/basic/utility.h"
#include "header/steps_namespace.h"
#include "header/model/wtg_models/wt_generator_model/wt3g0.h"
#include "header/model/wtg_models/wt_aerodynamic_model/aerd0.h"
#include <c... | 35.28722 | 140 | 0.720569 | changgang |
1760bcc6a7f257e9b16278992d6d2f2c8143bad0 | 56 | hpp | C++ | src/boost_spirit_home_qi_auxiliary_attr_cast.hpp | miathedev/BoostForArduino | 919621dcd0c157094bed4df752b583ba6ea6409e | [
"BSL-1.0"
] | 10 | 2018-03-17T00:58:42.000Z | 2021-07-06T02:48:49.000Z | src/boost_spirit_home_qi_auxiliary_attr_cast.hpp | miathedev/BoostForArduino | 919621dcd0c157094bed4df752b583ba6ea6409e | [
"BSL-1.0"
] | 2 | 2021-03-26T15:17:35.000Z | 2021-05-20T23:55:08.000Z | src/boost_spirit_home_qi_auxiliary_attr_cast.hpp | miathedev/BoostForArduino | 919621dcd0c157094bed4df752b583ba6ea6409e | [
"BSL-1.0"
] | 4 | 2019-05-28T21:06:37.000Z | 2021-07-06T03:06:52.000Z | #include <boost/spirit/home/qi/auxiliary/attr_cast.hpp>
| 28 | 55 | 0.803571 | miathedev |
1764e3714e86b52ebefaf7fab17b045c75f3c7fe | 9,153 | cpp | C++ | src/services/http.cpp | devinsmith/tfstool | bccd7dc97a769a87fb576c1feae32290cf6bd8c3 | [
"MIT"
] | null | null | null | src/services/http.cpp | devinsmith/tfstool | bccd7dc97a769a87fb576c1feae32290cf6bd8c3 | [
"MIT"
] | null | null | null | src/services/http.cpp | devinsmith/tfstool | bccd7dc97a769a87fb576c1feae32290cf6bd8c3 | [
"MIT"
] | null | null | null | /*
* Copyright (c) 2012-2019 Devin Smith <devin@devinsmith.net>
*
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
*
* THE SOFTWARE IS PROVIDED "AS I... | 25.783099 | 154 | 0.694417 | devinsmith |
17671c04293be639f9cf311ef66f46b0a86d035b | 6,620 | cpp | C++ | engine/engine/core/math/tests/so3.cpp | ddr95070/RMIsaac | ee3918f685f0a88563248ddea11d089581077973 | [
"FSFAP"
] | null | null | null | engine/engine/core/math/tests/so3.cpp | ddr95070/RMIsaac | ee3918f685f0a88563248ddea11d089581077973 | [
"FSFAP"
] | null | null | null | engine/engine/core/math/tests/so3.cpp | ddr95070/RMIsaac | ee3918f685f0a88563248ddea11d089581077973 | [
"FSFAP"
] | 1 | 2022-01-28T16:37:51.000Z | 2022-01-28T16:37:51.000Z | /*
Copyright (c) 2018, NVIDIA CORPORATION. All rights reserved.
NVIDIA CORPORATION and its licensors retain all intellectual property
and proprietary rights in and to this software, related documentation
and any modifications thereto. Any use, reproduction, disclosure or
distribution of this software and related docum... | 38.045977 | 103 | 0.629154 | ddr95070 |
176af815ab84f5cfde7a5eaea80f8cccbfcb108d | 8,354 | cc | C++ | orb_slam3/Examples/ROS/ORB_SLAM3/src/mono_imu_tcw.cc | zhouyong1234/ORB-SLAM3 | 796fa6d8562c88355b78411f9f6915e287a14f5a | [
"Apache-2.0"
] | null | null | null | orb_slam3/Examples/ROS/ORB_SLAM3/src/mono_imu_tcw.cc | zhouyong1234/ORB-SLAM3 | 796fa6d8562c88355b78411f9f6915e287a14f5a | [
"Apache-2.0"
] | null | null | null | orb_slam3/Examples/ROS/ORB_SLAM3/src/mono_imu_tcw.cc | zhouyong1234/ORB-SLAM3 | 796fa6d8562c88355b78411f9f6915e287a14f5a | [
"Apache-2.0"
] | null | null | null | /**
* This file is part of ORB-SLAM3
*
* Copyright (C) 2017-2020 Carlos Campos, Richard Elvira, Juan J. Gómez Rodríguez, José M.M. Montiel and Juan D. Tardós, University of Zaragoza.
* Copyright (C) 2014-2016 Raúl Mur-Artal, José M.M. Montiel and Juan D. Tardós, University of Zaragoza.
*
* ORB-SLAM3 is free software: y... | 31.055762 | 180 | 0.625569 | zhouyong1234 |
176c14c56d38352d4afa91612a7dbf8873219b46 | 131 | cpp | C++ | src/core/DataStreamException.cpp | Neomer/binc | 3af615f36cb23f1cdc9319b7a6e15c6c342a53b9 | [
"Apache-2.0"
] | null | null | null | src/core/DataStreamException.cpp | Neomer/binc | 3af615f36cb23f1cdc9319b7a6e15c6c342a53b9 | [
"Apache-2.0"
] | 26 | 2017-12-13T12:45:32.000Z | 2018-02-06T11:08:04.000Z | src/core/DataStreamException.cpp | Neomer/binc | 3af615f36cb23f1cdc9319b7a6e15c6c342a53b9 | [
"Apache-2.0"
] | null | null | null | #include "DataStreamException.h"
DataStreamException::DataStreamException(const char * message) :
BaseException(message)
{
}
| 16.375 | 64 | 0.770992 | Neomer |
176c3bf77b5fc36853944665f09088ba141836ad | 2,346 | hpp | C++ | static_control_flow/code/impl/static_for_state.hpp | SuperV1234/cppnow2016 | a4f6bd093378d88930d2564b84d8fdd14236a736 | [
"AFL-3.0"
] | 49 | 2016-05-10T20:25:27.000Z | 2021-08-18T23:46:43.000Z | static_control_flow/code/impl/static_for_state.hpp | SuperV1234/cppnow2016 | a4f6bd093378d88930d2564b84d8fdd14236a736 | [
"AFL-3.0"
] | null | null | null | static_control_flow/code/impl/static_for_state.hpp | SuperV1234/cppnow2016 | a4f6bd093378d88930d2564b84d8fdd14236a736 | [
"AFL-3.0"
] | 2 | 2016-05-23T15:14:38.000Z | 2016-09-01T19:38:52.000Z | // Copyright (c) 2016 Vittorio Romeo
// License: AFL 3.0 | https://opensource.org/licenses/AFL-3.0
// http://vittorioromeo.info | vittorio.romeo@outlook.com
#pragma once
#include "./static_if.hpp"
namespace impl
{
namespace action
{
struct a_continue
{
};
struct a_break
... | 25.5 | 67 | 0.617647 | SuperV1234 |
176d4e9093f4dd271a1818cb111d883b50d8c17c | 2,924 | cpp | C++ | manager.cpp | kwarehit/runtestcases | fe7b68a90b7d5051277e383c50a1e90fbeab8c73 | [
"BSL-1.0"
] | null | null | null | manager.cpp | kwarehit/runtestcases | fe7b68a90b7d5051277e383c50a1e90fbeab8c73 | [
"BSL-1.0"
] | null | null | null | manager.cpp | kwarehit/runtestcases | fe7b68a90b7d5051277e383c50a1e90fbeab8c73 | [
"BSL-1.0"
] | null | null | null | #include "manager.h"
#include "commonhdr.h"
#include "log.h"
#include "caseinfomodel.h"
#include "monitor.h"
#include "iocontextwrapper.h"
#include "datamanager.h"
#include "logtext.h"
#include "caseinfomodel.h"
Manager::Manager(QObject *parent)
: QObject(parent)
{
dataMgr_ = std::make_shared<DataManager>();... | 20.305556 | 98 | 0.626197 | kwarehit |
176daafdf6db7ff44f02abd6569e391438281f3a | 2,211 | cc | C++ | Diagnostic/mdsd/mdsd/Constants.cc | shridpant/azure-linux-extensions | 4b5e66f33d5b93b15b427a9438931f0414f12a6e | [
"Apache-2.0"
] | 266 | 2015-01-05T04:13:15.000Z | 2022-03-24T17:52:51.000Z | Diagnostic/mdsd/mdsd/Constants.cc | shridpant/azure-linux-extensions | 4b5e66f33d5b93b15b427a9438931f0414f12a6e | [
"Apache-2.0"
] | 703 | 2015-01-27T07:16:57.000Z | 2022-03-29T09:01:23.000Z | Diagnostic/mdsd/mdsd/Constants.cc | shridpant/azure-linux-extensions | 4b5e66f33d5b93b15b427a9438931f0414f12a6e | [
"Apache-2.0"
] | 276 | 2015-01-20T11:11:15.000Z | 2022-03-24T12:40:49.000Z | // Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT license.
#include "Constants.hh"
#include <fstream>
#include <string>
#define DEFINE_STRING(name, value) const std::string name { value }; const std::wstring name ## W { L ## value };
uint64_t Constants::_UniqueId { 0 };
namespac... | 26.638554 | 113 | 0.703302 | shridpant |
176e929ba649f73a9bb54d48b92cfc75971ffce0 | 967 | cpp | C++ | BookSamples/Capitolo7/Ritardo_BufferLineare/Ritardo_BufferLineare/main.cpp | mscarpiniti/ArtBook | ca74c773c7312d22329cc453f4a5a799fe2dd587 | [
"MIT"
] | null | null | null | BookSamples/Capitolo7/Ritardo_BufferLineare/Ritardo_BufferLineare/main.cpp | mscarpiniti/ArtBook | ca74c773c7312d22329cc453f4a5a799fe2dd587 | [
"MIT"
] | null | null | null | BookSamples/Capitolo7/Ritardo_BufferLineare/Ritardo_BufferLineare/main.cpp | mscarpiniti/ArtBook | ca74c773c7312d22329cc453f4a5a799fe2dd587 | [
"MIT"
] | null | null | null | #include <iostream>
#define SAMPLE_RATE 44100
using namespace std;
/* Buffer Lineare ---------------------------------------------------------- */
float D_LinBuffer(float *buffer, int D, float x)
{
int i;
for(i = D-1; i >= 1; i--)
buffer[i] = buffer[i-1];
buffer[0] = x;
return b... | 21.021739 | 80 | 0.416753 | mscarpiniti |
176f15fa2f0fe766ba00bdeec96e1621b8ce07d3 | 2,910 | ipp | C++ | boost/test/utils/runtime/cla/dual_name_parameter.ipp | UnPourTous/boost-159-for-rn | 47e2c37fcbd5e1b25561e5a4fc81bc4f31d2cbf4 | [
"BSL-1.0"
] | 2 | 2021-08-08T02:06:56.000Z | 2021-12-20T02:16:44.000Z | include/boost/test/utils/runtime/cla/dual_name_parameter.ipp | Acidburn0zzz/PopcornTorrent-1 | c12a30ef9e971059dae5f7ce24a8c37fef83c0c4 | [
"MIT"
] | null | null | null | include/boost/test/utils/runtime/cla/dual_name_parameter.ipp | Acidburn0zzz/PopcornTorrent-1 | c12a30ef9e971059dae5f7ce24a8c37fef83c0c4 | [
"MIT"
] | 1 | 2017-04-09T17:04:14.000Z | 2017-04-09T17:04:14.000Z | // (C) Copyright Gennadiy Rozental 2005-2014.
// Use, modification, and distribution are subject to 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)
// See http://www.boost.org/libs/test for the library home page.
//
// ... | 31.978022 | 112 | 0.669416 | UnPourTous |
1771c5a32dfefdf6a35b913d0f935a71a823278f | 3,236 | cpp | C++ | src/MeteringSDK/MCORE/MSynchronizer.cpp | beroset/C12Adapter | 593b201db169481245b0673813e19d174560a41e | [
"MIT"
] | 9 | 2016-09-02T17:24:58.000Z | 2021-12-14T19:43:48.000Z | src/MeteringSDK/MCORE/MSynchronizer.cpp | beroset/C12Adapter | 593b201db169481245b0673813e19d174560a41e | [
"MIT"
] | 1 | 2018-09-06T21:48:42.000Z | 2018-09-06T21:48:42.000Z | src/MeteringSDK/MCORE/MSynchronizer.cpp | beroset/C12Adapter | 593b201db169481245b0673813e19d174560a41e | [
"MIT"
] | 4 | 2016-09-06T16:54:36.000Z | 2021-12-16T16:15:24.000Z | // File MCORE/MSynchronizer.cpp
#include "MCOREExtern.h"
#include "MSynchronizer.h"
#include "MException.h"
#if !M_NO_MULTITHREADING
MSynchronizer::Locker::Locker(const MSynchronizer& s)
:
m_synchronizer(const_cast<MSynchronizer&>(s)),
m_locked(false)
{
m_synchronizer.Lock();
m_locked = true;
}
MSynchr... | 26.308943 | 162 | 0.554079 | beroset |
1775c6d75e541e4eece58a3bba86b1f417a43a94 | 13,250 | cpp | C++ | src/dawn/tests/unittests/ResultTests.cpp | Antidote/dawn-cmake | b8c6d669fa3c0087aa86653a4078386ffb42f199 | [
"BSD-3-Clause"
] | 1 | 2021-12-06T14:21:54.000Z | 2021-12-06T14:21:54.000Z | src/dawn/tests/unittests/ResultTests.cpp | AartOdding/dawn | f2556ab35c0eecdfd93c02f7c226a5c94316d143 | [
"BSD-3-Clause"
] | null | null | null | src/dawn/tests/unittests/ResultTests.cpp | AartOdding/dawn | f2556ab35c0eecdfd93c02f7c226a5c94316d143 | [
"BSD-3-Clause"
] | null | null | null | // Copyright 2018 The Dawn Authors
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed t... | 34.326425 | 96 | 0.631245 | Antidote |
1776a2192a86edd7a26a00d7695fe7c2cbca732a | 88 | cpp | C++ | meditation_app/model/statsmodel.cpp | mikkac/meditation_app | 26c592e0c91fd2661ab91c2f7ce020293962aa99 | [
"MIT"
] | null | null | null | meditation_app/model/statsmodel.cpp | mikkac/meditation_app | 26c592e0c91fd2661ab91c2f7ce020293962aa99 | [
"MIT"
] | null | null | null | meditation_app/model/statsmodel.cpp | mikkac/meditation_app | 26c592e0c91fd2661ab91c2f7ce020293962aa99 | [
"MIT"
] | null | null | null | #include "statsmodel.h"
StatsModel::StatsModel(QObject *parent) : QObject(parent)
{
}
| 12.571429 | 57 | 0.727273 | mikkac |
1777a8696a8ad310a7a1be3f061812d49034972b | 14,880 | cpp | C++ | examples/tsne/responsive_tsne/responsive_tsne.cpp | e-/ANN | dd485320d1eb55e821027ad09013eb10ae07db93 | [
"BSD-2-Clause"
] | 19 | 2017-08-01T05:19:55.000Z | 2022-02-02T15:13:41.000Z | examples/tsne/responsive_tsne/responsive_tsne.cpp | e-/ANN | dd485320d1eb55e821027ad09013eb10ae07db93 | [
"BSD-2-Clause"
] | 4 | 2021-06-02T00:52:37.000Z | 2022-03-12T00:15:07.000Z | examples/tsne/responsive_tsne/responsive_tsne.cpp | e-/ANN | dd485320d1eb55e821027ad09013eb10ae07db93 | [
"BSD-2-Clause"
] | 5 | 2018-09-24T17:21:05.000Z | 2021-03-02T09:59:35.000Z | #include <cfloat>
#include <cmath>
#include <cstdlib>
#include <cstdio>
#include <cstring>
#include <ctime>
#include <map>
#include <algorithm>
#include <random>
#include <chrono>
#if defined _MSC_VER
#include <direct.h>
#elif defined __GNUC__
#include <sys/types.h>
#include <sys/stat.h>
#endif
#include "../lib/confi... | 31.194969 | 279 | 0.533199 | e- |
1777f8f85eabfe60aa7c8b3c5359577484e4340b | 3,239 | cpp | C++ | lib/Backends/CPU/CPUFunction.cpp | dendisuhubdy/glow | 14da7854a0b4de11776ba1aa6da4de8c43f67f19 | [
"Apache-2.0"
] | null | null | null | lib/Backends/CPU/CPUFunction.cpp | dendisuhubdy/glow | 14da7854a0b4de11776ba1aa6da4de8c43f67f19 | [
"Apache-2.0"
] | null | null | null | lib/Backends/CPU/CPUFunction.cpp | dendisuhubdy/glow | 14da7854a0b4de11776ba1aa6da4de8c43f67f19 | [
"Apache-2.0"
] | null | null | null | /**
* Copyright (c) 2017-present, Facebook, 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/LICENSE-2.0
*
* Unless required by applicable ... | 34.827957 | 77 | 0.719975 | dendisuhubdy |
17799c7bc5a2165217b53d8904404910a77fff2a | 10,622 | cpp | C++ | libs/spirit/example/x3/calc6.cpp | Abce/boost | 2d7491a27211aa5defab113f8e2d657c3d85ca93 | [
"BSL-1.0"
] | 85 | 2015-02-08T20:36:17.000Z | 2021-11-14T20:38:31.000Z | libs/boost/libs/spirit/example/x3/calc6.cpp | flingone/frameworks_base_cmds_remoted | 4509d9f0468137ed7fd8d100179160d167e7d943 | [
"Apache-2.0"
] | 9 | 2015-01-28T16:33:19.000Z | 2020-04-12T23:03:28.000Z | libs/boost/libs/spirit/example/x3/calc6.cpp | flingone/frameworks_base_cmds_remoted | 4509d9f0468137ed7fd8d100179160d167e7d943 | [
"Apache-2.0"
] | 27 | 2015-01-28T16:33:30.000Z | 2021-08-12T05:04:39.000Z | /*=============================================================================
Copyright (c) 2001-2014 Joel de Guzman
Distributed under the Boost Software License, Version 1.0. (See accompanying
file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
====================================... | 30.522989 | 98 | 0.419036 | Abce |
177c1a8537d1eaa642928e64cf949a250d44e614 | 10,313 | cpp | C++ | cpp/src/grammar.cpp | sapphire-lang/emerald | 5cb7209f918e8ebdb36bb0455f58d3e941fc6e52 | [
"MIT"
] | null | null | null | cpp/src/grammar.cpp | sapphire-lang/emerald | 5cb7209f918e8ebdb36bb0455f58d3e941fc6e52 | [
"MIT"
] | null | null | null | cpp/src/grammar.cpp | sapphire-lang/emerald | 5cb7209f918e8ebdb36bb0455f58d3e941fc6e52 | [
"MIT"
] | null | null | null | #include <string>
#include <regex>
#include <iostream>
#include "grammar.hpp"
// [START] Include nodes
#include "nodes/node.hpp"
#include "nodes/node_list.hpp"
#include "nodes/boolean.hpp"
#include "nodes/scope_fn.hpp"
#include "nodes/scope.hpp"
#include "nodes/line.hpp"
#include "nodes/value_list.hpp"
#include "node... | 30.332353 | 115 | 0.641617 | sapphire-lang |
177d8fec35d876499f29631cb9b8e062cd919d16 | 1,400 | cpp | C++ | src/exr.cpp | Fadis/hermit | 1b378fb94165e0348d11d8065d3259d14c49977b | [
"BSD-2-Clause"
] | 1 | 2015-03-09T05:54:01.000Z | 2015-03-09T05:54:01.000Z | src/exr.cpp | Fadis/hermit | 1b378fb94165e0348d11d8065d3259d14c49977b | [
"BSD-2-Clause"
] | null | null | null | src/exr.cpp | Fadis/hermit | 1b378fb94165e0348d11d8065d3259d14c49977b | [
"BSD-2-Clause"
] | null | null | null | #include <iostream>
//#include <boost/gil/gil_all.hpp>
#include <OpenEXR/ImfRgbaFile.h>
#include <OpenEXR/ImfArray.h>
/*
template <typename View>
void apply(const View& view) {
Imf::RgbaInputFile file ( "sample.exr" );
Imath::Box2i dw = file.dataWindow();
int width = dw.max.x - dw.min.x + 1;
int height = dw.max... | 35 | 94 | 0.634286 | Fadis |
6aff1cbc36c117388cfe32f298a60e47dd492307 | 15,353 | cc | C++ | content/browser/media/capture/aura_window_capture_machine.cc | maidiHaitai/haitaibrowser | a232a56bcfb177913a14210e7733e0ea83a6b18d | [
"BSD-3-Clause"
] | 1 | 2020-09-15T08:43:34.000Z | 2020-09-15T08:43:34.000Z | content/browser/media/capture/aura_window_capture_machine.cc | maidiHaitai/haitaibrowser | a232a56bcfb177913a14210e7733e0ea83a6b18d | [
"BSD-3-Clause"
] | null | null | null | content/browser/media/capture/aura_window_capture_machine.cc | maidiHaitai/haitaibrowser | a232a56bcfb177913a14210e7733e0ea83a6b18d | [
"BSD-3-Clause"
] | null | null | null | // Copyright 2013 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 "content/browser/media/capture/aura_window_capture_machine.h"
#include <algorithm>
#include <utility>
#include "base/logging.h"
#include "base/... | 36.467933 | 80 | 0.72038 | maidiHaitai |