hexsha stringlengths 40 40 | size int64 7 1.05M | ext stringclasses 13
values | lang stringclasses 1
value | max_stars_repo_path stringlengths 4 269 | max_stars_repo_name stringlengths 5 108 | max_stars_repo_head_hexsha stringlengths 40 40 | max_stars_repo_licenses listlengths 1 9 | max_stars_count int64 1 191k ⌀ | max_stars_repo_stars_event_min_datetime stringlengths 24 24 ⌀ | max_stars_repo_stars_event_max_datetime stringlengths 24 24 ⌀ | max_issues_repo_path stringlengths 4 269 | max_issues_repo_name stringlengths 5 116 | max_issues_repo_head_hexsha stringlengths 40 40 | max_issues_repo_licenses listlengths 1 9 | max_issues_count int64 1 67k ⌀ | max_issues_repo_issues_event_min_datetime stringlengths 24 24 ⌀ | max_issues_repo_issues_event_max_datetime stringlengths 24 24 ⌀ | max_forks_repo_path stringlengths 4 269 | max_forks_repo_name stringlengths 5 116 | max_forks_repo_head_hexsha stringlengths 40 40 | max_forks_repo_licenses listlengths 1 9 | max_forks_count int64 1 105k ⌀ | max_forks_repo_forks_event_min_datetime stringlengths 24 24 ⌀ | max_forks_repo_forks_event_max_datetime stringlengths 24 24 ⌀ | content stringlengths 7 1.05M | avg_line_length float64 1.21 330k | max_line_length int64 6 990k | alphanum_fraction float64 0.01 0.99 | author_id stringlengths 2 40 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
599f7a6db73425a6b163880e7a94cfff1b1d45f7 | 640 | cpp | C++ | prob03/main.cpp | CSUF-CPSC120-2019F23-24/labex02-romanharv1 | 7d40d08235a36a78539c9bd21d6512a1d58c1410 | [
"MIT"
] | null | null | null | prob03/main.cpp | CSUF-CPSC120-2019F23-24/labex02-romanharv1 | 7d40d08235a36a78539c9bd21d6512a1d58c1410 | [
"MIT"
] | null | null | null | prob03/main.cpp | CSUF-CPSC120-2019F23-24/labex02-romanharv1 | 7d40d08235a36a78539c9bd21d6512a1d58c1410 | [
"MIT"
] | null | null | null | // Name: Restaurant Bill Calculator
// This program calculates the tax and tip on a restaurant bill.
#include <iostream>
int main()
{
double price, tax, tip;
double total;
//Get value of price.
std::cout << "Welcome to the Restaurant Bill Calculator!\n";
std::cout << "What is the total meal cost? $";
std... | 22.857143 | 64 | 0.598438 | CSUF-CPSC120-2019F23-24 |
59a025de88daf215df7f57db160ed988f3a58fc9 | 281 | hpp | C++ | sfml/python/src/Input.hpp | fu7mu4/entonetics | d0b2643f039a890b25d5036cc94bfe3b4d840480 | [
"MIT"
] | null | null | null | sfml/python/src/Input.hpp | fu7mu4/entonetics | d0b2643f039a890b25d5036cc94bfe3b4d840480 | [
"MIT"
] | null | null | null | sfml/python/src/Input.hpp | fu7mu4/entonetics | d0b2643f039a890b25d5036cc94bfe3b4d840480 | [
"MIT"
] | null | null | null | #ifndef __PYINPUT_HPP
#define __PYINPUT_HPP
#include <SFML/Window/Input.hpp>
#include <SFML/Window/Event.hpp>
#include <iostream>
#include <Python.h>
#include <structmember.h>
typedef struct {
PyObject_HEAD
sf::Input *obj;
} PySfInput;
PySfInput *
GetNewPySfInput();
#endif
| 14.05 | 32 | 0.75089 | fu7mu4 |
59a0362851cf6e7818413ded809a3f639d96f054 | 4,064 | cpp | C++ | course/Course_8/Source.cpp | catalinboja/catalinboja-cpp_2020 | ff1d2dc8620ff722aef151c9c823ec20f766d5b2 | [
"MIT"
] | 4 | 2020-10-13T13:37:15.000Z | 2021-07-10T15:40:40.000Z | course/Course_8/Source.cpp | catalinboja/catalinboja-cpp_2020 | ff1d2dc8620ff722aef151c9c823ec20f766d5b2 | [
"MIT"
] | null | null | null | course/Course_8/Source.cpp | catalinboja/catalinboja-cpp_2020 | ff1d2dc8620ff722aef151c9c823ec20f766d5b2 | [
"MIT"
] | 7 | 2020-10-16T08:32:42.000Z | 2021-03-02T14:38:28.000Z | #define _CRT_SECURE_NO_WARNINGS
#include <iostream>
using namespace std;
class LenghtException {
};
class Student {
const int id;
char* name = nullptr;
float tuitionFee = 0;
const int groupNumber;
const static int MIN_LENGTH = 3;
static float feesTotal;
static int NO_OBJECTS;
public:
Student(int id, const c... | 19.444976 | 94 | 0.629183 | catalinboja |
59a2bdcb7fa24d28a4eb324ad0cdd199a914270c | 1,988 | cpp | C++ | LudumGame/Source/LudumGame/Private/Flocking/OtherTeamGoalBehaviourComponent.cpp | inbetweengames/TheMammoth_Public | d12d644266076ff739d912def6bc127827c82dc9 | [
"MIT"
] | 21 | 2015-11-05T07:26:27.000Z | 2021-06-01T11:35:05.000Z | LudumGame/Source/LudumGame/Private/Flocking/OtherTeamGoalBehaviourComponent.cpp | inbetweengames/TheMammoth_Public | d12d644266076ff739d912def6bc127827c82dc9 | [
"MIT"
] | null | null | null | LudumGame/Source/LudumGame/Private/Flocking/OtherTeamGoalBehaviourComponent.cpp | inbetweengames/TheMammoth_Public | d12d644266076ff739d912def6bc127827c82dc9 | [
"MIT"
] | 6 | 2015-11-06T08:54:36.000Z | 2017-01-21T18:40:30.000Z | // copyright 2015 inbetweengames GBR
#include "LudumGame.h"
#include "OtherTeamGoalBehaviourComponent.h"
#include "FlockingGameMode.h"
#include "AI/Navigation/NavigationPath.h"
#include "DrawDebugHelpers.h"
#include "../FlockingDataCache.h"
#include "BasicAIAgent.h"
DECLARE_CYCLE_STAT(TEXT("Goal Behaviour"),STAT_AI_G... | 23.951807 | 195 | 0.748994 | inbetweengames |
59a984616754955c2911c5b8851b2a7dabb35d9d | 5,121 | cpp | C++ | src/omexmeta/Triples.cpp | sys-bio/tesemantic | f25f44a0a7e67d38f1e94fd69c08ae7f73be2079 | [
"Apache-2.0"
] | 6 | 2020-07-07T11:23:29.000Z | 2021-11-19T09:49:02.000Z | src/omexmeta/Triples.cpp | sys-bio/tesemantic | f25f44a0a7e67d38f1e94fd69c08ae7f73be2079 | [
"Apache-2.0"
] | 79 | 2020-06-23T15:32:44.000Z | 2022-02-23T06:46:43.000Z | src/omexmeta/Triples.cpp | sys-bio/tesemantic | f25f44a0a7e67d38f1e94fd69c08ae7f73be2079 | [
"Apache-2.0"
] | 5 | 2020-11-29T04:29:54.000Z | 2021-08-17T15:55:41.000Z | //
// Created by Ciaran on 4/29/2020.
//
#include "omexmeta/Triples.h"
namespace omexmeta {
Triples::Triples() = default;
Triples::Triples(Triple &triple) {
moveBack(triple);
}
Triples::Triples(std::vector<Triple> triples) {
for (auto &triple: triples) {
moveBack(triple... | 32.411392 | 143 | 0.635618 | sys-bio |
59ac0db41ad97556f7b974340dacb1dac206a672 | 329 | cc | C++ | sdk/src/model/object/MultipartUpload.cc | volcengine/ve-tos-cpp-sdk | 3f18be2d924f69bf6271b4cc3bdd1b7a023e795f | [
"Apache-2.0"
] | null | null | null | sdk/src/model/object/MultipartUpload.cc | volcengine/ve-tos-cpp-sdk | 3f18be2d924f69bf6271b4cc3bdd1b7a023e795f | [
"Apache-2.0"
] | null | null | null | sdk/src/model/object/MultipartUpload.cc | volcengine/ve-tos-cpp-sdk | 3f18be2d924f69bf6271b4cc3bdd1b7a023e795f | [
"Apache-2.0"
] | null | null | null | #include "model/object/MultipartUpload.h"
#include "../src/external/json/json.hpp"
using namespace nlohmann;
void VolcengineTos::inner::MultipartUpload::fromJsonString(const std::string &input) {
auto j = json::parse(input);
j.at("Bucket").get_to(bucket_);
j.at("Key").get_to(key_);
j.at("UploadId").get_to(uplo... | 32.9 | 86 | 0.723404 | volcengine |
59ac6920998e09b663601f50562e2488a7452f28 | 1,171 | hpp | C++ | src/common/fix.hpp | mbeckem/tiro | b3d729fce46243f25119767c412c6db234c2d938 | [
"MIT"
] | 10 | 2020-01-23T20:41:19.000Z | 2021-12-28T20:24:44.000Z | src/common/fix.hpp | mbeckem/tiro | b3d729fce46243f25119767c412c6db234c2d938 | [
"MIT"
] | 22 | 2021-03-25T16:22:08.000Z | 2022-03-17T12:50:38.000Z | src/common/fix.hpp | mbeckem/tiro | b3d729fce46243f25119767c412c6db234c2d938 | [
"MIT"
] | null | null | null | #ifndef TIRO_COMMON_FIX_HPP
#define TIRO_COMMON_FIX_HPP
#include <utility>
namespace tiro {
/// Makes it possible to write recursive lambda functions.
///
/// In C++, lambda functions cannot refer to themselves by name, i.e.
/// they cannot be used to implement recursive functions.
/// The class `Fix` takes a lambda... | 23.897959 | 69 | 0.599488 | mbeckem |
59b3892ac77bbc7b1b37b94f2a04681a32bb4b2c | 7,228 | cpp | C++ | game/code/common/engine/math/matrix.cpp | justinctlam/MarbleStrike | 64fe36a5a4db2b299983b0e2556ab1cd8126259b | [
"MIT"
] | null | null | null | game/code/common/engine/math/matrix.cpp | justinctlam/MarbleStrike | 64fe36a5a4db2b299983b0e2556ab1cd8126259b | [
"MIT"
] | null | null | null | game/code/common/engine/math/matrix.cpp | justinctlam/MarbleStrike | 64fe36a5a4db2b299983b0e2556ab1cd8126259b | [
"MIT"
] | 2 | 2019-03-08T03:02:45.000Z | 2019-05-14T08:41:26.000Z | ////////////////////////////////////////////////////////
//// INCLUDES
////////////////////////////////////////////////////////
//
//#include "common/engine/math/matrix.hpp"
//#include "common/engine/system/assert.hpp"
//#include "common/engine/system/memory.hpp"
//#include "common/engine/system/utilities.hpp"
//#inclu... | 23.543974 | 114 | 0.375484 | justinctlam |
59bb1f985a4264e2a094a4db98c4c4685b2409b3 | 5,059 | hpp | C++ | RX600/src.hpp | duybang140494/RX | 7fed06a9d8295f4504e8a08fa589d4a52792095f | [
"BSD-3-Clause"
] | 1 | 2020-01-16T03:38:30.000Z | 2020-01-16T03:38:30.000Z | RX600/src.hpp | duybang140494/RX | 7fed06a9d8295f4504e8a08fa589d4a52792095f | [
"BSD-3-Clause"
] | null | null | null | RX600/src.hpp | duybang140494/RX | 7fed06a9d8295f4504e8a08fa589d4a52792095f | [
"BSD-3-Clause"
] | null | null | null | #pragma once
//=====================================================================//
/*! @file
@brief RX600 グループ・SRC 定義
@author 平松邦仁 (hira@rvf-rc45.net)
@copyright Copyright (C) 2017, 2018 Kunihito Hiramatsu @n
Released under the MIT license @n
https://github.com/hirakuni45/RX/blob/master/LICENSE... | 29.584795 | 75 | 0.426369 | duybang140494 |
59bbcc558f0645f6af83f3f8b5515150be75f2bc | 18,251 | cpp | C++ | engine/gui/Widgets.cpp | taida957789/ouzel | a8c1cc74e6151a0f7d7d2c534f8747cba46a36af | [
"Unlicense"
] | 1 | 2021-03-01T13:17:49.000Z | 2021-03-01T13:17:49.000Z | engine/gui/Widgets.cpp | taida957789/ouzel | a8c1cc74e6151a0f7d7d2c534f8747cba46a36af | [
"Unlicense"
] | null | null | null | engine/gui/Widgets.cpp | taida957789/ouzel | a8c1cc74e6151a0f7d7d2c534f8747cba46a36af | [
"Unlicense"
] | null | null | null | // Copyright 2015-2020 Elviss Strazdins. All rights reserved.
#if defined(__APPLE__)
# include <TargetConditionals.h>
#endif
#include <algorithm>
#include <functional>
#include "Widgets.hpp"
#include "BMFont.hpp"
#include "../core/Engine.hpp"
#include "../events/EventHandler.hpp"
#include "../events/EventDispatcher.h... | 28.606583 | 123 | 0.508958 | taida957789 |
59bc0a74db0ec01862fd96606385adfbb287e688 | 606 | cpp | C++ | PML/Renderer/Mesh.cpp | NickAOndo/PML | bcb228d012ffc99a4701afed5a05692df85c1ffa | [
"MIT"
] | null | null | null | PML/Renderer/Mesh.cpp | NickAOndo/PML | bcb228d012ffc99a4701afed5a05692df85c1ffa | [
"MIT"
] | null | null | null | PML/Renderer/Mesh.cpp | NickAOndo/PML | bcb228d012ffc99a4701afed5a05692df85c1ffa | [
"MIT"
] | null | null | null | /*******************************************************************
** Author: Nicholas Ondo
** License: MIT
** Description: DEPRECATED. Template-class, src in header only.
*******************************************************************/
#include "PML/Renderer/Mesh.h"
#include <iostream> // STL
#include <... | 24.24 | 68 | 0.551155 | NickAOndo |
59bdf98b722003e92ff6cb50555881c6d0d68b0c | 5,675 | hpp | C++ | oddgravitysdk/controls/TreePropSheetEx/TreePropSheetUtil.hpp | mschulze46/PlaylistCreator | d1fb60c096eecb816f469754cada3e5c8901157b | [
"MIT"
] | 1 | 2020-05-18T13:47:35.000Z | 2020-05-18T13:47:35.000Z | oddgravitysdk/controls/TreePropSheetEx/TreePropSheetUtil.hpp | mschulze46/PlaylistCreator | d1fb60c096eecb816f469754cada3e5c8901157b | [
"MIT"
] | null | null | null | oddgravitysdk/controls/TreePropSheetEx/TreePropSheetUtil.hpp | mschulze46/PlaylistCreator | d1fb60c096eecb816f469754cada3e5c8901157b | [
"MIT"
] | null | null | null | // TreePropSheetUtil.hpp
//
/////////////////////////////////////////////////////////////////////////////
//
// Copyright (C) 2004 by Yves Tkaczyk
// (http://www.tkaczyk.net - yves@tkaczyk.net)
//
// The contents of this file are subject to the Artistic License (the "License").
// You may not use this file exce... | 28.375 | 133 | 0.589427 | mschulze46 |
59be498c6a255456a19ff2dc7270c16f97f49060 | 2,096 | cpp | C++ | Competitive Programming/USACO/2014GuardMark.cpp | NelsonGomesNeto/ProgramC | e743b1b869f58f7f3022d18bac00c5e0b078562e | [
"MIT"
] | 3 | 2018-12-18T13:39:42.000Z | 2021-06-23T18:05:18.000Z | Competitive Programming/USACO/2014GuardMark.cpp | NelsonGomesNeto/ProgramC | e743b1b869f58f7f3022d18bac00c5e0b078562e | [
"MIT"
] | 1 | 2018-11-02T21:32:40.000Z | 2018-11-02T22:47:12.000Z | Competitive Programming/USACO/2014GuardMark.cpp | NelsonGomesNeto/ProgramC | e743b1b869f58f7f3022d18bac00c5e0b078562e | [
"MIT"
] | 6 | 2018-10-27T14:07:52.000Z | 2019-11-14T13:49:29.000Z | #include <bits/stdc++.h>
#define lli long long int
using namespace std;
/* Tutorial:
The first thing to notice is that there's an optimal order for the cows
This order will allow us to use a greedy strategy
c[i].w + c[i].s > c[i+1].w + c[i+1].s, for all i
It's proven that following this order, you will be ... | 34.933333 | 104 | 0.617844 | NelsonGomesNeto |
59bfd68b1a341f6732aee395051546d10a3af2ea | 6,929 | cpp | C++ | Source/SpaceHorror/Private/MasterWeapons.cpp | littlefalcon/ISS_Columbus | f4192d19a0350553de317041ec1c17aa280dc1d0 | [
"MIT"
] | null | null | null | Source/SpaceHorror/Private/MasterWeapons.cpp | littlefalcon/ISS_Columbus | f4192d19a0350553de317041ec1c17aa280dc1d0 | [
"MIT"
] | null | null | null | Source/SpaceHorror/Private/MasterWeapons.cpp | littlefalcon/ISS_Columbus | f4192d19a0350553de317041ec1c17aa280dc1d0 | [
"MIT"
] | null | null | null | // Copyright (c) 2017 LittleFalcon.
#include "MasterWeapons.h"
#include "FireMechanicAuto.h" // Handle Automatic Mechanic for Weapon
#include "FireMechanicBeam.h" // Handle Beam Mechanic for Weapon
#include "FireMechanicCharge.h" // Handle Charge Mechanic for Weapon
#include "Animation/AnimInstance.h" // Handle Skelet... | 25.662963 | 173 | 0.7408 | littlefalcon |
59c2cf047b4d98a9b75b73a7b01f44f8e7dca9d2 | 835 | cpp | C++ | problems/add_strings/solution.cpp | sauravchandra1/Leetcode | be89c7d8d93083326a94906a28bfad2342aa1dfe | [
"MIT"
] | null | null | null | problems/add_strings/solution.cpp | sauravchandra1/Leetcode | be89c7d8d93083326a94906a28bfad2342aa1dfe | [
"MIT"
] | null | null | null | problems/add_strings/solution.cpp | sauravchandra1/Leetcode | be89c7d8d93083326a94906a28bfad2342aa1dfe | [
"MIT"
] | null | null | null | class Solution {
public:
string addStrings(string num1, string num2) {
int n1 = num1.size() - 1;
int n2 = num2.size() - 1;
int sum, carry = 0;
auto add = [&](int a, int b) {
sum = a + b + carry;
carry = sum / 10;
sum -= 10 * carry;
};
... | 26.09375 | 49 | 0.347305 | sauravchandra1 |
59c4ac56f7c757e9e516594bc026bdd4ba25ffe6 | 305 | cpp | C++ | RVTuto1/main.cpp | josnelihurt/qt-3d-cube | 1abc8b36ee23f9137a8ddaae115e0067367f18bf | [
"Unlicense"
] | null | null | null | RVTuto1/main.cpp | josnelihurt/qt-3d-cube | 1abc8b36ee23f9137a8ddaae115e0067367f18bf | [
"Unlicense"
] | null | null | null | RVTuto1/main.cpp | josnelihurt/qt-3d-cube | 1abc8b36ee23f9137a8ddaae115e0067367f18bf | [
"Unlicense"
] | null | null | null | // Cours de Réalité Virtuelle
// leo.donati@univ-cotedazur.fr
//
// EPU 2019-20
//
#include "mainwindow.h"
#include <QApplication>
int main(int argc, char *argv[])
{
QApplication a(argc, argv);
MainWindow w;
w.setWindowTitle("Réalité Virtuelle: Tuto1");
w.show();
return a.exec();
}
| 16.944444 | 49 | 0.652459 | josnelihurt |
59c4ad9b4b49e643275f5a8aa0b405e17fe9fd04 | 2,350 | hpp | C++ | Util/std_hash.hpp | cypox/devacus-backend | ba3d2ca8d72843560c4ff754780482dfe8a67c6b | [
"BSD-2-Clause"
] | 1 | 2015-03-16T12:49:12.000Z | 2015-03-16T12:49:12.000Z | Util/std_hash.hpp | antoinegiret/osrm-backend | ebe34da5428c2bfdb2b227392248011c757822e5 | [
"BSD-2-Clause"
] | 1 | 2015-02-25T18:27:19.000Z | 2015-02-25T18:27:19.000Z | Util/std_hash.hpp | antoinegiret/osrm-backend | ebe34da5428c2bfdb2b227392248011c757822e5 | [
"BSD-2-Clause"
] | null | null | null | /*
Copyright (c) 2014, Project OSRM, Dennis Luxen, others
All rights reserved.
Redistribution and use in source and binary forms, with or without modification,
are permitted provided that the following conditions are met:
Redistributions of source code must retain the above copyright notice, this list
of conditions ... | 30.128205 | 80 | 0.744255 | cypox |
59c8782a58e05e74090f6cf7e32d2d945da69e95 | 4,250 | cpp | C++ | src/core/LunaIpc.cpp | webosose/libpmscore | 04fb394972209f7adf81585845745edc3f2d5e3f | [
"Apache-2.0"
] | null | null | null | src/core/LunaIpc.cpp | webosose/libpmscore | 04fb394972209f7adf81585845745edc3f2d5e3f | [
"Apache-2.0"
] | null | null | null | src/core/LunaIpc.cpp | webosose/libpmscore | 04fb394972209f7adf81585845745edc3f2d5e3f | [
"Apache-2.0"
] | 1 | 2021-06-19T14:52:56.000Z | 2021-06-19T14:52:56.000Z | // @@@LICENSE
//
// Copyright (c) 2017-2020 LG Electronics, Inc.
//
// Confidential computer software. Valid license from LG required for
// possession, use or copying. Consistent with FAR 12.211 and 12.212,
// Commercial Computer Software, Computer Software Documentation, and
// Technical Data for Commercial Item... | 25.60241 | 144 | 0.642824 | webosose |
59c8835b1263d6bd3797b429097aa06d69199e59 | 4,530 | cpp | C++ | src/plugins/lmp/mpris/fdopropsadaptor.cpp | MellonQ/leechcraft | 71cbb238d2dade56b3865278a6a8e6a58c217fc5 | [
"BSL-1.0"
] | 1 | 2017-01-12T07:05:45.000Z | 2017-01-12T07:05:45.000Z | src/plugins/lmp/mpris/fdopropsadaptor.cpp | MellonQ/leechcraft | 71cbb238d2dade56b3865278a6a8e6a58c217fc5 | [
"BSL-1.0"
] | null | null | null | src/plugins/lmp/mpris/fdopropsadaptor.cpp | MellonQ/leechcraft | 71cbb238d2dade56b3865278a6a8e6a58c217fc5 | [
"BSL-1.0"
] | null | null | null | /**********************************************************************
* LeechCraft - modular cross-platform feature rich internet client.
* Copyright (C) 2006-2014 Georg Rudoy
*
* Boost Software License - Version 1.0 - August 17th, 2003
*
* Permission is hereby granted, free of charge, to any person or organiz... | 30 | 131 | 0.675717 | MellonQ |
59cb0df0bc7759b79c2c078dbbb5396876505e60 | 19 | cpp | C++ | AYK/src/aykpch.cpp | AreYouReal/AYK | c6859047cfed674291692cc31095d8bb61b27a35 | [
"Apache-2.0"
] | null | null | null | AYK/src/aykpch.cpp | AreYouReal/AYK | c6859047cfed674291692cc31095d8bb61b27a35 | [
"Apache-2.0"
] | null | null | null | AYK/src/aykpch.cpp | AreYouReal/AYK | c6859047cfed674291692cc31095d8bb61b27a35 | [
"Apache-2.0"
] | null | null | null | #include "aykpch.h" | 19 | 19 | 0.736842 | AreYouReal |
59cc6a70c25214cdcd315edd118ba47ea601427d | 18,839 | cpp | C++ | library/cpp/langs/generated/uniscripts.cpp | jochenater/catboost | de2786fbc633b0d6ea6a23b3862496c6151b95c2 | [
"Apache-2.0"
] | 6,989 | 2017-07-18T06:23:18.000Z | 2022-03-31T15:58:36.000Z | library/cpp/langs/generated/uniscripts.cpp | birichie/catboost | de75c6af12cf490700e76c22072fbdc15b35d679 | [
"Apache-2.0"
] | 1,978 | 2017-07-18T09:17:58.000Z | 2022-03-31T14:28:43.000Z | library/cpp/langs/generated/uniscripts.cpp | birichie/catboost | de75c6af12cf490700e76c22072fbdc15b35d679 | [
"Apache-2.0"
] | 1,228 | 2017-07-18T09:03:13.000Z | 2022-03-29T05:57:40.000Z | // Generated from http://www.unicode.org/Public/UNIDATA/Scripts.txt
// The best way to alter this file is to modify uniscripts.py
#include <library/cpp/langs/langs.h>
#include <util/system/yassert.h>
#include <cstring>
namespace NCharsetInternal {
struct TScriptRange {
EScript Script;
wchar32 Star... | 41.043573 | 67 | 0.571899 | jochenater |
59ccd694bb7c96479c2108da5e8212eafff2c7f4 | 883 | cpp | C++ | Chapter01/Source_Code/GCC_CLANG/QtSimple.cpp | ngdzu/CPP-Reactive-Programming | e1a19feb40be086d47227587b8ed3d509b7518ca | [
"MIT"
] | 98 | 2018-07-03T08:55:31.000Z | 2022-03-21T22:16:58.000Z | Chapter01/Source_Code/GCC_CLANG/QtSimple.cpp | ngdzu/CPP-Reactive-Programming | e1a19feb40be086d47227587b8ed3d509b7518ca | [
"MIT"
] | 1 | 2020-11-30T10:38:58.000Z | 2020-12-15T06:56:20.000Z | Chapter01/Source_Code/GCC_CLANG/QtSimple.cpp | ngdzu/CPP-Reactive-Programming | e1a19feb40be086d47227587b8ed3d509b7518ca | [
"MIT"
] | 54 | 2018-07-06T02:09:27.000Z | 2021-11-10T08:42:50.000Z | /////////////////////////////////////
//
// The following program can be compiled using
// QtCreator or Qt Console.
//
#include <qapplication.h>
#include <qdialog.h>
#include <qmessagebox.h>
#include <qobject.h>
#include <qpushbutton.h>
class MyApp : public QDialog {
Q_OBJECT
public:
MyApp(QObject* /*parent*/ = 0):... | 19.195652 | 56 | 0.643262 | ngdzu |
59cd3c7d1c467290ec3474f3d3b31bce6aa04641 | 1,024 | cpp | C++ | UVA/vol-102/10205.cpp | arash16/prays | 0fe6bb2fa008b8fc46c80b01729f68308114020d | [
"MIT"
] | 3 | 2017-05-12T14:45:37.000Z | 2020-01-18T16:51:25.000Z | UVA/vol-102/10205.cpp | arash16/prays | 0fe6bb2fa008b8fc46c80b01729f68308114020d | [
"MIT"
] | null | null | null | UVA/vol-102/10205.cpp | arash16/prays | 0fe6bb2fa008b8fc46c80b01729f68308114020d | [
"MIT"
] | null | null | null | /*
>>> ACM PROBLEM <<<
ID: 10205
Name: Stack 'em Up
Author: Arash Shakery
Email: arash.shakery@gmail.com
Language: C++
*/
#include <iostream>
#include <cstring>
#include <vector>
#include <string>
using namespace std;
char suits[][9]={"Clubs","Diamonds","Hearts","Spades"};
char nums[][6]={"2","3","4","5"... | 18.285714 | 82 | 0.53418 | arash16 |
59cf718ba0bd0efa05e8ed87cd3eadd7926c1d57 | 6,070 | cpp | C++ | tests/client/AsyncClient.cpp | wnewbery/cpphttp | adfc148716bc65aff29e881d1872c9dea6fc6af9 | [
"MIT"
] | 19 | 2017-03-28T02:17:42.000Z | 2021-02-12T03:26:58.000Z | tests/client/AsyncClient.cpp | wnewbery/cpphttp | adfc148716bc65aff29e881d1872c9dea6fc6af9 | [
"MIT"
] | 3 | 2016-07-14T10:15:06.000Z | 2016-11-22T21:04:01.000Z | tests/client/AsyncClient.cpp | wnewbery/cpphttp | adfc148716bc65aff29e881d1872c9dea6fc6af9 | [
"MIT"
] | 9 | 2017-10-19T07:15:42.000Z | 2019-09-17T07:08:25.000Z | #include <boost/test/unit_test.hpp>
#include "client/AsyncClient.hpp"
#include "../TestSocket.hpp"
#include "../TestSocketFactory.hpp"
#include "net/Net.hpp"
#include <chrono>
using namespace http;
BOOST_AUTO_TEST_SUITE(TestClient)
BOOST_AUTO_TEST_CASE(construct)
{
TestSocketFactory socket_factory;
socket_fac... | 23.897638 | 111 | 0.616145 | wnewbery |
59d05737552d1ab4760216fea10dbde39c6b85d5 | 9,110 | hpp | C++ | Support/Modules/GSRoot/Singleton.hpp | graphisoft-python/TextEngine | 20c2ff53877b20fdfe2cd51ce7abdab1ff676a70 | [
"Apache-2.0"
] | 3 | 2019-07-15T10:54:54.000Z | 2020-01-25T08:24:51.000Z | Support/Modules/GSRoot/Singleton.hpp | graphisoft-python/GSRoot | 008fac2c6bf601ca96e7096705e25b10ba4d3e75 | [
"Apache-2.0"
] | null | null | null | Support/Modules/GSRoot/Singleton.hpp | graphisoft-python/GSRoot | 008fac2c6bf601ca96e7096705e25b10ba4d3e75 | [
"Apache-2.0"
] | 1 | 2020-09-26T03:17:22.000Z | 2020-09-26T03:17:22.000Z |
// *****************************************************************************
//
// Declaration and implementation of Singleton class
//
// Module: GSRoot
// Namespace: GS
// Contact person: SN
//
// *****************************************************************************
#ifndef GS_SINGLETON_HPP
#define G... | 24.423592 | 125 | 0.45258 | graphisoft-python |
59d7e0a4b43a844c4405e7178ab4a04fb7555249 | 1,595 | cpp | C++ | src/Component/Power/InitBat.cpp | ut-issl/s2e-core | 900fae6b738eb8765cd98c48acb2b74f05dcc68c | [
"MIT"
] | 16 | 2021-12-28T18:30:01.000Z | 2022-03-26T12:59:48.000Z | src/Component/Power/InitBat.cpp | ut-issl/s2e-core | 900fae6b738eb8765cd98c48acb2b74f05dcc68c | [
"MIT"
] | 61 | 2022-01-04T22:56:36.000Z | 2022-03-31T13:19:29.000Z | src/Component/Power/InitBat.cpp | ut-issl/s2e-core | 900fae6b738eb8765cd98c48acb2b74f05dcc68c | [
"MIT"
] | 2 | 2022-03-03T03:39:25.000Z | 2022-03-12T04:50:30.000Z | #define _CRT_SECURE_NO_WARNINGS
#include "InitBat.hpp"
#include <string>
#include <vector>
#include "Interface/InitInput/IniAccess.h"
BAT InitBAT(ClockGenerator* clock_gen, int bat_id, const std::string fname) {
IniAccess bat_conf(fname);
const std::string st_bat_id = std::to_string(static_cast<long long>(bat_... | 30.673077 | 140 | 0.759875 | ut-issl |
59d80f38c8254363b4e2489f86e3efcf0d6e0058 | 3,315 | cpp | C++ | Src/InputUtils.cpp | Remag/GraphicsInversed | 6dff72130891010774c37d1e44080261db3cdb8e | [
"MIT"
] | null | null | null | Src/InputUtils.cpp | Remag/GraphicsInversed | 6dff72130891010774c37d1e44080261db3cdb8e | [
"MIT"
] | null | null | null | Src/InputUtils.cpp | Remag/GraphicsInversed | 6dff72130891010774c37d1e44080261db3cdb8e | [
"MIT"
] | null | null | null | #include <common.h>
#pragma hdrstop
#include <InputUtils.h>
#include <InputHandler.h>
#include <InputController.h>
#include <GinGlobals.h>
#include <NullMouseController.h>
namespace Gin {
//////////////////////////////////////////////////////////////////////////
CPtrOwner<TUserAction> CInputTranslator:... | 30.981308 | 110 | 0.652187 | Remag |
59d97fa30d562acd8a2600314707f596a259c6fe | 2,180 | hpp | C++ | src/sample_addons.hpp | simleo/pyecvl | c044dc2ddf9bb69e93ffe06113de9365dc84e168 | [
"MIT"
] | 2 | 2020-04-29T13:17:15.000Z | 2021-01-07T19:13:14.000Z | src/sample_addons.hpp | simleo/pyecvl | c044dc2ddf9bb69e93ffe06113de9365dc84e168 | [
"MIT"
] | 19 | 2020-01-16T11:55:07.000Z | 2022-02-28T11:27:40.000Z | src/sample_addons.hpp | deephealthproject/pyecvl | 3fb256a77ab6d7ff62219044d54b51d84471db6e | [
"MIT"
] | 2 | 2020-01-20T13:47:05.000Z | 2020-02-27T11:13:32.000Z | // Copyright (c) 2019-2021 CRS4
//
// 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, dis... | 34.603175 | 80 | 0.729358 | simleo |
59dacd31a9c2c21f71e45db0602c827ac200b05d | 10,482 | cpp | C++ | src/vm/ds/NumericVariant.cpp | normal-coder/polarphp | a06e1f8781b4b75a2ca8cf2c22e0aa62631866fe | [
"PHP-3.01"
] | 1 | 2019-01-28T01:33:49.000Z | 2019-01-28T01:33:49.000Z | src/vm/ds/NumericVariant.cpp | normal-coder/polarphp | a06e1f8781b4b75a2ca8cf2c22e0aa62631866fe | [
"PHP-3.01"
] | null | null | null | src/vm/ds/NumericVariant.cpp | normal-coder/polarphp | a06e1f8781b4b75a2ca8cf2c22e0aa62631866fe | [
"PHP-3.01"
] | null | null | null | // This source file is part of the polarphp.org open source project
//
// Copyright (c) 2017 - 2018 polarphp software foundation
// Copyright (c) 2017 - 2018 zzu_softboy <zzu_softboy@163.com>
// Licensed under Apache License v2.0 with Runtime Library Exception
//
// See https://polarphp.org/LICENSE.txt for license info... | 24.263889 | 100 | 0.691471 | normal-coder |
59db45fa198c6034b549628f7da768b00013db4a | 382 | cpp | C++ | A-FF/BaseEntity.cpp | Aeomi/A-FF | f0f1d0fc71776880575020cd4d0a4506e3e11aea | [
"MIT"
] | null | null | null | A-FF/BaseEntity.cpp | Aeomi/A-FF | f0f1d0fc71776880575020cd4d0a4506e3e11aea | [
"MIT"
] | null | null | null | A-FF/BaseEntity.cpp | Aeomi/A-FF | f0f1d0fc71776880575020cd4d0a4506e3e11aea | [
"MIT"
] | null | null | null | #include "BaseEntity.h"
#include "RenderHandler.h"
#include "EntityHandler.h"
#include "Transform.h"
#include "Collider.h"
#include "Renderer.h"
BaseEntity::BaseEntity() {
_transform = new Transform();
_collider = new Collider();
_renderer = new Renderer(this);
EntityHandler::registerEntity(this);
}
BaseEnti... | 15.28 | 37 | 0.717277 | Aeomi |
59dc49779e45098555fc2ec43748426d7f416ff2 | 21,459 | cpp | C++ | src/bricklet_ambient_light_v3.cpp | davidplotzki/sensorlogger | 8ee255fba5f8560650e2b79fc967aeec8d8ec7b7 | [
"MIT"
] | null | null | null | src/bricklet_ambient_light_v3.cpp | davidplotzki/sensorlogger | 8ee255fba5f8560650e2b79fc967aeec8d8ec7b7 | [
"MIT"
] | null | null | null | src/bricklet_ambient_light_v3.cpp | davidplotzki/sensorlogger | 8ee255fba5f8560650e2b79fc967aeec8d8ec7b7 | [
"MIT"
] | null | null | null | /* ***********************************************************
* This file was automatically generated on 2021-05-06. *
* *
* C/C++ Bindings Version 2.1.32 *
* *
* If... | 28.310026 | 232 | 0.785265 | davidplotzki |
59dd89ff9e6cf68ba0d66c6d42daac72d1eea72b | 1,413 | hpp | C++ | lib/expected.hpp | 1984not-GmbH/molch | c7f1f646c800ef3388f36e8805a3b94d33d85b12 | [
"MIT"
] | 15 | 2016-04-12T17:12:19.000Z | 2019-08-14T17:46:17.000Z | lib/expected.hpp | 1984not-GmbH/molch | c7f1f646c800ef3388f36e8805a3b94d33d85b12 | [
"MIT"
] | 63 | 2016-03-22T14:35:31.000Z | 2018-07-04T22:17:07.000Z | lib/expected.hpp | 1984not-GmbH/molch | c7f1f646c800ef3388f36e8805a3b94d33d85b12 | [
"MIT"
] | 1 | 2017-08-17T09:27:30.000Z | 2017-08-17T09:27:30.000Z | /*
* Molch, an implementation of the axolotl ratchet based on libsodium
*
* ISC License
*
* Copyright (C) 2015-2018 1984not Security GmbH
* Author: Max Bruckner (FSMaxB)
*
* Permission to use, copy, modify, and/or distribute this software for any
* purpose with or without fee is hereby granted, provided that t... | 37.184211 | 75 | 0.776362 | 1984not-GmbH |
59e014034d3020e6f741c32e602d11ed2304a9da | 2,090 | cpp | C++ | BlackVision/LibBlackVision/Source/Engine/Models/Timeline/TimeEvaluatorBase.cpp | black-vision-engine/bv-engine | 85089d41bb22afeaa9de070646e12aa1777ecedf | [
"MIT"
] | 1 | 2022-01-28T11:43:47.000Z | 2022-01-28T11:43:47.000Z | BlackVision/LibBlackVision/Source/Engine/Models/Timeline/TimeEvaluatorBase.cpp | black-vision-engine/bv-engine | 85089d41bb22afeaa9de070646e12aa1777ecedf | [
"MIT"
] | null | null | null | BlackVision/LibBlackVision/Source/Engine/Models/Timeline/TimeEvaluatorBase.cpp | black-vision-engine/bv-engine | 85089d41bb22afeaa9de070646e12aa1777ecedf | [
"MIT"
] | null | null | null | #include "stdafx.h"
#include "TimeEvaluatorBase.h"
#include "Dynamic/DefaultTimeline.h"
#include "Static/ConstTimeEvaluator.h"
#include "Static/OffsetTimeEvaluator.h"
#include "Serialization/IDeserializer.h"
#include "Serialization/BV/CloneViaSerialization.h"
#include "Assets/AssetDescsWithUIDs.h"
... | 26.455696 | 179 | 0.57512 | black-vision-engine |
59e023765cc73ca41365d790adc99deaed7423c9 | 739 | hpp | C++ | src/LibKyra/Statements/VarDeclarationStmt.hpp | LukasPietzschmann/Lou | 751dd68bda43e53604fb59e9d85c1e77554534ad | [
"MIT"
] | 3 | 2022-01-08T16:12:07.000Z | 2022-03-18T18:38:36.000Z | src/LibKyra/Statements/VarDeclarationStmt.hpp | LukasPietzschmann/Lou | 751dd68bda43e53604fb59e9d85c1e77554534ad | [
"MIT"
] | null | null | null | src/LibKyra/Statements/VarDeclarationStmt.hpp | LukasPietzschmann/Lou | 751dd68bda43e53604fb59e9d85c1e77554534ad | [
"MIT"
] | null | null | null | #pragma once
#include "../Expressions/Expression.hpp"
#include "../Token.hpp"
#include "Statement.hpp"
namespace Kyra {
struct Position;
class TypeExpr;
class VarDeclarationStmt : public Statement {
public:
VarDeclarationStmt(const Position& position,
Token identifier,
Expression::Ptr initializer,
std::shar... | 23.09375 | 49 | 0.760487 | LukasPietzschmann |
59e478aded0f667bbfff21dc33c1242c48e51cc9 | 973 | hpp | C++ | TorchLib/Source/ReLU.hpp | DoDoENT/jtorch | 2f92d397c8dc6fd7f17fe682cb7ce38314086c8e | [
"BSD-2-Clause"
] | null | null | null | TorchLib/Source/ReLU.hpp | DoDoENT/jtorch | 2f92d397c8dc6fd7f17fe682cb7ce38314086c8e | [
"BSD-2-Clause"
] | null | null | null | TorchLib/Source/ReLU.hpp | DoDoENT/jtorch | 2f92d397c8dc6fd7f17fe682cb7ce38314086c8e | [
"BSD-2-Clause"
] | null | null | null | //
// Threshold.hpp
//
// Created by Jonathan Tompson on 4/1/13.
//
#pragma once
#include <string> // for string, istream
#include "TorchStage.hpp" // for ::THRESHOLD_STAGE, TorchStage, TorchStageType
namespace mtorch {
class TorchData;
class Threshold : public TorchStage {
public:
// Constru... | 24.325 | 79 | 0.68037 | DoDoENT |
59e91ad6cf5506263f2b9e83649098d59b5b8013 | 858 | cpp | C++ | Binary Tree/Print_Nodes_k_Distance_From_Root.cpp | susantabiswas/placementPrep | 22a7574206ddc63eba89517f7b68a3d2f4d467f5 | [
"MIT"
] | 19 | 2018-12-02T05:59:44.000Z | 2021-07-24T14:11:54.000Z | Binary Tree/Print_Nodes_k_Distance_From_Root.cpp | susantabiswas/placementPrep | 22a7574206ddc63eba89517f7b68a3d2f4d467f5 | [
"MIT"
] | null | null | null | Binary Tree/Print_Nodes_k_Distance_From_Root.cpp | susantabiswas/placementPrep | 22a7574206ddc63eba89517f7b68a3d2f4d467f5 | [
"MIT"
] | 13 | 2019-04-25T16:20:00.000Z | 2021-09-06T19:50:04.000Z | //Print all the nodes which are at 'k' distance from the root
#include<iostream>
using namespace std;
struct Node
{
int data;
Node *left;
Node *right;
};
//creates node for the tree
Node *create(int data)
{
try{
Node *node=new Node;
node->data=data;
node->left=NULL;
node->right=NULL;
return node;
}
c... | 15.052632 | 61 | 0.649184 | susantabiswas |
59eed5a487ec1f5d409609c142de066b91021dc5 | 1,277 | cpp | C++ | algorithms_and_data_structures/term_1/lab_2/k.cpp | RevealMind/itmo | fc076d385fd46c50056cfb72d1990e10a1369f2b | [
"MIT"
] | 2 | 2020-07-15T10:42:55.000Z | 2020-07-20T08:40:56.000Z | algorithms_and_data_structures/term_1/lab_2/k.cpp | RevealMind/itmo | fc076d385fd46c50056cfb72d1990e10a1369f2b | [
"MIT"
] | 9 | 2021-05-09T02:35:45.000Z | 2022-01-22T13:19:03.000Z | algorithms_and_data_structures/term_1/lab_2/k.cpp | RevealMind/itmo | fc076d385fd46c50056cfb72d1990e10a1369f2b | [
"MIT"
] | 1 | 2022-02-18T07:57:31.000Z | 2022-02-18T07:57:31.000Z | #include<bits/stdc++.h>
int main()
{
freopen("kenobi.in","r", stdin);
freopen("kenobi.out","w", stdout);
std :: deque <int> arr1, arr2;
int x, n, k = 0;
std :: string cmd;
scanf("%d", &n);
for(int i = 0; i < n; i++)
{
std :: cin >> cmd;
switch(cmd[0]){
case 'a':
... | 24.09434 | 49 | 0.326547 | RevealMind |
59ef0f5f73d1d396299ca86910f5eb5529c36a50 | 10,411 | cpp | C++ | exec/compressible_mui/SPPARKS_MUI/app_potts_pin.cpp | PeculiarOvertones/FHDeX | 60e285101704196db24afe8b2461283753526fc5 | [
"BSD-3-Clause-LBNL"
] | 3 | 2018-06-25T13:23:13.000Z | 2021-12-28T21:31:54.000Z | exec/compressible_mui/SPPARKS_MUI/app_potts_pin.cpp | PeculiarOvertones/FHDeX | 60e285101704196db24afe8b2461283753526fc5 | [
"BSD-3-Clause-LBNL"
] | 44 | 2019-09-24T15:31:52.000Z | 2022-02-24T21:05:21.000Z | exec/compressible_mui/SPPARKS_MUI/app_potts_pin.cpp | PeculiarOvertones/FHDeX | 60e285101704196db24afe8b2461283753526fc5 | [
"BSD-3-Clause-LBNL"
] | 7 | 2019-10-01T15:47:08.000Z | 2022-02-22T23:04:58.000Z | /* ----------------------------------------------------------------------
SPPARKS - Stochastic Parallel PARticle Kinetic Simulator
http://www.cs.sandia.gov/~sjplimp/spparks.html
Steve Plimpton, sjplimp@sandia.gov, Sandia National Laboratories
Copyright (2008) Sandia Corporation. Under the terms of Contrac... | 28.839335 | 77 | 0.545961 | PeculiarOvertones |
59f44574beffa4bea5beeba69bcdd600dc02b603 | 7,666 | hh | C++ | include/BasePhantomBuilder.hh | ZiliasTheSaint/DoseInHumanBody | 26818b808ba3ad7740b321e9f82466c29f4385ee | [
"BSD-3-Clause"
] | 1 | 2019-07-27T11:22:16.000Z | 2019-07-27T11:22:16.000Z | include/BasePhantomBuilder.hh | ZiliasTheSaint/DoseInHumanBody | 26818b808ba3ad7740b321e9f82466c29f4385ee | [
"BSD-3-Clause"
] | null | null | null | include/BasePhantomBuilder.hh | ZiliasTheSaint/DoseInHumanBody | 26818b808ba3ad7740b321e9f82466c29f4385ee | [
"BSD-3-Clause"
] | 1 | 2019-10-12T05:41:52.000Z | 2019-10-12T05:41:52.000Z | //
// ********************************************************************
// * License and Disclaimer *
// * *
// * The Geant4 software is copyright of the Copyright Holders of *
// * the Geant4 Collaboration... | 71.64486 | 132 | 0.73102 | ZiliasTheSaint |
59f4fb64f1400e36b691da9296fd90d462ad6f89 | 919 | cxx | C++ | src/Cxx/Widgets/PlaneWidget.cxx | cvandijck/VTKExamples | b6bb89414522afc1467be8a1f0089a37d0c16883 | [
"Apache-2.0"
] | 309 | 2017-05-21T09:07:19.000Z | 2022-03-15T09:18:55.000Z | src/Cxx/Widgets/PlaneWidget.cxx | yijianmingliu/VTKExamples | dc8aac47c4384f9a2de9facbdd1ab3249f62ec99 | [
"Apache-2.0"
] | 379 | 2017-05-21T09:06:43.000Z | 2021-03-29T20:30:50.000Z | src/Cxx/Widgets/PlaneWidget.cxx | yijianmingliu/VTKExamples | dc8aac47c4384f9a2de9facbdd1ab3249f62ec99 | [
"Apache-2.0"
] | 170 | 2017-05-17T14:47:41.000Z | 2022-03-31T13:16:26.000Z | #include <vtkPlaneWidget.h>
#include <vtkRenderer.h>
#include <vtkRenderWindow.h>
#include <vtkRenderWindowInteractor.h>
#include <vtkSmartPointer.h>
int main(int, char *[])
{
vtkSmartPointer<vtkRenderer> renderer =
vtkSmartPointer<vtkRenderer>::New();
vtkSmartPointer<vtkRenderWindow> renderWindow =
v... | 27.029412 | 70 | 0.763874 | cvandijck |
59f523def5be92f9471c26d4892c30eefa45baa9 | 1,000 | cpp | C++ | moontamer/four_wheel_steering_odometry/src/four_wheel_steering_odometry_node.cpp | cagrikilic/simulation-environment | 459ded470c708a423fc8bcc6157b57399ae89c03 | [
"MIT"
] | 1 | 2021-11-20T14:57:44.000Z | 2021-11-20T14:57:44.000Z | moontamer/four_wheel_steering_odometry/src/four_wheel_steering_odometry_node.cpp | cagrikilic/simulation-environment | 459ded470c708a423fc8bcc6157b57399ae89c03 | [
"MIT"
] | null | null | null | moontamer/four_wheel_steering_odometry/src/four_wheel_steering_odometry_node.cpp | cagrikilic/simulation-environment | 459ded470c708a423fc8bcc6157b57399ae89c03 | [
"MIT"
] | 1 | 2021-11-20T14:57:48.000Z | 2021-11-20T14:57:48.000Z | /*
Ce noeud a pour but de récupérer les informations du topic Joint_States pour reconstruire les données odométriques du modèle bicyclette et de les publier dans un topic.
Ces données sont les braquages avant et arrière, les vitesses de braquage avant et arrière, la vitesse du véhicule, son accélération et son jerk.
*/... | 30.30303 | 168 | 0.75 | cagrikilic |
59f564a3289a564d897b5a9993ad1361af281e48 | 497 | cpp | C++ | modules/polygon/src/polygon.cpp | gurylev-nikita/devtools-course-practice | bab6ba4e39f04940e27c9ac148505eb152c05d17 | [
"CC-BY-4.0"
] | null | null | null | modules/polygon/src/polygon.cpp | gurylev-nikita/devtools-course-practice | bab6ba4e39f04940e27c9ac148505eb152c05d17 | [
"CC-BY-4.0"
] | 2 | 2021-03-12T15:09:25.000Z | 2021-04-19T21:01:31.000Z | modules/polygon/src/polygon.cpp | gurylev-nikita/devtools-course-practice | bab6ba4e39f04940e27c9ac148505eb152c05d17 | [
"CC-BY-4.0"
] | null | null | null | // Copyright 2021 Alibekov Murad
#include "include/polygon.h"
double Polygon::PolygonArea(const Points2D& polygon) {
double area = 0.;
int N = polygon.size();
if (N <= 2)
return area;
for (int i = 0; i < N - 1; i++)
area += polygon[i].first * polygon[i + 1].second
- pol... | 23.666667 | 57 | 0.561368 | gurylev-nikita |
59f8dc85d8ddf23016ed928970ed83c4e7257cb2 | 68,021 | cpp | C++ | src/xrServerEntities/xrServer_Objects_ALife.cpp | clayne/xray-16 | 32ebf81a252c7179e2824b2874f911a91e822ad1 | [
"OML",
"Linux-OpenIB"
] | 2 | 2015-02-23T10:43:02.000Z | 2015-06-11T14:45:08.000Z | src/xrServerEntities/xrServer_Objects_ALife.cpp | clayne/xray-16 | 32ebf81a252c7179e2824b2874f911a91e822ad1 | [
"OML",
"Linux-OpenIB"
] | 17 | 2022-01-25T08:58:23.000Z | 2022-03-28T17:18:28.000Z | src/xrServerEntities/xrServer_Objects_ALife.cpp | clayne/xray-16 | 32ebf81a252c7179e2824b2874f911a91e822ad1 | [
"OML",
"Linux-OpenIB"
] | 1 | 2015-06-05T20:04:00.000Z | 2015-06-05T20:04:00.000Z | ////////////////////////////////////////////////////////////////////////////
// Module : xrServer_Objects_ALife.cpp
// Created : 19.09.2002
// Modified : 04.06.2003
// Author : Oles Shyshkovtsov, Alexander Maksimchuk, Victor Reutskiy and Dmitriy Iassenev
// Description : Server objects for ALife s... | 35.116675 | 148 | 0.665442 | clayne |
59fd2460f68cd9dd834253c7422a65ec613bb62b | 873 | cpp | C++ | glfw3_app/common/collada/dae_lights.cpp | hirakuni45/glfw3_app | d9ceeef6d398229fda4849afe27f8b48d1597fcf | [
"BSD-3-Clause"
] | 9 | 2015-09-22T21:36:57.000Z | 2021-04-01T09:16:53.000Z | glfw3_app/common/collada/dae_lights.cpp | hirakuni45/glfw3_app | d9ceeef6d398229fda4849afe27f8b48d1597fcf | [
"BSD-3-Clause"
] | null | null | null | glfw3_app/common/collada/dae_lights.cpp | hirakuni45/glfw3_app | d9ceeef6d398229fda4849afe27f8b48d1597fcf | [
"BSD-3-Clause"
] | 2 | 2019-02-21T04:22:13.000Z | 2021-03-02T17:24:32.000Z | //=====================================================================//
/*! @file
@brief collada lights のパーサー
@author 平松邦仁 (hira@rvf-rc45.net)
*/
//=====================================================================//
#include "dae_lights.hpp"
#include <boost/format.hpp>
namespace collada {
using namespace boo... | 21.292683 | 97 | 0.426117 | hirakuni45 |
59fed7843d8312e291e68c633fd451f0a4aeff92 | 248 | hpp | C++ | Vertex.hpp | Sqazine/soft-raster-examples | 743f975305de9b64ee135e844a23d2b2fcea3724 | [
"Apache-2.0"
] | null | null | null | Vertex.hpp | Sqazine/soft-raster-examples | 743f975305de9b64ee135e844a23d2b2fcea3724 | [
"Apache-2.0"
] | null | null | null | Vertex.hpp | Sqazine/soft-raster-examples | 743f975305de9b64ee135e844a23d2b2fcea3724 | [
"Apache-2.0"
] | null | null | null | #pragma once
#include "Vec3.hpp"
#include "Vec2.hpp"
#include "Vec4.hpp"
struct Vertex
{
Vec4f position;
Vec2f texcoord;
Vec3f normal;
Vec3f tangent;
Vec3f binormal;
Vec4f color;
//用于光栅化时片元位置的插值
Vec3f fragPosWS;
};
| 14.588235 | 20 | 0.657258 | Sqazine |
94003a2ce9a8bef6b4f5ee2ac56fe3b2da2c5b77 | 648 | hpp | C++ | include/RED4ext/Scripting/Natives/Generated/anim/AnimNode_AnimSetTagValue.hpp | jackhumbert/RED4ext.SDK | 2c55eccb83beabbbe02abae7945af8efce638fca | [
"MIT"
] | 42 | 2020-12-25T08:33:00.000Z | 2022-03-22T14:47:07.000Z | include/RED4ext/Scripting/Natives/Generated/anim/AnimNode_AnimSetTagValue.hpp | jackhumbert/RED4ext.SDK | 2c55eccb83beabbbe02abae7945af8efce638fca | [
"MIT"
] | 38 | 2020-12-28T22:36:06.000Z | 2022-02-16T11:25:47.000Z | include/RED4ext/Scripting/Natives/Generated/anim/AnimNode_AnimSetTagValue.hpp | jackhumbert/RED4ext.SDK | 2c55eccb83beabbbe02abae7945af8efce638fca | [
"MIT"
] | 20 | 2020-12-28T22:17:38.000Z | 2022-03-22T17:19:01.000Z | #pragma once
// This file is generated from the Game's Reflection data
#include <cstdint>
#include <RED4ext/Common.hpp>
#include <RED4ext/Scripting/Natives/Generated/anim/AnimNode_FloatValue.hpp>
#include <RED4ext/Scripting/Natives/Generated/red/TagList.hpp>
namespace RED4ext
{
namespace anim {
struct AnimNode_Anim... | 27 | 75 | 0.762346 | jackhumbert |
94005adf00144265ce730b3a466d16e607cafbaa | 269 | hxx | C++ | dev/ese/src/inc/_osu/timeu.hxx | augustoproiete-forks/microsoft--Extensible-Storage-Engine | a38945d2147167e3fa749594f54dae6c7307b8da | [
"MIT"
] | 1 | 2021-02-02T07:04:07.000Z | 2021-02-02T07:04:07.000Z | dev/ese/src/inc/_osu/timeu.hxx | augustoproiete-forks/microsoft--Extensible-Storage-Engine | a38945d2147167e3fa749594f54dae6c7307b8da | [
"MIT"
] | null | null | null | dev/ese/src/inc/_osu/timeu.hxx | augustoproiete-forks/microsoft--Extensible-Storage-Engine | a38945d2147167e3fa749594f54dae6c7307b8da | [
"MIT"
] | null | null | null | // Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.
#ifndef _OSU_TIME_HXX_INCLUDED
#define _OSU_TIME_HXX_INCLUDED
typedef double DATESERIAL;
void UtilGetDateTime( DATESERIAL* pdt );
ERR ErrOSUTimeInit();
void OSUTimeTerm();
#endif
| 10.76 | 40 | 0.758364 | augustoproiete-forks |
940071b34ad2e1f8e02dfe9c480943349ceb55e5 | 4,803 | cpp | C++ | fk/upgrade_from_sd_worker.cpp | fieldkit/firmware | 09df5c4c5c2f21865cfbb11c9cdc362bb8803ad6 | [
"BSD-3-Clause"
] | 10 | 2019-11-26T11:35:56.000Z | 2021-07-03T07:21:38.000Z | fk/upgrade_from_sd_worker.cpp | fieldkit/firmware | 09df5c4c5c2f21865cfbb11c9cdc362bb8803ad6 | [
"BSD-3-Clause"
] | 1 | 2019-07-03T06:27:21.000Z | 2019-09-06T09:21:27.000Z | fk/upgrade_from_sd_worker.cpp | fieldkit/firmware | 09df5c4c5c2f21865cfbb11c9cdc362bb8803ad6 | [
"BSD-3-Clause"
] | 1 | 2019-09-23T18:13:51.000Z | 2019-09-23T18:13:51.000Z | #include <samd51_common.h>
#include <loading.h>
#include <blake2b.h>
#include "modules/dyn/dyn.h"
#include "upgrade_from_sd_worker.h"
#include "hal/flash.h"
#include "storage/types.h"
#include "progress_tracker.h"
#include "gs_progress_callbacks.h"
#include "utilities.h"
#include "state_manager.h"
#include "graceful... | 25.684492 | 105 | 0.578597 | fieldkit |
940391050131b5ee59593cac871b01db7aa773f0 | 9,235 | cpp | C++ | ArcGISRuntimeSDKQt_CppSamples/Routing/OfflineRouting/OfflineRouting.cpp | Pandinosaurus/arcgis-runtime-samples-qt | 87dc001e51a3e1279593fd8d6b6c1702225ad13c | [
"Apache-2.0"
] | 1 | 2021-05-06T06:39:41.000Z | 2021-05-06T06:39:41.000Z | ArcGISRuntimeSDKQt_CppSamples/Routing/OfflineRouting/OfflineRouting.cpp | Pandinosaurus/arcgis-runtime-samples-qt | 87dc001e51a3e1279593fd8d6b6c1702225ad13c | [
"Apache-2.0"
] | null | null | null | ArcGISRuntimeSDKQt_CppSamples/Routing/OfflineRouting/OfflineRouting.cpp | Pandinosaurus/arcgis-runtime-samples-qt | 87dc001e51a3e1279593fd8d6b6c1702225ad13c | [
"Apache-2.0"
] | null | null | null | // [WriteFile Name=OfflineRouting, Category=Routing]
// [Legal]
// Copyright 2020 Esri.
// 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
// Unl... | 30.783333 | 180 | 0.716622 | Pandinosaurus |
9410a6bad10b0488a5716a813cba8f9f122d2061 | 3,655 | cpp | C++ | src/0-basics/init-d3d/main.cpp | yottaawesome/directx-playground | 6cf59cd42ebe1668eda8862f8ba7bb69ba102ff4 | [
"MIT"
] | null | null | null | src/0-basics/init-d3d/main.cpp | yottaawesome/directx-playground | 6cf59cd42ebe1668eda8862f8ba7bb69ba102ff4 | [
"MIT"
] | null | null | null | src/0-basics/init-d3d/main.cpp | yottaawesome/directx-playground | 6cf59cd42ebe1668eda8862f8ba7bb69ba102ff4 | [
"MIT"
] | null | null | null | #include "header.h"
#include <iostream>
#include <wrl.h>
using Microsoft::WRL::ComPtr;
int main(int argc, char* argv[])
{
try
{
RegisterWindowClass();
HWND hWnd = CreateMainWindow();
DXGI_FORMAT mBackBufferFormat = DXGI_FORMAT_R8G8B8A8_UNORM;
UINT sampleCount = 4;
const UINT bufferCount = ... | 26.485507 | 124 | 0.687551 | yottaawesome |
9412cc3661a29eeb0d38fcaec79dac0a032b0fda | 309 | cpp | C++ | archive/1.12.03.cpp | woshiluo/oi | 5637fb81b0e25013314783dc387f7fc93bf9d4b9 | [
"Apache-2.0"
] | null | null | null | archive/1.12.03.cpp | woshiluo/oi | 5637fb81b0e25013314783dc387f7fc93bf9d4b9 | [
"Apache-2.0"
] | null | null | null | archive/1.12.03.cpp | woshiluo/oi | 5637fb81b0e25013314783dc387f7fc93bf9d4b9 | [
"Apache-2.0"
] | null | null | null | #include <stdio.h>
bool jl(double a,int b){
if(a>=37.5&&b==1) return true;
else return false;
}
int main(){
int n,ans=0;
scanf("%d",&n);
for(int i=0;i<n;i++){
char a[10];
double b;
int c;
scanf("%s %lf %d",a,&b,&c);
if(jl(b,c)){
ans++;
printf("%s\n",a);
}
}
printf("%d",ans);
}
| 12.36 | 31 | 0.498382 | woshiluo |
9412ed794324257006b770e7629811d01e438cfb | 2,970 | cpp | C++ | CODECHEF/Long/MAY15/devhand.cpp | henviso/contests | aa8a5ce9ed4524e6c3130ee73af7640e5a86954c | [
"Apache-2.0"
] | null | null | null | CODECHEF/Long/MAY15/devhand.cpp | henviso/contests | aa8a5ce9ed4524e6c3130ee73af7640e5a86954c | [
"Apache-2.0"
] | null | null | null | CODECHEF/Long/MAY15/devhand.cpp | henviso/contests | aa8a5ce9ed4524e6c3130ee73af7640e5a86954c | [
"Apache-2.0"
] | null | null | null | #include <iostream>
#include <cstdio>
#include <cstdlib>
#include <stack>
#include <algorithm>
#include <cctype>
#include <vector>
#include <queue>
#include <tr1/unordered_map>
#include <cmath>
#include <map>
#include <bitset>
#include <set>
#include <iomanip>
#include <cstring>
#include <unistd.h>
using namespace std;... | 26.517857 | 91 | 0.49596 | henviso |
9413258b1c6e346bb18d88bbedc77325fb0086f7 | 703 | hpp | C++ | MessageLevelModel/sobel/utils.hpp | Blinded4Review/ASPDAC | f1567cff39b4f11fe61cd463fb742b990b927170 | [
"Apache-2.0"
] | null | null | null | MessageLevelModel/sobel/utils.hpp | Blinded4Review/ASPDAC | f1567cff39b4f11fe61cd463fb742b990b927170 | [
"Apache-2.0"
] | null | null | null | MessageLevelModel/sobel/utils.hpp | Blinded4Review/ASPDAC | f1567cff39b4f11fe61cd463fb742b990b927170 | [
"Apache-2.0"
] | null | null | null | #ifndef UTILS_H
#define UTILS_H
#include <gsl/gsl_rng.h>
#include <gsl/gsl_randist.h>
#include <gsl/gsl_cdf.h>
// get max
double get_max(const double x, const double y);
// general discrete distributions
size_t get_discrete(const gsl_rng *r, size_t K, const double *P);
// gaussian distribution
double get_gaussian(... | 21.96875 | 65 | 0.755334 | Blinded4Review |
941580d44e194d6f55bc3e72aedfe06c0fe47f7b | 383 | cpp | C++ | loops-fun/main.cpp | diegopacheco/cpp-playground | 5ff4391f4bb40f6395f8d990ac8ce8fbb3d0b020 | [
"Unlicense"
] | null | null | null | loops-fun/main.cpp | diegopacheco/cpp-playground | 5ff4391f4bb40f6395f8d990ac8ce8fbb3d0b020 | [
"Unlicense"
] | null | null | null | loops-fun/main.cpp | diegopacheco/cpp-playground | 5ff4391f4bb40f6395f8d990ac8ce8fbb3d0b020 | [
"Unlicense"
] | 1 | 2021-09-07T22:18:08.000Z | 2021-09-07T22:18:08.000Z | #include <iostream>
using namespace std;
void funWithWhile(){
cout << "Fun with While:" << endl;
int i = 0;
while (i < 10){
cout << i << "\n";
i++;
}
}
void funWithFor(){
cout << "Fun with For:" << endl;
for (int i = 0; i < 10; i++) {
cout << i << "\n";
}
}
int mai... | 15.32 | 38 | 0.454308 | diegopacheco |
9415c8c50aae2460bfeab45ffc310f52ac0e08e7 | 1,007 | cpp | C++ | Competitive Programing Problem Solutions/Graph Theory/graph coloring when connected.cpp | BIJOY-SUST/ACM---ICPC | b382d80d327ddcab15ab15c0e763ccf8a22e0d43 | [
"Apache-2.0"
] | 1 | 2022-02-27T12:07:59.000Z | 2022-02-27T12:07:59.000Z | Competitive Programing Problem Solutions/Graph Theory/graph coloring when connected.cpp | BIJOY-SUST/Competitive-Programming | b382d80d327ddcab15ab15c0e763ccf8a22e0d43 | [
"Apache-2.0"
] | null | null | null | Competitive Programing Problem Solutions/Graph Theory/graph coloring when connected.cpp | BIJOY-SUST/Competitive-Programming | b382d80d327ddcab15ab15c0e763ccf8a22e0d43 | [
"Apache-2.0"
] | null | null | null | #include<bits/stdc++.h>
using namespace std;
int v;
bool isBipartite(int matrix[100][100],int n){
int color[v];
queue<int>q; ///0 1 0 1
q.push(n); ///1 0 1 0
memset(color,-1,sizeof(color)); ///0 1 0 1
color[n]=1; ... | 26.5 | 64 | 0.381331 | BIJOY-SUST |
941710f7592c7cf8ab2864f7d377a9f2441673d7 | 3,027 | hpp | C++ | RobWorkSim/src/rwsimlibs/gui/ContactTableWidget.hpp | ZLW07/RobWork | e713881f809d866b9a0749eeb15f6763e64044b3 | [
"Apache-2.0"
] | 1 | 2021-12-29T14:16:27.000Z | 2021-12-29T14:16:27.000Z | RobWorkSim/src/rwsimlibs/gui/ContactTableWidget.hpp | ZLW07/RobWork | e713881f809d866b9a0749eeb15f6763e64044b3 | [
"Apache-2.0"
] | null | null | null | RobWorkSim/src/rwsimlibs/gui/ContactTableWidget.hpp | ZLW07/RobWork | e713881f809d866b9a0749eeb15f6763e64044b3 | [
"Apache-2.0"
] | null | null | null | /********************************************************************************
* Copyright 2016 The Robotics Group, The Maersk Mc-Kinney Moller Institute,
* Faculty of Engineering, University of Southern Denmark
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file exce... | 30.27 | 100 | 0.656095 | ZLW07 |
94173586915ead9c50b4fa91eaf7cae4a1a714ad | 2,752 | hpp | C++ | include/wee/core/zip.hpp | emdavoca/wee | 60344dd646a2e27d1cfdb1131dd679558d9cfa2b | [
"MIT"
] | 1 | 2019-02-11T12:18:39.000Z | 2019-02-11T12:18:39.000Z | include/wee/core/zip.hpp | emdavoca/wee | 60344dd646a2e27d1cfdb1131dd679558d9cfa2b | [
"MIT"
] | 1 | 2021-11-11T07:27:58.000Z | 2021-11-11T07:27:58.000Z | include/wee/core/zip.hpp | emdavoca/wee | 60344dd646a2e27d1cfdb1131dd679558d9cfa2b | [
"MIT"
] | 1 | 2021-11-11T07:22:12.000Z | 2021-11-11T07:22:12.000Z | #pragma once
#include <algorithm>
#include <iterator>
#include <iostream>
#include <tuple>
namespace wee {
template<typename T>
class zip_impl
{
public:
typedef std::vector<T> container_t;
template<typename... Args>
zip_impl(con... | 30.577778 | 81 | 0.411701 | emdavoca |
94261c8e735a7a636bfbebbd2c944df435c91d4a | 737 | cc | C++ | build/ARM/python/_m5/param_O3Checker.cc | msharmavikram/gem5_experiments | 87353d28df55b9a6a5be6cbb19bce87a500ab3b4 | [
"BSD-3-Clause"
] | 5 | 2019-12-12T16:26:09.000Z | 2022-03-17T03:23:33.000Z | build/X86/python/_m5/param_O3Checker.cc | zhoushuxin/impl_of_HPCA2018 | 594d807fb0c0712bb7766122c4efe3321d012687 | [
"BSD-3-Clause"
] | null | null | null | build/X86/python/_m5/param_O3Checker.cc | zhoushuxin/impl_of_HPCA2018 | 594d807fb0c0712bb7766122c4efe3321d012687 | [
"BSD-3-Clause"
] | null | null | null | #include "pybind11/pybind11.h"
#include "pybind11/stl.h"
#include "params/O3Checker.hh"
#include "python/pybind11/core.hh"
#include "sim/init.hh"
#include "sim/sim_object.hh"
#include "cpu/o3/checker.hh"
namespace py = pybind11;
static void
module_init(py::module &m_internal)
{
py::module m = m_internal.def_sub... | 26.321429 | 119 | 0.702849 | msharmavikram |
9428181d5f9dd6931046151f9c4e85cfda6f3554 | 1,610 | cpp | C++ | learncpp.com/09_Operator_Overloading/Question04/src/Main.cpp | KoaLaYT/Learn-Cpp | 0bfc98c3eca9c2fde5bff609c67d7e273fde5196 | [
"MIT"
] | null | null | null | learncpp.com/09_Operator_Overloading/Question04/src/Main.cpp | KoaLaYT/Learn-Cpp | 0bfc98c3eca9c2fde5bff609c67d7e273fde5196 | [
"MIT"
] | null | null | null | learncpp.com/09_Operator_Overloading/Question04/src/Main.cpp | KoaLaYT/Learn-Cpp | 0bfc98c3eca9c2fde5bff609c67d7e273fde5196 | [
"MIT"
] | null | null | null | /**
* Chapter 9 :: Question 4
*
* implement a two point fixed floating number
*
* KoaLaYT 20:37 02/02/2020
*
*/
#include "FixedPoint2.h"
void testAddition() {
// h/t to reader Sharjeel Safdar for this function
std::cout << std::boolalpha;
std::cout << (FixedPoint2{0.75} + FixedPoint2{1.23} == FixedPoin... | 33.541667 | 78 | 0.579503 | KoaLaYT |
9429d01e1468a0ae36da7c95621233ccda44effb | 3,831 | cpp | C++ | src/InputManager.cpp | rage-of-the-elders/rage-of-the-elders | 8f07c37c174813beef1658277c3b1b31a8fe2020 | [
"MIT"
] | 7 | 2019-05-20T17:26:15.000Z | 2021-09-03T01:18:29.000Z | src/InputManager.cpp | rage-of-the-elders/rage-of-the-elders | 8f07c37c174813beef1658277c3b1b31a8fe2020 | [
"MIT"
] | 38 | 2019-05-20T17:18:23.000Z | 2019-07-12T01:53:47.000Z | src/InputManager.cpp | rage-of-the-elders/rage-of-the-elders | 8f07c37c174813beef1658277c3b1b31a8fe2020 | [
"MIT"
] | null | null | null | #define INCLUDE_SDL
#include "SDL_include.h"
#include "InputManager.h"
#include "Camera.h"
#include <cstring>
#include <iostream>
InputManager::InputManager() {
memset(this->mouseState, false, sizeof this->mouseState);
memset(this->mouseUpdate, 0, sizeof this->mouseUpdate);
this->updateCounter = 0;
this->qui... | 23.648148 | 94 | 0.633255 | rage-of-the-elders |
942a04131e853de76706c5171ee407741a8f1167 | 2,216 | hpp | C++ | include/Lys/WorkingModule/WorkingTask.hpp | Tigole/Lys-Framework | c7a51261b78c69fbfd823c1d20617ef13ca83a39 | [
"MIT"
] | null | null | null | include/Lys/WorkingModule/WorkingTask.hpp | Tigole/Lys-Framework | c7a51261b78c69fbfd823c1d20617ef13ca83a39 | [
"MIT"
] | null | null | null | include/Lys/WorkingModule/WorkingTask.hpp | Tigole/Lys-Framework | c7a51261b78c69fbfd823c1d20617ef13ca83a39 | [
"MIT"
] | null | null | null | #ifndef _LYS_WORKING_TASK_HPP
#define _LYS_WORKING_TASK_HPP 1
#include <functional>
#include <queue>
#include <vector>
#include <mutex>
#include "Lys/Core/Core.hpp"
#include "WorkingThread.hpp"
namespace lys
{
class AWorkingTask
{
LYS_CLASS_NO_COPY(AWorkingTask)
friend WorkingThread;
public:
AWorkingTa... | 18.940171 | 76 | 0.581227 | Tigole |
9430a0925bf5b41f352e6cb040156c569600b822 | 1,733 | cc | C++ | app/gfx/insets_unittest.cc | rwatson/chromium-capsicum | b03da8e897f897c6ad2cda03ceda217b760fd528 | [
"BSD-3-Clause"
] | 11 | 2015-03-20T04:08:08.000Z | 2021-11-15T15:51:36.000Z | app/gfx/insets_unittest.cc | rwatson/chromium-capsicum | b03da8e897f897c6ad2cda03ceda217b760fd528 | [
"BSD-3-Clause"
] | null | null | null | app/gfx/insets_unittest.cc | rwatson/chromium-capsicum | b03da8e897f897c6ad2cda03ceda217b760fd528 | [
"BSD-3-Clause"
] | null | null | null | // Copyright (c) 2009 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "app/gfx/insets.h"
#include <iostream>
#include "testing/gtest/include/gtest/gtest.h"
TEST(InsetsTest, InsetsDefault) {
gfx::Insets inse... | 25.115942 | 73 | 0.658973 | rwatson |
94322b1761f37df86914c6326a526f9da51fe1aa | 68 | cpp | C++ | examples/simple-sfml/main.cpp | snailbaron/wiggle | 10266aca77d8bbfc32965fc45c5601323a66573e | [
"MIT"
] | null | null | null | examples/simple-sfml/main.cpp | snailbaron/wiggle | 10266aca77d8bbfc32965fc45c5601323a66573e | [
"MIT"
] | null | null | null | examples/simple-sfml/main.cpp | snailbaron/wiggle | 10266aca77d8bbfc32965fc45c5601323a66573e | [
"MIT"
] | null | null | null | #include <wiggle.hpp>
#include <SFML/Graphics.hpp>
int main()
{
}
| 8.5 | 28 | 0.661765 | snailbaron |
9432509e1932de9c3d2de7287a5f29532a604de6 | 1,104 | cpp | C++ | cmps104a/asg4/symbol-table-code.cpp | isaiah-solo/ucsc-classes | a3e834ee26822827f7ea4977707ecf7e42e1b0c9 | [
"MIT"
] | 1 | 2018-05-11T19:14:47.000Z | 2018-05-11T19:14:47.000Z | cmps104a/asg4/symbol-table-code.cpp | isaiah-solo/ucsc-classes | a3e834ee26822827f7ea4977707ecf7e42e1b0c9 | [
"MIT"
] | null | null | null | cmps104a/asg4/symbol-table-code.cpp | isaiah-solo/ucsc-classes | a3e834ee26822827f7ea4977707ecf7e42e1b0c9 | [
"MIT"
] | 3 | 2019-04-19T03:38:47.000Z | 2019-06-02T20:59:21.000Z | // $Id: symbol-table-code.cpp,v 1.6 2015-05-13 14:40:56-07 - - $
#include <bitset>
#include <string>
#include <unordered_map>
#include <vector>
using namespace std;
using attr_bitset = bitset<ATTR_bitset_size>;
using symbol_table = unordered_map<string*,symbol*>;
using symbol_entry = symbol_table::value_type;
struct... | 20.072727 | 64 | 0.680254 | isaiah-solo |
94331746a3d8c8b2c373b7e9ba216331c5d36347 | 335 | cpp | C++ | baekjoon/1427.cpp | 3-24/Competitive-Programming | 8cb3b85bf89db2c173cb0b136de27f2983f335fc | [
"MIT"
] | 1 | 2019-07-15T00:27:37.000Z | 2019-07-15T00:27:37.000Z | baekjoon/1427.cpp | 3-24/Competitive-Programming | 8cb3b85bf89db2c173cb0b136de27f2983f335fc | [
"MIT"
] | null | null | null | baekjoon/1427.cpp | 3-24/Competitive-Programming | 8cb3b85bf89db2c173cb0b136de27f2983f335fc | [
"MIT"
] | null | null | null | #include <stdio.h>
#include <stdlib.h>
int compare(const void *a, const void *b){
return *(int *)b - *(int *)a;
}
int main(){
int arr[11];
int i = 0;
int n;
scanf("%d",&n);
while (n){
arr[i] = n % 10;
i++;
n/=10;
}
qsort(arr,i,sizeof(int),compare);
for (int j=0;j<i;j++){
printf("%d",... | 14.565217 | 42 | 0.495522 | 3-24 |
9435f506082f1fb33469b163d7d738784c661cc3 | 2,834 | cpp | C++ | typekits/rtt_ros2_rclcpp_typekit/src/ros2_duration_type.cpp | gborghesan/rtt_ros2_integration | 6c03adc69e1bac3c8ad07d19e1814054f30f6936 | [
"Apache-2.0"
] | 14 | 2020-06-12T14:48:40.000Z | 2022-03-22T08:57:41.000Z | typekits/rtt_ros2_rclcpp_typekit/src/ros2_duration_type.cpp | gborghesan/rtt_ros2_integration | 6c03adc69e1bac3c8ad07d19e1814054f30f6936 | [
"Apache-2.0"
] | 15 | 2020-06-12T15:57:09.000Z | 2021-09-08T18:26:19.000Z | typekits/rtt_ros2_rclcpp_typekit/src/ros2_duration_type.cpp | gborghesan/rtt_ros2_integration | 6c03adc69e1bac3c8ad07d19e1814054f30f6936 | [
"Apache-2.0"
] | 3 | 2020-12-02T09:11:23.000Z | 2021-11-29T11:06:27.000Z | // Copyright 2020 Intermodalics BVBA
//
// 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... | 33.341176 | 96 | 0.743825 | gborghesan |
943e1165f6af3582510740b7f76c632fbb768f7f | 2,707 | cpp | C++ | src/components/ImageListScroll.cpp | hhyyrylainen/DualViewPP | 1fb4a1db85a8509342e16d68c75d4ec7721ced9e | [
"MIT"
] | null | null | null | src/components/ImageListScroll.cpp | hhyyrylainen/DualViewPP | 1fb4a1db85a8509342e16d68c75d4ec7721ced9e | [
"MIT"
] | null | null | null | src/components/ImageListScroll.cpp | hhyyrylainen/DualViewPP | 1fb4a1db85a8509342e16d68c75d4ec7721ced9e | [
"MIT"
] | null | null | null | // ------------------------------------ //
#include "ImageListScroll.h"
using namespace DV;
// ------------------------------------ //
bool ImageListScroll::HasCount() const{
return false;
}
size_t ImageListScroll::GetCount() const{
return 0;
}
// ------------------------------------ //
bool ImageListScroll... | 20.201493 | 94 | 0.550055 | hhyyrylainen |
9443fa9ac992ff66096fa61fbf6212eb44d24e31 | 10,878 | cxx | C++ | src/Clustering/StdClusterInfo.cxx | fermi-lat/CalRecon | 69e123b523770baa1fc9e8f3b78e211b1064b0c0 | [
"BSD-3-Clause"
] | null | null | null | src/Clustering/StdClusterInfo.cxx | fermi-lat/CalRecon | 69e123b523770baa1fc9e8f3b78e211b1064b0c0 | [
"BSD-3-Clause"
] | null | null | null | src/Clustering/StdClusterInfo.cxx | fermi-lat/CalRecon | 69e123b523770baa1fc9e8f3b78e211b1064b0c0 | [
"BSD-3-Clause"
] | null | null | null |
#include "StdClusterInfo.h"
/// This makes CalClusters out of associated CalXtalRecData pointers
Event::CalCluster* StdClusterInfo::fillClusterInfo(const XtalDataList* xTalVec)
{
int calnLayers = m_calReconSvc->getCalNLayers() ;
const Point p0(0.,0.,0.);
//Initialize variables
double ene = 0; ... | 35.782895 | 95 | 0.557088 | fermi-lat |
94467439712cf50e0e29c1cc4e4eb4daea955f94 | 1,028 | cc | C++ | components/services/storage/public/cpp/big_io_buffer.cc | zealoussnow/chromium | fd8a8914ca0183f0add65ae55f04e287543c7d4a | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 14,668 | 2015-01-01T01:57:10.000Z | 2022-03-31T23:33:32.000Z | components/services/storage/public/cpp/big_io_buffer.cc | zealoussnow/chromium | fd8a8914ca0183f0add65ae55f04e287543c7d4a | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 86 | 2015-10-21T13:02:42.000Z | 2022-03-14T07:50:50.000Z | components/services/storage/public/cpp/big_io_buffer.cc | zealoussnow/chromium | fd8a8914ca0183f0add65ae55f04e287543c7d4a | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 5,941 | 2015-01-02T11:32:21.000Z | 2022-03-31T16:35:46.000Z | // Copyright 2021 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "components/services/storage/public/cpp/big_io_buffer.h"
#include "mojo/public/cpp/base/big_buffer.h"
#include "net/base/io_buffer.h"
namespace... | 26.358974 | 75 | 0.713035 | zealoussnow |
9448dfeac03bfb125821e227d926e331a3a84db3 | 11,730 | cc | C++ | src/XrdHttpLcmaps.cc | matyasselmeci/xrootd-lcmaps | c796009b20794e3d179776b03e8095a0c3e32631 | [
"Apache-2.0"
] | 3 | 2018-11-22T12:16:31.000Z | 2020-02-23T15:15:47.000Z | src/XrdHttpLcmaps.cc | matyasselmeci/xrootd-lcmaps | c796009b20794e3d179776b03e8095a0c3e32631 | [
"Apache-2.0"
] | 20 | 2017-07-25T03:15:21.000Z | 2021-05-31T14:38:27.000Z | src/XrdHttpLcmaps.cc | matyasselmeci/xrootd-lcmaps | c796009b20794e3d179776b03e8095a0c3e32631 | [
"Apache-2.0"
] | 10 | 2017-07-21T16:56:43.000Z | 2021-12-26T20:10:38.000Z |
#include <iostream>
#include <map>
#include <mutex>
#include <time.h>
#include <openssl/ssl.h>
#include <XrdHttp/XrdHttpSecXtractor.hh>
#include <XrdVersion.hh>
#include <XrdSec/XrdSecEntity.hh>
#include "GlobusSupport.hh"
extern "C" {
#include "lcmaps.h"
}
#include "XrdLcmapsConfig.hh"
#include "XrdLcmapsKey.hh"... | 28.962963 | 114 | 0.576812 | matyasselmeci |
94495b4c1bb77f9089e667bb63463183a4aee49a | 786 | hpp | C++ | etl/_type_traits/conjunction.hpp | tobanteEmbedded/tetl | fc3272170843bcab47971191bcd269a86c5b5101 | [
"BSL-1.0"
] | 4 | 2021-11-28T08:48:11.000Z | 2021-12-14T09:53:51.000Z | etl/_type_traits/conjunction.hpp | tobanteEmbedded/tetl | fc3272170843bcab47971191bcd269a86c5b5101 | [
"BSL-1.0"
] | null | null | null | etl/_type_traits/conjunction.hpp | tobanteEmbedded/tetl | fc3272170843bcab47971191bcd269a86c5b5101 | [
"BSL-1.0"
] | null | null | null | /// \copyright Tobias Hienzsch 2019-2021
/// Distributed under the Boost Software License, Version 1.0.
/// See accompanying file LICENSE or copy at http://boost.org/LICENSE_1_0.txt
#ifndef TETL_TYPE_TRAITS_CONJUNCTION_HPP
#define TETL_TYPE_TRAITS_CONJUNCTION_HPP
#include "etl/_type_traits/bool_constant.hpp"
#include... | 30.230769 | 77 | 0.760814 | tobanteEmbedded |
944b4a65cb5a1f942b7044f7f5b83c5a6f845a69 | 10,080 | cpp | C++ | asc/src/input_structure.cpp | inquisitor101/ASC2D | 73ea575496340ad2486014525c6aec9c42c5d453 | [
"MIT"
] | null | null | null | asc/src/input_structure.cpp | inquisitor101/ASC2D | 73ea575496340ad2486014525c6aec9c42c5d453 | [
"MIT"
] | null | null | null | asc/src/input_structure.cpp | inquisitor101/ASC2D | 73ea575496340ad2486014525c6aec9c42c5d453 | [
"MIT"
] | null | null | null | #include "input_structure.hpp"
CInput::CInput
(
CConfig *config_container,
CGeometry *geometry_container
)
/*
* Constructor, used to initialize CInput class.
*/
{
// Extract number of zones.
nZone = config_container->GetnZone();
}
CInput::~CInput
(
void
)
/*
* Deconstructor for CInput class.
*/
{
}
... | 35.121951 | 97 | 0.632242 | inquisitor101 |
944fdb467148c7977f4755a671ec53a9a2796e7d | 5,347 | hpp | C++ | newweb/utility/ipc/generic_ipc_channel.hpp | cauthu/shadow-browser-plugin | e1eb930b1bdf71cb3cdcbb1d70467e6e6203c298 | [
"BSD-3-Clause"
] | null | null | null | newweb/utility/ipc/generic_ipc_channel.hpp | cauthu/shadow-browser-plugin | e1eb930b1bdf71cb3cdcbb1d70467e6e6203c298 | [
"BSD-3-Clause"
] | null | null | null | newweb/utility/ipc/generic_ipc_channel.hpp | cauthu/shadow-browser-plugin | e1eb930b1bdf71cb3cdcbb1d70467e6e6203c298 | [
"BSD-3-Clause"
] | null | null | null | #ifndef generic_ipc_channel_hpp
#define generic_ipc_channel_hpp
// #include <event2/event.h>
// #include <event2/bufferevent.h>
#include <memory>
#include <map>
#include <set>
#include <boost/function.hpp>
#include "../object.hpp"
#include "../timer.hpp"
#include "../stream_channel.hpp"
#include "../generic_message_... | 34.057325 | 87 | 0.66037 | cauthu |
9451c2e411c998ba5103437f2d36cced49ba0142 | 679 | hpp | C++ | core/stl_reader.hpp | fritzio/libstl | 0709e54e4b13576edf84e393db211fb77efd7f72 | [
"MIT"
] | null | null | null | core/stl_reader.hpp | fritzio/libstl | 0709e54e4b13576edf84e393db211fb77efd7f72 | [
"MIT"
] | null | null | null | core/stl_reader.hpp | fritzio/libstl | 0709e54e4b13576edf84e393db211fb77efd7f72 | [
"MIT"
] | null | null | null | #ifndef LIBSTL_STL_READER_HPP
#define LIBSTL_STL_READER_HPP
#include <string>
#include <vector>
#include <memory>
#include "triangle.hpp"
#include "parser_option.hpp"
#include "utilities/box.hpp"
namespace libstl {
class stl_reader {
const std::vector<triangle> surface_mesh;
const utilities::box<float, 3... | 19.970588 | 70 | 0.734904 | fritzio |
9451e75afdce50f94f1228f43f8d04cdd947942b | 383 | cpp | C++ | GUIFramework/src/BaseComponents/StandardComponents/ScrollBars/BaseScrollBar.cpp | LazyPanda07/GUIFramework | bf20bd906ea46b791f499886c48fba97eb7fde38 | [
"MIT"
] | null | null | null | GUIFramework/src/BaseComponents/StandardComponents/ScrollBars/BaseScrollBar.cpp | LazyPanda07/GUIFramework | bf20bd906ea46b791f499886c48fba97eb7fde38 | [
"MIT"
] | 34 | 2021-06-09T23:17:37.000Z | 2022-03-03T12:09:21.000Z | GUIFramework/src/BaseComponents/StandardComponents/ScrollBars/BaseScrollBar.cpp | LazyPanda07/GUIFramework | bf20bd906ea46b791f499886c48fba97eb7fde38 | [
"MIT"
] | null | null | null | #include "headers.h"
#include "BaseScrollBar.h"
using namespace std;
namespace gui_framework
{
BaseScrollBar::BaseScrollBar(const wstring& scrollBarName, const utility::ComponentSettings& settings, const styles::ScrollBarStyles& styles, BaseComponent* parent) :
BaseComponent
(
standard_classes::scrollBar,
... | 18.238095 | 168 | 0.744125 | LazyPanda07 |
945283652800b96e55e7e7d16d98215205a54355 | 53 | hpp | C++ | src/boost_mpl_aux__reverse_fold_impl_body.hpp | miathedev/BoostForArduino | 919621dcd0c157094bed4df752b583ba6ea6409e | [
"BSL-1.0"
] | 10 | 2018-03-17T00:58:42.000Z | 2021-07-06T02:48:49.000Z | src/boost_mpl_aux__reverse_fold_impl_body.hpp | miathedev/BoostForArduino | 919621dcd0c157094bed4df752b583ba6ea6409e | [
"BSL-1.0"
] | 2 | 2021-03-26T15:17:35.000Z | 2021-05-20T23:55:08.000Z | src/boost_mpl_aux__reverse_fold_impl_body.hpp | miathedev/BoostForArduino | 919621dcd0c157094bed4df752b583ba6ea6409e | [
"BSL-1.0"
] | 4 | 2019-05-28T21:06:37.000Z | 2021-07-06T03:06:52.000Z | #include <boost/mpl/aux_/reverse_fold_impl_body.hpp>
| 26.5 | 52 | 0.830189 | miathedev |
9453264e28e9a86483c9ccddfb89c74145e7e07e | 2,660 | cpp | C++ | src/Funcionario.cpp | viniciussslima/PetFera | d98ef1a12607eb5f469d5760107c6bf96761b21c | [
"MIT"
] | 1 | 2019-08-05T00:04:42.000Z | 2019-08-05T00:04:42.000Z | src/Funcionario.cpp | viniciussslima/PetFera | d98ef1a12607eb5f469d5760107c6bf96761b21c | [
"MIT"
] | 5 | 2019-06-13T20:03:29.000Z | 2019-06-21T15:07:59.000Z | src/Funcionario.cpp | viniciussslima/PetFera | d98ef1a12607eb5f469d5760107c6bf96761b21c | [
"MIT"
] | null | null | null | /**
* @file Funcionario.cpp
* @brief Implementação da classe Funcionario.
* @author
* Hudson Bruno Macedo Alves,
* João Vitor Kobata,
* Vinicius Santos Silva de Lima.
*/
#include "Funcionario.h"
using namespace std;
/**
* @brief Construtor padrão da classe Funcionario.
* Nesse caso o funcionário é contruido com o ID... | 21.451613 | 126 | 0.737594 | viniciussslima |
9455ec897a968cc908f398633dd6ba709e9f0413 | 3,349 | cpp | C++ | src/filter/Temperature.cpp | Kuhlwein/Demiurge | 0981f1d267efed87d51e2b328a93e1fa0be1158d | [
"MIT"
] | 6 | 2020-09-23T19:49:07.000Z | 2022-01-08T15:53:55.000Z | src/filter/Temperature.cpp | Kuhlwein/Demiurge | 0981f1d267efed87d51e2b328a93e1fa0be1158d | [
"MIT"
] | null | null | null | src/filter/Temperature.cpp | Kuhlwein/Demiurge | 0981f1d267efed87d51e2b328a93e1fa0be1158d | [
"MIT"
] | 1 | 2020-09-23T17:53:26.000Z | 2020-09-23T17:53:26.000Z | //
// Created by kuhlwein on 6/29/21.
//
#include <iostream>
#include "Project.h"
#include "Temperature.h"
void TemperatureMenu::update_self(Project *p) {
}
std::shared_ptr<BackupFilter> TemperatureMenu::makeFilter(Project *p) {
return std::make_shared<ProgressFilter>(p, [](Project* p){return p->get_terrain();},... | 20.546012 | 135 | 0.62138 | Kuhlwein |
945a543d4c8ea0ad7bf7038f16d20c14ac098add | 6,023 | cpp | C++ | hexprinter.cpp | eva-rubio/CPU-simulator | b897e935c578b048e5945fda57f647a799f07655 | [
"MIT"
] | null | null | null | hexprinter.cpp | eva-rubio/CPU-simulator | b897e935c578b048e5945fda57f647a799f07655 | [
"MIT"
] | null | null | null | hexprinter.cpp | eva-rubio/CPU-simulator | b897e935c578b048e5945fda57f647a799f07655 | [
"MIT"
] | null | null | null | #include <iostream>
#include <stdlib.h>
#include <time.h>
#include <stdint.h>
// Eva Rubio
using namespace std;
/*
' #define ' - A type of Preprocessor Directive: MACRO.
Preprocessors are programs that process our source code before compilation.
Macros are a piece of code in a program which is given some name.
... | 20.347973 | 88 | 0.589739 | eva-rubio |
945a574fc62b8a929ce2c32d8000ed47c0178891 | 947 | cpp | C++ | src/Projectile.cpp | tobiaswinter/asteroids-game | 761d1c7ae1ae03762b8b8c4dc18468b4df164d61 | [
"MIT"
] | null | null | null | src/Projectile.cpp | tobiaswinter/asteroids-game | 761d1c7ae1ae03762b8b8c4dc18468b4df164d61 | [
"MIT"
] | null | null | null | src/Projectile.cpp | tobiaswinter/asteroids-game | 761d1c7ae1ae03762b8b8c4dc18468b4df164d61 | [
"MIT"
] | null | null | null | #include "Projectile.h"
#include <random>
#include <iostream>
Projectile::Projectile(Participant* owner, Type type) : Rigidbody(type), owner(owner)
{
Reset();
}
Projectile::~Projectile()
{
}
void Projectile::Reset()
{
if (type == Asteroid)
{
radius = ASTEROID_RADIUS;
if (velocity.x < 0)... | 17.867925 | 85 | 0.459345 | tobiaswinter |
945b2ab4f7910a796ced6492bf74684995355e71 | 1,065 | hpp | C++ | software/include/species.hpp | A283le/ExoskeletonAI | dfb4ff5639d84dea69577764af2b151f309bbb3b | [
"Apache-2.0"
] | 7 | 2020-06-03T05:48:47.000Z | 2022-01-08T22:30:26.000Z | software/include/species.hpp | A283le/ExoskeletonAI | dfb4ff5639d84dea69577764af2b151f309bbb3b | [
"Apache-2.0"
] | 21 | 2018-01-16T17:05:30.000Z | 2018-04-01T18:14:18.000Z | software/include/species.hpp | A283le/ExoskeletonAI | dfb4ff5639d84dea69577764af2b151f309bbb3b | [
"Apache-2.0"
] | 6 | 2018-01-22T15:35:26.000Z | 2021-12-17T15:32:09.000Z | #ifndef SPECIES_HPP
#define SPECIES_HPP
/** @brief Class for the species.
This class will hold of the functions that deal
with species, and their necessary actions.
@author Dominguez, Alejandro
@date Feburary, 2018
*/
#include <iostream>
#include <list>
#include <network.hpp>
using namespace st... | 21.734694 | 83 | 0.675117 | A283le |
945b8d81ea5f1b8bedf56420c9ed0132918089a8 | 8,225 | cc | C++ | e2e/trt/src/inference_server.cc | stanford-futuredata/smol | 82e2356755133cd1516dfbbbc782707eca70a34c | [
"Apache-2.0"
] | 1 | 2021-11-29T01:24:03.000Z | 2021-11-29T01:24:03.000Z | e2e/trt/src/inference_server.cc | stanford-futuredata/smol | 82e2356755133cd1516dfbbbc782707eca70a34c | [
"Apache-2.0"
] | 1 | 2021-11-29T09:29:14.000Z | 2021-12-13T02:31:55.000Z | e2e/trt/src/inference_server.cc | stanford-futuredata/smol | 82e2356755133cd1516dfbbbc782707eca70a34c | [
"Apache-2.0"
] | 1 | 2021-12-13T06:55:18.000Z | 2021-12-13T06:55:18.000Z | #include <assert.h>
#include <future>
#include <numeric>
#include <thread>
#include "folly/MPMCQueue.h"
#include "omp.h"
#include "calibrator.h"
#include "inference_server.h"
static void add_resize(nvinfer1::INetworkDefinition *network, const size_t kBatchSize) {
using namespace nvinfer1;
// FIXME: 141, 224
n... | 34.128631 | 137 | 0.691915 | stanford-futuredata |
945c8acf3a5afff032341822a079b8196e8f3fa9 | 3,238 | cpp | C++ | src/Config/PropertiesMap.cpp | eiji-shimizu/eihire | 3996cf9d0c5d4fd8201141093aea6bb8017e7657 | [
"MIT"
] | null | null | null | src/Config/PropertiesMap.cpp | eiji-shimizu/eihire | 3996cf9d0c5d4fd8201141093aea6bb8017e7657 | [
"MIT"
] | null | null | null | src/Config/PropertiesMap.cpp | eiji-shimizu/eihire | 3996cf9d0c5d4fd8201141093aea6bb8017e7657 | [
"MIT"
] | null | null | null | #include "Config/PropertiesMap.h"
#include "Exception/Exception.h"
#include <filesystem>
#include <fstream>
#include <sstream>
namespace Eihire::Config {
namespace {
std::string getFileName(const std::string &filePath)
{
std::filesystem::path p{filePath};
return p.filename... | 28.910714 | 79 | 0.512044 | eiji-shimizu |
9466c9f41e9d9a74e251d8536071f33b322a69fa | 929 | cpp | C++ | src/engine/graphics/model/vertex.cpp | dmfedorin/ubiquitility | f3a1062d2489ffd48889bff5fc8062c05706a946 | [
"MIT"
] | null | null | null | src/engine/graphics/model/vertex.cpp | dmfedorin/ubiquitility | f3a1062d2489ffd48889bff5fc8062c05706a946 | [
"MIT"
] | null | null | null | src/engine/graphics/model/vertex.cpp | dmfedorin/ubiquitility | f3a1062d2489ffd48889bff5fc8062c05706a946 | [
"MIT"
] | null | null | null | #include "vertex.hpp"
auto Vertex::get_binding_desc(
void) noexcept -> VkVertexInputBindingDescription
{
VkVertexInputBindingDescription binding_desc{};
binding_desc.binding = 0;
binding_desc.stride = sizeof(Vertex);
binding_desc.inputRate = VK_VERTEX_INPUT_RATE_VERTEX;
... | 29.03125 | 70 | 0.668461 | dmfedorin |
94692948c159d90e24d27363fd5e68a427bf936f | 1,581 | cpp | C++ | src/InlinePatterns/SimpleTagPattern.cpp | mugwort-rc/QMarkdown | cd865b41ef6038d32d109bdb0eae830ed1eb14a3 | [
"BSD-3-Clause"
] | null | null | null | src/InlinePatterns/SimpleTagPattern.cpp | mugwort-rc/QMarkdown | cd865b41ef6038d32d109bdb0eae830ed1eb14a3 | [
"BSD-3-Clause"
] | null | null | null | src/InlinePatterns/SimpleTagPattern.cpp | mugwort-rc/QMarkdown | cd865b41ef6038d32d109bdb0eae830ed1eb14a3 | [
"BSD-3-Clause"
] | null | null | null | #include "InlinePatterns/SimpleTagPattern.h"
#include "InlinePatterns/common.h"
namespace markdown
{
SimpleTagPattern::SimpleTagPattern(const QString &pattern, const QString &tag, const std::weak_ptr<Markdown> &md) :
Pattern(pattern, md),
tag(tag)
{}
SimpleTagPattern::~SimpleTagPattern()
{}
Element SimpleTa... | 26.79661 | 123 | 0.727388 | mugwort-rc |
9469376a9120212715f945fbf16eb07ba750a193 | 1,433 | cpp | C++ | test/memory/TestObjectPool.cpp | CltKitakami/MyLib | d2dc4fb06ea5c3379a1818b49b0ecf13f8cd2b36 | [
"MIT"
] | null | null | null | test/memory/TestObjectPool.cpp | CltKitakami/MyLib | d2dc4fb06ea5c3379a1818b49b0ecf13f8cd2b36 | [
"MIT"
] | null | null | null | test/memory/TestObjectPool.cpp | CltKitakami/MyLib | d2dc4fb06ea5c3379a1818b49b0ecf13f8cd2b36 | [
"MIT"
] | null | null | null | #include <vector>
#include <list>
#include <map>
#include "common/Log.hpp"
#include "common/Stopwatch.hpp"
#include "memory/ObjectPool.hpp"
template<size_t DUMP_SIZE>
class Test
{
public:
char dump[DUMP_SIZE];
Test() {}
~Test() {}
};
void testNewDelete();
void testMap();
template <typename T> void testStl();
in... | 16.101124 | 63 | 0.598744 | CltKitakami |
946aa8147a1642149d5040bad13609964b9d9e98 | 154 | cpp | C++ | ME625_NURBS_SweptSurfaces/vector3D.cpp | houes/ME625_NURBS_SweptSurfaces | 0b3062a0ae5c7dbb885ac35ad12bcf2afaeec66e | [
"MIT"
] | 3 | 2020-04-10T22:55:20.000Z | 2022-02-08T11:10:28.000Z | ME625_NURBS_SweptSurfaces/vector3D.cpp | houes/ME625_NURBS_SweptSurfaces | 0b3062a0ae5c7dbb885ac35ad12bcf2afaeec66e | [
"MIT"
] | null | null | null | ME625_NURBS_SweptSurfaces/vector3D.cpp | houes/ME625_NURBS_SweptSurfaces | 0b3062a0ae5c7dbb885ac35ad12bcf2afaeec66e | [
"MIT"
] | null | null | null | #include "vector3D.h"
vector3D vector3D::crossp(const vector3D &v) const
{
return vector3D( y*v.z - z*v.y,
z*v.x - x*v.z,
x*v.y - y*v.x );
} | 19.25 | 50 | 0.577922 | houes |
946c659c0d072af4cbd7920c2a715444029456f5 | 7,972 | cpp | C++ | src/libc9/gc_markcompact.cpp | stormbrew/channel9 | 626b42c208ce1eb54fff09ebd9f9e9fd0311935d | [
"MIT"
] | 1 | 2015-02-13T02:03:29.000Z | 2015-02-13T02:03:29.000Z | src/libc9/gc_markcompact.cpp | stormbrew/channel9 | 626b42c208ce1eb54fff09ebd9f9e9fd0311935d | [
"MIT"
] | null | null | null | src/libc9/gc_markcompact.cpp | stormbrew/channel9 | 626b42c208ce1eb54fff09ebd9f9e9fd0311935d | [
"MIT"
] | null | null | null | #include "c9/channel9.hpp"
#include "c9/gc.hpp"
#include "c9/value.hpp"
#include "c9/string.hpp"
#include "c9/tuple.hpp"
#include "c9/message.hpp"
#include "c9/context.hpp"
#include "c9/variable_frame.hpp"
#include "c9/gc_markcompact.hpp"
namespace Channel9
{
GC::Markcompact::Markcompact()
: m_gc_phase(Running),... | 26.223684 | 222 | 0.626066 | stormbrew |
946f19f00cf4eab2d5a6005a896597dc4f44a60d | 6,775 | cpp | C++ | src/singletons/SettingsManager.cpp | nforro/chatterino2 | e9868fdd84bd5799b9689fc9d7ee4abed792ecec | [
"MIT"
] | null | null | null | src/singletons/SettingsManager.cpp | nforro/chatterino2 | e9868fdd84bd5799b9689fc9d7ee4abed792ecec | [
"MIT"
] | null | null | null | src/singletons/SettingsManager.cpp | nforro/chatterino2 | e9868fdd84bd5799b9689fc9d7ee4abed792ecec | [
"MIT"
] | null | null | null | #include "singletons/SettingsManager.hpp"
#include "Application.hpp"
#include "debug/Log.hpp"
#include "singletons/PathManager.hpp"
#include "singletons/ResourceManager.hpp"
#include "singletons/WindowManager.hpp"
namespace chatterino {
std::vector<std::weak_ptr<pajlada::Settings::ISettingData>> _settings;
void _ac... | 29.714912 | 100 | 0.621993 | nforro |
20e161cb316498b0574394a4b65e75ff2bfbf59b | 10,838 | cpp | C++ | data/744.cpp | TianyiChen/rdcpp-data | 75c6868c876511e3ce143fdc3c08ddd74c7aa4ea | [
"MIT"
] | null | null | null | data/744.cpp | TianyiChen/rdcpp-data | 75c6868c876511e3ce143fdc3c08ddd74c7aa4ea | [
"MIT"
] | null | null | null | data/744.cpp | TianyiChen/rdcpp-data | 75c6868c876511e3ce143fdc3c08ddd74c7aa4ea | [
"MIT"
] | null | null | null | int Fdbtu
,ui//3
,RS
, xyWC , fiNac ,M , NFNo
,
Awep ,
J ,Kbl
,
yf, ccQ , FCrrd ,qfA0 ,
s13Xh ,g9,rYQA
,Z
,on , Vsy5Q, Hwc, AiG , qH
,//Eb
DH
,/*aqa*/ DU,lJZ//d
,pRlwI
, /*aI*/ tAP,FyD,NS ,d0OG
,Y3c
,
O1Q,
oyq,//
Va , yFufL
,
Hd
,
//zq
lqX,/*aRZ*/ iXv
,
xRV ,
BL6//
,DY ,EKsr,//qE
KZ,vL... | 10.411143 | 64 | 0.453128 | TianyiChen |
20e2d1a736f9b10866b71d51c0d8d221cc7da473 | 331 | cc | C++ | exercises/ESEMPI_BASE/esempio_cin3.cc | mfranzil/Programmazione1UniTN | 0aee3ec51d424039afcabfa9de80046c1d5be7d9 | [
"MIT"
] | 3 | 2021-11-05T16:25:50.000Z | 2022-02-10T14:06:00.000Z | exercises/ESEMPI_BASE/esempio_cin3.cc | mfranzil/Programmazione1UniTN | 0aee3ec51d424039afcabfa9de80046c1d5be7d9 | [
"MIT"
] | null | null | null | exercises/ESEMPI_BASE/esempio_cin3.cc | mfranzil/Programmazione1UniTN | 0aee3ec51d424039afcabfa9de80046c1d5be7d9 | [
"MIT"
] | 2 | 2018-10-31T14:53:40.000Z | 2020-01-09T22:34:37.000Z | using namespace std;
#include <iostream>
int main ()
{
char x;
double y;
int z;
cout << "dammi in sequenza un carattere, un intero ed un reale" << endl;
cin >> x;
cin >> z;
cin >> y;
cout << "x = " << x << ", z = " << z << ", y = " << y << endl;
return 0;
}
//NB: cosa succede se digito "prompt> ... | 17.421053 | 75 | 0.513595 | mfranzil |
20e424f0ec449846174a9ce7873e219f0b96a115 | 1,737 | hh | C++ | include/Cc/Instruction.hh | Stalker2106x/Mini8BVM | d384ad30f6c870b32aa8e4b9d00705a1406779ad | [
"MIT"
] | 1 | 2021-11-30T06:52:58.000Z | 2021-11-30T06:52:58.000Z | include/Cc/Instruction.hh | Stalker2106x/Mini8BVM | d384ad30f6c870b32aa8e4b9d00705a1406779ad | [
"MIT"
] | null | null | null | include/Cc/Instruction.hh | Stalker2106x/Mini8BVM | d384ad30f6c870b32aa8e4b9d00705a1406779ad | [
"MIT"
] | null | null | null | #ifndef INSTRUCTION_HH_
#define INSTRUCTION_HH_
#include <string>
#include <bitset>
#include <algorithm>
#include "Cc/InstructionDef.hh"
#include "config.h"
#include "utils.hh"
template <wordSizeType CodeSize, wordSizeType OperandSize>
class Instruction
{
public:
Instruction(InstructionDef definition, std::strin... | 29.948276 | 153 | 0.558434 | Stalker2106x |
20e729ea133da29095b458fb36ee47e1c4794e58 | 792 | cpp | C++ | tests/TestConnection.cpp | qingqibing/mqttcpp | 941162574dce09e4b109efded39331ac34d9f79a | [
"BSD-3-Clause"
] | 37 | 2015-01-07T08:21:22.000Z | 2021-12-17T12:06:12.000Z | tests/TestConnection.cpp | qingqibing/mqttcpp | 941162574dce09e4b109efded39331ac34d9f79a | [
"BSD-3-Clause"
] | 4 | 2016-04-14T21:45:55.000Z | 2020-10-05T07:54:58.000Z | tests/TestConnection.cpp | qingqibing/mqttcpp | 941162574dce09e4b109efded39331ac34d9f79a | [
"BSD-3-Clause"
] | 18 | 2015-04-02T17:18:29.000Z | 2021-03-31T10:13:17.000Z | #include "TestConnection.hpp"
#include "Decerealiser.hpp"
using namespace std;
using namespace gsl;
void TestConnection::newMessage(span<const ubyte> bytes) {
switch(getMessageType(bytes)) {
case MqttType::CONNACK:
connected = true;
connectionCode = MqttConnack::Code::ACCEPTED;
break... | 22.628571 | 74 | 0.609848 | qingqibing |
20e87cbc4eef81e118a052d281aba838728bb868 | 500 | hpp | C++ | source/Minesweeper.hpp | rincew1nd/Minesweeper-Switch | 6a441c4bbcc33cdbd0fe17fd5b9d4fb7e7cb0467 | [
"MIT"
] | 8 | 2018-06-27T00:34:11.000Z | 2018-09-07T06:56:20.000Z | source/Minesweeper.hpp | rincew1nd/Minesweeper-Switch | 6a441c4bbcc33cdbd0fe17fd5b9d4fb7e7cb0467 | [
"MIT"
] | null | null | null | source/Minesweeper.hpp | rincew1nd/Minesweeper-Switch | 6a441c4bbcc33cdbd0fe17fd5b9d4fb7e7cb0467 | [
"MIT"
] | 2 | 2018-06-28T03:02:07.000Z | 2019-01-26T06:02:17.000Z | #pragma once
#include <switch.h>
#include <SDL2/SDL.h>
#include <SDL2/SDL_ttf.h>
#include "Engine/Defaults.hpp"
#include "Engine/Input.hpp"
#include "Scenes/GameScene.hpp"
class Minesweeper
{
public:
Minesweeper();
void Start();
private:
bool InitSDL();
void InitGame();
... | 17.857143 | 32 | 0.6 | rincew1nd |
20f09bdb0db7add4d0b0d033fb7af3e5ae9f37d5 | 2,414 | cpp | C++ | game/scripting.cpp | NixonSiagian/samp-client | 7a10dfeddc806e199688c645b12f3bf37eaa4f61 | [
"FSFAP"
] | null | null | null | game/scripting.cpp | NixonSiagian/samp-client | 7a10dfeddc806e199688c645b12f3bf37eaa4f61 | [
"FSFAP"
] | null | null | null | game/scripting.cpp | NixonSiagian/samp-client | 7a10dfeddc806e199688c645b12f3bf37eaa4f61 | [
"FSFAP"
] | null | null | null | #include "../main.h"
#include "scripting.h"
#include "../chatwindow.h"
extern CChatWindow *pChatWindow;
GAME_SCRIPT_THREAD* gst;
char ScriptBuf[0xFF];
uintptr_t *pdwParamVars[18];
bool bExceptionDisplayed = false;
uint8_t ExecuteScriptBuf()
{
gst->dwScriptIP = (uintptr_t)ScriptBuf;
(( void (*)(GAME_SCRIPT_THREAD*... | 20.285714 | 92 | 0.612262 | NixonSiagian |
20f153b0a03d5461f0dd2af8abc4d9eb0a66d0f3 | 1,005 | cpp | C++ | 3.15/src/ca/client/baseNMIU.cpp | A2-Collaboration/epics | b764a53bf449d9f6b54a1173c5e75a22cf95098c | [
"OML"
] | null | null | null | 3.15/src/ca/client/baseNMIU.cpp | A2-Collaboration/epics | b764a53bf449d9f6b54a1173c5e75a22cf95098c | [
"OML"
] | null | null | null | 3.15/src/ca/client/baseNMIU.cpp | A2-Collaboration/epics | b764a53bf449d9f6b54a1173c5e75a22cf95098c | [
"OML"
] | null | null | null | /*************************************************************************\
* Copyright (c) 2002 The University of Chicago, as Operator of Argonne
* National Laboratory.
* Copyright (c) 2002 The Regents of the University of California, as
* Operator of Los Alamos National Laboratory.
* EPICS BASE Versions 3.13.... | 25.125 | 75 | 0.567164 | A2-Collaboration |
20f275ff482d7073195d075c374e4a0969993714 | 2,639 | cpp | C++ | src/operators/kernel/arm/sigmoid_kernel.cpp | Ewenwan/paddle-mobile | 92491026748901143968d782b058d0af29ecbed7 | [
"Apache-2.0"
] | 1 | 2018-09-15T08:58:45.000Z | 2018-09-15T08:58:45.000Z | src/operators/kernel/arm/sigmoid_kernel.cpp | Ewenwan/paddle-mobile | 92491026748901143968d782b058d0af29ecbed7 | [
"Apache-2.0"
] | null | null | null | src/operators/kernel/arm/sigmoid_kernel.cpp | Ewenwan/paddle-mobile | 92491026748901143968d782b058d0af29ecbed7 | [
"Apache-2.0"
] | 2 | 2019-04-19T01:00:55.000Z | 2019-06-03T05:34:21.000Z | /* Copyright (c) 2018 PaddlePaddle Authors. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or... | 29.988636 | 78 | 0.683971 | Ewenwan |
20f46db2fd4df5330804939d7b39154c4aa301ee | 1,293 | cpp | C++ | libs/libplatform/MouseGrabber.cpp | ps-group/modern-gl-samples | 53e075ec21418597b37c71c895111c0c77cab72b | [
"MIT"
] | 1 | 2017-06-20T06:56:57.000Z | 2017-06-20T06:56:57.000Z | libs/libplatform/MouseGrabber.cpp | ps-group/modern-gl-samples | 53e075ec21418597b37c71c895111c0c77cab72b | [
"MIT"
] | null | null | null | libs/libplatform/MouseGrabber.cpp | ps-group/modern-gl-samples | 53e075ec21418597b37c71c895111c0c77cab72b | [
"MIT"
] | null | null | null | #include "MouseGrabber.h"
#include <glm/vec2.hpp>
#if 0
namespace ps
{
MouseGrabber::MouseGrabber(SDL_Window& window)
: m_windowRef(window)
{
// Включаем режим спрятанного курсора.
SDL_SetRelativeMouseMode(SDL_TRUE);
}
bool MouseGrabber::OnMouseMove(const SDL_MouseMotionEvent &event)
{
const glm::iv... | 23.944444 | 76 | 0.690642 | ps-group |
20f5633acd312d33282cbe15a1bc365c928414ec | 13,246 | cpp | C++ | src/examples/scene_factory.cpp | li-plus/tinypt | 6e9e3992dbc91ce8bd18bb812661ecb116ca1af8 | [
"MIT"
] | 3 | 2021-09-23T03:34:09.000Z | 2021-09-24T05:47:56.000Z | src/examples/scene_factory.cpp | li-plus/path-tracing | 6e9e3992dbc91ce8bd18bb812661ecb116ca1af8 | [
"MIT"
] | null | null | null | src/examples/scene_factory.cpp | li-plus/path-tracing | 6e9e3992dbc91ce8bd18bb812661ecb116ca1af8 | [
"MIT"
] | null | null | null | #include "scene_factory.h"
SceneFactory::SceneFactory() {
register_scene_builder("cornell_sphere", [] { return make_cornell_sphere(); });
register_scene_builder("cornell_box", [] { return make_cornell_box(); });
register_scene_builder("breakfast_room", [] { return make_breakfast_room(); });
register_sc... | 45.363014 | 116 | 0.65801 | li-plus |
20f5a25594090fe2ef36d667fc018abcdadaf532 | 4,834 | cpp | C++ | UltraDV/Source/TTimeBevelTextView.cpp | ModeenF/UltraDV | 30474c60880de541b33687c96293766fe0dc4aef | [
"Unlicense"
] | null | null | null | UltraDV/Source/TTimeBevelTextView.cpp | ModeenF/UltraDV | 30474c60880de541b33687c96293766fe0dc4aef | [
"Unlicense"
] | null | null | null | UltraDV/Source/TTimeBevelTextView.cpp | ModeenF/UltraDV | 30474c60880de541b33687c96293766fe0dc4aef | [
"Unlicense"
] | null | null | null | //---------------------------------------------------------------------
//
// File: TTimeBevelTextView.cpp
//
// Author: Gene Z. Ragan
//
// Date: 03.24.98
//
// Desc: Enhanced version of TTimeBevelTextView drawn with a beveled
// indentation and a focus highlight
//
// Copyright ©1998 mediapede Software
//
//-------... | 22.37963 | 134 | 0.477038 | ModeenF |