hexsha stringlengths 40 40 | size int64 7 1.05M | ext stringclasses 13
values | lang stringclasses 1
value | max_stars_repo_path stringlengths 4 269 | max_stars_repo_name stringlengths 5 108 | max_stars_repo_head_hexsha stringlengths 40 40 | max_stars_repo_licenses listlengths 1 9 | max_stars_count float64 1 191k ⌀ | max_stars_repo_stars_event_min_datetime stringlengths 24 24 ⌀ | max_stars_repo_stars_event_max_datetime stringlengths 24 24 ⌀ | max_issues_repo_path stringlengths 4 269 | max_issues_repo_name stringlengths 5 116 | max_issues_repo_head_hexsha stringlengths 40 40 | max_issues_repo_licenses listlengths 1 9 | max_issues_count float64 1 77k ⌀ | max_issues_repo_issues_event_min_datetime stringlengths 24 24 ⌀ | max_issues_repo_issues_event_max_datetime stringlengths 24 24 ⌀ | max_forks_repo_path stringlengths 4 269 | max_forks_repo_name stringlengths 5 116 | max_forks_repo_head_hexsha stringlengths 40 40 | max_forks_repo_licenses listlengths 1 9 | max_forks_count float64 1 105k ⌀ | max_forks_repo_forks_event_min_datetime stringlengths 24 24 ⌀ | max_forks_repo_forks_event_max_datetime stringlengths 24 24 ⌀ | content stringlengths 7 1.05M | avg_line_length float64 1.21 653k | max_line_length int64 6 990k | alphanum_fraction float64 0.01 1 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
5feeb313522dbb912920abf6105287aa0f6676cb | 9,638 | cpp | C++ | FDTD/EncodeOutput.cpp | plisdku/trogdor6 | d77eb137dd0c03635c0016801ada54117697e521 | [
"MIT"
] | null | null | null | FDTD/EncodeOutput.cpp | plisdku/trogdor6 | d77eb137dd0c03635c0016801ada54117697e521 | [
"MIT"
] | null | null | null | FDTD/EncodeOutput.cpp | plisdku/trogdor6 | d77eb137dd0c03635c0016801ada54117697e521 | [
"MIT"
] | null | null | null | /*
* EncodeOutput.cpp
* Trogdor6
*
* Created by Paul Hansen on 3/23/11.
* Copyright 2011 Stanford University. All rights reserved.
*
* This file is covered by the MIT license. See LICENSE.txt.
*/
#include "EncodeOutput.h"
#include "SimulationDescription.h"
#include "VoxelizedPartition.h"
#include "opera... | 30.596825 | 88 | 0.630629 |
5fef168528168f3c92178c86d0dad2e17cfd3203 | 746 | cpp | C++ | codechef/lapindrome.cpp | NIKU-SINGH/problemsolving | f7dd9d065a945a2f59e84580f926d35949ce3be2 | [
"MIT"
] | null | null | null | codechef/lapindrome.cpp | NIKU-SINGH/problemsolving | f7dd9d065a945a2f59e84580f926d35949ce3be2 | [
"MIT"
] | 1 | 2021-07-07T14:37:03.000Z | 2021-07-07T14:39:58.000Z | codechef/lapindrome.cpp | NIKU-SINGH/problemsolving | f7dd9d065a945a2f59e84580f926d35949ce3be2 | [
"MIT"
] | null | null | null | #include <iostream>
using namespace std;
int main() {
// your code goes here
int t;
cin>>t;
while(t--)
{
string str;
cin>>str;
int n = str.length();
int part1freq[26] ={0};
int part2freq[26]={0};
for(int i=0;i<n/2;i++)
{
part1fre... | 16.217391 | 44 | 0.349866 |
5ff14ce2f2ce439eda50895e17a1e0e0c322c16d | 773 | hpp | C++ | include/aikido/planner.hpp | personalrobotics/r3 | 1303e3f3ef99a0c2249abc7415d19113f0026565 | [
"BSD-3-Clause"
] | 181 | 2016-04-22T15:11:23.000Z | 2022-03-26T12:51:08.000Z | include/aikido/planner.hpp | personalrobotics/r3 | 1303e3f3ef99a0c2249abc7415d19113f0026565 | [
"BSD-3-Clause"
] | 514 | 2016-04-20T04:29:51.000Z | 2022-02-10T19:46:21.000Z | include/aikido/planner.hpp | personalrobotics/r3 | 1303e3f3ef99a0c2249abc7415d19113f0026565 | [
"BSD-3-Clause"
] | 31 | 2017-03-17T09:53:02.000Z | 2022-03-23T10:35:05.000Z | #include "aikido/planner/PlanningResult.hpp"
#include "aikido/planner/SnapPlanner.hpp"
#include "aikido/planner/TrajectoryPostProcessor.hpp"
#include "aikido/planner/World.hpp"
#include "aikido/planner/ompl/BackwardCompatibility.hpp"
#include "aikido/planner/ompl/CRRT.hpp"
#include "aikido/planner/ompl/CRRTConnect.hpp"... | 45.470588 | 57 | 0.818887 |
5ff9f69ce234ca1b3fd89957e617a022c9b3ee36 | 2,747 | hpp | C++ | R2017b/extern/include/multimedia/AudioDefs.hpp | catou93/pelican_test | 23de9722c431fa0caa3c68d038de9423cfcdda80 | [
"BSD-2-Clause"
] | 5 | 2018-11-21T11:52:49.000Z | 2021-04-14T03:13:31.000Z | R2017b/extern/include/multimedia/AudioDefs.hpp | catou93/pelican_test | 23de9722c431fa0caa3c68d038de9423cfcdda80 | [
"BSD-2-Clause"
] | 3 | 2018-08-24T03:12:36.000Z | 2019-09-29T06:21:32.000Z | R2017b/extern/include/multimedia/AudioDefs.hpp | catou93/pelican_test | 23de9722c431fa0caa3c68d038de9423cfcdda80 | [
"BSD-2-Clause"
] | 4 | 2018-08-10T07:02:30.000Z | 2022-03-09T07:20:16.000Z | /*
* AudioDefs.h - Definitions for audio I/O
*
* Copyright 1995-2012 The MathWorks, Inc.
*/
#ifndef AUDIODEFS_H
#define AUDIODEFS_H
/* these follow Simulink data types, in simstruc_types.h */
typedef enum
{
AudioDataType_Double = 0, /* double */
AudioDataType_Single, /* float */... | 30.865169 | 102 | 0.649072 |
5ffb6add8895c91cfa81e7e0f06f13ade6048f8a | 2,942 | cpp | C++ | source/internal/logger.cpp | HeliosInteractive/libkeen | f31246c2f0a705b9f1c25e4400d96a62408c37e6 | [
"MIT"
] | 1 | 2016-04-26T04:16:55.000Z | 2016-04-26T04:16:55.000Z | source/internal/logger.cpp | HeliosInteractive/libkeen | f31246c2f0a705b9f1c25e4400d96a62408c37e6 | [
"MIT"
] | null | null | null | source/internal/logger.cpp | HeliosInteractive/libkeen | f31246c2f0a705b9f1c25e4400d96a62408c37e6 | [
"MIT"
] | 2 | 2016-04-14T16:57:03.000Z | 2020-02-21T00:17:48.000Z | #include "internal/logger.hpp"
#include <iostream>
#include <fstream>
#include <iomanip>
#include <chrono>
#include <ctime>
// by default turn on both file and console
// logging behaviors.
#ifndef LIBKEEN_LOG_TO_CONSOLE
# define LIBKEEN_LOG_TO_CONSOLE 1
#endif
#ifndef LIBKEEN_LOG_TO_LOGFILE
# define LIBKEEN_LO... | 22.120301 | 95 | 0.633583 |
5ffc113e32897d21acdfb1256f6c36cb28d1b377 | 4,297 | cpp | C++ | Project/AudioManager.cpp | OiCGame/GameJam01 | 7860098d235678cbe32215c733366d4fb973ea5e | [
"MIT"
] | null | null | null | Project/AudioManager.cpp | OiCGame/GameJam01 | 7860098d235678cbe32215c733366d4fb973ea5e | [
"MIT"
] | null | null | null | Project/AudioManager.cpp | OiCGame/GameJam01 | 7860098d235678cbe32215c733366d4fb973ea5e | [
"MIT"
] | null | null | null | #include "AudioManager.h"
CAudioManager::CAudioManager() {
}
CAudioManager::~CAudioManager() {
}
CAudioManager& CAudioManager::Singleton(void) {
static CAudioManager obj;
return obj;
}
void CAudioManager::Play(SoundBufferKey key) {
auto temp = SoundBufferAsset(key);
auto it = std::find(m_pSounds.be... | 30.475177 | 92 | 0.695136 |
5ffca5a8fee1bfe85e677a558fb668dc73292ed0 | 472 | cpp | C++ | array/sumofallsubarray.cpp | riti2409/forplacements | 9e8fb99c9d65b04eea71abb3fbdcffc2a1433a04 | [
"MIT"
] | 5 | 2021-12-03T14:29:16.000Z | 2022-02-04T09:06:37.000Z | array/sumofallsubarray.cpp | riti2409/forplacements | 9e8fb99c9d65b04eea71abb3fbdcffc2a1433a04 | [
"MIT"
] | null | null | null | array/sumofallsubarray.cpp | riti2409/forplacements | 9e8fb99c9d65b04eea71abb3fbdcffc2a1433a04 | [
"MIT"
] | 2 | 2022-01-16T14:20:42.000Z | 2022-01-17T06:49:01.000Z | //5
// 1 2 0 7 2
//o/p-> 1,3,3,10,12,2,2,9,11,0,7,9,7,9,2,
#include <bits/stdc++.h>
using namespace std;
int main()
{
int n;
cin >> n;
int arr[n];
for (int i = 0; i < n; i++)
{
cin >> arr[i];
}
int currsum=0;
for (int i = 0; i < n; i++)
{
currs... | 14.30303 | 42 | 0.358051 |
5fff380e5006a8672a31e48f8f2f7a1f46761144 | 1,689 | cpp | C++ | ipc2/ipc2.cpp | Elexir-Stefan/ray-usermode | 9a1c7d773496493482cf2e711fe1808b537db63a | [
"MIT"
] | null | null | null | ipc2/ipc2.cpp | Elexir-Stefan/ray-usermode | 9a1c7d773496493482cf2e711fe1808b537db63a | [
"MIT"
] | null | null | null | ipc2/ipc2.cpp | Elexir-Stefan/ray-usermode | 9a1c7d773496493482cf2e711fe1808b537db63a | [
"MIT"
] | null | null | null | #include <raykernel.h>
#include <exception>
#include <video/VideoStream.h>
#include <processes/processes.h>
#include <ipc/ipc.h>
#include <sstream>
using namespace Kernel;
using namespace Kernel::IPC;
using namespace Kernel::Processes;
/**
* TestFunction used as callback
*/
int TestFunction(int arg2, float arg3)
{
... | 19.870588 | 97 | 0.6791 |
2700c4b0db0f1c1293d72965144c99c28dd89578 | 1,540 | cpp | C++ | Accepted_The 2000's ACM-ICPC/P2783 (Robots).cpp | peneksglazami/acm-icpc-training | a3c41b65b8f8523713f9859b076f300a12c4e7f3 | [
"CC0-1.0"
] | null | null | null | Accepted_The 2000's ACM-ICPC/P2783 (Robots).cpp | peneksglazami/acm-icpc-training | a3c41b65b8f8523713f9859b076f300a12c4e7f3 | [
"CC0-1.0"
] | null | null | null | Accepted_The 2000's ACM-ICPC/P2783 (Robots).cpp | peneksglazami/acm-icpc-training | a3c41b65b8f8523713f9859b076f300a12c4e7f3 | [
"CC0-1.0"
] | null | null | null | /***************************************************
Problem: 2783 - Robots
ACM ICPC - North America - Mid Central - 2003/2004
Solved by Andrey Grigorov
***************************************************/
#include <stdio.h>
#include <vector>
#include <queue>
using namespace std;
typedef struct{
int ... | 24.83871 | 78 | 0.380519 |
dfd6b713f18b58b836b96f6fc5f669da6bc435ff | 517 | cpp | C++ | cpp/data/grid.cpp | equivalence1/ml_lib | 92d75ab73bc2d77ba8fa66022c803c06cad66f21 | [
"Apache-2.0"
] | null | null | null | cpp/data/grid.cpp | equivalence1/ml_lib | 92d75ab73bc2d77ba8fa66022c803c06cad66f21 | [
"Apache-2.0"
] | null | null | null | cpp/data/grid.cpp | equivalence1/ml_lib | 92d75ab73bc2d77ba8fa66022c803c06cad66f21 | [
"Apache-2.0"
] | null | null | null | #include "grid.h"
void Grid::binarize(ConstVecRef<float> row, VecRef<uint8_t> dst) const {
for (int64_t f = 0; f < features_.size(); ++f) {
dst[f] = computeBin(row[origFeatureIndex(f)], borders_[f]);
}
}
void Grid::binarize(const Vec& x, Buffer<uint8_t>& to) const {
assert(x.device().deviceType()... | 28.722222 | 72 | 0.644101 |
dfd8d1e701891eb5373cf737aa8c8970666e3637 | 699 | cpp | C++ | Luogu/luogu4317.cpp | wzl19371/OI-LIfe | f7f54542d1369b5e4047fcbb2e26c1c64d22ee26 | [
"MIT"
] | 1 | 2020-10-05T02:07:52.000Z | 2020-10-05T02:07:52.000Z | Luogu/luogu4317.cpp | wzl19371/OI-LIfe | f7f54542d1369b5e4047fcbb2e26c1c64d22ee26 | [
"MIT"
] | null | null | null | Luogu/luogu4317.cpp | wzl19371/OI-LIfe | f7f54542d1369b5e4047fcbb2e26c1c64d22ee26 | [
"MIT"
] | null | null | null | #include <cstdio>
using namespace std;
typedef long long ll;
const ll p=10000007;
ll n,f[107][107],t[107];
ll qpow(ll x,ll y){
ll ans=1;
while(y){
if(y&1) ans=ans*x%p;
x=x*x%p; y>>=1;
}
return ans;
}
ll dp(int n,int m){
if(m>n||!n||m<0) return 0;
if(f[n][m]) return f[n][m];
if(n==m||!m) retur... | 19.416667 | 57 | 0.492132 |
dfdbd34f1489377b3c0d503948724cef06abae30 | 389 | cpp | C++ | Competitive Programming/part_02/deque.cpp | l0rdluc1f3r/CppCompetitiveProgramming | 71376b5a6182dc446811072c73a2b13f33110d4c | [
"Apache-2.0"
] | 1 | 2022-03-24T06:38:53.000Z | 2022-03-24T06:38:53.000Z | Competitive Programming/part_02/deque.cpp | l0rdluc1f3r/CppCompetitiveProgramming | 71376b5a6182dc446811072c73a2b13f33110d4c | [
"Apache-2.0"
] | null | null | null | Competitive Programming/part_02/deque.cpp | l0rdluc1f3r/CppCompetitiveProgramming | 71376b5a6182dc446811072c73a2b13f33110d4c | [
"Apache-2.0"
] | null | null | null | #include <bits/stdc++.h>
int main(){
std::deque<int> d1;
std::deque<int> d2(5, 10);
std::deque<int> d3(d2);
std::deque<int> d4(d2.begin(), d2.end());
int arr[] = {1,2,3,4,5};
std::deque<int> d5(arr, arr+5);
for(auto &el : d5){
std::cout<<el<<" ";
}
if(d5.empty()){
std::cout<<"Oh No";
}
d1.push_back(10)... | 18.52381 | 42 | 0.573265 |
dfdd67d54ff9a7d7661d3955809d73d17cbbd4ba | 54,704 | cxx | C++ | ds/ds/src/ldap/client/bind.cxx | npocmaka/Windows-Server-2003 | 5c6fe3db626b63a384230a1aa6b92ac416b0765f | [
"Unlicense"
] | 17 | 2020-11-13T13:42:52.000Z | 2021-09-16T09:13:13.000Z | ds/ds/src/ldap/client/bind.cxx | sancho1952007/Windows-Server-2003 | 5c6fe3db626b63a384230a1aa6b92ac416b0765f | [
"Unlicense"
] | 2 | 2020-10-19T08:02:06.000Z | 2020-10-19T08:23:18.000Z | ds/ds/src/ldap/client/bind.cxx | sancho1952007/Windows-Server-2003 | 5c6fe3db626b63a384230a1aa6b92ac416b0765f | [
"Unlicense"
] | 14 | 2020-11-14T09:43:20.000Z | 2021-08-28T08:59:57.000Z | /*++
Copyright (c) 1996 Microsoft Corporation
Module Name:
bind.c send a bind to an LDAP server
Abstract:
This module implements the LDAP ldap_bind API.
Author:
Andy Herron (andyhe) 08-May-1996
Anoop Anantha (AnoopA) 24-Jun-1998
Revision History:
--*/
... | 31.511521 | 142 | 0.464993 |
dfe7a9aee06726f7894b1bed816b96427f5c00d0 | 686 | cxx | C++ | templates/initmodule.cxx | lukeolson/crappy | fdd9449f7976e2a4e678db06e1b8d1a8bfef4e84 | [
"BSD-3-Clause"
] | null | null | null | templates/initmodule.cxx | lukeolson/crappy | fdd9449f7976e2a4e678db06e1b8d1a8bfef4e84 | [
"BSD-3-Clause"
] | null | null | null | templates/initmodule.cxx | lukeolson/crappy | fdd9449f7976e2a4e678db06e1b8d1a8bfef4e84 | [
"BSD-3-Clause"
] | null | null | null | #include <Python.h>
#include "crappy.h"
extern "C" {
#include "crappy_impl.h"
static char crappy_doc[] = "Docstring for crappy.";
#if PY_VERSION_HEX >= 0x03000000
static struct PyModuleDef moduledef = {
PyModuleDef_HEAD_INIT,
"crappy",
NULL,
-1,
crappy_methods,
NULL,
NULL,
NULL,
... | 16.333333 | 61 | 0.639942 |
dfea84a2adab64773bce92477019e19b41ecd308 | 509 | cpp | C++ | source/jz28.cpp | loganautomata/leetcode | 5a626c91f271bae231328c92a3be23eba227f66e | [
"MIT"
] | null | null | null | source/jz28.cpp | loganautomata/leetcode | 5a626c91f271bae231328c92a3be23eba227f66e | [
"MIT"
] | null | null | null | source/jz28.cpp | loganautomata/leetcode | 5a626c91f271bae231328c92a3be23eba227f66e | [
"MIT"
] | null | null | null | #include "jz28.h"
using namespace std;
bool Jz28::IsMirror(TreeNode* left, TreeNode* right)
{
if(left == nullptr && right == nullptr) return true;
else if (left == nullptr || right == nullptr || left->val != right->val) return false; // 迭代终止条件, 遍历完至少一颗树, 或者发现两颗树不是镜像.
return IsMirror(left->right, right->l... | 26.789474 | 124 | 0.664047 |
dfeb53f30e17721692806e323e06477af45bafd9 | 19,834 | cpp | C++ | Source/Samples/79_NonoVG/NonoVG.cpp | elix22/Urho3D | 99902ae2a867be0d6dbe4c575f9c8c318805ec64 | [
"MIT"
] | 20 | 2019-04-18T07:37:34.000Z | 2022-02-02T21:43:47.000Z | Source/Samples/79_NonoVG/NonoVG.cpp | elix22/Urho3D | 99902ae2a867be0d6dbe4c575f9c8c318805ec64 | [
"MIT"
] | 11 | 2019-10-21T13:39:41.000Z | 2021-11-05T08:11:54.000Z | Source/Samples/79_NonoVG/NonoVG.cpp | elix22/Urho3D | 99902ae2a867be0d6dbe4c575f9c8c318805ec64 | [
"MIT"
] | 1 | 2021-12-03T18:11:36.000Z | 2021-12-03T18:11:36.000Z | //
// Copyright (c) 2008-2021 the Urho3D 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, m... | 38.289575 | 120 | 0.680851 |
dfeb8c9b4d6274e1a67b7fc3a1f69d5c8e66fb53 | 9,288 | cc | C++ | google/cloud/baremetalsolution/bare_metal_solution_connection.cc | GoogleCloudPlatform/google-cloud-cpp | c4fc35de9e15f95b1dbf585f1c96de5dba609e2b | [
"Apache-2.0"
] | 80 | 2017-11-24T00:19:45.000Z | 2019-01-25T10:24:33.000Z | google/cloud/baremetalsolution/bare_metal_solution_connection.cc | GoogleCloudPlatform/google-cloud-cpp | c4fc35de9e15f95b1dbf585f1c96de5dba609e2b | [
"Apache-2.0"
] | 1,579 | 2017-11-24T01:01:21.000Z | 2019-01-28T23:41:21.000Z | google/cloud/baremetalsolution/bare_metal_solution_connection.cc | GoogleCloudPlatform/google-cloud-cpp | c4fc35de9e15f95b1dbf585f1c96de5dba609e2b | [
"Apache-2.0"
] | 51 | 2017-11-24T00:56:11.000Z | 2019-01-18T20:35:02.000Z | // Copyright 2022 Google LLC
//
// 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
//
// https://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in... | 43 | 94 | 0.778208 |
dfeec959a6ac004088e326a95d987644c70b9f92 | 514 | cpp | C++ | 2014/node.cpp | Yww729604/XidianCodeTest | bf99657fc58718f1edd2e91291420ee5e2c58d21 | [
"MIT"
] | 1 | 2022-02-05T16:37:13.000Z | 2022-02-05T16:37:13.000Z | 2014/node.cpp | Yww729604/XidianCodeTest | bf99657fc58718f1edd2e91291420ee5e2c58d21 | [
"MIT"
] | null | null | null | 2014/node.cpp | Yww729604/XidianCodeTest | bf99657fc58718f1edd2e91291420ee5e2c58d21 | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
using namespace std;
typedef struct node
{
int data;
string s;
string t;
struct node *next;
}*linkList;
void init(linkList &l)
{
int d;
while(cin>>d)
{
linkList tempNode = (linkList)malloc(sizeof(struct node));
tempNode->data = d;
tempNode->next = l;
l = tempNode;
}
}
void p... | 12.536585 | 60 | 0.61284 |
dff59b9ba2b8df0fac9d4e7cb4fa9a32b92fe8b2 | 12,610 | cpp | C++ | cplusplus/level1_single_api/4_op_dev/1_custom_op/framework/tf_scope_fusion_pass/decode_bbox_v2_multi_pass.cpp | Dedederek/samples | 31d99de20af2f7046556e0f48c4b789b99e422f8 | [
"Apache-2.0"
] | 25 | 2020-11-20T09:01:35.000Z | 2022-03-29T10:35:38.000Z | cplusplus/level1_single_api/4_op_dev/1_custom_op/framework/tf_scope_fusion_pass/decode_bbox_v2_multi_pass.cpp | Dedederek/samples | 31d99de20af2f7046556e0f48c4b789b99e422f8 | [
"Apache-2.0"
] | 5 | 2021-02-28T20:49:37.000Z | 2022-03-04T21:50:27.000Z | cplusplus/level1_single_api/4_op_dev/1_custom_op/framework/tf_scope_fusion_pass/decode_bbox_v2_multi_pass.cpp | Dedederek/samples | 31d99de20af2f7046556e0f48c4b789b99e422f8 | [
"Apache-2.0"
] | 16 | 2020-12-06T07:26:13.000Z | 2022-03-01T07:51:55.000Z | /* Copyright (C) 2019. Huawei Technologies Co., Ltd. All rights reserved.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the Apache License Version 2.0.
* You may not use this file except in compliance with the License.
*
* This program is distributed in the hope ... | 46.021898 | 120 | 0.589215 |
dffd810adde01422c379df331b7e6794ae00f53a | 292 | hpp | C++ | fw/include/fw/BasicEffect.hpp | sienkiewiczkm/framework | 9940403404aa5c67186fe09b0910de3a6c8e9762 | [
"MIT"
] | null | null | null | fw/include/fw/BasicEffect.hpp | sienkiewiczkm/framework | 9940403404aa5c67186fe09b0910de3a6c8e9762 | [
"MIT"
] | 9 | 2016-12-09T13:02:18.000Z | 2019-09-13T09:29:18.000Z | fw/include/fw/BasicEffect.hpp | sienkiewiczkm/framework | 9940403404aa5c67186fe09b0910de3a6c8e9762 | [
"MIT"
] | null | null | null | #pragma once
#include "Effect.hpp"
namespace fw
{
class BasicEffect:
public EffectBase
{
public:
BasicEffect();
virtual ~BasicEffect();
void create();
virtual void destroy();
virtual void begin();
virtual void end();
protected:
void createShaders();
};
}
| 12.166667 | 27 | 0.643836 |
dffef375e236877eca4d7bcfdbbc268ffc6ea653 | 4,319 | cpp | C++ | nTA/Source/igui_BuildButton.cpp | loganjones/nTA-Total-Annihilation-Clone | d7d0e4d33f1d452d17cf2fed2b2bcb7f6d7d4d14 | [
"MIT"
] | 2 | 2020-05-09T20:50:12.000Z | 2021-06-20T08:34:58.000Z | nTA/Source/igui_BuildButton.cpp | loganjones/nTA-Total-Annihilation-Clone | d7d0e4d33f1d452d17cf2fed2b2bcb7f6d7d4d14 | [
"MIT"
] | null | null | null | nTA/Source/igui_BuildButton.cpp | loganjones/nTA-Total-Annihilation-Clone | d7d0e4d33f1d452d17cf2fed2b2bcb7f6d7d4d14 | [
"MIT"
] | 2 | 2018-01-08T00:12:04.000Z | 2020-06-14T10:56:50.000Z | // igui_BuildButton.cpp // \author Logan Jones
///////////////////////// \date 4/25/2002
/// \file
/// \brief ...
/////////////////////////////////////////////////////////////////////
#include "igui.h"
#include "igui_BuildButton.h"
#include "game.h"
#include... | 37.556522 | 114 | 0.447094 |
5f06d2639771912de5fc88bf84cdb7629ab6a5ff | 471 | hpp | C++ | Proftaak2.4/AudioComponent.hpp | rubenwo/Proftaak2.4 | c3231883cd2cd961fa1db5a27af65f36e8f3daa8 | [
"MIT"
] | null | null | null | Proftaak2.4/AudioComponent.hpp | rubenwo/Proftaak2.4 | c3231883cd2cd961fa1db5a27af65f36e8f3daa8 | [
"MIT"
] | null | null | null | Proftaak2.4/AudioComponent.hpp | rubenwo/Proftaak2.4 | c3231883cd2cd961fa1db5a27af65f36e8f3daa8 | [
"MIT"
] | null | null | null | #ifndef AUDIO_COMPONENT_HPP
#define AUDIO_COMPONENT_HPP
#include "Component.h"
#include <string>
#include "SoundPlayer.hpp"
class AudioComponent : public Component
{
public:
AudioComponent(const SoundID& soundID);
~AudioComponent();
virtual void update(float elapsedTime) override;
void playAudio(bo... | 20.478261 | 50 | 0.740977 |
5f0b0bee274cc3e652992befca93a04e990ea2c6 | 18,825 | cpp | C++ | samples/Hello/third-party/fuzzylite/fuzzylite/src/rule/Antecedent.cpp | okocsis/ios-cmake | ca61d83725bc5b1a755928f4592badbd9a8b37f4 | [
"BSD-3-Clause"
] | null | null | null | samples/Hello/third-party/fuzzylite/fuzzylite/src/rule/Antecedent.cpp | okocsis/ios-cmake | ca61d83725bc5b1a755928f4592badbd9a8b37f4 | [
"BSD-3-Clause"
] | null | null | null | samples/Hello/third-party/fuzzylite/fuzzylite/src/rule/Antecedent.cpp | okocsis/ios-cmake | ca61d83725bc5b1a755928f4592badbd9a8b37f4 | [
"BSD-3-Clause"
] | null | null | null | /*
fuzzylite (R), a fuzzy logic control library in C++.
Copyright (C) 2010-2017 FuzzyLite Limited. All rights reserved.
Author: Juan Rada-Vilela, Ph.D. <jcrada@fuzzylite.com>
This file is part of fuzzylite.
fuzzylite is free software: you can redistribute it and/or modify it under
the terms of the FuzzyLite Lic... | 42.020089 | 130 | 0.511766 |
5f0b11c4cd68c112a699f2ce03244a5e7c0a8e3a | 2,075 | cpp | C++ | cmd/qc.cpp | cbutakoff/DSI-Studio | d77dffa4526d66da421fa84f7187e85bca6bce7c | [
"BSD-3-Clause"
] | null | null | null | cmd/qc.cpp | cbutakoff/DSI-Studio | d77dffa4526d66da421fa84f7187e85bca6bce7c | [
"BSD-3-Clause"
] | null | null | null | cmd/qc.cpp | cbutakoff/DSI-Studio | d77dffa4526d66da421fa84f7187e85bca6bce7c | [
"BSD-3-Clause"
] | null | null | null | #include <QString>
#include <QStringList>
#include <QFileInfo>
#include "program_option.hpp"
#include "libs/dsi/image_model.hpp"
QStringList search_files(QString dir,QString filter);
std::string quality_check_src_files(QString dir)
{
std::ostringstream out;
QStringList filenames = search_files(dir,"*.src.gz"... | 30.514706 | 134 | 0.595663 |
5f0e3f2dd7ee0392eb3e547e9dc2ff6d8748df75 | 1,193 | hpp | C++ | tooling/data/prefix_splitter.hpp | victorlaurentiu/tsmp | 5391ffb488d7db9555405965ede5c63800fbb71f | [
"MIT"
] | 23 | 2021-10-30T09:32:58.000Z | 2022-01-23T19:39:26.000Z | tooling/data/prefix_splitter.hpp | victorlaurentiu/tsmp | 5391ffb488d7db9555405965ede5c63800fbb71f | [
"MIT"
] | null | null | null | tooling/data/prefix_splitter.hpp | victorlaurentiu/tsmp | 5391ffb488d7db9555405965ede5c63800fbb71f | [
"MIT"
] | 4 | 2021-10-31T13:05:29.000Z | 2021-11-27T03:18:48.000Z | #pragma once
#include "types.hpp"
#include <fmt/core.h>
#include <fmt/ranges.h>
#include <algorithm>
#include <iterator>
namespace data {
class prefix_splitter_t {
public:
prefix_splitter_t(const std::vector<record_decl_t>& records = {}, std::vector<std::string> trivial_types = {});
void add_record(record_de... | 31.394737 | 115 | 0.736798 |
5f10a140d8b55a3b61668b65754fdce6601f3d16 | 2,058 | hpp | C++ | include/shadertoy/pre.hpp | vtavernier/libshadertoy | a0b2a133199383cc7e9bcb3c0300f39eb95177c0 | [
"MIT"
] | 2 | 2020-02-23T09:33:07.000Z | 2021-11-15T18:23:13.000Z | include/shadertoy/pre.hpp | vtavernier/libshadertoy | a0b2a133199383cc7e9bcb3c0300f39eb95177c0 | [
"MIT"
] | 2 | 2019-08-09T15:48:07.000Z | 2020-11-16T13:51:56.000Z | include/shadertoy/pre.hpp | vtavernier/libshadertoy | a0b2a133199383cc7e9bcb3c0300f39eb95177c0 | [
"MIT"
] | 3 | 2019-12-12T09:42:34.000Z | 2020-12-14T03:56:30.000Z | #ifndef _SHADERTOY_PRE_HPP_
#define _SHADERTOY_PRE_HPP_
#include "shadertoy/shadertoy_export.h"
/// Base namespace for libshadertoy
namespace shadertoy
{
/// Definition of rendering buffers
namespace buffers
{
struct buffer_output;
class basic_buffer;
class program_buffer;
class toy_buffer;
}
/// Shader... | 17.294118 | 44 | 0.76725 |
5f126bb8b7c978139132b0742118e7df3dc353d8 | 71 | cc | C++ | logs/doc/02_window.cc | chanchann/Burger_client | 548753124b563123a479f3e3a5a42f792001d673 | [
"MIT"
] | null | null | null | logs/doc/02_window.cc | chanchann/Burger_client | 548753124b563123a479f3e3a5a42f792001d673 | [
"MIT"
] | null | null | null | logs/doc/02_window.cc | chanchann/Burger_client | 548753124b563123a479f3e3a5a42f792001d673 | [
"MIT"
] | null | null | null | /**
* https://blog.csdn.net/Zhanganliu/article/details/79927310
*
*/ | 17.75 | 60 | 0.676056 |
5f13923f795cc5a51afee898d5e4b906cd968f74 | 3,048 | cpp | C++ | src/target_new_source.cpp | folkertvanheusden/constatus | 7b0c42a5017bf96afcb0f34c0d4987bdc40ef2e6 | [
"Apache-2.0"
] | 5 | 2021-07-15T11:39:25.000Z | 2022-02-25T06:14:58.000Z | src/target_new_source.cpp | folkertvanheusden/constatus | 7b0c42a5017bf96afcb0f34c0d4987bdc40ef2e6 | [
"Apache-2.0"
] | 2 | 2021-09-27T11:13:42.000Z | 2021-10-10T01:02:39.000Z | src/target_new_source.cpp | folkertvanheusden/constatus | 7b0c42a5017bf96afcb0f34c0d4987bdc40ef2e6 | [
"Apache-2.0"
] | 2 | 2021-06-11T09:19:47.000Z | 2022-02-18T22:22:01.000Z | // (C) 2017-2021 by folkert van heusden, released under Apache License v2.0
#include "config.h"
#include <unistd.h>
#include "target_new_source.h"
#include "error.h"
#include "exec.h"
#include "log.h"
#include "picio.h"
#include "utils.h"
#include "controls.h"
#include "source.h"
#include "view.h"
#include "filter.h"
... | 24.983607 | 463 | 0.60794 |
5f1595b06f2a1d2c8efbc669cdcae259b36202f9 | 18,988 | cpp | C++ | demo/OBB/DOTA2_0/src/yolox_obb.cpp | DDGRCF/YOLOX_OBB | 27b80953306492b8bc83b86b1353d8cee01ef9b6 | [
"Apache-2.0"
] | 39 | 2021-11-09T12:12:06.000Z | 2022-03-28T13:45:20.000Z | demo/OBB/DOTA2_0/src/yolox_obb.cpp | DDGRCF/YOLOX_OBB | 27b80953306492b8bc83b86b1353d8cee01ef9b6 | [
"Apache-2.0"
] | 12 | 2021-11-09T11:33:29.000Z | 2022-03-25T17:00:14.000Z | demo/OBB/DOTA2_0/src/yolox_obb.cpp | DDGRCF/YOLOX_OBB | 27b80953306492b8bc83b86b1353d8cee01ef9b6 | [
"Apache-2.0"
] | 1 | 2022-03-24T06:53:39.000Z | 2022-03-24T06:53:39.000Z | #include "yolox_obb.h"
#include <fstream>
#include <iostream>
#include <sstream>
#include <numeric>
#include <chrono>
#include <vector>
#include <dirent.h>
#include <exception>
#include <opencv2/opencv.hpp>
// #include <xtensor/xarray.hpp>
const char * input_blob_name = "input_0";
const char * output_blob_name = "outp... | 36.445298 | 131 | 0.557089 |
5f1a72bb9a4c910ddbe4a97a8b109b5681b1f070 | 4,044 | cpp | C++ | projector_fun/data/metaballs.cpp | mflagel/asdf_multiplat | 9ef5a87b9ea9e38a7c6d409a60a1b8c5dce4b015 | [
"MIT"
] | null | null | null | projector_fun/data/metaballs.cpp | mflagel/asdf_multiplat | 9ef5a87b9ea9e38a7c6d409a60a1b8c5dce4b015 | [
"MIT"
] | null | null | null | projector_fun/data/metaballs.cpp | mflagel/asdf_multiplat | 9ef5a87b9ea9e38a7c6d409a60a1b8c5dce4b015 | [
"MIT"
] | null | null | null | #include "stdafx.h"
#include "metaballs.h"
using namespace std;
using namespace glm;
namespace asdf
{
namespace projector_fun
{
metaballs_t::metaballs_t()
{
balls.reserve(5);
balls.push_back(metaball_t{vec3{0.0f, 0.0f, 0.0f}, 50.0f});
balls.push_back(metaball_t{vec3{-100.0f, 100.0f, 0... | 32.095238 | 130 | 0.560584 |
5f1c68e8389253e45e3b6f1c21c2eb39ea14d50d | 6,349 | cpp | C++ | Products/Common/sxml_print.cpp | TrevorDArcyEvans/DivingMagpieSoftware | 7ffcfef653b110e514d5db735d11be0aae9953ec | [
"MIT"
] | 1 | 2021-05-27T10:27:25.000Z | 2021-05-27T10:27:25.000Z | Products/Common/sxml_print.cpp | TrevorDArcyEvans/Diving-Magpie-Software | 7ffcfef653b110e514d5db735d11be0aae9953ec | [
"MIT"
] | null | null | null | Products/Common/sxml_print.cpp | TrevorDArcyEvans/Diving-Magpie-Software | 7ffcfef653b110e514d5db735d11be0aae9953ec | [
"MIT"
] | null | null | null | #include "stdafx.h"
#include "XML_XSL.h"
#include "SRegistryAccess.hpp"
#include "SHResult.hpp"
#include "LogEvent.h"
#include "SLogError.h"
#include "SXML_Print.h"
#include "RemoveAllCharactersInFile.h"
#include "SDelayedDeleteFile.h"
//------------------------------------------------------------------------
SXML_... | 33.067708 | 91 | 0.559143 |
5f21d84c5ad5cc082a87ea46dcf513cbcc1485f8 | 165 | hh | C++ | src/debug.hh | nojhan/kakoune | c8156429c4685189e0a6b7bd0f273dc64432db2c | [
"Unlicense"
] | null | null | null | src/debug.hh | nojhan/kakoune | c8156429c4685189e0a6b7bd0f273dc64432db2c | [
"Unlicense"
] | null | null | null | src/debug.hh | nojhan/kakoune | c8156429c4685189e0a6b7bd0f273dc64432db2c | [
"Unlicense"
] | null | null | null | #ifndef debug_hh_INCLUDED
#define debug_hh_INCLUDED
#include "string.hh"
namespace Kakoune
{
void write_debug(const String& str);
}
#endif // debug_hh_INCLUDED
| 11.785714 | 36 | 0.775758 |
5f23c46d08dbd90a6786bc62dbb46ddd5bf8d734 | 367 | cpp | C++ | Exercicios/42.cpp | thiago1590/Exercicios_LinguagemC_1periodo | a7affcbb121493ef8abb556a6bdb7c28926144df | [
"MIT"
] | null | null | null | Exercicios/42.cpp | thiago1590/Exercicios_LinguagemC_1periodo | a7affcbb121493ef8abb556a6bdb7c28926144df | [
"MIT"
] | null | null | null | Exercicios/42.cpp | thiago1590/Exercicios_LinguagemC_1periodo | a7affcbb121493ef8abb556a6bdb7c28926144df | [
"MIT"
] | null | null | null | #include <stdio.h>
int calculo(int anos, int meses, int dias, int result)
{
result = (365 * anos) + (30 * meses) + dias;}
int main()
{
int anos, meses, dias, result,a;
printf("digite sua idade em anos meses e dias");
scanf("%d %d %d", &anos, &meses, &dias);
a = calculo(anos, meses, dias, result);
printf(... | 19.315789 | 55 | 0.607629 |
5f245914a64789f52ed6e45ea844f1f14ffb2212 | 787 | cpp | C++ | OnitamaEngine/Source/MoveInformation/MoveInformation.cpp | CodeGorger/OnitamaEngine | 641930951ce272ee4922c5dfe57cc3b25b1ed37a | [
"MIT"
] | 1 | 2021-09-14T16:25:02.000Z | 2021-09-14T16:25:02.000Z | OnitamaEngine/Source/MoveInformation/MoveInformation.cpp | CodeGorger/OnitamaEngine | 641930951ce272ee4922c5dfe57cc3b25b1ed37a | [
"MIT"
] | null | null | null | OnitamaEngine/Source/MoveInformation/MoveInformation.cpp | CodeGorger/OnitamaEngine | 641930951ce272ee4922c5dfe57cc3b25b1ed37a | [
"MIT"
] | null | null | null | #include "MoveInformation.h"
bool MoveInformation::ParseMove(std::string inTcpMove)
{
if (inTcpMove.size() > 20)
{
//"Invalid inTcpMove string is exceeded the maximal allowed length"
return false;
}
size_t indexOfFirstSemicolon = inTcpMove.find_first_of(";");
_cardName=inTcpMove.substr(0, indexOfFirstSemicol... | 22.485714 | 69 | 0.768742 |
5f26fe6923b37dc6264b51411b8612ec8e293614 | 930 | cpp | C++ | src/utils/dll.cpp | TiWinDeTea/NinjaClown | fdd48e62466f11036fa0360fad2bcb182d6d3352 | [
"MIT"
] | 2 | 2020-04-10T14:39:00.000Z | 2021-02-11T15:52:16.000Z | src/utils/dll.cpp | TiWinDeTea/NinjaClown | fdd48e62466f11036fa0360fad2bcb182d6d3352 | [
"MIT"
] | 2 | 2019-12-17T08:50:20.000Z | 2020-02-03T09:37:56.000Z | src/utils/dll.cpp | TiWinDeTea/NinjaClown | fdd48e62466f11036fa0360fad2bcb182d6d3352 | [
"MIT"
] | 1 | 2020-08-19T03:06:52.000Z | 2020-08-19T03:06:52.000Z | #include "utils/dll.hpp"
#ifdef OS_WINDOWS
# include "utils/system.hpp"
#endif
namespace utils {
dll::~dll() {
if (m_handle == nullptr) {
return;
}
#if defined OS_WINDOWS
FreeLibrary(m_handle);
#elif defined OS_LINUX
dlclose(m_handle);
#endif
}
dll::operator bool() const {
return m_handle != nullptr;
}
std... | 16.034483 | 45 | 0.692473 |
5f284b2ca6233ddc59b0fa0a1e7b7007d1eaf132 | 1,276 | cpp | C++ | LeetCode/2058_Find_the_Minimum_and_Maximum_Number_of_Nodes_Between_Critical_Points/main.cpp | sungmen/Acmicpc_Solve | 0298a6aec84993a4d8767bd2c00490b7201e06a4 | [
"MIT"
] | null | null | null | LeetCode/2058_Find_the_Minimum_and_Maximum_Number_of_Nodes_Between_Critical_Points/main.cpp | sungmen/Acmicpc_Solve | 0298a6aec84993a4d8767bd2c00490b7201e06a4 | [
"MIT"
] | null | null | null | LeetCode/2058_Find_the_Minimum_and_Maximum_Number_of_Nodes_Between_Critical_Points/main.cpp | sungmen/Acmicpc_Solve | 0298a6aec84993a4d8767bd2c00490b7201e06a4 | [
"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:
vector<int> nodesBetw... | 32.717949 | 121 | 0.442006 |
5f285e6e670fb5b70171c74ea1cacaa09eaf22be | 918 | hpp | C++ | include/locomotion_viewer/LocomotionViewer.hpp | ori-drs/locomotion-viewer | 6569d09786743283c1be8c47ca75171c1c4aeea0 | [
"Apache-2.0"
] | 6 | 2020-04-06T10:09:14.000Z | 2022-01-07T02:05:06.000Z | include/locomotion_viewer/LocomotionViewer.hpp | ori-drs/locomotion-viewer | 6569d09786743283c1be8c47ca75171c1c4aeea0 | [
"Apache-2.0"
] | null | null | null | include/locomotion_viewer/LocomotionViewer.hpp | ori-drs/locomotion-viewer | 6569d09786743283c1be8c47ca75171c1c4aeea0 | [
"Apache-2.0"
] | 2 | 2018-12-24T12:17:26.000Z | 2021-03-01T23:21:10.000Z | /*
* OnlineID.h
*
* Created on: Feb 11, 2018
* Author: Romeo Orsolino
*/
#ifndef RVIZPOLYGONSTOOLS_H_
#define RVIZPOLYGONSTOOLS_H_
#include <locomotion_viewer/ThreeDim.h>
#include <Eigen/Dense>
#include <iostream>
#include <string>
#include <chrono>
namespace locomotion_viewer{
using legs_colors ... | 20.863636 | 137 | 0.72658 |
5f2b2e114fb30ce3badacb521f4de1f1ff972894 | 919 | cpp | C++ | implementations/cairo/gb_cairo_main.cpp | enthought/GraphicsBench | ec0327c480fa91c71ec52239700b808db9bb272b | [
"BSD-3-Clause"
] | null | null | null | implementations/cairo/gb_cairo_main.cpp | enthought/GraphicsBench | ec0327c480fa91c71ec52239700b808db9bb272b | [
"BSD-3-Clause"
] | null | null | null | implementations/cairo/gb_cairo_main.cpp | enthought/GraphicsBench | ec0327c480fa91c71ec52239700b808db9bb272b | [
"BSD-3-Clause"
] | null | null | null | #include "gb_cairo_lines.h"
#include "gb_cairo_box_alpha.h"
#include "gb_cairo_box_gradient.h"
#include "gb_cairo_memmove.h"
int main(int argc, char **argv)
{
GBCairoLineBenchmark gb_cairo_line;
gb_cairo_line.init();
gb_cairo_line.app_state.load_data("../../data/gb_lines.data");
gb_cairo_line.render();... | 30.633333 | 78 | 0.738847 |
5f2b5120ad88c492e66730d7b2e7f4040ac33c62 | 4,850 | cpp | C++ | source/video/sampler.cpp | synaodev/LeviathanRacket | c70dfddf0097c7f4e902ec5de46a6eabed5a4691 | [
"MIT"
] | 5 | 2020-03-25T14:46:23.000Z | 2022-02-23T01:46:26.000Z | source/video/sampler.cpp | synaodev/LeviathanRacket | c70dfddf0097c7f4e902ec5de46a6eabed5a4691 | [
"MIT"
] | 1 | 2022-01-14T00:01:48.000Z | 2022-01-14T00:01:48.000Z | source/video/sampler.cpp | synaodev/LeviathanRacket | c70dfddf0097c7f4e902ec5de46a6eabed5a4691 | [
"MIT"
] | 2 | 2020-03-25T14:46:24.000Z | 2020-08-21T04:33:23.000Z | #include "./sampler.hpp"
#include "./gl-check.hpp"
#include "../utility/logger.hpp"
namespace {
constexpr sint_t kWorkingUnit = GL_TEXTURE4;
constexpr sint_t kMipMapTexs = 4;
constexpr sint_t kTotalTexs = 80;
constexpr sint_t kDimensions = 256;
constexpr sint_t kTotalAtlas = 5;
}
sint_t sampler_t::get_work... | 30.3125 | 100 | 0.738144 |
5f2c025588e266c2452f1bc787d861692e79a247 | 2,668 | hpp | C++ | lib/malloy/core/detail/controller_run_result.hpp | Tectu/malloy | 066adfe3ac312ac4c0b4a745603faed650400f5a | [
"MIT"
] | 22 | 2021-04-17T17:32:14.000Z | 2022-03-29T09:42:03.000Z | lib/malloy/core/detail/controller_run_result.hpp | Tectu/malloy | 066adfe3ac312ac4c0b4a745603faed650400f5a | [
"MIT"
] | 98 | 2021-04-03T18:53:19.000Z | 2022-02-06T10:49:30.000Z | lib/malloy/core/detail/controller_run_result.hpp | Tectu/malloy | 066adfe3ac312ac4c0b4a745603faed650400f5a | [
"MIT"
] | 3 | 2021-05-12T15:17:11.000Z | 2021-12-28T03:15:46.000Z | #pragma once
#include <boost/asio/executor_work_guard.hpp>
#include <boost/asio/io_context.hpp>
#include <boost/asio/use_future.hpp>
#include <spdlog/logger.h>
#include <memory>
#include <thread>
#include <stdexcept>
namespace malloy::detail
{
/**
* Controller configuration.
*/
struct controller_co... | 28.084211 | 115 | 0.53973 |
5f2dc3edcc7d8f849aefa87bc990ccc20f81fcb7 | 1,259 | cpp | C++ | Tree/Binary_Tree/main.cpp | AshishS-1123/Data-Structures | 58c36b7f1e0bc72064aac5ff53f96c7df34e52b5 | [
"MIT"
] | null | null | null | Tree/Binary_Tree/main.cpp | AshishS-1123/Data-Structures | 58c36b7f1e0bc72064aac5ff53f96c7df34e52b5 | [
"MIT"
] | null | null | null | Tree/Binary_Tree/main.cpp | AshishS-1123/Data-Structures | 58c36b7f1e0bc72064aac5ff53f96c7df34e52b5 | [
"MIT"
] | null | null | null | #include <iostream>
#include "binary_tree.cpp"
#include "traverse.cpp"
using namespace std;
int main()
{
// create a tree object
binaryTree tree = binaryTree();
// insert 10, 20, 30, 40, 50, 60
cout << "\nAfter adding 10...";
tree.insert_element(10);
tree.print_tree();
cout << "\nAfter... | 20.639344 | 52 | 0.612391 |
5f2ff7f49f8e5b1f37b9117542c9bfe0af6fbc11 | 2,113 | cpp | C++ | src/apps/S3DAnalyzer/widgets/widthhintlabel.cpp | hugbed/OpenS3D | 4ffad16f9b0973404b59eb1424cc45f68754fe12 | [
"BSD-3-Clause"
] | 8 | 2017-04-16T16:38:15.000Z | 2020-04-20T03:23:15.000Z | src/apps/S3DAnalyzer/widgets/widthhintlabel.cpp | hugbed/OpenS3D | 4ffad16f9b0973404b59eb1424cc45f68754fe12 | [
"BSD-3-Clause"
] | 40 | 2017-04-12T17:24:44.000Z | 2017-12-21T18:41:23.000Z | src/apps/S3DAnalyzer/widgets/widthhintlabel.cpp | hugbed/OpenS3D | 4ffad16f9b0973404b59eb1424cc45f68754fe12 | [
"BSD-3-Clause"
] | 6 | 2017-07-13T21:51:09.000Z | 2021-05-18T16:22:03.000Z | #include "widthhintlabel.h"
#include <gsl/gsl_util>
WidthHintLabel::WidthHintLabel(QWidget* parent) : QLabel(parent) {
initPixmaps();
setAlignment(Qt::AlignCenter);
setSizePolicy(QSizePolicy(QSizePolicy::Preferred, QSizePolicy::Fixed));
auto&& pixmap = m_pixmaps[static_cast<int>(State::Neutral)];
setMinim... | 33.539683 | 73 | 0.708471 |
5f311ccb8f94cd59ff9a022f220547b79ca01ba1 | 1,134 | cpp | C++ | OpenGL_Planetarium/Cubemap.cpp | vmkarhula/Planetarium | f99acf1c98f2789a3eae70eba69d83ab4cba2a43 | [
"MIT"
] | null | null | null | OpenGL_Planetarium/Cubemap.cpp | vmkarhula/Planetarium | f99acf1c98f2789a3eae70eba69d83ab4cba2a43 | [
"MIT"
] | null | null | null | OpenGL_Planetarium/Cubemap.cpp | vmkarhula/Planetarium | f99acf1c98f2789a3eae70eba69d83ab4cba2a43 | [
"MIT"
] | null | null | null | #include "Cubemap.h"
#include <iostream>
#include "stb/stb_image.h"
Cubemap::Cubemap(std::vector<std::string> paths)
{
glGenTextures(1, &m_GLID);
glBindTexture(GL_TEXTURE_CUBE_MAP, m_GLID);
int width, height, nrChannels;
for (unsigned int i = 0; i < paths.size(); i++) {
unsigned char* data = stbi_load(paths... | 23.142857 | 113 | 0.741623 |
5f3d6887aeba89c27f8cd0eaa2fe4b7d778f677d | 1,206 | cpp | C++ | bistro/cron/CrontabItem.cpp | jiazerojia/bistro | 95c8d9cf9786ff87d845d7732622a46d90de5f58 | [
"BSD-3-Clause"
] | 1 | 2021-05-19T23:02:04.000Z | 2021-05-19T23:02:04.000Z | bistro/cron/CrontabItem.cpp | jiazerojia/bistro | 95c8d9cf9786ff87d845d7732622a46d90de5f58 | [
"BSD-3-Clause"
] | null | null | null | bistro/cron/CrontabItem.cpp | jiazerojia/bistro | 95c8d9cf9786ff87d845d7732622a46d90de5f58 | [
"BSD-3-Clause"
] | null | null | null | /*
* Copyright (c) 2015-present, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*
*/
#inc... | 27.409091 | 79 | 0.733002 |
5f3f4dbdbd0d86200cf91e34683a668528a77d4a | 2,744 | cpp | C++ | models/Point.cpp | 1Lorde/crypto | 6138472c1fba850158502312001eaf6584aa255c | [
"MIT"
] | null | null | null | models/Point.cpp | 1Lorde/crypto | 6138472c1fba850158502312001eaf6584aa255c | [
"MIT"
] | null | null | null | models/Point.cpp | 1Lorde/crypto | 6138472c1fba850158502312001eaf6584aa255c | [
"MIT"
] | null | null | null | //
// created by Vlad Savchuk on 11/12/2020.
//
#include <cmath>
#include <ModularArithmetic.h>
#include <NoSpecifiedEllipticCurveException.h>
#include "Point.h"
Point::Point(long long x, long long y) {
this->name = "P";
this->x = x;
this->y = y;
this->ellipticCurve = nullptr;
}
Point::Point(std::str... | 26.901961 | 116 | 0.529883 |
5f3f6e57bd25a9f84975ffcae87ddcc1b522466e | 757 | hpp | C++ | Explit/Explit/sdk/interfaces/valve/i_base_client_dll.hpp | patrykkolodziej/Explit | 155a35e4b8951764e6bedb8847d3196561a4255c | [
"MIT"
] | 18 | 2019-05-09T10:24:53.000Z | 2021-05-17T04:39:47.000Z | Explit/Explit/sdk/interfaces/valve/i_base_client_dll.hpp | danielkrupinski/Expl | 74124b67361cd29dd34389d692e43df86f83d072 | [
"MIT"
] | 6 | 2019-05-09T16:26:01.000Z | 2019-05-14T11:30:18.000Z | Explit/Explit/sdk/interfaces/valve/i_base_client_dll.hpp | patrykkolodziej/Explit | 155a35e4b8951764e6bedb8847d3196561a4255c | [
"MIT"
] | 8 | 2019-05-08T17:28:24.000Z | 2021-03-25T09:52:44.000Z | #pragma once
#include "i_global_vars.hpp"
#include "../../misc/valve/client_class.hpp"
#include "../../misc/valve/i_app_system.hpp"
class i_base_client_dll
{
public:
virtual int connect(createinterfacefn app_system_factory, i_global_vars_base *p_globals) = 0;
virtual int disconnect(void) = ... | 42.055556 | 107 | 0.667107 |
5f3f78d4cc8e7c4b773fff444541a7cc366b55de | 441 | cpp | C++ | modules/logic/src/Logic/Cv/gmLogicCvBase.cpp | GraphMIC/GraphMIC | 8fc2aeb0143ee1292c6757f010fc9e8c68823e2b | [
"BSD-3-Clause"
] | 43 | 2016-04-11T11:34:05.000Z | 2022-03-31T03:37:57.000Z | modules/logic/src/Logic/Cv/gmLogicCvBase.cpp | kevinlq/GraphMIC | 8fc2aeb0143ee1292c6757f010fc9e8c68823e2b | [
"BSD-3-Clause"
] | 1 | 2016-05-17T12:58:16.000Z | 2016-05-17T12:58:16.000Z | modules/logic/src/Logic/Cv/gmLogicCvBase.cpp | kevinlq/GraphMIC | 8fc2aeb0143ee1292c6757f010fc9e8c68823e2b | [
"BSD-3-Clause"
] | 14 | 2016-05-13T20:23:16.000Z | 2021-12-20T10:33:19.000Z | #include "gmLogicCvBase.hpp"
namespace gm
{
namespace Logic
{
namespace Cv
{
Base::Base(const QString& name) : Logic::Base("cv", name)
{
log_trace(Log::New);
this->setRunnable(true);
this->setUseTimer(true);
}
... | 19.173913 | 69 | 0.394558 |
5f414de234732722d05c50fc338e610a8d84e190 | 2,363 | hpp | C++ | y2018/utils/udpClientServer.hpp | valkyrierobotics/vision2018 | aa82e936c5481b7cc43a46ff5f6e68702c2166c2 | [
"BSD-2-Clause"
] | 2 | 2016-08-06T06:21:02.000Z | 2017-01-10T05:45:13.000Z | y2018/utils/udpClientServer.hpp | valkyrierobotics/vision2018 | aa82e936c5481b7cc43a46ff5f6e68702c2166c2 | [
"BSD-2-Clause"
] | 1 | 2017-04-15T20:54:59.000Z | 2017-04-15T20:54:59.000Z | y2018/utils/udpClientServer.hpp | valkyrierobotics/vision2018 | aa82e936c5481b7cc43a46ff5f6e68702c2166c2 | [
"BSD-2-Clause"
] | 3 | 2016-07-30T06:19:55.000Z | 2017-02-07T01:55:05.000Z | // UDP Client Server -- send/receive UDP packets
// Copyright (C) 2013 Made to Order Software Corp.
//
// 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; either version 2 of the License, o... | 29.5375 | 81 | 0.60474 |
5f46daa42fe39ef1fe8b159c68bb772198b6bd95 | 195 | hpp | C++ | src/components/resource/VkMeshRes.hpp | wicast/CreviceEngine | 2d49b51aad7c2c6984bccc2c0628e75dfc0462a7 | [
"MIT"
] | 10 | 2021-01-19T04:36:11.000Z | 2021-09-17T08:37:21.000Z | src/components/resource/VkMeshRes.hpp | wicast/CreviceEngine | 2d49b51aad7c2c6984bccc2c0628e75dfc0462a7 | [
"MIT"
] | null | null | null | src/components/resource/VkMeshRes.hpp | wicast/CreviceEngine | 2d49b51aad7c2c6984bccc2c0628e75dfc0462a7 | [
"MIT"
] | 1 | 2022-02-08T04:21:28.000Z | 2022-02-08T04:21:28.000Z | #pragma once
#include "common/Resource.h"
#include "graphic/vk_render/resource/VkMesh.hpp"
#include "stl/CreviceSharedPtr.h"
struct VkMeshRes {
RID rid;
crevice::SharedPtr<VkMesh> mesh;
};
| 17.727273 | 48 | 0.748718 |
5f4b0db7e754be422bc7951f5cf621ed8fab7015 | 3,458 | cpp | C++ | widgets/demos/ex-translucent-clock/clock.cpp | sfaure-witekio/qt-training-material | d166e4ed9cc5f5faab85b0337c5844c4cdcb206e | [
"BSD-3-Clause"
] | 16 | 2017-01-11T17:28:03.000Z | 2021-09-27T16:12:01.000Z | widgets/demos/ex-translucent-clock/clock.cpp | sfaure-witekio/qt-training-material | d166e4ed9cc5f5faab85b0337c5844c4cdcb206e | [
"BSD-3-Clause"
] | null | null | null | widgets/demos/ex-translucent-clock/clock.cpp | sfaure-witekio/qt-training-material | d166e4ed9cc5f5faab85b0337c5844c4cdcb206e | [
"BSD-3-Clause"
] | 4 | 2017-03-17T02:44:32.000Z | 2021-01-22T07:57:34.000Z | /*************************************************************************
*
* Copyright (c) 2016 The Qt Company
* All rights reserved.
*
* See the LICENSE.txt file shipped along with this file for the license.
*
*************************************************************************/
#include <QtGui>
#includ... | 27.664 | 91 | 0.588201 |
5f4d34bace6ee9cd7d0e379eafef77ab8e33cbb0 | 7,687 | hh | C++ | saphIR/include/ir/types.hh | balayette/saphIR-project | 18da494ac21e5433fdf1c646be02c9bf25177d7d | [
"MIT"
] | 14 | 2020-07-31T09:35:23.000Z | 2021-11-15T11:18:35.000Z | saphIR/include/ir/types.hh | balayette/saphIR-project | 18da494ac21e5433fdf1c646be02c9bf25177d7d | [
"MIT"
] | null | null | null | saphIR/include/ir/types.hh | balayette/saphIR-project | 18da494ac21e5433fdf1c646be02c9bf25177d7d | [
"MIT"
] | null | null | null | #pragma once
#include <string>
#include <vector>
#include "utils/assert.hh"
#include "utils/scoped.hh"
#include "ir/ops.hh"
#include "utils/symbol.hh"
#include "utils/ref.hh"
#define DEFAULT_SIZE (42)
namespace mach
{
struct target;
}
namespace types
{
enum class type { INT, STRING, VOID, INVALID };
enum class sign... | 24.877023 | 80 | 0.712372 |
5f4e977688d2c5ad1e3983e8f2baa255ffa0e0e3 | 1,208 | cpp | C++ | algorithm/OPG/test/OPGTest.cpp | Zx55/compiler-principle | 31c4dda19fdd7e48bbd616e29cf6f8ea28ea1b5b | [
"MIT"
] | null | null | null | algorithm/OPG/test/OPGTest.cpp | Zx55/compiler-principle | 31c4dda19fdd7e48bbd616e29cf6f8ea28ea1b5b | [
"MIT"
] | null | null | null | algorithm/OPG/test/OPGTest.cpp | Zx55/compiler-principle | 31c4dda19fdd7e48bbd616e29cf6f8ea28ea1b5b | [
"MIT"
] | null | null | null | /*
* LexParser.h
* Test of OPG Parser.
* Copyright (c) zx5. All rights reserved.
*/
#define CATCH_CONFIG_MAIN
#include <iostream>
#include <fstream>
#include <sstream>
#include <string>
#include "../OPG.h"
#include "../../../include/catch.hpp"
using namespace std;
using namespace Compiler;
const string TEST_FIL... | 19.174603 | 73 | 0.575331 |
5f50400050ef6c699fba96e7dd2fb852bc2ea6b4 | 186 | cpp | C++ | Dataset/Leetcode/train/58/223.cpp | kkcookies99/UAST | fff81885aa07901786141a71e5600a08d7cb4868 | [
"MIT"
] | null | null | null | Dataset/Leetcode/train/58/223.cpp | kkcookies99/UAST | fff81885aa07901786141a71e5600a08d7cb4868 | [
"MIT"
] | null | null | null | Dataset/Leetcode/train/58/223.cpp | kkcookies99/UAST | fff81885aa07901786141a71e5600a08d7cb4868 | [
"MIT"
] | null | null | null | class Solution {
public:
int XXX(string s) {
stringstream it(s);
string tmp;
while (it >> tmp) {
}
return tmp.size();
}
};
| 14.307692 | 27 | 0.424731 |
5f519bc1c25c34290477e9ce07ed8842754151f5 | 10,370 | cpp | C++ | src/audio/CBasicSound.cpp | JackCarlson/Avara | 2d79f6a21855759e427e13ee2d791257bc8c8c71 | [
"MIT"
] | 77 | 2016-10-30T18:37:14.000Z | 2022-02-13T05:02:55.000Z | src/audio/CBasicSound.cpp | tra/Avara | 5a6b5a4f2cf29e8b2ddf7dd3f422579f37a14dab | [
"MIT"
] | 135 | 2018-09-09T06:46:04.000Z | 2022-01-29T19:33:12.000Z | src/audio/CBasicSound.cpp | tra/Avara | 5a6b5a4f2cf29e8b2ddf7dd3f422579f37a14dab | [
"MIT"
] | 19 | 2018-09-09T02:02:46.000Z | 2022-03-16T08:21:08.000Z | /*
Copyright ©1994-1996, Juri Munkki
All rights reserved.
File: CBasicSound.c
Created: Friday, December 23, 1994, 10:57
Modified: Tuesday, September 3, 1996, 21:27
*/
#include "CBasicSound.h"
#include "CSoundHub.h"
#include "CSoundMixer.h"
#include <assert.h>
void CBasicSound::Release() {
i... | 25.73201 | 91 | 0.548987 |
34fc3eca1e3505b2d07896cb4ecee2a367e95d62 | 5,408 | cpp | C++ | src/core/renderer/shader.cpp | mdsitton/LudumDare38 | afa00173cf245fef215aa10024bf397c01711f53 | [
"BSD-2-Clause"
] | null | null | null | src/core/renderer/shader.cpp | mdsitton/LudumDare38 | afa00173cf245fef215aa10024bf397c01711f53 | [
"BSD-2-Clause"
] | 1 | 2017-04-22T21:38:20.000Z | 2017-04-22T21:38:20.000Z | src/core/renderer/shader.cpp | mdsitton/LudumDare38 | afa00173cf245fef215aa10024bf397c01711f53 | [
"BSD-2-Clause"
] | null | null | null | #include "config.hpp"
#include <iostream>
#include <stdexcept>
#include <spdlog/spdlog.h>
#include <glad/glad.h>
#include "vfs.hpp"
#include "shader.hpp"
namespace ORCore
{
static std::shared_ptr<spdlog::logger> logger;
static int _programCount = 0;
Shader::Shader(ShaderInfo _info): info(_info)
{
... | 25.271028 | 83 | 0.611686 |
34fd456783bdd58cf5a710c3a4f029c2aeba3313 | 321 | hpp | C++ | src/rpcz/request_handler_ptr.hpp | jinq0123/rpcz | d273dc1a8de770cb4c2ddee98c17ce60c657d6ca | [
"Apache-2.0"
] | 4 | 2015-06-14T13:38:40.000Z | 2020-11-07T02:29:59.000Z | src/rpcz/request_handler_ptr.hpp | jinq0123/rpcz | d273dc1a8de770cb4c2ddee98c17ce60c657d6ca | [
"Apache-2.0"
] | 1 | 2015-06-19T07:54:53.000Z | 2015-11-12T10:38:21.000Z | src/rpcz/request_handler_ptr.hpp | jinq0123/rpcz | d273dc1a8de770cb4c2ddee98c17ce60c657d6ca | [
"Apache-2.0"
] | 3 | 2015-06-15T02:28:39.000Z | 2018-10-18T11:02:59.000Z | // Author: Jin Qing (http://blog.csdn.net/jq0123)
#ifndef RPCZ_REQUEST_HANDLER_PTR_H
#define RPCZ_REQUEST_HANDLER_PTR_H
#include <boost/shared_ptr.hpp>
namespace rpcz {
class request_handler;
typedef boost::shared_ptr<request_handler> request_handler_ptr;
} // namespace rpcz
#endif // RPCZ_REQUEST_HANDLER_PTR_H... | 20.0625 | 63 | 0.797508 |
34ff834048322fd5351a65e34660fef871d798db | 719 | cc | C++ | src/lsp-protocol/static-data.cc | roflcopter4/electromechanical-lsp-client | 553e4eeeac749986725046083abe6e4ca5eddb19 | [
"MIT"
] | null | null | null | src/lsp-protocol/static-data.cc | roflcopter4/electromechanical-lsp-client | 553e4eeeac749986725046083abe6e4ca5eddb19 | [
"MIT"
] | null | null | null | src/lsp-protocol/static-data.cc | roflcopter4/electromechanical-lsp-client | 553e4eeeac749986725046083abe6e4ca5eddb19 | [
"MIT"
] | null | null | null | #include "Common.hh"
#include "static-data.hh"
namespace emlsp::rpc::lsp::data {
#if 0
std::string const initialization_message =
R"({
"jsonrpc": "2.0",
"id": 1,
"method": "initialize",
"params": {
"trace": "on",
"locale": "en_US.UTF8",
"clientInfo": ... | 20.542857 | 76 | 0.513213 |
5502c9b9825deb1d0594bfef07db2cc22ef09594 | 3,642 | cpp | C++ | MonoNative.Tests/mscorlib/System/mscorlib_System_OverflowException_Fixture.cpp | brunolauze/MonoNative | 959fb52c2c1ffe87476ab0d6e4fcce0ad9ce1e66 | [
"BSD-2-Clause"
] | 7 | 2015-03-10T03:36:16.000Z | 2021-11-05T01:16:58.000Z | MonoNative.Tests/mscorlib/System/mscorlib_System_OverflowException_Fixture.cpp | brunolauze/MonoNative | 959fb52c2c1ffe87476ab0d6e4fcce0ad9ce1e66 | [
"BSD-2-Clause"
] | 1 | 2020-06-23T10:02:33.000Z | 2020-06-24T02:05:47.000Z | MonoNative.Tests/mscorlib/System/mscorlib_System_OverflowException_Fixture.cpp | brunolauze/MonoNative | 959fb52c2c1ffe87476ab0d6e4fcce0ad9ce1e66 | [
"BSD-2-Clause"
] | null | null | null | // Mono Native Fixture
// Assembly: mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
// Namespace: System
// Name: OverflowException
// C++ Typed Name: mscorlib::System::OverflowException
#include <gtest/gtest.h>
#include <mscorlib/System/mscorlib_System_OverflowException.h>
#include <mscor... | 22.7625 | 106 | 0.731466 |
5504cb8775368b3998df85f1df1ca63775176fd7 | 223 | hh | C++ | src/ast/Decl.hh | walecome/seal | 204b2dbad9f0bf3ac77f5e32173de39ef1fb81c1 | [
"MIT"
] | 1 | 2020-01-06T09:43:56.000Z | 2020-01-06T09:43:56.000Z | src/ast/Decl.hh | walecome/seal | 204b2dbad9f0bf3ac77f5e32173de39ef1fb81c1 | [
"MIT"
] | null | null | null | src/ast/Decl.hh | walecome/seal | 204b2dbad9f0bf3ac77f5e32173de39ef1fb81c1 | [
"MIT"
] | null | null | null | #pragma once
#include "Statement.hh"
// @TODO: Derive from something else
class Decl : public Statement {
MAKE_NONMOVABLE(Decl)
MAKE_NONCOPYABLE(Decl)
AST_NODE_NAME(Decl)
protected:
Decl() = default;
}; | 18.583333 | 36 | 0.695067 |
550727d7b0ea51da785f910de3f02bb59e994fbc | 746 | hpp | C++ | engine/source/util/util.hpp | aegooby/videosaurus | 20e2dc52e3b06b15d546c8f0d4bba1f2c8b215ad | [
"Apache-2.0"
] | 1 | 2021-02-19T13:02:23.000Z | 2021-02-19T13:02:23.000Z | engine/source/util/util.hpp | aegooby/videosaurus | 20e2dc52e3b06b15d546c8f0d4bba1f2c8b215ad | [
"Apache-2.0"
] | 16 | 2021-02-11T04:23:48.000Z | 2021-02-19T05:37:30.000Z | engine/source/util/util.hpp | aegooby/videosaurus | 20e2dc52e3b06b15d546c8f0d4bba1f2c8b215ad | [
"Apache-2.0"
] | null | null | null |
#pragma once
#include "../__common.hpp"
namespace vs
{
namespace util
{
template<typename type>
void print_arg(const type& arg)
{
std::cout << arg;
}
template<>
void print_arg(const bool& arg)
{
std::cout << termcolor::bold << termcolor::yellow
<< (arg ? "true" : "false") << termcolor::reset;
}
... | 21.941176 | 79 | 0.621984 |
550915e6b36470976148ac116d6c97b7a88ddbe9 | 1,464 | hpp | C++ | src/sip-0x/parser/tokens/messageheaders/TokenSIPMessageHeader_From.hpp | zanfire/sip-0x | de38b3ff782d2a63b69d7f785e2bd9ce7674abd5 | [
"Apache-2.0"
] | 1 | 2021-06-03T15:56:32.000Z | 2021-06-03T15:56:32.000Z | src/sip-0x/parser/tokens/messageheaders/TokenSIPMessageHeader_From.hpp | zanfire/sip-0x | de38b3ff782d2a63b69d7f785e2bd9ce7674abd5 | [
"Apache-2.0"
] | 1 | 2015-08-05T05:51:49.000Z | 2015-08-05T05:51:49.000Z | src/sip-0x/parser/tokens/messageheaders/TokenSIPMessageHeader_From.hpp | zanfire/sip-0x | de38b3ff782d2a63b69d7f785e2bd9ce7674abd5 | [
"Apache-2.0"
] | null | null | null | #if !defined(SIP0X_PARSER_TOKENSIPMESSAGEHEADER_FROM_HPP__)
#define SIP0X_PARSER_TOKENSIPMESSAGEHEADER_FROM_HPP__
#include "parser/tokens/TokenAbstract.hpp"
#include "parser/tokens/Operators.hpp"
#include "parser/tokens/TokenRegex.hpp"
#include "parser/tokens/TokenNameAddr.hpp"
#include "parser/tokens/TokenGenericPar... | 34.857143 | 182 | 0.686475 |
55093c0a05392e2151d3204f2e5fe7810db874f7 | 1,298 | cpp | C++ | rasprobotd/src/main.cpp | sea-kg/php-rasp-robot | c404a46c48db6e5865a47fbcd0f02d8869cc71a5 | [
"MIT"
] | null | null | null | rasprobotd/src/main.cpp | sea-kg/php-rasp-robot | c404a46c48db6e5865a47fbcd0f02d8869cc71a5 | [
"MIT"
] | null | null | null | rasprobotd/src/main.cpp | sea-kg/php-rasp-robot | c404a46c48db6e5865a47fbcd0f02d8869cc71a5 | [
"MIT"
] | null | null | null | #include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <signal.h>
#include <iostream>
#include <sys/stat.h>
#include <sys/types.h>
#include <sys/time.h>
#include <unistd.h>
#include <errno.h>
#include <fcntl.h>
#include <syslog.h>
#include <QtCore>
#include <QFile>
#include <QString>
#include "websocketser... | 30.186047 | 135 | 0.690293 |
55096fa25ddc42207a712250b4c5fd9d67d95038 | 773 | cpp | C++ | trainings/2015-10-13-Sichuan-Province-2012/A.cpp | HcPlu/acm-icpc | ab1f1d58bf2b4bf6677a2e4282fd3dadb3effbf8 | [
"MIT"
] | 9 | 2017-10-07T13:35:45.000Z | 2021-06-07T17:36:55.000Z | trainings/2015-10-13-Sichuan-Province-2012/A.cpp | zhijian-liu/acm-icpc | ab1f1d58bf2b4bf6677a2e4282fd3dadb3effbf8 | [
"MIT"
] | null | null | null | trainings/2015-10-13-Sichuan-Province-2012/A.cpp | zhijian-liu/acm-icpc | ab1f1d58bf2b4bf6677a2e4282fd3dadb3effbf8 | [
"MIT"
] | 3 | 2018-04-24T05:27:21.000Z | 2019-04-25T06:06:00.000Z | #include <iostream>
using namespace std;
int a[10], used[22][22][22];
void solve() {
for (int i = 1; i <= 3; i++) {
scanf("%d", &a[i]);
}
sort(a + 1, a + 4);
memset(used, 0, sizeof(used));
for (int i = 1; i <= 3; i++) {
for (int j = 1; j <= 3; j++) {
for (int k = 1; k <... | 22.735294 | 63 | 0.315653 |
550aa8d1a5439a4dfa72d97d3345ac219f405660 | 3,494 | cpp | C++ | main.cpp | picorro/VulkanEngine | eca00b4332783a44692207ac4f057f292ca07328 | [
"MIT"
] | null | null | null | main.cpp | picorro/VulkanEngine | eca00b4332783a44692207ac4f057f292ca07328 | [
"MIT"
] | null | null | null | main.cpp | picorro/VulkanEngine | eca00b4332783a44692207ac4f057f292ca07328 | [
"MIT"
] | null | null | null | /*******************************************************************
** This code is part of Breakout.
**
** Breakout is free software: you can redistribute it and/or modify
** it under the terms of the CC BY 4.0 license as published by
** Creative Commons, either version 4 of the License, or (at your
** option) any la... | 27.952 | 110 | 0.653692 |
550d4bfc530fd0ba42f49bed4131585a505fe65e | 18,389 | cc | C++ | include/windows/google/protobuf/any_test.pb.cc | Thanalan/GameBookServer-master | 506b4fe1eece1a3c0bd1100fe14764b63885b2bf | [
"MIT"
] | 83 | 2019-12-03T08:42:15.000Z | 2022-03-30T13:22:37.000Z | include/windows/google/protobuf/any_test.pb.cc | Thanalan/GameBookServer-master | 506b4fe1eece1a3c0bd1100fe14764b63885b2bf | [
"MIT"
] | 1 | 2021-08-06T10:40:57.000Z | 2021-08-09T06:33:43.000Z | include/windows/google/protobuf/any_test.pb.cc | Thanalan/GameBookServer-master | 506b4fe1eece1a3c0bd1100fe14764b63885b2bf | [
"MIT"
] | 45 | 2020-05-29T03:22:48.000Z | 2022-03-21T16:19:01.000Z | // Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/protobuf/any_test.proto
#include "google/protobuf/any_test.pb.h"
#include <algorithm>
#include <google/protobuf/stubs/common.h>
#include <google/protobuf/io/coded_stream.h>
#include <google/protobuf/extension_set.h>
#include <google/protob... | 38.795359 | 203 | 0.73805 |
550de8d47b5f9f69b204979617fe7276bf2d5fba | 11,501 | cpp | C++ | node/node.cpp | catenocrypt/tcpserver-libuv-sample | ad847ce3bb89adb92b6adf24e14a8f806580b7f1 | [
"MIT"
] | 1 | 2020-04-29T07:29:27.000Z | 2020-04-29T07:29:27.000Z | node/node.cpp | catenocrypt/tcpserver-libuv-sample | ad847ce3bb89adb92b6adf24e14a8f806580b7f1 | [
"MIT"
] | null | null | null | node/node.cpp | catenocrypt/tcpserver-libuv-sample | ad847ce3bb89adb92b6adf24e14a8f806580b7f1 | [
"MIT"
] | null | null | null | #include "node.hpp"
#include "peer_conn.hpp"
#include "endpoint.hpp"
#include "../lib/net_handler.hpp"
#include "../lib/net_client.hpp"
#include <cassert>
#include <iostream>
using namespace sample;
using namespace std;
NodeApp::PeerCandidateInfo::PeerCandidateInfo(std::string host_in, int port_in, int toTry_in) :
... | 31.683196 | 204 | 0.536388 |
550ed484a943b7c9c3414be1c5063ee32f77b838 | 965 | cpp | C++ | source/BinaryTree/144. Binary Tree Preorder Traversal.cpp | Tridu33/myclionarch | d4e41b3465a62a83cbf6c7119401c05009f4b636 | [
"MIT"
] | null | null | null | source/BinaryTree/144. Binary Tree Preorder Traversal.cpp | Tridu33/myclionarch | d4e41b3465a62a83cbf6c7119401c05009f4b636 | [
"MIT"
] | null | null | null | source/BinaryTree/144. Binary Tree Preorder Traversal.cpp | Tridu33/myclionarch | d4e41b3465a62a83cbf6c7119401c05009f4b636 | [
"MIT"
] | null | null | null | //递归解法:
class Solution {
public:
void prebintree(TreeNode * root,vector<int> &res){//记得传地址而不是传值&res
if(root == nullptr) {
return;
}
res.push_back(root->val);
prebintree(root->left,res);
prebintree(root->right,res);
return;
}
vector<int> preorderTr... | 22.44186 | 70 | 0.533679 |
55131cf89a253821832354b7d53c2f3b0a84d1ea | 436 | cpp | C++ | old/src/channel/BufferWrapper.cpp | edwino-stein/elrond-common | 145909bb883e9877e9de3325d2a9002639271200 | [
"Apache-2.0"
] | null | null | null | old/src/channel/BufferWrapper.cpp | edwino-stein/elrond-common | 145909bb883e9877e9de3325d2a9002639271200 | [
"Apache-2.0"
] | 47 | 2019-12-30T22:14:04.000Z | 2022-03-26T02:04:06.000Z | old/src/channel/BufferWrapper.cpp | edwino-stein/elrond-common | 145909bb883e9877e9de3325d2a9002639271200 | [
"Apache-2.0"
] | null | null | null | #include "channel/BufferWrapper.hpp"
using elrond::channel::BufferWrapper;
/* ****************************************************************************
************** elrond::channel::BufferWrapper Implementation ***************
****************************************************************************/... | 39.636364 | 83 | 0.431193 |
55138f897795896970b5bc19224bd50389607a67 | 5,112 | hpp | C++ | Support/Modules/GSRoot/ThreadMonitor.hpp | graphisoft-python/TextEngine | 20c2ff53877b20fdfe2cd51ce7abdab1ff676a70 | [
"Apache-2.0"
] | 3 | 2019-07-15T10:54:54.000Z | 2020-01-25T08:24:51.000Z | Support/Modules/GSRoot/ThreadMonitor.hpp | graphisoft-python/GSRoot | 008fac2c6bf601ca96e7096705e25b10ba4d3e75 | [
"Apache-2.0"
] | null | null | null | Support/Modules/GSRoot/ThreadMonitor.hpp | graphisoft-python/GSRoot | 008fac2c6bf601ca96e7096705e25b10ba4d3e75 | [
"Apache-2.0"
] | 1 | 2020-09-26T03:17:22.000Z | 2020-09-26T03:17:22.000Z |
// *****************************************************************************
//
// Declaration of ThreadMonitor class
//
// Module: GSRoot
// Namespace: GS
// Contact person: SN
//
// *****************************************************************************
#ifndef GS_THREADMONITOR_HPP
#define GS_THREADMON... | 26.081633 | 84 | 0.339593 |
55146f745ab25defa0d51dc9e47174d30cf93ccd | 8,270 | hpp | C++ | utility/convert.hpp | MIPS/external-parameter-framework | 7f346c9058f39a533a2eaadc9ebc4001397c6ff9 | [
"BSD-3-Clause"
] | null | null | null | utility/convert.hpp | MIPS/external-parameter-framework | 7f346c9058f39a533a2eaadc9ebc4001397c6ff9 | [
"BSD-3-Clause"
] | null | null | null | utility/convert.hpp | MIPS/external-parameter-framework | 7f346c9058f39a533a2eaadc9ebc4001397c6ff9 | [
"BSD-3-Clause"
] | null | null | null | /*
* Copyright (c) 2011-2014, Intel Corporation
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without modification,
* are permitted provided that the following conditions are met:
*
* 1. Redistributions of source code must retain the above copyright notice, this
* list of... | 33.893443 | 97 | 0.69867 |
55156c345ef50bf7727bbde804a325a7ba4bd841 | 1,553 | hpp | C++ | src/morda/widgets/proxy/click_proxy.hpp | igagis/morda | dd7b58f7cb2689d56b7796cc9b6b9302aad1a529 | [
"MIT"
] | 69 | 2016-12-07T05:56:53.000Z | 2020-11-27T20:59:05.000Z | src/morda/widgets/proxy/click_proxy.hpp | igagis/morda | dd7b58f7cb2689d56b7796cc9b6b9302aad1a529 | [
"MIT"
] | 103 | 2015-07-10T14:42:21.000Z | 2020-09-09T16:16:21.000Z | src/morda/widgets/proxy/click_proxy.hpp | igagis/morda | dd7b58f7cb2689d56b7796cc9b6b9302aad1a529 | [
"MIT"
] | 18 | 2016-11-22T14:41:37.000Z | 2020-04-22T18:16:10.000Z | /*
morda - GUI framework
Copyright (C) 2012-2021 Ivan Gagis <igagis@gmail.com>
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, either version 3 of the License, or
(at your option) any later version... | 27.732143 | 79 | 0.714746 |
55164e1e221b2c4199fa953565a2f8df20edc4c7 | 936 | cpp | C++ | training/1-1-7-beads/cpp11/main.cpp | hsun324/usaco-solutions | 27f77911971513a4d2b1b820eaa09802acadfefa | [
"MIT"
] | 2 | 2015-12-26T21:20:12.000Z | 2017-12-19T00:11:45.000Z | training/1-1-7-beads/cpp11/main.cpp | hsun324/usaco-solutions | 27f77911971513a4d2b1b820eaa09802acadfefa | [
"MIT"
] | null | null | null | training/1-1-7-beads/cpp11/main.cpp | hsun324/usaco-solutions | 27f77911971513a4d2b1b820eaa09802acadfefa | [
"MIT"
] | null | null | null | /*
ID: <ID HERE>
LANG: C++11
TASK: beads
*/
#include <fstream>
#include <string>
using namespace std;
template <typename iterator>
int get_stretch(iterator begin, iterator end) {
auto iter = begin;
auto current_type = *iter;
while (iter++ != end) {
if (*iter == 'w') continue;
if (current_type == 'w') current_... | 19.5 | 86 | 0.666667 |
5517c8062ce0660d358616c3c258be1ce9fb3327 | 54 | hpp | C++ | include/EnvironmentHider.hpp | Raemien/CustomBackgroundsQuest | 40ad901b33075420f63d6088f0280013cc5321c1 | [
"MIT"
] | 4 | 2021-02-03T08:53:53.000Z | 2022-03-14T06:02:35.000Z | include/EnvironmentHider.hpp | Raemien/CustomBackgroundsQuest | 40ad901b33075420f63d6088f0280013cc5321c1 | [
"MIT"
] | 1 | 2021-09-14T17:45:34.000Z | 2021-09-15T13:51:39.000Z | include/EnvironmentHider.hpp | Raemien/CustomBackgroundsQuest | 40ad901b33075420f63d6088f0280013cc5321c1 | [
"MIT"
] | 2 | 2021-09-09T01:21:23.000Z | 2022-02-13T09:14:11.000Z | extern void HideMenuEnv();
extern void HideGameEnv(); | 18 | 26 | 0.777778 |
55184abb4520a516bff065baa04688408fb61ed1 | 3,525 | hpp | C++ | demos/TIMDemo/skin/MaskSkin.hpp | wzaen/soui2 | 30735bbb84184fc26f0e70edbfede889e24fba5b | [
"MIT"
] | 33 | 2018-07-04T09:38:12.000Z | 2021-06-19T06:11:45.000Z | demos/TIMDemo/skin/MaskSkin.hpp | wzaen/soui2 | 30735bbb84184fc26f0e70edbfede889e24fba5b | [
"MIT"
] | null | null | null | demos/TIMDemo/skin/MaskSkin.hpp | wzaen/soui2 | 30735bbb84184fc26f0e70edbfede889e24fba5b | [
"MIT"
] | 13 | 2018-07-01T01:55:17.000Z | 2021-08-03T10:55:45.000Z | #ifndef __MASK_SKIN_HPP_
#define __MASK_SKIN_HPP_
#include "core/SSkin.h"
//************************************
// 这个是 mask 遮罩 皮肤 头像 在skin.xml 里配置 需要 3个值
// src 和 imglist 一样
// mask_a 设置透明值 的rgb a // .a=3 .r=0 .g=1 .b=2
// mask 设置遮罩 图片
// <masklist name="default" src="image:default" mask_a="1" mask="image:ma... | 24.143836 | 84 | 0.63461 |
5519511b177d6bb29e019d6aaec7cb1ec9265209 | 2,679 | cpp | C++ | vcf/VCFBuilder2/SelectionManager.cpp | tharindusathis/sourcecodes-of-CodeReadingTheOpenSourcePerspective | 1b0172cdb78757fd17898503aaf6ce03d940ef28 | [
"Apache-1.1"
] | 46 | 2015-12-04T17:12:58.000Z | 2022-03-11T04:30:49.000Z | vcf/VCFBuilder2/SelectionManager.cpp | tharindusathis/sourcecodes-of-CodeReadingTheOpenSourcePerspective | 1b0172cdb78757fd17898503aaf6ce03d940ef28 | [
"Apache-1.1"
] | null | null | null | vcf/VCFBuilder2/SelectionManager.cpp | tharindusathis/sourcecodes-of-CodeReadingTheOpenSourcePerspective | 1b0172cdb78757fd17898503aaf6ce03d940ef28 | [
"Apache-1.1"
] | 23 | 2016-10-24T09:18:14.000Z | 2022-02-25T02:11:35.000Z | //SelectionManager.h
#include "ApplicationKit.h"
#include "SelectionManager.h"
#include <algorithm>
using namespace VCF;
using namespace VCFBuilder;
SelectionManager SelectionManager::selectionMgrInstance;
SelectionManager::SelectionManager()
{
init();
}
SelectionManager::~SelectionManager()
{
m_schedul... | 24.577982 | 114 | 0.736096 |
551bf1e59d207439ecad87f4c13dd45bf661eff0 | 3,519 | hpp | C++ | 3rdParty/boost/1.71.0/libs/parameter/test/deduced.hpp | rajeev02101987/arangodb | 817e6c04cb82777d266f3b444494140676da98e2 | [
"Apache-2.0"
] | 12,278 | 2015-01-29T17:11:33.000Z | 2022-03-31T21:12:00.000Z | 3rdParty/boost/1.71.0/libs/parameter/test/deduced.hpp | rajeev02101987/arangodb | 817e6c04cb82777d266f3b444494140676da98e2 | [
"Apache-2.0"
] | 9,469 | 2015-01-30T05:33:07.000Z | 2022-03-31T16:17:21.000Z | 3rdParty/boost/1.71.0/libs/parameter/test/deduced.hpp | rajeev02101987/arangodb | 817e6c04cb82777d266f3b444494140676da98e2 | [
"Apache-2.0"
] | 892 | 2015-01-29T16:26:19.000Z | 2022-03-20T07:44:30.000Z | // Copyright Daniel Wallin 2006.
// Copyright Cromwell D. Enage 2017.
// Distributed under the Boost Software License, Version 1.0.
// (See accompanying file LICENSE_1_0.txt or copy at
// http://www.boost.org/LICENSE_1_0.txt)
#ifndef BOOST_DEDUCED_060920_HPP
#define BOOST_DEDUCED_060920_HPP
#include <boost/parameter/... | 26.659091 | 76 | 0.596476 |
55210b4c09d6343a045c00f1aab3c56a53b7accc | 842 | cpp | C++ | 30days/day26.cpp | sagi-z/hackerrank | ba6c75947626adb8b0fc89868cb3cb86f60aaa14 | [
"MIT"
] | null | null | null | 30days/day26.cpp | sagi-z/hackerrank | ba6c75947626adb8b0fc89868cb3cb86f60aaa14 | [
"MIT"
] | null | null | null | 30days/day26.cpp | sagi-z/hackerrank | ba6c75947626adb8b0fc89868cb3cb86f60aaa14 | [
"MIT"
] | null | null | null | #include <cmath>
#include <cstdio>
#include <vector>
#include <iostream>
#include <algorithm>
#include <iterator>
using namespace std;
int main() {
/* Enter your code here. Read input from STDIN. Print output to STDOUT */
int d1, m1, y1;
int d2, m2, y2;
istream_iterator<int> iter(cin);
d1 = *i... | 18.711111 | 80 | 0.465558 |
55258619dc7b0fa1b8366e9eafff443d00ac4825 | 552 | cpp | C++ | classeA.cpp | RafaelNatsu/Projeto_Rafael_Natsu | 71360db1788a2d3aa7d57de41ff90bff9e48f8bb | [
"MIT"
] | null | null | null | classeA.cpp | RafaelNatsu/Projeto_Rafael_Natsu | 71360db1788a2d3aa7d57de41ff90bff9e48f8bb | [
"MIT"
] | null | null | null | classeA.cpp | RafaelNatsu/Projeto_Rafael_Natsu | 71360db1788a2d3aa7d57de41ff90bff9e48f8bb | [
"MIT"
] | null | null | null | #include "classeA.hpp"
classeA::classeA()
{
A1 = 0;
A2 = 0;
}
classeA::~classeA(){}
void classeA::MA1()
{
std::cout << "Metodo MA1" << std::endl;
}
void classeA::MA2()
{
std::cout << "Metodo MA2" << std::endl;
}
void classeA::MA3()
{
std::cout << "Alteração a classe A part... | 12.266667 | 70 | 0.519928 |
55275e13b42d0b4cc60c4a191a3b7cc832f54754 | 152 | cpp | C++ | example.cpp | Bepitic/Simple-Logger | d74ee2dc5c25d45c4a2eb29856cd9c9f99c8b51f | [
"MIT"
] | null | null | null | example.cpp | Bepitic/Simple-Logger | d74ee2dc5c25d45c4a2eb29856cd9c9f99c8b51f | [
"MIT"
] | null | null | null | example.cpp | Bepitic/Simple-Logger | d74ee2dc5c25d45c4a2eb29856cd9c9f99c8b51f | [
"MIT"
] | null | null | null | #include "logger.hpp"
int main(int argc, char *argv[])
{
Log::Err("el sitstema ",1," Funciona");
Log::Inf();
Log::Warn();
return 0;
}
| 13.818182 | 43 | 0.546053 |
552cc14700be68dce24bfb788e63b032eb9147b9 | 5,737 | cpp | C++ | wznmcmbd/CrdWznmOpx/PnlWznmOpxDetail_evals.cpp | mpsitech/wznm-WhizniumSBE | 4911d561b28392d485c46e98fb915168d82b3824 | [
"MIT"
] | 3 | 2020-09-20T16:24:48.000Z | 2021-12-01T19:44:51.000Z | wznmcmbd/CrdWznmOpx/PnlWznmOpxDetail_evals.cpp | mpsitech/wznm-WhizniumSBE | 4911d561b28392d485c46e98fb915168d82b3824 | [
"MIT"
] | null | null | null | wznmcmbd/CrdWznmOpx/PnlWznmOpxDetail_evals.cpp | mpsitech/wznm-WhizniumSBE | 4911d561b28392d485c46e98fb915168d82b3824 | [
"MIT"
] | null | null | null | /**
* \file PnlWznmOpxDetail_evals.cpp
* job handler for job PnlWznmOpxDetail (implementation of availability/activation evaluation)
* \copyright (C) 2016-2020 MPSI Technologies GmbH
* \author Alexander Wirthmueller (auto-generation)
* \date created: 28 Nov 2020
*/
// IP header --- ABOVE
using namespace std;
usi... | 20.41637 | 101 | 0.682587 |
552e4bb200ddc0eb455b2eca6355e0bac53347f8 | 13,531 | cpp | C++ | decoder/YAIK_Alpha.cpp | KLab/YAIK | 55ecf9b8eac0b2b67c4cb52b997e81930e94f9bf | [
"MIT"
] | 4 | 2020-05-26T02:21:35.000Z | 2022-01-13T12:05:28.000Z | decoder/YAIK_Alpha.cpp | KLab/YAIK | 55ecf9b8eac0b2b67c4cb52b997e81930e94f9bf | [
"MIT"
] | null | null | null | decoder/YAIK_Alpha.cpp | KLab/YAIK | 55ecf9b8eac0b2b67c4cb52b997e81930e94f9bf | [
"MIT"
] | null | null | null | #include "YAIK_functions.h"
// memset, memcpy
#include <memory.h>
/*
-----------------------------------------------------------------------------
2. Decompression technique for Alpha
-----------------------------------------------------------------------------
*/
bool CheckInBound2D(YAIK_Instance* pCtx,... | 30.406742 | 151 | 0.538319 |
552ea5a5d0dee8d6d27ee878bf7c75c1e22c1589 | 10,777 | cpp | C++ | evs/src/v2/model/SnapshotDetails.cpp | yangzhaofeng/huaweicloud-sdk-cpp-v3 | 4f3caac5ba9a9b75b4e5fd61683d1c4d57ec1c23 | [
"Apache-2.0"
] | 5 | 2021-03-03T08:23:43.000Z | 2022-02-16T02:16:39.000Z | evs/src/v2/model/SnapshotDetails.cpp | yangzhaofeng/huaweicloud-sdk-cpp-v3 | 4f3caac5ba9a9b75b4e5fd61683d1c4d57ec1c23 | [
"Apache-2.0"
] | null | null | null | evs/src/v2/model/SnapshotDetails.cpp | yangzhaofeng/huaweicloud-sdk-cpp-v3 | 4f3caac5ba9a9b75b4e5fd61683d1c4d57ec1c23 | [
"Apache-2.0"
] | 7 | 2021-02-26T13:53:35.000Z | 2022-03-18T02:36:43.000Z |
#include "huaweicloud/evs/v2/model/SnapshotDetails.h"
namespace HuaweiCloud {
namespace Sdk {
namespace Evs {
namespace V2 {
namespace Model {
SnapshotDetails::SnapshotDetails()
{
id_ = "";
idIsSet_ = false;
status_ = "";
statusIsSet_ = false;
name_ = "";
nameIsSet_ = false;
descripti... | 25.00464 | 153 | 0.673286 |
55307bf0b102da1dcbeca82bac7ed73adf53a86a | 8,215 | cpp | C++ | MyProcessInjectControl/MFCMyProcCtlUI/MFCMyProcCtlUIDlg.cpp | shc0743/CLearn | e6580588102bb66fb76903deb6699f19b38f4676 | [
"MIT"
] | null | null | null | MyProcessInjectControl/MFCMyProcCtlUI/MFCMyProcCtlUIDlg.cpp | shc0743/CLearn | e6580588102bb66fb76903deb6699f19b38f4676 | [
"MIT"
] | null | null | null | MyProcessInjectControl/MFCMyProcCtlUI/MFCMyProcCtlUIDlg.cpp | shc0743/CLearn | e6580588102bb66fb76903deb6699f19b38f4676 | [
"MIT"
] | null | null | null |
// MFCMyProcCtlUIDlg.cpp: 实现文件
//
#include "pch.h"
#include "framework.h"
#include "MFCMyProcCtlUI.h"
#include "MFCMyProcCtlUIDlg.h"
#include "afxdialogex.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#endif
#include <TlHelp32.h>
using namespace std;
CAboutDlg::CAboutDlg() : CDialogEx(IDD_ABOUTBOX)
{
}
void CAboutDlg::... | 26.246006 | 79 | 0.709677 |
5530e9403ac3d0816100568113bbfd0b164ef4e4 | 721 | cpp | C++ | test/smoke/fast_fp_atomics/fast_fp_atomics.cpp | raramakr/aomp | 9a224fe01ca8eff4209b8b79aa1fa15a18da65db | [
"Apache-2.0"
] | null | null | null | test/smoke/fast_fp_atomics/fast_fp_atomics.cpp | raramakr/aomp | 9a224fe01ca8eff4209b8b79aa1fa15a18da65db | [
"Apache-2.0"
] | null | null | null | test/smoke/fast_fp_atomics/fast_fp_atomics.cpp | raramakr/aomp | 9a224fe01ca8eff4209b8b79aa1fa15a18da65db | [
"Apache-2.0"
] | null | null | null | #include<stdio.h>
#include<omp.h>
int main() {
double sum = 0.0;
int n = 10000;
#pragma omp target teams distribute parallel for map(tofrom:sum)
for(int i = 0; i < n; i++) {
#pragma omp atomic hint(AMD_safe_fp_atomics)
sum+=1.0;
}
int err = 0;
if (sum != (double) n) {
printf("Error with sa... | 20.6 | 83 | 0.590846 |
5530faf5a36ee97a940185b4620737dd2bc95ae6 | 2,491 | cpp | C++ | POO/Seminar 2/S2p2claseImplicit.cpp | ParaschivAlex/FMI-Thangs | 26d8a13b08344744ee6ab56f088dd4adb665980e | [
"MIT"
] | null | null | null | POO/Seminar 2/S2p2claseImplicit.cpp | ParaschivAlex/FMI-Thangs | 26d8a13b08344744ee6ab56f088dd4adb665980e | [
"MIT"
] | null | null | null | POO/Seminar 2/S2p2claseImplicit.cpp | ParaschivAlex/FMI-Thangs | 26d8a13b08344744ee6ab56f088dd4adb665980e | [
"MIT"
] | null | null | null | #include <cstdlib>
#include <iostream>
using namespace std;
class Complex
{
float re,im;
public: void f();
};
/* pentru orice clasa compilatorul asigura implicit
- un constructor de initializare -fara parametrii,
- un constructor de copiere
- un operator d... | 38.921875 | 125 | 0.69169 |
553345d2e3f5d662bb794c85bfdcafd0b77fc691 | 8,688 | cpp | C++ | Source/Qurses/util.cpp | mfaithfull/QOR | 0fa51789344da482e8c2726309265d56e7271971 | [
"BSL-1.0"
] | 9 | 2016-05-27T01:00:39.000Z | 2021-04-01T08:54:46.000Z | Source/Qurses/util.cpp | mfaithfull/QOR | 0fa51789344da482e8c2726309265d56e7271971 | [
"BSL-1.0"
] | 1 | 2016-03-03T22:54:08.000Z | 2016-03-03T22:54:08.000Z | Source/Qurses/util.cpp | mfaithfull/QOR | 0fa51789344da482e8c2726309265d56e7271971 | [
"BSL-1.0"
] | 4 | 2016-05-27T01:00:43.000Z | 2018-08-19T08:47:49.000Z | /* Public Domain Curses */
#include "Qurses/curspriv.h"
RCSID("$Id: util.c,v 1.71 2008/07/13 16:08:18 wmcbrine Exp $")
/*man-start**************************************************************
Name: util
Synopsis:
char *unctrl(chtype c);
v... | 26.487805 | 106 | 0.436119 |
553c6630e13e876b18e0421953c8a53c297bc302 | 3,945 | hpp | C++ | threadsafe/queue/spsc_queue.hpp | AVasK/core | e8f73f2b92be1ac0a98bda2824682181c5575748 | [
"MIT"
] | null | null | null | threadsafe/queue/spsc_queue.hpp | AVasK/core | e8f73f2b92be1ac0a98bda2824682181c5575748 | [
"MIT"
] | null | null | null | threadsafe/queue/spsc_queue.hpp | AVasK/core | e8f73f2b92be1ac0a98bda2824682181c5575748 | [
"MIT"
] | null | null | null | #pragma once
#include <atomic>
#include "../../cpu.hpp" // cacheline_size
#include "../../range.hpp"
#include "../auxiliary/tagged.hpp" // TaggedData
#include "io_descriptors.hpp" // core::{queue_reader, queue_writer}
#include <vector>
template <typename T, typename size_type=unsigned>
class spsc_queue {
frie... | 26.836735 | 146 | 0.532573 |
553fa9919d6f85475b1ce52b5cd98398731f4ede | 29,505 | cpp | C++ | libs/odbc/binder.cpp | hajokirchhoff/litwindow | 7f574d4e80ee8339ac11c35f075857c20391c223 | [
"MIT",
"BSD-3-Clause"
] | null | null | null | libs/odbc/binder.cpp | hajokirchhoff/litwindow | 7f574d4e80ee8339ac11c35f075857c20391c223 | [
"MIT",
"BSD-3-Clause"
] | 1 | 2017-01-07T09:44:20.000Z | 2017-01-07T09:44:20.000Z | libs/odbc/binder.cpp | hajokirchhoff/litwindow | 7f574d4e80ee8339ac11c35f075857c20391c223 | [
"MIT",
"BSD-3-Clause"
] | null | null | null | /*
* Copyright 2005-2006, Hajo Kirchhoff - Lit Window Productions, http://www.litwindow.com
* This file is part of the Lit Window ODBC Library. All use of this material - copying
* in full or part, including in other works, using in non-profit or for-profit work
* and other uses - is governed by the licence contained ... | 35 | 285 | 0.716624 |
55418e97647308bed166a7a209cf7c44021f8800 | 560 | cpp | C++ | main/find-triplets-with-zero-sum/find-triplets-with-zero-sum.cpp | EliahKagan/old-practice-snapshot | 1b53897eac6902f8d867c8f154ce2a489abb8133 | [
"0BSD"
] | null | null | null | main/find-triplets-with-zero-sum/find-triplets-with-zero-sum.cpp | EliahKagan/old-practice-snapshot | 1b53897eac6902f8d867c8f154ce2a489abb8133 | [
"0BSD"
] | null | null | null | main/find-triplets-with-zero-sum/find-triplets-with-zero-sum.cpp | EliahKagan/old-practice-snapshot | 1b53897eac6902f8d867c8f154ce2a489abb8133 | [
"0BSD"
] | null | null | null | /*You are required to complete the function below*/
bool findTriplets(int *const a, const int n)
{
sort(a, a + n);
for (auto i = 0; i != n; ++i) {
const auto target = -a[i];
for (auto j = 0, k = n - 1; j < k; ) {
const auto cur = a[j] + a[k];
if... | 25.454545 | 51 | 0.376786 |
554449e60a821f16c728c8c7d5f120483a2d48bd | 3,792 | cpp | C++ | Example/Example.cpp | davemc0/Particle | 04d9bbe19e21b9024c81eb21708425e4a1ebc361 | [
"CC0-1.0"
] | 1 | 2022-03-26T01:48:11.000Z | 2022-03-26T01:48:11.000Z | Example/Example.cpp | davemc0/Particle | 04d9bbe19e21b9024c81eb21708425e4a1ebc361 | [
"CC0-1.0"
] | null | null | null | Example/Example.cpp | davemc0/Particle | 04d9bbe19e21b9024c81eb21708425e4a1ebc361 | [
"CC0-1.0"
] | null | null | null | // Example.cpp - An example of the Particle System API in OpenGL
//
// Copyright 1999-2006, 2022 by David K. McAllister
#include "Particle/pAPI.h"
using namespace PAPI;
// OpenGL
#include "GL/glew.h"
// This needs to come after GLEW
#include "GL/freeglut.h"
// For C++17 execution policy to get parallelism of partic... | 26.893617 | 151 | 0.64847 |
55454bd5de6af9932b41977d05db0d82cd96ccc2 | 6,908 | cpp | C++ | libraries/RTIMULib/utility/RTPressureMS5803.cpp | uutzinger/RTIMULib2-Teensy | 0901af6b69399b0f107c8bf1012e6361e3029b94 | [
"MIT"
] | 1 | 2021-05-16T16:24:27.000Z | 2021-05-16T16:24:27.000Z | libraries/RTIMULib/utility/RTPressureMS5803.cpp | uutzinger/RTIMULib2-Teensy | 0901af6b69399b0f107c8bf1012e6361e3029b94 | [
"MIT"
] | null | null | null | libraries/RTIMULib/utility/RTPressureMS5803.cpp | uutzinger/RTIMULib2-Teensy | 0901af6b69399b0f107c8bf1012e6361e3029b94 | [
"MIT"
] | 7 | 2016-09-04T23:01:26.000Z | 2020-05-08T06:00:46.000Z | ////////////////////////////////////////////////////////////////////////////
//
// This file is part of RTIMULib
//
// Copyright (c) 2014-2015, richards-tech
//
// Permission is hereby granted, free of charge, to any person obtaining a copy of
// this software and associated documentation files (the "Software"), to... | 34.713568 | 132 | 0.604661 |
5545628e382e2f84e9ad33d63a872f72b56334fc | 1,281 | hpp | C++ | include/cql/cql_uuid.hpp | ncbi/cassandra-cpp-driver | b2259e9b13849c98fc6b6485f2433c97c1fa4b9f | [
"Apache-2.0"
] | 3 | 2016-02-24T09:22:16.000Z | 2021-04-06T03:04:21.000Z | include/cql/cql_uuid.hpp | ncbi/cassandra-cpp-driver | b2259e9b13849c98fc6b6485f2433c97c1fa4b9f | [
"Apache-2.0"
] | null | null | null | include/cql/cql_uuid.hpp | ncbi/cassandra-cpp-driver | b2259e9b13849c98fc6b6485f2433c97c1fa4b9f | [
"Apache-2.0"
] | 6 | 2015-04-26T07:16:44.000Z | 2020-11-23T06:31:07.000Z | /*
* File: cql_uuid_t.hpp
* Author: mc
*
* Created on September 26, 2013, 12:35 PM
*/
#ifndef CQL_UUID_HPP_
#define CQL_UUID_HPP_
#include <functional>
namespace cql {
class cql_uuid_t;
}
namespace std {
// template<>
// struct hash<cql::cql_uuid_t>;
}
namespace cql {
class cql_uuid_t {
public:... | 18.042254 | 64 | 0.551132 |
5546642ce4eec804341472684f579415e01994e1 | 641 | cpp | C++ | simplefvm/src/FVMSolver/CoeffsPartsCommon/DataExchanger/DataExchangerP.cpp | artvns/SimpleFvm | 5a8eca332d6780e738c0bc6c8c2b787b47b5b20d | [
"MIT"
] | 4 | 2022-01-03T08:45:55.000Z | 2022-01-06T19:57:11.000Z | simplefvm/src/FVMSolver/CoeffsPartsCommon/DataExchanger/DataExchangerP.cpp | artvns/SimpleFvm | 5a8eca332d6780e738c0bc6c8c2b787b47b5b20d | [
"MIT"
] | null | null | null | simplefvm/src/FVMSolver/CoeffsPartsCommon/DataExchanger/DataExchangerP.cpp | artvns/SimpleFvm | 5a8eca332d6780e738c0bc6c8c2b787b47b5b20d | [
"MIT"
] | null | null | null | #include "DataExchangerP.h"
namespace fvmsolver {
DataExchangerP::DataExchangerP(uPtrDataPort spData) :
spData_(std::move(spData)),
data_(*spData_) {
}
void DataExchangerP::assignCurrentCellValues(size_t step) {
size_t numUw_ = data_.getNum... | 27.869565 | 63 | 0.631825 |
554761e1a836a0c8b0f900513094b1f845556219 | 5,192 | cpp | C++ | src/physics/ycolshape.cpp | sivarajankumar/smoothernity | a4c7d290ca601bddf680ef040f3235dc7b029a6b | [
"MIT"
] | null | null | null | src/physics/ycolshape.cpp | sivarajankumar/smoothernity | a4c7d290ca601bddf680ef040f3235dc7b029a6b | [
"MIT"
] | null | null | null | src/physics/ycolshape.cpp | sivarajankumar/smoothernity | a4c7d290ca601bddf680ef040f3235dc7b029a6b | [
"MIT"
] | null | null | null | #include "yphysres.h"
#include "ycolshape.hpp"
#include "pmem.hpp"
struct ycolshapes_t {
int count;
ycolshape_t *pool;
};
static ycolshapes_t g_ycolshapes;
int ycolshape_init(int count) {
size_t size_max, align_max;
ycolshape_t *cs;
#define FIND_SIZES(t) \
if (sizeof(t) > size_max) size_... | 27.764706 | 79 | 0.578005 |
554a6cc43c83e5ad46f4ae32c3288a1875b434a5 | 782 | cpp | C++ | src/client/src/ImagingException.cpp | don-reba/peoples-note | c22d6963846af833c55f4294dd0474e83344475d | [
"BSD-2-Clause"
] | null | null | null | src/client/src/ImagingException.cpp | don-reba/peoples-note | c22d6963846af833c55f4294dd0474e83344475d | [
"BSD-2-Clause"
] | null | null | null | src/client/src/ImagingException.cpp | don-reba/peoples-note | c22d6963846af833c55f4294dd0474e83344475d | [
"BSD-2-Clause"
] | null | null | null | #include "stdafx.h"
#include "ImagingException.h"
#include "Tools.h"
using namespace std;
using namespace Tools;
ImagingException::ImagingException(HRESULT result)
: error (::GetLastError())
, result (result)
{
DWORD flags (FORMAT_MESSAGE_FROM_SYSTEM|FORMAT_MESSAGE_FROM_HMODULE|FORMAT_MESSAGE_IGNO... | 24.4375 | 104 | 0.643223 |
554cc503f4f76c472445fe6d598a53bf39690230 | 571 | cpp | C++ | CONTESTS/CODEFORCES/div2 844/A.cpp | priojeetpriyom/competitive-programming | 0024328972d4e14c04c0fd5d6dd3cdf131d84f9d | [
"MIT"
] | 1 | 2021-11-22T02:26:43.000Z | 2021-11-22T02:26:43.000Z | CONTESTS/CODEFORCES/div2 844/A.cpp | priojeetpriyom/competitive-programming | 0024328972d4e14c04c0fd5d6dd3cdf131d84f9d | [
"MIT"
] | null | null | null | CONTESTS/CODEFORCES/div2 844/A.cpp | priojeetpriyom/competitive-programming | 0024328972d4e14c04c0fd5d6dd3cdf131d84f9d | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
int vis[200];
int main()
{
// freopen("in.txt", "r", stdin);
// freopen("out.txt", "w", stdout);
std::ios_base::sync_with_stdio(false);
cin.tie(0);
int k;
string s;
cin>>s>>k;
if(k>s.size()) co... | 14.641026 | 45 | 0.436077 |
55500631f687f3ca724aa7dc4096cbb61ef2bf1b | 1,385 | cpp | C++ | src/main.cpp | marangisto/dro | d5c7ff5a3d4a321f75288f4dc1417dc30cdca854 | [
"MIT"
] | null | null | null | src/main.cpp | marangisto/dro | d5c7ff5a3d4a321f75288f4dc1417dc30cdca854 | [
"MIT"
] | null | null | null | src/main.cpp | marangisto/dro | d5c7ff5a3d4a321f75288f4dc1417dc30cdca854 | [
"MIT"
] | null | null | null | #include <gpio.h>
#include <textio.h>
#include <usart.h>
#include <hardware/tm1637.h>
#include <button.h>
static const pin_t LED = PA5;
static const pin_t PROBE = PA8;
static const int SERIAL_USART = 2;
static const pin_t SERIAL_TX = PA2;
static const pin_t SERIAL_RX = P... | 23.083333 | 60 | 0.625993 |
5552af8f77f4820aa092974e975ca5b5c22bb4bd | 2,269 | cc | C++ | src/sampler/random_sampler.cc | TheTimmy/decord | 67bfd14e4ae50b2751e7b92b73c6d73df35cbdaf | [
"Apache-2.0"
] | 762 | 2020-01-16T02:44:50.000Z | 2022-03-30T10:03:36.000Z | src/sampler/random_sampler.cc | TheTimmy/decord | 67bfd14e4ae50b2751e7b92b73c6d73df35cbdaf | [
"Apache-2.0"
] | 161 | 2020-01-20T07:47:38.000Z | 2022-03-11T15:19:10.000Z | src/sampler/random_sampler.cc | TheTimmy/decord | 67bfd14e4ae50b2751e7b92b73c6d73df35cbdaf | [
"Apache-2.0"
] | 77 | 2020-01-23T17:47:20.000Z | 2022-03-28T10:12:19.000Z | /*!
* Copyright (c) 2019 by Contributors if not otherwise specified
* \file random_file_order_sampler.cc
* \brief Randomly shuffle file order but not internal frame order
*/
#include "random_sampler.h"
#include <algorithm>
#include <dmlc/logging.h>
namespace decord {
namespace sampler {
RandomSampler::RandomS... | 31.513889 | 134 | 0.578228 |
55554a9d591a8c787954592b1ccf0f098e863c22 | 695 | cpp | C++ | src/samarium/physics/Spring.cpp | strangeQuark1041/samarium | 7e4d107e719d54b55b16d63707595a27f357fb6d | [
"MIT"
] | 1 | 2021-12-25T16:37:53.000Z | 2021-12-25T16:37:53.000Z | src/samarium/physics/Spring.cpp | strangeQuark1041/samarium | 7e4d107e719d54b55b16d63707595a27f357fb6d | [
"MIT"
] | 1 | 2022-03-07T11:46:27.000Z | 2022-03-07T11:46:27.000Z | src/samarium/physics/Spring.cpp | strangeQuark1041/samarium | 7e4d107e719d54b55b16d63707595a27f357fb6d | [
"MIT"
] | null | null | null | /*
* SPDX-License-Identifier: MIT
* Copyright (c) 2022 Jai Bellare
* See <https://opensource.org/licenses/MIT/> or LICENSE.md
* Project homepage: https://github.com/strangeQuark1041/samarium
*/
#include "Spring.hpp"
namespace sm
{
[[nodiscard]] auto Spring::length() const noexcept -> f64 { return math::distance(... | 26.730769 | 100 | 0.666187 |
55566650381b23567922169592f96bac20617ea6 | 948 | cpp | C++ | Leetcode/Day019/unique_path_obstacle.cpp | SujalAhrodia/Practice_2020 | 59b371ada245ed8253d12327f18deee3e47f31d6 | [
"MIT"
] | null | null | null | Leetcode/Day019/unique_path_obstacle.cpp | SujalAhrodia/Practice_2020 | 59b371ada245ed8253d12327f18deee3e47f31d6 | [
"MIT"
] | null | null | null | Leetcode/Day019/unique_path_obstacle.cpp | SujalAhrodia/Practice_2020 | 59b371ada245ed8253d12327f18deee3e47f31d6 | [
"MIT"
] | null | null | null | class Solution {
public:
int uniquePathsWithObstacles(vector<vector<int>>& obstacleGrid)
{
int m = obstacleGrid.size();
int n = obstacleGrid[0].size();
vector<vector<unsigned int>> dp(m, vector<unsigned int> (n,0));
if(obstacleGrid[0][0] == 1)
retur... | 23.7 | 71 | 0.369198 |