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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
0184efcc3b5989736813b82f861630e2889a8d41 | 134 | cpp | C++ | first_app.cpp | venim1103/sdl-vulkan-demo | 5c8f36eabf820e3bfb23da0aadb3be6b313a5629 | [
"Apache-2.0"
] | null | null | null | first_app.cpp | venim1103/sdl-vulkan-demo | 5c8f36eabf820e3bfb23da0aadb3be6b313a5629 | [
"Apache-2.0"
] | null | null | null | first_app.cpp | venim1103/sdl-vulkan-demo | 5c8f36eabf820e3bfb23da0aadb3be6b313a5629 | [
"Apache-2.0"
] | null | null | null | #include "first_app.hpp"
namespace vulkan
{
void FirstApp::run()
{
SDL_Event event;
while(!sdlwindow.shouldClose(&event));
}
}
| 10.307692 | 40 | 0.69403 | venim1103 |
0184f99805058d61808eb95383e1f95ac4607084 | 1,013 | cpp | C++ | test/aoj/0560.test.cpp | atree-GitHub/competitive-library | 606b444036530b698a6363b1a41cdaa90a7f9578 | [
"CC0-1.0"
] | 1 | 2022-01-25T23:03:10.000Z | 2022-01-25T23:03:10.000Z | test/aoj/0560.test.cpp | atree4728/competitive-library | 1aaa4d2cf9283b9a1a3d4c7f114ff7b867ca2f8b | [
"CC0-1.0"
] | 6 | 2021-10-06T01:17:04.000Z | 2022-01-16T14:45:47.000Z | test/aoj/0560.test.cpp | atree-GitHub/competitive-library | 606b444036530b698a6363b1a41cdaa90a7f9578 | [
"CC0-1.0"
] | null | null | null | #define PROBLEM "http://judge.u-aizu.ac.jp/onlinejudge/description.jsp?id=0560"
#include <cassert>
#include <iostream>
#include "lib/data_structure/partial_sum_2D.hpp"
int main() {
using namespace std;
size_t n, m, q;
cin >> n >> m >> q;
vector<string> field(n);
for (auto &&elem: field) cin >> ele... | 32.677419 | 92 | 0.467917 | atree-GitHub |
01854efcd74250706192739705de9ec6b2d42d42 | 3,151 | cpp | C++ | modules/task_2/kolesin_a_bubblesort/main.cpp | LioBuitrago/pp_2020_autumn_informatics | 1ecc1b5dae978295778176ff11ffe42bedbc602e | [
"BSD-3-Clause"
] | 1 | 2020-11-20T15:05:12.000Z | 2020-11-20T15:05:12.000Z | modules/task_2/kolesin_a_bubblesort/main.cpp | LioBuitrago/pp_2020_autumn_informatics | 1ecc1b5dae978295778176ff11ffe42bedbc602e | [
"BSD-3-Clause"
] | 1 | 2021-02-13T03:00:05.000Z | 2021-02-13T03:00:05.000Z | modules/task_2/kolesin_a_bubblesort/main.cpp | LioBuitrago/pp_2020_autumn_informatics | 1ecc1b5dae978295778176ff11ffe42bedbc602e | [
"BSD-3-Clause"
] | 1 | 2020-10-11T09:11:57.000Z | 2020-10-11T09:11:57.000Z | // Copyright 2020 Kolesin Andrey
#include <gtest-mpi-listener.hpp>
#include <gtest/gtest.h>
#include <stdio.h>
#include <random>
#include <vector>
#include <algorithm>
#include "./bubblesort.h"
TEST(Count_Words, Test_1) {
int rank;
MPI_Comm_rank(MPI_COMM_WORLD, &rank);
std::vector<int> arr = {1};
paral... | 30.592233 | 86 | 0.569026 | LioBuitrago |
0188369b84b64e22807211ad007ac4f33e189ef3 | 343 | hpp | C++ | src/sys/house.hpp | Hopobcn/EnTT-Pacman | 5187472419f05b79fa9b92593e85fff7c0ae6ca1 | [
"MIT"
] | null | null | null | src/sys/house.hpp | Hopobcn/EnTT-Pacman | 5187472419f05b79fa9b92593e85fff7c0ae6ca1 | [
"MIT"
] | null | null | null | src/sys/house.hpp | Hopobcn/EnTT-Pacman | 5187472419f05b79fa9b92593e85fff7c0ae6ca1 | [
"MIT"
] | null | null | null | //
// house.hpp
// EnTT Pacman
//
// Created by Indi Kernick on 29/9/18.
// Copyright © 2018 Indi Kernick. All rights reserved.
//
#ifndef SYS_HOUSE_HPP
#define SYS_HOUSE_HPP
#include "util/registry.hpp"
// These systems deal with ghosts entering and leaving the house
void enterHouse(Registry &);
void leaveHous... | 17.15 | 64 | 0.720117 | Hopobcn |
018e7beb17ff3ac7140452cde5d3b1849993d0f1 | 21,319 | cc | C++ | build/px4_sitl_default/build_gazebo/MagneticField.pb.cc | amilearning/PX4-Autopilot | c1b997fbc48492689a5f6d0a090d1ea2c7d6c272 | [
"BSD-3-Clause"
] | null | null | null | build/px4_sitl_default/build_gazebo/MagneticField.pb.cc | amilearning/PX4-Autopilot | c1b997fbc48492689a5f6d0a090d1ea2c7d6c272 | [
"BSD-3-Clause"
] | null | null | null | build/px4_sitl_default/build_gazebo/MagneticField.pb.cc | amilearning/PX4-Autopilot | c1b997fbc48492689a5f6d0a090d1ea2c7d6c272 | [
"BSD-3-Clause"
] | null | null | null | // Generated by the protocol buffer compiler. DO NOT EDIT!
// source: MagneticField.proto
#define INTERNAL_SUPPRESS_PROTOBUF_FIELD_DEPRECATION
#include "MagneticField.pb.h"
#include <algorithm>
#include <google/protobuf/stubs/common.h>
#include <google/protobuf/stubs/port.h>
#include <google/protobuf/stubs/once.h>
... | 36.195246 | 143 | 0.735166 | amilearning |
0192040515727a93065c7763efdbbe306a22e3e9 | 2,270 | cpp | C++ | OS/linux.cpp | partouf/GoPiGoCPP | b0605953cf5f810d7452b2a0d0592cd6715403d7 | [
"MIT"
] | 1 | 2016-03-08T13:30:39.000Z | 2016-03-08T13:30:39.000Z | OS/linux.cpp | partouf/GoPiGoCPP | b0605953cf5f810d7452b2a0d0592cd6715403d7 | [
"MIT"
] | null | null | null | OS/linux.cpp | partouf/GoPiGoCPP | b0605953cf5f810d7452b2a0d0592cd6715403d7 | [
"MIT"
] | null | null | null | #include "linux.h"
#include <stdio.h>
#include <stdlib.h>
#include <linux/i2c-dev.h>
#include <fcntl.h>
#include <sys/ioctl.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <unistd.h>
#include <stdexcept>
#include <string>
GoPiGo::LinuxBoard::LinuxBoard(int AI2CDeviceNumber) : IBoard()
{
this->I2CDevice... | 17.734375 | 92 | 0.629075 | partouf |
0197d688542c3d7014675a027dc5e9ae40b81266 | 8,257 | cpp | C++ | converter.cpp | jackMilano/QT-Converter | 8089f1b028dee223bc536788789ca7aa96d44b95 | [
"MIT"
] | null | null | null | converter.cpp | jackMilano/QT-Converter | 8089f1b028dee223bc536788789ca7aa96d44b95 | [
"MIT"
] | null | null | null | converter.cpp | jackMilano/QT-Converter | 8089f1b028dee223bc536788789ca7aa96d44b95 | [
"MIT"
] | null | null | null | #include "converter.h"
#include "ui_converter.h"
#include <QComboBox>
#include <QEventLoop>
#include <QNetworkAccessManager>
#include <QNetworkReply>
#include <QVector>
#include <QtWidgets>
#include <cmath>
#include <iostream>
Converter::Converter(QWidget *parent) :
QMainWindow(parent),
_ui(new Ui::Converter)... | 28.870629 | 127 | 0.675669 | jackMilano |
019885849c6e40616f80020631204cd3811ae869 | 14,162 | cpp | C++ | graphicspiece.cpp | 0yinf/Klotski | df3c3d6ea58d936e059b31c614bdafebd88e70ec | [
"MIT"
] | 2 | 2017-09-17T16:16:15.000Z | 2017-09-17T16:16:18.000Z | graphicspiece.cpp | 0yinf/Klotski | df3c3d6ea58d936e059b31c614bdafebd88e70ec | [
"MIT"
] | 1 | 2017-09-21T08:27:20.000Z | 2017-09-21T08:27:20.000Z | graphicspiece.cpp | 0yinf/Klotski | df3c3d6ea58d936e059b31c614bdafebd88e70ec | [
"MIT"
] | 3 | 2017-09-13T02:44:46.000Z | 2017-09-17T05:41:11.000Z | //#define IGNORE_VALID_MOVES
#define MOVE_SYNC_THRESHOLD 0.6
//#define MOVE_DIRECTION_LIMIT_CANCEL_THRESHOLD 0.03
#include "common.h"
#include "graphicspiece.h"
#include "move.h"
#include <QPainter>
#include <QWidget>
#include <QGraphicsScene>
#include <QDebug>
#include <QGraphicsSceneMouseEvent>
#include <QSequenti... | 33.961631 | 116 | 0.59695 | 0yinf |
019ded58dc8cb5bb2ae9c8f747fb644d00efffe2 | 431 | hpp | C++ | Hurrican/src/enemies/Gegner_Diamant.hpp | s1eve-mcdichae1/Hurrican | 3ed6ff9ee94d2ea2b79e451466d28f06d58acf19 | [
"MIT"
] | 21 | 2018-04-13T10:45:45.000Z | 2022-03-29T14:53:43.000Z | Hurrican/src/enemies/Gegner_Diamant.hpp | s1eve-mcdichae1/Hurrican | 3ed6ff9ee94d2ea2b79e451466d28f06d58acf19 | [
"MIT"
] | 10 | 2018-07-03T02:08:44.000Z | 2021-05-17T16:13:21.000Z | Hurrican/src/enemies/Gegner_Diamant.hpp | s1eve-mcdichae1/Hurrican | 3ed6ff9ee94d2ea2b79e451466d28f06d58acf19 | [
"MIT"
] | 3 | 2021-10-08T12:35:05.000Z | 2022-03-03T06:03:49.000Z | #ifndef _GEGNER_DIAMANT_H
#define _GEGNER_DIAMANT_H
#include "GegnerClass.hpp"
#include "Gegner_Stuff.hpp"
class GegnerDiamant : public GegnerClass {
public:
GegnerDiamant(int Wert1,
int Wert2, // Konstruktor
bool Light);
void GegnerExplode() override; // Gegner explodi... | 25.352941 | 95 | 0.672854 | s1eve-mcdichae1 |
019e2d5982570cba05a08d57a7d44f0e0ca3a6c1 | 1,231 | cpp | C++ | playground/meta-programming/if-else.cpp | llHoYall/Cpp_Playground | 3f50237c7530e31be571e67ad2a627d1f33bbf51 | [
"MIT"
] | null | null | null | playground/meta-programming/if-else.cpp | llHoYall/Cpp_Playground | 3f50237c7530e31be571e67ad2a627d1f33bbf51 | [
"MIT"
] | null | null | null | playground/meta-programming/if-else.cpp | llHoYall/Cpp_Playground | 3f50237c7530e31be571e67ad2a627d1f33bbf51 | [
"MIT"
] | null | null | null | /*******************************************************************************
* @brief Template Meta programming: If-Else
* @author llHoYall <hoya128@gmail.com>
* @version v1.0
* @history
* 2018.12.29 Created.
******************************************************************************/
/* Include Header... | 24.62 | 80 | 0.434606 | llHoYall |
019ed6cc10cfeca30386e45142fbed1c86a29e88 | 3,553 | cpp | C++ | Povox/src/Povox/Renderer/RayTracing/RayTracerTesting.cpp | PowerOfNames/PonX | cac2c67168857409b40f9f76e9570868668370fd | [
"Apache-2.0"
] | null | null | null | Povox/src/Povox/Renderer/RayTracing/RayTracerTesting.cpp | PowerOfNames/PonX | cac2c67168857409b40f9f76e9570868668370fd | [
"Apache-2.0"
] | null | null | null | Povox/src/Povox/Renderer/RayTracing/RayTracerTesting.cpp | PowerOfNames/PonX | cac2c67168857409b40f9f76e9570868668370fd | [
"Apache-2.0"
] | null | null | null | #include "pxpch.h"
#include "Povox/Renderer/RayTracing/RayTracerTesting.h"
#include "Povox/Renderer/RenderCommand.h"
#include "Povox/Renderer/VertexArray.h"
#include "Povox/Renderer/Texture.h"
namespace Povox {
struct TracerData
{
Ref<VertexArray> VertexArray;
Ref<Shader> RayMarchingShader;
Ref<Texture> ... | 28.653226 | 143 | 0.723614 | PowerOfNames |
019ee8efe8f3ac6ac6a1188e277b8ecde4de275b | 7,839 | cxx | C++ | tests/test_string_algo.cxx | sikol/ivy | 6365b8783353cf0c79c633bbc7110be95a55225c | [
"BSL-1.0"
] | null | null | null | tests/test_string_algo.cxx | sikol/ivy | 6365b8783353cf0c79c633bbc7110be95a55225c | [
"BSL-1.0"
] | null | null | null | tests/test_string_algo.cxx | sikol/ivy | 6365b8783353cf0c79c633bbc7110be95a55225c | [
"BSL-1.0"
] | null | null | null | /*
* Copyright (c) 2019, 2020, 2021 SiKol Ltd.
* Distributed under the Boost Software License, Version 1.0.
*/
#include <string>
#include <vector>
#include <catch2/catch.hpp>
#include <ivy/charenc/utf32.hxx>
#include <ivy/regex.hxx>
#include <ivy/string/join.hxx>
#include <ivy/string/match.hxx>
#inc... | 27.699647 | 80 | 0.60148 | sikol |
019f4e5b9a6bfc4569ad707f56c4bd5e2d12f115 | 5,964 | cpp | C++ | demos/gravitygizmo/src/player.cpp | leftidev/leng | 9df738a9f5d8f90d2a01234d4d4b13311017d93e | [
"MIT"
] | null | null | null | demos/gravitygizmo/src/player.cpp | leftidev/leng | 9df738a9f5d8f90d2a01234d4d4b13311017d93e | [
"MIT"
] | null | null | null | demos/gravitygizmo/src/player.cpp | leftidev/leng | 9df738a9f5d8f90d2a01234d4d4b13311017d93e | [
"MIT"
] | null | null | null | #include "player.h"
#include <iostream>
namespace leng {
Player::Player(float x, float y, float width, float height, const std::string& path) : Entity(x, y, width, height, path) {
upHeld = false;
downHeld = false;
rightHeld = false;
leftHeld = false;
inAir = true;
jumped = true;
canDouble... | 22.088889 | 134 | 0.598592 | leftidev |
01a3a615852f421a860e6011a67dc0de0036e85a | 294 | cpp | C++ | All_code/67.cpp | jnvshubham7/cpp-programming | 7d00f4a3b97b9308e337c5d3547fd3edd47c5e0b | [
"Apache-2.0"
] | 1 | 2021-12-22T12:37:36.000Z | 2021-12-22T12:37:36.000Z | All_code/67.cpp | jnvshubham7/CPP_Programming | a17c4a42209556495302ca305b7c3026df064041 | [
"Apache-2.0"
] | null | null | null | All_code/67.cpp | jnvshubham7/CPP_Programming | a17c4a42209556495302ca305b7c3026df064041 | [
"Apache-2.0"
] | null | null | null | #include <bits/stdc++.h>
using namespace std;
int main() {
freopen("input.txt", "r", stdin);
freopen("output.txt", "w", stdout);
long long int a[n];
int sum=0;
for(int i=0;i<n;i++){
cin>>a[i];
sum=sum+a[i];
}
cout<<sum;
return 0;
}
| 14 | 38 | 0.482993 | jnvshubham7 |
01ab1d194ef773e9550ad4b8bdfef6e9358c50f7 | 13,862 | cpp | C++ | src/core/Application.cpp | lutrarutra/trafsim | 05e87b263b48e39d63f699dcaa456f10ca61e9a4 | [
"Apache-2.0"
] | 12 | 2019-12-28T21:45:23.000Z | 2022-03-28T12:40:44.000Z | src/core/Application.cpp | lutrarutra/trafsim | 05e87b263b48e39d63f699dcaa456f10ca61e9a4 | [
"Apache-2.0"
] | null | null | null | src/core/Application.cpp | lutrarutra/trafsim | 05e87b263b48e39d63f699dcaa456f10ca61e9a4 | [
"Apache-2.0"
] | 1 | 2021-05-31T10:22:41.000Z | 2021-05-31T10:22:41.000Z | #include "Application.hpp"
#include <memory>
#include <iostream>
#include <string>
#include <utility>
#include "imgui.h"
#include "imgui-SFML.h"
#include "imgui_internal.h"
#include "trafficsim/RoadTile.hpp"
#include "trafficsim/StraightRoad.hpp"
#include "trafficsim/RoadIntersection.hpp"
#include "trafficsim/RoadTr... | 38.292818 | 171 | 0.608931 | lutrarutra |
01b0d628d63692a37ac776da1c881343806e3b6e | 105,658 | cpp | C++ | Remote.cpp | kengonakajima/moyai | 70077449eb2446de6c24de928050ad8affc6df3d | [
"Zlib"
] | 37 | 2015-07-23T04:02:51.000Z | 2021-09-23T08:39:12.000Z | Remote.cpp | kengonakajima/moyai | 70077449eb2446de6c24de928050ad8affc6df3d | [
"Zlib"
] | 1 | 2018-08-30T08:33:38.000Z | 2018-08-30T08:33:38.000Z | Remote.cpp | kengonakajima/moyai | 70077449eb2446de6c24de928050ad8affc6df3d | [
"Zlib"
] | 8 | 2015-07-23T04:02:58.000Z | 2020-11-10T14:52:12.000Z | #include "common.h"
#include "client.h"
#include "Remote.h"
#include "JPEGCoder.h"
#include "crc32.h"
#ifdef USE_UNTZ
#include "threading/Threading.h" // To implement lock around send buffer inside libuv
RCriticalSection g_lock;
#endif
#include "ConvertUTF.h"
////////
void Moyai::globalInitNetwork() {
static ... | 41.548565 | 214 | 0.627326 | kengonakajima |
01b3e55d56db4c26698eff448438f681cbfc80e6 | 1,473 | cc | C++ | chapter-acceleration/openmp/offload-case-studies/case5.cc | Mark1626/road-to-plus-plus | 500db757051e32e6ccd144b70171c826527610d4 | [
"CC0-1.0"
] | 1 | 2021-07-04T12:41:16.000Z | 2021-07-04T12:41:16.000Z | chapter-acceleration/openmp/offload-case-studies/case5.cc | Mark1626/road-to-plus-plus | 500db757051e32e6ccd144b70171c826527610d4 | [
"CC0-1.0"
] | null | null | null | chapter-acceleration/openmp/offload-case-studies/case5.cc | Mark1626/road-to-plus-plus | 500db757051e32e6ccd144b70171c826527610d4 | [
"CC0-1.0"
] | null | null | null | #include <cmath>
#include <cstdio>
// static const int waveletsize = 3;
// static const int size = 6;
class HaarWavelet {
public:
static const int waveletsize = 3;
static const int size = 6;
double wavelet[waveletsize] = {0.0, 1.0 / 2.0, 1.0 / 2.0};
double sigmafactors[size + 1] = {1.00000000000, 7.07167810e-... | 26.781818 | 79 | 0.619823 | Mark1626 |
01bdd4f02548e24a34c2e63f51fc3ff6bfc8f172 | 29,130 | cpp | C++ | boolean_network/cudd_bnet.cpp | tonyfloatersu/simulator | 78dc09c6a704a7e9e0ffd3ad7f33f7b71971a773 | [
"MIT"
] | 1 | 2020-10-28T15:15:03.000Z | 2020-10-28T15:15:03.000Z | boolean_network/cudd_bnet.cpp | SJTU-ECTL/simulator | 78dc09c6a704a7e9e0ffd3ad7f33f7b71971a773 | [
"MIT"
] | null | null | null | boolean_network/cudd_bnet.cpp | SJTU-ECTL/simulator | 78dc09c6a704a7e9e0ffd3ad7f33f7b71971a773 | [
"MIT"
] | null | null | null | /**
@file
@ingroup nanotrav
@brief Functions to read in a boolean network.
@author Fabio Somenzi
@copyright@parblock
Copyright (c) 1995-2015, Regents of the University of Colorado
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted ... | 28.199419 | 79 | 0.545383 | tonyfloatersu |
01c21c7a16d17914f565eb5eccb68e4788672333 | 9,864 | cpp | C++ | src/utils/BCSimConvenience.cpp | sigurdstorve/OpenBCSim | 500025c1b63bc6ff083cbd649771d1b98e3f7314 | [
"BSD-3-Clause"
] | 17 | 2016-05-27T13:09:19.000Z | 2022-03-21T07:08:47.000Z | src/utils/BCSimConvenience.cpp | rojsc/OpenBCSim | 53773172974ad42fc3faceb7b36611573abf1c4c | [
"BSD-3-Clause"
] | 63 | 2015-09-10T11:22:56.000Z | 2021-05-21T14:52:39.000Z | src/utils/BCSimConvenience.cpp | rojsc/OpenBCSim | 53773172974ad42fc3faceb7b36611573abf1c4c | [
"BSD-3-Clause"
] | 15 | 2016-07-26T14:52:18.000Z | 2022-01-02T15:52:28.000Z | /*
Copyright (c) 2015, Sigurd Storve
All rights reserved.
Licensed under the BSD license.
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, th... | 44.233184 | 136 | 0.686942 | sigurdstorve |
01c4bb3f0706119a5b8d4925a18a5d136aad9c19 | 160 | cpp | C++ | 11Libraries/HelloLibrary.cpp | rianders/2016IntroToProgramming | 0e24b2b58c5be2e4d40d3b31b83518c48df5804e | [
"Apache-2.0"
] | 3 | 2016-01-27T18:12:40.000Z | 2016-02-03T20:27:19.000Z | 11Libraries/HelloLibrary.cpp | rianders/2016IntroToProgramming | 0e24b2b58c5be2e4d40d3b31b83518c48df5804e | [
"Apache-2.0"
] | 3 | 2016-03-21T02:18:52.000Z | 2016-03-21T03:02:51.000Z | 11Libraries/HelloLibrary.cpp | rianders/2016IntroToProgramming | 0e24b2b58c5be2e4d40d3b31b83518c48df5804e | [
"Apache-2.0"
] | 16 | 2016-01-27T18:12:41.000Z | 2019-09-15T01:42:28.000Z | #include "HelloLibrary.h"
#include <iostream>
#include <string>
using namespace std;
void HelloWorld() {
cout << "Hello My Library" << endl;
} | 12.307692 | 39 | 0.63125 | rianders |
01c7a3a7f5792c81fd3eb2eb886f2c784d0d78bd | 1,170 | hpp | C++ | include/cutee/macros.hpp | IanHG/cutee | b3b3eba5d78b4871847a5251d311b588e7ba97c0 | [
"MIT"
] | null | null | null | include/cutee/macros.hpp | IanHG/cutee | b3b3eba5d78b4871847a5251d311b588e7ba97c0 | [
"MIT"
] | 12 | 2018-06-18T12:56:33.000Z | 2020-09-08T10:29:29.000Z | include/cutee/macros.hpp | IanHG/cutee | b3b3eba5d78b4871847a5251d311b588e7ba97c0 | [
"MIT"
] | null | null | null | #pragma once
#ifndef CUTEE_MACROS_HPP_INCLUDED
#define CUTEE_MACROS_HPP_INCLUDED
#include "suite.hpp"
#include "float_eq.hpp"
/**
* Assertion Macros
**/
#define UNIT_ASSERT(a, b) \
cutee::asserter::assertt(a, cutee::info{b, __FILE__, __LINE__});
#define UNIT_ASSERT_NOT(a, b) \
cutee::asserter::assert_not(a, ... | 32.5 | 95 | 0.722222 | IanHG |
01c817ed00701072add5f6d11fe4fc2d0ae003cf | 592 | cpp | C++ | cpp/triangle/triangle.cpp | homembaixinho/exercism | fe145381365c101f8e0c5998180ef4973cd9f4ee | [
"MIT"
] | null | null | null | cpp/triangle/triangle.cpp | homembaixinho/exercism | fe145381365c101f8e0c5998180ef4973cd9f4ee | [
"MIT"
] | null | null | null | cpp/triangle/triangle.cpp | homembaixinho/exercism | fe145381365c101f8e0c5998180ef4973cd9f4ee | [
"MIT"
] | null | null | null | #include "triangle.h"
#include <algorithm>
#include <stdexcept>
#include <vector>
using namespace std;
namespace triangle {
flavor kind(double a, double b, double c) {
// checks for invalid triangles
double smallest = min(min(a,b), c);
double largest = max(max(a,b), c);
if (a + b + c - 2*largest <=... | 19.733333 | 51 | 0.589527 | homembaixinho |
01ca1ad888864e8ce50fb68689971ab6ad88eb15 | 115,748 | cpp | C++ | AStyleTest/src/AStyleTest_Format.cpp | a-w/astyle | 8225c7fc9b65162bdd958cabb87eedd9749f1ecd | [
"MIT"
] | null | null | null | AStyleTest/src/AStyleTest_Format.cpp | a-w/astyle | 8225c7fc9b65162bdd958cabb87eedd9749f1ecd | [
"MIT"
] | null | null | null | AStyleTest/src/AStyleTest_Format.cpp | a-w/astyle | 8225c7fc9b65162bdd958cabb87eedd9749f1ecd | [
"MIT"
] | null | null | null | // AStyleTest_Format.cpp
// Copyright (c) 2016 by Jim Pattee <jimp03@email.com>.
// Licensed under the MIT license.
// License.txt describes the conditions under which this software may be distributed.
//----------------------------------------------------------------------------
// headers
//------------------... | 27.170892 | 117 | 0.480276 | a-w |
01cce684c5c58f1a380917ec02e2f24139c17f69 | 1,274 | cpp | C++ | src/segment.cpp | drjod/construct | 0199baf8b56735869b28ae526f78dcca117b2060 | [
"BSD-3-Clause"
] | null | null | null | src/segment.cpp | drjod/construct | 0199baf8b56735869b28ae526f78dcca117b2060 | [
"BSD-3-Clause"
] | null | null | null | src/segment.cpp | drjod/construct | 0199baf8b56735869b28ae526f78dcca117b2060 | [
"BSD-3-Clause"
] | 2 | 2020-03-23T13:08:11.000Z | 2020-04-15T11:27:31.000Z | #include "segment.h"
#include "configuration.h"
#include "utilities.h"
#include <math.h>
namespace contra
{
Resistances Segment::set_resistances(Configuration* configuration)
{
return configuration->set_resistances(casing.get_D(), casing.get_lambda_g());
}
void Segment::set_functions(Piping* piping)
{
Configurati... | 22.75 | 83 | 0.616954 | drjod |
01cfe3d0f5b6974abb9d2c5adde1650821f94fe1 | 642 | hpp | C++ | src/include/guinsoodb/parser/statement/vacuum_statement.hpp | GuinsooLab/guinsoodb | f200538868738ae460f62fb89211deec946cefff | [
"MIT"
] | 1 | 2021-04-22T05:41:54.000Z | 2021-04-22T05:41:54.000Z | src/include/guinsoodb/parser/statement/vacuum_statement.hpp | GuinsooLab/guinsoodb | f200538868738ae460f62fb89211deec946cefff | [
"MIT"
] | null | null | null | src/include/guinsoodb/parser/statement/vacuum_statement.hpp | GuinsooLab/guinsoodb | f200538868738ae460f62fb89211deec946cefff | [
"MIT"
] | 1 | 2021-12-12T10:24:57.000Z | 2021-12-12T10:24:57.000Z | //===----------------------------------------------------------------------===//
// GuinsooDB
//
// guinsoodb/parser/statement/vacuum_statement.hpp
//
//
//===----------------------------------------------------------------------===//
#pragma once
#include "guinsoodb/parser/parsed_expression.h... | 22.928571 | 80 | 0.549844 | GuinsooLab |
01d3ad3ae93b6588103d7dd8e00ec56f2386f769 | 159 | hh | C++ | Statement/MySQLStatement.hh | decouple/dbal | ea94dcb215d9693ab81d3be5394ff7448e254380 | [
"MIT"
] | null | null | null | Statement/MySQLStatement.hh | decouple/dbal | ea94dcb215d9693ab81d3be5394ff7448e254380 | [
"MIT"
] | null | null | null | Statement/MySQLStatement.hh | decouple/dbal | ea94dcb215d9693ab81d3be5394ff7448e254380 | [
"MIT"
] | null | null | null | <?hh // strict
use Decouple\Common\Contract\DB\Statement;
interface MySQLStatement extends Statement {
public function fetchColumn(int $column=0) : mixed;
}
| 26.5 | 53 | 0.773585 | decouple |
01d409fe2a659c8b80e8da3affb79979ccebb12c | 5,638 | cpp | C++ | src/bridge.cpp | dudpray0220/C-ProxyServer | 40038726b988b21055b17af90b9142fcad2a213c | [
"Apache-2.0"
] | 1 | 2021-11-29T08:11:43.000Z | 2021-11-29T08:11:43.000Z | src/bridge.cpp | dudpray0220/C-ProxyServer | 40038726b988b21055b17af90b9142fcad2a213c | [
"Apache-2.0"
] | null | null | null | src/bridge.cpp | dudpray0220/C-ProxyServer | 40038726b988b21055b17af90b9142fcad2a213c | [
"Apache-2.0"
] | 1 | 2021-12-01T04:45:55.000Z | 2021-12-01T04:45:55.000Z | #include "../inc/bridge.hpp"
// public
namespace yhbae {
bridge::bridge(boost::asio::io_service &ios) // 생성자
: downstream_socket_(ios), upstream_socket_(ios) // 멤버변수 down, upstream_socket에 파라미터를 연결해줌.
{};
bridge::socket_type &yhbae::bridge::downstream_socket() // &를 붙이면 주소가 된다. 멤버함수(Method), soc... | 41.455882 | 146 | 0.622206 | dudpray0220 |
01d72abac4cfe9609df0fbda7140cbaf0a1f800f | 2,528 | cpp | C++ | async-io-linux-filesystem/AsyncFileReader.cpp | daank94/async-io-linux-filesystem | 6c5a3d2a20913bbb203c5cf2618203c7ae26a569 | [
"MIT"
] | 1 | 2019-12-26T21:07:22.000Z | 2019-12-26T21:07:22.000Z | async-io-linux-filesystem/AsyncFileReader.cpp | daank94/async-io-linux-filesystem | 6c5a3d2a20913bbb203c5cf2618203c7ae26a569 | [
"MIT"
] | null | null | null | async-io-linux-filesystem/AsyncFileReader.cpp | daank94/async-io-linux-filesystem | 6c5a3d2a20913bbb203c5cf2618203c7ae26a569 | [
"MIT"
] | 1 | 2020-01-02T01:27:42.000Z | 2020-01-02T01:27:42.000Z |
#include "AsyncFileReader.h"
#include <sys/epoll.h>
#include <unistd.h>
#include <stdio.h>
AsyncFileReader::AsyncFileReader()
: epoll_fd_(epoll_create1(0)),
stopped_(false)
{
static_assert(EVENT_BUFFER_SIZE > 0, "EVENT_BUFFER_SIZE must be greater than 0");
static_assert(READ_BUFFER_SIZE > 0, "READ_BUFFER_SIZE... | 24.07619 | 172 | 0.730222 | daank94 |
01dd7017a5734ed0acb9fa4079335c1f4ed723f2 | 1,504 | cpp | C++ | main_web.cpp | kooBH/Qt_File_IO | 2a95289f295018ece13665e0bc3112efbe889d8a | [
"Unlicense"
] | null | null | null | main_web.cpp | kooBH/Qt_File_IO | 2a95289f295018ece13665e0bc3112efbe889d8a | [
"Unlicense"
] | 6 | 2019-03-14T11:57:03.000Z | 2019-06-07T10:42:18.000Z | main_web.cpp | kooBH/Qt_File_IO | 2a95289f295018ece13665e0bc3112efbe889d8a | [
"Unlicense"
] | null | null | null | #include <QtWebEngineCore>
#include <QApplication>
#include <QWebEngineView>
#include <QVBoxLayout>
#include <QPushButton>
#include <QWidget>
QUrl commandLineUrlArgument()
{
const QStringList args = QCoreApplication::arguments();
for (const QString &arg : args.mid(1)) {
if (!arg.startsWith(QLatin1Char('-')))
... | 24.258065 | 89 | 0.692154 | kooBH |
01e23ec8197e816ffb8957afcc85f7b9973b60ef | 3,163 | hpp | C++ | diffsim_torch3d/arcsim/src/physics.hpp | priyasundaresan/kaolin | ddae34ba5f09bffc4368c29bc50491c5ece797d4 | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | diffsim_torch3d/arcsim/src/physics.hpp | priyasundaresan/kaolin | ddae34ba5f09bffc4368c29bc50491c5ece797d4 | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | diffsim_torch3d/arcsim/src/physics.hpp | priyasundaresan/kaolin | ddae34ba5f09bffc4368c29bc50491c5ece797d4 | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | /*
Copyright ©2013 The Regents of the University of California
(Regents). All Rights Reserved. Permission to use, copy, modify, and
distribute this software and its documentation for educational,
research, and not-for-profit purposes, without fee and without a
signed licensing agreement, is hereby granted, pr... | 39.5375 | 98 | 0.669617 | priyasundaresan |
01e2fc1419df585b6bbda0d311ec4e0ead3faa7e | 2,287 | cpp | C++ | benchmarks/benchmark_ref_counted_ptr.cpp | abu-lib/mem | 9a8a92b53ff079ecae0f8211213f5ed5571d1ed8 | [
"Apache-2.0"
] | null | null | null | benchmarks/benchmark_ref_counted_ptr.cpp | abu-lib/mem | 9a8a92b53ff079ecae0f8211213f5ed5571d1ed8 | [
"Apache-2.0"
] | 1 | 2021-09-26T14:15:33.000Z | 2021-09-26T15:40:32.000Z | benchmarks/benchmark_ref_counted_ptr.cpp | abu-lib/mem | 9a8a92b53ff079ecae0f8211213f5ed5571d1ed8 | [
"Apache-2.0"
] | null | null | null | #include <benchmark/benchmark.h>
#include <cstdlib>
#include <ctime>
#include <memory>
#include "abu/mem.h"
namespace {
static void BM_shared_ptr_int_lifetime(benchmark::State& state) {
std::srand(std::time(nullptr));
int v = std::rand();
for (auto _ : state) {
(void)_;
auto tmp = std::... | 25.131868 | 77 | 0.663314 | abu-lib |
01e399aae29a026843f9751f0769d04e8ba7dc2f | 52,394 | cpp | C++ | source/equation.cpp | LiquidFenrir/CalculaThreeDS | 1f87cdafa639e8289ebf886c6dd0e341c4da6279 | [
"MIT"
] | 10 | 2020-11-08T13:40:44.000Z | 2021-05-19T09:40:53.000Z | source/equation.cpp | LiquidFenrir/CalculaThreeDS | 1f87cdafa639e8289ebf886c6dd0e341c4da6279 | [
"MIT"
] | 2 | 2021-01-18T13:56:08.000Z | 2021-03-11T13:45:05.000Z | source/equation.cpp | LiquidFenrir/CalculaThreeDS | 1f87cdafa639e8289ebf886c6dd0e341c4da6279 | [
"MIT"
] | null | null | null | #include "equation.h"
#include "sprites.h"
#include "text.h"
#include "colors.h"
#include <algorithm>
#include <cmath>
static const Number E_VAL(std::exp(1.0));
static const Number PI_VAL(M_PI);
static const Number I_VAL(0.0, 1.0);
Equation::Equation() : parts(3)
{
parts[0].meta.assoc = 2;
parts[0].meta.speci... | 38.83914 | 236 | 0.492881 | LiquidFenrir |
01e39ce818b54c879e1b196b68ac199bd3856752 | 2,133 | cpp | C++ | Sources/AGEngine/Utils/Frustum.cpp | Another-Game-Engine/AGE | d5d9e98235198fe580a43007914f515437635830 | [
"MIT"
] | 47 | 2015-03-29T09:44:25.000Z | 2020-11-30T10:05:56.000Z | Sources/AGEngine/Utils/Frustum.cpp | Another-Game-Engine/AGE | d5d9e98235198fe580a43007914f515437635830 | [
"MIT"
] | 313 | 2015-01-01T18:16:30.000Z | 2015-11-30T07:54:07.000Z | Sources/AGEngine/Utils/Frustum.cpp | Another-Game-Engine/AGE | d5d9e98235198fe580a43007914f515437635830 | [
"MIT"
] | 9 | 2015-06-07T13:21:54.000Z | 2020-08-25T09:50:07.000Z | #pragma once
#include "Frustum.hh"
#include <glm/glm.hpp>
namespace AGE
{
void Frustum::buildPlanes()
{
_planes[PLANE_NEAR].setCoefficients(
_viewProj[0][2] + _viewProj[0][3],
_viewProj[1][2] + _viewProj[1][3],
_viewProj[2][2] + _viewProj[2][3],
_viewProj[3][2] + _viewProj[3][3]);
_planes[PLANE_FAR... | 23.966292 | 86 | 0.631036 | Another-Game-Engine |
01e7355d0093d04bd17cd74177abaa99133bd59e | 20,259 | cpp | C++ | render_algorithms/ripgen-fbo/src/UI.cpp | itsermo/holovideo-algorithms | 6b39f896a8c61d2a82a7314efc583940d685dd55 | [
"BSD-3-Clause"
] | 3 | 2018-02-26T19:53:10.000Z | 2020-01-16T14:30:02.000Z | render_algorithms/ripgen-fbo/src/UI.cpp | itsermo/holovideo-algorithms | 6b39f896a8c61d2a82a7314efc583940d685dd55 | [
"BSD-3-Clause"
] | null | null | null | render_algorithms/ripgen-fbo/src/UI.cpp | itsermo/holovideo-algorithms | 6b39f896a8c61d2a82a7314efc583940d685dd55 | [
"BSD-3-Clause"
] | null | null | null | #include <stdlib.h>
#include <stdio.h>
#include "setupglew.h"
#include <GL/gl.h>
#include <GL/glu.h>
#include <GL/glxew.h>
//#include <GL/glx.h> //for Nvida Framelock code
#include <GL/glut.h>
#include "JSharedMemory.h"
#include "JSequencer.h"
#include "JDisplayState.h"
#include "RIP.h"
#include "UI.h"
#include "flyR... | 27.982044 | 149 | 0.710203 | itsermo |
543527a510cb32554b395028916e54e8d894c42f | 775 | cpp | C++ | src/xtd.core/src/xtd/reflection/assembly_title_attribute.cpp | BaderEddineOuaich/xtd | 6f28634c7949a541d183879d2de18d824ec3c8b1 | [
"MIT"
] | 1 | 2022-02-25T16:53:06.000Z | 2022-02-25T16:53:06.000Z | src/xtd.core/src/xtd/reflection/assembly_title_attribute.cpp | leanid/xtd | 2e1ea6537218788ca08901faf8915d4100990b53 | [
"MIT"
] | null | null | null | src/xtd.core/src/xtd/reflection/assembly_title_attribute.cpp | leanid/xtd | 2e1ea6537218788ca08901faf8915d4100990b53 | [
"MIT"
] | null | null | null | #include "../../../include/xtd/reflection/assembly_title_attribute.h"
using namespace std;
using namespace xtd;
using namespace xtd::reflection;
assembly_title_attribute::assembly_title_attribute(const ustring& title) : title_(title) {
}
assembly_title_attribute::assembly_title_attribute(const ustring& title, const ... | 35.227273 | 124 | 0.79871 | BaderEddineOuaich |
543614d4379119294edb2d06606b2e4da4f4ceee | 755 | cpp | C++ | p636/p636_2.cpp | suzyz/leetcode_practice | e22dc5a81e065dc962e5561b14ac84b9a2302e8a | [
"MIT"
] | 1 | 2019-10-07T05:00:21.000Z | 2019-10-07T05:00:21.000Z | p636/p636_2.cpp | suzyz/leetcode_practice | e22dc5a81e065dc962e5561b14ac84b9a2302e8a | [
"MIT"
] | null | null | null | p636/p636_2.cpp | suzyz/leetcode_practice | e22dc5a81e065dc962e5561b14ac84b9a2302e8a | [
"MIT"
] | null | null | null | class Solution {
public:
vector<int> exclusiveTime(int n, vector<string>& logs) {
vector<int> res(n);
stack<int> st;
int preTime = 0;
for (int i = 0; i < logs.size(); ++i) {
int pos = logs[i].find(':');
int id = atoi(logs[i].substr(0, pos).c_str());
p... | 23.59375 | 62 | 0.403974 | suzyz |
543fa89656496c552e0840f549271c1541df4c4e | 865 | cpp | C++ | src/state_vector/state_vector.cpp | libtangle/tools | 4362e5312bcfbe93c912c3f8df9159816003b66e | [
"MIT"
] | 1 | 2019-10-14T05:41:58.000Z | 2019-10-14T05:41:58.000Z | src/state_vector/state_vector.cpp | libtangle/tools | 4362e5312bcfbe93c912c3f8df9159816003b66e | [
"MIT"
] | 1 | 2019-09-15T17:57:43.000Z | 2019-09-16T06:36:19.000Z | src/state_vector/state_vector.cpp | libtangle/tools | 4362e5312bcfbe93c912c3f8df9159816003b66e | [
"MIT"
] | null | null | null | #include "state_vector.h"
#include "omp.h"
#include <iostream>
#include <stdlib.h>
StateVector::StateVector(int num_qubits)
{
this->num_qubits = num_qubits;
this->num_amps = 1L << num_qubits;
// Allocate the required memory for the state vector
std::size_t bytes = num_amps * sizeof(complex);
state... | 22.179487 | 56 | 0.523699 | libtangle |
5440b08301628ef96e197bf93542acbaa63f2f0f | 1,490 | hpp | C++ | include/prog/sym/func_def.hpp | BastianBlokland/novus | 3b984c36855aa84d6746c14ff7e294ab7d9c1575 | [
"MIT"
] | 14 | 2020-04-14T17:00:56.000Z | 2021-08-30T08:29:26.000Z | include/prog/sym/func_def.hpp | BastianBlokland/novus | 3b984c36855aa84d6746c14ff7e294ab7d9c1575 | [
"MIT"
] | 27 | 2020-12-27T16:00:44.000Z | 2021-08-01T13:12:14.000Z | include/prog/sym/func_def.hpp | BastianBlokland/novus | 3b984c36855aa84d6746c14ff7e294ab7d9c1575 | [
"MIT"
] | 1 | 2020-05-29T18:33:37.000Z | 2020-05-29T18:33:37.000Z | #pragma once
#include "prog/expr/node.hpp"
#include "prog/sym/const_decl_table.hpp"
#include "prog/sym/func_decl_table.hpp"
#include <vector>
namespace prog::sym {
// Function definition. Contains the body of a user-function.
class FuncDef final {
friend class FuncDefTable;
public:
enum class Flags : unsigned in... | 29.8 | 89 | 0.672483 | BastianBlokland |
5445fbb01d0b541ba8265c0941408dadaf0ef837 | 226 | hpp | C++ | source/platform/windows/defines.hpp | ameisen/gcgg | 6ee9a841ddd88182c235a688e6b7d8894f7af1fe | [
"Apache-2.0"
] | null | null | null | source/platform/windows/defines.hpp | ameisen/gcgg | 6ee9a841ddd88182c235a688e6b7d8894f7af1fe | [
"Apache-2.0"
] | null | null | null | source/platform/windows/defines.hpp | ameisen/gcgg | 6ee9a841ddd88182c235a688e6b7d8894f7af1fe | [
"Apache-2.0"
] | null | null | null | #pragma once
#include <cassert>
#define OS Windows
#define __likely(c) (c)
#define __unlikely(c) (c)
#define __unreachable __assume(0)
#define nodefault default: { __unreachable; }
#define xassert(c) assert(c)
| 17.384615 | 46 | 0.69469 | ameisen |
5446676bcffd729b260e4aba4e25c442da814dc9 | 2,705 | cxx | C++ | src/shared/init_models.cxx | solomonik/ctf | b79428ca8e7a5fa6ef22197ff5129d1aace3134b | [
"BSD-2-Clause"
] | 56 | 2015-02-28T08:19:58.000Z | 2021-11-04T16:46:17.000Z | src/shared/init_models.cxx | solomonik/ctf | b79428ca8e7a5fa6ef22197ff5129d1aace3134b | [
"BSD-2-Clause"
] | 40 | 2015-04-08T14:58:42.000Z | 2017-11-17T20:57:26.000Z | src/shared/init_models.cxx | solomonik/ctf | b79428ca8e7a5fa6ef22197ff5129d1aace3134b | [
"BSD-2-Clause"
] | 17 | 2015-04-03T00:57:43.000Z | 2018-03-30T20:46:14.000Z | namespace CTF_int{
double seq_tsr_spctr_cst_off_k0_init[] = {5.3745E-06, 3.6464E-08, 2.2334E-10};
double seq_tsr_spctr_cst_off_k1_init[] = {5.3745E-06, 3.6464E-08, 2.2334E-10};
double seq_tsr_spctr_cst_off_k2_init[] = {-2.1996E-04, 3.1883E-09, 3.8743E-11};
double seq_tsr_spctr_off_k0_init[] = {8.6970E-06, 4.5598E-11, 1... | 65.97561 | 79 | 0.721257 | solomonik |
5450373884e4d7eeae4d4c943765a34f77388329 | 650 | cpp | C++ | dlls/ADM/Physics/PhysManager.cpp | BlueNightHawk4906/HL-ADM-Custom | 7cd3925de819d4f5a2a808e5c0b34bb03a51c991 | [
"Unlicense"
] | 1 | 2020-12-11T17:52:33.000Z | 2020-12-11T17:52:33.000Z | dlls/ADM/Physics/PhysManager.cpp | BlueNightHawk4906/HL-ADM-Custom | 7cd3925de819d4f5a2a808e5c0b34bb03a51c991 | [
"Unlicense"
] | 7 | 2021-07-09T09:19:14.000Z | 2021-07-20T19:35:21.000Z | dlls/ADM/Physics/PhysManager.cpp | phoenixprojectsoftware/phoenixADM | 5f170a34739e64111dbe161d9ab9e0baa219512b | [
"Unlicense"
] | null | null | null | #include "Base/ExtDLL.h"
#include "Util.h"
#include "Base/CBase.h"
#include "PhysManager.h"
#include "../shared/ADM/Physics/PhysicsWorld.h"
LINK_ENTITY_TO_CLASS( phys_manager, CPhysManager );
void CPhysManager::Spawn()
{
pev->solid = SOLID_NOT;
pev->movetype = MOVETYPE_NONE;
// pev->flags |= FL_ALWA... | 22.413793 | 78 | 0.673846 | BlueNightHawk4906 |
54571cf0e13f22a286b8c650a63c535529550a82 | 35,187 | hpp | C++ | include/ext/net/http/http_server.hpp | dmlys/netlib | 81627e5f9bea8f1225b1083efa66a8b5dcb9c514 | [
"BSL-1.0"
] | 1 | 2018-05-14T13:46:59.000Z | 2018-05-14T13:46:59.000Z | include/ext/net/http/http_server.hpp | dmlys/netlib | 81627e5f9bea8f1225b1083efa66a8b5dcb9c514 | [
"BSL-1.0"
] | null | null | null | include/ext/net/http/http_server.hpp | dmlys/netlib | 81627e5f9bea8f1225b1083efa66a8b5dcb9c514 | [
"BSL-1.0"
] | null | null | null | #pragma once
#include <memory>
#include <string>
#include <vector>
#include <functional>
#include <iterator>
#include <thread>
#include <mutex>
#include <condition_variable>
#include <boost/container/flat_set.hpp>
#include <boost/container/flat_map.hpp>
#include <ext/config.hpp>
#include <ext/future.hpp>
#include <... | 55.412598 | 191 | 0.772729 | dmlys |
5463d9bb199bab6956d3a9ba142fbd22002a67a9 | 3,707 | hpp | C++ | hydra/vulkan/pipeline_layout.hpp | tim42/hydra | dfffd50a2863695742c0c6122a505824db8be7c3 | [
"MIT"
] | 2 | 2016-09-15T22:29:46.000Z | 2017-11-30T11:16:12.000Z | hydra/vulkan/pipeline_layout.hpp | tim42/hydra | dfffd50a2863695742c0c6122a505824db8be7c3 | [
"MIT"
] | null | null | null | hydra/vulkan/pipeline_layout.hpp | tim42/hydra | dfffd50a2863695742c0c6122a505824db8be7c3 | [
"MIT"
] | null | null | null | //
// file : pipeline_layout.hpp
// in : file:///home/tim/projects/hydra/hydra/vulkan/pipeline_layout.hpp
//
// created by : Timothée Feuillet
// date: Sun Aug 14 2016 13:43:28 GMT+0200 (CEST)
//
//
// Copyright (c) 2016 Timothée Feuillet
//
// Permission is hereby granted, free of charge, to any person obtaining a cop... | 36.70297 | 151 | 0.671702 | tim42 |
546a11c1b2fb0ea64885541a70df951ecaf43844 | 1,136 | hpp | C++ | src/common/naive.hpp | TNishimoto/rlbwt_iterator | f2a4ae0276cb756d2724570def84641449da2f87 | [
"MIT"
] | null | null | null | src/common/naive.hpp | TNishimoto/rlbwt_iterator | f2a4ae0276cb756d2724570def84641449da2f87 | [
"MIT"
] | null | null | null | src/common/naive.hpp | TNishimoto/rlbwt_iterator | f2a4ae0276cb756d2724570def84641449da2f87 | [
"MIT"
] | null | null | null | #pragma once
#include <vector>
#include <iostream>
#include <list>
#include <memory>
#include <random>
#include <exception>
#include <algorithm>
#include <fstream>
#include <chrono>
#include <time.h> //#include <stdio.h>
namespace stool
{
class NaiveAlgorithms
{
template <typename INDEX>
static std::vector<IND... | 27.047619 | 81 | 0.43662 | TNishimoto |
54720cd912f3adf5ecc237fbb8e1ef36829439c1 | 773 | hpp | C++ | SDK/ARKSurvivalEvolved_EngramEntry_Toilet_classes.hpp | 2bite/ARK-SDK | c38ca9925309516b2093ad8c3a70ed9489e1d573 | [
"MIT"
] | 10 | 2020-02-17T19:08:46.000Z | 2021-07-31T11:07:19.000Z | SDK/ARKSurvivalEvolved_EngramEntry_Toilet_classes.hpp | 2bite/ARK-SDK | c38ca9925309516b2093ad8c3a70ed9489e1d573 | [
"MIT"
] | 9 | 2020-02-17T18:15:41.000Z | 2021-06-06T19:17:34.000Z | SDK/ARKSurvivalEvolved_EngramEntry_Toilet_classes.hpp | 2bite/ARK-SDK | c38ca9925309516b2093ad8c3a70ed9489e1d573 | [
"MIT"
] | 3 | 2020-07-22T17:42:07.000Z | 2021-06-19T17:16:13.000Z | #pragma once
// ARKSurvivalEvolved (329.9) SDK
#ifdef _MSC_VER
#pragma pack(push, 0x8)
#endif
#include "ARKSurvivalEvolved_EngramEntry_Toilet_structs.hpp"
namespace sdk
{
//---------------------------------------------------------------------------
//Classes
//------------------------------------------------------... | 19.820513 | 106 | 0.626132 | 2bite |
5472d4010d1eaeaf62637e439bd939e07cee465d | 28,590 | cpp | C++ | src/Renderer.cpp | smithy545/engine | 1818a1acafdbc2550b10ef74a215aa41d94edf0f | [
"MIT"
] | null | null | null | src/Renderer.cpp | smithy545/engine | 1818a1acafdbc2550b10ef74a215aa41d94edf0f | [
"MIT"
] | null | null | null | src/Renderer.cpp | smithy545/engine | 1818a1acafdbc2550b10ef74a215aa41d94edf0f | [
"MIT"
] | null | null | null | //
// Created by Philip Smith on 10/17/2020.
//
#include <engine/Renderer.h>
#include <engine/OrbitCam.h>
#include <engine/InstanceList.h>
#include <engine/mesh/Mesh.h>
#include <engine/sprite/ShapeSprite.h>
#include <engine/sprite/TextSprite.h>
#include <engine/sprite/TextureSprite.h>
#include <fmt/format.h>
#includ... | 42.863568 | 123 | 0.619203 | smithy545 |
5473a402d01ac1bead5979450f8b478098257405 | 1,972 | cpp | C++ | test2.cpp | jhxqy/WebServerDemo | 5fce6dcbda875f61c96e7952b063e34b8ae6cb29 | [
"MIT"
] | null | null | null | test2.cpp | jhxqy/WebServerDemo | 5fce6dcbda875f61c96e7952b063e34b8ae6cb29 | [
"MIT"
] | null | null | null | test2.cpp | jhxqy/WebServerDemo | 5fce6dcbda875f61c96e7952b063e34b8ae6cb29 | [
"MIT"
] | null | null | null | //
// test2.cpp
// EZasync
//
// Created by 贾皓翔 on 2019/6/5.
// Copyright © 2019 贾皓翔. All rights reserved.
//
#include <stdio.h>
#include "asynchttp/HTTP.hpp"
using namespace std;
using namespace HTTP;
int main(){
IOContext ctx;
Serv s(ctx,"8088");
HttpDispatcher *http=HttpDispatcherImpl::Create();
... | 31.301587 | 88 | 0.591785 | jhxqy |
54802c98caf4d2337d84f7b53369a0cc6d201cb7 | 334 | cpp | C++ | Source/XeluIcons/Private/XeluIconsDeveloperSettings.cpp | mklabs/ue-xelu-icons | 4aaf54ecb9533fc3689f457b280b79293b861b47 | [
"MIT"
] | 5 | 2022-02-01T22:49:51.000Z | 2022-03-03T10:18:36.000Z | Source/XeluIcons/Private/XeluIconsDeveloperSettings.cpp | mklabs/ue-xelu-icons | 4aaf54ecb9533fc3689f457b280b79293b861b47 | [
"MIT"
] | 1 | 2022-01-31T23:09:04.000Z | 2022-01-31T23:09:04.000Z | Source/XeluIcons/Private/XeluIconsDeveloperSettings.cpp | mklabs/ue-xelu-icons | 4aaf54ecb9533fc3689f457b280b79293b861b47 | [
"MIT"
] | null | null | null | // Copyright 2022 Mickael Daniel. All Rights Reserved.
#include "XeluIconsDeveloperSettings.h"
UXeluIconsDeveloperSettings::UXeluIconsDeveloperSettings()
{
IconsDataTable = FSoftObjectPath(TEXT("/XeluIcons/DT_Xelu_Icons.DT_Xelu_Icons"));
}
FName UXeluIconsDeveloperSettings::GetCategoryName() const
{
return FName(... | 22.266667 | 82 | 0.805389 | mklabs |
54873d2ce7769081b8be72c41d3903efc133f45d | 155 | cpp | C++ | src/Zadanie20.cpp | radzbydzi/Podstawy-Programowania | c97e72fd2fc0ecf3a88b0095cc409802be009013 | [
"Unlicense"
] | null | null | null | src/Zadanie20.cpp | radzbydzi/Podstawy-Programowania | c97e72fd2fc0ecf3a88b0095cc409802be009013 | [
"Unlicense"
] | null | null | null | src/Zadanie20.cpp | radzbydzi/Podstawy-Programowania | c97e72fd2fc0ecf3a88b0095cc409802be009013 | [
"Unlicense"
] | null | null | null | #include "Zadanie20.h"
Zadanie20::Zadanie20()
{
}
Zadanie20::~Zadanie20()
{
}
void Zadanie20::run()
{
cout<<"Zadanie20"<<endl<<endl;
pokazTresc();
}
| 9.117647 | 31 | 0.645161 | radzbydzi |
54888c9318b3b338b8652db0a9750d917d1eef3b | 297 | hpp | C++ | include/RegularExpressionMatching.hpp | yanzhe-chen/LeetCode | d82f0b9721ea613ab216c78e7286671d0e9e4187 | [
"MIT"
] | 43 | 2015-10-10T12:59:52.000Z | 2018-07-11T18:07:00.000Z | include/RegularExpressionMatching.hpp | yanzhe-chen/LeetCode | d82f0b9721ea613ab216c78e7286671d0e9e4187 | [
"MIT"
] | null | null | null | include/RegularExpressionMatching.hpp | yanzhe-chen/LeetCode | d82f0b9721ea613ab216c78e7286671d0e9e4187 | [
"MIT"
] | 11 | 2015-10-10T14:41:11.000Z | 2018-07-28T06:03:16.000Z | #ifndef REGULAR_EXPRESSION_MATCHING_HPP_
#define REGULAR_EXPRESSION_MATCHING_HPP_
#include <string>
using namespace std;
class RegularExpressionMatching {
public:
bool isMatch(string s, string p);
private:
bool isMatch(char _s, char _p);
};
#endif // REGULAR_EXPRESSION_MATCHING_HPP_
| 17.470588 | 42 | 0.787879 | yanzhe-chen |
5489c5139f0a48c5e723f63b2936a0cfd0342dfb | 995 | cpp | C++ | workbench/src/event.cpp | MasterQ32/cg-workbench | 3d6229b961192689e6dbd0a09ec4b61041ecb155 | [
"MIT"
] | 5 | 2017-12-27T12:57:36.000Z | 2021-10-02T03:21:40.000Z | workbench/src/event.cpp | MasterQ32/cg-workbench | 3d6229b961192689e6dbd0a09ec4b61041ecb155 | [
"MIT"
] | 9 | 2020-09-29T22:40:49.000Z | 2020-10-17T20:05:05.000Z | workbench/src/event.cpp | MasterQ32/cg-workbench | 3d6229b961192689e6dbd0a09ec4b61041ecb155 | [
"MIT"
] | null | null | null | #include "event.hpp"
#include <SDL.h>
#include "sink.hpp"
timestamp_t Event::system_time;
Event::Event() :
current(system_time - 10000), // 10 seconds ago...
counter(0)
{
}
void Event::Trigger()
{
this->triggered = true;
this->current = system_time;
this->counter += 1;
}
void Event::Reset()
{
this->co... | 15.307692 | 54 | 0.638191 | MasterQ32 |
548bc5e3181dfac55df4e56c841997aa1b26ed76 | 8,428 | hpp | C++ | source/list.hpp | saJonMR/programmiersprachen_aufgabenblatt_3 | 2d02c2da6389cc152986aa55ffce91f86ff8b6e3 | [
"MIT"
] | null | null | null | source/list.hpp | saJonMR/programmiersprachen_aufgabenblatt_3 | 2d02c2da6389cc152986aa55ffce91f86ff8b6e3 | [
"MIT"
] | null | null | null | source/list.hpp | saJonMR/programmiersprachen_aufgabenblatt_3 | 2d02c2da6389cc152986aa55ffce91f86ff8b6e3 | [
"MIT"
] | null | null | null | #ifndef BUW_LIST_HPP
#define BUW_LIST_HPP
#include <cassert>
#include <cstddef> //ptrdiff_t
#include <iterator> //std::bidirectional_iterator_tag
#include <iostream>
#include <initializer_list>
template <typename T>
class List;
template <typename T>
struct ListNode {
T value = T{};
ListNode* prev = null... | 24.218391 | 118 | 0.568818 | saJonMR |
548d738958b13f8c71e2e4d7c9fec12a2f52df80 | 316 | cpp | C++ | Source/HippoQOR/do_wrapper.cpp | mfaithfull/QOR | 0fa51789344da482e8c2726309265d56e7271971 | [
"BSL-1.0"
] | 9 | 2016-05-27T01:00:39.000Z | 2021-04-01T08:54:46.000Z | Source/HippoQOR/do_wrapper.cpp | mfaithfull/QOR | 0fa51789344da482e8c2726309265d56e7271971 | [
"BSL-1.0"
] | 1 | 2016-03-03T22:54:08.000Z | 2016-03-03T22:54:08.000Z | Source/HippoQOR/do_wrapper.cpp | mfaithfull/QOR | 0fa51789344da482e8c2726309265d56e7271971 | [
"BSL-1.0"
] | 4 | 2016-05-27T01:00:43.000Z | 2018-08-19T08:47:49.000Z | //do_wrapper.cpp
#include "HippoQOR/do_wrapper.h"
//--------------------------------------------------------------------------------
namespace nsUnitTesting
{
//--------------------------------------------------------------------------------
VirtualDestructable::~VirtualDestructable()
{
}
}//nsUnitTesting
| 22.571429 | 83 | 0.35443 | mfaithfull |
5496e5f2c2d9d4d1c0f06af597e04c1a5be7b8db | 30,774 | hpp | C++ | include/misc.hpp | harith-alsafi/statistic-model-cpp | 0883f208ff6dcdc6634b95e88b92e9097bd76475 | [
"Condor-1.1",
"Naumen",
"Xnet",
"X11",
"MS-PL"
] | null | null | null | include/misc.hpp | harith-alsafi/statistic-model-cpp | 0883f208ff6dcdc6634b95e88b92e9097bd76475 | [
"Condor-1.1",
"Naumen",
"Xnet",
"X11",
"MS-PL"
] | null | null | null | include/misc.hpp | harith-alsafi/statistic-model-cpp | 0883f208ff6dcdc6634b95e88b92e9097bd76475 | [
"Condor-1.1",
"Naumen",
"Xnet",
"X11",
"MS-PL"
] | null | null | null | #pragma once
#include <vector>
#include <string>
#include <iostream>
#include <fstream>
/**
* @file misc.hpp
* @author Harith Al-Safi
* @brief
* @version 0.1
* @date 2021-12-10
*
* @copyright Copyright (c) 2021
*
*/
#include <algorithm>
#include <numeric>
#include "graphs.hpp"
/**
* @brief Operator to ... | 30.052734 | 96 | 0.34136 | harith-alsafi |
549e0a60308d6fc7cd2622cc282f2236689aee00 | 2,950 | cc | C++ | DAPPLES.cc | hkktr/POLSKI-SPOJ | 59f7e0be99fca6532681c2ca01c8a7d97c6b5eed | [
"Unlicense"
] | 1 | 2021-02-01T11:21:56.000Z | 2021-02-01T11:21:56.000Z | DAPPLES.cc | hkktr/POLSKI-SPOJ | 59f7e0be99fca6532681c2ca01c8a7d97c6b5eed | [
"Unlicense"
] | null | null | null | DAPPLES.cc | hkktr/POLSKI-SPOJ | 59f7e0be99fca6532681c2ca01c8a7d97c6b5eed | [
"Unlicense"
] | 1 | 2022-01-28T15:25:45.000Z | 2022-01-28T15:25:45.000Z | // C++14 (gcc 8.3)
#include <cmath>
#include <iostream>
#include <limits>
#include <vector>
constexpr int kG{1'000};
long long CalculateTreeHeight(long long height, int max_velocity) {
return static_cast<long long>(std::pow(max_velocity, 2)) / (2 * kG) + height;
}
class Resident {
public:
Resident... | 28.365385 | 80 | 0.591525 | hkktr |
54a0b6e2a9f9e376b72d0ade5bee4b71640c8e76 | 3,711 | cpp | C++ | Src/Eni/Gpio/STM32/Gpio.cpp | vlad230596/Eni | 2bbd07b6e4e20b2c2a6ad6fdc9d948e6352eecb7 | [
"MIT"
] | null | null | null | Src/Eni/Gpio/STM32/Gpio.cpp | vlad230596/Eni | 2bbd07b6e4e20b2c2a6ad6fdc9d948e6352eecb7 | [
"MIT"
] | null | null | null | Src/Eni/Gpio/STM32/Gpio.cpp | vlad230596/Eni | 2bbd07b6e4e20b2c2a6ad6fdc9d948e6352eecb7 | [
"MIT"
] | null | null | null |
#include "EniConfig.h"
#if defined(ENI_GPIO) && defined(ENI_STM)
#include "../Gpio.h"
#include "GpioPin.h"
#if !IS_ENI_GPIO_SUPPORTED
#if defined(ENI_HAL_INCLUDE_FILE)
#include ENI_HAL_INCLUDE_FILE
#else
#error "HAL include file missing declaration"
#endif
#endif
namespace Eni {
void Gpio::applyConfig(const ... | 21.327586 | 126 | 0.70574 | vlad230596 |
54a9ea3d1cf584a8d1505c07faf72697055e4aa0 | 26,301 | cpp | C++ | Vault/Source/Vault/Private/SLoaderWindow.cpp | Unreal-Vault/Vault-Dev | 5232794276b238c700c9f4a5fc5bfc4082612f04 | [
"MIT"
] | 11 | 2020-11-04T13:51:19.000Z | 2022-02-24T23:11:44.000Z | Vault/Source/Vault/Private/SLoaderWindow.cpp | Unreal-Vault/Vault-Dev | 5232794276b238c700c9f4a5fc5bfc4082612f04 | [
"MIT"
] | null | null | null | Vault/Source/Vault/Private/SLoaderWindow.cpp | Unreal-Vault/Vault-Dev | 5232794276b238c700c9f4a5fc5bfc4082612f04 | [
"MIT"
] | 3 | 2022-01-23T10:14:56.000Z | 2022-03-30T13:35:10.000Z | // Copyright Daniel Orchard 2020
#include "SLoaderWindow.h"
#include "Vault.h"
#include "VaultSettings.h"
#include "MetadataOps.h"
#include "SAssetPackTile.h"
#include "VaultStyle.h"
#include "AssetPublisher.h"
#include "VaultTypes.h"
#include "ImageUtils.h"
#include "EditorStyleSet.h"
#include "PakFileUtilities.h"
... | 27.685263 | 222 | 0.705943 | Unreal-Vault |
54ab167058ce125f5fa40b23910f9857416f3ac2 | 276 | hpp | C++ | src/Time.hpp | matheuscscp/parallel-programming-final-project | 088934d2cf188e2953de773424e877d78933ae3f | [
"MIT"
] | 2 | 2019-05-26T17:13:23.000Z | 2019-06-09T05:48:57.000Z | src/Time.hpp | matheuscscp/delta-stepping | 088934d2cf188e2953de773424e877d78933ae3f | [
"MIT"
] | null | null | null | src/Time.hpp | matheuscscp/delta-stepping | 088934d2cf188e2953de773424e877d78933ae3f | [
"MIT"
] | null | null | null | /*
* Time.hpp
*
* Created on: Nov 20, 2014
* Author: matheus
*/
#ifndef TIME_HPP_
#define TIME_HPP_
#include <sys/time.h>
class Stopwatch {
private:
timeval i;
public:
Stopwatch();
void start();
float time() const;
};
#endif /* TIME_HPP_ */
| 12 | 28 | 0.594203 | matheuscscp |
54ab7ccc3f96c9c82b3d77678a96f0a80fb2ec06 | 51 | hpp | C++ | src/boost_metaparse_limit_sequence_size.hpp | miathedev/BoostForArduino | 919621dcd0c157094bed4df752b583ba6ea6409e | [
"BSL-1.0"
] | 10 | 2018-03-17T00:58:42.000Z | 2021-07-06T02:48:49.000Z | src/boost_metaparse_limit_sequence_size.hpp | miathedev/BoostForArduino | 919621dcd0c157094bed4df752b583ba6ea6409e | [
"BSL-1.0"
] | 2 | 2021-03-26T15:17:35.000Z | 2021-05-20T23:55:08.000Z | src/boost_metaparse_limit_sequence_size.hpp | miathedev/BoostForArduino | 919621dcd0c157094bed4df752b583ba6ea6409e | [
"BSL-1.0"
] | 4 | 2019-05-28T21:06:37.000Z | 2021-07-06T03:06:52.000Z | #include <boost/metaparse/limit_sequence_size.hpp>
| 25.5 | 50 | 0.843137 | miathedev |
54b018813113477897e3df2360859fed801e2c3f | 18,212 | cpp | C++ | source/tflite-model/trained_model_compiled.cpp | LetsOKdo/dance-activated-microbit | 812c14169f4b8c61acbfc1ff0a7aeed4546eda13 | [
"MIT"
] | 3 | 2021-07-12T05:38:00.000Z | 2022-03-02T14:55:23.000Z | source/tflite-model/trained_model_compiled.cpp | LetsOKdo/dance-activated-microbit | 812c14169f4b8c61acbfc1ff0a7aeed4546eda13 | [
"MIT"
] | null | null | null | source/tflite-model/trained_model_compiled.cpp | LetsOKdo/dance-activated-microbit | 812c14169f4b8c61acbfc1ff0a7aeed4546eda13 | [
"MIT"
] | null | null | null | /* Generated by Edge Impulse
*
* 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,... | 55.52439 | 180 | 0.652152 | LetsOKdo |
2a664c5cf5e630d6683e8571819067dd25e5e2cf | 1,044 | cpp | C++ | src/utils/chrono.cpp | Ymagis/EclairLooks | c04fb1af1160305fb1dbffb2ea92cc478cd70b31 | [
"BSD-3-Clause"
] | 9 | 2019-07-03T13:11:33.000Z | 2021-10-06T13:55:31.000Z | src/utils/chrono.cpp | Ymagis/EclairLooks | c04fb1af1160305fb1dbffb2ea92cc478cd70b31 | [
"BSD-3-Clause"
] | 1 | 2019-07-09T09:04:59.000Z | 2019-08-06T13:23:47.000Z | src/utils/chrono.cpp | Ymagis/EclairLooks | c04fb1af1160305fb1dbffb2ea92cc478cd70b31 | [
"BSD-3-Clause"
] | 4 | 2019-07-02T15:03:43.000Z | 2019-09-28T14:33:03.000Z | #include "chrono.h"
using namespace std::chrono;
Chrono::Chrono()
: _paused(false)
{
}
Chrono::~Chrono()
{
}
void Chrono::start()
{
// reset chrono if already running
_startTime = ClockT::now();
_current_duration = DurationT::zero();
}
void Chrono::pause()
{
if(!_paused)
{
_current_duration = ClockT::now... | 15.58209 | 69 | 0.675287 | Ymagis |
2a67473bd414db7b92dafbc301b5b719af1fa3eb | 1,372 | cpp | C++ | tps_base_link/src/tps_base_link.cpp | WRS-TNK/wrs_tnk_robot | 9cfaa5b1fab2c5a707ee434effe5a838b62424b7 | [
"MIT"
] | 1 | 2019-08-16T07:10:24.000Z | 2019-08-16T07:10:24.000Z | tps_base_link/src/tps_base_link.cpp | WRS-TNK/wrs_tnk_robot | 9cfaa5b1fab2c5a707ee434effe5a838b62424b7 | [
"MIT"
] | null | null | null | tps_base_link/src/tps_base_link.cpp | WRS-TNK/wrs_tnk_robot | 9cfaa5b1fab2c5a707ee434effe5a838b62424b7 | [
"MIT"
] | null | null | null | #include <ros/ros.h>
#include <tf2/LinearMath/Vector3.h>
#include <tf2/LinearMath/Quaternion.h>
#include <tf2/LinearMath/Matrix3x3.h>
#include <tf2_ros/transform_listener.h>
#include <geometry_msgs/TransformStamped.h>
#include <tf2_ros/transform_broadcaster.h>
int main(int argc, char** argv)
{
ros::init(argc, argv, ... | 24.945455 | 74 | 0.710641 | WRS-TNK |
2a716f151aa21b1f2c44232d9976c37867ed224e | 981 | cpp | C++ | USACO/2014/feb/hopscotch_bronze.cpp | nalinbhardwaj/olympiad | 6b640d8cef2fa16fb4e9776f8416575519357edf | [
"MIT"
] | 1 | 2018-12-14T07:51:26.000Z | 2018-12-14T07:51:26.000Z | USACO/2014/feb/hopscotch_bronze.cpp | nalinbhardwaj/olympiad | 6b640d8cef2fa16fb4e9776f8416575519357edf | [
"MIT"
] | null | null | null | USACO/2014/feb/hopscotch_bronze.cpp | nalinbhardwaj/olympiad | 6b640d8cef2fa16fb4e9776f8416575519357edf | [
"MIT"
] | 1 | 2019-06-23T10:34:19.000Z | 2019-06-23T10:34:19.000Z | /*
PROG: COW
LANG: C++
ID: nibnalin
*/
//USACO February Contest
#include <fstream>
#include <vector>
#include <climits>
using namespace std;
vector<vector<int> > grid;
vector< vector<long> > memtable;
int ans(long x, long y) {
if(memtable[x][y] == INT_MIN)
{
long paths = 0;
for(long i = (x-1);i >= 0;i--)
{... | 16.081967 | 50 | 0.540265 | nalinbhardwaj |
2a75e213076961ba296d5a5866f686977fed0115 | 1,045 | hpp | C++ | dart/utils/amc/ReadSkeleton.hpp | jyf588/nimblephysics | 6c09228f0abcf7aa3526a8dd65cd2541aff32c4a | [
"BSD-2-Clause"
] | 2 | 2021-09-30T06:23:29.000Z | 2022-03-09T09:59:09.000Z | dart/utils/amc/ReadSkeleton.hpp | jyf588/nimblephysics | 6c09228f0abcf7aa3526a8dd65cd2541aff32c4a | [
"BSD-2-Clause"
] | null | null | null | dart/utils/amc/ReadSkeleton.hpp | jyf588/nimblephysics | 6c09228f0abcf7aa3526a8dd65cd2541aff32c4a | [
"BSD-2-Clause"
] | 1 | 2021-08-20T13:56:14.000Z | 2021-08-20T13:56:14.000Z | #ifndef AMC_READSKELETON_HPP
#define AMC_READSKELETON_HPP
#include <string>
#include <vector>
#include "Skeleton.hpp"
using std::string;
using std::vector;
bool ReadSkeleton(string filename, Library::Skeleton& into);
bool ReadSkeletonV(string filename, Library::Skeleton& into);
// read 'amc' file format (automati... | 30.735294 | 77 | 0.747368 | jyf588 |
2a760ab3d73648d5df9057572aa0c23fb98e8d87 | 9,193 | cpp | C++ | src/storage/http/StorageHttpDownloadHandler.cpp | xuguruogu/nebula | 50af1ae440415f89cc98b2b2567b53771310ac63 | [
"Apache-2.0"
] | null | null | null | src/storage/http/StorageHttpDownloadHandler.cpp | xuguruogu/nebula | 50af1ae440415f89cc98b2b2567b53771310ac63 | [
"Apache-2.0"
] | null | null | null | src/storage/http/StorageHttpDownloadHandler.cpp | xuguruogu/nebula | 50af1ae440415f89cc98b2b2567b53771310ac63 | [
"Apache-2.0"
] | null | null | null | /* Copyright (c) 2019 vesoft inc. All rights reserved.
*
* This source code is licensed under Apache 2.0 License,
* attached with Common Clause Condition 1.0, found in the LICENSES directory.
*/
#include "storage/http/StorageHttpDownloadHandler.h"
#include "webservice/Common.h"
#include "process/ProcessUtils.h"
#i... | 34.82197 | 94 | 0.589579 | xuguruogu |
2a76f8f4ffcc98ceb57bede3502eab783f260a31 | 562 | hh | C++ | mimosa/git/commit.hh | abique/mimosa | 42c0041b570b55a24c606a7da79c70c9933c07d4 | [
"MIT"
] | 24 | 2015-01-19T16:38:24.000Z | 2022-01-15T01:25:30.000Z | mimosa/git/commit.hh | abique/mimosa | 42c0041b570b55a24c606a7da79c70c9933c07d4 | [
"MIT"
] | 2 | 2017-01-07T10:47:06.000Z | 2018-01-16T07:19:57.000Z | mimosa/git/commit.hh | abique/mimosa | 42c0041b570b55a24c606a7da79c70c9933c07d4 | [
"MIT"
] | 7 | 2015-01-19T16:38:31.000Z | 2020-12-12T19:10:30.000Z | #pragma once
# include <git2.h>
# include "../mimosa/mimosa/non-copyable.hh"
namespace mimosa
{
namespace git
{
class Commit : public NonCopyable
{
public:
inline Commit() : commit_(nullptr) {}
inline Commit(git_repository *repo, const git_oid *id) {
git_commit_lookup(&commit_, re... | 19.37931 | 62 | 0.617438 | abique |
2a7a17eb32aa76f1824c22d26b9978c1c654c6b4 | 1,152 | cpp | C++ | algospot/starforce/main.cpp | seirion/code | 3b8bf79764107255185061cec33decbc2235d03a | [
"Apache-2.0"
] | 13 | 2015-06-07T09:26:26.000Z | 2019-05-01T13:23:38.000Z | algospot/starforce/main.cpp | seirion/code | 3b8bf79764107255185061cec33decbc2235d03a | [
"Apache-2.0"
] | null | null | null | algospot/starforce/main.cpp | seirion/code | 3b8bf79764107255185061cec33decbc2235d03a | [
"Apache-2.0"
] | 4 | 2016-03-05T06:21:05.000Z | 2017-02-17T15:34:18.000Z | // http://algospot.com/judge/problem/read/STARFORCE
#include <cstdio>
#include <iostream>
using namespace std;
int n, m, s, best;
int in[200];
int pre[200][200]; // pre processed : or
void input() {
scanf("%d %d", &n, &m);
int i, j;
for (i = 0; i < n; i++) {
scanf("%d", &in[i]);
}
for (i... | 19.525424 | 53 | 0.454861 | seirion |
2a84f22684d7b564d74896a34f15a6aa02daef67 | 4,930 | cpp | C++ | Libraries/libvitaboy/vbparse.cpp | daddesio/Niotso | 66ce47351427fa37c683f61003e0d3aa6b84e4f7 | [
"ISC"
] | 10 | 2017-04-28T08:09:25.000Z | 2022-03-28T11:08:18.000Z | Libraries/libvitaboy/vbparse.cpp | Fatbag/Niotso | 66ce47351427fa37c683f61003e0d3aa6b84e4f7 | [
"ISC"
] | null | null | null | Libraries/libvitaboy/vbparse.cpp | Fatbag/Niotso | 66ce47351427fa37c683f61003e0d3aa6b84e4f7 | [
"ISC"
] | 4 | 2015-06-23T11:06:34.000Z | 2017-01-17T03:50:08.000Z | /*
libvitaboy - Open source OpenGL TSO character animation library
vbparse.cpp - Copyright (c) 2012 Niotso Project <http://niotso.org/>
Author(s): Fatbag <X-Fi6@phppoll.org>
Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted, provi... | 30.8125 | 76 | 0.558621 | daddesio |
2a8c25a01728f4ae28a96fee151383affdcce969 | 6,100 | cpp | C++ | TricksterEngine/src/Rendering/Text/Internal/Font.cpp | Trickje/Trickster | ab73f15ec1b45676a20793ad6d4e9acfc2ba944e | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | TricksterEngine/src/Rendering/Text/Internal/Font.cpp | Trickje/Trickster | ab73f15ec1b45676a20793ad6d4e9acfc2ba944e | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | TricksterEngine/src/Rendering/Text/Internal/Font.cpp | Trickje/Trickster | ab73f15ec1b45676a20793ad6d4e9acfc2ba944e | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | #include "pch.h"
#include "Rendering/Text/Internal/Font.h"
#include "Core/Application.h"
#include "Rendering/ShaderManager.h"
#include "Rendering/Shader.h"
#include "Rendering/Window.h"
#include <glm/gtc/type_ptr.hpp>
using namespace TE;
#ifdef TRICKSTER_OPENGL
void Font::Initialize()
{
// configure VAO/VBO ... | 28.240741 | 187 | 0.62623 | Trickje |
2a90974d03cbd0acc93682c3cb5ca024d5f5cc92 | 3,348 | cc | C++ | src/statement.cc | xukl/BASIC-Compiler | 3b0f752df5b9301aa116811729e362bfeaa05e58 | [
"MIT"
] | null | null | null | src/statement.cc | xukl/BASIC-Compiler | 3b0f752df5b9301aa116811729e362bfeaa05e58 | [
"MIT"
] | null | null | null | src/statement.cc | xukl/BASIC-Compiler | 3b0f752df5b9301aa116811729e362bfeaa05e58 | [
"MIT"
] | null | null | null | #include "statement.hpp"
#include <sstream>
#include <stack>
#include <memory>
#include <utility>
#include <typeinfo>
namespace statement
{
std::ostream &operator<< (std::ostream &os, const statement &x)
{
x.print(os);
return os;
}
std::ostream &operator<< (std::ostream &os, const assignment &x)
{
x.print(os);
retu... | 28.615385 | 78 | 0.660992 | xukl |
2a914457d6f2022d1e593143d3b2c188989b1327 | 5,715 | cc | C++ | elements/analysis/aggcountervector.cc | timmytimj/fastclick | 260dfa7285e5fff3c916b8272249d6d393e61179 | [
"BSD-3-Clause-Clear"
] | 129 | 2015-10-08T14:38:35.000Z | 2022-03-06T14:54:44.000Z | elements/analysis/aggcountervector.cc | nic-bench/fastclick | 2812f0684050cec07e08f30d643ed121871cf25d | [
"BSD-3-Clause-Clear"
] | 241 | 2016-02-17T16:17:58.000Z | 2022-03-15T09:08:33.000Z | elements/analysis/aggcountervector.cc | nic-bench/fastclick | 2812f0684050cec07e08f30d643ed121871cf25d | [
"BSD-3-Clause-Clear"
] | 61 | 2015-12-17T01:46:58.000Z | 2022-02-07T22:25:19.000Z | /*
* aggcountervector.{cc,hh} -- count packets/bytes with given aggregate
*
* 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, subject to the conditions
* listed in th... | 22.951807 | 106 | 0.665267 | timmytimj |
2a9962ad8459dd796b9b7bb9f7d2e9a7ff9d9fc4 | 9,610 | cpp | C++ | engine/map/map.cpp | fcarreiro/genesis | 48b5c3bac888d999fb1ae17f1a864b59e2c85bc8 | [
"MIT"
] | null | null | null | engine/map/map.cpp | fcarreiro/genesis | 48b5c3bac888d999fb1ae17f1a864b59e2c85bc8 | [
"MIT"
] | null | null | null | engine/map/map.cpp | fcarreiro/genesis | 48b5c3bac888d999fb1ae17f1a864b59e2c85bc8 | [
"MIT"
] | null | null | null | #include "../precompiled/stdafx.h"
#include "../engine/base.h"
#include "../../common/utility/ext_xml.h"
#include "../../common/utility/ext_util.h"
//////////////////////////////////////////////////////////////////////////
// CMap default constructor & destructor
////////////////////////////////////////////////... | 25.695187 | 85 | 0.564828 | fcarreiro |
2a9aafba3c5d61dd0f6dbd47296f721c6961ab66 | 1,844 | cpp | C++ | Interactive/InpaintingIterationRecord.cpp | jingtangliao/ff | d308fe62045e241a4822bb855df97ee087420d9b | [
"Apache-2.0"
] | 39 | 2015-01-01T07:59:51.000Z | 2021-10-01T18:11:46.000Z | Interactive/InpaintingIterationRecord.cpp | jingtangliao/ff | d308fe62045e241a4822bb855df97ee087420d9b | [
"Apache-2.0"
] | 1 | 2019-04-24T09:56:15.000Z | 2019-04-24T14:45:46.000Z | Interactive/InpaintingIterationRecord.cpp | jingtangliao/ff | d308fe62045e241a4822bb855df97ee087420d9b | [
"Apache-2.0"
] | 18 | 2015-01-11T15:10:23.000Z | 2022-02-24T20:02:10.000Z | /*=========================================================================
*
* Copyright David Doria 2011 daviddoria@gmail.com
*
* 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
*
*... | 30.229508 | 97 | 0.677332 | jingtangliao |
2a9aeaa398ef199bf8d61594d1cedc358518551e | 211 | hpp | C++ | Source/panels/spell_book.hpp | stefanmielke/devilutionX | 074f191be80db73b1158dd137f7bee4c767e48ce | [
"Unlicense"
] | 2 | 2022-01-14T06:10:31.000Z | 2022-02-28T23:30:26.000Z | Source/panels/spell_book.hpp | stefanmielke/devilutionX | 074f191be80db73b1158dd137f7bee4c767e48ce | [
"Unlicense"
] | 1 | 2022-01-31T07:44:04.000Z | 2022-01-31T07:44:04.000Z | Source/panels/spell_book.hpp | stefanmielke/devilutionX | 074f191be80db73b1158dd137f7bee4c767e48ce | [
"Unlicense"
] | 1 | 2021-10-31T01:32:43.000Z | 2021-10-31T01:32:43.000Z | #pragma once
#include "engine/surface.hpp"
namespace devilution {
void InitSpellBook();
void FreeSpellBook();
void CheckSBook();
void DrawSpellBook(const Surface &out);
} // namespace devilution
| 16.230769 | 40 | 0.71564 | stefanmielke |
2aa173d69c8bd5fad30c1658343077bad18134fb | 5,215 | cpp | C++ | src/dtkWidgets/dtkWidgetsTagCloudView.cpp | eti-nne/dtk | b5095c7a181e7497391a6a1fa0bb37e71dfa4b56 | [
"BSD-3-Clause"
] | null | null | null | src/dtkWidgets/dtkWidgetsTagCloudView.cpp | eti-nne/dtk | b5095c7a181e7497391a6a1fa0bb37e71dfa4b56 | [
"BSD-3-Clause"
] | null | null | null | src/dtkWidgets/dtkWidgetsTagCloudView.cpp | eti-nne/dtk | b5095c7a181e7497391a6a1fa0bb37e71dfa4b56 | [
"BSD-3-Clause"
] | null | null | null | /* dtkWidgetsTagCloudView.cpp ---
*
* Author: Julien Wintz
* Created: Mon Apr 15 14:39:34 2013 (+0200)
* Version:
* Last-Updated: Mon Apr 15 14:44:56 2013 (+0200)
* By: Julien Wintz
* Update #: 7
*/
/* Change Log:
*
*/
#include "dtkWidgetsTagCloudDesc.h"
#include "dtkWidgetsTagCloudList.h"
... | 22.286325 | 126 | 0.635858 | eti-nne |
2aa2010afd6be7798a9d1041d28c63f6924839fd | 1,777 | hpp | C++ | include/veriblock/entities/popdata.hpp | overcookedpanda/alt-integration-cpp | 7932e79a77d9514ca0e0354636e77fba1845d707 | [
"MIT"
] | null | null | null | include/veriblock/entities/popdata.hpp | overcookedpanda/alt-integration-cpp | 7932e79a77d9514ca0e0354636e77fba1845d707 | [
"MIT"
] | null | null | null | include/veriblock/entities/popdata.hpp | overcookedpanda/alt-integration-cpp | 7932e79a77d9514ca0e0354636e77fba1845d707 | [
"MIT"
] | null | null | null | // Copyright (c) 2019-2020 Xenios SEZC
// https://www.veriblock.org
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#ifndef ALT_INTEGRATION_INCLUDE_VERIBLOCK_ENTITIES_ALT_POP_TRANSACTION_HPP_
#define ALT_INTEGRATION_INCLUDE_VERI... | 25.385714 | 77 | 0.720878 | overcookedpanda |
2aa9c6bd380b1487f674bc761d7efc628e018703 | 7,631 | cpp | C++ | UnitTests/CommandBuffer/src/CommandBuffer.cpp | Gpinchon/OCRA | 341bb07facc616f1f8a27350054d1e86f022d7c6 | [
"Apache-2.0"
] | null | null | null | UnitTests/CommandBuffer/src/CommandBuffer.cpp | Gpinchon/OCRA | 341bb07facc616f1f8a27350054d1e86f022d7c6 | [
"Apache-2.0"
] | null | null | null | UnitTests/CommandBuffer/src/CommandBuffer.cpp | Gpinchon/OCRA | 341bb07facc616f1f8a27350054d1e86f022d7c6 | [
"Apache-2.0"
] | null | null | null | #include <Instance.hpp>
#include <PhysicalDevice.hpp>
#include <Device.hpp>
#include <Queue/Queue.hpp>
#include <Queue/Fence.hpp>
#include <Queue/Semaphore.hpp>
#include <Command/Pool.hpp>
#include <Command/Buffer.hpp>
#include <Memory.hpp>
#include <Buffer.hpp>
#include <Common.hpp>
#include <future>
#include <iostr... | 42.394444 | 185 | 0.653781 | Gpinchon |
2aada408721b2630a046925c15f9e820d8849fe7 | 2,813 | hpp | C++ | PlanetaMatchMakerServer/library/minimal_serializer/type_traits.hpp | InstytutXR/PlanetaMatchMaker | 4bf7503c031aea467c191c3a0d14c6dd58354f99 | [
"MIT"
] | 6 | 2019-08-15T09:48:55.000Z | 2021-07-25T14:40:59.000Z | PlanetaMatchMakerServer/library/minimal_serializer/type_traits.hpp | InstytutXR/PlanetaMatchMaker | 4bf7503c031aea467c191c3a0d14c6dd58354f99 | [
"MIT"
] | 43 | 2019-12-25T14:54:52.000Z | 2022-02-24T17:22:48.000Z | PlanetaMatchMakerServer/library/minimal_serializer/type_traits.hpp | InstytutXR/PlanetaMatchMaker | 4bf7503c031aea467c191c3a0d14c6dd58354f99 | [
"MIT"
] | 2 | 2020-05-06T20:14:44.000Z | 2020-06-02T21:21:10.000Z | /*
The MIT License (MIT)
Copyright (c) 2019 Cdec
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,... | 40.768116 | 460 | 0.766086 | InstytutXR |
2aaf1393cc24731b2409395aefa6e0433686823d | 15,716 | cpp | C++ | mergeBathy/Error_Estimator/Bathy_Grid.cpp | Sammie-Jo/MergeBathy_Repos-MergeBathy_CPP | 9996f5ee40e40e892ce5eb77dc4bb67930af4005 | [
"CC0-1.0"
] | 4 | 2017-05-04T15:50:48.000Z | 2020-07-30T03:52:07.000Z | mergeBathy/Error_Estimator/Bathy_Grid.cpp | Sammie-Jo/MergeBathy_Repos-MergeBathy_CPP | 9996f5ee40e40e892ce5eb77dc4bb67930af4005 | [
"CC0-1.0"
] | null | null | null | mergeBathy/Error_Estimator/Bathy_Grid.cpp | Sammie-Jo/MergeBathy_Repos-MergeBathy_CPP | 9996f5ee40e40e892ce5eb77dc4bb67930af4005 | [
"CC0-1.0"
] | 2 | 2017-01-11T09:53:26.000Z | 2020-07-30T03:52:09.000Z | /**********************************************************************
* CC0 License
**********************************************************************
* MergeBathy - Tool to combine one or more bathymetric data files onto a single input grid.
* Written in 2015 by Samantha J.Zambo(samantha.zambo@gmail.com) while e... | 31.62173 | 316 | 0.65042 | Sammie-Jo |
2ababea0ef23519b966cf9c4d85576fa04565f94 | 3,055 | cpp | C++ | projects/InjectDLL/features/launch_no_deceleration.cpp | Mawex/wotw-client | 19cd13a5cfab0b504d5f1aa3da6eb11e631bd9ca | [
"MIT"
] | null | null | null | projects/InjectDLL/features/launch_no_deceleration.cpp | Mawex/wotw-client | 19cd13a5cfab0b504d5f1aa3da6eb11e631bd9ca | [
"MIT"
] | null | null | null | projects/InjectDLL/features/launch_no_deceleration.cpp | Mawex/wotw-client | 19cd13a5cfab0b504d5f1aa3da6eb11e631bd9ca | [
"MIT"
] | null | null | null | #include <dll_main.h>
#include <Il2CppModLoader/il2cpp_helpers.h>
#include <Il2CppModLoader/interception_macros.h>
using namespace modloader;
INJECT_C_DLLEXPORT bool in_menu();
namespace
{
constexpr float NO_AIR_DECELERATION_DURATION = 0.2f;
constexpr float NO_AIR_DECELERATION_RESET_DURATION = 0.2f;
flo... | 39.166667 | 125 | 0.656301 | Mawex |
2abeb9fd1d1143367447899d45b6634125850eb3 | 903 | hpp | C++ | server/src/static_controller.hpp | R0nd/beefweb | d61e03eef97e089f36847ac34bba4ec59c1bb5cd | [
"MIT"
] | 148 | 2017-08-25T13:32:05.000Z | 2022-03-17T18:40:49.000Z | server/src/static_controller.hpp | R0nd/beefweb | d61e03eef97e089f36847ac34bba4ec59c1bb5cd | [
"MIT"
] | 160 | 2017-08-16T19:58:53.000Z | 2022-02-26T09:57:38.000Z | server/src/static_controller.hpp | R0nd/beefweb | d61e03eef97e089f36847ac34bba4ec59c1bb5cd | [
"MIT"
] | 24 | 2018-05-23T18:59:47.000Z | 2022-03-23T17:25:01.000Z | #pragma once
#include "controller.hpp"
#include "settings.hpp"
namespace msrv {
class Router;
class ContentTypeMap;
class WorkQueue;
class StaticController : public ControllerBase
{
public:
StaticController(
Request* request,
const Path& targetDir,
const ContentTypeMap& contentTypes);
... | 20.066667 | 46 | 0.679956 | R0nd |
2abfff4018ad1033983ed6c1d115a1c39441d92c | 948 | cpp | C++ | lib/matrix/MatrixOperators.cpp | frndmg/simplex-method | 0fe509d43ac794344b5d95f7e4faacd0dd444d56 | [
"MIT"
] | 2 | 2019-11-25T20:54:56.000Z | 2019-11-25T20:55:20.000Z | lib/matrix/MatrixOperators.cpp | frndmg/simplex-method | 0fe509d43ac794344b5d95f7e4faacd0dd444d56 | [
"MIT"
] | null | null | null | lib/matrix/MatrixOperators.cpp | frndmg/simplex-method | 0fe509d43ac794344b5d95f7e4faacd0dd444d56 | [
"MIT"
] | 1 | 2019-11-25T23:14:18.000Z | 2019-11-25T23:14:18.000Z | #include "Matrix.hpp"
Matrix Matrix::operator+ () const {
return *this;
}
Matrix Matrix::operator- () const {
return operator*(-1.);
}
Matrix Matrix::operator+ (const real_t &scalar) const {
Matrix A = *this;
for(size_t y = 0; y < A.Height(); ++y)
A[y] = A[y] + scalar;
return A;
}
Matrix Matrix::operator- ... | 19.346939 | 67 | 0.619198 | frndmg |
2ac265cf382f478e608bd8422b037015ab3bcd7e | 1,949 | hpp | C++ | include/crab/cfg/cfg_operators.hpp | LinerSu/crab | 8f3516f4b4765f4a093bb3c3a94ac2daa174130c | [
"Apache-2.0"
] | null | null | null | include/crab/cfg/cfg_operators.hpp | LinerSu/crab | 8f3516f4b4765f4a093bb3c3a94ac2daa174130c | [
"Apache-2.0"
] | null | null | null | include/crab/cfg/cfg_operators.hpp | LinerSu/crab | 8f3516f4b4765f4a093bb3c3a94ac2daa174130c | [
"Apache-2.0"
] | null | null | null | #pragma once
#include <crab/support/debug.hpp>
#include <crab/support/os.hpp>
namespace crab {
namespace cfg {
// To group together statements over integers or real
typedef enum {
BINOP_ADD,
BINOP_SUB,
BINOP_MUL,
BINOP_SDIV,
BINOP_UDIV,
BINOP_SREM,
BINOP_UREM,
BINOP_AND,
BINOP_OR,
BINOP_XOR,
BI... | 17.247788 | 80 | 0.601847 | LinerSu |
2ac9d9b284c80fb4fcb117ac935242dc593aea35 | 1,825 | hpp | C++ | src/include/Geometry/HalfedgeMeshBuilder/MeshBuilderBase.hpp | timow-gh/Geometry | 6b46b107355cd76fbb9c3a86db23dc891e868a3b | [
"Apache-2.0"
] | null | null | null | src/include/Geometry/HalfedgeMeshBuilder/MeshBuilderBase.hpp | timow-gh/Geometry | 6b46b107355cd76fbb9c3a86db23dc891e868a3b | [
"Apache-2.0"
] | null | null | null | src/include/Geometry/HalfedgeMeshBuilder/MeshBuilderBase.hpp | timow-gh/Geometry | 6b46b107355cd76fbb9c3a86db23dc891e868a3b | [
"Apache-2.0"
] | null | null | null | #ifndef GEOMETRY_MESHBUILDERBASE_HPP
#define GEOMETRY_MESHBUILDERBASE_HPP
#include <Core/Types/TVector.hpp>
#include <Geometry/HalfedgeMesh/HalfedgeMesh.hpp>
#include <Geometry/HalfedgeMeshBuilder/MeshTriangleAdder.hpp>
#include <LinAl/LinearAlgebra.hpp>
namespace Geometry
{
template <typename T, typename Derived>
c... | 35.096154 | 89 | 0.564384 | timow-gh |
2acdb257016405c6b7cea49c82cc62ea4fa18a86 | 6,326 | cpp | C++ | Lab02_03c.cpp | xinyizou/school-projects | 10adc544faf45446ef99d8e1a74acbe16c88c7b5 | [
"MIT"
] | 1 | 2020-01-21T00:46:48.000Z | 2020-01-21T00:46:48.000Z | Lab02_03c.cpp | xinyizou/school-projects | 10adc544faf45446ef99d8e1a74acbe16c88c7b5 | [
"MIT"
] | null | null | null | Lab02_03c.cpp | xinyizou/school-projects | 10adc544faf45446ef99d8e1a74acbe16c88c7b5 | [
"MIT"
] | null | null | null | //
// Student name: Xinyi Zou
// Student number: 20765197
//
// SYDE 121 Lab: Lab Assignment #1 Exercise #3
// Filename: lab02_03c
//
// I hereby declare that this code, submitted for credit for the course
// SYDE121, is a product of my own efforts. This coded solution has
// not been plagiarized from other so... | 37.654762 | 188 | 0.659026 | xinyizou |
2ad5e71ed708caeab1e5aa79f61f9bf9fd376894 | 1,802 | hpp | C++ | misc/bit_operation.hpp | hly1204/library | b62c47a8f20623c1f1edd892b980714e8587f40e | [
"Unlicense"
] | 7 | 2021-07-20T15:25:00.000Z | 2022-03-13T11:58:25.000Z | misc/bit_operation.hpp | hly1204/library | b62c47a8f20623c1f1edd892b980714e8587f40e | [
"Unlicense"
] | 10 | 2021-03-11T16:08:22.000Z | 2022-03-13T08:40:36.000Z | misc/bit_operation.hpp | hly1204/library | b62c47a8f20623c1f1edd892b980714e8587f40e | [
"Unlicense"
] | null | null | null | #ifndef BIT_OPERATION_HEADER_HPP
#define BIT_OPERATION_HEADER_HPP
/**
* @brief bit operations
*
*/
#include <cassert>
#include <cstdint>
#include "deBruijn_sequence.hpp"
namespace lib {
/**
* @brief 在二进制最高的 1 后面填充满 1
* @param x
* @return std::uint32_t
*/
std::uint32_t fill_one_after_msb(... | 18.57732 | 82 | 0.546615 | hly1204 |
2ad5fbbb2684206d87b47e0f76ddc9b0da67b001 | 2,845 | cpp | C++ | godgame2/Sphere.cpp | magnificus/godgame | cafb36830263d95516eb014f432319cabf50bda7 | [
"Unlicense"
] | 5 | 2017-10-31T17:36:13.000Z | 2021-11-05T21:01:04.000Z | godgame2/Sphere.cpp | magnificus/godgame | cafb36830263d95516eb014f432319cabf50bda7 | [
"Unlicense"
] | null | null | null | godgame2/Sphere.cpp | magnificus/godgame | cafb36830263d95516eb014f432319cabf50bda7 | [
"Unlicense"
] | null | null | null | #include "Sphere.h"
#include "math.h"
#include <map>
#include <array>
struct Triangle
{
unsigned int vertex[3];
};
using TriangleList = std::vector<Triangle>;
using VertexList = std::vector<glm::vec3>;
using NormalList = std::vector<glm::vec3>;
#define Index unsigned int
namespace icosahedron
{
co... | 23.708333 | 59 | 0.599297 | magnificus |
2adb800c632a7ae555e16819d86333554fafdb11 | 5,691 | cpp | C++ | PostLib/GMeshImport.cpp | chunkeey/FEBioStudio | f342d4ac2bc3581db792373c4265454109af92b3 | [
"MIT"
] | 27 | 2020-06-25T06:34:52.000Z | 2022-03-11T08:58:57.000Z | PostLib/GMeshImport.cpp | chunkeey/FEBioStudio | f342d4ac2bc3581db792373c4265454109af92b3 | [
"MIT"
] | 42 | 2020-06-15T18:40:57.000Z | 2022-03-24T05:38:54.000Z | PostLib/GMeshImport.cpp | chunkeey/FEBioStudio | f342d4ac2bc3581db792373c4265454109af92b3 | [
"MIT"
] | 12 | 2020-06-27T13:58:57.000Z | 2022-03-24T05:39:10.000Z | /*This file is part of the FEBio Studio source code and is licensed under the MIT license
listed below.
See Copyright-FEBio-Studio.txt for details.
Copyright (c) 2020 University of Utah, The Trustees of Columbia University in
the City of New York, and others.
Permission is hereby granted, free of charge, to any per... | 25.070485 | 99 | 0.628712 | chunkeey |
2adca25a6559cdf343d960f039d6d2b4feb0ddfa | 4,219 | cpp | C++ | SDK/PUBG_SoundOptionWidget_functions.cpp | realrespecter/PUBG-FULL-SDK | 5e2b0f103c74c95d2329c4c9dfbfab48aa0da737 | [
"MIT"
] | 7 | 2019-03-06T11:04:52.000Z | 2019-07-10T20:00:51.000Z | SDK/PUBG_SoundOptionWidget_functions.cpp | realrespecter/PUBG-FULL-SDK | 5e2b0f103c74c95d2329c4c9dfbfab48aa0da737 | [
"MIT"
] | null | null | null | SDK/PUBG_SoundOptionWidget_functions.cpp | realrespecter/PUBG-FULL-SDK | 5e2b0f103c74c95d2329c4c9dfbfab48aa0da737 | [
"MIT"
] | 10 | 2019-03-06T11:53:46.000Z | 2021-02-18T14:01:11.000Z | // PUBG FULL SDK - Generated By Respecter (5.3.4.11 [06/03/2019]) SDK
#ifdef _MSC_VER
#pragma pack(push, 0x8)
#endif
#include "PUBG_SoundOptionWidget_parameters.hpp"
namespace SDK
{
//---------------------------------------------------------------------------
//Functions
//------------------------------------------... | 24.672515 | 134 | 0.726475 | realrespecter |
2ae8821c883a13bc5a2b3fae0f8a9d88ca472eea | 808 | hh | C++ | include/muensterTPCRunAction.hh | l-althueser/MuensterTPC-Simulation | 7a086ab330cd5905f3c78c324936cdc36951e9bd | [
"BSD-2-Clause"
] | null | null | null | include/muensterTPCRunAction.hh | l-althueser/MuensterTPC-Simulation | 7a086ab330cd5905f3c78c324936cdc36951e9bd | [
"BSD-2-Clause"
] | 2 | 2017-01-24T21:18:46.000Z | 2017-01-27T13:24:48.000Z | include/muensterTPCRunAction.hh | 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
* @date 2015-04-14
*
* @update 2015-11-02 - added comments
*
* @comment
******************************************************************/
#ifndef __muenster... | 21.837838 | 70 | 0.65099 | l-althueser |
2aeaf60025deb5b258232b5f76df3ed43b233b3d | 5,403 | cpp | C++ | 2_Package/imu/dev_bmp085.cpp | HANDS-FREE/OpenRE | fbd4cfa7a12bb43679db23422e79da69aaef1fce | [
"BSD-2-Clause"
] | 56 | 2016-08-13T11:26:51.000Z | 2022-02-17T08:45:40.000Z | 2_Package/imu/dev_bmp085.cpp | HANDS-FREE/OpenRE | fbd4cfa7a12bb43679db23422e79da69aaef1fce | [
"BSD-2-Clause"
] | 3 | 2017-03-04T11:55:26.000Z | 2018-05-03T08:34:52.000Z | 2_Package/imu/dev_bmp085.cpp | HANDS-FREE/OpenRE | fbd4cfa7a12bb43679db23422e79da69aaef1fce | [
"BSD-2-Clause"
] | 51 | 2016-08-15T14:00:44.000Z | 2022-02-17T08:45:41.000Z | /***********************************************************************************************************************
* Copyright (c) Hands Free Team. All rights reserved.
* Contact: QQ Exchange Group -- 521037187
*
* LICENSING TERMS:
* The Hands Free is licensed generally under a permissive 3-clause BSD licen... | 29.850829 | 121 | 0.446604 | HANDS-FREE |
2af1887a721bdeb858258afbb3e4d04e60fb56d6 | 2,977 | cpp | C++ | TDEngine2/source/core/CConfigFileEngineCoreBuilder.cpp | bnoazx005/TDEngine2 | 93ebfecf8af791ff5ecd4f57525a6935e34cd05c | [
"Apache-2.0"
] | 1 | 2019-07-15T01:14:15.000Z | 2019-07-15T01:14:15.000Z | TDEngine2/source/core/CConfigFileEngineCoreBuilder.cpp | bnoazx005/TDEngine2 | 93ebfecf8af791ff5ecd4f57525a6935e34cd05c | [
"Apache-2.0"
] | 76 | 2018-10-27T16:59:36.000Z | 2022-03-30T17:40:39.000Z | TDEngine2/source/core/CConfigFileEngineCoreBuilder.cpp | bnoazx005/TDEngine2 | 93ebfecf8af791ff5ecd4f57525a6935e34cd05c | [
"Apache-2.0"
] | 1 | 2019-07-29T02:02:08.000Z | 2019-07-29T02:02:08.000Z | #include "../../include/core/CConfigFileEngineCoreBuilder.h"
#include "../../include/core/IFileSystem.h"
#include "../../include/platform/CConfigFileReader.h"
#include <memory>
#include <thread>
#include <functional>
namespace TDEngine2
{
CConfigFileEngineCoreBuilder::CConfigFileEngineCoreBuilder() :
CBaseEngineCo... | 32.358696 | 175 | 0.762177 | bnoazx005 |
2af323f0acf239b7f37307f9ff8a65783bd92f7a | 710 | cpp | C++ | Codechef/VisitTheCities.cpp | MartinAparicioPons/Competitive-Programming | 58151df0ed08a5e4e605abefdd69fef1ecc10fa0 | [
"Apache-2.0"
] | 1 | 2019-09-29T03:58:35.000Z | 2019-09-29T03:58:35.000Z | Codechef/VisitTheCities.cpp | MartinAparicioPons/Competitive-Programming | 58151df0ed08a5e4e605abefdd69fef1ecc10fa0 | [
"Apache-2.0"
] | null | null | null | Codechef/VisitTheCities.cpp | MartinAparicioPons/Competitive-Programming | 58151df0ed08a5e4e605abefdd69fef1ecc10fa0 | [
"Apache-2.0"
] | null | null | null | #include <bits/stdc++.h>
using namespace std;
const int MAXN = 10010;
int n, P, Pi;
vector<int> E[MAXN];
bool vis[MAXN];
void dfs(int u, int p){
if(vis[u]) return;
vis[u] = true;
if(p > P){
P = p;
Pi = u;
}
for(int i = 0; i < E[u].size(); i++){
dfs(E[u][i], p + 1);
}
}
int main(){
ios_base::sync_with_... | 14.2 | 38 | 0.476056 | MartinAparicioPons |
2af50f0fe6ae885ca83997d8da58c9840370afa1 | 3,521 | hpp | C++ | src/simple_graph/algorithm/bellman_ford.hpp | sfod/simple-graph | b07ac266296f44238ee02f7cc1042f079f4eac9d | [
"MIT"
] | 1 | 2016-01-25T09:54:38.000Z | 2016-01-25T09:54:38.000Z | src/simple_graph/algorithm/bellman_ford.hpp | sfod/simple-graph | b07ac266296f44238ee02f7cc1042f079f4eac9d | [
"MIT"
] | 1 | 2019-04-08T10:40:00.000Z | 2019-04-08T10:40:00.000Z | src/simple_graph/algorithm/bellman_ford.hpp | sfod/simple-graph | b07ac266296f44238ee02f7cc1042f079f4eac9d | [
"MIT"
] | null | null | null | #pragma once
#include <algorithm>
#include <cassert>
#include <set>
#include <vector>
#include "simple_graph/graph.hpp"
namespace simple_graph {
template<typename W>
bool check_distance(const W &d, const W &w)
{
return !((d > 0) && (w > 0) && (std::numeric_limits<W>::max() - d < w));
}
template<bool Dir, typena... | 32.302752 | 98 | 0.545016 | sfod |
2af686437eda8ab8178fd1a9174f42768e3f51d5 | 4,200 | cc | C++ | testing/gsgts_test.cc | shgalus/shg | 0318d0126cf12c3236183447d130969c468a02fa | [
"MIT"
] | 9 | 2015-05-21T04:14:50.000Z | 2021-05-31T17:15:15.000Z | testing/gsgts_test.cc | shgalus/shg | 0318d0126cf12c3236183447d130969c468a02fa | [
"MIT"
] | 1 | 2015-05-21T05:31:04.000Z | 2015-05-21T05:31:04.000Z | testing/gsgts_test.cc | shgalus/shg | 0318d0126cf12c3236183447d130969c468a02fa | [
"MIT"
] | 2 | 2015-05-21T04:14:44.000Z | 2020-08-18T12:35:22.000Z | #include <shg/gsgts.h>
#include <shg/mzt.h>
#include <shg/utils.h>
#include "testing.h"
namespace SHG::Testing {
BOOST_AUTO_TEST_SUITE(gsgts_test)
BOOST_AUTO_TEST_CASE(basic_test) {
const std::vector<double> result1{
-0.1853455, -0.1532896, -0.1108232, -0.2036469, -0.1754326,
-0.1098344, -0.... | 48.275862 | 70 | 0.584524 | shgalus |
2afdf7b06a66366ec7c1cbf55fb56779ea03d8f0 | 9,465 | cpp | C++ | pure_pursuit_core/test/GeometryTest.cpp | Idate96/se2_navigation | 0fabe002742add5e4d716776b13704aa9c1aa339 | [
"BSD-3-Clause"
] | 216 | 2020-04-14T22:32:45.000Z | 2022-03-30T17:56:12.000Z | pure_pursuit_core/test/GeometryTest.cpp | Idate96/se2_navigation | 0fabe002742add5e4d716776b13704aa9c1aa339 | [
"BSD-3-Clause"
] | 5 | 2020-09-23T08:41:38.000Z | 2021-11-11T09:58:00.000Z | pure_pursuit_core/test/GeometryTest.cpp | Idate96/se2_navigation | 0fabe002742add5e4d716776b13704aa9c1aa339 | [
"BSD-3-Clause"
] | 56 | 2020-04-29T00:26:20.000Z | 2022-03-30T17:27:55.000Z | /*
* GeometryTest.cpp
*
* Created on: Mar 19, 2020
* Author: jelavice
*/
#include <gtest/gtest.h>
// Math
#include <cmath>
#include "test_helpers.hpp"
#include "pure_pursuit_core/math.hpp"
namespace ppt = pure_pursuit_test;
namespace pp = pure_pursuit;
using SolutionCase = pp::Intersection::SolutionCase;
... | 36.686047 | 127 | 0.709773 | Idate96 |
63021073c1c0f32186c24ec364ce2c943ccf648c | 1,712 | cpp | C++ | src/web/tests/test_libaeon_web/test_url_encoding.cpp | aeon-engine/libaeon | e42b39e621dcd0a0fba05e1c166fc688288fb69b | [
"BSD-2-Clause"
] | 7 | 2017-02-19T16:22:16.000Z | 2021-03-02T05:47:39.000Z | src/web/tests/test_libaeon_web/test_url_encoding.cpp | aeon-engine/libaeon | e42b39e621dcd0a0fba05e1c166fc688288fb69b | [
"BSD-2-Clause"
] | 61 | 2017-05-29T06:11:17.000Z | 2021-03-28T21:51:44.000Z | src/web/tests/test_libaeon_web/test_url_encoding.cpp | aeon-engine/libaeon | e42b39e621dcd0a0fba05e1c166fc688288fb69b | [
"BSD-2-Clause"
] | 2 | 2017-05-28T17:17:40.000Z | 2017-07-14T21:45:16.000Z | // Distributed under the BSD 2-Clause License - Copyright 2012-2021 Robin Degen
#include <aeon/web/http/url_encoding.h>
#include <aeon/web/http/validators.h>
#include <gtest/gtest.h>
#include <random>
using namespace aeon;
TEST(test_url_encoding, encode_regular_string)
{
const std::u8string test_str = u8"ThisIsA... | 25.939394 | 79 | 0.638435 | aeon-engine |
6304a393a27ce668de2d43bd5d1b5530919ee665 | 326 | hpp | C++ | DoremiEngine/AI/Include/Interface/SubModule/AStarSubModule.hpp | meraz/doremi | 452d08ebd10db50d9563c1cf97699571889ab18f | [
"MIT"
] | 1 | 2020-03-23T15:42:05.000Z | 2020-03-23T15:42:05.000Z | DoremiEngine/AI/Include/Interface/SubModule/AStarSubModule.hpp | Meraz/ssp15 | 452d08ebd10db50d9563c1cf97699571889ab18f | [
"MIT"
] | null | null | null | DoremiEngine/AI/Include/Interface/SubModule/AStarSubModule.hpp | Meraz/ssp15 | 452d08ebd10db50d9563c1cf97699571889ab18f | [
"MIT"
] | 1 | 2020-03-23T15:42:06.000Z | 2020-03-23T15:42:06.000Z | #pragma once
namespace DoremiEngine
{
namespace AI
{
/**
TODOKO docs
*/
class MapGrid;
class AStarSubModule
{
public:
virtual void GetPath(int p_startPos, const MapGrid& p_map) = 0;
virtual MapGrid* BuildMapGrid() = 0;
};
... | 18.111111 | 75 | 0.506135 | meraz |
630642a798f5254c0a521c6019c0031bcdbc86d9 | 5,515 | cpp | C++ | src/ui/Style.cpp | CedricGuillemet/gemoni | 76ca371d509791dd9d560d3f9f701f96e209ca5e | [
"MIT"
] | null | null | null | src/ui/Style.cpp | CedricGuillemet/gemoni | 76ca371d509791dd9d560d3f9f701f96e209ca5e | [
"MIT"
] | null | null | null | src/ui/Style.cpp | CedricGuillemet/gemoni | 76ca371d509791dd9d560d3f9f701f96e209ca5e | [
"MIT"
] | null | null | null | #include "imgui.h"
#include "IconsFontAwesome5.h"
void SetStyle()
{
ImGuiStyle& st = ImGui::GetStyle();
st.FrameBorderSize = 1.0f;
st.FramePadding = ImVec2(4.0f, 2.0f);
st.ItemSpacing = ImVec2(8.0f, 2.0f);
st.WindowBorderSize = 1.0f;
st.TabBorderSize = 1.0f;
st.WindowRounding = 1.0f;
st... | 51.542056 | 117 | 0.688123 | CedricGuillemet |
deb89d9db31f248c546602d7996ccbd4f783a53d | 269 | cpp | C++ | examples/algos/subset-xor-maximization/example-1.cpp | parth-07/dragon | 2e771d698398303c8ae6d603d28bc3acfa116181 | [
"MIT"
] | 1 | 2021-02-24T17:51:32.000Z | 2021-02-24T17:51:32.000Z | examples/algos/subset-xor-maximization/example-1.cpp | parth-07/dragon | 2e771d698398303c8ae6d603d28bc3acfa116181 | [
"MIT"
] | 1 | 2021-02-24T17:57:04.000Z | 2021-05-17T11:09:40.000Z | examples/algos/subset-xor-maximization/example-1.cpp | parth-07/ds-and-algos | 2e771d698398303c8ae6d603d28bc3acfa116181 | [
"MIT"
] | null | null | null | #include <iostream>
#include <vector>
#include "dragon/algos/subset-xor-maximization.hpp"
int main() {
std::vector<int> v{48, 32, 31};
std::cout<<dragon::maximum_subset_xor_value(v)<<"\n";
std::cout<<dragon::maximum_subset_xor_value(v.begin(), v.end())<<"\n";
}
| 26.9 | 72 | 0.680297 | parth-07 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.