text string | size int64 | token_count int64 |
|---|---|---|
#include <stdio.h>
#include <sstream>
#include "ServiceStatusInfo.h"
#include "GetServiceStatusMessage.h"
#include "ServiceStatusManager.h"
#include "curl/curl.h"
#include "jsoncpp/json.h"
#include "libmicrohttpd/microhttpd.h"
#include "log4cplus/version.h"
#include "cryptopp/cryptlib.h"
#define _STR(x) _VAL(x)
#defi... | 3,146 | 1,091 |
//
// This source file is part of appleseed.
// Visit https://appleseedhq.net/ for additional information and resources.
//
// This software is released under the MIT license.
//
// Copyright (c) 2016-2018 Esteban Tovagliari, The appleseedhq Organization
//
// Permission is hereby granted, free of charge, to any perso... | 4,405 | 1,496 |
#include "library/common/extensions/filters/http/platform_bridge/filter.h"
#include "envoy/server/filter_config.h"
#include "source/common/buffer/buffer_impl.h"
#include "source/common/common/assert.h"
#include "source/common/common/dump_state_utils.h"
#include "source/common/common/scope_tracker.h"
#include "source/... | 31,000 | 9,148 |
/*
This file is part of Nori, a simple educational ray tracer
Copyright (c) 2015 by Wenzel Jakob
Nori is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License Version 3
as published by the Free Software Foundation.
Nori is distributed in the... | 12,545 | 4,526 |
#include <cstdlib>
#include <string>
#include <utility>
#include <gtest/gtest.h>
#include <entt/core/hashed_string.hpp>
#include <entt/core/type_traits.hpp>
#include <entt/meta/factory.hpp>
#include <entt/meta/meta.hpp>
#include <entt/meta/node.hpp>
#include <entt/meta/resolve.hpp>
struct base_t {
virtual ~base_t(... | 20,236 | 8,449 |
/*
* Copyright 2018 Google LLC.
*
* 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 of conditions and the following disc... | 7,208 | 2,849 |
// Copyright lowRISC contributors.
// Licensed under the Apache License, Version 2.0, see LICENSE for details.
// SPDX-License-Identifier: Apache-2.0
#include "sw/device/silicon_creator/lib/drivers/otbn.h"
#include <array>
#include "gtest/gtest.h"
#include "sw/device/silicon_creator/lib/base/mock_abs_mmio.h"
#includ... | 5,229 | 2,446 |
/*==============================================================================
Copyright (c) 2005-2010 Joel de Guzman
Copyright (c) 2010 Thomas Heller
Distributed under the Boost Software License, Version 1.0. (See accompanying
file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
===... | 36,090 | 16,043 |
/// @ref gtx
/// @file glm/gtx/scalar_multiplication.hpp
/// @author Joshua Moerman
///
/// Include <glm/gtx/scalar_multiplication.hpp> to use the features of this extension.
///
/// Enables scalar multiplication for all types
///
/// Since GLSL is very strict about types, the following (often used) combination... | 2,330 | 980 |
/*******************************************************************************
* Copyright 2016-2019 Intel Corporation
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apa... | 2,602 | 951 |
/*
* Copyright 2004 The WebRTC Project Authors. All rights reserved.
*
* Use of this source code is governed by a BSD-style license
* that can be found in the LICENSE file in the root of the source
* tree. An additional intellectual property rights grant can be found
* in the file PATENTS. All contributing ... | 7,610 | 2,770 |
#define EZC3D_API_EXPORTS
///
/// \file ForcePlatForm.cpp
/// \brief Implementation of ForcePlatForm class
/// \author Pariterre
/// \version 1.0
/// \date March 25th, 2020
///
#include "modules/ForcePlatforms.h"
#include "ezc3d_all.h"
ezc3d::Modules::ForcePlatform::ForcePlatform()
{
}
ezc3d::Modules::ForcePlatfor... | 13,923 | 4,767 |
// Copyright 2020 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 "chromeos/memory/pagemap.h"
#include <fcntl.h>
#include <sys/stat.h>
#include <sys/types.h>
#include <string>
#include "base/memory/aligned_mem... | 2,897 | 1,024 |
//-------------------------------------------------------------------------------------------------------
// Copyright (C) Microsoft Corporation and contributors. All rights reserved.
// Licensed under the MIT license. See LICENSE.txt file in the project root for full license information.
//----------------------------... | 741,483 | 219,541 |
// wp_convertible_test.cpp
//
// Copyright (c) 2008 Peter Dimov
//
// SPDX-License-Identifier: BSL-1.0
// 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
#include <pika/local/config.hpp>
#include <pika/modules/... | 754 | 327 |
// Tags: DP
#include <bits/stdc++.h>
#define ll long long
#define IO ios_base::sync_with_stdio(0);cin.tie(0);cout.tie(0)
using namespace std;
const int N = 205;
int k, a, b, dp[N][N];
string s;
int solve(int i, int l)
{
if(i == s.size())
return l == k;
if(l == k)
return 0;
if(dp[i... | 1,022 | 464 |
/*=============================================================================
Copyright (c) 2009 Hartmut Kaiser
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)
==============================================... | 1,321 | 383 |
#include "fipch.h"
#include "Buffer.h"
#include "Renderer.h"
#include "Platform/OpenGL/OpenGLBuffer.h"
namespace Flick
{
///////////////////Index Buffer///////////////////
VertexBuffer* VertexBuffer::Create(float* verticies, uint32_t size)
{
switch (Renderer::GetAPI())
{
case RendererAPI::API::None: FI_COR... | 1,000 | 353 |
// 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 "components/password_manager/core/browser/login_database.h"
#include <stddef.h>
#include <stdint.h>
#include <memory>
#include "base/files/fil... | 65,474 | 22,965 |
/**********************************************************************
* File: statistc.c (Formerly stats.c)
* Description: Simple statistical package for integer values.
* Author: Ray Smith
* Created: Mon Feb 04 16:56:05 GMT 1991
*
* (C) Copyright 1991, Hewlett-Packard Ltd.
** Licensed... | 27,437 | 8,664 |
#include<stdio.h>
#include<stdlib.h>
#include<string.h>
int n;
char word[2000][10], sorted[2000][10];
int cmp_char(const void* _a, const void* _b) {
char* a = (char*)_a;
char* b = (char*)_b;
return *a - *b;
}
int cmp_string(const void* _a, const void* _b) {
char* a = (char*)_a;
char* b = (char*)_b;
return... | 980 | 458 |
#include <cmath>
#include <iomanip>
#include <iostream>
#include <limits>
#include <random>
#include <string>
#include <cblas.h>
#include <halide_blas.h>
#include "Halide.h"
#define RUN_TEST(method) \
std::cout << std::setw(30) << ("Testing " #method ": ") << std::flu... | 12,440 | 4,413 |
#include "stdafx.h"
#include "SRatingBar.h"
namespace SOUI
{
SRatingBar::SRatingBar(void):m_pStar(NULL),m_nStars(5),m_fValue(0.0f)
{
}
SRatingBar::~SRatingBar(void)
{
}
void SRatingBar::OnPaint(IRenderTarget *pRT)
{
CRect rcClient = GetClientRect();
int nWid = (int)(rc... | 1,476 | 606 |
#include <iostream>
#include <fstream>
#include <sstream>
#include <cstdlib>
#include "tpbst.hpp"
/*
* Case 19 : Empty tree, insert many items, create primary node with empty secondary tree, remove item with two children, print.
*/
int main() {
TwoPhaseBST<int> tpbst;
tpbst.insert("ceng351", "sec2", 32)
... | 1,033 | 423 |
/*
* Copyright (C) 2004-2015 ZNC, see the NOTICE file for details.
*
* 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 requi... | 32,159 | 15,138 |
#include "sendmessagesdialog.h"
#include "ui_sendmessagesdialog.h"
//#include "init.h"
#include "walletmodel.h"
#include "messagemodel.h"
#include "addressbookpage.h"
#include "optionsmodel.h"
#include "sendmessagesentry.h"
//#include "guiutil.h"
#include <QMessageBox>
#include <QLocale>
#include <QTextDocument>
#incl... | 9,172 | 2,793 |
/*
* Copyright (C) 2017-2020 Intel Corporation
*
* SPDX-License-Identifier: MIT
*
*/
#include "opencl/source/helpers/task_information.h"
#include "shared/source/command_stream/command_stream_receiver.h"
#include "shared/source/command_stream/csr_deps.h"
#include "shared/source/command_stream/linear_stream.h"
#in... | 21,287 | 5,214 |
/*
* 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 3 of the License, or
* any later version.
*
* This program is distributed in the hope that it will be useful,
* bu... | 7,396 | 3,243 |
#include "stdafx.h"
#include "CloakCompiler/Mesh.h"
#include "CloakEngine/Files/ExtendedBuffers.h"
#include "Engine/TempHandler.h"
#include "Engine/BoundingVolume.h"
#include <assert.h>
#include <sstream>
//#define DEBUG_ENFORCE_STRIPS
//#define DEBUG_ENFORCE_NO_STRIPS
#define ALLOW_STRIP_LIST_MIX
#de... | 50,386 | 24,750 |
#include <iostream>
#include "mdc2250/mdc2250.h"
#include "mdc2250/decode.h"
void telemetry_callback(const std::string &telemetry) {
std::cout << "Got telemetry: " << telemetry << std::endl;
}
int run() {
mdc2250::MDC2250 my_mdc2250(true);
my_mdc2250.connect("/dev/tty.USA49Wfd122P1.1");
// Disable echo
my_... | 1,870 | 848 |
#include <algorithm>
#include <iostream>
#include <utility>
using namespace std;
int main(){
int n;
while (true)
{
cin>>n;
cin.ignore(255,'\n');
if(n == 0){
break;
}
string s;
pair<string,int> arr[n];
string raw[n];
for (int i = 0;... | 927 | 337 |
// Copyright (c) 2017 Denis Blank
//
// SPDX-License-Identifier: BSL-1.0
// 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 <hpx/functional/deferred_call.hpp>
#include <hpx/futures/traits/ac... | 3,478 | 1,074 |
// Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "content/browser/devtools/devtools_manager.h"
#include "base/bind.h"
#include "base/message_loop/message_loop.h"
#include "content/browser/d... | 1,461 | 460 |
/*
* Copyright (c) 2013-2014, Julien Bernard
*
* Permission to use, copy, modify, and/or distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
*
* THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHO... | 1,696 | 632 |
/*******************************************************
* Copyright (C) 2022, Chen Jianqu, Shanghai University
*
* This file is part of is_slam.
*
* Licensed under the MIT License;
* you may not use this file except in compliance with the License.
*******************************************************/
#incl... | 4,619 | 2,017 |
// Copyright (c) 2009-2022 The Regents of the University of Michigan.
// Part of HOOMD-blue, released under the BSD 3-Clause License.
#include "UpdaterBoxMC.h"
#include "hoomd/RNGIdentifiers.h"
#include <numeric>
#include <vector>
/*! \file UpdaterBoxMC.cc
\brief Definition of UpdaterBoxMC
*/
namespace hoomd
... | 31,921 | 10,459 |
#if !defined(BE_UTIL_STRING_BASE64_DECODE_HPP_) && !defined(DOXYGEN)
#include "base64_decode.hpp"
#elif !defined(BE_UTIL_STRING_BASE64_DECODE_INL_)
#define BE_UTIL_STRING_BASE64_DECODE_INL_
namespace be::util {
namespace detail {
///////////////////////////////////////////////////////////////////////////////
template... | 3,489 | 1,298 |
// Copyright (c) 2017-2021, Mudita Sp. z.o.o. All rights reserved.
// For licensing, see https://github.com/mudita/MuditaOS/LICENSE.md
#include "endpoints/developerMode/event/ATRequest.hpp"
#include "handler/RawATHandler.hpp"
#include "CellularUrcHandler.hpp"
#include "service-cellular/CellularCall.hpp"
#include "ser... | 83,980 | 25,044 |
//
// impl/compose.hpp
// ~~~~~~~~~~~~~~~~
//
// Copyright (c) 2003-2020 Christopher M. Kohlhoff (chris at kohlhoff dot com)
//
// Distributed under the Boost Software License, Version 1.0. (See accompanying
// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
//
#ifndef BOOST_ASIO_IMPL_COMPOSE_HPP... | 20,461 | 8,132 |
#include <fc/real128.hpp>
#include <wallet/Config.hpp>
#include <wallet/Exceptions.hpp>
#include <wallet/Wallet.hpp>
#include <wallet/WalletImpl.hpp>
#include <blockchain/Time.hpp>
#include <cli/Pretty.hpp>
#include <utilities/GitRevision.hpp>
#include <utilities/KeyConversion.hpp>
#include <algorithm>
... | 288,039 | 75,688 |
#include <Windows.h>
#include <iostream>
#include <fstream>
#include <vector>
#include <string>
//const unsigned int SCREEN_WIDTH = 256;
//const unsigned int SCREEN_HEIGHT = 224;
const unsigned int SCREEN_WIDTH = 500;
const unsigned int SCREEN_HEIGHT = 500;
const unsigned int CELL_WIDTH = SCREEN_WIDTH;
const unsigne... | 4,922 | 1,708 |
// license:BSD-3-Clause
// copyright-holders:Ryan Holtz, David Haywood
#include "emu.h"
#include "includes/spg2xx.h"
class shredmjr_game_state : public spg2xx_game_state
{
public:
shredmjr_game_state(const machine_config &mconfig, device_type type, const char *tag) :
spg2xx_game_state(mconfig, type, tag),
m_por... | 8,330 | 4,294 |
// Copyright (c) 2016-2021 Daniel Frey and Dr. Colin Hirsch
// Distributed under the Boost Software License, Version 1.0.
// (See accompanying file LICENSE_1_0.txt or copy at https://www.boost.org/LICENSE_1_0.txt)
#include "../getenv.hpp"
#include "../macros.hpp"
#include <tao/pq/connection.hpp>
#if defined( _WIN32 ... | 2,625 | 943 |
/*******************************************************************************
* Copyright 2020 Intel Corporation
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.o... | 2,955 | 1,046 |
#include <iostream>
#include <algorithm>
void rotate_image(int a[][4], int n)
{
for (int i = 0; i < n; i++)
{
std::reverse(a[i], a[i] + n);
}
//take transpose
for (int i = 0; i < n; i++)
{
for (int j = 0; j < n; j++)
{
if(i<j)
std::swap(a[i][... | 875 | 396 |
///////////////////////////////////////////////////////////////////////////////
// BSD 3-Clause License
//
// Copyright (c) 2018, The Regents of the University of California
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the ... | 8,748 | 3,083 |
#include <cstdio>
#include <algorithm>
#include <cstring>
#include <queue>
using namespace std;
int flag, n;
void dfs(unsigned long long x, int k){
if(flag)
return;
if(x % n == 0){
printf("%llu\n", x);
flag = 1;
return;
}
if(k == 19)
return;
dfs(x * 10, k + 1);
dfs(x * 10 + 1, k + 1);
}
int main(){... | 392 | 204 |
#ifdef CH_LANG_CC
/*
* _______ __
* / ___/ / ___ __ _ / / ___
* / /__/ _ \/ _ \/ V \/ _ \/ _ \
* \___/_//_/\___/_/_/_/_.__/\___/
* Please refer to Copyright.txt, in Chombo's root directory.
*/
#endif
#include "QuadCFInterp.H"
#include "BoxIterator.H"
#include "QuadCFInterpF_F... | 31,004 | 10,732 |
// Copyright Oliver Kowalke 2014.
// Distributed under the Boost Software License, Version 1.0.
// (See accompanying file LICENSE_1_0.txt or copy at
// http://www.boost.org/LICENSE_1_0.txt)
#ifndef MEMORIA_CONTEXT_FIXEDSIZE_H
#define MEMORIA_CONTEXT_FIXEDSIZE_H
#include <cstddef>
#include <cstdl... | 2,195 | 863 |
#pragma once
#ifndef UITSL_CHRONO_TIMEGUARD_HPP_INCLUDE
#define UITSL_CHRONO_TIMEGUARD_HPP_INCLUDE
#include <chrono>
namespace uitsl {
template<typename DurationType, typename Clock=std::chrono::steady_clock>
class TimeGuard {
DurationType &dest;
const std::chrono::time_point<Clock> start;
public:
explicit... | 579 | 245 |
#include "Utils.hpp"
#define NOMINMAX
#include <Windows.h>
#include <stdio.h>
#include <string>
#include <vector>
#include "../valve_sdk/csgostructs.hpp"
#include "Math.hpp"
HANDLE _out = NULL, _old_out = NULL;
HANDLE _err = NULL, _old_err = NULL;
HANDLE _in = NULL, _old_in = NULL;
namespace Utils {
std::vector<c... | 8,241 | 2,866 |
#include <vector>
#include <gtest/gtest.h>
#include "../../main/recommender_data/ShuffleIterator.h"
namespace {
class TestShuffleIterator : public ::testing::Test {
public:
RecommenderData rd;
TestShuffleIterator() {
EXPECT_TRUE(rd.initialize());
}
virtual ~TestShuffleIterator() {
// You can do clea... | 6,873 | 3,070 |
/*
* Copyright (c) 2018 Samsung Electronics Co., Ltd. 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... | 4,301 | 1,577 |
// MIT License
//
// Copyright (c) 2021-2022. Seungwoo Kang
//
// 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,... | 9,916 | 3,925 |
/**
* Created by G-Canvas Open Source Team.
* Copyright (c) 2017, Alibaba, Inc. All rights reserved.
*
* This source code is licensed under the Apache Licence 2.0.
* For the full copyright and license information, please view
* the LICENSE file in the root directory of this source tree.
*/
#include "WebGLTexture... | 945 | 303 |
//==================================================================================================
/**
EVE - Expressive Vector Engine
Copyright : EVE Contributors & Maintainers
SPDX-License-Identifier: MIT
**/
//==================================================================================================
#... | 3,819 | 1,728 |
// Autogenerated from CppHeaderCreator
// Created by Sc2ad
// =========================================================================
#pragma once
// Begin includes
#include "beatsaber-hook/shared/utils/typedefs.h"
#include "beatsaber-hook/shared/utils/byref.hpp"
// Including type: Zenject.SubContainerCreatorB... | 12,285 | 3,965 |
/*
* 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... | 40,349 | 12,664 |
#include <memory>
#include <string>
#include <vector>
#include "envoy/extensions/filters/network/ratelimit/v3/rate_limit.pb.h"
#include "envoy/extensions/filters/network/tcp_proxy/v3/tcp_proxy.pb.h"
#include "envoy/stats/stats.h"
#include "source/common/buffer/buffer_impl.h"
#include "source/common/network/filter_man... | 18,192 | 5,922 |
/**
*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 n... | 11,553 | 3,995 |
// 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 <utility>
#include "base/command_line.h"
#include "base/strings/utf_string_conversions.h"
#include "mojo/public/cpp/bindings/binding.h"
#include... | 5,173 | 1,582 |
// ListViewDialog.cpp
#include "StdAfx.h"
#include "ListViewDialog.h"
#include "RegistryUtils.h"
#ifdef LANG
#include "LangUtils.h"
#endif
using namespace NWindows;
bool CListViewDialog::OnInit()
{
#ifdef LANG
LangSetDlgItems(*this, NULL, 0);
#endif
_listView.Attach(GetItem(IDL_LISTVIEW));
// FIXME if (... | 3,115 | 1,218 |
// 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 "components/services/app_service/public/cpp/icon_loader.h"
#include <utility>
#include "base/callback.h"
namespace apps {
IconLoader::Release... | 2,724 | 948 |
#include <slice.h>
namespace ld {
bool Slice::starts_with(const Slice& rhs) const
{
return (size_ >= rhs.size_) && (memcmp(data_, rhs.data(), rhs.size_) == 0);
}
}
| 188 | 73 |
#include "event_loop_base.h"
#include <sys/event.h>
#include <stdlib.h>
namespace mevent {
int EventLoopBase::Create() {
return kqueue();
}
int EventLoopBase::Add(int evfd, int fd, int mask, void *data) {
struct kevent ev;
if (mask & MEVENT_IN) {
EV_SET(&ev, fd, EVFILT_READ, EV_ADD, 0, 0, d... | 1,519 | 608 |
// Created on: 1996-12-11
// Created by: Robert COUBLANC
// Copyright (c) 1996-1999 Matra Datavision
// Copyright (c) 1999-2014 OPEN CASCADE SAS
//
// This file is part of Open CASCADE Technology software library.
//
// This library is free software; you can redistribute it and/or modify it under
// the terms of the GN... | 7,863 | 2,204 |
#include "Halide.h"
#include <stdio.h>
using namespace Halide;
int main(int argc, char **argv) {
Func f("f"), g("g");
Var x("x");
RDom r(0, 100, "r");
f(x) = x;
g(x) = 0;
g(x) = f(g(x - 1)) + r;
f.compute_at(g, r.x);
// Use of f is unbounded in g.
g.realize({100});
printf... | 352 | 172 |
/*
* Copyright (c) 2019 Samsung Electronics Co., 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... | 2,324 | 734 |
//------------------------------------------------------------------------------
/*
This file is part of rippled: https://github.com/ripple/rippled
Copyright (c) 2016 Ripple Labs Inc.
Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby grante... | 94,272 | 26,660 |
/**
* @file
* @copyright defined in eos/LICENSE.txt
*/
#pragma once
#include <eosio/chain/transaction.hpp>
#include "model.hpp"
namespace fc { class variant; }
namespace eosio {
namespace account {
/// Provides associate of wallet name to wallet and manages the interaction with each wallet.
///
/// The name of ... | 1,791 | 545 |
/**********************************************************************************
* MIT License
*
* Copyright (c) 2018 Antoine Beauchamp
*
* 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 So... | 2,602 | 825 |
#include "StdAfx.h"
#include "Selection.h"
// ===========================================================================
class NoCaseCompare
{
public:
bool operator ()(const std::_tstring & l, const std::_tstring & r) const
{
return _tcsicmp(l.c_str(), r.c_str()) < 0;
}
};
// ==================... | 12,318 | 4,086 |
#ifndef SHADER_HPP_
#define SHADER_HPP_
#include <string>
#include <fstream>
#include <sstream>
#include "includesOpengl.hpp"
/**
* @brief Shader class used to manage shader compilation
*
* It also adds some tools to set uniform and activate shader easier
* Warning! before instantiating a Shader object you need ... | 3,347 | 1,252 |
#include "aws_robomaker_gazebo_bridge/AwsPerfMetrics.h"
#include "boost/shared_ptr.hpp"
#include "gazebo/gazebo.hh"
#include "gazebo/gazebo_client.hh"
#include "ros/ros.h"
using PerfMetrics = aws_robomaker_gazebo_bridge::AwsPerfMetrics;
const std::string kDefaultGazeboPerfMetricsTopic = "/gazebo/aws/perf_metrics";
c... | 2,348 | 825 |
#pragma once
#include "BaseAnimatedWithPhysicsGameObject.hpp"
#include "Path.hpp"
#include "FunctionFwd.hpp"
enum class SwitchOp : s16;
enum class FootSwitchTriggerBy : s16
{
eOnlyAbe_0 = 0,
eAnyone_1 = 1,
};
struct Path_FootSwitch final : public Path_TLV
{
s16 field_10_id;
Scale_short field_12_scal... | 1,570 | 629 |
// Copyright 2021 The Tint Authors.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed ... | 18,366 | 6,301 |
// Copyright 2020 Tier IV, Inc.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to i... | 3,958 | 1,485 |
/*
* Copyright (c) 2016, 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 ... | 28,411 | 9,386 |
#include "strategy.h"
#include "librisk.h"
Strategy::Strategy() {
this->driver = GameDriver::getInstance();
}
/**
* @brief A signal sent to the Strategy class from the game driver to indicate
* that a computer-controlled player should made their move.
*
* The AI strategy implementations override each of the fooP... | 2,983 | 986 |
//
// Created by buran on 14/03/18.
//
#include <PeriodType.h>
#include <TwitchException.h>
std::string TwitchXX::PeriodType::toString(TwitchXX::PeriodType::Value v)
{
static const std::map<Value, std::string> strs{{Value::ALL, "all"}, {Value::DAY, "day"}, {Value::WEEK, "week"}, {Value::MONTH, "month"}};
try
... | 1,137 | 402 |
// Copyright (c) Glyn Matthews 2010.
// 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)
//[ hello_world_client_main
/*`
This is a part of the 'Hello World' example. We create a client
o... | 1,307 | 424 |
//
// Created by xmac on 18-10-17.
//
#include <bits/socket.h>
#include <netinet/in.h>
#include <arpa/inet.h>
#include <cerrno>
#include <cstring>
int inet_pton(int family, const char* strptr, void* addrptr) {
if (family == AF_INET) {
struct in_addr in_val;
if (inet_aton(strptr, &in_val)) {
... | 464 | 187 |
#include <iostream>
#include <vector>
#include <utility> // pair
using namespace std;
// 동적 계획법
int pibonacci(int n)
{
if(n <= 1)
{
return n;
}
else
{
return pibonacci(n-1) + pibonacci(n-2);
}
}
int main(void)
{
// int n;
// cin>>n;
for(int i = 0; i< 90;i++)
... | 387 | 183 |
/**************************************************************
*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to y... | 35,923 | 12,238 |
#pragma once
#include"./graph_template.hpp"
#include"../segment_tree/lazy_segment_tree.hpp"
template<typename T,typename E,typename F,typename G,typename H>
class HLD_lazy{
int child_size(const graph& v,int n,int p){
int cnt=0;
for(auto t:v[n]){
if(t!=p)cnt+=child_size(v,t,n);
}
return sz[n]=cnt+1;
}
vo... | 2,673 | 1,508 |
#include "PitchParameterField.h"
PitchParameterField::PitchParameterField(const char* _name) :
ParameterField(_name) {
}
void PitchParameterField::increment(int16_t amount) {
value += amount;
if(value > max) {
value = max;
}
dirtyValue = true;
}
void PitchParameterField::decrement(int16_t... | 676 | 219 |
#pragma once
// ARKSurvivalEvolved (329.9) SDK
#ifdef _MSC_VER
#pragma pack(push, 0x8)
#endif
#include "ARKSurvivalEvolved_Task_StunForestKaiju_classes.hpp"
namespace sdk
{
//---------------------------------------------------------------------------
//Parameters
//-------------------------------------------------... | 1,005 | 311 |
#include <stdio.h>
#include <string>
#include "Engine.h"
using namespace std;
bool Engine::Init(string WindowTitle) {
TTF_Init();
_graphics = new Graphics;
if (_graphics->Init(WindowTitle) == false)
return false;
_textureManager = new TextureManager(_graphics->GetRenderer());
_time = new Time;
if (_time->... | 4,878 | 1,857 |
//--------------------------------------------------------------------------------
// EnemyProjectiles.hpp
//--------------------------------------------------------------------------------
// The class that manages the projectiles fired by the enemies
//-----------------------------------------------------------------... | 1,182 | 347 |
/* This file is part of Jellyfish.
Jellyfish 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 3 of the License, or
(at your option) any later version.
Jellyfish is distributed ... | 2,522 | 882 |
// Copyright 2017 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "chrome/browser/ui/app_list/search/arc/arc_playstore_search_result.h"
#include <utility>
#include "ash/public/cpp/app_list/app_list_config.h"
#... | 6,194 | 2,014 |
// bslstl_stack.t.cpp -*-C++-*-
#include <bslstl_stack.h>
#include <bslstl_vector.h>
#include <bsltf_stdstatefulallocator.h>
#include <bsltf_stdtestallocator.h>
#include <bsltf_templatetestfacility.h>
#include <bsltf_testvaluesarray.h>
#include <bslma_allocator.h>
#inc... | 265,388 | 82,950 |
// -*- c++ -*-
//
// michael a.g. aïvázis <michael.aivazis@para-sim.com>
// (c) 1998-2021 all rights reserved
// support
#include <cassert>
// get the grid
#include <pyre/grid.h>
// type alias
using product_t = pyre::grid::product_t<4>;
// exercise iterating over products
int main(int argc, char * argv[])
{
//... | 1,025 | 378 |
/*=========================================================================
Library: iMSTK
Copyright (c) Kitware, Inc. & Center for Modeling, Simulation,
& Imaging in Medicine, Rensselaer Polytechnic Institute.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file e... | 2,060 | 670 |
#include "common/http/codec_client.h"
#include <cstdint>
#include <memory>
#include "envoy/http/codec.h"
#include "common/common/enum_to_int.h"
#include "common/config/utility.h"
#include "common/http/exception.h"
#include "common/http/http1/codec_impl.h"
#include "common/http/http2/codec_impl.h"
#include "common/ht... | 7,859 | 2,340 |
/* BugEngine <bugengine.devel@gmail.com>
see LICENSE for detail */
#ifndef BE_3D_SHADER_SHADER_SCRIPT_HH_
#define BE_3D_SHADER_SHADER_SCRIPT_HH_
/**************************************************************************************************/
#include <bugengine/plugin.graphics.3d/stdafx.h>
#include <buge... | 1,173 | 361 |
/*!
@file
Defines `boost::hana::tuple`.
@copyright Louis Dionne 2013-2017
@copyright Jason Rice 2017
Distributed under the Boost Software License, Version 1.0.
(See accompanying file LICENSE.md or copy at http://boost.org/LICENSE_1_0.txt)
*/
#ifndef BOOST_HANA_TUPLE_HPP
#define BOOST_HANA_TUPLE_HPP
#include <boost/... | 11,427 | 3,637 |
#include "RE/BSShader/BSShaderMaterial/BSLightingShaderMaterialBase/BSLightingShaderMaterialLandscape.h"
namespace RE
{
BSLightingShaderMaterialLandscape* BSLightingShaderMaterialLandscape::CreateMaterial()
{
auto material = malloc<BSLightingShaderMaterialLandscape>();
material->ctor();
return material;
}
... | 578 | 204 |
// Copyright (c) 2020 John Pursey
//
// Use of this source code is governed by an MIT-style License that can be found
// in the LICENSE file or at https://opensource.org/licenses/MIT.
#include "gb/base/flags.h"
#include "gtest/gtest.h"
namespace gb {
namespace {
enum BasicEnum {
kBasicEnum_Zero,
kBasicEnum_One,... | 31,089 | 10,202 |
// Copyright (c) 2022 Feng Yang
//
// I am making my contributions/submissions to this project solely in my
// personal capacity and am not conveying any rights to any intellectual
// property of any third parties.
#include "profiler_spy.h"
namespace vox {
ProfilerSpy::ProfilerSpy(const std::string &p_name) :
nam... | 482 | 179 |