text stringlengths 7 961k |
|---|
#include "TextualTypes.h"
#include "pango/pangocairo.h"
namespace Eleusis
{
PangoAlignment convertParagraphAligmentToPangoAligment(ParagraphAlignment aligment)
{
switch (aligment)
{
case ParagraphAlignment::Left:
case ParagraphAlignment::JustifiedLeft:
return PangoAl... |
// Copyright (c) 2016-2018 Duality Blockchain Solutions Developers
// Copyright (c) 2014-2018 The Dash Core Developers
// Copyright (c) 2009-2018 The Bitcoin Developers
// Copyright (c) 2009-2018 Satoshi Nakamoto
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opens... |
// Copyright (c) 2010 Satoshi Nakamoto
// Copyright (c) 2009-2012 The Bitcoin developers
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include "assert.h"
#include "chainparams.h"
#include "main.h"
#include "util.h"
#inc... |
#include "KAI/Language/Rho/RhoToken.h"
KAI_BEGIN
#undef CASE
#undef CASE_LOWER
#undef CASE_REPLACE
const char *RhoTokenEnumType::ToString(Enum val)
{
switch (val)
{
#define CASE(N) case RhoTokens::N : return #N;
#define CASE_LOWER(N) case RhoTokens::N : return ToLower(#N);
#define CASE_REPLACE(N, M) case Rho... |
/**
* Definition for singly-linked list.
* struct ListNode {
* int val;
* ListNode *next;
* ListNode(int x) : val(x), next(NULL) {}
* };
*/
class Solution {
public:
ListNode* middleNode(ListNode* head) {
ListNode* quick = head;
ListNode* slow = head;
while(quick != NULL &&... |
#include <cstdio>
#include <cstring>
#include <cmath>
#include <algorithm>
using namespace std;
typedef long long ll;
struct Point3 {
int x, y, z;
Point3 (int x = 0, int y = 0, int z = 0): x(x), y(y), z(z) {}
bool operator < (const Point3& u) const { return x-u.x<0 || (x-u.x==0 && y-u.y<0) || (x-u.x==0 && y-u.y==... |
/*
* Copyright 2015 Georgia Institute of Technology
*
* 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 applicab... |
/*
* Copyright 2009-2017 Alibaba Cloud 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... |
#include <abi/Paths.h>
#include <libutils/ArgParse.h>
#include <libio/Format.h>
#include <libio/Socket.h>
#include <libio/Streams.h>
#include "compositor/Protocol.h"
static const IOCallDisplayModeArgs GFX_MODES[] = {
{640, 360},
{800, 600},
{1024, 768},
{1280, 720},
{1280, 800},
{1280, 1024}... |
// Copyright (c) 2015-2020 Vittorio Romeo
// License: Academic Free License ("AFL") v. 3.0
// AFL License page: http://opensource.org/licenses/AFL-3.0
// http://vittorioromeo.info | vittorio.romeo@outlook.com
#pragma once
#include <vrm/core/config.hpp>
#include <vrm/core/type_aliases.hpp>
#include <type_traits>
#inc... |
#ifndef BOOST_MPL_VECTOR_HPP_INCLUDED
#define BOOST_MPL_VECTOR_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.boost.org/libs/mpl fo... |
// Copyright 1998-2019 Epic Games, Inc. All Rights Reserved.
#include "Plugin_CppCharacter.h"
#include "HeadMountedDisplayFunctionLibrary.h"
#include "Camera/CameraComponent.h"
#include "Components/CapsuleComponent.h"
#include "Components/InputComponent.h"
#include "GameFramework/CharacterMovementComponent.h"
#include... |
// _ _____ __________
// | | / / _ | / __/_ __/ Visibility
// | |/ / __ |_\ \ / / Across
// |___/_/ |_/___/ /_/ Space and Time
//
// SPDX-FileCopyrightText: (c) 2016 The VAST Contributors
// SPDX-License-Identifier: BSD-3-Clause
#pragma once
#include "vast/config.hpp"
#include "vast/... |
//===-- SBHostOSBinding.cpp -------------------------------------*- C++ -*-===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===-------------------------------------------------------... |
#include "providers/twitch/PubsubClient.hpp"
#include "providers/twitch/PubsubActions.hpp"
#include "providers/twitch/PubsubHelpers.hpp"
#include "singletons/Settings.hpp"
#include "util/Helpers.hpp"
#include "util/RapidjsonHelpers.hpp"
#include <rapidjson/error/en.h>
#include <exception>
#include <iostream>
#includ... |
/*
* If not stated otherwise in this file or this component's LICENSE file the
* following copyright and licenses apply:
*
* Copyright 2020 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... |
// File include/oglplus/enums/stencil_operation.hpp
//
// Automatically generated file, DO NOT modify manually.
// Edit the source 'source/enums/oglplus/stencil_operation.txt'
// or the 'source/enums/make_enum.py' script instead.
//
// Copyright 2010-2019 Matus Chochlik.
// Distributed under the Boost Software Li... |
// Copyright (c) 2009-2010 Satoshi Nakamoto
// Copyright (c) 2011 Vince Durham
// Copyright (c) 2009-2014 The Bitcoin developers
// Copyright (c) 2014-2017 Daniel Kraft
// Distributed under the MIT/X11 software license, see the accompanying
// file license.txt or http://www.opensource.org/licenses/mit-license.php.
#in... |
/***********************************************************************
* jlp_logz.cpp
*
* Calculates data for magnitude of log(z) plot, where z = x + i*y.
* From a gsegraf-demo octave routine
*
* JLP
* Version 31/10/2016
**************************************************************************/
#include <stdio.h>
#i... |
#pragma once
#include "Core.hpp"
#include <cstdint>
// Quad header provides a bunch of quad classes for use in maths functions
// This serves to reduce the size of the maths implementation files and to
// modularise the quads
namespace ag {
namespace SIMD {
// Forward declare for use in narrowing constructors
temp... |
/**
* @file TailFile.cpp
* TailFile class implementation
*
* 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 t... |
#include "platform.h"
#include <SDL.h>
Platform::Platform(char const* title, int windowWidth, int windowHeight, int textureWidth, int textureHeight)
{
SDL_Init(SDL_INIT_VIDEO);
window = SDL_CreateWindow(title, 0, 0, windowWidth, windowHeight, SDL_WINDOW_SHOWN);
renderer = SDL_CreateRenderer(window, -1, SDL_RENDER... |
#include <algorithm>
#include <iostream>
#include <initializer_list>
template <typename T, int len>
struct Vector {
T value[len];
Vector<T, len>(std::initializer_list<T> ell) {
std::copy(ell.begin(), ell.begin() + len, value);
}
Vector<T, len> &operator+=(const Vector<T, len> &rhs) {
for (int i = 0; ... |
#define LOG_TAG "LayerAndroid"
#define LOG_NDEBUG 1
#include "config.h"
#include "LayerAndroid.h"
#if USE(ACCELERATED_COMPOSITING)
#include "AndroidLog.h"
#include "AndroidAnimation.h"
#include "ClassTracker.h"
#include "DrawExtra.h"
#include "DumpLayer.h"
#include "FixedPositioning.h"
#include "GLUtils.h"
#include ... |
#pragma once
#include <avk/avk.hpp>
namespace avk
{
/** Config struct for specifying sync parameters during renderpass creation.
*
* When you receive such a sync-struct in a callback, it will be pre-filled
* with some pipeline stages and access flags. Change them according to the
* requirements of your partic... |
// Copyright (c) 2009-2018 The GleecBTC Core developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include <net_permissions.h>
#include <netbase.h>
#include <util/error.h>
#include <util/system.h>
#include <util/translatio... |
#pragma once
#define PITCH 0
#define YAW 1
#define ROLL 2
namespace math
{
inline float rad2deg( const float rad )
{
return static_cast<float>( rad * ( 180.f / M_PI ) );
}
inline float deg2rad( const float deg )
{
return static_cast< float >( deg * ( M_PI / 180.f ) );
}
inline void sincos( const float ra... |
// 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 "chrome/browser/feedback/feedback_util.h"
#include <sstream>
#include <string>
#include <vector>
#include "base/bind.h"
#include "base/comm... |
// =============================================================================
// PROJECT CHRONO - http://projectchrono.org
//
// Copyright (c) 2014 projectchrono.org
// All rights reserved.
//
// Use of this source code is governed by a BSD-style license that can be found
// in the LICENSE file at the top level of t... |
// Copyright (c) 2014-2019 The Dash Core developers
// Copyright (c) 2020 The But developers
#include "governance/governance-validators.h"
#include "utilstrencodings.h"
#include "data/proposals_valid.json.h"
#include "data/proposals_invalid.json.h"
#include "test/test_but.h"
#include <iostream>
#include <fstream>
#... |
#pragma once
#include "distconv/cudnn/backend.hpp"
#include <Al.hpp>
#include <memory>
namespace distconv {
template <>
class CrossEntropy<cudnn::BackendCUDNN> {
public:
CrossEntropy(cudnn::BackendCUDNN &backend, const bool use_labels=false): m_be(backend), m_use_labels(use_labels) {}
~CrossEntropy() = defau... |
//
// IntDivide.cpp
// 整数分解为若干项之和 2-3
// Created by zzh on 15/4/15.
// Copyright (c) 2015年 zzh. All rights reserved.
//
#include "IntDivide.h"
#include <stdio.h>
#include <string.h>
void Divide(int remainer,int start,char *term);
int Count;
int MaxSize=64;
int main_IntDivide()
{
int n=4;
Count=0;
scanf... |
#pragma once
// This file is generated from the Game's Reflection data
#include <cstdint>
#include <RED4ext/Common.hpp>
#include <RED4ext/REDhash.hpp>
#include <RED4ext/Handle.hpp>
#include <RED4ext/Types/generated/ent/AnimInputSetter.hpp>
namespace RED4ext
{
namespace anim { struct AnimFeature; }
namespace ent {
... |
/**
* Connect all siblings
*
* Connect the sibling pointer to the next node in the same level.
* The last node in each level should point to the first node of the next level in the tree.
*/
#include <queue>
#include <cassert>
#include <cstdlib>
struct tree_head {
struct tree_head *left;
struct tree_head ... |
/******************************************************************************
* $Id: grass57dataset.cpp 33893 2016-04-04 14:08:28Z rouault $
*
* Project: GRASS Driver
* Purpose: Implement GRASS raster read/write support
* This version is for GRASS 5.7+ and uses GRASS libraries
* directly i... |
//===-- Unittests for strncat ---------------------------------------------===//
//
// 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
//
//===---------------------------... |
//===----------------------------------------------------------------------===//
//
// 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) 2012 GarageGames, LLC
//
// 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 restrictio... |
// 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 "third_party/blink/renderer/modules/media_controls/elements/media_control_animation_event_listener.h"
#include "third_party/blink/renderer/core/... |
#include "processing/SSAO.hpp"
#include "generation/Random.hpp"
#include "graphics/GPUTypes.hpp"
#include "graphics/GPU.hpp"
#include "graphics/ScreenQuad.hpp"
#include "resources/ResourcesManager.hpp"
SSAO::SSAO(uint width, uint height, uint downscale, float radius, const std::string & name) : _highBlur(name + " SSAO... |
/*
__ _____ _____ _____
__| | __| | | | JSON for Modern C++
| | |__ | | | | | | version 3.3.0
|_____|_____|_____|_|___| https://github.com/nlohmann/json
Licensed under the MIT License <http://opensource.org/licenses/MIT>.
SPDX-License-Identifier: MIT
Copyright (c) 2013-2018 Niels Lohmann <http:/... |
//
// HSP3 string support
// (おおらかなメモリ管理をするバッファマネージャー)
// (sbAllocでSTRBUF_BLOCKSIZEのバッファを確保します)
// (あとはsbCopy,sbAddで自動的にバッファの再確保を行ないます)
// onion software/onitama 2004/6
//
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "supio.h"
#include "strbuf.h"
#include "hsp3debug.h"
#define REALLOC realloc
#... |
#include "Parser.h"
#include "ParserTest.h"
#include "gross/Graph/Graph.h"
#include "gross/Graph/NodeUtils.h"
#include "gross/Graph/NodeMarker.h"
#include "gtest/gtest.h"
#include <algorithm>
#include <sstream>
#include <fstream>
using namespace gross;
TEST(ParserUnitTest, TestAssignment) {
std::stringstream SS;
... |
/**
* int i = 100, sum = 0;
* for (int i = 0; i != 10; ++i)
* sum += i;
* std::cout << i << " " << sum << std::endl;
* 11 1+2+3+4+5..+10
*/ |
/**
* (C) 1999-2003 Lars Knoll (knoll@kde.org)
* Copyright (C) 2004, 2005, 2006, 2009 Apple Computer, Inc.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Library General Public
* License as published by the Free Software Foundation; either
* version 2 of ... |
/****************************************************************************************
* @author: kzvd4729 created: Oct/21/2019 00:13
* solution_verdict: Compilation error language: GNU C++14
* run... |
// Copyright (c) 2009-2010 Satoshi Nakamoto
// Copyright (c) 2009-2015 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 "chainparamsbase.h"
#include "clientversion.h"
#include "rpcclient.h"
#i... |
/*
* 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 ... |
/**
BSD 3-Clause License
This file is part of the RootBA project.
https://github.com/NikolausDemmel/rootba
Copyright (c) 2021, Nikolaus Demmel.
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
* Redist... |
#ifndef __C_AUTOM8_DB_HPP__
#define __C_AUTOM8_DB_HPP__
#include <sqlite3.h>
#include <string>
namespace autom8 {
namespace db {
class transaction {
public:
transaction(sqlite3* sqlite);
virtual ~transaction();
void set_successful(bool success);
private... |
// Fill out your copyright notice in the Description page of Project Settings.
#include "SinglePlayerBall.h"
#include "UObject/ConstructorHelpers.h"
#include "Kismet/KismetSystemLibrary.h"
#include "Kismet/GameplayStatics.h"
#include "Engine/World.h"
#include "CanInteractWithBall.h"
const FName TraceTag("BallLaunchTr... |
/*
Copyright 2021 Simon (psyomn) Symeonidis
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... |
// Copyright 2020 TensorFlow 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 agree... |
#pragma once
// Fortnite (1.8) SDK
#ifdef _MSC_VER
#pragma pack(push, 0x8)
#endif
namespace SDK
{
//---------------------------------------------------------------------------
//Classes
//---------------------------------------------------------------------------
// WidgetBlueprintGeneratedClass AbilitiesPage.Abil... |
/*
* Copyright (c) 2001, 2018, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free ... |
#pragma once
#include <deque>
#include <functional>
#include <thread>
namespace executor {
using callback_fn = std::function<void()>;
namespace __internal {
inline std::deque<callback_fn> callbacks;
}
inline void init_executor() {
std::thread([]() {
while (true) {
if (!__internal::callbacks.empty()) ... |
#include "Object.h"
#include <algorithm>
#include <string.h>
#include "AnimControl.h"
#include "Components/ImageMask.h"
#include "Components/ImageRenderer.h"
#include "Components/MorphPlaneMask.h"
#include "Components/MorphPlaneRenderer.h"
#include "Components/MorphTargetMask.h"
#include "Components/MorphTargetRender... |
#include "KDLinkedListItem.h"
KDLinkedListItem::KDLinkedListItem(VOID* pObject, KDLinkedListItem* pPrev, KDLinkedListItem* pNext)
{
m_pPrev = pPrev;
m_pNext = pNext;
m_pObject = pObject;
}
KDLinkedListItem::~KDLinkedListItem()
{
}
KDLinkedListItem* KDLinkedListItem::GetPrev()
{
return m_pPrev;
}
VOID KDLi... |
/*
*
* Copyright (c) 2021 Project CHIP 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... |
/***
*
* Copyright (c) 1996-2001, Valve LLC. All rights reserved.
*
* This product contains software technology licensed from Id
* Software, Inc. ("Id Technology"). Id Technology (c) 1996 Id Software, Inc.
* All Rights Reserved.
*
* Use, distribution, and modification of this source code and/or resulting
* object ... |
// Copyright © 2017-2020 Trust Wallet.
//
// This file is part of Trust. The full Trust copyright notice, including
// terms governing use, modification, and redistribution, is contained in the
// file LICENSE at the root of the source code distribution tree.
#include "../Data.h"
#include "ReadData.h"
TW::Data TW::r... |
// Copyright (c) 2010 The WebM 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 projec... |
#include "triangle.h"
#include "point_2d.hpp"
#include <cmath>
Triangle::Triangle() {
for(int i = 0; i < 3; i++) {
vertex[i] = {0, 0};
}
}
Triangle::Triangle(Point_2d a, Point_2d b, Point_2d c) {
vertex[0] = a;
vertex[1] = b;
vertex[2] = c;
}
Abstract_shape::Shapes Triangle::get_shape_ty... |
#include "approx_tests.hpp"
#include "load_csv.hpp"
#include "model_test.hpp"
#include "templated_tests.hpp"
#include "test_configs.hpp"
#include "util_tests.hpp"
// @TODO: make tests for both float and double precision
void help()
{
std::cout << "RTNeural test suite:" << std::endl;
std::cout << "Usage: rtneur... |
// Generated by Cap'n Proto compiler, DO NOT EDIT
// source: dp.capnp
#include "dp.capnp.h"
namespace capnp {
namespace schemas {
static const ::capnp::_::AlignedData<209> b_84e5d575c3177d12 = {
{ 0, 0, 0, 0, 5, 0, 6, 0,
18, 125, 23, 195, 117, 213, 229, 132,
9, 0, 0, 0, 1, 0, ... |
/*
2014.11.1--------------------------------
*/
#include <iostream>
#include <sstream>
#include <vector>
#include <ros/ros.h>
#include <map>
#include <humans_msgs/Humans.h>
#include "MsgToMsg.hpp"
using namespace std;
#define OKAO_MAX 30
#define OKAO 3
#define BODY_MAX 6
#define HEAD 3
int d_id = 0;
long long no... |
/*************************************************************************
* Copyright (c) 2015, Synopsys, Inc. *
* All rights reserved. *
* *
* Redistribution and... |
/**********
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 the
Free Software Foundation; either version 3 of the License, or (at your
option) any later version. (See <http://www.gnu.org/copyleft/lesser.html>.)
This librar... |
/* ---------------------------------------------------------------------
* The Fearless Engineer
* Copyright (C) 2020, Dr. Andreas Haja.
*
* Purpose: Program for finding the shortest path between cities using the Dikjstra / A* algorithm
*
* You should have received a copy of the MIT License along with this prog... |
//--------------------------------------------------------------- @License begins
// 2015 Leopoldo Lomas Flores. Torreon, Coahuila. MEXICO
// leopoldolomas [at] gmail
// www.leolomas.com
//
// This is free and unencumbered software released into the public domain.
//
// Anyone is free to copy, modify, publish, use, c... |
/*=========================================================================
*
* Copyright Insight Software Consortium
*
* 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
*
* h... |
#include "database.h"
#include "ui_database.h"
DataBase::DataBase(QWidget *parent)
: QMainWindow(parent)
, ui(new Ui::DataBase)
{
ui->setupUi(this);
// Инициализируем второе окно
sWindow = new Menu();
// подключаем к слоту запуска главного окна по кнопке во втором окне
connect(sWindow, &Men... |
#include <iostream>
int main() {
const int ox=32768, oy=32768; // position of origin.
long unsigned* field[2*ox];
for (int i=0;i<2*ox;i++) {
field[i]=new long unsigned[2*oy];
}
int px=ox, py=oy, step;
long long unsigned min_score=2*ox*ox;
long unsigned dist=0, score;
char direc... |
// Copyright 2008, Google Inc. All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are met:
//
// 1. Redistributions of source code must retain the above copyright notice,
// this list of conditions an... |
<?hh // strict
namespace Zynga\Framework\ShardedDatabase\V3\Driver\Mock;
use Zynga\Framework\Database\V2\Interfaces\QuoteInterface;
use Zynga\Framework\ShardedDatabase\V3\Interfaces\DriverInterface;
use Zynga\Framework\Type\V1\Interfaces\TypeInterface;
class Quoter<TType as TypeInterface> implements QuoteInterface {... |
#include "simple_ast.h"
// Ref methods
Ref& Ref::operator[](unsigned x) {
return (*get())[x];
}
Ref& Ref::operator[](IString x) {
return (*get())[x];
}
bool Ref::operator==(const char *str) {
return get()->isString() && !strcmp(get()->str.str, str);
}
bool Ref::operator!=(const char *str) {
return get()->i... |
/* This file is part of sUtil, a random collection of utilities.
See the Readme.txt file in the root folder for licensing information.
*/
/* \file CMemCopier.hpp
*
* Created on: Jun 28, 2010
*
* Copyright (C) 2010, Samir Menon <smenon@stanford.edu>
*/
#ifndef CMEMCOPIER_HPP_
#define CMEMCOPIER_HPP_
#include ... |
// This file is part of libigl, a simple c++ geometry processing library.
//
// Copyright (C) 2013 Alec Jacobson <alecjacobson@gmail.com>
//
// This Source Code Form is subject to the terms of the Mozilla Public License
// v. 2.0. If a copy of the MPL was not distributed with this file, You can
// obtain one at htt... |
#include <bits/stdc++.h>
using namespace std;
typedef long int li;
typedef long long int lli;
typedef vector<long long int> vlli;
typedef vector<int> vi;
typedef stack<long long int> slli;
class Graph
{
vector<vector<lli>> adj;
lli nodes;
public:
Graph(lli nodes)
{
this->adj.resize(nodes, v... |
// The MIT License (MIT)
// Copyright (c) 2013-2019 Rapptz, ThePhD and contributors
// 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 ... |
/*==============================================================================
Program: 3D Slicer
Copyright (c) Kitware Inc.
See COPYRIGHT.txt
or http://www.slicer.org/copyright/copyright.txt for details.
Unless required by applicable law or agreed to in writing, software
distributed under the License... |
/*
* Copyright (c) 2020, The SerenityOS developers.
* 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
* ... |
//---------------------------------------------------------------------------//
//!
//! \file MonteCarlo_BremsstrahlungElectronScatteringDistributionNativeFactory.hpp
//! \author Luke Kersting
//! \brief The bremsstrahlung scattering distribution native factory declaration
//!
//-------------------------------------... |
////////////////////////////////////////////////////////////////////////////
// Copyright (c) 2008, Massachusetts Institute of Technology //
// Copyright (c) 2010-2013, Giulio Paci <giuliopaci@gmail.com> //
// All rights reserved. //
// ... |
/********************************************************************************
* This file is part of CinoLib *
* Copyright(C) 2016: Marco Livesu *
* ... |
#include "stdafx.h"
void GLCallbackManager::Initialize(Window* window) {
glfwSetWindowUserPointer(window->GetHandle(), this);
Timer t;
glfwSetWindowFocusCallback(window->GetHandle(), [](GLFWwindow* wnd, int focussed) {
GLCallbackManager* callbackManager = (GLCallbackManager*)glfwGetWindowUserPointer(wnd);... |
/*
* Copyright 2009-2017 Alibaba Cloud 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... |
/*
* 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 ma... |
// Copyright (c) 2014-2016 The Dash Developers
// Copyright (c) 2016-2017 The PIVX developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include "obfuscationconfig.h"
#include "ui_obfuscationconfig.h"
#include "bitcoinuni... |
#ifndef RBX_BUILTIN_BYTEARRAY_HPP
#define RBX_BUILTIN_BYTEARRAY_HPP
#include "builtin/object.hpp"
#include "type_info.hpp"
#include <ctype.h>
namespace rubinius {
class ByteArray : public Object {
public:
const static object_type type = ByteArrayType;
private:
native_int full_size_;
// Body acces... |
// 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 "nacl_io/html5fs/html5_fs.h"
#include <errno.h>
#include <fcntl.h>
#include <stdlib.h>
#include <string.h>
#include <algorithm>
#include <ppap... |
/*
* Copyright (c) Contributors to the Open 3D Engine Project.
* For complete copyright and license terms please see the LICENSE at the root of this distribution.
*
* SPDX-License-Identifier: Apache-2.0 OR MIT
*
*/
#include <Atom/RHI/DrawListTagRegistry.h>
#include <Atom/RHI/RHISystemInterface.h>
#include <Atom/... |
/* Copyright 2014-present Facebook, Inc.
* Licensed under the Apache License, Version 2.0 */
#include "watchman.h"
#ifdef HAVE_SYS_VFS_H
#include <sys/vfs.h>
#endif
#ifdef HAVE_SYS_STATVFS_H
#include <sys/statvfs.h>
#endif
#ifdef HAVE_SYS_PARAM_H
#include <sys/param.h>
#endif
#ifdef HAVE_SYS_MOUNT_H
#include <sys/mou... |
#include "if.hpp"
#include "parser.hpp"
#include "context.hpp"
#include "template.hpp"
Liquid::IfTag::IfTag(bool unless, const Context& context, const StringRef& tagName, const StringRef& markup)
: BlockTag(context, tagName, markup)
, if_(!unless)
{
blocks_.emplace_back(false);
parseTag(markup);
}
voi... |
/**********
Copyright (c) 2018, Xilinx, Inc.
All rights reserved.
Redistribution and use in source and binary forms, with or without modification,
are permitted provided that the following conditions are met:
1. Redistributions of source code must retain the above copyright notice,
this list of conditions and the fol... |
#include "saber/funcs/impl/x86/saber_layer_norm.h"
#include <math.h>
namespace anakin{
namespace saber{
template <DataType OpDtype>
SaberStatus SaberLayerNorm<X86, OpDtype>::dispatch(\
const std::vector<Tensor<X86> *>& inputs, \
std::vector<Tensor<X86> *>& outputs, \
LayerNormParam<X86> ¶m) {
co... |
/*
* Copyright (c) 2018-2020, Andreas Kling <kling@serenityos.org>
*
* SPDX-License-Identifier: BSD-2-Clause
*/
#include <AK/URL.h>
#include <LibCore/File.h>
#include <LibCore/MimeData.h>
#include <LibGUI/Action.h>
#include <LibGUI/Application.h>
#include <LibGUI/Clipboard.h>
#include <LibGUI/InputBox.h>
#include ... |
#include <math.h>
#include "../inc/Errors.hh"
#ifndef ROZMIAR_H
#define ROZMIAR_H
// #define ROZMIAR 3
#define COMPARE_VAL 0.00001
#define ROZMIAR 5
#endif |
//-----------------------------------------------------------------------------
//
// ** DO NOT EDIT THIS FILE! **
// This file was generated by a tool
// re-running the tool will overwrite this file.
//
//-----------------------------------------------------------------------------
#include "Lib.h"
#include... |
/*
* Copyright (C) 2006-2021 Intel Corporation.
* SPDX-License-Identifier: MIT
*/
/*! @file
Replace an original function with a custom function defined in the tool. The
new function can have either the same or different signature from that of its
original function.
*/
/* =====================================... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.