hexsha stringlengths 40 40 | size int64 7 1.05M | ext stringclasses 13
values | lang stringclasses 1
value | max_stars_repo_path stringlengths 4 269 | max_stars_repo_name stringlengths 5 108 | max_stars_repo_head_hexsha stringlengths 40 40 | max_stars_repo_licenses listlengths 1 9 | max_stars_count int64 1 191k ⌀ | max_stars_repo_stars_event_min_datetime stringlengths 24 24 ⌀ | max_stars_repo_stars_event_max_datetime stringlengths 24 24 ⌀ | max_issues_repo_path stringlengths 4 269 | max_issues_repo_name stringlengths 5 116 | max_issues_repo_head_hexsha stringlengths 40 40 | max_issues_repo_licenses listlengths 1 9 | max_issues_count int64 1 67k ⌀ | max_issues_repo_issues_event_min_datetime stringlengths 24 24 ⌀ | max_issues_repo_issues_event_max_datetime stringlengths 24 24 ⌀ | max_forks_repo_path stringlengths 4 269 | max_forks_repo_name stringlengths 5 116 | max_forks_repo_head_hexsha stringlengths 40 40 | max_forks_repo_licenses listlengths 1 9 | max_forks_count int64 1 105k ⌀ | max_forks_repo_forks_event_min_datetime stringlengths 24 24 ⌀ | max_forks_repo_forks_event_max_datetime stringlengths 24 24 ⌀ | content stringlengths 7 1.05M | avg_line_length float64 1.21 330k | max_line_length int64 6 990k | alphanum_fraction float64 0.01 0.99 | author_id stringlengths 2 40 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
cc4c1e622103d64a277e9407f9a7896871adc7de | 7,071 | cpp | C++ | environment_wrapper/EnvironmentWrapper.cpp | gkhaos/ICC | 20bcbcbfb25e06691f0408bae93426ecc8b0d4ed | [
"Apache-2.0"
] | 46 | 2020-03-16T14:18:59.000Z | 2021-12-14T14:11:41.000Z | environment_wrapper/EnvironmentWrapper.cpp | gkhaos/ICC | 20bcbcbfb25e06691f0408bae93426ecc8b0d4ed | [
"Apache-2.0"
] | 5 | 2020-06-19T10:44:57.000Z | 2021-01-07T15:10:25.000Z | environment_wrapper/EnvironmentWrapper.cpp | gkhaos/ICC | 20bcbcbfb25e06691f0408bae93426ecc8b0d4ed | [
"Apache-2.0"
] | 7 | 2020-03-18T18:11:14.000Z | 2021-02-17T01:05:07.000Z | #include "EnvironmentWrapper.h"
#include <omp.h>
#include <iostream>
#include "dart/dart.hpp"
#include "Utils.h"
#include "Configurations.h"
EnvironmentWrapper::
EnvironmentWrapper(std::string configuration_filepath, int num_slaves)
{
ICC::Configurations::instance().LoadConfigurations(configuration_filepath);
thi... | 25.074468 | 123 | 0.726347 | gkhaos |
cc4d57af26e28ae0b6b38778af047c3a67388d3f | 83,476 | cc | C++ | optickscore/OpticksEvent.cc | hanswenzel/opticks | b75b5929b6cf36a5eedeffb3031af2920f75f9f0 | [
"Apache-2.0"
] | 11 | 2020-07-05T02:39:32.000Z | 2022-03-20T18:52:44.000Z | optickscore/OpticksEvent.cc | hanswenzel/opticks | b75b5929b6cf36a5eedeffb3031af2920f75f9f0 | [
"Apache-2.0"
] | null | null | null | optickscore/OpticksEvent.cc | hanswenzel/opticks | b75b5929b6cf36a5eedeffb3031af2920f75f9f0 | [
"Apache-2.0"
] | 4 | 2020-09-03T20:36:32.000Z | 2022-01-19T07:42:21.000Z | /*
* Copyright (c) 2019 Opticks Team. All Rights Reserved.
*
* This file is part of Opticks
* (see https://bitbucket.org/simoncblyth/opticks).
*
* 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 ... | 28.153794 | 160 | 0.63447 | hanswenzel |
cc508af3a437ec839f10c521e777ae8d60c6ddc7 | 20,940 | cpp | C++ | Projects/mo_graphics/callbacks_binded.cpp | Neill3d/MoPlugs | 84efea03e045f820f3dc132c1a60a779fc5e34fc | [
"BSD-3-Clause"
] | 23 | 2017-10-20T07:01:18.000Z | 2022-02-25T08:46:07.000Z | Projects/mo_graphics/callbacks_binded.cpp | droidoid/MoPlugs | fce52e6469408e32e94af8ac8a303840bc956e53 | [
"BSD-3-Clause"
] | 1 | 2019-11-08T04:03:38.000Z | 2019-11-10T10:16:00.000Z | Projects/mo_graphics/callbacks_binded.cpp | droidoid/MoPlugs | fce52e6469408e32e94af8ac8a303840bc956e53 | [
"BSD-3-Clause"
] | 5 | 2017-12-03T20:43:27.000Z | 2020-01-22T16:54:13.000Z |
//////////////////////////////////////////////////////////////////////////////////////////////////
//
// file: callbacks_binded.h
//
// Author Sergey Solokhin (Neill3d)
//
// GitHub page - https://github.com/Neill3d/MoPlugs
// Licensed under BSD 3-Clause - https://github.com/Neill3d/MoPlugs/blob/master/LICENSE
//
////... | 26.641221 | 153 | 0.70745 | Neill3d |
cc50edbbb18ed86eca9e9afe840b6e7d08af8473 | 2,403 | cpp | C++ | 3]. Competitive Programming/05]. HackerEarth/1]. Practice/5]. Code Monk Series/06]. Check Point - 1/Little Monk and Balanced Parentheses.cpp | Utqrsh04/The-Complete-FAANG-Preparation | a0a4a6ef8768d047f4c2d7b8553732364a26e08e | [
"MIT"
] | 6,969 | 2021-05-29T11:38:30.000Z | 2022-03-31T19:31:49.000Z | 3]. Competitive Programming/05]. HackerEarth/1]. Practice/5]. Code Monk Series/06]. Check Point - 1/Little Monk and Balanced Parentheses.cpp | thisisbillall/The-Complete-FAANG-Preparation | b0c761e2ceb08c92c3b62d7c00b6e8835653cb6e | [
"MIT"
] | 75 | 2021-06-15T07:59:43.000Z | 2022-02-22T14:21:52.000Z | 3]. Competitive Programming/05]. HackerEarth/1]. Practice/5]. Code Monk Series/06]. Check Point - 1/Little Monk and Balanced Parentheses.cpp | thisisbillall/The-Complete-FAANG-Preparation | b0c761e2ceb08c92c3b62d7c00b6e8835653cb6e | [
"MIT"
] | 1,524 | 2021-05-29T16:03:36.000Z | 2022-03-31T17:46:13.000Z |
/*
Solution by Rahul Surana
***********************************************************
Given an array of positive and negative integers, denoting different types of parentheses.
The positive numbers xi denotes opening parentheses of type xi and negative number -xi denotes closing parentheses of type xi.... | 30.417722 | 149 | 0.523096 | Utqrsh04 |
cc546e5155e60885bab5412fe212be512930dd84 | 428 | cpp | C++ | COS1511/Part2/Lesson11/a.cpp | GalliWare/UNISA-studies | 32bab94930b176c4dfe943439781ef102896fab5 | [
"Unlicense"
] | null | null | null | COS1511/Part2/Lesson11/a.cpp | GalliWare/UNISA-studies | 32bab94930b176c4dfe943439781ef102896fab5 | [
"Unlicense"
] | null | null | null | COS1511/Part2/Lesson11/a.cpp | GalliWare/UNISA-studies | 32bab94930b176c4dfe943439781ef102896fab5 | [
"Unlicense"
] | null | null | null | #include <iostream>
using namespace std;
int main()
{
// set constants
const int LOWEST_NUMBER = 10, LARGEST_NUMBER = 20;
// set variables
int number;
bool loop = true;
// as we set loop we can start the loop
while (loop)
{
cout << "Please provide number between 10 and 20: ";
cin >> number;
... | 17.12 | 58 | 0.614486 | GalliWare |
cc57d9e33d0a16a25da90bdd209d1bfb0b63bb8e | 1,843 | cpp | C++ | PAT-A/PATA1114_2.cpp | GRAYCN/Algorithm-notebook | 04fa7b759a797fb47e11bcdd1f8cc7bef297578c | [
"Apache-2.0"
] | 1 | 2019-07-06T10:40:28.000Z | 2019-07-06T10:40:28.000Z | PAT-A/PATA1114_2.cpp | GRAYCN/Algorithm-notebook | 04fa7b759a797fb47e11bcdd1f8cc7bef297578c | [
"Apache-2.0"
] | null | null | null | PAT-A/PATA1114_2.cpp | GRAYCN/Algorithm-notebook | 04fa7b759a797fb47e11bcdd1f8cc7bef297578c | [
"Apache-2.0"
] | null | null | null | //PATA1114_2
//UFS
#include<iostream>
#include<cstdio>
#include<algorithm>
using namespace std;
#define maxn 1005
#define maxm 10005
struct People{
int id,fid,mid,num,area;
int cid[8];
}peo[maxn];
struct Answer{
int id;
double num,area;
int people;
bool flag;
}ans[maxm];
bool visit[maxm];
int father[maxm];
in... | 16.908257 | 79 | 0.568095 | GRAYCN |
cc594c7fe0ac6baec44374aaa2b6c78069fa0d01 | 1,402 | cc | C++ | source/common/rds/rds_route_config_provider_impl.cc | fishy/envoy | 2757eb9eb0faece7b2779f7c1e21953b31b836f4 | [
"Apache-2.0"
] | 1 | 2022-03-02T14:23:12.000Z | 2022-03-02T14:23:12.000Z | source/common/rds/rds_route_config_provider_impl.cc | fishy/envoy | 2757eb9eb0faece7b2779f7c1e21953b31b836f4 | [
"Apache-2.0"
] | 153 | 2021-10-04T04:32:48.000Z | 2022-03-31T04:22:40.000Z | source/common/rds/rds_route_config_provider_impl.cc | fishy/envoy | 2757eb9eb0faece7b2779f7c1e21953b31b836f4 | [
"Apache-2.0"
] | 1 | 2021-12-14T02:39:44.000Z | 2021-12-14T02:39:44.000Z | #include "source/common/rds/rds_route_config_provider_impl.h"
namespace Envoy {
namespace Rds {
RdsRouteConfigProviderImpl::RdsRouteConfigProviderImpl(
RdsRouteConfigSubscriptionSharedPtr&& subscription,
Server::Configuration::ServerFactoryContext& factory_context)
: subscription_(std::move(subscription))... | 35.948718 | 100 | 0.767475 | fishy |
cc59b3943685661b889fd0d4141b3aee2643586b | 2,424 | inl | C++ | src/vendor/mariadb-10.6.7/storage/innobase/include/fil0crypt.inl | zettadb/zettalib | 3d5f96dc9e3e4aa255f4e6105489758944d37cc4 | [
"Apache-2.0"
] | null | null | null | src/vendor/mariadb-10.6.7/storage/innobase/include/fil0crypt.inl | zettadb/zettalib | 3d5f96dc9e3e4aa255f4e6105489758944d37cc4 | [
"Apache-2.0"
] | null | null | null | src/vendor/mariadb-10.6.7/storage/innobase/include/fil0crypt.inl | zettadb/zettalib | 3d5f96dc9e3e4aa255f4e6105489758944d37cc4 | [
"Apache-2.0"
] | 2 | 2022-02-27T14:00:01.000Z | 2022-03-31T06:24:22.000Z | /*****************************************************************************
Copyright (c) 2015, 2017, MariaDB Corporation.
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; version 2 of the License... | 29.560976 | 78 | 0.606436 | zettadb |
cc5c176217bad9eea703faeea08e8da56812d72c | 13,573 | cpp | C++ | windows/c++/visualstudio/src/WorkerManager.cpp | afskylia/bachelor-starcraft-bot | e9d53345d77f6243f5a2db1781cdfcb7838ebcfd | [
"MIT"
] | null | null | null | windows/c++/visualstudio/src/WorkerManager.cpp | afskylia/bachelor-starcraft-bot | e9d53345d77f6243f5a2db1781cdfcb7838ebcfd | [
"MIT"
] | 2 | 2021-06-27T18:57:39.000Z | 2021-06-27T18:57:52.000Z | windows/c++/visualstudio/src/WorkerManager.cpp | afskylia/bachelor-starcraft-bot | e9d53345d77f6243f5a2db1781cdfcb7838ebcfd | [
"MIT"
] | null | null | null | #include "WorkerManager.h"
#include <BWAPI/Client/Client.h>
#include "Global.h"
#include "BWEM/src/bwem.h"
#include "Tools.h"
using namespace MiraBot;
WorkerManager::WorkerManager()
{
}
void WorkerManager::onFrame()
{
// Update workers, e.g. set job as 'Idle' when job completed
updateWorkerStatus();
// Send id... | 29.002137 | 113 | 0.719959 | afskylia |
cc5cc401a2e71fc0ab458087c6a939940671fadf | 812 | cc | C++ | src/Vec3.cc | alexander-koch/airfoil | 4c7afa81d6166b463de6afde5c2d491226fffa52 | [
"MIT"
] | null | null | null | src/Vec3.cc | alexander-koch/airfoil | 4c7afa81d6166b463de6afde5c2d491226fffa52 | [
"MIT"
] | null | null | null | src/Vec3.cc | alexander-koch/airfoil | 4c7afa81d6166b463de6afde5c2d491226fffa52 | [
"MIT"
] | null | null | null | #include "Vec3.hpp"
Vec3 Vec3::operator+(Vec3 v2) {
return Vec3(x + v2.x, y + v2.y, z + v2.z);
}
void Vec3::operator+=(Vec3 v2) {
x += v2.x;
y += v2.y;
z += v2.z;
}
Vec3 Vec3::operator*(double f) {
return Vec3(x * f, y * f, z * f);
}
Vec3 Vec3::operator-(Vec3 v2) {
return Vec3(x - v2.x, y - ... | 16.916667 | 46 | 0.5 | alexander-koch |
7fe7ce4dda7d7f0e2b562fe539c2e264ad229ee8 | 905 | cpp | C++ | main.cpp | birdiFVZ/neuralNetwork | 4e1eeb5a2641feff9a6b71c83cb7c09de499c50d | [
"MIT"
] | null | null | null | main.cpp | birdiFVZ/neuralNetwork | 4e1eeb5a2641feff9a6b71c83cb7c09de499c50d | [
"MIT"
] | null | null | null | main.cpp | birdiFVZ/neuralNetwork | 4e1eeb5a2641feff9a6b71c83cb7c09de499c50d | [
"MIT"
] | null | null | null | #include <iostream>
#include "src/MyMatrix.h"
#include "src/MyNetwork.h"
#include "src/functions.h"
#include "src/MyFile.h"
#include "src/MyBodyData.h"
using namespace std;
int main() {
string trainingPath = "/home/birdi/Schreibtisch/neuralNetwork07022018/data/training.csv";
MyFile trainingFile(trainingPath... | 20.568182 | 93 | 0.672928 | birdiFVZ |
7fe89aa59cb2b88b5b6003541db2e75b4dc9a7d5 | 729 | cpp | C++ | libKBEClient/KBEGameSocket.cpp | ypfsoul/kbengine-client-cocos2dx-3.11-MyGame | 3729c4457feaf9540ad5f274b6fe42542b0d9608 | [
"MIT"
] | 3 | 2017-07-23T23:37:34.000Z | 2017-09-22T06:28:34.000Z | libKBEClient/KBEGameSocket.cpp | ypfsoul/kbengine-client-cocos2dx-3.11-MyGame | 3729c4457feaf9540ad5f274b6fe42542b0d9608 | [
"MIT"
] | null | null | null | libKBEClient/KBEGameSocket.cpp | ypfsoul/kbengine-client-cocos2dx-3.11-MyGame | 3729c4457feaf9540ad5f274b6fe42542b0d9608 | [
"MIT"
] | null | null | null | #include "KBEGameSocket.h"
KBEGameSocket::KBEGameSocket()
{
gameSocket = NULL;
}
KBEGameSocket::~KBEGameSocket()
{
releaseSocket();
}
bool KBEGameSocket::connectionServer(const char* ipStr, uint32 port)
{
ip = ipStr;
port = port;
releaseSocket();
createSocket();
if(gameSocket->connect(ip.c_str(), port))
{
re... | 14.877551 | 68 | 0.694102 | ypfsoul |
7fe8f9fdc08a669da9dde582a977bd081cc12df0 | 311 | cpp | C++ | LISTAS/lista_1/q9/q9.cpp | EduFreit4s/Tecnicas-de-Program | 360a2addabe8226b4abc78b26fd6ece0297892f4 | [
"MIT"
] | 5 | 2019-10-03T22:14:13.000Z | 2020-02-18T00:23:55.000Z | LISTAS/lista_1/q9/q9.cpp | EduFreit4s/Tecnicas-de-Program | 360a2addabe8226b4abc78b26fd6ece0297892f4 | [
"MIT"
] | null | null | null | LISTAS/lista_1/q9/q9.cpp | EduFreit4s/Tecnicas-de-Program | 360a2addabe8226b4abc78b26fd6ece0297892f4 | [
"MIT"
] | 2 | 2019-10-24T21:32:53.000Z | 2019-12-05T18:36:56.000Z | #include <iostream>
using namespace std;
string hello(string a){
string b = "olá ";
return b += a;
}
int main() {
string a; // salva nome
cout << "digite seu nome: "; //pede para digitar nome
cin >> a; //coleta nome
cout << hello(a) << endl; // chama a funcao que devolve a resposta
return 0;
} | 17.277778 | 68 | 0.620579 | EduFreit4s |
7fee15b624e398e4620c86ea0754e1f806ab1020 | 26,361 | cpp | C++ | Source/Tests/Replica/SceneSynchronization.cpp | jayrulez/rbfx | 8641813787d558b6e8318c1b8e9da86c0e52f9dc | [
"MIT"
] | 48 | 2016-11-14T00:39:35.000Z | 2018-12-18T16:37:43.000Z | Source/Tests/Replica/SceneSynchronization.cpp | jayrulez/rbfx | 8641813787d558b6e8318c1b8e9da86c0e52f9dc | [
"MIT"
] | 54 | 2017-10-18T07:18:12.000Z | 2018-12-23T14:09:30.000Z | Source/Tests/Replica/SceneSynchronization.cpp | jayrulez/rbfx | 8641813787d558b6e8318c1b8e9da86c0e52f9dc | [
"MIT"
] | 10 | 2017-11-10T11:46:15.000Z | 2018-12-18T11:58:44.000Z | //
// Copyright (c) 2017-2021 the rbfx project.
//
// 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, mer... | 47.669078 | 157 | 0.721672 | jayrulez |
7ff2642d55b39b8c6c655072137a1d1a3f17cdc4 | 739 | cpp | C++ | STL_C++/Iterators.cpp | prabhash-varma/DSA-CP | 685b13d960d2045d003e30f235d678b9f05548b3 | [
"MIT"
] | null | null | null | STL_C++/Iterators.cpp | prabhash-varma/DSA-CP | 685b13d960d2045d003e30f235d678b9f05548b3 | [
"MIT"
] | null | null | null | STL_C++/Iterators.cpp | prabhash-varma/DSA-CP | 685b13d960d2045d003e30f235d678b9f05548b3 | [
"MIT"
] | null | null | null |
#include<bits/stdc++.h>
using namespace std;
int main(){
vector<int> v ={2,3,5,6,7};
// for(int i=0;i<v.size();i++){
// cout<<v[i]<< " ";
// }
// cout<<endl;
//Iterator declaration
vector<int> :: iterator it = v.begin();
//cout<<(*(it+1))<<endl;
for(it=v.begin();it !=v.e... | 18.02439 | 54 | 0.470907 | prabhash-varma |
7ff59dcffba8ef64c7f8d3e79b5160afe82ecb15 | 2,727 | cpp | C++ | C++/rectangle-area-ii.cpp | jaiskid/LeetCode-Solutions | a8075fd69087c5463f02d74e6cea2488fdd4efd1 | [
"MIT"
] | 3,269 | 2018-10-12T01:29:40.000Z | 2022-03-31T17:58:41.000Z | C++/rectangle-area-ii.cpp | pnandini/LeetCode | e746c3298be96dec8e160da9378940568ef631b1 | [
"MIT"
] | 53 | 2018-12-16T22:54:20.000Z | 2022-02-25T08:31:20.000Z | C++/rectangle-area-ii.cpp | pnandini/LeetCode | e746c3298be96dec8e160da9378940568ef631b1 | [
"MIT"
] | 1,236 | 2018-10-12T02:51:40.000Z | 2022-03-30T13:30:37.000Z | // Time: O(nlogn)
// Space: O(n)
class Solution {
public:
enum { OPEN = 1, CLOSE = -1};
int rectangleArea(vector<vector<int>>& rectangles) {
vector<vector<int>> events;
set<int> Xvals;
for (const auto& rec: rectangles) {
events.emplace_back(vector<int>{rec[1], OPEN, re... | 28.113402 | 76 | 0.441511 | jaiskid |
7ff873a32d8231c89f28f48b8804cbd12e64d12a | 968 | cpp | C++ | Angel/Libraries/FTGL/src/FTLibrary.cpp | Tifox/Grog-Knight | 377a661286cda7ee3b2b2d0099641897938c2f8f | [
"Apache-2.0"
] | 171 | 2015-01-08T10:35:56.000Z | 2021-07-03T12:35:10.000Z | Angel/Libraries/FTGL/src/FTLibrary.cpp | Tifox/Grog-Knight | 377a661286cda7ee3b2b2d0099641897938c2f8f | [
"Apache-2.0"
] | 11 | 2015-01-30T05:30:54.000Z | 2017-04-08T23:34:33.000Z | Angel/Libraries/FTGL/src/FTLibrary.cpp | Tifox/Grog-Knight | 377a661286cda7ee3b2b2d0099641897938c2f8f | [
"Apache-2.0"
] | 59 | 2015-02-01T03:43:00.000Z | 2020-12-01T02:08:57.000Z | #include "FTLibrary.h"
const FTLibrary& FTLibrary::Instance()
{
static FTLibrary ftlib;
return ftlib;
}
FTLibrary::~FTLibrary()
{
if( library != 0)
{
FT_Done_FreeType( *library);
delete library;
library= 0;
}
// if( manager != 0)
// {
// ... | 14.892308 | 71 | 0.494835 | Tifox |
7ffed48a819bd9a7b61789e434ca57e9e39d0e72 | 5,631 | cc | C++ | project/c++/mri/src/iwf/test/iwf_pipeline_test.cc | jia57196/code41 | df611f84592afd453ccb2d22a7ad999ddb68d028 | [
"Apache-2.0"
] | null | null | null | project/c++/mri/src/iwf/test/iwf_pipeline_test.cc | jia57196/code41 | df611f84592afd453ccb2d22a7ad999ddb68d028 | [
"Apache-2.0"
] | null | null | null | project/c++/mri/src/iwf/test/iwf_pipeline_test.cc | jia57196/code41 | df611f84592afd453ccb2d22a7ad999ddb68d028 | [
"Apache-2.0"
] | null | null | null | #include "boost/foreach.hpp"
#include "boost/scoped_ptr.hpp"
#include "boost/shared_ptr.hpp"
#include "tbb/pipeline.h"
#include "gtest/gtest.h"
#include "xtreme/iwf/internal/iwf_pipeline.h"
#include "xtreme/iwf/stats_publisher.h"
#include "xtreme/iwf/config_manager.h"
#include "xtreme/iwf/internal/iwf_pipeline_ingress_... | 32.362069 | 115 | 0.690641 | jia57196 |
3d00d94ec5c106e63b74c91e2e0d40c6ff05aa35 | 6,403 | cpp | C++ | src/QtManagers/Images/nSubgroupPictures.cpp | Vladimir-Lin/QtManagers | 2f906b165f773bff054a8349c577b7d07c2345d9 | [
"MIT"
] | null | null | null | src/QtManagers/Images/nSubgroupPictures.cpp | Vladimir-Lin/QtManagers | 2f906b165f773bff054a8349c577b7d07c2345d9 | [
"MIT"
] | null | null | null | src/QtManagers/Images/nSubgroupPictures.cpp | Vladimir-Lin/QtManagers | 2f906b165f773bff054a8349c577b7d07c2345d9 | [
"MIT"
] | null | null | null | #include <qtmanagers.h>
N::SubgroupPictures:: SubgroupPictures (QWidget * parent,Plan * p)
: SubgroupLists ( parent, p)
{
WidgetClass ;
Configure ( ) ;
}
N::SubgroupPictures::~SubgroupPictures(void)
{
}
void N::SubgroupPictures::Configure(void)
{
}
void N::SubgroupPicture... | 46.737226 | 66 | 0.243948 | Vladimir-Lin |
3d02954a743a61220b443910cdc98dc49c0a4793 | 5,379 | cxx | C++ | main/dbaccess/source/ui/querydesign/QueryTabConnUndoAction.cxx | Grosskopf/openoffice | 93df6e8a695d5e3eac16f3ad5e9ade1b963ab8d7 | [
"Apache-2.0"
] | 679 | 2015-01-06T06:34:58.000Z | 2022-03-30T01:06:03.000Z | main/dbaccess/source/ui/querydesign/QueryTabConnUndoAction.cxx | Grosskopf/openoffice | 93df6e8a695d5e3eac16f3ad5e9ade1b963ab8d7 | [
"Apache-2.0"
] | 102 | 2017-11-07T08:51:31.000Z | 2022-03-17T12:13:49.000Z | main/dbaccess/source/ui/querydesign/QueryTabConnUndoAction.cxx | Grosskopf/openoffice | 93df6e8a695d5e3eac16f3ad5e9ade1b963ab8d7 | [
"Apache-2.0"
] | 331 | 2015-01-06T11:40:55.000Z | 2022-03-14T04:07:51.000Z | /**************************************************************
*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to y... | 36.591837 | 99 | 0.569251 | Grosskopf |
3d044280e5761f56c99117d4fd339b4afb3c8305 | 2,341 | cpp | C++ | tests/test/util/test_queue.cpp | n-krueger/faabric | c95c3baf9406613629e5f382efc0fc8366b22752 | [
"Apache-2.0"
] | null | null | null | tests/test/util/test_queue.cpp | n-krueger/faabric | c95c3baf9406613629e5f382efc0fc8366b22752 | [
"Apache-2.0"
] | null | null | null | tests/test/util/test_queue.cpp | n-krueger/faabric | c95c3baf9406613629e5f382efc0fc8366b22752 | [
"Apache-2.0"
] | null | null | null | #include <catch.hpp>
#include <faabric/util/bytes.h>
#include <faabric/util/queue.h>
#include <future>
#include <thread>
#include <unistd.h>
using namespace faabric::util;
typedef faabric::util::Queue<int> IntQueue;
namespace tests {
TEST_CASE("Test queue operations", "[util]")
{
IntQueue q;
q.enqueue(1);... | 19.508333 | 72 | 0.556173 | n-krueger |
3d049e20010fb075d1aae3832f07acdf5d61e1b7 | 1,291 | cpp | C++ | libraries/RTClib/src/RTC_Micros.cpp | FelipeJojoa28/MQTT_Iot | f35f74775ae9edacb4a456d74a6aa55c12734b17 | [
"Apache-2.0"
] | 1 | 2022-03-10T11:19:46.000Z | 2022-03-10T11:19:46.000Z | libraries/RTClib/src/RTC_Micros.cpp | FelipeJojoa28/MQTT_Iot | f35f74775ae9edacb4a456d74a6aa55c12734b17 | [
"Apache-2.0"
] | null | null | null | libraries/RTClib/src/RTC_Micros.cpp | FelipeJojoa28/MQTT_Iot | f35f74775ae9edacb4a456d74a6aa55c12734b17 | [
"Apache-2.0"
] | 1 | 2018-09-28T11:43:20.000Z | 2018-09-28T11:43:20.000Z | #include "RTClib.h"
/**************************************************************************/
/*!
@brief Set the current date/time of the RTC_Micros clock.
@param dt DateTime object with the desired date and time
*/
/**************************************************************************/
void RTC_Micro... | 37.970588 | 80 | 0.463207 | FelipeJojoa28 |
3d04c7c1aa478d4067a24bbaa522f7df232b5972 | 239 | cpp | C++ | Source/Borderlands/weapon/WeaponStateInactive.cpp | yongaro/Borderlands | 39fbcf095400b53f4394cc115e59f40e59520484 | [
"Apache-2.0"
] | 1 | 2020-04-03T13:29:51.000Z | 2020-04-03T13:29:51.000Z | Source/Borderlands/weapon/WeaponStateInactive.cpp | yongaro/Borderlands | 39fbcf095400b53f4394cc115e59f40e59520484 | [
"Apache-2.0"
] | null | null | null | Source/Borderlands/weapon/WeaponStateInactive.cpp | yongaro/Borderlands | 39fbcf095400b53f4394cc115e59f40e59520484 | [
"Apache-2.0"
] | null | null | null | // Fill out your copyright notice in the Description page of Project Settings.
#include "WeaponStateInactive.h"
#include "Borderlands.h"
UWeaponStateInactive::UWeaponStateInactive()
{
}
UWeaponStateInactive::~UWeaponStateInactive()
{
}
| 18.384615 | 78 | 0.790795 | yongaro |
3d05e3dde5a40e2d905e87d8dc61665ba96ef62c | 1,218 | hpp | C++ | src/Program.hpp | Fabio3rs/dbdhelp | 1afeef265b826220e2a769353b932fc6b8436905 | [
"MIT"
] | null | null | null | src/Program.hpp | Fabio3rs/dbdhelp | 1afeef265b826220e2a769353b932fc6b8436905 | [
"MIT"
] | null | null | null | src/Program.hpp | Fabio3rs/dbdhelp | 1afeef265b826220e2a769353b932fc6b8436905 | [
"MIT"
] | null | null | null | #pragma once
#ifndef MIGRATIONMGR_PROGRAM_HPP
#define MIGRATIONMGR_PROGRAM_HPP
#include <deque>
#include <cstdint>
#include <string>
#include "Database.hpp"
#include "CLuaH.hpp"
#include "CLuaFunctions.hpp"
#include "CViewsManager.hpp"
namespace migmgr
{
class Program
{
std::string con... | 22.981132 | 57 | 0.62069 | Fabio3rs |
3d0794c35948a79e6a18ccf73b93aa165aa37257 | 1,551 | cpp | C++ | Solutions/Candy/main.cpp | Crayzero/LeetCodeProgramming | b10ebe22c0de1501722f0f5c934c0c1902a26789 | [
"MIT"
] | 1 | 2015-04-13T10:58:30.000Z | 2015-04-13T10:58:30.000Z | Solutions/Candy/main.cpp | Crayzero/LeetCodeProgramming | b10ebe22c0de1501722f0f5c934c0c1902a26789 | [
"MIT"
] | null | null | null | Solutions/Candy/main.cpp | Crayzero/LeetCodeProgramming | b10ebe22c0de1501722f0f5c934c0c1902a26789 | [
"MIT"
] | null | null | null | #include <iostream>
#include <vector>
#include <numeric>
using namespace std;
class Solution {
public:
//time limit exceeded
int candy(vector<int> &ratings) {
vector<int> res_v(ratings.size(), 1);
vector<int>::size_type size = ratings.size();
for(vector<int>::size_type i = 1; i < size;... | 27.210526 | 98 | 0.459059 | Crayzero |
3d0bf051397043a1671cf2fa0f9fe0964a689f4b | 2,997 | cpp | C++ | lib/util/Configurations.cpp | GloomyGrave/Sinsy-NG | 30c464b24eeb0d88caa9412286741889d1c84714 | [
"Unlicense"
] | 2 | 2021-03-20T10:29:29.000Z | 2022-02-09T03:48:36.000Z | lib/util/Configurations.cpp | GloomyGrave/Sinsy-NG | 30c464b24eeb0d88caa9412286741889d1c84714 | [
"Unlicense"
] | null | null | null | lib/util/Configurations.cpp | GloomyGrave/Sinsy-NG | 30c464b24eeb0d88caa9412286741889d1c84714 | [
"Unlicense"
] | 2 | 2020-10-24T02:51:41.000Z | 2022-03-26T20:32:39.000Z | /* Created by Ghost Gloomy on 2018/11/8. */
#include <fstream>
#include "Configurations.h"
#include "util_log.h"
#include "util_string.h"
#include "StringTokenizer.h"
namespace sinsy
{
namespace
{
const std::string SEPARATOR = "=";
};
/*!
constructor
*/
Configurations::Configurations()
{
}
/*!
destructor
*/
Co... | 19.588235 | 134 | 0.539206 | GloomyGrave |
3d0e0842735b49023f5255f453912b41eceda925 | 999 | hpp | C++ | range.hpp | snir1551/Ex10_C- | 70c0701aa7d130be19ace214c83f66ac17b96d8d | [
"MIT"
] | 1 | 2021-05-31T13:09:48.000Z | 2021-05-31T13:09:48.000Z | range.hpp | snir1551/Ex10_C- | 70c0701aa7d130be19ace214c83f66ac17b96d8d | [
"MIT"
] | null | null | null | range.hpp | snir1551/Ex10_C- | 70c0701aa7d130be19ace214c83f66ac17b96d8d | [
"MIT"
] | null | null | null | #ifndef _RANGE_HPP
#define _RANGE_HPP
#include <iostream>
namespace itertools
{
//iterator class
class iterator
{
private:
int _num; //parameter
public:
iterator(int num): _num(num)
{
}
void operator++()
{
++(this->_num);
... | 16.932203 | 62 | 0.409409 | snir1551 |
3d13ca4c6ef02ed64ada5a6e3f3b47f5da8f3f96 | 1,186 | cpp | C++ | LeetCode/Problems/Algorithms/#1337_TheKWeakestRowsInAMatrix_sol3_binary_search_and_heap_O(RlogC+RlogK)_time_O(R+K)_extra_space_12ms_10.5MB.cpp | Tudor67/Competitive-Programming | ae4dc6ed8bf76451775bf4f740c16394913f3ff1 | [
"MIT"
] | 1 | 2022-01-26T14:50:07.000Z | 2022-01-26T14:50:07.000Z | LeetCode/Problems/Algorithms/#1337_TheKWeakestRowsInAMatrix_sol3_binary_search_and_heap_O(RlogC+RlogK)_time_O(R+K)_extra_space_12ms_10.5MB.cpp | Tudor67/Competitive-Programming | ae4dc6ed8bf76451775bf4f740c16394913f3ff1 | [
"MIT"
] | null | null | null | LeetCode/Problems/Algorithms/#1337_TheKWeakestRowsInAMatrix_sol3_binary_search_and_heap_O(RlogC+RlogK)_time_O(R+K)_extra_space_12ms_10.5MB.cpp | Tudor67/Competitive-Programming | ae4dc6ed8bf76451775bf4f740c16394913f3ff1 | [
"MIT"
] | null | null | null | class Solution {
private:
int soldiersCount(const vector<int>& V){
int l = 0;
int r = (int)V.size() - 1;
while(l != r){
int mid = (l + r + 1) / 2;
if(V[mid] == 1){
l = mid;
}else{
r = mid - 1;
}
... | 25.782609 | 64 | 0.378583 | Tudor67 |
3d1b9ec61abe0fea9930aa8f553b718ef1f3d5fe | 1,282 | hpp | C++ | src/rynx/editor/tools/collisions_tool.hpp | Apodus/rynx | 3e1babc2f2957702ba2b09d78be3a959f2f4ea18 | [
"MIT"
] | 11 | 2019-08-19T08:44:14.000Z | 2020-09-22T20:04:46.000Z | src/rynx/editor/tools/collisions_tool.hpp | Apodus/rynx | 3e1babc2f2957702ba2b09d78be3a959f2f4ea18 | [
"MIT"
] | null | null | null | src/rynx/editor/tools/collisions_tool.hpp | Apodus/rynx | 3e1babc2f2957702ba2b09d78be3a959f2f4ea18 | [
"MIT"
] | null | null | null |
#pragma once
#include <rynx/editor/tools/tool.hpp>
namespace rynx {
class ecs;
namespace editor {
namespace tools {
class collisions_tool : public itool {
public:
collisions_tool(rynx::scheduler::context& ctx);
virtual void update(rynx::scheduler::context& ctx) override;
virtual void on_tool... | 25.64 | 114 | 0.695788 | Apodus |
3d1d26ca1d048cbee612aa44befec9696ae6d13c | 12,712 | cpp | C++ | emulator/src/mame/drivers/amspdwy.cpp | rjw57/tiw-computer | 5ef1c79893165b8622d1114d81cd0cded58910f0 | [
"MIT"
] | 1 | 2022-01-15T21:38:38.000Z | 2022-01-15T21:38:38.000Z | emulator/src/mame/drivers/amspdwy.cpp | rjw57/tiw-computer | 5ef1c79893165b8622d1114d81cd0cded58910f0 | [
"MIT"
] | null | null | null | emulator/src/mame/drivers/amspdwy.cpp | rjw57/tiw-computer | 5ef1c79893165b8622d1114d81cd0cded58910f0 | [
"MIT"
] | null | null | null | // license:BSD-3-Clause
// copyright-holders:Luca Elia
/***************************************************************************
-= American Speedway =-
driver by Luca Elia (l.elia@tin.it)
CPU : Z80A x 2
Sound: YM2151
(c)1987 Enerdyne Technologies, Inc. / PG... | 32.932642 | 156 | 0.617527 | rjw57 |
3d20528cbf586c5c85e76140b4bb84b731a09e46 | 1,283 | hpp | C++ | PSME/agent/compute/include/status/state_machine_action.hpp | opencomputeproject/HWMgmt-DeviceMgr-PSME | 2a00188aab6f4bef3776987f0842ef8a8ea972ac | [
"Apache-2.0"
] | 5 | 2021-10-07T15:36:37.000Z | 2022-03-01T07:21:49.000Z | PSME/agent/compute/include/status/state_machine_action.hpp | opencomputeproject/HWMgmt-DeviceMgr-PSME | 2a00188aab6f4bef3776987f0842ef8a8ea972ac | [
"Apache-2.0"
] | null | null | null | PSME/agent/compute/include/status/state_machine_action.hpp | opencomputeproject/HWMgmt-DeviceMgr-PSME | 2a00188aab6f4bef3776987f0842ef8a8ea972ac | [
"Apache-2.0"
] | 1 | 2022-03-01T07:21:51.000Z | 2022-03-01T07:21:51.000Z | /*!
* @copyright
* Copyright (c) 2015-2017 Intel Corporation
*
* @copyright
* 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
*
* @copyright
* http://www.apache.org/licenses/LICENSE-... | 22.508772 | 98 | 0.742011 | opencomputeproject |
3d20c199e6f8d433ba64037dc25b0f7ccdda1efd | 3,768 | cpp | C++ | qws/src/gui/QTreeWidgetItem_DhClass.cpp | keera-studios/hsQt | 8aa71a585cbec40005354d0ee43bce9794a55a9a | [
"BSD-2-Clause"
] | 42 | 2015-02-16T19:29:16.000Z | 2021-07-25T11:09:03.000Z | qws/src/gui/QTreeWidgetItem_DhClass.cpp | keera-studios/hsQt | 8aa71a585cbec40005354d0ee43bce9794a55a9a | [
"BSD-2-Clause"
] | 1 | 2017-11-23T12:49:25.000Z | 2017-11-23T12:49:25.000Z | qws/src/gui/QTreeWidgetItem_DhClass.cpp | keera-studios/hsQt | 8aa71a585cbec40005354d0ee43bce9794a55a9a | [
"BSD-2-Clause"
] | 5 | 2015-10-15T21:25:30.000Z | 2017-11-22T13:18:24.000Z | /////////////////////////////////////////////////////////////////////////////
//
// File : QTreeWidgetItem_DhClass.cpp
// Copyright : (c) David Harley 2010
// Project : qtHaskell
// Version : 1.1.4
// Modified : 2010-09-02 17:02:05
//
// Warning : this file is machi... | 32.765217 | 130 | 0.666401 | keera-studios |
3d231a259d8b4b593c281eb60bdb2ef46b457ea1 | 49,307 | cpp | C++ | src/services/pcn-simplebridge/src/api/SimplebridgeApi.cpp | mbertrone/polycube | b35a6aa13273c000237d53c5f1bf286f12e4b9bd | [
"ECL-2.0",
"Apache-2.0"
] | 1 | 2020-07-16T04:49:29.000Z | 2020-07-16T04:49:29.000Z | src/services/pcn-simplebridge/src/api/SimplebridgeApi.cpp | mbertrone/polycube | b35a6aa13273c000237d53c5f1bf286f12e4b9bd | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | src/services/pcn-simplebridge/src/api/SimplebridgeApi.cpp | mbertrone/polycube | b35a6aa13273c000237d53c5f1bf286f12e4b9bd | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | /**
* simplebridge API
* Simple L2 Bridge Service
*
* OpenAPI spec version: 1.0.0
*
* NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/polycube-network/swagger-codegen.git
* branch polycube
*/
/* Do not edit this file manually */
#include "SimplebridgeApi.h"
namespace ... | 36.0959 | 153 | 0.719614 | mbertrone |
3d23e625060917c46c7b12dd9ed6a76c4cc94211 | 647 | cpp | C++ | test_mdsplus.cpp | golfit/C-Mod | 8132d1b1f21611d13f332a3770f5a94dfdecbb0a | [
"MIT"
] | null | null | null | test_mdsplus.cpp | golfit/C-Mod | 8132d1b1f21611d13f332a3770f5a94dfdecbb0a | [
"MIT"
] | null | null | null | test_mdsplus.cpp | golfit/C-Mod | 8132d1b1f21611d13f332a3770f5a94dfdecbb0a | [
"MIT"
] | null | null | null | //============================================================================
// Name : mode_survey.cpp
// Author : Theodore Golfinopoulos
// Version :
// Copyright : 2018, All rights reserved, MIT License
// Description :
//============================================================================... | 24.884615 | 78 | 0.48068 | golfit |
3d28a3b8e82ba15527a55961f00cf00fd63a9022 | 458 | cpp | C++ | src/output_writer/output_writer.cpp | kimkroener/NumSim | eb56fa90cb5717123d80a4b5711d2a5bcaf67a27 | [
"MIT"
] | 2 | 2021-12-09T23:20:23.000Z | 2022-01-12T18:03:18.000Z | src/output_writer/output_writer.cpp | kimkroener/NumSim | eb56fa90cb5717123d80a4b5711d2a5bcaf67a27 | [
"MIT"
] | 31 | 2021-11-03T13:25:01.000Z | 2021-12-09T12:27:08.000Z | src/output_writer/output_writer.cpp | kimkroener/NumSim | eb56fa90cb5717123d80a4b5711d2a5bcaf67a27 | [
"MIT"
] | 3 | 2021-11-09T13:41:08.000Z | 2021-11-26T16:33:42.000Z | #include "output_writer/output_writer.h"
#include <iostream>
OutputWriter::OutputWriter(std::shared_ptr<Discretization> discretization, std::shared_ptr<Partitioning> partitioning)
: discretization_(discretization), partitioning_(partitioning), fileNo_(0)
{
// create "out" subdirectory if it does not yet exist
in... | 35.230769 | 118 | 0.740175 | kimkroener |
3d29352cacf853e6cc7ca59d6fb231c033b2b19b | 138 | cpp | C++ | src/ComandList.cpp | Wason-Fok/Motor-command-generation | d85ef1e22b9ee8ba6b8025460563cd1a2c3f5c64 | [
"Apache-2.0"
] | null | null | null | src/ComandList.cpp | Wason-Fok/Motor-command-generation | d85ef1e22b9ee8ba6b8025460563cd1a2c3f5c64 | [
"Apache-2.0"
] | null | null | null | src/ComandList.cpp | Wason-Fok/Motor-command-generation | d85ef1e22b9ee8ba6b8025460563cd1a2c3f5c64 | [
"Apache-2.0"
] | null | null | null | #include "ComandList.h"
ComandList::ComandList(QWidget *parent)
: QWidget(parent)
{
ui.setupUi(this);
}
ComandList::~ComandList()
{
}
| 11.5 | 39 | 0.702899 | Wason-Fok |
3d294aa09d23bf767e526fd94bd4c3ea7f7a88b7 | 4,489 | cpp | C++ | unit_tests/chustd_ut/File_Test.cpp | hadrien-psydk/pngoptimizer | d92946e63a57a4562af0feaa9e4cfd8628373777 | [
"Zlib"
] | 90 | 2016-08-23T00:13:04.000Z | 2022-02-22T09:40:46.000Z | unit_tests/chustd_ut/File_Test.cpp | hadrien-psydk/pngoptimizer | d92946e63a57a4562af0feaa9e4cfd8628373777 | [
"Zlib"
] | 25 | 2016-09-01T07:09:03.000Z | 2022-01-31T16:18:57.000Z | unit_tests/chustd_ut/File_Test.cpp | hadrien-psydk/pngoptimizer | d92946e63a57a4562af0feaa9e4cfd8628373777 | [
"Zlib"
] | 17 | 2017-05-03T17:49:25.000Z | 2021-12-28T06:47:56.000Z | #include "stdafx.h"
TEST(File, GetDrive)
{
String str0 = File::GetDrive("abc");
ASSERT_TRUE(str0.IsEmpty());
String str1 = File::GetDrive("/abc");
ASSERT_TRUE(str1.IsEmpty());
String str2 = File::GetDrive("\\abc");
ASSERT_TRUE(str2.IsEmpty());
String str3 = File::GetDrive("System:abc");
ASSERT_TRUE(str3 == ... | 22.445 | 74 | 0.681889 | hadrien-psydk |
3d297601f2a9c6b177465239041f2c8df4023e0d | 7,303 | cpp | C++ | src/opengl_class/VertexArray.cpp | hkzhugc/MyBreakOut | cbeb086195a5aa25113d6bd8d7ad30b96c385f2d | [
"MIT"
] | null | null | null | src/opengl_class/VertexArray.cpp | hkzhugc/MyBreakOut | cbeb086195a5aa25113d6bd8d7ad30b96c385f2d | [
"MIT"
] | null | null | null | src/opengl_class/VertexArray.cpp | hkzhugc/MyBreakOut | cbeb086195a5aa25113d6bd8d7ad30b96c385f2d | [
"MIT"
] | null | null | null | #include "VertexArray.h"
using namespace std;
static float quadVertices[] = { // vertex attributes for a quad that fills the entire screen in Normalized Device Coordinates.
// positions // texCoords
-1.0f, 1.0f, 0.0f, 1.0f,
-1.0f, -1.0f, 0.0f, 0.0f,
1.0f, -1.0f, 1.0f, 0.0f,
-1.0f, 1.0f, 0.0f, 1.0f,... | 32.030702 | 126 | 0.606737 | hkzhugc |
3d2d90b556cf380b03ecc3f04b4e1bc43112a254 | 524 | cpp | C++ | AtCoder/abc028/b/main.cpp | H-Tatsuhiro/Com_Pro-Cpp | fd79f7821a76b11f4a6f83bbb26a034db577a877 | [
"MIT"
] | null | null | null | AtCoder/abc028/b/main.cpp | H-Tatsuhiro/Com_Pro-Cpp | fd79f7821a76b11f4a6f83bbb26a034db577a877 | [
"MIT"
] | 1 | 2021-10-19T08:47:23.000Z | 2022-03-07T05:23:56.000Z | AtCoder/abc028/b/main.cpp | H-Tatsuhiro/Com_Pro-Cpp | fd79f7821a76b11f4a6f83bbb26a034db577a877 | [
"MIT"
] | null | null | null | #include <iostream>
#include <cmath>
#include <algorithm>
#include <vector>
using namespace std;
int main() {
string s; cin >> s;
vector<int> v(6, 0);
for (int i = 0; i < s.length(); i++) {
if (s[i] == 'A') v[0]++;
if (s[i] == 'B') v[1]++;
if (s[i] == 'C') v[2]++;
if (s[i] ==... | 23.818182 | 42 | 0.375954 | H-Tatsuhiro |
3d3144e9ccc4e484e2d835b7502f739cccc29e8c | 4,481 | hpp | C++ | src/common/KokkosKernels_SparseUtils_cusparse.hpp | dialecticDolt/kokkos-kernels | 00189c0be23a70979aeaa162f0abd4c0e4d1c479 | [
"BSD-3-Clause"
] | 156 | 2017-03-01T23:38:10.000Z | 2022-03-27T21:28:03.000Z | src/common/KokkosKernels_SparseUtils_cusparse.hpp | dialecticDolt/kokkos-kernels | 00189c0be23a70979aeaa162f0abd4c0e4d1c479 | [
"BSD-3-Clause"
] | 1,257 | 2017-03-03T15:25:16.000Z | 2022-03-31T19:46:09.000Z | src/common/KokkosKernels_SparseUtils_cusparse.hpp | dialecticDolt/kokkos-kernels | 00189c0be23a70979aeaa162f0abd4c0e4d1c479 | [
"BSD-3-Clause"
] | 76 | 2017-03-01T17:03:59.000Z | 2022-03-03T21:04:41.000Z | /*
//@HEADER
// ************************************************************************
//
// Kokkos v. 3.0
// Copyright (2020) National Technology & Engineering
// Solutions of Sandia, LLC (NTESS).
//
// Under the terms of Contract DE-NA0003525 with NTESS,
// the U.S. Govern... | 35.563492 | 90 | 0.714126 | dialecticDolt |
3d3181e4208c7009fc1b1340d10e5779be25da11 | 533 | cpp | C++ | src/midi_command_tempo.cpp | craigstjean/miditabs | 0e8e22ab948883d1fe62ff669b472615739c5fa5 | [
"BSD-3-Clause"
] | null | null | null | src/midi_command_tempo.cpp | craigstjean/miditabs | 0e8e22ab948883d1fe62ff669b472615739c5fa5 | [
"BSD-3-Clause"
] | null | null | null | src/midi_command_tempo.cpp | craigstjean/miditabs | 0e8e22ab948883d1fe62ff669b472615739c5fa5 | [
"BSD-3-Clause"
] | null | null | null | #include "midi_command_tempo.h"
void MidiCommandTempo::execute(std::shared_ptr<MidiContext> context)
{
int tick = context->track_tick(context->current_track);
for (auto i = 0; i < context->track_count(); ++i)
{
smf::MidiEvent tempo_event;
tempo_event.tick = tick;
tempo_event.setMeta... | 25.380952 | 68 | 0.645403 | craigstjean |
3d333ab8aabbda7ce88b3270521ab4ca68e61a96 | 1,408 | cpp | C++ | lib/common/src/Logging.cpp | CodeRancher/offcenter_trading | 68526fdc0f27d611f748b2fa20f49e743d3ee5eb | [
"Apache-2.0"
] | null | null | null | lib/common/src/Logging.cpp | CodeRancher/offcenter_trading | 68526fdc0f27d611f748b2fa20f49e743d3ee5eb | [
"Apache-2.0"
] | 4 | 2021-12-27T17:56:21.000Z | 2022-01-05T00:05:01.000Z | lib/common/src/Logging.cpp | CodeRancher/offcenter_trading | 68526fdc0f27d611f748b2fa20f49e743d3ee5eb | [
"Apache-2.0"
] | null | null | null | /**
* Copyright 2021 Scott Brauer
*
* Licensed under the Apache License, Version 2.0 (the );
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writ... | 26.566038 | 82 | 0.713068 | CodeRancher |
3d371a9c9533f5ae8fce1b422670d3e146bb7f84 | 11,764 | cpp | C++ | src/plugins/imagefilter_texturelayer/filter.cpp | deiflou/anitools | 9728f7569b59aa261dcaffc8332a1b02c2cd5fbe | [
"MIT"
] | 6 | 2015-05-07T18:44:34.000Z | 2018-12-12T15:57:40.000Z | src/plugins/imagefilter_texturelayer/filter.cpp | deiflou/anitools | 9728f7569b59aa261dcaffc8332a1b02c2cd5fbe | [
"MIT"
] | null | null | null | src/plugins/imagefilter_texturelayer/filter.cpp | deiflou/anitools | 9728f7569b59aa261dcaffc8332a1b02c2cd5fbe | [
"MIT"
] | 2 | 2019-03-18T05:31:34.000Z | 2019-11-19T21:17:54.000Z | //
// MIT License
//
// Copyright (c) Deif Lou
//
// 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, me... | 32.768802 | 112 | 0.600221 | deiflou |
3d3a96804f5a336b976e1e6e51c866f9c83bd1c7 | 1,857 | cpp | C++ | src/components/net/fabric/unit_test/patience.cpp | fQuinzan/mcas | efaf438eb20cffa18b13f176c74a2b3153f89c07 | [
"Apache-2.0"
] | 60 | 2020-04-28T08:15:07.000Z | 2022-03-08T10:35:15.000Z | src/components/net/fabric/unit_test/patience.cpp | fQuinzan/mcas | efaf438eb20cffa18b13f176c74a2b3153f89c07 | [
"Apache-2.0"
] | 66 | 2020-09-03T23:40:48.000Z | 2022-03-07T20:34:52.000Z | src/components/net/fabric/unit_test/patience.cpp | fQuinzan/mcas | efaf438eb20cffa18b13f176c74a2b3153f89c07 | [
"Apache-2.0"
] | 13 | 2019-11-02T06:30:36.000Z | 2022-01-26T01:56:42.000Z | /*
Copyright [2017-2019] [IBM Corporation]
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed... | 26.913043 | 122 | 0.682822 | fQuinzan |
3d3aa0927631e336549d23b7193c4de50b200666 | 1,217 | cpp | C++ | goodEatsSystem/src/Chef.cpp | PashaBarahimi/GoodEatsWeb | a8c173298323b072c973a8218bb63485fc1aba33 | [
"MIT"
] | null | null | null | goodEatsSystem/src/Chef.cpp | PashaBarahimi/GoodEatsWeb | a8c173298323b072c973a8218bb63485fc1aba33 | [
"MIT"
] | null | null | null | goodEatsSystem/src/Chef.cpp | PashaBarahimi/GoodEatsWeb | a8c173298323b072c973a8218bb63485fc1aba33 | [
"MIT"
] | null | null | null | #include "include/Chef.hpp"
#include "include/AlgorithmSideFunctions.hpp"
Chef::Chef(const std::string& username, const std::string& password) : username_(username), password_(password) { }
void Chef::addRecipe(Recipe* recipe)
{
recipes_.insert(std::upper_bound(recipes_.begin(), recipes_.end(), recipe, compareByName... | 22.537037 | 115 | 0.685292 | PashaBarahimi |
3d3c6593e10a6cffac2e3be3914b18bc7f84b394 | 1,216 | cpp | C++ | src/tools/checkstyle/test.cpp | Kirishikesan/haiku | 835565c55830f2dab01e6e332cc7e2d9c015b51e | [
"MIT"
] | 1,338 | 2015-01-03T20:06:56.000Z | 2022-03-26T13:49:54.000Z | src/tools/checkstyle/test.cpp | Kirishikesan/haiku | 835565c55830f2dab01e6e332cc7e2d9c015b51e | [
"MIT"
] | 15 | 2015-01-17T22:19:32.000Z | 2021-12-20T12:35:00.000Z | src/tools/checkstyle/test.cpp | Kirishikesan/haiku | 835565c55830f2dab01e6e332cc7e2d9c015b51e | [
"MIT"
] | 350 | 2015-01-08T14:15:27.000Z | 2022-03-21T18:14:35.000Z | /* Test-file for coding style checker
* Copyright 2010, Haiku, Inc.
* Distributed under the terms of the MIT Licence
*/
// DETECTED problems
// Line longer than 80 chars
int
someveryveryveryveryveryveryveryveryveryveryveryveryveryveryveryveryveryverylongFunctionName( int aLongParameter)
{
// Identantion with sp... | 16.888889 | 113 | 0.706414 | Kirishikesan |
3d3c726d1b927ab53bf7a6f18573d4f41db9fc1b | 2,183 | cpp | C++ | practice/sample2.cpp | xenowits/cp | 963b3c7df65b5328d5ce5ef894a46691afefb98c | [
"MIT"
] | null | null | null | practice/sample2.cpp | xenowits/cp | 963b3c7df65b5328d5ce5ef894a46691afefb98c | [
"MIT"
] | null | null | null | practice/sample2.cpp | xenowits/cp | 963b3c7df65b5328d5ce5ef894a46691afefb98c | [
"MIT"
] | null | null | null | #include<bits/stdc++.h>
using namespace std;
#define fori(i,a,b) for (long long int i = a; i <= b ; ++i)
#define ford(i,a,b) for(long long int i = a;i >= b ; --i)
#define mk make_pair
#define mod 1000000007
#define pb push_back
#define ll long long
#define ld long double
#define MAXN (ll)1e6+5
#define rnd mt19937_64 r... | 24.806818 | 89 | 0.496106 | xenowits |
3d3cbcdfe9fa044b30509207118e69e958eb93f1 | 1,714 | cpp | C++ | Array/1313. Decompress Run-Length Encoded List.cpp | KardseT/LeetCode | f020cff23f7d3ef8599b9e72bf5c2095bf069d01 | [
"MIT"
] | null | null | null | Array/1313. Decompress Run-Length Encoded List.cpp | KardseT/LeetCode | f020cff23f7d3ef8599b9e72bf5c2095bf069d01 | [
"MIT"
] | null | null | null | Array/1313. Decompress Run-Length Encoded List.cpp | KardseT/LeetCode | f020cff23f7d3ef8599b9e72bf5c2095bf069d01 | [
"MIT"
] | null | null | null | // 1313. Decompress Run-Length Encoded List
// Easy
// We are given a list nums of integers representing a list compressed with run-length encoding.
// Consider each adjacent pair of elements [freq, val] = [nums[2*i], nums[2*i+1]] (with i >= 0). For each such pair, there are freq elements with value val concatenated... | 27.645161 | 266 | 0.614936 | KardseT |
3d3dc327947482dc6dc8fa038371a9792e962493 | 10,542 | cpp | C++ | src/state.cpp | nilern/kauno | a82f43bc535378afe9ce427ffb16921bf966fd47 | [
"MIT"
] | null | null | null | src/state.cpp | nilern/kauno | a82f43bc535378afe9ce427ffb16921bf966fd47 | [
"MIT"
] | null | null | null | src/state.cpp | nilern/kauno | a82f43bc535378afe9ce427ffb16921bf966fd47 | [
"MIT"
] | null | null | null | #include "state.hpp"
#include <cassert>
#include <cstdlib>
#include <cstring>
#include <cstdalign>
#include <utility>
#include <algorithm>
#include "arrays.hpp"
#include "typesmap.hpp"
#include "locals.hpp"
#include "fn.hpp"
namespace kauno {
static inline AnySRef builtin_prn(State& state) {
State_print_builtin... | 38.474453 | 144 | 0.640106 | nilern |
3d426e9e65cfca10d0bdad8a776ed89badb9682e | 449 | cpp | C++ | Online Judges/SPOJ/ARRAYSUB/2395824_AC_540ms_6451kB.cpp | moni-roy/COPC | f5918304815413c18574ef4af2e23a604bd9f704 | [
"MIT"
] | 4 | 2017-02-20T17:41:14.000Z | 2019-07-15T14:15:34.000Z | Online Judges/SPOJ/ARRAYSUB/2395824_AC_540ms_6451kB.cpp | moni-roy/COPC | f5918304815413c18574ef4af2e23a604bd9f704 | [
"MIT"
] | null | null | null | Online Judges/SPOJ/ARRAYSUB/2395824_AC_540ms_6451kB.cpp | moni-roy/COPC | f5918304815413c18574ef4af2e23a604bd9f704 | [
"MIT"
] | null | null | null | #include <iostream>
#include <algorithm>
#include <cmath>
using namespace std;
int main()
{
int n,a[1010101],k;
cin>>n;
for(int i=0;i<n;i++)
{
cin>>a[i];
}
cin>>k;
int mx=0;
for(int i=0;i<k;i++)
{
mx=max(mx,a[i]);
}
for(int i=0;i<n-k+1;i++)
{
if(a[i+k-1]>mx)
{
mx=a[i+k-1];
}
else if(mx==a[i-... | 11.512821 | 27 | 0.478842 | moni-roy |
3d42dbe987be220b187869508bf8a1b3cedcac31 | 1,704 | cpp | C++ | bind/imf_deepscanlineoutputpart.cpp | scott-wilson/openexr-bind | dcbc3c6c5d665545638e5ef55410d43a15bce081 | [
"Apache-2.0"
] | 7 | 2021-06-04T20:59:16.000Z | 2022-02-11T01:00:42.000Z | bind/imf_deepscanlineoutputpart.cpp | scott-wilson/openexr-bind | dcbc3c6c5d665545638e5ef55410d43a15bce081 | [
"Apache-2.0"
] | 35 | 2021-05-14T04:28:22.000Z | 2021-12-30T12:08:40.000Z | bind/imf_deepscanlineoutputpart.cpp | scott-wilson/openexr-bind | dcbc3c6c5d665545638e5ef55410d43a15bce081 | [
"Apache-2.0"
] | 5 | 2021-05-15T04:02:56.000Z | 2021-07-02T05:38:01.000Z | #include <OpenEXR/ImfDeepScanLineOutputPart.h>
#include <cppmm_bind.hpp>
namespace cppmm_bind {
namespace OPENEXR_IMF_INTERNAL_NAMESPACE {
namespace Imf = ::OPENEXR_IMF_INTERNAL_NAMESPACE;
struct DeepScanLineOutputPart {
using BoundType = Imf::DeepScanLineOutputPart;
IMF_EXPORT
DeepScanLineOutputPart(... | 28.4 | 71 | 0.716549 | scott-wilson |
3d43cdeba498bf65152e0c057b55c3615fc30f92 | 3,071 | cpp | C++ | src/passes/pass.cpp | ionlang/ir-c | f5be3d0a6bed76b3fe354018045b82ded7d792ae | [
"Unlicense"
] | 3 | 2019-07-11T14:41:28.000Z | 2019-07-12T10:29:08.000Z | src/passes/pass.cpp | ionlang/ir-c | f5be3d0a6bed76b3fe354018045b82ded7d792ae | [
"Unlicense"
] | 22 | 2019-12-05T04:43:34.000Z | 2020-11-05T23:29:25.000Z | src/passes/pass.cpp | ionlang/ir-c | f5be3d0a6bed76b3fe354018045b82ded7d792ae | [
"Unlicense"
] | 3 | 2020-07-20T19:20:26.000Z | 2020-10-12T15:24:47.000Z | #include <ionir/passes/pass.h>
namespace ionir {
Pass::Pass(std::shared_ptr<ionshared::PassContext> context) noexcept :
ionshared::BasePass<Construct>(std::move(context)) {
//
}
void Pass::visit(std::shared_ptr<Construct> construct) {
construct->accept(*this);
this->visitChildren(construct);
}... | 21.935714 | 81 | 0.669489 | ionlang |
3d452f4e374cf346d1d036ad22831286aebe9ab2 | 436 | hpp | C++ | include/ring_buffer/details/clz.hpp | Wizermil/ring_buffer | 71ee2bb59aa268b462c43ed466d114c32f39dd19 | [
"MIT"
] | null | null | null | include/ring_buffer/details/clz.hpp | Wizermil/ring_buffer | 71ee2bb59aa268b462c43ed466d114c32f39dd19 | [
"MIT"
] | null | null | null | include/ring_buffer/details/clz.hpp | Wizermil/ring_buffer | 71ee2bb59aa268b462c43ed466d114c32f39dd19 | [
"MIT"
] | null | null | null | #pragma once
#include <ring_buffer/details/config.hpp>
namespace wiz::details::bit {
RING_BUFFER_HIDE_FROM_ABI constexpr int clz(unsigned x) noexcept { return __builtin_clz(x); }
RING_BUFFER_HIDE_FROM_ABI constexpr int clz(unsigned long x) noexcept { return __builtin_clzl(x); }
RING_BUFFER_HIDE_FROM_AB... | 31.142857 | 109 | 0.766055 | Wizermil |
3d4c7001300fec428fa66d91d6bb10c5cd946c06 | 714 | hpp | C++ | robots/robots.hpp | uncerso/code-graveyard | df875fd070022faf84374e260bd77663760b1e4c | [
"Apache-2.0"
] | 1 | 2017-10-24T21:43:43.000Z | 2017-10-24T21:43:43.000Z | robots/robots.hpp | uncerso/code-graveyard | df875fd070022faf84374e260bd77663760b1e4c | [
"Apache-2.0"
] | 3 | 2017-12-02T08:15:29.000Z | 2018-06-05T19:35:56.000Z | robots/robots.hpp | uncerso/code-graveyard | df875fd070022faf84374e260bd77663760b1e4c | [
"Apache-2.0"
] | null | null | null | #pragma once
#include <vector>
namespace robots {
/// Solves the problem of destroying robots
class Robots {
using uint = unsigned int;
uint amountOfRobots = 0;
std::vector<bool> withRobot;
std::vector<std::vector<uint> > graph;
bool dfs(uint pos, bool color, std::vector<uint> & colors) noexcept;
public:
Robo... | 21 | 69 | 0.710084 | uncerso |
3d4eedecab5d149018b6fc6786c77dfa2b69df38 | 3,345 | hpp | C++ | core/src/Concurrency/WorkStealingDeque.hpp | hhsaez/crimild | e3efee09489939338df55e8af9a1f9ddc01301f7 | [
"BSD-3-Clause"
] | 36 | 2015-03-12T10:42:36.000Z | 2022-01-12T04:20:40.000Z | core/src/Concurrency/WorkStealingDeque.hpp | hhsaez/crimild | e3efee09489939338df55e8af9a1f9ddc01301f7 | [
"BSD-3-Clause"
] | 1 | 2015-12-17T00:25:43.000Z | 2016-02-20T12:00:57.000Z | core/src/Concurrency/WorkStealingDeque.hpp | hhsaez/crimild | e3efee09489939338df55e8af9a1f9ddc01301f7 | [
"BSD-3-Clause"
] | 6 | 2017-06-17T07:57:53.000Z | 2019-04-09T21:11:24.000Z | /*
* Copyright (c) 2013, Hernan Saez
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
* * Redistributions of source code must retain the above copyright
* notice, this list of con... | 25.534351 | 85 | 0.666966 | hhsaez |
3d503972a27766dc485dce2235b71ab7dbf26d4e | 2,983 | hpp | C++ | include/customWidgets.hpp | mousepawgames/infiltrator | b99152c31bebb683ea28c990e7d10e8bee0ffeb5 | [
"MIT"
] | null | null | null | include/customWidgets.hpp | mousepawgames/infiltrator | b99152c31bebb683ea28c990e7d10e8bee0ffeb5 | [
"MIT"
] | null | null | null | include/customWidgets.hpp | mousepawgames/infiltrator | b99152c31bebb683ea28c990e7d10e8bee0ffeb5 | [
"MIT"
] | null | null | null | #ifndef CUSTOMWIDGETS_H
#define CUSTOMWIDGETS_H
#include <glibmm.h>
#include <gtkmm/box.h>
#include <gtkmm/button.h>
#include <gtkmm/entry.h>
#include <gtkmm/grid.h>
#include <gtkmm/label.h>
#include <gtkmm/liststore.h>
#include <gtkmm/notebook.h>
#include <gtkmm/scrolledwindow.h>
#include <gtkmm/spinbutton.h>
#includ... | 27.118182 | 104 | 0.624874 | mousepawgames |
3d50b7065737a577030b503e50480d9a2b218d4b | 18,731 | cpp | C++ | thirdparty/qtiplot/qtiplot/src/plot2D/QwtPieCurve.cpp | hoehnp/SpaceDesignTool | 9abd34048274b2ce9dbbb685124177b02d6a34ca | [
"IJG"
] | 6 | 2018-09-05T12:41:59.000Z | 2021-07-01T05:34:23.000Z | thirdparty/qtiplot/qtiplot/src/plot2D/QwtPieCurve.cpp | hoehnp/SpaceDesignTool | 9abd34048274b2ce9dbbb685124177b02d6a34ca | [
"IJG"
] | 2 | 2015-02-07T19:09:21.000Z | 2015-08-14T03:15:42.000Z | thirdparty/qtiplot/qtiplot/src/plot2D/QwtPieCurve.cpp | hoehnp/SpaceDesignTool | 9abd34048274b2ce9dbbb685124177b02d6a34ca | [
"IJG"
] | 2 | 2015-03-25T15:50:31.000Z | 2017-12-06T12:16:47.000Z | /***************************************************************************
File : QwtPieCurve.cpp
Project : QtiPlot
--------------------------------------------------------------------
Copyright : (C) 2004 - 2008 by Ion Vasilie
Email (use @ for *) : ion_vas... | 32.861404 | 121 | 0.559767 | hoehnp |
3d51c7983e152fb7ebb899aa17f569f836d3f915 | 2,193 | cpp | C++ | common/utility/src/Random.cpp | cbtek/SourceGen | 6593300c658529acb06b83982bbc9e698c270aeb | [
"MIT"
] | null | null | null | common/utility/src/Random.cpp | cbtek/SourceGen | 6593300c658529acb06b83982bbc9e698c270aeb | [
"MIT"
] | 3 | 2017-07-12T17:10:52.000Z | 2017-09-21T19:06:59.000Z | common/utility/src/Random.cpp | cbtek/SourceGen | 6593300c658529acb06b83982bbc9e698c270aeb | [
"MIT"
] | null | null | null | /**
MIT License
Copyright (c) 2016 cbtek
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish,... | 26.107143 | 83 | 0.657091 | cbtek |
3d51edcab14180336fe7a0ec20437ab8fa878aff | 5,581 | cpp | C++ | test/asmjit_test_instinfo.cpp | clayne/asmjit | a4cb51b532af0f8137c4182914244c3b05d7745f | [
"Zlib"
] | 2,354 | 2016-07-13T16:08:25.000Z | 2022-03-31T13:28:02.000Z | test/asmjit_test_instinfo.cpp | clayne/asmjit | a4cb51b532af0f8137c4182914244c3b05d7745f | [
"Zlib"
] | 223 | 2016-07-14T17:32:11.000Z | 2022-03-31T23:02:01.000Z | test/asmjit_test_instinfo.cpp | clayne/asmjit | a4cb51b532af0f8137c4182914244c3b05d7745f | [
"Zlib"
] | 386 | 2016-07-23T09:02:14.000Z | 2022-03-09T14:04:43.000Z | // This file is part of AsmJit project <https://asmjit.com>
//
// See asmjit.h or LICENSE.md for license and copyright information
// SPDX-License-Identifier: Zlib
#include <asmjit/core.h>
#if !defined(ASMJIT_NO_X86)
#include <asmjit/x86.h>
#endif
#include <stdio.h>
using namespace asmjit;
static char accessLetter... | 30.664835 | 116 | 0.623186 | clayne |
3d57a98f65827c5eed3086f37bd2006c5e2e8017 | 5,765 | cpp | C++ | dependencies/PyMesh/src/IO/MSHWriter.cpp | aprieels/3D-watermarking-spectral-decomposition | dcab78857d0bb201563014e58900917545ed4673 | [
"MIT"
] | 5 | 2018-06-04T19:52:02.000Z | 2022-01-22T09:04:00.000Z | dependencies/PyMesh/src/IO/MSHWriter.cpp | aprieels/3D-watermarking-spectral-decomposition | dcab78857d0bb201563014e58900917545ed4673 | [
"MIT"
] | null | null | null | dependencies/PyMesh/src/IO/MSHWriter.cpp | aprieels/3D-watermarking-spectral-decomposition | dcab78857d0bb201563014e58900917545ed4673 | [
"MIT"
] | null | null | null | /* This file is part of PyMesh. Copyright (c) 2015 by Qingnan Zhou */
#include "MSHWriter.h"
#include <iostream>
#include <fstream>
#include <sstream>
#include <Core/Exception.h>
#include <Mesh.h>
#include "MshSaver.h"
using namespace PyMesh;
namespace MSHWriterHelper {
bool positive_orientated(
co... | 33.132184 | 91 | 0.593235 | aprieels |
3d5ee2d326c15b3272690bdeec6bab5df65723a1 | 493 | cpp | C++ | module-services/service-eink/messages/PrepareDisplayEarlyRequest.cpp | bitigchi/MuditaOS | 425d23e454e09fd6ae274b00f8d19c57a577aa94 | [
"BSL-1.0"
] | 369 | 2021-11-10T09:20:29.000Z | 2022-03-30T06:36:58.000Z | module-services/service-eink/messages/PrepareDisplayEarlyRequest.cpp | bitigchi/MuditaOS | 425d23e454e09fd6ae274b00f8d19c57a577aa94 | [
"BSL-1.0"
] | 149 | 2021-11-10T08:38:35.000Z | 2022-03-31T23:01:52.000Z | module-services/service-eink/messages/PrepareDisplayEarlyRequest.cpp | bitigchi/MuditaOS | 425d23e454e09fd6ae274b00f8d19c57a577aa94 | [
"BSL-1.0"
] | 41 | 2021-11-10T08:30:37.000Z | 2022-03-29T08:12:46.000Z | // Copyright (c) 2017-2021, Mudita Sp. z.o.o. All rights reserved.
// For licensing, see https://github.com/mudita/MuditaOS/LICENSE.md
#include "PrepareDisplayEarlyRequest.hpp"
namespace service::eink
{
PrepareDisplayEarlyRequest::PrepareDisplayEarlyRequest(::gui::RefreshModes refreshMode) : refreshMode{refreshMo... | 30.8125 | 118 | 0.736308 | bitigchi |
87cd1e4d0bf748e83996eb33a10dc83ae7fe5d80 | 27,476 | cpp | C++ | Sample/MultiPipelines/MultiPipelines.cpp | po2xel/vkpp | 04cf67cefa4e967fc234378da06366d66447c335 | [
"MIT"
] | 5 | 2017-04-05T13:29:40.000Z | 2018-04-10T21:04:51.000Z | Sample/MultiPipelines/MultiPipelines.cpp | po2xel/vkpp | 04cf67cefa4e967fc234378da06366d66447c335 | [
"MIT"
] | null | null | null | Sample/MultiPipelines/MultiPipelines.cpp | po2xel/vkpp | 04cf67cefa4e967fc234378da06366d66447c335 | [
"MIT"
] | null | null | null | #include "MultiPipelines.h"
#include <iostream>
namespace vkpp::sample
{
decltype(auto) SetEnabledFeatures(const vkpp::PhysicalDeviceFeatures& aPhysicalDeviceFeatures)
{
vkpp::PhysicalDeviceFeatures lEnabledFeatures{};
// Fill mode non-solid is required for wire frame display.
if (aPhysicalDeviceFea... | 32.787589 | 206 | 0.70396 | po2xel |
87d4991530f3e0f2f835f9213fb87f8ac0f1af25 | 2,483 | cpp | C++ | RealSpace2/Samples/rs2testwf.cpp | WhyWolfie/source2007 | 324257e9c69bbaec872ebb7ae4f96ab2ce98f520 | [
"FSFAP"
] | null | null | null | RealSpace2/Samples/rs2testwf.cpp | WhyWolfie/source2007 | 324257e9c69bbaec872ebb7ae4f96ab2ce98f520 | [
"FSFAP"
] | null | null | null | RealSpace2/Samples/rs2testwf.cpp | WhyWolfie/source2007 | 324257e9c69bbaec872ebb7ae4f96ab2ce98f520 | [
"FSFAP"
] | null | null | null | #include <windows.h>
#include "MDebug.h"
#include "RealSpace2.h"
#include "RMaterialList.h"
#include "RRoam.h"
_USING_NAMESPACE_REALSPACE2
Landscape g_map;
const int size=1024;
unsigned char buffer[size*size+size*2];
RRESULT InitScene(void *param)
{
InitLog();
FILE *file=fopen("Height1024.raw","rb");
fread(buf... | 23.205607 | 112 | 0.730971 | WhyWolfie |
87d4acf297378085da459b640471a243fe6a2f92 | 1,178 | hpp | C++ | include/opengv/optimization_tools/objective_function_tools/Plane3P3DRegistrationFunctionInfo.hpp | mateus03/2018AMMPoseSolver | 787886846199cd0864c4e59a6545c40c3120010a | [
"BSD-3-Clause"
] | null | null | null | include/opengv/optimization_tools/objective_function_tools/Plane3P3DRegistrationFunctionInfo.hpp | mateus03/2018AMMPoseSolver | 787886846199cd0864c4e59a6545c40c3120010a | [
"BSD-3-Clause"
] | null | null | null | include/opengv/optimization_tools/objective_function_tools/Plane3P3DRegistrationFunctionInfo.hpp | mateus03/2018AMMPoseSolver | 787886846199cd0864c4e59a6545c40c3120010a | [
"BSD-3-Clause"
] | null | null | null | #ifndef PLANE3P3DREGISTRATIONFUNCTIONINFO_H
#define PLANE3P3DREGISTRATIONFUNCTIONINFO_H
#include <opengv/optimization_tools/objective_function_tools/ObjectiveFunctionInfo.hpp>
#include <opengv/registration/PlaneRegistrationAdapter.hpp>
#include <opengv/types.hpp>
#include <iostream>
class Plane3P3DRegistrationFunctio... | 34.647059 | 100 | 0.760611 | mateus03 |
87d79b889f4a0561b15409ad00d9b4c124d107ab | 5,193 | cpp | C++ | nodes/VelocityEstimationNode_ConstAccUKF.cpp | RobertMilijas/uav_ros_general | d9ef09e2da4802891296a9410e5031675c09c066 | [
"BSD-3-Clause"
] | 1 | 2021-12-20T13:43:22.000Z | 2021-12-20T13:43:22.000Z | nodes/VelocityEstimationNode_ConstAccUKF.cpp | RobertMilijas/uav_ros_general | d9ef09e2da4802891296a9410e5031675c09c066 | [
"BSD-3-Clause"
] | 4 | 2020-12-21T15:15:13.000Z | 2021-06-16T10:40:29.000Z | nodes/VelocityEstimationNode_ConstAccUKF.cpp | RobertMilijas/uav_ros_general | d9ef09e2da4802891296a9410e5031675c09c066 | [
"BSD-3-Clause"
] | 2 | 2021-02-15T13:35:18.000Z | 2021-05-24T12:44:18.000Z | #include <boost/array.hpp>
#include <uav_ros_lib/estimation/constant_acceleration_ukf.hpp>
#include <geometry_msgs/PoseStamped.h>
#include <list>
#include <nav_msgs/Odometry.h>
#include <sensor_msgs/Imu.h>
int main(int argc, char **argv) {
ros::init(argc, argv, "velocity_estimation_node");
ros::NodeHandle nhPriva... | 45.552632 | 79 | 0.706528 | RobertMilijas |
87dbdaefa11f64f8a235df3256b97dcb289d2165 | 9,678 | hh | C++ | src/mmutil_filter_row.hh | YPARK/mmutil | 21729fc50ac4cefff58c1b71e8c5740d2045b111 | [
"MIT"
] | null | null | null | src/mmutil_filter_row.hh | YPARK/mmutil | 21729fc50ac4cefff58c1b71e8c5740d2045b111 | [
"MIT"
] | null | null | null | src/mmutil_filter_row.hh | YPARK/mmutil | 21729fc50ac4cefff58c1b71e8c5740d2045b111 | [
"MIT"
] | null | null | null | #include <getopt.h>
#include "mmutil.hh"
#include "mmutil_io.hh"
#include "mmutil_stat.hh"
#include "mmutil_score.hh"
#ifndef MMUTIL_FILTER_ROW_HH_
#define MMUTIL_FILTER_ROW_HH_
template <typename OPTIONS>
int filter_row_by_score(OPTIONS &options);
struct filter_row_options_t {
typedef enum { NNZ, MEAN, CV, SD... | 27.971098 | 80 | 0.553007 | YPARK |
87df44c7848b0548eda13ec89b3c9bb17ae09b19 | 690 | hpp | C++ | src/PeriTypes/Sensor.hpp | nemo9955/RemPeripherals | b1c97f209965ed0dd4cebfe5dbfc3298bf8e5860 | [
"Apache-2.0"
] | null | null | null | src/PeriTypes/Sensor.hpp | nemo9955/RemPeripherals | b1c97f209965ed0dd4cebfe5dbfc3298bf8e5860 | [
"Apache-2.0"
] | null | null | null | src/PeriTypes/Sensor.hpp | nemo9955/RemPeripherals | b1c97f209965ed0dd4cebfe5dbfc3298bf8e5860 | [
"Apache-2.0"
] | null | null | null | #ifndef SENSOR_HPP
#define SENSOR_HPP
#include <stdint.h>
#include "SimpleList.h"
#include "SensorReading.hpp"
class Sensor
{
public:
Sensor()
{
sensorsList.push_back(this);
};
virtual uint32_t get_peri_uuid() = 0;
virtual const char *get_sensor_name() const = 0;
virtual int read_va... | 20.294118 | 85 | 0.675362 | nemo9955 |
87e331558166674138bd74c4bbfc5ac03acb220d | 758 | cpp | C++ | relacy/dyn_thread.cpp | pereckerdal/relacy | 05d8a8fbb0b3600ff5bf34da0bab2bb148dff059 | [
"BSD-3-Clause"
] | 1 | 2020-05-30T13:06:12.000Z | 2020-05-30T13:06:12.000Z | relacy/dyn_thread.cpp | pereckerdal/relacy | 05d8a8fbb0b3600ff5bf34da0bab2bb148dff059 | [
"BSD-3-Clause"
] | null | null | null | relacy/dyn_thread.cpp | pereckerdal/relacy | 05d8a8fbb0b3600ff5bf34da0bab2bb148dff059 | [
"BSD-3-Clause"
] | null | null | null | /* Relacy Race Detector
* Copyright (c) 2008-2013, Dmitry S. Vyukov
* All rights reserved.
* This software is provided AS-IS with no warranty, either express or implied.
* This software is distributed under a license and may not be copied,
* modified or distributed except as expressly authorized under the
*... | 21.055556 | 80 | 0.691293 | pereckerdal |
87e46074782715fbcf6ee032cd28ab6c633b4cb2 | 341 | cpp | C++ | src/Main.cpp | SMelanko/BattleCity | 7d0042561f97ee9d1b61e027b1dd451494eaefee | [
"MIT"
] | null | null | null | src/Main.cpp | SMelanko/BattleCity | 7d0042561f97ee9d1b61e027b1dd451494eaefee | [
"MIT"
] | null | null | null | src/Main.cpp | SMelanko/BattleCity | 7d0042561f97ee9d1b61e027b1dd451494eaefee | [
"MIT"
] | null | null | null | #include "include/Game.h"
#include <QDebug>
int main(int argc, char *argv[])
{
QCoreApplication::setAttribute(Qt::AA_EnableHighDpiScaling);
try {
return Game{ argc, argv }.exec();
} catch (const std::exception& e) {
qDebug() << e.what();
} catch (...) {
qDebug() << QStringLiteral("Unhandled exception has b... | 20.058824 | 70 | 0.656891 | SMelanko |
87e6e92b2418a88e84995b5f494038971eb851d8 | 1,201 | cpp | C++ | src/0844/0844-Backspace-String-Compare-UnitTest.cpp | coldnew/leetcode-solutions | 3bc7943f8341397840ecd34aefc5af6e52b09b4e | [
"Unlicense"
] | 2 | 2022-03-10T17:06:18.000Z | 2022-03-11T08:52:00.000Z | src/0844/0844-Backspace-String-Compare-UnitTest.cpp | coldnew/leetcode-solutions | 3bc7943f8341397840ecd34aefc5af6e52b09b4e | [
"Unlicense"
] | null | null | null | src/0844/0844-Backspace-String-Compare-UnitTest.cpp | coldnew/leetcode-solutions | 3bc7943f8341397840ecd34aefc5af6e52b09b4e | [
"Unlicense"
] | null | null | null | #include "0844-Backspace-String-Compare.cpp"
#include <gtest/gtest.h>
#define LEETCODE_TEST(SolutionX) \
TEST(BackspaceStringCompareTest, SolutionX##_01) { \
SolutionX solution; \
std::string s = "ab#c"; \
std::string t = "ad#c"; ... | 44.481481 | 54 | 0.38801 | coldnew |
87e78c9c01ef814c78bb1b960e17f9b5ea84f227 | 6,971 | hpp | C++ | system/GlobalAllocator.hpp | EvilMcJerkface/grappa | 69f2f3674d6f8e512e0bf55264bb75b972fd82de | [
"BSD-3-Clause"
] | 144 | 2015-01-16T01:53:24.000Z | 2022-02-27T21:59:09.000Z | system/GlobalAllocator.hpp | EvilMcJerkface/grappa | 69f2f3674d6f8e512e0bf55264bb75b972fd82de | [
"BSD-3-Clause"
] | 79 | 2015-01-01T00:32:30.000Z | 2021-07-06T12:26:08.000Z | system/GlobalAllocator.hpp | EvilMcJerkface/grappa | 69f2f3674d6f8e512e0bf55264bb75b972fd82de | [
"BSD-3-Clause"
] | 53 | 2015-02-02T17:55:46.000Z | 2022-03-08T09:35:16.000Z | ////////////////////////////////////////////////////////////////////////
// Copyright (c) 2010-2015, University of Washington and Battelle
// Memorial Institute. All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following cond... | 35.93299 | 98 | 0.682972 | EvilMcJerkface |
87e7b9dffaa130bdb830863c5ca11e02d1e1fb36 | 5,176 | cpp | C++ | src/viplist.cpp | Nakeib/RonClient | 9e816c580ec2a6f1b15fdefd8e15ad62647ca29f | [
"MIT"
] | 11 | 2020-11-07T19:35:24.000Z | 2021-08-19T12:25:27.000Z | src/viplist.cpp | Nakeib/RonClient | 9e816c580ec2a6f1b15fdefd8e15ad62647ca29f | [
"MIT"
] | null | null | null | src/viplist.cpp | Nakeib/RonClient | 9e816c580ec2a6f1b15fdefd8e15ad62647ca29f | [
"MIT"
] | 5 | 2020-11-06T20:52:11.000Z | 2021-02-25T11:02:31.000Z | /* -------------------------------------------------------------------------- */
/* ------------- RonClient --- Oficial client for RonOTS servers ------------ */
/* -------------------------------------------------------------------------- */
#include "viplist.h"
#include "allocator.h"
#include "creature.h"
#include ... | 27.386243 | 91 | 0.680255 | Nakeib |
87e7be107549467a30f19389059476637237fe6f | 4,317 | cc | C++ | caffe2/operators/summarize_op_hipdev.cc | ashishfarmer/rocm-caffe2 | 097fe3f71b0e4311340ff7eb797ed6c351073d54 | [
"Apache-2.0"
] | 12 | 2018-04-14T22:00:51.000Z | 2018-07-26T16:44:20.000Z | caffe2/operators/summarize_op_hipdev.cc | ashishfarmer/rocm-caffe2 | 097fe3f71b0e4311340ff7eb797ed6c351073d54 | [
"Apache-2.0"
] | 27 | 2018-04-14T06:44:22.000Z | 2018-08-01T18:02:39.000Z | caffe2/operators/summarize_op_hipdev.cc | ashishfarmer/rocm-caffe2 | 097fe3f71b0e4311340ff7eb797ed6c351073d54 | [
"Apache-2.0"
] | 2 | 2018-04-16T20:46:16.000Z | 2018-06-01T21:00:10.000Z | /**
* Copyright (c) 2016-present, Facebook, 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/LICENSE-2.0
*
* Unless required by applicable ... | 31.510949 | 99 | 0.615242 | ashishfarmer |
87ee1f1ce6d84e0e971d1f07d3d50b2a8b9e0431 | 671 | cpp | C++ | Source/SFXUtilities/Utilities/FMathUtils.cpp | pro100watt/VolumetricAmbientDemo | 3a0f877e51ca59984c1638a6592c55b5bb8e56b1 | [
"MIT"
] | null | null | null | Source/SFXUtilities/Utilities/FMathUtils.cpp | pro100watt/VolumetricAmbientDemo | 3a0f877e51ca59984c1638a6592c55b5bb8e56b1 | [
"MIT"
] | null | null | null | Source/SFXUtilities/Utilities/FMathUtils.cpp | pro100watt/VolumetricAmbientDemo | 3a0f877e51ca59984c1638a6592c55b5bb8e56b1 | [
"MIT"
] | null | null | null | #include "FMathUtils.h"
#include "Math/Vector2D.h"
namespace Utils
{
namespace FMathExt
{
bool IsInsideTriangle2D(const FVector2D& A, const FVector2D& B, const FVector2D& C, const FVector2D& Point)
{
FVector2D ALocal = A - C;
FVector2D BLocal = B - C;
FVector2D PointLocal = Point - C;
return IsInsi... | 22.366667 | 109 | 0.66766 | pro100watt |
87f25ce11aa13e0204711b73553d5baa425c2f36 | 1,137 | cc | C++ | mycode/cpp/rvlue_SmartPointer/smartPointer.cc | stdbilly/CS_Note | a8a87e135a525d53c283a4c70fb942c9ca59a758 | [
"MIT"
] | 2 | 2020-12-09T09:55:51.000Z | 2021-01-08T11:38:22.000Z | mycode/cpp/rvlue_SmartPointer/smartPointer.cc | stdbilly/CS_Note | a8a87e135a525d53c283a4c70fb942c9ca59a758 | [
"MIT"
] | null | null | null | mycode/cpp/rvlue_SmartPointer/smartPointer.cc | stdbilly/CS_Note | a8a87e135a525d53c283a4c70fb942c9ca59a758 | [
"MIT"
] | null | null | null | #include <iostream>
using std::cout;
using std::endl;
template<typename T>
class SmartPointer {
public:
SmartPointer(T* p) : _p(p) {}
T* operator->() {
return _p;
}
T& operator*() {
return *_p;
}
T* get() {
return _p;
}
void reset(T* p) {
delete _p;
... | 14.766234 | 75 | 0.441513 | stdbilly |
87f3f49a9bb513dc0ecbbba5b880c84e82e815db | 1,607 | cpp | C++ | Source/TreeSearch/PriorProbability.cpp | StuartRiffle/corvid | 21fbea9bf585f3713354f33a205e9fd8b96da555 | [
"MIT"
] | 6 | 2019-05-29T03:22:41.000Z | 2021-03-02T09:08:16.000Z | Source/TreeSearch/PriorProbability.cpp | StuartRiffle/corvid | 21fbea9bf585f3713354f33a205e9fd8b96da555 | [
"MIT"
] | 1 | 2019-05-29T16:15:55.000Z | 2019-05-29T16:15:55.000Z | Source/TreeSearch/PriorProbability.cpp | StuartRiffle/corvid | 21fbea9bf585f3713354f33a205e9fd8b96da555 | [
"MIT"
] | null | null | null | // JAGLAVAK CHESS ENGINE (c) 2019 Stuart Riffle
#include "Jaglavak.h"
#include "TreeSearch.h"
#include "FEN.h"
#include <boost/property_tree/ptree.hpp>
#include <boost/property_tree/json_parser.hpp>
using namespace boost;
namespace pt = property_tree;
#include "RpcClient.h"
void TreeSearch::EstimatePriors( TreeNod... | 29.759259 | 93 | 0.583696 | StuartRiffle |
87f975ec8a77a7396a33f198ac3a8e6207b29056 | 2,776 | hpp | C++ | include/response.hpp | pgul/fastlst | ce07baa06b0063f4c9e1374f24e67e1316ee5af4 | [
"BSD-3-Clause"
] | 2 | 2018-01-14T02:49:46.000Z | 2021-04-11T11:29:11.000Z | include/response.hpp | pgul/fastlst | ce07baa06b0063f4c9e1374f24e67e1316ee5af4 | [
"BSD-3-Clause"
] | null | null | null | include/response.hpp | pgul/fastlst | ce07baa06b0063f4c9e1374f24e67e1316ee5af4 | [
"BSD-3-Clause"
] | 1 | 2018-01-10T19:44:14.000Z | 2018-01-10T19:44:14.000Z | /*****************************************************************************/
/* */
/* (C) Copyright 1991-1997 Alberto Pasquale */
/* */
... | 41.432836 | 90 | 0.355187 | pgul |
87f9a50ea207400c103ebda8ea094d0cdd32ac8c | 1,818 | cpp | C++ | dad.cpp | nmoehrle/dad | 3f6453368a7ca709ae58be1cf8bb3a66dee71ea9 | [
"BSD-3-Clause"
] | 1 | 2020-11-23T17:31:08.000Z | 2020-11-23T17:31:08.000Z | dad.cpp | nmoehrle/dad | 3f6453368a7ca709ae58be1cf8bb3a66dee71ea9 | [
"BSD-3-Clause"
] | null | null | null | dad.cpp | nmoehrle/dad | 3f6453368a7ca709ae58be1cf8bb3a66dee71ea9 | [
"BSD-3-Clause"
] | null | null | null | /*
* Copyright (C) 2018, Nils Moehrle
* All rights reserved.
*
* This software may be modified and distributed under the terms
* of the BSD 3-Clause license. See the LICENSE.txt file for details.
*/
#include <QApplication>
#include <QDrag>
#include <QFileInfo>
#include <QLabel>
#include <QMimeData>
#include <QSi... | 23.61039 | 90 | 0.588559 | nmoehrle |
87fa386fcae8872b4912d097c8eb152807332d1a | 103,061 | cpp | C++ | src/clocktree.cpp | eric830303/MAUI-Making-Aging-Useful-Intentionally- | 0a55385057708b08d83169b32475266c093b94bc | [
"MIT"
] | null | null | null | src/clocktree.cpp | eric830303/MAUI-Making-Aging-Useful-Intentionally- | 0a55385057708b08d83169b32475266c093b94bc | [
"MIT"
] | null | null | null | src/clocktree.cpp | eric830303/MAUI-Making-Aging-Useful-Intentionally- | 0a55385057708b08d83169b32475266c093b94bc | [
"MIT"
] | null | null | null | //////////////////////////////////////////////////////////////
//
// Source File
//
// File name: clocktree.cpp
// Author: Ting-Wei Chang
// Date: 2017-07
//
//////////////////////////////////////////////////////////////
#include "clocktree.h"
#include <iterator>
#include <fstream>
#include <queue>
#include <fcntl.h>
... | 35.090569 | 183 | 0.585905 | eric830303 |
e2008d82df1cc5f4c02624bdc9428e0024ff98f2 | 3,374 | cpp | C++ | src/ModbusComms/ModbusException.cpp | zhanghongzhi1234/ModbusServerAgent | 2e3bc1e7ef9830331bc2aae697000fecc924a715 | [
"Apache-2.0"
] | null | null | null | src/ModbusComms/ModbusException.cpp | zhanghongzhi1234/ModbusServerAgent | 2e3bc1e7ef9830331bc2aae697000fecc924a715 | [
"Apache-2.0"
] | null | null | null | src/ModbusComms/ModbusException.cpp | zhanghongzhi1234/ModbusServerAgent | 2e3bc1e7ef9830331bc2aae697000fecc924a715 | [
"Apache-2.0"
] | null | null | null | #include "ModbusException.h"
#include "../Utilities/TAAssert.h"
#include <sstream>
#include <string>
#ifdef _WIN32
#include <yvals.h> // warning numbers get enabled in yvals.h
#pragma warning(disable: 4715) // not all control paths return a value
#endif //_WIN32
using TA_Base_Core::BaseExcept... | 25.755725 | 87 | 0.763485 | zhanghongzhi1234 |
e203ea0a1c00fa15d3876e1ffe8d401c16c18701 | 416 | hpp | C++ | path.hpp | andybarry/peekmill | d990877ef943a791f66d19ed897f1421b8e6e0ea | [
"BSD-3-Clause"
] | 1 | 2016-08-22T13:46:32.000Z | 2016-08-22T13:46:32.000Z | path.hpp | andybarry/peekmill | d990877ef943a791f66d19ed897f1421b8e6e0ea | [
"BSD-3-Clause"
] | null | null | null | path.hpp | andybarry/peekmill | d990877ef943a791f66d19ed897f1421b8e6e0ea | [
"BSD-3-Clause"
] | null | null | null | #ifndef PATH_HPP
#define PATH_HPP
#include <opencv2/core/core.hpp>
#include <vector>
#include <iostream>
using namespace std;
using namespace cv;
class Path{
private:
Point2f path_start_;
float units_;
vector<Point2f> coords_; //like java generics
public:
Point2f GetPathStart(){return path_start_;}
float G... | 16 | 47 | 0.725962 | andybarry |
e2050c55b5ad0efa8af19c8c4913c54c1a7d0cf0 | 4,341 | cpp | C++ | lib/ZumoShield/ZumoShieldEncoders.cpp | Wataru-Oshima-Tokyo/zumoShield | 7d1c24c8fc6e3c95fe326923cf48215604ad3fc7 | [
"MIT"
] | null | null | null | lib/ZumoShield/ZumoShieldEncoders.cpp | Wataru-Oshima-Tokyo/zumoShield | 7d1c24c8fc6e3c95fe326923cf48215604ad3fc7 | [
"MIT"
] | null | null | null | lib/ZumoShield/ZumoShieldEncoders.cpp | Wataru-Oshima-Tokyo/zumoShield | 7d1c24c8fc6e3c95fe326923cf48215604ad3fc7 | [
"MIT"
] | null | null | null | // Copyright Pololu Corporation. For more information, see http://www.pololu.com/
#include <ZumoShieldEncoders.h>
#include <FastGPIO.h>
#include <avr/interrupt.h>
#include <Arduino.h>
#define LEFT_XOR 8
#define LEFT_B IO_E2
#define RIGHT_XOR 7
#define RIGHT_B 23
#define RIGHT_CNT_FLAG 0x0001
#define LEFT_C... | 23.464865 | 82 | 0.647086 | Wataru-Oshima-Tokyo |
e205c4c55429116611d8dde8aa76508a5d462f35 | 1,692 | cc | C++ | src/common/base/time_test.cc | hangqiu/pixie | 1dd4af47d40ff856c4d52a1d6de81f78a76ff31e | [
"Apache-2.0"
] | 1,821 | 2020-04-08T00:45:27.000Z | 2021-09-01T14:56:25.000Z | src/common/base/time_test.cc | hangqiu/pixie | 1dd4af47d40ff856c4d52a1d6de81f78a76ff31e | [
"Apache-2.0"
] | 142 | 2020-04-09T06:23:46.000Z | 2021-08-24T06:02:12.000Z | src/common/base/time_test.cc | hangqiu/pixie | 1dd4af47d40ff856c4d52a1d6de81f78a76ff31e | [
"Apache-2.0"
] | 105 | 2021-09-08T10:26:50.000Z | 2022-03-29T09:13:36.000Z | /*
* Copyright 2018- The Pixie Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or ag... | 32.538462 | 83 | 0.74409 | hangqiu |
e206e29c72baee3fd6a679c5b12cfab20e8e7c49 | 418 | cpp | C++ | Challenges/C++/ex2.cpp | ifyGecko/RE_Challenges | a7a86481d9a75d0dde81de77716ea42c81ce3d69 | [
"Unlicense"
] | 5 | 2019-08-24T00:19:42.000Z | 2020-09-26T14:21:07.000Z | Challenges/C++/ex2.cpp | DJN1/RE_Challenges-1 | 4bc66ed6d8765f044322b297b69a156e2385d19f | [
"Unlicense"
] | 1 | 2022-02-16T18:05:15.000Z | 2022-02-16T18:05:15.000Z | Challenges/C++/ex2.cpp | DJN1/RE_Challenges-1 | 4bc66ed6d8765f044322b297b69a156e2385d19f | [
"Unlicense"
] | 9 | 2019-08-31T21:10:31.000Z | 2020-09-14T23:13:10.000Z | #include<iostream>
#include<cstdlib>
using namespace std;
class a{
public:
int b;
a(){ b=2019; };
};
int main(int argc, char** argv){
a c;
if(argc !=2){
cout << "Usage: ./prog input\n";
cout << "Hint: ./prog -h\n";
}else if(argv[1]==string("-h")){
cout << "Classes might need to undergo construc... | 17.416667 | 60 | 0.557416 | ifyGecko |
e20956abe78d0338cd55dac2fa01cca43e31856c | 503 | cc | C++ | function_ref/snippets/snippet-function_ref-spec-rev.cc | descender76/cpp_proposals | 2eb7e2f59257b376dadd1b66464e076c3de23ab1 | [
"BSL-1.0"
] | 1 | 2022-01-21T20:10:46.000Z | 2022-01-21T20:10:46.000Z | function_ref/snippets/snippet-function_ref-spec-rev.cc | descender76/cpp_proposals | 2eb7e2f59257b376dadd1b66464e076c3de23ab1 | [
"BSL-1.0"
] | null | null | null | function_ref/snippets/snippet-function_ref-spec-rev.cc | descender76/cpp_proposals | 2eb7e2f59257b376dadd1b66464e076c3de23ab1 | [
"BSL-1.0"
] | null | null | null | //
namespace std
{
template <typename Signature>
class function_ref
{
void* erased_object;
R(*erased_function)(void*, Args...);
// `R`, and `Args...` are the return type, and the parameter-type-list,
// of the function type `Signature`, respectively.
public:
fun... | 31.4375 | 125 | 0.630219 | descender76 |
e20b30fbf131c7e7f69f867433bdfef197d5a881 | 1,195 | hpp | C++ | kjoin/src/util/util_func.hpp | lanpay-lulu/CPP-Intersection | 2326a9f46a4d75d11ca0e20adab91b0acb8bcea0 | [
"MIT"
] | null | null | null | kjoin/src/util/util_func.hpp | lanpay-lulu/CPP-Intersection | 2326a9f46a4d75d11ca0e20adab91b0acb8bcea0 | [
"MIT"
] | null | null | null | kjoin/src/util/util_func.hpp | lanpay-lulu/CPP-Intersection | 2326a9f46a4d75d11ca0e20adab91b0acb8bcea0 | [
"MIT"
] | null | null | null | #pragma once
#include <string>
#include <vector>
#include <fstream>
#include <sys/time.h>
namespace wshfunc{
size_t get_line_cnt(std::string & filename) {
std::ifstream infile(filename);
size_t cnt = std::count(std::istreambuf_iterator<char>(infile),
std::istreambuf_iterator<char>(), '\n');
... | 22.54717 | 72 | 0.661088 | lanpay-lulu |
e20e3b57956618c03b09418745bb03ff0b3989bd | 4,484 | cpp | C++ | src/arch/android/platform_android.cpp | nebular/PixEngine_core | fc5f928641ed8c0d14254fdfc68973b3b144297f | [
"BSD-3-Clause"
] | 1 | 2020-10-23T21:16:49.000Z | 2020-10-23T21:16:49.000Z | src/arch/android/platform_android.cpp | nebular/PixEngine_core | fc5f928641ed8c0d14254fdfc68973b3b144297f | [
"BSD-3-Clause"
] | 2 | 2020-03-02T22:43:09.000Z | 2020-03-02T22:46:44.000Z | src/arch/android/platform_android.cpp | nebular/PixFu | fc5f928641ed8c0d14254fdfc68973b3b144297f | [
"BSD-3-Clause"
] | null | null | null | #ifdef ANDROID
//
// Created by rodo on 2020-01-24.
//
#include "Fu.hpp"
#include "Mouse.hpp"
#include "Keyboard.hpp"
#include "platform_android.hpp"
#include "OpenGlUtils.h"
#include "Utils.hpp"
#include "androidapi.h"
#include "VirtualKeys.hpp"
#include <iostream>
namespace Pix {
void LogV(const std::string &ta... | 25.919075 | 161 | 0.695584 | nebular |
e20f94442b3d6cf4ae6ef4cb320e22ad706dee5f | 11,268 | cpp | C++ | SphereNormals.cpp | Svengali/cblib | 77ddfd452cff842575750b9e6d792790f5ec5fee | [
"Zlib"
] | 1 | 2021-05-01T04:34:24.000Z | 2021-05-01T04:34:24.000Z | SphereNormals.cpp | Svengali/cblib | 77ddfd452cff842575750b9e6d792790f5ec5fee | [
"Zlib"
] | null | null | null | SphereNormals.cpp | Svengali/cblib | 77ddfd452cff842575750b9e6d792790f5ec5fee | [
"Zlib"
] | null | null | null | #include "SphereNormals.h"
/**
this is generated by gMakeSphere::Normals()
**/
START_CB
const int c_numSphereNormals = 258;
const int c_numSpherePositiveNormals = 42;
static const float c_sphereVerts[] =
{
0.426401f,0.639602f,0.639602f,
0.639602f,0.639602f,0.426401f,
0.639602f,0.426401f,0.639602f,
0.408248f,0.81... | 30.454054 | 83 | 0.741392 | Svengali |
e20fe308ba9db266d014632a95718afebac3e0a7 | 4,067 | cpp | C++ | game/client/tfo/c_achievement_manager.cpp | BerntA/tfo-code | afa3ea06a64cbbf7a9370b214ea5e80e69d9d7a1 | [
"MIT"
] | 13 | 2016-04-05T23:23:16.000Z | 2022-03-20T11:06:04.000Z | game/client/tfo/c_achievement_manager.cpp | BerntA/tfo-code | afa3ea06a64cbbf7a9370b214ea5e80e69d9d7a1 | [
"MIT"
] | null | null | null | game/client/tfo/c_achievement_manager.cpp | BerntA/tfo-code | afa3ea06a64cbbf7a9370b214ea5e80e69d9d7a1 | [
"MIT"
] | 4 | 2016-04-05T23:23:19.000Z | 2021-05-16T05:09:46.000Z | //========= Copyright Bernt Andreas Eide, All rights reserved. ============//
//
// Purpose: Achievement handler & manager.
//
//=============================================================================//
#include "cbase.h"
#include "c_achievement_manager.h"
#include "hud.h"
#include "hud_macros.h"
#include "hude... | 25.578616 | 199 | 0.722154 | BerntA |
e215335aafb37b69d3133fb403be1b810677aaea | 3,755 | cpp | C++ | macos/wrapper.cpp | lulitao1997/nixcrpkgs | 1f3045ed82dc31c35cff5fe8c1d9cdeeaee75691 | [
"MIT"
] | 105 | 2017-07-16T18:59:15.000Z | 2022-03-25T19:26:25.000Z | macos/wrapper.cpp | lulitao1997/nixcrpkgs | 1f3045ed82dc31c35cff5fe8c1d9cdeeaee75691 | [
"MIT"
] | 18 | 2017-01-21T03:25:51.000Z | 2020-09-13T22:51:52.000Z | macos/wrapper.cpp | lulitao1997/nixcrpkgs | 1f3045ed82dc31c35cff5fe8c1d9cdeeaee75691 | [
"MIT"
] | 10 | 2018-12-06T03:20:33.000Z | 2022-03-25T13:48:27.000Z | #include <vector>
#include <string>
#include <iostream>
#include <cstring>
#include <cstdlib>
#include <unistd.h>
int do_exec(const std::string & compiler_name,
const std::vector<std::string> & args)
{
char ** exec_args = new char *[args.size() + 1];
size_t i = 0;
for (const std::string & arg : args)
{
e... | 25.544218 | 82 | 0.65273 | lulitao1997 |
e21817e65b3c0693a268a50ca2b498418f37cadc | 2,520 | cpp | C++ | examples/geodesic.cpp | mcpca/fsm | df4081fa0e595284ddbb1f30f20c5fb2063aa41f | [
"MIT"
] | 2 | 2021-06-18T14:07:29.000Z | 2022-01-14T11:35:29.000Z | examples/geodesic.cpp | mcpca/fsm | df4081fa0e595284ddbb1f30f20c5fb2063aa41f | [
"MIT"
] | null | null | null | examples/geodesic.cpp | mcpca/fsm | df4081fa0e595284ddbb1f30f20c5fb2063aa41f | [
"MIT"
] | 2 | 2021-08-31T07:50:47.000Z | 2021-09-03T17:30:14.000Z | #include <cmath>
#include <iostream>
#include <numeric>
#include "marlin/solver.hpp"
#include "hdf5.hpp"
#include "timer.hpp"
int main()
{
#if MARLIN_N_DIMS == 2
constexpr char const* filename = "../data/geodesic.h5";
constexpr std::array<std::pair<marlin::scalar_t, marlin::scalar_t>,
... | 29.647059 | 80 | 0.476984 | mcpca |
e21a53f7247e971e87cee55a7f45bffde6146402 | 290 | cpp | C++ | c++11/understanding-cpp11/chapter4/4-3-2.cpp | cuiwm/choe_lib | 6992c7bf551e7d6d633399b21b028e6873d5e6e8 | [
"MIT"
] | null | null | null | c++11/understanding-cpp11/chapter4/4-3-2.cpp | cuiwm/choe_lib | 6992c7bf551e7d6d633399b21b028e6873d5e6e8 | [
"MIT"
] | null | null | null | c++11/understanding-cpp11/chapter4/4-3-2.cpp | cuiwm/choe_lib | 6992c7bf551e7d6d633399b21b028e6873d5e6e8 | [
"MIT"
] | null | null | null | #include <typeinfo>
#include <iostream>
using namespace std;
int main() {
int i;
decltype(i) j = 0;
cout << typeid(j).name() << endl; // 打印出"i", g++表示integer
float a;
double b;
decltype(a + b) c;
cout << typeid(c).name() << endl; // 打印出"d", g++表示double
}
| 19.333333 | 63 | 0.544828 | cuiwm |
e21e3f6d6e0229b9cd351032f27b23319402acc4 | 849 | cpp | C++ | venv/boost_1_73_0/libs/assert/test/source_location_test2.cpp | uosorio/heroku_face | 7d6465e71dba17a15d8edaef520adb2fcd09d91e | [
"Apache-2.0"
] | 106 | 2015-08-07T04:23:50.000Z | 2020-12-27T18:25:15.000Z | 3rdparty/boost_1_73_0/libs/assert/test/source_location_test2.cpp | qingkouwei/mediaones | cec475e1bfd5807b5351cc7e38d244ac5298ca16 | [
"MIT"
] | 130 | 2016-06-22T22:11:25.000Z | 2020-11-29T20:24:09.000Z | Libs/boost_1_76_0/libs/assert/test/source_location_test2.cpp | Antd23rus/S2DE | 47cc7151c2934cd8f0399a9856c1e54894571553 | [
"MIT"
] | 58 | 2015-01-28T15:55:31.000Z | 2021-04-26T08:12:28.000Z | // Copyright 2019 Peter Dimov
// Distributed under the Boost Software License, Version 1.0.
// http://www.boost.org/LICENSE_1_0.txt
#define BOOST_DISABLE_CURRENT_LOCATION
#include <boost/assert/source_location.hpp>
#include <boost/core/lightweight_test.hpp>
int main()
{
{
boost::source_location loc;
... | 25.727273 | 63 | 0.647821 | uosorio |
e21fc60bc3e5611ff5b9d7606c686b5601eeb85e | 2,877 | cc | C++ | lib/asm.cc | kibergus/photon_charmer | 13d35da8de6a8a8739aea9a400265ba74e7d279a | [
"Apache-2.0"
] | null | null | null | lib/asm.cc | kibergus/photon_charmer | 13d35da8de6a8a8739aea9a400265ba74e7d279a | [
"Apache-2.0"
] | null | null | null | lib/asm.cc | kibergus/photon_charmer | 13d35da8de6a8a8739aea9a400265ba74e7d279a | [
"Apache-2.0"
] | null | null | null | #include "asm.h"
#include "hal/pwm.h"
#include "hal/ws2812/ws2812.h"
namespace {
constexpr int COMMAND_SIZE = 9;
constexpr int BUFFER_SIZE = 250;
uint8_t buffer[BUFFER_SIZE][COMMAND_SIZE];
// Instruction pointer.
volatile int ip = 0;
int read_pointer = 0;
THD_WORKING_AREA(asmThreadArea, 256);
__attribute__((noret... | 25.6875 | 109 | 0.587417 | kibergus |
e220a9eb6309ade06701242c5d9db5b2f37a1921 | 11,421 | cpp | C++ | CaWE/MapEditor/ToolNewBrush.cpp | dns/Cafu | 77b34014cc7493d6015db7d674439fe8c23f6493 | [
"MIT"
] | 3 | 2020-04-11T13:00:31.000Z | 2020-12-07T03:19:10.000Z | CaWE/MapEditor/ToolNewBrush.cpp | DNS/Cafu | 77b34014cc7493d6015db7d674439fe8c23f6493 | [
"MIT"
] | null | null | null | CaWE/MapEditor/ToolNewBrush.cpp | DNS/Cafu | 77b34014cc7493d6015db7d674439fe8c23f6493 | [
"MIT"
] | 1 | 2020-04-11T13:00:04.000Z | 2020-04-11T13:00:04.000Z | /*
Cafu Engine, http://www.cafu.de/
Copyright (c) Carsten Fuchs and other contributors.
This project is licensed under the terms of the MIT license.
*/
#include "ToolNewBrush.hpp"
#include "CompMapEntity.hpp"
#include "ChildFrame.hpp"
#include "ChildFrameViewWin2D.hpp"
#include "ChildFrameViewWin3D.hpp"
#include "Grou... | 34.820122 | 170 | 0.686105 | dns |
e22516e826f334f0788e00b1520ed9cfe96376e7 | 6,923 | cpp | C++ | modules/ti.Desktop/win32/win32_desktop.cpp | mital/titanium | 5e02a4406686d627f6828fd5cc18dc1a75d0714f | [
"Apache-2.0"
] | 4 | 2016-01-02T17:14:06.000Z | 2016-05-09T08:57:33.000Z | modules/ti.Desktop/win32/win32_desktop.cpp | mital/titanium | 5e02a4406686d627f6828fd5cc18dc1a75d0714f | [
"Apache-2.0"
] | null | null | null | modules/ti.Desktop/win32/win32_desktop.cpp | mital/titanium | 5e02a4406686d627f6828fd5cc18dc1a75d0714f | [
"Apache-2.0"
] | null | null | null | /**
* Appcelerator Titanium - licensed under the Apache Public License 2
* see LICENSE in the root folder for details on the license.
* Copyright (c) 2008 Appcelerator, Inc. All Rights Reserved.
*/
#include "win32_desktop.h"
#include <windows.h>
#include <commdlg.h>
#include <shellapi.h>
#include <shlobj.h>
#inclu... | 27.363636 | 147 | 0.680774 | mital |
e22648c2a081ee5ea6061aec95b27d1790acc03e | 1,107 | cpp | C++ | euler/tasks/51/main.cpp | pg83/zm | ef9027bd9ee260118fdf80e8b53361da1b7892f3 | [
"MIT"
] | null | null | null | euler/tasks/51/main.cpp | pg83/zm | ef9027bd9ee260118fdf80e8b53361da1b7892f3 | [
"MIT"
] | null | null | null | euler/tasks/51/main.cpp | pg83/zm | ef9027bd9ee260118fdf80e8b53361da1b7892f3 | [
"MIT"
] | null | null | null | #include <euler/lib/euler.h>
static std::string replace(std::string s, char f, char t) {
for (auto& ch : s) {
if (ch == f) {
ch = t;
}
}
return s;
}
static std::string keyf(uint n, int d) {
return replace(std::to_string(n), '0' + d, '*');
}
static uint unkeyf(const std::s... | 19.421053 | 59 | 0.439024 | pg83 |
e22826f308519fa30ed3979808c19e6562740ff4 | 6,511 | cpp | C++ | tests/benchmarks.cpp | jll63/yomm11 | 4d434ae548886faab5c16c98e1973dc8b6e368d4 | [
"BSL-1.0"
] | 108 | 2015-01-25T16:58:11.000Z | 2021-09-23T06:47:07.000Z | tests/benchmarks.cpp | jll63/yomm11 | 4d434ae548886faab5c16c98e1973dc8b6e368d4 | [
"BSL-1.0"
] | 3 | 2015-06-07T17:40:27.000Z | 2017-11-01T19:33:01.000Z | tests/benchmarks.cpp | jll63/yomm11 | 4d434ae548886faab5c16c98e1973dc8b6e368d4 | [
"BSL-1.0"
] | 19 | 2015-04-23T17:34:03.000Z | 2019-06-28T09:18:45.000Z | // benchmarks.cpp
// Copyright (c) 2013 Jean-Louis Leroy
// 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)
// chrt -f 99 ./benchmarks
// 10000000 iterations, time in millisecs
// virtual function, do_nothing ... | 26.57551 | 154 | 0.620028 | jll63 |
e22d3e98b006dad29d25a1241bf1c687a69d8eed | 1,981 | cpp | C++ | libs/GameInput/RawController.cpp | max-delta/retrofit-public | 5447fd6399fd74ffbb75494c103940751000db12 | [
"X11"
] | 3 | 2019-10-27T22:32:44.000Z | 2020-05-21T04:00:46.000Z | libs/GameInput/RawController.cpp | max-delta/retrofit-public | 5447fd6399fd74ffbb75494c103940751000db12 | [
"X11"
] | null | null | null | libs/GameInput/RawController.cpp | max-delta/retrofit-public | 5447fd6399fd74ffbb75494c103940751000db12 | [
"X11"
] | null | null | null | #include "stdafx.h"
#include "RawController.h"
#include "rftl/limits"
namespace RF::input {
///////////////////////////////////////////////////////////////////////////////
void RawController::GetRawCommandStream( rftl::virtual_iterator<RawCommand>& parser ) const
{
return GetRawCommandStream( parser, rftl::numeric... | 30.015152 | 196 | 0.687027 | max-delta |
e22d685fc12753cf2dd50dc5be118f36572b8bb6 | 2,479 | cpp | C++ | tests/test-3bit-shift-register.cpp | AnandSaminathan/verification-algorithms | 5ba499b6147dc6002b6e7a1b67ffc1da6a2e1549 | [
"BSL-1.0"
] | null | null | null | tests/test-3bit-shift-register.cpp | AnandSaminathan/verification-algorithms | 5ba499b6147dc6002b6e7a1b67ffc1da6a2e1549 | [
"BSL-1.0"
] | null | null | null | tests/test-3bit-shift-register.cpp | AnandSaminathan/verification-algorithms | 5ba499b6147dc6002b6e7a1b67ffc1da6a2e1549 | [
"BSL-1.0"
] | null | null | null | #include "verification-algorithms/k-induction/k-induction.hpp"
#include "verification-algorithms/ltl-bmc/ltl-bmc.hpp"
#include "verification-algorithms/ic3/ic3.hpp"
#include "catch2/catch.hpp"
using namespace verifier;
SCENARIO("three bit shift register", "[3bit-shift-register]") {
std::vector<Symbol> symbols;
... | 25.556701 | 72 | 0.534086 | AnandSaminathan |