repo_name stringlengths 5 122 | path stringlengths 3 232 | text stringlengths 6 1.05M |
|---|---|---|
gemini133/mango | source/mango/vulkan/vulkan.cpp | <gh_stars>1-10
/*
MANGO Multimedia Development Platform
Copyright (C) 2012-2016 Twilight Finland 3D Oy Ltd. All rights reserved.
*/
#include <mango/vulkan/vulkan.hpp>
#include <mango/core/exception.hpp>
#ifdef MANGO_ENABLE_VULKAN
#ifdef VK_KHR_xlib_surface
#include "../window/xlib/xlib_handle.hpp"
#endif
#i... |
gemini133/mango | example/framebuffer/mandelbrot.cpp | <filename>example/framebuffer/mandelbrot.cpp<gh_stars>1-10
/*
MANGO Multimedia Development Platform
Copyright (C) 2012-2020 Twilight Finland 3D Oy Ltd. All rights reserved.
*/
#include <mango/mango.hpp>
#include <mango/framebuffer/framebuffer.hpp>
using namespace mango;
using namespace mango::framebuffer;
cla... |
gemini133/mango | include/mango/image/format.hpp | <gh_stars>1-10
/*
MANGO Multimedia Development Platform
Copyright (C) 2012-2020 Twilight Finland 3D Oy Ltd. All rights reserved.
*/
#pragma once
#include <mango/core/configure.hpp>
#include <mango/core/bits.hpp>
#include <mango/image/color.hpp>
namespace mango {
class Format
{
protected:
... |
gemini133/mango | include/mango/simd/scalar_convert.hpp | /*
MANGO Multimedia Development Platform
Copyright (C) 2012-2019 Twilight Finland 3D Oy Ltd. All rights reserved.
*/
#pragma once
#include <mango/simd/simd.hpp>
#include <mango/simd/common.hpp>
namespace mango {
namespace simd {
namespace detail {
template <typename D, typename S>
inline D extend(S s... |
gemini133/mango | include/mango/simd/composite_int512.hpp | /*
MANGO Multimedia Development Platform
Copyright (C) 2012-2020 Twilight Finland 3D Oy Ltd. All rights reserved.
*/
#pragma once
#include <mango/simd/simd.hpp>
namespace mango {
namespace simd {
#define SIMD_COMPOSITE_FUNC1(R, A, FUNC) \
static inline R FUNC(A a) \
{ \
R result; \
re... |
gemini133/mango | example/image/webp/webp.cpp | <filename>example/image/webp/webp.cpp<gh_stars>1-10
/*
MANGO Multimedia Development Platform
Copyright (C) 2012-2020 Twilight Finland 3D Oy Ltd. All rights reserved.
*/
#include <mango/mango.hpp>
using namespace mango;
int main(int argc, const char* argv[])
{
if (argc < 2)
{
printf("Too few ar... |
gemini133/mango | include/mango/image/image.hpp | <gh_stars>1-10
/*
MANGO Multimedia Development Platform
Copyright (C) 2012-2020 Twilight Finland 3D Oy Ltd. All rights reserved.
*/
#pragma once
#include <mango/image/exif.hpp>
#include <mango/image/fourcc.hpp>
#include <mango/image/color.hpp>
#include <mango/image/format.hpp>
#include <mango/image/compression... |
gemini133/mango | source/mango/image/image_tga.cpp | <gh_stars>0
/*
MANGO Multimedia Development Platform
Copyright (C) 2012-2020 Twilight Finland 3D Oy Ltd. All rights reserved.
*/
//#define MANGO_ENABLE_DEBUG_PRINT
#include <mango/core/core.hpp>
#include <mango/core/pointer.hpp>
#include <mango/core/buffer.hpp>
#include <mango/core/string.hpp>
#include <mango/... |
gemini133/mango | example/misc/concurrency.cpp | /*
MANGO Multimedia Development Platform
Copyright (C) 2012-2020 Twilight Finland 3D Oy Ltd. All rights reserved.
*/
#include <mango/mango.hpp>
using namespace mango;
namespace
{
void computeSomethingExpensive(int)
{
}
void computeSomethingExpensive()
{
}
void computeStuff(int)
... |
gemini133/mango | include/mango/math/vector_float32x16.hpp | /*
MANGO Multimedia Development Platform
Copyright (C) 2012-2020 Twilight Finland 3D Oy Ltd. All rights reserved.
*/
#pragma once
#include <mango/math/vector.hpp>
#include <mango/math/vector_float32x8.hpp>
namespace mango
{
template <>
struct Vector<float, 16>
{
using VectorType = simd::f... |
gemini133/mango | include/mango/image/encoder.hpp | /*
MANGO Multimedia Development Platform
Copyright (C) 2012-2020 Twilight Finland 3D Oy Ltd. All rights reserved.
*/
#pragma once
#include <string>
#include <mango/core/object.hpp>
#include <mango/core/stream.hpp>
#include <mango/core/exception.hpp>
#include <mango/image/format.hpp>
#include <mango/image/compr... |
gemini133/mango | include/mango/math/vector256_uint16x16.hpp | /*
MANGO Multimedia Development Platform
Copyright (C) 2012-2020 Twilight Finland 3D Oy Ltd. All rights reserved.
*/
#pragma once
#include <mango/math/vector.hpp>
namespace mango
{
template <>
struct Vector<u16, 16>
{
using VectorType = simd::u16x16;
using ScalarType = u16;
... |
gemini133/mango | include/mango/simd/neon_float128.hpp | <reponame>gemini133/mango
/*
MANGO Multimedia Development Platform
Copyright (C) 2012-2020 Twilight Finland 3D Oy Ltd. All rights reserved.
*/
#pragma once
#include <mango/simd/simd.hpp>
namespace mango {
namespace simd {
// -----------------------------------------------------------------
... |
maclobdell/simple-mbed-cloud-client-1 | storage-helper/storage-helper.cpp | // ----------------------------------------------------------------------------
// Copyright 2016-2018 ARM Ltd.
//
// SPDX-License-Identifier: Apache-2.0
//
// 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 ... |
grodnay/mavlink-router | src/endpoints_test.cpp | /*
* This file is part of the MAVLink Router project
*
* Copyright (C) 2021 MAVLink Router Contributors. 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
*
* ... |
grodnay/mavlink-router | examples/heartbeat-print.cpp | <filename>examples/heartbeat-print.cpp
/*
* This file is part of the MAVLink Router project
*
* Copyright (C) 2016 Intel Corporation. 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 cop... |
sersoft-gmbh/simple-formatting | Sources/CICUShims/ICUVersion.cpp | <filename>Sources/CICUShims/ICUVersion.cpp
#include <unicode/uvernum.h>
#include "include/ICUVersion.h"
const int32_t CICUMajorVersion = U_ICU_VERSION_MAJOR_NUM;
|
sersoft-gmbh/simple-formatting | Sources/CICUShims/TimeComponents.cpp | #include "include/TimeComponents.h"
const CICUTimeComponent CICUTimeComponentMake(int value) { return {value, false}; }
const CICUTimeComponent CICUTimeComponentMakeNullingZero(int value) { return {value, value == 0}; }
const CICUTimeComponent CICUTimeComponentNull = {0, true};
|
sersoft-gmbh/simple-formatting | Sources/CICUShims/DurationFormat.cpp | <reponame>sersoft-gmbh/simple-formatting
#include <assert.h>
#include <stdint.h>
#include <vector>
#include <unicode/uvernum.h>
#include <unicode/utypes.h>
#include <unicode/unistr.h>
#include <unicode/locid.h>
#include <unicode/fieldpos.h>
#include <unicode/numberformatter.h>
#include <unicode/measfmt.h>
//#include <u... |
GeorgeAzpeitia/Simple-Gravitational-Model | grav.cpp | // Programmer: <NAME>
// Date: Wednesday 04 June 2014
//
// A simple OpenGL program that draws a triangle.
#include "GL/freeglut.h"
#include "GL/gl.h"
#include <cmath>
#include <vector>
#include <iostream>
#include <string>
#include <float.h>
using namespace std;
void timer(int);
void draw();
void updatePlanets();
v... |
quepas/demo-pypi-package | python/main.cpp | <reponame>quepas/demo-pypi-package
#include <pybind11/pybind11.h>
#include <pybind11/stl.h>
#include <stdexcept>
#include "timing.hpp"
#include "counting.hpp"
#include "profiling.hpp"
using namespace peptalk;
using std::runtime_error;
using std::string;
using std::vector;
void OnErrorOrWarning(const string& peptalk_... |
xenbo/eosforce | programs/genesis/main.cpp | #include <fc/exception/exception.hpp>
#include <fc/io/json.hpp>
#include <fc/variant_object.hpp>
#include <eosio/chain/genesis_state.hpp>
#include <eosio/chain/name.hpp>
#include <eosio/chain/config.hpp>
#include <fstream>
//using namespace eosio;
using namespace eosio::chain;
struct key_map {
std::map<account_n... |
xenbo/eosforce | libraries/chain/genesis_state.cpp | <reponame>xenbo/eosforce<gh_stars>1-10
/**
* @file
* @copyright defined in eos/LICENSE
*/
#include <eosio/chain/genesis_state.hpp>
// these are required to serialize a genesis_state
#include <fc/smart_ref_impl.hpp> // required for gcc in release mode
namespace eosio { namespace chain {
genesis_state::genesis... |
xenbo/eosforce | unittests/block_timestamp_tests.cpp | <gh_stars>1-10
/**
* @file
* @copyright defined in eos/LICENSE
*/
#include <eosio/chain/block_timestamp.hpp>
#include <boost/test/unit_test.hpp>
#include <fc/time.hpp>
#include <fc/exception/exception.hpp>
using namespace eosio;
using namespace chain;
BOOST_AUTO_TEST_SUITE(block_timestamp_tests)
BOOST_AUTO_T... |
xenbo/eosforce | libraries/testing/z_hglog.cpp | <gh_stars>0
#include <stdlib.h>
#include <iostream>
#include <thread>
#include <list>
#include <sys/stat.h>
#include <sys/types.h>
#include <unistd.h>
#include <sys/prctl.h>
#include <eosio/testing/z_hglog.hpp>
//std::atomic<long long> tagLogData::num = {0};
db_CLogThread *db_CLogThread::db_cLogThread_ptr = {null... |
xenbo/eosforce | libraries/chain/chain_init_eosc.cpp | #include <eosio/chain/controller.hpp>
#include <eosio/chain/transaction_context.hpp>
#include <eosio/chain/exceptions.hpp>
#include <eosio/chain/account_object.hpp>
#include <eosio/chain/memory_db.hpp>
#include <eosio/chain/code_object.hpp>
#include <eosio/chain/block_summary_object.hpp>
#include <eosio/chain/eosio_c... |
xenbo/eosforce | plugins/heartbeat_plugin/heartbeat_plugin.cpp | <reponame>xenbo/eosforce<gh_stars>0
/**
* @file
* @copyright defined in eos/LICENSE.txt
*/
#include <eosio/chain/config_on_chain.hpp>
#include <eosio/heartbeat_plugin/heartbeat_plugin.hpp>
#include <eosio/chain/plugin_interface.hpp>
#include <eosio/chain/global_property_object.hpp>
#include <eosio/chain/transactio... |
xenbo/eosforce | libraries/testing/include/eosio/testing/z_hglog.hpp | #ifndef __GLOG__
#define __GLOG__
#include <sstream>
#include <fstream>
#include <string.h>
#include <string>
#include <iostream>
#include <time.h>
#include <stdio.h>
#include <iomanip>
#include <list>
#include <memory>
#include <thread>
#include <mutex>
#include <atomic>
//extern int g_LogLevel;
enum db_LogLevelC... |
xenbo/eosforce | unittests/block_tests.cpp | <gh_stars>0
/**
* @file
* @copyright defined in eos/LICENSE
*/
#include <boost/test/unit_test.hpp>
#include <eosio/testing/tester.hpp>
#include <eosio/testing/z_hglog.hpp>
using namespace eosio;
using namespace testing;
using namespace chain;
BOOST_AUTO_TEST_SUITE(block_tests)
BOOST_AUTO_TEST_CASE(block_with_i... |
xenbo/eosforce | plugins/chain_plugin/chain_ext_api_imp.cpp | <filename>plugins/chain_plugin/chain_ext_api_imp.cpp<gh_stars>0
#include <eosio/chain_plugin/chain_plugin.hpp>
#include <eosio/chain/fork_database.hpp>
#include <eosio/chain/block_log.hpp>
#include <eosio/chain/exceptions.hpp>
#include <eosio/chain/authorization_manager.hpp>
#include <eosio/chain/txfee_manager.hpp>
#in... |
xenbo/eosforce | plugins/chain_plugin/include/eosio/chain_plugin/chain_plugin_help.hpp | /**
* @file
* @copyright defined in eos/LICENSE
*/
#pragma once
#include <appbase/application.hpp>
#include <eosio/chain/asset.hpp>
#include <eosio/chain/authority.hpp>
#include <eosio/chain/account_object.hpp>
#include <eosio/chain/block.hpp>
#include <eosio/chain/controller.hpp>
#include <eosio/chain/contract_t... |
RishabhBhatt19247/CollaborativeCode | cpp/CfGlobalRound16/D2.cpp |
/*
Contest Link: https://codeforces.com/contest/1566
Problem Link
https://codeforces.com/contest/1566/problem/D2
*/
/**
* Author: <NAME>
*
**/
#include <bits/stdc++.h>
using namespace std;
#define ll long long int
#define pb push_back
#define vec vector<ll>
#define vpl vector<pair... |
RishabhBhatt19247/CollaborativeCode | cpp/CfGlobalRound16/A.cpp | <filename>cpp/CfGlobalRound16/A.cpp
/*
Contest Link: https://codeforces.com/contest/1566
Problem Link
https://codeforces.com/contest/1566/problem/A
*/
/**
* Author: <NAME>
*
**/
#include <bits/stdc++.h>
using namespace std;
#define ll long long int
#define pb push_back
#de... |
RishabhBhatt19247/CollaborativeCode | cpp/CfGlobalRound16/B.cpp | <filename>cpp/CfGlobalRound16/B.cpp
/*
Contest Link: https://codeforces.com/contest/1566
Problem Link
https://codeforces.com/contest/1566/problem/A
*/
/**
* Author: <NAME>
*
**/
#include <bits/stdc++.h>
using namespace std;
#define ll long long int
#define pb push_back
#define... |
RishabhBhatt19247/CollaborativeCode | cpp/CfGlobalRound16/C.cpp |
/*
Contest Link: https://codeforces.com/contest/1566
Problem Link
https://codeforces.com/contest/1566/problem/C
*/
/**
* Author: <NAME>
*
**/
#include <bits/stdc++.h>
using namespace std;
#define ll long long int
#define pb push_back
#define vec vector<ll>
#define vpl vector<... |
hellonearthis/Scramble_test | main.cpp | <reponame>hellonearthis/Scramble_test<gh_stars>0
/**
@param should_pass_it_a_file
@authr <NAME>
@version 0.8
@title scramble compression
@copyright https://creativecommons.org/licenses/by/3.0/nz/legalcode
@copybrief basically attribute but job offers are welcomed too
About: https://docs.google.com/document/d/1VPEX7M... |
swpower420/realm-cocoa | Realm/RLMArray_Private.hpp | <gh_stars>1-10
////////////////////////////////////////////////////////////////////////////
//
// Copyright 2014 Realm 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://ww... |
Anubisss/osquery | osquery/tables/system/darwin/ca_certs_tests.cpp | <reponame>Anubisss/osquery
// Copyright 2004-present Facebook. All Rights Reserved.
#include <boost/archive/iterators/transform_width.hpp>
#include <boost/archive/iterators/binary_from_base64.hpp>
#include <boost/algorithm/string.hpp>
#include <CoreFoundation/CoreFoundation.h>
#include <Security/Security.h>
#include... |
Anubisss/osquery | osquery/tables/system/darwin/pci_devices.cpp | <gh_stars>1-10
// Copyright 2004-present Facebook. All Rights Reserved.
#include <boost/algorithm/string/split.hpp>
#include <boost/algorithm/string/trim.hpp>
#include <IOKit/IOKitLib.h>
#include <IOKit/usb/IOUSBLib.h>
#include <osquery/core.h>
#include <osquery/logger.h>
#include <osquery/tables.h>
#include <osquer... |
Anubisss/osquery | osquery/tables/networking/freebsd/routes.cpp | <gh_stars>1-10
#include <osquery/core.h>
#include <osquery/database.h>
namespace osquery {
namespace tables {
QueryData genArpCache() {
QueryData results;
throw std::domain_error("Table not implemented for FreeBSD");
return results;
}
QueryData genRoutes() {
QueryData results;
throw std::domain_error("T... |
Anubisss/osquery | osquery/logger/plugins/facebook/scribe.cpp | // Copyright 2004-present Facebook. All Rights Reserved.
#include <algorithm>
#include <thread>
#include <glog/logging.h>
#include <scribe/client/ScribeClient.h>
#include <osquery/flags.h>
#include <osquery/logger/plugin.h>
using osquery::Status;
namespace osquery {
DEFINE_osquery_flag(string,
... |
Anubisss/osquery | osquery/tables/utility/file.cpp | <gh_stars>1-10
// Copyright 2004-present Facebook. All Rights Reserved.
#include <boost/filesystem.hpp>
#include <osquery/tables.h>
#include <osquery/filesystem.h>
namespace osquery {
namespace tables {
QueryData genFile(QueryContext& context) {
QueryData results;
auto paths = context.constraints["path"].getAl... |
Anubisss/osquery | osquery/main/lib.cpp | <gh_stars>1-10
// Copyright 2004-present Facebook. All Rights Reserved.
#include <string>
#include <osquery/core.h>
namespace osquery {
const std::string kVersion = OSQUERY_VERSION;
}
|
Anubisss/osquery | osquery/tables/events/darwin/passwd_changes.cpp | // Copyright 2004-present Facebook. All Rights Reserved.
#include <vector>
#include <string>
#include <glog/logging.h>
#include <osquery/core.h>
#include <osquery/tables.h>
#include "osquery/events/darwin/fsevents.h"
namespace osquery {
namespace tables {
const std::vector<std::string> kDarwinPasswdPaths = {
"... |
Anubisss/osquery | osquery/events/darwin/fsevents_tests.cpp | // Copyright 2004-present Facebook. All Rights Reserved.
#include <stdio.h>
#include <boost/filesystem/operations.hpp>
#include <boost/filesystem/path.hpp>
#include <boost/thread.hpp>
#include <gtest/gtest.h>
#include <osquery/events.h>
#include <osquery/filesystem.h>
#include <osquery/tables.h>
#include "osquery/... |
Anubisss/osquery | osquery/tables/utility/osquery_info.cpp | // Copyright 2004-present Facebook. All Rights Reserved.
#include <glog/logging.h>
#include <osquery/config.h>
#include <osquery/core.h>
#include <osquery/sql.h>
#include <osquery/tables.h>
namespace osquery {
namespace tables {
QueryData genOsqueryInfo(QueryContext& context) {
QueryData results;
Row r;
r["v... |
Anubisss/osquery | osquery/devtools/printer.cpp | // Copyright 2004-present Facebook. All Rights Reserved.
#include <iostream>
#include <sstream>
#include <glog/logging.h>
#include <osquery/core.h>
#include <osquery/devtools.h>
namespace osquery {
std::string beautify(const QueryData& q,
const std::vector<std::string>& order) {
auto lengths... |
Anubisss/osquery | osquery/tables/networking/etc_hosts.cpp | <gh_stars>1-10
// Copyright 2004-present Facebook. All Rights Reserved.
#include <vector>
#include <string>
#include <boost/algorithm/string/join.hpp>
#include <boost/algorithm/string/predicate.hpp>
#include <glog/logging.h>
#include <osquery/core.h>
#include <osquery/tables.h>
#include <osquery/filesystem.h>
name... |
Anubisss/osquery | osquery/config/config_tests.cpp | <filename>osquery/config/config_tests.cpp
// Copyright 2004-present Facebook. All Rights Reserved.
#include <gtest/gtest.h>
#include <osquery/core.h>
#include <osquery/config.h>
#include <osquery/config/plugin.h>
#include <osquery/status.h>
#include <osquery/registry.h>
using osquery::Status;
namespace osquery {
c... |
Anubisss/osquery | osquery/events/events_database_tests.cpp | <reponame>Anubisss/osquery
// Copyright 2004-present Facebook. All Rights Reserved.
#include <boost/algorithm/string.hpp>
#include <boost/filesystem/operations.hpp>
#include <gtest/gtest.h>
#include <osquery/events.h>
#include <osquery/tables.h>
#include "osquery/core/test_util.h"
const std::string kTestingEventsD... |
Anubisss/osquery | osquery/tables/system/freebsd/processes.cpp | // Copyright 2004-present Facebook. All Rights Reserved.
#include <osquery/core.h>
#include <osquery/tables.h>
namespace osquery {
namespace tables {
QueryData genProcessEnvs(QueryContext& context) {
QueryData results;
throw std::domain_error("Table not implemented for FreeBSD");
return results;
}
QueryData... |
Anubisss/osquery | osquery/tables/networking/linux/arp_cache.cpp | <reponame>Anubisss/osquery
// Copyright 2004-present Facebook. All Rights Reserved.
#include <fstream>
#include <boost/algorithm/string/split.hpp>
#include <boost/algorithm/string/trim.hpp>
#include <osquery/tables.h>
#include <osquery/filesystem.h>
#include <osquery/logger.h>
namespace osquery {
namespace tables {... |
Anubisss/osquery | osquery/tables/system/linux/users.cpp | // Copyright 2004-present Facebook. All Rights Reserved.
#include <set>
#include <mutex>
#include <vector>
#include <string>
#include <pwd.h>
#include <osquery/core.h>
#include <osquery/tables.h>
namespace osquery {
namespace tables {
std::mutex pwdEnumerationMutex;
QueryData genUsers(QueryContext& context) {
s... |
Anubisss/osquery | osquery/tables/networking/darwin/interfaces.cpp | <reponame>Anubisss/osquery
// Copyright 2004-present Facebook. All Rights Reserved.
#include <sstream>
#include <iomanip>
#include <ifaddrs.h>
#include <net/if.h>
#include <sys/socket.h>
#include <osquery/core.h>
#include <osquery/logger.h>
#include <osquery/tables.h>
#include "osquery/tables/networking/utils.h"
n... |
Anubisss/osquery | osquery/events/events_tests.cpp | // Copyright 2004-present Facebook. All Rights Reserved.
#include <gtest/gtest.h>
#include <osquery/events.h>
#include <osquery/tables.h>
namespace osquery {
class EventsTests : public testing::Test {
public:
void TearDown() { EventFactory::deregisterEventPublishers(); }
};
class BasicEventPublisher : public Ev... |
Anubisss/osquery | osquery/logger/logger_tests.cpp | <filename>osquery/logger/logger_tests.cpp
// Copyright 2004-present Facebook. All Rights Reserved.
#include <gtest/gtest.h>
#include <glog/logging.h>
#include <osquery/core.h>
#include <osquery/logger.h>
#include <osquery/logger/plugin.h>
using osquery::Status;
namespace osquery {
class LoggerTests : public testin... |
Anubisss/osquery | osquery/tables/system/darwin/quarantine.cpp | // Copyright 2004-present Facebook. All Rights Reserved.
#include <ctime>
#include <pwd.h>
#include <grp.h>
#include <sys/stat.h>
#include <sys/xattr.h>
#include <boost/filesystem.hpp>
#include <boost/algorithm/string.hpp>
#include <osquery/tables.h>
#include <osquery/logger.h>
namespace fs = boost::filesystem;
n... |
Anubisss/osquery | osquery/database/query_tests.cpp | // Copyright 2004-present Facebook. All Rights Reserved.
#include <algorithm>
#include <ctime>
#include <deque>
#include <boost/filesystem/operations.hpp>
#include <gtest/gtest.h>
#include <osquery/database/query.h>
#include "osquery/core/test_util.h"
using namespace osquery::core;
const std::string kTestingQuer... |
Anubisss/osquery | osquery/tables/networking/etc_hosts_tests.cpp | // Copyright 2004-present Facebook. All Rights Reserved.
#include <gtest/gtest.h>
#include <glog/logging.h>
#include "osquery/core/test_util.h"
#include <osquery/database.h>
using namespace osquery::core;
namespace osquery {
namespace tables {
osquery::QueryData parseEtcHostsContent(const std::string& content);
c... |
Anubisss/osquery | osquery/tables/networking/linux/port_inode.cpp | // Copyright 2004-present Facebook. All Rights Reserved.
#include <exception>
#include <arpa/inet.h>
#include <linux/netlink.h>
#include <linux/rtnetlink.h>
#include <linux/tcp.h>
#include <netinet/in.h>
#include <sys/socket.h>
#include <unistd.h>
#include <glog/logging.h>
#include <osquery/core.h>
#include <osque... |
Anubisss/osquery | osquery/tables/system/darwin/launchd_tests.cpp | // Copyright 2004-present Facebook. All Rights Reserved.
#include <gtest/gtest.h>
#include <glog/logging.h>
#include "osquery/core/darwin/test_util.h"
#include <osquery/database.h>
#include <osquery/filesystem.h>
using namespace osquery::core;
namespace pt = boost::property_tree;
namespace osquery {
namespace table... |
Anubisss/osquery | osquery/config/config.cpp | <reponame>Anubisss/osquery
// Copyright 2004-present Facebook. All Rights Reserved.
#include <algorithm>
#include <future>
#include <random>
#include <sstream>
#include <string>
#include <vector>
#include <boost/property_tree/ptree.hpp>
#include <boost/property_tree/json_parser.hpp>
#include <boost/thread/shared_mute... |
Anubisss/osquery | osquery/filesystem/linux/proc.cpp | // Copyright 2004-present Facebook. All Rights Reserved.
#include <exception>
#include <unistd.h>
#include <boost/regex.hpp>
#include <boost/filesystem.hpp>
#include <glog/logging.h>
#include <osquery/filesystem.h>
namespace osquery {
const std::string kLinuxProcPath = "/proc";
Status procProcesses(std::vector<... |
Anubisss/osquery | osquery/tables/system/logged_in_users.cpp | <filename>osquery/tables/system/logged_in_users.cpp
// Copyright 2004-present <NAME> <<EMAIL>>.
// All Rights Reserved.
#include <mutex>
#include <osquery/core.h>
#include <osquery/tables.h>
#include <utmpx.h>
namespace osquery {
namespace tables {
std::mutex utmpxEnumerationMutex;
QueryData genLoggedInUsers(Quer... |
Anubisss/osquery | osquery/tables/utility/time.cpp | // Copyright 2004-present Facebook. All Rights Reserved.
#include <ctime>
#include <osquery/tables.h>
namespace osquery {
namespace tables {
const int kNumCols = 1;
QueryData genTime(QueryContext& context) {
Row r;
time_t _time = time(0);
struct tm* now = localtime(&_time);
r["hour"] = INTEGER(now->tm_hour... |
Anubisss/osquery | osquery/tables/system/darwin/kextstat.cpp | // Copyright 2004-present Facebook. All Rights Reserved.
#include <CoreFoundation/CoreFoundation.h>
#include <boost/algorithm/string/trim.hpp>
#include <osquery/core.h>
#include <osquery/logger.h>
#include <osquery/tables.h>
extern "C" {
extern CFDictionaryRef OSKextCopyLoadedKextInfo(CFArrayRef, CFArrayRef);
}
na... |
Anubisss/osquery | osquery/tables/system/darwin/ca_certs.cpp | <reponame>Anubisss/osquery
// Copyright 2004-present Facebook. All Rights Reserved.
#include <string>
#include <iomanip>
#include <stdio.h>
#include <stdlib.h>
#include <boost/lexical_cast.hpp>
#include <boost/uuid/sha1.hpp>
#include <CoreFoundation/CoreFoundation.h>
#include <Security/Security.h>
#include <osquer... |
Anubisss/osquery | osquery/core/test_util_tests.cpp | // Copyright 2004-present Facebook. All Rights Reserved.
#include <gtest/gtest.h>
#include <glog/logging.h>
#include <sqlite3.h>
#include <osquery/core.h>
#include "osquery/core/test_util.h"
namespace osquery {
namespace core {
class TestUtilTests : public testing::Test {};
TEST_F(TestUtilTests, test_expected_res... |
Anubisss/osquery | osquery/core/system.cpp | // Copyright 2004-present Facebook. All Rights Reserved.
#include <sstream>
#include <sys/types.h>
#include <signal.h>
#if !defined(__FreeBSD__)
#include <uuid/uuid.h>
#endif
#include <boost/algorithm/string/trim.hpp>
#include <boost/filesystem.hpp>
#include <boost/lexical_cast.hpp>
#include <boost/uuid/uuid.hpp>
#... |
Anubisss/osquery | osquery/tables/system/darwin/apps.cpp | <gh_stars>1-10
// Copyright 2004-present Facebook. All Rights Reserved.
#include <boost/algorithm/string/join.hpp>
#include <boost/filesystem/operations.hpp>
#include <boost/filesystem/path.hpp>
#include <osquery/core.h>
#include <osquery/filesystem.h>
#include <osquery/logger.h>
#include <osquery/tables.h>
#include ... |
Anubisss/osquery | osquery/tables/system/linux/mounts.cpp | // Copyright 2004-present Facebook. All Rights Reserved.
#include <mntent.h>
#include <sys/vfs.h>
#include <osquery/core.h>
#include <osquery/filesystem.h>
#include <osquery/tables.h>
namespace osquery {
namespace tables {
QueryData genMounts(QueryContext &context) {
QueryData results;
FILE *mounts;
struct mn... |
Anubisss/osquery | osquery/core/sqlite_util.cpp | // Copyright 2004-present Facebook. All Rights Reserved.
#include <osquery/database.h>
#include <osquery/logger.h>
#include <osquery/tables.h>
#include <osquery/core.h>
#include "osquery/core/sqlite_util.h"
#include "osquery/core/virtual_table.h"
namespace osquery {
sqlite3* createDB() {
sqlite3* db = nullptr;
... |
Anubisss/osquery | osquery/core/darwin/conversions.cpp | // Copyright 2004-present Facebook. All Rights Reserved.
#include <boost/lexical_cast.hpp>
#include "osquery/core/conversions.h"
namespace osquery {
std::string stringFromCFString(const CFStringRef& cf_string) {
// Access, then convert the CFString. CFStringGetCStringPtr is less-safe.
CFIndex length = CFString... |
Anubisss/osquery | osquery/events/events.cpp | <reponame>Anubisss/osquery
// Copyright 2004-present Facebook. All Rights Reserved.
#include <boost/algorithm/string.hpp>
#include <boost/algorithm/string/classification.hpp>
#include <boost/lexical_cast.hpp>
#include <osquery/core.h>
#include <osquery/dispatcher.h>
#include <osquery/events.h>
#include <osquery/flags... |
Anubisss/osquery | osquery/core/flags.cpp | <gh_stars>1-10
// Copyright 2004-present Facebook. All Rights Reserved.
#include <osquery/flags.h>
namespace osquery {
Flag& Flag::get(const std::string& name,
const std::string& value,
const std::string& desc,
bool shell_only) {
static Flag f;
if (name != "") {
... |
Anubisss/osquery | osquery/core/init_osquery.cpp | // Copyright 2004-present Facebook. All Rights Reserved.
#include <glog/logging.h>
#include <osquery/core.h>
#include <osquery/flags.h>
#include <osquery/filesystem.h>
#include <osquery/registry.h>
namespace osquery {
const std::string kDescription =
"your operating system as a high-performance "
"relationa... |
Anubisss/osquery | osquery/events/linux/inotify_tests.cpp | <reponame>Anubisss/osquery
// Copyright 2004-present Facebook. All Rights Reserved.
#include <stdio.h>
#include <boost/filesystem/operations.hpp>
#include <boost/filesystem/path.hpp>
#include <boost/thread.hpp>
#include <gtest/gtest.h>
#include <osquery/events.h>
#include <osquery/filesystem.h>
#include <osquery/ta... |
Anubisss/osquery | osquery/tables/events/freebsd/passwd_changes.cpp | #include <osquery/core.h>
#include <osquery/database.h>
#include "osquery/events/freebsd/fsevents.h"
namespace osquery {
namespace tables {
class PasswdChangesEventSubscriber {
public:
QueryData genTable() {
QueryData results;
throw std::domain_error("Table not implemented for FreeBSD");
return resul... |
Anubisss/osquery | osquery/filesystem/darwin/plist_benchmark.cpp | <filename>osquery/filesystem/darwin/plist_benchmark.cpp
// Copyright 2004-present Facebook. All Rights Reserved.
#include <glog/logging.h>
#include <gtest/gtest.h>
#include <osquery/core.h>
#include <osquery/filesystem.h>
#include <osquery/flags.h>
#include "osquery/core/darwin/test_util.h"
using namespace osquery:... |
Anubisss/osquery | osquery/database/results.cpp | <gh_stars>1-10
// Copyright 2004-present Facebook. All Rights Reserved.
#include <algorithm>
#include <iostream>
#include <sstream>
#include <set>
#include <string>
#include <vector>
#include <boost/lexical_cast.hpp>
#include <boost/property_tree/json_parser.hpp>
#include <glog/logging.h>
#include <osquery/database... |
Anubisss/osquery | osquery/tables/events/darwin/hardware_events.cpp | <reponame>Anubisss/osquery
// Copyright 2004-present Facebook. All Rights Reserved.
#include <osquery/core.h>
#include <osquery/logger.h>
#include <osquery/tables.h>
#include "osquery/events/darwin/iokit_hid.h"
namespace osquery {
namespace tables {
/**
* @brief Track IOKit HID events.
*/
class HardwareEventSubsc... |
Anubisss/osquery | osquery/scheduler/scheduler.cpp | <filename>osquery/scheduler/scheduler.cpp
// Copyright 2004-present Facebook. All Rights Reserved.
#include <climits>
#include <ctime>
#include <glog/logging.h>
#include <osquery/config.h>
#include <osquery/core.h>
#include <osquery/database.h>
#include <osquery/flags.h>
#include <osquery/logger.h>
#include <osquery... |
Anubisss/osquery | osquery/tables/system/last.cpp | <reponame>Anubisss/osquery<gh_stars>1-10
// Copyright 2004-present Facebook. All Rights Reserved.
#include <vector>
#include <string>
#include <utmpx.h>
#include <osquery/core.h>
#include <osquery/tables.h>
namespace osquery {
namespace tables {
QueryData genLastAccess(QueryContext& context) {
QueryData results;... |
Anubisss/osquery | osquery/tables/system/darwin/process_open_files.cpp | <filename>osquery/tables/system/darwin/process_open_files.cpp
// Copyright 2004-present Facebook. All Rights Reserved.
#include <set>
// Keep sys/socket first.
#include <sys/socket.h>
#include <arpa/inet.h>
#include <libproc.h>
#include <netinet/in.h>
#include <sys/sysctl.h>
#include <sys/types.h>
#include <unistd.h>... |
Anubisss/osquery | osquery/core/darwin/test_util.cpp | <reponame>Anubisss/osquery<filename>osquery/core/darwin/test_util.cpp
// Copyright 2004-present Facebook. All Rights Reserved.
#include <boost/property_tree/json_parser.hpp>
#include <osquery/filesystem.h>
#include "osquery/core/darwin/test_util.h"
namespace pt = boost::property_tree;
namespace osquery {
namespace... |
jdstmporter/bela-scripts | reichian/render.cpp | <filename>reichian/render.cpp
/*
Sample deomonstration code for Bela, showing capability to perform Steve Reich's 'Clapping Music' in
the version for two performers (obviously, more tracks could be added)
Copyright 2020 <NAME>
Redistribution and use in source and binary forms, with or without modification,
are perm... |
jdstmporter/bela-scripts | hilbert/render.cpp | /*
____ _____ _ _
| __ )| ____| | / \
| _ \| _| | | / _ \
| |_) | |___| |___ / ___ \
|____/|_____|_____/_/ \_\
The platform for ultra-low latency audio and sensor processing
http://bela.io
A project of the Augmented Instruments Laboratory within the
Centre for Digital Music at Queen M... |
thk123/lambda_compile_error | main.cpp | #include <iostream>
#include <memory>
int main()
{
std::cout << "Hello World" << std::endl;
typedef std::shared_ptr<const int> const_pointert;
auto lambda = [&](const int &expr) {
const_pointert x(new int);
const const_pointert y(new int);
if(expr > 4)
{
r... |
tuncb/proprietary-conan-recipes | intel-mkl/test_package/example.cpp | /*******************************************************************************
* Copyright (C) 2009-2015 Intel Corporation. All Rights Reserved.
* The information and material ("Material") provided below is owned by Intel
* Corporation or its suppliers or licensors, and title to such Material remains
* with Intel... |
borsuksoftware/nativedependencygraph | DependencyGraph/DependencyGraph.cpp | // DependencyGraph.cpp : This file contains the 'main' function. Program execution begins and ends there.
//
#include <iostream>
#include "ObjectContext.h"
#include "FunctionBasedObjectBuilder.h"
#include "ObjectBuilderProvider.h"
// Have a choice of which job queue to use
#include "SingleThreadedJobQueue.h"
#inclu... |
darkwisperer/o3de-multiplayersample | Gem/Code/Source/Components/PerfTest/NetworkPrefabSpawnerComponent.cpp | <filename>Gem/Code/Source/Components/PerfTest/NetworkPrefabSpawnerComponent.cpp
/*
* Copyright (c) Contributors to the Open 3D Engine Project
*
* SPDX-License-Identifier: Apache-2.0 OR MIT
*
*/
#include "NetworkPrefabSpawnerComponent.h"
#include <AzCore/Asset/AssetManagerBus.h>
#include <AzCore/Asset/AssetSerial... |
karojecz/ping-pong-gra | Unit1.cpp | <reponame>karojecz/ping-pong-gra
//---------------------------------------------------------------------------
#include <vcl.h>
#pragma hdrstop
#include "Unit1.h"
#include <fstream>
//---------------------------------------------------------------------------
#pragma package(smart_init)
#pragma resource "*.dfm"
TForm... |
wrathofrathma/godot_voxel | streams/voxel_stream_file.cpp | #include "voxel_stream_file.h"
#include "../server/voxel_server.h"
#include "../util/profiling.h"
#include <core/os/file_access.h>
#include <core/os/os.h>
thread_local VoxelBlockSerializerInternal VoxelStreamFile::_block_serializer;
FileAccess *VoxelStreamFile::open_file(const String &fpath, int mode_flags, Error *er... |
wrathofrathma/godot_voxel | terrain/voxel_map.cpp | #include "voxel_map.h"
#include "../cube_tables.h"
#include "../util/macros.h"
#include "voxel_block.h"
VoxelMap::VoxelMap() :
_last_accessed_block(nullptr) {
// TODO Make it configurable in editor (with all necessary notifications and updatings!)
set_block_size_pow2(4);
_default_voxel.fill(0);
_default_voxel[... |
wrathofrathma/godot_voxel | generators/graph/range_utility.cpp | #include "range_utility.h"
#include "../../util/noise/fast_noise_lite.h"
#include "../../util/utility.h"
#include <core/image.h>
#include <modules/opensimplex/open_simplex_noise.h>
#include <scene/resources/curve.h>
Interval get_osn_octave_range_2d(OpenSimplexNoise *noise, const Interval &x, const Interval &y, int oc... |
wrathofrathma/godot_voxel | util/utility.cpp | #include "utility.h"
#include "../cube_tables.h"
#include <core/engine.h>
#include <scene/resources/mesh.h>
bool is_surface_triangulated(Array surface) {
PoolVector3Array positions = surface[Mesh::ARRAY_VERTEX];
PoolIntArray indices = surface[Mesh::ARRAY_INDEX];
return positions.size() >= 3 && indices.size() >= 3;... |
wrathofrathma/godot_voxel | generators/graph/voxel_graph_runtime.cpp | #include "voxel_graph_runtime.h"
#include "../../util/macros.h"
#include "../../util/noise/fast_noise_lite.h"
#include "../../util/profiling.h"
#include "image_range_grid.h"
#include "range_utility.h"
#include "voxel_generator_graph.h"
#include "voxel_graph_node_db.h"
//#include <core/image.h>
#include <core/math/math... |
wrathofrathma/godot_voxel | edition/voxel_tool_lod_terrain.cpp | #include "voxel_tool_lod_terrain.h"
#include "../terrain/voxel_lod_terrain.h"
#include "../terrain/voxel_map.h"
VoxelToolLodTerrain::VoxelToolLodTerrain(VoxelLodTerrain *terrain, VoxelMap &map) :
_terrain(terrain), _map(map) {
ERR_FAIL_COND(terrain == nullptr);
// At the moment, only LOD0 is supported.
// Don't d... |
wrathofrathma/godot_voxel | generators/voxel_generator.cpp | #include "voxel_generator.h"
#include "../voxel_string_names.h"
VoxelGenerator::VoxelGenerator() {
}
void VoxelGenerator::generate_block(VoxelBlockRequest &input) {
ERR_FAIL_COND(input.voxel_buffer.is_null());
}
int VoxelGenerator::get_used_channels_mask() const {
return 0;
}
void VoxelGenerator::_b_generate_bloc... |
dwes7/bobble_controllers | src/LowPassFilter.cpp | //
// Created by james on 3/28/20.
//
#include <bobble_controllers/LowPassFilter.h>
LowPassFilter::LowPassFilter(double Ts, double fc, double zeta) {
resetFilterParameters(Ts, fc, zeta);
}
void LowPassFilter::resetFilterParameters(double Ts, double fc, double zeta) {
/// Initialize buffers to 0
initBuffe... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.