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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
01417b6a4ebc01846c383ea9eb0e7fa8fbb47e23 | 396 | cpp | C++ | N0647-Palindromic-Substrings/solution1.cpp | loypt/leetcode | 4463aa17b0fb01ec6f865ea9766ccce1ab7a690a | [
"CC0-1.0"
] | null | null | null | N0647-Palindromic-Substrings/solution1.cpp | loypt/leetcode | 4463aa17b0fb01ec6f865ea9766ccce1ab7a690a | [
"CC0-1.0"
] | null | null | null | N0647-Palindromic-Substrings/solution1.cpp | loypt/leetcode | 4463aa17b0fb01ec6f865ea9766ccce1ab7a690a | [
"CC0-1.0"
] | 2 | 2022-01-25T05:31:31.000Z | 2022-02-26T07:22:23.000Z | class Solution {
public:
int countSubstrings(string s) {
int num = 0;
int n = s.size();
for(int i=0;i<n;i++)//遍历回文中心点
{
for(int j=0;j<=1;j++)//j=0,中心是一个点,j=1,中心是两个点
{
int l = i;
int r = i+j;
while(l>=0 && r<n &&... | 22 | 58 | 0.356061 | loypt |
0149210ca73d9a9f64c0b3f739d097f86b5e5d1d | 706 | cpp | C++ | Fibonacci/Fibonacci.cpp | sounishnath003/CPP-for-beginner | d4755ab4ae098d63c9a0666d8eb4d152106d4a20 | [
"MIT"
] | 4 | 2020-05-14T04:41:04.000Z | 2021-06-13T06:42:03.000Z | Fibonacci/Fibonacci.cpp | sounishnath003/CPP-for-beginner | d4755ab4ae098d63c9a0666d8eb4d152106d4a20 | [
"MIT"
] | null | null | null | Fibonacci/Fibonacci.cpp | sounishnath003/CPP-for-beginner | d4755ab4ae098d63c9a0666d8eb4d152106d4a20 | [
"MIT"
] | null | null | null | #include<iostream>
#include<vector>
using namespace std ;
template<typename T>
void printVector(vector<T> n) {
for (auto &&i : n)
{
cout << i << " ";
}
cout << endl ;
}
class Fibonacci
{
private:
double series = 0;
vector<double> store;
public:
void getThe... | 17.219512 | 40 | 0.474504 | sounishnath003 |
014c9bc06539884aed89195baa0fc6e530aafb94 | 1,943 | cpp | C++ | Graphs/KruskalMST.cpp | paras2411/Algorithms | dcb280d382fc3ee3dbaaf5f1ec2896aae2b05825 | [
"MIT"
] | 8 | 2020-09-15T17:54:12.000Z | 2022-01-20T04:04:27.000Z | Graphs/KruskalMST.cpp | paras2411/Algorithms | dcb280d382fc3ee3dbaaf5f1ec2896aae2b05825 | [
"MIT"
] | null | null | null | Graphs/KruskalMST.cpp | paras2411/Algorithms | dcb280d382fc3ee3dbaaf5f1ec2896aae2b05825 | [
"MIT"
] | null | null | null |
#include<bits/stdc++.h>
using namespace std;
// considering maximum no. of vertices to be 100000.
const int N = 1e5;
int parent[N];
// find the root(ancestor) of the vertex u and returns the no. of vertices in that path
int findpar(int *u){
int rank = 0;
while(*u != parent[*u]){
*u = parent[*u];
... | 26.256757 | 87 | 0.568194 | paras2411 |
0152528c23cbebd0292482028545ec0aec888717 | 1,346 | cpp | C++ | liblineside/test/signalflashtests.cpp | freesurfer-rge/linesidecabinet | 8944c67fa7d340aa792e3a6e681113a4676bfbad | [
"MIT"
] | null | null | null | liblineside/test/signalflashtests.cpp | freesurfer-rge/linesidecabinet | 8944c67fa7d340aa792e3a6e681113a4676bfbad | [
"MIT"
] | 14 | 2019-11-17T14:46:25.000Z | 2021-03-10T02:48:40.000Z | liblineside/test/signalflashtests.cpp | freesurfer-rge/linesidecabinet | 8944c67fa7d340aa792e3a6e681113a4676bfbad | [
"MIT"
] | null | null | null | #include <boost/test/unit_test.hpp>
#include <boost/test/data/test_case.hpp>
#include <boost/test/data/monomorphic.hpp>
#include <sstream>
#include "lineside/signalflash.hpp"
char const* flashNames[] = { "Steady", "Flashing" };
Lineside::SignalFlash flashes[] = { Lineside::SignalFlash::Steady,
Lineside::Sign... | 27.469388 | 83 | 0.730312 | freesurfer-rge |
01542c10efe6ed2d057b98d9df5f63d29a5d3781 | 1,366 | cpp | C++ | luogu/3371_2.cpp | shorn1/OI-ICPC-Problems | 0c18b3297190a0e108c311c74d28351ebc70c3d1 | [
"MIT"
] | 1 | 2020-05-07T09:26:05.000Z | 2020-05-07T09:26:05.000Z | luogu/3371_2.cpp | shorn1/OI-ICPC-Problems | 0c18b3297190a0e108c311c74d28351ebc70c3d1 | [
"MIT"
] | null | null | null | luogu/3371_2.cpp | shorn1/OI-ICPC-Problems | 0c18b3297190a0e108c311c74d28351ebc70c3d1 | [
"MIT"
] | null | null | null | #include<cstdio>
#include<cmath>
#include<algorithm>
#include<cstring>
#include<iostream>
#include<queue>
using namespace std;
const int M = 1111111;
struct Edge
{
int tow,nxt,dat;
};
Edge e[2 * M];
int n,m,s,sume = 0,dis[2 * M],vis[2 * M],hea[2 * M];
queue <int>q;
void add(int u, int v, int w)
{
sume++;
e... | 16.658537 | 52 | 0.400439 | shorn1 |
01568fe4e820b402aff4f45d2fd5d36b0ffd1d9b | 1,849 | hh | C++ | include/introvirt/windows/libraries/ws2_32/types/WSABUF.hh | IntroVirt/IntroVirt | 917f735f3430d0855d8b59c814bea7669251901c | [
"Apache-2.0"
] | 23 | 2021-02-17T16:58:52.000Z | 2022-02-12T17:01:06.000Z | include/introvirt/windows/libraries/ws2_32/types/WSABUF.hh | IntroVirt/IntroVirt | 917f735f3430d0855d8b59c814bea7669251901c | [
"Apache-2.0"
] | 1 | 2021-04-01T22:41:32.000Z | 2021-09-24T14:14:17.000Z | include/introvirt/windows/libraries/ws2_32/types/WSABUF.hh | IntroVirt/IntroVirt | 917f735f3430d0855d8b59c814bea7669251901c | [
"Apache-2.0"
] | 4 | 2021-02-17T16:53:18.000Z | 2021-04-13T16:51:10.000Z | /*
* Copyright 2021 Assured Information Security, 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 a... | 25.328767 | 85 | 0.657112 | IntroVirt |
01594279291cd64d232ef617f493cb70ac094f93 | 7,036 | cpp | C++ | src/ZigBeeCommandLineProcessor.cpp | Suicyc1e/Sequoia | 7a31bde385673e5522373eb7a2ee33c4042c3b8d | [
"MIT"
] | null | null | null | src/ZigBeeCommandLineProcessor.cpp | Suicyc1e/Sequoia | 7a31bde385673e5522373eb7a2ee33c4042c3b8d | [
"MIT"
] | null | null | null | src/ZigBeeCommandLineProcessor.cpp | Suicyc1e/Sequoia | 7a31bde385673e5522373eb7a2ee33c4042c3b8d | [
"MIT"
] | null | null | null | #include <ZigBeeCommandLineProcessor.h>
#include <GlobalPresets.h>
int StringSplit(String sInput, char cDelim, String sParams[], int iMaxParams)
{
int iParamCount = 0;
int iPosDelim, iPosStart = 0;
do {
// Searching the delimiter using indexOf()
iPosDelim = sInput.indexOf(cDelim,iPosStart... | 38.032432 | 124 | 0.622513 | Suicyc1e |
015b2fc1bb7a3b4abc8ca03c4369020f5e67bf05 | 1,428 | cc | C++ | src/auth.cc | thejk/stuff | 67362896a37742e880025b9c85c4fe49d690ba02 | [
"BSD-3-Clause"
] | null | null | null | src/auth.cc | thejk/stuff | 67362896a37742e880025b9c85c4fe49d690ba02 | [
"BSD-3-Clause"
] | null | null | null | src/auth.cc | thejk/stuff | 67362896a37742e880025b9c85c4fe49d690ba02 | [
"BSD-3-Clause"
] | null | null | null | #include "common.hh"
#include "auth.hh"
#include "base64.hh"
#include "cgi.hh"
#include "http.hh"
#include "strutils.hh"
namespace stuff {
bool Auth::auth(CGI* cgi, const std::string& realm, const std::string& passwd,
std::string* user) {
auto auth = cgi->http_auth();
auto pos = auth.find(' '... | 30.382979 | 78 | 0.429272 | thejk |
015ea70b359981eae5d6213f851d444c511c4bf3 | 2,546 | hpp | C++ | cmdstan/stan/src/stan/lang/ast/fun/var_decl_dims_vis_def.hpp | yizhang-cae/torsten | dc82080ca032325040844cbabe81c9a2b5e046f9 | [
"BSD-3-Clause"
] | 1 | 2019-07-05T01:40:40.000Z | 2019-07-05T01:40:40.000Z | cmdstan/stan/src/stan/lang/ast/fun/var_decl_dims_vis_def.hpp | yizhang-cae/torsten | dc82080ca032325040844cbabe81c9a2b5e046f9 | [
"BSD-3-Clause"
] | null | null | null | cmdstan/stan/src/stan/lang/ast/fun/var_decl_dims_vis_def.hpp | yizhang-cae/torsten | dc82080ca032325040844cbabe81c9a2b5e046f9 | [
"BSD-3-Clause"
] | 1 | 2018-08-28T12:09:08.000Z | 2018-08-28T12:09:08.000Z | #ifndef STAN_LANG_AST_FUN_VAR_DECL_DIMS_VIS_DEF_HPP
#define STAN_LANG_AST_FUN_VAR_DECL_DIMS_VIS_DEF_HPP
#include <stan/lang/ast.hpp>
#include <vector>
namespace stan {
namespace lang {
var_decl_dims_vis::var_decl_dims_vis() { }
std::vector<expression> var_decl_dims_vis::operator()(const nil& /* x */)
... | 28.931818 | 80 | 0.552239 | yizhang-cae |
015f284d8abe647c16ca54578d7e48d01427cd6e | 3,698 | cpp | C++ | src/chartwork/ColorPalette.cpp | nazhor/chartwork | 20cb8df257bec39153ea408305640274c9e09d4c | [
"MIT"
] | 20 | 2018-08-29T07:33:21.000Z | 2022-03-12T05:05:54.000Z | src/chartwork/ColorPalette.cpp | nazhor/chartwork | 20cb8df257bec39153ea408305640274c9e09d4c | [
"MIT"
] | 1 | 2020-10-27T15:04:46.000Z | 2020-10-27T15:04:46.000Z | src/chartwork/ColorPalette.cpp | nazhor/chartwork | 20cb8df257bec39153ea408305640274c9e09d4c | [
"MIT"
] | 7 | 2015-07-09T20:38:28.000Z | 2021-09-27T06:38:11.000Z | #include <chartwork/ColorPalette.h>
#include <chartwork/Design.h>
namespace chartwork
{
////////////////////////////////////////////////////////////////////////////////////////////////////
//
// ColorPalette
//
////////////////////////////////////////////////////////////////////////////////////////////////////
Colo... | 24.328947 | 100 | 0.330719 | nazhor |
015f8fbd13144338c56420d36b5dfb1cc578986c | 1,827 | hpp | C++ | header/deps/filehelp.hpp | jonathanmarp/tfsound | 18942c35f1d3f4d335670b7d381f8a75b6a7e465 | [
"MIT"
] | 2 | 2021-06-05T10:15:53.000Z | 2021-06-06T09:51:19.000Z | header/deps/filehelp.hpp | jonathanmarp/tfsound | 18942c35f1d3f4d335670b7d381f8a75b6a7e465 | [
"MIT"
] | null | null | null | header/deps/filehelp.hpp | jonathanmarp/tfsound | 18942c35f1d3f4d335670b7d381f8a75b6a7e465 | [
"MIT"
] | 1 | 2021-06-08T05:56:35.000Z | 2021-06-08T05:56:35.000Z | // MIT License
// Copyright (c) 2021 laferenorg
// 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, merg... | 33.218182 | 81 | 0.746579 | jonathanmarp |
01635e6161a725aca5e9748a3bdc8945400a2a2f | 6,958 | cxx | C++ | 3rd/fltk/src/win32/list_fonts.cxx | MarioHenze/cgv | bacb2d270b1eecbea1e933b8caad8d7e11d807c2 | [
"BSD-3-Clause"
] | 11 | 2017-09-30T12:21:55.000Z | 2021-04-29T21:31:57.000Z | 3rd/fltk/src/win32/list_fonts.cxx | MarioHenze/cgv | bacb2d270b1eecbea1e933b8caad8d7e11d807c2 | [
"BSD-3-Clause"
] | 2 | 2017-07-11T11:20:08.000Z | 2018-03-27T12:09:02.000Z | 3rd/fltk/src/win32/list_fonts.cxx | MarioHenze/cgv | bacb2d270b1eecbea1e933b8caad8d7e11d807c2 | [
"BSD-3-Clause"
] | 24 | 2018-03-27T11:46:16.000Z | 2021-05-01T20:28:34.000Z | //
// "$Id: list_fonts.cxx 5958 2007-10-17 20:21:38Z spitzak $"
//
// _WIN32 font utilities for the Fast Light Tool Kit (FLTK).
//
// Copyright 1998-2006 by Bill Spitzak and others.
//
// This library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Library General Public
// Lice... | 29.991379 | 79 | 0.632078 | MarioHenze |
016871b7df9e584799df839cda630bd6279531cd | 636 | hpp | C++ | Plutonium/Include/pu/overlay/Toast.hpp | Falki14/Plutonium | e39894f87b57695d4288052979e23d4115932697 | [
"MIT"
] | null | null | null | Plutonium/Include/pu/overlay/Toast.hpp | Falki14/Plutonium | e39894f87b57695d4288052979e23d4115932697 | [
"MIT"
] | null | null | null | Plutonium/Include/pu/overlay/Toast.hpp | Falki14/Plutonium | e39894f87b57695d4288052979e23d4115932697 | [
"MIT"
] | null | null | null |
/*
Plutonium library
@file Overlay.hpp
@brief TODO...
@author XorTroll
@copyright Plutonium project - an easy-to-use UI framework for Nintendo Switch homebrew
*/
#pragma once
#include <pu/overlay/Overlay.hpp>
namespace pu::overlay
{
class Toast : public Overlay
{
public:
... | 21.931034 | 96 | 0.624214 | Falki14 |
6c75aa25ebca362bf52e57a3e7660b4f89500ead | 5,062 | cpp | C++ | src-plugins/reformat/resampleProcess.cpp | nebatmusic/medInria-public | 09000bd2f129692e42314a8eb1313d238603252e | [
"BSD-1-Clause"
] | 1 | 2020-11-16T13:55:45.000Z | 2020-11-16T13:55:45.000Z | src-plugins/reformat/resampleProcess.cpp | nebatmusic/medInria-public | 09000bd2f129692e42314a8eb1313d238603252e | [
"BSD-1-Clause"
] | null | null | null | src-plugins/reformat/resampleProcess.cpp | nebatmusic/medInria-public | 09000bd2f129692e42314a8eb1313d238603252e | [
"BSD-1-Clause"
] | null | null | null | #include "resampleProcess.h"
#include <dtkCore/dtkAbstractProcessFactory.h>
#include <medAbstractDataFactory.h>
#include <medAbstractProcess.h>
#include <medMetaDataKeys.h>
#include <medUtilitiesITK.h>
#include <itkResampleImageFilter.h>
#include <itkBSplineInterpolateImageFunction.h>
// /////////////////////////////... | 28.925714 | 112 | 0.614184 | nebatmusic |
6c767fd7fe905d57aad21b55162e1077581ede1f | 6,219 | hpp | C++ | libraries/chain/include/deip/chain/services/dbs_expertise_allocation_proposal.hpp | DEIPworld/deip-chain | d3fdcfdde179f700156156ea87522a807ec52532 | [
"MIT"
] | 1 | 2021-08-16T12:44:43.000Z | 2021-08-16T12:44:43.000Z | libraries/chain/include/deip/chain/services/dbs_expertise_allocation_proposal.hpp | DEIPworld/deip-chain | d3fdcfdde179f700156156ea87522a807ec52532 | [
"MIT"
] | null | null | null | libraries/chain/include/deip/chain/services/dbs_expertise_allocation_proposal.hpp | DEIPworld/deip-chain | d3fdcfdde179f700156156ea87522a807ec52532 | [
"MIT"
] | 2 | 2021-08-16T12:44:46.000Z | 2021-12-31T17:09:45.000Z | #pragma once
#include "dbs_base_impl.hpp"
#include <vector>
#include <set>
#include <functional>
#include <deip/chain/schema/expertise_allocation_proposal_object.hpp>
#include <deip/chain/schema/expertise_allocation_proposal_vote_object.hpp>
#include <deip/chain/schema/expert_token_object.hpp>
namespace deip {
names... | 56.027027 | 243 | 0.705419 | DEIPworld |
6c7737a2a29d9a93b0374dec4932899a19dd8a36 | 265 | cpp | C++ | tests/src/test.cpp | pqrs-org/cpp-environment_variable | 2b1d547603f5ce4a4455a254a4dbe514f14cd75e | [
"BSL-1.0"
] | null | null | null | tests/src/test.cpp | pqrs-org/cpp-environment_variable | 2b1d547603f5ce4a4455a254a4dbe514f14cd75e | [
"BSL-1.0"
] | null | null | null | tests/src/test.cpp | pqrs-org/cpp-environment_variable | 2b1d547603f5ce4a4455a254a4dbe514f14cd75e | [
"BSL-1.0"
] | null | null | null | #define CATCH_CONFIG_MAIN
#include <catch2/catch.hpp>
#include <pqrs/environment_variable.hpp>
TEST_CASE("find") {
REQUIRE(pqrs::environment_variable::find("PATH"));
REQUIRE(pqrs::environment_variable::find("UNKNOWN_ENVIRONMENT_VARIABLE") == std::nullopt);
}
| 26.5 | 92 | 0.766038 | pqrs-org |
6c7e3a240169920f0aa7c99a2331f254a65f01bc | 421 | cpp | C++ | src/Y/Y403.cpp | wlhcode/lscct | 7fd112a9d1851ddcf41886d3084381a52e84a3ce | [
"MIT"
] | null | null | null | src/Y/Y403.cpp | wlhcode/lscct | 7fd112a9d1851ddcf41886d3084381a52e84a3ce | [
"MIT"
] | null | null | null | src/Y/Y403.cpp | wlhcode/lscct | 7fd112a9d1851ddcf41886d3084381a52e84a3ce | [
"MIT"
] | null | null | null | #include<iostream>
#include<algorithm>
using namespace std;
double arr[101];
int main(){
double a,ave=0;
cin>>a;
for(int i=0;i<a-1;i++) cin>>arr[i];
int tmp=a-1;
sort(arr,arr+tmp);
for(int i=a-2;i>0;i--) ave+=arr[i];
ave/=a-2;
if(ave>=50) cout<<"0"<<endl;
else{
ave-=arr[1]/(a-2);
for(int i=0;i<=100;i++){
... | 16.84 | 36 | 0.553444 | wlhcode |
6c7ead9f8211077b6a7af65c1e3b7750297ba267 | 318 | cpp | C++ | Solutions-to-Books/C++Primer/Chapter03/3.02.cpp | Horizon-Blue/playground | 4bd42bfcec60b8e89e127f4784c99f6ba669d359 | [
"MIT"
] | 2 | 2016-08-31T19:13:24.000Z | 2017-02-18T18:48:31.000Z | Solutions-to-Books/C++Primer/Chapter03/3.02.cpp | Horizon-Blue/playground | 4bd42bfcec60b8e89e127f4784c99f6ba669d359 | [
"MIT"
] | 1 | 2018-12-10T16:32:26.000Z | 2018-12-27T19:50:48.000Z | Solutions-to-Books/C++Primer/Chapter03/3.02.cpp | Horizon-Blue/playground | 4bd42bfcec60b8e89e127f4784c99f6ba669d359 | [
"MIT"
] | null | null | null | /* Exercise 3.2: Write a program to read the standard input
* a line at a time. Modify your program to read a word at
* a time
*/
// Xiaoyan Wang 10/26/2015
#include <iostream>
#include <string>
using namespace std;
int main() {
string line;
while (getline(cin, line))
cout << line << endl;
return 0;
}
| 18.705882 | 59 | 0.663522 | Horizon-Blue |
6c8dbddac1c11a71d1f0bf12b64a9e7b95a05d59 | 691 | hpp | C++ | Public/Ava/Private/Platform/Arch.hpp | vasama/Ava | c1e6fb87a493dc46ce870220c632069f00875d2c | [
"MIT"
] | null | null | null | Public/Ava/Private/Platform/Arch.hpp | vasama/Ava | c1e6fb87a493dc46ce870220c632069f00875d2c | [
"MIT"
] | null | null | null | Public/Ava/Private/Platform/Arch.hpp | vasama/Ava | c1e6fb87a493dc46ce870220c632069f00875d2c | [
"MIT"
] | null | null | null | #pragma once
#if defined(Ava_X86) \
|| defined(__i386__) \
|| defined(__i486__) \
|| defined(__i586__) \
|| defined(__i686__) \
|| defined(_M_IX86)
# ifndef Ava_X86
# define Ava_X86 1
# endif
# define Ava_32 1
# define Ava_ARCH x86
#elif defined(Ava_X64) \
|| defined(__x86_64) \
|| defined(__x86_64__) \
||... | 15.704545 | 32 | 0.691751 | vasama |
6c8e13b5d49c84522cb7a74452c7f089529ce49c | 841 | cpp | C++ | OJ/LeetCode/leetcode/problems/offer39.cpp | ONGOING-Z/DataStructure | 9099393d1c7dfabc3e2939586ea6d1d254631eb2 | [
"MIT"
] | null | null | null | OJ/LeetCode/leetcode/problems/offer39.cpp | ONGOING-Z/DataStructure | 9099393d1c7dfabc3e2939586ea6d1d254631eb2 | [
"MIT"
] | 2 | 2021-10-31T10:05:45.000Z | 2022-02-12T15:17:53.000Z | OJ/LeetCode/leetcode/offer39.cpp | ONGOING-Z/Learn-Algorithm-and-DataStructure | 3a512bd83cc6ed5035ac4550da2f511298b947c0 | [
"MIT"
] | null | null | null | #include <iostream>
#include <stdio.h>
#include <cstdio>
#include <vector>
#include <algorithm>
using namespace std;
/* Offer */
/* Type: */
/* 题目信息 */
/*
*剑指 Offer 39. 数组中出现次数超过一半的数字
数组中有一个数字出现的次数超过数组长度的一半,请找出这个数字。
你可以假设数组是非空的,并且给定的数组总是存在多数元素。
示例 1:
输入: [1, 2, 3, 2, 2, 2, 5, 4, 2]
输出: 2
限制: 1 <= 数组长度 <=... | 13.786885 | 44 | 0.530321 | ONGOING-Z |
6c915f68204c33100c70f4ef5405fb1b844abbf3 | 1,205 | cpp | C++ | src/engine/test/maptest.cpp | eXl-Nic/eXl | a5a0f77f47db3179365c107a184bb38b80280279 | [
"MIT"
] | null | null | null | src/engine/test/maptest.cpp | eXl-Nic/eXl | a5a0f77f47db3179365c107a184bb38b80280279 | [
"MIT"
] | null | null | null | src/engine/test/maptest.cpp | eXl-Nic/eXl | a5a0f77f47db3179365c107a184bb38b80280279 | [
"MIT"
] | null | null | null |
#include <gtest/gtest.h>
#include <gen/floodfill.hpp>
using namespace eXl;
TEST(DunAtk, FloodFillTest)
{
AABB2Di box(Vector2i::ZERO, Vector2i::ONE * 8);
{
Vector<char> testVec =
{ -1, -1, -1, -1, -1, -1, -1, -1,
-1, 0, 0, -1, -1, 0, 0, -1,
-1, 0, 0, 0, -1, -1, 0, 0,
-1, -1, -... | 23.627451 | 86 | 0.483817 | eXl-Nic |
6c972bda8864d4c341abda36d045af3774fc6f79 | 3,151 | cpp | C++ | main.cpp | fogwizard/fillsize | 54928fbd50989beb92676e4d6703b3b18ab93eed | [
"Apache-2.0"
] | null | null | null | main.cpp | fogwizard/fillsize | 54928fbd50989beb92676e4d6703b3b18ab93eed | [
"Apache-2.0"
] | null | null | null | main.cpp | fogwizard/fillsize | 54928fbd50989beb92676e4d6703b3b18ab93eed | [
"Apache-2.0"
] | null | null | null | #include <unistd.h>
#include <string.h>
#include "iostream"
#include "stdio.h"
#include "stdint.h"
#include "fillsize.h"
#include "mergebin.h"
#include "alignbin.h"
#include "ddbin.h"
using namespace std;
int usage(void)
{
cout << "Usage: fillsize <filename> [address]" << endl;
return 0;
}
int usage_merge(vo... | 23.514925 | 81 | 0.449064 | fogwizard |
6c97f885ad15183170d14e65e2a69c1f73357736 | 3,632 | cpp | C++ | src/kgw.cpp | Warants/whosa | ff46f1e5158c29601f8a83f9de77be1eca95f9f2 | [
"MIT"
] | 13 | 2017-09-17T16:54:25.000Z | 2021-03-19T11:58:16.000Z | src/kgw.cpp | Warants/whosa | ff46f1e5158c29601f8a83f9de77be1eca95f9f2 | [
"MIT"
] | 7 | 2015-01-20T07:44:53.000Z | 2021-11-26T18:58:38.000Z | src/kgw.cpp | Warants/whosa | ff46f1e5158c29601f8a83f9de77be1eca95f9f2 | [
"MIT"
] | 2 | 2018-01-02T16:49:00.000Z | 2018-05-17T10:58:28.000Z | // Copyright (c) 2015-2015 The e-Gulden developers
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include <math.h>
#include "chain.h"
#include "chainparams.h"
#include "primitives/block.h"
#include "uint256.h"
#include "... | 39.912088 | 178 | 0.683645 | Warants |
6c9c7eeaeeae6c6002e13a0d123fb399a645e383 | 414 | hpp | C++ | addons/handhelds/rf7800/CfgVehicles.hpp | MrDj200/task-force-arma-3-radio | 21bb54d5d0e0b31b0522dc67e6923edb9ad85247 | [
"RSA-MD"
] | 300 | 2015-01-14T11:19:48.000Z | 2022-01-18T19:46:55.000Z | addons/handhelds/rf7800/CfgVehicles.hpp | MrDj200/task-force-arma-3-radio | 21bb54d5d0e0b31b0522dc67e6923edb9ad85247 | [
"RSA-MD"
] | 742 | 2015-01-07T05:25:39.000Z | 2022-03-15T17:06:34.000Z | addons/handhelds/rf7800/CfgVehicles.hpp | MrDj200/task-force-arma-3-radio | 21bb54d5d0e0b31b0522dc67e6923edb9ad85247 | [
"RSA-MD"
] | 280 | 2015-01-01T08:58:00.000Z | 2022-03-23T12:37:38.000Z | class Item_TFAR_rf7800str: Item_Base_F {
scope = PUBLIC;
scopeCurator = PUBLIC;
displayName = "RF-7800S-TR";
author = "Nkey";
vehicleClass = "Items";
class TransportItems {
MACRO_ADDITEM(TFAR_rf7800str,1);
};
#include "\z\tfar\addons\static_radios\edenAttributes.hpp"
};
HIDDEN_C... | 31.846154 | 101 | 0.705314 | MrDj200 |
6c9e0c8de1a52f1b2c3ede08a3d2cecc3760e90f | 2,052 | hpp | C++ | include/example.hpp | m1nuz/modern-cpp-opengl-examples | 6e79d772b12201f5be791d5c00622b0e4ccfe2ea | [
"MIT"
] | null | null | null | include/example.hpp | m1nuz/modern-cpp-opengl-examples | 6e79d772b12201f5be791d5c00622b0e4ccfe2ea | [
"MIT"
] | null | null | null | include/example.hpp | m1nuz/modern-cpp-opengl-examples | 6e79d772b12201f5be791d5c00622b0e4ccfe2ea | [
"MIT"
] | null | null | null | #pragma once
#include <application.hpp>
#include <graphics.hpp>
struct RunExampleAppInfo {
std::string_view title;
std::function<void( )> on_init = []( ) {};
std::function<void( )> on_update = []( ) {};
std::function<void( int, int )> on_present;
std::function<void( )> on_cleanup = []( ) {};
};
c... | 31.090909 | 119 | 0.60575 | m1nuz |
6cab74507e15993510bc4f9bf6f18d5cd7894d44 | 1,227 | cpp | C++ | spicetrade/playaction.cpp | mvaganov/spicetrade | 123b009365deb5b8dcdfc4a2f2dd7b28fa2f024e | [
"Unlicense"
] | null | null | null | spicetrade/playaction.cpp | mvaganov/spicetrade | 123b009365deb5b8dcdfc4a2f2dd7b28fa2f024e | [
"Unlicense"
] | null | null | null | spicetrade/playaction.cpp | mvaganov/spicetrade | 123b009365deb5b8dcdfc4a2f2dd7b28fa2f024e | [
"Unlicense"
] | null | null | null | #include "playaction.h"
#include "game.h"
#include "playerstate.h"
void PlayAction::PrintAction (Game& g, const PlayAction* a, int bg) {
int ofcolor = CLI::getFcolor (), obcolor = CLI::getBcolor ();
CLI::setColor (CLI::COLOR::LIGHT_GRAY, bg);
const int width = 5;
std::string str = a?a->input:"";
int leadSpace = ... | 30.675 | 86 | 0.613692 | mvaganov |
6cab7fa05d581a570217933c054ae37ae60cda3c | 2,236 | cpp | C++ | ege/ege3d/tests/Primitives.cpp | sppmacd/ege | a82ff6fccc8ac1bce5a50ed5a8f101b63f58b020 | [
"MIT"
] | 1 | 2020-12-30T17:21:11.000Z | 2020-12-30T17:21:11.000Z | ege/ege3d/tests/Primitives.cpp | sppmacd/ege | a82ff6fccc8ac1bce5a50ed5a8f101b63f58b020 | [
"MIT"
] | 20 | 2020-09-02T08:37:13.000Z | 2021-09-02T06:47:08.000Z | ege/ege3d/tests/Primitives.cpp | sppmacd/ege | a82ff6fccc8ac1bce5a50ed5a8f101b63f58b020 | [
"MIT"
] | null | null | null | #include "ege3d/window/GLError.h"
#include <ege3d/window/RenderingState.h>
#include <ege3d/window/SystemEvent.h>
#include <ege3d/window/Renderable.h>
#include <ege3d/window/Renderer.h>
#include <ege/debug/Logger.h>
#include <GL/gl.h>
class MyRenderable : public EGE3d::Renderable
{
public:
virtual void render(EGE3... | 27.604938 | 91 | 0.568426 | sppmacd |
6cac158add29e0233fccedc7182d74b1daa8631f | 696 | cpp | C++ | src/acpi/apic/apic.cpp | AlexandreArduino/mykernel | 488a947c87457b11471a06f3fd0544d6145806d7 | [
"BSD-3-Clause"
] | 9 | 2022-01-30T12:54:58.000Z | 2022-01-30T16:51:45.000Z | src/acpi/apic/apic.cpp | AlexandreArduino/mykernel | 488a947c87457b11471a06f3fd0544d6145806d7 | [
"BSD-3-Clause"
] | null | null | null | src/acpi/apic/apic.cpp | AlexandreArduino/mykernel | 488a947c87457b11471a06f3fd0544d6145806d7 | [
"BSD-3-Clause"
] | null | null | null | #include "apic.h"
APIC apic;
void APIC::init(uint64_t *apic_address)
{
if(apic_address == NULL) Exceptions::panic("No APIC table found!");
else this->apic = (struct MADTDescriptor*)apic_address;
log.log("APIC::init", "MADT table located at 0x");
log.logln(String((uint64_t)this->apic, HEXADECIMAL));
... | 31.636364 | 76 | 0.672414 | AlexandreArduino |
6cadf170e2336281579a3af94cc8bfd4947efb1f | 2,380 | hpp | C++ | modules/core/base/include/nt2/predicates/functions/arecatcompatible.hpp | psiha/nt2 | 5e829807f6b57b339ca1be918a6b60a2507c54d0 | [
"BSL-1.0"
] | null | null | null | modules/core/base/include/nt2/predicates/functions/arecatcompatible.hpp | psiha/nt2 | 5e829807f6b57b339ca1be918a6b60a2507c54d0 | [
"BSL-1.0"
] | null | null | null | modules/core/base/include/nt2/predicates/functions/arecatcompatible.hpp | psiha/nt2 | 5e829807f6b57b339ca1be918a6b60a2507c54d0 | [
"BSL-1.0"
] | null | null | null | //==============================================================================
// Copyright 2003 - 2012 LASMEA UMR 6602 CNRS/Univ. Clermont II
// Copyright 2009 - 2014 LRI UMR 8623 CNRS/Univ Paris Sud XI
// Copyright 2012 - 2014 MetaScale SAS
//
// Distributed under the Boost... | 37.1875 | 191 | 0.657563 | psiha |
6cb6ea097e8db7ecef00a4aa0fe85d64aeb3890c | 2,569 | cpp | C++ | qfontdialog_c.cpp | mariuszmaximus/qt5pas-aarch64-linux-gnu | c60bbcfa5b0d7c4fe18bb21e5f2f424a5b658c1b | [
"Apache-2.0"
] | null | null | null | qfontdialog_c.cpp | mariuszmaximus/qt5pas-aarch64-linux-gnu | c60bbcfa5b0d7c4fe18bb21e5f2f424a5b658c1b | [
"Apache-2.0"
] | null | null | null | qfontdialog_c.cpp | mariuszmaximus/qt5pas-aarch64-linux-gnu | c60bbcfa5b0d7c4fe18bb21e5f2f424a5b658c1b | [
"Apache-2.0"
] | null | null | null | //******************************************************************************
// Copyright (c) 2005-2013 by Jan Van hijfte
//
// See the included file COPYING.TXT for details about the copyright.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the i... | 29.872093 | 137 | 0.718178 | mariuszmaximus |
6cb79f7e758a5d04fe5e52a64dce35a1d3889185 | 5,718 | cpp | C++ | PCoreLib/PSpriteManager.cpp | bear1704/WindowsProgramming_Portfolio | 83f1d763c73d08b82291aa894ef246558fdf0198 | [
"Apache-2.0"
] | null | null | null | PCoreLib/PSpriteManager.cpp | bear1704/WindowsProgramming_Portfolio | 83f1d763c73d08b82291aa894ef246558fdf0198 | [
"Apache-2.0"
] | null | null | null | PCoreLib/PSpriteManager.cpp | bear1704/WindowsProgramming_Portfolio | 83f1d763c73d08b82291aa894ef246558fdf0198 | [
"Apache-2.0"
] | null | null | null | #include "PSpriteManager.h"
PSpriteManager::~PSpriteManager()
{
}
PSpriteManager::PSpriteManager() : kDamageFontLifetime(1.2f), kDamageFontGap(35.0f)
{
dmg_font_index_ = 0;
}
bool PSpriteManager::Init()
{
need_load_character_sprite_data_ = true;
need_load_UI_sprite_data_ = true;
need_load_map_sprite_data_ = tru... | 24.331915 | 93 | 0.670689 | bear1704 |
6cbc9c2dd04de352a7b0435adf9d09dc022d85f5 | 16,072 | cpp | C++ | C++/BitwiseAutomation/src/BitwiseDevice.cpp | jimwaschura/Automation | f655feeea74ff22ebe44d8b68374ba6983748f60 | [
"BSL-1.0"
] | null | null | null | C++/BitwiseAutomation/src/BitwiseDevice.cpp | jimwaschura/Automation | f655feeea74ff22ebe44d8b68374ba6983748f60 | [
"BSL-1.0"
] | null | null | null | C++/BitwiseAutomation/src/BitwiseDevice.cpp | jimwaschura/Automation | f655feeea74ff22ebe44d8b68374ba6983748f60 | [
"BSL-1.0"
] | null | null | null | /* BitwiseDevice.cpp */
//================================================================================
// BOOST SOFTWARE LICENSE
//
// Copyright 2020 BitWise Laboratories Inc.
// Author.......Jim Waschura
// Contact......info@bitwiselabs.com
//
//Permission is hereby granted, free of charge, to any person or organi... | 26.048622 | 100 | 0.609072 | jimwaschura |
6cc06d6376bfecabe157288efb31d8bac3dbc359 | 4,483 | cpp | C++ | Game_exe/release_mode/windows/obj/src/LuaSprite.cpp | hisatsuga/Salty-Psyche-Engine-Port-Main | 0c6afc6ef57f6f6a8b83ff23bb6a26bb05117ab7 | [
"Apache-2.0"
] | null | null | null | Game_exe/release_mode/windows/obj/src/LuaSprite.cpp | hisatsuga/Salty-Psyche-Engine-Port-Main | 0c6afc6ef57f6f6a8b83ff23bb6a26bb05117ab7 | [
"Apache-2.0"
] | null | null | null | Game_exe/release_mode/windows/obj/src/LuaSprite.cpp | hisatsuga/Salty-Psyche-Engine-Port-Main | 0c6afc6ef57f6f6a8b83ff23bb6a26bb05117ab7 | [
"Apache-2.0"
] | null | null | null | #include <hxcpp.h>
#ifndef INCLUDED_LuaSprite
#include <LuaSprite.h>
#endif
#ifndef INCLUDED_flixel_FlxBasic
#include <flixel/FlxBasic.h>
#endif
#ifndef INCLUDED_flixel_FlxObject
#include <flixel/FlxObject.h>
#endif
#ifndef INCLUDED_flixel_FlxSprite
#include <flixel/FlxSprite.h>
#endif
#ifndef INCLUDED_flixel_util_IFl... | 32.251799 | 130 | 0.73366 | hisatsuga |
6cd8aa98628db3499b9e97bfc17f12997b10f1cd | 5,353 | cpp | C++ | tests/test_rocketmodel.cpp | julienlopez/QRocketLaunchSimulator | 132e979489b3b84a82c162df0209085d0a30fd8e | [
"MIT"
] | null | null | null | tests/test_rocketmodel.cpp | julienlopez/QRocketLaunchSimulator | 132e979489b3b84a82c162df0209085d0a30fd8e | [
"MIT"
] | 5 | 2015-02-19T09:25:15.000Z | 2015-02-19T14:43:20.000Z | tests/test_rocketmodel.cpp | julienlopez/QRocketLaunchSimulator | 132e979489b3b84a82c162df0209085d0a30fd8e | [
"MIT"
] | null | null | null | #include "rocketmodel.hpp"
#include "external/json.h"
#include <stdexcept>
#include <gtest/gtest.h>
using nlohmann::json;
using boost::units::si::meters;
using boost::units::si::kilograms;
using boost::units::si::kilograms;
using boost::units::si::newtons;
using boost::units::si::seconds;
TEST(TestRocketModel, Te... | 31.674556 | 93 | 0.545302 | julienlopez |
6ce29b8024f9b9ce202b983bc21c6a2e703c7274 | 1,674 | cpp | C++ | src/Parsers/Kusto/ParserKQLStatement.cpp | DevTeamBK/ClickHouse | f65b5d21594a07afb017a7cdaa718c5d1caa257d | [
"Apache-2.0"
] | null | null | null | src/Parsers/Kusto/ParserKQLStatement.cpp | DevTeamBK/ClickHouse | f65b5d21594a07afb017a7cdaa718c5d1caa257d | [
"Apache-2.0"
] | 1 | 2021-12-22T12:08:09.000Z | 2021-12-22T12:08:09.000Z | src/Parsers/Kusto/ParserKQLStatement.cpp | DevTeamBK/ClickHouse | f65b5d21594a07afb017a7cdaa718c5d1caa257d | [
"Apache-2.0"
] | null | null | null | #include <Parsers/IParserBase.h>
#include <Parsers/ParserSetQuery.h>
#include <Parsers/ASTExpressionList.h>
#include <Parsers/ASTSelectWithUnionQuery.h>
#include <Parsers/Kusto/ParserKQLQuery.h>
#include <Parsers/Kusto/ParserKQLStatement.h>
#include <Parsers/Kusto/KustoFunctions/KQLFunctionFactory.h>
namespace DB
{
bo... | 27 | 90 | 0.725806 | DevTeamBK |
6ce582473817154716db84277cca72db93910d4f | 6,679 | cpp | C++ | logview/emap.cpp | Hayesie88/emstudio | 0ae4353e5dcaa76b6306ff0aabd5a89999c4dc1b | [
"MIT"
] | 8 | 2015-11-16T19:15:55.000Z | 2021-02-17T23:58:33.000Z | logview/emap.cpp | Hayesie88/emstudio | 0ae4353e5dcaa76b6306ff0aabd5a89999c4dc1b | [
"MIT"
] | 5 | 2015-11-12T00:19:59.000Z | 2020-03-23T10:18:19.000Z | logview/emap.cpp | Hayesie88/emstudio | 0ae4353e5dcaa76b6306ff0aabd5a89999c4dc1b | [
"MIT"
] | 11 | 2015-03-15T23:02:48.000Z | 2021-09-05T14:17:13.000Z | /************************************************************************************
* EMStudio - Open Source ECU tuning software *
* Copyright (C) 2020 Michael Carpenter (malcom2073@gmail.com) *
* ... | 22.488215 | 110 | 0.558167 | Hayesie88 |
6ce6f867d811db392a875497c7fc888e43bb14c8 | 1,637 | cpp | C++ | font.cpp | dbralir/ludum-dare-26 | 4fabf578ae73839cdf2d10c733138d4d6f8c6606 | [
"Unlicense",
"MIT"
] | null | null | null | font.cpp | dbralir/ludum-dare-26 | 4fabf578ae73839cdf2d10c733138d4d6f8c6606 | [
"Unlicense",
"MIT"
] | null | null | null | font.cpp | dbralir/ludum-dare-26 | 4fabf578ae73839cdf2d10c733138d4d6f8c6606 | [
"Unlicense",
"MIT"
] | null | null | null | #include "font.hpp"
#include "game.hpp"
#include "meta.hpp"
#include "inugami/texture.hpp"
using namespace Inugami;
Font::Font(const Texture& img, int tw, int th, float cx, float cy)
: Spritesheet(img, tw, th, cx, cy)
, tileW(tw/8)
, tileH(th/8)
, centerX(1.f-cx)
, centerY(1.f-cy)
{}
Font::Font... | 20.721519 | 84 | 0.516188 | dbralir |
6ce937255dfb16470a99f4e23daa5ed0d3f136b6 | 1,864 | cpp | C++ | examples/LIDAR_GTAV/lib/utils.cpp | edward0im/A-virtual-LiDAR-for-DeepGTAV | 0d43000d0b23b33f378af839825455234d824f5c | [
"MIT"
] | 1 | 2020-08-27T03:21:25.000Z | 2020-08-27T03:21:25.000Z | examples/LIDAR_GTAV/lib/utils.cpp | edward0im/A-virtual-LiDAR-for-DeepGTAV | 0d43000d0b23b33f378af839825455234d824f5c | [
"MIT"
] | null | null | null | examples/LIDAR_GTAV/lib/utils.cpp | edward0im/A-virtual-LiDAR-for-DeepGTAV | 0d43000d0b23b33f378af839825455234d824f5c | [
"MIT"
] | null | null | null | /*
THIS FILE IS A PART OF GTA V SCRIPT HOOK SDK
http://dev-c.com
(C) Alexander Blade 2015
*/
#include "utils.h"
#include "script.h"
#include <windows.h>
extern "C" IMAGE_DOS_HEADER __ImageBase; // MSVC specific, with other compilers use HMODULE from DllMain
std::string cachedModulePath;
std::string GetCurren... | 23.012346 | 104 | 0.696888 | edward0im |
6cea6e5eee8d183f0ff1edaf91022bace48f3730 | 406 | hpp | C++ | include/CountingMutex.hpp | kamilturek/factory | 6d74d3de53d6174e6e82e537be6dabd3ab5b3d9c | [
"MIT"
] | null | null | null | include/CountingMutex.hpp | kamilturek/factory | 6d74d3de53d6174e6e82e537be6dabd3ab5b3d9c | [
"MIT"
] | 2 | 2020-04-19T08:14:08.000Z | 2020-04-19T11:05:10.000Z | include/CountingMutex.hpp | kamilturek/factory | 6d74d3de53d6174e6e82e537be6dabd3ab5b3d9c | [
"MIT"
] | null | null | null | #pragma once
#include <condition_variable>
#include <mutex>
// Inspired by C++20's std::counting_semaphore
// Not available in any compiler on 15.05.2020
// Meets C++ BasicLockable requirements
class CountingMutex
{
public:
explicit CountingMutex(int max);
void lock();
void unlock();
private:
int c... | 17.652174 | 46 | 0.699507 | kamilturek |
6cea7a6f7f044c2dffb0ce01d450072af9b3382b | 426 | hpp | C++ | vendor/cucumber-cpp/include/cucumber-cpp/deprecated-defs.hpp | AndreasAugustin/Gherkin-Demos-cpp | 79a4be81ee1fffce56ac503760a48a2b77d6d03f | [
"MIT"
] | 1 | 2016-07-21T10:10:33.000Z | 2016-07-21T10:10:33.000Z | vendor/cucumber-cpp/include/cucumber-cpp/deprecated-defs.hpp | AndreasAugustin/Gherkin-Demos-cpp | 79a4be81ee1fffce56ac503760a48a2b77d6d03f | [
"MIT"
] | null | null | null | vendor/cucumber-cpp/include/cucumber-cpp/deprecated-defs.hpp | AndreasAugustin/Gherkin-Demos-cpp | 79a4be81ee1fffce56ac503760a48a2b77d6d03f | [
"MIT"
] | null | null | null | #ifndef CUKE_DEPRECATED_DEFS_HPP_
#define CUKE_DEPRECATED_DEFS_HPP_
// ************************************************************************** //
// ************** USING_CONTEXT ************** //
// ************************************************************************** //
#defin... | 32.769231 | 80 | 0.377934 | AndreasAugustin |
6ced20f0600803efff41094c392434fd0bb6d9b4 | 749 | hpp | C++ | fuji/inc/m4c0/fuji/main_loop_thread.hpp | m4c0/m4c0-stl | 5e47439528faee466270706534143c87b4af8cbb | [
"MIT"
] | null | null | null | fuji/inc/m4c0/fuji/main_loop_thread.hpp | m4c0/m4c0-stl | 5e47439528faee466270706534143c87b4af8cbb | [
"MIT"
] | null | null | null | fuji/inc/m4c0/fuji/main_loop_thread.hpp | m4c0/m4c0-stl | 5e47439528faee466270706534143c87b4af8cbb | [
"MIT"
] | null | null | null | #pragma once
#include "m4c0/fuji/main_loop.hpp"
#include "m4c0/log.hpp"
#include "m4c0/vulkan/surface.hpp"
#include <thread>
namespace m4c0::fuji {
/// \brief Convenience for running a main_loop in a different thread
template<class MainLoopTp>
class main_loop_thread {
MainLoopTp m_loop;
std::thread m_t... | 22.69697 | 95 | 0.631509 | m4c0 |
6ceeacdb54036d96fb8d83ffd01f48958a18a5f3 | 5,652 | hpp | C++ | private/inc/avb_streamhandler/IasLocalVideoBuffer.hpp | tnishiok/AVBStreamHandler | 7621daf8c9238361e030fe35188b921ee8ea2466 | [
"BSL-1.0",
"BSD-3-Clause"
] | 13 | 2018-09-26T13:32:35.000Z | 2021-05-20T10:01:12.000Z | private/inc/avb_streamhandler/IasLocalVideoBuffer.hpp | keerockl/AVBStreamHandler | c0c9aa92656ae0acd0f57492d4f325eee2f7d13b | [
"BSD-3-Clause"
] | 23 | 2018-10-03T22:45:21.000Z | 2020-03-05T23:40:12.000Z | private/inc/avb_streamhandler/IasLocalVideoBuffer.hpp | keerockl/AVBStreamHandler | c0c9aa92656ae0acd0f57492d4f325eee2f7d13b | [
"BSD-3-Clause"
] | 22 | 2018-09-14T03:55:34.000Z | 2021-12-07T01:13:27.000Z | /*
* Copyright (C) 2018 Intel Corporation. All rights reserved.
*
* SPDX-License-Identifier: BSD-3-Clause
*/
/**
* @file IasLocalVideoBuffer.hpp
* @brief This class contains all methods to access the ring buffers
* @details Each local Video stream handles its data via a
* separate ring buffer.
*
... | 21.992218 | 114 | 0.633404 | tnishiok |
6cf02ece223febeaa7f366cf4feb5c65d3df9889 | 2,963 | cpp | C++ | flexcore/extended/base_node.cpp | vacing/flexcore | 08c08e98556f92d1993e2738cbcb975b3764fa2d | [
"Apache-2.0"
] | 47 | 2016-09-23T10:27:17.000Z | 2021-12-14T07:31:40.000Z | flexcore/extended/base_node.cpp | vacing/flexcore | 08c08e98556f92d1993e2738cbcb975b3764fa2d | [
"Apache-2.0"
] | 10 | 2016-12-04T16:40:29.000Z | 2020-04-28T08:46:50.000Z | flexcore/extended/base_node.cpp | vacing/flexcore | 08c08e98556f92d1993e2738cbcb975b3764fa2d | [
"Apache-2.0"
] | 20 | 2016-09-23T17:14:41.000Z | 2021-10-09T18:24:47.000Z | #include <boost/algorithm/string/join.hpp>
#include <boost/format.hpp>
#include <flexcore/extended/base_node.hpp>
#include <flexcore/extended/visualization/visualization.hpp>
#include <stack>
namespace fc
{
static forest_t::iterator find_self(forest_t& forest, const tree_node& node)
{
auto node_id = node.graph_info... | 25.324786 | 91 | 0.724603 | vacing |
6cf0ccc637228ad480b380bce5cd15bc2eef2864 | 1,944 | cpp | C++ | CodeForces-Contest/1404/E.cpp | Tech-Intellegent/CodeForces-Solution | 2f291a38b80b8ff2a2595b2e526716468ff26bf8 | [
"MIT"
] | 1 | 2022-01-23T07:18:07.000Z | 2022-01-23T07:18:07.000Z | CodeForces-Contest/1404/E.cpp | Tech-Intellegent/CodeForces-Solution | 2f291a38b80b8ff2a2595b2e526716468ff26bf8 | [
"MIT"
] | null | null | null | CodeForces-Contest/1404/E.cpp | Tech-Intellegent/CodeForces-Solution | 2f291a38b80b8ff2a2595b2e526716468ff26bf8 | [
"MIT"
] | 1 | 2022-02-05T11:53:04.000Z | 2022-02-05T11:53:04.000Z | #include<bits/stdc++.h>
using namespace std;
mt19937 rnd(chrono::steady_clock::now().time_since_epoch().count());
struct Kuhn {
int n; vector<vector<int>> g;
vector<int> l, r; vector<bool> vis;
Kuhn(int _n, int _m) {
n = _n;
g.resize(n + 1); vis.resize(n + 1, false);
l.resize(n + 1, -1); r.resize(_m + 1, -1);... | 22.604651 | 70 | 0.437757 | Tech-Intellegent |
6cf20e6a0c6bfa2a1cc03258925e629a65d2741f | 343 | cpp | C++ | lib/libc/tests/string/strstr.cpp | otaviopace/ananas | 849925915b0888543712a8ca625318cd7bca8dd9 | [
"Zlib"
] | 52 | 2015-11-27T13:56:00.000Z | 2021-12-01T16:33:58.000Z | lib/libc/tests/string/strstr.cpp | otaviopace/ananas | 849925915b0888543712a8ca625318cd7bca8dd9 | [
"Zlib"
] | 4 | 2017-06-26T17:59:51.000Z | 2021-09-26T17:30:32.000Z | lib/libc/tests/string/strstr.cpp | otaviopace/ananas | 849925915b0888543712a8ca625318cd7bca8dd9 | [
"Zlib"
] | 8 | 2016-08-26T09:42:27.000Z | 2021-12-04T00:21:05.000Z | #include <gtest/gtest.h>
#include <string.h>
TEST(string, strstr)
{
char s[] = "abcabcabcdabcde";
EXPECT_EQ(NULL, strstr(s, "x"));
EXPECT_EQ(NULL, strstr(s, "xyz"));
EXPECT_EQ(&s[0], strstr(s, "a"));
EXPECT_EQ(&s[0], strstr(s, "abc"));
EXPECT_EQ(&s[6], strstr(s, "abcd"));
EXPECT_EQ(&s[10], ... | 24.5 | 42 | 0.577259 | otaviopace |
6cff754810119c9cfaa074251913a35b52ca0014 | 2,187 | cpp | C++ | src/helpers/getLocation.cpp | HerrEurobeat/nodemcu-clock | 1afda078d522ad676aaf5a0717ae9a30a1b24438 | [
"MIT"
] | null | null | null | src/helpers/getLocation.cpp | HerrEurobeat/nodemcu-clock | 1afda078d522ad676aaf5a0717ae9a30a1b24438 | [
"MIT"
] | null | null | null | src/helpers/getLocation.cpp | HerrEurobeat/nodemcu-clock | 1afda078d522ad676aaf5a0717ae9a30a1b24438 | [
"MIT"
] | null | null | null | /*
* File: getLocation.cpp
* Project: nodemcu-clock
* Created Date: 05.09.2021 14:16:00
* Author: 3urobeat
*
* Last Modified: 30.12.2021 22:24:01
* Modified By: 3urobeat
*
* Copyright (c) 2021 3urobeat <https://github.com/HerrEurobeat>
*
* Licensed under the MIT license: https://opensource.org/licenses/MI... | 31.695652 | 142 | 0.633745 | HerrEurobeat |
6cff97a54bf00789f0a3adb0720012d0d3fee4b6 | 794 | hpp | C++ | include/gba/display/background_control.hpp | felixjones/gba-plusplus | 79dce6c3095b52de72f96a17871b4d6c8b9aaf2f | [
"Zlib"
] | 33 | 2020-11-02T22:03:27.000Z | 2022-03-25T04:40:29.000Z | include/gba/display/background_control.hpp | felixjones/gbaplusplus | 79dce6c3095b52de72f96a17871b4d6c8b9aaf2f | [
"Zlib"
] | 21 | 2019-09-05T15:10:52.000Z | 2020-06-21T15:08:54.000Z | include/gba/display/background_control.hpp | felixjones/gba-plusplus | 79dce6c3095b52de72f96a17871b4d6c8b9aaf2f | [
"Zlib"
] | 3 | 2020-11-02T21:44:46.000Z | 2022-02-23T17:37:00.000Z | #ifndef GBAXX_DISPLAY_BACKGROUND_CONTROL_HPP
#define GBAXX_DISPLAY_BACKGROUND_CONTROL_HPP
#include <gba/types/color.hpp>
#include <gba/types/int_type.hpp>
#include <gba/types/screen_size.hpp>
namespace gba {
enum class affine_background_wrap : bool {
transparent = false,
wrap = true,
clamp = false,
r... | 24.060606 | 96 | 0.722922 | felixjones |
9f0502de3c1f7649968da6bd920fce2ccec5cad6 | 7,608 | cpp | C++ | query_execution/PolicyEnforcer.cpp | craig-chasseur/incubator-quickstep | 00ca1e4b3a9c9838dcb9509058b8a40b0f573617 | [
"Apache-2.0"
] | null | null | null | query_execution/PolicyEnforcer.cpp | craig-chasseur/incubator-quickstep | 00ca1e4b3a9c9838dcb9509058b8a40b0f573617 | [
"Apache-2.0"
] | null | null | null | query_execution/PolicyEnforcer.cpp | craig-chasseur/incubator-quickstep | 00ca1e4b3a9c9838dcb9509058b8a40b0f573617 | [
"Apache-2.0"
] | 1 | 2021-12-04T18:48:44.000Z | 2021-12-04T18:48:44.000Z | /**
* Copyright 2016, Quickstep Research Group, Computer Sciences Department,
* University of Wisconsin—Madison.
*
* 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
*
* ... | 37.850746 | 91 | 0.694664 | craig-chasseur |
9f056c274055ac5533d8fff55f5979150c2b13b3 | 964 | cpp | C++ | 2017-09-17/D-2.cpp | tangjz/Three-Investigators | 46dc9b2f0fbb4fe89b075a81feaacc33feeb1b52 | [
"MIT"
] | 3 | 2018-04-02T06:00:51.000Z | 2018-05-29T04:46:29.000Z | 2017-09-17/D-2.cpp | tangjz/Three-Investigators | 46dc9b2f0fbb4fe89b075a81feaacc33feeb1b52 | [
"MIT"
] | 2 | 2018-03-31T17:54:30.000Z | 2018-05-02T11:31:06.000Z | 2017-09-17/D-2.cpp | tangjz/Three-Investigators | 46dc9b2f0fbb4fe89b075a81feaacc33feeb1b52 | [
"MIT"
] | 2 | 2018-10-07T00:08:06.000Z | 2021-06-28T11:02:59.000Z | #include <cstdio>
#include <cstdlib>
#include <cstring>
#include <cmath>
#include <algorithm>
using namespace std;
int T, K;
struct Fraction
{
long long x;
long long y;
Fraction(long long __x = 0, long long __y = 1)
{
x = __x;
y = __y;
}
};
int main()
{
int t;
long long d;
Fraction l, r, mid, ans;
scan... | 17.851852 | 80 | 0.524896 | tangjz |
9f083dee33d20b80dd0731e3157afa9da2fe7a69 | 4,011 | cxx | C++ | repro/SiloStore.cxx | dulton/reSipServer | ac4241df81c1e3eef2e678271ffef4dda1fc6747 | [
"Apache-2.0"
] | 1 | 2019-04-15T14:10:58.000Z | 2019-04-15T14:10:58.000Z | repro/SiloStore.cxx | dulton/reSipServer | ac4241df81c1e3eef2e678271ffef4dda1fc6747 | [
"Apache-2.0"
] | null | null | null | repro/SiloStore.cxx | dulton/reSipServer | ac4241df81c1e3eef2e678271ffef4dda1fc6747 | [
"Apache-2.0"
] | 2 | 2019-10-31T09:11:09.000Z | 2021-09-17T01:00:49.000Z | #include "rutil/Logger.hxx"
#include "rutil/ParseBuffer.hxx"
#include "rutil/Lock.hxx"
#include "resip/stack/SipMessage.hxx"
#include "repro/SiloStore.hxx"
#include "rutil/WinLeakCheck.hxx"
using namespace resip;
using namespace repro;
using namespace std;
#define RESIPROCATE_SUBSYSTEM Subsystem::REPRO
SiloStore... | 33.425 | 86 | 0.697332 | dulton |
9f0f72787fa59a95a1a6c61bb5720d1c74cddc27 | 17,993 | cpp | C++ | c++/tools/zenbutools.cpp | jessica-severin/ZENBU_2.11.1 | 694dd8fb178f3cbde2e058b8ee6a57e5a4c09cc7 | [
"Unlicense"
] | null | null | null | c++/tools/zenbutools.cpp | jessica-severin/ZENBU_2.11.1 | 694dd8fb178f3cbde2e058b8ee6a57e5a4c09cc7 | [
"Unlicense"
] | null | null | null | c++/tools/zenbutools.cpp | jessica-severin/ZENBU_2.11.1 | 694dd8fb178f3cbde2e058b8ee6a57e5a4c09cc7 | [
"Unlicense"
] | null | null | null | /* $Id: zenbutools.cpp,v 1.20 2015/11/13 09:03:34 severin Exp $ */
/****
NAME
zdxtools - DESCRIPTION of Object
DESCRIPTION
zdxtools is a ZENBU system command line tool to access and process data both
remotely on ZENBU federation servers and locally with ZDX file databases.
The API is designed to both ena... | 34.142315 | 162 | 0.626355 | jessica-severin |
9f10e30ec2a1f9806dc52f5ce9250a407db25fb0 | 5,841 | cpp | C++ | Source/VectorShapeEditor/Private/SplineVisualizer/VectorMeshComponentVisualizer.cpp | mhousse1247/UE4-VectorShapeWidgetPlugin | 12c4d5507e32551d8e54c405de7f6d64ba6745ba | [
"MIT"
] | 7 | 2020-12-05T21:07:41.000Z | 2021-09-08T21:43:24.000Z | Source/VectorShapeEditor/Private/SplineVisualizer/VectorMeshComponentVisualizer.cpp | mhousse1247/UE4-VectorShapeWidgetPlugin | 12c4d5507e32551d8e54c405de7f6d64ba6745ba | [
"MIT"
] | null | null | null | Source/VectorShapeEditor/Private/SplineVisualizer/VectorMeshComponentVisualizer.cpp | mhousse1247/UE4-VectorShapeWidgetPlugin | 12c4d5507e32551d8e54c405de7f6d64ba6745ba | [
"MIT"
] | 2 | 2021-08-18T16:05:27.000Z | 2021-09-11T00:15:02.000Z | //==========================================================================//
// Copyright Elhoussine Mehnik (ue4resources@gmail.com). All Rights Reserved.
//================== http://unrealengineresources.com/ =====================//
#include "VectorMeshComponentVisualizer.h"
#include "VectorMeshComponent.h"
#includ... | 36.50625 | 195 | 0.77093 | mhousse1247 |
9f12738041481119b2f0e69bd9383e9c13e10fb3 | 307 | hpp | C++ | PP/view/destroy.hpp | Petkr/PP | 646cc156603a6a9461e74d8f54786c0d5a9c32d2 | [
"MIT"
] | 3 | 2019-07-12T23:12:24.000Z | 2019-09-05T07:57:45.000Z | PP/view/destroy.hpp | Petkr/PP | 646cc156603a6a9461e74d8f54786c0d5a9c32d2 | [
"MIT"
] | null | null | null | PP/view/destroy.hpp | Petkr/PP | 646cc156603a6a9461e74d8f54786c0d5a9c32d2 | [
"MIT"
] | null | null | null | #pragma once
#include <PP/get_type.hpp>
#include <PP/partial_.hpp>
#include <PP/view/for_each.hpp>
namespace PP::detail::functors
{
PP_CIA destroy_helper = [](auto&& x)
{
using T = PP_GT(~PP_DT(x));
x.~T();
};
}
namespace PP::view
{
PP_CIA destroy = for_each * detail::functors::destroy_helper;
}
| 16.157895 | 61 | 0.674267 | Petkr |
9f12e5aed7c73cc52bbd723374683f5422411fca | 2,393 | cpp | C++ | src/Shader.cpp | cjuniet/simpleGL | 719c1152d9085f1612c3e0b8ce2ee25fe3ad22dd | [
"MIT"
] | null | null | null | src/Shader.cpp | cjuniet/simpleGL | 719c1152d9085f1612c3e0b8ce2ee25fe3ad22dd | [
"MIT"
] | null | null | null | src/Shader.cpp | cjuniet/simpleGL | 719c1152d9085f1612c3e0b8ce2ee25fe3ad22dd | [
"MIT"
] | null | null | null | #include "Shader.hpp"
#include <glm/gtc/type_ptr.hpp>
#include <fstream>
#include <sstream>
#include <stdexcept>
namespace {
void compile_glsl(const std::string& filename, GLuint shader)
{
std::ifstream ifs(filename);
if (!ifs) {
throw std::runtime_error("compile_glsl(): unable to open " + filename);
}
... | 24.171717 | 95 | 0.717509 | cjuniet |
2f5ce7acde58c43615729d6d9e4bf6ccdfd6b8b4 | 316 | hpp | C++ | include/TypeHelpers.hpp | ChoppinBlockParty/perq | 2442e33b230c81c9f6e971ffcb35499b2f248cbd | [
"BSD-3-Clause"
] | 3 | 2018-06-30T09:09:38.000Z | 2020-06-05T22:46:23.000Z | include/TypeHelpers.hpp | ChoppinBlockParty/perq | 2442e33b230c81c9f6e971ffcb35499b2f248cbd | [
"BSD-3-Clause"
] | null | null | null | include/TypeHelpers.hpp | ChoppinBlockParty/perq | 2442e33b230c81c9f6e971ffcb35499b2f248cbd | [
"BSD-3-Clause"
] | null | null | null | #pragma once
#include <cinttypes>
#include <cstddef>
namespace perq {
struct NoPrefix {
using Type = uint8_t;
};
namespace internal {
template <typename T>
struct PrefixSize {
static constexpr size_t size = sizeof(T);
};
template <>
struct PrefixSize<NoPrefix> {
static constexpr size_t size = 0;
};
}
}
| 12.64 | 43 | 0.705696 | ChoppinBlockParty |
2f63d060dc3774088e6c783814004b1f1a3aa58b | 1,925 | hpp | C++ | include/zax/stringcat.hpp | fcharlie/zax | 041ad510635df85e5842036cd0319ea92f7f56ba | [
"MIT"
] | null | null | null | include/zax/stringcat.hpp | fcharlie/zax | 041ad510635df85e5842036cd0319ea92f7f56ba | [
"MIT"
] | null | null | null | include/zax/stringcat.hpp | fcharlie/zax | 041ad510635df85e5842036cd0319ea92f7f56ba | [
"MIT"
] | null | null | null | #ifndef ZAX_STRINGCAT_HPP
#define ZAX_STRINGCAT_HPP
#include <string>
#include <string_view>
#include <charconv>
#include "unicode.hpp"
namespace zax {
//
class AlphaNum {
static constexpr const int suggest_size = 32;
public:
AlphaNum(bool x) {
piece_ = x ? "true" : "false"; // true or false
}
AlphaNum(in... | 29.615385 | 81 | 0.66961 | fcharlie |
2f6faf12900ebdb89f6dbcc3d6388523428b9eaa | 6,097 | cpp | C++ | ivmpServer/networkManager.cpp | WuskieFTW1113/IV-MP-T4 | ec4f193c90d23e07e6200dcb061ec8773be6bedc | [
"MIT"
] | 2 | 2021-07-18T17:37:32.000Z | 2021-08-04T12:33:51.000Z | ivmpServer/networkManager.cpp | VittorioC97/IV-MP-T4 | ec4f193c90d23e07e6200dcb061ec8773be6bedc | [
"MIT"
] | 1 | 2022-02-22T03:26:50.000Z | 2022-02-22T03:26:50.000Z | ivmpServer/networkManager.cpp | WuskieFTW1113/IV-MP-T4 | ec4f193c90d23e07e6200dcb061ec8773be6bedc | [
"MIT"
] | 5 | 2021-06-17T06:41:00.000Z | 2022-02-17T09:37:40.000Z | #include "networkManager.h"
#include "RakPeer.h"
#include <map>
#include "../SharedDefines/easylogging++.h"
#include "../SharedDefines/packetsIds.h"
#include "playerConnectionState.h"
#include "receiveFootSync.h"
#include "receiveClientCredentials.h"
#include "sendClientRequestedData.h"
#include "vehicleSyncDeclaratio... | 38.345912 | 136 | 0.788257 | WuskieFTW1113 |
2f78bd027784244532019c8987c91101af0bbfe6 | 3,081 | cpp | C++ | http/alias.cpp | linbc/appweb2-win | ed9b55079cd427751e21ebdf122d5e3a1228f65c | [
"BSD-3-Clause"
] | null | null | null | http/alias.cpp | linbc/appweb2-win | ed9b55079cd427751e21ebdf122d5e3a1228f65c | [
"BSD-3-Clause"
] | null | null | null | http/alias.cpp | linbc/appweb2-win | ed9b55079cd427751e21ebdf122d5e3a1228f65c | [
"BSD-3-Clause"
] | 1 | 2019-12-11T02:29:49.000Z | 2019-12-11T02:29:49.000Z | ///
/// @file alias.cpp
/// @brief Alias service for aliasing URLs to file storage.
/// @overview This module supports the alias directives and mapping
/// URLs to physical locations. It also performs redirections.
//
////////////////////////////////// Copyright ///////////////////////////////////
//
// @copy defau... | 33.129032 | 80 | 0.580656 | linbc |
2f7e35c9080f2d52951a9c6d953e85d8844f565f | 3,356 | cpp | C++ | old/src/resources/Material.cpp | fuchstraumer/Caelestis | 9c4b76288220681bb245d84e5d7bf8c7f69b2716 | [
"MIT"
] | 5 | 2018-08-16T00:55:33.000Z | 2020-06-19T14:30:17.000Z | old/src/resources/Material.cpp | fuchstraumer/Caelestis | 9c4b76288220681bb245d84e5d7bf8c7f69b2716 | [
"MIT"
] | null | null | null | old/src/resources/Material.cpp | fuchstraumer/Caelestis | 9c4b76288220681bb245d84e5d7bf8c7f69b2716 | [
"MIT"
] | null | null | null |
#include "resources/Material.hpp"
#include "core/LogicalDevice.hpp"
#include "command/TransferPool.hpp"
#include "resource/DescriptorSetLayout.hpp"
#include "resource/DescriptorSet.hpp"
#include "resource/Buffer.hpp"
using namespace vpr;
namespace vpsk {
Material::Material(Material&& other) noexcept : ambient(st... | 36.879121 | 321 | 0.661502 | fuchstraumer |
2f900b25c6bce0c15327dda6fb0de9251ad3ea7a | 22,028 | cpp | C++ | src/GUI/ServerBrowser.cpp | Olddies710/The-Forgotten-Client | 8b7979619ea76bc29581122440d09f241afc175d | [
"Zlib"
] | 1 | 2022-01-15T00:00:27.000Z | 2022-01-15T00:00:27.000Z | src/GUI/ServerBrowser.cpp | Olddies710/The-Forgotten-Client | 8b7979619ea76bc29581122440d09f241afc175d | [
"Zlib"
] | null | null | null | src/GUI/ServerBrowser.cpp | Olddies710/The-Forgotten-Client | 8b7979619ea76bc29581122440d09f241afc175d | [
"Zlib"
] | 3 | 2021-10-14T02:36:56.000Z | 2022-03-22T21:03:31.000Z | /*
The Forgotten Client
Copyright (C) 2020 Saiyans King
This software is provided 'as-is', without any express or implied
warranty. In no event will the authors be held liable for any damages
arising from the use of this software.
Permission is granted to anyone to use this software for any purpose,
in... | 41.878327 | 229 | 0.744235 | Olddies710 |
2f96afcd1571e2be24b84580bc7e71730b27405c | 10,320 | cpp | C++ | src/prob_quadratico_cp.cpp | salvatore-punzo/dogbot_tesi | 8bf521df5e16b517dce6746361e35c0b437b7e3e | [
"MIT"
] | null | null | null | src/prob_quadratico_cp.cpp | salvatore-punzo/dogbot_tesi | 8bf521df5e16b517dce6746361e35c0b437b7e3e | [
"MIT"
] | null | null | null | src/prob_quadratico_cp.cpp | salvatore-punzo/dogbot_tesi | 8bf521df5e16b517dce6746361e35c0b437b7e3e | [
"MIT"
] | null | null | null | #include "prob_quadratico_cp.h"
//#include "traj_planner.h"
using namespace std;
PROB_QUAD_CP::PROB_QUAD_CP(){
};
void PROB_QUAD_CP::CalcoloProbOttimoCP(VectorXd &b, Matrix<double,18,18> &M, Matrix<double,24,18> &Jc, Matrix<double,24,1> &Jcdqd, Matrix<double,18,18> &T, Matrix<double,18,18> &T_dot,Matrix<double, 1... | 32.351097 | 261 | 0.627035 | salvatore-punzo |
2f97b95359ab74dfa04b9b3abed2f0d8ebab456e | 220 | cpp | C++ | Source/KiruroboMocapPlugin/KiruroboMocapPlugin.cpp | kirurobo/KiruroboMocapPlugin | c23ece40b3630bcc1acfa41e01ae136e3872d5df | [
"MIT"
] | 15 | 2015-09-15T03:11:55.000Z | 2020-08-27T15:27:45.000Z | Source/KiruroboMocapPlugin/KiruroboMocapPlugin.cpp | kirurobo/KiruroboMocapPlugin | c23ece40b3630bcc1acfa41e01ae136e3872d5df | [
"MIT"
] | 1 | 2015-09-16T13:07:14.000Z | 2015-10-18T10:11:50.000Z | Source/KiruroboMocapPlugin/KiruroboMocapPlugin.cpp | kirurobo/KiruroboMocapPlugin | c23ece40b3630bcc1acfa41e01ae136e3872d5df | [
"MIT"
] | 5 | 2015-11-10T14:38:37.000Z | 2021-05-26T08:00:53.000Z | // Fill out your copyright notice in the Description page of Project Settings.
#include "KiruroboMocapPlugin.h"
IMPLEMENT_PRIMARY_GAME_MODULE( FDefaultGameModuleImpl, KiruroboMocapPlugin, "KiruroboMocapPlugin" );
| 36.666667 | 101 | 0.813636 | kirurobo |
2fa5d266af49fb51ae70a69e4cf1f66239db1a77 | 24,208 | cpp | C++ | src/Microsoft.DotNet.Wpf/src/WpfGfx/core/hw/hwsurfrtdata.cpp | nsivov/wpf | d36941860f05dd7a09008e99d1bcd635b0a69fdb | [
"MIT"
] | 2 | 2020-05-18T17:00:43.000Z | 2021-12-01T10:00:29.000Z | src/Microsoft.DotNet.Wpf/src/WpfGfx/core/hw/hwsurfrtdata.cpp | nsivov/wpf | d36941860f05dd7a09008e99d1bcd635b0a69fdb | [
"MIT"
] | 5 | 2020-05-05T08:05:01.000Z | 2021-12-11T21:35:37.000Z | src/Microsoft.DotNet.Wpf/src/WpfGfx/core/hw/hwsurfrtdata.cpp | nsivov/wpf | d36941860f05dd7a09008e99d1bcd635b0a69fdb | [
"MIT"
] | 4 | 2020-05-04T06:43:25.000Z | 2022-02-20T12:02:50.000Z | // Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
//+-----------------------------------------------------------------------------
//
//
// $TAG ENGR
// $Mod... | 26.808416 | 104 | 0.57543 | nsivov |
2fa687b64af682cf357d4778b6c4f72ad128e329 | 1,051 | cpp | C++ | AAD/Aufgabe3.2/myClass.cpp | Solaflex/hf-ict | 2ebed689087407019b540df07612525e8b8d6821 | [
"MIT"
] | null | null | null | AAD/Aufgabe3.2/myClass.cpp | Solaflex/hf-ict | 2ebed689087407019b540df07612525e8b8d6821 | [
"MIT"
] | null | null | null | AAD/Aufgabe3.2/myClass.cpp | Solaflex/hf-ict | 2ebed689087407019b540df07612525e8b8d6821 | [
"MIT"
] | null | null | null | #include <C:\git\RunProject\RunProject\myHeader.h>
#include <string>
#include <algorithm> // std::transform
using namespace std;
bool StringUtil::isPalindrome(string input){
// Make the string lowercase to compare it
std::transform(input.begin(), input.end(), input.begin(), ::tolower);
// Store the length of th... | 30.028571 | 111 | 0.686013 | Solaflex |
2fa8c77ac4a5780c2e737dde2a5c1c08f6f61e8f | 1,007 | hpp | C++ | plugins/TaiwanSE/TaiwanSE.hpp | Vladimir-Lin/QtFIXAPI | d62f582828267d02b9f4e5d5ddc96d966c3848e1 | [
"MIT"
] | null | null | null | plugins/TaiwanSE/TaiwanSE.hpp | Vladimir-Lin/QtFIXAPI | d62f582828267d02b9f4e5d5ddc96d966c3848e1 | [
"MIT"
] | null | null | null | plugins/TaiwanSE/TaiwanSE.hpp | Vladimir-Lin/QtFIXAPI | d62f582828267d02b9f4e5d5ddc96d966c3848e1 | [
"MIT"
] | null | null | null | #ifndef TAIWANSE_HPP
#define TAIWANSE_HPP
#ifdef QT_CORE_LIB
#include <QtCore>
#endif
#ifdef QT_GUI_LIB
#include <QtGui>
#endif
#ifdef QT_NETWORK_LIB
#include <QtNetwork>
#endif
#ifdef QT_SQL_LIB
#include <QtSql>
#endif
#include "nFixEngine.hpp"
class TaiwanApplication : public FixApplication
{
public:
exp... | 12.910256 | 57 | 0.662363 | Vladimir-Lin |
2fa8cb9872514ddfbd2b0ac7637cad6debe4a828 | 330 | cpp | C++ | cpp/Environment/PytorchEnvironment.cpp | zigui-ps/PPO-PyTorchCpp-API | b1a8b1b3aade3ca79d4e903f3473bab3cbcac755 | [
"MIT"
] | 3 | 2020-03-29T04:50:42.000Z | 2021-12-02T14:57:59.000Z | cpp/Environment/PytorchEnvironment.cpp | zigui-ps/PPO-PyTorchCpp-API | b1a8b1b3aade3ca79d4e903f3473bab3cbcac755 | [
"MIT"
] | null | null | null | cpp/Environment/PytorchEnvironment.cpp | zigui-ps/PPO-PyTorchCpp-API | b1a8b1b3aade3ca79d4e903f3473bab3cbcac755 | [
"MIT"
] | 2 | 2020-03-29T05:21:17.000Z | 2020-04-12T08:00:01.000Z | #include "Environment/PytorchEnvironment.h"
PytorchEnvironment::PytorchEnvironment(torch::Device device):device(device){
}
void PytorchEnvironment::to(torch::Device dev){
device = dev;
}
int PytorchEnvironment::getObservationSize(){
return observationSize;
}
int PytorchEnvironment::getActionSize(){
return actio... | 19.411765 | 76 | 0.784848 | zigui-ps |
2faeccf55d6271538e24bb823b2f9e6c2d24e0d2 | 387 | hpp | C++ | Headers/Recorder.hpp | adivekk94/UDT | 645538937722f8a6ad3fc3dfb032a0e5add7adc3 | [
"MIT"
] | null | null | null | Headers/Recorder.hpp | adivekk94/UDT | 645538937722f8a6ad3fc3dfb032a0e5add7adc3 | [
"MIT"
] | null | null | null | Headers/Recorder.hpp | adivekk94/UDT | 645538937722f8a6ad3fc3dfb032a0e5add7adc3 | [
"MIT"
] | null | null | null | /*
* Recorder.hpp
*
* Created on: 14.04.2017
* Author: adivek
*/
#ifndef HEADERS_RECORDER_HPP_
#define HEADERS_RECORDER_HPP_
#include "../Definitions/glo_def.hpp"
#include "../Definitions/glo_inc.hpp"
#include <SFML/Config.hpp>
class Recorder : public sf::SoundBufferRecorder
{
public:
Recorder();
void r... | 16.826087 | 47 | 0.715762 | adivekk94 |
2fb3ba1048457f65086c738b93518098d8d65e77 | 1,903 | cpp | C++ | leoStockSdk/source/strDecode.cpp | leonard73/LeoJQuantSdk | d4ec0ba402ec6e4832b484fe94a79799e2e57ea5 | [
"Apache-2.0"
] | null | null | null | leoStockSdk/source/strDecode.cpp | leonard73/LeoJQuantSdk | d4ec0ba402ec6e4832b484fe94a79799e2e57ea5 | [
"Apache-2.0"
] | null | null | null | leoStockSdk/source/strDecode.cpp | leonard73/LeoJQuantSdk | d4ec0ba402ec6e4832b484fe94a79799e2e57ea5 | [
"Apache-2.0"
] | null | null | null | #include <strDecode.h>
#define LOG_TAG " [STR_DECODE] "
#define LOGLINE_STR_INT(s,i) std::cout<<LOG_TAG<<s<<" "<<i<<std::endl
#define LOGLINE_STR_INT_STR_STR(s1,i1,s2,s3) std::cout<<LOG_TAG<<s1<<" "<<i1<<s2<<" "<<s3<<std::endl
void decode_str_by_lines(std::vector <std::string> & lines_str,std::string string_raw)
{
... | 34.6 | 100 | 0.566474 | leonard73 |
2fb596f95db409cfbe5ad74c7561c06746ea7abf | 305 | cpp | C++ | src/SGLibExceptions.cpp | yhhshb/yalff | 6789a7bef08e633e2044ea597eeb4308a456c06a | [
"MIT"
] | 2 | 2020-01-17T12:34:11.000Z | 2020-04-16T15:47:01.000Z | src/SGLibExceptions.cpp | yhhshb/yalff | 6789a7bef08e633e2044ea597eeb4308a456c06a | [
"MIT"
] | null | null | null | src/SGLibExceptions.cpp | yhhshb/yalff | 6789a7bef08e633e2044ea597eeb4308a456c06a | [
"MIT"
] | 1 | 2021-01-15T15:58:54.000Z | 2021-01-15T15:58:54.000Z | #include "SGLibExceptions.hpp"
namespace SGLib{
const char* invalid_fastx::what() const noexcept
{
return "The given input stream does not follow the supposed convention!";
}
const char* fastx_end::what() const noexcept
{
return "The fast* file is finished, no more records in it";
}
}//SGLib
| 19.0625 | 77 | 0.72459 | yhhshb |
2fb9bb7040b7525234d63aa8472a46fc5416cb87 | 1,454 | hpp | C++ | src/Screens/Gameplay/PreciseMusic.hpp | Subject38/jujube | 664b995cc65fa6045433b4837d765c62fe6490b4 | [
"MIT"
] | 19 | 2020-02-28T20:34:12.000Z | 2022-01-28T20:18:25.000Z | src/Screens/Gameplay/PreciseMusic.hpp | Subject38/jujube | 664b995cc65fa6045433b4837d765c62fe6490b4 | [
"MIT"
] | 7 | 2019-10-22T09:43:16.000Z | 2022-03-12T00:15:13.000Z | src/Screens/Gameplay/PreciseMusic.hpp | Subject38/jujube | 664b995cc65fa6045433b4837d765c62fe6490b4 | [
"MIT"
] | 5 | 2019-10-22T08:14:57.000Z | 2021-03-13T06:32:04.000Z | #pragma once
#include <thread>
#include <atomic>
#include <SFML/Audio/Music.hpp>
#include <SFML/System/Clock.hpp>
#include <SFML/System/Time.hpp>
#include "AbstractMusic.hpp"
namespace Gameplay {
struct _PreciseMusic : sf::Music {
explicit _PreciseMusic(const std::string& path);
~_PreciseMusic()... | 33.045455 | 103 | 0.672627 | Subject38 |
2fbcc6050d3aa07942a0291c020b66c5facb3b52 | 418 | cpp | C++ | week9/scene/src/circleScene.cpp | evejweinberg/algo2012 | 7e13c20bab94e1769f6751c4e124964ae05b7087 | [
"MIT"
] | 94 | 2015-01-12T16:07:57.000Z | 2021-12-24T06:48:04.000Z | week9/scene/src/circleScene.cpp | theomission/algo2012 | 7e13c20bab94e1769f6751c4e124964ae05b7087 | [
"MIT"
] | null | null | null | week9/scene/src/circleScene.cpp | theomission/algo2012 | 7e13c20bab94e1769f6751c4e124964ae05b7087 | [
"MIT"
] | 18 | 2015-03-12T23:11:08.000Z | 2022-02-05T05:43:51.000Z | /*
* squareScene.cpp
* sceneExample
*
* Created by zachary lieberman on 11/30/10.
* Copyright 2010 __MyCompanyName__. All rights reserved.
*
*/
#include "circleScene.h"
void circleScene::setup(){
}
void circleScene::update(){
}
void circleScene::draw(){
ofSetColor(0,0,0);
for (int i = 0; i < 100... | 14.413793 | 83 | 0.648325 | evejweinberg |
2fc218389ad2c87208d8275b8dbd79530dc73bbf | 1,029 | cpp | C++ | Hero's Quest/Item.cpp | uaineteine/Hero-s-Quest | 509504db82748911218541212f73a3f5ded13351 | [
"MIT"
] | null | null | null | Hero's Quest/Item.cpp | uaineteine/Hero-s-Quest | 509504db82748911218541212f73a3f5ded13351 | [
"MIT"
] | null | null | null | Hero's Quest/Item.cpp | uaineteine/Hero-s-Quest | 509504db82748911218541212f73a3f5ded13351 | [
"MIT"
] | null | null | null | #include "stdafx.h"
#include "Item.h"
Item::Item()
{
}
Item::~Item()
{
}
void Item::SetType(int type)
{
Type = type;
Description = "";
if (Type == 1)
{
Name = "Shield";
SetStats(0, 0, 0, 1, 0);
Description = "Adds 1 defence";
Cost = 4;
}
if (Type == 2)
{
Name = "Breastplate";
SetStats(0, 0, 0, 3, 0... | 15.590909 | 43 | 0.542274 | uaineteine |
2fc35f98171349d072f9e6587d5d1b7609255223 | 1,092 | cc | C++ | 贪心/POJ-3190.cc | OFShare/Algorithm-challenger | 43336871a5e48f8804d6e737c813d9d4c0dc2731 | [
"MIT"
] | 67 | 2019-07-14T05:38:41.000Z | 2021-12-23T11:52:51.000Z | 贪心/POJ-3190.cc | OFShare/Algorithm-challenger | 43336871a5e48f8804d6e737c813d9d4c0dc2731 | [
"MIT"
] | null | null | null | 贪心/POJ-3190.cc | OFShare/Algorithm-challenger | 43336871a5e48f8804d6e737c813d9d4c0dc2731 | [
"MIT"
] | 12 | 2020-01-16T10:48:01.000Z | 2021-06-11T16:49:04.000Z | /*
* Created by OFShare on 2019-12-10
*
*/
#include <cstdio>
#include <algorithm>
#include <queue>
#include <cmath>
#include <cstring>
const int maxn = 5e5 + 5;
int n;
struct node {
int start, end, id;
bool operator<(node &rhs) const {
return start < rhs.start;
}
}A[maxn];
int ans[maxn];
// <右端点, stall的... | 19.5 | 117 | 0.505495 | OFShare |
2fc36abf89eee12c6b38e689365ef8faa7ce177d | 4,692 | cpp | C++ | src/mino.cpp | KingAlone0/Tetris-Clone | 0f6d4b81e51a290f03b5bbe74c5464fe1d41f2d7 | [
"MIT"
] | null | null | null | src/mino.cpp | KingAlone0/Tetris-Clone | 0f6d4b81e51a290f03b5bbe74c5464fe1d41f2d7 | [
"MIT"
] | null | null | null | src/mino.cpp | KingAlone0/Tetris-Clone | 0f6d4b81e51a290f03b5bbe74c5464fe1d41f2d7 | [
"MIT"
] | null | null | null | #include "mino.hpp"
#include <iostream>
Mino::Mino()
{
sprPlace.left = 0;
sprPlace.top = 0;
sprPlace.width = 16;
sprPlace.height = 16;
texture = Defaults::Get().MinoTexture();
spr.setTexture(texture);
spr.setPosition(sf::Vector2f(0.f, 0.f));
updateCollision();
Collision.addAreaPlayab... | 19.15102 | 171 | 0.607204 | KingAlone0 |
2fc36edc3d77df88bedde116f5c7ee042d2b723b | 4,345 | cxx | C++ | vtkImageDualSigmoid.cxx | aWilson41/vtkImageDualSigmoid | dd7bd47449fb462fc0ef67c188d44e05ac2ed733 | [
"MIT"
] | null | null | null | vtkImageDualSigmoid.cxx | aWilson41/vtkImageDualSigmoid | dd7bd47449fb462fc0ef67c188d44e05ac2ed733 | [
"MIT"
] | null | null | null | vtkImageDualSigmoid.cxx | aWilson41/vtkImageDualSigmoid | dd7bd47449fb462fc0ef67c188d44e05ac2ed733 | [
"MIT"
] | null | null | null | #include "vtkImageDualSigmoid.h"
#include <vtkImageData.h>
#include <vtkImageProgressIterator.h>
#include <vtkObjectFactory.h>
vtkStandardNewMacro(vtkImageDualSigmoid);
vtkImageDualSigmoid::vtkImageDualSigmoid()
{
this->SetNumberOfInputPorts(1);
this->SetNumberOfOutputPorts(1);
Alpha = 1.0;
LowerBeta = 0.0;
Upp... | 27.327044 | 139 | 0.693211 | aWilson41 |
2fcaf243298cdf355270b98af852486dd90ab150 | 3,446 | cc | C++ | code/render/instancing/base/instancerendererbase.cc | Nechrito/nebula | 6c7ef27ab1374d3f751d866500729524f72a0c87 | [
"BSD-2-Clause"
] | null | null | null | code/render/instancing/base/instancerendererbase.cc | Nechrito/nebula | 6c7ef27ab1374d3f751d866500729524f72a0c87 | [
"BSD-2-Clause"
] | null | null | null | code/render/instancing/base/instancerendererbase.cc | Nechrito/nebula | 6c7ef27ab1374d3f751d866500729524f72a0c87 | [
"BSD-2-Clause"
] | null | null | null | //------------------------------------------------------------------------------
// instancerendererbase.cc
// (C) 2012 Gustav Sterbrant
// (C) 2013-2018 Individual contributors, see AUTHORS file
//------------------------------------------------------------------------------
#include "stdneb.h"
#include "instancere... | 25.153285 | 82 | 0.543529 | Nechrito |
2fcbde70552692282e12fced2607777709b6f9b2 | 10,616 | cpp | C++ | ctrl/stdga.cpp | lmcv-ufc/BIOS | 1e4d7ad67fd3b6744ae03ffb6ef650c442164ee3 | [
"BSD-2-Clause"
] | null | null | null | ctrl/stdga.cpp | lmcv-ufc/BIOS | 1e4d7ad67fd3b6744ae03ffb6ef650c442164ee3 | [
"BSD-2-Clause"
] | null | null | null | ctrl/stdga.cpp | lmcv-ufc/BIOS | 1e4d7ad67fd3b6744ae03ffb6ef650c442164ee3 | [
"BSD-2-Clause"
] | null | null | null | // -------------------------------------------------------------------------
// stdga.cpp - implementation of cStandardGA class.
// -------------------------------------------------------------------------
// Copyright (c) 2021 LMCV/UFC
// All rights reserved.
//
// Redistribution and use in source and binary forms, wi... | 26.606516 | 114 | 0.553881 | lmcv-ufc |
2fccd780483ab7faf6af89ea9c7fbcc844c5e096 | 541 | cxx | C++ | cxx/test/utils/file.cxx | mcptr/pjxxs | b95de3d13e05cd9a68e16015a39c29edf8e5bd59 | [
"MIT"
] | null | null | null | cxx/test/utils/file.cxx | mcptr/pjxxs | b95de3d13e05cd9a68e16015a39c29edf8e5bd59 | [
"MIT"
] | null | null | null | cxx/test/utils/file.cxx | mcptr/pjxxs | b95de3d13e05cd9a68e16015a39c29edf8e5bd59 | [
"MIT"
] | null | null | null | #include "file.hxx"
#include <fstream>
#include <stdexcept>
namespace test {
namespace utils {
void read_file_contents(const std::string& filename, std::string& dest)
{
std::ifstream in(filename, std::ios::in | std::ios::binary);
if(in)
{
in.seekg(0, std::ios::end);
dest.resize(in.tellg());
in.seekg... | 18.033333 | 71 | 0.628466 | mcptr |
2fd154830cc9e42a0104f87b723053a13f90c1f8 | 49,912 | hpp | C++ | include/System/String.hpp | darknight1050/BeatSaber-Quest-Codegen | a6eeecc3f0e8f6079630f9a9a72b3121ac7b2032 | [
"Unlicense"
] | null | null | null | include/System/String.hpp | darknight1050/BeatSaber-Quest-Codegen | a6eeecc3f0e8f6079630f9a9a72b3121ac7b2032 | [
"Unlicense"
] | null | null | null | include/System/String.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"
#include <initializer_list>
// Including type: System.IComparable
#include "System/IComp... | 61.925558 | 317 | 0.722211 | darknight1050 |
2fd158e68edbe45a9c974c01319d53d3d5100685 | 1,430 | cpp | C++ | 5-1_if_else_if_2.cpp | ahfa92/cpp | bddd80ea5c6aca23c91bd6693bb32da06e67cbd2 | [
"MIT"
] | null | null | null | 5-1_if_else_if_2.cpp | ahfa92/cpp | bddd80ea5c6aca23c91bd6693bb32da06e67cbd2 | [
"MIT"
] | null | null | null | 5-1_if_else_if_2.cpp | ahfa92/cpp | bddd80ea5c6aca23c91bd6693bb32da06e67cbd2 | [
"MIT"
] | null | null | null | #include <stdio.h>
#include <conio.h>
#include <iostream.h>
#include <string>
main()
{
char kd[3],mskp[15];
int kls;
long hrg=0;
cout<<"Masukkan Kode Pesawat [MPT/GRD/BTV] : ";cin>>kd;
cout<<"Kelas Pesawat : ";cin>>kls;
if(strcmp(kd,"MPT") || strcmp(kd,"mpt") || strcmp(kd,"Mpt"))
{
strcpy(mskp,"... | 19.324324 | 70 | 0.443357 | ahfa92 |
2fd2689eda384e86d0f9c0e3dd861e7f3487a81a | 912 | cpp | C++ | DxEngine/GDepthStencil.cpp | psk7142/DirectX2D | 1d91e8a863aab2dbf57fecd2df111261a90dd3de | [
"MIT"
] | null | null | null | DxEngine/GDepthStencil.cpp | psk7142/DirectX2D | 1d91e8a863aab2dbf57fecd2df111261a90dd3de | [
"MIT"
] | null | null | null | DxEngine/GDepthStencil.cpp | psk7142/DirectX2D | 1d91e8a863aab2dbf57fecd2df111261a90dd3de | [
"MIT"
] | 2 | 2020-03-09T15:12:11.000Z | 2020-03-09T16:04:04.000Z | #include "GDepthStencil.h"
GDepthStencil::GDepthStencil( )
: mDSDesc(D3D11_DEPTH_STENCIL_DESC( ))
, mState(nullptr)
{
EMPTY_STATEMENT;
}
GDepthStencil::~GDepthStencil( )
{
if ( nullptr != mState )
{
mState->Release( );
mState = nullptr;
}
}
bool GDepthStencil::Create( )
{
mDSDesc.DepthEnable = true;
mDSD... | 18.612245 | 101 | 0.730263 | psk7142 |
2fd425d15c738d0423fd34bc77ada9b61274025e | 7,803 | hpp | C++ | sdl/Hypergraph/ArcParserFct.hpp | sdl-research/hyp | d39f388f9cd283bcfa2f035f399b466407c30173 | [
"Apache-2.0"
] | 29 | 2015-01-26T21:49:51.000Z | 2021-06-18T18:09:42.000Z | sdl/Hypergraph/ArcParserFct.hpp | hypergraphs/hyp | d39f388f9cd283bcfa2f035f399b466407c30173 | [
"Apache-2.0"
] | 1 | 2015-12-08T15:03:15.000Z | 2016-01-26T14:31:06.000Z | sdl/Hypergraph/ArcParserFct.hpp | hypergraphs/hyp | d39f388f9cd283bcfa2f035f399b466407c30173 | [
"Apache-2.0"
] | 4 | 2015-11-21T14:25:38.000Z | 2017-10-30T22:22:00.000Z | // Copyright 2014-2015 SDL plc
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
// http://www.apache.org/licenses/LICENSE-2.0
// Unless required by applicable law or agreed to in writing,... | 36.125 | 110 | 0.647059 | sdl-research |
7c7d02ef078a9afa4d8469b8b6ed6e06f9f2d757 | 2,327 | cpp | C++ | Photon/photon/gfx/Shader.cpp | tatjam/Photon | a0c1584d10e1422cc2e468a6f94351a8310b7599 | [
"MIT"
] | 1 | 2017-05-28T12:10:30.000Z | 2017-05-28T12:10:30.000Z | Photon/photon/gfx/Shader.cpp | tatjam/Photon | a0c1584d10e1422cc2e468a6f94351a8310b7599 | [
"MIT"
] | null | null | null | Photon/photon/gfx/Shader.cpp | tatjam/Photon | a0c1584d10e1422cc2e468a6f94351a8310b7599 | [
"MIT"
] | null | null | null | #include "Shader.h"
namespace ph
{
void Shader::use()
{
glUseProgram(pr);
}
void Shader::load(std::string vpath, std::string fpath)
{
en->log(INF) << "Loading shaders: (" << vpath << ", " << fpath << ")" << endlog;
std::string vertexCode;
std::string fragmentCode;
std::ifstream vShaderFile;
std::if... | 23.27 | 82 | 0.661796 | tatjam |
7c88af4a689a965a5621c9c1050e8228c0189ed9 | 8,154 | cpp | C++ | Examples/DocsExamples/source/Programming with Documents/Split Documents/Split into html pages.cpp | btolfa/Aspose.Words-for-C | f75c77380b75546907ee63b96590f5250d2ffa90 | [
"MIT"
] | 32 | 2018-08-23T07:48:20.000Z | 2021-12-24T07:27:02.000Z | Examples/DocsExamples/source/Programming with Documents/Split Documents/Split into html pages.cpp | btolfa/Aspose.Words-for-C | f75c77380b75546907ee63b96590f5250d2ffa90 | [
"MIT"
] | 1 | 2021-11-23T03:35:31.000Z | 2022-01-26T09:19:44.000Z | Examples/DocsExamples/source/Programming with Documents/Split Documents/Split into html pages.cpp | btolfa/Aspose.Words-for-C | f75c77380b75546907ee63b96590f5250d2ffa90 | [
"MIT"
] | 13 | 2018-07-31T05:02:33.000Z | 2022-03-06T22:12:36.000Z | #include "Split into html pages.h"
#include <Aspose.Words.Cpp/Body.h>
#include <Aspose.Words.Cpp/BreakType.h>
#include <Aspose.Words.Cpp/Fields/Field.h>
#include <Aspose.Words.Cpp/ImportFormatMode.h>
#include <Aspose.Words.Cpp/MailMerging/MailMerge.h>
#include <Aspose.Words.Cpp/Node.h>
#include <Aspose.Words.Cpp/Node... | 36.565022 | 146 | 0.712288 | btolfa |
7c8bd80dcf97df51bd3ba2e6dea94e5878938ebb | 1,301 | hpp | C++ | Firmware/graphics/gs_event_dispatcher.hpp | ValentiWorkLearning/GradWork | 70bb5a629df056a559bae3694b47a2e5dc98c23b | [
"MIT"
] | 39 | 2019-10-23T12:06:16.000Z | 2022-01-26T04:28:29.000Z | Firmware/graphics/gs_event_dispatcher.hpp | ValentiWorkLearning/GradWork | 70bb5a629df056a559bae3694b47a2e5dc98c23b | [
"MIT"
] | 20 | 2020-03-21T20:21:46.000Z | 2021-11-19T14:34:03.000Z | Firmware/graphics/gs_event_dispatcher.hpp | ValentiWorkLearning/GradWork | 70bb5a629df056a559bae3694b47a2e5dc98c23b | [
"MIT"
] | 7 | 2019-10-18T09:44:10.000Z | 2021-06-11T13:05:16.000Z | #pragma once
#include "ih/gs_events.hpp"
#include "utils/Noncopyable.hpp"
#include <any>
#include <atomic>
#include <functional>
#include <memory>
#include <vector>
#include <etl/queue_spsc_atomic.h>
#include <etl/vector.h>
namespace Graphics::Events
{
class EventDispatcher : private Utils::noncopyable
{
public:... | 25.019231 | 93 | 0.757879 | ValentiWorkLearning |
7c99511af0b6cd91d4403e9bf55b979be3005c6c | 1,997 | cpp | C++ | libmetartc2/src/yangcapture/YangScreenShare.cpp | guoai2015/metaRTC | 70e9a09c9a703a547e791cd246c4054d87881f08 | [
"MIT"
] | 147 | 2021-09-12T07:23:45.000Z | 2021-11-11T11:31:26.000Z | libmetartc2/src/yangcapture/YangScreenShare.cpp | guoai2015/metaRTC | 70e9a09c9a703a547e791cd246c4054d87881f08 | [
"MIT"
] | 6 | 2021-11-30T07:53:09.000Z | 2022-02-25T01:36:38.000Z | libmetartc2/src/yangcapture/YangScreenShare.cpp | guoai2015/metaRTC | 70e9a09c9a703a547e791cd246c4054d87881f08 | [
"MIT"
] | 36 | 2021-11-16T03:32:41.000Z | 2022-03-31T07:21:32.000Z | /*
* YangScreenShareLinux.cpp
*
* Created on: 2020年8月30日
* Author: yang
*/
#include "YangScreenShare.h"
#include "yangutil/yang_unistd.h"
#include "yangavutil/video/YangYuvConvert.h"
YangScreenCapture::YangScreenCapture(){
m_isStart=0;
}
YangScreenCapture::~YangScreenCapture(){
}
void YangScreenCaptur... | 21.244681 | 72 | 0.750125 | guoai2015 |
7ca1f03d0d13e5ab1b0e383a1d885f68dca4a426 | 388 | cpp | C++ | src/server/main.cpp | Ooggle/MUSIC-exclamation-mark | 55f4dd750d57227fac29d887d90e0c8ec2ad7397 | [
"MIT"
] | 7 | 2020-08-28T21:47:54.000Z | 2021-01-01T17:54:27.000Z | src/server/main.cpp | Ooggle/MUSIC-exclamation-mark | 55f4dd750d57227fac29d887d90e0c8ec2ad7397 | [
"MIT"
] | null | null | null | src/server/main.cpp | Ooggle/MUSIC-exclamation-mark | 55f4dd750d57227fac29d887d90e0c8ec2ad7397 | [
"MIT"
] | 1 | 2020-12-26T17:08:54.000Z | 2020-12-26T17:08:54.000Z | /*
Compilation : g++ main.cpp -std=c++17 `sdl2-config --libs` -lSDL2_mixer `taglib-config --libs` `pkg-config --cflags --libs taglib` -lz
Some flags are useless for now.
*/
#include "DatabaseHandler.h"
#include "WebHandler.h"
#include <stdio.h>
#define SERVER_VERSION "0.1"
int main()
{
printf("Welcome to... | 21.555556 | 138 | 0.67268 | Ooggle |
7ca26cc859aae12a80ec9397f9da9a51ce1475d5 | 323 | cpp | C++ | project/OFEC_sc2/core/global.cpp | BaiChunhui-9803/bch_sc2_OFEC | d50211b27df5a51a953a2475b6c292d00cbfeff6 | [
"MIT"
] | null | null | null | project/OFEC_sc2/core/global.cpp | BaiChunhui-9803/bch_sc2_OFEC | d50211b27df5a51a953a2475b6c292d00cbfeff6 | [
"MIT"
] | null | null | null | project/OFEC_sc2/core/global.cpp | BaiChunhui-9803/bch_sc2_OFEC | d50211b27df5a51a953a2475b6c292d00cbfeff6 | [
"MIT"
] | null | null | null | #include "global.h"
namespace OFEC {
factory<Problem> g_reg_problem;
factory<Algorithm> g_reg_algorithm;
std::map<std::string, std::set<std::string>> g_alg_for_pro;
std::set<std::string> g_param_omit;
std::map<std::string, std::string> g_param_abbr;
std::string g_working_dir = OFEC_DIR;
std::mutex g_cout_mutex... | 26.916667 | 60 | 0.74613 | BaiChunhui-9803 |
7ca48e1c9feca936e90619635dbdb1a2fba604ab | 1,624 | hpp | C++ | ch10/stack_by_list.hpp | klong13579/cppL | 7aa8afaf2d2e17578c7fd91654bedcccf0a6baab | [
"MIT"
] | 261 | 2015-01-11T20:42:33.000Z | 2022-02-17T01:33:39.000Z | ch10/stack_by_list.hpp | LeungGeorge/CLRS | 7aa8afaf2d2e17578c7fd91654bedcccf0a6baab | [
"MIT"
] | 4 | 2015-04-05T11:49:45.000Z | 2017-02-19T08:29:52.000Z | ch10/stack_by_list.hpp | LeungGeorge/CLRS | 7aa8afaf2d2e17578c7fd91654bedcccf0a6baab | [
"MIT"
] | 98 | 2015-01-03T12:58:50.000Z | 2021-07-16T07:29:31.000Z | /***************************************************************************
* @file stack_by_list.hpp
* @author Alan.W
* @date 30 May 2014
* @remark Chapter 10, Introduction to Algorithms
* @note code style : STL
********************************************************************... | 18.247191 | 79 | 0.501847 | klong13579 |
7ca82ca251546cfb09a8f149676c8ede2ce19251 | 3,948 | cpp | C++ | Libraries/RobsJuceModules/rosic/sequencing/rosic_AcidPattern.cpp | RobinSchmidt/RS-MET-Preliminary | 6c01cbaad7cce3daa3293c444dd9e4b74e5ebfbe | [
"FTL"
] | 34 | 2017-04-19T18:26:02.000Z | 2022-02-15T17:47:26.000Z | Libraries/RobsJuceModules/rosic/sequencing/rosic_AcidPattern.cpp | RobinSchmidt/RS-MET-Preliminary | 6c01cbaad7cce3daa3293c444dd9e4b74e5ebfbe | [
"FTL"
] | 307 | 2017-05-04T21:45:01.000Z | 2022-02-03T00:59:01.000Z | Libraries/RobsJuceModules/rosic/sequencing/rosic_AcidPattern.cpp | RobinSchmidt/RS-MET-Preliminary | 6c01cbaad7cce3daa3293c444dd9e4b74e5ebfbe | [
"FTL"
] | 4 | 2017-09-05T17:04:31.000Z | 2021-12-15T21:24:28.000Z | //#include "rosic_AcidPattern.h"
//using namespace rosic;
AcidPattern::AcidPattern()
{
numSteps = 16;
stepLength = 0.5;
}
//-------------------------------------------------------------------------------------------------
// setup:
void AcidPattern::clear()
{
for(int i=0; i<maxNumSteps; i++)
{
notes... | 23.783133 | 102 | 0.609929 | RobinSchmidt |
7cb574e9ac5f67235a3ff3c89c8c918f75508ed3 | 1,546 | cpp | C++ | internalconnector/internalrastercoverageconnector.cpp | ridoo/IlwisCore | 9d9837507d804a4643545a03fd40d9b4d0eaee45 | [
"Apache-2.0"
] | null | null | null | internalconnector/internalrastercoverageconnector.cpp | ridoo/IlwisCore | 9d9837507d804a4643545a03fd40d9b4d0eaee45 | [
"Apache-2.0"
] | null | null | null | internalconnector/internalrastercoverageconnector.cpp | ridoo/IlwisCore | 9d9837507d804a4643545a03fd40d9b4d0eaee45 | [
"Apache-2.0"
] | null | null | null | #include "kernel.h"
#include "raster.h"
#include "numericrange.h"
#include "numericdomain.h"
#include "columndefinition.h"
#include "table.h"
#include "connectorinterface.h"
#include "mastercatalog.h"
#include "ilwisobjectconnector.h"
#include "catalogexplorer.h"
#include "catalogconnector.h"
#include "internalrasterco... | 27.607143 | 174 | 0.76326 | ridoo |
7cbc334cb01636a1bcb59b8de0f8ff2fcf0c0a52 | 2,385 | cpp | C++ | src/D3D9Hook.cpp | muhopensores/dmc3-inputs-thing | 2cb97f30c39bbe8d6bbe724f61d932a1fdaa1719 | [
"MIT"
] | 5 | 2021-06-09T23:53:28.000Z | 2022-02-21T06:09:41.000Z | src/D3D9Hook.cpp | muhopensores/dmc3-inputs-thing | 2cb97f30c39bbe8d6bbe724f61d932a1fdaa1719 | [
"MIT"
] | 9 | 2021-06-09T23:52:43.000Z | 2021-09-17T14:05:47.000Z | src/D3D9Hook.cpp | muhopensores/dmc3-inputs-thing | 2cb97f30c39bbe8d6bbe724f61d932a1fdaa1719 | [
"MIT"
] | null | null | null | #include <algorithm>
#include <spdlog/spdlog.h>
#include "D3D9Hook.hpp"
using namespace std;
static D3D9Hook* g_d3d9_hook = nullptr;
D3D9Hook::~D3D9Hook() {
unhook();
}
uintptr_t end_scene_jmp_ret = 0;
__declspec(naked) void end_scene_hook(void) {
__asm {
pushad
push eax
call D3D9Hook::end_scene
popad... | 21.681818 | 166 | 0.72369 | muhopensores |
7cbfc7ce81026348266e9ae8ec20990e911e02ea | 13,300 | cpp | C++ | packages/utility/archive/test/tstHDF5ArchiveTupleTypes.cpp | bam241/FRENSIE | e1760cd792928699c84f2bdce70ff54228e88094 | [
"BSD-3-Clause"
] | 10 | 2019-11-14T19:58:30.000Z | 2021-04-04T17:44:09.000Z | packages/utility/archive/test/tstHDF5ArchiveTupleTypes.cpp | bam241/FRENSIE | e1760cd792928699c84f2bdce70ff54228e88094 | [
"BSD-3-Clause"
] | 43 | 2020-03-03T19:59:20.000Z | 2021-09-08T03:36:08.000Z | packages/utility/archive/test/tstHDF5ArchiveTupleTypes.cpp | bam241/FRENSIE | e1760cd792928699c84f2bdce70ff54228e88094 | [
"BSD-3-Clause"
] | 6 | 2020-02-12T17:37:07.000Z | 2020-09-08T18:59:51.000Z | //---------------------------------------------------------------------------//
//!
//! \file tstHDF5ArchiveTupleTypes.cpp
//! \author Alex Robinson
//! \brief HDF5 archive tuple type unit tests
//!
//---------------------------------------------------------------------------//
// Std Lib Includes
#include <iostrea... | 40.060241 | 258 | 0.635338 | bam241 |
7cc25b5cc7f475ba8cd715a85093f9e839f362d0 | 15,286 | cpp | C++ | src/src/tests/suites/mutation_test_bad.cpp | geneial/geneial | 5e525c32b7c1e1e88788644e448e9234c93b55e2 | [
"MIT"
] | 5 | 2015-08-25T15:40:09.000Z | 2020-03-15T19:33:22.000Z | src/src/tests/suites/mutation_test_bad.cpp | geneial/geneial | 5e525c32b7c1e1e88788644e448e9234c93b55e2 | [
"MIT"
] | null | null | null | src/src/tests/suites/mutation_test_bad.cpp | geneial/geneial | 5e525c32b7c1e1e88788644e448e9234c93b55e2 | [
"MIT"
] | 3 | 2019-01-24T13:14:51.000Z | 2022-01-03T07:30:20.000Z | #define BOOST_TEST_DYN_LINK
#define BOOST_TEST_MODULE operations/mutation
#include <boost/test/unit_test.hpp>
#include <geneial/algorithm/BaseGeneticAlgorithm.h>
#include <geneial/core/fitness/Fitness.h>
#include <geneial/core/fitness/FitnessEvaluator.h>
#include <geneial/core/population/PopulationSettings.h>
#incl... | 45.766467 | 171 | 0.715753 | geneial |
7cc4d6366a91a8a61ad3decd9b770103ff9db9c1 | 172 | cpp | C++ | Tools/STM32FW/STM32Cube_FW_F7_V1.16.2/Projects/STM32F769I_EVAL/Demonstrations/TouchGFX/Gui/generated/fonts/src/Font_Asap_Regular_13_4bpp.cpp | ramkumarkoppu/NUCLEO-F767ZI-ESW | 85e129d71ee8eccbd0b94b5e07e75b6b91679ee8 | [
"MIT"
] | null | null | null | Tools/STM32FW/STM32Cube_FW_F7_V1.16.2/Projects/STM32F769I_EVAL/Demonstrations/TouchGFX/Gui/generated/fonts/src/Font_Asap_Regular_13_4bpp.cpp | ramkumarkoppu/NUCLEO-F767ZI-ESW | 85e129d71ee8eccbd0b94b5e07e75b6b91679ee8 | [
"MIT"
] | null | null | null | Tools/STM32FW/STM32Cube_FW_F7_V1.16.2/Projects/STM32F769I_EVAL/Demonstrations/TouchGFX/Gui/generated/fonts/src/Font_Asap_Regular_13_4bpp.cpp | ramkumarkoppu/NUCLEO-F767ZI-ESW | 85e129d71ee8eccbd0b94b5e07e75b6b91679ee8 | [
"MIT"
] | null | null | null | #include <touchgfx/hal/Types.hpp>
FONT_LOCATION_FLASH_PRAGMA
KEEP extern const uint8_t unicodes_Asap_Regular_13_4bpp[] FONT_LOCATION_FLASH_ATTRIBUTE = {
0 // No glyphs
};
| 24.571429 | 91 | 0.819767 | ramkumarkoppu |
7cc6263b91af91347ca89106b29f0e127c9f61b6 | 2,524 | cpp | C++ | windows/cpp/samples/CameraToDVD/MuxedStream.cpp | dvdbuilder/dvdbuilder-samples | 8d2b472bd0af899fa342437bb41b33ef8603e0aa | [
"MIT"
] | null | null | null | windows/cpp/samples/CameraToDVD/MuxedStream.cpp | dvdbuilder/dvdbuilder-samples | 8d2b472bd0af899fa342437bb41b33ef8603e0aa | [
"MIT"
] | null | null | null | windows/cpp/samples/CameraToDVD/MuxedStream.cpp | dvdbuilder/dvdbuilder-samples | 8d2b472bd0af899fa342437bb41b33ef8603e0aa | [
"MIT"
] | null | null | null | #include "stdafx.h"
#include "MuxedStream.h"
using namespace primo::dvdbuilder::VR;
MuxedStreamCB::MuxedStreamCB()
{
filename[0] = L'\0';
file = NULL;
MainWindow = NULL;
Reset();
}
MuxedStreamCB::~MuxedStreamCB()
{
Reset();
}
void MuxedStreamCB::Reset()
{
if (file)
{
fclose(file);
... | 16.496732 | 95 | 0.633914 | dvdbuilder |
7ccab8672dba2e6cc86748ba2213e2e6c7a12468 | 2,115 | hpp | C++ | src/mbgl/renderer/bucket.hpp | zxlee618/mapbox-gl-native | 04c70f55a534ca7cb4bb5358da3217329643a0f0 | [
"BSL-1.0",
"Apache-2.0"
] | 6 | 2019-06-17T05:41:03.000Z | 2022-01-20T13:16:14.000Z | src/mbgl/renderer/bucket.hpp | zxlee618/mapbox-gl-native | 04c70f55a534ca7cb4bb5358da3217329643a0f0 | [
"BSL-1.0",
"Apache-2.0"
] | null | null | null | src/mbgl/renderer/bucket.hpp | zxlee618/mapbox-gl-native | 04c70f55a534ca7cb4bb5358da3217329643a0f0 | [
"BSL-1.0",
"Apache-2.0"
] | 4 | 2019-08-30T07:40:17.000Z | 2022-01-13T09:36:55.000Z | #pragma once
#include <mbgl/util/noncopyable.hpp>
#include <mbgl/tile/geometry_tile_data.hpp>
#include <mbgl/style/layer_type.hpp>
#include <mbgl/style/image_impl.hpp>
#include <mbgl/renderer/image_atlas.hpp>
#include <atomic>
namespace mbgl {
namespace gl {
class Context;
} // namespace gl
class RenderLayer;
class... | 28.581081 | 103 | 0.665248 | zxlee618 |
7ccf6d8cd7e5457a4ff6c7e03c2a5a56cf69237e | 809 | cpp | C++ | q206-Reverse-Linked-List-recursive-optimized.cpp | risyomei/leetcode | bd0eba2d31eca48c182fc328fab02aac61c15366 | [
"MIT"
] | null | null | null | q206-Reverse-Linked-List-recursive-optimized.cpp | risyomei/leetcode | bd0eba2d31eca48c182fc328fab02aac61c15366 | [
"MIT"
] | null | null | null | q206-Reverse-Linked-List-recursive-optimized.cpp | risyomei/leetcode | bd0eba2d31eca48c182fc328fab02aac61c15366 | [
"MIT"
] | null | null | null | /**
* Definition for singly-linked list.
* struct ListNode {
* int val;
* ListNode *next;
* ListNode() : val(0), next(nullptr) {}
* ListNode(int x) : val(x), next(nullptr) {}
* ListNode(int x, ListNode *next) : val(x), next(next) {}
* };
*/
class Solution {
public:
ListNode* reverse... | 22.472222 | 62 | 0.454883 | risyomei |
7cd2b544adf16108232c989a22345f250bc5d1f6 | 4,440 | cpp | C++ | src/Trinity.C/src/Storage/MTHash/MTHash.DiskIO.cpp | erinloy/GraphEngine | 1a913c18043192c597d48e0b4e77b0a62cd6a10e | [
"MIT"
] | 370 | 2019-05-08T07:40:52.000Z | 2022-03-28T15:29:18.000Z | src/Trinity.C/src/Storage/MTHash/MTHash.DiskIO.cpp | qingzhu521/GraphEngine | 56d98c09b8e9a55b4397823f20cf29263c8857b5 | [
"MIT"
] | 55 | 2019-05-20T09:01:48.000Z | 2022-03-31T23:05:23.000Z | src/Trinity.C/src/Storage/MTHash/MTHash.DiskIO.cpp | qingzhu521/GraphEngine | 56d98c09b8e9a55b4397823f20cf29263c8857b5 | [
"MIT"
] | 83 | 2019-05-15T14:16:23.000Z | 2022-03-06T07:04:10.000Z | // Graph Engine
// Copyright (c) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE.md file in the project root for full license information.
//
#include "Storage/MTHash/MTHash.h"
#include "Storage/MemoryTrunk/MemoryTrunk.h"
using namespace Trinity::IO;
namespace Storage
{
bool MTHash::... | 38.608696 | 116 | 0.592568 | erinloy |
7cd6712e6afe46868512b116b3c323f376e8e193 | 2,240 | cpp | C++ | code/engine.vc2008/xrGame/items/WeaponDispersion.cpp | Rikoshet-234/xray-oxygen | eaac3fa4780639152684f3251b8b4452abb8e439 | [
"Apache-2.0"
] | 7 | 2018-03-27T12:36:07.000Z | 2020-06-26T11:31:52.000Z | code/engine.vc2008/xrGame/items/WeaponDispersion.cpp | Rikoshet-234/xray-oxygen | eaac3fa4780639152684f3251b8b4452abb8e439 | [
"Apache-2.0"
] | 2 | 2018-05-26T23:17:14.000Z | 2019-04-14T18:33:27.000Z | code/engine.vc2008/xrGame/items/WeaponDispersion.cpp | Rikoshet-234/xray-oxygen | eaac3fa4780639152684f3251b8b4452abb8e439 | [
"Apache-2.0"
] | 3 | 2019-10-20T19:35:34.000Z | 2022-02-28T01:42:10.000Z | // WeaponDispersion.cpp: разбос при стрельбе
//
//////////////////////////////////////////////////////////////////////
#include "stdafx.h"
#include "items/Weapon.h"
#include "inventoryowner.h"
#include "actor.h"
#include "inventory_item_impl.h"
#include "actoreffector.h"
#include "effectorshot.h"
//возвращает 1, ... | 28.35443 | 110 | 0.725446 | Rikoshet-234 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.