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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
a2c9d1f01f2381e62d83070eac23d802a34f568e | 2,122 | cpp | C++ | backup/2/interviewbit/c++/pretty-json.cpp | yangyanzhan/code-camp | 4272564e916fc230a4a488f92ae32c07d355dee0 | [
"Apache-2.0"
] | 21 | 2019-11-16T19:08:35.000Z | 2021-11-12T12:26:01.000Z | backup/2/interviewbit/c++/pretty-json.cpp | yangyanzhan/code-camp | 4272564e916fc230a4a488f92ae32c07d355dee0 | [
"Apache-2.0"
] | 1 | 2022-02-04T16:02:53.000Z | 2022-02-04T16:02:53.000Z | backup/2/interviewbit/c++/pretty-json.cpp | yangyanzhan/code-camp | 4272564e916fc230a4a488f92ae32c07d355dee0 | [
"Apache-2.0"
] | 4 | 2020-05-15T19:39:41.000Z | 2021-10-30T06:40:31.000Z | // Hi, I'm Yanzhan. For more algothmic problems, visit my Youtube Channel (Yanzhan Yang's Youtube Channel) : https://www.youtube.com/channel/UCDkz-__gl3frqLexukpG0DA?view_as=subscriber or my Twitter Account (Yanzhan Yang's Twitter) : https://twitter.com/YangYanzhan or my GitHub HomePage (Yanzhan Yang's GitHub HomePage)... | 30.753623 | 345 | 0.48115 | yangyanzhan |
a2cc38e8bd5593054465e1ac57e2340c62535cd8 | 895 | cpp | C++ | src/OpenHydro/mainwindow.cpp | glabmoris/OpenHydrography | 41492e8fe94254d8cdd81bb032df2649464736c8 | [
"MIT"
] | null | null | null | src/OpenHydro/mainwindow.cpp | glabmoris/OpenHydrography | 41492e8fe94254d8cdd81bb032df2649464736c8 | [
"MIT"
] | null | null | null | src/OpenHydro/mainwindow.cpp | glabmoris/OpenHydrography | 41492e8fe94254d8cdd81bb032df2649464736c8 | [
"MIT"
] | null | null | null | #include "mainwindow.h"
MainWindow::MainWindow(QWidget *parent) : QMainWindow(parent)
{
buildUI();
}
MainWindow::~MainWindow()
{
}
void MainWindow::buildUI(){
buildMainMenu();
buildDocks();
}
void MainWindow::buildMainMenu(){
menuBar = new QMenuBar();
//TODO: add menu items
this->setMenu... | 21.829268 | 116 | 0.727374 | glabmoris |
a2cc68bb94ff35f052fcee5cc345f80efed3d234 | 14,064 | cpp | C++ | src/obstruction_free_dictionary.cpp | cconklin/nonblocking-tables | 82acacbb16342ad36156931b9969674d85114d21 | [
"MIT"
] | null | null | null | src/obstruction_free_dictionary.cpp | cconklin/nonblocking-tables | 82acacbb16342ad36156931b9969674d85114d21 | [
"MIT"
] | null | null | null | src/obstruction_free_dictionary.cpp | cconklin/nonblocking-tables | 82acacbb16342ad36156931b9969674d85114d21 | [
"MIT"
] | null | null | null | #include <obstruction_free_dictionary.hpp>
namespace nonblocking
{
template<> versioned<obstruction_free_dictionary::bucket_state>::versioned(unsigned int version, obstruction_free_dictionary::bucket_state value) : _version{version}
{
switch (value)
{
case obstruction_free_dictiona... | 46.88 | 309 | 0.539676 | cconklin |
a2d06373c54b5876208d9a6ef81c7f4ae347e232 | 1,944 | cpp | C++ | algoritma-dan-struktur-data/linked_list.cpp | kodeaqua/script-praktikum | 807000b053ff2e0765ee28f7a5decb676131238d | [
"MIT"
] | 3 | 2021-12-25T06:08:42.000Z | 2022-01-04T01:22:45.000Z | algoritma-dan-struktur-data/linked_list.cpp | kodeaqua/script-praktikum | 807000b053ff2e0765ee28f7a5decb676131238d | [
"MIT"
] | 3 | 2022-01-04T05:09:06.000Z | 2022-03-10T07:33:41.000Z | algoritma-dan-struktur-data/linked_list.cpp | kodeaqua/script-praktikum | 807000b053ff2e0765ee28f7a5decb676131238d | [
"MIT"
] | 12 | 2021-12-04T12:28:41.000Z | 2022-03-31T02:29:21.000Z | /*
Praktikum Struktur Data
Laboratorium Komputer
Universitas Pakuan
2022
*/
#include <iostream>
using namespace std;
struct Node {
string nama;
Node* next;
};
void print(Node* head) {
while (head != NULL) {
cout << head->nama << "->";
head = head->next;
}
cout << endl << endl;
}
int main... | 20.25 | 65 | 0.618827 | kodeaqua |
a2d09c4da54aee783bd4db43a6ec6cd07ffdb4b7 | 10,600 | cpp | C++ | Source/PluginProcessor.cpp | SilvinWillemsen/TrombonePlugin | 9096be4fa064855c53f7d94695167b41108776f9 | [
"MIT"
] | null | null | null | Source/PluginProcessor.cpp | SilvinWillemsen/TrombonePlugin | 9096be4fa064855c53f7d94695167b41108776f9 | [
"MIT"
] | null | null | null | Source/PluginProcessor.cpp | SilvinWillemsen/TrombonePlugin | 9096be4fa064855c53f7d94695167b41108776f9 | [
"MIT"
] | null | null | null | /*
==============================================================================
This file contains the basic framework code for a JUCE plugin processor.
==============================================================================
*/
#include "PluginProcessor.h"
#include "PluginEditor.h"
//===... | 36.30137 | 123 | 0.600755 | SilvinWillemsen |
a2d2627dae9849dea59e2d46467e2478af70ee31 | 1,589 | cc | C++ | src/orthog/CLP.cc | baklanovp/libdetran | 820efab9d03ae425ccefb9520bdb6c086fdbf939 | [
"MIT"
] | 4 | 2015-03-07T16:20:23.000Z | 2020-02-10T13:40:16.000Z | src/orthog/CLP.cc | baklanovp/libdetran | 820efab9d03ae425ccefb9520bdb6c086fdbf939 | [
"MIT"
] | 3 | 2018-02-27T21:24:22.000Z | 2020-12-16T00:56:44.000Z | src/orthog/CLP.cc | baklanovp/libdetran | 820efab9d03ae425ccefb9520bdb6c086fdbf939 | [
"MIT"
] | 9 | 2015-03-07T16:20:26.000Z | 2022-01-29T00:14:23.000Z | //----------------------------------*-C++-*-----------------------------------//
/**
* @file CLP.cc
* @brief CLP member definitions
* @note Copyright (C) 2013 Jeremy Roberts
*/
//----------------------------------------------------------------------------//
#include "CLP.hh"
#include "utilities/DBC.hh"
#ifdef... | 26.04918 | 80 | 0.458779 | baklanovp |
a2d287905820c7c2c0439ca043d8006003de8419 | 4,004 | cpp | C++ | RoiSelector/RoiSelector.cpp | valerydol/drone_vision | ecb4ea9c17159c7cf72d1f3ab8b1ee9bf2adda71 | [
"MIT"
] | 3 | 2019-11-19T13:50:18.000Z | 2020-01-15T11:50:22.000Z | RoiSelector/RoiSelector.cpp | valerydol/drone_vision | ecb4ea9c17159c7cf72d1f3ab8b1ee9bf2adda71 | [
"MIT"
] | null | null | null | RoiSelector/RoiSelector.cpp | valerydol/drone_vision | ecb4ea9c17159c7cf72d1f3ab8b1ee9bf2adda71 | [
"MIT"
] | null | null | null | #include "RoiSelector.h"
RoiSelector::RoiSelector(float _offset_roi_x, float _offset_roi_y, float _width_roi_x, float _height_roi_y, bool _isEmptyFlag)
: offset_roi_x(_offset_roi_x), offset_roi_y(_offset_roi_y), width_roi_x(_width_roi_x), height_roi_y(_height_roi_y), isEmptyFlag(true), roiNotCroped(), roiCrope... | 27.054054 | 181 | 0.697053 | valerydol |
a2d2afe1a5c2c4b5d9b78ae5898e3948814d9744 | 994 | cpp | C++ | TCPsrv/TCPsrv/main.cpp | yu-s/_code_bak | 08308f7c836d05a9c4d610def19fc1a3e7c6ecf4 | [
"MIT"
] | null | null | null | TCPsrv/TCPsrv/main.cpp | yu-s/_code_bak | 08308f7c836d05a9c4d610def19fc1a3e7c6ecf4 | [
"MIT"
] | null | null | null | TCPsrv/TCPsrv/main.cpp | yu-s/_code_bak | 08308f7c836d05a9c4d610def19fc1a3e7c6ecf4 | [
"MIT"
] | 1 | 2020-05-05T12:28:45.000Z | 2020-05-05T12:28:45.000Z |
#include <Winsock2.h>
#include <stdio.h>
void main()
{
WORD wVersionRequested;
WSADATA wsaData;
int err;
wVersionRequested = MAKEWORD( 1, 1 );
err = WSAStartup( wVersionRequested, &wsaData );
if ( err != 0 ) {
return;
}
if ( LOBYTE( wsaData.wVersion ) != 1 ||
HIBYTE( wsaData.wVersion ) != 1 ) {
WSA... | 20.708333 | 71 | 0.690141 | yu-s |
a2d4de27027e955cb9a41693af9ab7a6f90c5a57 | 2,984 | cpp | C++ | samples/snippets/cpp/VS_Snippets_IIS/IIS7/IMapHandlerProviderSetScriptName/cpp/IMapHandlerProviderSetScriptName.cpp | mitchelsellers/iis-docs | 376c5b4a1b88b807eb8dbe7c63ba7cd9c59f7429 | [
"CC-BY-4.0",
"MIT"
] | 90 | 2017-06-13T19:56:04.000Z | 2022-03-15T16:42:09.000Z | samples/snippets/cpp/VS_Snippets_IIS/IIS7/IMapHandlerProviderSetScriptName/cpp/IMapHandlerProviderSetScriptName.cpp | mitchelsellers/iis-docs | 376c5b4a1b88b807eb8dbe7c63ba7cd9c59f7429 | [
"CC-BY-4.0",
"MIT"
] | 453 | 2017-05-22T18:00:05.000Z | 2022-03-30T21:07:55.000Z | samples/snippets/cpp/VS_Snippets_IIS/IIS7/IMapHandlerProviderSetScriptName/cpp/IMapHandlerProviderSetScriptName.cpp | mitchelsellers/iis-docs | 376c5b4a1b88b807eb8dbe7c63ba7cd9c59f7429 | [
"CC-BY-4.0",
"MIT"
] | 343 | 2017-05-26T08:57:30.000Z | 2022-03-25T23:05:04.000Z | // <Snippet1>
#define _WINSOCKAPI_
#include <windows.h>
#include <sal.h>
#include <httpserv.h>
// Create the module class.
class MyHttpModule : public CHttpModule
{
public:
REQUEST_NOTIFICATION_STATUS
OnMapRequestHandler(
IN IHttpContext * pHttpContext,
IN IMapHandlerProvider * pProvider
)
... | 26.882883 | 75 | 0.580764 | mitchelsellers |
a2d75b15fedfdb232f50064e81df8bd18c0dbed4 | 1,077 | cpp | C++ | Software/lib/motor.cpp | JiaxunHong/Smart-Pets-Feeder | 4204c669880377d7dc79d194f1d0e2a60c666e67 | [
"MIT"
] | 12 | 2021-04-10T16:03:04.000Z | 2021-04-27T08:14:59.000Z | Software/lib/motor.cpp | JiaxunHong/Smart-Pets-Feeder | 4204c669880377d7dc79d194f1d0e2a60c666e67 | [
"MIT"
] | 4 | 2021-04-15T11:33:45.000Z | 2021-04-18T07:02:23.000Z | Software/lib/motor.cpp | JiaxunHong/Smart-Pets-Feeder | 4204c669880377d7dc79d194f1d0e2a60c666e67 | [
"MIT"
] | 6 | 2021-04-10T16:03:36.000Z | 2021-04-19T12:07:51.000Z | #include "motor.h"
#include <iostream> //C++ Standard library
#include <wiringPi.h> //GPIO library
using namespace std; //Namespace Declarations
void motor::motor_init()
{
for(auto i:m)pinMode(i, OUTPUT); //Initialising stepper motor pins
}
void motor::motopa(int zf)
{
auto di=0;
int jnum = ... | 21.117647 | 70 | 0.410399 | JiaxunHong |
a2db34a0fc0974ffd62643604af63c4695bddcee | 3,890 | cpp | C++ | modules/tracktion_graph/tracktion_graph/tracktion_graph_PlayHeadState.cpp | jbloit/tracktion_engine | b3fa7d6a3a404f64ae419abdf9c801d672cffb16 | [
"MIT",
"Unlicense"
] | 734 | 2018-11-16T09:39:40.000Z | 2022-03-30T16:56:14.000Z | modules/tracktion_graph/tracktion_graph/tracktion_graph_PlayHeadState.cpp | jbloit/tracktion_engine | b3fa7d6a3a404f64ae419abdf9c801d672cffb16 | [
"MIT",
"Unlicense"
] | 100 | 2018-11-16T18:04:08.000Z | 2022-03-31T17:47:53.000Z | modules/tracktion_graph/tracktion_graph/tracktion_graph_PlayHeadState.cpp | jbloit/tracktion_engine | b3fa7d6a3a404f64ae419abdf9c801d672cffb16 | [
"MIT",
"Unlicense"
] | 123 | 2018-11-16T15:51:50.000Z | 2022-03-29T12:21:27.000Z | /*
,--. ,--. ,--. ,--.
,-' '-.,--.--.,--,--.,---.| |,-.,-' '-.`--' ,---. ,--,--, Copyright 2018
'-. .-'| .--' ,-. | .--'| /'-. .-',--.| .-. || \ Tracktion Software
| | | | \ '-' \ `--.| \ \ | | | |' '-' '| || | Corporation
`---' `--' `... | 36.698113 | 90 | 0.554242 | jbloit |
a2e2dbd71bc519938ad5621593b4f95b42e4fa6d | 877 | hpp | C++ | paxos++/detail/util/conversion.hpp | armos-db/libpaxos-cpp | 31e8a3f9664e3e6563d26dbc1323457f596b8eef | [
"BSD-3-Clause"
] | 54 | 2015-02-09T11:46:30.000Z | 2021-08-13T14:08:52.000Z | paxos++/detail/util/conversion.hpp | armos-db/libpaxos-cpp | 31e8a3f9664e3e6563d26dbc1323457f596b8eef | [
"BSD-3-Clause"
] | null | null | null | paxos++/detail/util/conversion.hpp | armos-db/libpaxos-cpp | 31e8a3f9664e3e6563d26dbc1323457f596b8eef | [
"BSD-3-Clause"
] | 17 | 2015-01-13T03:18:49.000Z | 2022-03-23T02:20:57.000Z | /*!
Copyright (c) 2012, Leon Mergen, all rights reserved.
*/
#ifndef LIBPAXOS_CPP_DETAIL_UTIL_CONVERSION_HPP
#define LIBPAXOS_CPP_DETAIL_UTIL_CONVERSION_HPP
#include <string>
#include "debug.hpp"
namespace paxos { namespace detail { namespace util {
/*!
\brief Defines helper functions that conve... | 19.488889 | 81 | 0.641961 | armos-db |
a2e6d8e09b59d4e2ef30957fc20236eb6777f4b0 | 5,027 | cc | C++ | stapl_release/test/algorithms/unit/lexicographic_compare.cc | parasol-ppl/PPL_utils | 92728bb89692fda1705a0dee436592d97922a6cb | [
"BSD-3-Clause"
] | null | null | null | stapl_release/test/algorithms/unit/lexicographic_compare.cc | parasol-ppl/PPL_utils | 92728bb89692fda1705a0dee436592d97922a6cb | [
"BSD-3-Clause"
] | null | null | null | stapl_release/test/algorithms/unit/lexicographic_compare.cc | parasol-ppl/PPL_utils | 92728bb89692fda1705a0dee436592d97922a6cb | [
"BSD-3-Clause"
] | null | null | null | /*
// Copyright (c) 2000-2009, Texas Engineering Experiment Station (TEES), a
// component of the Texas A&M University System.
// All rights reserved.
// The information and source code contained herein is the exclusive
// property of TEES and may not be disclosed, examined or reproduced
// in whole or in part without... | 31.030864 | 80 | 0.667595 | parasol-ppl |
a2ec6d3136d35858e38c4b358dfd0ba70819f809 | 8,355 | cpp | C++ | examples/auth/src/micro_http.cpp | kamaroly/yb-orm | b53987f6b316a4a2e7c23cb82525ad1570d107b7 | [
"MIT"
] | null | null | null | examples/auth/src/micro_http.cpp | kamaroly/yb-orm | b53987f6b316a4a2e7c23cb82525ad1570d107b7 | [
"MIT"
] | null | null | null | examples/auth/src/micro_http.cpp | kamaroly/yb-orm | b53987f6b316a4a2e7c23cb82525ad1570d107b7 | [
"MIT"
] | null | null | null | #include "micro_http.h"
#include <sstream>
#include <util/thread.h>
#include <util/utility.h>
#include <util/string_utils.h>
using namespace std;
using namespace Yb;
using namespace Yb::StrUtils;
HttpServerBase::HttpServerBase(int port, ILogger *root_logger,
const String &content_type, const String &bad_resp)... | 34.102041 | 92 | 0.529982 | kamaroly |
a2ee52976e7071314a16371f9be22822de6cace6 | 3,357 | cpp | C++ | src/ResourceManagement/MeshLoader.cpp | Ekozmaster/DwarfQuest | 02b0406b1796093a6d55ba49fa42873cfba2e6ba | [
"MIT"
] | null | null | null | src/ResourceManagement/MeshLoader.cpp | Ekozmaster/DwarfQuest | 02b0406b1796093a6d55ba49fa42873cfba2e6ba | [
"MIT"
] | null | null | null | src/ResourceManagement/MeshLoader.cpp | Ekozmaster/DwarfQuest | 02b0406b1796093a6d55ba49fa42873cfba2e6ba | [
"MIT"
] | null | null | null | #include <string>
#include <glm/glm.hpp>
#include <vector>
#include <cstring>
#include <src/ResourceManagement/MeshLoader.h>
#include <src/Utils/Logger.h>
namespace Core {
Mesh* LoadMesh(const char* path) {
FILE* file = std::fopen(path, "r");
if (file == NULL) {
Logger::Error("LoadMes... | 41.9625 | 213 | 0.554662 | Ekozmaster |
a2f04173536c35eb07af20d35cdd94248896bc71 | 19,485 | hpp | C++ | src/io/filtered_sequence_iterator.hpp | tcpan/bliss | 0062fe91fdeef66fce4d1e897c15318241130277 | [
"Apache-2.0"
] | 16 | 2016-06-07T22:12:02.000Z | 2021-12-15T12:40:52.000Z | src/io/filtered_sequence_iterator.hpp | tcpan/bliss | 0062fe91fdeef66fce4d1e897c15318241130277 | [
"Apache-2.0"
] | 1 | 2017-11-13T20:59:33.000Z | 2018-12-14T16:40:01.000Z | src/io/filtered_sequence_iterator.hpp | tcpan/bliss | 0062fe91fdeef66fce4d1e897c15318241130277 | [
"Apache-2.0"
] | 7 | 2016-08-19T21:31:41.000Z | 2021-12-19T14:58:45.000Z | /*
* Copyright 2015 Georgia Institute of Technology
*
* 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 applicab... | 43.396437 | 208 | 0.618938 | tcpan |
a2f5096b80b4a1a241a0d41f4e16ea60c77b12f4 | 7,912 | cpp | C++ | snapshotable_allocator_impl.cpp | jyaif/snapshotable_allocator | 711dff8d6414265476bf8eb83eece563c0c183a8 | [
"MIT"
] | null | null | null | snapshotable_allocator_impl.cpp | jyaif/snapshotable_allocator | 711dff8d6414265476bf8eb83eece563c0c183a8 | [
"MIT"
] | null | null | null | snapshotable_allocator_impl.cpp | jyaif/snapshotable_allocator | 711dff8d6414265476bf8eb83eece563c0c183a8 | [
"MIT"
] | null | null | null | #include "application/memory/snapshotable_allocator_impl.h"
#include <algorithm>
#include <array>
#include <cassert>
#include <cstdlib>
#include "application/memory/aligned_alloc.h"
#include "application/memory/bit_vector.h"
#include "application/memory/fls.h"
#include "application/memory/memory_snapshot_impl.h"
#inc... | 31.7751 | 79 | 0.687184 | jyaif |
a2f951cda23845319d2644ac4a63932f2e829017 | 507 | hpp | C++ | include/IteratorRecognition/Support/Utils/DebugInfo.hpp | robcasloz/IteratorRecognition | fa1a1e67c36cde3639ac40528228ae85e54e3b13 | [
"MIT"
] | null | null | null | include/IteratorRecognition/Support/Utils/DebugInfo.hpp | robcasloz/IteratorRecognition | fa1a1e67c36cde3639ac40528228ae85e54e3b13 | [
"MIT"
] | 6 | 2019-05-29T21:11:03.000Z | 2021-07-01T10:47:02.000Z | include/IteratorRecognition/Support/Utils/DebugInfo.hpp | robcasloz/IteratorRecognition | fa1a1e67c36cde3639ac40528228ae85e54e3b13 | [
"MIT"
] | 1 | 2019-05-13T11:55:39.000Z | 2019-05-13T11:55:39.000Z | //
//
//
#pragma once
#include "IteratorRecognition/Config.hpp"
#include <string>
// using std::string
#include <tuple>
// using std::make_tuple
namespace llvm {
class Loop;
class Instruction;
} // namespace llvm
namespace iteratorrecognition {
namespace dbg {
std::string extract(const llvm::Instruction &I);
us... | 15.84375 | 80 | 0.733728 | robcasloz |
a2f9a8c664abf121f5cb44e53e4638b5f11d0e6b | 340 | cpp | C++ | src/NBaseFunction.cpp | justinmann/sj | 24d0a75723b024f17de6dab9070979a4f1bf1a60 | [
"Apache-2.0"
] | 2 | 2017-01-04T02:27:10.000Z | 2017-01-22T05:36:41.000Z | src/NBaseFunction.cpp | justinmann/sj | 24d0a75723b024f17de6dab9070979a4f1bf1a60 | [
"Apache-2.0"
] | null | null | null | src/NBaseFunction.cpp | justinmann/sj | 24d0a75723b024f17de6dab9070979a4f1bf1a60 | [
"Apache-2.0"
] | 1 | 2020-06-15T12:17:26.000Z | 2020-06-15T12:17:26.000Z | #include <sjc.h>
FunctionParameter FunctionParameter::create(bool isDefaultValue, AssignOp op, shared_ptr<CVar> var) {
FunctionParameter param;
param.isDefaultValue = isDefaultValue;
param.op = op;
param.var = var;
return param;
}
void CBaseFunction::setHasThis() {
assert(name != "global");
... | 22.666667 | 101 | 0.694118 | justinmann |
a2f9fc84e6580004190ec17f39301b3897aa6803 | 209 | cpp | C++ | Engine/Graphics/ImGui_Window.cpp | Antd23rus/S2DE_DirectX11 | 4f729278e6c795f7d606afc70a292c6501b0cafd | [
"MIT"
] | null | null | null | Engine/Graphics/ImGui_Window.cpp | Antd23rus/S2DE_DirectX11 | 4f729278e6c795f7d606afc70a292c6501b0cafd | [
"MIT"
] | null | null | null | Engine/Graphics/ImGui_Window.cpp | Antd23rus/S2DE_DirectX11 | 4f729278e6c795f7d606afc70a292c6501b0cafd | [
"MIT"
] | 1 | 2021-09-06T08:30:20.000Z | 2021-09-06T08:30:20.000Z | #include "ImGui_Window.h"
namespace S2DE::Render
{
ImGui_Window::ImGui_Window()
: m_draw(false)
{
}
ImGui_Window::~ImGui_Window()
{
}
void ImGui_Window::ToggleDraw()
{
m_draw = !m_draw;
}
} | 10.45 | 32 | 0.650718 | Antd23rus |
0c0175c943041bdf71698fd4f117541251b7caf9 | 7,299 | hh | C++ | obj/obj/TStnHelix.hh | macndev/Stntuple | b5bb000edf015883eec32d87959cb7bd3ab88577 | [
"Apache-2.0"
] | null | null | null | obj/obj/TStnHelix.hh | macndev/Stntuple | b5bb000edf015883eec32d87959cb7bd3ab88577 | [
"Apache-2.0"
] | null | null | null | obj/obj/TStnHelix.hh | macndev/Stntuple | b5bb000edf015883eec32d87959cb7bd3ab88577 | [
"Apache-2.0"
] | 6 | 2019-11-21T15:27:27.000Z | 2022-02-28T20:57:13.000Z | //
// Read the track
//
// $Id: $
// $Author:$
// $Date: $
//
// Contact person Pavel Murat
//
#ifndef Stntuple_obj_TStnHelix_hh
#define Stntuple_obj_TStnHelix_hh
// storable objects (data products)
//
// C++ includes.
#include <iostream>
#include "TString.h"
#include "TFolder.h"
#include "TFile.h"
#include "TBu... | 40.776536 | 109 | 0.42362 | macndev |
0c05228e85432d9e7621dc1ef61c3dad032e6be6 | 7,009 | cpp | C++ | hackathon/hanbo/image_transform_combine_by_amat/image_transform_and_combine_by_affine_mat_plugin.cpp | zzhmark/vaa3d_tools | 3ca418add85a59ac7e805d55a600b78330d7e53d | [
"MIT"
] | 1 | 2021-12-27T19:14:03.000Z | 2021-12-27T19:14:03.000Z | hackathon/hanbo/image_transform_combine_by_amat/image_transform_and_combine_by_affine_mat_plugin.cpp | zzhmark/vaa3d_tools | 3ca418add85a59ac7e805d55a600b78330d7e53d | [
"MIT"
] | 1 | 2016-12-03T05:33:13.000Z | 2016-12-03T05:33:13.000Z | hackathon/hanbo/image_transform_combine_by_amat/image_transform_and_combine_by_affine_mat_plugin.cpp | zzhmark/vaa3d_tools | 3ca418add85a59ac7e805d55a600b78330d7e53d | [
"MIT"
] | null | null | null | /* image_transform_and_combine_by_affine_mat_plugin.cpp
* This plugin will transform and combine image by given affine matrix. Some functions are based on littleQuickWarper.
* 2015-3-18 : by Hanbo Chen
*/
#include "v3d_message.h"
#include <vector>
#include "image_transform_and_combine_by_affine_mat_plugin.h"
#incl... | 38.510989 | 208 | 0.620631 | zzhmark |
0c06467c40cdd7d9d54573bba2a2a67e4226830b | 3,069 | cpp | C++ | servicios/Locator.cpp | seblaz/Final-Fight | b79677191a4d4239e8793fa0b6e8a8b69870a14d | [
"MIT"
] | 1 | 2020-02-23T21:15:59.000Z | 2020-02-23T21:15:59.000Z | servicios/Locator.cpp | seblaz/Final-Fight | b79677191a4d4239e8793fa0b6e8a8b69870a14d | [
"MIT"
] | 1 | 2020-03-06T21:31:10.000Z | 2020-03-06T21:31:10.000Z | servicios/Locator.cpp | seblaz/Final-Fight | b79677191a4d4239e8793fa0b6e8a8b69870a14d | [
"MIT"
] | 1 | 2020-02-23T21:28:28.000Z | 2020-02-23T21:28:28.000Z | //
// Created by sebas on 8/9/19.
//
#include "Locator.h"
/**
* Logger.
*/
Logger *Locator::logger_;
Logger *Locator::logger() {
return logger_;
}
void Locator::provide(Logger *logger) {
logger_ = logger;
}
/**
* Configuracion.
*/
Configuracion *Locator::configuracion_;
Configuracion *Locator::configu... | 15.268657 | 61 | 0.693385 | seblaz |
0c06cb94f1791b3c77a1e2f28308eeb60d302d95 | 284 | cc | C++ | test/camera.cc | imkaywu/open3DCV | 33ef0507e565bce2ccff7409ff35a8970e6eed2d | [
"BSD-3-Clause"
] | 37 | 2018-07-30T15:34:29.000Z | 2022-01-10T22:50:39.000Z | test/camera.cc | imkaywu/open3DCV | 33ef0507e565bce2ccff7409ff35a8970e6eed2d | [
"BSD-3-Clause"
] | 1 | 2020-10-09T17:51:42.000Z | 2020-11-11T19:41:06.000Z | test/camera.cc | imkaywu/open3DCV | 33ef0507e565bce2ccff7409ff35a8970e6eed2d | [
"BSD-3-Clause"
] | 14 | 2017-12-03T15:24:01.000Z | 2021-09-16T02:13:31.000Z | //
// camera.cpp
// open3DCV_test
//
// Created by KaiWu on Jul/5/17.
// Copyright © 2017 KaiWu. All rights reserved.
//
#include <stdio.h>
#include "camera.h"
using namespace std;
using namespace open3DCV;
int main(int argc, const char * argv[]) {
return 0;
}
| 12.909091 | 48 | 0.630282 | imkaywu |
0c0cbcc68d367a76f0a1e0a20b7ed339c461c663 | 839 | cpp | C++ | cpp/ql/test/query-tests/Security/CWE/CWE-497/semmle/tests/tests_sysconf.cpp | RoryPreddyGithubEnterprise/codeql | af27da1b39f5529faf4c5c6bcf01834f10d89aa9 | [
"MIT"
] | 643 | 2018-08-03T11:16:54.000Z | 2020-04-27T23:10:55.000Z | cpp/ql/test/query-tests/Security/CWE/CWE-497/semmle/tests/tests_sysconf.cpp | RoryPreddyGithubEnterprise/codeql | af27da1b39f5529faf4c5c6bcf01834f10d89aa9 | [
"MIT"
] | 1,880 | 2018-08-03T11:28:32.000Z | 2020-04-28T13:18:51.000Z | cpp/ql/test/query-tests/Security/CWE/CWE-497/semmle/tests/tests_sysconf.cpp | RoryPreddyGithubEnterprise/codeql | af27da1b39f5529faf4c5c6bcf01834f10d89aa9 | [
"MIT"
] | 218 | 2018-08-03T11:16:58.000Z | 2020-04-24T02:24:00.000Z |
typedef unsigned long size_t;
typedef signed long ssize_t;
void *malloc(size_t size);
#define NULL (0)
int printf(const char *format, ...);
size_t strlen(const char *s);
int get_fd();
int write(int handle, const void *buffer, size_t length);
long sysconf(int name);
#define _SC_CHILD_MAX (2)
size_t confstr(int name... | 19.97619 | 61 | 0.680572 | RoryPreddyGithubEnterprise |
0c0ddeeabdb96e2f498a7e49b45488068edea2da | 7,651 | cpp | C++ | Fuji/Source/Drivers/PS2/MFInput_PS2.cpp | TurkeyMan/fuji | afd6a26c710ce23965b088ad158fe916d6a1a091 | [
"BSD-2-Clause"
] | 35 | 2015-01-19T22:07:48.000Z | 2022-02-21T22:17:53.000Z | Fuji/Source/Drivers/PS2/MFInput_PS2.cpp | TurkeyMan/fuji | afd6a26c710ce23965b088ad158fe916d6a1a091 | [
"BSD-2-Clause"
] | 1 | 2022-02-23T09:34:15.000Z | 2022-02-23T09:34:15.000Z | Fuji/Source/Drivers/PS2/MFInput_PS2.cpp | TurkeyMan/fuji | afd6a26c710ce23965b088ad158fe916d6a1a091 | [
"BSD-2-Clause"
] | 4 | 2015-05-11T03:31:35.000Z | 2018-09-27T04:55:57.000Z | #include "Fuji_Internal.h"
#if MF_INPUT == MF_DRIVER_PS2
#include "MFVector.h"
#include "MFInput_Internal.h"
#include "MFHeap.h"
#include "MFIni.h"
/*** Structure definitions ***/
/*** Globals ***/
int gGamepadCount = 0;
int gKeyboardCount = 0;
int gMouseCount = 0;
char gKeyState[256];
bool g... | 21.077135 | 90 | 0.649327 | TurkeyMan |
0c12563f6dc15690aaa6754dda968b5f12ea895d | 31,784 | cpp | C++ | Build/hosEditor/hosEditorDlg.cpp | Game-institute-1st-While-true/hosEngine | 2cc0b464740a976a8b37afd7a9e3479fe7484cf0 | [
"MIT"
] | null | null | null | Build/hosEditor/hosEditorDlg.cpp | Game-institute-1st-While-true/hosEngine | 2cc0b464740a976a8b37afd7a9e3479fe7484cf0 | [
"MIT"
] | null | null | null | Build/hosEditor/hosEditorDlg.cpp | Game-institute-1st-While-true/hosEngine | 2cc0b464740a976a8b37afd7a9e3479fe7484cf0 | [
"MIT"
] | 2 | 2021-07-14T00:14:18.000Z | 2021-07-27T04:16:53.000Z |
// hosEditorDlg.cpp: 구현 파일
//
#include "pch.h"
#include "framework.h"
#include "hosEditor.h"
#include "SceneView.h"
#include "TransformView.h"
#include "BoxCollisionview.h"
#include "SphereCollisionView.h"
#include "CapsuleCollisionView.h"
#include "CameraView.h"
#include "RigidbodyView.h"
#include "AudioListenerVie... | 26.619765 | 123 | 0.745532 | Game-institute-1st-While-true |
0c12971dc38865e8bb095a745228a17b25f99525 | 75,153 | cpp | C++ | src/WndResizer/WndResizer.cpp | AbsCoDes-lib/WndCommons | 5af3ce02ad0396617299496cab60673e36a0e653 | [
"Apache-2.0"
] | null | null | null | src/WndResizer/WndResizer.cpp | AbsCoDes-lib/WndCommons | 5af3ce02ad0396617299496cab60673e36a0e653 | [
"Apache-2.0"
] | null | null | null | src/WndResizer/WndResizer.cpp | AbsCoDes-lib/WndCommons | 5af3ce02ad0396617299496cab60673e36a0e653 | [
"Apache-2.0"
] | null | null | null | /*
DISCLAIMER
Auther: Mizan Rahman
Original publication location: http://www.codeproject.com/KB/dialog/WndResizer.aspx
This work is provided under the terms and condition described in The Code Project Open License (CPOL)
(http://www.codeproject.com/info/cpol10.aspx)
This disclaimer should not be removed and should e... | 34.207101 | 155 | 0.527723 | AbsCoDes-lib |
0c1714ca9d511e0ec4fdc808b2261c7c4d31608c | 1,896 | cpp | C++ | firmware/ventilator-controller-stm32/Core/Src/Pufferfish/Driver/BreathingCircuit/ControlLoop.cpp | pez-globo/pufferfish-software | b42fecd652731dd80fbe366e95983503fced37a4 | [
"Apache-2.0"
] | 1 | 2020-10-20T23:47:23.000Z | 2020-10-20T23:47:23.000Z | firmware/ventilator-controller-stm32/Core/Src/Pufferfish/Driver/BreathingCircuit/ControlLoop.cpp | pez-globo/pufferfish-software | b42fecd652731dd80fbe366e95983503fced37a4 | [
"Apache-2.0"
] | 242 | 2020-10-23T06:44:01.000Z | 2022-01-28T05:50:45.000Z | firmware/ventilator-controller-stm32/Core/Src/Pufferfish/Driver/BreathingCircuit/ControlLoop.cpp | pez-globo/pufferfish-vent-software | f1e5e47acf1941e7c729adb750b85bf26c38b274 | [
"Apache-2.0"
] | 1 | 2021-04-12T02:10:18.000Z | 2021-04-12T02:10:18.000Z | /*
* BreathingCircuit.tpp
*
* Created on: June 6, 2020
* Author: Ethan Li
*/
#include "Pufferfish/Driver/BreathingCircuit/ControlLoop.h"
namespace Pufferfish::Driver::BreathingCircuit {
// ControlLoop
// HFNC ControlLoop
SensorVars &HFNCControlLoop::sensor_vars() {
return sensor_vars_;
}
const Sensor... | 27.085714 | 91 | 0.757384 | pez-globo |
0c176e32658501cbd22417750727509d9286caa6 | 145 | cpp | C++ | src/TacticsVictory/common_files/Scene/Objects/Units/Ground/GroundUnit_.cpp | Sasha7b9/U-Cube | 442927ff1391bfe78cdf520ad303c7dc29086b46 | [
"MIT"
] | null | null | null | src/TacticsVictory/common_files/Scene/Objects/Units/Ground/GroundUnit_.cpp | Sasha7b9/U-Cube | 442927ff1391bfe78cdf520ad303c7dc29086b46 | [
"MIT"
] | null | null | null | src/TacticsVictory/common_files/Scene/Objects/Units/Ground/GroundUnit_.cpp | Sasha7b9/U-Cube | 442927ff1391bfe78cdf520ad303c7dc29086b46 | [
"MIT"
] | null | null | null | // 2021/03/10 17:40:18 (c) Aleksandr Shevchenko e-mail : Sasha7b9@tut.by
#include "stdafx.h"
#include "Scene/Objects/Units/Ground/GroundUnit_.h"
| 36.25 | 72 | 0.744828 | Sasha7b9 |
0c19a5e41dfde254edb0756b883eb0365a0070d1 | 1,800 | cpp | C++ | src/NativeScript/Marshalling/FunctionReference/FunctionReferenceConstructor.cpp | linwaiwai/ios-runtime | 1e01a18c0cf936266a0c8d86bcc5ffc4ff3653ef | [
"Apache-2.0"
] | 1 | 2020-09-03T01:33:53.000Z | 2020-09-03T01:33:53.000Z | src/NativeScript/Marshalling/FunctionReference/FunctionReferenceConstructor.cpp | linwaiwai/ios-runtime | 1e01a18c0cf936266a0c8d86bcc5ffc4ff3653ef | [
"Apache-2.0"
] | null | null | null | src/NativeScript/Marshalling/FunctionReference/FunctionReferenceConstructor.cpp | linwaiwai/ios-runtime | 1e01a18c0cf936266a0c8d86bcc5ffc4ff3653ef | [
"Apache-2.0"
] | null | null | null | //
// FunctionReferenceConstructor.cpp
// NativeScript
//
// Created by Jason Zhekov on 10/20/14.
// Copyright (c) 2014 Telerik. All rights reserved.
//
#include "FunctionReferenceConstructor.h"
#include "FunctionReferenceInstance.h"
#include "Interop.h"
namespace NativeScript {
using namespace JSC;
const ClassI... | 43.902439 | 163 | 0.761667 | linwaiwai |
0c19c64ff9b0bfc0523431936929e35da155ecee | 8,027 | cpp | C++ | lib/libcpp/Solvers/applicationinterface.cpp | beckerrh/simfemsrc | d857eb6f6f8627412d4f9d89a871834c756537db | [
"MIT"
] | null | null | null | lib/libcpp/Solvers/applicationinterface.cpp | beckerrh/simfemsrc | d857eb6f6f8627412d4f9d89a871834c756537db | [
"MIT"
] | 1 | 2019-01-31T10:59:11.000Z | 2019-01-31T10:59:11.000Z | lib/libcpp/Solvers/applicationinterface.cpp | beckerrh/simfemsrc | d857eb6f6f8627412d4f9d89a871834c756537db | [
"MIT"
] | null | null | null | #include "Alat/stringvector.hpp"
#include "Solvers/applicationinterface.hpp"
#include "Mesh/meshunitinterface.hpp"
#include <cassert>
using namespace solvers;
/*--------------------------------------------------------------------------*/
ApplicationInterface::~ApplicationInterface() {}
ApplicationInterface::Appli... | 36.486364 | 219 | 0.722935 | beckerrh |
0c1a63aa55eb99305c8b4e17f2e422ba46d74a22 | 3,923 | hxx | C++ | inetcore/mshtml/src/site/text/fontcache.hxx | npocmaka/Windows-Server-2003 | 5c6fe3db626b63a384230a1aa6b92ac416b0765f | [
"Unlicense"
] | 17 | 2020-11-13T13:42:52.000Z | 2021-09-16T09:13:13.000Z | inetcore/mshtml/src/site/text/fontcache.hxx | sancho1952007/Windows-Server-2003 | 5c6fe3db626b63a384230a1aa6b92ac416b0765f | [
"Unlicense"
] | 2 | 2020-10-19T08:02:06.000Z | 2020-10-19T08:23:18.000Z | inetcore/mshtml/src/site/text/fontcache.hxx | sancho1952007/Windows-Server-2003 | 5c6fe3db626b63a384230a1aa6b92ac416b0765f | [
"Unlicense"
] | 14 | 2020-11-14T09:43:20.000Z | 2021-08-28T08:59:57.000Z | #ifndef I_FONTCACHE_HXX_
#define I_FONTCACHE_HXX_
#pragma INCMSG("--- Beg 'fontcache.hxx'")
class CCcs;
class CBaseCcs;
// These definitions are for the face cache held within the font cache.
// This is used to speed up the ApplyFontFace() function used during
// format calculation.
typedef struct _FACECACH... | 28.845588 | 117 | 0.544481 | npocmaka |
0c1a81f55bd4c87c63a37af2ba676373bd8308f2 | 1,391 | cpp | C++ | cpp/prime_factors.cpp | scoraig52/code | c9335071266267227b56e48861a4f188d16ca4a4 | [
"MIT"
] | 2 | 2021-02-18T04:42:40.000Z | 2021-12-12T00:27:42.000Z | cpp/prime_factors.cpp | akar-0/code | be15d79e7c9de107cc66cbdfcb3ae91a799607dd | [
"MIT"
] | null | null | null | cpp/prime_factors.cpp | akar-0/code | be15d79e7c9de107cc66cbdfcb3ae91a799607dd | [
"MIT"
] | 1 | 2021-11-20T10:24:09.000Z | 2021-11-20T10:24:09.000Z | using namespace std;
#include <unordered_map>
#include <vector>
#include <cmath>
using namespace std;
unordered_map<int,unsigned> factors(int n) {
vector<int> arr;
unordered_map<int, unsigned> count;
// if (n<2) {return unordered_map<int, unsigned>();}
int m=n, p=7, i=0;
while (m%2 == 0){
arr.push_back(... | 17.17284 | 53 | 0.483106 | scoraig52 |
0c1cde67c4607587c8bff564ac0f6c1e2868ddd2 | 4,493 | cpp | C++ | source/gameos/src/winmain.cpp | mechasource/mechcommander2 | b2c7cecf001cec1f535aa8d29c31bdc30d9aa983 | [
"BSD-2-Clause"
] | 38 | 2015-04-10T13:31:03.000Z | 2021-09-03T22:34:05.000Z | source/gameos/src/winmain.cpp | mechasource/mechcommander2 | b2c7cecf001cec1f535aa8d29c31bdc30d9aa983 | [
"BSD-2-Clause"
] | 1 | 2020-07-09T09:48:44.000Z | 2020-07-12T12:41:43.000Z | source/gameos/src/winmain.cpp | mechasource/mechcommander2 | b2c7cecf001cec1f535aa8d29c31bdc30d9aa983 | [
"BSD-2-Clause"
] | 12 | 2015-06-29T08:06:57.000Z | 2021-10-13T13:11:41.000Z | /*******************************************************************************
This file consist of reversed and interpreted code from object source in the
x86 debug build gameos.lib. The code in this file can not be used in any way
other than serve as an information reference to the original released source of
M... | 34.829457 | 92 | 0.732918 | mechasource |
0c1cf45447ae41123638fe8c231d053cd93601c7 | 19,947 | cpp | C++ | reference/1bitstudio-20190604/src/1bs_pulsesynth/pulsesynth.cpp | linuxmao-org/shiru-plugins | 08853f99140012234649e67e5647906fda74f6cc | [
"WTFPL"
] | 11 | 2019-06-15T06:36:36.000Z | 2022-02-22T04:49:22.000Z | reference/1bitstudio-20190604/src/1bs_pulsesynth/pulsesynth.cpp | nyxkn/shiru-plugins | 8088c04b94afb498cec6a14bd03c448936bf31e9 | [
"WTFPL"
] | 6 | 2019-06-15T14:04:49.000Z | 2019-11-27T15:35:13.000Z | reference/1bitstudio-20190604/src/1bs_pulsesynth/pulsesynth.cpp | nyxkn/shiru-plugins | 8088c04b94afb498cec6a14bd03c448936bf31e9 | [
"WTFPL"
] | 2 | 2020-12-30T00:21:35.000Z | 2021-07-04T18:32:46.000Z | #include "PulseSynth.h"
AudioEffect* createEffectInstance(audioMasterCallback audioMaster)
{
return new PulseSynth(audioMaster);
}
PulseSynth::PulseSynth(audioMasterCallback audioMaster) : AudioEffectX(audioMaster, NUM_PROGRAMS, NUM_PARAMS)
{
VstInt32 pgm,chn;
setNumInputs(NUM_INPUTS);
setNum... | 21.895719 | 150 | 0.636437 | linuxmao-org |
0c2299151f3cc19d2e5fe05fe0551cbe7d80f95d | 5,944 | cc | C++ | math/test/discrete_lyapunov_equation_test.cc | RobotLocomotion/drake-python3.7 | ae397a4c6985262d23e9675b9bf3927c08d027f5 | [
"BSD-3-Clause"
] | 2 | 2021-02-25T02:01:02.000Z | 2021-03-17T04:52:04.000Z | math/test/discrete_lyapunov_equation_test.cc | RobotLocomotion/drake-python3.7 | ae397a4c6985262d23e9675b9bf3927c08d027f5 | [
"BSD-3-Clause"
] | null | null | null | math/test/discrete_lyapunov_equation_test.cc | RobotLocomotion/drake-python3.7 | ae397a4c6985262d23e9675b9bf3927c08d027f5 | [
"BSD-3-Clause"
] | 1 | 2021-06-13T12:05:39.000Z | 2021-06-13T12:05:39.000Z | #include "drake/math/discrete_lyapunov_equation.h"
#include <limits>
#include <stdexcept>
#include <vector>
#include <Eigen/Core>
#include <gtest/gtest.h>
#include "drake/common/test_utilities/eigen_matrix_compare.h"
#include "drake/common/test_utilities/expect_no_throw.h"
namespace drake {
namespace math {
namespa... | 31.449735 | 80 | 0.642665 | RobotLocomotion |
0c2b42e4ea8cc821ef8692d0338feb6737dbf398 | 196 | cpp | C++ | examples/tetris/lib/Moon/src/cmp/cmp_base.cpp | KEGEStudios/Moon | 0e6aa078c8bf876c60aafe875ef53217ebdc74f1 | [
"MIT"
] | 2 | 2021-05-20T06:55:38.000Z | 2021-05-23T05:09:06.000Z | examples/tetris/lib/Moon/src/cmp/cmp_base.cpp | KEGEStudios/Moon | 0e6aa078c8bf876c60aafe875ef53217ebdc74f1 | [
"MIT"
] | 15 | 2021-04-21T05:26:39.000Z | 2021-07-06T07:07:28.000Z | examples/tetris/lib/Moon/src/cmp/cmp_base.cpp | reitmas32/Moon | 02790eb476f039b44664e7d8f24fa2839187e4fc | [
"MIT"
] | 1 | 2021-02-21T08:26:40.000Z | 2021-02-21T08:26:40.000Z | #include "../../include/cmp/cmp_base.hpp"
namespace Moon::Core
{
ComponentBase_t::ComponentBase_t()
{
}
ComponentBase_t::~ComponentBase_t()
{
}
} // namespace Moon::Core
| 15.076923 | 41 | 0.622449 | KEGEStudios |
0c2e5ccbb3f844de01e73aef5083d8e28da739d5 | 1,284 | cpp | C++ | Luogu/P3052.cpp | Nickel-Angel/ACM-and-OI | 79d13fd008c3a1fe9ebf35329aceb1fcb260d5d9 | [
"MIT"
] | null | null | null | Luogu/P3052.cpp | Nickel-Angel/ACM-and-OI | 79d13fd008c3a1fe9ebf35329aceb1fcb260d5d9 | [
"MIT"
] | 1 | 2021-11-18T15:10:29.000Z | 2021-11-20T07:13:31.000Z | Luogu/P3052.cpp | Nickel-Angel/ACM-and-OI | 79d13fd008c3a1fe9ebf35329aceb1fcb260d5d9 | [
"MIT"
] | null | null | null | /*
* @author Nickel_Angel (1239004072@qq.com)
* @copyright Copyright (c) 2022
*/
#include <algorithm>
#include <cstdio>
#include <cstring>
int n, w, a[20], f[1 << 19], g[1 << 19];
long long sum[1 << 19];
int main()
{
scanf("%d%d", &n, &w);
for (int i = 0; i < n; ++i)
scanf("%d", a + i);
memset(f,... | 25.68 | 82 | 0.271028 | Nickel-Angel |
0c2f9485fc072c724cf0d8ec52627f4704423fa7 | 3,246 | cpp | C++ | src/mod/debug/quantum_duck.cpp | fugueinheels/sigsegv-mvm | 092a69d44a3ed9aacd14886037f4093a27ff816b | [
"BSD-2-Clause"
] | 33 | 2016-02-18T04:27:53.000Z | 2022-01-15T18:59:53.000Z | src/mod/debug/quantum_duck.cpp | fugueinheels/sigsegv-mvm | 092a69d44a3ed9aacd14886037f4093a27ff816b | [
"BSD-2-Clause"
] | 5 | 2018-01-10T18:41:38.000Z | 2020-10-01T13:34:53.000Z | src/mod/debug/quantum_duck.cpp | fugueinheels/sigsegv-mvm | 092a69d44a3ed9aacd14886037f4093a27ff816b | [
"BSD-2-Clause"
] | 14 | 2017-08-06T23:02:49.000Z | 2021-08-24T00:24:16.000Z | #include "mod.h"
namespace Mod::Debug::Quantum_Duck
{
// +CBasePlayer::m_bDucked
// +CBasePlayer::m_bDucking
// +CBasePlayer::m_bInDuckJump
// +CBasePlayer::m_flDuckTime
// +CBasePlayer::m_flDuckJumpTime
// +CBasePlayer::m_bDuckToggled
// +CBasePlayer::m_fFlags <-- particularly FL_DUCKING, F... | 35.67033 | 135 | 0.705176 | fugueinheels |
0c3799b6c2560fd09d84cafa4ad16e1e896efc78 | 1,238 | cpp | C++ | 03/roh/2644.cpp | Dcom-KHU/2021-Winter-Algorithm-Study | ea32826abe7d8245ee9d3dc8d0161f7ba018a02f | [
"MIT"
] | 2 | 2021-01-09T10:05:21.000Z | 2021-01-10T06:14:03.000Z | 03/roh/2644.cpp | Dcom-KHU/2021-Winter-Algorithm-Study | ea32826abe7d8245ee9d3dc8d0161f7ba018a02f | [
"MIT"
] | null | null | null | 03/roh/2644.cpp | Dcom-KHU/2021-Winter-Algorithm-Study | ea32826abe7d8245ee9d3dc8d0161f7ba018a02f | [
"MIT"
] | 1 | 2021-02-03T13:09:09.000Z | 2021-02-03T13:09:09.000Z | #include<iostream>
#include<vector>
//lca(least common ancestor) 문제는 사실... log(n) 해결방법이 있습니다......
using namespace std;
//각노드의 부모의 인덱스를 저장하는 배열
int parent[1000];
//child가 final ancestor 에 도달할때까지의 방문하는 노드의 idx를 돌려준다.
vector<int> get_p(int child){
vector<int> result;
while(child != -1){
result.push_back(chil... | 20.295082 | 92 | 0.62601 | Dcom-KHU |
0c39ef78e2d076f6d2e13654b6b913a2f6f8254c | 2,483 | cpp | C++ | source/d3d9/d3d9_impl_state_block.cpp | neonkingfr/ReshadeC | bdce0e6b6b4456f9eb04c2cb847b392e31460c90 | [
"BSD-3-Clause"
] | null | null | null | source/d3d9/d3d9_impl_state_block.cpp | neonkingfr/ReshadeC | bdce0e6b6b4456f9eb04c2cb847b392e31460c90 | [
"BSD-3-Clause"
] | null | null | null | source/d3d9/d3d9_impl_state_block.cpp | neonkingfr/ReshadeC | bdce0e6b6b4456f9eb04c2cb847b392e31460c90 | [
"BSD-3-Clause"
] | null | null | null | /*
* Copyright (C) 2014 Patrick Mours
* SPDX-License-Identifier: BSD-3-Clause
*/
#include "d3d9_impl_state_block.hpp"
reshade::d3d9::state_block::state_block(IDirect3DDevice9 *device) :
_device(device)
{
#ifdef RESHADE_TEST_APPLICATION
// Avoid errors from the D3D9 debug runtime because the other slots return D3... | 33.554054 | 206 | 0.778896 | neonkingfr |
0c3a6e0c49281a3641ac269e4b58fc34cf12dedf | 339 | hpp | C++ | snowman.hpp | Roniharel100/CPP_EX1-Snowman_b | 0b41fc0f7946a373350819386b3bd0947eb597ee | [
"MIT"
] | null | null | null | snowman.hpp | Roniharel100/CPP_EX1-Snowman_b | 0b41fc0f7946a373350819386b3bd0947eb597ee | [
"MIT"
] | null | null | null | snowman.hpp | Roniharel100/CPP_EX1-Snowman_b | 0b41fc0f7946a373350819386b3bd0947eb597ee | [
"MIT"
] | null | null | null | #include <string>
#include <array>
using namespace std;
namespace ariel {
string snowman(int code);
const int min_snowman_code = 11111111;
const int max_snowman_code = 44444444;
const int base_num = 10;
const int min_index = 0;
const int max_index = 3;
const int top_arm = 0;
const int... | 19.941176 | 42 | 0.675516 | Roniharel100 |
0c3cdf0a548cb47115845f53749009a730f9ea86 | 3,102 | cpp | C++ | Source/XsollaUtils/Private/XsollaUtilsUrlBuilder.cpp | xsolla/store-ue4-sdk | e25440e9d0b82663929ee7f49807e9b6bb09606b | [
"Apache-2.0"
] | 14 | 2019-08-28T19:49:07.000Z | 2021-12-04T14:34:18.000Z | Plugins/XSolla/Source/XsollaUtils/Private/XsollaUtilsUrlBuilder.cpp | anchorholdgames/anchorhold | 00b4fb6b1229c9fd2dd1aff01f09ad0e9a224bbb | [
"MIT"
] | 34 | 2019-08-17T08:23:18.000Z | 2021-12-08T08:25:14.000Z | Plugins/XSolla/Source/XsollaUtils/Private/XsollaUtilsUrlBuilder.cpp | anchorholdgames/anchorhold | 00b4fb6b1229c9fd2dd1aff01f09ad0e9a224bbb | [
"MIT"
] | 12 | 2019-09-25T15:14:58.000Z | 2022-03-21T09:27:58.000Z | // Copyright 2021 Xsolla Inc. All Rights Reserved.
#include "XsollaUtilsUrlBuilder.h"
XsollaUtilsUrlBuilder::XsollaUtilsUrlBuilder(const FString& UrlTemplate)
: Url(UrlTemplate)
{
}
FString XsollaUtilsUrlBuilder::Build()
{
FString ResultUrl = Url;
// set path params
for (const auto& Param : PathParams)
{
con... | 26.741379 | 177 | 0.742424 | xsolla |
0c3f7b33a7a6b6f3dbe2e0b6c39973c0265e6e78 | 2,342 | hpp | C++ | include/ccbase/filesystem/directory_entry.hpp | adityaramesh/ccbase | 595e1416aab3cc8bc976aad9bb3e262c7d11e3b2 | [
"BSD-3-Clause-Clear"
] | 8 | 2015-01-08T05:44:43.000Z | 2021-05-11T15:54:17.000Z | include/ccbase/filesystem/directory_entry.hpp | adityaramesh/ccbase | 595e1416aab3cc8bc976aad9bb3e262c7d11e3b2 | [
"BSD-3-Clause-Clear"
] | 1 | 2016-01-31T08:48:53.000Z | 2016-01-31T08:54:28.000Z | include/ccbase/filesystem/directory_entry.hpp | adityaramesh/ccbase | 595e1416aab3cc8bc976aad9bb3e262c7d11e3b2 | [
"BSD-3-Clause-Clear"
] | 2 | 2015-03-26T11:08:18.000Z | 2016-01-30T03:28:06.000Z | /*
** File Name: directory_entry.hpp
** Author: Aditya Ramesh
** Date: 08/23/2013
** Contact: _@adityaramesh.com
*/
#ifndef ZDDEA7CE4_14FD_40C7_AA27_9BBF59D67383
#define ZDDEA7CE4_14FD_40C7_AA27_9BBF59D67383
#include <cstdint>
#include <ostream>
#include <ccbase/format.hpp>
#include <ccbase/platform.hpp>
#if PLATFOR... | 27.232558 | 81 | 0.675064 | adityaramesh |
0c41e9aa1e73a450c579104682ff33720d2c91c8 | 58,178 | cpp | C++ | src/JointMechanicsTool.cpp | j-d-roth/opensim-jam | a49f9ccdb202ded3e90da02bc7386e4f40bad0a1 | [
"Apache-2.0"
] | 16 | 2019-11-07T17:35:44.000Z | 2022-02-16T15:31:10.000Z | src/JointMechanicsTool.cpp | j-d-roth/opensim-jam | a49f9ccdb202ded3e90da02bc7386e4f40bad0a1 | [
"Apache-2.0"
] | 2 | 2020-07-13T05:00:45.000Z | 2020-08-11T15:38:15.000Z | src/JointMechanicsTool.cpp | j-d-roth/opensim-jam | a49f9ccdb202ded3e90da02bc7386e4f40bad0a1 | [
"Apache-2.0"
] | 2 | 2019-11-13T22:36:34.000Z | 2020-10-22T14:05:44.000Z | /* -------------------------------------------------------------------------- *
* JointMechanicsTool.cpp *
* -------------------------------------------------------------------------- *
* Author(s): Colin Smith ... | 38.502978 | 172 | 0.581079 | j-d-roth |
0c432fde7e0d3200477a78e6ed0ed3cf5cd7b1d4 | 2,738 | c++ | C++ | tests/css/grammar/semantic/convert_to.test.c++ | rubenvb/skui | 5bda2d73232eb7a763ba9d788c7603298767a7d7 | [
"MIT"
] | 19 | 2016-10-13T22:44:31.000Z | 2021-12-28T20:28:15.000Z | tests/css/grammar/semantic/convert_to.test.c++ | rubenvb/skui | 5bda2d73232eb7a763ba9d788c7603298767a7d7 | [
"MIT"
] | 1 | 2021-05-16T15:15:22.000Z | 2021-05-16T17:01:26.000Z | tests/css/grammar/semantic/convert_to.test.c++ | rubenvb/skui | 5bda2d73232eb7a763ba9d788c7603298767a7d7 | [
"MIT"
] | 4 | 2017-03-07T05:37:02.000Z | 2018-06-05T03:14:48.000Z | /**
* The MIT License (MIT)
*
* Copyright © 2019 Ruben Van Boxem
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to us... | 31.113636 | 96 | 0.71439 | rubenvb |
0c45416a540bd4eb84a6067dc74093fee62064f0 | 5,311 | inl | C++ | src/editor/include/agz/editor/resource/resource_panel.inl | AirGuanZ/Atrc | a0c4bc1b7bb96ddffff8bb1350f88b651b94d993 | [
"MIT"
] | 358 | 2018-11-29T08:15:05.000Z | 2022-03-31T07:48:37.000Z | src/editor/include/agz/editor/resource/resource_panel.inl | happyfire/Atrc | 74cac111e277be53eddea5638235d97cec96c378 | [
"MIT"
] | 23 | 2019-04-06T17:23:58.000Z | 2022-02-08T14:22:46.000Z | src/editor/include/agz/editor/resource/resource_panel.inl | happyfire/Atrc | 74cac111e277be53eddea5638235d97cec96c378 | [
"MIT"
] | 22 | 2019-03-04T01:47:56.000Z | 2022-01-13T06:06:49.000Z | #pragma once
AGZ_EDITOR_BEGIN
template<typename TracerObject>
ResourcePanel<TracerObject>::ResourcePanel(
ObjectContext &obj_ctx, const QString &default_type)
: obj_ctx_(obj_ctx)
{
type_selector_ = new ComboBoxWithoutWheelFocus(this);
type_selector_->addItems(obj_ctx.factory<TracerObject>().get_type_n... | 26.959391 | 86 | 0.707211 | AirGuanZ |
0c4558d91be24b04143ea10613ae3e7e98f4258c | 3,115 | cc | C++ | WinNTKline/KlineUtil/mygl/SDL_text.cc | TsyQi/MyAutomatic | 2afd3dcabba818051c7119fac7e6c099ff7954a7 | [
"Apache-2.0"
] | 4 | 2016-08-19T08:16:49.000Z | 2020-04-15T12:30:25.000Z | WinNTKline/KlineUtil/mygl/SDL_text.cc | TsyQi/Auto-control | d0dda0752d53d28f358346ee7ab217bf05118c96 | [
"Apache-2.0"
] | null | null | null | WinNTKline/KlineUtil/mygl/SDL_text.cc | TsyQi/Auto-control | d0dda0752d53d28f358346ee7ab217bf05118c96 | [
"Apache-2.0"
] | 3 | 2019-03-23T03:40:24.000Z | 2020-04-15T00:57:43.000Z | #include "SDL_text.h"
int SDL_GL_init()
{
if (SDL_Init(SDL_INIT_EVERYTHING) == -1)
return -1;
//Initialize SDL_ttf
return TTF_Init();
}
void SDL_GL_Enter2DMode(int w, int h)
{
/* Note, there may be other things you need to change,
depending on how you have your OpenGL state set up.
*/
glPushAttrib(GL_ENABLE_... | 22.092199 | 67 | 0.709791 | TsyQi |
0c475987bbe45d7f7c4f5d5c122d8c0ac6853adf | 17,922 | hpp | C++ | include/eixx/connect/transport_msg.hpp | heri16/eixx | 4352e356b68d2adbbdd0163ce3aaa93406c15ae2 | [
"Apache-2.0"
] | 91 | 2015-01-14T23:05:38.000Z | 2022-03-21T07:20:02.000Z | include/eixx/connect/transport_msg.hpp | heri16/eixx | 4352e356b68d2adbbdd0163ce3aaa93406c15ae2 | [
"Apache-2.0"
] | 32 | 2015-04-20T09:53:24.000Z | 2021-09-28T21:39:41.000Z | include/eixx/connect/transport_msg.hpp | heri16/eixx | 4352e356b68d2adbbdd0163ce3aaa93406c15ae2 | [
"Apache-2.0"
] | 21 | 2015-03-09T08:13:19.000Z | 2021-08-09T11:52:44.000Z | //----------------------------------------------------------------------------
/// \file transport_msg.hpp
//----------------------------------------------------------------------------
/// \brief Erlang distributed transport message type
//----------------------------------------------------------------------------
/... | 37.572327 | 104 | 0.587267 | heri16 |
0c4a16d45949472519183e9243784ba1944d70c6 | 3,069 | cpp | C++ | server/src/sink.cpp | imsoo/darknet_server | adb94237804e62bcccbbe5f7810da60640aef1d9 | [
"MIT"
] | 25 | 2020-02-08T12:08:20.000Z | 2022-03-15T12:17:07.000Z | server/src/sink.cpp | gwnuysw/darknet_server | 8b587038a165be23a1c83c32b31e92509de631e2 | [
"MIT"
] | 12 | 2020-02-14T09:01:26.000Z | 2021-10-30T14:59:49.000Z | server/src/sink.cpp | gwnuysw/darknet_server | 8b587038a165be23a1c83c32b31e92509de631e2 | [
"MIT"
] | 11 | 2019-12-21T00:30:16.000Z | 2021-11-23T09:01:02.000Z | #include <zmq.h>
#include <stdio.h>
#include <iostream>
#include <string>
#include <csignal>
#include <assert.h>
#include <tbb/concurrent_hash_map.h>
#include <opencv2/opencv.hpp>
#include "share_queue.h"
#include "frame.hpp"
// ZMQ
void *sock_pull;
void *sock_pub;
// ShareQueue
tbb::concurrent_hash_map<int, Frame> f... | 21.612676 | 77 | 0.641251 | imsoo |
0c4b1659eb975da0e7c9e93a05b75480a5b514a8 | 8,861 | cpp | C++ | unit/json/json_parser.cpp | MatWise/cbmc | c9284aee34bae53ba2b3dce8810720735e0a94fa | [
"BSD-4-Clause"
] | null | null | null | unit/json/json_parser.cpp | MatWise/cbmc | c9284aee34bae53ba2b3dce8810720735e0a94fa | [
"BSD-4-Clause"
] | null | null | null | unit/json/json_parser.cpp | MatWise/cbmc | c9284aee34bae53ba2b3dce8810720735e0a94fa | [
"BSD-4-Clause"
] | null | null | null | /*******************************************************************\
Module: Example Catch Tests
Author: Diffblue Ltd.
\*******************************************************************/
#include <fstream>
#include <json/json_parser.h>
#include <testing-utils/message.h>
#include <testing-utils/use_catch.h>
#incl... | 36.465021 | 80 | 0.601061 | MatWise |
0c4b7f83560a70b80162f8aaf1e2b1d8cc2b0c04 | 54 | hh | C++ | RAVL2/MSVC/include/Ravl/Logic/BMinTermListIndex.hh | isuhao/ravl2 | 317e0ae1cb51e320b877c3bad6a362447b5e52ec | [
"BSD-Source-Code"
] | null | null | null | RAVL2/MSVC/include/Ravl/Logic/BMinTermListIndex.hh | isuhao/ravl2 | 317e0ae1cb51e320b877c3bad6a362447b5e52ec | [
"BSD-Source-Code"
] | null | null | null | RAVL2/MSVC/include/Ravl/Logic/BMinTermListIndex.hh | isuhao/ravl2 | 317e0ae1cb51e320b877c3bad6a362447b5e52ec | [
"BSD-Source-Code"
] | null | null | null |
#include "../.././Logic/Index/BMinTermListIndex.hh"
| 13.5 | 51 | 0.666667 | isuhao |
0c4c295db47b3a08553e5a74646d2fbd50939d6f | 1,823 | cpp | C++ | CodeForces/educationalNuevo/e.cpp | CaDe27/Co-digos | 9eea1dbf6ed06fd115391328c0a2481029c83fc0 | [
"MIT"
] | null | null | null | CodeForces/educationalNuevo/e.cpp | CaDe27/Co-digos | 9eea1dbf6ed06fd115391328c0a2481029c83fc0 | [
"MIT"
] | null | null | null | CodeForces/educationalNuevo/e.cpp | CaDe27/Co-digos | 9eea1dbf6ed06fd115391328c0a2481029c83fc0 | [
"MIT"
] | null | null | null | #include <iostream>
#include <algorithm>
#include <stdio.h>
#include <string>
#include <vector>
#include <map>
#include <math.h>
#include <numeric>
#include <queue>
#include <stack>
#include <utility>
#include <queue>
#include <set>
#include <iomanip>
using namespace std;
typedef int64_t ll;
typedef pair<int,ll> pil... | 21.963855 | 102 | 0.565551 | CaDe27 |
0c5105027af358908eec4130f7d5906348088de6 | 8,773 | cpp | C++ | src/UnitTests/TestLagrangeInterpolator/TestLagrangeInterpolator.cpp | IncompleteWorlds/GMAT_2020 | 624de54d00f43831a4d46b46703e069d5c8c92ff | [
"Apache-2.0"
] | 2 | 2020-01-01T13:14:57.000Z | 2020-12-09T07:05:07.000Z | src/UnitTests/TestLagrangeInterpolator/TestLagrangeInterpolator.cpp | rdadan/GMAT-R2016a | d6a5b1fed68c33b0c4b1cfbd1e25a71cdfb8f8f5 | [
"Apache-2.0"
] | 1 | 2018-03-15T08:58:37.000Z | 2018-03-20T20:11:26.000Z | src/UnitTests/TestLagrangeInterpolator/TestLagrangeInterpolator.cpp | rdadan/GMAT-R2016a | d6a5b1fed68c33b0c4b1cfbd1e25a71cdfb8f8f5 | [
"Apache-2.0"
] | 3 | 2019-10-13T10:26:49.000Z | 2020-12-09T07:06:55.000Z | //$Id$
//------------------------------------------------------------------------------
// TestLagrangeInterpolator
//------------------------------------------------------------------------------
// GMAT: Goddard Mission Analysis Tool
//
// Author: Linda Jun
// Created: 2009.09.28
//
/**
... | 31.332143 | 99 | 0.453665 | IncompleteWorlds |
31aad3d400e083b4d2bad549cb8808a3ac12ddb9 | 14,686 | hpp | C++ | include/am/mia/raw_map.hpp | izenecloud/izenelib | 9d5958100e2ce763fc75f27217adf982d7c9d902 | [
"Apache-2.0"
] | 31 | 2015-03-03T19:13:42.000Z | 2020-09-03T08:11:56.000Z | include/am/mia/raw_map.hpp | izenecloud/izenelib | 9d5958100e2ce763fc75f27217adf982d7c9d902 | [
"Apache-2.0"
] | 1 | 2016-12-24T00:12:11.000Z | 2016-12-24T00:12:11.000Z | include/am/mia/raw_map.hpp | izenecloud/izenelib | 9d5958100e2ce763fc75f27217adf982d7c9d902 | [
"Apache-2.0"
] | 8 | 2015-09-06T01:55:21.000Z | 2021-12-20T02:16:13.000Z | #ifndef RAW_MAP_HPP
#define RAW_MAP_HPP
#include <string>
#include <types.h>
#include <vector>
#include <assert.h>
#include <iostream>
#include <stdio.h>
//#include "int_hash_table.hpp"
NS_IZENELIB_AM_BEGIN
template <
class size_t = uint32_t
>
class StringVector
{
const char* buf_;
public:
inline StringVe... | 20.684507 | 104 | 0.5828 | izenecloud |
31b1415f1bef9e735ad3321c1204e8df1428a1dc | 1,439 | cpp | C++ | C++/HashTable/HT.cpp | 19-2-SKKU-OSS/2019-2-OSS-L5 | 2b55676c1bcd5d327fc9e304925a05cb70e25904 | [
"Apache-2.0"
] | null | null | null | C++/HashTable/HT.cpp | 19-2-SKKU-OSS/2019-2-OSS-L5 | 2b55676c1bcd5d327fc9e304925a05cb70e25904 | [
"Apache-2.0"
] | null | null | null | C++/HashTable/HT.cpp | 19-2-SKKU-OSS/2019-2-OSS-L5 | 2b55676c1bcd5d327fc9e304925a05cb70e25904 | [
"Apache-2.0"
] | 4 | 2019-11-26T10:04:55.000Z | 2020-05-21T09:20:47.000Z | //Given an array of n integers and a number k, print out all pairs of elements in the array that sums to exactly k. For example, given the array [1, 2, 3, 6, 7] and k = 8, you should
//print 1, 7 and 2, 6 out.
#include <string>
#include <unordered_map>
#include <iostream>
#include <fstream>
using namespace std;
void... | 17.54878 | 182 | 0.536484 | 19-2-SKKU-OSS |
31b163ac7a95fe85444d6aefe014324f4638cd2f | 1,399 | cpp | C++ | C++/661. Image Smoother.cpp | WangYang-wy/LeetCode | c92fcb83f86c277de6785d5a950f16bc007ccd31 | [
"MIT"
] | 3 | 2018-07-28T15:36:18.000Z | 2020-03-17T01:26:22.000Z | C++/661. Image Smoother.cpp | WangYang-wy/LeetCode | c92fcb83f86c277de6785d5a950f16bc007ccd31 | [
"MIT"
] | null | null | null | C++/661. Image Smoother.cpp | WangYang-wy/LeetCode | c92fcb83f86c277de6785d5a950f16bc007ccd31 | [
"MIT"
] | null | null | null | //
// Created by 王阳 on 2018/4/18.
//
#include "header.h"
class Solution {
public:
vector<vector<int>> imageSmoother(vector<vector<int>> &M) {
vector<vector<int>> res;
int m = M.size();
int n = M[0].size();
for (int i = 0; i < m; i++) {
vector<int> tmp;
for (... | 22.934426 | 73 | 0.36955 | WangYang-wy |
31b872b5d7246a199ded8d3a31d7903449c2f629 | 6,781 | cpp | C++ | leetcode/cpp/qt_perfect_square.cpp | qiaotian/CodeInterview | 294c1ba86d8ace41a121c5ada4ba4c3765ccc17d | [
"WTFPL"
] | 5 | 2016-10-29T09:28:11.000Z | 2019-10-19T23:02:48.000Z | leetcode/cpp/qt_perfect_square.cpp | qiaotian/CodeInterview | 294c1ba86d8ace41a121c5ada4ba4c3765ccc17d | [
"WTFPL"
] | null | null | null | leetcode/cpp/qt_perfect_square.cpp | qiaotian/CodeInterview | 294c1ba86d8ace41a121c5ada4ba4c3765ccc17d | [
"WTFPL"
] | null | null | null | // TLE
// Need more memory to record status to reduce time expense)
/*
class Solution {
private:
int helper(int n, int maxnum) {
if(maxnum == 1) return n;
if(n == 0) return 0;
int sqr = min(maxnum, (int)floor(sqrt(n)));
if(pow(sqr, 2) == n) return 1;
int count = n;
... | 29.482609 | 110 | 0.49152 | qiaotian |
31bcb2eb78b049353ab9b85429def598bdbe0e10 | 352 | cpp | C++ | Vision/ObjectRecognition/src/object.cpp | cxdcxd/sepanta3 | a65a3415f046631ac4d6b91f9342966b0c030226 | [
"MIT"
] | null | null | null | Vision/ObjectRecognition/src/object.cpp | cxdcxd/sepanta3 | a65a3415f046631ac4d6b91f9342966b0c030226 | [
"MIT"
] | null | null | null | Vision/ObjectRecognition/src/object.cpp | cxdcxd/sepanta3 | a65a3415f046631ac4d6b91f9342966b0c030226 | [
"MIT"
] | null | null | null |
#include <object.hpp>
Object::Object() : cloud(new pcl::PointCloud<pcl::PointXYZRGB>),
normals(new pcl::PointCloud<pcl::PointNormal>),
keypoints(new pcl::PointCloud<pcl::PointXYZRGB>),
descriptors(new pcl::PointCloud<pcl::SHOT1344>),
correspondences(... | 35.2 | 66 | 0.605114 | cxdcxd |
31c0fb6840bfefa8006d3111b7c03a7d4f8f7b21 | 161 | hpp | C++ | src/shared/IServerConnection.hpp | sathwikmatsa/ndn-agar.io | a758414d0bb221a6183f20d332f101f3850505cf | [
"MIT"
] | 1 | 2020-06-10T07:44:43.000Z | 2020-06-10T07:44:43.000Z | src/shared/IServerConnection.hpp | sathwikmatsa/ndn-agar.io | a758414d0bb221a6183f20d332f101f3850505cf | [
"MIT"
] | null | null | null | src/shared/IServerConnection.hpp | sathwikmatsa/ndn-agar.io | a758414d0bb221a6183f20d332f101f3850505cf | [
"MIT"
] | null | null | null | #pragma once
class IServerConnection {
public:
virtual void client_connected(int clientIndex) = 0;
virtual void client_disconnected(int clientIndex) = 0;
};
| 23 | 56 | 0.776398 | sathwikmatsa |
31c224511a4e753ed26719be20cc40087eb94988 | 2,354 | cpp | C++ | scratch/projects/kinematics/xParabolicDish.cpp | tingelst/versor | c831231e5011cfd1f62da8948cff7956d2f6670b | [
"BSD-3-Clause"
] | null | null | null | scratch/projects/kinematics/xParabolicDish.cpp | tingelst/versor | c831231e5011cfd1f62da8948cff7956d2f6670b | [
"BSD-3-Clause"
] | null | null | null | scratch/projects/kinematics/xParabolicDish.cpp | tingelst/versor | c831231e5011cfd1f62da8948cff7956d2f6670b | [
"BSD-3-Clause"
] | null | null | null | /*
* =====================================================================================
*
* Filename: xParabolicDish.cpp
*
* Description: folding of a parabolic dish
*
* Version: 1.0
* Created: 04/08/2014 17:48:57
* Revision: none
* Compiler: gcc
*
* Autho... | 20.649123 | 88 | 0.448598 | tingelst |
31c73bcca22ef514ea7e8bf12579bd8e3891e4ae | 78 | hh | C++ | Include/AcpiCa.hh | ahoka/esrtk | bb5ff7f9caa22b6d6d91e660c6d78e471394a0cc | [
"BSD-2-Clause"
] | 1 | 2018-07-08T15:47:57.000Z | 2018-07-08T15:47:57.000Z | Include/AcpiCa.hh | ahoka/esrtk | bb5ff7f9caa22b6d6d91e660c6d78e471394a0cc | [
"BSD-2-Clause"
] | null | null | null | Include/AcpiCa.hh | ahoka/esrtk | bb5ff7f9caa22b6d6d91e660c6d78e471394a0cc | [
"BSD-2-Clause"
] | null | null | null | #ifndef ACPICA_HH
#define ACPICA_HH
extern "C"
{
#include <acpi.h>
}
#endif
| 7.8 | 17 | 0.692308 | ahoka |
31cdacc3946022055e7d346eb258829294954eb3 | 1,519 | cpp | C++ | code/History.cpp | omerdagan84/neomem | 7d2f782bb37f1ab0ac6580d00672e114605afab7 | [
"MIT"
] | 1 | 2022-02-10T01:41:32.000Z | 2022-02-10T01:41:32.000Z | code/History.cpp | omerdagan84/neomem | 7d2f782bb37f1ab0ac6580d00672e114605afab7 | [
"MIT"
] | null | null | null | code/History.cpp | omerdagan84/neomem | 7d2f782bb37f1ab0ac6580d00672e114605afab7 | [
"MIT"
] | null | null | null |
// CHistory
#include "precompiled.h"
#include "NeoMem.h"
#include "History.h"
#ifdef _DEBUG
#undef THIS_FILE
static char THIS_FILE[]=__FILE__;
#define new DEBUG_NEW
#endif
CHistory::CHistory() :
m_nStart (0),
m_nStop (-1),
m_nPos (-1),
m_nPositions (0)
{
}
CHistory::~CHistory()
{
}
BOOL CHistory::SetSize(i... | 14.747573 | 78 | 0.692561 | omerdagan84 |
31ce7147b5c6cd02338b6d7d205fc1da6b21cc88 | 1,126 | cpp | C++ | libs/fnd/config/test/src/unit_test_fnd_config_noexcept.cpp | myoukaku/bksge | 0f8b60e475a3f1709723906e4796b5e60decf06e | [
"MIT"
] | 4 | 2018-06-10T13:35:32.000Z | 2021-06-03T14:27:41.000Z | libs/fnd/config/test/src/unit_test_fnd_config_noexcept.cpp | myoukaku/bksge | 0f8b60e475a3f1709723906e4796b5e60decf06e | [
"MIT"
] | 566 | 2017-01-31T05:36:09.000Z | 2022-02-09T05:04:37.000Z | libs/fnd/config/test/src/unit_test_fnd_config_noexcept.cpp | myoukaku/bksge | 0f8b60e475a3f1709723906e4796b5e60decf06e | [
"MIT"
] | 1 | 2018-07-05T04:40:53.000Z | 2018-07-05T04:40:53.000Z | /**
* @file unit_test_fnd_config_noexcept.cpp
*
* @brief
*
* @author myoukaku
*/
#include <bksge/fnd/config.hpp>
#include <gtest/gtest.h>
namespace bksge_config_noexcept_test
{
void f1();
void f2() BKSGE_NOEXCEPT;
void f3() BKSGE_NOEXCEPT_OR_NOTHROW;
void f4() BKSGE_NOEXCEPT_IF(true);
void f... | 27.463415 | 56 | 0.713144 | myoukaku |
31d00b21ab21f9c5c79948a86f00a4e7e9f8118d | 5,653 | cpp | C++ | cpp/oneapi/dal/test/engine/linalg/test/dot.cpp | cmsxbc/oneDAL | eeb8523285907dc359c84ca4894579d5d1d9f57e | [
"Apache-2.0"
] | 188 | 2016-04-16T12:11:48.000Z | 2018-01-12T12:42:55.000Z | cpp/oneapi/dal/test/engine/linalg/test/dot.cpp | cmsxbc/oneDAL | eeb8523285907dc359c84ca4894579d5d1d9f57e | [
"Apache-2.0"
] | 1,198 | 2020-03-24T17:26:18.000Z | 2022-03-31T08:06:15.000Z | cpp/oneapi/dal/test/engine/linalg/test/dot.cpp | cmsxbc/oneDAL | eeb8523285907dc359c84ca4894579d5d1d9f57e | [
"Apache-2.0"
] | 93 | 2018-01-23T01:59:23.000Z | 2020-03-16T11:04:19.000Z | /*******************************************************************************
* Copyright 2021 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.o... | 34.054217 | 100 | 0.545905 | cmsxbc |
31d39f996c423a51578a99c36ebc1de204caee0c | 11,354 | cpp | C++ | src/OpenCV/library.cpp | TORU777/OpenR8 | be3de459e30ffcf6234cd4d6a0d169cc4ad18aa0 | [
"Unlicense"
] | null | null | null | src/OpenCV/library.cpp | TORU777/OpenR8 | be3de459e30ffcf6234cd4d6a0d169cc4ad18aa0 | [
"Unlicense"
] | null | null | null | src/OpenCV/library.cpp | TORU777/OpenR8 | be3de459e30ffcf6234cd4d6a0d169cc4ad18aa0 | [
"Unlicense"
] | 3 | 2019-03-30T01:45:28.000Z | 2021-04-24T04:37:39.000Z | /*
Copyright (c) 2004-2017 Open Robot Club. All rights reserved.
OpenCV library for R7.
*/
#include <opencv2/opencv.hpp>
#include "R7.hpp"
using namespace std;
using namespace cv;
typedef struct {
VideoCapture *videoCapture;
int deviceNum;
int apiID;
Mat capturedImage;
} OpenCV_t;
vector<VideoCapture *> vide... | 30.686486 | 110 | 0.747578 | TORU777 |
31d428bd8e8fb3e91465f8c947d6dd05ae1740f2 | 1,318 | hpp | C++ | include/bg2e/platform.hpp | ferserc1/bg2e-cpp | f3a04c5202161846b1329918c5070a2e930bec42 | [
"MIT"
] | null | null | null | include/bg2e/platform.hpp | ferserc1/bg2e-cpp | f3a04c5202161846b1329918c5070a2e930bec42 | [
"MIT"
] | null | null | null | include/bg2e/platform.hpp | ferserc1/bg2e-cpp | f3a04c5202161846b1329918c5070a2e930bec42 | [
"MIT"
] | null | null | null |
#ifndef _bg2e_platform_hpp_
#define _bg2e_platform_hpp_
#include <bx/bx.h>
#define BG2E_PLATFORM_ANDROID 0
#define BG2E_PLATFORM_BSD 0
#define BG2E_PLATFORM_EMSCRIPTEN 0
#define BG2E_PLATFORM_IOS 0
#define BG2E_PLATFORM_LINUX 0
#define BG2E_PLATFORM_OSX ... | 28.042553 | 41 | 0.708649 | ferserc1 |
31d4321544086c76173ffd7e85b0d214d666b9a1 | 4,508 | cpp | C++ | rtsp-streamer/screenshot.cpp | alexeyz041/toolbox | dbb6efff6eb0bcf56fe5b29a0a98d86b5971ddbc | [
"CC0-1.0"
] | 1 | 2022-02-17T22:23:59.000Z | 2022-02-17T22:23:59.000Z | rtsp-streamer/screenshot.cpp | alexeyz041/toolbox | dbb6efff6eb0bcf56fe5b29a0a98d86b5971ddbc | [
"CC0-1.0"
] | null | null | null | rtsp-streamer/screenshot.cpp | alexeyz041/toolbox | dbb6efff6eb0bcf56fe5b29a0a98d86b5971ddbc | [
"CC0-1.0"
] | null | null | null |
#include "screenshot.h"
void initimage( struct shmimage * image )
{
image->ximage = NULL ;
image->shminfo.shmaddr = (char *) -1 ;
}
void destroyimage( Display * dsp, struct shmimage * image )
{
if( image->ximage )
{
XShmDetach( dsp, &image->shminfo ) ;
XDestroyImage( image->ximage... | 23.726316 | 98 | 0.564996 | alexeyz041 |
31d445159dc8c0152bbef158390e2f54c391a136 | 5,054 | cxx | C++ | Testing/Code/Common/itkBinaryThresholdSpatialFunctionTest.cxx | kiranhs/ITKv4FEM-Kiran | 0e4ab3b61b5fc4c736f04a73dd19e41390f20152 | [
"BSD-3-Clause"
] | 1 | 2018-04-15T13:32:43.000Z | 2018-04-15T13:32:43.000Z | Testing/Code/Common/itkBinaryThresholdSpatialFunctionTest.cxx | kiranhs/ITKv4FEM-Kiran | 0e4ab3b61b5fc4c736f04a73dd19e41390f20152 | [
"BSD-3-Clause"
] | null | null | null | Testing/Code/Common/itkBinaryThresholdSpatialFunctionTest.cxx | kiranhs/ITKv4FEM-Kiran | 0e4ab3b61b5fc4c736f04a73dd19e41390f20152 | [
"BSD-3-Clause"
] | null | null | null | /*=========================================================================
Program: Insight Segmentation & Registration Toolkit
Module: itkBinaryThresholdSpatialFunctionTest.cxx
Language: C++
Date: $Date$
Version: $Revision$
Copyright (c) Insight Software Consortium. All rights reserved.
S... | 31.391304 | 83 | 0.658686 | kiranhs |
31d666cde3c384ff29df1851cbfb700f4b047df1 | 9,862 | hpp | C++ | Data/UnevenBlock.hpp | AnabelSMRuggiero/ann | edbd9dc1e2080e2dece31ed55dc36e6cd6f2aa45 | [
"Apache-2.0"
] | null | null | null | Data/UnevenBlock.hpp | AnabelSMRuggiero/ann | edbd9dc1e2080e2dece31ed55dc36e6cd6f2aa45 | [
"Apache-2.0"
] | null | null | null | Data/UnevenBlock.hpp | AnabelSMRuggiero/ann | edbd9dc1e2080e2dece31ed55dc36e6cd6f2aa45 | [
"Apache-2.0"
] | null | null | null | /*
NNDescent.cpp: Copyright (c) Anabel Ruggiero
At the time of writting, this code is unreleased and not published under a license.
As a result, I currently retain all legal rights I am legally entitled to.
I am currently considering a permissive license for releasing this code, such as the Apache 2.0 w/LLVM exception... | 36.257353 | 221 | 0.692253 | AnabelSMRuggiero |
31d933ab08d787839c96b18d68f21d42c08e803d | 36,240 | cpp | C++ | STF/Source/Types/STFString.cpp | rerunner/STCM_driver | 8fef3dd7327812fd317fdb0e6fab8d36e345a505 | [
"BSD-3-Clause"
] | null | null | null | STF/Source/Types/STFString.cpp | rerunner/STCM_driver | 8fef3dd7327812fd317fdb0e6fab8d36e345a505 | [
"BSD-3-Clause"
] | null | null | null | STF/Source/Types/STFString.cpp | rerunner/STCM_driver | 8fef3dd7327812fd317fdb0e6fab8d36e345a505 | [
"BSD-3-Clause"
] | null | null | null | ///
/// @brief Foundation classes for string handling
///
#include "STF/Interface/Types/STFString.h"
#include "STF/Interface/STFMemoryManagement.h"
#include "STF/Interface/STFCallingConventions.h"
#include "STF/Interface/STFDataManipulationMacros.h"
#include "STF/Interface/STFDebug.h"
#include <stdio.h>
... | 16.37596 | 109 | 0.544123 | rerunner |
31dc3ec907cfbc8ff5e912e7008b046477e3297c | 57 | cpp | C++ | code archive/TIOJ/1605.cpp | brianbbsu/program | c4505f2b8c0b91010e157db914a63c49638516bc | [
"MIT"
] | 4 | 2018-04-08T08:07:58.000Z | 2021-06-07T14:55:24.000Z | code archive/TIOJ/1605.cpp | brianbbsu/program | c4505f2b8c0b91010e157db914a63c49638516bc | [
"MIT"
] | null | null | null | code archive/TIOJ/1605.cpp | brianbbsu/program | c4505f2b8c0b91010e157db914a63c49638516bc | [
"MIT"
] | 1 | 2018-10-29T12:37:25.000Z | 2018-10-29T12:37:25.000Z | #include<stdio.h>
int main(){puts("APRIL FOOL'S DAY!");}
| 19 | 38 | 0.649123 | brianbbsu |
31e421fff97882e8a84c98ebf06a104491621c4d | 3,403 | cpp | C++ | src/common/tzplatform-config.cpp | Samsung/security-manager | 10b062f317d5d5a7b88ed13242540e9034fd019f | [
"Apache-2.0"
] | 14 | 2015-09-17T19:30:34.000Z | 2021-11-11T14:10:43.000Z | src/common/tzplatform-config.cpp | Samsung/security-manager | 10b062f317d5d5a7b88ed13242540e9034fd019f | [
"Apache-2.0"
] | 5 | 2015-09-17T13:33:39.000Z | 2015-11-12T21:37:09.000Z | src/common/tzplatform-config.cpp | Samsung/security-manager | 10b062f317d5d5a7b88ed13242540e9034fd019f | [
"Apache-2.0"
] | 14 | 2015-06-08T07:40:24.000Z | 2020-01-20T18:58:13.000Z | /*
* Copyright (c) 2014-2016 Samsung Electronics Co., Ltd All Rights Reserved
*
* Contact: Rafal Krypa <r.krypa@samsung.com>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* ... | 30.383929 | 95 | 0.723185 | Samsung |
31e4db34d89d694ac261facf677a297b7c6e4912 | 2,715 | cpp | C++ | osc/reader/types/OscBlob.cpp | MugenSAS/osc-cpp-qt | 4dc24d2e073c614ecdcd8de9db4a44f155b4d2b5 | [
"MIT"
] | 22 | 2015-03-05T17:00:41.000Z | 2022-03-19T19:39:21.000Z | osc/reader/types/OscBlob.cpp | MugenSAS/osc-cpp-qt | 4dc24d2e073c614ecdcd8de9db4a44f155b4d2b5 | [
"MIT"
] | 3 | 2016-02-20T02:33:01.000Z | 2016-06-07T22:00:56.000Z | osc/reader/types/OscBlob.cpp | MugenSAS/osc-cpp-qt | 4dc24d2e073c614ecdcd8de9db4a44f155b4d2b5 | [
"MIT"
] | 3 | 2016-12-05T19:16:47.000Z | 2021-02-01T08:22:06.000Z | /*
* Copyright (c) 2014 MUGEN SAS
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, ... | 23.405172 | 80 | 0.698711 | MugenSAS |
31e7f6f0d0213cfceea35eb9f5d1243ca634f060 | 4,893 | cpp | C++ | src/Chemin.cpp | prise-3d/pbrt-v3-ray | 083dac85191a464e74fc78f035c9f60e9d972917 | [
"MIT"
] | null | null | null | src/Chemin.cpp | prise-3d/pbrt-v3-ray | 083dac85191a464e74fc78f035c9f60e9d972917 | [
"MIT"
] | null | null | null | src/Chemin.cpp | prise-3d/pbrt-v3-ray | 083dac85191a464e74fc78f035c9f60e9d972917 | [
"MIT"
] | null | null | null | #include "Chemin.hpp"
#include <cmath>
bool Chemin::readPath(std::ifstream &in){
char k; // utiliser pour récupérer le caractère séparateur
// récupération éventuelle des coordonnées du pixel
in >> x >> k >> y >> k;
if(in.eof()) return false;
std::cout << "==================================================... | 33.285714 | 109 | 0.536685 | prise-3d |
31e9f6a70f562dd59052bd5442b2ee7d4f7870de | 6,339 | cpp | C++ | data/train/cpp/31e9f6a70f562dd59052bd5442b2ee7d4f7870deModelScene.cpp | harshp8l/deep-learning-lang-detection | 2a54293181c1c2b1a2b840ddee4d4d80177efb33 | [
"MIT"
] | 84 | 2017-10-25T15:49:21.000Z | 2021-11-28T21:25:54.000Z | data/train/cpp/31e9f6a70f562dd59052bd5442b2ee7d4f7870deModelScene.cpp | vassalos/deep-learning-lang-detection | cbb00b3e81bed3a64553f9c6aa6138b2511e544e | [
"MIT"
] | 5 | 2018-03-29T11:50:46.000Z | 2021-04-26T13:33:18.000Z | data/train/cpp/31e9f6a70f562dd59052bd5442b2ee7d4f7870deModelScene.cpp | vassalos/deep-learning-lang-detection | cbb00b3e81bed3a64553f9c6aa6138b2511e544e | [
"MIT"
] | 24 | 2017-11-22T08:31:00.000Z | 2022-03-27T01:22:31.000Z | #include "Scene/ModelScene.h"
#include "Model/StlModel.h"
#include "Model/VolumeModel.h"
#include "Model/PointsModel.h"
#include "Model/EvaluatorModel.h"
#include "Model/AxesModel.h"
namespace Scene {
ModelScene::ModelScene() :
AbstractScene() {
}
ModelScene::~ModelScene() {
}
Viewport:... | 28.048673 | 109 | 0.557343 | harshp8l |
31ef67de141a8c3f10773da7059d7bb3434f17a3 | 794 | cpp | C++ | src/event/from_string.cpp | cbosoft/aite | 61c0a108da9884e6c2d290ca87eafa5521326acc | [
"MIT"
] | null | null | null | src/event/from_string.cpp | cbosoft/aite | 61c0a108da9884e6c2d290ca87eafa5521326acc | [
"MIT"
] | null | null | null | src/event/from_string.cpp | cbosoft/aite | 61c0a108da9884e6c2d290ca87eafa5521326acc | [
"MIT"
] | null | null | null | #include <sstream>
#include <vector>
#include "event.hpp"
#include "new_colony_event.hpp"
#include "../util/exception.hpp"
// Manages creation of event object pointers given the name of the event to
// create.
Event_ptr Event::from_string(std::string s)
{
std::stringstream ss(s);
std::string evname, args_raw;
st... | 20.358974 | 110 | 0.63728 | cbosoft |
31f140576d417e6fc6adb77286281f32c3af1028 | 20,725 | cpp | C++ | xmlcc/xmlccCfgConfig.cpp | cscheiblich/XMLCC | efda13ae7261b22304907432d1298a865d14bcdc | [
"MIT"
] | 1 | 2020-02-07T09:12:50.000Z | 2020-02-07T09:12:50.000Z | xmlcc/xmlccCfgConfig.cpp | cscheiblich/XMLCC | efda13ae7261b22304907432d1298a865d14bcdc | [
"MIT"
] | null | null | null | xmlcc/xmlccCfgConfig.cpp | cscheiblich/XMLCC | efda13ae7261b22304907432d1298a865d14bcdc | [
"MIT"
] | null | null | null | /**
* @file xmlccCfgConfig.cpp
* @author Christian (graetz23@gmail.com)
*
* XMLCC is distributed under the MIT License (MIT); this file is part of.
*
* Copyright (c) 2008-2022 Christian (graetz23@gmail.com)
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and ... | 38.738318 | 91 | 0.598022 | cscheiblich |
31f1e804b10fb855c07d7113d35ff593b137157a | 4,500 | cpp | C++ | tide/wall/qml/TextureNodeRGBA.cpp | BlueBrain/Tide | 01e0518117509eaa0ccd9d79f067f385b641247c | [
"BSD-2-Clause"
] | 47 | 2016-07-12T02:00:11.000Z | 2021-07-06T17:50:53.000Z | tide/wall/qml/TextureNodeRGBA.cpp | BlueBrain/Tide | 01e0518117509eaa0ccd9d79f067f385b641247c | [
"BSD-2-Clause"
] | 135 | 2016-03-24T14:02:26.000Z | 2019-10-25T09:43:59.000Z | tide/wall/qml/TextureNodeRGBA.cpp | BlueBrain/Tide | 01e0518117509eaa0ccd9d79f067f385b641247c | [
"BSD-2-Clause"
] | 17 | 2016-03-23T13:34:48.000Z | 2022-03-21T03:21:54.000Z | /*********************************************************************/
/* Copyright (c) 2016-2017, EPFL/Blue Brain Project */
/* Raphael Dumusc <raphael.dumusc@epfl.ch> */
/* All rights reserved. */
/* ... | 45.918367 | 80 | 0.578667 | BlueBrain |
31f30624876c29b0e9a328b20a50ca8beba7870d | 22 | cpp | C++ | src/module.cpp | claremacrae/eml | d10eb7fcfc51abb277c1edbec8f15a7ed806ceb1 | [
"MIT"
] | 3 | 2020-11-03T19:22:11.000Z | 2021-05-05T13:16:15.000Z | src/module.cpp | claremacrae/eml | d10eb7fcfc51abb277c1edbec8f15a7ed806ceb1 | [
"MIT"
] | 2 | 2020-04-01T12:57:24.000Z | 2021-02-19T10:17:30.000Z | src/module.cpp | claremacrae/eml | d10eb7fcfc51abb277c1edbec8f15a7ed806ceb1 | [
"MIT"
] | 2 | 2020-10-15T18:28:18.000Z | 2020-10-25T16:44:17.000Z | #include "module.hpp"
| 11 | 21 | 0.727273 | claremacrae |
31f38a5f572b3e8035aa9eac0307304738e3aab9 | 5,778 | cpp | C++ | 3rdparty/Floating-Point-Root-Finder/src/KDOPBroadPhase.cpp | LamWS/ClothSimulation | 008b24fa96005cbe7ccae27a765d19e5f68a3ef2 | [
"MIT"
] | 5 | 2021-11-10T08:39:34.000Z | 2022-03-06T10:21:49.000Z | 3rdparty/Floating-Point-Root-Finder/src/KDOPBroadPhase.cpp | LamWS/ClothSimulation | 008b24fa96005cbe7ccae27a765d19e5f68a3ef2 | [
"MIT"
] | null | null | null | 3rdparty/Floating-Point-Root-Finder/src/KDOPBroadPhase.cpp | LamWS/ClothSimulation | 008b24fa96005cbe7ccae27a765d19e5f68a3ef2 | [
"MIT"
] | null | null | null | #include "KDOPBroadPhase.h"
#include <set>
#include "History.h"
#include "Mesh.h"
#include <iostream>
using namespace std;
using namespace Eigen;
KDOPBroadPhase::KDOPBroadPhase()
{
DOPaxis.push_back(Vector3d(1.0, 0, 0));
DOPaxis.push_back(Vector3d(0, 1.0, 0));
DOPaxis.push_back(Vector3d(0, 0, 1.0));
DOPaxis.p... | 31.064516 | 183 | 0.639322 | LamWS |
31f732a5b64e8278b8eccc43b4c15a8b373e9ef4 | 1,038 | hpp | C++ | macos/MersenneTwisterRandomizer.hpp | BoysTownorg/av-speech-in-noise | 71178c1f920e300f05c9da2d582d64035c591284 | [
"MIT"
] | null | null | null | macos/MersenneTwisterRandomizer.hpp | BoysTownorg/av-speech-in-noise | 71178c1f920e300f05c9da2d582d64035c591284 | [
"MIT"
] | null | null | null | macos/MersenneTwisterRandomizer.hpp | BoysTownorg/av-speech-in-noise | 71178c1f920e300f05c9da2d582d64035c591284 | [
"MIT"
] | null | null | null | #ifndef MACOS_MAIN_MERSENNETWISTERRANDOMIZER_HPP_
#define MACOS_MAIN_MERSENNETWISTERRANDOMIZER_HPP_
#include <av-speech-in-noise/playlist/RandomizedTargetPlaylists.hpp>
#include <av-speech-in-noise/core/RecognitionTestModel.hpp>
#include <random>
namespace av_speech_in_noise {
class MersenneTwisterRandomizer : publi... | 28.833333 | 70 | 0.684008 | BoysTownorg |
31f8925b9ec4468bddf0b4a0e3d0c79fc554b481 | 776 | cpp | C++ | src/libugly/edge/edge_undirected.cpp | JoshuaSBrown/GraphCluster | d9c28204b276165cf59137c9668c4dfcfa397089 | [
"MIT"
] | null | null | null | src/libugly/edge/edge_undirected.cpp | JoshuaSBrown/GraphCluster | d9c28204b276165cf59137c9668c4dfcfa397089 | [
"MIT"
] | null | null | null | src/libugly/edge/edge_undirected.cpp | JoshuaSBrown/GraphCluster | d9c28204b276165cf59137c9668c4dfcfa397089 | [
"MIT"
] | null | null | null | #include "../../../include/ugly/edge_undirected.hpp"
namespace ugly {
const constants::EdgeType EdgeUndirected::class_type_ =
constants::EdgeType::undirected;
constants::EdgeType EdgeUndirected::getClassType() {
return EdgeUndirected::class_type_;
}
EdgeUndirected::EdgeUndirected(int vertex1, int vertex2) {
... | 24.25 | 71 | 0.71134 | JoshuaSBrown |
31f910df850174b6c416aa9f8d7948b161dd94f0 | 4,966 | cpp | C++ | qtcreator/OpensslServer/main.cpp | fasShare/cpp-study | b7d691a02324260e09e5e35c0a71650ddb37fd97 | [
"MIT"
] | null | null | null | qtcreator/OpensslServer/main.cpp | fasShare/cpp-study | b7d691a02324260e09e5e35c0a71650ddb37fd97 | [
"MIT"
] | null | null | null | qtcreator/OpensslServer/main.cpp | fasShare/cpp-study | b7d691a02324260e09e5e35c0a71650ddb37fd97 | [
"MIT"
] | null | null | null | #include <errno.h>
#include <unistd.h>
#include <malloc.h>
#include <string.h>
#include <arpa/inet.h>
#include <sys/socket.h>
#include <sys/types.h>
#include <netinet/in.h>
#include <resolv.h>
#include "openssl/ssl.h"
#include "openssl/err.h"
#define FAIL -1
using namespace std;
int OpenListener(int port)
{ int... | 29.736527 | 108 | 0.594442 | fasShare |
31fc7a1ec8a5514626b68b4263578cda4e91d600 | 1,146 | cpp | C++ | tests/map.cpp | Enhex/Deco | e730ad7e61d74be56237dc2a5eb7cf807a0fa305 | [
"Apache-2.0"
] | 62 | 2017-12-27T16:25:05.000Z | 2022-02-23T15:21:10.000Z | tests/map.cpp | Enhex/Deco | e730ad7e61d74be56237dc2a5eb7cf807a0fa305 | [
"Apache-2.0"
] | 2 | 2017-12-27T20:31:45.000Z | 2017-12-28T21:15:01.000Z | tests/map.cpp | Enhex/Deco | e730ad7e61d74be56237dc2a5eb7cf807a0fa305 | [
"Apache-2.0"
] | 2 | 2017-12-28T14:59:03.000Z | 2019-01-07T04:12:18.000Z | #include <deco/list.h>
#include <deco/types/map.h>
#include <gs/serializer.h>
#include <cassert>
#include <fstream>
#include <iostream>
int main()
{
using T1 = std::map<std::string, std::string>;
const T1 val{ {"a", "1"}, {"b", "2"}, {"c", "3"}, {"d", "4"}, {"e", "5"} };
using T2 = std::map<std::string, std::map<... | 24.382979 | 90 | 0.605585 | Enhex |
31fcf4e81b3f3cf3db97cdb905df7fa14a19d415 | 376 | cpp | C++ | Group E/Round I/tests & author/tests & author/E/RABBIT/author/rabbit.cpp | riki00000/NOI-Compets-2008 | 8916dc9266c0b68853944a0c75d133dc08e0d00a | [
"MIT"
] | null | null | null | Group E/Round I/tests & author/tests & author/E/RABBIT/author/rabbit.cpp | riki00000/NOI-Compets-2008 | 8916dc9266c0b68853944a0c75d133dc08e0d00a | [
"MIT"
] | null | null | null | Group E/Round I/tests & author/tests & author/E/RABBIT/author/rabbit.cpp | riki00000/NOI-Compets-2008 | 8916dc9266c0b68853944a0c75d133dc08e0d00a | [
"MIT"
] | 1 | 2019-02-27T16:16:17.000Z | 2019-02-27T16:16:17.000Z | #include <iostream>
using namespace std;
int main()
{ int a,b,c;
cin>>a>>b>>c;
if (a == 1) cout<<"(\\_/)\n";
else if (a == 2) cout<<"(o.o)\n";
else if (a == 3) cout<<"(_._)\n";
if (b == 1) cout<<"(\\_/)\n";
else if (b == 2) cout<<"(o.o)\n";
else if (b == 3) cout<<"(_._)\n";
if (c == 1) cout<<"(\\_/)\n";
else if (c == 2... | 23.5 | 34 | 0.454787 | riki00000 |
ee004e706213d86f351debe87992363878941297 | 3,163 | cpp | C++ | pnc/atlas_pnc/atlas_state_machine/single_support_swing.cpp | junhyeokahn/PnC | 388440f7db7b2aedf1e397d0130d806090865c35 | [
"MIT"
] | 25 | 2019-01-31T13:51:34.000Z | 2022-02-08T13:19:01.000Z | pnc/atlas_pnc/atlas_state_machine/single_support_swing.cpp | junhyeokahn/PnC | 388440f7db7b2aedf1e397d0130d806090865c35 | [
"MIT"
] | 5 | 2020-06-01T20:48:46.000Z | 2022-02-08T11:42:02.000Z | pnc/atlas_pnc/atlas_state_machine/single_support_swing.cpp | junhyeokahn/PnC | 388440f7db7b2aedf1e397d0130d806090865c35 | [
"MIT"
] | 9 | 2018-11-20T22:37:50.000Z | 2021-09-14T17:17:27.000Z | #include <pnc/atlas_pnc/atlas_state_machine/single_support_swing.hpp>
SingleSupportSwing::SingleSupportSwing(const StateIdentifier _state_identifier,
AtlasControlArchitecture *_ctrl_arch,
int _leg_side, RobotSystem *_robot)
: StateMachin... | 29.287037 | 79 | 0.689219 | junhyeokahn |
ee01f01a415005bdbfbf3b595d82a1f10ede00c5 | 15,926 | cpp | C++ | src/DesignRuleChecker.cpp | k2973363/PcbRouter | ec7befb1ff924dbe398cccb93088ccbbfff9dfd8 | [
"BSD-3-Clause"
] | 11 | 2020-02-13T22:15:53.000Z | 2021-11-04T02:37:46.000Z | src/DesignRuleChecker.cpp | k2973363/PcbRouter | ec7befb1ff924dbe398cccb93088ccbbfff9dfd8 | [
"BSD-3-Clause"
] | 4 | 2019-12-23T17:17:05.000Z | 2020-11-04T16:05:42.000Z | src/DesignRuleChecker.cpp | k2973363/PcbRouter | ec7befb1ff924dbe398cccb93088ccbbfff9dfd8 | [
"BSD-3-Clause"
] | 7 | 2020-05-23T01:49:19.000Z | 2021-09-08T09:56:34.000Z | #include "DesignRuleChecker.h"
int DesignRuleChecker::checkAcuteAngleViolationBetweenTracesAndPads() {
std::cout << "Starting " << __FUNCTION__ << "()..." << std::endl;
std::cout << std::fixed << std::setprecision((int)round(std::log(mInputPrecision)));
int numViolations = 0;
// Iterate nets
for ... | 51.374194 | 188 | 0.538867 | k2973363 |
ee02f664246c6cfa29fe97715ec872f61385bd8c | 380 | cpp | C++ | tram.cpp | piyushmishra12/codeforces-practice | 4ce977a41aa0ac919a08c0b47d95bb7b3ff9468f | [
"MIT"
] | null | null | null | tram.cpp | piyushmishra12/codeforces-practice | 4ce977a41aa0ac919a08c0b47d95bb7b3ff9468f | [
"MIT"
] | null | null | null | tram.cpp | piyushmishra12/codeforces-practice | 4ce977a41aa0ac919a08c0b47d95bb7b3ff9468f | [
"MIT"
] | null | null | null | #include<iostream>
#include<algorithm>
using namespace std;
int main()
{
int n, i;
cin>> n;
int enter[n], exit[n], net_enter[n];
for(i = 0; i < n; i++)
{
cin>> exit[i];
cin>> enter[i];
}
net_enter[0] = enter[0];
for(i = 1; i < n; i++)
{
net_enter[i] = net_enter[i - 1] - exit[i] + enter[i];
}
sort(net_e... | 17.272727 | 55 | 0.563158 | piyushmishra12 |
ee03432db8a1164f29848f8c19220c780aa2ec10 | 694 | hpp | C++ | src/option.hpp | vcoutasso/AmiaMond | 958a5a935ffd8c702147f1a53dd964dccb566a12 | [
"MIT"
] | 3 | 2020-05-13T21:44:25.000Z | 2021-09-23T20:21:52.000Z | src/option.hpp | vcoutasso/AmiaMond | 958a5a935ffd8c702147f1a53dd964dccb566a12 | [
"MIT"
] | 1 | 2019-06-18T02:08:15.000Z | 2019-07-01T18:29:15.000Z | src/option.hpp | vcoutasso/AmiaMond | 958a5a935ffd8c702147f1a53dd964dccb566a12 | [
"MIT"
] | 1 | 2020-06-23T17:59:24.000Z | 2020-06-23T17:59:24.000Z | #ifndef _OPTION_HPP
#define _OPTION_HPP
#define FPS 60.0
#define BUTTON_COLOR sf::Color::White
#define HOVER_COLOR sf::Color(150, 150, 150)
#define SELECTED_COLOR sf::Color::Black
#include <SFML/Graphics.hpp>
#include <string>
class Option { //Funcionalidade dos Botões
private:
bool hovering;
bool selected;
... | 19.277778 | 84 | 0.720461 | vcoutasso |
ee04dff316f10678ec524f7a5e6b325524636e41 | 72,460 | cpp | C++ | vegastrike/src/vsfilesystem.cpp | Ezeer/VegaStrike_win32FR | 75891b9ccbdb95e48e15d3b4a9cd977955b97d1f | [
"MIT"
] | null | null | null | vegastrike/src/vsfilesystem.cpp | Ezeer/VegaStrike_win32FR | 75891b9ccbdb95e48e15d3b4a9cd977955b97d1f | [
"MIT"
] | null | null | null | vegastrike/src/vsfilesystem.cpp | Ezeer/VegaStrike_win32FR | 75891b9ccbdb95e48e15d3b4a9cd977955b97d1f | [
"MIT"
] | null | null | null | #include <stdio.h>
#include <assert.h>
#include <stdarg.h>
#if defined (_WIN32) && !defined (__CYGWIN__)
#include <direct.h>
#include <config.h>
#include <string.h>
#ifndef NOMINMAX
#define NOMINMAX
#endif //tells VCC not to generate min/max macros
#include <windows.h>
#include <stdlib.h>
struct dirent
{
char d_nam... | 34.422803 | 184 | 0.541899 | Ezeer |
ee093f7c722eee7467fd46465a2a21fd56584c3b | 334 | hpp | C++ | include/Node.hpp | Algorithms-and-Data-Structures-2021/semester-work-suffix-tree | a91dcaa869cd2c144869901247d16199e027e141 | [
"MIT"
] | null | null | null | include/Node.hpp | Algorithms-and-Data-Structures-2021/semester-work-suffix-tree | a91dcaa869cd2c144869901247d16199e027e141 | [
"MIT"
] | null | null | null | include/Node.hpp | Algorithms-and-Data-Structures-2021/semester-work-suffix-tree | a91dcaa869cd2c144869901247d16199e027e141 | [
"MIT"
] | 1 | 2021-05-22T19:20:20.000Z | 2021-05-22T19:20:20.000Z | #pragma once
#include "SuffixTree.hpp"
#include "Constants.hpp"
#include <algorithm>
namespace itis {
struct Node {
int start, end, slink;
int next[ALPHABET_SIZE]; // if there is an edge from node starting with certain ASCII letter
int edge_length(int pos) {
return std::min(end, pos + 1) - start;... | 19.647059 | 96 | 0.661677 | Algorithms-and-Data-Structures-2021 |
ee09e18578220f71af6f0dfc3c9ec8d6e352ad46 | 468 | cpp | C++ | src/6/ScopeOperatorUnary.cpp | jhxie/CPlusPlusHowToProgram | a622902a9e5e9766d9ddb83a38070d57dba786c3 | [
"BSD-2-Clause"
] | 1 | 2018-01-10T03:32:46.000Z | 2018-01-10T03:32:46.000Z | src/6/ScopeOperatorUnary.cpp | jhxie/CPlusPlusHowToProgram | a622902a9e5e9766d9ddb83a38070d57dba786c3 | [
"BSD-2-Clause"
] | null | null | null | src/6/ScopeOperatorUnary.cpp | jhxie/CPlusPlusHowToProgram | a622902a9e5e9766d9ddb83a38070d57dba786c3 | [
"BSD-2-Clause"
] | null | null | null | /**
* 6.15
* Unary scope resolution operator; used to access global namespace.
*/
#include <iostream>
using namespace std;
static int number {7}; // global variable
int main(void)
{
double number {10.5}; // local variable shadows the global variable
// Display values of local and global variables.
c... | 20.347826 | 71 | 0.630342 | jhxie |
ee0ce34ba34e86595c7861d9bacbddab83798457 | 1,494 | cpp | C++ | LongestPalindromicSubstring.cpp | hgfeaon/leetcode | 1e2a562bd8341fc57a02ecff042379989f3361ea | [
"BSD-3-Clause"
] | null | null | null | LongestPalindromicSubstring.cpp | hgfeaon/leetcode | 1e2a562bd8341fc57a02ecff042379989f3361ea | [
"BSD-3-Clause"
] | null | null | null | LongestPalindromicSubstring.cpp | hgfeaon/leetcode | 1e2a562bd8341fc57a02ecff042379989f3361ea | [
"BSD-3-Clause"
] | null | null | null | #include <iostream>
#include <cstdlib>
#include <string>
#include <vector>
using namespace std;
class Solution {
private:
const char sep_char = '\1';
public:
string longestPalindrome(string s) {
int max_len = 0;
int len = s.length();
if (len <= 1) return s;
string... | 21.652174 | 67 | 0.394913 | hgfeaon |
ee0d1fc6705ab1343fd8846b3e0a89896f6e86e8 | 1,675 | hpp | C++ | graph/edmonds_karp.hpp | fumiphys/programming_contest | b9466e646045e1c64571af2a1e64813908e70841 | [
"MIT"
] | 7 | 2019-04-30T14:25:40.000Z | 2020-12-19T17:38:11.000Z | graph/edmonds_karp.hpp | fumiphys/programming_contest | b9466e646045e1c64571af2a1e64813908e70841 | [
"MIT"
] | 46 | 2018-09-19T16:42:09.000Z | 2020-05-07T09:05:08.000Z | graph/edmonds_karp.hpp | fumiphys/programming_contest | b9466e646045e1c64571af2a1e64813908e70841 | [
"MIT"
] | null | null | null | /*
* Library for Edmonds Karp
*/
#ifndef _EDMONDS_KARP_H_
#define _EDMONDS_KARP_H_
#include <climits>
#include <vector>
#include <queue>
#include <utility>
#include <algorithm>
#include <limits>
using namespace std;
template <typename T>
struct edge {int to; T cap; int rev;};
template <typename T>
struct Graph{
i... | 23.928571 | 65 | 0.518806 | fumiphys |
ee0e95c13a708e09aa3b0df85bc3e3bc0c3a3349 | 6,194 | cc | C++ | src/xzero/http/hpack/Parser-test.cc | pjsaksa/x0 | 96b69e5a54b006e3d929b9934c2708f7967371bb | [
"MIT"
] | 24 | 2016-07-10T08:05:11.000Z | 2021-11-16T10:53:48.000Z | src/xzero/http/hpack/Parser-test.cc | pjsaksa/x0 | 96b69e5a54b006e3d929b9934c2708f7967371bb | [
"MIT"
] | 14 | 2015-04-12T10:45:26.000Z | 2016-06-28T22:27:50.000Z | src/xzero/http/hpack/Parser-test.cc | pjsaksa/x0 | 96b69e5a54b006e3d929b9934c2708f7967371bb | [
"MIT"
] | 4 | 2016-10-05T17:51:38.000Z | 2020-04-20T07:45:23.000Z | // This file is part of the "x0" project, http://github.com/christianparpart/x0>
// (c) 2009-2018 Christian Parpart <christian@parpart.family>
//
// Licensed under the MIT License (the "License"); you may not use this
// file except in compliance with the License. You may obtain a copy of
// the License at: http://op... | 27.775785 | 82 | 0.611075 | pjsaksa |
ee0f7fb2e784d6e9a83d94ee47573f361c163331 | 1,157 | cpp | C++ | Dataset/Leetcode/train/2/927.cpp | kkcookies99/UAST | fff81885aa07901786141a71e5600a08d7cb4868 | [
"MIT"
] | null | null | null | Dataset/Leetcode/train/2/927.cpp | kkcookies99/UAST | fff81885aa07901786141a71e5600a08d7cb4868 | [
"MIT"
] | null | null | null | Dataset/Leetcode/train/2/927.cpp | kkcookies99/UAST | fff81885aa07901786141a71e5600a08d7cb4868 | [
"MIT"
] | null | null | null | class Solution {
public:
ListNode* XXX(ListNode* l1, ListNode* l2) {
ListNode* l3=new ListNode;
ListNode* h=l3;
int c=0;
while(l1&&l2){
int val=l1->val+l2->val+c;
c=val/10;
val%=10;
ListNode* tmp=new ListNode(val);
tmp->nex... | 23.14 | 47 | 0.392394 | kkcookies99 |
ee17950bcdf71de7b006e8586be7abefaf3b17ff | 2,343 | cc | C++ | src/tools/binary_errors.cc | walkingeyerobot/wasp | 882f051f61af14308829686fa2b79f864ea1009d | [
"Apache-2.0"
] | 47 | 2020-10-24T18:29:12.000Z | 2022-03-31T02:08:17.000Z | src/tools/binary_errors.cc | walkingeyerobot/wasp | 882f051f61af14308829686fa2b79f864ea1009d | [
"Apache-2.0"
] | 27 | 2020-10-23T17:12:48.000Z | 2021-09-09T18:02:24.000Z | src/tools/binary_errors.cc | walkingeyerobot/wasp | 882f051f61af14308829686fa2b79f864ea1009d | [
"Apache-2.0"
] | 13 | 2020-10-23T06:28:12.000Z | 2022-03-14T10:08:01.000Z | //
// Copyright 2020 WebAssembly Community Group participants
//
// 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... | 29.658228 | 77 | 0.647887 | walkingeyerobot |
ee1ea1d4d631eccf7690ba030ace94510499911a | 5,456 | cpp | C++ | src/util/sll/regexp.cpp | MellonQ/leechcraft | 71cbb238d2dade56b3865278a6a8e6a58c217fc5 | [
"BSL-1.0"
] | null | null | null | src/util/sll/regexp.cpp | MellonQ/leechcraft | 71cbb238d2dade56b3865278a6a8e6a58c217fc5 | [
"BSL-1.0"
] | null | null | null | src/util/sll/regexp.cpp | MellonQ/leechcraft | 71cbb238d2dade56b3865278a6a8e6a58c217fc5 | [
"BSL-1.0"
] | null | null | null | /**********************************************************************
* LeechCraft - modular cross-platform feature rich internet client.
* Copyright (C) 2006-2014 Georg Rudoy
*
* Boost Software License - Version 1.0 - August 17th, 2003
*
* Permission is hereby granted, free of charge, to any person or organiz... | 20.745247 | 93 | 0.649194 | MellonQ |