text string | size int64 | token_count int64 |
|---|---|---|
#include "toonz/txshsoundlevel.h"
#include "tsound_io.h"
#include "toonz/toonzscene.h"
#include "toonz/sceneproperties.h"
#include "toonz/txshleveltypes.h"
#include "tstream.h"
#include "toutputproperties.h"
#include "tconvert.h"
//-----------------------------------------------------------------------------
DEFIN... | 6,900 | 2,174 |
#include "ADEKF.h"
#include "ManifoldCreator.h"
#include "types/SO3.h"
#include "adekf_viz.h"
#include "PoseRenderer.h"
#include "BPIMM.h"
#include "BPRTSIMM.h"
#include "PathCreatorOrientation.h"
#include "SimulatedBodyMeas.h"
#include "GaussianNoiseVector.h"
#include <numeric>
#define GRAVITY_CONSTANT 9.81
//#define... | 15,808 | 5,697 |
#include "inexor/vulkan-renderer/io/byte_stream.hpp"
#include "inexor/vulkan-renderer/world/cube.hpp"
#include <fstream>
namespace inexor::vulkan_renderer::io {
std::vector<std::uint8_t> ByteStream::read_file(const std::filesystem::path &path) {
std::ifstream stream(path, std::ios::in | std::ios::binary);
ret... | 3,708 | 1,373 |
/**
* Copyright Soramitsu Co., Ltd. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0
*/
#include "module/irohad/consensus/yac/yac_fixture.hpp"
#include "common/hexutils.hpp"
using namespace iroha::consensus::yac;
using ::testing::_;
using ::testing::Return;
/**
* The class helps to create fake networ... | 3,614 | 1,277 |
/* Copyright (c) 2020 vesoft inc. All rights reserved.
*
* This source code is licensed under Apache 2.0 License,
* attached with Common Clause Condition 1.0, found in the LICENSES directory.
*/
#include "common/expression/TextSearchExpression.h"
#include "common/expression/ExprVisitor.h"
namespace nebula {
boo... | 1,845 | 683 |
#include <bits/stdc++.h>
using namespace std;
bool isValid(string s)
{
int n = s.size();
stack<char> st;
bool ans = true;
for (int i = 0; i < n; i++)
{
if (st.empty() and (s[i] == ')' or s[i] == '}' or s[i] == ']'))
{
return false; // if start with closed p... | 1,603 | 484 |
// Copyright 1998-2016 Epic Games, Inc. All Rights Reserved.
#include "UnrealEd.h"
#include "EditorCategoryUtils.h"
#include "IDocumentation.h"
#define LOCTEXT_NAMESPACE "EditorCategoryUtils"
/*******************************************************************************
* FEditorCategoryUtils Helpers
***********... | 17,271 | 5,085 |
/* Copyright 2015 The TensorFlow 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 a... | 16,462 | 7,280 |
// main04.cc is a part of the PYTHIA event generator.
// Copyright (C) 2015 Torbjorn Sjostrand.
// PYTHIA is licenced under the GNU GPL version 2, see COPYING for details.
// Please respect the MCnet Guidelines, see GUIDELINES for details.
// This is a simple test program.
// It illustrates how to generate and study "... | 8,362 | 3,406 |
#include "c++/schemas/Icon.h"
namespace modio
{
void Icon::initialize(ModioIcon modio_icon)
{
if (modio_icon.filename)
this->filename = modio_icon.filename;
if (modio_icon.original)
this->original = modio_icon.original;
if (modio_icon.thumb_64x64)
this->thumb_64x64 = modio_icon.thumb_64x64;
if (mod... | 822 | 395 |
//
// kern_start.hpp
// AppleALC
//
// Copyright © 2016 vit9696. All rights reserved.
//
#ifndef kern_start_hpp
#define kern_start_hpp
#include <Headers/kern_util.hpp>
#include <Library/LegacyIOService.h>
#include <sys/types.h>
struct PluginConfiguration {
const char *product; // Product name (e.g. xStri... | 1,608 | 531 |
#include <stdexcept>
#include "Tools/Arguments/Maps/Argument_map_info.hpp"
using namespace aff3ct;
using namespace aff3ct::tools;
Argument_map_info
::Argument_map_info()
{ }
Argument_map_info
::Argument_map_info(const Argument_map_info& other)
{
other.clone(*this);
}
Argument_map_info
::~Argument_map_info()
{
cl... | 2,130 | 800 |
// Chapter 26, exercise 5: add test to see if binary_search modifies the
// sequence
#include<iostream>
#include<exception>
#include<fstream>
#include<string>
#include<vector>
using namespace std;
//------------------------------------------------------------------------------
// check if value val is in the ordere... | 4,450 | 1,428 |
#include "taichi/struct/snode_tree.h"
namespace taichi {
namespace lang {
namespace {
void get_snodes_to_root_id_impl(const SNode &node,
const int root_id,
std::unordered_map<int, int> *map) {
(*map)[node.id] = root_id;
for (auto &ch : node.ch) {
... | 1,129 | 419 |
#pragma once
constexpr std::string_view hibf_prefix{"HIGH_LEVEL_IBF"};
constexpr std::string_view merged_bin_prefix{"MERGED_BIN"};
constexpr std::string_view split_bin_prefix{"SPLIT_BIN"};
constexpr size_t merged_bin_prefix_length{merged_bin_prefix.size()};
| 262 | 104 |
#include <bits/stdc++.h>
#define ll long long
#define ls id<<1
#define rs id<<1|1
#define mem(a,b) memset(a,b,sizeof(a))
#define pii pair<int,int>
#define mp(a,b) make_pair(a,b)
using namespace std;
const int inf=0x3f3f3f3f;
const ll mod=1e9+7;
const int N=1050;
double p[N][N];
int n;
double dp[N],ji[N];
bool vis[N];
... | 1,084 | 538 |
#include "Application.hpp"
#include "InputHandlers.hpp"
#include "renderer/RenderContext.hpp"
// keep the render context and application object global
RenderContext g_renderContext;
Application g_application;
int main(int argc, char **argv)
{
// initialize SDL
if( SDL_Init( SDL_INIT_VIDEO | SDL_INIT_EVENT... | 1,043 | 386 |
// Copyright (c) 2014-2019 Dr. Colin Hirsch and Daniel Frey
// Please see LICENSE for license or visit https://github.com/taocpp/PEGTL/
#ifndef TAO_PEGTL_INTERNAL_ISTRING_HPP
#define TAO_PEGTL_INTERNAL_ISTRING_HPP
#include <type_traits>
#include "../config.hpp"
#include "bump_help.hpp"
#include "result_on_found.hpp... | 2,766 | 851 |
/************************************************************************
*
* CppSharp
* Licensed under the MIT license.
*
************************************************************************/
#include "CppParser.h"
#include "Parser.h"
#include <clang/Basic/Version.inc>
namespace CppSharp { namespace CppParser {
... | 2,093 | 699 |
extern "C"
{
void hardcol_();
}
int main()
{
hardcol_();
return 1;
}
| 77 | 39 |
#include <bits/stdc++.h>
using namespace std;
#define PI 3.14159265358979323846
#define ll long long int
#include<ext/pb_ds/assoc_container.hpp>
#include<ext/pb_ds/tree_policy.hpp>
using namespace __gnu_pbds;
const int T = 1e6 + 5;
long long phi[T];
gp_hash_table<long long, long long> mp;
int sz, spf[T], prime... | 1,477 | 595 |
/****************************************************************************
**
** Copyright (C) 2016 The Qt Company Ltd.
** Copyright (C) 2016 Intel Corporation.
** Contact: https://www.qt.io/licensing/
**
** This file is part of the test suite of the Qt Toolkit.
**
** $QT_BEGIN_LICENSE:GPL-EXCEPT$
** Commercial Lice... | 111,565 | 63,117 |
//
// ex10_32.cpp
// Exercise 10.32
//
// Created by pezy on 12/13/14.
// Copyright (c) 2014 pezy. All rights reserved.
//
// Rewrite the bookstore problem from 1.6 (p. 24) using a vector to hold the transactions
// and various algorithms to do the processing.
// Use sort with your compareIsbn function from 10.3... | 1,135 | 422 |
#include <cmath>
#include <climits>
#include <algorithm>
#include "JetMETCorrections/InterpolationTables/interface/NpstatException.h"
#include "Alignment/Geners/interface/binaryIO.hh"
#include "Alignment/Geners/interface/IOException.hh"
#include "JetMETCorrections/InterpolationTables/interface/closeWithinTolerance.h"... | 5,290 | 1,722 |
#pragma once
#include <mbgl/programs/program.hpp>
#include <mbgl/programs/attributes.hpp>
#include <mbgl/programs/uniforms.hpp>
#include <mbgl/shaders/hillshade_prepare.hpp>
#include <mbgl/util/geometry.hpp>
namespace mbgl {
namespace uniforms {
MBGL_DEFINE_UNIFORM_VECTOR(uint16_t, 2, u_dimension);
} // namespace un... | 1,143 | 379 |
/*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* as published by the Free Software Foundation; either version 2
* of the License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be use... | 22,458 | 6,897 |
/*
* DISTRHO Plugin Framework (DPF)
* Copyright (C) 2012-2019 Filipe Coelho <falktx@falktx.com>
*
* 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.
... | 7,347 | 2,295 |
/*
Copyright 2020-2021 Daniel S. Buckstein
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 t... | 1,110 | 366 |
/*
* notes: by srl295
* - When in NODE_HAVE_SMALL_ICU mode, ICU is linked against "stub" (null) data
* ( stubdata/libicudata.a ) containing nothing, no data, and it's also
* linked against a "small" data file which the SMALL_ICUDATA_ENTRY_POINT
* macro names. That's the "english+root" data.
*
* If ... | 6,196 | 2,217 |
#include "Mesh.h"
#include "../../RenderLayer/CommandList.h"
#include "../../RenderLayer/RenderLayer.h"
#include "Graphics/D3D12/Managers/CEDX12MeshManager.h"
bool Mesh::Init(const MeshData& Data) {
MainMeshData = Data;
VertexCount = static_cast<uint32>(Data.Vertices.Size());
IndexCount = static_cast<uint32>(Data.... | 2,735 | 1,033 |
// Copyright (C) <2019> Intel Corporation
//
// SPDX-License-Identifier: Apache-2.0
#include "GstInternalIn.h"
#include <gst/gst.h>
#include <stdio.h>
DEFINE_LOGGER(GstInternalIn, "GstInternalIn");
GstInternalIn::GstInternalIn(GstAppSrc *data, unsigned int minPort, unsigned int maxPort)
{
m_transport.reset(new o... | 3,178 | 1,048 |
#include "fhiclcpp/ParameterSet.h"
#include "fhiclcpp/ParameterSetRegistry.h"
#include "Mu2eUtilities/inc/TriggerResultsNavigator.hh"
#include <iostream>
#include <iomanip>
namespace mu2e {
TriggerResultsNavigator::TriggerResultsNavigator(const art::TriggerResults* trigResults):
_trigResults(trigResults){
... | 3,658 | 1,226 |
#ifndef GCT_FENCE_HPP
#define GCT_FENCE_HPP
#include <memory>
#include <vulkan/vulkan.hpp>
#include <gct/created_from.hpp>
#include <gct/fence_create_info.hpp>
namespace gct {
struct device_t;
class fence_t : public created_from< device_t >, public std::enable_shared_from_this< fence_t > {
public:
fence_t(
... | 1,044 | 409 |
//===-- SelectionTests.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
//
//===---------------------------... | 24,624 | 8,113 |
/*
* Copyright (c) 2005, Peter Sommerlad and IFS Institute for Software at HSR Rapperswil, Switzerland
* All rights reserved.
*
* This library/application is free software; you can redistribute and/or modify it under the terms of
* the license that is included with this library/application in the file license.txt.... | 944 | 320 |
#pragma once
#include "Player.hpp"
#include "CNProtocol.hpp"
#include "CNStructs.hpp"
#include "CNShardServer.hpp"
#include <map>
#include <list>
struct WarpLocation;
struct PlayerView {
std::list<CNSocket*> viewable;
std::list<int32_t> viewableNPCs;
Player *plr;
uint64_t lastHeartbeat;
};
namespa... | 1,951 | 717 |
/*
* Copyright (C) 2016 The Android Open Source Project
*
* 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,
*... | 23,058 | 7,789 |
#ifndef EXAMPLE_IN_HASKELL_HPP
#define EXAMPLE_IN_HASKELL_HPP
// Copyright Abel Sinkovics (abel@sinkovics.hu) 2012.
// 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 <boost/config.hpp>
#if ... | 1,346 | 558 |
#ifndef CAFFE_BATCHNORM_LAYER_HPP_
#define CAFFE_BATCHNORM_LAYER_HPP_
#include <vector>
#include "caffe/blob.hpp"
#include "caffe/layer.hpp"
#include "caffe/proto/caffe.pb.h"
namespace caffe {
/**
* @brief Normalizes the input to have 0-mean and/or unit (1) variance across
* the batch.
*
* This layer com... | 3,024 | 982 |
/*=============================================================================
# Filename: gshow.cpp
# Author: suxunbin
# Mail: suxunbin@pku.edu.cn
# Last Modified: 2019-07-25 17:00
# Description: used to show all the databases that have already been built
==============================================================... | 2,315 | 896 |
// Copyright 2020 Google LLC. All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable... | 3,652 | 1,290 |
/*
* Copyright (c) 2019-2020, University of Southampton and Contributors.
* All rights reserved.
*
* SPDX-License-Identifier: Apache-2.0
*/
#include <spdlog/spdlog.h>
#include <tlm_utils/simple_initiator_socket.h>
#include <systemc>
#include <tlm>
#include "mcu/RegisterFile.hpp"
#include "mcu/SpiTransactionExtens... | 14,309 | 5,756 |
#include <logos/lib/utility.hpp>
#include <sstream>
#include <iomanip>
std::string logos::unicode_to_hex(std::string const & input)
{
static const char* const lut = "0123456789abcdef";
size_t len = input.length();
std::string output;
output.reserve(2 * len);
for (size_t i = 0; i < len; ++i)
{... | 4,819 | 1,824 |
// function template + invoke with ints & floats & longs
#include <iostream>
template<typename T>
T get_smaller(T a, T b) {
return a < b ? a : b;
}
int main() {
int a{320};
int b{18};
std::cout << "The smaller of " << a
<< " & " << b << " is "
<< get_smaller(a, b) << '\n';
... | 654 | 248 |
/*
* WordMesh.cc --
* Word Meshes (aka Confusion Networks aka Sausages)
*/
#ifndef lint
static char Copyright[] = "Copyright (c) 1995-2012 SRI International, 2012-2016 Microsoft Corp. All Rights Reserved.";
static char RcsId[] = "@(#)$Header: /home/srilm/CVS/srilm/lm/src/WordMesh.cc,v 1.56 2016/04/09 06:53:01 stol... | 43,232 | 17,306 |
#include "BaseApplication.h"
//#include "gl_core_4_4.h"
#include <iostream>
#include <GLFW/glfw3.h>
#include <glm/glm.hpp>
bool BaseApplication::createWindow(const char* title, int width, int height) {
if (glfwInit() == GL_FALSE)
return false;
m_window = glfwCreateWindow(width, height, title, nullptr, nullptr);
... | 1,230 | 509 |
#include <iostream>
#include <fstream>
#include <algorithm>
#include <map>
#include <vector>
#include <unordered_map>
std::vector<short> match( std::string& s1 , std::string& s2) {
std::vector<short> v;
for( int i = 0 ; i < s1.size() ; ++i)
{
if( s1[i] != s2[i] )
{
v.push_back(i);
}
}
return v;
}
int... | 699 | 337 |
/**
* Copyright 2020 Huawei Technologies 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 law... | 3,401 | 1,455 |
#include <cstdio>
int main() {
int t, s, x;
scanf("%d%d%d", &t, &s, &x);
while(1) {
if(t == x || t + 1 == x) {
printf("YES");
return 0;
}
t += s;
if (t > x)
break;
}
printf ("NO");
return 0;
} | 218 | 127 |
#include "log.hpp"
namespace Debug
{
Log& Log::info(string _s) {
if(f_verbose_stdout) {
cout << _s;
}
if(f_verbose_file) {
ofstream file_log;
file_log.open(
s_file_name,
ios::binary |
ios_base::app |
... | 9,291 | 3,018 |
#include <iostream>
#include <vector>
using namespace std;
int main(void)
{
vector<int> v;
const vector<int> cv;
auto it = v.cbegin();
auto it2 = cv.cbegin();
return 0;
}
| 178 | 74 |
#include "precompiled.h"
#pragma hdrstop
#include "GUIProgressBar.h"
#include "GUISystem.h"
GUIProgressBar::GUIProgressBar()
: GUIWidgetRect("progress_bar"),
m_scaleBox(std::make_unique<GUIWidgetRect>("scale"))
{
}
void GUIProgressBar::applyStylesheetRule(const GUIWidgetStylesheetRule& stylesheetRule)
{
GUI... | 2,892 | 917 |
#include "stdafx.h"
#include "AudioPlayback.hpp"
#include <Beatmap/BeatmapPlayback.hpp>
#include <Beatmap/Beatmap.hpp>
#include <Audio/Audio.hpp>
#include <Audio/DSP.hpp>
AudioPlayback::AudioPlayback()
{
}
AudioPlayback::~AudioPlayback()
{
m_CleanupDSP(m_buttonDSPs[0]);
m_CleanupDSP(m_buttonDSPs[1]);
m_CleanupDSP(m... | 12,219 | 5,124 |
/*
* Copyright (C) Mellanox Technologies Ltd. 2001-2017. ALL RIGHTS RESERVED.
* See file LICENSE for terms.
*/
#include "worker.h"
#include <new> // bad_alloc exception
worker::worker(context* ctx, uint32_t cap, ucp_worker_params_t params) :
jucx_context(ctx), ucp_worker(nullptr),
q... | 1,230 | 432 |
class Solution {
public:
vector<vector<int>> getSkyline(vector<vector<int>> &buildings) {
int n = buildings.size();
vector<vector<int>> arr;
vector<vector<int>> ans;
if (!n)
return ans;
for (auto b : buildings) {
arr.push_back({b[0], b[2], 1});
arr.push_back({b[1], b[2], -1});... | 804 | 332 |
//
// init.cpp
// Rayne-Assimp
//
// Copyright 2015 by Überpixel. All rights reserved.
// Unauthorized use is punishable by torture, mutilation, and vivisection.
//
#include <Rayne.h>
RNModule(RayneAssimp, "net.uberpixel.rayne.assimp")
| 242 | 100 |
/*
Copyright (c) 2019 - 2022 Advanced Micro Devices, Inc. All rights reserved.
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, ... | 6,336 | 2,152 |
#include "bwe/RateController.h"
#include "config/Config.h"
#include "memory/PacketPoolAllocator.h"
#include "rtp/RtcpHeader.h"
#include "rtp/RtpHeader.h"
#include "test/bwe/FakeAudioSource.h"
#include "test/bwe/FakeVideoSource.h"
#include "test/bwe/RcCall.h"
#include "test/transport/FakeNetwork.h"
#include "transport/R... | 3,945 | 1,617 |
// Copyright eeGeo Ltd (2012-2015), All Rights Reserved
#include "UserInteractionController.h"
// App includes
#include "IAppCameraController.h"
#include "ICameraTransitionController.h"
#include "InteriorExplorerUserInteractionModel.h"
#include "UserInteractionModel.h"
namespace ExampleApp
{
namespace UserIntera... | 2,399 | 548 |
// Copyright 2017 Yahoo Holdings. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
#include "fieldinfo.h"
namespace search {
namespace fef {
FieldInfo::FieldInfo(FieldType type_in, CollectionType collection_in,
const string &name_in, uint32_t id_in)
: _typ... | 566 | 193 |
#include<bits/stdc++.h>
using namespace std;
#define NIL 0
#define INF INT_MAX
typedef long int li;
typedef pair<int,int> pr;
class BipGraph
{
int m, n;
vector<vector<int> > adj;
vector<int> pairU, pairV, dist;
public:
BipGraph(int, int);
void addEdge(int, int);
bool bfs();
bool dfs(int);
... | 3,222 | 1,334 |
/*
* 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 ... | 2,804 | 867 |
#if COMPILATION_INSTRUCTIONS
mpic++ -O3 -std=c++14 `#-Wall` `#-Wfatal-errors` -I$HOME/prj $0 -o $0x.x -lboost_serialization && time mpirun -np 4 $0x.x $@ && rm -f $0x.x; exit
#endif
// (C) Copyright 2018 Alfredo A. Correa
#define OMPI_SKIP_MPICXX 1 // https://github.com/open-mpi/ompi/issues/5157
#include "alf/boost/mp... | 1,354 | 613 |
#ifdef PEGASUS_OS_DARWIN
#ifndef __UNIX_IPSECTRANSPORTACTION_PRIVATE_H
#define __UNIX_IPSECTRANSPORTACTION_PRIVATE_H
#endif
#endif
| 137 | 73 |
/**
* Copyright Verimag laboratory.
*
* contributors:
* Jacques Combaz (jacques.combaz@univ-grenoble-alpes.fr)
*
* This software is a computer program whose purpose is to generate
* executable code from BIP models.
*
* This software is governed by the CeCILL-B license under French law and
* abiding by the... | 8,364 | 2,831 |
#pragma once
#include "drape/attribute_provider.hpp"
#include "drape/graphics_context.hpp"
#include "drape/overlay_handle.hpp"
#include "drape/pointers.hpp"
#include "drape/render_bucket.hpp"
#include "drape/render_state.hpp"
#include "drape/vertex_array_buffer.hpp"
#include "base/macros.hpp"
#include <functional>
#... | 4,895 | 1,450 |
/*
* Programming language 'Chatra' reference implementation
*
* Copyright(C) 2019-2020 Chatra Project Team
*
* 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... | 2,090 | 649 |
/*=========================================================================
Program: Visualization Toolkit
Module: TestColorSeries.cxx
Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
All rights reserved.
See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
This ... | 8,733 | 3,212 |
#include <iostream>
#include <fstream>
#include <ctype.h>
int white_space_counter(std::ifstream &fs)
{
std::string buffer = "";
std::string::const_iterator itr;
int number_of_white_space = 0;
while( std::getline( fs, buffer ))
{
for(itr = buffer.begin(); itr != buffer.end(); ++itr)
{
if( iswspace( *itr )... | 969 | 417 |
/*******************************************************************************
* Copyright 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.apache.o... | 2,847 | 870 |
/**
* Copyright 2021 Huawei Technologies 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 law... | 3,373 | 1,223 |
#include <allegro_flare/circle.h>
#include <AllegroFlare/Color.hpp>
#include <AllegroFlare/Useful.hpp> // for distance
namespace allegro_flare
{
UISurfaceAreaCircle::UISurfaceAreaCircle(float x, float y, float r)
: UISurfaceAreaBase(x, y, r*2, r*2)
{}
bool UISurfaceAreaCircle::collides(float ... | 787 | 324 |
/*
* This file is part of the statismo library.
*
* Author: Marcel Luethi (marcel.luethi@unibas.ch)
*
* Copyright (c) 2011 University of Basel
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* ar... | 4,622 | 1,535 |
/* Copyright 2017 Streampunk Media Ltd.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in wri... | 9,530 | 3,153 |
#include <stdlib.h>
#include <unistd.h>
/*
Tester for large file source
*/
#include "cmdline.h"
#include "Large_File.h"
static int verbose = 0;
static void
usage (int rc)
{
cerr << "Tester for large file reader\n";
cerr << " -e echo input file\n";
cerr << " -v verbose output\n";
... | 1,983 | 813 |
#ifndef BEASTHTTP_BASE_IMPL_CB_HXX
#define BEASTHTTP_BASE_IMPL_CB_HXX
#include <http/base/config.hxx>
#include <functional>
namespace _0xdead4ead {
namespace http {
namespace base {
namespace cb {
namespace detail {
#ifndef BEASTHTTP_CXX17_IF_CONSTEXPR
template<std::size_t value>
using size_type = std::integral_cons... | 7,435 | 2,396 |
// -*- C++ -*-
//
/*
Description: <one line class summary>
Implementation:
<Notes on implementation>
*/
//
// Original Author: Riccardo Ranieri
// Created: Wed May 3 10:30:00 CEST 2006
//
//
// system include files
#include <memory>
// user include files
#include "FWCore/Framework/interface/Framew... | 5,529 | 1,979 |
#include <thread>
#include <gtest/gtest.h>
#include "timing/Clock.hpp"
using namespace std;
using namespace libbft;
TEST(TimingClock, ToString) {
unique_ptr<Clock> clock(new Clock("T"));
EXPECT_EQ("Clock {name='T'}", clock->toString());
}
TEST(TimingClock, GetTime) {
unique_ptr<Clock> clock(new Clock("T"))... | 549 | 218 |
/**
*
* Author: Juarez Paulino(coderemite)
* Email: juarez.paulino@gmail.com
*
*/
#define _USE_MATH_DEFINES
#include <bits/stdc++.h>
using namespace std;
#define pb push_back
#define mp make_pair
#define mt make_tuple
#define fi first
#define se second
#define sz(v) ((int) (v).size())
#define all(v) (v).begin()... | 1,062 | 499 |
/* -*- mode: C++; c-basic-offset: 2; indent-tabs-mode: nil -*- */
/*
* Main authors:
* Guido Tack <tack@gecode.org>
*
* Copyright:
* Guido Tack, 2011
*
* Last modified:
* $Date$ by $Author$
* $Revision$
*
* This file is part of Gecode, the generic constraint
* development environment:
... | 3,207 | 1,045 |
// Copyright 2017 Google 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 in w... | 5,329 | 1,981 |
// Generated by Haxe 3.4.7
namespace hx {
unsigned char __res_27[] = {
0xff, 0xff, 0xff, 0xff,
137,80,78,71,13,10,26,10,0,0,
0,13,73,72,68,82,0,0,0,24,
0,0,0,32,8,6,0,0,0,8,
94,184,56,0,0,0,25,116,69,88,
116,83,111,102,116,119,97,114,101,0,
65,100,111,98,101,32,73,109,97,103,
101,82,101,97,100,121,113,201,101,60,
0,0,2... | 2,625 | 2,579 |
/*
* Essex Engine
*
* Copyright (C) 2018 Nathan Mentley - All Rights Reserved
* You may use, distribute and modify this code under the
* terms of the BSD license.
*
* You should have received a copy of the BSD license with
* this file. If not, please visit: https://github.com/nathanmentley/EssexEngine
*/
#i... | 741 | 234 |
/*
* Firmament
* Copyright (c) The Firmament 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
*
* ... | 10,824 | 3,444 |
#include "pch.h"
//////////////////////////////////////////////////////////////////////////////
//
//
//
//////////////////////////////////////////////////////////////////////////////
class CaptionImpl :
public ICaption,
public EventTargetContainer<CaptionImpl>
{
private:
TRef<ButtonPane> m_pbuttonClose... | 2,541 | 793 |
#include <crab/domains/small_range.hpp>
#include <crab/support/debug.hpp>
#include <assert.h>
namespace crab {
namespace domains {
small_range::small_range(kind_t v) : m_value(v){};
/*
[0,0] | [0,0] = [0,0]
[0,0] | [1,1] = [0,1]
[0,0] | [0,1] = [0,1]
[0,0] | [0,+oo] = [0,+oo]
[0,0] | [1,+oo] = [0,+oo]... | 7,637 | 3,189 |
/*********************************************************************
* Software License Agreement (BSD License)
*
* Copyright (c) 2008, Willow Garage, Inc.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following cond... | 5,531 | 1,901 |
// Copyright (c) 2017-2021, Mudita Sp. z.o.o. All rights reserved.
// For licensing, see https://github.com/mudita/MuditaOS/LICENSE.md
#pragma once
#include "AppWindow.hpp"
#include <module-apps/application-onboarding/presenter/EULALicenseWindowPresenter.hpp>
#include <module-gui/gui/widgets/Label.hpp>
#include <mo... | 1,310 | 407 |
#pragma once
#include "ISerializable.hpp"
#include <string>
#include <vector>
class DigChances : public ISerializable
{
public:
DigChances();
DigChances(const int new_pct_chance_undead, const int new_pct_chance_item, const std::vector<std::string>& new_item_ids);
bool operator==(const DigChances& dc) con... | 936 | 333 |
/*
---------------------------------------------------------------------------
Open Asset Import Library (assimp)
---------------------------------------------------------------------------
Copyright (c) 2006-2020, assimp team
All rights reserved.
Redistribution and use of this software in source and binary forms,
w... | 6,855 | 2,577 |
/*******************************************************************************
*
* Copyright (c) 2010-2015 Edans Sandes
*
* This file is part of MASA-Core.
*
* MASA-Core 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... | 2,898 | 876 |
// Copyright (c) 2018-2019 The Bitcoin developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include <rwcollection.h>
#include <reverse_iterator.h>
#include <test/test_bitcoin.h>
#include <boost/test/unit_test.hpp>
#in... | 3,407 | 1,427 |
/*=========================================================================
*
* Copyright NumFOCUS
*
* 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.or... | 1,926 | 576 |
// Copyright (c) Zhirnov Andrey. For more information see 'LICENSE.txt'
#include "CoreTests/Script/Common.h"
class Script
{
public:
static ScriptEngine * engine;
int Run (int value)
{
const char script[] = R"#(
int main (int x) {
return 10 + x;
}
)#";
ScriptModulePtr mod = New<ScriptModule>( eng... | 918 | 395 |
// Copyright 2021 The Chromium OS 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 "missive/dbus/upload_client.h"
#include <string>
#include <utility>
#include <base/bind.h>
#include <base/memory/scoped_refptr.h>
#include <... | 8,786 | 2,724 |
#include "StdAfx.h"
#include "hkbParticleSystemEventPayload_0.h"
#include <Common/Serialize/hkSerialize.h>
#include <Common/Serialize/Util/hkSerializeUtil.h>
#include <Common/Serialize/Version/hkVersionPatchManager.h>
#include <Common/Serialize/Data/Dict/hkDataObjectDict.h>
#include <Common/Serialize/Data/Native/hkDat... | 3,188 | 1,228 |
/*
* SPDX-License-Identifier: Apache-2.0
* Copyright 2019 Intel Corporation
*/
/* for gtpu_encap decls */
#include "gtpu_encap.h"
/* for rte_zmalloc() */
#include <rte_malloc.h>
/* for IPVERSION */
#include <netinet/ip.h>
/* for be32_t */
#include "utils/endian.h"
/* for ToIpv4Address() */
#include "utils/ip.h"
/* f... | 7,178 | 2,870 |
//
// Copyright (c) 2016-2017 Vinnie Falco (vinnie dot falco at gmail 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)
//
// Official repository: https://github.com/boostorg/beast
//
// Test that header ... | 15,932 | 5,244 |
// SaxContentElement.cpp
//
#include "stdafx.h"
#include "XmlLib\SaxContentElement.h"
using XmlLib::SaxString;
using XmlLib::SaxAttributes;
#ifdef _DEBUG
#undef THIS_FILE
static char THIS_FILE[]=__FILE__;
#define new DEBUG_NEW
#endif
//////////////////////////////////////////////////////////////////////
// SaxConten... | 5,916 | 1,791 |
/* A Bison parser, made by GNU Bison 2.7.12-4996. */
/* Skeleton implementation for Bison LALR(1) parsers in C++
Copyright (C) 2002-2013 Free Software Foundation, Inc.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as publi... | 57,078 | 23,047 |