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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
ba21c0ea464ce484f28172803ba839e9799ed9c6 | 4,261 | cpp | C++ | MainSource/DialogSave.cpp | bareboat-necessities/SdrGlut | 54a35ea4bb0d2f0937e670751e32d1aead4d0619 | [
"MIT"
] | null | null | null | MainSource/DialogSave.cpp | bareboat-necessities/SdrGlut | 54a35ea4bb0d2f0937e670751e32d1aead4d0619 | [
"MIT"
] | null | null | null | MainSource/DialogSave.cpp | bareboat-necessities/SdrGlut | 54a35ea4bb0d2f0937e670751e32d1aead4d0619 | [
"MIT"
] | null | null | null | /*
* DialogSave.cpp
*
*
* Created by Dale Ranta on 10/25/11.
* Copyright 2011 Dale Ranta. All rights reserved.
*
*/
#include "firstFile.h"
#include <cstdio>
#include <cstdlib>
#include "DialogSave.h"
#include "DialogFolder.h"
#include "ulibTypes.h"
#include "SceneList.h"
#include "Utilities.h"
#include... | 17.903361 | 111 | 0.64445 | bareboat-necessities |
ba22014ee4d1d251f4320a3f4b06de5c05d3de17 | 743 | hpp | C++ | header/actors-framework/executor/policy/unprofiled.hpp | 0xBYTESHIFT/actors-framework | e5a9fc86978bd42d2db55c2f6014aed0d0149ed7 | [
"BSD-3-Clause"
] | null | null | null | header/actors-framework/executor/policy/unprofiled.hpp | 0xBYTESHIFT/actors-framework | e5a9fc86978bd42d2db55c2f6014aed0d0149ed7 | [
"BSD-3-Clause"
] | null | null | null | header/actors-framework/executor/policy/unprofiled.hpp | 0xBYTESHIFT/actors-framework | e5a9fc86978bd42d2db55c2f6014aed0d0149ed7 | [
"BSD-3-Clause"
] | null | null | null | #pragma once
#include <actors-framework/executor/executable.hpp>
namespace actors_framework::executor {
class unprofiled {
public:
virtual ~unprofiled() = default;
template<class Worker>
void before_shutdown(Worker*) {}
template<class Worker>
void before_resume(Worke... | 23.967742 | 79 | 0.637954 | 0xBYTESHIFT |
ba229cbb099217b27e0a5219d84d89e7fdd0629e | 3,776 | hpp | C++ | include/wrenbind17/variable.hpp | PossiblyAShrub/wrenbind17 | 4857a3825b7f772bde8aeb1cd8b60716b3d890c0 | [
"MIT"
] | 41 | 2019-08-03T16:38:35.000Z | 2022-03-04T22:30:26.000Z | include/wrenbind17/variable.hpp | PossiblyAShrub/wrenbind17 | 4857a3825b7f772bde8aeb1cd8b60716b3d890c0 | [
"MIT"
] | 8 | 2019-08-05T12:42:06.000Z | 2022-02-16T22:49:25.000Z | include/wrenbind17/variable.hpp | PossiblyAShrub/wrenbind17 | 4857a3825b7f772bde8aeb1cd8b60716b3d890c0 | [
"MIT"
] | 5 | 2020-07-26T19:10:10.000Z | 2021-12-23T05:35:52.000Z | #pragma once
#include "method.hpp"
#include "pop.hpp"
#include "push.hpp"
/**
* @ingroup wrenbind17
*/
namespace wrenbind17 {
/**
* @ingroup wrenbind17
* @brief Holds some Wren variable which can be a class or class instance
* @details You can use this to pass around Wren classes or class instanc... | 37.76 | 112 | 0.62553 | PossiblyAShrub |
ba24e59706fa0a3b6049ff1d2174853d54721916 | 15,179 | cpp | C++ | ChkdraftLib/Windows/DialogWindows/MapSettings/Forces.cpp | heinermann/Chkdraft | e79332d3a7a6b89b028246ff641bcbe266039dca | [
"MIT"
] | 25 | 2015-03-10T21:50:09.000Z | 2020-08-13T08:01:30.000Z | ChkdraftLib/Windows/DialogWindows/MapSettings/Forces.cpp | heinermann/Chkdraft | e79332d3a7a6b89b028246ff641bcbe266039dca | [
"MIT"
] | 45 | 2015-01-05T15:05:37.000Z | 2020-09-25T04:18:26.000Z | ChkdraftLib/Windows/DialogWindows/MapSettings/Forces.cpp | heinermann/Chkdraft | e79332d3a7a6b89b028246ff641bcbe266039dca | [
"MIT"
] | 11 | 2015-08-14T04:19:10.000Z | 2017-04-01T18:57:05.000Z | #include "Forces.h"
#include "../../../Chkdraft.h"
#include <string>
enum_t(Id, u32, {
EDIT_F1NAME = ID_FIRST,
EDIT_F4NAME = (EDIT_F1NAME+3),
LB_F1PLAYERS,
LB_F4PLAYERS = (LB_F1PLAYERS+3),
CHECK_F1ALLIED,
CHECK_F2ALLIED,
CHECK_F3ALLIED,
CHECK_F4ALLIED,
CHECK_F1RANDOM,
CHECK_F2RA... | 43.617816 | 169 | 0.512155 | heinermann |
ba27bb7d3e13e8016ec8a522d8c90488b79d725f | 2,834 | hpp | C++ | third_party/boost/include/boost/atomic/detail/fp_ops_generic.hpp | fmilano/CppMicroServices | b7e79edb558a63e45f6788e4a8b4e787cf956689 | [
"Apache-2.0"
] | 588 | 2015-10-07T15:55:08.000Z | 2022-03-29T00:35:44.000Z | third_party/boost/include/boost/atomic/detail/fp_ops_generic.hpp | fmilano/CppMicroServices | b7e79edb558a63e45f6788e4a8b4e787cf956689 | [
"Apache-2.0"
] | 459 | 2015-10-05T23:29:59.000Z | 2022-03-29T14:13:37.000Z | third_party/boost/include/boost/atomic/detail/fp_ops_generic.hpp | fmilano/CppMicroServices | b7e79edb558a63e45f6788e4a8b4e787cf956689 | [
"Apache-2.0"
] | 218 | 2015-11-04T08:19:48.000Z | 2022-03-24T02:17:08.000Z | /*
* 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)
*
* Copyright (c) 2018 Andrey Semashev
*/
/*!
* \file atomic/detail/fp_ops_generic.hpp
*
* This header contains generic implementation of the floating po... | 33.738095 | 130 | 0.729358 | fmilano |
ba2bea98ce509d07595de4584ec68018eb5a3c19 | 6,680 | cpp | C++ | source/render_vulkan/VulkanTexture.cpp | zjhlogo/blink | 025da3506b34e3f0b02be524c97ae1f39c4c5854 | [
"Apache-2.0"
] | null | null | null | source/render_vulkan/VulkanTexture.cpp | zjhlogo/blink | 025da3506b34e3f0b02be524c97ae1f39c4c5854 | [
"Apache-2.0"
] | null | null | null | source/render_vulkan/VulkanTexture.cpp | zjhlogo/blink | 025da3506b34e3f0b02be524c97ae1f39c4c5854 | [
"Apache-2.0"
] | null | null | null | /*!
* \file VulkanTexture.cpp
*
* \author zjhlogo
* \date 2020/01/19
*
*
*/
#include "VulkanTexture.h"
#include "VulkanBuffer.h"
#include "VulkanCommandBuffer.h"
#include "VulkanCommandPool.h"
#include "VulkanContext.h"
#include "VulkanImage.h"
#include "VulkanLogicalDevice.h"
#include "VulkanMemory.h"
#include ... | 36.906077 | 157 | 0.672455 | zjhlogo |
ba2e1d82b447f75197be43c503ddd8e625484c61 | 399 | hpp | C++ | libs/input/include/sge/input/focus/event/discover_fwd.hpp | cpreh/spacegameengine | 313a1c34160b42a5135f8223ffaa3a31bc075a01 | [
"BSL-1.0"
] | 2 | 2016-01-27T13:18:14.000Z | 2018-05-11T01:11:32.000Z | libs/input/include/sge/input/focus/event/discover_fwd.hpp | cpreh/spacegameengine | 313a1c34160b42a5135f8223ffaa3a31bc075a01 | [
"BSL-1.0"
] | null | null | null | libs/input/include/sge/input/focus/event/discover_fwd.hpp | cpreh/spacegameengine | 313a1c34160b42a5135f8223ffaa3a31bc075a01 | [
"BSL-1.0"
] | 3 | 2018-05-11T01:11:34.000Z | 2021-04-24T19:47:45.000Z | // Copyright Carl Philipp Reh 2006 - 2019.
// 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 SGE_INPUT_FOCUS_EVENT_DISCOVER_FWD_HPP_INCLUDED
#define SGE_INPUT_FOCUS_EVENT_DISCOVER_FWD_... | 23.470588 | 61 | 0.75188 | cpreh |
ba2f24a995bb78b279e001e644c895d135cbe5dc | 1,697 | hpp | C++ | src/Ets2/Save.hpp | TruckerMP/ETS2Sync-Helper-4 | 2a8b9df1d4db1e59635762147725fcec84eaf211 | [
"Apache-2.0"
] | 1 | 2018-12-08T07:31:13.000Z | 2018-12-08T07:31:13.000Z | src/Ets2/Save.hpp | TruckerMP/ETS2Sync-Helper-4 | 2a8b9df1d4db1e59635762147725fcec84eaf211 | [
"Apache-2.0"
] | null | null | null | src/Ets2/Save.hpp | TruckerMP/ETS2Sync-Helper-4 | 2a8b9df1d4db1e59635762147725fcec84eaf211 | [
"Apache-2.0"
] | 2 | 2019-05-10T14:13:53.000Z | 2019-11-05T20:25:12.000Z | #pragma once
#include "Object.hpp"
#include "ObjectList.hpp"
#include <string>
#include <map>
namespace Ets2 {
class Save;
typedef ObjectList<Save> SaveList;
class Save : public Object {
public:
Save(const std::wstring directory);
static const int DLC_SCANDINAVIA = 1 << 0;
static const int DLC_GOINGEAST ... | 28.283333 | 127 | 0.741897 | TruckerMP |
ba3651cd61a10b478b51c85b5ca384a1b73d12a1 | 17,028 | cpp | C++ | src/1.4/dom/domAsset.cpp | maemo5/android-source-browsing.platform--external--collada | 538700ec332c8306a1283f8dfdb016e493905e6f | [
"MIT"
] | null | null | null | src/1.4/dom/domAsset.cpp | maemo5/android-source-browsing.platform--external--collada | 538700ec332c8306a1283f8dfdb016e493905e6f | [
"MIT"
] | null | null | null | src/1.4/dom/domAsset.cpp | maemo5/android-source-browsing.platform--external--collada | 538700ec332c8306a1283f8dfdb016e493905e6f | [
"MIT"
] | null | null | null | /*
* Copyright 2006 Sony Computer Entertainment Inc.
*
* Licensed under the MIT Open Source License, for details please see license.txt or the website
* http://www.opensource.org/licenses/mit-license.php
*
*/
#include <dae.h>
#include <dae/daeDom.h>
#include <dom/domAsset.h>
#include <dae/daeMetaCMPolicy.h>
#in... | 26.156682 | 107 | 0.715821 | maemo5 |
ba3686cdac9c33a43881ea3578523eb1d7747cc6 | 376 | cpp | C++ | Tests/Test_6_Input/scripts/A.cpp | TonyDecvA180XN/Cmple | a49a8ed466ac2ef10fd7006074c160859ca52a15 | [
"MIT"
] | 23 | 2021-09-06T20:28:30.000Z | 2022-01-08T08:56:03.000Z | Tests/Test_6_Input/scripts/A.cpp | TonyDecvA180XN/Cmple | a49a8ed466ac2ef10fd7006074c160859ca52a15 | [
"MIT"
] | null | null | null | Tests/Test_6_Input/scripts/A.cpp | TonyDecvA180XN/Cmple | a49a8ed466ac2ef10fd7006074c160859ca52a15 | [
"MIT"
] | null | null | null | B b[10];
bool flag = false;
Create {
for (int i = 0; i < 10; i++) {
b[i] = create_object_B();
for (int j = 0; j < 10; j++) {
b[i]&x[j] = i * j;
}
}
}
Destroy {
}
Update {
if (!flag) {
flag = true;
for (int i = 0; i < 10; i++) {
destroy_obje... | 11.393939 | 38 | 0.369681 | TonyDecvA180XN |
ba3904a36b4b21b37a220a260b0764ad4abad790 | 397 | cpp | C++ | leetcode/326_Power_of_Three.cpp | longztian/cpp | 59203f41162f40a46badf69093d287250e5cbab6 | [
"MIT"
] | null | null | null | leetcode/326_Power_of_Three.cpp | longztian/cpp | 59203f41162f40a46badf69093d287250e5cbab6 | [
"MIT"
] | null | null | null | leetcode/326_Power_of_Three.cpp | longztian/cpp | 59203f41162f40a46badf69093d287250e5cbab6 | [
"MIT"
] | null | null | null | class Solution {
public:
bool isPowerOfThree(int n) {
/*
if ( n <= 3 ) return n == 3 || n == 1;
while( n > 3 )
{
if( n % 3 ) return false;
n /= 3;
}
return n == 3 || n == 1;
*/
int max = pow(3, static_cast<int>(log(numeric_li... | 19.85 | 85 | 0.38539 | longztian |
ba39dd5e3808f0f2f73153301a3cb835f21ebc56 | 35,424 | cpp | C++ | Code/Engine/RendererDX11/Context/Implementation/ContextDX11.cpp | fereeh/ezEngine | 14e46cb2a1492812888602796db7ddd66e2b7110 | [
"MIT"
] | 1 | 2021-06-23T14:44:02.000Z | 2021-06-23T14:44:02.000Z | Code/Engine/RendererDX11/Context/Implementation/ContextDX11.cpp | fereeh/ezEngine | 14e46cb2a1492812888602796db7ddd66e2b7110 | [
"MIT"
] | null | null | null | Code/Engine/RendererDX11/Context/Implementation/ContextDX11.cpp | fereeh/ezEngine | 14e46cb2a1492812888602796db7ddd66e2b7110 | [
"MIT"
] | null | null | null |
#include <RendererDX11PCH.h>
#include <RendererDX11/Context/ContextDX11.h>
#include <RendererDX11/Device/DeviceDX11.h>
#include <RendererDX11/Resources/BufferDX11.h>
#include <RendererDX11/Resources/FenceDX11.h>
#include <RendererDX11/Resources/QueryDX11.h>
#include <RendererDX11/Resources/RenderTargetViewDX11.h>
#in... | 39.185841 | 140 | 0.744919 | fereeh |
ba3ea210342eeae39acff888a5b1dab668ab1339 | 27,710 | cpp | C++ | cppcache/src/ClientMetadataService.cpp | mivanac/geode-native | 8b161cc9c212aa99f871a309ee97d41355df163f | [
"Apache-2.0"
] | null | null | null | cppcache/src/ClientMetadataService.cpp | mivanac/geode-native | 8b161cc9c212aa99f871a309ee97d41355df163f | [
"Apache-2.0"
] | null | null | null | cppcache/src/ClientMetadataService.cpp | mivanac/geode-native | 8b161cc9c212aa99f871a309ee97d41355df163f | [
"Apache-2.0"
] | null | null | null | /*
* 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 under the Apache License, Version 2.0
* (the "License"); you may ... | 33.792683 | 80 | 0.678672 | mivanac |
ba4148f0fc8532e3c256d8a227c08674ffe0c7ec | 941 | hpp | C++ | q_lib/include/q/detail/count_bits.hpp | ebai101/Q | 92c3dc11714a56eb2c799f168875803109c95549 | [
"MIT"
] | null | null | null | q_lib/include/q/detail/count_bits.hpp | ebai101/Q | 92c3dc11714a56eb2c799f168875803109c95549 | [
"MIT"
] | null | null | null | q_lib/include/q/detail/count_bits.hpp | ebai101/Q | 92c3dc11714a56eb2c799f168875803109c95549 | [
"MIT"
] | null | null | null | /*=============================================================================
Copyright (c) 2014-2019 Joel de Guzman. All rights reserved.
Distributed under the MIT License [ https://opensource.org/licenses/MIT ]
=============================================================================*/
#if !defined(CYCFI... | 22.95122 | 79 | 0.606801 | ebai101 |
ba418ea9d6863658a7ced2bd4dbb7e151d1c3204 | 530 | cpp | C++ | Algorithms/BinarySearch.cpp | Ritvikjain/DataStructures-And-Algorithms | 27f2d48343aeb91c67376ae2fee429ca92dbd353 | [
"MIT"
] | null | null | null | Algorithms/BinarySearch.cpp | Ritvikjain/DataStructures-And-Algorithms | 27f2d48343aeb91c67376ae2fee429ca92dbd353 | [
"MIT"
] | null | null | null | Algorithms/BinarySearch.cpp | Ritvikjain/DataStructures-And-Algorithms | 27f2d48343aeb91c67376ae2fee429ca92dbd353 | [
"MIT"
] | null | null | null | #include<iostream>
using namespace std;
int BinarySearch(int a[],int l,int r,int f)
{
if(l<=r)
{
int mid=(l+r)/2;
if(a[mid]==f)
{
return mid;
}
else if(f<a[mid])
{
r=mid-1;
}
else
{
l=mid+1;
}
BinarySearch(a,l,r,f);
}
else
return -1;
}
int main()
{
int n;
cin>>n;
int arr[n];
for(... | 12.325581 | 43 | 0.543396 | Ritvikjain |
ba42f2478703f7c6f956c8ff4f58972e6e9428d0 | 2,701 | cpp | C++ | GameFramework_ThirdParty/FCollada/FCollada/DLLEntry.cpp | GavWood/tutorials | d5140129b6acd6d61f6feedcd352c12e4ebabd40 | [
"BSD-2-Clause"
] | 8 | 2017-10-26T14:26:55.000Z | 2022-01-07T07:35:39.000Z | GameFramework_ThirdParty/FCollada/FCollada/DLLEntry.cpp | GavWood/tutorials | d5140129b6acd6d61f6feedcd352c12e4ebabd40 | [
"BSD-2-Clause"
] | 1 | 2018-01-27T19:21:07.000Z | 2018-01-31T13:55:09.000Z | GameFramework_ThirdParty/FCollada/FCollada/DLLEntry.cpp | GavWood/Game-Framework | d5140129b6acd6d61f6feedcd352c12e4ebabd40 | [
"BSD-2-Clause"
] | 1 | 2021-07-21T17:37:33.000Z | 2021-07-21T17:37:33.000Z | /*
Copyright (C) 2005-2007 Feeling Software Inc.
Portions of the code are:
Copyright (C) 2005-2007 Sony Computer Entertainment America
MIT License: http://www.opensource.org/licenses/mit-license.php
*/
#include "StdAfx.h"
#ifdef FCOLLADA_DLL
#ifdef WIN32
HINSTANCE hInstance = NULL;
BOOL WINAPI DllMain(HINSTANC... | 23.08547 | 104 | 0.749352 | GavWood |
ba44340a037f2ba5c15fc2f40c851568130f4305 | 2,647 | cpp | C++ | io/PVPFile.cpp | PetaVision/ObsoletePV | e99a42bf4292e944b252e144b5e07442b0715697 | [
"MIT"
] | null | null | null | io/PVPFile.cpp | PetaVision/ObsoletePV | e99a42bf4292e944b252e144b5e07442b0715697 | [
"MIT"
] | null | null | null | io/PVPFile.cpp | PetaVision/ObsoletePV | e99a42bf4292e944b252e144b5e07442b0715697 | [
"MIT"
] | null | null | null | /*
* PVPFile.cpp
*
* Created on: Jun 4, 2014
* Author: pschultz
*/
#include "PVPFile.hpp"
namespace PV {
PVPFile::PVPFile(const char * path, enum PVPFileMode mode, int pvpfileType, InterColComm * icComm) {
initialize_base();
int status = initialize(path, mode, pvpfileType, icComm);
if (status != P... | 26.47 | 108 | 0.613903 | PetaVision |
ba46efca2094eaefde1b2336feac0d68a1dd1b79 | 1,960 | cpp | C++ | src/bind/window/teleport_vdesktop.cpp | dmlerner/win-vind | f5c25bc0e082b9600ef19c02ba4f565bc3b14cfe | [
"MIT"
] | null | null | null | src/bind/window/teleport_vdesktop.cpp | dmlerner/win-vind | f5c25bc0e082b9600ef19c02ba4f565bc3b14cfe | [
"MIT"
] | null | null | null | src/bind/window/teleport_vdesktop.cpp | dmlerner/win-vind | f5c25bc0e082b9600ef19c02ba4f565bc3b14cfe | [
"MIT"
] | null | null | null | #include "teleport_vdesktop.hpp"
#include "core/ntype_logger.hpp"
#include "util/smartcom.hpp"
#include "util/winwrap.hpp"
#include <windows.h>
// #include <shobjidl.h>
namespace vind
{
namespace bind
{
TeleportOverVDesktop::TeleportOverVDesktop()
: BindedFuncVoid("teleport_over_vdesktop")
... | 28.405797 | 115 | 0.526531 | dmlerner |
ba4b355c947aeee48545395d0ceb54748d9e6b7a | 2,491 | cpp | C++ | greedy-algorithms/basic-principles/minimize-cash-flow.cpp | dushimsam/deep-dive-in-algorithms | 0c6a04b3115ba789ab4aca68cce51c9a3c3a075a | [
"MIT"
] | null | null | null | greedy-algorithms/basic-principles/minimize-cash-flow.cpp | dushimsam/deep-dive-in-algorithms | 0c6a04b3115ba789ab4aca68cce51c9a3c3a075a | [
"MIT"
] | null | null | null | greedy-algorithms/basic-principles/minimize-cash-flow.cpp | dushimsam/deep-dive-in-algorithms | 0c6a04b3115ba789ab4aca68cce51c9a3c3a075a | [
"MIT"
] | null | null | null | #include<iostream>
#include<bits/stdc++.h>
using namespace std;
/**
ALGORITHM
1. Settle the net amount for each person. = (amount_received - amount_sent)
2. Get the most_credited_amount:amount.getMax() , and the most_debited_amount: amount.getMin()
3. Find the minimum of the two.
4. Deduct ... | 24.663366 | 116 | 0.531112 | dushimsam |
ba4c6ac107782b7fb75be146bfa2ded7c64afbc7 | 705 | hpp | C++ | EiRas/Framework/EiRas/PlatformDependency/OnMetal/Material/GraphicsResourceMetalAdapter.hpp | MonsterENT/EiRas | b29592da60b1a9085f5a2d8fa4ed01b43660f712 | [
"MIT"
] | 1 | 2019-12-24T10:12:16.000Z | 2019-12-24T10:12:16.000Z | EiRas/Framework/EiRas/PlatformDependency/OnMetal/Material/GraphicsResourceMetalAdapter.hpp | MonsterENT/EiRas | b29592da60b1a9085f5a2d8fa4ed01b43660f712 | [
"MIT"
] | null | null | null | EiRas/Framework/EiRas/PlatformDependency/OnMetal/Material/GraphicsResourceMetalAdapter.hpp | MonsterENT/EiRas | b29592da60b1a9085f5a2d8fa4ed01b43660f712 | [
"MIT"
] | null | null | null | //
// GraphicsResourceMetalAdapter.hpp
// EiRasMetalBuild
//
// Created by MonsterENT on 12/8/19.
// Copyright © 2019 MonsterENT. All rights reserved.
//
#ifndef GraphicsResourceMetalAdapter_hpp
#define GraphicsResourceMetalAdapter_hpp
#include <Global/GlobalDefine.h>
#include <string>
namespace MaterialSys {
v... | 26.111111 | 117 | 0.785816 | MonsterENT |
ba4e5ccd6b3bf8ca2762fc331228de296c7321bc | 746 | hpp | C++ | include/vmp_analyzer.hpp | invlpg/vmpfix | 089cfd941a949877093442fd8f951a84f0794d99 | [
"Unlicense"
] | null | null | null | include/vmp_analyzer.hpp | invlpg/vmpfix | 089cfd941a949877093442fd8f951a84f0794d99 | [
"Unlicense"
] | null | null | null | include/vmp_analyzer.hpp | invlpg/vmpfix | 089cfd941a949877093442fd8f951a84f0794d99 | [
"Unlicense"
] | null | null | null | #pragma once
#include <linuxpe>
#include <vector>
#include "image_desc.hpp"
enum class stub_type_t { jump, call, move };
struct vmp_stub_t {
stub_type_t type;
// Address of resolved api.
//
uint64_t resolved_api;
// Address of original call/jmp/mov instuction.
//
uint64_t ins_address;
// Original ins... | 24.064516 | 63 | 0.655496 | invlpg |
ba4eccb48c450aa6f122ae6efc9385549b17236d | 4,471 | cc | C++ | lib/lf/quad/test/make_quad_rule_tests.cc | Pascal-So/lehrfempp | e2716e914169eec7ee59e822ea3ab303143eacd1 | [
"MIT"
] | null | null | null | lib/lf/quad/test/make_quad_rule_tests.cc | Pascal-So/lehrfempp | e2716e914169eec7ee59e822ea3ab303143eacd1 | [
"MIT"
] | null | null | null | lib/lf/quad/test/make_quad_rule_tests.cc | Pascal-So/lehrfempp | e2716e914169eec7ee59e822ea3ab303143eacd1 | [
"MIT"
] | null | null | null | /**
* @file
* @brief Test the order of quadrature rules by testing it with monomials
* @author Raffael Casagrande
* @date 2018-08-19 06:54:02
* @copyright MIT License
*/
#include <gtest/gtest.h>
#include <lf/quad/quad.h>
#include <boost/math/special_functions/factorials.hpp>
namespace lf::quad::test {
double... | 32.875 | 80 | 0.528517 | Pascal-So |
ba502d34e215d686d665d5940bb650a7a43b3944 | 70,931 | hpp | C++ | include/athena/DNAOp.hpp | encounter/athena | 6adba82abd8b7f48e6eca9f74361d0c605bc9ec8 | [
"MIT"
] | null | null | null | include/athena/DNAOp.hpp | encounter/athena | 6adba82abd8b7f48e6eca9f74361d0c605bc9ec8 | [
"MIT"
] | null | null | null | include/athena/DNAOp.hpp | encounter/athena | 6adba82abd8b7f48e6eca9f74361d0c605bc9ec8 | [
"MIT"
] | null | null | null | #pragma once
#include <cstddef>
#include <cstdint>
#include <string>
#include <type_traits>
#include <vector>
#include "athena/ChecksumsLiterals.hpp"
#include "athena/IStreamReader.hpp"
#include "athena/IStreamWriter.hpp"
#include "athena/YAMLDocReader.hpp"
#include "athena/YAMLDocWriter.hpp"
namespace athena::io {
... | 60.264231 | 120 | 0.508438 | encounter |
ba51165e96451b70f16f2cf07ad03e27bab61119 | 521 | cpp | C++ | 01-Arrays/containsWater.cpp | codewithdev/Amazon-SDE-Test-Series- | 707cf1665f4798551d9e073fac273565b7407e1c | [
"Apache-2.0"
] | 1 | 2020-07-18T11:08:27.000Z | 2020-07-18T11:08:27.000Z | 01-Arrays/containsWater.cpp | codewithdev/Amazon-SDE-Test-Series- | 707cf1665f4798551d9e073fac273565b7407e1c | [
"Apache-2.0"
] | null | null | null | 01-Arrays/containsWater.cpp | codewithdev/Amazon-SDE-Test-Series- | 707cf1665f4798551d9e073fac273565b7407e1c | [
"Apache-2.0"
] | null | null | null | #include<bits/stdc++.h>
using namespace std;
int maxArea(int *arr,int n);
long long maxArea(long long a[], int n){
int i=0;
int j=n-1;
int res=0;
while(i<j){
int curr=0;
if(a[i]<=a[j]){
curr= (j-i)*a[i];
i++;
}
else{
curr= (j-i)*a[j];
j--;
}
if(curr>res){
res= curr;
}
if(i==j){
... | 12.707317 | 40 | 0.50096 | codewithdev |
ba5302c7f4eecfcee55261c95723e940e9000770 | 1,285 | cpp | C++ | rice/VM.cpp | jameskilton/rice | 8f9093d758aa15ded2c112f6d3e3537cc968477d | [
"BSD-2-Clause"
] | 11 | 2015-02-09T12:13:45.000Z | 2019-11-25T01:14:31.000Z | rice/VM.cpp | jameskilton/rice | 8f9093d758aa15ded2c112f6d3e3537cc968477d | [
"BSD-2-Clause"
] | 3 | 2016-12-26T19:31:29.000Z | 2021-04-13T12:32:58.000Z | rice/VM.cpp | jameskilton/rice | 8f9093d758aa15ded2c112f6d3e3537cc968477d | [
"BSD-2-Clause"
] | 2 | 2019-11-25T01:14:35.000Z | 2021-09-29T04:57:36.000Z | #include "VM.hpp"
#include "detail/ruby.hpp"
#include "detail/env.hpp"
#include "detail/ruby_version_code.hpp"
#include <stdexcept>
Rice::VM::
VM(char * app_name)
{
init_stack();
init(1, &app_name);
}
Rice::VM::
VM(int argc, char * argv[])
{
init_stack();
init(argc, argv);
}
Rice::VM::
VM(std::vector<const... | 13.817204 | 68 | 0.668482 | jameskilton |
ba534857fdd40cba6a9abbe782cae5f33ac2cbe0 | 1,181 | hpp | C++ | source/d3d12/d3d12_command_queue_downlevel.hpp | Moroque/reshade | bf1d263780a817130f6547dca0432dfe64c8beda | [
"BSD-3-Clause"
] | 79 | 2021-02-21T08:39:36.000Z | 2022-03-16T21:37:47.000Z | source/d3d12/d3d12_command_queue_downlevel.hpp | kingeric1992/reshade | 22f57c10ea87ee83ceb7a5d0cb737cdfb02dedb2 | [
"BSD-3-Clause"
] | null | null | null | source/d3d12/d3d12_command_queue_downlevel.hpp | kingeric1992/reshade | 22f57c10ea87ee83ceb7a5d0cb737cdfb02dedb2 | [
"BSD-3-Clause"
] | 8 | 2021-04-14T21:37:23.000Z | 2022-03-29T22:20:51.000Z | /*
* Copyright (C) 2014 Patrick Mours. All rights reserved.
* License: https://github.com/crosire/reshade#license
*/
#pragma once
#include <D3D12Downlevel.h>
#include "reshade_api_swapchain.hpp"
struct D3D12CommandQueue;
struct DECLSPEC_UUID("98CF28C0-F383-487E-A61E-3A638FEE29BD") D3D12CommandQueueDownlevel fina... | 36.90625 | 170 | 0.825572 | Moroque |
ba5537d04ccbf4bee80924d591f7bb6b33c3b034 | 24,801 | cpp | C++ | SystemTools/test/Backup_Fixture.cpp | mbeckh/SystemTools | 7cd0784cb948fdedb87f20cdd0b0e9b3c983a740 | [
"Apache-2.0"
] | null | null | null | SystemTools/test/Backup_Fixture.cpp | mbeckh/SystemTools | 7cd0784cb948fdedb87f20cdd0b0e9b3c983a740 | [
"Apache-2.0"
] | 6 | 2020-07-09T22:47:16.000Z | 2020-10-25T12:34:18.000Z | SystemTools/test/Backup_Fixture.cpp | mbeckh/SystemTools | 7cd0784cb948fdedb87f20cdd0b0e9b3c983a740 | [
"Apache-2.0"
] | null | null | null | /*
Copyright 2020 Michael Beckh
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 writing, software
distr... | 36.100437 | 224 | 0.702754 | mbeckh |
ba5f28277cd8144d76207f2f5d39f977fd5c978a | 3,047 | cc | C++ | src/ila-mngr/p_simplify_semantic.cc | LeeOHzzZ/ILAng | 24225294ac133e5d08af5037350ede8f78610c45 | [
"MIT"
] | 21 | 2019-03-18T18:35:35.000Z | 2022-01-27T06:57:47.000Z | src/ila-mngr/p_simplify_semantic.cc | LeeOHzzZ/ILAng | 24225294ac133e5d08af5037350ede8f78610c45 | [
"MIT"
] | 105 | 2019-01-19T07:09:25.000Z | 2021-01-11T20:06:24.000Z | src/ila-mngr/p_simplify_semantic.cc | LeeOHzzZ/ILAng | 24225294ac133e5d08af5037350ede8f78610c45 | [
"MIT"
] | 7 | 2019-01-28T19:48:09.000Z | 2020-11-05T14:42:05.000Z | /// \file
/// Simplify instruction state update functions.
#include <ilang/ila-mngr/pass.h>
#include <ilang/target-smt/z3_expr_adapter.h>
#include <ilang/util/log.h>
namespace ilang {
namespace pass {
class FuncObjEqSubtree {
public:
FuncObjEqSubtree(const ExprPtr& target, const ExprPtr& assump)
: target_(... | 23.620155 | 76 | 0.605514 | LeeOHzzZ |
ba5f3ba12c7716897119188ab4a7ba560e09dd30 | 469 | cpp | C++ | src/examples/012Chapter/12-1-7-dynamic-arrays/dynamic_arrays.cpp | artgonzalez/cpp-primer | 0317e11b5821860d38a236f24c6f7d76638386f3 | [
"MIT"
] | null | null | null | src/examples/012Chapter/12-1-7-dynamic-arrays/dynamic_arrays.cpp | artgonzalez/cpp-primer | 0317e11b5821860d38a236f24c6f7d76638386f3 | [
"MIT"
] | null | null | null | src/examples/012Chapter/12-1-7-dynamic-arrays/dynamic_arrays.cpp | artgonzalez/cpp-primer | 0317e11b5821860d38a236f24c6f7d76638386f3 | [
"MIT"
] | null | null | null | #include "dynamic_arrays.h"
using std::cout; using std::shared_ptr;
int* get_dynamic_array(const std::size_t cnt)
{
cout<<"Create\n";
return new int[cnt]();
}
void delete_dynamic_array(int * array)
{
cout<<"\ndelete\n";
delete[] array;
}
void use_dynamic_array()
{
const size_t cnt = 25;
shar... | 16.75 | 74 | 0.616205 | artgonzalez |
ba5f8a218f0bccd99e4c1e7bd2c756dc159d345d | 254 | cpp | C++ | cssmh/hacks/Bunnyhop.cpp | rdbo/cssmh-external | f9c4ba3b735c691cf185670e2f0794643ce0284a | [
"MIT"
] | 1 | 2022-01-06T01:58:18.000Z | 2022-01-06T01:58:18.000Z | cssmh/hacks/Bunnyhop.cpp | rdbo/cssmh-external | f9c4ba3b735c691cf185670e2f0794643ce0284a | [
"MIT"
] | null | null | null | cssmh/hacks/Bunnyhop.cpp | rdbo/cssmh-external | f9c4ba3b735c691cf185670e2f0794643ce0284a | [
"MIT"
] | 1 | 2022-01-09T11:28:50.000Z | 2022-01-09T11:28:50.000Z | #include <base.hpp>
void Hack::Bunnyhop()
{
if (CSSMH::EnableBunnyhop && CSSMH::KeyBhop.GetKeyState() == KeyInfo::PRESSED && CSSMH::LocalPlayer.flags & FL_ONGROUND)
Memory::WriteMemory<int32_t>(CSSMH::GameOverlay->target_pid, CSSMH::InJumpBtn, 6);
}
| 31.75 | 121 | 0.728346 | rdbo |
ba61ade0e01c16df3100554d68ef1543c1727e85 | 2,505 | cpp | C++ | Model Loader/Mesh.cpp | jreverett/Model-Loader | 215d6a2c60e1c933b7fa7527d1aa07bf2c84e01d | [
"MIT"
] | null | null | null | Model Loader/Mesh.cpp | jreverett/Model-Loader | 215d6a2c60e1c933b7fa7527d1aa07bf2c84e01d | [
"MIT"
] | null | null | null | Model Loader/Mesh.cpp | jreverett/Model-Loader | 215d6a2c60e1c933b7fa7527d1aa07bf2c84e01d | [
"MIT"
] | null | null | null | #include "Mesh.h"
Mesh::Mesh() {
}
void Mesh::draw(Shader shader) {
unsigned int diffueNr = 1;
unsigned int specularNr = 1;
unsigned int normalNr = 1;
unsigned int heightNr = 1;
shader.use();
for (unsigned int i = 0; i < textures.size(); i++) {
glActiveTexture(GL_TEXTURE0 + i);
// get texture number (d... | 26.935484 | 114 | 0.707385 | jreverett |
ba624c7320ac8a71c23184392b9bb977a0b782f5 | 1,043 | hpp | C++ | stan/math/fwd/mat/functor/jacobian.hpp | jrmie/math | 2850ec262181075a5843968e805dc9ad1654e069 | [
"BSD-3-Clause"
] | null | null | null | stan/math/fwd/mat/functor/jacobian.hpp | jrmie/math | 2850ec262181075a5843968e805dc9ad1654e069 | [
"BSD-3-Clause"
] | null | null | null | stan/math/fwd/mat/functor/jacobian.hpp | jrmie/math | 2850ec262181075a5843968e805dc9ad1654e069 | [
"BSD-3-Clause"
] | null | null | null | #ifndef STAN_MATH_FWD_MAT_FUNCTOR_JACOBIAN_HPP
#define STAN_MATH_FWD_MAT_FUNCTOR_JACOBIAN_HPP
#include <stan/math/fwd/core.hpp>
#include <stan/math/prim/mat/fun/Eigen.hpp>
#include <vector>
namespace stan {
namespace math {
template <typename T, typename F>
void jacobian(const F& f, const Eigen::Matrix<T, Eigen::Dyn... | 28.189189 | 71 | 0.588686 | jrmie |
ba63d5af8d663488f681c564a5397a8c4cd44dfc | 6,777 | hpp | C++ | include/GlobalNamespace/StandardScoreSyncStateDeltaNetSerializable.hpp | darknight1050/BeatSaber-Quest-Codegen | a6eeecc3f0e8f6079630f9a9a72b3121ac7b2032 | [
"Unlicense"
] | null | null | null | include/GlobalNamespace/StandardScoreSyncStateDeltaNetSerializable.hpp | darknight1050/BeatSaber-Quest-Codegen | a6eeecc3f0e8f6079630f9a9a72b3121ac7b2032 | [
"Unlicense"
] | null | null | null | include/GlobalNamespace/StandardScoreSyncStateDeltaNetSerializable.hpp | darknight1050/BeatSaber-Quest-Codegen | a6eeecc3f0e8f6079630f9a9a72b3121ac7b2032 | [
"Unlicense"
] | null | null | null | // Autogenerated from CppHeaderCreator
// Created by Sc2ad
// =========================================================================
#pragma once
// Begin includes
#include "extern/beatsaber-hook/shared/utils/typedefs.h"
// Including type: LiteNetLib.Utils.INetSerializable
#include "LiteNetLib/Utils/INetSeria... | 52.130769 | 262 | 0.75048 | darknight1050 |
ba63d77a21683a0ee6bf5112e72b18c01dc1195f | 4,158 | cpp | C++ | cpp/core/vec.cpp | equivalence1/ml_lib | 92d75ab73bc2d77ba8fa66022c803c06cad66f21 | [
"Apache-2.0"
] | 1 | 2019-02-15T09:40:43.000Z | 2019-02-15T09:40:43.000Z | cpp/core/vec.cpp | equivalence1/ml_lib | 92d75ab73bc2d77ba8fa66022c803c06cad66f21 | [
"Apache-2.0"
] | null | null | null | cpp/core/vec.cpp | equivalence1/ml_lib | 92d75ab73bc2d77ba8fa66022c803c06cad66f21 | [
"Apache-2.0"
] | 2 | 2018-09-29T10:17:26.000Z | 2018-10-03T20:33:31.000Z | #include "vec.h"
#include "vec_factory.h"
#include "torch_helpers.h"
#include "matrix.h"
void Vec::set(int64_t index, double value) {
data().accessor<float, 1>()[index] = value;
}
double Vec::get(int64_t index) const {
return data().accessor<float, 1>()[index];
}
int64_t Vec::dim() const {
return TorchH... | 24.458824 | 103 | 0.635642 | equivalence1 |
ba641c95152fa5814889739ed6ab3c2df08195f5 | 3,728 | cpp | C++ | lib/Runtime/Language/SimdUint16x8Operation.cpp | satheeshravi/ChakraCore | 3bf47ff12bf80ab06fb7ea6925ec7579985ac1f5 | [
"MIT"
] | null | null | null | lib/Runtime/Language/SimdUint16x8Operation.cpp | satheeshravi/ChakraCore | 3bf47ff12bf80ab06fb7ea6925ec7579985ac1f5 | [
"MIT"
] | null | null | null | lib/Runtime/Language/SimdUint16x8Operation.cpp | satheeshravi/ChakraCore | 3bf47ff12bf80ab06fb7ea6925ec7579985ac1f5 | [
"MIT"
] | null | null | null | //-------------------------------------------------------------------------------------------------------
// Copyright (C) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE.txt file in the project root for full license information.
//---------------------------------------------------------... | 28.242424 | 135 | 0.525751 | satheeshravi |
ba6598cb981f5fc18797eb5dc3d25d6a33be6f38 | 1,509 | hpp | C++ | pythran/pythonic/numpy/bincount.hpp | Gladiator1977/pythran | 5a57c8cb2de71f974d60615be87d030eb61132ac | [
"BSD-3-Clause"
] | 1 | 2018-03-24T00:33:03.000Z | 2018-03-24T00:33:03.000Z | pythran/pythonic/numpy/bincount.hpp | Acidburn0zzz/pythran | 6dae026b60118d3b9ddd83775d3c57768a0865e5 | [
"BSD-3-Clause"
] | null | null | null | pythran/pythonic/numpy/bincount.hpp | Acidburn0zzz/pythran | 6dae026b60118d3b9ddd83775d3c57768a0865e5 | [
"BSD-3-Clause"
] | null | null | null | #ifndef PYTHONIC_NUMPY_BINCOUNT_HPP
#define PYTHONIC_NUMPY_BINCOUNT_HPP
#include "pythonic/include/numpy/bincount.hpp"
#include "pythonic/numpy/max.hpp"
PYTHONIC_NS_BEGIN
namespace numpy
{
template <class T, size_t N>
types::ndarray<long, 1> bincount(types::ndarray<T, N> const &expr,
... | 29.019231 | 76 | 0.595096 | Gladiator1977 |
ba679429b018b631f4df61aa6f74a0f16e8ca04c | 836 | hpp | C++ | include/tinycoro/io/EpollAsyncAutoResetEvent.hpp | asmei1/tinycoro | 5b6d3dc9412c8c9e369f652707894a586a8bd9a8 | [
"MIT"
] | 7 | 2020-12-21T02:16:33.000Z | 2022-03-18T23:57:05.000Z | include/tinycoro/io/EpollAsyncAutoResetEvent.hpp | asmei1/tinycoro | 5b6d3dc9412c8c9e369f652707894a586a8bd9a8 | [
"MIT"
] | null | null | null | include/tinycoro/io/EpollAsyncAutoResetEvent.hpp | asmei1/tinycoro | 5b6d3dc9412c8c9e369f652707894a586a8bd9a8 | [
"MIT"
] | null | null | null | //
// Created by Asmei on 12/2/2020.
//
#ifndef TINYCORO_IOEVENT_H
#define TINYCORO_IOEVENT_H
#include <coroutine>
#include <utility>
#include "IOOperation.hpp"
namespace tinycoro::io
{
/*
* A simple class with set and auto clear mechanism, that allow to wait one thread
* until an event is signalled by... | 22.594595 | 86 | 0.674641 | asmei1 |
ba6a4c86329910c6de143df224b6c5af5f979ac1 | 491 | cpp | C++ | DaedalicTestAutomationPlugin/Source/DaedalicTestAutomationPlugin/Private/DaeTestResult.cpp | DeadMonkeyEntertaiment/ue4-test-automation | d5ba1e22c52bdabdd331766f9272dfc1d4b20962 | [
"MIT"
] | 617 | 2017-04-16T13:34:20.000Z | 2022-03-31T23:43:47.000Z | DaedalicTestAutomationPlugin/Source/DaedalicTestAutomationPlugin/Private/DaeTestResult.cpp | DeadMonkeyEntertaiment/ue4-test-automation | d5ba1e22c52bdabdd331766f9272dfc1d4b20962 | [
"MIT"
] | 178 | 2017-04-05T19:30:21.000Z | 2022-03-11T05:44:03.000Z | DaedalicTestAutomationPlugin/Source/DaedalicTestAutomationPlugin/Private/DaeTestResult.cpp | DeadMonkeyEntertaiment/ue4-test-automation | d5ba1e22c52bdabdd331766f9272dfc1d4b20962 | [
"MIT"
] | 147 | 2017-06-27T08:35:09.000Z | 2022-03-28T03:06:17.000Z | #include "DaeTestResult.h"
FDaeTestResult::FDaeTestResult()
: FDaeTestResult(FString(), 0.0f)
{
}
FDaeTestResult::FDaeTestResult(FString InTestName, float InTimeSeconds)
: TestName(InTestName)
, TimeSeconds(InTimeSeconds)
{
}
bool FDaeTestResult::WasSuccessful() const
{
return !HasFailed() && !WasSki... | 17.535714 | 71 | 0.720978 | DeadMonkeyEntertaiment |
ba6cf992572b43add1960a145e19ec3d8cf3cdff | 41,588 | cpp | C++ | DESERT_Framework/DESERT/data_link/uwsr/uwsr.cpp | zhiweita/desert | 2c40c5a6f5c4dd3f6c1108162056d96f21fc151f | [
"BSD-3-Clause"
] | 7 | 2020-04-14T19:38:20.000Z | 2022-01-14T08:06:10.000Z | DESERT_Framework/DESERT/data_link/uwsr/uwsr.cpp | zhiweita/desert | 2c40c5a6f5c4dd3f6c1108162056d96f21fc151f | [
"BSD-3-Clause"
] | 1 | 2021-07-10T04:05:04.000Z | 2021-07-12T13:57:24.000Z | DESERT_Framework/DESERT/data_link/uwsr/uwsr.cpp | zhiweita/desert | 2c40c5a6f5c4dd3f6c1108162056d96f21fc151f | [
"BSD-3-Clause"
] | 5 | 2020-05-07T13:07:26.000Z | 2022-01-14T03:01:09.000Z | //
// Copyright (c) 2017 Regents of the SIGNET lab, University of Padova.
// 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 of source code must retain the above copyrigh... | 25.751084 | 78 | 0.665745 | zhiweita |
ba6e98b0643febbef65ac30b6dcbe7b173e91508 | 3,657 | cpp | C++ | jerome/xml/record_writer.cpp | leuski-ict/jerome | 6141a21c50903e98a04c79899164e7d0e82fe1c2 | [
"Apache-2.0"
] | 3 | 2018-06-11T10:48:54.000Z | 2021-05-30T07:10:15.000Z | jerome/xml/record_writer.cpp | leuski-ict/jerome | 6141a21c50903e98a04c79899164e7d0e82fe1c2 | [
"Apache-2.0"
] | null | null | null | jerome/xml/record_writer.cpp | leuski-ict/jerome | 6141a21c50903e98a04c79899164e7d0e82fe1c2 | [
"Apache-2.0"
] | null | null | null | //
// record_writer.cpp
//
// Created by Anton Leuski on 8/31/15.
// Copyright (c) 2015 Anton Leuski & ICT/USC. All rights reserved.
//
// This file is part of Jerome.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You ... | 30.991525 | 94 | 0.591742 | leuski-ict |
ba6efdb490e36cace6d88e9e5a892e15d3a83340 | 502 | cpp | C++ | UnitTest/Windows/UnitTest_CommonFunc/main.cpp | LalaChen/SDEngine | ae5931308ae8b02f4237a1e26ef8448f773f9b7a | [
"MIT"
] | null | null | null | UnitTest/Windows/UnitTest_CommonFunc/main.cpp | LalaChen/SDEngine | ae5931308ae8b02f4237a1e26ef8448f773f9b7a | [
"MIT"
] | null | null | null | UnitTest/Windows/UnitTest_CommonFunc/main.cpp | LalaChen/SDEngine | ae5931308ae8b02f4237a1e26ef8448f773f9b7a | [
"MIT"
] | null | null | null | #include <iostream>
#include "SDEngineCommonFunction.h"
using namespace SDE::Basic;
int main(int argc, char **argv)
{
std::cout << "SDEngine Common Func Unit Test" << std::endl;
//1. String Format.
{
int six = 666666;
std::string result;
result = StringFormat("Test six = %d and ... | 25.1 | 136 | 0.577689 | LalaChen |
ba77ba2419c1db41e35c9cbf061c16a9a8c8c053 | 2,864 | cpp | C++ | testfizz.cpp | atishbits/101 | 4b4a8e56d82fe2706f065ded7877deebe8f6164f | [
"MIT"
] | null | null | null | testfizz.cpp | atishbits/101 | 4b4a8e56d82fe2706f065ded7877deebe8f6164f | [
"MIT"
] | null | null | null | testfizz.cpp | atishbits/101 | 4b4a8e56d82fe2706f065ded7877deebe8f6164f | [
"MIT"
] | null | null | null | #include <iostream>
#include <vector>
using namespace std;
void patternStartEnd(const vector<string>& input, int i=3) {
bool done = false;
bool anymatch = false;
int pos = 0;
string curr;
int start;
while (!done) {
if(i%3 == 0 && i%5 == 0) {
curr = "fizzbuzz";
//TODO: the if/else b... | 30.468085 | 78 | 0.350908 | atishbits |
ba78d57702ca4a332cb585f7b24da31f39596dbf | 6,438 | cpp | C++ | Unix/samples/Providers/PersonProviderCXX/TestEmbeddedOperations_Class_Provider.cpp | Beguiled/omi | 1c824681ee86f32314f430db972e5d3938f10fd4 | [
"MIT"
] | 165 | 2016-08-18T22:06:39.000Z | 2019-05-05T11:09:37.000Z | Unix/samples/Providers/PersonProviderCXX/TestEmbeddedOperations_Class_Provider.cpp | snchennapragada/omi | 4fa565207d3445d1f44bfc7b890f9ea5ea7b41d0 | [
"MIT"
] | 409 | 2016-08-18T20:52:56.000Z | 2019-05-06T10:03:11.000Z | Unix/samples/Providers/PersonProviderCXX/TestEmbeddedOperations_Class_Provider.cpp | snchennapragada/omi | 4fa565207d3445d1f44bfc7b890f9ea5ea7b41d0 | [
"MIT"
] | 72 | 2016-08-23T02:30:08.000Z | 2019-04-30T22:57:03.000Z | /*
**==============================================================================
**
** Copyright (c) Microsoft Corporation. All rights reserved. See file LICENSE
** for license information.
**
**==============================================================================
*/
/* @migen@ */
#include <MI.h>
#include ... | 27.279661 | 134 | 0.691364 | Beguiled |
ba78eeb6d4b80fe8390bc7c96e8d87a9a5e2e773 | 2,812 | cpp | C++ | SysLib/Network/Files/Link_Detail_File.cpp | kravitz/transims4 | ea0848bf3dc71440d54724bb3ecba3947b982215 | [
"NASA-1.3"
] | 2 | 2018-04-27T11:07:02.000Z | 2020-04-24T06:53:21.000Z | SysLib/Network/Files/Link_Detail_File.cpp | idkravitz/transims4 | ea0848bf3dc71440d54724bb3ecba3947b982215 | [
"NASA-1.3"
] | null | null | null | SysLib/Network/Files/Link_Detail_File.cpp | idkravitz/transims4 | ea0848bf3dc71440d54724bb3ecba3947b982215 | [
"NASA-1.3"
] | null | null | null | //*********************************************************
// Link_Detail_File.cpp - Link Detail File Input/Output
//*********************************************************
#include "Link_Detail_File.hpp"
//-----------------------------------------------------------
// Link_Detail_File constructors
//------------... | 28.989691 | 111 | 0.515292 | kravitz |
ba7a4ee459664c9059fd4c216a900a73b6bc47fe | 413,266 | cpp | C++ | sourceCode/dotNet4.6/vb/language/compiler/binder/bindable.cpp | csoap/csoap.github.io | 2a8db44eb63425deff147652b65c5912f065334e | [
"Apache-2.0"
] | 5 | 2017-03-03T02:13:16.000Z | 2021-08-18T09:59:56.000Z | sourceCode/dotNet4.6/vb/language/compiler/binder/bindable.cpp | 295007712/295007712.github.io | 25241dbf774427545c3ece6534be6667848a6faf | [
"Apache-2.0"
] | null | null | null | sourceCode/dotNet4.6/vb/language/compiler/binder/bindable.cpp | 295007712/295007712.github.io | 25241dbf774427545c3ece6534be6667848a6faf | [
"Apache-2.0"
] | 4 | 2016-11-15T05:20:12.000Z | 2021-11-13T16:32:11.000Z | //-------------------------------------------------------------------------------------------------
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
// Does the work to move a module from Declared state to Bindable state.
//
//------------------------------------------------------------------------... | 35.654042 | 298 | 0.601083 | csoap |
ba7dfb91ad45e3637a3bbe86c2ca62a787ec2037 | 1,147 | cpp | C++ | app/src/main/jni/game/render/font_android.cpp | zork/tictactoe | 0baa883e12c43e8d9bde2b54ec3265f5d65d444d | [
"MIT"
] | 6 | 2018-05-08T22:28:29.000Z | 2020-08-13T17:06:00.000Z | app/src/main/jni/game/render/font_android.cpp | zork/tictactoe | 0baa883e12c43e8d9bde2b54ec3265f5d65d444d | [
"MIT"
] | null | null | null | app/src/main/jni/game/render/font_android.cpp | zork/tictactoe | 0baa883e12c43e8d9bde2b54ec3265f5d65d444d | [
"MIT"
] | 1 | 2020-08-13T17:06:38.000Z | 2020-08-13T17:06:38.000Z | ////
// font_android.cpp
////
#include "game/render/font.h"
#include "base/image/bitmap.h"
#include "platform/android/android.h"
namespace font {
void DrawText(Bitmap* image,
const std::string& text,
int font_size,
float color[],
ui::View::HAlign halign,
... | 27.97561 | 78 | 0.655623 | zork |
ba7efd6734b747a9b4b67cea18dad0bf5bbb324d | 18,120 | cxx | C++ | weighters/weight_fsi_cai.cxx | MinervaExpt/MAT-MINERvA | a142702563260d8f21c1dbd7b739364823ad38e7 | [
"MIT"
] | null | null | null | weighters/weight_fsi_cai.cxx | MinervaExpt/MAT-MINERvA | a142702563260d8f21c1dbd7b739364823ad38e7 | [
"MIT"
] | 4 | 2021-08-31T17:17:12.000Z | 2021-10-29T19:41:39.000Z | weighters/weight_fsi_cai.cxx | MinervaExpt/MAT-MINERvA | a142702563260d8f21c1dbd7b739364823ad38e7 | [
"MIT"
] | null | null | null |
#include "weighters/weight_fsi_cai.h"
using namespace PlotUtils;
void weight_fsi_cai::read(const TString f)
//Read in the params doubles from a file
//argument: valid filename
{
if(f!="")
{
fFSIWeight = TFile::Open(f,"READONLY");
if (fFSIWeight){
hElaFSIWeight = (TH1D*) fFSIWeight->Get("weight_... | 39.220779 | 319 | 0.611038 | MinervaExpt |
ba83f6018e7b70015dd43c5e9df4ad06d27180cc | 285 | hpp | C++ | src/arch/arm/handlers.hpp | qookei/tart | e039f9c493560f306904793ac9143810aabbf68e | [
"Zlib"
] | 11 | 2020-06-20T19:05:08.000Z | 2021-04-07T17:49:18.000Z | src/arch/arm/handlers.hpp | qookei/tart | e039f9c493560f306904793ac9143810aabbf68e | [
"Zlib"
] | null | null | null | src/arch/arm/handlers.hpp | qookei/tart | e039f9c493560f306904793ac9143810aabbf68e | [
"Zlib"
] | null | null | null | #pragma once
#include <stddef.h>
namespace tart {
void nmi(void *ctx);
void hard_fault(void *ctx);
void mm_fault(void *ctx);
void bus_fault(void *ctx);
void usage_fault(void *ctx);
void sv_call(void *ctx);
void pend_sv_call(void *ctx);
void systick(void *ctx);
} // namespace tart
| 16.764706 | 29 | 0.719298 | qookei |
ba8ab5c45c5e09f857e806ed423260c2c21c6318 | 6,761 | cpp | C++ | src/ossim/support_data/ossimQuickbirdRpcHeader.cpp | rkanavath/ossim18 | d2e8204d11559a6a868755a490f2ec155407fa96 | [
"MIT"
] | null | null | null | src/ossim/support_data/ossimQuickbirdRpcHeader.cpp | rkanavath/ossim18 | d2e8204d11559a6a868755a490f2ec155407fa96 | [
"MIT"
] | null | null | null | src/ossim/support_data/ossimQuickbirdRpcHeader.cpp | rkanavath/ossim18 | d2e8204d11559a6a868755a490f2ec155407fa96 | [
"MIT"
] | 1 | 2019-09-25T00:43:35.000Z | 2019-09-25T00:43:35.000Z | //----------------------------------------------------------------------------
//
// License: MIT
//
// See LICENSE.txt file in the top level directory for more details.
//
//----------------------------------------------------------------------------
// $Id: ossimQuickbirdRpcHeader.cpp 23664 2015-12-14 14:17:27Z dbur... | 27.262097 | 78 | 0.539861 | rkanavath |
ba8b042eec65c229f27f5fd441462370f5c51003 | 10,157 | cpp | C++ | projects/abuild/cache/test/tokens_test.cpp | agnesoft/adev-alt | 3df0329939e3048bbf5db252efb5f74de9c0f061 | [
"Apache-2.0"
] | null | null | null | projects/abuild/cache/test/tokens_test.cpp | agnesoft/adev-alt | 3df0329939e3048bbf5db252efb5f74de9c0f061 | [
"Apache-2.0"
] | null | null | null | projects/abuild/cache/test/tokens_test.cpp | agnesoft/adev-alt | 3df0329939e3048bbf5db252efb5f74de9c0f061 | [
"Apache-2.0"
] | null | null | null | import atest;
import abuild.cache;
import abuild.test_utilities;
using ::atest::assert_;
using ::atest::expect;
using ::atest::suite;
using ::atest::test;
static const auto S = suite("Tokens", [] { // NOLINT(cert-err58-cpp)
test("Token - IfToken", [] {
const ::abuild::TestFile testFile{"./abuild.cache_tes... | 38.473485 | 131 | 0.584031 | agnesoft |
ba8b111c79d9f0b99e0ee093dfc07cef63f3d493 | 163 | cpp | C++ | CodeFights/leapYear.cpp | AREA44/competitive-programming | 00cede478685bf337193bce4804f13c4ff170903 | [
"MIT"
] | null | null | null | CodeFights/leapYear.cpp | AREA44/competitive-programming | 00cede478685bf337193bce4804f13c4ff170903 | [
"MIT"
] | null | null | null | CodeFights/leapYear.cpp | AREA44/competitive-programming | 00cede478685bf337193bce4804f13c4ff170903 | [
"MIT"
] | null | null | null | // Determine if a given year is leap or not.
bool leapYear(int year) {
if ( year%4==0 && year%100!=0 || year%400==0 ) {
return true;
}
return false;
}
| 16.3 | 50 | 0.588957 | AREA44 |
ba8b5f3beba54b180a0fb01e68eda13eb958243a | 3,156 | hpp | C++ | include/termox/widget/widgets/detail/textbox_base.hpp | a-n-t-h-o-n-y/MCurses | c9184a0fefbdc4eb9a044f815ee2270e6b8f202c | [
"MIT"
] | 284 | 2017-11-07T10:06:48.000Z | 2021-01-12T15:32:51.000Z | include/termox/widget/widgets/detail/textbox_base.hpp | a-n-t-h-o-n-y/MCurses | c9184a0fefbdc4eb9a044f815ee2270e6b8f202c | [
"MIT"
] | 38 | 2018-01-14T12:34:54.000Z | 2020-09-26T15:32:43.000Z | include/termox/widget/widgets/detail/textbox_base.hpp | a-n-t-h-o-n-y/MCurses | c9184a0fefbdc4eb9a044f815ee2270e6b8f202c | [
"MIT"
] | 31 | 2017-11-30T11:22:21.000Z | 2020-11-03T05:27:47.000Z | #ifndef TERMOX_WIDGET_WIDGETS_DETAIL_TEXTBOX_BASE_HPP
#define TERMOX_WIDGET_WIDGETS_DETAIL_TEXTBOX_BASE_HPP
#include <cstddef>
#include <signals_light/signal.hpp>
#include <termox/painter/glyph_string.hpp>
#include <termox/widget/point.hpp>
#include <termox/widget/widgets/text_view.hpp>
namespace ox::detail {
/// I... | 35.863636 | 78 | 0.683777 | a-n-t-h-o-n-y |
ba8c2ebe7c5f453879acf5d7480d0d5bff5fe401 | 5,397 | hpp | C++ | openstudiocore/src/model/ZoneHVACUnitHeater.hpp | hongyuanjia/OpenStudio | 6cc52f1b66c069cf13f2b6ca2a0cc3c137c37cf0 | [
"MIT"
] | 1 | 2019-04-21T15:38:54.000Z | 2019-04-21T15:38:54.000Z | openstudiocore/src/model/ZoneHVACUnitHeater.hpp | hongyuanjia/OpenStudio | 6cc52f1b66c069cf13f2b6ca2a0cc3c137c37cf0 | [
"MIT"
] | null | null | null | openstudiocore/src/model/ZoneHVACUnitHeater.hpp | hongyuanjia/OpenStudio | 6cc52f1b66c069cf13f2b6ca2a0cc3c137c37cf0 | [
"MIT"
] | 1 | 2019-07-18T06:52:29.000Z | 2019-07-18T06:52:29.000Z | /***********************************************************************************************************************
* OpenStudio(R), Copyright (c) 2008-2018, Alliance for Sustainable Energy, LLC. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without modification, are perm... | 33.521739 | 127 | 0.743191 | hongyuanjia |
ba92c975def3746fdae34b3de708f2ecfa990d60 | 2,361 | cpp | C++ | src/pbrt/gpu/samples.cpp | meistdan/pbrt-v4 | 376c58ee77be6cc38790671b18bba239a68a5fe8 | [
"Apache-2.0"
] | 4 | 2020-08-24T19:35:00.000Z | 2020-10-28T02:16:21.000Z | src/pbrt/gpu/samples.cpp | meistdan/pbrt-v4 | 376c58ee77be6cc38790671b18bba239a68a5fe8 | [
"Apache-2.0"
] | null | null | null | src/pbrt/gpu/samples.cpp | meistdan/pbrt-v4 | 376c58ee77be6cc38790671b18bba239a68a5fe8 | [
"Apache-2.0"
] | 1 | 2020-08-30T14:23:07.000Z | 2020-08-30T14:23:07.000Z | // pbrt is Copyright(c) 1998-2020 Matt Pharr, Wenzel Jakob, and Greg Humphreys.
// The pbrt source code is licensed under the Apache License, Version 2.0.
// SPDX: Apache-2.0
#include <pbrt/pbrt.h>
#include <pbrt/gpu/pathintegrator.h>
#include <pbrt/samplers.h>
#include <type_traits>
namespace pbrt {
template <typ... | 36.323077 | 80 | 0.660737 | meistdan |
ba935dd94be3bfb1e1830f1c93e205c59439be71 | 10,088 | cpp | C++ | src/TriangMesh.cpp | NikitaMatckevich/SWE_FVM | bffdcea6292a263514b97fa4f6f93679a7452714 | [
"MIT"
] | null | null | null | src/TriangMesh.cpp | NikitaMatckevich/SWE_FVM | bffdcea6292a263514b97fa4f6f93679a7452714 | [
"MIT"
] | null | null | null | src/TriangMesh.cpp | NikitaMatckevich/SWE_FVM | bffdcea6292a263514b97fa4f6f93679a7452714 | [
"MIT"
] | null | null | null | #include <TriangMesh.h>
#include <iostream>
#include <fstream>
#include <functional>
#include <string>
using namespace std;
struct EdgeHash {
std::size_t operator()(const EdgeTag& e) const {
return std::hash<Idx>()(e[0]) ^ (std::hash<Idx>()(e[1]) << 1);
}
};
struct EdgeEqual {
bool operator()(const EdgeTag&... | 30.477341 | 92 | 0.598632 | NikitaMatckevich |
ba967e44ca2effe2e766a08b7240a470b224d4dc | 2,561 | cpp | C++ | lesson04/src/disjoint_set.cpp | Usdjy/CPPExercises2021 | a4ab46a8726f57c08171e1236566d48779332bbf | [
"MIT"
] | 1 | 2021-12-14T19:28:32.000Z | 2021-12-14T19:28:32.000Z | lesson04/src/disjoint_set.cpp | Usdjy/CPPExercises2021 | a4ab46a8726f57c08171e1236566d48779332bbf | [
"MIT"
] | null | null | null | lesson04/src/disjoint_set.cpp | Usdjy/CPPExercises2021 | a4ab46a8726f57c08171e1236566d48779332bbf | [
"MIT"
] | null | null | null | #include "disjoint_set.h"
#define ROOT -1 // объявили макрос (считайте константу) равный минус единице - чтобы не было "волшебной переменной", а была именованная константа "корень дерева"
using namespace std;
DisjointSet::DisjointSet(int size)
{
parent = std::vector<int>(size);
ranks = std::vector<int>(size);... | 46.563636 | 188 | 0.717688 | Usdjy |
ba9699bbe1b1102ad971f284ca2343ee5db0175f | 2,834 | cxx | C++ | src/python/lib/graph/agglo/merge_rules.cxx | DerThorsten/n3p | c4bd4cd90f20e68f0dbd62587aba28e4752a0ac1 | [
"MIT"
] | 38 | 2016-06-29T07:42:50.000Z | 2021-12-09T09:25:25.000Z | src/python/lib/graph/agglo/merge_rules.cxx | tbullmann/nifty | 00119fd4753817b931272d6d3120b6ebd334882a | [
"MIT"
] | 62 | 2016-07-27T16:07:53.000Z | 2022-03-30T17:24:36.000Z | src/python/lib/graph/agglo/merge_rules.cxx | tbullmann/nifty | 00119fd4753817b931272d6d3120b6ebd334882a | [
"MIT"
] | 20 | 2016-01-25T21:21:52.000Z | 2021-12-09T09:25:16.000Z | #include <pybind11/pybind11.h>
#include <pybind11/numpy.h>
#include "nifty/graph/agglo/cluster_policies/detail/merge_rules.hxx"
namespace py = pybind11;
PYBIND11_DECLARE_HOLDER_TYPE(T, std::shared_ptr<T>);
namespace nifty{
namespace graph{
namespace agglo{
void exportMergeRules(py::module & aggloModule) {
... | 29.520833 | 101 | 0.527876 | DerThorsten |
ba99973fc95c863217b27689d40b7be4a1daf6fc | 26,654 | cpp | C++ | 3rd_party/gslib/ogs/src/ogsKernels.cpp | roystgnr/nekRS | 280acd21c3088d7658a8a113e544fce05853d7b4 | [
"BSD-3-Clause"
] | null | null | null | 3rd_party/gslib/ogs/src/ogsKernels.cpp | roystgnr/nekRS | 280acd21c3088d7658a8a113e544fce05853d7b4 | [
"BSD-3-Clause"
] | null | null | null | 3rd_party/gslib/ogs/src/ogsKernels.cpp | roystgnr/nekRS | 280acd21c3088d7658a8a113e544fce05853d7b4 | [
"BSD-3-Clause"
] | null | null | null | /*
The MIT License (MIT)
Copyright (c) 2017 Tim Warburton, Noel Chalmers, Jesse Chan, Ali Karakus
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 limitatio... | 55.995798 | 149 | 0.771592 | roystgnr |
ba99c46ab2b4cc8ffed797b81c30dfbac8dfa060 | 693 | cc | C++ | src/Attributes/DrillToleranceAttribute.cc | aaronbamberger/gerber_rs274x_parser | d2bbd6c66d322ab47715771642255f8302521300 | [
"BSD-2-Clause"
] | 6 | 2016-09-28T18:26:42.000Z | 2021-04-10T13:19:05.000Z | src/Attributes/DrillToleranceAttribute.cc | aaronbamberger/gerber_rs274x_parser | d2bbd6c66d322ab47715771642255f8302521300 | [
"BSD-2-Clause"
] | 1 | 2021-02-09T00:24:04.000Z | 2021-02-27T22:08:05.000Z | src/Attributes/DrillToleranceAttribute.cc | aaronbamberger/gerber_rs274x_parser | d2bbd6c66d322ab47715771642255f8302521300 | [
"BSD-2-Clause"
] | 5 | 2017-09-14T09:48:17.000Z | 2021-07-19T07:58:34.000Z | /*
* Copyright 2021 Aaron Bamberger
* Licensed under BSD 2-clause license
* See LICENSE file at root of source tree,
* or https://opensource.org/licenses/BSD-2-Clause
*/
#include "Attributes/DrillToleranceAttribute.hh"
DrillToleranceAttribute::DrillToleranceAttribute(ValueWithLocation<double> plus_tolerance,
... | 33 | 90 | 0.787879 | aaronbamberger |
ba9c80654c3a1d3bb952a8156ad1a44f6799857c | 1,139 | hpp | C++ | include/detectball.hpp | ssudake21/spm | fb6d62674831acb2ddac4c5dddce24b2d2c89caa | [
"Apache-2.0"
] | 1 | 2019-06-20T01:54:37.000Z | 2019-06-20T01:54:37.000Z | include/detectball.hpp | ssudake21/spm | fb6d62674831acb2ddac4c5dddce24b2d2c89caa | [
"Apache-2.0"
] | null | null | null | include/detectball.hpp | ssudake21/spm | fb6d62674831acb2ddac4c5dddce24b2d2c89caa | [
"Apache-2.0"
] | null | null | null | /*!
* \file detectball.hpp
* \brief
*/
#ifndef __DETECTBALL_H_INCLUDED__
#define __DETECTBALL_H_INCLUDED__
#include <opencv2/imgproc/imgproc.hpp>
#include <opencv2/highgui/highgui.hpp>
#include <opencv2/core/core.hpp>
#include <opencv2/video/video.hpp>
#include <iostream>
using namespace cv;
/*!
* \class DetectB... | 19.637931 | 58 | 0.729587 | ssudake21 |
baa05568757004610ac574afbfc34d778f404368 | 2,260 | cpp | C++ | android-31/java/sql/SQLWarning.cpp | YJBeetle/QtAndroidAPI | 1468b5dc6eafaf7709f0b00ba1a6ec2b70684266 | [
"Apache-2.0"
] | 12 | 2020-03-26T02:38:56.000Z | 2022-03-14T08:17:26.000Z | android-31/java/sql/SQLWarning.cpp | YJBeetle/QtAndroidAPI | 1468b5dc6eafaf7709f0b00ba1a6ec2b70684266 | [
"Apache-2.0"
] | 1 | 2021-01-27T06:07:45.000Z | 2021-11-13T19:19:43.000Z | android-29/java/sql/SQLWarning.cpp | YJBeetle/QtAndroidAPI | 1468b5dc6eafaf7709f0b00ba1a6ec2b70684266 | [
"Apache-2.0"
] | 3 | 2021-02-02T12:34:55.000Z | 2022-03-08T07:45:57.000Z | #include "../../JString.hpp"
#include "../../JThrowable.hpp"
#include "./SQLWarning.hpp"
namespace java::sql
{
// Fields
// QJniObject forward
SQLWarning::SQLWarning(QJniObject obj) : java::sql::SQLException(obj) {}
// Constructors
SQLWarning::SQLWarning()
: java::sql::SQLException(
"java.sql.SQLWarning"... | 25.681818 | 79 | 0.671239 | YJBeetle |
baa35e7aa30971136885604b162f97fb6a6c4046 | 5,966 | cc | C++ | src/outlinerboundingboxer.cc | jariarkko/cave-outliner | 2077a24627881f45a27aec3eb4e5b4855f6b7fec | [
"BSD-3-Clause"
] | 4 | 2021-09-02T16:52:23.000Z | 2022-02-07T16:39:50.000Z | src/outlinerboundingboxer.cc | jariarkko/cave-outliner | 2077a24627881f45a27aec3eb4e5b4855f6b7fec | [
"BSD-3-Clause"
] | 87 | 2021-09-12T06:09:57.000Z | 2022-02-15T00:05:43.000Z | src/outlinerboundingboxer.cc | jariarkko/cave-outliner | 2077a24627881f45a27aec3eb4e5b4855f6b7fec | [
"BSD-3-Clause"
] | 1 | 2021-09-28T21:38:30.000Z | 2021-09-28T21:38:30.000Z | ///////////////////////////////////////////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////////////////////////////////////////
//
// CCC AAA V V ... | 36.157576 | 95 | 0.53654 | jariarkko |
baa3e10c85ae181b42e8d2914b10a257929b4dd4 | 2,775 | cpp | C++ | video/device/linux_list_devices.cpp | fgenolini/frank | 0581c503f0a724cb29dc1901df9da5893947190f | [
"MIT"
] | 1 | 2020-10-12T03:08:22.000Z | 2020-10-12T03:08:22.000Z | video/device/linux_list_devices.cpp | fgenolini/frank | 0581c503f0a724cb29dc1901df9da5893947190f | [
"MIT"
] | 17 | 2020-04-23T08:32:59.000Z | 2020-08-20T16:58:26.000Z | video/device/linux_list_devices.cpp | fgenolini/frank | 0581c503f0a724cb29dc1901df9da5893947190f | [
"MIT"
] | 1 | 2020-10-12T03:33:27.000Z | 2020-10-12T03:33:27.000Z | #include "config.h"
#if defined(UNIX) && !defined(APPLE) && !defined(MINGW) && !defined(MSYS) && \
!defined(CYGWIN) && !defined(WIN32)
WARNINGS_OFF
#include <cstdlib>
#include <filesystem>
#include <fstream>
#include <iostream>
#include <string>
#include <vector>
#include <gsl/gsl_util>
WARNINGS_ON
using name... | 28.316327 | 80 | 0.668468 | fgenolini |
baa4baf4b9f1015bd23654247a7777416b47e977 | 760 | cpp | C++ | tools/animator/src/gui/gui.cpp | anteins/Blunted2 | 284a1fb59805914af1ee0dc763ff022fb088a922 | [
"Unlicense"
] | null | null | null | tools/animator/src/gui/gui.cpp | anteins/Blunted2 | 284a1fb59805914af1ee0dc763ff022fb088a922 | [
"Unlicense"
] | null | null | null | tools/animator/src/gui/gui.cpp | anteins/Blunted2 | 284a1fb59805914af1ee0dc763ff022fb088a922 | [
"Unlicense"
] | null | null | null | // written by bastiaan konings schuiling 2008 - 2014
// this work is public domain. the code is undocumented, scruffy, untested, and should generally not be used for anything important.
// i do not offer support, so don't ask. to be used for inspiration :)
#include "gui.hpp"
namespace blunted {
GuiTask::GuiTask(boo... | 21.714286 | 132 | 0.710526 | anteins |
baa59545e2670825a48de371db5cdc5e0c003234 | 3,381 | cc | C++ | test/cpp/end2end/admin_services_end2end_test.cc | lishengze/grpc | 70fa55155beade94670661f033e91b55f43c9dee | [
"Apache-2.0"
] | 1 | 2021-12-01T03:10:14.000Z | 2021-12-01T03:10:14.000Z | test/cpp/end2end/admin_services_end2end_test.cc | lishengze/grpc | 70fa55155beade94670661f033e91b55f43c9dee | [
"Apache-2.0"
] | null | null | null | test/cpp/end2end/admin_services_end2end_test.cc | lishengze/grpc | 70fa55155beade94670661f033e91b55f43c9dee | [
"Apache-2.0"
] | null | null | null | //
//
// Copyright 2021 gRPC authors.
//
// 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 agree... | 33.147059 | 76 | 0.71399 | lishengze |
baa7792f26a9085dfe05ca8ecf2100cfcae2912d | 5,665 | cpp | C++ | DriverlessCar/Main.cpp | phuctm97/driverless-car-2 | ce9c8b0bf83da20a9b2d856d257b0ddfd10e8531 | [
"MIT"
] | null | null | null | DriverlessCar/Main.cpp | phuctm97/driverless-car-2 | ce9c8b0bf83da20a9b2d856d257b0ddfd10e8531 | [
"MIT"
] | null | null | null | DriverlessCar/Main.cpp | phuctm97/driverless-car-2 | ce9c8b0bf83da20a9b2d856d257b0ddfd10e8531 | [
"MIT"
] | 3 | 2020-03-04T16:00:05.000Z | 2022-02-24T11:29:52.000Z | #include "Collector/ICollector.h"
#include "Collector/CollectorWithVideo/CollectorWithVideo.h" // [on Car] replace with CollectorWithCamera
#include "Calculator/ICalculator.h"
#include "Calculator/CalculatorBlobsBased/CalculatorBlobsBased.h"
#include "Calculator/CropTool.h"
#include "Calculator/FlipTool.h"
#include "Ca... | 36.082803 | 186 | 0.695499 | phuctm97 |
baa7e9366c3862f120e8e7e549d27f999c53ca1c | 1,047 | hpp | C++ | include/RED4ext/Types/generated/anim/AnimNode_BlendSpace.hpp | Cyberpunk-Extended-Development-Team/RED4ext.SDK | 2dc828c761d87a1b4235ce9ca4fbdf9fb4312fae | [
"MIT"
] | 1 | 2021-02-01T23:07:50.000Z | 2021-02-01T23:07:50.000Z | include/RED4ext/Types/generated/anim/AnimNode_BlendSpace.hpp | Cyberpunk-Extended-Development-Team/RED4ext.SDK | 2dc828c761d87a1b4235ce9ca4fbdf9fb4312fae | [
"MIT"
] | null | null | null | include/RED4ext/Types/generated/anim/AnimNode_BlendSpace.hpp | Cyberpunk-Extended-Development-Team/RED4ext.SDK | 2dc828c761d87a1b4235ce9ca4fbdf9fb4312fae | [
"MIT"
] | null | null | null | #pragma once
// This file is generated from the Game's Reflection data
#include <cstdint>
#include <RED4ext/Common.hpp>
#include <RED4ext/REDhash.hpp>
#include <RED4ext/CName.hpp>
#include <RED4ext/DynArray.hpp>
#include <RED4ext/Types/generated/anim/AnimNode_Base.hpp>
#include <RED4ext/Types/generated/anim/AnimNode_... | 30.794118 | 83 | 0.751671 | Cyberpunk-Extended-Development-Team |
bab1a30276d99dfb58df19ba73952bdecc2be15a | 26,438 | cpp | C++ | src/utilities/bcl/BCLXML.cpp | muehleisen/OpenStudio | 3bfe89f6c441d1e61e50b8e94e92e7218b4555a0 | [
"blessing"
] | 3 | 2020-09-05T18:13:23.000Z | 2022-01-15T14:47:57.000Z | src/utilities/bcl/BCLXML.cpp | muehleisen/OpenStudio | 3bfe89f6c441d1e61e50b8e94e92e7218b4555a0 | [
"blessing"
] | 4 | 2016-06-27T21:25:59.000Z | 2020-04-28T14:00:21.000Z | src/utilities/bcl/BCLXML.cpp | jmarrec/OpenStudio | 5276feff0d8dbd6c8ef4e87eed626bc270a19b14 | [
"blessing"
] | 1 | 2020-06-19T14:54:05.000Z | 2020-06-19T14:54:05.000Z | /***********************************************************************************************************************
* OpenStudio(R), Copyright (c) 2008-2021, Alliance for Sustainable Energy, LLC, and other contributors. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without m... | 30.180365 | 128 | 0.64778 | muehleisen |
bab42054517ff7ed1c53bd02a4889cecd91c01ac | 33,810 | cpp | C++ | library/src/rocblas_auxiliary.cpp | malcolmroberts/rocBLAS | 019833e177c362d8def819c8026560a323bac959 | [
"MIT"
] | null | null | null | library/src/rocblas_auxiliary.cpp | malcolmroberts/rocBLAS | 019833e177c362d8def819c8026560a323bac959 | [
"MIT"
] | null | null | null | library/src/rocblas_auxiliary.cpp | malcolmroberts/rocBLAS | 019833e177c362d8def819c8026560a323bac959 | [
"MIT"
] | null | null | null | /* ************************************************************************
* Copyright 2016-2019 Advanced Micro Devices, Inc.
*
* ************************************************************************ */
#include <hip/hip_runtime.h>
#include <stdio.h>
#include "definitions.h"
#include "rocblas-types.h"
#include... | 45.443548 | 100 | 0.46291 | malcolmroberts |
3bf7f88d08b080cec2043bca0c043c74e6604a4b | 88,065 | cpp | C++ | Game/Points.cpp | sjohal21/Floating-Sandbox | 0170e3696ed4f012f5f17fdbbdaef1af4117f495 | [
"CC-BY-4.0"
] | 44 | 2018-07-08T16:44:53.000Z | 2022-02-06T14:07:30.000Z | Game/Points.cpp | sjohal21/Floating-Sandbox | 0170e3696ed4f012f5f17fdbbdaef1af4117f495 | [
"CC-BY-4.0"
] | 31 | 2019-03-24T16:00:38.000Z | 2022-02-24T20:23:18.000Z | Game/Points.cpp | sjohal21/Floating-Sandbox | 0170e3696ed4f012f5f17fdbbdaef1af4117f495 | [
"CC-BY-4.0"
] | 24 | 2018-11-08T21:58:53.000Z | 2022-01-12T12:04:42.000Z | /***************************************************************************************
* Original Author: Gabriele Giuseppini
* Created: 2018-05-06
* Copyright: Gabriele Giuseppini (https://github.com/GabrieleGiuseppini)
*******************************************************************... | 40.102459 | 275 | 0.645773 | sjohal21 |
3bf870973f94c3fad3df77ce7d23776eaec2a753 | 101,021 | hpp | C++ | storage/HashTable.hpp | Hacker0912/quickstep-datalog | 1de22e7ab787b5efa619861a167a097ff6a4f549 | [
"Apache-2.0"
] | 82 | 2016-04-18T03:59:06.000Z | 2019-02-04T11:46:08.000Z | storage/HashTable.hpp | Hacker0912/quickstep-datalog | 1de22e7ab787b5efa619861a167a097ff6a4f549 | [
"Apache-2.0"
] | 265 | 2016-04-19T17:52:43.000Z | 2018-10-11T17:55:08.000Z | storage/HashTable.hpp | Hacker0912/quickstep-datalog | 1de22e7ab787b5efa619861a167a097ff6a4f549 | [
"Apache-2.0"
] | 68 | 2016-04-18T05:00:34.000Z | 2018-10-30T12:41:02.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 you under the Apache License, Version 2.0 (the
* "License"); you... | 46.212717 | 107 | 0.637046 | Hacker0912 |
3bfb6b7ec394f0ef0dc85b8e9a756bb99ffaa161 | 417 | hpp | C++ | src/IComponent.hpp | bullno1/xveearr | 4690cde72b7ec747d944daa919c3275744d75e25 | [
"BSD-2-Clause"
] | null | null | null | src/IComponent.hpp | bullno1/xveearr | 4690cde72b7ec747d944daa919c3275744d75e25 | [
"BSD-2-Clause"
] | null | null | null | src/IComponent.hpp | bullno1/xveearr | 4690cde72b7ec747d944daa919c3275744d75e25 | [
"BSD-2-Clause"
] | null | null | null | #ifndef XVEEEARR_COMPONENT_HPP
#define XVEEEARR_COMPONENT_HPP
namespace xveearr
{
class IComponentBase
{
public:
virtual void shutdown() = 0;
virtual const char* getName() const = 0;
};
template<typename T>
class IComponent: public IComponentBase
{
public:
virtual bool init(const T& initParam) = 0;
};
template<>... | 13.451613 | 45 | 0.741007 | bullno1 |
3bfdb4c4122bd1a2553ffe89582015c146b50fd0 | 17,759 | cpp | C++ | code/utils/ETools/encode.cpp | InNoHurryToCode/xray-162 | fff9feb9ffb681b3c6ba1dc7c4534fe80006f87e | [
"Apache-2.0"
] | 58 | 2016-11-20T19:14:35.000Z | 2021-12-27T21:03:35.000Z | code/utils/ETools/encode.cpp | InNoHurryToCode/xray-162 | fff9feb9ffb681b3c6ba1dc7c4534fe80006f87e | [
"Apache-2.0"
] | 59 | 2016-09-10T10:44:20.000Z | 2018-09-03T19:07:30.000Z | code/utils/ETools/encode.cpp | InNoHurryToCode/xray-162 | fff9feb9ffb681b3c6ba1dc7c4534fe80006f87e | [
"Apache-2.0"
] | 39 | 2017-02-05T13:35:37.000Z | 2022-03-14T11:00:12.000Z | /* OggEnc
**
** This program is distributed under the GNU General Public License, version 2.
** A copy of this license is included with this source.
**
** Copyright 2000-2002, Michael Smith <msmith@xiph.org>
**
** Portions from Vorbize, (c) Kenneth Arnold <kcarnold-xiph@arnoldnet.net>
** and libvorbis examples,... | 38.439394 | 99 | 0.51861 | InNoHurryToCode |
3bfea285d3aeee7f16c804c2402afec08b75b330 | 2,740 | hpp | C++ | libs/fnd/variant/include/bksge/fnd/variant/detail/move_assign.hpp | myoukaku/bksge | 0f8b60e475a3f1709723906e4796b5e60decf06e | [
"MIT"
] | 4 | 2018-06-10T13:35:32.000Z | 2021-06-03T14:27:41.000Z | libs/fnd/variant/include/bksge/fnd/variant/detail/move_assign.hpp | myoukaku/bksge | 0f8b60e475a3f1709723906e4796b5e60decf06e | [
"MIT"
] | 566 | 2017-01-31T05:36:09.000Z | 2022-02-09T05:04:37.000Z | libs/fnd/variant/include/bksge/fnd/variant/detail/move_assign.hpp | myoukaku/bksge | 0f8b60e475a3f1709723906e4796b5e60decf06e | [
"MIT"
] | 1 | 2018-07-05T04:40:53.000Z | 2018-07-05T04:40:53.000Z | /**
* @file move_assign.hpp
*
* @brief MoveAssign の定義
*
* @author myoukaku
*/
#ifndef BKSGE_FND_VARIANT_DETAIL_MOVE_ASSIGN_HPP
#define BKSGE_FND_VARIANT_DETAIL_MOVE_ASSIGN_HPP
#include <bksge/fnd/variant/variant_npos.hpp>
#include <bksge/fnd/variant/detail/copy_assign.hpp>
#include <bksge/fnd/vari... | 28.247423 | 116 | 0.727007 | myoukaku |
3bffdce14200efbcb0ef7f702221417bfd5f16ee | 170,645 | hh | C++ | libclingo/clingo.hh | tsahyt/clingo | 5c5a61dc0ac5f54d8245e6c4ec28f6040882b151 | [
"MIT"
] | 1 | 2018-11-20T10:29:50.000Z | 2018-11-20T10:29:50.000Z | libclingo/clingo.hh | tsahyt/clingo | 5c5a61dc0ac5f54d8245e6c4ec28f6040882b151 | [
"MIT"
] | null | null | null | libclingo/clingo.hh | tsahyt/clingo | 5c5a61dc0ac5f54d8245e6c4ec28f6040882b151 | [
"MIT"
] | null | null | null | // {{{ MIT License
// Copyright 2017 Roland Kaminski
// 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,... | 35.514048 | 252 | 0.677283 | tsahyt |
ce043e2bd502aab9a92620d06e38ea52824e84a1 | 3,871 | cpp | C++ | Menu.cpp | KoheXR/Warzone_Esp_-_aimbot | 152754bba7fea464382df5f75844273f94629c9e | [
"MIT"
] | 113 | 2020-03-26T17:56:01.000Z | 2022-03-30T02:55:37.000Z | Menu.cpp | KoheXR/Warzone_Esp_-_aimbot | 152754bba7fea464382df5f75844273f94629c9e | [
"MIT"
] | 21 | 2020-03-24T09:02:24.000Z | 2021-07-21T15:44:28.000Z | Menu.cpp | KoheXR/Warzone_Esp_-_aimbot | 152754bba7fea464382df5f75844273f94629c9e | [
"MIT"
] | 66 | 2020-03-25T19:07:51.000Z | 2022-03-23T20:08:29.000Z | #pragma once
#include <Windows.h>
#include "imgui.h"
#include "Render.h"
#include "Global.h"
#include <Settings.h>
namespace Menu
{
bool bIsOpen = true;
ImVec4 Red = { 255, 0, 0, 255 };
ImVec4 Green = { 0, 255, 0, 255 };
void MenuInit()
{
ImGuiStyle& style = ImGui::GetStyle();
style.Alpha = 1.f;
style.Wi... | 26.333333 | 162 | 0.676569 | KoheXR |
ce068ce2d0beb8f62fbbba04a379e3db078b0027 | 10,411 | cpp | C++ | UISim_C++/src/Graph.cpp | UISim2020/UISim2020 | a216898a707079c86807d61e7a157c9fc34d0f59 | [
"MIT"
] | 1 | 2021-02-28T10:11:54.000Z | 2021-02-28T10:11:54.000Z | UISim_C++/src/Graph.cpp | UISim2020/UISim2020 | a216898a707079c86807d61e7a157c9fc34d0f59 | [
"MIT"
] | null | null | null | UISim_C++/src/Graph.cpp | UISim2020/UISim2020 | a216898a707079c86807d61e7a157c9fc34d0f59 | [
"MIT"
] | null | null | null | /*
* Graph.cpp
*
* Created on: 2019��3��13��
* Author: yichen_shen
*/
#include "Graph.h"
#include "TextWriter.h"
#include "TextReader.h"
#include "Trim.h"
#include <math.h>
#include "IndexManager.h"
#include <time.h>
#include <iostream>
#include <algorithm>
Graph::Graph()
{
// TODO Auto-... | 26.356962 | 320 | 0.556143 | UISim2020 |
ce0a5572f40aed049ddc9a6c35be6f68446c9dd4 | 333 | cpp | C++ | monisai_2/problem_5.cpp | Leon-Francis/AlgorithmPractice | bfff066da64ebbb00ecd33d94ebbe5bcc382867c | [
"MIT"
] | 1 | 2020-10-07T12:03:12.000Z | 2020-10-07T12:03:12.000Z | monisai_2/problem_5.cpp | Leon-Francis/AlgorithmPractice | bfff066da64ebbb00ecd33d94ebbe5bcc382867c | [
"MIT"
] | null | null | null | monisai_2/problem_5.cpp | Leon-Francis/AlgorithmPractice | bfff066da64ebbb00ecd33d94ebbe5bcc382867c | [
"MIT"
] | null | null | null | #include <iostream>
using namespace std;
int main(int argc, char const *argv[])
{
int n;
int a, b, c;
cin >> n >> a >> b >> c;
int res = 0;
for (int i = 1; i <= n; i++)
{
if (i % a != 0 && i % b != 0 && i % c != 0)
{
res++;
}
}
cout << res << endl;
... | 17.526316 | 51 | 0.378378 | Leon-Francis |
ce0d17629d550b1c8cb95fb03596ccd2750caaec | 6,716 | cc | C++ | mesh/mesh.cc | rafgitdz/bimodal-scheduler-rstm | 7d6f795e6a2820a4c59cdc195bcea4d13c5d20c8 | [
"BSD-3-Clause"
] | null | null | null | mesh/mesh.cc | rafgitdz/bimodal-scheduler-rstm | 7d6f795e6a2820a4c59cdc195bcea4d13c5d20c8 | [
"BSD-3-Clause"
] | null | null | null | mesh/mesh.cc | rafgitdz/bimodal-scheduler-rstm | 7d6f795e6a2820a4c59cdc195bcea4d13c5d20c8 | [
"BSD-3-Clause"
] | null | null | null | ///////////////////////////////////////////////////////////////////////////////
//
// Copyright (c) 2006, 2007
// University of Rochester
// Department of Computer Science
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the fo... | 35.162304 | 85 | 0.532609 | rafgitdz |
ce0e1e0faadcaf6c25efd0bc96d178b7ddadeeb8 | 576 | hpp | C++ | metaforce-gui/ArgumentEditor.hpp | Jcw87/urde | fb9ea9092ad00facfe957ece282a86c194e9cbda | [
"MIT"
] | 267 | 2016-03-10T21:59:16.000Z | 2021-03-28T18:21:03.000Z | metaforce-gui/ArgumentEditor.hpp | cobalt2727/metaforce | 3bb05c0ee5dd9b1b8eaa861fc49713aef62c844a | [
"MIT"
] | 129 | 2016-03-12T10:17:32.000Z | 2021-04-05T20:45:19.000Z | metaforce-gui/ArgumentEditor.hpp | cobalt2727/metaforce | 3bb05c0ee5dd9b1b8eaa861fc49713aef62c844a | [
"MIT"
] | 31 | 2016-03-20T00:20:11.000Z | 2021-03-10T21:14:11.000Z | #pragma once
#include <memory>
#include <QDialog>
#include <QStringListModel>
class QAbstractButton;
namespace Ui {
class ArgumentEditor;
} // namespace Ui
class ArgumentEditor : public QDialog {
Q_OBJECT
std::unique_ptr<Ui::ArgumentEditor> m_ui;
QStringListModel m_model;
public:
explicit ArgumentEditor(... | 18.580645 | 53 | 0.767361 | Jcw87 |
ce167cd9fce344ee1e0ad491f4320d99794eb0f2 | 7,110 | cpp | C++ | ODFAEG/src/odfaeg/Physics/boundingEllipsoid.cpp | Ornito/ODFAEG-1 | f563975ae4bdd2e178d1ed7267e1920425aa2c4d | [
"Zlib"
] | 5 | 2015-06-13T13:11:59.000Z | 2020-04-17T23:10:23.000Z | ODFAEG/src/odfaeg/Physics/boundingEllipsoid.cpp | Ornito/ODFAEG-1 | f563975ae4bdd2e178d1ed7267e1920425aa2c4d | [
"Zlib"
] | 4 | 2019-01-07T11:46:21.000Z | 2020-02-14T15:04:15.000Z | ODFAEG/src/odfaeg/Physics/boundingEllipsoid.cpp | Ornito/ODFAEG-1 | f563975ae4bdd2e178d1ed7267e1920425aa2c4d | [
"Zlib"
] | 4 | 2016-01-05T09:54:57.000Z | 2021-01-06T18:52:26.000Z | #include "../../../include/odfaeg/Physics/boundingEllipsoid.h"
#include "../../../include/odfaeg/Physics/boundingSphere.h"
#include "../../../include/odfaeg/Physics/boundingBox.h"
#include "../../../include/odfaeg/Physics/orientedBoundingBox.h"
#include "../../../include/odfaeg/Physics/boundingPolyhedron.h"
#inclu... | 46.776316 | 133 | 0.549648 | Ornito |
ce18a18695db87268aba899ee8cdc2707ca00df5 | 6,990 | cpp | C++ | MaterialLib/MPL/CreateProperty.cpp | yezhigangzju/ogs | 074c5129680e87516477708b081afe79facabe87 | [
"BSD-3-Clause"
] | 1 | 2019-10-24T02:38:44.000Z | 2019-10-24T02:38:44.000Z | MaterialLib/MPL/CreateProperty.cpp | yezhigangzju/ogs | 074c5129680e87516477708b081afe79facabe87 | [
"BSD-3-Clause"
] | null | null | null | MaterialLib/MPL/CreateProperty.cpp | yezhigangzju/ogs | 074c5129680e87516477708b081afe79facabe87 | [
"BSD-3-Clause"
] | null | null | null | /**
* \file
* \author Norbert Grunwald
* \date Sep 7, 2017
*
* \copyright
* Copyright (c) 2012-2020, OpenGeoSys Community (http://www.opengeosys.org)
* Distributed under a Modified BSD License.
* See accompanying file LICENSE.txt or
* http://www.opengeosys.org/project/lic... | 29.004149 | 80 | 0.667811 | yezhigangzju |
ce1bade86ec6eb36605e8ec4c5319b5e49b1378b | 2,738 | cpp | C++ | Level/GameLevel.cpp | sagbonkh/Sokoban_Solver | 96290f4d85d36ff2591eca96c7d4d694e0763b8d | [
"Unlicense"
] | null | null | null | Level/GameLevel.cpp | sagbonkh/Sokoban_Solver | 96290f4d85d36ff2591eca96c7d4d694e0763b8d | [
"Unlicense"
] | null | null | null | Level/GameLevel.cpp | sagbonkh/Sokoban_Solver | 96290f4d85d36ff2591eca96c7d4d694e0763b8d | [
"Unlicense"
] | null | null | null | // Copyright Tobias Faller 2016
#include <Level/GameLevel.h>
#include <Level/MapGrid.h>
#include <Level/Parser.h>
#include <numeric>
#include <fstream>
#include <string>
namespace Sokoban {
using std::ifstream;
using std::istream;
using std::to_string;
using std::string;
using std::endl;
using std::cout;
using std::... | 19.985401 | 88 | 0.663988 | sagbonkh |
ce1c085e4aca19e94177342faceaba2a95979e28 | 22,232 | cpp | C++ | test/interpolation-test.cpp | 12ff54e/BSplineInterpolation | b0f04414807bea999c5102f1274ea2ad9c2a6b6f | [
"MIT"
] | 5 | 2022-03-21T08:50:42.000Z | 2022-03-31T05:31:41.000Z | test/interpolation-test.cpp | 12ff54e/BSplineInterpolation | b0f04414807bea999c5102f1274ea2ad9c2a6b6f | [
"MIT"
] | null | null | null | test/interpolation-test.cpp | 12ff54e/BSplineInterpolation | b0f04414807bea999c5102f1274ea2ad9c2a6b6f | [
"MIT"
] | 1 | 2022-03-31T11:12:24.000Z | 2022-03-31T11:12:24.000Z | #include "../src/include/Interpolation.hpp"
#include "./Assertion.hpp"
#include "./rel_err.hpp"
#include <algorithm>
#include <iostream>
int main() {
using namespace std;
using namespace intp;
// These tests are done by comparing interpolation results with that from
// MMA.
Assertion assertion;
... | 47.402985 | 83 | 0.610291 | 12ff54e |
ce1cfb84e2e211cf9ea9ef4e19ea69931a22b0a0 | 1,985 | hpp | C++ | include/tweedledee/quil/ast/ast_node.hpp | boschmitt/tweedledee | a7f5041681350601469b38311b9654e2c22643c0 | [
"MIT"
] | 4 | 2018-07-21T08:11:56.000Z | 2019-05-30T20:06:43.000Z | include/tweedledee/quil/ast/ast_node.hpp | boschmitt/tweedledee | a7f5041681350601469b38311b9654e2c22643c0 | [
"MIT"
] | null | null | null | include/tweedledee/quil/ast/ast_node.hpp | boschmitt/tweedledee | a7f5041681350601469b38311b9654e2c22643c0 | [
"MIT"
] | 1 | 2019-05-15T14:11:28.000Z | 2019-05-15T14:11:28.000Z | /*-------------------------------------------------------------------------------------------------
| This file is distributed under the MIT License.
| See accompanying file /LICENSE for details.
*------------------------------------------------------------------------------------------------*/
#pragma once
#include "... | 19.086538 | 99 | 0.649874 | boschmitt |
ce1dceb2a3715552d34f334dece72ec95f5c8759 | 17,759 | cpp | C++ | lib/Runtime/Library/JSONParser.cpp | satheeshravi/ChakraCore | 3bf47ff12bf80ab06fb7ea6925ec7579985ac1f5 | [
"MIT"
] | 1 | 2021-11-07T18:56:21.000Z | 2021-11-07T18:56:21.000Z | lib/Runtime/Library/JSONParser.cpp | MaxMood96/ChakraCore | 9d9fea268ce1ae6c00873fd966a6a2be048f3455 | [
"MIT"
] | null | null | null | lib/Runtime/Library/JSONParser.cpp | MaxMood96/ChakraCore | 9d9fea268ce1ae6c00873fd966a6a2be048f3455 | [
"MIT"
] | 1 | 2021-09-04T23:26:57.000Z | 2021-09-04T23:26:57.000Z | //-------------------------------------------------------------------------------------------------------
// Copyright (C) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE.txt file in the project root for full license information.
//---------------------------------------------------------... | 42.689904 | 190 | 0.489724 | satheeshravi |
ce22dba9649bd0e6b4e343178e9abd25bcbf8319 | 990 | cpp | C++ | unit_tests/diagnostics.cpp | tay10r/pathway | 20e961b6c0bf01a1c3a9e5a97396cc64d0f64cf6 | [
"MIT"
] | 1 | 2021-04-29T02:29:40.000Z | 2021-04-29T02:29:40.000Z | unit_tests/diagnostics.cpp | tay10r/pathway | 20e961b6c0bf01a1c3a9e5a97396cc64d0f64cf6 | [
"MIT"
] | null | null | null | unit_tests/diagnostics.cpp | tay10r/pathway | 20e961b6c0bf01a1c3a9e5a97396cc64d0f64cf6 | [
"MIT"
] | null | null | null | #include <gtest/gtest.h>
#include "diagnostics.h"
TEST(Diagnostics, GetClippedLocation)
{
Location loc1{ 1, 7, 1, 7 };
auto range1 = ConsoleDiagObserver::GetClippedLocation(1, " line 1", loc1);
EXPECT_EQ(range1.index, 6);
EXPECT_EQ(range1.length, 1);
Location loc2{ 2, 2, 3, 5 };
auto range2 = ConsoleD... | 24.75 | 76 | 0.651515 | tay10r |
ce254b163692b17480af619db791dbb587db4184 | 1,102 | cpp | C++ | cpp/lib/string/is_parentheses_column.cpp | KATO-Hiro/atcoder-1 | c2cbfcfd5c3d46ac9810ba330a37d437aa2839c2 | [
"MIT"
] | null | null | null | cpp/lib/string/is_parentheses_column.cpp | KATO-Hiro/atcoder-1 | c2cbfcfd5c3d46ac9810ba330a37d437aa2839c2 | [
"MIT"
] | null | null | null | cpp/lib/string/is_parentheses_column.cpp | KATO-Hiro/atcoder-1 | c2cbfcfd5c3d46ac9810ba330a37d437aa2839c2 | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
using namespace std;
using ll = long long;
// --------------------------------------------------------
#define FOR(i,l,r) for (ll i = (l); i < (r); ++i)
#define RFOR(i,l,r) for (ll i = (r)-1; (l) <= i; --i)
#define REP(i,n) FOR(i,0,n)
#define RREP(i,n) RFOR(i,0,n)
#define BIT(b,i) (((b)>>(i)) &... | 24.488889 | 66 | 0.451906 | KATO-Hiro |
ce25536e9fe45588c86ded4ba219fc2d05ecc2a0 | 12,027 | cpp | C++ | plugins/OpenVR/src/VROpenVRInputDevice.cpp | elainejiang8/MinVR | d3905b0a7b6b3e324e6ab3773ef29f651b8ad9d7 | [
"BSD-3-Clause"
] | null | null | null | plugins/OpenVR/src/VROpenVRInputDevice.cpp | elainejiang8/MinVR | d3905b0a7b6b3e324e6ab3773ef29f651b8ad9d7 | [
"BSD-3-Clause"
] | null | null | null | plugins/OpenVR/src/VROpenVRInputDevice.cpp | elainejiang8/MinVR | d3905b0a7b6b3e324e6ab3773ef29f651b8ad9d7 | [
"BSD-3-Clause"
] | null | null | null | /*
* Copyright Regents of the University of Minnesota, 2015. This software is released under the following license: http://opensource.org/licenses/GPL-2.0
* Source code originally developed at the University of Minnesota Interactive Visualization Lab (http://ivlab.cs.umn.edu).
*
* Code author(s):
* Ben Knorlein... | 40.22408 | 156 | 0.728112 | elainejiang8 |
ce28e1f2f3e9da82cb87668869f44cf00615d388 | 114 | hxx | C++ | src/Providers/UNIXProviders/PrintSAP/UNIX_PrintSAP_FREEBSD.hxx | brunolauze/openpegasus-providers-old | b00f1aad575bae144b8538bf57ba5fd5582a4ec7 | [
"MIT"
] | 1 | 2020-10-12T09:00:09.000Z | 2020-10-12T09:00:09.000Z | src/Providers/UNIXProviders/PrintSAP/UNIX_PrintSAP_FREEBSD.hxx | brunolauze/openpegasus-providers-old | b00f1aad575bae144b8538bf57ba5fd5582a4ec7 | [
"MIT"
] | null | null | null | src/Providers/UNIXProviders/PrintSAP/UNIX_PrintSAP_FREEBSD.hxx | brunolauze/openpegasus-providers-old | b00f1aad575bae144b8538bf57ba5fd5582a4ec7 | [
"MIT"
] | null | null | null | #ifdef PEGASUS_OS_FREEBSD
#ifndef __UNIX_PRINTSAP_PRIVATE_H
#define __UNIX_PRINTSAP_PRIVATE_H
#endif
#endif
| 9.5 | 33 | 0.833333 | brunolauze |
ce29d83f5cca49a329feb55b17adb09dd45e7011 | 395 | cpp | C++ | BOJ_CPP/11597.cpp | tnsgh9603/BOJ_CPP | 432b1350f6c67cce83aec3e723e30a3c6b5dbfda | [
"MIT"
] | null | null | null | BOJ_CPP/11597.cpp | tnsgh9603/BOJ_CPP | 432b1350f6c67cce83aec3e723e30a3c6b5dbfda | [
"MIT"
] | null | null | null | BOJ_CPP/11597.cpp | tnsgh9603/BOJ_CPP | 432b1350f6c67cce83aec3e723e30a3c6b5dbfda | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
#define fastio ios::sync_with_stdio(0), cin.tie(0), cout.tie(0)
using namespace std;
int arr[100'001];
int main() {
int n, ans = INT_MAX;
cin >> n;
for (int i = 0; i < n; ++i) {
cin >> arr[i];
}
sort(arr, arr + n);
for (int i = 0; i < n / 2; ++i) {
ans ... | 20.789474 | 63 | 0.481013 | tnsgh9603 |
ce2aba1accaf931fb79ef906a84914685426eec6 | 706 | cpp | C++ | dataset/test/modification/1467_rename/8/transformation_1.cpp | Karina5005/Plagiarism | ce11f72ba21a754ca84a27e5f26a31a19d6cb6fb | [
"MIT"
] | 3 | 2022-02-15T00:29:39.000Z | 2022-03-15T08:36:44.000Z | dataset/test/modification/1467_rename/8/transformation_1.cpp | Kira5005-code/Plagiarism | ce11f72ba21a754ca84a27e5f26a31a19d6cb6fb | [
"MIT"
] | null | null | null | dataset/test/modification/1467_rename/8/transformation_1.cpp | Kira5005-code/Plagiarism | ce11f72ba21a754ca84a27e5f26a31a19d6cb6fb | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
#define fo(i, a, n) for (int i = a; i < n; i++)
#define foe(i, a, n) for (int i = a; i <= n; i++)
void fpx_o()
{
int n_d;
cin >> n_d;
if (n_d == 1)
cout << 9 << endl;
else if (n_d == 2)
cout << 98 << endl... | 18.102564 | 50 | 0.382436 | Karina5005 |
ce2d0051690dbfc2e25292480a20eac807049323 | 6,847 | cpp | C++ | src/Squad.cpp | Kruecke/KBot | 97a9abc4537d83c9b6132684b7fa41dec807d174 | [
"MIT"
] | 2 | 2017-03-18T18:22:00.000Z | 2017-07-17T17:02:58.000Z | src/Squad.cpp | fklemme/KBot | 97a9abc4537d83c9b6132684b7fa41dec807d174 | [
"MIT"
] | 3 | 2017-03-17T04:23:38.000Z | 2017-07-02T17:43:09.000Z | src/Squad.cpp | Kruecke/KBot | 97a9abc4537d83c9b6132684b7fa41dec807d174 | [
"MIT"
] | null | null | null | #include "Squad.h"
#include "KBot.h"
#include "utils.h"
#include <stdexcept>
namespace KBot {
using namespace BWAPI;
Squad::Squad(KBot &kBot) : m_kBot(&kBot), m_state(State::scout) {}
void Squad::update() {
if (!empty()) {
// Draw squad radius
Broodwar->drawCircleMap(getPosition(), 400, Colors:... | 39.350575 | 100 | 0.498174 | Kruecke |
ce2d2c335f7263114a7dc4cbcdd2767b153dc6b2 | 2,622 | cpp | C++ | source/lx/fvec2.cpp | zhiayang/sim-thing | 8d9d5163146e2bdde15f4eadefa85453f12fac18 | [
"Apache-2.0"
] | 1 | 2021-02-07T08:40:11.000Z | 2021-02-07T08:40:11.000Z | source/lx/fvec2.cpp | zhiayang/sim-thing | 8d9d5163146e2bdde15f4eadefa85453f12fac18 | [
"Apache-2.0"
] | null | null | null | source/lx/fvec2.cpp | zhiayang/sim-thing | 8d9d5163146e2bdde15f4eadefa85453f12fac18 | [
"Apache-2.0"
] | null | null | null | // fvec2.cpp
// Copyright (c) 2014 - 2016, zhiayang@gmail.com
// Licensed under the Apache License Version 2.0.
#include "lx.h"
#include "lx/fvec2.h"
#include <assert.h>
namespace lx
{
float& fvec2::operator[] (size_t i)
{
assert(i == 0 || i == 1);
return this->ptr[i];
}
const float& fvec2::operator[] (siz... | 26.484848 | 93 | 0.58505 | zhiayang |
ce2d5a527c00b4e538c7f002b16507652cd5be62 | 1,602 | cc | C++ | firmware/src/MightyBoard/shared/Pin.cc | 46cv8/Sailfish-MightyBoardFirmware | 4d8456e54c537dd32775095ed2715d41f5961e6c | [
"AAL"
] | 79 | 2015-01-13T21:00:15.000Z | 2022-03-22T14:40:41.000Z | firmware/src/MightyBoard/shared/Pin.cc | 46cv8/Sailfish-MightyBoardFirmware | 4d8456e54c537dd32775095ed2715d41f5961e6c | [
"AAL"
] | 79 | 2015-04-23T18:25:49.000Z | 2021-10-03T14:42:07.000Z | firmware/src/MightyBoard/shared/Pin.cc | 46cv8/Sailfish-MightyBoardFirmware | 4d8456e54c537dd32775095ed2715d41f5961e6c | [
"AAL"
] | 66 | 2015-01-05T04:05:09.000Z | 2022-02-16T17:31:02.000Z | #include "Compat.hh"
#include "Pin.hh"
Pin::Pin() :
port_base(NullPort.port_base),
is_null(true),
pin_mask(0),
pin_mask_inverted((uint8_t)~0) { }
Pin::Pin(const AvrPort& port_in, uint8_t pin_index_in) :
port_base(port_in.port_base),
is_null(port_base == NULL_PORT),
pin_mask((uint8_t... | 20.538462 | 58 | 0.626092 | 46cv8 |
ce2dd54b596d6c8e57b70db5d7f532404fc6fe6f | 5,135 | cpp | C++ | Source/ppmc.cpp | leossoaress/PPMC | 025ee65e94a19222d5361132bf6c3743eeae13f4 | [
"MIT"
] | null | null | null | Source/ppmc.cpp | leossoaress/PPMC | 025ee65e94a19222d5361132bf6c3743eeae13f4 | [
"MIT"
] | null | null | null | Source/ppmc.cpp | leossoaress/PPMC | 025ee65e94a19222d5361132bf6c3743eeae13f4 | [
"MIT"
] | null | null | null | #include "ppmc.h"
PPMC::PPMC(unsigned int order_, std::string inputname, std::string outputname) : order(order_)
{
root = new Node(ROOT);
base = root;
input.open(inputname, std::ios::in | std::ios::binary);
if(!input) {
std::cout << "Could not open input file" << std::endl;
exit(-1);
... | 23.555046 | 94 | 0.508666 | leossoaress |
ce2ea67d09cd6a4ef1b0b42c6a6a69b9d6e5842e | 19,578 | cpp | C++ | src/cdnscache.cpp | Network-Tokens/oss-util | a1223835bc29ac5a291acfb02fabf513a18f6996 | [
"Apache-2.0"
] | null | null | null | src/cdnscache.cpp | Network-Tokens/oss-util | a1223835bc29ac5a291acfb02fabf513a18f6996 | [
"Apache-2.0"
] | null | null | null | src/cdnscache.cpp | Network-Tokens/oss-util | a1223835bc29ac5a291acfb02fabf513a18f6996 | [
"Apache-2.0"
] | null | null | null | /*
* Copyright (c) 2017 Sprint
*
* 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 writing,... | 25.794466 | 143 | 0.53555 | Network-Tokens |
ce2fcb66fa63ad030e174d66fb332117ac4c6f22 | 3,317 | hh | C++ | p1.hh | bitsofcotton/p1 | 8cf062d961c018c39f4f15d7bc1baf0a641dde34 | [
"BSD-3-Clause"
] | null | null | null | p1.hh | bitsofcotton/p1 | 8cf062d961c018c39f4f15d7bc1baf0a641dde34 | [
"BSD-3-Clause"
] | 6 | 2017-04-15T08:47:59.000Z | 2020-10-15T12:43:17.000Z | p1.hh | bitsofcotton/p1 | 8cf062d961c018c39f4f15d7bc1baf0a641dde34 | [
"BSD-3-Clause"
] | null | null | null | /*
BSD 3-Clause License
Copyright (c) 2020-2021, kazunobu watatsu
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 of source code must retain the above copyright notice, this
list ... | 39.488095 | 78 | 0.691589 | bitsofcotton |
ce30b4ffb1b49ddda52382ff27471fc96cb4e264 | 2,018 | cpp | C++ | unittests/testNearestNeighbor.cpp | purewind7/CS7496 | ca0b8376db400f265d9515d8307d928590a1569a | [
"BSD-2-Clause"
] | 4 | 2021-02-20T15:59:42.000Z | 2022-03-25T04:04:21.000Z | unittests/testNearestNeighbor.cpp | purewind7/CS7496 | ca0b8376db400f265d9515d8307d928590a1569a | [
"BSD-2-Clause"
] | 1 | 2021-04-14T04:12:48.000Z | 2021-04-14T04:12:48.000Z | unittests/testNearestNeighbor.cpp | purewind7/CS7496 | ca0b8376db400f265d9515d8307d928590a1569a | [
"BSD-2-Clause"
] | 2 | 2019-10-29T12:41:16.000Z | 2021-03-22T16:38:27.000Z | /**
* @file rrts02-nearestNeighbors.cpp
* @author Can Erdogan
* @date Feb 04, 2013
* @brief Checks if the nearest neighbor computation done by flann is correct.
*/
#include <iostream>
#include <gtest/gtest.h>
#include <Eigen/Core>
#include <dart/dart.hpp>
#if HAVE_FLANN
#include <flann/flann.hpp>
#endif // HAVE_F... | 34.793103 | 99 | 0.606046 | purewind7 |
ce323ad3d9b49b086493ead14eb5658ef13a655a | 1,572 | hpp | C++ | include/MemeCore/Function.hpp | Gurman8r/CppSandbox | a0f1cf0ade69ecaba4d167c0611a620914155e53 | [
"MIT"
] | null | null | null | include/MemeCore/Function.hpp | Gurman8r/CppSandbox | a0f1cf0ade69ecaba4d167c0611a620914155e53 | [
"MIT"
] | null | null | null | include/MemeCore/Function.hpp | Gurman8r/CppSandbox | a0f1cf0ade69ecaba4d167c0611a620914155e53 | [
"MIT"
] | null | null | null | #ifndef _ML_FUNCTION_HPP_
#define _ML_FUNCTION_HPP_
#include <MemeCore/ITrackable.hpp>
namespace ml
{
/* * * * * * * * * * * * * * * * * * * * */
class ML_CORE_API Function
: public ITrackable
{
public:
virtual ~Function() {}
virtual void run() = 0;
inline void operator()() { return run(); }
};
... | 16.375 | 63 | 0.512087 | Gurman8r |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.