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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
c578dba7f0a93edf0400edcf89b7997f87186002 | 4,691 | cpp | C++ | src/core/ATN.cpp | satoshigeyuki/Centaurus | 032ffec87fc8ddb129347974d3478fd1ee5f305a | [
"MIT"
] | 3 | 2021-02-23T01:34:28.000Z | 2021-07-19T08:07:10.000Z | src/core/ATN.cpp | satoshigeyuki/Centaurus | 032ffec87fc8ddb129347974d3478fd1ee5f305a | [
"MIT"
] | null | null | null | src/core/ATN.cpp | satoshigeyuki/Centaurus | 032ffec87fc8ddb129347974d3478fd1ee5f305a | [
"MIT"
] | null | null | null | #include "ATN.hpp"
namespace Centaurus
{
template<typename TCHAR>
void ATNNode<TCHAR>::parse_literal(Stream& stream)
{
wchar_t leader = stream.get();
wchar_t ch = stream.get();
for (; ch != L'\0' && ch != leader; ch = stream.get())
{
m_literal.push_back(wide_to_target<TCHAR>(ch));
}
... | 20.307359 | 123 | 0.600938 | satoshigeyuki |
c5837d6982872fcc793d1599fc5d9d5acbddd2ef | 27,057 | cpp | C++ | src/stage/batched/host/KokkosKernels_Test_Trsm.cpp | crtrott/kokkos-kernels | 0dba50f62188eb82da35bb4fe0211c7783300903 | [
"BSD-3-Clause"
] | null | null | null | src/stage/batched/host/KokkosKernels_Test_Trsm.cpp | crtrott/kokkos-kernels | 0dba50f62188eb82da35bb4fe0211c7783300903 | [
"BSD-3-Clause"
] | null | null | null | src/stage/batched/host/KokkosKernels_Test_Trsm.cpp | crtrott/kokkos-kernels | 0dba50f62188eb82da35bb4fe0211c7783300903 | [
"BSD-3-Clause"
] | null | null | null | /// \author Kyungjoo Kim (kyukim@sandia.gov)
#include <iomanip>
#if defined(__KOKKOSKERNELS_INTEL_MKL__)
#include "mkl.h"
#endif
#include "Kokkos_Core.hpp"
#include "impl/Kokkos_Timer.hpp"
#include "KokkosKernels_Vector.hpp"
#include "KokkosKernels_Trsm_Serial_Decl.hpp"
#include "KokkosKernels_Trsm_Serial_Impl.hpp... | 36.076 | 120 | 0.465684 | crtrott |
c58fed8c8d5a08b6977399826871e6f95f7cdf70 | 5,719 | cpp | C++ | src_db/random_access_file/RandomAccessFile.cpp | alinous-core/codable-cash | 32a86a152a146c592bcfd8cc712f4e8cb38ee1a0 | [
"MIT"
] | 1 | 2020-10-15T08:24:35.000Z | 2020-10-15T08:24:35.000Z | src_db/random_access_file/RandomAccessFile.cpp | Codablecash/codablecash | 8816b69db69ff2f5da6cdb6af09b8fb21d3df1d9 | [
"MIT"
] | null | null | null | src_db/random_access_file/RandomAccessFile.cpp | Codablecash/codablecash | 8816b69db69ff2f5da6cdb6af09b8fb21d3df1d9 | [
"MIT"
] | null | null | null | /*
* RandomAccessFile.cpp
*
* Created on: 2018/04/26
* Author: iizuka
*/
#include "random_access_file/RandomAccessFile.h"
#include "base/UnicodeString.h"
#include "base_io/File.h"
#include "base_io_stream/exceptions.h"
#include "random_access_file/MMapSegments.h"
#include "random_access_file/MMapSegment.... | 24.440171 | 118 | 0.715335 | alinous-core |
c590c230a6c90ad6494de571cb3c2919d9261094 | 2,901 | hpp | C++ | include/picture.hpp | Andrew15-5/walk-game | 550f4adeb4933fd298866cde0dd30dca11559334 | [
"MIT"
] | null | null | null | include/picture.hpp | Andrew15-5/walk-game | 550f4adeb4933fd298866cde0dd30dca11559334 | [
"MIT"
] | null | null | null | include/picture.hpp | Andrew15-5/walk-game | 550f4adeb4933fd298866cde0dd30dca11559334 | [
"MIT"
] | null | null | null | #ifndef PICTURE_HPP
#define PICTURE_HPP
#include "include/texture_functions.hpp"
#include "include/vector2.hpp"
#include "include/vector3.hpp"
#include <IL/il.h>
#include <IL/ilu.h>
class Picture {
GLuint texture_id;
Vector2 size;
Vector3 position;
GLfloat angle;
const std::string texture_path = ... | 28.165049 | 89 | 0.599104 | Andrew15-5 |
c590e975c9615eaa7016c5d2b80dd1a7528eefa5 | 1,254 | cpp | C++ | UnicornRender/source/Loggers.cpp | GrapefruitTechnique/R7 | 3eaa97ac63bbc1b42e4cabf97d4d12649e36f665 | [
"MIT"
] | 12 | 2017-02-18T15:17:53.000Z | 2020-02-03T16:20:33.000Z | UnicornRender/source/Loggers.cpp | GrapefruitTechnique/R7 | 3eaa97ac63bbc1b42e4cabf97d4d12649e36f665 | [
"MIT"
] | 93 | 2017-02-15T21:05:31.000Z | 2020-08-19T06:46:27.000Z | UnicornRender/source/Loggers.cpp | GrapefruitTechnique/R-7 | 3eaa97ac63bbc1b42e4cabf97d4d12649e36f665 | [
"MIT"
] | 4 | 2015-10-23T11:55:07.000Z | 2016-11-30T10:00:52.000Z | #include <unicorn/Loggers.hpp>
#include <unicorn/utility/InternalLoggers.hpp>
#include <algorithm>
#include <cassert>
namespace unicorn
{
std::array<mule::LoggerPtr, Log::size> g_loggers;
namespace
{
static std::array<char const*, Log::size> s_logger_names = {{
"unicorn"
, "unicorn_profile"
, "unicorn... | 19.904762 | 75 | 0.655502 | GrapefruitTechnique |
c590f4d58677b8f942caa6dbedd7c45ffd3527c0 | 15,483 | cpp | C++ | StandardTetrisMSVC2005/StandardTetrisMSVC2005/source/CPF.StandardTetris.STStrategyRogerLLimaLaurentBercotSebastienBlondeelOnePiece1996.cpp | TetrisAI/StandardTetris | b5cbe25541ceb45517472fe7feabea0c81fd55b0 | [
"MIT"
] | 7 | 2016-11-28T13:42:44.000Z | 2021-08-05T02:34:11.000Z | StandardTetrisMSVC2005/StandardTetrisMSVC2005/source/CPF.StandardTetris.STStrategyRogerLLimaLaurentBercotSebastienBlondeelOnePiece1996.cpp | PowerOlive/StandardTetris | b5cbe25541ceb45517472fe7feabea0c81fd55b0 | [
"MIT"
] | null | null | null | StandardTetrisMSVC2005/StandardTetrisMSVC2005/source/CPF.StandardTetris.STStrategyRogerLLimaLaurentBercotSebastienBlondeelOnePiece1996.cpp | PowerOlive/StandardTetris | b5cbe25541ceb45517472fe7feabea0c81fd55b0 | [
"MIT"
] | 8 | 2015-07-31T02:53:14.000Z | 2020-04-12T04:36:23.000Z | // All contents of this file written by Colin Fahey ( http://colinfahey.com )
// 2007 June 4 ; Visit web site to check for any updates to this file.
#include "CPF.StandardTetris.STStrategyRogerLLimaLaurentBercotSebastienBlondeelOnePiece1996.h"
#include "CPF.StandardTetris.STBoard.h"
#include "CPF.StandardTetris.S... | 24.57619 | 97 | 0.564942 | TetrisAI |
c598b41954851370883a4876885e36af02fa6e61 | 2,857 | cc | C++ | src/eic_evgen/reaction_routine.cc | sjdkay/DEMPGen | a357cfcd89978db3323435111cb1e327b191352d | [
"MIT"
] | null | null | null | src/eic_evgen/reaction_routine.cc | sjdkay/DEMPGen | a357cfcd89978db3323435111cb1e327b191352d | [
"MIT"
] | 1 | 2022-03-07T21:30:26.000Z | 2022-03-07T21:30:26.000Z | src/eic_evgen/reaction_routine.cc | sjdkay/DEMPGen | a357cfcd89978db3323435111cb1e327b191352d | [
"MIT"
] | 3 | 2022-03-07T21:19:40.000Z | 2022-03-10T15:37:25.000Z | ///*--------------------------------------------------*/
/// Reaction_routine.cc
///
/// Creator: Wenliang (Bill) Li
/// Date: Mar 12 2020
/// Email: wenliang.billlee@gmail.com
///
/// Comment: Mar 12, 2020: Subroutine Exclusive_Omega_Prodoction is created
/// modeled off the Exclusive_Omega_Prodoction routin... | 28.57 | 105 | 0.547427 | sjdkay |
c59eec8d9e32e294c484a57dbba628de6cab8f2a | 763 | cpp | C++ | src/band_list.cpp | peterus/ESP32_WSPR | 979ba33f855141ac85dbbf7ac3606bdb06301985 | [
"MIT"
] | null | null | null | src/band_list.cpp | peterus/ESP32_WSPR | 979ba33f855141ac85dbbf7ac3606bdb06301985 | [
"MIT"
] | null | null | null | src/band_list.cpp | peterus/ESP32_WSPR | 979ba33f855141ac85dbbf7ac3606bdb06301985 | [
"MIT"
] | null | null | null | #include "band_list.h"
String BandConfig::getName() const {
return _name;
}
BandConfig::BandConfig(String const &name, ConfigBool *enable, ConfigInt *frequency) {
_name = name;
_enable = enable;
_frequency = frequency;
}
bool BandConfig::isEnabled() const {
return _enable->getValue();
}
long BandC... | 20.621622 | 86 | 0.706422 | peterus |
c5a77dc47bfd97026329f9e1dd8da605ddf730bf | 3,136 | cpp | C++ | code archive/TIOJ/1739.cpp | brianbbsu/program | c4505f2b8c0b91010e157db914a63c49638516bc | [
"MIT"
] | 4 | 2018-04-08T08:07:58.000Z | 2021-06-07T14:55:24.000Z | code archive/TIOJ/1739.cpp | brianbbsu/program | c4505f2b8c0b91010e157db914a63c49638516bc | [
"MIT"
] | null | null | null | code archive/TIOJ/1739.cpp | brianbbsu/program | c4505f2b8c0b91010e157db914a63c49638516bc | [
"MIT"
] | 1 | 2018-10-29T12:37:25.000Z | 2018-10-29T12:37:25.000Z | //{
#include<bits/stdc++.h>
using namespace std;
typedef int ll;
typedef double lf;
typedef pair<ll,ll> ii;
#define REP(i,n) for(ll i=0;i<n;i++)
#define REP1(i,n) for(ll i=1;i<=n;i++)
#define FILL(i,n) memset(i,n,sizeof i)
#define X first
#define Y second
#define SZ(_a) (int)_a.size()
#define ALL(_a) _a.begin(),_a.end(... | 23.938931 | 129 | 0.520408 | brianbbsu |
c5ababaec40d08b3250baf901c5c3f8cbedb618d | 3,297 | hpp | C++ | Dialogs/MoveBaseDialog.hpp | joseffallman/Intrusion | a3937bcbfaaab7da0321dce3ab7d9a5fe1b350ff | [
"MIT"
] | null | null | null | Dialogs/MoveBaseDialog.hpp | joseffallman/Intrusion | a3937bcbfaaab7da0321dce3ab7d9a5fe1b350ff | [
"MIT"
] | 4 | 2019-04-21T23:30:19.000Z | 2019-05-08T21:03:25.000Z | Dialogs/MoveBaseDialog.hpp | joseffallman/Intrusion | a3937bcbfaaab7da0321dce3ab7d9a5fe1b350ff | [
"MIT"
] | 1 | 2019-03-22T08:28:07.000Z | 2019-03-22T08:28:07.000Z | /*
* Name: IntMoveBaseDialog
* Date: 2020-03-29
* Version: 1.0
* Author: Josef
*
* Description:
* The Move base dialog.
*/
class IntMoveBaseDialog : IntBaseDialog
{
onUnload = "call Intrusion_Client_MoveBaseDialog_onUnload;";
class Controls : Controls
{
class _CT_CONTROLS_GROUP
{
type = 15;
idc ... | 24.604478 | 88 | 0.561116 | joseffallman |
c5af4925158a050a299d3431b0624c5477aec1d8 | 7,040 | cpp | C++ | NotThatGameEngine/NotThatGameEngine/GameObject.cpp | HoduRe/NotThatGameEngine | e1a6bd073fbd34f3598b2c03f8d0d82cd8540ccc | [
"MIT"
] | 1 | 2021-01-07T13:36:34.000Z | 2021-01-07T13:36:34.000Z | NotThatGameEngine/NotThatGameEngine/GameObject.cpp | HoduRe/NotThatGameEngine | e1a6bd073fbd34f3598b2c03f8d0d82cd8540ccc | [
"MIT"
] | null | null | null | NotThatGameEngine/NotThatGameEngine/GameObject.cpp | HoduRe/NotThatGameEngine | e1a6bd073fbd34f3598b2c03f8d0d82cd8540ccc | [
"MIT"
] | 1 | 2021-01-06T11:10:33.000Z | 2021-01-06T11:10:33.000Z | #include "GameObject.h"
#include "OpenGLFuncionality.h"
#include "Component.h"
#include "Transform.h"
#include "Mesh.h"
#include "Material.h"
#include "Camera.h"
#include "Animation.h"
#include "Application.h"
#include "Textures.h"
GameObject::GameObject(Application* _App, long long int _id, std::string _name, GameObj... | 21.595092 | 152 | 0.65554 | HoduRe |
c5b2576542165e747bc3f04a7a127a44f73987bd | 37,332 | cpp | C++ | FireRender.Max.Plugin/parser/MaterialLoader.cpp | Vsevolod1983/RadeonProRenderMaxPlugin | d5393fd04e45dd2c77c8b17fac4e10b20df55285 | [
"Apache-2.0"
] | 6 | 2020-05-24T12:00:43.000Z | 2021-07-13T06:22:49.000Z | FireRender.Max.Plugin/parser/MaterialLoader.cpp | Vsevolod1983/RadeonProRenderMaxPlugin | d5393fd04e45dd2c77c8b17fac4e10b20df55285 | [
"Apache-2.0"
] | 4 | 2020-09-17T17:05:38.000Z | 2021-06-23T14:29:14.000Z | FireRender.Max.Plugin/parser/MaterialLoader.cpp | Vsevolod1983/RadeonProRenderMaxPlugin | d5393fd04e45dd2c77c8b17fac4e10b20df55285 | [
"Apache-2.0"
] | 8 | 2020-05-15T08:29:17.000Z | 2021-07-14T08:38:07.000Z | /**********************************************************************
Copyright 2020 Advanced Micro Devices, Inc
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/L... | 38.055046 | 161 | 0.545484 | Vsevolod1983 |
c5b494796a7a3f93fd5cd88bc784b6ef1ee1b00d | 1,047 | hpp | C++ | include/caffe/util/OpenCL/prelu_layer.hpp | lunochod/caffe | 209fac06cb7893da4fcae0295f5cc882c6569ce9 | [
"BSD-2-Clause"
] | 20 | 2015-06-20T18:08:42.000Z | 2018-05-27T09:28:34.000Z | include/caffe/util/OpenCL/prelu_layer.hpp | rickyHong/CaffeForOpenCL | 209fac06cb7893da4fcae0295f5cc882c6569ce9 | [
"BSD-2-Clause"
] | 3 | 2015-03-30T16:40:42.000Z | 2015-06-03T10:31:51.000Z | include/caffe/util/OpenCL/prelu_layer.hpp | rickyHong/CaffeForOpenCL | 209fac06cb7893da4fcae0295f5cc882c6569ce9 | [
"BSD-2-Clause"
] | 6 | 2015-05-09T02:06:20.000Z | 2015-10-19T07:13:47.000Z | #ifndef __OPENCL_PRELU_LAYER_HPP__
#define __OPENCL_PRELU_LAYER_HPP__
#include <CL/cl.h>
#include <glog/logging.h>
#include <caffe/util/OpenCL/OpenCLDevice.hpp>
#include <caffe/util/OpenCL/OpenCLManager.hpp>
#include <caffe/util/OpenCL/OpenCLPlatform.hpp>
#include <caffe/util/OpenCL/OpenCLSupport.hpp>
#include <iost... | 21.367347 | 47 | 0.700096 | lunochod |
c5b805bf68f116642d224142956f83e1f8717ebf | 1,959 | cpp | C++ | lib/src/platform/win/shell.cpp | Voxelum/DeskGap | 9201f1197170385c53f0a2dbb45b6283b518b1c3 | [
"MIT"
] | null | null | null | lib/src/platform/win/shell.cpp | Voxelum/DeskGap | 9201f1197170385c53f0a2dbb45b6283b518b1c3 | [
"MIT"
] | 2 | 2022-03-20T13:09:11.000Z | 2022-03-30T05:07:12.000Z | lib/src/platform/win/shell.cpp | Voxelum/DeskGap | 9201f1197170385c53f0a2dbb45b6283b518b1c3 | [
"MIT"
] | 1 | 2022-03-24T01:33:56.000Z | 2022-03-24T01:33:56.000Z | #include "shell.hpp"
#include "./util/wstring_utf8.h"
#include <Windows.h>
#include <shellapi.h>
#include <shlobj.h>
#include <atlbase.h>
#include <comdef.h>
#include <filesystem>
#include <wrl/client.h>
namespace fs = std::filesystem;
bool DeskGap::Shell::OpenExternal(const std::string &urlString)
{
std::wstring... | 28.391304 | 85 | 0.61511 | Voxelum |
c5baa1014ecd4f16fbee2cd167a2760716161dc0 | 2,067 | cpp | C++ | Othuum/VishalaNetworkLib/Protocoll/Server/GameLobby.cpp | Liech/Yathsou | 95b6dda3c053bc25789cce416088e22f54a743b4 | [
"MIT"
] | 5 | 2021-04-20T17:00:41.000Z | 2022-01-18T20:16:03.000Z | Othuum/VishalaNetworkLib/Protocoll/Server/GameLobby.cpp | Liech/Yathsou | 95b6dda3c053bc25789cce416088e22f54a743b4 | [
"MIT"
] | 7 | 2021-08-22T21:30:50.000Z | 2022-01-14T16:56:34.000Z | Othuum/VishalaNetworkLib/Protocoll/Server/GameLobby.cpp | Liech/Yathsou | 95b6dda3c053bc25789cce416088e22f54a743b4 | [
"MIT"
] | null | null | null | #include "GameLobby.h"
#include "LobbyPlayer.h"
#include <iostream>
namespace Vishala {
namespace Server {
GameLobby::GameLobby(std::string name,int gameServerPort, std::string ip, size_t number, std::shared_ptr<LobbyModel> model) {
_name = name ;
_model = model ;
_number ... | 28.315068 | 129 | 0.613933 | Liech |
c5bc64a0b17db35d8fd3a28c53c5500edcd1a503 | 3,712 | cpp | C++ | dev/g++/ifsttar/wifiMapping/wifimapping/src/checkRtc.cpp | YannGarcia/repo | 0f3de24c71d942c752ada03c10861e83853fdf71 | [
"MIT"
] | null | null | null | dev/g++/ifsttar/wifiMapping/wifimapping/src/checkRtc.cpp | YannGarcia/repo | 0f3de24c71d942c752ada03c10861e83853fdf71 | [
"MIT"
] | null | null | null | dev/g++/ifsttar/wifiMapping/wifimapping/src/checkRtc.cpp | YannGarcia/repo | 0f3de24c71d942c752ada03c10861e83853fdf71 | [
"MIT"
] | 1 | 2017-01-27T12:53:50.000Z | 2017-01-27T12:53:50.000Z | /* Beaglebone check RTC result implementation
* Copyright (c) 2013 ygarcia, MIT License
*
* 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 limitatio... | 32.561404 | 115 | 0.65625 | YannGarcia |
c5bcd29a0721bf8b18d5dd4d87aa3e9125bd80c8 | 3,749 | cpp | C++ | 6LinkedList/linkedListFunctions/linkedList/linkedList/main.cpp | mingyuefly/geekTimeCode | d97c5f29a429ac9cc7289ac34e049ea43fa58822 | [
"MIT"
] | 1 | 2019-05-01T04:51:14.000Z | 2019-05-01T04:51:14.000Z | 6LinkedList/linkedListFunctions/linkedList/linkedList/main.cpp | mingyuefly/geekTimeCode | d97c5f29a429ac9cc7289ac34e049ea43fa58822 | [
"MIT"
] | null | null | null | 6LinkedList/linkedListFunctions/linkedList/linkedList/main.cpp | mingyuefly/geekTimeCode | d97c5f29a429ac9cc7289ac34e049ea43fa58822 | [
"MIT"
] | null | null | null | //
// main.cpp
// linkedList
//
// Created by Gguomingyue on 2019/3/12.
// Copyright © 2019 Gmingyue. All rights reserved.
//
#include <iostream>
#include "LinkedList.h"
using namespace std;
int main(int argc, const char * argv[]) {
ListNode *head = (ListNode *)malloc(sizeof(ListNode));
head->val = ... | 26.778571 | 67 | 0.561216 | mingyuefly |
c5c14cc59e7efddc4ae133c81c329968966b7f35 | 389 | hpp | C++ | cef_client/include/FunctionBinding.hpp | jarrettchisholm/glr | 79a57b12e26fe84595e833cace3528cb9c82bc20 | [
"WTFPL"
] | 11 | 2015-08-19T23:15:41.000Z | 2018-05-15T21:53:28.000Z | cef_client/include/FunctionBinding.hpp | jarrettchisholm/glr | 79a57b12e26fe84595e833cace3528cb9c82bc20 | [
"WTFPL"
] | 2 | 2015-05-21T06:37:24.000Z | 2015-05-23T05:37:16.000Z | cef_client/include/FunctionBinding.hpp | jarrettchisholm/glr | 79a57b12e26fe84595e833cace3528cb9c82bc20 | [
"WTFPL"
] | 5 | 2016-10-31T08:02:15.000Z | 2018-08-24T07:40:23.000Z | #ifndef FUNCTIONBINDING_H_
#define FUNCTIONBINDING_H_
#include <string>
#include "Macros.hpp"
namespace glr
{
namespace cef_client
{
class FunctionBinding
{
public:
FunctionBinding(std::wstring name);
virtual ~FunctionBinding();
// TODO: Get rid of macro setter and getter
GETSET(std::wstring, name_, Name)
pr... | 12.966667 | 44 | 0.737789 | jarrettchisholm |
c5c6246b804cd4f3cf602bf3a99304183cd3ecab | 11,192 | cc | C++ | src/ui/a11y/lib/gesture_manager/recognizers/m_finger_n_tap_drag_recognizer.cc | billchen1977/fuchsia | d443f9c7b03ad317d1700c2c9457be8ed1147b86 | [
"BSD-2-Clause"
] | null | null | null | src/ui/a11y/lib/gesture_manager/recognizers/m_finger_n_tap_drag_recognizer.cc | billchen1977/fuchsia | d443f9c7b03ad317d1700c2c9457be8ed1147b86 | [
"BSD-2-Clause"
] | null | null | null | src/ui/a11y/lib/gesture_manager/recognizers/m_finger_n_tap_drag_recognizer.cc | billchen1977/fuchsia | d443f9c7b03ad317d1700c2c9457be8ed1147b86 | [
"BSD-2-Clause"
] | null | null | null | // Copyright 2021 The Fuchsia 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 "src/ui/a11y/lib/gesture_manager/recognizers/m_finger_n_tap_drag_recognizer.h"
#include <lib/async/cpp/task.h>
#include <lib/async/default.h>
#in... | 39.687943 | 98 | 0.703181 | billchen1977 |
c5c796a5b36eb9ce01c779f301c5b4d4c6192dc1 | 9,705 | cpp | C++ | Mocap/src/publisher.cpp | robinzhoucmu/MLab_EXP | 4d86db9438203f51c4368e5b886def5c402955f3 | [
"Apache-2.0"
] | 2 | 2016-06-16T00:46:02.000Z | 2018-12-02T16:17:59.000Z | Mocap/src/publisher.cpp | robinzhoucmu/MLab_EXP | 4d86db9438203f51c4368e5b886def5c402955f3 | [
"Apache-2.0"
] | null | null | null | Mocap/src/publisher.cpp | robinzhoucmu/MLab_EXP | 4d86db9438203f51c4368e5b886def5c402955f3 | [
"Apache-2.0"
] | null | null | null | #include "publisher.h"
MocapPublisher::MocapPublisher(ros::NodeHandle *n) {
nodeHandle = n;
// Set as default frequency.
SetPublishFrequency(Globals::kPublishFreq);
// Without given transformation: set transformation (from robot base to mocap frame)
// as identity. Therefore mocap just return in its (unknow... | 30.615142 | 95 | 0.678001 | robinzhoucmu |
c5c990ae5523ab1cf6ccf7db48a26f74d3f5afb6 | 1,222 | hpp | C++ | include/hazeRemove.hpp | norishigefukushima/OpenCP | 63090131ec975e834f85b04e84ec29b2893845b2 | [
"BSD-3-Clause"
] | 137 | 2015-03-27T07:11:19.000Z | 2022-03-30T05:58:22.000Z | include/hazeRemove.hpp | Pandinosaurus/OpenCP | a5234ed531c610d7944fa14d42f7320442ea34a1 | [
"BSD-3-Clause"
] | 2 | 2016-05-18T06:33:16.000Z | 2016-07-11T17:39:17.000Z | include/hazeRemove.hpp | Pandinosaurus/OpenCP | a5234ed531c610d7944fa14d42f7320442ea34a1 | [
"BSD-3-Clause"
] | 43 | 2015-02-20T15:34:25.000Z | 2022-01-27T14:59:37.000Z | #pragma once
#include "common.hpp"
namespace cp
{
class CP_EXPORT HazeRemove
{
cv::Size size;
cv::Mat dark;
std::vector<cv::Mat> minvalue;
cv::Mat tmap;
cv::Scalar A;
void darkChannel(cv::Mat& src, int r);
void getAtmosphericLight(cv::Mat& srcImage, double topPercent = 0.1);
void getTransmissionM... | 34.914286 | 209 | 0.713584 | norishigefukushima |
c5cbb17a63e2cba61b08f9e02c106799e95a767d | 1,276 | cpp | C++ | tests/parse/iterator_test.cpp | BastianBlokland/novus | 3b984c36855aa84d6746c14ff7e294ab7d9c1575 | [
"MIT"
] | 14 | 2020-04-14T17:00:56.000Z | 2021-08-30T08:29:26.000Z | tests/parse/iterator_test.cpp | BastianBlokland/novus | 3b984c36855aa84d6746c14ff7e294ab7d9c1575 | [
"MIT"
] | 27 | 2020-12-27T16:00:44.000Z | 2021-08-01T13:12:14.000Z | tests/parse/iterator_test.cpp | BastianBlokland/novus | 3b984c36855aa84d6746c14ff7e294ab7d9c1575 | [
"MIT"
] | 1 | 2020-05-29T18:33:37.000Z | 2020-05-29T18:33:37.000Z | #include "catch2/catch.hpp"
#include "lex/lexer.hpp"
#include "parse/parser.hpp"
#include <string>
namespace parse {
TEST_CASE("[parse] Iterating the parser", "parse") {
const std::string input = "print(1) print(x * y)";
SECTION("Range for") {
auto lexer = lex::Lexer{input.begin(), input.end()};
auto pa... | 23.2 | 60 | 0.575235 | BastianBlokland |
c5cbc32e477982145511d6a3cf13caf960799809 | 8,066 | cpp | C++ | AROGSBP/ARGOS_BP_SW/VSCODE/CameraDSLR/photo.cpp | EIDOSDATA/Argos_Main_Series | 2d6e4839afa7bd05d3b87fb530481bdf5eeac31a | [
"Unlicense"
] | null | null | null | AROGSBP/ARGOS_BP_SW/VSCODE/CameraDSLR/photo.cpp | EIDOSDATA/Argos_Main_Series | 2d6e4839afa7bd05d3b87fb530481bdf5eeac31a | [
"Unlicense"
] | null | null | null | AROGSBP/ARGOS_BP_SW/VSCODE/CameraDSLR/photo.cpp | EIDOSDATA/Argos_Main_Series | 2d6e4839afa7bd05d3b87fb530481bdf5eeac31a | [
"Unlicense"
] | null | null | null | #include "photo.h"
#include <iostream>
#include <unistd.h>
static const char* config_texts[CONFIG_TYPE]=
{
"f-number",
"shutterspeed2",
"iso",
};
int photo::threeShootWait(CameraFilePath *path, int port_num, Camera *camera, GPContext *context)
{
CameraEventType eventtype;
struct timeval start, t... | 27.435374 | 157 | 0.5879 | EIDOSDATA |
c5d28e9f588915161d2fb455c60248ad65eb2287 | 4,453 | cc | C++ | build/X86_MESI_Two_Level/mem/protocol/L2Cache_State.cc | hoho20000000/gem5-fy | b59f6feed22896d6752331652c4d8a41a4ca4435 | [
"BSD-3-Clause"
] | null | null | null | build/X86_MESI_Two_Level/mem/protocol/L2Cache_State.cc | hoho20000000/gem5-fy | b59f6feed22896d6752331652c4d8a41a4ca4435 | [
"BSD-3-Clause"
] | 1 | 2020-08-20T05:53:30.000Z | 2020-08-20T05:53:30.000Z | build/X86_MESI_Two_Level/mem/protocol/L2Cache_State.cc | hoho20000000/gem5-fy | b59f6feed22896d6752331652c4d8a41a4ca4435 | [
"BSD-3-Clause"
] | null | null | null | /** \file L2Cache_State.hh
*
* Auto generated C++ code started by /home/hongyu/gem5-fy/src/mem/slicc/symbols/Type.py:555
*/
#include <cassert>
#include <iostream>
#include <string>
#include "base/misc.hh"
#include "mem/protocol/L2Cache_State.hh"
using namespace std;
// Code to convert the current state to an acc... | 27.658385 | 92 | 0.642488 | hoho20000000 |
c5d835cb3603806f929d8fc2e98ab38f16792861 | 1,138 | cc | C++ | statements/ReadStmt.cc | R2333333/SCAPES | 98f8aafc1bbd279165e82a70eaa3c22eef62c892 | [
"MIT"
] | null | null | null | statements/ReadStmt.cc | R2333333/SCAPES | 98f8aafc1bbd279165e82a70eaa3c22eef62c892 | [
"MIT"
] | null | null | null | statements/ReadStmt.cc | R2333333/SCAPES | 98f8aafc1bbd279165e82a70eaa3c22eef62c892 | [
"MIT"
] | null | null | null | #include "../headerFiles/ReadStmt.h"
#include "../headerFiles/Program.h"
using namespace std;
ReadStmt::ReadStmt()
:Statement(){}
void ReadStmt::compile(QString stat){
if (checkError(stat)){
return;
}
QStringList list = stat.split(" ");
instruction = list.at(0);
operand1 = new Operand(list.at... | 29.179487 | 104 | 0.623023 | R2333333 |
c5d99e4135541ff66bfbb967dc53ecc3d143ed9a | 2,393 | hpp | C++ | include/UnityEngine/TestRunner/NUnitExtensions/TestResultExtensions.hpp | darknight1050/BeatSaber-Quest-Codegen | a6eeecc3f0e8f6079630f9a9a72b3121ac7b2032 | [
"Unlicense"
] | null | null | null | include/UnityEngine/TestRunner/NUnitExtensions/TestResultExtensions.hpp | darknight1050/BeatSaber-Quest-Codegen | a6eeecc3f0e8f6079630f9a9a72b3121ac7b2032 | [
"Unlicense"
] | null | null | null | include/UnityEngine/TestRunner/NUnitExtensions/TestResultExtensions.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"
// Completed includes
// Begin forward declares
// Forward declaring namespace: NUnit::F... | 52.021739 | 200 | 0.752194 | darknight1050 |
c5da7565372b3c8a4fb8d54869459fddce5b60b9 | 795 | cpp | C++ | src/algorithms/kamenevs/KuniHeroVector.cpp | av-elier/fast-exponentiation-algs | 1d6393021583686372564a7ca52b09dc7013fb38 | [
"MIT"
] | 2 | 2016-10-17T20:30:05.000Z | 2020-03-24T19:52:14.000Z | src/algorithms/kamenevs/KuniHeroVector.cpp | av-elier/fast-exponentiation-algs | 1d6393021583686372564a7ca52b09dc7013fb38 | [
"MIT"
] | null | null | null | src/algorithms/kamenevs/KuniHeroVector.cpp | av-elier/fast-exponentiation-algs | 1d6393021583686372564a7ca52b09dc7013fb38 | [
"MIT"
] | null | null | null | #include "algorithms/kamenevs/KuniHeroVector.h"
#include <algorithm>
vector<string>* KuniheroVector::create_str_dicitionary(string s)
{
double p = 0;
for (int i = 0; i < s.length(); ++i)
p+=s[i] - 48;
p /= s.length();
double q = 1 - p;
Node* n = fill(k,p);
vector<string>* res = (n->get_paths());
for (int... | 19.875 | 72 | 0.54717 | av-elier |
c5dfc442120aec8deaa0d3d2fb657b3bdc7f7f67 | 3,385 | cpp | C++ | pl2_assembler/main.cpp | MassiveBattlebotsFan/team-lightning-cpu | 513b92aec5b3fe185f4e9220340a23bb09561059 | [
"Unlicense"
] | 1 | 2021-09-30T19:39:55.000Z | 2021-09-30T19:39:55.000Z | pl2_assembler/main.cpp | MassiveBattlebotsFan/team-lightning-cpu | 513b92aec5b3fe185f4e9220340a23bb09561059 | [
"Unlicense"
] | null | null | null | pl2_assembler/main.cpp | MassiveBattlebotsFan/team-lightning-cpu | 513b92aec5b3fe185f4e9220340a23bb09561059 | [
"Unlicense"
] | null | null | null | #include <cstdio>
#include <cstdlib>
#include <iostream>
#include <iomanip>
#include <fstream>
#include <sstream>
#include <cstdint>
#include <cstring>
#include <map>
using namespace std;
int main(int argc, char const *argv[]) {
try{
//init logging to file
ofstream logging("pl2asm.log");
auto old_rdbuf ... | 29.181034 | 101 | 0.52969 | MassiveBattlebotsFan |
c5dff3aade8632a6e61e52c3056107c113bcd0f2 | 3,936 | cpp | C++ | Plugins/OVRPlatformBP/Source/OVRPlatformBP/Private/OBPRequests_LanguagePack.cpp | Brain-Vision/Unreal-SharedSpaces | 262153c5c52c4e15fed5ece901e0e1c8502bb030 | [
"MIT"
] | null | null | null | Plugins/OVRPlatformBP/Source/OVRPlatformBP/Private/OBPRequests_LanguagePack.cpp | Brain-Vision/Unreal-SharedSpaces | 262153c5c52c4e15fed5ece901e0e1c8502bb030 | [
"MIT"
] | null | null | null | Plugins/OVRPlatformBP/Source/OVRPlatformBP/Private/OBPRequests_LanguagePack.cpp | Brain-Vision/Unreal-SharedSpaces | 262153c5c52c4e15fed5ece901e0e1c8502bb030 | [
"MIT"
] | null | null | null | // OVRPlatformBP plugin by InnerLoop LLC 2021
#include "OBPRequests_LanguagePack.h"
// --------------------
// Initializers
// --------------------
UOBPLanguagePack_GetCurrent::UOBPLanguagePack_GetCurrent(const FObjectInitializer& ObjectInitializer)
: Super(ObjectInitializer)
{
}
UOBPLanguagePack_SetCurrent::UOBPL... | 29.818182 | 110 | 0.746697 | Brain-Vision |
c5e0fd6a70bc8bcda03a611793e213567f02d46e | 12,175 | cpp | C++ | src/ny/wayland/util.cpp | nyorain/ny | 9349a6f668a9458d3a37b76bb3cd1e5c679d16ad | [
"BSL-1.0"
] | 18 | 2015-12-14T09:04:06.000Z | 2021-11-14T20:38:17.000Z | src/ny/wayland/util.cpp | nyorain/ny | 9349a6f668a9458d3a37b76bb3cd1e5c679d16ad | [
"BSL-1.0"
] | 2 | 2015-06-26T09:26:05.000Z | 2019-04-02T09:05:12.000Z | src/ny/wayland/util.cpp | nyorain/ny | 9349a6f668a9458d3a37b76bb3cd1e5c679d16ad | [
"BSL-1.0"
] | 2 | 2017-08-23T06:04:26.000Z | 2019-11-27T01:48:02.000Z | // Copyright (c) 2015-2018 nyorain
// Distributed under the Boost Software License, Version 1.0.
// See accompanying file LICENSE or copy at http://www.boost.org/LICENSE_1_0.txt
#include <ny/wayland/util.hpp>
#include <ny/wayland/appContext.hpp>
#include <ny/wayland/windowContext.hpp>
#include <ny/cursor.hpp>
#includ... | 26.070664 | 96 | 0.733306 | nyorain |
c5e41c26b1839f262fd7709cf3963962bcad1f3c | 953 | hh | C++ | difAlgebra/DifExternal.hh | brownd1978/FastSim | 05f590d72d8e7f71856fd833114a38b84fc7fd48 | [
"Apache-2.0"
] | null | null | null | difAlgebra/DifExternal.hh | brownd1978/FastSim | 05f590d72d8e7f71856fd833114a38b84fc7fd48 | [
"Apache-2.0"
] | null | null | null | difAlgebra/DifExternal.hh | brownd1978/FastSim | 05f590d72d8e7f71856fd833114a38b84fc7fd48 | [
"Apache-2.0"
] | null | null | null | //--------------------------------------------------------------------------
// File and Version Information:
// $Id: DifExternal.hh 501 2010-01-14 12:46:50Z stroili $
//
// Description:
// Class Header for |DifExternal|
// Define some useful constants
//
// Environment:
// Software developed for the BaBar Detect... | 19.44898 | 76 | 0.624344 | brownd1978 |
c5e6927a84897e035464382bbce98ce647ae81a9 | 395 | cpp | C++ | round1/integration/main.cpp | ymadzhunkov/codeit | a013480ef39259bd282996d7d62296f089e708f4 | [
"MIT"
] | null | null | null | round1/integration/main.cpp | ymadzhunkov/codeit | a013480ef39259bd282996d7d62296f089e708f4 | [
"MIT"
] | null | null | null | round1/integration/main.cpp | ymadzhunkov/codeit | a013480ef39259bd282996d7d62296f089e708f4 | [
"MIT"
] | null | null | null | #include "keyboard.h"
#include "answer.h"
#include "simulated_annealing.h"
#include "progress.h"
int main(int argc, char *argv[]) {
Problem problem(fopen("keyboard.in", "r"));
Progress progress(2.8);
SimulatedAnnealing sa(problem, progress);
sa.optimize(1234);
sa.getBest().write(fopen("keyboard.out... | 26.333333 | 60 | 0.678481 | ymadzhunkov |
c5eaeb476dc8c69d5770c7fa480e144243cd1ed7 | 1,902 | cpp | C++ | EngineGUI/FolderBrowser.cpp | openlastchaos/lastchaos-source-client | 3d88594dba7347b1bb45378136605e31f73a8555 | [
"Apache-2.0"
] | 1 | 2022-02-14T15:46:44.000Z | 2022-02-14T15:46:44.000Z | EngineGUI/FolderBrowser.cpp | openlastchaos/lastchaos-source-client | 3d88594dba7347b1bb45378136605e31f73a8555 | [
"Apache-2.0"
] | null | null | null | EngineGUI/FolderBrowser.cpp | openlastchaos/lastchaos-source-client | 3d88594dba7347b1bb45378136605e31f73a8555 | [
"Apache-2.0"
] | 2 | 2022-01-10T22:17:06.000Z | 2022-01-17T09:34:08.000Z | #include "stdh.h"
#include <shlobj.h>
static int CALLBACK BrowseCallbackProc(HWND hwnd,UINT uMsg,LPARAM lp, LPARAM pData)
{
TCHAR szDir[MAX_PATH];
switch(uMsg) {
case BFFM_INITIALIZED: {
SendMessage(hwnd,BFFM_SETSELECTION,TRUE,(LPARAM)pData);
break;
}
case BFFM_SELCHANGED: {
// enable... | 27.565217 | 141 | 0.666667 | openlastchaos |
c5eba0d073d8882945741c6aeb5c5be60c700c5e | 24,449 | cc | C++ | tests/unit/lb/test_lb_stats_comm.cc | rbuch/vt | 74c2e0cae3201dfbcbfda7644c354703ddaed6bb | [
"BSD-3-Clause"
] | 26 | 2019-11-26T08:36:15.000Z | 2022-02-15T17:13:21.000Z | tests/unit/lb/test_lb_stats_comm.cc | rbuch/vt | 74c2e0cae3201dfbcbfda7644c354703ddaed6bb | [
"BSD-3-Clause"
] | 1,215 | 2019-09-09T14:31:33.000Z | 2022-03-30T20:20:14.000Z | tests/unit/lb/test_lb_stats_comm.cc | rbuch/vt | 74c2e0cae3201dfbcbfda7644c354703ddaed6bb | [
"BSD-3-Clause"
] | 12 | 2019-09-08T00:03:05.000Z | 2022-02-23T21:28:35.000Z | /*
//@HEADER
// *****************************************************************************
//
// test_lb_stats_comm.cc
// DARMA/vt => Virtual Transport
//
// Copyright 2019-2021 National Technology & Engineering Solutions of Sandia, LLC
// (NTESS). Under the terms of ... | 32.55526 | 85 | 0.635282 | rbuch |
c5f31b69144585a176889d448ff7d494a236d747 | 821 | cpp | C++ | judges/codeforces/exercises/new_year_and_north_pole.cpp | eduardonunes2525/competitive-programming | 0f6bdc573b4d03d1ed20a2b77ec5388dca1ee47b | [
"MIT"
] | null | null | null | judges/codeforces/exercises/new_year_and_north_pole.cpp | eduardonunes2525/competitive-programming | 0f6bdc573b4d03d1ed20a2b77ec5388dca1ee47b | [
"MIT"
] | 1 | 2018-10-17T11:53:02.000Z | 2018-10-17T11:54:42.000Z | judges/codeforces/exercises/new_year_and_north_pole.cpp | eduardonunes2525/competitive-programming | 0f6bdc573b4d03d1ed20a2b77ec5388dca1ee47b | [
"MIT"
] | 1 | 2018-10-17T12:14:04.000Z | 2018-10-17T12:14:04.000Z | #include<bits/stdc++.h>
#define IOS ios::sync_with_stdio(0); cin.tie(0); cout.tie(0)
#define what_is(x) cerr << #x << " is " << x << endl
#define REP(i,a,b) for (int i = a; i <= b; i++)
#define endl "\n"
using namespace std;
using ii = pair<int, int>;
using ll = long long;
#define xmax 40000LL
#define ymax 20000LL
... | 21.051282 | 80 | 0.461632 | eduardonunes2525 |
c5f60941a7a64a234edec73f2130cb22451ed8c5 | 6,796 | cc | C++ | tests/native/cxx_object.cc | Natus/natus | 4074619edd45f1bb62a5561d08a64e9960b3d9e8 | [
"MIT"
] | 1 | 2015-11-05T03:19:22.000Z | 2015-11-05T03:19:22.000Z | tests/native/cxx_object.cc | Natus/natus | 4074619edd45f1bb62a5561d08a64e9960b3d9e8 | [
"MIT"
] | null | null | null | tests/native/cxx_object.cc | Natus/natus | 4074619edd45f1bb62a5561d08a64e9960b3d9e8 | [
"MIT"
] | null | null | null | #include "test.hh"
class TestClass : public Class {
virtual Value
del(Value& obj, Value& name)
{
assert(obj.borrowCValue());
assert(name.borrowCValue());
assert(obj.isObject());
assert(name.getType() == obj.getPrivateName<size_t>("type"));
return obj.getPrivateName<Value>("retval");
}
vi... | 31.031963 | 85 | 0.626986 | Natus |
c5f8bff9b3bc4e32bb471e125ea7b44b7e064ef4 | 12,408 | cpp | C++ | OGLFrameworkLib/volumeScene/TransferFunctionGUI.cpp | dasmysh/OGLFrameworkLib_uulm | 36fd5e65d7fb028a07f9d4f95c543f27a23a7d24 | [
"MIT"
] | null | null | null | OGLFrameworkLib/volumeScene/TransferFunctionGUI.cpp | dasmysh/OGLFrameworkLib_uulm | 36fd5e65d7fb028a07f9d4f95c543f27a23a7d24 | [
"MIT"
] | null | null | null | OGLFrameworkLib/volumeScene/TransferFunctionGUI.cpp | dasmysh/OGLFrameworkLib_uulm | 36fd5e65d7fb028a07f9d4f95c543f27a23a7d24 | [
"MIT"
] | 1 | 2019-11-14T06:24:26.000Z | 2019-11-14T06:24:26.000Z | /**
* @file TransferFunctionGUI.cpp
* @author Sebastian Maisch <sebastian.maisch@uni-ulm.de>
* @date 2015.08.24
*
* @brief Definition of the transfer function GUI.
*/
#include "TransferFunctionGUI.h"
#include "app/ApplicationBase.h"
#include "gfx/glrenderer/GLTexture.h"
#include "gfx/glrenderer/GLUniformBuf... | 38.178462 | 134 | 0.603482 | dasmysh |
68080c70acdabd1d3e5137466c037c8d81a2acfb | 1,424 | cpp | C++ | engine/src/common/pixelboost/input/joystickManager.cpp | pixelballoon/pixelboost | 085873310050ce62493df61142b7d4393795bdc2 | [
"MIT"
] | 6 | 2015-04-21T11:30:52.000Z | 2020-04-29T00:10:04.000Z | engine/src/common/pixelboost/input/joystickManager.cpp | pixelballoon/pixelboost | 085873310050ce62493df61142b7d4393795bdc2 | [
"MIT"
] | null | null | null | engine/src/common/pixelboost/input/joystickManager.cpp | pixelballoon/pixelboost | 085873310050ce62493df61142b7d4393795bdc2 | [
"MIT"
] | null | null | null | #include "pixelboost/input/joystickManager.h"
using namespace pb;
JoystickHandler::JoystickHandler()
{
}
JoystickHandler::~JoystickHandler()
{
}
bool JoystickHandler::OnAxisChanged(int joystick, int stick, int axis, float value)
{
return false;
}
bool JoystickHandler::OnButtonDown(int joystick, int b... | 19.777778 | 93 | 0.662219 | pixelballoon |
680d20a5390f605ac39b267c0f27585c472f45f7 | 1,805 | cpp | C++ | unittest/energy.cpp | thanhndv212/pinocchio | 3b4d272bf4e8a231954b71201ee7e0963c944aef | [
"BSD-2-Clause-FreeBSD"
] | 716 | 2015-03-30T16:26:45.000Z | 2022-03-30T12:26:58.000Z | unittest/energy.cpp | thanhndv212/pinocchio | 3b4d272bf4e8a231954b71201ee7e0963c944aef | [
"BSD-2-Clause-FreeBSD"
] | 1,130 | 2015-02-21T17:30:44.000Z | 2022-03-30T09:06:22.000Z | unittest/energy.cpp | thanhndv212/pinocchio | 3b4d272bf4e8a231954b71201ee7e0963c944aef | [
"BSD-2-Clause-FreeBSD"
] | 239 | 2015-02-05T14:15:14.000Z | 2022-03-14T23:51:47.000Z | //
// Copyright (c) 2016-2020 CNRS INRIA
//
#include "pinocchio/algorithm/energy.hpp"
#include "pinocchio/algorithm/crba.hpp"
#include "pinocchio/algorithm/joint-configuration.hpp"
#include "pinocchio/algorithm/center-of-mass.hpp"
#include "pinocchio/parsers/sample-models.hpp"
#include <boost/test/unit_test.hpp>
#in... | 29.112903 | 98 | 0.754017 | thanhndv212 |
680e090513b5ca735290d816d96ce46941a37677 | 1,317 | hpp | C++ | iOS/G3MiOSSDK/Commons/JSON/JSONBaseObject.hpp | AeroGlass/g3m | a21a9e70a6205f1f37046ae85dafc6e3bfaeb917 | [
"BSD-2-Clause"
] | null | null | null | iOS/G3MiOSSDK/Commons/JSON/JSONBaseObject.hpp | AeroGlass/g3m | a21a9e70a6205f1f37046ae85dafc6e3bfaeb917 | [
"BSD-2-Clause"
] | null | null | null | iOS/G3MiOSSDK/Commons/JSON/JSONBaseObject.hpp | AeroGlass/g3m | a21a9e70a6205f1f37046ae85dafc6e3bfaeb917 | [
"BSD-2-Clause"
] | null | null | null | //
// JSONBaseObject.hpp
// G3MiOSSDK
//
// Created by Oliver Koehler on 17/09/12.
// Copyright (c) 2012 __MyCompanyName__. All rights reserved.
//
#ifndef G3MiOSSDK_JSONBaseObject
#define G3MiOSSDK_JSONBaseObject
class JSONObject;
class JSONArray;
class JSONBoolean;
class JSONNumber;
class JSONString;
class JSON... | 20.578125 | 67 | 0.707669 | AeroGlass |
680e8a0dcdf05979bd7192591cfa4ecbf8dae8f3 | 1,626 | cpp | C++ | Client/chat.cpp | edoblette/QtChat | 154db25b97b2420a13b15993d1b4d0ee7b23c160 | [
"MIT"
] | null | null | null | Client/chat.cpp | edoblette/QtChat | 154db25b97b2420a13b15993d1b4d0ee7b23c160 | [
"MIT"
] | null | null | null | Client/chat.cpp | edoblette/QtChat | 154db25b97b2420a13b15993d1b4d0ee7b23c160 | [
"MIT"
] | null | null | null | /**
* CLIENT SIDE
* Projet Reseau
* @teacher Pablo Rauzy <pr@up8.edu> <https://pablo.rauzy.name/teaching.html#rmpp>
*
* @autor Edgar Oblette <edwardoblette@gmail.com>
* @collegues: Lina Tlemcem
* Nourdine ---
*
* 21/04/2019
*/
#include "ui_chat.h"
#include "eventshan... | 27.1 | 85 | 0.599631 | edoblette |
6810b9e013996f7d618e92ad385c6ffc122fb955 | 601 | cpp | C++ | Analysis/src/AlThrust.cpp | gganis/AlphappLite | e52a184c2d39a3acdd6ff09d1d61bcfca7807460 | [
"Apache-2.0"
] | null | null | null | Analysis/src/AlThrust.cpp | gganis/AlphappLite | e52a184c2d39a3acdd6ff09d1d61bcfca7807460 | [
"Apache-2.0"
] | null | null | null | Analysis/src/AlThrust.cpp | gganis/AlphappLite | e52a184c2d39a3acdd6ff09d1d61bcfca7807460 | [
"Apache-2.0"
] | null | null | null | //////////////////////////////////////////////////////////
// implementation of the AlThrust class methods
//
// Author : M. Hoerndl
//
///////////////////////////////////////////////////////////
#include "AlThrust.h"
// default constructor : has to do something,
// since it is not created out of qvec
AlThrust::Al... | 24.04 | 71 | 0.572379 | gganis |
68122067b1d2352555bae044246215ae359135a8 | 3,992 | cpp | C++ | Code/Engine/GameEngine/Physics/Implementation/ClothSheetSimulator.cpp | Tekh-ops/ezEngine | d6a5887d8709f267bf8f2943ef15054e29f6d3d5 | [
"MIT"
] | 703 | 2015-03-07T15:30:40.000Z | 2022-03-30T00:12:40.000Z | Code/Engine/GameEngine/Physics/Implementation/ClothSheetSimulator.cpp | Tekh-ops/ezEngine | d6a5887d8709f267bf8f2943ef15054e29f6d3d5 | [
"MIT"
] | 233 | 2015-01-11T16:54:32.000Z | 2022-03-19T18:00:47.000Z | Code/Engine/GameEngine/Physics/Implementation/ClothSheetSimulator.cpp | Tekh-ops/ezEngine | d6a5887d8709f267bf8f2943ef15054e29f6d3d5 | [
"MIT"
] | 101 | 2016-10-28T14:05:10.000Z | 2022-03-30T19:00:59.000Z | #include <GameEngine/GameEnginePCH.h>
#include <Foundation/SimdMath/SimdConversion.h>
#include <GameEngine/Physics/ClothSheetSimulator.h>
void ezClothSimulator::SimulateCloth(const ezTime& tDiff)
{
m_leftOverTimeStep += tDiff;
constexpr ezTime tStep = ezTime::Seconds(1.0 / 60.0);
const ezSimdFloat tStepSqr = s... | 26.791946 | 194 | 0.676854 | Tekh-ops |
68135617db854f4ce233a3b6dc0df9a4087d88b5 | 2,344 | hpp | C++ | src/prx/simulation/playback/trajectory.hpp | aravindsiv/ML4KP | 064015a7545e1713cbcad3e79807b5cec0849f54 | [
"MIT"
] | 3 | 2021-05-31T11:28:03.000Z | 2021-05-31T13:49:30.000Z | src/prx/simulation/playback/trajectory.hpp | aravindsiv/ML4KP | 064015a7545e1713cbcad3e79807b5cec0849f54 | [
"MIT"
] | 1 | 2021-09-03T09:39:32.000Z | 2021-12-10T22:17:56.000Z | src/prx/simulation/playback/trajectory.hpp | aravindsiv/ML4KP | 064015a7545e1713cbcad3e79807b5cec0849f54 | [
"MIT"
] | 2 | 2021-09-03T09:17:45.000Z | 2021-10-04T15:52:58.000Z | #pragma once
#include "prx/utilities/spaces/space.hpp"
#include "prx/utilities/defs.hpp"
#include <deque>
namespace prx
{
/**
* @brief <b>A class that defines a trajectory.</b>
*
* A trajectory consists of a sequence of states.
*
* @authors Zakary Littlefield
*
*/
class trajectory_t
{... | 20.561404 | 92 | 0.699232 | aravindsiv |
6817374a7adaf810a5621a991bc6c6638fa695f5 | 457 | tpp | C++ | src/tp_plus_examples/src/tst_user_input.tpp | kobbled/rossum_example_ws | b705b8afab229a607c687bb9fb7dc7dac9bad87e | [
"Apache-2.0"
] | null | null | null | src/tp_plus_examples/src/tst_user_input.tpp | kobbled/rossum_example_ws | b705b8afab229a607c687bb9fb7dc7dac9bad87e | [
"Apache-2.0"
] | null | null | null | src/tp_plus_examples/src/tst_user_input.tpp | kobbled/rossum_example_ws | b705b8afab229a607c687bb9fb7dc7dac9bad87e | [
"Apache-2.0"
] | null | null | null | # Print a ascii tree with the base length
# specified by the user
# -----------------------
userclear()
usershow()
number := R[56]
number = userReadInt('enter length of ascii tree.')
i := R[46]
Dummy_1 := R[225]
Dummy_1 = number - 1
for i in (0 to Dummy_1)
Dummy_2 := R[226]
Dummy_2 = Dummy_1 - i
j := R... | 15.758621 | 51 | 0.544858 | kobbled |
6817d1b46bef915ad538225b3ecabdd2f05de687 | 1,668 | cpp | C++ | src/database/overlay/SoXipMenuStyle.cpp | OpenXIP/xip-libraries | 9f0fef66038b20ff0c81c089d7dd0038e3126e40 | [
"Apache-2.0"
] | 2 | 2020-05-21T07:06:07.000Z | 2021-06-28T02:14:34.000Z | src/database/overlay/SoXipMenuStyle.cpp | OpenXIP/xip-libraries | 9f0fef66038b20ff0c81c089d7dd0038e3126e40 | [
"Apache-2.0"
] | null | null | null | src/database/overlay/SoXipMenuStyle.cpp | OpenXIP/xip-libraries | 9f0fef66038b20ff0c81c089d7dd0038e3126e40 | [
"Apache-2.0"
] | 6 | 2016-03-21T19:53:18.000Z | 2021-06-08T18:06:03.000Z | /*
Copyright (c) 2011, Siemens Corporate Research a Division of Siemens Corporation
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.... | 27.8 | 85 | 0.757794 | OpenXIP |
68194d10b70a101f39dcf8c5c984e13a327be87d | 929 | cpp | C++ | src/pdb_component/parsers/hb/source/src/vdw/ca_main.cpp | MelvinYin/Defined_Proteins | 75da20be82a47d85d27176db29580ab87d52b670 | [
"BSD-3-Clause"
] | 2 | 2021-01-05T02:55:57.000Z | 2021-04-16T15:49:08.000Z | src/pdb_component/parsers/hb/source/src/vdw/ca_main.cpp | MelvinYin/Defined_Proteins | 75da20be82a47d85d27176db29580ab87d52b670 | [
"BSD-3-Clause"
] | null | null | null | src/pdb_component/parsers/hb/source/src/vdw/ca_main.cpp | MelvinYin/Defined_Proteins | 75da20be82a47d85d27176db29580ab87d52b670 | [
"BSD-3-Clause"
] | 1 | 2021-01-05T08:12:38.000Z | 2021-01-05T08:12:38.000Z | #include "pdb_data.hpp"
#include "contact_data.hpp"
#include "contact_formatting.hpp"
int main(int argc, char *argv[])
{
if (argc<4)
{
printf("You must supply a filename to compute on, filename for contacts data, as well as the filename for residue bounds data.");
return -1;
};
// Read the st... | 29.967742 | 135 | 0.684607 | MelvinYin |
681d1dfa678d19cb65a83b8532d3079b9fb2d741 | 3,764 | cpp | C++ | engine/time/source/CreatureStatisticsMarkerChecker.cpp | prolog/shadow-of-the-wyrm | a1312c3e9bb74473f73c4e7639e8bd537f10b488 | [
"MIT"
] | 60 | 2019-08-21T04:08:41.000Z | 2022-03-10T13:48:04.000Z | engine/time/source/CreatureStatisticsMarkerChecker.cpp | prolog/shadow-of-the-wyrm | a1312c3e9bb74473f73c4e7639e8bd537f10b488 | [
"MIT"
] | 3 | 2021-03-18T15:11:14.000Z | 2021-10-20T12:13:07.000Z | engine/time/source/CreatureStatisticsMarkerChecker.cpp | prolog/shadow-of-the-wyrm | a1312c3e9bb74473f73c4e7639e8bd537f10b488 | [
"MIT"
] | 8 | 2019-11-16T06:29:05.000Z | 2022-01-23T17:33:43.000Z | #include "CreatureStatisticsMarkerChecker.hpp"
#include "EngineConversion.hpp"
#include "HungerCalculator.hpp"
#include "RaceManager.hpp"
#include "RNG.hpp"
#include "StatisticsMarker.hpp"
using namespace std;
const int CreatureStatisticsMarkerChecker::PASSIVE_STATISTIC_THRESHOLD = 15;
CreatureStatisticsMarkerChecke... | 27.881481 | 148 | 0.729012 | prolog |
681e3bb316222511721a5a0d06ac03fe59db21d5 | 660 | hpp | C++ | ComputerInfo.hpp | Ferinko/CPPAmpRaytracer | 459d9804cadd0489eea335cf4b6ba4a1256f76dd | [
"MIT"
] | null | null | null | ComputerInfo.hpp | Ferinko/CPPAmpRaytracer | 459d9804cadd0489eea335cf4b6ba4a1256f76dd | [
"MIT"
] | null | null | null | ComputerInfo.hpp | Ferinko/CPPAmpRaytracer | 459d9804cadd0489eea335cf4b6ba4a1256f76dd | [
"MIT"
] | null | null | null | #pragma once
#include <amp.h>
#include <ostream>
namespace Smurf {
void printPCInfo(std::wostream& os) {
auto accelerators = Concurrency::accelerator::get_all();
for (auto && elem : accelerators) {
os << elem.description << std::endl;
}
}
void printRayTr... | 30 | 84 | 0.506061 | Ferinko |
6821abf0af39f37c7d40ab5361c375fe549a2445 | 2,249 | cpp | C++ | Krispy/src/Krispy/Core/OrthographicCameraController.cpp | Dallin343/GameEngine | 029de5127edb29f3372b354cf8902a29ee80d768 | [
"MIT"
] | null | null | null | Krispy/src/Krispy/Core/OrthographicCameraController.cpp | Dallin343/GameEngine | 029de5127edb29f3372b354cf8902a29ee80d768 | [
"MIT"
] | null | null | null | Krispy/src/Krispy/Core/OrthographicCameraController.cpp | Dallin343/GameEngine | 029de5127edb29f3372b354cf8902a29ee80d768 | [
"MIT"
] | null | null | null | //
// Created by dallin on 9/11/20.
//
#include "OrthographicCameraController.h"
namespace Krispy {
OrthographicCameraController::OrthographicCameraController(float aspectRatio, bool rotation)
: m_Rotation(rotation), m_AspectRatio(aspectRatio),
m_Camera(-m_AspectRatio * m_ZoomLevel, m_AspectRatio * ... | 36.274194 | 117 | 0.672743 | Dallin343 |
68240349f35988ea521f53be03241ffc2a993d52 | 5,149 | cpp | C++ | ProjectEuler+/euler-0015.cpp | sarvekash/HackerRank_Solutions | 8f48e5b1a6e792a85a10d8c328cd1f5341fb16a8 | [
"Apache-2.0"
] | null | null | null | ProjectEuler+/euler-0015.cpp | sarvekash/HackerRank_Solutions | 8f48e5b1a6e792a85a10d8c328cd1f5341fb16a8 | [
"Apache-2.0"
] | null | null | null | ProjectEuler+/euler-0015.cpp | sarvekash/HackerRank_Solutions | 8f48e5b1a6e792a85a10d8c328cd1f5341fb16a8 | [
"Apache-2.0"
] | 1 | 2021-05-28T11:14:34.000Z | 2021-05-28T11:14:34.000Z | // ////////////////////////////////////////////////////////
// # Title
// Lattice paths
//
// # URL
// https://projecteuler.net/problem=15
// http://euler.stephan-brumme.com/15/
//
// # Problem
// Starting in the top left corner of a 2x2 grid, and only being able to move to the right and down,
// there are exactly 6 ro... | 37.043165 | 148 | 0.646533 | sarvekash |
6825cbe7fd45c02203f82d3966e4fa4776b31e87 | 19,718 | cpp | C++ | msf_localization_ros/src/source/ros_free_model_robot_interface.cpp | Ahrovan/msf_localization | a78ba2473115234910789617e9b45262ebf1d13d | [
"BSD-3-Clause"
] | 1 | 2021-02-27T15:23:13.000Z | 2021-02-27T15:23:13.000Z | msf_localization_ros/src/source/ros_free_model_robot_interface.cpp | Ahrovan/msf_localization | a78ba2473115234910789617e9b45262ebf1d13d | [
"BSD-3-Clause"
] | null | null | null | msf_localization_ros/src/source/ros_free_model_robot_interface.cpp | Ahrovan/msf_localization | a78ba2473115234910789617e9b45262ebf1d13d | [
"BSD-3-Clause"
] | null | null | null |
#include "msf_localization_ros/ros_free_model_robot_interface.h"
#include "msf_localization_core/msfLocalization.h"
RosFreeModelRobotInterface::RosFreeModelRobotInterface(ros::NodeHandle* nh, tf::TransformBroadcaster *tf_transform_broadcaster, MsfLocalizationCore* msf_localization_core_ptr) :
RosRobotInterface(... | 36.650558 | 230 | 0.750127 | Ahrovan |
6827daa819555eef6698af9548abe30e355a3392 | 3,953 | cpp | C++ | src/160_intersection_of_two_linked_lists.cpp | llife09/leetcode | f5bd6bc7819628b9921441d8362f62123ab881b7 | [
"MIT"
] | 1 | 2019-09-01T22:54:39.000Z | 2019-09-01T22:54:39.000Z | src/160_intersection_of_two_linked_lists.cpp | llife09/leetcode | f5bd6bc7819628b9921441d8362f62123ab881b7 | [
"MIT"
] | 6 | 2019-07-19T07:16:42.000Z | 2019-07-26T08:21:31.000Z | src/160_intersection_of_two_linked_lists.cpp | llife09/leetcode | f5bd6bc7819628b9921441d8362f62123ab881b7 | [
"MIT"
] | null | null | null |
/*
Intersection of Two Linked Lists
URL: https://leetcode.com/problems/intersection-of-two-linked-lists
Tags: ['linked-list']
___
Write a program to find the node at which the intersection of two singly
linked lists begins.
For example, the following two linked lists:
[ 2010-2013 Groupement d'Intérêt Public pour l'Education Numérique en Afrique (GIP ENA)
*
* This file is part of Open-Sankoré.
*
* Open-Sankoré is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Found... | 30.016 | 147 | 0.661514 | eaglezzb |
683787adcf74d0720ef1397164780d2759656daa | 879 | cpp | C++ | Source/Flopnite/Private/FNAttributeSet.cpp | BEASTSM96/flopnite-ue4 | 76193544a6b7fe6b969864e74409b6b5a43f3d7a | [
"MIT"
] | null | null | null | Source/Flopnite/Private/FNAttributeSet.cpp | BEASTSM96/flopnite-ue4 | 76193544a6b7fe6b969864e74409b6b5a43f3d7a | [
"MIT"
] | null | null | null | Source/Flopnite/Private/FNAttributeSet.cpp | BEASTSM96/flopnite-ue4 | 76193544a6b7fe6b969864e74409b6b5a43f3d7a | [
"MIT"
] | null | null | null | // Fill out your copyright notice in the Description page of Project Settings.
#include "FNAttributeSet.h"
#include "Net/UnrealNetwork.h"
UFNAttributeSet::UFNAttributeSet() {
}
void UFNAttributeSet::PreAttributeChange(const FGameplayAttribute& Attribute, float& NewValue) {
Super::PreAttributeChange(Attribute, New... | 30.310345 | 101 | 0.829352 | BEASTSM96 |
683a085249930e046385b141a55e5d2152dd78b6 | 1,351 | cpp | C++ | PBitmapLibrary/Sample.cpp | bear1704/WindowsProgramming_Portfolio | 83f1d763c73d08b82291aa894ef246558fdf0198 | [
"Apache-2.0"
] | null | null | null | PBitmapLibrary/Sample.cpp | bear1704/WindowsProgramming_Portfolio | 83f1d763c73d08b82291aa894ef246558fdf0198 | [
"Apache-2.0"
] | null | null | null | PBitmapLibrary/Sample.cpp | bear1704/WindowsProgramming_Portfolio | 83f1d763c73d08b82291aa894ef246558fdf0198 | [
"Apache-2.0"
] | null | null | null | #include "Sample.h"
Sample::Sample()
{
}
Sample::~Sample()
{
}
bool Sample::Init()
{
object_background_bitmap_.Init();
object_background_bitmap_.Load(L"../../data/bitmap/Loading800x600.bmp");
PRectObjectStat stat;
stat.position = pPoint(0, 0);
RECT rect = { 0, 0, rectangle_client.right, rectangle_client.bott... | 18.506849 | 98 | 0.695781 | bear1704 |
683a4c91e23d361308f426615c06b1df1389926a | 13,848 | cpp | C++ | Engine/src/core/Quaternion.cpp | katoun/kg_engine | fdcc6ec01b191d07cedf7a8d6c274166e25401a8 | [
"Unlicense"
] | 2 | 2015-04-21T05:36:12.000Z | 2017-04-16T19:31:26.000Z | Engine/src/core/Quaternion.cpp | katoun/kg_engine | fdcc6ec01b191d07cedf7a8d6c274166e25401a8 | [
"Unlicense"
] | null | null | null | Engine/src/core/Quaternion.cpp | katoun/kg_engine | fdcc6ec01b191d07cedf7a8d6c274166e25401a8 | [
"Unlicense"
] | null | null | null | /*
-----------------------------------------------------------------------------
KG game engine (http://katoun.github.com/kg_engine) is made available under the MIT License.
Copyright (c) 2006-2013 Catalin Alexandru Nastase
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software ... | 22.927152 | 104 | 0.578928 | katoun |
969821dddfb585019e6128e8689b6e60984ca4a6 | 1,297 | cpp | C++ | C++/LeetCode/0450.cpp | Nimesh-Srivastava/DSA | db33aa138f0df8ab6015d2e8ec3ddde1c6838848 | [
"MIT"
] | 4 | 2021-08-28T19:16:50.000Z | 2022-03-04T19:46:31.000Z | C++/LeetCode/0450.cpp | Nimesh-Srivastava/DSA | db33aa138f0df8ab6015d2e8ec3ddde1c6838848 | [
"MIT"
] | 8 | 2021-10-29T19:10:51.000Z | 2021-11-03T12:38:00.000Z | C++/LeetCode/0450.cpp | Nimesh-Srivastava/DSA | db33aa138f0df8ab6015d2e8ec3ddde1c6838848 | [
"MIT"
] | 4 | 2021-09-06T05:53:07.000Z | 2021-12-24T10:31:40.000Z | class Solution {
public:
int getVal(TreeNode* root){
if(!root -> right)
return root -> val;
return getVal(root -> right);
}
TreeNode* delNode(TreeNode* root, int key){
if(!root)
return NULL;
if(root -> val == key){
... | 23.581818 | 66 | 0.374711 | Nimesh-Srivastava |
969e602e1eb24f0be93741aa364948d7b904f31e | 413 | cpp | C++ | Leetcode/2114.cpp | prameetu/CP_codes | 41f8cfc188d2e08a8091bc5134247d05ba8a78f5 | [
"MIT"
] | null | null | null | Leetcode/2114.cpp | prameetu/CP_codes | 41f8cfc188d2e08a8091bc5134247d05ba8a78f5 | [
"MIT"
] | null | null | null | Leetcode/2114.cpp | prameetu/CP_codes | 41f8cfc188d2e08a8091bc5134247d05ba8a78f5 | [
"MIT"
] | null | null | null | #include<bits/stdc++.h>
using namespace std;
class Solution {
public:
int mostWordsFound(vector<string>& sentences) {
int ans(0);
for(auto x:sentences)
{
int curr_ans(0);
for(auto words:x)
{
if(words == ' ')
curr_ans++... | 19.666667 | 51 | 0.438257 | prameetu |
969eb2ddcb0a1e56dfcd28c69e81c0c3ef5a9384 | 88,143 | hpp | C++ | utils/alias.hpp | zouxiaoliang/nerv-kubernetes-client-c | 07528948c643270fd757d38edc68da8c9628ee7a | [
"Apache-2.0"
] | null | null | null | utils/alias.hpp | zouxiaoliang/nerv-kubernetes-client-c | 07528948c643270fd757d38edc68da8c9628ee7a | [
"Apache-2.0"
] | null | null | null | utils/alias.hpp | zouxiaoliang/nerv-kubernetes-client-c | 07528948c643270fd757d38edc68da8c9628ee7a | [
"Apache-2.0"
] | null | null | null | #ifndef ALIAS_H
#define ALIAS_H
#define NS_API(type) io_k8s_api_core_##type
#define function_alias(name)
namespace nerv {
namespace k8s {
// core
namespace core {
typedef struct io_k8s_api_core_v1_namespace_t v1_namespace_t;
// io_k8s_api_core_v1_namespace_t
typedef struct io_k8s_api_core_v1_binding_t v1_binding_t;
/... | 66.422758 | 186 | 0.935003 | zouxiaoliang |
96a3b765eb5f7343224730fff1913d50479d4139 | 1,042 | cpp | C++ | 19999/11054.cpp | rmagur1203/acmicpc | 83c4018548e42fc758b3858e8290990701e69e73 | [
"MIT"
] | null | null | null | 19999/11054.cpp | rmagur1203/acmicpc | 83c4018548e42fc758b3858e8290990701e69e73 | [
"MIT"
] | null | null | null | 19999/11054.cpp | rmagur1203/acmicpc | 83c4018548e42fc758b3858e8290990701e69e73 | [
"MIT"
] | 1 | 2022-01-11T05:03:52.000Z | 2022-01-11T05:03:52.000Z | #include <iostream>
#include <algorithm>
#define MAX 1001
using namespace std;
int arr[MAX];
int f_dp[MAX];
int b_dp[MAX];
int f_lis(int k)
{
if (k <= 0)
return 1;
if (f_dp[k] > 0)
return f_dp[k];
int mx = -1;
for (int i = k - 1; i >= 0; i--)
{
if (arr[i] < arr[k])
... | 16.806452 | 49 | 0.415547 | rmagur1203 |
96a55515e63b554e7889792b81ca15583ee212b3 | 1,305 | cc | C++ | 445.Add-Two-Numbers-II/AddNumII.cc | stdbilly/leetcode | 752704ff99c21863bde4c929b7cc4fa18128cf39 | [
"MIT"
] | null | null | null | 445.Add-Two-Numbers-II/AddNumII.cc | stdbilly/leetcode | 752704ff99c21863bde4c929b7cc4fa18128cf39 | [
"MIT"
] | null | null | null | 445.Add-Two-Numbers-II/AddNumII.cc | stdbilly/leetcode | 752704ff99c21863bde4c929b7cc4fa18128cf39 | [
"MIT"
] | null | null | null | #include <stack>
#include "list/list.h"
using std::stack;
class Solution {
public:
ListNode* addTwoNumbers(ListNode* l1, ListNode* l2) {
stack<int> s1, s2;
while (l1) {
s1.push(l1->val);
l1 = l1->next;
}
while (l2) {
s2.push(l2->val);
... | 24.166667 | 57 | 0.468966 | stdbilly |
96a713e91c76935a4ab020d15957b298d7e02cec | 1,190 | hpp | C++ | src/test/cpp/cn/edu/SUSTech/YeCanming/Judge/GTestExtensions.hpp | 2catycm/P_Algorithm_Design_and_Analysis_cpp | d1678d4db6f59a11215a8c790c2852bf9ad852dd | [
"MulanPSL-1.0"
] | null | null | null | src/test/cpp/cn/edu/SUSTech/YeCanming/Judge/GTestExtensions.hpp | 2catycm/P_Algorithm_Design_and_Analysis_cpp | d1678d4db6f59a11215a8c790c2852bf9ad852dd | [
"MulanPSL-1.0"
] | null | null | null | src/test/cpp/cn/edu/SUSTech/YeCanming/Judge/GTestExtensions.hpp | 2catycm/P_Algorithm_Design_and_Analysis_cpp | d1678d4db6f59a11215a8c790c2852bf9ad852dd | [
"MulanPSL-1.0"
] | null | null | null | #include <gtest/gtest.h>
#include <span>
#define EXPECT_MEMEQ(val1, val2, limit) \
if (0 != memcmp(val1, val2, limit)) { \
std::cout << "Expected: " << std::hex << std::uppercase << std::setfill('0'); \
for (co... | 74.375 | 87 | 0.290756 | 2catycm |
96ab59e9195b9969d9f4be59ebe7ab4157bc8a37 | 2,027 | hpp | C++ | src/match.hpp | weibaohui/pipy | 14494f650fecc28410952c4c70f659f7b69b2c6a | [
"BSL-1.0"
] | null | null | null | src/match.hpp | weibaohui/pipy | 14494f650fecc28410952c4c70f659f7b69b2c6a | [
"BSL-1.0"
] | null | null | null | src/match.hpp | weibaohui/pipy | 14494f650fecc28410952c4c70f659f7b69b2c6a | [
"BSL-1.0"
] | null | null | null | /*
* Copyright (c) 2019 by flomesh.io
*
* Unless prior written consent has been obtained from the copyright
* owner, the following shall not be allowed.
*
* 1. The distribution of any source codes, header files, make files,
* or libraries of the software.
*
* 2. Disclosure of any source codes pertaini... | 25.658228 | 77 | 0.693636 | weibaohui |
96bacdbe3160a6594e226f92f48e771148e930cc | 1,772 | cpp | C++ | galaxy/src/galaxy/core/Config.cpp | reworks/rework | 90508252c9a4c77e45a38e7ce63cfd99f533f42b | [
"Apache-2.0"
] | 6 | 2018-07-21T20:37:01.000Z | 2018-10-31T01:49:35.000Z | galaxy/src/galaxy/core/Config.cpp | reworks/rework | 90508252c9a4c77e45a38e7ce63cfd99f533f42b | [
"Apache-2.0"
] | null | null | null | galaxy/src/galaxy/core/Config.cpp | reworks/rework | 90508252c9a4c77e45a38e7ce63cfd99f533f42b | [
"Apache-2.0"
] | null | null | null | ///
/// Config.cpp
/// galaxy
///
/// Refer to LICENSE.txt for more details.
///
#include <fstream>
#include "Config.hpp"
namespace galaxy
{
namespace core
{
Config::Config() noexcept
: m_loaded {false}
{
m_config = "{\"config\":{}}"_json;
}
Config::Config(std::string_view file)
: m_loaded {false... | 16.560748 | 80 | 0.560948 | reworks |
96c032133b7b1c4038487c6ad81795b9b18f9eee | 1,570 | cpp | C++ | src/tests/world_assertions.cpp | fairlight1337/GDAPlanner | c39d4e8fdcb0bbf18ff9e646349161853943dd5e | [
"BSD-2-Clause"
] | null | null | null | src/tests/world_assertions.cpp | fairlight1337/GDAPlanner | c39d4e8fdcb0bbf18ff9e646349161853943dd5e | [
"BSD-2-Clause"
] | null | null | null | src/tests/world_assertions.cpp | fairlight1337/GDAPlanner | c39d4e8fdcb0bbf18ff9e646349161853943dd5e | [
"BSD-2-Clause"
] | null | null | null | #include <iostream>
#include <cstdlib>
#include <string>
#include <gdaplanner/GDAPlanner.h>
using namespace gdaplanner;
int main(__attribute__((unused)) int argc, __attribute__((unused)) char** argv) {
int nReturnvalue = EXIT_FAILURE;
World::Ptr wdWorld = World::create();
Expression exA = Expression::p... | 23.432836 | 83 | 0.576433 | fairlight1337 |
96c19a8b815f0da1e1ea7a54f5aedaf68c587d95 | 2,059 | cpp | C++ | XJ Contests/2021/1.2/T2/me.cpp | jinzhengyu1212/Clovers | 0efbb0d87b5c035e548103409c67914a1f776752 | [
"MIT"
] | null | null | null | XJ Contests/2021/1.2/T2/me.cpp | jinzhengyu1212/Clovers | 0efbb0d87b5c035e548103409c67914a1f776752 | [
"MIT"
] | null | null | null | XJ Contests/2021/1.2/T2/me.cpp | jinzhengyu1212/Clovers | 0efbb0d87b5c035e548103409c67914a1f776752 | [
"MIT"
] | null | null | null | /*
the vast starry sky,
bright for those who chase the light.
*/
#include<bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef pair<int,int> pii;
#define mk make_pair
const int inf=(int)1e9;
const ll INF=(ll)5e18;
const int MOD=998244353;
int _abs(int x){return x<0 ? -x : x;}
int add(int x,int y){x+=y; ret... | 26.063291 | 98 | 0.504614 | jinzhengyu1212 |
96c43e87f29f8126f14efbbf8ceec6a03312e5c2 | 6,625 | cpp | C++ | check/TestFreezeBasis.cpp | chrhansk/HiGHS | 311aa8571925ed23c952687569dbe7207e542e0a | [
"MIT"
] | 3 | 2019-04-17T11:34:07.000Z | 2021-05-21T05:56:42.000Z | check/TestFreezeBasis.cpp | chrhansk/HiGHS | 311aa8571925ed23c952687569dbe7207e542e0a | [
"MIT"
] | 17 | 2020-03-30T19:16:59.000Z | 2020-12-15T01:01:42.000Z | check/TestFreezeBasis.cpp | chrhansk/HiGHS | 311aa8571925ed23c952687569dbe7207e542e0a | [
"MIT"
] | 1 | 2022-02-08T19:30:43.000Z | 2022-02-08T19:30:43.000Z | #include "Highs.h"
#include "catch.hpp"
const double inf = kHighsInf;
const bool dev_run = false;
const double double_equal_tolerance = 1e-5;
TEST_CASE("FreezeBasis", "[highs_test_freeze_basis]") {
std::string filename;
filename = std::string(HIGHS_DIR) + "/check/instances/avgas.mps";
Highs highs;
if (!dev_r... | 40.895062 | 79 | 0.736151 | chrhansk |
96c569ef7d41d75f7e9c2704a8fd5076345ae767 | 3,126 | cpp | C++ | Asdos/Tugas-Latihan/Tgs2_672021224.cpp | DimasAkmall/DDP | f6411aafc799378f99119dd35033047bd1bdb950 | [
"MIT"
] | null | null | null | Asdos/Tugas-Latihan/Tgs2_672021224.cpp | DimasAkmall/DDP | f6411aafc799378f99119dd35033047bd1bdb950 | [
"MIT"
] | null | null | null | Asdos/Tugas-Latihan/Tgs2_672021224.cpp | DimasAkmall/DDP | f6411aafc799378f99119dd35033047bd1bdb950 | [
"MIT"
] | null | null | null | // Dimas Akmal Widi Pradana - 672021224 - DDP F
#include <iostream>
using namespace std;
/*int main(){
int a;
cout << "masukkan a (maks 9): ";
cin >> a;
for (int k = 1; k <= 8*a+8; k++){
cout << " ";
}
for (int i = 1; i <= a-8; i++){
cout << " " << " " << " " <<... | 22.328571 | 76 | 0.27991 | DimasAkmall |
96c946d267f9328e957d6c1dece07f6b38182e56 | 2,870 | cpp | C++ | QtCef/QtCef/main.cpp | fuyanzhi1234/DevelopQt | f4590cca8cde5e8b38ee19d97ea82c43257ec1b3 | [
"MIT"
] | null | null | null | QtCef/QtCef/main.cpp | fuyanzhi1234/DevelopQt | f4590cca8cde5e8b38ee19d97ea82c43257ec1b3 | [
"MIT"
] | null | null | null | QtCef/QtCef/main.cpp | fuyanzhi1234/DevelopQt | f4590cca8cde5e8b38ee19d97ea82c43257ec1b3 | [
"MIT"
] | null | null | null | #include "qtcef.h"
#include <QApplication>
#include <qt_windows.h>
#include "include/base/cef_scoped_ptr.h"
#include "include/cef_command_line.h"
#include "include/cef_sandbox_win.h"
#include "cefsimple/simple_app.h"
#include "include/cef_sandbox_win.h"
#include <QMessageBox>
#include "cefsimple/simple_handler.... | 28.7 | 79 | 0.7 | fuyanzhi1234 |
96cbd824a9526d5c62a48c4144d4fefaa6bda4c5 | 2,786 | cpp | C++ | cpp/virtual/virtual3.cpp | stdbilly/CS_Note | a8a87e135a525d53c283a4c70fb942c9ca59a758 | [
"MIT"
] | 2 | 2020-12-09T09:55:51.000Z | 2021-01-08T11:38:22.000Z | cpp/virtual/virtual3.cpp | stdbilly/CS_Note | a8a87e135a525d53c283a4c70fb942c9ca59a758 | [
"MIT"
] | null | null | null | cpp/virtual/virtual3.cpp | stdbilly/CS_Note | a8a87e135a525d53c283a4c70fb942c9ca59a758 | [
"MIT"
] | null | null | null | #pragma vtordisp(off)
#include <iostream>
using std::cout;
using std::endl;
class Base1 {
public:
Base1() : _iBase1(10) {}
virtual void f() { cout << "Base1::f()" << endl; }
virtual void g() { cout << "Base1::g()" << endl; }
virtual void h() { cout << "Base1::h()" << endl; }
priv... | 19.9 | 67 | 0.507897 | stdbilly |
96cd0fc938ada87d2f809727cb36a2627b0279a3 | 316 | cpp | C++ | src/converter/ExporterOne.cpp | rfrolov/otus_homework_05 | 15e20fb0261c037e4eaaa972734248eb50aba646 | [
"MIT"
] | null | null | null | src/converter/ExporterOne.cpp | rfrolov/otus_homework_05 | 15e20fb0261c037e4eaaa972734248eb50aba646 | [
"MIT"
] | null | null | null | src/converter/ExporterOne.cpp | rfrolov/otus_homework_05 | 15e20fb0261c037e4eaaa972734248eb50aba646 | [
"MIT"
] | null | null | null | #include "../primitives/IPrimitive.h"
#include "../utils/utils.h"
#include "ExporterOne.h"
bool ExporterOne::do_convert(data_t &data) {
if (!fs_.is_open()) { return false; }
fs_ << data.size() << std::endl;
for (auto &serialised_data : data) {
fs_ << serialised_data;
}
return true;
} | 21.066667 | 44 | 0.617089 | rfrolov |
96d3eff9d1a8e3eb52b0ba299d150bd95f8692b9 | 15,716 | cpp | C++ | Math Test/src/mat4_test.cpp | gerrygoo/graficas | 443832dc6820c0a93c8291831109e3248f57f9b0 | [
"MIT"
] | null | null | null | Math Test/src/mat4_test.cpp | gerrygoo/graficas | 443832dc6820c0a93c8291831109e3248f57f9b0 | [
"MIT"
] | null | null | null | Math Test/src/mat4_test.cpp | gerrygoo/graficas | 443832dc6820c0a93c8291831109e3248f57f9b0 | [
"MIT"
] | null | null | null | #include "stdafx.h"
#include "CppUnitTest.h"
#include <cmath>
#include <limits>
#include <locale>
#include <codecvt>
#include "vec4.h"
#include "mat4.h"
using namespace Microsoft::VisualStudio::CppUnitTestFramework;
namespace Microsoft
{
namespace VisualStudio
{
namespace CppUnitTestFramework
{
template<>
... | 44.39548 | 139 | 0.570247 | gerrygoo |
96d4391bfa03cc3db1052b74bd3bd6a7aa9bce5b | 903 | cpp | C++ | selection_sort/main.cpp | sangkyunyoon/learn_algorithms_cpp | 1bfafd37f4f80f6fa7fd9f843e77ddce631f6acb | [
"MIT"
] | null | null | null | selection_sort/main.cpp | sangkyunyoon/learn_algorithms_cpp | 1bfafd37f4f80f6fa7fd9f843e77ddce631f6acb | [
"MIT"
] | null | null | null | selection_sort/main.cpp | sangkyunyoon/learn_algorithms_cpp | 1bfafd37f4f80f6fa7fd9f843e77ddce631f6acb | [
"MIT"
] | null | null | null | //
// Created by Sangkyun Yoon on 3/12/21.
//
#include <iostream>
int main() {
int min, index, temp;
int arr[10] = {1, 10, 5, 8, 7, 6, 4, 3, 2, 9};
//정렬을 해야하는 수 만큼 루프를 돈다.
for (int i = 0; i < 10; ++i) {
//항상 최소값은 가장 큰수보다 큰 값으로 매번 초기화 되어야 한다.
min = 9999;
//정렬 대상을 최소값과 하나씩 비교하면서 ... | 23.153846 | 66 | 0.399779 | sangkyunyoon |
96d5e00f80e2249b7da56aef2b6fe0b20657d7c4 | 8,702 | cc | C++ | src/benchmark/sorting_bench.cc | calvincaulfield/lib_calvin | cecf2d8b9cc7b6a4e7f269d0e94e0b80774fc30b | [
"Apache-2.0"
] | null | null | null | src/benchmark/sorting_bench.cc | calvincaulfield/lib_calvin | cecf2d8b9cc7b6a4e7f269d0e94e0b80774fc30b | [
"Apache-2.0"
] | null | null | null | src/benchmark/sorting_bench.cc | calvincaulfield/lib_calvin | cecf2d8b9cc7b6a4e7f269d0e94e0b80774fc30b | [
"Apache-2.0"
] | null | null | null | #include <utility>
#include <vector>
#include <string>
#include "sorting_bench.h"
#include "sort.h"
#include "sort_test.h"
#include "pdqsort.h"
#include "bench.h"
#include "random.h"
#include "in_place_merge_sort.h"
#include "intro_sort_parallel.h"
#include "merge_sort_parallel.h"
#include "boost/sort/sort.hpp"
std::... | 30.006897 | 107 | 0.714319 | calvincaulfield |
96d86fcf63579188b7a89f507b9ad824af9fab33 | 22,730 | cpp | C++ | NPlan/NPlan/view/NProjectResourceView.cpp | Avens666/NPlan | 726411b053ded26ce6c1b8c280c994d4c1bac71a | [
"Apache-2.0"
] | 16 | 2018-08-30T11:27:14.000Z | 2021-12-17T02:05:45.000Z | NPlan/NPlan/view/NProjectResourceView.cpp | Avens666/NPlan | 726411b053ded26ce6c1b8c280c994d4c1bac71a | [
"Apache-2.0"
] | null | null | null | NPlan/NPlan/view/NProjectResourceView.cpp | Avens666/NPlan | 726411b053ded26ce6c1b8c280c994d4c1bac71a | [
"Apache-2.0"
] | 14 | 2018-08-30T12:13:56.000Z | 2021-02-06T11:07:44.000Z | // File: NProjectResourceView.cpp
// Copyright: Copyright(C) 2013-2017 Wuhan KOTEI Informatics Co., Ltd. All rights reserved.
// Website: http://www.nuiengine.com
// Description: This code is part of NPlan Project (Powered by NUI Engine)
// Comments:
// Rev: 1
// Created: 2018/8/... | 35.682889 | 180 | 0.729916 | Avens666 |
96dbaa699af4505593828a33675e95e9fd705c74 | 12,955 | cpp | C++ | src/cli/test/test_CLI.cpp | pozsa/sarus | 5117a0da8d2171c4bf9ebc6835e0dd6b73812930 | [
"BSD-3-Clause"
] | null | null | null | src/cli/test/test_CLI.cpp | pozsa/sarus | 5117a0da8d2171c4bf9ebc6835e0dd6b73812930 | [
"BSD-3-Clause"
] | null | null | null | src/cli/test/test_CLI.cpp | pozsa/sarus | 5117a0da8d2171c4bf9ebc6835e0dd6b73812930 | [
"BSD-3-Clause"
] | null | null | null | /*
* Sarus
*
* Copyright (c) 2018-2020, ETH Zurich. All rights reserved.
*
* Please, refer to the LICENSE file in the root directory.
* SPDX-License-Identifier: BSD-3-Clause
*
*/
#include <memory>
#include <boost/filesystem.hpp>
#include "common/Utility.hpp"
#include "common/Config.hpp"
#include "common/CLIA... | 41.790323 | 97 | 0.647009 | pozsa |
96e0cf58acfe50d0693960d3dfd0ad346cd27ee5 | 3,599 | cpp | C++ | Base/PLCore/src/File/FileSearchAndroid.cpp | ktotheoz/pixellight | 43a661e762034054b47766d7e38d94baf22d2038 | [
"MIT"
] | 83 | 2015-01-08T15:06:14.000Z | 2021-07-20T17:07:00.000Z | Base/PLCore/src/File/FileSearchAndroid.cpp | PixelLightFoundation/pixellight | 43a661e762034054b47766d7e38d94baf22d2038 | [
"MIT"
] | 27 | 2019-06-18T06:46:07.000Z | 2020-02-02T11:11:28.000Z | Base/PLCore/src/File/FileSearchAndroid.cpp | naetherm/PixelLight | d7666f5b49020334cbb5debbee11030f34cced56 | [
"MIT"
] | 40 | 2015-02-25T18:24:34.000Z | 2021-03-06T09:01:48.000Z | /*********************************************************\
* File: FileSearchAndroid.cpp *
*
* Copyright (C) 2002-2013 The PixelLight Team (http://www.pixellight.org/)
*
* This file is part of PixelLight.
*
* Permission is hereby granted, free of charge, to any person obtaining a co... | 35.633663 | 136 | 0.548486 | ktotheoz |
96e4f68f9e2d37940d54a68cce1ac7d4c0426ac7 | 3,844 | cpp | C++ | Model/ModelGrid.cpp | robbor78/OpenGLTetris3D | b388cbdc2eda9fcc9a073f8aa857b0912819e695 | [
"Apache-2.0"
] | null | null | null | Model/ModelGrid.cpp | robbor78/OpenGLTetris3D | b388cbdc2eda9fcc9a073f8aa857b0912819e695 | [
"Apache-2.0"
] | null | null | null | Model/ModelGrid.cpp | robbor78/OpenGLTetris3D | b388cbdc2eda9fcc9a073f8aa857b0912819e695 | [
"Apache-2.0"
] | null | null | null | /*
* ModelGrid.cpp
*
* Created on: 22 Dec 2013
* Author: bert
*/
#include "ModelGrid.h"
namespace Tetris3D {
ModelGrid::ModelGrid(OpenGLProgram* program) :
AbstractModelPiece(program) {
well = 0;
vbo = -1;
}
ModelGrid::~ModelGrid() {
program = 0;
well = 0;
glBindBuffer(GL_ARRAY_BUFFER, 0);
glDele... | 30.752 | 127 | 0.588189 | robbor78 |
96e7bbcce9ad7f8b0208c8cd243525d9f87d612d | 404 | hpp | C++ | src/arithmetic.hpp | UtopiaLang/src | be8904f978f3ea0d92afb72895cc2bb052cf4107 | [
"Unlicense"
] | 7 | 2021-03-01T17:24:45.000Z | 2021-10-01T02:28:25.000Z | src/arithmetic.hpp | UtopiaLang/Utopia | be8904f978f3ea0d92afb72895cc2bb052cf4107 | [
"Unlicense"
] | 6 | 2021-02-27T18:25:45.000Z | 2021-09-10T21:27:39.000Z | src/arithmetic.hpp | UtopiaLang/src | be8904f978f3ea0d92afb72895cc2bb052cf4107 | [
"Unlicense"
] | null | null | null | #pragma once
namespace Utopia
{
using arithmetic_func_t = long long(*)(const long long, const long long);
long long arithmetic_plus(const long long left, const long long right);
long long arithmetic_minus(const long long left, const long long right);
long long arithmetic_multiply(const long long left, const long ... | 33.666667 | 76 | 0.779703 | UtopiaLang |
96e8e95e2fad0184250fd1bdeebe56d670ac8932 | 6,795 | cc | C++ | selfdrive/can/dbc_out/cadillac_ct6_chassis.cc | ziggysnorkel/openpilot | 695859fb49976c2ef0a6a4a73d30d5cef2ad1945 | [
"MIT"
] | 1 | 2021-03-05T18:09:52.000Z | 2021-03-05T18:09:52.000Z | selfdrive/can/dbc_out/cadillac_ct6_chassis.cc | ziggysnorkel/openpilot | 695859fb49976c2ef0a6a4a73d30d5cef2ad1945 | [
"MIT"
] | null | null | null | selfdrive/can/dbc_out/cadillac_ct6_chassis.cc | ziggysnorkel/openpilot | 695859fb49976c2ef0a6a4a73d30d5cef2ad1945 | [
"MIT"
] | null | null | null | #include <cstdint>
#include "common.h"
namespace {
const Signal sigs_338[] = {
{
.name = "LKASteeringCmd",
.b1 = 2,
.b2 = 14,
.bo = 48,
.is_signed = true,
.factor = 1,
.offset = 0,
.is_little_endian = false,
.type = SignalType::DEFAULT,
},
{
.na... | 19.810496 | 51 | 0.474467 | ziggysnorkel |
96eb5448be918c54a3a35b49c7a9d9632a0e59d7 | 26,330 | cpp | C++ | test/test_manifest_tsv.cpp | rkimballn1/aeon-merged | 062136993c0f326c95caaddf6118a84789e206b1 | [
"MIT",
"BSL-1.0",
"Apache-2.0",
"BSD-3-Clause"
] | 63 | 2016-08-14T07:19:45.000Z | 2021-09-21T15:57:08.000Z | test/test_manifest_tsv.cpp | NervanaSystems/aeon | a63b9f8d75311b8d9e9b0be58a066e749aeb81d4 | [
"MIT",
"BSL-1.0",
"Apache-2.0",
"BSD-3-Clause"
] | 64 | 2016-08-08T18:35:19.000Z | 2022-03-11T23:43:51.000Z | test/test_manifest_tsv.cpp | rkimballn1/aeon-merged | 062136993c0f326c95caaddf6118a84789e206b1 | [
"MIT",
"BSL-1.0",
"Apache-2.0",
"BSD-3-Clause"
] | 44 | 2016-08-10T01:20:52.000Z | 2020-07-01T19:47:48.000Z | /*******************************************************************************
* Copyright 2016-2018 Intel Corporation
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apa... | 32.070646 | 100 | 0.558033 | rkimballn1 |
96f6c44ea96b4a9d526f8476396dfd1d359e8e9d | 3,758 | hpp | C++ | gtfo/algorithm/search_n.hpp | TMorozovsky/Generic_Tools_for_Frequent_Operations | bbc6804e1259f53a84375316cddeb9b648359c28 | [
"MIT"
] | 1 | 2016-01-09T09:57:55.000Z | 2016-01-09T09:57:55.000Z | gtfo/algorithm/search_n.hpp | TMorozovsky/Generic_Tools_for_Frequent_Operations | bbc6804e1259f53a84375316cddeb9b648359c28 | [
"MIT"
] | null | null | null | gtfo/algorithm/search_n.hpp | TMorozovsky/Generic_Tools_for_Frequent_Operations | bbc6804e1259f53a84375316cddeb9b648359c28 | [
"MIT"
] | null | null | null | #ifndef GTFO_FILE_INCLUDED_ALGORITHM_SEARCH_N_HPP
#define GTFO_FILE_INCLUDED_ALGORITHM_SEARCH_N_HPP
/*
* Defines the following overloads:
* search_n(ForwardIterator, ForwardIterator, Size, const Value &);
* search_n(ForwardIterator, ForwardIterator, Size, const Value &, BinaryPredicate);
... | 33.553571 | 97 | 0.552155 | TMorozovsky |
96fab864cfa6183c048e07f09223ff4be016dfb0 | 3,191 | cpp | C++ | src/mfx/ControlledParam.cpp | mikelange49/pedalevite | a81bd8a6119c5920995ec91b9f70e11e9379580e | [
"WTFPL"
] | 69 | 2017-01-17T13:17:31.000Z | 2022-03-01T14:56:32.000Z | src/mfx/ControlledParam.cpp | mikelange49/pedalevite | a81bd8a6119c5920995ec91b9f70e11e9379580e | [
"WTFPL"
] | 1 | 2020-11-03T14:52:45.000Z | 2020-12-01T20:31:15.000Z | src/mfx/ControlledParam.cpp | mikelange49/pedalevite | a81bd8a6119c5920995ec91b9f70e11e9379580e | [
"WTFPL"
] | 8 | 2017-02-08T13:30:42.000Z | 2021-12-09T08:43:09.000Z | /*****************************************************************************
ControlledParam.cpp
Author: Laurent de Soras, 2016
--- Legal stuff ---
This program is free software. It comes without any warranty, to
the extent permitted by applicable law. You can redistribute it
and/or modify it under... | 20.856209 | 84 | 0.579442 | mikelange49 |
96fcd45b14a5c76cdefc0fec95107889abdad464 | 429 | cpp | C++ | Pbinfo/Prime.cpp | Al3x76/cpp | 08a0977d777e63e0d36d87fcdea777de154697b7 | [
"MIT"
] | 7 | 2019-01-06T19:10:14.000Z | 2021-10-16T06:41:23.000Z | Pbinfo/Prime.cpp | Al3x76/cpp | 08a0977d777e63e0d36d87fcdea777de154697b7 | [
"MIT"
] | null | null | null | Pbinfo/Prime.cpp | Al3x76/cpp | 08a0977d777e63e0d36d87fcdea777de154697b7 | [
"MIT"
] | 6 | 2019-01-06T19:17:30.000Z | 2020-02-12T22:29:17.000Z | #include <fstream>
using namespace std;
ifstream cin("prime.in");
ofstream cout("prime.out");
bool prim(int n){
if(n==0 || n==1) return 0;
if(n==2) return 1;
if(n%2==0) return 0;
for(int d=3; d*d<=n; d=d+2)
if(n%d==0) return 0;
return 1;
}
int main()
{
int n, a[1000];
cin>>n;
... | 14.793103 | 39 | 0.482517 | Al3x76 |
8c102b026fa270923c5e1b5b590a34376b49cedd | 8,748 | cc | C++ | src/s3_cmds/zgw_s3_completemultiupload.cc | baotiao/zeppelin-gateway | bff8d8e160422322e306dfc1dc1768b29001a8c0 | [
"Apache-2.0"
] | 20 | 2017-05-04T00:49:55.000Z | 2022-03-27T10:06:02.000Z | src/s3_cmds/zgw_s3_completemultiupload.cc | baotiao/zeppelin-gateway | bff8d8e160422322e306dfc1dc1768b29001a8c0 | [
"Apache-2.0"
] | null | null | null | src/s3_cmds/zgw_s3_completemultiupload.cc | baotiao/zeppelin-gateway | bff8d8e160422322e306dfc1dc1768b29001a8c0 | [
"Apache-2.0"
] | 16 | 2017-04-11T08:10:04.000Z | 2020-06-16T02:49:48.000Z | #include "src/s3_cmds/zgw_s3_object.h"
#include <algorithm>
#include "slash/include/env.h"
#include "src/s3_cmds/zgw_s3_xml.h"
#include "src/zgw_utils.h"
bool CompleteMultiUploadCmd::DoInitial() {
http_request_xml_.clear();
http_response_xml_.clear();
received_parts_info_.clear();
upload_id_ = query_params_.... | 36 | 94 | 0.569845 | baotiao |
8c147229939933595fc2b15fa4eadcc02734e81b | 5,164 | cpp | C++ | engine/samples/ModelLoading/src/MainState.cpp | Arthapz/StormKit | 7c8dead874734d04b97776287b25bf2ebe9be617 | [
"MIT"
] | 17 | 2019-02-12T14:40:06.000Z | 2021-12-21T12:54:17.000Z | engine/samples/ModelLoading/src/MainState.cpp | Arthapz/StormKit | 7c8dead874734d04b97776287b25bf2ebe9be617 | [
"MIT"
] | null | null | null | engine/samples/ModelLoading/src/MainState.cpp | Arthapz/StormKit | 7c8dead874734d04b97776287b25bf2ebe9be617 | [
"MIT"
] | 2 | 2019-02-21T10:07:42.000Z | 2020-05-08T19:49:10.000Z | #include "MainState.hpp"
#include "Log.hpp"
/////////// - StormKit::entities - ///////////
#include <storm/entities/MessageBus.hpp>
/////////// - StormKit::render - ///////////
#include <storm/render/core/Device.hpp>
#include <storm/render/core/PhysicalDevice.hpp>
#include <storm/render/core/Surface.hpp>
///////////... | 33.532468 | 95 | 0.595275 | Arthapz |
22c49f58b40dfb1128231c78099a753b486200b9 | 1,143 | cpp | C++ | atreyu/main.cpp | AiRT-Software/ocs | 2d6056a1260ac9ac75cfd507fb1a77db3b26298a | [
"BSD-4-Clause"
] | 1 | 2019-02-07T12:24:51.000Z | 2019-02-07T12:24:51.000Z | atreyu/main.cpp | AiRT-Software/ocs | 2d6056a1260ac9ac75cfd507fb1a77db3b26298a | [
"BSD-4-Clause"
] | null | null | null | atreyu/main.cpp | AiRT-Software/ocs | 2d6056a1260ac9ac75cfd507fb1a77db3b26298a | [
"BSD-4-Clause"
] | 1 | 2020-07-06T10:33:10.000Z | 2020-07-06T10:33:10.000Z |
/*
AiRT Software
http://www.airt.eu
This project has received funding from the European Union's Horizon 2020 research
and innovation programme under grant agreement No 732433.
Copyright Universitat Politecnica de Valencia 2017-2018.
All rights reserved.
Instituto de Automática e Informática Industrial (ai2)
http... | 19.372881 | 81 | 0.55818 | AiRT-Software |
22c557929df89e8dc17f778d87fdd7bcc1010935 | 289 | cpp | C++ | tsc/src/SkyObject/Earth.cpp | jbangelo/tsc | 3251f81a27c7dbee043736e0f579f5d2a9e991a1 | [
"MIT"
] | 1 | 2016-11-29T01:31:26.000Z | 2016-11-29T01:31:26.000Z | tsc/src/SkyObject/Earth.cpp | jbangelo/tsc | 3251f81a27c7dbee043736e0f579f5d2a9e991a1 | [
"MIT"
] | null | null | null | tsc/src/SkyObject/Earth.cpp | jbangelo/tsc | 3251f81a27c7dbee043736e0f579f5d2a9e991a1 | [
"MIT"
] | null | null | null | /*
* Earth.cpp
*
* Created on: Nov 21, 2015
* Author: ben
*/
#include "SkyObject/Earth.h"
using tsc::SkyObject::Earth;
using tsc::Utils::IDataStorage;
Earth::Earth(IDataStorage& dataStorage) :
Planet(EARTH, dataStorage, *this)
{
_isEarth = true;
}
Earth::~Earth()
{
}
| 11.56 | 41 | 0.640138 | jbangelo |
22c60e356e68db2412b1696f5d97877bcf0148df | 9,831 | cpp | C++ | trace_server/3rd/qwt/qwt_spline_cardinal.cpp | mojmir-svoboda/DbgToolkit | 590887987d0856032be906068a3103b6ce31d21c | [
"MIT"
] | null | null | null | trace_server/3rd/qwt/qwt_spline_cardinal.cpp | mojmir-svoboda/DbgToolkit | 590887987d0856032be906068a3103b6ce31d21c | [
"MIT"
] | null | null | null | trace_server/3rd/qwt/qwt_spline_cardinal.cpp | mojmir-svoboda/DbgToolkit | 590887987d0856032be906068a3103b6ce31d21c | [
"MIT"
] | null | null | null | /* -*- mode: C++ ; c-file-style: "stroustrup" -*- *****************************
* Qwt Widget Library
* Copyright (C) 1997 Josef Wilgen
* Copyright (C) 2002 Uwe Rathmann
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the Qwt License, Version 1.0
**************... | 27.157459 | 87 | 0.551521 | mojmir-svoboda |
22c62abcae296cc143d5e364ae8c021641d9991e | 982 | cpp | C++ | Shared/Src/Shin/Vertex/TextureVertex.cpp | sindharta/vulkan-sandbox | 45ef4be936273723b0d8f84a7396293016e4254b | [
"Apache-2.0"
] | null | null | null | Shared/Src/Shin/Vertex/TextureVertex.cpp | sindharta/vulkan-sandbox | 45ef4be936273723b0d8f84a7396293016e4254b | [
"Apache-2.0"
] | null | null | null | Shared/Src/Shin/Vertex/TextureVertex.cpp | sindharta/vulkan-sandbox | 45ef4be936273723b0d8f84a7396293016e4254b | [
"Apache-2.0"
] | 1 | 2021-06-15T06:15:24.000Z | 2021-06-15T06:15:24.000Z | #include "TextureVertex.h"
//---------------------------------------------------------------------------------------------------------------------
const VkVertexInputBindingDescription* TextureVertex::GetBindingDescription() {
static VkVertexInputBindingDescription bindingDescription = {
0, sizeof(Te... | 39.28 | 119 | 0.564155 | sindharta |
22c7cbbf15e6ff0d998153c996df2a85b8060ed5 | 2,202 | cpp | C++ | source/parser/interp.cpp | zhiayang/peirce-alpha | 49931a234ba173ed7ea4bdcca9949f28d64d7b4f | [
"Apache-2.0"
] | 1 | 2021-05-03T22:51:13.000Z | 2021-05-03T22:51:13.000Z | source/parser/interp.cpp | zhiayang/peirce-alpha | 49931a234ba173ed7ea4bdcca9949f28d64d7b4f | [
"Apache-2.0"
] | 1 | 2021-05-03T22:52:59.000Z | 2021-05-10T15:31:26.000Z | source/parser/interp.cpp | zhiayang/peirce-alpha | 49931a234ba173ed7ea4bdcca9949f28d64d7b4f | [
"Apache-2.0"
] | null | null | null | // interp.cpp
// Copyright (c) 2021, zhiayang
// Licensed under the Apache License Version 2.0.
#include "ast.h"
namespace ast
{
Expr* Var::evaluate(const std::unordered_map<std::string, bool>& syms) const
{
if(auto it = syms.find(this->name); it != syms.end())
return new Lit(it->second);
return new Var(thi... | 22.02 | 86 | 0.631698 | zhiayang |
22c857a309705824486a47aba5a2571c3bc1f99d | 748 | cpp | C++ | Algorithms/LC/cpp/0520 Detect Capital/LC0520.cpp | tjzhym/LeetCode-solution | 06bd35bae619caaf8153b81849dae9dcc7bc9491 | [
"MIT"
] | null | null | null | Algorithms/LC/cpp/0520 Detect Capital/LC0520.cpp | tjzhym/LeetCode-solution | 06bd35bae619caaf8153b81849dae9dcc7bc9491 | [
"MIT"
] | null | null | null | Algorithms/LC/cpp/0520 Detect Capital/LC0520.cpp | tjzhym/LeetCode-solution | 06bd35bae619caaf8153b81849dae9dcc7bc9491 | [
"MIT"
] | null | null | null | // Problem : https://leetcode.com/problems/detect-capital/
// Solution: https://github.com/tjzhym/LeetCode-solution
// Author : zhym (tjzhym)
// Date : 2021-11-13
#include <string>
using namespace std;
class Solution {
public:
bool detectCapitalUse(string word) {
if (islower(word[0]) && ... | 22.666667 | 70 | 0.529412 | tjzhym |
22d1eb53c0a65998647ccedf5f8eed35fadb14c4 | 10,789 | hpp | C++ | src/Evolution/Systems/Cce/OptionTags.hpp | desperadoshi/spectre | b61c12dce108a98a875a1e9476e5630bea634119 | [
"MIT"
] | null | null | null | src/Evolution/Systems/Cce/OptionTags.hpp | desperadoshi/spectre | b61c12dce108a98a875a1e9476e5630bea634119 | [
"MIT"
] | null | null | null | src/Evolution/Systems/Cce/OptionTags.hpp | desperadoshi/spectre | b61c12dce108a98a875a1e9476e5630bea634119 | [
"MIT"
] | null | null | null | // Distributed under the MIT License.
// See LICENSE.txt for details.
#pragma once
#include <cstddef>
#include <limits>
#include "DataStructures/DataBox/Tag.hpp"
#include "Evolution/Systems/Cce/Initialize/InitializeJ.hpp"
#include "Evolution/Systems/Cce/InterfaceManagers/GhInterfaceManager.hpp"
#include "Evolution/S... | 30.91404 | 80 | 0.736769 | desperadoshi |
22d2f10d921c9f1cd7ca1c6742ea221a46a9fb3d | 2,809 | cc | C++ | graph-tool-2.27/src/graph/topology/graph_similarity.cc | Znigneering/CSCI-3154 | bc318efc73d2a80025b98f5b3e4f7e4819e952e4 | [
"MIT"
] | null | null | null | graph-tool-2.27/src/graph/topology/graph_similarity.cc | Znigneering/CSCI-3154 | bc318efc73d2a80025b98f5b3e4f7e4819e952e4 | [
"MIT"
] | null | null | null | graph-tool-2.27/src/graph/topology/graph_similarity.cc | Znigneering/CSCI-3154 | bc318efc73d2a80025b98f5b3e4f7e4819e952e4 | [
"MIT"
] | null | null | null | // graph-tool -- a general graph modification and manipulation thingy
//
// Copyright (C) 2006-2018 Tiago de Paula Peixoto <tiago@skewed.de>
//
// This program is free software; you can redistribute it and/or
// modify it under the terms of the GNU General Public License
// as published by the Free Software Foundation;... | 33.440476 | 94 | 0.655037 | Znigneering |
22d39c9953c594931b7016a1f9ca7edcfb004c79 | 717 | cpp | C++ | cc150/2.1.cpp | WIZARD-CXY/pl | 22b7f5d81804f4e333d3cff6433364ba1a0ac7ef | [
"Apache-2.0"
] | 1 | 2016-01-20T08:26:34.000Z | 2016-01-20T08:26:34.000Z | cc150/2.1.cpp | WIZARD-CXY/pl | 22b7f5d81804f4e333d3cff6433364ba1a0ac7ef | [
"Apache-2.0"
] | 1 | 2015-10-21T05:38:17.000Z | 2015-11-02T07:42:55.000Z | cc150/2.1.cpp | WIZARD-CXY/pl | 22b7f5d81804f4e333d3cff6433364ba1a0ac7ef | [
"Apache-2.0"
] | null | null | null | #include <iostream>
using namespace std;
struct ListNode
{
int val;
ListNode *next;
ListNode(int v):val(v),next(NULL){}
};
void deleteDup(ListNode *head){
if(head==NULL){
return;
}
ListNode *cur=head;
while(cur){
ListNode *run=cur;
while(run->next){
if(run->next->val==cur->val){
//delete run->ne... | 15.586957 | 44 | 0.6053 | WIZARD-CXY |
22d70eeca2ffd57dcd8d43633cb8f6a6d6b810d7 | 1,604 | cpp | C++ | Applied/CCore/src/AbstFileToMem.cpp | SergeyStrukov/CCore-4-xx | 5faeadd50a24a7dbe18ffff8efe5f49212588637 | [
"BSL-1.0"
] | null | null | null | Applied/CCore/src/AbstFileToMem.cpp | SergeyStrukov/CCore-4-xx | 5faeadd50a24a7dbe18ffff8efe5f49212588637 | [
"BSL-1.0"
] | null | null | null | Applied/CCore/src/AbstFileToMem.cpp | SergeyStrukov/CCore-4-xx | 5faeadd50a24a7dbe18ffff8efe5f49212588637 | [
"BSL-1.0"
] | null | null | null | /* AbstFileToMem.cpp */
//----------------------------------------------------------------------------------------
//
// Project: CCore 4.01
//
// Tag: Applied
//
// License: Boost Software License - Version 1.0 - August 17th, 2003
//
// see http://www.boost.org/LICENSE_1_0.txt or the local copy
//
// C... | 20.303797 | 131 | 0.591022 | SergeyStrukov |
22d9b729ef4dbfb5a190fb699a03d6e75c3bf331 | 131 | hxx | C++ | src/Providers/UNIXProviders/RangeOfIPAddresses/UNIX_RangeOfIPAddresses_STUB.hxx | brunolauze/openpegasus-providers-old | b00f1aad575bae144b8538bf57ba5fd5582a4ec7 | [
"MIT"
] | 1 | 2020-10-12T09:00:09.000Z | 2020-10-12T09:00:09.000Z | src/Providers/UNIXProviders/RangeOfIPAddresses/UNIX_RangeOfIPAddresses_STUB.hxx | brunolauze/openpegasus-providers-old | b00f1aad575bae144b8538bf57ba5fd5582a4ec7 | [
"MIT"
] | null | null | null | src/Providers/UNIXProviders/RangeOfIPAddresses/UNIX_RangeOfIPAddresses_STUB.hxx | brunolauze/openpegasus-providers-old | b00f1aad575bae144b8538bf57ba5fd5582a4ec7 | [
"MIT"
] | null | null | null | #ifdef PEGASUS_OS_STUB
#ifndef __UNIX_RANGEOFIPADDRESSES_PRIVATE_H
#define __UNIX_RANGEOFIPADDRESSES_PRIVATE_H
#endif
#endif
| 10.916667 | 43 | 0.854962 | brunolauze |
22dd38870431ad1cab052d3fa095b8f60f7aaf24 | 480 | cpp | C++ | URI/2143-the-return-of-radar.cpp | SusmoySenGupta/online-judge-solutions | 8735a1bc71a05dc46255664c3ec6f47f042bfa6c | [
"MIT"
] | null | null | null | URI/2143-the-return-of-radar.cpp | SusmoySenGupta/online-judge-solutions | 8735a1bc71a05dc46255664c3ec6f47f042bfa6c | [
"MIT"
] | null | null | null | URI/2143-the-return-of-radar.cpp | SusmoySenGupta/online-judge-solutions | 8735a1bc71a05dc46255664c3ec6f47f042bfa6c | [
"MIT"
] | null | null | null | /*
problem no: 2143
problem name: The Return of Radar
problem link: https://www.urionlinejudge.com.br/judge/en/problems/view/2143
author: Susmoy Sen Gupta
Status: __Solved__
Solved at: 6/24/21, 12:35:28 AM
*/
#include <iostream>
using namespace std;
int main()
{
int t, x;
while(1)
{
cin >> t;
if(t... | 12.631579 | 76 | 0.547917 | SusmoySenGupta |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.