text string | size int64 | token_count int64 |
|---|---|---|
// Copyright (c) 2007-2013 Hartmut Kaiser
//
// SPDX-License-Identifier: BSL-1.0
// Distributed under the Boost Software License, Version 1.0. (See accompanying
// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
#include <hpx/hpx_init.hpp>
#include <hpx/hpx_finalize.hpp>
////////////////////... | 767 | 258 |
/*##############################################################################
HPCC SYSTEMS software Copyright (C) 2015 HPCC Systems®.
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... | 16,180 | 4,928 |
/// Source : https://leetcode.com/problems/group-anagrams/description/
/// Author : liuyubobobo
/// Time : 2018-09-12
#include <iostream>
#include <vector>
#include <unordered_map>
using namespace std;
/// Using HashMap
/// Using sorted string as key
///
/// Time Complexity: O(n*klogk) where k is the max length o... | 825 | 279 |
// 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 "chrome/browser/supervised_user/supervised_user_allowlist_service.h"
#include <stddef.h>
#include <string>
#include <utility>
#include "base/b... | 12,697 | 4,063 |
/*
Copyright (c) 2018, 2019, Oracle and/or its affiliates. All rights reserved.
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License, version 2.0,
as published by the Free Software Foundation.
This program is also distributed with certain ... | 9,850 | 3,077 |
// 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/extensions/api/system_private/system_private_api.h"
#include <memory>
#include <utility>
#include "base/macros.h"
#include ... | 6,509 | 2,036 |
/*
* winapplication.cpp
*
* Author: flamingo
* E-mail: epiforce57@gmail.com
*/
#include "winapplication.h"
void WinApplication::update(float dt)
{
}
WinApplication::WinApplication(int argc, const char *argv[])
: platform::BaseAppWin(argc, argv)
{
m_playerCamera = m_clientController->getCamera... | 2,583 | 918 |
// This file is part of meshoptimizer library; see meshoptimizer.h for version/license details
#include "meshoptimizer.h"
#include "../../../../OS/Interfaces/ILog.h"
#include "../../../../ThirdParty/OpenSource/ModifiedSonyMath/vectormath_settings.hpp"
#define MEM_MAX(a, b) ((a) > (b) ? (a) : (b))
#define MIN_ALLOC_ALI... | 1,333 | 524 |
#include "stdafx.h"
#include "GameSceneEx.h"
cocos2d::Scene* CGameSceneEx::CreateScene(const TGameSceneContext* pContext /*= nullptr*/)
{
auto scene = Scene::create();
auto layer = CGameSceneEx::create(pContext);
scene->addChild(layer);
scene->setTag(GAME_SCENE_TAG);
return scene;
}
cocos2d::LayerColor* CGameS... | 18,430 | 7,861 |
/*
* 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 ... | 7,515 | 2,619 |
#include "cdif.h"
#include "test_types.h"
#include <gtest/gtest.h>
#include <functional>
#include <string>
#include <thread>
class RegistrationBuilderTests : public ::testing::Test
{
protected:
cdif::Container _subject;
template <typename T>
void givenRegistrationReturningValue(T value, ... | 4,159 | 1,337 |
#include <Common/config.h>
#if USE_AWS_S3
#include <IO/S3Common.h>
#include <Storages/StorageS3.h>
#include <Access/AccessFlags.h>
#include <Interpreters/evaluateConstantExpression.h>
#include <Interpreters/Context.h>
#include <TableFunctions/TableFunctionFactory.h>
#include <TableFunctions/TableFunctionS3.h>
#includ... | 3,475 | 1,109 |
#include <random>
#include <iostream>
#include <stdlib.h>
#include <math.h>
#include <math.h> // smallpt, a Path Tracer by Kevin Beason, 2008
#include <stdlib.h> // Make : g++ -O3 -fopenmp smallpt.cpp -o smallpt
#include <stdio.h> // Remove "-fopenmp" for g++ version < 4.2
#include <atomic>
#include <mutex>
... | 16,016 | 6,477 |
//
// Copyright (c) 2009, Tweak Software
// 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, th... | 3,495 | 1,084 |
// Warning! This file is autogenerated.
#include <boost/text/bidirectional.hpp>
#include "bidi_tests.hpp"
#include <gtest/gtest.h>
#include <algorithm>
std::vector<int> expected_levels;
std::vector<int> expected_reordered_indices;
TEST(bidi, bidi_147_000)
{
expected_levels = { 1, 1, -1, -1 };
expected_re... | 1,004,280 | 373,483 |
// -*- C++ -*-
//===------------------------------ span ---------------------------------===//
//
// 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
//
//===-------------... | 2,737 | 1,025 |
#include "internal.hpp"
namespace CaDiCaL {
/*------------------------------------------------------------------------*/
// Once in a while we reduce, e.g., we remove learned clauses which are
// supposed to be less useful in the future. This is done in increasing
// intervals, which has the effect of allowing more... | 7,205 | 2,261 |
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/* vim:set ts=2 sw=2 sts=2 et cindent: */
/* 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 http://mozilla.org/MPL/2.... | 2,194 | 893 |
#include <iostream>
#include <cstdio>
#include <cstring>
#include <cassert>
#include <cctype>
#include <vector>
using namespace std;
typedef long long lint;
#define cout cerr
#define ni (next_num<int>())
template<class T>inline T next_num(){
T i=0;char c;
while(!isdigit(c=getchar())&&c!='-');
bool flag=c=='-';
flag... | 1,833 | 1,027 |
/****************************************************************************
*
* (c) 2009-2020 QGROUNDCONTROL PROJECT <http://www.qgroundcontrol.org>
*
* QGroundControl is licensed according to the terms in the file
* COPYING.md in the root of the source code directory.
*
***************************************... | 4,979 | 1,522 |
// Copyright 2020 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "chrome/browser/net/stub_resolver_config_reader.h"
#include <memory>
#include <vector>
#include "base/test/task_environment.h"
#include "base/v... | 14,888 | 5,012 |
#pragma once
#include "definitions.hpp"
#include "vector.hpp"
#include <Eigen/Dense>
using System = Matrix;
namespace Distance
{
void init(const System&);
Real probe(const System&, int i, int j);
void invalidate_cache(int i);
// The plain, non-memoized euclidian norm.
// Fall back to this if not initialized, or wh... | 480 | 161 |
#include <Game.hpp>
#include <Server/XServer.hpp>
#include <ScriptObjects/ScriptObjectGame.hpp>
#include <BlackBox/Core/IMarkers.hpp>
#include <BlackBox/System/IConsole.hpp>
//////////////////////////////////////////////////////////////////////
// Construction/Destruction
////////////////////////////////////////////... | 12,594 | 4,634 |
/**
* @file expectation.cpp
* @author Chris Vig (chris@invictus.so)
* @date 2016/12/30
*/
/* -- Includes -- */
#include <sstream>
#include <string>
#include <spookshow/spookshow.hpp>
/* -- Namespaces -- */
using namespace spookshow;
/* -- Procedures -- */
expectation::expectation(const std::string& name, int... | 1,235 | 451 |
#include <cstdio>
#include <vector>
#include <algorithm>
#define MAXN 200005
using namespace std;
pair <int,int> x[1<<19],now;
int n,T,R,ans,o,lg[MAXN<<1],pt[MAXN],p[MAXN],pos[MAXN],dep[MAXN<<1];
int fa[19][MAXN<<1],euler[MAXN<<1];
vector <int> g[MAXN];
inline void dfs(int x,int deep)
{
pt[x]=++R;euler[R]=x;dep[R]=d... | 2,749 | 1,610 |
// 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 "media/capture/video/chromeos/pixel_format_utils.h"
#include <drm_fourcc.h>
namespace media {
namespace {
struct SupportedFormat {
cros::mo... | 2,515 | 926 |
/*M///////////////////////////////////////////////////////////////////////////////////////
//
// IMPORTANT: READ BEFORE DOWNLOADING, COPYING, INSTALLING OR USING.
//
// By downloading, copying, installing or using the software you agree to this license.
// If you do not agree to this license, do not download, instal... | 49,659 | 19,833 |
//Problem Link: https://practice.geeksforgeeks.org/problems/merge-two-sorted-linked-lists/1
/* Link list Node
struct Node {
int data;
struct Node *next;
Node(int x) {
data = x;
next = NULL;
}
};
*/
Node* sortedMerge(Node* h1, Node* h2)
{
Node* h3 = NULL;
Node* last = NULL;
if(h1->da... | 961 | 370 |
/**************************************************************\
* Author: Trevor Sundberg
* Copyright 2016, DigiPen Institute of Technology
\**************************************************************/
#pragma once
#ifndef ZILCH_ANY_HPP
#define ZILCH_ANY_HPP
namespace Zilch
{
// Returns an invalid type that is ... | 8,977 | 2,490 |
#include "geometric/bounding_box.hpp"
#include <algorithm>
#include <cmath> // for atan, exp
#include <type_traits> // for move, swap
#include <boost/math/constants/constants.hpp>
namespace nepomuk
{
namespace geometric
{
WGS84BoundingBox::WGS84BoundingBox(WGS84Coordinate lower_left, WGS84Coordinate upper_rig... | 4,509 | 1,399 |
#include <iostream>
#include <vector>
using namespace std;
inline
void use_io_optimizations()
{
ios_base::sync_with_stdio(false);
cin.tie(nullptr);
}
class UnionFind
{
public:
UnionFind(unsigned int items):
components(items),
parents(items),
ranks(items)
{
for (unsigne... | 1,977 | 621 |
#pragma once
#include <windows.h>
typedef enum { L_DEBUG, L_INFO, L_WARN, L_ERROR } LEVEL, *PLEVEL;
//
// A quick logging routine for debug messages.
//
#define MAX_LOG_MESSAGE 1024
BOOL LogMessage(LEVEL Level, LPCTSTR Format, ...); | 237 | 96 |
// Copyright 2009-2020 NTESS. Under the terms
// of Contract DE-NA0003525 with NTESS, the U.S.
// Government retains certain rights in this software.
//
// Copyright (c) 2009-2020, NTESS
// All rights reserved.
//
// This file is part of the SST software package. For license
// information, see the LICENSE file in the ... | 4,415 | 1,595 |
#ifndef ENTITY_H
#define ENTITY_H
#include <SFML/Window.hpp>
#include <SFML/System.hpp>
#include <SFML/Graphics.hpp>
#include <iostream>
#include "essence.hpp"
//this class handle static objects
template <class T> class entity : public essence<T>{
protected:
void setBoundery();
public:
//----------CONST... | 1,523 | 454 |
#include <pybind11/pybind11.h>
void init_superblocking(pybind11::module &m);
void init_torch_utils(pybind11::module &m);
void init_triton(pybind11::module &m);
PYBIND11_MODULE(libtriton, m) {
m.doc() = "Python bindings to the C++ Triton API";
init_triton(m);
init_torch_utils(m);
init_superblocking(m);
}
| 316 | 145 |
/*
* Original work Copyright (c) 2006-2009 Erin Catto http://www.box2d.org
* Modified work Copyright (c) 2017 Louis Langholtz https://github.com/louis-langholtz/Box2D
*
* This software is provided 'as-is', without any express or implied
* warranty. In no event will the authors be held liable for any damages
* arising ... | 4,835 | 1,482 |
/*
* Copyright (C) 2006-2013 Music Technology Group - Universitat Pompeu Fabra
*
* This file is part of Essentia
*
* Essentia is free software: you can redistribute it and/or modify it under
* the terms of the GNU Affero General Public License as published by the Free
* Software Foundation (FSF), either version... | 23,145 | 7,493 |
/* Copyright (c) 2016 PaddlePaddle Authors. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or... | 5,647 | 1,964 |
#include "calc/token.h"
#include <array>
#include <string_view>
#include <sstream>
#include <cassert>
[[nodiscard]] std::string
Token::ToString() const
{
constexpr std::array NAMES{
std::string_view{"NUMBER"},
std::string_view{"AND"},
std::string_view{"OR"},
std::s... | 982 | 370 |
class Solution {
public:
int BASE = 1000000;
/**
* @param source:
* @param target:
* @return: return the index
*/
int strStr(string &source, string &target) {
// Write your code here
int tLength = target.size();
if (tLength == 0) {
return 0;
... | 1,414 | 436 |
//===----------------------------------------------------------------------===//
//
// 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
// Also available under a BSD-style... | 10,118 | 3,169 |
#include <iostream>
#include <vector>
using namespace std;
class Solution {
public:
bool isScramble(string s1, string s2) {
if (s1 == s2) return true;
int length = s1.size();
vector<int> count(26, 0);
for (int i = 0; i < length; i++) {
count[s1[i]-'a'] += 1;
... | 971 | 374 |
#ifndef LIMONP_CAST_FUNCTS_H
#define LIMONP_CAST_FUNCTS_H
namespace limonp {
namespace CastFloat {
//logical and or
static const int sign_32 = 0xC0000000;
static const int exponent_32 = 0x07800000;
static const int mantissa_32 = 0x007FE000;
static const int sign_exponent_32 = 0x40000000;
static const int loss_32 = 0x3... | 2,031 | 1,010 |
/******************************************************************************
* Spine Runtime Software License - Version 1.1
*
* Copyright (c) 2013, Esoteric Software
* All rights reserved.
*
* Redistribution and use in source and binary forms in whole or in part, with
* or without modification, are permitte... | 4,887 | 1,799 |
/* Copyright 2022 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... | 1,469 | 427 |
/*
Copyright (c) 2010-2014, Mathieu Labbe - IntRoLab - Universite de Sherbrooke
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
... | 5,897 | 2,298 |
#pragma once
#include "../Commons.hpp"
#include "../interfaces/PatternInterface.hpp"
#include "../interfaces/ThreadSafeQueue.hpp"
#include "../interfaces/Executor.hpp"
#include "../interfaces/LoadBalancer.hpp"
#include <cassert>
#include <future>
#include <thread>
#include <vector>
template<typename T_input, typena... | 4,082 | 1,697 |
#include "RemoteWaybillSchedulingAlgorithm.hpp"
#include "assfire/api/v1/scheduler/translators/Translators.hpp"
#include "assfire/api/v1/router/translators/Translators.hpp"
using namespace assfire::scheduler;
using namespace assfire::api::v1::scheduler;
RemoteWaybillSchedulingAlgorithm::RemoteWaybillSchedulingAlgorit... | 1,505 | 475 |
#include "Command/Factory/DivideFactory.h"
namespace GoF {
namespace Command {
namespace Factory {
Command * DivideFactory::createCommand(double _operand, double _operator)
{
return new Divide(this->createReceiver(_operand, _operator));
}
... | 503 | 129 |
/*
Copyright (C) 2021 George Cave.
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... | 3,365 | 1,100 |
/*!
\file Draw_Line.c
\author Mario Palomo <mpalomo@ihman.com>
\author Jose M. de la Huerga Fern�ndez
\author Pepe Gonz�lez Mora
\date 05-2002
Based in Kenny Hoff sourcer.
*/
/*
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Library General Public
... | 5,460 | 2,323 |
/*******************************************************************\
Module: GOTO-DIFF Base Class
Author: Peter Schrammel
\*******************************************************************/
/// \file
/// GOTO-DIFF Base Class
#include "goto_diff.h"
#include <util/json_expr.h>
#include <util/options.h>
#include... | 4,897 | 1,579 |
/// ActionsAPI.cpp
///
/// Copyright 1997-2007 by David K. McAllister
/// http://www.ParticleSystems.org
///
/// This file implements the action API calls by creating action class instances,
/// which are either executed or added to an action list.
#include "stdafx.h"
#include "pAPI.h"
#include "PInternalState.h"
name... | 12,088 | 4,384 |
//============================================================================
//
// This file is part of GPSTk, the GPS Toolkit.
//
// The GPSTk 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; ei... | 5,975 | 1,745 |
// CGameFree.cpp: 实现文件
//
#include "stdafx.h"
#include "LLK.h"
#include "CGameFree.h"
#include "afxdialogex.h"
#include <Windows.h>
#include <MMSystem.h>
#pragma comment( lib,"winmm.lib" )
// CGameFree 对话框
IMPLEMENT_DYNAMIC(CGameFree, CDialogEx)
CGameFree::CGameFree(CWnd* pParent /*=nullptr*/)
: ... | 8,364 | 4,297 |
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
#include "stdafx.h"
#include <thread>
#include <algorithm>
#include "constants.h"
#include "connection_impl.h"
#incl... | 29,831 | 7,303 |
#pragma once
// ARKSurvivalEvolved (329.9) SDK
#ifdef _MSC_VER
#pragma pack(push, 0x8)
#endif
#include "ARKSurvivalEvolved_Buff_BrainSlugShoulderVisualCient_structs.hpp"
namespace sdk
{
//---------------------------------------------------------------------------
//Classes
//---------------------------------------... | 1,569 | 519 |
// Copyright 2016 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/android/vr_shell/vr_shell_renderer.h"
#include "chrome/browser/android/vr_shell/vr_gl_util.h"
namespace {
#define RECTANGULAR_... | 16,573 | 6,295 |
#include "Manager/TeAudioManager.h"
#include "Utility/TeDynLibManager.h"
#include "Utility/TeDynLib.h"
namespace te
{
AudioManager::AudioManager(const String& pluginName)
: _plugin(nullptr)
, _factory(nullptr)
{
_plugin = DynLibManager::Instance().Load(pluginName);
if (_plugin ... | 1,099 | 303 |
#include "simple/igloo.h"
using namespace igloo;
#include <map>
#include <set>
#include <list>
#include <deque>
#include <vector>
#include "simple/buffer.h"
struct testBufferMsg1 {
enum {ID = 1};
int n;
std::string s;
};
buffer& operator>>(buffer& buf, testBufferMsg1& obj) {
uintmax_t size;
... | 6,059 | 2,485 |
/**
* @file src/llvmir2hll/ir/unary_op_expr.cpp
* @brief Implementation of UnaryOpExpr.
* @copyright (c) 2017 Avast Software, licensed under the MIT license
*/
#include "retdec/llvmir2hll/ir/unary_op_expr.h"
#include "retdec/llvmir2hll/support/debug.h"
namespace retdec {
namespace llvmir2hll {
/**
* @brief Construct... | 2,036 | 783 |
// Copyright Carl Philipp Reh 2009 - 2016.
// 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 MIZUIRO_COLOR_FORMAT_HOMOGENOUS_DYNAMIC_NS_TAG_OF_HPP_INCLUDED
#define MIZUIRO_COLOR_FORMAT... | 943 | 380 |
class ConstructionLarge
{
name = $STR_ZECCUP_ConstructionLarge;
// EAST
class LightFactory_CUP_O_TK {
name = $STR_ZECCUP_MilitaryDesert_ConstructionLarge_LightFactory_CUP_O_TK; // Credit: 2600K
icon = "\ca\data\flag_rus_co.paa";
side = 8;
class Object0 {side = 8; vehicle = "Land_tent_eas... | 120,271 | 58,837 |
////////////////////////////////////////////////////////////////////////////////
//
// Copyright 2016 - 2020, Thomas Lauf, Paul Beckingham, Federico Hernandez.
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to d... | 6,254 | 2,061 |
#if !defined(nekrs_meshsetup_hpp_)
#define nekrs_meshsetup_hpp_
#include "nrs.hpp"
mesh_t* createMeshDummy(MPI_Comm comm,
int N,
int cubN,
setupAide &options,
occa::device device,
occa::properties &k... | 810 | 232 |
#include <bits/stdc++.h>
using namespace std;
const int maxn = 55555;
int main() {
int n;
cin >> n;
vector<bool> primes(maxn, true);
for (int i = 2; i < maxn; ++i) {
if (primes[i]) {
for (int j = i + i; j < maxn; j += i) {
primes[j] = false;
}
}
... | 631 | 248 |
#include <gtest/gtest.h>
#include "law/collision/Collision.h"
#include "law/collision/detector/CollisionDetectorSimple.cuh"
#include "law/collision/resolver/CollisionResolverCoalesce.cuh"
#include "LawHelper.h"
#include "CollisionTestHelper.h"
TEST(CollisionTest, ParticlesCollideGpu) {
auto law = std::make_shared<Co... | 4,306 | 1,419 |
#include <iostream>
using namespace std;
int main(){
//Pointer declaration
int *p;
//Array declaration
int arr[]={1, 2, 3, 4, 5, 6};
//Assignment
p = arr;
for(int i=0; i<6;i++){
cout<<*p<<endl;
// cout<<sizeof(p)<<endl;
//++ moves the pointer to next int position... | 357 | 134 |
// Copyright 2015 Jacob Chapman
#include <cmath>
#include <algorithm>
#include "Utility.hpp"
#include "Model_ExternalShading.hpp"
Model_ExternalShading::Model_ExternalShading() {
a01arr = -7.41;
b01inarr = 0.001035;
b01sarr = 2.17;
// Probability of raising on arrival
a10arr = -1.520;
b10inarr = -0.000654... | 6,502 | 2,424 |
/*
* Copyright 2005 by NVIDIA Corporation. All rights reserved. All
* information contained herein is proprietary and confidential to NVIDIA
* Corporation. Any use, reproduction, or disclosure without the written
* permission of NVIDIA Corporation is prohibited.
*/
#ifndef __Cg_determinant_hpp__
#define __Cg_... | 908 | 317 |
#pragma once
#include <memory>
#include <pqxx/pqxx>
#include <tagsql/anatomy/table.h++>
namespace tagsql
{
template<typename SelectQuery>
class composite_table;
template<typename SelectQuery>
class select_clause
{
public:
select_clause(std::shared_ptr<pqxx::connection> & connection) : _connect... | 656 | 246 |
/******************************************************************************
* Copyright (c) Open Connectivity Foundation (OCF), AllJoyn Open Source
* Project (AJOSP) Contributors and others.
*
* SPDX-License-Identifier: Apache-2.0
*
* All rights reserved. This program and the accompanying material... | 9,589 | 3,292 |
/**
* This code is part of Qiskit.
*
* (C) Copyright IBM 2018, 2019.
*
* This code is licensed under the Apache License, Version 2.0. You may
* obtain a copy of this license in the LICENSE.txt file in the root directory
* of this source tree or at http://www.apache.org/licenses/LICENSE-2.0.
*
* Any modificatio... | 39,549 | 12,771 |
/*
* Copyright (C) 2013 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... | 8,636 | 2,470 |
#include "update_rules_editor.h"
#include "nodes_editor/imguinodegrapheditor.h"
#include "UpdateRulesHandler/node_graph_instance.h"
#include "JSON_nlohmann/json.hpp"
#include <vector>
#include <string>
using json = nlohmann::json;
UpdateRulesEditor::UpdateRulesEditor(){
mEditor = ImGui::NodeGraphEditor();
mEdit... | 7,037 | 2,283 |
// EnergyPlus, Copyright (c) 1996-2018, The Board of Trustees of the University of Illinois,
// The Regents of the University of California, through Lawrence Berkeley National Laboratory
// (subject to receipt of any required approvals from the U.S. Dept. of Energy), Oak Ridge
// National Laboratory, managed by UT-Batt... | 10,852 | 3,358 |
#include <stdio.h>
#include "agg_basics.h"
#include "agg_rendering_buffer.h"
#include "agg_rasterizer_scanline_aa.h"
#include "agg_scanline_u.h"
#include "agg_scanline_p.h"
#include "agg_renderer_scanline.h"
#include "agg_span_allocator.h"
#include "agg_span_gouraud_rgba.h"
#include "agg_span_gouraud_gray.h"
... | 9,260 | 3,844 |
//==================================================================================================
/*
KUMI - Compact Tuple Tools
Copyright : KUMI Contributors & Maintainers
SPDX-License-Identifier: MIT
*/
//==================================================================================================
#inclu... | 499 | 145 |
// Copyright (C) 2018-2020 Intel Corporation
// SPDX-License-Identifier: Apache-2.0
//
#include "list.hpp"
#include "base.hpp"
#include <vector>
#include <string>
#include <cmath>
#include <limits>
#include "ie_parallel.hpp"
namespace InferenceEngine {
namespace Extensions {
namespace Cpu {
class PriorBoxImpl: publ... | 14,426 | 4,550 |
#include "stdafx.h"
#include "CustomFilter.h"
/*
CustomFilter::CustomFilter(pcl::PointCloud<pcl::PointXYZRGB>::Ptr *input, double xmin, double xmax, double ymin, double ymax){
input_cloud_XYZRGB = input;
std::cout << xmin << xmax << ymin << ymax <<std::endl;
std::cout << "before filtering " << (*input)->points.si... | 2,091 | 818 |
#include <cpp11-range/range.hpp>
#include <algorithm>
#include <iostream>
#include <iterator>
#include <vector>
template <typename R>
void print_range(R const& range);
template <typename R>
void test_range_size(R const& range);
int main() {
using std::cout;
using util::lang::range;
using util::lang::ind... | 3,417 | 1,232 |
#include "dsa_common.h"
#include "broker.h"
#include "module/default/simple_security.h"
#include "module/default/simple_session_manager.h"
#include "config/broker_config.h"
#include "module/default/console_logger.h"
#include "module/client/broker_client_manager.h"
#include "module/authorizer/broker_authorizer.h"
... | 595 | 226 |
//////////////////////////////////////////////////////
//
// Implementation of class AlephManager
//
// The Base Class for an AlephManager (IO, DB, EXE,...)
//
// Author : G. Dissertori , 02.11.98
//
//////////////////////////////////////////////////////
#include <string>
#include <iostream>
#include <fstream>
... | 1,277 | 427 |
/*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
#include <memory>
#include <assert.h>
#include <gtest/gtest.h>
#include <ABI44_0_0React/ABI44_0_0renderer/attributedstring/Attribu... | 1,850 | 660 |
//circle.cpp
#include "circle.h"
void Circle::draw()
{
std::cout<<"draw circle\n";
}; | 90 | 36 |
// Copyright (c) YugaByte, 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 writ... | 12,802 | 4,084 |
/*
Copyright 2016-2020 Intel Corporation
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in w... | 1,575 | 516 |
#include <gtest/gtest.h>
#include <opencv2/core.hpp>
#include <opencv2/opencv.hpp>
#include <fstream>
#include <libutils/timer.h>
#include <libutils/rasserts.h>
#include <libutils/string_utils.h>
#include <phg/utils/point_cloud_export.h>
#include <phg/utils/cameras_bundler_import.h>
#include <phg/mvs/depth_maps/pm_... | 3,159 | 1,132 |
#include "MainFrm.h"
#include "resource.h"
CMainFrame::CMainFrame() : m_PenColor(RGB(0,0,0))
{
// Set the Resource IDs for the toolbar buttons
AddToolBarButton( 0 ); // Separator
AddToolBarButton( IDM_RED );
AddToolBarButton( IDM_BLUE );
AddToolBarButton( IDM_GREEN );
AddToolBarButton( IDM_BLACK );
}
void ... | 3,362 | 1,491 |
/*
* Copyright 2019 Peifeng Yu <peifeng@umich.edu>
*
* This file is part of Salus
* (see https://github.com/SymbioticLab/Salus).
*
* 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
*
... | 1,421 | 474 |
/***************************************************************************
testqgssqlcomposerdialog.cpp
--------------------------------------
Date : April 2016
Copyright : (C) 2016 Even Rouault
Email : even.rouault at spatialys.com
*********************... | 15,812 | 5,660 |
#include "physicalBox.h"
| 25 | 11 |
#include <iostream>
#include <fstream>
using json = nlohmann::json;
struct Email {
std::string nickname;
std::string server;
};
struct Person {
std::string first_name;
std::string last_name;
Email email;
size_t age;
std::string phone;
};
std::ostream & print (std::ostream... | 991 | 372 |
/****************************************************************************
*
* Copyright (c) 2017 PX4 Development Team. 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. ... | 7,577 | 3,123 |
// clang-format off
// REQUIRES: system-windows
// RUN: %build --compiler=clang-cl --nodefaultlib -o %t.exe -- %s
// RUN: env LLDB_USE_NATIVE_PDB_READER=1 lldb-test symbols -dump-ast %t.exe | FileCheck %s
namespace A {
namespace B {
using NamespaceTypedef = double;
}
template<typename T>
class C {
publi... | 2,034 | 750 |
#include "Common/SceneControl/PointLightSceneNode.h"
#include <algorithm>
#include <iostream>
namespace SceneControl
{
PointLightSceneNode::PointLightSceneNode(SceneNode* a_parent, std::shared_ptr<ASphere> a_sphere )
: LightSceneNode(a_parent)
{
m_sphere = a_sphere;
}
PointLightSceneNode::~PointLightScen... | 2,926 | 1,223 |
//
// ScriptingCore.cpp
// testmonkey
//
// Created by Rolando Abarca on 3/14/12.
// Copyright (c) 2012 Zynga Inc. All rights reserved.
//
#include <iostream>
#include <stdio.h>
#include <stdlib.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <vector>
#include <map>
#include "ScriptingCore.h"
#include "jsdbga... | 44,364 | 15,575 |
// This file auto generated by plugin for ida pro. Generated code only for x64. Please, dont change manually
#pragma once
#include <common/common.h>
START_ATF_NAMESPACE
enum $7A7EAA273238A7AEE4EBCB8D42B7FAA9
{
combineslot_base = 0x0,
combineslot_max = 0x5,
};
END_ATF_NAMESPACE
| 305 | 127 |
#include "CanSimulationDataGenerator.h"
#include "CanAnalyzerSettings.h"
CanSimulationDataGenerator::CanSimulationDataGenerator()
{
}
CanSimulationDataGenerator::~CanSimulationDataGenerator()
{
}
void CanSimulationDataGenerator::Initialize( U32 simulation_sample_rate, CanAnalyzerSettings* settings )
{
... | 17,757 | 6,900 |
#include "WCreateTab.h"
#include "ui_WCreateTab.h"
#include "CTemplateMimeData.h"
#include "CWorldEditor.h"
#include "Editor/Undo/UndoCommands.h"
#include <Core/Resource/Script/NGameList.h>
WCreateTab::WCreateTab(CWorldEditor *pEditor, QWidget *pParent /*= 0*/)
: QWidget(pParent)
, ui(new Ui::WCreateTab)
,... | 2,853 | 953 |