text string | size int64 | token_count int64 |
|---|---|---|
#include "PluginManager.h"
#include "c4d.h"
using namespace std;
class HookDeleter{
public:
void operator()(DL_Hook* hook){
if(hook){
hook->Free();
}
}
};
PluginManager::~PluginManager(){
}
long PluginManager::GetAPIVersion(){
return DL_API_VERSION;
}
void PluginManager::RegisterHook(HookAllocator alloca... | 1,116 | 457 |
#pragma once
#include <concepts>
#include <functional>
#include <memory>
#include <string>
#include <utility>
#include "phase_extension.hpp"
#include "json.hpp"
namespace tdc {
namespace stat {
/// \brief Represents a runtime statistics phase.
///
/// Phases are used to track statistics like runtime and memory allo... | 12,013 | 3,419 |
//===----------------------------------------------------------------------===//
//
// 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
//
//===---------------------------... | 1,347 | 498 |
/**
* This file is part of Phantom Cpp Crypto.
*
* (c) PhantomChain <info@phantom.org>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
**/
#include "helpers/encoding/der.h"
#include <cassert>
#include <string>
#include <vector>
#inc... | 3,955 | 1,621 |
/*
* 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 ... | 20,896 | 8,079 |
/** @file demo_flight_control.cpp
* @version 3.3
* @date May, 2017
*
* @brief
* demo sample of how to use flight control APIs
*
* @copyright 2017 DJI. All rights reserved.
*
*/
#include "dji_sdk_demo/demo_flight_control.h"
#include "dji_sdk/dji_sdk.h"
const float deg2rad = C_PI/180.0;
const float rad2de... | 13,833 | 5,059 |
/*
Island Perimeter
You are given a map in form of a two-dimensional integer grid where 1 represents land and 0 represents water.
Grid cells are connected horizontally/vertically (not diagonally). The grid is completely surrounded by water, and there is exactly one island (i.e., one or more connected land cells).
Th... | 1,238 | 412 |
//
// Copyright © 2017 Arm Ltd. All rights reserved.
// SPDX-License-Identifier: MIT
//
#include "SpaceToBatchNdLayer.hpp"
#include "LayerCloneBase.hpp"
#include <armnn/TypesUtils.hpp>
#include <armnnUtils/DataLayoutIndexed.hpp>
#include <backendsCommon/WorkloadData.hpp>
#include <backendsCommon/WorkloadFactory.hpp... | 2,988 | 957 |
/* Copyright 2017 R. Thomas
* Copyright 2017 Quarkslab
*
* 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 appli... | 15,439 | 4,723 |
// @COPYRIGHT@
// Licensed under MIT license (LICENSE.txt)
/** // doc: clxx/cl/events.cpp {{{
* \file clxx/cl/events.cpp
* \todo Write documentation
*/ // }}}
#include <clxx/cl/events.hpp>
#include <clxx/cl/functions.hpp>
#include <clxx/util/obj2cl.hpp>
namespace clxx {
void
wait_for_events(clxx::events const& eve... | 592 | 225 |
////////////////////////////////////////////////////////////////////////////////
/// DISCLAIMER
///
/// Copyright 2014-2016 ArangoDB GmbH, Cologne, Germany
/// Copyright 2004-2014 triAGENS GmbH, Cologne, Germany
///
/// Licensed under the Apache License, Version 2.0 (the "License");
/// you may not use this file except... | 31,317 | 9,937 |
/**
* Autogenerated by Thrift
*
* DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
* @generated
*/
#include "thrift/compiler/test/fixtures/basic/gen-cpp/MyServicePrioChild.h"
#include <folly/ScopeGuard.h>
#include "thrift/compiler/test/fixtures/basic/gen-cpp/module_reflection.h"
const uint64_t... | 10,913 | 3,969 |
#include <iostream>
#include <climits>
using namespace std;
const int N =1e6+2;
typedef long long ll;
ll tree[4*N];
ll arr[N];
void build(int node, int st, int en){
if(st == en){
tree[node] = arr[st];
return;
}
int mid = (st + en) / 2;
build(node * 2, st , mid);
build(node* 2 +1, mi... | 1,558 | 641 |
#include <iostream>
#include <fstream>
#include "ch3.hpp"
typedef stapl::map<int, stapl::map<int,int> > map_map_int_tp; // ## 1
typedef stapl::map_view<map_map_int_tp> map_map_int_vw_tp;
size_t ex_302(size_t,
stapl::stream<ifstream> &, stapl::stream<ofstream> &);
stapl::exit_code stapl_main(int argc, c... | 3,573 | 1,644 |
// sto.cpp
#include "sto.h"
/**
* Constructor
* @param type specifies on which type is to be stored (StackElementType)
*/
Sto::Sto(StackElementType type) : fType(type) {}
/**
* Destructor
*/
Sto::~Sto() {}
/**
* Checks the contents of the stack and then performs the store operation.
* @return none
* @param... | 3,171 | 1,283 |
#include "BytecodeGenerator.h"
#include "Instructions.h"
BytecodeGenerator::BytecodeGenerator(VM& vm, std::string name)
: m_vm(vm)
, m_block(vm, name)
{
emit<Enter>();
}
BytecodeGenerator::~BytecodeGenerator()
{
m_block.destroy(m_vm);
}
BytecodeBlock* BytecodeGenerator::finalize(Register result)
{
... | 10,928 | 3,425 |
#ifndef _FTK_POINTS2VTK_HH
#define _FTK_POINTS2VTK_HH
#include <ftk/ftk_config.hh>
#if FTK_HAVE_VTK
#include <vtkSmartPointer.h>
#include <vtkDoubleArray.h>
#include <vtkPoints.h>
#include <vtkPointData.h>
#include <vtkPolyData.h>
#include <vtkCellArray.h>
#include <vtkXMLPolyDataWriter.h>
namespace ftk {
template ... | 2,246 | 894 |
/*
* HemiPrep.hpp
*
*/
#ifndef PROTOCOLS_HEMIPREP_HPP_
#define PROTOCOLS_HEMIPREP_HPP_
#include "HemiPrep.h"
#include "FHEOffline/PairwiseMachine.h"
#include "Tools/Bundle.h"
template<class T>
PairwiseMachine* HemiPrep<T>::pairwise_machine = 0;
template<class T>
Lock HemiPrep<T>::lock;
template<class T>
void He... | 2,883 | 1,095 |
#include <migraphx/cpu/target.hpp>
#include <migraphx/cpu/lowering.hpp>
#include <migraphx/pass.hpp>
#include <migraphx/auto_contiguous.hpp>
#include <migraphx/rewrite_rnn.hpp>
#include <migraphx/dead_code_elimination.hpp>
#include <migraphx/generate.hpp>
namespace migraphx {
inline namespace MIGRAPHX_INLINE_NS {
nam... | 806 | 296 |
#include <iostream>
#include <memory>
#include <limits>
#include <valarray>
using std::cout;
using std::endl;
size_t V_V = std::numeric_limits<int>::max(); // creating array size
int step = 100000000; // step for search
bool step_setup()
{
if(step > 1)
{
V_V += step;
step = step / 10;
return... | 1,285 | 576 |
// ShareNode.cpp
#include "ShareAttrDir.h"
#include "ShareNode.h"
// constructor
ShareDirEntry::ShareDirEntry(ShareDir* directory, const char* name,
ShareNode* node)
: Referencable(true),
fDirectory(directory),
fName(name),
fNode(node),
fRevision(-1)
{
}
// destructor
ShareDirEntry::~ShareDirEntry()
{
... | 8,047 | 3,084 |
// Generated automatically by genkinds.h from ASTKind.kinds Fri Nov 9 10:04:23 2018.
// Do not edit
namespace stp {
#if defined(__GNUC__) || defined(__clang__)
__attribute__((visibility("default")))
#endif
const char * _kind_names[] = {
"UNDEFINED",
"SYMBOL",
"BVCONST",
"BVNOT",
"BVCONCAT",
"BVOR... | 1,840 | 967 |
/* -*- mode: c++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
/*
Copyright (C) 2006 Banca Profilo S.p.A.
This file is part of QuantLib, a free-software/open-source library
for financial quantitative analysts and developers - http://quantlib.org/
QuantLib is free software: you can redistribute i... | 3,151 | 952 |
// Copyright 2014 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "components/translate/core/browser/translate_browser_metrics.h"
#include <memory>
#include "base/macros.h"
#include "base/metrics/histogram.h"
... | 12,252 | 4,301 |
//===- SimplifyCFGPass.cpp - CFG Simplification Pass ----------------------===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===-------------------------------------------------------... | 11,616 | 3,702 |
/*
* cam_QGuide.cpp
* PHD Guiding
*
* Created by Craig Stark.
* Copyright (c) 2007-2010 Craig Stark.
* All rights reserved.
*
* This source code is distributed under the following "BSD" license
* Redistribution and use in source and binary forms, with or without
* modification, are permitted... | 7,450 | 2,802 |
#include "node_base.hpp"
#include <stdexcept>
NodeBase* NodeBase::AddChild(NodeBase* const ptr) {
for (NodeBase* it = parent; it != nullptr; it = it->parent) {
if (it == ptr) {
std::logic_error("Looping hierarchy found");
}
}
children.push_back(ptr);
ptr->parent = this;
return ptr;
}
NodeBase* NodeBase:... | 1,132 | 455 |
#include "gtest/gtest.h"
#include "gmock/gmock.h"
#include "stack_using_link_list.h"
#include <string>
using namespace testing;
using namespace algorithms;
TEST(StackUsingLinkListTests, TestInitiallEmpty) {
StackUsingLinkList<int> my_stack;
EXPECT_TRUE(my_stack.Empty()) << "Initially the stack is supposed to ... | 2,555 | 941 |
/*
* CANopen main program file for Linux SocketCAN.
*
* @file main
* @author Janez Paternoster
* @copyright 2015 Janez Paternoster
*
* This file is part of CANopenSocket, a Linux implementation of CANopen
* stack with master functionality. Project home page is
* <https://github.com/CANopenNode/CA... | 17,699 | 5,755 |
#include "global.h"
#include <stdio.h>
#if defined(HAVE_UNISTD_H)
#include <unistd.h>
#endif
#include <sys/types.h>
#include <sys/stat.h>
#if defined(HAVE_FCNTL_H)
#include <fcntl.h>
#endif
#include <errno.h>
#include "LightsDriver_Linux_PIUIO.h"
#include "GameState.h"
#include "Game.h"
#include "RageLog.h"
REGISTER... | 4,488 | 2,045 |
// 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 <stdint.h>
#include "base/bind.h"
#include "base/location.h"
#include "base/memory/ref_counted.h"
#include "base/run_loop.h"
#include "base/... | 16,647 | 5,485 |
/*
* Copyright (c) Facebook, Inc. and its affiliates.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree.
*/
#include <tensorpipe/common/allocator.h>
#include <tensorpipe/common/defs.h>
#include <tensorpipe/co... | 1,916 | 664 |
/*
* Copyright 2018 Google Inc.
*
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
// This is a GPU-backend specific test. It relies on static initializers to work
#include "include/core/SkTypes.h"
#if SK_SUPPORT_GPU && defined(SK_VULKAN)
#include "includ... | 12,112 | 3,608 |
#include <vnl/vnl_matrix_fixed.hxx>
VNL_MATRIX_FIXED_INSTANTIATE(double,4,2);
| 80 | 41 |
/**
* Copyright (c) 2017-present, Facebook, Inc. and its affiliates.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree.
*/
#include "GET_TRIM_POINT_Message.h"
#include "logdevice/common/GetTrimPointRequest.h"
... | 1,868 | 680 |
#include <iostream>
#include <cstdlib>
#include <cstring>
#include <vector>
#include <algorithm>
#include <sstream>
#include <set>
#include <climits>
#include <cstdio>
#include <string>
#include <map>
#include <unordered_map>
#include <deque>
#ifndef ONLINE_JUDGE
#define getchar_unlocked getchar
#define ... | 1,017 | 432 |
// Copyright (c) 2019-2020, Tom Westerhout
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are met:
//
// * Redistributions of source code must retain the above copyright notice, this
// list of cond... | 37,339 | 12,863 |
#include <iostream>
#include <memory>
#include <vector>
#include <stack>
#include <queue>
#include <map>
#include <set>
#include <string>
#include <cassert>
#include <stdlib.h>
#include <fstream>
#include <algorithm>
#include <cmath>
using namespace std;
struct ListNode {
int val;
ListNode *next;
ListNode(... | 861 | 284 |
#include <chrono>
#include <iomanip>
#include <sstream>
#include <random>
#include <algorithm>
#include "string_util.h"
std::vector<std::string> string_util::split(std::string &string, char delimiter) {
std::vector<std::string> res;
size_t last = 0, next;
while ((next = string.find(delimiter, last)) != st... | 2,121 | 761 |
#include <gtest/gtest.h>
#include <algorithm>
#include <unordered_map>
#include <vector>
#include "Common.h"
using namespace std;
class Solution {
public:
int maxValue(vector<vector<int>> &grid) {
/* 利用原矩阵进行dp值的保存 */
int m = grid.size(), n = grid[0].size();
/* 初始化第一行 */
for (int ... | 974 | 402 |
/******************************************************************************
* Copyright © 2014-2018 The SuperNET Developers. *
* *
* See the AUTHORS, DEVELOPER-AGREEMENT and LICENSE files at *
... | 9,199 | 3,229 |
// 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 "apps/app_host/binaries_installer.h"
#include "base/logging.h"
#include "base/threading/platform_thread.h"
#include "base/win/scoped_bstr.h"... | 10,282 | 3,625 |
// RUN: %clang_cc1 -std=c++11 -S -triple x86_64-none-linux-gnu -emit-llvm -o - %s | FileCheck %s
namespace std {
typedef decltype(sizeof(int)) size_t;
// libc++'s implementation with __size_ replaced by __end_
template <class _E>
class initializer_list
{
const _E* __begin_;
const _E* __end_;
in... | 2,530 | 1,036 |
/*
* File: IsBalanced.cpp
* --------------------
* This program checks to see whether the standard bracketing operators
* (parentheses, square brackets, and curly braces) are correctly matched.
*/
#include <iostream>
#include <string>
#include "console.h"
#include "simpio.h"
#include "stack.h"
using namespace std... | 1,874 | 561 |
#pragma once
#include "ResourceManager.hpp"
#include "Handle.hpp"
#include "Object.hpp"
#include "Settings.hpp"
#include "GameObject.hpp"
#include "Layer.hpp"
#include "Storyboard.hpp"
#include <string>
using std::string;
class HAnimation;
namespace Z
{
//========================================================... | 5,703 | 1,386 |
#include <PrecompiledHeader.h>
#include "Micro/Goals/FirstScoutGoal.h"
#include "Macro/InformationManager.h"
#include "Macro/BWSAL.h"
#include <BWTA.h>
#include "Subgoal.h"
#include "Intelligence/Intelligence.h"
#include "Regions/MapManager.h"
#include "Micro/Micro.h"
#include "Defines.h"
using namespace BW... | 10,925 | 4,580 |
/* This software and supporting documentation are distributed by
* Institut Federatif de Recherche 49
* CEA/NeuroSpin, Batiment 145,
* 91191 Gif-sur-Yvette cedex
* France
*
* This software is governed by the CeCILL-B license under
* French law and abiding by the rules of distribution of free soft... | 12,961 | 4,675 |
/*
* @Author: winston
* @Date: 2021-01-07 20:58:09
* @Last Modified by: WinstonLy
* @Last Modified time: 2021-04-16 14:38:31
* @Description:
* @FilePath: /home/winston/AscendProjects/rtsp_dvpp_infer_dvpp_rtmp_test/atlas200dk_yolov4/Electricity-Inspection-Based-Ascend310/src/model_infer.cpp
*/
#include "model_infe... | 25,802 | 9,255 |
#include <list>
#include <algorithm>
#include "rtmidi/RtMidi.h"
#include "core.hpp"
#include "MidiIO.hpp"
struct CCValue {
int val = 0; // Controller value
TransitionSmoother tSmooth;
int num = 0; // Controller number
bool numInited = false; // Num inited by config file
bool numSelected = false; // Text field sel... | 7,740 | 3,452 |
#include <iostream>
#include <iomanip>
using namespace std;
void accumulate_array_ptr(double *, const double);
void accumulate_array_ref(double &, const double);
int main(const int argn, char *argv[]){
double update_this_with_pointer = 0.0;
double update_this_with_reference = 0.0;
for(int i=0; 10 > ... | 790 | 275 |
#include "sprite.h"
#define SHIFT_MASK() \
mask >>= 1; \
if(mask == 0) { \
mask = 0b10000000; \
p_spr++; \
foo++; \
}
#define SHIFT_MASK_ALPHA() \
mask >>= 1; \
if(mask == 0) { \
mask = 0b10000000; ... | 19,245 | 7,907 |
// Copyright 2019-20 Glyn Matthews
// Distributed under the Boost Software License, Version 1.0.
// (See accompanying file LICENSE_1_0.txt of copy at
// http://www.boost.org/LICENSE_1_0.txt)
#include <algorithm>
#include <memory>
#define CATCH_CONFIG_MAIN
#include <catch2/catch.hpp>
#include <skyr/v2/url.hpp>
using n... | 798 | 305 |
//////////////////////////////////////////////
// GDIPlusView.cpp
// Definitions for the CGDIPlusView class
#include "stdafx.h"
#include "GDIPlusView.h"
using namespace Gdiplus;
CGDIPlusView::CGDIPlusView()
{
// Initialize GDI+.
GdiplusStartupInput gdiplusStartupInput;
GdiplusStartup(&m_gdiplusToken, &g... | 5,117 | 1,961 |
/****************************************************************************
**
** Copyright (C) 2011 Nokia Corporation and/or its subsidiary(-ies).
** All rights reserved.
** Contact: Nokia Corporation (qt-info@nokia.com)
**
** This file is part of the QtGui module of the Qt Toolkit.
**
** $QT_BEGIN_LICENSE:LGPL$
** ... | 68,819 | 21,892 |
/**
* @file gravity_netcdf.cc
*/
#include <genecis/phsyics/gravity.h>
using namespace genecis::physics ;
/**
* Initialize netCDF file for recording data
*/
void gravity::init_netcdf( const char* filename,
const char* long_name )
{
_nc_file = new NcFile( filename, NcFile::Replace );
_nc_rec = 0 ;
if ( long_na... | 1,458 | 609 |
/*
* MAC_Check_Base.hpp
*
*/
#ifndef PROTOCOLS_MAC_CHECK_BASE_HPP_
#define PROTOCOLS_MAC_CHECK_BASE_HPP_
#include "MAC_Check_Base.h"
template<class T>
void MAC_Check_Base<T>::POpen_Begin(vector<typename T::open_type>&,
const vector<T>& S, const Player& P)
{
init_open(P, S.size());
for (auto& secre... | 1,974 | 734 |
//------------------------------------------------------------------------------
//
// Copyright 2018-2019 Fetch.AI Limited
//
// 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
//
// ... | 2,614 | 1,014 |
// Copyright Carl Philipp Reh 2006 - 2019.
// Distributed under the Boost Software License, Version 1.0.
// (See accompanying file LICENSE_1_0.txt or copy at
// http://www.boost.org/LICENSE_1_0.txt)
#ifndef SGE_RENDERER_INDEX_BUFFER_HPP_INCLUDED
#define SGE_RENDERER_INDEX_BUFFER_HPP_INCLUDED
#inc... | 1,727 | 638 |
//
// httptest.cxx
//
// Copyright 2011 Vox Lucida Pty. Ltd.
//
#include <ptlib.h>
#include <ptlib/pprocess.h>
#include <ptlib/sockets.h>
#include <ptclib/pssl.h>
#include <ptclib/http.h>
#include <ptclib/threadpool.h>
class HTTPConnection
{
public:
HTTPConnection(
PHTTPSpace & httpNameSpace
#if P_SSL
... | 6,403 | 2,097 |
#include "pch.h"
#include "framework.h"
#include "PropertiesWnd.h"
#include "Resource.h"
#include "MainFrm.h"
#include "MDIDocing.h"
#ifdef _DEBUG
#undef THIS_FILE
static char THIS_FILE[]=__FILE__;
#define new DEBUG_NEW
#endif
//////////////////////////////////////////////////////////////////////////... | 12,933 | 5,231 |
/*
* Copyright 2019-2021 Diligent Graphics LLC
* Copyright 2015-2019 Egor Yusov
*
* 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/LICENS... | 14,278 | 4,457 |
//
// Project Name: KratosSolidMechanicsApplication $
// Created by: $Author: JMCarbonell $
// Last modified by: $Co-Author: $
// Date: $Date: July 2013 $
// Revision: $Revision: 0.0 $
//
//
#if !defin... | 24,563 | 8,259 |
/**
* Copyright 2019-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 applicabl... | 29,821 | 10,978 |
//
// Copyright 2020 Autodesk
//
// 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 ... | 4,422 | 1,446 |
// Copyright 2021 National Technology & Engineering Solutions of Sandia, LLC
// (NTESS). Under the terms of Contract DE-NA0003525 with NTESS, the U.S.
// Government retains certain rights in this software.
#include <cstring>
#include "faodel-common/StringHelpers.hh"
#include "lunasa/common/Helpers.hh"
#include "lunas... | 848 | 309 |
#pragma once
// This file is generated from the Game's Reflection data
#include <cstdint>
#include <RED4ext/Common.hpp>
#include <RED4ext/REDhash.hpp>
#include <RED4ext/CName.hpp>
#include <RED4ext/DynArray.hpp>
#include <RED4ext/Types/generated/world/QualitySetting.hpp>
#include <RED4ext/Types/generated/world/Trigge... | 828 | 291 |
#include "scene/BaseScene.hpp"
#include "common/CreateInfoBase.hpp"
#include "core/Instance.hpp"
#include "core/LogicalDevice.hpp"
#include "resource/DescriptorPool.hpp"
#include "resource/Buffer.hpp"
#include "util/UtilitySphere.hpp"
#include "math/Ray.hpp"
#include "util/AABB.hpp"
#include "lights/Light.hpp"
#includ... | 19,121 | 6,880 |
/*
* Copyright 2007 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.org/licenses/LICENSE-2.0
*
* Unless required by a... | 1,476 | 448 |
/*
* Copyright 2020-2021 AVSystem <avsystem@avsystem.com>
*
* 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 ap... | 1,520 | 505 |
/*****************************************************************************************
* *
* MIT License *
* ... | 10,647 | 3,637 |
/*
* Copyright (C) 2010 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:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditio... | 5,430 | 1,645 |
/*
* Copyright 2021 Google LLC
*
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
#include "include/core/SkBitmap.h"
#include "include/core/SkCanvas.h"
#include "include/core/SkColor.h"
#include "include/core/SkData.h"
#include "include/core/SkImageInfo.h"
#... | 32,054 | 11,175 |
/*
Copyright (c) 2009-2015, Jack Poulson
All rights reserved.
This file is part of Elemental and is under the BSD 2-Clause License,
which can be found in the LICENSE file in the root directory, or at
http://opensource.org/licenses/BSD-2-Clause
*/
#pragma once
#ifndef EL_FUNCS_HPP
#define EL_FUNCS_HPP
... | 5,563 | 2,024 |
#include <ion/usb.h>
namespace Ion {
namespace USB {
bool isPlugged() {
return false;
}
bool isEnumerated() {
return false;
}
void clearEnumerationInterrupt() {
}
void DFU() {
}
void enable() {
}
void disable() {
}
}
}
| 231 | 97 |
//-----------------------------------------------------------------------------
// 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... | 5,439 | 1,717 |
#include "catch2/catch.hpp"
#include "helpers.hpp"
#include "lex/error.hpp"
namespace lex {
TEST_CASE("[lex] Lexing identifiers", "lex") {
SECTION("Valid") {
CHECK_TOKENS("hello", identiferToken("hello"));
CHECK_TOKENS("héllo", identiferToken("héllo"));
CHECK_TOKENS("_hello", identiferToken("_hello"));... | 2,169 | 775 |
#include <string.h>
#include <math.h>
#include <vector>
#include "mex.h"
#include "util.h"
using namespace std;
void linear_emission(const mxArray* X, int len, model* crf, bool is_discrete, double* emission) {
/* Get variables from model */
double* P = crf->P; double* PP = crf->PP; double* R = crf->R; d... | 23,926 | 9,227 |
#include "zxcppvbn.hpp"
const size_t zxcppvbn::adjacency_graphs_size = 1369;
const uint8_t zxcppvbn::adjacency_graphs[] = {31,139,8,8,209,76,234,90,2,255,97,100,106,97,99,101,110,99,121,95,103,114,97,112,104,115,0,165,151,107,67,83,71,16,134,203,206,47,17,21,36,36,16,8,4,2,4,197,90,235,181,173,149,182,84,80,12,132,10... | 5,044 | 4,979 |
// Fill out your copyright notice in the Description page of Project Settings.
#include "EZClientGameMode.h"
#include "WebSocketBlueprintLibrary.h"
#include "EZOnline.h"
#include "CoreGlobals.h"
#include "Misc/ConfigCacheIni.h"
#include "EZOnlineGameInstance.h"
#include "GameMapsSettings.h"
#include "Kismet/KismetStri... | 2,011 | 714 |
#include "celldata.h"
#include <assert.h>
#include "toonz/txsheet.h"
#include "toonz/txshcolumn.h"
#include "toonz/txshleveltypes.h"
#include "toonz/txshzeraryfxcolumn.h"
#include "toonz/txshzeraryfxlevel.h"
#include "toonz/tcolumnfx.h"
#include "toonz/fxdag.h"
#include "toonz/txshlevelcolumn.h"
//-----------------... | 6,703 | 2,487 |
#include <algorithm>
#include <iostream>
#include <iterator>
#include <vector>
int main()
{
std::vector<int> v{ 0, 1, 2, 3, 4, 5, 6, 7, 8, 9 };
std::fill(v.begin(), v.end(), 7);
std::copy(v.begin(), v.end(), std::ostream_iterator<int>{ std::cout, " " });
return 0;
}
| 285 | 127 |
//MIT License
//
//Copyright(c) 2016 Matthias Moeller
//
//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, mod... | 30,396 | 8,359 |
// Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "content/browser/loader/certificate_resource_handler.h"
#include "base/string_util.h"
#include "content/browser/loader/resource_request_info... | 4,723 | 1,424 |
#include <iostream>
#include <string>
#include <windows.h>
#include "msg.pb.h"
int main(int argc, char* argv[]) {
Person john;
john.set_id(1234);
john.set_name("John Doe");
john.set_email("jdoe@example.com");
std::cout << john.DebugString() << std::endl;
Person john_copy;
john_copy.set_id(john.id());
john_co... | 493 | 221 |
#include <json.hpp>
using namespace nlohmann;
int main()
{
// create a JSON array
json array = {1, 2, 3, 4, 5};
// output element at index 3 (fourth element)
std::cout << array[3] << '\n';
// change last element to 6
array[array.size() - 1] = 6;
// output changed array
std::cout << ... | 451 | 165 |
// SPDX-FileCopyrightText: 2014 Erik Garrison
//
// SPDX-License-Identifier: MIT
/**
* \file dagified_graph.cpp: contains the implementation of DagifiedGraph
*/
#include "dagified_graph.hpp"
//#define debug_dagify
namespace vg {
using namespace std;
DagifiedGraph::DagifiedGraph(const HandleGraph* graph, si... | 16,517 | 4,638 |
// Generated from /POI/java/org/apache/poi/ss/formula/functions/TextFunction.java
#include <org/apache/poi/ss/formula/functions/TextFunction.hpp>
#include <java/lang/NullPointerException.hpp>
#include <java/lang/String.hpp>
#include <org/apache/poi/ss/formula/eval/ErrorEval.hpp>
#include <org/apache/poi/ss/formula/eva... | 8,481 | 2,930 |
/*******************************************************************************
* This file is part of Tiny3D (Tiny 3D Graphic Rendering Engine)
* Copyright (C) 2015-2019 Answer Wong
* For latest info, see https://github.com/answerear/Tiny3D
*
* This program is free software: you can redistribute it and/or modi... | 9,525 | 3,608 |
#include "gtest/gtest.h"
#include "QPanda.h"
#include <iostream>
#include <vector>
#include <stdio.h>
#include <memory>
#include <chrono>
#include <string>
#include "Extensions/Extensions.h"
#ifdef USE_EXTENSION
#ifndef PI
#define PI 3.1415926
#endif // !PI
const size_t kShots = 2048;
const size_t kEpsion = kShots *... | 16,138 | 7,336 |
/***************************************************************************
* Copyright (c) 2016, Johan Mabille and Sylvain Corlay *
* *
* Distributed under the terms of the BSD 3-Clause License. *
* ... | 65,973 | 20,397 |
#include "guinsoodb/function/scalar/trigonometric_functions.hpp"
#include "guinsoodb/common/vector_operations/vector_operations.hpp"
#include "guinsoodb/common/exception.hpp"
namespace guinsoodb {
void BuiltinFunctions::RegisterTrigonometricsFunctions() {
Register<SinFun>();
Register<CosFun>();
Register<TanFun>();... | 459 | 165 |
// HandlerOut.cpp
#include "StdAfx.h"
#include "../../../Common/StringToInt.h"
#include "../../../Windows/PropVariant.h"
#ifndef _7ZIP_ST
#include "../../../Windows/System.h"
#endif
#include "../../ICoder.h"
#include "../Common/ParseProperties.h"
#include "HandlerOut.h"
using namespace NWindows;
namespace NArc... | 16,278 | 6,440 |
/**
* AutoConnectTicker class implementation.
* Provides a service that shows the flicker signal according to WiFi
* connection status.
* @file AutoConnectTicker.cpp
* @author hieromon@gmail.com
* @version 0.9.11
* @date 2019-07-09
* @copyright MIT license.
*/
#include "AutoConnectTicker.h"
... | 1,442 | 505 |
/**
* @file assemble.hpp
* @author Noah Witt (nawitt18@ole.augie.edu)
* @version 0.1
* @date 2021-09-01
*
*/
#pragma once
#include <string>
#include <cstring>
#include <vector>
#include <list>
#include <unordered_map>
#include "./registers.hpp"
#include "./memory.h"
#include "./memory.t.hpp"
#include "symbol.h... | 3,256 | 1,118 |
//----------------------------------------------------------------------------
//
// TSDuck - The MPEG Transport Stream Toolkit
// Copyright (c) 2005-2020, Thierry Lelegard
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the f... | 27,911 | 8,904 |
/*
*
* Copyright (c) 2021 Project CHIP 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 requir... | 24,019 | 7,890 |
--- CoinUtils/src/CoinSignal.hpp.orig 2015-03-13 20:16:34 UTC
+++ CoinUtils/src/CoinSignal.hpp
@@ -43,8 +43,15 @@
//-----------------------------------------------------------------------------
+#if defined(__DragonFly__) && defined(__GNUC__)
+ typedef typeof(SIG_DFL) CoinSighandler_t;
+# define CoinSighandler_... | 612 | 234 |
#ifndef CORE_PARSER_HPP
#define CORE_PARSER_HPP
#include <array>
#include <filesystem>
#include <memory>
#include <xercesc/dom/DOM.hpp>
#include <xercesc/dom/DOMDocument.hpp>
#include <xercesc/dom/DOMErrorHandler.hpp>
#include <xercesc/framework/XMLGrammarPool.hpp>
#include <xercesc/parsers/XercesDOMParser.hpp>
#incl... | 4,420 | 1,455 |
// See the file "COPYING" in the main distribution directory for copyright.
#include "zeek-config.h"
#include "zeek/Obj.h"
#include <stdlib.h>
#include "zeek/Desc.h"
#include "zeek/Func.h"
#include "zeek/File.h"
#include "zeek/plugin/Manager.h"
namespace zeek {
namespace detail {
Location start_location("<start un... | 4,536 | 1,783 |
// Copyright (c) 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/peerconnection/rtc_rtp_receiver_impl.h"
#include "base/bind.h"
#include "base/check_op.h"
#include "base... | 15,512 | 5,231 |