text stringlengths 5 1.04M |
|---|
/*
* Copyright (C) 1999 Lars Knoll (knoll@kde.org)
* (C) 1999 Antti Koivisto (koivisto@kde.org)
* (C) 2001 Dirk Mueller (mueller@kde.org)
* Copyright (C) 2004, 2005, 2006, 2007, 2008, 2010 Apple Inc. All rights reserved.
* (C) 2006 Alexey Proskuryakov (ap@nypop.com)
*
* This library... |
#include "InjectOpenGLIntrinsics.h"
#include "CodeGen_GPU_Dev.h"
#include "FuseGPUThreadLoops.h"
#include "IRMutator.h"
#include "IROperator.h"
#include "Scope.h"
#include "Substitute.h"
namespace Halide {
namespace Internal {
using std::string;
using std::vector;
/** Normalizes image loads/stores and produces glsl_... |
#include <iostream>
#include <vector>
#include <cmath>
#include <algorithm>
using namespace std;
/* Código de: https://iq.opengenus.org/strassens-matrix-multiplication-algorithm/
Código para resolver una multiplicación de matrices utilizando el algorítmo de
multiplicación de matrices de Strassen, uti... |
#include <bits/stdc++.h>
#include <ext/pb_ds/assoc_container.hpp> // Common file
#include <ext/pb_ds/tree_policy.hpp> // Including tree_order_statistics_node_update
using namespace __gnu_pbds;
using namespace std;
#pragma GCC optimize("O3")
#pragma GCC optimization ("unroll-loops")
#pragma region
using ll = lo... |
//===- Simulation.cpp - Handshake MLIR Operations -----------------------===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
//
//===-----------------------------... |
#include "stdafx.h"
#include "StackTrace.h"
#include "MapFile.h"
#include "MapFileEntry.h"
//-----------------------------------------------------------------------------
#define MAX_DEPTH 32
//-----------------------------------------------------------------------------
namespace dev
{
static lo... |
// ObjectTalk Scripting Language
// Copyright (c) 1993-2022 Johan A. Goossens. All rights reserved.
//
// This work is licensed under the terms of the MIT license.
// For a copy, see <https://opensource.org/licenses/MIT>.
//
// Include files
//
#include <algorithm>
#include <cmath>
#include <cstdlib>
#include <ctime... |
Given the array nums, for each nums[i] find out how many numbers in the array are smaller than it. That is, for each nums[i] you have to count the number of valid j's such that j != i and nums[j] < nums[i].
Return the answer in an array.
Example 1:
Input: nums = [8,1,2,2,3]
Output: [4,0,1,1,3]
Explanation:
For num... |
/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
/*
* Copyright (c) 2013-2019 Regents of the University of California.
*
* This file is part of ndn-cxx library (NDN C++ library with eXperimental eXtensions).
*
* ndn-cxx library is free software: you can redistribute it and/or modify it under the
... |
/*
* motion_gateway_rpi.cpp
*
* Created on: 3 mai 2014
* Author: essoussi
*/
#include "GatewayManager.h"
#include <iostream>
#include <cstring>
#include <cstdlib>
int main (int argc, char* argv[])
{
uint32_t ErrorGateWayCode = 0;
/** Instanciate the gateway manager */
GatewayManager_c gatewayManager... |
//
// VulkanConvolution.hpp
// MNN
//
// Created by MNN on 2019/01/31.
// Copyright © 2018, Alibaba Group Holding Limited
//
#ifndef VulkanConvolution_hpp
#define VulkanConvolution_hpp
#include "VulkanBasicExecution.hpp"
#include "core/ConvolutionCommon.hpp"
namespace MNN {
class VulkanConvolutionCommon : public ... |
///////////////////////////////////////////////////////////////////////////////////////////////////
///
/// Ivy Engine
///
/// Copyright 2010-2011, Brandon Light
/// All rights reserved.
///
///////////////////////////////////////////////////////////////////////////////////////////////////
#include "IvyInp... |
/******************************************************************************
@File OGLES3ColourGrading.cpp
@Title Colour grading
@Version
@Copyright Copyright (c) Imagination Technologies Limited.
@Platform Independent
@Description Demonstrates how to colour grade your render... |
/*
14:扫雷游戏地雷数计算
查看
提交
统计
提问
总时间限制: 1000ms 内存限制: 65536kB
描述
扫雷游戏是一款十分经典的单机小游戏。它的精髓在于,通过已翻开格子所提示的周围格地雷数,来判断未翻开格子里是否是地雷。
现在给出n行m列的雷区中的地雷分布,要求计算出每个非地雷格的周围格地雷数。
注:每个格子周围格有八个:上、下、左、右、左上、右上、左下、右下。
输入
第一行包含两个整数n和m,分别表示雷区的行数和列数。1 <= n <= 100, 1 <= m <= 100。
接下来n行,每行m个字符,‘*’表示相应格子中是地雷,‘?’表示相应格子中无地雷。字符之间无任何分隔符。
输出
... |
#include "LightInspector.hpp"
#include "imgui/imgui.h"
namespace CpuRasterizer
{
void LightInspector::on_gui(DirectionalLight& light)
{
if (ImGui::CollapsingHeader("Light", ImGuiTreeNodeFlags_DefaultOpen))
{
if (ImGui::InputFloat("distance", &distance))
{
light.distance = distance;
}
else
{
... |
//*********************************************************
//
// Copyright (c) Microsoft. All rights reserved.
// This code is licensed under the MIT License (MIT).
// THIS CODE IS PROVIDED *AS IS* WITHOUT WARRANTY OF
// ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING ANY
// IMPLIED WARRANTIES OF FITNESS FOR A P... |
// Copyright 1998-2016 Epic Games, Inc. All Rights Reserved.
#include "DetailCustomizationsPrivatePCH.h"
#include "InputStructCustomization.h"
#include "InputSettingsDetails.h"
#include "GameFramework/PlayerInput.h"
#define LOCTEXT_NAMESPACE "InputStructCustomization"
///////////////////////////////////
// FInputAxi... |
#pragma once
#include "Game.hpp"
#include <string>
class GameObject
{
public:
GameObject(const char* textureSheet, SDL_Renderer* rend, int x, int y);
~GameObject();
void update();
void render();
private:
int xpos;
int ypos;
SDL_Texture* objTexture;
SDL_Rect srcRect;
SDL_Rect destRect;
... |
/*
* 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 ... |
/******************************************************************************
* The MIT License (MIT)
*
* Copyright (c) 2019-2021 Baldur Karlsson
*
* 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... |
//*****************************************************************************
// Copyright 2017-2020 Intel Corporation
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://w... |
// 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 "athena/test/base/sample_activity.h"
#include "athena/input/public/accelerator_manager.h"
#include "ui/gfx/image/image_skia.h"
#include "ui/view... |
// struct node {
// int data;
// struct node* left;
// struct node* right;
// }
// inorder(root->left)
// display(root->data)
// inorder(root->right)
|
#include "../core/global.h"
#include "../core/config_parser.h"
#include "../core/fileutils.h"
#include "../core/timer.h"
#include "../core/datetime.h"
#include "../core/makedir.h"
#include "../dataio/sgf.h"
#include "../search/asyncbot.h"
#include "../program/setup.h"
#include "../program/playutils.h"
#include "../prog... |
#include "frmgaugeround.h"
#include <QApplication>
int main(int argc, char *argv[])
{
QApplication a(argc, argv);
frmGaugeRound w;
w.show();
return a.exec();
}
|
/*
Copyright (c) 2007-2010, 2013-2019, Arvid Norberg
Copyright (c) 2014, Steven Siloti
Copyright (c) 2015, Thomas Yuan
Copyright (c) 2016, Alden Torres
All rights reserved.
You may use, distribute and modify this code under the terms of the BSD license,
see LICENSE file.
*/
#ifndef OBSERVER_HPP
#define OBSERVER_HPP
... |
// Copyright (C) 2002-2009 Nikolaus Gebhardt
// This file is part of the "Irrlicht Engine".
// For conditions of distribution and use, see copyright notice in irrlicht.h
#include "IrrCompileConfig.h"
#ifdef _IRR_COMPILE_WITH_STL_WRITER_
#include "CSTLMeshWriter.h"
#include "os.h"
#include "IMesh.h"
#inclu... |
#ifdef USE_OMP
#include <omp.h>
#endif // USE_OMP
#include "rawscale.h"
#include "minmax.h"
/// Clamp function
template <class T> T CLAMP(const T &value, const T &min_value, const T &max_value)
{
return ((value < min_value) ? min_value : (value > max_value) ? max_value : value);
}
RawScaleWeightsTable::RawScaleWeig... |
/****************************** RMX SDK ******************************\
* Copyright (c) 2007 Vincent E. Milum Jr., All rights reserved. *
* *
* See license.txt for more information *
* ... |
// Copyright (c) 2007-2012 Hartmut Kaiser
//
// 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)
#if !defined(HPX_HEARTBEAT_WIN_PERF_COUNTERS_2011_JUL_24_0259PM)
#define HPX_HEAR... |
// ____ ______ __
// / __ \ / ____// /
// / /_/ // / / /
// / ____// /___ / /___ PixInsight Class Library
// /_/ \____//_____/ PCL 02.01.11.0938
// ----------------------------------------------------------------------------
// pcl/Cursor.cpp - Released 2019-01-21T12:06:21Z
// -------------------... |
// Pyraminx.cpp
#include "Pyraminx.h"
wxIMPLEMENT_DYNAMIC_CLASS( Pyraminx, PyraminxBase );
Pyraminx::Pyraminx( void )
{
}
/*virtual*/ Pyraminx::~Pyraminx( void )
{
}
/*virtual*/ int Pyraminx::Layers( void )
{
return 3;
}
// Pyraminx.cpp |
#include <MaterialXGenShader/Syntax.h>
#include <MaterialXGenShader/Shader.h>
#include <MaterialXCore/Value.h>
namespace MaterialX
{
Syntax::Syntax()
{
}
void Syntax::registerTypeSyntax(const TypeDesc* type, TypeSyntaxPtr syntax)
{
auto it = _typeSyntaxByType.find(type);
if (it != _typeSyntaxByType.end())
... |
//==============================================================================
// Copyright 2003 - 2011 LASMEA UMR 6602 CNRS/Univ. Clermont II
// Copyright 2009 - 2011 LRI UMR 8623 CNRS/Univ Paris Sud XI
//
// Distributed under the Boost Software License, Version 1.0.
// Se... |
#include <avr/io.h>
#include <avr/sleep.h>
#include <avr/interrupt.h>
#include <Arduino.h>
#include "atomic.h"
#include "device.h"
#include "timer.h"
static Device *t1;
ISR(TIM1_COMPA_vect) {
if (t1)
t1->ready();
}
bool Timer::begin() {
t1 = this;
TCCR1A = 0;
// CTC mode, no prescaler
TCCR1B = _BV(WGM12) | ... |
/* ------------------------------------------------------------------
* Copyright (C) 2008 PacketVideo
*
* 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/li... |
/******************************************************************************
*
* Project: OpenGIS Simple Features Reference Implementation
* Purpose: Implements OGRGRASSDriver class.
* Author: Radim Blazek, radim.blazek@gmail.com
*
***************************************************************************... |
// Copyright (c) 2020 The Zortcoin Core developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include <test/fuzz/FuzzedDataProvider.h>
#include <test/fuzz/fuzz.h>
#include <test/fuzz/util.h>
#include <cstdint>
#include <s... |
/*
* Copyright (C) 2011 Google Inc. All rights reserved.
* Copyright (C) 2011, 2012, 2015 Ericsson AB. All rights reserved.
* Copyright (C) 2013-2019 Apple Inc. All rights reserved.
* Copyright (C) 2013 Nokia Corporation and/or its subsidiary(-ies).
*
* Redistribution and use in source and binary forms, with or w... |
//===--- CSClosure.cpp - Closures -----------------------------------------===//
//
// This source file is part of the Swift.org open source project
//
// Copyright (c) 2014 - 2018 Apple Inc. and the Swift project authors
// Licensed under Apache License v2.0 with Runtime Library Exception
//
// See https://swift.org/L... |
#include "catch.hpp"
extern "C"{
#include "../../open_lin_cfg.h"
#include "../../open_lin_data_layer.h"
#include "../../open_lin_hw.h"
#include "../../open_lin_network_layer.h"
#include "../../open_lin_master_data_layer.h"
extern uint8_t* get_last_tx();
extern uint8_t get_last_tx_index();
extern t_open_l... |
#include "utils/FastTimer.hpp"
#include "utils/utils.hpp"
#include <QMutexLocker>
#include <QTimerEvent>
#include <QThread>
#define TU FastTimerTU
namespace TU {
constexpr auto NO_TIMER = -1;
}
FastTimer::FastTimer(QObject *parent) :
QObject(parent),
mCallback(nullptr),
mCallbackData(nullptr),
mIn... |
#ifndef BOOST_MPL_AUX_CONFIG_CTPS_HPP_INCLUDED
#define BOOST_MPL_AUX_CONFIG_CTPS_HPP_INCLUDED
// Copyright Aleksey Gurtovoy 2000-2004
//
// 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)
//
// See http://www.bo... |
// RUN: %clang_cc1 -verify -fopenmp %s
void foo() {
}
bool foobool(int argc) {
return argc;
}
struct S1; // expected-note {{declared here}}
template <class T, typename S, int N, int ST> // expected-note {{declared here}}
T tmain(T argc, S **argv) { //expected-note 2 {{declared here}}
#pragma omp for simd simdle... |
/*
tests/pybind11_cross_module_tests.cpp -- contains tests that require multiple modules
Copyright (c) 2017 Jason Rhinelander <jason@imaginary.ca>
All rights reserved. Use of this source code is governed by a
BSD-style license that can be found in the LICENSE file.
*/
#include "pybind11_tests.h"
#inc... |
// socket.cpp
//
// --------------------------------------------------------------------------
// This file is part of the "sockpp" C++ socket library.
//
// Copyright (c) 2014-2017 Frank Pagliughi
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are perm... |
/*
* Copyright (c) 2016 MariaDB Corporation Ab
*
* Use of this software is governed by the Business Source License included
* in the LICENSE.TXT file and at www.mariadb.com/bsl11.
*
* Change Date: 2025-03-24
*
* On the date above, in accordance with the Business Source License, use
* of this software will be g... |
// $Id: PropertySeq.cpp 1861 2011-08-31 16:18:08Z mesnierp $
#include "orbsvcs/Notify/PropertySeq.h"
#if ! defined (__ACE_INLINE__)
#include "orbsvcs/Notify/PropertySeq.inl"
#endif /* __ACE_INLINE__ */
TAO_BEGIN_VERSIONED_NAMESPACE_DECL
TAO_Notify_PropertySeq::TAO_Notify_PropertySeq (void)
{
}
TAO_Notify_PropertyS... |
// Optimise
#include <bits/stdc++.h>
#include <ext/pb_ds/assoc_container.hpp>
#include <ext/pb_ds/tree_policy.hpp>
using namespace std;
using namespace __gnu_pbds;
// #define MULTI_TEST
#ifdef LOCAL
#define db(...) ZZ(#__VA_ARGS__, __VA_ARGS__);
#define pc(...) PC(#__VA_ARGS__, __VA_ARGS__);
template <typename T, type... |
/*
* This file is part of the Simutrans project under the Artistic License.
* (see LICENSE.txt)
*/
/* this file has all functions for variable gui elements */
#include "gui_theme.h"
#include "../world/simworld.h"
#include "../simskin.h"
#include "../tool/simmenu.h"
#include "../sys/simsys.h"
#include "../dataobj/... |
#pragma once
#include "natalie/gc/cell.hpp"
#include "tm/vector.hpp"
namespace Natalie {
class MarkingVisitor : public Cell::Visitor {
public:
virtual void visit(Cell *cell) override final {
if (!cell || cell->is_marked()) return;
cell->mark();
cell->visit_children(*this);
}
virt... |
#include "Precompiled.h"
#include "geojson.h"
#include "projection.h"
int discarded = 0;
#ifdef KEEP_2D
//-----------------------------------------------------------------------------
static inline void extractP(const rapidjson::Value& _in, Point& p, const Tile& _tile)
{
const Vec2d pos = LonLatToMeters(Vec2d(... |
//===- X86ISelDAGToDAG.cpp - A DAG pattern matching inst selector for X86 -===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
//
//===---------------------------... |
// Copyright 2021 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// https://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in... |
/*!
@file
Defines `boost::hana::maximum`.
@copyright Louis Dionne 2013-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_MAXIMUM_HPP
#define BOOST_HANA_MAXIMUM_HPP
#include <boost/hana/fwd/... |
#include <iostream>
#include "../include/nyx_solver.hpp"
int main() {
#if 0
#if 0
Pose firstPose(2,0,0);
Pose secondPose(1,1,0);
//Pose secondPose(-0.330083,1.972496,0);
//Pose secondPose(0.8,0,0);
//Pose secondPose(0,2,0);
std::vector<Link> chain = std::vector<Link>();
chain.push_back(L... |
// Copyright Epic Games, Inc. All Rights Reserved.
#include "ConnectFourGameModeBase.h"
|
#include "envoy/common/platform.h"
#include "envoy/config/core/v3/base.pb.h"
#include "common/api/os_sys_calls_impl.h"
#include "common/network/io_socket_handle_impl.h"
#include "common/network/listen_socket_impl.h"
#include "common/network/utility.h"
#include "test/mocks/network/mocks.h"
#include "test/test_common/e... |
/*
* CommandFlashLock.cpp
*
* Created on: Sep 10, 2021
* Author: djek-sweng
*/
#include "CommandFlashLock.h"
#include "global.h"
namespace Bootloader
{
CommandFlashLock::CommandFlashLock(
const char* device,
uint32_t baudRate
) : Command { device, baudRate }
{
}
Command... |
// Electroslag Interactive Graphics System
// Copyright 2018 Joshua Buckman
//
// 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
//
/... |
// MusicXML Class Library
// Copyright (c) by Matthew James Briggs
// Distributed under the MIT License
#include "mx/core/elements/KeyStep.h"
#include "mx/core/FromXElement.h"
#include <iostream>
namespace mx
{
namespace core
{
KeyStep::KeyStep()
:myValue( StepEnum::a )
{}
Ke... |
#include <gossip/dispatcher.hpp>
using gossip::Dispatcher;
Dispatcher::Dispatcher() { }
Dispatcher::~Dispatcher() noexcept { }
|
/* Copyright (c) 2018 PaddlePaddle Authors. 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 by applicable law or agr... |
/**********************************************************************
* Copyright (c) 2008-2014, Alliance for Sustainable Energy.
* All rights reserved.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by t... |
//
// main.cpp
// Assignment 5 demo
//
// Created by z on 3/30/18.
// Copyright © 2018 210. All rights reserved.
#include <string>
#include <iostream>
using namespace std;
//DynamicStack.h
// Stack template
template <class T>
class DynamicStack
{
private:
int num_elements=0;
// Structure for the sta... |
/******************************************************************************
*
* Project: GDAL
* Purpose: Generic Binary format driver (.hdr but not ESRI .hdr!)
* Author: Frank Warmerdam, warmerdam@pobox.com
*
******************************************************************************
* Copyright (c) 2... |
#include "semantic_analyser.h"
#include <algorithm>
#include <cstring>
#include <regex>
#include <string>
#include <sys/stat.h>
#include <bcc/libbpf.h>
#include "arch/arch.h"
#include "ast/ast.h"
#include "ast/signal_bt.h"
#include "fake_map.h"
#include "log.h"
#include "printf.h"
#include "probe_matcher.h"
#include... |
auto ARM7TDMI::fetch() -> void {
pipeline.execute = pipeline.decode;
pipeline.decode = pipeline.fetch;
pipeline.decode.thumb = cpsr().t;
u32 sequential = Sequential;
if(pipeline.nonsequential) {
pipeline.nonsequential = false;
sequential = Nonsequential;
}
u32 mask = !cpsr().t ? 3 : 1;
u32 siz... |
///////////////////////////////////////////////////////////////////////////
//
// Copyright (c) 2004-2014, Industrial Light & Magic, a division of Lucas
// Digital Ltd. LLC
//
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that th... |
/*
* Copyright 2020 Northwestern Inclusive Technology Lab
*
* 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... |
// Copyright (C) 2020 Intel Corporation
// SPDX-License-Identifier: Apache-2.0
//
#include "layer_transformation.hpp"
#include <string>
#include <sstream>
#include <memory>
#include <gtest/gtest.h>
#include <transformations/utils/utils.hpp>
#include <transformations/init_node_info.hpp>
#include <low_precision/trans... |
// Copyright 2019 Lawrence Livermore National Security, LLC and other
// Devil Ray Developers. See the top-level COPYRIGHT file for details.
//
// SPDX-License-Identifier: (BSD-3-Clause)
#include "gtest/gtest.h"
#include <dray/vec.hpp>
#include <type_traits>
using namespace dray;
TEST (dray_vec, dray_vec)
{
Vec3f v... |
// Copyright (c) 2014 The Lmcoin Core developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include "winshutdownmonitor.h"
#if defined(Q_OS_WIN) && QT_VERSION >= 0x050000
#include "init.h"
#include "util.h"
#include <win... |
/*=============================================================================
Phoenix V1.2.1
Copyright (c) 2001-2003 Joel de Guzman
Copyright (c) 2003 Vaclav Vesely
Use, modification and distribution is subject to the Boost Software
License, Version 1.0. (See accompanying file LICENSE_1_0.txt or ... |
#include "if_else.h"
//write include statement for if_else header file
//write code for function named get_generation that accepts an int year and returns
//a string, apply the following logic:
//return "Centenial" when year greater than equal to 1996 to 2014
//return "Millenial" when year greater than equal to 1977 t... |
//===-- SymbolFileDWARF.cpp -----------------------------------------------===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
//
//===---------------------------... |
/******************************************************************************
* Copyright (c) Intel Corporation - All rights reserved. *
* This file is part of the LIBXSMM library. *
* *
... |
// 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 "content/browser/worker_host/dedicated_worker_service_impl.h"
#include <memory>
#include <utility>
#include "base/callback_helpers.h"
#include ... |
#pragma once
#include <object.hpp>
#include <string_object.hpp>
#include <null_object.hpp>
#include <memory>
#include <vector>
namespace walnut
{
struct TupleObject : Object
{
std::vector<ObjectPtr> elements;
typedef std::vector<ObjectPtr>::iterator ObjectIterator;
ObjectIterator iterator;
TupleObject() : O... |
// Copyright 2014 the V8 project authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#if V8_TARGET_ARCH_S390
#include "src/api/api-arguments.h"
#include "src/codegen/code-factory.h"
#include "src/codegen/interface-descriptors-inl.h"
// ... |
/* $Id$ */
/*
* This file is part of OpenTTD.
* OpenTTD is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, version 2.
* OpenTTD is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without... |
// Copyright 2013 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "goose.h"
namespace {
// The maximum speed of a goose. Measured in meters/second.
const double kMaxSpeed = 2.0;
// The maximum force that ca... |
//
// Copyright (C) 2011 Denis V Chapligin
// 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)
//
#define BOOST_TEST_MODULE "STLCachePolicyLFUAging*"
#ifndef _MSC_VER
#include <unistd.h>
#define WAIT_A_SECOND sleep... |
/*
+----------------------------------------------------------------------+
| Swoole |
+----------------------------------------------------------------------+
| This source file is subject to version 2.0 of the Apache license, |
| that is bundl... |
//==================================================================================================
/*!
@file
@copyright 2016 NumScale SAS
Distributed under the Boost Software License, Version 1.0.
(See accompanying file LICENSE.md or copy at http://boost.org/LICENSE_1_0.txt)
*/
//===========================... |
#include "Composite.h"
Component::Component() {
}
Component::~Component() {
}
void Component::Add(const Component& com) {
}
Component* Component::GetChild(int index) {
return 0;
}
void Component::Remove(const Component& com) {
}
Composite::Composite() {
}
Composite::~Composite... |
/*
* NAppGUI Cross-platform C SDK
* 2015-2021 Francisco Garcia Collado
* MIT Licence
* https://nappgui.com/en/legal/license.html
*
* File: col2d.hpp
*
*/
/* 2D Collision detection */
#ifndef __COL2D_HPP__
#define __COL2D_HPP__
#include "cir2d.hpp"
#include "box2d.hpp"
#include "obb2d.hpp"
#include "pol2d.hpp... |
/*
* If not stated otherwise in this file or this component's LICENSE file the
* following copyright and licenses apply:
*
* Copyright 2014 RDK Management
*
* 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 cop... |
#include "GeneratedTypes.h"
#ifdef PORTAL_JSON
#include "jsoncpp/json/json.h"
int MemServerRequestJson_addrTrans ( struct PortalInternal *p, const uint32_t sglId, const uint32_t offset )
{
Json::Value request;
request.append(Json::Value("addrTrans"));
request.append((Json::UInt64)sglId);
request.append... |
#include "utils/string.hpp"
#include "common/test.hpp"
using namespace polybar;
TEST(String, ends_with) {
EXPECT_TRUE(string_util::ends_with("foo", "foo"));
EXPECT_TRUE(string_util::ends_with("foobar", "bar"));
EXPECT_TRUE(string_util::ends_with("foobar", ""));
EXPECT_FALSE(string_util::ends_with("foo", "bar... |
/*
* Copyright (c) 2015 Andrew Kelley
*
* This file is part of zig, which is MIT licensed.
* See http://opensource.org/licenses/MIT
*/
#include "parser.hpp"
#include "errmsg.hpp"
#include "analyze.hpp"
#include <stdarg.h>
#include <stdio.h>
#include <limits.h>
#include <errno.h>
struct ParseContext {
Buf *b... |
/* file: svd_dense_default_online_fpt_cpu.cpp */
/*******************************************************************************
* Copyright 2014-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 obtai... |
// Copyright Contributors to the Open Shading Language project.
// SPDX-License-Identifier: BSD-3-Clause
// https://github.com/AcademySoftwareFoundation/OpenShadingLanguage
#include <OSL/oslconfig.h>
#include <OpenImageIO/thread.h>
#include <OpenImageIO/imagebuf.h>
#include <OpenImageIO/imagebufalgo_util.h>
#include... |
//===----------------------------------------------------------------------===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
//
//===---------------------------... |
// 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 <utility>
#include <vector>
#include "base/callback.h"
#include "base/callback_helpers.h"
#include "base/containers/contains.h"
#include "base/f... |
#include <iostream>
#include <vector>
#include <cmath>
#include <chrono>
int main( int argc, char **argv )
{
size_t n = 1 << 26;
size_t n0 = 1 << 0;
size_t n1 = 1 << 1;
size_t n2 = 1 << 2;
size_t n3 = 1 << 3;
std::cout << " n = " << n << std::endl;
std::cout << " n0 = " << n0 << std::endl;
... |
// Copyright 2004-present Facebook. All Rights Reserved.
#include "ABI24_0_0JSCExecutor.h"
#include <algorithm>
#include <condition_variable>
#include <fcntl.h>
#include <mutex>
#include <sstream>
#include <string>
#include <sys/time.h>
#include <sys/socket.h>
#include <system_error>
#include <arpa/inet.h>
#include ... |
/************************************************************************************
Filename : OptionMenu.h
Content : Option selection and editing for OculusWorldDemo
Created : March 7, 2014
Authors : Michael Antonov, Caleb Leak
Copyright : Copyright 2012 Oculus VR, Inc. All Rights reserv... |
/**
* @file PlatformPCH.cpp
* @author zopenge (zopenge@126.com)
* @brief The precompiled header of platform module.
* @version 0.1
* @date 2021-06-26
*
* @copyright Copyright (c) 2021
*
*/
#include "PlatformPCH.h"
#pragma region "Global variables implementation"
_thread_id EGE::gMainThreadID = 0;
Performa... |
#include <std/ref.h>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <iostream>
#include <sstream>
#include <vector>
#include <uv.h>
#include <atframe/atapp.h>
#include <common/file_system.h>
#include <time/time_utility.h>
#include "atproxy_manager.h"
static int app_handle_on_resp... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.