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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
87c84a55a2f8167c2dbd0a0eabcdd3e3c1a190c6 | 925 | cpp | C++ | main.cpp | siirias/BatMan | 57214084e31c0d4f561a8fcbdba2fd6610cb21f7 | [
"MIT"
] | null | null | null | main.cpp | siirias/BatMan | 57214084e31c0d4f561a8fcbdba2fd6610cb21f7 | [
"MIT"
] | null | null | null | main.cpp | siirias/BatMan | 57214084e31c0d4f561a8fcbdba2fd6610cb21f7 | [
"MIT"
] | null | null | null | #define _hypot hypot
#include <cmath>
#include <irrlicht.h>
#include <stdlib.h> /* srand, rand */
#include <time.h> /* time */
#include "driverChoice.h"
#include<fstream>
#include<vector>
#include<list>
#include <sstream>
#include <iostream> // std::cout
#include <string> // std::string, std::stod
#if ... | 18.877551 | 76 | 0.705946 | siirias |
87c88d2b5e65a7e6faf770b037885ba82fde04cf | 4,567 | cpp | C++ | qwertyattack/tests/test_KeyChart.cpp | tblock007/qwertyattack | 9b02531fa896ca269dbaeb1611cc2cc0bbf41de9 | [
"MIT"
] | 1 | 2019-09-11T18:47:52.000Z | 2019-09-11T18:47:52.000Z | qwertyattack/tests/test_KeyChart.cpp | tblock007/qwertyattack | 9b02531fa896ca269dbaeb1611cc2cc0bbf41de9 | [
"MIT"
] | null | null | null | qwertyattack/tests/test_KeyChart.cpp | tblock007/qwertyattack | 9b02531fa896ca269dbaeb1611cc2cc0bbf41de9 | [
"MIT"
] | 1 | 2019-09-26T03:34:28.000Z | 2019-09-26T03:34:28.000Z | #include "../KeyChart.hpp"
#include "catch.hpp"
namespace qa {
TEST_CASE("Reading meta from KeyChart file", "[keychart]")
{
/*KeyChart kut;
kut.importFile("testdata/test1.kc", false);
REQUIRE(kut.getSongFile() == "alphabet.ogg");
REQUIRE(kut.getTitle() == "Alphabet Song");
REQUIRE(kut.getArtist() == "... | 44.77451 | 120 | 0.609372 | tblock007 |
87c9e8c38fb409c61fc687b3716c39b647a40562 | 437 | hpp | C++ | src/texture/parsers/json_array.hpp | hexoctal/zenith | eeef065ed62f35723da87c8e73a6716e50d34060 | [
"MIT"
] | 2 | 2021-03-18T16:25:04.000Z | 2021-11-13T00:29:27.000Z | src/texture/parsers/json_array.hpp | hexoctal/zenith | eeef065ed62f35723da87c8e73a6716e50d34060 | [
"MIT"
] | null | null | null | src/texture/parsers/json_array.hpp | hexoctal/zenith | eeef065ed62f35723da87c8e73a6716e50d34060 | [
"MIT"
] | 1 | 2021-11-13T00:29:30.000Z | 2021-11-13T00:29:30.000Z | /**
* @file
* @author __AUTHOR_NAME__ <mail@host.com>
* @copyright 2021 __COMPANY_LTD__
* @license <a href="https://opensource.org/licenses/MIT">MIT License</a>
*/
#ifndef ZEN_TEXTURES_PARSERS_JSONARRAY_HPP
#define ZEN_TEXTURES_PARSERS_JSONARRAY_HPP
#include "json/json.hpp"
#include "../../ecs/entity.hpp"
nam... | 20.809524 | 74 | 0.736842 | hexoctal |
d7ae4d54a755da8fc9927b84fd36f7d282af5a58 | 391 | cpp | C++ | samples/src/example.cpp | paddy74/lowletorfeats | 9305554d6af1bf156fccae1f383b83f32445275b | [
"MIT"
] | null | null | null | samples/src/example.cpp | paddy74/lowletorfeats | 9305554d6af1bf156fccae1f383b83f32445275b | [
"MIT"
] | 2 | 2019-04-23T17:24:04.000Z | 2019-04-23T17:28:46.000Z | samples/src/example.cpp | paddy74/lowletorfeats | 9305554d6af1bf156fccae1f383b83f32445275b | [
"MIT"
] | null | null | null | #include <iostream>
#include <lowletorfeats/FeatureCollector.hpp>
#include "sampleData.hpp"
int main()
{
auto const testData = getTestData();
auto const queryStr = testData.first;
auto const structDocMap = testData.second;
auto fc = lowletorfeats::FeatureCollector(structDocMap, queryStr);
fc.coll... | 20.578947 | 70 | 0.705882 | paddy74 |
d7af3a597fdb54322dda34f330108640b7b1f568 | 4,559 | cpp | C++ | ghost/gpsprotocol.cpp | Promises/ghostpp | 38709e8b41a5f680caec0155a7aa4255d1167296 | [
"Apache-2.0"
] | 1 | 2021-01-24T16:00:37.000Z | 2021-01-24T16:00:37.000Z | ghost/gpsprotocol.cpp | Promises/ghostpp | 38709e8b41a5f680caec0155a7aa4255d1167296 | [
"Apache-2.0"
] | null | null | null | ghost/gpsprotocol.cpp | Promises/ghostpp | 38709e8b41a5f680caec0155a7aa4255d1167296 | [
"Apache-2.0"
] | null | null | null | /*
ent-ghost
Copyright [2011-2013] [Jack Lu]
This file is part of the ent-ghost source code.
ent-ghost is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at yo... | 26.352601 | 140 | 0.696863 | Promises |
d7afaafd93ec0016be6c25a6b1d342a7f56c5626 | 469 | cpp | C++ | SVEngine/src/basesys/out/SVOutMissionNor.cpp | SVEChina/SVEngine | 56174f479a3096e57165448142c1822e7db8c02f | [
"MIT"
] | 34 | 2018-09-28T08:28:27.000Z | 2022-01-15T10:31:41.000Z | SVEngine/src/basesys/out/SVOutMissionNor.cpp | SVEChina/SVEngine | 56174f479a3096e57165448142c1822e7db8c02f | [
"MIT"
] | null | null | null | SVEngine/src/basesys/out/SVOutMissionNor.cpp | SVEChina/SVEngine | 56174f479a3096e57165448142c1822e7db8c02f | [
"MIT"
] | 8 | 2018-10-11T13:36:35.000Z | 2021-04-01T09:29:34.000Z | //
// SVOutMission.cpp
// SVEngine
// Copyright 2017-2020
// yizhou Fu,long Yin,longfei Lin,ziyu Xu,xiaofan Li,daming Li
//
#include "SVOutMissionNor.h"
SVOutMissionNor::SVOutMissionNor(SVInst* _app,cptr8 _name)
:SVOutMission(_app,_name)
,m_end(false){
}
SVOutMissionNor::~SVOutMissionNor() {
}
void SVOutMissionNor:... | 16.172414 | 62 | 0.712154 | SVEChina |
d7b6860248ade05aac6a7f658f05f35f4fb07501 | 2,144 | cpp | C++ | 2017/19.cpp | wgevaert/AOC | aaa9c06f9817e338cca01bbf37b6ba81256dd5ba | [
"WTFPL"
] | 2 | 2020-08-06T22:14:51.000Z | 2020-08-10T19:42:36.000Z | 2017/19.cpp | wgevaert/AOC | aaa9c06f9817e338cca01bbf37b6ba81256dd5ba | [
"WTFPL"
] | null | null | null | 2017/19.cpp | wgevaert/AOC | aaa9c06f9817e338cca01bbf37b6ba81256dd5ba | [
"WTFPL"
] | null | null | null | #include <iostream>
#include <fstream>
#include <string>
#include <vector>
int main(int argc, char** argv) {
if (argc < 2) {
std::cout << "Usage: {program} {name of input file}"<<std::endl;
return 0;
}
std::string filename = argv[1];
std::cout<<"reading file "<<filename<<':'<<std::endl;... | 34.580645 | 130 | 0.568097 | wgevaert |
d7b8b4b3bc1211ac18683883a7cbfcd62d55aae3 | 15,999 | inl | C++ | Sweet16_monodigits_ImGui.inl | kmar/Sweet16Font | 8c56c212f2dbb69931efaabd9ac92453dde5e776 | [
"BSL-1.0"
] | 27 | 2018-09-29T08:43:33.000Z | 2022-03-02T17:28:20.000Z | Sweet16_monodigits_ImGui.inl | kmar/Sweet16Font | 8c56c212f2dbb69931efaabd9ac92453dde5e776 | [
"BSL-1.0"
] | null | null | null | Sweet16_monodigits_ImGui.inl | kmar/Sweet16Font | 8c56c212f2dbb69931efaabd9ac92453dde5e776 | [
"BSL-1.0"
] | null | null | null | // File: 'Sweet16_monodigits.ttf' (34448 bytes)
// Exported using binary_to_compressed_c.cpp
static const char Sweet16_monodigits_compressed_data_base85[14270+1] =
"7])#######:c5IQ'/###[),##1xL$#Q6>##e@;*>IOB6@C7b(NW@'o/fY;99<nKB#s(m<-5@^01iZn42L]4oG#/>>#Y&g<6aNV=B^<g^/AYqr$K7YY#s0XGH7@l^$=umo%ijK8/d_(*H"
"lme+... | 120.293233 | 157 | 0.620664 | kmar |
d7bc1af0123f6984d8554b9ca3c8f766ab90ded7 | 555 | inl | C++ | Refureku/Library/Include/Public/Refureku/TypeInfo/Namespace/Namespace.inl | jsoysouvanh/Refureku | 7548cb3b196793119737a51c1cedc136aa60d3ee | [
"MIT"
] | 143 | 2020-04-07T21:38:21.000Z | 2022-03-30T01:06:33.000Z | Refureku/Library/Include/Public/Refureku/TypeInfo/Namespace/Namespace.inl | jsoysouvanh/Refureku | 7548cb3b196793119737a51c1cedc136aa60d3ee | [
"MIT"
] | 7 | 2021-03-30T07:26:21.000Z | 2022-03-28T16:31:02.000Z | Refureku/Library/Include/Public/Refureku/TypeInfo/Namespace/Namespace.inl | jsoysouvanh/Refureku | 7548cb3b196793119737a51c1cedc136aa60d3ee | [
"MIT"
] | 11 | 2020-06-06T09:45:12.000Z | 2022-01-25T17:17:55.000Z | /**
* Copyright (c) 2021 Julien SOYSOUVANH - All Rights Reserved
*
* This file is part of the Refureku library project which is released under the MIT License.
* See the README.md file for full license details.
*/
template <typename FunctionSignature>
Function const* Namespace::getFunctionByName(char const* name, EFu... | 26.428571 | 99 | 0.756757 | jsoysouvanh |
d7bf16d4499593838f18bc1f3812b68fa9c7035e | 880 | cpp | C++ | Linked List/insertLinkedList.cpp | FahimMuntashir/theAlgorithms | 58348ea5c45059121a1cf83b8f99b4ac46973f01 | [
"MIT"
] | null | null | null | Linked List/insertLinkedList.cpp | FahimMuntashir/theAlgorithms | 58348ea5c45059121a1cf83b8f99b4ac46973f01 | [
"MIT"
] | null | null | null | Linked List/insertLinkedList.cpp | FahimMuntashir/theAlgorithms | 58348ea5c45059121a1cf83b8f99b4ac46973f01 | [
"MIT"
] | null | null | null | #include<iostream>
using namespace std;
struct Node
{
int data;
struct Node *link;
};
struct Node *head;
void insertData(int value){
struct Node* temp = new Node();
temp->data = value;
temp->link=NULL;
if (head==NULL)
{
head = temp;
}else {
struct Node* t;
... | 12.571429 | 35 | 0.477273 | FahimMuntashir |
d7bf4a1f2a3be6444ce065495b0d83a1dfa1df6e | 4,869 | cpp | C++ | differential_evolution/main.cpp | peheje/differential_evolution_cpp | d5c06498d5e0c41e3e1fc86d0cd25eedd07ca1f7 | [
"MIT"
] | null | null | null | differential_evolution/main.cpp | peheje/differential_evolution_cpp | d5c06498d5e0c41e3e1fc86d0cd25eedd07ca1f7 | [
"MIT"
] | null | null | null | differential_evolution/main.cpp | peheje/differential_evolution_cpp | d5c06498d5e0c41e3e1fc86d0cd25eedd07ca1f7 | [
"MIT"
] | null | null | null | //
// main.cpp
// differential_evolution
//
// Created by Peter Helstrup Jensen on 25/02/2018.
// Copyright © 2018 Peter Helstrup Jensen. All rights reserved.
//
#include <iostream>
#include <cmath>
#include <fstream>
#include "RandomGenerators.hpp"
#include "ArrayHelpers.hpp"
#include "OptimizationProblems.hpp"
#... | 31.012739 | 94 | 0.514274 | peheje |
d7c89b0e05aafe18fe591213911ad94e525ada57 | 1,596 | cpp | C++ | tests/client_streaming.cpp | FrancoisChabot/easy_grpc | d811e63fa022e1030a086e38945f4000b947d9af | [
"Apache-2.0"
] | 26 | 2019-06-09T02:00:00.000Z | 2022-02-16T08:08:58.000Z | tests/client_streaming.cpp | FrancoisChabot/easy_grpc | d811e63fa022e1030a086e38945f4000b947d9af | [
"Apache-2.0"
] | 13 | 2019-05-28T02:05:23.000Z | 2019-07-10T20:21:12.000Z | tests/client_streaming.cpp | FrancoisChabot/easy_grpc | d811e63fa022e1030a086e38945f4000b947d9af | [
"Apache-2.0"
] | 4 | 2019-06-08T11:30:38.000Z | 2020-05-17T04:45:37.000Z | #include "easy_grpc/easy_grpc.h"
#include "generated/test.egrpc.pb.h"
#include "gtest/gtest.h"
namespace rpc = easy_grpc;
namespace {
class Test_async_impl {
public:
using service_type = tests::TestClientStreamingService;
::easy_grpc::Future<::tests::TestReply> TestMethod(::easy_grpc::Stream_future<::tests::Te... | 27.050847 | 111 | 0.663534 | FrancoisChabot |
d7c953f51b2be7e6d27f2d06d465e3c458dcfcef | 4,581 | cpp | C++ | Terra/transport/Transporter.cpp | leeairw/Terra | 9387c064b727633da34e3c2146a67b7fa9b59c62 | [
"MIT"
] | 68 | 2019-01-27T08:59:23.000Z | 2022-03-30T02:29:02.000Z | Terra/transport/Transporter.cpp | leeairw/Terra | 9387c064b727633da34e3c2146a67b7fa9b59c62 | [
"MIT"
] | 11 | 2019-03-18T17:21:53.000Z | 2019-07-07T05:28:55.000Z | Terra/transport/Transporter.cpp | leeairw/Terra | 9387c064b727633da34e3c2146a67b7fa9b59c62 | [
"MIT"
] | 8 | 2019-03-20T07:54:29.000Z | 2021-07-14T01:45:59.000Z | #include "Transporter.hpp"
#include "../misc/MathUtil.hpp"
NS_HWM_BEGIN
template<class F>
void Transporter::AlterTransportInfo(F f)
{
TransportInfo old_info;
TransportInfo new_info;
auto lock = lf_.make_lock();
old_info = transport_info_;
f(transport_info_);
new_info = transport_info_;
... | 24.629032 | 87 | 0.68675 | leeairw |
d7d5af0a31086d6685e228f798ce8c379217fb9f | 5,796 | cpp | C++ | src/Codecs/FieldInstructionTemplateRef.cpp | divyang4481/quickfast | 339c78e96a1f63b74c139afa1a3c9a07afff7b5f | [
"BSD-3-Clause"
] | 198 | 2015-04-26T08:06:18.000Z | 2022-03-13T01:31:50.000Z | src/Codecs/FieldInstructionTemplateRef.cpp | divyang4481/quickfast | 339c78e96a1f63b74c139afa1a3c9a07afff7b5f | [
"BSD-3-Clause"
] | 15 | 2015-07-07T19:47:08.000Z | 2022-02-04T05:56:51.000Z | src/Codecs/FieldInstructionTemplateRef.cpp | divyang4481/quickfast | 339c78e96a1f63b74c139afa1a3c9a07afff7b5f | [
"BSD-3-Clause"
] | 96 | 2015-04-24T15:19:43.000Z | 2022-03-28T13:15:11.000Z | // Copyright (c) 2009, Object Computing, Inc.
// All rights reserved.
// See the file license.txt for licensing information.
#include <Common/QuickFASTPch.h>
#include "FieldInstructionTemplateRef.h"
#include <Codecs/DataSource.h>
#include <Codecs/Decoder.h>
#include <Codecs/Encoder.h>
#include <Codecs/TemplateRegistry.... | 27.469194 | 120 | 0.751725 | divyang4481 |
d7d5e668e009539186a7bf809782bebf24a1d711 | 12,208 | cpp | C++ | src/eepp/window/input.cpp | SpartanJ/eepp | 21e8ae53af9bc5eb3fd1043376f2b3a4b3ff5fac | [
"MIT"
] | 37 | 2020-01-20T06:21:24.000Z | 2022-03-21T17:44:50.000Z | src/eepp/window/input.cpp | SpartanJ/eepp | 21e8ae53af9bc5eb3fd1043376f2b3a4b3ff5fac | [
"MIT"
] | null | null | null | src/eepp/window/input.cpp | SpartanJ/eepp | 21e8ae53af9bc5eb3fd1043376f2b3a4b3ff5fac | [
"MIT"
] | 9 | 2019-03-22T00:33:07.000Z | 2022-03-01T01:35:59.000Z | #include <eepp/window/input.hpp>
namespace EE { namespace Window {
Input::Input( EE::Window::Window* window, JoystickManager* joystickmanager ) :
mWindow( window ),
mJoystickManager( joystickmanager ),
mPressTrigger( 0 ),
mReleaseTrigger( 0 ),
mLastPressTrigger( 0 ),
mClickTrigger( 0 ),
mDoubleClickTrigger( 0 ... | 25.275362 | 95 | 0.67808 | SpartanJ |
d7db0fc0df14b69dbe22ac5c3f43af6344cc1f5c | 168 | cpp | C++ | src/floaxietest.cpp | erthink/dtoa-benchmark | c6fd6b27def365a1f1c9bfb4d822e39f0aa776a7 | [
"MIT"
] | 7 | 2020-02-26T18:25:10.000Z | 2021-11-15T17:38:06.000Z | src/floaxietest.cpp | erthink/dtoa-benchmark | c6fd6b27def365a1f1c9bfb4d822e39f0aa776a7 | [
"MIT"
] | null | null | null | src/floaxietest.cpp | erthink/dtoa-benchmark | c6fd6b27def365a1f1c9bfb4d822e39f0aa776a7 | [
"MIT"
] | 1 | 2021-08-17T00:13:30.000Z | 2021-08-17T00:13:30.000Z | #include "floaxie/ftoa.h"
#include "test.h"
char *dtoa_floaxie(double v, char *const buffer) {
floaxie::ftoa(v, buffer);
return buffer;
}
REGISTER_TEST(floaxie);
| 16.8 | 50 | 0.708333 | erthink |
d7de92f7efdcef7140dfe6fcc4148438538581e2 | 5,013 | cpp | C++ | src/render/ttf.cpp | dulingzhi/D2RMH | f3c079fb72234bfba84c9c5251f1c82fc8e5cdb2 | [
"MIT"
] | 125 | 2021-10-31T05:55:12.000Z | 2022-03-30T09:15:29.000Z | src/render/ttf.cpp | dulingzhi/D2RMH | f3c079fb72234bfba84c9c5251f1c82fc8e5cdb2 | [
"MIT"
] | 93 | 2021-10-31T11:19:37.000Z | 2022-03-31T13:25:54.000Z | src/render/ttf.cpp | dulingzhi/D2RMH | f3c079fb72234bfba84c9c5251f1c82fc8e5cdb2 | [
"MIT"
] | 57 | 2021-10-30T08:45:05.000Z | 2022-03-30T04:11:21.000Z | /*
* Copyright (c) 2021 Soar Qin<soarchin@gmail.com>
*
* Use of this source code is governed by an MIT-style
* license that can be found in the LICENSE file or at
* https://opensource.org/licenses/MIT.
*/
#include "ttf.h"
#include "d2r/storage.h"
#include "cfg.h"
#ifdef USE_FREETYPE
#include <ft2build.h>
#incl... | 28.322034 | 114 | 0.605426 | dulingzhi |
d7e5573d8ab59f6092a5e10ccc15f1b30a404ad0 | 2,778 | cpp | C++ | Dynamic Programming/1388. Pizza With 3n Slices.cpp | beckswu/Leetcode | 480e8dc276b1f65961166d66efa5497d7ff0bdfd | [
"MIT"
] | 138 | 2020-02-08T05:25:26.000Z | 2021-11-04T11:59:28.000Z | Dynamic Programming/1388. Pizza With 3n Slices.cpp | beckswu/Leetcode | 480e8dc276b1f65961166d66efa5497d7ff0bdfd | [
"MIT"
] | null | null | null | Dynamic Programming/1388. Pizza With 3n Slices.cpp | beckswu/Leetcode | 480e8dc276b1f65961166d66efa5497d7ff0bdfd | [
"MIT"
] | 24 | 2021-01-02T07:18:43.000Z | 2022-03-20T08:17:54.000Z | class Solution {
public:
int maxSizeSlices(vector<int>& slices) {
int n = (int)slices.size() / 3;
auto l1 = vector<int>(slices.begin(), slices.end()-1);
auto l2 = vector<int>(slices.begin()+1, slices.end());
return max(linear(l1, n), linear(l2, n));
}
private:
int linear... | 30.866667 | 144 | 0.472282 | beckswu |
d7f0d2a8c68755f62d9d89138341d21c77cd1dd1 | 3,402 | cc | C++ | source/tool/KBGeoLine.cc | KUNPL/KEBII | 7feba36bb2ac2812c0dec21f5e3f3a0dcc1c8e39 | [
"MIT"
] | null | null | null | source/tool/KBGeoLine.cc | KUNPL/KEBII | 7feba36bb2ac2812c0dec21f5e3f3a0dcc1c8e39 | [
"MIT"
] | null | null | null | source/tool/KBGeoLine.cc | KUNPL/KEBII | 7feba36bb2ac2812c0dec21f5e3f3a0dcc1c8e39 | [
"MIT"
] | null | null | null | #include "KBGeoLine.hh"
#include <cmath>
ClassImp(KBGeoLine)
KBGeoLine::KBGeoLine()
{
}
KBGeoLine::KBGeoLine(Double_t x1, Double_t y1, Double_t z1, Double_t x2, Double_t y2, Double_t z2)
{
SetLine(x1, y1, z1, x2, y2, z2);
}
KBGeoLine::KBGeoLine(TVector3 pos1, TVector3 pos2)
{
SetLine(pos1.X(), pos1.Y(), pos1.Z(... | 27.216 | 121 | 0.643739 | KUNPL |
d7f9ee390cbb1d4b12e21f659cbff13d682d1dae | 672 | cpp | C++ | oss_src/process/process_util_unix.cpp | parquette/ParFrame | 0522aa6afdf529b3e91505b70e918f1500aae886 | [
"BSD-3-Clause"
] | null | null | null | oss_src/process/process_util_unix.cpp | parquette/ParFrame | 0522aa6afdf529b3e91505b70e918f1500aae886 | [
"BSD-3-Clause"
] | null | null | null | oss_src/process/process_util_unix.cpp | parquette/ParFrame | 0522aa6afdf529b3e91505b70e918f1500aae886 | [
"BSD-3-Clause"
] | null | null | null | /**
* Copyright (C) 2015 Dato, Inc.
* All rights reserved.
*
* This software may be modified and distributed under the terms
* of the BSD license. See the LICENSE file for details.
*/
#include <unistd.h>
#include <sys/types.h>
#include <signal.h>
#include <process/process_util.hpp>
namespace graphlab {
size_t g... | 18.162162 | 64 | 0.660714 | parquette |
cc08aaa5decc358516e85fe5a6431431c595cc07 | 1,321 | cpp | C++ | main/lexer_test.cpp | hahmed1/LightningRod | 07acd45dc9889214527377cab586658393d82455 | [
"MIT"
] | null | null | null | main/lexer_test.cpp | hahmed1/LightningRod | 07acd45dc9889214527377cab586658393d82455 | [
"MIT"
] | null | null | null | main/lexer_test.cpp | hahmed1/LightningRod | 07acd45dc9889214527377cab586658393d82455 | [
"MIT"
] | null | null | null | #include "lexer.lex.h"
#include <iostream>
#include <string>
#include <fstream>
#include <streambuf>
#include "stream.h"
#include "TreeBuilder.h"
#include "TokenNode.h"
#include "PageViewModel.h"
std::string semantic_print(int id)
{
if(id == OPEN){
return "open";
}
else if (id == CLOSE){
return "close";
}
e... | 18.605634 | 64 | 0.686601 | hahmed1 |
cc0d738336f228576dc302a5e84928537e957f76 | 397 | cpp | C++ | pointers/pointer_array3.cpp | sahilduhan/Learn-C-plus-plus | 80dba2ee08b36985deb297293a0318da5d6ace94 | [
"RSA-MD"
] | null | null | null | pointers/pointer_array3.cpp | sahilduhan/Learn-C-plus-plus | 80dba2ee08b36985deb297293a0318da5d6ace94 | [
"RSA-MD"
] | null | null | null | pointers/pointer_array3.cpp | sahilduhan/Learn-C-plus-plus | 80dba2ee08b36985deb297293a0318da5d6ace94 | [
"RSA-MD"
] | null | null | null | #include <bits/stdc++.h>
using namespace std;
int main()
{
int row = 2, col =3;
int arr[row][col] = {
{1, 2, 3},
{4, 5, 6}
};
for (int i = 0; i < row; i++)
{
for (int j = 0; j < col; j++)
{
cout... | 18.904762 | 39 | 0.302267 | sahilduhan |
cc0f2012e27fca09d621d05ffb8865f6bc1405eb | 312 | hxx | C++ | include/Nest/Core/Containers/ConcurrentQueue.hxx | mscofield0/nest | 2815cec3d13d869a6e8e3bc86af3d12127966521 | [
"MIT"
] | null | null | null | include/Nest/Core/Containers/ConcurrentQueue.hxx | mscofield0/nest | 2815cec3d13d869a6e8e3bc86af3d12127966521 | [
"MIT"
] | 2 | 2021-11-24T21:40:07.000Z | 2021-11-25T14:25:36.000Z | include/Nest/Core/Containers/ConcurrentQueue.hxx | mscofield0/nest | 2815cec3d13d869a6e8e3bc86af3d12127966521 | [
"MIT"
] | null | null | null | #ifndef NEST_CORE_CONTAINERS_CONCURRENTQUEUE_HXX
#define NEST_CORE_CONTAINERS_CONCURRENTQUEUE_HXX
#include "concurrentqueue.h"
namespace Nest::Core {
template <typename T>
using ConcurrentQueue = moodycamel::ConcurrentQueue<T>;
} // namespace Nest::Core
#endif // NEST_CORE_CONTAINERS_CONCURRENTQUEUE_HXX | 24 | 55 | 0.823718 | mscofield0 |
cc10656121cb3e8de00d767dd7942719d62525f7 | 17,670 | cpp | C++ | tao/x11/typecodefactory/typecodefactory_i.cpp | ClausKlein/taox11 | 669cfd2d0be258722c7ee32b23f2e5cb83e4520f | [
"MIT"
] | 20 | 2019-11-13T12:31:20.000Z | 2022-02-27T12:30:39.000Z | tao/x11/typecodefactory/typecodefactory_i.cpp | ClausKlein/taox11 | 669cfd2d0be258722c7ee32b23f2e5cb83e4520f | [
"MIT"
] | 46 | 2019-11-15T20:40:18.000Z | 2022-03-31T19:04:36.000Z | tao/x11/typecodefactory/typecodefactory_i.cpp | ClausKlein/taox11 | 669cfd2d0be258722c7ee32b23f2e5cb83e4520f | [
"MIT"
] | 5 | 2019-11-12T15:00:50.000Z | 2022-01-17T17:33:05.000Z | /**
* @file typecodefactory_i.cpp
* @author Marijke Henstmengel
*
* @brief CORBA C++11 typecodefactory library
*
* @copyright Copyright (c) Remedy IT Expertise BV
*/
#include "tao/x11/tao_corba.h"
#include "tao/ORB_Core.h"
#include "tao/TypeCodeFactory_Adapter.h"
#include "tao/IFR_Client/IFR_BasicC.h"
#in... | 31.780576 | 112 | 0.656027 | ClausKlein |
cc1e15cf47efdb2cede022faf94750164e7fd72c | 533 | cpp | C++ | codeforces/5c.longest-regular-bracket-sequence/5c.cpp | KayvanMazaheri/acm | aeb05074bc9b9c92f35b6a741183da09a08af85d | [
"MIT"
] | 3 | 2018-01-19T14:09:23.000Z | 2018-02-01T00:40:55.000Z | codeforces/5c.longest-regular-bracket-sequence/5c.cpp | KayvanMazaheri/acm | aeb05074bc9b9c92f35b6a741183da09a08af85d | [
"MIT"
] | null | null | null | codeforces/5c.longest-regular-bracket-sequence/5c.cpp | KayvanMazaheri/acm | aeb05074bc9b9c92f35b6a741183da09a08af85d | [
"MIT"
] | null | null | null | #include <iostream>
#include <algorithm>
#include <string>
using namespace std;
const int MAX_N = 1e6 + 123;
int dp[MAX_N];
int main()
{
string s;
cin >> s;
for(int i=1; i<s.size(); i++)
if (s[i] == ')')
{
if (s[i-1] == '(')
dp[i] = dp[i-2] + 2;
else if (s[i - 1 - dp[i-1]] == '(')
dp[i] = dp[i -... | 19.740741 | 70 | 0.49531 | KayvanMazaheri |
cc1f7a9cab85aad288212c09c2635da754cd0e62 | 2,736 | hpp | C++ | library/header/internals/util/ThreadScheduler.hpp | Wittmaxi/ZENeural | 05bf98f94c1a032406f353c94486b626b8c8dd6a | [
"MIT"
] | 10 | 2018-08-15T00:36:51.000Z | 2019-10-27T20:59:18.000Z | library/header/internals/util/ThreadScheduler.hpp | MaximilianJugendForscht/ZENeural | 05bf98f94c1a032406f353c94486b626b8c8dd6a | [
"MIT"
] | 1 | 2018-08-15T01:06:29.000Z | 2018-08-15T16:44:52.000Z | library/header/internals/util/ThreadScheduler.hpp | MaximilianJugendForscht/ZENeural | 05bf98f94c1a032406f353c94486b626b8c8dd6a | [
"MIT"
] | 4 | 2018-08-09T16:27:03.000Z | 2018-11-17T07:49:32.000Z | /*
2018 Maximilian Wittmer
wittmaxi@linux.pizza
https://github.com/Wittmaxi/ZENeural/blob/master/LICENSE
*/
#pragma once
#include <thread>
#include <vector>
#include <functional>
#include <queue>
#include <mutex>
namespace ZNN
{
namespace ASYNC
{
struct FunctionBase
{
virtual void callFunction() = 0;
virtua... | 20.885496 | 93 | 0.587354 | Wittmaxi |
cc33d52c44c38de5fb0a7218d461ca674c1e9e64 | 31,839 | hpp | C++ | net2/tcp.hpp | hirakuni45/RX | 3fb91bfc8d5282cde7aa00b8bd37f4aad32582d0 | [
"BSD-3-Clause"
] | 56 | 2015-06-04T14:15:38.000Z | 2022-03-01T22:58:49.000Z | net2/tcp.hpp | duybang140494/RX | 7fed06a9d8295f4504e8a08fa589d4a52792095f | [
"BSD-3-Clause"
] | 30 | 2019-07-27T11:03:14.000Z | 2021-12-14T09:59:57.000Z | net2/tcp.hpp | duybang140494/RX | 7fed06a9d8295f4504e8a08fa589d4a52792095f | [
"BSD-3-Clause"
] | 15 | 2017-06-24T11:33:39.000Z | 2021-12-07T07:26:58.000Z | #pragma once
//=========================================================================//
/*! @file
@brief TCP Protocol
@author 平松邦仁 (hira@rvf-rc45.net)
@copyright Copyright (C) 2017 Kunihito Hiramatsu @n
Released under the MIT license @n
https://github.com/hirakuni45/RX/blob/master/LICENSE
*... | 27.542388 | 148 | 0.541537 | hirakuni45 |
cc3979b71afdc6d82ed885cac5b57285b18e31f8 | 580 | cpp | C++ | Basic Algorithms/Two Pointers/Running from both ends of array/Two Sum Format/boats_to_save_people.cpp | khushisinha20/Data-Structures-and-Algorithms | 114d365d03f7ba7175eefeace281972820a7fc76 | [
"Apache-2.0"
] | null | null | null | Basic Algorithms/Two Pointers/Running from both ends of array/Two Sum Format/boats_to_save_people.cpp | khushisinha20/Data-Structures-and-Algorithms | 114d365d03f7ba7175eefeace281972820a7fc76 | [
"Apache-2.0"
] | null | null | null | Basic Algorithms/Two Pointers/Running from both ends of array/Two Sum Format/boats_to_save_people.cpp | khushisinha20/Data-Structures-and-Algorithms | 114d365d03f7ba7175eefeace281972820a7fc76 | [
"Apache-2.0"
] | null | null | null | #include <bits/stdc++.h>
#include <vector>
using namespace std;
class Solution {
public:
int numRescueBoats(vector<int>& people, int limit) {
sort(people.begin(), people.end());
int left = 0;
int right = people.size() - 1;
int min_boats = 0;
while (left <= right) {
... | 24.166667 | 56 | 0.451724 | khushisinha20 |
cc3a33a41314773062800c870465aba1f38d18ac | 1,940 | cpp | C++ | engine/platform/rpi/src/rpi_platform_monitor.cpp | aeon-engine/aeon-engine | 9efcf83985110c36ebf0964bd4f76b261f2f6717 | [
"MIT"
] | 12 | 2017-02-25T17:14:15.000Z | 2021-08-02T13:39:18.000Z | engine/platform/rpi/src/rpi_platform_monitor.cpp | aeon-engine/aeon-engine | 9efcf83985110c36ebf0964bd4f76b261f2f6717 | [
"MIT"
] | 31 | 2017-02-23T06:59:44.000Z | 2017-05-21T11:49:10.000Z | engine/platform/rpi/src/rpi_platform_monitor.cpp | aeon-engine/aeon-engine | 9efcf83985110c36ebf0964bd4f76b261f2f6717 | [
"MIT"
] | 5 | 2017-05-02T05:34:53.000Z | 2020-05-19T06:57:50.000Z | /*
* Copyright (c) 2012-2018 Robin Degen
*
* 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,... | 28.115942 | 68 | 0.734021 | aeon-engine |
cc3ed7865327ff6a26edb24f42f308bdb808151b | 2,419 | cc | C++ | tensorflow/compiler/xla/python/py_traceback.cc | MatthiasHertel80/tensorflow | 390cccbcda0f8dfc070ed7040f218827a0ced875 | [
"Apache-2.0"
] | 11 | 2018-01-03T15:11:09.000Z | 2021-04-13T05:47:27.000Z | tensorflow/compiler/xla/python/py_traceback.cc | MatthiasHertel80/tensorflow | 390cccbcda0f8dfc070ed7040f218827a0ced875 | [
"Apache-2.0"
] | 88 | 2020-11-24T08:18:10.000Z | 2022-03-25T20:28:30.000Z | tensorflow/compiler/xla/python/py_traceback.cc | MatthiasHertel80/tensorflow | 390cccbcda0f8dfc070ed7040f218827a0ced875 | [
"Apache-2.0"
] | 10 | 2018-07-31T10:56:21.000Z | 2019-10-07T08:05:21.000Z | /* Copyright 2020 The TensorFlow Authors. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or a... | 39.655738 | 80 | 0.674246 | MatthiasHertel80 |
cc43f50bb8f8a00a6219d3bfce8497b45e68f65a | 2,044 | cpp | C++ | src/Editor/Toolbar.cpp | WriterOfAlicrow/SOTE | 79d320c36cc88f5ebb556c3e5506cd1e2a034cf6 | [
"MIT"
] | null | null | null | src/Editor/Toolbar.cpp | WriterOfAlicrow/SOTE | 79d320c36cc88f5ebb556c3e5506cd1e2a034cf6 | [
"MIT"
] | null | null | null | src/Editor/Toolbar.cpp | WriterOfAlicrow/SOTE | 79d320c36cc88f5ebb556c3e5506cd1e2a034cf6 | [
"MIT"
] | null | null | null | #include "Toolbar.h"
#include "Editor.h"
using namespace CEGUI;
Toolbar::Toolbar()
{
float height = 32;
_window = static_cast<CEGUI::Menubar*>(CEGUI::WindowManager::getSingleton().createWindow("EditorLook/Menubar", "Toolbar") );
_window->setPosition(CEGUI::UVector2(UDim(0,0), UDim(0,0)));
_window->setSize(CEGU... | 29.623188 | 159 | 0.722603 | WriterOfAlicrow |
cc47819a2e958f32f316246e0d33894eb2b1f0b9 | 260 | cpp | C++ | YorozuyaGSLib/source/_pt_result_punishment_zocl.cpp | lemkova/Yorozuya | f445d800078d9aba5de28f122cedfa03f26a38e4 | [
"MIT"
] | 29 | 2017-07-01T23:08:31.000Z | 2022-02-19T10:22:45.000Z | YorozuyaGSLib/source/_pt_result_punishment_zocl.cpp | kotopes/Yorozuya | 605c97d3a627a8f6545cc09f2a1b0a8afdedd33a | [
"MIT"
] | 90 | 2017-10-18T21:24:51.000Z | 2019-06-06T02:30:33.000Z | YorozuyaGSLib/source/_pt_result_punishment_zocl.cpp | kotopes/Yorozuya | 605c97d3a627a8f6545cc09f2a1b0a8afdedd33a | [
"MIT"
] | 44 | 2017-12-19T08:02:59.000Z | 2022-02-24T23:15:01.000Z | #include <_pt_result_punishment_zocl.hpp>
START_ATF_NAMESPACE
int _pt_result_punishment_zocl::size()
{
using org_ptr = int (WINAPIV*)(struct _pt_result_punishment_zocl*);
return (org_ptr(0x1402b0f50L))(this);
};
END_ATF_NAMESPACE
| 23.636364 | 75 | 0.723077 | lemkova |
cc47e2ec3e4843f0b78e8543a6020a3b7840d769 | 17,988 | cpp | C++ | Tools/ToolsRig/MaterialBinder.cpp | yorung/XLE | 083ce4c9d3fe32002ff5168e571cada2715bece4 | [
"MIT"
] | 1 | 2016-06-01T10:41:12.000Z | 2016-06-01T10:41:12.000Z | Tools/ToolsRig/MaterialBinder.cpp | yorung/XLE | 083ce4c9d3fe32002ff5168e571cada2715bece4 | [
"MIT"
] | null | null | null | Tools/ToolsRig/MaterialBinder.cpp | yorung/XLE | 083ce4c9d3fe32002ff5168e571cada2715bece4 | [
"MIT"
] | null | null | null | // Copyright 2015 XLGAMES Inc.
//
// Distributed under the MIT License (See
// accompanying file "LICENSE" or the website
// http://www.opensource.org/licenses/mit-license.php)
#include "MaterialBinder.h"
#include "../../RenderCore/Metal/InputLayout.h"
#include "../../RenderCore/Metal/DeviceContext.h"
#include "../../... | 45.770992 | 150 | 0.561152 | yorung |
cc4b76f3a722603595181fe006fd73e4ba9c1dc1 | 11,665 | cpp | C++ | DedicatedServer/Plugins/UEStormancerPlugin/Source/UEStormancerPlugin/Private/StormancerAgent.cpp | Stormancer/Sample_DedicatedClientServer-Unreal | 547102cbcc1226612f626ac8a2659a39947aeb05 | [
"MIT"
] | 7 | 2018-01-02T20:21:54.000Z | 2020-10-16T11:57:21.000Z | DedicatedServer/Plugins/UEStormancerPlugin/Source/UEStormancerPlugin/Private/StormancerAgent.cpp | Stormancer/Sample_DedicatedClientServer-Unreal | 547102cbcc1226612f626ac8a2659a39947aeb05 | [
"MIT"
] | null | null | null | DedicatedServer/Plugins/UEStormancerPlugin/Source/UEStormancerPlugin/Private/StormancerAgent.cpp | Stormancer/Sample_DedicatedClientServer-Unreal | 547102cbcc1226612f626ac8a2659a39947aeb05 | [
"MIT"
] | 8 | 2017-09-04T10:11:26.000Z | 2020-12-06T07:28:36.000Z | // Fill out your copyright notice in the Description page of Project Settings.
#include "UEStormancerPlugin/Public/StormancerAgent.h"
#include "Kismet/GameplayStatics.h"
#include "UEStormancerPluginBPLibrary.h"
#include "IServerDCS.h"
#include "Base64.h"
#include <thread>
// Sets default values
AStormancerAgent::AS... | 27.77381 | 166 | 0.733219 | Stormancer |
cc4eaa26859808adea82abf19c18e3c30e1e5b9f | 1,424 | cpp | C++ | color_detector/main.cpp | Merryashji/TI-Individual-Propedeuse-Assessment | a9fccff323a4a667811c9917ef7d1b5c1237e478 | [
"BSL-1.0"
] | null | null | null | color_detector/main.cpp | Merryashji/TI-Individual-Propedeuse-Assessment | a9fccff323a4a667811c9917ef7d1b5c1237e478 | [
"BSL-1.0"
] | null | null | null | color_detector/main.cpp | Merryashji/TI-Individual-Propedeuse-Assessment | a9fccff323a4a667811c9917ef7d1b5c1237e478 | [
"BSL-1.0"
] | null | null | null | #include "hwlib.hpp"
#include "gy31.hpp"
#include "servo.hpp"
#include "leds.hpp"
int main( void ){
namespace target = hwlib::target;
auto s0 = hwlib::target::pin_out( hwlib::target::pins::d4 );
auto s1 = hwlib::target::pin_out( hwlib::target::pins::d5 );
auto s2 = hwlib::target::pin_out( hwlib::... | 34.731707 | 86 | 0.632022 | Merryashji |
cc52ce9c121225ab7ebe1cfcb75599a6c60abf31 | 1,033 | hh | C++ | include/muensterTPCLXeSensitiveDetector.hh | l-althueser/MuensterTPC-Simulation | 7a086ab330cd5905f3c78c324936cdc36951e9bd | [
"BSD-2-Clause"
] | null | null | null | include/muensterTPCLXeSensitiveDetector.hh | l-althueser/MuensterTPC-Simulation | 7a086ab330cd5905f3c78c324936cdc36951e9bd | [
"BSD-2-Clause"
] | 2 | 2017-01-24T21:18:46.000Z | 2017-01-27T13:24:48.000Z | include/muensterTPCLXeSensitiveDetector.hh | l-althueser/MuensterTPC-Simulation | 7a086ab330cd5905f3c78c324936cdc36951e9bd | [
"BSD-2-Clause"
] | 4 | 2017-04-28T12:18:58.000Z | 2019-04-10T21:15:00.000Z | /******************************************************************
* muensterTPCsim
*
* Simulations of the Muenster TPC
*
* @author Lutz Althüser
* @date 2015-04-14
*
* @update 2015-11-02 - added comments
*
* @comment
******************************************************************/
#ifndef __muenster... | 24.595238 | 68 | 0.701839 | l-althueser |
cc5300fbd770c74f11b4369673b73335c680fbfa | 2,855 | cpp | C++ | samples/abstraction/ignored_argument/ignored_argument.cpp | aphenriques/integral | 157b1e07905a88f7786d8823bde19a3546502912 | [
"MIT"
] | 40 | 2015-01-18T19:03:12.000Z | 2022-03-06T19:16:16.000Z | samples/abstraction/ignored_argument/ignored_argument.cpp | aphenriques/integral | 157b1e07905a88f7786d8823bde19a3546502912 | [
"MIT"
] | 7 | 2019-06-25T20:53:27.000Z | 2021-01-16T14:14:52.000Z | samples/abstraction/ignored_argument/ignored_argument.cpp | aphenriques/integral | 157b1e07905a88f7786d8823bde19a3546502912 | [
"MIT"
] | 7 | 2015-05-13T12:31:15.000Z | 2019-07-23T20:22:50.000Z | //
// ignored_argument.cpp
// integral
//
// MIT License
//
// Copyright (c) 2019, 2020 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
// in... | 45.31746 | 157 | 0.620315 | aphenriques |
cc53e83450a81ec01ba849035de7ed32e1cb8694 | 23,380 | cpp | C++ | bench/ml2cpp-demo/DecisionTreeClassifier/digits/ml2cpp-demo_DecisionTreeClassifier_digits.cpp | antoinecarme/ml2cpp | 2b241d44de00eafda620c2b605690276faf5f8fb | [
"BSD-3-Clause"
] | null | null | null | bench/ml2cpp-demo/DecisionTreeClassifier/digits/ml2cpp-demo_DecisionTreeClassifier_digits.cpp | antoinecarme/ml2cpp | 2b241d44de00eafda620c2b605690276faf5f8fb | [
"BSD-3-Clause"
] | 33 | 2020-09-13T09:55:01.000Z | 2022-01-06T11:53:55.000Z | bench/ml2cpp-demo/DecisionTreeClassifier/digits/ml2cpp-demo_DecisionTreeClassifier_digits.cpp | antoinecarme/ml2cpp | 2b241d44de00eafda620c2b605690276faf5f8fb | [
"BSD-3-Clause"
] | 1 | 2021-01-26T14:41:58.000Z | 2021-01-26T14:41:58.000Z | // ********************************************************
// This C++ code was automatically generated by ml2cpp (development version).
// Copyright 2020
// https://github.com/antoinecarme/ml2cpp
// Model : DecisionTreeClassifier
// Dataset : digits
// This CPP code can be compiled using any C++-17 compiler.
// g... | 91.686275 | 5,110 | 0.492429 | antoinecarme |
cc54eb8541df5d7042e5354a3a9448f5981419b9 | 489 | cpp | C++ | src/g2553/launchpad/seven_segment_test/main.cpp | ab2tech/msp430 | 5565f20f7ad7821ee6d8e0cdc7be3904a8df38b3 | [
"Apache-2.0"
] | 24 | 2015-01-04T19:03:41.000Z | 2022-03-11T05:50:19.000Z | src/g2553/launchpad/seven_segment_test/main.cpp | ab2tech/msp430 | 5565f20f7ad7821ee6d8e0cdc7be3904a8df38b3 | [
"Apache-2.0"
] | null | null | null | src/g2553/launchpad/seven_segment_test/main.cpp | ab2tech/msp430 | 5565f20f7ad7821ee6d8e0cdc7be3904a8df38b3 | [
"Apache-2.0"
] | 14 | 2015-05-05T22:47:14.000Z | 2021-10-12T13:11:14.000Z | #include "main.h"
#define LED_PIN p1_0
#define LED_PIN2 p1_6
int main(void)
{
basic_clock clock = basic_clock(DCO_F_1MHz);
tlc5925 tlc = tlc5925(p1_4);
pinOutput(LED_PIN);
pinOutput(LED_PIN2);
pinOn(LED_PIN2);
tlc.write((uint16_t)TLC5925_CH01);
_delay_s(2);
tlc.write((uint16_t)TLC59... | 17.464286 | 47 | 0.640082 | ab2tech |
cc59ca4398f42098467b31a00bc81ec46b4f372e | 1,324 | hpp | C++ | src/app/Primitives/Text.hpp | XakNitram/DeutschText | 2f504e1530ffbf66c3e3e82efc261ab3c289ff7c | [
"MIT"
] | null | null | null | src/app/Primitives/Text.hpp | XakNitram/DeutschText | 2f504e1530ffbf66c3e3e82efc261ab3c289ff7c | [
"MIT"
] | null | null | null | src/app/Primitives/Text.hpp | XakNitram/DeutschText | 2f504e1530ffbf66c3e3e82efc261ab3c289ff7c | [
"MIT"
] | null | null | null | #pragma once
#include "pch.hpp"
#include "Primitives/Font.hpp"
class Text {
lwvl::ShaderProgram program;
lwvl::Uniform u_TextScale = program.uniform("stringScale");
lwvl::Uniform u_TextOffset = program.uniform("stringOffset");
lwvl::VertexArray bufferArray;
lwvl::ArrayBuffer vertexBuffer{lwvl::U... | 22.066667 | 114 | 0.679758 | XakNitram |
7fde78d9c94c4a103ff5aa7a513ebf406a952b3e | 1,467 | cpp | C++ | Part 9 - Standard Template Library/Vectors.cpp | rudrajit1729/CPP-Learning-Course | 3c39b2f31b10b5e8dfd3214f924c6d8af021dc94 | [
"MIT"
] | null | null | null | Part 9 - Standard Template Library/Vectors.cpp | rudrajit1729/CPP-Learning-Course | 3c39b2f31b10b5e8dfd3214f924c6d8af021dc94 | [
"MIT"
] | null | null | null | Part 9 - Standard Template Library/Vectors.cpp | rudrajit1729/CPP-Learning-Course | 3c39b2f31b10b5e8dfd3214f924c6d8af021dc94 | [
"MIT"
] | null | null | null | #include<iostream>
#include<vector>
#include<algorithm>
using namespace std;
int main()
{
vector <int> A = {11, 2, 3, 14};
A.push_back(100); // Can be used as stack. Also A.pop_back(element) to delete elements
sort(A.begin(), A.end());//O(nlogn)
//2, 3, 11, 14, 100
//O(... | 31.891304 | 116 | 0.563054 | rudrajit1729 |
7fe16e99503fb14b4437f3340f46b6481dc69a07 | 4,728 | cpp | C++ | sword_2_offer/26_CopyComplexList.cpp | thewangcj/CodingInterview | f5ee3074e527295f6911a5439bb8ac5fc0ed56ea | [
"MIT"
] | 1 | 2018-01-13T06:01:49.000Z | 2018-01-13T06:01:49.000Z | sword_2_offer/26_CopyComplexList.cpp | thewangcj/CodingInterview | f5ee3074e527295f6911a5439bb8ac5fc0ed56ea | [
"MIT"
] | null | null | null | sword_2_offer/26_CopyComplexList.cpp | thewangcj/CodingInterview | f5ee3074e527295f6911a5439bb8ac5fc0ed56ea | [
"MIT"
] | null | null | null | // 复杂链表的复制
// 题目:请实现函数ComplexListNode* Clone(ComplexListNode* pHead),复
// 制一个复杂链表。在复杂链表中,每个结点除了有一个m_pNext指针指向下一个
// 结点外,还有一个m_pSibling 指向链表中的任意结点或者nullptr。
#include <iostream>
using namespace std;
struct ComplexListNode
{
int m_value;
ComplexListNode* m_next;
ComplexListNode* m_sibling;
};
ComplexListNode* Create... | 22.730769 | 90 | 0.589255 | thewangcj |
7fe1f5f7f92f4935cfd35b53142321295c43b805 | 8,715 | cc | C++ | src/php_v8_function_callback_info.cc | pinepain/php-v8 | dbf2f0cd713d67c252cffe7688548aaa35b56a73 | [
"MIT"
] | 165 | 2016-07-15T07:09:56.000Z | 2018-03-26T16:48:44.000Z | src/php_v8_function_callback_info.cc | pinepain/php-v8 | dbf2f0cd713d67c252cffe7688548aaa35b56a73 | [
"MIT"
] | 72 | 2016-09-04T11:26:00.000Z | 2018-04-25T13:55:37.000Z | src/php_v8_function_callback_info.cc | pinepain/php-v8 | dbf2f0cd713d67c252cffe7688548aaa35b56a73 | [
"MIT"
] | 12 | 2016-09-05T09:00:45.000Z | 2018-03-12T07:42:45.000Z | /*
* This file is part of the phpv8/php-v8 PHP extension.
*
* Copyright (c) 2015-2018 Bogdan Padalko <thepinepain@gmail.com>
*
* Licensed under the MIT license: http://opensource.org/licenses/MIT
*
* For the full copyright and license information, please view the
* LICENSE file that was distributed with this so... | 33.77907 | 135 | 0.741136 | pinepain |
7fe4382240a8880651cd3fc96d35017fde89a1c2 | 1,272 | cpp | C++ | src/strings/RabinKarp.cpp | kcwiakala/algo | b5d393d29c7ca612246c12cefe79bd14432e2e49 | [
"MIT"
] | null | null | null | src/strings/RabinKarp.cpp | kcwiakala/algo | b5d393d29c7ca612246c12cefe79bd14432e2e49 | [
"MIT"
] | null | null | null | src/strings/RabinKarp.cpp | kcwiakala/algo | b5d393d29c7ca612246c12cefe79bd14432e2e49 | [
"MIT"
] | null | null | null | #include <Common.hpp>
namespace algo {
std::vector<int> rabinKarp(const std::string& text, const std::string& pattern)
{
const int Q = 2;
const int M = 17;
std::vector<int> result;
const int P = pattern.size();
if(P > text.size()) {
return result;
}
int ph = 0;
int th = 0;
int h = 1;
for(int ... | 23.127273 | 85 | 0.562893 | kcwiakala |
7fe4693784322d8990eefbeb65da003ad5068526 | 815 | cpp | C++ | src/331.verify_preorder_serialization_of_a_binary_tree/code.cpp | cloudzfy/leetcode | 9d32090429ef297e1f62877382bff582d247266a | [
"MIT"
] | 1 | 2016-07-02T17:44:10.000Z | 2016-07-02T17:44:10.000Z | src/331.verify_preorder_serialization_of_a_binary_tree/code.cpp | cloudzfy/leetcode | 9d32090429ef297e1f62877382bff582d247266a | [
"MIT"
] | null | null | null | src/331.verify_preorder_serialization_of_a_binary_tree/code.cpp | cloudzfy/leetcode | 9d32090429ef297e1f62877382bff582d247266a | [
"MIT"
] | 1 | 2019-12-21T04:57:15.000Z | 2019-12-21T04:57:15.000Z | class Solution {
public:
bool isValidSerialization(string preorder) {
vector<string> s;
int start = 0;
for (int i = 0; i <= preorder.length(); i++) {
string elem;
if (preorder[i] == ',' || preorder[i] == 0) {
elem = preorder.substr(start, i - start);
... | 31.346154 | 82 | 0.361963 | cloudzfy |
7fe5532c614a043fc9fa19341ec4d7f8db8e64b7 | 4,611 | hpp | C++ | include/eepp/ui/cuiwindow.hpp | dogtwelve/eepp | dd672ff0e108ae1e08449ca918dc144018fb4ba4 | [
"MIT"
] | null | null | null | include/eepp/ui/cuiwindow.hpp | dogtwelve/eepp | dd672ff0e108ae1e08449ca918dc144018fb4ba4 | [
"MIT"
] | null | null | null | include/eepp/ui/cuiwindow.hpp | dogtwelve/eepp | dd672ff0e108ae1e08449ca918dc144018fb4ba4 | [
"MIT"
] | null | null | null | #ifndef EE_UICUIWINDOW_HPP
#define EE_UICUIWINDOW_HPP
#include <eepp/ui/cuicomplexcontrol.hpp>
#include <eepp/ui/cuipushbutton.hpp>
#include <eepp/ui/cuitextbox.hpp>
namespace EE { namespace UI {
class EE_API cUIWindow : public cUIComplexControl {
public:
class CreateParams : public cUIComplexControl::CreateParam... | 20.77027 | 90 | 0.706788 | dogtwelve |
7fe69a6dab1a2eb6ac40e66e5e29bd2def78e4e3 | 730 | cpp | C++ | ch2/2.31.cpp | FWangTrading/Cpp-Primer-5th-Exercises | bce33ed38306485d503ff5117900ada9623bfbf4 | [
"Apache-2.0"
] | 545 | 2016-08-24T00:55:03.000Z | 2022-03-29T22:59:24.000Z | ch2/2.31.cpp | FWangTrading/Cpp-Primer-5th-Exercises | bce33ed38306485d503ff5117900ada9623bfbf4 | [
"Apache-2.0"
] | 25 | 2017-06-05T18:45:56.000Z | 2022-02-18T14:19:05.000Z | ch2/2.31.cpp | FWangTrading/Cpp-Primer-5th-Exercises | bce33ed38306485d503ff5117900ada9623bfbf4 | [
"Apache-2.0"
] | 260 | 2016-02-23T01:17:41.000Z | 2022-03-26T08:35:54.000Z | int main() {
int i;
const int v2 = 0; // v2 has top-level const
int v1 = v2;
int *p1 = &v1, &r1 = v1;
const int *p2 = &v2, *const p3 = &i, &r2 = v2; // p2 has low-level const
// p3 has both low-level and top-level const
... | 31.73913 | 94 | 0.515068 | FWangTrading |
3d04497096a513c0c950e70dd4cdfc6000254f76 | 41,133 | cpp | C++ | src/lib/geogram_gfx/mesh/mesh_gfx.cpp | benardp/contours_viewer | 16eb17c916272d34e73039f0969e46abc0ec30ca | [
"BSD-3-Clause"
] | 8 | 2019-05-17T15:33:13.000Z | 2021-09-13T10:54:27.000Z | src/lib/geogram_gfx/mesh/mesh_gfx.cpp | benardp/contours_viewer | 16eb17c916272d34e73039f0969e46abc0ec30ca | [
"BSD-3-Clause"
] | null | null | null | src/lib/geogram_gfx/mesh/mesh_gfx.cpp | benardp/contours_viewer | 16eb17c916272d34e73039f0969e46abc0ec30ca | [
"BSD-3-Clause"
] | 4 | 2021-01-19T11:28:42.000Z | 2021-12-24T04:43:15.000Z | /*
* Copyright (c) 2012-2014, Bruno Levy
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* * Redistributions of source code must retain the above copyright notice,
* this list of c... | 29.528356 | 80 | 0.653441 | benardp |
3d05b08a8901c5b694462e4a115c10a7a084fa75 | 1,609 | hpp | C++ | Siv3D/include/Siv3D/Shader.hpp | RYOSKATE/OpenSiv3D | ac02c341e4d116785a6531ad7567559a086e665a | [
"MIT"
] | null | null | null | Siv3D/include/Siv3D/Shader.hpp | RYOSKATE/OpenSiv3D | ac02c341e4d116785a6531ad7567559a086e665a | [
"MIT"
] | null | null | null | Siv3D/include/Siv3D/Shader.hpp | RYOSKATE/OpenSiv3D | ac02c341e4d116785a6531ad7567559a086e665a | [
"MIT"
] | null | null | null | //-----------------------------------------------
//
// This file is part of the Siv3D Engine.
//
// Copyright (c) 2008-2018 Ryo Suzuki
// Copyright (c) 2016-2018 OpenSiv3D Project
//
// Licensed under the MIT License.
//
//-----------------------------------------------
# pragma once
# include "Fwd.hpp"
# include "S... | 25.539683 | 171 | 0.668738 | RYOSKATE |
3d05e9acc943a3c8299347645055c87fd5d0ff76 | 365 | hpp | C++ | include/histogram.hpp | stefanofortu/intoTheWild | 000af8d5b7a480e0f14e1a2deb047899c8469b41 | [
"Unlicense"
] | null | null | null | include/histogram.hpp | stefanofortu/intoTheWild | 000af8d5b7a480e0f14e1a2deb047899c8469b41 | [
"Unlicense"
] | 1 | 2015-12-23T16:26:12.000Z | 2015-12-23T16:26:34.000Z | include/histogram.hpp | stefanofortu/intothewild | 000af8d5b7a480e0f14e1a2deb047899c8469b41 | [
"Unlicense"
] | null | null | null | #ifndef _HISTOGRAM_HPP_
#define _HISTOGRAM_HPP_
#include "config.hpp"
int caricaDistribuzione(string address, double* distribution);
Mat plot_histogram(float* istogramma);
float* cumulative(float* histogram);
float* histogram_gray (Mat img);
int histc(double *distribution_source, int n_samples, double step, double *h... | 28.076923 | 94 | 0.808219 | stefanofortu |
3d0b8f4c587334584945e0099f8208c4f2040f9e | 2,053 | cpp | C++ | imp_bridge_opencv/src/cv_connector_pixel_types.cpp | mwerlberger/imp | 2a2e4d31fa59ca1c32ae7f415306b39e31fc1e85 | [
"MIT"
] | 8 | 2015-10-24T18:31:58.000Z | 2019-10-16T03:27:27.000Z | imp_bridge_opencv/src/cv_connector_pixel_types.cpp | henrywen2011/imp | 2a2e4d31fa59ca1c32ae7f415306b39e31fc1e85 | [
"MIT"
] | 7 | 2015-06-22T09:36:32.000Z | 2015-08-20T06:56:10.000Z | imp_bridge_opencv/src/cv_connector_pixel_types.cpp | henrywen2011/imp | 2a2e4d31fa59ca1c32ae7f415306b39e31fc1e85 | [
"MIT"
] | 3 | 2015-05-13T14:46:48.000Z | 2017-01-11T09:20:03.000Z | #include <imp/bridge/opencv/cv_connector_pixel_types.hpp>
#include <opencv2/core/core.hpp>
namespace imp {
//------------------------------------------------------------------------------
imp::PixelType pixelTypeFromCv(int type)
{
switch (type)
{
case CV_8UC1: return imp::PixelType::i8uC1;
case CV_8UC2: retu... | 31.584615 | 80 | 0.666342 | mwerlberger |
3d0ca7481af2c5a1d683974fe4da719a2973e001 | 924 | hpp | C++ | libs/core/include/fcppt/mpl/list/size.hpp | freundlich/fcppt | 17df1b1ad08bf2435f6902d5465e3bc3fe5e3022 | [
"BSL-1.0"
] | 13 | 2015-02-21T18:35:14.000Z | 2019-12-29T14:08:29.000Z | libs/core/include/fcppt/mpl/list/size.hpp | cpreh/fcppt | 17df1b1ad08bf2435f6902d5465e3bc3fe5e3022 | [
"BSL-1.0"
] | 5 | 2016-08-27T07:35:47.000Z | 2019-04-21T10:55:34.000Z | libs/core/include/fcppt/mpl/list/size.hpp | freundlich/fcppt | 17df1b1ad08bf2435f6902d5465e3bc3fe5e3022 | [
"BSL-1.0"
] | 8 | 2015-01-10T09:22:37.000Z | 2019-12-01T08:31:12.000Z | // Copyright Carl Philipp Reh 2009 - 2021.
// 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 FCPPT_MPL_LIST_SIZE_HPP_INCLUDED
#define FCPPT_MPL_LIST_SIZE_HPP_INCLUDED
#include <fcppt/... | 23.1 | 65 | 0.714286 | freundlich |
3d127f67cbd8f35155d554e2333aaa8c653c3d9c | 315 | cpp | C++ | cpp/fail/lib/test/src/Case.cpp | bpsuntrup/TuringBox | 22aa7ef92a7b18795e96f120f25c2b8add0ae75e | [
"MIT"
] | 2 | 2016-02-23T03:20:29.000Z | 2016-03-16T01:13:32.000Z | cpp/fail/lib/test/src/Case.cpp | bpsuntrup/TuringBox | 22aa7ef92a7b18795e96f120f25c2b8add0ae75e | [
"MIT"
] | null | null | null | cpp/fail/lib/test/src/Case.cpp | bpsuntrup/TuringBox | 22aa7ef92a7b18795e96f120f25c2b8add0ae75e | [
"MIT"
] | null | null | null | #include <string>
#include "Case.h"
using namespace std;
void Test::Case::operator() ()
{
test_();
}
void Test::Case::operator= (function<void()> test)
{
test_ = test;
}
void Test::Case::describe(string description)
{
description_ = description;
}
string Test::Case::describe()
{
return description_;
}
| 13.125 | 50 | 0.673016 | bpsuntrup |
3d27fa618b92e67794c0b97757fd10f00598a2ab | 9,023 | cpp | C++ | Source/OpenTournament/UR_FireModeBase.cpp | HAARP-art/OpenTournament | 1bb188983ba4d013a8ce00bbe1a333f2952814e8 | [
"OML"
] | 97 | 2020-05-24T23:09:26.000Z | 2022-01-22T13:35:58.000Z | Source/OpenTournament/UR_FireModeBase.cpp | HAARP-art/OpenTournament | 1bb188983ba4d013a8ce00bbe1a333f2952814e8 | [
"OML"
] | 165 | 2020-05-26T02:42:54.000Z | 2022-03-29T11:01:11.000Z | Source/OpenTournament/UR_FireModeBase.cpp | HAARP-art/OpenTournament | 1bb188983ba4d013a8ce00bbe1a333f2952814e8 | [
"OML"
] | 78 | 2020-05-24T23:10:29.000Z | 2022-03-14T13:54:09.000Z | // Copyright (c) 2019-2020 Open Tournament Project, All Rights Reserved.
#include "UR_FireModeBase.h"
#include "Net/UnrealNetwork.h"
#include "Engine/World.h"
#include "TimerManager.h"
#include "UR_FunctionLibrary.h"
void UUR_FireModeBase::GetLifetimeReplicatedProps(TArray<FLifetimeProperty>& OutLifetimePro... | 27.096096 | 150 | 0.583952 | HAARP-art |
3d2eb858ef31beb9f3b9ef5a8cf403a8e6bc8661 | 1,609 | cpp | C++ | test/cast/truncation_check.cpp | pmiddend/fcppt | 9f437acbb10258e6df6982a550213a05815eb2be | [
"BSL-1.0"
] | null | null | null | test/cast/truncation_check.cpp | pmiddend/fcppt | 9f437acbb10258e6df6982a550213a05815eb2be | [
"BSL-1.0"
] | null | null | null | test/cast/truncation_check.cpp | pmiddend/fcppt | 9f437acbb10258e6df6982a550213a05815eb2be | [
"BSL-1.0"
] | null | null | null | // Copyright Carl Philipp Reh 2009 - 2018.
// Distributed under the Boost Software License, Version 1.0.
// (See accompanying file LICENSE_1_0.txt or copy at
// http://www.boost.org/LICENSE_1_0.txt)
#include <fcppt/cast/bad_truncation_check.hpp>
#include <fcppt/cast/truncation_check.hpp>
#include... | 15.179245 | 61 | 0.650715 | pmiddend |
3d351f5a308ec86393d8078e4bd92b240980daf8 | 11,176 | cpp | C++ | lights/format/binary_format.cpp | wherewindblow/spaceless | 891ef66cf22d268dd742ea15b15f944a9ba8185f | [
"Apache-2.0"
] | 1 | 2020-12-10T12:08:35.000Z | 2020-12-10T12:08:35.000Z | lights/format/binary_format.cpp | wherewindblow/spaceless | 891ef66cf22d268dd742ea15b15f944a9ba8185f | [
"Apache-2.0"
] | null | null | null | lights/format/binary_format.cpp | wherewindblow/spaceless | 891ef66cf22d268dd742ea15b15f944a9ba8185f | [
"Apache-2.0"
] | null | null | null | /**
* binary_format.cpp
* @author wherewindblow
* @date Sep 12, 2017
*/
#include "binary_format.h"
namespace lights {
/**
* Gets type code of boolean.
*/
inline BinaryTypeCode get_type_code(bool)
{
return BinaryTypeCode::BOOL;
}
/**
* Gets type code of char.
*/
inline BinaryTypeCode get_type_code(char)
... | 26.234742 | 118 | 0.612742 | wherewindblow |
3d44a66b8dd8eb2305b66b9717bc7eef05784e1d | 9,441 | cpp | C++ | tests/base_test.cpp | vancraar/PLSSVM | e8ea4966c2baf23d5ca42e4c77f33fa75a31a9df | [
"MIT"
] | null | null | null | tests/base_test.cpp | vancraar/PLSSVM | e8ea4966c2baf23d5ca42e4c77f33fa75a31a9df | [
"MIT"
] | null | null | null | tests/base_test.cpp | vancraar/PLSSVM | e8ea4966c2baf23d5ca42e4c77f33fa75a31a9df | [
"MIT"
] | null | null | null | /**
* @author Alexander Van Craen
* @author Marcel Breyer
* @copyright 2018-today The PLSSVM project - All Rights Reserved
* @license This file is part of the PLSSVM project which is released under the MIT license.
* See the LICENSE.md file in the project root for full license information.
*
* @brief Te... | 60.133758 | 199 | 0.761042 | vancraar |
3d4b50ba026443c992105fe8d033c37c1367f516 | 8,989 | cpp | C++ | GPS_GN-801/src/GPS_GN-801.cpp | Carlo47/GPS_GN-801 | 94a8047a84f85fe740eb7aa345e220304bfe16fc | [
"Unlicense"
] | null | null | null | GPS_GN-801/src/GPS_GN-801.cpp | Carlo47/GPS_GN-801 | 94a8047a84f85fe740eb7aa345e220304bfe16fc | [
"Unlicense"
] | null | null | null | GPS_GN-801/src/GPS_GN-801.cpp | Carlo47/GPS_GN-801 | 94a8047a84f85fe740eb7aa345e220304bfe16fc | [
"Unlicense"
] | null | null | null | /**
* Sketch GPS_GN-801.cpp
* Author 2020-01-23 Ch. Geiser
* Purpose Reads the NMEA Sentences sent by the GPS module via the
* hardware serial interface 1 of the ESP32 module and displays
* them on the integrated OLED.
*
* Board ESP32 Board WiFi / BlueTooth / O... | 28.178683 | 106 | 0.510735 | Carlo47 |
3d54c4ed6546b3168c648d1c88209a544814b2a7 | 278 | cpp | C++ | archive/2.02.3089.cpp | woshiluo/oi | 5637fb81b0e25013314783dc387f7fc93bf9d4b9 | [
"Apache-2.0"
] | null | null | null | archive/2.02.3089.cpp | woshiluo/oi | 5637fb81b0e25013314783dc387f7fc93bf9d4b9 | [
"Apache-2.0"
] | null | null | null | archive/2.02.3089.cpp | woshiluo/oi | 5637fb81b0e25013314783dc387f7fc93bf9d4b9 | [
"Apache-2.0"
] | null | null | null | #include <cstdio>
using namespace std;
int a[45],i=0,cnt;
void f(int less){
if(less==0){cnt++; return ;}
for(int i=1;i<=2;i++){
if(less-i>=0) f(less-i);
}
}
int main(){
while(1){
if(scanf("%d",&a[i])==EOF) break;
f(a[i]);
printf("%d\n",cnt);
cnt=0;
i++;
}
}
| 12.636364 | 35 | 0.517986 | woshiluo |
3d54e75387edb062e0ad324fe7ac690f8a59d5b1 | 9,468 | cpp | C++ | sources/libcpp69iip_scale_by_subpixel/iip_crop_and_downsample.cpp | Savraska2/GTS | 78c8b4d634f1379eb3e33642716717f53bf7e1ad | [
"BSD-3-Clause"
] | 61 | 2016-03-26T03:04:43.000Z | 2021-09-17T02:11:18.000Z | sources/libcpp69iip_scale_by_subpixel/iip_crop_and_downsample.cpp | sahwar/GTS | b25734116ea81eb0d7e2eabc8ce16cdd1c8b22dd | [
"BSD-3-Clause"
] | 92 | 2016-04-10T23:40:22.000Z | 2022-03-11T21:49:12.000Z | sources/libcpp69iip_scale_by_subpixel/iip_crop_and_downsample.cpp | sahwar/GTS | b25734116ea81eb0d7e2eabc8ce16cdd1c8b22dd | [
"BSD-3-Clause"
] | 18 | 2016-03-26T11:19:14.000Z | 2021-08-07T00:26:02.000Z | #include <iostream>
#include <cassert>
#include "iip_crop_and_downsample.h"
#include "calcu_bresenham.cpp"
namespace {
/* child画像1pixelに対するparent画像1pixelのサンプリング数(subpixel)を返す */
int calcu_subpixel_division_(
const int subp_min_div /* 縮小(DownSample)時のサンプル最小数 */
,const int subp_max_div /* 縮小(DownSample)時のサンプル最大数 */
... | 26.670423 | 103 | 0.661597 | Savraska2 |
3d59792b1b67ae263accbb5c76c2d60e6f92cd2d | 2,550 | hpp | C++ | pouf/core/graph.hpp | maxime-tournier/cpp | 303def38a523f0e5699ef389182974f4f50d10fb | [
"MIT"
] | null | null | null | pouf/core/graph.hpp | maxime-tournier/cpp | 303def38a523f0e5699ef389182974f4f50d10fb | [
"MIT"
] | null | null | null | pouf/core/graph.hpp | maxime-tournier/cpp | 303def38a523f0e5699ef389182974f4f50d10fb | [
"MIT"
] | null | null | null | #ifndef CORE_GRAPH_HPP
#define CORE_GRAPH_HPP
#include <map>
#include <memory>
#include <boost/graph/adjacency_list.hpp>
#include <boost/graph/topological_sort.hpp>
#include <core/variant.hpp>
#include <core/range.hpp>
#include "dofs.hpp"
#include "func.hpp"
#include "metric.hpp"
using vertex = variant<dofs_base... | 19.318182 | 89 | 0.592941 | maxime-tournier |
3d5b772e5e07c4f1ceca23848517868c987490c8 | 4,263 | cpp | C++ | 2021/puzzle-14/part-2/main.cpp | sirnacnud/advent-of-code | 8a45207ac57f7cae8a66126b99c79dfffc173468 | [
"MIT"
] | null | null | null | 2021/puzzle-14/part-2/main.cpp | sirnacnud/advent-of-code | 8a45207ac57f7cae8a66126b99c79dfffc173468 | [
"MIT"
] | null | null | null | 2021/puzzle-14/part-2/main.cpp | sirnacnud/advent-of-code | 8a45207ac57f7cae8a66126b99c79dfffc173468 | [
"MIT"
] | null | null | null | #include <iostream>
#include <fstream>
#include <sstream>
#include <limits>
#include <map>
#include <vector>
void parseRule(const std::string& line, std::map<std::pair<char, char>, char>& rules) {
std::stringstream ss(line);
std::string s;
int index = 0;
std::pair<char, char> pair;
while (index <... | 30.45 | 169 | 0.52897 | sirnacnud |
87d077090a88c9242fa233fb3e425318a60f3c99 | 6,831 | cxx | C++ | Porter5/scripts/Predict_BRNN/Model.cxx | LifeWorks/SIEVE | 8ba16402f0a15a0ae040d54cf2674e7d00ef4be0 | [
"BSD-2-Clause"
] | null | null | null | Porter5/scripts/Predict_BRNN/Model.cxx | LifeWorks/SIEVE | 8ba16402f0a15a0ae040d54cf2674e7d00ef4be0 | [
"BSD-2-Clause"
] | null | null | null | Porter5/scripts/Predict_BRNN/Model.cxx | LifeWorks/SIEVE | 8ba16402f0a15a0ae040d54cf2674e7d00ef4be0 | [
"BSD-2-Clause"
] | null | null | null |
#include "Model.h"
void
Model::alloc() {
counted = new int[NY];
nerrors_ = new int[NY];
dcycles = new double[cycles];
Conf=new int*[NY];
for (int y=0;y<NY;y++)
Conf[y]=new int[NY];
}
Model::Model(int the_NU, int the_NY, int the_NH, int the_context, int the_Moore, int the_NF,
... | 18.023747 | 130 | 0.524667 | LifeWorks |
87d140ffdeb6403853fd616ac067406fa04e4692 | 884 | cpp | C++ | Dynamic Programming/LCS/LPalindromicS_DP.cpp | parth1614/DSA_Questions | 7083952eb310a21f7e30267efa437dfbb8c0f88f | [
"MIT"
] | null | null | null | Dynamic Programming/LCS/LPalindromicS_DP.cpp | parth1614/DSA_Questions | 7083952eb310a21f7e30267efa437dfbb8c0f88f | [
"MIT"
] | null | null | null | Dynamic Programming/LCS/LPalindromicS_DP.cpp | parth1614/DSA_Questions | 7083952eb310a21f7e30267efa437dfbb8c0f88f | [
"MIT"
] | null | null | null | #include<bits/stdc++.h>
using namespace std;
int LPS(string z,string x, int n, int m){
vector<vector<int>> t;
for(int i=0;i<n+1;++i){
vector<int> temp;
for(int j=0;j<m+1;++j){
if(i==0 || j==0){
temp.push_back(0);
}
else{
temp.push_... | 19.217391 | 53 | 0.375566 | parth1614 |
87d478ae4a1da8c07500d518f1012209656049ff | 466 | cpp | C++ | src/ConverterPrinter/ExportFormatNotSupportedException.cpp | bas524/DocxFactory | 8520eef9778d7e696a8013090396bb7b3f2936a0 | [
"BSD-3-Clause"
] | 2 | 2019-02-19T07:53:03.000Z | 2019-11-05T10:21:21.000Z | src/ConverterPrinter/ExportFormatNotSupportedException.cpp | bas524/DocxFactory | 8520eef9778d7e696a8013090396bb7b3f2936a0 | [
"BSD-3-Clause"
] | null | null | null | src/ConverterPrinter/ExportFormatNotSupportedException.cpp | bas524/DocxFactory | 8520eef9778d7e696a8013090396bb7b3f2936a0 | [
"BSD-3-Clause"
] | 1 | 2021-07-09T07:29:48.000Z | 2021-07-09T07:29:48.000Z |
#include "DocxFactory/ConverterPrinter/ExportFormatNotSupportedException.h"
using namespace DocxFactory;
using namespace std;
ExportFormatNotSupportedException::ExportFormatNotSupportedException(const string& p_ext, const string& p_file, int p_line)
: ConverterPrinterException(p_file, p_line) {
m_what = "Export f... | 29.125 | 123 | 0.791845 | bas524 |
87d66d89fe1e2d5f27c42173a6e43c4eb29de7be | 2,143 | cpp | C++ | raspimouse_control/src/leds.cpp | rt-net/raspimouse | 1154fa648c2503d152794350bc11957cd2dbde8d | [
"Apache-2.0"
] | 2 | 2022-01-27T03:37:36.000Z | 2022-03-13T06:17:01.000Z | raspimouse_control/src/leds.cpp | rt-net/raspimouse | 1154fa648c2503d152794350bc11957cd2dbde8d | [
"Apache-2.0"
] | null | null | null | raspimouse_control/src/leds.cpp | rt-net/raspimouse | 1154fa648c2503d152794350bc11957cd2dbde8d | [
"Apache-2.0"
] | null | null | null | // SPDX-License-Identifier: Apache-2.0
/*
* Copyright 2021 RT Corporation
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unles... | 31.514706 | 109 | 0.729818 | rt-net |
87da7c1e7c963ad8d69249263b01207662cec15a | 664 | hpp | C++ | include/Material.hpp | nsilvestri/cpp-raytracer | 79336657784f5bd76bb3d15985488bd61255e00b | [
"MIT"
] | 1 | 2021-03-29T09:39:33.000Z | 2021-03-29T09:39:33.000Z | include/Material.hpp | nsilvestri/cpp-raytracer | 79336657784f5bd76bb3d15985488bd61255e00b | [
"MIT"
] | 1 | 2021-05-19T05:55:23.000Z | 2021-09-07T14:00:01.000Z | include/Material.hpp | nsilvestri/cpp-raytracer | 79336657784f5bd76bb3d15985488bd61255e00b | [
"MIT"
] | null | null | null | #pragma once
#include "RGBColor.hpp"
class Material
{
private:
RGBColor ambient;
RGBColor diffuse;
RGBColor specular;
float phongExponent;
public:
Material();
Material(RGBColor ambient, RGBColor diffuse, RGBColor specular, float phongExponent);
... | 27.666667 | 94 | 0.634036 | nsilvestri |
87e455cdca431272affbe7d2dc2ac4be609ae5ac | 6,067 | cpp | C++ | 00_playground/test/basics_working.cpp | r0oland/Baltopia | a772733a73fd54ad837f079b525bf8c7c09712bf | [
"MIT"
] | null | null | null | 00_playground/test/basics_working.cpp | r0oland/Baltopia | a772733a73fd54ad837f079b525bf8c7c09712bf | [
"MIT"
] | null | null | null | 00_playground/test/basics_working.cpp | r0oland/Baltopia | a772733a73fd54ad837f079b525bf8c7c09712bf | [
"MIT"
] | null | null | null | #include <Arduino.h>
#include <OneWire.h>
#include <DallasTemperature.h>
#include <ESP8266WiFi.h>
// replace with your channel’s thingspeak API key and your SSID and password
String apiKey = "AJ60CMZMC275VGXY";
const char* ssid = "RazanskyLab";
const char* password = "WeLoveOptoacoustics";
const char* server ... | 30.18408 | 84 | 0.626174 | r0oland |
87e4564492a2a02bdc044fa0c50a3db8fd5c013b | 157 | cpp | C++ | libraries/chain/hive_objects.cpp | drov0/hive | 747380ac6d1d621a99c94ccf3fd24bbece754a57 | [
"MIT"
] | 283 | 2020-03-20T02:13:12.000Z | 2022-03-31T22:40:07.000Z | libraries/chain/hive_objects.cpp | drov0/hive | 747380ac6d1d621a99c94ccf3fd24bbece754a57 | [
"MIT"
] | 19 | 2020-03-20T03:09:16.000Z | 2021-08-28T22:35:09.000Z | libraries/chain/hive_objects.cpp | drov0/hive | 747380ac6d1d621a99c94ccf3fd24bbece754a57 | [
"MIT"
] | 94 | 2020-03-20T01:53:05.000Z | 2022-03-04T11:08:23.000Z | #include <hive/chain/hive_fwd.hpp>
#include <hive/chain/hive_objects.hpp>
#include <fc/uint128.hpp>
namespace hive { namespace chain {
} } // hive::chain
| 17.444444 | 38 | 0.719745 | drov0 |
87e6301b3e7962a546e6a3a7d04ff402b7dfce3f | 1,108 | cpp | C++ | src/examples/002/main.cpp | Dearast/AmberFramework | e8efb9616e837307e06b0abccee97d40b895b9b6 | [
"MIT"
] | 1 | 2021-02-11T19:01:45.000Z | 2021-02-11T19:01:45.000Z | src/examples/002/main.cpp | Dearast/AmberFramework | e8efb9616e837307e06b0abccee97d40b895b9b6 | [
"MIT"
] | null | null | null | src/examples/002/main.cpp | Dearast/AmberFramework | e8efb9616e837307e06b0abccee97d40b895b9b6 | [
"MIT"
] | null | null | null | #include "../../framework/AmberFramework.h"
class LayerExample : public Amber::Layer
{
public:
LayerExample()
{
AMBER_CLIENT_INFO("LayerExample is constructed.");
}
~LayerExample()
{
AMBER_CLIENT_INFO("LayerExample is destroyed.");
}
voi... | 21.72549 | 63 | 0.561372 | Dearast |
87eb75dca5251e67348a4053f96784d742c21d69 | 2,363 | cpp | C++ | android-ndk-r10b/tests/device/test-stlport/unit/heap_test.cpp | perezite/Boost4Android | 9ed03a45815aead156c129da1927cc04b8caa6a3 | [
"BSL-1.0"
] | 173 | 2015-01-02T11:14:08.000Z | 2022-03-05T09:54:54.000Z | platform/shared/stlport/test/unit/heap_test.cpp | sdwood/rhodes | 8228aa40708dcbcc1d3967a479d1d84364022255 | [
"MIT"
] | 263 | 2015-01-05T04:35:22.000Z | 2021-09-07T06:00:02.000Z | platform/shared/stlport/test/unit/heap_test.cpp | sdwood/rhodes | 8228aa40708dcbcc1d3967a479d1d84364022255 | [
"MIT"
] | 77 | 2015-01-12T20:57:18.000Z | 2022-02-17T15:15:14.000Z | #include <vector>
#include <algorithm>
#include <functional>
#include "cppunit/cppunit_proxy.h"
#if !defined (STLPORT) || defined(_STLP_USE_NAMESPACES)
using namespace std;
#endif
//
// TestCase class
//
class HeapTest : public CPPUNIT_NS::TestCase
{
CPPUNIT_TEST_SUITE(HeapTest);
CPPUNIT_TEST(mkheap0);
CPPUNIT... | 21.678899 | 55 | 0.665679 | perezite |
87f3e3bc05d6b9472eab95cd9080288a18fba4ca | 1,385 | cpp | C++ | Codeforces/Gym/101341/I.cpp | sshockwave/Online-Judge-Solutions | 9d0bc7fd68c3d1f661622929c1cb3752601881d3 | [
"MIT"
] | 6 | 2019-09-30T16:11:00.000Z | 2021-11-01T11:42:33.000Z | Codeforces/Gym/101341/I.cpp | sshockwave/Online-Judge-Solutions | 9d0bc7fd68c3d1f661622929c1cb3752601881d3 | [
"MIT"
] | 4 | 2017-11-21T08:17:42.000Z | 2020-07-28T12:09:52.000Z | Codeforces/Gym/101341/I.cpp | sshockwave/Online-Judge-Solutions | 9d0bc7fd68c3d1f661622929c1cb3752601881d3 | [
"MIT"
] | 4 | 2017-07-26T05:54:06.000Z | 2020-09-30T13:35:38.000Z | #include <iostream>
#include <cstdio>
#include <cstring>
#include <cassert>
#include <cstdlib>
#include <ctime>
using namespace std;
typedef long long lint;
inline bool is_num(char c){
return c>='0'&&c<='9';
}
inline int ni(){
int i=0;char c;
while(!is_num(c=getchar()));
while(i=i*10-'0'+c,is_num(c=getchar()));
re... | 16.686747 | 47 | 0.587726 | sshockwave |
87f46118ce55ac09a3318451fd6e67fddc14485b | 8,080 | cpp | C++ | interface/Ruler.cpp | HaikuArchives/SageBrush | d9b3945cb78c7070aa8b48d2e0bc6a2007fa3601 | [
"MIT"
] | null | null | null | interface/Ruler.cpp | HaikuArchives/SageBrush | d9b3945cb78c7070aa8b48d2e0bc6a2007fa3601 | [
"MIT"
] | null | null | null | interface/Ruler.cpp | HaikuArchives/SageBrush | d9b3945cb78c7070aa8b48d2e0bc6a2007fa3601 | [
"MIT"
] | null | null | null | /*
* Authors:
* Vladislav Burundukov <vlad.be@gmail.com>
*/
#include <Font.h>
#include <ScrollBar.h>
#include <Window.h>
#include <Debug.h>
#include <String.h>
#include <AppDefs.h>
#include <math.h>
#include <limits.h>
#include "Ruler.h"
static float V_RULER_WIDTH = B_V_SCROLL_BAR_WIDTH;
static float H_RULER_HEIGH... | 21.207349 | 94 | 0.650743 | HaikuArchives |
87f7c513bc111a2f86531cf261a13bae8fb8b249 | 3,182 | cpp | C++ | gse/src/v20191112/model/UpdateAssetRequest.cpp | suluner/tencentcloud-sdk-cpp | a56c73cc3f488c4d1e10755704107bb15c5e000d | [
"Apache-2.0"
] | 43 | 2019-08-14T08:14:12.000Z | 2022-03-30T12:35:09.000Z | gse/src/v20191112/model/UpdateAssetRequest.cpp | suluner/tencentcloud-sdk-cpp | a56c73cc3f488c4d1e10755704107bb15c5e000d | [
"Apache-2.0"
] | 12 | 2019-07-15T10:44:59.000Z | 2021-11-02T12:35:00.000Z | gse/src/v20191112/model/UpdateAssetRequest.cpp | suluner/tencentcloud-sdk-cpp | a56c73cc3f488c4d1e10755704107bb15c5e000d | [
"Apache-2.0"
] | 28 | 2019-07-12T09:06:22.000Z | 2022-03-30T08:04:18.000Z | /*
* Copyright (c) 2017-2019 THL A29 Limited, a Tencent company. 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
... | 26.516667 | 97 | 0.726587 | suluner |
87f96fa3b2362d91b331371727999b12e7b13c23 | 20,698 | hpp | C++ | foedus_code/foedus-core/include/foedus/error_stack.hpp | sam1016yu/cicada-exp-sigmod2017 | 64e582370076b2923d37b279d1c32730babc15f8 | [
"Apache-2.0"
] | null | null | null | foedus_code/foedus-core/include/foedus/error_stack.hpp | sam1016yu/cicada-exp-sigmod2017 | 64e582370076b2923d37b279d1c32730babc15f8 | [
"Apache-2.0"
] | null | null | null | foedus_code/foedus-core/include/foedus/error_stack.hpp | sam1016yu/cicada-exp-sigmod2017 | 64e582370076b2923d37b279d1c32730babc15f8 | [
"Apache-2.0"
] | null | null | null | /*
* Copyright (c) 2014-2015, Hewlett-Packard Development Company, LP.
* This program is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License as published by the Free
* Software Foundation; either version 2 of the License, or (at your option)
* any later versi... | 32.646688 | 99 | 0.701372 | sam1016yu |
e200a05204c9d2f3c3c26d55c350b4f7377a5899 | 1,757 | hpp | C++ | include/win/winconf.hpp | incoder1/libio | fbfd83fe31ca59a69670e5269f5847b2b4c6c553 | [
"BSL-1.0"
] | 14 | 2018-06-12T15:42:43.000Z | 2022-02-28T16:19:20.000Z | include/win/winconf.hpp | incoder1/libio | fbfd83fe31ca59a69670e5269f5847b2b4c6c553 | [
"BSL-1.0"
] | null | null | null | include/win/winconf.hpp | incoder1/libio | fbfd83fe31ca59a69670e5269f5847b2b4c6c553 | [
"BSL-1.0"
] | null | null | null | #ifndef __IO_WINCONG_HPP_INCLUDED__
#define __IO_WINCONG_HPP_INCLUDED__
#ifndef _WIN32_WINNT_VISTA
# define _WIN32_WINNT_VISTA 0x0600 // Windows Vista
#endif // _WIN32_WINNT_VISTA
// Check for the default value, for MinGW is Windows XP
#if defined(_WIN32_WINNT) && defined(IO_BUILD)
# if _WIN32_WINNT... | 24.746479 | 68 | 0.768924 | incoder1 |
e204c51b1312d68336244f24fd448316ae637eda | 1,240 | cpp | C++ | OpenGLFramework/OpenGLFramework/REnemyShotAnimCtrl.cpp | PlayeRom/SpaceShooter | c284ca6503800ed1e45fc8ceeaf9d98d38917f30 | [
"MIT"
] | null | null | null | OpenGLFramework/OpenGLFramework/REnemyShotAnimCtrl.cpp | PlayeRom/SpaceShooter | c284ca6503800ed1e45fc8ceeaf9d98d38917f30 | [
"MIT"
] | null | null | null | OpenGLFramework/OpenGLFramework/REnemyShotAnimCtrl.cpp | PlayeRom/SpaceShooter | c284ca6503800ed1e45fc8ceeaf9d98d38917f30 | [
"MIT"
] | null | null | null | #include "StdAfx.h"
#include "GameControl.h"
#include "REnemyShotAnimCtrl.h"
CREnemyShotAnimCtrl::CREnemyShotAnimCtrl()
{
for( GLint i = 0; i < MAX_ENEMY_SHIPS_ON_SCREEN; ++i ) {
SEnemyShotAnimCtrl sEnemyShotAnim;
sEnemyShotAnim.bIsFree = GL_TRUE;
sEnemyShotAnim.iIndex = CGameControl::GetInstance()->Ge... | 27.555556 | 97 | 0.696774 | PlayeRom |
e208cd0694d246d559f5ebb99aeccf944df9ccba | 1,321 | hpp | C++ | Flow3D/Flow3D/src/Flow3D/ImGui/ImGuiSpotLightEditor.hpp | florianvoelkers/Flow3D | 017d2f321f943dfecc360bec9fc6f17c77ffde68 | [
"MIT"
] | 2 | 2020-05-09T10:06:00.000Z | 2021-03-10T00:10:41.000Z | Flow3D/Flow3D/src/Flow3D/ImGui/ImGuiSpotLightEditor.hpp | florianvoelkers/Flow3D | 017d2f321f943dfecc360bec9fc6f17c77ffde68 | [
"MIT"
] | 1 | 2022-03-04T09:17:15.000Z | 2022-03-04T09:17:15.000Z | Flow3D/Flow3D/src/Flow3D/ImGui/ImGuiSpotLightEditor.hpp | florianvoelkers/Flow3D | 017d2f321f943dfecc360bec9fc6f17c77ffde68 | [
"MIT"
] | 2 | 2020-02-17T00:43:03.000Z | 2020-11-26T11:55:19.000Z | #pragma once
#include <imgui/imgui.h>
#include "Flow3D/Components/Lighting.hpp"
#include "ImGuiBaseLightEditor.hpp"
#include "ImGuiAttenuationEditor.hpp"
struct SpotLightEditor
{
SpotLightEditor() {}
void Draw(SpotLight* sl)
{
if (sl != nullptr)
{
Vec3 direction = sl->GetDirection();
float x, y, z;
... | 20.323077 | 77 | 0.629069 | florianvoelkers |
e20f073b943b2ff3bdc9f1d2b6d6d379f6ff6913 | 24,591 | cpp | C++ | lugre/src/lugre_fifo_L.cpp | ghoulsblade/vegaogre | 2ece3b799f9bd667f081d47c1a0f3ef5e78d3e0f | [
"MIT"
] | 1 | 2020-10-18T14:33:05.000Z | 2020-10-18T14:33:05.000Z | lugre/src/lugre_fifo_L.cpp | ghoulsblade/vegaogre | 2ece3b799f9bd667f081d47c1a0f3ef5e78d3e0f | [
"MIT"
] | null | null | null | lugre/src/lugre_fifo_L.cpp | ghoulsblade/vegaogre | 2ece3b799f9bd667f081d47c1a0f3ef5e78d3e0f | [
"MIT"
] | null | null | null | #include "lugre_prefix.h"
#include "lugre_scripting.h"
#include "lugre_fifo.h"
#include "lugre_luabind.h"
#include "lugre_luabind_direct.h"
extern "C" {
#include "lua.h"
#include "lauxlib.h"
#include "lualib.h"
}
using namespace Lugre;
/// for swig binding (bullet-heightfield data)
void* RobLuaFIFOToVoidPtr (lua... | 40.37931 | 182 | 0.690009 | ghoulsblade |
e20f0a795ebd09aba91e298c0d1339c26cb2f356 | 8,679 | cc | C++ | TC-programs/DFT-CSF/neu/ops_cis.cc | sklinkusch/scripts | a717cadb559db823a0d5172545661d5afa2715e7 | [
"MIT"
] | null | null | null | TC-programs/DFT-CSF/neu/ops_cis.cc | sklinkusch/scripts | a717cadb559db823a0d5172545661d5afa2715e7 | [
"MIT"
] | null | null | null | TC-programs/DFT-CSF/neu/ops_cis.cc | sklinkusch/scripts | a717cadb559db823a0d5172545661d5afa2715e7 | [
"MIT"
] | null | null | null | /********************************************************************************
* CIS3(D) Program suite *
* *
* file: ops_cis.cc ... | 43.179104 | 110 | 0.4595 | sklinkusch |
e21257e7026ef233cb26781ccab01437c23f77a5 | 2,083 | hpp | C++ | zen/parts/data/parts_data_journal.hpp | shauncroton/sg14 | 3e4932375ac0bcec3b38b8a7686589c888722830 | [
"Apache-2.0"
] | 1 | 2016-12-10T07:21:17.000Z | 2016-12-10T07:21:17.000Z | zen/parts/data/parts_data_journal.hpp | shauncroton/sg14 | 3e4932375ac0bcec3b38b8a7686589c888722830 | [
"Apache-2.0"
] | null | null | null | zen/parts/data/parts_data_journal.hpp | shauncroton/sg14 | 3e4932375ac0bcec3b38b8a7686589c888722830 | [
"Apache-2.0"
] | null | null | null | #ifndef __ZEN__PARTS_DATA_JOURNAL__HPP
#define __ZEN__PARTS_DATA_JOURNAL__HPP
///
///////////////////////////////////////////////////////////////////////////////////////////////////
///
#include <zen/parts/parts_data.h>
#include <unordered_map>
///
/////////////////////////////////////////////////////////////////////... | 19.110092 | 99 | 0.554969 | shauncroton |
e2150d9f5767ed785226206f2da2f3bc18a95dcb | 6,840 | cpp | C++ | source/compression/brdecompresslbmrle.cpp | Olde-Skuul/burgerlib | 80848a4dfa17c5c05095ecea14a9bd87f86dfb9d | [
"Zlib"
] | 115 | 2015-01-18T17:29:30.000Z | 2022-01-30T04:31:48.000Z | source/compression/brdecompresslbmrle.cpp | Olde-Skuul/burgerlib | 80848a4dfa17c5c05095ecea14a9bd87f86dfb9d | [
"Zlib"
] | 9 | 2015-01-22T04:53:38.000Z | 2015-01-31T13:52:40.000Z | source/compression/brdecompresslbmrle.cpp | Olde-Skuul/burgerlib | 80848a4dfa17c5c05095ecea14a9bd87f86dfb9d | [
"Zlib"
] | 9 | 2015-01-23T20:06:46.000Z | 2020-05-20T16:06:00.000Z | /***************************************
Decompression manager version of RLE
Copyright (c) 1995-2017 by Rebecca Ann Heineman <becky@burgerbecky.com>
It is released under an MIT Open Source license. Please see LICENSE for
license details. Yes, you can use it in a commercial title without paying
a... | 28.032787 | 148 | 0.653216 | Olde-Skuul |
e21af7ac37edd76ee9a4f0156bbfd14a4aed90d6 | 64 | cpp | C++ | RFGR Extended Camera DLL/Functions.cpp | Moneyl/RFGR-Extended-Camera | a68fa3a531f0be71eea0416bdd390bd1b1fa560e | [
"MIT"
] | 4 | 2020-05-25T01:42:56.000Z | 2021-01-16T19:46:50.000Z | RFGR Extended Camera DLL/Functions.cpp | Moneyl/RFGR-Extended-Camera | a68fa3a531f0be71eea0416bdd390bd1b1fa560e | [
"MIT"
] | null | null | null | RFGR Extended Camera DLL/Functions.cpp | Moneyl/RFGR-Extended-Camera | a68fa3a531f0be71eea0416bdd390bd1b1fa560e | [
"MIT"
] | null | null | null |
#include "Functions.hpp"
F_HideHud HideHud;
F_ShowFog ShowFog; | 12.8 | 24 | 0.796875 | Moneyl |
e21c300ed6b1baf03ecd2ad9a672bc905393cbb2 | 1,054 | cpp | C++ | q53-maximum-subarray.cpp | risyomei/leetcode | bd0eba2d31eca48c182fc328fab02aac61c15366 | [
"MIT"
] | null | null | null | q53-maximum-subarray.cpp | risyomei/leetcode | bd0eba2d31eca48c182fc328fab02aac61c15366 | [
"MIT"
] | null | null | null | q53-maximum-subarray.cpp | risyomei/leetcode | bd0eba2d31eca48c182fc328fab02aac61c15366 | [
"MIT"
] | null | null | null | /*
ANSWER: DynamicProgramming
input: nums [-2,1,-3,4,-1,2,1,-5,4]
|
i
Max_array: [-2,1,-2,4, 3,5,6, 1,5]
given the Max_sub_array( [nums[0] .... nums[n-1]] ) and nums[n],
the Max_sub_array( [nums[0], .... , nums[n-1], nums[n]] ) can be calculated as follow:
if( Max_s... | 23.422222 | 108 | 0.442125 | risyomei |
e21c86e8f1d45b80365eba3b073ff59968cc79f7 | 352 | cpp | C++ | src/scene/battle/battle.cpp | selcia-eremeev/cake | 855886acd7595d12780cb95a0bcb8a6fcee09ac6 | [
"MIT"
] | 1 | 2020-11-28T21:07:24.000Z | 2020-11-28T21:07:24.000Z | src/scene/battle/battle.cpp | selcia-eremeev/cake | 855886acd7595d12780cb95a0bcb8a6fcee09ac6 | [
"MIT"
] | 2 | 2020-11-28T20:57:01.000Z | 2020-11-29T21:00:43.000Z | src/scene/battle/battle.cpp | selcia-eremeev/cake | 855886acd7595d12780cb95a0bcb8a6fcee09ac6 | [
"MIT"
] | null | null | null | #pragma once
#include "app/app.hpp"
#include "scene/battle/battle.hpp"
#include "scene/battle/user_interface.hpp"
int Battle::Initialize(void) {
UI->Initialize();
return 0;
}
int Battle::Update(void) {
UI->Update();
return 0;
}
int Battle::Render(void) {
UI->Render();
return 0;
}
int Battle::Terminate(void) ... | 14.08 | 42 | 0.676136 | selcia-eremeev |
e2255d4cc813bac9438aa29e1e2a954b97e64e39 | 1,553 | cpp | C++ | src/AnimationControllerFactory.cpp | foxostro/CheeseTesseract | 737ebbd19cee8f5a196bf39a11ca793c561e56cb | [
"MIT"
] | 1 | 2016-05-17T03:36:52.000Z | 2016-05-17T03:36:52.000Z | src/AnimationControllerFactory.cpp | foxostro/CheeseTesseract | 737ebbd19cee8f5a196bf39a11ca793c561e56cb | [
"MIT"
] | null | null | null | src/AnimationControllerFactory.cpp | foxostro/CheeseTesseract | 737ebbd19cee8f5a196bf39a11ca793c561e56cb | [
"MIT"
] | null | null | null | #include "stdafx.h"
#include "ModelLoader.h"
#include "ModelLoaderMD2.h"
#include "ModelLoaderMD3.h"
#include "ModelLoaderOBJ.h"
#include "AnimationControllerFactory.h"
AnimationControllerFactory::AnimationControllerFactory(TextureFactory &_textureFactory)
: textureFactory(_textureFactory) {
loader[".objxml"] = sha... | 26.775862 | 87 | 0.734707 | foxostro |
e226bd0e16313c8900cf5cb73c62caa277e6ab2a | 1,033 | cpp | C++ | toi11segitiga.cpp | CaQtiml/TOI-the-SERIES | 3ef42eab879a4624f593e44511036ea9c9c24450 | [
"MIT"
] | null | null | null | toi11segitiga.cpp | CaQtiml/TOI-the-SERIES | 3ef42eab879a4624f593e44511036ea9c9c24450 | [
"MIT"
] | null | null | null | toi11segitiga.cpp | CaQtiml/TOI-the-SERIES | 3ef42eab879a4624f593e44511036ea9c9c24450 | [
"MIT"
] | null | null | null | #include "bits/stdc++.h"
using namespace std;
bool dp[3][256][256];
char arr[256];
int main()
{
int TT=20;
while(TT--)
{
int n;
scanf("%d",&n);
scanf("%s",arr+1);
memset(dp,0,sizeof dp); //don't forget to clear array before reuse
for(int len=1;len<=n;len++)
{
for(int i=1,j=len ; j<=n ;... | 25.825 | 70 | 0.429816 | CaQtiml |
e22779d2a35c478ace068520ebad507837d4e795 | 1,946 | cpp | C++ | Libraries/Macaronlib/Bitmap.cpp | vpachkov/MacaronOS | e2572761f0d73a435d5660eb88d4dc96c944a349 | [
"MIT"
] | 21 | 2021-08-22T19:06:54.000Z | 2022-03-31T12:44:30.000Z | Libraries/Macaronlib/Bitmap.cpp | Plunkerusr/WisteriaOS | 14f853cb8fdd6b958dd94ab24e5f19ac0268a4f6 | [
"MIT"
] | 1 | 2021-09-01T22:55:59.000Z | 2021-09-08T20:52:09.000Z | Libraries/Macaronlib/Bitmap.cpp | Plunkerusr/WisteriaOS | 14f853cb8fdd6b958dd94ab24e5f19ac0268a4f6 | [
"MIT"
] | null | null | null | #include <Bitmap.hpp>
#include <Common.hpp>
#define BITMAP_CHUNK_SIZE 32
#define BITMAP_CHUNK_COUNT(sz) (sz / BITMAP_CHUNK_SIZE + ((sz % BITMAP_CHUNK_SIZE > 0) ? 1 : 0))
Bitmap::Bitmap(uint32_t location, size_t size)
: m_array((uint32_t*)location)
, m_size(size)
, m_memory_size(BITMAP_CHUNK_COUNT(size) * ... | 22.113636 | 96 | 0.633094 | vpachkov |
e230e23df2436e1514f851bf64982da03fa60b52 | 1,234 | hpp | C++ | tutorial_composition/include/tutorial_composition/publisher_node.hpp | ryo4432/ros2_tutorial_collection | 4e7ed30e35009f07bd219c762d68b4b8022d4d9d | [
"Apache-2.0"
] | null | null | null | tutorial_composition/include/tutorial_composition/publisher_node.hpp | ryo4432/ros2_tutorial_collection | 4e7ed30e35009f07bd219c762d68b4b8022d4d9d | [
"Apache-2.0"
] | null | null | null | tutorial_composition/include/tutorial_composition/publisher_node.hpp | ryo4432/ros2_tutorial_collection | 4e7ed30e35009f07bd219c762d68b4b8022d4d9d | [
"Apache-2.0"
] | null | null | null | /*
# Copyright 2019 Open Source Robotics Foundation, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable ... | 30.097561 | 74 | 0.785251 | ryo4432 |
e2315a8763ef0a579b9bac0367c989303c50c044 | 1,150 | hpp | C++ | vcl/shape/mesh/mesh_drawable/mesh_drawable_gpu_data/mesh_drawable_gpu_data.hpp | victor-radermecker/Island-Project | 3284cea0ec5b143bfe410b0999caa06e79498df5 | [
"MIT"
] | 3 | 2020-03-25T09:56:46.000Z | 2020-05-06T09:28:35.000Z | vcl/shape/mesh/mesh_drawable/mesh_drawable_gpu_data/mesh_drawable_gpu_data.hpp | victor-radermecker/Island-Project | 3284cea0ec5b143bfe410b0999caa06e79498df5 | [
"MIT"
] | 1 | 2020-04-22T09:22:18.000Z | 2020-04-30T10:13:24.000Z | vcl/shape/mesh/mesh_drawable/mesh_drawable_gpu_data/mesh_drawable_gpu_data.hpp | victor-radermecker/Island-Project | 3284cea0ec5b143bfe410b0999caa06e79498df5 | [
"MIT"
] | 5 | 2020-03-25T09:53:09.000Z | 2020-05-20T08:16:07.000Z | #pragma once
#include "vcl/wrapper/glad/glad.hpp"
#include "../../mesh_structure/mesh.hpp"
namespace vcl
{
struct mesh_drawable_gpu_data {
mesh_drawable_gpu_data();
mesh_drawable_gpu_data(const mesh& mesh_cpu);
/** Clear buffers */
void clear();
/** Dynamically update the VBO with the new ve... | 26.744186 | 100 | 0.693913 | victor-radermecker |
e2361623088870203b7037486bb7c172cb073865 | 1,276 | hpp | C++ | Source/AllProjects/CoreTech/CQCIR/CQCIR_.hpp | MarkStega/CQC | c1d0e01ec2abcaa5b8eb1899b9f0522fecee4b07 | [
"MIT"
] | 51 | 2020-12-26T18:17:16.000Z | 2022-03-15T04:29:35.000Z | Source/AllProjects/CoreTech/CQCIR/CQCIR_.hpp | MarkStega/CQC | c1d0e01ec2abcaa5b8eb1899b9f0522fecee4b07 | [
"MIT"
] | null | null | null | Source/AllProjects/CoreTech/CQCIR/CQCIR_.hpp | MarkStega/CQC | c1d0e01ec2abcaa5b8eb1899b9f0522fecee4b07 | [
"MIT"
] | 4 | 2020-12-28T07:24:39.000Z | 2021-12-29T12:09:37.000Z | //
// FILE NAME: CQCIR_.hpp
//
// AUTHOR: Dean Roddey
//
// CREATED: 06/29/2003
//
// COPYRIGHT: Charmed Quark Systems, Ltd @ 2020
//
// This software is copyrighted by 'Charmed Quark Systems, Ltd' and
// the author (Dean Roddey.) It is licensed under the MIT Open Source
// license:
//
// https://opensource.org/l... | 25.52 | 78 | 0.4279 | MarkStega |
e23c643c9899639658b31e059cd3823f651014a9 | 193 | hpp | C++ | Engine/Src/Runtime/Core/Public/Core/Memory/IAllocator.hpp | Septus10/Fade-Engine | 285a2a1cf14a4e9c3eb8f6d30785d1239cef10b6 | [
"MIT"
] | null | null | null | Engine/Src/Runtime/Core/Public/Core/Memory/IAllocator.hpp | Septus10/Fade-Engine | 285a2a1cf14a4e9c3eb8f6d30785d1239cef10b6 | [
"MIT"
] | null | null | null | Engine/Src/Runtime/Core/Public/Core/Memory/IAllocator.hpp | Septus10/Fade-Engine | 285a2a1cf14a4e9c3eb8f6d30785d1239cef10b6 | [
"MIT"
] | null | null | null | #pragma once
#include <Core/Definitions.hpp>
namespace Fade {
class IAllocator
{
public:
virtual void* Allocate(usize a_Size) = 0;
virtual void Free(void* a_Block, usize a_Size) = 0;
};
} | 13.785714 | 52 | 0.715026 | Septus10 |
e23d585227fa11d8ab7a58a46f2e1a08a5b25a74 | 43,763 | cpp | C++ | src/plugProjectEbisawaU/ebiScreenOmake.cpp | projectPiki/pikmin2 | a431d992acde856d092889a515ecca0e07a3ea7c | [
"Unlicense"
] | 33 | 2021-12-08T11:10:59.000Z | 2022-03-26T19:59:37.000Z | src/plugProjectEbisawaU/ebiScreenOmake.cpp | projectPiki/pikmin2 | a431d992acde856d092889a515ecca0e07a3ea7c | [
"Unlicense"
] | 6 | 2021-12-22T17:54:31.000Z | 2022-01-07T21:43:18.000Z | src/plugProjectEbisawaU/ebiScreenOmake.cpp | projectPiki/pikmin2 | a431d992acde856d092889a515ecca0e07a3ea7c | [
"Unlicense"
] | 2 | 2022-01-04T06:00:49.000Z | 2022-01-26T07:27:28.000Z | #include "ebi/Omake.h"
#include "ebi/E2DCallBack.h"
#include "types.h"
/*
Generated from dpostproc
.section .rodata # 0x804732E0 - 0x8049E220
.global lbl_80497A18
lbl_80497A18:
.asciz "ebiScreenOmake"
.skip 1
.asciz "Screen_newScreen_of_TOmake"
.skip 1
.asciz "... | 21.783474 | 99 | 0.58979 | projectPiki |
e23d83514b34731eb23d3866f4cc9e484e32bb96 | 3,498 | cpp | C++ | src/Xi-Http/tests/UT_Client.cpp | ElSamaritan/blockchain-OLD | ca3422c8873613226db99b7e6735c5ea1fac9f1a | [
"Apache-2.0"
] | null | null | null | src/Xi-Http/tests/UT_Client.cpp | ElSamaritan/blockchain-OLD | ca3422c8873613226db99b7e6735c5ea1fac9f1a | [
"Apache-2.0"
] | null | null | null | src/Xi-Http/tests/UT_Client.cpp | ElSamaritan/blockchain-OLD | ca3422c8873613226db99b7e6735c5ea1fac9f1a | [
"Apache-2.0"
] | null | null | null | /* ============================================================================================== *
* *
* Galaxia Blockchain *
* ... | 49.267606 | 100 | 0.424814 | ElSamaritan |
e241d8a9b5ab40951c82924446a18b0c60b67888 | 1,698 | hpp | C++ | external/oqpi/include/oqpi/scheduling/group_context.hpp | ehei1/orbit | f990a7f9abb7d330e93d0d20018a62869890f04e | [
"BSD-2-Clause"
] | 44 | 2017-01-07T18:33:32.000Z | 2021-01-28T03:30:27.000Z | external/oqpi/include/oqpi/scheduling/group_context.hpp | ehei1/orbit | f990a7f9abb7d330e93d0d20018a62869890f04e | [
"BSD-2-Clause"
] | 3 | 2022-02-15T02:46:06.000Z | 2022-02-28T01:28:39.000Z | external/oqpi/include/oqpi/scheduling/group_context.hpp | ehei1/orbit | f990a7f9abb7d330e93d0d20018a62869890f04e | [
"BSD-2-Clause"
] | 6 | 2017-01-14T19:04:50.000Z | 2021-04-18T17:42:23.000Z | #pragma once
#include "oqpi/error_handling.hpp"
#include "oqpi/scheduling/context_container.hpp"
namespace oqpi {
//----------------------------------------------------------------------------------------------
class task_group_base;
class task_handle;
//---------------------------------------------... | 35.375 | 100 | 0.380448 | ehei1 |
e246ace9699a73cf79eab69988b5c54f39776f4b | 936 | cpp | C++ | bzoj/4010.cpp | swwind/code | 25c4c5ca2f8578ba792b44cbdf44286d39dfb7e0 | [
"WTFPL"
] | 3 | 2017-09-17T09:12:50.000Z | 2018-04-06T01:18:17.000Z | bzoj/4010.cpp | swwind/code | 25c4c5ca2f8578ba792b44cbdf44286d39dfb7e0 | [
"WTFPL"
] | null | null | null | bzoj/4010.cpp | swwind/code | 25c4c5ca2f8578ba792b44cbdf44286d39dfb7e0 | [
"WTFPL"
] | null | null | null | #include <bits/stdc++.h>
#define ll long long
#define N 100050
using namespace std;
int T,n,m,cnt,top,x,y;
int last[N],d[N],ans[N];
priority_queue<int,vector<int> > q;
struct edge{
int to,next;
}e[N];
void insert(int u,int v){
e[++cnt].to=v;
e[cnt].next=last[u];
last[u]=cnt;
}
void dfs(int x){
q.pop();
... | 17.660377 | 36 | 0.5 | swwind |
f46e6986f073ca093ec5dc67db7c84d66e9d1697 | 3,229 | cpp | C++ | regression/esbmc-cpp/cpp/ch14_8/clientData.cpp | shmarovfedor/esbmc | 3226a3d68b009d44b9535a993ac0f25e1a1fbedd | [
"BSD-3-Clause"
] | 143 | 2015-06-22T12:30:01.000Z | 2022-03-21T08:41:17.000Z | regression/esbmc-cpp/cpp/ch14_8/clientData.cpp | shmarovfedor/esbmc | 3226a3d68b009d44b9535a993ac0f25e1a1fbedd | [
"BSD-3-Clause"
] | 542 | 2017-06-02T13:46:26.000Z | 2022-03-31T16:35:17.000Z | regression/esbmc-cpp/cpp/ch14_8/clientData.cpp | shmarovfedor/esbmc | 3226a3d68b009d44b9535a993ac0f25e1a1fbedd | [
"BSD-3-Clause"
] | 81 | 2015-10-21T22:21:59.000Z | 2022-03-24T14:07:55.000Z | // Fig. 14.11: ClientData.cpp
// Class ClientData stores customer's credit information.
#include <iostream>
#include <string>
using std::string;
#include <cstring>
#include "clientData.h"
// default ClientData constructor
ClientData::ClientData( int accountNumberValue,
string lastNameValue, string firstNameValue,... | 30.462264 | 75 | 0.657169 | shmarovfedor |
f46f0b8457e878eca921f1eff67af60417826eff | 2,313 | hpp | C++ | src/vocabulary.hpp | MagicLemma/anzu-one | 7c8626f96dbc0a026b9844d4cd0f65c49ab3ce39 | [
"MIT"
] | 2 | 2022-01-19T14:12:06.000Z | 2022-01-29T02:32:21.000Z | src/vocabulary.hpp | MagicLemma/anzu-one | 7c8626f96dbc0a026b9844d4cd0f65c49ab3ce39 | [
"MIT"
] | null | null | null | src/vocabulary.hpp | MagicLemma/anzu-one | 7c8626f96dbc0a026b9844d4cd0f65c49ab3ce39 | [
"MIT"
] | 1 | 2022-01-19T14:51:07.000Z | 2022-01-19T14:51:07.000Z | #pragma once
#include <string_view>
namespace anzu {
using sv = std::string_view;
// Keywords
constexpr auto tk_break = sv{"break"};
constexpr auto tk_continue = sv{"continue"};
constexpr auto tk_else = sv{"else"};
constexpr auto tk_false = sv{"false"};
constexpr auto tk_for = sv{"for"};
constexp... | 33.521739 | 45 | 0.609166 | MagicLemma |
f472f1d253b24498621500eadea3781b8a7ac7c1 | 176 | cpp | C++ | AIZU Online Judge/ITP1_1_C - Rectangle.cpp | akash246/Competitive-Programming-Solutions | 68db69ba8a771a433e5338bc4e837a02d3f89823 | [
"MIT"
] | 28 | 2017-11-08T11:52:11.000Z | 2021-07-16T06:30:02.000Z | AIZU Online Judge/ITP1_1_C - Rectangle.cpp | akash246/Competitive-Programming-Solutions | 68db69ba8a771a433e5338bc4e837a02d3f89823 | [
"MIT"
] | null | null | null | AIZU Online Judge/ITP1_1_C - Rectangle.cpp | akash246/Competitive-Programming-Solutions | 68db69ba8a771a433e5338bc4e837a02d3f89823 | [
"MIT"
] | 30 | 2017-09-01T09:14:27.000Z | 2021-04-12T12:08:56.000Z | #include <iostream>
#include "stdio.h"
using namespace std;
void solve() {
}
int main() {
int l, w;
cin>>l>>w;
cout<< l*w << " " << l*2 + w*2 <<endl;
return 0;
}
| 9.777778 | 40 | 0.522727 | akash246 |
f47c205fd6f407a0452a87c39e777d0d5e044f08 | 2,358 | cpp | C++ | src/src/Entity.cpp | borbrudar/Arcade_16 | b3982df84c43839fb11881750827ea055d39d9a3 | [
"MIT"
] | null | null | null | src/src/Entity.cpp | borbrudar/Arcade_16 | b3982df84c43839fb11881750827ea055d39d9a3 | [
"MIT"
] | null | null | null | src/src/Entity.cpp | borbrudar/Arcade_16 | b3982df84c43839fb11881750827ea055d39d9a3 | [
"MIT"
] | null | null | null | #include "Entity.h"
Entity::Entity(Texture& t, Vector2f size, int maxSwap, Vector2f pos, Vector2f tSize, int type, bool bigMario):
type(type),
pos(pos),
oldPos(pos),
bigMario(bigMario)
{
anim.setup(t, size, tSize, maxSwap);
anim.animation.setPosition(pos);
oldPos = anim.animation.getPosition();
anim.delay = 0... | 27.103448 | 123 | 0.651399 | borbrudar |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.