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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
37d0860084ea1ca917b639ba80aae687f47d33d9 | 614 | hpp | C++ | worker/scripting_engine/common_state_setup.hpp | 5cript/minide2 | 3464d84da3d6029450518de43ab15cecc9de75c7 | [
"MIT"
] | null | null | null | worker/scripting_engine/common_state_setup.hpp | 5cript/minide2 | 3464d84da3d6029450518de43ab15cecc9de75c7 | [
"MIT"
] | null | null | null | worker/scripting_engine/common_state_setup.hpp | 5cript/minide2 | 3464d84da3d6029450518de43ab15cecc9de75c7 | [
"MIT"
] | 1 | 2020-08-27T17:00:54.000Z | 2020-08-27T17:00:54.000Z | #pragma once
#include "../filesystem/filesystem.hpp"
#include <sol/sol.hpp>
#include <unordered_map>
namespace MinIDE::Scripting
{
/**
* @param state Lua state
* @param enableIo Load lua IO libraries
* @param enableOS Load lua OS libraries (DONT, its not useful anyway and a security... | 25.583333 | 96 | 0.644951 | 5cript |
37d3c09fd0adf2dc4254814ce80e17c8af5abf60 | 8,789 | cpp | C++ | src/mars_wrapper_gps.cpp | eallak/mars_ros | 8858ec1c527a2dc308410486a37669fb17bfc7e6 | [
"BSD-2-Clause"
] | 35 | 2021-07-03T12:21:00.000Z | 2022-03-26T05:44:01.000Z | src/mars_wrapper_gps.cpp | eallak/mars_ros | 8858ec1c527a2dc308410486a37669fb17bfc7e6 | [
"BSD-2-Clause"
] | null | null | null | src/mars_wrapper_gps.cpp | eallak/mars_ros | 8858ec1c527a2dc308410486a37669fb17bfc7e6 | [
"BSD-2-Clause"
] | 6 | 2021-09-11T01:59:42.000Z | 2022-03-29T14:00:45.000Z | // Copyright (C) 2021 Christian Brommer, Control of Networked Systems, University of Klagenfurt, Austria.
//
// All rights reserved.
//
// This software is licensed under the terms of the BSD-2-Clause-License with
// no commercial use allowed, the full terms of which are made available
// in the LICENSE file. No licens... | 37.241525 | 120 | 0.760724 | eallak |
37d5dc08ad7e07286a2cfe7f86ff1b792bee50c0 | 2,785 | cc | C++ | A1/Main/BufferMgr/source/MyDB_Page.cc | Hanyi-Wang-DarkStardust/Database-Implementation | fcbf529691482fcece44fa24adc16c86fc012822 | [
"Apache-2.0"
] | null | null | null | A1/Main/BufferMgr/source/MyDB_Page.cc | Hanyi-Wang-DarkStardust/Database-Implementation | fcbf529691482fcece44fa24adc16c86fc012822 | [
"Apache-2.0"
] | null | null | null | A1/Main/BufferMgr/source/MyDB_Page.cc | Hanyi-Wang-DarkStardust/Database-Implementation | fcbf529691482fcece44fa24adc16c86fc012822 | [
"Apache-2.0"
] | null | null | null | //
// Created by Dingjia Li on 1/24/20.
//
#ifndef PAGE_C
#define PAGE_C
#include "MyDB_BufferManager.h"
#include "MyDB_Page.h"
#include <fcntl.h>
#include <unistd.h>
using namespace std;
MyDB_Page :: MyDB_Page(MyDB_TablePtr tablePtr, long id, size_t pageSize, string tempFile,
MyDB_BufferManager *bufferMgr... | 22.28 | 105 | 0.636266 | Hanyi-Wang-DarkStardust |
37d615cc85caee928b590ef6da5fc70ee0eb293f | 3,751 | cc | C++ | example/Mcached/mraft/floyd/src/floyd_options.cc | fasShare/moxie-simple | 9b21320f868ca1fe05ca5d39e70eb053d31155ee | [
"MIT"
] | 1 | 2018-09-27T09:10:11.000Z | 2018-09-27T09:10:11.000Z | example/Mcached/mraft/floyd/src/floyd_options.cc | fasShare/moxie-simple | 9b21320f868ca1fe05ca5d39e70eb053d31155ee | [
"MIT"
] | 1 | 2018-09-16T07:17:29.000Z | 2018-09-16T07:17:29.000Z | example/Mcached/mraft/floyd/src/floyd_options.cc | fasShare/moxie-simple | 9b21320f868ca1fe05ca5d39e70eb053d31155ee | [
"MIT"
] | null | null | null | // Copyright (c) 2015-present, Qihoo, Inc. All rights reserved.
// This source code is licensed under the BSD-style license found in the
// LICENSE file in the root directory of this source tree. An additional grant
// of patent rights can be found in the PATENTS file in the same directory.
#include "floyd/include/fl... | 31.788136 | 105 | 0.57558 | fasShare |
37d6e09476321cfaf01829906e32e680714d20d6 | 2,249 | hpp | C++ | toyfs.hpp | capdevc/toyfs | df16ec40183b1f9a742509db4bbd01aa09a4c787 | [
"MIT"
] | 17 | 2015-01-25T02:23:53.000Z | 2022-02-13T07:24:26.000Z | toyfs.hpp | capdevc/toyfs | df16ec40183b1f9a742509db4bbd01aa09a4c787 | [
"MIT"
] | null | null | null | toyfs.hpp | capdevc/toyfs | df16ec40183b1f9a742509db4bbd01aa09a4c787 | [
"MIT"
] | 3 | 2015-07-27T01:44:58.000Z | 2020-08-29T09:40:35.000Z | #ifndef _TOYFS_H_
#define _TOYFS_H_
#include <fstream>
#include <list>
#include <map>
#include <string>
#include <vector>
#include "inode.hpp"
#include "direntry.hpp"
#include "freenode.hpp"
class ToyFS {
enum Mode {R, W, RW};
struct Descriptor {
Mode mode;
uint byte_pos;
std::weak_ptr<Inode> inode;... | 28.1125 | 77 | 0.693197 | capdevc |
37d861fe8233c3740dc4c02794f51e06edcf17d8 | 2,524 | cpp | C++ | core/src/Rendering/ShaderGraph/Nodes/Multiply.cpp | hhsaez/crimild | e3efee09489939338df55e8af9a1f9ddc01301f7 | [
"BSD-3-Clause"
] | 36 | 2015-03-12T10:42:36.000Z | 2022-01-12T04:20:40.000Z | core/src/Rendering/ShaderGraph/Nodes/Multiply.cpp | hhsaez/crimild | e3efee09489939338df55e8af9a1f9ddc01301f7 | [
"BSD-3-Clause"
] | 1 | 2015-12-17T00:25:43.000Z | 2016-02-20T12:00:57.000Z | core/src/Rendering/ShaderGraph/Nodes/Multiply.cpp | hhsaez/crimild | e3efee09489939338df55e8af9a1f9ddc01301f7 | [
"BSD-3-Clause"
] | 6 | 2017-06-17T07:57:53.000Z | 2019-04-09T21:11:24.000Z | /*
* Copyright (c) 2002-present, H. Hernan Saez
* 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 ... | 34.108108 | 101 | 0.72504 | hhsaez |
37dda7a839ce4526ba23307d6dc7584505841627 | 1,622 | cpp | C++ | Synergy Editor TGC/Synergy Editor/ImageChild.cpp | domydev/Dark-Basic-Pro | 237fd8d859782cb27b9d5994f3c34bc5372b6c04 | [
"MIT"
] | 231 | 2018-01-28T00:06:56.000Z | 2022-03-31T21:39:56.000Z | Synergy Editor TGC/Synergy Editor/ImageChild.cpp | domydev/Dark-Basic-Pro | 237fd8d859782cb27b9d5994f3c34bc5372b6c04 | [
"MIT"
] | 9 | 2016-02-10T10:46:16.000Z | 2017-12-06T17:27:51.000Z | Synergy Editor TGC/Synergy Editor/ImageChild.cpp | domydev/Dark-Basic-Pro | 237fd8d859782cb27b9d5994f3c34bc5372b6c04 | [
"MIT"
] | 66 | 2018-01-28T21:54:52.000Z | 2022-02-16T22:50:57.000Z | #include "StdAfx.h"
#include "ImageChild.h"
#include "winuser.h"
#include "Resource.h"
BEGIN_MESSAGE_MAP(ImageChild, CWnd)
ON_WM_PAINT()
ON_WM_KEYDOWN()
ON_WM_CREATE()
ON_WM_SIZE()
END_MESSAGE_MAP()
void ImageChild::SetPicture(CString m_Filename)
{
m_Bitmap.SetFilename(m_Filename, false);
CRect myRect;
GetC... | 20.531646 | 109 | 0.731813 | domydev |
37e2c43506203738217e60af6ac59787f5ea7e1b | 979 | cpp | C++ | core/matrixscatterplotviewwidget.cpp | YimingYAN/qvisualisation | 0f64dfb0bb37d625ed7a2b5148529021c4dfcf2e | [
"MIT"
] | 25 | 2016-11-06T22:03:23.000Z | 2022-03-10T03:13:56.000Z | core/matrixscatterplotviewwidget.cpp | warunanc/qvisualisation | 0f64dfb0bb37d625ed7a2b5148529021c4dfcf2e | [
"MIT"
] | 2 | 2017-08-03T07:01:28.000Z | 2018-03-29T08:21:40.000Z | core/matrixscatterplotviewwidget.cpp | warunanc/qvisualisation | 0f64dfb0bb37d625ed7a2b5148529021c4dfcf2e | [
"MIT"
] | 12 | 2017-01-26T20:01:54.000Z | 2022-01-18T03:41:51.000Z | /****************************************************************************
** This software is released under the MIT license
** Copyright (C) 2016 Yiming Yan
****************************************************************************/
#include <core/matrixscatterplotviewwidget.h>
#include <core/visualisationdatamo... | 31.580645 | 77 | 0.650664 | YimingYAN |
37e7ee28dd81e37103a694d3741a44e947dc9c86 | 3,912 | cpp | C++ | RLSimion/Lib/parameters.cpp | utercero/SimionZoo | 1fa570ae88f5d7e88e13a67ec27cda2de820ffee | [
"Zlib"
] | 30 | 2019-02-20T19:33:15.000Z | 2020-03-26T13:46:51.000Z | RLSimion/Lib/parameters.cpp | utercero/SimionZoo | 1fa570ae88f5d7e88e13a67ec27cda2de820ffee | [
"Zlib"
] | 52 | 2018-02-28T17:16:37.000Z | 2019-02-15T18:26:21.000Z | RLSimion/Lib/parameters.cpp | borjafdezgauna/SimionZoo | 42dd3106d60077bea7e6b64b9f25c3268adc3be8 | [
"Zlib"
] | 25 | 2019-02-20T19:30:52.000Z | 2022-01-01T03:15:21.000Z | /*
SimionZoo: A framework for online model-free Reinforcement Learning on continuous
control problems
Copyright (c) 2016 SimionSoft. https://github.com/simionsoft
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to ... | 32.065574 | 96 | 0.758436 | utercero |
37ef7c9dcb9a351f74b2e2a49dda28f65c7500a8 | 1,012 | cpp | C++ | Net/Thinking/Exclusive/example/client/example_client.cpp | huangshihuai/Blog | 47d88a6bfd21838410153ed6c0f3c23f6c753d37 | [
"Apache-2.0"
] | 1 | 2018-11-16T12:51:17.000Z | 2018-11-16T12:51:17.000Z | Net/Thinking/Exclusive/example/no_support/example_client.cpp | huangshihuai/Blog | 47d88a6bfd21838410153ed6c0f3c23f6c753d37 | [
"Apache-2.0"
] | null | null | null | Net/Thinking/Exclusive/example/no_support/example_client.cpp | huangshihuai/Blog | 47d88a6bfd21838410153ed6c0f3c23f6c753d37 | [
"Apache-2.0"
] | null | null | null | #include <iostream>
#include <string>
#include <cstdlib>
#include <cstring>
#include <unistd.h>
#include "net.h"
#include "judgment.h"
using namespace std;
const char *data = "abcdefgh";
int main(int argc, char **argv) {
if (argc != 4) {
cerr << "请输入: ip 端口 执行次数\n";
return -1;
}
char *ip =... | 25.3 | 84 | 0.547431 | huangshihuai |
37f5c44269e4114ac5b0985db60be0cc4278c594 | 789 | cpp | C++ | src/Iliad.cpp | Beidah/Iliad | 2e86bbb160b471f3b8d9981c649990149eb47b5e | [
"Apache-2.0"
] | 2 | 2018-07-23T13:50:58.000Z | 2018-08-02T18:25:33.000Z | src/Iliad.cpp | Beidah/Iliad | 2e86bbb160b471f3b8d9981c649990149eb47b5e | [
"Apache-2.0"
] | null | null | null | src/Iliad.cpp | Beidah/Iliad | 2e86bbb160b471f3b8d9981c649990149eb47b5e | [
"Apache-2.0"
] | null | null | null | //! \file Iliad.cpp
//! \brief Defines the entry point for the console application.
#include "stdafx.h"
#include "VM.h"
#include <string>
//! Interpreter virtual machine for the repl
VM vm;
//! Creates a repl enviroment with vm interpreter.
static void repl() {
std::string input;
while (true) {
std::cout << "... | 17.931818 | 63 | 0.61597 | Beidah |
53002325ca363cade9c4b3e93f4f8177f13e159d | 2,137 | cpp | C++ | lfsr.cpp | pmwasson/LightCycle | 42e9b7e0fe0e17ee231f43577b222288306be238 | [
"MIT"
] | 2 | 2019-12-07T19:37:31.000Z | 2020-03-18T13:33:46.000Z | lfsr.cpp | pmwasson/LightCycle | 42e9b7e0fe0e17ee231f43577b222288306be238 | [
"MIT"
] | null | null | null | lfsr.cpp | pmwasson/LightCycle | 42e9b7e0fe0e17ee231f43577b222288306be238 | [
"MIT"
] | 1 | 2020-06-30T15:46:03.000Z | 2020-06-30T15:46:03.000Z | #include "lfsr.h"
void LFSR::forward() {
bool lsb = (lfsr & lsbBit) != 0;
lfsr = ((lfsr>>1) ^ ((-lsb) & forwardPoly));
}
void LFSR::backward() {
bool msb = (lfsr & msbBit) != 0;
lfsr = mask & ((lfsr<<1) ^ ((-msb) & backwardPoly));
}
void LFSR::forward(uint16_t n) {
for(uint16_t i=0; i<n; i++) forward... | 30.098592 | 57 | 0.607861 | pmwasson |
53038f13af3691c79b7cc29daabb76643e6fcd7f | 3,106 | cpp | C++ | 19Var/TDT4102/VSProj/Oving4/Oving4/tests.cpp | MarcusTL12/School | f7302f2d390e99ad9d06004e15da032c05ec59e7 | [
"Apache-2.0"
] | null | null | null | 19Var/TDT4102/VSProj/Oving4/Oving4/tests.cpp | MarcusTL12/School | f7302f2d390e99ad9d06004e15da032c05ec59e7 | [
"Apache-2.0"
] | null | null | null | 19Var/TDT4102/VSProj/Oving4/Oving4/tests.cpp | MarcusTL12/School | f7302f2d390e99ad9d06004e15da032c05ec59e7 | [
"Apache-2.0"
] | null | null | null | #include "tests.h"
#include "utilities.h"
#include <std_lib_facilities.h>
#include <unordered_set>
void testCallByValue()
{
int v0 = 5;
int increment = 2;
int iterations = 10;
int result = incrementByValueNumTimes(v0, increment, iterations);
cout << "v0: " << v0
<< " increment: " << increment
<... | 20.986486 | 171 | 0.558596 | MarcusTL12 |
5303ed73c3233ae3a00cb194619291db9c46853e | 4,654 | cpp | C++ | homework/Doronin/06/06.cpp | nkotelevskii/msu_cpp_spring_2018 | b5d84447f9b8c7f3615b421c51cf4192f1b90342 | [
"MIT"
] | 12 | 2018-02-20T15:25:12.000Z | 2022-02-15T03:31:55.000Z | homework/Doronin/06/06.cpp | nkotelevskii/msu_cpp_spring_2018 | b5d84447f9b8c7f3615b421c51cf4192f1b90342 | [
"MIT"
] | 1 | 2018-02-26T12:40:47.000Z | 2018-02-26T12:40:47.000Z | homework/Doronin/06/06.cpp | nkotelevskii/msu_cpp_spring_2018 | b5d84447f9b8c7f3615b421c51cf4192f1b90342 | [
"MIT"
] | 33 | 2018-02-20T15:25:11.000Z | 2019-02-13T22:33:36.000Z | #include <iostream>
#include <cctype>
#include <sstream>
#include <string>
#include <memory>
#include <stdexcept>
typedef std::istringstream point;
//typedef std::shared_ptr<std::basic_istream<char>> point;
template <class T>
class calculator
{
T number_value;
T result;
char get_token(point& input, char& c... | 25.293478 | 84 | 0.415127 | nkotelevskii |
5305087dad7aaaeb186e6484a5eb7a5d17ef5366 | 2,778 | hpp | C++ | rete-reasoner/Argument.hpp | sempr-tk/rete | a6fd29f50f9e6a259d40ac0850acff7874ccdba0 | [
"BSD-3-Clause"
] | 1 | 2021-12-04T21:29:04.000Z | 2021-12-04T21:29:04.000Z | rete-reasoner/Argument.hpp | sempr-tk/rete | a6fd29f50f9e6a259d40ac0850acff7874ccdba0 | [
"BSD-3-Clause"
] | null | null | null | rete-reasoner/Argument.hpp | sempr-tk/rete | a6fd29f50f9e6a259d40ac0850acff7874ccdba0 | [
"BSD-3-Clause"
] | null | null | null | #ifndef RETE_PARSER_ARGUMENT_HPP_
#define RETE_PARSER_ARGUMENT_HPP_
#include "RuleParserAST.hpp"
#include "../rete-core/Accessors.hpp"
#include <vector>
namespace rete {
/**
Arguments are what are passed to a builtin, or rather, the
constructor/builder/... of a builtin. The function that constructs the
a... | 31.213483 | 98 | 0.678906 | sempr-tk |
5306f18329f442a828e13108a2f31dbb4cc3a628 | 1,292 | cpp | C++ | Assigment_3/Prim.cpp | fgalfreire/C-for-C-Programmers- | 68392cdf0efaff1705abfca2ff6ab243be750446 | [
"Unlicense"
] | null | null | null | Assigment_3/Prim.cpp | fgalfreire/C-for-C-Programmers- | 68392cdf0efaff1705abfca2ff6ab243be750446 | [
"Unlicense"
] | null | null | null | Assigment_3/Prim.cpp | fgalfreire/C-for-C-Programmers- | 68392cdf0efaff1705abfca2ff6ab243be750446 | [
"Unlicense"
] | null | null | null | #include "Prim.hpp"
Prim::Prim( Graph& aGraph, const int aSrc )
{
std::priority_queue<aPair, std::vector<aPair>, std::greater<aPair>> aPq;
std::vector<int> aKey( aGraph.getVerticesNum(), INF );
std::vector<int> aParent( aGraph.getVerticesNum(), -1 );
std::vector<bool> aInMST( aGraph.getVerticesNum(), fals... | 25.333333 | 77 | 0.506192 | fgalfreire |
53076ce75a8d1b252dea00779f72b5cb0cf820f6 | 3,056 | cpp | C++ | HC-128/hc128.cpp | pettsol/LabeledHomomorphicControl | 052a8f30c9ecb53c3a9d35cfbfefb310ef0772dd | [
"Apache-2.0"
] | null | null | null | HC-128/hc128.cpp | pettsol/LabeledHomomorphicControl | 052a8f30c9ecb53c3a9d35cfbfefb310ef0772dd | [
"Apache-2.0"
] | null | null | null | HC-128/hc128.cpp | pettsol/LabeledHomomorphicControl | 052a8f30c9ecb53c3a9d35cfbfefb310ef0772dd | [
"Apache-2.0"
] | null | null | null | ///////////////////////////////////////
// This implementation of HC-128 //
// was placed in the public domain //
// by: //
// //
// Petter Solnoer - 16/04/2020 //
///////////////////////////////////////
#include "hc128.h"
#include <iostream... | 26.344828 | 90 | 0.527814 | pettsol |
5308d93727bca8a4f6a3523b3db3d1efbf3eb34d | 4,530 | cpp | C++ | CsPlugin/Source/CsCore/Public/Managers/Input/Script/CsScriptLibrary_Mouse.cpp | closedsum/core | c3cae44a177b9684585043a275130f9c7b67fef0 | [
"Unlicense"
] | 2 | 2019-03-17T10:43:53.000Z | 2021-04-20T21:24:19.000Z | CsPlugin/Source/CsCore/Public/Managers/Input/Script/CsScriptLibrary_Mouse.cpp | closedsum/core | c3cae44a177b9684585043a275130f9c7b67fef0 | [
"Unlicense"
] | null | null | null | CsPlugin/Source/CsCore/Public/Managers/Input/Script/CsScriptLibrary_Mouse.cpp | closedsum/core | c3cae44a177b9684585043a275130f9c7b67fef0 | [
"Unlicense"
] | null | null | null | // Copyright 2017-2021 Closed Sum Games, LLC. All Rights Reserved.
#include "Managers/Input/Script/CsScriptLibrary_Mouse.h"
#include "CsCore.h"
// Types
#include "Types/CsTypes_Macro.h"
// Library
#include "Managers/Input/CsLibrary_Input.h"
#include "Managers/Trace/CsLibrary_Manager_Trace.h"
namespace NCsScriptLibrar... | 32.357143 | 179 | 0.804194 | closedsum |
530bbb4bb1ea4314ffa715d6b3d875b8bb4e9b82 | 1,277 | cpp | C++ | src/src/AST/program.cpp | allen880117/NCTU-compiler-f19-hw3 | a8ab821ae4c2c3ba70ccff19d8aced6f8ea7c008 | [
"MIT"
] | 8 | 2020-12-04T04:47:56.000Z | 2021-12-04T15:23:42.000Z | src/src/AST/program.cpp | allen880117/NCTU-compiler-f19-hw3 | a8ab821ae4c2c3ba70ccff19d8aced6f8ea7c008 | [
"MIT"
] | null | null | null | src/src/AST/program.cpp | allen880117/NCTU-compiler-f19-hw3 | a8ab821ae4c2c3ba70ccff19d8aced6f8ea7c008 | [
"MIT"
] | 6 | 2020-12-02T07:18:13.000Z | 2021-12-15T06:12:45.000Z | #include "AST/program.hpp"
#include <iostream>
#include <iomanip>
#include <cstdlib>
#include <string>
ProgramNode::ProgramNode(
int _line_number,
int _col_number,
string _program_name,
string _return_type,
NodeList* _declaration_node_list,
NodeList* _function_node_list,
Node _compound... | 30.404762 | 65 | 0.678935 | allen880117 |
530cdaa434b9f26f1289cbf0458ac5b1ea0f0541 | 3,634 | hpp | C++ | dfg/cont/valueArray.hpp | tc3t/dfglib | 7157973e952234a010da8e9fbd551a912c146368 | [
"MIT",
"BSL-1.0",
"BSD-3-Clause"
] | 1 | 2017-08-01T04:42:29.000Z | 2017-08-01T04:42:29.000Z | dfg/cont/valueArray.hpp | tc3t/dfglib | 7157973e952234a010da8e9fbd551a912c146368 | [
"MIT",
"BSL-1.0",
"BSD-3-Clause"
] | 128 | 2018-04-06T23:01:51.000Z | 2022-03-31T20:19:38.000Z | dfg/cont/valueArray.hpp | tc3t/dfglib | 7157973e952234a010da8e9fbd551a912c146368 | [
"MIT",
"BSL-1.0",
"BSD-3-Clause"
] | 3 | 2018-03-21T01:11:05.000Z | 2021-04-05T19:20:31.000Z | #pragma once
#include "../dfgDefs.hpp"
#include "../baseConstructorDelegate.hpp"
#include <vector>
#include <valarray>
#include "../numeric/accumulate.hpp"
#include "../numeric/average.hpp"
#include "../numeric/median.hpp"
DFG_ROOT_NS_BEGIN{ DFG_SUB_NS(cont) {
// Class for storing values in contiguous m... | 38.252632 | 140 | 0.70721 | tc3t |
53197d9799381dedef0e71f59002d971d36be548 | 49 | cpp | C++ | Tigris/vendor/Physics/physics/PhysicalQuad.cpp | GabrielTask/Engine | 7c71ff3a11726f5158f57889714bceb47a1837b6 | [
"Apache-2.0"
] | null | null | null | Tigris/vendor/Physics/physics/PhysicalQuad.cpp | GabrielTask/Engine | 7c71ff3a11726f5158f57889714bceb47a1837b6 | [
"Apache-2.0"
] | null | null | null | Tigris/vendor/Physics/physics/PhysicalQuad.cpp | GabrielTask/Engine | 7c71ff3a11726f5158f57889714bceb47a1837b6 | [
"Apache-2.0"
] | null | null | null | #include "PhysicalQuad.h"
namespace Physics
{
} | 8.166667 | 25 | 0.734694 | GabrielTask |
531cdeb7d67d3c16c5646199a30508bf8816e852 | 78,337 | cpp | C++ | bitcoinPoSTdisplay/libraries/TFT_eSPI/examples/Sprite/Sprite_image_4bit/starImage.cpp | adrienlacombe-ledger/bitcoinPoS | 2a4701c445c7eeec88c8abc2bd7940916899e79c | [
"MIT"
] | 81 | 2022-01-22T17:35:01.000Z | 2022-03-08T09:59:02.000Z | bitcoinPoSTdisplay/libraries/TFT_eSPI/examples/Sprite/Sprite_image_4bit/starImage.cpp | adrienlacombe-ledger/bitcoinPoS | 2a4701c445c7eeec88c8abc2bd7940916899e79c | [
"MIT"
] | 6 | 2022-01-25T20:23:08.000Z | 2022-03-07T23:50:32.000Z | bitcoinPoSTdisplay/libraries/TFT_eSPI/examples/Sprite/Sprite_image_4bit/starImage.cpp | adrienlacombe-ledger/bitcoinPoS | 2a4701c445c7eeec88c8abc2bd7940916899e79c | [
"MIT"
] | 26 | 2020-03-21T20:15:38.000Z | 2022-02-11T22:20:07.000Z | #include "sample_images.h"
// width is 160, height is 160
const uint8_t stars[12800] PROGMEM = {
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x... | 54.25 | 66 | 0.654493 | adrienlacombe-ledger |
532055c740dba74874a7638b82c58db9af52e9bd | 17,299 | cc | C++ | src/vulkan_helpers.cc | juliusikkala/VulkanPong | 607983f15b6b6592001d08c72d68ef0c09ca9e93 | [
"MIT"
] | null | null | null | src/vulkan_helpers.cc | juliusikkala/VulkanPong | 607983f15b6b6592001d08c72d68ef0c09ca9e93 | [
"MIT"
] | null | null | null | src/vulkan_helpers.cc | juliusikkala/VulkanPong | 607983f15b6b6592001d08c72d68ef0c09ca9e93 | [
"MIT"
] | null | null | null | /*
MIT License
Copyright (c) 2017 Julius Ikkala
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, ... | 28.73588 | 169 | 0.636106 | juliusikkala |
5329146a208681dafa915143f7eb040d83cb78f6 | 11,506 | cpp | C++ | raintk/RainTkMainDrawStage.cpp | preet/raintk | 9cbd596d9cec9aca7d3bbf3994a2931bac87e98d | [
"Apache-2.0"
] | 4 | 2016-05-03T20:47:51.000Z | 2021-04-15T09:33:34.000Z | raintk/RainTkMainDrawStage.cpp | preet/raintk | 9cbd596d9cec9aca7d3bbf3994a2931bac87e98d | [
"Apache-2.0"
] | null | null | null | raintk/RainTkMainDrawStage.cpp | preet/raintk | 9cbd596d9cec9aca7d3bbf3994a2931bac87e98d | [
"Apache-2.0"
] | 1 | 2017-07-26T07:31:35.000Z | 2017-07-26T07:31:35.000Z | /*
Copyright (C) 2015 Preet Desai (preet.desai@gmail.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
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applic... | 34.142433 | 103 | 0.523379 | preet |
532aa8a84489214feefaa02c69febca21ab68b72 | 625 | hpp | C++ | test/SceneGL.hpp | tcoppex/cudaraster-linux | a0112e1301fca8e5313098f13b27e6f2d7683a7f | [
"Apache-2.0"
] | 4 | 2017-11-25T16:43:10.000Z | 2021-01-31T05:08:33.000Z | test/SceneGL.hpp | tcoppex/cudaraster-linux | a0112e1301fca8e5313098f13b27e6f2d7683a7f | [
"Apache-2.0"
] | 1 | 2021-04-12T02:22:35.000Z | 2021-04-12T02:22:35.000Z | test/SceneGL.hpp | tcoppex/cudaraster-linux | a0112e1301fca8e5313098f13b27e6f2d7683a7f | [
"Apache-2.0"
] | 2 | 2017-04-16T19:26:58.000Z | 2017-06-08T06:26:28.000Z | #ifndef SCENEGL_HPP_
#define SCENEGL_HPP_
#include <GL/glew.h>
#include "engine/renderer/Program.hpp"
#include "engine/renderer/VertexBuffer.hpp"
class Camera;
class Data;
/// =========================================
/// Scene datas for OpenGL rendering
/// =========================================
class SceneGL
... | 16.891892 | 45 | 0.5632 | tcoppex |
5332bdc482652faff9a3a2b082d7209ab764420f | 11,636 | cpp | C++ | platform/gucefCORE/src/linux/CXTermConsoleLogger.cpp | amvb/GUCEF | 08fd423bbb5cdebbe4b70df24c0ae51716b65825 | [
"Apache-2.0"
] | 5 | 2016-04-18T23:12:51.000Z | 2022-03-06T05:12:07.000Z | platform/gucefCORE/src/linux/CXTermConsoleLogger.cpp | amvb/GUCEF | 08fd423bbb5cdebbe4b70df24c0ae51716b65825 | [
"Apache-2.0"
] | 2 | 2015-10-09T19:13:25.000Z | 2018-12-25T17:16:54.000Z | platform/gucefCORE/src/linux/CXTermConsoleLogger.cpp | amvb/GUCEF | 08fd423bbb5cdebbe4b70df24c0ae51716b65825 | [
"Apache-2.0"
] | 15 | 2015-02-23T16:35:28.000Z | 2022-03-25T13:40:33.000Z | /*
* gucefCORE: GUCEF module providing O/S abstraction and generic solutions
* Copyright (C) 2002 - 2007. Dinand Vanvelzen
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundati... | 32.963173 | 145 | 0.45067 | amvb |
5334bb7e0a0ad6395cf269912d77f9113b539165 | 11,868 | cpp | C++ | src/ESP32_SPIFFS_SSD1331_Gadgets.cpp | mgo-tec/ESP32_SPIFFS_SSD1331_Gadgets | 8e0db403754a8322d918b2241e86254596ed2e7e | [
"MIT"
] | null | null | null | src/ESP32_SPIFFS_SSD1331_Gadgets.cpp | mgo-tec/ESP32_SPIFFS_SSD1331_Gadgets | 8e0db403754a8322d918b2241e86254596ed2e7e | [
"MIT"
] | null | null | null | src/ESP32_SPIFFS_SSD1331_Gadgets.cpp | mgo-tec/ESP32_SPIFFS_SSD1331_Gadgets | 8e0db403754a8322d918b2241e86254596ed2e7e | [
"MIT"
] | null | null | null | /*
ESP32_SPIFFS_SSD1331_Gadgets.cpp
Beta version 1.1
Copyright (c) 2017 Mgo-tec
This library is used by the Arduino IDE(Tested in ver1.8.5).
Reference Blog --> https://www.mgo-tec.com
The MIT License (MIT)
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associa... | 35.321429 | 284 | 0.645096 | mgo-tec |
533f558c67250064e1f3bf1f7255432ba7ae4399 | 2,863 | hpp | C++ | XRmonitorsHologram/D3D11Tools.hpp | catid/XRmonitors | 17dddf10d0518596b1549a7e05071633226d0e7d | [
"BSD-3-Clause"
] | 40 | 2020-04-19T23:27:06.000Z | 2022-01-01T16:59:10.000Z | XRmonitorsHologram/D3D11Tools.hpp | catid/XRmonitors | 17dddf10d0518596b1549a7e05071633226d0e7d | [
"BSD-3-Clause"
] | 2 | 2020-05-29T01:14:33.000Z | 2021-12-29T04:07:28.000Z | XRmonitorsHologram/D3D11Tools.hpp | catid/XRmonitors | 17dddf10d0518596b1549a7e05071633226d0e7d | [
"BSD-3-Clause"
] | 1 | 2020-07-24T16:08:57.000Z | 2020-07-24T16:08:57.000Z | // Copyright 2019 Augmented Perception Corporation
#pragma once
#include <DXGI.h>
#include <d3d11.h>
#include <wrl/client.h>
#include <DirectXHelpers.h> // MapGuard
#include <VertexTypes.h> // VertexPositionTexture
#include <SimpleMath.h> // Quaternion
namespace xrm {
using namespace Microsoft::WRL;
//----------... | 22.023077 | 80 | 0.593084 | catid |
5340563c50173d816786fabae6614ce693095b6c | 19,101 | cc | C++ | lite/kernels/rknpu/subgraph_compute.cc | wanglei91/Paddle-Lite | 8b2479f4cdd6970be507203d791bede5a453c09d | [
"Apache-2.0"
] | 1,799 | 2019-08-19T03:29:38.000Z | 2022-03-31T14:30:50.000Z | lite/kernels/rknpu/subgraph_compute.cc | wanglei91/Paddle-Lite | 8b2479f4cdd6970be507203d791bede5a453c09d | [
"Apache-2.0"
] | 3,767 | 2019-08-19T03:36:04.000Z | 2022-03-31T14:37:26.000Z | lite/kernels/rknpu/subgraph_compute.cc | wanglei91/Paddle-Lite | 8b2479f4cdd6970be507203d791bede5a453c09d | [
"Apache-2.0"
] | 798 | 2019-08-19T02:28:23.000Z | 2022-03-31T08:31:54.000Z | // Copyright (c) 2020 PaddlePaddle 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... | 41.796499 | 80 | 0.615936 | wanglei91 |
53445c40d63571dac7fbd279da00c5a122a04971 | 6,228 | cpp | C++ | Driver/src/driver_A3Tracker.cpp | A3yuu/Tracker | 69b693d4aa04335712321d4a5d1af0c73929e1c0 | [
"MIT"
] | 6 | 2020-08-11T21:51:13.000Z | 2022-03-12T07:29:41.000Z | Driver/src/driver_A3Tracker.cpp | A3yuu/Tracker | 69b693d4aa04335712321d4a5d1af0c73929e1c0 | [
"MIT"
] | 1 | 2020-08-11T06:49:24.000Z | 2020-08-11T06:49:24.000Z | Driver/src/driver_A3Tracker.cpp | A3yuu/Tracker | 69b693d4aa04335712321d4a5d1af0c73929e1c0 | [
"MIT"
] | 2 | 2021-01-17T22:55:25.000Z | 2021-04-29T10:55:31.000Z |
#include <string.h>
#include <windows.h>
#include <openvr_driver.h>
#include "com.h"
using namespace std;
#define HMD_DLL_EXPORT extern "C" __declspec(dllexport)
#define HMD_DLL_IMPORT extern "C" __declspec(dllimport)
inline vr::HmdQuaternion_t HmdQuaternion_Init(double w, double x, double y, double z)
{
vr::H... | 31.938462 | 139 | 0.673571 | A3yuu |
5344d3f24a63f0ff330ff1aa1d872f59004c3af7 | 1,225 | cxx | C++ | src/scenes/next_stage_scene.cxx | taworn/capmandx | f9a62d55b6fa30ae3bfb986c798ed6996cb3230d | [
"MIT"
] | null | null | null | src/scenes/next_stage_scene.cxx | taworn/capmandx | f9a62d55b6fa30ae3bfb986c798ed6996cb3230d | [
"MIT"
] | null | null | null | src/scenes/next_stage_scene.cxx | taworn/capmandx | f9a62d55b6fa30ae3bfb986c798ed6996cb3230d | [
"MIT"
] | null | null | null | /**
* @file next_stage_scene.cxx
* @desc Next stage scene module.
*/
#include <windows.h>
#include <assert.h>
#include <boost/log/trivial.hpp>
#include <d3d9.h>
#include <d3dx9.h>
#include "../game.hxx"
#include "../game/common.hxx"
#include "scene.hxx"
#include "next_stage_scene.hxx"
NextStageScene::... | 22.272727 | 75 | 0.67102 | taworn |
534680ead7edb6a5c7d1175bdd3a28cf6e05a752 | 398 | cpp | C++ | Source/Input.cpp | QQLKAA/Aster | 4d1b07327e3f29a6c466c703f9d8283608fa01fb | [
"Apache-2.0"
] | null | null | null | Source/Input.cpp | QQLKAA/Aster | 4d1b07327e3f29a6c466c703f9d8283608fa01fb | [
"Apache-2.0"
] | null | null | null | Source/Input.cpp | QQLKAA/Aster | 4d1b07327e3f29a6c466c703f9d8283608fa01fb | [
"Apache-2.0"
] | null | null | null | #include "Input.hpp"
#include <glfw/glfw3.h>
#include "Window.hpp"
Input::Input(const std::shared_ptr<Window>& window) : window(window)
{
}
bool Input::IsKeyPressed(const Key& key) const
{
return glfwGetKey(window->GetNative(), (int)key) == GLFW_PRESS;
}
bool Input::IsButtonPressed(const Button& button) const
{
... | 18.952381 | 75 | 0.723618 | QQLKAA |
534a6946d00a0941d9981a6d21729e4717784f48 | 972 | cpp | C++ | engine/source/wide/ui/skin/renderer/ui_skin_renderer.cpp | skarab/coffee-master | 6c3ff71b7f15735e41c9859b6db981b94414c783 | [
"MIT"
] | null | null | null | engine/source/wide/ui/skin/renderer/ui_skin_renderer.cpp | skarab/coffee-master | 6c3ff71b7f15735e41c9859b6db981b94414c783 | [
"MIT"
] | null | null | null | engine/source/wide/ui/skin/renderer/ui_skin_renderer.cpp | skarab/coffee-master | 6c3ff71b7f15735e41c9859b6db981b94414c783 | [
"MIT"
] | null | null | null | #include "wide/ui/skin/renderer/ui_skin_renderer.h"
namespace coffee
{
//-META---------------------------------------------------------------------------------------//
COFFEE_BeginType(ui::SkinRenderer);
COFFEE_EndType();
namespace ui
{
//-CONSTRUCTORS-------------------------------------------------... | 25.578947 | 100 | 0.340535 | skarab |
c72a639065a455cb91af0b7b2c4d3537a42ea9bd | 2,533 | cpp | C++ | sorting.cpp | MBezerril/SpeedOptimizationTests | a526323e75ac7b32daf2be9f2ff3d9392b354def | [
"MIT"
] | null | null | null | sorting.cpp | MBezerril/SpeedOptimizationTests | a526323e75ac7b32daf2be9f2ff3d9392b354def | [
"MIT"
] | null | null | null | sorting.cpp | MBezerril/SpeedOptimizationTests | a526323e75ac7b32daf2be9f2ff3d9392b354def | [
"MIT"
] | null | null | null | #include "sorting.h"
#include "quickSorting.cpp"
#include "insertionSort.cpp"
#include "hybrid.cpp"
int main(int argc, char* argv[]){
if(argc < 3){
std::cout<< "Missing arguments! Usage: ./sorting sampleFileName.txt saida.txt" <<std::endl;
return 1;
}
std::ifstream infile(argv[1]);
if(!infile.is_open()){
std... | 32.474359 | 116 | 0.664035 | MBezerril |
c72d4bb1c27231cbc57bb74127b20bc042741840 | 1,257 | hpp | C++ | src/color.hpp | mario-dg/RayTracer | 528a0e7da32e05d091f156329b985e8af8379dd2 | [
"Unlicense"
] | null | null | null | src/color.hpp | mario-dg/RayTracer | 528a0e7da32e05d091f156329b985e8af8379dd2 | [
"Unlicense"
] | null | null | null | src/color.hpp | mario-dg/RayTracer | 528a0e7da32e05d091f156329b985e8af8379dd2 | [
"Unlicense"
] | null | null | null | //
// Created by mario on 06.05.2021.
//
#ifndef RAYTRACER_COLOR_HPP
#define RAYTRACER_COLOR_HPP
#include "tuple.hpp"
namespace rt {
class color : public tuple {
public:
//Default construct black color
color() : tuple( 0.0, 0.0, 0.0, 0.0 ) {}
//Ignoring the w-compononent (Alpha value)
color( double r, doubl... | 29.928571 | 112 | 0.618934 | mario-dg |
c72fe01678a872e58ae64a18b08499f6e07ccaca | 563 | cpp | C++ | src/0461.cpp | killf/leetcode_cpp | d1f308a9c3da55ae5416ea28ec2e7a3146533ae9 | [
"MIT"
] | null | null | null | src/0461.cpp | killf/leetcode_cpp | d1f308a9c3da55ae5416ea28ec2e7a3146533ae9 | [
"MIT"
] | null | null | null | src/0461.cpp | killf/leetcode_cpp | d1f308a9c3da55ae5416ea28ec2e7a3146533ae9 | [
"MIT"
] | null | null | null | #include <iostream>
#include <string>
#include <vector>
#include <sstream>
#include <algorithm>
#include <map>
#include <set>
#include <hash_map>
#include <hash_set>
#include <queue>
#include <stack>
#include <iomanip>
#include <cmath>
using namespace std;
class Solution {
public:
int hammingDistance(int x, int y... | 16.085714 | 39 | 0.573712 | killf |
c7307e80681ba15b571ae73a3af6815520e753f1 | 3,757 | cpp | C++ | src/server/httpdaemon/solarisprocessstats.cpp | jvirkki/heliod | efdf2d105e342317bd092bab2d727713da546174 | [
"BSD-3-Clause"
] | 13 | 2015-10-09T05:59:20.000Z | 2021-11-12T10:38:51.000Z | src/server/httpdaemon/solarisprocessstats.cpp | JamesLinus/heliod | efdf2d105e342317bd092bab2d727713da546174 | [
"BSD-3-Clause"
] | null | null | null | src/server/httpdaemon/solarisprocessstats.cpp | JamesLinus/heliod | efdf2d105e342317bd092bab2d727713da546174 | [
"BSD-3-Clause"
] | 6 | 2016-05-23T10:53:29.000Z | 2019-12-13T17:57:32.000Z | /*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
*
* Copyright 2008 Sun Microsystems, Inc. All rights reserved.
*
* THE BSD LICENSE
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* Redistribut... | 35.443396 | 91 | 0.650253 | jvirkki |
c733fa759545740dfb581aea8eecacab9327bf12 | 690 | cpp | C++ | library/view/widget/child_window_message_processor.cpp | topillar/PuTTY-ng | 1f5bf26de0f42e03ef4f100fa879b16216d61abf | [
"MIT"
] | 39 | 2019-06-22T12:25:54.000Z | 2022-03-14T05:42:44.000Z | library/view/widget/child_window_message_processor.cpp | topillar/PuTTY-ng | 1f5bf26de0f42e03ef4f100fa879b16216d61abf | [
"MIT"
] | 5 | 2019-06-29T10:58:43.000Z | 2020-09-04T08:44:09.000Z | library/view/widget/child_window_message_processor.cpp | topillar/PuTTY-ng | 1f5bf26de0f42e03ef4f100fa879b16216d61abf | [
"MIT"
] | 10 | 2019-08-07T06:08:23.000Z | 2022-03-14T05:42:47.000Z |
#include "child_window_message_processor.h"
#include "base/logging.h"
#include "ui_base/view_prop.h"
namespace view
{
static const char* const kChildWindowKey = "__CHILD_WINDOW_MESSAGE_PROCESSOR__";
// static
ui::ViewProp* ChildWindowMessageProcessor::Register(HWND hwnd,
ChildWindowMessageProc... | 24.642857 | 84 | 0.710145 | topillar |
c73a57c95d87c003de18182044adb4e32b6e41f4 | 10,362 | cpp | C++ | client/bison_view.cpp | UCR-UAS/BISON-View | 23ed9d4dfef1bbe49757ff7b36bbf3cfc28be80e | [
"MIT"
] | null | null | null | client/bison_view.cpp | UCR-UAS/BISON-View | 23ed9d4dfef1bbe49757ff7b36bbf3cfc28be80e | [
"MIT"
] | null | null | null | client/bison_view.cpp | UCR-UAS/BISON-View | 23ed9d4dfef1bbe49757ff7b36bbf3cfc28be80e | [
"MIT"
] | null | null | null | /* Engineer: Brandon Lu (blu006@ucr.edu)
* Cody Simons (csimo005@ucr.edu)
* Organization: UCR SUAS
* Project: BISON-View
* Filename: bison_view.cpp
* Description:
* This is the main file for the BISON View main window.
*/
#include <QDebug>
#include <QPalette>
#include "BISON.h"
#include "bison_view.h"... | 27.485411 | 109 | 0.60027 | UCR-UAS |
c73aded935087b0026b7e0656392e2b1394c33a5 | 4,239 | cpp | C++ | library/L1_Peripheral/lpc40xx/test/adc_test.cpp | ChrisFSF/SJSU-Dev2 | d27924504ee6b16f135cdb6a527c8cf05dce5d49 | [
"Apache-2.0"
] | null | null | null | library/L1_Peripheral/lpc40xx/test/adc_test.cpp | ChrisFSF/SJSU-Dev2 | d27924504ee6b16f135cdb6a527c8cf05dce5d49 | [
"Apache-2.0"
] | null | null | null | library/L1_Peripheral/lpc40xx/test/adc_test.cpp | ChrisFSF/SJSU-Dev2 | d27924504ee6b16f135cdb6a527c8cf05dce5d49 | [
"Apache-2.0"
] | null | null | null | #include "L0_Platform/lpc40xx/LPC40xx.h"
#include "L1_Peripheral/lpc40xx/adc.hpp"
#include "L4_Testing/testing_frameworks.hpp"
namespace sjsu::lpc40xx
{
EMIT_ALL_METHODS(Adc);
TEST_CASE("Testing lpc40xx adc", "[lpc40xx-adc]")
{
// Create local version of LPC_ADC
LPC_ADC_TypeDef local_adc;
LPC_SC_TypeDef local_s... | 37.184211 | 79 | 0.683888 | ChrisFSF |
c73bbbb695aacc537a78c5176fbc78cbf3e1ec8d | 3,204 | cpp | C++ | smbios/smbios.cpp | forceinline/smbios-parser | c7d57733405f8d7b20181f5945a026c8ac19886b | [
"MIT"
] | null | null | null | smbios/smbios.cpp | forceinline/smbios-parser | c7d57733405f8d7b20181f5945a026c8ac19886b | [
"MIT"
] | null | null | null | smbios/smbios.cpp | forceinline/smbios-parser | c7d57733405f8d7b20181f5945a026c8ac19886b | [
"MIT"
] | null | null | null | #include "smbios.h"
#include <Windows.h>
namespace fi {
namespace smbios {
smbios_parser::smbios_parser( ) {
parse_smbios( );
}
void smbios_parser::enum_tables( std::function< void( std::uint8_t table_type, detail::entry_handle entry_handle ) > enum_fn ) {
for ( auto table_entries : m_tables ) {
/... | 33.726316 | 130 | 0.675718 | forceinline |
c73c8250a352768399d6ccf63383531c78e293f7 | 253 | cpp | C++ | Course1207/std/withfiles/sumdigit.cpp | JimmyCHWang/Elementary_Course_on_Cpp | ea8f14c7f8975012d144c9d3333c90344fb2e6d7 | [
"CC0-1.0"
] | null | null | null | Course1207/std/withfiles/sumdigit.cpp | JimmyCHWang/Elementary_Course_on_Cpp | ea8f14c7f8975012d144c9d3333c90344fb2e6d7 | [
"CC0-1.0"
] | null | null | null | Course1207/std/withfiles/sumdigit.cpp | JimmyCHWang/Elementary_Course_on_Cpp | ea8f14c7f8975012d144c9d3333c90344fb2e6d7 | [
"CC0-1.0"
] | null | null | null | #include<bits/stdc++.h>
using namespace std;
int main() {
freopen("sumdigit.in", "r", stdin);
freopen("sumdigit.out", "w", stdout);
long long N;
cin>>N;
int s = 0;
while (N != 0) {
s += N % 10;
N /= 10;
}
cout<<s<<endl;
return 0;
} | 12.65 | 38 | 0.537549 | JimmyCHWang |
c742b7ab89e97b222c59b39e7cfd0d56a3f727b4 | 7,565 | cpp | C++ | src/Kaleidoscope/Emoji.cpp | jjochen/Kaleidoscope-Emoji | b90bf29c1c24802182d158b5148e7772c15e6918 | [
"MIT"
] | 1 | 2018-10-17T22:18:49.000Z | 2018-10-17T22:18:49.000Z | src/Kaleidoscope/Emoji.cpp | jjochen/Kaleidoscope-Emoji | b90bf29c1c24802182d158b5148e7772c15e6918 | [
"MIT"
] | null | null | null | src/Kaleidoscope/Emoji.cpp | jjochen/Kaleidoscope-Emoji | b90bf29c1c24802182d158b5148e7772c15e6918 | [
"MIT"
] | 2 | 2018-05-11T07:58:21.000Z | 2021-10-03T06:56:05.000Z | /* -*- mode: c++ -*-
* Kaleidoscope-Emoji -- Emoji Keys.
*
* Copyright (c) 2018 Jochen Pfeiffer
*
* 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... | 27.21223 | 99 | 0.636616 | jjochen |
c74411fda1df5730f9724209b59aeda7aef33d6d | 4,165 | cpp | C++ | components/ConfigVault.cpp | eburghar/cconfd | 7e053b695e07bc0858902db7d24b62499936ff29 | [
"Apache-2.0",
"MIT"
] | null | null | null | components/ConfigVault.cpp | eburghar/cconfd | 7e053b695e07bc0858902db7d24b62499936ff29 | [
"Apache-2.0",
"MIT"
] | null | null | null | components/ConfigVault.cpp | eburghar/cconfd | 7e053b695e07bc0858902db7d24b62499936ff29 | [
"Apache-2.0",
"MIT"
] | null | null | null | #include "ConfigVault.h"
#include "common/Utils.h"
#include "components/EngineJsonnet.h"
//#include "components/VaultClientHttp.h"
#include <fstream>
#include <iostream>
namespace fs = std::filesystem;
using json = nlohmann::json;
static std::string
readFile(std::ifstream& in)
{
return std::string(std::istreambuf_... | 24.94012 | 81 | 0.592557 | eburghar |
c7475885f8954d3a59b5da96a9d998bede017bc3 | 3,304 | cpp | C++ | node_modules/appmetrics/omr-agentcore/src/ibmras/monitoring/agent/BucketList.cpp | katerinachinnappan/SeatFinder | 89aaff128c44807b796a7bf0cd5cb35af5a06654 | [
"MIT"
] | 16 | 2016-05-27T07:34:22.000Z | 2022-01-08T02:34:28.000Z | node_modules/appmetrics/omr-agentcore/src/ibmras/monitoring/agent/BucketList.cpp | katerinachinnappan/SeatFinder | 89aaff128c44807b796a7bf0cd5cb35af5a06654 | [
"MIT"
] | 58 | 2016-05-20T13:42:09.000Z | 2021-02-16T15:22:14.000Z | node_modules/appmetrics/omr-agentcore/src/ibmras/monitoring/agent/BucketList.cpp | katerinachinnappan/SeatFinder | 89aaff128c44807b796a7bf0cd5cb35af5a06654 | [
"MIT"
] | 28 | 2016-05-26T20:53:12.000Z | 2021-04-26T14:23:58.000Z | /*******************************************************************************
* Copyright 2016 IBM Corp.
*
* 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/li... | 27.081967 | 102 | 0.632567 | katerinachinnappan |
c749bec9ae6819a9de4de7fb7504521942bd8e64 | 15,707 | cc | C++ | google/cloud/filestore/internal/cloud_filestore_manager_connection_impl.cc | sydney-munro/google-cloud-cpp | 374b52e5cec78962358bdd5913d4118a47af1952 | [
"Apache-2.0"
] | 80 | 2017-11-24T00:19:45.000Z | 2019-01-25T10:24:33.000Z | google/cloud/filestore/internal/cloud_filestore_manager_connection_impl.cc | sydney-munro/google-cloud-cpp | 374b52e5cec78962358bdd5913d4118a47af1952 | [
"Apache-2.0"
] | 1,579 | 2017-11-24T01:01:21.000Z | 2019-01-28T23:41:21.000Z | google/cloud/filestore/internal/cloud_filestore_manager_connection_impl.cc | sydney-munro/google-cloud-cpp | 374b52e5cec78962358bdd5913d4118a47af1952 | [
"Apache-2.0"
] | 51 | 2017-11-24T00:56:11.000Z | 2019-01-18T20:35:02.000Z | // Copyright 2022 Google LLC
//
// 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
//
// https://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in... | 45.527536 | 84 | 0.684154 | sydney-munro |
c74fb8d76839849708b3e4f1183121300904efd3 | 677 | cpp | C++ | Spin/src/spinclient.cpp | PrescienceLab/RPS | e90325dc50c672e7a310e9a1bda7b0adb38bb63b | [
"MIT-CMU"
] | null | null | null | Spin/src/spinclient.cpp | PrescienceLab/RPS | e90325dc50c672e7a310e9a1bda7b0adb38bb63b | [
"MIT-CMU"
] | null | null | null | Spin/src/spinclient.cpp | PrescienceLab/RPS | e90325dc50c672e7a310e9a1bda7b0adb38bb63b | [
"MIT-CMU"
] | null | null | null | #include <stdio.h>
#include "Spin.h"
void usage()
{
fprintf(stderr,"usage: spinclient sourcenetspec reqsecs\n");
}
int main(int argc, char *argv[])
{
EndPoint ep;
SpinRequest req;
SpinReply resp;
if (argc!=3) {
usage();
exit(0);
}
if (ep.Parse(argv[1])) {
fprintf(stderr,"Failed to par... | 14.404255 | 62 | 0.583456 | PrescienceLab |
c7510ae4da6667ccb4293a9d63f116a1600438ef | 1,815 | cpp | C++ | bytezero/chunkdbs/db/dbinfo.cpp | alackfeng/bytezeroqt | 27978eb28a0637234be07a6a9daa6dcc9c684d40 | [
"MIT"
] | null | null | null | bytezero/chunkdbs/db/dbinfo.cpp | alackfeng/bytezeroqt | 27978eb28a0637234be07a6a9daa6dcc9c684d40 | [
"MIT"
] | null | null | null | bytezero/chunkdbs/db/dbinfo.cpp | alackfeng/bytezeroqt | 27978eb28a0637234be07a6a9daa6dcc9c684d40 | [
"MIT"
] | null | null | null | #include "dbinfo.h"
#include <QFileInfo>
#include <QDateTime>
static const char* jsvalue_f_path = "path";
static const char* jsvalue_f_name = "name";
static const char* jsvalue_f_size = "size";
static const char* jsvalue_f_alignSize = "alignSize";
static const char* jsvalue_f_createTime = "createTime";
static... | 36.3 | 79 | 0.682094 | alackfeng |
c75159e01fcd70aeed7e936b49a49a8ded99dd83 | 1,549 | cpp | C++ | shared/src/shader_patch_version.cpp | SleepKiller/shaderpatch | 4bda848df0273993c96f1d20a2cf79161088a77d | [
"MIT"
] | 13 | 2019-03-25T09:40:12.000Z | 2022-03-13T16:12:39.000Z | shared/src/shader_patch_version.cpp | SleepKiller/shaderpatch | 4bda848df0273993c96f1d20a2cf79161088a77d | [
"MIT"
] | 110 | 2018-10-16T09:05:43.000Z | 2022-03-16T23:32:28.000Z | shared/src/shader_patch_version.cpp | SleepKiller/swbfii-shaderpatch | b49ce3349d4dd09b19237ff4766652166ba1ffd4 | [
"MIT"
] | 1 | 2020-02-06T20:32:50.000Z | 2020-02-06T20:32:50.000Z |
#include "shader_patch_version.hpp"
#include "string_utilities.hpp"
#include <charconv>
namespace sp {
const std::string current_shader_patch_version_string =
to_string(current_shader_patch_version);
using namespace std::literals;
auto to_string(const Shader_patch_version& version) noexcept -> std::string
{
... | 26.706897 | 83 | 0.694642 | SleepKiller |
c7547cdfa2b600e9f7591c3f0127d57d523f7a94 | 19,638 | cpp | C++ | GameConn/VariableGroupNode.cpp | d1kkop/Anger | 9d4c1f9700e1d5edcf84278f5bfc06e4744e9992 | [
"MIT"
] | null | null | null | GameConn/VariableGroupNode.cpp | d1kkop/Anger | 9d4c1f9700e1d5edcf84278f5bfc06e4744e9992 | [
"MIT"
] | null | null | null | GameConn/VariableGroupNode.cpp | d1kkop/Anger | 9d4c1f9700e1d5edcf84278f5bfc06e4744e9992 | [
"MIT"
] | null | null | null | #include "VariableGroupNode.h"
#include "Zerodelay.h"
#include "VariableGroup.h"
#include "Socket.h"
#include "SyncGroups.h"
#include "RUDPLink.h"
#include "CoreNode.h"
#include "Util.h"
#include "NetVariable.h"
#include "BinSerializer.h"
#include <cassert>
namespace Zerodelay
{
constexpr i8_t VGChannel = 1;
Var... | 30.732394 | 305 | 0.688818 | d1kkop |
c757458c6e9a2cad8a92ce627adfdb8c630752e4 | 826 | cpp | C++ | volume_XVII/acm_1601.cpp | raidenluikang/acm.timus.ru | 9b7c99eb03959acff9dd96326eec642a2c31ed04 | [
"MIT"
] | null | null | null | volume_XVII/acm_1601.cpp | raidenluikang/acm.timus.ru | 9b7c99eb03959acff9dd96326eec642a2c31ed04 | [
"MIT"
] | null | null | null | volume_XVII/acm_1601.cpp | raidenluikang/acm.timus.ru | 9b7c99eb03959acff9dd96326eec642a2c31ed04 | [
"MIT"
] | null | null | null | // 1601. AntiCAPS
#include <cstdio>
bool is_letter(char c)
{
return (c >='A' && c <='Z');
}
char to_lower(char c)
{
return c + 32;
}
char in[16384];
int main()
{
#ifndef ONLINE_JUDGE
freopen("input.txt", "r",stdin);
freopen("output.txt", "w", stdout);
#endif
int i , s;
in[fread(in,1,siz... | 16.857143 | 63 | 0.410412 | raidenluikang |
c759efaeb7171f111ed167144b24d334e4463184 | 242 | cpp | C++ | memecity.engine.ui/UI/Overlay/OverlayBarItem.cpp | TvanBronswijk/memecity | f0410fb72d5484a642be90964defb87654ebd66b | [
"MIT"
] | null | null | null | memecity.engine.ui/UI/Overlay/OverlayBarItem.cpp | TvanBronswijk/memecity | f0410fb72d5484a642be90964defb87654ebd66b | [
"MIT"
] | 4 | 2018-10-01T09:44:02.000Z | 2018-12-10T12:08:39.000Z | memecity.engine.ui/UI/Overlay/OverlayBarItem.cpp | TvanBronswijk/memecity | f0410fb72d5484a642be90964defb87654ebd66b | [
"MIT"
] | null | null | null | #include "OverlayBarItem.h"
void memecity::engine::ui::overlay::OverlayBarItem::render()
{
multimedia_manager->render_rect(x, y, width, 10, true, background);
multimedia_manager->render_rect(x, y, width/max*value, 10, true, forground);
}
| 30.25 | 77 | 0.743802 | TvanBronswijk |
c765013f908e7c2f4fd51db2982b19933943a2f2 | 2,227 | cpp | C++ | 4 - Decisions/LitmusTest/LitmusTest/main.cpp | cross-hare/-CIS5-Programming-Concepts-Methodology | fa08888230fe19aa1702beb64a500e4568c55c3d | [
"MIT"
] | null | null | null | 4 - Decisions/LitmusTest/LitmusTest/main.cpp | cross-hare/-CIS5-Programming-Concepts-Methodology | fa08888230fe19aa1702beb64a500e4568c55c3d | [
"MIT"
] | null | null | null | 4 - Decisions/LitmusTest/LitmusTest/main.cpp | cross-hare/-CIS5-Programming-Concepts-Methodology | fa08888230fe19aa1702beb64a500e4568c55c3d | [
"MIT"
] | null | null | null | #include<iostream>
#include<string>
bool isValid();
int main()
{
const int LEGAL_AGE = 21;
const bool LEGAL_CITIZENSHIP = true;
const std::string LEGAL_STATE = "CA";
int age;
bool citizenship;
std::string state;
std::cout << "Club Membership Test. Please enter information: \n\n";
std::cout << "Age: ";
std:... | 21.009434 | 128 | 0.674001 | cross-hare |
c765b72c0922fd55f1d7b57578778f8bcb7fed61 | 14,780 | hpp | C++ | src/include/concore/pipeline.hpp | lucteo/concore | ffbc3b8cead7498ddad601dcf357fa72529f81ad | [
"MIT"
] | 52 | 2020-05-23T21:34:33.000Z | 2022-02-23T03:06:50.000Z | src/include/concore/pipeline.hpp | lucteo/concore | ffbc3b8cead7498ddad601dcf357fa72529f81ad | [
"MIT"
] | null | null | null | src/include/concore/pipeline.hpp | lucteo/concore | ffbc3b8cead7498ddad601dcf357fa72529f81ad | [
"MIT"
] | 2 | 2021-05-06T18:41:25.000Z | 2021-07-24T03:50:42.000Z | /**
* @file pipeline.hpp
* @brief Utilities for creating execution pipelines
*
* @see @ref concore::v1::pipeline "pipeline", @ref concore::v1::pipeline_builder
* "pipeline_builder", @ref concore::v1::pipeline_end_t "pipeline_end_t", pipeline_end,
* stage_ordering
*/
#pragma once
#incl... | 35.358852 | 100 | 0.646685 | lucteo |
c766a3e7c887ca23660034480a14a8d4d6382691 | 11,807 | cpp | C++ | SGPLibraryCode/modules/sgp_render/opengl/sgp_OpenGLSkydomeRenderer.cpp | phoenixzz/VoronoiMapGen | 5afd852f8bb0212baba9d849178eb135f62df903 | [
"MIT"
] | 11 | 2017-03-03T03:31:15.000Z | 2019-03-01T17:09:12.000Z | SGPLibraryCode/modules/sgp_render/opengl/sgp_OpenGLSkydomeRenderer.cpp | phoenixzz/VoronoiMapGen | 5afd852f8bb0212baba9d849178eb135f62df903 | [
"MIT"
] | null | null | null | SGPLibraryCode/modules/sgp_render/opengl/sgp_OpenGLSkydomeRenderer.cpp | phoenixzz/VoronoiMapGen | 5afd852f8bb0212baba9d849178eb135f62df903 | [
"MIT"
] | 2 | 2017-03-03T03:31:17.000Z | 2021-05-27T21:50:43.000Z |
COpenGLSkydomeRenderer::COpenGLSkydomeRenderer(COpenGLRenderDevice *pRenderDevice)
: m_pRenderDevice(pRenderDevice), m_SkydomeStaticBuffer(NULL), m_SunColorAndIntensity(1.0f, 1.0f, 1.0f, 0.1f)
{
}
COpenGLSkydomeRenderer::~COpenGLSkydomeRenderer()
{
}
void COpenGLSkydomeRenderer::updateSkydomeMaterialSkin(const CSG... | 49.401674 | 238 | 0.821801 | phoenixzz |
c76c0593eb4b6eaebdc9252b3a7041ab140d6ea2 | 362 | cpp | C++ | String/k palindrome string.cpp | scortier/DSA-Complete-Sheet | 925a5cb148d9addcb32192fe676be76bfb2915c7 | [
"MIT"
] | 1 | 2021-07-20T06:08:26.000Z | 2021-07-20T06:08:26.000Z | String/k palindrome string.cpp | scortier/DSA-Complete-Sheet | 925a5cb148d9addcb32192fe676be76bfb2915c7 | [
"MIT"
] | null | null | null | String/k palindrome string.cpp | scortier/DSA-Complete-Sheet | 925a5cb148d9addcb32192fe676be76bfb2915c7 | [
"MIT"
] | null | null | null | lic:
bool canConstruct(string s, int k) {
map<char, int>mp;
int n = s.size();
if (n < k) return 0;
for (int i = 0; i < n; i++)
{
mp[s[i]]++;
}
int od = 0, ev = 0;
for (auto i = mp.begin(); i != mp.end(); i++)
{
if (i->second % 2 == 1) od++;
else ev++;
}
... | 17.238095 | 49 | 0.403315 | scortier |
c76c161c917a6b4a3b47c04e8298238464076150 | 451 | hpp | C++ | stm32-jl/include/stm32f051/uart.hpp | serjzimmerman/mipt-rt-stm32-f0-labs | 561f363ec5c4dece92b2a14c36343aaa9d713785 | [
"MIT"
] | null | null | null | stm32-jl/include/stm32f051/uart.hpp | serjzimmerman/mipt-rt-stm32-f0-labs | 561f363ec5c4dece92b2a14c36343aaa9d713785 | [
"MIT"
] | null | null | null | stm32-jl/include/stm32f051/uart.hpp | serjzimmerman/mipt-rt-stm32-f0-labs | 561f363ec5c4dece92b2a14c36343aaa9d713785 | [
"MIT"
] | null | null | null | #pragma once
#include "common/uart.hpp"
#include "gpio.hpp"
#include "rcc.hpp"
namespace JL {
template <typename rx, typename tx>
struct Uart2;
template <typename rx, typename tx>
struct Uart1;
template <>
struct Uart2<PinA2, PinA3> : UartBase<USART2_BASE, PinA2, PinA3, AF1, AF1, Rcc::APB1ENR::USART2EN> {};
templ... | 21.47619 | 104 | 0.716186 | serjzimmerman |
c76d578336da91ecd993845826f6b3a94dbbd857 | 1,022 | cpp | C++ | tests/as_native_cases.cpp | piotr-semenov/libq | facfca4610da1ca366637dd030eae5ee06f0c792 | [
"BSD-3-Clause"
] | 14 | 2016-06-15T09:08:40.000Z | 2021-10-21T11:57:09.000Z | tests/as_native_cases.cpp | aka-sps/libq | facfca4610da1ca366637dd030eae5ee06f0c792 | [
"BSD-3-Clause"
] | 2 | 2018-04-05T18:11:09.000Z | 2021-09-30T12:11:09.000Z | tests/as_native_cases.cpp | aka-sps/libq | facfca4610da1ca366637dd030eae5ee06f0c792 | [
"BSD-3-Clause"
] | 2 | 2018-07-31T23:18:22.000Z | 2020-06-19T07:45:43.000Z | #define BOOST_TEST_STATIC_LINK
#define BOOST_TEST_MODULE FIXED_POINT_LIB_UNIT_TESTS
#include "boost/test/unit_test.hpp"
#include "boost/integer.hpp"
#include <limits>
#include <string>
#include "libq/fixed_point.hpp"
namespace libq {
namespace unit_tests {
BOOST_AUTO_TEST_SUITE(lift)
BOOST_AUTO_TEST... | 27.621622 | 99 | 0.638943 | piotr-semenov |
c76f2bf9193a747bfe6d931ca32dcda27bd227c0 | 1,394 | cpp | C++ | src/window.cpp | gundralaa/maze_generator | 9f4649a57a05497c7b8c6fa582986976b99ce70e | [
"MIT"
] | null | null | null | src/window.cpp | gundralaa/maze_generator | 9f4649a57a05497c7b8c6fa582986976b99ce70e | [
"MIT"
] | null | null | null | src/window.cpp | gundralaa/maze_generator | 9f4649a57a05497c7b8c6fa582986976b99ce70e | [
"MIT"
] | null | null | null | #include "window.h"
#include <iostream>
void buff_callback(GLFWwindow* window, int width, int height) {
glViewport(0, 0, width, height);
}
void window::init(int width, int height, const char* name) {
// init glfw and set version 3.3
glfwInit();
glfwWindowHint(GLFW_CONTEXT_VERSION_MAJOR, 3);
glfwWindowHint(GLFW_C... | 29.659574 | 79 | 0.729555 | gundralaa |
c77793a5c7d04955dc7eb1b4fb44d2892b004597 | 1,415 | cpp | C++ | src/logic/entity.cpp | imnetcat/ecosystem | 40546b501959c36744cfa96e4c41eed6f3bda064 | [
"MIT"
] | null | null | null | src/logic/entity.cpp | imnetcat/ecosystem | 40546b501959c36744cfa96e4c41eed6f3bda064 | [
"MIT"
] | null | null | null | src/logic/entity.cpp | imnetcat/ecosystem | 40546b501959c36744cfa96e4c41eed6f3bda064 | [
"MIT"
] | 1 | 2020-11-24T11:28:11.000Z | 2020-11-24T11:28:11.000Z | #include "Entity.h"
using namespace Ecosystem::Logic;
Entity::Entity()
:
position(0, 0),
age(0),
max_age(0),
energy(0),
max_energy(0)
{}
Entity::Entity(
size_t x,
size_t y,
unsigned short energy,
unsigned short max_energy,
Genome g,
unsigned short max_age
)
:
position(x, y),
age(0),
max_age(max_age),
... | 13.101852 | 49 | 0.686219 | imnetcat |
c77deaf587b22e8d982dc864b5e6c8dd25ca1822 | 1,795 | hpp | C++ | Include/yymp/conversions.hpp | raving-bots/expansim-sdk | 22f5c794523abbe9c27688963b607b13671ff118 | [
"BSL-1.0"
] | 1 | 2020-01-17T14:10:22.000Z | 2020-01-17T14:10:22.000Z | Include/yymp/conversions.hpp | raving-bots/expansim-sdk | 22f5c794523abbe9c27688963b607b13671ff118 | [
"BSL-1.0"
] | null | null | null | Include/yymp/conversions.hpp | raving-bots/expansim-sdk | 22f5c794523abbe9c27688963b607b13671ff118 | [
"BSL-1.0"
] | null | null | null | // Copyright Thomas Goehner 2017
// 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)
/** \file yymp/conversions.hpp
* \brief Conversions between `std` types and \ref yymp::typelist "typelists".... | 31.491228 | 143 | 0.698607 | raving-bots |
c78197e9f53730859ad25cf266526ec216c09545 | 1,294 | hpp | C++ | CAD/Files/PointArray.hpp | BRutan/Cpp | 8acbc6c341f49d6d83168ccd5ba49bd6824214f9 | [
"MIT"
] | null | null | null | CAD/Files/PointArray.hpp | BRutan/Cpp | 8acbc6c341f49d6d83168ccd5ba49bd6824214f9 | [
"MIT"
] | null | null | null | CAD/Files/PointArray.hpp | BRutan/Cpp | 8acbc6c341f49d6d83168ccd5ba49bd6824214f9 | [
"MIT"
] | null | null | null | /* PointArray.hpp
Description:
*Dynamic array for Point objects, using concrete inheritance with Array class.
Member Functions:
// Constructors/Destructor:
*PointArray(): Default destructor.
*PointArray(unsigned int): Overloaded constructor.
*PointArray(const &PointArray): Copy constructor.
*~PointArray()... | 28.755556 | 86 | 0.590417 | BRutan |
c782b446895c73154fe87c0733bf1a59615daee8 | 717 | hpp | C++ | include/msqlite/bind.hpp | ricardocosme/msqlite | 95af5b04831c7af449f87346301b6e26bf749e9f | [
"MIT"
] | 19 | 2020-08-18T21:25:05.000Z | 2022-01-14T03:45:41.000Z | include/msqlite/bind.hpp | ricardocosme/msqlite | 95af5b04831c7af449f87346301b6e26bf749e9f | [
"MIT"
] | null | null | null | include/msqlite/bind.hpp | ricardocosme/msqlite | 95af5b04831c7af449f87346301b6e26bf749e9f | [
"MIT"
] | null | null | null | #pragma once
#include "msqlite/stmt.hpp"
#include "msqlite/pipes/context.hpp"
#include "msqlite/pipes/detail/bind.hpp"
#include <tuple>
#include <utility>
namespace msqlite {
template<typename... Values>
inline void bind(stmt& stmt, Values&&... values) noexcept {
return detail::bind_params(
stmt.get(), ... | 26.555556 | 78 | 0.705718 | ricardocosme |
c786373a9bd63ed6d4f0b044956a38b8e9e073af | 11,355 | cpp | C++ | data/848.cpp | TianyiChen/rdcpp-data | 75c6868c876511e3ce143fdc3c08ddd74c7aa4ea | [
"MIT"
] | null | null | null | data/848.cpp | TianyiChen/rdcpp-data | 75c6868c876511e3ce143fdc3c08ddd74c7aa4ea | [
"MIT"
] | null | null | null | data/848.cpp | TianyiChen/rdcpp-data | 75c6868c876511e3ce143fdc3c08ddd74c7aa4ea | [
"MIT"
] | null | null | null | int TR,
ES
,/*Hp*/lT,TUc ,xTHG,F,EW75O/**/,
tf85/*w*/, QzS
,ae, C8Hh , lBY
,CIrLp, y5,BTs ,a5,XX3 , BlS
, YZt,McfnP2,OOaQn, KwR
,Qa, f5Zj, A, wi06 ,
jp8 /*z2li*/,f0c6ee,wiP4
,C4B
,vX, //BH
Cuq,jZdIIp
,/*D*/uv3,j6P2,
m9Fw , jA , sDOgO,
vZ,
Ag,nAH,
EDZc
,bOMbT /*ue*/ , N /*Wx*/,kzoe
,i9fN, V65
,
A3Ay,t... | 10.855641 | 70 | 0.458741 | TianyiChen |
c7890c0259e323bb9632ae27ef00a561bf50d7b2 | 1,924 | cpp | C++ | component/gui/gui_list.cpp | eboxmaker/eboxFramework-rtt | 9718678422f56faec1cf21a6a8fd3f72441bea33 | [
"MIT"
] | 115 | 2018-08-12T08:41:17.000Z | 2022-03-08T07:43:48.000Z | component/gui/gui_list.cpp | eboxmaker/eboxFramework-rtt | 9718678422f56faec1cf21a6a8fd3f72441bea33 | [
"MIT"
] | 4 | 2018-08-13T10:14:55.000Z | 2019-07-03T06:54:10.000Z | component/gui/gui_list.cpp | eboxmaker/eboxFramework-rtt | 9718678422f56faec1cf21a6a8fd3f72441bea33 | [
"MIT"
] | 59 | 2018-09-02T21:54:25.000Z | 2022-01-13T02:28:28.000Z | #include "gui_list.h"
GuiList::~GuiList(){
ebox_printf("GuiList %s free\r\n",name.c_str());
};
void GuiList::create()
{
show();
}
void GuiList::show()
{
uint32_t color ;
int16_t x1 = x + len -1;
int16_t y1 = y + hight - 1;
color = _gpu->color;
_gpu->fill_rect(x,y,x1,y1,_gpu->back_color);
... | 17.333333 | 63 | 0.557692 | eboxmaker |
c789dd6ae5eb36f026184db7f02fe0836e534497 | 3,913 | cxx | C++ | MITK/Modules/IGI/mitkNifTKIGIObjectFactory.cxx | NifTK/NifTK | 2358b333c89ff1bba1c232eecbbcdc8003305dfe | [
"BSD-3-Clause"
] | 13 | 2018-07-28T13:36:38.000Z | 2021-11-01T19:17:39.000Z | MITK/Modules/IGI/mitkNifTKIGIObjectFactory.cxx | NifTK/NifTK | 2358b333c89ff1bba1c232eecbbcdc8003305dfe | [
"BSD-3-Clause"
] | null | null | null | MITK/Modules/IGI/mitkNifTKIGIObjectFactory.cxx | NifTK/NifTK | 2358b333c89ff1bba1c232eecbbcdc8003305dfe | [
"BSD-3-Clause"
] | 10 | 2018-08-20T07:06:00.000Z | 2021-07-07T07:55:27.000Z | /*=============================================================================
NifTK: A software platform for medical image computing.
Copyright (c) University College London (UCL). All rights reserved.
This software is distributed WITHOUT ANY WARRANTY; without even
the implied warranty of MERCHANTABILITY o... | 29.201493 | 103 | 0.563762 | NifTK |
c78e2cfb01ffa05b25b2a7395dbcb33c581873ee | 191 | hpp | C++ | plugins/assets/include/includes.hpp | shulthz/gwallet | d7ec11bf0566426173b47e2151e9b676e1b4b014 | [
"MIT"
] | 5 | 2019-07-13T08:07:32.000Z | 2020-09-18T12:34:24.000Z | plugins/assets/include/includes.hpp | shulthz/gwallet | d7ec11bf0566426173b47e2151e9b676e1b4b014 | [
"MIT"
] | 23 | 2019-06-19T15:01:29.000Z | 2020-10-01T21:06:03.000Z | plugins/assets/include/includes.hpp | shulthz/gwallet | d7ec11bf0566426173b47e2151e9b676e1b4b014 | [
"MIT"
] | 9 | 2019-07-04T10:00:27.000Z | 2021-05-06T22:39:40.000Z | #include "transfer.hpp"
#include "sellasset.hpp"
#include "borrowasset.hpp"
#include "cancelorder.hpp"
#include "updatefeedproducers.hpp"
#include "issueasset.hpp"
#include "createasset.hpp"
| 23.875 | 34 | 0.780105 | shulthz |
c78f63400e10d36b648fe6967f3e4723a4a975ce | 268 | cpp | C++ | naive_simulation_works/systemc_for_dummies/full_adder/MyTestBenchDriver.cpp | VSPhaneendraPaluri/pvsdrudgeworks | 5827f45567eecbcf0bb606de6adb1fb94fe2d8c6 | [
"MIT"
] | null | null | null | naive_simulation_works/systemc_for_dummies/full_adder/MyTestBenchDriver.cpp | VSPhaneendraPaluri/pvsdrudgeworks | 5827f45567eecbcf0bb606de6adb1fb94fe2d8c6 | [
"MIT"
] | null | null | null | naive_simulation_works/systemc_for_dummies/full_adder/MyTestBenchDriver.cpp | VSPhaneendraPaluri/pvsdrudgeworks | 5827f45567eecbcf0bb606de6adb1fb94fe2d8c6 | [
"MIT"
] | null | null | null | #include "MyTestBenchDriver.h"
void MyTestBenchDriver::Generate_Patterns()
{
wait(5,SC_NS);
sc_uint<3> cstInput;
cstInput = 0;
while(1)
{
TBDriver_a = cstInput[2];
TBDriver_b = cstInput[1];
TBDriver_c = cstInput[0];
wait(5, SC_NS);
cstInput++;
}
}
| 14.888889 | 43 | 0.66791 | VSPhaneendraPaluri |
c797a8b5600d254a01dad1b844b27f0c13ece36e | 294 | hpp | C++ | include/poly_visitor/base_visitor.hpp | hugocm93/poly_visitor | f2e92754d77c20f4eff8dc163891fa8024484144 | [
"MIT"
] | null | null | null | include/poly_visitor/base_visitor.hpp | hugocm93/poly_visitor | f2e92754d77c20f4eff8dc163891fa8024484144 | [
"MIT"
] | null | null | null | include/poly_visitor/base_visitor.hpp | hugocm93/poly_visitor | f2e92754d77c20f4eff8dc163891fa8024484144 | [
"MIT"
] | null | null | null | #pragma once
#include "poly_visitor/detail/base_visitor.hpp"
#include <boost/mp11/list.hpp>
namespace poly_visitor {
template<typename... Visitables>
struct base_visitor : detail::base_visitor_hierarchy<Visitables...>
{
using visitables = boost::mp11::mp_list<Visitables...>;
};
}
| 18.375 | 67 | 0.738095 | hugocm93 |
c798a14d07cf000daacf4e1cb7926ee1dff11ba0 | 1,913 | cpp | C++ | LeetCode/ThousandTwo/1643-kth_smallest_instruction.cpp | Ginkgo-Biloba/Cpp-Repo1-VS | 231c68a055e6bf69a3f7c224e7c0182b67ce5b67 | [
"Apache-2.0"
] | null | null | null | LeetCode/ThousandTwo/1643-kth_smallest_instruction.cpp | Ginkgo-Biloba/Cpp-Repo1-VS | 231c68a055e6bf69a3f7c224e7c0182b67ce5b67 | [
"Apache-2.0"
] | null | null | null | LeetCode/ThousandTwo/1643-kth_smallest_instruction.cpp | Ginkgo-Biloba/Cpp-Repo1-VS | 231c68a055e6bf69a3f7c224e7c0182b67ce5b67 | [
"Apache-2.0"
] | null | null | null | #include "leetcode.hpp"
/* 1643. 第 K 条最小指令
Bob 站在单元格 (0, 0) ,想要前往目的地 destination :(row, column) 。
他只能向 右 或向 下 走。
你可以为 Bob 提供导航 指令 来帮助他到达目的地 destination 。
指令 用字符串表示,其中每个字符:
'H' ,意味着水平向右移动
'V' ,意味着竖直向下移动
能够为 Bob 导航到目的地 destination 的指令可以有多种,例如,如果目的地 destination 是 (2, 3),"HHHVV" 和 "HVHVH" 都是有效 指令 。
然而,Bob 很挑剔。
因为他的幸运数... | 22.244186 | 93 | 0.631469 | Ginkgo-Biloba |
c79aeb5d61c8e6ae74e9460f3acd8dc0f72cade3 | 1,682 | cpp | C++ | test/multi_namespace.cpp | errata-c/ez-bitflags | c942b827d2b3450e00bd4ad3dec497af5afae1d2 | [
"MIT"
] | null | null | null | test/multi_namespace.cpp | errata-c/ez-bitflags | c942b827d2b3450e00bd4ad3dec497af5afae1d2 | [
"MIT"
] | null | null | null | test/multi_namespace.cpp | errata-c/ez-bitflags | c942b827d2b3450e00bd4ad3dec497af5afae1d2 | [
"MIT"
] | null | null | null | #include <catch2/catch.hpp>
#include <ez/BitFlags.hpp>
namespace foo {
enum class Bar {
Zero = 0,
One = 1,
Two = 2,
Three = 3,
_Count,
_EnableOperators,
_None = 0,
};
using Bars = ez::BitFlags<Bar>;
}
namespace sigma {
using Bar = foo::Bar;
using Bars = foo::Bars;
}
TEST_CASE("values") {
SECTION(... | 18.086022 | 63 | 0.591558 | errata-c |
c79bcdb176bd429ee80414e055082c086c013a0d | 1,860 | hpp | C++ | include/header.hpp | Shewa00/lab-04-boost-filesystem-1 | f8b628dab0d92f675f29d9fc673460e32b75197d | [
"MIT"
] | null | null | null | include/header.hpp | Shewa00/lab-04-boost-filesystem-1 | f8b628dab0d92f675f29d9fc673460e32b75197d | [
"MIT"
] | null | null | null | include/header.hpp | Shewa00/lab-04-boost-filesystem-1 | f8b628dab0d92f675f29d9fc673460e32b75197d | [
"MIT"
] | null | null | null | // Copyright 2018 Your Name <your_email>
#ifndef INCLUDE_HEADER_HPP_
#define INCLUDE_HEADER_HPP_
#include <iostream>
#include <fstream>
#include <map>
#include <string>
#include <exception>
#include <boost/filesystem.hpp>
#define bf boost::filesystem
// Имя Брокера, Номер Счёта, Дата, Кол-во
std::map<std::string, s... | 28.181818 | 98 | 0.59086 | Shewa00 |
c79e74ae46c0be9cef63e8a4338d45b23931d0be | 16,804 | cpp | C++ | dali-toolkit/internal/controls/web-view/web-view-impl.cpp | zyndor/dali-toolkit | 9e3fd659c4d25706ab65345bc7c562ac27248325 | [
"Apache-2.0",
"BSD-3-Clause"
] | null | null | null | dali-toolkit/internal/controls/web-view/web-view-impl.cpp | zyndor/dali-toolkit | 9e3fd659c4d25706ab65345bc7c562ac27248325 | [
"Apache-2.0",
"BSD-3-Clause"
] | 1 | 2020-10-19T15:47:43.000Z | 2020-10-19T15:47:43.000Z | dali-toolkit/internal/controls/web-view/web-view-impl.cpp | zyndor/dali-toolkit | 9e3fd659c4d25706ab65345bc7c562ac27248325 | [
"Apache-2.0",
"BSD-3-Clause"
] | null | null | null | /*
* Copyright (c) 2020 Samsung Electronics Co., Ltd.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable... | 26.133748 | 186 | 0.685968 | zyndor |
c7a839b5c1306c996e64481ee0e5f27a138f42ae | 432 | hpp | C++ | sources/cards/spells/Rage.hpp | angeluriot/Magic_royal | a337ce4ad6c3215bbdec8c376d6e88fe97f48f94 | [
"MIT"
] | 1 | 2022-02-02T21:41:59.000Z | 2022-02-02T21:41:59.000Z | sources/cards/spells/Rage.hpp | angeluriot/Magic_royal | a337ce4ad6c3215bbdec8c376d6e88fe97f48f94 | [
"MIT"
] | null | null | null | sources/cards/spells/Rage.hpp | angeluriot/Magic_royal | a337ce4ad6c3215bbdec8c376d6e88fe97f48f94 | [
"MIT"
] | 2 | 2022-02-01T12:59:57.000Z | 2022-03-05T12:50:27.000Z | #ifndef RAGE_HPP
#define RAGE_HPP
#include "cards/Spell.hpp"
class Rage : public Spell
{
public:
Rage();
Rage(const Rage& other) = default;
~Rage();
Rage& operator=(const Rage& other) = default;
Color get_color() const override;
std::string get_name() const override;
std::string get_description() const over... | 17.28 | 46 | 0.717593 | angeluriot |
c7aaf5652af2c150e4bea1419d90367c52328621 | 157 | cpp | C++ | Main.cpp | ChunChunMorning/CrocusEngine | a93a7f813b60bf6f221abaf6b9d580263e708900 | [
"Unlicense"
] | null | null | null | Main.cpp | ChunChunMorning/CrocusEngine | a93a7f813b60bf6f221abaf6b9d580263e708900 | [
"Unlicense"
] | null | null | null | Main.cpp | ChunChunMorning/CrocusEngine | a93a7f813b60bf6f221abaf6b9d580263e708900 | [
"Unlicense"
] | null | null | null | # include <Siv3D.hpp>
# include "Crocus/Crocus.hpp"
void Main()
{
Engine engine;
while (System::Update())
{
engine.update();
engine.draw();
}
}
| 9.235294 | 29 | 0.611465 | ChunChunMorning |
c7aee81f22bb83b58f533417ef10d5ed986109ba | 2,151 | cpp | C++ | src/lab_m1/Tema3/object3D.cpp | stefancocioran/Disco-Party | 1573faa1e586abe572046858d17c834c0a98445b | [
"MIT",
"BSD-3-Clause"
] | null | null | null | src/lab_m1/Tema3/object3D.cpp | stefancocioran/Disco-Party | 1573faa1e586abe572046858d17c834c0a98445b | [
"MIT",
"BSD-3-Clause"
] | null | null | null | src/lab_m1/Tema3/object3D.cpp | stefancocioran/Disco-Party | 1573faa1e586abe572046858d17c834c0a98445b | [
"MIT",
"BSD-3-Clause"
] | null | null | null | #include "object3D.h"
#include <vector>
#include "core/engine.h"
#include "utils/gl_utils.h"
Mesh* object3D::Box(
const std::string& name,
glm::vec3 leftBottomCorner,
float length,
float width,
float height)
{
glm::vec3 corner = glm::vec3(0, 0, 0);
std::vector<VertexFormat> vertices =
{
VertexFormat(corn... | 21.51 | 83 | 0.622966 | stefancocioran |
c7af2c20735053b210aa2b4f90f4222cc5eb7db1 | 79 | cpp | C++ | sprint06/t00/app/src/Invalid.cpp | Hvvang/CppTrack | 3e1854d626d153f5597459200f715a91f6a03107 | [
"MIT"
] | 1 | 2020-08-27T23:41:48.000Z | 2020-08-27T23:41:48.000Z | sprint06/t00/app/src/Invalid.cpp | Hvvang/CppTrack | 3e1854d626d153f5597459200f715a91f6a03107 | [
"MIT"
] | null | null | null | sprint06/t00/app/src/Invalid.cpp | Hvvang/CppTrack | 3e1854d626d153f5597459200f715a91f6a03107 | [
"MIT"
] | null | null | null | #include "Invalid.h"
Invalid::Invalid() :
FoodItem(FoodType::Invalid) { }
| 15.8 | 35 | 0.658228 | Hvvang |
c7b0ed89c549cb59992830d7f59cbc1664478c72 | 707 | cpp | C++ | 11653.cpp | jaemin2682/BAEKJOON_ONLINE_JUDGE | 0d5c6907baee61e1fabdbcd96ea473079a9475ed | [
"MIT"
] | null | null | null | 11653.cpp | jaemin2682/BAEKJOON_ONLINE_JUDGE | 0d5c6907baee61e1fabdbcd96ea473079a9475ed | [
"MIT"
] | null | null | null | 11653.cpp | jaemin2682/BAEKJOON_ONLINE_JUDGE | 0d5c6907baee61e1fabdbcd96ea473079a9475ed | [
"MIT"
] | null | null | null | #include <iostream>
#include <vector>
#include <algorithm>
using namespace std;
bool IsPrime(int num) {
for(int i=2;i*i<=num;i++) {
if(num%i==0) return false;
}
return true;
}
int main(){
int n;
vector<int> list;
cin >> n;
int factor=2;
while(1) {
if(n==1) return 0;
... | 18.605263 | 59 | 0.459689 | jaemin2682 |
c7b570a20ec44cbe4d47d0c44d4be70a6d41fbfa | 8,957 | cpp | C++ | src/capstone-dumper/arm.cpp | owlxiao/capstone-dumper | bfedf0e81b69c43ca27d510f6cc84a6e3d6234e9 | [
"MIT"
] | 16 | 2017-12-12T21:30:44.000Z | 2019-01-11T03:04:13.000Z | src/capstone-dumper/arm.cpp | owlxiao/capstone-dumper | bfedf0e81b69c43ca27d510f6cc84a6e3d6234e9 | [
"MIT"
] | 1 | 2022-01-07T01:00:49.000Z | 2022-01-07T08:08:26.000Z | src/capstone-dumper/arm.cpp | owlxiao/capstone-dumper | bfedf0e81b69c43ca27d510f6cc84a6e3d6234e9 | [
"MIT"
] | 6 | 2020-07-16T08:06:50.000Z | 2022-02-02T13:37:35.000Z | /**
* @file src/capstone-dumper/arm.cpp
* @brief ARM specific code.
* @copyright (c) 2017 Avast Software, licensed under the MIT license
*/
#include <cassert>
#include <iomanip>
#include <iostream>
#include "capstone-dumper/capstone_dumper.h"
using namespace std;
namespace capstone_dumper {
std::string arm_vec... | 32.570909 | 76 | 0.704142 | owlxiao |
c7b5b5f2e8b3e3d776110fba62abf08e46069262 | 2,725 | cpp | C++ | algorithms/p0/p0.cpp | yisonPylkita/studies | e6c98bb0e447530a9568567cf990319fc3ba288f | [
"MIT"
] | null | null | null | algorithms/p0/p0.cpp | yisonPylkita/studies | e6c98bb0e447530a9568567cf990319fc3ba288f | [
"MIT"
] | null | null | null | algorithms/p0/p0.cpp | yisonPylkita/studies | e6c98bb0e447530a9568567cf990319fc3ba288f | [
"MIT"
] | null | null | null | #include <cassert>
#include <string>
#include <array>
#include <vector>
#include <random>
#include <algorithm>
#include <utility>
#include <iostream>
/// Calculate average of given numbers
/// @param[in] arr Numbers to calculate from
/// @returns Average of given numbers. When ampty array
/// was given 0 will be ret... | 25.46729 | 77 | 0.570275 | yisonPylkita |
c7be32c660daa390ce99bc3ae85a693629eedce9 | 1,918 | cpp | C++ | Bullet.cpp | dsedb/space_deadbeef2 | 74664f836a21b6ffa6a3944b4d41a8e39c7e5a67 | [
"MIT"
] | 1 | 2019-04-24T11:01:38.000Z | 2019-04-24T11:01:38.000Z | Bullet.cpp | dsedb/space_deadbeef2 | 74664f836a21b6ffa6a3944b4d41a8e39c7e5a67 | [
"MIT"
] | null | null | null | Bullet.cpp | dsedb/space_deadbeef2 | 74664f836a21b6ffa6a3944b4d41a8e39c7e5a67 | [
"MIT"
] | null | null | null | /* -*- mode:C++; coding:utf-8-with-signature -*-
*
* Bullet.cpp - Project PetitShooter
*
* Copyright (c) 2017 Yuji YASUHARA
*
* 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 ... | 27.4 | 81 | 0.698123 | dsedb |
c7bf7fef57e24b7a2622c667dec50fc9f5f2d88a | 244 | cpp | C++ | docs/parallel/concrt/codesnippet/CPP/walkthrough-creating-an-agent-based-application_16.cpp | bobbrow/cpp-docs | 769b186399141c4ea93400863a7d8463987bf667 | [
"CC-BY-4.0",
"MIT"
] | 965 | 2017-06-25T23:57:11.000Z | 2022-03-31T14:17:32.000Z | docs/parallel/concrt/codesnippet/CPP/walkthrough-creating-an-agent-based-application_16.cpp | bobbrow/cpp-docs | 769b186399141c4ea93400863a7d8463987bf667 | [
"CC-BY-4.0",
"MIT"
] | 3,272 | 2017-06-24T00:26:34.000Z | 2022-03-31T22:14:07.000Z | docs/parallel/concrt/codesnippet/CPP/walkthrough-creating-an-agent-based-application_16.cpp | bobbrow/cpp-docs | 769b186399141c4ea93400863a7d8463987bf667 | [
"CC-BY-4.0",
"MIT"
] | 951 | 2017-06-25T12:36:14.000Z | 2022-03-26T22:49:06.000Z | std::exception error;
if (reader.get_error(error))
{
wcout << error.what() << endl;
}
else
{
unsigned int adler32_sum = (b << 16) | a;
wcout << L"Adler-32 sum is " << hex << adler32_sum << endl;
} | 24.4 | 65 | 0.504098 | bobbrow |
c7c0017735e31f8365dcb160a1082853f4a6420d | 3,208 | cpp | C++ | cpp/pyhrol_init.cpp | dyomas/pyhrol | 6865b7de3377f9d6d3f1b282a39d5980497b703d | [
"BSD-3-Clause"
] | null | null | null | cpp/pyhrol_init.cpp | dyomas/pyhrol | 6865b7de3377f9d6d3f1b282a39d5980497b703d | [
"BSD-3-Clause"
] | null | null | null | cpp/pyhrol_init.cpp | dyomas/pyhrol | 6865b7de3377f9d6d3f1b282a39d5980497b703d | [
"BSD-3-Clause"
] | null | null | null | /*
* Copyright (c) 2013, 2014, Pyhrol, pyhrol@rambler.ru
* GEO: N55.703431,E37.623324 .. N48.742359,E44.536997
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1. Redistributions of source code mu... | 29.431193 | 103 | 0.7048 | dyomas |
c7c5dcd09bfff67c0b566e455ac05376ed783121 | 1,919 | cpp | C++ | code/common/src/algorithms/rwls.cpp | pinam45/USCP | a1a41e33c4fd1c760ff642356b242e4ebf901936 | [
"MIT"
] | 1 | 2020-03-02T23:22:42.000Z | 2020-03-02T23:22:42.000Z | code/common/src/algorithms/rwls.cpp | pinam45/USCP | a1a41e33c4fd1c760ff642356b242e4ebf901936 | [
"MIT"
] | null | null | null | code/common/src/algorithms/rwls.cpp | pinam45/USCP | a1a41e33c4fd1c760ff642356b242e4ebf901936 | [
"MIT"
] | null | null | null | //
// Copyright (c) 2019 Maxime Pinard
//
// Distributed under the MIT license
// See accompanying file LICENSE or copy at
// https://opensource.org/licenses/MIT
//
#include "common/algorithms/rwls.hpp"
void uscp::rwls::to_json(nlohmann::json& j, const uscp::rwls::position_serial& serial)
{
j = nlohmann::json{
{"s... | 34.890909 | 95 | 0.737363 | pinam45 |
c7c77615cc48a98ed57f58deceda77dac2748289 | 1,156 | hpp | C++ | CPP07/ex02/include/Array.hpp | LuigiEnzoFerrari/CPP | 9a6dcae1ab564231d55203f5207ff96bb2f0aa83 | [
"MIT"
] | null | null | null | CPP07/ex02/include/Array.hpp | LuigiEnzoFerrari/CPP | 9a6dcae1ab564231d55203f5207ff96bb2f0aa83 | [
"MIT"
] | null | null | null | CPP07/ex02/include/Array.hpp | LuigiEnzoFerrari/CPP | 9a6dcae1ab564231d55203f5207ff96bb2f0aa83 | [
"MIT"
] | null | null | null | #ifndef ARRAY_H
# define ARRAY_H
# include <stdint.h>
# include <exception>
# include <cstddef>
template <typename T>
class Array {
private:
T* _array;
uint32_t _size;
public:
Array( void ): _array(NULL), _size(0) {
};
Array( uint32_t n ): _array(new T[n]()), _size(n) {
};
Array( const Array& src... | 17.784615 | 60 | 0.525087 | LuigiEnzoFerrari |
c7cb2673a22f473e1f95be5195ff7addf6a1a076 | 1,198 | cpp | C++ | src/_leetcode/leet_278.cpp | turesnake/leetPractice | a87b9b90eb8016038d7e5d3ad8e50e4ceb54d69b | [
"MIT"
] | null | null | null | src/_leetcode/leet_278.cpp | turesnake/leetPractice | a87b9b90eb8016038d7e5d3ad8e50e4ceb54d69b | [
"MIT"
] | null | null | null | src/_leetcode/leet_278.cpp | turesnake/leetPractice | a87b9b90eb8016038d7e5d3ad8e50e4ceb54d69b | [
"MIT"
] | null | null | null | /*
* ====================== leet_278.cpp ==========================
* -- tpr --
* CREATE -- 2020.05.30
* MODIFY --
* ----------------------------------------------------------
* 278. 第一个错误的版本
*/
#include "innL... | 19.015873 | 65 | 0.373122 | turesnake |
c7d325315318298d6975b85d9c93d8a695f308a4 | 895 | cc | C++ | Cpp_Primer/5rd/0314/smart_point/unique_ptr.cc | honeytavis/cpp | 232cb0add3f5b481b62a9a23d086514e2c425279 | [
"MIT"
] | null | null | null | Cpp_Primer/5rd/0314/smart_point/unique_ptr.cc | honeytavis/cpp | 232cb0add3f5b481b62a9a23d086514e2c425279 | [
"MIT"
] | null | null | null | Cpp_Primer/5rd/0314/smart_point/unique_ptr.cc | honeytavis/cpp | 232cb0add3f5b481b62a9a23d086514e2c425279 | [
"MIT"
] | null | null | null | #include <iostream>
#include <memory>
#include <vector>
std::unique_ptr<int> getval()
{
std::unique_ptr<int> up(new int(88));
return up;
}
int main()
{
std::unique_ptr<int> api(new int(88));
//std::cout << "api = " << api << '\n'; // error
//std::unique_ptr<int> one(api); // error
std::cout << "*api = " << ... | 23.552632 | 51 | 0.548603 | honeytavis |
c7d77baabb1179e72a3c93ba050d8e2277c07e39 | 786 | cpp | C++ | src/Always.cpp | justin-chandra/rshell | 7c802cfb028642433be241b61905cce3442220a8 | [
"BSD-3-Clause"
] | 1 | 2017-02-17T17:05:11.000Z | 2017-02-17T17:05:11.000Z | src/Always.cpp | justin-chandra/rshell | 7c802cfb028642433be241b61905cce3442220a8 | [
"BSD-3-Clause"
] | null | null | null | src/Always.cpp | justin-chandra/rshell | 7c802cfb028642433be241b61905cce3442220a8 | [
"BSD-3-Clause"
] | null | null | null | #include <iostream>
using namespace std;
#include "Command.h"
#include "Always.h"
Always::Always()
{
}
/*Always::Always (Rshell *f, Rshell *s)
{
this->first = f;
this->second = s;
}
*/
Always::Always(stack<char *> s)
{
Command * c = new Command(s);
this->second = c;
}
Always::~Always()
{
}
bool Always::eva... | 12.47619 | 39 | 0.636132 | justin-chandra |
c7d862c14e02c38ffec272b9f077f97d13517d55 | 3,102 | cpp | C++ | Source/Tests/Zip2/ZipTest2.cpp | Dschee/Neptune | 016d132f8e4449e6b0f79fbc5ce25de365eab983 | [
"BSD-3-Clause"
] | 17 | 2015-09-17T06:53:47.000Z | 2021-08-09T03:41:21.000Z | Source/Tests/Zip2/ZipTest2.cpp | Dschee/Neptune | 016d132f8e4449e6b0f79fbc5ce25de365eab983 | [
"BSD-3-Clause"
] | 4 | 2017-12-12T17:38:57.000Z | 2019-07-24T05:03:37.000Z | Source/Tests/Zip2/ZipTest2.cpp | Dschee/Neptune | 016d132f8e4449e6b0f79fbc5ce25de365eab983 | [
"BSD-3-Clause"
] | 18 | 2015-12-09T21:27:41.000Z | 2020-11-27T11:38:49.000Z | /*****************************************************************
|
| Zip Test Program 2
|
| (c) 2001-2006 Gilles Boccon-Gibod
| Author: Gilles Boccon-Gibod (bok@bok.net)
|
****************************************************************/
/*-------------------------------------------------------------... | 33.354839 | 158 | 0.445197 | Dschee |
939f2a7a22e69fe83fa6b0d729c1724491fd3934 | 2,735 | cpp | C++ | tc 160+/BinaryCodes.cpp | ibudiselic/contest-problem-solutions | 88082981b4d87da843472e3ca9ed5f4c42b3f0aa | [
"BSD-2-Clause"
] | 3 | 2015-05-25T06:24:37.000Z | 2016-09-10T07:58:00.000Z | tc 160+/BinaryCodes.cpp | ibudiselic/contest-problem-solutions | 88082981b4d87da843472e3ca9ed5f4c42b3f0aa | [
"BSD-2-Clause"
] | null | null | null | tc 160+/BinaryCodes.cpp | ibudiselic/contest-problem-solutions | 88082981b4d87da843472e3ca9ed5f4c42b3f0aa | [
"BSD-2-Clause"
] | 5 | 2015-05-25T06:24:40.000Z | 2021-08-19T19:22:29.000Z | #include <algorithm>
#include <cassert>
#include <cstdio>
#include <iostream>
#include <sstream>
#include <string>
#include <vector>
#include <cstring>
using namespace std;
class BinaryCodes {
public:
int ambiguous(vector <string> code) {
}
// BEGIN CUT HERE
public:
void r... | 54.7 | 365 | 0.589762 | ibudiselic |
93a3c709471c6d4bc5f12bc68c4e1602cc49b731 | 109 | hpp | C++ | src/constants.hpp | Thanduriel/StableNN | 2457fbadee8491eaa3d52ff76d66dc45c27cb84a | [
"MIT"
] | null | null | null | src/constants.hpp | Thanduriel/StableNN | 2457fbadee8491eaa3d52ff76d66dc45c27cb84a | [
"MIT"
] | null | null | null | src/constants.hpp | Thanduriel/StableNN | 2457fbadee8491eaa3d52ff76d66dc45c27cb84a | [
"MIT"
] | null | null | null | #pragma once
constexpr double PI = 3.141592653589793238463;
constexpr float PI_F = 3.141592653589793238463f; | 27.25 | 48 | 0.825688 | Thanduriel |
93a41aa70ac53c85810624036e4c77e07fe0c615 | 1,083 | cpp | C++ | LastSolve/10789.cpp | abdullah1107/uva | 5c7107d41a586e30aa7cc91cd7498b82dbc506ee | [
"MIT"
] | null | null | null | LastSolve/10789.cpp | abdullah1107/uva | 5c7107d41a586e30aa7cc91cd7498b82dbc506ee | [
"MIT"
] | null | null | null | LastSolve/10789.cpp | abdullah1107/uva | 5c7107d41a586e30aa7cc91cd7498b82dbc506ee | [
"MIT"
] | null | null | null | #include<iostream>
#include<cstdio>
#include<cmath>
#include<cctype>
#include<cstring>
#include<algorithm>
using namespace std;
int prime(long long int n)
{
if(n==2)
return 1;
if(n==1)
return 0;
int root,i,p=0;
root=sqrt(n);
for(i=2;i<=root;i++)
{
if(n%i==0)
{
... | 16.164179 | 34 | 0.394275 | abdullah1107 |
93a77220f27e0b757bc8a83cc7c1d040309528ec | 13,638 | hpp | C++ | disc-fe/src/evaluators/Panzer_DOFDiv_impl.hpp | hillyuan/Panzer | 13ece3ea4c145c4d7b6339e3ad6332a501932ea8 | [
"BSD-3-Clause"
] | 1 | 2022-03-22T03:49:50.000Z | 2022-03-22T03:49:50.000Z | disc-fe/src/evaluators/Panzer_DOFDiv_impl.hpp | hillyuan/Panzer | 13ece3ea4c145c4d7b6339e3ad6332a501932ea8 | [
"BSD-3-Clause"
] | null | null | null | disc-fe/src/evaluators/Panzer_DOFDiv_impl.hpp | hillyuan/Panzer | 13ece3ea4c145c4d7b6339e3ad6332a501932ea8 | [
"BSD-3-Clause"
] | null | null | null | // @HEADER
// ***********************************************************************
//
// Panzer: A partial differential equation assembly
// engine for strongly coupled complex multiphysics systems
// Copyright (2011) Sandia Corporation
//
// Under the terms of Contract DE-AC04-94AL85... | 39.189655 | 157 | 0.634037 | hillyuan |
93b91bba9555bd2c348233b85e15857ec9e48041 | 2,277 | cpp | C++ | src/FormelGenerator.cpp | beltoforion/math-parser-benchmark-project | dcdb8cf290d580c564c9e57d21c6c4454e702363 | [
"Apache-2.0",
"Zlib",
"MIT"
] | 1 | 2021-03-07T13:17:37.000Z | 2021-03-07T13:17:37.000Z | src/FormelGenerator.cpp | beltoforion/math-parser-benchmark-project | dcdb8cf290d580c564c9e57d21c6c4454e702363 | [
"Apache-2.0",
"Zlib",
"MIT"
] | null | null | null | src/FormelGenerator.cpp | beltoforion/math-parser-benchmark-project | dcdb8cf290d580c564c9e57d21c6c4454e702363 | [
"Apache-2.0",
"Zlib",
"MIT"
] | null | null | null | #include <cstdio>
#include "FormelGenerator.h"
int FormelGenerator::Make(char* Buffer, int Length, int Items, int NumberOfVars)
{
pos = 0;
items = Items;
len = Length;
buf = Buffer;
if (NumberOfVars > 20)
vars = 20;
else
vars = NumberOfVars;
Make();
Buffer[pos] = 0;
return Items - items;
}
bool F... | 13.394118 | 80 | 0.51076 | beltoforion |
93c0e85f77c1ab118ac5dd7434424a9ef1ed09a0 | 455 | cpp | C++ | chefPrice.cpp | avinal/C_ode | f056da37c8c56a4a62a06351c2ea3773d16d1b11 | [
"MIT"
] | 1 | 2020-08-23T20:21:35.000Z | 2020-08-23T20:21:35.000Z | chefPrice.cpp | avinal/C_ode | f056da37c8c56a4a62a06351c2ea3773d16d1b11 | [
"MIT"
] | null | null | null | chefPrice.cpp | avinal/C_ode | f056da37c8c56a4a62a06351c2ea3773d16d1b11 | [
"MIT"
] | 2 | 2019-03-18T10:22:13.000Z | 2021-01-03T10:12:28.000Z | #include <iostream>
using namespace std;
int main(int argc, char const *argv[])
{
int test;
cin >> test;
while (test--)
{
int n, k;
cin >> n >> k;
int decre = 0;
int input;
for (size_t i = 0; i < n; i++)
{
cin >> input;
if (input >... | 16.25 | 38 | 0.373626 | avinal |
93c43a3f9ec393d34eede7828dd8f5634f98db03 | 494 | cpp | C++ | verify/verify-aoj-dsl/aoj-dsl-3-d-cartesiantree.test.cpp | NachiaVivias/library | 73091ddbb00bc59328509c8f6e662fea2b772994 | [
"CC0-1.0"
] | 69 | 2020-11-06T05:21:42.000Z | 2022-03-29T03:38:35.000Z | verify/verify-aoj-dsl/aoj-dsl-3-d-cartesiantree.test.cpp | NachiaVivias/library | 73091ddbb00bc59328509c8f6e662fea2b772994 | [
"CC0-1.0"
] | 21 | 2020-07-25T04:47:12.000Z | 2022-02-01T14:39:29.000Z | verify/verify-aoj-dsl/aoj-dsl-3-d-cartesiantree.test.cpp | NachiaVivias/library | 73091ddbb00bc59328509c8f6e662fea2b772994 | [
"CC0-1.0"
] | 9 | 2020-11-06T11:55:10.000Z | 2022-03-20T04:45:31.000Z | #define PROBLEM \
"http://judge.u-aizu.ac.jp/onlinejudge/description.jsp?id=DSL_3_D"
#include "../../template/template.hpp"
#include "../../tree/cartesian-tree.hpp"
#include "../../tree/heavy-light-decomposition.hpp"
using namespace Nyaan; void Nyaan::solve() {
ini(N, L);
vi a(N);
in(a);
vvi g;
int root;
... | 26 | 68 | 0.619433 | NachiaVivias |
93c510ea0266b39d627dd3696aaa6b29f9e40b9b | 1,285 | cpp | C++ | clients/gtest/rocblas_gtest_main.cpp | gilbertlee-amd/rocBLAS | 8f1482fba33707dc885d30ff84b0bc1018ec3702 | [
"MIT"
] | null | null | null | clients/gtest/rocblas_gtest_main.cpp | gilbertlee-amd/rocBLAS | 8f1482fba33707dc885d30ff84b0bc1018ec3702 | [
"MIT"
] | null | null | null | clients/gtest/rocblas_gtest_main.cpp | gilbertlee-amd/rocBLAS | 8f1482fba33707dc885d30ff84b0bc1018ec3702 | [
"MIT"
] | null | null | null | /* ************************************************************************
* Copyright 2016 Advanced Micro Devices, Inc.
* ************************************************************************ */
#include <gtest/gtest.h>
#include <stdexcept>
#include "utility.h"
#define GTEST_DATA "rocblas_gtest.data"
// Retur... | 22.155172 | 90 | 0.441245 | gilbertlee-amd |
93c6f829d6093adcef851d843814056a3df87ebe | 33,773 | cpp | C++ | core/src/ctrl/EvolveAICtrl.cpp | hhexo/mush | 547d8cc6b3b599b925dbfef604c64c59adc7c1aa | [
"Apache-2.0"
] | null | null | null | core/src/ctrl/EvolveAICtrl.cpp | hhexo/mush | 547d8cc6b3b599b925dbfef604c64c59adc7c1aa | [
"Apache-2.0"
] | null | null | null | core/src/ctrl/EvolveAICtrl.cpp | hhexo/mush | 547d8cc6b3b599b925dbfef604c64c59adc7c1aa | [
"Apache-2.0"
] | null | null | null | // Copyright 2015 Dario Domizioli
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to... | 38.68614 | 112 | 0.562994 | hhexo |
93d38a4005bc57c8ef82604645e3de32b5d0b955 | 741 | cpp | C++ | Adobe/1.cpp | aabhas-sao/6Companies30Days | 0c07f62b05e18c36fc5262cd51c251b8a6301a2f | [
"MIT"
] | null | null | null | Adobe/1.cpp | aabhas-sao/6Companies30Days | 0c07f62b05e18c36fc5262cd51c251b8a6301a2f | [
"MIT"
] | null | null | null | Adobe/1.cpp | aabhas-sao/6Companies30Days | 0c07f62b05e18c36fc5262cd51c251b8a6301a2f | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
using namespace std;
vector<int> subarraySum(int arr[], int n, long long s) {
int i = 0, j = -1;
long long sum = 1LL * 0;
vector<int> v(1, -1);
for (int k = 0; k < n; k++) {
sum += arr[k];
j++;
while (sum > s && i < j) {
sum -= arr[i];
i++;
}
if (sum ... | 16.108696 | 56 | 0.462888 | aabhas-sao |
93d4a0578753996837244cb666a0717041686f30 | 3,244 | cpp | C++ | examples/producers/procedural_producer.cpp | Herajy/MediaIPC | 1a8228596d0a7182569384ae918b61cdc68fa8d7 | [
"MIT"
] | 14 | 2018-11-10T06:16:53.000Z | 2022-01-14T04:41:53.000Z | examples/producers/procedural_producer.cpp | Herajy/MediaIPC | 1a8228596d0a7182569384ae918b61cdc68fa8d7 | [
"MIT"
] | null | null | null | examples/producers/procedural_producer.cpp | Herajy/MediaIPC | 1a8228596d0a7182569384ae918b61cdc68fa8d7 | [
"MIT"
] | 9 | 2018-07-26T23:21:23.000Z | 2022-01-06T02:39:19.000Z | #ifdef _WIN32
#define _USE_MATH_DEFINES
#endif
#include <chrono>
#include <cmath>
#include <cstring>
#include <iostream>
#include <stdexcept>
#include <stdint.h>
#include <thread>
using std::cin;
using std::cout;
using std::endl;
//When building your own producers, this will be #include <MediaIPC/MediaProducer.h>
#in... | 28.964286 | 104 | 0.680641 | Herajy |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.