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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
15a0e39f7233c4b655521a9cfe000ebd281e719d | 898 | cpp | C++ | ch11/1.cpp | KickAlgorithm/cc150 | 455abd416e96d4b03af0a7c50dae9ed76962467e | [
"MIT"
] | 4 | 2015-11-09T17:09:49.000Z | 2021-09-06T05:40:17.000Z | ch11/1.cpp | KickAlgorithm/cc150 | 455abd416e96d4b03af0a7c50dae9ed76962467e | [
"MIT"
] | null | null | null | ch11/1.cpp | KickAlgorithm/cc150 | 455abd416e96d4b03af0a7c50dae9ed76962467e | [
"MIT"
] | null | null | null | /*************************************************************************
> File Name: 1.cpp
> Author: Louis1992
> Mail: zhenchaogan@gmail.com
> Blog: http://gzc.github.io
> Created Time: Mon Nov 2 15:55:19 2015
************************************************************************/
#include<iostream>
using n... | 30.965517 | 74 | 0.433185 | KickAlgorithm |
15a24e8258aaa12ffe4d0af357660ef083e9b28b | 951 | hpp | C++ | examples/c++/src/services/storage.hpp | mlucas-NU/sdk-generator | 7ddeb32967b70839c76bd628ac40807af7353b60 | [
"MIT"
] | null | null | null | examples/c++/src/services/storage.hpp | mlucas-NU/sdk-generator | 7ddeb32967b70839c76bd628ac40807af7353b60 | [
"MIT"
] | null | null | null | examples/c++/src/services/storage.hpp | mlucas-NU/sdk-generator | 7ddeb32967b70839c76bd628ac40807af7353b60 | [
"MIT"
] | null | null | null | #pragma once
#include <string>
#include <map>
#include "../temp_libs/json.hpp"
#include "../client.hpp"
#include "../service.hpp"
using json = nlohmann::json;
using string = std::string;
namespace Appwrite {
class Storage : public Service {
public:
using Service::Service;
json listFiles(string search = "",... | 35.222222 | 268 | 0.692955 | mlucas-NU |
15a7f0c124031cc1a07b2bfde6996399c4135f70 | 8,274 | hpp | C++ | opaque/binop_function.hpp | kmarkley86/opaque_typedef | 880011a48e55520a9945e02b5888db4d00088712 | [
"BSD-3-Clause"
] | null | null | null | opaque/binop_function.hpp | kmarkley86/opaque_typedef | 880011a48e55520a9945e02b5888db4d00088712 | [
"BSD-3-Clause"
] | null | null | null | opaque/binop_function.hpp | kmarkley86/opaque_typedef | 880011a48e55520a9945e02b5888db4d00088712 | [
"BSD-3-Clause"
] | null | null | null | #ifndef OPAQUE_BINOP_FUNCTION_HPP
#define OPAQUE_BINOP_FUNCTION_HPP
//
// Copyright (c) 2015, 2016, 2021
// Kyle Markley. All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are met:
//
// 1. Redistributions... | 39.21327 | 79 | 0.645637 | kmarkley86 |
15a93da91f0785d65d70aea39fcc7e114190e6ea | 2,111 | cpp | C++ | Umbrella-Engine/Graphics/Platform/GraphicsAPI/OpenGL/OpenGLIndexBuffer.cpp | jfla-fan/JFla-Engine | dcbdcdff815fd1729bed35ec556b850cc94f6553 | [
"MIT"
] | null | null | null | Umbrella-Engine/Graphics/Platform/GraphicsAPI/OpenGL/OpenGLIndexBuffer.cpp | jfla-fan/JFla-Engine | dcbdcdff815fd1729bed35ec556b850cc94f6553 | [
"MIT"
] | null | null | null | Umbrella-Engine/Graphics/Platform/GraphicsAPI/OpenGL/OpenGLIndexBuffer.cpp | jfla-fan/JFla-Engine | dcbdcdff815fd1729bed35ec556b850cc94f6553 | [
"MIT"
] | null | null | null | #include "OpenGLIndexBuffer.h"
#include "../GpuApi.h"
namespace J::Graphics
{
// Buffer Builder
Scope< OpenGLIndexBuffer >
BufferBuilder< OpenGLIndexBuffer, _Index_buffer_tag >::
Create( buffer_traits::element_type* elements, buffer_traits::size_type size, buffer_traits::access_type access )
{
return MakeScop... | 22.457447 | 121 | 0.709143 | jfla-fan |
15aa35b8b6849f501d6b971140f57a2b4f34f60b | 6,288 | hpp | C++ | data_structures/hidden_markov_model.hpp | Mapotempo/osrm-backend | a62c10321c0a269e218ab4164c4ccd132048f271 | [
"BSD-2-Clause"
] | 1 | 2016-11-29T15:02:40.000Z | 2016-11-29T15:02:40.000Z | data_structures/hidden_markov_model.hpp | Mapotempo/osrm-backend | a62c10321c0a269e218ab4164c4ccd132048f271 | [
"BSD-2-Clause"
] | 1 | 2019-02-04T18:10:57.000Z | 2019-02-04T18:10:57.000Z | data_structures/hidden_markov_model.hpp | Mapotempo/osrm-backend | a62c10321c0a269e218ab4164c4ccd132048f271 | [
"BSD-2-Clause"
] | null | null | null | /*
Copyright (c) 2015, Project OSRM contributors
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 the f... | 36.77193 | 99 | 0.672392 | Mapotempo |
15ab2a2458f5133ef4b24eba68b102bb8e8e172d | 2,696 | cpp | C++ | working/problem668.cpp | takekoputa/project-euler | 6f434be429bd26f5d0f84f5ab0f5fa2bd677c790 | [
"MIT"
] | null | null | null | working/problem668.cpp | takekoputa/project-euler | 6f434be429bd26f5d0f84f5ab0f5fa2bd677c790 | [
"MIT"
] | null | null | null | working/problem668.cpp | takekoputa/project-euler | 6f434be429bd26f5d0f84f5ab0f5fa2bd677c790 | [
"MIT"
] | 1 | 2021-11-02T12:08:46.000Z | 2021-11-02T12:08:46.000Z | // https://oeis.org/A064775 ; card = cardinality
#include <iostream>
#include <vector>
#include <string>
#include <fstream>
#include <cmath>
using namespace std;
typedef uint64_t ui;
#define endl "\n"
constexpr ui pow10(ui n)
{
if (n == 0)
return 1;
return 10 * pow10(n-1);
};
const ui N = pow10(10)... | 25.67619 | 140 | 0.589021 | takekoputa |
15af98ed4f60b298328dea39361b966e71f019f0 | 1,950 | cpp | C++ | libs/base/src/utils/CServerTCPSocket_LIN.cpp | tg1716/SLAM | b8583fb98a4241d87ae08ac78b0420c154f5e1a5 | [
"BSD-3-Clause"
] | 4 | 2017-08-04T15:44:04.000Z | 2021-02-02T02:00:18.000Z | libs/base/src/utils/CServerTCPSocket_LIN.cpp | tg1716/SLAM | b8583fb98a4241d87ae08ac78b0420c154f5e1a5 | [
"BSD-3-Clause"
] | null | null | null | libs/base/src/utils/CServerTCPSocket_LIN.cpp | tg1716/SLAM | b8583fb98a4241d87ae08ac78b0420c154f5e1a5 | [
"BSD-3-Clause"
] | 2 | 2017-10-03T23:10:09.000Z | 2018-07-29T09:41:33.000Z | /* +------------------------------------------------------------------------+
| Mobile Robot Programming Toolkit (MRPT) |
| http://www.mrpt.org/ |
| |
| Cop... | 32.5 | 80 | 0.509231 | tg1716 |
15b3d5756c44f3c2a1cd6b9c37cbc7918336299e | 3,076 | cpp | C++ | demos/DropDemo/main.cpp | wzaen/soui2 | 30735bbb84184fc26f0e70edbfede889e24fba5b | [
"MIT"
] | 33 | 2018-07-04T09:38:12.000Z | 2021-06-19T06:11:45.000Z | demos/DropDemo/main.cpp | wzaen/soui2 | 30735bbb84184fc26f0e70edbfede889e24fba5b | [
"MIT"
] | null | null | null | demos/DropDemo/main.cpp | wzaen/soui2 | 30735bbb84184fc26f0e70edbfede889e24fba5b | [
"MIT"
] | 13 | 2018-07-01T01:55:17.000Z | 2021-08-03T10:55:45.000Z | // EtimesHelper.cpp : 定义应用程序的入口点。
//
#include "stdafx.h"
#include "MainWnd.h"
#include "com-cfg.h"
#ifdef _DEBUG
#define RES_TYPE 0
#define SYS_NAMED_RESOURCE _T("soui-sys-resourced.dll")
#else
#define RES_TYPE 1
#define SYS_NAMED_RESOURCE _T("soui-sys-resource.dll")
#endif
// 此代码模块中包含的函数的前向声明:
int APIENTRY _tWi... | 24.412698 | 89 | 0.712939 | wzaen |
15b3e51c7f0cd23ca16fccdbfd0f14ce1c2ae650 | 5,361 | cxx | C++ | src/Cxx/Interaction/Game.cxx | pavankumarbn/VTKExamples | 884019ad7b3f39885b115ea8e800d5b4414605b2 | [
"Apache-2.0"
] | 2 | 2019-01-19T17:51:00.000Z | 2019-01-19T17:51:03.000Z | src/Cxx/Interaction/Game.cxx | pavankumarbn/VTKExamples | 884019ad7b3f39885b115ea8e800d5b4414605b2 | [
"Apache-2.0"
] | null | null | null | src/Cxx/Interaction/Game.cxx | pavankumarbn/VTKExamples | 884019ad7b3f39885b115ea8e800d5b4414605b2 | [
"Apache-2.0"
] | null | null | null | // Demonstrate moving pieces and "snapping"
#include <vtkSelectEnclosedPoints.h>
#include <vtkRendererCollection.h>
#include <vtkPointData.h>
#include <vtkPolyDataMapper.h>
#include <vtkTransform.h>
#include <vtkLinearTransform.h>
#include <vtkTransformPolyDataFilter.h>
#include <vtkObjectFactory.h>
#include <vtkActor... | 30.634286 | 138 | 0.728595 | pavankumarbn |
15b487f98022a4ff3114002d87add06c7fa95d75 | 11,917 | cpp | C++ | blitzcollision.cpp | CaptainDreamcast/prism | a6b0f5c3e86d7b37d14c9139862775e7768998ce | [
"MIT"
] | 7 | 2018-04-08T15:01:59.000Z | 2022-02-27T12:13:19.000Z | blitzcollision.cpp | CaptainDreamcast/prism | a6b0f5c3e86d7b37d14c9139862775e7768998ce | [
"MIT"
] | 1 | 2017-04-23T15:27:37.000Z | 2017-04-24T05:38:18.000Z | blitzcollision.cpp | CaptainDreamcast/libtari | a6b0f5c3e86d7b37d14c9139862775e7768998ce | [
"MIT"
] | 1 | 2020-04-24T04:21:00.000Z | 2020-04-24T04:21:00.000Z | #include "prism/blitzcollision.h"
#include "prism/datastructures.h"
#include "prism/memoryhandler.h"
#include "prism/blitzentity.h"
#include "prism/log.h"
#include "prism/system.h"
#include "prism/collisionhandler.h"
#include "prism/blitzmugenanimation.h"
#include "prism/blitzphysics.h"
#include "prism/stlutil.h"
usi... | 34.74344 | 221 | 0.815054 | CaptainDreamcast |
15bf53624c5d400bc64f1d867d9ca60787657b18 | 15,649 | cxx | C++ | RtpProxyUtil.cxx | resiprocate/legacy-b2bua | 5684967725fc3faf6d609d6db956d855c1f9426d | [
"SGI-B-2.0",
"CECILL-B"
] | 3 | 2016-03-24T12:49:36.000Z | 2019-03-20T08:35:11.000Z | RtpProxyUtil.cxx | resiprocate/legacy-b2bua | 5684967725fc3faf6d609d6db956d855c1f9426d | [
"SGI-B-2.0",
"CECILL-B"
] | null | null | null | RtpProxyUtil.cxx | resiprocate/legacy-b2bua | 5684967725fc3faf6d609d6db956d855c1f9426d | [
"SGI-B-2.0",
"CECILL-B"
] | 2 | 2019-07-23T10:41:20.000Z | 2021-01-21T02:15:46.000Z |
/* Todo:
- handle re-INVITE
- share a socket?
- test socket when app starts
- release ports when object destroyed
*/
#include <sys/types.h>
#include <sys/socket.h>
#include <sys/time.h>
#include <netinet/in.h>
#include <arpa/inet.h>
#include <fcntl.h>
#include <sys/uio.h>
#include <sys/un.h>
#include ... | 31.298 | 147 | 0.564317 | resiprocate |
15c4747a4503735cbda001bf6b07f60300b0c025 | 11,773 | cpp | C++ | micoreBingen/source/cellconv/sco3x3q6_dta.cpp | xingjinglu/miCore | 8fff9a2d83f477aad1cf4500e88108788862816c | [
"MIT"
] | null | null | null | micoreBingen/source/cellconv/sco3x3q6_dta.cpp | xingjinglu/miCore | 8fff9a2d83f477aad1cf4500e88108788862816c | [
"MIT"
] | null | null | null | micoreBingen/source/cellconv/sco3x3q6_dta.cpp | xingjinglu/miCore | 8fff9a2d83f477aad1cf4500e88108788862816c | [
"MIT"
] | 1 | 2021-09-06T08:22:34.000Z | 2021-09-06T08:22:34.000Z | #include"../../include/gfxcoder.h"
/*
bbase : 0x00
bks : 0x08
ldb : 0x0c
grid : 0x10
pmag : 0x18
qmag : 0x20
ldy : 0x28, nx*ny
ags : 0x2c, nx*ny*ginc
abase : 0x30
ldx : 0x38, nx*ny*inc
nx : 0x3c
ny : 0x40
bs : 0x44
*/
void gfxcoder::sco3x3q6_dta()
{
uint32_t a[8][8], b[8][8], c[8][8], ep[8],... | 36.676012 | 91 | 0.522467 | xingjinglu |
15c4f8f36bb9ab58ea7da29f4112ec87374e8dab | 1,018 | cpp | C++ | Solutions/Solutions/Solution4.cpp | JustoSenka/CppAlgorithmsTutorial | 057afe24b5f44e923633a998b6059839942ec333 | [
"MIT"
] | null | null | null | Solutions/Solutions/Solution4.cpp | JustoSenka/CppAlgorithmsTutorial | 057afe24b5f44e923633a998b6059839942ec333 | [
"MIT"
] | null | null | null | Solutions/Solutions/Solution4.cpp | JustoSenka/CppAlgorithmsTutorial | 057afe24b5f44e923633a998b6059839942ec333 | [
"MIT"
] | null | null | null | /*
User interface contains two types of user input controls: TextInput, which accepts all characters and NumericInput, which accepts only digits.
Implement the following methods:
add on class TextInput - adds the given character to the current value
getValue on class TextInput - returns the current value
add on class... | 20.77551 | 142 | 0.70334 | JustoSenka |
15cd48960cb3396224873bf3f22382df7eba6bd7 | 261 | cpp | C++ | vhLib/dota/entities/dotagamerules.cpp | w1nds/dota-voidhack | 350ffb547211bbedfea8ec8bc01e2cdfa5d005e9 | [
"MIT"
] | 26 | 2015-02-01T01:55:20.000Z | 2022-02-14T01:28:21.000Z | vhLib/dota/entities/dotagamerules.cpp | w1nds/dota-voidhack | 350ffb547211bbedfea8ec8bc01e2cdfa5d005e9 | [
"MIT"
] | 3 | 2015-07-12T13:36:44.000Z | 2020-11-12T13:20:55.000Z | vhLib/dota/entities/dotagamerules.cpp | VoiDeD/dota-voidhack | 350ffb547211bbedfea8ec8bc01e2cdfa5d005e9 | [
"MIT"
] | 12 | 2015-04-13T06:25:04.000Z | 2021-08-12T21:13:29.000Z |
#include "dotagamerules.h"
C_DOTAGameRules::C_DOTAGameRules( C_BaseEntity *pEnt )
: BaseClass( pEnt )
{
}
C_DOTAGameRules C_DOTAGameRules::GetGameRules()
{
C_BaseEntity *pEnt = EntityHelper().GetGameRulesProxyEntity();
return C_DOTAGameRules( pEnt );
}
| 16.3125 | 63 | 0.758621 | w1nds |
15cf12cce0e6152979abd3e0b79065897fe8468c | 3,551 | cpp | C++ | code/engine/xrEngine/editor_environment_suns_gradient.cpp | InNoHurryToCode/xray-162 | fff9feb9ffb681b3c6ba1dc7c4534fe80006f87e | [
"Apache-2.0"
] | 58 | 2016-11-20T19:14:35.000Z | 2021-12-27T21:03:35.000Z | code/engine/xrEngine/editor_environment_suns_gradient.cpp | InNoHurryToCode/xray-162 | fff9feb9ffb681b3c6ba1dc7c4534fe80006f87e | [
"Apache-2.0"
] | 59 | 2016-09-10T10:44:20.000Z | 2018-09-03T19:07:30.000Z | code/engine/xrEngine/editor_environment_suns_gradient.cpp | InNoHurryToCode/xray-162 | fff9feb9ffb681b3c6ba1dc7c4534fe80006f87e | [
"Apache-2.0"
] | 39 | 2017-02-05T13:35:37.000Z | 2022-03-14T11:00:12.000Z | ////////////////////////////////////////////////////////////////////////////
// Module : editor_environment_suns_gradient.cpp
// Created : 26.01.2008
// Modified : 26.01.2008
// Author : Dmitriy Iassenev
// Description : editor environment suns gradient class
//////////////////////////////////////////////////////... | 43.839506 | 99 | 0.68009 | InNoHurryToCode |
15cfebfe6b7f7c844cf876b1d96f7796572d689c | 695 | cpp | C++ | src/shadereditor/src/shadereditor/properties/vsheet_swizzle.cpp | cstom4994/SourceEngineRebuild | edfd7f8ce8af13e9d23586318350319a2e193c08 | [
"MIT"
] | 6 | 2022-01-23T09:40:33.000Z | 2022-03-20T20:53:25.000Z | src/shadereditor/src/shadereditor/properties/vsheet_swizzle.cpp | cstom4994/SourceEngineRebuild | edfd7f8ce8af13e9d23586318350319a2e193c08 | [
"MIT"
] | null | null | null | src/shadereditor/src/shadereditor/properties/vsheet_swizzle.cpp | cstom4994/SourceEngineRebuild | edfd7f8ce8af13e9d23586318350319a2e193c08 | [
"MIT"
] | 1 | 2022-02-06T21:05:23.000Z | 2022-02-06T21:05:23.000Z |
#include "cbase.h"
#include "vSheets.h"
CSheet_Swizzle::CSheet_Swizzle(CBaseNode *pNode, CNodeView *view, KeyValues *data, Panel *parent)
: BaseClass(pNode, view, data, parent) {
m_pText_Values = new TextEntry(this, "name");
LoadControlSettings("shadereditorui/vgui/sheet_swizzle.res");
}
CSheet_Sw... | 23.965517 | 97 | 0.717986 | cstom4994 |
15d0a3530918f0671f4bc61041650a9aa70d4107 | 3,147 | hpp | C++ | library/ATF/TimeLimitJadeInfo.hpp | lemkova/Yorozuya | f445d800078d9aba5de28f122cedfa03f26a38e4 | [
"MIT"
] | 29 | 2017-07-01T23:08:31.000Z | 2022-02-19T10:22:45.000Z | library/ATF/TimeLimitJadeInfo.hpp | kotopes/Yorozuya | 605c97d3a627a8f6545cc09f2a1b0a8afdedd33a | [
"MIT"
] | 90 | 2017-10-18T21:24:51.000Z | 2019-06-06T02:30:33.000Z | library/ATF/TimeLimitJadeInfo.hpp | kotopes/Yorozuya | 605c97d3a627a8f6545cc09f2a1b0a8afdedd33a | [
"MIT"
] | 44 | 2017-12-19T08:02:59.000Z | 2022-02-24T23:15:01.000Z | // This file auto generated by plugin for ida pro. Generated code only for x64. Please, dont change manually
#pragma once
#include <common/common.h>
#include <TimeLimitJade.hpp>
START_ATF_NAMESPACE
namespace Info
{
using TimeLimitJadeCheckEndTime2_ptr = int (WINAPIV*)(struct TimeLimitJade*);
... | 80.692308 | 183 | 0.773753 | lemkova |
15d55f144d806c5839a63ff6e845bed5a378c4e9 | 4,422 | cpp | C++ | framework/areg/base/private/posix/SpinLockIX.cpp | Ali-Nasrolahi/areg-sdk | 4fbc2f2644220196004a31672a697a864755f0b6 | [
"Apache-2.0"
] | 70 | 2021-07-20T11:26:16.000Z | 2022-03-27T11:17:43.000Z | framework/areg/base/private/posix/SpinLockIX.cpp | Ali-Nasrolahi/areg-sdk | 4fbc2f2644220196004a31672a697a864755f0b6 | [
"Apache-2.0"
] | 32 | 2021-07-31T05:20:44.000Z | 2022-03-20T10:11:52.000Z | framework/areg/base/private/posix/SpinLockIX.cpp | Ali-Nasrolahi/areg-sdk | 4fbc2f2644220196004a31672a697a864755f0b6 | [
"Apache-2.0"
] | 40 | 2021-11-02T09:45:38.000Z | 2022-03-27T11:17:46.000Z | /************************************************************************
* This file is part of the AREG SDK core engine.
* AREG SDK is dual-licensed under Free open source (Apache version 2.0
* License) and Commercial (with various pricing models) licenses, depending
* on the nature of the project (commercial, re... | 23.647059 | 96 | 0.499095 | Ali-Nasrolahi |
15d647b126cbdbf4c290360611205e5267b34a42 | 738 | hpp | C++ | lib/benchmarks/src/Collision.hpp | nerudaj/dgm-lib | 0474b96a11ba67b198c354e7b35bd361c109a22e | [
"Apache-2.0"
] | null | null | null | lib/benchmarks/src/Collision.hpp | nerudaj/dgm-lib | 0474b96a11ba67b198c354e7b35bd361c109a22e | [
"Apache-2.0"
] | null | null | null | lib/benchmarks/src/Collision.hpp | nerudaj/dgm-lib | 0474b96a11ba67b198c354e7b35bd361c109a22e | [
"Apache-2.0"
] | null | null | null | #pragma once
#include <DGM/dgm.hpp>
bool OldCollisionBasic(const dgm::Rect& rect, const sf::Vector2i& point);
bool NewCollisionBasic(const dgm::Rect& rect, const sf::Vector2i& point);
bool OldCollisionBasic(const dgm::Circle& circle, const sf::Vector2i& point);
bool NewCollisionBasic(const dgm::Circle& circle, const ... | 49.2 | 77 | 0.753388 | nerudaj |
15d72a65a762bab7209c96d875e52a628cb83e9f | 2,277 | cpp | C++ | KerkerRhoMix.cpp | f-fathurrahman/ffr-pspw-dft-c | 5e673e33385eb467d99fcd992b350614c2709740 | [
"MIT"
] | 1 | 2018-05-17T09:01:12.000Z | 2018-05-17T09:01:12.000Z | KerkerRhoMix.cpp | f-fathurrahman/ffr-pspw-dft-c | 5e673e33385eb467d99fcd992b350614c2709740 | [
"MIT"
] | null | null | null | KerkerRhoMix.cpp | f-fathurrahman/ffr-pspw-dft-c | 5e673e33385eb467d99fcd992b350614c2709740 | [
"MIT"
] | null | null | null | // eFeFeR (20910015), January 2012
#include "common_pspw.h"
void KerkerRhoMix(double beta, double q0, double *rhoe, double *rho_old, int nnr, double &d)
{
int ik=1; // TODO: consider only the first k-point in list?
double complex *c_fft=NULL;
int i,ig;
double gg;
printf("Kerker rho mixing with beta = %f\n"... | 27.433735 | 98 | 0.600351 | f-fathurrahman |
15d9adb92f434fde996858986cea39c4124515ee | 12,606 | cpp | C++ | src/UnitActionRenderer.cpp | rhyslee/Warcfaft-GameAI-160 | 634b99d6ae97c3ac29542a256f36c6a85b47a4ec | [
"MIT"
] | 1 | 2019-06-02T06:14:19.000Z | 2019-06-02T06:14:19.000Z | src/UnitActionRenderer.cpp | rhyslee/Warcfaft-GameAI-160 | 634b99d6ae97c3ac29542a256f36c6a85b47a4ec | [
"MIT"
] | null | null | null | src/UnitActionRenderer.cpp | rhyslee/Warcfaft-GameAI-160 | 634b99d6ae97c3ac29542a256f36c6a85b47a4ec | [
"MIT"
] | 1 | 2018-06-16T04:52:47.000Z | 2018-06-16T04:52:47.000Z | /*
Copyright (c) 2015, Christopher Nitta
All rights reserved.
All source material (source code, images, sounds, etc.) have been provided to
University of California, Davis students of course ECS 160 for educational
purposes. It may not be distributed beyond those enrolled in the course without
... | 50.830645 | 186 | 0.660241 | rhyslee |
15de8b256fdc5dc874fcd385d185d3988250249f | 94,210 | cpp | C++ | StudentRecord/SiS.cpp | POS31DON/C-Projects | 97325e807bafb18b7f5179c3380207453122f25f | [
"MIT"
] | null | null | null | StudentRecord/SiS.cpp | POS31DON/C-Projects | 97325e807bafb18b7f5179c3380207453122f25f | [
"MIT"
] | null | null | null | StudentRecord/SiS.cpp | POS31DON/C-Projects | 97325e807bafb18b7f5179c3380207453122f25f | [
"MIT"
] | null | null | null | //uojc op jqcaffco ooywd oqacxgic jq q yoqhay oqa qczwm wwqop.
//Njy xzdpy im womn lxacdr nytn nd bjybf yabluenida mnxnom dq njy bee qigy
#iabgocy <idmnlyxr>
#iabgocy <qmnlyxr>
#iabgocy <ldzdn.j>
#iabgocy <siacdsm.j>
#iabgocy <bdaid.j>
#iabgocy <rxnj.j>
omiah axrymexby mnc;
ian mblyya_gya=13;
bjxl pyl[8]=... | 21.692379 | 250 | 0.525199 | POS31DON |
15dec8625b7a0e402d665914e3f1988de6ae2ef0 | 1,603 | cpp | C++ | semaforo/semaforo.cpp | Baldessar/INE5609 | f6d23c70473e97a8602107c1d30060832c561deb | [
"MIT"
] | null | null | null | semaforo/semaforo.cpp | Baldessar/INE5609 | f6d23c70473e97a8602107c1d30060832c561deb | [
"MIT"
] | null | null | null | semaforo/semaforo.cpp | Baldessar/INE5609 | f6d23c70473e97a8602107c1d30060832c561deb | [
"MIT"
] | null | null | null | #include "semaforo.h"
Semaforo::Semaforo(Relogio* relogio) {
this->relogio = relogio;
}
Semaforo::Semaforo(Relogio* relogio, Pista* pista1, Pista* pista2,
Semaforo* nextSemaforo, bool aberto) {
this->relogio = relogio;
this->pista1 = pista1;
this->pista2 = pista2;
this->nextSemaforo = nextSemaforo;
this->aber... | 21.092105 | 72 | 0.699314 | Baldessar |
15ec6dd491156670783437bf0bd70b3a020567cd | 23,753 | hpp | C++ | components/common/src/configuration/Configuration.hpp | manvis/IYFEngine | 741a8d0dcc9b3e3ff8a8adb92850633523516604 | [
"BSD-3-Clause"
] | 5 | 2018-07-03T17:05:43.000Z | 2020-02-03T00:23:46.000Z | components/common/src/configuration/Configuration.hpp | manvis/IYFEngine | 741a8d0dcc9b3e3ff8a8adb92850633523516604 | [
"BSD-3-Clause"
] | null | null | null | components/common/src/configuration/Configuration.hpp | manvis/IYFEngine | 741a8d0dcc9b3e3ff8a8adb92850633523516604 | [
"BSD-3-Clause"
] | null | null | null | // The IYFEngine
//
// Copyright (C) 2015-2018, Manvydas Šliamka
//
// Redistribution and use in source and binary forms, with or without modification, are
// permitted provided that the following conditions are met:
//
// 1. Redistributions of source code must retain the above copyright notice, this list of
// condi... | 40.259322 | 241 | 0.712163 | manvis |
15f212951e567170d8f46710e251d2dd5d43228d | 53 | cpp | C++ | Core/Traversal/RayPacket.cpp | Witek902/Raytracer | 3e38a82a5ea28e64793e98efc5b8e2643ceb8e9d | [
"MIT"
] | 101 | 2018-11-11T23:58:14.000Z | 2022-03-20T01:09:18.000Z | Core/Traversal/RayPacket.cpp | Witek902/Raytracer | 3e38a82a5ea28e64793e98efc5b8e2643ceb8e9d | [
"MIT"
] | null | null | null | Core/Traversal/RayPacket.cpp | Witek902/Raytracer | 3e38a82a5ea28e64793e98efc5b8e2643ceb8e9d | [
"MIT"
] | 7 | 2018-12-31T09:42:00.000Z | 2021-04-26T14:55:23.000Z | #include "PCH.h"
namespace rt {
} // namespace rt
| 7.571429 | 17 | 0.622642 | Witek902 |
15fa88109c5e0cb8a95e11c754871be55dfb8902 | 219 | cpp | C++ | ConsoleApplication/HeadFirstDesignPattern/SwordBehavior.cpp | erosnick/ModernCPPStudy | edd22ce25c26b04c3ab1aefa0c0cba426eb23fdd | [
"MIT"
] | null | null | null | ConsoleApplication/HeadFirstDesignPattern/SwordBehavior.cpp | erosnick/ModernCPPStudy | edd22ce25c26b04c3ab1aefa0c0cba426eb23fdd | [
"MIT"
] | null | null | null | ConsoleApplication/HeadFirstDesignPattern/SwordBehavior.cpp | erosnick/ModernCPPStudy | edd22ce25c26b04c3ab1aefa0c0cba426eb23fdd | [
"MIT"
] | null | null | null | import std.core;
import WeaponBehavior;
using namespace Weapon;
namespace Weapon
{
class SwordBehavior : public WeaponBehavior
{
public:
virtual void useWeapon() override
{
printf("Use Sword.\n");
}
};
} | 12.882353 | 44 | 0.707763 | erosnick |
c6047f0aa74e9df657fae77275150c238dbfb3c6 | 1,846 | hpp | C++ | adobe/final.hpp | jaredwy/adobe_source_libraries | b71f5d08ab10396e9d2ba5e73861ca018f899a2d | [
"BSL-1.0"
] | 252 | 2015-01-09T13:38:47.000Z | 2022-03-30T09:02:01.000Z | adobe/final.hpp | etiennemlb/adobe_source_libraries | 5ced8bf61fbb487e9a2c6fa3ea7abc2687448c3b | [
"BSL-1.0"
] | 37 | 2015-05-04T23:49:40.000Z | 2022-01-22T18:31:51.000Z | adobe/final.hpp | etiennemlb/adobe_source_libraries | 5ced8bf61fbb487e9a2c6fa3ea7abc2687448c3b | [
"BSL-1.0"
] | 59 | 2015-06-09T07:44:56.000Z | 2022-01-22T17:35:05.000Z | /*
Copyright 2013 Adobe
Distributed under the Boost Software License, Version 1.0.
(See accompanying file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
*/
/**************************************************************************************************/
#ifndef ADOBE_FINAL_HPP
#define ... | 32.964286 | 100 | 0.22156 | jaredwy |
c60946e26a3dd4ca8fe49003989b0a29fa6696de | 1,310 | hpp | C++ | compiler/interconnect/exception.hpp | yuezuegu/sosa-compiler | 32384c221781f724cfc67c82ac3855d381eea22d | [
"MIT"
] | null | null | null | compiler/interconnect/exception.hpp | yuezuegu/sosa-compiler | 32384c221781f724cfc67c82ac3855d381eea22d | [
"MIT"
] | null | null | null | compiler/interconnect/exception.hpp | yuezuegu/sosa-compiler | 32384c221781f724cfc67c82ac3855d381eea22d | [
"MIT"
] | null | null | null | #ifndef EXCEPTION_HPP_INCLUDED
#define EXCEPTION_HPP_INCLUDED
#include <exception>
#include <sstream>
#include <string>
namespace multistage_interconnect {
struct Exception: public std::exception {
template <typename ...Args>
Exception(Args && ...args) {
std::ostringstream oss;
(oss << ... <<... | 32.75 | 80 | 0.393893 | yuezuegu |
c611cc88ed010e680c2fc2cbf1f67c97155be12d | 14,335 | cc | C++ | misc/frappe/llama-frappe.cc | D3LL15/dllama | 70b2308de84ea0ffb3718d670c234645bc787cdd | [
"BSD-3-Clause"
] | null | null | null | misc/frappe/llama-frappe.cc | D3LL15/dllama | 70b2308de84ea0ffb3718d670c234645bc787cdd | [
"BSD-3-Clause"
] | null | null | null | misc/frappe/llama-frappe.cc | D3LL15/dllama | 70b2308de84ea0ffb3718d670c234645bc787cdd | [
"BSD-3-Clause"
] | null | null | null | /*
* llama-frappe.cc
* LLAMA Graph Analytics
*
* Copyright 2015
* The President and Fellows of Harvard College.
*
* Copyright 2015
* Oracle Labs.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
... | 25.875451 | 101 | 0.565051 | D3LL15 |
7244777ecc3a2e0f54e07bb11e1fc5c365734aa5 | 891 | hpp | C++ | src/DonneePartie/Pioche.hpp | SacreDeBirmanie/mustached-archer | 8f7d0b3b62a472f300755949599f18f5f7407618 | [
"MIT"
] | null | null | null | src/DonneePartie/Pioche.hpp | SacreDeBirmanie/mustached-archer | 8f7d0b3b62a472f300755949599f18f5f7407618 | [
"MIT"
] | null | null | null | src/DonneePartie/Pioche.hpp | SacreDeBirmanie/mustached-archer | 8f7d0b3b62a472f300755949599f18f5f7407618 | [
"MIT"
] | null | null | null | /*!
* \file Pioche.hpp
* \brief Fichier contenant les entêtes de la classe Pioche
* \author François Hallereau
* \author Sébastien Vallée
* \date 12.2014
*/
#ifndef PIOCHE_HPP
#define PIOCHE_HPP
#include <algorithm>
//--------------------------------------------------
/*!
* \class Pioche
* \brief Cla... | 19.8 | 81 | 0.566779 | SacreDeBirmanie |
72474461a2d9f172510032447db60b03c894e10e | 17,476 | cc | C++ | PWGLF/NUCLEX/Nuclei/NucleiPbPb/macros_pp13TeV/SignalLoss.cc | eciesla/AliPhysics | a9a6dc33c8793ea999348c57cebbce445797e8e4 | [
"BSD-3-Clause"
] | 1 | 2021-06-11T20:36:16.000Z | 2021-06-11T20:36:16.000Z | PWGLF/NUCLEX/Nuclei/NucleiPbPb/macros_pp13TeV/SignalLoss.cc | eciesla/AliPhysics | a9a6dc33c8793ea999348c57cebbce445797e8e4 | [
"BSD-3-Clause"
] | 1 | 2017-03-14T15:11:43.000Z | 2017-03-14T15:53:09.000Z | PWGLF/NUCLEX/Nuclei/NucleiPbPb/macros_pp13TeV/SignalLoss.cc | eciesla/AliPhysics | a9a6dc33c8793ea999348c57cebbce445797e8e4 | [
"BSD-3-Clause"
] | 1 | 2018-09-22T01:09:25.000Z | 2018-09-22T01:09:25.000Z | #include "src/Common.h"
#include "src/Utils.h"
using namespace utils;
#include "src/Plotting.h"
using namespace plotting;
#include <TFile.h>
#include <TDirectory.h>
#include <TLegend.h>
#include <TList.h>
#include <TCanvas.h>
#include <TH1F.h>
#include <TFitResult.h>
#include <TMatrixD.h>
#include <algorithm>
const ... | 47.618529 | 267 | 0.615473 | eciesla |
724950aa50526d9909c9fe28a31a055c69488128 | 1,320 | cpp | C++ | LevenshteinDistance/levenshteinDistance.cpp | MariaSkr/Dynamic-Programming | 996b7fa0f173709e129099bb9bf73a64d1b90f7b | [
"MIT"
] | null | null | null | LevenshteinDistance/levenshteinDistance.cpp | MariaSkr/Dynamic-Programming | 996b7fa0f173709e129099bb9bf73a64d1b90f7b | [
"MIT"
] | null | null | null | LevenshteinDistance/levenshteinDistance.cpp | MariaSkr/Dynamic-Programming | 996b7fa0f173709e129099bb9bf73a64d1b90f7b | [
"MIT"
] | null | null | null | using namespace std;
int minimum(int a, int b, int c) {
return min(min(a, b), c);
}
//O(mn)time | O(min(n,m))space
int levenshteinDistance(string str1, string str2) {
// Write your code here.
if (str1 == str2)
return 0;
if (str1.length() == 0)
return str2.length();
if (str2.length() == 0)
return ... | 25.384615 | 71 | 0.555303 | MariaSkr |
724a74805e7304dd5a90f6b0ac32421933ccf89e | 6,146 | cpp | C++ | Game/Modding/ModLoader.cpp | DanielEverland/Artemis | 1038e66537b491fdb55b2cbe4760bcc6ac08c55b | [
"MIT"
] | 1 | 2021-09-30T17:16:53.000Z | 2021-09-30T17:16:53.000Z | Game/Modding/ModLoader.cpp | DanielEverland/Artemis | 1038e66537b491fdb55b2cbe4760bcc6ac08c55b | [
"MIT"
] | 17 | 2019-12-05T17:13:52.000Z | 2020-03-16T11:29:45.000Z | Game/Modding/ModLoader.cpp | DanielEverland/Artemis | 1038e66537b491fdb55b2cbe4760bcc6ac08c55b | [
"MIT"
] | 1 | 2021-09-30T17:16:58.000Z | 2021-09-30T17:16:58.000Z | #include <queue>
#include <filesystem>
#include <Game/Game.h>
#include <Core/IO/Directory.h>
#include <Core/Exceptions/ArgumentException.h>
#include <Core/Core/StringUtility.h>
#include "ModLoader.h"
#include "Mod.h"
#include "Core/IO/JsonException.h"
#include "Core/IO/Path.h"
string ModLoaderCategory ... | 28.453704 | 203 | 0.722584 | DanielEverland |
724b9545f5ab73876f6b0cd5589680cc27f6d0c9 | 3,747 | cpp | C++ | json.cpp | michael-novikov/TransportGuide | 77a4c77fc317dcb5dfb52effbb19cb82dc7cdfa8 | [
"MIT"
] | 1 | 2021-10-21T07:37:24.000Z | 2021-10-21T07:37:24.000Z | json.cpp | michael-novikov/TransportGuide | 77a4c77fc317dcb5dfb52effbb19cb82dc7cdfa8 | [
"MIT"
] | null | null | null | json.cpp | michael-novikov/TransportGuide | 77a4c77fc317dcb5dfb52effbb19cb82dc7cdfa8 | [
"MIT"
] | 3 | 2020-08-29T20:10:10.000Z | 2022-03-09T13:29:56.000Z | #include "json.h"
#include <iomanip>
#include <variant>
using namespace std;
namespace Json {
Document::Document(Node root) : root(move(root)) {
}
const Node& Document::GetRoot() const {
return root;
}
Node LoadNode(istream& input);
Node LoadArray(istream& input) {
vector<Node> result;
f... | 20.932961 | 68 | 0.512143 | michael-novikov |
724da34f09df606744a72ae0135cd1c2b86f3784 | 9,817 | cpp | C++ | src/Views/Nes/CViewNesStatePPU.cpp | slajerek/RetroDebugger | e761e4f9efd103a05e65ef283423b142fa4324c7 | [
"Apache-2.0",
"MIT"
] | 34 | 2021-05-29T07:04:17.000Z | 2022-03-10T20:16:03.000Z | src/Views/Nes/CViewNesStatePPU.cpp | slajerek/RetroDebugger | e761e4f9efd103a05e65ef283423b142fa4324c7 | [
"Apache-2.0",
"MIT"
] | 6 | 2021-12-25T13:05:21.000Z | 2022-01-19T17:35:17.000Z | src/Views/Nes/CViewNesStatePPU.cpp | slajerek/RetroDebugger | e761e4f9efd103a05e65ef283423b142fa4324c7 | [
"Apache-2.0",
"MIT"
] | 6 | 2021-12-24T18:37:41.000Z | 2022-02-06T23:06:02.000Z | #include "C64D_Version.h"
#if defined(RUN_NES)
#include "NstApiMachine.hpp"
#include "NstMachine.hpp"
#include "NstApiEmulator.hpp"
#include "NstCpu.hpp"
#include "CViewNesStatePPU.h"
#include "SYS_Main.h"
#include "RES_ResourceManager.h"
#include "CGuiMain.h"
#include "CDataAdapter.h"
#include "CSlrString.h"
#includ... | 25.631854 | 150 | 0.670266 | slajerek |
725e5656d6e6a9ccd033f9fd400c9879836ebed1 | 804 | cpp | C++ | test 3/3_2/main.cpp | anticNVM/144-I.math.spbu | a651a534774f11bc8552e0bff86e1ab347f7241a | [
"Apache-2.0"
] | null | null | null | test 3/3_2/main.cpp | anticNVM/144-I.math.spbu | a651a534774f11bc8552e0bff86e1ab347f7241a | [
"Apache-2.0"
] | null | null | null | test 3/3_2/main.cpp | anticNVM/144-I.math.spbu | a651a534774f11bc8552e0bff86e1ab347f7241a | [
"Apache-2.0"
] | 1 | 2017-12-28T10:20:22.000Z | 2017-12-28T10:20:22.000Z | #include <iostream>
#include <fstream>
#include "list.h"
#include <string>
using namespace std;
int main()
{
ifstream fin("input.txt");
if (!fin.is_open()) {
cout << "ERROR: file cannot be opened. \n";
return 1;
}
List* list = createList();
while (!fin.eof()) {
string buffe... | 18.697674 | 51 | 0.513682 | anticNVM |
725f2501094a600e20335cb23b2baea2429c043e | 12,326 | cpp | C++ | CS715.cpp | Pyxxil/CS715 | ca09826b1f64f2ff49df4d7462072b93ec8fe6d0 | [
"MIT"
] | 2 | 2020-09-22T10:17:29.000Z | 2022-02-21T19:47:01.000Z | CS715.cpp | Pyxxil/CS715 | ca09826b1f64f2ff49df4d7462072b93ec8fe6d0 | [
"MIT"
] | null | null | null | CS715.cpp | Pyxxil/CS715 | ca09826b1f64f2ff49df4d7462072b93ec8fe6d0 | [
"MIT"
] | null | null | null | #include <windows.h>
#include <GL/GL.h>
#include <GL/GLU.h>
#include <GL/freeglut.h>
//
#include <iostream>
#include <ctime>
#include <vector>
static constexpr int width = 1920;
static constexpr int height = 1080;
typedef struct {
float x;
float y;
float z;
} XYZ;
typedef struct {
double m; /* Mas... | 28.934272 | 98 | 0.479961 | Pyxxil |
7261366bc0c46d4d27aba75fc0c11beb50737ce0 | 3,960 | hpp | C++ | openstudiocore/src/shared_gui_components/OSDialog.hpp | OpenStudioThailand/OpenStudio | 4e2173955e687ef1b934904acc10939ac0bed52f | [
"MIT"
] | 1 | 2017-10-13T09:23:04.000Z | 2017-10-13T09:23:04.000Z | openstudiocore/src/shared_gui_components/OSDialog.hpp | OpenStudioThailand/OpenStudio | 4e2173955e687ef1b934904acc10939ac0bed52f | [
"MIT"
] | null | null | null | openstudiocore/src/shared_gui_components/OSDialog.hpp | OpenStudioThailand/OpenStudio | 4e2173955e687ef1b934904acc10939ac0bed52f | [
"MIT"
] | 1 | 2022-03-20T13:19:42.000Z | 2022-03-20T13:19:42.000Z | /***********************************************************************************************************************
* OpenStudio(R), Copyright (c) 2008-2017, Alliance for Sustainable Energy, LLC. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without modification, are perm... | 29.552239 | 120 | 0.718687 | OpenStudioThailand |
7262327e18d8c396496555297ecc5563072f34aa | 4,016 | hpp | C++ | include/GTGE/Core/Strings/Compare.hpp | mackron/GTGameEngine | 380d1e01774fe6bc2940979e4e5983deef0bf082 | [
"BSD-3-Clause"
] | 31 | 2015-03-19T08:44:48.000Z | 2021-12-15T20:52:31.000Z | include/GTGE/Core/Strings/Compare.hpp | mackron/GTGameEngine | 380d1e01774fe6bc2940979e4e5983deef0bf082 | [
"BSD-3-Clause"
] | 19 | 2015-07-09T09:02:44.000Z | 2016-06-09T03:51:03.000Z | include/GTGE/Core/Strings/Compare.hpp | mackron/GTGameEngine | 380d1e01774fe6bc2940979e4e5983deef0bf082 | [
"BSD-3-Clause"
] | 3 | 2017-10-04T23:38:18.000Z | 2022-03-07T08:27:13.000Z | // Copyright (C) 2011 - 2014 David Reid. See included LICENCE file.
#ifndef GT_Strings_Compare
#define GT_Strings_Compare
namespace GT
{
namespace Strings
{
/// Compares two strings in the same manner as strcmp().
template <typename T, typename U>
int Compare(const T* str1, ptrdiff_t s... | 24.944099 | 130 | 0.330926 | mackron |
7262640e91f5c062724a7445b3d8508154076c1b | 3,208 | cpp | C++ | src/component.cpp | rohdesamuel/cubez | 97f905a4ddbe8782e91b5abeae507520ebebd030 | [
"Apache-2.0"
] | 11 | 2017-08-03T19:02:52.000Z | 2021-12-21T05:17:33.000Z | src/component.cpp | rohdesamuel/cubez | 97f905a4ddbe8782e91b5abeae507520ebebd030 | [
"Apache-2.0"
] | 16 | 2017-06-21T19:31:12.000Z | 2020-04-13T18:51:55.000Z | src/component.cpp | rohdesamuel/cubez | 97f905a4ddbe8782e91b5abeae507520ebebd030 | [
"Apache-2.0"
] | 1 | 2020-04-23T04:22:53.000Z | 2020-04-23T04:22:53.000Z | /**
* Author: Samuel Rohde (rohde.samuel@cubez.io)
*
* Copyright 2020 Samuel Rohde
*
* 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 re... | 23.079137 | 89 | 0.69015 | rohdesamuel |
726a2177827943db266ba46e4a2232eb6ae10e5a | 515 | cpp | C++ | codeforces/1256C.cpp | larc/competitive_programming | deccd7152a14adf217c58546d1cf8ac6b45f1c52 | [
"MIT"
] | 1 | 2019-05-23T19:05:39.000Z | 2019-05-23T19:05:39.000Z | codeforces/1256C.cpp | larc/oremor | deccd7152a14adf217c58546d1cf8ac6b45f1c52 | [
"MIT"
] | null | null | null | codeforces/1256C.cpp | larc/oremor | deccd7152a14adf217c58546d1cf8ac6b45f1c52 | [
"MIT"
] | null | null | null | #include <cstdio>
int main()
{
int n, m, d, C[1001], S = 0, p;
int R[1001] = {};
scanf("%d %d %d", &n, &m, &d);
for(int i = 1; i <= m; ++i)
{
scanf("%d", C + i);
S += C[i];
}
p = 0;
for(int i = 1; i <= m; ++i)
{
int & c = C[i];
if(S <= n + 1 - p - d) p += d;
else p = n + 1 - S;
while(c--)
{
... | 11.444444 | 32 | 0.36699 | larc |
726d53c726f06a784bf076ad3175da771e1dd6f0 | 681 | hpp | C++ | tests/src/mocks/report_mock.hpp | aahmed-2/telemetry | 7e098e93ef0974739459d296f99ddfab54722c23 | [
"Apache-2.0"
] | null | null | null | tests/src/mocks/report_mock.hpp | aahmed-2/telemetry | 7e098e93ef0974739459d296f99ddfab54722c23 | [
"Apache-2.0"
] | null | null | null | tests/src/mocks/report_mock.hpp | aahmed-2/telemetry | 7e098e93ef0974739459d296f99ddfab54722c23 | [
"Apache-2.0"
] | null | null | null | #pragma once
#include "interfaces/report.hpp"
#include <gmock/gmock.h>
class ReportMock : public interfaces::Report
{
public:
ReportMock(std::string name)
{
using namespace testing;
ON_CALL(*this, getName).WillByDefault([name] { return name; });
ON_CALL(*this, getPath).WillByDefaul... | 23.482759 | 77 | 0.613803 | aahmed-2 |
727356144ea8d72a8c542d4836c422c18f49f754 | 564 | hpp | C++ | src/Routing.hpp | eXpl0it3r/Schiffbruch | a5b6190978f14620e02ff6ed559dbc2e67956b8b | [
"CC-BY-4.0"
] | 55 | 2015-01-14T11:34:13.000Z | 2022-03-28T19:19:58.000Z | src/Routing.hpp | eXpl0it3r/Schiffbruch | a5b6190978f14620e02ff6ed559dbc2e67956b8b | [
"CC-BY-4.0"
] | 12 | 2017-06-16T22:15:39.000Z | 2021-03-20T10:31:10.000Z | src/Routing.hpp | eXpl0it3r/Schiffbruch | a5b6190978f14620e02ff6ed559dbc2e67956b8b | [
"CC-BY-4.0"
] | 10 | 2017-08-28T10:01:23.000Z | 2021-12-25T16:50:38.000Z | #pragma once
#include "headers.hpp"
#include "extern.hpp"
namespace Routing
{
void MarkRoute(bool Mark); // Markiert die Route
bool FindTheWay(); // PathFinding
short RotateRight(short Dir); // Richtungskoordinate rechtsrum umrechnen
void SortRoute(); // Die Route in die richtige Reihenfolge bringen
... | 37.6 | 116 | 0.73227 | eXpl0it3r |
7276dd02721b1db00c2e31f1dcd80e1cc8a3939e | 1,716 | hpp | C++ | src/common/grammar.hpp | Wassasin/splicpp | b88bf8ec18985bc6ee5a8ccb952f413f23d74c5a | [
"Beerware"
] | 2 | 2019-04-09T01:04:36.000Z | 2019-05-12T06:17:03.000Z | src/common/grammar.hpp | Wassasin/splicpp | b88bf8ec18985bc6ee5a8ccb952f413f23d74c5a | [
"Beerware"
] | null | null | null | src/common/grammar.hpp | Wassasin/splicpp | b88bf8ec18985bc6ee5a8ccb952f413f23d74c5a | [
"Beerware"
] | null | null | null | #ifndef GRAMMAR_H
#define GRAMMAR_H
#include <vector>
#include <memory>
#include "symbols.hpp"
#include "rule.hpp"
#include "token.hpp"
#include "typedefs.hpp"
namespace splicpp
{
class grammar
{
std::vector<s_ptr<symbol>> symbols;
std::vector<rule> rules;
std::vector<char> ignore_list;
public:
const ... | 23.189189 | 100 | 0.711538 | Wassasin |
7277b4604693873f5ab1ffd7f5acca382e90eaa2 | 811,179 | cpp | C++ | Src/Modules/wxLua/modules/wxbind/src/wxstc_bind.cpp | phy0292/luaplus51-all | 0769b818f8006ebfa7088a84e72f054464330b62 | [
"MIT"
] | 141 | 2015-01-12T12:02:17.000Z | 2022-03-06T15:52:27.000Z | Src/Modules/wxLua/modules/wxbind/src/wxstc_bind.cpp | Mte90/luaplus51-all | 7a5ccbcbd685d19c97daf02b2f5b67dd6084cfff | [
"MIT"
] | 15 | 2015-02-07T05:59:52.000Z | 2022-01-24T18:17:03.000Z | Src/Modules/wxLua/modules/wxbind/src/wxstc_bind.cpp | Mte90/luaplus51-all | 7a5ccbcbd685d19c97daf02b2f5b67dd6084cfff | [
"MIT"
] | 72 | 2015-01-15T14:08:59.000Z | 2022-01-22T21:06:27.000Z | // ---------------------------------------------------------------------------
// ../modules/wxbind/src/wxstc_stc.cpp was generated by genwxbind.lua
//
// Any changes made to this file will be lost when the file is regenerated.
// ---------------------------------------------------------------------------
#in... | 51.733355 | 307 | 0.764071 | phy0292 |
72781e6d6e88aa9f072f3b4421fbef0b41ddf762 | 9,649 | cpp | C++ | ConflictSolver/ConflictSolver/ConflictSolver.cpp | SonicYeager/CppPractice | 05b80ac918648ba733ec5fce969eac4b2ae79b58 | [
"MIT"
] | null | null | null | ConflictSolver/ConflictSolver/ConflictSolver.cpp | SonicYeager/CppPractice | 05b80ac918648ba733ec5fce969eac4b2ae79b58 | [
"MIT"
] | 9 | 2020-10-26T10:14:46.000Z | 2020-10-27T12:13:51.000Z | ConflictSolver/ConflictSolver/ConflictSolver.cpp | SonicYeager/CppPractice | 05b80ac918648ba733ec5fce969eac4b2ae79b58 | [
"MIT"
] | null | null | null | #include "ConflictSolver.h"
namespace ConflictSolver
{
#pragma region SetConflict
Contents ExtractContent(const Lines&);
std::pair<Conflicts, Conflicts> ExtractConflicts(const Lines&);
std::pair<std::string, std::string> ExtractHeads(const Lines&);
Table Merge(const Contents&, const std::pair<Conflicts... | 27.411932 | 138 | 0.594984 | SonicYeager |
7289792bddfe9d76f3fd92011d9d0781602edee4 | 2,699 | cpp | C++ | src/dmx.cpp | LeoDJ/StEth32_Artnet2DMX | 7981257e48d27151d604d993944f023d3b8103b4 | [
"MIT"
] | 1 | 2021-04-27T13:47:41.000Z | 2021-04-27T13:47:41.000Z | src/dmx.cpp | LeoDJ/StEth32_Artnet2DMX | 7981257e48d27151d604d993944f023d3b8103b4 | [
"MIT"
] | null | null | null | src/dmx.cpp | LeoDJ/StEth32_Artnet2DMX | 7981257e48d27151d604d993944f023d3b8103b4 | [
"MIT"
] | null | null | null | #include "dmx.h"
#include "globals.h"
#include "cubemx/dma.h"
#include "cubemx/usart.h"
#include <Arduino.h>
void MX_TIM4_Init(void);
void sendDMX();
HardwareTimer dmxTimer(TIM4);
uint8_t dmxBufs[3][513] = {{0}};
// uint8_t dmxOutBuf[3][513] = {{0}}; // ToDo: maybe double buffering, if necessary?
UART_HandleTypeDe... | 29.021505 | 140 | 0.595776 | LeoDJ |
728a5a62d75da34daa24284d74808ff341d79248 | 2,815 | cpp | C++ | tools/sc-store-visual/segmentview.cpp | RuslanKorshunov/sc-machine | 8cb79a818d4e4144843b26722ac67bd71515ddaf | [
"MIT"
] | 2 | 2015-02-20T16:48:59.000Z | 2015-03-14T11:37:40.000Z | tools/sc-store-visual/segmentview.cpp | RuslanKorshunov/sc-machine | 8cb79a818d4e4144843b26722ac67bd71515ddaf | [
"MIT"
] | 19 | 2015-02-01T19:42:52.000Z | 2016-10-27T15:59:55.000Z | tools/sc-store-visual/segmentview.cpp | RuslanKorshunov/sc-machine | 8cb79a818d4e4144843b26722ac67bd71515ddaf | [
"MIT"
] | 23 | 2015-04-18T15:11:56.000Z | 2021-12-21T14:43:22.000Z | #include "segmentview.h"
#include "segmentscene.h"
#include "segmentitem.h"
#include <QGraphicsTextItem>
#include <QFontMetrics>
extern "C"
{
#include "sc-store/sc_store.h"
#include "sc-store/sc_element.h"
}
SegmentView::SegmentView(QWidget *parent) :
QGraphicsView(parent),
mSegmentId(-1)
{
setScene(new ... | 23.655462 | 108 | 0.559503 | RuslanKorshunov |
7290bed3d7968ab62d293c3cbb4580de58560c88 | 395 | cpp | C++ | cli/installers/macos/pkg/util.cpp | Bytecube-Packages/Bytecube | ae4b09d593a8f2487798283d7d1f25c76c1da4a3 | [
"Apache-2.0"
] | 5 | 2021-08-04T21:05:41.000Z | 2021-09-18T12:55:40.000Z | cli/installers/macos/pkg/util.cpp | Bytecube-Packages/Bytecube | ae4b09d593a8f2487798283d7d1f25c76c1da4a3 | [
"Apache-2.0"
] | 1 | 2021-08-12T17:44:35.000Z | 2021-08-12T17:44:35.000Z | cli/installers/macos/pkg/util.cpp | Bytecube-Packages/Bytecube | ae4b09d593a8f2487798283d7d1f25c76c1da4a3 | [
"Apache-2.0"
] | null | null | null | #pragma once
#include "../../../util/exec.cpp"
#include <string>
#include <regex>
using namespace std;
namespace Util {
namespace Macos {
namespace Pkg {
void install(const char* file) {
string start = "sudo installer -pkg";
string end = "-target / 2>&1";
string command = start +... | 18.809524 | 56 | 0.551899 | Bytecube-Packages |
7291c7328f60be304095af84db2655f6391292a5 | 9,296 | cpp | C++ | src/Domination/Integration/SearchPanel.cpp | Vladimir-Lin/QtDomination | b769d691e6c0fbb18083f7a3d09d2202d588a35c | [
"MIT"
] | null | null | null | src/Domination/Integration/SearchPanel.cpp | Vladimir-Lin/QtDomination | b769d691e6c0fbb18083f7a3d09d2202d588a35c | [
"MIT"
] | null | null | null | src/Domination/Integration/SearchPanel.cpp | Vladimir-Lin/QtDomination | b769d691e6c0fbb18083f7a3d09d2202d588a35c | [
"MIT"
] | null | null | null | #include <domination.h>
//////////////////////////////////////////////////////////////////////////////
static QScriptValue ssCreate(QScriptContext * context,QScriptEngine * engine)
{
N::ScriptStrings * ss = new N::ScriptStrings(engine) ;
ss->setupTranslation() ;
return engine->newQ... | 43.439252 | 78 | 0.331756 | Vladimir-Lin |
72978a66a85d4f56fb17dc3f5fdfe3d79e3a3367 | 1,108 | hpp | C++ | src/tibb/src/Modules/Blackberry/PushNotification/vo/User.hpp | ssaracut/titanium_mobile_blackberry | 952a8100086dcc625584e33abc2dc03340cbb219 | [
"Apache-2.0"
] | 3 | 2015-03-07T15:41:18.000Z | 2015-11-05T05:07:45.000Z | src/tibb/src/Modules/Blackberry/PushNotification/vo/User.hpp | ssaracut/titanium_mobile_blackberry | 952a8100086dcc625584e33abc2dc03340cbb219 | [
"Apache-2.0"
] | 1 | 2015-04-12T11:50:33.000Z | 2015-04-12T21:13:19.000Z | src/tibb/src/Modules/Blackberry/PushNotification/vo/User.hpp | ssaracut/titanium_mobile_blackberry | 952a8100086dcc625584e33abc2dc03340cbb219 | [
"Apache-2.0"
] | 5 | 2015-01-13T17:14:41.000Z | 2015-05-25T16:54:26.000Z | /*!
* Copyright (c) 2012, 2013 BlackBerry Limited.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agr... | 23.574468 | 74 | 0.719314 | ssaracut |
72a250fe337f5010312d561d667c555e8b89ad69 | 433 | hpp | C++ | src/rtmidiout.hpp | mariobuoninfante/lua-rtmidi | 02e2ee51865b215962e306899276b3fca5d7b239 | [
"BSD-2-Clause"
] | 6 | 2019-10-27T19:02:01.000Z | 2022-03-05T19:12:52.000Z | src/rtmidiout.hpp | mariobuoninfante/lua-rtmidi | 02e2ee51865b215962e306899276b3fca5d7b239 | [
"BSD-2-Clause"
] | 5 | 2019-10-30T20:09:36.000Z | 2020-07-10T09:24:04.000Z | src/rtmidiout.hpp | mariobuoninfante/lua-rtmidi | 02e2ee51865b215962e306899276b3fca5d7b239 | [
"BSD-2-Clause"
] | 3 | 2019-10-30T19:37:45.000Z | 2021-10-20T21:10:05.000Z | #pragma once
#include <lua.hpp>
#include <RtMidi.h>
#include "config.hpp"
constexpr const char MT_RTMIDIOUT[] = "luartmidi.rtmidiout";
constexpr const char MT_RTMIDIOUT_CLASS[] = "luartmidi.rtmidiout.__class";
extern LUA_RTMIDI_LOCAL RtMidiOut &getRtMidiOut(lua_State *L, int index);
extern LUA_RTMIDI_LOCAL int RtMid... | 28.866667 | 74 | 0.792148 | mariobuoninfante |
72a277cb77641154696426061451af2e6553d53e | 1,838 | cpp | C++ | graphics.cpp | salaadas/teenie | f4976bf65cc9c68d23a57db754a79c9e45990cb9 | [
"MIT"
] | null | null | null | graphics.cpp | salaadas/teenie | f4976bf65cc9c68d23a57db754a79c9e45990cb9 | [
"MIT"
] | null | null | null | graphics.cpp | salaadas/teenie | f4976bf65cc9c68d23a57db754a79c9e45990cb9 | [
"MIT"
] | null | null | null | #include "./graphics.h"
#include "./globals.h"
#include "./ultilities/checkcode.h"
#include "./ultilities/color_converter.h"
#include "./math/linalg.h"
#include "SDL_image.h"
#include <stdio.h>
Graphics::Graphics()
{
this->window = SDL_CreateWindow(
"idk yet", 0, 0, globals::WIDTH, globals::HEIGHT, SDL_WIN... | 24.506667 | 98 | 0.708379 | salaadas |
72a6a1580edc4b257bd647ecb221c6dde7184af7 | 10,101 | cpp | C++ | Module1/Chapter05/TerrainLoading/main.cpp | wow2006/OpenGLBuildHighPerformanceGraphics | 0174af58afd8da66425f15b218b26d4f99653899 | [
"MIT"
] | 1 | 2021-11-04T05:14:01.000Z | 2021-11-04T05:14:01.000Z | Module1/Chapter05/TerrainLoading/main.cpp | wow2006/OpenGLBuildHighPerformanceGraphics | 0174af58afd8da66425f15b218b26d4f99653899 | [
"MIT"
] | null | null | null | Module1/Chapter05/TerrainLoading/main.cpp | wow2006/OpenGLBuildHighPerformanceGraphics | 0174af58afd8da66425f15b218b26d4f99653899 | [
"MIT"
] | 2 | 2018-11-04T15:52:10.000Z | 2021-11-04T05:14:02.000Z | // STL
#include <vector>
#include <string>
#include <iostream>
// GLEW
#include <GL/glew.h>
// Freeglut
#include <GL/freeglut.h>
// GLM
#include <glm/glm.hpp>
#include <glm/gtc/type_ptr.hpp>
#include <glm/gtc/matrix_transform.hpp>
// SOIL
#include <SOIL.h>
// Internal
#include "GLSLShader.hpp"
#define GL_CHECK_ERRORS ... | 31.369565 | 121 | 0.685675 | wow2006 |
72aa3c81ffa3b21034f45bb5af3a4843c0535405 | 643 | cpp | C++ | src/Step/4. One-Dimensional Arrays/10818.cpp | ljh15952/Baekjoon | fd85e5fef0f9fea382628e0c60f4f97dcdc3ec74 | [
"MIT"
] | null | null | null | src/Step/4. One-Dimensional Arrays/10818.cpp | ljh15952/Baekjoon | fd85e5fef0f9fea382628e0c60f4f97dcdc3ec74 | [
"MIT"
] | null | null | null | src/Step/4. One-Dimensional Arrays/10818.cpp | ljh15952/Baekjoon | fd85e5fef0f9fea382628e0c60f4f97dcdc3ec74 | [
"MIT"
] | null | null | null | #include <iostream>
using namespace std;
int main(){
int n;
cin >> n;
int arr[1000000];
for(int i = 0; i < n; i++){
scanf("%d",&arr[i]);
}
int max = arr[0];
int min = arr[0];
for(int i = 1; i < n; i++){
if(arr[i] > max){
max = arr[i];
}
if(arr[i] < min){
min = arr[i];
}
}
cout << min... | 13.122449 | 38 | 0.426128 | ljh15952 |
72ae9d6d2e8261418d1a00a3c8ebe1a76b80280a | 1,624 | hpp | C++ | src/engine/mesh.hpp | Spirrwell/Mod-Engine | 9b9c7e3d6e14450d8a3f807bca8a9244f6e8b23d | [
"MIT"
] | 2 | 2020-03-19T14:13:07.000Z | 2020-09-07T07:26:23.000Z | src/engine/mesh.hpp | Spirrwell/Mod-Engine | 9b9c7e3d6e14450d8a3f807bca8a9244f6e8b23d | [
"MIT"
] | 3 | 2020-03-28T04:05:04.000Z | 2020-05-08T06:38:18.000Z | src/engine/mesh.hpp | Spirrwell/Mod-Engine | 9b9c7e3d6e14450d8a3f807bca8a9244f6e8b23d | [
"MIT"
] | null | null | null | #ifndef MESH_HPP
#define MESH_HPP
#include "engine/imesh.hpp"
#include "vulkansystem.hpp"
#include "memory.hpp"
#include "vertex.hpp"
#include "ubo.hpp"
#include <vector>
class Material;
class Mesh : public IMesh, public VulkanInterface
{
friend class MeshSystem;
public:
using VulkanInterface::VulkanInterface;
... | 24.984615 | 144 | 0.757389 | Spirrwell |
72b084dc51bdbed431d8dea3d29b747ea9acbca9 | 10,201 | cpp | C++ | fceu/boards/mmc1.cpp | jaeger401/tasbot | a16b5b9639633d27145b76f3ecfd45b859062f6c | [
"Xnet",
"X11"
] | null | null | null | fceu/boards/mmc1.cpp | jaeger401/tasbot | a16b5b9639633d27145b76f3ecfd45b859062f6c | [
"Xnet",
"X11"
] | null | null | null | fceu/boards/mmc1.cpp | jaeger401/tasbot | a16b5b9639633d27145b76f3ecfd45b859062f6c | [
"Xnet",
"X11"
] | null | null | null | /* FCE Ultra - NES/Famicom Emulator
*
* Copyright notice for this file:
* Copyright (C) 1998 BERO
* Copyright (C) 2002 Xodnizel
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation... | 22.568584 | 93 | 0.597196 | jaeger401 |
72b6a9702b551c1cb3d7a92322bbc0ab97dc72db | 677 | cpp | C++ | StackedPlot/src/main.cpp | ofnode/openFrameworksDemos | ae7d2f9f43884ef54bec44420994c49e2bf8081a | [
"MIT"
] | 75 | 2015-02-03T14:42:44.000Z | 2021-09-17T00:54:56.000Z | StackedPlot/src/main.cpp | ofnode/openFrameworksDemos | ae7d2f9f43884ef54bec44420994c49e2bf8081a | [
"MIT"
] | 1 | 2016-11-15T16:02:21.000Z | 2016-11-15T16:02:21.000Z | StackedPlot/src/main.cpp | ofnode/openFrameworksDemos | ae7d2f9f43884ef54bec44420994c49e2bf8081a | [
"MIT"
] | 16 | 2015-05-05T19:17:09.000Z | 2018-08-15T11:57:46.000Z | #include "ofMain.h"
#include "StackedPlot.h"
class ofApp : public ofBaseApp {
public:
StackedPlot plot;
void setup() {
plot.historyLength = 100;
plot.addColor(ofColor::fromHex(0xF4C341));
plot.addColor(ofColor::fromHex(0x05A180));
plot.addColor(ofColor::fromHex(0xE25D48));
... | 22.566667 | 54 | 0.587888 | ofnode |
72b9629d5396b7df452873d24678b3e92e325361 | 1,037 | cpp | C++ | 0149-max-points-on-a-line.cpp | lwcM/leetcode_solution | a5e714a9785fd94e530396d93c81f71fd8b9c1b6 | [
"MIT"
] | 2 | 2018-09-12T05:37:47.000Z | 2018-10-19T12:02:09.000Z | 0149-max-points-on-a-line.cpp | lwcM/leetcode_solution | a5e714a9785fd94e530396d93c81f71fd8b9c1b6 | [
"MIT"
] | null | null | null | 0149-max-points-on-a-line.cpp | lwcM/leetcode_solution | a5e714a9785fd94e530396d93c81f71fd8b9c1b6 | [
"MIT"
] | null | null | null | /**
* Definition for a point.
* struct Point {
* int x;
* int y;
* Point() : x(0), y(0) {}
* Point(int a, int b) : x(a), y(b) {}
* };
*/
class Solution {
public:
int maxPoints(vector<Point>& points) {
int n=points.size(), ans=0;
for(int i=0; i<n; i++) {
unordered_... | 25.925 | 99 | 0.405014 | lwcM |
72c2dcce389f87e1d5b47200b865ff6ab9b85da9 | 2,931 | cpp | C++ | kvm_core/src/kvm_frame.cpp | catid/kvm | acc2ae7dc67838cf28b1e1ae8f9c231f8d470f52 | [
"BSD-3-Clause"
] | 26 | 2020-12-03T11:13:42.000Z | 2022-03-25T05:36:33.000Z | kvm_core/src/kvm_frame.cpp | catid/kvm | acc2ae7dc67838cf28b1e1ae8f9c231f8d470f52 | [
"BSD-3-Clause"
] | 4 | 2021-01-28T19:32:17.000Z | 2021-06-01T15:01:42.000Z | kvm_core/src/kvm_frame.cpp | catid/kvm | acc2ae7dc67838cf28b1e1ae8f9c231f8d470f52 | [
"BSD-3-Clause"
] | 8 | 2020-12-04T01:30:21.000Z | 2021-12-01T11:19:11.000Z | // Copyright 2020 Christopher A. Taylor
#include "kvm_frame.hpp"
#include "kvm_logger.hpp"
namespace kvm {
static logger::Channel Logger("Frame");
//------------------------------------------------------------------------------
// Frame
Frame::Frame()
{
Planes[0] = nullptr;
}
Frame::~Frame(... | 25.267241 | 81 | 0.532242 | catid |
72c3a01fcc440ac89eb5e3bfb95723e499d93864 | 1,935 | inl | C++ | Direct3D_11_Exe/window_implementation.inl | Roy-Fokker/Direct3D_11_Eg | 172bbb84f6a707911d6df69a8b2a709b3ac44636 | [
"Unlicense"
] | null | null | null | Direct3D_11_Exe/window_implementation.inl | Roy-Fokker/Direct3D_11_Eg | 172bbb84f6a707911d6df69a8b2a709b3ac44636 | [
"Unlicense"
] | null | null | null | Direct3D_11_Exe/window_implementation.inl | Roy-Fokker/Direct3D_11_Eg | 172bbb84f6a707911d6df69a8b2a709b3ac44636 | [
"Unlicense"
] | null | null | null | #include "window.h"
#include <atlbase.h>
#include <atlwin.h>
#include <array>
using namespace direct3d_11_eg;
struct window::window_implementation : public CWindowImpl<window::window_implementation>
{
window_implementation() = default;
~window_implementation()
{
if (m_hWnd)
{
DestroyWindow();
}
}
BEG... | 20.806452 | 88 | 0.722997 | Roy-Fokker |
72ca2600ea6c872df29cd223b9d6bc6e22e43fbb | 2,433 | hpp | C++ | src/server/shader_config.hpp | malasiot/maplite | 1edeec673110cdd5fa904ff2ff88289b6c3ec324 | [
"MIT"
] | 12 | 2017-05-11T21:44:57.000Z | 2021-12-30T08:35:56.000Z | src/server/shader_config.hpp | malasiot/mftools | 1edeec673110cdd5fa904ff2ff88289b6c3ec324 | [
"MIT"
] | 8 | 2016-10-27T10:10:05.000Z | 2019-12-07T21:27:02.000Z | src/server/shader_config.hpp | malasiot/mftools | 1edeec673110cdd5fa904ff2ff88289b6c3ec324 | [
"MIT"
] | 5 | 2017-10-17T08:18:58.000Z | 2021-11-12T11:44:23.000Z | #ifndef __SHADER_CONFIG_HPP__
#define __SHADER_CONFIG_HPP__
#include <string>
#include <vector>
#include <map>
#include <memory>
#include <GL/glew.h>
#include "dictionary.hpp"
namespace glsl {
/// glsl shader container
///
class Shader {
public:
Shader(const std::string &type, const std::string &src);
boo... | 21.342105 | 130 | 0.673654 | malasiot |
72cd98c0e326cdf71738aad9e7ca53f136887540 | 11,156 | hpp | C++ | include/System/Dynamic/ExpandoClass.hpp | v0idp/virtuoso-codegen | 6f560f04822c67f092d438a3f484249072c1d21d | [
"Unlicense"
] | null | null | null | include/System/Dynamic/ExpandoClass.hpp | v0idp/virtuoso-codegen | 6f560f04822c67f092d438a3f484249072c1d21d | [
"Unlicense"
] | null | null | null | include/System/Dynamic/ExpandoClass.hpp | v0idp/virtuoso-codegen | 6f560f04822c67f092d438a3f484249072c1d21d | [
"Unlicense"
] | 1 | 2022-03-30T21:07:35.000Z | 2022-03-30T21:07:35.000Z | // Autogenerated from CppHeaderCreator
// Created by Sc2ad
// =========================================================================
#pragma once
// Begin includes
#include "beatsaber-hook/shared/utils/typedefs.h"
#include "beatsaber-hook/shared/utils/byref.hpp"
#include "beatsaber-hook/shared/utils/il2cpp-utils-met... | 56.629442 | 229 | 0.737271 | v0idp |
72d15e11db11d22e4c60ebfdfe30d61fabb260f0 | 7,204 | cpp | C++ | test/test-suite/data-translation/DataTranslatorTest.cpp | PhantomIntelligence/SensorGateway | 8eedcb0e8f8f93abfa283981769c33c6ac6541f3 | [
"Apache-2.0"
] | 1 | 2018-09-27T21:50:35.000Z | 2018-09-27T21:50:35.000Z | test/test-suite/data-translation/DataTranslatorTest.cpp | PhantomIntelligence/SensorGateway | 8eedcb0e8f8f93abfa283981769c33c6ac6541f3 | [
"Apache-2.0"
] | 2 | 2018-09-06T03:00:44.000Z | 2019-03-12T10:13:14.000Z | test/test-suite/data-translation/DataTranslatorTest.cpp | PhantomIntelligence/SensorGateway | 8eedcb0e8f8f93abfa283981769c33c6ac6541f3 | [
"Apache-2.0"
] | 1 | 2019-03-29T23:58:22.000Z | 2019-03-29T23:58:22.000Z | /**
Copyright 2014-2018 Phantom Intelligence 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 agreed to in w... | 38.731183 | 125 | 0.755414 | PhantomIntelligence |
72d6c4f7cc97d3ab808b06c3edd1764d6c5fc246 | 259 | hpp | C++ | src/CL_Point_stub.hpp | fccm/ocaml-clanlib | 1929f1c11d4cc9fc19e7da22826238b4cce7a07d | [
"Zlib",
"OLDAP-2.2.1"
] | 1 | 2020-10-24T14:48:04.000Z | 2020-10-24T14:48:04.000Z | src/CL_Point_stub.hpp | fccm/ocaml-clanlib | 1929f1c11d4cc9fc19e7da22826238b4cce7a07d | [
"Zlib",
"OLDAP-2.2.1"
] | null | null | null | src/CL_Point_stub.hpp | fccm/ocaml-clanlib | 1929f1c11d4cc9fc19e7da22826238b4cce7a07d | [
"Zlib",
"OLDAP-2.2.1"
] | null | null | null | #ifndef _CL_POINT_INC
#define _CL_POINT_INC
#include <ClanLib/Core/Math/point.h>
value Val_CL_Point(const CL_Point& c);
value Val_CL_Pointf(const CL_Pointf& c);
CL_Point CL_Point_val(value pnt);
CL_Pointf CL_Pointf_val(value pnt);
#endif // _CL_POINT_INC
| 19.923077 | 40 | 0.795367 | fccm |
72d797f7f599ba5ca0061c40c44347f567eebb29 | 1,073 | cpp | C++ | UnitTests/StrongTypeDefTests.cpp | sjohal21/Floating-Sandbox | 0170e3696ed4f012f5f17fdbbdaef1af4117f495 | [
"CC-BY-4.0"
] | 44 | 2018-07-08T16:44:53.000Z | 2022-02-06T14:07:30.000Z | UnitTests/StrongTypeDefTests.cpp | sjohal21/Floating-Sandbox | 0170e3696ed4f012f5f17fdbbdaef1af4117f495 | [
"CC-BY-4.0"
] | 31 | 2019-03-24T16:00:38.000Z | 2022-02-24T20:23:18.000Z | UnitTests/StrongTypeDefTests.cpp | sjohal21/Floating-Sandbox | 0170e3696ed4f012f5f17fdbbdaef1af4117f495 | [
"CC-BY-4.0"
] | 24 | 2018-11-08T21:58:53.000Z | 2022-01-12T12:04:42.000Z | #include <GameCore/StrongTypeDef.h>
#include "gtest/gtest.h"
TEST(StrongTypeDefTests, Basic)
{
StrongTypeDef<int, struct MyTag> val1(2);
StrongTypeDef<int, struct MyTag> val2(3);
StrongTypeDef<int, struct MyTag> val3(2);
EXPECT_NE(val1, val2);
EXPECT_EQ(val1, val3);
}
TEST(StrongTypeDefTests, Boolean_Construct... | 17.883333 | 117 | 0.749301 | sjohal21 |
72dd2d5616106e6701f675ae1b071ede5bb26a13 | 744 | cpp | C++ | CodeForces/919B/22057736_AC_124ms_52kB.cpp | BakaErii/ACM_Collection | d368b15c7f1c84472424d5e61e5ebc667f589025 | [
"WTFPL"
] | null | null | null | CodeForces/919B/22057736_AC_124ms_52kB.cpp | BakaErii/ACM_Collection | d368b15c7f1c84472424d5e61e5ebc667f589025 | [
"WTFPL"
] | null | null | null | CodeForces/919B/22057736_AC_124ms_52kB.cpp | BakaErii/ACM_Collection | d368b15c7f1c84472424d5e61e5ebc667f589025 | [
"WTFPL"
] | null | null | null | /**
* @author Moe_Sakiya sakiya@tun.moe
* @date 2019-10-04 16:30:25
*
*/
#include <iostream>
#include <string>
#include <algorithm>
#include <set>
#include <map>
#include <vector>
#include <stack>
#include <queue>
#include <cstdio>
#include <cstring>
#include <cstdlib>
#include <cmath>
using namespace std;
int ... | 13.527273 | 36 | 0.564516 | BakaErii |
72e7ba5fede908f01dd466d3e8a741d38ab520c0 | 712 | hpp | C++ | include/dev/DeviceList.hpp | RoseLeBlood/CsOS-i386 | e1b8db4111349c8dfa51aaaa543075f220af50d4 | [
"MIT"
] | 2 | 2017-05-02T13:18:59.000Z | 2020-12-23T03:03:26.000Z | include/dev/DeviceList.hpp | RoseLeBlood/CsOS-i386 | e1b8db4111349c8dfa51aaaa543075f220af50d4 | [
"MIT"
] | null | null | null | include/dev/DeviceList.hpp | RoseLeBlood/CsOS-i386 | e1b8db4111349c8dfa51aaaa543075f220af50d4 | [
"MIT"
] | null | null | null | #ifndef __DEVICE_LIST_H__
#define __DEVICE_LIST_H__
#include <cxx/common.hpp>
#include <cxx/algorithm.hpp>
#include <cxx/list.hpp>
#include <DeviceStream.hpp>
namespace dev
{
typedef std::list<DeviceStream*> listDevices;
class DeviceManager
{
public:
DeviceManager()
{
m_DeviceList = new listDevices();
... | 16.952381 | 57 | 0.648876 | RoseLeBlood |
63919537db19b4e7ca72361081f306391397e5cb | 1,619 | cc | C++ | libtransport/src/core/connector.cc | muscariello/hicn-test | dba9cb958219d042e0a01f6758feb2c1ffabbf05 | [
"Apache-2.0"
] | 2 | 2019-10-08T11:59:58.000Z | 2020-12-29T06:10:08.000Z | libtransport/src/core/connector.cc | icn-team/hicn | 72a9acca4500a9c07a4661fe112a1a212567fc9f | [
"Apache-2.0"
] | null | null | null | libtransport/src/core/connector.cc | icn-team/hicn | 72a9acca4500a9c07a4661fe112a1a212567fc9f | [
"Apache-2.0"
] | null | null | null | /*
* Copyright (c) 2017-2019 Cisco and/or its affiliates.
* 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 appl... | 31.134615 | 80 | 0.707844 | muscariello |
6393fcd8e9cc1dbf8659cc63a5229d706c68b67b | 2,540 | hpp | C++ | test/parser_tests.hpp | eightysquirrels/text | d935545648777786dc196a75346cde8906da846a | [
"BSL-1.0"
] | null | null | null | test/parser_tests.hpp | eightysquirrels/text | d935545648777786dc196a75346cde8906da846a | [
"BSL-1.0"
] | 1 | 2021-03-05T12:56:59.000Z | 2021-03-05T13:11:53.000Z | test/parser_tests.hpp | eightysquirrels/text | d935545648777786dc196a75346cde8906da846a | [
"BSL-1.0"
] | 3 | 2019-10-30T18:38:15.000Z | 2021-03-05T12:10:13.000Z | #include <iostream>
template<typename Seq>
struct seq_dumper
{
seq_dumper(Seq const & seq) : first_(std::begin(seq)), last_(std::end(seq))
{}
friend std::ostream & operator<<(std::ostream & os, seq_dumper sd)
{
for (auto it = sd.first_; it != sd.last_; ++it) {
os << *it << " ";
... | 27.311828 | 79 | 0.569685 | eightysquirrels |
639b2ae67a59d69027ef2b37eee83c7e509f1c97 | 511 | cpp | C++ | src/klibc/cxx/list.cpp | RoseLeBlood/CsOS-i386 | e1b8db4111349c8dfa51aaaa543075f220af50d4 | [
"MIT"
] | 2 | 2017-05-02T13:18:59.000Z | 2020-12-23T03:03:26.000Z | src/klibc/cxx/list.cpp | RoseLeBlood/CsOS-i386 | e1b8db4111349c8dfa51aaaa543075f220af50d4 | [
"MIT"
] | null | null | null | src/klibc/cxx/list.cpp | RoseLeBlood/CsOS-i386 | e1b8db4111349c8dfa51aaaa543075f220af50d4 | [
"MIT"
] | null | null | null | #include <cxx/list.hpp>
namespace std
{
namespace internal
{
void list_base_node::link_before(list_base_node* nextNode)
{
assert(!in_list());
prev = nextNode->prev;
prev->next = this;
nextNode->prev = this;
next = nextNode;
}
... | 21.291667 | 66 | 0.46771 | RoseLeBlood |
639bc72b44b5402b8818ee5924faf52f41dee9ed | 17,134 | cpp | C++ | src/raven_src/src/Flush.cpp | Okanagan-Basin-Water-Board/obwb-hydro-modelling | 91ee6b914e344de65a495093c3b9427986182ef2 | [
"Artistic-2.0"
] | null | null | null | src/raven_src/src/Flush.cpp | Okanagan-Basin-Water-Board/obwb-hydro-modelling | 91ee6b914e344de65a495093c3b9427986182ef2 | [
"Artistic-2.0"
] | null | null | null | src/raven_src/src/Flush.cpp | Okanagan-Basin-Water-Board/obwb-hydro-modelling | 91ee6b914e344de65a495093c3b9427986182ef2 | [
"Artistic-2.0"
] | null | null | null | /*----------------------------------------------------------------
Raven Library Source Code
Copyright (c) 2008-2017 the Raven Development Team
------------------------------------------------------------------
Flush (abstract move of all water from one compartment to another)
Split (move water to two compart... | 45.690667 | 124 | 0.562449 | Okanagan-Basin-Water-Board |
63a2be1e93c86cda533b104a512c9ad1587798a8 | 1,056 | cpp | C++ | nativetext/src/extension_stub.cpp | Lerg/extension-nativetext | bf19acb09907cfd3afffaf6925038818a3b40a91 | [
"MIT"
] | 5 | 2019-09-27T05:29:27.000Z | 2022-02-02T01:11:43.000Z | nativetext/src/extension_stub.cpp | Lerg/extension-nativetext | bf19acb09907cfd3afffaf6925038818a3b40a91 | [
"MIT"
] | null | null | null | nativetext/src/extension_stub.cpp | Lerg/extension-nativetext | bf19acb09907cfd3afffaf6925038818a3b40a91 | [
"MIT"
] | null | null | null | #if !defined(DM_PLATFORM_IOS) && !defined(DM_PLATFORM_OSX) && !defined(DM_PLATFORM_ANDROID)
#include <dmsdk/sdk.h>
#include "extension.h"
int EXTENSION_INIT(lua_State *L) {
dmLogInfo("init");
return 0;
}
int EXTENSION_GENERATE_TEXT_BITMAP(const char *text, int font_size, const char *font_name,
int text_width, int... | 32 | 142 | 0.792614 | Lerg |
63a4ee01a0d304bac4619779d41d624f2971c378 | 21,109 | cpp | C++ | sources/FileFormats/Mesh/spMeshLoaderB3D.cpp | rontrek/softpixel | 73a13a67e044c93f5c3da9066eedbaf3805d6807 | [
"Zlib"
] | 14 | 2015-08-16T21:05:20.000Z | 2019-08-21T17:22:01.000Z | sources/FileFormats/Mesh/spMeshLoaderB3D.cpp | rontrek/softpixel | 73a13a67e044c93f5c3da9066eedbaf3805d6807 | [
"Zlib"
] | null | null | null | sources/FileFormats/Mesh/spMeshLoaderB3D.cpp | rontrek/softpixel | 73a13a67e044c93f5c3da9066eedbaf3805d6807 | [
"Zlib"
] | 3 | 2020-02-15T09:17:41.000Z | 2020-05-21T14:10:40.000Z | /*
* Mesh loader B3D file
*
* This file is part of the "SoftPixel Engine" (Copyright (c) 2008 by Lukas Hermanns)
* See "SoftPixelEngine.hpp" for license information.
*/
#include "FileFormats/Mesh/spMeshLoaderB3D.hpp"
#ifdef SP_COMPILE_WITH_MESHLOADER_B3D
#include "Base/spSharedObjects.hpp"
#include "SceneGrap... | 28.145333 | 127 | 0.530864 | rontrek |
63a56f86349478efd9d71f58c7e77a2b5ba82c4b | 343 | cc | C++ | compare.cc | jbolfrey/free_times | 5f00618cc30e97baaf33b6765049946adc9ce8a8 | [
"MIT"
] | null | null | null | compare.cc | jbolfrey/free_times | 5f00618cc30e97baaf33b6765049946adc9ce8a8 | [
"MIT"
] | null | null | null | compare.cc | jbolfrey/free_times | 5f00618cc30e97baaf33b6765049946adc9ce8a8 | [
"MIT"
] | null | null | null | #include <iostream>
#include <string>
using namespace std;
int main(){
string dog_string = "dog";
string cat_string = "cat";
cout << dog_string.compare(dog_string) << endl;
cout << cat_string.compare(cat_string) << endl;
cout << dog_string.compare(cat_string) << endl;
cout << cat_string.compare(dog_string) ... | 22.866667 | 49 | 0.690962 | jbolfrey |
63a939f22e0b7867700f6b671b8e6cea6d9a3690 | 3,172 | cpp | C++ | test/tst_neovimconnector.cpp | cvincent/neovim-qt | 5cabc6d8bb452a9142a4c0e5d6eaf75ce05da9ba | [
"ISC"
] | 1,564 | 2015-01-01T19:29:34.000Z | 2022-03-23T23:04:40.000Z | test/tst_neovimconnector.cpp | cvincent/neovim-qt | 5cabc6d8bb452a9142a4c0e5d6eaf75ce05da9ba | [
"ISC"
] | 871 | 2015-01-22T21:45:05.000Z | 2022-03-24T22:04:36.000Z | test/tst_neovimconnector.cpp | cvincent/neovim-qt | 5cabc6d8bb452a9142a4c0e5d6eaf75ce05da9ba | [
"ISC"
] | 215 | 2015-03-16T08:42:58.000Z | 2022-03-26T05:53:53.000Z | #include <QTest>
#include <QSignalSpy>
#include <QTcpServer>
#include <QTcpSocket>
#include <QRegularExpression>
#include <QBuffer>
#include <neovimconnector.h>
#include "common.h"
namespace NeovimQt {
class Test: public QObject
{
Q_OBJECT
private slots:
void reconnect() {
NeovimConnector c(new QBuffer());
QC... | 26.433333 | 82 | 0.708386 | cvincent |
63b34f83ef02e55d26f7ac3158cb659635f2abf6 | 11,071 | cpp | C++ | Projects/GameOfLife_SFML/src/Parser.cpp | Malacky/game-of-assessment | 19494b6443d0e0a34c7cfeb3dfe22a18046d6b7c | [
"Apache-2.0"
] | 1 | 2019-02-28T06:04:59.000Z | 2019-02-28T06:04:59.000Z | Projects/GameOfLife_SFML/src/Parser.cpp | Malacky/game-of-assessment | 19494b6443d0e0a34c7cfeb3dfe22a18046d6b7c | [
"Apache-2.0"
] | null | null | null | Projects/GameOfLife_SFML/src/Parser.cpp | Malacky/game-of-assessment | 19494b6443d0e0a34c7cfeb3dfe22a18046d6b7c | [
"Apache-2.0"
] | null | null | null | #include "Parser.h"
#include "Cell.h"
#include <string>
#include <vector>
#include <stdexcept>
#include <cctype>
#include <algorithm>
#include <utility>
#include <memory>
Cell &Parser::operator()(Cell &cell, Cells &cells) { //Apply rules to the cell. (set futures)
for (auto &tree : parseTrees) {
evalu... | 34.596875 | 206 | 0.686749 | Malacky |
63b6557a9cda0083796a21b5e46ed18f1747c977 | 1,079 | ipp | C++ | ThirdParty/oglplus-develop/implement/oglplus/enums/ext/nv_path_font_target_names.ipp | vif/3D-STG | 721402e76a9b9b99b88ba3eb06beb6abb17a9254 | [
"MIT"
] | 24 | 2015-01-31T15:30:49.000Z | 2022-01-29T08:36:42.000Z | ThirdParty/oglplus-develop/implement/oglplus/enums/ext/nv_path_font_target_names.ipp | vif/3D-STG | 721402e76a9b9b99b88ba3eb06beb6abb17a9254 | [
"MIT"
] | 4 | 2015-08-21T02:29:15.000Z | 2020-05-02T13:50:36.000Z | ThirdParty/oglplus-develop/implement/oglplus/enums/ext/nv_path_font_target_names.ipp | vif/3D-STG | 721402e76a9b9b99b88ba3eb06beb6abb17a9254 | [
"MIT"
] | 9 | 2015-06-08T22:04:15.000Z | 2021-08-16T03:52:11.000Z | /*
* .file oglplus/enums/ext/nv_path_font_target_names.ipp
*
* Automatically generated header file. DO NOT modify manually,
* edit 'source/enums/oglplus/ext/nv_path_font_target.txt' instead.
*
* Copyright 2010-2013 Matus Chochlik. Distributed under the Boost
* Software License, Version 1.0. (See accompanyin... | 25.690476 | 73 | 0.784986 | vif |
63bd6d5c9a5db91d590b3a207ce6bae3d6f14ff5 | 65,042 | cpp | C++ | src/core/particle.cpp | ngrigorieff/cisTEM_downstream_ng | 8cf890cc5d8d9eec874e9d7897da51ed0419251c | [
"BSD-3-Clause"
] | 7 | 2020-09-09T10:59:59.000Z | 2020-11-19T15:26:53.000Z | src/core/particle.cpp | ngrigorieff/cisTEM_downstream_ng | 8cf890cc5d8d9eec874e9d7897da51ed0419251c | [
"BSD-3-Clause"
] | 85 | 2020-09-11T15:07:02.000Z | 2021-02-08T20:38:13.000Z | src/core/particle.cpp | ngrigorieff/cisTEM_downstream_ng | 8cf890cc5d8d9eec874e9d7897da51ed0419251c | [
"BSD-3-Clause"
] | 6 | 2021-03-26T13:04:10.000Z | 2021-11-18T19:28:16.000Z | #include "core_headers.h"
ParameterMap::ParameterMap()
{
phi = false;
theta = false;
psi = false;
x_shift = false;
y_shift = false;
}
void ParameterMap::SetAllTrue()
{
phi = true;
theta = true;
psi = true;
x_shift = true;
y_shift = true;
}
Particle::Particle()
{
Init();
}
Particle::Particle(int wanted_lo... | 43.477273 | 334 | 0.771732 | ngrigorieff |
63cee94df148b7c0edc07ed37b807a7a033a11a0 | 5,507 | cpp | C++ | fbgemm_gpu/src/cpu_utils.cpp | jiecaoyu/FBGEMM | 2c547924deafa1839483d31096de800078c35711 | [
"BSD-3-Clause"
] | null | null | null | fbgemm_gpu/src/cpu_utils.cpp | jiecaoyu/FBGEMM | 2c547924deafa1839483d31096de800078c35711 | [
"BSD-3-Clause"
] | null | null | null | fbgemm_gpu/src/cpu_utils.cpp | jiecaoyu/FBGEMM | 2c547924deafa1839483d31096de800078c35711 | [
"BSD-3-Clause"
] | null | null | null | /*
* Copyright (c) Meta Platforms, Inc. and affiliates.
* Copyright (c) Intel Corporation.
* 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.
*/
#include "fbgemm_gpu/cpu_utils.h"
#include <omp.h>
#include "c10/... | 28.682292 | 72 | 0.63392 | jiecaoyu |
63cf3a154083713099b145ae52c537c872f14940 | 197 | cpp | C++ | cpp/src/text/case_insensitive_string.cpp | PazerOP/stuff | 8ef31153dce1c9593d59fe7fb731fca4d15f3fa6 | [
"MIT"
] | null | null | null | cpp/src/text/case_insensitive_string.cpp | PazerOP/stuff | 8ef31153dce1c9593d59fe7fb731fca4d15f3fa6 | [
"MIT"
] | 4 | 2020-01-04T02:26:00.000Z | 2020-04-19T10:46:50.000Z | cpp/src/text/case_insensitive_string.cpp | PazerOP/stuff | 8ef31153dce1c9593d59fe7fb731fca4d15f3fa6 | [
"MIT"
] | null | null | null | #include "mh/text/case_insensitive_string.hpp"
template class mh::case_insensitive_char_traits<std::char_traits<char>>;
template class mh::case_insensitive_char_traits<std::char_traits<wchar_t>>;
| 39.4 | 75 | 0.832487 | PazerOP |
63d4ca6f6466e6a91cfb96782b34800dd3c86d1f | 8,576 | cpp | C++ | DesktopSharing/xop/RtmpPublisher.cpp | EasyCoding-7/DesktopSharing | c1f72815a0236fa974d581e0a25210b2688f13dc | [
"MIT"
] | 1 | 2020-08-24T19:03:49.000Z | 2020-08-24T19:03:49.000Z | DesktopSharing/xop/RtmpPublisher.cpp | EasyCoding-7/DesktopSharing | c1f72815a0236fa974d581e0a25210b2688f13dc | [
"MIT"
] | null | null | null | DesktopSharing/xop/RtmpPublisher.cpp | EasyCoding-7/DesktopSharing | c1f72815a0236fa974d581e0a25210b2688f13dc | [
"MIT"
] | 1 | 2021-11-29T14:02:36.000Z | 2021-11-29T14:02:36.000Z | #include "RtmpPublisher.h"
#include "net/Logger.h"
#include "net/log.h"
using namespace xop;
RtmpPublisher::RtmpPublisher(xop::EventLoop* event_loop)
: event_loop_(event_loop)
{
}
RtmpPublisher::~RtmpPublisher()
{
}
std::shared_ptr<RtmpPublisher> RtmpPublisher::Create(xop::EventLoop* event_loop)... | 27.053628 | 140 | 0.643307 | EasyCoding-7 |
63d539a2eda3936118410d1dda0839c6016465de | 12,253 | hxx | C++ | include/nifty/graph/undirected_long_range_grid_graph.hxx | konopczynski/nifty | dc02ac60febaabfaf9b2ee5a854bb61436ebdc97 | [
"MIT"
] | null | null | null | include/nifty/graph/undirected_long_range_grid_graph.hxx | konopczynski/nifty | dc02ac60febaabfaf9b2ee5a854bb61436ebdc97 | [
"MIT"
] | null | null | null | include/nifty/graph/undirected_long_range_grid_graph.hxx | konopczynski/nifty | dc02ac60febaabfaf9b2ee5a854bb61436ebdc97 | [
"MIT"
] | 1 | 2018-02-07T09:29:26.000Z | 2018-02-07T09:29:26.000Z | #pragma once
#include "xtensor/xexpression.hpp"
#include "xtensor/xview.hpp"
#include "xtensor/xmath.hpp"
#include "nifty/graph/undirected_list_graph.hxx"
#include "nifty/array/arithmetic_array.hxx"
#include "nifty/tools/for_each_coordinate.hxx"
namespace nifty{
namespace graph{
template<std::size_t DIM>
c... | 36.251479 | 125 | 0.45042 | konopczynski |
63d745495655229be6501f6dd158f20e5449b823 | 782 | cpp | C++ | src/TEMA VACANTA 1/#19/main.cpp | andrew-miroiu/Cpp-projects | d0917a7f78aef929c25dc9b019e910951c2050ac | [
"MIT"
] | 2 | 2021-11-27T18:29:32.000Z | 2021-11-28T14:35:47.000Z | src/TEMA VACANTA 1/#19/main.cpp | andrew-miroiu/Cpp-projects | d0917a7f78aef929c25dc9b019e910951c2050ac | [
"MIT"
] | null | null | null | src/TEMA VACANTA 1/#19/main.cpp | andrew-miroiu/Cpp-projects | d0917a7f78aef929c25dc9b019e910951c2050ac | [
"MIT"
] | null | null | null | #include <iostream>
#include <math.h>
/*19. Fie un tablou cu n numere reale pozitive (1...1OO) ordonate Crescător. Scrieţi un program care
determină numărul minim de intervale închise de forma [x;x+1], cu x număr natural, a căror reuniune
include toate numerele reale din tablou. Exemplu: Dacă tabloul are conţinutul: 2... | 23.69697 | 107 | 0.585678 | andrew-miroiu |
63de79f849d95b02046a044b424ee1764a2a3618 | 770 | cpp | C++ | src/app/SVGSlider.cpp | neuromancer85/Rack | 7e49a697d43bc204f68408779ac2015c66e7dd14 | [
"BSD-2-Clause",
"BSD-3-Clause"
] | 233 | 2018-07-02T16:49:36.000Z | 2022-02-27T21:45:39.000Z | src/app/SVGSlider.cpp | neuromancer85/Rack | 7e49a697d43bc204f68408779ac2015c66e7dd14 | [
"BSD-2-Clause",
"BSD-3-Clause"
] | 24 | 2018-07-09T11:32:15.000Z | 2022-01-07T01:45:43.000Z | src/app/SVGSlider.cpp | neuromancer85/Rack | 7e49a697d43bc204f68408779ac2015c66e7dd14 | [
"BSD-2-Clause",
"BSD-3-Clause"
] | 24 | 2018-07-14T21:55:30.000Z | 2021-05-04T04:20:34.000Z | #include "app.hpp"
namespace rack {
SVGSlider::SVGSlider() {
background = new SVGWidget();
addChild(background);
handle = new SVGWidget();
addChild(handle);
speed = 2.0;
}
void SVGSlider::setSVGs(std::shared_ptr<SVG> backgroundSVG, std::shared_ptr<SVG> handleSVG) {
background->setSVG(backgroundSVG);
box.s... | 19.25 | 160 | 0.705195 | neuromancer85 |
63e2445af6d48ba7e3c78a8746e34eda3b224a6b | 1,089 | cpp | C++ | otafault/test.cpp | scarlet-glass/android_bootable_recovery | 76d064cb08814b00deee6d4214b0d440b5628dbc | [
"Apache-2.0"
] | 1 | 2020-09-07T04:13:42.000Z | 2020-09-07T04:13:42.000Z | otafault/test.cpp | scarlet-glass/android_bootable_recovery | 76d064cb08814b00deee6d4214b0d440b5628dbc | [
"Apache-2.0"
] | null | null | null | otafault/test.cpp | scarlet-glass/android_bootable_recovery | 76d064cb08814b00deee6d4214b0d440b5628dbc | [
"Apache-2.0"
] | 3 | 2021-01-07T13:35:24.000Z | 2021-01-08T04:44:38.000Z | /*
* Copyright (C) 2015 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... | 30.25 | 75 | 0.677686 | scarlet-glass |
63e3567207ab914d75335844114fb5243b1c2412 | 57 | hpp | C++ | src/boost_spirit_home_qi_operator_alternative.hpp | miathedev/BoostForArduino | 919621dcd0c157094bed4df752b583ba6ea6409e | [
"BSL-1.0"
] | 10 | 2018-03-17T00:58:42.000Z | 2021-07-06T02:48:49.000Z | src/boost_spirit_home_qi_operator_alternative.hpp | miathedev/BoostForArduino | 919621dcd0c157094bed4df752b583ba6ea6409e | [
"BSL-1.0"
] | 2 | 2021-03-26T15:17:35.000Z | 2021-05-20T23:55:08.000Z | src/boost_spirit_home_qi_operator_alternative.hpp | miathedev/BoostForArduino | 919621dcd0c157094bed4df752b583ba6ea6409e | [
"BSL-1.0"
] | 4 | 2019-05-28T21:06:37.000Z | 2021-07-06T03:06:52.000Z | #include <boost/spirit/home/qi/operator/alternative.hpp>
| 28.5 | 56 | 0.807018 | miathedev |
63eb6a386a1efc56382b85b03e1d0a649c265f5e | 16,802 | cpp | C++ | test/test.cpp | fesily/CxxTool_Property | 142144ffc4c358fbac1e54b1e4c35b4527a3ca56 | [
"MIT"
] | 1 | 2019-05-25T15:26:08.000Z | 2019-05-25T15:26:08.000Z | test/test.cpp | fesily/CxxTool_Property | 142144ffc4c358fbac1e54b1e4c35b4527a3ca56 | [
"MIT"
] | null | null | null | test/test.cpp | fesily/CxxTool_Property | 142144ffc4c358fbac1e54b1e4c35b4527a3ca56 | [
"MIT"
] | 1 | 2018-09-17T10:53:25.000Z | 2018-09-17T10:53:25.000Z | #ifdef _MSC_VER
#define GTEST_HAS_TR1_TUPLE 0
#endif
#include "gtest/gtest.h"
#include "../include/CxxTool_Property/PropertyComponent.hpp"
TEST(PropertyComponent,TestProperty)
{
//std::declval<Property<std::string*>>()->append("1");
}
TEST(PropertyComponent, TestScalarReference)
{
PropertyComponent component;
Prop... | 23.765205 | 103 | 0.698607 | fesily |
63ec236e5591289adee670fd477579ffc71b2def | 1,187 | cpp | C++ | Dynamic Programming/grid_paths.cpp | mishrakeshav/CSES-Problem-Set | 7f7169b20af44430e9208ba22c122054cea23ca1 | [
"MIT"
] | null | null | null | Dynamic Programming/grid_paths.cpp | mishrakeshav/CSES-Problem-Set | 7f7169b20af44430e9208ba22c122054cea23ca1 | [
"MIT"
] | null | null | null | Dynamic Programming/grid_paths.cpp | mishrakeshav/CSES-Problem-Set | 7f7169b20af44430e9208ba22c122054cea23ca1 | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
#include <string.h>
using namespace std;
int mod = 1e9 + 7;
int main(){
int n;
cin >>n;
char ** grid = new char*[n];
for(int i=0; i<n; i++){
grid[i] = new char[n];
}
for(int i =0; i < n; i++){
for(int j=0; j < n; j++){
cin >> grid[i][j];
... | 22.396226 | 56 | 0.315922 | mishrakeshav |
63f1449885d560e2fa42e7572946a538a93784cf | 137 | cpp | C++ | Engine/Source/Runtime/Renderer/Renderer.cpp | douysu/Sudou | 23286e22a96814863ee55c6e2b5cc67be18acba9 | [
"Apache-2.0"
] | 3 | 2022-01-07T01:09:06.000Z | 2022-01-21T03:11:33.000Z | Engine/Source/Runtime/Renderer/Renderer.cpp | douysu/Sudou | 23286e22a96814863ee55c6e2b5cc67be18acba9 | [
"Apache-2.0"
] | null | null | null | Engine/Source/Runtime/Renderer/Renderer.cpp | douysu/Sudou | 23286e22a96814863ee55c6e2b5cc67be18acba9 | [
"Apache-2.0"
] | null | null | null | #include "Runtime/Core/stdafx.h"
#include "Renderer.h"
namespace Sudou
{
RendererAPI Renderer::s_RenderAPI = RendererAPI::OpenGL;
} | 17.125 | 60 | 0.744526 | douysu |
63f6766ea8e26cbf0d1ca1989a3a320577fbf989 | 811 | cpp | C++ | Common/Packets/GCArrive.cpp | hackerlank/SourceCode | b702c9e0a9ca5d86933f3c827abb02a18ffc9a59 | [
"MIT"
] | 4 | 2021-07-31T13:56:01.000Z | 2021-11-13T02:55:10.000Z | Common/Packets/GCArrive.cpp | shacojx/SourceCodeGameTLBB | e3cea615b06761c2098a05427a5f41c236b71bf7 | [
"MIT"
] | null | null | null | Common/Packets/GCArrive.cpp | shacojx/SourceCodeGameTLBB | e3cea615b06761c2098a05427a5f41c236b71bf7 | [
"MIT"
] | 7 | 2021-08-31T14:34:23.000Z | 2022-01-19T08:25:58.000Z | #include "stdafx.h"
#include "GCArrive.h"
BOOL GCArrive::Read( SocketInputStream& iStream )
{
__ENTER_FUNCTION
iStream.Read( (CHAR*)(&m_ObjID), sizeof(m_ObjID) ) ;
iStream.Read( (CHAR*)(&m_nHandleID), sizeof(m_nHandleID) ) ;
iStream.Read( (CHAR*)(&m_posWorld), sizeof(m_posWorld) ) ;
return TRUE ;
__LEAVE_F... | 16.22 | 62 | 0.7127 | hackerlank |
63f81212a6b69da47a20af8cbda0f40f103adb7d | 1,311 | cpp | C++ | src/IS2ODBC.16/DbServer/BookSet.cpp | jimbeveridge/multithreading | b092dde13968f91dfb9b86e3d7e760a50f799a96 | [
"MIT"
] | 2 | 2021-11-23T10:43:45.000Z | 2022-01-03T14:51:32.000Z | src/IS2ODBC.16/DbServer/BookSet.cpp | jimbeveridge/multithreading | b092dde13968f91dfb9b86e3d7e760a50f799a96 | [
"MIT"
] | null | null | null | src/IS2ODBC.16/DbServer/BookSet.cpp | jimbeveridge/multithreading | b092dde13968f91dfb9b86e3d7e760a50f799a96 | [
"MIT"
] | 1 | 2020-10-28T15:11:55.000Z | 2020-10-28T15:11:55.000Z | // BookSet.cpp : implementation of the CAwBooksSet class
//
#include "stdafx.h"
#include "BookSet.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#endif
/////////////////////////////////////////////////////////////////////////////
// CAwBooksSet implementation
IMPLEMENT_DYNAMIC(CAwBooksSet, CRecordset)
CAwBooksSet::CAwBook... | 20.484375 | 77 | 0.633867 | jimbeveridge |
63f83e02cb325eefad4af92c7b67372c640cfea2 | 3,778 | cpp | C++ | CarbonRender/Src/CRShaderManager.cpp | lanyu8/CarbonRender | dcd0a5d53ee2c458ad53c4e690359c250219ee22 | [
"MIT"
] | 44 | 2017-07-23T08:38:19.000Z | 2022-03-27T02:53:10.000Z | CarbonRender/Src/CRShaderManager.cpp | lanyu8/CarbonRender | dcd0a5d53ee2c458ad53c4e690359c250219ee22 | [
"MIT"
] | 2 | 2018-10-10T15:56:58.000Z | 2021-07-16T07:31:10.000Z | CarbonRender/Src/CRShaderManager.cpp | lanyu8/CarbonRender | dcd0a5d53ee2c458ad53c4e690359c250219ee22 | [
"MIT"
] | 14 | 2018-06-08T09:19:55.000Z | 2022-03-17T08:04:57.000Z | #include "..\Inc\CRShaderManager.h"
bool ShaderProgram::CompileShader(GLuint shaderID, const GLchar ** shaderSrc)
{
GLint isCompiled;
glShaderSource(shaderID, 1, shaderSrc, NULL);
glCompileShader(shaderID);
glGetShaderiv(shaderID, GL_COMPILE_STATUS, &isCompiled);
if (!isCompiled)
{
char* log;
GLint logLengt... | 21.83815 | 119 | 0.723399 | lanyu8 |
63fa7c5d6dcaa67633560d816bc03be728a65919 | 4,363 | cpp | C++ | tuyotuyo/KeyStorkeGenerator.cpp | boxqkrtm/tuyotuyo-puyoai-open | f6c6894ab044738cca7bbc30588ed2e561f28436 | [
"MIT"
] | 3 | 2022-01-05T05:28:22.000Z | 2022-02-25T15:13:45.000Z | tuyotuyo/KeyStorkeGenerator.cpp | boxqkrtm/tuyotuyo-puyoai-open | f6c6894ab044738cca7bbc30588ed2e561f28436 | [
"MIT"
] | null | null | null | tuyotuyo/KeyStorkeGenerator.cpp | boxqkrtm/tuyotuyo-puyoai-open | f6c6894ab044738cca7bbc30588ed2e561f28436 | [
"MIT"
] | 1 | 2022-02-25T06:20:41.000Z | 2022-02-25T06:20:41.000Z | #include "KeyStorkeGenerator.h"
#include "MoveSimulator.h"
#include "Simulator.h"
#include <vector>
KeyStrokeQueue KeyStorkeGenerator::gen(MoveSimulator m, int input)
{
vector<string> all;
vector<string> shortall;
int b[13][6];
Simulator s(-1);
int msfield[13][6];
string mchar[7] = { "<", ">", "V", "A", "B","Q... | 23.84153 | 116 | 0.537245 | boxqkrtm |
63fd2f241be1529b9032ea4ccf6bf877e1d48421 | 930 | cpp | C++ | MyVCR/Rascal/Log4c.cpp | kastaineibum/myvcr | 571613f17cb37ce89b8743d2efc7f80efd140910 | [
"MIT"
] | 1 | 2021-08-11T15:35:35.000Z | 2021-08-11T15:35:35.000Z | MyVCR/Rascal/Log4c.cpp | kevx/myvcr | f5c01442475bb08fac7b92832372ec23ca4eec2d | [
"MIT"
] | null | null | null | MyVCR/Rascal/Log4c.cpp | kevx/myvcr | f5c01442475bb08fac7b92832372ec23ca4eec2d | [
"MIT"
] | 1 | 2021-08-05T08:15:16.000Z | 2021-08-05T08:15:16.000Z |
#include "stdafx.h"
#include "log4c.h"
bool Log4c::m_isLoggingEnabled = false;
wchar_t Log4c::m_logFile[] = {NULL};
void Log4c::logMsg(wchar_t * lpFmt, ... )
{
if( m_logFile == NULL )
return;
if( isLoggingEnabled == false )
return;
wchar_t buff[1024];
va_list arglist;
va_start( argli... | 17.884615 | 52 | 0.630108 | kastaineibum |
12024dc68f26c8572c4fca9bc7e269bfdfe43491 | 1,937 | cpp | C++ | 034_28.2_PLU.cpp | JoeZ-EE/Introduction2Algorithms | b97d74e983b74fef6f6cc67d4e2dba33ed15c238 | [
"MIT"
] | 4 | 2016-11-20T04:43:44.000Z | 2017-02-19T11:37:36.000Z | 034_28.2_PLU.cpp | gnahZ-eH/Introduction2Algorithms | b97d74e983b74fef6f6cc67d4e2dba33ed15c238 | [
"MIT"
] | null | null | null | 034_28.2_PLU.cpp | gnahZ-eH/Introduction2Algorithms | b97d74e983b74fef6f6cc67d4e2dba33ed15c238 | [
"MIT"
] | 1 | 2017-06-10T09:16:56.000Z | 2017-06-10T09:16:56.000Z | #include<stdio.h>
#include<stdlib.h>
#include<math.h>
#define N 4
template<class T>
struct ThreeM
{
T P[N][N];
T L[N][N];
T U[N][N];
};
template<typename T>
void printA(T a[][N]) {
for (int i = 0; i < N; i++)
{
for (int j = 0; j < N; j++)
{
printf("%4.1f ", a[i][j]);
}
printf("\n");
}
}
template<typ... | 14.348148 | 60 | 0.426433 | JoeZ-EE |
12094af76782a376e946ef44d3c4736422dc87f8 | 17,883 | cc | C++ | proxy/mgmt2/cli/CLIhelp.cc | ibrezac/trafficserver | 640c4f738b7858f93069f987ea141e0cafae72da | [
"Apache-2.0"
] | 1 | 2017-10-26T12:04:44.000Z | 2017-10-26T12:04:44.000Z | proxy/mgmt2/cli/CLIhelp.cc | pquerna/trafficserver | 43b94d9926bf11573b178f46c01db6e235f1345e | [
"Apache-2.0"
] | null | null | null | proxy/mgmt2/cli/CLIhelp.cc | pquerna/trafficserver | 43b94d9926bf11573b178f46c01db6e235f1345e | [
"Apache-2.0"
] | null | null | null | /** @file
A brief file description
@section license License
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 you und... | 43.938575 | 95 | 0.602639 | ibrezac |
120a42262a21b4a87a19dd4ac80df4dd2cad253c | 4,085 | cc | C++ | toolkit/trace.cc | teenylasers/eggshell | 7d1239eb1b143b11b5ccd1029d9bacdd601c8e4e | [
"ICU",
"OpenSSL"
] | null | null | null | toolkit/trace.cc | teenylasers/eggshell | 7d1239eb1b143b11b5ccd1029d9bacdd601c8e4e | [
"ICU",
"OpenSSL"
] | 127 | 2017-11-01T01:28:28.000Z | 2021-03-18T05:12:21.000Z | toolkit/trace.cc | teenylasers/eggshell | 7d1239eb1b143b11b5ccd1029d9bacdd601c8e4e | [
"ICU",
"OpenSSL"
] | 2 | 2017-10-20T01:16:49.000Z | 2018-11-04T02:36:53.000Z | // Copyright (C) 2014-2020 Russell Smith.
//
// This program is free software: you can redistribute it and/or modify it
// under the terms of the GNU General Public License as published by the Free
// Software Foundation, either version 3 of the License, or (at your option)
// any later version.
//
// This program is d... | 34.618644 | 80 | 0.633537 | teenylasers |
120dd46b65526822ae1afa28846153bfeb0faf26 | 310 | cc | C++ | libsqltoast/src/parser/sequence.cc | cill-airne/sqltoast | 39dc220912f6dc830a031e3f2d1e492fa93c8b18 | [
"Apache-2.0"
] | 13 | 2020-01-17T18:34:17.000Z | 2022-03-05T03:29:09.000Z | libsqltoast/src/parser/sequence.cc | cill-airne/sqltoast | 39dc220912f6dc830a031e3f2d1e492fa93c8b18 | [
"Apache-2.0"
] | 69 | 2018-01-12T21:20:29.000Z | 2018-06-30T13:10:18.000Z | libsqltoast/src/parser/sequence.cc | cill-airne/sqltoast | 39dc220912f6dc830a031e3f2d1e492fa93c8b18 | [
"Apache-2.0"
] | 8 | 2019-07-06T04:01:04.000Z | 2021-10-02T16:27:18.000Z | /*
* Use and distribution licensed under the Apache license version 2.
*
* See the COPYING file in the root project directory for full text.
*/
#include <iostream>
#include <cctype>
#include <sstream>
#include "parser/error.h"
#include "parser/sequence.h"
namespace sqltoast {
} // namespace sqltoast
| 17.222222 | 68 | 0.725806 | cill-airne |
120f351d359bae7868828eb94dad55c031bbb7ce | 127 | hh | C++ | build/ARM/arch/decoder.hh | zhoushuxin/impl_of_HPCA2018 | 594d807fb0c0712bb7766122c4efe3321d012687 | [
"BSD-3-Clause"
] | 5 | 2019-12-12T16:26:09.000Z | 2022-03-17T03:23:33.000Z | build/ARM/arch/decoder.hh | zhoushuxin/impl_of_HPCA2018 | 594d807fb0c0712bb7766122c4efe3321d012687 | [
"BSD-3-Clause"
] | null | null | null | build/ARM/arch/decoder.hh | zhoushuxin/impl_of_HPCA2018 | 594d807fb0c0712bb7766122c4efe3321d012687 | [
"BSD-3-Clause"
] | null | null | null | version https://git-lfs.github.com/spec/v1
oid sha256:dd35bbb2b8802436adaf9ab66704c9ad6bef635858798e62dcb416b5eb14a25f
size 31
| 31.75 | 75 | 0.88189 | zhoushuxin |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.