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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
32308f50dc46137cef962e49a5b33fa158c1f135 | 223 | cpp | C++ | src/Game/Entities/Dynamic/Inspector.cpp | emmagonz22/DinerDashGameP3 | 687128c1cfd58ffe8639934b67190a3e4c764642 | [
"Apache-2.0"
] | null | null | null | src/Game/Entities/Dynamic/Inspector.cpp | emmagonz22/DinerDashGameP3 | 687128c1cfd58ffe8639934b67190a3e4c764642 | [
"Apache-2.0"
] | null | null | null | src/Game/Entities/Dynamic/Inspector.cpp | emmagonz22/DinerDashGameP3 | 687128c1cfd58ffe8639934b67190a3e4c764642 | [
"Apache-2.0"
] | null | null | null | #include "Inspector.h"
Inspector::Inspector(int x, int y, int width, int height, ofImage sprite, Burger* burger) : Client(x, y,width,height, sprite, burger)
{
//Empty constructor in case of thing wanna que added
}
| 37.166667 | 134 | 0.70852 | emmagonz22 |
323fc673a2d0a679d848fda08f177a948892f9c9 | 931 | cpp | C++ | Array/Missing_Element_XOR.cpp | susantabiswas/placementPrep | 22a7574206ddc63eba89517f7b68a3d2f4d467f5 | [
"MIT"
] | 19 | 2018-12-02T05:59:44.000Z | 2021-07-24T14:11:54.000Z | Array/Missing_Element_XOR.cpp | susantabiswas/placementPrep | 22a7574206ddc63eba89517f7b68a3d2f4d467f5 | [
"MIT"
] | null | null | null | Array/Missing_Element_XOR.cpp | susantabiswas/placementPrep | 22a7574206ddc63eba89517f7b68a3d2f4d467f5 | [
"MIT"
] | 13 | 2019-04-25T16:20:00.000Z | 2021-09-06T19:50:04.000Z | //Find the missing element from a list of 1..n-1 elements
/*Elements are distinct and range from 1 to n.Input has a list of n-1 numbers and the missing number
needs to be found*/
#include<iostream>
using namespace std;
//finds the missing element
/*XOR all the 1..n elements and then XOR the given elements and XOR bot... | 25.861111 | 100 | 0.691729 | susantabiswas |
32449484973d63f27bcea3d9a61a8f2dac9832e1 | 3,151 | cpp | C++ | oopAsgn4/prob4.cpp | debargham14/Object-Oriented-Programming-Assignment | 25d7c87803e957c16188cac563eb238654c5a87b | [
"MIT"
] | null | null | null | oopAsgn4/prob4.cpp | debargham14/Object-Oriented-Programming-Assignment | 25d7c87803e957c16188cac563eb238654c5a87b | [
"MIT"
] | null | null | null | oopAsgn4/prob4.cpp | debargham14/Object-Oriented-Programming-Assignment | 25d7c87803e957c16188cac563eb238654c5a87b | [
"MIT"
] | null | null | null | #include<iostream>
using namespace std;
//designing the class array to perform the relevant operations
class ARRAY {
int *p;
int size;
public:
//constrcutor to initialise the array
ARRAY(int s = 0) {
if (s == 0) {
size = s;
p = NULL;
}
else {
size = s;
p = new int[size];
for (int i = 0; i < si... | 24.811024 | 115 | 0.567122 | debargham14 |
324f495f006ff8d9558d2af4b1301fc9f4fb6fb4 | 2,103 | hpp | C++ | src/centurion/detail/array_utils.hpp | Creeperface01/centurion | e3b674c11849367a18c2d976ce94071108e1590d | [
"MIT"
] | 14 | 2020-05-17T21:38:03.000Z | 2020-11-21T00:16:25.000Z | src/centurion/detail/array_utils.hpp | Creeperface01/centurion | e3b674c11849367a18c2d976ce94071108e1590d | [
"MIT"
] | 70 | 2020-04-26T17:08:52.000Z | 2020-11-21T17:34:03.000Z | src/centurion/detail/array_utils.hpp | Creeperface01/centurion | e3b674c11849367a18c2d976ce94071108e1590d | [
"MIT"
] | null | null | null | /*
* MIT License
*
* Copyright (c) 2019-2022 Albin Johansson
*
* 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, c... | 30.042857 | 87 | 0.724679 | Creeperface01 |
325336bb7b753fc226e0c24b300a62e7040c8ce4 | 12,210 | cpp | C++ | Core/src/Core/GameObjectManager.cpp | Hukunaa/Condamnation | 04efeb6ee62013a8399695a8294d9bd9e9f0f41d | [
"MIT"
] | null | null | null | Core/src/Core/GameObjectManager.cpp | Hukunaa/Condamnation | 04efeb6ee62013a8399695a8294d9bd9e9f0f41d | [
"MIT"
] | null | null | null | Core/src/Core/GameObjectManager.cpp | Hukunaa/Condamnation | 04efeb6ee62013a8399695a8294d9bd9e9f0f41d | [
"MIT"
] | null | null | null | #include <tinyxml2.h>
#include <Core/GameObjectManager.h>
#include <Components/LightComp.h>
#include <Components/TransformComp.h>
#include <Components/MaterialComp.h>
#include <Components/BoxColliderComp.h>
#include <Components/RigidBodyComp.h>
#include <Components/ModelComp.h>
#include <Rendering/Managers/InputManage... | 40.29703 | 206 | 0.634808 | Hukunaa |
325a6205d1eb661c7f53405784f58e121e4906c4 | 93,995 | cpp | C++ | unittest/biunique_map_test.cpp | suomesta/ken3 | edac96489d5b638dc4eff25454fcca1307ca86e9 | [
"MIT"
] | null | null | null | unittest/biunique_map_test.cpp | suomesta/ken3 | edac96489d5b638dc4eff25454fcca1307ca86e9 | [
"MIT"
] | null | null | null | unittest/biunique_map_test.cpp | suomesta/ken3 | edac96489d5b638dc4eff25454fcca1307ca86e9 | [
"MIT"
] | null | null | null | /**
* @file unittest/biunique_map_test.cpp
* @brief Testing ken3::biunique_map using lest.
* @author toda
* @date 2016-11-24
* @version 0.1.0
* @remark the target is C++11 or more
*/
#include <iterator>
#include <tuple>
#include <vector>
#include "ken3/biunique_map.hpp"
#include "unittest/lest.hpp"
... | 35.323187 | 154 | 0.428342 | suomesta |
3265452c988b768445d55f2700259fcd24c36539 | 532 | hpp | C++ | core/include/olreport/tengine_cfg_data.hpp | wangshankun/Tengine_Atlas | b5485039e72b4a624c795ff95d73eb6d719c7706 | [
"Apache-2.0"
] | 25 | 2018-12-09T09:31:56.000Z | 2021-08-12T10:32:19.000Z | core/include/olreport/tengine_cfg_data.hpp | wangshankun/Tengine_Atlas | b5485039e72b4a624c795ff95d73eb6d719c7706 | [
"Apache-2.0"
] | 1 | 2022-03-31T03:33:42.000Z | 2022-03-31T03:33:42.000Z | core/include/olreport/tengine_cfg_data.hpp | wangshankun/Tengine_Atlas | b5485039e72b4a624c795ff95d73eb6d719c7706 | [
"Apache-2.0"
] | 6 | 2018-12-16T01:18:42.000Z | 2019-09-18T07:29:56.000Z | #ifndef __TENGINE_CFG_DATA_HPP__
#define __TENGINE_CFG_DATA_HPP__
#ifndef EXTERN_CFG_REPORT_DAT
#define CFG_REPORT_TIMER 7200 //seconds
#define CFG_TENGINE_KEY "TENGINE_DEP_171_2019"
#define CFG_TENGINE_TOKEN "TENGINE_DEP"
#define CFG_APPID "tengine_others"
#define CFG_APP_KEY "EzsKwQBYpAADva6k"
#define CFG_API_VERSI... | 23.130435 | 70 | 0.834586 | wangshankun |
326b6347cc3bf49ac4d638cfb6ce752f624bf001 | 1,568 | cpp | C++ | mse.cpp | ArnoGranier/cppCNN | 9573e01eb71a8fdbb6a62812ef02ce0641055277 | [
"MIT"
] | 8 | 2020-01-23T08:26:22.000Z | 2022-02-22T22:50:17.000Z | mse.cpp | ArnoGranier/cppCNN | 9573e01eb71a8fdbb6a62812ef02ce0641055277 | [
"MIT"
] | 1 | 2021-04-11T02:03:48.000Z | 2021-04-11T02:05:15.000Z | mse.cpp | ArnoGranier/cppCNN | 9573e01eb71a8fdbb6a62812ef02ce0641055277 | [
"MIT"
] | null | null | null | #include "mse.hpp"
namespace cppcnn{
double MSE::compute(const vector<double>& prediction,
int8_t expected_int) const
{
double loss=0.0;
// We receive the expected result as an int between 0 and 9 (equivalent to
// a label). The expected activation of the output layer of th... | 32.666667 | 78 | 0.617347 | ArnoGranier |
3270b3b301028853379f60a7cfd8f8b6c5a9458d | 3,266 | cpp | C++ | Src/HideoutComponent.cpp | 4anotherday/DarkMaze | e032b05641019cf5d69fd5c8bec9949f250c6c3f | [
"MIT"
] | null | null | null | Src/HideoutComponent.cpp | 4anotherday/DarkMaze | e032b05641019cf5d69fd5c8bec9949f250c6c3f | [
"MIT"
] | null | null | null | Src/HideoutComponent.cpp | 4anotherday/DarkMaze | e032b05641019cf5d69fd5c8bec9949f250c6c3f | [
"MIT"
] | null | null | null | #include "HideoutComponent.h"
#include "HealthComponent.h"
#include "ComponentIDs.h"
#include "includeLUA.h"
#include "Transform.h"
#include "PlayerVisibilityComponent.h"
#include "UserComponentsIDs.h"
#include "GameObject.h"
#include "RenderObjectComponent.h"
#include "ColliderComponent.h"
#include "Engine.h"
#include... | 37.54023 | 192 | 0.748928 | 4anotherday |
327946e7065a6100efe3614c0625ad6f721a0199 | 20,551 | cpp | C++ | graphalgorithms/AStarDelay.cpp | AaronTrip/hog2 | 96616b40f4173959b127011c76f3e649688e1a99 | [
"MIT"
] | 2 | 2021-06-09T13:54:15.000Z | 2021-07-04T13:30:46.000Z | graphalgorithms/AStarDelay.cpp | AaronTrip/hog2 | 96616b40f4173959b127011c76f3e649688e1a99 | [
"MIT"
] | null | null | null | graphalgorithms/AStarDelay.cpp | AaronTrip/hog2 | 96616b40f4173959b127011c76f3e649688e1a99 | [
"MIT"
] | 2 | 2017-04-17T11:08:57.000Z | 2017-04-18T08:28:27.000Z | /*
* AStarDelay.cpp
* hog2
*
* Created by Nathan Sturtevant on 9/27/07.
* Copyright 2007 __MyCompanyName__. All rights reserved.
*
*/
#include <sys/time.h>
#include <math.h>
#include <cstring>
#include "AStarDelay.h"
using namespace AStarDelayUtil;
using namespace GraphSearchConstants;
const static bool v... | 25.592777 | 165 | 0.655297 | AaronTrip |
327d7915177103e31c46d8dc5f826a0c47939658 | 34,215 | cpp | C++ | ui/widgets/shader_node_view_widget.cpp | ppearson/ImaginePartial | 9871b052f2edeb023e2845578ad69c25c5baf7d2 | [
"Apache-2.0"
] | 1 | 2018-07-10T13:36:38.000Z | 2018-07-10T13:36:38.000Z | ui/widgets/shader_node_view_widget.cpp | ppearson/ImaginePartial | 9871b052f2edeb023e2845578ad69c25c5baf7d2 | [
"Apache-2.0"
] | null | null | null | ui/widgets/shader_node_view_widget.cpp | ppearson/ImaginePartial | 9871b052f2edeb023e2845578ad69c25c5baf7d2 | [
"Apache-2.0"
] | null | null | null | /*
Imagine
Copyright 2016 Peter Pearson.
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... | 33.218447 | 143 | 0.747596 | ppearson |
32851497790e9fc8cb3d7034a825f68a172bf513 | 2,043 | cpp | C++ | tests/dsp_scalardelayline_tests.cpp | jontio/JSquelch | 72805d6e08035daca09e6c668c63f46dc66674a2 | [
"MIT"
] | 2 | 2021-07-11T03:36:42.000Z | 2022-03-26T15:04:30.000Z | tests/dsp_scalardelayline_tests.cpp | jontio/JSquelch | 72805d6e08035daca09e6c668c63f46dc66674a2 | [
"MIT"
] | null | null | null | tests/dsp_scalardelayline_tests.cpp | jontio/JSquelch | 72805d6e08035daca09e6c668c63f46dc66674a2 | [
"MIT"
] | null | null | null | #include "../src/dsp/dsp.h"
#include "../src/util/RuntimeError.h"
#include "../src/util/stdio_utils.h"
#include "../src/util/file_utils.h"
#include <QFile>
#include <QDataStream>
#include <iostream>
//important for Qt include cpputest last as it mucks up new and causes compiling to fail
#include "CppUTest/TestHarness.... | 24.321429 | 93 | 0.643661 | jontio |
3285d054d851d23edfbcd08c2e2dfb69ae0738f4 | 11,412 | cc | C++ | pkg/oc/varinfo.cc | ViennaNovoFlop/ViennaNovoFlop-dev | f8c4d6c06590a0d9a3890d81e9b0b4dcb7ea9e00 | [
"TCL",
"SWL",
"MIT",
"X11",
"BSD-3-Clause"
] | null | null | null | pkg/oc/varinfo.cc | ViennaNovoFlop/ViennaNovoFlop-dev | f8c4d6c06590a0d9a3890d81e9b0b4dcb7ea9e00 | [
"TCL",
"SWL",
"MIT",
"X11",
"BSD-3-Clause"
] | null | null | null | pkg/oc/varinfo.cc | ViennaNovoFlop/ViennaNovoFlop-dev | f8c4d6c06590a0d9a3890d81e9b0b4dcb7ea9e00 | [
"TCL",
"SWL",
"MIT",
"X11",
"BSD-3-Clause"
] | null | null | null | /* FILE: varinfo.cc -*-Mode: c++-*-
*
* Small program to probe system characteristics.
*
* Last modified on: $Date: 2009-11-06 05:42:23 $
* Last modified by: $Author: donahue $
*
*/
#include <errno.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <time.h>
#include <limits.h>
#inclu... | 28.247525 | 77 | 0.640379 | ViennaNovoFlop |
3286b7e617ed6b57216c4d1e94931b07250b85b8 | 1,423 | cpp | C++ | UltraDV/Source/TKeyFrame.cpp | ModeenF/UltraDV | 30474c60880de541b33687c96293766fe0dc4aef | [
"Unlicense"
] | null | null | null | UltraDV/Source/TKeyFrame.cpp | ModeenF/UltraDV | 30474c60880de541b33687c96293766fe0dc4aef | [
"Unlicense"
] | null | null | null | UltraDV/Source/TKeyFrame.cpp | ModeenF/UltraDV | 30474c60880de541b33687c96293766fe0dc4aef | [
"Unlicense"
] | null | null | null | //---------------------------------------------------------------------
//
// File: TKeyFrame.cpp
//
// Author: Mike Ost
//
// Date: 10.23.98
//
// Desc:
//
// TKeyFrame is owned by TCueEffect. It associates a time with a
// TEffectState, as defined by the add-on effects classes. This
// provides a generic interface to... | 21.560606 | 71 | 0.476458 | ModeenF |
3289d2425a82c902390a490c3a280314b8aa1e8f | 9,408 | hpp | C++ | WICWIU_src/Operator/ReShape.hpp | wok1909/WICWIU-OSSLab-Final-Project | ea172614c3106de3a8e203acfac8f0dd4eca7c7c | [
"Apache-2.0"
] | 119 | 2018-05-30T01:16:36.000Z | 2021-11-08T13:01:07.000Z | WICWIU_src/Operator/ReShape.hpp | wok1909/WICWIU-OSSLab-Final-Project | ea172614c3106de3a8e203acfac8f0dd4eca7c7c | [
"Apache-2.0"
] | 24 | 2018-08-05T16:50:42.000Z | 2020-10-28T00:38:48.000Z | WICWIU_src/Operator/ReShape.hpp | wok1909/WICWIU-OSSLab-Final-Project | ea172614c3106de3a8e203acfac8f0dd4eca7c7c | [
"Apache-2.0"
] | 35 | 2018-06-29T17:10:13.000Z | 2021-06-05T04:07:48.000Z | #ifndef RESHAPE_H_
#define RESHAPE_H_ value
#include "../Operator.hpp"
template<typename DTYPE>
class ReShape : public Operator<DTYPE>{
public:
/*!
@brief ReShape의 생성자
@details 파라미터로 받은 pInput, pRowSize, pColSize으로 Alloc한다.
@param pInput ReShape할 Operator.
@param pRowSize ReShape으로 새로 만들어질 Tens... | 36.045977 | 200 | 0.615434 | wok1909 |
329276ffdf0b38e9ba8e91fcb9a36241b80c91c8 | 42,781 | cpp | C++ | glstate.cpp | prahal/apitrace | e9426dd61586757d23d7dddc85b3076f477e7f07 | [
"MIT"
] | 1 | 2020-06-19T12:34:44.000Z | 2020-06-19T12:34:44.000Z | glstate.cpp | prahal/apitrace | e9426dd61586757d23d7dddc85b3076f477e7f07 | [
"MIT"
] | null | null | null | glstate.cpp | prahal/apitrace | e9426dd61586757d23d7dddc85b3076f477e7f07 | [
"MIT"
] | null | null | null | /**************************************************************************
*
* Copyright 2011 Jose Fonseca
* All Rights Reserved.
*
* 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 wit... | 29.709028 | 145 | 0.634254 | prahal |
3293ffac38541bdbd5aa838b8b39b45efafd8ca3 | 1,218 | hpp | C++ | Software/STM/APP/Screens/StateAccel.hpp | ProrokWielki/Wooden-Clock | 96226750ab4b679764b0b254d3c3c21deb658252 | [
"MIT"
] | 1 | 2018-12-14T07:05:33.000Z | 2018-12-14T07:05:33.000Z | Software/STM/APP/Screens/StateAccel.hpp | ProrokWielki/Wooden-Clock | 96226750ab4b679764b0b254d3c3c21deb658252 | [
"MIT"
] | null | null | null | Software/STM/APP/Screens/StateAccel.hpp | ProrokWielki/Wooden-Clock | 96226750ab4b679764b0b254d3c3c21deb658252 | [
"MIT"
] | null | null | null | /**
* StataAccel.hpp
*
* Created on: 02-05-2020
* @author: Paweł Warzecha
*/
#ifndef APP_STATEMACHINE_STATES_STATEACCEL_HPP_
#define APP_STATEMACHINE_STATES_STATEACCEL_HPP_
#include <Canvas.hpp>
#include "LSM9DS1/LSM9DS1.hpp"
#include "BSP.hpp"
class StateAccel: public Canvas
{
public:
explicit StateAcc... | 19.03125 | 99 | 0.569787 | ProrokWielki |
3298f89e4f50077b33b105f16202820fef1bbd25 | 2,554 | cc | C++ | test/limits.cc | root-project/VecCore | 9375eb6005d08b2bca3b0a2b62e90dbe21694176 | [
"Apache-2.0"
] | 56 | 2017-04-12T17:57:33.000Z | 2021-12-18T03:28:24.000Z | test/limits.cc | root-project/VecCore | 9375eb6005d08b2bca3b0a2b62e90dbe21694176 | [
"Apache-2.0"
] | 19 | 2017-05-09T06:40:48.000Z | 2021-11-01T09:54:24.000Z | test/limits.cc | root-project/VecCore | 9375eb6005d08b2bca3b0a2b62e90dbe21694176 | [
"Apache-2.0"
] | 22 | 2017-04-10T13:41:15.000Z | 2021-08-20T09:05:10.000Z | #include "test.h"
template <class T> class NumericLimitsTest : public VectorTypeTest<T> {};
TYPED_TEST_SUITE_P(NumericLimitsTest);
TYPED_TEST_P(NumericLimitsTest, Limits) {
using Scalar_t = typename TestFixture::Scalar_t;
using Vector_t = typename TestFixture::Vector_t;
using vecCore::Get;
using vecCore::Nu... | 35.472222 | 80 | 0.676586 | root-project |
32993408f853be203f88de88f31cbb638cafb756 | 1,277 | cpp | C++ | Task 3/RSA.cpp | John-Ghaly88/Cryptography_Course | 7045e931c77032024bbebd2305895003a8625467 | [
"MIT"
] | null | null | null | Task 3/RSA.cpp | John-Ghaly88/Cryptography_Course | 7045e931c77032024bbebd2305895003a8625467 | [
"MIT"
] | null | null | null | Task 3/RSA.cpp | John-Ghaly88/Cryptography_Course | 7045e931c77032024bbebd2305895003a8625467 | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
using namespace std;
int gcd(int x, int y)
{
if (x == 0)
return y;
return gcd(y % x, x);
}
int EulerTotient(int x)
{
int r = 1;
for (int i = 2; i < x; i++)
if (gcd(i, x) == 1)
r++;
return r;
}
int main()
{
cout << "Input n | n < 65536" <<... | 22.403509 | 106 | 0.512921 | John-Ghaly88 |
32997875f0e6406feec6fd94326385f6ae80d4c6 | 484 | cpp | C++ | VD_prep/VR_rep_K2016/main.cpp | theroyalcoder/old.HF-ICT-4-SEM-GUI | d97bec83f339807a0054449421fe061ba901ddf3 | [
"MIT"
] | null | null | null | VD_prep/VR_rep_K2016/main.cpp | theroyalcoder/old.HF-ICT-4-SEM-GUI | d97bec83f339807a0054449421fe061ba901ddf3 | [
"MIT"
] | null | null | null | VD_prep/VR_rep_K2016/main.cpp | theroyalcoder/old.HF-ICT-4-SEM-GUI | d97bec83f339807a0054449421fe061ba901ddf3 | [
"MIT"
] | 1 | 2018-05-03T21:46:28.000Z | 2018-05-03T21:46:28.000Z | #include <iostream>
using namespace std;
//Klausur 2015
int crossumRec(unsigned int n, int result) {
return result + (n % 10);
}
int crossum(unsigned int n) {
int result = 0;
int localN = n;
while (localN > 0) {
result = crossumRec(localN, result);
localN /= 10;
}
return result... | 16.689655 | 52 | 0.586777 | theroyalcoder |
329b7301fa019f359ee470e9ed947bfc831d8237 | 15,527 | cc | C++ | source/common/upstream/load_balancer_impl.cc | Sodman/envoy | 9cb135e059ac6af052e5a5aa6c6c279aada1850b | [
"Apache-2.0"
] | null | null | null | source/common/upstream/load_balancer_impl.cc | Sodman/envoy | 9cb135e059ac6af052e5a5aa6c6c279aada1850b | [
"Apache-2.0"
] | null | null | null | source/common/upstream/load_balancer_impl.cc | Sodman/envoy | 9cb135e059ac6af052e5a5aa6c6c279aada1850b | [
"Apache-2.0"
] | 1 | 2020-12-30T17:12:11.000Z | 2020-12-30T17:12:11.000Z | #include "common/upstream/load_balancer_impl.h"
#include <cstdint>
#include <string>
#include <vector>
#include "envoy/runtime/runtime.h"
#include "envoy/stats/stats.h"
#include "envoy/upstream/upstream.h"
#include "common/common/assert.h"
namespace Envoy {
namespace Upstream {
namespace {
const HostSet* bestAvail... | 40.968338 | 99 | 0.724351 | Sodman |
329eae5447f0cd48d1e279aab3660dbbae09d470 | 1,092 | cpp | C++ | src/CubeSystem/CubeManagerInputs.cpp | frc2081/2018-RobotCode | 6eec5af9b42df4bbd9f43ae6bd0cedc8fa7e0019 | [
"MIT"
] | null | null | null | src/CubeSystem/CubeManagerInputs.cpp | frc2081/2018-RobotCode | 6eec5af9b42df4bbd9f43ae6bd0cedc8fa7e0019 | [
"MIT"
] | 5 | 2018-01-18T03:25:07.000Z | 2018-03-16T13:27:53.000Z | src/CubeSystem/CubeManagerInputs.cpp | frc2081/2018-RobotCode | 6eec5af9b42df4bbd9f43ae6bd0cedc8fa7e0019 | [
"MIT"
] | null | null | null | /*
* CubeManagerInputs.cpp
*
* Created on: Feb 2, 2018
* Author: wentzdr
*/
#include <CubeSystem/CubeManagerInputs.h>
CubeManagerInputs::CubeManagerInputs() {
intakeCubeSensor = CubeSensor::NO_CUBE_PRESENT;
shooterCubeSensor = CubeSensor::NO_CUBE_PRESENT;
shooterangleactualvalue = 0;
arm... | 25.395349 | 87 | 0.757326 | frc2081 |
32a0c7754769a1c3f4cc12714467089ebc1be583 | 4,237 | cpp | C++ | Alien Engine/Alien Engine/ModuleAudio.cpp | OverPowered-Team/Alien-GameEngine | 713a8846a95fdf253d0869bdcad4ecd006b2e166 | [
"MIT"
] | 7 | 2020-02-20T15:11:11.000Z | 2020-05-19T00:29:04.000Z | Alien Engine/Alien Engine/ModuleAudio.cpp | OverPowered-Team/Alien-GameEngine | 713a8846a95fdf253d0869bdcad4ecd006b2e166 | [
"MIT"
] | 125 | 2020-02-29T17:17:31.000Z | 2020-05-06T19:50:01.000Z | Alien Engine/Alien Engine/ModuleAudio.cpp | OverPowered-Team/Alien-GameEngine | 713a8846a95fdf253d0869bdcad4ecd006b2e166 | [
"MIT"
] | 1 | 2020-05-19T00:29:06.000Z | 2020-05-19T00:29:06.000Z | #include "Application.h"
#include "ModuleAudio.h"
#include "ComponentAudioEmitter.h"
#include "Event.h"
#include "mmgr/mmgr.h"
#include "Optick/include/optick.h"
ModuleAudio::ModuleAudio(bool start_enabled) : Module(start_enabled)
{
name = "audio";
}
ModuleAudio::~ModuleAudio()
{}
bool ModuleAudio::Start()
{
// I... | 19.892019 | 91 | 0.648808 | OverPowered-Team |
32a4a11ad05be2aba57383316057873d2484b831 | 1,974 | cpp | C++ | src/filter/filterset.cpp | ikitayama/cobi | e9bc4a5675ead1874ad9ffa953de8edb3a763479 | [
"BSD-3-Clause"
] | null | null | null | src/filter/filterset.cpp | ikitayama/cobi | e9bc4a5675ead1874ad9ffa953de8edb3a763479 | [
"BSD-3-Clause"
] | null | null | null | src/filter/filterset.cpp | ikitayama/cobi | e9bc4a5675ead1874ad9ffa953de8edb3a763479 | [
"BSD-3-Clause"
] | 1 | 2018-12-14T02:45:41.000Z | 2018-12-14T02:45:41.000Z | /*****************************************************************************
** Cobi http://www.scalasca.org/ **
*****************************************************************************
** Copyright (c) 2009-2010 **
** ... | 28.608696 | 79 | 0.479737 | ikitayama |
32ae93de04e4ee99e86e2c39c1712e06c1835e29 | 10,433 | cpp | C++ | vendor/android-tools/init/util.cpp | dylanh333/android-unmkbootimg | 7c30a58b5bc3d208fbbbbc713717e2aae98df699 | [
"MIT"
] | 3 | 2018-04-01T18:35:29.000Z | 2020-12-18T21:09:53.000Z | vendor/android-tools/init/util.cpp | dylanh333/android-unmkbootimg | 7c30a58b5bc3d208fbbbbc713717e2aae98df699 | [
"MIT"
] | 2 | 2017-04-24T12:29:05.000Z | 2017-05-09T12:27:10.000Z | vendor/android-tools/init/util.cpp | dylanh333/android-unmkbootimg | 7c30a58b5bc3d208fbbbbc713717e2aae98df699 | [
"MIT"
] | null | null | null | /*
* Copyright (C) 2008 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... | 28.045699 | 111 | 0.571456 | dylanh333 |
32af3355a38b4aaf5e250e11dc330039addb0cf9 | 2,095 | cpp | C++ | powermode.cpp | eddiejames/openpower-occ-control-1 | bc2f68b9a5cabbdedd988ac14e010d651c685601 | [
"Apache-2.0"
] | 1 | 2021-08-10T21:50:06.000Z | 2021-08-10T21:50:06.000Z | powermode.cpp | eddiejames/openpower-occ-control-1 | bc2f68b9a5cabbdedd988ac14e010d651c685601 | [
"Apache-2.0"
] | 1 | 2021-10-19T19:47:53.000Z | 2021-10-19T19:47:53.000Z | powermode.cpp | eddiejames/openpower-occ-control-1 | bc2f68b9a5cabbdedd988ac14e010d651c685601 | [
"Apache-2.0"
] | 2 | 2019-07-16T16:13:01.000Z | 2021-10-20T21:41:02.000Z | #include <fmt/core.h>
#include <phosphor-logging/log.hpp>
#include <powermode.hpp>
#include <xyz/openbmc_project/Control/Power/Mode/server.hpp>
#include <cassert>
#include <regex>
namespace open_power
{
namespace occ
{
namespace powermode
{
using namespace phosphor::logging;
using Mode = sdbusplus::xyz::openbmc_pro... | 23.539326 | 80 | 0.623389 | eddiejames |
32b0095056c444d81f3846253150025d0ec460d9 | 1,673 | hpp | C++ | util/logging.hpp | farlies/rsked | cd2004bed454578f4d2ac25996dc1ced98d4fa58 | [
"Apache-2.0"
] | null | null | null | util/logging.hpp | farlies/rsked | cd2004bed454578f4d2ac25996dc1ced98d4fa58 | [
"Apache-2.0"
] | null | null | null | util/logging.hpp | farlies/rsked | cd2004bed454578f4d2ac25996dc1ced98d4fa58 | [
"Apache-2.0"
] | 1 | 2020-10-04T22:14:55.000Z | 2020-10-04T22:14:55.000Z | #pragma once
/* Logging functions and macros used by all rsked applications.
*/
/* Part of the rsked package.
*
* Copyright 2020 Steven A. Harp
*
* 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 cop... | 30.981481 | 78 | 0.73162 | farlies |
32b0d7ad2c5ae1910e4a9e345a6279e42bae61d6 | 669 | cpp | C++ | test/forty_two.cpp | vinniefalco/library-template | 8fa8395d917163c29b9ecc21145ba78028b724da | [
"BSL-1.0"
] | 6 | 2020-03-02T22:40:17.000Z | 2020-03-09T20:49:24.000Z | test/forty_two.cpp | vinniefalco/library-template | 8fa8395d917163c29b9ecc21145ba78028b724da | [
"BSL-1.0"
] | 1 | 2020-12-01T20:01:36.000Z | 2020-12-01T20:01:36.000Z | test/forty_two.cpp | vinniefalco/library-template | 8fa8395d917163c29b9ecc21145ba78028b724da | [
"BSL-1.0"
] | 1 | 2020-11-30T22:29:51.000Z | 2020-11-30T22:29:51.000Z | //
// Copyright (c) 2020 Vinnie Falco (vinnie.falco@gmail.com)
//
// 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)
//
// Official repository: https://github.com/vinniefalco/library_template
//
// Test that header fi... | 20.90625 | 79 | 0.718984 | vinniefalco |
32b3ed3d609f2e874e79a1eb38b24d97ab1952fe | 839 | cpp | C++ | C/common/string_utils.cpp | ashish-ScaleDB/FogLAMP | fd52bc53f6a10752acdb1c549279dcaa406893a5 | [
"Apache-2.0"
] | 1 | 2020-09-10T11:34:04.000Z | 2020-09-10T11:34:04.000Z | C/common/string_utils.cpp | YashTatkondawar/FogLAMP | 6a3a6d45db9c9f0058110252202826e9859ccfa1 | [
"Apache-2.0"
] | 1 | 2017-09-06T14:05:21.000Z | 2017-09-06T14:05:21.000Z | C/common/string_utils.cpp | YashTatkondawar/FogLAMP | 6a3a6d45db9c9f0058110252202826e9859ccfa1 | [
"Apache-2.0"
] | null | null | null | /*
* FogLAMP utilities functions for handling JSON document
*
* Copyright (c) 2018 Dianomic Systems
*
* Released under the Apache 2.0 Licence
*
* Author: Stefano Simonelli
*/
#include <iostream>
#include <string>
#include "string_utils.h"
using namespace std;
/**
* Search and replace a string
*
* @param o... | 22.675676 | 80 | 0.709178 | ashish-ScaleDB |
32be67a5dc1a4a37e175de639614a6c71929c546 | 2,995 | cpp | C++ | Algorithms/0576.OutOfBoundaryPaths/solution.cpp | stdstring/leetcode | 84e6bade7d6fc1a737eb6796cb4e2565440db5e3 | [
"MIT"
] | null | null | null | Algorithms/0576.OutOfBoundaryPaths/solution.cpp | stdstring/leetcode | 84e6bade7d6fc1a737eb6796cb4e2565440db5e3 | [
"MIT"
] | null | null | null | Algorithms/0576.OutOfBoundaryPaths/solution.cpp | stdstring/leetcode | 84e6bade7d6fc1a737eb6796cb4e2565440db5e3 | [
"MIT"
] | null | null | null | #include <algorithm>
#include <vector>
#include "gtest/gtest.h"
namespace
{
class Solution
{
public:
int findPaths(int m, int n, int N, int i, int j) const
{
if (N == 0)
return 0;
size_t outPathsCount = 0;
const size_t storageSize = static_cast<size_t>(m) * n;
std:... | 31.197917 | 151 | 0.52187 | stdstring |
32c39ab5131ad707f6a922aff6697cbd0ace3949 | 2,732 | cpp | C++ | PATA1017.cpp | Geeks-Z/PAT-Advanced-Level-Practice | 6b25d07ae602310215e46c951638b93080b382bf | [
"MIT"
] | null | null | null | PATA1017.cpp | Geeks-Z/PAT-Advanced-Level-Practice | 6b25d07ae602310215e46c951638b93080b382bf | [
"MIT"
] | null | null | null | PATA1017.cpp | Geeks-Z/PAT-Advanced-Level-Practice | 6b25d07ae602310215e46c951638b93080b382bf | [
"MIT"
] | null | null | null | /*
* @Descripttion:
* @version: 1.0
* @Author: Geeks_Z
* @Date: 2021-05-13 10:20:55
* @LastEditors: Geeks_Z
* @LastEditTime: 2021-05-30 21:33:19
*/
#include <cstdio>
#include <iostream>
#include <vector>
using namespace std;
const int MAXN = 501;
const int INF = 100010;
bool vis[MAXN] = {false};
//连接矩阵 起点到该点最短距... | 18.841379 | 86 | 0.453148 | Geeks-Z |
32c49cffb08f92d04c4f2794fcc658344e531edf | 695 | hpp | C++ | NWNXLib/API/Linux/API/CExoLinkedListTemplatedCERFRes.hpp | acaos/nwnxee-unified | 0e4c318ede64028c1825319f39c012e168e0482c | [
"MIT"
] | 1 | 2019-06-04T04:30:24.000Z | 2019-06-04T04:30:24.000Z | NWNXLib/API/Linux/API/CExoLinkedListTemplatedCERFRes.hpp | presscad/nwnee | 0f36b281524e0b7e9796bcf30f924792bf9b8a38 | [
"MIT"
] | null | null | null | NWNXLib/API/Linux/API/CExoLinkedListTemplatedCERFRes.hpp | presscad/nwnee | 0f36b281524e0b7e9796bcf30f924792bf9b8a38 | [
"MIT"
] | 1 | 2019-10-20T07:54:45.000Z | 2019-10-20T07:54:45.000Z | #pragma once
#include <cstdint>
namespace NWNXLib {
namespace API {
// Forward class declarations (defined in the source file)
struct CExoLinkedListInternal;
struct CExoLinkedListTemplatedCERFRes
{
CExoLinkedListInternal* m_pcExoLinkedListInternal;
// The below are auto generated stubs.
CExoLinkedList... | 23.965517 | 113 | 0.811511 | acaos |
32c781b3614915d5dd36d907d45946d4e230d68e | 2,403 | cpp | C++ | NULL Engine/Source/R_Texture.cpp | BarcinoLechiguino/NULL_Engine | f2abecb44bee45b7cbf2d5b53609d79d38ecc5a3 | [
"MIT"
] | 4 | 2020-11-29T12:28:31.000Z | 2021-06-08T17:32:56.000Z | NULL Engine/Source/R_Texture.cpp | BarcinoLechiguino/NULL_Engine | f2abecb44bee45b7cbf2d5b53609d79d38ecc5a3 | [
"MIT"
] | null | null | null | NULL Engine/Source/R_Texture.cpp | BarcinoLechiguino/NULL_Engine | f2abecb44bee45b7cbf2d5b53609d79d38ecc5a3 | [
"MIT"
] | 4 | 2020-11-01T17:06:32.000Z | 2021-01-09T16:58:50.000Z | #include "OpenGL.h"
#include "VariableTypedefs.h"
#include "JSONParser.h"
#include "R_Texture.h"
R_Texture::R_Texture() : Resource(RESOURCE_TYPE::TEXTURE)
{
}
R_Texture::~R_Texture()
{
}
bool R_Texture::CleanUp()
{
bool ret = true;
glDeleteTextures(1, (GLuint*)&tex_data.id);
return ret;
}
bool R_Texture::... | 17.8 | 138 | 0.707033 | BarcinoLechiguino |
32cd67bff30596424078cb678afc661879634df1 | 61 | hpp | C++ | src/boost_metaparse_error_unexpected_end_of_input.hpp | miathedev/BoostForArduino | 919621dcd0c157094bed4df752b583ba6ea6409e | [
"BSL-1.0"
] | 10 | 2018-03-17T00:58:42.000Z | 2021-07-06T02:48:49.000Z | src/boost_metaparse_error_unexpected_end_of_input.hpp | miathedev/BoostForArduino | 919621dcd0c157094bed4df752b583ba6ea6409e | [
"BSL-1.0"
] | 2 | 2021-03-26T15:17:35.000Z | 2021-05-20T23:55:08.000Z | src/boost_metaparse_error_unexpected_end_of_input.hpp | miathedev/BoostForArduino | 919621dcd0c157094bed4df752b583ba6ea6409e | [
"BSL-1.0"
] | 4 | 2019-05-28T21:06:37.000Z | 2021-07-06T03:06:52.000Z | #include <boost/metaparse/error/unexpected_end_of_input.hpp>
| 30.5 | 60 | 0.852459 | miathedev |
32cdd136909d5c3cc58f8a2df095b70277a36735 | 478 | cc | C++ | Code/0152-maximum-product-subarray.cc | SMartQi/Leetcode | 9e35c65a48ba1ecd5436bbe07dd65f993588766b | [
"MIT"
] | 2 | 2019-12-06T14:08:57.000Z | 2020-01-15T15:25:32.000Z | Code/0152-maximum-product-subarray.cc | SMartQi/Leetcode | 9e35c65a48ba1ecd5436bbe07dd65f993588766b | [
"MIT"
] | 1 | 2020-01-15T16:29:16.000Z | 2020-01-26T12:40:13.000Z | Code/0152-maximum-product-subarray.cc | SMartQi/Leetcode | 9e35c65a48ba1ecd5436bbe07dd65f993588766b | [
"MIT"
] | null | null | null | class Solution {
public:
int maxProduct(vector<int>& nums) {
if (nums.size() == 0) {
return 0;
}
int result = nums[0], pos = nums[0], neg = nums[0];
for (int i = 1; i < nums.size(); i++) {
int tmp = pos;
pos = max(nums[i], max(nums[i] * pos, nums[i... | 29.875 | 66 | 0.439331 | SMartQi |
32ce8149e468185aaa18447e4a322920f41b8889 | 941 | cpp | C++ | 126B.cpp | basuki57/Codeforces | 5227c3deecf13d90e5ea45dab0dfc16b44bd028c | [
"MIT"
] | null | null | null | 126B.cpp | basuki57/Codeforces | 5227c3deecf13d90e5ea45dab0dfc16b44bd028c | [
"MIT"
] | null | null | null | 126B.cpp | basuki57/Codeforces | 5227c3deecf13d90e5ea45dab0dfc16b44bd028c | [
"MIT"
] | 2 | 2020-10-03T04:52:14.000Z | 2020-10-03T05:19:12.000Z | //https://codeforces.com/contest/126/problem/B
#include<bits/stdc++.h>
using namespace std;
typedef long long int ll;
vector<ll> zfun(string s){
ll n = s.length();
vector<ll> z(n);
for(ll i = 1; i < n; ++i){
ll j = z[i-1];
while(j > 0 && s[i] != s[j]) j = z[j-1];
if(s[i]== s[j])++j;... | 21.386364 | 54 | 0.446334 | basuki57 |
32d06204c27b116774669b99f6e78685736e1171 | 1,578 | cpp | C++ | SYCL/USM/source_kernel_indirect_access.cpp | asidoren-intel/llvm-test-suite | 93d8391573adfc19b759f971e1269a245be4b87a | [
"Apache-2.0"
] | null | null | null | SYCL/USM/source_kernel_indirect_access.cpp | asidoren-intel/llvm-test-suite | 93d8391573adfc19b759f971e1269a245be4b87a | [
"Apache-2.0"
] | null | null | null | SYCL/USM/source_kernel_indirect_access.cpp | asidoren-intel/llvm-test-suite | 93d8391573adfc19b759f971e1269a245be4b87a | [
"Apache-2.0"
] | null | null | null | // RUN: %clangxx -fsycl -fsycl-targets=%sycl_triple %opencl_lib %s -o %t1.out
// RUN: %CPU_RUN_PLACEHOLDER %t1.out
// RUN: %GPU_RUN_PLACEHOLDER %t1.out
// RUN: %ACC_RUN_PLACEHOLDER %t1.out
// REQUIRES: opencl,opencl_icd
#include <CL/cl.h>
#include <CL/sycl.hpp>
using namespace sycl;
static const char *Src = R"(
kern... | 27.206897 | 77 | 0.636248 | asidoren-intel |
32d2a8c84b423fb5fe0febe95ee200a0dd62bb4a | 1,064 | ipp | C++ | coast/mtfoundation/ThreadPools.ipp | zer0infinity/CuteForCoast | 37d933c5fe2e0ce9a801f51b2aa27c7a18098511 | [
"BSD-3-Clause"
] | null | null | null | coast/mtfoundation/ThreadPools.ipp | zer0infinity/CuteForCoast | 37d933c5fe2e0ce9a801f51b2aa27c7a18098511 | [
"BSD-3-Clause"
] | null | null | null | coast/mtfoundation/ThreadPools.ipp | zer0infinity/CuteForCoast | 37d933c5fe2e0ce9a801f51b2aa27c7a18098511 | [
"BSD-3-Clause"
] | null | null | null | /*
* Copyright (c) 2007, Peter Sommerlad and IFS Institute for Software at HSR Rapperswil, Switzerland
* All rights reserved.
*
* This library/application is free software; you can redistribute and/or modify it under the terms of
* the license that is included with this library/application in the file license.txt.... | 32.242424 | 102 | 0.709586 | zer0infinity |
32d6400d5b4faed0e74ecd60a5837859c0850664 | 3,731 | cpp | C++ | libiop/tests/algebra/test_gf256.cpp | pwang00/libiop | 640a627f0e844caf88ac66cc2ab16f1ef3ea3283 | [
"MIT"
] | null | null | null | libiop/tests/algebra/test_gf256.cpp | pwang00/libiop | 640a627f0e844caf88ac66cc2ab16f1ef3ea3283 | [
"MIT"
] | null | null | null | libiop/tests/algebra/test_gf256.cpp | pwang00/libiop | 640a627f0e844caf88ac66cc2ab16f1ef3ea3283 | [
"MIT"
] | null | null | null | #include <gtest/gtest.h>
#include "libiop/algebra/fields/gf256.hpp"
namespace libiop {
gf256 gf256_mul(const uint64_t &a_val_high, const uint64_t &a_val_midh,
const uint64_t &a_val_midl, const uint64_t &a_val_low,
const uint64_t &b_val_high, const uint64_t &b_val_midh,
... | 95.666667 | 296 | 0.845886 | pwang00 |
32dcdf57ff8a79e18f9c97c82c1e0f33056c689a | 3,011 | hpp | C++ | include/codegen/include/OVR/OpenVR/IVRSystem__GetStringTrackedDeviceProperty.hpp | Futuremappermydud/Naluluna-Modifier-Quest | bfda34370764b275d90324b3879f1a429a10a873 | [
"MIT"
] | 1 | 2021-11-12T09:29:31.000Z | 2021-11-12T09:29:31.000Z | include/codegen/include/OVR/OpenVR/IVRSystem__GetStringTrackedDeviceProperty.hpp | Futuremappermydud/Naluluna-Modifier-Quest | bfda34370764b275d90324b3879f1a429a10a873 | [
"MIT"
] | null | null | null | include/codegen/include/OVR/OpenVR/IVRSystem__GetStringTrackedDeviceProperty.hpp | Futuremappermydud/Naluluna-Modifier-Quest | bfda34370764b275d90324b3879f1a429a10a873 | [
"MIT"
] | 2 | 2021-10-03T02:14:20.000Z | 2021-11-12T09:29:36.000Z | // Autogenerated from CppHeaderCreator on 7/27/2020 3:10:00 PM
// Created by Sc2ad
// =========================================================================
#pragma once
#pragma pack(push, 8)
// Begin includes
#include "utils/typedefs.h"
// Including type: System.MulticastDelegate
#include "System/MulticastDelegate.... | 52.824561 | 272 | 0.771504 | Futuremappermydud |
32dd370c0f9c38cd961a39812a5bbedf9285e81b | 676 | cc | C++ | Code/1659-get-the-maximum-score.cc | SMartQi/Leetcode | 9e35c65a48ba1ecd5436bbe07dd65f993588766b | [
"MIT"
] | 2 | 2019-12-06T14:08:57.000Z | 2020-01-15T15:25:32.000Z | Code/1659-get-the-maximum-score.cc | SMartQi/Leetcode | 9e35c65a48ba1ecd5436bbe07dd65f993588766b | [
"MIT"
] | 1 | 2020-01-15T16:29:16.000Z | 2020-01-26T12:40:13.000Z | Code/1659-get-the-maximum-score.cc | SMartQi/Leetcode | 9e35c65a48ba1ecd5436bbe07dd65f993588766b | [
"MIT"
] | null | null | null | class Solution {
public:
int maxSum(vector<int>& nums1, vector<int>& nums2) {
long long n1 = 0, n2 = 0;
int p = nums1.size() - 1, q = nums2.size() - 1;
while (p >= 0 && q >= 0) {
if (nums1[p] > nums2[q]) {
n1 += nums1[p--];
} else if (nums1[p] < nums2[... | 27.04 | 56 | 0.337278 | SMartQi |
77fe6c5d2daaf516cecb61e5772274380ff47193 | 1,278 | cpp | C++ | bindings/python/src/LibraryPhysicsPy/Environment/Magnetic/Dipole.cpp | cowlicks/library-physics | dd314011132430fcf074a9a1633b24471745cf92 | [
"Apache-2.0"
] | null | null | null | bindings/python/src/LibraryPhysicsPy/Environment/Magnetic/Dipole.cpp | cowlicks/library-physics | dd314011132430fcf074a9a1633b24471745cf92 | [
"Apache-2.0"
] | null | null | null | bindings/python/src/LibraryPhysicsPy/Environment/Magnetic/Dipole.cpp | cowlicks/library-physics | dd314011132430fcf074a9a1633b24471745cf92 | [
"Apache-2.0"
] | null | null | null | ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
/// @project Library ▸ Physics
/// @file LibraryPhysicsPy/Environment/Magnetic/Dipole.cpp
/// @author Lucas Brémond <lucas@loftorbita... | 39.9375 | 160 | 0.324726 | cowlicks |
ae045c9a460af1c7b67fd9565e570a701c9257d3 | 171 | cpp | C++ | config_tools/check_cpu.tool.cpp | SamuraiCrow/AmosKittens | e89477b94a28916e4320fa946c18c0d769c710b2 | [
"MIT"
] | 7 | 2018-04-24T22:11:58.000Z | 2021-09-10T22:12:35.000Z | config_tools/check_cpu.tool.cpp | SamuraiCrow/AmosKittens | e89477b94a28916e4320fa946c18c0d769c710b2 | [
"MIT"
] | 36 | 2018-02-24T18:34:18.000Z | 2021-08-08T10:33:29.000Z | config_tools/check_cpu.tool.cpp | SamuraiCrow/AmosKittens | e89477b94a28916e4320fa946c18c0d769c710b2 | [
"MIT"
] | 2 | 2018-10-22T18:47:30.000Z | 2020-09-16T06:10:52.000Z |
#include <stdio.h>
#include <stdlib.h>
int main(int args,char **arg)
{
int value = 1;
if ( *((char *) &value) == 1 )
{
printf("#define __LITTLE_ENDIAN__\n");
}
} | 12.214286 | 40 | 0.578947 | SamuraiCrow |
ae0a3f06fce60ff1b318cb37a140de678f9abca3 | 1,156 | cpp | C++ | Codeforces/1462C.cpp | DT3264/ProgrammingContestsSolutions | a297f2da654c2ca2815b9aa375c2b4ca0052269d | [
"MIT"
] | null | null | null | Codeforces/1462C.cpp | DT3264/ProgrammingContestsSolutions | a297f2da654c2ca2815b9aa375c2b4ca0052269d | [
"MIT"
] | null | null | null | Codeforces/1462C.cpp | DT3264/ProgrammingContestsSolutions | a297f2da654c2ca2815b9aa375c2b4ca0052269d | [
"MIT"
] | null | null | null | #include<bits/stdc++.h>
#define y1 yy
#define f first
#define s second
#define ll long long
#define vi vector<int>
#define pii pair<int, int>
#define debug if(printDebug)
#define noDebug if(!printDebug)
using namespace std;
template<class T>
using v=vector<T>;
bool printDebug=false;
int ans[51];
bool used[10];
void ... | 21.407407 | 65 | 0.521626 | DT3264 |
ae0ad4adaed1a74b592b4dca91d9e1528077222c | 2,376 | cpp | C++ | test/istream.cpp | danra/scnlib | 815782badc1b548c21bb151372497e1516bee806 | [
"Apache-2.0"
] | 556 | 2018-11-17T01:49:32.000Z | 2022-03-25T09:35:10.000Z | test/istream.cpp | danra/scnlib | 815782badc1b548c21bb151372497e1516bee806 | [
"Apache-2.0"
] | 51 | 2019-05-09T14:36:53.000Z | 2022-03-19T12:47:12.000Z | test/istream.cpp | danra/scnlib | 815782badc1b548c21bb151372497e1516bee806 | [
"Apache-2.0"
] | 21 | 2019-02-11T19:56:30.000Z | 2022-03-28T02:52:27.000Z | // Copyright 2017 Elias Kosunen
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// https://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to ... | 23.294118 | 75 | 0.621212 | danra |
ae0cf9861d85e17a183690be0bd6bf178259c176 | 44,069 | cpp | C++ | src/ModelSet.cpp | marcussvensson92/inner_conservative_occluder_rasterization | cbf05803d1e7658e95277d093dbae9570a874c59 | [
"MIT"
] | null | null | null | src/ModelSet.cpp | marcussvensson92/inner_conservative_occluder_rasterization | cbf05803d1e7658e95277d093dbae9570a874c59 | [
"MIT"
] | 1 | 2017-09-10T11:58:30.000Z | 2017-09-10T11:58:30.000Z | src/ModelSet.cpp | marcussvensson92/inner_conservative_occluder_rasterization | cbf05803d1e7658e95277d093dbae9570a874c59 | [
"MIT"
] | null | null | null | #include "ModelSet.h"
#include "OcclusionAlgorithm.h"
#include <DDSTextureLoader.h>
#include <fstream>
#include <locale>
#include <codecvt>
CModelSet::CModelSet() :
m_InstanceCount( 0 ),
m_MaterialBuffer( nullptr ),
m_MaterialBufferUpload( nullptr ),
m_WorldMatrixBufferSize( 0 ),
m_WorldMatrixB... | 45.85744 | 193 | 0.700992 | marcussvensson92 |
ae0fc2433cb8618561f8767d7d610762b4fcf790 | 2,675 | cc | C++ | legacy/src/game/event.cc | hengruo/RuneSim | f975374c7ce52baf8f226e8485e2e6e155d52cb2 | [
"Apache-2.0"
] | 9 | 2020-04-28T13:47:07.000Z | 2020-10-03T16:05:53.000Z | legacy/src/game/event.cc | hengruo/RuneSim | f975374c7ce52baf8f226e8485e2e6e155d52cb2 | [
"Apache-2.0"
] | null | null | null | legacy/src/game/event.cc | hengruo/RuneSim | f975374c7ce52baf8f226e8485e2e6e155d52cb2 | [
"Apache-2.0"
] | 4 | 2020-04-27T08:13:09.000Z | 2020-06-02T02:48:07.000Z | #include "event.h"
CastEvent::CastEvent(RSID PlayerId, RSID SpellId) : playerId(PlayerId), spellId(SpellId) {}
DeclAttackEvent::DeclAttackEvent(RSID PlayerId, RSID AttackerId, i8 Position)
: playerId(PlayerId), attackerId(AttackerId), position(Position) {}
DeclBlockEvent::DeclBlockEvent(RSID PlayerId, RSID Attacker... | 74.305556 | 114 | 0.776075 | hengruo |
ae11b66c536b7876bda8e855c60424e8136d3641 | 10,081 | cpp | C++ | test/type/logic/And.main.cpp | AnantaYudica/basic | dcbf8c9eebb42a4e6a66b3c56ebc3a7e30626950 | [
"MIT"
] | null | null | null | test/type/logic/And.main.cpp | AnantaYudica/basic | dcbf8c9eebb42a4e6a66b3c56ebc3a7e30626950 | [
"MIT"
] | 178 | 2018-08-08T04:04:27.000Z | 2019-12-15T01:47:58.000Z | test/type/logic/And.main.cpp | AnantaYudica/basic | dcbf8c9eebb42a4e6a66b3c56ebc3a7e30626950 | [
"MIT"
] | null | null | null | #include "type/logic/And.h"
#define USING_BASIC_TEST_MEMORY
#include "Test.h"
BASIC_TEST_CONSTRUCT;
#include "test/Base.h"
#include "test/Case.h"
#include "test/Message.h"
#include "test/Variable.h"
#include "test/var/At.h"
#include <typeinfo>
#include <type_traits>
struct CaseVTa {}; // case value and target
struc... | 37.337037 | 80 | 0.716397 | AnantaYudica |
ae13b2316bf455bd9154221d528693bb9c139d71 | 778 | cpp | C++ | solved/10338 Mischievous Children.cpp | goutomroy/uva.onlinejudge | 5ce09d9e370ad78eabd0fd500ef77ce804e2d0f2 | [
"MIT"
] | null | null | null | solved/10338 Mischievous Children.cpp | goutomroy/uva.onlinejudge | 5ce09d9e370ad78eabd0fd500ef77ce804e2d0f2 | [
"MIT"
] | null | null | null | solved/10338 Mischievous Children.cpp | goutomroy/uva.onlinejudge | 5ce09d9e370ad78eabd0fd500ef77ce804e2d0f2 | [
"MIT"
] | null | null | null | // WRONG ANSWERE
#include<stdio.h>
#include<string.h>
char word[22],nline;
int time[22],len;
void main()
{
int tcase,i,j, k;
double N, fact;
scanf("%d%c",&tcase,&nline);
for(i=0;i<tcase;i++)
{
scanf("%s",word);
scanf("%c",&nline);
len = strlen(word);
if(len==1)
{
printf("Data set %d: ... | 11.61194 | 39 | 0.458869 | goutomroy |
ae161ce585be03f44f9691664d2e5dfe6507241a | 6,759 | cpp | C++ | examples/main.cpp | DarkCaster/Micro-AES-Arduino | ebb1cbf89c2c8d971e9ea111eef2299789c56762 | [
"MIT"
] | null | null | null | examples/main.cpp | DarkCaster/Micro-AES-Arduino | ebb1cbf89c2c8d971e9ea111eef2299789c56762 | [
"MIT"
] | null | null | null | examples/main.cpp | DarkCaster/Micro-AES-Arduino | ebb1cbf89c2c8d971e9ea111eef2299789c56762 | [
"MIT"
] | null | null | null | #include <Arduino.h> //dummy arduino.h for compiling arduino code on desktop systems
#include <aes.h>
#include <cstdio>
#define BLKSZ 16
void verify(const uint8_t * const input, const uint8_t * const output, const uint8_t * const test)
{
//verify
bool verifyOk=true;
for(int i=0;i<BLKSZ;++i)
if(*(test+i)!=*(... | 37.759777 | 188 | 0.733245 | DarkCaster |
ae16385cc7eca56e94f53701d593e2310f2f8d21 | 970 | cpp | C++ | graph-source-code/230-E/4442480.cpp | AmrARaouf/algorithm-detection | 59f3028d2298804870b32729415d71eec6116557 | [
"MIT"
] | null | null | null | graph-source-code/230-E/4442480.cpp | AmrARaouf/algorithm-detection | 59f3028d2298804870b32729415d71eec6116557 | [
"MIT"
] | null | null | null | graph-source-code/230-E/4442480.cpp | AmrARaouf/algorithm-detection | 59f3028d2298804870b32729415d71eec6116557 | [
"MIT"
] | null | null | null | //Language: GNU C++
#include <iostream>
#include <fstream>
#include <sstream>
#include <cstdio>
#include <cstring>
#include <cstdlib>
#include <cctype>
#include <cmath>
#include <ctime>
#include <algorithm>
#include <vector>
#include <queue>
#include <deque>
#include <stack>
#include <set>
#include <ma... | 18.653846 | 51 | 0.598969 | AmrARaouf |
ae194a06ae06c7f94a886e778f5295ea8d9b2247 | 24,020 | hpp | C++ | engine/generic_list.hpp | iyupeng/kvdk | 35e882bf6adc5e931d57fb07c648d0478b9ea146 | [
"Apache-2.0",
"BSD-3-Clause"
] | null | null | null | engine/generic_list.hpp | iyupeng/kvdk | 35e882bf6adc5e931d57fb07c648d0478b9ea146 | [
"Apache-2.0",
"BSD-3-Clause"
] | null | null | null | engine/generic_list.hpp | iyupeng/kvdk | 35e882bf6adc5e931d57fb07c648d0478b9ea146 | [
"Apache-2.0",
"BSD-3-Clause"
] | null | null | null | /* SPDX-License-Identifier: BSD-3-Clause
* Copyright(c) 2021 Intel Corporation
*/
#pragma once
#include <immintrin.h>
#include <libpmem.h>
#include <x86intrin.h>
#include <array>
#include <atomic>
#include <deque>
#include <iomanip>
#include <iostream>
#include <libpmemobj++/string_view.hpp>
#include <mutex>
#incl... | 31.154345 | 80 | 0.613197 | iyupeng |
ae236083dd3d4f9d4d431e5a1fd8148244353fc5 | 1,417 | cpp | C++ | Ejercicio03/compset_iteration_01/lib/RequestHandler/test/test.cpp | SmartNetAR/edi3 | 68e28b58e04b728bc48700378b2afe8f16872974 | [
"MIT"
] | null | null | null | Ejercicio03/compset_iteration_01/lib/RequestHandler/test/test.cpp | SmartNetAR/edi3 | 68e28b58e04b728bc48700378b2afe8f16872974 | [
"MIT"
] | null | null | null | Ejercicio03/compset_iteration_01/lib/RequestHandler/test/test.cpp | SmartNetAR/edi3 | 68e28b58e04b728bc48700378b2afe8f16872974 | [
"MIT"
] | null | null | null | /**
* Copyright (c) 2016 Gabriel Ferreira <gabrielinuz@gmail.com>. All rights reserved.
* This file is part of COMPSET.
* Released under the GPL3 license
* https://opensource.org/licenses/GPL-3.0
**/
#include <iostream>
#include <vector>
#include <unordered_map>
#include <string>
#include <compset/ComponentInterface... | 32.204545 | 122 | 0.721948 | SmartNetAR |
ae23abb8b6a210768d8f1f3438cd33e73abbf59c | 61 | hpp | C++ | addons/modules/modules/curator/prep.hpp | Krzyciu/A3CS | b7144fc9089b5ded6e37cc1fad79b1c2879521be | [
"MIT"
] | 1 | 2020-06-07T00:45:49.000Z | 2020-06-07T00:45:49.000Z | addons/modules/modules/curator/prep.hpp | Krzyciu/A3CS | b7144fc9089b5ded6e37cc1fad79b1c2879521be | [
"MIT"
] | 27 | 2020-05-24T11:09:56.000Z | 2020-05-25T12:28:10.000Z | addons/modules/modules/curator/prep.hpp | Krzyciu/A3CS | b7144fc9089b5ded6e37cc1fad79b1c2879521be | [
"MIT"
] | 2 | 2020-05-31T08:52:45.000Z | 2021-04-16T23:16:37.000Z |
PREP_MODULE(curator,module);
PREP_MODULE(curator,validate);
| 15.25 | 30 | 0.819672 | Krzyciu |
ae253bbbba2b1326e6621f9d165fd1fd8ec7ae36 | 264 | cpp | C++ | src/triangle-rasterizer-demo/src/trdDirectionalLight.cpp | frmr/triangle-rasterizer-demo | 963f32435ebae5b7fbe6fa212709bdc3ea66ac36 | [
"MIT"
] | null | null | null | src/triangle-rasterizer-demo/src/trdDirectionalLight.cpp | frmr/triangle-rasterizer-demo | 963f32435ebae5b7fbe6fa212709bdc3ea66ac36 | [
"MIT"
] | null | null | null | src/triangle-rasterizer-demo/src/trdDirectionalLight.cpp | frmr/triangle-rasterizer-demo | 963f32435ebae5b7fbe6fa212709bdc3ea66ac36 | [
"MIT"
] | null | null | null | #include "trdDirectionalLight.hpp"
trd::DirectionalLight::DirectionalLight(const Vector3& color, Vector3 direction) :
Light(color),
m_direction(direction.normalize())
{
}
const tr::QuadVec3& trd::DirectionalLight::getDirection() const
{
return m_direction;
}
| 20.307692 | 82 | 0.772727 | frmr |
ae2c48b1aa5739963134ca4224fbc585db1d1a24 | 981 | hpp | C++ | aboveGroundSpace.hpp | KrisBierma/textBasedStrategyGame | 231b0e9a33d8892edfb3fd85fb64679c8b237540 | [
"MIT"
] | null | null | null | aboveGroundSpace.hpp | KrisBierma/textBasedStrategyGame | 231b0e9a33d8892edfb3fd85fb64679c8b237540 | [
"MIT"
] | null | null | null | aboveGroundSpace.hpp | KrisBierma/textBasedStrategyGame | 231b0e9a33d8892edfb3fd85fb64679c8b237540 | [
"MIT"
] | null | null | null | /********************************************************************
** Program name:The Secret Treasure, A Text-Based Game (Project 5)
** Author: Kris Bierma
** Date: 12/6/19
** Description: AboveGroundSpace class is derived from Space class.
** It overrides the getSpaceType functions, has its... | 39.24 | 134 | 0.618756 | KrisBierma |
ae2f9969a23231b099261429bcf4614bbb48e80c | 769 | cpp | C++ | Luogu/P7947.cpp | Nickel-Angel/Coding-Practice | 6fb70e9c9542323f82a9a8714727cc668ff58567 | [
"MIT"
] | null | null | null | Luogu/P7947.cpp | Nickel-Angel/Coding-Practice | 6fb70e9c9542323f82a9a8714727cc668ff58567 | [
"MIT"
] | 1 | 2021-11-18T15:10:29.000Z | 2021-11-20T07:13:31.000Z | Luogu/P7947.cpp | Nickel-Angel/ACM-and-OI | 79d13fd008c3a1fe9ebf35329aceb1fcb260d5d9 | [
"MIT"
] | null | null | null | /*
* @author Nickel_Angel (1239004072@qq.com)
* @copyright Copyright (c) 2021
*/
#include <algorithm>
#include <cstdio>
#include <cstring>
#include <numeric>
#include <vector>
int n, k;
std::vector<int> ans;
int main()
{
scanf("%d%d", &n, &k);
for (int i = 2, bound = n; i * i <= bound; ++i)
{
whi... | 18.756098 | 57 | 0.446034 | Nickel-Angel |
ae30af79ea1f3c2125eb94c5fd7f2b5e5aab7fa2 | 1,009 | hpp | C++ | Questless/Questless/src/animation/scene_node.hpp | jonathansharman/questless | bb9ffb2d21cbfde2a71edfecfcbf466479bbbe7d | [
"MIT"
] | 2 | 2020-07-14T12:50:06.000Z | 2020-11-04T02:25:09.000Z | Questless/Questless/src/animation/scene_node.hpp | jonathansharman/questless | bb9ffb2d21cbfde2a71edfecfcbf466479bbbe7d | [
"MIT"
] | null | null | null | Questless/Questless/src/animation/scene_node.hpp | jonathansharman/questless | bb9ffb2d21cbfde2a71edfecfcbf466479bbbe7d | [
"MIT"
] | null | null | null | //! @file
//! @copyright See <a href="LICENSE.txt">LICENSE.txt</a>.
#pragma once
#include "animation.hpp"
#include "utility/reference.hpp"
#include <deque>
namespace ql {
//! An animation with attached child animations. A scene node's transform is composed with its children's transforms.
struct scene_node : anim... | 30.575758 | 118 | 0.733399 | jonathansharman |
ae31b3c508e6deebb4beac171151e2d81164be59 | 119,953 | cpp | C++ | src/parser/ds_lexer.cpp | profelis/daScript | eea57f39dec4dd6168ee64c8ae5139cbcf2937bc | [
"BSD-3-Clause"
] | 421 | 2019-08-15T15:40:04.000Z | 2022-03-29T06:59:06.000Z | src/parser/ds_lexer.cpp | profelis/daScript | eea57f39dec4dd6168ee64c8ae5139cbcf2937bc | [
"BSD-3-Clause"
] | 55 | 2019-08-17T13:50:53.000Z | 2022-03-25T17:58:38.000Z | src/parser/ds_lexer.cpp | profelis/daScript | eea57f39dec4dd6168ee64c8ae5139cbcf2937bc | [
"BSD-3-Clause"
] | 58 | 2019-08-22T17:04:13.000Z | 2022-03-25T17:43:28.000Z | #line 1 "ds_lexer.cpp"
#line 3 "ds_lexer.cpp"
#define YY_INT_ALIGNED short int
/* A lexical scanner generated by flex */
#define FLEX_SCANNER
#define YY_FLEX_MAJOR_VERSION 2
#define YY_FLEX_MINOR_VERSION 6
#define YY_FLEX_SUBMINOR_VERSION 4
#if YY_FLEX_SUBMINOR_VERSION > 0
#define FLEX_BETA
#endif
#ifdef yy_creat... | 28.304153 | 142 | 0.631289 | profelis |
ae321c80dfaadc0e06163c683151a761e76510f2 | 767 | cpp | C++ | union_find/test.cpp | fedom/Algorithms | 94f9c80c7425d4739be8fb67292deb6b8bb78cc2 | [
"MIT"
] | null | null | null | union_find/test.cpp | fedom/Algorithms | 94f9c80c7425d4739be8fb67292deb6b8bb78cc2 | [
"MIT"
] | null | null | null | union_find/test.cpp | fedom/Algorithms | 94f9c80c7425d4739be8fb67292deb6b8bb78cc2 | [
"MIT"
] | null | null | null | #include "quick_find_uf.h"
#include <stdio.h>
#include <time.h>
#include <fstream>
#include <iostream>
int main(int argc, char *argv[]) {
char *file = "tinyUF.txt";
if (argc >= 2) file = argv[1];
std::ifstream ifs(file);
if (ifs.is_open()) {
int total;
ifs >> total;
std::cou... | 18.707317 | 60 | 0.461538 | fedom |
ae32bfab82b547009bae83a8b64a52cb93584c57 | 7,730 | cpp | C++ | src/slg/kernels/texture_noise_funcs_kernel.cpp | DavidBluecame/LuxRays | be0f5228b8b65268278a6c6a1c98564ebdc27c05 | [
"Apache-2.0"
] | null | null | null | src/slg/kernels/texture_noise_funcs_kernel.cpp | DavidBluecame/LuxRays | be0f5228b8b65268278a6c6a1c98564ebdc27c05 | [
"Apache-2.0"
] | null | null | null | src/slg/kernels/texture_noise_funcs_kernel.cpp | DavidBluecame/LuxRays | be0f5228b8b65268278a6c6a1c98564ebdc27c05 | [
"Apache-2.0"
] | null | null | null | #include <string>
namespace slg { namespace ocl {
std::string KernelSource_texture_noise_funcs =
"#line 2 \"texture_noise_funcs.cl\"\n"
"\n"
"/***************************************************************************\n"
" * Copyright 1998-2015 by authors (see AUTHORS.txt) *\n"
" * ... | 52.22973 | 103 | 0.520181 | DavidBluecame |
ae33f2a025285a2f707a6f723ac0a96c58b54f7e | 10,060 | cpp | C++ | LEGACY/src/librapid/array/multiarray_constructors.cpp | NervousNullPtr/librapid | 2a8f4baccf479138097d5b4ee9e6e060ecab55db | [
"MIT"
] | null | null | null | LEGACY/src/librapid/array/multiarray_constructors.cpp | NervousNullPtr/librapid | 2a8f4baccf479138097d5b4ee9e6e060ecab55db | [
"MIT"
] | null | null | null | LEGACY/src/librapid/array/multiarray_constructors.cpp | NervousNullPtr/librapid | 2a8f4baccf479138097d5b4ee9e6e060ecab55db | [
"MIT"
] | null | null | null | #include <librapid/array/multiarray.hpp>
#include <librapid/utils/array_utils.hpp>
namespace librapid {
RawArray validRawArray =
RawArray {(int64_t *)nullptr, Datatype::VALIDNONE, Accelerator::CPU};
#ifdef LIBRAPID_HAS_CUDA
# ifdef LIBRAPID_CUDA_STREAM
cudaStream_t cudaStream;
bool streamCreated = false;
# e... | 26.826667 | 75 | 0.647614 | NervousNullPtr |
ae36c8f83d840e914ead13a81dc0fa31d4615f64 | 49 | cpp | C++ | SpaceStationRescueSouls/SpaceStationRescueSouls/src/component/CollisionWorld.cpp | Neversee-Productions/Space-Station-Rescue-Souls | 48621dd8ddf9c6282669b1547ebca0af56ef7fa9 | [
"MIT"
] | 1 | 2020-03-24T04:40:18.000Z | 2020-03-24T04:40:18.000Z | SpaceStationRescueSouls/SpaceStationRescueSouls/src/component/CollisionWorld.cpp | Neversee-Productions/Space-Station-Rescue-Souls | 48621dd8ddf9c6282669b1547ebca0af56ef7fa9 | [
"MIT"
] | null | null | null | SpaceStationRescueSouls/SpaceStationRescueSouls/src/component/CollisionWorld.cpp | Neversee-Productions/Space-Station-Rescue-Souls | 48621dd8ddf9c6282669b1547ebca0af56ef7fa9 | [
"MIT"
] | 1 | 2020-03-24T04:40:19.000Z | 2020-03-24T04:40:19.000Z | #include "stdafx.h"
#include "CollisionWorld.h"
| 16.333333 | 27 | 0.734694 | Neversee-Productions |
ae447a75f3782605d88fb73540042d950f0cd565 | 4,680 | hpp | C++ | common/phonebook.hpp | canaryinthemines/ILLIXR | 1e3d9b2a4c56f6bf311cbeda83171359e285b10e | [
"NCSA",
"MIT"
] | null | null | null | common/phonebook.hpp | canaryinthemines/ILLIXR | 1e3d9b2a4c56f6bf311cbeda83171359e285b10e | [
"NCSA",
"MIT"
] | null | null | null | common/phonebook.hpp | canaryinthemines/ILLIXR | 1e3d9b2a4c56f6bf311cbeda83171359e285b10e | [
"NCSA",
"MIT"
] | null | null | null | #pragma once
#include <typeindex>
#include <stdexcept>
#include <iostream>
#include <cassert>
#include <mutex>
#include <memory>
#include <unordered_map>
namespace ILLIXR {
/**
* @brief A [service locator][1] for ILLIXR.
*
* This will be explained through an exmaple: Suppose one dynamically-loaded plugin, `A_... | 32.275862 | 119 | 0.693162 | canaryinthemines |
ae492e4348816dbcaed0271fbc78e88ccbe1e4aa | 1,270 | cpp | C++ | MKE/src/MKE/SpriteBatch.cpp | tMario2111/MKE | a5adf18d41f08b35c31e3ddb2679e5cad62da07f | [
"MIT"
] | 3 | 2021-11-03T07:43:07.000Z | 2022-03-10T09:45:15.000Z | MKE/src/MKE/SpriteBatch.cpp | tMario2111/MKE | a5adf18d41f08b35c31e3ddb2679e5cad62da07f | [
"MIT"
] | null | null | null | MKE/src/MKE/SpriteBatch.cpp | tMario2111/MKE | a5adf18d41f08b35c31e3ddb2679e5cad62da07f | [
"MIT"
] | null | null | null | #include "SpriteBatch.h"
namespace mke
{
SpriteBatch::SpriteBatch() :
batch(sf::PrimitiveType::Quads)
{
}
void SpriteBatch::draw(sf::RenderTarget& target, sf::RenderStates states) const
{
target.draw(batch, states);
}
void SpriteBatch::append(const sf::Sprite& sprite)
{
sf::FloatRect texture_rect = stat... | 31.75 | 116 | 0.722047 | tMario2111 |
ae49617c7348852fdc63f59c7deba2236c460f1b | 2,072 | hpp | C++ | include/upp/impl/cli/value.hpp | tlammi/upp | 480615e11b8dd12b36fee0e78b984e1b5051183d | [
"MIT"
] | null | null | null | include/upp/impl/cli/value.hpp | tlammi/upp | 480615e11b8dd12b36fee0e78b984e1b5051183d | [
"MIT"
] | null | null | null | include/upp/impl/cli/value.hpp | tlammi/upp | 480615e11b8dd12b36fee0e78b984e1b5051183d | [
"MIT"
] | null | null | null | /* SPDX-License-Identifier: MIT */
/* Copyright @ 2020 Toni Lammi */
#pragma once
#include <string>
#include <string_view>
#include <vector>
#include "upp/impl/cli/convert.hpp"
namespace upp {
namespace cli {
class ValueBase {
public:
virtual ~ValueBase() {}
virtual void add_value(const char* str) = 0;
virtual ... | 22.521739 | 68 | 0.665058 | tlammi |
ae49a7c7457f2af902956b3caed120e334f8ab11 | 1,268 | cpp | C++ | coursework2/test/map_gen_disp/map_gen_test.cpp | foundnet/UOE_PS_coursework | eb719fee024806ec03fbec528e9eb42d444f6289 | [
"Apache-2.0"
] | null | null | null | coursework2/test/map_gen_disp/map_gen_test.cpp | foundnet/UOE_PS_coursework | eb719fee024806ec03fbec528e9eb42d444f6289 | [
"Apache-2.0"
] | null | null | null | coursework2/test/map_gen_disp/map_gen_test.cpp | foundnet/UOE_PS_coursework | eb719fee024806ec03fbec528e9eb42d444f6289 | [
"Apache-2.0"
] | null | null | null | #include "../../include/randommap.h"
#include "gtest/gtest.h"
#include <vector>
#include <cmath>
using std::vector;
TEST(mapgenTestSuite, NormalSizeCheck){
vector<vector<double>> map = map_gen(30,20,1.0,10,4);
EXPECT_EQ(map.size(), 200);
EXPECT_EQ(map[0].size(), 300);
}
TEST(mapgenTestSuite, NarrowSizeCh... | 23.924528 | 57 | 0.685331 | foundnet |
ae4fdbe1785af7f213e21e2bdde416975c9183e6 | 7,878 | cpp | C++ | src/Keyboard.cpp | 00steve/Lapster | 42c11d7bf96694c36f75d938563031cb08951ff1 | [
"Apache-2.0"
] | null | null | null | src/Keyboard.cpp | 00steve/Lapster | 42c11d7bf96694c36f75d938563031cb08951ff1 | [
"Apache-2.0"
] | null | null | null | src/Keyboard.cpp | 00steve/Lapster | 42c11d7bf96694c36f75d938563031cb08951ff1 | [
"Apache-2.0"
] | null | null | null | #include "Keyboard.h"
void Keyboard::Setup(){
timer.TicksPerSecond(2);
valueX = 100;
valueY = 40;
backButton = new Button(Int2(10,10),Int2(90,90),"Back");
delButton = new Button(Int2(410,10),Int2(470,90),"<--");
int keyWidth = 43;
int keyHeight = 50;
int keySpace = 3;
int x = 1... | 39.19403 | 173 | 0.59114 | 00steve |
ae54d1d37aa672496acb17e53e2c43c2904c6629 | 970 | cpp | C++ | day25/solution.cpp | qwoprocks/Advent-of-Code-2020-Solutions | 65d96f89af013585ac994b8556d003b6455b0de1 | [
"MIT"
] | null | null | null | day25/solution.cpp | qwoprocks/Advent-of-Code-2020-Solutions | 65d96f89af013585ac994b8556d003b6455b0de1 | [
"MIT"
] | null | null | null | day25/solution.cpp | qwoprocks/Advent-of-Code-2020-Solutions | 65d96f89af013585ac994b8556d003b6455b0de1 | [
"MIT"
] | null | null | null | /* Link to problem: https://adventofcode.com/2020/day/25 */
#include <iostream>
#include <fstream>
#include <string>
#include <vector>
#include <set>
using namespace std;
long long part1(long long card_public_key, long long door_public_key) {
long long mod = 20201227;
long long subject_number = 7;
long lon... | 27.714286 | 74 | 0.652577 | qwoprocks |
ae59ce7e42db92d0d43e3bc4b87f979c6e0dd4f6 | 1,058 | hpp | C++ | osl/Construct.hpp | elnormous/OuzelShadingLanguage | d1644bf2bb244adc44223dd8570c1acd51ff39d2 | [
"BSD-2-Clause"
] | 5 | 2018-03-28T10:37:46.000Z | 2022-03-28T13:45:50.000Z | osl/Construct.hpp | elnormous/OuzelShadingLanguage | d1644bf2bb244adc44223dd8570c1acd51ff39d2 | [
"BSD-2-Clause"
] | null | null | null | osl/Construct.hpp | elnormous/OuzelShadingLanguage | d1644bf2bb244adc44223dd8570c1acd51ff39d2 | [
"BSD-2-Clause"
] | null | null | null | //
// OSL
//
#ifndef CONSTRUCT_HPP
#define CONSTRUCT_HPP
namespace ouzel
{
class Construct
{
public:
enum class Kind
{
Declaration,
Statement,
Expression,
Attribute
};
explicit Construct(Kind initKind) noexcept: kind{initKin... | 23 | 69 | 0.579395 | elnormous |
ae5a56571b8152aafbb749f31b862d784eabae29 | 302 | hpp | C++ | src/include/Bus/Memory/Memory.hpp | Garoze/Console | d99a08fb88fab4da5ca7c2c2c6d81fb9e5d6cb56 | [
"MIT"
] | null | null | null | src/include/Bus/Memory/Memory.hpp | Garoze/Console | d99a08fb88fab4da5ca7c2c2c6d81fb9e5d6cb56 | [
"MIT"
] | null | null | null | src/include/Bus/Memory/Memory.hpp | Garoze/Console | d99a08fb88fab4da5ca7c2c2c6d81fb9e5d6cb56 | [
"MIT"
] | null | null | null | #pragma once
#include <array>
#include <cstdint>
#define MEMORY_SIZE 64 * 1024
class Memory
{
public:
Memory();
void viewAt(std::uint16_t);
public:
std::uint8_t& operator[](std::uint16_t i)
{
return data[i];
}
private:
std::array<std::uint8_t, MEMORY_SIZE> data;
};
| 13.727273 | 47 | 0.629139 | Garoze |
ae618e182a830a807ee3e2e83c7727dca25dea5c | 2,205 | cpp | C++ | Std/Forward.cpp | asynts/picoos | 5197f86ce1902fc6572cecd10f97ca68109f2f86 | [
"MIT"
] | 1 | 2021-08-24T05:59:32.000Z | 2021-08-24T05:59:32.000Z | Std/Forward.cpp | asynts/picoos | 5197f86ce1902fc6572cecd10f97ca68109f2f86 | [
"MIT"
] | 3 | 2021-03-31T15:36:01.000Z | 2021-04-19T14:17:44.000Z | Std/Forward.cpp | asynts/picoos | 5197f86ce1902fc6572cecd10f97ca68109f2f86 | [
"MIT"
] | null | null | null | #include <Std/Forward.hpp>
#include <Std/Format.hpp>
#include <Std/Lexer.hpp>
#if !defined(TEST) && !defined(KERNEL)
# error "Only KERNEL and TEST are supported"
#endif
#if defined(TEST)
# include <iostream>
# include <cstdlib>
#elif defined(KERNEL)
# include <Kernel/ConsoleDevice.hpp>
# include <Kernel/HandlerMode.h... | 25.344828 | 87 | 0.582313 | asynts |
ae61fe9c0709ef23779b6f9244b31d0e26f0be26 | 8,667 | hpp | C++ | __unit_tests/gv_framework_unit_test/unit_test_display_animation.hpp | dragonsn/gv_game_engine | dca6c1fb1f8d96e9a244f157a63f8a69da084b0f | [
"MIT"
] | 2 | 2018-12-03T13:17:31.000Z | 2020-04-08T07:00:02.000Z | __unit_tests/gv_framework_unit_test/unit_test_display_animation.hpp | dragonsn/gv_game_engine | dca6c1fb1f8d96e9a244f157a63f8a69da084b0f | [
"MIT"
] | null | null | null | __unit_tests/gv_framework_unit_test/unit_test_display_animation.hpp | dragonsn/gv_game_engine | dca6c1fb1f8d96e9a244f157a63f8a69da084b0f | [
"MIT"
] | null | null | null | namespace unit_test_display_animation
{
void main(gvt_array< gv_string >& args)
{
bool do_compress = false;
if (args.find("compress"))
{
do_compress = true;
}
gv_int idx;
bool do_file = false;
bool do_software_skinning = true;
gv_string file_name;
if (args.find("file", idx))
{
do_file = true;
file_name... | 30.410526 | 113 | 0.646244 | dragonsn |
ae6e0213ff0c952cb84f840c77cbc1ba9de7d712 | 652 | hh | C++ | MCDataProducts/inc/PointTrajectoryCollection.hh | bonventre/Offline | 77db9d6368f27ab9401c690c2c2a4257ade6c231 | [
"Apache-2.0"
] | null | null | null | MCDataProducts/inc/PointTrajectoryCollection.hh | bonventre/Offline | 77db9d6368f27ab9401c690c2c2a4257ade6c231 | [
"Apache-2.0"
] | 1 | 2019-11-22T14:45:51.000Z | 2019-11-22T14:50:03.000Z | MCDataProducts/inc/PointTrajectoryCollection.hh | bonventre/Offline | 77db9d6368f27ab9401c690c2c2a4257ade6c231 | [
"Apache-2.0"
] | 2 | 2019-10-14T17:46:58.000Z | 2020-03-30T21:05:15.000Z | #ifndef MCDataProducts_PointTrajectoryCollection_hh
#define MCDataProducts_PointTrajectoryCollection_hh
//
// Define a type for a collection of PointTrajectory objects.
// The key is the simulated particle ID (same as for the
// SimParticleCollection).
//
// $Id: PointTrajectoryCollection.hh,v 1.2 2011/05/24 20:03:31 ... | 27.166667 | 76 | 0.769939 | bonventre |
ae70c8b906df8c9483c1f6ccf81413249959cb47 | 4,279 | cpp | C++ | src/Draw/Image.cpp | FishbowlDigital/FBDraw | 4ea6198f01be5f3c9627ca34bff263245bfd3ecc | [
"MIT",
"Unlicense"
] | null | null | null | src/Draw/Image.cpp | FishbowlDigital/FBDraw | 4ea6198f01be5f3c9627ca34bff263245bfd3ecc | [
"MIT",
"Unlicense"
] | null | null | null | src/Draw/Image.cpp | FishbowlDigital/FBDraw | 4ea6198f01be5f3c9627ca34bff263245bfd3ecc | [
"MIT",
"Unlicense"
] | null | null | null | // Image.cpp
// Implementation file for the Image class
//
// Copyright(c) 2017 - 2022 Fishbowl Digital LLC
//
// 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, in... | 29.715278 | 106 | 0.649918 | FishbowlDigital |
ae72179e0987143289476d0dece7489e65d23ff5 | 3,146 | cpp | C++ | Lab/SavingsFucnctionPotPourri/main.cpp | salazaru/Program-Logic-Using-Cpp | e4fb97f00eb639d523b7ede0661ff1698301f46d | [
"MIT"
] | 1 | 2015-03-06T01:03:54.000Z | 2015-03-06T01:03:54.000Z | Lab/SavingsFucnctionPotPourri/main.cpp | salazaru/Salazar_Uriel_CSC5_43952 | e4fb97f00eb639d523b7ede0661ff1698301f46d | [
"MIT"
] | null | null | null | Lab/SavingsFucnctionPotPourri/main.cpp | salazaru/Salazar_Uriel_CSC5_43952 | e4fb97f00eb639d523b7ede0661ff1698301f46d | [
"MIT"
] | null | null | null | //File: main.cpp
//==========================================================================
//Programmer: Uriel Salazar
//==========================================================================
//Created: April 20, 2015, 8:14 PM
//==========================================================================
//P... | 30.25 | 79 | 0.494596 | salazaru |
ae756d793d630e0f6314299c9ae32ba2b36cef73 | 2,297 | hpp | C++ | src/geometryhandler.hpp | pannacotta98/DomeDagen | aa5ac6adbc73326e43dfa129eae11c95f7191a1d | [
"BSD-2-Clause"
] | null | null | null | src/geometryhandler.hpp | pannacotta98/DomeDagen | aa5ac6adbc73326e43dfa129eae11c95f7191a1d | [
"BSD-2-Clause"
] | null | null | null | src/geometryhandler.hpp | pannacotta98/DomeDagen | aa5ac6adbc73326e43dfa129eae11c95f7191a1d | [
"BSD-2-Clause"
] | null | null | null | #pragma once
#include "modelmanager.hpp"
//This class is privately inherited to classes needing models and accompanied functionality
//This class is also very unorganized
class GeometryHandler
{
public:
GeometryHandler(const std::string& shaderProgramName, const std::string& objectModelName)
:mShaderProgram{ sgct:... | 33.779412 | 91 | 0.760993 | pannacotta98 |
ae77f859778c1b360c7129fafbae886e03e4078c | 620 | hpp | C++ | include/lol/def/LolPerksPerkSettingResource.hpp | Maufeat/LeagueAPI | be7cb5093aab3f27d95b3c0e1d5700aa50126c47 | [
"BSD-3-Clause"
] | 1 | 2020-07-22T11:14:55.000Z | 2020-07-22T11:14:55.000Z | include/lol/def/LolPerksPerkSettingResource.hpp | Maufeat/LeagueAPI | be7cb5093aab3f27d95b3c0e1d5700aa50126c47 | [
"BSD-3-Clause"
] | null | null | null | include/lol/def/LolPerksPerkSettingResource.hpp | Maufeat/LeagueAPI | be7cb5093aab3f27d95b3c0e1d5700aa50126c47 | [
"BSD-3-Clause"
] | 4 | 2018-12-01T22:48:21.000Z | 2020-07-22T11:14:56.000Z | #pragma once
#include "../base_def.hpp"
namespace lol {
struct LolPerksPerkSettingResource {
std::vector<int32_t> perkIds;
int32_t perkStyle;
int32_t perkSubStyle;
};
inline void to_json(json& j, const LolPerksPerkSettingResource& v) {
j["perkIds"] = v.perkIds;
j["perkStyle"] = v.perkStyle... | 32.631579 | 72 | 0.664516 | Maufeat |
ae799ce6bc16b48d7fc7ec7e33cd764f247c3cdd | 1,191 | hpp | C++ | include/all_rounder.hpp | tomdodd4598/UCL-PHAS0100-CandamirTilesExample1 | 8a324462d93db49a6a2c88fb382bca110c7ec611 | [
"MIT"
] | null | null | null | include/all_rounder.hpp | tomdodd4598/UCL-PHAS0100-CandamirTilesExample1 | 8a324462d93db49a6a2c88fb382bca110c7ec611 | [
"MIT"
] | null | null | null | include/all_rounder.hpp | tomdodd4598/UCL-PHAS0100-CandamirTilesExample1 | 8a324462d93db49a6a2c88fb382bca110c7ec611 | [
"MIT"
] | null | null | null | #ifndef ALL_ROUNDER_H
#define ALL_ROUNDER_H
#include "cricketer.hpp"
#include <string>
#include <utility>
namespace cricket {
class AllRounder : public Cricketer {
public:
template<typename NAME, typename... EQUIPMENT>
AllRounder(NAME&& name, int batting_runs, int batting_balls, int dismissa... | 25.891304 | 160 | 0.643157 | tomdodd4598 |
ae7c7a21e5dc5122acab986da6f246109fa47696 | 5,339 | hpp | C++ | src/mge/core/stacktrace.hpp | mge-engine/mge | e7a6253f99dd640a655d9a80b94118d35c7d8139 | [
"MIT"
] | null | null | null | src/mge/core/stacktrace.hpp | mge-engine/mge | e7a6253f99dd640a655d9a80b94118d35c7d8139 | [
"MIT"
] | 91 | 2019-03-09T11:31:29.000Z | 2022-02-27T13:06:06.000Z | src/mge/core/stacktrace.hpp | mge-engine/mge | e7a6253f99dd640a655d9a80b94118d35c7d8139 | [
"MIT"
] | null | null | null | // mge - Modern Game Engine
// Copyright (c) 2021 by Alexander Schroeder
// All rights reserved.
/** @file */
#pragma once
#include "mge/core/dllexport.hpp"
#include "mge/core/string_pool.hpp"
#include <string>
#include <string_view>
#include <vector>
namespace mge {
/**
* @brief A stack backtrace.
*
... | 27.101523 | 76 | 0.478929 | mge-engine |
ae7d69c4645db3634351dd9d3aa0bfa20558d263 | 1,637 | cpp | C++ | SPOJ/SAMER08F - Feynman.cpp | ravirathee/Competitive-Programming | 20a0bfda9f04ed186e2f475644e44f14f934b533 | [
"Unlicense"
] | 6 | 2018-11-26T02:38:07.000Z | 2021-07-28T00:16:41.000Z | SPOJ/SAMER08F - Feynman.cpp | ravirathee/Competitive-Programming | 20a0bfda9f04ed186e2f475644e44f14f934b533 | [
"Unlicense"
] | 1 | 2021-05-30T09:25:53.000Z | 2021-06-05T08:33:56.000Z | SPOJ/SAMER08F - Feynman.cpp | ravirathee/Competitive-Programming | 20a0bfda9f04ed186e2f475644e44f14f934b533 | [
"Unlicense"
] | 4 | 2020-04-16T07:15:01.000Z | 2020-12-04T06:26:07.000Z | /*SAMER08F - Feynman
no tags
Richard Phillips Feynman was a well known American physicist and a recipient of the Nobel Prize in Physics. He worked in theoretical physics and also pioneered the field of quantum computing. He visited South America for ten months, giving lectures and enjoying life in the tropics. He is ... | 46.771429 | 455 | 0.745877 | ravirathee |
ae7d979107a95215f0032033d14e3830184e3c4b | 1,802 | cpp | C++ | test/src/detail/offset_fetch_request_write_test.cpp | perchits/libkafka-asio | cbdced006d49a4498955a222915c6514b4ac57a7 | [
"MIT"
] | 77 | 2015-04-07T08:14:14.000Z | 2022-02-14T01:07:05.000Z | test/src/detail/offset_fetch_request_write_test.cpp | perchits/libkafka-asio | cbdced006d49a4498955a222915c6514b4ac57a7 | [
"MIT"
] | 28 | 2015-04-07T08:57:41.000Z | 2020-04-19T21:25:22.000Z | test/src/detail/offset_fetch_request_write_test.cpp | perchits/libkafka-asio | cbdced006d49a4498955a222915c6514b4ac57a7 | [
"MIT"
] | 48 | 2015-04-15T05:34:51.000Z | 2022-03-17T11:50:20.000Z | //
// detail/offset_fetch_request_write_test.cpp
// ------------------------------------------
//
// Copyright (c) 2015 Daniel Joos
//
// Distributed under MIT license. (See file LICENSE)
//
#include <gtest/gtest.h>
#include <libkafka_asio/libkafka_asio.h>
#include "StreamTest.h"
using libkafka_asio::OffsetFetchRequ... | 28.15625 | 75 | 0.705882 | perchits |
ae7f91eead9906b48fc98847333f879acb97ad62 | 2,102 | cpp | C++ | src/er1controlapp.cpp | sfmabock/Evolution-Robot-1-Driver | 47cf3d54f2b863aea75abb181ae39f1eb5b83232 | [
"MIT"
] | null | null | null | src/er1controlapp.cpp | sfmabock/Evolution-Robot-1-Driver | 47cf3d54f2b863aea75abb181ae39f1eb5b83232 | [
"MIT"
] | null | null | null | src/er1controlapp.cpp | sfmabock/Evolution-Robot-1-Driver | 47cf3d54f2b863aea75abb181ae39f1eb5b83232 | [
"MIT"
] | null | null | null |
#include <iostream>
#include <string>
#include <SDL2/SDL.h>
#include <er1driver/er1driver.hpp>
int main(int argc, char** argv) {
SDL_Event event;
bool done = false;
if (SDL_Init(SDL_INIT_VIDEO)!= 0) {
return -1;
}
SDL_Window *window;
window = SDL_CreateWindow(
"An SDL... | 28.405405 | 101 | 0.466698 | sfmabock |
ae81ca480c3a78888683d1ea42c464fd35699e3d | 6,376 | cpp | C++ | src/view/configurator.cpp | TiWinDeTea/NinjaClown | fdd48e62466f11036fa0360fad2bcb182d6d3352 | [
"MIT"
] | 2 | 2020-04-10T14:39:00.000Z | 2021-02-11T15:52:16.000Z | src/view/configurator.cpp | TiWinDeTea/NinjaClown | fdd48e62466f11036fa0360fad2bcb182d6d3352 | [
"MIT"
] | 2 | 2019-12-17T08:50:20.000Z | 2020-02-03T09:37:56.000Z | src/view/configurator.cpp | TiWinDeTea/NinjaClown | fdd48e62466f11036fa0360fad2bcb182d6d3352 | [
"MIT"
] | 1 | 2020-08-19T03:06:52.000Z | 2020-08-19T03:06:52.000Z | #include <imgui.h>
#include "utils/resource_manager.hpp"
#include "view/configurator.hpp"
#include "view/imgui_styles.hpp"
// TODO : rendre la classe configurator statique (pas vraiment besoin de l’instancier plusieurs fois)
using lang_info = std::remove_const_t<std::remove_reference_t<
std::invoke_result<decltype... | 33.557895 | 140 | 0.715809 | TiWinDeTea |
ae84c70c639cb1814285852d0def8c2ee088ce16 | 211,852 | cpp | C++ | packages/data/epdl/test/tstPhotonDataProcessorShellMap.cpp | lkersting/SCR-2123 | 06ae3d92998664a520dc6a271809a5aeffe18f72 | [
"BSD-3-Clause"
] | null | null | null | packages/data/epdl/test/tstPhotonDataProcessorShellMap.cpp | lkersting/SCR-2123 | 06ae3d92998664a520dc6a271809a5aeffe18f72 | [
"BSD-3-Clause"
] | null | null | null | packages/data/epdl/test/tstPhotonDataProcessorShellMap.cpp | lkersting/SCR-2123 | 06ae3d92998664a520dc6a271809a5aeffe18f72 | [
"BSD-3-Clause"
] | null | null | null | //---------------------------------------------------------------------------//
//!
//! \file tstPhotonDataProcessorShellMap.cpp
//! \author Alex Robinson
//! \brief PhotonDataProcessor class electron shell map unit tests.
//!
//---------------------------------------------------------------------------//
// Std Li... | 25.035689 | 79 | 0.686677 | lkersting |
ae87152dbc2fc8a731ff4c6cbd55b802481f00d4 | 2,837 | cpp | C++ | src/io.cpp | sqt/sudoku | b536c663af5b6d6f0c8b8a728e595f3dfde499b5 | [
"BSD-3-Clause"
] | null | null | null | src/io.cpp | sqt/sudoku | b536c663af5b6d6f0c8b8a728e595f3dfde499b5 | [
"BSD-3-Clause"
] | null | null | null | src/io.cpp | sqt/sudoku | b536c663af5b6d6f0c8b8a728e595f3dfde499b5 | [
"BSD-3-Clause"
] | null | null | null | #include <iostream>
#include <cmath>
#include <sstream>
#include "io.hpp"
PuzzleState readPuzzleFromFile(std::ifstream& ifs)
{
PuzzleState result;
EntryState unknown_entry;
for (uint8_t i = 1; i < 10; ++i)
unknown_entry.insert(i);
for (std::string line; std::getline(ifs, line); )
{
if (line.empty() == fals... | 17.955696 | 83 | 0.572788 | sqt |
ae88e50ec6eef358fdc5be75c59fd1b69f95f254 | 39,698 | cc | C++ | src/muensterTPCPhysicsList.cc | l-althueser/MuensterTPC-Simulation | 7a086ab330cd5905f3c78c324936cdc36951e9bd | [
"BSD-2-Clause"
] | null | null | null | src/muensterTPCPhysicsList.cc | l-althueser/MuensterTPC-Simulation | 7a086ab330cd5905f3c78c324936cdc36951e9bd | [
"BSD-2-Clause"
] | 2 | 2017-01-24T21:18:46.000Z | 2017-01-27T13:24:48.000Z | src/muensterTPCPhysicsList.cc | l-althueser/MuensterTPC-Simulation | 7a086ab330cd5905f3c78c324936cdc36951e9bd | [
"BSD-2-Clause"
] | 4 | 2017-04-28T12:18:58.000Z | 2019-04-10T21:15:00.000Z | /******************************************************************
* muensterTPCsim
*
* Simulations of the Muenster TPC
*
* @author Lutz Althüser, based on muensterTPC (Levy) and Xenon100
* @date 2015-04-14
* @update 2016-02-16
*
* @comment - ready for G4 V10.02
* - added some festures of the new G4 ... | 37.170412 | 150 | 0.719961 | l-althueser |
ae8ae3cf60187deee3488ff23dcd56ed2c0297ae | 15,125 | cpp | C++ | src/NameResolver.cpp | skylang/sky | 518add25e6a101ca2701b3c6bea977b0e76b340e | [
"MIT"
] | 3 | 2020-07-17T05:10:56.000Z | 2020-08-02T22:13:50.000Z | src/NameResolver.cpp | skylang/sky | 518add25e6a101ca2701b3c6bea977b0e76b340e | [
"MIT"
] | null | null | null | src/NameResolver.cpp | skylang/sky | 518add25e6a101ca2701b3c6bea977b0e76b340e | [
"MIT"
] | null | null | null | // Copyright (c) 2018 Stephan Unverwerth
// This code is licensed under MIT license (See LICENSE for details)
#include "NameResolver.h"
#include "ast/nodes.h"
#include "exceptions.h"
#include "Scope.h"
#include "SourceFile.h"
namespace Sky {
NameResolver::NameResolver(Scope* globals): scope(globals) {
}
... | 29.656863 | 156 | 0.489388 | skylang |
ae9a13d3156789aad35cc8543f005084e5810bf1 | 637 | hpp | C++ | mc/util/util.hpp | ShamylZakariya/MarchingCubes | 27f375d5d25df2246095d65c11127aac82a24211 | [
"MIT"
] | 2 | 2019-12-03T05:52:57.000Z | 2021-05-21T18:17:52.000Z | mc/util/util.hpp | ShamylZakariya/MarchingCubes | 27f375d5d25df2246095d65c11127aac82a24211 | [
"MIT"
] | null | null | null | mc/util/util.hpp | ShamylZakariya/MarchingCubes | 27f375d5d25df2246095d65c11127aac82a24211 | [
"MIT"
] | null | null | null | //
// util.h
// MarchingCubes
//
// Created by Shamyl Zakariya on 11/23/19.
// Copyright © 2019 Shamyl Zakariya. All rights reserved.
//
#ifndef mc_util_h
#define mc_util_h
#include <limits>
#include <epoxy/gl.h>
#include <GLFW/glfw3.h>
#define GLM_FORCE_RADIANS
#define GLM_ENABLE_EXPERIMENTAL
#include <glm/gl... | 18.2 | 58 | 0.723705 | ShamylZakariya |
ae9b27522e2872325c204e78afd9a852cb3d1b01 | 376 | cpp | C++ | Ch_15_On_the_Importance_of_Sampling/ao_sampler.cpp | BobLChen/ray-tracing-gems | 76f81fc9d575be0ff30665f659341e97d1d434ad | [
"MIT"
] | 2 | 2021-08-19T08:49:25.000Z | 2021-12-25T15:35:35.000Z | Ch_15_On_the_Importance_of_Sampling/ao_sampler.cpp | RobertBeckebans/ray-tracing-gems | 32f067d162041a400f50ae598a7177b2ee6b37a0 | [
"MIT"
] | null | null | null | Ch_15_On_the_Importance_of_Sampling/ao_sampler.cpp | RobertBeckebans/ray-tracing-gems | 32f067d162041a400f50ae598a7177b2ee6b37a0 | [
"MIT"
] | 1 | 2021-08-19T08:49:26.000Z | 2021-08-19T08:49:26.000Z | float ao(float3 p, float3 n, int nSamples) {
float a = 0;
for (int i = 0; i < nSamples; ++i) {
float xi[2] = { rng(), rng() };
float3 dir(sqrt(xi[0]) * cos(2 * Pi * xi[1]),
sqrt(xi[0]) * sin(2 * Pi * xi[1]),
sqrt(1 - xi[0]));
dir = transformToFrame(n, dir);
if (... | 28.923077 | 50 | 0.460106 | BobLChen |
ae9bdb650abb4ef1eb056d8cb4836dfce392d1f8 | 35 | cpp | C++ | Ciao/src/utils/bvh/Bbox.cpp | dfnzhc/Ciao | 751501b69e9d2eb3e9cf53be07def8989e921b92 | [
"MIT"
] | 1 | 2021-07-15T14:19:27.000Z | 2021-07-15T14:19:27.000Z | Ciao/src/utils/bvh/Bbox.cpp | dfnzhc/OpenGL-Renderer | 751501b69e9d2eb3e9cf53be07def8989e921b92 | [
"MIT"
] | null | null | null | Ciao/src/utils/bvh/Bbox.cpp | dfnzhc/OpenGL-Renderer | 751501b69e9d2eb3e9cf53be07def8989e921b92 | [
"MIT"
] | null | null | null | #include "pch.h"
#include "Bbox.h"
| 11.666667 | 17 | 0.657143 | dfnzhc |
ae9ec94361a04c9a5cea2d7fe9666d5b8e2c8df9 | 1,365 | cpp | C++ | LeetCode/34.Find_First_and_Last_Position_of_Element_in_Sorted_Array.cpp | w181496/OJ | 67d1d32770376865eba8a9dd1767e97dae68989a | [
"MIT"
] | 9 | 2017-10-08T16:22:03.000Z | 2021-08-20T09:32:17.000Z | LeetCode/34.Find_First_and_Last_Position_of_Element_in_Sorted_Array.cpp | w181496/OJ | 67d1d32770376865eba8a9dd1767e97dae68989a | [
"MIT"
] | null | null | null | LeetCode/34.Find_First_and_Last_Position_of_Element_in_Sorted_Array.cpp | w181496/OJ | 67d1d32770376865eba8a9dd1767e97dae68989a | [
"MIT"
] | 2 | 2018-01-15T16:35:44.000Z | 2019-03-21T18:30:04.000Z | // 二分搜兩次(左,右)
class Solution {
public:
vector<int> searchRange(vector<int>& nums, int target) {
int l = 0, r = nums.size() - 1;
vector<int>ans;
while(l <= r) {
int m = (l + r) >> 1;
if(nums[m] == target) {
if(m > 0 && nums[m - 1] == target) {
... | 27.857143 | 72 | 0.301832 | w181496 |
aea1a9b1eec06c63097cc1170044f0e860f13f35 | 1,800 | cpp | C++ | gloo/gl_wrapper/Framebuffer.cpp | LongerZrLong/gloo | a198ef25a6a6a495be4aaa8182121201cd9eafa1 | [
"MIT"
] | null | null | null | gloo/gl_wrapper/Framebuffer.cpp | LongerZrLong/gloo | a198ef25a6a6a495be4aaa8182121201cd9eafa1 | [
"MIT"
] | null | null | null | gloo/gl_wrapper/Framebuffer.cpp | LongerZrLong/gloo | a198ef25a6a6a495be4aaa8182121201cd9eafa1 | [
"MIT"
] | null | null | null | #include "Framebuffer.h"
#include <stdexcept>
#include "gloo/utils.h"
namespace GLOO {
Framebuffer::Framebuffer()
{
GL_CHECK(glGenFramebuffers(1, &handle_));
}
Framebuffer::~Framebuffer()
{
if (handle_ != GLuint(-1))
GL_CHECK(glDeleteFramebuffers(1, &handle_));
}... | 26.086957 | 81 | 0.579444 | LongerZrLong |
0006e7d41b8c2c9f13cd8badcd7dd5a8f46a92f2 | 1,591 | cpp | C++ | samples/vxSobel3x3Node/vxSobel3x3Node.cpp | HipaccVX/HipaccVX | 0d469748df11c95f916b5a70f0006878f8550e3c | [
"MIT"
] | 1 | 2021-06-08T08:58:54.000Z | 2021-06-08T08:58:54.000Z | samples/vxSobel3x3Node/vxSobel3x3Node.cpp | HipaccVX/HipaccVX | 0d469748df11c95f916b5a70f0006878f8550e3c | [
"MIT"
] | 1 | 2021-11-13T14:55:55.000Z | 2021-11-13T14:55:55.000Z | samples/vxSobel3x3Node/vxSobel3x3Node.cpp | HipaccVX/HipaccVX | 0d469748df11c95f916b5a70f0006878f8550e3c | [
"MIT"
] | null | null | null | #include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <math.h>
#include "VX/vx.h"
#include "VX/vx_compatibility.h"
#include "hipaVX/domVX_extensions.hpp"
#define GEN_TEST_IMAGE
#ifdef GEN_TEST_IMAGE
#define IMAGE ""
#ifndef WIDTH
#define WIDTH 4032
#endif
#ifndef HEIGHT
#define HEIGHT... | 24.476923 | 86 | 0.626021 | HipaccVX |
0008e813424aec01d42bb2f95fd4ddb1289151dc | 30,963 | cpp | C++ | Source/System/Math/Algebra/Quaternion.cpp | arian153/Engine-5 | 34f85433bc0a74a7ebe7da350d3f3698de77226e | [
"MIT"
] | 2 | 2020-01-09T07:48:24.000Z | 2020-01-09T07:48:26.000Z | Source/System/Math/Algebra/Quaternion.cpp | arian153/Engine-5 | 34f85433bc0a74a7ebe7da350d3f3698de77226e | [
"MIT"
] | null | null | null | Source/System/Math/Algebra/Quaternion.cpp | arian153/Engine-5 | 34f85433bc0a74a7ebe7da350d3f3698de77226e | [
"MIT"
] | null | null | null |
#include "Quaternion.hpp"
#include "Matrix33.hpp"
#include "Vector3.hpp"
#include "..//Utility/Utility.hpp"
#include <ostream>
#include "../Utility/VectorDef.hpp"
#include <sstream>
namespace Engine5
{
Quaternion::Quaternion(Real r, Real i, Real j, Real k)
: r(r), i(i), j(j), k(k)
{
}
Quatern... | 36.003488 | 162 | 0.489907 | arian153 |
000b585f9671e7db56d035f0878a003200f77418 | 5,157 | hpp | C++ | Nostra Utils/src/header/nostrautils/core/Version.hpp | Lehks/NostraUtils | ef1b2d492a1358775752a2a7621c714d86bf96b2 | [
"MIT"
] | 10 | 2018-01-07T01:00:11.000Z | 2021-09-16T14:08:45.000Z | NostraUtils/Nostra Utils/src/header/nostrautils/core/Version.hpp | Lehks/NostraEngine | 0d610dcd97ba482fd8f183795140c38728c3a6b3 | [
"MIT"
] | 107 | 2018-04-06T10:15:47.000Z | 2018-09-28T07:13:46.000Z | NostraUtils/Nostra Utils/src/header/nostrautils/core/Version.hpp | Lehks/NostraEngine | 0d610dcd97ba482fd8f183795140c38728c3a6b3 | [
"MIT"
] | null | null | null | #ifndef NOU_CORE_VERSION_HPP
#define NOU_CORE_VERSION_HPP
#include "nostrautils/core/StdIncludes.hpp"
#include "nostrautils/core/Utils.hpp"
/**
\file core/Version.hpp
\author Lukas Reichmann
\version 1.0.0
\since 1.0.0
\brief A file that contains the nostra::utils::core::Version struct.
\see nostra::utils::cor... | 25.156098 | 105 | 0.714951 | Lehks |
00117fd642dc8a5d1aa39f6f6dbc0b2e1b1e4695 | 12,157 | cpp | C++ | src/display_module.cpp | oskrs111/diy-co2-monitior | ca72bf613421732216da5af8359749af52bb49c3 | [
"MIT"
] | 8 | 2020-11-03T09:51:59.000Z | 2021-09-20T05:01:42.000Z | src/display_module.cpp | oskrs111/diy-co2-monitior | ca72bf613421732216da5af8359749af52bb49c3 | [
"MIT"
] | 2 | 2020-11-29T08:11:41.000Z | 2021-01-24T19:21:00.000Z | src/display_module.cpp | oskrs111/diy-co2-monitior | ca72bf613421732216da5af8359749af52bb49c3 | [
"MIT"
] | 3 | 2020-11-19T12:06:42.000Z | 2021-02-05T10:31:57.000Z | /*
Copyright 2020 Oscar Sanz Llopis
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"),
to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, s... | 34.24507 | 189 | 0.681254 | oskrs111 |
00144f6fe0033d2f64866ceca60fcb1b78d5fad7 | 5,672 | hpp | C++ | backend/compiler.hpp | mark-sed/ebe | 6280704e377e55b89aa5125942cc710b5e73209e | [
"MIT"
] | 1 | 2022-02-22T21:42:28.000Z | 2022-02-22T21:42:28.000Z | backend/compiler.hpp | mark-sed/ebe | 6280704e377e55b89aa5125942cc710b5e73209e | [
"MIT"
] | null | null | null | backend/compiler.hpp | mark-sed/ebe | 6280704e377e55b89aa5125942cc710b5e73209e | [
"MIT"
] | null | null | null | /**
* @file compiler.hpp
* @author Marek Sedlacek
* @date July 2021
* @copyright Copyright 2021 Marek Sedlacek. All rights reserved.
*
* @brief Abstract data for all processing units
*
* Every input processing unit should extend processor class
* so that all needed information and methods are present in it.
... | 33.56213 | 124 | 0.618124 | mark-sed |
0018286db252b6fa890c686fde2b3aa074643601 | 3,702 | hpp | C++ | include/parser/ValueMgr.hpp | scribelang/scribe-poc | c1ba4dafbb3b38a5b408e068747a5ed0f3e49e25 | [
"MIT"
] | null | null | null | include/parser/ValueMgr.hpp | scribelang/scribe-poc | c1ba4dafbb3b38a5b408e068747a5ed0f3e49e25 | [
"MIT"
] | null | null | null | include/parser/ValueMgr.hpp | scribelang/scribe-poc | c1ba4dafbb3b38a5b408e068747a5ed0f3e49e25 | [
"MIT"
] | null | null | null | /*
MIT License
Copyright (c) 2021 Scribe Language Repositories
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, mod... | 20.119565 | 89 | 0.697731 | scribelang |
001e703a89d2f94587d933c20950efe2dda20f91 | 56,473 | cpp | C++ | src/tier0/threadtools.cpp | DeadZoneLuna/csso-src | 6c978ea304ee2df3796bc9c0d2916bac550050d5 | [
"Unlicense"
] | 4 | 2021-10-03T05:16:55.000Z | 2021-12-28T16:49:27.000Z | src/tier0/threadtools.cpp | cafeed28/what | 08e51d077f0eae50afe3b592543ffa07538126f5 | [
"Unlicense"
] | null | null | null | src/tier0/threadtools.cpp | cafeed28/what | 08e51d077f0eae50afe3b592543ffa07538126f5 | [
"Unlicense"
] | 3 | 2022-02-02T18:09:58.000Z | 2022-03-06T18:54:39.000Z | //========= Copyright Valve Corporation, All rights reserved. ============//
//
// Purpose:
//
//=============================================================================
#include "pch_tier0.h"
#include "tier1/strtools.h"
#include "tier0/dynfunction.h"
#if defined( _WIN32 ) && !defined( _X360 )
#define WIN32_LEAN... | 23.481497 | 170 | 0.623307 | DeadZoneLuna |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.