hexsha stringlengths 40 40 | size int64 7 1.05M | ext stringclasses 13
values | lang stringclasses 1
value | max_stars_repo_path stringlengths 4 269 | max_stars_repo_name stringlengths 5 108 | max_stars_repo_head_hexsha stringlengths 40 40 | max_stars_repo_licenses listlengths 1 9 | max_stars_count int64 1 191k ⌀ | max_stars_repo_stars_event_min_datetime stringlengths 24 24 ⌀ | max_stars_repo_stars_event_max_datetime stringlengths 24 24 ⌀ | max_issues_repo_path stringlengths 4 269 | max_issues_repo_name stringlengths 5 116 | max_issues_repo_head_hexsha stringlengths 40 40 | max_issues_repo_licenses listlengths 1 9 | max_issues_count int64 1 67k ⌀ | max_issues_repo_issues_event_min_datetime stringlengths 24 24 ⌀ | max_issues_repo_issues_event_max_datetime stringlengths 24 24 ⌀ | max_forks_repo_path stringlengths 4 269 | max_forks_repo_name stringlengths 5 116 | max_forks_repo_head_hexsha stringlengths 40 40 | max_forks_repo_licenses listlengths 1 9 | max_forks_count int64 1 105k ⌀ | max_forks_repo_forks_event_min_datetime stringlengths 24 24 ⌀ | max_forks_repo_forks_event_max_datetime stringlengths 24 24 ⌀ | content stringlengths 7 1.05M | avg_line_length float64 1.21 330k | max_line_length int64 6 990k | alphanum_fraction float64 0.01 0.99 | author_id stringlengths 2 40 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
d8125a64d6924506b9204f640e33bf63d6afaa7c | 7,145 | cc | C++ | src/pixloc/main.cc | kstenschke/pixloc | 041ba39a0a89149eba08e59689b77355ed6c652f | [
"BSD-3-Clause"
] | 2 | 2019-03-04T20:41:03.000Z | 2019-12-23T20:21:34.000Z | src/pixloc/main.cc | kstenschke/pixloc | 041ba39a0a89149eba08e59689b77355ed6c652f | [
"BSD-3-Clause"
] | null | null | null | src/pixloc/main.cc | kstenschke/pixloc | 041ba39a0a89149eba08e59689b77355ed6c652f | [
"BSD-3-Clause"
] | null | null | null | /*
Copyright (c) 2019, Kay Stenschke
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 conditions and ... | 41.540698 | 121 | 0.675997 | kstenschke |
d81564e8fbc1548223fa8e2fabc020737e35a4d1 | 10,973 | cpp | C++ | src/CConcatFind.cpp | colinw7/CConcat | 59a653c7730a5fbebe6fd8df8ec47c94d4467c6c | [
"MIT"
] | null | null | null | src/CConcatFind.cpp | colinw7/CConcat | 59a653c7730a5fbebe6fd8df8ec47c94d4467c6c | [
"MIT"
] | null | null | null | src/CConcatFind.cpp | colinw7/CConcat | 59a653c7730a5fbebe6fd8df8ec47c94d4467c6c | [
"MIT"
] | null | null | null | #include <CConcatFind.h>
#include <CCommentParser.h>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <iostream>
class CommentParser : public CCommentParser {
public:
CommentParser(CConcatFind *find) :
find_(find) {
}
void put_comment(char c) override {
if (find_->isComment())
find... | 18.984429 | 94 | 0.504238 | colinw7 |
d8197aab074d8788bddf671d07a4e2f95f146e8b | 462 | cpp | C++ | leetcode/422. Valid Word Square/s1.cpp | zhuohuwu0603/leetcode_cpp_lzl124631x | 6a579328810ef4651de00fde0505934d3028d9c7 | [
"Fair"
] | 787 | 2017-05-12T05:19:57.000Z | 2022-03-30T12:19:52.000Z | leetcode/422. Valid Word Square/s1.cpp | aerlokesh494/LeetCode | 0f2cbb28d5a9825b51a8d3b3a0ae0c30d7ff155f | [
"Fair"
] | 8 | 2020-03-16T05:55:38.000Z | 2022-03-09T17:19:17.000Z | leetcode/422. Valid Word Square/s1.cpp | aerlokesh494/LeetCode | 0f2cbb28d5a9825b51a8d3b3a0ae0c30d7ff155f | [
"Fair"
] | 247 | 2017-04-30T15:07:50.000Z | 2022-03-30T09:58:57.000Z | // OJ: https://leetcode.com/problems/valid-word-square/
// Author: github.com/lzl124631x
// Time: O(MN)
// Space: O(1)
class Solution {
public:
bool validWordSquare(vector<string>& words) {
for (int i = 0, M = words.size(); i < M; ++i) {
for (int j = 0, N = words[i].size(); j < N; ++j) {
... | 30.8 | 95 | 0.493506 | zhuohuwu0603 |
d81a6be099ed31ab5eece1cd31421cee7f039029 | 13,287 | cpp | C++ | platforms/cuda/src/CudaTestKernels.cpp | WangXinyan940/openmm-nlexample | 0f336b965fca580787565a325f1760b00413c1f6 | [
"MIT"
] | null | null | null | platforms/cuda/src/CudaTestKernels.cpp | WangXinyan940/openmm-nlexample | 0f336b965fca580787565a325f1760b00413c1f6 | [
"MIT"
] | null | null | null | platforms/cuda/src/CudaTestKernels.cpp | WangXinyan940/openmm-nlexample | 0f336b965fca580787565a325f1760b00413c1f6 | [
"MIT"
] | null | null | null | #include "CudaTestKernels.h"
#include "CudaTestKernelSources.h"
#include "openmm/internal/ContextImpl.h"
#include "openmm/cuda/CudaBondedUtilities.h"
#include "openmm/cuda/CudaNonbondedUtilities.h"
#include "openmm/cuda/CudaForceInfo.h"
#include "openmm/cuda/CudaParameterSet.h"
#include "CudaKernelSources.h"
#include <... | 47.623656 | 144 | 0.582675 | WangXinyan940 |
d820abb05e5cccc0c412ca7c15fae0b5889c45a6 | 3,529 | hpp | C++ | cplusplus/RCF/include/RCF/thread/posix_event.hpp | ASMlover/study | 5878f862573061f94c5776a351e30270dfd9966a | [
"BSD-2-Clause"
] | 22 | 2015-05-18T07:04:36.000Z | 2021-08-02T03:01:43.000Z | cplusplus/RCF/include/RCF/thread/posix_event.hpp | ASMlover/study | 5878f862573061f94c5776a351e30270dfd9966a | [
"BSD-2-Clause"
] | 1 | 2017-08-31T22:13:57.000Z | 2017-09-05T15:00:25.000Z | cplusplus/RCF/include/RCF/thread/posix_event.hpp | ASMlover/study | 5878f862573061f94c5776a351e30270dfd9966a | [
"BSD-2-Clause"
] | 6 | 2015-06-06T07:16:12.000Z | 2021-07-06T13:45:56.000Z |
//******************************************************************************
// RCF - Remote Call Framework
//
// Copyright (c) 2005 - 2013, Delta V Software. All rights reserved.
// http://www.deltavsoft.com
//
// RCF is distributed under dual licenses - closed source or GPL.
// Consult your particular license fo... | 22.767742 | 94 | 0.618305 | ASMlover |
d8211212f095c10cb7d9de126a936bfce4d71079 | 971 | cpp | C++ | SecondaryTreeIndexTest.cpp | spakai/index_search | 75a39d536781cb3e2f91ffea496b003ca5c51ebf | [
"Apache-2.0"
] | null | null | null | SecondaryTreeIndexTest.cpp | spakai/index_search | 75a39d536781cb3e2f91ffea496b003ca5c51ebf | [
"Apache-2.0"
] | null | null | null | SecondaryTreeIndexTest.cpp | spakai/index_search | 75a39d536781cb3e2f91ffea496b003ca5c51ebf | [
"Apache-2.0"
] | null | null | null | #include "gmock/gmock.h"
#include "SecondaryTreeIndex.h"
#include "FileTable.h"
using namespace testing;
class SecondaryTreeIndexTest : public Test {
public:
FileTable ft;
SecondaryTreeIndex index;
void SetUp() override {
ft.init("../csv/abnumber.csv");
index.buil... | 26.243243 | 71 | 0.69413 | spakai |
d82341412f1d05f2ee915c5899a853d5c0a3814b | 25,543 | cpp | C++ | Clerk/UI/Schedulers/SchedulerDialog.cpp | sergeylenkov/Clerk | b220864e89559207c5eeea113668891236fcbfb9 | [
"MIT"
] | 14 | 2016-11-01T15:48:02.000Z | 2020-07-15T13:00:27.000Z | Clerk/UI/Schedulers/SchedulerDialog.cpp | sergeylenkov/Clerk | b220864e89559207c5eeea113668891236fcbfb9 | [
"MIT"
] | 29 | 2017-11-16T04:15:33.000Z | 2021-12-22T07:15:42.000Z | Clerk/UI/Schedulers/SchedulerDialog.cpp | sergeylenkov/Clerk | b220864e89559207c5eeea113668891236fcbfb9 | [
"MIT"
] | 2 | 2018-08-15T15:25:11.000Z | 2019-01-28T12:49:50.000Z | #include "SchedulerDialog.h"
SchedulerDialog::SchedulerDialog(wxFrame *parent, const wxChar *title, int x, int y, int width, int height) : wxFrame(parent, -1, title, wxPoint(x, y), wxSize(width, height), wxDEFAULT_FRAME_STYLE & ~(wxRESIZE_BORDER | wxMAXIMIZE_BOX)) {
SetBackgroundColour(wxColor(*wxWHITE));
this->Set... | 31.849127 | 237 | 0.737501 | sergeylenkov |
d827bf26b4e2928646bc027ee89cd41ebd71d443 | 26,379 | cpp | C++ | qamsource/podmgr/podserver/commonDownloadManager/cdownloadcvtvalidationmgr.cpp | rdkcmf/rdk-mediaframework | 55c7753eedaeb15719c5825f212372857459a87e | [
"Apache-2.0"
] | null | null | null | qamsource/podmgr/podserver/commonDownloadManager/cdownloadcvtvalidationmgr.cpp | rdkcmf/rdk-mediaframework | 55c7753eedaeb15719c5825f212372857459a87e | [
"Apache-2.0"
] | null | null | null | qamsource/podmgr/podserver/commonDownloadManager/cdownloadcvtvalidationmgr.cpp | rdkcmf/rdk-mediaframework | 55c7753eedaeb15719c5825f212372857459a87e | [
"Apache-2.0"
] | null | null | null | /*
* If not stated otherwise in this file or this component's LICENSE file the
* following copyright and licenses apply:
*
* Copyright 2011 RDK Management
*
* 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... | 41.152886 | 163 | 0.519732 | rdkcmf |
d829b711b85637c4e414287e74e1dbe2cd3acc9d | 4,609 | cpp | C++ | cpp-htp/standard/ch07solutions/Ex07_25/Part_B/Ex07_25.cpp | yanshengjia/cplusplus-practice-range | 6767a0ac50de8b532255511cd450dc84c66d1517 | [
"Apache-2.0"
] | 75 | 2020-03-23T11:00:31.000Z | 2022-02-20T05:22:53.000Z | cpp-htp/standard/ch07solutions/Ex07_25/Part_B/Ex07_25.cpp | yanshengjia/cplusplus-practice-range | 6767a0ac50de8b532255511cd450dc84c66d1517 | [
"Apache-2.0"
] | null | null | null | cpp-htp/standard/ch07solutions/Ex07_25/Part_B/Ex07_25.cpp | yanshengjia/cplusplus-practice-range | 6767a0ac50de8b532255511cd450dc84c66d1517 | [
"Apache-2.0"
] | 39 | 2020-04-03T23:47:24.000Z | 2022-01-19T05:06:39.000Z | // Exercise 7.25 Part B Solution: Ex07_25.cpp
#include <iostream>
#include <iomanip>
#include <cstdlib>
#include <ctime>
using namespace std;
const int SIZE = 8;
const int TOURS = 1000;
const int MAXMOVES = 65;
bool validMove( int, int, int, const int [][ SIZE ] );
int main()
{
int currentRow;
... | 35.453846 | 77 | 0.505099 | yanshengjia |
d82b5475b787e5cea074b426e64a88be7348816a | 1,725 | cc | C++ | gnc/gnc_autocode/src/ekf.cc | PeterWofford/astrobee | d4c05f6a938f0d56f071ee79ce86d90c24f1b2cb | [
"Apache-2.0"
] | 629 | 2017-08-31T23:09:00.000Z | 2022-03-30T11:55:40.000Z | gnc/gnc_autocode/src/ekf.cc | PeterWofford/astrobee | d4c05f6a938f0d56f071ee79ce86d90c24f1b2cb | [
"Apache-2.0"
] | 269 | 2018-05-05T12:31:16.000Z | 2022-03-30T22:04:11.000Z | gnc/gnc_autocode/src/ekf.cc | PeterWofford/astrobee | d4c05f6a938f0d56f071ee79ce86d90c24f1b2cb | [
"Apache-2.0"
] | 248 | 2017-08-31T23:20:56.000Z | 2022-03-30T22:29:16.000Z | /* Copyright (c) 2017, United States Government, as represented by the
* Administrator of the National Aeronautics and Space Administration.
*
* All rights reserved.
*
* The Astrobee platform is licensed under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with... | 30.263158 | 93 | 0.718261 | PeterWofford |
d831c62da5ee18486b6488686d337f48022282c6 | 4,913 | cpp | C++ | disasm/cdis/CapstoneChunk.cpp | stjordanis/ViDi | 91a001e024ee03a1a4fb07a8c11e6d66a04306f1 | [
"BSD-2-Clause"
] | 77 | 2016-10-29T23:00:23.000Z | 2021-12-26T13:15:22.000Z | disasm/cdis/CapstoneChunk.cpp | stjordanis/ViDi | 91a001e024ee03a1a4fb07a8c11e6d66a04306f1 | [
"BSD-2-Clause"
] | 2 | 2018-03-27T14:47:11.000Z | 2019-11-29T02:06:08.000Z | disasm/cdis/CapstoneChunk.cpp | stjordanis/ViDi | 91a001e024ee03a1a4fb07a8c11e6d66a04306f1 | [
"BSD-2-Clause"
] | 23 | 2016-10-30T23:28:38.000Z | 2021-12-23T08:34:56.000Z | #include "CapstoneChunk.h"
using namespace minidis;
#define MAX_ARG_NUM 4
bool CapstoneChunk::fetchTargetAddr(const size_t argNum, TargetValue &targetVal, cs_detail *m_detail) const
{
if (!m_detail) return false;
size_t cnt = static_cast<size_t>(m_detail->x86.op_count);
if (argNum >= cnt) return false;
... | 28.563953 | 107 | 0.611235 | stjordanis |
d835aa288ed1ec0e1c7e231d37c119144dfa4e37 | 1,482 | cpp | C++ | libyangmeeting2/src/src/YangMeetingFactory.cpp | yangxinghai/yangrtc | 92cc28ade5af6cbe22c151cd1220ab12816694e7 | [
"MIT"
] | 23 | 2021-09-13T06:24:34.000Z | 2022-03-24T10:05:12.000Z | libyangmeeting2/src/src/YangMeetingFactory.cpp | yangxinghai/yangrtc | 92cc28ade5af6cbe22c151cd1220ab12816694e7 | [
"MIT"
] | null | null | null | libyangmeeting2/src/src/YangMeetingFactory.cpp | yangxinghai/yangrtc | 92cc28ade5af6cbe22c151cd1220ab12816694e7 | [
"MIT"
] | 9 | 2021-09-13T06:27:44.000Z | 2022-03-02T00:23:17.000Z | /*
* YangUtilFactory.cpp
*
* Created on: 2020年10月17日
* Author: yang
*/
#include "YangMeetingHandleImpl.h"
#include <yangmeeting/yangmeetingtype.h>
#include <yangmeeting/YangMeetingFactory.h>
#include "yangutil/sys/YangIni.h"
#include "YangMeetingMessageHandle.h"
YangMeetingFactory::YangMeetingFactory() {... | 29.64 | 121 | 0.772605 | yangxinghai |
d838ab09c72fdd45c44f768858bf4401a4632c58 | 1,513 | cpp | C++ | vivi/vivi64/CommandLine.cpp | vivisuke/openViVi | d3e57727393bfc48625945f09ca743e81bf14817 | [
"MIT"
] | 54 | 2020-02-15T23:17:25.000Z | 2021-11-14T17:13:22.000Z | vivi/vivi64/CommandLine.cpp | vivisuke/openViVi | d3e57727393bfc48625945f09ca743e81bf14817 | [
"MIT"
] | 11 | 2020-06-01T08:04:40.000Z | 2020-11-22T02:18:41.000Z | vivi/vivi64/CommandLine.cpp | vivisuke/openViVi | d3e57727393bfc48625945f09ca743e81bf14817 | [
"MIT"
] | 1 | 2020-06-01T07:51:47.000Z | 2020-06-01T07:51:47.000Z | #include <QKeyEvent>
#include "CommandLine.h"
CommandLine::CommandLine(QWidget *parent)
: QLineEdit(parent)
{
}
CommandLine::~CommandLine()
{
}
void CommandLine::focusOutEvent( QFocusEvent * event )
{
QLineEdit::focusOutEvent(event);
emit focusOut();
}
void CommandLine::keyPressEvent(QKeyEvent *event)
{
const bo... | 22.25 | 75 | 0.630535 | vivisuke |
d83ac1d2a5b8f88c4c3ec8caac492348a20fd75a | 1,826 | cpp | C++ | CarpOS/Keyboard.cpp | cartman300/CarpOS | c8ab9332f5cd7953601aa5b528cd3f0467770c8c | [
"Unlicense"
] | 2 | 2015-12-24T10:12:55.000Z | 2017-05-03T12:13:54.000Z | CarpOS/Keyboard.cpp | cartman300/CarpOS | c8ab9332f5cd7953601aa5b528cd3f0467770c8c | [
"Unlicense"
] | null | null | null | CarpOS/Keyboard.cpp | cartman300/CarpOS | c8ab9332f5cd7953601aa5b528cd3f0467770c8c | [
"Unlicense"
] | 1 | 2022-01-21T02:06:42.000Z | 2022-01-21T02:06:42.000Z | #include "Keyboard.h"
#include "Kernel.h"
#include <intrin.h>
#include <string.h>
byte kbdus[128] = {
0, 27, '1', '2', '3', '4', '5', '6', '7', '8', /* 9 */
'9', '0', '-', '=', '\b', /* Backspace */
'\t', /* Tab */
'q', 'w', 'e', 'r', /* 19 */
't', 'y', 'u', 'i', 'o', 'p', '[', ']', '\n', /* Enter key */
... | 20.065934 | 63 | 0.470975 | cartman300 |
d83c67feb35240718090f52771b772529d970e9c | 1,150 | cpp | C++ | solutions/LeetCode/C++/877.cpp | timxor/leetcode-journal | 5f1cb6bcc44a5bc33d88fb5cdb4126dfc6f4232a | [
"MIT"
] | 854 | 2018-11-09T08:06:16.000Z | 2022-03-31T06:05:53.000Z | solutions/LeetCode/C++/877.cpp | timxor/leetcode-journal | 5f1cb6bcc44a5bc33d88fb5cdb4126dfc6f4232a | [
"MIT"
] | 29 | 2019-06-02T05:02:25.000Z | 2021-11-15T04:09:37.000Z | solutions/LeetCode/C++/877.cpp | timxor/leetcode-journal | 5f1cb6bcc44a5bc33d88fb5cdb4126dfc6f4232a | [
"MIT"
] | 347 | 2018-12-23T01:57:37.000Z | 2022-03-12T14:51:21.000Z | __________________________________________________________________________________________________
sample 4 ms submission
class Solution {
public:
bool stoneGame(vector<int>& piles) {
int dp_a = max(piles[0],piles[piles.size()-1]);
int dp_l = min(piles[0],piles[piles.size()-1]);
in... | 30.263158 | 98 | 0.588696 | timxor |
d83e3f875685afba035e04f1be00ffa7404c6728 | 6,821 | cpp | C++ | game/client/hud_redraw.cpp | DannyParker0001/Kisak-Strike | 99ed85927336fe3aff2efd9b9382b2b32eb1d05d | [
"Unlicense"
] | 252 | 2020-12-16T15:34:43.000Z | 2022-03-31T23:21:37.000Z | game/client/hud_redraw.cpp | DannyParker0001/Kisak-Strike | 99ed85927336fe3aff2efd9b9382b2b32eb1d05d | [
"Unlicense"
] | 23 | 2020-12-20T18:02:54.000Z | 2022-03-28T16:58:32.000Z | game/client/hud_redraw.cpp | DannyParker0001/Kisak-Strike | 99ed85927336fe3aff2efd9b9382b2b32eb1d05d | [
"Unlicense"
] | 42 | 2020-12-19T04:32:33.000Z | 2022-03-30T06:00:28.000Z | //===== Copyright � 1996-2005, Valve Corporation, All rights reserved. ======//
//
// Purpose:
//
// $NoKeywords: $
//
//===========================================================================//
//
// hud_redraw.cpp
//
#include "cbase.h"
#include "hudelement.h"
#include "iclientmode.h"
#include "itextmessage.h"
#i... | 25.077206 | 125 | 0.581586 | DannyParker0001 |
d84900f81fd56ef599a889883f58c237053d8f18 | 1,731 | cpp | C++ | BulletPhysicsWrapper/physics/bullet/cPlaneComponent.cpp | BobEh/Game-Engine | 2086336c8e0d4b49166b8f9c8b8c1db99728e206 | [
"MIT"
] | 1 | 2020-03-14T18:51:09.000Z | 2020-03-14T18:51:09.000Z | BulletPhysicsWrapper/physics/bullet/cPlaneComponent.cpp | BobEh/Game-Engine | 2086336c8e0d4b49166b8f9c8b8c1db99728e206 | [
"MIT"
] | null | null | null | BulletPhysicsWrapper/physics/bullet/cPlaneComponent.cpp | BobEh/Game-Engine | 2086336c8e0d4b49166b8f9c8b8c1db99728e206 | [
"MIT"
] | null | null | null | #include "cPlaneComponent.h"
#include "nConvert.h"
nPhysics::cPlaneComponent::cPlaneComponent(nPhysics::sPlaneDef thePlaneDef)
{
btCollisionShape* shape = new btStaticPlaneShape(nConvert::ToBullet(thePlaneDef.Normal), thePlaneDef.Constant);
btTransform transform;
transform.setIdentity();
//using motionstate is o... | 24.728571 | 112 | 0.780474 | BobEh |
d8496c4aae9eb9232814c8266b91bfe72bcc1201 | 12,523 | cpp | C++ | CppImport/src/manager/TranslateManager.cpp | patrick-luethi/Envision | b93e6f9bbb2a534b5534a5e48ed40a2c43baba8a | [
"BSD-3-Clause"
] | null | null | null | CppImport/src/manager/TranslateManager.cpp | patrick-luethi/Envision | b93e6f9bbb2a534b5534a5e48ed40a2c43baba8a | [
"BSD-3-Clause"
] | null | null | null | CppImport/src/manager/TranslateManager.cpp | patrick-luethi/Envision | b93e6f9bbb2a534b5534a5e48ed40a2c43baba8a | [
"BSD-3-Clause"
] | null | null | null | /***********************************************************************************************************************
**
** Copyright (c) 2011, 2014 ETH Zurich
** All rights reserved.
**
** Redistribution and use in source and binary forms, with or without modification, are permitted provided that the
** follo... | 34.980447 | 120 | 0.735926 | patrick-luethi |
d84c933ea05982a70bcca57a741c72c137a55269 | 3,430 | cpp | C++ | L2/common/src/sw/xNativeFPGA.cpp | Xilinx/HPC | c5d11c41f98a6ce8fc4a3fc9e7f5a133a09a9af3 | [
"Apache-2.0"
] | 4 | 2021-08-16T18:25:48.000Z | 2022-03-22T08:49:43.000Z | L2/common/src/sw/xNativeFPGA.cpp | Xilinx/HPC | c5d11c41f98a6ce8fc4a3fc9e7f5a133a09a9af3 | [
"Apache-2.0"
] | null | null | null | L2/common/src/sw/xNativeFPGA.cpp | Xilinx/HPC | c5d11c41f98a6ce8fc4a3fc9e7f5a133a09a9af3 | [
"Apache-2.0"
] | null | null | null | /*
* Copyright 2019-2021 Xilinx, 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 law or agre... | 29.067797 | 97 | 0.68688 | Xilinx |
d84debae06b721217690a3aaa6ae822731c7984f | 345 | inl | C++ | Refureku/Library/Include/Public/Refureku/TypeInfo/Archetypes/Template/NonTypeTemplateArgument.inl | jsoysouvanh/Refureku | 7548cb3b196793119737a51c1cedc136aa60d3ee | [
"MIT"
] | 143 | 2020-04-07T21:38:21.000Z | 2022-03-30T01:06:33.000Z | Refureku/Library/Include/Public/Refureku/TypeInfo/Archetypes/Template/NonTypeTemplateArgument.inl | jsoysouvanh/Refureku | 7548cb3b196793119737a51c1cedc136aa60d3ee | [
"MIT"
] | 7 | 2021-03-30T07:26:21.000Z | 2022-03-28T16:31:02.000Z | Refureku/Library/Include/Public/Refureku/TypeInfo/Archetypes/Template/NonTypeTemplateArgument.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 T>
T NonTypeTemplateArgument::getValue() const noexcept
{
return *reinterpret_cast<T ... | 28.75 | 92 | 0.756522 | jsoysouvanh |
d84ebb81df863d7fc70ad11d01650f1cfb93cd31 | 72 | cpp | C++ | build/staticLib/main.cpp | NoCodeProgram/ModernCPP | ac7b05a4d720678e68878d70c0a7a69f56885d00 | [
"MIT"
] | 5 | 2020-08-17T12:14:44.000Z | 2022-01-21T06:57:56.000Z | build/staticLib/main.cpp | NoCodeProgram/ModernCPP | ac7b05a4d720678e68878d70c0a7a69f56885d00 | [
"MIT"
] | null | null | null | build/staticLib/main.cpp | NoCodeProgram/ModernCPP | ac7b05a4d720678e68878d70c0a7a69f56885d00 | [
"MIT"
] | 2 | 2022-01-18T03:20:51.000Z | 2022-02-11T14:50:19.000Z | #include "cat.h"
int main()
{
Cat kitty;
kitty.speak();
return 0;
} | 8 | 16 | 0.597222 | NoCodeProgram |
d84f0e706e3b56b718041ddfda630ecadfad0384 | 301 | cpp | C++ | c++/84-7897-268-4/cap.2/Entrada/cadena3.cpp | leopansa/libros | 1fd44aaa230eedb493f52497e82bed1ab1cc6252 | [
"MIT"
] | null | null | null | c++/84-7897-268-4/cap.2/Entrada/cadena3.cpp | leopansa/libros | 1fd44aaa230eedb493f52497e82bed1ab1cc6252 | [
"MIT"
] | null | null | null | c++/84-7897-268-4/cap.2/Entrada/cadena3.cpp | leopansa/libros | 1fd44aaa230eedb493f52497e82bed1ab1cc6252 | [
"MIT"
] | null | null | null | //PROG204.CPP - Operacion de cadenas
// Imprimir unicamente cuando detecta numeros
#include <iostream>
int main()
{
int n; //solo acepta numeros
std::cout << "Introducir numeros: " << std::endl;
while(std::cin >> n)
{
std::cout << n << std::endl;
}
return 0;
} | 17.705882 | 53 | 0.578073 | leopansa |
d84fc22bfcbda44f90a5b747e2fdb8a045aa833b | 4,388 | cpp | C++ | src/Cello/test_Schedule.cpp | aoife-flood/enzo-e | ab8ebc4716fff22bed9f692daf0472ae6ffffe73 | [
"BSD-3-Clause"
] | 26 | 2019-02-12T19:39:13.000Z | 2022-03-31T01:52:29.000Z | src/Cello/test_Schedule.cpp | aoife-flood/enzo-e | ab8ebc4716fff22bed9f692daf0472ae6ffffe73 | [
"BSD-3-Clause"
] | 128 | 2019-02-13T20:22:30.000Z | 2022-03-29T20:21:00.000Z | src/Cello/test_Schedule.cpp | aoife-flood/enzo-e | ab8ebc4716fff22bed9f692daf0472ae6ffffe73 | [
"BSD-3-Clause"
] | 29 | 2019-02-12T19:37:51.000Z | 2022-03-14T14:02:45.000Z | // See LICENSE_CELLO file for license and copyright information
/// @file test_Schedule.cpp
/// @author James Bordner (jobordner@ucsd.edu)
/// @date 2010-04-02
/// @brief Test program for the Schedule class
#include "main.hpp"
#include "test.hpp"
#include "io.hpp"
PARALLEL_MAIN_BEGIN
{
PARALLEL_INIT... | 27.772152 | 63 | 0.640155 | aoife-flood |
d851e7ebb2246acf9264a52af3b5a7d47b05970c | 2,105 | cpp | C++ | src/signal.cpp | orbitrc/blusher-qt | 23a868875fbe600a14ea6d49226226fea8931ab6 | [
"MIT"
] | null | null | null | src/signal.cpp | orbitrc/blusher-qt | 23a868875fbe600a14ea6d49226226fea8931ab6 | [
"MIT"
] | null | null | null | src/signal.cpp | orbitrc/blusher-qt | 23a868875fbe600a14ea6d49226226fea8931ab6 | [
"MIT"
] | null | null | null | #include <blusher/signal.h>
#include <stdint.h>
#include "signal-impl.h"
#ifdef emit
#undef emit
#endif
#define BLUSHER_SIGNAL_CONSTRUCTOR { this->_impl = new SignalImpl(); }
#define BLUSHER_CONNECTION_CONSTRUCTOR { this->_impl = impl; }
#define BLUSHER_CONNECTION_CONSTRUCTOR_ARG(type) template<> \
Signal<type>... | 20.841584 | 75 | 0.695962 | orbitrc |
d852f59d03cc9769dfe656042d4898b851006831 | 1,598 | hpp | C++ | src/tts/include/ttsService.hpp | 3rang/TTS | 5a84b49ea08af599ad553ae27efb36b2682f3f76 | [
"MIT"
] | null | null | null | src/tts/include/ttsService.hpp | 3rang/TTS | 5a84b49ea08af599ad553ae27efb36b2682f3f76 | [
"MIT"
] | null | null | null | src/tts/include/ttsService.hpp | 3rang/TTS | 5a84b49ea08af599ad553ae27efb36b2682f3f76 | [
"MIT"
] | null | null | null |
// SPDX-FileCopyrightText: 2021 MBition GmbH
//
// SPDX-License-Identifier: Closed software
#ifndef INC_TTSSERVICE_HPP_
#define INC_TTSSERVICE_HPP_
#include <iostream>
#include <vector>
#include <cstdint>
#include <cstring>
#include <string>
#include <chrono>
#include <fstream>
#include <tensorflow/lite/interpreter... | 18.581395 | 68 | 0.673342 | 3rang |
d85738cfcfa355fa4fddd2fd103c87dcc3d0baac | 1,226 | cpp | C++ | Search/binarysearch.cpp | JobayerAhmmed/DSA_C | 2af3d702820dd3e1b9db49558e4398ea978e71ca | [
"MIT"
] | null | null | null | Search/binarysearch.cpp | JobayerAhmmed/DSA_C | 2af3d702820dd3e1b9db49558e4398ea978e71ca | [
"MIT"
] | null | null | null | Search/binarysearch.cpp | JobayerAhmmed/DSA_C | 2af3d702820dd3e1b9db49558e4398ea978e71ca | [
"MIT"
] | null | null | null | #include<stdio.h>
int parti(int* data, int left, int right)
{
int pivot = data[left + (right - left)/2];
int i = left - 1;
int j = right + 1;
while (true) {
do {
i++;
} while(data[i] < pivot);
do {
j--;
} while(data[j] > pivot);
if (i >... | 18.575758 | 58 | 0.468189 | JobayerAhmmed |
d85c0e9c96e659eeb77708e1772fb5a31eaf9dcf | 2,663 | hh | C++ | cblite/LiteCorePolyfill.hh | couchbaselabs/couchbase-mobile-tools | b0d2c40cf5b6043b508434cc0ef310f29df2d2c1 | [
"Apache-2.0"
] | 27 | 2019-02-12T15:48:50.000Z | 2022-03-31T10:03:42.000Z | cblite/LiteCorePolyfill.hh | couchbaselabs/couchbase-mobile-tools | b0d2c40cf5b6043b508434cc0ef310f29df2d2c1 | [
"Apache-2.0"
] | 20 | 2019-02-20T19:57:05.000Z | 2022-03-21T20:04:35.000Z | cblite/LiteCorePolyfill.hh | couchbaselabs/couchbase-mobile-tools | b0d2c40cf5b6043b508434cc0ef310f29df2d2c1 | [
"Apache-2.0"
] | 18 | 2019-04-08T10:11:25.000Z | 2022-03-29T04:55:25.000Z | //
// LiteCorePolyfill.hh
//
// Copyright © 2021 Couchbase. All rights reserved.
//
// This header is a compatibility shim for pre-3.0 versions of LiteCore.
// It adds definitions of some newer types and functions that the cblite tool uses.
#pragma once
#include "c4.h"
#include "fleece/Fleece.h"
#include "fleece/slic... | 29.588889 | 99 | 0.6549 | couchbaselabs |
d85dfef9fd06f50ff2d53810a7109b851c3697d0 | 17,905 | cpp | C++ | opengl-text/src/freetype.cpp | Deception666/opengl-font-renderer | 32007d89389c426657d0025ec1a09f75176a1281 | [
"MIT"
] | null | null | null | opengl-text/src/freetype.cpp | Deception666/opengl-font-renderer | 32007d89389c426657d0025ec1a09f75176a1281 | [
"MIT"
] | null | null | null | opengl-text/src/freetype.cpp | Deception666/opengl-font-renderer | 32007d89389c426657d0025ec1a09f75176a1281 | [
"MIT"
] | null | null | null | #include "freetype.h"
#include "error_reporting_private.h"
#include <algorithm>
#if __linux__
#include <cstdlib>
#include <filesystem>
#endif
#include <stdexcept>
#include <utility>
#if _WIN32
#include <windows.h>
#elif __linux__
#include <dlfcn.h>
#endif
namespace opengl
{
template < typename T... | 20.771462 | 91 | 0.569171 | Deception666 |
d85fa61a522661759c42f15f766de322e8b4edd9 | 6,495 | cpp | C++ | drm/libmediadrm/DrmUtils.cpp | Dreadwyrm/lhos_frameworks_av | 62c63ccfdf5c79a3ad9be4836f473da9398c671b | [
"Apache-2.0"
] | null | null | null | drm/libmediadrm/DrmUtils.cpp | Dreadwyrm/lhos_frameworks_av | 62c63ccfdf5c79a3ad9be4836f473da9398c671b | [
"Apache-2.0"
] | null | null | null | drm/libmediadrm/DrmUtils.cpp | Dreadwyrm/lhos_frameworks_av | 62c63ccfdf5c79a3ad9be4836f473da9398c671b | [
"Apache-2.0"
] | 2 | 2021-07-08T07:42:11.000Z | 2021-07-09T21:56:10.000Z | /*
* Copyright (C) 2019 The Android Open Source Project
*
* 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 app... | 35.686813 | 107 | 0.639723 | Dreadwyrm |
d860b1c22aafb78a60109848507a96710ecd29b6 | 1,891 | cpp | C++ | cpp-macro-parser/test_data/define.cpp | zoloypzuo/regex_engine | 22365d7229d1a346ea7a730ebcad1c889c323e1d | [
"MIT"
] | null | null | null | cpp-macro-parser/test_data/define.cpp | zoloypzuo/regex_engine | 22365d7229d1a346ea7a730ebcad1c889c323e1d | [
"MIT"
] | null | null | null | cpp-macro-parser/test_data/define.cpp | zoloypzuo/regex_engine | 22365d7229d1a346ea7a730ebcad1c889c323e1d | [
"MIT"
] | null | null | null | #define data1 0x20
/*cmment start*/#define /*this is comment*/ data2 2.5f
#define data3 L"this is a data"
#define data4 true
#define data5 'a'
#define data6 { {2.0, "abc"}, {1.5, "def"}, {5.6f, "7.2"}} // 浮点与字符串组成的结构体初始化聚合, 再进一步聚合组成了数组
#define data5 {5.0, 7.5, 3.8}
#define data6 'c'
#define data1 1.0f /* this is float
... | 28.223881 | 123 | 0.648334 | zoloypzuo |
d86271b0f08f0d5601052f4675e6e7657ab7cf56 | 576 | tpp | C++ | rb_tree/includes/btree_level_count.tpp | paulahemsi/ft_containers | c7d6c878c25bf4faeb60f86f977639c8a7006776 | [
"MIT"
] | 1 | 2022-03-02T15:14:16.000Z | 2022-03-02T15:14:16.000Z | rb_tree/includes/btree_level_count.tpp | paulahemsi/ft_containers | c7d6c878c25bf4faeb60f86f977639c8a7006776 | [
"MIT"
] | 73 | 2021-12-11T18:54:53.000Z | 2022-03-28T01:32:52.000Z | rb_tree/includes/btree_level_count.tpp | paulahemsi/ft_containers | c7d6c878c25bf4faeb60f86f977639c8a7006776 | [
"MIT"
] | null | null | null |
#ifndef BTREE_LEVEL_COUNT_TPP
#define BTREE_LEVEL_COUNT_TPP
#include "btree.tpp"
template <class T>
size_t max_depth(size_t left_depth, size_t right_depth, ft::btree<T> *root)
{
root++;
root--;
if (left_depth > right_depth)
return (left_depth);
return (right_depth);
}
template <class T>
size_t btree_level_cou... | 20.571429 | 75 | 0.722222 | paulahemsi |
d86274ba27915117d292cc9a571897383778152b | 1,295 | cpp | C++ | Fw/Log/test/ut/LogTest.cpp | AlperenCetin0/fprime | 7e20febd34019c730da1358567e7a512592de4d8 | [
"Apache-2.0"
] | 9,182 | 2017-07-06T15:51:35.000Z | 2022-03-30T11:20:33.000Z | Fw/Log/test/ut/LogTest.cpp | AlperenCetin0/fprime | 7e20febd34019c730da1358567e7a512592de4d8 | [
"Apache-2.0"
] | 719 | 2017-07-14T17:56:01.000Z | 2022-03-31T02:41:35.000Z | Fw/Log/test/ut/LogTest.cpp | AlperenCetin0/fprime | 7e20febd34019c730da1358567e7a512592de4d8 | [
"Apache-2.0"
] | 1,216 | 2017-07-12T15:41:08.000Z | 2022-03-31T21:44:37.000Z | #include <gtest/gtest.h>
#include <Fw/Log/LogPacket.hpp>
#include <Fw/Com/ComBuffer.hpp>
#include <Fw/Log/LogString.hpp>
TEST(FwLogTest,LogPacketSerialize) {
// Serialize data
Fw::LogPacket pktIn;
Fw::LogBuffer buffIn;
ASSERT_EQ(Fw::FW_SERIALIZE_OK,buffIn.serialize(static_cast<U32>(12)));
Fw::Tim... | 25.392157 | 74 | 0.689575 | AlperenCetin0 |
d866d581aab7118ca1f78c0f9c33c451a948e370 | 780 | cpp | C++ | CtCI/chapter20/20.5.cpp | wqw547243068/DS_Algorithm | 6d4a9baeb3650a8f93308c7405c9483bac59e98b | [
"RSA-MD"
] | 2 | 2021-12-29T14:42:51.000Z | 2021-12-29T14:46:45.000Z | CtCI/chapter20/20.5.cpp | wqw547243068/DS_Algorithm | 6d4a9baeb3650a8f93308c7405c9483bac59e98b | [
"RSA-MD"
] | null | null | null | CtCI/chapter20/20.5.cpp | wqw547243068/DS_Algorithm | 6d4a9baeb3650a8f93308c7405c9483bac59e98b | [
"RSA-MD"
] | null | null | null | #include <iostream>
using namespace std;
const int kMaxInt = ~(1<<31);
int ShortestDist(string text[], int n, string word1, string word2){
int min = kMaxInt / 2;
int pos1 = -min;
int pos2 = -min;
for(int pos=0; pos<n; ++pos){
if(text[pos] == word1){
pos1 = pos;
int dis... | 21.666667 | 67 | 0.465385 | wqw547243068 |
d867313f72aa79a829de0e99bb03d1657692db2e | 3,923 | hpp | C++ | include/h3api/H3Creatures/H3CreatureInformation.hpp | Patrulek/H3API | 91f10de37c6b86f3160706c1fdf4792f927e9952 | [
"MIT"
] | 14 | 2020-09-07T21:49:26.000Z | 2021-11-29T18:09:41.000Z | include/h3api/H3Creatures/H3CreatureInformation.hpp | Day-of-Reckoning/H3API | a82d3069ec7d5127b13528608d5350d2b80d57be | [
"MIT"
] | 2 | 2021-02-12T15:52:31.000Z | 2021-02-12T16:21:24.000Z | include/h3api/H3Creatures/H3CreatureInformation.hpp | Day-of-Reckoning/H3API | a82d3069ec7d5127b13528608d5350d2b80d57be | [
"MIT"
] | 8 | 2021-02-12T15:52:41.000Z | 2022-01-31T15:28:10.000Z | //////////////////////////////////////////////////////////////////////
// //
// Created by RoseKavalier: //
// rosekavalierhc@gmail.com //
// Created or last upda... | 31.637097 | 176 | 0.513638 | Patrulek |
d86a61337af4391883603fdbccf97280c7f70321 | 309 | cpp | C++ | Graphics/Graphics/main.cpp | functard/Graphics-Framework | 90ed2e1d4631c6dce5c1aad5003e5a462966be87 | [
"MIT"
] | 1 | 2022-02-22T13:42:43.000Z | 2022-02-22T13:42:43.000Z | Graphics/Graphics/main.cpp | functard/Graphics-Framework | 90ed2e1d4631c6dce5c1aad5003e5a462966be87 | [
"MIT"
] | null | null | null | Graphics/Graphics/main.cpp | functard/Graphics-Framework | 90ed2e1d4631c6dce5c1aad5003e5a462966be87 | [
"MIT"
] | null | null | null | #include "PCH.h"
#include "Engine.h"
int CALLBACK wWinMain(HINSTANCE _hInstance, HINSTANCE _hPrevInstance, PWSTR _cmdLineArgs, int _cmdShow)
{
int value = CEngine::Get()->Init(_hInstance);
if (FAILED(value))
{
return value;
}
value = CEngine::Get()->Run();
CEngine::Get()->Finish();
return value;
} | 20.6 | 103 | 0.695793 | functard |
d86fc8514ab5d78bc145138a1f6a44ddf98b29e0 | 4,283 | cc | C++ | analysis/aero/rotor_3d_lookup.cc | leozz37/makani | c94d5c2b600b98002f932e80a313a06b9285cc1b | [
"Apache-2.0"
] | 1,178 | 2020-09-10T17:15:42.000Z | 2022-03-31T14:59:35.000Z | analysis/aero/rotor_3d_lookup.cc | leozz37/makani | c94d5c2b600b98002f932e80a313a06b9285cc1b | [
"Apache-2.0"
] | 1 | 2020-05-22T05:22:35.000Z | 2020-05-22T05:22:35.000Z | analysis/aero/rotor_3d_lookup.cc | leozz37/makani | c94d5c2b600b98002f932e80a313a06b9285cc1b | [
"Apache-2.0"
] | 107 | 2020-09-10T17:29:30.000Z | 2022-03-18T09:00:14.000Z | // Copyright 2020 Makani Technologies 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
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or ... | 38.936364 | 75 | 0.616157 | leozz37 |
d871ee7890bd384c9b0316a1edc8206e9dd0a4e1 | 1,922 | hpp | C++ | test/tgfx-test/internal/ansi-color.hpp | sarahkittyy/tgfx | 0839d0f30076708b4b848dcf614ee0a8614aa699 | [
"MIT"
] | 1 | 2019-08-18T19:56:26.000Z | 2019-08-18T19:56:26.000Z | test/tgfx-test/internal/ansi-color.hpp | sarahkittyy/tgfx | 0839d0f30076708b4b848dcf614ee0a8614aa699 | [
"MIT"
] | null | null | null | test/tgfx-test/internal/ansi-color.hpp | sarahkittyy/tgfx | 0839d0f30076708b4b848dcf614ee0a8614aa699 | [
"MIT"
] | null | null | null | #pragma once
#include "gtest/gtest.h"
#include "tgfx/color.hpp"
#include "tgfx/internal/ansi-color.hpp"
#ifdef COLOR_MODE_16
TEST(ansi_color, MODE_16)
{
using namespace tgfx::internal;
using tgfx::color;
EXPECT_EQ(get_color_escape_code(color()), "\u001b[30m");
EXPECT_EQ(get_color_escape_code(color(128, 128, 128)... | 36.264151 | 92 | 0.731009 | sarahkittyy |
d873e38847419568c1beae6747142feb49120324 | 1,432 | hpp | C++ | include/dca/phys/dca_step/cluster_solver/ss_ct_hyb/ss_ct_hyb_typedefs.hpp | PMDee/DCA | a8196ec3c88d07944e0499ff00358ea3c830b329 | [
"BSD-3-Clause"
] | 27 | 2018-08-02T04:28:23.000Z | 2021-07-08T02:14:20.000Z | include/dca/phys/dca_step/cluster_solver/ss_ct_hyb/ss_ct_hyb_typedefs.hpp | PMDee/DCA | a8196ec3c88d07944e0499ff00358ea3c830b329 | [
"BSD-3-Clause"
] | 200 | 2018-08-02T18:19:03.000Z | 2022-03-16T21:28:41.000Z | include/dca/phys/dca_step/cluster_solver/ss_ct_hyb/ss_ct_hyb_typedefs.hpp | PMDee/DCA | a8196ec3c88d07944e0499ff00358ea3c830b329 | [
"BSD-3-Clause"
] | 22 | 2018-08-15T15:50:00.000Z | 2021-09-30T13:41:46.000Z | // Copyright (C) 2010 Philipp Werner
//
// Integrated into DCA++ by Peter Staar (taa@zurich.ibm.com) and Bart Ydens.
//
// This class defines common types for the Single-Site Hybridization Monte Carlo Integrator.
#ifndef DCA_PHYS_DCA_STEP_CLUSTER_SOLVER_SS_CT_HYB_SS_CT_HYB_TYPEDEFS_HPP
#define DCA_PHYS_DCA_STEP_CLUSTE... | 34.095238 | 93 | 0.807263 | PMDee |
d87a2ac121c97d7ca6e8bf9bca530107ccb1b789 | 1,845 | hpp | C++ | oanda_v20/include/oanda/v20/json/exception/OutOfRange.hpp | CodeRancher/offcenter_oanda | c7817299b2c7199508307b2379179923e3f60fdc | [
"Apache-2.0"
] | null | null | null | oanda_v20/include/oanda/v20/json/exception/OutOfRange.hpp | CodeRancher/offcenter_oanda | c7817299b2c7199508307b2379179923e3f60fdc | [
"Apache-2.0"
] | null | null | null | oanda_v20/include/oanda/v20/json/exception/OutOfRange.hpp | CodeRancher/offcenter_oanda | c7817299b2c7199508307b2379179923e3f60fdc | [
"Apache-2.0"
] | null | null | null | /**
* Copyright 2020 Scott Brauer
*
* 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 t... | 24.6 | 75 | 0.695935 | CodeRancher |
d87b83b50d9c023e4201347db2a271f190fd69c7 | 1,461 | cpp | C++ | MyGUIWrapper/Src/EventComboChangePositionTranslator.cpp | AnomalousMedical/Engine | a19e21f597bd277e4ca17e0e5f3f89577f2307bb | [
"MIT"
] | null | null | null | MyGUIWrapper/Src/EventComboChangePositionTranslator.cpp | AnomalousMedical/Engine | a19e21f597bd277e4ca17e0e5f3f89577f2307bb | [
"MIT"
] | null | null | null | MyGUIWrapper/Src/EventComboChangePositionTranslator.cpp | AnomalousMedical/Engine | a19e21f597bd277e4ca17e0e5f3f89577f2307bb | [
"MIT"
] | null | null | null | #include "StdAfx.h"
#include "../Include/MyGUIEventTranslator.h"
class EventComboChangePositionTranslator : public MyGUIEventTranslator
{
public:
typedef void (*NativeEventDelegate)(MyGUI::ComboBox* sender, size_t index HANDLE_ARG);
private:
MyGUI::ComboBox* widget;
NativeEventDelegate nativeEvent;
HAN... | 28.096154 | 219 | 0.78987 | AnomalousMedical |
f21da49631e28baaa66180e8e1e5f8dc690311d7 | 829 | cpp | C++ | demo/weather_station/ttn/arduino/library's/Enabling_democode/examples/SensorLib/LoRaPacket.cpp | YangSkyL/lora_weather_station | d1fc9e63bab7b4336770157dbdf1b32cca819645 | [
"Apache-2.0"
] | 1 | 2019-06-26T08:18:40.000Z | 2019-06-26T08:18:40.000Z | demo/weather_station/ttn/arduino/library's/Enabling_democode/examples/SensorLib/LoRaPacket.cpp | YangSkyL/lora_weather_station | d1fc9e63bab7b4336770157dbdf1b32cca819645 | [
"Apache-2.0"
] | null | null | null | demo/weather_station/ttn/arduino/library's/Enabling_democode/examples/SensorLib/LoRaPacket.cpp | YangSkyL/lora_weather_station | d1fc9e63bab7b4336770157dbdf1b32cca819645 | [
"Apache-2.0"
] | 1 | 2019-10-05T11:21:30.000Z | 2019-10-05T11:21:30.000Z | /*
LoRaPacket.cpp - SmartLiving.io Arduino library
*/
#include "LoRaPacket.h"
//create the object
LoRaPacket::LoRaPacket() {
}
unsigned char LoRaPacket::write(unsigned char* result) {
result[0] = 0x7E;
result[3] = getFrameType();
result[4] = contId;
return 5;
}
//assigns the asset/container id to the packet
... | 19.27907 | 79 | 0.651387 | YangSkyL |
f21e3dd071eeb5eb98135062ae5f08611024fa99 | 5,605 | cxx | C++ | smtk/bridge/remote/smtk-model-server.cxx | yumin/SMTK | d280f10c5b70953b2a0196f71832955c7fc75e7f | [
"BSD-3-Clause-Clear"
] | null | null | null | smtk/bridge/remote/smtk-model-server.cxx | yumin/SMTK | d280f10c5b70953b2a0196f71832955c7fc75e7f | [
"BSD-3-Clause-Clear"
] | 4 | 2016-11-10T15:49:51.000Z | 2017-02-06T23:24:16.000Z | smtk/bridge/remote/smtk-model-server.cxx | yumin/SMTK | d280f10c5b70953b2a0196f71832955c7fc75e7f | [
"BSD-3-Clause-Clear"
] | null | null | null | //=========================================================================
// Copyright (c) Kitware, Inc.
// All rights reserved.
// See LICENSE.txt for details.
//
// This software is distributed WITHOUT ANY WARRANTY; without even
// the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
// PURPOSE... | 32.398844 | 99 | 0.645852 | yumin |
f221521881832649aec7153ab6d320a15c241b49 | 599 | cpp | C++ | src/cpp/uml/literalSpecification.cpp | nemears/uml-cpp | d72c8b5506f391f2b6a5696972ff8da7ec10bd21 | [
"MIT"
] | null | null | null | src/cpp/uml/literalSpecification.cpp | nemears/uml-cpp | d72c8b5506f391f2b6a5696972ff8da7ec10bd21 | [
"MIT"
] | 1 | 2022-02-25T18:14:21.000Z | 2022-03-10T08:59:55.000Z | src/cpp/uml/literalSpecification.cpp | nemears/uml-cpp | d72c8b5506f391f2b6a5696972ff8da7ec10bd21 | [
"MIT"
] | null | null | null | #include "uml/literalSpecification.h"
#include "uml/package.h"
#include "uml/stereotype.h"
#include "uml/behavior.h"
#include "uml/dataType.h"
#include "uml/association.h"
#include "uml/association.h"
#include "uml/interface.h"
#include "uml/deployment.h"
using namespace UML;
LiteralSpecification::LiteralSpecificatio... | 23.96 | 92 | 0.737896 | nemears |
f2226373e98348a11d1b6efc7573ac53fe048d6c | 2,114 | cpp | C++ | modules/task_2/kren_p_grid_torus_topology/main.cpp | RachinIA/pp_2020_autumn_engineer | 23f7df688a77cad9496b9d95bbe2645e0528f106 | [
"BSD-3-Clause"
] | 1 | 2020-10-30T13:49:58.000Z | 2020-10-30T13:49:58.000Z | modules/task_2/kren_p_grid_torus_topology/main.cpp | RachinIA/pp_2020_autumn_engineer | 23f7df688a77cad9496b9d95bbe2645e0528f106 | [
"BSD-3-Clause"
] | 1 | 2020-11-01T18:53:35.000Z | 2020-11-01T18:53:35.000Z | modules/task_2/kren_p_grid_torus_topology/main.cpp | RachinIA/pp_2020_autumn_engineer | 23f7df688a77cad9496b9d95bbe2645e0528f106 | [
"BSD-3-Clause"
] | 1 | 2021-03-14T18:08:22.000Z | 2021-03-14T18:08:22.000Z | // Copyright 2020 Kren Polina
#include <gtest-mpi-listener.hpp>
#include <gtest/gtest.h>
#include <mpi.h>
#include "./grid_torus_topology.h"
TEST(Grid_Torus_Topology, can_create_grid_torus) {
MPI_Comm comm_torus = getCommTorus(MPI_COMM_WORLD);
int rank;
MPI_Comm_rank(MPI_COMM_WORLD, &rank);
if (rank ... | 24.581395 | 78 | 0.688269 | RachinIA |
f2227b20dba0d7ab0fdef547be23b785d97d7b5e | 1,340 | hpp | C++ | module07/ex01/iter.hpp | selysse/CPP-Piscine | 72884c60ac5007d34874b006e37dad7a04e846bb | [
"MIT"
] | 1 | 2021-09-17T13:25:47.000Z | 2021-09-17T13:25:47.000Z | module07/ex01/iter.hpp | selysse/CPP-Piscine | 72884c60ac5007d34874b006e37dad7a04e846bb | [
"MIT"
] | null | null | null | module07/ex01/iter.hpp | selysse/CPP-Piscine | 72884c60ac5007d34874b006e37dad7a04e846bb | [
"MIT"
] | null | null | null | /* ************************************************************************** */
/* */
/* ::: :::::::: */
/* iter.hpp :+: :+: :+: ... | 31.162791 | 80 | 0.281343 | selysse |
f222dc457ea7882ced38c451d6948f7e32726072 | 3,879 | cpp | C++ | sail/csrc/core/kernels/native/Copy.cpp | sail-ml/sail | e261ef22661aa267bcf32d1552be95d8b7255220 | [
"BSD-3-Clause"
] | 1 | 2021-04-28T16:29:02.000Z | 2021-04-28T16:29:02.000Z | sail/csrc/core/kernels/native/Copy.cpp | sail-ml/sail | e261ef22661aa267bcf32d1552be95d8b7255220 | [
"BSD-3-Clause"
] | 56 | 2021-04-28T16:39:05.000Z | 2021-07-29T01:13:25.000Z | sail/csrc/core/kernels/native/Copy.cpp | sail-ml/sail | e261ef22661aa267bcf32d1552be95d8b7255220 | [
"BSD-3-Clause"
] | null | null | null | // allow-no-header
#include "kernels/Copy.h"
#include "Tensor.h"
#include "factories.h"
#include "kernels/dispatch.h"
#include "kernels/native/loops.h"
#include "loops.h"
#include "ops/broadcast.h"
#include "slice.h"
#include "tensor_shape.h"
namespace sail {
namespace internal {
namespace {
void copy_kernel(const... | 29.610687 | 80 | 0.544986 | sail-ml |
f224794ac91fd4286b36c860fd316f0f4eadf478 | 756 | cpp | C++ | Year3Game/PitchRegion.cpp | EvanCGriffin/soccergame | 8056b39a4c7adfab3aa47333237474fc8250e7ac | [
"MIT"
] | 1 | 2021-09-29T14:27:07.000Z | 2021-09-29T14:27:07.000Z | Year3Game/PitchRegion.cpp | EvanCGriffin/soccergame | 8056b39a4c7adfab3aa47333237474fc8250e7ac | [
"MIT"
] | null | null | null | Year3Game/PitchRegion.cpp | EvanCGriffin/soccergame | 8056b39a4c7adfab3aa47333237474fc8250e7ac | [
"MIT"
] | null | null | null | #include "PitchRegion.h"
#include <Year3Engine\Utils.h>
PitchRegion::PitchRegion(double x, double y, double width, double height, int id)
:id(id)
{
rect = SDL_Rect();
rect.x = x;
rect.y = y;
rect.w = width;
rect.h = height;
center = b2Vec2(x + (width * 0.5), y + (height * 0.5));
color = b2Color(0, 0, 0);
}
... | 19.384615 | 81 | 0.667989 | EvanCGriffin |
f226daa5fa73416c271ea4aad4fe53a00c444e78 | 12,892 | cpp | C++ | game_state.cpp | tobiascr/four-in-a-row-cpp | 64d4cbe9d40b98dde66ba73ecff0a01b5baad1dc | [
"MIT"
] | 1 | 2020-07-24T01:50:58.000Z | 2020-07-24T01:50:58.000Z | game_state.cpp | tobiascr/four-in-a-row-cpp | 64d4cbe9d40b98dde66ba73ecff0a01b5baad1dc | [
"MIT"
] | null | null | null | game_state.cpp | tobiascr/four-in-a-row-cpp | 64d4cbe9d40b98dde66ba73ecff0a01b5baad1dc | [
"MIT"
] | null | null | null | #include <bitset>
#include "game_state.h"
namespace Engine
{
GameState::GameState()
{
reset();
}
void GameState::reset()
{
bitboard[0] = 0;
bitboard[1] = 0;
number_of_moves = 0;
player_in_turn = 0;
}
char GameState::get_value(int column, int row) const
{
if ((bitboard[0] >> (column * 7 + row... | 32.887755 | 109 | 0.657074 | tobiascr |
f2281ed3b38a89f2fceaa74170a27e25a348fee5 | 3,213 | cpp | C++ | src/geno/engine/GenoEngine.cpp | Gnarwhal/LudumDare44 | a09e60a57cd7da22d401651ae4b9fbe3f7389ab0 | [
"MIT"
] | 1 | 2019-01-27T15:09:08.000Z | 2019-01-27T15:09:08.000Z | src/geno/engine/GenoEngine.cpp | GnarlyNarwhal/Genome | 35701f56b7c581e162e4bd5dab42f5df52e77ba5 | [
"MIT"
] | null | null | null | src/geno/engine/GenoEngine.cpp | GnarlyNarwhal/Genome | 35701f56b7c581e162e4bd5dab42f5df52e77ba5 | [
"MIT"
] | null | null | null | /*******************************************************************************
*
* Copyright (c) 2018 Gnarly Narwhal
*
* -----------------------------------------------------------------------------
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associat... | 25.299213 | 81 | 0.668223 | Gnarwhal |
f229c54432c3bf2ab8a1dd4e7adfa72a77cb1bd0 | 120 | hxx | C++ | src/Providers/UNIXProviders/ElementAsUser/UNIX_ElementAsUser_AIX.hxx | brunolauze/openpegasus-providers-old | b00f1aad575bae144b8538bf57ba5fd5582a4ec7 | [
"MIT"
] | 1 | 2020-10-12T09:00:09.000Z | 2020-10-12T09:00:09.000Z | src/Providers/UNIXProviders/ElementAsUser/UNIX_ElementAsUser_AIX.hxx | brunolauze/openpegasus-providers-old | b00f1aad575bae144b8538bf57ba5fd5582a4ec7 | [
"MIT"
] | null | null | null | src/Providers/UNIXProviders/ElementAsUser/UNIX_ElementAsUser_AIX.hxx | brunolauze/openpegasus-providers-old | b00f1aad575bae144b8538bf57ba5fd5582a4ec7 | [
"MIT"
] | null | null | null | #ifdef PEGASUS_OS_AIX
#ifndef __UNIX_ELEMENTASUSER_PRIVATE_H
#define __UNIX_ELEMENTASUSER_PRIVATE_H
#endif
#endif
| 10 | 38 | 0.841667 | brunolauze |
f22c51e01de12190eb227150f08205f7520db7b2 | 319 | cpp | C++ | utils/utils.cpp | bitesandbytes/supreme-octo-adventure | 795d69ab9eaf1ef8f7e938dca8799b4560368538 | [
"MIT"
] | null | null | null | utils/utils.cpp | bitesandbytes/supreme-octo-adventure | 795d69ab9eaf1ef8f7e938dca8799b4560368538 | [
"MIT"
] | null | null | null | utils/utils.cpp | bitesandbytes/supreme-octo-adventure | 795d69ab9eaf1ef8f7e938dca8799b4560368538 | [
"MIT"
] | null | null | null | #include <stdlib.h>
#include "utils.h"
double Utils::doubleRand() {
double r, x;
r = ((double) rand() / ((double) (RAND_MAX) + (double) (1)));
return r;
}
int Utils::randInRange(int max) {
double r, x;
r = ((double) rand() / ((double) (RAND_MAX) + (double) (1)));
x = (r * (max + 1));
return (int) x;
}
| 19.9375 | 63 | 0.551724 | bitesandbytes |
f22e7e2e6c5533baf6f8f2c9e1481b7571bd7cef | 587 | hxx | C++ | src/Tools/Algo/Predicate_ite.hxx | WilliamMajor/aff3ct | 4e71ab99f33a040ec06336d3e1d50bd2c0d6a579 | [
"MIT"
] | 1 | 2022-02-17T08:47:47.000Z | 2022-02-17T08:47:47.000Z | src/Tools/Algo/Predicate_ite.hxx | WilliamMajor/aff3ct | 4e71ab99f33a040ec06336d3e1d50bd2c0d6a579 | [
"MIT"
] | null | null | null | src/Tools/Algo/Predicate_ite.hxx | WilliamMajor/aff3ct | 4e71ab99f33a040ec06336d3e1d50bd2c0d6a579 | [
"MIT"
] | 1 | 2021-11-24T01:54:41.000Z | 2021-11-24T01:54:41.000Z | #include <sstream>
#include "Tools/Exception/exception.hpp"
#include "Tools/Algo/Predicate_ite.hpp"
namespace aff3ct
{
namespace tools
{
Predicate_ite::Predicate_ite(const int n_ite)
: n_ite(n_ite), cur_ite(0)
{
if (n_ite <= 0)
{
std::stringstream message;
message << "'n_ite' has to be equal or greater than 0 (... | 17.787879 | 86 | 0.689949 | WilliamMajor |
f233a4d50426273586dd94dd8cd0ec33e1c131af | 309 | cpp | C++ | URI/1175/1175.cpp | IrineuAlmeidaJr/C | e04e818be1e8b302cc5d542f4b0ba9c6e07d9b15 | [
"MIT"
] | null | null | null | URI/1175/1175.cpp | IrineuAlmeidaJr/C | e04e818be1e8b302cc5d542f4b0ba9c6e07d9b15 | [
"MIT"
] | null | null | null | URI/1175/1175.cpp | IrineuAlmeidaJr/C | e04e818be1e8b302cc5d542f4b0ba9c6e07d9b15 | [
"MIT"
] | null | null | null | #include<stdio.h>
#define TF 20
int main()
{
int vet[TF], i, aux1, aux2;
for (i=0; i<TF; i++)
scanf("%d", &vet[i]);
i=0;
while (i<TF/2)
{
aux1=vet[TF-1-i];
aux2=vet[i];
vet[i]=aux1;
vet[TF-1-i]=aux2;
i++;
}
for (i=0; i<TF; i++)
printf("N[%d] = %d\n", i, vet[i]);
return 0;
}
| 11.035714 | 36 | 0.475728 | IrineuAlmeidaJr |
f238ee98b99c834ac94915d167f36ecddee11a3a | 3,982 | cpp | C++ | sources/main.cpp | BiarnGamer/pommeDePin | 21f525e728614c31d08d8b90821d37b74e481203 | [
"Apache-2.0"
] | null | null | null | sources/main.cpp | BiarnGamer/pommeDePin | 21f525e728614c31d08d8b90821d37b74e481203 | [
"Apache-2.0"
] | null | null | null | sources/main.cpp | BiarnGamer/pommeDePin | 21f525e728614c31d08d8b90821d37b74e481203 | [
"Apache-2.0"
] | null | null | null | #include <iostream>
#include <string>
#include <cstdlib>
#include <ctime>
#include "../entetes/animal.h"
//Déja inclut dans menu.h
//#include "../entetes/enclos.h"
#include "../entetes/set.h"
#include "../entetes/parc.h"
#include "../entetes/menu.h"
#include "../entetes/affichage.h"
// Pas besoin de utilisateur.h car ... | 27.088435 | 97 | 0.650929 | BiarnGamer |
f23fb8c17720dc91686d112e795c7996125dbcbc | 32,620 | cpp | C++ | Development/External/wxWindows_2.4.0/src/common/event.cpp | addstone/unrealengine3 | 4579d360dfd52b12493292120b27bb430f978fc8 | [
"FSFAP"
] | 37 | 2020-05-22T18:18:47.000Z | 2022-03-19T06:51:54.000Z | Development/External/wxWindows_2.4.0/src/common/event.cpp | AdanosGotoman/unrealengine3 | 4579d360dfd52b12493292120b27bb430f978fc8 | [
"FSFAP"
] | null | null | null | Development/External/wxWindows_2.4.0/src/common/event.cpp | AdanosGotoman/unrealengine3 | 4579d360dfd52b12493292120b27bb430f978fc8 | [
"FSFAP"
] | 27 | 2020-05-17T01:03:30.000Z | 2022-03-06T19:10:14.000Z | /////////////////////////////////////////////////////////////////////////////
// Name: event.cpp
// Purpose: Event classes
// Author: Julian Smart
// Modified by:
// Created: 01/02/97
// RCS-ID: $Id: event.cpp,v 1.110.2.1 2002/10/30 19:55:38 RR Exp $
// Copyright: (c) Julian Smart and Markus ... | 29.493671 | 87 | 0.651502 | addstone |
f242339b31e7cf08ca2b32322798dcfb737dece4 | 604 | cpp | C++ | problems/acmicpc_5639.cpp | qawbecrdtey/BOJ-sol | e3f410e8f4e3a6ade51b68ce2024529870edac64 | [
"MIT"
] | null | null | null | problems/acmicpc_5639.cpp | qawbecrdtey/BOJ-sol | e3f410e8f4e3a6ade51b68ce2024529870edac64 | [
"MIT"
] | null | null | null | problems/acmicpc_5639.cpp | qawbecrdtey/BOJ-sol | e3f410e8f4e3a6ade51b68ce2024529870edac64 | [
"MIT"
] | null | null | null | #include <stdio.h>
#include <vector>
using namespace std;
void search(int const root,int const r,vector<int> const &v){
if(root+1>r)return;
if(root+1==r){
printf("%d\n",v[root]);
return;
}
int const l=root+1;
int const rtv=v[root];
int lv=l,rv=r;
while(lv<rv){
int m=(... | 19.483871 | 61 | 0.503311 | qawbecrdtey |
f246f1d8b0c25d140c9db185c1e6b4db35705913 | 13,446 | cpp | C++ | cpid/distributed.cpp | yuhonghong66/TorchCraftAI | 895994989846be829fb0ed823a552008e807bdbe | [
"MIT"
] | 1 | 2018-11-28T01:16:12.000Z | 2018-11-28T01:16:12.000Z | cpid/distributed.cpp | MenLonII/TorchCraftAI | 6920c6c02ee0043e6aa622fc0e5376cf97bc75e6 | [
"MIT"
] | null | null | null | cpid/distributed.cpp | MenLonII/TorchCraftAI | 6920c6c02ee0043e6aa622fc0e5376cf97bc75e6 | [
"MIT"
] | null | null | null | /*
* Copyright (c) 2017-present, Facebook, Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
#include "distributed.h"
#include "common/utils.h"
#include "netutils.h"
#include <common/autograd/utils.h>
#include <fmt/format.h>
#in... | 30.21573 | 80 | 0.60174 | yuhonghong66 |
f24d33dee5c0258ca67149e862ba3f68a91c1437 | 5,641 | cc | C++ | tile/codegen/aggrinit.cc | redoclag/plaidml | 46d9e8b3f1e1093aab2a0dfa40b2e15e3cc7d314 | [
"Apache-2.0"
] | 4,535 | 2017-10-20T05:03:57.000Z | 2022-03-30T15:42:33.000Z | tile/codegen/aggrinit.cc | HOZHENWAI/plaidml | 46d9e8b3f1e1093aab2a0dfa40b2e15e3cc7d314 | [
"Apache-2.0"
] | 984 | 2017-10-20T17:16:09.000Z | 2022-03-30T05:43:18.000Z | tile/codegen/aggrinit.cc | HOZHENWAI/plaidml | 46d9e8b3f1e1093aab2a0dfa40b2e15e3cc7d314 | [
"Apache-2.0"
] | 492 | 2017-10-20T18:22:32.000Z | 2022-03-30T09:00:05.000Z | // Copyright 2018, Intel Corporation
#include <memory>
#include <set>
#include <vector>
#include "tile/codegen/aggrinit.h"
#include "tile/codegen/deps.h"
#include "tile/stripe/stripe.h"
namespace vertexai {
namespace tile {
namespace codegen {
using namespace stripe; // NOLINT
using namespace math; // NOLINT
v... | 36.62987 | 120 | 0.650062 | redoclag |
f24d8f7f0d00429986a372ed51f16f2f4313b8f9 | 1,248 | cpp | C++ | baekjoon/1963/source.cpp | qilip/ACMStudy | c4d6f31b01358ead4959c92f1fac59a3826f3f77 | [
"CC-BY-3.0"
] | 4 | 2020-02-02T08:34:46.000Z | 2021-10-01T11:21:17.000Z | baekjoon/1963/source.cpp | qilip/ACMStudy | c4d6f31b01358ead4959c92f1fac59a3826f3f77 | [
"CC-BY-3.0"
] | 1 | 2021-09-04T14:03:50.000Z | 2021-09-04T14:03:50.000Z | baekjoon/1963/source.cpp | qilip/ACMStudy | c4d6f31b01358ead4959c92f1fac59a3826f3f77 | [
"CC-BY-3.0"
] | null | null | null | #include <stdio.h>
#include <queue>
#include <utility>
#include <tuple>
using namespace std;
int main(void){
int t;
int not_prime[10000] = {0};
scanf("%d", &t);
for(int i=2;i<100;i++){
if(not_prime[i]) continue;
for(int j=i*i; j<=10000;j+=i){
not_prime[j] = 1;
}
... | 24.96 | 89 | 0.382212 | qilip |
f25027178d14ec297b6c3d335610e193a2ae3e03 | 420 | cpp | C++ | test/tuple_forward.cpp | LB--/tuples | 4e1c5ecc1f3d2237050868dd1e895113484de3c6 | [
"Unlicense"
] | 1 | 2016-04-13T19:57:54.000Z | 2016-04-13T19:57:54.000Z | test/tuple_forward.cpp | LB--/tuples | 4e1c5ecc1f3d2237050868dd1e895113484de3c6 | [
"Unlicense"
] | null | null | null | test/tuple_forward.cpp | LB--/tuples | 4e1c5ecc1f3d2237050868dd1e895113484de3c6 | [
"Unlicense"
] | null | null | null | #include "tuple_forward.hpp"
#include <functional>
#include <tuple>
int main() noexcept
{
using namespace LB::tuples;
static constexpr auto t1 = std::make_tuple(1, 1);
static constexpr auto t2 = std::make_tuple(1, 2);
static_assert(tuple_forward(std::equal_to<int>{}, t1), "t1 doesn't contain the same value twice... | 28 | 99 | 0.72381 | LB-- |
f254244cfde391a02b65a69db47a22302c374e6c | 6,084 | cpp | C++ | GLWrapper/GLView.cpp | filipkunc/GLGraphics | fb696948034832e1fbc60b7c6095560a79952875 | [
"MIT"
] | 6 | 2015-12-29T11:24:29.000Z | 2021-07-17T06:00:30.000Z | GLWrapper/GLView.cpp | filipkunc/GLGraphics | fb696948034832e1fbc60b7c6095560a79952875 | [
"MIT"
] | null | null | null | GLWrapper/GLView.cpp | filipkunc/GLGraphics | fb696948034832e1fbc60b7c6095560a79952875 | [
"MIT"
] | 1 | 2021-05-27T07:35:57.000Z | 2021-05-27T07:35:57.000Z | #include "stdafx.h"
#include "DesignModeDevenv.h"
#include "GLCanvas.h"
#include "EventArgs.h"
#include "GLView.h"
bool WGLExtensionSupported(const char *extension_name)
{
// this is pointer to function which returns pointer to string with list of all wgl extensions
PFNWGLGETEXTENSIONSSTRINGEXTPROC wg... | 24.336 | 127 | 0.646121 | filipkunc |
f2559aebfae3e6270306e8f9d26943ba92a58248 | 2,392 | cpp | C++ | src/rtl/JitteredRenderer.cpp | potato3d/rtrt | cac9f2f80d94bf60adf0bbd009f5076973ee10c6 | [
"MIT"
] | 2 | 2021-02-13T14:18:39.000Z | 2021-11-04T07:21:21.000Z | src/rtl/JitteredRenderer.cpp | potato3d/rtrt | cac9f2f80d94bf60adf0bbd009f5076973ee10c6 | [
"MIT"
] | null | null | null | src/rtl/JitteredRenderer.cpp | potato3d/rtrt | cac9f2f80d94bf60adf0bbd009f5076973ee10c6 | [
"MIT"
] | null | null | null | #include <rtl/JitteredRenderer.h>
#include <rtu/random.h>
namespace rtl {
static const float TWO_BY_TWO_GRID[] = { -0.25f, -0.25f, // line 0
0.25f, -0.25f,
-0.25f, 0.25f, // line 1
0.25f, 0.25f };
static const float FOUR_BY_FOUR_GRID[] = { -0.375f, -0.... | 23.45098 | 141 | 0.557692 | potato3d |
f256d735ecba0dd959b5201efd90baf39f1f03dc | 1,557 | cpp | C++ | ros-pkg/utility/serializable/src/test/test_serializable.cpp | kunle12/clams | 8de99fcdf6cf6bede1de6ed18c4d397bd53b7f32 | [
"BSD-3-Clause"
] | 1 | 2018-02-03T08:15:57.000Z | 2018-02-03T08:15:57.000Z | ros-pkg/utility/serializable/src/test/test_serializable.cpp | kunle12/clams | 8de99fcdf6cf6bede1de6ed18c4d397bd53b7f32 | [
"BSD-3-Clause"
] | null | null | null | ros-pkg/utility/serializable/src/test/test_serializable.cpp | kunle12/clams | 8de99fcdf6cf6bede1de6ed18c4d397bd53b7f32 | [
"BSD-3-Clause"
] | null | null | null | #include <serializable/serializable.h>
#include <gtest/gtest.h>
using namespace std;
// NDC = NoDefaultConstructor
//
// Typically, Serializable classes have a default ctor so you can create an
// uninitialized object, then call load() or deserialize() on it.
//
// Classes which need to be deserialized but which can... | 25.112903 | 77 | 0.676301 | kunle12 |
f25cb5413f057b26ca6896e89048ff42f13a52af | 980 | cpp | C++ | m68k_trace/musashi.cpp | fredrequin/verilator_helpers | 4ff43594f9ddf62d3e6696520623809b59e0b1e1 | [
"BSD-3-Clause"
] | null | null | null | m68k_trace/musashi.cpp | fredrequin/verilator_helpers | 4ff43594f9ddf62d3e6696520623809b59e0b1e1 | [
"BSD-3-Clause"
] | null | null | null | m68k_trace/musashi.cpp | fredrequin/verilator_helpers | 4ff43594f9ddf62d3e6696520623809b59e0b1e1 | [
"BSD-3-Clause"
] | null | null | null | #ifdef __cplusplus
extern "C" {
#endif
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <fcntl.h>
#include "musashi/m68k.h"
#define FLG_C(r) (r & 1) ? '1' : '0'
#define FLG_V(r) (r & 2) ? '1' : '0'
#define FLG_Z(r) (r & 4) ? '1' : '0'
#define FLG_N(r) (r & 8) ? '1' : '0'
#define... | 28.823529 | 97 | 0.670408 | fredrequin |
f26bcb26cc4ff77c6d2d9b35e450db33172027db | 20,699 | cpp | C++ | Examples/crosscurrencylgm.cpp | universe1987/QuantLib | bbb0145aff285853755b9f6ed013f53a41163acb | [
"BSD-3-Clause"
] | 4 | 2016-03-28T15:05:23.000Z | 2020-02-17T23:05:57.000Z | Examples/crosscurrencylgm.cpp | universe1987/QuantLib | bbb0145aff285853755b9f6ed013f53a41163acb | [
"BSD-3-Clause"
] | 1 | 2015-02-02T20:32:43.000Z | 2015-02-02T20:32:43.000Z | Examples/crosscurrencylgm.cpp | pcaspers/quantlib | bbb0145aff285853755b9f6ed013f53a41163acb | [
"BSD-3-Clause"
] | 10 | 2015-01-26T14:50:24.000Z | 2015-10-23T07:41:30.000Z | #include <ql/quantlib.hpp>
#include <boost/make_shared.hpp>
// example / tests for multicurrency lgm model
using namespace QuantLib;
void nodelete() {}
int main() {
try {
Date referenceDate(30, July, 2015);
Settings::instance().evaluationDate() = referenceDate;
// the single currenc... | 49.997585 | 80 | 0.529977 | universe1987 |
f26bd1be8170507920e279813564d69867ee8aa1 | 22,112 | cpp | C++ | unittests/adt/test_sstring_view.cpp | paulhuggett/pstore2 | a0c663d10a2e2713fdf39ecdae1f9c1e96041f5c | [
"Apache-2.0"
] | 11 | 2018-02-02T21:24:49.000Z | 2020-12-11T04:06:03.000Z | unittests/adt/test_sstring_view.cpp | SNSystems/pstore | 74e9dd960245d6bfc125af03ed964d8ad660a62d | [
"Apache-2.0"
] | 63 | 2018-02-05T17:24:59.000Z | 2022-03-22T17:26:28.000Z | unittests/adt/test_sstring_view.cpp | paulhuggett/pstore | 067be94d87c87fce524c8d76c6f47c347d8f1853 | [
"Apache-2.0"
] | 5 | 2020-01-13T22:47:11.000Z | 2021-05-14T09:31:15.000Z | //===- unittests/adt/test_sstring_view.cpp --------------------------------===//
//* _ _ _ *
//* ___ ___| |_ _ __(_)_ __ __ _ __ _(_) _____ __ *
//* / __/ __| __| '__| | '_ \ / _` | \ \ / / |/ _ \ \ /\ / / *
//* \__ \__ \ |_| | | | | | | (_| | \ V /| | __... | 41.56391 | 100 | 0.566751 | paulhuggett |
f26c090c52e3139604be765557f6fe10cb2b2fd4 | 9,734 | cpp | C++ | ModulePlayer2.cpp | Alejandromo125/3DPhysicsProject | 89976b0c6f28881c9eb4aac008c010b348cb4dbb | [
"MIT"
] | null | null | null | ModulePlayer2.cpp | Alejandromo125/3DPhysicsProject | 89976b0c6f28881c9eb4aac008c010b348cb4dbb | [
"MIT"
] | null | null | null | ModulePlayer2.cpp | Alejandromo125/3DPhysicsProject | 89976b0c6f28881c9eb4aac008c010b348cb4dbb | [
"MIT"
] | null | null | null | #include "Globals.h"
#include "Application.h"
#include "ModulePlayer.h"
#include "Primitive.h"
#include "PhysVehicle3D.h"
#include "PhysBody3D.h"
#include "ModuleCamera3D.h"
#include "ModuleSceneIntro.h"
#include "Timer.h"
ModulePlayer2::ModulePlayer2(Application* app, bool start_enabled) : Module(app, start_enabled),... | 25.548556 | 162 | 0.654818 | Alejandromo125 |
f26ecc78689c1db3b28d14bb7668b1973dcc0f55 | 12,120 | cpp | C++ | 3_Utilities/stream/pezy.cpp | denjiry/samples | 1b97f83cd9077777595b0435c515d0a17701924b | [
"BSD-3-Clause"
] | null | null | null | 3_Utilities/stream/pezy.cpp | denjiry/samples | 1b97f83cd9077777595b0435c515d0a17701924b | [
"BSD-3-Clause"
] | null | null | null | 3_Utilities/stream/pezy.cpp | denjiry/samples | 1b97f83cd9077777595b0435c515d0a17701924b | [
"BSD-3-Clause"
] | 2 | 2019-04-13T05:04:32.000Z | 2019-04-15T07:59:36.000Z | /*!
* @author PEZY Computing, K.K.
* @date 2019
* @copyright BSD-3-Clause
*/
#include "pezy.hpp"
#include <chrono>
#include <fstream>
#include <iostream>
#include <sstream>
#include <stdexcept>
namespace {
inline size_t getFileSize(std::ifstream& file)
{
file.seekg(0, std::ios::end);
size_t ret = ... | 32.148541 | 156 | 0.572607 | denjiry |
f275977141ce0ab0a9da12f8f20b41b89411457c | 730 | cpp | C++ | hdu/2109.cpp | bashell/oj | 9471e32d735168148390d42029998187e0e04e2b | [
"MIT"
] | null | null | null | hdu/2109.cpp | bashell/oj | 9471e32d735168148390d42029998187e0e04e2b | [
"MIT"
] | null | null | null | hdu/2109.cpp | bashell/oj | 9471e32d735168148390d42029998187e0e04e2b | [
"MIT"
] | null | null | null | #include <cstdio>
#include <algorithm>
using namespace std;
int china[101];
int japan[101];
int main()
{
//freopen("in.txt", "r", stdin);
int n;
while(scanf("%d", &n) && n) {
for(int i = 0; i < n; ++i)
scanf("%d", &china[i]);
for(int i = 0; i < n; ++i)
scanf("%d", &... | 22.8125 | 45 | 0.419178 | bashell |
f276e5ae0dc07829c7d03206726169e309cd3e57 | 1,590 | cpp | C++ | test.cpp | yuanzhubi/mpsc_wait_free | 5a1f966c228756dbed6f8ec4d3cdc63833d20540 | [
"MIT"
] | 2 | 2018-08-27T11:43:51.000Z | 2019-03-28T08:41:31.000Z | test.cpp | yuanzhubi/mpsc_wait_free | 5a1f966c228756dbed6f8ec4d3cdc63833d20540 | [
"MIT"
] | null | null | null | test.cpp | yuanzhubi/mpsc_wait_free | 5a1f966c228756dbed6f8ec4d3cdc63833d20540 | [
"MIT"
] | null | null | null | #include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <unistd.h>
#include "mpsc.h"
#include <time.h>
size_t produce_failed_count = 0;
struct X {
clock_t start;
X(){
start = clock();
}
~X(){
char buf[32];
snprintf(buf, 32,"%... | 21.2 | 96 | 0.603145 | yuanzhubi |
f278783eae90475a9e5168c3ee0dd453cd94d86f | 12,290 | cpp | C++ | Classes/Player.cpp | thiagofigcosta/The.COM-Game | 653b7174767b6dc2351807a44c2c4ac67c7dc1d6 | [
"MIT"
] | null | null | null | Classes/Player.cpp | thiagofigcosta/The.COM-Game | 653b7174767b6dc2351807a44c2c4ac67c7dc1d6 | [
"MIT"
] | null | null | null | Classes/Player.cpp | thiagofigcosta/The.COM-Game | 653b7174767b6dc2351807a44c2c4ac67c7dc1d6 | [
"MIT"
] | null | null | null | #include "Player.hpp"
#include "GL.hpp"
#include "Mechanics.hpp"
#include "Enemy.hpp"
#include "Bullet.hpp"
#include "../Libs/Globals.h"
#include "Blocks.hpp"
Player::Player(float life,nTPoint spawn,nTPoint size,vector<vector<GLuint> > animations,bool isHuman) {
this->pos=spawn;
this->size=size;
this->anim... | 31.272265 | 152 | 0.541823 | thiagofigcosta |
f279615f091ad90091fa5d3a87f44aabaa739bd1 | 2,588 | cpp | C++ | library/baselib/source/LogMessageManager.cpp | KOMMYHAP/Minigame | 6bb0c826b33310b0930fa5193f55e538eec7ad88 | [
"MIT"
] | null | null | null | library/baselib/source/LogMessageManager.cpp | KOMMYHAP/Minigame | 6bb0c826b33310b0930fa5193f55e538eec7ad88 | [
"MIT"
] | null | null | null | library/baselib/source/LogMessageManager.cpp | KOMMYHAP/Minigame | 6bb0c826b33310b0930fa5193f55e538eec7ad88 | [
"MIT"
] | null | null | null | #include "basic_defs.h"
#include "LogMessageManager.h"
#define _AMD64_
#include <processthreadsapi.h>
#include <debugapi.h>
#include <filesystem>
#include <fstream>
#include <iostream>
#include <ctime>
LogMessageManager::LogMessageManager()
{
namespace fs = std::filesystem;
auto path = fs::current... | 20.539683 | 90 | 0.600464 | KOMMYHAP |
f27ccfa1b535d9d345fd932c705412b6330f4cfb | 337 | cpp | C++ | sbookqt/myqfiledialog.cpp | hasandiwan/SBook5 | a4bf61692c3b180ca5d0652e951ed1f82ea4cad7 | [
"MIT"
] | 1 | 2015-08-29T23:13:26.000Z | 2015-08-29T23:13:26.000Z | sbookqt/myqfiledialog.cpp | hasandiwan/SBook5 | a4bf61692c3b180ca5d0652e951ed1f82ea4cad7 | [
"MIT"
] | 4 | 2018-04-30T12:44:32.000Z | 2019-09-27T21:12:21.000Z | sbookqt/myqfiledialog.cpp | hasandiwan/SBook5 | a4bf61692c3b180ca5d0652e951ed1f82ea4cad7 | [
"MIT"
] | 4 | 2015-05-08T22:35:01.000Z | 2020-10-05T18:48:49.000Z | #include "myqfiledialog.h"
MyQFileDialog::MyQFileDialog( const QString& dirName,
const QString& filter,
QWidget *parent,
const char *name,
bool modal)
{
QFileDialog(dirName,filter,parent,name,true);
}
void MyQFileDialog::setFilter(const QString &filter)
{
QFileDialog::setF... | 19.823529 | 53 | 0.673591 | hasandiwan |
f27db8c1608ff04c208c7649dcf094f57cb0291a | 24,870 | cc | C++ | chrome/browser/chromeos/status/input_method_menu.cc | gavinp/chromium | 681563ea0f892a051f4ef3d5e53438e0bb7d2261 | [
"BSD-3-Clause"
] | 1 | 2016-03-10T09:13:57.000Z | 2016-03-10T09:13:57.000Z | chrome/browser/chromeos/status/input_method_menu.cc | gavinp/chromium | 681563ea0f892a051f4ef3d5e53438e0bb7d2261 | [
"BSD-3-Clause"
] | 1 | 2022-03-13T08:39:05.000Z | 2022-03-13T08:39:05.000Z | chrome/browser/chromeos/status/input_method_menu.cc | gavinp/chromium | 681563ea0f892a051f4ef3d5e53438e0bb7d2261 | [
"BSD-3-Clause"
] | null | null | null | // Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "chrome/browser/chromeos/status/input_method_menu.h"
#include <string>
#include <vector>
#include "base/string_split.h"
#include "base/stri... | 36.735598 | 80 | 0.707921 | gavinp |
f27eb4c04270cd8b81e5c1f1060b6409f925c671 | 48,677 | cpp | C++ | Sources/Elastos/Frameworks/Droid/Base/Core/src/elastos/droid/speech/tts/TextToSpeech.cpp | jingcao80/Elastos | d0f39852356bdaf3a1234743b86364493a0441bc | [
"Apache-2.0"
] | 7 | 2017-07-13T10:34:54.000Z | 2021-04-16T05:40:35.000Z | Sources/Elastos/Frameworks/Droid/Base/Core/src/elastos/droid/speech/tts/TextToSpeech.cpp | jingcao80/Elastos | d0f39852356bdaf3a1234743b86364493a0441bc | [
"Apache-2.0"
] | null | null | null | Sources/Elastos/Frameworks/Droid/Base/Core/src/elastos/droid/speech/tts/TextToSpeech.cpp | jingcao80/Elastos | d0f39852356bdaf3a1234743b86364493a0441bc | [
"Apache-2.0"
] | 9 | 2017-07-13T12:33:20.000Z | 2021-06-19T02:46:48.000Z | //=========================================================================
// Copyright (C) 2012 The Elastos Open Source Project
//
// 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
//
// ... | 32.956669 | 178 | 0.61943 | jingcao80 |
f27fbf234d770d6edc4402b271a95e0a0599243b | 6,068 | cpp | C++ | Source/ComputeEngine/Cuda/Buffers/CudaHostBuffer.cpp | Fillo7/KTT | a0c252efb75a8366450e2df589f0ae641f015312 | [
"MIT"
] | 32 | 2017-09-12T23:52:52.000Z | 2020-12-09T07:13:24.000Z | Source/ComputeEngine/Cuda/Buffers/CudaHostBuffer.cpp | Fillo7/KTT | a0c252efb75a8366450e2df589f0ae641f015312 | [
"MIT"
] | 23 | 2017-05-11T14:38:45.000Z | 2021-02-03T13:45:14.000Z | Source/ComputeEngine/Cuda/Buffers/CudaHostBuffer.cpp | Fillo7/KTT | a0c252efb75a8366450e2df589f0ae641f015312 | [
"MIT"
] | 5 | 2017-11-06T12:40:05.000Z | 2020-06-16T13:11:24.000Z | #ifdef KTT_API_CUDA
#include <algorithm>
#include <Api/KttException.h>
#include <ComputeEngine/Cuda/Actions/CudaTransferAction.h>
#include <ComputeEngine/Cuda/Buffers/CudaHostBuffer.h>
#include <ComputeEngine/Cuda/CudaStream.h>
#include <ComputeEngine/Cuda/CudaUtility.h>
#include <Utility/ErrorHandling/Assert.h>
#inc... | 34.477273 | 129 | 0.718029 | Fillo7 |
f28063be1c33da920e061d3032c0093b2f9306ad | 28 | cpp | C++ | PGTProject/Source/PGTProject/MouseController.cpp | dylanpiera/IVGT6 | b5696222d53a0d3a8369b8c5eb9e35c03e8afab8 | [
"MIT"
] | null | null | null | PGTProject/Source/PGTProject/MouseController.cpp | dylanpiera/IVGT6 | b5696222d53a0d3a8369b8c5eb9e35c03e8afab8 | [
"MIT"
] | null | null | null | PGTProject/Source/PGTProject/MouseController.cpp | dylanpiera/IVGT6 | b5696222d53a0d3a8369b8c5eb9e35c03e8afab8 | [
"MIT"
] | null | null | null | #include "MouseController.h" | 28 | 28 | 0.821429 | dylanpiera |
f281acac1787036957d6edba0581e7c13580b91f | 24,586 | cpp | C++ | Documents/RacimoAire/RacimoAire3/racimo3.cpp | JoseSalamancaCoy/RACIMO_AIRE | 628d6ff184a30af0efd25bff675b0006500d4ba2 | [
"MIT"
] | null | null | null | Documents/RacimoAire/RacimoAire3/racimo3.cpp | JoseSalamancaCoy/RACIMO_AIRE | 628d6ff184a30af0efd25bff675b0006500d4ba2 | [
"MIT"
] | null | null | null | Documents/RacimoAire/RacimoAire3/racimo3.cpp | JoseSalamancaCoy/RACIMO_AIRE | 628d6ff184a30af0efd25bff675b0006500d4ba2 | [
"MIT"
] | null | null | null | #include "racimo3.h"
Racimo3::Racimo3(QObject *parent)
: QObject(parent)
{
blinkLed = false;
AlertRAM = false;
AlertTemperatura = false;
NewData = false;
InitAPP =true;
AlertWifi =false;
_timeoutlectura =false;
AlertPMS=false;
AlertOPC=false;
ShutdownManual=false;
Reboot... | 30.093023 | 155 | 0.630684 | JoseSalamancaCoy |
f28555de74b1b2fb5fa20b7fd70783d3c45f9e84 | 3,116 | cpp | C++ | code_reading/oceanbase-master/deps/oblib/src/common/row/ob_row_util.cpp | wangcy6/weekly_read | 3a8837ee9cd957787ee1785e4066dd623e02e13a | [
"Apache-2.0"
] | null | null | null | code_reading/oceanbase-master/deps/oblib/src/common/row/ob_row_util.cpp | wangcy6/weekly_read | 3a8837ee9cd957787ee1785e4066dd623e02e13a | [
"Apache-2.0"
] | null | null | null | code_reading/oceanbase-master/deps/oblib/src/common/row/ob_row_util.cpp | wangcy6/weekly_read | 3a8837ee9cd957787ee1785e4066dd623e02e13a | [
"Apache-2.0"
] | 1 | 2020-10-18T12:59:31.000Z | 2020-10-18T12:59:31.000Z | /**
* Copyright (c) 2021 OceanBase
* OceanBase CE is licensed under Mulan PubL v2.
* You can use this software according to the terms and conditions of the Mulan PubL v2.
* You may obtain a copy of Mulan PubL v2 at:
* http://license.coscl.org.cn/MulanPubL-2.0
* THIS SOFTWARE IS PROVIDED ON AN "AS IS" BAS... | 37.095238 | 116 | 0.655969 | wangcy6 |
f288f316e84250c8338dbd3aa811a652e0fb2ae5 | 901 | hpp | C++ | src/cpp/ee/adjust/AdjustConfig.hpp | enrevol/ee-x | 60a66ad3dc6e14802a7c5d8d585a8499be13f5b8 | [
"MIT"
] | null | null | null | src/cpp/ee/adjust/AdjustConfig.hpp | enrevol/ee-x | 60a66ad3dc6e14802a7c5d8d585a8499be13f5b8 | [
"MIT"
] | null | null | null | src/cpp/ee/adjust/AdjustConfig.hpp | enrevol/ee-x | 60a66ad3dc6e14802a7c5d8d585a8499be13f5b8 | [
"MIT"
] | null | null | null | //
// AdjustConfig.hpp
// Adjust
//
// Created by eps on 8/19/20.
//
#ifndef EE_X_ADJUST_CONFIG_HPP
#define EE_X_ADJUST_CONFIG_HPP
#ifdef __cplusplus
#include <string>
#include "ee/adjust/AdjustFwd.hpp"
namespace ee {
namespace adjust {
class Config final {
private:
using Self = Config;
public:
Self& s... | 19.586957 | 78 | 0.715871 | enrevol |
f289d09358b32968f0bbb4c848d8b910b9fd0490 | 3,023 | cpp | C++ | src/HttpCURL.cpp | Daivuk/onut | b02c5969b36897813de9c574a26d9437b67f189e | [
"MIT"
] | 50 | 2015-06-01T19:23:24.000Z | 2021-12-22T02:14:23.000Z | src/HttpCURL.cpp | Daivuk/onut | b02c5969b36897813de9c574a26d9437b67f189e | [
"MIT"
] | 109 | 2015-07-20T07:43:03.000Z | 2021-01-31T21:52:36.000Z | src/HttpCURL.cpp | Daivuk/onut | b02c5969b36897813de9c574a26d9437b67f189e | [
"MIT"
] | 9 | 2015-07-02T21:36:20.000Z | 2019-10-19T04:18:02.000Z | // Onut
#include <onut/Async.h>
#include <onut/Dispatcher.h>
#include <onut/Strings.h>
#include <onut/Texture.h>
// Internal
#include "HttpCURL.h"
// Third party
#include <curl/curl.h>
// STL
#include <locale>
namespace onut
{
OHttpRef Http::create()
{
return std::shared_ptr<Http>(new HttpCURL());
... | 25.191667 | 110 | 0.556732 | Daivuk |
f28a84be683355d46fe86e4074c33d12c0bc0ef1 | 1,165 | hpp | C++ | Source/DequeSearcher.hpp | jamesfer/Pathfinder | c1e770624a3b163f2dd173f38228e93d7eb80367 | [
"MIT"
] | null | null | null | Source/DequeSearcher.hpp | jamesfer/Pathfinder | c1e770624a3b163f2dd173f38228e93d7eb80367 | [
"MIT"
] | null | null | null | Source/DequeSearcher.hpp | jamesfer/Pathfinder | c1e770624a3b163f2dd173f38228e93d7eb80367 | [
"MIT"
] | null | null | null | #ifndef DequeSearcher_hpp
#define DequeSearcher_hpp
#include "Searcher.hpp"
#include <deque>
/**
* Utility class that implements a deque as the frontier structure.
* Does not implement the nextInFrontier method as it depends on the
* search strategy
*/
template <class State_type, class Success_functor = IsGoalC... | 17.651515 | 76 | 0.718455 | jamesfer |
f28f7ae21fa286ce46810fe1a6c1496d73e0529c | 987 | cpp | C++ | GetLowEngine.Engine/PSOManager.cpp | ticticboooom/GetLowEngine | 3303bc414a8b89c605161193d7284b6f91c4a5b6 | [
"MIT"
] | 3 | 2021-03-05T01:56:44.000Z | 2021-08-01T10:18:47.000Z | GetLowEngine.Engine/PSOManager.cpp | ticticboooom/GetLowEngine | 3303bc414a8b89c605161193d7284b6f91c4a5b6 | [
"MIT"
] | null | null | null | GetLowEngine.Engine/PSOManager.cpp | ticticboooom/GetLowEngine | 3303bc414a8b89c605161193d7284b6f91c4a5b6 | [
"MIT"
] | null | null | null | #include "pch.h"
#include "PSOManager.h"
#include "DirectXHelper.h"
#include "DeviceResources.h"
#define _ATL_DEBUG_INTERFACES
/**
* @brief Construct a new PSOManager::PSOManager object
* init with default values, this stores the shaders and renderer pipeline data
* @param deviceResources
*/
PSOManager::PSOManager... | 28.2 | 120 | 0.77305 | ticticboooom |
f29096fcc997deeb21771d7b3c73af0ec9321e64 | 454 | cc | C++ | Adapter/Adapter.cc | Yescafe/pattern_demo | b87d8d588683773cd37efff0e9e12fc70b13f187 | [
"MIT"
] | 1 | 2020-07-11T04:36:14.000Z | 2020-07-11T04:36:14.000Z | Adapter/Adapter.cc | Yescafe/pattern_demo | b87d8d588683773cd37efff0e9e12fc70b13f187 | [
"MIT"
] | null | null | null | Adapter/Adapter.cc | Yescafe/pattern_demo | b87d8d588683773cd37efff0e9e12fc70b13f187 | [
"MIT"
] | null | null | null | #include "Adapter.hpp"
#include <iostream>
Target::Target()
{ }
Target::~Target()
{ }
void Target::Request()
{
std::cout << "Target::Request..." << std::endl;
}
Adaptee::Adaptee()
{ }
Adaptee::~Adaptee()
{ }
void Adaptee::SpecificRequest()
{
std::cout << "Adaptee::SpecificRequest..." << std::endl;
}
Adap... | 11.947368 | 60 | 0.603524 | Yescafe |
f29208998beb649cd770d4a51c70d109bd7c1cac | 737 | cpp | C++ | mlir/lib/Interfaces/ViewLikeInterface.cpp | rarutyun/llvm | 76fa6b3bcade074bdedef740001c4528e1aa08a8 | [
"Apache-2.0"
] | 305 | 2019-09-14T17:16:05.000Z | 2022-03-31T15:05:20.000Z | mlir/lib/Interfaces/ViewLikeInterface.cpp | rarutyun/llvm | 76fa6b3bcade074bdedef740001c4528e1aa08a8 | [
"Apache-2.0"
] | 11 | 2019-10-17T21:11:52.000Z | 2022-02-17T20:10:00.000Z | mlir/lib/Interfaces/ViewLikeInterface.cpp | rarutyun/llvm | 76fa6b3bcade074bdedef740001c4528e1aa08a8 | [
"Apache-2.0"
] | 24 | 2019-10-03T11:22:11.000Z | 2022-01-25T09:59:30.000Z | //===- ViewLikeInterface.cpp - View-like operations in MLIR ---------------===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
//
//===---------------------------... | 38.789474 | 80 | 0.489824 | rarutyun |
f2971416f9f158bb2a68da0a246ec15394aacc06 | 587 | cpp | C++ | compiler/tst_flowchartcompiler.cpp | UnnamedCompany/UnnamedSoftware | 3251dc9844f35622f616fd3d5a40cb8c89ac0b28 | [
"MIT"
] | 4 | 2016-02-18T00:48:10.000Z | 2016-03-02T23:41:54.000Z | compiler/tst_flowchartcompiler.cpp | UnnamedCompany/UnnamedSoftware | 3251dc9844f35622f616fd3d5a40cb8c89ac0b28 | [
"MIT"
] | null | null | null | compiler/tst_flowchartcompiler.cpp | UnnamedCompany/UnnamedSoftware | 3251dc9844f35622f616fd3d5a40cb8c89ac0b28 | [
"MIT"
] | 1 | 2016-02-29T18:13:34.000Z | 2016-02-29T18:13:34.000Z | #include <QTest>
#include <QString>
#include "flowchart.h"
class TestFlowChartCompiler : public QObject {
Q_OBJECT
public:
TestFlowChartCompiler() { }
private Q_SLOTS:
void testIsExpandable() {
QWARN("No test implemented");
}
void testExtractUniqueBlockNames() {
QWARN("No test i... | 15.864865 | 46 | 0.662692 | UnnamedCompany |
f2990f0ecaebf3f073258a45108df106a7411240 | 16,892 | cpp | C++ | alienfx-cli/alienfx-cli.cpp | T-Troll/alienfx-tools | 70d3b4be158b9ff2cafd87cc3c09b695fdab384c | [
"MIT"
] | 55 | 2020-07-24T13:50:59.000Z | 2022-03-31T02:15:09.000Z | alienfx-cli/alienfx-cli.cpp | T-Troll/alienfx-tools | 70d3b4be158b9ff2cafd87cc3c09b695fdab384c | [
"MIT"
] | 41 | 2020-07-25T14:37:25.000Z | 2022-03-28T02:36:15.000Z | alienfx-cli/alienfx-cli.cpp | T-Troll/alienfx-tools | 70d3b4be158b9ff2cafd87cc3c09b695fdab384c | [
"MIT"
] | 9 | 2020-12-24T05:19:35.000Z | 2022-03-30T01:52:32.000Z | #define WIN32_LEAN_AND_MEAN
#include <iostream>
#include "stdafx.h"
#include "LFXUtil.h"
#include "LFXDecl.h"
#include "AlienFX_SDK.h"
namespace
{
LFXUtil::LFXUtilC lfxUtil;
}
using namespace std;
unsigned GetZoneCode(string name, int mode) {
switch (mode) {
case 1: return atoi(name.c_str()) | 0x10000;
case 0:... | 30.994495 | 134 | 0.590753 | T-Troll |
f29b05a35709c839a7fe8cf70b351995e71a9f04 | 1,181 | cpp | C++ | S-Digit_Sum.cpp | geegatomar/Educational-DP-contest-Atcoder | f32cb87cc58609e3c0cd51b9d54b632dd215b6ef | [
"MIT"
] | null | null | null | S-Digit_Sum.cpp | geegatomar/Educational-DP-contest-Atcoder | f32cb87cc58609e3c0cd51b9d54b632dd215b6ef | [
"MIT"
] | null | null | null | S-Digit_Sum.cpp | geegatomar/Educational-DP-contest-Atcoder | f32cb87cc58609e3c0cd51b9d54b632dd215b6ef | [
"MIT"
] | null | null | null | #include<bits/stdc++.h>
using namespace std;
#define int long long
const int M = 1e9 + 7;
const int N = (int)1e4;
// Concept used: Digit DP
int dp[N][2][100];
int f(int ind, int is_tight, int sum_of_dig, string &k, int &d)
{
sum_of_dig %= d;
if(ind >= k.size())
return ((sum_of_dig % d == 0) ? 1 : ... | 20.016949 | 73 | 0.461473 | geegatomar |
f2a0a3cfd5f3ff212cb788c6b2b6b7f6bd5660ed | 1,206 | cpp | C++ | code_process/src/RCB.cpp | NewtonVan/OS2020 | 223bc0d190ddad352777587792f4bf12d4d0081d | [
"MIT"
] | 1 | 2021-12-16T07:49:37.000Z | 2021-12-16T07:49:37.000Z | code_process/src/RCB.cpp | NewtonVan/OS2020 | 223bc0d190ddad352777587792f4bf12d4d0081d | [
"MIT"
] | null | null | null | code_process/src/RCB.cpp | NewtonVan/OS2020 | 223bc0d190ddad352777587792f4bf12d4d0081d | [
"MIT"
] | null | null | null | #include "RCB.h"
RCB::RCB()
: rid_(-1), available_(0), total_(0)
{}
RCB::RCB(int rid, int available, int total)
: rid_(rid), available_(available), total_(total)
{}
RCB::RCB(int rid, int total)
: rid_(rid), available_(total), total_(total)
{}
RCB::~RCB()= default;
// get the member of RCB
int RCB::getRid()
{
r... | 14.707317 | 63 | 0.624378 | NewtonVan |
f2a2164401b9df5cb867f9e81692410f1cb60e3e | 3,169 | hpp | C++ | OptiX-Path-Tracer/programs/vec.hpp | trevortheblack/OptiX-Path-Tracer | e52394a80966057f8968c008078f0372277fdc8e | [
"Apache-2.0"
] | 77 | 2018-11-27T12:17:52.000Z | 2022-02-22T23:25:06.000Z | OptiX-Path-Tracer/programs/vec.hpp | trevortheblack/OptiX-Path-Tracer | e52394a80966057f8968c008078f0372277fdc8e | [
"Apache-2.0"
] | 1 | 2019-06-14T18:43:07.000Z | 2019-06-14T18:43:07.000Z | OptiX-Path-Tracer/programs/vec.hpp | trevortheblack/OptiX-Path-Tracer | e52394a80966057f8968c008078f0372277fdc8e | [
"Apache-2.0"
] | 3 | 2019-06-14T15:28:58.000Z | 2021-10-13T16:32:09.000Z | // ======================================================================== //
// Copyright 2018 Ingo Wald //
// //
// Licensed under the Apache License, Version 2.0 (the "License"); //
// y... | 37.72619 | 78 | 0.565478 | trevortheblack |
f2a822ce0f18fc221e92014cb95187deeff85435 | 2,986 | cc | C++ | src/poly/string.cc | jdarpinian/xenia | 609d7c755f260e86a865703dc1dcd6df064b1fa0 | [
"BSD-3-Clause"
] | 1 | 2016-11-18T23:12:53.000Z | 2016-11-18T23:12:53.000Z | src/poly/string.cc | jdarpinian/xenia | 609d7c755f260e86a865703dc1dcd6df064b1fa0 | [
"BSD-3-Clause"
] | null | null | null | src/poly/string.cc | jdarpinian/xenia | 609d7c755f260e86a865703dc1dcd6df064b1fa0 | [
"BSD-3-Clause"
] | null | null | null | /**
******************************************************************************
* Xenia : Xbox 360 Emulator Research Project *
******************************************************************************
* Copyright 2014 Ben Vanik. All rights reserved. ... | 27.648148 | 79 | 0.558607 | jdarpinian |
f2a85ae7f29b22e347a92f289e2f6ccdb9467e76 | 12,793 | cxx | C++ | main/chart2/source/model/template/StockDataInterpreter.cxx | Grosskopf/openoffice | 93df6e8a695d5e3eac16f3ad5e9ade1b963ab8d7 | [
"Apache-2.0"
] | 679 | 2015-01-06T06:34:58.000Z | 2022-03-30T01:06:03.000Z | main/chart2/source/model/template/StockDataInterpreter.cxx | Grosskopf/openoffice | 93df6e8a695d5e3eac16f3ad5e9ade1b963ab8d7 | [
"Apache-2.0"
] | 102 | 2017-11-07T08:51:31.000Z | 2022-03-17T12:13:49.000Z | main/chart2/source/model/template/StockDataInterpreter.cxx | Grosskopf/openoffice | 93df6e8a695d5e3eac16f3ad5e9ade1b963ab8d7 | [
"Apache-2.0"
] | 331 | 2015-01-06T11:40:55.000Z | 2022-03-14T04:07:51.000Z | /**************************************************************
*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to y... | 37.516129 | 129 | 0.641601 | Grosskopf |
f2a9d07a41acfc84fd8f119e5fa61f252cefb836 | 1,091 | cpp | C++ | hw2/q1/Date.cpp | BenEf97/BarBenCPP | 556eebfeeadd210cc9552915d58c274b8f881eb7 | [
"MIT"
] | 1 | 2022-03-01T19:09:52.000Z | 2022-03-01T19:09:52.000Z | hw2/q1/Date.cpp | BenEf97/BarBenCPP | 556eebfeeadd210cc9552915d58c274b8f881eb7 | [
"MIT"
] | 1 | 2022-03-01T19:14:11.000Z | 2022-03-01T19:14:34.000Z | hw2/q1/Date.cpp | BenEf97/BarBenCPP | 556eebfeeadd210cc9552915d58c274b8f881eb7 | [
"MIT"
] | null | null | null | #include "Date.h"
#include <iostream>
using namespace std;
//Work on date, all the functions.
Date::Date(int d, int m, int y)
{
setDay(d);
setMonth(m);
setYear(y);
}
//Empty constructor
Date::Date()
{
day = 1;
month = 1;
year = 2000;
}
//returns the day
int Date::getDay() const
{
return day;
}
//returns th... | 14.168831 | 95 | 0.629698 | BenEf97 |
f2ab7d41580507baa21e49b214b9807de8575698 | 742 | cpp | C++ | src/autoc4player.cpp | ghostdart/connect-four | 5910c7e5952b1f1dbeafb0eb0f9eb94fc6bd0f69 | [
"MIT"
] | null | null | null | src/autoc4player.cpp | ghostdart/connect-four | 5910c7e5952b1f1dbeafb0eb0f9eb94fc6bd0f69 | [
"MIT"
] | null | null | null | src/autoc4player.cpp | ghostdart/connect-four | 5910c7e5952b1f1dbeafb0eb0f9eb94fc6bd0f69 | [
"MIT"
] | null | null | null | #include "autoc4player.h"
AutoC4Player::AutoC4Player(char Color) : Player("Auto:Random", Color)
{
// Just call the base constructor
}
double AutoC4Player::EvaluateState(GameBoard *Board)
{
// Board Evaluation Area;
// This auto-player is not using it.
return 0;
}
Connect4Move *AutoC4Player::SuggestMove(GameS... | 20.611111 | 74 | 0.673854 | ghostdart |
f2aba9e999a6b84c6f9dd7cdfa8d600bd785d8b8 | 18,712 | cpp | C++ | lib/Front/Input.cpp | axia-sw/Doll | a5846a6553d9809e9a0ea50db2dc18b95eb21921 | [
"Zlib"
] | 1 | 2021-07-19T14:40:15.000Z | 2021-07-19T14:40:15.000Z | lib/Front/Input.cpp | axia-sw/Doll | a5846a6553d9809e9a0ea50db2dc18b95eb21921 | [
"Zlib"
] | null | null | null | lib/Front/Input.cpp | axia-sw/Doll | a5846a6553d9809e9a0ea50db2dc18b95eb21921 | [
"Zlib"
] | null | null | null | #define DOLL_TRACE_FACILITY doll::kLog_FrontendInput
#include "../BuildSettings.hpp"
#include "doll/Front/Input.hpp"
#include "doll/Front/Frontend.hpp"
#include "doll/Core/Logger.hpp"
#include "doll/OS/App.hpp"
#include "doll/OS/Window.hpp"
namespace doll
{
struct SWndInputState
{
static const UP... | 23.01599 | 119 | 0.617946 | axia-sw |
f2acb8641b7513b5eb33a587f8578d5016fe58aa | 2,657 | hpp | C++ | project/cpp/console.hpp | umamibeef/UBC-ELEC-542-Coursework | 33145e95730a5c9d9cfb1252cc67ebe6820c58c4 | [
"MIT"
] | null | null | null | project/cpp/console.hpp | umamibeef/UBC-ELEC-542-Coursework | 33145e95730a5c9d9cfb1252cc67ebe6820c58c4 | [
"MIT"
] | null | null | null | project/cpp/console.hpp | umamibeef/UBC-ELEC-542-Coursework | 33145e95730a5c9d9cfb1252cc67ebe6820c58c4 | [
"MIT"
] | null | null | null | /**
MIT License
Copyright (c) [2022] [Michel Kakulphimp]
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... | 34.064103 | 87 | 0.723372 | umamibeef |
f2aced26cc0b0822d6a78a499e7cb8f779b3bb62 | 348 | cpp | C++ | native/src/iid.cpp | kekekeks/prowingen | 35585859cca66c2b1c4d865570b6ca1debf7ff60 | [
"MIT"
] | 6 | 2015-03-13T20:27:58.000Z | 2017-09-26T07:01:37.000Z | native/src/iid.cpp | kekekeks/prowingen | 35585859cca66c2b1c4d865570b6ca1debf7ff60 | [
"MIT"
] | null | null | null | native/src/iid.cpp | kekekeks/prowingen | 35585859cca66c2b1c4d865570b6ca1debf7ff60 | [
"MIT"
] | null | null | null | #include "api.h"
// [Guid("918cfa9b-a766-41e7-9c4b-330954d01b47")]
const GUID IID_IHttpServer = { 0x918cfa9b, 0xa766, 0x41e7, { 0x9c, 0x4b, 0x33, 0x9, 0x54, 0xd0, 0x1b, 0x47 } };
// [Guid("e4ea9822-30c8-4319-9d80-5a0e48de0be5")]
const GUID IID_IProwingenFactory = { 0xe4ea9822, 0x30c8, 0x4319, { 0x9d, 0x80, 0x5a, 0xe, ... | 43.5 | 116 | 0.695402 | kekekeks |
f2ad4fd1c7dff9f2980a2baded3de67d538948d9 | 3,438 | hxx | C++ | opencascade/ApproxInt_SvSurfaces.hxx | valgur/OCP | 2f7d9da73a08e4ffe80883614aedacb27351134f | [
"Apache-2.0"
] | 117 | 2020-03-07T12:07:05.000Z | 2022-03-27T07:35:22.000Z | opencascade/ApproxInt_SvSurfaces.hxx | CadQuery/cpp-py-bindgen | 66e7376d3a27444393fc99acbdbef40bbc7031ae | [
"Apache-2.0"
] | 66 | 2019-12-20T16:07:36.000Z | 2022-03-15T21:56:10.000Z | opencascade/ApproxInt_SvSurfaces.hxx | CadQuery/cpp-py-bindgen | 66e7376d3a27444393fc99acbdbef40bbc7031ae | [
"Apache-2.0"
] | 76 | 2020-03-16T01:47:46.000Z | 2022-03-21T16:37:07.000Z | // Created on: 1993-03-17
// Created by: Laurent BUCHARD
// Copyright (c) 1993-1999 Matra Datavision
// Copyright (c) 1999-2014 OPEN CASCADE SAS
//
// This file is part of Open CASCADE Technology software library.
//
// This library is free software; you can redistribute it and/or modify it under
// the terms of the GN... | 35.443299 | 100 | 0.550611 | valgur |
f2ae01098e156f31bd614060b130104bbfb76693 | 2,164 | cpp | C++ | raw-examples/cpp11/doublebufferedqueue/main.cpp | paoqi1997/pqnet | 3413916bdc355b0a4eea8ef934a3ff658b047b19 | [
"BSD-3-Clause"
] | null | null | null | raw-examples/cpp11/doublebufferedqueue/main.cpp | paoqi1997/pqnet | 3413916bdc355b0a4eea8ef934a3ff658b047b19 | [
"BSD-3-Clause"
] | null | null | null | raw-examples/cpp11/doublebufferedqueue/main.cpp | paoqi1997/pqnet | 3413916bdc355b0a4eea8ef934a3ff658b047b19 | [
"BSD-3-Clause"
] | null | null | null | #include <chrono>
#include <iostream>
#include <thread>
#include "doublebufferedqueue.h"
using std::cout;
using std::endl;
using std::chrono::system_clock;
using std::chrono::time_point;
using std::chrono::time_point_cast;
using us_type = std::chrono::microseconds;
std::uint64_t now()
{
time_point<system_clock, ... | 20.807692 | 89 | 0.530961 | paoqi1997 |
f2b11ebe42929f3001cb71231fe45ac346fd57fc | 23,364 | cxx | C++ | SimModel_Python_API/simmodel_swig/SimModel_Dll_lib/framework/SimWallParams.cxx | EnEff-BIM/EnEffBIM-Framework | 6328d39b498dc4065a60b5cc9370b8c2a9a1cddf | [
"MIT"
] | 3 | 2016-05-30T15:12:16.000Z | 2022-03-22T08:11:13.000Z | SimModel_Python_API/simmodel_swig/SimModel_Dll_lib/framework/SimWallParams.cxx | EnEff-BIM/EnEffBIM-Framework | 6328d39b498dc4065a60b5cc9370b8c2a9a1cddf | [
"MIT"
] | 21 | 2016-06-13T11:33:45.000Z | 2017-05-23T09:46:52.000Z | SimModel_Python_API/simmodel_swig/SimModel_Dll_lib/framework/SimWallParams.cxx | EnEff-BIM/EnEffBIM-Framework | 6328d39b498dc4065a60b5cc9370b8c2a9a1cddf | [
"MIT"
] | null | null | null | // Copyright (c) 2005-2014 Code Synthesis Tools CC
//
// This program was generated by CodeSynthesis XSD, an XML Schema to
// C++ data binding compiler.
//
// This program is free software; you can redistribute it and/or modify
// it under the terms of the GNU General Public License version 2 as
// published by the Fre... | 27.715302 | 130 | 0.581279 | EnEff-BIM |