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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
838ee17b4df7ff150dad023d82c0c99f150f7155 | 536 | cpp | C++ | tests/set/set_full.cpp | olegpublicprofile/stdfwd | 19671bcc8e53bd4c008f07656eaf25a22495e093 | [
"MIT"
] | 11 | 2021-03-15T07:06:21.000Z | 2021-09-27T13:54:25.000Z | tests/set/set_full.cpp | olegpublicprofile/stdfwd | 19671bcc8e53bd4c008f07656eaf25a22495e093 | [
"MIT"
] | null | null | null | tests/set/set_full.cpp | olegpublicprofile/stdfwd | 19671bcc8e53bd4c008f07656eaf25a22495e093 | [
"MIT"
] | 1 | 2021-06-24T10:46:46.000Z | 2021-06-24T10:46:46.000Z | #include "tests/set/set_full.hpp"
#include "tests/set/set_fwd.hpp"
#include <set>
//------------------------------------------------------------------------------
namespace set_tests {
//------------------------------------------------------------------------------
void run_full()
{
TestClass testObj;
int i = ... | 17.866667 | 80 | 0.369403 | olegpublicprofile |
839413393efe998e8760ca09b15a07b5de9fa7c7 | 14,579 | cpp | C++ | Source/ThirdParty/TurboBadger/tb_color_picker.cpp | extobias/Urho3D | 7d08ccac1ff9e9e28076ea879530c6b23974ba42 | [
"MIT"
] | null | null | null | Source/ThirdParty/TurboBadger/tb_color_picker.cpp | extobias/Urho3D | 7d08ccac1ff9e9e28076ea879530c6b23974ba42 | [
"MIT"
] | null | null | null | Source/ThirdParty/TurboBadger/tb_color_picker.cpp | extobias/Urho3D | 7d08ccac1ff9e9e28076ea879530c6b23974ba42 | [
"MIT"
] | null | null | null | #include "tb_color_picker.h"
#include "tb_widget_skin_condition_context.h"
#include "tb_system.h"
#include <stdlib.h>
#define _USE_MATH_DEFINES
#include <math.h>
#include <limits>
#ifdef _MSC_VER
#pragma warning(push)
#pragma warning(disable:4244) // Conversion from 'double' to 'float'
#pragma warning(disable:4702) /... | 25.006861 | 134 | 0.576514 | extobias |
8b5725de4c7da128c9e122aaafb0d9c3f1259ae8 | 24,009 | cpp | C++ | src/structured_grid/region/Region.cpp | fmyuan/amanzi | edb7b815ae6c22956c8519acb9d87b92a9915ed4 | [
"RSA-MD"
] | 37 | 2017-04-26T16:27:07.000Z | 2022-03-01T07:38:57.000Z | src/structured_grid/region/Region.cpp | fmyuan/amanzi | edb7b815ae6c22956c8519acb9d87b92a9915ed4 | [
"RSA-MD"
] | 494 | 2016-09-14T02:31:13.000Z | 2022-03-13T18:57:05.000Z | src/structured_grid/region/Region.cpp | fmyuan/amanzi | edb7b815ae6c22956c8519acb9d87b92a9915ed4 | [
"RSA-MD"
] | 43 | 2016-09-26T17:58:40.000Z | 2022-03-25T02:29:59.000Z | #include <winstd.H>
#include "iostream"
#include "Region.H"
Real Region::geometry_eps = -1;
Array<Real> Region::domlo;
Array<Real> Region::domhi;
Region::Region (const std::string& r_name,
const std::string& r_purpose,
const std::string& r_type)
: name(r_name),
purpose(r_purpose),
type(r_type)
{
if... | 25.541489 | 111 | 0.536924 | fmyuan |
8b594428174bf01eafa2e19ab9ff8f18870f943a | 62,203 | cc | C++ | configuration_interface.cc | pmwheatley/dfterm2 | 81efc85d85c126b22d79be4499755a99119045bf | [
"ICU",
"BSD-3-Clause"
] | null | null | null | configuration_interface.cc | pmwheatley/dfterm2 | 81efc85d85c126b22d79be4499755a99119045bf | [
"ICU",
"BSD-3-Clause"
] | null | null | null | configuration_interface.cc | pmwheatley/dfterm2 | 81efc85d85c126b22d79be4499755a99119045bf | [
"ICU",
"BSD-3-Clause"
] | null | null | null | #include <boost/bind.hpp>
#include <iostream>
#include "configuration_interface.hpp"
#include <algorithm>
#include <cstdio>
#include "logger.hpp"
using namespace dfterm;
using namespace boost;
using namespace std;
using namespace trankesbel;
// Hackity hack for windows
#ifdef _WIN32
#define snprintf _snprintf
#endif
... | 37.069726 | 181 | 0.625227 | pmwheatley |
8b5a063523722bf6749a5e21ebf3c18b41030358 | 1,972 | hh | C++ | inc/MacierzKw.hh | TLubelski/URL2 | 5af50ffeb6814eb0a3e87d77144d877ebba53230 | [
"MIT"
] | null | null | null | inc/MacierzKw.hh | TLubelski/URL2 | 5af50ffeb6814eb0a3e87d77144d877ebba53230 | [
"MIT"
] | null | null | null | inc/MacierzKw.hh | TLubelski/URL2 | 5af50ffeb6814eb0a3e87d77144d877ebba53230 | [
"MIT"
] | null | null | null | #ifndef MACIERZKW_HH
#define MACIERZKW_HH
#include "Wektor.hh"
enum Wyz{Gauss, Sarruss, Bareiss}; //wybor metody liczenia wyznacznika
/*Szablon opisujacy klase macierz kwadratowa*/
template<typename TYP, int ROZMIAR>
class MacierzKw
{
private:
Wektor<TYP, ROZMIAR> tab[ROZMIAR]; //kazdemu wierszowi odpowiada wek... | 29.432836 | 107 | 0.712475 | TLubelski |
8b5b3d2a274c29a97f52e9a6f1c05e20cef9cf39 | 4,184 | cpp | C++ | src/simulation/TersoffPotential.cpp | hermanndetz/xtalsim | f8bb841e504d0f578334e21391f55dff474ae5d7 | [
"MIT"
] | null | null | null | src/simulation/TersoffPotential.cpp | hermanndetz/xtalsim | f8bb841e504d0f578334e21391f55dff474ae5d7 | [
"MIT"
] | null | null | null | src/simulation/TersoffPotential.cpp | hermanndetz/xtalsim | f8bb841e504d0f578334e21391f55dff474ae5d7 | [
"MIT"
] | null | null | null | /**
Copyright (C) 2018 Hermann Detz and Juergen Maier
This software may be modified and distributed under the terms
of the MIT license. See the LICENSE file for details.
*/
#include "TersoffPotential.h"
//------------------------------------------------------------------------------
//! The constructor registers i... | 32.6875 | 80 | 0.568595 | hermanndetz |
8b5dd0dca3ae1eeb1df8d7e4083cb60040d06d85 | 3,365 | cpp | C++ | solution/stack.cpp | ishansheth/ModernCpp-Exercises | c33d63ea9e6fe3115fbac51304a75292f32998cd | [
"MIT"
] | null | null | null | solution/stack.cpp | ishansheth/ModernCpp-Exercises | c33d63ea9e6fe3115fbac51304a75292f32998cd | [
"MIT"
] | null | null | null | solution/stack.cpp | ishansheth/ModernCpp-Exercises | c33d63ea9e6fe3115fbac51304a75292f32998cd | [
"MIT"
] | null | null | null | #include <iostream>
#include <memory>
#include <exception>
#include <cassert>
#include <initializer_list>
#include <utility>
// Stack-Implementierung
// mit Move-Operationen
// und Kopie
// mit Initializer-Liste
namespace preh {
// Immer gut, von std::exception abzuleiten
struct underflow
: std::except... | 18.798883 | 85 | 0.561961 | ishansheth |
8b63dca686f4f549593727df9ccce00ff263b55b | 2,679 | cpp | C++ | EZOJ/Contests/1434/A.cpp | sshockwave/Online-Judge-Solutions | 9d0bc7fd68c3d1f661622929c1cb3752601881d3 | [
"MIT"
] | 6 | 2019-09-30T16:11:00.000Z | 2021-11-01T11:42:33.000Z | EZOJ/Contests/1434/A.cpp | sshockwave/Online-Judge-Solutions | 9d0bc7fd68c3d1f661622929c1cb3752601881d3 | [
"MIT"
] | 4 | 2017-11-21T08:17:42.000Z | 2020-07-28T12:09:52.000Z | EZOJ/Contests/1434/A.cpp | sshockwave/Online-Judge-Solutions | 9d0bc7fd68c3d1f661622929c1cb3752601881d3 | [
"MIT"
] | 4 | 2017-07-26T05:54:06.000Z | 2020-09-30T13:35:38.000Z | #include <iostream>
#include <cstdio>
#include <cstring>
#include <cassert>
#include <cctype>
#include <map>
using namespace std;
typedef long long lint;
#define cout cerr
#define ni (next_num<int>())
template<class T>inline T next_num(){
T i=0;char c;
while(!isdigit(c=getchar())&&c!='-');
bool neg=c=='-';
neg?c=ge... | 19.844444 | 79 | 0.567003 | sshockwave |
8b6790c433ac92f48be34436e464e6eea8285051 | 689 | cpp | C++ | leetcode/436.2.leetcode.cpp | jianershi/algorithm | c3c38723b9c5f1cc745550d89e228f92fd4abfb2 | [
"MIT"
] | 1 | 2021-01-08T06:57:49.000Z | 2021-01-08T06:57:49.000Z | leetcode/436.2.leetcode.cpp | jianershi/algorithm | c3c38723b9c5f1cc745550d89e228f92fd4abfb2 | [
"MIT"
] | null | null | null | leetcode/436.2.leetcode.cpp | jianershi/algorithm | c3c38723b9c5f1cc745550d89e228f92fd4abfb2 | [
"MIT"
] | 1 | 2021-01-08T06:57:52.000Z | 2021-01-08T06:57:52.000Z | /**
436. Find Right Interval
https://leetcode.com/problems/find-right-interval/
https://leetcode.com/problems/find-right-interval/discuss/91819/C%2B%2B-map-solution
impressive solution using sorted map
**/
class Solution {
public:
vector<int> findRightInterval(vector<vector<int>>& intervals) {
map<int, int>... | 29.956522 | 84 | 0.599419 | jianershi |
8b69975d6f56dc1600be2511c15e8483eee16e13 | 861 | cpp | C++ | Minimum_Good_Permutation.cpp | amit9amarwanshi/The_Quiet_Revolution | 7713787ef27c0c144e4c2d852d826ee1c4176a95 | [
"MIT"
] | null | null | null | Minimum_Good_Permutation.cpp | amit9amarwanshi/The_Quiet_Revolution | 7713787ef27c0c144e4c2d852d826ee1c4176a95 | [
"MIT"
] | null | null | null | Minimum_Good_Permutation.cpp | amit9amarwanshi/The_Quiet_Revolution | 7713787ef27c0c144e4c2d852d826ee1c4176a95 | [
"MIT"
] | null | null | null | #include <iostream>
using namespace std;
int main()
{
unsigned int x,n,temp,i;
cin>>x;
while(x--)
{
cin>>n;
int a[n];
for(i=0;i<n;i++)
{
a[i]=i+1;
}
if(n%2==0)
{
for(i=0;i<n;i=i+2)
... | 18.717391 | 43 | 0.235772 | amit9amarwanshi |
8b7bd652ade91466cb8350fd599e3477c157deb5 | 1,346 | cpp | C++ | Logging.cpp | gmittert/swift-repl | 7765f5714eca0d7dc7e9c2ebe5522cfcc5af3fe6 | [
"Apache-2.0"
] | null | null | null | Logging.cpp | gmittert/swift-repl | 7765f5714eca0d7dc7e9c2ebe5522cfcc5af3fe6 | [
"Apache-2.0"
] | null | null | null | Logging.cpp | gmittert/swift-repl | 7765f5714eca0d7dc7e9c2ebe5522cfcc5af3fe6 | [
"Apache-2.0"
] | null | null | null | #include "Logging.h"
#include <iostream>
LoggingArea operator &(LoggingArea l, LoggingArea r)
{
return static_cast<LoggingArea>(static_cast<uint64_t>(l) &
static_cast<uint64_t>(r));
}
LoggingArea operator |(LoggingArea l, LoggingArea r)
{
return static_cast<LoggingArea>(st... | 23.614035 | 127 | 0.647103 | gmittert |
8b7eaeaed31168a2942d95f53b17813d7d861216 | 740 | cpp | C++ | elevation_mapping/src/postprocessing/PostprocessingWorker.cpp | FastSense/elevation_mapping | cd8ff9df4f8a3f7744a6b1369f60feb3e7d82262 | [
"BSD-3-Clause"
] | 604 | 2018-08-06T12:46:24.000Z | 2022-03-26T13:09:10.000Z | elevation_mapping/src/postprocessing/PostprocessingWorker.cpp | wadasworths/elevation_mapping | f4c7031175cc56b0f7a36849ebb1076da313fb77 | [
"BSD-3-Clause"
] | 144 | 2018-08-06T13:36:56.000Z | 2022-03-30T19:00:38.000Z | elevation_mapping/src/postprocessing/PostprocessingWorker.cpp | wadasworths/elevation_mapping | f4c7031175cc56b0f7a36849ebb1076da313fb77 | [
"BSD-3-Clause"
] | 262 | 2018-08-16T07:48:35.000Z | 2022-03-25T01:47:24.000Z | /*
* PostprocessingWorker.cpp
*
* Created on: Dec. 21, 2020
* Author: Yoshua Nava
* Institute: ANYbotics
*/
#include "elevation_mapping/postprocessing/PostprocessingWorker.hpp"
namespace elevation_mapping {
PostprocessingWorker::PostprocessingWorker(ros::NodeHandle nodeHandle)
: functor_(nodeHandle... | 25.517241 | 114 | 0.763514 | FastSense |
8b88d5c587f64e4e83982085d3b73a640e755f3b | 1,455 | cpp | C++ | sg/importer/vdb.cpp | ebachard/ospray_studio | 78928c93b482f9f95aa300c8f58c728dadedbe2f | [
"Apache-2.0"
] | 52 | 2018-10-09T23:56:32.000Z | 2022-03-25T09:27:40.000Z | sg/importer/vdb.cpp | ebachard/ospray_studio | 78928c93b482f9f95aa300c8f58c728dadedbe2f | [
"Apache-2.0"
] | 11 | 2018-11-19T18:51:47.000Z | 2022-03-28T14:03:57.000Z | sg/importer/vdb.cpp | ebachard/ospray_studio | 78928c93b482f9f95aa300c8f58c728dadedbe2f | [
"Apache-2.0"
] | 8 | 2019-02-10T00:16:24.000Z | 2022-02-17T19:50:15.000Z | // Copyright 2009-2021 Intel Corporation
// SPDX-License-Identifier: Apache-2.0
#include "Importer.h"
// ospcommon
#include "rkcommon/os/FileName.h"
#include "sg/scene/volume/Vdb.h"
namespace ospray {
namespace sg {
struct VDBImporter : public Importer
{
VDBImporter() = default;
~VDBImporter() override = default... | 25.526316 | 76 | 0.686598 | ebachard |
8b89aa0d57ca81fd3a3e6ce1395ea6ecbc7a3f0f | 7,990 | cpp | C++ | src/GraphicsPipeline.cpp | underdoeg/controller | 8789f443dfd1ab32b603ec8cc69f9fc2d41088b0 | [
"Unlicense"
] | 5 | 2021-06-05T15:33:35.000Z | 2022-02-09T16:54:32.000Z | src/GraphicsPipeline.cpp | underdoeg/controller | 8789f443dfd1ab32b603ec8cc69f9fc2d41088b0 | [
"Unlicense"
] | 2 | 2021-06-05T19:27:44.000Z | 2021-09-29T04:32:21.000Z | src/GraphicsPipeline.cpp | florianvazelle/VulkanStarter | 9fd5c6d44b11ff5e63d86e35570bfd1d66e2fadb | [
"Unlicense"
] | 1 | 2022-01-01T04:10:21.000Z | 2022-01-01T04:10:21.000Z | #include <vks/GraphicsPipeline.hpp>
#include <base_frag.h>
#include <base_vert.h>
#include <iostream>
#include <vks/Device.hpp>
#include <vks/RenderPass.hpp>
#include <vks/SwapChain.hpp>
using namespace vks;
GraphicsPipeline::GraphicsPipeline(const Device& device, const SwapChain& swapChain, const RenderPass& rende... | 43.423913 | 117 | 0.720651 | underdoeg |
8b8c23e7192caa2fd0c2481173b38b700a8a5285 | 1,972 | hpp | C++ | sample/Qt/djiosdk-qt-sample/MFIO/mfio_panel.hpp | AutoModality/OSDK-ROS-3.4 | 4b5f7a872c960233d2ed786c14e6cfed7b862abc | [
"MIT"
] | 1 | 2018-07-11T22:11:05.000Z | 2018-07-11T22:11:05.000Z | sample/Qt/djiosdk-qt-sample/MFIO/mfio_panel.hpp | AutoModality/OSDK-ROS-3.4 | 4b5f7a872c960233d2ed786c14e6cfed7b862abc | [
"MIT"
] | null | null | null | sample/Qt/djiosdk-qt-sample/MFIO/mfio_panel.hpp | AutoModality/OSDK-ROS-3.4 | 4b5f7a872c960233d2ed786c14e6cfed7b862abc | [
"MIT"
] | null | null | null | /*! @file mfio_panel.hpp
* @version 3.4
* @date Dec 2017
*
*
* @Copyright (c) 2017 DJI
*
* 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 lim... | 29 | 80 | 0.708925 | AutoModality |
8b8d14301ad8ae6be644e901167f46775a402cf0 | 5,316 | cpp | C++ | learn_opengl/src/sample/OpenGLClasses.cpp | Dongee-W/learnOpenGL | 8289b3fbd88bbe561c0f1fad5bd2acb09ea60e7f | [
"MIT"
] | null | null | null | learn_opengl/src/sample/OpenGLClasses.cpp | Dongee-W/learnOpenGL | 8289b3fbd88bbe561c0f1fad5bd2acb09ea60e7f | [
"MIT"
] | null | null | null | learn_opengl/src/sample/OpenGLClasses.cpp | Dongee-W/learnOpenGL | 8289b3fbd88bbe561c0f1fad5bd2acb09ea60e7f | [
"MIT"
] | null | null | null | #include <GLAD/glad.h>
#include <GLFW/glfw3.h>
#include <iostream>
#include "imgui.h"
#include "imgui_impl_glfw.h"
#include "imgui_impl_opengl3.h"
#include <stdio.h>
#include "../opengl/VertexBuffer.h"
#include "../opengl/IndexBuffer.h"
#include "../opengl/VertexArray.h"
#include "../opengl/Shader.h"
#include "../ope... | 25.931707 | 123 | 0.682092 | Dongee-W |
8b913a0f2c1dd5fe7f98057087da324323a8a548 | 2,725 | hpp | C++ | src/rti/geo/point_cloud_disc_factory.hpp | XaverKlemenschits/rti | 0672079da94fd726c597041a6b23ee24d9906e82 | [
"BSD-3-Clause"
] | 3 | 2019-05-16T07:44:36.000Z | 2020-05-08T13:55:12.000Z | src/rti/geo/point_cloud_disc_factory.hpp | XaverKlemenschits/rti | 0672079da94fd726c597041a6b23ee24d9906e82 | [
"BSD-3-Clause"
] | null | null | null | src/rti/geo/point_cloud_disc_factory.hpp | XaverKlemenschits/rti | 0672079da94fd726c597041a6b23ee24d9906e82 | [
"BSD-3-Clause"
] | 4 | 2020-06-24T08:18:41.000Z | 2021-05-28T10:22:13.000Z | #pragma once
#include <type_traits>
#include "i_factory.hpp"
#include "point_cloud_disc_geometry.hpp"
//#include "../io/vtp_point_cloud_reader.hpp"
#include "../io/vtp_writer.hpp"
#include "../trace/point_cloud_context.hpp"
namespace rti { namespace geo {
template<typename numeric_type, typename context_type>
cl... | 37.328767 | 104 | 0.681101 | XaverKlemenschits |
8b93520196101efd2b951b8cce0c4bb9ec32d88d | 11,794 | cpp | C++ | examples/ex_cp_2d.cpp | lxAltria/ftk | 11830bb5b4469ed1e7c94c3c3235a2ebfbd46145 | [
"MIT"
] | null | null | null | examples/ex_cp_2d.cpp | lxAltria/ftk | 11830bb5b4469ed1e7c94c3c3235a2ebfbd46145 | [
"MIT"
] | null | null | null | examples/ex_cp_2d.cpp | lxAltria/ftk | 11830bb5b4469ed1e7c94c3c3235a2ebfbd46145 | [
"MIT"
] | null | null | null | #include <mutex>
#include <ftk/numeric/print.hh>
#include <ftk/numeric/cross_product.hh>
#include <ftk/numeric/vector_norm.hh>
#include <ftk/numeric/linear_interpolation.hh>
#include <ftk/numeric/bilinear_interpolation.hh>
#include <ftk/numeric/inverse_linear_interpolation_solver.hh>
#include <ftk/numeric/inverse_bilin... | 33.793696 | 172 | 0.607682 | lxAltria |
8b93c3673643111be497b8efe32d21ea9110c993 | 282 | cpp | C++ | legacy/ex12-1.cpp | Aldridgexia/learncpp | 2d50e6662343dfcff563876c5d2628ba39780b7c | [
"MIT"
] | null | null | null | legacy/ex12-1.cpp | Aldridgexia/learncpp | 2d50e6662343dfcff563876c5d2628ba39780b7c | [
"MIT"
] | null | null | null | legacy/ex12-1.cpp | Aldridgexia/learncpp | 2d50e6662343dfcff563876c5d2628ba39780b7c | [
"MIT"
] | null | null | null | #include <iostream>
using namespace std;
class CException
{
public:
CException() {}
virtual ~CException() {}
void Reason() {cout<<"CException"<<endl;}
};
void fn1() {
throw CException();
}
int main() {
try {
fn1();
} catch(CException& ce) {
ce.Reason();
}
return 0;
} | 12.818182 | 42 | 0.620567 | Aldridgexia |
8b9c32755691bf554d696278ff28967ec941dffa | 9,321 | cpp | C++ | test/matrixTest.cpp | jkovacic/math | 4d5ee0e68b2db0e3bb4b9bd23d0df2ded2b8586c | [
"Apache-2.0"
] | 2 | 2018-10-21T00:03:32.000Z | 2021-05-19T00:05:29.000Z | test/matrixTest.cpp | jkovacic/math | 4d5ee0e68b2db0e3bb4b9bd23d0df2ded2b8586c | [
"Apache-2.0"
] | null | null | null | test/matrixTest.cpp | jkovacic/math | 4d5ee0e68b2db0e3bb4b9bd23d0df2ded2b8586c | [
"Apache-2.0"
] | null | null | null | /*
Copyright 2014, Jernej Kovacic
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
... | 29.779553 | 98 | 0.5081 | jkovacic |
8b9f57ebd7a9b7b1125e25ec8b296f26b08b28ab | 6,312 | cpp | C++ | src/CX_DataFrameCell.cpp | hardmanko/ofxCX | 0d1276e4ba8c25a0803da7b03088da24d8871f38 | [
"MIT"
] | 7 | 2015-02-19T21:21:34.000Z | 2022-03-18T13:38:20.000Z | src/CX_DataFrameCell.cpp | hardmanko/ofxCX | 0d1276e4ba8c25a0803da7b03088da24d8871f38 | [
"MIT"
] | null | null | null | src/CX_DataFrameCell.cpp | hardmanko/ofxCX | 0d1276e4ba8c25a0803da7b03088da24d8871f38 | [
"MIT"
] | 4 | 2018-02-16T12:56:13.000Z | 2022-03-23T01:27:33.000Z | #include "CX_DataFrameCell.h"
namespace CX {
unsigned int CX_DataFrameCell::_floatingPointPrecision = std::numeric_limits<double>::max_digits10;
/*! Set the precision with which floating point numbers (`float`s and `double`s) are stored, in number of significant digits.
This value will be used for all `CX_DataFrameC... | 35.863636 | 176 | 0.73384 | hardmanko |
8ba3ad9019f2fd1df8beb7d9ec2e72d6a51e1cf7 | 196 | cpp | C++ | BOJ/1712.cpp | ryanpark91/algorithm | 22ee4ede53d47c4b255556be0b3e22395566980e | [
"MIT"
] | 2 | 2018-04-08T14:48:45.000Z | 2018-04-11T16:38:48.000Z | BOJ/1712.cpp | ryanpark91/algorithm | 22ee4ede53d47c4b255556be0b3e22395566980e | [
"MIT"
] | null | null | null | BOJ/1712.cpp | ryanpark91/algorithm | 22ee4ede53d47c4b255556be0b3e22395566980e | [
"MIT"
] | null | null | null | #include <stdio.h>
int main()
{
int a,b,c;
scanf("%d%d%d",&a,&b,&c);
if (c-b<=0) printf("-1");
else {
int num = a/(c-b)+1;
printf("%d",num);
}
return 0;
}
| 14 | 29 | 0.408163 | ryanpark91 |
8baa8998f589d417feac1df49ad1ada6d290353d | 3,938 | hpp | C++ | CppDemo/Intrinsics/ssse3.hpp | Const-me/IntelIntrinsics | f2fab359f3ffd0968beae44033238fb260575378 | [
"MIT"
] | 55 | 2017-04-17T14:30:23.000Z | 2022-02-08T12:40:48.000Z | CppDemo/Intrinsics/ssse3.hpp | Const-me/IntelIntrinsics | f2fab359f3ffd0968beae44033238fb260575378 | [
"MIT"
] | 2 | 2019-11-18T17:54:58.000Z | 2020-07-21T18:11:21.000Z | avs_dx/DxVisuals/Utils/Intrinsics/ssse3.hpp | Const-me/vis_avs_dx | da1fd9f4323d7891dea233147e6ae16790ad9ada | [
"MIT"
] | 5 | 2019-02-16T23:00:11.000Z | 2022-03-27T15:22:10.000Z | // This file is generated automatically by a tool. If you want to change it, fork & modify the tool instead: https://github.com/Const-me/IntelIntrinsics
#pragma once
#include <tmmintrin.h>
#include "Extra/common.hpp"
namespace Intrinsics
{
namespace Sse
{
// Compute the absolute value of packed 8-bit integers in "... | 36.803738 | 161 | 0.713306 | Const-me |
8bacfe196877f31076378c6466c973c4f932e43e | 3,324 | cpp | C++ | labs/lab#2.cpp | robmcdonald5/UTD-CS-1336 | c971ab0bc8b8c05acbf1271a4f9cd45cc9c6be8e | [
"MIT"
] | null | null | null | labs/lab#2.cpp | robmcdonald5/UTD-CS-1336 | c971ab0bc8b8c05acbf1271a4f9cd45cc9c6be8e | [
"MIT"
] | null | null | null | labs/lab#2.cpp | robmcdonald5/UTD-CS-1336 | c971ab0bc8b8c05acbf1271a4f9cd45cc9c6be8e | [
"MIT"
] | null | null | null | /* PART #1
#include <iostream>
using namespace std;
int main() // Calculates total tax on a 95 dollar purchase
{
// Defines constant variables for county/state sales tax
const double stateSalesTax = 0.06;
const double countySalesTax = 0.02;
// Calculation clause
double initialPrice = ... | 33.24 | 213 | 0.554452 | robmcdonald5 |
8bbae20b7ceff021748a541ad429c2f75a84813b | 2,775 | cpp | C++ | src/common/IvUtility/IvStackAllocator.cpp | jsaynysa/Ksiazka | 657b81f5a291170df8a61e9cded09a14c1d3219e | [
"BSD-3-Clause"
] | 344 | 2015-08-17T01:37:08.000Z | 2022-03-09T23:59:09.000Z | src/common/IvUtility/IvStackAllocator.cpp | jsaynysa/Ksiazka | 657b81f5a291170df8a61e9cded09a14c1d3219e | [
"BSD-3-Clause"
] | 10 | 2015-08-25T14:49:35.000Z | 2021-09-10T08:07:10.000Z | src/common/IvUtility/IvStackAllocator.cpp | jsaynysa/Ksiazka | 657b81f5a291170df8a61e9cded09a14c1d3219e | [
"BSD-3-Clause"
] | 74 | 2015-09-23T16:36:13.000Z | 2022-03-07T11:15:35.000Z | //===============================================================================
// @ IvStackAllocator.cpp
//
// Simple heap allocator
// ------------------------------------------------------------------------------
// Copyright (C) 2014 by James M. Van Verth. All rights reserved.
//
// Use of this source code is go... | 39.642857 | 81 | 0.277838 | jsaynysa |
8bc32705c8f57885af5e8df1aa79add090e60453 | 1,563 | cpp | C++ | src/main.cpp | BeepBoopBit/console-engine | b711089b1d61ee43b845a5f970e21f8c9995a559 | [
"Apache-2.0"
] | 3 | 2021-12-15T07:26:26.000Z | 2022-02-19T04:04:57.000Z | src/main.cpp | BeepBoopBit/console-engine | b711089b1d61ee43b845a5f970e21f8c9995a559 | [
"Apache-2.0"
] | null | null | null | src/main.cpp | BeepBoopBit/console-engine | b711089b1d61ee43b845a5f970e21f8c9995a559 | [
"Apache-2.0"
] | null | null | null | #include "../include/consoleScreen.h"
#include "../include/observer.h"
#include "../include/consoleEntity.h"
void printCurrent(CE::ConsoleEntity *entity){
std::cout << "Current: (";
std::cout << entity->getCurrentX() << ", " << entity->getCurrentY() << ")\n";
}
void printPrevious(CE::ConsoleEntity *entity){
... | 30.647059 | 83 | 0.665387 | BeepBoopBit |
8bc7b3b38e83014895e323ec51e20980c245fb67 | 2,227 | hpp | C++ | code/adobe.poly/adobe/algorithm/identity_element.hpp | andyprowl/virtual-concepts | ed3a5690c353b6998abcd3368a9b448f1bb2aa19 | [
"Unlicense"
] | 59 | 2015-04-01T12:55:36.000Z | 2021-06-22T02:46:20.000Z | adobe/algorithm/identity_element.hpp | brycelelbach/asl | df0d271f6c67fbb944039a9455c4eb69ae6df141 | [
"MIT"
] | 1 | 2015-06-29T14:51:55.000Z | 2015-06-29T16:40:26.000Z | adobe/algorithm/identity_element.hpp | brycelelbach/asl | df0d271f6c67fbb944039a9455c4eb69ae6df141 | [
"MIT"
] | 5 | 2016-04-19T09:21:11.000Z | 2021-12-29T09:48:09.000Z | /*
Copyright 2005-2007 Adobe Systems Incorporated
Distributed under the MIT License (see accompanying file LICENSE_1_0_0.txt
or a copy at http://stlab.adobe.com/licenses.html)
*/
/*************************************************************************************************/
#ifndef ADOBE_ALGORITHM_IDEN... | 28.551282 | 99 | 0.529861 | andyprowl |
8bd99ff6b458132ef3c80ed82bf53dc5692cf39b | 482 | cpp | C++ | 09_10_strings_dynamic_memory/03/03.cpp | bilyanhadzhi/intro_to_programming_labs | 083bfaad1fdb423c0d8320b3e882316fa56c0bf8 | [
"MIT"
] | 3 | 2020-11-05T10:11:31.000Z | 2020-11-14T16:10:27.000Z | 09_10_strings_dynamic_memory/03/03.cpp | bilyanhadzhi/intro_to_programming_labs | 083bfaad1fdb423c0d8320b3e882316fa56c0bf8 | [
"MIT"
] | null | null | null | 09_10_strings_dynamic_memory/03/03.cpp | bilyanhadzhi/intro_to_programming_labs | 083bfaad1fdb423c0d8320b3e882316fa56c0bf8 | [
"MIT"
] | 1 | 2021-06-17T13:21:58.000Z | 2021-06-17T13:21:58.000Z | #include <iostream>
#include <cstring>
const int MAX_LEN = 129;
void ceasar(char* text, int key, char* result)
{
const int text_len = strlen(text);
for (int i = 0; i < text_len; i++)
{
int new_ch = text[i] - 'a';
new_ch = (new_ch + key) % 26;
result[i] = new_ch + 'a';
}
r... | 16.62069 | 46 | 0.533195 | bilyanhadzhi |
8bd9d7cb2ed03bf454e73c5c617b2831dca82d4d | 4,953 | cpp | C++ | Stp/Geometry/QuaternionTest.cpp | markazmierczak/Polonite | 240f099cafc5c38dc1ae1cc6fc5773e13f65e9de | [
"MIT"
] | 1 | 2019-07-11T12:47:52.000Z | 2019-07-11T12:47:52.000Z | Stp/Geometry/QuaternionTest.cpp | Polonite/Polonite | 240f099cafc5c38dc1ae1cc6fc5773e13f65e9de | [
"MIT"
] | null | null | null | Stp/Geometry/QuaternionTest.cpp | Polonite/Polonite | 240f099cafc5c38dc1ae1cc6fc5773e13f65e9de | [
"MIT"
] | 1 | 2019-07-11T12:47:53.000Z | 2019-07-11T12:47:53.000Z | // Copyright 2017 Polonite Authors. All rights reserved.
// 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 "Geometry/Quaternion.h"
#include "Base/Test/GTest.h"
namespace stp {
namespace {
cons... | 33.466216 | 86 | 0.666061 | markazmierczak |
8bdc9909e07a9e399c8284a8fa7924e9ca590464 | 354 | hpp | C++ | libs/font/include/sge/font/flags_fwd.hpp | cpreh/spacegameengine | 313a1c34160b42a5135f8223ffaa3a31bc075a01 | [
"BSL-1.0"
] | 2 | 2016-01-27T13:18:14.000Z | 2018-05-11T01:11:32.000Z | libs/font/include/sge/font/flags_fwd.hpp | cpreh/spacegameengine | 313a1c34160b42a5135f8223ffaa3a31bc075a01 | [
"BSL-1.0"
] | null | null | null | libs/font/include/sge/font/flags_fwd.hpp | cpreh/spacegameengine | 313a1c34160b42a5135f8223ffaa3a31bc075a01 | [
"BSL-1.0"
] | 3 | 2018-05-11T01:11:34.000Z | 2021-04-24T19:47:45.000Z | // Copyright Carl Philipp Reh 2006 - 2019.
// Distributed under the Boost Software License, Version 1.0.
// (See accompanying file LICENSE_1_0.txt or copy at
// http://www.boost.org/LICENSE_1_0.txt)
#ifndef SGE_FONT_FLAGS_FWD_HPP_INCLUDED
#define SGE_FONT_FLAGS_FWD_HPP_INCLUDED
namespace sge::fon... | 20.823529 | 61 | 0.728814 | cpreh |
8bde64f7cef3ac532ae1d02735aed81dd61b0fa2 | 5,367 | cpp | C++ | OpenGLExample_29/OpenGLExample_29/src/window_manager.cpp | SnowyLake/OpenGL_Learn | ae389cb45992eb90595482e0b4eca41b967e63b3 | [
"MIT"
] | 1 | 2020-01-22T09:51:35.000Z | 2020-01-22T09:51:35.000Z | OpenGLExample_29/OpenGLExample_29/src/window_manager.cpp | SnowyLake/OpenGL_Learn | ae389cb45992eb90595482e0b4eca41b967e63b3 | [
"MIT"
] | null | null | null | OpenGLExample_29/OpenGLExample_29/src/window_manager.cpp | SnowyLake/OpenGL_Learn | ae389cb45992eb90595482e0b4eca41b967e63b3 | [
"MIT"
] | null | null | null | #include "window_manager.h"
//static
unsigned int WindowManager::CbID = 0;
std::map<unsigned int, WindowManager*> WindowManager::CbMap;
WindowManager* WindowManager::CbPtr = nullptr;
//---------------------------------------------------------------
//public
//-----------------------------------------------------... | 28.700535 | 128 | 0.676914 | SnowyLake |
8be42da2e4dd2505fce75508e7406b9d7016ec86 | 6,401 | cc | C++ | clients/zukou/app.cc | Aki-7/zen | c3cfb95f554198427b4b102da55e4fab0cfc97ff | [
"Apache-2.0"
] | null | null | null | clients/zukou/app.cc | Aki-7/zen | c3cfb95f554198427b4b102da55e4fab0cfc97ff | [
"Apache-2.0"
] | null | null | null | clients/zukou/app.cc | Aki-7/zen | c3cfb95f554198427b4b102da55e4fab0cfc97ff | [
"Apache-2.0"
] | null | null | null | #include <errno.h>
#include <string.h>
#include <zigen-client-protocol.h>
#include <zigen-opengl-client-protocol.h>
#include <zukou.h>
namespace zukou {
App::App() {}
App::~App()
{
if (display_) wl_display_disconnect(display_);
}
static void
global_registry_handler(void *data, struct wl_registry *registry, uint32_... | 24.524904 | 80 | 0.716763 | Aki-7 |
8be7ba0b72f903f3b3d77bb8ed2a7f538efef21e | 408 | cpp | C++ | Tests/Test5/Problem1/Source.cpp | nia-flo/FMI-DataStructuresAndAlgorithms | 1040b14e0b008015a4a035c0db19c7b22d72ba79 | [
"MIT"
] | null | null | null | Tests/Test5/Problem1/Source.cpp | nia-flo/FMI-DataStructuresAndAlgorithms | 1040b14e0b008015a4a035c0db19c7b22d72ba79 | [
"MIT"
] | null | null | null | Tests/Test5/Problem1/Source.cpp | nia-flo/FMI-DataStructuresAndAlgorithms | 1040b14e0b008015a4a035c0db19c7b22d72ba79 | [
"MIT"
] | null | null | null | #include <iostream>
#include <vector>
#include <map>
using namespace std;
int main()
{
int N;
cin >> N;
vector<string> input(N);
map<string, int> occurrences;
for (int i = 0; i < N; i++)
{
cin >> input[i];
occurrences[input[i]]++;
}
for (int i = 0; i < N; i++)
{... | 14.068966 | 45 | 0.470588 | nia-flo |
8be896bf58417f07b171c0a240a07a6780d01b34 | 601 | hpp | C++ | library/ATF/CHolyStoneSaveDataInfo.hpp | lemkova/Yorozuya | f445d800078d9aba5de28f122cedfa03f26a38e4 | [
"MIT"
] | 29 | 2017-07-01T23:08:31.000Z | 2022-02-19T10:22:45.000Z | library/ATF/CHolyStoneSaveDataInfo.hpp | kotopes/Yorozuya | 605c97d3a627a8f6545cc09f2a1b0a8afdedd33a | [
"MIT"
] | 90 | 2017-10-18T21:24:51.000Z | 2019-06-06T02:30:33.000Z | library/ATF/CHolyStoneSaveDataInfo.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>
#include <CHolyStoneSaveData.hpp>
START_ATF_NAMESPACE
namespace Info
{
using CHolyStoneSaveDataDefaultInit2_ptr = void (WINAPIV*)(struct CHolyStoneSaveD... | 40.066667 | 179 | 0.787022 | lemkova |
8bf129cd5cce912a04b5d26c39490507a4f78f1c | 9,211 | cpp | C++ | Uber_Duper_Simulation_Haxe/bin/windows/cpp/obj/src/openfl/_v2/display/DirectRenderer.cpp | as3boyan/Uber-Duper-Simulation | a3942831a1acf08479f06fd8cfe8896ec00ac32c | [
"MIT"
] | null | null | null | Uber_Duper_Simulation_Haxe/bin/windows/cpp/obj/src/openfl/_v2/display/DirectRenderer.cpp | as3boyan/Uber-Duper-Simulation | a3942831a1acf08479f06fd8cfe8896ec00ac32c | [
"MIT"
] | null | null | null | Uber_Duper_Simulation_Haxe/bin/windows/cpp/obj/src/openfl/_v2/display/DirectRenderer.cpp | as3boyan/Uber-Duper-Simulation | a3942831a1acf08479f06fd8cfe8896ec00ac32c | [
"MIT"
] | null | null | null | #include <hxcpp.h>
#ifndef INCLUDED_openfl__v2_Lib
#include <openfl/_v2/Lib.h>
#endif
#ifndef INCLUDED_openfl__v2_display_DirectRenderer
#include <openfl/_v2/display/DirectRenderer.h>
#endif
#ifndef INCLUDED_openfl__v2_display_DisplayObject
#include <openfl/_v2/display/DisplayObject.h>
#endif
#ifndef INCLUDED_openfl__... | 34.241636 | 259 | 0.783628 | as3boyan |
8bf3c8d446e0b66baa373f8113a21745612395cd | 193 | cpp | C++ | Codeforces/749A.cpp | DT3264/ProgrammingContestsSolutions | a297f2da654c2ca2815b9aa375c2b4ca0052269d | [
"MIT"
] | null | null | null | Codeforces/749A.cpp | DT3264/ProgrammingContestsSolutions | a297f2da654c2ca2815b9aa375c2b4ca0052269d | [
"MIT"
] | null | null | null | Codeforces/749A.cpp | DT3264/ProgrammingContestsSolutions | a297f2da654c2ca2815b9aa375c2b4ca0052269d | [
"MIT"
] | null | null | null | #include<stdio.h>
int main(){
int n;
scanf("%d", &n);
printf("%d\n", n/2);
for(int i=1; i<n/2; i++){
printf("2 ");
}
printf(n%2==0 ? "2" : "3");
return 0;
}
| 16.083333 | 31 | 0.404145 | DT3264 |
8bf7f7c6eeae50135ee2c6dcb4f26ffc8dd288b5 | 3,126 | hh | C++ | src/graphics/renderer/ShaderProgram.hh | othieno/clockwork | ac2b7d2e0324fff1440df90670de181dce234dd0 | [
"MIT"
] | 6 | 2016-09-19T09:02:32.000Z | 2021-03-01T05:50:53.000Z | src/graphics/renderer/ShaderProgram.hh | othieno/clockwork | ac2b7d2e0324fff1440df90670de181dce234dd0 | [
"MIT"
] | null | null | null | src/graphics/renderer/ShaderProgram.hh | othieno/clockwork | ac2b7d2e0324fff1440df90670de181dce234dd0 | [
"MIT"
] | 2 | 2016-06-01T02:18:07.000Z | 2021-06-25T13:32:22.000Z | /*
* This file is part of Clockwork.
*
* Copyright (c) 2013-2016 Jeremy Othieno.
*
* The MIT License (MIT)
* 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, includi... | 30.057692 | 90 | 0.727447 | othieno |
bddbb35836ca1cb90820c710abe334a1bd479d56 | 18,513 | cpp | C++ | prj.objed/objedtraincli/src/objedtrainutils.cpp | usilinsergey/objed | a5d0c82382a6546d5d4c649f153eec94c4ade0ee | [
"BSD-2-Clause-FreeBSD"
] | null | null | null | prj.objed/objedtraincli/src/objedtrainutils.cpp | usilinsergey/objed | a5d0c82382a6546d5d4c649f153eec94c4ade0ee | [
"BSD-2-Clause-FreeBSD"
] | null | null | null | prj.objed/objedtraincli/src/objedtrainutils.cpp | usilinsergey/objed | a5d0c82382a6546d5d4c649f153eec94c4ade0ee | [
"BSD-2-Clause-FreeBSD"
] | null | null | null | /*
Copyright (c) 2011-2013, Sergey Usilin. All rights reserved.
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 l... | 34.996219 | 122 | 0.599417 | usilinsergey |
bdef9919af4a373391c9c89b6fb05e69b605fa58 | 476 | hpp | C++ | src/PlayerRenderer/PlayerRenderer.hpp | f0xeri/Mine-Plus-Plus | 52c8323913b30e5c2837925dc88de002fe0e1b78 | [
"MIT"
] | 28 | 2021-04-04T13:55:04.000Z | 2022-02-01T05:51:21.000Z | src/PlayerRenderer/PlayerRenderer.hpp | codingwatching/Mine-Plus-Plus | 7b90c904b660dd5089c44dbf34d494367d0d060b | [
"MIT"
] | 1 | 2021-07-28T15:33:42.000Z | 2021-07-28T15:33:42.000Z | src/PlayerRenderer/PlayerRenderer.hpp | codingwatching/Mine-Plus-Plus | 7b90c904b660dd5089c44dbf34d494367d0d060b | [
"MIT"
] | 1 | 2021-07-30T04:13:14.000Z | 2021-07-30T04:13:14.000Z | //
// Created by Yaroslav on 19.07.2021.
//
#ifndef MINE_PLAYERRENDERER_HPP
#define MINE_PLAYERRENDERER_HPP
#include "../Model/Mesh.hpp"
#include "../Player/Player.hpp"
class PlayerRenderer {
public:
PlayerRenderer(Player *player);
Mesh *mesh;
GLuint VAO{};
std::vector<GLuint> mBuffers;
unsign... | 15.354839 | 37 | 0.680672 | f0xeri |
bdf248ace3fa30e5bd05c082cdb5c0d795d9e1b5 | 783 | cpp | C++ | aws-cpp-sdk-lambda/source/model/PutFunctionCodeSigningConfigRequest.cpp | perfectrecall/aws-sdk-cpp | fb8cbebf2fd62720b65aeff841ad2950e73d8ebd | [
"Apache-2.0"
] | 1 | 2022-02-10T08:06:54.000Z | 2022-02-10T08:06:54.000Z | aws-cpp-sdk-lambda/source/model/PutFunctionCodeSigningConfigRequest.cpp | perfectrecall/aws-sdk-cpp | fb8cbebf2fd62720b65aeff841ad2950e73d8ebd | [
"Apache-2.0"
] | 1 | 2022-01-03T23:59:37.000Z | 2022-01-03T23:59:37.000Z | aws-cpp-sdk-lambda/source/model/PutFunctionCodeSigningConfigRequest.cpp | ravindra-wagh/aws-sdk-cpp | 7d5ff01b3c3b872f31ca98fb4ce868cd01e97696 | [
"Apache-2.0"
] | 1 | 2021-12-30T04:25:33.000Z | 2021-12-30T04:25:33.000Z | /**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/lambda/model/PutFunctionCodeSigningConfigRequest.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <utility>
using namespace Aws::Lambda::Model;
using namespace Aws::Utils::J... | 21.162162 | 77 | 0.775223 | perfectrecall |
bdf37f42a61042adefd30ca7daed44c9dd34d01a | 951 | cpp | C++ | DragonBallNES/src/States/State.cpp | anomage/DragonBallNES | 9ef361964041ed445a36af7c1d515e74a3a88fb4 | [
"CC0-1.0"
] | null | null | null | DragonBallNES/src/States/State.cpp | anomage/DragonBallNES | 9ef361964041ed445a36af7c1d515e74a3a88fb4 | [
"CC0-1.0"
] | null | null | null | DragonBallNES/src/States/State.cpp | anomage/DragonBallNES | 9ef361964041ed445a36af7c1d515e74a3a88fb4 | [
"CC0-1.0"
] | null | null | null | #include "State.h"
State::State(std::shared_ptr<sf::RenderWindow> window)
{
m_Window = window;
m_IsPendingKill = false;
m_IsPushingState = false;
m_NextState = nullptr;
}
void State::init()
{
LOG_INFO("Initialization of state {}.", log());
}
void State::update(const float& dt)
{
updateMousePositions();
}
bool... | 20.234043 | 68 | 0.732913 | anomage |
bdf992b2d4b8fdc3c96b0b9b69691c9d6e51be35 | 9,753 | cpp | C++ | plugins/node/process/process.cpp | 5cript/dukextpp | 266497ade215a1bc125bbfeef74796209a837f7a | [
"MIT"
] | null | null | null | plugins/node/process/process.cpp | 5cript/dukextpp | 266497ade215a1bc125bbfeef74796209a837f7a | [
"MIT"
] | null | null | null | plugins/node/process/process.cpp | 5cript/dukextpp | 266497ade215a1bc125bbfeef74796209a837f7a | [
"MIT"
] | null | null | null | #include "process.hpp"
#include "../../../push_value.hpp"
#include "internals/objects.hpp"
#include <exception>
#include <string>
#include <vector>
#include <cstring>
#include <utility>
#include <chrono>
#include <cstdio>
#include <cerrno>
#include <csignal>
#include <unistd.h>
#include <sys/types.h>
#ifdef __WIN32... | 31.872549 | 140 | 0.490311 | 5cript |
da002750d46d7a341ace530d7406e647a0490360 | 3,278 | cpp | C++ | DataStructures/src/streams/DS_MemoryStream.cpp | Kay01010101/PredictVersion | adde9de5dd39b2f22e103f3294d1beab4f327d62 | [
"MIT"
] | null | null | null | DataStructures/src/streams/DS_MemoryStream.cpp | Kay01010101/PredictVersion | adde9de5dd39b2f22e103f3294d1beab4f327d62 | [
"MIT"
] | null | null | null | DataStructures/src/streams/DS_MemoryStream.cpp | Kay01010101/PredictVersion | adde9de5dd39b2f22e103f3294d1beab4f327d62 | [
"MIT"
] | null | null | null | #include "streams/DS_MemoryStream.h"
#include "streams/DS_FileStream.h"
#include <algorithm>
using std::min;
using namespace DataStructures;
//------------------------------------------------------------------- MemoryStream ------------------------------------------------------------------------
MemoryStream::MemoryS... | 24.102941 | 155 | 0.652532 | Kay01010101 |
da0058ed242edfe91d60297335894a3fae2b94f5 | 919 | cc | C++ | src/p45.jumpGameIi.cc | magic-akari/leetcode | 8ed6af08c9d411461de67de939f88d4d788bbbe3 | [
"MIT"
] | null | null | null | src/p45.jumpGameIi.cc | magic-akari/leetcode | 8ed6af08c9d411461de67de939f88d4d788bbbe3 | [
"MIT"
] | null | null | null | src/p45.jumpGameIi.cc | magic-akari/leetcode | 8ed6af08c9d411461de67de939f88d4d788bbbe3 | [
"MIT"
] | null | null | null | /*
* @lc app=leetcode id=45 lang=cpp
*
* [45] Jump Game II
*/
#include <vector>
using namespace std;
// @lc code=start
class Solution {
public:
auto jump(vector<int> const& nums) -> int {
int start = 0;
int end = 1;
int next_end = end;
int size = nums.size();
int s... | 19.553191 | 58 | 0.461371 | magic-akari |
da047e39293af20b4884464884fbd3f50f4fc344 | 1,888 | hpp | C++ | third_party/boost/simd/function/definition/shuffle.hpp | xmar/pythran | dbf2e8b70ed1e4d4ac6b5f26ead4add940a72592 | [
"BSD-3-Clause"
] | 1 | 2018-01-14T12:49:14.000Z | 2018-01-14T12:49:14.000Z | third_party/boost/simd/function/definition/shuffle.hpp | xmar/pythran | dbf2e8b70ed1e4d4ac6b5f26ead4add940a72592 | [
"BSD-3-Clause"
] | null | null | null | third_party/boost/simd/function/definition/shuffle.hpp | xmar/pythran | dbf2e8b70ed1e4d4ac6b5f26ead4add940a72592 | [
"BSD-3-Clause"
] | 2 | 2017-12-12T12:29:52.000Z | 2019-04-08T15:55:25.000Z | //==================================================================================================
/**
Copyright 2016 NumScale SAS
Distributed under the Boost Software License, Version 1.0.
(See accompanying file LICENSE.md or copy at http://boost.org/LICENSE_1_0.txt)
**/
//====================================... | 31.466667 | 103 | 0.65678 | xmar |
da06caf73d804672b3d717b08ea1fe0ead2c1fac | 3,365 | cpp | C++ | ToyScript/Intepreter.cpp | KenKenhehe/ToyScript | 89d0b039897834d94be34eec3658f91e830030e3 | [
"Apache-2.0"
] | 1 | 2021-03-07T14:28:41.000Z | 2021-03-07T14:28:41.000Z | ToyScript/Intepreter.cpp | KenKenhehe/ToyScript | 89d0b039897834d94be34eec3658f91e830030e3 | [
"Apache-2.0"
] | null | null | null | ToyScript/Intepreter.cpp | KenKenhehe/ToyScript | 89d0b039897834d94be34eec3658f91e830030e3 | [
"Apache-2.0"
] | null | null | null |
#include "Intepreter.h"
#include <typeinfo>
#include <cmath>
Value* Intepreter::Visit(Node* node)
{
if (node == nullptr)
{
return nullptr;
}
const char* str = typeid(*node).name();
if (strcmp(str, "class NumberNode") == 0)
{
return VisitNumberNode(node);
}
else if (strcmp(str, "class PlusNode") == 0)
{
... | 22.891156 | 73 | 0.679941 | KenKenhehe |
da0a7678dcb1ef8d87a8de59f033dde2c57423f4 | 2,988 | cpp | C++ | tests/utils.test.cpp | lineCode/webrtc-datachannels | 0f814632361c829c3aff1764cb662bd6290d54d9 | [
"Apache-2.0"
] | 1 | 2020-11-05T21:48:16.000Z | 2020-11-05T21:48:16.000Z | tests/utils.test.cpp | lineCode/webrtc-datachannels | 0f814632361c829c3aff1764cb662bd6290d54d9 | [
"Apache-2.0"
] | null | null | null | tests/utils.test.cpp | lineCode/webrtc-datachannels | 0f814632361c829c3aff1764cb662bd6290d54d9 | [
"Apache-2.0"
] | null | null | null | /*
* Copyright (c) 2018 Denis Trofimov (den.a.trofimov@yandex.ru)
* Distributed under the MIT License.
* See accompanying file LICENSE.md or copy at http://opensource.org/licenses/MIT
*/
#include "algo/DispatchQueue.hpp"
#include "algo/NetworkOperation.hpp"
#include "storage/path.hpp"
#include <chrono>
#include <c... | 29.88 | 92 | 0.68909 | lineCode |
da13a0645725296ebbdf21b463f45cb21c8a781f | 660 | hh | C++ | include/export/ssh/event.hh | troian/sshd | 07a399fa00a4ef836a7cbc5af83f324f35332818 | [
"MIT"
] | 2 | 2017-03-14T20:47:01.000Z | 2017-08-10T14:29:27.000Z | include/export/ssh/event.hh | troian/sshd | 07a399fa00a4ef836a7cbc5af83f324f35332818 | [
"MIT"
] | null | null | null | include/export/ssh/event.hh | troian/sshd | 07a399fa00a4ef836a7cbc5af83f324f35332818 | [
"MIT"
] | null | null | null | //
// Created by Artur Troian on 10/9/16.
//
#pragma once
#include <ssh/types.hpp>
namespace ssh {
/**
* \brief
*/
class event : public base_class {
public:
event();
virtual ~event();
public:
void fd_add(int fd, ssh_event_callback cb, void *userdata);
void fd_add(int16_t events, int fd, ssh_event_callback cb... | 15 | 76 | 0.672727 | troian |
da167bc0e8f0fc8c84d99992adea6d183e2c3c1a | 36 | hpp | C++ | include/cglass/version_generator.hpp | Betterton-Lab/C-GLASS | 56f7b93cd7383e4487b4c6ba5a1d8c556d9937cc | [
"BSD-3-Clause"
] | 4 | 2020-05-23T18:56:31.000Z | 2022-01-13T04:06:50.000Z | include/cglass/version_generator.hpp | Betterton-Lab/C-GLASS | 56f7b93cd7383e4487b4c6ba5a1d8c556d9937cc | [
"BSD-3-Clause"
] | 5 | 2020-06-30T17:32:03.000Z | 2021-04-02T20:18:33.000Z | include/cglass/version_generator.hpp | Betterton-Lab/C-GLASS | 56f7b93cd7383e4487b4c6ba5a1d8c556d9937cc | [
"BSD-3-Clause"
] | 2 | 2020-11-11T19:57:11.000Z | 2021-03-18T01:55:37.000Z | extern const char cglass_version[];
| 18 | 35 | 0.805556 | Betterton-Lab |
da1a1358f8589a0360016d6038ac3ff372bfc8ec | 986 | hpp | C++ | src/lib/model/hpp/veterinario.hpp | iagoizi/poo-petshop-cpp | 1eb9f6858ed6f55f3c1d07024b18ef67b0533358 | [
"MIT"
] | null | null | null | src/lib/model/hpp/veterinario.hpp | iagoizi/poo-petshop-cpp | 1eb9f6858ed6f55f3c1d07024b18ef67b0533358 | [
"MIT"
] | null | null | null | src/lib/model/hpp/veterinario.hpp | iagoizi/poo-petshop-cpp | 1eb9f6858ed6f55f3c1d07024b18ef67b0533358 | [
"MIT"
] | null | null | null | #ifndef VETERINARIO_HPP
#define VETERINARIO_HPP
#include "lib.hpp"
#include "ordemservico.hpp"
#include "cliente.hpp"
#include "usuario.hpp"
/*Classe que herda funções e atributos da classe usuario*/
class Veterinario : virtual public Usuario
{
public:
/*Construtor de veterinario -> Todos os campos ... | 30.8125 | 100 | 0.709939 | iagoizi |
da3482de222488dc5ba669f86b40995e92825610 | 647 | cpp | C++ | src/xr_3da/xrGame/stalker_property_evaluator_const.cpp | ixray-team/ixray-b2945 | ad5ef375994ee9cd790c4144891e9f00e7efe565 | [
"Linux-OpenIB"
] | 1 | 2022-03-26T17:00:19.000Z | 2022-03-26T17:00:19.000Z | src/xr_3da/xrGame/stalker_property_evaluator_const.cpp | ixray-team/ixray-b2945 | ad5ef375994ee9cd790c4144891e9f00e7efe565 | [
"Linux-OpenIB"
] | null | null | null | src/xr_3da/xrGame/stalker_property_evaluator_const.cpp | ixray-team/ixray-b2945 | ad5ef375994ee9cd790c4144891e9f00e7efe565 | [
"Linux-OpenIB"
] | 1 | 2022-03-26T17:00:21.000Z | 2022-03-26T17:00:21.000Z | ////////////////////////////////////////////////////////////////////////////
// Module : stalker_property_evaluator_const.cpp
// Created : 25.03.2004
// Modified : 25.03.2004
// Author : Dmitriy Iassenev
// Description : Stalker const property evaluator
//////////////////////////////////////////////////////... | 30.809524 | 88 | 0.567233 | ixray-team |
da365df387c6554f5b8816ea9b365f3dc9b68dc3 | 1,797 | cpp | C++ | DataStructures/Week3/Stack.cpp | Csumbavamba/mediadesignschool | 458dcdbebc6582622b51ce410f192cee400a4985 | [
"MIT"
] | null | null | null | DataStructures/Week3/Stack.cpp | Csumbavamba/mediadesignschool | 458dcdbebc6582622b51ce410f192cee400a4985 | [
"MIT"
] | null | null | null | DataStructures/Week3/Stack.cpp | Csumbavamba/mediadesignschool | 458dcdbebc6582622b51ce410f192cee400a4985 | [
"MIT"
] | null | null | null | #include <iostream>
#include "Stack.h"
Stack::Stack()
{
root = nullptr;
}
Stack::~Stack()
{
}
void Stack::Push(int data)
{
CNode * currentNode = root;
// Create node for insertion
CNode * newNode = new CNode();
newNode->SetData(data);
// Insert node before the root
newNode->SetNextNode(currentNode);
ro... | 15.626087 | 96 | 0.628269 | Csumbavamba |
da3bd6d993038b7362da9d8a9f46d42c0e76413b | 17 | cpp | C++ | innative/llvm.cpp | Connicpu/innative | ab245205a0298fc9f3512509ce9a26ccba529f74 | [
"Apache-2.0"
] | 381 | 2018-12-13T19:53:48.000Z | 2022-03-21T07:33:39.000Z | innative/llvm.cpp | Connicpu/innative | ab245205a0298fc9f3512509ce9a26ccba529f74 | [
"Apache-2.0"
] | 62 | 2018-10-16T15:42:25.000Z | 2021-03-29T23:55:56.000Z | innative/llvm.cpp | Connicpu/innative | ab245205a0298fc9f3512509ce9a26ccba529f74 | [
"Apache-2.0"
] | 13 | 2018-12-13T17:43:49.000Z | 2020-06-13T15:10:38.000Z | #include "llvm.h" | 17 | 17 | 0.705882 | Connicpu |
da3d798a13c8c2f5cb2b8623d62b410dd5f495a6 | 249 | cpp | C++ | blockchain/chain/chain_system_tables.cpp | xleakOfficial/xmax-mainchain | 16bb71da7f4c9f7c897d1de7b4e88b721d20cfdf | [
"MIT"
] | 14 | 2018-06-16T04:49:50.000Z | 2021-04-10T03:18:40.000Z | blockchain/chain/chain_system_tables.cpp | xleakOfficial/xmax-mainchain | 16bb71da7f4c9f7c897d1de7b4e88b721d20cfdf | [
"MIT"
] | null | null | null | blockchain/chain/chain_system_tables.cpp | xleakOfficial/xmax-mainchain | 16bb71da7f4c9f7c897d1de7b4e88b721d20cfdf | [
"MIT"
] | 7 | 2018-06-14T10:15:32.000Z | 2020-11-06T17:07:09.000Z | /**
* @file
* @copyright defined in xmax/LICENSE
*/
#include <unitedb/database.hpp>
#include <chain_tables.hpp>
#include <tables/account.hpp>
namespace chain
{
void InitSystemTables(unitedb::Database& db)
{
db.InitTable<AccountTable>();
}
} | 15.5625 | 45 | 0.710843 | xleakOfficial |
da4143d3377b1a10cabe4ea72d145b7c42e713be | 205 | cpp | C++ | main.cpp | FroxCode/Portfolio-MOSH | 76748ccc1e1ec05cc0803ca0819c4ad6be99cab9 | [
"MIT"
] | null | null | null | main.cpp | FroxCode/Portfolio-MOSH | 76748ccc1e1ec05cc0803ca0819c4ad6be99cab9 | [
"MIT"
] | null | null | null | main.cpp | FroxCode/Portfolio-MOSH | 76748ccc1e1ec05cc0803ca0819c4ad6be99cab9 | [
"MIT"
] | null | null | null | #include "Game.h"
//Created by Dale Sinnott
//Started on Monday 29th Feb
//Last Edit 18th March 10:30
//Game Description
//Feature list
//Known Issues
int main()
{
Game& game = Game();
game.run();
} | 12.058824 | 28 | 0.673171 | FroxCode |
da4853d89fc596e85990cb09a15fe0fbb2429a4a | 50 | hpp | C++ | include/ompu/ui/synth.hpp | ompu/ompu | c45d292a0af1b50039db9aa79e444fb7019615e9 | [
"MIT"
] | 4 | 2017-09-28T13:53:32.000Z | 2018-02-14T21:29:25.000Z | include/ompu/ui/synth.hpp | ompu/ompu | c45d292a0af1b50039db9aa79e444fb7019615e9 | [
"MIT"
] | null | null | null | include/ompu/ui/synth.hpp | ompu/ompu | c45d292a0af1b50039db9aa79e444fb7019615e9 | [
"MIT"
] | null | null | null | #pragma once
#include "ompu/ui/synth/wheel.hpp"
| 10 | 34 | 0.72 | ompu |
da4dfb2022ffdad7c33fd72097b1cb5c0439d690 | 1,787 | cpp | C++ | source/widgetzeug/source/ColorSchemeWidget.cpp | kateyy/libzeug | ffb697721cd8ef7d6e685fd5e2c655d711565634 | [
"MIT"
] | null | null | null | source/widgetzeug/source/ColorSchemeWidget.cpp | kateyy/libzeug | ffb697721cd8ef7d6e685fd5e2c655d711565634 | [
"MIT"
] | null | null | null | source/widgetzeug/source/ColorSchemeWidget.cpp | kateyy/libzeug | ffb697721cd8ef7d6e685fd5e2c655d711565634 | [
"MIT"
] | null | null | null |
#include <widgetzeug/ColorSchemeWidget.h>
#include <QDebug>
#include <widgetzeug/ColorScheme.h>
#include "ui_ColorSchemeWidget.h"
namespace widgetzeug
{
ColorSchemeWidget::ColorSchemeWidget(QWidget * parent)
: m_ui{ new Ui_ColorSchemeWidget() }
, m_scheme{ nullptr }
{
m_ui->setupUi(this);
setClasses(5);... | 21.023529 | 65 | 0.728595 | kateyy |
da5086548fa7e4724c0fda64e79ab5c30daf1446 | 1,103 | cpp | C++ | sdk/packages/planner_cost/gems/dot_product_cost.cpp | ddr95070/RMIsaac | ee3918f685f0a88563248ddea11d089581077973 | [
"FSFAP"
] | null | null | null | sdk/packages/planner_cost/gems/dot_product_cost.cpp | ddr95070/RMIsaac | ee3918f685f0a88563248ddea11d089581077973 | [
"FSFAP"
] | null | null | null | sdk/packages/planner_cost/gems/dot_product_cost.cpp | ddr95070/RMIsaac | ee3918f685f0a88563248ddea11d089581077973 | [
"FSFAP"
] | 1 | 2022-01-28T16:37:51.000Z | 2022-01-28T16:37:51.000Z | /*
Copyright (c) 2020, NVIDIA CORPORATION. All rights reserved.
NVIDIA CORPORATION and its licensors retain all intellectual property
and proprietary rights in and to this software, related documentation
and any modifications thereto. Any use, reproduction, disclosure or
distribution of this software and related docum... | 36.766667 | 76 | 0.728921 | ddr95070 |
da53041a082c6640e91fa83952f82cc6334d09ee | 1,692 | hpp | C++ | okvis_multisensor_processing/include/okvis/gravity_error_term.hpp | arielji/okvis | 14bb8ca659c1539ee39c8ebf7409c9dbeb7563d5 | [
"BSD-3-Clause"
] | 1 | 2021-04-02T14:58:42.000Z | 2021-04-02T14:58:42.000Z | okvis_multisensor_processing/include/okvis/gravity_error_term.hpp | arielji/okvis | 14bb8ca659c1539ee39c8ebf7409c9dbeb7563d5 | [
"BSD-3-Clause"
] | null | null | null | okvis_multisensor_processing/include/okvis/gravity_error_term.hpp | arielji/okvis | 14bb8ca659c1539ee39c8ebf7409c9dbeb7563d5 | [
"BSD-3-Clause"
] | 9 | 2019-08-05T17:01:09.000Z | 2021-11-17T19:48:23.000Z | #ifndef GRAVITY_ERROR_TERM_H_
#define GRAVITY_ERROR_TERM_H_
#include "Eigen/Core"
#include "ceres/autodiff_cost_function.h"
namespace okvis {
class PoseGraphGravityTerm {
public:
PoseGraphGravityTerm(const Eigen::Vector3d& g_measured,
const Eigen::Matrix<double, 3, 3>& sqrt_information)
... | 29.684211 | 99 | 0.706265 | arielji |
da5675d5b4270a0218aca269ff30cdf7af16b714 | 1,103 | cpp | C++ | tao/x11/pi/interceptor_proxy.cpp | ClausKlein/taox11 | 669cfd2d0be258722c7ee32b23f2e5cb83e4520f | [
"MIT"
] | 20 | 2019-11-13T12:31:20.000Z | 2022-02-27T12:30:39.000Z | tao/x11/pi/interceptor_proxy.cpp | ClausKlein/taox11 | 669cfd2d0be258722c7ee32b23f2e5cb83e4520f | [
"MIT"
] | 46 | 2019-11-15T20:40:18.000Z | 2022-03-31T19:04:36.000Z | tao/x11/pi/interceptor_proxy.cpp | ClausKlein/taox11 | 669cfd2d0be258722c7ee32b23f2e5cb83e4520f | [
"MIT"
] | 5 | 2019-11-12T15:00:50.000Z | 2022-01-17T17:33:05.000Z | /**
* @file interceptor_proxy.cpp
* @author Martin Corino
*
* @brief TAO PI Interceptor proxy
*
* @copyright Copyright (c) Remedy IT Expertise BV
*/
#include "tao/x11/pi/interceptor_proxy.h"
#include "tao/x11/user_exception_proxy_out.h"
namespace TAOX11_NAMESPACE
{
namespace PortableInterceptor_impl
... | 21.211538 | 80 | 0.613781 | ClausKlein |
da573dd1ff4979caaa4ed8953fb88874ee3a1e35 | 2,267 | hpp | C++ | inc/Helpers/ForwardControlConfiguration.hpp | ACubeSAT/ecss-services | 92d81c1ff455d9baef9417e656388c98ec552751 | [
"MIT"
] | null | null | null | inc/Helpers/ForwardControlConfiguration.hpp | ACubeSAT/ecss-services | 92d81c1ff455d9baef9417e656388c98ec552751 | [
"MIT"
] | null | null | null | inc/Helpers/ForwardControlConfiguration.hpp | ACubeSAT/ecss-services | 92d81c1ff455d9baef9417e656388c98ec552751 | [
"MIT"
] | null | null | null | #ifndef ECSS_SERVICES_FORWARDCONTROLCONFIGURATION_HPP
#define ECSS_SERVICES_FORWARDCONTROLCONFIGURATION_HPP
#include "ECSS_Definitions.hpp"
#include "ErrorHandler.hpp"
#include "Helpers/Parameter.hpp"
#include "etl/map.h"
#include "etl/vector.h"
/**
* The Application Process configuration. It's basically a map, stor... | 47.229167 | 119 | 0.785179 | ACubeSAT |
da58dbcf2a437df04d9d2dad1e3146aaf27a8e03 | 9,403 | cpp | C++ | Game/Source/ThirdPersonShooter/TestSuite/Tests/TestTArrayReplication.cpp | CGeyez/UnrealGDKThirdPersonShooter | b6fa6d0923915959b913d6e5bc30063978ac6c83 | [
"MIT"
] | 19 | 2018-07-31T16:12:13.000Z | 2021-07-01T13:36:46.000Z | Game/Source/ThirdPersonShooter/TestSuite/Tests/TestTArrayReplication.cpp | CGeyez/UnrealGDKThirdPersonShooter | b6fa6d0923915959b913d6e5bc30063978ac6c83 | [
"MIT"
] | 19 | 2018-08-06T09:28:59.000Z | 2020-10-16T10:51:46.000Z | Game/Source/ThirdPersonShooter/TestSuite/Tests/TestTArrayReplication.cpp | CGeyez/UnrealGDKThirdPersonShooter | b6fa6d0923915959b913d6e5bc30063978ac6c83 | [
"MIT"
] | 20 | 2018-08-05T19:28:07.000Z | 2021-08-06T08:53:16.000Z | // Copyright (c) Improbable Worlds Ltd, All Rights Reserved
#include "TestTArrayReplication.h"
#include "GDKTestRunner.h"
#include "GameFramework/GameModeBase.h"
#include "UnrealNetwork.h"
#include "SpatialNetDriver.h"
#include "SpatialPackageMapClient.h"
#include <improbable/c_worker.h>
void ATestTArrayReplication... | 37.462151 | 163 | 0.764437 | CGeyez |
da5fe382f3e9dc3204ef4bc1cb765cc8e007aa85 | 2,031 | cpp | C++ | hphp/util/cache/cache-type.cpp | barkinet/hhvm | b04bae25f3d388bf695520ccee6622592645ce49 | [
"PHP-3.01",
"Zend-2.0"
] | 1 | 2015-05-20T04:15:20.000Z | 2015-05-20T04:15:20.000Z | hphp/util/cache/cache-type.cpp | barkinet/hhvm | b04bae25f3d388bf695520ccee6622592645ce49 | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | hphp/util/cache/cache-type.cpp | barkinet/hhvm | b04bae25f3d388bf695520ccee6622592645ce49 | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | /*
+----------------------------------------------------------------------+
| HipHop for PHP |
+----------------------------------------------------------------------+
| Copyright (c) 2010-2013 Facebook, Inc. (http://www.facebook.com) |
+---------... | 31.246154 | 75 | 0.512063 | barkinet |
da609c1efa16522e5dc86af044780638c9f0df63 | 19,427 | cpp | C++ | Neon/src/Neon/Platform/Vulkan/VulkanSwapChain.cpp | FilipHusnjak/Neon | 3981a76f4a35302e0fc70d4e32b2b2ac19b53089 | [
"Apache-2.0"
] | 8 | 2020-09-11T10:36:38.000Z | 2021-12-16T12:59:31.000Z | Neon/src/Neon/Platform/Vulkan/VulkanSwapChain.cpp | FilipHusnjak/Neon | 3981a76f4a35302e0fc70d4e32b2b2ac19b53089 | [
"Apache-2.0"
] | null | null | null | Neon/src/Neon/Platform/Vulkan/VulkanSwapChain.cpp | FilipHusnjak/Neon | 3981a76f4a35302e0fc70d4e32b2b2ac19b53089 | [
"Apache-2.0"
] | 1 | 2021-01-06T13:36:56.000Z | 2021-01-06T13:36:56.000Z | #include "neopch.h"
#include "Neon/Platform/Vulkan/VulkanCommandBuffer.h"
#include "Neon/Platform/Vulkan/VulkanContext.h"
#include "VulkanSwapChain.h"
#include <glfw/glfw3.h>
namespace Neon
{
VulkanSwapChain::~VulkanSwapChain()
{
m_Device->GetHandle().waitIdle();
m_Device->GetHandle().destroySwapchainKHR(m_Han... | 39.485772 | 136 | 0.771143 | FilipHusnjak |
da6ff9db1cc25c45dd8e4f49e7c60843fb18c89d | 1,415 | cpp | C++ | Box2D/Collision/Shapes/Shape.cpp | louis-langholtz/Box2D | 7c74792bf177cf36640d735de2bba0225bf7f852 | [
"Zlib"
] | 32 | 2016-10-20T05:55:04.000Z | 2021-11-25T16:34:41.000Z | Box2D/Collision/Shapes/Shape.cpp | louis-langholtz/Box2D | 7c74792bf177cf36640d735de2bba0225bf7f852 | [
"Zlib"
] | 50 | 2017-01-07T21:40:16.000Z | 2018-01-31T10:04:05.000Z | Box2D/Collision/Shapes/Shape.cpp | louis-langholtz/Box2D | 7c74792bf177cf36640d735de2bba0225bf7f852 | [
"Zlib"
] | 7 | 2017-02-09T10:02:02.000Z | 2020-07-23T22:49:04.000Z | /*
* Original work Copyright (c) 2006-2009 Erin Catto http://www.box2d.org
* Modified work Copyright (c) 2017 Louis Langholtz https://github.com/louis-langholtz/Box2D
*
* This software is provided 'as-is', without any express or implied
* warranty. In no event will the authors be held liable for any damages
* ar... | 39.305556 | 92 | 0.725088 | louis-langholtz |
da7637a20c4577dd131bf99eacd86f31f913edcf | 8,477 | cpp | C++ | source/src/B3D_HDF5_plugin/cudaCompressFunctions.cpp | adamkglaser/B3D | 4bca9ac8010bb8181453c2b34839c09152897218 | [
"MIT"
] | 3 | 2019-09-23T18:06:28.000Z | 2021-09-28T17:34:55.000Z | source/src/B3D_HDF5_plugin/cudaCompressFunctions.cpp | adamkglaser/B3D | 4bca9ac8010bb8181453c2b34839c09152897218 | [
"MIT"
] | 4 | 2020-05-19T21:41:16.000Z | 2020-05-19T21:53:25.000Z | source/src/B3D_HDF5_plugin/cudaCompressFunctions.cpp | adamkglaser/B3D | 4bca9ac8010bb8181453c2b34839c09152897218 | [
"MIT"
] | 1 | 2020-10-09T23:01:34.000Z | 2020-10-09T23:01:34.000Z | #include "cudaCompressFunctions.h"
using namespace cudaCompress;
void compressImageLL3D(
Instance* pInstance,
std::vector<uint>& i_bitStream, // bitStream for compressed data
cudaPitchedPtr dppImage, // input image in GPU memory
cudaPitchedPtr dppBuffer,
cudaPitchedPtr dppScratch,
ushort* dpSymbols,
cudaExten... | 43.25 | 207 | 0.728442 | adamkglaser |
da77332e4852627d7d59388ae6d045775e073802 | 439 | cpp | C++ | Chapter-6-Functions/6.10-Local-and-Global-Variables/Examples/6-18.cpp | jesushilarioh/C-Plus-Plus | bbff921460ac4267af48558f040c7d82ccf42d5e | [
"MIT"
] | 3 | 2019-10-28T01:12:46.000Z | 2021-10-16T09:16:31.000Z | Chapter-6-Functions/6.10-Local-and-Global-Variables/Examples/6-18.cpp | jesushilarioh/C-Plus-Plus | bbff921460ac4267af48558f040c7d82ccf42d5e | [
"MIT"
] | null | null | null | Chapter-6-Functions/6.10-Local-and-Global-Variables/Examples/6-18.cpp | jesushilarioh/C-Plus-Plus | bbff921460ac4267af48558f040c7d82ccf42d5e | [
"MIT"
] | 4 | 2020-04-10T17:22:17.000Z | 2021-11-04T14:34:00.000Z | /********************************************************************
*
* 6-18. This program has an uninitialized global variable.
*
* Jesus Hilario Hernandez
* November 29th 2018
*
********************************************************************/
#include <iostream>
using namespace std;
int globalNum; // Glo... | 24.388889 | 69 | 0.46697 | jesushilarioh |
da7d4ba4a2dde97214599053643d928d421e831c | 15,747 | cpp | C++ | src/HydroMonitorFertiliser.cpp | wvmarle/HydroMonitor | c3f6701bd84d13d74bd5a5f7e6b4b83944f30003 | [
"MIT"
] | 1 | 2021-12-31T01:44:38.000Z | 2021-12-31T01:44:38.000Z | src/HydroMonitorFertiliser.cpp | wvmarle/HydroMonitor | c3f6701bd84d13d74bd5a5f7e6b4b83944f30003 | [
"MIT"
] | null | null | null | src/HydroMonitorFertiliser.cpp | wvmarle/HydroMonitor | c3f6701bd84d13d74bd5a5f7e6b4b83944f30003 | [
"MIT"
] | 2 | 2018-11-12T09:21:33.000Z | 2020-07-09T02:35:30.000Z | #include <HydroMonitorFertiliser.h>
#ifdef USE_FERTILISER
#ifndef USE_EC_SENSOR
#error Can't do fertiliser dosing without EC sensor!
#endif
/*
Add fertiliser to the system as needed, based on the current EC value.
Constructor.
*/
HydroMonitorFertiliser::HydroMonitorFertiliser() {
runBTime = 0;... | 42.790761 | 182 | 0.629834 | wvmarle |
da84e770cee46d98b64e77d301ce302a3252d7db | 13,666 | hpp | C++ | server/src/ODBC/ODBCInstance.hpp | Velikss/Bus-Simulator | 13bf0b66b9b44e3f4cb1375fc363720ea8f23e19 | [
"MIT"
] | null | null | null | server/src/ODBC/ODBCInstance.hpp | Velikss/Bus-Simulator | 13bf0b66b9b44e3f4cb1375fc363720ea8f23e19 | [
"MIT"
] | null | null | null | server/src/ODBC/ODBCInstance.hpp | Velikss/Bus-Simulator | 13bf0b66b9b44e3f4cb1375fc363720ea8f23e19 | [
"MIT"
] | null | null | null | #pragma once
#include <pch.hpp>
#include <iostream>
//#define UNICODE
#if defined(WINDOWS)
#include <windows.h>
#endif
#include <sqlext.h>
#include <sqltypes.h>
#include <sql.h>
#define SQL_RESULT_LEN 1024
namespace dt
{
time_t TimeOfTimeStamp(SQL_TIMESTAMP_STRUCT & tTimeStamp)
{
time_t iLocalTime(NULL... | 29.452586 | 124 | 0.536075 | Velikss |
da894851835adc4d853700ba6fe6e85743950b74 | 314 | hpp | C++ | parser/Adt/Chunks/MWMO.hpp | coolzoom/namigator | 722a9f9e71ac5091acfad6ad53d203e1f1ffcf49 | [
"MIT"
] | null | null | null | parser/Adt/Chunks/MWMO.hpp | coolzoom/namigator | 722a9f9e71ac5091acfad6ad53d203e1f1ffcf49 | [
"MIT"
] | null | null | null | parser/Adt/Chunks/MWMO.hpp | coolzoom/namigator | 722a9f9e71ac5091acfad6ad53d203e1f1ffcf49 | [
"MIT"
] | null | null | null | #include "Adt/AdtChunk.hpp"
#include "utility/BinaryStream.hpp"
#include <string>
#include <vector>
namespace parser
{
namespace input
{
class MWMO : AdtChunk
{
public:
std::vector<std::string> WmoNames;
MWMO(size_t position, utility::BinaryStream* reader);
};
} // namespace input
} // namespace parser | 16.526316 | 57 | 0.719745 | coolzoom |
da8c0afa65a16f7ceb4fcdc20f0279193889098a | 924 | cpp | C++ | source/ast/FunctionAst.cpp | carrotsrc/yflux | 5f8584539cd9cb8b34c7466146719982b5e2159e | [
"Apache-2.0"
] | null | null | null | source/ast/FunctionAst.cpp | carrotsrc/yflux | 5f8584539cd9cb8b34c7466146719982b5e2159e | [
"Apache-2.0"
] | null | null | null | source/ast/FunctionAst.cpp | carrotsrc/yflux | 5f8584539cd9cb8b34c7466146719982b5e2159e | [
"Apache-2.0"
] | null | null | null | /*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
/*
* File: FunctionAst.cpp
* Author: cfg
*
* Created on 30 July 2016, 16:14
*/
#include "ast/FunctionAst.hpp"
using namespac... | 17.433962 | 79 | 0.680736 | carrotsrc |
da8e217c995742723364cc1be28743f9ad97c842 | 480 | hpp | C++ | src/Tasks.hpp | josokw/Scheduling | 89747d7946bc7203d156bea67fb9a478b62b9ba7 | [
"MIT"
] | null | null | null | src/Tasks.hpp | josokw/Scheduling | 89747d7946bc7203d156bea67fb9a478b62b9ba7 | [
"MIT"
] | null | null | null | src/Tasks.hpp | josokw/Scheduling | 89747d7946bc7203d156bea67fb9a478b62b9ba7 | [
"MIT"
] | null | null | null | #ifndef TASKS_HPP
#define TASKS_HPP
#include <vector>
class Tasks
{
public:
using cdp_t = struct
{
int c;
int d;
int p;
};
Tasks();
virtual ~Tasks() = default;
void addSpecs(int c, int d, int p);
std::vector<cdp_t>& getSpecs()
{
return _specs;
}
const std::vector<cdp_t>& getSpecs()... | 14.117647 | 44 | 0.620833 | josokw |
da8f6a6825e3053bd6b3282f1344902db9ff7339 | 9,014 | cpp | C++ | src/dbusapi.cpp | clockley/watchdogd | 7f03ad9a7317a11f246d29bce411d1e50265aa0e | [
"Apache-2.0"
] | 17 | 2016-03-22T12:20:07.000Z | 2022-01-24T17:49:39.000Z | src/dbusapi.cpp | clockley/watchdogd | 7f03ad9a7317a11f246d29bce411d1e50265aa0e | [
"Apache-2.0"
] | 1 | 2021-10-04T17:35:13.000Z | 2021-10-05T16:55:46.000Z | src/dbusapi.cpp | clockley/watchdogd | 7f03ad9a7317a11f246d29bce411d1e50265aa0e | [
"Apache-2.0"
] | 1 | 2021-12-05T13:23:26.000Z | 2021-12-05T13:23:26.000Z | /*
* Copyright 2016-2020 Christian Lockley
*
* 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 agr... | 28.798722 | 110 | 0.689927 | clockley |
da99eb2e005ee31a43b4c1bf98daaf3bed14a7c6 | 909 | cpp | C++ | tss/passenger.cpp | rainnymig/TrainStationSim | a91e9ef83f8a74e1a183e7abe7fa735c09e84e1a | [
"BSD-3-Clause-Clear"
] | null | null | null | tss/passenger.cpp | rainnymig/TrainStationSim | a91e9ef83f8a74e1a183e7abe7fa735c09e84e1a | [
"BSD-3-Clause-Clear"
] | null | null | null | tss/passenger.cpp | rainnymig/TrainStationSim | a91e9ef83f8a74e1a183e7abe7fa735c09e84e1a | [
"BSD-3-Clause-Clear"
] | null | null | null | #include "passenger.h"
#include "boardingChecklist.h"
#include "space.h"
#include "platform.h"
#include <set>
namespace tss
{
Passenger::Passenger(
const TimeUnit aSpawnTime,
const IdType aTargetTrain,
const PassengerClass aPassengerClass,
const bool aHasTicket)
: spawnTime(aSpawnTime)
, targetTrain(... | 15.672414 | 52 | 0.678768 | rainnymig |
daa17c0a2869a515eb9831d892eb1c9a7ec93898 | 1,473 | cpp | C++ | src/main.cpp | jjwall/SBO | d2b07081ef80fc96439de7b96c94292eb01ee764 | [
"MIT"
] | null | null | null | src/main.cpp | jjwall/SBO | d2b07081ef80fc96439de7b96c94292eb01ee764 | [
"MIT"
] | null | null | null | src/main.cpp | jjwall/SBO | d2b07081ef80fc96439de7b96c94292eb01ee764 | [
"MIT"
] | null | null | null | #include "base_state.hpp"
#include "game.hpp"
#include "networking_system.hpp"
#include "game_client.hpp"
#include <iostream>
#include <thread>
#include <chrono>
#include <vector>
using namespace std::literals;
int main(int argc, char* argv[]) {
// initialize game state
game g_state;
// initialize game se... | 29.46 | 90 | 0.622539 | jjwall |
daa49b0afdd054621855d9e321f533c0fcdb33a9 | 10,768 | cpp | C++ | templates/graph.cpp | lxb1226/leetcode_cpp | 554280de6be2a77e2fe41a5e77cdd0f884ac2e20 | [
"MIT"
] | null | null | null | templates/graph.cpp | lxb1226/leetcode_cpp | 554280de6be2a77e2fe41a5e77cdd0f884ac2e20 | [
"MIT"
] | null | null | null | templates/graph.cpp | lxb1226/leetcode_cpp | 554280de6be2a77e2fe41a5e77cdd0f884ac2e20 | [
"MIT"
] | null | null | null | #include <iostream>
#include <vector>
#include <stack>
#include <queue>
#include <climits>
#include <algorithm>
using namespace std;
// 并查集
// vector<int> fa;
// // 寻找根节点 无路径压缩
// int find(int u){
// if(fa[u] == u) return u;
// else return find(fa[u]);
// }
// // 寻找根节点 路径压缩
// int find(int u){
// if(fa[... | 28.188482 | 128 | 0.483098 | lxb1226 |
daa4a43cb850a78489afde2f1760492af832e220 | 813 | cpp | C++ | source/circle.cpp | Val3r1e/programmiersprachen-aufgabenblatt-3 | cbb6a511e453c9889e1e19994340ede3691ac44d | [
"MIT"
] | null | null | null | source/circle.cpp | Val3r1e/programmiersprachen-aufgabenblatt-3 | cbb6a511e453c9889e1e19994340ede3691ac44d | [
"MIT"
] | null | null | null | source/circle.cpp | Val3r1e/programmiersprachen-aufgabenblatt-3 | cbb6a511e453c9889e1e19994340ede3691ac44d | [
"MIT"
] | null | null | null | #include "circle.hpp"
#include "vec2.hpp"
#include <cmath>
//Konstruktor
Circle::Circle (Vec2 m, float r, Color c):
m_(m),
r_(r),
c_(c) {}
//Methoden
Vec2 Circle::getMiddle () const {
return m_;
}
float Circle::getRadius () const{
return r_;
}
Color Circle::getColor () const{
return c_;
}... | 14.263158 | 50 | 0.554736 | Val3r1e |
daa8dd3309201e97199c274b12ef1b04b5c3dd1c | 50 | hpp | C++ | src/boost_type_traits_remove_reference.hpp | miathedev/BoostForArduino | 919621dcd0c157094bed4df752b583ba6ea6409e | [
"BSL-1.0"
] | 10 | 2018-03-17T00:58:42.000Z | 2021-07-06T02:48:49.000Z | src/boost_type_traits_remove_reference.hpp | miathedev/BoostForArduino | 919621dcd0c157094bed4df752b583ba6ea6409e | [
"BSL-1.0"
] | 2 | 2021-03-26T15:17:35.000Z | 2021-05-20T23:55:08.000Z | src/boost_type_traits_remove_reference.hpp | miathedev/BoostForArduino | 919621dcd0c157094bed4df752b583ba6ea6409e | [
"BSL-1.0"
] | 4 | 2019-05-28T21:06:37.000Z | 2021-07-06T03:06:52.000Z | #include <boost/type_traits/remove_reference.hpp>
| 25 | 49 | 0.84 | miathedev |
daa97a75728b499481d07aaf7048ff5afb60da07 | 1,937 | cpp | C++ | src/main/cpp/str/IMU.cpp | frc2053/Robot2022 | 37dc6ef0bef30d87a4fb93387e00f9c1f452db50 | [
"BSD-3-Clause"
] | null | null | null | src/main/cpp/str/IMU.cpp | frc2053/Robot2022 | 37dc6ef0bef30d87a4fb93387e00f9c1f452db50 | [
"BSD-3-Clause"
] | null | null | null | src/main/cpp/str/IMU.cpp | frc2053/Robot2022 | 37dc6ef0bef30d87a4fb93387e00f9c1f452db50 | [
"BSD-3-Clause"
] | null | null | null | #include "str/IMU.h"
#include <frc/RobotBase.h>
#include <iostream>
str::IMU::IMU() {
if (frc::RobotBase::IsSimulation()) {
simGyro = HALSIM_GetSimDeviceHandle("navX-Sensor[4]");
simGyroYaw = HALSIM_GetSimValueHandle(simGyro, "Yaw");
simGyroRate = HALSIM_GetSimValueHandle(simGyro, "Rate");
... | 28.072464 | 83 | 0.615901 | frc2053 |
daab3b062dd2192926de0a76bccd77a5ab8e6923 | 972 | hpp | C++ | include/hydro/compiler/hydro/ast/SwitchStatement.hpp | hydraate/hydro | 42037a8278dcfdca68fb5cceaf6988da861f0eff | [
"Apache-2.0"
] | null | null | null | include/hydro/compiler/hydro/ast/SwitchStatement.hpp | hydraate/hydro | 42037a8278dcfdca68fb5cceaf6988da861f0eff | [
"Apache-2.0"
] | null | null | null | include/hydro/compiler/hydro/ast/SwitchStatement.hpp | hydraate/hydro | 42037a8278dcfdca68fb5cceaf6988da861f0eff | [
"Apache-2.0"
] | null | null | null | //
// __ __ __
// / / / /__ __ ____/ /_____ ____
// / /_/ // / / // __ // ___// __ \
// / __ // /_/ // /_/ // / / /_/ /
// /_/ /_/ \__, / \__,_//_/ \____/
// /____/
//
// ... | 24.923077 | 71 | 0.542181 | hydraate |
daace0ecbf2d20f7e769d35791bf4ce7f21632a4 | 2,028 | cpp | C++ | src/engine/EngineContext.cpp | ErnestasJa/TheEngine2 | a16778e18b844c2044cf3bab31f661c1fb3da840 | [
"MIT"
] | 2 | 2015-12-16T22:02:53.000Z | 2018-04-10T14:43:26.000Z | src/engine/EngineContext.cpp | ErnestasJa/TheEngine2 | a16778e18b844c2044cf3bab31f661c1fb3da840 | [
"MIT"
] | 48 | 2015-12-20T14:23:49.000Z | 2016-07-18T12:15:37.000Z | src/engine/EngineContext.cpp | ErnestasJa/TheEngine2 | a16778e18b844c2044cf3bab31f661c1fb3da840 | [
"MIT"
] | 1 | 2015-12-20T14:30:26.000Z | 2015-12-20T14:30:26.000Z |
#include <engine/IEngineContext.h>
#include "../render/GLExtensionLoader.h"
#include "../render/GLRenderer.h"
#include "../render/GLRendererDebugMessageMonitor.h"
#include "../window/DefaultWindowModule.h"
#include "../window/GLFWWindow.h"
#include "EngineContext.h"
#include "window/WindowInc.h"
namespace engine {
c... | 27.405405 | 89 | 0.695759 | ErnestasJa |
dab83b34edcd7c24048f42335a37871b90da4c9a | 1,100 | cpp | C++ | cpp/60. Permutation Sequence.cpp | clarissaMao/leetcode_clarissa | 9ca9bdc51a37e0e9897ee4484f12054f095c32e4 | [
"MIT"
] | null | null | null | cpp/60. Permutation Sequence.cpp | clarissaMao/leetcode_clarissa | 9ca9bdc51a37e0e9897ee4484f12054f095c32e4 | [
"MIT"
] | null | null | null | cpp/60. Permutation Sequence.cpp | clarissaMao/leetcode_clarissa | 9ca9bdc51a37e0e9897ee4484f12054f095c32e4 | [
"MIT"
] | null | null | null | class Solution {
public:
string getPermutation(int n, int k) {
// Create two vectors num and factorial, factorial is used to store all the factorials
// from 0! to n!, num is used to store all the remainning numbers that could be candidates.
// for current number, we use (k-1) / factorial[i-... | 35.483871 | 100 | 0.489091 | clarissaMao |
dae3180f34df89ef491bea1076c7ce962a9eefe3 | 2,616 | cpp | C++ | Firj/firj/src/main/cpp/firwrapper.cpp | TomKlecz/fir1 | 8605220f218f0be0f5465c80982395ffadf82a4f | [
"MIT"
] | null | null | null | Firj/firj/src/main/cpp/firwrapper.cpp | TomKlecz/fir1 | 8605220f218f0be0f5465c80982395ffadf82a4f | [
"MIT"
] | null | null | null | Firj/firj/src/main/cpp/firwrapper.cpp | TomKlecz/fir1 | 8605220f218f0be0f5465c80982395ffadf82a4f | [
"MIT"
] | null | null | null | #include <jni.h>
#include <string>
#include <cstring>
#include <cstdlib>
#include <cassert>
#include <stdexcept>
#include "../../../../../Fir1.h"
extern "C" {
jlong
Java_uk_me_berndporr_firj_Fir1_getInstance(JNIEnv *env,
jclass,
j... | 26.969072 | 69 | 0.478976 | TomKlecz |
dae37f12fab7e6aa4d22ac4ad5f59cedc62f0cc5 | 1,044 | cpp | C++ | hacker-earth/another-substring.cpp | amsubhash/competitive-programming | 02c801c631d5a830e9a4c41914091c3ac7eaf39e | [
"MIT"
] | null | null | null | hacker-earth/another-substring.cpp | amsubhash/competitive-programming | 02c801c631d5a830e9a4c41914091c3ac7eaf39e | [
"MIT"
] | null | null | null | hacker-earth/another-substring.cpp | amsubhash/competitive-programming | 02c801c631d5a830e9a4c41914091c3ac7eaf39e | [
"MIT"
] | null | null | null | #include <algorithm>
#include <bits/stdc++.h>
#include <climits>
#include <cstdio>
#define pr(x, y) printf("%s: %d\n", x, y)
using namespace std;
const int MAXSIZE = 100002;
int solve(int n, int k, int a[MAXSIZE]) {
int i, left = 0, right = 0, totalFilled = 0, minVal = INT_MAX;
int map[k + 1];
for (i = 0; i <= ... | 18.315789 | 64 | 0.485632 | amsubhash |
dae39a496dcdff31e328b5c88c618b6310b6d3da | 2,453 | cpp | C++ | cpp/react-native-quick-base64.cpp | mrousavy/react-native-quick-base64 | 5f31ba8fe49393322e089a988e50322e785d282b | [
"MIT"
] | 158 | 2021-02-05T05:40:20.000Z | 2022-03-28T05:49:02.000Z | cpp/react-native-quick-base64.cpp | mrousavy/react-native-quick-base64 | 5f31ba8fe49393322e089a988e50322e785d282b | [
"MIT"
] | 9 | 2021-05-11T14:22:34.000Z | 2022-03-13T08:07:38.000Z | cpp/react-native-quick-base64.cpp | mrousavy/react-native-quick-base64 | 5f31ba8fe49393322e089a988e50322e785d282b | [
"MIT"
] | 5 | 2021-07-27T16:30:10.000Z | 2022-01-27T03:39:48.000Z | #import "react-native-quick-base64.h"
#import "base64.h"
#include <iostream>
#include <sstream>
using namespace facebook;
// Returns false if the passed value is not a string or an ArrayBuffer.
bool valueToString(jsi::Runtime& runtime, const jsi::Value& value, std::string* str) {
if (value.isString()) {
*str =... | 33.60274 | 119 | 0.663677 | mrousavy |
dae98894f2215ead203e1debab6cc4e539880169 | 523 | hpp | C++ | Applications/DaftEngineApp/src/Widgets/SettingWidgets/DrawableSettings/BallSettings.hpp | DaftMat/Daft-Engine | e3d918b4b876d17abd889b9b6b13bd858a079538 | [
"MIT"
] | 1 | 2020-10-26T02:36:58.000Z | 2020-10-26T02:36:58.000Z | Applications/DaftEngineApp/src/Widgets/SettingWidgets/DrawableSettings/BallSettings.hpp | DaftMat/Daft-Engine | e3d918b4b876d17abd889b9b6b13bd858a079538 | [
"MIT"
] | 6 | 2020-02-14T21:45:52.000Z | 2020-09-23T17:58:58.000Z | Applications/DaftEngineApp/src/Widgets/SettingWidgets/DrawableSettings/BallSettings.hpp | DaftMat/Daft-Engine | e3d918b4b876d17abd889b9b6b13bd858a079538 | [
"MIT"
] | null | null | null | //
// Created by mathis on 27/10/2020.
//
#pragma once
#include "DrawableSettings.hpp"
namespace daft::app {
/**
* DrawableSettings implementation for a BSpline 's control point.
*/
class ENGINE_API BallSettings : public DrawableSettings {
Q_OBJECT
public:
/**
* Constructor.
* @param settings -... | 22.73913 | 84 | 0.676864 | DaftMat |
daf1d50e746d9e21e7e8cba1989c7ca747a2f8d1 | 2,331 | cpp | C++ | Array/026. Remove Duplicates from Sorted Array.cpp | beckswu/Leetcode | 480e8dc276b1f65961166d66efa5497d7ff0bdfd | [
"MIT"
] | 138 | 2020-02-08T05:25:26.000Z | 2021-11-04T11:59:28.000Z | Array/026. Remove Duplicates from Sorted Array.cpp | beckswu/Leetcode | 480e8dc276b1f65961166d66efa5497d7ff0bdfd | [
"MIT"
] | null | null | null | Array/026. Remove Duplicates from Sorted Array.cpp | beckswu/Leetcode | 480e8dc276b1f65961166d66efa5497d7ff0bdfd | [
"MIT"
] | 24 | 2021-01-02T07:18:43.000Z | 2022-03-20T08:17:54.000Z | /*
26. Remove Duplicates from Sorted Array
Given a sorted array nums, remove the duplicates in-place such that each element appear only once and return the new length.
Do not allocate extra space for another array, you must do this by modifying the input array in-place with O(1) extra memory.
Example 1:
Given nums... | 25.615385 | 133 | 0.608323 | beckswu |
daf3a6aa11acbd9d34560d59fe05f1116101c621 | 2,716 | cpp | C++ | (7) Ellipse using Mid-Point Ellipse Drawing algorithm.cpp | Rishav9852Kumar/Graphics-Lb | 68e25060965b36f99379b881830f91c1828e4949 | [
"Apache-2.0"
] | 1 | 2021-09-20T17:59:18.000Z | 2021-09-20T17:59:18.000Z | (7) Ellipse using Mid-Point Ellipse Drawing algorithm.cpp | Rishav9852Kumar/Graphics-Lb | 68e25060965b36f99379b881830f91c1828e4949 | [
"Apache-2.0"
] | null | null | null | (7) Ellipse using Mid-Point Ellipse Drawing algorithm.cpp | Rishav9852Kumar/Graphics-Lb | 68e25060965b36f99379b881830f91c1828e4949 | [
"Apache-2.0"
] | null | null | null | #include<stdio.h>//Mid point Ellipse drawing Algorithm //
#include<conio.h>
#include<graphics.h>
#include<math.h>
void fourrepeats(int xc,int yc,int x,int y)
{
putpixel(xc+x,yc+y,1);
putpixel(xc-x,yc-y,2);
putpixel(xc+x,yc-y,3);
putpixel(xc-x,yc+y,4);
}
void midpoint(int xc,int yc,int a,int... | 30.516854 | 143 | 0.396539 | Rishav9852Kumar |
daf47bf5af34faac57926cdba504944ab1279e2b | 3,164 | cpp | C++ | Solution/PhoenixEngine/Source/Rendering/GL/GLTypes.cpp | rohunb/PhoenixEngine | 4d21f9000c2e0c553c398785e8cebff1bc190a8c | [
"MIT"
] | 2 | 2017-11-09T20:05:36.000Z | 2018-07-05T00:55:01.000Z | Solution/PhoenixEngine/Source/Rendering/GL/GLTypes.cpp | rohunb/PhoenixEngine | 4d21f9000c2e0c553c398785e8cebff1bc190a8c | [
"MIT"
] | null | null | null | Solution/PhoenixEngine/Source/Rendering/GL/GLTypes.cpp | rohunb/PhoenixEngine | 4d21f9000c2e0c553c398785e8cebff1bc190a8c | [
"MIT"
] | null | null | null | #include "Stdafx.h"
#include "Rendering/GL/GLTypes.h"
#include "Utility/Debug/Assert.h"
namespace Phoenix
{
namespace GL
{
const FChar* EError::ToString(const EError::Type GLError)
{
switch (GLError)
{
case EError::None:
return "GL_NO_ERROR";
case EError::InvalidEnum:
return "GL_INVALID_... | 31.019608 | 112 | 0.721239 | rohunb |
dafb467217fcef9db08a477e9359927def055b3b | 735 | cpp | C++ | src/LogicalProcess.cpp | pvelesko/warped2 | d42cd6b43616157cd9721c25b59cf39c4f3004bf | [
"MIT"
] | 11 | 2015-03-03T20:50:15.000Z | 2022-02-21T16:47:19.000Z | src/LogicalProcess.cpp | pvelesko/warped2 | d42cd6b43616157cd9721c25b59cf39c4f3004bf | [
"MIT"
] | 3 | 2015-04-14T17:11:12.000Z | 2019-11-17T19:49:22.000Z | src/LogicalProcess.cpp | pvelesko/warped2 | d42cd6b43616157cd9721c25b59cf39c4f3004bf | [
"MIT"
] | 12 | 2015-04-11T15:32:37.000Z | 2020-11-24T03:24:33.000Z | #include "LogicalProcess.hpp"
#include <memory>
#include <string>
#include <vector>
#include "Event.hpp"
#include "Simulation.hpp"
#include "utility/memory.hpp"
namespace warped {
LogicalProcess::LogicalProcess(const std::string& name) : name_(name) {}
std::vector<std::shared_ptr<Event>> LogicalProcess::initialize... | 26.25 | 85 | 0.745578 | pvelesko |
dafe608d2d54528f8702bacb02a54b0dd5106ded | 3,566 | hpp | C++ | include/cppdevtk/base/error_code_lnx.hpp | CoSoSys/cppdevtk | 99d6c3d328c05a55dae54e82fcbedad93d0cfaa0 | [
"BSL-1.0",
"Apache-2.0"
] | null | null | null | include/cppdevtk/base/error_code_lnx.hpp | CoSoSys/cppdevtk | 99d6c3d328c05a55dae54e82fcbedad93d0cfaa0 | [
"BSL-1.0",
"Apache-2.0"
] | null | null | null | include/cppdevtk/base/error_code_lnx.hpp | CoSoSys/cppdevtk | 99d6c3d328c05a55dae54e82fcbedad93d0cfaa0 | [
"BSL-1.0",
"Apache-2.0"
] | null | null | null | /////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
/// \file
///
/// \copyright Copyright (C) 2015 - 2020 CoSoSys Ltd <info@cososys.com>\n
/// Licensed under the Apache License, Version 2.0 (the "License");\n
/// you may not use this file e... | 31.280702 | 126 | 0.6576 | CoSoSys |
9706a40c2e061385d74f185962b9355ed44b8903 | 10,685 | cpp | C++ | ICC_Golf_Balls_Project/ICC_Golf_Balls_Project/golfball.cpp | ArminPCM/GolfBall-Logo-Recognition | b03896c5b0d0f54dbdd06896b741509968ba02f3 | [
"Unlicense"
] | null | null | null | ICC_Golf_Balls_Project/ICC_Golf_Balls_Project/golfball.cpp | ArminPCM/GolfBall-Logo-Recognition | b03896c5b0d0f54dbdd06896b741509968ba02f3 | [
"Unlicense"
] | null | null | null | ICC_Golf_Balls_Project/ICC_Golf_Balls_Project/golfball.cpp | ArminPCM/GolfBall-Logo-Recognition | b03896c5b0d0f54dbdd06896b741509968ba02f3 | [
"Unlicense"
] | null | null | null | #include "golfball.h"
#include "tracker.h"
#include "classifier.h"
#include <WinSock2.h>
#include <WS2tcpip.h>
#include <fstream>
int firstBall = 0;
// static ball ID (ball counter)
int golfBall::idcounter = 0;
// vector of string with brand names
std::vector<std::string> golfBall::brandNames;
// Socke... | 24.848837 | 139 | 0.645765 | ArminPCM |
9707c1cfb8affb4a067fc1438e619a185b372f5e | 2,738 | cpp | C++ | android-31/java/sql/SQLException.cpp | YJBeetle/QtAndroidAPI | 1468b5dc6eafaf7709f0b00ba1a6ec2b70684266 | [
"Apache-2.0"
] | 12 | 2020-03-26T02:38:56.000Z | 2022-03-14T08:17:26.000Z | android-31/java/sql/SQLException.cpp | YJBeetle/QtAndroidAPI | 1468b5dc6eafaf7709f0b00ba1a6ec2b70684266 | [
"Apache-2.0"
] | 1 | 2021-01-27T06:07:45.000Z | 2021-11-13T19:19:43.000Z | android-29/java/sql/SQLException.cpp | YJBeetle/QtAndroidAPI | 1468b5dc6eafaf7709f0b00ba1a6ec2b70684266 | [
"Apache-2.0"
] | 3 | 2021-02-02T12:34:55.000Z | 2022-03-08T07:45:57.000Z | #include "../../JString.hpp"
#include "../../JThrowable.hpp"
#include "../util/concurrent/atomic/AtomicReferenceFieldUpdater.hpp"
#include "./SQLException.hpp"
namespace java::sql
{
// Fields
// QJniObject forward
SQLException::SQLException(QJniObject obj) : java::lang::Exception(obj) {}
// Constructors
SQLEx... | 24.890909 | 83 | 0.678598 | YJBeetle |
8cc8b9c36c3be12ab95b28491ea71c39a8327f18 | 1,231 | cpp | C++ | SRC/Dynamic Programming/Treedp/cf219d.cpp | YouDad/ACM | ac26e0b360267943af32692629d6c34e739ee70d | [
"MIT"
] | 2 | 2018-07-27T08:09:48.000Z | 2018-09-26T16:36:37.000Z | SRC/Dynamic Programming/Treedp/cf219d.cpp | YouDad/ACM | ac26e0b360267943af32692629d6c34e739ee70d | [
"MIT"
] | null | null | null | SRC/Dynamic Programming/Treedp/cf219d.cpp | YouDad/ACM | ac26e0b360267943af32692629d6c34e739ee70d | [
"MIT"
] | null | null | null | #include<stdio.h>
#include<string.h>
#include<queue>
#include<vector>
const int maxn=200005;
struct edge{
int dest;
bool inv;
edge*next;
}e[maxn*2],*head[maxn];
int cnt,dp[maxn];
void addedge(int u,int v){
e[cnt].dest=v;
e[cnt].next=head[u];
e[cnt].inv=false;
head[u]=e+cnt++;
e[cnt].dest... | 23.226415 | 49 | 0.499594 | YouDad |
8cc9a23610098b7aad8152546092d7747604feb5 | 1,758 | cpp | C++ | Code/Tools/FBuild/FBuildTest/Tests/TestLibrary.cpp | qq573011406/FASTBuild_UnrealEngine | 29c49672f82173a903cb32f0e4656e2fd07ebef2 | [
"MIT"
] | 30 | 2020-07-15T06:16:55.000Z | 2022-02-10T21:37:52.000Z | Code/Tools/FBuild/FBuildTest/Tests/TestLibrary.cpp | qq573011406/FASTBuild_UnrealEngine | 29c49672f82173a903cb32f0e4656e2fd07ebef2 | [
"MIT"
] | 1 | 2020-11-23T13:35:00.000Z | 2020-11-23T13:35:00.000Z | Code/Tools/FBuild/FBuildTest/Tests/TestLibrary.cpp | qq573011406/FASTBuild_UnrealEngine | 29c49672f82173a903cb32f0e4656e2fd07ebef2 | [
"MIT"
] | 12 | 2020-09-16T17:39:34.000Z | 2021-08-17T11:32:37.000Z | // TestLibrary.cpp
//------------------------------------------------------------------------------
// Includes
//------------------------------------------------------------------------------
#include "FBuildTest.h"
// FBuildCore
#include "Tools/FBuild/FBuildCore/Graph/LibraryNode.h"
// Core
#include <Core/Strings/... | 33.169811 | 88 | 0.450512 | qq573011406 |
8ce8523fa86b7cef34034a5fb000e668898e5be6 | 1,940 | cpp | C++ | src/LunarSNES/target-LunarSNES/program/medium.cpp | ZopharsDomain/SNES-Lunar-SNES | 414d7666ea48a5fb9577c30957feb7baed98cd0b | [
"Unlicense"
] | null | null | null | src/LunarSNES/target-LunarSNES/program/medium.cpp | ZopharsDomain/SNES-Lunar-SNES | 414d7666ea48a5fb9577c30957feb7baed98cd0b | [
"Unlicense"
] | null | null | null | src/LunarSNES/target-LunarSNES/program/medium.cpp | ZopharsDomain/SNES-Lunar-SNES | 414d7666ea48a5fb9577c30957feb7baed98cd0b | [
"Unlicense"
] | null | null | null | auto Program::loadMedium() -> void {
if(!mediumQueue) return;
string location = mediumQueue.left();
string type = Location::suffix(location).trimLeft(".", 1L);
if(type == "zip") {
Decode::ZIP zip;
if(zip.open(location.trimRight("/"))) {
type = Location::suffix(zip.file[0].name).trimLeft(".", 1L);... | 28.529412 | 77 | 0.695876 | ZopharsDomain |
8cefe954a95c53232259223989c6406e765cf815 | 2,470 | cpp | C++ | ds_nmea_parsers/src/ds_nmea_parsers/Inf.cpp | Field-Robotics-Lab/ds_msgs | 179631d46871b31fad28a21f81d865e3c73446d3 | [
"BSD-3-Clause"
] | null | null | null | ds_nmea_parsers/src/ds_nmea_parsers/Inf.cpp | Field-Robotics-Lab/ds_msgs | 179631d46871b31fad28a21f81d865e3c73446d3 | [
"BSD-3-Clause"
] | 1 | 2020-08-19T19:35:17.000Z | 2020-08-19T19:35:17.000Z | ds_nmea_parsers/src/ds_nmea_parsers/Inf.cpp | Field-Robotics-Lab/ds_msgs | 179631d46871b31fad28a21f81d865e3c73446d3 | [
"BSD-3-Clause"
] | 1 | 2020-08-14T15:20:36.000Z | 2020-08-14T15:20:36.000Z | /**
* Copyright 2019 Woods Hole Oceanographic Institution
*
* 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 conditions and th... | 38 | 98 | 0.734008 | Field-Robotics-Lab |
8cf1dfbcc23177d9941ca1d4bc1364d828ca2707 | 248 | hpp | C++ | src/players/connection.hpp | stridera/FieryV4 | 747c80fee1dc71e2e06f57fc3f058f3540aaf880 | [
"Unlicense"
] | 1 | 2020-07-17T14:03:34.000Z | 2020-07-17T14:03:34.000Z | src/players/connection.hpp | stridera/FieryV4 | 747c80fee1dc71e2e06f57fc3f058f3540aaf880 | [
"Unlicense"
] | null | null | null | src/players/connection.hpp | stridera/FieryV4 | 747c80fee1dc71e2e06f57fc3f058f3540aaf880 | [
"Unlicense"
] | null | null | null | #pragma once
#include "../server/connection_base.hpp"
namespace Mud::Player::Connection {
class Connection : public Server::ConnectionBase
{
public:
Connection(){};
~Connection() = default;
private:
};
}// namespace Mud::Player::Connection
| 15.5 | 48 | 0.717742 | stridera |
8cf2fbbe68807588971660435872658aaba872ad | 3,442 | cpp | C++ | ProjectEuler+/euler-0041.cpp | sarvekash/HackerRank_Solutions | 8f48e5b1a6e792a85a10d8c328cd1f5341fb16a8 | [
"Apache-2.0"
] | null | null | null | ProjectEuler+/euler-0041.cpp | sarvekash/HackerRank_Solutions | 8f48e5b1a6e792a85a10d8c328cd1f5341fb16a8 | [
"Apache-2.0"
] | null | null | null | ProjectEuler+/euler-0041.cpp | sarvekash/HackerRank_Solutions | 8f48e5b1a6e792a85a10d8c328cd1f5341fb16a8 | [
"Apache-2.0"
] | 1 | 2021-05-28T11:14:34.000Z | 2021-05-28T11:14:34.000Z | // ////////////////////////////////////////////////////////
// # Title
// Pandigital prime
//
// # URL
// https://projecteuler.net/problem=41
// http://euler.stephan-brumme.com/41/
//
// # Problem
// We shall say that an n-digit number is pandigital if it makes use of all the digits 1 to n exactly once.
// For example,... | 27.102362 | 173 | 0.610401 | sarvekash |
8cf814b3b0e5bdf5b3c991d2b7b486b1fde7021f | 882 | cpp | C++ | ArcNet/Route_Header_Process.cpp | kravitz/transims4 | ea0848bf3dc71440d54724bb3ecba3947b982215 | [
"NASA-1.3"
] | 2 | 2018-04-27T11:07:02.000Z | 2020-04-24T06:53:21.000Z | ArcNet/Route_Header_Process.cpp | idkravitz/transims4 | ea0848bf3dc71440d54724bb3ecba3947b982215 | [
"NASA-1.3"
] | null | null | null | ArcNet/Route_Header_Process.cpp | idkravitz/transims4 | ea0848bf3dc71440d54724bb3ecba3947b982215 | [
"NASA-1.3"
] | null | null | null | //*********************************************************
// Route_Header_Process.cpp - read the route header file
//*********************************************************
#include "ArcNet.hpp"
#include "Route_Header_File.hpp"
//---------------------------------------------------------
// Route_Header_Processin... | 25.2 | 66 | 0.517007 | kravitz |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.