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 float64 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 float64 1 77k ⌀ | 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 float64 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 653k | max_line_length int64 6 990k | alphanum_fraction float64 0.01 1 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
5bd1c4c60b0a518115e14cce3ff262dcad624695 | 1,005 | cpp | C++ | examples/make_stereo_panorama.cpp | jonathanventura/spherical-sfm | 0f0dafdd66641cebcb57cdb8a87b9ce466ab36eb | [
"MIT"
] | 6 | 2020-03-26T15:07:14.000Z | 2022-02-04T06:27:32.000Z | examples/make_stereo_panorama.cpp | jonathanventura/spherical-sfm | 0f0dafdd66641cebcb57cdb8a87b9ce466ab36eb | [
"MIT"
] | 1 | 2020-07-09T06:32:52.000Z | 2020-07-09T07:26:47.000Z | examples/make_stereo_panorama.cpp | jonathanventura/spherical-sfm | 0f0dafdd66641cebcb57cdb8a87b9ce466ab36eb | [
"MIT"
] | 1 | 2022-03-08T20:30:46.000Z | 2022-03-08T20:30:46.000Z |
#include <iostream>
#include <vector>
#include <cmath>
#include <fstream>
#include <gflags/gflags.h>
#include "stereo_panorama_tools.h"
using namespace sphericalsfm;
using namespace stereopanotools;
DEFINE_string(intrinsics, "", "Path to intrinsics (focal centerx centery)");
DEFINE_string(video, "", "Path to video... | 30.454545 | 92 | 0.705473 |
5bd4623cc9a5404f3652cce6bd2ce9c8e03da0f5 | 617 | cpp | C++ | 2017/APP5/Q.7.cpp | HemensonDavid/Estudando-C | fb5a33b399b369dce789bf77c06834da71fe0a4d | [
"MIT"
] | null | null | null | 2017/APP5/Q.7.cpp | HemensonDavid/Estudando-C | fb5a33b399b369dce789bf77c06834da71fe0a4d | [
"MIT"
] | null | null | null | 2017/APP5/Q.7.cpp | HemensonDavid/Estudando-C | fb5a33b399b369dce789bf77c06834da71fe0a4d | [
"MIT"
] | null | null | null | #include <iostream>
using namespace std;
int ismedia(int nota1, int nota2, int nota3, int nota4){
int media=(nota1*2)+(nota2*2)+(nota3*3)+(nota4*3)/10;
if(media>=60){
return 1;
}
}
int main(){
cout<<"Digite sua nota no 1 bimestre: ";
int nota1;
cin>> nota1;
cout<<"Digite sua nota no 2 bimestre: ";
int no... | 16.675676 | 56 | 0.628849 |
5bd6994380e19f199c9e9f98d6d356ea80f44954 | 3,721 | hpp | C++ | include/tcb_manager.hpp | Qanora/mstack-cpp | a1b6de6983404558e46b87d0e81da715fcdccd55 | [
"MIT"
] | 15 | 2020-07-20T12:32:38.000Z | 2022-03-24T19:24:02.000Z | include/tcb_manager.hpp | Qanora/mstack-cpp | a1b6de6983404558e46b87d0e81da715fcdccd55 | [
"MIT"
] | null | null | null | include/tcb_manager.hpp | Qanora/mstack-cpp | a1b6de6983404558e46b87d0e81da715fcdccd55 | [
"MIT"
] | 5 | 2020-07-20T12:42:58.000Z | 2021-01-16T10:13:39.000Z | #pragma once
#include <memory>
#include <optional>
#include <unordered_map>
#include <unordered_set>
#include "circle_buffer.hpp"
#include "defination.hpp"
#include "packets.hpp"
#include "socket.hpp"
#include "tcb.hpp"
#include "tcp_transmit.hpp"
namespace mstack {
class tcb_manager {
private:
tcb_manager() :... | 43.267442 | 99 | 0.504703 |
5bdd86a3c1457620c62c505b2444d4cdcf64f68e | 4,666 | hpp | C++ | include/System/Runtime/CompilerServices/RuntimeWrappedException.hpp | darknight1050/BeatSaber-Quest-Codegen | a6eeecc3f0e8f6079630f9a9a72b3121ac7b2032 | [
"Unlicense"
] | null | null | null | include/System/Runtime/CompilerServices/RuntimeWrappedException.hpp | darknight1050/BeatSaber-Quest-Codegen | a6eeecc3f0e8f6079630f9a9a72b3121ac7b2032 | [
"Unlicense"
] | null | null | null | include/System/Runtime/CompilerServices/RuntimeWrappedException.hpp | darknight1050/BeatSaber-Quest-Codegen | a6eeecc3f0e8f6079630f9a9a72b3121ac7b2032 | [
"Unlicense"
] | null | null | null | // Autogenerated from CppHeaderCreator
// Created by Sc2ad
// =========================================================================
#pragma once
// Begin includes
#include "extern/beatsaber-hook/shared/utils/typedefs.h"
// Including type: System.Exception
#include "System/Exception.hpp"
#include "extern/bea... | 60.597403 | 165 | 0.747964 |
5be030ae46f3c7267b32ffaa56e54e1ce0567db1 | 9,157 | cxx | C++ | Dax/LowLevelDax/threshold.cxx | robertmaynard/Sandbox | 724c67fd924c29630a49f8501fd9df7a2bbb1ed8 | [
"BSD-2-Clause"
] | 9 | 2015-01-10T04:31:50.000Z | 2019-03-04T13:55:08.000Z | Dax/LowLevelDax/threshold.cxx | robertmaynard/Sandbox | 724c67fd924c29630a49f8501fd9df7a2bbb1ed8 | [
"BSD-2-Clause"
] | 2 | 2016-10-19T12:56:47.000Z | 2017-06-02T13:55:35.000Z | Dax/LowLevelDax/threshold.cxx | robertmaynard/Sandbox | 724c67fd924c29630a49f8501fd9df7a2bbb1ed8 | [
"BSD-2-Clause"
] | 5 | 2015-01-05T15:52:50.000Z | 2018-02-14T18:08:19.000Z | //Description:
//Show how we can threshold any arbitrary dataset inside of dax.
#include <dax/cont/DeviceAdapter.h>
#include <dax/cont/ArrayHandle.h>
#include <dax/cont/ArrayHandleCounting.h>
#include <dax/cont/UniformGrid.h>
#include <dax/cont/UnstructuredGrid.h>
#include <dax/CellTag.h>
#include <dax/CellTraits.h>
... | 36.7751 | 90 | 0.719668 |
5be09ff0afe0e481f52fc2c48e30d71f5aa1fbc0 | 1,185 | cpp | C++ | testMain.cpp | chuanstudyup/GPSM8N | e0f6bc6fa5484605557c38a4ec5fcfb6c1dd53c9 | [
"Apache-2.0"
] | 1 | 2022-03-28T13:57:20.000Z | 2022-03-28T13:57:20.000Z | testMain.cpp | chuanstudyup/GPSM8N | e0f6bc6fa5484605557c38a4ec5fcfb6c1dd53c9 | [
"Apache-2.0"
] | null | null | null | testMain.cpp | chuanstudyup/GPSM8N | e0f6bc6fa5484605557c38a4ec5fcfb6c1dd53c9 | [
"Apache-2.0"
] | null | null | null | // testMain.cpp : 此文件包含 "main" 函数。程序执行将在此处开始并结束。
// g++ GPS.cpp testMain.cpp -o testMain
/* NMEA examples
$GNRMC,083712.40,A,3030.83159,N,11424.56558,E,0.150,,291221,,,A*65\r\n
$GNRMC,083712.60,A,3030.83159,N,11424.56559,E,0.157,,291221,,,A*61\r\n
$GNRMC,083712.80,A,3030.83158,N,11424.56558,E,0.033,,291221,,,A*... | 29.625 | 78 | 0.61519 |
5be0ae2694bfc8d46a7a0329e74bc69410ee79cc | 1,156 | cpp | C++ | android-31/android/icu/util/ULocale_Category.cpp | YJBeetle/QtAndroidAPI | 1468b5dc6eafaf7709f0b00ba1a6ec2b70684266 | [
"Apache-2.0"
] | 12 | 2020-03-26T02:38:56.000Z | 2022-03-14T08:17:26.000Z | android-28/android/icu/util/ULocale_Category.cpp | YJBeetle/QtAndroidAPI | 1468b5dc6eafaf7709f0b00ba1a6ec2b70684266 | [
"Apache-2.0"
] | 1 | 2021-01-27T06:07:45.000Z | 2021-11-13T19:19:43.000Z | android-30/android/icu/util/ULocale_Category.cpp | YJBeetle/QtAndroidAPI | 1468b5dc6eafaf7709f0b00ba1a6ec2b70684266 | [
"Apache-2.0"
] | 3 | 2021-02-02T12:34:55.000Z | 2022-03-08T07:45:57.000Z | #include "../../../JArray.hpp"
#include "../../../JString.hpp"
#include "./ULocale_Category.hpp"
namespace android::icu::util
{
// Fields
android::icu::util::ULocale_Category ULocale_Category::DISPLAY()
{
return getStaticObjectField(
"android.icu.util.ULocale$Category",
"DISPLAY",
"Landroid/icu/util/ULoc... | 23.12 | 78 | 0.697232 |
5be406b3951e569d1d65d9f0d519775ff52015e3 | 1,168 | cpp | C++ | code/components/conhost-v2/src/DrawFPS.cpp | thorium-cfx/fivem | 587eb7c12066a2ebf8631bde7bb39ee2df1b5a0c | [
"MIT"
] | null | null | null | code/components/conhost-v2/src/DrawFPS.cpp | thorium-cfx/fivem | 587eb7c12066a2ebf8631bde7bb39ee2df1b5a0c | [
"MIT"
] | null | null | null | code/components/conhost-v2/src/DrawFPS.cpp | thorium-cfx/fivem | 587eb7c12066a2ebf8631bde7bb39ee2df1b5a0c | [
"MIT"
] | null | null | null | #include "StdInc.h"
#include <ConsoleHost.h>
#include <imgui.h>
#include <CoreConsole.h>
#include "FpsTracker.h"
static InitFunction initFunction([]()
{
static bool drawFpsEnabled;
static bool streamingListEnabled;
static bool streamingMemoryEnabled;
static ConVar<bool> drawFps("cl_drawFPS", ConVar_Archive, fa... | 22.901961 | 186 | 0.710616 |
5be4b1c6a414d33b6af76f4904a7e05f7c281c00 | 56 | hpp | C++ | src/boost_mpl_aux__preprocessed_bcc551_bitor.hpp | miathedev/BoostForArduino | 919621dcd0c157094bed4df752b583ba6ea6409e | [
"BSL-1.0"
] | 10 | 2018-03-17T00:58:42.000Z | 2021-07-06T02:48:49.000Z | src/boost_mpl_aux__preprocessed_bcc551_bitor.hpp | miathedev/BoostForArduino | 919621dcd0c157094bed4df752b583ba6ea6409e | [
"BSL-1.0"
] | 2 | 2021-03-26T15:17:35.000Z | 2021-05-20T23:55:08.000Z | src/boost_mpl_aux__preprocessed_bcc551_bitor.hpp | miathedev/BoostForArduino | 919621dcd0c157094bed4df752b583ba6ea6409e | [
"BSL-1.0"
] | 4 | 2019-05-28T21:06:37.000Z | 2021-07-06T03:06:52.000Z | #include <boost/mpl/aux_/preprocessed/bcc551/bitor.hpp>
| 28 | 55 | 0.803571 |
5be9cdbd51e0b4addd5637585abfd4f1db2ec933 | 769 | cpp | C++ | 12-10-21/balanced_binary_tree.cpp | ahanavish/GDSC-DSA-Interview-Preparation | d6cfa402dbbe8ed4f5b96f51e2e0fc0e2eabbdaf | [
"MIT"
] | null | null | null | 12-10-21/balanced_binary_tree.cpp | ahanavish/GDSC-DSA-Interview-Preparation | d6cfa402dbbe8ed4f5b96f51e2e0fc0e2eabbdaf | [
"MIT"
] | null | null | null | 12-10-21/balanced_binary_tree.cpp | ahanavish/GDSC-DSA-Interview-Preparation | d6cfa402dbbe8ed4f5b96f51e2e0fc0e2eabbdaf | [
"MIT"
] | 1 | 2021-11-29T06:10:48.000Z | 2021-11-29T06:10:48.000Z | // https://leetcode.com/problems/balanced-binary-tree/
class Solution
{
public:
bool isBalanced(TreeNode *root)
{
vector<int> ans;
int h = is(root, ans);
if (check(ans))
return true;
else
return false;
}
bool check(vector<int> &ans)
{
... | 19.717949 | 67 | 0.443433 |
5beadd1842d02dfee23f1bd4393c91e0d0bee8e1 | 2,370 | cpp | C++ | qt-creator-opensource-src-4.6.1/src/tools/screenshotcropper/cropimageview.cpp | kevinlq/Qt-Creator-Opensource-Study | b8cadff1f33f25a5d4ef33ed93f661b788b1ba0f | [
"MIT"
] | 5 | 2018-12-22T14:49:13.000Z | 2022-01-13T07:21:46.000Z | qt-creator-opensource-src-4.6.1/src/tools/screenshotcropper/cropimageview.cpp | kevinlq/Qt-Creator-Opensource-Study | b8cadff1f33f25a5d4ef33ed93f661b788b1ba0f | [
"MIT"
] | null | null | null | qt-creator-opensource-src-4.6.1/src/tools/screenshotcropper/cropimageview.cpp | kevinlq/Qt-Creator-Opensource-Study | b8cadff1f33f25a5d4ef33ed93f661b788b1ba0f | [
"MIT"
] | 8 | 2018-07-17T03:55:48.000Z | 2021-12-22T06:37:53.000Z | /****************************************************************************
**
** Copyright (C) 2016 The Qt Company Ltd.
** Contact: https://www.qt.io/licensing/
**
** This file is part of Qt Creator.
**
** Commercial License Usage
** Licensees holding valid commercial Qt licenses may use this file in
** accordance w... | 27.882353 | 77 | 0.659494 |
5bec9814ab09dd8bd09eb94fab72070f1ee18118 | 4,071 | hpp | C++ | src/libraries/thermophysicalModels/specie/reaction/reactionRate/thirdBodyEfficiencies/thirdBodyEfficiencies.hpp | MrAwesomeRocks/caelus-cml | 55b6dc5ba47d0e95c07412d9446ac72ac11d7fd7 | [
"mpich2"
] | null | null | null | src/libraries/thermophysicalModels/specie/reaction/reactionRate/thirdBodyEfficiencies/thirdBodyEfficiencies.hpp | MrAwesomeRocks/caelus-cml | 55b6dc5ba47d0e95c07412d9446ac72ac11d7fd7 | [
"mpich2"
] | null | null | null | src/libraries/thermophysicalModels/specie/reaction/reactionRate/thirdBodyEfficiencies/thirdBodyEfficiencies.hpp | MrAwesomeRocks/caelus-cml | 55b6dc5ba47d0e95c07412d9446ac72ac11d7fd7 | [
"mpich2"
] | null | null | null | /*---------------------------------------------------------------------------*\
Copyright (C) 2011-2018 OpenFOAM Foundation
-------------------------------------------------------------------------------
License
This file is part of CAELUS.
CAELUS is free software: you can redistribute it and/or modify it
... | 25.12963 | 83 | 0.517809 |
5beeb662e275ac7b93836be860aee060f93fdb61 | 233 | cpp | C++ | codes/moderncpp/strtol/strtol02/main.cpp | eric2003/ModernCMake | 48fe5ed2f25481a7c93f86af38a692f4563afcaa | [
"MIT"
] | 3 | 2022-01-25T07:33:43.000Z | 2022-03-30T10:25:09.000Z | codes/moderncpp/strtol/strtol02/main.cpp | eric2003/ModernCMake | 48fe5ed2f25481a7c93f86af38a692f4563afcaa | [
"MIT"
] | null | null | null | codes/moderncpp/strtol/strtol02/main.cpp | eric2003/ModernCMake | 48fe5ed2f25481a7c93f86af38a692f4563afcaa | [
"MIT"
] | 2 | 2022-01-17T13:39:12.000Z | 2022-03-30T10:25:12.000Z | #include <iostream>
int main ( int argc, char **argv )
{
{
if ( argc > 1 )
{
long i = strtol( argv[1], NULL, 0 );
std::cout << " i = " << i << std::endl;
}
}
return 0;
}
| 15.533333 | 52 | 0.377682 |
5bf1be12a66207f9e5154926b9760b12e52a5f0c | 3,920 | cpp | C++ | src/tnl/t_vb_points.cpp | OS2World/LIB-GRAPHICS-The_Mesa_3D_Graphics_Library | c0e0cfaeefa9e87e4978101fbac7d0372c39f1a3 | [
"MIT"
] | null | null | null | src/tnl/t_vb_points.cpp | OS2World/LIB-GRAPHICS-The_Mesa_3D_Graphics_Library | c0e0cfaeefa9e87e4978101fbac7d0372c39f1a3 | [
"MIT"
] | null | null | null | src/tnl/t_vb_points.cpp | OS2World/LIB-GRAPHICS-The_Mesa_3D_Graphics_Library | c0e0cfaeefa9e87e4978101fbac7d0372c39f1a3 | [
"MIT"
] | null | null | null | /* $Id: t_vb_points.c,v 1.10 2002/10/29 20:29:04 brianp Exp $ */
/*
* Mesa 3-D graphics library
* Version: 4.1
*
* Copyright (C) 1999-2002 Brian Paul All Rights Reserved.
*
* Permission is hereby granted, free of charge, to any person obtaining a
* copy of this software and associated documentation files (t... | 31.36 | 78 | 0.688265 |
5bf4a1b12bd0ba842830ce713cef0b21e2e0da15 | 799 | cpp | C++ | learncpp.com/11_Inheritance/Question03/src/Main.cpp | KoaLaYT/Learn-Cpp | 0bfc98c3eca9c2fde5bff609c67d7e273fde5196 | [
"MIT"
] | null | null | null | learncpp.com/11_Inheritance/Question03/src/Main.cpp | KoaLaYT/Learn-Cpp | 0bfc98c3eca9c2fde5bff609c67d7e273fde5196 | [
"MIT"
] | null | null | null | learncpp.com/11_Inheritance/Question03/src/Main.cpp | KoaLaYT/Learn-Cpp | 0bfc98c3eca9c2fde5bff609c67d7e273fde5196 | [
"MIT"
] | null | null | null | /**
* Chapter 11 :: Question 3
*
* Fighting with a monster
* use almost everything learned by bar
*
* KoaLaYT 23:15 04/02/2020
*
*/
#include "Player.h"
#include <iostream>
#include <string>
Player initPlayer() {
std::cout << "Enter you name: ";
std::string name{};
std::getline(std::cin, name);
std:... | 19.02381 | 72 | 0.544431 |
5bf54790d03dad868eb1e1f926a2969a61ad40ca | 12,838 | hpp | C++ | key/key.hpp | drypot/san-2.x | 44e626793b1dc50826ba0f276d5cc69b7c9ca923 | [
"MIT"
] | 5 | 2019-12-27T07:30:03.000Z | 2020-10-13T01:08:55.000Z | key/key.hpp | drypot/san-2.x | 44e626793b1dc50826ba0f276d5cc69b7c9ca923 | [
"MIT"
] | null | null | null | key/key.hpp | drypot/san-2.x | 44e626793b1dc50826ba0f276d5cc69b7c9ca923 | [
"MIT"
] | 1 | 2020-07-27T22:36:40.000Z | 2020-07-27T22:36:40.000Z | /*
--------------------------------------------------------------------------------
key/key.hpp
copyright(C) kyuhyun park
1993.07.13
-----------------------------------------------------... | 45.524823 | 123 | 0.426157 |
5bfdbaa805eb89ccfca66a4e290910af697b6e15 | 439 | cpp | C++ | modules/cadac/env/wind_constant.cpp | mlouielu/mazu-sim | fd2da3a9f7ca3ca30d3d3f4bbd6966cb68623225 | [
"BSD-3-Clause"
] | 1 | 2020-03-26T07:09:54.000Z | 2020-03-26T07:09:54.000Z | modules/cadac/env/wind_constant.cpp | mlouielu/mazu-sim | fd2da3a9f7ca3ca30d3d3f4bbd6966cb68623225 | [
"BSD-3-Clause"
] | null | null | null | modules/cadac/env/wind_constant.cpp | mlouielu/mazu-sim | fd2da3a9f7ca3ca30d3d3f4bbd6966cb68623225 | [
"BSD-3-Clause"
] | null | null | null | #include "wind_constant.hh"
#include <cstring>
cad::Wind_Constant::Wind_Constant(double dvba, double dir, double twind_In, double vertical_wind)
: Wind(twind_In, vertical_wind)
{
snprintf(name, sizeof(name), "Constant Wind");
altitude = 0;
vwind = dvba;
psiwdx = dir;
}
cad::Wind_Constant::~Wind... | 18.291667 | 97 | 0.710706 |
7500881c595656b36cf3bf9aa8b7ebdf0d282e2f | 8,635 | cpp | C++ | http.cpp | kissbeni/tinyhttp | 2e7dddbbb4ac0824ec457eadfcf00106fce5154c | [
"Apache-2.0"
] | 2 | 2021-11-27T18:35:20.000Z | 2022-03-23T08:11:57.000Z | http.cpp | kissbeni/tinyhttp | 2e7dddbbb4ac0824ec457eadfcf00106fce5154c | [
"Apache-2.0"
] | null | null | null | http.cpp | kissbeni/tinyhttp | 2e7dddbbb4ac0824ec457eadfcf00106fce5154c | [
"Apache-2.0"
] | null | null | null |
#include "http.hpp"
#include <vector>
/*static*/ TCPClientStream TCPClientStream::acceptFrom(short listener) {
struct sockaddr_in client;
const size_t clientLen = sizeof(client);
short sock = accept(
listener,
reinterpret_cast<struct sockaddr*>(&client),
const_cast<socklen_t*>(re... | 30.298246 | 122 | 0.550434 |
7504ec031afcc508c6f5e58eb8b1c0be91f0d33a | 9,092 | cpp | C++ | MOWER/src/MowerMoves/MowerMoves.cpp | Mrgove10/AutoMower | 9f157f27da13b94d0138208efebbe4f26b5d9187 | [
"MIT"
] | 2 | 2022-03-29T05:34:31.000Z | 2022-03-29T06:04:40.000Z | MOWER/src/MowerMoves/MowerMoves.cpp | Mrgove10/AutoMower | 9f157f27da13b94d0138208efebbe4f26b5d9187 | [
"MIT"
] | null | null | null | MOWER/src/MowerMoves/MowerMoves.cpp | Mrgove10/AutoMower | 9f157f27da13b94d0138208efebbe4f26b5d9187 | [
"MIT"
] | 1 | 2022-03-29T03:32:22.000Z | 2022-03-29T03:32:22.000Z | #include <Arduino.h>
#include "pin_definitions.h"
#include "Environment_definitions.h"
#include "myGlobals_definition.h"
#include "MowerMoves/MowerMoves.h"
#include "MotionMotor/MotionMotor.h"
#include "Utils/Utils.h"
#include "Display/Display.h"
/**
* Mower mouvement stop function
*/
void MowerStop()
{
DebugPrint... | 34.570342 | 241 | 0.723603 |
7506f8c3b63aff5e8b7ddfd042bcdccd46e947ac | 50,640 | cpp | C++ | element.cpp | orkzking/openxfem | 66889ea05ec108332ab8566b510124ee1a3f334d | [
"FTL"
] | null | null | null | element.cpp | orkzking/openxfem | 66889ea05ec108332ab8566b510124ee1a3f334d | [
"FTL"
] | null | null | null | element.cpp | orkzking/openxfem | 66889ea05ec108332ab8566b510124ee1a3f334d | [
"FTL"
] | null | null | null | /************************************************************************************
Copyright (C) 2005
Stephane BORDAS, Cyrille DUNANT, Vinh Phu NGUYEN, Quang Tri TRUONG, Ravindra DUDDU
This file is part of the XFEM C++ Library (OpenXFEM++) written
and maintained by above authors.
This program is free software; yo... | 28.337997 | 127 | 0.612638 |
7507e24f930050d37452586d5f7b9f3c34743c26 | 3,581 | cpp | C++ | src/TitleScene.cpp | ccabrales/ZoneRush | 0ded2f31580b9a369b19d59268000cff939e2bbd | [
"MIT"
] | null | null | null | src/TitleScene.cpp | ccabrales/ZoneRush | 0ded2f31580b9a369b19d59268000cff939e2bbd | [
"MIT"
] | null | null | null | src/TitleScene.cpp | ccabrales/ZoneRush | 0ded2f31580b9a369b19d59268000cff939e2bbd | [
"MIT"
] | null | null | null | #include "TitleScene.h"
void TitleScene::setup(){
title.load("ZoneRush2.png");
playButton.load("PlaySelected.png");
exitButton.load("Exit.png");
loadingImage.load("Loading.png");
resetPosition();
selectedIndex = 0;
loadState = TITLE;
imageDx = -20.0;
rightEmitter.setPositi... | 29.352459 | 117 | 0.63055 |
7508f423ff4f2dd47d6703130584e1bc6a1e2d1d | 3,347 | cpp | C++ | project_booking_qt_gui/ProjectBookingQtUI/ProjectBookingQtUI/reports.cpp | VBota1/project_booking | 13337130e1294df43c243cf1df53edfa736c42b7 | [
"MIT"
] | null | null | null | project_booking_qt_gui/ProjectBookingQtUI/ProjectBookingQtUI/reports.cpp | VBota1/project_booking | 13337130e1294df43c243cf1df53edfa736c42b7 | [
"MIT"
] | 2 | 2019-03-01T09:25:32.000Z | 2019-03-01T09:26:08.000Z | project_booking_qt_gui/ProjectBookingQtUI/ProjectBookingQtUI/reports.cpp | VBota1/project_booking | 13337130e1294df43c243cf1df53edfa736c42b7 | [
"MIT"
] | null | null | null | #include "reports.h"
Reports::Reports(QTreeWidget *month,QListWidget *standard,QListWidget *project,QLabel *current,StatusDisplay *statusWidget) {
monthReport=month;
standardReport=standard;
projectReport=project;
currentProject=current;
statusDisplay = statusWidget;
}
void Reports::updateMonthRe... | 27.211382 | 125 | 0.632805 |
75097d8a49eeac251bc1667c6a93628f398378e3 | 274 | hpp | C++ | modules/spdlog/shiva/spdlog/spdlog.hpp | Milerius/rs_engine | d25b54147f2f9a4710e3015c4eed7d076e3de04b | [
"MIT"
] | 176 | 2018-06-06T12:20:21.000Z | 2022-01-27T02:54:34.000Z | modules/spdlog/shiva/spdlog/spdlog.hpp | Milerius/rs_engine | d25b54147f2f9a4710e3015c4eed7d076e3de04b | [
"MIT"
] | 11 | 2018-06-09T21:30:02.000Z | 2019-09-14T16:03:12.000Z | modules/spdlog/shiva/spdlog/spdlog.hpp | Milerius/rs_engine | d25b54147f2f9a4710e3015c4eed7d076e3de04b | [
"MIT"
] | 19 | 2018-08-15T11:40:02.000Z | 2020-08-31T11:00:44.000Z | //
// Created by roman Sztergbaum on 19/06/2018.
//
#pragma once
#include <spdlog/spdlog.h>
#include <spdlog/sinks/stdout_color_sinks.h>
namespace shiva
{
namespace log = spdlog;
}
namespace shiva::logging
{
using logger = std::shared_ptr<shiva::log::logger>;
}
| 14.421053 | 55 | 0.70073 |
7509db9a401daf1896cb04c933a014f57817ff92 | 362 | hpp | C++ | sources/dansandu/chocolate/interpolation.hpp | dansandu/chocolate | a90bf78a6891f578a7718329527ae56b502b57c2 | [
"MIT"
] | null | null | null | sources/dansandu/chocolate/interpolation.hpp | dansandu/chocolate | a90bf78a6891f578a7718329527ae56b502b57c2 | [
"MIT"
] | null | null | null | sources/dansandu/chocolate/interpolation.hpp | dansandu/chocolate | a90bf78a6891f578a7718329527ae56b502b57c2 | [
"MIT"
] | null | null | null | #pragma once
#include "dansandu/chocolate/common.hpp"
namespace dansandu::chocolate::interpolation
{
Vector3 interpolate(const Vector3& a, const Vector3& b, const float x, const float y, const float epsilon);
Vector3 interpolate(const Vector3& a, const Vector3& b, const Vector3& c, const float x, const float y,
... | 25.857143 | 107 | 0.720994 |
750c844815ad49209ee37371cb7a5b86dea0d376 | 4,486 | hxx | C++ | include/opengm/learning/gridsearch-learning.hxx | chaubold/opengm | acc42b98b713db33f2b35aad05a7a1cf9752e862 | [
"MIT"
] | null | null | null | include/opengm/learning/gridsearch-learning.hxx | chaubold/opengm | acc42b98b713db33f2b35aad05a7a1cf9752e862 | [
"MIT"
] | null | null | null | include/opengm/learning/gridsearch-learning.hxx | chaubold/opengm | acc42b98b713db33f2b35aad05a7a1cf9752e862 | [
"MIT"
] | null | null | null | #pragma once
#ifndef OPENGM_GRIDSEARCH_LEARNER_HXX
#define OPENGM_GRIDSEARCH_LEARNER_HXX
#include <vector>
namespace opengm {
namespace learning {
template<class DATASET>
class GridSearchLearner
{
public:
typedef DATASET DatasetType;
typedef typename DATASET::GMTy... | 35.322835 | 183 | 0.56041 |
750cfaefd4746b7cea1bfd20de616b38d29defa8 | 4,698 | cpp | C++ | google/code_jam/2020/r3/pen_testing.cpp | Loks-/competitions | 3bb231ba9dd62447048832f45b09141454a51926 | [
"MIT"
] | 4 | 2018-06-05T14:15:52.000Z | 2022-02-08T05:14:23.000Z | google/code_jam/2020/r3/pen_testing.cpp | Loks-/competitions | 3bb231ba9dd62447048832f45b09141454a51926 | [
"MIT"
] | null | null | null | google/code_jam/2020/r3/pen_testing.cpp | Loks-/competitions | 3bb231ba9dd62447048832f45b09141454a51926 | [
"MIT"
] | 1 | 2018-10-21T11:01:35.000Z | 2018-10-21T11:01:35.000Z | #include "common/hash.h"
#include "common/stl/base.h"
#include "common/stl/hash/vector.h"
#include "common/vector/enumerate.h"
#include "common/vector/mask.h"
#include <unordered_map>
namespace {
static const unsigned N = 15;
class CompactState {
public:
unsigned l;
uint64_t mask;
vector<unsigned> vc;
Comp... | 23.373134 | 74 | 0.504683 |
750e33686e6c97f42691a16b2d3c80c696e33a99 | 2,984 | cpp | C++ | C++/hoffman_encoding.cpp | evidawei/HacktoberFest_2021 | 3c950c6a6451ac732c4090f374c7dc4b6ef36c50 | [
"MIT"
] | null | null | null | C++/hoffman_encoding.cpp | evidawei/HacktoberFest_2021 | 3c950c6a6451ac732c4090f374c7dc4b6ef36c50 | [
"MIT"
] | null | null | null | C++/hoffman_encoding.cpp | evidawei/HacktoberFest_2021 | 3c950c6a6451ac732c4090f374c7dc4b6ef36c50 | [
"MIT"
] | 1 | 2021-10-11T14:05:10.000Z | 2021-10-11T14:05:10.000Z | #include <bits/stdc++.h>
using namespace std;
#define EMPTY_STRING ""
struct Node
{
char ch;
int freq;
Node *left, *right;
};
Node* getNode(char ch, int freq, Node* left, Node* right)
{
Node* node = new Node();
node->ch = ch;
node->freq = freq;
node->left = left;
nod... | 22.778626 | 78 | 0.510054 |
7511d416a4978fcd2aa044fd577ad9edd11ae6b8 | 1,495 | hpp | C++ | libcaf_core/caf/flow/step/map.hpp | seewpx/actor-framework | 65ecf35317b81d7a211848d59e734f43483fe410 | [
"BSD-3-Clause"
] | null | null | null | libcaf_core/caf/flow/step/map.hpp | seewpx/actor-framework | 65ecf35317b81d7a211848d59e734f43483fe410 | [
"BSD-3-Clause"
] | null | null | null | libcaf_core/caf/flow/step/map.hpp | seewpx/actor-framework | 65ecf35317b81d7a211848d59e734f43483fe410 | [
"BSD-3-Clause"
] | null | null | null | // This file is part of CAF, the C++ Actor Framework. See the file LICENSE in
// the main distribution directory for license terms and copyright or visit
// https://github.com/actor-framework/actor-framework/blob/master/LICENSE.
#pragma once
#include "caf/detail/type_traits.hpp"
#include "caf/fwd.hpp"
#include <util... | 25.775862 | 80 | 0.671572 |
75138d319658400837893d58e2aee8f95eb1f383 | 1,081 | hpp | C++ | libs/fnd/algorithm/include/bksge/fnd/algorithm/reverse.hpp | myoukaku/bksge | 0f8b60e475a3f1709723906e4796b5e60decf06e | [
"MIT"
] | 4 | 2018-06-10T13:35:32.000Z | 2021-06-03T14:27:41.000Z | libs/fnd/algorithm/include/bksge/fnd/algorithm/reverse.hpp | myoukaku/bksge | 0f8b60e475a3f1709723906e4796b5e60decf06e | [
"MIT"
] | 566 | 2017-01-31T05:36:09.000Z | 2022-02-09T05:04:37.000Z | libs/fnd/algorithm/include/bksge/fnd/algorithm/reverse.hpp | myoukaku/bksge | 0f8b60e475a3f1709723906e4796b5e60decf06e | [
"MIT"
] | 1 | 2018-07-05T04:40:53.000Z | 2018-07-05T04:40:53.000Z | /**
* @file reverse.hpp
*
* @brief reverse の定義
*
* @author myoukaku
*/
#ifndef BKSGE_FND_ALGORITHM_REVERSE_HPP
#define BKSGE_FND_ALGORITHM_REVERSE_HPP
#include <bksge/fnd/algorithm/config.hpp>
#if defined(BKSGE_USE_STD_ALGORITHM)
#include <algorithm>
namespace bksge
{
using std::reverse... | 16.630769 | 51 | 0.650324 |
7518a26a3f9a48b498a5a0f719682f3753612846 | 3,880 | cc | C++ | src/tot_compare.cc | Mu2e/TrackerMCTune | 6472497f9359b33a236d47f39192a7faffc71dae | [
"Apache-2.0"
] | null | null | null | src/tot_compare.cc | Mu2e/TrackerMCTune | 6472497f9359b33a236d47f39192a7faffc71dae | [
"Apache-2.0"
] | 1 | 2021-12-03T14:37:41.000Z | 2021-12-03T14:37:41.000Z | src/tot_compare.cc | Mu2e/TrackerMCTune | 6472497f9359b33a236d47f39192a7faffc71dae | [
"Apache-2.0"
] | 2 | 2019-10-31T18:17:00.000Z | 2021-11-22T21:43:02.000Z | #include <iostream>
#include <fstream>
#include <sstream>
#include <string>
#include <stdlib.h>
#include <vector>
#include <TFile.h>
#include <TTree.h>
#include <TH1F.h>
#include <TH2F.h>
#include <TF1.h>
#include <TCanvas.h>
#include <TLegend.h>
#include <TApplication.h>
#include <TLatex.h>
#include <TLine.h>
#includ... | 26.575342 | 85 | 0.584794 |
75190d8b3eaf38c7736806ffc0e6b19f972a5745 | 12,435 | cpp | C++ | viewer/sokol_imgui.cpp | JCash/dungeonmaker | c64a90bdf1cff79d69f32ea6a8f219bb9daba7d9 | [
"MIT"
] | 4 | 2018-08-27T05:31:58.000Z | 2018-09-01T00:02:29.000Z | viewer/sokol_imgui.cpp | JCash/dungeonmaker | c64a90bdf1cff79d69f32ea6a8f219bb9daba7d9 | [
"MIT"
] | null | null | null | viewer/sokol_imgui.cpp | JCash/dungeonmaker | c64a90bdf1cff79d69f32ea6a8f219bb9daba7d9 | [
"MIT"
] | null | null | null | #include "imgui.h"
#if defined(__APPLE__)
#define SOKOL_METAL
#elif defined(WIN32)
#define SOKOL_D3D11
#elif defined(__EMSCRIPTEN__)
#define SOKOL_GLES2
#else
#error "No GFX Backend Specified"
#endif
#define SOKOL_IMPL
#include "sokol_app.h"
#include "sokol_gfx.h"
#include "sokol_time.h"
#include <st... | 33.790761 | 119 | 0.604664 |
751f699db40b8db0c4cffb7c35b3f5337e15d5f6 | 1,868 | cpp | C++ | problems/codejam/2016/2/rather-perplexing-showdown/code.cpp | brunodccarvalho/competitive | 4177c439174fbe749293b9da3445ce7303bd23c2 | [
"MIT"
] | 7 | 2020-10-15T22:37:10.000Z | 2022-02-26T17:23:49.000Z | problems/codejam/2016/2/rather-perplexing-showdown/code.cpp | brunodccarvalho/competitive | 4177c439174fbe749293b9da3445ce7303bd23c2 | [
"MIT"
] | null | null | null | problems/codejam/2016/2/rather-perplexing-showdown/code.cpp | brunodccarvalho/competitive | 4177c439174fbe749293b9da3445ce7303bd23c2 | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
using namespace std;
// *****
string make(int P, int R, int S) {
assert(P >= 0 && R >= 0 && S >= 0);
if (P + R + S == 1) {
if (P == 1)
return "P";
if (R == 1)
return "R";
if (S == 1)
return "S";
assert(false);
}
... | 21.72093 | 85 | 0.336188 |
75222869cec69877f7cf1812e300de8d226b149e | 3,234 | cxx | C++ | model_server/obj/src/string_to_int.cxx | kit-transue/software-emancipation-discover | bec6f4ef404d72f361d91de954eae9a3bd669ce3 | [
"BSD-2-Clause"
] | 2 | 2015-11-24T03:31:12.000Z | 2015-11-24T16:01:57.000Z | model_server/obj/src/string_to_int.cxx | radtek/software-emancipation-discover | bec6f4ef404d72f361d91de954eae9a3bd669ce3 | [
"BSD-2-Clause"
] | null | null | null | model_server/obj/src/string_to_int.cxx | radtek/software-emancipation-discover | bec6f4ef404d72f361d91de954eae9a3bd669ce3 | [
"BSD-2-Clause"
] | 1 | 2019-05-19T02:26:08.000Z | 2019-05-19T02:26:08.000Z | /*************************************************************************
* Copyright (c) 2015, Synopsys, Inc. *
* All rights reserved. *
* *
* Redistribution and... | 40.936709 | 77 | 0.527829 |
752307c05d9b1adb8aa85249d908665b5ecf029f | 2,565 | hpp | C++ | src/common/thread.hpp | longlonghands/fps-challenge | 020c133a782285364d52b1c98e9661c9aedfd96d | [
"MIT"
] | null | null | null | src/common/thread.hpp | longlonghands/fps-challenge | 020c133a782285364d52b1c98e9661c9aedfd96d | [
"MIT"
] | null | null | null | src/common/thread.hpp | longlonghands/fps-challenge | 020c133a782285364d52b1c98e9661c9aedfd96d | [
"MIT"
] | null | null | null | #pragma once
#include <functional>
#include <memory>
#include <stdexcept>
#include <thread>
namespace common { namespace async {
void sleep(int ms);
/// This class implements a platform-independent
/// wrapper around an operating system thread.
class Thread {
public:
typedef std::shared_ptr... | 26.173469 | 71 | 0.579337 |
970891b77c47801c8b11786a89e88ae016939709 | 10,383 | cpp | C++ | src/particle.cpp | ndevenish/nsl | 03dd69ce39258cad0547b968c062074e4b90fdf0 | [
"MIT"
] | null | null | null | src/particle.cpp | ndevenish/nsl | 03dd69ce39258cad0547b968c062074e4b90fdf0 | [
"MIT"
] | null | null | null | src/particle.cpp | ndevenish/nsl | 03dd69ce39258cad0547b968c062074e4b90fdf0 | [
"MIT"
] | null | null | null | /*
* Copyright (c) 2006-2012 Nicholas Devenish
*
* Permission is hereby granted, free of charge, to any person obtaining a copy of
* this software and associated documentation files (the "Software"), to deal in
* the Software without restriction, including without limitation the rights to
* use, copy, modify, m... | 27.323684 | 131 | 0.690456 |
97090938d893075b49d16b6dd0c8497823d900d3 | 1,059 | cc | C++ | src/main/native/darwin/util.cc | kjlubick/bazel | 6f0913e6e75477ec297430102a8213333a12967e | [
"Apache-2.0"
] | 1 | 2022-02-04T05:06:03.000Z | 2022-02-04T05:06:03.000Z | src/main/native/darwin/util.cc | kjlubick/bazel | 6f0913e6e75477ec297430102a8213333a12967e | [
"Apache-2.0"
] | 3 | 2017-07-10T13:18:04.000Z | 2018-08-30T19:29:46.000Z | src/main/native/darwin/util.cc | kjlubick/bazel | 6f0913e6e75477ec297430102a8213333a12967e | [
"Apache-2.0"
] | 1 | 2022-01-12T18:08:14.000Z | 2022-01-12T18:08:14.000Z | // Copyright 2021 The Bazel Authors. All rights reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by appl... | 31.147059 | 76 | 0.745042 |
97094f6541bda09c47adf1bc12acd753f4e0a99b | 1,307 | cpp | C++ | test/dataalign/test_dataalign.cpp | fox000002/ulib-win | 628c4a0b8193d1ad771aa85598776ff42a45f913 | [
"Apache-2.0"
] | 4 | 2016-09-07T07:02:52.000Z | 2019-06-22T08:55:53.000Z | test/dataalign/test_dataalign.cpp | fox000002/ulib-win | 628c4a0b8193d1ad771aa85598776ff42a45f913 | [
"Apache-2.0"
] | null | null | null | test/dataalign/test_dataalign.cpp | fox000002/ulib-win | 628c4a0b8193d1ad771aa85598776ff42a45f913 | [
"Apache-2.0"
] | 3 | 2019-06-22T16:00:39.000Z | 2022-03-09T13:46:27.000Z | #include <stdio.h>
#include <windows.h>
int mswindows_handle_hardware_exceptions (DWORD code)
{
printf("Handling exception\n");
if (code == STATUS_DATATYPE_MISALIGNMENT)
{
printf("misalignment fault!\n");
return EXCEPTION_EXECUTE_HANDLER;
}
else
return EXCEPTION_CONTINUE_SEARCH;
... | 20.107692 | 72 | 0.497322 |
9709fcca401e1a7f071545e31f5dc431f22736ac | 7,362 | cpp | C++ | src/engine/private/rendererandroid.cpp | dream-overflow/o3d | 087ab870cc0fd9091974bb826e25c23903a1dde0 | [
"FSFAP"
] | 2 | 2019-06-22T23:29:44.000Z | 2019-07-07T18:34:04.000Z | src/engine/private/rendererandroid.cpp | dream-overflow/o3d | 087ab870cc0fd9091974bb826e25c23903a1dde0 | [
"FSFAP"
] | null | null | null | src/engine/private/rendererandroid.cpp | dream-overflow/o3d | 087ab870cc0fd9091974bb826e25c23903a1dde0 | [
"FSFAP"
] | null | null | null | /**
* @file rendererandroid.cpp
* @brief
* @author Frederic SCHERMA (frederic.scherma@dreamoverflow.org)
* @date 2017-12-09
* @copyright Copyright (c) 2001-2017 Dream Overflow. All rights reserved.
* @details
*/
#include "o3d/engine/precompiled.h"
#include "o3d/engine/renderer.h"
// ONLY IF O3D_ANDROID IS SELE... | 27.470149 | 123 | 0.619669 |
970a0dc9bef87e899dc9a929f4a47aa138c8dc3b | 3,481 | cpp | C++ | Codility_CommonPrimerDivisor.cpp | CharlieGearsTech/Codility | b0c4355eb68f05f24390075e3fe2fe555d40b6b9 | [
"MIT"
] | 1 | 2021-01-31T22:59:59.000Z | 2021-01-31T22:59:59.000Z | Codility_CommonPrimerDivisor.cpp | CharlieGearsTech/Codility | b0c4355eb68f05f24390075e3fe2fe555d40b6b9 | [
"MIT"
] | null | null | null | Codility_CommonPrimerDivisor.cpp | CharlieGearsTech/Codility | b0c4355eb68f05f24390075e3fe2fe555d40b6b9 | [
"MIT"
] | null | null | null | #include <iostream>
#include <assert.h>
#include <math.h>
#include <vector>
#include <algorithm>
#include <numeric>
#include <map>
#include <deque>
#include <stdlib.h>
#include <string>
#include <set>
#include <vector>
#include <new>
#include <memory>
using namespace std;
/*Crea un arreglo en la que los indices muest... | 23.362416 | 228 | 0.607871 |
970df27bbd8f99dc06963233fda0aa18d6bbaf7f | 2,258 | hpp | C++ | include/rllib/bundle/Bundle.hpp | loriswit/rllib | a09a73f8ac353db76454007b2ec95bf438c0fc1a | [
"MIT"
] | 1 | 2022-02-15T17:49:44.000Z | 2022-02-15T17:49:44.000Z | include/rllib/bundle/Bundle.hpp | loriswit/rllib | a09a73f8ac353db76454007b2ec95bf438c0fc1a | [
"MIT"
] | null | null | null | include/rllib/bundle/Bundle.hpp | loriswit/rllib | a09a73f8ac353db76454007b2ec95bf438c0fc1a | [
"MIT"
] | null | null | null | #ifndef RLLIB_BUNDLE_HPP
#define RLLIB_BUNDLE_HPP
#include <string>
#include <rllib/stream/ByteStream.hpp>
#include <rllib/bundle/FileProperties.hpp>
namespace rl
{
/**
* A bundle is a collection of files packed in a big single file. It is used to store all the game assets.
* In particular, this is where scene ar... | 27.204819 | 106 | 0.647476 |
970e072080a9ec4db50ac4aeb4e5ca80634a2942 | 18,605 | cpp | C++ | OOP/Project_2/main.cpp | moyfdzz/University-Projects | 8d6ab689fd3fba43994494245e489b1c97544fbd | [
"MIT"
] | 4 | 2018-04-27T00:03:39.000Z | 2019-01-27T07:31:57.000Z | OOP/Project_2/main.cpp | moyfdzz/University-Projects | 8d6ab689fd3fba43994494245e489b1c97544fbd | [
"MIT"
] | 1 | 2018-04-08T18:55:36.000Z | 2018-11-01T02:30:11.000Z | OOP/Project_2/main.cpp | moyfdzz/University-Assignments | 8d6ab689fd3fba43994494245e489b1c97544fbd | [
"MIT"
] | null | null | null | #include <string>
#include <fstream>
#include <iostream>
using namespace std;
#include "EjemploVideo.h"
Materia materias[5];
Tema temas[10];
Autor autores[10];
EjemploVideo eVideos[20];
int cantidadTemasG = 0, cantidadAutoresG = 0, cantidadMateriasG = 0, cantidadEVideosG = 0;
void cargarDatosMaterias()
{
string ... | 28.623077 | 114 | 0.5448 |
9710455bfa31dd6d4cbc8488a2e2b731c93b7598 | 2,848 | cpp | C++ | projects-lib/opengl-wrapper/draw/GLSquare.cpp | A-Ribeiro/OpenGLStarter | 0552513f24ce3820b4957b1e453e615a9b77c8ff | [
"MIT"
] | 15 | 2019-01-13T16:07:27.000Z | 2021-09-27T15:18:58.000Z | projects-lib/opengl-wrapper/draw/GLSquare.cpp | A-Ribeiro/OpenGLStarter | 0552513f24ce3820b4957b1e453e615a9b77c8ff | [
"MIT"
] | 1 | 2019-03-14T00:36:35.000Z | 2020-12-29T11:48:09.000Z | projects-lib/opengl-wrapper/draw/GLSquare.cpp | A-Ribeiro/OpenGLStarter | 0552513f24ce3820b4957b1e453e615a9b77c8ff | [
"MIT"
] | 3 | 2020-03-02T21:28:56.000Z | 2021-09-27T15:18:50.000Z | #include "GLSquare.h"
#include <opengl-wrapper/PlatformGL.h>
namespace openglWrapper {
//short drawOrder[6] = { 0, 1, 2, 0, 2, 3 }; // order to draw vertices
GLSquare::GLSquare() {
}
void GLSquare::draw(GLShaderColor *shader) {
const int COORDS_PER_POS = 3;
const int STRUCTURE_STR... | 30.956522 | 150 | 0.601475 |
9710f58c33f0561bfe2070f30e4e86b72d6a9a41 | 10,075 | cc | C++ | squid/squid3-3.3.8.spaceify/src/auth/negotiate/auth_negotiate.cc | spaceify/spaceify | 4296d6c93cad32bb735cefc9b8157570f18ffee4 | [
"MIT"
] | 4 | 2015-01-20T15:25:34.000Z | 2017-12-20T06:47:42.000Z | squid/squid3-3.3.8.spaceify/src/auth/negotiate/auth_negotiate.cc | spaceify/spaceify | 4296d6c93cad32bb735cefc9b8157570f18ffee4 | [
"MIT"
] | 4 | 2015-05-15T09:32:55.000Z | 2016-02-18T13:43:31.000Z | squid/squid3-3.3.8.spaceify/src/auth/negotiate/auth_negotiate.cc | spaceify/spaceify | 4296d6c93cad32bb735cefc9b8157570f18ffee4 | [
"MIT"
] | null | null | null | /*
* DEBUG: section 29 Negotiate Authenticator
* AUTHOR: Robert Collins, Henrik Nordstrom, Francesco Chemolli
*
* SQUID Web Proxy Cache http://www.squid-cache.org/
* ----------------------------------------------------------
*
* Squid is the result of efforts by numerous individuals from
* the Int... | 33.250825 | 151 | 0.669181 |
97119b216fa931d06d1caaf67a230202aa9805f0 | 451 | cpp | C++ | game/tile.cpp | StylishTriangles/Scrabble | 9d24a598ad552533d1cdf4a47fae586d8f6cb607 | [
"MIT"
] | null | null | null | game/tile.cpp | StylishTriangles/Scrabble | 9d24a598ad552533d1cdf4a47fae586d8f6cb607 | [
"MIT"
] | null | null | null | game/tile.cpp | StylishTriangles/Scrabble | 9d24a598ad552533d1cdf4a47fae586d8f6cb607 | [
"MIT"
] | null | null | null | #include "tile.h"
/**
* @brief Default constructor for Tile.
**/
Tile::Tile() :
modified(false), bonus(BONUS_NONE),
letter(L' '), backup(letter)
{
}
/**
* @brief Set character representing this Tile.
* @param ch: Character to represent this Tile object.
**/
void Tile::set(wchar_t ch)
{
if (ch != l... | 16.703704 | 54 | 0.547672 |
97147701e11e92d08470269a5d390fa33c4699b5 | 6,715 | cpp | C++ | src/tcp/socket_manager.cpp | alipay/sofa-bolt-cpp | 6f422c0a8767ff8292db2b7c0557f9990219eb6b | [
"Apache-2.0"
] | 13 | 2018-09-05T07:10:11.000Z | 2019-04-30T01:31:32.000Z | src/tcp/socket_manager.cpp | sofastack/sofa-bolt-cpp | 6f422c0a8767ff8292db2b7c0557f9990219eb6b | [
"Apache-2.0"
] | 1 | 2018-11-03T03:54:40.000Z | 2018-11-05T11:37:33.000Z | src/tcp/socket_manager.cpp | sofastack/sofa-bolt-cpp | 6f422c0a8767ff8292db2b7c0557f9990219eb6b | [
"Apache-2.0"
] | 2 | 2019-09-08T13:52:09.000Z | 2021-04-21T08:42:08.000Z | // Copyright (c) 2018 Ant Financial, Inc. All Rights Reserved
// Created by zhenggu.xwt on 18/4/13.
//
#include "socket_manager.h"
#include <future>
#include <poll.h>
#include "common/utils.h"
#include "session/session.h"
#include "schedule/schedule.h"
#include "common/log.h"
namespace antflash {
bool SocketManager:... | 36.494565 | 88 | 0.554728 |
971667fd5c4d2259c9287db4407c7eaa04968372 | 10,064 | cpp | C++ | src/subsys/CompBot/CompBotChassis.cpp | Team302/2017Steamworks | 757a5332c47dd007482e30ee067852d13582ba39 | [
"MIT"
] | null | null | null | src/subsys/CompBot/CompBotChassis.cpp | Team302/2017Steamworks | 757a5332c47dd007482e30ee067852d13582ba39 | [
"MIT"
] | 1 | 2018-09-07T14:14:28.000Z | 2018-09-13T04:01:33.000Z | src/subsys/CompBot/CompBotChassis.cpp | Team302/2017Steamworks | 757a5332c47dd007482e30ee067852d13582ba39 | [
"MIT"
] | null | null | null | /*
* CompBotChassis.cpp
*
* Created on: Jan 16, 2017
* Author: Austin/Neethan
*/
#include <utils/DragonTalon.h>
#include <utils/LimitValue.h>
#include <subsys/CompBot/CompBotChassis.h>
#include <subsys/CompBot/CompMap.h>
#include <subsys/interfaces/IChassis.h>
#include <SmartDashboard/SmartDashboard.h>
nam... | 35.066202 | 129 | 0.760036 |
971733900a376ce3f61885343dbbdf7b00d930ed | 6,427 | cc | C++ | lab5/set_assoc.cc | microHertz/ECS154B | e11bcc3299059358ae2e0435b60469382eb37364 | [
"CC-BY-4.0"
] | null | null | null | lab5/set_assoc.cc | microHertz/ECS154B | e11bcc3299059358ae2e0435b60469382eb37364 | [
"CC-BY-4.0"
] | null | null | null | lab5/set_assoc.cc | microHertz/ECS154B | e11bcc3299059358ae2e0435b60469382eb37364 | [
"CC-BY-4.0"
] | 1 | 2021-04-01T04:22:33.000Z | 2021-04-01T04:22:33.000Z |
#include <cassert>
#include <cstring>
#include "set_assoc.hh"
#include "memory.hh"
#include "processor.hh"
#include "util.hh"
SetAssociativeCache::SetAssociativeCache(int64_t size, Memory& memory,
Processor& processor, int ways) :
Cache(size, memory, processor),
ways(... | 29.481651 | 83 | 0.606504 |
9717b27939f1cd716d928179a9561929900d5c66 | 3,709 | cpp | C++ | src/base/muduo/net/poller/poll_poller.cpp | sbfhy/server1 | b9597a3783a0f7bb929b4b9fa7f621c81740b056 | [
"BSD-3-Clause"
] | null | null | null | src/base/muduo/net/poller/poll_poller.cpp | sbfhy/server1 | b9597a3783a0f7bb929b4b9fa7f621c81740b056 | [
"BSD-3-Clause"
] | null | null | null | src/base/muduo/net/poller/poll_poller.cpp | sbfhy/server1 | b9597a3783a0f7bb929b4b9fa7f621c81740b056 | [
"BSD-3-Clause"
] | null | null | null | #include "muduo/net/poller/poll_poller.h"
#include "muduo/net/common/channel.h"
#include "muduo/base/common/logging.h"
#include "define/define_types.h"
#include <asm-generic/errno-base.h>
#include <assert.h>
#include <errno.h>
#include <poll.h>
#include <sys/cdefs.h>
using namespace muduo;
using namespace muduo::net;
... | 28.312977 | 88 | 0.640874 |
97183bf80c9dbf7b6f32600a7f96ade0928d99f5 | 4,191 | cpp | C++ | Practice/2018/2018.12.29/BZOJ5417.cpp | SYCstudio/OI | 6e9bfc17dbd4b43467af9b19aa2aed41e28972fa | [
"MIT"
] | 4 | 2017-10-31T14:25:18.000Z | 2018-06-10T16:10:17.000Z | Practice/2018/2018.12.29/BZOJ5417.cpp | SYCstudio/OI | 6e9bfc17dbd4b43467af9b19aa2aed41e28972fa | [
"MIT"
] | null | null | null | Practice/2018/2018.12.29/BZOJ5417.cpp | SYCstudio/OI | 6e9bfc17dbd4b43467af9b19aa2aed41e28972fa | [
"MIT"
] | null | null | null | #include<cstdio>
#include<cstdlib>
#include<cstring>
#include<algorithm>
#include<vector>
#include<iostream>
using namespace std;
#define mem(Arr,x) memset(Arr,x,sizeof(Arr))
#define ll long long
#define NAME "name"
const int maxL=505000*2;
const int maxAlpha=26;
class Node{
public:
int son[maxAlpha],fail,len;
};
... | 25.4 | 102 | 0.545455 |
97189995a32bdf90aa00afcba997e87849321c16 | 6,186 | cpp | C++ | Tools/DcmCmoveSCU/dicomquery.cpp | zyq1569/HealthApp | 9e96e8759aad577693f597b5763febd2094767ee | [
"BSD-3-Clause"
] | 3 | 2020-06-30T02:44:30.000Z | 2022-01-13T12:27:09.000Z | Tools/DcmCmoveSCU/dicomquery.cpp | zyq1569/HealthApp | 9e96e8759aad577693f597b5763febd2094767ee | [
"BSD-3-Clause"
] | 3 | 2021-12-14T20:45:20.000Z | 2021-12-18T18:22:04.000Z | Tools/DcmCmoveSCU/dicomquery.cpp | zyq1569/HealthApp | 9e96e8759aad577693f597b5763febd2094767ee | [
"BSD-3-Clause"
] | 6 | 2019-09-19T11:40:48.000Z | 2020-12-07T08:01:52.000Z |
#include "dicomquery.h"
#include <boost/thread.hpp>
// work around the fact that dcmtk doesn't work in unicode mode, so all string operation needs to be converted from/to mbcs
#ifdef _UNICODE
#undef _UNICODE
#undef UNICODE
#define _UNDEFINEDUNICODE
#endif
#include "dcmtk/ofstd/ofstd.h"
#include "dcmtk/oflog/oflog.h... | 27.371681 | 159 | 0.707727 |
971ba38196a99e61d55b148d731d5f280f161836 | 5,735 | cpp | C++ | src/TEXBModify.cpp | MikuAuahDark/Itsudemo | 3e939414bff6d21abd41670dd7278435721075ae | [
"Zlib"
] | 30 | 2016-02-26T16:21:39.000Z | 2021-07-21T06:42:33.000Z | src/TEXBModify.cpp | Ink-33/Itsudemo | 3e939414bff6d21abd41670dd7278435721075ae | [
"Zlib"
] | 3 | 2016-08-25T16:37:12.000Z | 2016-11-27T06:26:32.000Z | src/TEXBModify.cpp | Ink-33/Itsudemo | 3e939414bff6d21abd41670dd7278435721075ae | [
"Zlib"
] | 14 | 2016-04-03T15:42:56.000Z | 2019-09-16T02:08:33.000Z | /**
* TEXBModify.cpp
* Modification of TextureBank class
**/
#include "TEXB.h"
#include "xy2uv.h"
#include <algorithm>
#include <vector>
#include <map>
#include <string>
#include <cerrno>
#include <cstdlib>
#include <cstring>
TextureBank::TextureBank(uint32_t _Width,uint32_t _Height):Width(RawImageWidth),Height(Raw... | 28.532338 | 137 | 0.689799 |
971cd7c3d55ec832dc00c68b332983eccc0351c9 | 748 | cpp | C++ | src/Island.cpp | luka1199/bridges | 117c91d714aa19fa4c5138b032583e3efe93d142 | [
"MIT"
] | null | null | null | src/Island.cpp | luka1199/bridges | 117c91d714aa19fa4c5138b032583e3efe93d142 | [
"MIT"
] | 1 | 2019-08-14T13:36:33.000Z | 2019-08-14T13:36:33.000Z | src/Island.cpp | luka1199/bridges | 117c91d714aa19fa4c5138b032583e3efe93d142 | [
"MIT"
] | null | null | null | // Copyright 2018,
// Author: Luka Steinbach <luka.steinbach@gmx.de>
#include "./Island.h"
#include <string>
#include <vector>
// _____________________________________________________________________________
Island::Island(int x, int y, int count) : Field(x, y) {
_islandCount = count;
_correctBridgeCount = 0;
_... | 27.703704 | 80 | 0.798128 |
971d0e7be632f513340bede6a7f76ecd77082369 | 77,961 | cpp | C++ | simulation-code/Network.cpp | jlubo/memory-consolidation-stc | f9934760e12de324360297d7fc7902623169cb4d | [
"Apache-2.0"
] | 2 | 2021-03-02T21:46:56.000Z | 2021-06-30T03:12:07.000Z | simulation-code/Network.cpp | jlubo/memory-consolidation-stc | f9934760e12de324360297d7fc7902623169cb4d | [
"Apache-2.0"
] | null | null | null | simulation-code/Network.cpp | jlubo/memory-consolidation-stc | f9934760e12de324360297d7fc7902623169cb4d | [
"Apache-2.0"
] | 3 | 2021-03-22T12:56:52.000Z | 2021-09-13T07:42:36.000Z | /**************************************************************************************************
*** Model of a network of neurons with long-term plasticity between excitatory neurons ***
**************************************************************************************************/
/*** Copyright 201... | 32.375831 | 161 | 0.659689 |
97223cf5eab0d82cf2ae033407622716e90e72ba | 1,428 | cpp | C++ | Oem/dbxml/dbxml/src/dbxml/query/QueryPlanToAST.cpp | achilex/MgDev | f7baf680a88d37659af32ee72b9a2046910b00d8 | [
"PHP-3.0"
] | 2 | 2017-04-19T01:38:30.000Z | 2020-07-31T03:05:32.000Z | Oem/dbxml/dbxml/src/dbxml/query/QueryPlanToAST.cpp | achilex/MgDev | f7baf680a88d37659af32ee72b9a2046910b00d8 | [
"PHP-3.0"
] | null | null | null | Oem/dbxml/dbxml/src/dbxml/query/QueryPlanToAST.cpp | achilex/MgDev | f7baf680a88d37659af32ee72b9a2046910b00d8 | [
"PHP-3.0"
] | 1 | 2021-12-29T10:46:12.000Z | 2021-12-29T10:46:12.000Z | //
// See the file LICENSE for redistribution information.
//
// Copyright (c) 2002,2009 Oracle. All rights reserved.
//
//
#include "../DbXmlInternal.hpp"
#include "QueryPlanToAST.hpp"
#include "ASTToQueryPlan.hpp"
#include "QueryPlan.hpp"
#include "NodeIterator.hpp"
#include <xqilla/ast/XQNav.hpp>
#include <xqilla... | 21.313433 | 100 | 0.688375 |
972393cee5e0b965ae335d1d954c3d74207f5581 | 3,528 | cpp | C++ | src/n_angleBinaryOp.cpp | Lohult/angularNodes | 2f923419b01439e6bf63bcd65b87dfc68a3e72d0 | [
"MIT"
] | 24 | 2016-09-03T23:36:56.000Z | 2022-02-18T08:21:16.000Z | src/n_angleBinaryOp.cpp | Lohult/angularNodes | 2f923419b01439e6bf63bcd65b87dfc68a3e72d0 | [
"MIT"
] | 4 | 2016-09-06T09:59:01.000Z | 2018-01-13T19:36:39.000Z | src/n_angleBinaryOp.cpp | Lohult/angularNodes | 2f923419b01439e6bf63bcd65b87dfc68a3e72d0 | [
"MIT"
] | 7 | 2017-02-16T06:13:21.000Z | 2019-07-19T22:46:49.000Z | /**
Copyright (c) 2016 Ryan Porter - arrayNodes
You may use, distribute, or modify this code under the terms of the MIT license.
*/
//-----------------------------------------------------------------------------
// angleUnaryOp node
//
// Performs a binary operation with two input values.
// No Operation - R... | 26.727273 | 80 | 0.618197 |
972566b7275599fa4d12f37c5ccbe4fb676cc609 | 2,385 | cpp | C++ | code/check.cpp | shercoo/TSP-Pointer_network | 7ccda5d29e3ba4cfe2eb94350073936b591b61e7 | [
"MIT"
] | 1 | 2021-06-08T19:39:43.000Z | 2021-06-08T19:39:43.000Z | code/check.cpp | shercoo/TSP-Pointer_network | 7ccda5d29e3ba4cfe2eb94350073936b591b61e7 | [
"MIT"
] | null | null | null | code/check.cpp | shercoo/TSP-Pointer_network | 7ccda5d29e3ba4cfe2eb94350073936b591b61e7 | [
"MIT"
] | 1 | 2021-05-17T13:51:29.000Z | 2021-05-17T13:51:29.000Z | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
int read()
{
char c;
int x=0,flag=1;
while((c=getchar())&&(c<'0'||c>'9'))
if(c=='-')
flag=-1;
do x=x*10+c-'0';
while((c=getchar())&&c>='0'&&c<='9');
return x*flag;
}
const int maxn=21;
double dp[1<<maxn][maxn... | 25.37234 | 78 | 0.434801 |
9725f2cc945f31ed11817f4d8f9bcff7d992073b | 558 | hpp | C++ | Classes/PlaneLayer.hpp | nickqiao/AirWar | 1cd8b418a1a3ec240bc02581ecff034218939b59 | [
"Apache-2.0"
] | 2 | 2017-10-14T06:27:15.000Z | 2021-11-05T20:27:28.000Z | Classes/PlaneLayer.hpp | nickqiao/AirWar | 1cd8b418a1a3ec240bc02581ecff034218939b59 | [
"Apache-2.0"
] | null | null | null | Classes/PlaneLayer.hpp | nickqiao/AirWar | 1cd8b418a1a3ec240bc02581ecff034218939b59 | [
"Apache-2.0"
] | null | null | null | //
// PlaneLayer.hpp
// AirWar
//
// Created by nick on 2017/1/19.
// Copyright © 2017年 chenyuqiao. All rights reserved.
//
#include "cocos2d.h"
USING_NS_CC;
const int AIRPLANE=747;
class PlaneLayer : public Layer {
public:
PlaneLayer();
~PlaneLayer();
static PlaneLayer* create();
... | 12.976744 | 54 | 0.587814 |
972b50cd1f04f521e7246ec9b1ca30ac7d0280a9 | 25,083 | cpp | C++ | src/genlib/miniserver/miniserver.cpp | xiyusullos/upnpsdk | a1e280530338220a91668e6e6f2f07ccbc0c1382 | [
"BSD-3-Clause"
] | null | null | null | src/genlib/miniserver/miniserver.cpp | xiyusullos/upnpsdk | a1e280530338220a91668e6e6f2f07ccbc0c1382 | [
"BSD-3-Clause"
] | null | null | null | src/genlib/miniserver/miniserver.cpp | xiyusullos/upnpsdk | a1e280530338220a91668e6e6f2f07ccbc0c1382 | [
"BSD-3-Clause"
] | null | null | null | ///////////////////////////////////////////////////////////////////////////
//
// Copyright (c) 2000 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 o... | 23.398321 | 95 | 0.516047 |
972b970c9e6a636bf21a733fb3226f50233e9573 | 4,163 | hpp | C++ | sdk/boost_1_30_0/boost/integer/static_log2.hpp | acidicMercury8/xray-1.0 | 65e85c0e31e82d612c793d980dc4b73fa186c76c | [
"Linux-OpenIB"
] | 10 | 2021-05-04T06:40:27.000Z | 2022-01-20T20:24:28.000Z | sdk/boost_1_30_0/boost/integer/static_log2.hpp | acidicMercury8/xray-1.0 | 65e85c0e31e82d612c793d980dc4b73fa186c76c | [
"Linux-OpenIB"
] | null | null | null | sdk/boost_1_30_0/boost/integer/static_log2.hpp | acidicMercury8/xray-1.0 | 65e85c0e31e82d612c793d980dc4b73fa186c76c | [
"Linux-OpenIB"
] | 3 | 2016-02-14T01:20:43.000Z | 2021-02-03T11:19:11.000Z | // Boost integer/static_log2.hpp header file -------------------------------//
// (C) Copyright Daryle Walker 2001. Permission to copy, use, modify, sell and
// distribute this software is granted provided this copyright notice appears
// in all copies. This software is provided "as is" without express... | 29.316901 | 88 | 0.675715 |
972c55857ab2a64081bc3d0b601fdc8136a6e8de | 2,845 | cpp | C++ | external/openglcts/modules/glesext/draw_buffers_indexed/esextcDrawBuffersIndexedTests.cpp | iabernikhin/VK-GL-CTS | a3338eb2ded98b5befda64f9325db0d219095a00 | [
"Apache-2.0"
] | 354 | 2017-01-24T17:12:38.000Z | 2022-03-30T07:40:19.000Z | external/openglcts/modules/glesext/draw_buffers_indexed/esextcDrawBuffersIndexedTests.cpp | iabernikhin/VK-GL-CTS | a3338eb2ded98b5befda64f9325db0d219095a00 | [
"Apache-2.0"
] | 275 | 2017-01-24T20:10:36.000Z | 2022-03-24T16:24:50.000Z | external/openglcts/modules/glesext/draw_buffers_indexed/esextcDrawBuffersIndexedTests.cpp | iabernikhin/VK-GL-CTS | a3338eb2ded98b5befda64f9325db0d219095a00 | [
"Apache-2.0"
] | 190 | 2017-01-24T18:02:04.000Z | 2022-03-27T13:11:23.000Z | /*-------------------------------------------------------------------------
* OpenGL Conformance Test Suite
* -----------------------------
*
* Copyright (c) 2015-2016 The Khronos Group Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with ... | 36.012658 | 114 | 0.687873 |
972e40c3e8102a66fd486836e97db36718a93fd6 | 1,287 | cpp | C++ | ProducerConsumer/worker.cpp | bloodMaster/ProducerConsumer | 934130b029bff0ce0f314ca65a76f8cbf9b879df | [
"MIT"
] | null | null | null | ProducerConsumer/worker.cpp | bloodMaster/ProducerConsumer | 934130b029bff0ce0f314ca65a76f8cbf9b879df | [
"MIT"
] | null | null | null | ProducerConsumer/worker.cpp | bloodMaster/ProducerConsumer | 934130b029bff0ce0f314ca65a76f8cbf9b879df | [
"MIT"
] | null | null | null | #include "worker.hpp"
#include <iostream>
#include <random>
std::mutex s_mutex;
std::atomic<int> Worker::s_numOfActiveProducers;
std::atomic<bool> Worker::s_shouldWork = true;
Worker::DataContainer Worker::s_dataContainer;
const unsigned int Worker::s_maxSizeOfQueue = 100;
const unsigned int Worker::s_a... | 19.208955 | 77 | 0.685315 |
97314d6ac911c17d6d79f8ee95e6d033767e7c29 | 73,926 | cpp | C++ | httpendpoints.cpp | qbit-t/qb | c1fd82df3838f8526fc5e335254529ab6f953f78 | [
"MIT"
] | 1 | 2021-02-14T04:04:50.000Z | 2021-02-14T04:04:50.000Z | httpendpoints.cpp | qbit-t/qb | c1fd82df3838f8526fc5e335254529ab6f953f78 | [
"MIT"
] | null | null | null | httpendpoints.cpp | qbit-t/qb | c1fd82df3838f8526fc5e335254529ab6f953f78 | [
"MIT"
] | 1 | 2021-08-28T07:42:43.000Z | 2021-08-28T07:42:43.000Z | #include "httprequesthandler.h"
#include "httpreply.h"
#include "httprequest.h"
#include "log/log.h"
#include "json.h"
#include "tinyformat.h"
#include "httpendpoints.h"
#include "vm/vm.h"
#include <iostream>
using namespace qbit;
void HttpMallocStats::process(const std::string& source, const HttpRequest& request, c... | 29.487834 | 171 | 0.627141 |
9734163529bf58d4bd81ddf95bf6f89ab05f743b | 1,032 | cpp | C++ | C++/05_Dynamic_Programming/MEDIUM_DECODE_WAYS.cpp | animeshramesh/interview-prep | 882e8bc8b4653a713754ab31a3b08e05505be2bc | [
"Apache-2.0"
] | null | null | null | C++/05_Dynamic_Programming/MEDIUM_DECODE_WAYS.cpp | animeshramesh/interview-prep | 882e8bc8b4653a713754ab31a3b08e05505be2bc | [
"Apache-2.0"
] | null | null | null | C++/05_Dynamic_Programming/MEDIUM_DECODE_WAYS.cpp | animeshramesh/interview-prep | 882e8bc8b4653a713754ab31a3b08e05505be2bc | [
"Apache-2.0"
] | null | null | null | /* A message containing letters from A-Z is being encoded to numbers using the following mapping:
'A' -> 1
'B' -> 2
...
'Z' -> 26
Given an encoded message containing digits, determine the total number of ways to decode it.
For example,
Given encoded message "12", it could be decoded as "AB" (1 2) or "L" (12).
The nu... | 32.25 | 97 | 0.592054 |
9734922a52146c96dae481fb1d6da9230ee6ff94 | 1,810 | cpp | C++ | libraries/physics/src/ContactConstraint.cpp | ey6es/hifi | 23f9c799dde439e4627eef45341fb0d53feff80b | [
"Apache-2.0"
] | null | null | null | libraries/physics/src/ContactConstraint.cpp | ey6es/hifi | 23f9c799dde439e4627eef45341fb0d53feff80b | [
"Apache-2.0"
] | null | null | null | libraries/physics/src/ContactConstraint.cpp | ey6es/hifi | 23f9c799dde439e4627eef45341fb0d53feff80b | [
"Apache-2.0"
] | null | null | null | //
// ContactConstraint.cpp
// libraries/physcis/src
//
// Created by Andrew Meadows 2014.07.24
// Copyright 2014 High Fidelity, Inc.
//
// Distributed under the Apache License, Version 2.0.
// See the accompanying file LICENSE or http://www.apache.org/licenses/LICENSE-2.0.html
//
#include <SharedUtil.h>
#inclu... | 33.518519 | 112 | 0.692265 |
9734eb840112ee3d67af26b01b7786ba873b5526 | 2,839 | hpp | C++ | include/boost/http_proto/detail/copied_strings.hpp | alandefreitas/http_proto | dc64cbdd44048a2c06671282b736f7edacb39a42 | [
"BSL-1.0"
] | 6 | 2021-11-17T03:23:50.000Z | 2021-11-25T15:58:02.000Z | include/boost/http_proto/detail/copied_strings.hpp | alandefreitas/http_proto | dc64cbdd44048a2c06671282b736f7edacb39a42 | [
"BSL-1.0"
] | 6 | 2021-11-17T16:13:52.000Z | 2022-01-31T04:17:47.000Z | include/boost/http_proto/detail/copied_strings.hpp | samd2/http_proto | 486729f1a68b7611f143e18c7bae8df9b908e9aa | [
"BSL-1.0"
] | 3 | 2021-11-17T03:01:12.000Z | 2021-11-17T14:14:45.000Z | //
// Copyright (c) 2019 Vinnie Falco (vinnie.falco@gmail.com)
//
// Distributed under the Boost Software License, Version 1.0. (See accompanying
// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
//
// Official repository: https://github.com/CPPAlliance/http_proto
//
#ifndef BOOST_HTTP_PROTO_DET... | 22.712 | 79 | 0.559352 |
97384c308cf5a7f11846cde620d00a08f7c3b3c2 | 536 | cpp | C++ | ALP/sequencia/L01_ex01.cpp | khrystie/fatec_ads | a5fec2c612943342f731a46814d4f6df67eb692f | [
"MIT"
] | null | null | null | ALP/sequencia/L01_ex01.cpp | khrystie/fatec_ads | a5fec2c612943342f731a46814d4f6df67eb692f | [
"MIT"
] | null | null | null | ALP/sequencia/L01_ex01.cpp | khrystie/fatec_ads | a5fec2c612943342f731a46814d4f6df67eb692f | [
"MIT"
] | null | null | null | /*
Exercício: Faça um algoritmo que receba 2 números inteiros e apresente a soma desses números.
*/
#include <iostream>
int main() {
//declaração de variáveis
int num1, num2;
// atribuir valor 0
num1=0;
num2=0;
std::cout << "Programa que lê dois números inteiros e retorna o valor da soma\n";
std::... | 22.333333 | 95 | 0.652985 |
9738b40e93cc34db346f6f331cea0a1ca13bae6d | 372 | cp | C++ | Lin/Mod/X11.cp | romiras/BlackBox-linux | 3abf415f181024d3ce9456883910d4eb68c5a676 | [
"BSD-2-Clause"
] | 2 | 2016-03-17T08:27:55.000Z | 2020-05-02T08:42:08.000Z | Lin/Mod/X11.cp | romiras/BlackBox-linux | 3abf415f181024d3ce9456883910d4eb68c5a676 | [
"BSD-2-Clause"
] | null | null | null | Lin/Mod/X11.cp | romiras/BlackBox-linux | 3abf415f181024d3ce9456883910d4eb68c5a676 | [
"BSD-2-Clause"
] | null | null | null | MODULE LinX11 ["libX11.so"];
IMPORT LinLibc;
TYPE
Display* = INTEGER;
PROCEDURE XFreeFontNames* (list: LinLibc.StrArray);
PROCEDURE XListFonts* (display: Display; pattern: LinLibc.PtrSTR; maxnames: INTEGER;
VAR actual_count_return: INTEGER): LinLibc.StrArray;
PROCEDURE XOpenDisplay* (VAR [nil] ... | 26.571429 | 86 | 0.733871 |
9738eda77042cec54309a95c28906a00687bea7c | 8,818 | cpp | C++ | Classes/Helpers/AnimationHelper.cpp | funkyzooink/fresh-engine | de15fa6ebe1b686819b28cd92ee8a6771c4ff878 | [
"MIT"
] | 3 | 2019-10-09T09:17:49.000Z | 2022-03-02T17:57:05.000Z | Classes/Helpers/AnimationHelper.cpp | funkyzooink/fresh-engine | de15fa6ebe1b686819b28cd92ee8a6771c4ff878 | [
"MIT"
] | 33 | 2019-10-08T18:45:48.000Z | 2022-01-05T21:53:02.000Z | Classes/Helpers/AnimationHelper.cpp | funkyzooink/fresh-engine | de15fa6ebe1b686819b28cd92ee8a6771c4ff878 | [
"MIT"
] | 7 | 2019-10-10T11:31:58.000Z | 2021-02-08T14:24:30.000Z | /****************************************************************************
Copyright (c) 2014-2019 Gabriel Heilig
fresh-engine
funkyzooink@gmail.com
****************************************************************************/
#include "AnimationHelper.h"
#include "../GameData/Constants.h"
#include "../GameData/Game... | 37.683761 | 118 | 0.612611 |
973baf7e8b43308470a136c4db0f0a92e28a7e8c | 2,484 | cpp | C++ | Off-Comp.cpp | MAXIORBOY/Off-Comp | 3e4884f0c5370a76c34f03e226513d30eb95812c | [
"MIT"
] | null | null | null | Off-Comp.cpp | MAXIORBOY/Off-Comp | 3e4884f0c5370a76c34f03e226513d30eb95812c | [
"MIT"
] | null | null | null | Off-Comp.cpp | MAXIORBOY/Off-Comp | 3e4884f0c5370a76c34f03e226513d30eb95812c | [
"MIT"
] | null | null | null | #include <time.h>
#include <conio.h>
#include <iostream>
#include <windows.h>
#include <string>
using namespace std;
void wait( int seconds )
{
clock_t end_wait;
end_wait = clock() + seconds * CLOCKS_PER_SEC;
while( clock() < end_wait ) { }
}
void gotoxy(const int x, const int y)
{
HANDLE hCon = Get... | 22.581818 | 135 | 0.414251 |
973c113401f4674b562d4ebf3724e179531270e7 | 185 | cpp | C++ | src/stan/language/grammars/expression07_grammar_inst.cpp | alashworth/stan-monorepo | 75596bc1f860ededd7b3e9ae9002aea97ee1cd46 | [
"BSD-3-Clause"
] | 1 | 2019-09-06T15:53:17.000Z | 2019-09-06T15:53:17.000Z | src/stan/language/grammars/expression07_grammar_inst.cpp | alashworth/stan-monorepo | 75596bc1f860ededd7b3e9ae9002aea97ee1cd46 | [
"BSD-3-Clause"
] | 8 | 2019-01-17T18:51:16.000Z | 2019-01-17T18:51:39.000Z | src/stan/language/grammars/expression07_grammar_inst.cpp | alashworth/stan-monorepo | 75596bc1f860ededd7b3e9ae9002aea97ee1cd46 | [
"BSD-3-Clause"
] | null | null | null | #include "expression07_grammar_def.hpp"
#include "iterator_typedefs.hpp"
namespace stan {
namespace lang {
template struct expression07_grammar<pos_iterator_t>;
}
} // namespace stan
| 20.555556 | 53 | 0.8 |
973c1d1aef3085b665141d6b9dfc1f5600ed76b1 | 838 | cpp | C++ | Classes/Device.cpp | Tang1705/Happy-Reconstruction | 2040310be4475deff0a8d251feaf32d7ba82d0ff | [
"Apache-2.0"
] | 5 | 2021-12-13T08:48:07.000Z | 2022-01-04T01:28:40.000Z | Classes/Device.cpp | xmtc56606/Reconstruction | 7eadf91b397fa2067b983be1a31c9603043d1360 | [
"Apache-2.0"
] | null | null | null | Classes/Device.cpp | xmtc56606/Reconstruction | 7eadf91b397fa2067b983be1a31c9603043d1360 | [
"Apache-2.0"
] | 1 | 2022-03-28T06:04:34.000Z | 2022-03-28T06:04:34.000Z | #include "Device.h"
#include <QDebug>
Device* Device::instance = nullptr;
Device::Device()
{
vector<CameraInfo> cams = CameraPointGrey::getCameraList();
if (cams.size() != 0)
{
hasCamera = true;
camera = Camera::NewCamera(0, cams[0].busID, triggerModeSoftware);
CameraSettings camSettings;
camSettings.shutte... | 17.458333 | 68 | 0.711217 |
973fe8eaa908632171eb72d68bcb6ed1e1b0ba35 | 4,253 | cpp | C++ | test/cfgTest.cpp | arminnh/Machines-and-Computability-project | 7e7be2541074ca8a177335aaad1b09394145fcf6 | [
"MIT"
] | null | null | null | test/cfgTest.cpp | arminnh/Machines-and-Computability-project | 7e7be2541074ca8a177335aaad1b09394145fcf6 | [
"MIT"
] | null | null | null | test/cfgTest.cpp | arminnh/Machines-and-Computability-project | 7e7be2541074ca8a177335aaad1b09394145fcf6 | [
"MIT"
] | 1 | 2017-01-30T19:16:19.000Z | 2017-01-30T19:16:19.000Z | /*
*
* File Name :
*
* Creation Date : 21-01-2015
* Last Modified : do 22 jan 12:34:27 2015
* Created By : Bruno De Deken
*
*/
#include "comparefiles.h"
#include <string>
#include <set>
#include <gtest/gtest.h>
#include <UTM/util.h>
#include <UTM/dot.h>
#include <UTM/finiteautomaton.h>
#include <UTM/CFG.h>
#incl... | 33.226563 | 140 | 0.682577 |
9741c086d1b97a36b72febad8eb1f70578664ab7 | 2,492 | cpp | C++ | src/args_test.cpp | JoelSjogren/video-organizer | fc5a5c1a2fce39f2b9d8343c07c53108321ef260 | [
"Apache-2.0"
] | 2 | 2015-04-17T11:28:57.000Z | 2016-11-13T13:03:08.000Z | src/args_test.cpp | JoelSjogren/video-organizer | fc5a5c1a2fce39f2b9d8343c07c53108321ef260 | [
"Apache-2.0"
] | null | null | null | src/args_test.cpp | JoelSjogren/video-organizer | fc5a5c1a2fce39f2b9d8343c07c53108321ef260 | [
"Apache-2.0"
] | null | null | null | /**********************************
* args_test.cpp *
**********************************/
#include "args_test.h"
#include "args.h"
#include "fileman.h"
#include <string>
using std::string;
ArgsTest::ArgsTest() : Test("Args") {
const char* files[] = {
"Chuck.S05E01.HDTV.XviD-LOL.avi",
... | 26.795699 | 58 | 0.554575 |
97466246b549d44e5bfbfba129449c424b573d6e | 2,501 | cpp | C++ | test/test_timer.cpp | chyh1990/futures_cpp | 8e60e74af0cffff0a9749682a4caf1768277c04b | [
"MIT"
] | 71 | 2017-12-18T10:35:41.000Z | 2021-12-11T19:57:34.000Z | test/test_timer.cpp | chyh1990/futures_cpp | 8e60e74af0cffff0a9749682a4caf1768277c04b | [
"MIT"
] | 1 | 2017-12-19T09:31:46.000Z | 2017-12-20T07:08:01.000Z | test/test_timer.cpp | chyh1990/futures_cpp | 8e60e74af0cffff0a9749682a4caf1768277c04b | [
"MIT"
] | 7 | 2017-12-20T01:55:44.000Z | 2019-12-06T12:25:55.000Z | #include <gtest/gtest.h>
#include <futures/EventExecutor.h>
#include <futures/Timeout.h>
#include <futures/Timer.h>
#include <futures/Future.h>
using namespace futures;
TEST(Executor, Timer) {
EventExecutor ev;
auto f = TimerFuture(&ev, 1)
.andThen([&ev] (Unit) {
std::cerr << "DONE" << std::endl;
return ma... | 21.376068 | 102 | 0.580968 |
974aa1b66be0b4d7e57c440ac9130fdb6c4d7a61 | 960 | cpp | C++ | lib/Food.cpp | prakashutoledo/pacman-cpp | 0d3e46bd79970d722bc83fd5aeb52a34ad6c27e5 | [
"Apache-2.0"
] | 1 | 2021-04-19T12:10:01.000Z | 2021-04-19T12:10:01.000Z | lib/Food.cpp | prakashutoledo/pacman-cpp | 0d3e46bd79970d722bc83fd5aeb52a34ad6c27e5 | [
"Apache-2.0"
] | null | null | null | lib/Food.cpp | prakashutoledo/pacman-cpp | 0d3e46bd79970d722bc83fd5aeb52a34ad6c27e5 | [
"Apache-2.0"
] | null | null | null | #include "Food.h"
void Food::Initilize(Position * position)
{
this->position = position;
drawing = CreateBitmap(position);
CollisionDetection::Instance()->Add(this);
}
Food::Food(int x, int y)
{
Initilize(new Position(x - FOOD_RADIUS, y - FOOD_RADIUS));
}
Food::Food(Position * positio... | 22.857143 | 106 | 0.628125 |
974c5c2a8c7403ab4d50628b70c73d0b2bb150e3 | 2,200 | hpp | C++ | srcs/boxpp/boxpp/base/systems/Barrior.hpp | whoamiho1006/boxpp | 5de2c5f9b2303ac6f539192f6407e9acf9144f8b | [
"MIT"
] | 2 | 2019-11-13T13:57:37.000Z | 2019-11-25T09:55:17.000Z | srcs/boxpp/boxpp/base/systems/Barrior.hpp | whoamiho1006/boxpp | 5de2c5f9b2303ac6f539192f6407e9acf9144f8b | [
"MIT"
] | null | null | null | srcs/boxpp/boxpp/base/systems/Barrior.hpp | whoamiho1006/boxpp | 5de2c5f9b2303ac6f539192f6407e9acf9144f8b | [
"MIT"
] | null | null | null | #pragma once
#include <boxpp/base/BaseMacros.hpp>
#include <boxpp/base/BaseTypes.hpp>
#include <boxpp/base/opacities/posix.hpp>
#include <boxpp/base/opacities/windows.hpp>
namespace boxpp {
/* Barrior is for guarding specific blocks. */
class BOXPP FBarrior
{
public:
FASTINLINE FBarrior() {
#if PLATFORM_WINDOWS... | 20.754717 | 73 | 0.735 |
9752b0ceb7349ca95afc55b5ed16da2d464af0a3 | 3,746 | cpp | C++ | test/core/vector_specialisation_test.cpp | marovira/apollo | 79920864839066c4e24d87de92c36dde4a315b10 | [
"BSD-3-Clause"
] | 1 | 2020-05-02T14:33:42.000Z | 2020-05-02T14:33:42.000Z | test/core/vector_specialisation_test.cpp | marovira/apollo | 79920864839066c4e24d87de92c36dde4a315b10 | [
"BSD-3-Clause"
] | null | null | null | test/core/vector_specialisation_test.cpp | marovira/apollo | 79920864839066c4e24d87de92c36dde4a315b10 | [
"BSD-3-Clause"
] | null | null | null | #include <core/vector.hpp>
#include <catch2/catch.hpp>
TEMPLATE_TEST_CASE(
"[Vector] - specialised constructors", "[core]", float, double, int)
{
SECTION("Empty constructor: size 2")
{
core::Vector2<TestType> v;
REQUIRE(v.x == TestType{0});
REQUIRE(v.y == TestType{0});
}
... | 24.973333 | 79 | 0.533102 |
97530a740cbd510778a20901f769a6207c46fb76 | 2,688 | cpp | C++ | cpp/cpp/685. Redundant Connection II.cpp | longwangjhu/LeetCode | a5c33e8d67e67aedcd439953d96ac7f443e2817b | [
"MIT"
] | 3 | 2021-08-07T07:01:34.000Z | 2021-08-07T07:03:02.000Z | cpp/cpp/685. Redundant Connection II.cpp | longwangjhu/LeetCode | a5c33e8d67e67aedcd439953d96ac7f443e2817b | [
"MIT"
] | null | null | null | cpp/cpp/685. Redundant Connection II.cpp | longwangjhu/LeetCode | a5c33e8d67e67aedcd439953d96ac7f443e2817b | [
"MIT"
] | null | null | null | // https://leetcode.com/problems/redundant-connection-ii/
// In this problem, a rooted tree is a directed graph such that, there is exactly
// one node (the root) for which all other nodes are descendants of this node, plus
// every node has exactly one parent, except for the root node which has no
// parents.
// The... | 38.4 | 83 | 0.579241 |
97545d9fcf31e1ca0b370f0a32ea117b6cfedd49 | 3,899 | cpp | C++ | src/astra/astra_point.cpp | Delicode/astra | 2654b99102b999a15d3221b0e5a11bb5291f7689 | [
"Apache-2.0"
] | 170 | 2015-10-20T08:31:16.000Z | 2021-12-01T01:47:32.000Z | src/astra/astra_point.cpp | Delicode/astra | 2654b99102b999a15d3221b0e5a11bb5291f7689 | [
"Apache-2.0"
] | 42 | 2015-10-20T23:20:17.000Z | 2022-03-18T05:47:08.000Z | src/astra/astra_point.cpp | Delicode/astra | 2654b99102b999a15d3221b0e5a11bb5291f7689 | [
"Apache-2.0"
] | 83 | 2015-10-22T14:53:00.000Z | 2021-11-04T03:09:48.000Z | // This file is part of the Orbbec Astra SDK [https://orbbec3d.com]
// Copyright (c) 2015 Orbbec 3D
//
// 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/LI... | 41.478723 | 108 | 0.595794 |
97545f1944b626487fa100e059cfbcfc2a64195d | 129 | cpp | C++ | dependencies/physx-4.1/source/geomutils/src/pcm/GuPCMContactSphereSphere.cpp | realtehcman/-UnderwaterSceneProject | 72cbd375ef5e175bed8f4e8a4d117f5340f239a4 | [
"MIT"
] | null | null | null | dependencies/physx-4.1/source/geomutils/src/pcm/GuPCMContactSphereSphere.cpp | realtehcman/-UnderwaterSceneProject | 72cbd375ef5e175bed8f4e8a4d117f5340f239a4 | [
"MIT"
] | null | null | null | dependencies/physx-4.1/source/geomutils/src/pcm/GuPCMContactSphereSphere.cpp | realtehcman/-UnderwaterSceneProject | 72cbd375ef5e175bed8f4e8a4d117f5340f239a4 | [
"MIT"
] | null | null | null | version https://git-lfs.github.com/spec/v1
oid sha256:d16864b0d69d3a425328f013d6bb2842892c448c6a7cdc5077078ae6564113f8
size 3329
| 32.25 | 75 | 0.883721 |
975467ff92a3e30d15262dd5d6e95dc133ef5092 | 1,795 | cpp | C++ | ysu/test_common/testutil.cpp | lik2129/ysu_coin | 47e40ed5d4000fc59566099929bd08a9ae16a4c1 | [
"BSD-3-Clause"
] | null | null | null | ysu/test_common/testutil.cpp | lik2129/ysu_coin | 47e40ed5d4000fc59566099929bd08a9ae16a4c1 | [
"BSD-3-Clause"
] | null | null | null | ysu/test_common/testutil.cpp | lik2129/ysu_coin | 47e40ed5d4000fc59566099929bd08a9ae16a4c1 | [
"BSD-3-Clause"
] | null | null | null | #include <ysu/crypto_lib/random_pool.hpp>
#include <ysu/node/testing.hpp>
#include <ysu/test_common/testutil.hpp>
#include <gtest/gtest.h>
#include <cstdlib>
#include <numeric>
using namespace std::chrono_literals;
/* Convenience constants for tests which are always on the test network */
namespace
{
ysu::ledger_co... | 33.240741 | 145 | 0.732591 |
975504aa4082edaf5699b688a1441696cf8721dc | 24,484 | cpp | C++ | src/qt/transactiontablemodel.cpp | yinchengtsinghua/BitCoinCppChinese | 76f64ad8cee5b6c5671b3629f39e7ae4ef84be0a | [
"MIT"
] | 13 | 2019-01-23T04:36:05.000Z | 2022-02-21T11:20:25.000Z | src/qt/transactiontablemodel.cpp | yinchengtsinghua/BitCoinCppChinese | 76f64ad8cee5b6c5671b3629f39e7ae4ef84be0a | [
"MIT"
] | null | null | null | src/qt/transactiontablemodel.cpp | yinchengtsinghua/BitCoinCppChinese | 76f64ad8cee5b6c5671b3629f39e7ae4ef84be0a | [
"MIT"
] | 3 | 2019-01-24T07:48:15.000Z | 2021-06-11T13:34:44.000Z |
//此源码被清华学神尹成大魔王专业翻译分析并修改
//尹成QQ77025077
//尹成微信18510341407
//尹成所在QQ群721929980
//尹成邮箱 yinc13@mails.tsinghua.edu.cn
//尹成毕业于清华大学,微软区块链领域全球最有价值专家
//https://mvp.microsoft.com/zh-cn/PublicProfile/4033620
//版权所有(c)2011-2018比特币核心开发者
//根据MIT软件许可证分发,请参见随附的
//文件复制或http://www.opensource.org/licenses/mit-license.php。
#include <qt/... | 31.592258 | 172 | 0.628247 |
97562bbcc8ce6931c6929edab6d5e82527117d3a | 4,330 | cpp | C++ | test/MutationTest.cpp | ATsahikian/PeProtector | 4e005ea636a5679b82c9e58e09a0de53618896c5 | [
"MIT"
] | 43 | 2016-07-30T13:50:21.000Z | 2021-06-17T22:45:00.000Z | test/MutationTest.cpp | ATsahikian/pe-protector | 4e005ea636a5679b82c9e58e09a0de53618896c5 | [
"MIT"
] | null | null | null | test/MutationTest.cpp | ATsahikian/pe-protector | 4e005ea636a5679b82c9e58e09a0de53618896c5 | [
"MIT"
] | 16 | 2016-09-08T09:10:27.000Z | 2020-06-14T00:30:59.000Z | #define BOOST_TEST_MODULE mutation test
#include <boost/test/included/unit_test.hpp>
#include "pe-protector/Mutation.h"
using namespace NPeProtector;
BOOST_AUTO_TEST_SUITE(MutationTest);
// method for testing mutateCommands with Mov instruction
BOOST_AUTO_TEST_CASE(testMutateCommandsMov) {
// create command for t... | 34.365079 | 73 | 0.748037 |
9758a9719e4fec47c6d0eb4501ade7763f26887c | 1,913 | cpp | C++ | openqube/testing/testatom.cpp | OpenChemistry/openqube | dc396bcf6c74cbfd9fb94201312e70bb377b0805 | [
"BSD-3-Clause"
] | 2 | 2015-05-05T19:49:55.000Z | 2021-03-30T12:27:40.000Z | openqube/testing/testatom.cpp | OpenChemistry/openqube | dc396bcf6c74cbfd9fb94201312e70bb377b0805 | [
"BSD-3-Clause"
] | null | null | null | openqube/testing/testatom.cpp | OpenChemistry/openqube | dc396bcf6c74cbfd9fb94201312e70bb377b0805 | [
"BSD-3-Clause"
] | 4 | 2015-01-29T16:25:12.000Z | 2021-01-06T17:47:47.000Z |
#include <iostream>
#include <openqube/molecule.h>
#include <openqube/atom.h>
#include <Eigen/Geometry>
using std::cout;
using std::cerr;
using std::endl;
using OpenQube::Atom;
using OpenQube::Molecule;
using Eigen::Vector3d;
namespace {
template<typename A, typename B>
void checkResult(const A& result, const B... | 24.525641 | 80 | 0.664924 |
9759ce0c8aec21542ab1727ba287d9376bdd192c | 606 | cpp | C++ | src/vkfw_core/gfx/vk/pipeline/ComputePipeline.cpp | dasmysh/VulkanFramework_Lib | baeaeb3158d23187f2ffa5044e32d8a5145284aa | [
"MIT"
] | null | null | null | src/vkfw_core/gfx/vk/pipeline/ComputePipeline.cpp | dasmysh/VulkanFramework_Lib | baeaeb3158d23187f2ffa5044e32d8a5145284aa | [
"MIT"
] | null | null | null | src/vkfw_core/gfx/vk/pipeline/ComputePipeline.cpp | dasmysh/VulkanFramework_Lib | baeaeb3158d23187f2ffa5044e32d8a5145284aa | [
"MIT"
] | null | null | null | /**
* @file ComputePipeline.cpp
* @author Sebastian Maisch <sebastian.maisch@googlemail.com>
* @date 2016.10.30
*
* @brief Implementation of a vulkan compute pipeline object.
*/
#include "gfx/vk/pipeline/ComputePipeline.h"
#include "gfx/vk/LogicalDevice.h"
#include "core/resources/ShaderManager.h"
namespac... | 25.25 | 100 | 0.709571 |
975cebfc63316babaaa98c51f6a47676e5c47673 | 169 | cpp | C++ | Generic/VSC.cpp | jbat100/VirtualSoundControl | f84ba15bba4bfce579c185e04df0e1be4f419cd7 | [
"MIT"
] | null | null | null | Generic/VSC.cpp | jbat100/VirtualSoundControl | f84ba15bba4bfce579c185e04df0e1be4f419cd7 | [
"MIT"
] | null | null | null | Generic/VSC.cpp | jbat100/VirtualSoundControl | f84ba15bba4bfce579c185e04df0e1be4f419cd7 | [
"MIT"
] | null | null | null |
#include "VSC.h"
#include <boost/date_time/posix_time/posix_time.hpp>
VSC::Time VSC::CurrentTime()
{
return boost::posix_time::microsec_clock::universal_time();
} | 18.777778 | 63 | 0.739645 |
975e930eb1006c6956faf01e14b61bb51426f222 | 6,452 | hpp | C++ | include/cbr_drivers/v4l2_driver.hpp | yamaha-bps/cbr_drivers | 64e971c0a7e79c414e81fe2ac32e6360adb266eb | [
"MIT"
] | null | null | null | include/cbr_drivers/v4l2_driver.hpp | yamaha-bps/cbr_drivers | 64e971c0a7e79c414e81fe2ac32e6360adb266eb | [
"MIT"
] | null | null | null | include/cbr_drivers/v4l2_driver.hpp | yamaha-bps/cbr_drivers | 64e971c0a7e79c414e81fe2ac32e6360adb266eb | [
"MIT"
] | null | null | null | // Copyright Yamaha 2021
// MIT License
// https://github.com/yamaha-bps/cbr_drivers/blob/master/LICENSE
#ifndef CBR_DRIVERS__V4L2_DRIVER_HPP_
#define CBR_DRIVERS__V4L2_DRIVER_HPP_
#include <linux/videodev2.h>
#include <atomic>
#include <functional>
#include <memory>
#include <mutex>
#include <string>
#include <thre... | 23.720588 | 94 | 0.6677 |
975ed7bf6d419192ca9632a124ac2c327956a8d4 | 3,797 | cpp | C++ | tests/ModulesFactoryTest.cpp | transdz/mesos-command-modules | 5eba42137e33a1001fd1e1de9a2086f60eebe5bb | [
"Apache-2.0"
] | 3 | 2018-05-18T19:06:27.000Z | 2020-07-07T17:17:51.000Z | tests/ModulesFactoryTest.cpp | transdz/mesos-command-modules | 5eba42137e33a1001fd1e1de9a2086f60eebe5bb | [
"Apache-2.0"
] | 15 | 2018-04-25T17:41:36.000Z | 2019-11-20T16:06:20.000Z | tests/ModulesFactoryTest.cpp | transdz/mesos-command-modules | 5eba42137e33a1001fd1e1de9a2086f60eebe5bb | [
"Apache-2.0"
] | 5 | 2018-04-03T09:12:29.000Z | 2022-02-21T11:37:04.000Z | #include "ModulesFactory.hpp"
#include <gtest/gtest.h>
#include "CommandHook.hpp"
#include "CommandIsolator.hpp"
using namespace criteo::mesos;
// ***************************************
// **************** Hook *****************
// ***************************************
TEST(ModulesFactoryTest, should_create_hook_w... | 35.485981 | 78 | 0.709244 |
975fadcee50dd19822b817bae9019daf61fc3ee1 | 788 | cc | C++ | examples/omnet_module/src/AvensClient.cc | Hyodar/pairsim-cpp | 86c1613b9bc2b0043e468abfe59fc1355619164c | [
"MIT"
] | null | null | null | examples/omnet_module/src/AvensClient.cc | Hyodar/pairsim-cpp | 86c1613b9bc2b0043e468abfe59fc1355619164c | [
"MIT"
] | null | null | null | examples/omnet_module/src/AvensClient.cc | Hyodar/pairsim-cpp | 86c1613b9bc2b0043e468abfe59fc1355619164c | [
"MIT"
] | null | null | null |
#include "./XPlaneModel.h"
#include "PairsimClient.h"
Define_Module(PairsimClient);
PairsimClient::PairsimClient() {
tickTimeout = nullptr;
}
PairsimClient::~PairsimClient() {
cancelAndDelete(tickTimeout);
}
void PairsimClient::initialize() {
tickTimeout = new cMessage("tick");
client.setServerAdd... | 24.625 | 104 | 0.694162 |
9761c71959084ae5a77e0308ba2d9ced7f754c3d | 27,752 | cpp | C++ | stp/sat/Solver.cpp | dslab-epfl/state-merging | abe500674ab3013f266836315e9c4ef18d0fb55c | [
"BSD-3-Clause"
] | null | null | null | stp/sat/Solver.cpp | dslab-epfl/state-merging | abe500674ab3013f266836315e9c4ef18d0fb55c | [
"BSD-3-Clause"
] | null | null | null | stp/sat/Solver.cpp | dslab-epfl/state-merging | abe500674ab3013f266836315e9c4ef18d0fb55c | [
"BSD-3-Clause"
] | null | null | null | /****************************************************************************************[Solver.C]
MiniSat -- Copyright (c) 2003-2005, Niklas Een, Niklas Sorensson
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and
associated documentation files (the "Software"), to deal... | 34.093366 | 263 | 0.543636 |
9765efe8e7544ab882e9e5264173796a133f3e0d | 2,114 | hpp | C++ | include/felspar/coro/cancellable.hpp | Felspar/coro | 67028cc10d7f66edc75229d4f4207cd8f6b82147 | [
"BSL-1.0"
] | 27 | 2021-02-15T00:02:12.000Z | 2022-03-24T04:34:17.000Z | include/felspar/coro/cancellable.hpp | Felspar/coro | 67028cc10d7f66edc75229d4f4207cd8f6b82147 | [
"BSL-1.0"
] | 2 | 2021-02-23T01:04:19.000Z | 2022-03-24T04:38:10.000Z | include/felspar/coro/cancellable.hpp | Felspar/coro | 67028cc10d7f66edc75229d4f4207cd8f6b82147 | [
"BSL-1.0"
] | 1 | 2022-02-20T09:41:09.000Z | 2022-02-20T09:41:09.000Z | #pragma once
#include <felspar/coro/coroutine.hpp>
namespace felspar::coro {
/**
* Wait at the suspension point until resumed from an external location.
*/
class cancellable {
coroutine_handle<> continuation = {};
bool signalled = false;
void resume_if_needed() {
... | 28.958904 | 76 | 0.487228 |
97660134541a53225eb378fe906c3d3842bd97d8 | 9,027 | hpp | C++ | src/common/channel/codec/redis_reply.hpp | vorjdux/ardb | 8d32d36243dc2a8cbdc218f4218aa988fbcb5eae | [
"BSD-3-Clause"
] | 1,513 | 2015-01-02T17:36:20.000Z | 2022-03-21T00:10:17.000Z | src/common/channel/codec/redis_reply.hpp | vorjdux/ardb | 8d32d36243dc2a8cbdc218f4218aa988fbcb5eae | [
"BSD-3-Clause"
] | 335 | 2015-01-02T21:48:21.000Z | 2022-01-31T23:10:46.000Z | src/common/channel/codec/redis_reply.hpp | vorjdux/ardb | 8d32d36243dc2a8cbdc218f4218aa988fbcb5eae | [
"BSD-3-Clause"
] | 281 | 2015-01-08T01:23:41.000Z | 2022-03-26T12:31:41.000Z | /*
*Copyright (c) 2013-2013, yinqiwen <yinqiwen@gmail.com>
*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,
* ... | 32.825455 | 100 | 0.484657 |
976af6da8799161d7d6f8e1eb734ed3146607c60 | 4,092 | cc | C++ | content/browser/indexed_db/indexed_db_pre_close_task_queue.cc | sarang-apps/darshan_browser | 173649bb8a7c656dc60784d19e7bb73e07c20daa | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | null | null | null | content/browser/indexed_db/indexed_db_pre_close_task_queue.cc | sarang-apps/darshan_browser | 173649bb8a7c656dc60784d19e7bb73e07c20daa | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | null | null | null | content/browser/indexed_db/indexed_db_pre_close_task_queue.cc | sarang-apps/darshan_browser | 173649bb8a7c656dc60784d19e7bb73e07c20daa | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 2 | 2021-01-05T23:43:46.000Z | 2021-01-07T23:36:34.000Z | // 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 "content/browser/indexed_db/indexed_db_pre_close_task_queue.h"
#include <utility>
#include "base/bind.h"
#include "base/metrics/histogram_macro... | 28.615385 | 79 | 0.695015 |
976ba55f7c4e4a84dc80156378219097dd50d09b | 952 | cpp | C++ | Medium/1286_Iterator_For_Combination.cpp | ShehabMMohamed/LeetCodeCPP | 684340f29ac15c5e8fa9f6ef5c3f99d4c95ce780 | [
"MIT"
] | 1 | 2021-03-15T10:02:10.000Z | 2021-03-15T10:02:10.000Z | Medium/1286_Iterator_For_Combination.cpp | ShehabMMohamed/LeetCodeCPP | 684340f29ac15c5e8fa9f6ef5c3f99d4c95ce780 | [
"MIT"
] | null | null | null | Medium/1286_Iterator_For_Combination.cpp | ShehabMMohamed/LeetCodeCPP | 684340f29ac15c5e8fa9f6ef5c3f99d4c95ce780 | [
"MIT"
] | null | null | null | class CombinationIterator {
private:
int len, mask;
string s;
public:
CombinationIterator(string characters, int combinationLength) : s(characters), len(combinationLength) {
mask = (1 << characters.length()) - 1;
}
string next() {
while(mask && __builtin_popcount(mask) != len) {... | 28.848485 | 107 | 0.578782 |
976c95ec96dd46eac812664839e16ac76885907f | 1,114 | cpp | C++ | src/vulkan_helper/image_view.cpp | LesleyLai/Vulkan-Renderer | fd03a69fbc21bfaf3177e43811d21dba634a1949 | [
"Apache-2.0"
] | 4 | 2019-04-17T17:44:23.000Z | 2020-09-14T04:24:37.000Z | src/vulkan_helper/image_view.cpp | LesleyLai/Vulkan-Renderer | fd03a69fbc21bfaf3177e43811d21dba634a1949 | [
"Apache-2.0"
] | 3 | 2020-06-10T00:43:44.000Z | 2020-06-10T00:59:47.000Z | src/vulkan_helper/image_view.cpp | LesleyLai/Vulkan-Renderer | fd03a69fbc21bfaf3177e43811d21dba634a1949 | [
"Apache-2.0"
] | null | null | null | #include "image_view.hpp"
namespace vkh {
[[nodiscard]] auto
create_image_view(VkDevice device,
const ImageViewCreateInfo& image_view_create_info)
-> beyond::expected<VkImageView, VkResult>
{
const VkImageViewCreateInfo create_info = {
.sType = VK_STRUCTURE_TYPE_IMAGE_VIEW_CREATE_INFO,
... | 30.108108 | 79 | 0.71544 |
976ca940c560635702dfc2c725418346a5e9e5de | 3,196 | cxx | C++ | Examples/InSar/BaselineComputation.cxx | jmichel-otb/otb-insar | b6f8a7d80547ffdcf7c4d2359505ce68107cdb85 | [
"Apache-2.0"
] | 1 | 2022-02-16T03:48:29.000Z | 2022-02-16T03:48:29.000Z | Examples/InSar/BaselineComputation.cxx | jmichel-otb/otb-insar | b6f8a7d80547ffdcf7c4d2359505ce68107cdb85 | [
"Apache-2.0"
] | null | null | null | Examples/InSar/BaselineComputation.cxx | jmichel-otb/otb-insar | b6f8a7d80547ffdcf7c4d2359505ce68107cdb85 | [
"Apache-2.0"
] | null | null | null |
/*=========================================================================
Copyright 2011 Emmanuel Christophe
Contributed to ORFEO Toolbox under license Apache 2
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may ob... | 39.45679 | 310 | 0.731852 |
97703f3fa284c9cc26f37748d1b33de03287c40a | 211 | cpp | C++ | Fall-17/CSE/CPP/Assignments/Basic/ASCIIValuesChart.cpp | 2Dsharp/college | 239fb4c85878f082529a3668544d1ad305b46170 | [
"MIT"
] | 1 | 2021-05-18T06:34:53.000Z | 2021-05-18T06:34:53.000Z | Fall-17/CSE/CPP/Assignments/Basic/ASCIIValuesChart.cpp | 2Dsharp/college | 239fb4c85878f082529a3668544d1ad305b46170 | [
"MIT"
] | null | null | null | Fall-17/CSE/CPP/Assignments/Basic/ASCIIValuesChart.cpp | 2Dsharp/college | 239fb4c85878f082529a3668544d1ad305b46170 | [
"MIT"
] | 1 | 2018-11-12T16:01:39.000Z | 2018-11-12T16:01:39.000Z | #include <iostream>
int main(){
std::cout << "ASCII "<< "Representation" << std::endl;
for(int i=0;i<=127;i++){
char temp = i;
std::cout << i << "\t" << temp << std::endl;
}
return 0;
}
| 14.066667 | 56 | 0.492891 |
977424df8367635d711cef34f5ced409cc8ceeca | 38,699 | cpp | C++ | src/saiga/opengl/glbinding/source/gl/functions-patches.cpp | no33fewi/saiga | edc873e34cd59eaf8c4a12dc7f909b4dd5e5fb68 | [
"MIT"
] | 114 | 2017-08-13T22:37:32.000Z | 2022-03-25T12:28:39.000Z | src/saiga/opengl/glbinding/source/gl/functions-patches.cpp | no33fewi/saiga | edc873e34cd59eaf8c4a12dc7f909b4dd5e5fb68 | [
"MIT"
] | 7 | 2019-10-14T18:19:11.000Z | 2021-06-11T09:41:52.000Z | src/saiga/opengl/glbinding/source/gl/functions-patches.cpp | no33fewi/saiga | edc873e34cd59eaf8c4a12dc7f909b4dd5e5fb68 | [
"MIT"
] | 18 | 2017-08-14T01:22:05.000Z | 2022-03-12T12:35:07.000Z |
#include <glbinding/gl/functions.h>
#include <vector>
#include <glbinding/gl/functions-patches.h>
namespace gl
{
void glConvolutionParameteri(GLenum target, GLenum pname, GLenum params)
{
glConvolutionParameteri(target, pname, static_cast<GLint>(params));
}
void glConvolutionParameteriEXT(GLenum target, GLenum... | 29.86034 | 120 | 0.733404 |
97747fcdd08eedf08f3e44b1c0025a9411d18f4a | 9,657 | cpp | C++ | test/actionsTest/actionForm.cpp | perara-libs/FakeInput | 13d7b260634c33ced95d9e3b37780705e4036ab5 | [
"MIT"
] | 40 | 2016-11-18T06:14:47.000Z | 2022-03-16T14:36:21.000Z | test/actionsTest/actionForm.cpp | perara-libs/FakeInput | 13d7b260634c33ced95d9e3b37780705e4036ab5 | [
"MIT"
] | null | null | null | test/actionsTest/actionForm.cpp | perara-libs/FakeInput | 13d7b260634c33ced95d9e3b37780705e4036ab5 | [
"MIT"
] | 9 | 2017-01-23T01:49:41.000Z | 2020-11-05T13:09:56.000Z | /**
* This file is part of the FakeInput library (https://github.com/uiii/FakeInput)
*
* Copyright (C) 2011 by Richard Jedlicka <uiii.dev@gmail.com>
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* ... | 40.57563 | 122 | 0.678264 |
977517e8392b771d384ba89083fc3b3c82cb0e5d | 1,058 | cpp | C++ | src/Compiler/code_gen/builders/array_initializer_list_expression_builder.cpp | joakimthun/Elsa | 3be901149c1102d190dda1c7f3340417f03666c7 | [
"MIT"
] | 16 | 2015-10-12T14:24:45.000Z | 2021-07-20T01:56:04.000Z | src/Compiler/code_gen/builders/array_initializer_list_expression_builder.cpp | haifenghuang/Elsa | 3be901149c1102d190dda1c7f3340417f03666c7 | [
"MIT"
] | null | null | null | src/Compiler/code_gen/builders/array_initializer_list_expression_builder.cpp | haifenghuang/Elsa | 3be901149c1102d190dda1c7f3340417f03666c7 | [
"MIT"
] | 2 | 2017-11-12T01:39:09.000Z | 2021-07-20T01:56:09.000Z | #include "array_initializer_list_expression_builder.h"
#include "../vm_expression_visitor.h"
namespace elsa {
namespace compiler {
void ArrayInitializerListExpressionBuilder::build(VMProgram* program, VMExpressionVisitor* visitor, ArrayInitializerListExpression* expression)
{
program->emit(OpCode::iconst);
... | 27.128205 | 145 | 0.721172 |