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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
b8ed1379e1795e54597a71b4c4623421ca77fc2d | 403 | cpp | C++ | src/simple/client.cpp | AndreyMokryj/unix-ipc-lab | 6a11b71b3215f9e7d8d3a9f192ab202c1882864f | [
"MIT"
] | 1 | 2020-11-20T19:42:43.000Z | 2020-11-20T19:42:43.000Z | src/simple/client.cpp | Nlioxa/unix-ipc-lab | 1f052aadf933fe39bf7a80414b0e35c49ac7c140 | [
"MIT"
] | null | null | null | src/simple/client.cpp | Nlioxa/unix-ipc-lab | 1f052aadf933fe39bf7a80414b0e35c49ac7c140 | [
"MIT"
] | null | null | null | #include "../message.hpp"
#include "../channel.hpp"
int main()
{
auto channel = ipc::Channel::Client(8000);
{
auto msg = data::Message();
channel.Read((char *)&msg, sizeof(msg));
std::cout << "server: " << msg << '\n';
}
{
auto msg = data::Message::Notice("Hi, All!");
... | 20.15 | 53 | 0.51861 | AndreyMokryj |
b8ed1454ccc8e9d69e2a70774a9d41871f1d28dd | 1,754 | hh | C++ | dune/xt/la/solver/istl/preconditioners.hh | dune-community/dune-xt | da921524c6fff8d60c715cb4849a0bdd5f020d2b | [
"BSD-2-Clause"
] | 2 | 2020-02-08T04:08:52.000Z | 2020-08-01T18:54:14.000Z | dune/xt/la/solver/istl/preconditioners.hh | dune-community/dune-xt | da921524c6fff8d60c715cb4849a0bdd5f020d2b | [
"BSD-2-Clause"
] | 35 | 2019-08-19T12:06:35.000Z | 2020-03-27T08:20:39.000Z | dune/xt/la/solver/istl/preconditioners.hh | dune-community/dune-xt | da921524c6fff8d60c715cb4849a0bdd5f020d2b | [
"BSD-2-Clause"
] | 1 | 2020-02-08T04:09:34.000Z | 2020-02-08T04:09:34.000Z | // This file is part of the dune-xt project:
// https://zivgitlab.uni-muenster.de/ag-ohlberger/dune-community/dune-xt
// Copyright 2009-2021 dune-xt developers and contributors. All rights reserved.
// License: Dual licensed as BSD 2-Clause License (http://opensource.org/licenses/BSD-2-Clause)
// or GPL-2.0+ (h... | 28.290323 | 107 | 0.729761 | dune-community |
b8f0b20d21c6af78b09716b18b0fdc53cde18d26 | 1,056 | cpp | C++ | shared/memory/object_hook.cpp | jrnh/herby | bf0e90b850e2f81713e4dbc21c8d8b9af78ad203 | [
"MIT"
] | null | null | null | shared/memory/object_hook.cpp | jrnh/herby | bf0e90b850e2f81713e4dbc21c8d8b9af78ad203 | [
"MIT"
] | null | null | null | shared/memory/object_hook.cpp | jrnh/herby | bf0e90b850e2f81713e4dbc21c8d8b9af78ad203 | [
"MIT"
] | null | null | null | #include "shared/memory/object_hook.hpp"
namespace shared::memory
{
ObjectHook::ObjectHook( void* procedure, void* replace )
{
if( !Create( procedure, replace ) )
{
// throw exception
}
}
ObjectHook::~ObjectHook()
{
Destroy();
}
bool ObjectHook::Create( void* procedure, void* replace )
{
m_procedure = reinte... | 16 | 71 | 0.683712 | jrnh |
b8f2f9f8e7d01089771601f40f0d32177ba7b6b6 | 7,492 | cpp | C++ | sdk/src/pixie/error.cpp | xiallc/pixie_sdk | a6cf38b0a0d73a55955f4f906f789ee16eb848d4 | [
"Apache-2.0"
] | 2 | 2021-04-14T13:58:50.000Z | 2021-08-09T19:42:25.000Z | sdk/src/pixie/error.cpp | xiallc/pixie_sdk | a6cf38b0a0d73a55955f4f906f789ee16eb848d4 | [
"Apache-2.0"
] | 1 | 2021-08-31T10:32:07.000Z | 2021-09-03T15:03:00.000Z | sdk/src/pixie/error.cpp | xiallc/pixie_sdk | a6cf38b0a0d73a55955f4f906f789ee16eb848d4 | [
"Apache-2.0"
] | 1 | 2022-03-25T12:32:52.000Z | 2022-03-25T12:32:52.000Z | /* SPDX-License-Identifier: Apache-2.0 */
/*
* Copyright 2021 XIA LLC, All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICE... | 34.846512 | 94 | 0.66204 | xiallc |
b8f4da58cdcea145f36de4a07347a2722cec931e | 4,927 | cpp | C++ | src/nexmark_hot_items_ws/BidFilter.cpp | DonTassettitos/AIR | 92c93f05d6f15095d403dcbbe7ebe16563198697 | [
"BSD-3-Clause"
] | null | null | null | src/nexmark_hot_items_ws/BidFilter.cpp | DonTassettitos/AIR | 92c93f05d6f15095d403dcbbe7ebe16563198697 | [
"BSD-3-Clause"
] | null | null | null | src/nexmark_hot_items_ws/BidFilter.cpp | DonTassettitos/AIR | 92c93f05d6f15095d403dcbbe7ebe16563198697 | [
"BSD-3-Clause"
] | null | null | null | /**
* Copyright (c) 2020 University of Luxembourg. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without modification, are
* permitted provided that the following conditions are met:
*
* 1. Redistributions of source code must retain the above copyright notice, this list... | 32.846667 | 96 | 0.669373 | DonTassettitos |
b8fd0e91158a46a3fdb1f7da9ad9c3f392cb0b6b | 17,005 | cc | C++ | components/document/src/rich_text/epub/RTEpubView.cc | SBKarr/stappler | d9311cba0b0e9362be55feca39a866d7bccd6dff | [
"MIT"
] | 10 | 2015-06-16T16:52:53.000Z | 2021-04-15T09:21:22.000Z | components/document/src/rich_text/epub/RTEpubView.cc | SBKarr/stappler | d9311cba0b0e9362be55feca39a866d7bccd6dff | [
"MIT"
] | 3 | 2015-09-23T10:04:00.000Z | 2020-09-10T15:47:34.000Z | components/document/src/rich_text/epub/RTEpubView.cc | SBKarr/stappler | d9311cba0b0e9362be55feca39a866d7bccd6dff | [
"MIT"
] | 3 | 2018-11-11T00:37:49.000Z | 2020-09-07T03:04:31.000Z | // This is an open source non-commercial project. Dear PVS-Studio, please check it.
// PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com
/**
Copyright (c) 2017 Roman Katuntsev <sbkarr@stappler.org>
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and... | 29.218213 | 160 | 0.73155 | SBKarr |
7700edddfcf6f467fd7181d3a8c7e5cb6628a2ed | 9,639 | cpp | C++ | src/coherence/net/internal/ScopedReferenceStore.cpp | chpatel3/coherence-cpp-extend-client | 4ea5267eae32064dff1e73339aa3fbc9347ef0f6 | [
"UPL-1.0",
"Apache-2.0"
] | 6 | 2020-07-01T21:38:30.000Z | 2021-11-03T01:35:11.000Z | src/coherence/net/internal/ScopedReferenceStore.cpp | chpatel3/coherence-cpp-extend-client | 4ea5267eae32064dff1e73339aa3fbc9347ef0f6 | [
"UPL-1.0",
"Apache-2.0"
] | 1 | 2020-07-24T17:29:22.000Z | 2020-07-24T18:29:04.000Z | src/coherence/net/internal/ScopedReferenceStore.cpp | chpatel3/coherence-cpp-extend-client | 4ea5267eae32064dff1e73339aa3fbc9347ef0f6 | [
"UPL-1.0",
"Apache-2.0"
] | 6 | 2020-07-10T18:40:58.000Z | 2022-02-18T01:23:40.000Z | /*
* Copyright (c) 2000, 2020, Oracle and/or its affiliates.
*
* Licensed under the Universal Permissive License v 1.0 as shown at
* http://oss.oracle.com/licenses/upl.
*/
#include "private/coherence/net/internal/ScopedReferenceStore.hpp"
#include "coherence/net/CacheService.hpp"
#include "coherence/net/ServiceIn... | 29.033133 | 86 | 0.618425 | chpatel3 |
7702762939142bf721c4e05f9a749ca5ce58d7d4 | 624 | cpp | C++ | 1801-1900/1820-Find Letter/1820-Find Letter.cpp | jiadaizhao/LintCode | a8aecc65c47a944e9debad1971a7bc6b8776e48b | [
"MIT"
] | 77 | 2017-12-30T13:33:37.000Z | 2022-01-16T23:47:08.000Z | 1801-1900/1820-Find Letter/1820-Find Letter.cpp | jxhangithub/LintCode-1 | a8aecc65c47a944e9debad1971a7bc6b8776e48b | [
"MIT"
] | 1 | 2018-05-14T14:15:40.000Z | 2018-05-14T14:15:40.000Z | 1801-1900/1820-Find Letter/1820-Find Letter.cpp | jxhangithub/LintCode-1 | a8aecc65c47a944e9debad1971a7bc6b8776e48b | [
"MIT"
] | 39 | 2017-12-07T14:36:25.000Z | 2022-03-10T23:05:37.000Z | class Solution {
public:
/**
* @param str: the str
* @return: the letter
*/
char findLetter(string &str) {
// Write your code here.
vector<bool> low(26), up(26);
for (char c : str) {
if (c >= 'a' && c <= 'z') {
low[c - 'a'] = true;
}... | 21.517241 | 39 | 0.322115 | jiadaizhao |
7702889edaa42726c728c30d3c1a615134795250 | 3,429 | cpp | C++ | test/Interface/Component_Test.cpp | ctj12461/MultiGenerator | 15e4ef159502f5d886bbb7f03e4f8b41bf759382 | [
"MIT"
] | 2 | 2022-03-24T11:37:10.000Z | 2022-03-24T11:37:18.000Z | test/Interface/Component_Test.cpp | ctj12461/MultiGenerator | 15e4ef159502f5d886bbb7f03e4f8b41bf759382 | [
"MIT"
] | null | null | null | test/Interface/Component_Test.cpp | ctj12461/MultiGenerator | 15e4ef159502f5d886bbb7f03e4f8b41bf759382 | [
"MIT"
] | null | null | null | #include <iostream>
#include <filesystem>
#include <cassert>
#include <MultiGenerator/Interface/Component.hpp>
namespace Workflow = MultiGenerator::Workflow;
namespace Variable = MultiGenerator::Variable;
namespace Interface = MultiGenerator::Interface;
class AddGenerator : public Interface::GeneratingTask {
private... | 25.977273 | 84 | 0.551473 | ctj12461 |
7702b2745333aef83310036b29b12bb8ed2f4c03 | 818 | cpp | C++ | Programacao Orientada Objectos/MMInvaders/Project1WForms/InimigoBoss.cpp | dicamarques14/ProjectosProgramacao | fdfa52cc46fc8dcdc65d4cb471ed31546433a6ad | [
"MIT"
] | null | null | null | Programacao Orientada Objectos/MMInvaders/Project1WForms/InimigoBoss.cpp | dicamarques14/ProjectosProgramacao | fdfa52cc46fc8dcdc65d4cb471ed31546433a6ad | [
"MIT"
] | null | null | null | Programacao Orientada Objectos/MMInvaders/Project1WForms/InimigoBoss.cpp | dicamarques14/ProjectosProgramacao | fdfa52cc46fc8dcdc65d4cb471ed31546433a6ad | [
"MIT"
] | null | null | null | #include "InimigoBoss.h"
InimigoBoss::InimigoBoss(int _tipo, int _id, int _x,int _y)
:Inimigo( _tipo, _id, _x, _y)
{
TamanhoH = BossSizeInit_H;
TamanhoW = BossSizeInit_W;
EstadoBoca = Fechada;
}
InimigoBoss::~InimigoBoss(void)
{
}
bool InimigoBoss::RetiraVida(int _dano){
//se estiver com a boca aberta, po... | 18.177778 | 76 | 0.717604 | dicamarques14 |
7703d21c745411375852232d15db2fe01cec9dd2 | 801 | hpp | C++ | ios/Framework/BanubaEffectPlayer.xcframework/ios-x86_64-simulator/BanubaEffectPlayer.framework/PrivateHeaders/bnb/spal/camera/base_mocker.hpp | AbhishekDoshi-Bacancy/AgoraSDK | 030a024e5c10189526cb98b5db86998f8da43864 | [
"MIT"
] | null | null | null | ios/Framework/BanubaEffectPlayer.xcframework/ios-x86_64-simulator/BanubaEffectPlayer.framework/PrivateHeaders/bnb/spal/camera/base_mocker.hpp | AbhishekDoshi-Bacancy/AgoraSDK | 030a024e5c10189526cb98b5db86998f8da43864 | [
"MIT"
] | null | null | null | ios/Framework/BanubaEffectPlayer.xcframework/ios-x86_64-simulator/BanubaEffectPlayer.framework/PrivateHeaders/bnb/spal/camera/base_mocker.hpp | AbhishekDoshi-Bacancy/AgoraSDK | 030a024e5c10189526cb98b5db86998f8da43864 | [
"MIT"
] | null | null | null | #pragma once
#include <bnb/types/base_types.hpp>
#include <bnb/spal/camera/base.hpp>
#include <thread>
#include <string>
namespace bnb
{
class BNB_EXPORT camera_base_mocker : public camera_base
{
public:
using camera_base::push_frame_cb_t;
explicit camera_base_mocker(const push_frame_cb_... | 21.078947 | 89 | 0.645443 | AbhishekDoshi-Bacancy |
77097874a85fe889e543f9af54a832db551e32f9 | 63 | cpp | C++ | locomotion_framework/controllers/hierarchical_control/src/tasks/controller_task.cpp | ADVRHumanoids/DrivingFramework | 34715c37bfe3c1f2bd92aeacecc12704a1a7820e | [
"Zlib"
] | 1 | 2019-12-02T07:10:42.000Z | 2019-12-02T07:10:42.000Z | locomotion_framework/controllers/hierarchical_control/src/tasks/controller_task.cpp | ADVRHumanoids/DrivingFramework | 34715c37bfe3c1f2bd92aeacecc12704a1a7820e | [
"Zlib"
] | null | null | null | locomotion_framework/controllers/hierarchical_control/src/tasks/controller_task.cpp | ADVRHumanoids/DrivingFramework | 34715c37bfe3c1f2bd92aeacecc12704a1a7820e | [
"Zlib"
] | 2 | 2020-10-22T19:06:44.000Z | 2021-06-07T03:32:52.000Z | #include "mwoibn/hierarchical_control/tasks/controller_task.h"
| 31.5 | 62 | 0.857143 | ADVRHumanoids |
770c4968119eaf21f4a74681379ded1e05005cf7 | 633 | cpp | C++ | base/crts/crtw32/stdcpp64/newop2.cpp | npocmaka/Windows-Server-2003 | 5c6fe3db626b63a384230a1aa6b92ac416b0765f | [
"Unlicense"
] | 17 | 2020-11-13T13:42:52.000Z | 2021-09-16T09:13:13.000Z | base/crts/crtw32/stdcpp64/newop2.cpp | sancho1952007/Windows-Server-2003 | 5c6fe3db626b63a384230a1aa6b92ac416b0765f | [
"Unlicense"
] | 2 | 2020-10-19T08:02:06.000Z | 2020-10-19T08:23:18.000Z | base/crts/crtw32/stdcpp64/newop2.cpp | sancho1952007/Windows-Server-2003 | 5c6fe3db626b63a384230a1aa6b92ac416b0765f | [
"Unlicense"
] | 14 | 2020-11-14T09:43:20.000Z | 2021-08-28T08:59:57.000Z | // newop2 operator new(size_t, const nothrow_t&) for Microsoft C++
#include <cstdlib>
#include <new>
_C_LIB_DECL
int _callnewh(size_t size);
_END_C_LIB_DECL
void *operator new(size_t size, const std::nothrow_t&) _THROW0()
{ // try to allocate size bytes
void *p;
while ((p = malloc(size)) == 0)
{ // b... | 22.607143 | 67 | 0.655608 | npocmaka |
770c98f96afd1faac686df9c2b581be9f2d5940e | 5,472 | cpp | C++ | Source/DialogueSystemEditor/Private/DialogueGraphEditor/SDialogueGraphNode.cpp | WiseMooseGames/quest-system-plugin | 0a88f13d5e9795d8f403d44b7a2d123b279608b1 | [
"MIT"
] | null | null | null | Source/DialogueSystemEditor/Private/DialogueGraphEditor/SDialogueGraphNode.cpp | WiseMooseGames/quest-system-plugin | 0a88f13d5e9795d8f403d44b7a2d123b279608b1 | [
"MIT"
] | null | null | null | Source/DialogueSystemEditor/Private/DialogueGraphEditor/SDialogueGraphNode.cpp | WiseMooseGames/quest-system-plugin | 0a88f13d5e9795d8f403d44b7a2d123b279608b1 | [
"MIT"
] | null | null | null | #include "SDialogueGraphNode.h"
#include "SGraphPin.h"
#include "Widgets/SBoxPanel.h"
#include "DialogueEdNode.h"
#include "DialogueGraphColors.h"
#include "GraphEditorSettings.h"
#include "SlateOptMacros.h"
#include "Widgets/Text/SInlineEditableTextBlock.h"
class SDialogueGraphPin : public SGraphPin
{
publ... | 25.933649 | 99 | 0.716374 | WiseMooseGames |
771216fc5562c9d774ebeae84b46310519d28a0c | 843 | cpp | C++ | ParticleSystem_FullCode/Motor2D/j1Pool.cpp | xavimarin35/Particle-System | e3728fef00add33fa42c07f1bc36348a7cab9d00 | [
"MIT"
] | 1 | 2020-07-04T11:04:54.000Z | 2020-07-04T11:04:54.000Z | ParticleSystem_FullCode/Motor2D/j1Pool.cpp | xavimarin35/Particle-System | e3728fef00add33fa42c07f1bc36348a7cab9d00 | [
"MIT"
] | null | null | null | ParticleSystem_FullCode/Motor2D/j1Pool.cpp | xavimarin35/Particle-System | e3728fef00add33fa42c07f1bc36348a7cab9d00 | [
"MIT"
] | null | null | null | #include "j1Pool.h"
#include "j1Emitter.h"
#include "j1Particle.h"
#include <assert.h>
j1Pool::j1Pool(j1Emitter* emitter)
{
size = emitter->GetSize();
vec = new j1Particle[size];
startParticle = &vec[0];
}
j1Pool::~j1Pool()
{
delete[] vec;
vec = nullptr;
}
bool j1Pool::Update(float dt)
{
for (int i = 0; i < s... | 17.5625 | 144 | 0.646501 | xavimarin35 |
771556da575d10860bf8520b0ec80459aac9e1db | 2,979 | cpp | C++ | EngineLayer/PrecursorSearchModes/IntervalMassDiffAcceptor.cpp | edgargabriel/HPCMetaMorpheus | 160cc269464b8e563fa2f62f6843690b6a2533ee | [
"MIT"
] | 2 | 2020-09-10T19:14:20.000Z | 2021-09-11T16:36:56.000Z | EngineLayer/PrecursorSearchModes/IntervalMassDiffAcceptor.cpp | edgargabriel/HPCMetaMorpheus | 160cc269464b8e563fa2f62f6843690b6a2533ee | [
"MIT"
] | null | null | null | EngineLayer/PrecursorSearchModes/IntervalMassDiffAcceptor.cpp | edgargabriel/HPCMetaMorpheus | 160cc269464b8e563fa2f62f6843690b6a2533ee | [
"MIT"
] | 3 | 2020-09-11T01:19:47.000Z | 2021-09-02T02:05:01.000Z | #include "IntervalMassDiffAcceptor.h"
#include "AllowedIntervalWithNotch.h"
#include "Search.h"
using namespace MzLibUtil;
namespace EngineLayer
{
IntervalMassDiffAcceptor::IntervalMassDiffAcceptor(const std::string &fileNameAddition,
std::vector<DoubleRang... | 34.241379 | 152 | 0.586103 | edgargabriel |
7715ccb2e84ebdaf36cd03fede19adaafc650c04 | 6,197 | cpp | C++ | engine/src/channelmodifier.cpp | hawesy/qlcplus | 1702f03144fe210611881f15424a535febae0c6a | [
"ECL-2.0",
"Apache-2.0"
] | 478 | 2015-01-20T14:51:17.000Z | 2022-03-31T06:56:05.000Z | engine/src/channelmodifier.cpp | hjtappe/qlcplus | b5537fa11d419d148eca5cb1321ee98d3dc5047b | [
"ECL-2.0",
"Apache-2.0"
] | 711 | 2015-01-05T06:50:06.000Z | 2022-03-06T20:31:07.000Z | engine/src/channelmodifier.cpp | hjtappe/qlcplus | b5537fa11d419d148eca5cb1321ee98d3dc5047b | [
"ECL-2.0",
"Apache-2.0"
] | 386 | 2015-01-07T15:36:59.000Z | 2022-03-31T06:56:07.000Z | /*
Q Light Controller Plus
channelmodifier.cpp
Copyright (c) Massimo Callegari
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.txt
U... | 29.231132 | 115 | 0.597224 | hawesy |
77173ae2a24cefadffe8e9004a1fbc0d978dea7d | 3,360 | cc | C++ | chrome/browser/ui/webui/webui_load_timer_browsertest.cc | zealoussnow/chromium | fd8a8914ca0183f0add65ae55f04e287543c7d4a | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 14,668 | 2015-01-01T01:57:10.000Z | 2022-03-31T23:33:32.000Z | chrome/browser/ui/webui/webui_load_timer_browsertest.cc | zealoussnow/chromium | fd8a8914ca0183f0add65ae55f04e287543c7d4a | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 86 | 2015-10-21T13:02:42.000Z | 2022-03-14T07:50:50.000Z | chrome/browser/ui/webui/webui_load_timer_browsertest.cc | zealoussnow/chromium | fd8a8914ca0183f0add65ae55f04e287543c7d4a | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 5,941 | 2015-01-02T11:32:21.000Z | 2022-03-31T16:35:46.000Z | // Copyright 2019 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 "chrome/browser/ui/webui/webui_load_timer.h"
#include "base/run_loop.h"
#include "base/test/metrics/histogram_tester.h"
#include "chrome/browser... | 38.62069 | 79 | 0.771131 | zealoussnow |
7724d91eb2f98a0b80a5b22cfce7fe69ca469a01 | 2,007 | cpp | C++ | src/server/http/statushandler.cpp | geops/batyr | a2f274a48b36aca87f4a47015814936bb5d89c3b | [
"BSD-3-Clause"
] | 14 | 2015-02-12T09:39:04.000Z | 2020-04-08T03:47:22.000Z | src/server/http/statushandler.cpp | geops/batyr | a2f274a48b36aca87f4a47015814936bb5d89c3b | [
"BSD-3-Clause"
] | 1 | 2016-02-13T18:45:53.000Z | 2017-05-03T06:48:29.000Z | src/server/http/statushandler.cpp | geops/batyr | a2f274a48b36aca87f4a47015814936bb5d89c3b | [
"BSD-3-Clause"
] | 5 | 2016-10-24T10:04:30.000Z | 2018-08-04T14:57:34.000Z | #include "server/http/statushandler.h"
#include "server/json.h"
#include "common/macros.h"
#include "common/config.h"
#include <Poco/Net/HTTPResponse.h>
#include <iostream>
using namespace Batyr::Http;
StatusHandler::StatusHandler(Configuration::Ptr _configuration)
: Handler(_configuration),
logger(Po... | 33.45 | 100 | 0.674639 | geops |
7724de68ca3d4c8b204642f4e2dd1d9c6e779d5f | 7,764 | cpp | C++ | test/network/SocketImplTest/socket_impl_test.cpp | luckysym/Taurus | d336e7bd226411f7e3d348dc701c79182e85c316 | [
"Apache-2.0"
] | null | null | null | test/network/SocketImplTest/socket_impl_test.cpp | luckysym/Taurus | d336e7bd226411f7e3d348dc701c79182e85c316 | [
"Apache-2.0"
] | null | null | null | test/network/SocketImplTest/socket_impl_test.cpp | luckysym/Taurus | d336e7bd226411f7e3d348dc701c79182e85c316 | [
"Apache-2.0"
] | null | null | null | #include "../../../src/net/socket_impl.h"
#include "../../../src/net/socket_opt_impl.h"
#include <mercury/nio/buffer.h>
#include <cppunit/extensions/TestFactoryRegistry.h>
#include <cppunit/ui/text/TestRunner.h>
#include <cppunit/TestCaller.h>
#include <cppunit/TestSuite.h>
#include <cppunit/extensions/HelperMacros.h>
... | 33.61039 | 82 | 0.635111 | luckysym |
7725f6bf849068cd3a35a8f021547f344178a896 | 4,017 | cpp | C++ | src/XESCore/MapCreate.cpp | rromanchuk/xptools | deff017fecd406e24f60dfa6aae296a0b30bff56 | [
"X11",
"MIT"
] | 71 | 2015-12-15T19:32:27.000Z | 2022-02-25T04:46:01.000Z | src/XESCore/MapCreate.cpp | rromanchuk/xptools | deff017fecd406e24f60dfa6aae296a0b30bff56 | [
"X11",
"MIT"
] | 19 | 2016-07-09T19:08:15.000Z | 2021-07-29T10:30:20.000Z | src/XESCore/MapCreate.cpp | rromanchuk/xptools | deff017fecd406e24f60dfa6aae296a0b30bff56 | [
"X11",
"MIT"
] | 42 | 2015-12-14T19:13:02.000Z | 2022-03-01T15:15:03.000Z | /*
* Copyright (c) 2008, Laminar Research.
*
* 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, ... | 37.194444 | 145 | 0.702514 | rromanchuk |
7728afdfda83c0f6a2ef1f51968c0881089eb46e | 740 | cpp | C++ | src/libs/dataclean_mode_gen/src/stats_output.cpp | boazsade/machine_learinig_models | eb1f9eda0e4e25a6d028b25682dfb20628a20624 | [
"MIT"
] | null | null | null | src/libs/dataclean_mode_gen/src/stats_output.cpp | boazsade/machine_learinig_models | eb1f9eda0e4e25a6d028b25682dfb20628a20624 | [
"MIT"
] | null | null | null | src/libs/dataclean_mode_gen/src/stats_output.cpp | boazsade/machine_learinig_models | eb1f9eda0e4e25a6d028b25682dfb20628a20624 | [
"MIT"
] | null | null | null | #ifndef SUPPORT_FOR_MODEL_GENERATION
# define SUPPORT_FOR_MODEL_GENERATION
#endif // SUPPORT_FOR_MODEL_GENERATION
#include "libs/cleanup_operatiosn/stats_output.h"
#include "utils/math_datatype_io.h"
#include <iostream>
std::ostream& operator << (std::ostream& os, const column_info& se)
{
return os<<"column va... | 23.125 | 73 | 0.678378 | boazsade |
772cee79e402b32aa9ca343e60ad1a7e676adfae | 2,368 | cc | C++ | src/ipopt_solver.cc | huhumeng/ifopt_review | 7e29fb8dd1e75f7a229a82cbd8440cab2740f6ff | [
"BSD-3-Clause"
] | 1 | 2021-07-26T06:35:37.000Z | 2021-07-26T06:35:37.000Z | src/ipopt_solver.cc | huhumeng/ifopt_review | 7e29fb8dd1e75f7a229a82cbd8440cab2740f6ff | [
"BSD-3-Clause"
] | null | null | null | src/ipopt_solver.cc | huhumeng/ifopt_review | 7e29fb8dd1e75f7a229a82cbd8440cab2740f6ff | [
"BSD-3-Clause"
] | 1 | 2021-07-26T06:35:38.000Z | 2021-07-26T06:35:38.000Z | #include "ipopt_solver.h"
#include "ipopt_adapter.h"
namespace ifopt {
IpoptSolver::IpoptSolver()
{
ipopt_app_ = std::make_shared<Ipopt::IpoptApplication>();
/* Which linear solver to use. Mumps is default because it comes with the
* precompiled ubuntu binaries. However, the coin-hsl solvers can be
*... | 32.438356 | 115 | 0.679476 | huhumeng |
772d08cb0f190ed4030f52d2fc69eb6cd9fa8b24 | 14,280 | cpp | C++ | tools/file.cpp | GregoryIstratov/external_sort | 50b3c417c0aa05eea5464e94cdfe2ad2c1b264bf | [
"MIT"
] | null | null | null | tools/file.cpp | GregoryIstratov/external_sort | 50b3c417c0aa05eea5464e94cdfe2ad2c1b264bf | [
"MIT"
] | null | null | null | tools/file.cpp | GregoryIstratov/external_sort | 50b3c417c0aa05eea5464e94cdfe2ad2c1b264bf | [
"MIT"
] | null | null | null | #include <list>
#include "file.hpp"
#include "exception.hpp"
#include "../log.hpp"
#include "raw_file.hpp"
#include "mapped_file.hpp"
#if defined(_WINDOWS)
#include <Windows.h>
class win_error_string
{
public:
~win_error_string()
{
if (err_)
{
... | 26.201835 | 90 | 0.4993 | GregoryIstratov |
772da99d579715b5ed8d54c711413f99cfeab239 | 7,520 | cpp | C++ | examples/platforms/posix/ble_stub.cpp | CAJ2/openthread | 120aa72ff2268cce60f773219ebe9162d20f0b90 | [
"BSD-3-Clause"
] | null | null | null | examples/platforms/posix/ble_stub.cpp | CAJ2/openthread | 120aa72ff2268cce60f773219ebe9162d20f0b90 | [
"BSD-3-Clause"
] | null | null | null | examples/platforms/posix/ble_stub.cpp | CAJ2/openthread | 120aa72ff2268cce60f773219ebe9162d20f0b90 | [
"BSD-3-Clause"
] | null | null | null | /*
* Copyright (c) 2018, The OpenThread Authors.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
* 1. Redistributions of source code must retain the above copyright
* notice, this ... | 27.545788 | 116 | 0.653324 | CAJ2 |
772e8a733ed13ca3796de488e295342493c60d4c | 2,292 | cc | C++ | gcc-gcc-7_3_0-release/libvtv/testsuite/other-tests/dlopen_mt.cc | best08618/asylo | 5a520a9f5c461ede0f32acc284017b737a43898c | [
"Apache-2.0"
] | 7 | 2020-05-02T17:34:05.000Z | 2021-10-17T10:15:18.000Z | gcc-gcc-7_3_0-release/libvtv/testsuite/other-tests/dlopen_mt.cc | best08618/asylo | 5a520a9f5c461ede0f32acc284017b737a43898c | [
"Apache-2.0"
] | null | null | null | gcc-gcc-7_3_0-release/libvtv/testsuite/other-tests/dlopen_mt.cc | best08618/asylo | 5a520a9f5c461ede0f32acc284017b737a43898c | [
"Apache-2.0"
] | 2 | 2020-07-27T00:22:36.000Z | 2021-04-01T09:41:02.000Z | #include <stdlib.h>
#include <dlfcn.h>
#include <stdio.h>
#include "vtv_utils.h"
#include "vtv_rts.h"
#include "pthread.h"
#define NUM_REPEATS 10
#define NUM_THREADS 10
#define NUM_SOS 100
#define NUM_SOS_PER_THREAD (NUM_SOS/NUM_THREADS)
typedef void (*voidfn)(void);
int failures = 0;
void
__vtv_verify_fail (void ... | 20.283186 | 92 | 0.624346 | best08618 |
772ebce74f6d6f6cf88ae89042c524213ec6c9e9 | 3,402 | cpp | C++ | sample/truss/sample_truss_totalstressdesign.cpp | PANFACTORY/PANSFEM2 | 5ca886a89ebac1df6449513149843d0721bce1b4 | [
"MIT"
] | 6 | 2021-01-28T08:51:08.000Z | 2022-01-06T23:19:27.000Z | sample/truss/sample_truss_totalstressdesign.cpp | PANFACTORY/PANSFEM2 | 5ca886a89ebac1df6449513149843d0721bce1b4 | [
"MIT"
] | 1 | 2020-08-30T10:42:54.000Z | 2020-09-01T07:28:11.000Z | sample/truss/sample_truss_totalstressdesign.cpp | PANFACTORY/PANSFEM2 | 5ca886a89ebac1df6449513149843d0721bce1b4 | [
"MIT"
] | 1 | 2021-09-22T00:31:55.000Z | 2021-09-22T00:31:55.000Z | #include <iostream>
#include <vector>
#include "../../src/LinearAlgebra/Models/Vector.h"
#include "../../src/PrePost/Mesher/GrandStructure.h"
#include "../../src/FEM/Controller/BoundaryCondition.h"
#include "../../src/FEM/Equation/Truss.h"
#include "../../src/FEM/Controller/Assembling.h"
#include "../../src/LinearAlg... | 37.8 | 121 | 0.566725 | PANFACTORY |
772fa243dc2b5b1a058acadd5960e350af2ead9a | 16,999 | cpp | C++ | implementations/ugene/src/corelibs/U2Core/src/util/ChromatogramUtils.cpp | r-barnes/sw_comparison | 1ac2c9cc10a32badd6b8fb1e96516c97f7800176 | [
"BSD-Source-Code"
] | null | null | null | implementations/ugene/src/corelibs/U2Core/src/util/ChromatogramUtils.cpp | r-barnes/sw_comparison | 1ac2c9cc10a32badd6b8fb1e96516c97f7800176 | [
"BSD-Source-Code"
] | null | null | null | implementations/ugene/src/corelibs/U2Core/src/util/ChromatogramUtils.cpp | r-barnes/sw_comparison | 1ac2c9cc10a32badd6b8fb1e96516c97f7800176 | [
"BSD-Source-Code"
] | null | null | null | /**
* UGENE - Integrated Bioinformatics Tools.
* Copyright (C) 2008-2020 UniPro <ugene@unipro.ru>
* http://ugene.net
*
* 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
* ... | 49.272464 | 173 | 0.721925 | r-barnes |
77307c15488e2755af371bb5b480d3b1888a20c9 | 4,863 | cpp | C++ | darkness-editor/src/drawers/StringDrawer.cpp | Karmiska/Darkness | c87eaf067a2707a0141909125ff461f69a3812e0 | [
"MIT"
] | 6 | 2019-10-17T11:31:55.000Z | 2022-02-11T08:51:20.000Z | darkness-editor/src/drawers/StringDrawer.cpp | Karmiska/Darkness | c87eaf067a2707a0141909125ff461f69a3812e0 | [
"MIT"
] | 1 | 2020-08-11T09:01:29.000Z | 2020-08-11T09:01:29.000Z | darkness-editor/src/drawers/StringDrawer.cpp | Karmiska/Darkness | c87eaf067a2707a0141909125ff461f69a3812e0 | [
"MIT"
] | 1 | 2020-06-02T15:48:20.000Z | 2020-06-02T15:48:20.000Z | #include "StringDrawer.h"
#include <QStyleOption>
#include <QDropEvent>
#include <QMimeData>
#include <QPainter>
#include <QMouseEvent>
#include "engine/primitives/Vector3.h"
#include "../assets/AssetTools.h"
namespace engine
{
DroppableLabel::DroppableLabel(QWidget* parent)
: QLineEdit(parent)
{
setAcceptDrops... | 27.474576 | 143 | 0.645898 | Karmiska |
7730b84a349f6fb3551c12ac0141ca6904d56f67 | 6,493 | cc | C++ | source/LibMultiSense/details/flash.cc | DArpinoRobotics/libmultisense | d3ed760c26762eabf3d9875a2379ff435b4f4be3 | [
"Unlicense"
] | null | null | null | source/LibMultiSense/details/flash.cc | DArpinoRobotics/libmultisense | d3ed760c26762eabf3d9875a2379ff435b4f4be3 | [
"Unlicense"
] | null | null | null | source/LibMultiSense/details/flash.cc | DArpinoRobotics/libmultisense | d3ed760c26762eabf3d9875a2379ff435b4f4be3 | [
"Unlicense"
] | null | null | null | /**
* @file LibMultiSense/details/flash.cc
*
* Copyright 2013
* Carnegie Robotics, LLC
* 4501 Hatfield Street, Pittsburgh, PA 15201
* http://www.carnegierobotics.com
*
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the... | 30.919048 | 82 | 0.630833 | DArpinoRobotics |
7733b8bbd74b25cc2ce6d4e52db81c6b3f02546d | 1,357 | cc | C++ | libs/core/src/core/nlp_sentence.test.cc | madeso/euphoria | 59b72d148a90ae7a19e197e91216d4d42f194fd5 | [
"MIT"
] | 24 | 2015-07-27T14:32:18.000Z | 2021-11-15T12:11:31.000Z | libs/core/src/core/nlp_sentence.test.cc | madeso/euphoria | 59b72d148a90ae7a19e197e91216d4d42f194fd5 | [
"MIT"
] | 27 | 2021-07-09T21:18:40.000Z | 2021-07-14T13:39:56.000Z | libs/core/src/core/nlp_sentence.test.cc | madeso/euphoria | 59b72d148a90ae7a19e197e91216d4d42f194fd5 | [
"MIT"
] | null | null | null | #include "core/nlp_sentence.h"
#include "tests/approx_equal.h"
#include "tests/stringeq.h"
#include "catch.hpp"
using namespace euphoria::tests;
using namespace euphoria::core;
namespace
{
std::pair<bool, std::vector<TextSentence>>
parse_to_sentence(const std::string& str)
{
std::vector<TextSen... | 25.12963 | 101 | 0.582903 | madeso |
77355e54b6042162562346981da3997f1f648ba6 | 3,476 | hpp | C++ | libraries/plugins/activenode/include/graphene/activenode/activenode.hpp | district1/tyslin-core | 4ad5592e29e07ccc466a232f4b407c0d7ef105dd | [
"MIT"
] | 8 | 2019-05-20T00:50:41.000Z | 2019-12-17T23:50:03.000Z | libraries/plugins/activenode/include/graphene/activenode/activenode.hpp | jacekdalecki84/LocalCoin-core | 9ffa8785a305c730257690ca274533cc69c0560d | [
"MIT"
] | 3 | 2019-07-17T18:42:29.000Z | 2022-02-18T00:21:20.000Z | libraries/plugins/activenode/include/graphene/activenode/activenode.hpp | jacekdalecki84/LocalCoin-core | 9ffa8785a305c730257690ca274533cc69c0560d | [
"MIT"
] | 7 | 2019-04-11T14:20:15.000Z | 2022-01-20T15:06:57.000Z | /*
* Copyright (c) 2015 Cryptonomex, Inc., and contributors.
*
* The MIT License
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the... | 35.469388 | 118 | 0.743671 | district1 |
7740256b51351f4881c05b33d494a513ff2cf626 | 1,438 | cpp | C++ | dbms/src/DataStreams/MergingAggregatedBlockInputStream.cpp | solotzg/tiflash | 66f45c76692e941bc845c01349ea89de0f2cc210 | [
"Apache-2.0"
] | 85 | 2022-03-25T09:03:16.000Z | 2022-03-25T09:45:03.000Z | dbms/src/DataStreams/MergingAggregatedBlockInputStream.cpp | solotzg/tiflash | 66f45c76692e941bc845c01349ea89de0f2cc210 | [
"Apache-2.0"
] | 7 | 2022-03-25T08:59:10.000Z | 2022-03-25T09:40:13.000Z | dbms/src/DataStreams/MergingAggregatedBlockInputStream.cpp | solotzg/tiflash | 66f45c76692e941bc845c01349ea89de0f2cc210 | [
"Apache-2.0"
] | 11 | 2022-03-25T09:15:36.000Z | 2022-03-25T09:45:07.000Z | // Copyright 2022 PingCAP, Ltd.
//
// 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 i... | 25.678571 | 82 | 0.700974 | solotzg |
7744ac9c2457c9e52ff425bfcc6a79a27d828f58 | 5,828 | cpp | C++ | Sources_Common/HTTP/HTTPClient/CHTTPAuthorizationDigest.cpp | mulberry-mail/mulberry4-client | cdaae15c51dd759110b4fbdb2063d0e3d5202103 | [
"ECL-2.0",
"Apache-2.0"
] | 12 | 2015-04-21T16:10:43.000Z | 2021-11-05T13:41:46.000Z | Sources_Common/HTTP/HTTPClient/CHTTPAuthorizationDigest.cpp | mulberry-mail/mulberry4-client | cdaae15c51dd759110b4fbdb2063d0e3d5202103 | [
"ECL-2.0",
"Apache-2.0"
] | 2 | 2015-11-02T13:32:11.000Z | 2019-07-10T21:11:21.000Z | Sources_Common/HTTP/HTTPClient/CHTTPAuthorizationDigest.cpp | mulberry-mail/mulberry4-client | cdaae15c51dd759110b4fbdb2063d0e3d5202103 | [
"ECL-2.0",
"Apache-2.0"
] | 6 | 2015-01-12T08:49:12.000Z | 2021-03-27T09:11:10.000Z | /*
Copyright (c) 2007-2009 Cyrus Daboo. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unle... | 22.765625 | 113 | 0.590597 | mulberry-mail |
7746185f4742e46753a900c16c6d6e56806cae65 | 3,408 | cpp | C++ | PebblesGameofLife/src/events.cpp | NicholasHallman/PebblesGameOfLife | d198fb46030a79b2918fcef3d62268919e89f672 | [
"MIT"
] | 2 | 2019-12-08T12:41:01.000Z | 2021-01-25T22:31:47.000Z | PebblesGameofLife/src/events.cpp | NicholasHallman/PebblesGameOfLife | d198fb46030a79b2918fcef3d62268919e89f672 | [
"MIT"
] | null | null | null | PebblesGameofLife/src/events.cpp | NicholasHallman/PebblesGameOfLife | d198fb46030a79b2918fcef3d62268919e89f672 | [
"MIT"
] | null | null | null | /*
* events.cpp
*
* Created on: Nov 23, 2017
* Author: Nicholas Hallman
* Omid Ghiyasian
*/
#include"events.hpp"
int speedX = 0;
int speedY = 0;
int runs = 0;
void mouseOver(int x, int y){
y = 768 - y;
int change = 0;
int index = buttonOver(x, y);
if(index != -1){
glutSetCursor(GLUT_CURSOR_... | 19.146067 | 85 | 0.561913 | NicholasHallman |
77485cf0749e102ac8fbf1a459e2682b643e644e | 1,779 | hpp | C++ | mpllibs/metamonad/v1/impl/match_boxed_impl.hpp | sabel83/mpllibs | 8e245aedcf658fe77bb29537aeba1d4e1a619a19 | [
"BSL-1.0"
] | 70 | 2015-01-15T09:05:15.000Z | 2021-12-08T15:49:31.000Z | mpllibs/metamonad/v1/impl/match_boxed_impl.hpp | sabel83/mpllibs | 8e245aedcf658fe77bb29537aeba1d4e1a619a19 | [
"BSL-1.0"
] | 4 | 2015-06-18T19:25:34.000Z | 2016-05-13T19:49:51.000Z | mpllibs/metamonad/v1/impl/match_boxed_impl.hpp | sabel83/mpllibs | 8e245aedcf658fe77bb29537aeba1d4e1a619a19 | [
"BSL-1.0"
] | 5 | 2015-07-10T08:18:09.000Z | 2021-12-01T07:17:57.000Z | #ifndef MPLLIBS_METAMONAD_V1_IMPL_MATCH_BOXED_IMPL_HPP
#define MPLLIBS_METAMONAD_V1_IMPL_MATCH_BOXED_IMPL_HPP
// Copyright Abel Sinkovics (abel@sinkovics.hu) 2013.
// Distributed under the Boost Software License, Version 1.0.
// (See accompanying file LICENSE_1_0.txt or copy at
// http://www.boost.org/LIC... | 28.238095 | 79 | 0.605396 | sabel83 |
774ef12ba7d744a60fdbef0a4283c54a8f1f3ae5 | 31,705 | cpp | C++ | code/cray_dx_renderer.cpp | ALEXMORF/cray | ebf61b37ccde690081648f3408c6c5963bdd43c6 | [
"MIT"
] | 36 | 2019-01-13T02:37:45.000Z | 2021-09-22T02:27:49.000Z | code/cray_dx_renderer.cpp | ALEXMORF/cray | ebf61b37ccde690081648f3408c6c5963bdd43c6 | [
"MIT"
] | null | null | null | code/cray_dx_renderer.cpp | ALEXMORF/cray | ebf61b37ccde690081648f3408c6c5963bdd43c6 | [
"MIT"
] | 5 | 2019-01-12T20:09:32.000Z | 2022-02-03T18:06:40.000Z | #include <imgui_impl_dx11.cpp>
//#include "cray_hlsl_code.h"
internal ID3DBlob *
CompileDXShaderFromFile(LPCWSTR Path, char *EntryPoint, char *Target, UINT Flags)
{
ID3DBlob *CompiledCode = 0;
ID3DBlob *ShaderError = 0;
HRESULT CompiledShader = D3DCompileFromFile(Path, 0,
... | 39.830402 | 155 | 0.654849 | ALEXMORF |
77517aa35c0b1e66609f0b11a4de78cb609ca5a4 | 733 | cpp | C++ | BHRgoal/PFOO-L/pfool.cpp | dasebe/optimalwebcaching | 401da5ebd2e0fdb21798f8dcea52b6355efb7dc5 | [
"BSD-2-Clause"
] | 37 | 2018-05-21T03:04:43.000Z | 2022-02-17T11:19:03.000Z | BHRgoal/PFOO-L/pfool.cpp | dasebe/optimalwebcaching | 401da5ebd2e0fdb21798f8dcea52b6355efb7dc5 | [
"BSD-2-Clause"
] | 4 | 2018-07-14T23:57:11.000Z | 2022-02-04T01:31:12.000Z | BHRgoal/PFOO-L/pfool.cpp | dasebe/optimalwebcaching | 401da5ebd2e0fdb21798f8dcea52b6355efb7dc5 | [
"BSD-2-Clause"
] | 8 | 2019-04-26T20:13:18.000Z | 2021-11-18T13:24:37.000Z | #include <cassert>
#include <vector>
#include <unordered_map>
#include <unordered_set>
#include <set>
#include <fstream>
#include "lib/parse_trace.h"
#include "lib/solve_mcf.h"
int main(int argc, char* argv[]) {
if (argc != 3) {
std::cerr << argv[0] << " traceFile cacheSize" << std::endl;
return 1... | 20.361111 | 68 | 0.604366 | dasebe |
77523e7965d744b41208b37d8fa71878ab300e0c | 3,330 | cpp | C++ | third_party/libosmium/test/t/tags/test_tag_list.cpp | Mapotempo/osrm-backend | a62c10321c0a269e218ab4164c4ccd132048f271 | [
"BSD-2-Clause"
] | 1 | 2016-11-29T15:02:40.000Z | 2016-11-29T15:02:40.000Z | third_party/libosmium/test/t/tags/test_tag_list.cpp | aaronbenz/osrm-backend | 758d4023050d1f49971f919cea872a2276dafe14 | [
"BSD-2-Clause"
] | 1 | 2019-02-04T18:10:57.000Z | 2019-02-04T18:10:57.000Z | third_party/libosmium/test/t/tags/test_tag_list.cpp | Mapotempo/osrm-backend | a62c10321c0a269e218ab4164c4ccd132048f271 | [
"BSD-2-Clause"
] | null | null | null | #include "catch.hpp"
#include <osmium/builder/builder_helper.hpp>
#include <osmium/memory/buffer.hpp>
#include <osmium/osm/tag.hpp>
TEST_CASE("create tag list") {
osmium::memory::Buffer buffer(10240);
SECTION("with TagListBuilder from char*") {
{
osmium::builder::TagListBuilder builder(bu... | 32.330097 | 100 | 0.565766 | Mapotempo |
7753416567c24701ce09016caf57ca0eef8a8efd | 867 | cpp | C++ | src/main/cpp/pistis/log4cxx/Log4CxxLogMessageReceiver.cpp | tomault/pistis-log4cxx | 849e507a654d05362122582192ead7dba9798abe | [
"Apache-2.0"
] | null | null | null | src/main/cpp/pistis/log4cxx/Log4CxxLogMessageReceiver.cpp | tomault/pistis-log4cxx | 849e507a654d05362122582192ead7dba9798abe | [
"Apache-2.0"
] | null | null | null | src/main/cpp/pistis/log4cxx/Log4CxxLogMessageReceiver.cpp | tomault/pistis-log4cxx | 849e507a654d05362122582192ead7dba9798abe | [
"Apache-2.0"
] | null | null | null | #include "Log4CxxLogMessageReceiver.hpp"
using namespace pistis::logging;
using namespace pistis::log4cxx;
const Log4CxxLogLevelTranslator Log4CxxLogMessageReceiver::_LOG4CXX_LEVEL;
Log4CxxLogMessageReceiver::Log4CxxLogMessageReceiver(
LogMessageFactory* factory,
const ::log4cxx::LoggerPtr& logger
):
_fa... | 26.272727 | 74 | 0.732411 | tomault |
775c37b4dec83c8ee2b8e3cf1795468013cc4222 | 494 | cpp | C++ | reference/point.cpp | AaronBerman/dustsim | 0b5ff0f6b72037f96c8d119744109068fdfba135 | [
"Apache-2.0"
] | null | null | null | reference/point.cpp | AaronBerman/dustsim | 0b5ff0f6b72037f96c8d119744109068fdfba135 | [
"Apache-2.0"
] | null | null | null | reference/point.cpp | AaronBerman/dustsim | 0b5ff0f6b72037f96c8d119744109068fdfba135 | [
"Apache-2.0"
] | null | null | null |
#ifndef POINT_H
#define POINT_H
#include <iostream>
using namespace std;
class point
{
public:
point();
point(double a, double b);
virtual ~point();
double Getx() { return x; }
void Setx(double val) { x = val; }
double Gety() { return y; }
v... | 19 | 59 | 0.48583 | AaronBerman |
775d97d6727f184cce3d273681bb6ad2b0124fc8 | 2,576 | hpp | C++ | src/comment.hpp | lem0nez/instanalyzer | 0bb2353ecc6d3657245d2f8053a55172da03968e | [
"Apache-2.0"
] | null | null | null | src/comment.hpp | lem0nez/instanalyzer | 0bb2353ecc6d3657245d2f8053a55172da03968e | [
"Apache-2.0"
] | null | null | null | src/comment.hpp | lem0nez/instanalyzer | 0bb2353ecc6d3657245d2f8053a55172da03968e | [
"Apache-2.0"
] | null | null | null | /*
* Copyright © 2019 Nikita Dudko. All rights reserved.
* Contacts: <nikita.dudko.95@gmail.com>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses... | 33.454545 | 76 | 0.726708 | lem0nez |
7764bf44fbd662d7d1ce9b42d955824374cd57d2 | 1,129 | cpp | C++ | src/visualman/abstrarenderer.cpp | cad420/VisualMan | 1ad86dec229891c4e93b86732ae98e52e44f5c8d | [
"MIT"
] | 6 | 2019-09-27T06:16:12.000Z | 2022-02-26T08:00:05.000Z | src/visualman/abstrarenderer.cpp | cad420/VisualMan | 1ad86dec229891c4e93b86732ae98e52e44f5c8d | [
"MIT"
] | null | null | null | src/visualman/abstrarenderer.cpp | cad420/VisualMan | 1ad86dec229891c4e93b86732ae98e52e44f5c8d | [
"MIT"
] | 1 | 2019-06-04T17:19:16.000Z | 2019-06-04T17:19:16.000Z |
#include "abstrarenderer.h"
#include "renderevent.h"
namespace vm
{
void AbstraRenderer::DispatchOnRenderStartedEvent()
{
//Debug("AbstraRenderer::DispatchOnRenderStartedEvent\n");
for ( auto it = startedCallbacks.begin(); it != startedCallbacks.end(); ) {
auto &item = *it;
if ( item->IsEnabled() && item->OnRe... | 26.255814 | 103 | 0.719221 | cad420 |
7765a1ed9a9c5b979d17ec0a327499ae3b54d25d | 11,160 | cpp | C++ | simpletest_ext.cpp | jonathanrlemos/simpletest | 0b0086279c756aa7bd14a40d907352233fc98313 | [
"MIT"
] | null | null | null | simpletest_ext.cpp | jonathanrlemos/simpletest | 0b0086279c756aa7bd14a40d907352233fc98313 | [
"MIT"
] | null | null | null | simpletest_ext.cpp | jonathanrlemos/simpletest | 0b0086279c756aa7bd14a40d907352233fc98313 | [
"MIT"
] | null | null | null | /** @file simpletest_ext.cpp
* @brief simpletest extended functions.
* @copyright Copyright (c) 2018 Jonathan Lemos
*
* This software may be modified and distributed under the terms
* of the MIT license. See the LICENSE file for details.
*/
#include "simpletest_ext.hpp"
#include <algorithm>
#include <cstring>
... | 32.347826 | 183 | 0.685663 | jonathanrlemos |
77681b8391e91588287beb33336de99fe209ba07 | 2,915 | cpp | C++ | cleanup/SearchPaths.cpp | thfabian/cleanup | f85b2cb66f6dd58c8d962d10ba1733aeb19f57f4 | [
"MIT"
] | 1 | 2016-01-24T13:37:32.000Z | 2016-01-24T13:37:32.000Z | cleanup/SearchPaths.cpp | thfabian/cleanup | f85b2cb66f6dd58c8d962d10ba1733aeb19f57f4 | [
"MIT"
] | null | null | null | cleanup/SearchPaths.cpp | thfabian/cleanup | f85b2cb66f6dd58c8d962d10ba1733aeb19f57f4 | [
"MIT"
] | null | null | null | /** _______ _______ _ ____ _____
* / ___/ / / __/ _ | / |/ / / / / _ \
* / /__/ /__/ _// __ |/ / /_/ / ___/
* \___/____/___/_/ |_/_/|_/\____/_/
*
* Copyright (C) 2016 Fabian Thuering (fabian_thuering@hot... | 25.347826 | 76 | 0.573585 | thfabian |
776821dc1eb910559898126559b27fb056207c36 | 202,797 | cpp | C++ | PochiVM/test_call_cpp_func.cpp | dghosef/taco | c5074c359af51242d76724f97bb5fe7d9b638658 | [
"MIT"
] | null | null | null | PochiVM/test_call_cpp_func.cpp | dghosef/taco | c5074c359af51242d76724f97bb5fe7d9b638658 | [
"MIT"
] | null | null | null | PochiVM/test_call_cpp_func.cpp | dghosef/taco | c5074c359af51242d76724f97bb5fe7d9b638658 | [
"MIT"
] | null | null | null | #include "gtest/gtest.h"
#include "pochivm.h"
#include "test_util_helper.h"
#include "codegen_context.hpp"
using namespace PochiVM;
TEST(SanityCallCppFn, Sanity_1)
{
AutoThreadPochiVMContext apv;
AutoThreadErrorContext arc;
AutoThreadLLVMCodegenContext alc;
thread_pochiVMContext->m_curModule = new A... | 35.085986 | 141 | 0.575521 | dghosef |
776f8bc0138eb89dff3d759bf1a1164fbecb291c | 67 | cpp | C++ | main/application.cpp | briveramelo/particle-iot-mocks | 26ce0f01aba1df3b7cdc6a2c89c1e10899434f4e | [
"MIT"
] | 1 | 2021-01-05T22:09:40.000Z | 2021-01-05T22:09:40.000Z | main/application.cpp | briveramelo/particle-iot-mocks | 26ce0f01aba1df3b7cdc6a2c89c1e10899434f4e | [
"MIT"
] | null | null | null | main/application.cpp | briveramelo/particle-iot-mocks | 26ce0f01aba1df3b7cdc6a2c89c1e10899434f4e | [
"MIT"
] | null | null | null | #include "application.h"
#include "Arduino.h"
#include "Particle.h" | 22.333333 | 24 | 0.746269 | briveramelo |
776fd8846950c03a7637e5b0d9894ef19fdc3a62 | 1,951 | cpp | C++ | cpp/stable_sort.cpp | alexhausen/PoC | f4f8a44c1dded881870d79b1624b7e45ad617346 | [
"MIT"
] | null | null | null | cpp/stable_sort.cpp | alexhausen/PoC | f4f8a44c1dded881870d79b1624b7e45ad617346 | [
"MIT"
] | null | null | null | cpp/stable_sort.cpp | alexhausen/PoC | f4f8a44c1dded881870d79b1624b7e45ad617346 | [
"MIT"
] | null | null | null | #include <algorithm>
#include <iostream>
#include <memory>
#include <vector>
class Component {
public:
Component(int order) : order_(order) {
}
bool operator <(const Component& other) const {
return order_ < other.order_;
}
private:
int order_;
friend std::ostream& operator<<(std::os... | 28.275362 | 124 | 0.620707 | alexhausen |
a55d69f3aa839fdfc4bdac32839180aa2279988c | 1,089 | cpp | C++ | src/sound/music_player.cpp | janok15/TERE | aa73c7f13beff0c49914332f0b7fb585951c659b | [
"MIT"
] | null | null | null | src/sound/music_player.cpp | janok15/TERE | aa73c7f13beff0c49914332f0b7fb585951c659b | [
"MIT"
] | null | null | null | src/sound/music_player.cpp | janok15/TERE | aa73c7f13beff0c49914332f0b7fb585951c659b | [
"MIT"
] | null | null | null | #include <iostream>
#include "music_player.h"
MusicPlayer::MusicPlayer()
: mMusic()
, mFilenames()
, mVolume(100.f)
{
mFilenames[Music::MenuTheme] = "media/music/menu.ogg";
mFilenames[Music::GameTheme] = "media/music/game.ogg";
}
void MusicPlayer::play(Music::ID theme)
{
std::stri... | 20.54717 | 92 | 0.633609 | janok15 |
a55d8a44778f92a3dd34aa1540fb7c6422cd70a6 | 8,577 | cpp | C++ | Engine/SceneImporter.cpp | solidajenjo/CyberPimpEngine | da4fc5d22bc7c52a45794ea73e2bac903d893178 | [
"MIT"
] | null | null | null | Engine/SceneImporter.cpp | solidajenjo/CyberPimpEngine | da4fc5d22bc7c52a45794ea73e2bac903d893178 | [
"MIT"
] | null | null | null | Engine/SceneImporter.cpp | solidajenjo/CyberPimpEngine | da4fc5d22bc7c52a45794ea73e2bac903d893178 | [
"MIT"
] | null | null | null | #include "SceneImporter.h"
#include "Assimp/include/assimp/cimport.h"
#include "Assimp/include/assimp/postprocess.h"
#include "Assimp/include/assimp/scene.h"
#include "Assimp/include/assimp/material.h"
#include "Assimp/include/assimp/mesh.h"
#include "Application.h"
#include "MathGeoLib/include/Math/Quat.h"
#include "G... | 31.766667 | 133 | 0.684738 | solidajenjo |
a55dae0639153cbaa330affc0ee782540544ed64 | 1,391 | hpp | C++ | include/containers/algorithms/minmax_element.hpp | davidstone/bounded-integer | d4f9a88a12174ca8382af60b00c5affd19aa8632 | [
"BSL-1.0"
] | 44 | 2020-10-03T21:37:52.000Z | 2022-03-26T10:08:46.000Z | include/containers/algorithms/minmax_element.hpp | davidstone/bounded-integer | d4f9a88a12174ca8382af60b00c5affd19aa8632 | [
"BSL-1.0"
] | 1 | 2021-01-01T23:22:39.000Z | 2021-01-01T23:22:39.000Z | include/containers/algorithms/minmax_element.hpp | davidstone/bounded-integer | d4f9a88a12174ca8382af60b00c5affd19aa8632 | [
"BSL-1.0"
] | null | null | null | // Copyright David Stone 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)
#pragma once
#include <containers/algorithms/advance.hpp>
#include <containers/begin_end.hpp>
#include <containers/is_range.hpp>
#... | 28.387755 | 80 | 0.732566 | davidstone |
a5615e2ba2388eb520677bd1c5ba42c564fdd2a5 | 17,115 | cpp | C++ | library/lattice/test/src/test_tetengo.lattice.string_input.cpp | tetengo/tetengo | 66e0d03635583c25be4320171f3cc1e7f40a56e6 | [
"MIT"
] | null | null | null | library/lattice/test/src/test_tetengo.lattice.string_input.cpp | tetengo/tetengo | 66e0d03635583c25be4320171f3cc1e7f40a56e6 | [
"MIT"
] | 41 | 2021-06-25T14:20:29.000Z | 2022-01-16T02:50:50.000Z | library/lattice/test/src/test_tetengo.lattice.string_input.cpp | tetengo/tetengo | 66e0d03635583c25be4320171f3cc1e7f40a56e6 | [
"MIT"
] | null | null | null | /*! \file
\brief A string input.
Copyright (C) 2019-2022 kaoru https://www.tetengo.org/
*/
#include <cstddef>
#include <memory>
#include <stdexcept>
#include <string>
#include <boost/operators.hpp>
#include <boost/preprocessor.hpp>
#include <boost/scope_exit.hpp>
#include <boost/test/unit_test... | 30.5625 | 108 | 0.623138 | tetengo |
a567d97aa1f1b95c3750758faf3015a73e45c298 | 3,280 | cpp | C++ | psx/_dump_/38/_dump_c_src_/diabpsx/source/compmap.cpp | maoa3/scalpel | 2e7381b516cded28996d290438acc618d00b2aa7 | [
"Unlicense"
] | 15 | 2018-06-28T01:11:25.000Z | 2021-09-27T15:57:18.000Z | psx/_dump_/38/_dump_c_src_/diabpsx/source/compmap.cpp | maoa3/scalpel | 2e7381b516cded28996d290438acc618d00b2aa7 | [
"Unlicense"
] | 7 | 2018-06-29T04:08:23.000Z | 2019-10-17T13:57:22.000Z | psx/_dump_/38/_dump_c_src_/diabpsx/source/compmap.cpp | maoa3/scalpel | 2e7381b516cded28996d290438acc618d00b2aa7 | [
"Unlicense"
] | 7 | 2018-06-28T01:11:34.000Z | 2020-05-23T09:21:48.000Z | // C:\diabpsx\SOURCE\COMPMAP.CPP
#include "types.h"
// address: 0x80081350
// size: 0x170
// line start: 60
// line end: 63
struct CompLevelMaps *__13CompLevelMapsRC9CompClass(struct CompLevelMaps *this, struct CompClass *NewCompObj) {
}
// address: 0x800813BC
// line start: 71
// line end: 72
void ___13CompLev... | 18.222222 | 111 | 0.695427 | maoa3 |
a56a949359d85c57d82926d461d925371db8e3b7 | 8,567 | cc | C++ | src/developer/memory/monitor/monitor.cc | zhangpf/fuchsia-rs | 903568f28ddf45f09157ead36d61b50322c9cf49 | [
"BSD-3-Clause"
] | null | null | null | src/developer/memory/monitor/monitor.cc | zhangpf/fuchsia-rs | 903568f28ddf45f09157ead36d61b50322c9cf49 | [
"BSD-3-Clause"
] | 5 | 2020-09-06T09:02:06.000Z | 2022-03-02T04:44:22.000Z | src/developer/memory/monitor/monitor.cc | ZVNexus/fuchsia | c5610ad15208208c98693618a79c705af935270c | [
"BSD-3-Clause"
] | null | null | null | // Copyright 2018 The Fuchsia 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/developer/memory/monitor/monitor.h"
#include <errno.h>
#include <fcntl.h>
#include <fuchsia/sysinfo/c/fidl.h>
#include <lib/async/cpp/task.h... | 36.147679 | 99 | 0.665811 | zhangpf |
a574588d367f4ee86b2f57386b0a4171a28702ae | 8,688 | cc | C++ | src/mgl/ScadDebugFile.cc | hugomatic/extrudo | fd9f14d5e7c6869f9e7e7f09787353b655f90f72 | [
"Apache-2.0"
] | null | null | null | src/mgl/ScadDebugFile.cc | hugomatic/extrudo | fd9f14d5e7c6869f9e7e7f09787353b655f90f72 | [
"Apache-2.0"
] | null | null | null | src/mgl/ScadDebugFile.cc | hugomatic/extrudo | fd9f14d5e7c6869f9e7e7f09787353b655f90f72 | [
"Apache-2.0"
] | null | null | null | #include "ScadDebugFile.h"
using namespace std;
using namespace mgl;
using namespace libthing;
#include "log.h"
ScadDebugFile::ScadDebugFile() :filename("")
{}
void ScadDebugFile::open(const char* path)
{
assert(isOpened() == false);
filename = path;
out.open(filename.c_str(), ios::out);
if(!out.good())
{
s... | 25.934328 | 144 | 0.498504 | hugomatic |
a57874f223e0aa097c05504ac4f3dfb548b54c0d | 181 | cpp | C++ | src/ui/commands.cpp | Toxe/video-trimmer | 09f00d7a09eeae8a3910a5ec63bfd966b411aef0 | [
"MIT"
] | null | null | null | src/ui/commands.cpp | Toxe/video-trimmer | 09f00d7a09eeae8a3910a5ec63bfd966b411aef0 | [
"MIT"
] | null | null | null | src/ui/commands.cpp | Toxe/video-trimmer | 09f00d7a09eeae8a3910a5ec63bfd966b411aef0 | [
"MIT"
] | null | null | null | #include "commands.h"
#include "logger/logger.hpp"
Command ToggleHelpCommand(UI& ui)
{
return [&] {
log_debug("ToggleHelpCommand");
ui.toggle_help();
};
}
| 15.083333 | 39 | 0.61326 | Toxe |
a5796ec2dd175185170a74ed94140f0730b7fa20 | 311 | cpp | C++ | Advance/extern.cpp | iarjunphp/CPP-Learning | 4946f861cb3f57da2b0beba07a206fafe261aaf4 | [
"MIT"
] | 77 | 2019-10-28T05:38:51.000Z | 2022-03-15T01:53:48.000Z | Advance/extern.cpp | iarjunphp/CPP-Learning | 4946f861cb3f57da2b0beba07a206fafe261aaf4 | [
"MIT"
] | 3 | 2019-12-26T15:39:55.000Z | 2020-10-29T14:55:50.000Z | Advance/extern.cpp | iarjunphp/CPP-Learning | 4946f861cb3f57da2b0beba07a206fafe261aaf4 | [
"MIT"
] | 24 | 2020-01-08T04:12:52.000Z | 2022-03-12T22:26:07.000Z | #include "extern_header.h"
// since global_x still needs to be defined somewhere,
// we define it (for example) in this source file
#include<iostream>
using namespace std;
int main()
{
// Access global_x defined in header file.
extern int global_x;
cout << "global_int = " << global_x<<endl;
} | 18.294118 | 54 | 0.691318 | iarjunphp |
a57a4e69f7428c80756c01c1fcea39b232780dc8 | 45 | cpp | C++ | qt-creator-opensource-src-4.6.1/tests/unit/unittest/data/symbolscollector_unsaved.cpp | kevinlq/Qt-Creator-Opensource-Study | b8cadff1f33f25a5d4ef33ed93f661b788b1ba0f | [
"MIT"
] | 5 | 2018-12-22T14:49:13.000Z | 2022-01-13T07:21:46.000Z | qt-creator-opensource-src-4.6.1/tests/unit/unittest/data/symbolscollector_unsaved.cpp | kevinlq/Qt-Creator-Opensource-Study | b8cadff1f33f25a5d4ef33ed93f661b788b1ba0f | [
"MIT"
] | null | null | null | qt-creator-opensource-src-4.6.1/tests/unit/unittest/data/symbolscollector_unsaved.cpp | kevinlq/Qt-Creator-Opensource-Study | b8cadff1f33f25a5d4ef33ed93f661b788b1ba0f | [
"MIT"
] | 8 | 2018-07-17T03:55:48.000Z | 2021-12-22T06:37:53.000Z | #include "symbolscollector_generated_file.h"
| 22.5 | 44 | 0.866667 | kevinlq |
a57c9de161b55971887bbb5993d11652fe54a5d9 | 5,790 | cpp | C++ | ios/versioned-react-native/ABI30_0_0/ReactCommon/ABI30_0_0yoga/yoga/ABI30_0_0YGEnums.cpp | ThakurKarthik/expo | ed78ed4f07c950184a59422ebd95645253f44e3d | [
"Apache-2.0",
"MIT"
] | 2 | 2019-08-15T19:24:41.000Z | 2020-09-28T00:44:04.000Z | ios/versioned-react-native/ABI30_0_0/ReactCommon/ABI30_0_0yoga/yoga/ABI30_0_0YGEnums.cpp | ThakurKarthik/expo | ed78ed4f07c950184a59422ebd95645253f44e3d | [
"Apache-2.0",
"MIT"
] | 2 | 2022-02-14T18:22:55.000Z | 2022-02-26T02:17:58.000Z | ios/versioned-react-native/ABI30_0_0/ReactCommon/ABI30_0_0yoga/yoga/ABI30_0_0YGEnums.cpp | ThakurKarthik/expo | ed78ed4f07c950184a59422ebd95645253f44e3d | [
"Apache-2.0",
"MIT"
] | 1 | 2020-03-01T01:28:59.000Z | 2020-03-01T01:28:59.000Z | /**
* Copyright (c) 2014-present, Facebook, Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
#include "ABI30_0_0YGEnums.h"
const char *ABI30_0_0YGAlignToString(const ABI30_0_0YGAlign value){
switch(value){
case ABI30_0_0YG... | 25.506608 | 95 | 0.716926 | ThakurKarthik |
a57de2904f7a1c71d13f316bead9a12a885dc077 | 229 | cpp | C++ | AtCoder/abc142/a/main.cpp | H-Tatsuhiro/Com_Pro-Cpp | fd79f7821a76b11f4a6f83bbb26a034db577a877 | [
"MIT"
] | null | null | null | AtCoder/abc142/a/main.cpp | H-Tatsuhiro/Com_Pro-Cpp | fd79f7821a76b11f4a6f83bbb26a034db577a877 | [
"MIT"
] | 1 | 2021-10-19T08:47:23.000Z | 2022-03-07T05:23:56.000Z | AtCoder/abc142/a/main.cpp | H-Tatsuhiro/Com_Pro-Cpp | fd79f7821a76b11f4a6f83bbb26a034db577a877 | [
"MIT"
] | null | null | null | #include <iostream>
#include <cmath>
#include <algorithm>
#include <vector>
using namespace std;
int main() {
double N, cnt = 0; cin >> N;
for (int i = 1; i <= N; ++i) if (i % 2 != 0) cnt++;
printf("%f\n", cnt / N);
} | 22.9 | 55 | 0.550218 | H-Tatsuhiro |
a57e133d4cf637ace821e9892025b5e4be05ca01 | 3,373 | cpp | C++ | export/windows/obj/src/lime/net/HTTPRequest.cpp | seanbashaw/frozenlight | 47c540d30d63e946ea2dc787b4bb602cc9347d21 | [
"MIT"
] | null | null | null | export/windows/obj/src/lime/net/HTTPRequest.cpp | seanbashaw/frozenlight | 47c540d30d63e946ea2dc787b4bb602cc9347d21 | [
"MIT"
] | null | null | null | export/windows/obj/src/lime/net/HTTPRequest.cpp | seanbashaw/frozenlight | 47c540d30d63e946ea2dc787b4bb602cc9347d21 | [
"MIT"
] | null | null | null | // Generated by Haxe 3.4.7
#include <hxcpp.h>
#ifndef INCLUDED_lime_net_HTTPRequest
#include <lime/net/HTTPRequest.h>
#endif
#ifndef INCLUDED_lime_net__HTTPRequest_AbstractHTTPRequest
#include <lime/net/_HTTPRequest/AbstractHTTPRequest.h>
#endif
#ifndef INCLUDED_lime_net__IHTTPRequest
#include <lime/net/_IHTTPRequest.... | 31.523364 | 161 | 0.774681 | seanbashaw |
a582df727d3dfcffbcd0f360f33a41537f6fbd87 | 2,619 | cpp | C++ | leetcode/grasping_position_selection_2d/src/selection_main.cpp | HuangJingGitHub/PracMakePert_C | 94e570c55d9e391913ccd9c5c72026ab926809b2 | [
"Apache-2.0"
] | null | null | null | leetcode/grasping_position_selection_2d/src/selection_main.cpp | HuangJingGitHub/PracMakePert_C | 94e570c55d9e391913ccd9c5c72026ab926809b2 | [
"Apache-2.0"
] | null | null | null | leetcode/grasping_position_selection_2d/src/selection_main.cpp | HuangJingGitHub/PracMakePert_C | 94e570c55d9e391913ccd9c5c72026ab926809b2 | [
"Apache-2.0"
] | null | null | null | #include <fstream>
#include <ros/ros.h>
#include <image_transport/image_transport.h>
#include <cv_bridge/cv_bridge.h>
#include <opencv2/highgui/highgui.hpp>
#include "visual_perception.h"
class VisualProcessCore {
private:
ros::NodeHandle node_handle_;
image_transport::ImageTransport image_trans_;
image_tr... | 34.012987 | 125 | 0.664758 | HuangJingGitHub |
a5838ec6687d07809c4bbf549fa9a084f549a284 | 810 | cpp | C++ | Editor/gui/InspectorWidget/widget/impl/TransformationComponentWidgetItem.cpp | obivan43/pawnengine | ec092fa855d41705f3fb55fcf1aa5e515d093405 | [
"MIT"
] | null | null | null | Editor/gui/InspectorWidget/widget/impl/TransformationComponentWidgetItem.cpp | obivan43/pawnengine | ec092fa855d41705f3fb55fcf1aa5e515d093405 | [
"MIT"
] | null | null | null | Editor/gui/InspectorWidget/widget/impl/TransformationComponentWidgetItem.cpp | obivan43/pawnengine | ec092fa855d41705f3fb55fcf1aa5e515d093405 | [
"MIT"
] | null | null | null | #include "TransformationComponentWidgetItem.h"
namespace editor::impl {
TransformationComponentWidgetItem::TransformationComponentWidgetItem(QTreeWidget* parent)
: QTreeWidgetItem(parent)
, m_TransformationComponentWidget(nullptr)
, m_WidgetWrapper(nullptr)
, m_Entity(nullptr) {
m_WidgetWrapper = ... | 32.4 | 121 | 0.760494 | obivan43 |
a5880b1cd51dfeb70a18b63271474c87b63e5e0f | 32,476 | cxx | C++ | src/ExtractBoundary.cxx | ameli/extract-boundary | b611c1d063210a82b19984d7b032c11c3cd94d2a | [
"Zlib"
] | 2 | 2018-06-11T11:23:32.000Z | 2019-12-01T10:52:53.000Z | src/ExtractBoundary.cxx | ameli/extract-boundary | b611c1d063210a82b19984d7b032c11c3cd94d2a | [
"Zlib"
] | null | null | null | src/ExtractBoundary.cxx | ameli/extract-boundary | b611c1d063210a82b19984d7b032c11c3cd94d2a | [
"Zlib"
] | null | null | null | /*
* =====================================================================================
*
* Filename: ExtractBoundary.cxx
*
* Description: Extract Boundary curve of 2D data
*
* Version: 1.0
* Created: 12/09/2012 10:07:44 PM
* Revision: none
* Compiler: gcc
*
* ... | 34.808146 | 142 | 0.634592 | ameli |
a58886b327c1a8bdaf68e69cf0d4559eddc8ff89 | 11,869 | hpp | C++ | shelly/stream.hpp | Zaspire/libshelly | 544e09f2d1fe4ef91938295941cb00583ac42926 | [
"MIT"
] | null | null | null | shelly/stream.hpp | Zaspire/libshelly | 544e09f2d1fe4ef91938295941cb00583ac42926 | [
"MIT"
] | null | null | null | shelly/stream.hpp | Zaspire/libshelly | 544e09f2d1fe4ef91938295941cb00583ac42926 | [
"MIT"
] | null | null | null | #ifndef SHELLY_STREAM_HPP
#define SHELLY_STREAM_HPP
#include <set>
#include <vector>
#include <cassert>
#include <algorithm>
#include <functional>
namespace shelly {
namespace stream {
inline namespace v1 {
template<typename Stream, typename In, typename Out, typename Func>
class MapStream;
template<typename Stream,... | 22.143657 | 101 | 0.612857 | Zaspire |
a596ef8415becbc5746f1d97af6dde92723295b4 | 2,772 | hpp | C++ | src/libraries/sampling/sampledSurface/writers/proxy/proxySurfaceWriter.hpp | MrAwesomeRocks/caelus-cml | 55b6dc5ba47d0e95c07412d9446ac72ac11d7fd7 | [
"mpich2"
] | null | null | null | src/libraries/sampling/sampledSurface/writers/proxy/proxySurfaceWriter.hpp | MrAwesomeRocks/caelus-cml | 55b6dc5ba47d0e95c07412d9446ac72ac11d7fd7 | [
"mpich2"
] | null | null | null | src/libraries/sampling/sampledSurface/writers/proxy/proxySurfaceWriter.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... | 26.4 | 79 | 0.494228 | MrAwesomeRocks |
a59714480448a0b391489b10ca3d034c3b60a9ee | 177 | cpp | C++ | src/talkPageParser/grammars/commentEndingGrammar.cpp | lewishamulton/grawitas | e05fc18373af86e5f417be6817bcdbf3a16c272a | [
"MIT"
] | 6 | 2017-12-08T17:09:14.000Z | 2020-05-28T15:42:26.000Z | src/talkPageParser/grammars/commentEndingGrammar.cpp | lewishamulton/grawitas | e05fc18373af86e5f417be6817bcdbf3a16c272a | [
"MIT"
] | 12 | 2017-11-16T09:48:51.000Z | 2022-01-07T16:28:46.000Z | src/talkPageParser/grammars/commentEndingGrammar.cpp | lewishamulton/grawitas | e05fc18373af86e5f417be6817bcdbf3a16c272a | [
"MIT"
] | 7 | 2017-12-08T17:35:58.000Z | 2021-12-16T17:38:46.000Z | #include "commentEndingGrammar_def.hpp"
template Grawitas::CommentEndingGrammar<std::string::const_iterator, boost::spirit::qi::iso8859_1::blank_type>::CommentEndingGrammar();
| 44.25 | 135 | 0.819209 | lewishamulton |
a5984c1ec2ac00c6fc9fcf4ff86dfdcc2f303cd2 | 4,309 | cc | C++ | base/task/sequence_manager/task_order_unittest.cc | qoor/basium | 906addabfe8bd3b17808e8fa88e51bcf55d12473 | [
"BSD-2-Clause"
] | 14,668 | 2015-01-01T01:57:10.000Z | 2022-03-31T23:33:32.000Z | base/task/sequence_manager/task_order_unittest.cc | qoor/basium | 906addabfe8bd3b17808e8fa88e51bcf55d12473 | [
"BSD-2-Clause"
] | 86 | 2015-10-21T13:02:42.000Z | 2022-03-14T07:50:50.000Z | base/task/sequence_manager/task_order_unittest.cc | qoor/basium | 906addabfe8bd3b17808e8fa88e51bcf55d12473 | [
"BSD-2-Clause"
] | 5,941 | 2015-01-02T11:32:21.000Z | 2022-03-31T16:35:46.000Z | // Copyright 2021 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 "base/task/sequence_manager/task_order.h"
#include "base/task/sequence_manager/enqueue_order.h"
#include "base/time/time.h"
#include "testing/gt... | 33.146154 | 77 | 0.696913 | qoor |
a599085877c1c6c86feac1c428f1bac90102b736 | 3,531 | cpp | C++ | src/Player.cpp | ingmarinho/wappie-jump | b869825222997c4ff068e03fe02e2b94ecd5e450 | [
"BSL-1.0"
] | null | null | null | src/Player.cpp | ingmarinho/wappie-jump | b869825222997c4ff068e03fe02e2b94ecd5e450 | [
"BSL-1.0"
] | null | null | null | src/Player.cpp | ingmarinho/wappie-jump | b869825222997c4ff068e03fe02e2b94ecd5e450 | [
"BSL-1.0"
] | null | null | null | #include "Player.hpp"
namespace WappieJump
{
Player::Player(GameDataRef data) : _data(data)
{
_player = _data->characterSprite;
_player.setPosition(SCREEN_WIDTH / 2, SCREEN_HEIGHT - 100.0f);
}
bool Player::hasReachedMaxDistance()
{
return _reachedMaxDistance;
}
sf::Sprite* Player::GetPlayerSprite()
{
... | 17.923858 | 88 | 0.657604 | ingmarinho |
a59fe3020a142e2cead64a15edbf4a8a933a16a1 | 1,330 | cpp | C++ | The Snake/The Snake/Logic.cpp | septimomend/The-Snake | d79399f34e5693bf256c0966b9328a22472e47b9 | [
"MIT"
] | null | null | null | The Snake/The Snake/Logic.cpp | septimomend/The-Snake | d79399f34e5693bf256c0966b9328a22472e47b9 | [
"MIT"
] | null | null | null | The Snake/The Snake/Logic.cpp | septimomend/The-Snake | d79399f34e5693bf256c0966b9328a22472e47b9 | [
"MIT"
] | null | null | null | // Logic.cpp >> defines game logic
#include "stdafx.h"
#include "Global.h"
#include "The Snake Dec.h"
using namespace std;
void Logic()
{
int prevX = tailX[0];
int prevY = tailY[0];
int prev2X, prev2Y;
tailX[0] = x;
tailY[0] = y;
// move snake's some item and remove the last
//
for (int i = 1; i < nTail; i+... | 15.833333 | 51 | 0.542105 | septimomend |
a5a1369f2736012f66742a8db545de7fc2b5aa02 | 9,656 | cpp | C++ | src/register.cpp | Marcin648/ets2-telemetry-udp | e68ee4d2fd65715a5b961e31fe814bb2b5553138 | [
"MIT"
] | null | null | null | src/register.cpp | Marcin648/ets2-telemetry-udp | e68ee4d2fd65715a5b961e31fe814bb2b5553138 | [
"MIT"
] | null | null | null | src/register.cpp | Marcin648/ets2-telemetry-udp | e68ee4d2fd65715a5b961e31fe814bb2b5553138 | [
"MIT"
] | null | null | null | #include "register.hpp"
#include <cstdio>
#include "store.hpp"
#define REG_EVENT(type, callback) (register_for_event(type, callback, NULL))
#define REG_INDEXED_CHANNEL(name, index, type, target) register_for_channel(SCS_TELEMETRY_##name, index, SCS_VALUE_TYPE_##type, SCS_TELEMETRY_CHANNEL_FLAG_each_frame, telemetry_s... | 76.634921 | 198 | 0.831504 | Marcin648 |
a5a273f6bc5fa8ce4c636fdf9e0002ecd30ad38a | 3,219 | cpp | C++ | SuiteLibrary/AboutDlg.cpp | edwig/Kwatta | ce1ca2907608e65ed62d7dbafa9ab1d030caccfe | [
"MIT"
] | 1 | 2021-12-31T17:20:01.000Z | 2021-12-31T17:20:01.000Z | SuiteLibrary/AboutDlg.cpp | edwig/Kwatta | ce1ca2907608e65ed62d7dbafa9ab1d030caccfe | [
"MIT"
] | 10 | 2022-01-14T13:28:32.000Z | 2022-02-13T12:46:34.000Z | SuiteLibrary/AboutDlg.cpp | edwig/Kwatta | ce1ca2907608e65ed62d7dbafa9ab1d030caccfe | [
"MIT"
] | null | null | null | ///////////////////////////////////////////////////////////////////////////////////////////////////////
//
//
// ██╗░░██╗░██╗░░░░░░░██╗░█████╗░████████╗████████╗░█████╗░
// ██║░██╔╝░██║░░██╗░░██║██╔══██╗╚══██╔══╝╚══██╔══╝██╔══██╗
// █████═╝░░╚██╗████╗██╔╝███████║░░░██║░░░░░░██║░░░███████║
// ██╔═██╗░░░████╔═████║░██╔... | 30.367925 | 104 | 0.522523 | edwig |
a5a5171da5795cf7179afc0cfa567031eb3d5268 | 1,181 | cpp | C++ | code/sequential.cpp | V1ccus/Searching | 1ed7a6178b6644c82305b6ec914ca577ec78d940 | [
"MIT"
] | 1 | 2022-03-10T17:04:38.000Z | 2022-03-10T17:04:38.000Z | code/sequential.cpp | V1ccus/Searching | 1ed7a6178b6644c82305b6ec914ca577ec78d940 | [
"MIT"
] | null | null | null | code/sequential.cpp | V1ccus/Searching | 1ed7a6178b6644c82305b6ec914ca577ec78d940 | [
"MIT"
] | null | null | null | #include <iostream>
using namespace std;
int main(){
//...
int n,m,x;
int o=0;
int data[x];
//...
cout
<< "=== [ Sequential Searching ] ===\n"
<< ". . .\n"
<< "Input total data : ";cin>>n;
//...
system("cls");
cout << "( INPUT DATA )\n";
for(x=0;x<n;x... | 23.62 | 66 | 0.288738 | V1ccus |
a5a55d2a4627946ab8a9335f2b84803f937aa386 | 474 | cxx | C++ | cxx/space_cat.cxx | coalpha/coalpha.github.io | 8a620314a5c0bcbe2225d29f733379d181534430 | [
"Apache-2.0"
] | null | null | null | cxx/space_cat.cxx | coalpha/coalpha.github.io | 8a620314a5c0bcbe2225d29f733379d181534430 | [
"Apache-2.0"
] | 1 | 2020-04-12T07:48:18.000Z | 2020-04-12T07:49:29.000Z | cxx/space_cat.cxx | coalpha/coalpha.github.io | 8a620314a5c0bcbe2225d29f733379d181534430 | [
"Apache-2.0"
] | 1 | 2020-09-30T05:27:07.000Z | 2020-09-30T05:27:07.000Z | // clang++ space_cat.cxx -fno-rtti -fno-exceptions -std=c++20 -Os -fuse-ld=lld -flto --for-linker=--strip-all -o space_cat.exe
#include <fast_io.h>
#include <fast_io_device.h>
#include <ranges>
using namespace fast_io;
using namespace std;
int main(int argc, char *argv[]) {
using namespace mnp;
if (argc < 2) {... | 23.7 | 126 | 0.639241 | coalpha |
a5a5da7a338313925b4f92828704b4b73083d60c | 642 | cc | C++ | src/xenia/ui/spirv/spirv_util.cc | cloudhaacker/xenia | 54b211ed1885cdfb9ef6d74e60f7e615aaf56d45 | [
"BSD-3-Clause"
] | 3,100 | 2018-05-03T10:04:39.000Z | 2022-03-31T04:51:53.000Z | src/xenia/ui/spirv/spirv_util.cc | cloudhaacker/xenia | 54b211ed1885cdfb9ef6d74e60f7e615aaf56d45 | [
"BSD-3-Clause"
] | 671 | 2018-05-04T00:51:22.000Z | 2022-03-31T15:20:22.000Z | src/xenia/ui/spirv/spirv_util.cc | cloudhaacker/xenia | 54b211ed1885cdfb9ef6d74e60f7e615aaf56d45 | [
"BSD-3-Clause"
] | 877 | 2018-05-03T21:01:17.000Z | 2022-03-31T19:43:14.000Z | /**
******************************************************************************
* Xenia : Xbox 360 Emulator Research Project *
******************************************************************************
* Copyright 2015 Ben Vanik. All rights reserved. ... | 30.571429 | 79 | 0.364486 | cloudhaacker |
a5a9eb0628eeda6adf7dc0841f8e783ee56da3b2 | 973 | cpp | C++ | src/Source/DxbcContainerHeader.cpp | tgjones/slimshader-cpp | a1833e2eccf32cccfe33aa7613772503eca963ee | [
"MIT"
] | 20 | 2015-03-29T02:14:03.000Z | 2021-11-14T12:27:02.000Z | src/Source/DxbcContainerHeader.cpp | tgjones/slimshader-cpp | a1833e2eccf32cccfe33aa7613772503eca963ee | [
"MIT"
] | null | null | null | src/Source/DxbcContainerHeader.cpp | tgjones/slimshader-cpp | a1833e2eccf32cccfe33aa7613772503eca963ee | [
"MIT"
] | 12 | 2015-05-04T06:39:10.000Z | 2022-02-23T06:48:04.000Z | #include "PCH.h"
#include "DxbcContainerHeader.h"
using namespace SlimShader;
DxbcContainerHeader DxbcContainerHeader::Parse(BytecodeReader& reader)
{
auto fourCc = reader.ReadUInt32();
if (fourCc != 'CBXD')
throw new std::runtime_error("Invalid FourCC");
DxbcContainerHeader result;
result._fourCc = fourCc;
r... | 20.270833 | 70 | 0.758479 | tgjones |
a5a9f60227cfbc5817b7aa2c74a5c5f195f97b35 | 1,257 | cpp | C++ | Source/UnrealStudy/Countdown.cpp | Kijung-Luke-Kim/Unreal-Study | 755f9e051559d5701e28e3ea5ac235c3b8127caf | [
"MIT"
] | null | null | null | Source/UnrealStudy/Countdown.cpp | Kijung-Luke-Kim/Unreal-Study | 755f9e051559d5701e28e3ea5ac235c3b8127caf | [
"MIT"
] | null | null | null | Source/UnrealStudy/Countdown.cpp | Kijung-Luke-Kim/Unreal-Study | 755f9e051559d5701e28e3ea5ac235c3b8127caf | [
"MIT"
] | null | null | null | // Fill out your copyright notice in the Description page of Project Settings.
#include "Countdown.h"
// Sets default values
ACountdown::ACountdown()
{
// Set this actor to call Tick() every frame. You can turn this off to improve performance if you don't need it.
PrimaryActorTick.bCanEverTick = true;
Countdow... | 21.672414 | 115 | 0.755768 | Kijung-Luke-Kim |
a5ac6409b69e83489a2863310e082573c7b88a8c | 1,228 | cpp | C++ | environment_sim/src/environ.cpp | sarvesh0303/gazebo_experiments | f3f83f4aa5ac5fd4eadaedab799e2a5d6670aacc | [
"MIT"
] | null | null | null | environment_sim/src/environ.cpp | sarvesh0303/gazebo_experiments | f3f83f4aa5ac5fd4eadaedab799e2a5d6670aacc | [
"MIT"
] | null | null | null | environment_sim/src/environ.cpp | sarvesh0303/gazebo_experiments | f3f83f4aa5ac5fd4eadaedab799e2a5d6670aacc | [
"MIT"
] | null | null | null | #include "../lib/environ.hh"
Environ::Environ(void) {
signalpath = "templates/signal.sdf";
roadpath = "templates/road.sdf";
greenpath = "templates/green.sdf";
redpath = "templates/red.sdf";
roads = new Road(roadpath);
}
void Environ::insert_road(double x, double y) {
roads->create(x,y);
}
void Environ::remove_... | 25.583333 | 68 | 0.659609 | sarvesh0303 |
a5adb803ee1b80ad69427730898a538c07829726 | 12,458 | cpp | C++ | src/cedar/scheduler.cpp | cedar-lang/cedar | 04b13546d8520dcd7a01983a4a88408348a245f8 | [
"MIT"
] | 3 | 2020-10-02T05:46:42.000Z | 2021-11-14T20:33:24.000Z | src/cedar/scheduler.cpp | nickwanninger/cedar | 04b13546d8520dcd7a01983a4a88408348a245f8 | [
"MIT"
] | 2 | 2019-01-09T07:37:08.000Z | 2019-02-20T21:54:43.000Z | src/cedar/scheduler.cpp | cedar-lang/cedar | 04b13546d8520dcd7a01983a4a88408348a245f8 | [
"MIT"
] | 1 | 2019-01-02T14:12:25.000Z | 2019-01-02T14:12:25.000Z | /*
* MIT License
*
* Copyright (c) 2018 Nick Wanninger
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, m... | 22.6098 | 80 | 0.662466 | cedar-lang |
a5aeb33f4231c5cbee3529ff96663cfdf204a458 | 866 | hpp | C++ | src/Game/Mount.hpp | ananace/LD44 | 472e5134a1f846d9c2244b31fe3753d08963b71e | [
"MIT"
] | null | null | null | src/Game/Mount.hpp | ananace/LD44 | 472e5134a1f846d9c2244b31fe3753d08963b71e | [
"MIT"
] | null | null | null | src/Game/Mount.hpp | ananace/LD44 | 472e5134a1f846d9c2244b31fe3753d08963b71e | [
"MIT"
] | null | null | null | #pragma once
#include "Attachement.hpp"
#include "Hardpoint.hpp"
#include <functional>
#include <deque>
namespace Game
{
class Weapon;
class Mount : public Attachement
{
public:
virtual bool isMount() const override { return true; }
std::size_t getHardpointCount() const;
Hardpoint& getHardpoint(std::s... | 23.405405 | 85 | 0.729792 | ananace |
a5b1d3d4921deaccdef036edcba41be523f71ea5 | 927 | cpp | C++ | Engine/Material.cpp | larso0/Engine | 6078646fd92ea86c737f6769d50be9bd18c6dac8 | [
"MIT"
] | null | null | null | Engine/Material.cpp | larso0/Engine | 6078646fd92ea86c737f6769d50be9bd18c6dac8 | [
"MIT"
] | 1 | 2017-04-04T23:58:04.000Z | 2017-04-04T23:58:04.000Z | Engine/Material.cpp | larso0/Engine | 6078646fd92ea86c737f6769d50be9bd18c6dac8 | [
"MIT"
] | null | null | null | /*
* File: Material.cpp
* Author: larso
*
* Created on 2. januar 2016, 21:18
*/
#include "Material.h"
namespace Engine
{
Material::Material() :
color(1.f, 1.f, 1.f, 1.f),
lightSource(nullptr),
texture(nullptr)
{
}
Material::Material(glm::vec4 color) :
color(color),
lightSource(nullptr),
texture(n... | 13.632353 | 60 | 0.649407 | larso0 |
a5b38bb8354dd4da401e817f28624c212bc2ee19 | 17,025 | cpp | C++ | stochepi/src/parprior.cpp | eeg-lanl/sarscov2-selection | c2087cbaf55de9930736aa6677a57008a2397583 | [
"BSD-3-Clause"
] | null | null | null | stochepi/src/parprior.cpp | eeg-lanl/sarscov2-selection | c2087cbaf55de9930736aa6677a57008a2397583 | [
"BSD-3-Clause"
] | null | null | null | stochepi/src/parprior.cpp | eeg-lanl/sarscov2-selection | c2087cbaf55de9930736aa6677a57008a2397583 | [
"BSD-3-Clause"
] | null | null | null | #include "parprior.hpp"
#include <sstream>
#include <cmath> // fmod, sqrt...
#include <limits> // for infinity
#include "macros.hpp"
/* methods for ParPrior */
ParPrior::ParPrior() :
name(""), elements(1), // use default value defined for ParElt
lboundbool(false), lbound(0.0),
uboundbool(false), ubound(0.0),
ho... | 25.222222 | 103 | 0.64605 | eeg-lanl |
a5ba8f31c1311dc7fb390ba9cfec09bd8c82eb09 | 1,727 | cpp | C++ | grading_students.cpp | power-factory/hackerrank | a0f6c6a40a1eff4f0430fd866061378ebd2b5204 | [
"MIT"
] | null | null | null | grading_students.cpp | power-factory/hackerrank | a0f6c6a40a1eff4f0430fd866061378ebd2b5204 | [
"MIT"
] | null | null | null | grading_students.cpp | power-factory/hackerrank | a0f6c6a40a1eff4f0430fd866061378ebd2b5204 | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
using namespace std;
string ltrim(const string &);
string rtrim(const string &);
/*
* Complete the 'gradingStudents' function below.
*
* The function is expected to return an INTEGER_ARRAY.
* The function accepts INTEGER_ARRAY grades as parameter.
*/
vector<int> gradingStudents(vector<... | 18.178947 | 79 | 0.507238 | power-factory |
a5bbbed5453b696fcbf29fd5403b7bbec100dcd2 | 9,810 | cpp | C++ | EntityComponents/EC_Touchable/EC_Touchable.cpp | zemo/naali | a02ee7a0547c5233579eda85dedb934b61c546ab | [
"Apache-2.0"
] | null | null | null | EntityComponents/EC_Touchable/EC_Touchable.cpp | zemo/naali | a02ee7a0547c5233579eda85dedb934b61c546ab | [
"Apache-2.0"
] | null | null | null | EntityComponents/EC_Touchable/EC_Touchable.cpp | zemo/naali | a02ee7a0547c5233579eda85dedb934b61c546ab | [
"Apache-2.0"
] | 1 | 2021-09-04T12:37:34.000Z | 2021-09-04T12:37:34.000Z | /**
* For conditions of distribution and use, see copyright notice in license.txt
*
* @file EC_Touchable.cpp
* @brief EC_Touchable enables visual effect for scene entity in cases where
* the entity can be considered to have some kind of functionality
* when it is clicked i.e. touched. The... | 30.849057 | 120 | 0.637717 | zemo |
a5bd71f0c77425d4f89651aa34913807939c56e8 | 3,179 | cpp | C++ | mod/assimp/assimp_material.cpp | Lyatus/L | 0b594d722200d5ee0198b5d7b9ee72a5d1e12611 | [
"Unlicense"
] | 45 | 2018-08-24T12:57:38.000Z | 2021-11-12T11:21:49.000Z | mod/assimp/assimp_material.cpp | Lyatus/L | 0b594d722200d5ee0198b5d7b9ee72a5d1e12611 | [
"Unlicense"
] | null | null | null | mod/assimp/assimp_material.cpp | Lyatus/L | 0b594d722200d5ee0198b5d7b9ee72a5d1e12611 | [
"Unlicense"
] | 4 | 2019-09-16T02:48:42.000Z | 2020-07-10T03:50:31.000Z | #include "assimp.h"
using namespace L;
bool assimp_material_loader(ResourceSlot& slot, Material::Intermediate& intermediate) {
if(!assimp_supported_extensions.find(slot.ext)) {
return false;
}
Buffer buffer = slot.read_source_file();
const aiScene* scene = aiImportFileFromMemory((const char*)buffer.data... | 38.301205 | 151 | 0.745517 | Lyatus |
a5c197e890bf5f27315cbc696b2ab5573f605e93 | 2,631 | cc | C++ | mongoose/challenge/src/vmips/range.cc | assert0/hackasat-qualifier-2021 | ffa17fc3c3f167c2a81fd3c12e43af9aacb2e95c | [
"MIT"
] | 75 | 2020-07-20T20:54:00.000Z | 2022-03-09T09:18:37.000Z | mongoose/challenge/src/vmips/range.cc | assert0/hackasat-qualifier-2021 | ffa17fc3c3f167c2a81fd3c12e43af9aacb2e95c | [
"MIT"
] | 3 | 2020-09-13T00:46:49.000Z | 2021-07-06T16:18:22.000Z | mongoose/challenge/src/vmips/range.cc | assert0/hackasat-qualifier-2021 | ffa17fc3c3f167c2a81fd3c12e43af9aacb2e95c | [
"MIT"
] | 14 | 2020-07-22T16:34:51.000Z | 2021-09-13T12:19:59.000Z | /* Mapping ranges, the building blocks of the physical memory system.
Copyright 2001, 2003 Brian R. Gaeke.
This file is part of VMIPS.
VMIPS 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... | 24.820755 | 75 | 0.661345 | assert0 |
a5c5ebdc52898365d8670e63ae5680f39b84dbfc | 21,404 | cpp | C++ | source/icu/source/common/unorm.cpp | racker/omnibus | 7f619cee98d551acaef3aed28c85f1c150d0ed8a | [
"Apache-2.0"
] | 2 | 2015-07-30T09:28:19.000Z | 2016-08-30T12:40:34.000Z | external/icu4c/common/unorm.cpp | webos21/xi | 496d636232183c4cc4ec25ab45f6ee25d5eeaf43 | [
"Apache-2.0"
] | 2 | 2021-04-07T00:18:48.000Z | 2021-04-07T00:20:08.000Z | source/icu/source/common/unorm.cpp | racker/omnibus | 7f619cee98d551acaef3aed28c85f1c150d0ed8a | [
"Apache-2.0"
] | 1 | 2017-10-26T23:20:32.000Z | 2017-10-26T23:20:32.000Z | /*
******************************************************************************
* Copyright (c) 1996-2010, International Business Machines
* Corporation and others. All Rights Reserved.
******************************************************************************
* File unorm.cpp
*
* Created by: Vladimir Weinstein 1... | 34.137161 | 102 | 0.594889 | racker |
a5c76413a775ea7d08b4c4dc79ab8eb3c03f58ef | 214 | cpp | C++ | Chapter 04/q02.cpp | altugbakan/accelerated-cpp-solutions | 0087c12cf853c143a301c44eeedd041a0dc7ecfc | [
"MIT"
] | 4 | 2021-10-29T18:45:48.000Z | 2022-02-08T16:12:45.000Z | Chapter 04/q02.cpp | altugbakan/accelerated-cpp-solutions | 0087c12cf853c143a301c44eeedd041a0dc7ecfc | [
"MIT"
] | null | null | null | Chapter 04/q02.cpp | altugbakan/accelerated-cpp-solutions | 0087c12cf853c143a301c44eeedd041a0dc7ecfc | [
"MIT"
] | 1 | 2021-12-21T21:46:49.000Z | 2021-12-21T21:46:49.000Z | #include <iostream>
#include <iomanip>
using std::cout;
using std::endl;
using std::setw;
int main()
{
for (int i = 1; i <= 100; i++)
cout << setw(3) << i << setw(6) << i * i << endl;
return 0;
} | 15.285714 | 57 | 0.528037 | altugbakan |
a5caed45284fa8671f5b2c1a1b0b5ff2ca2fc0ce | 985 | cpp | C++ | code/source/audio/audioreceiver.cpp | crafn/clover | 586acdbcdb34c3550858af125e9bb4a6300343fe | [
"MIT"
] | 12 | 2015-01-12T00:19:20.000Z | 2021-08-05T10:47:20.000Z | code/source/audio/audioreceiver.cpp | crafn/clover | 586acdbcdb34c3550858af125e9bb4a6300343fe | [
"MIT"
] | null | null | null | code/source/audio/audioreceiver.cpp | crafn/clover | 586acdbcdb34c3550858af125e9bb4a6300343fe | [
"MIT"
] | null | null | null | #include "audioreceiver.hpp"
#include "global/event.hpp"
namespace clover {
namespace audio {
AudioReceiver::AudioReceiver()
: created(false)
, lowpass(1.0){
}
AudioReceiver::AudioReceiver(AudioReceiver&& other)
: created(other.created)
, position(std::move(other.position))
, lowpass(other.lowpass){
}
Au... | 18.240741 | 56 | 0.711675 | crafn |
a5cbea2efd96f41229ef523eddd1b3186ba8206f | 1,032 | hpp | C++ | apps/router/engine/assfire/router/engine/EngineDistanceMatrixFactory.hpp | Eaglegor/assfire-suite | 6c8140e848932b6ce22b6addd07a93abba652c01 | [
"MIT"
] | null | null | null | apps/router/engine/assfire/router/engine/EngineDistanceMatrixFactory.hpp | Eaglegor/assfire-suite | 6c8140e848932b6ce22b6addd07a93abba652c01 | [
"MIT"
] | null | null | null | apps/router/engine/assfire/router/engine/EngineDistanceMatrixFactory.hpp | Eaglegor/assfire-suite | 6c8140e848932b6ce22b6addd07a93abba652c01 | [
"MIT"
] | null | null | null | #pragma once
#include "assfire/router/api/RouterEngineType.hpp"
#include "assfire/router/api/DistanceMatrixCachingPolicy.hpp"
#include "assfire/router/api/DistanceMatrixErrorPolicy.hpp"
#include "assfire/router/api/RoutingProfile.hpp"
#include "assfire/router/api/DistanceMatrix.hpp"
#include "assfire/router/api/RouteP... | 41.28 | 195 | 0.773256 | Eaglegor |
a5d2e4c8682ac34ddd16ff3dc8b2f6ce920e5783 | 22,359 | cpp | C++ | sdl1/rockbot/editor/conversor/main.cpp | pdpdds/sdldualsystem | d74ea84cbea705fef62868ba8c693bf7d2555636 | [
"BSD-2-Clause"
] | null | null | null | sdl1/rockbot/editor/conversor/main.cpp | pdpdds/sdldualsystem | d74ea84cbea705fef62868ba8c693bf7d2555636 | [
"BSD-2-Clause"
] | null | null | null | sdl1/rockbot/editor/conversor/main.cpp | pdpdds/sdldualsystem | d74ea84cbea705fef62868ba8c693bf7d2555636 | [
"BSD-2-Clause"
] | null | null | null | #include <string>
#include <fstream>
#include <iostream>
#include <sstream>
#include <iostream>
#include <map>
#include "defines.h"
#include "file/format/st_hitPoints.h"
#include "../../file/format/st_common.h"
#include "fio_v1.h"
#include "file/file_io.h"
#include "file/fio_strings.h"
//#undef main
std::string FIL... | 43.415534 | 124 | 0.65562 | pdpdds |
77776bafa6cffa8f633bd3ea17301651d423b3c1 | 3,711 | cpp | C++ | tests/LFOT.cpp | michaelwillis/sfizz | 0461f6e5e288da71aeccf7b7dfd71302bf0ba175 | [
"BSD-2-Clause"
] | 281 | 2019-06-06T05:58:59.000Z | 2022-03-06T12:20:09.000Z | tests/LFOT.cpp | michaelwillis/sfizz | 0461f6e5e288da71aeccf7b7dfd71302bf0ba175 | [
"BSD-2-Clause"
] | 590 | 2019-09-22T00:26:10.000Z | 2022-03-31T19:21:58.000Z | tests/LFOT.cpp | michaelwillis/sfizz | 0461f6e5e288da71aeccf7b7dfd71302bf0ba175 | [
"BSD-2-Clause"
] | 44 | 2019-10-08T08:24:20.000Z | 2022-02-26T04:21:44.000Z | // SPDX-License-Identifier: BSD-2-Clause
// This code is part of the sfizz library and is licensed under a BSD 2-clause
// license. You should have receive a LICENSE.md file along with the code.
// If not, contact the sfizz maintainers at https://github.com/sfztools/sfizz
#include "DataHelpers.h"
#include "sfizz/Synt... | 29.220472 | 100 | 0.619779 | michaelwillis |
777d152e47e93a3ff8d7c67bc456295238f79902 | 3,267 | cpp | C++ | qt-creator-opensource-src-4.6.1/src/plugins/debugger/snapshotwindow.cpp | kevinlq/Qt-Creator-Opensource-Study | b8cadff1f33f25a5d4ef33ed93f661b788b1ba0f | [
"MIT"
] | 5 | 2018-12-22T14:49:13.000Z | 2022-01-13T07:21:46.000Z | qt-creator-opensource-src-4.6.1/src/plugins/debugger/snapshotwindow.cpp | kevinlq/Qt-Creator-Opensource-Study | b8cadff1f33f25a5d4ef33ed93f661b788b1ba0f | [
"MIT"
] | null | null | null | qt-creator-opensource-src-4.6.1/src/plugins/debugger/snapshotwindow.cpp | kevinlq/Qt-Creator-Opensource-Study | b8cadff1f33f25a5d4ef33ed93f661b788b1ba0f | [
"MIT"
] | 8 | 2018-07-17T03:55:48.000Z | 2021-12-22T06:37:53.000Z | /****************************************************************************
**
** Copyright (C) 2016 The Qt Company Ltd.
** Contact: https://www.qt.io/licensing/
**
** This file is part of Qt Creator.
**
** Commercial License Usage
** Licensees holding valid commercial Qt licenses may use this file in
** accordance w... | 29.972477 | 77 | 0.645546 | kevinlq |
7780fac57c339cfe9c2e9c1f0b3dc94ee2e3c2d8 | 5,515 | cpp | C++ | Source/Framework/Utility/Utility/TeUUID.cpp | GameDevery/TweedeFrameworkRedux | 69a28fe171db33d00066b97b9b6bf89f6ef3e3a4 | [
"MIT"
] | 57 | 2019-09-02T01:10:37.000Z | 2022-01-11T06:28:10.000Z | Source/Framework/Utility/Utility/TeUUID.cpp | GameDevery/TweedeFrameworkRedux | 69a28fe171db33d00066b97b9b6bf89f6ef3e3a4 | [
"MIT"
] | null | null | null | Source/Framework/Utility/Utility/TeUUID.cpp | GameDevery/TweedeFrameworkRedux | 69a28fe171db33d00066b97b9b6bf89f6ef3e3a4 | [
"MIT"
] | 6 | 2020-02-29T17:19:30.000Z | 2021-10-30T04:29:22.000Z | #include "Utility/TeUUID.h"
#include "Utility/TePlatformUtility.h"
namespace
{
constexpr const char HEX_TO_LITERAL[16] =
{ '0', '1', '2', '3', '4', '5', '6', '7', '8', '9', 'a', 'b', 'c', 'd', 'e', 'f' };
constexpr const te::UINT8 LITERAL_TO_HEX[256] =
{ 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF,... | 32.827381 | 118 | 0.470172 | GameDevery |
77834ee85917247f59263921767636f4e37bd970 | 969 | cpp | C++ | 1267.cpp | BYOUINZAKA/LeetCodeNotes | 48e1b4522c1f769eeec4944cfbd57abf1281d09a | [
"MIT"
] | null | null | null | 1267.cpp | BYOUINZAKA/LeetCodeNotes | 48e1b4522c1f769eeec4944cfbd57abf1281d09a | [
"MIT"
] | null | null | null | 1267.cpp | BYOUINZAKA/LeetCodeNotes | 48e1b4522c1f769eeec4944cfbd57abf1281d09a | [
"MIT"
] | null | null | null | /*
* @Author: Hata
* @Date: 2020-05-25 16:15:00
* @LastEditors: Hata
* @LastEditTime: 2020-05-25 16:21:52
* @FilePath: \LeetCode\1267.cpp
* @Description: https://leetcode-cn.com/problems/count-servers-that-communicate/
*/
#include <bits/stdc++.h>
class Solution
{
public:
int countServers(std::vector<std::ve... | 24.225 | 81 | 0.394221 | BYOUINZAKA |
778784377152492dc838f6d9917deac964f00eac | 1,565 | cpp | C++ | src/TestUtils/TestUtilsTest.cpp | tufeigunchu/orbit | 407354cf7c9159ff7e3177c603a6850b95509e3a | [
"BSD-2-Clause"
] | 1,847 | 2020-03-24T19:01:42.000Z | 2022-03-31T13:18:57.000Z | src/TestUtils/TestUtilsTest.cpp | tufeigunchu/orbit | 407354cf7c9159ff7e3177c603a6850b95509e3a | [
"BSD-2-Clause"
] | 1,100 | 2020-03-24T19:41:13.000Z | 2022-03-31T14:27:09.000Z | src/TestUtils/TestUtilsTest.cpp | tufeigunchu/orbit | 407354cf7c9159ff7e3177c603a6850b95509e3a | [
"BSD-2-Clause"
] | 228 | 2020-03-25T05:32:08.000Z | 2022-03-31T11:27:39.000Z | // 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 <gmock/gmock.h>
#include <gtest/gtest.h>
#include "OrbitBase/Logging.h"
#include "TestUtils/TestUtils.h"
static ErrorMessageOr<std::string> Re... | 36.395349 | 94 | 0.722045 | tufeigunchu |
778acff0f19efe8797e3f91e0cd0fd7707558ddc | 1,105 | cpp | C++ | Data Structure/Array Or Vector/Right Rotate An Array By K Elements/solutionByPooja.cpp | Mdanish777/Programmers-Community | b5ca9582fc1cd4337baa7077ff62130a1052583f | [
"MIT"
] | 261 | 2019-09-30T19:47:29.000Z | 2022-03-29T18:20:07.000Z | Data Structure/Array Or Vector/Right Rotate An Array By K Elements/solutionByPooja.cpp | Mdanish777/Programmers-Community | b5ca9582fc1cd4337baa7077ff62130a1052583f | [
"MIT"
] | 647 | 2019-10-01T16:51:29.000Z | 2021-12-16T20:39:44.000Z | Data Structure/Array Or Vector/Right Rotate An Array By K Elements/solutionByPooja.cpp | Mdanish777/Programmers-Community | b5ca9582fc1cd4337baa7077ff62130a1052583f | [
"MIT"
] | 383 | 2019-09-30T19:32:07.000Z | 2022-03-24T16:18:26.000Z | /*
An Array is given and you need to right rotate the Array with K Elements.
*/
#include <iostream>
using namespace std;
int* right_rotate(int* arr, int n, int k)
{
int i, j = 0;
int arr1[n - k];
int arr2[k];
for (i = 0; i < n - k; i++) //first two four loop divide the array into two pieces such t... | 25.113636 | 129 | 0.522172 | Mdanish777 |
778b83bdcaeecf82f1f747ec4f97fe2d397713d6 | 1,993 | cpp | C++ | Numbers/multiply_large_numbers_naive/multiply_large_numbers(naive).cpp | nateshmbhat/DataStructures_and_Algorithms | b1a870223269d86d4ca0094c314226054a275ac4 | [
"MIT"
] | null | null | null | Numbers/multiply_large_numbers_naive/multiply_large_numbers(naive).cpp | nateshmbhat/DataStructures_and_Algorithms | b1a870223269d86d4ca0094c314226054a275ac4 | [
"MIT"
] | null | null | null | Numbers/multiply_large_numbers_naive/multiply_large_numbers(naive).cpp | nateshmbhat/DataStructures_and_Algorithms | b1a870223269d86d4ca0094c314226054a275ac4 | [
"MIT"
] | null | null | null | #include<bits/stdc++.h>
using namespace std ;
string addstrings(string , string ) ;
// #define i(x) (x-'0')
string multiply(string &A , string& B)
{
int dA = A.length() , dB = B.length() , carry = 0 ;
vector<string> products;
for(int i =A.length()-1 ; i>=0; i--)
{
string product = "... | 20.131313 | 72 | 0.442047 | nateshmbhat |
778e88fb99be6de595b832ff5ded79063eef0573 | 450 | hpp | C++ | include/cslibs_indexed_storage/backend/array/array_options.hpp | doge-of-the-day/cslibs_indexed_storage | 044a5e60cc1a1c0ac41631b1e6c0a79db7aa4c84 | [
"BSD-3-Clause"
] | null | null | null | include/cslibs_indexed_storage/backend/array/array_options.hpp | doge-of-the-day/cslibs_indexed_storage | 044a5e60cc1a1c0ac41631b1e6c0a79db7aa4c84 | [
"BSD-3-Clause"
] | null | null | null | include/cslibs_indexed_storage/backend/array/array_options.hpp | doge-of-the-day/cslibs_indexed_storage | 044a5e60cc1a1c0ac41631b1e6c0a79db7aa4c84 | [
"BSD-3-Clause"
] | 2 | 2019-08-05T07:13:19.000Z | 2021-02-22T16:39:11.000Z | #pragma once
#include <cslibs_indexed_storage/utility/options.hpp>
namespace cslibs_indexed_storage {
namespace option {
namespace tags
{
struct array_size {};
struct array_offset {};
}
template<std::size_t... sizes>
struct array_size : define_value_option<tags::array_size, std::size_t, sizes...> {};
template<type... | 19.565217 | 87 | 0.757778 | doge-of-the-day |
778f96d165cc63c8ffabcb660677e280a20fbda6 | 499 | cpp | C++ | smallest.cpp | hskhakh81/cpp | f43f10e8b4e505e3a07a87e4e717b97c72788a8f | [
"Apache-2.0"
] | null | null | null | smallest.cpp | hskhakh81/cpp | f43f10e8b4e505e3a07a87e4e717b97c72788a8f | [
"Apache-2.0"
] | null | null | null | smallest.cpp | hskhakh81/cpp | f43f10e8b4e505e3a07a87e4e717b97c72788a8f | [
"Apache-2.0"
] | null | null | null | #include <iostream>
using namespace std;
int main() {
int a,b,c;
cout << "Enter three numbers: ";
cin >> a >> b >> c;
cout << "Smallest number is ";
if (a < b ) {
//a is less than b
if (a < c) {
//a is less than both b and c
cout << a << endl;
} ... | 15.59375 | 42 | 0.396794 | hskhakh81 |