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 109 | 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 48.5k ⌀ | 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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
23f779c2899c0ad952c77c7e27bc35d025ab0160 | 270 | hpp | C++ | libs/core/include/tone/core/variant_helpers.hpp | zfzackfrost/tone-lang | 928ac09dc061da2fb076fdc201ed2d4409fdcd96 | [
"MIT"
] | null | null | null | libs/core/include/tone/core/variant_helpers.hpp | zfzackfrost/tone-lang | 928ac09dc061da2fb076fdc201ed2d4409fdcd96 | [
"MIT"
] | null | null | null | libs/core/include/tone/core/variant_helpers.hpp | zfzackfrost/tone-lang | 928ac09dc061da2fb076fdc201ed2d4409fdcd96 | [
"MIT"
] | null | null | null | #pragma once
namespace tone::core {
// Credit: https://en.cppreference.com/w/cpp/utility/variant/visit
template <class... Ts> struct overloaded : Ts... {
using Ts::operator()...;
};
template<class... Ts> overloaded(Ts...) -> overloaded<Ts...>;
} | 30 | 70 | 0.611111 | zfzackfrost |
23f7d04300b60e6c921ec28016db99d865bb3ebc | 48,395 | cpp | C++ | shared/test/unit_test/os_interface/linux/drm_engine_info_prelim_tests.cpp | mattcarter2017/compute-runtime | 1f52802aac02c78c19d5493dd3a2402830bbe438 | [
"Intel",
"MIT"
] | null | null | null | shared/test/unit_test/os_interface/linux/drm_engine_info_prelim_tests.cpp | mattcarter2017/compute-runtime | 1f52802aac02c78c19d5493dd3a2402830bbe438 | [
"Intel",
"MIT"
] | null | null | null | shared/test/unit_test/os_interface/linux/drm_engine_info_prelim_tests.cpp | mattcarter2017/compute-runtime | 1f52802aac02c78c19d5493dd3a2402830bbe438 | [
"Intel",
"MIT"
] | null | null | null | /*
* Copyright (C) 2022 Intel Corporation
*
* SPDX-License-Identifier: MIT
*
*/
#include "shared/source/helpers/engine_node_helper.h"
#include "shared/source/helpers/hw_info.h"
#include "shared/source/memory_manager/memory_banks.h"
#include "shared/source/os_interface/linux/engine_info.h"
#include "shared/test/co... | 56.207898 | 217 | 0.765265 | mattcarter2017 |
671387e41a1459fa690a29216fb91c5abdb61996 | 2,669 | cpp | C++ | src/mainwindow/searchwidget/searchwidget.cpp | fengleyl/NetEase | 1dbcea741bd294da633233c766b24113c293f94e | [
"MIT"
] | 35 | 2015-06-18T14:11:46.000Z | 2020-12-01T10:06:17.000Z | src/mainwindow/searchwidget/searchwidget.cpp | StevennyZhang/NetEase | 1dbcea741bd294da633233c766b24113c293f94e | [
"MIT"
] | 1 | 2015-09-15T13:09:58.000Z | 2016-05-09T05:47:24.000Z | src/mainwindow/searchwidget/searchwidget.cpp | StevennyZhang/NetEase | 1dbcea741bd294da633233c766b24113c293f94e | [
"MIT"
] | 10 | 2015-05-28T15:19:18.000Z | 2018-06-26T17:54:31.000Z | #include "searchwidget.h"
#include "../../toolwidgets/funcbutton.h"
#include "../../configure/configure.h"
#include "../../toolwidgets/titlewidget.h"
#include <QLineEdit>
#include <QHBoxLayout>
#include <QCheckBox>
#include <QLabel>
SearchWidget::SearchWidget(QWidget *parent) :
BasedWidget(parent)
{
setFixedSize(sea... | 26.959596 | 82 | 0.736231 | fengleyl |
671469a337c114745eed61415549e82732f8f9f0 | 2,016 | hpp | C++ | app/ui/GLCanvas.hpp | modelflat/fractalexplorer | b2799362851b830ab8e9f69d9c3178785a9757c6 | [
"MIT"
] | null | null | null | app/ui/GLCanvas.hpp | modelflat/fractalexplorer | b2799362851b830ab8e9f69d9c3178785a9757c6 | [
"MIT"
] | null | null | null | app/ui/GLCanvas.hpp | modelflat/fractalexplorer | b2799362851b830ab8e9f69d9c3178785a9757c6 | [
"MIT"
] | null | null | null | #ifndef FRACTALEXPLORER_GLCANVAS_HPP
#define FRACTALEXPLORER_GLCANVAS_HPP
#include <QOpenGLWidget>
#include <QOpenGLContext>
#include <QOpenGLFunctions>
#include <QOpenGLTexture>
#include <CL/cl.hpp>
class OpenCLBackend {
public:
cl::Context currentContext();
bool interoperableWith(QOpenGLContext* context... | 18.841121 | 68 | 0.68006 | modelflat |
671ea385c2c5126f4431115cc0ae6dc31637162f | 351 | hpp | C++ | include/hit.hpp | core-exe/NonEuclideanRayTracing | 4316fa118af6b29c86c99bd4d863dfba1f089c7c | [
"MIT"
] | 1 | 2021-12-02T06:25:54.000Z | 2021-12-02T06:25:54.000Z | include/hit.hpp | core-exe/NonEuclideanRayTracing | 4316fa118af6b29c86c99bd4d863dfba1f089c7c | [
"MIT"
] | null | null | null | include/hit.hpp | core-exe/NonEuclideanRayTracing | 4316fa118af6b29c86c99bd4d863dfba1f089c7c | [
"MIT"
] | null | null | null | # pragma once
# include <vecmath.h>
# include <vector>
using namespace std;
class Texture;
class Ray4;
class Hit4 {
public:
float t;
vector<Ray4> ray_out;
Vector3f hit_pos_texture, normal;
float in_cosine;
float importance;
vector<float> out_cosine, out_importance;
Texture* hit_textur... | 17.55 | 45 | 0.663818 | core-exe |
672261b07327a8154e56225ac3937413a9ece764 | 606 | cpp | C++ | project2D/main.cpp | Jeffrey-W23/AIE-CodeFolio | c1820d0a228a6111011b2d10daf885753e6d302d | [
"MIT"
] | null | null | null | project2D/main.cpp | Jeffrey-W23/AIE-CodeFolio | c1820d0a228a6111011b2d10daf885753e6d302d | [
"MIT"
] | null | null | null | project2D/main.cpp | Jeffrey-W23/AIE-CodeFolio | c1820d0a228a6111011b2d10daf885753e6d302d | [
"MIT"
] | null | null | null | #include "Application2D.h"
#include <crtdbg.h>
#include <iostream>
#include "FunctionPointerExampleClass.h"
using namespace std;
// Function pointer example
//void Cat(float cat)
//{
// cout << "Your number is: " << cat << endl;
//}
int main() {
// Function pointer example
/*FunctionPointerExampleClass tc;
... | 18.363636 | 62 | 0.691419 | Jeffrey-W23 |
6724a7c1abb8283e5b0b2f8e7ab9f19db08ed470 | 1,285 | cc | C++ | code/addons/ui/ceui/ceuirendertarget.cc | gscept/nebula-trifid | e7c0a0acb05eedad9ed37a72c1bdf2d658511b42 | [
"BSD-2-Clause"
] | 67 | 2015-03-30T19:56:16.000Z | 2022-03-11T13:52:17.000Z | code/addons/ui/ceui/ceuirendertarget.cc | gscept/nebula-trifid | e7c0a0acb05eedad9ed37a72c1bdf2d658511b42 | [
"BSD-2-Clause"
] | 5 | 2015-04-15T17:17:33.000Z | 2016-02-11T00:40:17.000Z | code/addons/ui/ceui/ceuirendertarget.cc | gscept/nebula-trifid | e7c0a0acb05eedad9ed37a72c1bdf2d658511b42 | [
"BSD-2-Clause"
] | 34 | 2015-03-30T15:08:00.000Z | 2021-09-23T05:55:10.000Z | //------------------------------------------------------------------------------
// ceuirendertarget.cc
// (C) 2009 Radon Labs GmbH
//------------------------------------------------------------------------------
#include "stdneb.h"
#include "sui/ceui/ceuirendertarget.h"
namespace CEUI
{
//--------------------------... | 22.54386 | 124 | 0.368872 | gscept |
67310c8e9d82d6c1af1ab0467aef425e2cc0ccf0 | 2,567 | cpp | C++ | modules/svg/src/SkSVGFeMorphology.cpp | borodust/skia | bbbf1a7f50a303bd76163793bd5968c72f5f4432 | [
"BSD-3-Clause"
] | 1 | 2022-03-10T08:41:28.000Z | 2022-03-10T08:41:28.000Z | modules/svg/src/SkSVGFeMorphology.cpp | borodust/skia | bbbf1a7f50a303bd76163793bd5968c72f5f4432 | [
"BSD-3-Clause"
] | null | null | null | modules/svg/src/SkSVGFeMorphology.cpp | borodust/skia | bbbf1a7f50a303bd76163793bd5968c72f5f4432 | [
"BSD-3-Clause"
] | 1 | 2021-06-06T21:31:52.000Z | 2021-06-06T21:31:52.000Z | /*
* Copyright 2020 Google Inc.
*
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
#include "include/effects/SkImageFilters.h"
#include "modules/svg/include/SkSVGAttributeParser.h"
#include "modules/svg/include/SkSVGFeMorphology.h"
#include "modules/svg/incl... | 37.202899 | 97 | 0.671601 | borodust |
67387605a1294603125aacc297fc5aa5a4f5f963 | 2,199 | cpp | C++ | #23_merge-k-sorted-lists/merge-k-sorted-lists.cpp | o-oppang/lets-solve-algorithm | 9983a112736ce48bbd309a9af16d1fd68b9420da | [
"MIT"
] | null | null | null | #23_merge-k-sorted-lists/merge-k-sorted-lists.cpp | o-oppang/lets-solve-algorithm | 9983a112736ce48bbd309a9af16d1fd68b9420da | [
"MIT"
] | null | null | null | #23_merge-k-sorted-lists/merge-k-sorted-lists.cpp | o-oppang/lets-solve-algorithm | 9983a112736ce48bbd309a9af16d1fd68b9420da | [
"MIT"
] | null | null | null | /**
* 23. Merge k Sorted Lists ( Hard )
* You are given an array of k linked-lists lists, each linked-list is sorted in ascending order.
* Merge all the linked-lists into one sorted linked-list and return it.
*/
/**
* Definition for singly-linked list.
* struct ListNode {
* int val;
* ListNode *next;
... | 35.467742 | 97 | 0.541155 | o-oppang |
6746207e4c2949611f3fe85db7b038171125f1c0 | 149 | cpp | C++ | src/outputs/Output.cpp | neogenie/iqlogger | 7a3866046dd30282a35ce954dc4fd301452aa924 | [
"Apache-2.0"
] | 1 | 2020-08-17T12:22:36.000Z | 2020-08-17T12:22:36.000Z | src/outputs/Output.cpp | neogenie/iqlogger | 7a3866046dd30282a35ce954dc4fd301452aa924 | [
"Apache-2.0"
] | null | null | null | src/outputs/Output.cpp | neogenie/iqlogger | 7a3866046dd30282a35ce954dc4fd301452aa924 | [
"Apache-2.0"
] | null | null | null | //
// Output.cpp
// ~~~~~~~~~~~~~~~~
//
// Copyright (C) 2018 IQOption Software, Inc.
//
//
#include "Output.h"
using namespace iqlogger::outputs;
| 12.416667 | 45 | 0.57047 | neogenie |
67538b3be230df90eab6dc178121b3ea773f0e37 | 10,534 | cpp | C++ | development/Common/Utility/source/sqlite/SQLite.cpp | eglowacki/zloty | 9c864ae0beb1ac64137a096795261768b7fc6710 | [
"MIT"
] | null | null | null | development/Common/Utility/source/sqlite/SQLite.cpp | eglowacki/zloty | 9c864ae0beb1ac64137a096795261768b7fc6710 | [
"MIT"
] | 44 | 2018-06-28T03:01:44.000Z | 2022-03-20T19:53:00.000Z | development/Common/Utility/source/sqlite/SQLite.cpp | eglowacki/zloty | 9c864ae0beb1ac64137a096795261768b7fc6710 | [
"MIT"
] | null | null | null | #include "sqlite/SQLite.h"
#include "sqlite/sqlite3.h"
#include "App/AppUtilities.h"
#include "App/FileUtilities.h"
#include "Fmt/format.h"
#include "Logger/YLog.h"
#include "Streams/Guid.h"
namespace
{
int SqlQueryCallback(void *userData, int argc, char **argv, char **columnNames)
{
if (userData)
... | 34.424837 | 185 | 0.652459 | eglowacki |
6755552a13c79f2dbe55e83976f2454a2a579638 | 219 | cpp | C++ | docs/atl-mfc-shared/codesnippet/CPP/cstringt-class_27.cpp | bobbrow/cpp-docs | 769b186399141c4ea93400863a7d8463987bf667 | [
"CC-BY-4.0",
"MIT"
] | 965 | 2017-06-25T23:57:11.000Z | 2022-03-31T14:17:32.000Z | docs/atl-mfc-shared/codesnippet/CPP/cstringt-class_27.cpp | bobbrow/cpp-docs | 769b186399141c4ea93400863a7d8463987bf667 | [
"CC-BY-4.0",
"MIT"
] | 3,272 | 2017-06-24T00:26:34.000Z | 2022-03-31T22:14:07.000Z | docs/atl-mfc-shared/codesnippet/CPP/cstringt-class_27.cpp | bobbrow/cpp-docs | 769b186399141c4ea93400863a7d8463987bf667 | [
"CC-BY-4.0",
"MIT"
] | 951 | 2017-06-25T12:36:14.000Z | 2022-03-26T22:49:06.000Z | // typedef CStringT<TCHAR, StrTraitATL<TCHAR, ChTraitsCRT<TCHAR>>> CAtlString;
CAtlString s1(_T("cat")), s2(_T("f")), s3(_T("horse"));
ASSERT(s1 != _T("dog"));
ASSERT(s2 != _T('t'));
ASSERT(s1 != s2); | 36.5 | 81 | 0.579909 | bobbrow |
675ffdb41a930477058ac8772f50e43697f1f2c4 | 610 | cpp | C++ | test/rrt_test.cpp | mxgrey/ccrrt | 28680511e8f212ad8a771ea3b1af8214027b765c | [
"BSD-3-Clause"
] | 3 | 2019-03-13T09:54:04.000Z | 2019-08-04T17:40:08.000Z | test/rrt_test.cpp | mxgrey/ccrrt | 28680511e8f212ad8a771ea3b1af8214027b765c | [
"BSD-3-Clause"
] | null | null | null | test/rrt_test.cpp | mxgrey/ccrrt | 28680511e8f212ad8a771ea3b1af8214027b765c | [
"BSD-3-Clause"
] | null | null | null |
#include "../ccrrt/RRTManager.h"
#include "../ccrrt/Drawer.h"
using namespace ccrrt;
int main(int argc, char* argv[])
{
RRTManager rrt;
Eigen::VectorXd limits(2);
limits << 5, 5;
rrt.setDomain(-limits,limits);
Eigen::VectorXd p(2);
p << -3, 0;
rrt.addStartTree(p);
p << 3, -1... | 17.428571 | 43 | 0.555738 | mxgrey |
67676117e12d8cb226bc4886ca81a51d9f5386c1 | 1,468 | hpp | C++ | libs/python/include/python/network/py_tcp_client.hpp | devjsc/ledger-1 | 2aa68e05b9f9c10a9971fc8ddf4848695511af3c | [
"Apache-2.0"
] | 3 | 2019-07-11T08:49:27.000Z | 2021-09-07T16:49:15.000Z | libs/python/include/python/network/py_tcp_client.hpp | devjsc/ledger-1 | 2aa68e05b9f9c10a9971fc8ddf4848695511af3c | [
"Apache-2.0"
] | null | null | null | libs/python/include/python/network/py_tcp_client.hpp | devjsc/ledger-1 | 2aa68e05b9f9c10a9971fc8ddf4848695511af3c | [
"Apache-2.0"
] | 2 | 2019-07-13T12:45:22.000Z | 2021-03-12T08:48:57.000Z | #pragma once
//------------------------------------------------------------------------------
//
// Copyright 2018-2019 Fetch.AI Limited
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the Licen... | 35.804878 | 80 | 0.604905 | devjsc |
676afc7bf136f0770c816ad9f7537d4669d1688c | 383 | cpp | C++ | cpp03/cpp03_set_get_data.cpp | ValentinoVizner/CPP_OpenCV_Playground | 809fa501e056cddeb9e0af3cb7f0ba0925f389d0 | [
"MIT"
] | null | null | null | cpp03/cpp03_set_get_data.cpp | ValentinoVizner/CPP_OpenCV_Playground | 809fa501e056cddeb9e0af3cb7f0ba0925f389d0 | [
"MIT"
] | null | null | null | cpp03/cpp03_set_get_data.cpp | ValentinoVizner/CPP_OpenCV_Playground | 809fa501e056cddeb9e0af3cb7f0ba0925f389d0 | [
"MIT"
] | null | null | null | #include <string>
class Student {
public:
Student(int id, std::string name)
: id_{id}, name_{name} {} // This is initializer list
int id() const { return id_; }
const std::string &
name() const // whatever you do after this const all private variables will be
// interpreted as const
{
... | 22.529412 | 80 | 0.629243 | ValentinoVizner |
676d789ff76dba0c7526723b3d58fc42d1a90c2c | 8,756 | cpp | C++ | methods/mexDenseSIFT/Matrix.cpp | jjcharles/personalizedpose | 227086992f198c04f30923f21b1e74a807f261f0 | [
"CC-BY-4.0"
] | null | null | null | methods/mexDenseSIFT/Matrix.cpp | jjcharles/personalizedpose | 227086992f198c04f30923f21b1e74a807f261f0 | [
"CC-BY-4.0"
] | null | null | null | methods/mexDenseSIFT/Matrix.cpp | jjcharles/personalizedpose | 227086992f198c04f30923f21b1e74a807f261f0 | [
"CC-BY-4.0"
] | null | null | null | #include "Matrix.h"
#include "memory.h"
#include <iostream>
using namespace std;
bool Matrix::IsDispInfo=false;
Matrix::Matrix(void)
{
nRow=nCol=0;
pData=NULL;
}
Matrix::Matrix(int nrow,int ncol,double* data)
{
nRow=nrow;
nCol=ncol;
pData=new double[nRow*nCol];
if(data==NULL)
memset(pDat... | 20.897375 | 101 | 0.578917 | jjcharles |
67704a83d1179d9c9b142d0448c1cf3198edae79 | 3,251 | hpp | C++ | source/modus_core/window/ContextSettings.hpp | Gurman8r/modus | 5c97a89f77c1c5733793dddc20c5ce4afe1fd134 | [
"MIT"
] | null | null | null | source/modus_core/window/ContextSettings.hpp | Gurman8r/modus | 5c97a89f77c1c5733793dddc20c5ce4afe1fd134 | [
"MIT"
] | null | null | null | source/modus_core/window/ContextSettings.hpp | Gurman8r/modus | 5c97a89f77c1c5733793dddc20c5ce4afe1fd134 | [
"MIT"
] | null | null | null | #ifndef _ML_CONTEXT_SETTINGS_HPP_
#define _ML_CONTEXT_SETTINGS_HPP_
#include <modus_core/detail/Debug.hpp>
// CONTEXT API
namespace ml
{
// context api
enum context_api_ : int32
{
context_api_unknown , // unknown
context_api_opengl , // opengl
context_api_vulkan , // vulkan
context_api_directx , // dir... | 26.008 | 70 | 0.659797 | Gurman8r |
677c04cae633e9411c2f70475228865b36925f76 | 104 | cpp | C++ | src/Aurora/Logger/Logger.cpp | sjuhyeon/Aurora | 9a6249bcac9beb0ac9792137b522160156e1dd71 | [
"MIT"
] | 1 | 2022-02-23T17:42:51.000Z | 2022-02-23T17:42:51.000Z | src/Aurora/Logger/Logger.cpp | sjuhyeon/Aurora | 9a6249bcac9beb0ac9792137b522160156e1dd71 | [
"MIT"
] | null | null | null | src/Aurora/Logger/Logger.cpp | sjuhyeon/Aurora | 9a6249bcac9beb0ac9792137b522160156e1dd71 | [
"MIT"
] | null | null | null | #include "Logger.hpp"
namespace Aurora
{
std::vector<std::shared_ptr<Logger::Sink>> Logger::m_Sinks;
} | 17.333333 | 60 | 0.730769 | sjuhyeon |
677c767e7b81159817a8e8fe88d0d995ccd9da9e | 151 | cpp | C++ | src/graph/graph.cpp | mangosroom/cv-graph | 6c02cf196b2b05ddc55d6b3285f471d4cd0146ab | [
"Apache-2.0"
] | null | null | null | src/graph/graph.cpp | mangosroom/cv-graph | 6c02cf196b2b05ddc55d6b3285f471d4cd0146ab | [
"Apache-2.0"
] | null | null | null | src/graph/graph.cpp | mangosroom/cv-graph | 6c02cf196b2b05ddc55d6b3285f471d4cd0146ab | [
"Apache-2.0"
] | null | null | null | /**
* @file graph.cpp
* @author mango (2321544362@qq.com)
* @brief
* @version 0.1
* @date 2021-12-08
*
* @copyright Copyright (c) 2021
*
*/ | 15.1 | 36 | 0.576159 | mangosroom |
6784f28ecd14de5c41038861fbd16307438f3fa1 | 2,925 | hpp | C++ | lib/atlas/server/async/SecureSession.hpp | aphenriques/atlas | 9967f58005015a39ece8f7dfdfa91d45759dd042 | [
"MIT"
] | null | null | null | lib/atlas/server/async/SecureSession.hpp | aphenriques/atlas | 9967f58005015a39ece8f7dfdfa91d45759dd042 | [
"MIT"
] | null | null | null | lib/atlas/server/async/SecureSession.hpp | aphenriques/atlas | 9967f58005015a39ece8f7dfdfa91d45759dd042 | [
"MIT"
] | null | null | null | //
// server/async/SecureSession.hpp
// atlas
//
// MIT License
//
// Copyright (c) 2021 André Pereira Henriques (aphenriques (at) outlook (dot) com)
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// i... | 37.987013 | 113 | 0.689573 | aphenriques |
6785490ffa3d8ed95f0c05c6bfe7a74b3c19f822 | 8,348 | cpp | C++ | src/krnl/term.cpp | maximsmol/nos | 386b4166b3fd1701b734bfcd50ace1b9e1ea38ee | [
"MIT"
] | 1 | 2019-04-29T05:10:52.000Z | 2019-04-29T05:10:52.000Z | src/krnl/term.cpp | maximsmol/nos | 386b4166b3fd1701b734bfcd50ace1b9e1ea38ee | [
"MIT"
] | null | null | null | src/krnl/term.cpp | maximsmol/nos | 386b4166b3fd1701b734bfcd50ace1b9e1ea38ee | [
"MIT"
] | 1 | 2021-12-06T23:49:27.000Z | 2021-12-06T23:49:27.000Z | #include "hpp/term.hpp"
#include <stdarg.h>
#include "hpp/typ.hpp"
namespace term {
static int posX;
static int posY;
static volatile char* vmem_woffset;
void clear() {
vmem_woffset = vmem_base;
for (int x = 0; x < width; ++x)
for (int y = 0; y < height; ++y) {
*vmem_woffset++ = ' ';
... | 27.016181 | 113 | 0.498563 | maximsmol |
678fc6ca24a705fa9c66b7e1b3966b4b0584e0ed | 1,168 | cpp | C++ | lib/main.cpp | NathanHoekstra/NRF24L01 | ba7e0ed5afec3cfd0dfd0baf49ac552c1efc3b9f | [
"BSL-1.0"
] | null | null | null | lib/main.cpp | NathanHoekstra/NRF24L01 | ba7e0ed5afec3cfd0dfd0baf49ac552c1efc3b9f | [
"BSL-1.0"
] | null | null | null | lib/main.cpp | NathanHoekstra/NRF24L01 | ba7e0ed5afec3cfd0dfd0baf49ac552c1efc3b9f | [
"BSL-1.0"
] | null | null | null | #include "hwlib.hpp"
#include "rf24.hpp"
#include "nrf24l01.hpp"
#include "rf_test.hpp"
int main( void ){
// kill the watchdog
WDT->WDT_MR = WDT_MR_WDDIS;
namespace target = hwlib::target;
// NRF24L01+ Chip 1 definition
auto MISO = target::pin_in(target::pins::miso);
auto MOSI = target::pin_out(t... | 29.2 | 82 | 0.702911 | NathanHoekstra |
096175132cc77778e576ee0e88c6de9dd5b5a14d | 7,542 | cpp | C++ | src/dslang-scheme-context.cpp | ryanvbissell/dslang | 65379ca7bbefff0161d11343b742ac58452d37e7 | [
"BSD-2-Clause"
] | null | null | null | src/dslang-scheme-context.cpp | ryanvbissell/dslang | 65379ca7bbefff0161d11343b742ac58452d37e7 | [
"BSD-2-Clause"
] | null | null | null | src/dslang-scheme-context.cpp | ryanvbissell/dslang | 65379ca7bbefff0161d11343b742ac58452d37e7 | [
"BSD-2-Clause"
] | null | null | null | // vim: set tabstop=2 softtabstop=2 shiftwidth=2 expandtab :
/*
* Copyright (c) 2014-2017, Ryan V. Bissell
* All rights reserved.
*
* SPDX-License-Identifier: BSD-2-Clause
* See the enclosed "LICENSE" file for exact license terms.
*/
#define CX_TRACE_SECTION "dslang"
#include "dslang-scheme-context.hpp"
#inclu... | 23.206154 | 90 | 0.591355 | ryanvbissell |
09636513f6e465d3766e61cf2f74fab1a6205df1 | 535 | cpp | C++ | AtCoder/abc124/c/main.cpp | H-Tatsuhiro/Com_Pro-Cpp | fd79f7821a76b11f4a6f83bbb26a034db577a877 | [
"MIT"
] | null | null | null | AtCoder/abc124/c/main.cpp | H-Tatsuhiro/Com_Pro-Cpp | fd79f7821a76b11f4a6f83bbb26a034db577a877 | [
"MIT"
] | 1 | 2021-10-19T08:47:23.000Z | 2022-03-07T05:23:56.000Z | AtCoder/abc124/c/main.cpp | H-Tatsuhiro/Com_Pro-Cpp | fd79f7821a76b11f4a6f83bbb26a034db577a877 | [
"MIT"
] | null | null | null | #include <iostream>
#include <cmath>
#include <algorithm>
#include <vector>
using namespace std;
int main() {
string S; cin >> S;
int N = S.length();
string a = "", b = "";
for (int i = 0; i < N; i++) {
if (i % 2 == 0) a += '1';
else a += '0';
}
for (int i = 0; i < N; i++) {
... | 22.291667 | 33 | 0.379439 | H-Tatsuhiro |
096c70805639663c1213492faaa136d00331aa8b | 681 | cpp | C++ | Expriments/LearningOpenCV3/Example2_3/main.cpp | weixi2008/lab | d42143ddbd0b9ce8ec17716ea6745e59b278f29e | [
"MIT"
] | null | null | null | Expriments/LearningOpenCV3/Example2_3/main.cpp | weixi2008/lab | d42143ddbd0b9ce8ec17716ea6745e59b278f29e | [
"MIT"
] | null | null | null | Expriments/LearningOpenCV3/Example2_3/main.cpp | weixi2008/lab | d42143ddbd0b9ce8ec17716ea6745e59b278f29e | [
"MIT"
] | null | null | null | #include <opencv2/highgui/highgui.hpp>
#include <opencv2/imgproc/imgproc.hpp>
#include <iostream>
using namespace cv;
using namespace std;
const char EXAMPLE_WINDOW[] = "Example2_3";
int main(int argc, char** argv) {
namedWindow(EXAMPLE_WINDOW, cv::WINDOW_AUTOSIZE);
VideoCapture cap;
cap.open("C:\\... | 23.482759 | 74 | 0.676946 | weixi2008 |
096df220a1f6bd9c11bff0464549a75065dfd75d | 3,321 | cpp | C++ | vktrace/vktrace_common/compression/compressor.cpp | luopan007/vktrace-arm | 0b44f2ad599bff3707ca748179275085b8241a03 | [
"Apache-2.0"
] | 8 | 2019-07-17T13:57:15.000Z | 2022-01-21T03:49:27.000Z | vktrace/vktrace_common/compression/compressor.cpp | QPC-database/vktrace-arm | 50300888e0254eaf2c3f35cc31fa9893d1628730 | [
"Apache-2.0"
] | 2 | 2022-01-22T06:49:59.000Z | 2022-01-22T06:56:35.000Z | vktrace/vktrace_common/compression/compressor.cpp | luopan007/vktrace-arm | 0b44f2ad599bff3707ca748179275085b8241a03 | [
"Apache-2.0"
] | 10 | 2019-10-31T12:02:43.000Z | 2021-08-06T04:57:23.000Z | /*
* (C) COPYRIGHT 2020 ARM Limited
* ALL RIGHTS RESERVED
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by a... | 45.493151 | 207 | 0.752484 | luopan007 |
09724199617cefe173bb672383c3c0bdc49bac7d | 1,563 | cpp | C++ | Ejercicios LP1/Proyecto/menu.cpp | IrisVH/cpp | 2abeca0df70cfdc6e95e8b07160062b66e4b2799 | [
"MIT"
] | null | null | null | Ejercicios LP1/Proyecto/menu.cpp | IrisVH/cpp | 2abeca0df70cfdc6e95e8b07160062b66e4b2799 | [
"MIT"
] | null | null | null | Ejercicios LP1/Proyecto/menu.cpp | IrisVH/cpp | 2abeca0df70cfdc6e95e8b07160062b66e4b2799 | [
"MIT"
] | null | null | null | #include <iostream>
#include "clientes.h"
using namespace std;
void menu(){
bool salir=false;
while(salir==false){
int opcion=0;
cout<<"MENU PRINCIPAL"<<endl;
cout<<"***********************"<<endl;
cout<<"1-Clientes"<<endl;
cout<<"2-libro diario"<<endl;
cout<<"3-libro... | 15.63 | 45 | 0.333333 | IrisVH |
0973147d02225f20ac6728b22a146bf3dcb0203e | 1,104 | cpp | C++ | PATA1039.cpp | Geeks-Z/PAT-Advanced-Level-Practice | 6b25d07ae602310215e46c951638b93080b382bf | [
"MIT"
] | null | null | null | PATA1039.cpp | Geeks-Z/PAT-Advanced-Level-Practice | 6b25d07ae602310215e46c951638b93080b382bf | [
"MIT"
] | null | null | null | PATA1039.cpp | Geeks-Z/PAT-Advanced-Level-Practice | 6b25d07ae602310215e46c951638b93080b382bf | [
"MIT"
] | null | null | null | /*
* @Descripttion: https://www.liuchuo.net/archives/2145
* @version: 1.0
* @Author: Geeks_Z
* @Date: 2021-05-31 10:50:24
* @LastEditors: Geeks_Z
* @LastEditTime: 2021-05-31 10:50:56
*/
//string、cin、cout会超时,可以使用hash(26*26*26*10+10)
//将学生姓名变为int型,然后存储在vector里面
#include <cstdio>
#include <vector>
#include <algorit... | 21.230769 | 55 | 0.511775 | Geeks-Z |
09739731a0e897786307acc69a6738ae05a54c4b | 2,162 | cpp | C++ | main.cpp | Ivan-Sandro/Fire_Doom_Algorithm | f33af2826f8d16cd8b8cc6086f8ba8b3ba21733f | [
"MIT"
] | null | null | null | main.cpp | Ivan-Sandro/Fire_Doom_Algorithm | f33af2826f8d16cd8b8cc6086f8ba8b3ba21733f | [
"MIT"
] | null | null | null | main.cpp | Ivan-Sandro/Fire_Doom_Algorithm | f33af2826f8d16cd8b8cc6086f8ba8b3ba21733f | [
"MIT"
] | null | null | null | #include <ctime>
#include <iostream>
#include <string>
#include "Sistema_Allegro5.0.h"
#include "Fogo.h"
#include "Painel.h"
using namespace std;
constexpr short int Largura_Tela = 1080 ;
constexpr short int Altura_Tela = 720 ;
int main()
{
srand(time(NULL));
bool EXIT_PROGRAM = fa... | 24.568182 | 84 | 0.592044 | Ivan-Sandro |
0973bb8c3d5a2b04aec2c1b573ec412a9a030b74 | 742 | hpp | C++ | H3D/Graphics/Drawable.hpp | heinhel/H3D-Engine | 5e638683486f9b083aaaf1a433d5eed361adfa79 | [
"MIT"
] | null | null | null | H3D/Graphics/Drawable.hpp | heinhel/H3D-Engine | 5e638683486f9b083aaaf1a433d5eed361adfa79 | [
"MIT"
] | null | null | null | H3D/Graphics/Drawable.hpp | heinhel/H3D-Engine | 5e638683486f9b083aaaf1a433d5eed361adfa79 | [
"MIT"
] | null | null | null | #pragma once
#if defined DLL_EXPORT
#define H3D_API __declspec(dllexport)
#else
#define H3D_API __declspec(dllimport)
#endif
#include "../../H3D/MemoryMng/pool_alloc.hpp"
#include "../../H3D/Math/Vector.hpp"
#include "Texture.hpp"
#include "../../H3D/Model/3DModel.hpp"
#include "../../H3D/System/Window.hpp"
/////////... | 19.526316 | 65 | 0.551213 | heinhel |
0974c627e603a100666c7fcefed84a6affcf7790 | 3,805 | cpp | C++ | SpatialGDK/Source/SpatialGDKFunctionalTests/SpatialGDK/SpatialTestPossession/NoneCrossServerPossessionTest.cpp | cyberbibby/UnrealGDK | 9502a1ba11d21b3cb64978ba7ea178c63371cdd0 | [
"MIT"
] | null | null | null | SpatialGDK/Source/SpatialGDKFunctionalTests/SpatialGDK/SpatialTestPossession/NoneCrossServerPossessionTest.cpp | cyberbibby/UnrealGDK | 9502a1ba11d21b3cb64978ba7ea178c63371cdd0 | [
"MIT"
] | null | null | null | SpatialGDK/Source/SpatialGDKFunctionalTests/SpatialGDK/SpatialTestPossession/NoneCrossServerPossessionTest.cpp | cyberbibby/UnrealGDK | 9502a1ba11d21b3cb64978ba7ea178c63371cdd0 | [
"MIT"
] | null | null | null | // Copyright (c) Improbable Worlds Ltd, All Rights Reserved
#include "NoneCrossServerPossessionTest.h"
#include "Containers/Array.h"
#include "CrossServerPossessionGameMode.h"
#include "EngineClasses/SpatialNetDriver.h"
#include "GameFramework/PlayerController.h"
#include "SpatialFunctionalTestFlowController.h"
#incl... | 39.635417 | 123 | 0.762681 | cyberbibby |
0979a6c4fde8b3f3573e11d63d6ab1a4608c183e | 2,170 | cpp | C++ | provant_simulator_utils/provant_simulator_sdf_parser/src/sdf_status.cpp | Guiraffo/ProVANT_Simulator | ef2260204b13f39a9f83ad2ab88a9552a0699bff | [
"MIT"
] | null | null | null | provant_simulator_utils/provant_simulator_sdf_parser/src/sdf_status.cpp | Guiraffo/ProVANT_Simulator | ef2260204b13f39a9f83ad2ab88a9552a0699bff | [
"MIT"
] | null | null | null | provant_simulator_utils/provant_simulator_sdf_parser/src/sdf_status.cpp | Guiraffo/ProVANT_Simulator | ef2260204b13f39a9f83ad2ab88a9552a0699bff | [
"MIT"
] | null | null | null | /*
* This file is part of the ProVANT simulator project.
* Licensed under the terms of the MIT open source license. More details at
* https://github.com/Guiraffo/ProVANT-Simulator/blob/master/LICENSE.md
*/
/**
* @file sdf_status.cpp
* @brief This file contains the implementation of the SDFStatus classes.
*
* @a... | 25.833333 | 108 | 0.680645 | Guiraffo |
098367871119dd1867604845a2008ad262bb999a | 72,386 | cpp | C++ | src/masterx-evolution.cpp | redux-project/redux | 55101ab1f6776ff50014bebb36f5d78e2ffa1edb | [
"MIT"
] | null | null | null | src/masterx-evolution.cpp | redux-project/redux | 55101ab1f6776ff50014bebb36f5d78e2ffa1edb | [
"MIT"
] | null | null | null | src/masterx-evolution.cpp | redux-project/redux | 55101ab1f6776ff50014bebb36f5d78e2ffa1edb | [
"MIT"
] | null | null | null | // Copyright (c) 2015-2016 The Redux developers
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include "main.h"
#include "init.h"
#include "masterx-evolution.h"
#include "masterx.h"
#include "stealthx.h"
#include "masterx... | 35.379277 | 207 | 0.660722 | redux-project |
09885103cfdc6946b74cb6407bebb8425f3fd270 | 5,891 | cpp | C++ | src/cpp3ds/Window/GlContext.cpp | cpp3ds/cpp3ds | 7813714776e2134bd75b9f3869ed142c1d4eeaaf | [
"MIT"
] | 98 | 2015-08-26T16:49:29.000Z | 2022-03-03T10:15:43.000Z | src/cpp3ds/Window/GlContext.cpp | Naxann/cpp3ds | 1932e798306ec6d910c6a5b9e85e9d8f02fb815f | [
"MIT"
] | 10 | 2016-02-26T21:30:51.000Z | 2020-07-12T20:48:09.000Z | src/cpp3ds/Window/GlContext.cpp | Naxann/cpp3ds | 1932e798306ec6d910c6a5b9e85e9d8f02fb815f | [
"MIT"
] | 15 | 2015-10-16T06:22:37.000Z | 2020-10-01T08:52:48.000Z | ////////////////////////////////////////////////////////////
//
// SFML - Simple and Fast Multimedia Library
// Copyright (C) 2007-2015 Laurent Gomila (laurent@sfml-dev.org)
//
// This software is provided 'as-is', without any express or implied warranty.
// In no event will the authors be held liable for any damages a... | 26.899543 | 172 | 0.531489 | cpp3ds |
098b203ed47ea2f83904ec142e8243af2693b5c2 | 425 | hpp | C++ | src/uml/src_gen/uml/TransitionKind.hpp | dataliz9r/MDE4CPP | 9c5ce01c800fb754c371f1a67f648366eeabae49 | [
"MIT"
] | 12 | 2017-02-17T10:33:51.000Z | 2022-03-01T02:48:10.000Z | src/uml/src_gen/uml/TransitionKind.hpp | dataliz9r/MDE4CPP | 9c5ce01c800fb754c371f1a67f648366eeabae49 | [
"MIT"
] | 28 | 2017-10-17T20:23:52.000Z | 2021-03-04T16:07:13.000Z | src/uml/src_gen/uml/TransitionKind.hpp | vallesch/MDE4CPP | 7f8a01dd6642820913b2214d255bef2ea76be309 | [
"MIT"
] | 22 | 2017-03-24T19:03:58.000Z | 2022-03-31T12:10:07.000Z | //********************************************************************
//*
//* Warning: This file was generated by ecore4CPP Generator
//*
//********************************************************************
#ifndef UML_TRANSITIONKIND_HPP
#define UML_TRANSITIONKIND_HPP
namespace uml
{
enum TransitionKind {
... | 20.238095 | 70 | 0.463529 | dataliz9r |
0995fe279f06b8839dcfdc735d9afb8c2abeb8d0 | 301 | cpp | C++ | codes/c++/69.cpp | YuanweiZHANG/Leetcode | 14a083528431bc65ada8f8265a5ef9d0fae40ecd | [
"MIT"
] | null | null | null | codes/c++/69.cpp | YuanweiZHANG/Leetcode | 14a083528431bc65ada8f8265a5ef9d0fae40ecd | [
"MIT"
] | null | null | null | codes/c++/69.cpp | YuanweiZHANG/Leetcode | 14a083528431bc65ada8f8265a5ef9d0fae40ecd | [
"MIT"
] | null | null | null | #include <iostream>
using namespace std;
/**
* 2020-04-10
* Veronica
*/
class Solution {
public:
int mySqrt(int x) {
long long i = 1;
while (i*i <= x) {
i++;
}
return i - 1;
}
};
int main() {
Solution solution;
int x = 2147395600;
cout << solution.mySqrt(x) << endl;
return 0;
}
| 10.75 | 36 | 0.578073 | YuanweiZHANG |
09980aeac67f7a1a8528444b824a41170a25512d | 584 | cpp | C++ | source/Animation.cpp | GoldenBunny/Millibox | 34fcd59bd1e5c1a97c1058032aefba0b11d8e48a | [
"MIT"
] | 1 | 2017-12-15T01:14:06.000Z | 2017-12-15T01:14:06.000Z | source/Animation.cpp | GoldenBunny/Millibox | 34fcd59bd1e5c1a97c1058032aefba0b11d8e48a | [
"MIT"
] | null | null | null | source/Animation.cpp | GoldenBunny/Millibox | 34fcd59bd1e5c1a97c1058032aefba0b11d8e48a | [
"MIT"
] | null | null | null | #include"Animation.h"
AnimationID animationGetID() {
static AnimationID id = 0;
return id++;
}
Animation::Animation() {
id_ = animationGetID();
}
Animation::~Animation() {
}
void Animation::update() {
}
void Animation::render() {
}
void Animation::setFrame(Frame& frame) {
currentFrame_ = &frame;
}
Frame& An... | 16.222222 | 60 | 0.703767 | GoldenBunny |
0999d0168753ba7c55d45a97979d1868f368ffaa | 426 | hxx | C++ | inc/html5xx.d/Th.hxx | astrorigin/html5xx | cbaaeb232597a713630df7425752051036cf0cb2 | [
"MIT"
] | null | null | null | inc/html5xx.d/Th.hxx | astrorigin/html5xx | cbaaeb232597a713630df7425752051036cf0cb2 | [
"MIT"
] | null | null | null | inc/html5xx.d/Th.hxx | astrorigin/html5xx | cbaaeb232597a713630df7425752051036cf0cb2 | [
"MIT"
] | null | null | null | /*
*
*/
#ifndef _HTML5XX_TH_HXX_
#define _HTML5XX_TH_HXX_
#include "Element.hxx"
#include "LineElement.hxx"
using namespace std;
namespace html
{
class Th: public Element
{
public:
Th():
Element(InlineBlock, "th")
{}
Th( const string& text ):
Element(InlineBlock, "th")
{
put(new LineElement... | 11.513514 | 34 | 0.643192 | astrorigin |
099ac66307ebad5646ad1a6c96e5befc8730a2d5 | 904 | cpp | C++ | 55_Jump_Game.cpp | AvadheshChamola/LeetCode | b0edabfa798c4e204b015f4c367bfc5acfbd8277 | [
"MIT"
] | null | null | null | 55_Jump_Game.cpp | AvadheshChamola/LeetCode | b0edabfa798c4e204b015f4c367bfc5acfbd8277 | [
"MIT"
] | null | null | null | 55_Jump_Game.cpp | AvadheshChamola/LeetCode | b0edabfa798c4e204b015f4c367bfc5acfbd8277 | [
"MIT"
] | null | null | null | /*
55. Jump Game
Medium
You are given an integer array nums. You are initially positioned at the array's first index, and each element in the array represents your maximum jump length at that position.
Return true if you can reach the last index, or false otherwise.
Example 1:
Input: nums = [2,3,1,1,4]
Output: t... | 21.52381 | 177 | 0.651549 | AvadheshChamola |
099ca926ae8826321fdccd4b02250d97515e334d | 2,045 | cpp | C++ | backtracking/leetcode_backtracking/palindrome_permutation_2.cpp | Hadleyhzy/data_structure_and_algorithm | 0e610ba78dcb216323d9434a0f182756780ce5c0 | [
"MIT"
] | 1 | 2020-10-12T19:18:19.000Z | 2020-10-12T19:18:19.000Z | backtracking/leetcode_backtracking/palindrome_permutation_2.cpp | Hadleyhzy/data_structure_and_algorithm | 0e610ba78dcb216323d9434a0f182756780ce5c0 | [
"MIT"
] | null | null | null | backtracking/leetcode_backtracking/palindrome_permutation_2.cpp | Hadleyhzy/data_structure_and_algorithm | 0e610ba78dcb216323d9434a0f182756780ce5c0 | [
"MIT"
] | 1 | 2020-10-12T19:18:04.000Z | 2020-10-12T19:18:04.000Z | //
// palindrome_permutation_2.cpp
// leetcode_backtracking
//
// Created by Hadley on 24.08.20.
// Copyright © 2020 Hadley. All rights reserved.
//
#include <stdio.h>
#include <algorithm>
#include <iostream>
#include <vector>
#include <string>
#include <unordered_map>
#include <stack>
#include <cstring>
#include ... | 24.638554 | 81 | 0.476284 | Hadleyhzy |
09a171be83c094ec30e3aedd37d69703e5f1102c | 4,202 | hpp | C++ | src/logistic_sim/include/OnlineDCOPTaskPlanner.hpp | Astuxx/RMAPD | 4d1c5f5d2e1ffa56094bbe79f818a536d0a48d52 | [
"Apache-2.0"
] | 2 | 2021-11-14T13:55:42.000Z | 2022-03-30T03:22:40.000Z | src/logistic_sim/include/OnlineDCOPTaskPlanner.hpp | Astuxx/RMAPD | 4d1c5f5d2e1ffa56094bbe79f818a536d0a48d52 | [
"Apache-2.0"
] | 5 | 2020-05-13T17:09:36.000Z | 2020-06-11T17:02:21.000Z | src/logistic_sim/include/OnlineDCOPTaskPlanner.hpp | antonellocontini/LogisticAgent | 5686bdd76462b6a0144d29295d449b29b76a8966 | [
"Apache-2.0"
] | null | null | null | #pragma once
#include "OnlineTaskPlanner.hpp"
#include "logistic_sim/ChangeEdge.h"
namespace onlinedcoptaskplanner
{
struct edge_modification_plan
{
uint from;
uint to;
uint timestep;
int type; //1 == removal, 0 == addition
const static int REMOVAL = 1;
const static int ADDITION = 0;
};
class OnlineDCOP... | 45.673913 | 161 | 0.672061 | Astuxx |
09a4a4443b0c7a13047d459f5642b11aa145f8f6 | 1,654 | hpp | C++ | include/axl.gl/gfx/texture/Texture.hpp | Defalt8/axl.gl | 0028bcad1a86b048831e5fd61a436663fd38a763 | [
"MIT"
] | 6 | 2020-11-20T08:29:33.000Z | 2021-12-13T14:41:52.000Z | include/axl.gl/gfx/texture/Texture.hpp | Defalt8/axl.gl | 0028bcad1a86b048831e5fd61a436663fd38a763 | [
"MIT"
] | null | null | null | include/axl.gl/gfx/texture/Texture.hpp | Defalt8/axl.gl | 0028bcad1a86b048831e5fd61a436663fd38a763 | [
"MIT"
] | null | null | null | #pragma once
#include "../../lib.hpp"
#include "../../ContextObject.hpp"
#include <axl.glfl/gl.hpp>
#include <axl.math/vec/Vec2i.hpp>
namespace axl {
namespace gl {
namespace gfx {
class AXLGLCXXAPI Texture : public ContextObject
{
public:
enum class Type { TT_1D = 1, TT_2D = 2, TT_3D = 3 };
public:
Texture(ax... | 36.755556 | 115 | 0.697703 | Defalt8 |
09a4c0c0325b8991137daf61041a995f1da1ae41 | 3,118 | hpp | C++ | src/cg.hpp | spinicist/riesling | fa98ef1380345aa47d57ba91c970f37fe8fc5405 | [
"MIT"
] | 14 | 2021-02-08T21:28:37.000Z | 2022-03-16T08:08:50.000Z | src/cg.hpp | spinicist/riesling | fa98ef1380345aa47d57ba91c970f37fe8fc5405 | [
"MIT"
] | 29 | 2021-02-19T11:59:33.000Z | 2022-02-24T20:45:57.000Z | src/cg.hpp | spinicist/riesling | fa98ef1380345aa47d57ba91c970f37fe8fc5405 | [
"MIT"
] | 3 | 2021-07-29T14:54:25.000Z | 2022-01-14T10:59:05.000Z | #pragma once
#include "log.h"
#include "tensorOps.h"
#include "threads.h"
#include "types.h"
/* Conjugate gradients as described in K. P. Pruessmann, M. Weiger, M. B. Scheidegger, and P.
* Boesiger, ‘SENSE: Sensitivity encoding for fast MRI’, Magnetic Resonance in Medicine, vol. 42,
* no. 5, pp. 952–962, 1999.
*/
... | 30.568627 | 97 | 0.603592 | spinicist |
09a705bb22d5d6b4b1e90882b1afa8d4d9e82d83 | 5,797 | cpp | C++ | dbms/src/Storages/DeltaMerge/ColumnFile/ColumnFile_V2.cpp | solotzg/tiflash | 66f45c76692e941bc845c01349ea89de0f2cc210 | [
"Apache-2.0"
] | 85 | 2022-03-25T09:03:16.000Z | 2022-03-25T09:45:03.000Z | dbms/src/Storages/DeltaMerge/ColumnFile/ColumnFile_V2.cpp | solotzg/tiflash | 66f45c76692e941bc845c01349ea89de0f2cc210 | [
"Apache-2.0"
] | 7 | 2022-03-25T08:59:10.000Z | 2022-03-25T09:40:13.000Z | dbms/src/Storages/DeltaMerge/ColumnFile/ColumnFile_V2.cpp | solotzg/tiflash | 66f45c76692e941bc845c01349ea89de0f2cc210 | [
"Apache-2.0"
] | 11 | 2022-03-25T09:15:36.000Z | 2022-03-25T09:45:07.000Z | // Copyright 2022 PingCAP, Ltd.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to i... | 31.677596 | 112 | 0.661549 | solotzg |
09a8f94ff7fc25dae5fb4875da7d70ec2e24222c | 7,666 | cpp | C++ | shared-code/kICMP.cpp | MythicMadTesla/Pumpkin | 6e7e413ca364d79673e523c09767c18e7cff1bec | [
"MIT"
] | 6 | 2017-01-23T18:18:03.000Z | 2022-01-31T06:07:02.000Z | shared-code/kICMP.cpp | hacker/T42 | 025f8c9b1a478eed9dcb9e0ac13b9e26e955860a | [
"MIT"
] | null | null | null | shared-code/kICMP.cpp | hacker/T42 | 025f8c9b1a478eed9dcb9e0ac13b9e26e955860a | [
"MIT"
] | 3 | 2016-10-24T03:32:35.000Z | 2022-03-13T21:00:38.000Z | #include "../stdafx.h"
#include "kICMP.h"
CICMP::_mechanismus CICMP::m_mechanismus = CICMP::_icmpUndetermined;
BOOL CICMPDll::Initialize()
{
if(m_hICMP!=INVALID_HANDLE_VALUE || m_hICMPDLL)
Deinitialize();
m_hICMPDLL = ::LoadLibraryEx("ICMP",NULL,0);
if(!m_hICMPDLL)
return FALSE;
*(FARPROC*)&m_icmp... | 25.553333 | 76 | 0.67845 | MythicMadTesla |
09aa022aa668f3b3c590df2a4d7f0013c725b9c5 | 584 | cpp | C++ | Labs/Lab10/Apoio/NaoInicializado.cpp | JudsonSS/ProgComp | 6435c3e31a4b0715805feaf890223838161d11f0 | [
"MIT"
] | 11 | 2021-03-04T03:58:09.000Z | 2022-02-27T16:32:41.000Z | Labs/Lab10/Apoio/NaoInicializado.cpp | JudsonSS/ProgComp | 6435c3e31a4b0715805feaf890223838161d11f0 | [
"MIT"
] | null | null | null | Labs/Lab10/Apoio/NaoInicializado.cpp | JudsonSS/ProgComp | 6435c3e31a4b0715805feaf890223838161d11f0 | [
"MIT"
] | 7 | 2021-03-02T22:34:33.000Z | 2022-03-06T21:18:15.000Z | #include <iostream>
using namespace std;
int main()
{
int v[3]; // cria vetor de 3 elementos
cout << "Conteudo da posicao 0: " << v[0] << endl;
cout << "Conteudo da posicao 1: " << v[1] << endl;
cout << "Conteudo da posicao 2: " << v[2] << endl << endl;
v[0] = 0; v[1] = 0; v[2] = 0;
cout << "Conteudo da p... | 26.545455 | 59 | 0.532534 | JudsonSS |
09ac28c4ba8f62d1ccbf68ad5d6c2f9e6a895343 | 529 | cpp | C++ | Chapter-6-Functions/Review Questions and Exercises/Algorithm Workbench/35.cpp | jesushilarioh/C-Plus-Plus | bbff921460ac4267af48558f040c7d82ccf42d5e | [
"MIT"
] | 3 | 2019-10-28T01:12:46.000Z | 2021-10-16T09:16:31.000Z | Chapter-6-Functions/Review Questions and Exercises/Algorithm Workbench/35.cpp | jesushilarioh/C-Plus-Plus | bbff921460ac4267af48558f040c7d82ccf42d5e | [
"MIT"
] | null | null | null | Chapter-6-Functions/Review Questions and Exercises/Algorithm Workbench/35.cpp | jesushilarioh/C-Plus-Plus | bbff921460ac4267af48558f040c7d82ccf42d5e | [
"MIT"
] | 4 | 2020-04-10T17:22:17.000Z | 2021-11-04T14:34:00.000Z | /********************************************************************
*
* 35. Write a function named timesTen that accepts an argument.
* When the function is called, it should display the
* product of its argument multiplied times 10.
*
* Jesus Hilario Hernandez
* December 3, 2018
*
*************... | 21.16 | 69 | 0.476371 | jesushilarioh |
09bb578416867c3e8b94ff4658b03785186c763a | 11,683 | cpp | C++ | qabstractitemview_c.cpp | mariuszmaximus/qt5pas-aarch64-linux-gnu | c60bbcfa5b0d7c4fe18bb21e5f2f424a5b658c1b | [
"Apache-2.0"
] | null | null | null | qabstractitemview_c.cpp | mariuszmaximus/qt5pas-aarch64-linux-gnu | c60bbcfa5b0d7c4fe18bb21e5f2f424a5b658c1b | [
"Apache-2.0"
] | null | null | null | qabstractitemview_c.cpp | mariuszmaximus/qt5pas-aarch64-linux-gnu | c60bbcfa5b0d7c4fe18bb21e5f2f424a5b658c1b | [
"Apache-2.0"
] | null | null | null | //******************************************************************************
// Copyright (c) 2005-2013 by Jan Van hijfte
//
// See the included file COPYING.TXT for details about the copyright.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the i... | 33.096317 | 120 | 0.805101 | mariuszmaximus |
09c0367b4e8144139b5fd63ac1ed0628c1ba92f9 | 6,348 | cpp | C++ | src/tdmms_stamper/tdmms_autostamp/tdmms_autostamp_autofocus_action/src/tdmms_autostamp_autofocus_action_node.cpp | tdmms/tdmms | 1bd779bb3d6fe6451cdc08dcd5b15a1bcbd03b35 | [
"BSD-3-Clause"
] | 16 | 2018-04-28T07:34:04.000Z | 2022-01-27T02:46:43.000Z | src/tdmms_stamper/tdmms_autostamp/tdmms_autostamp_autofocus_action/src/tdmms_autostamp_autofocus_action_node.cpp | tdmms/tdmms | 1bd779bb3d6fe6451cdc08dcd5b15a1bcbd03b35 | [
"BSD-3-Clause"
] | 1 | 2018-10-16T08:41:55.000Z | 2018-10-16T08:44:33.000Z | src/tdmms_stamper/tdmms_autostamp/tdmms_autostamp_autofocus_action/src/tdmms_autostamp_autofocus_action_node.cpp | tdmms/tdmms | 1bd779bb3d6fe6451cdc08dcd5b15a1bcbd03b35 | [
"BSD-3-Clause"
] | 2 | 2018-04-17T14:03:15.000Z | 2020-05-12T04:59:43.000Z | // Copyright 2016 by S. Masubuchi
#include <ros/ros.h>
#include <std_msgs/Empty.h>
#include <std_srvs/Empty.h>
#include <std_msgs/UInt8.h>
#include <std_msgs/UInt32.h>
#include <geometry_msgs/Pose.h>
#include <geometry_msgs/Point.h>
#include <stamper_sample_z/velocity.h>
#include <actionlib/server/simple_action_server... | 35.071823 | 80 | 0.68305 | tdmms |
09c28f0640091347929ccc8fccfbd7ca14b099aa | 348 | cc | C++ | kattis/differentdistances.cc | Ashindustry007/competitive-programming | 2eabd3975c029d235abb7854569593d334acae2f | [
"WTFPL"
] | 506 | 2018-08-22T10:30:38.000Z | 2022-03-31T10:01:49.000Z | kattis/differentdistances.cc | Ashindustry007/competitive-programming | 2eabd3975c029d235abb7854569593d334acae2f | [
"WTFPL"
] | 13 | 2019-08-07T18:31:18.000Z | 2020-12-15T21:54:41.000Z | kattis/differentdistances.cc | Ashindustry007/competitive-programming | 2eabd3975c029d235abb7854569593d334acae2f | [
"WTFPL"
] | 234 | 2018-08-06T17:11:41.000Z | 2022-03-26T10:56:42.000Z | // https://open.kattis.com/problems/differentdistances
#include <cmath>
#include <iostream>
using namespace std;
int main() {
while (true) {
double x1, y1, x2, y2, p;
cin >> x1;
if (!x1) break;
cin >> y1 >> x2 >> y2 >> p;
cout << pow(pow(abs(x1 - x2), p) + pow(abs(y1 - y2),... | 23.2 | 80 | 0.511494 | Ashindustry007 |
09c645719ac0202fd7df492ccab960fc05253e96 | 1,988 | cpp | C++ | mp2p_icp/src/Parameters.cpp | MOLAorg/mp2_icp | e53a5f5f2cc6b86a095d1cba6f07f03c13a72abb | [
"BSD-3-Clause"
] | 82 | 2019-06-09T15:33:07.000Z | 2022-03-22T11:04:09.000Z | mp2p_icp/src/Parameters.cpp | MOLAorg/mp2_icp | e53a5f5f2cc6b86a095d1cba6f07f03c13a72abb | [
"BSD-3-Clause"
] | null | null | null | mp2p_icp/src/Parameters.cpp | MOLAorg/mp2_icp | e53a5f5f2cc6b86a095d1cba6f07f03c13a72abb | [
"BSD-3-Clause"
] | 19 | 2019-06-19T10:05:08.000Z | 2021-07-28T08:37:34.000Z | /* -------------------------------------------------------------------------
* A repertory of multi primitive-to-primitive (MP2P) ICP algorithms in C++
* Copyright (C) 2018-2021 Jose Luis Blanco, University of Almeria
* See LICENSE for license information.
* --------------------------------------------------------... | 33.133333 | 80 | 0.65996 | MOLAorg |
09c9bd9b13d66629443dce80ac037aa34a8fb77e | 6,256 | cpp | C++ | src/joystick_js.cpp | chmutoff/esp-tank | ecb2a14317112e54001ff232a836e915b6ef2a6c | [
"MIT"
] | null | null | null | src/joystick_js.cpp | chmutoff/esp-tank | ecb2a14317112e54001ff232a836e915b6ef2a6c | [
"MIT"
] | null | null | null | src/joystick_js.cpp | chmutoff/esp-tank | ecb2a14317112e54001ff232a836e915b6ef2a6c | [
"MIT"
] | null | null | null | #include <pgmspace.h>
static const char JOYSTICK_HTML[] PROGMEM = R"(/*
* Name : joy.js
* @author : Roberto D'Amico (Bobboteck)
* Last modified : 09.06.2020
* Revision : 2.0.0
*
* Modification History:
* Date Version Modified By Description
* 2021-12-21 2.0.0 Roberto... | 122.666667 | 3,415 | 0.683824 | chmutoff |
09cb458642a2dafb2b0629b730e9dbdc3aaf7a17 | 1,915 | cc | C++ | src/lhco.cc | cbpark/CLHCO | 4f6f73dc7a3a4dc25bfc7d7be9d34d5dd59fb9f0 | [
"BSD-3-Clause"
] | null | null | null | src/lhco.cc | cbpark/CLHCO | 4f6f73dc7a3a4dc25bfc7d7be9d34d5dd59fb9f0 | [
"BSD-3-Clause"
] | null | null | null | src/lhco.cc | cbpark/CLHCO | 4f6f73dc7a3a4dc25bfc7d7be9d34d5dd59fb9f0 | [
"BSD-3-Clause"
] | null | null | null | /* Copyright (c) 2015, 2017, Chan Beom Park <cbpark@gmail.com> */
#include "lhco.h"
#include <cmath>
#include <vector>
#include "kinematics.h"
namespace lhco {
template <typename T>
int numOfParticles(const Pt &pt, const Eta &eta, const std::vector<T> &ps) {
int count = 0;
for (const auto &p : ps) {
i... | 28.161765 | 76 | 0.643342 | cbpark |
09cd1788e5cc2e597e58e3029bcf0543c0ed3020 | 13,402 | inl | C++ | src/render/scene.inl | hyungman/SpRay | 96380740dd88e6fbc21c0fdbf232cff357b1235d | [
"Apache-2.0"
] | 7 | 2018-10-22T17:13:36.000Z | 2020-04-17T08:28:55.000Z | src/render/scene.inl | hyungman/SpRay | 96380740dd88e6fbc21c0fdbf232cff357b1235d | [
"Apache-2.0"
] | null | null | null | src/render/scene.inl | hyungman/SpRay | 96380740dd88e6fbc21c0fdbf232cff357b1235d | [
"Apache-2.0"
] | 1 | 2018-11-01T14:53:22.000Z | 2018-11-01T14:53:22.000Z | // ========================================================================== //
// Copyright (c) 2017-2018 The University of Texas at Austin. //
// All rights reserved. //
// ... | 31.909524 | 80 | 0.606178 | hyungman |
09daa83999e0ab186cc26ed886845e78c830da83 | 343 | cpp | C++ | physics/BtShape.cpp | quyse/inanity | a39225c5a41f879abe5aa492bb22b500dbe77433 | [
"MIT"
] | 26 | 2015-04-22T05:25:25.000Z | 2020-11-15T11:07:56.000Z | physics/BtShape.cpp | quyse/inanity | a39225c5a41f879abe5aa492bb22b500dbe77433 | [
"MIT"
] | 2 | 2015-01-05T10:41:27.000Z | 2015-01-06T20:46:11.000Z | physics/BtShape.cpp | quyse/inanity | a39225c5a41f879abe5aa492bb22b500dbe77433 | [
"MIT"
] | 5 | 2016-08-02T11:13:57.000Z | 2018-10-26T11:19:27.000Z | #include "BtShape.hpp"
#include "BtWorld.hpp"
BEGIN_INANITY_PHYSICS
BtShape::BtShape(ptr<BtWorld> world, btCollisionShape* collisionShape)
: Shape(world), collisionShape(collisionShape) {}
BtShape::~BtShape()
{
delete collisionShape;
}
btCollisionShape* BtShape::GetInternalObject() const
{
return collisionShape;
... | 17.15 | 70 | 0.787172 | quyse |
09df9723e53e1a24433f5b53e07938041882814c | 2,135 | cc | C++ | zoltan/apfZoltanMesh.cc | cwsmith/core | 840fbf6ec49a63aeaa3945f11ddb224f6055ac9f | [
"BSD-3-Clause"
] | 138 | 2015-01-05T15:50:20.000Z | 2022-02-25T01:09:58.000Z | zoltan/apfZoltanMesh.cc | cwsmith/core | 840fbf6ec49a63aeaa3945f11ddb224f6055ac9f | [
"BSD-3-Clause"
] | 337 | 2015-08-07T18:24:58.000Z | 2022-03-31T14:39:03.000Z | zoltan/apfZoltanMesh.cc | cwsmith/core | 840fbf6ec49a63aeaa3945f11ddb224f6055ac9f | [
"BSD-3-Clause"
] | 70 | 2015-01-17T00:58:41.000Z | 2022-02-13T04:58:20.000Z | /*
* Copyright (C) 2014 Scientific Computation Research Center
*
* This work is open source software, licensed under the terms of the
* BSD license as described in the LICENSE file in the top-level directory.
*/
#include "apfZoltanMesh.h"
#include "apfZoltanCallbacks.h"
#include "apfZoltan.h"
#include <PCU.h>
#in... | 22.473684 | 78 | 0.668384 | cwsmith |
09ea2db98bbe498e910f00466b9e4dbe4a8397f7 | 4,230 | cpp | C++ | Src/VC/bcgcbpro/BCGPStaticGaugeImpl.cpp | iclosure/smartsoft | 62eaed49efd8306642b928ef4f2d96e36aca6527 | [
"MIT"
] | null | null | null | Src/VC/bcgcbpro/BCGPStaticGaugeImpl.cpp | iclosure/smartsoft | 62eaed49efd8306642b928ef4f2d96e36aca6527 | [
"MIT"
] | null | null | null | Src/VC/bcgcbpro/BCGPStaticGaugeImpl.cpp | iclosure/smartsoft | 62eaed49efd8306642b928ef4f2d96e36aca6527 | [
"MIT"
] | 1 | 2020-05-11T05:36:49.000Z | 2020-05-11T05:36:49.000Z | //*******************************************************************************
// COPYRIGHT NOTES
// ---------------
// This is a part of the BCGControlBar Library
// Copyright (C) 1998-2012 BCGSoft Ltd.
// All rights reserved.
//
// This source code can be used, distributed or modified
// only under terms and condi... | 25.329341 | 100 | 0.520567 | iclosure |
09eb7ea30cbf59a6eb696c77f2d09f7d3c44c12a | 2,297 | cpp | C++ | src/tbdmud_server.cpp | charleslucas/tbdmud | 58023c9af23dd69e6de93bb5295dc9047a7b3998 | [
"MIT"
] | null | null | null | src/tbdmud_server.cpp | charleslucas/tbdmud | 58023c9af23dd69e6de93bb5295dc9047a7b3998 | [
"MIT"
] | null | null | null | src/tbdmud_server.cpp | charleslucas/tbdmud | 58023c9af23dd69e6de93bb5295dc9047a7b3998 | [
"MIT"
] | null | null | null | #include <iostream>
#include <boost/asio.hpp>
#include <boost/bind/bind.hpp>
#include <boost/algorithm/string.hpp>
#include <optional>
#include <queue>
#include <unordered_set>
#include <events.h>
#include <entities.h>
#include <session.h>
#include <world.h>
#include <tbdmud_server.h>
// Call the tick function of the ... | 42.537037 | 178 | 0.679147 | charleslucas |
09ecb487e1831adec8bfb3925ca00f20b7d77c95 | 20,459 | hpp | C++ | 2d/extra/MeshR2.hpp | danston/gbc | 0cb1ae062919b053edc1558bdf41757460703eca | [
"MIT"
] | 16 | 2016-12-06T10:35:46.000Z | 2022-01-19T01:20:56.000Z | 2d/extra/MeshR2.hpp | danston/sbc | e53deb997bc6c119bfacd6da6a234f64068efc1e | [
"MIT"
] | 1 | 2020-02-11T10:45:30.000Z | 2021-03-12T11:08:03.000Z | 2d/extra/MeshR2.hpp | danston/sbc | e53deb997bc6c119bfacd6da6a234f64068efc1e | [
"MIT"
] | 3 | 2018-05-10T14:34:35.000Z | 2021-12-20T10:01:21.000Z | // Copyright Dmitry Anisimov danston@ymail.com (c) 2016-2017.
// README:
/*
Implementation of the triangle/quad mesh in R2.
This class depends on:
1. VertexExpressionsR2.hpp
2. VertexR2.hpp
3. TriangleCoordinatesR2.hpp
4. Face.hpp
5. Halfedge.hpp
6. MeanValueR2.hpp
*/
#ifndef GBC_ME... | 29.227143 | 125 | 0.446454 | danston |
09f020354d81d5d99721066d40c5df880ef27319 | 1,461 | cpp | C++ | apps/opencs/view/render/overlaymask.cpp | Bodillium/openmw | 5fdd264d0704e33b44b1ccf17ab4fb721f362e34 | [
"Unlicense"
] | null | null | null | apps/opencs/view/render/overlaymask.cpp | Bodillium/openmw | 5fdd264d0704e33b44b1ccf17ab4fb721f362e34 | [
"Unlicense"
] | null | null | null | apps/opencs/view/render/overlaymask.cpp | Bodillium/openmw | 5fdd264d0704e33b44b1ccf17ab4fb721f362e34 | [
"Unlicense"
] | null | null | null | #include "overlaymask.hpp"
#include <OgreOverlayManager.h>
#include <OgreOverlayContainer.h>
#include "textoverlay.hpp"
#include "../../model/world/cellcoordinates.hpp"
namespace CSVRender
{
// ideas from http://www.ogre3d.org/forums/viewtopic.php?f=5&t=44828#p486334
OverlayMask::OverlayMask(std::map<CSMWorld::Cell... | 27.566038 | 112 | 0.64271 | Bodillium |
09f52a0992418ee119a6bf9ba0798c516fd1ecf4 | 2,106 | hpp | C++ | WinApiFramework/Framework/Mouse.hpp | TonSharp/OpenWAPI | d61a8f006ea866c399e68f338c2661e9ef624369 | [
"MS-PL"
] | 3 | 2021-09-17T07:54:28.000Z | 2021-09-18T08:28:33.000Z | WinApiFramework/Framework/Mouse.hpp | TonSharp/WAPITIS | d61a8f006ea866c399e68f338c2661e9ef624369 | [
"MS-PL"
] | 21 | 2021-09-19T18:13:55.000Z | 2021-12-14T10:28:53.000Z | WinApiFramework/Framework/Mouse.hpp | TonSharp/OpenWAPI | d61a8f006ea866c399e68f338c2661e9ef624369 | [
"MS-PL"
] | null | null | null | #pragma once
#include "Elements/Args.hpp"
class Mouse
{
private:
static float x, y;
static float dx, dy;
static bool cursorLock;
static Window* linkedWindow;
public:
static void LockCursor()
{
cursorLock = true;
if (linkedWindow != nullptr)
SetCapture(linkedWindow->Get());
}
static void UnlockCurso... | 16.453125 | 81 | 0.671415 | TonSharp |
09f7f7081953fcbbf81323b057c90420492039c3 | 284 | cpp | C++ | URI_1013.cpp | UmamaZakir/URI-Online-Judge.-begginer | b0a6d60b48b64790a0a502bbbcbc5c604b09826b | [
"MIT"
] | 1 | 2021-07-11T17:00:52.000Z | 2021-07-11T17:00:52.000Z | URI_1013.cpp | UmamaZakir/URI-Online-Judge.-begginer | b0a6d60b48b64790a0a502bbbcbc5c604b09826b | [
"MIT"
] | null | null | null | URI_1013.cpp | UmamaZakir/URI-Online-Judge.-begginer | b0a6d60b48b64790a0a502bbbcbc5c604b09826b | [
"MIT"
] | null | null | null |
#include <bits/stdc++.h>
using namespace std;
int main()
{
ios_base::sync_with_stdio(false);
cin.tie(NULL);
long long a,b,c,mab,m;
cin>>a>>b>>c;
mab=(a+b+abs(a-b))/2;
m=(mab+c+abs(mab-c))/2;
cout<<m<<" eh o maior"<<"\n";
return 0;
}
| 16.705882 | 38 | 0.507042 | UmamaZakir |
09f8dcb967908e96d6d9ebaa23391b332c95004b | 4,260 | cpp | C++ | usb_492/USB_Device.cpp | dl8dtl/tek492 | 4303c6db2a4fe19c5a0129b831354ff6f04a1a6e | [
"Beerware"
] | 1 | 2021-03-24T08:33:45.000Z | 2021-03-24T08:33:45.000Z | usb_492/USB_Device.cpp | dl8dtl/tek492 | 4303c6db2a4fe19c5a0129b831354ff6f04a1a6e | [
"Beerware"
] | null | null | null | usb_492/USB_Device.cpp | dl8dtl/tek492 | 4303c6db2a4fe19c5a0129b831354ff6f04a1a6e | [
"Beerware"
] | 1 | 2021-03-24T08:33:46.000Z | 2021-03-24T08:33:46.000Z | /*
* This is mostly taken from circuitben's original software which
* is believed to be public domain.
*
* http://www.circuitben.net/node/4
*/
/*
* As this application uses Qt, any redistribution is bound to the
* terms of either the GNU Lesser General Public License v. 3 ("LGPL"),
* or to any commercial Qt li... | 22.539683 | 139 | 0.595305 | dl8dtl |
09f987f5d6bee75ded3745752a6f3152b9159537 | 3,449 | cpp | C++ | letstry/server.cpp | MarcusM94/Vehicles-in-IoT-Environments | 5f885ff826a57b5c6ca4a67582e7ea11e4f15116 | [
"MIT"
] | null | null | null | letstry/server.cpp | MarcusM94/Vehicles-in-IoT-Environments | 5f885ff826a57b5c6ca4a67582e7ea11e4f15116 | [
"MIT"
] | null | null | null | letstry/server.cpp | MarcusM94/Vehicles-in-IoT-Environments | 5f885ff826a57b5c6ca4a67582e7ea11e4f15116 | [
"MIT"
] | null | null | null | #include <qsocket.h>
#include <qserversocket.h>
#include <qapplication.h>
#include <qvbox.h>
#include <qtextview.h>
#include <qlabel.h>
#include <qpushbutton.h>
#include <qtextstream.h>
#include <stdlib.h>
/*
The ClientSocket class provides a socket that is connected with a client.
For every client that connects... | 22.396104 | 79 | 0.578718 | MarcusM94 |
09fbd4a43d5bf687eb79687d7d84cc59a3f6f59e | 1,272 | cpp | C++ | LeetCode/ThousandOne/0398-random_pick_idx.cpp | Ginkgo-Biloba/Cpp-Repo1-VS | 231c68a055e6bf69a3f7c224e7c0182b67ce5b67 | [
"Apache-2.0"
] | null | null | null | LeetCode/ThousandOne/0398-random_pick_idx.cpp | Ginkgo-Biloba/Cpp-Repo1-VS | 231c68a055e6bf69a3f7c224e7c0182b67ce5b67 | [
"Apache-2.0"
] | null | null | null | LeetCode/ThousandOne/0398-random_pick_idx.cpp | Ginkgo-Biloba/Cpp-Repo1-VS | 231c68a055e6bf69a3f7c224e7c0182b67ce5b67 | [
"Apache-2.0"
] | null | null | null | #include "leetcode.hpp"
/* 398. 随机数索引
给定一个可能含有重复元素的整数数组,要求随机输出给定的数字的索引。
您可以假设给定的数字一定存在于数组中。
注意:
数组大小可能非常大。 使用太多额外空间的解决方案将不会通过测试。
示例:
int[] nums = new int[] {1,2,3,3,3};
Solution solution = new Solution(nums);
// pick(3) 应该返回索引 2,3 或者 4。每个索引的返回概率应该相等。
solution.pick(3);
// pick(1) 应该返回 0。因为只有nums[0]等于1。
solution.pick... | 19.569231 | 82 | 0.618711 | Ginkgo-Biloba |
6702b32cf7c4725d68afc34f7283d8d9aaee55ec | 1,120 | cpp | C++ | cpp/021-030/Substring with Concatenation of All Words.cpp | KaiyuWei/leetcode | fd61f5df60cfc7086f7e85774704bacacb4aaa5c | [
"MIT"
] | 150 | 2015-04-04T06:53:49.000Z | 2022-03-21T13:32:08.000Z | cpp/021-030/Substring with Concatenation of All Words.cpp | yizhu1012/leetcode | d6fa443a8517956f1fcc149c8c4f42c0ad93a4a7 | [
"MIT"
] | 1 | 2015-04-13T15:15:40.000Z | 2015-04-21T20:23:16.000Z | cpp/021-030/Substring with Concatenation of All Words.cpp | yizhu1012/leetcode | d6fa443a8517956f1fcc149c8c4f42c0ad93a4a7 | [
"MIT"
] | 64 | 2015-06-30T08:00:07.000Z | 2022-01-01T16:44:14.000Z | class Solution {
public:
vector<int> findSubstring(string s, vector<string>& words) {
vector<int> res;
unordered_map<string, int> dict;
int len = words[0].size();
int n = s.length(), m = words.size();
for (const string& word : words) {
dict[word]++;
}
... | 30.27027 | 64 | 0.365179 | KaiyuWei |
6703f667d66470d39ed449a681aa7e3a6c55d286 | 2,735 | cpp | C++ | source/material/material.cpp | suVrik/path_tracer | 9c1a75914e67e75ed4169468c4db87b4498c27f0 | [
"MIT"
] | null | null | null | source/material/material.cpp | suVrik/path_tracer | 9c1a75914e67e75ed4169468c4db87b4498c27f0 | [
"MIT"
] | null | null | null | source/material/material.cpp | suVrik/path_tracer | 9c1a75914e67e75ed4169468c4db87b4498c27f0 | [
"MIT"
] | null | null | null | #include "material.h"
#include <algorithm>
#include <cassert>
double fresnel_dielectric(double incident_cos_theta, double incident_ior, double transmitted_ior) {
assert(incident_cos_theta >= -1.0 && incident_cos_theta != 0.0 && incident_cos_theta <= 1.0);
assert(incident_ior >= 1.0);
assert(transmitted_io... | 33.353659 | 105 | 0.683364 | suVrik |
67072c23a0bcecfef584808eed187fac7af289cc | 4,328 | cpp | C++ | pi/android/jni/Nanaka.cpp | mathall/nanaka | 0304f444702318a83d221645d4e5f3622082c456 | [
"BSD-2-Clause"
] | 2 | 2017-03-31T19:01:22.000Z | 2017-05-18T08:14:37.000Z | pi/android/jni/Nanaka.cpp | mathall/nanaka | 0304f444702318a83d221645d4e5f3622082c456 | [
"BSD-2-Clause"
] | null | null | null | pi/android/jni/Nanaka.cpp | mathall/nanaka | 0304f444702318a83d221645d4e5f3622082c456 | [
"BSD-2-Clause"
] | null | null | null | /*
* Copyright (c) 2013, Mathias Hällman. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* 1. Redistributions of source code must retain the above copyright notice,
* this list of condi... | 30.695035 | 79 | 0.778651 | mathall |
670d29e702689c1cb56d67a1c307eedc1fef3fac | 633 | cpp | C++ | Engine/Managers/AIManager.cpp | gaspardpetit/INF740-GameEngine | 075b6563204fb3d1cf7531599f30dd296c2c9239 | [
"Apache-2.0"
] | null | null | null | Engine/Managers/AIManager.cpp | gaspardpetit/INF740-GameEngine | 075b6563204fb3d1cf7531599f30dd296c2c9239 | [
"Apache-2.0"
] | null | null | null | Engine/Managers/AIManager.cpp | gaspardpetit/INF740-GameEngine | 075b6563204fb3d1cf7531599f30dd296c2c9239 | [
"Apache-2.0"
] | 1 | 2015-09-25T22:24:16.000Z | 2015-09-25T22:24:16.000Z | #include "Precompiled.h"
#include "Core/Components/IIAInterface.h"
#include "AIManager.h"
#include <algorithm>
#include <assert.h>
namespace engine {
void AIManager::createComponent( IAIInterface *iAIInstance )
{
_aiInstances.emplace_back(iAIInstance);
}
void AIManager::removeComponent( IAIInterface *iAIInstance )... | 19.78125 | 80 | 0.725118 | gaspardpetit |
670e3dd684597fd50a4e4df332f58f3f8d241dbb | 15,911 | cpp | C++ | test/kernel/manager_test.cpp | correaa/metall | f58728a5e963a6e77b68c1853d3d1ba1fe6a58b4 | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] | null | null | null | test/kernel/manager_test.cpp | correaa/metall | f58728a5e963a6e77b68c1853d3d1ba1fe6a58b4 | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] | null | null | null | test/kernel/manager_test.cpp | correaa/metall | f58728a5e963a6e77b68c1853d3d1ba1fe6a58b4 | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] | null | null | null | // Copyright 2019 Lawrence Livermore National Security, LLC and other Metall Project Developers.
// See the top-level COPYRIGHT file for details.
//
// SPDX-License-Identifier: (Apache-2.0 OR MIT)
#include "gtest/gtest.h"
#include <unordered_set>
#include <boost/container/scoped_allocator.hpp>
#include <boost/interp... | 32.208502 | 127 | 0.663629 | correaa |
e2546d1c24a7e3e0e7d20e6501afb07c0543a152 | 3,579 | cpp | C++ | Project/Engine/Source/DataStream.cpp | lcomstive/Graphics-Assessment | bc52f41b31646ca5d2bb20669704db83c4f77361 | [
"MIT-0"
] | null | null | null | Project/Engine/Source/DataStream.cpp | lcomstive/Graphics-Assessment | bc52f41b31646ca5d2bb20669704db83c4f77361 | [
"MIT-0"
] | null | null | null | Project/Engine/Source/DataStream.cpp | lcomstive/Graphics-Assessment | bc52f41b31646ca5d2bb20669704db83c4f77361 | [
"MIT-0"
] | 1 | 2022-03-23T00:28:52.000Z | 2022-03-23T00:28:52.000Z | #include <string>
#include <iostream>
#include <Engine/Utilities.hpp>
#include <Engine/DataStream.hpp>
using namespace std;
using namespace Engine;
const size_t DataStream::s_InitialStreamSize = 4096; // 4KB
DataStream::DataStream(size_t initialSize) : m_Writing(true), m_Index(0), m_Length(initialSize), m_Data(new u... | 28.404762 | 139 | 0.721989 | lcomstive |
e25854af1f5a7eb696b6e89f9a6a291a5e61d380 | 534 | cpp | C++ | thirdparty/simdjson/src/arm64/stage2.cpp | liftchampion/nativejson-benchmark | 6d575ffa4359a5c4230f74b07d994602a8016fb5 | [
"MIT"
] | 1 | 2021-11-17T21:39:49.000Z | 2021-11-17T21:39:49.000Z | src/arm64/stage2.cpp | lemire/simdjson_cxxopts_tools | 91016c31bdba68fa5920e8d0012a2ded9d7347b6 | [
"Apache-2.0"
] | 1 | 2020-05-29T09:28:02.000Z | 2020-05-29T09:28:02.000Z | src/arm64/stage2.cpp | lemire/simdjson_cxxopts_tools | 91016c31bdba68fa5920e8d0012a2ded9d7347b6 | [
"Apache-2.0"
] | 1 | 2020-05-28T13:57:15.000Z | 2020-05-28T13:57:15.000Z | #ifndef SIMDJSON_ARM64_STAGE2_H
#define SIMDJSON_ARM64_STAGE2_H
#include "simdjson.h"
#include "arm64/implementation.h"
#include "arm64/stringparsing.h"
#include "arm64/numberparsing.h"
namespace simdjson {
namespace arm64 {
#include "generic/stage2/logger.h"
#include "generic/stage2/atomparsing.h"
#include "generic... | 24.272727 | 55 | 0.801498 | liftchampion |
e25ab94ca0dce9a8770721ca2d3151c46d74493f | 555 | inl | C++ | Src/AGZUtils/Math/SwizzleVec2.inl | AirGuanZ/Utils | 6ededbd838697682430a2c0746bfd3b36ff14a5b | [
"MIT"
] | 10 | 2018-10-30T14:19:57.000Z | 2021-12-06T07:46:59.000Z | Src/AGZUtils/Math/SwizzleVec2.inl | AirGuanZ/Utils | 6ededbd838697682430a2c0746bfd3b36ff14a5b | [
"MIT"
] | null | null | null | Src/AGZUtils/Math/SwizzleVec2.inl | AirGuanZ/Utils | 6ededbd838697682430a2c0746bfd3b36ff14a5b | [
"MIT"
] | 3 | 2019-04-24T13:42:02.000Z | 2021-06-28T08:17:28.000Z | #define SWIZZLE2(A, B) _SWIZZLE2(A, B)
#define SWIZZLE3(A, B, C) _SWIZZLE3(A, B, C)
#define SWIZZLE4(A, B, C, D) _SWIZZLE4(A, B, C, D)
#define _SWIZZLE2(A, B) Vec2<T> A##B() const { return Vec2<T>(A, B); }
#define _SWIZZLE3(A, B, C) Vec3<T> A##B##C() const { return Vec3<T>(A, B, C); }
#define _SWIZZL... | 27.75 | 88 | 0.618018 | AirGuanZ |
e25af265b0a86a613701620396130a8b2f54dea7 | 6,579 | cpp | C++ | LIA_RAL_3.0/LIA_SpkDet/EigenVoice/src/EigenVoice.cpp | ibillxia/VoicePrintReco | 20bf32f183abcd483fe1da451b4c75cf995b5f26 | [
"MIT"
] | 83 | 2015-01-18T01:20:37.000Z | 2022-03-02T20:15:27.000Z | LIA_RAL_3.0/LIA_SpkDet/EigenVoice/src/EigenVoice.cpp | Dystopiaz/VoicePrintReco | 20bf32f183abcd483fe1da451b4c75cf995b5f26 | [
"MIT"
] | 4 | 2016-03-03T08:43:00.000Z | 2019-03-08T06:20:56.000Z | LIA_RAL_3.0/LIA_SpkDet/EigenVoice/src/EigenVoice.cpp | Dystopiaz/VoicePrintReco | 20bf32f183abcd483fe1da451b4c75cf995b5f26 | [
"MIT"
] | 59 | 2015-02-02T03:07:37.000Z | 2021-11-22T12:05:42.000Z | /*
This file is part of LIA_RAL which is a set of software based on ALIZE
toolkit for speaker recognition. ALIZE toolkit is required to use LIA_RAL.
LIA_RAL project is a development project was initiated by the computer
science laboratory of Avignon / France (Laboratoire Informatique d'Avignon -
LIA) [http://lia.univ-... | 38.25 | 157 | 0.738714 | ibillxia |
e263fe91ac589101548d684bb3d377352e6c30d8 | 322 | cpp | C++ | C++/functions.cpp | tonmarcondes/UNIVESP | a66a623d4811e8f3f9e2999f09e38a4470035ae2 | [
"MIT"
] | null | null | null | C++/functions.cpp | tonmarcondes/UNIVESP | a66a623d4811e8f3f9e2999f09e38a4470035ae2 | [
"MIT"
] | null | null | null | C++/functions.cpp | tonmarcondes/UNIVESP | a66a623d4811e8f3f9e2999f09e38a4470035ae2 | [
"MIT"
] | null | null | null | #include <iostream>
using namespace std;
int sum(int n1, int n2){
return (n1 + n2);
}
int sub(int n1, int n2){
return (n1 - n2);
}
int mult(int n1, int n2){
return (n1 * n2);
}
int divi(int n1, int n2){
return (n1 / n2);
}
int main(){
int a = 5, b = 3;... | 15.333333 | 29 | 0.47205 | tonmarcondes |
e265b2420512b8600bc2c47fea6ea6a321c2b56c | 218 | hpp | C++ | src/so_dll_file_execute/SharedLibrary.hpp | hahn-will/simple-cpp-unit | bf77c066ac881dfceffb5f1cbd3ab92e63b9229f | [
"MIT"
] | null | null | null | src/so_dll_file_execute/SharedLibrary.hpp | hahn-will/simple-cpp-unit | bf77c066ac881dfceffb5f1cbd3ab92e63b9229f | [
"MIT"
] | null | null | null | src/so_dll_file_execute/SharedLibrary.hpp | hahn-will/simple-cpp-unit | bf77c066ac881dfceffb5f1cbd3ab92e63b9229f | [
"MIT"
] | null | null | null | #ifndef SHARED_LIBRARY_HPP__
#define SHARED_LIBRARY_HPP__
class SharedLibrary {
public:
SharedLibrary(const char *);
~SharedLibrary();
void Execute(const char *);
private:
void *handle;
};
#endif
| 15.571429 | 32 | 0.701835 | hahn-will |
e26b229dcf12e3eb516c74d6cf19463a496c5808 | 5,979 | cpp | C++ | test/info/iterators/iterator_impl/dereference.cpp | arkantos493/MPICXX | ffbaeaaa3c7248e2087c3716ec71e0612aafe689 | [
"MIT"
] | 1 | 2020-10-20T06:53:05.000Z | 2020-10-20T06:53:05.000Z | test/info/iterators/iterator_impl/dereference.cpp | arkantos493/MPICXX | ffbaeaaa3c7248e2087c3716ec71e0612aafe689 | [
"MIT"
] | null | null | null | test/info/iterators/iterator_impl/dereference.cpp | arkantos493/MPICXX | ffbaeaaa3c7248e2087c3716ec71e0612aafe689 | [
"MIT"
] | 1 | 2020-08-13T17:46:40.000Z | 2020-08-13T17:46:40.000Z | /**
* @file
* @author Marcel Breyer
* @date 2020-08-04
* @copyright This file is distributed under the MIT License.
*
* @brief Test cases for the dereference operations of the @ref mpicxx::info::iterator and @ref mpicxx::info::const_iterator class.
* @details Testsuite: *InfoIteratorImplTest*
* | test case name... | 43.326087 | 169 | 0.61231 | arkantos493 |
e26d0eff4ad1ffcf518e272e05423dd74d565745 | 1,012 | hpp | C++ | src/core/output_interface.hpp | tp-ntouran/mocc | 77d386cdf341b1a860599ff7c6e4017d46e0b102 | [
"Apache-2.0"
] | 11 | 2016-03-31T17:46:15.000Z | 2022-02-14T01:07:56.000Z | src/core/output_interface.hpp | tp-ntouran/mocc | 77d386cdf341b1a860599ff7c6e4017d46e0b102 | [
"Apache-2.0"
] | 3 | 2016-04-04T16:40:47.000Z | 2019-10-16T22:22:54.000Z | src/core/output_interface.hpp | tp-ntouran/mocc | 77d386cdf341b1a860599ff7c6e4017d46e0b102 | [
"Apache-2.0"
] | 3 | 2019-10-16T22:20:15.000Z | 2019-11-28T11:59:03.000Z | /*
Copyright 2016 Mitchell Young
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in ... | 28.914286 | 75 | 0.720356 | tp-ntouran |
e27125c6ff564461d081589d3a3f736b0a5f4a14 | 6,271 | cpp | C++ | MARS geofencing/Library/PackageCache/com.unity.mars-ar-foundation-providers@1.3.1/NativePlugin~/Source/TrackingProvider.cpp | bsides44/MARSGeofencing | 23f1ff88ac8be3db558f43d68813528a587225bf | [
"Apache-2.0"
] | null | null | null | MARS geofencing/Library/PackageCache/com.unity.mars-ar-foundation-providers@1.3.1/NativePlugin~/Source/TrackingProvider.cpp | bsides44/MARSGeofencing | 23f1ff88ac8be3db558f43d68813528a587225bf | [
"Apache-2.0"
] | null | null | null | MARS geofencing/Library/PackageCache/com.unity.mars-ar-foundation-providers@1.3.1/NativePlugin~/Source/TrackingProvider.cpp | bsides44/MARSGeofencing | 23f1ff88ac8be3db558f43d68813528a587225bf | [
"Apache-2.0"
] | null | null | null | #include "TrackingProvider.h"
#include "ProviderContext.h"
#include "XR/UnitySubsystemTypes.h"
static UnityXRPose sPose;
UnitySubsystemErrorCode MARSTrackingProvider::Initialize()
{
return kUnitySubsystemErrorCodeSuccess;
}
UnitySubsystemErrorCode MARSTrackingProvider::Start()
{
m_Ctx.input->InputSubsystem_... | 39.19375 | 218 | 0.768617 | bsides44 |
e27bcbb19af91529576fdd0421f79b906c2dd3b6 | 245 | cpp | C++ | test/linqcppTestFixture.cpp | baguapro/linqcpp | 8caa1f6c57f87e618eab8d01a95e348013c1ac7d | [
"MIT"
] | null | null | null | test/linqcppTestFixture.cpp | baguapro/linqcpp | 8caa1f6c57f87e618eab8d01a95e348013c1ac7d | [
"MIT"
] | null | null | null | test/linqcppTestFixture.cpp | baguapro/linqcpp | 8caa1f6c57f87e618eab8d01a95e348013c1ac7d | [
"MIT"
] | null | null | null | #include "linqcppTestFixture.h"
namespace linqcpp_test_fixture
{
bool operator==(const LinqTest::person &lhs, const LinqTest::person &rhs)
{
return (lhs.first_name_ == rhs.first_name_ &&
lhs.last_name_ == rhs.last_name_);
}
}
| 18.846154 | 73 | 0.697959 | baguapro |
e28ce1928781247e12aa0ddc482cfcb689a258d5 | 2,240 | cpp | C++ | software/src/master/src/kernel/Vca_VInterfaceMember.cpp | c-kuhlman/vision | 46b25f7c0da703c059acc8f0a2eac1d5badf9f6d | [
"BSD-3-Clause"
] | 30 | 2016-10-07T15:23:35.000Z | 2020-03-25T20:01:30.000Z | src/kernel/Vca_VInterfaceMember.cpp | MichaelJCaruso/vision-software-src-master | 12b1b4f12a7531fe6e3cbb6861b40ac8e1985b92 | [
"BSD-3-Clause"
] | 30 | 2016-10-31T19:48:08.000Z | 2021-04-28T01:31:53.000Z | software/src/master/src/kernel/Vca_VInterfaceMember.cpp | c-kuhlman/vision | 46b25f7c0da703c059acc8f0a2eac1d5badf9f6d | [
"BSD-3-Clause"
] | 15 | 2016-10-07T16:44:13.000Z | 2021-06-21T18:47:55.000Z | /***** Vca_VInterfaceMember Implementation *****/
/************************
************************
***** Interfaces *****
************************
************************/
/********************
***** System *****
********************/
#include "Vk.h"
/******************
***** Self *****
*********... | 24.888889 | 90 | 0.394196 | c-kuhlman |
e29c17244aa2d5558191758b3e6850e35433a2fd | 797 | cpp | C++ | test/utils/wasm_engine.cpp | herobank110/fizzy | b58d6e6f7e6c26a07600f10d267695b00cf49470 | [
"Apache-2.0"
] | 1 | 2022-03-19T05:59:46.000Z | 2022-03-19T05:59:46.000Z | test/utils/wasm_engine.cpp | herobank110/fizzy | b58d6e6f7e6c26a07600f10d267695b00cf49470 | [
"Apache-2.0"
] | null | null | null | test/utils/wasm_engine.cpp | herobank110/fizzy | b58d6e6f7e6c26a07600f10d267695b00cf49470 | [
"Apache-2.0"
] | null | null | null | // Fizzy: A fast WebAssembly interpreter
// Copyright 2020 The Fizzy Authors.
// SPDX-License-Identifier: Apache-2.0
#include "wasm_engine.hpp"
#include <stdexcept>
#include <string>
namespace fizzy::test
{
WasmEngine::~WasmEngine() noexcept = default;
void validate_function_signature(std::string_view signature)
{
... | 33.208333 | 83 | 0.697616 | herobank110 |
e2a650d576f92bb53e312764dd95f29a464338bf | 12,479 | cc | C++ | main/src/PolygonTriangularization/poly_triang.cc | marcomanno/ploygon_triangulation | c98b99e3f9598252ffc27eb202939f0183ac872b | [
"Apache-2.0"
] | null | null | null | main/src/PolygonTriangularization/poly_triang.cc | marcomanno/ploygon_triangulation | c98b99e3f9598252ffc27eb202939f0183ac872b | [
"Apache-2.0"
] | null | null | null | main/src/PolygonTriangularization/poly_triang.cc | marcomanno/ploygon_triangulation | c98b99e3f9598252ffc27eb202939f0183ac872b | [
"Apache-2.0"
] | null | null | null | #include "poly_triang.hh"
#include "Geo/area.hh"
#include "Geo/entity.hh"
#include "Geo/plane_fitting.hh"
#include "Geo/linear_system.hh"
#include "Geo/point_in_polygon.hh"
#include "Geo/tolerance.hh"
#include "Utils/circular.hh"
#include "Utils/statistics.hh"
#include <Utils/error_handling.hh>
#include <nume... | 30.36253 | 110 | 0.551006 | marcomanno |
e2aa237e30f08292db1a198cd79e25426fb72683 | 4,686 | hpp | C++ | Matrix.hpp | 7Mersenne/NNplusplus | 6387a73fcfe1a77ad703799272664f3a5d4cb0ff | [
"MIT"
] | 266 | 2016-08-26T04:43:42.000Z | 2022-03-31T17:54:29.000Z | Matrix.hpp | 7Mersenne/NNplusplus | 6387a73fcfe1a77ad703799272664f3a5d4cb0ff | [
"MIT"
] | 2 | 2016-08-29T14:23:31.000Z | 2022-01-07T13:50:41.000Z | Matrix.hpp | stagadish/NNplusplus | 12d1916d7e5fc0f15226f2472e96f0e9754ec02b | [
"MIT"
] | 40 | 2016-08-26T23:26:40.000Z | 2020-07-17T07:31:14.000Z | //
// Matrix.hpp
// Neural Net
//
// A matrix object, which includes basic operations such as
// matrix transpose and dot product.
//
// Created by Gil Dekel on 8/19/16.
// Last edited by Gil Dekel on 8/30/16.
//
#ifndef MATRIX_HPP_
#define MATRIX_HPP_
#include <iostream>
#include <utility> // std::swa... | 27.727811 | 67 | 0.580026 | 7Mersenne |
e2ab32a047a7ae5f821192bce53efc7594f8a447 | 5,471 | cxx | C++ | src/dgate/dicomlib/safemem.cxx | theorose49/conquest-dicom-server | aba35e1da51d7bb288ecde0f31d6963f47b8252c | [
"Apache-2.0"
] | null | null | null | src/dgate/dicomlib/safemem.cxx | theorose49/conquest-dicom-server | aba35e1da51d7bb288ecde0f31d6963f47b8252c | [
"Apache-2.0"
] | 6 | 2021-06-09T19:39:27.000Z | 2021-09-30T16:41:40.000Z | radiomicsfeatureextractionpipeline/conquest/src/dgate/dicomlib/safemem.cxx | Maastro-CDS-Imaging-Group/SQLite4Radiomics | e3a7afc181eec0fe04c18da00edc3772064e6758 | [
"Apache-2.0"
] | null | null | null | /*
20010720 ljz Changed 'printf' to 'fprintf(stderr,...)'
*/
/****************************************************************************
Copyright (C) 1995, University of California, Davis
THIS SOFTWARE IS MADE AVAILABLE, AS IS, AND THE UNIVERSITY
OF CALIFORNIA DOES NOT MAKE ANY WAR... | 20.262963 | 77 | 0.595504 | theorose49 |
e2abd3e067035ea7c9ffd7dd2a3b4bafac9ff8a2 | 3,465 | hpp | C++ | Sources/DSPHeaders/include/DSPHeaders/SampleBuffer.hpp | bradhowes/AUv3Support | 828258715de2144914ef08434a9db78ca62b5484 | [
"MIT"
] | 1 | 2022-03-15T04:54:16.000Z | 2022-03-15T04:54:16.000Z | Sources/DSPHeaders/include/DSPHeaders/SampleBuffer.hpp | bradhowes/AUv3Support | 828258715de2144914ef08434a9db78ca62b5484 | [
"MIT"
] | null | null | null | Sources/DSPHeaders/include/DSPHeaders/SampleBuffer.hpp | bradhowes/AUv3Support | 828258715de2144914ef08434a9db78ca62b5484 | [
"MIT"
] | null | null | null | // Copyright © 2021 Brad Howes. All rights reserved.
#pragma once
#import <string>
#import <os/log.h>
#import <AudioToolbox/AudioToolbox.h>
#import <AudioUnit/AudioUnit.h>
#import <AVFoundation/AVFoundation.h>
#import "DSPHeaders/BufferFacet.hpp"
namespace DSPHeaders {
/**
Maintains a buffer of PCM samples which... | 31.788991 | 119 | 0.730447 | bradhowes |
e2add83da5f3ee4ff9a541f3af4de11074dd6d8c | 1,931 | cpp | C++ | files/source/mischacks.cpp | Luminyx1/NewerSMBU | 66c719b0afab0c5db5e26b8114d3fc02c15c7300 | [
"MIT"
] | 7 | 2021-05-22T21:59:42.000Z | 2022-01-03T16:33:03.000Z | files/source/mischacks.cpp | Luminyx1/NewerSMBU | 66c719b0afab0c5db5e26b8114d3fc02c15c7300 | [
"MIT"
] | null | null | null | files/source/mischacks.cpp | Luminyx1/NewerSMBU | 66c719b0afab0c5db5e26b8114d3fc02c15c7300 | [
"MIT"
] | 2 | 2021-05-24T03:38:18.000Z | 2021-08-12T01:25:36.000Z |
#include "game.h"
#include "neweru.h"
#include "zlib.h"
void *allocZlib(void *opaque, uInt items, uInt size) {
return ((sead::Heap *)opaque)->tryAlloc(items * size, 2);
}
void freeZlib(void *opaque, void *address) {
((sead::Heap *)opaque)->free(address);
}
int decompZlib(Byte *outPtr, u32 outSize, Byte *inPtr, u3... | 25.746667 | 86 | 0.695495 | Luminyx1 |
e2af83b20b9544095709d083018acc3f1af13b0d | 3,410 | cpp | C++ | src/main.cpp | huckor/BER_TLV | e7ccc1981368ac5f1f5bdcd6fa6f04e5c6ff049f | [
"MIT"
] | 2 | 2017-03-15T18:05:18.000Z | 2021-05-14T05:16:46.000Z | src/main.cpp | huckor/BER_TLV | e7ccc1981368ac5f1f5bdcd6fa6f04e5c6ff049f | [
"MIT"
] | 1 | 2017-03-15T18:37:26.000Z | 2017-03-20T14:19:08.000Z | src/main.cpp | huckor/BER_TLV | e7ccc1981368ac5f1f5bdcd6fa6f04e5c6ff049f | [
"MIT"
] | null | null | null | #include <iostream>
#include "BerTlv.h"
#include "Conv.h"
#include "Global.h"
#include <sys/time.h>
//Add to vector starting byte of 2 bytes long tags
std::vector<std::string> GetTwoBytesTags()
{
std::vector<std::string> Return;
Return.push_back("9F");
Return.push_back("5F");
Return.push_back("BF"... | 31.574074 | 633 | 0.695894 | huckor |
e2afc92603892aba5b80fe3a791e2afd512a9104 | 3,089 | hpp | C++ | tuple/apply.hpp | 5cript/mpl14 | 4c6da6b8bce1f57b0df8c4ef456fe03a61982cad | [
"MIT"
] | null | null | null | tuple/apply.hpp | 5cript/mpl14 | 4c6da6b8bce1f57b0df8c4ef456fe03a61982cad | [
"MIT"
] | null | null | null | tuple/apply.hpp | 5cript/mpl14 | 4c6da6b8bce1f57b0df8c4ef456fe03a61982cad | [
"MIT"
] | null | null | null | #ifndef MPLEX_TUPLE_APPLY_HPP_INCLUDED
#define MPLEX_TUPLE_APPLY_HPP_INCLUDED
#include <utility>
#include "back.hpp"
#include "front.hpp"
#include "pop_back.hpp"
#include "pop_front.hpp"
// Can be used to apply tuples as parameters to variadic templates.
namespace mplex
{
/** @param Tuple A tuple.... | 34.322222 | 119 | 0.64066 | 5cript |
e2b4da49f111abc7c299c97f5772b5396271244e | 1,914 | cpp | C++ | src/day2.cpp | ajpocus/advent-of-code-2020 | 1252a723c82efd37ce19a174843db04b81d2eae7 | [
"CC-BY-4.0"
] | 1 | 2021-04-10T05:49:05.000Z | 2021-04-10T05:49:05.000Z | src/day2.cpp | ajpocus/advent-of-code-2020 | 1252a723c82efd37ce19a174843db04b81d2eae7 | [
"CC-BY-4.0"
] | null | null | null | src/day2.cpp | ajpocus/advent-of-code-2020 | 1252a723c82efd37ce19a174843db04b81d2eae7 | [
"CC-BY-4.0"
] | null | null | null | #include <iostream>
#include <fstream>
#include <vector>
#include <regex>
using namespace std;
regex parser_regex("(\\d+)-(\\d+) (\\w): (\\w+)");
int count_passwords(vector<string> input) {
int cnt = 0;
for (string line: input) {
smatch matches;
regex_match(line, matches, parser_regex);
int lower_bo... | 23.341463 | 142 | 0.640543 | ajpocus |
e2bbd2131fa29795e20dfc5fb57d095031751bc7 | 15,341 | cpp | C++ | material_io.cpp | 2-tuple/Engine | 5bae92a379caafa93db912802a3790305c8b85d3 | [
"MIT"
] | 1 | 2019-06-20T21:44:19.000Z | 2019-06-20T21:44:19.000Z | material_io.cpp | 2-tuple/Engine | 5bae92a379caafa93db912802a3790305c8b85d3 | [
"MIT"
] | null | null | null | material_io.cpp | 2-tuple/Engine | 5bae92a379caafa93db912802a3790305c8b85d3 | [
"MIT"
] | null | null | null | #include "material_io.h"
#include "file_io.h"
#include "shader_def.h"
#include "stack_alloc.h"
#include "shader_def.h"
#include "profile.h"
#include <stdio.h>
#include <string.h>
int32_t
GetLine(char** Line, int* LineLength, char* CharArray, int ArraySize, int* CharCounter)
{
*Line = &CharArray[*CharCounter];... | 28.728464 | 100 | 0.57656 | 2-tuple |
e2be1b56d969615e5fe024dd6b2aa53d3114230b | 558 | cpp | C++ | EJERCICIOS/EJERCICIO C++/ejercicio34-nombre completo.cpp | dianaM182/cpp | 45b0e688b00f5a6f4483aba13904b5d760806726 | [
"MIT"
] | null | null | null | EJERCICIOS/EJERCICIO C++/ejercicio34-nombre completo.cpp | dianaM182/cpp | 45b0e688b00f5a6f4483aba13904b5d760806726 | [
"MIT"
] | null | null | null | EJERCICIOS/EJERCICIO C++/ejercicio34-nombre completo.cpp | dianaM182/cpp | 45b0e688b00f5a6f4483aba13904b5d760806726 | [
"MIT"
] | null | null | null | #include <iostream>
/* run this program using the console pauser or add your own getch, system("pause") or input loop */
using namespace std;
string nombrecompleto(string nombre, string apellido){
return nombre+apellido;
}
int main(int argc, char** argv) {
string primernombre=" ";
string primerapellido... | 25.363636 | 101 | 0.697133 | dianaM182 |
e2ca2e50fa5d2828ef6489287119592c8664b1fa | 2,395 | cpp | C++ | src/game/projectile/laser.cpp | runouw/Starfox-School-Project | 5645f76ecf4f642080c08b594531ab3072879827 | [
"Apache-2.0"
] | 1 | 2017-06-30T00:28:31.000Z | 2017-06-30T00:28:31.000Z | src/game/projectile/laser.cpp | runouw/Starfox-School-Project | 5645f76ecf4f642080c08b594531ab3072879827 | [
"Apache-2.0"
] | null | null | null | src/game/projectile/laser.cpp | runouw/Starfox-School-Project | 5645f76ecf4f642080c08b594531ab3072879827 | [
"Apache-2.0"
] | null | null | null | #include "projectiles.h"
#include <rtools\ai\model.h>
#include <rtools\ai\mesh.h>
#include <rtools\ai\material.h>
#include <rtools\utils.h>
#include <game\models\arwing.h>
#include <rtools\post\deferred.h>
#include <game\engine.h>
#include <game\particle\particlebank.h>
#include <game\models\model_laser.h>
#incl... | 24.438776 | 117 | 0.643424 | runouw |
e2d03f3e5dcf16aa945914d7f012edbe0cbf058e | 1,980 | hpp | C++ | src/data/vData.hpp | danielnavarrogomez/Anaquin | 563dbeb25aff15a55e4309432a967812cbfa0c98 | [
"BSD-3-Clause"
] | null | null | null | src/data/vData.hpp | danielnavarrogomez/Anaquin | 563dbeb25aff15a55e4309432a967812cbfa0c98 | [
"BSD-3-Clause"
] | null | null | null | src/data/vData.hpp | danielnavarrogomez/Anaquin | 563dbeb25aff15a55e4309432a967812cbfa0c98 | [
"BSD-3-Clause"
] | null | null | null | #ifndef VCF_DATA_HPP
#define VCF_DATA_HPP
#include "tools/tools.hpp"
//#include "data/standard.hpp"
#include "parsers/parser_vcf.hpp"
namespace Anaquin
{
typedef long VarKey;
struct VDataData
{
std::map<Base, Variant> b2v;
std::map<Variation, std::set<Variant>> m2v;
};
struct... | 22.758621 | 85 | 0.441919 | danielnavarrogomez |
e2d4c1d5afa55aa534cd6fae29f6636e2c70e85b | 38,149 | cxx | C++ | osprey/common/com/dwarf_DST_dump.cxx | sharugupta/OpenUH | daddd76858a53035f5d713f648d13373c22506e8 | [
"BSD-2-Clause"
] | null | null | null | osprey/common/com/dwarf_DST_dump.cxx | sharugupta/OpenUH | daddd76858a53035f5d713f648d13373c22506e8 | [
"BSD-2-Clause"
] | null | null | null | osprey/common/com/dwarf_DST_dump.cxx | sharugupta/OpenUH | daddd76858a53035f5d713f648d13373c22506e8 | [
"BSD-2-Clause"
] | null | null | null | /*
* Copyright 2003, 2004, 2005, 2006 PathScale, Inc. All Rights Reserved.
*/
/*
Copyright (C) 2000, 2001 Silicon Graphics, Inc. All Rights Reserved.
This program is free software; you can redistribute it and/or modify it
under the terms of version 2 of the GNU General Public License as
published by the ... | 28.112749 | 97 | 0.705576 | sharugupta |
e2d7fb49e17edc6fad629d3b02ce7490643c93cb | 1,486 | hpp | C++ | sample/sample_mandelbrot.hpp | matazure/mtensor | 4289284b201cb09ed1dfc49f44d6738751affd63 | [
"MIT"
] | 82 | 2020-04-11T09:33:36.000Z | 2022-03-23T03:47:25.000Z | sample/sample_mandelbrot.hpp | Lexxos/mtensor | feb120923dad3fb4ae3b31dd09931622a63c3d06 | [
"MIT"
] | 28 | 2017-04-26T17:12:35.000Z | 2019-04-08T04:05:24.000Z | sample/sample_mandelbrot.hpp | Lexxos/mtensor | feb120923dad3fb4ae3b31dd09931622a63c3d06 | [
"MIT"
] | 22 | 2017-01-10T14:57:29.000Z | 2019-12-17T08:55:59.000Z | #pragma once
#include <mtensor.hpp>
#include <stdexcept>
#include "image_helper.hpp"
#include "sample_mandelbrot.hpp"
using namespace matazure;
struct mandelbrot_functor {
mandelbrot_functor(pointi<2> shape) : shape(shape) {}
//曼德勃罗算子, MATAZURE_GENERAL可以同时支持host和device
MATAZURE_GENERAL point<byte, 3> op... | 33.022222 | 98 | 0.558546 | matazure |
e2d9ec25a61c54b250a6387ac7cdbc990b216574 | 686 | cpp | C++ | SGE/src/SGE/Renderer/VertexArray.cpp | Stealthhyy/SGE | e56560a93a4d7c9aac2a525240be6d4d9ba3d4e7 | [
"Apache-2.0"
] | 1 | 2021-04-25T05:45:28.000Z | 2021-04-25T05:45:28.000Z | SGE/src/SGE/Renderer/VertexArray.cpp | Stealthhyy/SGE | e56560a93a4d7c9aac2a525240be6d4d9ba3d4e7 | [
"Apache-2.0"
] | null | null | null | SGE/src/SGE/Renderer/VertexArray.cpp | Stealthhyy/SGE | e56560a93a4d7c9aac2a525240be6d4d9ba3d4e7 | [
"Apache-2.0"
] | null | null | null | #include "sgepch.h"
#include "VertexArray.h"
#include "Renderer.h"
#include "Platform/OpenGL/OpenGLVertexArray.h"
#include "Platform/Vulkan/VulkanVertexArray.h"
namespace SGE
{
void VertexArray::Bind() const
{
}
void VertexArray::Unbind() const
{
}
Ref<VertexArray> VertexArray::Create()
{
switch (Rende... | 20.176471 | 109 | 0.72449 | Stealthhyy |
e2e22341f47b237ac66f05e31e0b9460ffd37c2f | 6,905 | cpp | C++ | src/ui/Display.cpp | mcmatrix/cnc3018-offline-controller | 604e63a1f39e0742ba4f8c7e4cf2bad8d5b67e47 | [
"MIT"
] | 14 | 2021-09-10T18:33:43.000Z | 2022-02-12T12:00:20.000Z | src/ui/Display.cpp | mcmatrix/cnc3018-offline-controller | 604e63a1f39e0742ba4f8c7e4cf2bad8d5b67e47 | [
"MIT"
] | 7 | 2021-10-02T13:00:01.000Z | 2022-03-31T10:15:04.000Z | src/ui/Display.cpp | mcmatrix/cnc3018-offline-controller | 604e63a1f39e0742ba4f8c7e4cf2bad8d5b67e47 | [
"MIT"
] | 4 | 2021-09-15T11:56:24.000Z | 2022-02-14T12:11:30.000Z | #include "Display.h"
#include <Arduino.h>
#include "Screen.h"
#include "../devices/GrblDevice.h"
Display * Display::inst = nullptr;
uint16_t Display::buttStates;
Display* Display::getDisplay() { return inst; }
void Display::setScreen(Screen *screen) {
if(cScreen != nullptr) cScreen->onHide();... | 31.674312 | 124 | 0.515858 | mcmatrix |
e2e4d3c4a223f1b813a2feed1faf79388e1d1ad7 | 539 | hpp | C++ | libs/renderer/include/sge/renderer/vf/part_from_list.hpp | cpreh/spacegameengine | 313a1c34160b42a5135f8223ffaa3a31bc075a01 | [
"BSL-1.0"
] | 2 | 2016-01-27T13:18:14.000Z | 2018-05-11T01:11:32.000Z | libs/renderer/include/sge/renderer/vf/part_from_list.hpp | cpreh/spacegameengine | 313a1c34160b42a5135f8223ffaa3a31bc075a01 | [
"BSL-1.0"
] | null | null | null | libs/renderer/include/sge/renderer/vf/part_from_list.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_RENDERER_VF_PART_FROM_LIST_HPP_INCLUDED
#define SGE_RENDERER_VF_PART_FROM_LIST_HPP_INCL... | 25.666667 | 75 | 0.74026 | cpreh |
e2e7a440c89a7f7784d300a9b4b0cab46cc33f6d | 11,667 | cpp | C++ | CPPCodeAnalyzer/CPPParser/parser.cpp | amin-amani/CPPCodeAnalyzer | 0a9eedc56dd87efb7460ca77a82fdc7732306e0f | [
"MIT"
] | null | null | null | CPPCodeAnalyzer/CPPParser/parser.cpp | amin-amani/CPPCodeAnalyzer | 0a9eedc56dd87efb7460ca77a82fdc7732306e0f | [
"MIT"
] | null | null | null | CPPCodeAnalyzer/CPPParser/parser.cpp | amin-amani/CPPCodeAnalyzer | 0a9eedc56dd87efb7460ca77a82fdc7732306e0f | [
"MIT"
] | null | null | null | #include "parser.h"
//===============================================================================
Parser::Parser()
{
}
//===============================================================================
Parser::Parser(QString fileName)
{
_fileName=fileName;
QFile file;
file.setFileName(_fileName);
i... | 24.613924 | 100 | 0.521471 | amin-amani |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.