blob_id stringlengths 40 40 | content_id stringlengths 40 40 | repo_name stringlengths 5 114 | path stringlengths 5 318 | language stringclasses 5
values | extension stringclasses 12
values | length_bytes int64 200 200k | license_type stringclasses 2
values | content stringlengths 143 200k |
|---|---|---|---|---|---|---|---|---|
0fb51cd650a860935126ff4a44ec409223cd90f7 | 56d4f85e41878b730c0f2a1c117c81792663f99a | nikos72344/Picar | /PiCalcCore/errors_list.cpp | C++ | cpp | 15,669 | no_license | #include <stdio.h>
#include <ctype.h>
#include "core.h"
#include "add_funcs.h"
//#include "main.h"
#define IS_ERROR if(error!=0) return error
void error_list_en(unsigned int* error) {
switch (*error) {
case 1: fprintf(stdout, "not enough memory"); break;
case 2: fprintf(stdout, "not enough memory"); br... |
657bcff2cb57270efa9860f1dfc391ecddbc411f | f85ae36aade1267867b7c93b581176385d116008 | atrin-hojjat/CompetetiveProgramingCodes | /CF/CONTEST_609D1/A.cpp | C++ | cpp | 574 | no_license | #ifdef Atrin
#include <iostream>
#include <vector>
#include <map>
#include <set>
#else
#include <bits/stdc++.h>
#endif
using namespace std;
int main() {
int n, k; string str;
cin >> n >> k >> str;
string str2 = "";
for(int i = 0; i < n; i++)
str2 += str[i % k];
if(str2 >= str) {
cout << n <... |
79e59c79372c78158a414935cfbc56ad00d975d3 | 4c0aa702b7c4b3afcf85f0c9fb01dd9f8b08f1d5 | SDxKeeper/dldt | /ngraph/core/include/ngraph/op/not_equal.hpp | C++ | hpp | 338 | permissive | // Copyright (C) 2018-2021 Intel Corporation
// SPDX-License-Identifier: Apache-2.0
//
#pragma once
#include "ngraph/op/util/binary_elementwise_comparison.hpp"
#include "openvino/op/not_equal.hpp"
namespace ngraph {
namespace op {
namespace v1 {
using ov::op::v1::NotEqual;
} // namespace v1
} // namespace op
} //... |
347b9a2efe22e40c91a26a35d7508986d7ef6bfc | 568ba1e5b989780c4ba1a71871ac957b5a6cd54f | nearc/renkou | /Scheme/transfromPara.hpp | C++ | hpp | 481 | no_license | #ifndef TRANSFROMPARA_HPP
#define TRANSFROMPARA_HPP
# include "Para.hpp"
# include "SchemeParameter.hpp"
# include "AbstractScheme.hpp"
# include <list>
# include <memory>
namespace scheme{
/**
* @brief map the paraSet to SchemeParamter (actually the default parameter)
* @param paraSet
* @return th... |
ca974077cad095d516fdaf25dbc20a829fb6a5d7 | cb80b67e772dc74d5a3d75eddca7aa575a4d2fd7 | zeldaret/botw | /src/Game/AI/Action/actionExplodeReserved.cpp | C++ | cpp | 618 | no_license | #include "Game/AI/Action/actionExplodeReserved.h"
namespace uking::action {
ExplodeReserved::ExplodeReserved(const InitArg& arg) : StopASPlay(arg) {}
ExplodeReserved::~ExplodeReserved() = default;
bool ExplodeReserved::init_(sead::Heap* heap) {
return StopASPlay::init_(heap);
}
void ExplodeReserved::enter_(ksy... |
395cd8c0b2536753334b0114adf76d01570f32d4 | 2009adfa1944bad92788c43c84d042fa578b48ec | wuzhenyusjtu/SkyboxImage | /src/shaderSetup.cpp | C++ | cpp | 9,637 | no_license |
#include <stdio.h>
#include <stdlib.h>
#include <errno.h>
#include <string.h>
#include <fcntl.h>
#include <math.h>
//#include <unistd.h>
#ifdef __APPLE__
#include <GL/glew.h>
#include <GLUT/glut.h>
#include <OpenGL/gl.h>
#include <OpenGL/glext.h>
#include <unistd.h>
#else
#include <GL/glew.h>
#include <GL/glut.h>
#... |
4521f329b4b5cd4b54cbc22a947e4014ca32da27 | b9e0e97fb4eb3340afe4e584f6a50b2945516fed | xrisk/2018 | /Codechef/CATSRATS.cpp | C++ | cpp | 4,227 | no_license | // rishav.io
#include <algorithm>
#include <climits>
#include <cmath>
#include <iostream>
#include <map>
#include <queue>
#include <stack>
#include <string>
#include <vector>
using namespace std;
typedef long long LL;
int main() {
#define int long long
ios_base::sync_with_stdio(false);
cin.tie(0);
#ifdef __AP... |
b47ccf84ddf0913e2faae39b3eac71799d7acd19 | dbde719b31c25af0a5b1399f5dfbe423dbcb24c0 | roman-dzieciol/wxUnrilities_XML | /wxUnrilities/src/data/uxItem.cpp | C++ | cpp | 6,776 | no_license | // ============================================================================
// Unrilities :: Cross-platform toolkit for Unreal Engine packages
// ============================================================================
// Copyright (C) 2005 Roman Dzieciol <neai at o2.pl>
//
// This library is free software... |
d73e55310b23d163d142a1e6216cb89eab84538d | 28767a8c2b70b0bc785233ca59a5eca7f35e3f6b | Bifido/IAProgramming | /FMSSteering/src/Steering/Wander.cpp | C++ | cpp | 1,295 | no_license | #include "Steering\Wander.h"
#include "Agent.h"
#include <math.h>
#include <iostream>
void Wander::Update(float dt)
{
sf::Vector2<float> wanderRes = CalculateWander();
wanderRes = wanderRes + m_parent->GetVelocity();
if (Vector2LenghtSq(wanderRes) > m_parent->GetMaxSpeed() * m_parent->GetMaxSpeed())
{
wanderRes... |
40d9e73a6c76fddb00a986f0156a93f3450ea6b1 | 7a5b8af754ceeb7cdd82fca2def3d918e97fe638 | MedicaicloudLink/Rosetta | /main/source/src/core/scoring/sasa/SasaCalc.cc | C++ | cc | 13,649 | no_license | // -*- mode:c++;tab-width:2;indent-tabs-mode:t;show-trailing-whitespace:t;rm-trailing-spaces:t -*-
// vi: set ts=2 noet:
//
// (c) Copyright Rosetta Commons Member Institutions.
// (c) This file is part of the Rosetta software suite and is made available under license.
// (c) The Rosetta software is developed by the co... |
da072173d9aecf6da4ae80984a52b2acf71e52aa | c1068dab4e7f625ac69ed2b1f51330eeb27e3cb3 | c3358/gecko-dev-comments-removed | /gfx/skia/trunk/src/effects/SkPaintFlagsDrawFilter.cpp | C++ | cpp | 468 | permissive |
#include "SkPaintFlagsDrawFilter.h"
#include "SkPaint.h"
SkPaintFlagsDrawFilter::SkPaintFlagsDrawFilter(uint32_t clearFlags,
uint32_t setFlags) {
fClearFlags = SkToU16(clearFlags & SkPaint::kAllFlags);
fSetFlags = SkToU16(setFlags & SkPaint::kAllFlags);
}
... |
2c2133fe0311fbf29b03e69c638174789394a1b2 | 13163f7940c07b620b28c54d5b421b16f1d09548 | grikukan/stress-test | /reference.cpp | C++ | cpp | 543 | no_license | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef long double ld;
int a[100000];
int main()
{
#ifdef LOCAL
freopen("input.txt", "r", stdin);
#endif
int n;
cin >> n;
for (int i = 0; i < n; i++) {
cin >> a[i];
}
ll res = 0[a];
int resl = 1, resr = 1;
for (int i = 0; i < n; i++) {
fo... |
5e347548f839a7f86116b6472083aa5c5decacd3 | a63041ef6d4c8ef9a3daf23eb2987a2956907f39 | AcademyOfInteractiveEntertainment/AIEYear1Samples | /AI_Wander/Agent.cpp | C++ | cpp | 1,192 | no_license | #include "Agent.h"
#include "Behaviour.h"
Agent::Agent()
{
}
Agent::~Agent()
{
}
Vector2 Agent::Truncate(Vector2 v, float max)
{
float i = max / Vector2Length(v);
i = i < 1.0 ? i : 1.0;
return Vector2Scale(v, i);
}
// Update the agent and its behaviours
void Agent::Update(float deltaTime)
{
// Force is equal ... |
245f72d9c181c832887be650b775f3f363fb2637 | 674bd4a1f81a90184b2a8ac08881ff0ef7bca8ca | morimoto/renesas-android-hardware-renesas-hal-hwcomposer | /vsyncworker.cpp | C++ | cpp | 4,930 | no_license | /*
* Copyright (C) 2015 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by app... |
9717aed08f97d47229c4e87081aa16692cbc67be | f894d9c61f4829d660b21f33bfe2cc64dff11a52 | superowner/NinjaParty | /Test/Tests/Facebook.hpp | C++ | hpp | 1,202 | permissive | #include <functional>
#include <memory>
#include <NinjaParty/FacebookManager.hpp>
#include <NinjaParty/Game.hpp>
namespace Tests
{
class TestGame : public NinjaParty::Game
{
public:
TestGame(int screenWidth, int screenHeight)
: NinjaParty::Game(screenWidth, screenHeight)
{
}
... |
917a66adf86afb07ad63cc310d2ba6a7a6f17072 | 91adafde703eab0c87db145c7d7a377097ef1652 | dbermond/intel-graphics-compiler | /IGC/AdaptorOCL/OCL/sp/zebin_builder.cpp | C++ | cpp | 35,890 | permissive | /*========================== begin_copyright_notice ============================
Copyright (C) 2020-2021 Intel Corporation
SPDX-License-Identifier: MIT
============================= end_copyright_notice ===========================*/
#include "zebin_builder.hpp"
#include "../../../Compiler/CodeGenPublic.h"
#includ... |
73cb3b4f7625c1539537971b5bb3d0c7e6070913 | 5d35d5166715cfefdb490e40cb164d3ee7c235e3 | jeremyimmanuel/leetcode-sols | /234-Palindrome-Linked-List/234.cpp | C++ | cpp | 609 | no_license | #include <iostream>
#include <vector>
using namespace std;
struct ListNode {
int val;
ListNode *next;
ListNode(int x) : val(x), next(nullptr) {};
};
bool isPalindrome(ListNode* head) {
ListNode* curr = head;
vector<int> arr = vector<int>();
while (curr != nullptr) {
arr.push_bac... |
6c297d05ee1e5b8c8f06ceadf6422fae479d3525 | c12f103f7d4a5d58c65cd4763481f9e89b7a5d53 | zlr3538/Multiport_download | /efusewriter/src/EFuseReader.cpp | C++ | cpp | 6,323 | no_license | #include "efusewriter/inc/EFuseReader.h"
//==============*********Next Block is for class TEFuseWriter***********======================
__fastcall TEFuseReader::TEFuseReader(
bool CreateSuspended,
HANDLE hMsgHandle,
COM_PORT_SETTING com_port_setting,
S_DN_PARAM_T dn_param
):TBOOT1(CreateSuspended,hMsgHandle,com_por... |
8814c2475c6c84f36528934db73f14e322130121 | da1bcfb005a875b527392152a3107d38fbfdef7f | the-locksmith/fuchsia | /peridot/lib/ledger_client/ledger_client.cc | C++ | cc | 14,554 | permissive | // Copyright 2017 The Fuchsia Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LtICENSE file.
#include "peridot/lib/ledger_client/ledger_client.h"
#include <algorithm>
#include <lib/fsl/vmo/strings.h>
#include <lib/fxl/functional/make_copyable.h>... |
11a3ef6ab5478e79175c6d8cb6b88747ac8982cb | c0999a76fa1b39dff51d8f6f23798559f57da401 | wfjcmcb/incubator-doris | /be/test/olap/skiplist_test.cpp | C++ | cpp | 13,096 | permissive | // Licensed to the Apache Software Foundation (ASF) under one
// or more contributor license agreements. See the NOTICE file
// distributed with this work for additional information
// regarding copyright ownership. The ASF licenses this file
// to you under the Apache License, Version 2.0 (the
// "License"); you may... |
e595f2b99c1b2952f4199affa86221a6cd8c3bce | dda06b7afc27c77fd9af4fe2f0f1147f98cba503 | bystc/SomeExercisesAboutCpp | /screen类.cpp | C++ | cpp | 1,697 | no_license | #ifndef CP5_ex7_32_h
#define CP5_ex7_32_h
#include <vector>
#include <string>
#include <iostream>
class Screen;
class Window_mgr {
public:
using ScreenIndex = std::vector<Screen>::size_type;
inline void clear(ScreenIndex);
private:
std::vector<Screen> screens;
};
class Screen {
fri... |
188b127e67c01e15e86a1f001ff8ad40e1bd8722 | 4c9d122fed0011cb003228a3901aed5453c6b8c0 | stedsome/cel-cpp | /eval/eval/unknowns_utility.cc | C++ | cc | 3,249 | permissive | #include "eval/eval/unknowns_utility.h"
#include "absl/status/status.h"
#include "eval/public/cel_value.h"
#include "eval/public/unknown_attribute_set.h"
#include "eval/public/unknown_set.h"
#include "base/statusor.h"
namespace google {
namespace api {
namespace expr {
namespace runtime {
using google::protobuf::Are... |
a3f40211bfaa873ed3592a11554588b0f127dc62 | 1d72c54698d4d95a1e423975ab66a600722cb84e | p-ameline/Episodus | /indy/C4/IdUserAccounts.hpp | C++ | hpp | 4,834 | no_license | // Borland C++ Builder
// Copyright (c) 1995, 1999 by Borland International
// All rights reserved
// (DO NOT EDIT: machine generated header) 'IdUserAccounts.pas' rev: 4.00
#ifndef IdUserAccountsHPP
#define IdUserAccountsHPP
#pragma delphiheader begin
#pragma option push -w-
#include <SysUtils.hpp> // Pascal unit
#i... |
323406596963d669bc64b5dd18dd0d7819efe0ba | d13be03750efcb9c72fb2dd4e90ffccb1e44b6b7 | CoderConspiracy/TetrisLearn | /TetrisLearn/TetrisLearn/IBoardScore.hpp | C++ | hpp | 511 | no_license | #pragma once
class IBoardScore
{
public:
virtual ~IBoardScore();
void addScore(size_t lineCleared);
size_t simulateScore(size_t lineCleared, size_t level) const;
size_t getScore() const;
size_t getLevel() const;
void reset();
private:
virtual void addScore_custom(size_t lineCleared) = 0;
virtual size_t si... |
92c951d0b67c4455fd1029e55020808cbe8d4932 | ba53f23ba6937104d112bcebb8b6ef8c2b1d1aff | mkuhn/blast-matrix | /src/connect/ncbi_namedpipe_connector.cpp | C++ | cpp | 6,899 | no_license | /* $Id: ncbi_namedpipe_connector.cpp 207875 2010-10-12 13:47:45Z lavr $
* ===========================================================================
*
* PUBLIC DOMAIN NOTICE
* National Center for Biotechnology Information
*
* This software/database is a "United States Go... |
801acc4db9f5461576e72dad4de1ce7cace3b94a | 4afdf156072e053417d95a5ebca0bef6f46e5c6a | drvain/WLED | /wled00/wled.cpp | C++ | cpp | 22,740 | permissive | #define WLED_DEFINE_GLOBAL_VARS //only in one source file, wled.cpp!
#include "wled.h"
#include "wled_ethernet.h"
#include <Arduino.h>
#if defined(ARDUINO_ARCH_ESP32) && defined(WLED_DISABLE_BROWNOUT_DET)
#include "soc/soc.h"
#include "soc/rtc_cntl_reg.h"
#endif
/*
* Main WLED class implementation. Mostly initializa... |
0e2f393d97924262471ff6562fd20368a6b365ca | 5d422fb252c3f8b37f7b7936f09aee0d0a275766 | chaoso/cuml | /cpp/src/kmeans/kmeans.hpp | C++ | hpp | 8,112 | permissive | /*
* Copyright (c) 2019, NVIDIA 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://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law ... |
f3494686df7c828a59cfc7dc9f694cd81181cdf6 | 862ce96392552546c13383d02d3f00d439cc6ac3 | isac322/SCPC | /SCPC/practice_3.cpp | C++ | cpp | 606 | no_license | #include <cstdio>
#include <algorithm>
#include <queue>
#include <vector>
#include <functional>
using namespace std;
int main() {
int t;
scanf("%d", &t);
priority_queue<int, vector<int>, greater<int> > que;
for (int c = 1; c <= t; c++) {
int n, k, q;
scanf("%d%d", &n, &k);
for (int i = 0; i < k; i++) {
... |
f095d59dbcfd23fec4d0a4d94f99e388b6e51adf | d612f7c08e4a5a767c61c187fbe0ae942bc3d738 | tuckerbabcock/core | /mds/apfMDS.cc | C++ | cc | 37,591 | permissive | /******************************************************************************
Copyright 2014 Scientific Computation Research Center,
Rensselaer Polytechnic Institute. All rights reserved.
This work is open source software, licensed under the terms of the
BSD license as described in the LICENSE file in t... |
56c1abc68210fdb6f7e2ec27753e831b5dc263c6 | 88bdb7734d905d922f10c64a4cf1cc93b3b59669 | kirill-01/swift-project | /swift-corelib/wampclient.cpp | C++ | cpp | 9,023 | no_license | #include "wampclient.h"
#include "swiftbot.h"
#include "swiftcore.h"
WampClient::WampClient(const QString &realmname, const QString &servername, const quint16 &serverport, bool _debug, QObject *parent):
QObject(parent),
debug(_debug),
started_at(QDateTime::currentDateTime()),
sysinf_timer(new QTimer), ... |
4aeff2a8e4052092706fef61cc486da6e5f79591 | c54b719a3295fd384df25bb4716b82f0b966a881 | caot/CPlusPlus20ForProgrammers | /examples/ch02/fig02_06.cpp | C++ | cpp | 2,375 | no_license | // fig02_06.cpp
// Standard library string class test program.
#include <iostream>
#include <string>
using namespace std;
int main() {
string s1{"happy"};
string s2{" birthday"};
string s3; // creates an empty string
// display the strings and show their lengths
cout << ... |
be4501acd72c279e423e6a66f7dc3c3b7b83e8db | c91577140852d5f15aebf43248ac265917c3c496 | jsn0716/Software | /src/software/estop/threaded_estop_reader_test.cpp | C++ | cpp | 8,029 | permissive | #include "threaded_estop_reader.h"
#include <gmock/gmock.h>
#include "gtest/gtest.h"
#include "mock_uart_communication.h"
#include "uart_communication.h"
static constexpr unsigned char STOP = 0;
static constexpr unsigned char PLAY = 1;
using ::testing::_;
using ::testing::AtLeast;
using ::testing::InvokeWithoutArgs... |
982b31726b1cb50eda441504759b808b1240fe6d | b570b9f625e77af11806caca716237aa2d95b5bc | meafs/chromium | /chrome/browser/sync/test/integration/single_client_extensions_sync_test.cc | C++ | cc | 4,122 | permissive | // Copyright (c) 2011 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/bind.h"
#include "base/macros.h"
#include "chrome/browser/sync/test/integration/await_match_status_change_checker.h"
#include "chrome/b... |
bb1b6b337719a1c1f33b355eb25dfacb485fb61d | 0fcd316707d259374ddbe80a5f47eec414594afa | mfkiwl/eve | /test/unit/module/core/is_not_finite/regular/is_not_finite.hpp | C++ | hpp | 1,434 | permissive | //==================================================================================================
/**
EVE - Expressive Vector Engine
Copyright 2020 Joel FALCOU
Copyright 2020 Jean-Thierry LAPRESTE
Licensed under the MIT License <http://opensource.org/licenses/MIT>.
SPDX-License-Identifier: MIT
**/
//=====... |
123dc622a944108e329996be37fb450c009df5a1 | 4770b8a0e47f03ad0aef384e45182fb6c8fc4442 | rianquinn/hypervisor | /kernel/mocks/dispatch_syscall_bf_callback_op.hpp | C++ | hpp | 2,115 | permissive | /// @copyright
/// Copyright (C) 2020 Assured Information Security, Inc.
///
/// @copyright
/// 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 limita... |
8298569fa43ff727f8161c7db9a86c75e1e96488 | 81cd98f5a66040e4a3c98cf82ca9933f5208c7a6 | ShengfaZhu/LeetCode | /valid_palindrome.cpp | C++ | cpp | 909 | no_license | // Given a string, determine if it is a palindrome, considering
// only alphanumeric characters and ignoring cases.
// Note: For the purpose of this problem, we define empty string
// as valid palindrome.
// Example 1:
// Input: "A man, a plan, a canal: Panama"
// Output: true
// Example 2:
// Input: "race a car"
// ... |
348963a913684aa2638af8bdf53d715efd940f48 | 1894c80bad6a3295bfc492829b040013696e3687 | anatoliy-savchak/TemplePlus | /TemplePlus/raycast.cpp | C++ | cpp | 8,412 | permissive | #include "stdafx.h"
#include "common.h"
#include "raycast.h"
#include "objlist.h"
#include "critter.h"
#include "obj.h"
#include <temple/dll.h>
#include <tig/tig.h>
#include <tig/tig_startup.h>
#include "gameview.h"
#include "gamesystems/gamesystems.h"
#include "gamesystems/legacysystems.h"
#include "gamesystems/legacy... |
afab6d4a5f1bfc8c4bece5384cfa430a024d8bba | f2fff3decfefecb1e03431e3e9f6739bffa66dde | mitchute/EnergyPlus | /src/EnergyPlus/UtilityRoutines.cc | C++ | cc | 73,879 | permissive | // EnergyPlus, Copyright (c) 1996-2022, The Board of Trustees of the University of Illinois,
// The Regents of the University of California, through Lawrence Berkeley National Laboratory
// (subject to receipt of any required approvals from the U.S. Dept. of Energy), Oak Ridge
// National Laboratory, managed by UT-Batt... |
4fc83f7766b7247955f9d1f6b41ed0d1b3a57a8b | b7420f158777db9bc8b4b1f086f9366d9b7c4b94 | altxchange/syscoin2 | /src/test/base64_tests.cpp | C++ | cpp | 884 | permissive | // Copyright (c) 2011-2015 The Syscoin Core developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include "utilstrencodings.h"
#include "test/test_syscoin.h"
#include <boost/test/unit_test.hpp>
BOOST_FIXTURE_TEST_SUITE(b... |
1a7ea0d7bfee8951f83700bf22958a4c514dbd44 | 20ac51bc1ed22a6910487e53079f913755b935f4 | Cashismo/Bomberman | /include/Bomb.hpp | C++ | hpp | 1,240 | no_license | #ifndef BOMB_HPP_
#define BOMB_HPP_
#include "AElement.hpp"
#include "Player.hpp"
#include <ctime>
#include <vector>
class Bomb : public AElement {
protected:
Player *owner;
std::vector<std::pair<size_t, size_t>> explosion_coord;
bomb_type type;
int time;
time_t start;
int hor_ray;
int ver_ray;
bool e... |
d1b549d152456ed4faf56865846e4ca1f60ca9bf | 0db176c525dd580308b4f041ba235e5fe95b5e8d | wzr1999/uefi-programming | /book/GUIPkg/Library/fb.cpp | C++ | cpp | 7,260 | permissive | #include "fb.h"
namespace UGUI{
inline void bmp2Uefi(UEFI_PIXEL& d, rgb_t& s){ d.Blue = s.B; d.Green = s.G; d.Red = s.R;}
UFrameBuffer* UFrameBuffer::Create(int t)
{
return new UFrameBuffer();
}
EFI_STATUS UFrameBuffer::Blt(
IN EFI_GRAPHICS_OUTPUT_PROTOCOL *This,
IN OUT ... |
fdee55107062150110a3547ff83195d2bf5806a6 | 7c5870b0749424035b8924abed434c64010e4717 | LCAS/ros_marvelmind_package | /src/hedge_rcv_bin.cpp | C++ | cpp | 12,601 | no_license | #include <stdio.h>
#include <stdlib.h>
#include <stdbool.h>
#include <semaphore.h>
#include <fcntl.h>
#include "ros/ros.h"
#include "std_msgs/String.h"
#include "marvelmind_nav/hedge_pos.h"
#include "marvelmind_nav/hedge_pos_a.h"
#include "marvelmind_nav/hedge_pos_ang.h"
#include "marvelmind_nav/beacon_pos_a.h"
#includ... |
db3ce509582cce58175b0343a79ae4604ab80375 | 48f13c0035347aa73e3efec5101146a56322e1e5 | LawranceXcl/OpenDS-CTS | /ISDESPOT/smart-car-sim-master/is-despot/src/solver/aems.cpp | C++ | cpp | 8,406 | no_license | #include "solver/aems.h"
AEMS::AEMS(const DSPOMDP* model, BeliefLowerBound* lower_bound,
BeliefUpperBound* upper_bound, Belief* belief) :
Solver(model, belief),
root_(NULL),
lower_bound_(lower_bound),
upper_bound_(upper_bound) {
model_ = static_cast<const BeliefMDP*>(model);
reuse_ = false;
}
ValuedAction AEMS... |
90ff4c2bd3fb32e9252079de889dc007976ac01d | 1eb62c00a858e48e9c68f35b920cad62b8a5181d | BlenderCN-Org/spacegameengine | /libs/projectile/include/sge/projectile/ghost/size.hpp | C++ | hpp | 1,197 | no_license | /*
spacegameengine is a portable easy to use game engine written in C++.
Copyright (C) 2006-2016 Carl Philipp Reh (carlphilippreh <at> gmail.com)
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public License
as published by the Free Software Foundation... |
0b867137f333f5f8dcffe8b93c131a6fe56958be | 68b95e9e0f18e4606d38726c4ea0c493fa1d91dc | smhemel/Codeforces-Online-Judge | /Codeforces Round #460 (Div. 2) - C. Seat Arrangements/Codeforces Round #460 (Div. 2) - C. Seat Arrangements/main.cpp | C++ | cpp | 1,327 | no_license | //
// main.cpp
// Codeforces Round #460 (Div. 2) - C. Seat Arrangements
//
// Created by S M HEMEL on 1/2/18.
// Copyright © 2018 Eastern University. All rights reserved.
//
#include <iostream>
#include <algorithm>
using namespace std;
char matrix[2000][2000];
int main(){
int n,m,k,ans=0;
cin >> n >> m >> ... |
a00e730015312437e5254c91abc42b87274d4325 | b826343b7cdb9f950419db8c5e6d680936beecc7 | OpenVietcong/veles | /src/client/networkclient.cc | C++ | cc | 17,317 | permissive | /*
* Copyright 2017 CodiLime
*
* 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 writ... |
fdec4091a37a817759f702fdbddfb7c1cebfc616 | 7b6d284c020a049801ec337504d29084f1666750 | swift-nav/ros_rover | /erle/ros2_ws/build/geometry_msgs/rosidl_typesupport_opensplice_cpp/geometry_msgs/msg/dds_opensplice/PoseArray_Dcps_impl.cpp | C++ | cpp | 28,784 | no_license | #include "PoseArray_Dcps_impl.h"
#include "gapi.h"
#include "gapi_loanRegistry.h"
#include "PoseArray_SplDcps.h"
#include "ccpp_DataReader_impl.h"
#include "ccpp_DataReaderView_impl.h"
extern c_bool
__geometry_msgs_msg_dds__PoseArray___copyIn(
c_base base,
struct geometry_msgs::msg::dds_::PoseArray_ *from,
... |
b1f0ad0ba93e75095b4f57af37770558cbacb34e | 1e0ddc266d964d2c94cf702291aa1633355b1ca4 | canonical-robots/DomainModelsRepositories | /CommNavigationObjects/smartsoft/src-gen/CommNavigationObjects/PlannerEventStateACE.hh | C++ | hh | 1,495 | permissive | //--------------------------------------------------------------------------
// Code generated by the SmartSoft MDSD Toolchain
// The SmartSoft Toolchain has been developed by:
//
// Service Robotics Research Center
// University of Applied Sciences Ulm
// Prittwitzstr. 10
// 89075 Ulm (Germany)
//
// Information abo... |
f6c36bccb511221426c4b6e98356cfcc1af92c4c | 6addefe2dae68aa1ddf95d98f812fd362c9d1b59 | nam-tsitua/TenzoDinSoftware | /src_3rd_party/qextserialport/qextserialenumerator_unix.cpp | C++ | cpp | 2,434 | no_license | //Сторонняя библиотека скачана с ресурса автора
//URL - http://qextserialport.github.io
#include "qextserialenumerator.h"
#include <QDebug>
#include <QMetaType>
#include <QStringList>
#include <QDir>
QextSerialEnumerator::QextSerialEnumerator( )
{
if( !QMetaType::isRegistered( QMetaType::type("QextPortInfo") ) )
... |
92564f1e8b1f8c1d287f38472f0497e80986e8f7 | ba0a9081b8cdb628366f4174c0f6744e863f85b0 | amir-halperin/amirh_source_tree | /src/osal/win32/mocks/src/MessageQueue.hpp | C++ | hpp | 2,738 | no_license | #ifndef MESSAGE_QUEUE_IMPLE_HPP
#define MESSAGE_QUEUE_IMPLE_HPP
// Note that in this implementation like in all the other implementation we would no operation that would be done
// so calling any function here would have no effect
// note that this is useful for unit tests where we would not like to test in any way the... |
60791833ced2eca2412b5d72b2112b0f5cd94c32 | 818e95daa0566907e04ca18b34b71edaf315b911 | xzhong3/CarND-MPC-Project | /src/MPC.cpp | C++ | cpp | 8,738 | no_license | #include "MPC.h"
#include <cppad/cppad.hpp>
#include <cppad/ipopt/solve.hpp>
#include "Eigen-3.3/Eigen/Core"
using CppAD::AD;
// TODO: Set the timestep length and duration
const size_t N = 20;
const double dt = 0.1;
const double Lf = 2.67;
// This value assumes the model presented in the classroom is used.
//
// It ... |
4d535b5f9012b1b5c0e754e2db2696aeff7ae25a | 045b81f315e73acd5e0fdfd487145985047b4d7f | avatarbuss/dotnet-api-docs | /samples/snippets/cpp/VS_Snippets_CLR/ValueType.Equals Example/CPP/source.cpp | C++ | cpp | 519 | permissive |
using namespace System;
//<snippet1>
public ref struct Complex
{
public:
double m_Re;
double m_Im;
virtual bool Equals( Object^ ob ) override
{
if ( dynamic_cast<Complex^>(ob) )
{
Complex^ c = dynamic_cast<Complex^>(ob);
return m_Re == c->m_Re && m_Im == c->m_Im... |
51afa1ca32004b554b41eb561af8b569cc961987 | 1b76605e48a5aff8a10dda7f3a7959e4ac1e2b28 | thomasleyer/irods | /iRODS/lib/api/src/rcUnbunAndRegPhyBunfile.cpp | C++ | cpp | 556 | permissive | /*** Copyright (c), The Regents of the University of California ***
*** For more information please refer to files in the COPYRIGHT directory ***/
/* This is script-generated code. */
/* See unbunAndRegPhyBunfle.h for a description of this API call.*/
#include "unbunAndRegPhyBunfile.hpp"
int
rcUnbunAndRe... |
98a0f1f271e8f5dcc8bcb371d05f3f5991c0cdfe | 15b4d48e18c3a33065a227f194464f7b45094c78 | swifter-motion/iossimfinder | /RZExternal/src/FitSDKRelease_20/fit_lap_mesg_listener.hpp | C++ | hpp | 1,293 | permissive | ////////////////////////////////////////////////////////////////////////////////
// The following FIT Protocol software provided may be used with FIT protocol
// devices only and remains the copyrighted property of Dynastream Innovations Inc.
// The software is being provided on an "as-is" basis and as an accommodat... |
822f6f82e03d7c381c57c29d98ce56f2f5013e50 | 4a7667e24b780962e15d76e001d016cb213ea4b4 | AshrafTasin/LightOJ_ | /1109-False Ordering.cpp | C++ | cpp | 1,849 | no_license | /*----------------------|
/ Author : Ashraf Tasin |
/ Date : 20.07.19 |
/----------------------*/
#include<bits/stdc++.h>
#define pb push_back
#define mp make_pair
#define ll long long
#define all v.begin(),v.end()
#define flash ios :: sync_with_stdio(false); cin.tie(0); cout.tie(0);
#define db double
#define en... |
06e9857d2e24e45b1229631f06de17385d2150f3 | 22c4bdd5169b3c7dfee3a17bca31609a6d4f44c9 | notajingoist/15462 | /p1/src/p1/project.hpp | C++ | hpp | 4,327 | no_license | /**
* @file project.hpp
* @brief OpenGL project
*
* @author H. Q. Bovik (hqbovik)
* @bug Unimplemented
*/
#ifndef _462_OPENGL_PROJECT_HPP_
#define _462_OPENGL_PROJECT_HPP_
#include "math/camera.hpp"
#include "math/vector.hpp"
#include "math/quaternion.hpp"
#include "math/color.hpp"
#define RESOL 128
#define RE... |
19185888f5cf10f59ec9ff3a5364fd45f8c7cf52 | c7e62829bee25a7adae4c1183f883e66e47c307b | sensarliar/zfcs_filesystem | /usr/bin/qtopia/examples/dbus/remotecontrolledcar/car/car_adaptor.cpp | C++ | cpp | 3,501 | no_license | /****************************************************************************
**
** Copyright (C) 2012 Nokia Corporation and/or its subsidiary(-ies).
** Contact: http://www.qt-project.org/
**
** This file is part of the examples of the Qt Toolkit.
**
** $QT_BEGIN_LICENSE:BSD$
** You may use this file under the terms of... |
65e1d1e212a2738a854749ca402ac35ce40f4f14 | 8596c238d4d5a8456d95115610f0f153bf5e13a1 | jmlich/fawkes | /src/plugins/navgraph/navgraph_thread.cpp | C++ | cpp | 31,650 | no_license | /***************************************************************************
* navgraph_thread.cpp - Graph-based global path planning
*
* Created: Tue Sep 18 16:00:34 2012
* Copyright 2012-2014 Tim Niemueller [www.niemueller.de]
* 2014 Tobias Neumann
****************************************... |
fe81943cdd7a1e55d4f560b6632c92230fb89c95 | e5e7f9856e19c76068cc9291de1ce9673eed0f0d | LogicDragon/niflib | /src/obj/NiLODData.cpp | C++ | cpp | 2,571 | no_license | /* Copyright (c) 2006, NIF File Format Library and Tools
All rights reserved. Please see niflib.h for license. */
//-----------------------------------NOTICE----------------------------------//
// Some of this file is automatically filled in by a Python script. Only //
// add custom code in the designated areas o... |
ffb6d40eb379f90eaf5a8b657e1c15a0a7554a9d | 0f447f838c4c97a55220a9da842f2e1c9cf4ca0f | zfzlinux/chromium | /chrome/browser/devtools/devtools_ui_bindings.cc | C++ | cc | 65,773 | permissive | // Copyright 2014 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/devtools/devtools_ui_bindings.h"
#include <stddef.h>
#include <memory>
#include <utility>
#include "base/base64.h"
#include "b... |
70b3e7c098024953c86584b242e15aff8c86482a | e5bdb8cb2f8d823026604eaa53ada8b4d5df7572 | bicepjai/myclasses | /2015/ucdx_cse167x/lec3/hw3/hw3-ray-tracing/RayTracer_cur.cpp | C++ | cpp | 15,840 | no_license |
#include "RayTracer.h"
using namespace glm;
using namespace std;
// RAY
Ray::Ray()
{
origin = vec4(0,0,0,0);
direction = vec4(0,0,-1,0);
}
Ray::Ray(vec4 o, vec4 d)
{
origin = o;
direction = d;
}
string Ray::toString()
{
return(" o: " + to_string(origin) + "d: " + to_string(direction));
}
// CAMERA
Camera... |
cc459a46b2aa56a72db7fbcc3332e68a08058d94 | 431067ca3614b2fc7dc41e667eea7324562c3692 | xczhang07/leetcode | /cpp/easy/valid_anagram.cpp | C++ | cpp | 612 | no_license | class Solution {
public:
bool isAnagram(string s, string t) {
if(s.size() != t.size())
return false;
unordered_map<char,int> my_map;
for(char e: s)
my_map[e]++;
for(char e: t)
{
if(my_map.find(e) == my_map.end())
return fals... |
09123e0e96eff44e6fdcc781817418095b5d5625 | 4bba8c366f923979e830159248784a152f039a5a | Kike-Ramirez/particulizer | /src/Resources/segment.cpp | C++ | cpp | 881 | permissive | #include "segment.h"
Segment::Segment()
{
}
void Segment::setup(ofVec3f initPoint_, ofVec3f endPoint_) {
initPoint.set(initPoint_);
endPoint.set(endPoint_);
index = 1;
lineWidth = 3;
color = ofColor(255);
}
void Segment::update(float index_) {
index = index_;
}
void Segment::display(... |
96957a68cf7d9f167c35889d7a2764dd5ffc5681 | ed741fed396ad5e2ab0c1fe1521e2d84ef9f4d53 | ColleyLi/AutowareArchitectureProposal | /src/perception/object_recognition/detection/shape_estimation/include/shape_estimation/corrector_interface.hpp | C++ | hpp | 1,052 | permissive | /*
* Copyright 2018 Autoware Foundation. All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required b... |
b2713d6d5b94459294029ecaaafc27ed27be3386 | 5332d7529904605e8d4c086c67d8555014483599 | userkrm/chromium | /chrome/browser/ui/views/profiles/profile_menu_view_base.cc | C++ | cc | 38,848 | permissive | // 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/views/profiles/profile_menu_view_base.h"
#include <algorithm>
#include <memory>
#include <utility>
#include "base/feature_li... |
b38ab6eb4af8f2b544fc4a602d99a919ad372f77 | 90e3aab5d6e1a9c383604ff4badeb76ea6365f67 | pallxk/openapi-generator | /samples/client/petstore/cpp-restsdk/client/model/Tag.cpp | C++ | cpp | 3,913 | permissive | /**
* OpenAPI Petstore
* This is a sample server Petstore server. For this sample, you can use the api key `special-key` to test the authorization filters.
*
* The version of the OpenAPI document: 1.0.0
*
* NOTE: This class is auto generated by OpenAPI-Generator 5.3.1-SNAPSHOT.
* https://openapi-generator.tech
... |
869c824482f118c05936976657228d371e8e3c28 | 88e58f8f6bd5caa5d99fb0a141da7403a1628f9f | ly774508966/ChilliSource | /Source/ChilliSource/Input/TextEntry/TextEntry.cpp | C++ | cpp | 2,213 | permissive | //
// TextEntry.cpp
// ChilliSource
// Created by Scott Downie on 08/07/2014
//
// The MIT License (MIT)
//
// Copyright (c) 2014 Tag Games Limited
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
/... |
3d84a4d6a4c914b780ff157835031910c05b91ef | 30650fb49a175396a83b4cba27cd1c4da97c3d1f | MishaVernik/OS | /ParallelScheduler/Process.cpp | C++ | cpp | 764 | permissive | #include "Process.h"
#include "CommonData.h"
#include <iostream>
void Process::CountWaitingTime() {
if (this->staus == ProcessStatus::WaitingIfStarted) {
this->waitingTime = this->waitingTime + CommonData::WAITING_TIME();
}
}
bool Process::ChangeStatus(const int& globalTimer)
{
if (this->startTime <= globalTimer... |
687ab6894786559f53239ae9e5e2ee838e2b0c11 | 57edb9f0ad0539d296e3c74df21a2a8a960e5510 | dennyabrain/DISTRHO | /plugins/Nekobi/source/DistrhoPluginNekobi.cpp | C++ | cpp | 13,186 | no_license | /*
* DISTRHO Nekobi Plugin, based on Nekobee by Sean Bolton and others.
* Copyright (C) 2004 Sean Bolton and others
* Copyright (C) 2013 Filipe Coelho <falktx@falktx.com>
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License as
* pu... |
0ff34bcd3085299c04a89802afeece9d08c6bcec | baf2551838ff594fa5a649c4661817c2c0bc1be6 | reconrapid/Vector-Assignment | /Code/Assignment1/Vector3D.cpp | C++ | cpp | 2,519 | no_license | #include "Vector3D.h"
#include <cmath>
#include <iostream>
using namespace std;
// Default Constructor
Vector3D::Vector3D() {
x = 0;
y = 0;
z = 0;
}
//Constructor
Vector3D::Vector3D(float x1, float y1, float z1) {
x = x1;
y = y1;
z = z1;
}
//Copy Constructor
Vector3D::Vector3D(const Vector3D &v1) {
x = v1.... |
7da0ca1db44f3b0df610d6528ab484624f5c2a15 | 060aac2d9fe98edc735b87a0b5296f7259887d4e | 01010111/TileUtilPropertyEditor | /export/windows/cpp/obj/src/flixel/util/FlxTimer.cpp | C++ | cpp | 14,137 | no_license | #include <hxcpp.h>
#ifndef INCLUDED_flixel_FlxBasic
#include <flixel/FlxBasic.h>
#endif
#ifndef INCLUDED_flixel_util_FlxTimer
#include <flixel/util/FlxTimer.h>
#endif
#ifndef INCLUDED_flixel_util_FlxTimerManager
#include <flixel/util/FlxTimerManager.h>
#endif
#ifndef INCLUDED_flixel_util_IFlxDestroyable
#include <flix... |
032f77acfec6122e78917fcf61d5ca1e12cf008a | 5524db2d33f86d0f4311885ff09b13a2787123a8 | perrozzi/cmg-cmssw | /CMGTools/Common/src/PFJetFactory.cc | C++ | cc | 11,615 | no_license | #include "CMGTools/Common/interface/PFJetFactory.h"
#include "DataFormats/Common/interface/ValueMap.h"
#include <iostream>
using namespace std;
cmg::PFJetFactory::PFJetFactory(const edm::ParameterSet& ps):
jetLabel_(ps.getParameter<edm::InputTag>("inputCollection")),
baseJetFactory_(ps.getParameter<edm::Paramete... |
c3fd18457c499c302949aae3b59b1c80d9945dd9 | f44ee03c8540805b8e014048faf5c601b6b14b4d | krack-shpack/Course-Project | /PersonnelDepartmentFull/debug/moc_addDiv.cpp | C++ | cpp | 3,747 | no_license | /****************************************************************************
** Meta object code from reading C++ file 'addDiv.h'
**
** Created by: The Qt Meta Object Compiler version 67 (Qt 5.15.0)
**
** WARNING! All changes made in this file will be lost!
*************************************************************... |
0dc11db2fcf2462dafaa62be80f0473a2ef1c605 | 5284f9c767cfe9e0ec92314b7c14ed207bb21bd9 | superoo7/solar_boat | /test/main/src/sensors/dissolvedO2/dissolvedO2.cpp | C++ | cpp | 229 | permissive | #include "dissolvedO2.h"
dissolvedO2Class::dissolvedO2Class(){
}
void dissolvedO2Class::SETUP(){
// void setup()
}
void dissolvedO2Class::DISSOLVEDO2(){
// void loop()
}
dissolvedO2Class dissolvedO2 = dissolvedO2Class();
|
0bc9f98eb37485073da898d50da6fbac7b7d9d47 | 241bc6f5ae045c069e4c7a4b187e50d68d7604cb | mohankaushik97/ProjectAlohaV0.0.1 | /lib/WiFiControl/src/wifiAuto.cpp | C++ | cpp | 664 | no_license | #include <Arduino.h>
#include <WiFiManager.h> // https://github.com/tzapu/WiFiManager
void autoConnect()
{
WiFi.mode(WIFI_STA);
WiFiManager wm;
// reset settings - wipe credentials for testing
// wm.resetSettings();
bool res;
res = wm.autoConnect("AutoConnectAP"); // anonymous ap
if (!... |
1b7aeb85513ce8545e7a542178bd9c46c877c939 | eef6d88163670ad32cbbdd1e8ed62138c3a60d13 | zhmu/ananas | /external/gcc-12.1.0/libstdc++-v3/testsuite/24_iterators/normal_iterator/greedy_ops.cc | C++ | cc | 1,230 | permissive | // { dg-do compile }
// { dg-options "-Wno-unused-result" }
// Copyright (C) 2010-2022 Free Software Foundation, Inc.
//
// This file is part of the GNU ISO C++ Library. This library is free
// software; you can redistribute it and/or modify it under the
// terms of the GNU General Public License as published by the
... |
b635e3d33a603f39c934a38574543ad09a91cb32 | f3faffb3e5bf0237eeb2b7e72f85e9ccb8ff7587 | ThanhDoNgoc/mariobros3 | /05-ScenceManager/HUD.cpp | C++ | cpp | 4,601 | no_license | #include "HUD.h"
#include "Game.h"
#include "GameObject.h"
#include "Textures.h"
#include "Sprites.h"
#include "Mario.h"
#include "GlobalVariables.h"
HUD::HUD()
{
}
void HUD::Load()
{
}
void HUD::Render()
{
DrawBackground();
auto sprite = CSprites::GetInstance();
CSprite* hud = sprite->Get(40000);
hud->Draw(SCR... |
1587629bf06f27b33a5dcb0b357e4aae7d0480f9 | 90b69606f575d91fb25a26e3ce2cb449897979cf | DailyDoseOBB/TAM-Description-Maker | /Source.cpp | C++ | cpp | 1,730 | no_license | #include <iostream>
#include <string>
#include <ctime>
#include <fstream>
using namespace std;
int main()
{
ofstream outfile;
outfile.open("Copy_Paste.txt");
//Declare strings and initialize
string SN, PO, Item, Tag, Requester, Summary, Description, Date;
SN = PO = Item = Tag = Requester = Summary... |
90518eaddfe6171c9d0fb7f52ad1957450e3df30 | 643ea8c2af38ae1f92bf1811cad1334790f51f90 | northmachine/pat_test | /a1034.cpp | C++ | cpp | 1,422 | no_license | #include <iostream>
#include <string>
#include <map>
using namespace std;
const int maxn = 2010;
const int INF = 1000000000;
map<int,string> intToString;
map<string,int> stringToInt;
map<string,int> Gang;
int G[maxn][maxn] = {0}, weight[maxn] = {0};
int n,k,numPerson = 0;
bool vis[maxn] = {false};
void DFS(int nowVisi... |
729acc6ab7d9904dd07583b77b830e8642be6695 | aa306ac337c68c26ad4ca4a89b60c653db874f48 | ExiaHan/oatdump_plus | /runtime/mem_map_test.cc | C++ | cc | 22,350 | permissive | /*
* Copyright (C) 2013 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by app... |
db7534d3a151cc8520739ab0bfb98755af5b729f | c2900819e936f0a05ddf9af7939ad4a907b6d51a | flores-jacob/exercism | /cpp/gigasecond/gigasecond.cpp | C++ | cpp | 280 | no_license | // #include <iostream>
#include "gigasecond.h"
namespace gigasecond{
boost::posix_time::ptime advance(boost::posix_time::ptime input_time){
// std::cout << input_time << std::endl;
return input_time + boost::posix_time::seconds(1000000000);
}
};
|
80466a14e2194ad2d6b5e68f42d3119fd6ede62c | 0f3bb9f3fd788702a965bb6a4a55e87aec950268 | jjzhang166/WinNT5_src_20201004 | /NT/ds/security/cryptoapi/common/debug/debug.cpp | C++ | cpp | 12,018 | no_license | //+---------------------------------------------------------------------------
//
// Microsoft Windows
// Copyright (C) Microsoft Corporation, 1996 - 1999
//
// File: debug.cpp
//
// Contents: Debug sub system APIs implementation
//
//
// 03/20/96 kevinr wrote it
// 04/17/96 kevinr added ... |
f157260d29c5a3f8420b759cc94ef1e630bcdf1a | 70f816525508896fd27cdf7eb83f91499c796e17 | WiZFramework/BaseCross64 | /FullSample107/GameSources/Character.cpp | C++ | cpp | 3,144 | no_license | /*!
@file Character.cpp
@brief キャラクターなど実体
*/
#include "stdafx.h"
#include "Project.h"
namespace basecross{
//--------------------------------------------------------------------------------------
// タイリングする固定のボックス
//--------------------------------------------------------------------------------------... |
f06e5286186afb4868e83b7a4113d60562ea3482 | 60df0e9e4c14e79fca938fa2b5992d6a6f9e0fa0 | intel/compute-runtime | /shared/test/unit_test/xe_hp_core/command_encoder_tests_xe_hp_core.cpp | C++ | cpp | 645 | permissive | /*
* Copyright (C) 2022 Intel Corporation
*
* SPDX-License-Identifier: MIT
*
*/
#include "shared/source/helpers/cache_flush_xehp_and_later.inl"
#include "shared/test/common/test_macros/hw_test.h"
using namespace NEO;
using L3ControlTests = ::testing::Test;
HWTEST2_F(L3ControlTests, givenL3ControlWhenAdjustCall... |
45ae62deab54eccadb5f06eff03791c450b22680 | b34bc84eca3c7f64e6e1237827f3c3c4f685d84a | multi-os-engine/art | /oatdump/oatdump_test.cc | C++ | cc | 3,873 | permissive | /*
* Copyright (C) 2015 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by app... |
386cecbe52dadb541bfbd6129b0d57c2e6011237 | 15465755231b6c4ce0972537bdac607933dd9c4e | bitterengsci/algorithm | /online-material/acm-challenge-workbook-master/src/poj3977.cpp | C++ | cpp | 2,156 | no_license | /*
* POJ 3977: Subset
* 题意:给出有正有负的序列,选取若干数,使得和的绝对值最小,绝对值相等则要求所选数个数最小。求最小的绝对值和以及对应元素个数。
* 类型:折半枚举+双向搜索
* 算法:将元素折半,二进制枚举各自n/2个元素的子集合的和。两边的和按和的增或减分别排序,保证和相同时元素少的排前面,双向搜索出和绝对值最小的组合。
*/
#include <cstdio>
#include <cstring>
#include <algorithm>
#include <cmath>
using namespace std;
typedef long long LL;
inline LL AB... |
170b5f552d831e14de29fc923113fe2b588fef8d | 6ac6c1d8e5e0b9dca6eb8221343d6da3620918f4 | jeanpaul/flexcpp-old | /flexc++/startconditions/add.cc | C++ | cc | 333 | no_license | #include "startconditions.ih"
void StartConditions::add(string const &name)
{
if (name == "INITIAL") // Initial is defined by default by us.
return;
if (d_hash.find(name) != d_hash.end())
emsg << "start condition `" << name << "' multiply defined" << endl;
else
d_hash[name] =... |
5bb3df8c7a33f00e780739da690446df1732d41a | ef069fd9975177b72fe8652795359423e95d1814 | lithos136/GalaxyEngine15 | /GalaxyEngine15/src/GameMain.cpp | C++ | cpp | 2,396 | no_license | #include "..\include\GameMain.h"
GameMain::GameMain()
{
}
GameMain::~GameMain()
{
}
/*
bool LoadGame()
-------------------------------------
Initializes all the game resources and returns true if it all goes OK. Returns false
if anything fails.
*/
bool GameMain::LoadGame()
{
// Init video
video = VideoManager();... |
b61de6d5a9e2b6c638c1369f86b733eab2cebc25 | 2587fc475ecddd46140c9887652937e2583ef310 | igchesnok/AHRUnrealEngine | /Engine/Source/Developer/AssetTools/Private/AssetTypeActions/AssetTypeActions_MaterialInterface.cpp | C++ | cpp | 3,377 | no_license | // Copyright 1998-2014 Epic Games, Inc. All Rights Reserved.
#include "AssetToolsPrivatePCH.h"
#include "Editor/MaterialEditor/Public/MaterialEditorModule.h"
#include "AssetRegistryModule.h"
#include "ContentBrowserModule.h"
#include "AssetToolsModule.h"
#define LOCTEXT_NAMESPACE "AssetTypeActions"
void FAssetTypeAc... |
3e27da1c6d005509a199c243979a7d2c66b07fd3 | c417625508fa358c829be6e2932385f46912668c | Kiritow/OJ-Problems-Source | /HDOJ/4664_autoAC.cpp | C++ | cpp | 1,270 | no_license | #include<cstdio>
#include<cstring>
#define MAXN 1010
int sg[MAXN];
bool vis[MAXN];
int SG(int n) {
if (n == 0) {
sg[n] = 0;
} else if (n == 1) {
sg[n] = 0;
} else if (n == 2) {
sg[n] = 1;
} else if (n == 3) {
sg[n] = 1;
} else if (sg[n] == -1) {
... |
7235ca915b5d141dfe49fc5d7fef0b8cccafc74e | 98ebc58538926a6e9db05d775e30b00034c77b34 | mshoward/old-proj | /log-parser-mysql-client/parser/src/test/testIP.cpp | C++ | cpp | 4,946 | no_license | #include <string>
#include <iostream>
#include <sstream>
#include <iostream>
#include <string>
#include <sstream>
#include <cctype>
#include <stdio.h>
#include <cstdlib>
#include <cstring>
#include <map>
using namespace std;
bool isIP(string s);
bool isTS(string s);
int getWord(std::string &inStr, std::string &outStr... |
f4e6c561750ee1b4c3e85fa46f7dcddf111d4873 | 8bf7c9d7bdc7ae943f5c0ad477646866f97f05fe | ioschina/hdchain | /src/clientversion.cpp | C++ | cpp | 3,873 | permissive | // Copyright (c) 2012-2014 The Bitcoin Core developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include "clientversion.h"
#include "tinyformat.h"
#include <string>
/**
* Name of client reported in the 'version' messa... |
945fb0b24ab9996171f2f5076a34071e7dfd3808 | ca7fd4ae49508d4c591a8b30d641d3353e836e12 | kdemello1980/Engine | /src/Model.cpp | C++ | cpp | 19,951 | no_license | #include "../include/Model.h"
#include "../include/Common.h"
#include "../include/Util.h"
#include "../include/LogicalDevice.h"
#include "../include/CommandPool.h"
#include "../include/PhysicalDevice.h"
#include "../include/types.h"
#define STB_IMAGE_IMPLEMENTATION
#include <stb_image.h>
#define TINYOBJLOADER_IMPLEME... |
892fc70d306a4fd13e3cd47d41488c269eb6eb5b | 1da2883796b91d562a7a7af6eda55cf9e31251bf | rohan-khurana/Algorithms | /LeetCode_Monthly_Challenge/April/C++/Week_2/Partition List.cpp | C++ | cpp | 1,342 | no_license | /*Given the head of a linked list and a value x, partition it such that all nodes less than x come before nodes greater than or equal to x.
You should preserve the original relative order of the nodes in each of the two partitions.
Example 1:
Input: head = [1,4,3,2,5,2], x = 3
Output: [1,2,2,4,3,5]
Example 2:
Input: he... |
93a4378e4b0ac37565efd9d5e7f5858438192fb3 | bfadbc46e507c43b4fb985bf0fb18626cf2ce786 | generall/text_patterns | /src/classes/learning/CWeightWordSign.cpp | C++ | cpp | 562 | no_license | /*
* CWeightWordSign.cpp
*
* Created on: 03 нояб. 2013 г.
* Author: generall
*/
#include "CWeightWordSign.h"
namespace patterns
{
CWeightWordSign::CWeightWordSign()
{
}
double CWeightWordSign::test(CText* text)
{
if (word == NULL)
{
return 0;
}
else
{
auto i = text->statistics.find(word);
if ... |
b1a649fb591d8672997105a197674beedb515d94 | 681c9778b6edeaf497e5e272c5a38d4254945339 | drlongle/leetcode | /algorithms/problem_1400/other2.cpp | C++ | cpp | 431 | no_license | class Solution {
public:
bool canConstruct(string s, int k) {
int n = s.size();
if(k > n)
return 0;
if(k == n)
return 1;
vector<int> f(26);
for(int i = 0; i < n; i++)
f[s[i] - 'a']++;
int c = 0;
for(int i = 0; i < 2... |
5bc9d6e37c59c335fa61ba8b72da39ec191cf50b | 5c51097af302894037a8f9420768018991b16d1b | mursalfk/omnetpp | /src/sim/ccanvas.cc | C++ | cc | 111,071 | no_license | //==========================================================================
// CCANVAS.CC - part of
//
// OMNeT++/OMNEST
// Discrete System Simulation in C++
//
//==========================================================================
/*-------------------------------------------... |
d7b9e493b0f53d442e3379483d8baefa2a1f99a0 | 47ea404600eecfd7746b9b118a7926355ea7701d | berber1016/chromium | /media/capture/video/video_capture_device_client.cc | C++ | cc | 27,175 | permissive | // Copyright 2015 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 "media/capture/video/video_capture_device_client.h"
#include <algorithm>
#include <memory>
#include <utility>
#include "base/bind.h"
#include "... |
5b04c98fb13a0a834c60fd2f59c0144a0f615c20 | 2477d2237de5f8a72b53dac9289ed66b8828295d | oskarjohansson/RC-two-wheeler | /Software/Software/src/main.cpp | C++ | cpp | 6,587 | no_license | /**
* @file main.cpp
* @author Oskar Johansson (oskar@irisnet.se)
* @brief This project is to work with 2 MCU and 2 nRF24 to communicate throttle and turn. Based on
* https://github.com/caselabbet/case-rc-car by Isak Åslund.
* @version 0.1
* @date 2020-01-29
*/
#include <Arduino.h>
#include <SoftwareSe... |
0f72a1ac810e95173e5d607bfae8460f114fc12c | 19c51d33ce61875952de0c4091e7f22b174576e6 | remymuller/boost.simd | /bench/function/simd/sech/regular.double.m1_m10.cpp | C++ | cpp | 798 | permissive | // -------------------------------------------------------------------------------------------------
// Copyright 2016 - NumScale SAS
//
// Distributed under the Boost Software License, Version 1.0.
// See accompanying file LICENSE.txt or copy at
// ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.