hexsha stringlengths 40 40 | size int64 7 1.05M | ext stringclasses 13
values | lang stringclasses 1
value | max_stars_repo_path stringlengths 4 269 | max_stars_repo_name stringlengths 5 108 | max_stars_repo_head_hexsha stringlengths 40 40 | max_stars_repo_licenses listlengths 1 9 | max_stars_count int64 1 191k ⌀ | max_stars_repo_stars_event_min_datetime stringlengths 24 24 ⌀ | max_stars_repo_stars_event_max_datetime stringlengths 24 24 ⌀ | max_issues_repo_path stringlengths 4 269 | max_issues_repo_name stringlengths 5 116 | max_issues_repo_head_hexsha stringlengths 40 40 | max_issues_repo_licenses listlengths 1 9 | max_issues_count int64 1 67k ⌀ | max_issues_repo_issues_event_min_datetime stringlengths 24 24 ⌀ | max_issues_repo_issues_event_max_datetime stringlengths 24 24 ⌀ | max_forks_repo_path stringlengths 4 269 | max_forks_repo_name stringlengths 5 116 | max_forks_repo_head_hexsha stringlengths 40 40 | max_forks_repo_licenses listlengths 1 9 | max_forks_count int64 1 105k ⌀ | max_forks_repo_forks_event_min_datetime stringlengths 24 24 ⌀ | max_forks_repo_forks_event_max_datetime stringlengths 24 24 ⌀ | content stringlengths 7 1.05M | avg_line_length float64 1.21 330k | max_line_length int64 6 990k | alphanum_fraction float64 0.01 0.99 | author_id stringlengths 2 40 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
9a4c545f7d7970ebd62784026561a3524d260312 | 1,288 | cpp | C++ | src/Cyril/Ops/CyrilPaletteItem.cpp | danhett/cyril | 38702d3334bdce56b2a4fcabcf4fd43dd08d6f95 | [
"MIT"
] | 87 | 2016-05-14T22:43:32.000Z | 2021-12-19T04:33:20.000Z | src/Cyril/Ops/CyrilPaletteItem.cpp | danhett/cyril | 38702d3334bdce56b2a4fcabcf4fd43dd08d6f95 | [
"MIT"
] | 15 | 2016-05-10T12:49:13.000Z | 2020-04-15T12:21:52.000Z | src/Cyril/Ops/CyrilPaletteItem.cpp | danhett/cyril | 38702d3334bdce56b2a4fcabcf4fd43dd08d6f95 | [
"MIT"
] | 12 | 2016-05-16T22:56:19.000Z | 2022-01-06T22:45:06.000Z | //
// CyrilPaletteItem.cpp
// cyril2
//
// Created by Darren Mothersele on 06/11/2013.
//
//
#include "CyrilPaletteItem.h"
CyrilPaletteItem::CyrilPaletteItem(float _f, Cyril* _e) : d(_f), e(_e) {
/*
string converter(_s);
stringstream sr(converter.substr(0,2));
stringstream sg(converter.substr(2,2));
stri... | 18.666667 | 72 | 0.599379 | danhett |
9a52ea0aef02599d5037c5593ca66778a7958eb2 | 18,342 | cc | C++ | src/c/dfs_jni.cc | fossabot/xdagj | b30c48eb6584aec24c34a3a87e04d7e97932f10e | [
"MIT"
] | null | null | null | src/c/dfs_jni.cc | fossabot/xdagj | b30c48eb6584aec24c34a3a87e04d7e97932f10e | [
"MIT"
] | null | null | null | src/c/dfs_jni.cc | fossabot/xdagj | b30c48eb6584aec24c34a3a87e04d7e97932f10e | [
"MIT"
] | null | null | null | #include "crc.h"
#include "jni.h"
#include "dfslib_crypt.h"
#include "dfslib_random.h"
#include "dnet_crypt.h"
#include "dfsrsa.h"
#include <string.h>
#include <stdio.h>
#include <stdlib.h>
#define DNET_KEY_SIZE 4096
//#define DNET_KEYLEN 32
#define DNET_KEYLEN ((DNET_KEY_SIZE * 2) / (sizeof(dfsrsa_t) * 8))
#define M... | 30.167763 | 145 | 0.657017 | fossabot |
9a532ceacb03eda34f93e2483ea1039b1af28261 | 1,879 | cpp | C++ | src/entity_systems/ffi_layer.cpp | mokoi/luxengine | 965532784c4e6112141313997d040beda4b56d07 | [
"MIT"
] | 11 | 2015-03-02T07:43:00.000Z | 2021-12-04T04:53:02.000Z | src/entity_systems/ffi_layer.cpp | mokoi/luxengine | 965532784c4e6112141313997d040beda4b56d07 | [
"MIT"
] | 1 | 2015-03-28T17:17:13.000Z | 2016-10-10T05:49:07.000Z | src/entity_systems/ffi_layer.cpp | mokoi/luxengine | 965532784c4e6112141313997d040beda4b56d07 | [
"MIT"
] | 3 | 2016-11-04T01:14:31.000Z | 2020-05-07T23:42:27.000Z | /****************************
Copyright © 2014 Luke Salisbury
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 from the use of this software.
Permission is granted to anyone to use this software for any purpose, including co... | 33.553571 | 243 | 0.728579 | mokoi |
9a54d2abbb11bce9c69996a17f854e121989a061 | 828 | hpp | C++ | detail/itoa.hpp | isadchenko/brig | 3e65a44fa4b8690cdfa8bdaca08d560591afcc38 | [
"MIT"
] | null | null | null | detail/itoa.hpp | isadchenko/brig | 3e65a44fa4b8690cdfa8bdaca08d560591afcc38 | [
"MIT"
] | null | null | null | detail/itoa.hpp | isadchenko/brig | 3e65a44fa4b8690cdfa8bdaca08d560591afcc38 | [
"MIT"
] | null | null | null | // Andrew Naplavkov
// http://stackoverflow.com/questions/6713420/c-convert-integer-to-string-at-compile-time
#ifndef BRIG_DETAIL_ITOA_HPP
#define BRIG_DETAIL_ITOA_HPP
#include <boost/mpl/string.hpp>
#include <string>
namespace brig { namespace detail {
template <bool Top, size_t N>
struct itoa_impl
... | 20.7 | 131 | 0.672705 | isadchenko |
9a5506e36068522004539a4f8ab99dbdfa483cf4 | 140 | cpp | C++ | references/aoapc-book/BeginningAlgorithmContests/exercises/ch5/5.5.2/UVaOJ/10055.cpp | voleking/ICPC | fc2cf408fa2607ad29b01eb00a1a212e6d0860a5 | [
"MIT"
] | 68 | 2017-10-08T04:44:23.000Z | 2019-08-06T20:15:02.000Z | references/aoapc-book/BeginningAlgorithmContests/exercises/ch5/5.5.2/UVaOJ/10055.cpp | voleking/ICPC | fc2cf408fa2607ad29b01eb00a1a212e6d0860a5 | [
"MIT"
] | null | null | null | references/aoapc-book/BeginningAlgorithmContests/exercises/ch5/5.5.2/UVaOJ/10055.cpp | voleking/ICPC | fc2cf408fa2607ad29b01eb00a1a212e6d0860a5 | [
"MIT"
] | 18 | 2017-05-31T02:52:23.000Z | 2019-07-05T09:18:34.000Z | #include<iostream>
using namespace std;
int main()
{
long long a,b,c;
while(cin >>a >> b){ c=(a-b>0)?a-b:b-a; cout << c<<endl;}
return 0;
}
| 15.555556 | 57 | 0.6 | voleking |
9a587b91b82d42978cca68c9c5c1d99100b877aa | 3,198 | cpp | C++ | util/auv_map_projection.cpp | mattjr/benthicQT | bd5415d5a18f528b5b2ce4cc1524b7f4f651a1e8 | [
"Apache-2.0"
] | 9 | 2016-06-07T09:38:03.000Z | 2021-11-25T17:30:59.000Z | util/auv_map_projection.cpp | mattjr/benthicQT | bd5415d5a18f528b5b2ce4cc1524b7f4f651a1e8 | [
"Apache-2.0"
] | null | null | null | util/auv_map_projection.cpp | mattjr/benthicQT | bd5415d5a18f528b5b2ce4cc1524b7f4f651a1e8 | [
"Apache-2.0"
] | 4 | 2016-06-16T16:55:33.000Z | 2019-04-29T02:34:46.000Z | //!
//! \file auv_map_projection.cpp
//!
//! Conversion between geographic coordinates 2D map projection coordinates
//!
//! \author Ian Mahon
//!
#include "auv_map_projection.hpp"
#include <GeographicConversions/ufLocalRedfearn.h>
using namespace UF::GeographicConversions;
using namespace std;
#define LOCAL_REDFE... | 35.932584 | 80 | 0.605691 | mattjr |
9a591b4a1748d455b834f77cb6f9839b65a2b4a1 | 6,382 | cc | C++ | lib/correspondence.cc | dbs4261/smvs | 5a4ff04d7642a354c543ffadbead14c4be73918e | [
"BSD-3-Clause"
] | null | null | null | lib/correspondence.cc | dbs4261/smvs | 5a4ff04d7642a354c543ffadbead14c4be73918e | [
"BSD-3-Clause"
] | null | null | null | lib/correspondence.cc | dbs4261/smvs | 5a4ff04d7642a354c543ffadbead14c4be73918e | [
"BSD-3-Clause"
] | null | null | null | /*
* Copyright (c) 2017, Fabian Langguth
* TU Darmstadt - Graphics, Capture and Massively Parallel Computing
* All rights reserved.
*
* This software may be modified and distributed under the terms
* of the BSD 3-Clause license. See the LICENSE.txt file for details.
*/
#include "correspondence.h"
namespace smv... | 33.589474 | 88 | 0.559072 | dbs4261 |
9a59c458181420730463ff43414fdbdb0d97aaad | 801 | cpp | C++ | KROSS/src/Kross/Renderer/Context.cpp | WillianKoessler/KROSS-ENGINE | 0e680b455ffd071565fe8b99343805ad16ca1e91 | [
"Apache-2.0"
] | null | null | null | KROSS/src/Kross/Renderer/Context.cpp | WillianKoessler/KROSS-ENGINE | 0e680b455ffd071565fe8b99343805ad16ca1e91 | [
"Apache-2.0"
] | null | null | null | KROSS/src/Kross/Renderer/Context.cpp | WillianKoessler/KROSS-ENGINE | 0e680b455ffd071565fe8b99343805ad16ca1e91 | [
"Apache-2.0"
] | null | null | null | #include <Kross_pch.h>
#include "Context.h"
#include "GFXAPI/OpenGL/GLContext.h"
#include "Kross/Renderer/Renderer.h"
#include "Kross/Core/Window.h"
namespace Kross {
Ref<Context> Context::CreateRef(Window* window)
{
switch (Renderer::GetAPI())
{
case RendererAPI::API::None: KROSS_FATAL("Invalid Graphics API... | 28.607143 | 85 | 0.715356 | WillianKoessler |
9a5a0d1e3eefc78619d8c6434e6d9ad05e723465 | 1,510 | cpp | C++ | Fasta.cpp | yanlinlin82/crabber | b924e5e4e19e8072303b9b83ec7eb945b42e58b3 | [
"Apache-2.0"
] | null | null | null | Fasta.cpp | yanlinlin82/crabber | b924e5e4e19e8072303b9b83ec7eb945b42e58b3 | [
"Apache-2.0"
] | null | null | null | Fasta.cpp | yanlinlin82/crabber | b924e5e4e19e8072303b9b83ec7eb945b42e58b3 | [
"Apache-2.0"
] | null | null | null | #include <iostream>
#include <fstream>
#include "String.h"
#include "Fasta.h"
bool Fasta::Load(const std::string& filename, bool verbose)
{
std::ifstream file(filename, std::ios::in);
if (!file.is_open()) {
std::cerr << "Error: Can not open file '" << filename << "'!" << std::endl;
return false;
}
if (verbose... | 21.884058 | 82 | 0.586755 | yanlinlin82 |
9a5a18a89b6ab92e063758607dfe74e5cc84694b | 2,385 | cpp | C++ | Section02/Problem04/Source.cpp | 0xdec0de5/cpp-training | afa15c3bd9cbbe1ee7f219f5a5cae563cbe004b8 | [
"MIT"
] | null | null | null | Section02/Problem04/Source.cpp | 0xdec0de5/cpp-training | afa15c3bd9cbbe1ee7f219f5a5cae563cbe004b8 | [
"MIT"
] | null | null | null | Section02/Problem04/Source.cpp | 0xdec0de5/cpp-training | afa15c3bd9cbbe1ee7f219f5a5cae563cbe004b8 | [
"MIT"
] | null | null | null | #include <iostream>
int main()
{
std::cout << "Enter the character class for your player." << std::endl;
std::cout << "(B)arbarian, (M)age, (R)ogue, (D)ruid: ";
// TODO - handle user input: (b/B), (m/M), (r/R), or (d/D)
char character_class;
std::cin >> character_class;
// Barbarian Character
unsigned short ba... | 31.381579 | 88 | 0.644025 | 0xdec0de5 |
9a5aa085c813c6b48e74bc8a36d558c55d6f4782 | 135 | hpp | C++ | src/util/constants.hpp | VIGameStudio/Particles | 160beb20b3f23cf0973fd57043d901b3f01efa42 | [
"MIT"
] | null | null | null | src/util/constants.hpp | VIGameStudio/Particles | 160beb20b3f23cf0973fd57043d901b3f01efa42 | [
"MIT"
] | null | null | null | src/util/constants.hpp | VIGameStudio/Particles | 160beb20b3f23cf0973fd57043d901b3f01efa42 | [
"MIT"
] | null | null | null | #pragma once
#define PI 3.14159265359
#define RAD2DEG 57.2957795056
#define DEG2RAD 0.01745329252
#define EPSILON 0.00000000001
| 16.875 | 29 | 0.777778 | VIGameStudio |
9a5f133a811451882eca9e72f5488fc016e042b3 | 13,186 | cpp | C++ | Development/ActorX/Source/MayaPLE_Plugin/UnEdPlug/unEditorCmd.cpp | addstone/unrealengine3 | 4579d360dfd52b12493292120b27bb430f978fc8 | [
"FSFAP"
] | 37 | 2020-05-22T18:18:47.000Z | 2022-03-19T06:51:54.000Z | Development/ActorX/Source/MayaPLE_Plugin/UnEdPlug/unEditorCmd.cpp | AdanosGotoman/unrealengine3 | 4579d360dfd52b12493292120b27bb430f978fc8 | [
"FSFAP"
] | null | null | null | Development/ActorX/Source/MayaPLE_Plugin/UnEdPlug/unEditorCmd.cpp | AdanosGotoman/unrealengine3 | 4579d360dfd52b12493292120b27bb430f978fc8 | [
"FSFAP"
] | 27 | 2020-05-17T01:03:30.000Z | 2022-03-06T19:10:14.000Z | //
// Copyright (C) 2002 Secret Level
//
// File: unEditorCmd.cpp
//
// MEL Command: unEditor
//
// Author: Maya SDK Wizard
//
// Description: Implementation of plugin interface for unEditor.mll
//
// Includes everything needed to register a simple MEL command with Maya.
//
//#include <maya/MSimple.h>
#include <ma... | 25.068441 | 142 | 0.667602 | addstone |
9a6087ab262f30d73951a4ee120da2c7333c789f | 162 | cpp | C++ | src/examples/04_module/08_strings/main.cpp | acc-cosc-1337-summer-2020-classroom/acc-cosc-1337-summer-2020-Gabe-Cpp | f5b7d8610054c975b67ff04a41a7a054325e3c7e | [
"MIT"
] | null | null | null | src/examples/04_module/08_strings/main.cpp | acc-cosc-1337-summer-2020-classroom/acc-cosc-1337-summer-2020-Gabe-Cpp | f5b7d8610054c975b67ff04a41a7a054325e3c7e | [
"MIT"
] | null | null | null | src/examples/04_module/08_strings/main.cpp | acc-cosc-1337-summer-2020-classroom/acc-cosc-1337-summer-2020-Gabe-Cpp | f5b7d8610054c975b67ff04a41a7a054325e3c7e | [
"MIT"
] | null | null | null | #include<string>
#include<iostream>
#include "strings.h"
int main()
{
std::string str1 = "john";
loop_string_w_index(str1);
std::cout << str1;
return 0;
} | 12.461538 | 27 | 0.666667 | acc-cosc-1337-summer-2020-classroom |
9a644442cd27c9a5dbbf78b59d431f194d1b234e | 343 | hpp | C++ | lib/inc/cpp-pcp-client/ws_config.hpp | puppetlabs/cpp-pcp-client | b22db78a97a78e7f8cc189223af820756d4c0a8c | [
"Apache-2.0"
] | 1 | 2018-09-25T20:01:07.000Z | 2018-09-25T20:01:07.000Z | lib/inc/cpp-pcp-client/ws_config.hpp | puppetlabs/cpp-pcp-client | b22db78a97a78e7f8cc189223af820756d4c0a8c | [
"Apache-2.0"
] | 100 | 2015-10-12T20:06:20.000Z | 2021-12-03T19:30:07.000Z | lib/inc/cpp-pcp-client/ws_config.hpp | puppetlabs/cpp-pcp-client | b22db78a97a78e7f8cc189223af820756d4c0a8c | [
"Apache-2.0"
] | 34 | 2015-10-06T10:00:03.000Z | 2022-01-18T22:35:52.000Z | #pragma once
#include <websocketpp/config/asio_client.hpp>
namespace PCPClient {
struct ws_config : public websocketpp::config::asio_tls_client {
static const websocketpp::log::level elog_level =
websocketpp::log::elevel::all;
static const websocketpp::log::level alog_level =
websocketpp::lo... | 26.384615 | 66 | 0.714286 | puppetlabs |
9a687bec546f6af34b69585b9cb0c9fa53d4b918 | 1,658 | cpp | C++ | vm/compiler/codegen/x86/lightcg/CompilationUnit.cpp | HazouPH/android_dalvik | 5e66532f06bbf1f43b23ff408ee64dc30c31fc9d | [
"Apache-2.0"
] | null | null | null | vm/compiler/codegen/x86/lightcg/CompilationUnit.cpp | HazouPH/android_dalvik | 5e66532f06bbf1f43b23ff408ee64dc30c31fc9d | [
"Apache-2.0"
] | null | null | null | vm/compiler/codegen/x86/lightcg/CompilationUnit.cpp | HazouPH/android_dalvik | 5e66532f06bbf1f43b23ff408ee64dc30c31fc9d | [
"Apache-2.0"
] | null | null | null | /*
* Copyright (C) 2013 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... | 28.101695 | 94 | 0.694813 | HazouPH |
9a6bf681d119656a39fe600124d3a3094b65a541 | 13,720 | cc | C++ | hackt_docker/hackt/src/Object/sizes-entity.cc | broken-wheel/hacktist | 36e832ae7dd38b27bca9be7d0889d06054dc2806 | [
"MIT"
] | null | null | null | hackt_docker/hackt/src/Object/sizes-entity.cc | broken-wheel/hacktist | 36e832ae7dd38b27bca9be7d0889d06054dc2806 | [
"MIT"
] | null | null | null | hackt_docker/hackt/src/Object/sizes-entity.cc | broken-wheel/hacktist | 36e832ae7dd38b27bca9be7d0889d06054dc2806 | [
"MIT"
] | null | null | null | /**
\file "Object/sizes-entity.cc"
Just dumps the sizeof for most HAC::entity classes.
This file came from "art_persistent_table.cc".
$Id: sizes-entity.cc,v 1.3 2010/04/07 00:12:32 fang Exp $
*/
#include <iostream>
#include "common/sizes-common.hh"
#include "util/what.tcc" // use default typeinfo-based mangled n... | 41.829268 | 79 | 0.810277 | broken-wheel |
9a74044bfd7cdd3f820a4ebcc19a7f2aaa2931ae | 2,642 | cpp | C++ | cstatgen/src/umich/general/BaseUtilities.cpp | statgenetics/rvnpl | 22053ca4e24e5486e1179a5e85aaf316a218391f | [
"MIT"
] | 1 | 2021-11-28T12:00:34.000Z | 2021-11-28T12:00:34.000Z | cstatgen/src/umich/general/BaseUtilities.cpp | changebio/rvnpl | 22053ca4e24e5486e1179a5e85aaf316a218391f | [
"MIT"
] | 8 | 2020-03-18T02:39:45.000Z | 2020-12-12T08:05:24.000Z | cstatgen/src/umich/general/BaseUtilities.cpp | changebio/rvnpl | 22053ca4e24e5486e1179a5e85aaf316a218391f | [
"MIT"
] | 3 | 2021-01-26T03:22:59.000Z | 2021-11-15T14:27:51.000Z | /*
* Copyright (C) 2010-2012 Regents of the University of Michigan
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any la... | 24.018182 | 78 | 0.62112 | statgenetics |
9a753b1acc734448b049111f8a0bb73bac5f8e00 | 2,145 | cpp | C++ | src/fastsynth/smt2_frontend.cpp | kroening/fastsynth | 6a8aed3182c7156e3ea4981576e2d29ba4088a3c | [
"BSD-3-Clause"
] | 3 | 2020-06-01T03:07:06.000Z | 2021-01-21T12:42:04.000Z | src/fastsynth/smt2_frontend.cpp | kroening/fastsynth | 6a8aed3182c7156e3ea4981576e2d29ba4088a3c | [
"BSD-3-Clause"
] | 10 | 2019-09-13T21:18:15.000Z | 2020-12-04T01:18:46.000Z | src/fastsynth/smt2_frontend.cpp | kroening/fastsynth | 6a8aed3182c7156e3ea4981576e2d29ba4088a3c | [
"BSD-3-Clause"
] | 2 | 2019-09-13T21:15:53.000Z | 2019-09-15T04:42:31.000Z | #include <util/cmdline.h>
#include <util/cout_message.h>
#include <util/namespace.h>
#include <util/symbol_table.h>
#include <solvers/flattening/boolbv.h>
#include <solvers/sat/satcheck.h>
#include <solvers/smt2/smt2_parser.h>
#include <fstream>
#include <iostream>
class smt2_frontendt:public smt2_parsert
{
public:
... | 18.815789 | 68 | 0.652681 | kroening |
9a77e1eabc656137780911f4cc82bb9207f1f000 | 6,003 | cpp | C++ | modules/futures_redis/src/RedisFuture.cpp | chyh1990/futures_cpp | 8e60e74af0cffff0a9749682a4caf1768277c04b | [
"MIT"
] | 71 | 2017-12-18T10:35:41.000Z | 2021-12-11T19:57:34.000Z | modules/futures_redis/src/RedisFuture.cpp | chyh1990/futures_cpp | 8e60e74af0cffff0a9749682a4caf1768277c04b | [
"MIT"
] | 1 | 2017-12-19T09:31:46.000Z | 2017-12-20T07:08:01.000Z | modules/futures_redis/src/RedisFuture.cpp | chyh1990/futures_cpp | 8e60e74af0cffff0a9749682a4caf1768277c04b | [
"MIT"
] | 7 | 2017-12-20T01:55:44.000Z | 2019-12-06T12:25:55.000Z | #include <futures_redis/RedisFuture.h>
#include "hiredis/async.h"
#include "hiredis/hiredis.h"
namespace futures {
namespace redis_io {
AsyncContext::AsyncContext(EventExecutor *loop,
const std::string& addr, uint16_t port)
: io::IOObject(loop), c_(nullptr),
addr_(addr), port_(port),
rev_(loop->getLoo... | 27.791667 | 86 | 0.617191 | chyh1990 |
9a799309ae4d8f47c9cc005df306f0a5d0e0eb91 | 1,643 | cpp | C++ | src/physics_animation.cpp | AleksanderSiwek/Fluide_Engine | 12c626105b079a3dd21a3cc95b7d98342d041f5d | [
"MIT"
] | null | null | null | src/physics_animation.cpp | AleksanderSiwek/Fluide_Engine | 12c626105b079a3dd21a3cc95b7d98342d041f5d | [
"MIT"
] | null | null | null | src/physics_animation.cpp | AleksanderSiwek/Fluide_Engine | 12c626105b079a3dd21a3cc95b7d98342d041f5d | [
"MIT"
] | null | null | null | #include "physics_animation.hpp"
PhysicsAnimation::PhysicsAnimation()
{
Initialize();
}
PhysicsAnimation::~PhysicsAnimation()
{
}
void PhysicsAnimation::AdvanceSingleFrame()
{
Frame f = _currentFrame;
Update(++f);
}
void PhysicsAnimation::SetCurrentFrame(const Frame& frame)
{
_currentFrame = frame;... | 20.283951 | 126 | 0.720633 | AleksanderSiwek |
9a7ea5d5cb03f555ed8b370c08acadaee18ab31c | 1,297 | hpp | C++ | Axis.Echinopsis/application/factories/collectors/HyperworksNodeCollectorFactory.hpp | renato-yuzup/axis-fem | 2e8d325eb9c8e99285f513b4c1218ef53eb0ab22 | [
"MIT"
] | 2 | 2021-07-23T08:49:54.000Z | 2021-07-29T22:07:30.000Z | Axis.Echinopsis/application/factories/collectors/HyperworksNodeCollectorFactory.hpp | renato-yuzup/axis-fem | 2e8d325eb9c8e99285f513b4c1218ef53eb0ab22 | [
"MIT"
] | null | null | null | Axis.Echinopsis/application/factories/collectors/HyperworksNodeCollectorFactory.hpp | renato-yuzup/axis-fem | 2e8d325eb9c8e99285f513b4c1218ef53eb0ab22 | [
"MIT"
] | null | null | null | #pragma once
#include "application/factories/collectors/CollectorFactory.hpp"
#include "application/factories/collectors/GeneralNodeCollectorFactory.hpp"
#include "HyperworksNodeCollectorBuilder.hpp"
namespace axis { namespace application { namespace factories { namespace collectors {
class HyperworksNodeCollectorF... | 41.83871 | 103 | 0.764842 | renato-yuzup |
9a7edf2c0ab8eefeb1da82969a5042d69f40a17e | 8,422 | cpp | C++ | PyMI/PyMI.cpp | ader1990/PyMI | 1af8af0b51afdc4c8c533a8ff4d4355f929b932e | [
"Apache-2.0"
] | 19 | 2015-12-07T17:53:49.000Z | 2021-11-25T14:48:06.000Z | PyMI/PyMI.cpp | ader1990/PyMI | 1af8af0b51afdc4c8c533a8ff4d4355f929b932e | [
"Apache-2.0"
] | 11 | 2017-02-01T14:34:27.000Z | 2020-05-17T20:22:42.000Z | PyMI/PyMI.cpp | ader1990/PyMI | 1af8af0b51afdc4c8c533a8ff4d4355f929b932e | [
"Apache-2.0"
] | 18 | 2015-11-19T19:52:51.000Z | 2022-02-09T08:22:32.000Z | // PyMI.cpp : Defines the exported functions for the DLL application.
//
#include "stdafx.h"
#include "PyMI.h"
#include "Application.h"
#include "Session.h"
#include "Class.h"
#include "Operation.h"
#include "Instance.h"
#include "Serializer.h"
#include "OperationOptions.h"
#include "DestinationOptions.h"
#include "Mi... | 40.104762 | 98 | 0.66635 | ader1990 |
9a846635ec4bc8ee32415cdc76a08ba1d8f16037 | 2,762 | cc | C++ | Neptune/Socket.cc | superly1213/Neptune | 11e34a6c44bd10161c59560d24cbe6f83580855e | [
"BSD-2-Clause"
] | 1 | 2017-01-30T04:32:27.000Z | 2017-01-30T04:32:27.000Z | Neptune/Socket.cc | superly1213/Neptune | 11e34a6c44bd10161c59560d24cbe6f83580855e | [
"BSD-2-Clause"
] | null | null | null | Neptune/Socket.cc | superly1213/Neptune | 11e34a6c44bd10161c59560d24cbe6f83580855e | [
"BSD-2-Clause"
] | 1 | 2019-03-21T07:09:16.000Z | 2019-03-21T07:09:16.000Z | // Copyright (c) 2017 ASMlover. 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 ofconditions and... | 33.277108 | 79 | 0.736061 | superly1213 |
89412bbd52f4055b39f0530c4515f8abdd6d4ebb | 14,199 | cc | C++ | wrappers/8.1.1/vtkGeoProjectionWrap.cc | axkibe/node-vtk | 900ad7b5500f672519da5aa24c99aa5a96466ef3 | [
"BSD-3-Clause"
] | 6 | 2016-02-03T12:48:36.000Z | 2020-09-16T15:07:51.000Z | wrappers/8.1.1/vtkGeoProjectionWrap.cc | axkibe/node-vtk | 900ad7b5500f672519da5aa24c99aa5a96466ef3 | [
"BSD-3-Clause"
] | 4 | 2016-02-13T01:30:43.000Z | 2020-03-30T16:59:32.000Z | wrappers/8.1.1/vtkGeoProjectionWrap.cc | axkibe/node-vtk | 900ad7b5500f672519da5aa24c99aa5a96466ef3 | [
"BSD-3-Clause"
] | null | null | null | /* this file has been autogenerated by vtkNodeJsWrap */
/* editing this might proof futile */
#define VTK_WRAPPING_CXX
#define VTK_STREAMS_FWD_ONLY
#include <nan.h>
#include "vtkObjectWrap.h"
#include "vtkGeoProjectionWrap.h"
#include "vtkObjectBaseWrap.h"
#include "../../plus/plus.h"
using namespace v8;
extern Nan... | 31.48337 | 106 | 0.7347 | axkibe |
89427c5306d3cbf81dfd33f11c25a5c2e9fbb185 | 1,329 | hpp | C++ | include/interface_handler.hpp | rdavid/atm | c3a69799b5993cec694a69b0f881603aa092fc32 | [
"0BSD"
] | null | null | null | include/interface_handler.hpp | rdavid/atm | c3a69799b5993cec694a69b0f881603aa092fc32 | [
"0BSD"
] | null | null | null | include/interface_handler.hpp | rdavid/atm | c3a69799b5993cec694a69b0f881603aa092fc32 | [
"0BSD"
] | null | null | null | #pragma once
#include <interface.hpp>
#include <future>
namespace atm
{
class interface_handler {
public:
std::future<void> issue_money(unsigned amount) const {
return std::async(&interface::issue_money, &m_interface, amount);
}
std::future<void> display_insufficient_funds() const {
return std::async(... | 30.906977 | 79 | 0.72912 | rdavid |
8945d2f322c94aad0085b1c9c7e31fbbfcc5e764 | 542 | hpp | C++ | libs/console/include/sge/console/callback/function_type.hpp | cpreh/spacegameengine | 313a1c34160b42a5135f8223ffaa3a31bc075a01 | [
"BSL-1.0"
] | 2 | 2016-01-27T13:18:14.000Z | 2018-05-11T01:11:32.000Z | libs/console/include/sge/console/callback/function_type.hpp | cpreh/spacegameengine | 313a1c34160b42a5135f8223ffaa3a31bc075a01 | [
"BSL-1.0"
] | null | null | null | libs/console/include/sge/console/callback/function_type.hpp | cpreh/spacegameengine | 313a1c34160b42a5135f8223ffaa3a31bc075a01 | [
"BSL-1.0"
] | 3 | 2018-05-11T01:11:34.000Z | 2021-04-24T19:47:45.000Z | // 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_CONSOLE_CALLBACK_FUNCTION_TYPE_HPP_INCLUDED
#define SGE_CONSOLE_CALLBACK_FUNCTION_TYPE_... | 27.1 | 85 | 0.756458 | cpreh |
89467c1eff0a4c084a1c7ba2d881639561f201f3 | 32,134 | cpp | C++ | tbc/src/physicsengine.cpp | highfestiva/life | b05b592502d72980ab55e13e84330b74a966f377 | [
"BSD-3-Clause"
] | 9 | 2019-09-03T18:33:31.000Z | 2022-02-04T04:00:02.000Z | tbc/src/physicsengine.cpp | highfestiva/life | b05b592502d72980ab55e13e84330b74a966f377 | [
"BSD-3-Clause"
] | null | null | null | tbc/src/physicsengine.cpp | highfestiva/life | b05b592502d72980ab55e13e84330b74a966f377 | [
"BSD-3-Clause"
] | null | null | null |
// Author: Jonas Byström
// Copyright (c) Pixel Doctrine
#include "pch.h"
#include "../include/physicsengine.h"
#include "../../lepra/include/lepraassert.h"
#include "../../lepra/include/endian.h"
#include "../../lepra/include/math.h"
#include "../../lepra/include/vector2d.h"
#include "../include/chunkybonegeometry... | 38.762364 | 154 | 0.710929 | highfestiva |
8947abb1f31cde821893456393d10619c8c882f2 | 432 | cpp | C++ | cs162/labs/lab6/square.cpp | franzmk/Oregon-State-Schoolwork | 20f8a72e78ec4baa131add2dda8026cd47f36188 | [
"MIT"
] | null | null | null | cs162/labs/lab6/square.cpp | franzmk/Oregon-State-Schoolwork | 20f8a72e78ec4baa131add2dda8026cd47f36188 | [
"MIT"
] | null | null | null | cs162/labs/lab6/square.cpp | franzmk/Oregon-State-Schoolwork | 20f8a72e78ec4baa131add2dda8026cd47f36188 | [
"MIT"
] | null | null | null | #include "square.h"
Square::Square() {
//nothing here
}
Square::Square(float x, string name, string color) : Rectangle(x, x, name, color) {
//nothing here
}
float Square::get_dimensions() {
get_height();
}
void Square::set_dimensions(float x) {
set_height(x);
set_width(x);
}
float Square::get_area() {
float ... | 15.428571 | 83 | 0.662037 | franzmk |
8947c937c6e6c6c2121a55a3dd98ebdcc206856e | 1,458 | cpp | C++ | oneEngine/oneGame/source/engine-common/entities/CWaypoint.cpp | jonting/1Engine | f22ba31f08fa96fe6405ebecec4f374138283803 | [
"BSD-3-Clause"
] | 8 | 2017-12-08T02:59:31.000Z | 2022-02-02T04:30:03.000Z | oneEngine/oneGame/source/engine-common/entities/CWaypoint.cpp | jonting/1Engine | f22ba31f08fa96fe6405ebecec4f374138283803 | [
"BSD-3-Clause"
] | 2 | 2021-04-16T03:44:42.000Z | 2021-08-30T06:48:44.000Z | oneEngine/oneGame/source/engine-common/entities/CWaypoint.cpp | jonting/1Engine | f22ba31f08fa96fe6405ebecec4f374138283803 | [
"BSD-3-Clause"
] | 1 | 2021-04-16T02:09:54.000Z | 2021-04-16T02:09:54.000Z | #include "CWaypoint.h"
#include "CPlayer.h"
#include "engine/state/CGameState.h"
#include "engine-common/network/playerlist.h"
//DON'T LOSE YOUR WAY!
std::vector<CWaypoint*> CWaypoint::WaypointList;
CWaypoint::CWaypoint (void) : CPointBase(),
entity (NULL), type (PLAIN)
{
WaypointList.push_back (this);
distance ... | 25.578947 | 135 | 0.659122 | jonting |
894b3f776fe234668789d7d38c52c0d12cc169aa | 5,196 | cpp | C++ | Gpu/Material.cpp | ousttrue/FunnelPipe | 380b52a7d41b4128b287ec02280bb703ed6b5d66 | [
"MIT"
] | null | null | null | Gpu/Material.cpp | ousttrue/FunnelPipe | 380b52a7d41b4128b287ec02280bb703ed6b5d66 | [
"MIT"
] | null | null | null | Gpu/Material.cpp | ousttrue/FunnelPipe | 380b52a7d41b4128b287ec02280bb703ed6b5d66 | [
"MIT"
] | null | null | null | #include "Material.h"
#include <Shader.h>
namespace Gpu::dx12
{
bool Material::Initialize(const ComPtr<ID3D12Device> &device,
const ComPtr<ID3D12RootSignature> &rootSignature,
const framedata::FrameMaterialPtr &material)
{
auto vs = material->Shader ? ... | 33.960784 | 81 | 0.575443 | ousttrue |
894b7539666e8d21a06b334927fc44a28e90be3b | 6,976 | cpp | C++ | controllers/higher_level/src/qp/tasks/qr_joint_space_v2.cpp | ADVRHumanoids/DrivingFramework | 34715c37bfe3c1f2bd92aeacecc12704a1a7820e | [
"Zlib"
] | 1 | 2019-12-02T07:10:42.000Z | 2019-12-02T07:10:42.000Z | controllers/higher_level/src/qp/tasks/qr_joint_space_v2.cpp | ADVRHumanoids/DrivingFramework | 34715c37bfe3c1f2bd92aeacecc12704a1a7820e | [
"Zlib"
] | null | null | null | controllers/higher_level/src/qp/tasks/qr_joint_space_v2.cpp | ADVRHumanoids/DrivingFramework | 34715c37bfe3c1f2bd92aeacecc12704a1a7820e | [
"Zlib"
] | 2 | 2020-10-22T19:06:44.000Z | 2021-06-07T03:32:52.000Z | #include "mgnss/higher_level/qp/tasks/qr_joint_space_v2.h"
// #include <range/v3/view/zip.hpp>
// #include <range/v3/view/concat.hpp>
mgnss::higher_level::QRJointSpaceV2::QRJointSpaceV2(mgnss::higher_level::QrTask& task, const mwoibn::Matrix& jacobian, const mwoibn::VectorN& offset, mwoibn::robot_class::Robot& robot, ... | 50.919708 | 211 | 0.647792 | ADVRHumanoids |
894b98f737b3d6f2eeb7c7def093bd7f68529f96 | 207 | cpp | C++ | 2021.09.13-Homework-1/Task 5/Source.cpp | 095238/Personal-Space | 4950722f815193030674e7d899f5f07970e9e08f | [
"Apache-2.0"
] | null | null | null | 2021.09.13-Homework-1/Task 5/Source.cpp | 095238/Personal-Space | 4950722f815193030674e7d899f5f07970e9e08f | [
"Apache-2.0"
] | null | null | null | 2021.09.13-Homework-1/Task 5/Source.cpp | 095238/Personal-Space | 4950722f815193030674e7d899f5f07970e9e08f | [
"Apache-2.0"
] | null | null | null | #include<iostream>
using namespace std;
int main(int argc, char* argv[])
{
int x = 0;
cin >> x;
int a = x % 10;
int b = (x % 100) / 10;
int c = x / 100;
cout << a+b+c << endl;
return EXIT_SUCCESS;
} | 14.785714 | 32 | 0.565217 | 095238 |
8952432570536bb4be5eb04c84dcbd3c65bfd6b5 | 2,547 | cpp | C++ | homework/Kuznetsova/04/matrix.cpp | mtrempoltsev/msu_cpp_autumn_2017 | 0e87491dc117670b99d2ca2f7e1c5efbc425ae1c | [
"MIT"
] | 10 | 2017-09-21T15:17:33.000Z | 2021-01-11T13:11:55.000Z | homework/Kuznetsova/04/matrix.cpp | mtrempoltsev/msu_cpp_autumn_2017 | 0e87491dc117670b99d2ca2f7e1c5efbc425ae1c | [
"MIT"
] | null | null | null | homework/Kuznetsova/04/matrix.cpp | mtrempoltsev/msu_cpp_autumn_2017 | 0e87491dc117670b99d2ca2f7e1c5efbc425ae1c | [
"MIT"
] | 22 | 2017-09-21T15:45:08.000Z | 2019-02-21T19:15:25.000Z | #include "matrix.h"
Matrix::Matrix(const size_t rows, const size_t columns)
: rows_(rows), columns_(columns) {
ptr_ = new double[columns_ * rows_];
}
Matrix::Matrix(const Matrix& other) : rows_(other.rows_), columns_(other.columns_) {
ptr_ = new double[columns_ * rows_];
for (size_t i = 0; i < rows_; i+... | 29.964706 | 84 | 0.535925 | mtrempoltsev |
89566a1d7c886db3bfac38c58df9b36a0a639ef4 | 19,308 | cpp | C++ | source/games/game_tetris.cpp | Chrscool8/Brick-Game-9999-in-1 | 5f5aa93729ded47d395f7546308b7ce89f035c17 | [
"Zlib"
] | 5 | 2021-04-06T06:18:26.000Z | 2021-11-10T02:01:33.000Z | source/games/game_tetris.cpp | Chrscool8/Brick-Game-9999-in-1 | 5f5aa93729ded47d395f7546308b7ce89f035c17 | [
"Zlib"
] | null | null | null | source/games/game_tetris.cpp | Chrscool8/Brick-Game-9999-in-1 | 5f5aa93729ded47d395f7546308b7ce89f035c17 | [
"Zlib"
] | null | null | null | #include <games/game_tetris.h>
#include <games/game_race.h>
#include <grid_sprites.h>
#include <game_tetris_shapes.h>
#include <platform/control_layer.h>
// Let's the subgame know what main game it belongs to.
subgame_tetris::subgame_tetris(BrickGameFramework& _parent) : subgame(_parent)
{
name = "Tetris";
}
// Runs... | 24.596178 | 131 | 0.472757 | Chrscool8 |
895721d9641fb87a5be26ca9e106fbb9a05aa193 | 2,088 | cpp | C++ | mc_rtc_rviz_panel/src/FormWidget.cpp | mmurooka/mc_rtc_ros | 781b67729cd9375f558d55b190e77fee1993ca4e | [
"BSD-2-Clause"
] | null | null | null | mc_rtc_rviz_panel/src/FormWidget.cpp | mmurooka/mc_rtc_ros | 781b67729cd9375f558d55b190e77fee1993ca4e | [
"BSD-2-Clause"
] | null | null | null | mc_rtc_rviz_panel/src/FormWidget.cpp | mmurooka/mc_rtc_ros | 781b67729cd9375f558d55b190e77fee1993ca4e | [
"BSD-2-Clause"
] | null | null | null | /*
* Copyright 2016-2019 CNRS-UM LIRMM, CNRS-AIST JRL
*/
#include "FormWidget.h"
namespace mc_rtc_rviz
{
FormWidget::FormWidget(const ClientWidgetParam & param) : ClientWidget(param)
{
vlayout_ = new QVBoxLayout(this);
form_ = new QWidget();
layout_ = new QFormLayout(form_);
auto button = new QPushButton(n... | 19.514019 | 87 | 0.617337 | mmurooka |
895a6c3a827ff05009eac170a1e39c165b2d1f38 | 30,545 | inl | C++ | src/fonts/stb_font_arial_28_usascii.inl | stetre/moonfonts | 5c8010c02ea62edcf42902e09478b0cd14af56ea | [
"MIT"
] | 3 | 2018-03-13T12:51:57.000Z | 2021-10-11T11:32:17.000Z | src/fonts/stb_font_arial_28_usascii.inl | stetre/moonfonts | 5c8010c02ea62edcf42902e09478b0cd14af56ea | [
"MIT"
] | null | null | null | src/fonts/stb_font_arial_28_usascii.inl | stetre/moonfonts | 5c8010c02ea62edcf42902e09478b0cd14af56ea | [
"MIT"
] | null | null | null | // Font generated by stb_font_inl_generator.c (4/1 bpp)
//
// Following instructions show how to use the only included font, whatever it is, in
// a generic way so you can replace it with any other font by changing the include.
// To use multiple fonts, replace STB_SOMEFONT_* below with STB_FONT_arial_28_usascii_*,... | 62.979381 | 117 | 0.775184 | stetre |
895c5c10f933e68ab004370d0a2fe8c883377acd | 9,991 | cpp | C++ | extern/nbclient/src/NBEventHeaders.cpp | jychoi-hpc/pviz3 | d55c84a45df0a5bf30ecb832b370e03f0c7ab4c1 | [
"xpp"
] | null | null | null | extern/nbclient/src/NBEventHeaders.cpp | jychoi-hpc/pviz3 | d55c84a45df0a5bf30ecb832b370e03f0c7ab4c1 | [
"xpp"
] | null | null | null | extern/nbclient/src/NBEventHeaders.cpp | jychoi-hpc/pviz3 | d55c84a45df0a5bf30ecb832b370e03f0c7ab4c1 | [
"xpp"
] | null | null | null | /***************************************************************************
* Copyright:http://www.naradabrokering.org/index.html
* Author: Jaliya Ekanayake
* Email : jaliyae@gmail.com
****************************************************************************/
#ifdef WIN32
#include "StdAfx.h"
#endif
#include... | 22.8627 | 81 | 0.660695 | jychoi-hpc |
895cbed539482619f455397ed672789054adedaf | 1,801 | cpp | C++ | ext/types/offer.cpp | Atidot/hs-mesos | 7449a31550259a231c4809d9a6fcc626892502b3 | [
"MIT"
] | null | null | null | ext/types/offer.cpp | Atidot/hs-mesos | 7449a31550259a231c4809d9a6fcc626892502b3 | [
"MIT"
] | null | null | null | ext/types/offer.cpp | Atidot/hs-mesos | 7449a31550259a231c4809d9a6fcc626892502b3 | [
"MIT"
] | null | null | null | #include <iostream>
#include "types.h"
using namespace mesos;
OfferPtr toOffer(OfferIDPtr offerID,
FrameworkIDPtr frameworkID,
SlaveIDPtr slaveID,
char* hostname,
int hostnameLen,
ResourcePtr* resources,
int resourcesLen,
AttributePtr* attributes,
int attributesLen,
ExecutorIDPtr* executorI... | 22.5125 | 63 | 0.667962 | Atidot |
89678386c71f9f7c8a1dead073b46d650133a148 | 582 | cpp | C++ | hw4/src/lib/sema/ContextManager.cpp | idoleat/P-Language-Compiler-CourseProject | 57db735b349a0a3a30d78b927953e2d44b7c7d53 | [
"MIT"
] | 7 | 2020-09-10T16:54:49.000Z | 2022-03-15T12:39:23.000Z | hw4/src/lib/sema/ContextManager.cpp | idoleat/simple-P-compiler | 57db735b349a0a3a30d78b927953e2d44b7c7d53 | [
"MIT"
] | null | null | null | hw4/src/lib/sema/ContextManager.cpp | idoleat/simple-P-compiler | 57db735b349a0a3a30d78b927953e2d44b7c7d53 | [
"MIT"
] | null | null | null | #include "sema/SemanticAnalyzer.hpp"
std::string SemanticAnalyzer::ContextManager::TrimDimension(const char* typeString, int amount, bool TrimWhiteSpace){
std::string type = std::string(typeString);
std::size_t left, right;
while(amount != 0){
left = type.find_first_of("[");
right = type.fi... | 29.1 | 117 | 0.594502 | idoleat |
8967bedf82ef7802f2c640389d5bcc1ffdc0b67b | 1,198 | cpp | C++ | Source/10.0.18362.0/ucrt/string/strtok.cpp | 825126369/UCRT | 8853304fdc2a5c216658d08b6dbbe716aa2a7b1f | [
"MIT"
] | 2 | 2021-01-27T10:19:30.000Z | 2021-02-09T06:24:30.000Z | Source/10.0.18362.0/ucrt/string/strtok.cpp | 825126369/UCRT | 8853304fdc2a5c216658d08b6dbbe716aa2a7b1f | [
"MIT"
] | null | null | null | Source/10.0.18362.0/ucrt/string/strtok.cpp | 825126369/UCRT | 8853304fdc2a5c216658d08b6dbbe716aa2a7b1f | [
"MIT"
] | 1 | 2021-01-27T10:19:36.000Z | 2021-01-27T10:19:36.000Z | //
// strtok.cpp
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
// Defines strtok(), which tokenizes a string via repeated calls.
//
// strtok() considers the string to consist of a sequence of zero or more text
// tokens separated by spans of one or more control characters. The first call,
/... | 35.235294 | 90 | 0.708681 | 825126369 |
89695dcb97261b08d68dac2c77b378c7da782414 | 145 | cpp | C++ | src/Redox.cpp | adityaatluri/Redox | d4e0c6fdc2fa676c038d2386c5c11766af576c07 | [
"MIT"
] | null | null | null | src/Redox.cpp | adityaatluri/Redox | d4e0c6fdc2fa676c038d2386c5c11766af576c07 | [
"MIT"
] | null | null | null | src/Redox.cpp | adityaatluri/Redox | d4e0c6fdc2fa676c038d2386c5c11766af576c07 | [
"MIT"
] | null | null | null | //
// Copyright 2018 - present @adityaatluri
//
#include "Redox/Redox.hpp"
#include "Redox/IR.hpp"
namespace Redox {
} // end namespace Redox | 13.181818 | 41 | 0.689655 | adityaatluri |
896a4c73f95f68c47644475ea4886e136439e6b8 | 1,225 | hpp | C++ | CRTPFactory/src/AddToRegistry.hpp | DLancer999/FactoryImplementation | a87b595cac1b2c082a39113b5a6cfbc2548bd8ff | [
"MIT"
] | null | null | null | CRTPFactory/src/AddToRegistry.hpp | DLancer999/FactoryImplementation | a87b595cac1b2c082a39113b5a6cfbc2548bd8ff | [
"MIT"
] | null | null | null | CRTPFactory/src/AddToRegistry.hpp | DLancer999/FactoryImplementation | a87b595cac1b2c082a39113b5a6cfbc2548bd8ff | [
"MIT"
] | null | null | null |
/*************************************************************************\
License
Copyright (c) 2018 Kavvadias Ioannis.
This file is part of FactoryImplementation.
Licensed under the MIT License. See LICENSE file in the project root for
full license information.
Class
AddToRegistry
... | 27.840909 | 80 | 0.621224 | DLancer999 |
89702dfc51ba464bc6da15cd2b8a948f21927687 | 4,454 | cc | C++ | krypton/crypto/rsa_fdh_blinder_test.cc | Condum/vpn-libraries | aa741f31c98f25e81e76fb5306c30233dd872598 | [
"Apache-2.0"
] | 163 | 2020-10-29T21:24:42.000Z | 2022-03-28T15:42:24.000Z | krypton/crypto/rsa_fdh_blinder_test.cc | 0xgpapad/vpn-libraries | aa741f31c98f25e81e76fb5306c30233dd872598 | [
"Apache-2.0"
] | 4 | 2021-02-13T20:14:53.000Z | 2022-03-08T03:18:06.000Z | krypton/crypto/rsa_fdh_blinder_test.cc | 0xgpapad/vpn-libraries | aa741f31c98f25e81e76fb5306c30233dd872598 | [
"Apache-2.0"
] | 25 | 2020-11-10T18:06:04.000Z | 2022-03-08T03:11:32.000Z | // Copyright 2020 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the );
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// https://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, ... | 35.070866 | 78 | 0.701392 | Condum |
897172d3ad4713dc6ff9e70ca874f801cc893b2b | 747 | cpp | C++ | String/First Non-repeted char in a string.cpp | Biplob68/Data-Structure-and-Algorithms | 2ea7895a87ce1dfb9bd90495c678fc5d1ae133f6 | [
"MIT"
] | null | null | null | String/First Non-repeted char in a string.cpp | Biplob68/Data-Structure-and-Algorithms | 2ea7895a87ce1dfb9bd90495c678fc5d1ae133f6 | [
"MIT"
] | null | null | null | String/First Non-repeted char in a string.cpp | Biplob68/Data-Structure-and-Algorithms | 2ea7895a87ce1dfb9bd90495c678fc5d1ae133f6 | [
"MIT"
] | null | null | null | #include <stdio.h>
#include <string.h>
int main(void)
{
char str[100] ;
scanf("%[^\n]%c", str);
int len = strlen(str);
int i,j,flag;
// Two loops to compare each character with other character
for(i = 0; i < len; i++)
{
flag = 0;
for(j = 0; j < len; j++)
{
... | 18.675 | 67 | 0.417671 | Biplob68 |
8973a1d5836bd39116a198ef89f47f9839decc08 | 780 | hpp | C++ | include/Pothos/serialization/impl/mpl/char_fwd.hpp | pothosware/pothos-serialization | c59130f916a3e5b833a32ba415063f9cb306a8dd | [
"BSL-1.0"
] | 1 | 2015-05-26T11:27:22.000Z | 2015-05-26T11:27:22.000Z | include/Pothos/serialization/impl/mpl/char_fwd.hpp | pothosware/pothos-serialization | c59130f916a3e5b833a32ba415063f9cb306a8dd | [
"BSL-1.0"
] | null | null | null | include/Pothos/serialization/impl/mpl/char_fwd.hpp | pothosware/pothos-serialization | c59130f916a3e5b833a32ba415063f9cb306a8dd | [
"BSL-1.0"
] | null | null | null |
#ifndef POTHOS_MPL_CHAR_FWD_HPP_INCLUDED
#define POTHOS_MPL_CHAR_FWD_HPP_INCLUDED
// Copyright Eric Niebler 2008
//
// Distributed under the Boost Software License, Version 1.0.
// (See accompanying file LICENSE_1_0.txt or copy at
// http://www.boost.org/LICENSE_1_0.txt)
//
// See http://www.boost.org/libs/mpl for ... | 27.857143 | 62 | 0.788462 | pothosware |
89780c9bf1eb5779c361a74d2cf56f2d76c3717d | 822 | cpp | C++ | acm/hdu/1873.cpp | xiaohuihuigh/cpp | c28bdb79ecb86f44a92971ac259910546dba29a7 | [
"MIT"
] | 17 | 2016-01-01T12:57:25.000Z | 2022-02-06T09:55:12.000Z | acm/hdu/1873.cpp | xiaohuihuigh/cpp | c28bdb79ecb86f44a92971ac259910546dba29a7 | [
"MIT"
] | null | null | null | acm/hdu/1873.cpp | xiaohuihuigh/cpp | c28bdb79ecb86f44a92971ac259910546dba29a7 | [
"MIT"
] | 8 | 2018-12-27T01:31:49.000Z | 2022-02-06T09:55:12.000Z | #include<bits/stdc++.h>
using namespace std;
#define sa(x) scanf("%d",&x)
const int maxn = 1005;
struct node{
int pri;
int id;
bool operator < (const node a) const {
if(pri == a.pri)return id>a.id;
return pri<a.pri;
}
}g;
int main(){
string a;
int n;
while(cin>>n){
i... | 19.116279 | 50 | 0.375912 | xiaohuihuigh |
897970954c73f23ff6cf5eda1abbf808f5415d5b | 7,409 | hpp | C++ | src/operator/perturbedst2eoperator.hpp | susilehtola/aquarius | 9160e73bd7e3e0d8d97b10d00d9a4860aee709d2 | [
"BSD-3-Clause"
] | 18 | 2015-02-11T15:02:39.000Z | 2021-09-24T13:10:12.000Z | src/operator/perturbedst2eoperator.hpp | susilehtola/aquarius | 9160e73bd7e3e0d8d97b10d00d9a4860aee709d2 | [
"BSD-3-Clause"
] | 21 | 2015-06-23T13:32:29.000Z | 2022-02-15T20:14:42.000Z | src/operator/perturbedst2eoperator.hpp | susilehtola/aquarius | 9160e73bd7e3e0d8d97b10d00d9a4860aee709d2 | [
"BSD-3-Clause"
] | 8 | 2016-01-09T23:36:21.000Z | 2019-11-19T14:22:34.000Z | #ifndef _AQUARIUS_OPERATOR_PERTURBEDST2EOPERATOR_HPP_
#define _AQUARIUS_OPERATOR_PERTURBEDST2EOPERATOR_HPP_
#include "util/global.hpp"
#include "2eoperator.hpp"
#include "st2eoperator.hpp"
namespace aquarius
{
namespace op
{
/*
* _A -T A T _ A A T _ A
* Form X = e X e + [X, T ] = (X... | 43.582353 | 127 | 0.460791 | susilehtola |
897a1fa3ff51d806bdb4e52201d22d56e844ebfc | 22,050 | cc | C++ | elang/compiler/syntax/lexer.cc | eval1749/elang | 5208b386ba3a3e866a5c0f0271280f79f9aac8c4 | [
"Apache-2.0"
] | 1 | 2018-01-27T22:40:53.000Z | 2018-01-27T22:40:53.000Z | elang/compiler/syntax/lexer.cc | eval1749/elang | 5208b386ba3a3e866a5c0f0271280f79f9aac8c4 | [
"Apache-2.0"
] | 1 | 2016-01-29T00:54:49.000Z | 2016-01-29T00:54:49.000Z | elang/compiler/syntax/lexer.cc | eval1749/elang | 5208b386ba3a3e866a5c0f0271280f79f9aac8c4 | [
"Apache-2.0"
] | null | null | null | // Copyright 2014-2015 Project Vogue. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "elang/compiler/syntax/lexer.h"
#include <cmath>
#include <limits>
#include <string>
#include <vector>
#include "base/logging.h"
#include "base/s... | 28.341902 | 80 | 0.60585 | eval1749 |
897e903e3cd8d885a3599f107cb5c14b6bf1f674 | 3,803 | cpp | C++ | test/test_speed.cpp | barometz/ringbuf | 96b49b86d88969a46df56485cfa2d005bd524d9f | [
"MIT"
] | 15 | 2021-12-12T16:58:13.000Z | 2022-03-25T09:22:06.000Z | test/test_speed.cpp | barometz/ringbuf | 96b49b86d88969a46df56485cfa2d005bd524d9f | [
"MIT"
] | null | null | null | test/test_speed.cpp | barometz/ringbuf | 96b49b86d88969a46df56485cfa2d005bd524d9f | [
"MIT"
] | 1 | 2021-12-19T02:03:04.000Z | 2021-12-19T02:03:04.000Z | #include "baudvine/deque_ringbuf.h"
#include "baudvine/ringbuf.h"
#include <gtest/gtest.h>
#include <chrono>
// Speed comparison between deque and standard. Standard should generally be at
// least as fast as deque, but in practice we're not the only process so there's
// going to be some noise.
namespace std {
name... | 27.963235 | 80 | 0.645543 | barometz |
897f32006cf2ae2432b186da04d9755ca44448ab | 6,583 | cc | C++ | src/external_library/libgp/src/cg.cc | ecbaum/ugpm | 3ab6ff2dbc59642e0e9739f5f4647a906f19e333 | [
"MIT"
] | 89 | 2015-02-28T12:20:07.000Z | 2022-02-01T17:15:57.000Z | src/cg.cc | Bellout/libgp | f2bcfe7b5b6f02444ef98caf822717662c13fc88 | [
"BSD-3-Clause"
] | 212 | 2018-09-21T10:44:07.000Z | 2022-03-22T14:33:05.000Z | src/cg.cc | Bellout/libgp | f2bcfe7b5b6f02444ef98caf822717662c13fc88 | [
"BSD-3-Clause"
] | 58 | 2015-03-08T09:22:01.000Z | 2021-12-14T10:12:31.000Z | /*
* cg.cpp
*
* Created on: Feb 22, 2013
* Author: Joao Cunha <joao.cunha@ua.pt>
*/
#include "cg.h"
#include <iostream>
#include <Eigen/Core>
using namespace std;
namespace libgp
{
CG::CG()
{
}
CG::~CG()
{
}
void CG::maximize(GaussianProcess* gp, size_t n, bool verbose)
{
const double INT = 0.1; // ... | 27.776371 | 104 | 0.581346 | ecbaum |
8982d7c06dcd2f60a1505fc2864abd29f58310be | 6,511 | hpp | C++ | 3rdparty/stlsoft/include/acestl/memory/message_block_functions.hpp | wohaaitinciu/zpublic | 0e4896b16e774d2f87e1fa80f1b9c5650b85c57e | [
"Unlicense"
] | 50 | 2015-01-07T01:54:54.000Z | 2021-01-15T00:41:48.000Z | 3rdparty/stlsoft/include/acestl/memory/message_block_functions.hpp | lib1256/zpublic | 64c2be9ef1abab878288680bb58122dcc25df81d | [
"Unlicense"
] | 2 | 2016-01-08T19:32:57.000Z | 2019-10-11T03:50:34.000Z | 3rdparty/stlsoft/include/acestl/memory/message_block_functions.hpp | lib1256/zpublic | 64c2be9ef1abab878288680bb58122dcc25df81d | [
"Unlicense"
] | 39 | 2015-01-07T02:03:15.000Z | 2021-01-15T00:41:50.000Z | /* /////////////////////////////////////////////////////////////////////////
* File: acestl/memory/message_block_functions.hpp
*
* Purpose: Helper functions for ACE_Message_Block (and ACE_Data_Block) classes.
*
* Created: 23rd September 2004
* Updated: 10th August 2009
*
* Home: http:/... | 33.735751 | 84 | 0.664107 | wohaaitinciu |
89830906549049ec94bd68b5850cbaa453031e56 | 2,782 | cpp | C++ | src/Fantasma.cpp | rickylh/Medieval-Game | 2e818ab09cdd6158b59133c56cfca8e31d1f8f3a | [
"MIT"
] | null | null | null | src/Fantasma.cpp | rickylh/Medieval-Game | 2e818ab09cdd6158b59133c56cfca8e31d1f8f3a | [
"MIT"
] | null | null | null | src/Fantasma.cpp | rickylh/Medieval-Game | 2e818ab09cdd6158b59133c56cfca8e31d1f8f3a | [
"MIT"
] | null | null | null | #include "Fantasma.hpp"
#include "Fase.hpp"
const float Fantasma::TEMPO_FANTASMA (0.2f);
Fantasma::Fantasma(sf::Vector2f posicao)
: Inimigo(2.0f, false, false)
, caveira_de_fogo(1, 2,
sf::Vector2f(10.0f,10.0f), this)
, _tempo_ataque (0.0f)
{
setIdTipoObjeto(Codigos::FANTASMA);
setPosicao(po... | 28.387755 | 94 | 0.668584 | rickylh |
898400f485fa53dc1690a4de3cf759bc7b9292f9 | 704 | hpp | C++ | state/state.hpp | B777B2056/Design-Pattern-Cpp | cb2cb72d745cc7b529ef5957dc787b7094001165 | [
"MIT"
] | null | null | null | state/state.hpp | B777B2056/Design-Pattern-Cpp | cb2cb72d745cc7b529ef5957dc787b7094001165 | [
"MIT"
] | null | null | null | state/state.hpp | B777B2056/Design-Pattern-Cpp | cb2cb72d745cc7b529ef5957dc787b7094001165 | [
"MIT"
] | null | null | null | #ifndef STATE
#define STATE
#include <string>
#include <memory>
#include <iostream>
class context;
class state {
public:
virtual ~state() {}
virtual void handle(context& c) = 0;
};
class concrete_state_A : public state {
private:
std::string _inner_state;
public:
concrete_state_A();
virtual v... | 13.538462 | 45 | 0.691761 | B777B2056 |
8985ea1530bd6c49cbf6bc9acdb1f0b71aba2087 | 3,039 | cpp | C++ | src/order_book/order_book.cpp | YileZheng/hft-system | 9294d751a6906f42c6c2ebc4f180a1415c6ff12f | [
"MIT"
] | 1 | 2022-03-03T16:15:01.000Z | 2022-03-03T16:15:01.000Z | src/order_book/order_book.cpp | YileZheng/hft-system | 9294d751a6906f42c6c2ebc4f180a1415c6ff12f | [
"MIT"
] | null | null | null | src/order_book/order_book.cpp | YileZheng/hft-system | 9294d751a6906f42c6c2ebc4f180a1415c6ff12f | [
"MIT"
] | 1 | 2022-03-08T00:27:51.000Z | 2022-03-08T00:27:51.000Z | #include "order_book.hpp"
// make sure there should up to only one empty slot each time execute this function
void table_refresh(
int ystart,
int xstart,
price_lookup price_table[LEVELS*STOCKS][2]
){
bool last_empty = False;
price_lookup slot;
for (int i=0; i < LEVELS; i++){
slot = price_table[ystart+i][xstart... | 23.55814 | 115 | 0.71438 | YileZheng |
898864ee7acfbd5a1d4a0d68fccc6563d09be1c4 | 10,227 | cc | C++ | build/x86/cpu/o3/O3CPU.py.cc | billionshang/gem5 | 18cc4294f32315595f865d07d1f33434e92b06b2 | [
"BSD-3-Clause"
] | null | null | null | build/x86/cpu/o3/O3CPU.py.cc | billionshang/gem5 | 18cc4294f32315595f865d07d1f33434e92b06b2 | [
"BSD-3-Clause"
] | null | null | null | build/x86/cpu/o3/O3CPU.py.cc | billionshang/gem5 | 18cc4294f32315595f865d07d1f33434e92b06b2 | [
"BSD-3-Clause"
] | null | null | null | #include "sim/init.hh"
namespace {
const uint8_t data_m5_objects_O3CPU[] = {
120,156,181,152,91,87,27,57,18,128,101,67,204,37,36,16,
8,201,228,222,185,59,23,226,92,38,153,36,147,153,9,24,
72,60,67,128,180,205,230,44,47,62,237,150,140,5,237,110,
167,213,77,96,207,236,83,246,109,31,118,30,246,23,236,47,... | 57.455056 | 74 | 0.661093 | billionshang |
89897161239b2d66e3f45b0c4ab86ed976fa6811 | 14,514 | cpp | C++ | Source/Server/CritterManager.cpp | Marsel24/fonline | 83c10c315ea6f2c5ce6a83a608f287d9c619fa9d | [
"MIT"
] | null | null | null | Source/Server/CritterManager.cpp | Marsel24/fonline | 83c10c315ea6f2c5ce6a83a608f287d9c619fa9d | [
"MIT"
] | null | null | null | Source/Server/CritterManager.cpp | Marsel24/fonline | 83c10c315ea6f2c5ce6a83a608f287d9c619fa9d | [
"MIT"
] | null | null | null | // __________ ___ ______ _
// / ____/ __ \____ / (_)___ ___ / ____/___ ____ _(_)___ ___
// / /_ / / / / __ \/ / / __ \/ _ \ / __/ / __ \/ __ `/ / __ \/ _ \
// / __/ / /_/ / / / / / / / / / __/ / /___/ / / / /_/ / / / / / __/
// /_/ \____/_/ /_/_/_/_/ /... | 28.854871 | 119 | 0.579096 | Marsel24 |
898997678197f9d0d9bcaa468b0dc51d11207bb2 | 488 | cpp | C++ | 70. Climbing Stairs/Solution.cpp | Ainevsia/Leetcode-Rust | c4f16d72f3c0d0524478b6bb90fefae9607d88be | [
"BSD-2-Clause"
] | 15 | 2020-02-07T13:04:05.000Z | 2022-03-02T14:33:21.000Z | 70. Climbing Stairs/Solution.cpp | Ainevsia/Leetcode-Rust | c4f16d72f3c0d0524478b6bb90fefae9607d88be | [
"BSD-2-Clause"
] | null | null | null | 70. Climbing Stairs/Solution.cpp | Ainevsia/Leetcode-Rust | c4f16d72f3c0d0524478b6bb90fefae9607d88be | [
"BSD-2-Clause"
] | 3 | 2020-04-02T15:36:57.000Z | 2021-09-14T14:13:44.000Z | #include <string>
#include <vector>
#include <iostream>
#include <sstream>
#include <algorithm>
#include <tuple>
#include <deque>
#include <unordered_map>
#include <cmath>
using namespace std;
class Solution {
public:
int climbStairs(int n) {
vector <int> fib (n+1, 1);
for (int i=2; i<=n;i++) {
... | 16.266667 | 41 | 0.55123 | Ainevsia |
898bb679898fbf805691c6ef80e2e18838310e47 | 16,956 | cc | C++ | src/kafka2hdfs/log_format_impl.cc | Lanceolata/log2hdfs | 1ea1b572567dbe1e65f4134849b1970f21baf741 | [
"MIT"
] | null | null | null | src/kafka2hdfs/log_format_impl.cc | Lanceolata/log2hdfs | 1ea1b572567dbe1e65f4134849b1970f21baf741 | [
"MIT"
] | null | null | null | src/kafka2hdfs/log_format_impl.cc | Lanceolata/log2hdfs | 1ea1b572567dbe1e65f4134849b1970f21baf741 | [
"MIT"
] | null | null | null | // Copyright (c) 2017 Lanceolata
#include "kafka2hdfs/log_format_impl.h"
#include <string.h>
#include "util/system_utils.h"
namespace log2hdfs {
namespace {
bool ExtractString(const char* begin, const char* end,
const char delimeter, int num,
const char** rbegin, const char** r... | 23.006784 | 76 | 0.579146 | Lanceolata |
898e34a3888c430d0f9a4123290f8c31ad0298ba | 203 | cpp | C++ | Homework/GraphingCalculator/GraphingCalculator/src/main.cpp | benjaminmao123/PCC_CS003A | 0339d83ebab7536952644517a99dc46702035b2b | [
"MIT"
] | null | null | null | Homework/GraphingCalculator/GraphingCalculator/src/main.cpp | benjaminmao123/PCC_CS003A | 0339d83ebab7536952644517a99dc46702035b2b | [
"MIT"
] | null | null | null | Homework/GraphingCalculator/GraphingCalculator/src/main.cpp | benjaminmao123/PCC_CS003A | 0339d83ebab7536952644517a99dc46702035b2b | [
"MIT"
] | null | null | null | /*
* Author: Benjamin Mao
* Project: Predator/Prey
* Purpose: Entry point to the Grid class.
*
* Notes: None.
*/
#include "Animate.h"
int main()
{
Animate game;
game.Run();
return 0;
}
| 11.277778 | 42 | 0.605911 | benjaminmao123 |
898fda707ddac8972c1123a3f335cb80ad071a51 | 1,721 | hpp | C++ | includes/avl.hpp | viniciusmalloc/planarity | 88d3f2998c6095d812614827517d26b505820dc5 | [
"MIT"
] | null | null | null | includes/avl.hpp | viniciusmalloc/planarity | 88d3f2998c6095d812614827517d26b505820dc5 | [
"MIT"
] | null | null | null | includes/avl.hpp | viniciusmalloc/planarity | 88d3f2998c6095d812614827517d26b505820dc5 | [
"MIT"
] | null | null | null | struct node {
int key;
unsigned char height;
node* left;
node* right;
node(int k) {
key = k; left = right = 0; height = 1;
}
};
unsigned char height(node* p)
{
return p ? p->height : 0;
}
int b_factor(node* p)
{
return height(p->right) - height(p->left);
}
void fix_height(node... | 19.337079 | 54 | 0.542708 | viniciusmalloc |
899bd53962ea646c9babfee418df07267d68983b | 4,397 | cpp | C++ | projs/sphere_reflect/src/app.cpp | colintan95/gl_projects | ad9bcdeaaa65474f45968b26a9a565cbe34af68e | [
"MIT"
] | null | null | null | projs/sphere_reflect/src/app.cpp | colintan95/gl_projects | ad9bcdeaaa65474f45968b26a9a565cbe34af68e | [
"MIT"
] | null | null | null | projs/sphere_reflect/src/app.cpp | colintan95/gl_projects | ad9bcdeaaa65474f45968b26a9a565cbe34af68e | [
"MIT"
] | null | null | null | #include "app.h"
#include <iostream>
#include <cstdlib>
#include <random>
#include <glm/glm.hpp>
#include <glm/gtc/matrix_transform.hpp>
#include <glm/gtc/type_ptr.hpp>
#include <glm/gtx/string_cast.hpp>
#include "gfx_utils/primitives.h"
//
// Significant portion of implementation adapted from: LearnOpenGL
// htt... | 26.810976 | 80 | 0.654992 | colintan95 |
899c0b78a6e02e4b8fb767c9b055e1c7303c4706 | 1,702 | cpp | C++ | src/Look.cpp | FellowRoboticists/myRobotScan | f87c73937d1a26a273479c6747bd7d4731bf31e3 | [
"MIT"
] | null | null | null | src/Look.cpp | FellowRoboticists/myRobotScan | f87c73937d1a26a273479c6747bd7d4731bf31e3 | [
"MIT"
] | null | null | null | src/Look.cpp | FellowRoboticists/myRobotScan | f87c73937d1a26a273479c6747bd7d4731bf31e3 | [
"MIT"
] | null | null | null | // Look Arduino library
//
// Copyright 2013 Dave Sieh
// See LICENSE.txt for details.
#include <Arduino.h>
#include "Look.h"
#include "SoftServo.h"
#include "IrSensors.h"
#include "PingSensor.h"
#include "pspc_support.h"
Look::Look(SoftServo *sweepServo, IrSensors *sensors, PingSensor *pingSensor) {
servo = sweepS... | 22.394737 | 82 | 0.672738 | FellowRoboticists |
89a64aaf723287c92770b3b3227e323d7298bea2 | 1,483 | cpp | C++ | 03-Ejemplo basico de Qt/main.cpp | vialrogo/TutorialCPP | f0b44dcc0f58eb54ce5d48a069923f5963eb545f | [
"CC0-1.0"
] | null | null | null | 03-Ejemplo basico de Qt/main.cpp | vialrogo/TutorialCPP | f0b44dcc0f58eb54ce5d48a069923f5963eb545f | [
"CC0-1.0"
] | null | null | null | 03-Ejemplo basico de Qt/main.cpp | vialrogo/TutorialCPP | f0b44dcc0f58eb54ce5d48a069923f5963eb545f | [
"CC0-1.0"
] | null | null | null | /*
+---------------------------------------+
| Ejemplos-Tutorial C++ con Qt |
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
| Creado por: Victor Alberto Romero |
| e-mail: vialrogo@gmail.com |
+---------------------------------------+
Archivo main de ejemplo de qt básico
En esta clase podemos ver como usamos la ... | 26.482143 | 119 | 0.664194 | vialrogo |
89a6ad9f44e2b3661a8cbab41b0e722e79153c56 | 842 | cpp | C++ | code_blocks/check_fft/main.cpp | rafald/xtechnical_analysis | 7686c16241e9e53fb5a5548354531b533f983b54 | [
"MIT"
] | 12 | 2020-01-20T14:22:18.000Z | 2022-01-26T04:41:36.000Z | code_blocks/check_fft/main.cpp | rafald/xtechnical_analysis | 7686c16241e9e53fb5a5548354531b533f983b54 | [
"MIT"
] | 1 | 2020-05-23T07:35:03.000Z | 2020-05-23T07:35:03.000Z | code_blocks/check_fft/main.cpp | rafald/xtechnical_analysis | 7686c16241e9e53fb5a5548354531b533f983b54 | [
"MIT"
] | 9 | 2019-11-02T19:01:55.000Z | 2021-07-08T21:51:44.000Z | #include <iostream>
#include "xtechnical_indicators.hpp"
using namespace std;
int main() {
cout << "Hello world!" << endl;
xtechnical_indicators::FreqHist<double>
iFreqHist(100, xtechnical_dft::RECTANGULAR_WINDOW);
const double MATH_PI = 3.14159265358979323846264338327950288;
for(size_t i = 0;... | 31.185185 | 87 | 0.58076 | rafald |
89a93f9d49fa304f09791a1595ca12b48e44ebdc | 1,952 | cpp | C++ | src/Gen/Builders/DoLoopBuilder.cpp | albeva/LightBASIC | 489bcc81bed268798874d6675054e594ffc8eb07 | [
"MIT"
] | 6 | 2021-05-24T15:43:58.000Z | 2022-03-21T12:50:05.000Z | src/Gen/Builders/DoLoopBuilder.cpp | albeva/LightBASIC | 489bcc81bed268798874d6675054e594ffc8eb07 | [
"MIT"
] | 15 | 2022-02-23T23:24:36.000Z | 2022-03-05T13:44:27.000Z | src/Gen/Builders/DoLoopBuilder.cpp | albeva/LightBASIC | 489bcc81bed268798874d6675054e594ffc8eb07 | [
"MIT"
] | 1 | 2017-04-13T13:13:29.000Z | 2017-04-13T13:13:29.000Z | //
// Created by Albert Varaksin on 28/05/2021.
//
#include "DoLoopBuilder.hpp"
#include "Driver/Context.hpp"
using namespace lbc;
using namespace Gen;
DoLoopBuilder::DoLoopBuilder(CodeGen& gen, AstDoLoopStmt& ast)
: Builder{ gen, ast },
m_bodyBlock{ llvm::BasicBlock::Create(m_llvmContext, "do_loop.body") },
m_con... | 27.492958 | 93 | 0.659324 | albeva |
89abb05926deed25d1ff77e99d404144658e1642 | 9,666 | cpp | C++ | spa/plugins/aec/aec-webrtc.cpp | neonkingfr/pipewire | 43fec3ee3bc8bd07b67e56279f1b437e05461449 | [
"MIT"
] | null | null | null | spa/plugins/aec/aec-webrtc.cpp | neonkingfr/pipewire | 43fec3ee3bc8bd07b67e56279f1b437e05461449 | [
"MIT"
] | null | null | null | spa/plugins/aec/aec-webrtc.cpp | neonkingfr/pipewire | 43fec3ee3bc8bd07b67e56279f1b437e05461449 | [
"MIT"
] | null | null | null | /* PipeWire
*
* Copyright © 2021 Wim Taymans <wim.taymans@gmail.com>
* © 2021 Arun Raghavan <arun@asymptotic.io>
*
* 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 res... | 34.645161 | 108 | 0.747155 | neonkingfr |
89af705ee09cb1cb533cbad81ee8eaa74e2c01a7 | 413 | hpp | C++ | header/Connector.hpp | Sdc97/Rshell | 37c0dd264799d199e6c0dc1f13ae1e25f9368620 | [
"MIT"
] | 1 | 2020-06-28T20:40:57.000Z | 2020-06-28T20:40:57.000Z | header/Connector.hpp | Sdc97/Rshell | 37c0dd264799d199e6c0dc1f13ae1e25f9368620 | [
"MIT"
] | null | null | null | header/Connector.hpp | Sdc97/Rshell | 37c0dd264799d199e6c0dc1f13ae1e25f9368620 | [
"MIT"
] | 1 | 2021-04-02T21:47:58.000Z | 2021-04-02T21:47:58.000Z | #ifndef CONNECTOR
#define CONNECTOR
#include "Executable.hpp"
#include "Cmnd.hpp"
class Connector : public Executable {
protected:
Executable* left;
Executable* right;
public:
virtual bool run_command() =0;
virtual char** get_command() {}
virtual void set_left(Executable*) =0;
virtual void set_right(Executabl... | 18.772727 | 40 | 0.731235 | Sdc97 |
89af7544e15c04b34f0c1e40b22d5ca5ef17f78e | 1,953 | cpp | C++ | src/display/display.cpp | passinglink/passinglink | d1bc70cc8bf2c32a9dfea412fc37a44c6dbf09c1 | [
"MIT"
] | 76 | 2020-03-09T20:30:59.000Z | 2022-03-29T13:39:47.000Z | src/display/display.cpp | Project-Alpaca/passinglink | f259466d2e8aafca6c8511df3b1259156954e907 | [
"MIT"
] | 24 | 2020-08-08T23:07:12.000Z | 2022-03-31T20:38:07.000Z | src/display/display.cpp | Project-Alpaca/passinglink | f259466d2e8aafca6c8511df3b1259156954e907 | [
"MIT"
] | 18 | 2020-07-31T01:23:44.000Z | 2022-03-23T01:14:45.000Z | #include "display/display.h"
#include <stdio.h>
#include "arch.h"
#include "display/menu.h"
#include "display/ssd1306.h"
#include "types.h"
#include "util.h"
#include <logging/log.h>
#define LOG_LEVEL LOG_LEVEL_INF
LOG_MODULE_REGISTER(display);
static bool status_locked;
static bool status_probing;
static optional<... | 19.53 | 64 | 0.664107 | passinglink |
89b1e599fb58b3c8a56de15849e4ac017124cd1b | 673 | cpp | C++ | src/common/transformations/src/transformations/rt_info/decompression.cpp | ryanloney/openvino-1 | 4e0a740eb3ee31062ba0df88fcf438564f67edb7 | [
"Apache-2.0"
] | 1,127 | 2018-10-15T14:36:58.000Z | 2020-04-20T09:29:44.000Z | src/common/transformations/src/transformations/rt_info/decompression.cpp | ryanloney/openvino-1 | 4e0a740eb3ee31062ba0df88fcf438564f67edb7 | [
"Apache-2.0"
] | 439 | 2018-10-20T04:40:35.000Z | 2020-04-19T05:56:25.000Z | src/common/transformations/src/transformations/rt_info/decompression.cpp | ryanloney/openvino-1 | 4e0a740eb3ee31062ba0df88fcf438564f67edb7 | [
"Apache-2.0"
] | 414 | 2018-10-17T05:53:46.000Z | 2020-04-16T17:29:53.000Z | // Copyright (C) 2018-2022 Intel Corporation
// SPDX-License-Identifier: Apache-2.0
//
#include "transformations/rt_info/decompression.hpp"
void ov::mark_as_decompression(const std::shared_ptr<Node>& node) {
auto& rt_info = node->get_rt_info();
rt_info[Decompression::get_type_info_static()] = Decompression();... | 32.047619 | 69 | 0.736999 | ryanloney |
89b26cad6b4973354e3a987f86dc420785c82d81 | 5,375 | hpp | C++ | src/libpanacea/kernels/median_kernel_wrapper.hpp | lanl/PANACEA | 9779bdb6dcc3be41ea7b286ae55a21bb269e0339 | [
"BSD-3-Clause"
] | null | null | null | src/libpanacea/kernels/median_kernel_wrapper.hpp | lanl/PANACEA | 9779bdb6dcc3be41ea7b286ae55a21bb269e0339 | [
"BSD-3-Clause"
] | null | null | null | src/libpanacea/kernels/median_kernel_wrapper.hpp | lanl/PANACEA | 9779bdb6dcc3be41ea7b286ae55a21bb269e0339 | [
"BSD-3-Clause"
] | null | null | null |
#ifndef PANACEA_PRIVATE_MEDIANKERNELWRAPPER_H
#define PANACEA_PRIVATE_MEDIANKERNELWRAPPER_H
#pragma once
// Local private PANACEA includes
#include "base_kernel_wrapper.hpp"
#include "data_point_template.hpp"
#include "error.hpp"
// Local public PANACEA includes
#include "panacea/passkey.hpp"
// Standard includes
... | 35.130719 | 80 | 0.71107 | lanl |
89b786614913a2a02561549873a2de4534c62c9d | 10,368 | cpp | C++ | src/D3dsurf.cpp | rbwsok/3dfx-OpenGL-ICD-update | 4e0846d6569bf5d7ec8b22918f33fc7701df6e73 | [
"Unlicense"
] | null | null | null | src/D3dsurf.cpp | rbwsok/3dfx-OpenGL-ICD-update | 4e0846d6569bf5d7ec8b22918f33fc7701df6e73 | [
"Unlicense"
] | null | null | null | src/D3dsurf.cpp | rbwsok/3dfx-OpenGL-ICD-update | 4e0846d6569bf5d7ec8b22918f33fc7701df6e73 | [
"Unlicense"
] | null | null | null | //
// d3dsurf.cpp : You *really* don't want to know
//
#include "stdafx.h"
#define INITGUID
#include <Guiddef.h>
// {1F2069EB-6D07-4f75-9409-AFEABA279E6A}
//DEFINE_GUID(IID_IGXP_D3DSurface8,
//0x1f2069eb, 0x6d07, 0x4f75, 0x94, 0x9, 0xaf, 0xea, 0xba, 0x27, 0x9e, 0x6a);
#define PRINTF while(0) printf
#define IS_2_P... | 21.6 | 151 | 0.66088 | rbwsok |
89b8c660bb355f90968b76344c6b893124347574 | 2,301 | cpp | C++ | src/omwmm/modmanager.cpp | luluco250/omwmm | ee9cd11e4876515c84ad4f2c97372ba23616ac2b | [
"MIT"
] | null | null | null | src/omwmm/modmanager.cpp | luluco250/omwmm | ee9cd11e4876515c84ad4f2c97372ba23616ac2b | [
"MIT"
] | null | null | null | src/omwmm/modmanager.cpp | luluco250/omwmm | ee9cd11e4876515c84ad4f2c97372ba23616ac2b | [
"MIT"
] | null | null | null | #include <omwmm/modmanager.hpp>
#include <filesystem>
#include <utility>
#include <functional>
#include <unordered_set>
#include <string>
#include <string_view>
#include <omwmm/config.hpp>
#include <omwmm/exceptions.hpp>
#include <7zpp/7zpp.h>
using Path = std::filesystem::path;
using DirectoryIterator = std::files... | 26.755814 | 79 | 0.734463 | luluco250 |
89bb3ef38d4be053ae48489bb26769638fa3bb0d | 641 | hpp | C++ | src/Mechanics/ForceField/Branching/BranchingDihedralQuadratic.hpp | allen-cell-animated/medyan | 0b5ef64fb338c3961673361e5632980617937ee6 | [
"BSD-4-Clause-UC"
] | null | null | null | src/Mechanics/ForceField/Branching/BranchingDihedralQuadratic.hpp | allen-cell-animated/medyan | 0b5ef64fb338c3961673361e5632980617937ee6 | [
"BSD-4-Clause-UC"
] | null | null | null | src/Mechanics/ForceField/Branching/BranchingDihedralQuadratic.hpp | allen-cell-animated/medyan | 0b5ef64fb338c3961673361e5632980617937ee6 | [
"BSD-4-Clause-UC"
] | null | null | null | #ifndef MEDYAN_Mechanics_ForceField_Branching_BranchingDihedralQuadratic_Hpp
#define MEDYAN_Mechanics_ForceField_Branching_BranchingDihedralQuadratic_Hpp
#include "common.h" // floatingpoint
struct BranchingDihedralQuadratic {
floatingpoint energy(
const floatingpoint *coord, size_t nint,
const un... | 32.05 | 89 | 0.76131 | allen-cell-animated |
89bc5aecef0da213a33adbe7fcd3462897651c6d | 10,443 | cpp | C++ | src/libtsduck/dtv/descriptors/tsEventGroupDescriptor.cpp | manuelmann/tsduck-test | 13760d34bd6f522c2ff813a996371a7cb30e1835 | [
"BSD-2-Clause"
] | null | null | null | src/libtsduck/dtv/descriptors/tsEventGroupDescriptor.cpp | manuelmann/tsduck-test | 13760d34bd6f522c2ff813a996371a7cb30e1835 | [
"BSD-2-Clause"
] | null | null | null | src/libtsduck/dtv/descriptors/tsEventGroupDescriptor.cpp | manuelmann/tsduck-test | 13760d34bd6f522c2ff813a996371a7cb30e1835 | [
"BSD-2-Clause"
] | null | null | null | //----------------------------------------------------------------------------
//
// 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... | 39.259398 | 145 | 0.551566 | manuelmann |
89c30d095e454b52779a31d7e31efe1f00ba13c0 | 3,746 | cc | C++ | storageServer/saveFile_2/src/Loop.cc | HenryKing96/MiniDistributedStorage | 7da8b7fb72baca4a04cfde9ce27eec3bb207e056 | [
"Apache-2.0"
] | null | null | null | storageServer/saveFile_2/src/Loop.cc | HenryKing96/MiniDistributedStorage | 7da8b7fb72baca4a04cfde9ce27eec3bb207e056 | [
"Apache-2.0"
] | null | null | null | storageServer/saveFile_2/src/Loop.cc | HenryKing96/MiniDistributedStorage | 7da8b7fb72baca4a04cfde9ce27eec3bb207e056 | [
"Apache-2.0"
] | null | null | null | #include "Loop.h"
#include "EpollEvent.h"
#include "EPoller.h"
#include <boost/bind.hpp>
#include <iostream>
#include <assert.h>
#include <signal.h>
#include <sys/eventfd.h>
using namespace Reactor;
Loop* t_loopInThisThread = 0;
const int kPollTimeMs = 10000;
static int createEventfd()
{
return ::eventfd(0, EFD_N... | 27.955224 | 1,532 | 0.381474 | HenryKing96 |
89c37b76a49283607c174aa28f43ff946d88690b | 5,710 | cpp | C++ | test_gcc/test.cpp | KnicKnic/native-powershell | add37eff76c47fc0e782c22a8460bff3f3327dca | [
"Apache-2.0"
] | 21 | 2019-06-27T06:29:11.000Z | 2021-12-29T05:08:37.000Z | test_gcc/test.cpp | KnicKnic/native-powershell | add37eff76c47fc0e782c22a8460bff3f3327dca | [
"Apache-2.0"
] | 5 | 2019-08-17T01:34:11.000Z | 2019-11-06T21:52:15.000Z | test_gcc/test.cpp | KnicKnic/native-powershell | add37eff76c47fc0e782c22a8460bff3f3327dca | [
"Apache-2.0"
] | 1 | 2021-03-13T20:58:48.000Z | 2021-03-13T20:58:48.000Z | // test.cpp : This file contains the 'main' function. Program execution begins and ends there.
//
#include <iostream>
#include <algorithm>
#include <vector>
#include "host.h"
#include "utils/macros.hpp"
#include "utils/zero_resetable.hpp"
#include "utils/cpp_wrappers.hpp"
using namespace std;
using namespace native_p... | 41.376812 | 171 | 0.670228 | KnicKnic |
89c4f250960e689e775d7455b8916b7e1d65acdf | 14 | inl | C++ | modules/aho/inl/ja_regex/lexrep/OneStateMap.inl | JosDenysGitHub/iknow | e6a142253513ad4365d7998e36c569d4174e8248 | [
"MIT"
] | 49 | 2020-02-05T15:54:24.000Z | 2022-03-03T20:10:39.000Z | modules/aho/inl/ja_regex/lexrep/OneStateMap.inl | makorin0315/iknow | 3043030d2ac83b8719471bacaabd204ebdf94be6 | [
"MIT"
] | 84 | 2020-02-06T13:09:16.000Z | 2022-03-22T19:36:00.000Z | modules/aho/inl/ja_regex/lexrep/OneStateMap.inl | makorin0315/iknow | 3043030d2ac83b8719471bacaabd204ebdf94be6 | [
"MIT"
] | 20 | 2020-02-04T21:38:57.000Z | 2022-02-23T20:30:13.000Z | 0,
0,Symbol()
| 4.666667 | 10 | 0.571429 | JosDenysGitHub |
89c562a87b5acce423f54442a803bd258039f8f2 | 1,036 | hpp | C++ | codegen.hpp | kwQt/dummyscope | 160010342e87fb1578f707b97812af9d34814d76 | [
"MIT"
] | 1 | 2020-07-17T05:17:07.000Z | 2020-07-17T05:17:07.000Z | codegen.hpp | kwQt/dummyscope | 160010342e87fb1578f707b97812af9d34814d76 | [
"MIT"
] | null | null | null | codegen.hpp | kwQt/dummyscope | 160010342e87fb1578f707b97812af9d34814d76 | [
"MIT"
] | null | null | null | #pragma once
#include <llvm/IR/IRBuilder.h>
#include <llvm/IR/LLVMContext.h>
#include <llvm/IR/Module.h>
#include <llvm/IR/Value.h>
#include <memory>
#include "ast.hpp"
class ExprAST;
class CodeGen {
private:
std::unique_ptr<llvm::LLVMContext> context;
std::unique_ptr<llvm::Module> module;
std::unique_ptr<ll... | 21.142857 | 66 | 0.718147 | kwQt |
89c668a24249d00c648bf3d9099505d397572bf2 | 484 | cpp | C++ | Sesame/src/Sesame/Core/Log.cpp | yook00627/Sesame-Engine | 1adf6227afcfc582697203cb9ccf0e2d56c9d5eb | [
"MIT"
] | 3 | 2020-06-06T23:07:55.000Z | 2020-07-31T17:13:29.000Z | Sesame/src/Sesame/Core/Log.cpp | yook00627/Sesame-Engine | 1adf6227afcfc582697203cb9ccf0e2d56c9d5eb | [
"MIT"
] | 1 | 2020-08-09T17:43:03.000Z | 2021-03-25T02:22:23.000Z | Sesame/src/Sesame/Core/Log.cpp | yook00627/Sesame-Engine | 1adf6227afcfc582697203cb9ccf0e2d56c9d5eb | [
"MIT"
] | null | null | null | #include "ssmpch.h"
#include "Log.h"
namespace Sesame {
std::shared_ptr<spdlog::logger> Log::s_CoreLogger;
std::shared_ptr<spdlog::logger> Log::s_ClientLogger;
void Log::Init()
{
spdlog::set_pattern("%t-%^[%T] %n: %v%$");
s_CoreLogger = spdlog::stdout_color_mt("SESAME");
s_Cor... | 26.888889 | 57 | 0.634298 | yook00627 |
89c7c9bdd0b58f4151ed3099002373f24e5497f8 | 4,337 | cpp | C++ | apps/Stencil2D_InPlace_ASYN_Tps/Stencil2DKernel.cpp | randres2011/DARTS | d3a0d28926b15796661783f91451dcd313905582 | [
"BSD-2-Clause"
] | 3 | 2020-02-21T01:34:36.000Z | 2021-11-13T06:24:40.000Z | apps/Stencil2D_InPlace_ASYN_Tps/Stencil2DKernel.cpp | randres2011/DARTS | d3a0d28926b15796661783f91451dcd313905582 | [
"BSD-2-Clause"
] | 1 | 2021-01-25T06:57:45.000Z | 2022-02-02T11:44:04.000Z | apps/Stencil2D_InPlace_ASYN_Tps/Stencil2DKernel.cpp | randres2011/DARTS | d3a0d28926b15796661783f91451dcd313905582 | [
"BSD-2-Clause"
] | 4 | 2016-12-12T05:46:58.000Z | 2022-01-01T16:08:56.000Z |
#include <stdint.h>
#include <stdlib.h>
#include "Stencil2DKernel.h"
/**
* Naive 4pt stencil for 2D array
*/
void stencil2d_seq(double *dst,double *src,const uint64_t n_rows,const uint64_t n_cols,uint64_t n_tsteps){
typedef double (*Array2D)[n_cols];
Array2D DST = (Array2D) dst,
SRC = (Array2D) src;
fo... | 31.889706 | 174 | 0.709477 | randres2011 |
89c9c38e01658b9f9f35f37518c62387db41fdf2 | 11,634 | cpp | C++ | src/QtComponents/Traditions/nComboBox.cpp | Vladimir-Lin/QtComponents | e7f0a6abcf0504cc9144dcf59f3f14a52d08092c | [
"MIT"
] | null | null | null | src/QtComponents/Traditions/nComboBox.cpp | Vladimir-Lin/QtComponents | e7f0a6abcf0504cc9144dcf59f3f14a52d08092c | [
"MIT"
] | null | null | null | src/QtComponents/Traditions/nComboBox.cpp | Vladimir-Lin/QtComponents | e7f0a6abcf0504cc9144dcf59f3f14a52d08092c | [
"MIT"
] | null | null | null | #include <qtcomponents.h>
N::ComboBox:: ComboBox ( QWidget * parent , Plan * p )
: QComboBox ( parent )
, VirtualGui ( this , p )
, Thread ( 0 , false )
{
WidgetClass ;
Configure ( ) ;
}
N::Combo... | 32.406685 | 80 | 0.381382 | Vladimir-Lin |
89cd26664f503d7a4c4d04bf69a6ccc3ecc4f4e5 | 10,555 | cc | C++ | GUI/Master/NotesWindow.cc | jwillemsen/sidecar | 941d9f3b84d05ca405df1444d4d9fd0bde03887f | [
"MIT"
] | null | null | null | GUI/Master/NotesWindow.cc | jwillemsen/sidecar | 941d9f3b84d05ca405df1444d4d9fd0bde03887f | [
"MIT"
] | null | null | null | GUI/Master/NotesWindow.cc | jwillemsen/sidecar | 941d9f3b84d05ca405df1444d4d9fd0bde03887f | [
"MIT"
] | null | null | null | #include "QtCore/QByteArray"
#include "QtCore/QDir"
#include "QtCore/QFile"
#include "QtCore/QSettings"
#include "QtGui/QCursor"
#include "QtGui/QTextDocument"
#include "QtWidgets/QApplication"
#include "QtWidgets/QMessageBox"
#include "GUI/LogUtils.h"
#include "App.h"
#include "NotesWindow.h"
#include "RadarSettings... | 29.48324 | 109 | 0.678351 | jwillemsen |
89ce426f74a24b73142fd46265afa8a66c571523 | 697 | cpp | C++ | 4 course/parallel_programming/lab12/lab12_4/main.cpp | SgAkErRu/labs | 9cf71e131513beb3c54ad3599f2a1e085bff6947 | [
"BSD-3-Clause"
] | null | null | null | 4 course/parallel_programming/lab12/lab12_4/main.cpp | SgAkErRu/labs | 9cf71e131513beb3c54ad3599f2a1e085bff6947 | [
"BSD-3-Clause"
] | null | null | null | 4 course/parallel_programming/lab12/lab12_4/main.cpp | SgAkErRu/labs | 9cf71e131513beb3c54ad3599f2a1e085bff6947 | [
"BSD-3-Clause"
] | null | null | null | // Программа с пользовательской обработкой сигнала SIGINT.
#include <signal.h>
#include <iostream>
using namespace std;
// Функция my_handler - пользовательский обработчик сигнала.
void my_handler(int nsig)
{
if (nsig == SIGINT)
{
cout << "Receive signal " << nsig << ", CTRL-C pressed" << endl;
... | 21.78125 | 94 | 0.64132 | SgAkErRu |
89cf4ebdef576fc7f831ef9da261df21c1dc87fc | 5,703 | cc | C++ | camera/features/hdrnet/tests/hdrnet_processor_impl_test.cc | Toromino/chromiumos-platform2 | 97e6ba18f0e5ab6723f3448a66f82c1a07538d87 | [
"BSD-3-Clause"
] | null | null | null | camera/features/hdrnet/tests/hdrnet_processor_impl_test.cc | Toromino/chromiumos-platform2 | 97e6ba18f0e5ab6723f3448a66f82c1a07538d87 | [
"BSD-3-Clause"
] | null | null | null | camera/features/hdrnet/tests/hdrnet_processor_impl_test.cc | Toromino/chromiumos-platform2 | 97e6ba18f0e5ab6723f3448a66f82c1a07538d87 | [
"BSD-3-Clause"
] | null | null | null | /*
* Copyright 2021 The Chromium OS Authors. All rights reserved.
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
#include <memory>
#include <string>
#include <base/at_exit.h>
#include <base/command_line.h>
#include <base/files/file_util.h>
#include <base/s... | 33.745562 | 79 | 0.682272 | Toromino |
89d190c4b043c886e75f81bca3cfbd3773c2488b | 3,867 | cpp | C++ | posix/subsystem/src/inotify.cpp | avdgrinten/managarm | 4c4478cbde21675ca31e65566f10e1846b268bd5 | [
"MIT"
] | 13 | 2017-02-13T23:29:44.000Z | 2021-09-30T05:41:21.000Z | posix/subsystem/src/inotify.cpp | avdgrinten/managarm | 4c4478cbde21675ca31e65566f10e1846b268bd5 | [
"MIT"
] | 12 | 2016-12-03T13:06:13.000Z | 2018-05-04T15:49:17.000Z | posix/subsystem/src/inotify.cpp | avdgrinten/managarm | 4c4478cbde21675ca31e65566f10e1846b268bd5 | [
"MIT"
] | 1 | 2021-12-01T19:01:53.000Z | 2021-12-01T19:01:53.000Z | #include <string.h>
#include <sys/epoll.h>
#include <sys/inotify.h>
#include <iostream>
#include <async/doorbell.hpp>
#include <helix/ipc.hpp>
#include "fs.hpp"
#include "inotify.hpp"
#include "process.hpp"
#include "vfs.hpp"
namespace inotify {
namespace {
struct OpenFile : File {
public:
struct Packet {
int de... | 27.041958 | 107 | 0.703905 | avdgrinten |
89d215bb4b949c5521664a49866c9d9546559c13 | 8,518 | cc | C++ | chrome/browser/chromeos/login/web_kiosk_controller_browsertest.cc | sarang-apps/darshan_browser | 173649bb8a7c656dc60784d19e7bb73e07c20daa | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | null | null | null | chrome/browser/chromeos/login/web_kiosk_controller_browsertest.cc | sarang-apps/darshan_browser | 173649bb8a7c656dc60784d19e7bb73e07c20daa | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | null | null | null | chrome/browser/chromeos/login/web_kiosk_controller_browsertest.cc | sarang-apps/darshan_browser | 173649bb8a7c656dc60784d19e7bb73e07c20daa | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | null | null | null | // Copyright 2019 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/chromeos/app_mode/web_app/mock_web_kiosk_app_launcher.h"
#include "chrome/browser/chromeos/login/session/user_session_manager.h"
... | 37.690265 | 89 | 0.767668 | sarang-apps |
89d71df45db0d567d681e5286bf650ef2dc12542 | 2,078 | cpp | C++ | Settings.cpp | mariosbikos/Augmented_Reality_Chess_Game_RGB-D | aa22b722a9f7b6f94891c6015166e39d1570c27c | [
"MIT"
] | 6 | 2016-05-29T01:10:33.000Z | 2019-12-04T13:34:05.000Z | Settings.cpp | mariosbikos/Augmented_Reality_Chess_Game_RGB-D | aa22b722a9f7b6f94891c6015166e39d1570c27c | [
"MIT"
] | null | null | null | Settings.cpp | mariosbikos/Augmented_Reality_Chess_Game_RGB-D | aa22b722a9f7b6f94891c6015166e39d1570c27c | [
"MIT"
] | 5 | 2015-11-22T14:36:29.000Z | 2021-03-31T06:52:21.000Z | #include "Settings.h"
void SetCameraParameters(std::string TheIntrinsicFile)
{
TheDistCameraParameters.readFromXMLFile(TheIntrinsicFile);
TheDistCameraParameters.resize(
cv::Size(constants::COLOR_WIDTH,constants::COLOR_HEIGHT) );
TheCameraParameters=TheDistCameraParameters;
//The cv::Mat Distortion of TheCame... | 42.408163 | 185 | 0.786814 | mariosbikos |
89d8347c92b8a2e321d3484e482702ff32661d41 | 1,091 | ipp | C++ | include/External/stlib/packages/numerical/random/gamma/GammaGeneratorMarsagliaTsang.ipp | bxl295/m4extreme | 2a4a20ebb5b4e971698f7c981de140d31a5e550c | [
"BSD-3-Clause"
] | null | null | null | include/External/stlib/packages/numerical/random/gamma/GammaGeneratorMarsagliaTsang.ipp | bxl295/m4extreme | 2a4a20ebb5b4e971698f7c981de140d31a5e550c | [
"BSD-3-Clause"
] | null | null | null | include/External/stlib/packages/numerical/random/gamma/GammaGeneratorMarsagliaTsang.ipp | bxl295/m4extreme | 2a4a20ebb5b4e971698f7c981de140d31a5e550c | [
"BSD-3-Clause"
] | null | null | null | // -*- C++ -*-
#if !defined(__numerical_random_GammaGeneratorMarsagliaTsang_ipp__)
#error This file is an implementation detail of GammaGeneratorMarsagliaTsang.
#endif
namespace numerical {
template < typename T,
class Uniform,
template<class> class Normal >
inline
typename GammaGenerat... | 26.609756 | 78 | 0.56187 | bxl295 |
89dbf4bcc8fd03715f0ec2ef881dda474025b745 | 7,308 | cpp | C++ | ControlX/wk.cpp | bikashtudu/Interfacing-and-Data-Acquisition-from-Scientific-Instruments | e2da91b2a9a8a7bf19aac75334925ae30b2c10e9 | [
"MIT"
] | null | null | null | ControlX/wk.cpp | bikashtudu/Interfacing-and-Data-Acquisition-from-Scientific-Instruments | e2da91b2a9a8a7bf19aac75334925ae30b2c10e9 | [
"MIT"
] | null | null | null | ControlX/wk.cpp | bikashtudu/Interfacing-and-Data-Acquisition-from-Scientific-Instruments | e2da91b2a9a8a7bf19aac75334925ae30b2c10e9 | [
"MIT"
] | 1 | 2018-08-04T14:12:15.000Z | 2018-08-04T14:12:15.000Z | #include "wk.h"
#include "ui_wk.h"
#include "measureset.h"
#include "traceset.h"
#include "wkmeter.h"
#include "QFile"
#include "QTextStream"
#include <QDebug>
#include "allfun4.h"
#include <QPixmap>
#define sta sta4
#define sto sto4
#define read read4
#define write write4
#define delay delay1
#include <QTime>
#include... | 20.132231 | 155 | 0.532704 | bikashtudu |
89e25d3362cd03cd30ac65a747e3a353fea83e1f | 7,427 | cpp | C++ | SDKs/CryCode/3.6.15/CryEngine/CryAction/GameRulesSystem.cpp | amrhead/FireNET | 34d439aa0157b0c895b20b2b664fddf4f9b84af1 | [
"BSD-2-Clause"
] | 4 | 2017-12-18T20:10:16.000Z | 2021-02-07T21:21:24.000Z | SDKs/CryCode/3.8.1/CryEngine/CryAction/GameRulesSystem.cpp | amrhead/FireNET | 34d439aa0157b0c895b20b2b664fddf4f9b84af1 | [
"BSD-2-Clause"
] | null | null | null | SDKs/CryCode/3.8.1/CryEngine/CryAction/GameRulesSystem.cpp | amrhead/FireNET | 34d439aa0157b0c895b20b2b664fddf4f9b84af1 | [
"BSD-2-Clause"
] | 3 | 2019-03-11T21:36:15.000Z | 2021-02-07T21:21:26.000Z | /*************************************************************************
Crytek Source File.
Copyright (C), Crytek Studios, 2001-2004.
-------------------------------------------------------------------------
$Id$
$DateTime$
Description:
-------------------------------------------------------------------------
Hist... | 29.240157 | 181 | 0.616534 | amrhead |
89e47d188b3e6af0bb150c137ccdfd5a4a456159 | 586 | hpp | C++ | main/config.hpp | brianinnes/waterMonitor | fa5d21fa511b2d763c26c2807056b65d513a05d1 | [
"Apache-2.0"
] | 6 | 2019-06-09T11:57:40.000Z | 2021-11-11T19:40:46.000Z | main/config.hpp | brianinnes/waterMonitor | fa5d21fa511b2d763c26c2807056b65d513a05d1 | [
"Apache-2.0"
] | null | null | null | main/config.hpp | brianinnes/waterMonitor | fa5d21fa511b2d763c26c2807056b65d513a05d1 | [
"Apache-2.0"
] | 4 | 2019-06-09T11:57:43.000Z | 2021-12-18T14:36:59.000Z | #pragma once
#ifndef WATER_MONITOR_CONFIG_H
#define WATER_MONITOR_CONFIG_H
#include <string>
namespace waterMonitor
{
class waterMonitorConfig {
public:
std::string getMqttHost() const;
std::string getMqttUser() const;
std::string getMqttPassword() const;
std::string getMqttCA... | 20.206897 | 46 | 0.65529 | brianinnes |
89e644052dd68012cdb4039d8972a40e186d0b90 | 2,977 | cpp | C++ | ALight-RayCPU-Reference/mesh.cpp | Asixa/ALight-Renderer-Complex | 30b1ac19053ee89f38ee5b10e85387c92309e5bc | [
"FTL"
] | 1 | 2020-07-28T09:25:51.000Z | 2020-07-28T09:25:51.000Z | ALight-RayCPU-Reference/mesh.cpp | Asixa/ALight-Renderer-Complex | 30b1ac19053ee89f38ee5b10e85387c92309e5bc | [
"FTL"
] | null | null | null | ALight-RayCPU-Reference/mesh.cpp | Asixa/ALight-Renderer-Complex | 30b1ac19053ee89f38ee5b10e85387c92309e5bc | [
"FTL"
] | null | null | null | #include "mesh.h"
Mesh::Mesh(const char *fileName, Material material)
{
m_fileName = fileName;
m_material = material;
if (loadObj() != 0)
{
std::cerr << "Mesh: Error loading " << m_fileName << std::endl;
std::exit(1);
}
std::cout << "Mesh: " << m_fileName << " has been loaded ... | 25.444444 | 88 | 0.356063 | Asixa |
89eae73ba1a6b81299a89893c8f328a496874954 | 287 | cpp | C++ | core/src/cubos/core/io/cursor.cpp | GameDevTecnico/cubos | 51f89c9f3afc8afe502d167dadecab7dfe5b1c7b | [
"MIT"
] | 2 | 2021-09-28T14:13:27.000Z | 2022-03-26T11:36:48.000Z | core/src/cubos/core/io/cursor.cpp | GameDevTecnico/cubos | 51f89c9f3afc8afe502d167dadecab7dfe5b1c7b | [
"MIT"
] | 72 | 2021-09-29T08:55:26.000Z | 2022-03-29T21:21:00.000Z | core/src/cubos/core/io/cursor.cpp | GameDevTecnico/cubos | 51f89c9f3afc8afe502d167dadecab7dfe5b1c7b | [
"MIT"
] | null | null | null | #include <cubos/core/io/cursor.hpp>
using namespace cubos::core;
#ifdef WITH_GLFW
io::Cursor::Cursor(GLFWcursor* handle)
{
this->glfwHandle = handle;
}
#endif
io::Cursor::~Cursor()
{
#ifdef WITH_GLFW
if (this->glfwHandle)
glfwDestroyCursor(this->glfwHandle);
#endif
}
| 15.105263 | 44 | 0.69338 | GameDevTecnico |
89ebe60d08ae3001c8121d40f733a4b8ffc18a03 | 675 | cpp | C++ | Data Structures and Algorithms CPP/09 Linked List 1/Assignment/02AppendLtoF.cpp | shivamaggarwal513/Coding-Ninjas | b445f4caf09730cc0a6cc7d2ab10fda3e9188111 | [
"MIT"
] | null | null | null | Data Structures and Algorithms CPP/09 Linked List 1/Assignment/02AppendLtoF.cpp | shivamaggarwal513/Coding-Ninjas | b445f4caf09730cc0a6cc7d2ab10fda3e9188111 | [
"MIT"
] | null | null | null | Data Structures and Algorithms CPP/09 Linked List 1/Assignment/02AppendLtoF.cpp | shivamaggarwal513/Coding-Ninjas | b445f4caf09730cc0a6cc7d2ab10fda3e9188111 | [
"MIT"
] | null | null | null | #include <iostream>
#include "..\01LinkedList.h"
using namespace std;
Node *appendLtoF(Node *head, int n)
{
if (n == 0)
return head;
int size = lengthLL(head);
int i = 0;
Node *temp = head;
while (i < size - n - 1)
{
temp = temp->next;
i++;
}
Node *newTail = temp... | 17.763158 | 48 | 0.496296 | shivamaggarwal513 |
8851eb91b640daf6f65521884f718c6b6d402a14 | 41,327 | cpp | C++ | belatedly/src/belatedly.cpp | Ahziu/Delayed-Hits | 39e062a34ce7d3bb693dceff0a7e68ea1ee6864b | [
"BSD-3-Clause-Clear"
] | 15 | 2020-09-04T18:32:14.000Z | 2022-03-31T08:29:05.000Z | belatedly/src/belatedly.cpp | Ahziu/Delayed-Hits | 39e062a34ce7d3bb693dceff0a7e68ea1ee6864b | [
"BSD-3-Clause-Clear"
] | 1 | 2021-02-18T08:14:29.000Z | 2021-02-18T08:14:29.000Z | belatedly/src/belatedly.cpp | Ahziu/Delayed-Hits | 39e062a34ce7d3bb693dceff0a7e68ea1ee6864b | [
"BSD-3-Clause-Clear"
] | 4 | 2020-10-17T21:39:38.000Z | 2021-06-04T14:29:27.000Z | // STD headers
#include <assert.h>
#include <fstream>
#include <functional>
#include <iomanip>
#include <iostream>
#include <list>
#include <string>
#include <thread>
#include <tuple>
#include <unordered_map>
#include <unordered_set>
#include <vector>
// Boost headers
#include <boost/bimap.hpp>
#include <boost/program... | 40.397849 | 146 | 0.599753 | Ahziu |
8854a0a68e45517775ec1b5583cbcd9b4fed60c5 | 830 | cpp | C++ | test/verify/test_clip.cpp | raramakr/AMDMIGraphX | 83e7425367f6ce850ec28fe716fe7c23ce34c79f | [
"MIT"
] | 72 | 2018-12-06T18:31:17.000Z | 2022-03-30T15:01:02.000Z | test/verify/test_clip.cpp | raramakr/AMDMIGraphX | 83e7425367f6ce850ec28fe716fe7c23ce34c79f | [
"MIT"
] | 1,006 | 2018-11-30T16:32:33.000Z | 2022-03-31T22:43:39.000Z | test/verify/test_clip.cpp | raramakr/AMDMIGraphX | 83e7425367f6ce850ec28fe716fe7c23ce34c79f | [
"MIT"
] | 36 | 2019-05-07T10:41:46.000Z | 2022-03-28T15:59:56.000Z |
#include "verify_program.hpp"
#include <migraphx/program.hpp>
#include <migraphx/generate.hpp>
#include <migraphx/make_op.hpp>
struct test_clip : verify_program<test_clip>
{
migraphx::program create_program() const
{
migraphx::program p;
auto* mm = p.get_main_module();
auto x ... | 34.583333 | 99 | 0.624096 | raramakr |
885723fee25f1b0e86d62aea222192c1febd6e59 | 36,952 | cpp | C++ | src/fred2/briefingeditordlg.cpp | ptitSeb/freespace2 | 500ee249f7033aac9b389436b1737a404277259c | [
"Linux-OpenIB"
] | 1 | 2020-07-14T07:29:18.000Z | 2020-07-14T07:29:18.000Z | src/fred2/briefingeditordlg.cpp | ptitSeb/freespace2 | 500ee249f7033aac9b389436b1737a404277259c | [
"Linux-OpenIB"
] | 2 | 2019-01-01T22:35:56.000Z | 2022-03-14T07:34:00.000Z | src/fred2/briefingeditordlg.cpp | ptitSeb/freespace2 | 500ee249f7033aac9b389436b1737a404277259c | [
"Linux-OpenIB"
] | 2 | 2021-03-07T11:40:42.000Z | 2021-12-26T21:40:39.000Z | /*
* Copyright (C) Volition, Inc. 1999. All rights reserved.
*
* All source code herein is the property of Volition, Inc. You may not sell
* or otherwise commercially exploit the source or things you created based on
* the source.
*/
/*
* $Logfile: /Freespace2/code/Fred2/BriefingEditorDlg.cpp $
* $Revision: ... | 25.519337 | 151 | 0.675227 | ptitSeb |
885bdd8f24f9cf110c18e19bc0a14729e5c27e67 | 2,127 | cpp | C++ | src/apps/tests/tests/LinearMatrix_tests.cpp | Adnn/Math | 017e7c42bfdd665c78557109b0b379567bfe8e7c | [
"MIT"
] | null | null | null | src/apps/tests/tests/LinearMatrix_tests.cpp | Adnn/Math | 017e7c42bfdd665c78557109b0b379567bfe8e7c | [
"MIT"
] | 11 | 2021-08-02T18:59:37.000Z | 2021-08-12T16:18:07.000Z | src/apps/tests/tests/LinearMatrix_tests.cpp | Adnn/math | 017e7c42bfdd665c78557109b0b379567bfe8e7c | [
"MIT"
] | 1 | 2021-03-18T10:56:44.000Z | 2021-03-18T10:56:44.000Z | #include "catch.hpp"
#include "detection.h"
#include "operation_detectors.h"
#include <math/LinearMatrix.h>
using namespace ad;
using namespace ad::math;
SCENARIO("Linear matrix construction")
{
THEN("An Linear matrix can be constructed by specifying each element.")
{
LinearMatrix<2, 2> linear{
... | 30.385714 | 108 | 0.652562 | Adnn |
885db3a357a5541728e0317ee40afc8f1be1533a | 911 | cpp | C++ | test/2048/tes.cpp | 6923403/C | d365021759e6d9078254b4b7b6455e0408e4b691 | [
"MIT"
] | 1 | 2020-10-01T14:52:45.000Z | 2020-10-01T14:52:45.000Z | test/2048/tes.cpp | 6923403/C | d365021759e6d9078254b4b7b6455e0408e4b691 | [
"MIT"
] | 3 | 2020-06-19T01:24:51.000Z | 2020-07-16T14:00:30.000Z | test/2048/tes.cpp | 6923403/C | d365021759e6d9078254b4b7b6455e0408e4b691 | [
"MIT"
] | null | null | null | #include <iostream>
#include <stdlib.h>
#include <unistd.h>
#include <ctime>
#include <termios.h>
using namespace std;
#define max_x 8
#define max_y 4
int map_size[max_x][max_y];
void drawline()
{
int x, y;
system("clear");
for(x = 0; x < max_x; ++x)
{
for(y = 0; y < max_y; ++y)
{
... | 16.267857 | 42 | 0.347969 | 6923403 |
885de00c45ededb4aef602920d57ebefdf333fbd | 768 | hpp | C++ | Jackal/Source/RenderDevice/Public/RenderDevice/TextureCubeMap.hpp | CheezBoiger/Jackal | 6c87bf19f6c1cd63f53c815820b32fc71b48bf77 | [
"MIT"
] | null | null | null | Jackal/Source/RenderDevice/Public/RenderDevice/TextureCubeMap.hpp | CheezBoiger/Jackal | 6c87bf19f6c1cd63f53c815820b32fc71b48bf77 | [
"MIT"
] | null | null | null | Jackal/Source/RenderDevice/Public/RenderDevice/TextureCubeMap.hpp | CheezBoiger/Jackal | 6c87bf19f6c1cd63f53c815820b32fc71b48bf77 | [
"MIT"
] | null | null | null | // Copyright (c) 2017 Jackal Engine, MIT License.
#pragma once
#include "Core/Platform/JTypes.hpp"
#include "Core/Structure/JString.hpp"
#include "Core/Utility/TextureLoader.hpp"
#include "RenderDeviceTypes.hpp"
#include "RenderObject.hpp"
namespace jackal {
// CubeMap Texture object.
class CubeMap : public Rende... | 20.210526 | 69 | 0.705729 | CheezBoiger |