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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
03c4fb374fbe7afe1df793d90a2084510230f943 | 10,306 | cxx | C++ | vtr/toro/TO_Output/TO_Output.cxx | haojunliu/OpenFPGA | b0c4f27077f698aae59bbcbd3ca002f22ba2a5a1 | [
"BSD-2-Clause"
] | 31 | 2016-02-15T02:57:28.000Z | 2021-06-02T10:40:25.000Z | vtr/toro/TO_Output/TO_Output.cxx | haojunliu/OpenFPGA | b0c4f27077f698aae59bbcbd3ca002f22ba2a5a1 | [
"BSD-2-Clause"
] | null | null | null | vtr/toro/TO_Output/TO_Output.cxx | haojunliu/OpenFPGA | b0c4f27077f698aae59bbcbd3ca002f22ba2a5a1 | [
"BSD-2-Clause"
] | 6 | 2017-02-08T21:51:51.000Z | 2021-06-02T10:40:40.000Z | //===========================================================================//
// Purpose : Method definitions for the TO_Output post-processor class.
//
// Public methods include:
// - TO_Output_c, ~TO_Output_c
// - Init
// - Apply
// - IsValid
//
// Private... | 38.312268 | 88 | 0.512032 | haojunliu |
03c5856a4c58265a9d869eef64c01440ee330048 | 342 | cpp | C++ | Task1/Task1/Load.cpp | RostyslavMV/OOP_Module1 | 33f0701660262e7d8fefc3a3dd92145e239fb3d1 | [
"MIT"
] | null | null | null | Task1/Task1/Load.cpp | RostyslavMV/OOP_Module1 | 33f0701660262e7d8fefc3a3dd92145e239fb3d1 | [
"MIT"
] | null | null | null | Task1/Task1/Load.cpp | RostyslavMV/OOP_Module1 | 33f0701660262e7d8fefc3a3dd92145e239fb3d1 | [
"MIT"
] | null | null | null | #include "Load.h"
Load::Load(int type, double volume, double weight)
{
this->type = type;
this->volume = volume;
this->weight = weight;
}
PeriodicalLoad::PeriodicalLoad(Load* load, int period, int increase)
{
this->load = load;
this->period = period;
this->increase = increase;
this->nextTime = period;
this->q... | 19 | 68 | 0.692982 | RostyslavMV |
03ca2f4b23485e1581ee2af9b7527c2e2b8a9c4b | 78 | cpp | C++ | source/code/utilities/image/stb_image.cpp | luxe/CodeLang-compiler | 78837d90bdd09c4b5aabbf0586a5d8f8f0c1e76a | [
"MIT"
] | 33 | 2019-05-30T07:43:32.000Z | 2021-12-30T13:12:32.000Z | source/code/utilities/image/stb_image.cpp | luxe/CodeLang-compiler | 78837d90bdd09c4b5aabbf0586a5d8f8f0c1e76a | [
"MIT"
] | 371 | 2019-05-16T15:23:50.000Z | 2021-09-04T15:45:27.000Z | source/code/utilities/image/stb_image.cpp | UniLang/compiler | c338ee92994600af801033a37dfb2f1a0c9ca897 | [
"MIT"
] | 6 | 2019-08-22T17:37:36.000Z | 2020-11-07T07:15:32.000Z | #define STB_IMAGE_IMPLEMENTATION
#include "code/utilities/image/stb_image.hpp" | 39 | 45 | 0.858974 | luxe |
03ca32200d1d172d5830a06267ec957700848233 | 3,513 | cc | C++ | benchmark/benchnum.cc | MengRao/str | 80389e30ff07bfd5d71f2bdcfad23db6c1353c2c | [
"MIT"
] | 90 | 2019-01-27T09:02:14.000Z | 2022-03-19T16:53:08.000Z | benchmark/benchnum.cc | MengRao/str | 80389e30ff07bfd5d71f2bdcfad23db6c1353c2c | [
"MIT"
] | 4 | 2019-01-28T03:42:53.000Z | 2021-07-04T13:46:15.000Z | benchmark/benchnum.cc | MengRao/str | 80389e30ff07bfd5d71f2bdcfad23db6c1353c2c | [
"MIT"
] | 25 | 2019-02-15T08:18:42.000Z | 2022-03-19T16:53:10.000Z | #include <bits/stdc++.h>
#include "../Str.h"
using namespace std;
inline uint64_t getns() {
return std::chrono::high_resolution_clock::now().time_since_epoch().count();
}
uint32_t getRand() {
uint32_t num = rand() & 0xffff;
num <<= 16;
num |= rand() & 0xffff;
return num;
}
string dest;
char buf[1024];
te... | 22.375796 | 120 | 0.495588 | MengRao |
03cd22aa09817f0ae0627c5e5a92c9391559911f | 7,328 | hpp | C++ | src/isochunk.hpp | sweetkristas/anura | 5e8cbcfc7b761c5c01e5c5509a0fb159b8fb60cd | [
"CC0-1.0"
] | null | null | null | src/isochunk.hpp | sweetkristas/anura | 5e8cbcfc7b761c5c01e5c5509a0fb159b8fb60cd | [
"CC0-1.0"
] | null | null | null | src/isochunk.hpp | sweetkristas/anura | 5e8cbcfc7b761c5c01e5c5509a0fb159b8fb60cd | [
"CC0-1.0"
] | null | null | null | #pragma once
#if defined(USE_ISOMAP)
#if !defined(USE_SHADERS)
#error in order to build with Iso tiles you need to be building with shaders (USE_SHADERS)
#endif
#include <boost/intrusive_ptr.hpp>
#include <boost/unordered_map.hpp>
#include <vector>
#include <glm/glm.hpp>
#include <glm/gtc/type_ptr.hpp>
#include "geo... | 32 | 111 | 0.729121 | sweetkristas |
03ce66746d11ffe092777d7123bc94bd6832c953 | 4,520 | cpp | C++ | 2SST/7LW/functions.cpp | AVAtarMod/University | 3c784a1e109b7a6f6ea495278ec3dc126258625a | [
"BSD-3-Clause"
] | 1 | 2021-07-31T06:55:08.000Z | 2021-07-31T06:55:08.000Z | 2SST/7LW/functions.cpp | AVAtarMod/University-C | e516aac99eabbcbe14d897239f08acf6c8e146af | [
"BSD-3-Clause"
] | 1 | 2020-11-25T12:00:11.000Z | 2021-01-13T08:51:52.000Z | 2SST/7LW/functions.cpp | AVAtarMod/University-C | e516aac99eabbcbe14d897239f08acf6c8e146af | [
"BSD-3-Clause"
] | null | null | null | #include "functions.hpp"
#include <vector>
#include <iostream>
#include <string>
#include <algorithm>
bool isMagickSquareSolved(unsigned **square, unsigned size)
{
const unsigned numberRows = size, numberCols = size, numberDiagonals = 2;
const unsigned numberObjects = numberRows + numberCols + numberDiagonals... | 25.828571 | 175 | 0.488496 | AVAtarMod |
03d02a1af870d8d0b6c13a55dac2d2be5cf4e884 | 3,680 | hh | C++ | src/drivers/Execute.hh | RLReed/libdetran | 77637c788823e0a14aae7e40e476a291f6f3184b | [
"MIT"
] | 4 | 2015-03-07T16:20:23.000Z | 2020-02-10T13:40:16.000Z | src/drivers/Execute.hh | RLReed/libdetran | 77637c788823e0a14aae7e40e476a291f6f3184b | [
"MIT"
] | 3 | 2018-02-27T21:24:22.000Z | 2020-12-16T00:56:44.000Z | src/drivers/Execute.hh | RLReed/libdetran | 77637c788823e0a14aae7e40e476a291f6f3184b | [
"MIT"
] | 9 | 2015-03-07T16:20:26.000Z | 2022-01-29T00:14:23.000Z | //----------------------------------*-C++-*----------------------------------//
/**
* @file Execute.hh
* @brief Execute class definition.
* @note Copyright (C) 2013 Jeremy Roberts.
*/
//---------------------------------------------------------------------------//
//-----------------------------------------... | 28.091603 | 79 | 0.449728 | RLReed |
03d2376c614a415939118a4844cddfdd847d9384 | 7,138 | cpp | C++ | api/depth2depth/gaps/pkgs/R2Shapes/R2Box.cpp | AriaPs/cleargrasp | 3c5fd901970cab2bb5da38ca0b3eff32d8f9dc12 | [
"Apache-2.0"
] | 708 | 2017-09-20T15:05:44.000Z | 2022-03-29T15:08:01.000Z | gaps/pkgs/R2Shapes/R2Box.cpp | OTTFFIVE/3dmatch-toolbox | 69af229d3dab924c20dc940ae71a48394322dea2 | [
"BSD-2-Clause"
] | 51 | 2017-09-20T17:26:52.000Z | 2022-03-20T13:23:11.000Z | gaps/pkgs/R2Shapes/R2Box.cpp | OTTFFIVE/3dmatch-toolbox | 69af229d3dab924c20dc940ae71a48394322dea2 | [
"BSD-2-Clause"
] | 203 | 2016-12-16T02:49:10.000Z | 2022-03-21T06:38:12.000Z | /* Source file for the R2 Box class */
/* Include files */
#include "R2Shapes/R2Shapes.h"
/* Public variables */
const R2Box R2zero_box(0.0, 0.0, 0.0, 0.0);
const R2Box R2unit_box(-1.0, -1.0, 1.0, 1.0);
const R2Box R2infinite_box(-RN_INFINITY, -RN_INFINITY, RN_INFINITY, RN_INFINITY);
const R2Box R2null_box( RN_... | 17.756219 | 99 | 0.627767 | AriaPs |
03d512f3c99f4efb5d0abba6b0e49210b9da1d2f | 20,534 | cpp | C++ | Sorting/Michelsen_Sorting/Michelsen_Sorting/main.cpp | bgmichelsen/CSC382-Data-Structures- | f38f8bc04c0191fb93178616797c67062c485814 | [
"MIT"
] | null | null | null | Sorting/Michelsen_Sorting/Michelsen_Sorting/main.cpp | bgmichelsen/CSC382-Data-Structures- | f38f8bc04c0191fb93178616797c67062c485814 | [
"MIT"
] | null | null | null | Sorting/Michelsen_Sorting/Michelsen_Sorting/main.cpp | bgmichelsen/CSC382-Data-Structures- | f38f8bc04c0191fb93178616797c67062c485814 | [
"MIT"
] | 1 | 2021-11-22T19:31:59.000Z | 2021-11-22T19:31:59.000Z | // This is the main file for the sorting program. It is where the
// sorting functions are defined and tested. The Linked List project
// from the beginning of the semester is included as part of this
// project.
//
// Author: Brandon Michelsen
#include <iostream>
#include <string>
#include <limits>
#include <time.h... | 30.511144 | 118 | 0.67118 | bgmichelsen |
03d756a651baef8b69f602d1bacd3c614a2083a0 | 1,004 | hpp | C++ | include/_app_state_recognition.hpp | zborffs/Delta | b2efa9fe1cc2138656f4d7964ccdbbbfcebba639 | [
"MIT"
] | 1 | 2022-03-03T09:34:54.000Z | 2022-03-03T09:34:54.000Z | include/_app_state_recognition.hpp | zborffs/Delta | b2efa9fe1cc2138656f4d7964ccdbbbfcebba639 | [
"MIT"
] | null | null | null | include/_app_state_recognition.hpp | zborffs/Delta | b2efa9fe1cc2138656f4d7964ccdbbbfcebba639 | [
"MIT"
] | null | null | null | #ifndef DELTA__APP_STATE_RECOGNITION_HPP
#define DELTA__APP_STATE_RECOGNITION_HPP
/// Third-Party Includes
#include <spdlog/spdlog.h>
/// Project Includes
#include "app.hpp"
#include "_app_state_eng.hpp"
#include "_app_state_shutdown.hpp"
/**
* The AppStateRecognition class is responsible for coloring the Applicati... | 30.424242 | 118 | 0.747012 | zborffs |
03d84fff4764df02d25c380969ade60037598442 | 14,202 | hpp | C++ | plugins/EstimationPlugin/src/base/estimator/BatchEstimator.hpp | Randl/GMAT | d6a5b1fed68c33b0c4b1cfbd1e25a71cdfb8f8f5 | [
"Apache-2.0"
] | 2 | 2020-01-01T13:14:57.000Z | 2020-12-09T07:05:07.000Z | plugins/EstimationPlugin/src/base/estimator/BatchEstimator.hpp | rdadan/GMAT-R2016a | d6a5b1fed68c33b0c4b1cfbd1e25a71cdfb8f8f5 | [
"Apache-2.0"
] | 1 | 2018-03-15T08:58:37.000Z | 2018-03-20T20:11:26.000Z | plugins/EstimationPlugin/src/base/estimator/BatchEstimator.hpp | rdadan/GMAT-R2016a | d6a5b1fed68c33b0c4b1cfbd1e25a71cdfb8f8f5 | [
"Apache-2.0"
] | 3 | 2019-10-13T10:26:49.000Z | 2020-12-09T07:06:55.000Z | //$Id: BatchEstimator.hpp 1398 2011-04-21 20:39:37Z $
//------------------------------------------------------------------------------
// BatchEstimator
//------------------------------------------------------------------------------
// GMAT: General Mission Analysis Tool
//
// Copyright (c) 20... | 44.38125 | 133 | 0.62118 | Randl |
03dc3947e926b39dd0bbca213cde97f12bd14735 | 2,743 | cpp | C++ | IOI/ioi14p2.cpp | crackersamdjam/DMOJ-Solutions | 97992566595e2c7bf41b5da9217d8ef61bdd1d71 | [
"MIT"
] | null | null | null | IOI/ioi14p2.cpp | crackersamdjam/DMOJ-Solutions | 97992566595e2c7bf41b5da9217d8ef61bdd1d71 | [
"MIT"
] | null | null | null | IOI/ioi14p2.cpp | crackersamdjam/DMOJ-Solutions | 97992566595e2c7bf41b5da9217d8ef61bdd1d71 | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
#define all(x) (x).begin(), (x).end()
#define gc getchar()
#define pc(x) putchar(x)
template<typename T> void scan(T &x){x = 0;bool _=0;T c=gc;_=c==45;c=_?gc:c;while(c<48||c>57)c=gc;for(;c<48||c>57;c=gc);for(;c>47&&c<58;c=gc)x=(x<<3)+(x<<1)+(c&15);x=_?-x:x;}
template<typename T> void print... | 26.631068 | 175 | 0.53518 | crackersamdjam |
03dc7baec0e3dae5f2d6b09cddf7f275c16b5b29 | 1,382 | hxx | C++ | private/inet/xml/xql/query/orexpr.hxx | King0987654/windows2000 | 01f9c2e62c4289194e33244aade34b7d19e7c9b8 | [
"MIT"
] | 11 | 2017-09-02T11:27:08.000Z | 2022-01-02T15:25:24.000Z | private/inet/xml/xql/query/orexpr.hxx | King0987654/windows2000 | 01f9c2e62c4289194e33244aade34b7d19e7c9b8 | [
"MIT"
] | null | null | null | private/inet/xml/xql/query/orexpr.hxx | King0987654/windows2000 | 01f9c2e62c4289194e33244aade34b7d19e7c9b8 | [
"MIT"
] | 14 | 2019-01-16T01:01:23.000Z | 2022-02-20T15:54:27.000Z | /*
* @(#)OrExpr.hxx 1.0 3/20/98
*
* Copyright (C) 1998,1999 Microsoft Corporation. All rights reserved. *
* definition of XQL OrExpr object
*
*/
#ifndef _XQL_QUERY_OREXPR
#define _XQL_QUERY_OREXPR
#ifndef _XQL_QUERY_BASEOPERAND
#include "xql/query/baseoperand.hxx"
#endif
DEFINE_CLASS(Eleme... | 19.194444 | 97 | 0.509407 | King0987654 |
03dd00fecd4b06afe13ccabbe97fb6ca471bac05 | 6,019 | cpp | C++ | renderers/SSAORenderer.cpp | sarahayu/Fibonacci-Spring-Tree | bf6809d5d8b7f9d13e1acf6af29edb14cec0805a | [
"MIT"
] | null | null | null | renderers/SSAORenderer.cpp | sarahayu/Fibonacci-Spring-Tree | bf6809d5d8b7f9d13e1acf6af29edb14cec0805a | [
"MIT"
] | null | null | null | renderers/SSAORenderer.cpp | sarahayu/Fibonacci-Spring-Tree | bf6809d5d8b7f9d13e1acf6af29edb14cec0805a | [
"MIT"
] | null | null | null | #include "SSAORenderer.h"
#include "..\utils\ShaderUtil.h"
#include "..\utils\MathUtil.h"
#include "..\utils\GlobalClock.h"
#include "..\RenderSettings.h"
#include "..\Camera.h"
#include "Model.h"
#include "ScreenQuad.h"
#include <random>
#include <glm\glm.hpp>
namespace
{
const std::vector<glm::vec3> getSamples()
{... | 31.025773 | 107 | 0.7684 | sarahayu |
03dd78b44c732d23cd134fdf790cbca208806a4e | 8,195 | cpp | C++ | Source/gday/CoordinateSystemDlg.cpp | mattdocherty314/GDAy3.0 | 81b13012765e6f4efe3f98c0a4e2c117841f909a | [
"BSD-3-Clause"
] | 5 | 2018-10-30T08:39:02.000Z | 2022-02-18T06:34:18.000Z | Source/gday/CoordinateSystemDlg.cpp | mattdocherty314/GDAy3.0 | 81b13012765e6f4efe3f98c0a4e2c117841f909a | [
"BSD-3-Clause"
] | 1 | 2022-02-18T05:02:24.000Z | 2022-02-18T05:02:24.000Z | Source/gday/CoordinateSystemDlg.cpp | mattdocherty314/GDAy3.0 | 81b13012765e6f4efe3f98c0a4e2c117841f909a | [
"BSD-3-Clause"
] | 4 | 2019-07-30T09:31:05.000Z | 2022-01-31T05:51:18.000Z | // CoordinateSystemDlg.cpp : implementation file
//
#include "stdafx.h"
#include "GDAy.h"
#include "CoordinateSystemDlg.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// CCoordinateSystem... | 29.584838 | 118 | 0.755461 | mattdocherty314 |
03de7a8db815a632b1e77fcadbe38e30359aad75 | 3,238 | cpp | C++ | scrimmage/test/test_quaternion.cpp | ddfan/swarm_evolve | cd2d972c021e9af5946673363fbfd39cff18f13f | [
"MIT"
] | 10 | 2019-04-29T03:01:19.000Z | 2022-03-22T03:11:30.000Z | scrimmage/test/test_quaternion.cpp | lyers179/swarm_evolve | cd2d972c021e9af5946673363fbfd39cff18f13f | [
"MIT"
] | 3 | 2018-10-29T02:14:10.000Z | 2020-11-23T02:36:14.000Z | scrimmage/test/test_quaternion.cpp | lyers179/swarm_evolve | cd2d972c021e9af5946673363fbfd39cff18f13f | [
"MIT"
] | 8 | 2018-10-29T02:07:56.000Z | 2022-01-04T06:37:53.000Z | /// ---------------------------------------------------------------------------
/// @section LICENSE
///
/// Copyright (c) 2016 Georgia Tech Research Institute (GTRI)
/// All Rights Reserved
///
/// The above copyright notice and this permission notice shall be included in
/// all copies or substant... | 37.651163 | 79 | 0.627548 | ddfan |
03deff61049e0ab79ea5e1e5fd849c974f217e2a | 1,241 | cpp | C++ | sort/cpu/quickSort.cpp | jitMatrix/xiuxian | ba52d11f39957dd14ca34b51ccb5fadb422e6833 | [
"Apache-2.0"
] | 3 | 2021-03-08T06:17:55.000Z | 2021-04-09T12:50:21.000Z | sort/cpu/quickSort.cpp | jitMatrix/xiuxian | ba52d11f39957dd14ca34b51ccb5fadb422e6833 | [
"Apache-2.0"
] | null | null | null | sort/cpu/quickSort.cpp | jitMatrix/xiuxian | ba52d11f39957dd14ca34b51ccb5fadb422e6833 | [
"Apache-2.0"
] | null | null | null | #include <iostream>
#include <iterator>
#include <vector>
#include "utils.hpp"
template <typename T>
std::int64_t partition(
std::vector<T> &arr, std::int64_t low, std::int64_t high) {
T pivot = arr[low];
while (low < high) {
while (low < high && arr[high] >= pivot) {
--high;
... | 25.854167 | 74 | 0.541499 | jitMatrix |
03df26affc1a5eeb7c79ba5b2b54f5f493990d25 | 1,582 | cpp | C++ | src/cpp/rtps/resources/ResourceSend.cpp | zhangzhimin/Fast-RTPS | 3032f11d0c62d226eea39ea4f8428afef4558693 | [
"Apache-2.0"
] | null | null | null | src/cpp/rtps/resources/ResourceSend.cpp | zhangzhimin/Fast-RTPS | 3032f11d0c62d226eea39ea4f8428afef4558693 | [
"Apache-2.0"
] | null | null | null | src/cpp/rtps/resources/ResourceSend.cpp | zhangzhimin/Fast-RTPS | 3032f11d0c62d226eea39ea4f8428afef4558693 | [
"Apache-2.0"
] | 1 | 2021-08-23T01:09:51.000Z | 2021-08-23T01:09:51.000Z | // Copyright 2016 Proyectos y Sistemas de Mantenimiento SL (eProsima).
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless re... | 24.71875 | 77 | 0.747788 | zhangzhimin |
03e12365b2cc583b2428393857ecc55ab3bd134b | 421 | cpp | C++ | src/edible.cpp | Md7tz/Running-Lizard | 9a3109cfb7e253dadd75655631bbdefa46a7ee28 | [
"MIT"
] | 7 | 2022-02-03T15:57:50.000Z | 2022-02-22T12:42:06.000Z | src/edible.cpp | Md7tz/Running-Lizard | 9a3109cfb7e253dadd75655631bbdefa46a7ee28 | [
"MIT"
] | null | null | null | src/edible.cpp | Md7tz/Running-Lizard | 9a3109cfb7e253dadd75655631bbdefa46a7ee28 | [
"MIT"
] | null | null | null | #include "GameObjects/edible.h"
const uint8_t Edible::count = 2;
Edible::Edible() {}
Edible::Edible(uint8_t _randInt)
{
randInt = _randInt;
foodColor = RED;
}
Edible::~Edible() {}
bool Edible::update(int16_t lizardHeadx, int16_t lizardHeady)
{
if (foodPos.x == lizardHeadx && foodPos.y == lizardHeady)
... | 16.84 | 61 | 0.655582 | Md7tz |
03e125306563f84c43c946ad1d084821fd267889 | 17,485 | cpp | C++ | examples/parallaxmapping/parallaxmapping.cpp | jaebaek/VulkanSample | 5f327f8d66b17fdaf9d38328b71f40382cb87b50 | [
"MIT"
] | 3 | 2019-10-06T20:07:11.000Z | 2022-03-24T06:17:08.000Z | examples/parallaxmapping/parallaxmapping.cpp | jaebaek/VulkanSample | 5f327f8d66b17fdaf9d38328b71f40382cb87b50 | [
"MIT"
] | null | null | null | examples/parallaxmapping/parallaxmapping.cpp | jaebaek/VulkanSample | 5f327f8d66b17fdaf9d38328b71f40382cb87b50 | [
"MIT"
] | 1 | 2022-03-24T06:17:11.000Z | 2022-03-24T06:17:11.000Z | /*
* Vulkan Example - Parallax Mapping
*
* Copyright (C) 2016 by Sascha Willems - www.saschawillems.de
*
* This code is licensed under the MIT license (MIT)
* (http://opensource.org/licenses/MIT)
*/
#include <assert.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <vector>
#define GLM_FORCE_RADI... | 37.928416 | 80 | 0.694481 | jaebaek |
03e136b4a44a2c80b6aa24e40c73c346a590b9c6 | 19,606 | hpp | C++ | gearoenix/math/gx-math-matrix-4d.hpp | Hossein-Noroozpour/gearoenix | c8fa8b8946c03c013dad568d6d7a97d81097c051 | [
"BSD-Source-Code"
] | 35 | 2018-01-07T02:34:38.000Z | 2022-02-09T05:19:03.000Z | gearoenix/math/gx-math-matrix-4d.hpp | Hossein-Noroozpour/gearoenix | c8fa8b8946c03c013dad568d6d7a97d81097c051 | [
"BSD-Source-Code"
] | 111 | 2017-09-20T09:12:36.000Z | 2020-12-27T12:52:03.000Z | gearoenix/math/gx-math-matrix-4d.hpp | Hossein-Noroozpour/gearoenix | c8fa8b8946c03c013dad568d6d7a97d81097c051 | [
"BSD-Source-Code"
] | 5 | 2020-02-11T11:17:37.000Z | 2021-01-08T17:55:43.000Z | #ifndef GEAROENIX_MATH_MATRIX_4D_HPP
#define GEAROENIX_MATH_MATRIX_4D_HPP
#include "gx-math-vector-4d.hpp"
namespace gearoenix::math {
/// It is a column major matrix
template <typename Element>
struct Mat4x4 {
Element data[4][4];
constexpr Mat4x4() noexcept
: data {
{ static_cast<Element>... | 42.163441 | 236 | 0.511527 | Hossein-Noroozpour |
03e1ff81de734ba25e35f11c2c9a5d2de140ded4 | 10,929 | cpp | C++ | src/core/TChem_IgnitionZeroD.cpp | mschmidt271/TChem | 01adfcbef0ac107cbc7b9df9d03d783ef5eac83b | [
"BSD-2-Clause"
] | null | null | null | src/core/TChem_IgnitionZeroD.cpp | mschmidt271/TChem | 01adfcbef0ac107cbc7b9df9d03d783ef5eac83b | [
"BSD-2-Clause"
] | null | null | null | src/core/TChem_IgnitionZeroD.cpp | mschmidt271/TChem | 01adfcbef0ac107cbc7b9df9d03d783ef5eac83b | [
"BSD-2-Clause"
] | null | null | null | #include "TChem_Util.hpp"
#include "TChem_IgnitionZeroD.hpp"
/// tadv - an input structure for time marching
/// state (nSpec+3) - initial condition of the state vector
/// qidx (lt nSpec+1) - QoI indices to store in qoi output
/// work - work space sized by getWorkSpaceSize
/// tcnt - time counter
/// qoi (time + qi... | 32.526786 | 84 | 0.631897 | mschmidt271 |
03e4abf480bb30d6785b80fa1d0f6423786d80bd | 90,496 | cpp | C++ | Source/WebCore/animation/KeyframeEffect.cpp | jacadcaps/webkitty | 9aebd2081349f9a7b5d168673c6f676a1450a66d | [
"BSD-2-Clause"
] | 6 | 2021-07-05T16:09:39.000Z | 2022-03-06T22:44:42.000Z | Source/WebCore/animation/KeyframeEffect.cpp | jacadcaps/webkitty | 9aebd2081349f9a7b5d168673c6f676a1450a66d | [
"BSD-2-Clause"
] | 7 | 2022-03-15T13:25:39.000Z | 2022-03-15T13:25:44.000Z | Source/WebCore/animation/KeyframeEffect.cpp | jacadcaps/webkitty | 9aebd2081349f9a7b5d168673c6f676a1450a66d | [
"BSD-2-Clause"
] | null | null | null | /*
* Copyright (C) 2017-2019 Apple Inc. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1. Redistributions of source code must retain the above copyright
* notice, this list of conditi... | 47.729958 | 249 | 0.704142 | jacadcaps |
03e5b62ad865ba44024dd644fc012af939d2db94 | 14,267 | cpp | C++ | Tools/AssetBuilder/src/AssetPacking.cpp | palikar/DirectXer | c21b87eed220fc54d97d5363e8a33bd0944a2596 | [
"MIT"
] | null | null | null | Tools/AssetBuilder/src/AssetPacking.cpp | palikar/DirectXer | c21b87eed220fc54d97d5363e8a33bd0944a2596 | [
"MIT"
] | null | null | null | Tools/AssetBuilder/src/AssetPacking.cpp | palikar/DirectXer | c21b87eed220fc54d97d5363e8a33bd0944a2596 | [
"MIT"
] | null | null | null | #include "AssetBuilder.hpp"
static size_t CalculateBaseOffset(AssetBundlerContext& context)
{
size_t offset{0};
offset += sizeof(AssetColletionHeader);
offset += sizeof(TextureLoadEntry) * context.TexturesToCreate.size();
offset += sizeof(IBLoadEntry) * context.IBsToCreate.size();
offset += sizeof(VBLoadEntry) *... | 40.997126 | 163 | 0.624658 | palikar |
03e68c0fdd51c9a3e227755939abfa568dd29f5f | 648 | cpp | C++ | dmoj/uncategorized/16_bit_sw_only.cpp | Rkhoiwal/Competitive-prog-Archive | 18a95a8b2b9ca1a28d6fe939c1db5450d541ddc9 | [
"MIT"
] | 1 | 2020-07-16T01:46:38.000Z | 2020-07-16T01:46:38.000Z | dmoj/uncategorized/16_bit_sw_only.cpp | Rkhoiwal/Competitive-prog-Archive | 18a95a8b2b9ca1a28d6fe939c1db5450d541ddc9 | [
"MIT"
] | null | null | null | dmoj/uncategorized/16_bit_sw_only.cpp | Rkhoiwal/Competitive-prog-Archive | 18a95a8b2b9ca1a28d6fe939c1db5450d541ddc9 | [
"MIT"
] | 1 | 2020-05-27T14:30:43.000Z | 2020-05-27T14:30:43.000Z | #include <iostream>
using namespace std;
inline
void use_io_optimizations()
{
ios_base::sync_with_stdio(false);
cin.tie(nullptr);
}
int main()
{
use_io_optimizations();
unsigned int multiplications;
cin >> multiplications;
for (unsigned int i {0}; i < multiplications; ++i)
{
lon... | 15.804878 | 54 | 0.521605 | Rkhoiwal |
03e71a3be1508cfe9132a6a65b3a9f9b2ede5228 | 1,031 | cpp | C++ | proZPRd/ScriptParser.cpp | peku33/proZPRd | 632097bc8221116c57b9ae5e76dafd0a63d57fe6 | [
"MIT"
] | null | null | null | proZPRd/ScriptParser.cpp | peku33/proZPRd | 632097bc8221116c57b9ae5e76dafd0a63d57fe6 | [
"MIT"
] | null | null | null | proZPRd/ScriptParser.cpp | peku33/proZPRd | 632097bc8221116c57b9ae5e76dafd0a63d57fe6 | [
"MIT"
] | null | null | null | #include "ScriptParser.hpp"
#include "File.hpp"
#include "Tools/Exception.hpp"
#ifdef _WIN32
#define popen _popen
#define pclose _pclose
#endif
proZPRd::ScriptParser::ScriptParser(const std::string & ParserExecutable): ParserExecutable(ParserExecutable)
{
}
std::string proZPRd::ScriptParser::Parse(const std::st... | 27.131579 | 109 | 0.702231 | peku33 |
03e7e0fb3bd5648ac5f66e0f418e07bb932947ff | 7,226 | cc | C++ | src/sgmmbin/sgmm-acc-tree-stats.cc | hihihippp/Kaldi | 861f838a2aea264a9e4ffa4df253df00a8b1247f | [
"Apache-2.0"
] | 19 | 2015-03-19T10:53:38.000Z | 2020-12-17T06:12:32.000Z | src/sgmmbin/sgmm-acc-tree-stats.cc | UdyanSachdev/kaldi | 861f838a2aea264a9e4ffa4df253df00a8b1247f | [
"Apache-2.0"
] | 1 | 2018-12-18T17:43:44.000Z | 2018-12-18T17:43:44.000Z | src/sgmmbin/sgmm-acc-tree-stats.cc | UdyanSachdev/kaldi | 861f838a2aea264a9e4ffa4df253df00a8b1247f | [
"Apache-2.0"
] | 47 | 2015-01-27T06:22:57.000Z | 2021-11-11T20:59:04.000Z | // sgmmbin/sgmm-acc-tree-stats.cc
// Copyright 2012 Johns Hopkins University (Author: Daniel Povey)
// 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/L... | 36.680203 | 101 | 0.596872 | hihihippp |
03e7eedbb9a40e47d88ba5db11d7f0db5d1e653c | 1,634 | cpp | C++ | src/Common_Controls/Button/Button.cpp | gammasoft71/Examples_FLTK | 7d8f11d5da25f7279834d3730732d07e91591f7c | [
"MIT"
] | 21 | 2020-03-04T17:38:14.000Z | 2022-03-07T02:46:39.000Z | src/Common_Controls/Button/Button.cpp | gammasoft71/Examples_FLTK | 7d8f11d5da25f7279834d3730732d07e91591f7c | [
"MIT"
] | null | null | null | src/Common_Controls/Button/Button.cpp | gammasoft71/Examples_FLTK | 7d8f11d5da25f7279834d3730732d07e91591f7c | [
"MIT"
] | 6 | 2021-03-12T20:57:00.000Z | 2022-03-31T23:19:03.000Z | #include <string>
#include <FL/Fl.H>
#include <FL/Fl_Box.H>
#include <FL/Fl_Button.H>
#include <FL/Fl_Repeat_Button.H>
#include <FL/Fl_Window.H>
using namespace std;
namespace Examples {
class Main_Window : public Fl_Window {
public:
Main_Window() : Fl_Window(200, 100, 300, 300, "Button example") {
butt... | 36.311111 | 123 | 0.672583 | gammasoft71 |
03ec5b5f51d937311a211b54c17fb4910be5ee95 | 2,286 | hh | C++ | notification/inc/com/centreon/broker/notification/builders/composed_timeperiod_builder.hh | sdelafond/centreon-broker | 21178d98ed8a061ca71317d23c2026dbc4edaca2 | [
"Apache-2.0"
] | null | null | null | notification/inc/com/centreon/broker/notification/builders/composed_timeperiod_builder.hh | sdelafond/centreon-broker | 21178d98ed8a061ca71317d23c2026dbc4edaca2 | [
"Apache-2.0"
] | null | null | null | notification/inc/com/centreon/broker/notification/builders/composed_timeperiod_builder.hh | sdelafond/centreon-broker | 21178d98ed8a061ca71317d23c2026dbc4edaca2 | [
"Apache-2.0"
] | null | null | null | /*
** Copyright 2011-2014 Centreon
**
** 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 t... | 36.285714 | 146 | 0.698163 | sdelafond |
03edcec7dd078dd995694fd563f26e980748dcfa | 2,271 | hpp | C++ | include/codegen/include/OVR/OpenVR/IVROverlay__FindOverlay.hpp | Futuremappermydud/Naluluna-Modifier-Quest | bfda34370764b275d90324b3879f1a429a10a873 | [
"MIT"
] | 1 | 2021-11-12T09:29:31.000Z | 2021-11-12T09:29:31.000Z | include/codegen/include/OVR/OpenVR/IVROverlay__FindOverlay.hpp | Futuremappermydud/Naluluna-Modifier-Quest | bfda34370764b275d90324b3879f1a429a10a873 | [
"MIT"
] | null | null | null | include/codegen/include/OVR/OpenVR/IVROverlay__FindOverlay.hpp | Futuremappermydud/Naluluna-Modifier-Quest | bfda34370764b275d90324b3879f1a429a10a873 | [
"MIT"
] | 2 | 2021-10-03T02:14:20.000Z | 2021-11-12T09:29:36.000Z | // Autogenerated from CppHeaderCreator on 7/27/2020 3:10:02 PM
// Created by Sc2ad
// =========================================================================
#pragma once
#pragma pack(push, 8)
// Begin includes
#include "utils/typedefs.h"
// Including type: System.MulticastDelegate
#include "System/MulticastDelegate.... | 45.42 | 157 | 0.745927 | Futuremappermydud |
03f2d5de87a128dbbf8ea8b365b65dd3c6282c1b | 2,590 | cpp | C++ | Source/engine/render/automap_render.cpp | pionere/devilutionX | 63f8deb298a00b040010fc299c0568eae19522e1 | [
"Unlicense"
] | 2 | 2021-02-02T19:27:20.000Z | 2022-03-07T16:50:55.000Z | Source/engine/render/automap_render.cpp | pionere/devilutionX | 63f8deb298a00b040010fc299c0568eae19522e1 | [
"Unlicense"
] | null | null | null | Source/engine/render/automap_render.cpp | pionere/devilutionX | 63f8deb298a00b040010fc299c0568eae19522e1 | [
"Unlicense"
] | 1 | 2022-03-07T16:51:16.000Z | 2022-03-07T16:51:16.000Z | /**
* @file automap_render.cpp
*
* Line drawing routines for the automap.
*/
#include "automap_render.hpp"
#include "all.h"
DEVILUTION_BEGIN_NAMESPACE
#ifdef _DEBUG
/** automap pixel color 8-bit (palette entry) */
char gbPixelCol;
/** flip - if y < x */
bool _gbRotateMap;
/** valid - if x/y are i... | 23.981481 | 116 | 0.609266 | pionere |
03f35212d5fddcc9822f56c56bdf275f527fde93 | 244 | cpp | C++ | primer/ch06/exercise6.25.cpp | zhangrxiang/learn-cpp | 6043009096315cab75c92115d8ecb65fb345aade | [
"Apache-2.0"
] | null | null | null | primer/ch06/exercise6.25.cpp | zhangrxiang/learn-cpp | 6043009096315cab75c92115d8ecb65fb345aade | [
"Apache-2.0"
] | null | null | null | primer/ch06/exercise6.25.cpp | zhangrxiang/learn-cpp | 6043009096315cab75c92115d8ecb65fb345aade | [
"Apache-2.0"
] | null | null | null | //
// Created by zing on 5/21/2020.
//
#include <iostream>
using namespace std;
int main(int argc, char *argv[]) {
string str;
for (int i = 0; i != argc; i++) {
str += argv[i];
}
cout << str << endl;
return 0;
}
| 13.555556 | 37 | 0.512295 | zhangrxiang |
03f6af84193b21e7db5661a2f272d288bb969f3c | 964 | cpp | C++ | codeforces/A - Parity/Accepted.cpp | kzvd4729/Problem-Solving | 13b105e725a4c2f8db7fecc5d7a8f932b9fef4ab | [
"MIT"
] | 1 | 2022-02-11T16:55:36.000Z | 2022-02-11T16:55:36.000Z | codeforces/A - Parity/Accepted.cpp | kzvd4729/Problem-Solving | 13b105e725a4c2f8db7fecc5d7a8f932b9fef4ab | [
"MIT"
] | null | null | null | codeforces/A - Parity/Accepted.cpp | kzvd4729/Problem-Solving | 13b105e725a4c2f8db7fecc5d7a8f932b9fef4ab | [
"MIT"
] | null | null | null | /****************************************************************************************
* @author: kzvd4729 created: Feb/15/2019 00:51
* solution_verdict: Accepted language: GNU C++14
* run... | 35.703704 | 111 | 0.378631 | kzvd4729 |
03f9f14214d1ec694b02fbe34284f24699273f55 | 1,203 | cpp | C++ | src/common/low_precision_transformations/src/variadic_split.cpp | ryanloney/openvino-1 | 4e0a740eb3ee31062ba0df88fcf438564f67edb7 | [
"Apache-2.0"
] | 1 | 2022-02-26T17:33:44.000Z | 2022-02-26T17:33:44.000Z | src/common/low_precision_transformations/src/variadic_split.cpp | ryanloney/openvino-1 | 4e0a740eb3ee31062ba0df88fcf438564f67edb7 | [
"Apache-2.0"
] | 18 | 2022-01-21T08:42:58.000Z | 2022-03-28T13:21:31.000Z | src/common/low_precision_transformations/src/variadic_split.cpp | ryanloney/openvino-1 | 4e0a740eb3ee31062ba0df88fcf438564f67edb7 | [
"Apache-2.0"
] | 1 | 2020-12-13T22:16:54.000Z | 2020-12-13T22:16:54.000Z | // Copyright (C) 2018-2022 Intel Corporation
// SPDX-License-Identifier: Apache-2.0
//
#include "low_precision/variadic_split.hpp"
#include "ngraph/node.hpp"
#include <ngraph/pattern/op/wrap_type.hpp>
#include "low_precision/network_helper.hpp"
namespace ngraph {
namespace pass {
namespace low_precision {
NGRAPH_R... | 30.846154 | 115 | 0.716542 | ryanloney |
03fed44f9750c22e983dccbafcbdc592396eee76 | 784 | hpp | C++ | cppsrc/js-wrappers/wrapColour.hpp | sjoerd108/jimp-native | d489a68923e377d5a7f4fd0f9583382fc3773906 | [
"MIT"
] | 11 | 2021-06-05T19:32:08.000Z | 2022-03-24T02:01:10.000Z | cppsrc/js-wrappers/wrapColour.hpp | sjoerd108/jimp-native | d489a68923e377d5a7f4fd0f9583382fc3773906 | [
"MIT"
] | 1 | 2021-11-13T13:12:48.000Z | 2022-02-07T23:46:17.000Z | cppsrc/js-wrappers/wrapColour.hpp | sjoerd108/jimp-native | d489a68923e377d5a7f4fd0f9583382fc3773906 | [
"MIT"
] | null | null | null | #pragma once
#include <napi.h>
#include "../util/referenceFactory.hpp"
void wrapBrightness (const Napi::CallbackInfo& info, ReferenceFactory& referenceFactory);
void wrapOpacity (const Napi::CallbackInfo& info, ReferenceFactory& referenceFactory);
void wrapOpaque (const Napi::CallbackInfo& info, ReferenceFactory& re... | 39.2 | 90 | 0.8125 | sjoerd108 |
ff001b84a7f0daa0657944aca81ec5320060dfd9 | 2,452 | cc | C++ | third_party/openscreen/src/streaming/cast/clock_drift_smoother.cc | zipated/src | 2b8388091c71e442910a21ada3d97ae8bc1845d3 | [
"BSD-3-Clause"
] | 2,151 | 2020-04-18T07:31:17.000Z | 2022-03-31T08:39:18.000Z | third_party/openscreen/src/streaming/cast/clock_drift_smoother.cc | cangulcan/src | 2b8388091c71e442910a21ada3d97ae8bc1845d3 | [
"BSD-3-Clause"
] | 395 | 2020-04-18T08:22:18.000Z | 2021-12-08T13:04:49.000Z | third_party/openscreen/src/streaming/cast/clock_drift_smoother.cc | cangulcan/src | 2b8388091c71e442910a21ada3d97ae8bc1845d3 | [
"BSD-3-Clause"
] | 338 | 2020-04-18T08:03:10.000Z | 2022-03-29T12:33:22.000Z | // Copyright 2014 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 "streaming/cast/clock_drift_smoother.h"
#include <cmath>
#include "platform/api/logging.h"
namespace openscreen {
namespace cast_streaming {
... | 35.028571 | 79 | 0.708401 | zipated |
ff026199929a25bfa9158d1fd9e13f01eace5d05 | 16,590 | cpp | C++ | 181041025_main.cpp | perihanmirkelam/FitTheShapes | 3f1efb6fb049951c75bb93fcdd81cb760efc0e89 | [
"Apache-2.0"
] | 1 | 2020-01-18T12:59:33.000Z | 2020-01-18T12:59:33.000Z | 181041025_main.cpp | perihanmirkelam/FitTheShapes | 3f1efb6fb049951c75bb93fcdd81cb760efc0e89 | [
"Apache-2.0"
] | 7 | 2018-12-22T15:49:35.000Z | 2018-12-22T16:07:01.000Z | 181041025_main.cpp | perihanmirkelam/FitTheShapes | 3f1efb6fb049951c75bb93fcdd81cb760efc0e89 | [
"Apache-2.0"
] | null | null | null | #include <iostream>
#include <fstream>
#include <string>
#include <cmath>
#include <math.h>
using namespace std;
//area
double bigRectangleArea=0.0;
double bigCircleArea=0.0;
double bigTriangleArea=0.0;
double rectangleArea=0.0;
double circleArea=0.0;
double triangleArea=0.0;
double bigShapeArea=0.0;
double smallShap... | 29.731183 | 127 | 0.629717 | perihanmirkelam |
ff03540b571d45c24718bbf7fdbb31d23409c3ea | 7,690 | cpp | C++ | Tools/ExtractStrain/DataExtractor.cpp | danielfrascarelli/esys-particle | e56638000fd9c4af77e21c75aa35a4f8922fd9f0 | [
"Apache-2.0"
] | null | null | null | Tools/ExtractStrain/DataExtractor.cpp | danielfrascarelli/esys-particle | e56638000fd9c4af77e21c75aa35a4f8922fd9f0 | [
"Apache-2.0"
] | null | null | null | Tools/ExtractStrain/DataExtractor.cpp | danielfrascarelli/esys-particle | e56638000fd9c4af77e21c75aa35a4f8922fd9f0 | [
"Apache-2.0"
] | null | null | null | /////////////////////////////////////////////////////////////
// //
// Copyright (c) 2003-2017 by The University of Queensland //
// Centre for Geoscience Computing //
// http://earth.uq.edu.au/centre-geoscience-computing //
// ... | 30.275591 | 134 | 0.593628 | danielfrascarelli |
ff05932e8e55201de1611d969f06a644cc0a651f | 2,062 | cpp | C++ | src/UI/Core/TextArea.cpp | Goof-fr/OPHD | ab3414181b04ab2757b124d81fd5592f930c5370 | [
"BSD-3-Clause"
] | 2 | 2020-01-27T19:44:45.000Z | 2020-01-27T19:44:49.000Z | src/UI/Core/TextArea.cpp | Goof-fr/OPHD | ab3414181b04ab2757b124d81fd5592f930c5370 | [
"BSD-3-Clause"
] | null | null | null | src/UI/Core/TextArea.cpp | Goof-fr/OPHD | ab3414181b04ab2757b124d81fd5592f930c5370 | [
"BSD-3-Clause"
] | null | null | null | // This is an open source non-commercial project. Dear PVS-Studio, please check it.
// PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com
#include "TextArea.h"
#include "../../Common.h"
#include "../../Constants.h"
#include "../../FontManager.h"
#include "NAS2D/Utility.h"
#include "NAS2D/Render... | 19.826923 | 167 | 0.618817 | Goof-fr |
ff07abe555f00304ab1ffa0cd453e90331af827c | 629 | cc | C++ | CommonTools/RecoAlgos/plugins/EtMinCaloJetRefSelector.cc | nistefan/cmssw | ea13af97f7f2117a4f590a5e654e06ecd9825a5b | [
"Apache-2.0"
] | 3 | 2018-08-24T19:10:26.000Z | 2019-02-19T11:45:32.000Z | CommonTools/RecoAlgos/plugins/EtMinCaloJetRefSelector.cc | nistefan/cmssw | ea13af97f7f2117a4f590a5e654e06ecd9825a5b | [
"Apache-2.0"
] | 3 | 2018-08-23T13:40:24.000Z | 2019-12-05T21:16:03.000Z | CommonTools/RecoAlgos/plugins/EtMinCaloJetRefSelector.cc | nistefan/cmssw | ea13af97f7f2117a4f590a5e654e06ecd9825a5b | [
"Apache-2.0"
] | 5 | 2018-08-21T16:37:52.000Z | 2020-01-09T13:33:17.000Z | /* \class EtMinCaloJetRefSelector
*
* selects calo-jet above a minumum Et cut
* and saves a collection of references (RefVector) to selctedobjects
*
* \author: Luca Lista, INFN
*
*/
#include "FWCore/Framework/interface/MakerMacros.h"
#include "CommonTools/UtilAlgos/interface/EtMinSelector.h"
#include "CommonToo... | 29.952381 | 69 | 0.748808 | nistefan |
ff095491d08d633f594690163bef526fdbc7d828 | 234 | cc | C++ | kythe/cxx/indexer/cxx/testdata/docs/tvar_docs_template_partial_spec_var.cc | BearerPipelineTest/kythe | c496c5c00177e437e28bb3a75a5ef811d5d55ff7 | [
"Apache-2.0"
] | 1,168 | 2015-01-27T10:19:25.000Z | 2018-10-30T15:07:11.000Z | kythe/cxx/indexer/cxx/testdata/docs/tvar_docs_template_partial_spec_var.cc | BearerPipelineTest/kythe | c496c5c00177e437e28bb3a75a5ef811d5d55ff7 | [
"Apache-2.0"
] | 2,811 | 2015-01-29T16:19:04.000Z | 2018-11-01T19:48:06.000Z | kythe/cxx/indexer/cxx/testdata/docs/tvar_docs_template_partial_spec_var.cc | BearerPipelineTest/kythe | c496c5c00177e437e28bb3a75a5ef811d5d55ff7 | [
"Apache-2.0"
] | 165 | 2015-01-27T19:06:27.000Z | 2018-10-30T17:31:10.000Z | // We associate template partial specialization documentation correctly.
/// Empty.
template <typename T> int S = 1;
//- @+2"/// Special." documents Var
/// Special.
template <typename T> int S<T*> = 2;
//- Var.node/kind variable
| 19.5 | 72 | 0.675214 | BearerPipelineTest |
ff0c0878f1d9530eb4881b6dcc9c9e167a1b09fc | 1,031 | cpp | C++ | C++/0320-Generalized-Abbreviation/soln-1.cpp | wyaadarsh/LeetCode-Solutions | 3719f5cb059eefd66b83eb8ae990652f4b7fd124 | [
"MIT"
] | 5 | 2020-07-24T17:48:59.000Z | 2020-12-21T05:56:00.000Z | C++/0320-Generalized-Abbreviation/soln-1.cpp | zhangyaqi1989/LeetCode-Solutions | 2655a1ffc8678ad1de6c24295071308a18c5dc6e | [
"MIT"
] | null | null | null | C++/0320-Generalized-Abbreviation/soln-1.cpp | zhangyaqi1989/LeetCode-Solutions | 2655a1ffc8678ad1de6c24295071308a18c5dc6e | [
"MIT"
] | 2 | 2020-07-24T17:49:01.000Z | 2020-08-31T19:57:35.000Z | class Solution {
public:
vector<string> generateAbbreviations(string word) {
vector<char> cand;
vector<string> ans;
Dfs(0, word, &cand, &ans);
return ans;
}
private:
void Dfs(int i, const string & word, vector<char> * cand, vector<string> * ans) {
if (i == w... | 24.547619 | 85 | 0.42289 | wyaadarsh |
ff0c29dd2b90603aa1a1ea9fb2018edc6d93b707 | 3,607 | cpp | C++ | LeetCode/C++/1567. Maximum Length of Subarray With Positive Product.cpp | shreejitverma/GeeksforGeeks | d7bcb166369fffa9a031a258e925b6aff8d44e6c | [
"MIT"
] | 2 | 2022-02-18T05:14:28.000Z | 2022-03-08T07:00:08.000Z | LeetCode/C++/1567. Maximum Length of Subarray With Positive Product.cpp | shivaniverma1/Competitive-Programming-1 | d7bcb166369fffa9a031a258e925b6aff8d44e6c | [
"MIT"
] | 6 | 2022-01-13T04:31:04.000Z | 2022-03-12T01:06:16.000Z | LeetCode/C++/1567. Maximum Length of Subarray With Positive Product.cpp | shivaniverma1/Competitive-Programming-1 | d7bcb166369fffa9a031a258e925b6aff8d44e6c | [
"MIT"
] | 2 | 2022-02-14T19:53:53.000Z | 2022-02-18T05:14:30.000Z | //Runtime: 252 ms, faster than 40.00% of C++ online submissions for Maximum Length of Subarray With Positive Product.
//Memory Usage: 58.7 MB, less than 20.00% of C++ online submissions for Maximum Length of Subarray With Positive Product.
//time: O(N)
class Solution {
public:
int getMaxLen(vector<int>& nums) {
... | 32.790909 | 121 | 0.411145 | shreejitverma |
ff0dbeaaa207b26349a0dd1cccc12db72b12809c | 317 | hpp | C++ | include/RED4ext/Scripting/Natives/Generated/game/PSMZones.hpp | jackhumbert/RED4ext.SDK | 2c55eccb83beabbbe02abae7945af8efce638fca | [
"MIT"
] | 42 | 2020-12-25T08:33:00.000Z | 2022-03-22T14:47:07.000Z | include/RED4ext/Scripting/Natives/Generated/game/PSMZones.hpp | jackhumbert/RED4ext.SDK | 2c55eccb83beabbbe02abae7945af8efce638fca | [
"MIT"
] | 38 | 2020-12-28T22:36:06.000Z | 2022-02-16T11:25:47.000Z | include/RED4ext/Scripting/Natives/Generated/game/PSMZones.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>
namespace RED4ext
{
namespace game {
enum class PSMZones : uint32_t
{
Default = 0,
Public = 1,
Safe = 2,
Restricted = 3,
Dangerous = 4,
Any = 4294967295,
};
} // namespace game
} // namespace RED4ext
| 15.85 | 57 | 0.649842 | jackhumbert |
ff0f7991b88f8f3ef53d6c678d7fb436aefc0644 | 8,721 | cpp | C++ | camera/hal/intel/ipu3/common/platformdata/CameraMetadataHelper.cpp | strassek/chromiumos-platform2 | 12c953f41f48b8a6b0bd1c181d09bdb1de38325c | [
"BSD-3-Clause"
] | 4 | 2020-07-24T06:54:16.000Z | 2021-06-16T17:13:53.000Z | camera/hal/intel/ipu3/common/platformdata/CameraMetadataHelper.cpp | strassek/chromiumos-platform2 | 12c953f41f48b8a6b0bd1c181d09bdb1de38325c | [
"BSD-3-Clause"
] | 1 | 2021-04-02T17:35:07.000Z | 2021-04-02T17:35:07.000Z | camera/hal/intel/ipu3/common/platformdata/CameraMetadataHelper.cpp | strassek/chromiumos-platform2 | 12c953f41f48b8a6b0bd1c181d09bdb1de38325c | [
"BSD-3-Clause"
] | 1 | 2020-11-04T22:31:45.000Z | 2020-11-04T22:31:45.000Z | /*
* Copyright (C) 2014-2017 Intel Corporation
*
* 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 l... | 31.035587 | 109 | 0.606582 | strassek |
ff11146ddacd3980ca02e2ec5d3b514224b1520a | 1,325 | hpp | C++ | cpp-source/shell.hpp | bwackwat/event-spiral | 177331035a23f68a0294a0f3e9af948779eef794 | [
"MIT"
] | 3 | 2016-12-08T02:28:27.000Z | 2019-05-15T23:16:11.000Z | cpp-source/shell.hpp | bwackwat/event-spiral | 177331035a23f68a0294a0f3e9af948779eef794 | [
"MIT"
] | 3 | 2017-02-10T18:21:28.000Z | 2017-09-21T00:06:44.000Z | cpp-source/shell.hpp | bwackwat/event-spiral | 177331035a23f68a0294a0f3e9af948779eef794 | [
"MIT"
] | 3 | 2017-02-04T01:37:24.000Z | 2019-05-15T23:17:43.000Z | #pragma once
#include <atomic>
#include "util.hpp"
class Shell{
private:
int pid;
public:
std::atomic<bool> opened;
int input;
int output;
Shell():opened(false){}
bool sopen(){
if(this->opened){
return false;
}
int shell_pipe[2][2];
if(pipe(shell_pipe[0]) < 0){
ERROR("pipe 0")
return true... | 16.358025 | 66 | 0.584906 | bwackwat |
ff128ff1e530f9ee6cdd776d8fa6bbbbf3ae03f4 | 2,135 | hxx | C++ | main/chart2/source/inc/chartview/servicenames_charttypes.hxx | Grosskopf/openoffice | 93df6e8a695d5e3eac16f3ad5e9ade1b963ab8d7 | [
"Apache-2.0"
] | 679 | 2015-01-06T06:34:58.000Z | 2022-03-30T01:06:03.000Z | main/chart2/source/inc/chartview/servicenames_charttypes.hxx | Grosskopf/openoffice | 93df6e8a695d5e3eac16f3ad5e9ade1b963ab8d7 | [
"Apache-2.0"
] | 102 | 2017-11-07T08:51:31.000Z | 2022-03-17T12:13:49.000Z | main/chart2/source/inc/chartview/servicenames_charttypes.hxx | Grosskopf/openoffice | 93df6e8a695d5e3eac16f3ad5e9ade1b963ab8d7 | [
"Apache-2.0"
] | 331 | 2015-01-06T11:40:55.000Z | 2022-03-14T04:07:51.000Z | /**************************************************************
*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to y... | 48.522727 | 133 | 0.629508 | Grosskopf |
ff14623c4a3e531d648f00c5d95c6fcc02d58690 | 2,679 | cc | C++ | thirdparty/aria2/test/array_funTest.cc | deltegic/deltegic | 9b4f3a505a6842db52efbe850150afbab3af5e2f | [
"BSD-3-Clause"
] | null | null | null | thirdparty/aria2/test/array_funTest.cc | deltegic/deltegic | 9b4f3a505a6842db52efbe850150afbab3af5e2f | [
"BSD-3-Clause"
] | 2 | 2021-04-08T08:46:23.000Z | 2021-04-08T08:57:58.000Z | thirdparty/aria2/test/array_funTest.cc | deltegic/deltegic | 9b4f3a505a6842db52efbe850150afbab3af5e2f | [
"BSD-3-Clause"
] | null | null | null | #include "array_fun.h"
#include <cppunit/extensions/HelperMacros.h>
using namespace aria2::expr;
namespace aria2 {
class array_funTest : public CppUnit::TestFixture {
CPPUNIT_TEST_SUITE(array_funTest);
CPPUNIT_TEST(testArray_negate);
CPPUNIT_TEST(testArray_and);
CPPUNIT_TEST(testArrayLength);
CPPUNIT_TEST... | 26.009709 | 76 | 0.702128 | deltegic |
d4300685e603399b0d95c4a51883fd6965c34a02 | 147 | cc | C++ | CondFormats/CSCObjects/src/T_EventSetup_CSCBadStrips.cc | nistefan/cmssw | ea13af97f7f2117a4f590a5e654e06ecd9825a5b | [
"Apache-2.0"
] | 3 | 2018-08-24T19:10:26.000Z | 2019-02-19T11:45:32.000Z | CondFormats/CSCObjects/src/T_EventSetup_CSCBadStrips.cc | nistefan/cmssw | ea13af97f7f2117a4f590a5e654e06ecd9825a5b | [
"Apache-2.0"
] | 3 | 2018-08-23T13:40:24.000Z | 2019-12-05T21:16:03.000Z | CondFormats/CSCObjects/src/T_EventSetup_CSCBadStrips.cc | nistefan/cmssw | ea13af97f7f2117a4f590a5e654e06ecd9825a5b | [
"Apache-2.0"
] | 5 | 2018-08-21T16:37:52.000Z | 2020-01-09T13:33:17.000Z | #include "CondFormats/CSCObjects/interface/CSCBadStrips.h"
#include "FWCore/Utilities/interface/typelookup.h"
TYPELOOKUP_DATA_REG(CSCBadStrips);
| 24.5 | 58 | 0.836735 | nistefan |
d4332047cfa3d0a3a68ad938fae594992542c332 | 1,032 | hpp | C++ | libvvhd/headers/XIsoline.hpp | rosik/vvflow | 87caadf3973b31058a16a1372365ae8a7a157cdb | [
"MIT"
] | 29 | 2020-08-05T16:08:35.000Z | 2022-02-21T06:43:01.000Z | libvvhd/headers/XIsoline.hpp | rosik/vvflow | 87caadf3973b31058a16a1372365ae8a7a157cdb | [
"MIT"
] | 6 | 2021-01-07T21:29:57.000Z | 2021-06-28T20:54:04.000Z | libvvhd/headers/XIsoline.hpp | rosik/vvflow | 87caadf3973b31058a16a1372365ae8a7a157cdb | [
"MIT"
] | 6 | 2020-07-24T06:53:54.000Z | 2022-01-06T06:12:45.000Z | #pragma once
#include "XField.hpp"
#include <list>
#include <deque>
#include <sstream>
class XIsoline {
public:
XIsoline() = delete;
XIsoline(const XIsoline&) = delete;
XIsoline(XIsoline&&) = delete;
XIsoline& operator=(const XIsoline&) = delete;
XIsoline& operator=(XIsoline&&) = delete;
XIs... | 22.933333 | 72 | 0.585271 | rosik |
d4349502e93874e1ef20b7e3d21836fec0a38e0d | 6,400 | cpp | C++ | mysql-server/libbinlogevents/src/compression/iterator.cpp | silenc3502/MYSQL-Arch-Doc-Summary | fcc6bb65f72a385b9f56debc9b2c00cee5914bae | [
"MIT"
] | null | null | null | mysql-server/libbinlogevents/src/compression/iterator.cpp | silenc3502/MYSQL-Arch-Doc-Summary | fcc6bb65f72a385b9f56debc9b2c00cee5914bae | [
"MIT"
] | null | null | null | mysql-server/libbinlogevents/src/compression/iterator.cpp | silenc3502/MYSQL-Arch-Doc-Summary | fcc6bb65f72a385b9f56debc9b2c00cee5914bae | [
"MIT"
] | null | null | null | /* Copyright (c) 2019, 2020, Oracle and/or its affiliates. All rights reserved.
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License, version 2.0,
as published by the Free Software Foundation.
This program is also distributed with certai... | 33.333333 | 79 | 0.712969 | silenc3502 |
d4361a192dfa105e98ff3b883a7529d0d1b4cdae | 1,442 | cc | C++ | chrome/profiling/profiling_process.cc | metux/chromium-deb | 3c08e9b89a1b6f95f103a61ff4f528dbcd57fc42 | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | null | null | null | chrome/profiling/profiling_process.cc | metux/chromium-deb | 3c08e9b89a1b6f95f103a61ff4f528dbcd57fc42 | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | null | null | null | chrome/profiling/profiling_process.cc | metux/chromium-deb | 3c08e9b89a1b6f95f103a61ff4f528dbcd57fc42 | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | null | null | null | // Copyright 2017 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 "chrome/profiling/profiling_process.h"
#include "base/bind.h"
#include "base/files/platform_file.h"
#include "chrome/common/profiling/profiling_... | 30.680851 | 75 | 0.753814 | metux |
d43ce46ed6cf430880372955c8ab51fc2c09aca2 | 1,184 | cpp | C++ | tests/regression/GoToLoops1/test.cpp | SusanTan/noelle | 33c9e10a20bc59590c13bf29fb661fc406a9e687 | [
"MIT"
] | 43 | 2020-09-04T15:21:40.000Z | 2022-03-23T03:53:02.000Z | tests/regression/GoToLoops1/test.cpp | SusanTan/noelle | 33c9e10a20bc59590c13bf29fb661fc406a9e687 | [
"MIT"
] | 15 | 2020-09-17T18:06:15.000Z | 2022-01-24T17:14:36.000Z | tests/regression/GoToLoops1/test.cpp | SusanTan/noelle | 33c9e10a20bc59590c13bf29fb661fc406a9e687 | [
"MIT"
] | 23 | 2020-09-04T15:50:09.000Z | 2022-03-25T13:38:25.000Z | #include <stdio.h>
#include <stdlib.h>
#include <math.h>
void func1();
void func2();
int sccCausing1 = 0;
void func1() {
if (sccCausing1++ > 2) {
sccCausing1 = 0;
func2();
}
}
int sccCausing2 = 1;
void func2() {
if (sccCausing2++ > 2) {
sccCausing2 = 0;
func1();
}
}
int main (int argc, char... | 17.411765 | 62 | 0.537162 | SusanTan |
d43dfc6df505945434b5bd67c2e7305fe96bcf7f | 7,757 | hpp | C++ | src/AFQMC/Numerics/ma_small_mat_ops.hpp | djstaros/qmcpack | 280f67e638bae280448b47fa618f05b848c530d2 | [
"NCSA"
] | null | null | null | src/AFQMC/Numerics/ma_small_mat_ops.hpp | djstaros/qmcpack | 280f67e638bae280448b47fa618f05b848c530d2 | [
"NCSA"
] | 11 | 2020-05-09T20:57:21.000Z | 2020-06-10T00:00:17.000Z | src/AFQMC/Numerics/ma_small_mat_ops.hpp | djstaros/qmcpack | 280f67e638bae280448b47fa618f05b848c530d2 | [
"NCSA"
] | null | null | null | //////////////////////////////////////////////////////////////////////
// This file is distributed under the University of Illinois/NCSA Open Source
// License. See LICENSE file in top directory for details.
//
// Copyright (c) 2016 Jeongnim Kim and QMCPACK developers.
//
// File developed by:
//
// File created by:
/... | 40.401042 | 119 | 0.405569 | djstaros |
d43f88f0da65efa13a81277c2e8a34f637314dfe | 3,186 | cpp | C++ | JAERO/tests/fftwrapper_tests.cpp | Roethenbach/JAERO | 753a4409507a356489f3635b93dc16955c8cf01a | [
"MIT"
] | 152 | 2015-12-02T01:38:42.000Z | 2022-03-29T10:41:37.000Z | JAERO/tests/fftwrapper_tests.cpp | Roethenbach/JAERO | 753a4409507a356489f3635b93dc16955c8cf01a | [
"MIT"
] | 59 | 2015-12-02T02:11:24.000Z | 2022-03-21T02:48:11.000Z | JAERO/tests/fftwrapper_tests.cpp | Roethenbach/JAERO | 753a4409507a356489f3635b93dc16955c8cf01a | [
"MIT"
] | 38 | 2015-12-07T16:24:03.000Z | 2021-12-25T15:44:27.000Z | #include "../fftwrapper.h"
#include "../util/RuntimeError.h"
#include "../DSP.h"
//important for Qt include cpputest last as it mucks up new and causes compiling to fail
#include "CppUTest/TestHarness.h"
TEST_GROUP(Test_FFTWrapper)
{
const double doubles_equal_threshold=0.00001;
void setup()
{
sr... | 57.927273 | 527 | 0.743879 | Roethenbach |
d4403a2e169d36eeb27f9f6322e78bee72d75748 | 7,420 | cpp | C++ | examples/pxScene2d/external/WinSparkle/3rdparty/wxWidgets/src/motif/bmpbuttn.cpp | madanagopaltcomcast/pxCore | c4a3a40a190521c8b6383d126c87612eca5b3c42 | [
"Apache-2.0"
] | 471 | 2019-06-26T09:59:09.000Z | 2022-03-30T04:59:42.000Z | examples/pxScene2d/external/WinSparkle/3rdparty/wxWidgets/src/motif/bmpbuttn.cpp | madanagopaltcomcast/pxCore | c4a3a40a190521c8b6383d126c87612eca5b3c42 | [
"Apache-2.0"
] | 1,432 | 2017-06-21T04:08:48.000Z | 2020-08-25T16:21:15.000Z | examples/pxScene2d/external/WinSparkle/3rdparty/wxWidgets/src/motif/bmpbuttn.cpp | madanagopaltcomcast/pxCore | c4a3a40a190521c8b6383d126c87612eca5b3c42 | [
"Apache-2.0"
] | 317 | 2017-06-20T19:57:17.000Z | 2020-09-16T10:28:30.000Z | /////////////////////////////////////////////////////////////////////////////
// Name: src/motif/bmpbuttn.cpp
// Purpose: wxBitmapButton
// Author: Julian Smart
// Modified by:
// Created: 17/09/98
// Copyright: (c) Julian Smart
// Licence: wxWindows licence
///////////////////////////////////... | 30.916667 | 84 | 0.596092 | madanagopaltcomcast |
d440558273128ecf7d241e3e2ec8c2f1d4cd6ebf | 11,989 | cpp | C++ | src/prog_util.cpp | RabbitBio/RabbitBM | c5cc9e6b23cf1046675a07f2d3eb3a4578f1e96b | [
"MIT"
] | 108 | 2019-05-03T12:36:50.000Z | 2022-03-29T04:54:08.000Z | src/prog_util.cpp | RabbitBio/RabbitBM | c5cc9e6b23cf1046675a07f2d3eb3a4578f1e96b | [
"MIT"
] | 10 | 2019-02-12T10:18:38.000Z | 2021-07-02T12:21:25.000Z | src/prog_util.cpp | RabbitBio/RabbitBM | c5cc9e6b23cf1046675a07f2d3eb3a4578f1e96b | [
"MIT"
] | 13 | 2019-05-20T15:50:44.000Z | 2022-01-07T17:06:13.000Z | /*
* prog_util.c - utility functions for programs
*
* Copyright 2016 Eric Biggers
*
* 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... | 26.881166 | 119 | 0.609058 | RabbitBio |
d440af2356c934fd13611eaccc185007e848b38f | 2,411 | cpp | C++ | inorder_traversal.cpp | akhilesh59/Programming-Helpers | c4af814f99fc8288e28fb6fb8fee61acf9549f2c | [
"MIT"
] | null | null | null | inorder_traversal.cpp | akhilesh59/Programming-Helpers | c4af814f99fc8288e28fb6fb8fee61acf9549f2c | [
"MIT"
] | null | null | null | inorder_traversal.cpp | akhilesh59/Programming-Helpers | c4af814f99fc8288e28fb6fb8fee61acf9549f2c | [
"MIT"
] | 6 | 2021-10-21T13:01:30.000Z | 2021-10-31T08:29:34.000Z |
// RECURSION METHOD
// #include <iostream>
// using namespace std;
// struct Node {
// int data;
// Node *left, *right;
// Node (int data) {
// this->data = data;
// this->left = this->right = nullptr;
// }
// };
// // recursion function
// void inorder(Node* root) {
// if (root ... | 19.601626 | 64 | 0.404811 | akhilesh59 |
d440b79d4eeeecba139bcead65783a7cf67fb3c2 | 5,961 | cpp | C++ | kcalg/sec/zk/ffs/ffsa.cpp | kn1ghtc/kctsb | ee0e5b31dbe293dad0fb6ea5acf5da1652e4e733 | [
"Apache-2.0"
] | 1 | 2021-03-16T00:10:51.000Z | 2021-03-16T00:10:51.000Z | kcalg/sec/zk/ffs/ffsa.cpp | kn1ghtc/kctsb | ee0e5b31dbe293dad0fb6ea5acf5da1652e4e733 | [
"Apache-2.0"
] | null | null | null | kcalg/sec/zk/ffs/ffsa.cpp | kn1ghtc/kctsb | ee0e5b31dbe293dad0fb6ea5acf5da1652e4e733 | [
"Apache-2.0"
] | null | null | null | #include "ffsa.h"
#include "opentsb/kc_sec.h"
#include <iostream>
/*check GMP number for primality*/
bool ffsa_check_prime(mpz_class p)
{
int8_t reps = 25;
int prob = mpz_probab_prime_p(p.get_mpz_t(), reps);
if(prob == 2)
return true;
else if(prob == 0)
return false;
else if(prob... | 23.104651 | 95 | 0.539171 | kn1ghtc |
d4436d170cadeeccca596ad6c3768959e9e8d390 | 3,405 | cpp | C++ | src/syphon/utils/UUID.cpp | asmodehn/syphon | 4d73873547278c5cec353e444cb439ef3c4c28a1 | [
"MIT"
] | null | null | null | src/syphon/utils/UUID.cpp | asmodehn/syphon | 4d73873547278c5cec353e444cb439ef3c4c28a1 | [
"MIT"
] | null | null | null | src/syphon/utils/UUID.cpp | asmodehn/syphon | 4d73873547278c5cec353e444cb439ef3c4c28a1 | [
"MIT"
] | null | null | null | #include "WkCocos/Utils/UUID.h"
#include "cocos/cocos2d.h"
//cocos style platform detection
#if (CC_TARGET_PLATFORM == CC_PLATFORM_WIN32)
//works with MSYS2 MINGW GCC as well
#include <locale>
#elif (CC_TARGET_PLATFORM == CC_PLATFORM_LINUX)
#include <uuid/uuid.h>
#elif (CC_TARGET_PLATFORM == CC_PLATFORM_ANDROID)
//... | 31.82243 | 122 | 0.698678 | asmodehn |
d446a9568df176437c55638ff603caf95c5e8191 | 5,671 | hpp | C++ | include/uxr/agent/transport/util/InterfaceLinux.hpp | vibnwis/Micro-XRCE-DDS-Agent | 57ff677855b75d79657b7c20110241e6c1eec351 | [
"Apache-2.0"
] | null | null | null | include/uxr/agent/transport/util/InterfaceLinux.hpp | vibnwis/Micro-XRCE-DDS-Agent | 57ff677855b75d79657b7c20110241e6c1eec351 | [
"Apache-2.0"
] | null | null | null | include/uxr/agent/transport/util/InterfaceLinux.hpp | vibnwis/Micro-XRCE-DDS-Agent | 57ff677855b75d79657b7c20110241e6c1eec351 | [
"Apache-2.0"
] | null | null | null | // Copyright 2017-present Proyectos y Sistemas de Mantenimiento SL (eProsima).
//
// 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
//
// U... | 33.556213 | 91 | 0.588256 | vibnwis |
d44779df4b7f12d2d13716f781dc7b0b95588ce3 | 42,472 | cpp | C++ | lib/AudioGroupPool.cpp | AxioDL/amuse | 89986bdd650685261311a87b37f504baee342eff | [
"MIT"
] | 36 | 2016-05-05T21:49:16.000Z | 2022-03-20T02:28:41.000Z | lib/AudioGroupPool.cpp | AxioDL/amuse | 89986bdd650685261311a87b37f504baee342eff | [
"MIT"
] | 10 | 2016-06-26T21:05:22.000Z | 2021-08-14T11:46:55.000Z | lib/AudioGroupPool.cpp | AxioDL/amuse | 89986bdd650685261311a87b37f504baee342eff | [
"MIT"
] | 5 | 2016-09-16T08:38:16.000Z | 2021-01-08T22:37:52.000Z | #include "amuse/AudioGroupPool.hpp"
#include "amuse/AudioGroupData.hpp"
#include "amuse/Common.hpp"
#include "amuse/Entity.hpp"
#include <athena/FileReader.hpp>
#include <athena/FileWriter.hpp>
#include <athena/MemoryWriter.hpp>
#include <athena/VectorWriter.hpp>
#include <logvisor/logvisor.hpp>
using namespace std... | 37.387324 | 120 | 0.660105 | AxioDL |
d44786db6d3a7651fa40eaa0835a5e6f06a3fbd4 | 2,243 | cpp | C++ | libs/intrusive/example/doc_function_hooks.cpp | jmuskaan72/Boost | 047e36c01841a8cd6a5c74d4e3034da46e327bc1 | [
"BSL-1.0"
] | 198 | 2015-01-13T05:47:18.000Z | 2022-03-09T04:46:46.000Z | libs/intrusive/example/doc_function_hooks.cpp | xiaoliang2121/Boost | fc90c3fde129c62565c023f091eddc4a7ed9902b | [
"BSL-1.0"
] | 4 | 2015-03-19T08:23:23.000Z | 2019-06-24T07:48:47.000Z | libs/intrusive/example/doc_function_hooks.cpp | xiaoliang2121/Boost | fc90c3fde129c62565c023f091eddc4a7ed9902b | [
"BSL-1.0"
] | 139 | 2015-01-15T20:09:31.000Z | 2022-01-31T15:21:16.000Z | /////////////////////////////////////////////////////////////////////////////
//
// (C) Copyright Ion Gaztanaga 2010-2012
//
// Distributed under the Boost Software License, Version 1.0.
// (See accompanying file LICENSE_1_0.txt or copy at
// http://www.boost.org/LICENSE_1_0.txt)
//
// See http://ww... | 29.12987 | 83 | 0.612572 | jmuskaan72 |
d4496a1f863a7e06e2727f8ec8ec8dcc773f8e61 | 2,757 | hpp | C++ | src/mlpack/core/metrics/iou_metric_impl.hpp | gaurav-singh1998/mlpack | c104a2dcf0b51a98d9d6fcfc01d4e7047cc83872 | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 1 | 2021-12-09T17:58:29.000Z | 2021-12-09T17:58:29.000Z | src/mlpack/core/metrics/iou_metric_impl.hpp | R-Aravind/mlpack | 99d11a9b4d379885cf7f8160d8c71fb792fa1bbc | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | null | null | null | src/mlpack/core/metrics/iou_metric_impl.hpp | R-Aravind/mlpack | 99d11a9b4d379885cf7f8160d8c71fb792fa1bbc | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 1 | 2019-09-17T21:33:59.000Z | 2019-09-17T21:33:59.000Z | /**
* @file core/metrics/iou_metric_impl.hpp
* @author Kartik Dutt
*
* Implementation of Intersection Over Union metric.
*
* mlpack is free software; you may redistribute it and/or modify it under the
* terms of the 3-clause BSD license. You should have received a copy of the
* 3-clause BSD license along with ... | 34.898734 | 79 | 0.608995 | gaurav-singh1998 |
d44ed9ea3d1c11e444823cbd28a6c503669cd4a2 | 10,283 | cpp | C++ | src/test/unit/lang/parser/math_functions_test.cpp | drezap/stan | 9b319ed125e2a7d14d0c9c246d2f462dad668537 | [
"BSD-3-Clause"
] | 1 | 2019-07-05T01:40:40.000Z | 2019-07-05T01:40:40.000Z | src/test/unit/lang/parser/math_functions_test.cpp | drezap/stan | 9b319ed125e2a7d14d0c9c246d2f462dad668537 | [
"BSD-3-Clause"
] | null | null | null | src/test/unit/lang/parser/math_functions_test.cpp | drezap/stan | 9b319ed125e2a7d14d0c9c246d2f462dad668537 | [
"BSD-3-Clause"
] | 1 | 2018-08-28T12:09:08.000Z | 2018-08-28T12:09:08.000Z | #include <gtest/gtest.h>
#include <test/unit/lang/utility.hpp>
TEST(lang_parser, abs_math_function_signatures) {
test_parsable("function-signatures/math/functions/abs");
}
TEST(lang_parser, asin_math_function_signatures) {
test_parsable("function-signatures/math/functions/asin");
}
TEST(lang_parser, asinh_math_f... | 30.333333 | 82 | 0.817563 | drezap |
d44ee6da08df8deb1bbffdb1f585e6f160fcd33d | 30,796 | cpp | C++ | csie/jpeg/nj.cpp | dk00/old-stuff | e1184684c85fe9bbd1ceba58b94d4da84c67784e | [
"Unlicense"
] | null | null | null | csie/jpeg/nj.cpp | dk00/old-stuff | e1184684c85fe9bbd1ceba58b94d4da84c67784e | [
"Unlicense"
] | null | null | null | csie/jpeg/nj.cpp | dk00/old-stuff | e1184684c85fe9bbd1ceba58b94d4da84c67784e | [
"Unlicense"
] | null | null | null | // NanoJPEG -- KeyJ's Tiny Baseline JPEG Decoder
// version 1.3 (2012-03-05)
// by Martin J. Fiedler <martin.fiedler@gmx.net>
//
// This software is published under the terms of KeyJ's Research License,
// version 0.2. Usage of this software is subject to the following conditions:
// 0. There's no warranty whatsoever. ... | 34.141907 | 120 | 0.520425 | dk00 |
d45284ba5583709a12d74e1d5b741b1777075e51 | 683 | cxx | C++ | NeosegPipeline/AntsJointFusionParameters.cxx | KevinPhamCPE/Neosegpipeline | 91b4c4f3e56dd5f3203d240a5aca932c28287bd3 | [
"Apache-2.0"
] | null | null | null | NeosegPipeline/AntsJointFusionParameters.cxx | KevinPhamCPE/Neosegpipeline | 91b4c4f3e56dd5f3203d240a5aca932c28287bd3 | [
"Apache-2.0"
] | null | null | null | NeosegPipeline/AntsJointFusionParameters.cxx | KevinPhamCPE/Neosegpipeline | 91b4c4f3e56dd5f3203d240a5aca932c28287bd3 | [
"Apache-2.0"
] | null | null | null | #include "AntsJointFusionParameters.h"
AntsJointFusionParameters::AntsJointFusionParameters()
{
m_output_dir_default="";
m_output_dir=m_output_dir_default;
m_compute_rois_parc_fusion_default= false ;
m_compute_rois_parc_fusion=m_compute_rois_parc_fusion_default;
}
void AntsJointFusionParameters::setOut... | 20.088235 | 72 | 0.82284 | KevinPhamCPE |
d453fbb44894c49055ea505f25e6961ee52c79f2 | 456 | hpp | C++ | library/ATF/DLGTEMPLATE.hpp | lemkova/Yorozuya | f445d800078d9aba5de28f122cedfa03f26a38e4 | [
"MIT"
] | 29 | 2017-07-01T23:08:31.000Z | 2022-02-19T10:22:45.000Z | library/ATF/DLGTEMPLATE.hpp | kotopes/Yorozuya | 605c97d3a627a8f6545cc09f2a1b0a8afdedd33a | [
"MIT"
] | 90 | 2017-10-18T21:24:51.000Z | 2019-06-06T02:30:33.000Z | library/ATF/DLGTEMPLATE.hpp | kotopes/Yorozuya | 605c97d3a627a8f6545cc09f2a1b0a8afdedd33a | [
"MIT"
] | 44 | 2017-12-19T08:02:59.000Z | 2022-02-24T23:15:01.000Z | // This file auto generated by plugin for ida pro. Generated code only for x64. Please, dont change manually
#pragma once
#include <common/common.h>
START_ATF_NAMESPACE
#pragma pack(push, 2)
const struct DLGTEMPLATE
{
unsigned int style;
unsigned int dwExtendedStyle;
unsigned __i... | 21.714286 | 108 | 0.649123 | lemkova |
d454b0536ea3bd6a168d8daac1a5c6451443e237 | 4,488 | cpp | C++ | UnitTest/Primitive.cpp | garlyon/onion2 | b20d966de6a9ddeee0b66478d50725d1eaaad4c8 | [
"MIT"
] | null | null | null | UnitTest/Primitive.cpp | garlyon/onion2 | b20d966de6a9ddeee0b66478d50725d1eaaad4c8 | [
"MIT"
] | null | null | null | UnitTest/Primitive.cpp | garlyon/onion2 | b20d966de6a9ddeee0b66478d50725d1eaaad4c8 | [
"MIT"
] | null | null | null | #include "stdafx.h"
#include "CppUnitTest.h"
#include "../Collision/Primitive.h"
#include "Tetrahedron.h"
#include <set>
#include <algorithm>
using namespace Microsoft::VisualStudio::CppUnitTestFramework;
namespace UnitTest
{
TEST_CLASS( Neighborhood )
{
template <typename A, typename B>
void check( A a, ... | 28.769231 | 115 | 0.532531 | garlyon |
d4556d997b55c84d1489226659aa8bd4165e704f | 5,888 | cpp | C++ | Phase #3/Items.cpp | Squshy/sqa-baller-squad-v2 | a63cac6d24f282137864453727fa1c35371997fd | [
"MIT"
] | null | null | null | Phase #3/Items.cpp | Squshy/sqa-baller-squad-v2 | a63cac6d24f282137864453727fa1c35371997fd | [
"MIT"
] | null | null | null | Phase #3/Items.cpp | Squshy/sqa-baller-squad-v2 | a63cac6d24f282137864453727fa1c35371997fd | [
"MIT"
] | 1 | 2020-02-27T13:18:06.000Z | 2020-02-27T13:18:06.000Z | /**
* Items Function Definition file for Our Auction Sales Service Project
*
* @author Paul Kerrigan, Henry Zheng, Calvin Lapp
* @date January 24, 2020
* @version 1.0
* @name Items.cpp
*/
#include "Items.h"
#include <string>
#include "Users.h"
#include "AuctionLib.h"
string** bidList;
int bidListCount = 0;
bool ite... | 37.503185 | 152 | 0.563179 | Squshy |
d4560b83baff7d59f3efc50a387b12ff9f04e9f8 | 217 | cpp | C++ | source/Node.cpp | xzrunner/sop | 80f84765548fde33d990663d4a4b8054bb6714d1 | [
"MIT"
] | null | null | null | source/Node.cpp | xzrunner/sop | 80f84765548fde33d990663d4a4b8054bb6714d1 | [
"MIT"
] | null | null | null | source/Node.cpp | xzrunner/sop | 80f84765548fde33d990663d4a4b8054bb6714d1 | [
"MIT"
] | null | null | null | #include "sop/Node.h"
#include <assert.h>
namespace sop
{
Node::Node()
: m_parms(*this)
{
}
void Node::SetParent(const std::shared_ptr<Node>& node)
{
m_parent = node;
m_level = node->m_level + 1;
}
} | 10.85 | 55 | 0.617512 | xzrunner |
d456a7da80592d3581cbfa914084f3334757c7a2 | 7,927 | cpp | C++ | libhpx/scheduler/Scheduler.cpp | luglio/hpx5 | 6cbeebb8e730ee9faa4487dba31a38e3139e1ce7 | [
"BSD-3-Clause"
] | 1 | 2019-11-05T21:11:32.000Z | 2019-11-05T21:11:32.000Z | libhpx/scheduler/Scheduler.cpp | ldalessa/hpx | c8888c38f5c12c27bfd80026d175ceb3839f0b40 | [
"BSD-3-Clause"
] | null | null | null | libhpx/scheduler/Scheduler.cpp | ldalessa/hpx | c8888c38f5c12c27bfd80026d175ceb3839f0b40 | [
"BSD-3-Clause"
] | 3 | 2019-06-21T07:05:43.000Z | 2020-11-21T15:24:04.000Z | // =============================================================================
// High Performance ParalleX Library (libhpx)
//
// Copyright (c) 2013-2017, Trustees of Indiana University,
// All rights reserved.
//
// This software may be modified and distributed under the terms of the BSD
// license. See the C... | 27.054608 | 80 | 0.588369 | luglio |
d457e79f2a5d43b52250b34878bd5ed5d996e0d4 | 1,462 | cpp | C++ | ch16/ex16.53.54.55/main.cpp | zhang1990215/Cpp-Primer | 81e51869c02f2ba75e4fe491dee07eaedce2bbc9 | [
"CC0-1.0"
] | null | null | null | ch16/ex16.53.54.55/main.cpp | zhang1990215/Cpp-Primer | 81e51869c02f2ba75e4fe491dee07eaedce2bbc9 | [
"CC0-1.0"
] | null | null | null | ch16/ex16.53.54.55/main.cpp | zhang1990215/Cpp-Primer | 81e51869c02f2ba75e4fe491dee07eaedce2bbc9 | [
"CC0-1.0"
] | null | null | null | /***************************************************************************
* @file main.cpp
* @author Yue Wang
* @date 16 Feb 2014
Aug, 2015
* @remark This code is for the exercises from C++ Primer 5th Edition
* @note
****************************************************... | 30.458333 | 86 | 0.583447 | zhang1990215 |
d4581f440f129559d780b917380b8f7c797c9d36 | 2,548 | cpp | C++ | Algorithms/KMPAlgorithm/Algo.cpp | TeacherManoj0131/HacktoberFest2020-Contributions | c7119202fdf211b8a6fc1eadd0760dbb706a679b | [
"MIT"
] | 256 | 2020-09-30T19:31:34.000Z | 2021-11-20T18:09:15.000Z | Algorithms/KMPAlgorithm/Algo.cpp | TeacherManoj0131/HacktoberFest2020-Contributions | c7119202fdf211b8a6fc1eadd0760dbb706a679b | [
"MIT"
] | 293 | 2020-09-30T19:14:54.000Z | 2021-06-06T02:34:47.000Z | Algorithms/KMPAlgorithm/Algo.cpp | TeacherManoj0131/HacktoberFest2020-Contributions | c7119202fdf211b8a6fc1eadd0760dbb706a679b | [
"MIT"
] | 1,620 | 2020-09-30T18:37:44.000Z | 2022-03-03T20:54:22.000Z | #include<bits/stdc++.h>
#include<algorithm>
using namespace std;
/*standard declarations*/
typedef long long ll;
typedef long double ld;
typedef vector<ll> vll;
typedef vector<pair<ll,ll> > vllp;
#define fr(i,a,b) for(ll i=a;i<b;i++)
#define frr(i,a,b) for(ll i=a;i>=b;i--)
#define forn(i, n) for (ll i = 0; i < ll(n); ... | 27.106383 | 129 | 0.525118 | TeacherManoj0131 |
d45d7682898972cc69119762cca36a6c940746be | 1,299 | hpp | C++ | import/include/asio_OIR/detail/reactor_fwd.hpp | goodspeed24e/2014iOT | 139f6e2131f8a94cb876328b5f733e3feef77707 | [
"MIT"
] | 1 | 2019-04-15T14:10:58.000Z | 2019-04-15T14:10:58.000Z | import/include/asio_OIR/detail/reactor_fwd.hpp | goodspeed24e/2014iOT | 139f6e2131f8a94cb876328b5f733e3feef77707 | [
"MIT"
] | null | null | null | import/include/asio_OIR/detail/reactor_fwd.hpp | goodspeed24e/2014iOT | 139f6e2131f8a94cb876328b5f733e3feef77707 | [
"MIT"
] | 2 | 2019-10-31T09:11:09.000Z | 2021-09-17T01:00:49.000Z | //
// detail/reactor_fwd.hpp
// ~~~~~~~~~~~~~~~~~~~~~~
//
// Copyright (c) 2003-2011 Christopher M. Kohlhoff (chris at kohlhoff dot com)
//
// Distributed under the Boost Software License, Version 1.0. (See accompanying
// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
//
#ifndef ASIO_DETAIL_REA... | 25.470588 | 79 | 0.769823 | goodspeed24e |
d45f75408662bdc0d88b55bd1b2bc4cb45817322 | 2,864 | cpp | C++ | modules/task_2/ivina_a_fox_alg_omp/main.cpp | allnes/pp_2022_spring | 159191f9c2f218f8b8487f92853cc928a7652462 | [
"BSD-3-Clause"
] | null | null | null | modules/task_2/ivina_a_fox_alg_omp/main.cpp | allnes/pp_2022_spring | 159191f9c2f218f8b8487f92853cc928a7652462 | [
"BSD-3-Clause"
] | null | null | null | modules/task_2/ivina_a_fox_alg_omp/main.cpp | allnes/pp_2022_spring | 159191f9c2f218f8b8487f92853cc928a7652462 | [
"BSD-3-Clause"
] | 2 | 2022-03-31T17:48:22.000Z | 2022-03-31T18:06:07.000Z | // Copyright 2022 Ivina Anastasiya
#include <gtest/gtest.h>
#include <omp.h>
#include <vector>
#include "./Fox_alg_omp.h"
constexpr int NumThreads = 4;
TEST(MatrixMultPar, RandNumCorrectSize) {
const int size = 3;
std::vector<std::vector<double>> MatrixA(size, std::vector<double>(size, 0));
MatrixA = FillMatrix... | 29.525773 | 79 | 0.63757 | allnes |
d461774f952bed1c0d629aa1a558f1dc90ec3f9e | 10,453 | cpp | C++ | src/MapDrawer.cpp | sarthou/semantic_map_drawer | 2e1bce2fdefb25d87194a5ee888b03c2807b0bca | [
"Apache-2.0"
] | null | null | null | src/MapDrawer.cpp | sarthou/semantic_map_drawer | 2e1bce2fdefb25d87194a5ee888b03c2807b0bca | [
"Apache-2.0"
] | null | null | null | src/MapDrawer.cpp | sarthou/semantic_map_drawer | 2e1bce2fdefb25d87194a5ee888b03c2807b0bca | [
"Apache-2.0"
] | null | null | null | #include "route_drawer/MapDrawer.h"
#include <opencv2/imgproc/imgproc.hpp>
void MapDrawer::draw(std::vector<corridor_t> corridors)
{
for(size_t i = 0; i < corridors.size(); i++)
drawOneCorridor(corridors[i]);
}
void MapDrawer::draw(std::vector<openspace_t> openspaces)
{
for(size_t i = 0; i < openspaces.size()... | 38.430147 | 161 | 0.667368 | sarthou |
d46183b40d51fcbd5a500612199530cef146f42f | 6,795 | cpp | C++ | Cartwheel/cartwheel-3d/Core/TurnController.cpp | MontyThibault/centre-of-mass-awareness | 58778f148e65749e1dfc443043e9fc054ca3ff4d | [
"MIT"
] | null | null | null | Cartwheel/cartwheel-3d/Core/TurnController.cpp | MontyThibault/centre-of-mass-awareness | 58778f148e65749e1dfc443043e9fc054ca3ff4d | [
"MIT"
] | null | null | null | Cartwheel/cartwheel-3d/Core/TurnController.cpp | MontyThibault/centre-of-mass-awareness | 58778f148e65749e1dfc443043e9fc054ca3ff4d | [
"MIT"
] | null | null | null | #include "TurnController.h"
TurnController::TurnController(Character* b, IKVMCController* llc, WorldOracle* w) : BehaviourController(b, llc, w){
headingRequested = false;
stillTurning = false;
requestedHeadingValue = 0;
turningBodyTwist = 0;
initialTiming = 0;
}
/**
ask for a heading...
*/
void TurnController::... | 36.532258 | 157 | 0.753054 | MontyThibault |
d4622904c62f26a74067e522b4c5f303b223aaff | 11,086 | cpp | C++ | test/new_lexer_test.cpp | Nicholas-Baron/little-lang | dc7cca0ad4d06987f12edbe990ae6f27ec02d182 | [
"MIT"
] | 1 | 2019-08-09T13:59:32.000Z | 2019-08-09T13:59:32.000Z | test/new_lexer_test.cpp | Nicholas-Baron/little-lang | dc7cca0ad4d06987f12edbe990ae6f27ec02d182 | [
"MIT"
] | 3 | 2019-08-08T04:39:49.000Z | 2019-12-11T20:57:47.000Z | test/new_lexer_test.cpp | Nicholas-Baron/little-lang | dc7cca0ad4d06987f12edbe990ae6f27ec02d182 | [
"MIT"
] | null | null | null | #include "new_lexer.hpp"
#include <catch2/catch.hpp>
TEST_CASE("the lexer will not accept empty inputs") {
std::string buffer;
auto lexer = lexer::from_buffer(buffer);
CHECK(lexer != nullptr);
CHECK(lexer->peek_token() == lexer::token_type::eof);
}
TEST_CASE("the lexer will report locations for tok... | 30.539945 | 79 | 0.638102 | Nicholas-Baron |
d466d3fc9ad349b40da93af5b1f5ae6e4d78ec36 | 5,442 | cc | C++ | msf_distort/src/msf_distort.cc | tdnet12434/multi_sensor_fusion | fea64a56ecab2bd65f96675c207cd0d776c4a969 | [
"Apache-2.0"
] | 1 | 2018-07-11T11:32:26.000Z | 2018-07-11T11:32:26.000Z | msf_distort/src/msf_distort.cc | tdnet12434/multi_sensor_fusion | fea64a56ecab2bd65f96675c207cd0d776c4a969 | [
"Apache-2.0"
] | null | null | null | msf_distort/src/msf_distort.cc | tdnet12434/multi_sensor_fusion | fea64a56ecab2bd65f96675c207cd0d776c4a969 | [
"Apache-2.0"
] | null | null | null | /*
* Copyright (C) 2012-2013 Simon Lynen, ASL, ETH Zurich, Switzerland
* You can contact the author at <slynen at ethz dot ch>
*
* 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... | 37.020408 | 103 | 0.725101 | tdnet12434 |
d46748c94583e2896eab7e3d1025198b606c7612 | 7,205 | cpp | C++ | hw.cpp | microsoft/pxt-jacdac | 5c2b7f928b003d9a089dc00d77bb411db3dbed2e | [
"MIT"
] | 6 | 2020-12-31T03:26:47.000Z | 2022-03-20T03:38:05.000Z | hw.cpp | microsoft/pxt-jacdac | 5c2b7f928b003d9a089dc00d77bb411db3dbed2e | [
"MIT"
] | 21 | 2020-12-14T17:52:35.000Z | 2022-03-22T00:03:00.000Z | hw.cpp | microsoft/pxt-jacdac | 5c2b7f928b003d9a089dc00d77bb411db3dbed2e | [
"MIT"
] | 8 | 2021-02-11T08:47:56.000Z | 2021-11-10T08:36:35.000Z | #include "pxt.h"
#include "jdlow.h"
#include "ZSingleWireSerial.h"
//#define ENABLE_PIN_LOG 1
#define DEVICE_ID DEVICE_ID_JACDAC_PHYS
#define LOG(msg, ...) DMESG("JD: " msg, ##__VA_ARGS__)
//#define LOG(...) ((void)0)
static ZSingleWireSerial *sws;
static cb_t tim_cb;
static volatile uint8_t status;
static uint16_... | 23.545752 | 100 | 0.629146 | microsoft |
d46764d908176863484f6f12857d802e55eeba10 | 7,601 | cpp | C++ | libs/gui/src/font.cpp | blagodarin/yttrium | 534289c3082355e5537a03c0b5855b60f0c344ad | [
"Apache-2.0"
] | null | null | null | libs/gui/src/font.cpp | blagodarin/yttrium | 534289c3082355e5537a03c0b5855b60f0c344ad | [
"Apache-2.0"
] | null | null | null | libs/gui/src/font.cpp | blagodarin/yttrium | 534289c3082355e5537a03c0b5855b60f0c344ad | [
"Apache-2.0"
] | null | null | null | // This file is part of the Yttrium toolkit.
// Copyright (C) Sergei Blagodarin.
// SPDX-License-Identifier: Apache-2.0
#include <yttrium/gui/font.h>
#include <yttrium/base/exceptions.h>
#include <yttrium/geometry/rect.h>
#include <yttrium/image/image.h>
#include <yttrium/renderer/2d.h>
#include <yttrium/renderer/man... | 30.526104 | 170 | 0.662281 | blagodarin |
d46b0a1df8de235cce48be3d860b5b19cd2a3019 | 784 | cc | C++ | solutions/kattis/soundex.cc | zwliew/ctci | 871f4fc957be96c6d0749d205549b7b35dc53d9e | [
"MIT"
] | 4 | 2020-11-07T14:38:02.000Z | 2022-01-03T19:02:36.000Z | solutions/kattis/soundex.cc | zwliew/ctci | 871f4fc957be96c6d0749d205549b7b35dc53d9e | [
"MIT"
] | 1 | 2019-04-17T06:55:14.000Z | 2019-04-17T06:55:14.000Z | solutions/kattis/soundex.cc | zwliew/ctci | 871f4fc957be96c6d0749d205549b7b35dc53d9e | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
using namespace std;
#define debug(...) 0
#ifdef LOCAL
#include "../../_library/cc/debug.h"
#endif
int main() {
cin.tie(nullptr)->sync_with_stdio(false);
#if defined(FILE) && !defined(LOCAL)
freopen(FILE ".in", "r", stdin), freopen(FILE ".out", "w", stdout);
#endif
const vector<string> ... | 22.4 | 80 | 0.505102 | zwliew |
d46ce08bf913569243d9781d5b9258de977cbe7c | 1,335 | cpp | C++ | app/jni/Box2D/GearJoint.cpp | walkingice/nobunagapuke | bb1ab970192f818dad31bdf09184fa12a509c59a | [
"BSD-3-Clause"
] | null | null | null | app/jni/Box2D/GearJoint.cpp | walkingice/nobunagapuke | bb1ab970192f818dad31bdf09184fa12a509c59a | [
"BSD-3-Clause"
] | null | null | null | app/jni/Box2D/GearJoint.cpp | walkingice/nobunagapuke | bb1ab970192f818dad31bdf09184fa12a509c59a | [
"BSD-3-Clause"
] | null | null | null | /**
* Copyright 2010 Mario Zechner (contact@badlogicgames.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
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required... | 31.785714 | 90 | 0.733333 | walkingice |
d46f2d4882e48f3e55477fc22a159829c7d2ca77 | 7,282 | cpp | C++ | dp/gl/src/Shader.cpp | asuessenbach/pipeline | 2e49968cc3b9948a57f7ee6c4cc3258925c92ab2 | [
"BSD-3-Clause"
] | 217 | 2015-01-06T09:26:53.000Z | 2022-03-23T14:03:18.000Z | dp/gl/src/Shader.cpp | asuessenbach/pipeline | 2e49968cc3b9948a57f7ee6c4cc3258925c92ab2 | [
"BSD-3-Clause"
] | 10 | 2015-01-25T12:42:05.000Z | 2017-11-28T16:10:16.000Z | dp/gl/src/Shader.cpp | asuessenbach/pipeline | 2e49968cc3b9948a57f7ee6c4cc3258925c92ab2 | [
"BSD-3-Clause"
] | 44 | 2015-01-13T01:19:41.000Z | 2022-02-21T21:35:08.000Z | // Copyright (c) 2010-2016, NVIDIA CORPORATION. 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 con... | 30.855932 | 92 | 0.634304 | asuessenbach |
d46f9faa425e0f5c23fb0c5f229aa7cc9b820409 | 1,153 | cpp | C++ | OperatorsAndConditions/06.PointDistance/Startup.cpp | Tanya-Zheleva/FMI-Intro-Programming | c326d331ac72bc41e4664b23fc56a4da7d2d6729 | [
"MIT"
] | 2 | 2020-10-27T09:27:14.000Z | 2021-10-09T14:57:15.000Z | OperatorsAndConditions/06.PointDistance/Startup.cpp | Tanya-Zheleva/FMI-Intro-Programming | c326d331ac72bc41e4664b23fc56a4da7d2d6729 | [
"MIT"
] | null | null | null | OperatorsAndConditions/06.PointDistance/Startup.cpp | Tanya-Zheleva/FMI-Intro-Programming | c326d331ac72bc41e4664b23fc56a4da7d2d6729 | [
"MIT"
] | null | null | null | #include <iostream>
#include <cmath>
using namespace std;
int main()
{
double x1 = 0, y1 = 0, x2 = 0, y2 = 0, x = 0, y = 0;
cin >> x1 >> y1 >> x2 >> y2 >> x >> y;
double distance = 0;
if (x >= x1 && x <= x2 && y >= y1 && y <= y2)
{
cout << "distance=" << distance << endl;
}
else
{
if (x > x1 && x < x2 &... | 20.589286 | 68 | 0.447528 | Tanya-Zheleva |
d471b6e9e858654e1c9ae2a9bdaa02e9dbc17322 | 22,747 | cpp | C++ | src/EditorRuntime/GUI/PreferencesGenerated.cpp | akumetsuv/flood | e0d6647df9b7fac72443a0f65c0003b0ead7ed3a | [
"BSD-2-Clause"
] | null | null | null | src/EditorRuntime/GUI/PreferencesGenerated.cpp | akumetsuv/flood | e0d6647df9b7fac72443a0f65c0003b0ead7ed3a | [
"BSD-2-Clause"
] | null | null | null | src/EditorRuntime/GUI/PreferencesGenerated.cpp | akumetsuv/flood | e0d6647df9b7fac72443a0f65c0003b0ead7ed3a | [
"BSD-2-Clause"
] | null | null | null | ///////////////////////////////////////////////////////////////////////////
// C++ code generated with wxFormBuilder (version Jun 30 2011)
// http://www.wxformbuilder.org/
//
// PLEASE DO "NOT" EDIT THIS FILE!
///////////////////////////////////////////////////////////////////////////
#include "Editor/API.h"
... | 43.913127 | 191 | 0.728624 | akumetsuv |
d473e5a5fe110eaa5bd15dc20f09f6a3f1d96622 | 8,211 | cpp | C++ | deltaNote/utils/inter_var.cpp | delta1037/deltaNote_repo | f2626412b4f6d178789ed77bf4835bf54e97919c | [
"MIT"
] | null | null | null | deltaNote/utils/inter_var.cpp | delta1037/deltaNote_repo | f2626412b4f6d178789ed77bf4835bf54e97919c | [
"MIT"
] | null | null | null | deltaNote/utils/inter_var.cpp | delta1037/deltaNote_repo | f2626412b4f6d178789ed77bf4835bf54e97919c | [
"MIT"
] | null | null | null | /**
* @author: delta1037
* @mail:geniusrabbit@qq.com
* @brief:
*/
#ifdef WINDOW_BUILD
#include <Windows.h>
#include <sphelper.h>
#endif
#ifdef LINUX_BUILD
#include <dir.h>
#endif
#include "inter_var.h"
#include "log.h"
#include "aes_encryption.hpp"
std::string is_check_str(IsCheck is_check){
if(is_check == Che... | 29.858182 | 135 | 0.617221 | delta1037 |
d476ece0486eabdca89e214205e8e0cbd745c27d | 2,812 | hpp | C++ | src/main/cpp/RLBotInterface/src/RLBotMessages/TCP/SocketReaderWithTimeout.hpp | VirxEC/RLBot | b2d06110b0c8541a85605b6c00dcb898e7f35946 | [
"MIT"
] | 408 | 2018-02-16T17:55:53.000Z | 2022-03-09T20:50:23.000Z | src/main/cpp/RLBotInterface/src/RLBotMessages/TCP/SocketReaderWithTimeout.hpp | VirxEC/RLBot | b2d06110b0c8541a85605b6c00dcb898e7f35946 | [
"MIT"
] | 280 | 2018-02-27T22:11:14.000Z | 2022-03-28T21:39:05.000Z | src/main/cpp/RLBotInterface/src/RLBotMessages/TCP/SocketReaderWithTimeout.hpp | VirxEC/RLBot | b2d06110b0c8541a85605b6c00dcb898e7f35946 | [
"MIT"
] | 125 | 2018-02-19T19:26:33.000Z | 2022-03-23T20:48:09.000Z | #pragma once
// blocking_reader.h - a class that provides basic support for
// blocking & time-outable single character reads from
// boost::asio::serial_port.
//
// use like this:
//
// blocking_reader reader(port, 500);
//
// char c;
//
// if (!reader.read_char(c))
// return false;
//
// Kevin Godden, www.ridgesol... | 29.291667 | 105 | 0.601351 | VirxEC |
d478c34c9e275be45836a40c4ceb1088c1206cf9 | 1,728 | cpp | C++ | third-party/Empirical/examples/math/math.cpp | koellingh/empirical-p53-simulator | aa6232f661e8fc65852ab6d3e809339557af521b | [
"MIT"
] | null | null | null | third-party/Empirical/examples/math/math.cpp | koellingh/empirical-p53-simulator | aa6232f661e8fc65852ab6d3e809339557af521b | [
"MIT"
] | null | null | null | third-party/Empirical/examples/math/math.cpp | koellingh/empirical-p53-simulator | aa6232f661e8fc65852ab6d3e809339557af521b | [
"MIT"
] | null | null | null | // This file is part of Empirical, https://github.com/devosoft/Empirical
// Copyright (C) Michigan State University, 2016-2017.
// Released under the MIT Software license; see doc/LICENSE
//
//
// Some examples code for using math functions.
#include <iostream>
#include "emp/math/math.hpp"
int main()
{
std::co... | 45.473684 | 102 | 0.488426 | koellingh |
d47a5cf69d13c7bea9bca793f3911943798bc2d2 | 2,915 | cpp | C++ | miditool/miditool.cpp | DannyHavenith/miditool | f3a371912ef5d2d5f23fce30c06a378575debb36 | [
"BSL-1.0"
] | null | null | null | miditool/miditool.cpp | DannyHavenith/miditool | f3a371912ef5d2d5f23fce30c06a378575debb36 | [
"BSL-1.0"
] | null | null | null | miditool/miditool.cpp | DannyHavenith/miditool | f3a371912ef5d2d5f23fce30c06a378575debb36 | [
"BSL-1.0"
] | null | null | null | //
// Copyright (C) 2012 Danny Havenith
//
// Distributed under the Boost Software License, Version 1.0. (See
// accompanying file LICENSE_1_0.txt or copy at
// http://www.boost.org/LICENSE_1_0.txt)
//
#include <iostream>
#include <fstream>
#include <exception>
#include <iomanip> // for setiosflags, setw
#include... | 29.15 | 133 | 0.578731 | DannyHavenith |
d47aa88f80d1f5ab83c66a3f017671032818feff | 16,604 | cpp | C++ | extras/ses_apps/sleeve/sleeve_simple_app.cpp | MalcolmSlaney/audio-to-tactile | 8c1fa37509aa53307f24dc7d54e99f730a8bcc1f | [
"Apache-2.0"
] | 64 | 2019-05-03T17:33:07.000Z | 2022-03-30T17:19:05.000Z | extras/ses_apps/sleeve/sleeve_simple_app.cpp | MalcolmSlaney/audio-to-tactile | 8c1fa37509aa53307f24dc7d54e99f730a8bcc1f | [
"Apache-2.0"
] | null | null | null | extras/ses_apps/sleeve/sleeve_simple_app.cpp | MalcolmSlaney/audio-to-tactile | 8c1fa37509aa53307f24dc7d54e99f730a8bcc1f | [
"Apache-2.0"
] | 10 | 2019-05-17T15:03:34.000Z | 2022-01-29T08:52:03.000Z | // Copyright 2020-2021 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// https://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed t... | 37.822323 | 80 | 0.692122 | MalcolmSlaney |
d47f901d5644fd16a972e82ad4b2cfe6670851c4 | 512 | hxx | C++ | util-lib/include/util/VectorComparator.hxx | andrey-nakin/caen-v1720e-frontend | 00d713df62cf3abe330b08411e1f3732e56b4895 | [
"MIT"
] | null | null | null | util-lib/include/util/VectorComparator.hxx | andrey-nakin/caen-v1720e-frontend | 00d713df62cf3abe330b08411e1f3732e56b4895 | [
"MIT"
] | 8 | 2019-03-06T08:43:29.000Z | 2019-05-07T11:28:08.000Z | util-lib/include/util/VectorComparator.hxx | andrey-nakin/gneis-daq | 00d713df62cf3abe330b08411e1f3732e56b4895 | [
"MIT"
] | null | null | null | #pragma once
#include <cstring>
#include <vector>
namespace util {
class VectorComparator {
VectorComparator() = delete;
public:
template<typename ValueT>
static bool equal(std::vector<ValueT> const& a,
std::vector<ValueT> const& b) {
if (a.size() != b.size()) {
return false;
}
if (a.empty()) {
... | 13.128205 | 76 | 0.605469 | andrey-nakin |
d47fc7db2de430e7d6e0e628f1eee74e63d7ffeb | 2,394 | cpp | C++ | w2/decomposition/correct.cpp | alekseik1/cpp_yellow | 8c7e50ffa06a2633f7279ec9b9dae64922860400 | [
"MIT"
] | null | null | null | w2/decomposition/correct.cpp | alekseik1/cpp_yellow | 8c7e50ffa06a2633f7279ec9b9dae64922860400 | [
"MIT"
] | null | null | null | w2/decomposition/correct.cpp | alekseik1/cpp_yellow | 8c7e50ffa06a2633f7279ec9b9dae64922860400 | [
"MIT"
] | null | null | null | #include <iostream>
#include <string>
#include <map>
#include <vector>
using namespace std;
int main() {
int q;
cin >> q;
map<string, vector<string>> buses_to_stops, stops_to_buses;
for (int i = 0; i < q; ++i) {
string operation_code;
cin >> operation_code;
if (operation_cod... | 28.5 | 78 | 0.390977 | alekseik1 |
d481bf312f155e5eedaad5a503d3e60689a8e52e | 6,271 | cc | C++ | src/SymmetryAxisNormal.cc | maruinen/FullereneViewer | da1554af2de21e90bfa0380a5b635f8bab8e2d8c | [
"Apache-2.0"
] | null | null | null | src/SymmetryAxisNormal.cc | maruinen/FullereneViewer | da1554af2de21e90bfa0380a5b635f8bab8e2d8c | [
"Apache-2.0"
] | null | null | null | src/SymmetryAxisNormal.cc | maruinen/FullereneViewer | da1554af2de21e90bfa0380a5b635f8bab8e2d8c | [
"Apache-2.0"
] | null | null | null | /*
* Project: FullereneViewer
* Version: 1.0
* Copyright: (C) 2011-14 Dr.Sc.KAWAMOTO,Takuji (Ext)
*/
#include <assert.h>
#include "SymmetryAxisNormal.h"
#include "CarbonAllotrope.h"
#include "OpenGLUtil.h"
#include "ShutUp.h"
SymmetryAxisNormal::SymmetryAxisNormal(CarbonAllotrope* ca, SymmetryAxis* axis)
: Inte... | 36.672515 | 103 | 0.69351 | maruinen |
d481ed8e9cfc1e5f8c9a8c56f91d115871d25666 | 4,164 | cpp | C++ | dbi_clients_src/pin/pin-3.6-97554-g31f0a167d-gcc-linux/source/tools/Tests/test_ebx_in_exceptions_xed_interface.cpp | DigitalAlchemist/fuzzwatch | 32517e7b80b680dd658e833ed2dfdd88744e6694 | [
"Apache-2.0"
] | 326 | 2019-08-10T21:17:22.000Z | 2022-03-22T08:40:47.000Z | dbi_clients_src/pin/pin-3.6-97554-g31f0a167d-gcc-linux/source/tools/Tests/test_ebx_in_exceptions_xed_interface.cpp | DigitalAlchemist/fuzzwatch | 32517e7b80b680dd658e833ed2dfdd88744e6694 | [
"Apache-2.0"
] | 42 | 2019-08-13T12:48:19.000Z | 2021-11-03T12:57:59.000Z | dbi_clients_src/pin/pin-3.6-97554-g31f0a167d-gcc-linux/source/tools/Tests/test_ebx_in_exceptions_xed_interface.cpp | DigitalAlchemist/fuzzwatch | 32517e7b80b680dd658e833ed2dfdd88744e6694 | [
"Apache-2.0"
] | 66 | 2019-08-10T21:41:38.000Z | 2022-03-17T13:03:42.000Z | /*BEGIN_LEGAL
Intel Open Source License
Copyright (c) 2002-2017 Intel Corporation. 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 noti... | 31.78626 | 99 | 0.657301 | DigitalAlchemist |
d482493f22cee7d1d51fd9516f9bc6a9e3f4c973 | 2,222 | cpp | C++ | Visual Studio 2010/Projects/bjarneStroustrupC++PartIII/bjarneStroustrupC++PartIII/Chapter20TryThis1.cpp | Ziezi/Programming-Principles-and-Practice-Using-C-by-Bjarne-Stroustrup- | 6fd64801863e883508f15d16398744405f4f9e34 | [
"Unlicense"
] | 9 | 2018-10-24T15:16:47.000Z | 2021-12-14T13:53:50.000Z | Visual Studio 2010/Projects/bjarneStroustrupC++PartIII/bjarneStroustrupC++PartIII/Chapter20TryThis1.cpp | ChrisBKirov/Programming-Principles-and-Practice-Using-C-by-Bjarne-Stroustrup- | 6fd64801863e883508f15d16398744405f4f9e34 | [
"Unlicense"
] | null | null | null | Visual Studio 2010/Projects/bjarneStroustrupC++PartIII/bjarneStroustrupC++PartIII/Chapter20TryThis1.cpp | ChrisBKirov/Programming-Principles-and-Practice-Using-C-by-Bjarne-Stroustrup- | 6fd64801863e883508f15d16398744405f4f9e34 | [
"Unlicense"
] | 7 | 2018-10-29T15:30:37.000Z | 2021-01-18T15:15:09.000Z | /*
TITLE Improving "ugly" code Chapter20TryThis1.cpp
"Bjarne Stroustrup "C++ Programming: Principles and Practice.""
COMMENT
Objective: If you were able how would you change Jill's code
to get rid of the ugliness?
Input: -
Output: -
Author: Chris B. Kirov
Date: 17. 02. 2017
*/
#in... | 21.572816 | 125 | 0.5045 | Ziezi |
d4839516c3e8b8be4f0bab362e61cfb67d92d376 | 1,125 | hpp | C++ | include/Frame.hpp | AgostonSzepessy/oxshans-battle | 15d4cd5eb6375cca5e8e426fc9b8f70e74ca28b0 | [
"MIT"
] | null | null | null | include/Frame.hpp | AgostonSzepessy/oxshans-battle | 15d4cd5eb6375cca5e8e426fc9b8f70e74ca28b0 | [
"MIT"
] | null | null | null | include/Frame.hpp | AgostonSzepessy/oxshans-battle | 15d4cd5eb6375cca5e8e426fc9b8f70e74ca28b0 | [
"MIT"
] | null | null | null | #pragma once
#include <SFML/Graphics.hpp>
#include <SFML/System.hpp>
#include <vector>
/**
* A class that .
*/
/**
* @brief The Frame class Contains the frames in a vector that are needed for an AnimatedSprite
* and the delay between each frame. A frame is an sf::IntRect and the
* AnimatedSprite uses that to fi... | 21.226415 | 95 | 0.661333 | AgostonSzepessy |
d48969fb33f306f43abfda229e1d7d202a16f9b3 | 2,261 | cc | C++ | kernel/rendering/font_factory.cc | NeilKleistGao/NginD | f36024035a9fa21b893190d6a398778b150e624f | [
"MIT"
] | 13 | 2020-08-02T12:46:21.000Z | 2021-09-17T17:44:48.000Z | kernel/rendering/font_factory.cc | NeilKleistGao/NginD | f36024035a9fa21b893190d6a398778b150e624f | [
"MIT"
] | null | null | null | kernel/rendering/font_factory.cc | NeilKleistGao/NginD | f36024035a9fa21b893190d6a398778b150e624f | [
"MIT"
] | 1 | 2020-09-17T04:50:40.000Z | 2020-09-17T04:50:40.000Z | /**
* @copybrief
* MIT License
* Copyright (c) 2020 NeilKleistGao
* 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,... | 32.3 | 112 | 0.709421 | NeilKleistGao |
d489814f335adad50b94a8e3ceb8c95932ba22d2 | 310 | cpp | C++ | src/window_helpers/window_manager.cpp | LesleyLai/unnamed-voxel-game | fd2dda6efddd39af969701e17aa0193f7a7df7db | [
"MIT"
] | 10 | 2021-03-07T04:18:01.000Z | 2021-07-19T16:55:30.000Z | src/window_helpers/window_manager.cpp | LesleyLai/unnamed-voxel-game | fd2dda6efddd39af969701e17aa0193f7a7df7db | [
"MIT"
] | null | null | null | src/window_helpers/window_manager.cpp | LesleyLai/unnamed-voxel-game | fd2dda6efddd39af969701e17aa0193f7a7df7db | [
"MIT"
] | 1 | 2021-03-24T12:43:53.000Z | 2021-03-24T12:43:53.000Z | #include "window_manager.hpp"
#include <GLFW/glfw3.h>
#include <beyond/utils/panic.hpp>
WindowManager::WindowManager()
{
if (!glfwInit()) { beyond::panic("Failed to initialize GLFW\n"); }
}
WindowManager::~WindowManager()
{
glfwTerminate();
}
void WindowManager::pull_events()
{
glfwPollEvents();
}
| 14.761905 | 68 | 0.703226 | LesleyLai |